lawgic-dev-kit 0.21.6 → 0.22.4
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/README.md +54 -54
- package/dist/_virtual/index2.js +2 -3
- package/dist/_virtual/index3.js +3 -3
- package/dist/_virtual/index4.js +3 -5
- package/dist/_virtual/index5.js +5 -2
- package/dist/components/atoms/Checkbox/Checkbox.d.ts +3 -2
- package/dist/components/atoms/Checkbox/Checkbox.js +43 -30
- package/dist/components/atoms/Chip/Chip.d.ts +13 -0
- package/dist/components/atoms/Chip/Chip.js +32 -0
- package/dist/components/atoms/Chip/index.d.ts +1 -0
- package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.js +17 -30
- package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.styles.d.ts +8 -2
- package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.styles.js +46 -12
- package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.types.d.ts +3 -3
- package/dist/components/atoms/LoadingSpinner/LoadingSpinner.d.ts +1 -1
- package/dist/components/atoms/LoadingSpinner/LoadingSpinner.js +56 -12
- package/dist/components/atoms/PasswordInput/PasswordInput.d.ts +1 -1
- package/dist/components/atoms/PasswordInput/PasswordInput.js +57 -41
- package/dist/components/atoms/PasswordInput/PasswordInput.types.d.ts +1 -0
- package/dist/components/atoms/SelectInput/SelectInput.d.ts +1 -1
- package/dist/components/atoms/SelectInput/SelectInput.js +125 -140
- package/dist/components/atoms/SelectInput/SelectInput.types.d.ts +2 -0
- package/dist/components/atoms/StepIndicator/StepIndicator.d.ts +5 -0
- package/dist/components/atoms/StepIndicator/StepIndicator.js +58 -0
- package/dist/components/atoms/StepIndicator/index.d.ts +1 -0
- package/dist/components/atoms/TextInput/TextInput.js +33 -33
- package/dist/components/atoms/TextInput/TextInput.types.d.ts +1 -1
- package/dist/components/atoms/Toast/Toast.d.ts +2 -3
- package/dist/components/atoms/Toast/Toast.js +46 -53
- package/dist/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +1 -0
- package/dist/components/atoms/UncontrolledSelector/UncontrolledSelector.js +98 -84
- package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.js +29 -35
- package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.types.d.ts +1 -1
- package/dist/components/atoms/UploadContainer/UploadContainer.js +4 -4
- package/dist/components/atoms/index.d.ts +2 -1
- package/dist/components/molecules/CalendarSelector/CalendarSelector.js +8 -8
- package/dist/components/molecules/DateInput/DateInput.d.ts +1 -1
- package/dist/components/molecules/EmptyState/EmptyState.d.ts +9 -0
- package/dist/components/molecules/EmptyState/EmptyState.js +16 -0
- package/dist/components/molecules/EmptyState/index.d.ts +1 -0
- package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.d.ts +24 -0
- package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.js +208 -0
- package/dist/components/molecules/MultiSelectDropdown/index.d.ts +1 -0
- package/dist/components/molecules/SingleSelectDropdown/SingleSelectDropdown.d.ts +25 -0
- package/dist/components/molecules/SingleSelectDropdown/SingleSelectDropdown.js +212 -0
- package/dist/components/molecules/SingleSelectDropdown/index.d.ts +1 -0
- package/dist/components/molecules/Stepper/Stepper.d.ts +1 -1
- package/dist/components/molecules/Stepper/Stepper.js +78 -231
- package/dist/components/molecules/Stepper/Stepper.styles.d.ts +7 -3
- package/dist/components/molecules/Stepper/Stepper.styles.js +23 -15
- package/dist/components/molecules/Tooltip/Tooltip.d.ts +20 -0
- package/dist/components/molecules/Tooltip/Tooltip.js +41 -0
- package/dist/components/molecules/UncontrolledDateInput/UncontrolledDateInput.d.ts +1 -1
- package/dist/components/molecules/index.d.ts +4 -0
- package/dist/index.js +139 -129
- package/dist/lawgic-dev-kit.css +1 -1
- package/dist/lawgic-dev-kit.umd.js +109 -97
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +396 -712
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +33 -81
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.js +7 -2
- package/dist/node_modules/@fortawesome/pro-light-svg-icons/index.js +14 -49
- package/dist/node_modules/@fortawesome/pro-regular-svg-icons/index.js +32 -12
- package/dist/node_modules/@fortawesome/pro-solid-svg-icons/index.js +14 -9
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/yup/index.esm.js +3 -3
- package/dist/src/Root.d.ts +2 -0
- package/dist/src/app.d.ts +1 -0
- package/dist/src/components/atoms/ActionButton/ActionButton.d.ts +11 -0
- package/dist/src/components/atoms/ActionButton/index.d.ts +1 -0
- package/dist/src/components/atoms/AsyncToast/index.d.ts +11 -0
- package/dist/src/components/atoms/Avatar/Avatar.d.ts +11 -0
- package/dist/src/components/atoms/Avatar/index.d.ts +1 -0
- package/dist/src/components/atoms/BoxContainer/BoxContainer.d.ts +4 -0
- package/dist/src/components/atoms/BoxContainer/BoxContainer.types.d.ts +6 -0
- package/dist/src/components/atoms/BoxContainer/index.d.ts +1 -0
- package/dist/src/components/atoms/Button/Button.d.ts +4 -0
- package/dist/src/components/atoms/Button/Button.styles.d.ts +26 -0
- package/dist/src/components/atoms/Button/Button.types.d.ts +12 -0
- package/dist/src/components/atoms/Button/index.d.ts +1 -0
- package/dist/src/components/atoms/CenterModal/CenterModal.d.ts +4 -0
- package/dist/src/components/atoms/CenterModal/CenterModal.types.d.ts +6 -0
- package/dist/src/components/atoms/CenterModal/index.d.ts +1 -0
- package/dist/src/components/atoms/Checkbox/Checkbox.d.ts +13 -0
- package/dist/src/components/atoms/Checkbox/index.d.ts +1 -0
- package/dist/src/components/atoms/Chip/Chip.d.ts +13 -0
- package/dist/src/components/atoms/Chip/index.d.ts +1 -0
- package/dist/src/components/atoms/CircleProgress/CircleProgress.d.ts +22 -0
- package/dist/src/components/atoms/CircleProgress/index.d.ts +1 -0
- package/dist/src/components/atoms/ClickAwayListener/ClickAwayListener.d.ts +4 -0
- package/dist/src/components/atoms/ClickAwayListener/ClickAwayListener.types.d.ts +7 -0
- package/dist/src/components/atoms/ClickAwayListener/index.d.ts +1 -0
- package/dist/src/components/atoms/CountryInput/CountryInput.d.ts +4 -0
- package/dist/src/components/atoms/CountryInput/CountryInput.types.d.ts +37 -0
- package/dist/src/components/atoms/CountryInput/index.d.ts +1 -0
- package/dist/src/components/atoms/CountryLabel/CountryLabel.d.ts +6 -0
- package/dist/src/components/atoms/CountryLabel/index.d.ts +1 -0
- package/dist/src/components/atoms/CountrySelectInput/CountryDropdown.d.ts +4 -0
- package/dist/src/components/atoms/CountrySelectInput/CountryDropdown.types.d.ts +36 -0
- package/dist/src/components/atoms/CountrySelectInput/index.d.ts +1 -0
- package/dist/src/components/atoms/Divider/Divider.d.ts +7 -0
- package/dist/src/components/atoms/Divider/index.d.ts +1 -0
- package/dist/src/components/atoms/FilterPill/FilterPill.d.ts +8 -0
- package/dist/src/components/atoms/FilterPill/index.d.ts +1 -0
- package/dist/src/components/atoms/FloatingCard/FloatingCard.d.ts +4 -0
- package/dist/{components/atoms/Tooltip/Tooltip.types.d.ts → src/components/atoms/FloatingCard/FloatingCard.types.d.ts} +3 -3
- package/dist/src/components/atoms/FloatingCard/index.d.ts +1 -0
- package/dist/src/components/atoms/IconButton/IconButton.d.ts +4 -0
- package/dist/src/components/atoms/IconButton/IconButton.styles.d.ts +10 -0
- package/dist/src/components/atoms/IconButton/IconButton.types.d.ts +11 -0
- package/dist/src/components/atoms/IconButton/index.d.ts +1 -0
- package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.d.ts +4 -0
- package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.types.d.ts +12 -0
- package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.validators.d.ts +9 -0
- package/dist/src/components/atoms/ImageProfileInput/index.d.ts +2 -0
- package/dist/src/components/atoms/IndexedStep/IndexedStep.d.ts +9 -0
- package/dist/src/components/atoms/IndexedStep/index.d.ts +1 -0
- package/dist/src/components/atoms/InfoCard/InfoCard.d.ts +3 -0
- package/dist/src/components/atoms/InfoCard/InfoCard.types.d.ts +6 -0
- package/dist/src/components/atoms/InfoCard/index.d.ts +1 -0
- package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.d.ts +4 -0
- package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.styles.d.ts +9 -0
- package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.types.d.ts +10 -0
- package/dist/src/components/atoms/InformationDisclaimer/index.d.ts +1 -0
- package/dist/src/components/atoms/LoadingProgress/LoadingProgress.d.ts +13 -0
- package/dist/src/components/atoms/LoadingProgress/index.d.ts +1 -0
- package/dist/src/components/atoms/LoadingSpinner/LoadingSpinner.d.ts +8 -0
- package/dist/src/components/atoms/LoadingSpinner/index.d.ts +1 -0
- package/dist/src/components/atoms/PasswordInput/PasswordInput.d.ts +5 -0
- package/dist/src/components/atoms/PasswordInput/PasswordInput.types.d.ts +12 -0
- package/dist/src/components/atoms/PasswordInput/index.d.ts +1 -0
- package/dist/src/components/atoms/PhoneInput/PhoneInput.d.ts +5 -0
- package/dist/src/components/atoms/PhoneInput/PhoneInput.types.d.ts +12 -0
- package/dist/src/components/atoms/PhoneInput/index.d.ts +1 -0
- package/dist/src/components/atoms/Pill/Pill.d.ts +8 -0
- package/dist/src/components/atoms/Pill/index.d.ts +1 -0
- package/dist/src/components/atoms/ProgressBar/ProgressBar.d.ts +3 -0
- package/dist/src/components/atoms/ProgressBar/ProgressBar.styles.d.ts +7 -0
- package/dist/src/components/atoms/ProgressBar/ProgressBar.types.d.ts +6 -0
- package/dist/src/components/atoms/ProgressBar/index.d.ts +1 -0
- package/dist/src/components/atoms/SearchBar/index.d.ts +2 -0
- package/dist/src/components/atoms/SectionButton/SectionButton.d.ts +12 -0
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.d.ts +3 -0
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.styles.d.ts +2 -0
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.types.d.ts +37 -0
- package/dist/src/components/atoms/SectionButton/desktop/index.d.ts +2 -0
- package/dist/src/components/atoms/SectionButton/index.d.ts +1 -0
- package/dist/src/components/atoms/SectionButton/mobile/MobileSectionButton.styles.d.ts +3 -0
- package/dist/src/components/atoms/SectionButton/mobile/SectionButton.d.ts +3 -0
- package/dist/src/components/atoms/SectionButton/mobile/SectionButton.types.d.ts +37 -0
- package/dist/src/components/atoms/SectionButton/mobile/index.d.ts +2 -0
- package/dist/src/components/atoms/SelectInput/SelectInput.d.ts +1 -1
- package/dist/src/components/atoms/SelectInput/SelectInput.types.d.ts +2 -0
- package/dist/src/components/atoms/SelectInput/index.d.ts +1 -0
- package/dist/src/components/atoms/SidebarButton/SidebarButton.d.ts +13 -0
- package/dist/src/components/atoms/SidebarButton/SidebarButton.styles.d.ts +9 -0
- package/dist/src/components/atoms/SidebarButton/index.d.ts +1 -0
- package/dist/src/components/atoms/StepIndicator/StepIndicator.d.ts +5 -0
- package/dist/src/components/atoms/StepIndicator/index.d.ts +1 -0
- package/dist/src/components/atoms/Switch/Switch.d.ts +7 -0
- package/dist/src/components/atoms/Switch/index.d.ts +1 -0
- package/dist/src/components/atoms/Tab/Tab.d.ts +3 -0
- package/dist/src/components/atoms/Tab/Tab.styles.d.ts +6 -0
- package/dist/src/components/atoms/Tab/Tab.types.d.ts +11 -0
- package/dist/src/components/atoms/Tab/index.d.ts +1 -0
- package/dist/src/components/atoms/TextButton/TextButton.d.ts +4 -0
- package/dist/src/components/atoms/TextButton/TextButton.styles.d.ts +2 -0
- package/dist/src/components/atoms/TextButton/TextButton.types.d.ts +6 -0
- package/dist/src/components/atoms/TextButton/index.d.ts +1 -0
- package/dist/src/components/atoms/TextInput/TextInput.d.ts +5 -0
- package/dist/src/components/atoms/TextInput/TextInput.types.d.ts +13 -0
- package/dist/src/components/atoms/TextInput/index.d.ts +1 -0
- package/dist/src/components/atoms/TextStaticInput/TextStaticInput.d.ts +3 -0
- package/dist/src/components/atoms/TextStaticInput/TextStaticInput.types.d.ts +5 -0
- package/dist/src/components/atoms/TextStaticInput/index.d.ts +1 -0
- package/dist/src/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.d.ts +4 -0
- package/dist/src/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.types.d.ts +30 -0
- package/dist/src/components/atoms/ThresholdCircleProgress/index.d.ts +1 -0
- package/dist/src/components/atoms/ThresholdProgressBar/ThresholdProgressBar.d.ts +4 -0
- package/dist/src/components/atoms/ThresholdProgressBar/ThresholdProgressBar.types.d.ts +22 -0
- package/dist/src/components/atoms/ThresholdProgressBar/index.d.ts +1 -0
- package/dist/src/components/atoms/Toast/Toast.d.ts +20 -0
- package/dist/src/components/atoms/Toast/index.d.ts +1 -0
- package/dist/src/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +1 -0
- package/dist/src/components/atoms/UncontrolledSelector/index.d.ts +1 -0
- package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.d.ts +4 -0
- package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.types.d.ts +14 -0
- package/dist/src/components/atoms/UncontrolledTextInput/index.d.ts +1 -0
- package/dist/src/components/atoms/UploadContainer/UploadContainer.d.ts +4 -0
- package/dist/src/components/atoms/UploadContainer/UploadContainer.types.d.ts +37 -0
- package/dist/src/components/atoms/UploadContainer/index.d.ts +1 -0
- package/dist/src/components/atoms/index.d.ts +43 -0
- package/dist/src/components/index.d.ts +3 -0
- package/dist/src/components/molecules/AlertModal/AlertModal.d.ts +3 -0
- package/dist/src/components/molecules/AlertModal/AlertModal.types.d.ts +9 -0
- package/dist/src/components/molecules/AlertModal/index.d.ts +2 -0
- package/dist/src/components/molecules/AutocompleteInput/AutocompleteInput.d.ts +3 -0
- package/dist/src/components/molecules/AutocompleteInput/AutocompleteInput.types.d.ts +28 -0
- package/dist/src/components/molecules/AutocompleteInput/index.d.ts +1 -0
- package/dist/src/components/molecules/CalendarSelector/CalendarSelector.d.ts +14 -0
- package/dist/src/components/molecules/CalendarSelector/CalendarSelector.styles.d.ts +36 -0
- package/dist/src/components/molecules/CalendarSelector/PeriodToggle.d.ts +15 -0
- package/dist/src/components/molecules/CalendarSelector/TimeDisplay.d.ts +7 -0
- package/dist/src/components/molecules/CalendarSelector/index.d.ts +1 -0
- package/dist/src/components/molecules/DateInput/DateInput.d.ts +14 -0
- package/dist/src/components/molecules/DateInput/index.d.ts +1 -0
- package/dist/src/components/molecules/DialogModal/DialogModal.d.ts +3 -0
- package/dist/src/components/molecules/DialogModal/DialogModal.types.d.ts +11 -0
- package/dist/src/components/molecules/DialogModal/index.d.ts +1 -0
- package/dist/src/components/molecules/Dropdown/Dropdown.d.ts +3 -0
- package/dist/src/components/molecules/Dropdown/Dropdown.types.d.ts +9 -0
- package/dist/src/components/molecules/Dropdown/index.d.ts +1 -0
- package/dist/src/components/molecules/EmptyState/EmptyState.d.ts +9 -0
- package/dist/src/components/molecules/EmptyState/index.d.ts +1 -0
- package/dist/src/components/molecules/FileUpload/FileUpload.d.ts +4 -0
- package/dist/src/components/molecules/FileUpload/FileUpload.types.d.ts +17 -0
- package/dist/src/components/molecules/FileUpload/index.d.ts +1 -0
- package/dist/src/components/molecules/FiltersMenu/FiltersMenu.d.ts +13 -0
- package/dist/src/components/molecules/FiltersMenu/index.d.ts +1 -0
- package/dist/src/components/molecules/FloatingMenu/FloatingMenu.d.ts +4 -0
- package/dist/src/components/molecules/FloatingMenu/FloatingMenu.types.d.ts +13 -0
- package/dist/src/components/molecules/FloatingMenu/index.d.ts +1 -0
- package/dist/src/components/molecules/IndexedStepper/IndexedStepper.d.ts +7 -0
- package/dist/src/components/molecules/IndexedStepper/index.d.ts +1 -0
- package/dist/src/components/molecules/InformationContainer/InformationContainer.d.ts +14 -0
- package/dist/src/components/molecules/InformationContainer/index.d.ts +1 -0
- package/dist/src/components/molecules/MultiSelectDropdown/MultiSelectDropdown.d.ts +24 -0
- package/dist/src/components/molecules/MultiSelectDropdown/index.d.ts +1 -0
- package/dist/src/components/molecules/PillsContainer/PillsContainer.d.ts +9 -0
- package/dist/src/components/molecules/PillsContainer/index.d.ts +1 -0
- package/dist/src/components/molecules/SearchModal/SearchModal.d.ts +4 -0
- package/dist/src/components/molecules/SearchModal/SearchModal.types.d.ts +5 -0
- package/dist/src/components/molecules/SearchModal/index.d.ts +1 -0
- package/dist/src/components/molecules/SideModal/SideModal.d.ts +4 -0
- package/dist/src/components/molecules/SideModal/SideModal.types.d.ts +11 -0
- package/dist/src/components/molecules/SideModal/index.d.ts +1 -0
- package/dist/src/components/molecules/SingleSelectDropdown/SingleSelectDropdown.d.ts +25 -0
- package/dist/src/components/molecules/SingleSelectDropdown/index.d.ts +1 -0
- package/dist/src/components/molecules/Stepper/Stepper.d.ts +3 -0
- package/dist/src/components/molecules/Stepper/Stepper.styles.d.ts +15 -0
- package/dist/src/components/molecules/Stepper/index.d.ts +1 -0
- package/dist/src/components/molecules/Tabs/Tabs.d.ts +21 -0
- package/dist/src/components/molecules/Tabs/index.d.ts +1 -0
- package/dist/src/components/molecules/Tooltip/Tooltip.d.ts +20 -0
- package/dist/src/components/molecules/Tooltip/index.d.ts +1 -0
- package/dist/src/components/molecules/UncontrolledDateInput/UncontrolledDateInput.d.ts +16 -0
- package/dist/src/components/molecules/UncontrolledDateInput/index.d.ts +1 -0
- package/dist/src/components/molecules/index.d.ts +23 -0
- package/dist/src/components/organisms/index.d.ts +1 -0
- package/dist/src/constants/countries.d.ts +30 -0
- package/dist/src/contexts/index.d.ts +1 -0
- package/dist/src/contexts/themeContext.d.ts +3 -0
- package/dist/src/hooks/index.d.ts +2 -0
- package/dist/src/hooks/useFilterToggler.d.ts +5 -0
- package/dist/src/hooks/useTheme.d.ts +1 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/src/lab/Laboratory.d.ts +2 -0
- package/dist/src/lab/LaboratoryLayout.d.ts +5 -0
- package/dist/src/lab/index.lab.d.ts +1 -0
- package/dist/src/providers/ThemeProvider.d.ts +7 -0
- package/dist/src/providers/index.d.ts +1 -0
- package/dist/src/themes/default.d.ts +2 -0
- package/dist/src/themes/index.d.ts +2 -0
- package/dist/src/themes/types.d.ts +6 -0
- package/dist/src/types/baseModalProps.d.ts +4 -0
- package/dist/src/types/cycles.d.ts +103 -0
- package/dist/src/types/display.d.ts +2 -0
- package/dist/src/types/fileInfo.d.ts +2 -0
- package/dist/src/types/filters.d.ts +22 -0
- package/dist/src/types/i18n.d.ts +1 -0
- package/dist/src/types/index.d.ts +10 -0
- package/dist/src/types/modal.d.ts +34 -0
- package/dist/src/types/modalType.d.ts +1 -0
- package/dist/src/types/navbarOption.d.ts +7 -0
- package/dist/src/types/sidebarOption.d.ts +7 -0
- package/dist/src/types/stepper.d.ts +23 -0
- package/dist/src/types/styleValues.d.ts +4 -0
- package/dist/src/types/toast.d.ts +29 -0
- package/dist/src/utils/cycles.d.ts +2 -0
- package/dist/src/utils/dates.d.ts +1 -0
- package/dist/src/utils/files.d.ts +8 -0
- package/dist/src/utils/images.d.ts +1 -0
- package/dist/src/utils/index.d.ts +7 -0
- package/dist/src/utils/modal.d.ts +13 -0
- package/dist/src/utils/renderContentOptions.d.ts +3 -0
- package/dist/src/utils/stepper.d.ts +2 -0
- package/dist/src/utils/strings.d.ts +2 -0
- package/dist/src/utils/toast.d.ts +15 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stepper.d.ts +23 -0
- package/dist/types/toast.d.ts +6 -3
- package/dist/utils/stepper.d.ts +2 -0
- package/dist/utils/toast.js +3 -3
- package/dist/vite-env.d.ts +1 -1
- package/dist/vite.config.d.ts +2 -0
- package/package.json +157 -157
- package/dist/components/atoms/Tooltip/Tooltip.d.ts +0 -4
- package/dist/components/atoms/Tooltip/Tooltip.js +0 -121
- package/dist/components/molecules/Stepper/Stepper.types.d.ts +0 -9
- /package/dist/components/{atoms → molecules}/Tooltip/index.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(ne,
|
|
1
|
+
(function(ne,O){typeof exports=="object"&&typeof module<"u"?O(exports,require("react"),require("react-hook-form"),require("fuse.js"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-hook-form","fuse.js","react-dom"],O):(ne=typeof globalThis<"u"?globalThis:ne||self,O(ne.lawgicDevKit={},ne.React,ne.reactHookForm,ne.Fuse,ne.ReactDOM))})(this,function(ne,O,vr,cT,Ep){"use strict";function Pp(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const he=Pp(O),uT=Pp(Ep);var Ko=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ap(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xo={exports:{}},Ni={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Mp;function fT(){if(Mp)return Ni;Mp=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,s,o){var a=null;if(o!==void 0&&(a=""+o),s.key!==void 0&&(a=""+s.key),"key"in s){o={};for(var c in s)c!=="key"&&(o[c]=s[c])}else o=s;return s=o.ref,{$$typeof:e,type:r,key:a,ref:s!==void 0?s:null,props:o}}return Ni.Fragment=t,Ni.jsx=n,Ni.jsxs=n,Ni}var ki={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var Op;function dT(){return Op||(Op=1,process.env.NODE_ENV!=="production"&&function(){function e($){if($==null)return null;if(typeof $=="function")return $.$$typeof===Q?null:$.displayName||$.name||null;if(typeof $=="string")return $;switch($){case b:return"Fragment";case v:return"Profiler";case T:return"StrictMode";case P:return"Suspense";case D:return"SuspenseList";case W:return"Activity"}if(typeof $=="object")switch(typeof $.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),$.$$typeof){case S:return"Portal";case C:return($.displayName||"Context")+".Provider";case A:return($._context.displayName||"Context")+".Consumer";case I:var k=$.render;return $=$.displayName,$||($=k.displayName||k.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case R:return k=$.displayName||null,k!==null?k:e($.type)||"Memo";case F:k=$._payload,$=$._init;try{return e($(k))}catch{}}return null}function t($){return""+$}function n($){try{t($);var k=!1}catch{k=!0}if(k){k=console;var X=k.error,U=typeof Symbol=="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object";return X.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",U),t($)}}function r($){if($===b)return"<>";if(typeof $=="object"&&$!==null&&$.$$typeof===F)return"<...>";try{var k=e($);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function s(){var $=ee.A;return $===null?null:$.getOwner()}function o(){return Error("react-stack-top-frame")}function a($){if(ae.call($,"key")){var k=Object.getOwnPropertyDescriptor($,"key").get;if(k&&k.isReactWarning)return!1}return $.key!==void 0}function c($,k){function X(){le||(le=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}X.isReactWarning=!0,Object.defineProperty($,"key",{get:X,configurable:!0})}function u(){var $=e(this.type);return ue[$]||(ue[$]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),$=this.props.ref,$!==void 0?$:null}function d($,k,X,U,re,B,J,oe){return X=B.ref,$={$$typeof:x,type:$,key:k,props:B,_owner:re},(X!==void 0?X:null)!==null?Object.defineProperty($,"ref",{enumerable:!1,get:u}):Object.defineProperty($,"ref",{enumerable:!1,value:null}),$._store={},Object.defineProperty($._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty($,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty($,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:J}),Object.defineProperty($,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:oe}),Object.freeze&&(Object.freeze($.props),Object.freeze($)),$}function h($,k,X,U,re,B,J,oe){var se=k.children;if(se!==void 0)if(U)if(ge(se)){for(U=0;U<se.length;U++)p(se[U]);Object.freeze&&Object.freeze(se)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(se);if(ae.call(k,"key")){se=e($);var fe=Object.keys(k).filter(function(Ve){return Ve!=="key"});U=0<fe.length?"{key: someKey, "+fe.join(": ..., ")+": ...}":"{key: someKey}",K[se+U]||(fe=0<fe.length?"{"+fe.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,
|
|
22
|
+
<%s key={someKey} {...props} />`,U,se,fe,se),K[se+U]=!0)}if(se=null,X!==void 0&&(n(X),se=""+X),a(k)&&(n(k.key),se=""+k.key),"key"in k){X={};for(var Ee in k)Ee!=="key"&&(X[Ee]=k[Ee])}else X=k;return se&&c(X,typeof $=="function"?$.displayName||$.name||"Unknown":$),d($,se,B,re,s(),X,J,oe)}function p($){typeof $=="object"&&$!==null&&$.$$typeof===x&&$._store&&($._store.validated=1)}var m=O,x=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),C=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),Q=Symbol.for("react.client.reference"),ee=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae=Object.prototype.hasOwnProperty,ge=Array.isArray,de=console.createTask?console.createTask:function(){return null};m={"react-stack-bottom-frame":function($){return $()}};var le,ue={},Y=m["react-stack-bottom-frame"].bind(m,o)(),z=de(r(o)),K={};ki.Fragment=b,ki.jsx=function($,k,X,U,re){var B=1e4>ee.recentlyCreatedOwnerStacks++;return h($,k,X,!1,U,re,B?Error("react-stack-top-frame"):Y,B?de(r($)):z)},ki.jsxs=function($,k,X,U,re){var B=1e4>ee.recentlyCreatedOwnerStacks++;return h($,k,X,!0,U,re,B?Error("react-stack-top-frame"):Y,B?de(r($)):z)}}()),ki}var $p;function hT(){return $p||($p=1,process.env.NODE_ENV==="production"?Xo.exports=fT():Xo.exports=dT()),Xo.exports}var g=hT();/*!
|
|
23
23
|
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
24
24
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
25
25
|
* Copyright 2024 Fonticons, Inc.
|
|
26
|
-
*/function TT(e,t,n){return(t=CT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jm(Object(n),!0).forEach(function(r){TT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ET(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function CT(e){var t=ET(e,"string");return typeof t=="symbol"?t:t+""}const Fm=()=>{};let dc={},Vm={},Bm=null,Wm={mark:Fm,measure:Fm};try{typeof window<"u"&&(dc=window),typeof document<"u"&&(Vm=document),typeof MutationObserver<"u"&&(Bm=MutationObserver),typeof performance<"u"&&(Wm=performance)}catch{}const{userAgent:Um=""}=dc.navigator||{},mr=dc,Ze=Vm,zm=Bm,na=Wm;mr.document;const Yn=!!Ze.documentElement&&!!Ze.head&&typeof Ze.addEventListener=="function"&&typeof Ze.createElement=="function",Gm=~Um.indexOf("MSIE")||~Um.indexOf("Trident/");var PT=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,AT=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Ym={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},MT={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Hm=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],wt="classic",ra="duotone",OT="sharp",_T="sharp-duotone",qm=[wt,ra,OT,_T],IT={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},$T={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},DT=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),NT={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},kT=["fak","fa-kit","fakd","fa-kit-duotone"],Km={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},LT=["kit"],RT={kit:{"fa-kit":"fak"}},jT=["fak","fakd"],FT={kit:{fak:"fa-kit"}},Xm={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},ia={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},VT=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],BT=["fak","fa-kit","fakd","fa-kit-duotone"],WT={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},UT={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},zT={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},hc={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},GT=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],mc=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...VT,...GT],YT=["solid","regular","light","thin","duotone","brands"],Zm=[1,2,3,4,5,6,7,8,9,10],HT=Zm.concat([11,12,13,14,15,16,17,18,19,20]),qT=[...Object.keys(zT),...YT,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",ia.GROUP,ia.SWAP_OPACITY,ia.PRIMARY,ia.SECONDARY].concat(Zm.map(e=>"".concat(e,"x"))).concat(HT.map(e=>"w-".concat(e))),KT={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const Hn="___FONT_AWESOME___",pc=16,Jm="fa",Qm="svg-inline--fa",Jr="data-fa-i2svg",gc="data-fa-pseudo-element",XT="data-fa-pseudo-element-pending",yc="data-prefix",vc="data-icon",ep="fontawesome-i2svg",ZT="async",JT=["HTML","HEAD","STYLE","SCRIPT"],tp=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Bs(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[wt]}})}const np=te({},Ym);np[wt]=te(te(te(te({},{"fa-duotone":"duotone"}),Ym[wt]),Km.kit),Km["kit-duotone"]);const QT=Bs(np),xc=te({},NT);xc[wt]=te(te(te(te({},{duotone:"fad"}),xc[wt]),Xm.kit),Xm["kit-duotone"]);const rp=Bs(xc),bc=te({},hc);bc[wt]=te(te({},bc[wt]),FT.kit);const wc=Bs(bc),Sc=te({},UT);Sc[wt]=te(te({},Sc[wt]),RT.kit),Bs(Sc);const eE=PT,ip="fa-layers-text",tE=AT,nE=te({},IT);Bs(nE);const rE=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Tc=MT,iE=[...LT,...qT],Ws=mr.FontAwesomeConfig||{};function sE(e){var t=Ze.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function oE(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}Ze&&typeof Ze.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const i=oE(sE(n));i!=null&&(Ws[r]=i)});const sp={styleDefault:"solid",familyDefault:wt,cssPrefix:Jm,replacementClass:Qm,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ws.familyPrefix&&(Ws.cssPrefix=Ws.familyPrefix);const Ri=te(te({},sp),Ws);Ri.autoReplaceSvg||(Ri.observeMutations=!1);const ve={};Object.keys(sp).forEach(e=>{Object.defineProperty(ve,e,{enumerable:!0,set:function(t){Ri[e]=t,Us.forEach(n=>n(ve))},get:function(){return Ri[e]}})}),Object.defineProperty(ve,"familyPrefix",{enumerable:!0,set:function(e){Ri.cssPrefix=e,Us.forEach(t=>t(ve))},get:function(){return Ri.cssPrefix}}),mr.FontAwesomeConfig=ve;const Us=[];function aE(e){return Us.push(e),()=>{Us.splice(Us.indexOf(e),1)}}const pr=pc,Pn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function lE(e){if(!e||!Yn)return;const t=Ze.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Ze.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return Ze.head.insertBefore(t,r),e}const cE="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function zs(){let e=12,t="";for(;e-- >0;)t+=cE[Math.random()*62|0];return t}function ji(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Ec(e){return e.classList?ji(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function op(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function uE(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(op(e[n]),'" '),"").trim()}function sa(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function Cc(e){return e.size!==Pn.size||e.x!==Pn.x||e.y!==Pn.y||e.rotate!==Pn.rotate||e.flipX||e.flipY}function fE(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),c="rotate(".concat(t.rotate," 0 0)"),u={transform:"".concat(o," ").concat(a," ").concat(c)},d={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:u,path:d}}function dE(e){let{transform:t,width:n=pc,height:r=pc,startCentered:i=!1}=e,o="";return i&&Gm?o+="translate(".concat(t.x/pr-n/2,"em, ").concat(t.y/pr-r/2,"em) "):i?o+="translate(calc(-50% + ".concat(t.x/pr,"em), calc(-50% + ").concat(t.y/pr,"em)) "):o+="translate(".concat(t.x/pr,"em, ").concat(t.y/pr,"em) "),o+="scale(".concat(t.size/pr*(t.flipX?-1:1),", ").concat(t.size/pr*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var hE=`:root, :host {
|
|
26
|
+
*/function pT(e,t,n){return(t=gT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_p(Object(n),!0).forEach(function(r){pT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_p(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mT(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gT(e){var t=mT(e,"string");return typeof t=="symbol"?t:t+""}const Ip=()=>{};let cc={},Dp={},Np=null,kp={mark:Ip,measure:Ip};try{typeof window<"u"&&(cc=window),typeof document<"u"&&(Dp=document),typeof MutationObserver<"u"&&(Np=MutationObserver),typeof performance<"u"&&(kp=performance)}catch{}const{userAgent:jp=""}=cc.navigator||{},br=cc,Ke=Dp,Lp=Np,Zo=kp;br.document;const Un=!!Ke.documentElement&&!!Ke.head&&typeof Ke.addEventListener=="function"&&typeof Ke.createElement=="function",Rp=~jp.indexOf("MSIE")||~jp.indexOf("Trident/");var yT=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,xT=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Fp={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},vT={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Vp=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],wt="classic",Jo="duotone",bT="sharp",wT="sharp-duotone",Bp=[wt,Jo,bT,wT],ST={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},TT={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},CT=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),ET={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},PT=["fak","fa-kit","fakd","fa-kit-duotone"],Wp={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},AT=["kit"],MT={kit:{"fa-kit":"fak"}},OT=["fak","fakd"],$T={kit:{fak:"fa-kit"}},Up={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Qo={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},_T=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],IT=["fak","fa-kit","fakd","fa-kit-duotone"],DT={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},NT={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},kT={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},uc={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},jT=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],fc=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",..._T,...jT],LT=["solid","regular","light","thin","duotone","brands"],zp=[1,2,3,4,5,6,7,8,9,10],RT=zp.concat([11,12,13,14,15,16,17,18,19,20]),FT=[...Object.keys(kT),...LT,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Qo.GROUP,Qo.SWAP_OPACITY,Qo.PRIMARY,Qo.SECONDARY].concat(zp.map(e=>"".concat(e,"x"))).concat(RT.map(e=>"w-".concat(e))),VT={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const zn="___FONT_AWESOME___",dc=16,Gp="fa",Yp="svg-inline--fa",Zr="data-fa-i2svg",hc="data-fa-pseudo-element",BT="data-fa-pseudo-element-pending",pc="data-prefix",mc="data-icon",Hp="fontawesome-i2svg",WT="async",UT=["HTML","HEAD","STYLE","SCRIPT"],qp=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function ji(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[wt]}})}const Kp=te({},Fp);Kp[wt]=te(te(te(te({},{"fa-duotone":"duotone"}),Fp[wt]),Wp.kit),Wp["kit-duotone"]);const zT=ji(Kp),gc=te({},ET);gc[wt]=te(te(te(te({},{duotone:"fad"}),gc[wt]),Up.kit),Up["kit-duotone"]);const Xp=ji(gc),yc=te({},uc);yc[wt]=te(te({},yc[wt]),$T.kit);const xc=ji(yc),vc=te({},NT);vc[wt]=te(te({},vc[wt]),MT.kit),ji(vc);const GT=yT,Zp="fa-layers-text",YT=xT,HT=te({},ST);ji(HT);const qT=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],bc=vT,KT=[...AT,...FT],Li=br.FontAwesomeConfig||{};function XT(e){var t=Ke.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function ZT(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}Ke&&typeof Ke.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const s=ZT(XT(n));s!=null&&(Li[r]=s)});const Jp={styleDefault:"solid",familyDefault:wt,cssPrefix:Gp,replacementClass:Yp,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Li.familyPrefix&&(Li.cssPrefix=Li.familyPrefix);const Ds=te(te({},Jp),Li);Ds.autoReplaceSvg||(Ds.observeMutations=!1);const xe={};Object.keys(Jp).forEach(e=>{Object.defineProperty(xe,e,{enumerable:!0,set:function(t){Ds[e]=t,Ri.forEach(n=>n(xe))},get:function(){return Ds[e]}})}),Object.defineProperty(xe,"familyPrefix",{enumerable:!0,set:function(e){Ds.cssPrefix=e,Ri.forEach(t=>t(xe))},get:function(){return Ds.cssPrefix}}),br.FontAwesomeConfig=xe;const Ri=[];function JT(e){return Ri.push(e),()=>{Ri.splice(Ri.indexOf(e),1)}}const wr=dc,Tn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function QT(e){if(!e||!Un)return;const t=Ke.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Ke.head.childNodes;let r=null;for(let s=n.length-1;s>-1;s--){const o=n[s],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return Ke.head.insertBefore(t,r),e}const eC="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Fi(){let e=12,t="";for(;e-- >0;)t+=eC[Math.random()*62|0];return t}function Ns(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function wc(e){return e.classList?Ns(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function Qp(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function tC(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(Qp(e[n]),'" '),"").trim()}function ea(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function Sc(e){return e.size!==Tn.size||e.x!==Tn.x||e.y!==Tn.y||e.rotate!==Tn.rotate||e.flipX||e.flipY}function nC(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const s={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),c="rotate(".concat(t.rotate," 0 0)"),u={transform:"".concat(o," ").concat(a," ").concat(c)},d={transform:"translate(".concat(r/2*-1," -256)")};return{outer:s,inner:u,path:d}}function rC(e){let{transform:t,width:n=dc,height:r=dc,startCentered:s=!1}=e,o="";return s&&Rp?o+="translate(".concat(t.x/wr-n/2,"em, ").concat(t.y/wr-r/2,"em) "):s?o+="translate(calc(-50% + ".concat(t.x/wr,"em), calc(-50% + ").concat(t.y/wr,"em)) "):o+="translate(".concat(t.x/wr,"em, ").concat(t.y/wr,"em) "),o+="scale(".concat(t.size/wr*(t.flipX?-1:1),", ").concat(t.size/wr*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var sC=`:root, :host {
|
|
27
27
|
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
|
|
28
28
|
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
|
|
29
29
|
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
|
|
@@ -576,131 +576,123 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
|
576
576
|
.svg-inline--fa mask .fa-primary,
|
|
577
577
|
.svg-inline--fa mask .fa-secondary {
|
|
578
578
|
fill: black;
|
|
579
|
-
}`;function ap(){const e=Jm,t=Qm,n=ve.cssPrefix,r=ve.replacementClass;let i=hE;if(n!==e||r!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),c=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(c,".".concat(r))}return i}let lp=!1;function Pc(){ve.autoAddCss&&!lp&&(lE(ap()),lp=!0)}var mE={mixout(){return{dom:{css:ap,insertCss:Pc}}},hooks(){return{beforeDOMElementCreation(){Pc()},beforeI2svg(){Pc()}}}};const qn=mr||{};qn[Hn]||(qn[Hn]={}),qn[Hn].styles||(qn[Hn].styles={}),qn[Hn].hooks||(qn[Hn].hooks={}),qn[Hn].shims||(qn[Hn].shims=[]);var An=qn[Hn];const cp=[],up=function(){Ze.removeEventListener("DOMContentLoaded",up),oa=1,cp.map(e=>e())};let oa=!1;Yn&&(oa=(Ze.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ze.readyState),oa||Ze.addEventListener("DOMContentLoaded",up));function pE(e){Yn&&(oa?setTimeout(e,0):cp.push(e))}function Gs(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?op(e):"<".concat(t," ").concat(uE(n),">").concat(r.map(Gs).join(""),"</").concat(t,">")}function fp(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Ac=function(t,n,r,i){var o=Object.keys(t),a=o.length,c=n,u,d,h;for(r===void 0?(u=1,h=t[o[0]]):(u=0,h=r);u<a;u++)d=o[u],h=c(h,t[d],d,t);return h};function gE(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}function Mc(e){const t=gE(e);return t.length===1?t[0].toString(16):null}function yE(e,t){const n=e.length;let r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function dp(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function Oc(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=dp(t);typeof An.hooks.addPack=="function"&&!r?An.hooks.addPack(e,dp(t)):An.styles[e]=te(te({},An.styles[e]||{}),i),e==="fas"&&Oc("fa",t)}const{styles:Ys,shims:vE}=An,hp=Object.keys(wc),xE=hp.reduce((e,t)=>(e[t]=Object.keys(wc[t]),e),{});let _c=null,mp={},pp={},gp={},yp={},vp={};function bE(e){return~iE.indexOf(e)}function wE(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!bE(i)?i:null}const xp=()=>{const e=r=>Ac(Ys,(i,o,a)=>(i[a]=Ac(o,r,{}),i),{});mp=e((r,i,o)=>(i[3]&&(r[i[3]]=o),i[2]&&i[2].filter(c=>typeof c=="number").forEach(c=>{r[c.toString(16)]=o}),r)),pp=e((r,i,o)=>(r[o]=o,i[2]&&i[2].filter(c=>typeof c=="string").forEach(c=>{r[c]=o}),r)),vp=e((r,i,o)=>{const a=i[2];return r[o]=o,a.forEach(c=>{r[c]=o}),r});const t="far"in Ys||ve.autoFetchSvg,n=Ac(vE,(r,i)=>{const o=i[0];let a=i[1];const c=i[2];return a==="far"&&!t&&(a="fas"),typeof o=="string"&&(r.names[o]={prefix:a,iconName:c}),typeof o=="number"&&(r.unicodes[o.toString(16)]={prefix:a,iconName:c}),r},{names:{},unicodes:{}});gp=n.names,yp=n.unicodes,_c=aa(ve.styleDefault,{family:ve.familyDefault})};aE(e=>{_c=aa(e.styleDefault,{family:ve.familyDefault})}),xp();function Ic(e,t){return(mp[e]||{})[t]}function SE(e,t){return(pp[e]||{})[t]}function Qr(e,t){return(vp[e]||{})[t]}function bp(e){return gp[e]||{prefix:null,iconName:null}}function TE(e){const t=yp[e],n=Ic("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function gr(){return _c}const wp=()=>({prefix:null,iconName:null,rest:[]});function EE(e){let t=wt;const n=hp.reduce((r,i)=>(r[i]="".concat(ve.cssPrefix,"-").concat(i),r),{});return qm.forEach(r=>{(e.includes(n[r])||e.some(i=>xE[r].includes(i)))&&(t=r)}),t}function aa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=wt}=t,r=QT[n][e];if(n===ra&&!e)return"fad";const i=rp[n][e]||rp[n][r],o=e in An.styles?e:null;return i||o||null}function CE(e){let t=[],n=null;return e.forEach(r=>{const i=wE(ve.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function Sp(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function la(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const i=mc.concat(BT),o=Sp(e.filter(m=>i.includes(m))),a=Sp(e.filter(m=>!mc.includes(m))),c=o.filter(m=>(r=m,!Hm.includes(m))),[u=null]=c,d=EE(o),h=te(te({},CE(a)),{},{prefix:aa(u,{family:d})});return te(te(te({},h),OE({values:e,family:d,styles:Ys,config:ve,canonical:h,givenPrefix:r})),PE(n,r,h))}function PE(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const o=t==="fa"?bp(i):{},a=Qr(r,i);return i=o.iconName||a||i,r=o.prefix||r,r==="far"&&!Ys.far&&Ys.fas&&!ve.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}const AE=qm.filter(e=>e!==wt||e!==ra),ME=Object.keys(hc).filter(e=>e!==wt).map(e=>Object.keys(hc[e])).flat();function OE(e){const{values:t,family:n,canonical:r,givenPrefix:i="",styles:o={},config:a={}}=e,c=n===ra,u=t.includes("fa-duotone")||t.includes("fad"),d=a.familyDefault==="duotone",h=r.prefix==="fad"||r.prefix==="fa-duotone";if(!c&&(u||d||h)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&AE.includes(n)&&(Object.keys(o).find(p=>ME.includes(p))||a.autoFetchSvg)){const p=DT.get(n).defaultShortPrefixId;r.prefix=p,r.iconName=Qr(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||i==="fa")&&(r.prefix=gr()||"fas"),r}class _E{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach(o=>{this.definitions[o]=te(te({},this.definitions[o]||{}),i[o]),Oc(o,i[o]);const a=wc[wt][o];a&&Oc(a,i[o]),xp()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(i=>{const{prefix:o,iconName:a,icon:c}=r[i],u=c[2];t[o]||(t[o]={}),u.length>0&&u.forEach(d=>{typeof d=="string"&&(t[o][d]=c)}),t[o][a]=c}),t}}let Tp=[],Fi={};const Vi={},IE=Object.keys(Vi);function $E(e,t){let{mixoutsTo:n}=t;return Tp=e,Fi={},Object.keys(Vi).forEach(r=>{IE.indexOf(r)===-1&&delete Vi[r]}),Tp.forEach(r=>{const i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(o=>{typeof i[o]=="function"&&(n[o]=i[o]),typeof i[o]=="object"&&Object.keys(i[o]).forEach(a=>{n[o]||(n[o]={}),n[o][a]=i[o][a]})}),r.hooks){const o=r.hooks();Object.keys(o).forEach(a=>{Fi[a]||(Fi[a]=[]),Fi[a].push(o[a])})}r.provides&&r.provides(Vi)}),n}function $c(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(Fi[e]||[]).forEach(a=>{t=a.apply(null,[t,...r])}),t}function ei(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Fi[e]||[]).forEach(o=>{o.apply(null,n)})}function yr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Vi[e]?Vi[e].apply(null,t):void 0}function Dc(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||gr();if(t)return t=Qr(n,t)||t,fp(Ep.definitions,n,t)||fp(An.styles,n,t)}const Ep=new _E,zt={noAuto:()=>{ve.autoReplaceSvg=!1,ve.observeMutations=!1,ei("noAuto")},config:ve,dom:{i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Yn?(ei("beforeI2svg",e),yr("pseudoElements2svg",e),yr("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;ve.autoReplaceSvg===!1&&(ve.autoReplaceSvg=!0),ve.observeMutations=!0,pE(()=>{DE({autoReplaceSvgRoot:t}),ei("watch",e)})}},parse:{icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Qr(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=aa(e[0]);return{prefix:n,iconName:Qr(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(ve.cssPrefix,"-"))>-1||e.match(eE))){const t=la(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||gr(),iconName:Qr(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=gr();return{prefix:t,iconName:Qr(t,e)||e}}}},library:Ep,findIconDefinition:Dc,toHtml:Gs},DE=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=Ze}=e;(Object.keys(An.styles).length>0||ve.autoFetchSvg)&&Yn&&ve.autoReplaceSvg&&zt.dom.i2svg({node:t})};function ca(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Gs(n))}}),Object.defineProperty(e,"node",{get:function(){if(!Yn)return;const n=Ze.createElement("div");return n.innerHTML=e.html,n.children}}),e}function NE(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(Cc(a)&&n.found&&!r.found){const{width:c,height:u}=n,d={x:c/u/2,y:.5};i.style=sa(te(te({},o),{},{"transform-origin":"".concat(d.x+a.x/16,"em ").concat(d.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function kE(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;const a=o===!0?"".concat(t,"-").concat(ve.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:te(te({},i),{},{id:a}),children:r}]}]}function Nc(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:a,title:c,maskId:u,titleId:d,extra:h,watchable:m=!1}=e,{width:p,height:v}=n.found?n:t,S=jT.includes(r),x=[ve.replacementClass,i?"".concat(ve.cssPrefix,"-").concat(i):""].filter(A=>h.classes.indexOf(A)===-1).filter(A=>A!==""||!!A).concat(h.classes).join(" ");let T={children:[],attributes:te(te({},h.attributes),{},{"data-prefix":r,"data-icon":i,class:x,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(p," ").concat(v)})};const b=S&&!~h.classes.indexOf("fa-fw")?{width:"".concat(p/v*16*.0625,"em")}:{};m&&(T.attributes[Jr]=""),c&&(T.children.push({tag:"title",attributes:{id:T.attributes["aria-labelledby"]||"title-".concat(d||zs())},children:[c]}),delete T.attributes.title);const C=te(te({},T),{},{prefix:r,iconName:i,main:t,mask:n,maskId:u,transform:o,symbol:a,styles:te(te({},b),h.styles)}),{children:E,attributes:$}=n.found&&t.found?yr("generateAbstractMask",C)||{children:[],attributes:{}}:yr("generateAbstractIcon",C)||{children:[],attributes:{}};return C.children=E,C.attributes=$,a?kE(C):NE(C)}function Cp(e){const{content:t,width:n,height:r,transform:i,title:o,extra:a,watchable:c=!1}=e,u=te(te(te({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});c&&(u[Jr]="");const d=te({},a.styles);Cc(i)&&(d.transform=dE({transform:i,startCentered:!0,width:n,height:r}),d["-webkit-transform"]=d.transform);const h=sa(d);h.length>0&&(u.style=h);const m=[];return m.push({tag:"span",attributes:u,children:[t]}),o&&m.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),m}function LE(e){const{content:t,title:n,extra:r}=e,i=te(te(te({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=sa(r.styles);o.length>0&&(i.style=o);const a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}const{styles:kc}=An;function Lc(e){const t=e[0],n=e[1],[r]=e.slice(4);let i=null;return Array.isArray(r)?i={tag:"g",attributes:{class:"".concat(ve.cssPrefix,"-").concat(Tc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ve.cssPrefix,"-").concat(Tc.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ve.cssPrefix,"-").concat(Tc.PRIMARY),fill:"currentColor",d:r[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const RE={found:!1,width:512,height:512};function jE(e,t){!tp&&!ve.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Rc(e,t){let n=t;return t==="fa"&&ve.styleDefault!==null&&(t=gr()),new Promise((r,i)=>{if(n==="fa"){const o=bp(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&kc[t]&&kc[t][e]){const o=kc[t][e];return r(Lc(o))}jE(e,t),r(te(te({},RE),{},{icon:ve.showMissingIcons&&e?yr("missingIconAbstract")||{}:{}}))})}const Pp=()=>{},jc=ve.measurePerformance&&na&&na.mark&&na.measure?na:{mark:Pp,measure:Pp},Hs='FA "6.7.2"',FE=e=>(jc.mark("".concat(Hs," ").concat(e," begins")),()=>Ap(e)),Ap=e=>{jc.mark("".concat(Hs," ").concat(e," ends")),jc.measure("".concat(Hs," ").concat(e),"".concat(Hs," ").concat(e," begins"),"".concat(Hs," ").concat(e," ends"))};var Fc={begin:FE,end:Ap};const ua=()=>{};function Mp(e){return typeof(e.getAttribute?e.getAttribute(Jr):null)=="string"}function VE(e){const t=e.getAttribute?e.getAttribute(yc):null,n=e.getAttribute?e.getAttribute(vc):null;return t&&n}function BE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ve.replacementClass)}function WE(){return ve.autoReplaceSvg===!0?fa.replace:fa[ve.autoReplaceSvg]||fa.replace}function UE(e){return Ze.createElementNS("http://www.w3.org/2000/svg",e)}function zE(e){return Ze.createElement(e)}function Op(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?UE:zE}=t;if(typeof e=="string")return Ze.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(o){r.setAttribute(o,e.attributes[o])}),(e.children||[]).forEach(function(o){r.appendChild(Op(o,{ceFn:n}))}),r}function GE(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const fa={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(Op(n),t)}),t.getAttribute(Jr)===null&&ve.keepOriginalSource){let n=Ze.createComment(GE(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Ec(t).indexOf(ve.replacementClass))return fa.replace(e);const r=new RegExp("".concat(ve.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const o=n[0].attributes.class.split(" ").reduce((a,c)=>(c===ve.replacementClass||c.match(r)?a.toSvg.push(c):a.toNode.push(c),a),{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}const i=n.map(o=>Gs(o)).join(`
|
|
580
|
-
`);t.setAttribute(
|
|
581
|
-
`),e.removeAttribute(n),r()}).catch(
|
|
579
|
+
}`;function em(){const e=Gp,t=Yp,n=xe.cssPrefix,r=xe.replacementClass;let s=sC;if(n!==e||r!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),c=new RegExp("\\.".concat(t),"g");s=s.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(c,".".concat(r))}return s}let tm=!1;function Tc(){xe.autoAddCss&&!tm&&(QT(em()),tm=!0)}var iC={mixout(){return{dom:{css:em,insertCss:Tc}}},hooks(){return{beforeDOMElementCreation(){Tc()},beforeI2svg(){Tc()}}}};const Gn=br||{};Gn[zn]||(Gn[zn]={}),Gn[zn].styles||(Gn[zn].styles={}),Gn[zn].hooks||(Gn[zn].hooks={}),Gn[zn].shims||(Gn[zn].shims=[]);var Cn=Gn[zn];const nm=[],rm=function(){Ke.removeEventListener("DOMContentLoaded",rm),ta=1,nm.map(e=>e())};let ta=!1;Un&&(ta=(Ke.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ke.readyState),ta||Ke.addEventListener("DOMContentLoaded",rm));function oC(e){Un&&(ta?setTimeout(e,0):nm.push(e))}function Vi(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?Qp(e):"<".concat(t," ").concat(tC(n),">").concat(r.map(Vi).join(""),"</").concat(t,">")}function sm(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Cc=function(t,n,r,s){var o=Object.keys(t),a=o.length,c=n,u,d,h;for(r===void 0?(u=1,h=t[o[0]]):(u=0,h=r);u<a;u++)d=o[u],h=c(h,t[d],d,t);return h};function aC(e){const t=[];let n=0;const r=e.length;for(;n<r;){const s=e.charCodeAt(n++);if(s>=55296&&s<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((s&1023)<<10)+(o&1023)+65536):(t.push(s),n--)}else t.push(s)}return t}function Ec(e){const t=aC(e);return t.length===1?t[0].toString(16):null}function lC(e,t){const n=e.length;let r=e.charCodeAt(t),s;return r>=55296&&r<=56319&&n>t+1&&(s=e.charCodeAt(t+1),s>=56320&&s<=57343)?(r-55296)*1024+s-56320+65536:r}function im(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function Pc(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,s=im(t);typeof Cn.hooks.addPack=="function"&&!r?Cn.hooks.addPack(e,im(t)):Cn.styles[e]=te(te({},Cn.styles[e]||{}),s),e==="fas"&&Pc("fa",t)}const{styles:Bi,shims:cC}=Cn,om=Object.keys(xc),uC=om.reduce((e,t)=>(e[t]=Object.keys(xc[t]),e),{});let Ac=null,am={},lm={},cm={},um={},fm={};function fC(e){return~KT.indexOf(e)}function dC(e,t){const n=t.split("-"),r=n[0],s=n.slice(1).join("-");return r===e&&s!==""&&!fC(s)?s:null}const dm=()=>{const e=r=>Cc(Bi,(s,o,a)=>(s[a]=Cc(o,r,{}),s),{});am=e((r,s,o)=>(s[3]&&(r[s[3]]=o),s[2]&&s[2].filter(c=>typeof c=="number").forEach(c=>{r[c.toString(16)]=o}),r)),lm=e((r,s,o)=>(r[o]=o,s[2]&&s[2].filter(c=>typeof c=="string").forEach(c=>{r[c]=o}),r)),fm=e((r,s,o)=>{const a=s[2];return r[o]=o,a.forEach(c=>{r[c]=o}),r});const t="far"in Bi||xe.autoFetchSvg,n=Cc(cC,(r,s)=>{const o=s[0];let a=s[1];const c=s[2];return a==="far"&&!t&&(a="fas"),typeof o=="string"&&(r.names[o]={prefix:a,iconName:c}),typeof o=="number"&&(r.unicodes[o.toString(16)]={prefix:a,iconName:c}),r},{names:{},unicodes:{}});cm=n.names,um=n.unicodes,Ac=na(xe.styleDefault,{family:xe.familyDefault})};JT(e=>{Ac=na(e.styleDefault,{family:xe.familyDefault})}),dm();function Mc(e,t){return(am[e]||{})[t]}function hC(e,t){return(lm[e]||{})[t]}function Jr(e,t){return(fm[e]||{})[t]}function hm(e){return cm[e]||{prefix:null,iconName:null}}function pC(e){const t=um[e],n=Mc("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Sr(){return Ac}const pm=()=>({prefix:null,iconName:null,rest:[]});function mC(e){let t=wt;const n=om.reduce((r,s)=>(r[s]="".concat(xe.cssPrefix,"-").concat(s),r),{});return Bp.forEach(r=>{(e.includes(n[r])||e.some(s=>uC[r].includes(s)))&&(t=r)}),t}function na(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=wt}=t,r=zT[n][e];if(n===Jo&&!e)return"fad";const s=Xp[n][e]||Xp[n][r],o=e in Cn.styles?e:null;return s||o||null}function gC(e){let t=[],n=null;return e.forEach(r=>{const s=dC(xe.cssPrefix,r);s?n=s:r&&t.push(r)}),{iconName:n,rest:t}}function mm(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function ra(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const s=fc.concat(IT),o=mm(e.filter(p=>s.includes(p))),a=mm(e.filter(p=>!fc.includes(p))),c=o.filter(p=>(r=p,!Vp.includes(p))),[u=null]=c,d=mC(o),h=te(te({},gC(a)),{},{prefix:na(u,{family:d})});return te(te(te({},h),bC({values:e,family:d,styles:Bi,config:xe,canonical:h,givenPrefix:r})),yC(n,r,h))}function yC(e,t,n){let{prefix:r,iconName:s}=n;if(e||!r||!s)return{prefix:r,iconName:s};const o=t==="fa"?hm(s):{},a=Jr(r,s);return s=o.iconName||a||s,r=o.prefix||r,r==="far"&&!Bi.far&&Bi.fas&&!xe.autoFetchSvg&&(r="fas"),{prefix:r,iconName:s}}const xC=Bp.filter(e=>e!==wt||e!==Jo),vC=Object.keys(uc).filter(e=>e!==wt).map(e=>Object.keys(uc[e])).flat();function bC(e){const{values:t,family:n,canonical:r,givenPrefix:s="",styles:o={},config:a={}}=e,c=n===Jo,u=t.includes("fa-duotone")||t.includes("fad"),d=a.familyDefault==="duotone",h=r.prefix==="fad"||r.prefix==="fa-duotone";if(!c&&(u||d||h)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&xC.includes(n)&&(Object.keys(o).find(m=>vC.includes(m))||a.autoFetchSvg)){const m=CT.get(n).defaultShortPrefixId;r.prefix=m,r.iconName=Jr(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||s==="fa")&&(r.prefix=Sr()||"fas"),r}class wC{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const s=n.reduce(this._pullDefinitions,{});Object.keys(s).forEach(o=>{this.definitions[o]=te(te({},this.definitions[o]||{}),s[o]),Pc(o,s[o]);const a=xc[wt][o];a&&Pc(a,s[o]),dm()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(s=>{const{prefix:o,iconName:a,icon:c}=r[s],u=c[2];t[o]||(t[o]={}),u.length>0&&u.forEach(d=>{typeof d=="string"&&(t[o][d]=c)}),t[o][a]=c}),t}}let gm=[],ks={};const js={},SC=Object.keys(js);function TC(e,t){let{mixoutsTo:n}=t;return gm=e,ks={},Object.keys(js).forEach(r=>{SC.indexOf(r)===-1&&delete js[r]}),gm.forEach(r=>{const s=r.mixout?r.mixout():{};if(Object.keys(s).forEach(o=>{typeof s[o]=="function"&&(n[o]=s[o]),typeof s[o]=="object"&&Object.keys(s[o]).forEach(a=>{n[o]||(n[o]={}),n[o][a]=s[o][a]})}),r.hooks){const o=r.hooks();Object.keys(o).forEach(a=>{ks[a]||(ks[a]=[]),ks[a].push(o[a])})}r.provides&&r.provides(js)}),n}function Oc(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),s=2;s<n;s++)r[s-2]=arguments[s];return(ks[e]||[]).forEach(a=>{t=a.apply(null,[t,...r])}),t}function Qr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(ks[e]||[]).forEach(o=>{o.apply(null,n)})}function Tr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return js[e]?js[e].apply(null,t):void 0}function $c(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Sr();if(t)return t=Jr(n,t)||t,sm(ym.definitions,n,t)||sm(Cn.styles,n,t)}const ym=new wC,Wt={noAuto:()=>{xe.autoReplaceSvg=!1,xe.observeMutations=!1,Qr("noAuto")},config:xe,dom:{i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Un?(Qr("beforeI2svg",e),Tr("pseudoElements2svg",e),Tr("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;xe.autoReplaceSvg===!1&&(xe.autoReplaceSvg=!0),xe.observeMutations=!0,oC(()=>{CC({autoReplaceSvgRoot:t}),Qr("watch",e)})}},parse:{icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Jr(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=na(e[0]);return{prefix:n,iconName:Jr(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(xe.cssPrefix,"-"))>-1||e.match(GT))){const t=ra(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Sr(),iconName:Jr(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=Sr();return{prefix:t,iconName:Jr(t,e)||e}}}},library:ym,findIconDefinition:$c,toHtml:Vi},CC=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=Ke}=e;(Object.keys(Cn.styles).length>0||xe.autoFetchSvg)&&Un&&xe.autoReplaceSvg&&Wt.dom.i2svg({node:t})};function sa(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Vi(n))}}),Object.defineProperty(e,"node",{get:function(){if(!Un)return;const n=Ke.createElement("div");return n.innerHTML=e.html,n.children}}),e}function EC(e){let{children:t,main:n,mask:r,attributes:s,styles:o,transform:a}=e;if(Sc(a)&&n.found&&!r.found){const{width:c,height:u}=n,d={x:c/u/2,y:.5};s.style=ea(te(te({},o),{},{"transform-origin":"".concat(d.x+a.x/16,"em ").concat(d.y+a.y/16,"em")}))}return[{tag:"svg",attributes:s,children:t}]}function PC(e){let{prefix:t,iconName:n,children:r,attributes:s,symbol:o}=e;const a=o===!0?"".concat(t,"-").concat(xe.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:te(te({},s),{},{id:a}),children:r}]}]}function _c(e){const{icons:{main:t,mask:n},prefix:r,iconName:s,transform:o,symbol:a,title:c,maskId:u,titleId:d,extra:h,watchable:p=!1}=e,{width:m,height:x}=n.found?n:t,S=OT.includes(r),b=[xe.replacementClass,s?"".concat(xe.cssPrefix,"-").concat(s):""].filter(P=>h.classes.indexOf(P)===-1).filter(P=>P!==""||!!P).concat(h.classes).join(" ");let T={children:[],attributes:te(te({},h.attributes),{},{"data-prefix":r,"data-icon":s,class:b,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(x)})};const v=S&&!~h.classes.indexOf("fa-fw")?{width:"".concat(m/x*16*.0625,"em")}:{};p&&(T.attributes[Zr]=""),c&&(T.children.push({tag:"title",attributes:{id:T.attributes["aria-labelledby"]||"title-".concat(d||Fi())},children:[c]}),delete T.attributes.title);const A=te(te({},T),{},{prefix:r,iconName:s,main:t,mask:n,maskId:u,transform:o,symbol:a,styles:te(te({},v),h.styles)}),{children:C,attributes:I}=n.found&&t.found?Tr("generateAbstractMask",A)||{children:[],attributes:{}}:Tr("generateAbstractIcon",A)||{children:[],attributes:{}};return A.children=C,A.attributes=I,a?PC(A):EC(A)}function xm(e){const{content:t,width:n,height:r,transform:s,title:o,extra:a,watchable:c=!1}=e,u=te(te(te({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});c&&(u[Zr]="");const d=te({},a.styles);Sc(s)&&(d.transform=rC({transform:s,startCentered:!0,width:n,height:r}),d["-webkit-transform"]=d.transform);const h=ea(d);h.length>0&&(u.style=h);const p=[];return p.push({tag:"span",attributes:u,children:[t]}),o&&p.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),p}function AC(e){const{content:t,title:n,extra:r}=e,s=te(te(te({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=ea(r.styles);o.length>0&&(s.style=o);const a=[];return a.push({tag:"span",attributes:s,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}const{styles:Ic}=Cn;function Dc(e){const t=e[0],n=e[1],[r]=e.slice(4);let s=null;return Array.isArray(r)?s={tag:"g",attributes:{class:"".concat(xe.cssPrefix,"-").concat(bc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(xe.cssPrefix,"-").concat(bc.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(xe.cssPrefix,"-").concat(bc.PRIMARY),fill:"currentColor",d:r[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:s}}const MC={found:!1,width:512,height:512};function OC(e,t){!qp&&!xe.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Nc(e,t){let n=t;return t==="fa"&&xe.styleDefault!==null&&(t=Sr()),new Promise((r,s)=>{if(n==="fa"){const o=hm(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&Ic[t]&&Ic[t][e]){const o=Ic[t][e];return r(Dc(o))}OC(e,t),r(te(te({},MC),{},{icon:xe.showMissingIcons&&e?Tr("missingIconAbstract")||{}:{}}))})}const vm=()=>{},kc=xe.measurePerformance&&Zo&&Zo.mark&&Zo.measure?Zo:{mark:vm,measure:vm},Wi='FA "6.7.2"',$C=e=>(kc.mark("".concat(Wi," ").concat(e," begins")),()=>bm(e)),bm=e=>{kc.mark("".concat(Wi," ").concat(e," ends")),kc.measure("".concat(Wi," ").concat(e),"".concat(Wi," ").concat(e," begins"),"".concat(Wi," ").concat(e," ends"))};var jc={begin:$C,end:bm};const ia=()=>{};function wm(e){return typeof(e.getAttribute?e.getAttribute(Zr):null)=="string"}function _C(e){const t=e.getAttribute?e.getAttribute(pc):null,n=e.getAttribute?e.getAttribute(mc):null;return t&&n}function IC(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(xe.replacementClass)}function DC(){return xe.autoReplaceSvg===!0?oa.replace:oa[xe.autoReplaceSvg]||oa.replace}function NC(e){return Ke.createElementNS("http://www.w3.org/2000/svg",e)}function kC(e){return Ke.createElement(e)}function Sm(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?NC:kC}=t;if(typeof e=="string")return Ke.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(o){r.setAttribute(o,e.attributes[o])}),(e.children||[]).forEach(function(o){r.appendChild(Sm(o,{ceFn:n}))}),r}function jC(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const oa={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(Sm(n),t)}),t.getAttribute(Zr)===null&&xe.keepOriginalSource){let n=Ke.createComment(jC(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~wc(t).indexOf(xe.replacementClass))return oa.replace(e);const r=new RegExp("".concat(xe.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const o=n[0].attributes.class.split(" ").reduce((a,c)=>(c===xe.replacementClass||c.match(r)?a.toSvg.push(c):a.toNode.push(c),a),{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}const s=n.map(o=>Vi(o)).join(`
|
|
580
|
+
`);t.setAttribute(Zr,""),t.innerHTML=s}};function Tm(e){e()}function Cm(e,t){const n=typeof t=="function"?t:ia;if(e.length===0)n();else{let r=Tm;xe.mutateApproach===WT&&(r=br.requestAnimationFrame||Tm),r(()=>{const s=DC(),o=jc.begin("mutate");e.map(s),o(),n()})}}let Lc=!1;function Em(){Lc=!0}function Rc(){Lc=!1}let aa=null;function Pm(e){if(!Lp||!xe.observeMutations)return;const{treeCallback:t=ia,nodeCallback:n=ia,pseudoElementsCallback:r=ia,observeMutationsRoot:s=Ke}=e;aa=new Lp(o=>{if(Lc)return;const a=Sr();Ns(o).forEach(c=>{if(c.type==="childList"&&c.addedNodes.length>0&&!wm(c.addedNodes[0])&&(xe.searchPseudoElements&&r(c.target),t(c.target)),c.type==="attributes"&&c.target.parentNode&&xe.searchPseudoElements&&r(c.target.parentNode),c.type==="attributes"&&wm(c.target)&&~qT.indexOf(c.attributeName))if(c.attributeName==="class"&&_C(c.target)){const{prefix:u,iconName:d}=ra(wc(c.target));c.target.setAttribute(pc,u||a),d&&c.target.setAttribute(mc,d)}else IC(c.target)&&n(c.target)})}),Un&&aa.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function LC(){aa&&aa.disconnect()}function RC(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,s)=>{const o=s.split(":"),a=o[0],c=o.slice(1);return a&&c.length>0&&(r[a]=c.join(":").trim()),r},{})),n}function FC(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let s=ra(wc(e));return s.prefix||(s.prefix=Sr()),t&&n&&(s.prefix=t,s.iconName=n),s.iconName&&s.prefix||(s.prefix&&r.length>0&&(s.iconName=hC(s.prefix,e.innerText)||Mc(s.prefix,Ec(e.innerText))),!s.iconName&&xe.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(s.iconName=e.firstChild.data)),s}function VC(e){const t=Ns(e.attributes).reduce((s,o)=>(s.name!=="class"&&s.name!=="style"&&(s[o.name]=o.value),s),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return xe.autoA11y&&(n?t["aria-labelledby"]="".concat(xe.replacementClass,"-title-").concat(r||Fi()):(t["aria-hidden"]="true",t.focusable="false")),t}function BC(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Tn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Am(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:s}=FC(e),o=VC(e),a=Oc("parseNodeAttributes",{},e);let c=t.styleParser?RC(e):[];return te({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Tn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:c,attributes:o}},a)}const{styles:WC}=Cn;function Mm(e){const t=xe.autoReplaceSvg==="nest"?Am(e,{styleParser:!1}):Am(e);return~t.extra.classes.indexOf(Zp)?Tr("generateLayersText",e,t):Tr("generateSvgReplacementMutation",e,t)}function UC(){return[...PT,...fc]}function Om(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Un)return Promise.resolve();const n=Ke.documentElement.classList,r=h=>n.add("".concat(Hp,"-").concat(h)),s=h=>n.remove("".concat(Hp,"-").concat(h)),o=xe.autoFetchSvg?UC():Vp.concat(Object.keys(WC));o.includes("fa")||o.push("fa");const a=[".".concat(Zp,":not([").concat(Zr,"])")].concat(o.map(h=>".".concat(h,":not([").concat(Zr,"])"))).join(", ");if(a.length===0)return Promise.resolve();let c=[];try{c=Ns(e.querySelectorAll(a))}catch{}if(c.length>0)r("pending"),s("complete");else return Promise.resolve();const u=jc.begin("onTree"),d=c.reduce((h,p)=>{try{const m=Mm(p);m&&h.push(m)}catch(m){qp||m.name==="MissingIcon"&&console.error(m)}return h},[]);return new Promise((h,p)=>{Promise.all(d).then(m=>{Cm(m,()=>{r("active"),r("complete"),s("pending"),typeof t=="function"&&t(),u(),h()})}).catch(m=>{u(),p(m)})})}function zC(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Mm(e).then(n=>{n&&Cm([n],t)})}function GC(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:$c(t||{});let{mask:s}=n;return s&&(s=(s||{}).icon?s:$c(s||{})),e(r,te(te({},n),{},{mask:s}))}}const YC=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Tn,symbol:r=!1,mask:s=null,maskId:o=null,title:a=null,titleId:c=null,classes:u=[],attributes:d={},styles:h={}}=t;if(!e)return;const{prefix:p,iconName:m,icon:x}=e;return sa(te({type:"icon"},e),()=>(Qr("beforeDOMElementCreation",{iconDefinition:e,params:t}),xe.autoA11y&&(a?d["aria-labelledby"]="".concat(xe.replacementClass,"-title-").concat(c||Fi()):(d["aria-hidden"]="true",d.focusable="false")),_c({icons:{main:Dc(x),mask:s?Dc(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:p,iconName:m,transform:te(te({},Tn),n),symbol:r,title:a,maskId:o,titleId:c,extra:{attributes:d,styles:h,classes:u}})))};var HC={mixout(){return{icon:GC(YC)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Om,e.nodeCallback=zC,e}}},provides(e){e.i2svg=function(t){const{node:n=Ke,callback:r=()=>{}}=t;return Om(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:s,titleId:o,prefix:a,transform:c,symbol:u,mask:d,maskId:h,extra:p}=n;return new Promise((m,x)=>{Promise.all([Nc(r,a),d.iconName?Nc(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(S=>{let[b,T]=S;m([t,_c({icons:{main:b,mask:T},prefix:a,iconName:r,transform:c,symbol:u,maskId:h,title:s,titleId:o,extra:p,watchable:!0})])}).catch(x)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:s,transform:o,styles:a}=t;const c=ea(a);c.length>0&&(r.style=c);let u;return Sc(o)&&(u=Tr("generateAbstractTransformGrouping",{main:s,transform:o,containerWidth:s.width,iconWidth:s.width})),n.push(u||s.icon),{children:n,attributes:r}}}},qC={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return sa({type:"layer"},()=>{Qr("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(s=>{Array.isArray(s)?s.map(o=>{r=r.concat(o.abstract)}):r=r.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(xe.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},KC={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:s={},styles:o={}}=t;return sa({type:"counter",content:e},()=>(Qr("beforeDOMElementCreation",{content:e,params:t}),AC({content:e.toString(),title:n,extra:{attributes:s,styles:o,classes:["".concat(xe.cssPrefix,"-layers-counter"),...r]}})))}}}},XC={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Tn,title:r=null,classes:s=[],attributes:o={},styles:a={}}=t;return sa({type:"text",content:e},()=>(Qr("beforeDOMElementCreation",{content:e,params:t}),xm({content:e,transform:te(te({},Tn),n),title:r,extra:{attributes:o,styles:a,classes:["".concat(xe.cssPrefix,"-layers-text"),...s]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:s,extra:o}=n;let a=null,c=null;if(Rp){const u=parseInt(getComputedStyle(t).fontSize,10),d=t.getBoundingClientRect();a=d.width/u,c=d.height/u}return xe.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,xm({content:t.innerHTML,width:a,height:c,transform:s,title:r,extra:o,watchable:!0})])}}};const ZC=new RegExp('"',"ug"),$m=[1105920,1112319],_m=te(te(te(te({},{FontAwesome:{normal:"fas",400:"fas"}}),TT),VT),DT),Fc=Object.keys(_m).reduce((e,t)=>(e[t.toLowerCase()]=_m[t],e),{}),JC=Object.keys(Fc).reduce((e,t)=>{const n=Fc[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function QC(e){const t=e.replace(ZC,""),n=lC(t,0),r=n>=$m[0]&&n<=$m[1],s=t.length===2?t[0]===t[1]:!1;return{value:Ec(s?t[0]:t),isSecondary:r||s}}function eE(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),s=isNaN(r)?"normal":r;return(Fc[n]||{})[s]||JC[n]}function Im(e,t){const n="".concat(BT).concat(t.replace(":","-"));return new Promise((r,s)=>{if(e.getAttribute(n)!==null)return r();const a=Ns(e.children).filter(m=>m.getAttribute(hc)===t)[0],c=br.getComputedStyle(e,t),u=c.getPropertyValue("font-family"),d=u.match(YT),h=c.getPropertyValue("font-weight"),p=c.getPropertyValue("content");if(a&&!d)return e.removeChild(a),r();if(d&&p!=="none"&&p!==""){const m=c.getPropertyValue("content");let x=eE(u,h);const{value:S,isSecondary:b}=QC(m),T=d[0].startsWith("FontAwesome");let v=Mc(x,S),A=v;if(T){const C=pC(S);C.iconName&&C.prefix&&(v=C.iconName,x=C.prefix)}if(v&&!b&&(!a||a.getAttribute(pc)!==x||a.getAttribute(mc)!==A)){e.setAttribute(n,A),a&&e.removeChild(a);const C=BC(),{extra:I}=C;I.attributes[hc]=t,Nc(v,x).then(P=>{const D=_c(te(te({},C),{},{icons:{main:P,mask:pm()},prefix:x,iconName:A,extra:I,watchable:!0})),R=Ke.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(R,e.firstChild):e.appendChild(R),R.outerHTML=D.map(F=>Vi(F)).join(`
|
|
581
|
+
`),e.removeAttribute(n),r()}).catch(s)}else r()}else r()})}function tE(e){return Promise.all([Im(e,"::before"),Im(e,"::after")])}function nE(e){return e.parentNode!==document.head&&!~UT.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(hc)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Dm(e){if(Un)return new Promise((t,n)=>{const r=Ns(e.querySelectorAll("*")).filter(nE).map(tE),s=jc.begin("searchPseudoElements");Em(),Promise.all(r).then(()=>{s(),Rc(),t()}).catch(()=>{s(),Rc(),n()})})}var rE={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Dm,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=Ke}=t;xe.searchPseudoElements&&Dm(n)}}};let Nm=!1;var sE={mixout(){return{dom:{unwatch(){Em(),Nm=!0}}}},hooks(){return{bootstrap(){Pm(Oc("mutationObserverCallbacks",{}))},noAuto(){LC()},watch(e){const{observeMutationsRoot:t}=e;Nm?Rc():Pm(Oc("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const km=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const s=r.toLowerCase().split("-"),o=s[0];let a=s.slice(1).join("-");if(o&&a==="h")return n.flipX=!0,n;if(o&&a==="v")return n.flipY=!0,n;if(a=parseFloat(a),isNaN(a))return n;switch(o){case"grow":n.size=n.size+a;break;case"shrink":n.size=n.size-a;break;case"left":n.x=n.x-a;break;case"right":n.x=n.x+a;break;case"up":n.y=n.y-a;break;case"down":n.y=n.y+a;break;case"rotate":n.rotate=n.rotate+a;break}return n},t)};var iE={mixout(){return{parse:{transform:e=>km(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=km(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:s,iconWidth:o}=t;const a={transform:"translate(".concat(s/2," 256)")},c="translate(".concat(r.x*32,", ").concat(r.y*32,") "),u="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),d="rotate(".concat(r.rotate," 0 0)"),h={transform:"".concat(c," ").concat(u," ").concat(d)},p={transform:"translate(".concat(o/2*-1," -256)")},m={outer:a,inner:h,path:p};return{tag:"g",attributes:te({},m.outer),children:[{tag:"g",attributes:te({},m.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:te(te({},n.icon.attributes),m.path)}]}]}}}};const Vc={x:0,y:0,width:"100%",height:"100%"};function jm(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function oE(e){return e.tag==="g"?e.children:[e]}var aE={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?ra(n.split(" ").map(s=>s.trim())):pm();return r.prefix||(r.prefix=Sr()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:s,mask:o,maskId:a,transform:c}=t;const{width:u,icon:d}=s,{width:h,icon:p}=o,m=nC({transform:c,containerWidth:h,iconWidth:u}),x={tag:"rect",attributes:te(te({},Vc),{},{fill:"white"})},S=d.children?{children:d.children.map(jm)}:{},b={tag:"g",attributes:te({},m.inner),children:[jm(te({tag:d.tag,attributes:te(te({},d.attributes),m.path)},S))]},T={tag:"g",attributes:te({},m.outer),children:[b]},v="mask-".concat(a||Fi()),A="clip-".concat(a||Fi()),C={tag:"mask",attributes:te(te({},Vc),{},{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[x,T]},I={tag:"defs",children:[{tag:"clipPath",attributes:{id:A},children:oE(p)},C]};return n.push(I,{tag:"rect",attributes:te({fill:"currentColor","clip-path":"url(#".concat(A,")"),mask:"url(#".concat(v,")")},Vc)}),{children:n,attributes:r}}}},lE={provides(e){let t=!1;br.matchMedia&&(t=br.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},s={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:te(te({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const o=te(te({},s),{},{attributeName:"opacity"}),a={tag:"circle",attributes:te(te({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:te(te({},s),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:te(te({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(a),n.push({tag:"path",attributes:te(te({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:te(te({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:te(te({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:te(te({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},cE={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},uE=[iC,HC,qC,KC,XC,rE,sE,iE,aE,lE,cE];TC(uE,{mixoutsTo:Wt}),Wt.noAuto,Wt.config,Wt.library,Wt.dom;const Bc=Wt.parse;Wt.findIconDefinition,Wt.toHtml;const fE=Wt.icon;Wt.layer,Wt.text,Wt.counter;var la={exports:{}},ca={exports:{}},Re={};/** @license React v16.13.1
|
|
582
582
|
* react-is.production.min.js
|
|
583
583
|
*
|
|
584
584
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
585
585
|
*
|
|
586
586
|
* This source code is licensed under the MIT license found in the
|
|
587
587
|
* LICENSE file in the root directory of this source tree.
|
|
588
|
-
*/var
|
|
588
|
+
*/var Lm;function dE(){if(Lm)return Re;Lm=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function C(P){if(typeof P=="object"&&P!==null){var D=P.$$typeof;switch(D){case t:switch(P=P.type,P){case u:case d:case r:case o:case s:case p:return P;default:switch(P=P&&P.$$typeof,P){case c:case h:case S:case x:case a:return P;default:return D}}case n:return D}}}function I(P){return C(P)===d}return Re.AsyncMode=u,Re.ConcurrentMode=d,Re.ContextConsumer=c,Re.ContextProvider=a,Re.Element=t,Re.ForwardRef=h,Re.Fragment=r,Re.Lazy=S,Re.Memo=x,Re.Portal=n,Re.Profiler=o,Re.StrictMode=s,Re.Suspense=p,Re.isAsyncMode=function(P){return I(P)||C(P)===u},Re.isConcurrentMode=I,Re.isContextConsumer=function(P){return C(P)===c},Re.isContextProvider=function(P){return C(P)===a},Re.isElement=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===t},Re.isForwardRef=function(P){return C(P)===h},Re.isFragment=function(P){return C(P)===r},Re.isLazy=function(P){return C(P)===S},Re.isMemo=function(P){return C(P)===x},Re.isPortal=function(P){return C(P)===n},Re.isProfiler=function(P){return C(P)===o},Re.isStrictMode=function(P){return C(P)===s},Re.isSuspense=function(P){return C(P)===p},Re.isValidElementType=function(P){return typeof P=="string"||typeof P=="function"||P===r||P===d||P===o||P===s||P===p||P===m||typeof P=="object"&&P!==null&&(P.$$typeof===S||P.$$typeof===x||P.$$typeof===a||P.$$typeof===c||P.$$typeof===h||P.$$typeof===T||P.$$typeof===v||P.$$typeof===A||P.$$typeof===b)},Re.typeOf=C,Re}var Fe={};/** @license React v16.13.1
|
|
589
589
|
* react-is.development.js
|
|
590
590
|
*
|
|
591
591
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
592
592
|
*
|
|
593
593
|
* This source code is licensed under the MIT license found in the
|
|
594
594
|
* LICENSE file in the root directory of this source tree.
|
|
595
|
-
*/var
|
|
595
|
+
*/var Rm;function hE(){return Rm||(Rm=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function C(ie){return typeof ie=="string"||typeof ie=="function"||ie===r||ie===d||ie===o||ie===s||ie===p||ie===m||typeof ie=="object"&&ie!==null&&(ie.$$typeof===S||ie.$$typeof===x||ie.$$typeof===a||ie.$$typeof===c||ie.$$typeof===h||ie.$$typeof===T||ie.$$typeof===v||ie.$$typeof===A||ie.$$typeof===b)}function I(ie){if(typeof ie=="object"&&ie!==null){var me=ie.$$typeof;switch(me){case t:var De=ie.type;switch(De){case u:case d:case r:case o:case s:case p:return De;default:var ft=De&&De.$$typeof;switch(ft){case c:case h:case S:case x:case a:return ft;default:return me}}case n:return me}}}var P=u,D=d,R=c,F=a,W=t,Q=h,ee=r,ae=S,ge=x,de=n,le=o,ue=s,Y=p,z=!1;function K(ie){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),$(ie)||I(ie)===u}function $(ie){return I(ie)===d}function k(ie){return I(ie)===c}function X(ie){return I(ie)===a}function U(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===t}function re(ie){return I(ie)===h}function B(ie){return I(ie)===r}function J(ie){return I(ie)===S}function oe(ie){return I(ie)===x}function se(ie){return I(ie)===n}function fe(ie){return I(ie)===o}function Ee(ie){return I(ie)===s}function Ve(ie){return I(ie)===p}Fe.AsyncMode=P,Fe.ConcurrentMode=D,Fe.ContextConsumer=R,Fe.ContextProvider=F,Fe.Element=W,Fe.ForwardRef=Q,Fe.Fragment=ee,Fe.Lazy=ae,Fe.Memo=ge,Fe.Portal=de,Fe.Profiler=le,Fe.StrictMode=ue,Fe.Suspense=Y,Fe.isAsyncMode=K,Fe.isConcurrentMode=$,Fe.isContextConsumer=k,Fe.isContextProvider=X,Fe.isElement=U,Fe.isForwardRef=re,Fe.isFragment=B,Fe.isLazy=J,Fe.isMemo=oe,Fe.isPortal=se,Fe.isProfiler=fe,Fe.isStrictMode=Ee,Fe.isSuspense=Ve,Fe.isValidElementType=C,Fe.typeOf=I}()),Fe}var Fm;function Vm(){return Fm||(Fm=1,process.env.NODE_ENV==="production"?ca.exports=dE():ca.exports=hE()),ca.exports}/*
|
|
596
596
|
object-assign
|
|
597
597
|
(c) Sindre Sorhus
|
|
598
598
|
@license MIT
|
|
599
|
-
*/var
|
|
600
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
601
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
599
|
+
*/var Wc,Bm;function pE(){if(Bm)return Wc;Bm=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function s(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(a).map(function(h){return a[h]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(h){d[h]=h}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Wc=s()?Object.assign:function(o,a){for(var c,u=r(o),d,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var p in c)t.call(c,p)&&(u[p]=c[p]);if(e){d=e(c);for(var m=0;m<d.length;m++)n.call(c,d[m])&&(u[d[m]]=c[d[m]])}}return u},Wc}var Uc,Wm;function zc(){if(Wm)return Uc;Wm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Uc=e,Uc}var Gc,Um;function zm(){return Um||(Um=1,Gc=Function.call.bind(Object.prototype.hasOwnProperty)),Gc}var Yc,Gm;function mE(){if(Gm)return Yc;Gm=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=zc(),n={},r=zm();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function s(o,a,c,u,d){if(process.env.NODE_ENV!=="production"){for(var h in o)if(r(o,h)){var p;try{if(typeof o[h]!="function"){var m=Error((u||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}p=o[h](a,h,u,c,null,t)}catch(S){p=S}if(p&&!(p instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var x=d?d():"";e("Failed "+c+" type: "+p.message+(x??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Yc=s,Yc}var Hc,Ym;function gE(){if(Ym)return Hc;Ym=1;var e=Vm(),t=pE(),n=zc(),r=zm(),s=mE(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return Hc=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function p($){var k=$&&(d&&$[d]||$[h]);if(typeof k=="function")return k}var m="<<anonymous>>",x={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:A(),arrayOf:C,element:I(),elementType:P(),instanceOf:D,node:Q(),objectOf:F,oneOf:R,oneOfType:W,shape:ae,exact:ge};function S($,k){return $===k?$!==0||1/$===1/k:$!==$&&k!==k}function b($,k){this.message=$,this.data=k&&typeof k=="object"?k:{},this.stack=""}b.prototype=Error.prototype;function T($){if(process.env.NODE_ENV!=="production")var k={},X=0;function U(B,J,oe,se,fe,Ee,Ve){if(se=se||m,Ee=Ee||oe,Ve!==n){if(u){var ie=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw ie.name="Invariant Violation",ie}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var me=se+":"+oe;!k[me]&&X<3&&(o("You are manually calling a React.PropTypes validation function for the `"+Ee+"` prop on `"+se+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),k[me]=!0,X++)}}return J[oe]==null?B?J[oe]===null?new b("The "+fe+" `"+Ee+"` is marked as required "+("in `"+se+"`, but its value is `null`.")):new b("The "+fe+" `"+Ee+"` is marked as required in "+("`"+se+"`, but its value is `undefined`.")):null:$(J,oe,se,fe,Ee)}var re=U.bind(null,!1);return re.isRequired=U.bind(null,!0),re}function v($){function k(X,U,re,B,J,oe){var se=X[U],fe=ue(se);if(fe!==$){var Ee=Y(se);return new b("Invalid "+B+" `"+J+"` of type "+("`"+Ee+"` supplied to `"+re+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return T(k)}function A(){return T(a)}function C($){function k(X,U,re,B,J){if(typeof $!="function")return new b("Property `"+J+"` of component `"+re+"` has invalid PropType notation inside arrayOf.");var oe=X[U];if(!Array.isArray(oe)){var se=ue(oe);return new b("Invalid "+B+" `"+J+"` of type "+("`"+se+"` supplied to `"+re+"`, expected an array."))}for(var fe=0;fe<oe.length;fe++){var Ee=$(oe,fe,re,B,J+"["+fe+"]",n);if(Ee instanceof Error)return Ee}return null}return T(k)}function I(){function $(k,X,U,re,B){var J=k[X];if(!c(J)){var oe=ue(J);return new b("Invalid "+re+" `"+B+"` of type "+("`"+oe+"` supplied to `"+U+"`, expected a single ReactElement."))}return null}return T($)}function P(){function $(k,X,U,re,B){var J=k[X];if(!e.isValidElementType(J)){var oe=ue(J);return new b("Invalid "+re+" `"+B+"` of type "+("`"+oe+"` supplied to `"+U+"`, expected a single ReactElement type."))}return null}return T($)}function D($){function k(X,U,re,B,J){if(!(X[U]instanceof $)){var oe=$.name||m,se=K(X[U]);return new b("Invalid "+B+" `"+J+"` of type "+("`"+se+"` supplied to `"+re+"`, expected ")+("instance of `"+oe+"`."))}return null}return T(k)}function R($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function k(X,U,re,B,J){for(var oe=X[U],se=0;se<$.length;se++)if(S(oe,$[se]))return null;var fe=JSON.stringify($,function(Ve,ie){var me=Y(ie);return me==="symbol"?String(ie):ie});return new b("Invalid "+B+" `"+J+"` of value `"+String(oe)+"` "+("supplied to `"+re+"`, expected one of "+fe+"."))}return T(k)}function F($){function k(X,U,re,B,J){if(typeof $!="function")return new b("Property `"+J+"` of component `"+re+"` has invalid PropType notation inside objectOf.");var oe=X[U],se=ue(oe);if(se!=="object")return new b("Invalid "+B+" `"+J+"` of type "+("`"+se+"` supplied to `"+re+"`, expected an object."));for(var fe in oe)if(r(oe,fe)){var Ee=$(oe,fe,re,B,J+"."+fe,n);if(Ee instanceof Error)return Ee}return null}return T(k)}function W($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var k=0;k<$.length;k++){var X=$[k];if(typeof X!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+z(X)+" at index "+k+"."),a}function U(re,B,J,oe,se){for(var fe=[],Ee=0;Ee<$.length;Ee++){var Ve=$[Ee],ie=Ve(re,B,J,oe,se,n);if(ie==null)return null;ie.data&&r(ie.data,"expectedType")&&fe.push(ie.data.expectedType)}var me=fe.length>0?", expected one of type ["+fe.join(", ")+"]":"";return new b("Invalid "+oe+" `"+se+"` supplied to "+("`"+J+"`"+me+"."))}return T(U)}function Q(){function $(k,X,U,re,B){return de(k[X])?null:new b("Invalid "+re+" `"+B+"` supplied to "+("`"+U+"`, expected a ReactNode."))}return T($)}function ee($,k,X,U,re){return new b(($||"React class")+": "+k+" type `"+X+"."+U+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+re+"`.")}function ae($){function k(X,U,re,B,J){var oe=X[U],se=ue(oe);if(se!=="object")return new b("Invalid "+B+" `"+J+"` of type `"+se+"` "+("supplied to `"+re+"`, expected `object`."));for(var fe in $){var Ee=$[fe];if(typeof Ee!="function")return ee(re,B,J,fe,Y(Ee));var Ve=Ee(oe,fe,re,B,J+"."+fe,n);if(Ve)return Ve}return null}return T(k)}function ge($){function k(X,U,re,B,J){var oe=X[U],se=ue(oe);if(se!=="object")return new b("Invalid "+B+" `"+J+"` of type `"+se+"` "+("supplied to `"+re+"`, expected `object`."));var fe=t({},X[U],$);for(var Ee in fe){var Ve=$[Ee];if(r($,Ee)&&typeof Ve!="function")return ee(re,B,J,Ee,Y(Ve));if(!Ve)return new b("Invalid "+B+" `"+J+"` key `"+Ee+"` supplied to `"+re+"`.\nBad object: "+JSON.stringify(X[U],null," ")+`
|
|
600
|
+
Valid keys: `+JSON.stringify(Object.keys($),null," "));var ie=Ve(oe,Ee,re,B,J+"."+Ee,n);if(ie)return ie}return null}return T(k)}function de($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(de);if($===null||c($))return!0;var k=p($);if(k){var X=k.call($),U;if(k!==$.entries){for(;!(U=X.next()).done;)if(!de(U.value))return!1}else for(;!(U=X.next()).done;){var re=U.value;if(re&&!de(re[1]))return!1}}else return!1;return!0;default:return!1}}function le($,k){return $==="symbol"?!0:k?k["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&k instanceof Symbol:!1}function ue($){var k=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":le(k,$)?"symbol":k}function Y($){if(typeof $>"u"||$===null)return""+$;var k=ue($);if(k==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return k}function z($){var k=Y($);switch(k){case"array":case"object":return"an "+k;case"boolean":case"date":case"regexp":return"a "+k;default:return k}}function K($){return!$.constructor||!$.constructor.name?m:$.constructor.name}return x.checkPropTypes=s,x.resetWarningCache=s.resetWarningCache,x.PropTypes=x,x},Hc}var qc,Hm;function yE(){if(Hm)return qc;Hm=1;var e=zc();function t(){}function n(){}return n.resetWarningCache=t,qc=function(){function r(a,c,u,d,h,p){if(p!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function s(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:s,element:r,elementType:r,instanceOf:s,node:r,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},qc}var qm;function xE(){if(qm)return la.exports;if(qm=1,process.env.NODE_ENV!=="production"){var e=Vm(),t=!0;la.exports=gE()(e.isElement,t)}else la.exports=yE()();return la.exports}var vE=xE();const Ie=Ap(vE);function Km(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function En(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Km(Object(n),!0).forEach(function(r){Ls(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Km(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ua(e){"@babel/helpers - typeof";return ua=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ua(e)}function Ls(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bE(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,o;for(o=0;o<r.length;o++)s=r[o],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function wE(e,t){if(e==null)return{};var n=bE(e,t),r,s;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(s=0;s<o.length;s++)r=o[s],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Kc(e){return SE(e)||TE(e)||CE(e)||EE()}function SE(e){if(Array.isArray(e))return Xc(e)}function TE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function CE(e,t){if(e){if(typeof e=="string")return Xc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xc(e,t)}}function Xc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function EE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
601
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PE(e){var t,n=e.beat,r=e.fade,s=e.beatFade,o=e.bounce,a=e.shake,c=e.flash,u=e.spin,d=e.spinPulse,h=e.spinReverse,p=e.pulse,m=e.fixedWidth,x=e.inverse,S=e.border,b=e.listItem,T=e.flip,v=e.size,A=e.rotation,C=e.pull,I=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":s,"fa-bounce":o,"fa-shake":a,"fa-flash":c,"fa-spin":u,"fa-spin-reverse":h,"fa-spin-pulse":d,"fa-pulse":p,"fa-fw":m,"fa-inverse":x,"fa-border":S,"fa-li":b,"fa-flip":T===!0,"fa-flip-horizontal":T==="horizontal"||T==="both","fa-flip-vertical":T==="vertical"||T==="both"},Ls(t,"fa-".concat(v),typeof v<"u"&&v!==null),Ls(t,"fa-rotate-".concat(A),typeof A<"u"&&A!==null&&A!==0),Ls(t,"fa-pull-".concat(C),typeof C<"u"&&C!==null),Ls(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(I).map(function(P){return I[P]?P:null}).filter(function(P){return P})}function AE(e){return e=e-0,e===e}function Xm(e){return AE(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var ME=["style"];function OE(e){return e.charAt(0).toUpperCase()+e.slice(1)}function $E(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),s=Xm(n.slice(0,r)),o=n.slice(r+1).trim();return s.startsWith("webkit")?t[OE(s)]=o:t[s]=o,t},{})}function Zm(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(u){return Zm(e,u)}),s=Object.keys(t.attributes||{}).reduce(function(u,d){var h=t.attributes[d];switch(d){case"class":u.attrs.className=h,delete t.attributes.class;break;case"style":u.attrs.style=$E(h);break;default:d.indexOf("aria-")===0||d.indexOf("data-")===0?u.attrs[d.toLowerCase()]=h:u.attrs[Xm(d)]=h}return u},{attrs:{}}),o=n.style,a=o===void 0?{}:o,c=wE(n,ME);return s.attrs.style=En(En({},s.attrs.style),a),e.apply(void 0,[t.tag,En(En({},s.attrs),c)].concat(Kc(r)))}var Jm=!1;try{Jm=process.env.NODE_ENV==="production"}catch{}function _E(){if(!Jm&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Qm(e){if(e&&ua(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Bc.icon)return Bc.icon(e);if(e===null)return null;if(e&&ua(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Zc(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Ls({},e,t):{}}var e0={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},Pe=O.forwardRef(function(e,t){var n=En(En({},e0),e),r=n.icon,s=n.mask,o=n.symbol,a=n.className,c=n.title,u=n.titleId,d=n.maskId,h=Qm(r),p=Zc("classes",[].concat(Kc(PE(n)),Kc((a||"").split(" ")))),m=Zc("transform",typeof n.transform=="string"?Bc.transform(n.transform):n.transform),x=Zc("mask",Qm(s)),S=fE(h,En(En(En(En({},p),m),x),{},{symbol:o,title:c,titleId:u,maskId:d}));if(!S)return _E("Could not find icon",h),null;var b=S.abstract,T={ref:t};return Object.keys(n).forEach(function(v){e0.hasOwnProperty(v)||(T[v]=n[v])}),IE(b[0],T)});Pe.displayName="FontAwesomeIcon",Pe.propTypes={beat:Ie.bool,border:Ie.bool,beatFade:Ie.bool,bounce:Ie.bool,className:Ie.string,fade:Ie.bool,flash:Ie.bool,mask:Ie.oneOfType([Ie.object,Ie.array,Ie.string]),maskId:Ie.string,fixedWidth:Ie.bool,inverse:Ie.bool,flip:Ie.oneOf([!0,!1,"horizontal","vertical","both"]),icon:Ie.oneOfType([Ie.object,Ie.array,Ie.string]),listItem:Ie.bool,pull:Ie.oneOf(["right","left"]),pulse:Ie.bool,rotation:Ie.oneOf([0,90,180,270]),shake:Ie.bool,size:Ie.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Ie.bool,spinPulse:Ie.bool,spinReverse:Ie.bool,symbol:Ie.oneOfType([Ie.bool,Ie.string]),title:Ie.string,titleId:Ie.string,transform:Ie.oneOfType([Ie.string,Ie.object]),swapOpacity:Ie.bool};var IE=Zm.bind(null,O.createElement);const DE=({title:e,icon:t,imageUrl:n,onClick:r,isSelected:s=!1})=>g.jsxs("button",{onClick:r,className:`
|
|
602
602
|
flex flex-col items-center justify-center
|
|
603
603
|
w-[180px] h-[87px] p-4 rounded-xl
|
|
604
604
|
gap-2 transition-colors
|
|
605
|
-
${
|
|
606
|
-
`,children:[t?
|
|
605
|
+
${s?"bg-blue-100 border border-blue-800":"bg-light-gray-100 border border-gray-100 hover:border-blue-500 group"}
|
|
606
|
+
`,children:[t?g.jsx(Pe,{icon:t,className:"w-20 h-20 transition-colors text-blue-500 group-hover:text-blue-500"}):n?g.jsx("img",{src:n,alt:e,width:32,height:32,className:"object-contain"}):null,g.jsx("span",{className:`
|
|
607
607
|
text-base font-medium transition-colors
|
|
608
|
-
${
|
|
608
|
+
${s?"text-gray-900":"text-gray-900 group-hover:text-blue-500"}
|
|
609
609
|
`,children:e})]});/*!
|
|
610
610
|
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
|
|
611
611
|
* License - https://fontawesome.com/license (Commercial License)
|
|
612
612
|
* Copyright 2024 Fonticons, Inc.
|
|
613
|
-
*/const
|
|
613
|
+
*/const NE={prefix:"far",iconName:"chevron-up",icon:[512,512,[],"f077","M239 111c9.4-9.4 24.6-9.4 33.9 0L465 303c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-175-175L81 337c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 111z"]},t0={prefix:"far",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-111 111-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64c9.4 9.4 24.6 9.4 33.9 0L369 209z"]},kE={prefix:"far",iconName:"cloud-arrow-up",icon:[640,512,[62338,"cloud-upload","cloud-upload-alt"],"f0ee","M354.9 121.7c13.8 16 36.5 21.1 55.9 12.5c8.9-3.9 18.7-6.2 29.2-6.2c39.8 0 72 32.2 72 72c0 4-.3 7.9-.9 11.7c-3.5 21.6 8.1 42.9 28.1 51.7C570.4 276.9 592 308 592 344c0 46.8-36.6 85.2-82.8 87.8c-.6 0-1.3 .1-1.9 .2l-3.3 0-360 0c-53 0-96-43-96-96c0-41.7 26.6-77.3 64-90.5c19.2-6.8 32-24.9 32-45.3l0-.2s0 0 0 0s0 0 0 0c0-66.3 53.7-120 120-120c36.3 0 68.8 16.1 90.9 41.7zM512 480l0-.2c71.4-4.1 128-63.3 128-135.8c0-55.7-33.5-103.7-81.5-124.7c1-6.3 1.5-12.8 1.5-19.3c0-66.3-53.7-120-120-120c-17.4 0-33.8 3.7-48.7 10.3C360.4 54.6 314.9 32 264 32C171.2 32 96 107.2 96 200l0 .2C40.1 220 0 273.3 0 336c0 79.5 64.5 144 144 144l320 0 40 0 8 0zM223 255c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l39-39L296 384c0 13.3 10.7 24 24 24s24-10.7 24-24l0-134.1 39 39c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-80-80c-9.4-9.4-24.6-9.4-33.9 0l-80 80z"]},jE={prefix:"far",iconName:"filter",icon:[512,512,[],"f0b0","M0 73.7C0 50.7 18.7 32 41.7 32l428.6 0c23 0 41.7 18.7 41.7 41.7c0 9.6-3.3 18.9-9.4 26.3L336 304.5l0 143.2c0 17.8-14.5 32.3-32.3 32.3c-7.3 0-14.4-2.5-20.1-7l-92.5-73.4c-9.6-7.6-15.1-19.1-15.1-31.3l0-63.7L9.4 100C3.3 92.6 0 83.3 0 73.7zM55 80L218.6 280.8c3.5 4.3 5.4 9.6 5.4 15.2l0 68.4 64 50.8L288 296c0-5.5 1.9-10.9 5.4-15.2L457 80 55 80z"]},Ui={prefix:"far",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-8 0 0-88c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 64-24 0zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},n0={prefix:"far",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 19.2C119 66 64 130.6 64 208l0 25.4c0 45.4-15.5 89.5-43.8 124.9L5.3 377c-5.8 7.2-6.9 17.1-2.9 25.4S14.8 416 24 416l400 0c9.2 0 17.6-5.3 21.6-13.6s2.9-18.2-2.9-25.4l-14.9-18.6C399.5 322.9 384 278.8 384 233.4l0-25.4c0-77.4-55-142-128-156.8L256 32c0-17.7-14.3-32-32-32zm0 96c61.9 0 112 50.1 112 112l0 25.4c0 47.9 13.9 94.6 39.7 134.6L72.3 368C98.1 328 112 281.3 112 233.4l0-25.4c0-61.9 50.1-112 112-112zm64 352l-64 0-64 0c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7s18.7-28.3 18.7-45.3z"]},r0={prefix:"far",iconName:"chevron-down",icon:[512,512,[],"f078","M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z"]},LE={prefix:"far",iconName:"bars-filter",icon:[448,512,[],"e0ad","M0 88C0 74.7 10.7 64 24 64l400 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 112C10.7 112 0 101.3 0 88zM64 248c0-13.3 10.7-24 24-24l272 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L88 272c-13.3 0-24-10.7-24-24zM288 408c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l80 0c13.3 0 24 10.7 24 24z"]},RE={prefix:"far",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"]},FE={prefix:"far",iconName:"check",icon:[448,512,[10003,10004],"f00c","M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119 119L407 103c9.4-9.4 24.6-9.4 33.9 0z"]},s0={prefix:"far",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M248.4 84.3c1.6-2.7 4.5-4.3 7.6-4.3s6 1.6 7.6 4.3L461.9 410c1.4 2.3 2.1 4.9 2.1 7.5c0 8-6.5 14.5-14.5 14.5l-387 0c-8 0-14.5-6.5-14.5-14.5c0-2.7 .7-5.3 2.1-7.5L248.4 84.3zm-41-25L9.1 385c-6 9.8-9.1 21-9.1 32.5C0 452 28 480 62.5 480l387 0c34.5 0 62.5-28 62.5-62.5c0-11.5-3.2-22.7-9.1-32.5L304.6 59.3C294.3 42.4 275.9 32 256 32s-38.3 10.4-48.6 27.3zM288 368a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm-8-184c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 96c0 13.3 10.7 24 24 24s24-10.7 24-24l0-96z"]},i0={prefix:"far",iconName:"x",icon:[384,512,[120],"58","M378.4 71.4c8.5-10.1 7.2-25.3-2.9-33.8s-25.3-7.2-33.8 2.9L192 218.7 42.4 40.6C33.9 30.4 18.7 29.1 8.6 37.6S-2.9 61.3 5.6 71.4L160.7 256 5.6 440.6c-8.5 10.2-7.2 25.3 2.9 33.8s25.3 7.2 33.8-2.9L192 293.3 341.6 471.4c8.5 10.2 23.7 11.5 33.8 2.9s11.5-23.7 2.9-33.8L223.3 256l155-184.6z"]},Jc=O.createContext({});function Qc(e){const t=O.useRef(null);return t.current===null&&(t.current=e()),t.current}const eu=typeof window<"u",o0=eu?O.useLayoutEffect:O.useEffect,fa=O.createContext(null),tu=O.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});let VE=class extends he.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,s=r instanceof HTMLElement&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=s-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}};function BE({children:e,isPresent:t,anchorX:n}){const r=O.useId(),s=O.useRef(null),o=O.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=O.useContext(tu);return O.useInsertionEffect(()=>{const{width:c,height:u,top:d,left:h,right:p}=o.current;if(t||!s.current||!c||!u)return;const m=n==="left"?`left: ${h}`:`right: ${p}`;s.current.dataset.motionPopId=r;const x=document.createElement("style");return a&&(x.nonce=a),document.head.appendChild(x),x.sheet&&x.sheet.insertRule(`
|
|
614
614
|
[data-motion-pop-id="${r}"] {
|
|
615
615
|
position: absolute !important;
|
|
616
616
|
width: ${c}px !important;
|
|
617
617
|
height: ${u}px !important;
|
|
618
|
-
${
|
|
618
|
+
${m}px !important;
|
|
619
619
|
top: ${d}px !important;
|
|
620
620
|
}
|
|
621
|
-
`),()=>{document.head.removeChild(v)}},[t]),y.jsx(eP,{isPresent:t,childRef:i,sizeRef:o,children:Q.cloneElement(e,{ref:i})})}const nP=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=iu(rP),d=_.useId(),h=_.useCallback(p=>{u.set(p,!0);for(const v of u.values())if(!v)return;r&&r()},[u,r]),m=_.useMemo(()=>({id:d,initial:t,isPresent:n,custom:i,onExitComplete:h,register:p=>(u.set(p,!1),()=>u.delete(p))}),o?[Math.random(),h]:[n,h]);return _.useMemo(()=>{u.forEach((p,v)=>u.set(v,!1))},[n]),Q.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=y.jsx(tP,{isPresent:n,anchorX:c,children:e})),y.jsx(ga.Provider,{value:m,children:e})};function rP(){return new Map}function f0(e=!0){const t=_.useContext(ga);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=_.useId();_.useEffect(()=>{if(e)return i(o)},[e]);const a=_.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const ya=e=>e.key||"";function d0(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const iP=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=f0(a),h=_.useMemo(()=>d0(e),[e]),m=a&&!u?[]:h.map(ya),p=_.useRef(!0),v=_.useRef(h),S=iu(()=>new Map),[x,T]=_.useState(h),[b,C]=_.useState(h);u0(()=>{p.current=!1,v.current=h;for(let A=0;A<b.length;A++){const D=ya(b[A]);m.includes(D)?S.delete(D):S.get(D)!==!0&&S.set(D,!1)}},[b,m.length,m.join("-")]);const E=[];if(h!==x){let A=[...h];for(let D=0;D<b.length;D++){const R=b[D],j=ya(R);m.includes(j)||(A.splice(D,0,R),E.push(R))}return o==="wait"&&E.length&&(A=E),C(d0(A)),T(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&b.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:$}=_.useContext(ru);return y.jsx(y.Fragment,{children:b.map(A=>{const D=ya(A),R=a&&!u?!1:h===b||m.includes(D),j=()=>{if(S.has(D))S.set(D,!0);else return;let V=!0;S.forEach(Z=>{Z||(V=!1)}),V&&($==null||$(),C(v.current),a&&(d==null||d()),r&&r())};return y.jsx(nP,{isPresent:R,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:R?void 0:j,anchorX:c,children:A},D)})})};function au(e,t){e.indexOf(t)===-1&&e.push(t)}function lu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Nt=e=>e;let Wi=Nt,vr=Nt;process.env.NODE_ENV!=="production"&&(Wi=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},vr=(e,t)=>{if(!e)throw new Error(t)});const sP={useManualTiming:!1};function cu(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ui=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let uu=class{constructor(){this.subscriptions=[]}add(t){return au(this.subscriptions,t),()=>lu(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const On=e=>e*1e3,Kn=e=>e/1e3;function h0(e,t){return t?e*(1e3/t):0}const m0=new Set;function va(e,t,n){e||m0.has(t)||(console.warn(t),m0.add(t))}const oP=cu(()=>window.ScrollTimeline!==void 0);let aP=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(oP()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}},lP=class extends aP{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function fu(e,t){return e?e[t]||e.default||e:void 0}const du=2e4;function p0(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<du;)t+=n,r=e.next(t);return t>=du?1/0:t}function hu(e){return typeof e=="function"}function g0(e,t){e.timeline=t,e.onfinish=null}const mu=e=>Array.isArray(e)&&typeof e[0]=="number",cP={linearEasing:void 0};function uP(e,t){const n=cu(e);return()=>{var r;return(r=cP[t])!==null&&r!==void 0?r:n()}}const xa=uP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),y0=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Ui(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function v0(e){return!!(typeof e=="function"&&xa()||!e||typeof e=="string"&&(e in pu||xa())||mu(e)||Array.isArray(e)&&e.every(v0))}const qs=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,pu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qs([0,.65,.55,1]),circOut:qs([.55,0,1,.45]),backIn:qs([.31,.01,.66,-.59]),backOut:qs([.33,1.53,.69,.99])};function x0(e,t){if(e)return typeof e=="function"&&xa()?y0(e,t):mu(e)?qs(e):Array.isArray(e)?e.map(n=>x0(n,t)||pu.easeOut):pu[e]}const ba=["read","resolveKeyframes","update","preRender","render","postRender"],b0={value:null};function fP(e,t){let n=new Set,r=new Set,i=!1,o=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){a.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,p=!1,v=!1)=>{const x=v&&i?n:r;return p&&a.add(m),x.has(m)||x.add(m),m},cancel:m=>{r.delete(m),a.delete(m)},process:m=>{if(c=m,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),t&&b0.value&&b0.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const dP=40;function w0(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=ba.reduce((b,C)=>(b[C]=fP(o,t?C:void 0),b),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:p}=a,v=()=>{const b=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(b-i.timestamp,dP),1),i.timestamp=b,i.isProcessing=!0,c.process(i),u.process(i),d.process(i),h.process(i),m.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(v))},S=()=>{n=!0,r=!0,i.isProcessing||e(v)};return{schedule:ba.reduce((b,C)=>{const E=a[C];return b[C]=($,A=!1,D=!1)=>(n||S(),E.schedule($,A,D)),b},{}),cancel:b=>{for(let C=0;C<ba.length;C++)a[ba[C]].cancel(b)},state:i,steps:a}}const{schedule:He,cancel:xr,state:yt,steps:gu}=w0(typeof requestAnimationFrame<"u"?requestAnimationFrame:Nt,!0),{schedule:yu}=w0(queueMicrotask,!1);let wa;function hP(){wa=void 0}const _n={now:()=>(wa===void 0&&_n.set(yt.isProcessing||sP.useManualTiming?yt.timestamp:performance.now()),wa),set:e=>{wa=e,queueMicrotask(hP)}},yn={x:!1,y:!1};function S0(){return yn.x||yn.y}function mP(e){return e==="x"||e==="y"?yn[e]?null:(yn[e]=!0,()=>{yn[e]=!1}):yn.x||yn.y?null:(yn.x=yn.y=!0,()=>{yn.x=yn.y=!1})}function pP(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function T0(e,t){const n=pP(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function E0(e){return!(e.pointerType==="touch"||S0())}function gP(e,t,n={}){const[r,i,o]=T0(e,n),a=c=>{if(!E0(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{E0(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}const C0=(e,t)=>t?e===t?!0:C0(e,t.parentElement):!1,vu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,yP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function vP(e){return yP.has(e.tagName)||e.tabIndex!==-1}const Ks=new WeakSet;function P0(e){return t=>{t.key==="Enter"&&e(t)}}function xu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const xP=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=P0(()=>{if(Ks.has(n))return;xu(n,"down");const i=P0(()=>{xu(n,"up")}),o=()=>xu(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function A0(e){return vu(e)&&!S0()}function bP(e,t,n={}){const[r,i,o]=T0(e,n),a=c=>{const u=c.currentTarget;if(!A0(c)||Ks.has(u))return;Ks.add(u);const d=t(u,c),h=(v,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!A0(v)||!Ks.has(u))&&(Ks.delete(u),typeof d=="function"&&d(v,{success:S}))},m=v=>{h(v,u===window||u===document||n.useGlobalTarget||C0(u,v.target))},p=v=>{h(v,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",p,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>xP(d,i)),!vP(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}const M0=30,wP=e=>!isNaN(parseFloat(e));let SP=class{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=_n.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=_n.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=wP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&va(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new uu);const r=this.events[t].add(n);return t==="change"?()=>{r(),He.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=_n.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>M0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,M0);return h0(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Xs(e,t){return new SP(e,t)}const O0=_.createContext({strict:!1}),_0={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},zi={};for(const e in _0)zi[e]={isEnabled:t=>_0[e].some(n=>!!t[n])};function TP(e){for(const t in e)zi[t]={...zi[t],...e[t]}}const EP=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Sa(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||EP.has(e)}let I0=e=>!Sa(e);function CP(e){e&&(I0=t=>t.startsWith("on")?!Sa(t):e(t))}try{CP(require("@emotion/is-prop-valid").default)}catch{}function PP(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(I0(i)||n===!0&&Sa(i)||!t&&!Sa(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function AP(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&va(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Ta=_.createContext({});function Ea(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Zs(e){return typeof e=="string"||Array.isArray(e)}const bu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wu=["initial",...bu];function Ca(e){return Ea(e.animate)||wu.some(t=>Zs(e[t]))}function $0(e){return!!(Ca(e)||e.variants)}function MP(e,t){if(Ca(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Zs(n)?n:void 0,animate:Zs(r)?r:void 0}}return e.inherit!==!1?t:{}}function OP(e){const{initial:t,animate:n}=MP(e,_.useContext(Ta));return _.useMemo(()=>({initial:t,animate:n}),[D0(t),D0(n)])}function D0(e){return Array.isArray(e)?e.join(" "):e}const _P=Symbol.for("motionComponentSymbol");function Gi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function IP(e,t,n){return _.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Gi(n)&&(n.current=r))},[t])}const Su=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),N0="data-"+Su("framerAppearId"),k0=_.createContext({});function $P(e,t,n,r,i){var o,a;const{visualElement:c}=_.useContext(Ta),u=_.useContext(O0),d=_.useContext(ga),h=_.useContext(ou).reducedMotion,m=_.useRef(null);r=r||u.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const p=m.current,v=_.useContext(k0);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&DP(m.current,n,i,v);const S=_.useRef(!1);_.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const x=n[N0],T=_.useRef(!!x&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,x))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,x)));return u0(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),yu.render(p.render),T.current&&p.animationState&&p.animationState.animateChanges())}),_.useEffect(()=>{p&&(!T.current&&p.animationState&&p.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,x)}),T.current=!1))}),p}function DP(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:L0(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&Gi(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function L0(e){if(e)return e.options.allowProjection!==!1?e.projection:L0(e.parent)}function NP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&TP(e);function c(d,h){let m;const p={..._.useContext(ou),...d,layoutId:kP(d)},{isStatic:v}=p,S=OP(d),x=r(d,v);if(!v&&su){LP(p,e);const T=RP(p);m=T.MeasureLayout,S.visualElement=$P(i,x,p,t,T.ProjectionNode)}return y.jsxs(Ta.Provider,{value:S,children:[m&&S.visualElement?y.jsx(m,{visualElement:S.visualElement,...p}):null,n(i,d,IP(x,S.visualElement,h),x,v,S.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const u=_.forwardRef(c);return u[_P]=i,u}function kP({layoutId:e}){const t=_.useContext(ru).id;return t&&e!==void 0?t+"-"+e:e}function LP(e,t){const n=_.useContext(O0).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Wi(!1,r):vr(!1,r)}}function RP(e){const{drag:t,layout:n}=zi;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const R0=e=>t=>typeof t=="string"&&t.startsWith(e),Tu=R0("--"),jP=R0("var(--"),Eu=e=>jP(e)?FP.test(e.split("/*")[0].trim()):!1,FP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Js={};function VP(e){for(const t in e)Js[t]=e[t],Tu(t)&&(Js[t].isCSSVariable=!0)}const Yi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ti=new Set(Yi);function j0(e,{layout:t,layoutId:n}){return ti.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Js[e]||e==="opacity")}const St=e=>!!(e&&e.getVelocity),F0=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xn=(e,t,n)=>n>t?t:n<e?e:n,Hi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Qs={...Hi,transform:e=>Xn(0,1,e)},Pa={...Hi,default:1},eo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),br=eo("deg"),In=eo("%"),we=eo("px"),BP=eo("vh"),WP=eo("vw"),V0={...In,parse:e=>In.parse(e)/100,transform:e=>In.transform(e*100)},UP={borderWidth:we,borderTopWidth:we,borderRightWidth:we,borderBottomWidth:we,borderLeftWidth:we,borderRadius:we,radius:we,borderTopLeftRadius:we,borderTopRightRadius:we,borderBottomRightRadius:we,borderBottomLeftRadius:we,width:we,maxWidth:we,height:we,maxHeight:we,top:we,right:we,bottom:we,left:we,padding:we,paddingTop:we,paddingRight:we,paddingBottom:we,paddingLeft:we,margin:we,marginTop:we,marginRight:we,marginBottom:we,marginLeft:we,backgroundPositionX:we,backgroundPositionY:we},zP={rotate:br,rotateX:br,rotateY:br,rotateZ:br,scale:Pa,scaleX:Pa,scaleY:Pa,scaleZ:Pa,skew:br,skewX:br,skewY:br,distance:we,translateX:we,translateY:we,translateZ:we,x:we,y:we,z:we,perspective:we,transformPerspective:we,opacity:Qs,originX:V0,originY:V0,originZ:we},B0={...Hi,transform:Math.round},Cu={...UP,...zP,zIndex:B0,size:we,fillOpacity:Qs,strokeOpacity:Qs,numOctaves:B0},GP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},YP=Yi.length;function HP(e,t,n){let r="",i=!0;for(let o=0;o<YP;o++){const a=Yi[o],c=e[a];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(a.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=F0(c,Cu[a]);if(!u){i=!1;const h=GP[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Pu(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const d=t[u];if(ti.has(u)){a=!0;continue}else if(Tu(u)){i[u]=d;continue}else{const h=F0(d,Cu[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=HP(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${d} ${h}`}}const Au=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function W0(e,t,n){for(const r in t)!St(t[r])&&!j0(r,n)&&(e[r]=t[r])}function qP({transformTemplate:e},t){return _.useMemo(()=>{const n=Au();return Pu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function KP(e,t){const n=e.style||{},r={};return W0(r,n,e),Object.assign(r,qP(e,t)),r}function XP(e,t){const n={},r=KP(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const ZP=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Mu(e){return typeof e!="string"||e.includes("-")?!1:!!(ZP.indexOf(e)>-1||/[A-Z]/u.test(e))}const JP={offset:"stroke-dashoffset",array:"stroke-dasharray"},QP={offset:"strokeDashoffset",array:"strokeDasharray"};function eA(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?JP:QP;e[o.offset]=we.transform(-r);const a=we.transform(t),c=we.transform(n);e[o.array]=`${a} ${c}`}function U0(e,t,n){return typeof e=="string"?e:we.transform(t+n*e)}function tA(e,t,n){const r=U0(t,e.x,e.width),i=U0(n,e.y,e.height);return`${r} ${i}`}function Ou(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(Pu(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:v,dimensions:S}=e;p.transform&&(S&&(v.transform=p.transform),delete p.transform),S&&(i!==void 0||o!==void 0||v.transform)&&(v.transformOrigin=tA(S,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&eA(p,a,c,u,!1)}const z0=()=>({...Au(),attrs:{}}),_u=e=>typeof e=="string"&&e.toLowerCase()==="svg";function nA(e,t,n,r){const i=_.useMemo(()=>{const o=z0();return Ou(o,t,_u(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};W0(o,e.style,e),i.style={...o,...i.style}}return i}function rA(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(Mu(n)?nA:XP)(r,o,a,n),d=PP(r,typeof n=="string",e),h=n!==_.Fragment?{...d,...u,ref:i}:{},{children:m}=r,p=_.useMemo(()=>St(m)?m.get():m,[m]);return _.createElement(n,{...h,children:p})}}function G0(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Iu(e,t,n,r){if(typeof t=="function"){const[i,o]=G0(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=G0(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const $u=e=>Array.isArray(e),iA=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),sA=e=>$u(e)?e[e.length-1]||0:e;function Aa(e){const t=St(e)?e.get():e;return iA(t)?t.toValue():t}function oA({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:aA(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Y0=e=>(t,n)=>{const r=_.useContext(Ta),i=_.useContext(ga),o=()=>oA(e,t,r,i);return n?o():iu(o)};function aA(e,t,n,r){const i={},o=r(e,{});for(const p in o)i[p]=Aa(o[p]);let{initial:a,animate:c}=e;const u=Ca(e),d=$0(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const m=h?c:a;if(m&&typeof m!="boolean"&&!Ea(m)){const p=Array.isArray(m)?m:[m];for(let v=0;v<p.length;v++){const S=Iu(e,p[v]);if(S){const{transitionEnd:x,transition:T,...b}=S;for(const C in b){let E=b[C];if(Array.isArray(E)){const $=h?E.length-1:0;E=E[$]}E!==null&&(i[C]=E)}for(const C in x)i[C]=x[C]}}}return i}function Du(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(St(i[a])||t.style&&St(t.style[a])||j0(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}const lA={useVisualState:Y0({scrapeMotionValuesFromProps:Du,createRenderState:Au})};function H0(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function q0(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const K0=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function X0(e,t,n,r){q0(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(K0.has(i)?i:Su(i),t.attrs[i])}function Z0(e,t,n){const r=Du(e,t,n);for(const i in e)if(St(e[i])||St(t[i])){const o=Yi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const J0=["x","y","width","height","cx","cy","r"],cA={useVisualState:Y0({scrapeMotionValuesFromProps:Z0,createRenderState:z0,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in i)if(ti.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<J0.length;c++){const u=J0[c];e[u]!==t[u]&&(a=!0)}a&&He.read(()=>{H0(n,r),He.render(()=>{Ou(r,i,_u(n.tagName),e.transformTemplate),X0(n,r)})})}})};function uA(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Mu(r)?cA:lA,preloadedFeatures:e,useRender:rA(i),createVisualElement:t,Component:r};return NP(a)}}function to(e,t,n){const r=e.getProps();return Iu(r,t,n!==void 0?n:r.custom,e)}const Q0=new Set(["width","height","top","left","right","bottom",...Yi]);function fA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Xs(n))}function dA(e,t){const n=to(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=sA(o[a]);fA(e,a,c)}}function hA(e){return!!(St(e)&&e.add)}function Nu(e,t){const n=e.getValue("willChange");if(hA(n))return n.add(t)}function eg(e){return e.props[N0]}const tg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,mA=1e-7,pA=12;function gA(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=tg(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>mA&&++c<pA);return a}function no(e,t,n,r){if(e===t&&n===r)return Nt;const i=o=>gA(o,0,1,e,n);return o=>o===0||o===1?o:tg(i(o),t,r)}const ng=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,rg=e=>t=>1-e(1-t),ig=no(.33,1.53,.69,.99),ku=rg(ig),sg=ng(ku),og=e=>(e*=2)<1?.5*ku(e):.5*(2-Math.pow(2,-10*(e-1))),Lu=e=>1-Math.sin(Math.acos(e)),ag=rg(Lu),lg=ng(Lu),cg=e=>/^0[^.\s]+$/u.test(e);function yA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||cg(e):!0}const ro=e=>Math.round(e*1e5)/1e5,Ru=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function vA(e){return e==null}const xA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ju=(e,t)=>n=>!!(typeof n=="string"&&xA.test(n)&&n.startsWith(e)||t&&!vA(n)&&Object.prototype.hasOwnProperty.call(n,t)),ug=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(Ru);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},bA=e=>Xn(0,255,e),Fu={...Hi,transform:e=>Math.round(bA(e))},ni={test:ju("rgb","red"),parse:ug("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Fu.transform(e)+", "+Fu.transform(t)+", "+Fu.transform(n)+", "+ro(Qs.transform(r))+")"};function wA(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Vu={test:ju("#"),parse:wA,transform:ni.transform},qi={test:ju("hsl","hue"),parse:ug("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+In.transform(ro(t))+", "+In.transform(ro(n))+", "+ro(Qs.transform(r))+")"},Tt={test:e=>ni.test(e)||Vu.test(e)||qi.test(e),parse:e=>ni.test(e)?ni.parse(e):qi.test(e)?qi.parse(e):Vu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ni.transform(e):qi.transform(e)},SA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function TA(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ru))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(SA))===null||n===void 0?void 0:n.length)||0)>0}const fg="number",dg="color",EA="var",CA="var(",hg="${}",PA=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function io(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(PA,u=>(Tt.test(u)?(r.color.push(o),i.push(dg),n.push(Tt.parse(u))):u.startsWith(CA)?(r.var.push(o),i.push(EA),n.push(u)):(r.number.push(o),i.push(fg),n.push(parseFloat(u))),++o,hg)).split(hg);return{values:n,split:c,indexes:r,types:i}}function mg(e){return io(e).values}function pg(e){const{split:t,types:n}=io(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const c=n[a];c===fg?o+=ro(i[a]):c===dg?o+=Tt.transform(i[a]):o+=i[a]}return o}}const AA=e=>typeof e=="number"?0:e;function MA(e){const t=mg(e);return pg(e)(t.map(AA))}const wr={test:TA,parse:mg,createTransformer:pg,getAnimatableNone:MA},OA=new Set(["brightness","contrast","saturate","opacity"]);function _A(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ru)||[];if(!r)return e;const i=n.replace(r,"");let o=OA.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const IA=/\b([a-z-]*)\(.*?\)/gu,Bu={...wr,getAnimatableNone:e=>{const t=e.match(IA);return t?t.map(_A).join(" "):e}},$A={...Cu,color:Tt,backgroundColor:Tt,outlineColor:Tt,fill:Tt,stroke:Tt,borderColor:Tt,borderTopColor:Tt,borderRightColor:Tt,borderBottomColor:Tt,borderLeftColor:Tt,filter:Bu,WebkitFilter:Bu},gg=e=>$A[e];function yg(e,t){let n=gg(e);return n!==Bu&&(n=wr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const DA=new Set(["auto","none","0"]);function NA(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!DA.has(o)&&io(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=yg(n,i)}const ri=e=>e*180/Math.PI,Wu=e=>{const t=ri(Math.atan2(e[1],e[0]));return Uu(t)},kA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Wu,rotateZ:Wu,skewX:e=>ri(Math.atan(e[1])),skewY:e=>ri(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Uu=e=>(e=e%360,e<0&&(e+=360),e),vg=Wu,xg=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),bg=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),LA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:xg,scaleY:bg,scale:e=>(xg(e)+bg(e))/2,rotateX:e=>Uu(ri(Math.atan2(e[6],e[5]))),rotateY:e=>Uu(ri(Math.atan2(-e[2],e[0]))),rotateZ:vg,rotate:vg,skewX:e=>ri(Math.atan(e[4])),skewY:e=>ri(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function wg(e){return e.includes("scale")?1:0}function zu(e,t){if(!e||e==="none")return wg(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=LA,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=kA,i=c}if(!i)return wg(t);const o=r[t],a=i[1].split(",").map(jA);return typeof o=="function"?o(a):a[o]}const RA=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return zu(n,t)};function jA(e){return parseFloat(e.trim())}const Sg=e=>e===Hi||e===we,FA=new Set(["x","y","z"]),VA=Yi.filter(e=>!FA.has(e));function BA(e){const t=[];return VA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ki={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>zu(t,"x"),y:(e,{transform:t})=>zu(t,"y")};Ki.translateX=Ki.x,Ki.translateY=Ki.y;const ii=new Set;let Gu=!1,Yu=!1;function Tg(){if(Yu){const e=Array.from(ii).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=BA(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Yu=!1,Gu=!1,ii.forEach(e=>e.complete()),ii.clear()}function Eg(){ii.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Yu=!0)})}function WA(){Eg(),Tg()}let Hu=class{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ii.add(this),Gu||(Gu=!0,He.read(Eg),He.resolveKeyframes(Tg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),c=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ii.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ii.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const Cg=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),UA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function zA(e){const t=UA.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const GA=4;function Pg(e,t,n=1){vr(n<=GA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=zA(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return Cg(a)?parseFloat(a):a}return Eu(i)?Pg(i,t,n+1):i}const Ag=e=>t=>t.test(e),Mg=[Hi,we,In,br,WP,BP,{test:e=>e==="auto",parse:e=>e}],Og=e=>Mg.find(Ag(e));let _g=class extends Hu{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Eu(d))){const h=Pg(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Q0.has(r)||t.length!==2)return;const[i,o]=t,a=Og(i),c=Og(o);if(a!==c)if(Sg(a)&&Sg(c))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)yA(t[i])&&r.push(i);r.length&&NA(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ki[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,c=i[a];i[a]=Ki[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,d])=>{n.getValue(u).set(d)}),this.resolveNoneKeyframes()}};const Ig=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(wr.test(e)||e==="0")&&!e.startsWith("url("));function YA(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function HA(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=Ig(i,t),c=Ig(o,t);return Wi(a===c,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:YA(e)||(n==="spring"||hu(n))&&r}const qA=e=>e!==null;function Ma(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(qA),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const KA=40;let $g=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=_n.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>KA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&WA(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=_n.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!HA(t,r,i,o))if(a)this.options.duration=0;else{u&&u(Ma(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const tt=(e,t,n)=>e+(t-e)*n;function qu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function XA({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=qu(u,c,e+1/3),o=qu(u,c,e),a=qu(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Oa(e,t){return n=>n>0?t:e}const Ku=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ZA=[Vu,ni,qi],JA=e=>ZA.find(t=>t.test(e));function Dg(e){const t=JA(e);if(Wi(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===qi&&(n=XA(n)),n}const Ng=(e,t)=>{const n=Dg(e),r=Dg(t);if(!n||!r)return Oa(e,t);const i={...n};return o=>(i.red=Ku(n.red,r.red,o),i.green=Ku(n.green,r.green,o),i.blue=Ku(n.blue,r.blue,o),i.alpha=tt(n.alpha,r.alpha,o),ni.transform(i))},QA=(e,t)=>n=>t(e(n)),so=(...e)=>e.reduce(QA),Xu=new Set(["none","hidden"]);function eM(e,t){return Xu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function tM(e,t){return n=>tt(e,t,n)}function Zu(e){return typeof e=="number"?tM:typeof e=="string"?Eu(e)?Oa:Tt.test(e)?Ng:iM:Array.isArray(e)?kg:typeof e=="object"?Tt.test(e)?Ng:nM:Oa}function kg(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>Zu(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function nM(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Zu(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function rM(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],c=e.indexes[a][i[a]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,i[a]++}return r}const iM=(e,t)=>{const n=wr.createTransformer(t),r=io(e),i=io(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Xu.has(e)&&!i.values.length||Xu.has(t)&&!r.values.length?eM(e,t):so(kg(rM(r,i),i.values),n):(Wi(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Oa(e,t))};function Lg(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tt(e,t,n):Zu(e)(e,t)}const sM=5;function Rg(e,t,n){const r=Math.max(t-sM,0);return h0(n-e(r),t-r)}const nt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},jg=.001;function oM({duration:e=nt.duration,bounce:t=nt.bounce,velocity:n=nt.velocity,mass:r=nt.mass}){let i,o;Wi(e<=On(nt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Xn(nt.minDamping,nt.maxDamping,a),e=Xn(nt.minDuration,nt.maxDuration,Kn(e)),a<1?(i=d=>{const h=d*a,m=h*e,p=h-n,v=Ju(d,a),S=Math.exp(-m);return jg-p/v*S},o=d=>{const m=d*a*e,p=m*n+n,v=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-m),x=Ju(Math.pow(d,2),a);return(-i(d)+jg>0?-1:1)*((p-v)*S)/x}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},o=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const c=5/e,u=lM(i,o,c);if(e=On(e),isNaN(u))return{stiffness:nt.stiffness,damping:nt.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const aM=12;function lM(e,t,n){let r=n;for(let i=1;i<aM;i++)r=r-e(r)/t(r);return r}function Ju(e,t){return e*Math.sqrt(1-t*t)}const cM=["duration","bounce"],uM=["stiffness","damping","mass"];function Fg(e,t){return t.some(n=>e[n]!==void 0)}function fM(e){let t={velocity:nt.velocity,stiffness:nt.stiffness,damping:nt.damping,mass:nt.mass,isResolvedFromDuration:!1,...e};if(!Fg(e,uM)&&Fg(e,cM))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Xn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:nt.mass,stiffness:i,damping:o}}else{const n=oM(e);t={...t,...n,mass:nt.mass},t.isResolvedFromDuration=!0}return t}function Vg(e=nt.visualDuration,t=nt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:u,damping:d,mass:h,duration:m,velocity:p,isResolvedFromDuration:v}=fM({...n,velocity:-Kn(n.velocity||0)}),S=p||0,x=d/(2*Math.sqrt(u*h)),T=a-o,b=Kn(Math.sqrt(u/h)),C=Math.abs(T)<5;r||(r=C?nt.restSpeed.granular:nt.restSpeed.default),i||(i=C?nt.restDelta.granular:nt.restDelta.default);let E;if(x<1){const A=Ju(b,x);E=D=>{const R=Math.exp(-x*b*D);return a-R*((S+x*b*T)/A*Math.sin(A*D)+T*Math.cos(A*D))}}else if(x===1)E=A=>a-Math.exp(-b*A)*(T+(S+b*T)*A);else{const A=b*Math.sqrt(x*x-1);E=D=>{const R=Math.exp(-x*b*D),j=Math.min(A*D,300);return a-R*((S+x*b*T)*Math.sinh(j)+A*T*Math.cosh(j))/A}}const $={calculatedDuration:v&&m||null,next:A=>{const D=E(A);if(v)c.done=A>=m;else{let R=0;x<1&&(R=A===0?On(S):Rg(E,A,D));const j=Math.abs(R)<=r,V=Math.abs(a-D)<=i;c.done=j&&V}return c.value=c.done?a:D,c},toString:()=>{const A=Math.min(p0($),du),D=y0(R=>$.next(A*R).value,A,30);return A+"ms "+D}};return $}function Bg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},v=j=>c!==void 0&&j<c||u!==void 0&&j>u,S=j=>c===void 0?u:u===void 0||Math.abs(c-j)<Math.abs(u-j)?c:u;let x=n*t;const T=m+x,b=a===void 0?T:a(T);b!==T&&(x=b-m);const C=j=>-x*Math.exp(-j/r),E=j=>b+C(j),$=j=>{const V=C(j),Z=E(j);p.done=Math.abs(V)<=d,p.value=p.done?b:Z};let A,D;const R=j=>{v(p.value)&&(A=j,D=Vg({keyframes:[p.value,S(p.value)],velocity:Rg(E,j,p.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return R(0),{calculatedDuration:null,next:j=>{let V=!1;return!D&&A===void 0&&(V=!0,$(j),R(j)),A!==void 0&&j>=A?D.next(j-A):(!V&&$(j),p)}}}const dM=no(.42,0,1,1),hM=no(0,0,.58,1),Wg=no(.42,0,.58,1),mM=e=>Array.isArray(e)&&typeof e[0]!="number",Ug={linear:Nt,easeIn:dM,easeInOut:Wg,easeOut:hM,circIn:Lu,circInOut:lg,circOut:ag,backIn:ku,backInOut:sg,backOut:ig,anticipate:og},zg=e=>{if(mu(e)){vr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return no(t,n,r,i)}else if(typeof e=="string")return vr(Ug[e]!==void 0,`Invalid easing type '${e}'`),Ug[e];return e};function pM(e,t,n){const r=[],i=n||Lg,o=e.length-1;for(let a=0;a<o;a++){let c=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Nt:t;c=so(u,c)}r.push(c)}return r}function gM(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(vr(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=pM(t,r,i),u=c.length,d=h=>{if(a&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const p=Ui(e[m],e[m+1],h);return c[m](p)};return n?h=>d(Xn(e[0],e[o-1],h)):d}function yM(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ui(0,t,r);e.push(tt(n,1,i))}}function vM(e){const t=[0];return yM(t,e.length-1),t}function xM(e,t){return e.map(n=>n*t)}function bM(e,t){return e.map(()=>t||Wg).splice(0,e.length-1)}function oo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=mM(r)?r.map(zg):zg(r),o={done:!1,value:t[0]},a=xM(n&&n.length===t.length?n:vM(t),e),c=gM(a,t,{ease:Array.isArray(i)?i:bM(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const wM=e=>{const t=({timestamp:n})=>e(n);return{start:()=>He.update(t,!0),stop:()=>xr(t),now:()=>yt.isProcessing?yt.timestamp:_n.now()}},SM={decay:Bg,inertia:Bg,tween:oo,keyframes:oo,spring:Vg},TM=e=>e/100;let Qu=class extends $g{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||Hu,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new a(o,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,c=hu(n)?n:SM[n]||oo;let u,d;process.env.NODE_ENV!=="production"&&c!==oo&&vr(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==oo&&typeof t[0]!="number"&&(u=so(TM,Lg(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=p0(h));const{calculatedDuration:m}=h,p=m+i,v=p*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:v}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:j}=this.options;return{done:!0,value:j[j.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:u,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:p,repeat:v,repeatType:S,repeatDelay:x,onUpdate:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const b=this.currentTime-p*(this.speed>=0?1:-1),C=this.speed>=0?b<0:b>h;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let E=this.currentTime,$=o;if(v){const j=Math.min(this.currentTime,h)/m;let V=Math.floor(j),Z=j%1;!Z&&j>=1&&(Z=1),Z===1&&V--,V=Math.min(V,v+1),!!(V%2)&&(S==="reverse"?(Z=1-Z,x&&(Z-=x/m)):S==="mirror"&&($=a)),E=Xn(0,1,Z)*m}const A=C?{done:!1,value:u[0]}:$.next(E);c&&(A.value=c(A.value));let{done:D}=A;!C&&d!==null&&(D=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return R&&i!==void 0&&(A.value=Ma(u,this.options,i)),T&&T(A.value),R&&this.finish(),A}get duration(){const{resolved:t}=this;return t?Kn(t.calculatedDuration):0}get time(){return Kn(this.currentTime)}set time(t){t=On(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Kn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=wM,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};const EM=new Set(["opacity","clipPath","filter","transform"]);function CM(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=x0(c,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const PM=cu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_a=10,AM=2e4;function MM(e){return hu(e.type)||e.type==="spring"||!v0(e.ease)}function OM(e,t){const n=new Qu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<AM;)r=n.sample(o),i.push(r.value),o+=_a;return{times:void 0,keyframes:i,duration:o-_a,ease:"linear"}}const Gg={anticipate:og,backInOut:sg,circInOut:lg};function _M(e){return e in Gg}let Yg=class extends $g{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new _g(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&xa()&&_M(o)&&(o=Gg[o]),MM(this.options)){const{onComplete:m,onUpdate:p,motionValue:v,element:S,...x}=this.options,T=OM(t,x);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,i=T.times,o=T.ease,a="keyframes"}const h=CM(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(g0(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ma(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Kn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Kn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=On(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Nt;const{animation:r}=n;g0(r,t)}return Nt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:p,...v}=this.options,S=new Qu({...v,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),x=On(this.time);d.setWithVelocity(S.sample(x-_a).value,S.sample(x).value,_a)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return PM()&&r&&EM.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}};const IM={type:"spring",stiffness:500,damping:25,restSpeed:10},$M=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),DM={type:"keyframes",duration:.8},NM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},kM=(e,{keyframes:t})=>t.length>2?DM:ti.has(e)?e.startsWith("scale")?$M(t[1]):IM:NM;function LM({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const ef=(e,t,n,r={},i,o)=>a=>{const c=fu(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-On(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:p=>{t.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};LM(c)||(h={...h,...kM(e,h)}),h.duration&&(h.duration=On(h.duration)),h.repeatDelay&&(h.repeatDelay=On(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!c.type&&!c.ease,m&&!o&&t.get()!==void 0){const p=Ma(h.keyframes,c);if(p!==void 0)return He.update(()=>{h.onUpdate(p),h.onComplete()}),new lP([])}return!o&&Yg.supports(h)?new Yg(h):new Qu(h)};function RM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Hg(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in u){const p=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),v=u[m];if(v===void 0||h&&RM(h,m))continue;const S={delay:n,...fu(a||{},m)};let x=!1;if(window.MotionHandoffAnimation){const b=eg(e);if(b){const C=window.MotionHandoffAnimation(b,m,He);C!==null&&(S.startTime=C,x=!0)}}Nu(e,m),p.start(ef(m,p,v,e.shouldReduceMotion&&Q0.has(m)?{type:!1}:S,e,x));const T=p.animation;T&&d.push(T)}return c&&Promise.all(d).then(()=>{He.update(()=>{c&&dA(e,c)})}),d}function tf(e,t,n={}){var r;const i=to(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(Hg(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return jM(e,t,h+d,m,p,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,h]=u==="beforeChildren"?[a,c]:[c,a];return d().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function jM(e,t,n=0,r=0,i=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(FM).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(tf(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function FM(e,t){return e.sortNodePosition(t)}function VM(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>tf(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=tf(e,t,n);else{const i=typeof t=="function"?to(e,t,n.custom):t;r=Promise.all(Hg(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function qg(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const BM=wu.length;function Kg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Kg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<BM;n++){const r=wu[n],i=e.props[r];(Zs(i)||i===!1)&&(t[r]=i)}return t}const WM=[...bu].reverse(),UM=bu.length;function zM(e){return t=>Promise.all(t.map(({animation:n,options:r})=>VM(e,n,r)))}function GM(e){let t=zM(e),n=Xg(),r=!0;const i=u=>(d,h)=>{var m;const p=to(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:v,transitionEnd:S,...x}=p;d={...d,...x,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=Kg(e.parent)||{},m=[],p=new Set;let v={},S=1/0;for(let T=0;T<UM;T++){const b=WM[T],C=n[b],E=d[b]!==void 0?d[b]:h[b],$=Zs(E),A=b===u?C.isActive:null;A===!1&&(S=T);let D=E===h[b]&&E!==d[b]&&$;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),C.protectedKeys={...v},!C.isActive&&A===null||!E&&!C.prevProp||Ea(E)||typeof E=="boolean")continue;const R=YM(C.prevProp,E);let j=R||b===u&&C.isActive&&!D&&$||T>S&&$,V=!1;const Z=Array.isArray(E)?E:[E];let ee=Z.reduce(i(b),{});A===!1&&(ee={});const{prevResolvedValues:se={}}=C,ge={...se,...ee},ue=G=>{j=!0,p.has(G)&&(V=!0,p.delete(G)),C.needsAnimating[G]=!0;const W=e.getValue(G);W&&(W.liveStyle=!1)};for(const G in ge){const W=ee[G],Y=se[G];if(v.hasOwnProperty(G))continue;let M=!1;$u(W)&&$u(Y)?M=!qg(W,Y):M=W!==Y,M?W!=null?ue(G):p.add(G):W!==void 0&&p.has(G)?ue(G):C.protectedKeys[G]=!0}C.prevProp=E,C.prevResolvedValues=ee,C.isActive&&(v={...v,...ee}),r&&e.blockInitialAnimation&&(j=!1),j&&(!(D&&R)||V)&&m.push(...Z.map(G=>({animation:G,options:{type:b}})))}if(p.size){const T={};if(typeof d.initial!="boolean"){const b=to(e,Array.isArray(d.initial)?d.initial[0]:d.initial);b&&b.transition&&(T.transition=b.transition)}p.forEach(b=>{const C=e.getBaseTarget(b),E=e.getValue(b);E&&(E.liveStyle=!0),T[b]=C??null}),m.push({animation:T})}let x=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(m):Promise.resolve()}function c(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(p=>{var v;return(v=p.animationState)===null||v===void 0?void 0:v.setActive(u,d)}),n[u].isActive=d;const m=a(u);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Xg(),r=!0}}}function YM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!qg(t,e):!1}function si(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Xg(){return{animate:si(!0),whileInView:si(),whileHover:si(),whileTap:si(),whileDrag:si(),whileFocus:si(),exit:si()}}let Sr=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},HM=class extends Sr{constructor(t){super(t),t.animationState||(t.animationState=GM(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ea(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}},qM=0;const KM={animation:{Feature:HM},exit:{Feature:class extends Sr{constructor(){super(...arguments),this.id=qM++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}};function ao(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function lo(e){return{point:{x:e.pageX,y:e.pageY}}}const XM=e=>t=>vu(t)&&e(t,lo(t));function co(e,t,n,r){return ao(e,t,XM(n),r)}function Zg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ZM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function JM(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const Jg=1e-4,QM=1-Jg,eO=1+Jg,Qg=.01,tO=0-Qg,nO=0+Qg;function Ot(e){return e.max-e.min}function rO(e,t,n){return Math.abs(e-t)<=n}function ey(e,t,n,r=.5){e.origin=r,e.originPoint=tt(t.min,t.max,e.origin),e.scale=Ot(n)/Ot(t),e.translate=tt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=QM&&e.scale<=eO||isNaN(e.scale))&&(e.scale=1),(e.translate>=tO&&e.translate<=nO||isNaN(e.translate))&&(e.translate=0)}function uo(e,t,n,r){ey(e.x,t.x,n.x,r?r.originX:void 0),ey(e.y,t.y,n.y,r?r.originY:void 0)}function ty(e,t,n){e.min=n.min+t.min,e.max=e.min+Ot(t)}function iO(e,t,n){ty(e.x,t.x,n.x),ty(e.y,t.y,n.y)}function ny(e,t,n){e.min=t.min-n.min,e.max=e.min+Ot(t)}function fo(e,t,n){ny(e.x,t.x,n.x),ny(e.y,t.y,n.y)}const ry=()=>({translate:0,scale:1,origin:0,originPoint:0}),Xi=()=>({x:ry(),y:ry()}),iy=()=>({min:0,max:0}),at=()=>({x:iy(),y:iy()});function tn(e){return[e("x"),e("y")]}function nf(e){return e===void 0||e===1}function rf({scale:e,scaleX:t,scaleY:n}){return!nf(e)||!nf(t)||!nf(n)}function oi(e){return rf(e)||sy(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function sy(e){return oy(e.x)||oy(e.y)}function oy(e){return e&&e!=="0%"}function Ia(e,t,n){const r=e-n,i=t*r;return n+i}function ay(e,t,n,r,i){return i!==void 0&&(e=Ia(e,i,r)),Ia(e,n,r)+t}function sf(e,t=0,n=1,r,i){e.min=ay(e.min,t,n,r,i),e.max=ay(e.max,t,n,r,i)}function ly(e,{x:t,y:n}){sf(e.x,t.translate,t.scale,t.originPoint),sf(e.y,n.translate,n.scale,n.originPoint)}const cy=.999999999999,uy=1.0000000000001;function sO(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ji(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,ly(e,a)),r&&oi(o.latestValues)&&Ji(e,o.latestValues))}t.x<uy&&t.x>cy&&(t.x=1),t.y<uy&&t.y>cy&&(t.y=1)}function Zi(e,t){e.min=e.min+t,e.max=e.max+t}function fy(e,t,n,r,i=.5){const o=tt(e.min,e.max,i);sf(e,t,n,o,r)}function Ji(e,t){fy(e.x,t.x,t.scaleX,t.scale,t.originX),fy(e.y,t.y,t.scaleY,t.scale,t.originY)}function dy(e,t){return Zg(JM(e.getBoundingClientRect(),t))}function oO(e,t,n){const r=dy(e,n),{scroll:i}=t;return i&&(Zi(r.x,i.offset.x),Zi(r.y,i.offset.y)),r}const hy=({current:e})=>e?e.ownerDocument.defaultView:null,my=(e,t)=>Math.abs(e-t);function aO(e,t){const n=my(e.x,t.x),r=my(e.y,t.y);return Math.sqrt(n**2+r**2)}let py=class{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=af(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,v=aO(m.offset,{x:0,y:0})>=3;if(!p&&!v)return;const{point:S}=m,{timestamp:x}=yt;this.history.push({...S,timestamp:x});const{onStart:T,onMove:b}=this.handlers;p||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=of(p,this.transformPagePoint),He.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:v,onSessionEnd:S,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=af(m.type==="pointercancel"?this.lastMoveEventInfo:of(p,this.transformPagePoint),this.history);this.startEvent&&v&&v(m,T),S&&S(m,T)},!vu(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=lo(t),c=of(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=yt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,af(c,this.history)),this.removeListeners=so(co(this.contextWindow,"pointermove",this.handlePointerMove),co(this.contextWindow,"pointerup",this.handlePointerUp),co(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),xr(this.updatePoint)}};function of(e,t){return t?{point:t(e.point)}:e}function gy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function af({point:e},t){return{point:e,delta:gy(e,yy(t)),offset:gy(e,lO(t)),velocity:cO(t,.1)}}function lO(e){return e[0]}function yy(e){return e[e.length-1]}function cO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=yy(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>On(t)));)n--;if(!r)return{x:0,y:0};const o=Kn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function uO(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?tt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?tt(n,e,r.max):Math.min(e,n)),e}function vy(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function fO(e,{top:t,left:n,bottom:r,right:i}){return{x:vy(e.x,n,i),y:vy(e.y,t,r)}}function xy(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function dO(e,t){return{x:xy(e.x,t.x),y:xy(e.y,t.y)}}function hO(e,t){let n=.5;const r=Ot(e),i=Ot(t);return i>r?n=Ui(t.min,t.max-r,e.min):r>i&&(n=Ui(e.min,e.max-i,t.min)),Xn(0,1,n)}function mO(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const lf=.35;function pO(e=lf){return e===!1?e=0:e===!0&&(e=lf),{x:by(e,"left","right"),y:by(e,"top","bottom")}}function by(e,t,n){return{min:wy(e,t),max:wy(e,n)}}function wy(e,t){return typeof e=="number"?e:e[t]||0}const gO=new WeakMap;let yO=class{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=at(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(lo(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:v,onDragStart:S}=this.getProps();if(p&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=mP(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tn(T=>{let b=this.getAxisMotionValue(T).get()||0;if(In.test(b)){const{projection:C}=this.visualElement;if(C&&C.layout){const E=C.layout.layoutBox[T];E&&(b=Ot(E)*(parseFloat(b)/100))}}this.originPoint[T]=b}),S&&He.postRender(()=>S(h,m)),Nu(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:p,dragDirectionLock:v,onDirectionLock:S,onDrag:x}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=m;if(v&&this.currentDirection===null){this.currentDirection=vO(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),this.visualElement.render(),x&&x(h,m)},c=(h,m)=>this.stop(h,m),u=()=>tn(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new py(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:hy(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&He.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!$a(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=uO(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Gi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=fO(i.layoutBox,n):this.constraints=!1,this.elastic=pO(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=mO(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Gi(t))return!1;const r=t.current;vr(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=oO(r,i.root,this.visualElement.getTransformPagePoint());let a=dO(i.layout.layoutBox,o);if(n){const c=n(ZM(a));this.hasMutatedConstraints=!!c,c&&(a=Zg(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=tn(h=>{if(!$a(h,n,this.currentDirection))return;let m=u&&u[h]||{};a&&(m={min:0,max:0});const p=i?200:1e6,v=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Nu(this.visualElement,t),r.start(ef(t,r,0,n,this.visualElement,!1))}stopAnimation(){tn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){tn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){tn(n=>{const{drag:r}=this.getProps();if(!$a(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(t[n]-tt(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Gi(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};tn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();i[a]=hO({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),tn(a=>{if(!$a(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(tt(u,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;gO.set(this.visualElement,this);const t=this.visualElement.current,n=co(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Gi(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),He.read(r);const a=ao(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(tn(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=u[h].translate,m.set(m.get()+u[h].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=lf,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}};function $a(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function vO(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}let xO=class extends Sr{constructor(t){super(t),this.removeGroupControls=Nt,this.removeListeners=Nt,this.controls=new yO(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Nt}unmount(){this.removeGroupControls(),this.removeListeners()}};const Sy=e=>(t,n)=>{e&&He.postRender(()=>e(t,n))};let bO=class extends Sr{constructor(){super(...arguments),this.removePointerDownListener=Nt}onPointerDown(t){this.session=new py(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:hy(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Sy(t),onStart:Sy(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&He.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=co(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};const Da={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ty(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ho={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(we.test(e))e=parseFloat(e);else return e;const n=Ty(e,t.target.x),r=Ty(e,t.target.y);return`${n}% ${r}%`}},wO={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=wr.parse(e);if(i.length>5)return r;const o=wr.createTransformer(e),a=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;i[0+a]/=c,i[1+a]/=u;const d=tt(c,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};let SO=class extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;VP(TO),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Da.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||He.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),yu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}};function Ey(e){const[t,n]=f0(),r=_.useContext(ru);return y.jsx(SO,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(k0),isPresent:t,safeToRemove:n})}const TO={borderRadius:{...ho,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ho,borderTopRightRadius:ho,borderBottomLeftRadius:ho,borderBottomRightRadius:ho,boxShadow:wO};function EO(e,t,n){const r=St(e)?e:Xs(e);return r.start(ef("",r,t,n)),r.animation}function CO(e){return e instanceof SVGElement&&e.tagName!=="svg"}const PO=(e,t)=>e.depth-t.depth;let AO=class{constructor(){this.children=[],this.isDirty=!1}add(t){au(this.children,t),this.isDirty=!0}remove(t){lu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(PO),this.isDirty=!1,this.children.forEach(t)}};function MO(e,t){const n=_n.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(xr(r),e(o-t))};return He.read(r,!0),()=>xr(r)}const Cy=["TopLeft","TopRight","BottomLeft","BottomRight"],OO=Cy.length,Py=e=>typeof e=="string"?parseFloat(e):e,Ay=e=>typeof e=="number"||we.test(e);function _O(e,t,n,r,i,o){i?(e.opacity=tt(0,n.opacity!==void 0?n.opacity:1,IO(r)),e.opacityExit=tt(t.opacity!==void 0?t.opacity:1,0,$O(r))):o&&(e.opacity=tt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<OO;a++){const c=`border${Cy[a]}Radius`;let u=My(t,c),d=My(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||Ay(u)===Ay(d)?(e[c]=Math.max(tt(Py(u),Py(d),r),0),(In.test(d)||In.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=tt(t.rotate||0,n.rotate||0,r))}function My(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const IO=Oy(0,.5,ag),$O=Oy(.5,.95,Nt);function Oy(e,t,n){return r=>r<e?0:r>t?1:n(Ui(e,t,r))}function _y(e,t){e.min=t.min,e.max=t.max}function nn(e,t){_y(e.x,t.x),_y(e.y,t.y)}function Iy(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function $y(e,t,n,r,i){return e-=t,e=Ia(e,1/n,r),i!==void 0&&(e=Ia(e,1/i,r)),e}function DO(e,t=0,n=1,r=.5,i,o=e,a=e){if(In.test(t)&&(t=parseFloat(t),t=tt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=tt(o.min,o.max,r);e===o&&(c-=t),e.min=$y(e.min,t,n,c,i),e.max=$y(e.max,t,n,c,i)}function Dy(e,t,[n,r,i],o,a){DO(e,t[n],t[r],t[i],t.scale,o,a)}const NO=["x","scaleX","originX"],kO=["y","scaleY","originY"];function Ny(e,t,n,r){Dy(e.x,t,NO,n?n.x:void 0,r?r.x:void 0),Dy(e.y,t,kO,n?n.y:void 0,r?r.y:void 0)}function ky(e){return e.translate===0&&e.scale===1}function Ly(e){return ky(e.x)&&ky(e.y)}function Ry(e,t){return e.min===t.min&&e.max===t.max}function LO(e,t){return Ry(e.x,t.x)&&Ry(e.y,t.y)}function jy(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Fy(e,t){return jy(e.x,t.x)&&jy(e.y,t.y)}function Vy(e){return Ot(e.x)/Ot(e.y)}function By(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}let RO=class{constructor(){this.members=[]}add(t){au(this.members,t),t.scheduleRender()}remove(t){if(lu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function jO(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:p,skewX:v,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),v&&(r+=`skewX(${v}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const cf=["","X","Y","Z"],FO={visibility:"hidden"},Wy=1e3;let VO=0;function uf(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Uy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=eg(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",He,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Uy(r)}function zy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=VO++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(UO),this.nodes.forEach(qO),this.nodes.forEach(KO),this.nodes.forEach(zO)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new AO)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new uu),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=CO(a),this.instance=a;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let m;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=MO(p,250),Da.hasAnimatedSinceResize&&(Da.hasAnimatedSinceResize=!1,this.nodes.forEach(Yy))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:v,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||h.getDefaultTransition()||e4,{onLayoutAnimationStart:T,onLayoutAnimationComplete:b}=h.getProps(),C=!this.targetLayout||!Fy(this.targetLayout,S),E=!p&&v;if(this.options.layoutRoot||this.resumeFrom||E||p&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,E);const $={...fu(x,"layout"),onPlay:T,onComplete:b};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else p||Yy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,xr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(XO),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Uy(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Gy);return}this.isUpdating||this.nodes.forEach(YO),this.isUpdating=!1,this.nodes.forEach(HO),this.nodes.forEach(BO),this.nodes.forEach(WO),this.clearAllSnapshots();const c=_n.now();yt.delta=Xn(0,1e3/60,c-yt.timestamp),yt.timestamp=c,yt.isProcessing=!0,gu.update.process(yt),gu.preRender.process(yt),gu.render.process(yt),yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,yu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(GO),this.sharedNodes.forEach(ZO)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,He.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){He.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ot(this.snapshot.measuredBox.x)&&!Ot(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=at(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!Ly(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||oi(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),t4(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return at();const u=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(n4))){const{scroll:h}=this.root;h&&(Zi(u.x,h.offset.x),Zi(u.y,h.offset.y))}return u}removeElementScroll(a){var c;const u=at();if(nn(u,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:p}=h;h!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&nn(u,a),Zi(u.x,m.offset.x),Zi(u.y,m.offset.y))}return u}applyTransform(a,c=!1){const u=at();nn(u,a);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Ji(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),oi(h.latestValues)&&Ji(u,h.latestValues)}return oi(this.latestValues)&&Ji(u,this.latestValues),u}removeTransform(a){const c=at();nn(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!oi(d.latestValues))continue;rf(d.latestValues)&&d.updateSnapshot();const h=at(),m=d.measurePageBox();nn(h,m),Ny(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return oi(this.latestValues)&&Ny(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==yt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!(!this.layout||!(m||p))){if(this.resolvedRelativeTargetAt=yt.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),fo(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=at(),this.targetWithTransforms=at()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),iO(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nn(this.target,this.layout.layoutBox),ly(this.target,this.targetDelta)):nn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),fo(this.relativeTargetOrigin,this.target,v.target),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||rf(this.parent.latestValues)||sy(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===yt.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;nn(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,v=this.treeScale.y;sO(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=at());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Iy(this.prevProjectionDelta.x,this.projectionDelta.x),Iy(this.prevProjectionDelta.y,this.projectionDelta.y)),uo(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==v||!By(this.projectionDelta.x,this.prevProjectionDelta.x)||!By(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Xi(),this.projectionDelta=Xi(),this.projectionDeltaWithTransform=Xi()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=Xi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=at(),v=u?u.source:void 0,S=this.layout?this.layout.source:void 0,x=v!==S,T=this.getStack(),b=!T||T.members.length<=1,C=!!(x&&!b&&this.options.crossfade===!0&&!this.path.some(QO));this.animationProgress=0;let E;this.mixTargetDelta=$=>{const A=$/1e3;Hy(m.x,a.x,A),Hy(m.y,a.y,A),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fo(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),JO(this.relativeTarget,this.relativeTargetOrigin,p,A),E&&LO(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=at()),nn(E,this.relativeTarget)),x&&(this.animationValues=h,_O(h,d,this.latestValues,A,C,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(xr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=He.update(()=>{Da.hasAnimatedSinceResize=!0,this.currentAnimation=EO(0,Wy,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Wy),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&Jy(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||at();const m=Ot(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+m;const p=Ot(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+p}nn(c,u),Ji(c,h),uo(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new RO),this.sharedNodes.get(a).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&uf("z",a,d,this.animationValues);for(let h=0;h<cf.length;h++)uf(`rotate${cf[h]}`,a,d,this.animationValues),uf(`skew${cf[h]}`,a,d,this.animationValues);a.render();for(const h in d)a.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return FO;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Aa(a==null?void 0:a.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const x={};return this.options.layoutId&&(x.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,x.pointerEvents=Aa(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!oi(this.latestValues)&&(x.transform=h?h({},""):"none",this.hasProjected=!1),x}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=jO(this.projectionDeltaWithTransform,this.treeScale,p),h&&(d.transform=h(p,d.transform));const{x:v,y:S}=this.projectionDelta;d.transformOrigin=`${v.origin*100}% ${S.origin*100}% 0`,m.animationValues?d.opacity=m===this?(u=(c=p.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:d.opacity=m===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const x in Js){if(p[x]===void 0)continue;const{correct:T,applyTo:b,isCSSVariable:C}=Js[x],E=d.transform==="none"?p[x]:T(p[x],m);if(b){const $=b.length;for(let A=0;A<$;A++)d[b[A]]=E}else C?this.options.visualElement.renderState.vars[x]=E:d[x]=E}return this.options.layoutId&&(d.pointerEvents=m===this?Aa(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(Gy),this.root.sharedNodes.clear()}}}function BO(e){e.updateLayout()}function WO(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?tn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],v=Ot(p);p.min=r[m].min,p.max=p.min+v}):Jy(o,n.layoutBox,r)&&tn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],v=Ot(r[m]);p.max=p.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+v)});const c=Xi();uo(c,r,n.layoutBox);const u=Xi();a?uo(u,e.applyTransform(i,!0),n.measuredBox):uo(u,r,n.layoutBox);const d=!Ly(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:v}=m;if(p&&v){const S=at();fo(S,n.layoutBox,p.layoutBox);const x=at();fo(x,r,v.layoutBox),Fy(S,x)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function UO(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function zO(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function GO(e){e.clearSnapshot()}function Gy(e){e.clearMeasurements()}function YO(e){e.isLayoutDirty=!1}function HO(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Yy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function qO(e){e.resolveTargetDelta()}function KO(e){e.calcProjection()}function XO(e){e.resetSkewAndRotation()}function ZO(e){e.removeLeadSnapshot()}function Hy(e,t,n){e.translate=tt(t.translate,0,n),e.scale=tt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function qy(e,t,n,r){e.min=tt(t.min,n.min,r),e.max=tt(t.max,n.max,r)}function JO(e,t,n,r){qy(e.x,t.x,n.x,r),qy(e.y,t.y,n.y,r)}function QO(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const e4={duration:.45,ease:[.4,0,.1,1]},Ky=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Xy=Ky("applewebkit/")&&!Ky("chrome/")?Math.round:Nt;function Zy(e){e.min=Xy(e.min),e.max=Xy(e.max)}function t4(e){Zy(e.x),Zy(e.y)}function Jy(e,t,n){return e==="position"||e==="preserve-aspect"&&!rO(Vy(t),Vy(n),.2)}function n4(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const r4=zy({attachResizeListener:(e,t)=>ao(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ff={current:void 0},Qy=zy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ff.current){const e=new r4({});e.mount(window),e.setOptions({layoutScroll:!0}),ff.current=e}return ff.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),i4={pan:{Feature:bO},drag:{Feature:xO,ProjectionNode:Qy,MeasureLayout:Ey}};function ev(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&He.postRender(()=>o(t,lo(t)))}let s4=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=gP(t,(n,r)=>(ev(this.node,r,"Start"),i=>ev(this.node,i,"End"))))}unmount(){}},o4=class extends Sr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=so(ao(this.node.current,"focus",()=>this.onFocus()),ao(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function tv(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&He.postRender(()=>o(t,lo(t)))}let a4=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=bP(t,(n,r)=>(tv(this.node,r,"Start"),(i,{success:o})=>tv(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const df=new WeakMap,hf=new WeakMap,l4=e=>{const t=df.get(e.target);t&&t(e)},c4=e=>{e.forEach(l4)};function u4({root:e,...t}){const n=e||document;hf.has(n)||hf.set(n,{});const r=hf.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(c4,{root:e,...t})),r[i]}function f4(e,t,n){const r=u4(t);return df.set(e,n),r.observe(e),()=>{df.delete(e),r.unobserve(e)}}const d4={some:0,all:1};let h4=class extends Sr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:d4[i]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),p=d?h:m;p&&p(u)};return f4(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(m4(t,n))&&this.startObserver()}unmount(){}};function m4({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const p4={inView:{Feature:h4},tap:{Feature:a4},focus:{Feature:o4},hover:{Feature:s4}},g4={layout:{ProjectionNode:Qy,MeasureLayout:Ey}},mf={current:null},nv={current:!1};function y4(){if(nv.current=!0,!!su)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>mf.current=e.matches;e.addListener(t),t()}else mf.current=!1}const v4=[...Mg,Tt,wr],x4=e=>v4.find(Ag(e)),b4=new WeakMap;function w4(e,t,n){for(const r in t){const i=t[r],o=n[r];if(St(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&va(i.version==="12.6.2",`Attempting to mix Motion versions ${i.version} with 12.6.2 may not work as expected.`);else if(St(o))e.addValue(r,Xs(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Xs(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const rv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let S4=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Hu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const v=_n.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,He.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Ca(n),this.isVariantNode=$0(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in p){const S=p[v];u[v]!==void 0&&St(S)&&S.set(u[v],!1)}}mount(t){this.current=t,b4.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),nv.current||y4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:mf.current,process.env.NODE_ENV!=="production"&&va(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),xr(this.notifyUpdate),xr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ti.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&He.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in zi){const n=zi[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):at()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<rv.length;r++){const i=rv[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=w4(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Xs(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Cg(i)||cg(i))?i=parseFloat(i):!x4(i)&&wr.test(n)&&(i=yg(t,n)),this.setBaseTarget(t,St(i)?i.get():i)),St(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=Iu(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!St(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new uu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},iv=class extends S4{constructor(){super(...arguments),this.KeyframeResolver=_g}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;St(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function T4(e){return window.getComputedStyle(e)}let E4=class extends iv{constructor(){super(...arguments),this.type="html",this.renderInstance=q0}readValueFromInstance(t,n){if(ti.has(n))return RA(t,n);{const r=T4(t),i=(Tu(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return dy(t,n)}build(t,n,r){Pu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Du(t,n,r)}},C4=class extends iv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=at,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&H0(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ti.has(n)){const r=gg(n);return r&&r.default||0}return n=K0.has(n)?n:Su(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Z0(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&He.postRender(this.updateDimensions)}build(t,n,r){Ou(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){X0(t,n,r,i)}mount(t){this.isSVGTag=_u(t.tagName),super.mount(t)}};const P4=(e,t)=>Mu(e)?new C4(t):new E4(t,{allowProjection:e!==_.Fragment}),A4=uA({...KM,...p4,...i4,...g4},P4),pf=AP(A4),M4=500,gf=({id:e,content:t,type:n="info",duration:r=0,onClose:i})=>{const[o,a]=_.useState(!0);let c=tu,u,d,h;switch(n){case"success":u="text-green-500",d="bg-green-50",h="border-green-500",c=YC;break;case"error":u="text-red-500",d="bg-red-50",h="border-red-500",c=QC;break;case"warning":u="text-yellow-500",d="bg-yellow-50",h="border-yellow-500",c=UC;break;case"loading":u="text-gray-500",d="bg-gray-50",h="border-gray-500",c=tu;break;case"info":default:u="text-blue-500",d="bg-blue-50",h="border-blue-500",c=tu}_.useEffect(()=>{if(r===0)return;const p=setTimeout(()=>{a(!1)},r);return()=>clearTimeout(p)},[r]),_.useEffect(()=>{if(!o){const p=setTimeout(i,M4);return()=>clearTimeout(p)}},[o,i]);const m={initial:{opacity:0,y:50,scale:.9},animate:{opacity:1,y:0,scale:1,transition:{duration:.3,type:"spring",stiffness:300,damping:20}},exit:{opacity:0,y:20,scale:.95,transition:{duration:.2,ease:"easeOut"}}};return y.jsx(iP,{onExitComplete:i,children:o&&y.jsx(pf.div,{id:e,className:`toast w-[320px] rounded-xl border-[1.5px] p-8 shadow-md ${d} ${h}`,initial:"initial",animate:"animate",exit:"exit",variants:m,layout:!0,children:y.jsxs("div",{className:"flex justify-between items-center p-3",children:[y.jsxs("div",{className:"flex items-center gap-6",children:[y.jsx(Pe,{icon:c,className:`w-20 h-20 min-h-20 min-w-20 ${u}`}),y.jsx("span",{className:"text-gray-800 font-medium text-base",children:t})]}),y.jsx("button",{onClick:()=>a(!1),className:"text-gray-500 transition-all hover:text-gray-700 flex items-center",children:y.jsx(Pe,{icon:JC,className:"w-20 h-20 min-h-20 min-w-20"})})]})})})},sv=({promise:e,messages:t,options:n,onClose:r})=>{const[i,o]=_.useState("loading"),[a,c]=_.useState(t.loading);return _.useEffect(()=>{e.then(()=>{console.log("promise resolved"),o("success"),c(t.success)}).catch(()=>{console.log("promise rejected"),o("error"),c(t.error)}).finally(()=>{console.log("promise finally"),setTimeout(()=>{r()},(n==null?void 0:n.duration)||3e3)})},[e]),y.jsx(gf,{content:a,type:i,duration:n.duration,onClose:r})};/*!
|
|
621
|
+
`),()=>{document.head.removeChild(x)}},[t]),g.jsx(VE,{isPresent:t,childRef:s,sizeRef:o,children:he.cloneElement(e,{ref:s})})}const WE=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=Qc(UE),d=O.useId(),h=O.useCallback(m=>{u.set(m,!0);for(const x of u.values())if(!x)return;r&&r()},[u,r]),p=O.useMemo(()=>({id:d,initial:t,isPresent:n,custom:s,onExitComplete:h,register:m=>(u.set(m,!1),()=>u.delete(m))}),o?[Math.random(),h]:[n,h]);return O.useMemo(()=>{u.forEach((m,x)=>u.set(x,!1))},[n]),he.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=g.jsx(BE,{isPresent:n,anchorX:c,children:e})),g.jsx(fa.Provider,{value:p,children:e})};function UE(){return new Map}function a0(e=!0){const t=O.useContext(fa);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,o=O.useId();O.useEffect(()=>{if(e)return s(o)},[e]);const a=O.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const da=e=>e.key||"";function l0(e){const t=[];return O.Children.forEach(e,n=>{O.isValidElement(n)&&t.push(n)}),t}const zE=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=a0(a),h=O.useMemo(()=>l0(e),[e]),p=a&&!u?[]:h.map(da),m=O.useRef(!0),x=O.useRef(h),S=Qc(()=>new Map),[b,T]=O.useState(h),[v,A]=O.useState(h);o0(()=>{m.current=!1,x.current=h;for(let P=0;P<v.length;P++){const D=da(v[P]);p.includes(D)?S.delete(D):S.get(D)!==!0&&S.set(D,!1)}},[v,p.length,p.join("-")]);const C=[];if(h!==b){let P=[...h];for(let D=0;D<v.length;D++){const R=v[D],F=da(R);p.includes(F)||(P.splice(D,0,R),C.push(R))}return o==="wait"&&C.length&&(P=C),A(l0(P)),T(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&v.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:I}=O.useContext(Jc);return g.jsx(g.Fragment,{children:v.map(P=>{const D=da(P),R=a&&!u?!1:h===v||p.includes(D),F=()=>{if(S.has(D))S.set(D,!0);else return;let W=!0;S.forEach(Q=>{Q||(W=!1)}),W&&(I==null||I(),A(x.current),a&&(d==null||d()),r&&r())};return g.jsx(WE,{isPresent:R,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:o,onExitComplete:R?void 0:F,anchorX:c,children:P},D)})})};function nu(e,t){e.indexOf(t)===-1&&e.push(t)}function ru(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Nt=e=>e;let Rs=Nt,Cr=Nt;process.env.NODE_ENV!=="production"&&(Rs=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Cr=(e,t)=>{if(!e)throw new Error(t)});const GE={useManualTiming:!1};function su(e){let t;return()=>(t===void 0&&(t=e()),t)}const Fs=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let iu=class{constructor(){this.subscriptions=[]}add(t){return nu(this.subscriptions,t),()=>ru(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let o=0;o<s;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const Pn=e=>e*1e3,Yn=e=>e/1e3;function c0(e,t){return t?e*(1e3/t):0}const u0=new Set;function ha(e,t,n){e||u0.has(t)||(console.warn(t),u0.add(t))}const YE=su(()=>window.ScrollTimeline!==void 0);let HE=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(s=>{if(YE()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,o)=>{s&&s(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}},qE=class extends HE{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function ou(e,t){return e?e[t]||e.default||e:void 0}const au=2e4;function f0(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<au;)t+=n,r=e.next(t);return t>=au?1/0:t}function lu(e){return typeof e=="function"}function d0(e,t){e.timeline=t,e.onfinish=null}const cu=e=>Array.isArray(e)&&typeof e[0]=="number",KE={linearEasing:void 0};function XE(e,t){const n=su(e);return()=>{var r;return(r=KE[t])!==null&&r!==void 0?r:n()}}const pa=XE(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),h0=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let o=0;o<s;o++)r+=e(Fs(0,s-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function p0(e){return!!(typeof e=="function"&&pa()||!e||typeof e=="string"&&(e in uu||pa())||cu(e)||Array.isArray(e)&&e.every(p0))}const zi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,uu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zi([0,.65,.55,1]),circOut:zi([.55,0,1,.45]),backIn:zi([.31,.01,.66,-.59]),backOut:zi([.33,1.53,.69,.99])};function m0(e,t){if(e)return typeof e=="function"&&pa()?h0(e,t):cu(e)?zi(e):Array.isArray(e)?e.map(n=>m0(n,t)||uu.easeOut):uu[e]}const ma=["read","resolveKeyframes","update","preRender","render","postRender"],g0={value:null};function ZE(e,t){let n=new Set,r=new Set,s=!1,o=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(p){a.has(p)&&(h.schedule(p),e()),u++,p(c)}const h={schedule:(p,m=!1,x=!1)=>{const b=x&&s?n:r;return m&&a.add(p),b.has(p)||b.add(p),p},cancel:p=>{r.delete(p),a.delete(p)},process:p=>{if(c=p,s){o=!0;return}s=!0,[n,r]=[r,n],n.forEach(d),t&&g0.value&&g0.value.frameloop[t].push(u),u=0,n.clear(),s=!1,o&&(o=!1,h.process(p))}};return h}const JE=40;function y0(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=ma.reduce((v,A)=>(v[A]=ZE(o,t?A:void 0),v),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:p,postRender:m}=a,x=()=>{const v=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(v-s.timestamp,JE),1),s.timestamp=v,s.isProcessing=!0,c.process(s),u.process(s),d.process(s),h.process(s),p.process(s),m.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(x))},S=()=>{n=!0,r=!0,s.isProcessing||e(x)};return{schedule:ma.reduce((v,A)=>{const C=a[A];return v[A]=(I,P=!1,D=!1)=>(n||S(),C.schedule(I,P,D)),v},{}),cancel:v=>{for(let A=0;A<ma.length;A++)a[ma[A]].cancel(v)},state:s,steps:a}}const{schedule:Ye,cancel:Er,state:yt,steps:fu}=y0(typeof requestAnimationFrame<"u"?requestAnimationFrame:Nt,!0),{schedule:du}=y0(queueMicrotask,!1);let ga;function QE(){ga=void 0}const An={now:()=>(ga===void 0&&An.set(yt.isProcessing||GE.useManualTiming?yt.timestamp:performance.now()),ga),set:e=>{ga=e,queueMicrotask(QE)}},mn={x:!1,y:!1};function x0(){return mn.x||mn.y}function eP(e){return e==="x"||e==="y"?mn[e]?null:(mn[e]=!0,()=>{mn[e]=!1}):mn.x||mn.y?null:(mn.x=mn.y=!0,()=>{mn.x=mn.y=!1})}function tP(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const o=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function v0(e,t){const n=tP(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function b0(e){return!(e.pointerType==="touch"||x0())}function nP(e,t,n={}){const[r,s,o]=v0(e,n),a=c=>{if(!b0(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=p=>{b0(p)&&(d(p),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,s)};return r.forEach(c=>{c.addEventListener("pointerenter",a,s)}),o}const w0=(e,t)=>t?e===t?!0:w0(e,t.parentElement):!1,hu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,rP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function sP(e){return rP.has(e.tagName)||e.tabIndex!==-1}const Gi=new WeakSet;function S0(e){return t=>{t.key==="Enter"&&e(t)}}function pu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const iP=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=S0(()=>{if(Gi.has(n))return;pu(n,"down");const s=S0(()=>{pu(n,"up")}),o=()=>pu(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function T0(e){return hu(e)&&!x0()}function oP(e,t,n={}){const[r,s,o]=v0(e,n),a=c=>{const u=c.currentTarget;if(!T0(c)||Gi.has(u))return;Gi.add(u);const d=t(u,c),h=(x,S)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",m),!(!T0(x)||!Gi.has(u))&&(Gi.delete(u),typeof d=="function"&&d(x,{success:S}))},p=x=>{h(x,u===window||u===document||n.useGlobalTarget||w0(u,x.target))},m=x=>{h(x,!1)};window.addEventListener("pointerup",p,s),window.addEventListener("pointercancel",m,s)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,s),c instanceof HTMLElement&&(c.addEventListener("focus",d=>iP(d,s)),!sP(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}const C0=30,aP=e=>!isNaN(parseFloat(e));let lP=class{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const o=An.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=An.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=aP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ha(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new iu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ye.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=An.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>C0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,C0);return c0(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Yi(e,t){return new lP(e,t)}const E0=O.createContext({strict:!1}),P0={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Vs={};for(const e in P0)Vs[e]={isEnabled:t=>P0[e].some(n=>!!t[n])};function cP(e){for(const t in e)Vs[t]={...Vs[t],...e[t]}}const uP=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ya(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||uP.has(e)}let A0=e=>!ya(e);function fP(e){e&&(A0=t=>t.startsWith("on")?!ya(t):e(t))}try{fP(require("@emotion/is-prop-valid").default)}catch{}function dP(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(A0(s)||n===!0&&ya(s)||!t&&!ya(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function hP(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&ha(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const xa=O.createContext({});function va(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Hi(e){return typeof e=="string"||Array.isArray(e)}const mu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],gu=["initial",...mu];function ba(e){return va(e.animate)||gu.some(t=>Hi(e[t]))}function M0(e){return!!(ba(e)||e.variants)}function pP(e,t){if(ba(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Hi(n)?n:void 0,animate:Hi(r)?r:void 0}}return e.inherit!==!1?t:{}}function mP(e){const{initial:t,animate:n}=pP(e,O.useContext(xa));return O.useMemo(()=>({initial:t,animate:n}),[O0(t),O0(n)])}function O0(e){return Array.isArray(e)?e.join(" "):e}const gP=Symbol.for("motionComponentSymbol");function Bs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function yP(e,t,n){return O.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Bs(n)&&(n.current=r))},[t])}const yu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),$0="data-"+yu("framerAppearId"),_0=O.createContext({});function xP(e,t,n,r,s){var o,a;const{visualElement:c}=O.useContext(xa),u=O.useContext(E0),d=O.useContext(fa),h=O.useContext(tu).reducedMotion,p=O.useRef(null);r=r||u.renderer,!p.current&&r&&(p.current=r(e,{visualState:t,parent:c,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const m=p.current,x=O.useContext(_0);m&&!m.projection&&s&&(m.type==="html"||m.type==="svg")&&vP(p.current,n,s,x);const S=O.useRef(!1);O.useInsertionEffect(()=>{m&&S.current&&m.update(n,d)});const b=n[$0],T=O.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,b)));return o0(()=>{m&&(S.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),du.render(m.render),T.current&&m.animationState&&m.animationState.animateChanges())}),O.useEffect(()=>{m&&(!T.current&&m.animationState&&m.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,b)}),T.current=!1))}),m}function vP(e,t,n,r){const{layoutId:s,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:I0(e.parent)),e.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!a||c&&Bs(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function I0(e){if(e)return e.options.allowProjection!==!1?e.projection:I0(e.parent)}function bP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var o,a;e&&cP(e);function c(d,h){let p;const m={...O.useContext(tu),...d,layoutId:wP(d)},{isStatic:x}=m,S=mP(d),b=r(d,x);if(!x&&eu){SP(m,e);const T=TP(m);p=T.MeasureLayout,S.visualElement=xP(s,b,m,t,T.ProjectionNode)}return g.jsxs(xa.Provider,{value:S,children:[p&&S.visualElement?g.jsx(p,{visualElement:S.visualElement,...m}):null,n(s,d,yP(b,S.visualElement,h),b,x,S.visualElement)]})}c.displayName=`motion.${typeof s=="string"?s:`create(${(a=(o=s.displayName)!==null&&o!==void 0?o:s.name)!==null&&a!==void 0?a:""})`}`;const u=O.forwardRef(c);return u[gP]=s,u}function wP({layoutId:e}){const t=O.useContext(Jc).id;return t&&e!==void 0?t+"-"+e:e}function SP(e,t){const n=O.useContext(E0).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Rs(!1,r):Cr(!1,r)}}function TP(e){const{drag:t,layout:n}=Vs;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const D0=e=>t=>typeof t=="string"&&t.startsWith(e),xu=D0("--"),CP=D0("var(--"),vu=e=>CP(e)?EP.test(e.split("/*")[0].trim()):!1,EP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,qi={};function PP(e){for(const t in e)qi[t]=e[t],xu(t)&&(qi[t].isCSSVariable=!0)}const Ws=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],es=new Set(Ws);function N0(e,{layout:t,layoutId:n}){return es.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!qi[e]||e==="opacity")}const St=e=>!!(e&&e.getVelocity),k0=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Hn=(e,t,n)=>n>t?t:n<e?e:n,Us={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ki={...Us,transform:e=>Hn(0,1,e)},wa={...Us,default:1},Xi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pr=Xi("deg"),Mn=Xi("%"),we=Xi("px"),AP=Xi("vh"),MP=Xi("vw"),j0={...Mn,parse:e=>Mn.parse(e)/100,transform:e=>Mn.transform(e*100)},OP={borderWidth:we,borderTopWidth:we,borderRightWidth:we,borderBottomWidth:we,borderLeftWidth:we,borderRadius:we,radius:we,borderTopLeftRadius:we,borderTopRightRadius:we,borderBottomRightRadius:we,borderBottomLeftRadius:we,width:we,maxWidth:we,height:we,maxHeight:we,top:we,right:we,bottom:we,left:we,padding:we,paddingTop:we,paddingRight:we,paddingBottom:we,paddingLeft:we,margin:we,marginTop:we,marginRight:we,marginBottom:we,marginLeft:we,backgroundPositionX:we,backgroundPositionY:we},$P={rotate:Pr,rotateX:Pr,rotateY:Pr,rotateZ:Pr,scale:wa,scaleX:wa,scaleY:wa,scaleZ:wa,skew:Pr,skewX:Pr,skewY:Pr,distance:we,translateX:we,translateY:we,translateZ:we,x:we,y:we,z:we,perspective:we,transformPerspective:we,opacity:Ki,originX:j0,originY:j0,originZ:we},L0={...Us,transform:Math.round},bu={...OP,...$P,zIndex:L0,size:we,fillOpacity:Ki,strokeOpacity:Ki,numOctaves:L0},_P={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},IP=Ws.length;function DP(e,t,n){let r="",s=!0;for(let o=0;o<IP;o++){const a=Ws[o],c=e[a];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(a.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=k0(c,bu[a]);if(!u){s=!1;const h=_P[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function wu(e,t,n){const{style:r,vars:s,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const d=t[u];if(es.has(u)){a=!0;continue}else if(xu(u)){s[u]=d;continue}else{const h=k0(d,bu[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=DP(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${d} ${h}`}}const Su=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function R0(e,t,n){for(const r in t)!St(t[r])&&!N0(r,n)&&(e[r]=t[r])}function NP({transformTemplate:e},t){return O.useMemo(()=>{const n=Su();return wu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function kP(e,t){const n=e.style||{},r={};return R0(r,n,e),Object.assign(r,NP(e,t)),r}function jP(e,t){const n={},r=kP(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const LP=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Tu(e){return typeof e!="string"||e.includes("-")?!1:!!(LP.indexOf(e)>-1||/[A-Z]/u.test(e))}const RP={offset:"stroke-dashoffset",array:"stroke-dasharray"},FP={offset:"strokeDashoffset",array:"strokeDasharray"};function VP(e,t,n=1,r=0,s=!0){e.pathLength=1;const o=s?RP:FP;e[o.offset]=we.transform(-r);const a=we.transform(t),c=we.transform(n);e[o.array]=`${a} ${c}`}function F0(e,t,n){return typeof e=="string"?e:we.transform(t+n*e)}function BP(e,t,n){const r=F0(t,e.x,e.width),s=F0(n,e.y,e.height);return`${r} ${s}`}function Cu(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,p){if(wu(e,d,p),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:x,dimensions:S}=e;m.transform&&(S&&(x.transform=m.transform),delete m.transform),S&&(s!==void 0||o!==void 0||x.transform)&&(x.transformOrigin=BP(S,s!==void 0?s:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&VP(m,a,c,u,!1)}const V0=()=>({...Su(),attrs:{}}),Eu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function WP(e,t,n,r){const s=O.useMemo(()=>{const o=V0();return Cu(o,t,Eu(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};R0(o,e.style,e),s.style={...o,...s.style}}return s}function UP(e=!1){return(n,r,s,{latestValues:o},a)=>{const u=(Tu(n)?WP:jP)(r,o,a,n),d=dP(r,typeof n=="string",e),h=n!==O.Fragment?{...d,...u,ref:s}:{},{children:p}=r,m=O.useMemo(()=>St(p)?p.get():p,[p]);return O.createElement(n,{...h,children:m})}}function B0(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Pu(e,t,n,r){if(typeof t=="function"){const[s,o]=B0(r);t=t(n!==void 0?n:e.custom,s,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,o]=B0(r);t=t(n!==void 0?n:e.custom,s,o)}return t}const Au=e=>Array.isArray(e),zP=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),GP=e=>Au(e)?e[e.length-1]||0:e;function Sa(e){const t=St(e)?e.get():e;return zP(t)?t.toValue():t}function YP({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,o){const a={latestValues:HP(r,s,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const W0=e=>(t,n)=>{const r=O.useContext(xa),s=O.useContext(fa),o=()=>YP(e,t,r,s);return n?o():Qc(o)};function HP(e,t,n,r){const s={},o=r(e,{});for(const m in o)s[m]=Sa(o[m]);let{initial:a,animate:c}=e;const u=ba(e),d=M0(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const p=h?c:a;if(p&&typeof p!="boolean"&&!va(p)){const m=Array.isArray(p)?p:[p];for(let x=0;x<m.length;x++){const S=Pu(e,m[x]);if(S){const{transitionEnd:b,transition:T,...v}=S;for(const A in v){let C=v[A];if(Array.isArray(C)){const I=h?C.length-1:0;C=C[I]}C!==null&&(s[A]=C)}for(const A in b)s[A]=b[A]}}}return s}function Mu(e,t,n){var r;const{style:s}=e,o={};for(const a in s)(St(s[a])||t.style&&St(t.style[a])||N0(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=s[a]);return o}const qP={useVisualState:W0({scrapeMotionValuesFromProps:Mu,createRenderState:Su})};function U0(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function z0(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const G0=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Y0(e,t,n,r){z0(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(G0.has(s)?s:yu(s),t.attrs[s])}function H0(e,t,n){const r=Mu(e,t,n);for(const s in e)if(St(e[s])||St(t[s])){const o=Ws.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[o]=e[s]}return r}const q0=["x","y","width","height","cx","cy","r"],KP={useVisualState:W0({scrapeMotionValuesFromProps:H0,createRenderState:V0,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:s})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in s)if(es.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<q0.length;c++){const u=q0[c];e[u]!==t[u]&&(a=!0)}a&&Ye.read(()=>{U0(n,r),Ye.render(()=>{Cu(r,s,Eu(n.tagName),e.transformTemplate),Y0(n,r)})})}})};function XP(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const a={...Tu(r)?KP:qP,preloadedFeatures:e,useRender:UP(s),createVisualElement:t,Component:r};return bP(a)}}function Zi(e,t,n){const r=e.getProps();return Pu(r,t,n!==void 0?n:r.custom,e)}const K0=new Set(["width","height","top","left","right","bottom",...Ws]);function ZP(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Yi(n))}function JP(e,t){const n=Zi(e,t);let{transitionEnd:r={},transition:s={},...o}=n||{};o={...o,...r};for(const a in o){const c=GP(o[a]);ZP(e,a,c)}}function QP(e){return!!(St(e)&&e.add)}function Ou(e,t){const n=e.getValue("willChange");if(QP(n))return n.add(t)}function X0(e){return e.props[$0]}const Z0=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,eA=1e-7,tA=12;function nA(e,t,n,r,s){let o,a,c=0;do a=t+(n-t)/2,o=Z0(a,r,s)-e,o>0?n=a:t=a;while(Math.abs(o)>eA&&++c<tA);return a}function Ji(e,t,n,r){if(e===t&&n===r)return Nt;const s=o=>nA(o,0,1,e,n);return o=>o===0||o===1?o:Z0(s(o),t,r)}const J0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Q0=e=>t=>1-e(1-t),eg=Ji(.33,1.53,.69,.99),$u=Q0(eg),tg=J0($u),ng=e=>(e*=2)<1?.5*$u(e):.5*(2-Math.pow(2,-10*(e-1))),_u=e=>1-Math.sin(Math.acos(e)),rg=Q0(_u),sg=J0(_u),ig=e=>/^0[^.\s]+$/u.test(e);function rA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ig(e):!0}const Qi=e=>Math.round(e*1e5)/1e5,Iu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function sA(e){return e==null}const iA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Du=(e,t)=>n=>!!(typeof n=="string"&&iA.test(n)&&n.startsWith(e)||t&&!sA(n)&&Object.prototype.hasOwnProperty.call(n,t)),og=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,o,a,c]=r.match(Iu);return{[e]:parseFloat(s),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},oA=e=>Hn(0,255,e),Nu={...Us,transform:e=>Math.round(oA(e))},ts={test:Du("rgb","red"),parse:og("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Nu.transform(e)+", "+Nu.transform(t)+", "+Nu.transform(n)+", "+Qi(Ki.transform(r))+")"};function aA(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const ku={test:Du("#"),parse:aA,transform:ts.transform},zs={test:Du("hsl","hue"),parse:og("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Mn.transform(Qi(t))+", "+Mn.transform(Qi(n))+", "+Qi(Ki.transform(r))+")"},Tt={test:e=>ts.test(e)||ku.test(e)||zs.test(e),parse:e=>ts.test(e)?ts.parse(e):zs.test(e)?zs.parse(e):ku.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ts.transform(e):zs.transform(e)},lA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function cA(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Iu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(lA))===null||n===void 0?void 0:n.length)||0)>0}const ag="number",lg="color",uA="var",fA="var(",cg="${}",dA=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function eo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let o=0;const c=t.replace(dA,u=>(Tt.test(u)?(r.color.push(o),s.push(lg),n.push(Tt.parse(u))):u.startsWith(fA)?(r.var.push(o),s.push(uA),n.push(u)):(r.number.push(o),s.push(ag),n.push(parseFloat(u))),++o,cg)).split(cg);return{values:n,split:c,indexes:r,types:s}}function ug(e){return eo(e).values}function fg(e){const{split:t,types:n}=eo(e),r=t.length;return s=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],s[a]!==void 0){const c=n[a];c===ag?o+=Qi(s[a]):c===lg?o+=Tt.transform(s[a]):o+=s[a]}return o}}const hA=e=>typeof e=="number"?0:e;function pA(e){const t=ug(e);return fg(e)(t.map(hA))}const Ar={test:cA,parse:ug,createTransformer:fg,getAnimatableNone:pA},mA=new Set(["brightness","contrast","saturate","opacity"]);function gA(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Iu)||[];if(!r)return e;const s=n.replace(r,"");let o=mA.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+s+")"}const yA=/\b([a-z-]*)\(.*?\)/gu,ju={...Ar,getAnimatableNone:e=>{const t=e.match(yA);return t?t.map(gA).join(" "):e}},xA={...bu,color:Tt,backgroundColor:Tt,outlineColor:Tt,fill:Tt,stroke:Tt,borderColor:Tt,borderTopColor:Tt,borderRightColor:Tt,borderBottomColor:Tt,borderLeftColor:Tt,filter:ju,WebkitFilter:ju},dg=e=>xA[e];function hg(e,t){let n=dg(e);return n!==ju&&(n=Ar),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const vA=new Set(["auto","none","0"]);function bA(e,t,n){let r=0,s;for(;r<e.length&&!s;){const o=e[r];typeof o=="string"&&!vA.has(o)&&eo(o).values.length&&(s=e[r]),r++}if(s&&n)for(const o of t)e[o]=hg(n,s)}const ns=e=>e*180/Math.PI,Lu=e=>{const t=ns(Math.atan2(e[1],e[0]));return Ru(t)},wA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Lu,rotateZ:Lu,skewX:e=>ns(Math.atan(e[1])),skewY:e=>ns(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Ru=e=>(e=e%360,e<0&&(e+=360),e),pg=Lu,mg=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),gg=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),SA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:mg,scaleY:gg,scale:e=>(mg(e)+gg(e))/2,rotateX:e=>Ru(ns(Math.atan2(e[6],e[5]))),rotateY:e=>Ru(ns(Math.atan2(-e[2],e[0]))),rotateZ:pg,rotate:pg,skewX:e=>ns(Math.atan(e[4])),skewY:e=>ns(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function yg(e){return e.includes("scale")?1:0}function Fu(e,t){if(!e||e==="none")return yg(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=SA,s=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=wA,s=c}if(!s)return yg(t);const o=r[t],a=s[1].split(",").map(CA);return typeof o=="function"?o(a):a[o]}const TA=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Fu(n,t)};function CA(e){return parseFloat(e.trim())}const xg=e=>e===Us||e===we,EA=new Set(["x","y","z"]),PA=Ws.filter(e=>!EA.has(e));function AA(e){const t=[];return PA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Gs={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Fu(t,"x"),y:(e,{transform:t})=>Fu(t,"y")};Gs.translateX=Gs.x,Gs.translateY=Gs.y;const rs=new Set;let Vu=!1,Bu=!1;function vg(){if(Bu){const e=Array.from(rs).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=AA(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Bu=!1,Vu=!1,rs.forEach(e=>e.complete()),rs.clear()}function bg(){rs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Bu=!0)})}function MA(){bg(),vg()}let Wu=class{constructor(t,n,r,s,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(rs.add(this),Vu||(Vu=!0,Ye.read(bg),Ye.resolveKeyframes(vg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=s==null?void 0:s.get(),c=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),s&&a===void 0&&s.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),rs.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,rs.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const wg=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),OA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function $A(e){const t=OA.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}const _A=4;function Sg(e,t,n=1){Cr(n<=_A,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,s]=$A(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return wg(a)?parseFloat(a):a}return vu(s)?Sg(s,t,n+1):s}const Tg=e=>t=>t.test(e),Cg=[Us,we,Mn,Pr,MP,AP,{test:e=>e==="auto",parse:e=>e}],Eg=e=>Cg.find(Tg(e));let Pg=class extends Wu{constructor(t,n,r,s,o){super(t,n,r,s,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),vu(d))){const h=Sg(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!K0.has(r)||t.length!==2)return;const[s,o]=t,a=Eg(s),c=Eg(o);if(a!==c)if(xg(a)&&xg(c))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)rA(t[s])&&r.push(s);r.length&&bA(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Gs[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=s.length-1,c=s[a];s[a]=Gs[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,d])=>{n.getValue(u).set(d)}),this.resolveNoneKeyframes()}};const Ag=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ar.test(e)||e==="0")&&!e.startsWith("url("));function IA(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function DA(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=Ag(s,t),c=Ag(o,t);return Rs(a===c,`You are trying to animate ${t} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:IA(e)||(n==="spring"||lu(n))&&r}const NA=e=>e!==null;function Ta(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(NA),o=t&&n!=="loop"&&t%2===1?0:s.length-1;return!o||r===void 0?s[o]:r}const kA=40;let Mg=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=An.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>kA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&MA(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=An.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!DA(t,r,s,o))if(a)this.options.duration=0;else{u&&u(Ta(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const Qe=(e,t,n)=>e+(t-e)*n;function Uu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function jA({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,o=0,a=0;if(!t)s=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;s=Uu(u,c,e+1/3),o=Uu(u,c,e),a=Uu(u,c,e-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Ca(e,t){return n=>n>0?t:e}const zu=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},LA=[ku,ts,zs],RA=e=>LA.find(t=>t.test(e));function Og(e){const t=RA(e);if(Rs(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===zs&&(n=jA(n)),n}const $g=(e,t)=>{const n=Og(e),r=Og(t);if(!n||!r)return Ca(e,t);const s={...n};return o=>(s.red=zu(n.red,r.red,o),s.green=zu(n.green,r.green,o),s.blue=zu(n.blue,r.blue,o),s.alpha=Qe(n.alpha,r.alpha,o),ts.transform(s))},FA=(e,t)=>n=>t(e(n)),to=(...e)=>e.reduce(FA),Gu=new Set(["none","hidden"]);function VA(e,t){return Gu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function BA(e,t){return n=>Qe(e,t,n)}function Yu(e){return typeof e=="number"?BA:typeof e=="string"?vu(e)?Ca:Tt.test(e)?$g:zA:Array.isArray(e)?_g:typeof e=="object"?Tt.test(e)?$g:WA:Ca}function _g(e,t){const n=[...e],r=n.length,s=e.map((o,a)=>Yu(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=s[a](o);return n}}function WA(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Yu(e[s])(e[s],t[s]));return s=>{for(const o in r)n[o]=r[o](s);return n}}function UA(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],c=e.indexes[a][s[a]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,s[a]++}return r}const zA=(e,t)=>{const n=Ar.createTransformer(t),r=eo(e),s=eo(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?Gu.has(e)&&!s.values.length||Gu.has(t)&&!r.values.length?VA(e,t):to(_g(UA(r,s),s.values),n):(Rs(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Ca(e,t))};function Ig(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Qe(e,t,n):Yu(e)(e,t)}const GA=5;function Dg(e,t,n){const r=Math.max(t-GA,0);return c0(n-e(r),t-r)}const et={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ng=.001;function YA({duration:e=et.duration,bounce:t=et.bounce,velocity:n=et.velocity,mass:r=et.mass}){let s,o;Rs(e<=Pn(et.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Hn(et.minDamping,et.maxDamping,a),e=Hn(et.minDuration,et.maxDuration,Yn(e)),a<1?(s=d=>{const h=d*a,p=h*e,m=h-n,x=Hu(d,a),S=Math.exp(-p);return Ng-m/x*S},o=d=>{const p=d*a*e,m=p*n+n,x=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-p),b=Hu(Math.pow(d,2),a);return(-s(d)+Ng>0?-1:1)*((m-x)*S)/b}):(s=d=>{const h=Math.exp(-d*e),p=(d-n)*e+1;return-.001+h*p},o=d=>{const h=Math.exp(-d*e),p=(n-d)*(e*e);return h*p});const c=5/e,u=qA(s,o,c);if(e=Pn(e),isNaN(u))return{stiffness:et.stiffness,damping:et.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const HA=12;function qA(e,t,n){let r=n;for(let s=1;s<HA;s++)r=r-e(r)/t(r);return r}function Hu(e,t){return e*Math.sqrt(1-t*t)}const KA=["duration","bounce"],XA=["stiffness","damping","mass"];function kg(e,t){return t.some(n=>e[n]!==void 0)}function ZA(e){let t={velocity:et.velocity,stiffness:et.stiffness,damping:et.damping,mass:et.mass,isResolvedFromDuration:!1,...e};if(!kg(e,XA)&&kg(e,KA))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,o=2*Hn(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:et.mass,stiffness:s,damping:o}}else{const n=YA(e);t={...t,...n,mass:et.mass},t.isResolvedFromDuration=!0}return t}function jg(e=et.visualDuration,t=et.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:u,damping:d,mass:h,duration:p,velocity:m,isResolvedFromDuration:x}=ZA({...n,velocity:-Yn(n.velocity||0)}),S=m||0,b=d/(2*Math.sqrt(u*h)),T=a-o,v=Yn(Math.sqrt(u/h)),A=Math.abs(T)<5;r||(r=A?et.restSpeed.granular:et.restSpeed.default),s||(s=A?et.restDelta.granular:et.restDelta.default);let C;if(b<1){const P=Hu(v,b);C=D=>{const R=Math.exp(-b*v*D);return a-R*((S+b*v*T)/P*Math.sin(P*D)+T*Math.cos(P*D))}}else if(b===1)C=P=>a-Math.exp(-v*P)*(T+(S+v*T)*P);else{const P=v*Math.sqrt(b*b-1);C=D=>{const R=Math.exp(-b*v*D),F=Math.min(P*D,300);return a-R*((S+b*v*T)*Math.sinh(F)+P*T*Math.cosh(F))/P}}const I={calculatedDuration:x&&p||null,next:P=>{const D=C(P);if(x)c.done=P>=p;else{let R=0;b<1&&(R=P===0?Pn(S):Dg(C,P,D));const F=Math.abs(R)<=r,W=Math.abs(a-D)<=s;c.done=F&&W}return c.value=c.done?a:D,c},toString:()=>{const P=Math.min(f0(I),au),D=h0(R=>I.next(P*R).value,P,30);return P+"ms "+D}};return I}function Lg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:h}){const p=e[0],m={done:!1,value:p},x=F=>c!==void 0&&F<c||u!==void 0&&F>u,S=F=>c===void 0?u:u===void 0||Math.abs(c-F)<Math.abs(u-F)?c:u;let b=n*t;const T=p+b,v=a===void 0?T:a(T);v!==T&&(b=v-p);const A=F=>-b*Math.exp(-F/r),C=F=>v+A(F),I=F=>{const W=A(F),Q=C(F);m.done=Math.abs(W)<=d,m.value=m.done?v:Q};let P,D;const R=F=>{x(m.value)&&(P=F,D=jg({keyframes:[m.value,S(m.value)],velocity:Dg(C,F,m.value),damping:s,stiffness:o,restDelta:d,restSpeed:h}))};return R(0),{calculatedDuration:null,next:F=>{let W=!1;return!D&&P===void 0&&(W=!0,I(F),R(F)),P!==void 0&&F>=P?D.next(F-P):(!W&&I(F),m)}}}const JA=Ji(.42,0,1,1),QA=Ji(0,0,.58,1),Rg=Ji(.42,0,.58,1),eM=e=>Array.isArray(e)&&typeof e[0]!="number",Fg={linear:Nt,easeIn:JA,easeInOut:Rg,easeOut:QA,circIn:_u,circInOut:sg,circOut:rg,backIn:$u,backInOut:tg,backOut:eg,anticipate:ng},Vg=e=>{if(cu(e)){Cr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,s]=e;return Ji(t,n,r,s)}else if(typeof e=="string")return Cr(Fg[e]!==void 0,`Invalid easing type '${e}'`),Fg[e];return e};function tM(e,t,n){const r=[],s=n||Ig,o=e.length-1;for(let a=0;a<o;a++){let c=s(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Nt:t;c=to(u,c)}r.push(c)}return r}function nM(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const o=e.length;if(Cr(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=tM(t,r,s),u=c.length,d=h=>{if(a&&h<e[0])return t[0];let p=0;if(u>1)for(;p<e.length-2&&!(h<e[p+1]);p++);const m=Fs(e[p],e[p+1],h);return c[p](m)};return n?h=>d(Hn(e[0],e[o-1],h)):d}function rM(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=Fs(0,t,r);e.push(Qe(n,1,s))}}function sM(e){const t=[0];return rM(t,e.length-1),t}function iM(e,t){return e.map(n=>n*t)}function oM(e,t){return e.map(()=>t||Rg).splice(0,e.length-1)}function no({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=eM(r)?r.map(Vg):Vg(r),o={done:!1,value:t[0]},a=iM(n&&n.length===t.length?n:sM(t),e),c=nM(a,t,{ease:Array.isArray(s)?s:oM(t,s)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const aM=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ye.update(t,!0),stop:()=>Er(t),now:()=>yt.isProcessing?yt.timestamp:An.now()}},lM={decay:Lg,inertia:Lg,tween:no,keyframes:no,spring:jg},cM=e=>e/100;let qu=class extends Mg{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:s,keyframes:o}=this.options,a=(s==null?void 0:s.KeyframeResolver)||Wu,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new a(o,c,n,r,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:o,velocity:a=0}=this.options,c=lu(n)?n:lM[n]||no;let u,d;process.env.NODE_ENV!=="production"&&c!==no&&Cr(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==no&&typeof t[0]!="number"&&(u=to(cM,Ig(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=f0(h));const{calculatedDuration:p}=h,m=p+s,x=m*(r+1)-s;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:p,resolvedDuration:m,totalDuration:x}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:s,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:u,calculatedDuration:d,totalDuration:h,resolvedDuration:p}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:x,repeatType:S,repeatDelay:b,onUpdate:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-m*(this.speed>=0?1:-1),A=this.speed>=0?v<0:v>h;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let C=this.currentTime,I=o;if(x){const F=Math.min(this.currentTime,h)/p;let W=Math.floor(F),Q=F%1;!Q&&F>=1&&(Q=1),Q===1&&W--,W=Math.min(W,x+1),!!(W%2)&&(S==="reverse"?(Q=1-Q,b&&(Q-=b/p)):S==="mirror"&&(I=a)),C=Hn(0,1,Q)*p}const P=A?{done:!1,value:u[0]}:I.next(C);c&&(P.value=c(P.value));let{done:D}=P;!A&&d!==null&&(D=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return R&&s!==void 0&&(P.value=Ta(u,this.options,s)),T&&T(P.value),R&&this.finish(),P}get duration(){const{resolved:t}=this;return t?Yn(t.calculatedDuration):0}get time(){return Yn(this.currentTime)}set time(t){t=Pn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Yn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=aM,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};const uM=new Set(["opacity","clipPath","filter","transform"]);function fM(e,t,n,{delay:r=0,duration:s=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=m0(c,s);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const dM=su(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ea=10,hM=2e4;function pM(e){return lu(e.type)||e.type==="spring"||!p0(e.ease)}function mM(e,t){const n=new qu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let o=0;for(;!r.done&&o<hM;)r=n.sample(o),s.push(r.value),o+=Ea;return{times:void 0,keyframes:s,duration:o-Ea,ease:"linear"}}const Bg={anticipate:ng,backInOut:tg,circInOut:sg};function gM(e){return e in Bg}let Wg=class extends Mg{constructor(t){super(t);const{name:n,motionValue:r,element:s,keyframes:o}=this.options;this.resolver=new Pg(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:o,type:a,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&pa()&&gM(o)&&(o=Bg[o]),pM(this.options)){const{onComplete:p,onUpdate:m,motionValue:x,element:S,...b}=this.options,T=mM(t,b);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,s=T.times,o=T.ease,a="keyframes"}const h=fM(c.owner.current,u,t,{...this.options,duration:r,times:s,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(d0(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:p}=this.options;c.set(Ta(t,this.options,n)),p&&p(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:s,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Yn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Yn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Pn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Nt;const{animation:r}=n;d0(r,t)}return Nt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:s,type:o,ease:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:p,element:m,...x}=this.options,S=new qu({...x,keyframes:r,duration:s,type:o,ease:a,times:c,isGenerator:!0}),b=Pn(this.time);d.setWithVelocity(S.sample(b-Ea).value,S.sample(b).value,Ea)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:s,repeatType:o,damping:a,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return dM()&&r&&uM.has(r)&&(r!=="transform"||!d)&&!u&&!s&&o!=="mirror"&&a!==0&&c!=="inertia"}};const yM={type:"spring",stiffness:500,damping:25,restSpeed:10},xM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),vM={type:"keyframes",duration:.8},bM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},wM=(e,{keyframes:t})=>t.length>2?vM:es.has(e)?e.startsWith("scale")?xM(t[1]):yM:bM;function SM({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const Ku=(e,t,n,r={},s,o)=>a=>{const c=ou(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Pn(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:m=>{t.set(m),c.onUpdate&&c.onUpdate(m)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:s};SM(c)||(h={...h,...wM(e,h)}),h.duration&&(h.duration=Pn(h.duration)),h.repeatDelay&&(h.repeatDelay=Pn(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let p=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(p=!0)),h.allowFlatten=!c.type&&!c.ease,p&&!o&&t.get()!==void 0){const m=Ta(h.keyframes,c);if(m!==void 0)return Ye.update(()=>{h.onUpdate(m),h.onComplete()}),new qE([])}return!o&&Wg.supports(h)?new Wg(h):new qu(h)};function TM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ug(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const d=[],h=s&&e.animationState&&e.animationState.getState()[s];for(const p in u){const m=e.getValue(p,(o=e.latestValues[p])!==null&&o!==void 0?o:null),x=u[p];if(x===void 0||h&&TM(h,p))continue;const S={delay:n,...ou(a||{},p)};let b=!1;if(window.MotionHandoffAnimation){const v=X0(e);if(v){const A=window.MotionHandoffAnimation(v,p,Ye);A!==null&&(S.startTime=A,b=!0)}}Ou(e,p),m.start(Ku(p,m,x,e.shouldReduceMotion&&K0.has(p)?{type:!1}:S,e,b));const T=m.animation;T&&d.push(T)}return c&&Promise.all(d).then(()=>{Ye.update(()=>{c&&JP(e,c)})}),d}function Xu(e,t,n={}){var r;const s=Zi(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const a=s?()=>Promise.all(Ug(e,s,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:p,staggerDirection:m}=o;return CM(e,t,h+d,p,m,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,h]=u==="beforeChildren"?[a,c]:[c,a];return d().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function CM(e,t,n=0,r=0,s=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=s===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(EM).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(Xu(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function EM(e,t){return e.sortNodePosition(t)}function PM(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(o=>Xu(e,o,n));r=Promise.all(s)}else if(typeof t=="string")r=Xu(e,t,n);else{const s=typeof t=="function"?Zi(e,t,n.custom):t;r=Promise.all(Ug(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function zg(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const AM=gu.length;function Gg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Gg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<AM;n++){const r=gu[n],s=e.props[r];(Hi(s)||s===!1)&&(t[r]=s)}return t}const MM=[...mu].reverse(),OM=mu.length;function $M(e){return t=>Promise.all(t.map(({animation:n,options:r})=>PM(e,n,r)))}function _M(e){let t=$M(e),n=Yg(),r=!0;const s=u=>(d,h)=>{var p;const m=Zi(e,h,u==="exit"?(p=e.presenceContext)===null||p===void 0?void 0:p.custom:void 0);if(m){const{transition:x,transitionEnd:S,...b}=m;d={...d,...b,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=Gg(e.parent)||{},p=[],m=new Set;let x={},S=1/0;for(let T=0;T<OM;T++){const v=MM[T],A=n[v],C=d[v]!==void 0?d[v]:h[v],I=Hi(C),P=v===u?A.isActive:null;P===!1&&(S=T);let D=C===h[v]&&C!==d[v]&&I;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),A.protectedKeys={...x},!A.isActive&&P===null||!C&&!A.prevProp||va(C)||typeof C=="boolean")continue;const R=IM(A.prevProp,C);let F=R||v===u&&A.isActive&&!D&&I||T>S&&I,W=!1;const Q=Array.isArray(C)?C:[C];let ee=Q.reduce(s(v),{});P===!1&&(ee={});const{prevResolvedValues:ae={}}=A,ge={...ae,...ee},de=Y=>{F=!0,m.has(Y)&&(W=!0,m.delete(Y)),A.needsAnimating[Y]=!0;const z=e.getValue(Y);z&&(z.liveStyle=!1)};for(const Y in ge){const z=ee[Y],K=ae[Y];if(x.hasOwnProperty(Y))continue;let $=!1;Au(z)&&Au(K)?$=!zg(z,K):$=z!==K,$?z!=null?de(Y):m.add(Y):z!==void 0&&m.has(Y)?de(Y):A.protectedKeys[Y]=!0}A.prevProp=C,A.prevResolvedValues=ee,A.isActive&&(x={...x,...ee}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(D&&R)||W)&&p.push(...Q.map(Y=>({animation:Y,options:{type:v}})))}if(m.size){const T={};if(typeof d.initial!="boolean"){const v=Zi(e,Array.isArray(d.initial)?d.initial[0]:d.initial);v&&v.transition&&(T.transition=v.transition)}m.forEach(v=>{const A=e.getBaseTarget(v),C=e.getValue(v);C&&(C.liveStyle=!0),T[v]=A??null}),p.push({animation:T})}let b=!!p.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(p):Promise.resolve()}function c(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(m=>{var x;return(x=m.animationState)===null||x===void 0?void 0:x.setActive(u,d)}),n[u].isActive=d;const p=a(u);for(const m in n)n[m].protectedKeys={};return p}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Yg(),r=!0}}}function IM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!zg(t,e):!1}function ss(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Yg(){return{animate:ss(!0),whileInView:ss(),whileHover:ss(),whileTap:ss(),whileDrag:ss(),whileFocus:ss(),exit:ss()}}let Mr=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},DM=class extends Mr{constructor(t){super(t),t.animationState||(t.animationState=_M(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();va(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}},NM=0;const kM={animation:{Feature:DM},exit:{Feature:class extends Mr{constructor(){super(...arguments),this.id=NM++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}};function ro(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function so(e){return{point:{x:e.pageX,y:e.pageY}}}const jM=e=>t=>hu(t)&&e(t,so(t));function io(e,t,n,r){return ro(e,t,jM(n),r)}function Hg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function LM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function RM(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const qg=1e-4,FM=1-qg,VM=1+qg,Kg=.01,BM=0-Kg,WM=0+Kg;function Ot(e){return e.max-e.min}function UM(e,t,n){return Math.abs(e-t)<=n}function Xg(e,t,n,r=.5){e.origin=r,e.originPoint=Qe(t.min,t.max,e.origin),e.scale=Ot(n)/Ot(t),e.translate=Qe(n.min,n.max,e.origin)-e.originPoint,(e.scale>=FM&&e.scale<=VM||isNaN(e.scale))&&(e.scale=1),(e.translate>=BM&&e.translate<=WM||isNaN(e.translate))&&(e.translate=0)}function oo(e,t,n,r){Xg(e.x,t.x,n.x,r?r.originX:void 0),Xg(e.y,t.y,n.y,r?r.originY:void 0)}function Zg(e,t,n){e.min=n.min+t.min,e.max=e.min+Ot(t)}function zM(e,t,n){Zg(e.x,t.x,n.x),Zg(e.y,t.y,n.y)}function Jg(e,t,n){e.min=t.min-n.min,e.max=e.min+Ot(t)}function ao(e,t,n){Jg(e.x,t.x,n.x),Jg(e.y,t.y,n.y)}const Qg=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ys=()=>({x:Qg(),y:Qg()}),ey=()=>({min:0,max:0}),at=()=>({x:ey(),y:ey()});function tn(e){return[e("x"),e("y")]}function Zu(e){return e===void 0||e===1}function Ju({scale:e,scaleX:t,scaleY:n}){return!Zu(e)||!Zu(t)||!Zu(n)}function is(e){return Ju(e)||ty(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ty(e){return ny(e.x)||ny(e.y)}function ny(e){return e&&e!=="0%"}function Pa(e,t,n){const r=e-n,s=t*r;return n+s}function ry(e,t,n,r,s){return s!==void 0&&(e=Pa(e,s,r)),Pa(e,n,r)+t}function Qu(e,t=0,n=1,r,s){e.min=ry(e.min,t,n,r,s),e.max=ry(e.max,t,n,r,s)}function sy(e,{x:t,y:n}){Qu(e.x,t.translate,t.scale,t.originPoint),Qu(e.y,n.translate,n.scale,n.originPoint)}const iy=.999999999999,oy=1.0000000000001;function GM(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let o,a;for(let c=0;c<s;c++){o=n[c],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&qs(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,sy(e,a)),r&&is(o.latestValues)&&qs(e,o.latestValues))}t.x<oy&&t.x>iy&&(t.x=1),t.y<oy&&t.y>iy&&(t.y=1)}function Hs(e,t){e.min=e.min+t,e.max=e.max+t}function ay(e,t,n,r,s=.5){const o=Qe(e.min,e.max,s);Qu(e,t,n,o,r)}function qs(e,t){ay(e.x,t.x,t.scaleX,t.scale,t.originX),ay(e.y,t.y,t.scaleY,t.scale,t.originY)}function ly(e,t){return Hg(RM(e.getBoundingClientRect(),t))}function YM(e,t,n){const r=ly(e,n),{scroll:s}=t;return s&&(Hs(r.x,s.offset.x),Hs(r.y,s.offset.y)),r}const cy=({current:e})=>e?e.ownerDocument.defaultView:null,uy=(e,t)=>Math.abs(e-t);function HM(e,t){const n=uy(e.x,t.x),r=uy(e.y,t.y);return Math.sqrt(n**2+r**2)}let fy=class{constructor(t,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=tf(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,x=HM(p.offset,{x:0,y:0})>=3;if(!m&&!x)return;const{point:S}=p,{timestamp:b}=yt;this.history.push({...S,timestamp:b});const{onStart:T,onMove:v}=this.handlers;m||(T&&T(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,p)},this.handlePointerMove=(p,m)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=ef(m,this.transformPagePoint),Ye.update(this.updatePoint,!0)},this.handlePointerUp=(p,m)=>{this.end();const{onEnd:x,onSessionEnd:S,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=tf(p.type==="pointercancel"?this.lastMoveEventInfo:ef(m,this.transformPagePoint),this.history);this.startEvent&&x&&x(p,T),S&&S(p,T)},!hu(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const a=so(t),c=ef(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=yt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,tf(c,this.history)),this.removeListeners=to(io(this.contextWindow,"pointermove",this.handlePointerMove),io(this.contextWindow,"pointerup",this.handlePointerUp),io(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Er(this.updatePoint)}};function ef(e,t){return t?{point:t(e.point)}:e}function dy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function tf({point:e},t){return{point:e,delta:dy(e,hy(t)),offset:dy(e,qM(t)),velocity:KM(t,.1)}}function qM(e){return e[0]}function hy(e){return e[e.length-1]}function KM(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=hy(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Pn(t)));)n--;if(!r)return{x:0,y:0};const o=Yn(s.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(s.x-r.x)/o,y:(s.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function XM(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Qe(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Qe(n,e,r.max):Math.min(e,n)),e}function py(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function ZM(e,{top:t,left:n,bottom:r,right:s}){return{x:py(e.x,n,s),y:py(e.y,t,r)}}function my(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function JM(e,t){return{x:my(e.x,t.x),y:my(e.y,t.y)}}function QM(e,t){let n=.5;const r=Ot(e),s=Ot(t);return s>r?n=Fs(t.min,t.max-r,e.min):r>s&&(n=Fs(e.min,e.max-s,t.min)),Hn(0,1,n)}function eO(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const nf=.35;function tO(e=nf){return e===!1?e=0:e===!0&&(e=nf),{x:gy(e,"left","right"),y:gy(e,"top","bottom")}}function gy(e,t,n){return{min:yy(e,t),max:yy(e,n)}}function yy(e,t){return typeof e=="number"?e:e[t]||0}const nO=new WeakMap;let rO=class{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=at(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=h=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(so(h).point)},o=(h,p)=>{const{drag:m,dragPropagation:x,onDragStart:S}=this.getProps();if(m&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=eP(m),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tn(T=>{let v=this.getAxisMotionValue(T).get()||0;if(Mn.test(v)){const{projection:A}=this.visualElement;if(A&&A.layout){const C=A.layout.layoutBox[T];C&&(v=Ot(C)*(parseFloat(v)/100))}}this.originPoint[T]=v}),S&&Ye.postRender(()=>S(h,p)),Ou(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(h,p)=>{const{dragPropagation:m,dragDirectionLock:x,onDirectionLock:S,onDrag:b}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:T}=p;if(x&&this.currentDirection===null){this.currentDirection=sO(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",p.point,T),this.updateAxis("y",p.point,T),this.visualElement.render(),b&&b(h,p)},c=(h,p)=>this.stop(h,p),u=()=>tn(h=>{var p;return this.getAnimationState(h)==="paused"&&((p=this.getAxisMotionValue(h).animation)===null||p===void 0?void 0:p.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new fy(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:cy(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&Ye.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!Aa(t,s,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=XM(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Bs(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=ZM(s.layoutBox,n):this.constraints=!1,this.elastic=tO(r),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&tn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=eO(s.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Bs(t))return!1;const r=t.current;Cr(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const o=YM(r,s.root,this.visualElement.getTransformPagePoint());let a=JM(s.layout.layoutBox,o);if(n){const c=n(LM(a));this.hasMutatedConstraints=!!c,c&&(a=Hg(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=tn(h=>{if(!Aa(h,n,this.currentDirection))return;let p=u&&u[h]||{};a&&(p={min:0,max:0});const m=s?200:1e6,x=s?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:m,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...o,...p};return this.startAxisValueAnimation(h,S)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ou(this.visualElement,t),r.start(Ku(t,r,0,n,this.visualElement,!1))}stopAnimation(){tn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){tn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){tn(n=>{const{drag:r}=this.getProps();if(!Aa(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,o=this.getAxisMotionValue(n);if(s&&s.layout){const{min:a,max:c}=s.layout.layoutBox[n];o.set(t[n]-Qe(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Bs(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};tn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();s[a]=QM({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),tn(a=>{if(!Aa(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(Qe(u,d,s[a]))})}addListeners(){if(!this.visualElement.current)return;nO.set(this.visualElement,this);const t=this.visualElement.current,n=io(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Bs(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,o=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Ye.read(r);const a=ro(window,"resize",()=>this.scalePositionWithinConstraints()),c=s.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(tn(h=>{const p=this.getAxisMotionValue(h);p&&(this.originPoint[h]+=u[h].translate,p.set(p.get()+u[h].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:a=nf,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:o,dragElastic:a,dragMomentum:c}}};function Aa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function sO(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}let iO=class extends Mr{constructor(t){super(t),this.removeGroupControls=Nt,this.removeListeners=Nt,this.controls=new rO(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Nt}unmount(){this.removeGroupControls(),this.removeListeners()}};const xy=e=>(t,n)=>{e&&Ye.postRender(()=>e(t,n))};let oO=class extends Mr{constructor(){super(...arguments),this.removePointerDownListener=Nt}onPointerDown(t){this.session=new fy(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:cy(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:xy(t),onStart:xy(n),onMove:r,onEnd:(o,a)=>{delete this.session,s&&Ye.postRender(()=>s(o,a))}}}mount(){this.removePointerDownListener=io(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};const Ma={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function vy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const lo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(we.test(e))e=parseFloat(e);else return e;const n=vy(e,t.target.x),r=vy(e,t.target.y);return`${n}% ${r}%`}},aO={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=Ar.parse(e);if(s.length>5)return r;const o=Ar.createTransformer(e),a=typeof s[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;s[0+a]/=c,s[1+a]/=u;const d=Qe(c,u,.5);return typeof s[2+a]=="number"&&(s[2+a]/=d),typeof s[3+a]=="number"&&(s[3+a]/=d),o(s)}};let lO=class extends O.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:o}=t;PP(cO),o&&(n.group&&n.group.add(o),r&&r.register&&s&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Ma.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,s||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||Ye.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),du.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}};function by(e){const[t,n]=a0(),r=O.useContext(Jc);return g.jsx(lO,{...e,layoutGroup:r,switchLayoutGroup:O.useContext(_0),isPresent:t,safeToRemove:n})}const cO={borderRadius:{...lo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:lo,borderTopRightRadius:lo,borderBottomLeftRadius:lo,borderBottomRightRadius:lo,boxShadow:aO};function uO(e,t,n){const r=St(e)?e:Yi(e);return r.start(Ku("",r,t,n)),r.animation}function fO(e){return e instanceof SVGElement&&e.tagName!=="svg"}const dO=(e,t)=>e.depth-t.depth;let hO=class{constructor(){this.children=[],this.isDirty=!1}add(t){nu(this.children,t),this.isDirty=!0}remove(t){ru(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(dO),this.isDirty=!1,this.children.forEach(t)}};function pO(e,t){const n=An.now(),r=({timestamp:s})=>{const o=s-n;o>=t&&(Er(r),e(o-t))};return Ye.read(r,!0),()=>Er(r)}const wy=["TopLeft","TopRight","BottomLeft","BottomRight"],mO=wy.length,Sy=e=>typeof e=="string"?parseFloat(e):e,Ty=e=>typeof e=="number"||we.test(e);function gO(e,t,n,r,s,o){s?(e.opacity=Qe(0,n.opacity!==void 0?n.opacity:1,yO(r)),e.opacityExit=Qe(t.opacity!==void 0?t.opacity:1,0,xO(r))):o&&(e.opacity=Qe(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<mO;a++){const c=`border${wy[a]}Radius`;let u=Cy(t,c),d=Cy(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||Ty(u)===Ty(d)?(e[c]=Math.max(Qe(Sy(u),Sy(d),r),0),(Mn.test(d)||Mn.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=Qe(t.rotate||0,n.rotate||0,r))}function Cy(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const yO=Ey(0,.5,rg),xO=Ey(.5,.95,Nt);function Ey(e,t,n){return r=>r<e?0:r>t?1:n(Fs(e,t,r))}function Py(e,t){e.min=t.min,e.max=t.max}function nn(e,t){Py(e.x,t.x),Py(e.y,t.y)}function Ay(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function My(e,t,n,r,s){return e-=t,e=Pa(e,1/n,r),s!==void 0&&(e=Pa(e,1/s,r)),e}function vO(e,t=0,n=1,r=.5,s,o=e,a=e){if(Mn.test(t)&&(t=parseFloat(t),t=Qe(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=Qe(o.min,o.max,r);e===o&&(c-=t),e.min=My(e.min,t,n,c,s),e.max=My(e.max,t,n,c,s)}function Oy(e,t,[n,r,s],o,a){vO(e,t[n],t[r],t[s],t.scale,o,a)}const bO=["x","scaleX","originX"],wO=["y","scaleY","originY"];function $y(e,t,n,r){Oy(e.x,t,bO,n?n.x:void 0,r?r.x:void 0),Oy(e.y,t,wO,n?n.y:void 0,r?r.y:void 0)}function _y(e){return e.translate===0&&e.scale===1}function Iy(e){return _y(e.x)&&_y(e.y)}function Dy(e,t){return e.min===t.min&&e.max===t.max}function SO(e,t){return Dy(e.x,t.x)&&Dy(e.y,t.y)}function Ny(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ky(e,t){return Ny(e.x,t.x)&&Ny(e.y,t.y)}function jy(e){return Ot(e.x)/Ot(e.y)}function Ly(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}let TO=class{constructor(){this.members=[]}add(t){nu(this.members,t),t.scheduleRender()}remove(t){if(ru(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const o=this.members[s];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function CO(e,t,n){let r="";const s=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((s||o||a)&&(r=`translate3d(${s}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:p,rotateY:m,skewX:x,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),p&&(r+=`rotateX(${p}deg) `),m&&(r+=`rotateY(${m}deg) `),x&&(r+=`skewX(${x}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const rf=["","X","Y","Z"],EO={visibility:"hidden"},Ry=1e3;let PO=0;function sf(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Fy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=X0(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ye,!(s||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Fy(r)}function Vy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(a={},c=t==null?void 0:t()){this.id=PO++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(OO),this.nodes.forEach(NO),this.nodes.forEach(kO),this.nodes.forEach($O)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new hO)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new iu),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=fO(a),this.instance=a;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let p;const m=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=pO(m,250),Ma.hasAnimatedSinceResize&&(Ma.hasAnimatedSinceResize=!1,this.nodes.forEach(Wy))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:m,hasRelativeLayoutChanged:x,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||h.getDefaultTransition()||VO,{onLayoutAnimationStart:T,onLayoutAnimationComplete:v}=h.getProps(),A=!this.targetLayout||!ky(this.targetLayout,S),C=!m&&x;if(this.options.layoutRoot||this.resumeFrom||C||m&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,C);const I={...ou(b,"layout"),onPlay:T,onComplete:v};(h.shouldReduceMotion||this.options.layoutRoot)&&(I.delay=0,I.type=!1),this.startAnimation(I)}else m||Wy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Er(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(jO),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Fy(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const p=this.path[h];p.shouldResetTransform=!0,p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(By);return}this.isUpdating||this.nodes.forEach(IO),this.isUpdating=!1,this.nodes.forEach(DO),this.nodes.forEach(AO),this.nodes.forEach(MO),this.clearAllSnapshots();const c=An.now();yt.delta=Hn(0,1e3/60,c-yt.timestamp),yt.timestamp=c,yt.isProcessing=!0,fu.update.process(yt),fu.preRender.process(yt),fu.render.process(yt),yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,du.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(_O),this.sharedNodes.forEach(LO)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ye.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ye.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ot(this.snapshot.measuredBox.x)&&!Ot(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=at(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!s)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!Iy(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||is(this.latestValues)||h)&&(s(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),BO(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return at();const u=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(WO))){const{scroll:h}=this.root;h&&(Hs(u.x,h.offset.x),Hs(u.y,h.offset.y))}return u}removeElementScroll(a){var c;const u=at();if(nn(u,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:p,options:m}=h;h!==this.root&&p&&m.layoutScroll&&(p.wasRoot&&nn(u,a),Hs(u.x,p.offset.x),Hs(u.y,p.offset.y))}return u}applyTransform(a,c=!1){const u=at();nn(u,a);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&qs(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),is(h.latestValues)&&qs(u,h.latestValues)}return is(this.latestValues)&&qs(u,this.latestValues),u}removeTransform(a){const c=at();nn(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!is(d.latestValues))continue;Ju(d.latestValues)&&d.updateSnapshot();const h=at(),p=d.measurePageBox();nn(h,p),$y(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return is(this.latestValues)&&$y(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==yt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:m}=this.options;if(!(!this.layout||!(p||m))){if(this.resolvedRelativeTargetAt=yt.timestamp,!this.targetDelta&&!this.relativeTarget){const x=this.getClosestProjectingParent();x&&x.layout&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),ao(this.relativeTargetOrigin,this.layout.layoutBox,x.layout.layoutBox),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=at(),this.targetWithTransforms=at()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),zM(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nn(this.target,this.layout.layoutBox),sy(this.target,this.targetDelta)):nn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const x=this.getClosestProjectingParent();x&&!!x.resumingFrom==!!this.resumingFrom&&!x.options.layoutScroll&&x.target&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),ao(this.relativeTargetOrigin,this.target,x.target),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Ju(this.parent.latestValues)||ty(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===yt.timestamp&&(d=!1),d)return;const{layout:h,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||p))return;nn(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,x=this.treeScale.y;GM(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=at());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ay(this.prevProjectionDelta.x,this.projectionDelta.x),Ay(this.prevProjectionDelta.y,this.projectionDelta.y)),oo(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==x||!Ly(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ly(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ys(),this.projectionDelta=Ys(),this.projectionDeltaWithTransform=Ys()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},p=Ys();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const m=at(),x=u?u.source:void 0,S=this.layout?this.layout.source:void 0,b=x!==S,T=this.getStack(),v=!T||T.members.length<=1,A=!!(b&&!v&&this.options.crossfade===!0&&!this.path.some(FO));this.animationProgress=0;let C;this.mixTargetDelta=I=>{const P=I/1e3;Uy(p.x,a.x,P),Uy(p.y,a.y,P),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ao(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),RO(this.relativeTarget,this.relativeTargetOrigin,m,P),C&&SO(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=at()),nn(C,this.relativeTarget)),b&&(this.animationValues=h,gO(h,d,this.latestValues,P,A,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Er(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ye.update(()=>{Ma.hasAnimatedSinceResize=!0,this.currentAnimation=uO(0,Ry,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ry),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&qy(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||at();const p=Ot(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+p;const m=Ot(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+m}nn(c,u),qs(c,h),oo(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new TO),this.sharedNodes.get(a).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&sf("z",a,d,this.animationValues);for(let h=0;h<rf.length;h++)sf(`rotate${rf[h]}`,a,d,this.animationValues),sf(`skew${rf[h]}`,a,d,this.animationValues);a.render();for(const h in d)a.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return EO;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Sa(a==null?void 0:a.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Sa(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!is(this.latestValues)&&(b.transform=h?h({},""):"none",this.hasProjected=!1),b}const m=p.animationValues||p.latestValues;this.applyTransformsToTarget(),d.transform=CO(this.projectionDeltaWithTransform,this.treeScale,m),h&&(d.transform=h(m,d.transform));const{x,y:S}=this.projectionDelta;d.transformOrigin=`${x.origin*100}% ${S.origin*100}% 0`,p.animationValues?d.opacity=p===this?(u=(c=m.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:d.opacity=p===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const b in qi){if(m[b]===void 0)continue;const{correct:T,applyTo:v,isCSSVariable:A}=qi[b],C=d.transform==="none"?m[b]:T(m[b],p);if(v){const I=v.length;for(let P=0;P<I;P++)d[v[P]]=C}else A?this.options.visualElement.renderState.vars[b]=C:d[b]=C}return this.options.layoutId&&(d.pointerEvents=p===this?Sa(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(By),this.root.sharedNodes.clear()}}}function AO(e){e.updateLayout()}function MO(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?tn(p=>{const m=a?n.measuredBox[p]:n.layoutBox[p],x=Ot(m);m.min=r[p].min,m.max=m.min+x}):qy(o,n.layoutBox,r)&&tn(p=>{const m=a?n.measuredBox[p]:n.layoutBox[p],x=Ot(r[p]);m.max=m.min+x,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+x)});const c=Ys();oo(c,r,n.layoutBox);const u=Ys();a?oo(u,e.applyTransform(s,!0),n.measuredBox):oo(u,r,n.layoutBox);const d=!Iy(c);let h=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:m,layout:x}=p;if(m&&x){const S=at();ao(S,n.layoutBox,m.layoutBox);const b=at();ao(b,r,x.layoutBox),ky(S,b)||(h=!0),p.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=S,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function OO(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function $O(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function _O(e){e.clearSnapshot()}function By(e){e.clearMeasurements()}function IO(e){e.isLayoutDirty=!1}function DO(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Wy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function NO(e){e.resolveTargetDelta()}function kO(e){e.calcProjection()}function jO(e){e.resetSkewAndRotation()}function LO(e){e.removeLeadSnapshot()}function Uy(e,t,n){e.translate=Qe(t.translate,0,n),e.scale=Qe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function zy(e,t,n,r){e.min=Qe(t.min,n.min,r),e.max=Qe(t.max,n.max,r)}function RO(e,t,n,r){zy(e.x,t.x,n.x,r),zy(e.y,t.y,n.y,r)}function FO(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const VO={duration:.45,ease:[.4,0,.1,1]},Gy=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Yy=Gy("applewebkit/")&&!Gy("chrome/")?Math.round:Nt;function Hy(e){e.min=Yy(e.min),e.max=Yy(e.max)}function BO(e){Hy(e.x),Hy(e.y)}function qy(e,t,n){return e==="position"||e==="preserve-aspect"&&!UM(jy(t),jy(n),.2)}function WO(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const UO=Vy({attachResizeListener:(e,t)=>ro(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),of={current:void 0},Ky=Vy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!of.current){const e=new UO({});e.mount(window),e.setOptions({layoutScroll:!0}),of.current=e}return of.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),zO={pan:{Feature:oO},drag:{Feature:iO,ProjectionNode:Ky,MeasureLayout:by}};function Xy(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,o=r[s];o&&Ye.postRender(()=>o(t,so(t)))}let GO=class extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=nP(t,(n,r)=>(Xy(this.node,r,"Start"),s=>Xy(this.node,s,"End"))))}unmount(){}},YO=class extends Mr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=to(ro(this.node.current,"focus",()=>this.onFocus()),ro(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function Zy(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),o=r[s];o&&Ye.postRender(()=>o(t,so(t)))}let HO=class extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=oP(t,(n,r)=>(Zy(this.node,r,"Start"),(s,{success:o})=>Zy(this.node,s,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const af=new WeakMap,lf=new WeakMap,qO=e=>{const t=af.get(e.target);t&&t(e)},KO=e=>{e.forEach(qO)};function XO({root:e,...t}){const n=e||document;lf.has(n)||lf.set(n,{});const r=lf.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(KO,{root:e,...t})),r[s]}function ZO(e,t,n){const r=XO(t);return af.set(e,n),r.observe(e),()=>{af.delete(e),r.unobserve(e)}}const JO={some:0,all:1};let QO=class extends Mr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:JO[s]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:p}=this.node.getProps(),m=d?h:p;m&&m(u)};return ZO(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(e4(t,n))&&this.startObserver()}unmount(){}};function e4({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const t4={inView:{Feature:QO},tap:{Feature:HO},focus:{Feature:YO},hover:{Feature:GO}},n4={layout:{ProjectionNode:Ky,MeasureLayout:by}},cf={current:null},Jy={current:!1};function r4(){if(Jy.current=!0,!!eu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>cf.current=e.matches;e.addListener(t),t()}else cf.current=!1}const s4=[...Cg,Tt,Ar],i4=e=>s4.find(Tg(e)),o4=new WeakMap;function a4(e,t,n){for(const r in t){const s=t[r],o=n[r];if(St(s))e.addValue(r,s),process.env.NODE_ENV==="development"&&ha(s.version==="12.6.2",`Attempting to mix Motion versions ${s.version} with 12.6.2 may not work as expected.`);else if(St(o))e.addValue(r,Yi(s,{owner:e}));else if(o!==s)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(s):a.hasAnimated||a.set(s)}else{const a=e.getStaticValue(r);e.addValue(r,Yi(a!==void 0?a:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Qy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let l4=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Wu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const x=An.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,Ye.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=ba(n),this.isVariantNode=M0(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const x in m){const S=m[x];u[x]!==void 0&&St(S)&&S.set(u[x],!1)}}mount(t){this.current=t,o4.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Jy.current||r4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:cf.current,process.env.NODE_ENV!=="production"&&ha(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Er(this.notifyUpdate),Er(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=es.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&Ye.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Vs){const n=Vs[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):at()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Qy.length;r++){const s=Qy[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o="on"+s,a=t[o];a&&(this.propEventSubscriptions[s]=this.on(s,a))}this.prevMotionValues=a4(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Yi(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(wg(s)||ig(s))?s=parseFloat(s):!i4(s)&&Ar.test(n)&&(s=hg(t,n)),this.setBaseTarget(t,St(s)?s.get():s)),St(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const a=Pu(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(s=a[t])}if(r&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!St(o)?o:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new iu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},ex=class extends l4{constructor(){super(...arguments),this.KeyframeResolver=Pg}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;St(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function c4(e){return window.getComputedStyle(e)}let u4=class extends ex{constructor(){super(...arguments),this.type="html",this.renderInstance=z0}readValueFromInstance(t,n){if(es.has(n))return TA(t,n);{const r=c4(t),s=(xu(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ly(t,n)}build(t,n,r){wu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Mu(t,n,r)}},f4=class extends ex{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=at,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&U0(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(es.has(n)){const r=dg(n);return r&&r.default||0}return n=G0.has(n)?n:yu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return H0(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&Ye.postRender(this.updateDimensions)}build(t,n,r){Cu(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){Y0(t,n,r,s)}mount(t){this.isSVGTag=Eu(t.tagName),super.mount(t)}};const d4=(e,t)=>Tu(e)?new f4(t):new u4(t,{allowProjection:e!==O.Fragment}),h4=XP({...kM,...t4,...zO,...n4},d4),uf=hP(h4),p4=500,ff=({id:e,content:t,type:n="notification",duration:r=0,onClose:s})=>{const[o,a]=O.useState(!0);let c,u=Ui,d;switch(n){case"success":d="text-green-500",c="bg-green-100",u=t0;break;case"error":d="text-red-500",c="bg-red-100",u=s0;break;case"warning":d="text-yellow-500",c="bg-yellow-100",u=Ui;break;case"loading":d="text-gray-500",c="bg-gray-100",u=Ui;break;case"notification":d="text-blue-500",c="bg-blue-100",u=n0;break;default:d="text-blue-500",c="bg-blue-100",u=Ui}O.useEffect(()=>{if(r===0)return;const p=setTimeout(()=>{a(!1)},r);return()=>clearTimeout(p)},[r]),O.useEffect(()=>{if(!o){const p=setTimeout(s,p4);return()=>clearTimeout(p)}},[o,s]);const h={initial:{opacity:0,y:50,scale:.9},animate:{opacity:1,y:0,scale:1,transition:{duration:.3,type:"spring",stiffness:300,damping:20}},exit:{opacity:0,y:20,scale:.95,transition:{duration:.2,ease:"easeOut"}}};return g.jsx(zE,{onExitComplete:s,children:o&&g.jsxs(uf.div,{id:e,className:"toast w-[320px] rounded-xl border-[1.5px] p-[18px] shadow-md bg-white font-jakarta-sans",initial:"initial",animate:"animate",exit:"exit",variants:h,layout:!0,children:[g.jsx(Pe,{icon:RE,onClick:()=>a(!1),className:"float-right text-lg text-[#9CA1B6] cursor-pointer"}),g.jsxs("div",{className:"space-y-16",children:[g.jsxs("div",{className:"flex gap-12",children:[g.jsx(Pe,{icon:u,className:`text-[20px] p-6 rounded-full self-start ${d} ${c}`}),g.jsx("h5",{className:"text-lg font-bold text-blue-900 self-center",children:t.title})]}),t.description&&g.jsx("span",{className:"text-sm text-gray-500 leading-[16px]",children:t.description})]})]})})},tx=({promise:e,messages:t,options:n,onClose:r})=>{const[s,o]=O.useState("loading"),[a,c]=O.useState(t.loading);return O.useEffect(()=>{e.then(()=>{console.log("promise resolved"),o("success"),c(t.success)}).catch(()=>{console.log("promise rejected"),o("error"),c(t.error)}).finally(()=>{console.log("promise finally"),setTimeout(()=>{r()},(n==null?void 0:n.duration)||3e3)})},[e]),g.jsx(ff,{content:a,type:s,duration:n.duration,onClose:r})};/*!
|
|
622
622
|
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
623
623
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
624
624
|
* Copyright 2024 Fonticons, Inc.
|
|
625
|
-
*/const O4={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]},_4={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},ov={prefix:"fas",iconName:"x",icon:[384,512,[120],"58","M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"]},av=6048e5,I4=864e5,lv=Symbol.for("constructDateFrom");function Gt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&lv in e?e[lv](t):e instanceof Date?new e.constructor(t):new Date(t)}function pt(e,t){return Gt(t||e,e)}function cv(e,t,n){const r=pt(e,n==null?void 0:n.in);if(isNaN(t))return Gt(e,NaN);if(!t)return r;const i=r.getDate(),o=Gt(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const a=o.getDate();return i>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}let $4={};function mo(){return $4}function Qi(e,t){var c,u,d,h;const n=mo(),r=(t==null?void 0:t.weekStartsOn)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??n.weekStartsOn??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??0,i=pt(e,t==null?void 0:t.in),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function Na(e,t){return Qi(e,{...t,weekStartsOn:1})}function uv(e,t){const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),i=Gt(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=Na(i),a=Gt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const c=Na(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function fv(e){const t=pt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function ka(e,...t){const n=Gt.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function La(e,t){const n=pt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function D4(e,t,n){const[r,i]=ka(n==null?void 0:n.in,e,t),o=La(r),a=La(i),c=+o-fv(o),u=+a-fv(a);return Math.round((c-u)/I4)}function N4(e,t){const n=uv(e,t),r=Gt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Na(r)}function k4(e){return Gt(e,Date.now())}function dv(e,t,n){const[r,i]=ka(n==null?void 0:n.in,e,t);return+La(r)==+La(i)}function L4(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function R4(e){return!(!L4(e)&&typeof e!="number"||isNaN(+pt(e)))}function j4(e,t){const n=pt(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function F4(e,t){const[n,r]=ka(e,t.start,t.end);return{start:n,end:r}}function V4(e,t){const{start:n,end:r}=F4(t==null?void 0:t.in,e);let i=+n>+r;const o=i?+n:+r,a=i?r:n;a.setHours(0,0,0,0);let c=1;const u=[];for(;+a<=o;)u.push(Gt(n,a)),a.setDate(a.getDate()+c),a.setHours(0,0,0,0);return i?u.reverse():u}function B4(e,t){const n=pt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function W4(e,t){const n=pt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function U4(e,t){var c,u;const n=mo(),r=n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,i=pt(e,t==null?void 0:t.in),o=i.getDay(),a=(o<r?-7:0)+6-(o-r);return i.setDate(i.getDate()+a),i.setHours(23,59,59,999),i}const z4={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},G4=(e,t,n)=>{let r;const i=z4[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function es(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Y4={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},H4={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},q4={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},K4={date:es({formats:Y4,defaultWidth:"full"}),time:es({formats:H4,defaultWidth:"full"}),dateTime:es({formats:q4,defaultWidth:"full"})},X4={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Z4=(e,t,n,r)=>X4[e];function $n(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):a;i=e.formattingValues[c]||e.formattingValues[a]}else{const a=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const J4={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Q4={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},e_={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},t_={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},n_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},r_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},i_={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:$n({values:J4,defaultWidth:"wide"}),quarter:$n({values:Q4,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$n({values:e_,defaultWidth:"wide"}),day:$n({values:t_,defaultWidth:"wide"}),dayPeriod:$n({values:n_,defaultWidth:"wide",formattingValues:r_,defaultFormattingWidth:"wide"})};function Dn(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?o_(c,m=>m.test(a)):s_(c,m=>m.test(a));let d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;const h=t.slice(a.length);return{value:d,rest:h}}}function s_(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function o_(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function hv(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const c=t.slice(i.length);return{value:a,rest:c}}}const a_=/^(\d+)(th|st|nd|rd)?/i,l_=/\d+/i,c_={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},u_={any:[/^b/i,/^(a|c)/i]},f_={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},d_={any:[/1/i,/2/i,/3/i,/4/i]},h_={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},m_={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},p_={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},g_={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},y_={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},v_={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},x_={ordinalNumber:hv({matchPattern:a_,parsePattern:l_,valueCallback:e=>parseInt(e,10)}),era:Dn({matchPatterns:c_,defaultMatchWidth:"wide",parsePatterns:u_,defaultParseWidth:"any"}),quarter:Dn({matchPatterns:f_,defaultMatchWidth:"wide",parsePatterns:d_,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Dn({matchPatterns:h_,defaultMatchWidth:"wide",parsePatterns:m_,defaultParseWidth:"any"}),day:Dn({matchPatterns:p_,defaultMatchWidth:"wide",parsePatterns:g_,defaultParseWidth:"any"}),dayPeriod:Dn({matchPatterns:y_,defaultMatchWidth:"any",parsePatterns:v_,defaultParseWidth:"any"})},mv={code:"en-US",formatDistance:G4,formatLong:K4,formatRelative:Z4,localize:i_,match:x_,options:{weekStartsOn:0,firstWeekContainsDate:1}};function b_(e,t){const n=pt(e,t==null?void 0:t.in);return D4(n,W4(n))+1}function w_(e,t){const n=pt(e,t==null?void 0:t.in),r=+Na(n)-+N4(n);return Math.round(r/av)+1}function pv(e,t){var h,m,p,v;const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),i=mo(),o=(t==null?void 0:t.firstWeekContainsDate)??((m=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??i.firstWeekContainsDate??((v=(p=i.locale)==null?void 0:p.options)==null?void 0:v.firstWeekContainsDate)??1,a=Gt((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const c=Qi(a,t),u=Gt((t==null?void 0:t.in)||e,0);u.setFullYear(r,0,o),u.setHours(0,0,0,0);const d=Qi(u,t);return+n>=+c?r+1:+n>=+d?r:r-1}function S_(e,t){var c,u,d,h;const n=mo(),r=(t==null?void 0:t.firstWeekContainsDate)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,i=pv(e,t),o=Gt((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Qi(o,t)}function T_(e,t){const n=pt(e,t==null?void 0:t.in),r=+Qi(n,t)-+S_(n,t);return Math.round(r/av)+1}function We(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Tr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return We(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):We(n+1,2)},d(e,t){return We(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return We(e.getHours()%12||12,t.length)},H(e,t){return We(e.getHours(),t.length)},m(e,t){return We(e.getMinutes(),t.length)},s(e,t){return We(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return We(i,t.length)}},ts={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},gv={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Tr.y(e,t)},Y:function(e,t,n,r){const i=pv(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return We(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):We(o,t.length)},R:function(e,t){const n=uv(e);return We(n,t.length)},u:function(e,t){const n=e.getFullYear();return We(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return We(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return We(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Tr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return We(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=T_(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):We(i,t.length)},I:function(e,t,n){const r=w_(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):We(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Tr.d(e,t)},D:function(e,t,n){const r=b_(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):We(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return We(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return We(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return We(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=ts.noon:r===0?i=ts.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=ts.evening:r>=12?i=ts.afternoon:r>=4?i=ts.morning:i=ts.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Tr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Tr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):We(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):We(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Tr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Tr.s(e,t)},S:function(e,t){return Tr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return vv(r);case"XXXX":case"XX":return ai(r);case"XXXXX":case"XXX":default:return ai(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return vv(r);case"xxxx":case"xx":return ai(r);case"xxxxx":case"xxx":default:return ai(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+yv(r,":");case"OOOO":default:return"GMT"+ai(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+yv(r,":");case"zzzz":default:return"GMT"+ai(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return We(r,t.length)},T:function(e,t,n){return We(+e,t.length)}};function yv(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+We(o,2)}function vv(e,t){return e%60===0?(e>0?"-":"+")+We(Math.abs(e)/60,2):ai(e,t)}function ai(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=We(Math.trunc(r/60),2),o=We(r%60,2);return n+i+t+o}const xv=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},bv=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},E_={p:bv,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return xv(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",xv(r,t)).replace("{{time}}",bv(i,t))}},C_=/^D+$/,P_=/^Y+$/,A_=["D","DD","YY","YYYY"];function M_(e){return C_.test(e)}function O_(e){return P_.test(e)}function __(e,t,n){const r=I_(e,t,n);if(console.warn(r),A_.includes(e))throw new RangeError(r)}function I_(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const $_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,N_=/^'([^]*?)'?$/,k_=/''/g,L_=/[a-zA-Z]/;function Nn(e,t,n){var h,m,p,v,S,x,T,b;const r=mo(),i=(n==null?void 0:n.locale)??r.locale??mv,o=(n==null?void 0:n.firstWeekContainsDate)??((m=(h=n==null?void 0:n.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??r.firstWeekContainsDate??((v=(p=r.locale)==null?void 0:p.options)==null?void 0:v.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((x=(S=n==null?void 0:n.locale)==null?void 0:S.options)==null?void 0:x.weekStartsOn)??r.weekStartsOn??((b=(T=r.locale)==null?void 0:T.options)==null?void 0:b.weekStartsOn)??0,c=pt(e,n==null?void 0:n.in);if(!R4(c))throw new RangeError("Invalid time value");let u=t.match(D_).map(C=>{const E=C[0];if(E==="p"||E==="P"){const $=E_[E];return $(C,i.formatLong)}return C}).join("").match($_).map(C=>{if(C==="''")return{isToken:!1,value:"'"};const E=C[0];if(E==="'")return{isToken:!1,value:R_(C)};if(gv[E])return{isToken:!0,value:C};if(E.match(L_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return{isToken:!1,value:C}});i.localize.preprocessor&&(u=i.localize.preprocessor(c,u));const d={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return u.map(C=>{if(!C.isToken)return C.value;const E=C.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&O_(E)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&M_(E))&&__(E,t,String(e));const $=gv[E[0]];return $(c,E,i.localize,d)}).join("")}function R_(e){const t=e.match(N_);return t?t[1].replace(k_,"'"):e}function j_(e,t,n){const[r,i]=ka(n==null?void 0:n.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function F_(e,t){return dv(Gt(e,e),k4(e))}function wv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setHours(t),r}function Sv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setMinutes(t),r}function Tv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setSeconds(t),r}function V_(e,t,n){return cv(e,-1,n)}const B_={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},W_=(e,t,n)=>{let r;const i=B_[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},U_={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},z_={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},G_={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Y_={date:es({formats:U_,defaultWidth:"full"}),time:es({formats:z_,defaultWidth:"full"}),dateTime:es({formats:G_,defaultWidth:"full"})},H_={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},q_={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},K_=(e,t,n,r)=>t.getHours()!==1?q_[e]:H_[e],X_={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},Z_={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},J_={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},Q_={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},eI={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},tI={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},nI={ordinalNumber:(e,t)=>Number(e)+"º",era:$n({values:X_,defaultWidth:"wide"}),quarter:$n({values:Z_,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:$n({values:J_,defaultWidth:"wide"}),day:$n({values:Q_,defaultWidth:"wide"}),dayPeriod:$n({values:eI,defaultWidth:"wide",formattingValues:tI,defaultFormattingWidth:"wide"})},rI=/^(\d+)(º)?/i,iI=/\d+/i,sI={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},oI={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},aI={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},lI={any:[/1/i,/2/i,/3/i,/4/i]},cI={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},uI={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},fI={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},dI={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},hI={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},mI={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},pI={ordinalNumber:hv({matchPattern:rI,parsePattern:iI,valueCallback:function(e){return parseInt(e,10)}}),era:Dn({matchPatterns:sI,defaultMatchWidth:"wide",parsePatterns:oI,defaultParseWidth:"any"}),quarter:Dn({matchPatterns:aI,defaultMatchWidth:"wide",parsePatterns:lI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Dn({matchPatterns:cI,defaultMatchWidth:"wide",parsePatterns:uI,defaultParseWidth:"any"}),day:Dn({matchPatterns:fI,defaultMatchWidth:"wide",parsePatterns:dI,defaultParseWidth:"any"}),dayPeriod:Dn({matchPatterns:hI,defaultMatchWidth:"any",parsePatterns:mI,defaultParseWidth:"any"})},ns={code:"es",formatDistance:W_,formatLong:Y_,formatRelative:K_,localize:nI,match:pI,options:{weekStartsOn:1,firstWeekContainsDate:1}},Ev=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),yf=e=>{if(!e)return"#9CA1B6";let t=0,n;for(n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t);let r="#";for(n=0;n<3;n+=1){const i=t>>n*8&255;r+=`00${i.toString(16)}`.slice(-2)}return r},gI=(e,t="PPPP",n="es")=>{const r=typeof e=="string"?new Date(e):e;return Ev(Nn(r,t,{locale:{en:mv,es:ns}[n]}))},yI=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=i=>n(i)});function Cv(e,t){if(e<0)throw new Error("El valor en bytes no puede ser negativo");const r={b:{divisor:1,label:"B"},kb:{divisor:1024,label:"KB"},mb:{divisor:1024*1024,label:"MB"},gb:{divisor:1024*1024*1024,label:"GB"},tb:{divisor:1024*1024*1024*1024,label:"TB"},pb:{divisor:1024*1024*1024*1024*1024,label:"PB"}}[t];if(!r)throw new Error(`Unidad de medida '${t}' no reconocida`);return`${(e/r.divisor).toFixed(2).replace(/\.?0+$/,"")} ${r.label}`}const Pv=e=>e;var po={exports:{}};/**
|
|
625
|
+
*/const m4={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]},g4={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},y4={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},nx={prefix:"fas",iconName:"x",icon:[384,512,[120],"58","M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"]},rx=6048e5,x4=864e5,sx=Symbol.for("constructDateFrom");function Ut(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&sx in e?e[sx](t):e instanceof Date?new e.constructor(t):new Date(t)}function mt(e,t){return Ut(t||e,e)}function ix(e,t,n){const r=mt(e,n==null?void 0:n.in);if(isNaN(t))return Ut(e,NaN);if(!t)return r;const s=r.getDate(),o=Ut(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const a=o.getDate();return s>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),s),r)}let v4={};function co(){return v4}function Ks(e,t){var c,u,d,h;const n=co(),r=(t==null?void 0:t.weekStartsOn)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??n.weekStartsOn??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??0,s=mt(e,t==null?void 0:t.in),o=s.getDay(),a=(o<r?7:0)+o-r;return s.setDate(s.getDate()-a),s.setHours(0,0,0,0),s}function Oa(e,t){return Ks(e,{...t,weekStartsOn:1})}function ox(e,t){const n=mt(e,t==null?void 0:t.in),r=n.getFullYear(),s=Ut(n,0);s.setFullYear(r+1,0,4),s.setHours(0,0,0,0);const o=Oa(s),a=Ut(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const c=Oa(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function ax(e){const t=mt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function $a(e,...t){const n=Ut.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function _a(e,t){const n=mt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function b4(e,t,n){const[r,s]=$a(n==null?void 0:n.in,e,t),o=_a(r),a=_a(s),c=+o-ax(o),u=+a-ax(a);return Math.round((c-u)/x4)}function w4(e,t){const n=ox(e,t),r=Ut(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Oa(r)}function S4(e){return Ut(e,Date.now())}function lx(e,t,n){const[r,s]=$a(n==null?void 0:n.in,e,t);return+_a(r)==+_a(s)}function T4(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function C4(e){return!(!T4(e)&&typeof e!="number"||isNaN(+mt(e)))}function E4(e,t){const n=mt(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function P4(e,t){const[n,r]=$a(e,t.start,t.end);return{start:n,end:r}}function A4(e,t){const{start:n,end:r}=P4(t==null?void 0:t.in,e);let s=+n>+r;const o=s?+n:+r,a=s?r:n;a.setHours(0,0,0,0);let c=1;const u=[];for(;+a<=o;)u.push(Ut(n,a)),a.setDate(a.getDate()+c),a.setHours(0,0,0,0);return s?u.reverse():u}function M4(e,t){const n=mt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function O4(e,t){const n=mt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function $4(e,t){var c,u;const n=co(),r=n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,s=mt(e,t==null?void 0:t.in),o=s.getDay(),a=(o<r?-7:0)+6-(o-r);return s.setDate(s.getDate()+a),s.setHours(23,59,59,999),s}const _4={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},I4=(e,t,n)=>{let r;const s=_4[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Xs(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const D4={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},N4={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},k4={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},j4={date:Xs({formats:D4,defaultWidth:"full"}),time:Xs({formats:N4,defaultWidth:"full"}),dateTime:Xs({formats:k4,defaultWidth:"full"})},L4={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},R4=(e,t,n,r)=>L4[e];function On(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):a;s=e.formattingValues[c]||e.formattingValues[a]}else{const a=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;s=e.values[c]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return s[o]}}const F4={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},V4={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},B4={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},W4={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},U4={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},z4={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},G4={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:On({values:F4,defaultWidth:"wide"}),quarter:On({values:V4,defaultWidth:"wide",argumentCallback:e=>e-1}),month:On({values:B4,defaultWidth:"wide"}),day:On({values:W4,defaultWidth:"wide"}),dayPeriod:On({values:U4,defaultWidth:"wide",formattingValues:z4,defaultFormattingWidth:"wide"})};function $n(e){return(t,n={})=>{const r=n.width,s=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(s);if(!o)return null;const a=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?H4(c,p=>p.test(a)):Y4(c,p=>p.test(a));let d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;const h=t.slice(a.length);return{value:d,rest:h}}}function Y4(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function H4(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function cx(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const s=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const c=t.slice(s.length);return{value:a,rest:c}}}const q4=/^(\d+)(th|st|nd|rd)?/i,K4=/\d+/i,X4={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Z4={any:[/^b/i,/^(a|c)/i]},J4={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Q4={any:[/1/i,/2/i,/3/i,/4/i]},e$={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},t$={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},n$={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},r$={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},s$={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},i$={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},o$={ordinalNumber:cx({matchPattern:q4,parsePattern:K4,valueCallback:e=>parseInt(e,10)}),era:$n({matchPatterns:X4,defaultMatchWidth:"wide",parsePatterns:Z4,defaultParseWidth:"any"}),quarter:$n({matchPatterns:J4,defaultMatchWidth:"wide",parsePatterns:Q4,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:e$,defaultMatchWidth:"wide",parsePatterns:t$,defaultParseWidth:"any"}),day:$n({matchPatterns:n$,defaultMatchWidth:"wide",parsePatterns:r$,defaultParseWidth:"any"}),dayPeriod:$n({matchPatterns:s$,defaultMatchWidth:"any",parsePatterns:i$,defaultParseWidth:"any"})},ux={code:"en-US",formatDistance:I4,formatLong:j4,formatRelative:R4,localize:G4,match:o$,options:{weekStartsOn:0,firstWeekContainsDate:1}};function a$(e,t){const n=mt(e,t==null?void 0:t.in);return b4(n,O4(n))+1}function l$(e,t){const n=mt(e,t==null?void 0:t.in),r=+Oa(n)-+w4(n);return Math.round(r/rx)+1}function fx(e,t){var h,p,m,x;const n=mt(e,t==null?void 0:t.in),r=n.getFullYear(),s=co(),o=(t==null?void 0:t.firstWeekContainsDate)??((p=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??s.firstWeekContainsDate??((x=(m=s.locale)==null?void 0:m.options)==null?void 0:x.firstWeekContainsDate)??1,a=Ut((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const c=Ks(a,t),u=Ut((t==null?void 0:t.in)||e,0);u.setFullYear(r,0,o),u.setHours(0,0,0,0);const d=Ks(u,t);return+n>=+c?r+1:+n>=+d?r:r-1}function c$(e,t){var c,u,d,h;const n=co(),r=(t==null?void 0:t.firstWeekContainsDate)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,s=fx(e,t),o=Ut((t==null?void 0:t.in)||e,0);return o.setFullYear(s,0,r),o.setHours(0,0,0,0),Ks(o,t)}function u$(e,t){const n=mt(e,t==null?void 0:t.in),r=+Ks(n,t)-+c$(n,t);return Math.round(r/rx)+1}function We(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Or={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return We(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):We(n+1,2)},d(e,t){return We(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return We(e.getHours()%12||12,t.length)},H(e,t){return We(e.getHours(),t.length)},m(e,t){return We(e.getMinutes(),t.length)},s(e,t){return We(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return We(s,t.length)}},Zs={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},dx={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return Or.y(e,t)},Y:function(e,t,n,r){const s=fx(e,r),o=s>0?s:1-s;if(t==="YY"){const a=o%100;return We(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):We(o,t.length)},R:function(e,t){const n=ox(e);return We(n,t.length)},u:function(e,t){const n=e.getFullYear();return We(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return We(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return We(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Or.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return We(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const s=u$(e,r);return t==="wo"?n.ordinalNumber(s,{unit:"week"}):We(s,t.length)},I:function(e,t,n){const r=l$(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):We(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Or.d(e,t)},D:function(e,t,n){const r=a$(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):We(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const s=e.getDay(),o=(s-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return We(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const s=e.getDay(),o=(s-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return We(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),s=r===0?7:r;switch(t){case"i":return String(s);case"ii":return We(s,t.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let s;switch(r===12?s=Zs.noon:r===0?s=Zs.midnight:s=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let s;switch(r>=17?s=Zs.evening:r>=12?s=Zs.afternoon:r>=4?s=Zs.morning:s=Zs.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Or.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Or.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):We(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):We(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Or.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Or.s(e,t)},S:function(e,t){return Or.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return px(r);case"XXXX":case"XX":return os(r);case"XXXXX":case"XXX":default:return os(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return px(r);case"xxxx":case"xx":return os(r);case"xxxxx":case"xxx":default:return os(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+hx(r,":");case"OOOO":default:return"GMT"+os(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+hx(r,":");case"zzzz":default:return"GMT"+os(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return We(r,t.length)},T:function(e,t,n){return We(+e,t.length)}};function hx(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Math.trunc(r/60),o=r%60;return o===0?n+String(s):n+String(s)+t+We(o,2)}function px(e,t){return e%60===0?(e>0?"-":"+")+We(Math.abs(e)/60,2):os(e,t)}function os(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=We(Math.trunc(r/60),2),o=We(r%60,2);return n+s+t+o}const mx=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},gx=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},f$={p:gx,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return mx(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",mx(r,t)).replace("{{time}}",gx(s,t))}},d$=/^D+$/,h$=/^Y+$/,p$=["D","DD","YY","YYYY"];function m$(e){return d$.test(e)}function g$(e){return h$.test(e)}function y$(e,t,n){const r=x$(e,t,n);if(console.warn(r),p$.includes(e))throw new RangeError(r)}function x$(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const v$=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,b$=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,w$=/^'([^]*?)'?$/,S$=/''/g,T$=/[a-zA-Z]/;function _n(e,t,n){var h,p,m,x,S,b,T,v;const r=co(),s=(n==null?void 0:n.locale)??r.locale??ux,o=(n==null?void 0:n.firstWeekContainsDate)??((p=(h=n==null?void 0:n.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??r.firstWeekContainsDate??((x=(m=r.locale)==null?void 0:m.options)==null?void 0:x.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((b=(S=n==null?void 0:n.locale)==null?void 0:S.options)==null?void 0:b.weekStartsOn)??r.weekStartsOn??((v=(T=r.locale)==null?void 0:T.options)==null?void 0:v.weekStartsOn)??0,c=mt(e,n==null?void 0:n.in);if(!C4(c))throw new RangeError("Invalid time value");let u=t.match(b$).map(A=>{const C=A[0];if(C==="p"||C==="P"){const I=f$[C];return I(A,s.formatLong)}return A}).join("").match(v$).map(A=>{if(A==="''")return{isToken:!1,value:"'"};const C=A[0];if(C==="'")return{isToken:!1,value:C$(A)};if(dx[C])return{isToken:!0,value:A};if(C.match(T$))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");return{isToken:!1,value:A}});s.localize.preprocessor&&(u=s.localize.preprocessor(c,u));const d={firstWeekContainsDate:o,weekStartsOn:a,locale:s};return u.map(A=>{if(!A.isToken)return A.value;const C=A.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&g$(C)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&m$(C))&&y$(C,t,String(e));const I=dx[C[0]];return I(c,C,s.localize,d)}).join("")}function C$(e){const t=e.match(w$);return t?t[1].replace(S$,"'"):e}function E$(e,t,n){const[r,s]=$a(n==null?void 0:n.in,e,t);return r.getFullYear()===s.getFullYear()&&r.getMonth()===s.getMonth()}function P$(e,t){return lx(Ut(e,e),S4(e))}function yx(e,t,n){const r=mt(e,n==null?void 0:n.in);return r.setHours(t),r}function xx(e,t,n){const r=mt(e,n==null?void 0:n.in);return r.setMinutes(t),r}function vx(e,t,n){const r=mt(e,n==null?void 0:n.in);return r.setSeconds(t),r}function A$(e,t,n){return ix(e,-1,n)}const M$={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},O$=(e,t,n)=>{let r;const s=M$[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},$$={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},_$={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},I$={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},D$={date:Xs({formats:$$,defaultWidth:"full"}),time:Xs({formats:_$,defaultWidth:"full"}),dateTime:Xs({formats:I$,defaultWidth:"full"})},N$={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},k$={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},j$=(e,t,n,r)=>t.getHours()!==1?k$[e]:N$[e],L$={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},R$={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},F$={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},V$={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},B$={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},W$={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},U$={ordinalNumber:(e,t)=>Number(e)+"º",era:On({values:L$,defaultWidth:"wide"}),quarter:On({values:R$,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:On({values:F$,defaultWidth:"wide"}),day:On({values:V$,defaultWidth:"wide"}),dayPeriod:On({values:B$,defaultWidth:"wide",formattingValues:W$,defaultFormattingWidth:"wide"})},z$=/^(\d+)(º)?/i,G$=/\d+/i,Y$={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},H$={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},q$={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},K$={any:[/1/i,/2/i,/3/i,/4/i]},X$={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},Z$={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},J$={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},Q$={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},e5={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},t5={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},n5={ordinalNumber:cx({matchPattern:z$,parsePattern:G$,valueCallback:function(e){return parseInt(e,10)}}),era:$n({matchPatterns:Y$,defaultMatchWidth:"wide",parsePatterns:H$,defaultParseWidth:"any"}),quarter:$n({matchPatterns:q$,defaultMatchWidth:"wide",parsePatterns:K$,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:X$,defaultMatchWidth:"wide",parsePatterns:Z$,defaultParseWidth:"any"}),day:$n({matchPatterns:J$,defaultMatchWidth:"wide",parsePatterns:Q$,defaultParseWidth:"any"}),dayPeriod:$n({matchPatterns:e5,defaultMatchWidth:"any",parsePatterns:t5,defaultParseWidth:"any"})},Js={code:"es",formatDistance:O$,formatLong:D$,formatRelative:j$,localize:U$,match:n5,options:{weekStartsOn:1,firstWeekContainsDate:1}},bx=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),df=e=>{if(!e)return"#9CA1B6";let t=0,n;for(n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t);let r="#";for(n=0;n<3;n+=1){const s=t>>n*8&255;r+=`00${s.toString(16)}`.slice(-2)}return r},r5=(e,t="PPPP",n="es")=>{const r=typeof e=="string"?new Date(e):e;return bx(_n(r,t,{locale:{en:ux,es:Js}[n]}))},s5=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=s=>n(s)});function wx(e,t){if(e<0)throw new Error("El valor en bytes no puede ser negativo");const r={b:{divisor:1,label:"B"},kb:{divisor:1024,label:"KB"},mb:{divisor:1024*1024,label:"MB"},gb:{divisor:1024*1024*1024,label:"GB"},tb:{divisor:1024*1024*1024*1024,label:"TB"},pb:{divisor:1024*1024*1024*1024*1024,label:"PB"}}[t];if(!r)throw new Error(`Unidad de medida '${t}' no reconocida`);return`${(e/r.divisor).toFixed(2).replace(/\.?0+$/,"")} ${r.label}`}const Sx=e=>e;var uo={exports:{}};/**
|
|
626
626
|
* @license
|
|
627
627
|
* Lodash <https://lodash.com/>
|
|
628
628
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
629
629
|
* Released under MIT license <https://lodash.com/license>
|
|
630
630
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
631
631
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
632
|
-
*/var vI=po.exports,Av;function xI(){return Av||(Av=1,function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",m=1,p=2,v=4,S=1,x=2,T=1,b=2,C=4,E=8,$=16,A=32,D=64,R=128,j=256,V=512,Z=30,ee="...",se=800,ge=16,ue=1,fe=2,he=3,G=1/0,W=9007199254740991,Y=17976931348623157e292,M=NaN,k=4294967295,H=k-1,ae=k>>>1,le=[["ary",R],["bind",T],["bindKey",b],["curry",E],["curryRight",$],["flip",V],["partial",A],["partialRight",D],["rearg",j]],U="[object Arguments]",J="[object Array]",oe="[object AsyncFunction]",re="[object Boolean]",de="[object Date]",Ce="[object DOMException]",Ve="[object Error]",ie="[object Function]",pe="[object GeneratorFunction]",De="[object Map]",ft="[object Number]",Ci="[object Null]",dt="[object Object]",bl="[object Promise]",wl="[object Proxy]",Pi="[object RegExp]",qt="[object Set]",bn="[object String]",Ai="[object Symbol]",Sl="[object Undefined]",Wr="[object WeakMap]",Tl="[object WeakSet]",xe="[object ArrayBuffer]",Qe="[object DataView]",Pt="[object Float32Array]",wn="[object Float64Array]",rr="[object Int8Array]",mh="[object Int16Array]",ph="[object Int32Array]",gh="[object Uint8Array]",yh="[object Uint8ClampedArray]",vh="[object Uint16Array]",xh="[object Uint32Array]",jL=/\b__p \+= '';/g,FL=/\b(__p \+=) '' \+/g,VL=/(__e\(.*?\)|\b__t\)) \+\n'';/g,U2=/&(?:amp|lt|gt|quot|#39);/g,z2=/[&<>"']/g,BL=RegExp(U2.source),WL=RegExp(z2.source),UL=/<%-([\s\S]+?)%>/g,zL=/<%([\s\S]+?)%>/g,G2=/<%=([\s\S]+?)%>/g,GL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,YL=/^\w*$/,HL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bh=/[\\^$.*+?()[\]{}|]/g,qL=RegExp(bh.source),wh=/^\s+/,KL=/\s/,XL=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ZL=/\{\n\/\* \[wrapped with (.+)\] \*/,JL=/,? & /,QL=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,eR=/[()=,{}\[\]\/\s]/,tR=/\\(\\)?/g,nR=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Y2=/\w*$/,rR=/^[-+]0x[0-9a-f]+$/i,iR=/^0b[01]+$/i,sR=/^\[object .+?Constructor\]$/,oR=/^0o[0-7]+$/i,aR=/^(?:0|[1-9]\d*)$/,lR=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,El=/($^)/,cR=/['\n\r\u2028\u2029\\]/g,Cl="\\ud800-\\udfff",uR="\\u0300-\\u036f",fR="\\ufe20-\\ufe2f",dR="\\u20d0-\\u20ff",H2=uR+fR+dR,q2="\\u2700-\\u27bf",K2="a-z\\xdf-\\xf6\\xf8-\\xff",hR="\\xac\\xb1\\xd7\\xf7",mR="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",pR="\\u2000-\\u206f",gR=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",X2="A-Z\\xc0-\\xd6\\xd8-\\xde",Z2="\\ufe0e\\ufe0f",J2=hR+mR+pR+gR,Sh="['’]",yR="["+Cl+"]",Q2="["+J2+"]",Pl="["+H2+"]",ew="\\d+",vR="["+q2+"]",tw="["+K2+"]",nw="[^"+Cl+J2+ew+q2+K2+X2+"]",Th="\\ud83c[\\udffb-\\udfff]",xR="(?:"+Pl+"|"+Th+")",rw="[^"+Cl+"]",Eh="(?:\\ud83c[\\udde6-\\uddff]){2}",Ch="[\\ud800-\\udbff][\\udc00-\\udfff]",Cs="["+X2+"]",iw="\\u200d",sw="(?:"+tw+"|"+nw+")",bR="(?:"+Cs+"|"+nw+")",ow="(?:"+Sh+"(?:d|ll|m|re|s|t|ve))?",aw="(?:"+Sh+"(?:D|LL|M|RE|S|T|VE))?",lw=xR+"?",cw="["+Z2+"]?",wR="(?:"+iw+"(?:"+[rw,Eh,Ch].join("|")+")"+cw+lw+")*",SR="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",TR="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",uw=cw+lw+wR,ER="(?:"+[vR,Eh,Ch].join("|")+")"+uw,CR="(?:"+[rw+Pl+"?",Pl,Eh,Ch,yR].join("|")+")",PR=RegExp(Sh,"g"),AR=RegExp(Pl,"g"),Ph=RegExp(Th+"(?="+Th+")|"+CR+uw,"g"),MR=RegExp([Cs+"?"+tw+"+"+ow+"(?="+[Q2,Cs,"$"].join("|")+")",bR+"+"+aw+"(?="+[Q2,Cs+sw,"$"].join("|")+")",Cs+"?"+sw+"+"+ow,Cs+"+"+aw,TR,SR,ew,ER].join("|"),"g"),OR=RegExp("["+iw+Cl+H2+Z2+"]"),_R=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,IR=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],$R=-1,Je={};Je[Pt]=Je[wn]=Je[rr]=Je[mh]=Je[ph]=Je[gh]=Je[yh]=Je[vh]=Je[xh]=!0,Je[U]=Je[J]=Je[xe]=Je[re]=Je[Qe]=Je[de]=Je[Ve]=Je[ie]=Je[De]=Je[ft]=Je[dt]=Je[Pi]=Je[qt]=Je[bn]=Je[Wr]=!1;var Xe={};Xe[U]=Xe[J]=Xe[xe]=Xe[Qe]=Xe[re]=Xe[de]=Xe[Pt]=Xe[wn]=Xe[rr]=Xe[mh]=Xe[ph]=Xe[De]=Xe[ft]=Xe[dt]=Xe[Pi]=Xe[qt]=Xe[bn]=Xe[Ai]=Xe[gh]=Xe[yh]=Xe[vh]=Xe[xh]=!0,Xe[Ve]=Xe[ie]=Xe[Wr]=!1;var DR={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},NR={"&":"&","<":"<",">":">",'"':""","'":"'"},kR={"&":"&","<":"<",">":">",""":'"',"'":"'"},LR={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},RR=parseFloat,jR=parseInt,fw=typeof ea=="object"&&ea&&ea.Object===Object&&ea,FR=typeof self=="object"&&self&&self.Object===Object&&self,xt=fw||FR||Function("return this")(),Ah=t&&!t.nodeType&&t,Mi=Ah&&!0&&e&&!e.nodeType&&e,dw=Mi&&Mi.exports===Ah,Mh=dw&&fw.process,cn=function(){try{var L=Mi&&Mi.require&&Mi.require("util").types;return L||Mh&&Mh.binding&&Mh.binding("util")}catch{}}(),hw=cn&&cn.isArrayBuffer,mw=cn&&cn.isDate,pw=cn&&cn.isMap,gw=cn&&cn.isRegExp,yw=cn&&cn.isSet,vw=cn&&cn.isTypedArray;function Kt(L,z,B){switch(B.length){case 0:return L.call(z);case 1:return L.call(z,B[0]);case 2:return L.call(z,B[0],B[1]);case 3:return L.call(z,B[0],B[1],B[2])}return L.apply(z,B)}function VR(L,z,B,me){for(var Ae=-1,Re=L==null?0:L.length;++Ae<Re;){var ht=L[Ae];z(me,ht,B(ht),L)}return me}function un(L,z){for(var B=-1,me=L==null?0:L.length;++B<me&&z(L[B],B,L)!==!1;);return L}function BR(L,z){for(var B=L==null?0:L.length;B--&&z(L[B],B,L)!==!1;);return L}function xw(L,z){for(var B=-1,me=L==null?0:L.length;++B<me;)if(!z(L[B],B,L))return!1;return!0}function Ur(L,z){for(var B=-1,me=L==null?0:L.length,Ae=0,Re=[];++B<me;){var ht=L[B];z(ht,B,L)&&(Re[Ae++]=ht)}return Re}function Al(L,z){var B=L==null?0:L.length;return!!B&&Ps(L,z,0)>-1}function Oh(L,z,B){for(var me=-1,Ae=L==null?0:L.length;++me<Ae;)if(B(z,L[me]))return!0;return!1}function et(L,z){for(var B=-1,me=L==null?0:L.length,Ae=Array(me);++B<me;)Ae[B]=z(L[B],B,L);return Ae}function zr(L,z){for(var B=-1,me=z.length,Ae=L.length;++B<me;)L[Ae+B]=z[B];return L}function _h(L,z,B,me){var Ae=-1,Re=L==null?0:L.length;for(me&&Re&&(B=L[++Ae]);++Ae<Re;)B=z(B,L[Ae],Ae,L);return B}function WR(L,z,B,me){var Ae=L==null?0:L.length;for(me&&Ae&&(B=L[--Ae]);Ae--;)B=z(B,L[Ae],Ae,L);return B}function Ih(L,z){for(var B=-1,me=L==null?0:L.length;++B<me;)if(z(L[B],B,L))return!0;return!1}var UR=$h("length");function zR(L){return L.split("")}function GR(L){return L.match(QL)||[]}function bw(L,z,B){var me;return B(L,function(Ae,Re,ht){if(z(Ae,Re,ht))return me=Re,!1}),me}function Ml(L,z,B,me){for(var Ae=L.length,Re=B+(me?1:-1);me?Re--:++Re<Ae;)if(z(L[Re],Re,L))return Re;return-1}function Ps(L,z,B){return z===z?rj(L,z,B):Ml(L,ww,B)}function YR(L,z,B,me){for(var Ae=B-1,Re=L.length;++Ae<Re;)if(me(L[Ae],z))return Ae;return-1}function ww(L){return L!==L}function Sw(L,z){var B=L==null?0:L.length;return B?Nh(L,z)/B:M}function $h(L){return function(z){return z==null?n:z[L]}}function Dh(L){return function(z){return L==null?n:L[z]}}function Tw(L,z,B,me,Ae){return Ae(L,function(Re,ht,Ye){B=me?(me=!1,Re):z(B,Re,ht,Ye)}),B}function HR(L,z){var B=L.length;for(L.sort(z);B--;)L[B]=L[B].value;return L}function Nh(L,z){for(var B,me=-1,Ae=L.length;++me<Ae;){var Re=z(L[me]);Re!==n&&(B=B===n?Re:B+Re)}return B}function kh(L,z){for(var B=-1,me=Array(L);++B<L;)me[B]=z(B);return me}function qR(L,z){return et(z,function(B){return[B,L[B]]})}function Ew(L){return L&&L.slice(0,Mw(L)+1).replace(wh,"")}function Xt(L){return function(z){return L(z)}}function Lh(L,z){return et(z,function(B){return L[B]})}function Fo(L,z){return L.has(z)}function Cw(L,z){for(var B=-1,me=L.length;++B<me&&Ps(z,L[B],0)>-1;);return B}function Pw(L,z){for(var B=L.length;B--&&Ps(z,L[B],0)>-1;);return B}function KR(L,z){for(var B=L.length,me=0;B--;)L[B]===z&&++me;return me}var XR=Dh(DR),ZR=Dh(NR);function JR(L){return"\\"+LR[L]}function QR(L,z){return L==null?n:L[z]}function As(L){return OR.test(L)}function ej(L){return _R.test(L)}function tj(L){for(var z,B=[];!(z=L.next()).done;)B.push(z.value);return B}function Rh(L){var z=-1,B=Array(L.size);return L.forEach(function(me,Ae){B[++z]=[Ae,me]}),B}function Aw(L,z){return function(B){return L(z(B))}}function Gr(L,z){for(var B=-1,me=L.length,Ae=0,Re=[];++B<me;){var ht=L[B];(ht===z||ht===h)&&(L[B]=h,Re[Ae++]=B)}return Re}function Ol(L){var z=-1,B=Array(L.size);return L.forEach(function(me){B[++z]=me}),B}function nj(L){var z=-1,B=Array(L.size);return L.forEach(function(me){B[++z]=[me,me]}),B}function rj(L,z,B){for(var me=B-1,Ae=L.length;++me<Ae;)if(L[me]===z)return me;return-1}function ij(L,z,B){for(var me=B+1;me--;)if(L[me]===z)return me;return me}function Ms(L){return As(L)?oj(L):UR(L)}function Sn(L){return As(L)?aj(L):zR(L)}function Mw(L){for(var z=L.length;z--&&KL.test(L.charAt(z)););return z}var sj=Dh(kR);function oj(L){for(var z=Ph.lastIndex=0;Ph.test(L);)++z;return z}function aj(L){return L.match(Ph)||[]}function lj(L){return L.match(MR)||[]}var cj=function L(z){z=z==null?xt:Os.defaults(xt.Object(),z,Os.pick(xt,IR));var B=z.Array,me=z.Date,Ae=z.Error,Re=z.Function,ht=z.Math,Ye=z.Object,jh=z.RegExp,uj=z.String,fn=z.TypeError,_l=B.prototype,fj=Re.prototype,_s=Ye.prototype,Il=z["__core-js_shared__"],$l=fj.toString,ze=_s.hasOwnProperty,dj=0,Ow=function(){var s=/[^.]+$/.exec(Il&&Il.keys&&Il.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Dl=_s.toString,hj=$l.call(Ye),mj=xt._,pj=jh("^"+$l.call(ze).replace(bh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nl=dw?z.Buffer:n,Yr=z.Symbol,kl=z.Uint8Array,_w=Nl?Nl.allocUnsafe:n,Ll=Aw(Ye.getPrototypeOf,Ye),Iw=Ye.create,$w=_s.propertyIsEnumerable,Rl=_l.splice,Dw=Yr?Yr.isConcatSpreadable:n,Vo=Yr?Yr.iterator:n,Oi=Yr?Yr.toStringTag:n,jl=function(){try{var s=Ni(Ye,"defineProperty");return s({},"",{}),s}catch{}}(),gj=z.clearTimeout!==xt.clearTimeout&&z.clearTimeout,yj=me&&me.now!==xt.Date.now&&me.now,vj=z.setTimeout!==xt.setTimeout&&z.setTimeout,Fl=ht.ceil,Vl=ht.floor,Fh=Ye.getOwnPropertySymbols,xj=Nl?Nl.isBuffer:n,Nw=z.isFinite,bj=_l.join,wj=Aw(Ye.keys,Ye),mt=ht.max,At=ht.min,Sj=me.now,Tj=z.parseInt,kw=ht.random,Ej=_l.reverse,Vh=Ni(z,"DataView"),Bo=Ni(z,"Map"),Bh=Ni(z,"Promise"),Is=Ni(z,"Set"),Wo=Ni(z,"WeakMap"),Uo=Ni(Ye,"create"),Bl=Wo&&new Wo,$s={},Cj=ki(Vh),Pj=ki(Bo),Aj=ki(Bh),Mj=ki(Is),Oj=ki(Wo),Wl=Yr?Yr.prototype:n,zo=Wl?Wl.valueOf:n,Lw=Wl?Wl.toString:n;function P(s){if(ot(s)&&!Me(s)&&!(s instanceof ke)){if(s instanceof dn)return s;if(ze.call(s,"__wrapped__"))return RS(s)}return new dn(s)}var Ds=function(){function s(){}return function(l){if(!st(l))return{};if(Iw)return Iw(l);s.prototype=l;var f=new s;return s.prototype=n,f}}();function Ul(){}function dn(s,l){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}P.templateSettings={escape:UL,evaluate:zL,interpolate:G2,variable:"",imports:{_:P}},P.prototype=Ul.prototype,P.prototype.constructor=P,dn.prototype=Ds(Ul.prototype),dn.prototype.constructor=dn;function ke(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=k,this.__views__=[]}function _j(){var s=new ke(this.__wrapped__);return s.__actions__=Vt(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Vt(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Vt(this.__views__),s}function Ij(){if(this.__filtered__){var s=new ke(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function $j(){var s=this.__wrapped__.value(),l=this.__dir__,f=Me(s),g=l<0,w=f?s.length:0,O=zF(0,w,this.__views__),I=O.start,N=O.end,F=N-I,q=g?N:I-1,K=this.__iteratees__,X=K.length,ce=0,ye=At(F,this.__takeCount__);if(!f||!g&&w==F&&ye==F)return oS(s,this.__actions__);var Te=[];e:for(;F--&&ce<ye;){q+=l;for(var _e=-1,Ee=s[q];++_e<X;){var Ne=K[_e],Le=Ne.iteratee,Qt=Ne.type,Dt=Le(Ee);if(Qt==fe)Ee=Dt;else if(!Dt){if(Qt==ue)continue e;break e}}Te[ce++]=Ee}return Te}ke.prototype=Ds(Ul.prototype),ke.prototype.constructor=ke;function _i(s){var l=-1,f=s==null?0:s.length;for(this.clear();++l<f;){var g=s[l];this.set(g[0],g[1])}}function Dj(){this.__data__=Uo?Uo(null):{},this.size=0}function Nj(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function kj(s){var l=this.__data__;if(Uo){var f=l[s];return f===u?n:f}return ze.call(l,s)?l[s]:n}function Lj(s){var l=this.__data__;return Uo?l[s]!==n:ze.call(l,s)}function Rj(s,l){var f=this.__data__;return this.size+=this.has(s)?0:1,f[s]=Uo&&l===n?u:l,this}_i.prototype.clear=Dj,_i.prototype.delete=Nj,_i.prototype.get=kj,_i.prototype.has=Lj,_i.prototype.set=Rj;function ir(s){var l=-1,f=s==null?0:s.length;for(this.clear();++l<f;){var g=s[l];this.set(g[0],g[1])}}function jj(){this.__data__=[],this.size=0}function Fj(s){var l=this.__data__,f=zl(l,s);if(f<0)return!1;var g=l.length-1;return f==g?l.pop():Rl.call(l,f,1),--this.size,!0}function Vj(s){var l=this.__data__,f=zl(l,s);return f<0?n:l[f][1]}function Bj(s){return zl(this.__data__,s)>-1}function Wj(s,l){var f=this.__data__,g=zl(f,s);return g<0?(++this.size,f.push([s,l])):f[g][1]=l,this}ir.prototype.clear=jj,ir.prototype.delete=Fj,ir.prototype.get=Vj,ir.prototype.has=Bj,ir.prototype.set=Wj;function sr(s){var l=-1,f=s==null?0:s.length;for(this.clear();++l<f;){var g=s[l];this.set(g[0],g[1])}}function Uj(){this.size=0,this.__data__={hash:new _i,map:new(Bo||ir),string:new _i}}function zj(s){var l=nc(this,s).delete(s);return this.size-=l?1:0,l}function Gj(s){return nc(this,s).get(s)}function Yj(s){return nc(this,s).has(s)}function Hj(s,l){var f=nc(this,s),g=f.size;return f.set(s,l),this.size+=f.size==g?0:1,this}sr.prototype.clear=Uj,sr.prototype.delete=zj,sr.prototype.get=Gj,sr.prototype.has=Yj,sr.prototype.set=Hj;function Ii(s){var l=-1,f=s==null?0:s.length;for(this.__data__=new sr;++l<f;)this.add(s[l])}function qj(s){return this.__data__.set(s,u),this}function Kj(s){return this.__data__.has(s)}Ii.prototype.add=Ii.prototype.push=qj,Ii.prototype.has=Kj;function Tn(s){var l=this.__data__=new ir(s);this.size=l.size}function Xj(){this.__data__=new ir,this.size=0}function Zj(s){var l=this.__data__,f=l.delete(s);return this.size=l.size,f}function Jj(s){return this.__data__.get(s)}function Qj(s){return this.__data__.has(s)}function eF(s,l){var f=this.__data__;if(f instanceof ir){var g=f.__data__;if(!Bo||g.length<i-1)return g.push([s,l]),this.size=++f.size,this;f=this.__data__=new sr(g)}return f.set(s,l),this.size=f.size,this}Tn.prototype.clear=Xj,Tn.prototype.delete=Zj,Tn.prototype.get=Jj,Tn.prototype.has=Qj,Tn.prototype.set=eF;function Rw(s,l){var f=Me(s),g=!f&&Li(s),w=!f&&!g&&Zr(s),O=!f&&!g&&!w&&Rs(s),I=f||g||w||O,N=I?kh(s.length,uj):[],F=N.length;for(var q in s)(l||ze.call(s,q))&&!(I&&(q=="length"||w&&(q=="offset"||q=="parent")||O&&(q=="buffer"||q=="byteLength"||q=="byteOffset")||cr(q,F)))&&N.push(q);return N}function jw(s){var l=s.length;return l?s[Jh(0,l-1)]:n}function tF(s,l){return rc(Vt(s),$i(l,0,s.length))}function nF(s){return rc(Vt(s))}function Wh(s,l,f){(f!==n&&!En(s[l],f)||f===n&&!(l in s))&&or(s,l,f)}function Go(s,l,f){var g=s[l];(!(ze.call(s,l)&&En(g,f))||f===n&&!(l in s))&&or(s,l,f)}function zl(s,l){for(var f=s.length;f--;)if(En(s[f][0],l))return f;return-1}function rF(s,l,f,g){return Hr(s,function(w,O,I){l(g,w,f(w),I)}),g}function Fw(s,l){return s&&zn(l,gt(l),s)}function iF(s,l){return s&&zn(l,Wt(l),s)}function or(s,l,f){l=="__proto__"&&jl?jl(s,l,{configurable:!0,enumerable:!0,value:f,writable:!0}):s[l]=f}function Uh(s,l){for(var f=-1,g=l.length,w=B(g),O=s==null;++f<g;)w[f]=O?n:Tm(s,l[f]);return w}function $i(s,l,f){return s===s&&(f!==n&&(s=s<=f?s:f),l!==n&&(s=s>=l?s:l)),s}function hn(s,l,f,g,w,O){var I,N=l&m,F=l&p,q=l&v;if(f&&(I=w?f(s,g,w,O):f(s)),I!==n)return I;if(!st(s))return s;var K=Me(s);if(K){if(I=YF(s),!N)return Vt(s,I)}else{var X=Mt(s),ce=X==ie||X==pe;if(Zr(s))return cS(s,N);if(X==dt||X==U||ce&&!w){if(I=F||ce?{}:MS(s),!N)return F?kF(s,iF(I,s)):NF(s,Fw(I,s))}else{if(!Xe[X])return w?s:{};I=HF(s,X,N)}}O||(O=new Tn);var ye=O.get(s);if(ye)return ye;O.set(s,I),rT(s)?s.forEach(function(Ee){I.add(hn(Ee,l,f,Ee,s,O))}):tT(s)&&s.forEach(function(Ee,Ne){I.set(Ne,hn(Ee,l,f,Ne,s,O))});var Te=q?F?cm:lm:F?Wt:gt,_e=K?n:Te(s);return un(_e||s,function(Ee,Ne){_e&&(Ne=Ee,Ee=s[Ne]),Go(I,Ne,hn(Ee,l,f,Ne,s,O))}),I}function sF(s){var l=gt(s);return function(f){return Vw(f,s,l)}}function Vw(s,l,f){var g=f.length;if(s==null)return!g;for(s=Ye(s);g--;){var w=f[g],O=l[w],I=s[w];if(I===n&&!(w in s)||!O(I))return!1}return!0}function Bw(s,l,f){if(typeof s!="function")throw new fn(a);return Jo(function(){s.apply(n,f)},l)}function Yo(s,l,f,g){var w=-1,O=Al,I=!0,N=s.length,F=[],q=l.length;if(!N)return F;f&&(l=et(l,Xt(f))),g?(O=Oh,I=!1):l.length>=i&&(O=Fo,I=!1,l=new Ii(l));e:for(;++w<N;){var K=s[w],X=f==null?K:f(K);if(K=g||K!==0?K:0,I&&X===X){for(var ce=q;ce--;)if(l[ce]===X)continue e;F.push(K)}else O(l,X,g)||F.push(K)}return F}var Hr=mS(Un),Ww=mS(Gh,!0);function oF(s,l){var f=!0;return Hr(s,function(g,w,O){return f=!!l(g,w,O),f}),f}function Gl(s,l,f){for(var g=-1,w=s.length;++g<w;){var O=s[g],I=l(O);if(I!=null&&(N===n?I===I&&!Jt(I):f(I,N)))var N=I,F=O}return F}function aF(s,l,f,g){var w=s.length;for(f=Oe(f),f<0&&(f=-f>w?0:w+f),g=g===n||g>w?w:Oe(g),g<0&&(g+=w),g=f>g?0:sT(g);f<g;)s[f++]=l;return s}function Uw(s,l){var f=[];return Hr(s,function(g,w,O){l(g,w,O)&&f.push(g)}),f}function bt(s,l,f,g,w){var O=-1,I=s.length;for(f||(f=KF),w||(w=[]);++O<I;){var N=s[O];l>0&&f(N)?l>1?bt(N,l-1,f,g,w):zr(w,N):g||(w[w.length]=N)}return w}var zh=pS(),zw=pS(!0);function Un(s,l){return s&&zh(s,l,gt)}function Gh(s,l){return s&&zw(s,l,gt)}function Yl(s,l){return Ur(l,function(f){return ur(s[f])})}function Di(s,l){l=Kr(l,s);for(var f=0,g=l.length;s!=null&&f<g;)s=s[Gn(l[f++])];return f&&f==g?s:n}function Gw(s,l,f){var g=l(s);return Me(s)?g:zr(g,f(s))}function It(s){return s==null?s===n?Sl:Ci:Oi&&Oi in Ye(s)?UF(s):nV(s)}function Yh(s,l){return s>l}function lF(s,l){return s!=null&&ze.call(s,l)}function cF(s,l){return s!=null&&l in Ye(s)}function uF(s,l,f){return s>=At(l,f)&&s<mt(l,f)}function Hh(s,l,f){for(var g=f?Oh:Al,w=s[0].length,O=s.length,I=O,N=B(O),F=1/0,q=[];I--;){var K=s[I];I&&l&&(K=et(K,Xt(l))),F=At(K.length,F),N[I]=!f&&(l||w>=120&&K.length>=120)?new Ii(I&&K):n}K=s[0];var X=-1,ce=N[0];e:for(;++X<w&&q.length<F;){var ye=K[X],Te=l?l(ye):ye;if(ye=f||ye!==0?ye:0,!(ce?Fo(ce,Te):g(q,Te,f))){for(I=O;--I;){var _e=N[I];if(!(_e?Fo(_e,Te):g(s[I],Te,f)))continue e}ce&&ce.push(Te),q.push(ye)}}return q}function fF(s,l,f,g){return Un(s,function(w,O,I){l(g,f(w),O,I)}),g}function Ho(s,l,f){l=Kr(l,s),s=$S(s,l);var g=s==null?s:s[Gn(pn(l))];return g==null?n:Kt(g,s,f)}function Yw(s){return ot(s)&&It(s)==U}function dF(s){return ot(s)&&It(s)==xe}function hF(s){return ot(s)&&It(s)==de}function qo(s,l,f,g,w){return s===l?!0:s==null||l==null||!ot(s)&&!ot(l)?s!==s&&l!==l:mF(s,l,f,g,qo,w)}function mF(s,l,f,g,w,O){var I=Me(s),N=Me(l),F=I?J:Mt(s),q=N?J:Mt(l);F=F==U?dt:F,q=q==U?dt:q;var K=F==dt,X=q==dt,ce=F==q;if(ce&&Zr(s)){if(!Zr(l))return!1;I=!0,K=!1}if(ce&&!K)return O||(O=new Tn),I||Rs(s)?CS(s,l,f,g,w,O):BF(s,l,F,f,g,w,O);if(!(f&S)){var ye=K&&ze.call(s,"__wrapped__"),Te=X&&ze.call(l,"__wrapped__");if(ye||Te){var _e=ye?s.value():s,Ee=Te?l.value():l;return O||(O=new Tn),w(_e,Ee,f,g,O)}}return ce?(O||(O=new Tn),WF(s,l,f,g,w,O)):!1}function pF(s){return ot(s)&&Mt(s)==De}function qh(s,l,f,g){var w=f.length,O=w,I=!g;if(s==null)return!O;for(s=Ye(s);w--;){var N=f[w];if(I&&N[2]?N[1]!==s[N[0]]:!(N[0]in s))return!1}for(;++w<O;){N=f[w];var F=N[0],q=s[F],K=N[1];if(I&&N[2]){if(q===n&&!(F in s))return!1}else{var X=new Tn;if(g)var ce=g(q,K,F,s,l,X);if(!(ce===n?qo(K,q,S|x,g,X):ce))return!1}}return!0}function Hw(s){if(!st(s)||ZF(s))return!1;var l=ur(s)?pj:sR;return l.test(ki(s))}function gF(s){return ot(s)&&It(s)==Pi}function yF(s){return ot(s)&&Mt(s)==qt}function vF(s){return ot(s)&&cc(s.length)&&!!Je[It(s)]}function qw(s){return typeof s=="function"?s:s==null?Ut:typeof s=="object"?Me(s)?Zw(s[0],s[1]):Xw(s):gT(s)}function Kh(s){if(!Zo(s))return wj(s);var l=[];for(var f in Ye(s))ze.call(s,f)&&f!="constructor"&&l.push(f);return l}function xF(s){if(!st(s))return tV(s);var l=Zo(s),f=[];for(var g in s)g=="constructor"&&(l||!ze.call(s,g))||f.push(g);return f}function Xh(s,l){return s<l}function Kw(s,l){var f=-1,g=Bt(s)?B(s.length):[];return Hr(s,function(w,O,I){g[++f]=l(w,O,I)}),g}function Xw(s){var l=fm(s);return l.length==1&&l[0][2]?_S(l[0][0],l[0][1]):function(f){return f===s||qh(f,s,l)}}function Zw(s,l){return hm(s)&&OS(l)?_S(Gn(s),l):function(f){var g=Tm(f,s);return g===n&&g===l?Em(f,s):qo(l,g,S|x)}}function Hl(s,l,f,g,w){s!==l&&zh(l,function(O,I){if(w||(w=new Tn),st(O))bF(s,l,I,f,Hl,g,w);else{var N=g?g(pm(s,I),O,I+"",s,l,w):n;N===n&&(N=O),Wh(s,I,N)}},Wt)}function bF(s,l,f,g,w,O,I){var N=pm(s,f),F=pm(l,f),q=I.get(F);if(q){Wh(s,f,q);return}var K=O?O(N,F,f+"",s,l,I):n,X=K===n;if(X){var ce=Me(F),ye=!ce&&Zr(F),Te=!ce&&!ye&&Rs(F);K=F,ce||ye||Te?Me(N)?K=N:ct(N)?K=Vt(N):ye?(X=!1,K=cS(F,!0)):Te?(X=!1,K=uS(F,!0)):K=[]:Qo(F)||Li(F)?(K=N,Li(N)?K=oT(N):(!st(N)||ur(N))&&(K=MS(F))):X=!1}X&&(I.set(F,K),w(K,F,g,O,I),I.delete(F)),Wh(s,f,K)}function Jw(s,l){var f=s.length;if(f)return l+=l<0?f:0,cr(l,f)?s[l]:n}function Qw(s,l,f){l.length?l=et(l,function(O){return Me(O)?function(I){return Di(I,O.length===1?O[0]:O)}:O}):l=[Ut];var g=-1;l=et(l,Xt(be()));var w=Kw(s,function(O,I,N){var F=et(l,function(q){return q(O)});return{criteria:F,index:++g,value:O}});return HR(w,function(O,I){return DF(O,I,f)})}function wF(s,l){return eS(s,l,function(f,g){return Em(s,g)})}function eS(s,l,f){for(var g=-1,w=l.length,O={};++g<w;){var I=l[g],N=Di(s,I);f(N,I)&&Ko(O,Kr(I,s),N)}return O}function SF(s){return function(l){return Di(l,s)}}function Zh(s,l,f,g){var w=g?YR:Ps,O=-1,I=l.length,N=s;for(s===l&&(l=Vt(l)),f&&(N=et(s,Xt(f)));++O<I;)for(var F=0,q=l[O],K=f?f(q):q;(F=w(N,K,F,g))>-1;)N!==s&&Rl.call(N,F,1),Rl.call(s,F,1);return s}function tS(s,l){for(var f=s?l.length:0,g=f-1;f--;){var w=l[f];if(f==g||w!==O){var O=w;cr(w)?Rl.call(s,w,1):tm(s,w)}}return s}function Jh(s,l){return s+Vl(kw()*(l-s+1))}function TF(s,l,f,g){for(var w=-1,O=mt(Fl((l-s)/(f||1)),0),I=B(O);O--;)I[g?O:++w]=s,s+=f;return I}function Qh(s,l){var f="";if(!s||l<1||l>W)return f;do l%2&&(f+=s),l=Vl(l/2),l&&(s+=s);while(l);return f}function Ie(s,l){return gm(IS(s,l,Ut),s+"")}function EF(s){return jw(js(s))}function CF(s,l){var f=js(s);return rc(f,$i(l,0,f.length))}function Ko(s,l,f,g){if(!st(s))return s;l=Kr(l,s);for(var w=-1,O=l.length,I=O-1,N=s;N!=null&&++w<O;){var F=Gn(l[w]),q=f;if(F==="__proto__"||F==="constructor"||F==="prototype")return s;if(w!=I){var K=N[F];q=g?g(K,F,N):n,q===n&&(q=st(K)?K:cr(l[w+1])?[]:{})}Go(N,F,q),N=N[F]}return s}var nS=Bl?function(s,l){return Bl.set(s,l),s}:Ut,PF=jl?function(s,l){return jl(s,"toString",{configurable:!0,enumerable:!1,value:Pm(l),writable:!0})}:Ut;function AF(s){return rc(js(s))}function mn(s,l,f){var g=-1,w=s.length;l<0&&(l=-l>w?0:w+l),f=f>w?w:f,f<0&&(f+=w),w=l>f?0:f-l>>>0,l>>>=0;for(var O=B(w);++g<w;)O[g]=s[g+l];return O}function MF(s,l){var f;return Hr(s,function(g,w,O){return f=l(g,w,O),!f}),!!f}function ql(s,l,f){var g=0,w=s==null?g:s.length;if(typeof l=="number"&&l===l&&w<=ae){for(;g<w;){var O=g+w>>>1,I=s[O];I!==null&&!Jt(I)&&(f?I<=l:I<l)?g=O+1:w=O}return w}return em(s,l,Ut,f)}function em(s,l,f,g){var w=0,O=s==null?0:s.length;if(O===0)return 0;l=f(l);for(var I=l!==l,N=l===null,F=Jt(l),q=l===n;w<O;){var K=Vl((w+O)/2),X=f(s[K]),ce=X!==n,ye=X===null,Te=X===X,_e=Jt(X);if(I)var Ee=g||Te;else q?Ee=Te&&(g||ce):N?Ee=Te&&ce&&(g||!ye):F?Ee=Te&&ce&&!ye&&(g||!_e):ye||_e?Ee=!1:Ee=g?X<=l:X<l;Ee?w=K+1:O=K}return At(O,H)}function rS(s,l){for(var f=-1,g=s.length,w=0,O=[];++f<g;){var I=s[f],N=l?l(I):I;if(!f||!En(N,F)){var F=N;O[w++]=I===0?0:I}}return O}function iS(s){return typeof s=="number"?s:Jt(s)?M:+s}function Zt(s){if(typeof s=="string")return s;if(Me(s))return et(s,Zt)+"";if(Jt(s))return Lw?Lw.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function qr(s,l,f){var g=-1,w=Al,O=s.length,I=!0,N=[],F=N;if(f)I=!1,w=Oh;else if(O>=i){var q=l?null:FF(s);if(q)return Ol(q);I=!1,w=Fo,F=new Ii}else F=l?[]:N;e:for(;++g<O;){var K=s[g],X=l?l(K):K;if(K=f||K!==0?K:0,I&&X===X){for(var ce=F.length;ce--;)if(F[ce]===X)continue e;l&&F.push(X),N.push(K)}else w(F,X,f)||(F!==N&&F.push(X),N.push(K))}return N}function tm(s,l){return l=Kr(l,s),s=$S(s,l),s==null||delete s[Gn(pn(l))]}function sS(s,l,f,g){return Ko(s,l,f(Di(s,l)),g)}function Kl(s,l,f,g){for(var w=s.length,O=g?w:-1;(g?O--:++O<w)&&l(s[O],O,s););return f?mn(s,g?0:O,g?O+1:w):mn(s,g?O+1:0,g?w:O)}function oS(s,l){var f=s;return f instanceof ke&&(f=f.value()),_h(l,function(g,w){return w.func.apply(w.thisArg,zr([g],w.args))},f)}function nm(s,l,f){var g=s.length;if(g<2)return g?qr(s[0]):[];for(var w=-1,O=B(g);++w<g;)for(var I=s[w],N=-1;++N<g;)N!=w&&(O[w]=Yo(O[w]||I,s[N],l,f));return qr(bt(O,1),l,f)}function aS(s,l,f){for(var g=-1,w=s.length,O=l.length,I={};++g<w;){var N=g<O?l[g]:n;f(I,s[g],N)}return I}function rm(s){return ct(s)?s:[]}function im(s){return typeof s=="function"?s:Ut}function Kr(s,l){return Me(s)?s:hm(s,l)?[s]:LS(Be(s))}var OF=Ie;function Xr(s,l,f){var g=s.length;return f=f===n?g:f,!l&&f>=g?s:mn(s,l,f)}var lS=gj||function(s){return xt.clearTimeout(s)};function cS(s,l){if(l)return s.slice();var f=s.length,g=_w?_w(f):new s.constructor(f);return s.copy(g),g}function sm(s){var l=new s.constructor(s.byteLength);return new kl(l).set(new kl(s)),l}function _F(s,l){var f=l?sm(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.byteLength)}function IF(s){var l=new s.constructor(s.source,Y2.exec(s));return l.lastIndex=s.lastIndex,l}function $F(s){return zo?Ye(zo.call(s)):{}}function uS(s,l){var f=l?sm(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.length)}function fS(s,l){if(s!==l){var f=s!==n,g=s===null,w=s===s,O=Jt(s),I=l!==n,N=l===null,F=l===l,q=Jt(l);if(!N&&!q&&!O&&s>l||O&&I&&F&&!N&&!q||g&&I&&F||!f&&F||!w)return 1;if(!g&&!O&&!q&&s<l||q&&f&&w&&!g&&!O||N&&f&&w||!I&&w||!F)return-1}return 0}function DF(s,l,f){for(var g=-1,w=s.criteria,O=l.criteria,I=w.length,N=f.length;++g<I;){var F=fS(w[g],O[g]);if(F){if(g>=N)return F;var q=f[g];return F*(q=="desc"?-1:1)}}return s.index-l.index}function dS(s,l,f,g){for(var w=-1,O=s.length,I=f.length,N=-1,F=l.length,q=mt(O-I,0),K=B(F+q),X=!g;++N<F;)K[N]=l[N];for(;++w<I;)(X||w<O)&&(K[f[w]]=s[w]);for(;q--;)K[N++]=s[w++];return K}function hS(s,l,f,g){for(var w=-1,O=s.length,I=-1,N=f.length,F=-1,q=l.length,K=mt(O-N,0),X=B(K+q),ce=!g;++w<K;)X[w]=s[w];for(var ye=w;++F<q;)X[ye+F]=l[F];for(;++I<N;)(ce||w<O)&&(X[ye+f[I]]=s[w++]);return X}function Vt(s,l){var f=-1,g=s.length;for(l||(l=B(g));++f<g;)l[f]=s[f];return l}function zn(s,l,f,g){var w=!f;f||(f={});for(var O=-1,I=l.length;++O<I;){var N=l[O],F=g?g(f[N],s[N],N,f,s):n;F===n&&(F=s[N]),w?or(f,N,F):Go(f,N,F)}return f}function NF(s,l){return zn(s,dm(s),l)}function kF(s,l){return zn(s,PS(s),l)}function Xl(s,l){return function(f,g){var w=Me(f)?VR:rF,O=l?l():{};return w(f,s,be(g,2),O)}}function Ns(s){return Ie(function(l,f){var g=-1,w=f.length,O=w>1?f[w-1]:n,I=w>2?f[2]:n;for(O=s.length>3&&typeof O=="function"?(w--,O):n,I&&$t(f[0],f[1],I)&&(O=w<3?n:O,w=1),l=Ye(l);++g<w;){var N=f[g];N&&s(l,N,g,O)}return l})}function mS(s,l){return function(f,g){if(f==null)return f;if(!Bt(f))return s(f,g);for(var w=f.length,O=l?w:-1,I=Ye(f);(l?O--:++O<w)&&g(I[O],O,I)!==!1;);return f}}function pS(s){return function(l,f,g){for(var w=-1,O=Ye(l),I=g(l),N=I.length;N--;){var F=I[s?N:++w];if(f(O[F],F,O)===!1)break}return l}}function LF(s,l,f){var g=l&T,w=Xo(s);function O(){var I=this&&this!==xt&&this instanceof O?w:s;return I.apply(g?f:this,arguments)}return O}function gS(s){return function(l){l=Be(l);var f=As(l)?Sn(l):n,g=f?f[0]:l.charAt(0),w=f?Xr(f,1).join(""):l.slice(1);return g[s]()+w}}function ks(s){return function(l){return _h(mT(hT(l).replace(PR,"")),s,"")}}function Xo(s){return function(){var l=arguments;switch(l.length){case 0:return new s;case 1:return new s(l[0]);case 2:return new s(l[0],l[1]);case 3:return new s(l[0],l[1],l[2]);case 4:return new s(l[0],l[1],l[2],l[3]);case 5:return new s(l[0],l[1],l[2],l[3],l[4]);case 6:return new s(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new s(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var f=Ds(s.prototype),g=s.apply(f,l);return st(g)?g:f}}function RF(s,l,f){var g=Xo(s);function w(){for(var O=arguments.length,I=B(O),N=O,F=Ls(w);N--;)I[N]=arguments[N];var q=O<3&&I[0]!==F&&I[O-1]!==F?[]:Gr(I,F);if(O-=q.length,O<f)return wS(s,l,Zl,w.placeholder,n,I,q,n,n,f-O);var K=this&&this!==xt&&this instanceof w?g:s;return Kt(K,this,I)}return w}function yS(s){return function(l,f,g){var w=Ye(l);if(!Bt(l)){var O=be(f,3);l=gt(l),f=function(N){return O(w[N],N,w)}}var I=s(l,f,g);return I>-1?w[O?l[I]:I]:n}}function vS(s){return lr(function(l){var f=l.length,g=f,w=dn.prototype.thru;for(s&&l.reverse();g--;){var O=l[g];if(typeof O!="function")throw new fn(a);if(w&&!I&&tc(O)=="wrapper")var I=new dn([],!0)}for(g=I?g:f;++g<f;){O=l[g];var N=tc(O),F=N=="wrapper"?um(O):n;F&&mm(F[0])&&F[1]==(R|E|A|j)&&!F[4].length&&F[9]==1?I=I[tc(F[0])].apply(I,F[3]):I=O.length==1&&mm(O)?I[N]():I.thru(O)}return function(){var q=arguments,K=q[0];if(I&&q.length==1&&Me(K))return I.plant(K).value();for(var X=0,ce=f?l[X].apply(this,q):K;++X<f;)ce=l[X].call(this,ce);return ce}})}function Zl(s,l,f,g,w,O,I,N,F,q){var K=l&R,X=l&T,ce=l&b,ye=l&(E|$),Te=l&V,_e=ce?n:Xo(s);function Ee(){for(var Ne=arguments.length,Le=B(Ne),Qt=Ne;Qt--;)Le[Qt]=arguments[Qt];if(ye)var Dt=Ls(Ee),en=KR(Le,Dt);if(g&&(Le=dS(Le,g,w,ye)),O&&(Le=hS(Le,O,I,ye)),Ne-=en,ye&&Ne<q){var ut=Gr(Le,Dt);return wS(s,l,Zl,Ee.placeholder,f,Le,ut,N,F,q-Ne)}var Cn=X?f:this,dr=ce?Cn[s]:s;return Ne=Le.length,N?Le=rV(Le,N):Te&&Ne>1&&Le.reverse(),K&&F<Ne&&(Le.length=F),this&&this!==xt&&this instanceof Ee&&(dr=_e||Xo(dr)),dr.apply(Cn,Le)}return Ee}function xS(s,l){return function(f,g){return fF(f,s,l(g),{})}}function Jl(s,l){return function(f,g){var w;if(f===n&&g===n)return l;if(f!==n&&(w=f),g!==n){if(w===n)return g;typeof f=="string"||typeof g=="string"?(f=Zt(f),g=Zt(g)):(f=iS(f),g=iS(g)),w=s(f,g)}return w}}function om(s){return lr(function(l){return l=et(l,Xt(be())),Ie(function(f){var g=this;return s(l,function(w){return Kt(w,g,f)})})})}function Ql(s,l){l=l===n?" ":Zt(l);var f=l.length;if(f<2)return f?Qh(l,s):l;var g=Qh(l,Fl(s/Ms(l)));return As(l)?Xr(Sn(g),0,s).join(""):g.slice(0,s)}function jF(s,l,f,g){var w=l&T,O=Xo(s);function I(){for(var N=-1,F=arguments.length,q=-1,K=g.length,X=B(K+F),ce=this&&this!==xt&&this instanceof I?O:s;++q<K;)X[q]=g[q];for(;F--;)X[q++]=arguments[++N];return Kt(ce,w?f:this,X)}return I}function bS(s){return function(l,f,g){return g&&typeof g!="number"&&$t(l,f,g)&&(f=g=n),l=fr(l),f===n?(f=l,l=0):f=fr(f),g=g===n?l<f?1:-1:fr(g),TF(l,f,g,s)}}function ec(s){return function(l,f){return typeof l=="string"&&typeof f=="string"||(l=gn(l),f=gn(f)),s(l,f)}}function wS(s,l,f,g,w,O,I,N,F,q){var K=l&E,X=K?I:n,ce=K?n:I,ye=K?O:n,Te=K?n:O;l|=K?A:D,l&=~(K?D:A),l&C||(l&=-4);var _e=[s,l,w,ye,X,Te,ce,N,F,q],Ee=f.apply(n,_e);return mm(s)&&DS(Ee,_e),Ee.placeholder=g,NS(Ee,s,l)}function am(s){var l=ht[s];return function(f,g){if(f=gn(f),g=g==null?0:At(Oe(g),292),g&&Nw(f)){var w=(Be(f)+"e").split("e"),O=l(w[0]+"e"+(+w[1]+g));return w=(Be(O)+"e").split("e"),+(w[0]+"e"+(+w[1]-g))}return l(f)}}var FF=Is&&1/Ol(new Is([,-0]))[1]==G?function(s){return new Is(s)}:Om;function SS(s){return function(l){var f=Mt(l);return f==De?Rh(l):f==qt?nj(l):qR(l,s(l))}}function ar(s,l,f,g,w,O,I,N){var F=l&b;if(!F&&typeof s!="function")throw new fn(a);var q=g?g.length:0;if(q||(l&=-97,g=w=n),I=I===n?I:mt(Oe(I),0),N=N===n?N:Oe(N),q-=w?w.length:0,l&D){var K=g,X=w;g=w=n}var ce=F?n:um(s),ye=[s,l,f,g,w,K,X,O,I,N];if(ce&&eV(ye,ce),s=ye[0],l=ye[1],f=ye[2],g=ye[3],w=ye[4],N=ye[9]=ye[9]===n?F?0:s.length:mt(ye[9]-q,0),!N&&l&(E|$)&&(l&=-25),!l||l==T)var Te=LF(s,l,f);else l==E||l==$?Te=RF(s,l,N):(l==A||l==(T|A))&&!w.length?Te=jF(s,l,f,g):Te=Zl.apply(n,ye);var _e=ce?nS:DS;return NS(_e(Te,ye),s,l)}function TS(s,l,f,g){return s===n||En(s,_s[f])&&!ze.call(g,f)?l:s}function ES(s,l,f,g,w,O){return st(s)&&st(l)&&(O.set(l,s),Hl(s,l,n,ES,O),O.delete(l)),s}function VF(s){return Qo(s)?n:s}function CS(s,l,f,g,w,O){var I=f&S,N=s.length,F=l.length;if(N!=F&&!(I&&F>N))return!1;var q=O.get(s),K=O.get(l);if(q&&K)return q==l&&K==s;var X=-1,ce=!0,ye=f&x?new Ii:n;for(O.set(s,l),O.set(l,s);++X<N;){var Te=s[X],_e=l[X];if(g)var Ee=I?g(_e,Te,X,l,s,O):g(Te,_e,X,s,l,O);if(Ee!==n){if(Ee)continue;ce=!1;break}if(ye){if(!Ih(l,function(Ne,Le){if(!Fo(ye,Le)&&(Te===Ne||w(Te,Ne,f,g,O)))return ye.push(Le)})){ce=!1;break}}else if(!(Te===_e||w(Te,_e,f,g,O))){ce=!1;break}}return O.delete(s),O.delete(l),ce}function BF(s,l,f,g,w,O,I){switch(f){case Qe:if(s.byteLength!=l.byteLength||s.byteOffset!=l.byteOffset)return!1;s=s.buffer,l=l.buffer;case xe:return!(s.byteLength!=l.byteLength||!O(new kl(s),new kl(l)));case re:case de:case ft:return En(+s,+l);case Ve:return s.name==l.name&&s.message==l.message;case Pi:case bn:return s==l+"";case De:var N=Rh;case qt:var F=g&S;if(N||(N=Ol),s.size!=l.size&&!F)return!1;var q=I.get(s);if(q)return q==l;g|=x,I.set(s,l);var K=CS(N(s),N(l),g,w,O,I);return I.delete(s),K;case Ai:if(zo)return zo.call(s)==zo.call(l)}return!1}function WF(s,l,f,g,w,O){var I=f&S,N=lm(s),F=N.length,q=lm(l),K=q.length;if(F!=K&&!I)return!1;for(var X=F;X--;){var ce=N[X];if(!(I?ce in l:ze.call(l,ce)))return!1}var ye=O.get(s),Te=O.get(l);if(ye&&Te)return ye==l&&Te==s;var _e=!0;O.set(s,l),O.set(l,s);for(var Ee=I;++X<F;){ce=N[X];var Ne=s[ce],Le=l[ce];if(g)var Qt=I?g(Le,Ne,ce,l,s,O):g(Ne,Le,ce,s,l,O);if(!(Qt===n?Ne===Le||w(Ne,Le,f,g,O):Qt)){_e=!1;break}Ee||(Ee=ce=="constructor")}if(_e&&!Ee){var Dt=s.constructor,en=l.constructor;Dt!=en&&"constructor"in s&&"constructor"in l&&!(typeof Dt=="function"&&Dt instanceof Dt&&typeof en=="function"&&en instanceof en)&&(_e=!1)}return O.delete(s),O.delete(l),_e}function lr(s){return gm(IS(s,n,VS),s+"")}function lm(s){return Gw(s,gt,dm)}function cm(s){return Gw(s,Wt,PS)}var um=Bl?function(s){return Bl.get(s)}:Om;function tc(s){for(var l=s.name+"",f=$s[l],g=ze.call($s,l)?f.length:0;g--;){var w=f[g],O=w.func;if(O==null||O==s)return w.name}return l}function Ls(s){var l=ze.call(P,"placeholder")?P:s;return l.placeholder}function be(){var s=P.iteratee||Am;return s=s===Am?qw:s,arguments.length?s(arguments[0],arguments[1]):s}function nc(s,l){var f=s.__data__;return XF(l)?f[typeof l=="string"?"string":"hash"]:f.map}function fm(s){for(var l=gt(s),f=l.length;f--;){var g=l[f],w=s[g];l[f]=[g,w,OS(w)]}return l}function Ni(s,l){var f=QR(s,l);return Hw(f)?f:n}function UF(s){var l=ze.call(s,Oi),f=s[Oi];try{s[Oi]=n;var g=!0}catch{}var w=Dl.call(s);return g&&(l?s[Oi]=f:delete s[Oi]),w}var dm=Fh?function(s){return s==null?[]:(s=Ye(s),Ur(Fh(s),function(l){return $w.call(s,l)}))}:_m,PS=Fh?function(s){for(var l=[];s;)zr(l,dm(s)),s=Ll(s);return l}:_m,Mt=It;(Vh&&Mt(new Vh(new ArrayBuffer(1)))!=Qe||Bo&&Mt(new Bo)!=De||Bh&&Mt(Bh.resolve())!=bl||Is&&Mt(new Is)!=qt||Wo&&Mt(new Wo)!=Wr)&&(Mt=function(s){var l=It(s),f=l==dt?s.constructor:n,g=f?ki(f):"";if(g)switch(g){case Cj:return Qe;case Pj:return De;case Aj:return bl;case Mj:return qt;case Oj:return Wr}return l});function zF(s,l,f){for(var g=-1,w=f.length;++g<w;){var O=f[g],I=O.size;switch(O.type){case"drop":s+=I;break;case"dropRight":l-=I;break;case"take":l=At(l,s+I);break;case"takeRight":s=mt(s,l-I);break}}return{start:s,end:l}}function GF(s){var l=s.match(ZL);return l?l[1].split(JL):[]}function AS(s,l,f){l=Kr(l,s);for(var g=-1,w=l.length,O=!1;++g<w;){var I=Gn(l[g]);if(!(O=s!=null&&f(s,I)))break;s=s[I]}return O||++g!=w?O:(w=s==null?0:s.length,!!w&&cc(w)&&cr(I,w)&&(Me(s)||Li(s)))}function YF(s){var l=s.length,f=new s.constructor(l);return l&&typeof s[0]=="string"&&ze.call(s,"index")&&(f.index=s.index,f.input=s.input),f}function MS(s){return typeof s.constructor=="function"&&!Zo(s)?Ds(Ll(s)):{}}function HF(s,l,f){var g=s.constructor;switch(l){case xe:return sm(s);case re:case de:return new g(+s);case Qe:return _F(s,f);case Pt:case wn:case rr:case mh:case ph:case gh:case yh:case vh:case xh:return uS(s,f);case De:return new g;case ft:case bn:return new g(s);case Pi:return IF(s);case qt:return new g;case Ai:return $F(s)}}function qF(s,l){var f=l.length;if(!f)return s;var g=f-1;return l[g]=(f>1?"& ":"")+l[g],l=l.join(f>2?", ":" "),s.replace(XL,`{
|
|
632
|
+
*/var i5=uo.exports,Tx;function o5(){return Tx||(Tx=1,function(e,t){(function(){var n,r="4.17.21",s=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",p=1,m=2,x=4,S=1,b=2,T=1,v=2,A=4,C=8,I=16,P=32,D=64,R=128,F=256,W=512,Q=30,ee="...",ae=800,ge=16,de=1,le=2,ue=3,Y=1/0,z=9007199254740991,K=17976931348623157e292,$=NaN,k=4294967295,X=k-1,U=k>>>1,re=[["ary",R],["bind",T],["bindKey",v],["curry",C],["curryRight",I],["flip",W],["partial",P],["partialRight",D],["rearg",F]],B="[object Arguments]",J="[object Array]",oe="[object AsyncFunction]",se="[object Boolean]",fe="[object Date]",Ee="[object DOMException]",Ve="[object Error]",ie="[object Function]",me="[object GeneratorFunction]",De="[object Map]",ft="[object Number]",ws="[object Null]",dt="[object Object]",yl="[object Promise]",xl="[object Proxy]",Ss="[object RegExp]",qt="[object Set]",yn="[object String]",Ts="[object Symbol]",vl="[object Undefined]",Br="[object WeakMap]",bl="[object WeakSet]",ve="[object ArrayBuffer]",Ze="[object DataView]",Pt="[object Float32Array]",xn="[object Float64Array]",cr="[object Int8Array]",ah="[object Int16Array]",lh="[object Int32Array]",ch="[object Uint8Array]",uh="[object Uint8ClampedArray]",fh="[object Uint16Array]",dh="[object Uint32Array]",Cj=/\b__p \+= '';/g,Ej=/\b(__p \+=) '' \+/g,Pj=/(__e\(.*?\)|\b__t\)) \+\n'';/g,N2=/&(?:amp|lt|gt|quot|#39);/g,k2=/[&<>"']/g,Aj=RegExp(N2.source),Mj=RegExp(k2.source),Oj=/<%-([\s\S]+?)%>/g,$j=/<%([\s\S]+?)%>/g,j2=/<%=([\s\S]+?)%>/g,_j=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ij=/^\w*$/,Dj=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hh=/[\\^$.*+?()[\]{}|]/g,Nj=RegExp(hh.source),ph=/^\s+/,kj=/\s/,jj=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Lj=/\{\n\/\* \[wrapped with (.+)\] \*/,Rj=/,? & /,Fj=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Vj=/[()=,{}\[\]\/\s]/,Bj=/\\(\\)?/g,Wj=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,L2=/\w*$/,Uj=/^[-+]0x[0-9a-f]+$/i,zj=/^0b[01]+$/i,Gj=/^\[object .+?Constructor\]$/,Yj=/^0o[0-7]+$/i,Hj=/^(?:0|[1-9]\d*)$/,qj=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wl=/($^)/,Kj=/['\n\r\u2028\u2029\\]/g,Sl="\\ud800-\\udfff",Xj="\\u0300-\\u036f",Zj="\\ufe20-\\ufe2f",Jj="\\u20d0-\\u20ff",R2=Xj+Zj+Jj,F2="\\u2700-\\u27bf",V2="a-z\\xdf-\\xf6\\xf8-\\xff",Qj="\\xac\\xb1\\xd7\\xf7",eL="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",tL="\\u2000-\\u206f",nL=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",B2="A-Z\\xc0-\\xd6\\xd8-\\xde",W2="\\ufe0e\\ufe0f",U2=Qj+eL+tL+nL,mh="['’]",rL="["+Sl+"]",z2="["+U2+"]",Tl="["+R2+"]",G2="\\d+",sL="["+F2+"]",Y2="["+V2+"]",H2="[^"+Sl+U2+G2+F2+V2+B2+"]",gh="\\ud83c[\\udffb-\\udfff]",iL="(?:"+Tl+"|"+gh+")",q2="[^"+Sl+"]",yh="(?:\\ud83c[\\udde6-\\uddff]){2}",xh="[\\ud800-\\udbff][\\udc00-\\udfff]",bi="["+B2+"]",K2="\\u200d",X2="(?:"+Y2+"|"+H2+")",oL="(?:"+bi+"|"+H2+")",Z2="(?:"+mh+"(?:d|ll|m|re|s|t|ve))?",J2="(?:"+mh+"(?:D|LL|M|RE|S|T|VE))?",Q2=iL+"?",ew="["+W2+"]?",aL="(?:"+K2+"(?:"+[q2,yh,xh].join("|")+")"+ew+Q2+")*",lL="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",cL="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",tw=ew+Q2+aL,uL="(?:"+[sL,yh,xh].join("|")+")"+tw,fL="(?:"+[q2+Tl+"?",Tl,yh,xh,rL].join("|")+")",dL=RegExp(mh,"g"),hL=RegExp(Tl,"g"),vh=RegExp(gh+"(?="+gh+")|"+fL+tw,"g"),pL=RegExp([bi+"?"+Y2+"+"+Z2+"(?="+[z2,bi,"$"].join("|")+")",oL+"+"+J2+"(?="+[z2,bi+X2,"$"].join("|")+")",bi+"?"+X2+"+"+Z2,bi+"+"+J2,cL,lL,G2,uL].join("|"),"g"),mL=RegExp("["+K2+Sl+R2+W2+"]"),gL=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,yL=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],xL=-1,Xe={};Xe[Pt]=Xe[xn]=Xe[cr]=Xe[ah]=Xe[lh]=Xe[ch]=Xe[uh]=Xe[fh]=Xe[dh]=!0,Xe[B]=Xe[J]=Xe[ve]=Xe[se]=Xe[Ze]=Xe[fe]=Xe[Ve]=Xe[ie]=Xe[De]=Xe[ft]=Xe[dt]=Xe[Ss]=Xe[qt]=Xe[yn]=Xe[Br]=!1;var qe={};qe[B]=qe[J]=qe[ve]=qe[Ze]=qe[se]=qe[fe]=qe[Pt]=qe[xn]=qe[cr]=qe[ah]=qe[lh]=qe[De]=qe[ft]=qe[dt]=qe[Ss]=qe[qt]=qe[yn]=qe[Ts]=qe[ch]=qe[uh]=qe[fh]=qe[dh]=!0,qe[Ve]=qe[ie]=qe[Br]=!1;var vL={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},bL={"&":"&","<":"<",">":">",'"':""","'":"'"},wL={"&":"&","<":"<",">":">",""":'"',"'":"'"},SL={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},TL=parseFloat,CL=parseInt,nw=typeof Ko=="object"&&Ko&&Ko.Object===Object&&Ko,EL=typeof self=="object"&&self&&self.Object===Object&&self,vt=nw||EL||Function("return this")(),bh=t&&!t.nodeType&&t,Cs=bh&&!0&&e&&!e.nodeType&&e,rw=Cs&&Cs.exports===bh,wh=rw&&nw.process,an=function(){try{var j=Cs&&Cs.require&&Cs.require("util").types;return j||wh&&wh.binding&&wh.binding("util")}catch{}}(),sw=an&&an.isArrayBuffer,iw=an&&an.isDate,ow=an&&an.isMap,aw=an&&an.isRegExp,lw=an&&an.isSet,cw=an&&an.isTypedArray;function Kt(j,G,V){switch(V.length){case 0:return j.call(G);case 1:return j.call(G,V[0]);case 2:return j.call(G,V[0],V[1]);case 3:return j.call(G,V[0],V[1],V[2])}return j.apply(G,V)}function PL(j,G,V,pe){for(var Ae=-1,Le=j==null?0:j.length;++Ae<Le;){var ht=j[Ae];G(pe,ht,V(ht),j)}return pe}function ln(j,G){for(var V=-1,pe=j==null?0:j.length;++V<pe&&G(j[V],V,j)!==!1;);return j}function AL(j,G){for(var V=j==null?0:j.length;V--&&G(j[V],V,j)!==!1;);return j}function uw(j,G){for(var V=-1,pe=j==null?0:j.length;++V<pe;)if(!G(j[V],V,j))return!1;return!0}function Wr(j,G){for(var V=-1,pe=j==null?0:j.length,Ae=0,Le=[];++V<pe;){var ht=j[V];G(ht,V,j)&&(Le[Ae++]=ht)}return Le}function Cl(j,G){var V=j==null?0:j.length;return!!V&&wi(j,G,0)>-1}function Sh(j,G,V){for(var pe=-1,Ae=j==null?0:j.length;++pe<Ae;)if(V(G,j[pe]))return!0;return!1}function Je(j,G){for(var V=-1,pe=j==null?0:j.length,Ae=Array(pe);++V<pe;)Ae[V]=G(j[V],V,j);return Ae}function Ur(j,G){for(var V=-1,pe=G.length,Ae=j.length;++V<pe;)j[Ae+V]=G[V];return j}function Th(j,G,V,pe){var Ae=-1,Le=j==null?0:j.length;for(pe&&Le&&(V=j[++Ae]);++Ae<Le;)V=G(V,j[Ae],Ae,j);return V}function ML(j,G,V,pe){var Ae=j==null?0:j.length;for(pe&&Ae&&(V=j[--Ae]);Ae--;)V=G(V,j[Ae],Ae,j);return V}function Ch(j,G){for(var V=-1,pe=j==null?0:j.length;++V<pe;)if(G(j[V],V,j))return!0;return!1}var OL=Eh("length");function $L(j){return j.split("")}function _L(j){return j.match(Fj)||[]}function fw(j,G,V){var pe;return V(j,function(Ae,Le,ht){if(G(Ae,Le,ht))return pe=Le,!1}),pe}function El(j,G,V,pe){for(var Ae=j.length,Le=V+(pe?1:-1);pe?Le--:++Le<Ae;)if(G(j[Le],Le,j))return Le;return-1}function wi(j,G,V){return G===G?UL(j,G,V):El(j,dw,V)}function IL(j,G,V,pe){for(var Ae=V-1,Le=j.length;++Ae<Le;)if(pe(j[Ae],G))return Ae;return-1}function dw(j){return j!==j}function hw(j,G){var V=j==null?0:j.length;return V?Ah(j,G)/V:$}function Eh(j){return function(G){return G==null?n:G[j]}}function Ph(j){return function(G){return j==null?n:j[G]}}function pw(j,G,V,pe,Ae){return Ae(j,function(Le,ht,Ge){V=pe?(pe=!1,Le):G(V,Le,ht,Ge)}),V}function DL(j,G){var V=j.length;for(j.sort(G);V--;)j[V]=j[V].value;return j}function Ah(j,G){for(var V,pe=-1,Ae=j.length;++pe<Ae;){var Le=G(j[pe]);Le!==n&&(V=V===n?Le:V+Le)}return V}function Mh(j,G){for(var V=-1,pe=Array(j);++V<j;)pe[V]=G(V);return pe}function NL(j,G){return Je(G,function(V){return[V,j[V]]})}function mw(j){return j&&j.slice(0,vw(j)+1).replace(ph,"")}function Xt(j){return function(G){return j(G)}}function Oh(j,G){return Je(G,function(V){return j[V]})}function No(j,G){return j.has(G)}function gw(j,G){for(var V=-1,pe=j.length;++V<pe&&wi(G,j[V],0)>-1;);return V}function yw(j,G){for(var V=j.length;V--&&wi(G,j[V],0)>-1;);return V}function kL(j,G){for(var V=j.length,pe=0;V--;)j[V]===G&&++pe;return pe}var jL=Ph(vL),LL=Ph(bL);function RL(j){return"\\"+SL[j]}function FL(j,G){return j==null?n:j[G]}function Si(j){return mL.test(j)}function VL(j){return gL.test(j)}function BL(j){for(var G,V=[];!(G=j.next()).done;)V.push(G.value);return V}function $h(j){var G=-1,V=Array(j.size);return j.forEach(function(pe,Ae){V[++G]=[Ae,pe]}),V}function xw(j,G){return function(V){return j(G(V))}}function zr(j,G){for(var V=-1,pe=j.length,Ae=0,Le=[];++V<pe;){var ht=j[V];(ht===G||ht===h)&&(j[V]=h,Le[Ae++]=V)}return Le}function Pl(j){var G=-1,V=Array(j.size);return j.forEach(function(pe){V[++G]=pe}),V}function WL(j){var G=-1,V=Array(j.size);return j.forEach(function(pe){V[++G]=[pe,pe]}),V}function UL(j,G,V){for(var pe=V-1,Ae=j.length;++pe<Ae;)if(j[pe]===G)return pe;return-1}function zL(j,G,V){for(var pe=V+1;pe--;)if(j[pe]===G)return pe;return pe}function Ti(j){return Si(j)?YL(j):OL(j)}function vn(j){return Si(j)?HL(j):$L(j)}function vw(j){for(var G=j.length;G--&&kj.test(j.charAt(G)););return G}var GL=Ph(wL);function YL(j){for(var G=vh.lastIndex=0;vh.test(j);)++G;return G}function HL(j){return j.match(vh)||[]}function qL(j){return j.match(pL)||[]}var KL=function j(G){G=G==null?vt:Ci.defaults(vt.Object(),G,Ci.pick(vt,yL));var V=G.Array,pe=G.Date,Ae=G.Error,Le=G.Function,ht=G.Math,Ge=G.Object,_h=G.RegExp,XL=G.String,cn=G.TypeError,Al=V.prototype,ZL=Le.prototype,Ei=Ge.prototype,Ml=G["__core-js_shared__"],Ol=ZL.toString,ze=Ei.hasOwnProperty,JL=0,bw=function(){var i=/[^.]+$/.exec(Ml&&Ml.keys&&Ml.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),$l=Ei.toString,QL=Ol.call(Ge),eR=vt._,tR=_h("^"+Ol.call(ze).replace(hh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_l=rw?G.Buffer:n,Gr=G.Symbol,Il=G.Uint8Array,ww=_l?_l.allocUnsafe:n,Dl=xw(Ge.getPrototypeOf,Ge),Sw=Ge.create,Tw=Ei.propertyIsEnumerable,Nl=Al.splice,Cw=Gr?Gr.isConcatSpreadable:n,ko=Gr?Gr.iterator:n,Es=Gr?Gr.toStringTag:n,kl=function(){try{var i=$s(Ge,"defineProperty");return i({},"",{}),i}catch{}}(),nR=G.clearTimeout!==vt.clearTimeout&&G.clearTimeout,rR=pe&&pe.now!==vt.Date.now&&pe.now,sR=G.setTimeout!==vt.setTimeout&&G.setTimeout,jl=ht.ceil,Ll=ht.floor,Ih=Ge.getOwnPropertySymbols,iR=_l?_l.isBuffer:n,Ew=G.isFinite,oR=Al.join,aR=xw(Ge.keys,Ge),pt=ht.max,At=ht.min,lR=pe.now,cR=G.parseInt,Pw=ht.random,uR=Al.reverse,Dh=$s(G,"DataView"),jo=$s(G,"Map"),Nh=$s(G,"Promise"),Pi=$s(G,"Set"),Lo=$s(G,"WeakMap"),Ro=$s(Ge,"create"),Rl=Lo&&new Lo,Ai={},fR=_s(Dh),dR=_s(jo),hR=_s(Nh),pR=_s(Pi),mR=_s(Lo),Fl=Gr?Gr.prototype:n,Fo=Fl?Fl.valueOf:n,Aw=Fl?Fl.toString:n;function E(i){if(ot(i)&&!Me(i)&&!(i instanceof ke)){if(i instanceof un)return i;if(ze.call(i,"__wrapped__"))return MS(i)}return new un(i)}var Mi=function(){function i(){}return function(l){if(!rt(l))return{};if(Sw)return Sw(l);i.prototype=l;var f=new i;return i.prototype=n,f}}();function Vl(){}function un(i,l){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}E.templateSettings={escape:Oj,evaluate:$j,interpolate:j2,variable:"",imports:{_:E}},E.prototype=Vl.prototype,E.prototype.constructor=E,un.prototype=Mi(Vl.prototype),un.prototype.constructor=un;function ke(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=k,this.__views__=[]}function gR(){var i=new ke(this.__wrapped__);return i.__actions__=Rt(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=Rt(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=Rt(this.__views__),i}function yR(){if(this.__filtered__){var i=new ke(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function xR(){var i=this.__wrapped__.value(),l=this.__dir__,f=Me(i),y=l<0,w=f?i.length:0,M=$F(0,w,this.__views__),_=M.start,N=M.end,L=N-_,H=y?N:_-1,q=this.__iteratees__,Z=q.length,ce=0,ye=At(L,this.__takeCount__);if(!f||!y&&w==L&&ye==L)return Zw(i,this.__actions__);var Te=[];e:for(;L--&&ce<ye;){H+=l;for(var $e=-1,Ce=i[H];++$e<Z;){var Ne=q[$e],je=Ne.iteratee,Qt=Ne.type,Dt=je(Ce);if(Qt==le)Ce=Dt;else if(!Dt){if(Qt==de)continue e;break e}}Te[ce++]=Ce}return Te}ke.prototype=Mi(Vl.prototype),ke.prototype.constructor=ke;function Ps(i){var l=-1,f=i==null?0:i.length;for(this.clear();++l<f;){var y=i[l];this.set(y[0],y[1])}}function vR(){this.__data__=Ro?Ro(null):{},this.size=0}function bR(i){var l=this.has(i)&&delete this.__data__[i];return this.size-=l?1:0,l}function wR(i){var l=this.__data__;if(Ro){var f=l[i];return f===u?n:f}return ze.call(l,i)?l[i]:n}function SR(i){var l=this.__data__;return Ro?l[i]!==n:ze.call(l,i)}function TR(i,l){var f=this.__data__;return this.size+=this.has(i)?0:1,f[i]=Ro&&l===n?u:l,this}Ps.prototype.clear=vR,Ps.prototype.delete=bR,Ps.prototype.get=wR,Ps.prototype.has=SR,Ps.prototype.set=TR;function ur(i){var l=-1,f=i==null?0:i.length;for(this.clear();++l<f;){var y=i[l];this.set(y[0],y[1])}}function CR(){this.__data__=[],this.size=0}function ER(i){var l=this.__data__,f=Bl(l,i);if(f<0)return!1;var y=l.length-1;return f==y?l.pop():Nl.call(l,f,1),--this.size,!0}function PR(i){var l=this.__data__,f=Bl(l,i);return f<0?n:l[f][1]}function AR(i){return Bl(this.__data__,i)>-1}function MR(i,l){var f=this.__data__,y=Bl(f,i);return y<0?(++this.size,f.push([i,l])):f[y][1]=l,this}ur.prototype.clear=CR,ur.prototype.delete=ER,ur.prototype.get=PR,ur.prototype.has=AR,ur.prototype.set=MR;function fr(i){var l=-1,f=i==null?0:i.length;for(this.clear();++l<f;){var y=i[l];this.set(y[0],y[1])}}function OR(){this.size=0,this.__data__={hash:new Ps,map:new(jo||ur),string:new Ps}}function $R(i){var l=Ql(this,i).delete(i);return this.size-=l?1:0,l}function _R(i){return Ql(this,i).get(i)}function IR(i){return Ql(this,i).has(i)}function DR(i,l){var f=Ql(this,i),y=f.size;return f.set(i,l),this.size+=f.size==y?0:1,this}fr.prototype.clear=OR,fr.prototype.delete=$R,fr.prototype.get=_R,fr.prototype.has=IR,fr.prototype.set=DR;function As(i){var l=-1,f=i==null?0:i.length;for(this.__data__=new fr;++l<f;)this.add(i[l])}function NR(i){return this.__data__.set(i,u),this}function kR(i){return this.__data__.has(i)}As.prototype.add=As.prototype.push=NR,As.prototype.has=kR;function bn(i){var l=this.__data__=new ur(i);this.size=l.size}function jR(){this.__data__=new ur,this.size=0}function LR(i){var l=this.__data__,f=l.delete(i);return this.size=l.size,f}function RR(i){return this.__data__.get(i)}function FR(i){return this.__data__.has(i)}function VR(i,l){var f=this.__data__;if(f instanceof ur){var y=f.__data__;if(!jo||y.length<s-1)return y.push([i,l]),this.size=++f.size,this;f=this.__data__=new fr(y)}return f.set(i,l),this.size=f.size,this}bn.prototype.clear=jR,bn.prototype.delete=LR,bn.prototype.get=RR,bn.prototype.has=FR,bn.prototype.set=VR;function Mw(i,l){var f=Me(i),y=!f&&Is(i),w=!f&&!y&&Xr(i),M=!f&&!y&&!w&&Ii(i),_=f||y||w||M,N=_?Mh(i.length,XL):[],L=N.length;for(var H in i)(l||ze.call(i,H))&&!(_&&(H=="length"||w&&(H=="offset"||H=="parent")||M&&(H=="buffer"||H=="byteLength"||H=="byteOffset")||mr(H,L)))&&N.push(H);return N}function Ow(i){var l=i.length;return l?i[Gh(0,l-1)]:n}function BR(i,l){return ec(Rt(i),Ms(l,0,i.length))}function WR(i){return ec(Rt(i))}function kh(i,l,f){(f!==n&&!wn(i[l],f)||f===n&&!(l in i))&&dr(i,l,f)}function Vo(i,l,f){var y=i[l];(!(ze.call(i,l)&&wn(y,f))||f===n&&!(l in i))&&dr(i,l,f)}function Bl(i,l){for(var f=i.length;f--;)if(wn(i[f][0],l))return f;return-1}function UR(i,l,f,y){return Yr(i,function(w,M,_){l(y,w,f(w),_)}),y}function $w(i,l){return i&&Bn(l,gt(l),i)}function zR(i,l){return i&&Bn(l,Vt(l),i)}function dr(i,l,f){l=="__proto__"&&kl?kl(i,l,{configurable:!0,enumerable:!0,value:f,writable:!0}):i[l]=f}function jh(i,l){for(var f=-1,y=l.length,w=V(y),M=i==null;++f<y;)w[f]=M?n:gp(i,l[f]);return w}function Ms(i,l,f){return i===i&&(f!==n&&(i=i<=f?i:f),l!==n&&(i=i>=l?i:l)),i}function fn(i,l,f,y,w,M){var _,N=l&p,L=l&m,H=l&x;if(f&&(_=w?f(i,y,w,M):f(i)),_!==n)return _;if(!rt(i))return i;var q=Me(i);if(q){if(_=IF(i),!N)return Rt(i,_)}else{var Z=Mt(i),ce=Z==ie||Z==me;if(Xr(i))return eS(i,N);if(Z==dt||Z==B||ce&&!w){if(_=L||ce?{}:vS(i),!N)return L?wF(i,zR(_,i)):bF(i,$w(_,i))}else{if(!qe[Z])return w?i:{};_=DF(i,Z,N)}}M||(M=new bn);var ye=M.get(i);if(ye)return ye;M.set(i,_),qS(i)?i.forEach(function(Ce){_.add(fn(Ce,l,f,Ce,i,M))}):YS(i)&&i.forEach(function(Ce,Ne){_.set(Ne,fn(Ce,l,f,Ne,i,M))});var Te=H?L?np:tp:L?Vt:gt,$e=q?n:Te(i);return ln($e||i,function(Ce,Ne){$e&&(Ne=Ce,Ce=i[Ne]),Vo(_,Ne,fn(Ce,l,f,Ne,i,M))}),_}function GR(i){var l=gt(i);return function(f){return _w(f,i,l)}}function _w(i,l,f){var y=f.length;if(i==null)return!y;for(i=Ge(i);y--;){var w=f[y],M=l[w],_=i[w];if(_===n&&!(w in i)||!M(_))return!1}return!0}function Iw(i,l,f){if(typeof i!="function")throw new cn(a);return Ho(function(){i.apply(n,f)},l)}function Bo(i,l,f,y){var w=-1,M=Cl,_=!0,N=i.length,L=[],H=l.length;if(!N)return L;f&&(l=Je(l,Xt(f))),y?(M=Sh,_=!1):l.length>=s&&(M=No,_=!1,l=new As(l));e:for(;++w<N;){var q=i[w],Z=f==null?q:f(q);if(q=y||q!==0?q:0,_&&Z===Z){for(var ce=H;ce--;)if(l[ce]===Z)continue e;L.push(q)}else M(l,Z,y)||L.push(q)}return L}var Yr=iS(Vn),Dw=iS(Rh,!0);function YR(i,l){var f=!0;return Yr(i,function(y,w,M){return f=!!l(y,w,M),f}),f}function Wl(i,l,f){for(var y=-1,w=i.length;++y<w;){var M=i[y],_=l(M);if(_!=null&&(N===n?_===_&&!Jt(_):f(_,N)))var N=_,L=M}return L}function HR(i,l,f,y){var w=i.length;for(f=Oe(f),f<0&&(f=-f>w?0:w+f),y=y===n||y>w?w:Oe(y),y<0&&(y+=w),y=f>y?0:XS(y);f<y;)i[f++]=l;return i}function Nw(i,l){var f=[];return Yr(i,function(y,w,M){l(y,w,M)&&f.push(y)}),f}function bt(i,l,f,y,w){var M=-1,_=i.length;for(f||(f=kF),w||(w=[]);++M<_;){var N=i[M];l>0&&f(N)?l>1?bt(N,l-1,f,y,w):Ur(w,N):y||(w[w.length]=N)}return w}var Lh=oS(),kw=oS(!0);function Vn(i,l){return i&&Lh(i,l,gt)}function Rh(i,l){return i&&kw(i,l,gt)}function Ul(i,l){return Wr(l,function(f){return gr(i[f])})}function Os(i,l){l=qr(l,i);for(var f=0,y=l.length;i!=null&&f<y;)i=i[Wn(l[f++])];return f&&f==y?i:n}function jw(i,l,f){var y=l(i);return Me(i)?y:Ur(y,f(i))}function _t(i){return i==null?i===n?vl:ws:Es&&Es in Ge(i)?OF(i):WF(i)}function Fh(i,l){return i>l}function qR(i,l){return i!=null&&ze.call(i,l)}function KR(i,l){return i!=null&&l in Ge(i)}function XR(i,l,f){return i>=At(l,f)&&i<pt(l,f)}function Vh(i,l,f){for(var y=f?Sh:Cl,w=i[0].length,M=i.length,_=M,N=V(M),L=1/0,H=[];_--;){var q=i[_];_&&l&&(q=Je(q,Xt(l))),L=At(q.length,L),N[_]=!f&&(l||w>=120&&q.length>=120)?new As(_&&q):n}q=i[0];var Z=-1,ce=N[0];e:for(;++Z<w&&H.length<L;){var ye=q[Z],Te=l?l(ye):ye;if(ye=f||ye!==0?ye:0,!(ce?No(ce,Te):y(H,Te,f))){for(_=M;--_;){var $e=N[_];if(!($e?No($e,Te):y(i[_],Te,f)))continue e}ce&&ce.push(Te),H.push(ye)}}return H}function ZR(i,l,f,y){return Vn(i,function(w,M,_){l(y,f(w),M,_)}),y}function Wo(i,l,f){l=qr(l,i),i=TS(i,l);var y=i==null?i:i[Wn(hn(l))];return y==null?n:Kt(y,i,f)}function Lw(i){return ot(i)&&_t(i)==B}function JR(i){return ot(i)&&_t(i)==ve}function QR(i){return ot(i)&&_t(i)==fe}function Uo(i,l,f,y,w){return i===l?!0:i==null||l==null||!ot(i)&&!ot(l)?i!==i&&l!==l:eF(i,l,f,y,Uo,w)}function eF(i,l,f,y,w,M){var _=Me(i),N=Me(l),L=_?J:Mt(i),H=N?J:Mt(l);L=L==B?dt:L,H=H==B?dt:H;var q=L==dt,Z=H==dt,ce=L==H;if(ce&&Xr(i)){if(!Xr(l))return!1;_=!0,q=!1}if(ce&&!q)return M||(M=new bn),_||Ii(i)?gS(i,l,f,y,w,M):AF(i,l,L,f,y,w,M);if(!(f&S)){var ye=q&&ze.call(i,"__wrapped__"),Te=Z&&ze.call(l,"__wrapped__");if(ye||Te){var $e=ye?i.value():i,Ce=Te?l.value():l;return M||(M=new bn),w($e,Ce,f,y,M)}}return ce?(M||(M=new bn),MF(i,l,f,y,w,M)):!1}function tF(i){return ot(i)&&Mt(i)==De}function Bh(i,l,f,y){var w=f.length,M=w,_=!y;if(i==null)return!M;for(i=Ge(i);w--;){var N=f[w];if(_&&N[2]?N[1]!==i[N[0]]:!(N[0]in i))return!1}for(;++w<M;){N=f[w];var L=N[0],H=i[L],q=N[1];if(_&&N[2]){if(H===n&&!(L in i))return!1}else{var Z=new bn;if(y)var ce=y(H,q,L,i,l,Z);if(!(ce===n?Uo(q,H,S|b,y,Z):ce))return!1}}return!0}function Rw(i){if(!rt(i)||LF(i))return!1;var l=gr(i)?tR:Gj;return l.test(_s(i))}function nF(i){return ot(i)&&_t(i)==Ss}function rF(i){return ot(i)&&Mt(i)==qt}function sF(i){return ot(i)&&oc(i.length)&&!!Xe[_t(i)]}function Fw(i){return typeof i=="function"?i:i==null?Bt:typeof i=="object"?Me(i)?Ww(i[0],i[1]):Bw(i):aT(i)}function Wh(i){if(!Yo(i))return aR(i);var l=[];for(var f in Ge(i))ze.call(i,f)&&f!="constructor"&&l.push(f);return l}function iF(i){if(!rt(i))return BF(i);var l=Yo(i),f=[];for(var y in i)y=="constructor"&&(l||!ze.call(i,y))||f.push(y);return f}function Uh(i,l){return i<l}function Vw(i,l){var f=-1,y=Ft(i)?V(i.length):[];return Yr(i,function(w,M,_){y[++f]=l(w,M,_)}),y}function Bw(i){var l=sp(i);return l.length==1&&l[0][2]?wS(l[0][0],l[0][1]):function(f){return f===i||Bh(f,i,l)}}function Ww(i,l){return op(i)&&bS(l)?wS(Wn(i),l):function(f){var y=gp(f,i);return y===n&&y===l?yp(f,i):Uo(l,y,S|b)}}function zl(i,l,f,y,w){i!==l&&Lh(l,function(M,_){if(w||(w=new bn),rt(M))oF(i,l,_,f,zl,y,w);else{var N=y?y(lp(i,_),M,_+"",i,l,w):n;N===n&&(N=M),kh(i,_,N)}},Vt)}function oF(i,l,f,y,w,M,_){var N=lp(i,f),L=lp(l,f),H=_.get(L);if(H){kh(i,f,H);return}var q=M?M(N,L,f+"",i,l,_):n,Z=q===n;if(Z){var ce=Me(L),ye=!ce&&Xr(L),Te=!ce&&!ye&&Ii(L);q=L,ce||ye||Te?Me(N)?q=N:ct(N)?q=Rt(N):ye?(Z=!1,q=eS(L,!0)):Te?(Z=!1,q=tS(L,!0)):q=[]:qo(L)||Is(L)?(q=N,Is(N)?q=ZS(N):(!rt(N)||gr(N))&&(q=vS(L))):Z=!1}Z&&(_.set(L,q),w(q,L,y,M,_),_.delete(L)),kh(i,f,q)}function Uw(i,l){var f=i.length;if(f)return l+=l<0?f:0,mr(l,f)?i[l]:n}function zw(i,l,f){l.length?l=Je(l,function(M){return Me(M)?function(_){return Os(_,M.length===1?M[0]:M)}:M}):l=[Bt];var y=-1;l=Je(l,Xt(be()));var w=Vw(i,function(M,_,N){var L=Je(l,function(H){return H(M)});return{criteria:L,index:++y,value:M}});return DL(w,function(M,_){return vF(M,_,f)})}function aF(i,l){return Gw(i,l,function(f,y){return yp(i,y)})}function Gw(i,l,f){for(var y=-1,w=l.length,M={};++y<w;){var _=l[y],N=Os(i,_);f(N,_)&&zo(M,qr(_,i),N)}return M}function lF(i){return function(l){return Os(l,i)}}function zh(i,l,f,y){var w=y?IL:wi,M=-1,_=l.length,N=i;for(i===l&&(l=Rt(l)),f&&(N=Je(i,Xt(f)));++M<_;)for(var L=0,H=l[M],q=f?f(H):H;(L=w(N,q,L,y))>-1;)N!==i&&Nl.call(N,L,1),Nl.call(i,L,1);return i}function Yw(i,l){for(var f=i?l.length:0,y=f-1;f--;){var w=l[f];if(f==y||w!==M){var M=w;mr(w)?Nl.call(i,w,1):qh(i,w)}}return i}function Gh(i,l){return i+Ll(Pw()*(l-i+1))}function cF(i,l,f,y){for(var w=-1,M=pt(jl((l-i)/(f||1)),0),_=V(M);M--;)_[y?M:++w]=i,i+=f;return _}function Yh(i,l){var f="";if(!i||l<1||l>z)return f;do l%2&&(f+=i),l=Ll(l/2),l&&(i+=i);while(l);return f}function _e(i,l){return cp(SS(i,l,Bt),i+"")}function uF(i){return Ow(Di(i))}function fF(i,l){var f=Di(i);return ec(f,Ms(l,0,f.length))}function zo(i,l,f,y){if(!rt(i))return i;l=qr(l,i);for(var w=-1,M=l.length,_=M-1,N=i;N!=null&&++w<M;){var L=Wn(l[w]),H=f;if(L==="__proto__"||L==="constructor"||L==="prototype")return i;if(w!=_){var q=N[L];H=y?y(q,L,N):n,H===n&&(H=rt(q)?q:mr(l[w+1])?[]:{})}Vo(N,L,H),N=N[L]}return i}var Hw=Rl?function(i,l){return Rl.set(i,l),i}:Bt,dF=kl?function(i,l){return kl(i,"toString",{configurable:!0,enumerable:!1,value:vp(l),writable:!0})}:Bt;function hF(i){return ec(Di(i))}function dn(i,l,f){var y=-1,w=i.length;l<0&&(l=-l>w?0:w+l),f=f>w?w:f,f<0&&(f+=w),w=l>f?0:f-l>>>0,l>>>=0;for(var M=V(w);++y<w;)M[y]=i[y+l];return M}function pF(i,l){var f;return Yr(i,function(y,w,M){return f=l(y,w,M),!f}),!!f}function Gl(i,l,f){var y=0,w=i==null?y:i.length;if(typeof l=="number"&&l===l&&w<=U){for(;y<w;){var M=y+w>>>1,_=i[M];_!==null&&!Jt(_)&&(f?_<=l:_<l)?y=M+1:w=M}return w}return Hh(i,l,Bt,f)}function Hh(i,l,f,y){var w=0,M=i==null?0:i.length;if(M===0)return 0;l=f(l);for(var _=l!==l,N=l===null,L=Jt(l),H=l===n;w<M;){var q=Ll((w+M)/2),Z=f(i[q]),ce=Z!==n,ye=Z===null,Te=Z===Z,$e=Jt(Z);if(_)var Ce=y||Te;else H?Ce=Te&&(y||ce):N?Ce=Te&&ce&&(y||!ye):L?Ce=Te&&ce&&!ye&&(y||!$e):ye||$e?Ce=!1:Ce=y?Z<=l:Z<l;Ce?w=q+1:M=q}return At(M,X)}function qw(i,l){for(var f=-1,y=i.length,w=0,M=[];++f<y;){var _=i[f],N=l?l(_):_;if(!f||!wn(N,L)){var L=N;M[w++]=_===0?0:_}}return M}function Kw(i){return typeof i=="number"?i:Jt(i)?$:+i}function Zt(i){if(typeof i=="string")return i;if(Me(i))return Je(i,Zt)+"";if(Jt(i))return Aw?Aw.call(i):"";var l=i+"";return l=="0"&&1/i==-1/0?"-0":l}function Hr(i,l,f){var y=-1,w=Cl,M=i.length,_=!0,N=[],L=N;if(f)_=!1,w=Sh;else if(M>=s){var H=l?null:EF(i);if(H)return Pl(H);_=!1,w=No,L=new As}else L=l?[]:N;e:for(;++y<M;){var q=i[y],Z=l?l(q):q;if(q=f||q!==0?q:0,_&&Z===Z){for(var ce=L.length;ce--;)if(L[ce]===Z)continue e;l&&L.push(Z),N.push(q)}else w(L,Z,f)||(L!==N&&L.push(Z),N.push(q))}return N}function qh(i,l){return l=qr(l,i),i=TS(i,l),i==null||delete i[Wn(hn(l))]}function Xw(i,l,f,y){return zo(i,l,f(Os(i,l)),y)}function Yl(i,l,f,y){for(var w=i.length,M=y?w:-1;(y?M--:++M<w)&&l(i[M],M,i););return f?dn(i,y?0:M,y?M+1:w):dn(i,y?M+1:0,y?w:M)}function Zw(i,l){var f=i;return f instanceof ke&&(f=f.value()),Th(l,function(y,w){return w.func.apply(w.thisArg,Ur([y],w.args))},f)}function Kh(i,l,f){var y=i.length;if(y<2)return y?Hr(i[0]):[];for(var w=-1,M=V(y);++w<y;)for(var _=i[w],N=-1;++N<y;)N!=w&&(M[w]=Bo(M[w]||_,i[N],l,f));return Hr(bt(M,1),l,f)}function Jw(i,l,f){for(var y=-1,w=i.length,M=l.length,_={};++y<w;){var N=y<M?l[y]:n;f(_,i[y],N)}return _}function Xh(i){return ct(i)?i:[]}function Zh(i){return typeof i=="function"?i:Bt}function qr(i,l){return Me(i)?i:op(i,l)?[i]:AS(Be(i))}var mF=_e;function Kr(i,l,f){var y=i.length;return f=f===n?y:f,!l&&f>=y?i:dn(i,l,f)}var Qw=nR||function(i){return vt.clearTimeout(i)};function eS(i,l){if(l)return i.slice();var f=i.length,y=ww?ww(f):new i.constructor(f);return i.copy(y),y}function Jh(i){var l=new i.constructor(i.byteLength);return new Il(l).set(new Il(i)),l}function gF(i,l){var f=l?Jh(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.byteLength)}function yF(i){var l=new i.constructor(i.source,L2.exec(i));return l.lastIndex=i.lastIndex,l}function xF(i){return Fo?Ge(Fo.call(i)):{}}function tS(i,l){var f=l?Jh(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.length)}function nS(i,l){if(i!==l){var f=i!==n,y=i===null,w=i===i,M=Jt(i),_=l!==n,N=l===null,L=l===l,H=Jt(l);if(!N&&!H&&!M&&i>l||M&&_&&L&&!N&&!H||y&&_&&L||!f&&L||!w)return 1;if(!y&&!M&&!H&&i<l||H&&f&&w&&!y&&!M||N&&f&&w||!_&&w||!L)return-1}return 0}function vF(i,l,f){for(var y=-1,w=i.criteria,M=l.criteria,_=w.length,N=f.length;++y<_;){var L=nS(w[y],M[y]);if(L){if(y>=N)return L;var H=f[y];return L*(H=="desc"?-1:1)}}return i.index-l.index}function rS(i,l,f,y){for(var w=-1,M=i.length,_=f.length,N=-1,L=l.length,H=pt(M-_,0),q=V(L+H),Z=!y;++N<L;)q[N]=l[N];for(;++w<_;)(Z||w<M)&&(q[f[w]]=i[w]);for(;H--;)q[N++]=i[w++];return q}function sS(i,l,f,y){for(var w=-1,M=i.length,_=-1,N=f.length,L=-1,H=l.length,q=pt(M-N,0),Z=V(q+H),ce=!y;++w<q;)Z[w]=i[w];for(var ye=w;++L<H;)Z[ye+L]=l[L];for(;++_<N;)(ce||w<M)&&(Z[ye+f[_]]=i[w++]);return Z}function Rt(i,l){var f=-1,y=i.length;for(l||(l=V(y));++f<y;)l[f]=i[f];return l}function Bn(i,l,f,y){var w=!f;f||(f={});for(var M=-1,_=l.length;++M<_;){var N=l[M],L=y?y(f[N],i[N],N,f,i):n;L===n&&(L=i[N]),w?dr(f,N,L):Vo(f,N,L)}return f}function bF(i,l){return Bn(i,ip(i),l)}function wF(i,l){return Bn(i,yS(i),l)}function Hl(i,l){return function(f,y){var w=Me(f)?PL:UR,M=l?l():{};return w(f,i,be(y,2),M)}}function Oi(i){return _e(function(l,f){var y=-1,w=f.length,M=w>1?f[w-1]:n,_=w>2?f[2]:n;for(M=i.length>3&&typeof M=="function"?(w--,M):n,_&&It(f[0],f[1],_)&&(M=w<3?n:M,w=1),l=Ge(l);++y<w;){var N=f[y];N&&i(l,N,y,M)}return l})}function iS(i,l){return function(f,y){if(f==null)return f;if(!Ft(f))return i(f,y);for(var w=f.length,M=l?w:-1,_=Ge(f);(l?M--:++M<w)&&y(_[M],M,_)!==!1;);return f}}function oS(i){return function(l,f,y){for(var w=-1,M=Ge(l),_=y(l),N=_.length;N--;){var L=_[i?N:++w];if(f(M[L],L,M)===!1)break}return l}}function SF(i,l,f){var y=l&T,w=Go(i);function M(){var _=this&&this!==vt&&this instanceof M?w:i;return _.apply(y?f:this,arguments)}return M}function aS(i){return function(l){l=Be(l);var f=Si(l)?vn(l):n,y=f?f[0]:l.charAt(0),w=f?Kr(f,1).join(""):l.slice(1);return y[i]()+w}}function $i(i){return function(l){return Th(iT(sT(l).replace(dL,"")),i,"")}}function Go(i){return function(){var l=arguments;switch(l.length){case 0:return new i;case 1:return new i(l[0]);case 2:return new i(l[0],l[1]);case 3:return new i(l[0],l[1],l[2]);case 4:return new i(l[0],l[1],l[2],l[3]);case 5:return new i(l[0],l[1],l[2],l[3],l[4]);case 6:return new i(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new i(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var f=Mi(i.prototype),y=i.apply(f,l);return rt(y)?y:f}}function TF(i,l,f){var y=Go(i);function w(){for(var M=arguments.length,_=V(M),N=M,L=_i(w);N--;)_[N]=arguments[N];var H=M<3&&_[0]!==L&&_[M-1]!==L?[]:zr(_,L);if(M-=H.length,M<f)return dS(i,l,ql,w.placeholder,n,_,H,n,n,f-M);var q=this&&this!==vt&&this instanceof w?y:i;return Kt(q,this,_)}return w}function lS(i){return function(l,f,y){var w=Ge(l);if(!Ft(l)){var M=be(f,3);l=gt(l),f=function(N){return M(w[N],N,w)}}var _=i(l,f,y);return _>-1?w[M?l[_]:_]:n}}function cS(i){return pr(function(l){var f=l.length,y=f,w=un.prototype.thru;for(i&&l.reverse();y--;){var M=l[y];if(typeof M!="function")throw new cn(a);if(w&&!_&&Jl(M)=="wrapper")var _=new un([],!0)}for(y=_?y:f;++y<f;){M=l[y];var N=Jl(M),L=N=="wrapper"?rp(M):n;L&&ap(L[0])&&L[1]==(R|C|P|F)&&!L[4].length&&L[9]==1?_=_[Jl(L[0])].apply(_,L[3]):_=M.length==1&&ap(M)?_[N]():_.thru(M)}return function(){var H=arguments,q=H[0];if(_&&H.length==1&&Me(q))return _.plant(q).value();for(var Z=0,ce=f?l[Z].apply(this,H):q;++Z<f;)ce=l[Z].call(this,ce);return ce}})}function ql(i,l,f,y,w,M,_,N,L,H){var q=l&R,Z=l&T,ce=l&v,ye=l&(C|I),Te=l&W,$e=ce?n:Go(i);function Ce(){for(var Ne=arguments.length,je=V(Ne),Qt=Ne;Qt--;)je[Qt]=arguments[Qt];if(ye)var Dt=_i(Ce),en=kL(je,Dt);if(y&&(je=rS(je,y,w,ye)),M&&(je=sS(je,M,_,ye)),Ne-=en,ye&&Ne<H){var ut=zr(je,Dt);return dS(i,l,ql,Ce.placeholder,f,je,ut,N,L,H-Ne)}var Sn=Z?f:this,xr=ce?Sn[i]:i;return Ne=je.length,N?je=UF(je,N):Te&&Ne>1&&je.reverse(),q&&L<Ne&&(je.length=L),this&&this!==vt&&this instanceof Ce&&(xr=$e||Go(xr)),xr.apply(Sn,je)}return Ce}function uS(i,l){return function(f,y){return ZR(f,i,l(y),{})}}function Kl(i,l){return function(f,y){var w;if(f===n&&y===n)return l;if(f!==n&&(w=f),y!==n){if(w===n)return y;typeof f=="string"||typeof y=="string"?(f=Zt(f),y=Zt(y)):(f=Kw(f),y=Kw(y)),w=i(f,y)}return w}}function Qh(i){return pr(function(l){return l=Je(l,Xt(be())),_e(function(f){var y=this;return i(l,function(w){return Kt(w,y,f)})})})}function Xl(i,l){l=l===n?" ":Zt(l);var f=l.length;if(f<2)return f?Yh(l,i):l;var y=Yh(l,jl(i/Ti(l)));return Si(l)?Kr(vn(y),0,i).join(""):y.slice(0,i)}function CF(i,l,f,y){var w=l&T,M=Go(i);function _(){for(var N=-1,L=arguments.length,H=-1,q=y.length,Z=V(q+L),ce=this&&this!==vt&&this instanceof _?M:i;++H<q;)Z[H]=y[H];for(;L--;)Z[H++]=arguments[++N];return Kt(ce,w?f:this,Z)}return _}function fS(i){return function(l,f,y){return y&&typeof y!="number"&&It(l,f,y)&&(f=y=n),l=yr(l),f===n?(f=l,l=0):f=yr(f),y=y===n?l<f?1:-1:yr(y),cF(l,f,y,i)}}function Zl(i){return function(l,f){return typeof l=="string"&&typeof f=="string"||(l=pn(l),f=pn(f)),i(l,f)}}function dS(i,l,f,y,w,M,_,N,L,H){var q=l&C,Z=q?_:n,ce=q?n:_,ye=q?M:n,Te=q?n:M;l|=q?P:D,l&=~(q?D:P),l&A||(l&=-4);var $e=[i,l,w,ye,Z,Te,ce,N,L,H],Ce=f.apply(n,$e);return ap(i)&&CS(Ce,$e),Ce.placeholder=y,ES(Ce,i,l)}function ep(i){var l=ht[i];return function(f,y){if(f=pn(f),y=y==null?0:At(Oe(y),292),y&&Ew(f)){var w=(Be(f)+"e").split("e"),M=l(w[0]+"e"+(+w[1]+y));return w=(Be(M)+"e").split("e"),+(w[0]+"e"+(+w[1]-y))}return l(f)}}var EF=Pi&&1/Pl(new Pi([,-0]))[1]==Y?function(i){return new Pi(i)}:Sp;function hS(i){return function(l){var f=Mt(l);return f==De?$h(l):f==qt?WL(l):NL(l,i(l))}}function hr(i,l,f,y,w,M,_,N){var L=l&v;if(!L&&typeof i!="function")throw new cn(a);var H=y?y.length:0;if(H||(l&=-97,y=w=n),_=_===n?_:pt(Oe(_),0),N=N===n?N:Oe(N),H-=w?w.length:0,l&D){var q=y,Z=w;y=w=n}var ce=L?n:rp(i),ye=[i,l,f,y,w,q,Z,M,_,N];if(ce&&VF(ye,ce),i=ye[0],l=ye[1],f=ye[2],y=ye[3],w=ye[4],N=ye[9]=ye[9]===n?L?0:i.length:pt(ye[9]-H,0),!N&&l&(C|I)&&(l&=-25),!l||l==T)var Te=SF(i,l,f);else l==C||l==I?Te=TF(i,l,N):(l==P||l==(T|P))&&!w.length?Te=CF(i,l,f,y):Te=ql.apply(n,ye);var $e=ce?Hw:CS;return ES($e(Te,ye),i,l)}function pS(i,l,f,y){return i===n||wn(i,Ei[f])&&!ze.call(y,f)?l:i}function mS(i,l,f,y,w,M){return rt(i)&&rt(l)&&(M.set(l,i),zl(i,l,n,mS,M),M.delete(l)),i}function PF(i){return qo(i)?n:i}function gS(i,l,f,y,w,M){var _=f&S,N=i.length,L=l.length;if(N!=L&&!(_&&L>N))return!1;var H=M.get(i),q=M.get(l);if(H&&q)return H==l&&q==i;var Z=-1,ce=!0,ye=f&b?new As:n;for(M.set(i,l),M.set(l,i);++Z<N;){var Te=i[Z],$e=l[Z];if(y)var Ce=_?y($e,Te,Z,l,i,M):y(Te,$e,Z,i,l,M);if(Ce!==n){if(Ce)continue;ce=!1;break}if(ye){if(!Ch(l,function(Ne,je){if(!No(ye,je)&&(Te===Ne||w(Te,Ne,f,y,M)))return ye.push(je)})){ce=!1;break}}else if(!(Te===$e||w(Te,$e,f,y,M))){ce=!1;break}}return M.delete(i),M.delete(l),ce}function AF(i,l,f,y,w,M,_){switch(f){case Ze:if(i.byteLength!=l.byteLength||i.byteOffset!=l.byteOffset)return!1;i=i.buffer,l=l.buffer;case ve:return!(i.byteLength!=l.byteLength||!M(new Il(i),new Il(l)));case se:case fe:case ft:return wn(+i,+l);case Ve:return i.name==l.name&&i.message==l.message;case Ss:case yn:return i==l+"";case De:var N=$h;case qt:var L=y&S;if(N||(N=Pl),i.size!=l.size&&!L)return!1;var H=_.get(i);if(H)return H==l;y|=b,_.set(i,l);var q=gS(N(i),N(l),y,w,M,_);return _.delete(i),q;case Ts:if(Fo)return Fo.call(i)==Fo.call(l)}return!1}function MF(i,l,f,y,w,M){var _=f&S,N=tp(i),L=N.length,H=tp(l),q=H.length;if(L!=q&&!_)return!1;for(var Z=L;Z--;){var ce=N[Z];if(!(_?ce in l:ze.call(l,ce)))return!1}var ye=M.get(i),Te=M.get(l);if(ye&&Te)return ye==l&&Te==i;var $e=!0;M.set(i,l),M.set(l,i);for(var Ce=_;++Z<L;){ce=N[Z];var Ne=i[ce],je=l[ce];if(y)var Qt=_?y(je,Ne,ce,l,i,M):y(Ne,je,ce,i,l,M);if(!(Qt===n?Ne===je||w(Ne,je,f,y,M):Qt)){$e=!1;break}Ce||(Ce=ce=="constructor")}if($e&&!Ce){var Dt=i.constructor,en=l.constructor;Dt!=en&&"constructor"in i&&"constructor"in l&&!(typeof Dt=="function"&&Dt instanceof Dt&&typeof en=="function"&&en instanceof en)&&($e=!1)}return M.delete(i),M.delete(l),$e}function pr(i){return cp(SS(i,n,_S),i+"")}function tp(i){return jw(i,gt,ip)}function np(i){return jw(i,Vt,yS)}var rp=Rl?function(i){return Rl.get(i)}:Sp;function Jl(i){for(var l=i.name+"",f=Ai[l],y=ze.call(Ai,l)?f.length:0;y--;){var w=f[y],M=w.func;if(M==null||M==i)return w.name}return l}function _i(i){var l=ze.call(E,"placeholder")?E:i;return l.placeholder}function be(){var i=E.iteratee||bp;return i=i===bp?Fw:i,arguments.length?i(arguments[0],arguments[1]):i}function Ql(i,l){var f=i.__data__;return jF(l)?f[typeof l=="string"?"string":"hash"]:f.map}function sp(i){for(var l=gt(i),f=l.length;f--;){var y=l[f],w=i[y];l[f]=[y,w,bS(w)]}return l}function $s(i,l){var f=FL(i,l);return Rw(f)?f:n}function OF(i){var l=ze.call(i,Es),f=i[Es];try{i[Es]=n;var y=!0}catch{}var w=$l.call(i);return y&&(l?i[Es]=f:delete i[Es]),w}var ip=Ih?function(i){return i==null?[]:(i=Ge(i),Wr(Ih(i),function(l){return Tw.call(i,l)}))}:Tp,yS=Ih?function(i){for(var l=[];i;)Ur(l,ip(i)),i=Dl(i);return l}:Tp,Mt=_t;(Dh&&Mt(new Dh(new ArrayBuffer(1)))!=Ze||jo&&Mt(new jo)!=De||Nh&&Mt(Nh.resolve())!=yl||Pi&&Mt(new Pi)!=qt||Lo&&Mt(new Lo)!=Br)&&(Mt=function(i){var l=_t(i),f=l==dt?i.constructor:n,y=f?_s(f):"";if(y)switch(y){case fR:return Ze;case dR:return De;case hR:return yl;case pR:return qt;case mR:return Br}return l});function $F(i,l,f){for(var y=-1,w=f.length;++y<w;){var M=f[y],_=M.size;switch(M.type){case"drop":i+=_;break;case"dropRight":l-=_;break;case"take":l=At(l,i+_);break;case"takeRight":i=pt(i,l-_);break}}return{start:i,end:l}}function _F(i){var l=i.match(Lj);return l?l[1].split(Rj):[]}function xS(i,l,f){l=qr(l,i);for(var y=-1,w=l.length,M=!1;++y<w;){var _=Wn(l[y]);if(!(M=i!=null&&f(i,_)))break;i=i[_]}return M||++y!=w?M:(w=i==null?0:i.length,!!w&&oc(w)&&mr(_,w)&&(Me(i)||Is(i)))}function IF(i){var l=i.length,f=new i.constructor(l);return l&&typeof i[0]=="string"&&ze.call(i,"index")&&(f.index=i.index,f.input=i.input),f}function vS(i){return typeof i.constructor=="function"&&!Yo(i)?Mi(Dl(i)):{}}function DF(i,l,f){var y=i.constructor;switch(l){case ve:return Jh(i);case se:case fe:return new y(+i);case Ze:return gF(i,f);case Pt:case xn:case cr:case ah:case lh:case ch:case uh:case fh:case dh:return tS(i,f);case De:return new y;case ft:case yn:return new y(i);case Ss:return yF(i);case qt:return new y;case Ts:return xF(i)}}function NF(i,l){var f=l.length;if(!f)return i;var y=f-1;return l[y]=(f>1?"& ":"")+l[y],l=l.join(f>2?", ":" "),i.replace(jj,`{
|
|
633
633
|
/* [wrapped with `+l+`] */
|
|
634
|
-
`)}function KF(s){return Me(s)||Li(s)||!!(Dw&&s&&s[Dw])}function cr(s,l){var f=typeof s;return l=l??W,!!l&&(f=="number"||f!="symbol"&&aR.test(s))&&s>-1&&s%1==0&&s<l}function $t(s,l,f){if(!st(f))return!1;var g=typeof l;return(g=="number"?Bt(f)&&cr(l,f.length):g=="string"&&l in f)?En(f[l],s):!1}function hm(s,l){if(Me(s))return!1;var f=typeof s;return f=="number"||f=="symbol"||f=="boolean"||s==null||Jt(s)?!0:YL.test(s)||!GL.test(s)||l!=null&&s in Ye(l)}function XF(s){var l=typeof s;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?s!=="__proto__":s===null}function mm(s){var l=tc(s),f=P[l];if(typeof f!="function"||!(l in ke.prototype))return!1;if(s===f)return!0;var g=um(f);return!!g&&s===g[0]}function ZF(s){return!!Ow&&Ow in s}var JF=Il?ur:Im;function Zo(s){var l=s&&s.constructor,f=typeof l=="function"&&l.prototype||_s;return s===f}function OS(s){return s===s&&!st(s)}function _S(s,l){return function(f){return f==null?!1:f[s]===l&&(l!==n||s in Ye(f))}}function QF(s){var l=ac(s,function(g){return f.size===d&&f.clear(),g}),f=l.cache;return l}function eV(s,l){var f=s[1],g=l[1],w=f|g,O=w<(T|b|R),I=g==R&&f==E||g==R&&f==j&&s[7].length<=l[8]||g==(R|j)&&l[7].length<=l[8]&&f==E;if(!(O||I))return s;g&T&&(s[2]=l[2],w|=f&T?0:C);var N=l[3];if(N){var F=s[3];s[3]=F?dS(F,N,l[4]):N,s[4]=F?Gr(s[3],h):l[4]}return N=l[5],N&&(F=s[5],s[5]=F?hS(F,N,l[6]):N,s[6]=F?Gr(s[5],h):l[6]),N=l[7],N&&(s[7]=N),g&R&&(s[8]=s[8]==null?l[8]:At(s[8],l[8])),s[9]==null&&(s[9]=l[9]),s[0]=l[0],s[1]=w,s}function tV(s){var l=[];if(s!=null)for(var f in Ye(s))l.push(f);return l}function nV(s){return Dl.call(s)}function IS(s,l,f){return l=mt(l===n?s.length-1:l,0),function(){for(var g=arguments,w=-1,O=mt(g.length-l,0),I=B(O);++w<O;)I[w]=g[l+w];w=-1;for(var N=B(l+1);++w<l;)N[w]=g[w];return N[l]=f(I),Kt(s,this,N)}}function $S(s,l){return l.length<2?s:Di(s,mn(l,0,-1))}function rV(s,l){for(var f=s.length,g=At(l.length,f),w=Vt(s);g--;){var O=l[g];s[g]=cr(O,f)?w[O]:n}return s}function pm(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var DS=kS(nS),Jo=vj||function(s,l){return xt.setTimeout(s,l)},gm=kS(PF);function NS(s,l,f){var g=l+"";return gm(s,qF(g,iV(GF(g),f)))}function kS(s){var l=0,f=0;return function(){var g=Sj(),w=ge-(g-f);if(f=g,w>0){if(++l>=se)return arguments[0]}else l=0;return s.apply(n,arguments)}}function rc(s,l){var f=-1,g=s.length,w=g-1;for(l=l===n?g:l;++f<l;){var O=Jh(f,w),I=s[O];s[O]=s[f],s[f]=I}return s.length=l,s}var LS=QF(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(HL,function(f,g,w,O){l.push(w?O.replace(tR,"$1"):g||f)}),l});function Gn(s){if(typeof s=="string"||Jt(s))return s;var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function ki(s){if(s!=null){try{return $l.call(s)}catch{}try{return s+""}catch{}}return""}function iV(s,l){return un(le,function(f){var g="_."+f[0];l&f[1]&&!Al(s,g)&&s.push(g)}),s.sort()}function RS(s){if(s instanceof ke)return s.clone();var l=new dn(s.__wrapped__,s.__chain__);return l.__actions__=Vt(s.__actions__),l.__index__=s.__index__,l.__values__=s.__values__,l}function sV(s,l,f){(f?$t(s,l,f):l===n)?l=1:l=mt(Oe(l),0);var g=s==null?0:s.length;if(!g||l<1)return[];for(var w=0,O=0,I=B(Fl(g/l));w<g;)I[O++]=mn(s,w,w+=l);return I}function oV(s){for(var l=-1,f=s==null?0:s.length,g=0,w=[];++l<f;){var O=s[l];O&&(w[g++]=O)}return w}function aV(){var s=arguments.length;if(!s)return[];for(var l=B(s-1),f=arguments[0],g=s;g--;)l[g-1]=arguments[g];return zr(Me(f)?Vt(f):[f],bt(l,1))}var lV=Ie(function(s,l){return ct(s)?Yo(s,bt(l,1,ct,!0)):[]}),cV=Ie(function(s,l){var f=pn(l);return ct(f)&&(f=n),ct(s)?Yo(s,bt(l,1,ct,!0),be(f,2)):[]}),uV=Ie(function(s,l){var f=pn(l);return ct(f)&&(f=n),ct(s)?Yo(s,bt(l,1,ct,!0),n,f):[]});function fV(s,l,f){var g=s==null?0:s.length;return g?(l=f||l===n?1:Oe(l),mn(s,l<0?0:l,g)):[]}function dV(s,l,f){var g=s==null?0:s.length;return g?(l=f||l===n?1:Oe(l),l=g-l,mn(s,0,l<0?0:l)):[]}function hV(s,l){return s&&s.length?Kl(s,be(l,3),!0,!0):[]}function mV(s,l){return s&&s.length?Kl(s,be(l,3),!0):[]}function pV(s,l,f,g){var w=s==null?0:s.length;return w?(f&&typeof f!="number"&&$t(s,l,f)&&(f=0,g=w),aF(s,l,f,g)):[]}function jS(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var w=f==null?0:Oe(f);return w<0&&(w=mt(g+w,0)),Ml(s,be(l,3),w)}function FS(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var w=g-1;return f!==n&&(w=Oe(f),w=f<0?mt(g+w,0):At(w,g-1)),Ml(s,be(l,3),w,!0)}function VS(s){var l=s==null?0:s.length;return l?bt(s,1):[]}function gV(s){var l=s==null?0:s.length;return l?bt(s,G):[]}function yV(s,l){var f=s==null?0:s.length;return f?(l=l===n?1:Oe(l),bt(s,l)):[]}function vV(s){for(var l=-1,f=s==null?0:s.length,g={};++l<f;){var w=s[l];g[w[0]]=w[1]}return g}function BS(s){return s&&s.length?s[0]:n}function xV(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var w=f==null?0:Oe(f);return w<0&&(w=mt(g+w,0)),Ps(s,l,w)}function bV(s){var l=s==null?0:s.length;return l?mn(s,0,-1):[]}var wV=Ie(function(s){var l=et(s,rm);return l.length&&l[0]===s[0]?Hh(l):[]}),SV=Ie(function(s){var l=pn(s),f=et(s,rm);return l===pn(f)?l=n:f.pop(),f.length&&f[0]===s[0]?Hh(f,be(l,2)):[]}),TV=Ie(function(s){var l=pn(s),f=et(s,rm);return l=typeof l=="function"?l:n,l&&f.pop(),f.length&&f[0]===s[0]?Hh(f,n,l):[]});function EV(s,l){return s==null?"":bj.call(s,l)}function pn(s){var l=s==null?0:s.length;return l?s[l-1]:n}function CV(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var w=g;return f!==n&&(w=Oe(f),w=w<0?mt(g+w,0):At(w,g-1)),l===l?ij(s,l,w):Ml(s,ww,w,!0)}function PV(s,l){return s&&s.length?Jw(s,Oe(l)):n}var AV=Ie(WS);function WS(s,l){return s&&s.length&&l&&l.length?Zh(s,l):s}function MV(s,l,f){return s&&s.length&&l&&l.length?Zh(s,l,be(f,2)):s}function OV(s,l,f){return s&&s.length&&l&&l.length?Zh(s,l,n,f):s}var _V=lr(function(s,l){var f=s==null?0:s.length,g=Uh(s,l);return tS(s,et(l,function(w){return cr(w,f)?+w:w}).sort(fS)),g});function IV(s,l){var f=[];if(!(s&&s.length))return f;var g=-1,w=[],O=s.length;for(l=be(l,3);++g<O;){var I=s[g];l(I,g,s)&&(f.push(I),w.push(g))}return tS(s,w),f}function ym(s){return s==null?s:Ej.call(s)}function $V(s,l,f){var g=s==null?0:s.length;return g?(f&&typeof f!="number"&&$t(s,l,f)?(l=0,f=g):(l=l==null?0:Oe(l),f=f===n?g:Oe(f)),mn(s,l,f)):[]}function DV(s,l){return ql(s,l)}function NV(s,l,f){return em(s,l,be(f,2))}function kV(s,l){var f=s==null?0:s.length;if(f){var g=ql(s,l);if(g<f&&En(s[g],l))return g}return-1}function LV(s,l){return ql(s,l,!0)}function RV(s,l,f){return em(s,l,be(f,2),!0)}function jV(s,l){var f=s==null?0:s.length;if(f){var g=ql(s,l,!0)-1;if(En(s[g],l))return g}return-1}function FV(s){return s&&s.length?rS(s):[]}function VV(s,l){return s&&s.length?rS(s,be(l,2)):[]}function BV(s){var l=s==null?0:s.length;return l?mn(s,1,l):[]}function WV(s,l,f){return s&&s.length?(l=f||l===n?1:Oe(l),mn(s,0,l<0?0:l)):[]}function UV(s,l,f){var g=s==null?0:s.length;return g?(l=f||l===n?1:Oe(l),l=g-l,mn(s,l<0?0:l,g)):[]}function zV(s,l){return s&&s.length?Kl(s,be(l,3),!1,!0):[]}function GV(s,l){return s&&s.length?Kl(s,be(l,3)):[]}var YV=Ie(function(s){return qr(bt(s,1,ct,!0))}),HV=Ie(function(s){var l=pn(s);return ct(l)&&(l=n),qr(bt(s,1,ct,!0),be(l,2))}),qV=Ie(function(s){var l=pn(s);return l=typeof l=="function"?l:n,qr(bt(s,1,ct,!0),n,l)});function KV(s){return s&&s.length?qr(s):[]}function XV(s,l){return s&&s.length?qr(s,be(l,2)):[]}function ZV(s,l){return l=typeof l=="function"?l:n,s&&s.length?qr(s,n,l):[]}function vm(s){if(!(s&&s.length))return[];var l=0;return s=Ur(s,function(f){if(ct(f))return l=mt(f.length,l),!0}),kh(l,function(f){return et(s,$h(f))})}function US(s,l){if(!(s&&s.length))return[];var f=vm(s);return l==null?f:et(f,function(g){return Kt(l,n,g)})}var JV=Ie(function(s,l){return ct(s)?Yo(s,l):[]}),QV=Ie(function(s){return nm(Ur(s,ct))}),e8=Ie(function(s){var l=pn(s);return ct(l)&&(l=n),nm(Ur(s,ct),be(l,2))}),t8=Ie(function(s){var l=pn(s);return l=typeof l=="function"?l:n,nm(Ur(s,ct),n,l)}),n8=Ie(vm);function r8(s,l){return aS(s||[],l||[],Go)}function i8(s,l){return aS(s||[],l||[],Ko)}var s8=Ie(function(s){var l=s.length,f=l>1?s[l-1]:n;return f=typeof f=="function"?(s.pop(),f):n,US(s,f)});function zS(s){var l=P(s);return l.__chain__=!0,l}function o8(s,l){return l(s),s}function ic(s,l){return l(s)}var a8=lr(function(s){var l=s.length,f=l?s[0]:0,g=this.__wrapped__,w=function(O){return Uh(O,s)};return l>1||this.__actions__.length||!(g instanceof ke)||!cr(f)?this.thru(w):(g=g.slice(f,+f+(l?1:0)),g.__actions__.push({func:ic,args:[w],thisArg:n}),new dn(g,this.__chain__).thru(function(O){return l&&!O.length&&O.push(n),O}))});function l8(){return zS(this)}function c8(){return new dn(this.value(),this.__chain__)}function u8(){this.__values__===n&&(this.__values__=iT(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function f8(){return this}function d8(s){for(var l,f=this;f instanceof Ul;){var g=RS(f);g.__index__=0,g.__values__=n,l?w.__wrapped__=g:l=g;var w=g;f=f.__wrapped__}return w.__wrapped__=s,l}function h8(){var s=this.__wrapped__;if(s instanceof ke){var l=s;return this.__actions__.length&&(l=new ke(this)),l=l.reverse(),l.__actions__.push({func:ic,args:[ym],thisArg:n}),new dn(l,this.__chain__)}return this.thru(ym)}function m8(){return oS(this.__wrapped__,this.__actions__)}var p8=Xl(function(s,l,f){ze.call(s,f)?++s[f]:or(s,f,1)});function g8(s,l,f){var g=Me(s)?xw:oF;return f&&$t(s,l,f)&&(l=n),g(s,be(l,3))}function y8(s,l){var f=Me(s)?Ur:Uw;return f(s,be(l,3))}var v8=yS(jS),x8=yS(FS);function b8(s,l){return bt(sc(s,l),1)}function w8(s,l){return bt(sc(s,l),G)}function S8(s,l,f){return f=f===n?1:Oe(f),bt(sc(s,l),f)}function GS(s,l){var f=Me(s)?un:Hr;return f(s,be(l,3))}function YS(s,l){var f=Me(s)?BR:Ww;return f(s,be(l,3))}var T8=Xl(function(s,l,f){ze.call(s,f)?s[f].push(l):or(s,f,[l])});function E8(s,l,f,g){s=Bt(s)?s:js(s),f=f&&!g?Oe(f):0;var w=s.length;return f<0&&(f=mt(w+f,0)),uc(s)?f<=w&&s.indexOf(l,f)>-1:!!w&&Ps(s,l,f)>-1}var C8=Ie(function(s,l,f){var g=-1,w=typeof l=="function",O=Bt(s)?B(s.length):[];return Hr(s,function(I){O[++g]=w?Kt(l,I,f):Ho(I,l,f)}),O}),P8=Xl(function(s,l,f){or(s,f,l)});function sc(s,l){var f=Me(s)?et:Kw;return f(s,be(l,3))}function A8(s,l,f,g){return s==null?[]:(Me(l)||(l=l==null?[]:[l]),f=g?n:f,Me(f)||(f=f==null?[]:[f]),Qw(s,l,f))}var M8=Xl(function(s,l,f){s[f?0:1].push(l)},function(){return[[],[]]});function O8(s,l,f){var g=Me(s)?_h:Tw,w=arguments.length<3;return g(s,be(l,4),f,w,Hr)}function _8(s,l,f){var g=Me(s)?WR:Tw,w=arguments.length<3;return g(s,be(l,4),f,w,Ww)}function I8(s,l){var f=Me(s)?Ur:Uw;return f(s,lc(be(l,3)))}function $8(s){var l=Me(s)?jw:EF;return l(s)}function D8(s,l,f){(f?$t(s,l,f):l===n)?l=1:l=Oe(l);var g=Me(s)?tF:CF;return g(s,l)}function N8(s){var l=Me(s)?nF:AF;return l(s)}function k8(s){if(s==null)return 0;if(Bt(s))return uc(s)?Ms(s):s.length;var l=Mt(s);return l==De||l==qt?s.size:Kh(s).length}function L8(s,l,f){var g=Me(s)?Ih:MF;return f&&$t(s,l,f)&&(l=n),g(s,be(l,3))}var R8=Ie(function(s,l){if(s==null)return[];var f=l.length;return f>1&&$t(s,l[0],l[1])?l=[]:f>2&&$t(l[0],l[1],l[2])&&(l=[l[0]]),Qw(s,bt(l,1),[])}),oc=yj||function(){return xt.Date.now()};function j8(s,l){if(typeof l!="function")throw new fn(a);return s=Oe(s),function(){if(--s<1)return l.apply(this,arguments)}}function HS(s,l,f){return l=f?n:l,l=s&&l==null?s.length:l,ar(s,R,n,n,n,n,l)}function qS(s,l){var f;if(typeof l!="function")throw new fn(a);return s=Oe(s),function(){return--s>0&&(f=l.apply(this,arguments)),s<=1&&(l=n),f}}var xm=Ie(function(s,l,f){var g=T;if(f.length){var w=Gr(f,Ls(xm));g|=A}return ar(s,g,l,f,w)}),KS=Ie(function(s,l,f){var g=T|b;if(f.length){var w=Gr(f,Ls(KS));g|=A}return ar(l,g,s,f,w)});function XS(s,l,f){l=f?n:l;var g=ar(s,E,n,n,n,n,n,l);return g.placeholder=XS.placeholder,g}function ZS(s,l,f){l=f?n:l;var g=ar(s,$,n,n,n,n,n,l);return g.placeholder=ZS.placeholder,g}function JS(s,l,f){var g,w,O,I,N,F,q=0,K=!1,X=!1,ce=!0;if(typeof s!="function")throw new fn(a);l=gn(l)||0,st(f)&&(K=!!f.leading,X="maxWait"in f,O=X?mt(gn(f.maxWait)||0,l):O,ce="trailing"in f?!!f.trailing:ce);function ye(ut){var Cn=g,dr=w;return g=w=n,q=ut,I=s.apply(dr,Cn),I}function Te(ut){return q=ut,N=Jo(Ne,l),K?ye(ut):I}function _e(ut){var Cn=ut-F,dr=ut-q,yT=l-Cn;return X?At(yT,O-dr):yT}function Ee(ut){var Cn=ut-F,dr=ut-q;return F===n||Cn>=l||Cn<0||X&&dr>=O}function Ne(){var ut=oc();if(Ee(ut))return Le(ut);N=Jo(Ne,_e(ut))}function Le(ut){return N=n,ce&&g?ye(ut):(g=w=n,I)}function Qt(){N!==n&&lS(N),q=0,g=F=w=N=n}function Dt(){return N===n?I:Le(oc())}function en(){var ut=oc(),Cn=Ee(ut);if(g=arguments,w=this,F=ut,Cn){if(N===n)return Te(F);if(X)return lS(N),N=Jo(Ne,l),ye(F)}return N===n&&(N=Jo(Ne,l)),I}return en.cancel=Qt,en.flush=Dt,en}var F8=Ie(function(s,l){return Bw(s,1,l)}),V8=Ie(function(s,l,f){return Bw(s,gn(l)||0,f)});function B8(s){return ar(s,V)}function ac(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new fn(a);var f=function(){var g=arguments,w=l?l.apply(this,g):g[0],O=f.cache;if(O.has(w))return O.get(w);var I=s.apply(this,g);return f.cache=O.set(w,I)||O,I};return f.cache=new(ac.Cache||sr),f}ac.Cache=sr;function lc(s){if(typeof s!="function")throw new fn(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function W8(s){return qS(2,s)}var U8=OF(function(s,l){l=l.length==1&&Me(l[0])?et(l[0],Xt(be())):et(bt(l,1),Xt(be()));var f=l.length;return Ie(function(g){for(var w=-1,O=At(g.length,f);++w<O;)g[w]=l[w].call(this,g[w]);return Kt(s,this,g)})}),bm=Ie(function(s,l){var f=Gr(l,Ls(bm));return ar(s,A,n,l,f)}),QS=Ie(function(s,l){var f=Gr(l,Ls(QS));return ar(s,D,n,l,f)}),z8=lr(function(s,l){return ar(s,j,n,n,n,l)});function G8(s,l){if(typeof s!="function")throw new fn(a);return l=l===n?l:Oe(l),Ie(s,l)}function Y8(s,l){if(typeof s!="function")throw new fn(a);return l=l==null?0:mt(Oe(l),0),Ie(function(f){var g=f[l],w=Xr(f,0,l);return g&&zr(w,g),Kt(s,this,w)})}function H8(s,l,f){var g=!0,w=!0;if(typeof s!="function")throw new fn(a);return st(f)&&(g="leading"in f?!!f.leading:g,w="trailing"in f?!!f.trailing:w),JS(s,l,{leading:g,maxWait:l,trailing:w})}function q8(s){return HS(s,1)}function K8(s,l){return bm(im(l),s)}function X8(){if(!arguments.length)return[];var s=arguments[0];return Me(s)?s:[s]}function Z8(s){return hn(s,v)}function J8(s,l){return l=typeof l=="function"?l:n,hn(s,v,l)}function Q8(s){return hn(s,m|v)}function eB(s,l){return l=typeof l=="function"?l:n,hn(s,m|v,l)}function tB(s,l){return l==null||Vw(s,l,gt(l))}function En(s,l){return s===l||s!==s&&l!==l}var nB=ec(Yh),rB=ec(function(s,l){return s>=l}),Li=Yw(function(){return arguments}())?Yw:function(s){return ot(s)&&ze.call(s,"callee")&&!$w.call(s,"callee")},Me=B.isArray,iB=hw?Xt(hw):dF;function Bt(s){return s!=null&&cc(s.length)&&!ur(s)}function ct(s){return ot(s)&&Bt(s)}function sB(s){return s===!0||s===!1||ot(s)&&It(s)==re}var Zr=xj||Im,oB=mw?Xt(mw):hF;function aB(s){return ot(s)&&s.nodeType===1&&!Qo(s)}function lB(s){if(s==null)return!0;if(Bt(s)&&(Me(s)||typeof s=="string"||typeof s.splice=="function"||Zr(s)||Rs(s)||Li(s)))return!s.length;var l=Mt(s);if(l==De||l==qt)return!s.size;if(Zo(s))return!Kh(s).length;for(var f in s)if(ze.call(s,f))return!1;return!0}function cB(s,l){return qo(s,l)}function uB(s,l,f){f=typeof f=="function"?f:n;var g=f?f(s,l):n;return g===n?qo(s,l,n,f):!!g}function wm(s){if(!ot(s))return!1;var l=It(s);return l==Ve||l==Ce||typeof s.message=="string"&&typeof s.name=="string"&&!Qo(s)}function fB(s){return typeof s=="number"&&Nw(s)}function ur(s){if(!st(s))return!1;var l=It(s);return l==ie||l==pe||l==oe||l==wl}function eT(s){return typeof s=="number"&&s==Oe(s)}function cc(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=W}function st(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function ot(s){return s!=null&&typeof s=="object"}var tT=pw?Xt(pw):pF;function dB(s,l){return s===l||qh(s,l,fm(l))}function hB(s,l,f){return f=typeof f=="function"?f:n,qh(s,l,fm(l),f)}function mB(s){return nT(s)&&s!=+s}function pB(s){if(JF(s))throw new Ae(o);return Hw(s)}function gB(s){return s===null}function yB(s){return s==null}function nT(s){return typeof s=="number"||ot(s)&&It(s)==ft}function Qo(s){if(!ot(s)||It(s)!=dt)return!1;var l=Ll(s);if(l===null)return!0;var f=ze.call(l,"constructor")&&l.constructor;return typeof f=="function"&&f instanceof f&&$l.call(f)==hj}var Sm=gw?Xt(gw):gF;function vB(s){return eT(s)&&s>=-9007199254740991&&s<=W}var rT=yw?Xt(yw):yF;function uc(s){return typeof s=="string"||!Me(s)&&ot(s)&&It(s)==bn}function Jt(s){return typeof s=="symbol"||ot(s)&&It(s)==Ai}var Rs=vw?Xt(vw):vF;function xB(s){return s===n}function bB(s){return ot(s)&&Mt(s)==Wr}function wB(s){return ot(s)&&It(s)==Tl}var SB=ec(Xh),TB=ec(function(s,l){return s<=l});function iT(s){if(!s)return[];if(Bt(s))return uc(s)?Sn(s):Vt(s);if(Vo&&s[Vo])return tj(s[Vo]());var l=Mt(s),f=l==De?Rh:l==qt?Ol:js;return f(s)}function fr(s){if(!s)return s===0?s:0;if(s=gn(s),s===G||s===-1/0){var l=s<0?-1:1;return l*Y}return s===s?s:0}function Oe(s){var l=fr(s),f=l%1;return l===l?f?l-f:l:0}function sT(s){return s?$i(Oe(s),0,k):0}function gn(s){if(typeof s=="number")return s;if(Jt(s))return M;if(st(s)){var l=typeof s.valueOf=="function"?s.valueOf():s;s=st(l)?l+"":l}if(typeof s!="string")return s===0?s:+s;s=Ew(s);var f=iR.test(s);return f||oR.test(s)?jR(s.slice(2),f?2:8):rR.test(s)?M:+s}function oT(s){return zn(s,Wt(s))}function EB(s){return s?$i(Oe(s),-9007199254740991,W):s===0?s:0}function Be(s){return s==null?"":Zt(s)}var CB=Ns(function(s,l){if(Zo(l)||Bt(l)){zn(l,gt(l),s);return}for(var f in l)ze.call(l,f)&&Go(s,f,l[f])}),aT=Ns(function(s,l){zn(l,Wt(l),s)}),fc=Ns(function(s,l,f,g){zn(l,Wt(l),s,g)}),PB=Ns(function(s,l,f,g){zn(l,gt(l),s,g)}),AB=lr(Uh);function MB(s,l){var f=Ds(s);return l==null?f:Fw(f,l)}var OB=Ie(function(s,l){s=Ye(s);var f=-1,g=l.length,w=g>2?l[2]:n;for(w&&$t(l[0],l[1],w)&&(g=1);++f<g;)for(var O=l[f],I=Wt(O),N=-1,F=I.length;++N<F;){var q=I[N],K=s[q];(K===n||En(K,_s[q])&&!ze.call(s,q))&&(s[q]=O[q])}return s}),_B=Ie(function(s){return s.push(n,ES),Kt(lT,n,s)});function IB(s,l){return bw(s,be(l,3),Un)}function $B(s,l){return bw(s,be(l,3),Gh)}function DB(s,l){return s==null?s:zh(s,be(l,3),Wt)}function NB(s,l){return s==null?s:zw(s,be(l,3),Wt)}function kB(s,l){return s&&Un(s,be(l,3))}function LB(s,l){return s&&Gh(s,be(l,3))}function RB(s){return s==null?[]:Yl(s,gt(s))}function jB(s){return s==null?[]:Yl(s,Wt(s))}function Tm(s,l,f){var g=s==null?n:Di(s,l);return g===n?f:g}function FB(s,l){return s!=null&&AS(s,l,lF)}function Em(s,l){return s!=null&&AS(s,l,cF)}var VB=xS(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=Dl.call(l)),s[l]=f},Pm(Ut)),BB=xS(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=Dl.call(l)),ze.call(s,l)?s[l].push(f):s[l]=[f]},be),WB=Ie(Ho);function gt(s){return Bt(s)?Rw(s):Kh(s)}function Wt(s){return Bt(s)?Rw(s,!0):xF(s)}function UB(s,l){var f={};return l=be(l,3),Un(s,function(g,w,O){or(f,l(g,w,O),g)}),f}function zB(s,l){var f={};return l=be(l,3),Un(s,function(g,w,O){or(f,w,l(g,w,O))}),f}var GB=Ns(function(s,l,f){Hl(s,l,f)}),lT=Ns(function(s,l,f,g){Hl(s,l,f,g)}),YB=lr(function(s,l){var f={};if(s==null)return f;var g=!1;l=et(l,function(O){return O=Kr(O,s),g||(g=O.length>1),O}),zn(s,cm(s),f),g&&(f=hn(f,m|p|v,VF));for(var w=l.length;w--;)tm(f,l[w]);return f});function HB(s,l){return cT(s,lc(be(l)))}var qB=lr(function(s,l){return s==null?{}:wF(s,l)});function cT(s,l){if(s==null)return{};var f=et(cm(s),function(g){return[g]});return l=be(l),eS(s,f,function(g,w){return l(g,w[0])})}function KB(s,l,f){l=Kr(l,s);var g=-1,w=l.length;for(w||(w=1,s=n);++g<w;){var O=s==null?n:s[Gn(l[g])];O===n&&(g=w,O=f),s=ur(O)?O.call(s):O}return s}function XB(s,l,f){return s==null?s:Ko(s,l,f)}function ZB(s,l,f,g){return g=typeof g=="function"?g:n,s==null?s:Ko(s,l,f,g)}var uT=SS(gt),fT=SS(Wt);function JB(s,l,f){var g=Me(s),w=g||Zr(s)||Rs(s);if(l=be(l,4),f==null){var O=s&&s.constructor;w?f=g?new O:[]:st(s)?f=ur(O)?Ds(Ll(s)):{}:f={}}return(w?un:Un)(s,function(I,N,F){return l(f,I,N,F)}),f}function QB(s,l){return s==null?!0:tm(s,l)}function e9(s,l,f){return s==null?s:sS(s,l,im(f))}function t9(s,l,f,g){return g=typeof g=="function"?g:n,s==null?s:sS(s,l,im(f),g)}function js(s){return s==null?[]:Lh(s,gt(s))}function n9(s){return s==null?[]:Lh(s,Wt(s))}function r9(s,l,f){return f===n&&(f=l,l=n),f!==n&&(f=gn(f),f=f===f?f:0),l!==n&&(l=gn(l),l=l===l?l:0),$i(gn(s),l,f)}function i9(s,l,f){return l=fr(l),f===n?(f=l,l=0):f=fr(f),s=gn(s),uF(s,l,f)}function s9(s,l,f){if(f&&typeof f!="boolean"&&$t(s,l,f)&&(l=f=n),f===n&&(typeof l=="boolean"?(f=l,l=n):typeof s=="boolean"&&(f=s,s=n)),s===n&&l===n?(s=0,l=1):(s=fr(s),l===n?(l=s,s=0):l=fr(l)),s>l){var g=s;s=l,l=g}if(f||s%1||l%1){var w=kw();return At(s+w*(l-s+RR("1e-"+((w+"").length-1))),l)}return Jh(s,l)}var o9=ks(function(s,l,f){return l=l.toLowerCase(),s+(f?dT(l):l)});function dT(s){return Cm(Be(s).toLowerCase())}function hT(s){return s=Be(s),s&&s.replace(lR,XR).replace(AR,"")}function a9(s,l,f){s=Be(s),l=Zt(l);var g=s.length;f=f===n?g:$i(Oe(f),0,g);var w=f;return f-=l.length,f>=0&&s.slice(f,w)==l}function l9(s){return s=Be(s),s&&WL.test(s)?s.replace(z2,ZR):s}function c9(s){return s=Be(s),s&&qL.test(s)?s.replace(bh,"\\$&"):s}var u9=ks(function(s,l,f){return s+(f?"-":"")+l.toLowerCase()}),f9=ks(function(s,l,f){return s+(f?" ":"")+l.toLowerCase()}),d9=gS("toLowerCase");function h9(s,l,f){s=Be(s),l=Oe(l);var g=l?Ms(s):0;if(!l||g>=l)return s;var w=(l-g)/2;return Ql(Vl(w),f)+s+Ql(Fl(w),f)}function m9(s,l,f){s=Be(s),l=Oe(l);var g=l?Ms(s):0;return l&&g<l?s+Ql(l-g,f):s}function p9(s,l,f){s=Be(s),l=Oe(l);var g=l?Ms(s):0;return l&&g<l?Ql(l-g,f)+s:s}function g9(s,l,f){return f||l==null?l=0:l&&(l=+l),Tj(Be(s).replace(wh,""),l||0)}function y9(s,l,f){return(f?$t(s,l,f):l===n)?l=1:l=Oe(l),Qh(Be(s),l)}function v9(){var s=arguments,l=Be(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var x9=ks(function(s,l,f){return s+(f?"_":"")+l.toLowerCase()});function b9(s,l,f){return f&&typeof f!="number"&&$t(s,l,f)&&(l=f=n),f=f===n?k:f>>>0,f?(s=Be(s),s&&(typeof l=="string"||l!=null&&!Sm(l))&&(l=Zt(l),!l&&As(s))?Xr(Sn(s),0,f):s.split(l,f)):[]}var w9=ks(function(s,l,f){return s+(f?" ":"")+Cm(l)});function S9(s,l,f){return s=Be(s),f=f==null?0:$i(Oe(f),0,s.length),l=Zt(l),s.slice(f,f+l.length)==l}function T9(s,l,f){var g=P.templateSettings;f&&$t(s,l,f)&&(l=n),s=Be(s),l=fc({},l,g,TS);var w=fc({},l.imports,g.imports,TS),O=gt(w),I=Lh(w,O),N,F,q=0,K=l.interpolate||El,X="__p += '",ce=jh((l.escape||El).source+"|"+K.source+"|"+(K===G2?nR:El).source+"|"+(l.evaluate||El).source+"|$","g"),ye="//# sourceURL="+(ze.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++$R+"]")+`
|
|
635
|
-
`;
|
|
634
|
+
`)}function kF(i){return Me(i)||Is(i)||!!(Cw&&i&&i[Cw])}function mr(i,l){var f=typeof i;return l=l??z,!!l&&(f=="number"||f!="symbol"&&Hj.test(i))&&i>-1&&i%1==0&&i<l}function It(i,l,f){if(!rt(f))return!1;var y=typeof l;return(y=="number"?Ft(f)&&mr(l,f.length):y=="string"&&l in f)?wn(f[l],i):!1}function op(i,l){if(Me(i))return!1;var f=typeof i;return f=="number"||f=="symbol"||f=="boolean"||i==null||Jt(i)?!0:Ij.test(i)||!_j.test(i)||l!=null&&i in Ge(l)}function jF(i){var l=typeof i;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?i!=="__proto__":i===null}function ap(i){var l=Jl(i),f=E[l];if(typeof f!="function"||!(l in ke.prototype))return!1;if(i===f)return!0;var y=rp(f);return!!y&&i===y[0]}function LF(i){return!!bw&&bw in i}var RF=Ml?gr:Cp;function Yo(i){var l=i&&i.constructor,f=typeof l=="function"&&l.prototype||Ei;return i===f}function bS(i){return i===i&&!rt(i)}function wS(i,l){return function(f){return f==null?!1:f[i]===l&&(l!==n||i in Ge(f))}}function FF(i){var l=sc(i,function(y){return f.size===d&&f.clear(),y}),f=l.cache;return l}function VF(i,l){var f=i[1],y=l[1],w=f|y,M=w<(T|v|R),_=y==R&&f==C||y==R&&f==F&&i[7].length<=l[8]||y==(R|F)&&l[7].length<=l[8]&&f==C;if(!(M||_))return i;y&T&&(i[2]=l[2],w|=f&T?0:A);var N=l[3];if(N){var L=i[3];i[3]=L?rS(L,N,l[4]):N,i[4]=L?zr(i[3],h):l[4]}return N=l[5],N&&(L=i[5],i[5]=L?sS(L,N,l[6]):N,i[6]=L?zr(i[5],h):l[6]),N=l[7],N&&(i[7]=N),y&R&&(i[8]=i[8]==null?l[8]:At(i[8],l[8])),i[9]==null&&(i[9]=l[9]),i[0]=l[0],i[1]=w,i}function BF(i){var l=[];if(i!=null)for(var f in Ge(i))l.push(f);return l}function WF(i){return $l.call(i)}function SS(i,l,f){return l=pt(l===n?i.length-1:l,0),function(){for(var y=arguments,w=-1,M=pt(y.length-l,0),_=V(M);++w<M;)_[w]=y[l+w];w=-1;for(var N=V(l+1);++w<l;)N[w]=y[w];return N[l]=f(_),Kt(i,this,N)}}function TS(i,l){return l.length<2?i:Os(i,dn(l,0,-1))}function UF(i,l){for(var f=i.length,y=At(l.length,f),w=Rt(i);y--;){var M=l[y];i[y]=mr(M,f)?w[M]:n}return i}function lp(i,l){if(!(l==="constructor"&&typeof i[l]=="function")&&l!="__proto__")return i[l]}var CS=PS(Hw),Ho=sR||function(i,l){return vt.setTimeout(i,l)},cp=PS(dF);function ES(i,l,f){var y=l+"";return cp(i,NF(y,zF(_F(y),f)))}function PS(i){var l=0,f=0;return function(){var y=lR(),w=ge-(y-f);if(f=y,w>0){if(++l>=ae)return arguments[0]}else l=0;return i.apply(n,arguments)}}function ec(i,l){var f=-1,y=i.length,w=y-1;for(l=l===n?y:l;++f<l;){var M=Gh(f,w),_=i[M];i[M]=i[f],i[f]=_}return i.length=l,i}var AS=FF(function(i){var l=[];return i.charCodeAt(0)===46&&l.push(""),i.replace(Dj,function(f,y,w,M){l.push(w?M.replace(Bj,"$1"):y||f)}),l});function Wn(i){if(typeof i=="string"||Jt(i))return i;var l=i+"";return l=="0"&&1/i==-1/0?"-0":l}function _s(i){if(i!=null){try{return Ol.call(i)}catch{}try{return i+""}catch{}}return""}function zF(i,l){return ln(re,function(f){var y="_."+f[0];l&f[1]&&!Cl(i,y)&&i.push(y)}),i.sort()}function MS(i){if(i instanceof ke)return i.clone();var l=new un(i.__wrapped__,i.__chain__);return l.__actions__=Rt(i.__actions__),l.__index__=i.__index__,l.__values__=i.__values__,l}function GF(i,l,f){(f?It(i,l,f):l===n)?l=1:l=pt(Oe(l),0);var y=i==null?0:i.length;if(!y||l<1)return[];for(var w=0,M=0,_=V(jl(y/l));w<y;)_[M++]=dn(i,w,w+=l);return _}function YF(i){for(var l=-1,f=i==null?0:i.length,y=0,w=[];++l<f;){var M=i[l];M&&(w[y++]=M)}return w}function HF(){var i=arguments.length;if(!i)return[];for(var l=V(i-1),f=arguments[0],y=i;y--;)l[y-1]=arguments[y];return Ur(Me(f)?Rt(f):[f],bt(l,1))}var qF=_e(function(i,l){return ct(i)?Bo(i,bt(l,1,ct,!0)):[]}),KF=_e(function(i,l){var f=hn(l);return ct(f)&&(f=n),ct(i)?Bo(i,bt(l,1,ct,!0),be(f,2)):[]}),XF=_e(function(i,l){var f=hn(l);return ct(f)&&(f=n),ct(i)?Bo(i,bt(l,1,ct,!0),n,f):[]});function ZF(i,l,f){var y=i==null?0:i.length;return y?(l=f||l===n?1:Oe(l),dn(i,l<0?0:l,y)):[]}function JF(i,l,f){var y=i==null?0:i.length;return y?(l=f||l===n?1:Oe(l),l=y-l,dn(i,0,l<0?0:l)):[]}function QF(i,l){return i&&i.length?Yl(i,be(l,3),!0,!0):[]}function e8(i,l){return i&&i.length?Yl(i,be(l,3),!0):[]}function t8(i,l,f,y){var w=i==null?0:i.length;return w?(f&&typeof f!="number"&&It(i,l,f)&&(f=0,y=w),HR(i,l,f,y)):[]}function OS(i,l,f){var y=i==null?0:i.length;if(!y)return-1;var w=f==null?0:Oe(f);return w<0&&(w=pt(y+w,0)),El(i,be(l,3),w)}function $S(i,l,f){var y=i==null?0:i.length;if(!y)return-1;var w=y-1;return f!==n&&(w=Oe(f),w=f<0?pt(y+w,0):At(w,y-1)),El(i,be(l,3),w,!0)}function _S(i){var l=i==null?0:i.length;return l?bt(i,1):[]}function n8(i){var l=i==null?0:i.length;return l?bt(i,Y):[]}function r8(i,l){var f=i==null?0:i.length;return f?(l=l===n?1:Oe(l),bt(i,l)):[]}function s8(i){for(var l=-1,f=i==null?0:i.length,y={};++l<f;){var w=i[l];y[w[0]]=w[1]}return y}function IS(i){return i&&i.length?i[0]:n}function i8(i,l,f){var y=i==null?0:i.length;if(!y)return-1;var w=f==null?0:Oe(f);return w<0&&(w=pt(y+w,0)),wi(i,l,w)}function o8(i){var l=i==null?0:i.length;return l?dn(i,0,-1):[]}var a8=_e(function(i){var l=Je(i,Xh);return l.length&&l[0]===i[0]?Vh(l):[]}),l8=_e(function(i){var l=hn(i),f=Je(i,Xh);return l===hn(f)?l=n:f.pop(),f.length&&f[0]===i[0]?Vh(f,be(l,2)):[]}),c8=_e(function(i){var l=hn(i),f=Je(i,Xh);return l=typeof l=="function"?l:n,l&&f.pop(),f.length&&f[0]===i[0]?Vh(f,n,l):[]});function u8(i,l){return i==null?"":oR.call(i,l)}function hn(i){var l=i==null?0:i.length;return l?i[l-1]:n}function f8(i,l,f){var y=i==null?0:i.length;if(!y)return-1;var w=y;return f!==n&&(w=Oe(f),w=w<0?pt(y+w,0):At(w,y-1)),l===l?zL(i,l,w):El(i,dw,w,!0)}function d8(i,l){return i&&i.length?Uw(i,Oe(l)):n}var h8=_e(DS);function DS(i,l){return i&&i.length&&l&&l.length?zh(i,l):i}function p8(i,l,f){return i&&i.length&&l&&l.length?zh(i,l,be(f,2)):i}function m8(i,l,f){return i&&i.length&&l&&l.length?zh(i,l,n,f):i}var g8=pr(function(i,l){var f=i==null?0:i.length,y=jh(i,l);return Yw(i,Je(l,function(w){return mr(w,f)?+w:w}).sort(nS)),y});function y8(i,l){var f=[];if(!(i&&i.length))return f;var y=-1,w=[],M=i.length;for(l=be(l,3);++y<M;){var _=i[y];l(_,y,i)&&(f.push(_),w.push(y))}return Yw(i,w),f}function up(i){return i==null?i:uR.call(i)}function x8(i,l,f){var y=i==null?0:i.length;return y?(f&&typeof f!="number"&&It(i,l,f)?(l=0,f=y):(l=l==null?0:Oe(l),f=f===n?y:Oe(f)),dn(i,l,f)):[]}function v8(i,l){return Gl(i,l)}function b8(i,l,f){return Hh(i,l,be(f,2))}function w8(i,l){var f=i==null?0:i.length;if(f){var y=Gl(i,l);if(y<f&&wn(i[y],l))return y}return-1}function S8(i,l){return Gl(i,l,!0)}function T8(i,l,f){return Hh(i,l,be(f,2),!0)}function C8(i,l){var f=i==null?0:i.length;if(f){var y=Gl(i,l,!0)-1;if(wn(i[y],l))return y}return-1}function E8(i){return i&&i.length?qw(i):[]}function P8(i,l){return i&&i.length?qw(i,be(l,2)):[]}function A8(i){var l=i==null?0:i.length;return l?dn(i,1,l):[]}function M8(i,l,f){return i&&i.length?(l=f||l===n?1:Oe(l),dn(i,0,l<0?0:l)):[]}function O8(i,l,f){var y=i==null?0:i.length;return y?(l=f||l===n?1:Oe(l),l=y-l,dn(i,l<0?0:l,y)):[]}function $8(i,l){return i&&i.length?Yl(i,be(l,3),!1,!0):[]}function _8(i,l){return i&&i.length?Yl(i,be(l,3)):[]}var I8=_e(function(i){return Hr(bt(i,1,ct,!0))}),D8=_e(function(i){var l=hn(i);return ct(l)&&(l=n),Hr(bt(i,1,ct,!0),be(l,2))}),N8=_e(function(i){var l=hn(i);return l=typeof l=="function"?l:n,Hr(bt(i,1,ct,!0),n,l)});function k8(i){return i&&i.length?Hr(i):[]}function j8(i,l){return i&&i.length?Hr(i,be(l,2)):[]}function L8(i,l){return l=typeof l=="function"?l:n,i&&i.length?Hr(i,n,l):[]}function fp(i){if(!(i&&i.length))return[];var l=0;return i=Wr(i,function(f){if(ct(f))return l=pt(f.length,l),!0}),Mh(l,function(f){return Je(i,Eh(f))})}function NS(i,l){if(!(i&&i.length))return[];var f=fp(i);return l==null?f:Je(f,function(y){return Kt(l,n,y)})}var R8=_e(function(i,l){return ct(i)?Bo(i,l):[]}),F8=_e(function(i){return Kh(Wr(i,ct))}),V8=_e(function(i){var l=hn(i);return ct(l)&&(l=n),Kh(Wr(i,ct),be(l,2))}),B8=_e(function(i){var l=hn(i);return l=typeof l=="function"?l:n,Kh(Wr(i,ct),n,l)}),W8=_e(fp);function U8(i,l){return Jw(i||[],l||[],Vo)}function z8(i,l){return Jw(i||[],l||[],zo)}var G8=_e(function(i){var l=i.length,f=l>1?i[l-1]:n;return f=typeof f=="function"?(i.pop(),f):n,NS(i,f)});function kS(i){var l=E(i);return l.__chain__=!0,l}function Y8(i,l){return l(i),i}function tc(i,l){return l(i)}var H8=pr(function(i){var l=i.length,f=l?i[0]:0,y=this.__wrapped__,w=function(M){return jh(M,i)};return l>1||this.__actions__.length||!(y instanceof ke)||!mr(f)?this.thru(w):(y=y.slice(f,+f+(l?1:0)),y.__actions__.push({func:tc,args:[w],thisArg:n}),new un(y,this.__chain__).thru(function(M){return l&&!M.length&&M.push(n),M}))});function q8(){return kS(this)}function K8(){return new un(this.value(),this.__chain__)}function X8(){this.__values__===n&&(this.__values__=KS(this.value()));var i=this.__index__>=this.__values__.length,l=i?n:this.__values__[this.__index__++];return{done:i,value:l}}function Z8(){return this}function J8(i){for(var l,f=this;f instanceof Vl;){var y=MS(f);y.__index__=0,y.__values__=n,l?w.__wrapped__=y:l=y;var w=y;f=f.__wrapped__}return w.__wrapped__=i,l}function Q8(){var i=this.__wrapped__;if(i instanceof ke){var l=i;return this.__actions__.length&&(l=new ke(this)),l=l.reverse(),l.__actions__.push({func:tc,args:[up],thisArg:n}),new un(l,this.__chain__)}return this.thru(up)}function eV(){return Zw(this.__wrapped__,this.__actions__)}var tV=Hl(function(i,l,f){ze.call(i,f)?++i[f]:dr(i,f,1)});function nV(i,l,f){var y=Me(i)?uw:YR;return f&&It(i,l,f)&&(l=n),y(i,be(l,3))}function rV(i,l){var f=Me(i)?Wr:Nw;return f(i,be(l,3))}var sV=lS(OS),iV=lS($S);function oV(i,l){return bt(nc(i,l),1)}function aV(i,l){return bt(nc(i,l),Y)}function lV(i,l,f){return f=f===n?1:Oe(f),bt(nc(i,l),f)}function jS(i,l){var f=Me(i)?ln:Yr;return f(i,be(l,3))}function LS(i,l){var f=Me(i)?AL:Dw;return f(i,be(l,3))}var cV=Hl(function(i,l,f){ze.call(i,f)?i[f].push(l):dr(i,f,[l])});function uV(i,l,f,y){i=Ft(i)?i:Di(i),f=f&&!y?Oe(f):0;var w=i.length;return f<0&&(f=pt(w+f,0)),ac(i)?f<=w&&i.indexOf(l,f)>-1:!!w&&wi(i,l,f)>-1}var fV=_e(function(i,l,f){var y=-1,w=typeof l=="function",M=Ft(i)?V(i.length):[];return Yr(i,function(_){M[++y]=w?Kt(l,_,f):Wo(_,l,f)}),M}),dV=Hl(function(i,l,f){dr(i,f,l)});function nc(i,l){var f=Me(i)?Je:Vw;return f(i,be(l,3))}function hV(i,l,f,y){return i==null?[]:(Me(l)||(l=l==null?[]:[l]),f=y?n:f,Me(f)||(f=f==null?[]:[f]),zw(i,l,f))}var pV=Hl(function(i,l,f){i[f?0:1].push(l)},function(){return[[],[]]});function mV(i,l,f){var y=Me(i)?Th:pw,w=arguments.length<3;return y(i,be(l,4),f,w,Yr)}function gV(i,l,f){var y=Me(i)?ML:pw,w=arguments.length<3;return y(i,be(l,4),f,w,Dw)}function yV(i,l){var f=Me(i)?Wr:Nw;return f(i,ic(be(l,3)))}function xV(i){var l=Me(i)?Ow:uF;return l(i)}function vV(i,l,f){(f?It(i,l,f):l===n)?l=1:l=Oe(l);var y=Me(i)?BR:fF;return y(i,l)}function bV(i){var l=Me(i)?WR:hF;return l(i)}function wV(i){if(i==null)return 0;if(Ft(i))return ac(i)?Ti(i):i.length;var l=Mt(i);return l==De||l==qt?i.size:Wh(i).length}function SV(i,l,f){var y=Me(i)?Ch:pF;return f&&It(i,l,f)&&(l=n),y(i,be(l,3))}var TV=_e(function(i,l){if(i==null)return[];var f=l.length;return f>1&&It(i,l[0],l[1])?l=[]:f>2&&It(l[0],l[1],l[2])&&(l=[l[0]]),zw(i,bt(l,1),[])}),rc=rR||function(){return vt.Date.now()};function CV(i,l){if(typeof l!="function")throw new cn(a);return i=Oe(i),function(){if(--i<1)return l.apply(this,arguments)}}function RS(i,l,f){return l=f?n:l,l=i&&l==null?i.length:l,hr(i,R,n,n,n,n,l)}function FS(i,l){var f;if(typeof l!="function")throw new cn(a);return i=Oe(i),function(){return--i>0&&(f=l.apply(this,arguments)),i<=1&&(l=n),f}}var dp=_e(function(i,l,f){var y=T;if(f.length){var w=zr(f,_i(dp));y|=P}return hr(i,y,l,f,w)}),VS=_e(function(i,l,f){var y=T|v;if(f.length){var w=zr(f,_i(VS));y|=P}return hr(l,y,i,f,w)});function BS(i,l,f){l=f?n:l;var y=hr(i,C,n,n,n,n,n,l);return y.placeholder=BS.placeholder,y}function WS(i,l,f){l=f?n:l;var y=hr(i,I,n,n,n,n,n,l);return y.placeholder=WS.placeholder,y}function US(i,l,f){var y,w,M,_,N,L,H=0,q=!1,Z=!1,ce=!0;if(typeof i!="function")throw new cn(a);l=pn(l)||0,rt(f)&&(q=!!f.leading,Z="maxWait"in f,M=Z?pt(pn(f.maxWait)||0,l):M,ce="trailing"in f?!!f.trailing:ce);function ye(ut){var Sn=y,xr=w;return y=w=n,H=ut,_=i.apply(xr,Sn),_}function Te(ut){return H=ut,N=Ho(Ne,l),q?ye(ut):_}function $e(ut){var Sn=ut-L,xr=ut-H,lT=l-Sn;return Z?At(lT,M-xr):lT}function Ce(ut){var Sn=ut-L,xr=ut-H;return L===n||Sn>=l||Sn<0||Z&&xr>=M}function Ne(){var ut=rc();if(Ce(ut))return je(ut);N=Ho(Ne,$e(ut))}function je(ut){return N=n,ce&&y?ye(ut):(y=w=n,_)}function Qt(){N!==n&&Qw(N),H=0,y=L=w=N=n}function Dt(){return N===n?_:je(rc())}function en(){var ut=rc(),Sn=Ce(ut);if(y=arguments,w=this,L=ut,Sn){if(N===n)return Te(L);if(Z)return Qw(N),N=Ho(Ne,l),ye(L)}return N===n&&(N=Ho(Ne,l)),_}return en.cancel=Qt,en.flush=Dt,en}var EV=_e(function(i,l){return Iw(i,1,l)}),PV=_e(function(i,l,f){return Iw(i,pn(l)||0,f)});function AV(i){return hr(i,W)}function sc(i,l){if(typeof i!="function"||l!=null&&typeof l!="function")throw new cn(a);var f=function(){var y=arguments,w=l?l.apply(this,y):y[0],M=f.cache;if(M.has(w))return M.get(w);var _=i.apply(this,y);return f.cache=M.set(w,_)||M,_};return f.cache=new(sc.Cache||fr),f}sc.Cache=fr;function ic(i){if(typeof i!="function")throw new cn(a);return function(){var l=arguments;switch(l.length){case 0:return!i.call(this);case 1:return!i.call(this,l[0]);case 2:return!i.call(this,l[0],l[1]);case 3:return!i.call(this,l[0],l[1],l[2])}return!i.apply(this,l)}}function MV(i){return FS(2,i)}var OV=mF(function(i,l){l=l.length==1&&Me(l[0])?Je(l[0],Xt(be())):Je(bt(l,1),Xt(be()));var f=l.length;return _e(function(y){for(var w=-1,M=At(y.length,f);++w<M;)y[w]=l[w].call(this,y[w]);return Kt(i,this,y)})}),hp=_e(function(i,l){var f=zr(l,_i(hp));return hr(i,P,n,l,f)}),zS=_e(function(i,l){var f=zr(l,_i(zS));return hr(i,D,n,l,f)}),$V=pr(function(i,l){return hr(i,F,n,n,n,l)});function _V(i,l){if(typeof i!="function")throw new cn(a);return l=l===n?l:Oe(l),_e(i,l)}function IV(i,l){if(typeof i!="function")throw new cn(a);return l=l==null?0:pt(Oe(l),0),_e(function(f){var y=f[l],w=Kr(f,0,l);return y&&Ur(w,y),Kt(i,this,w)})}function DV(i,l,f){var y=!0,w=!0;if(typeof i!="function")throw new cn(a);return rt(f)&&(y="leading"in f?!!f.leading:y,w="trailing"in f?!!f.trailing:w),US(i,l,{leading:y,maxWait:l,trailing:w})}function NV(i){return RS(i,1)}function kV(i,l){return hp(Zh(l),i)}function jV(){if(!arguments.length)return[];var i=arguments[0];return Me(i)?i:[i]}function LV(i){return fn(i,x)}function RV(i,l){return l=typeof l=="function"?l:n,fn(i,x,l)}function FV(i){return fn(i,p|x)}function VV(i,l){return l=typeof l=="function"?l:n,fn(i,p|x,l)}function BV(i,l){return l==null||_w(i,l,gt(l))}function wn(i,l){return i===l||i!==i&&l!==l}var WV=Zl(Fh),UV=Zl(function(i,l){return i>=l}),Is=Lw(function(){return arguments}())?Lw:function(i){return ot(i)&&ze.call(i,"callee")&&!Tw.call(i,"callee")},Me=V.isArray,zV=sw?Xt(sw):JR;function Ft(i){return i!=null&&oc(i.length)&&!gr(i)}function ct(i){return ot(i)&&Ft(i)}function GV(i){return i===!0||i===!1||ot(i)&&_t(i)==se}var Xr=iR||Cp,YV=iw?Xt(iw):QR;function HV(i){return ot(i)&&i.nodeType===1&&!qo(i)}function qV(i){if(i==null)return!0;if(Ft(i)&&(Me(i)||typeof i=="string"||typeof i.splice=="function"||Xr(i)||Ii(i)||Is(i)))return!i.length;var l=Mt(i);if(l==De||l==qt)return!i.size;if(Yo(i))return!Wh(i).length;for(var f in i)if(ze.call(i,f))return!1;return!0}function KV(i,l){return Uo(i,l)}function XV(i,l,f){f=typeof f=="function"?f:n;var y=f?f(i,l):n;return y===n?Uo(i,l,n,f):!!y}function pp(i){if(!ot(i))return!1;var l=_t(i);return l==Ve||l==Ee||typeof i.message=="string"&&typeof i.name=="string"&&!qo(i)}function ZV(i){return typeof i=="number"&&Ew(i)}function gr(i){if(!rt(i))return!1;var l=_t(i);return l==ie||l==me||l==oe||l==xl}function GS(i){return typeof i=="number"&&i==Oe(i)}function oc(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=z}function rt(i){var l=typeof i;return i!=null&&(l=="object"||l=="function")}function ot(i){return i!=null&&typeof i=="object"}var YS=ow?Xt(ow):tF;function JV(i,l){return i===l||Bh(i,l,sp(l))}function QV(i,l,f){return f=typeof f=="function"?f:n,Bh(i,l,sp(l),f)}function e9(i){return HS(i)&&i!=+i}function t9(i){if(RF(i))throw new Ae(o);return Rw(i)}function n9(i){return i===null}function r9(i){return i==null}function HS(i){return typeof i=="number"||ot(i)&&_t(i)==ft}function qo(i){if(!ot(i)||_t(i)!=dt)return!1;var l=Dl(i);if(l===null)return!0;var f=ze.call(l,"constructor")&&l.constructor;return typeof f=="function"&&f instanceof f&&Ol.call(f)==QL}var mp=aw?Xt(aw):nF;function s9(i){return GS(i)&&i>=-9007199254740991&&i<=z}var qS=lw?Xt(lw):rF;function ac(i){return typeof i=="string"||!Me(i)&&ot(i)&&_t(i)==yn}function Jt(i){return typeof i=="symbol"||ot(i)&&_t(i)==Ts}var Ii=cw?Xt(cw):sF;function i9(i){return i===n}function o9(i){return ot(i)&&Mt(i)==Br}function a9(i){return ot(i)&&_t(i)==bl}var l9=Zl(Uh),c9=Zl(function(i,l){return i<=l});function KS(i){if(!i)return[];if(Ft(i))return ac(i)?vn(i):Rt(i);if(ko&&i[ko])return BL(i[ko]());var l=Mt(i),f=l==De?$h:l==qt?Pl:Di;return f(i)}function yr(i){if(!i)return i===0?i:0;if(i=pn(i),i===Y||i===-1/0){var l=i<0?-1:1;return l*K}return i===i?i:0}function Oe(i){var l=yr(i),f=l%1;return l===l?f?l-f:l:0}function XS(i){return i?Ms(Oe(i),0,k):0}function pn(i){if(typeof i=="number")return i;if(Jt(i))return $;if(rt(i)){var l=typeof i.valueOf=="function"?i.valueOf():i;i=rt(l)?l+"":l}if(typeof i!="string")return i===0?i:+i;i=mw(i);var f=zj.test(i);return f||Yj.test(i)?CL(i.slice(2),f?2:8):Uj.test(i)?$:+i}function ZS(i){return Bn(i,Vt(i))}function u9(i){return i?Ms(Oe(i),-9007199254740991,z):i===0?i:0}function Be(i){return i==null?"":Zt(i)}var f9=Oi(function(i,l){if(Yo(l)||Ft(l)){Bn(l,gt(l),i);return}for(var f in l)ze.call(l,f)&&Vo(i,f,l[f])}),JS=Oi(function(i,l){Bn(l,Vt(l),i)}),lc=Oi(function(i,l,f,y){Bn(l,Vt(l),i,y)}),d9=Oi(function(i,l,f,y){Bn(l,gt(l),i,y)}),h9=pr(jh);function p9(i,l){var f=Mi(i);return l==null?f:$w(f,l)}var m9=_e(function(i,l){i=Ge(i);var f=-1,y=l.length,w=y>2?l[2]:n;for(w&&It(l[0],l[1],w)&&(y=1);++f<y;)for(var M=l[f],_=Vt(M),N=-1,L=_.length;++N<L;){var H=_[N],q=i[H];(q===n||wn(q,Ei[H])&&!ze.call(i,H))&&(i[H]=M[H])}return i}),g9=_e(function(i){return i.push(n,mS),Kt(QS,n,i)});function y9(i,l){return fw(i,be(l,3),Vn)}function x9(i,l){return fw(i,be(l,3),Rh)}function v9(i,l){return i==null?i:Lh(i,be(l,3),Vt)}function b9(i,l){return i==null?i:kw(i,be(l,3),Vt)}function w9(i,l){return i&&Vn(i,be(l,3))}function S9(i,l){return i&&Rh(i,be(l,3))}function T9(i){return i==null?[]:Ul(i,gt(i))}function C9(i){return i==null?[]:Ul(i,Vt(i))}function gp(i,l,f){var y=i==null?n:Os(i,l);return y===n?f:y}function E9(i,l){return i!=null&&xS(i,l,qR)}function yp(i,l){return i!=null&&xS(i,l,KR)}var P9=uS(function(i,l,f){l!=null&&typeof l.toString!="function"&&(l=$l.call(l)),i[l]=f},vp(Bt)),A9=uS(function(i,l,f){l!=null&&typeof l.toString!="function"&&(l=$l.call(l)),ze.call(i,l)?i[l].push(f):i[l]=[f]},be),M9=_e(Wo);function gt(i){return Ft(i)?Mw(i):Wh(i)}function Vt(i){return Ft(i)?Mw(i,!0):iF(i)}function O9(i,l){var f={};return l=be(l,3),Vn(i,function(y,w,M){dr(f,l(y,w,M),y)}),f}function $9(i,l){var f={};return l=be(l,3),Vn(i,function(y,w,M){dr(f,w,l(y,w,M))}),f}var _9=Oi(function(i,l,f){zl(i,l,f)}),QS=Oi(function(i,l,f,y){zl(i,l,f,y)}),I9=pr(function(i,l){var f={};if(i==null)return f;var y=!1;l=Je(l,function(M){return M=qr(M,i),y||(y=M.length>1),M}),Bn(i,np(i),f),y&&(f=fn(f,p|m|x,PF));for(var w=l.length;w--;)qh(f,l[w]);return f});function D9(i,l){return eT(i,ic(be(l)))}var N9=pr(function(i,l){return i==null?{}:aF(i,l)});function eT(i,l){if(i==null)return{};var f=Je(np(i),function(y){return[y]});return l=be(l),Gw(i,f,function(y,w){return l(y,w[0])})}function k9(i,l,f){l=qr(l,i);var y=-1,w=l.length;for(w||(w=1,i=n);++y<w;){var M=i==null?n:i[Wn(l[y])];M===n&&(y=w,M=f),i=gr(M)?M.call(i):M}return i}function j9(i,l,f){return i==null?i:zo(i,l,f)}function L9(i,l,f,y){return y=typeof y=="function"?y:n,i==null?i:zo(i,l,f,y)}var tT=hS(gt),nT=hS(Vt);function R9(i,l,f){var y=Me(i),w=y||Xr(i)||Ii(i);if(l=be(l,4),f==null){var M=i&&i.constructor;w?f=y?new M:[]:rt(i)?f=gr(M)?Mi(Dl(i)):{}:f={}}return(w?ln:Vn)(i,function(_,N,L){return l(f,_,N,L)}),f}function F9(i,l){return i==null?!0:qh(i,l)}function V9(i,l,f){return i==null?i:Xw(i,l,Zh(f))}function B9(i,l,f,y){return y=typeof y=="function"?y:n,i==null?i:Xw(i,l,Zh(f),y)}function Di(i){return i==null?[]:Oh(i,gt(i))}function W9(i){return i==null?[]:Oh(i,Vt(i))}function U9(i,l,f){return f===n&&(f=l,l=n),f!==n&&(f=pn(f),f=f===f?f:0),l!==n&&(l=pn(l),l=l===l?l:0),Ms(pn(i),l,f)}function z9(i,l,f){return l=yr(l),f===n?(f=l,l=0):f=yr(f),i=pn(i),XR(i,l,f)}function G9(i,l,f){if(f&&typeof f!="boolean"&&It(i,l,f)&&(l=f=n),f===n&&(typeof l=="boolean"?(f=l,l=n):typeof i=="boolean"&&(f=i,i=n)),i===n&&l===n?(i=0,l=1):(i=yr(i),l===n?(l=i,i=0):l=yr(l)),i>l){var y=i;i=l,l=y}if(f||i%1||l%1){var w=Pw();return At(i+w*(l-i+TL("1e-"+((w+"").length-1))),l)}return Gh(i,l)}var Y9=$i(function(i,l,f){return l=l.toLowerCase(),i+(f?rT(l):l)});function rT(i){return xp(Be(i).toLowerCase())}function sT(i){return i=Be(i),i&&i.replace(qj,jL).replace(hL,"")}function H9(i,l,f){i=Be(i),l=Zt(l);var y=i.length;f=f===n?y:Ms(Oe(f),0,y);var w=f;return f-=l.length,f>=0&&i.slice(f,w)==l}function q9(i){return i=Be(i),i&&Mj.test(i)?i.replace(k2,LL):i}function K9(i){return i=Be(i),i&&Nj.test(i)?i.replace(hh,"\\$&"):i}var X9=$i(function(i,l,f){return i+(f?"-":"")+l.toLowerCase()}),Z9=$i(function(i,l,f){return i+(f?" ":"")+l.toLowerCase()}),J9=aS("toLowerCase");function Q9(i,l,f){i=Be(i),l=Oe(l);var y=l?Ti(i):0;if(!l||y>=l)return i;var w=(l-y)/2;return Xl(Ll(w),f)+i+Xl(jl(w),f)}function eB(i,l,f){i=Be(i),l=Oe(l);var y=l?Ti(i):0;return l&&y<l?i+Xl(l-y,f):i}function tB(i,l,f){i=Be(i),l=Oe(l);var y=l?Ti(i):0;return l&&y<l?Xl(l-y,f)+i:i}function nB(i,l,f){return f||l==null?l=0:l&&(l=+l),cR(Be(i).replace(ph,""),l||0)}function rB(i,l,f){return(f?It(i,l,f):l===n)?l=1:l=Oe(l),Yh(Be(i),l)}function sB(){var i=arguments,l=Be(i[0]);return i.length<3?l:l.replace(i[1],i[2])}var iB=$i(function(i,l,f){return i+(f?"_":"")+l.toLowerCase()});function oB(i,l,f){return f&&typeof f!="number"&&It(i,l,f)&&(l=f=n),f=f===n?k:f>>>0,f?(i=Be(i),i&&(typeof l=="string"||l!=null&&!mp(l))&&(l=Zt(l),!l&&Si(i))?Kr(vn(i),0,f):i.split(l,f)):[]}var aB=$i(function(i,l,f){return i+(f?" ":"")+xp(l)});function lB(i,l,f){return i=Be(i),f=f==null?0:Ms(Oe(f),0,i.length),l=Zt(l),i.slice(f,f+l.length)==l}function cB(i,l,f){var y=E.templateSettings;f&&It(i,l,f)&&(l=n),i=Be(i),l=lc({},l,y,pS);var w=lc({},l.imports,y.imports,pS),M=gt(w),_=Oh(w,M),N,L,H=0,q=l.interpolate||wl,Z="__p += '",ce=_h((l.escape||wl).source+"|"+q.source+"|"+(q===j2?Wj:wl).source+"|"+(l.evaluate||wl).source+"|$","g"),ye="//# sourceURL="+(ze.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++xL+"]")+`
|
|
635
|
+
`;i.replace(ce,function(Ce,Ne,je,Qt,Dt,en){return je||(je=Qt),Z+=i.slice(H,en).replace(Kj,RL),Ne&&(N=!0,Z+=`' +
|
|
636
636
|
__e(`+Ne+`) +
|
|
637
|
-
'`),Dt&&(
|
|
637
|
+
'`),Dt&&(L=!0,Z+=`';
|
|
638
638
|
`+Dt+`;
|
|
639
|
-
__p += '`),
|
|
640
|
-
((__t = (`+
|
|
641
|
-
'`),
|
|
642
|
-
`;var Te=ze.call(l,"variable")&&l.variable;if(!Te)
|
|
643
|
-
`+
|
|
639
|
+
__p += '`),je&&(Z+=`' +
|
|
640
|
+
((__t = (`+je+`)) == null ? '' : __t) +
|
|
641
|
+
'`),H=en+Ce.length,Ce}),Z+=`';
|
|
642
|
+
`;var Te=ze.call(l,"variable")&&l.variable;if(!Te)Z=`with (obj) {
|
|
643
|
+
`+Z+`
|
|
644
644
|
}
|
|
645
|
-
`;else if(
|
|
645
|
+
`;else if(Vj.test(Te))throw new Ae(c);Z=(L?Z.replace(Cj,""):Z).replace(Ej,"$1").replace(Pj,"$1;"),Z="function("+(Te||"obj")+`) {
|
|
646
646
|
`+(Te?"":`obj || (obj = {});
|
|
647
|
-
`)+"var __t, __p = ''"+(N?", __e = _.escape":"")+(
|
|
647
|
+
`)+"var __t, __p = ''"+(N?", __e = _.escape":"")+(L?`, __j = Array.prototype.join;
|
|
648
648
|
function print() { __p += __j.call(arguments, '') }
|
|
649
649
|
`:`;
|
|
650
|
-
`)+
|
|
651
|
-
}`;var _e=pT(function(){return Re(O,ye+"return "+X).apply(n,I)});if(_e.source=X,wm(_e))throw _e;return _e}function E9(s){return Be(s).toLowerCase()}function C9(s){return Be(s).toUpperCase()}function P9(s,l,f){if(s=Be(s),s&&(f||l===n))return Ew(s);if(!s||!(l=Zt(l)))return s;var g=Sn(s),w=Sn(l),O=Cw(g,w),I=Pw(g,w)+1;return Xr(g,O,I).join("")}function A9(s,l,f){if(s=Be(s),s&&(f||l===n))return s.slice(0,Mw(s)+1);if(!s||!(l=Zt(l)))return s;var g=Sn(s),w=Pw(g,Sn(l))+1;return Xr(g,0,w).join("")}function M9(s,l,f){if(s=Be(s),s&&(f||l===n))return s.replace(wh,"");if(!s||!(l=Zt(l)))return s;var g=Sn(s),w=Cw(g,Sn(l));return Xr(g,w).join("")}function O9(s,l){var f=Z,g=ee;if(st(l)){var w="separator"in l?l.separator:w;f="length"in l?Oe(l.length):f,g="omission"in l?Zt(l.omission):g}s=Be(s);var O=s.length;if(As(s)){var I=Sn(s);O=I.length}if(f>=O)return s;var N=f-Ms(g);if(N<1)return g;var F=I?Xr(I,0,N).join(""):s.slice(0,N);if(w===n)return F+g;if(I&&(N+=F.length-N),Sm(w)){if(s.slice(N).search(w)){var q,K=F;for(w.global||(w=jh(w.source,Be(Y2.exec(w))+"g")),w.lastIndex=0;q=w.exec(K);)var X=q.index;F=F.slice(0,X===n?N:X)}}else if(s.indexOf(Zt(w),N)!=N){var ce=F.lastIndexOf(w);ce>-1&&(F=F.slice(0,ce))}return F+g}function _9(s){return s=Be(s),s&&BL.test(s)?s.replace(U2,sj):s}var I9=ks(function(s,l,f){return s+(f?" ":"")+l.toUpperCase()}),Cm=gS("toUpperCase");function mT(s,l,f){return s=Be(s),l=f?n:l,l===n?ej(s)?lj(s):GR(s):s.match(l)||[]}var pT=Ie(function(s,l){try{return Kt(s,n,l)}catch(f){return wm(f)?f:new Ae(f)}}),$9=lr(function(s,l){return un(l,function(f){f=Gn(f),or(s,f,xm(s[f],s))}),s});function D9(s){var l=s==null?0:s.length,f=be();return s=l?et(s,function(g){if(typeof g[1]!="function")throw new fn(a);return[f(g[0]),g[1]]}):[],Ie(function(g){for(var w=-1;++w<l;){var O=s[w];if(Kt(O[0],this,g))return Kt(O[1],this,g)}})}function N9(s){return sF(hn(s,m))}function Pm(s){return function(){return s}}function k9(s,l){return s==null||s!==s?l:s}var L9=vS(),R9=vS(!0);function Ut(s){return s}function Am(s){return qw(typeof s=="function"?s:hn(s,m))}function j9(s){return Xw(hn(s,m))}function F9(s,l){return Zw(s,hn(l,m))}var V9=Ie(function(s,l){return function(f){return Ho(f,s,l)}}),B9=Ie(function(s,l){return function(f){return Ho(s,f,l)}});function Mm(s,l,f){var g=gt(l),w=Yl(l,g);f==null&&!(st(l)&&(w.length||!g.length))&&(f=l,l=s,s=this,w=Yl(l,gt(l)));var O=!(st(f)&&"chain"in f)||!!f.chain,I=ur(s);return un(w,function(N){var F=l[N];s[N]=F,I&&(s.prototype[N]=function(){var q=this.__chain__;if(O||q){var K=s(this.__wrapped__),X=K.__actions__=Vt(this.__actions__);return X.push({func:F,args:arguments,thisArg:s}),K.__chain__=q,K}return F.apply(s,zr([this.value()],arguments))})}),s}function W9(){return xt._===this&&(xt._=mj),this}function Om(){}function U9(s){return s=Oe(s),Ie(function(l){return Jw(l,s)})}var z9=om(et),G9=om(xw),Y9=om(Ih);function gT(s){return hm(s)?$h(Gn(s)):SF(s)}function H9(s){return function(l){return s==null?n:Di(s,l)}}var q9=bS(),K9=bS(!0);function _m(){return[]}function Im(){return!1}function X9(){return{}}function Z9(){return""}function J9(){return!0}function Q9(s,l){if(s=Oe(s),s<1||s>W)return[];var f=k,g=At(s,k);l=be(l),s-=k;for(var w=kh(g,l);++f<s;)l(f);return w}function e7(s){return Me(s)?et(s,Gn):Jt(s)?[s]:Vt(LS(Be(s)))}function t7(s){var l=++dj;return Be(s)+l}var n7=Jl(function(s,l){return s+l},0),r7=am("ceil"),i7=Jl(function(s,l){return s/l},1),s7=am("floor");function o7(s){return s&&s.length?Gl(s,Ut,Yh):n}function a7(s,l){return s&&s.length?Gl(s,be(l,2),Yh):n}function l7(s){return Sw(s,Ut)}function c7(s,l){return Sw(s,be(l,2))}function u7(s){return s&&s.length?Gl(s,Ut,Xh):n}function f7(s,l){return s&&s.length?Gl(s,be(l,2),Xh):n}var d7=Jl(function(s,l){return s*l},1),h7=am("round"),m7=Jl(function(s,l){return s-l},0);function p7(s){return s&&s.length?Nh(s,Ut):0}function g7(s,l){return s&&s.length?Nh(s,be(l,2)):0}return P.after=j8,P.ary=HS,P.assign=CB,P.assignIn=aT,P.assignInWith=fc,P.assignWith=PB,P.at=AB,P.before=qS,P.bind=xm,P.bindAll=$9,P.bindKey=KS,P.castArray=X8,P.chain=zS,P.chunk=sV,P.compact=oV,P.concat=aV,P.cond=D9,P.conforms=N9,P.constant=Pm,P.countBy=p8,P.create=MB,P.curry=XS,P.curryRight=ZS,P.debounce=JS,P.defaults=OB,P.defaultsDeep=_B,P.defer=F8,P.delay=V8,P.difference=lV,P.differenceBy=cV,P.differenceWith=uV,P.drop=fV,P.dropRight=dV,P.dropRightWhile=hV,P.dropWhile=mV,P.fill=pV,P.filter=y8,P.flatMap=b8,P.flatMapDeep=w8,P.flatMapDepth=S8,P.flatten=VS,P.flattenDeep=gV,P.flattenDepth=yV,P.flip=B8,P.flow=L9,P.flowRight=R9,P.fromPairs=vV,P.functions=RB,P.functionsIn=jB,P.groupBy=T8,P.initial=bV,P.intersection=wV,P.intersectionBy=SV,P.intersectionWith=TV,P.invert=VB,P.invertBy=BB,P.invokeMap=C8,P.iteratee=Am,P.keyBy=P8,P.keys=gt,P.keysIn=Wt,P.map=sc,P.mapKeys=UB,P.mapValues=zB,P.matches=j9,P.matchesProperty=F9,P.memoize=ac,P.merge=GB,P.mergeWith=lT,P.method=V9,P.methodOf=B9,P.mixin=Mm,P.negate=lc,P.nthArg=U9,P.omit=YB,P.omitBy=HB,P.once=W8,P.orderBy=A8,P.over=z9,P.overArgs=U8,P.overEvery=G9,P.overSome=Y9,P.partial=bm,P.partialRight=QS,P.partition=M8,P.pick=qB,P.pickBy=cT,P.property=gT,P.propertyOf=H9,P.pull=AV,P.pullAll=WS,P.pullAllBy=MV,P.pullAllWith=OV,P.pullAt=_V,P.range=q9,P.rangeRight=K9,P.rearg=z8,P.reject=I8,P.remove=IV,P.rest=G8,P.reverse=ym,P.sampleSize=D8,P.set=XB,P.setWith=ZB,P.shuffle=N8,P.slice=$V,P.sortBy=R8,P.sortedUniq=FV,P.sortedUniqBy=VV,P.split=b9,P.spread=Y8,P.tail=BV,P.take=WV,P.takeRight=UV,P.takeRightWhile=zV,P.takeWhile=GV,P.tap=o8,P.throttle=H8,P.thru=ic,P.toArray=iT,P.toPairs=uT,P.toPairsIn=fT,P.toPath=e7,P.toPlainObject=oT,P.transform=JB,P.unary=q8,P.union=YV,P.unionBy=HV,P.unionWith=qV,P.uniq=KV,P.uniqBy=XV,P.uniqWith=ZV,P.unset=QB,P.unzip=vm,P.unzipWith=US,P.update=e9,P.updateWith=t9,P.values=js,P.valuesIn=n9,P.without=JV,P.words=mT,P.wrap=K8,P.xor=QV,P.xorBy=e8,P.xorWith=t8,P.zip=n8,P.zipObject=r8,P.zipObjectDeep=i8,P.zipWith=s8,P.entries=uT,P.entriesIn=fT,P.extend=aT,P.extendWith=fc,Mm(P,P),P.add=n7,P.attempt=pT,P.camelCase=o9,P.capitalize=dT,P.ceil=r7,P.clamp=r9,P.clone=Z8,P.cloneDeep=Q8,P.cloneDeepWith=eB,P.cloneWith=J8,P.conformsTo=tB,P.deburr=hT,P.defaultTo=k9,P.divide=i7,P.endsWith=a9,P.eq=En,P.escape=l9,P.escapeRegExp=c9,P.every=g8,P.find=v8,P.findIndex=jS,P.findKey=IB,P.findLast=x8,P.findLastIndex=FS,P.findLastKey=$B,P.floor=s7,P.forEach=GS,P.forEachRight=YS,P.forIn=DB,P.forInRight=NB,P.forOwn=kB,P.forOwnRight=LB,P.get=Tm,P.gt=nB,P.gte=rB,P.has=FB,P.hasIn=Em,P.head=BS,P.identity=Ut,P.includes=E8,P.indexOf=xV,P.inRange=i9,P.invoke=WB,P.isArguments=Li,P.isArray=Me,P.isArrayBuffer=iB,P.isArrayLike=Bt,P.isArrayLikeObject=ct,P.isBoolean=sB,P.isBuffer=Zr,P.isDate=oB,P.isElement=aB,P.isEmpty=lB,P.isEqual=cB,P.isEqualWith=uB,P.isError=wm,P.isFinite=fB,P.isFunction=ur,P.isInteger=eT,P.isLength=cc,P.isMap=tT,P.isMatch=dB,P.isMatchWith=hB,P.isNaN=mB,P.isNative=pB,P.isNil=yB,P.isNull=gB,P.isNumber=nT,P.isObject=st,P.isObjectLike=ot,P.isPlainObject=Qo,P.isRegExp=Sm,P.isSafeInteger=vB,P.isSet=rT,P.isString=uc,P.isSymbol=Jt,P.isTypedArray=Rs,P.isUndefined=xB,P.isWeakMap=bB,P.isWeakSet=wB,P.join=EV,P.kebabCase=u9,P.last=pn,P.lastIndexOf=CV,P.lowerCase=f9,P.lowerFirst=d9,P.lt=SB,P.lte=TB,P.max=o7,P.maxBy=a7,P.mean=l7,P.meanBy=c7,P.min=u7,P.minBy=f7,P.stubArray=_m,P.stubFalse=Im,P.stubObject=X9,P.stubString=Z9,P.stubTrue=J9,P.multiply=d7,P.nth=PV,P.noConflict=W9,P.noop=Om,P.now=oc,P.pad=h9,P.padEnd=m9,P.padStart=p9,P.parseInt=g9,P.random=s9,P.reduce=O8,P.reduceRight=_8,P.repeat=y9,P.replace=v9,P.result=KB,P.round=h7,P.runInContext=L,P.sample=$8,P.size=k8,P.snakeCase=x9,P.some=L8,P.sortedIndex=DV,P.sortedIndexBy=NV,P.sortedIndexOf=kV,P.sortedLastIndex=LV,P.sortedLastIndexBy=RV,P.sortedLastIndexOf=jV,P.startCase=w9,P.startsWith=S9,P.subtract=m7,P.sum=p7,P.sumBy=g7,P.template=T9,P.times=Q9,P.toFinite=fr,P.toInteger=Oe,P.toLength=sT,P.toLower=E9,P.toNumber=gn,P.toSafeInteger=EB,P.toString=Be,P.toUpper=C9,P.trim=P9,P.trimEnd=A9,P.trimStart=M9,P.truncate=O9,P.unescape=_9,P.uniqueId=t7,P.upperCase=I9,P.upperFirst=Cm,P.each=GS,P.eachRight=YS,P.first=BS,Mm(P,function(){var s={};return Un(P,function(l,f){ze.call(P.prototype,f)||(s[f]=l)}),s}(),{chain:!1}),P.VERSION=r,un(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){P[s].placeholder=P}),un(["drop","take"],function(s,l){ke.prototype[s]=function(f){f=f===n?1:mt(Oe(f),0);var g=this.__filtered__&&!l?new ke(this):this.clone();return g.__filtered__?g.__takeCount__=At(f,g.__takeCount__):g.__views__.push({size:At(f,k),type:s+(g.__dir__<0?"Right":"")}),g},ke.prototype[s+"Right"]=function(f){return this.reverse()[s](f).reverse()}}),un(["filter","map","takeWhile"],function(s,l){var f=l+1,g=f==ue||f==he;ke.prototype[s]=function(w){var O=this.clone();return O.__iteratees__.push({iteratee:be(w,3),type:f}),O.__filtered__=O.__filtered__||g,O}}),un(["head","last"],function(s,l){var f="take"+(l?"Right":"");ke.prototype[s]=function(){return this[f](1).value()[0]}}),un(["initial","tail"],function(s,l){var f="drop"+(l?"":"Right");ke.prototype[s]=function(){return this.__filtered__?new ke(this):this[f](1)}}),ke.prototype.compact=function(){return this.filter(Ut)},ke.prototype.find=function(s){return this.filter(s).head()},ke.prototype.findLast=function(s){return this.reverse().find(s)},ke.prototype.invokeMap=Ie(function(s,l){return typeof s=="function"?new ke(this):this.map(function(f){return Ho(f,s,l)})}),ke.prototype.reject=function(s){return this.filter(lc(be(s)))},ke.prototype.slice=function(s,l){s=Oe(s);var f=this;return f.__filtered__&&(s>0||l<0)?new ke(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),l!==n&&(l=Oe(l),f=l<0?f.dropRight(-l):f.take(l-s)),f)},ke.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},ke.prototype.toArray=function(){return this.take(k)},Un(ke.prototype,function(s,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),w=P[g?"take"+(l=="last"?"Right":""):l],O=g||/^find/.test(l);w&&(P.prototype[l]=function(){var I=this.__wrapped__,N=g?[1]:arguments,F=I instanceof ke,q=N[0],K=F||Me(I),X=function(Ne){var Le=w.apply(P,zr([Ne],N));return g&&ce?Le[0]:Le};K&&f&&typeof q=="function"&&q.length!=1&&(F=K=!1);var ce=this.__chain__,ye=!!this.__actions__.length,Te=O&&!ce,_e=F&&!ye;if(!O&&K){I=_e?I:new ke(this);var Ee=s.apply(I,N);return Ee.__actions__.push({func:ic,args:[X],thisArg:n}),new dn(Ee,ce)}return Te&&_e?s.apply(this,N):(Ee=this.thru(X),Te?g?Ee.value()[0]:Ee.value():Ee)})}),un(["pop","push","shift","sort","splice","unshift"],function(s){var l=_l[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",g=/^(?:pop|shift)$/.test(s);P.prototype[s]=function(){var w=arguments;if(g&&!this.__chain__){var O=this.value();return l.apply(Me(O)?O:[],w)}return this[f](function(I){return l.apply(Me(I)?I:[],w)})}}),Un(ke.prototype,function(s,l){var f=P[l];if(f){var g=f.name+"";ze.call($s,g)||($s[g]=[]),$s[g].push({name:l,func:f})}}),$s[Zl(n,b).name]=[{name:"wrapper",func:n}],ke.prototype.clone=_j,ke.prototype.reverse=Ij,ke.prototype.value=$j,P.prototype.at=a8,P.prototype.chain=l8,P.prototype.commit=c8,P.prototype.next=u8,P.prototype.plant=d8,P.prototype.reverse=h8,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=m8,P.prototype.first=P.prototype.head,Vo&&(P.prototype[Vo]=f8),P},Os=cj();Mi?((Mi.exports=Os)._=Os,Ah._=Os):xt._=Os}).call(vI)}(po,po.exports)),po.exports}var vf=xI();const xf=_.createContext({});function bf(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const wf=typeof window<"u",Mv=wf?_.useLayoutEffect:_.useEffect,Ra=_.createContext(null),Sf=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class bI extends Q.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=r instanceof HTMLElement&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function wI({children:e,isPresent:t,anchorX:n}){const r=_.useId(),i=_.useRef(null),o=_.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=_.useContext(Sf);return _.useInsertionEffect(()=>{const{width:c,height:u,top:d,left:h,right:m}=o.current;if(t||!i.current||!c||!u)return;const p=n==="left"?`left: ${h}`:`right: ${m}`;i.current.dataset.motionPopId=r;const v=document.createElement("style");return a&&(v.nonce=a),document.head.appendChild(v),v.sheet&&v.sheet.insertRule(`
|
|
650
|
+
`)+Z+`return __p
|
|
651
|
+
}`;var $e=oT(function(){return Le(M,ye+"return "+Z).apply(n,_)});if($e.source=Z,pp($e))throw $e;return $e}function uB(i){return Be(i).toLowerCase()}function fB(i){return Be(i).toUpperCase()}function dB(i,l,f){if(i=Be(i),i&&(f||l===n))return mw(i);if(!i||!(l=Zt(l)))return i;var y=vn(i),w=vn(l),M=gw(y,w),_=yw(y,w)+1;return Kr(y,M,_).join("")}function hB(i,l,f){if(i=Be(i),i&&(f||l===n))return i.slice(0,vw(i)+1);if(!i||!(l=Zt(l)))return i;var y=vn(i),w=yw(y,vn(l))+1;return Kr(y,0,w).join("")}function pB(i,l,f){if(i=Be(i),i&&(f||l===n))return i.replace(ph,"");if(!i||!(l=Zt(l)))return i;var y=vn(i),w=gw(y,vn(l));return Kr(y,w).join("")}function mB(i,l){var f=Q,y=ee;if(rt(l)){var w="separator"in l?l.separator:w;f="length"in l?Oe(l.length):f,y="omission"in l?Zt(l.omission):y}i=Be(i);var M=i.length;if(Si(i)){var _=vn(i);M=_.length}if(f>=M)return i;var N=f-Ti(y);if(N<1)return y;var L=_?Kr(_,0,N).join(""):i.slice(0,N);if(w===n)return L+y;if(_&&(N+=L.length-N),mp(w)){if(i.slice(N).search(w)){var H,q=L;for(w.global||(w=_h(w.source,Be(L2.exec(w))+"g")),w.lastIndex=0;H=w.exec(q);)var Z=H.index;L=L.slice(0,Z===n?N:Z)}}else if(i.indexOf(Zt(w),N)!=N){var ce=L.lastIndexOf(w);ce>-1&&(L=L.slice(0,ce))}return L+y}function gB(i){return i=Be(i),i&&Aj.test(i)?i.replace(N2,GL):i}var yB=$i(function(i,l,f){return i+(f?" ":"")+l.toUpperCase()}),xp=aS("toUpperCase");function iT(i,l,f){return i=Be(i),l=f?n:l,l===n?VL(i)?qL(i):_L(i):i.match(l)||[]}var oT=_e(function(i,l){try{return Kt(i,n,l)}catch(f){return pp(f)?f:new Ae(f)}}),xB=pr(function(i,l){return ln(l,function(f){f=Wn(f),dr(i,f,dp(i[f],i))}),i});function vB(i){var l=i==null?0:i.length,f=be();return i=l?Je(i,function(y){if(typeof y[1]!="function")throw new cn(a);return[f(y[0]),y[1]]}):[],_e(function(y){for(var w=-1;++w<l;){var M=i[w];if(Kt(M[0],this,y))return Kt(M[1],this,y)}})}function bB(i){return GR(fn(i,p))}function vp(i){return function(){return i}}function wB(i,l){return i==null||i!==i?l:i}var SB=cS(),TB=cS(!0);function Bt(i){return i}function bp(i){return Fw(typeof i=="function"?i:fn(i,p))}function CB(i){return Bw(fn(i,p))}function EB(i,l){return Ww(i,fn(l,p))}var PB=_e(function(i,l){return function(f){return Wo(f,i,l)}}),AB=_e(function(i,l){return function(f){return Wo(i,f,l)}});function wp(i,l,f){var y=gt(l),w=Ul(l,y);f==null&&!(rt(l)&&(w.length||!y.length))&&(f=l,l=i,i=this,w=Ul(l,gt(l)));var M=!(rt(f)&&"chain"in f)||!!f.chain,_=gr(i);return ln(w,function(N){var L=l[N];i[N]=L,_&&(i.prototype[N]=function(){var H=this.__chain__;if(M||H){var q=i(this.__wrapped__),Z=q.__actions__=Rt(this.__actions__);return Z.push({func:L,args:arguments,thisArg:i}),q.__chain__=H,q}return L.apply(i,Ur([this.value()],arguments))})}),i}function MB(){return vt._===this&&(vt._=eR),this}function Sp(){}function OB(i){return i=Oe(i),_e(function(l){return Uw(l,i)})}var $B=Qh(Je),_B=Qh(uw),IB=Qh(Ch);function aT(i){return op(i)?Eh(Wn(i)):lF(i)}function DB(i){return function(l){return i==null?n:Os(i,l)}}var NB=fS(),kB=fS(!0);function Tp(){return[]}function Cp(){return!1}function jB(){return{}}function LB(){return""}function RB(){return!0}function FB(i,l){if(i=Oe(i),i<1||i>z)return[];var f=k,y=At(i,k);l=be(l),i-=k;for(var w=Mh(y,l);++f<i;)l(f);return w}function VB(i){return Me(i)?Je(i,Wn):Jt(i)?[i]:Rt(AS(Be(i)))}function BB(i){var l=++JL;return Be(i)+l}var WB=Kl(function(i,l){return i+l},0),UB=ep("ceil"),zB=Kl(function(i,l){return i/l},1),GB=ep("floor");function YB(i){return i&&i.length?Wl(i,Bt,Fh):n}function HB(i,l){return i&&i.length?Wl(i,be(l,2),Fh):n}function qB(i){return hw(i,Bt)}function KB(i,l){return hw(i,be(l,2))}function XB(i){return i&&i.length?Wl(i,Bt,Uh):n}function ZB(i,l){return i&&i.length?Wl(i,be(l,2),Uh):n}var JB=Kl(function(i,l){return i*l},1),QB=ep("round"),e7=Kl(function(i,l){return i-l},0);function t7(i){return i&&i.length?Ah(i,Bt):0}function n7(i,l){return i&&i.length?Ah(i,be(l,2)):0}return E.after=CV,E.ary=RS,E.assign=f9,E.assignIn=JS,E.assignInWith=lc,E.assignWith=d9,E.at=h9,E.before=FS,E.bind=dp,E.bindAll=xB,E.bindKey=VS,E.castArray=jV,E.chain=kS,E.chunk=GF,E.compact=YF,E.concat=HF,E.cond=vB,E.conforms=bB,E.constant=vp,E.countBy=tV,E.create=p9,E.curry=BS,E.curryRight=WS,E.debounce=US,E.defaults=m9,E.defaultsDeep=g9,E.defer=EV,E.delay=PV,E.difference=qF,E.differenceBy=KF,E.differenceWith=XF,E.drop=ZF,E.dropRight=JF,E.dropRightWhile=QF,E.dropWhile=e8,E.fill=t8,E.filter=rV,E.flatMap=oV,E.flatMapDeep=aV,E.flatMapDepth=lV,E.flatten=_S,E.flattenDeep=n8,E.flattenDepth=r8,E.flip=AV,E.flow=SB,E.flowRight=TB,E.fromPairs=s8,E.functions=T9,E.functionsIn=C9,E.groupBy=cV,E.initial=o8,E.intersection=a8,E.intersectionBy=l8,E.intersectionWith=c8,E.invert=P9,E.invertBy=A9,E.invokeMap=fV,E.iteratee=bp,E.keyBy=dV,E.keys=gt,E.keysIn=Vt,E.map=nc,E.mapKeys=O9,E.mapValues=$9,E.matches=CB,E.matchesProperty=EB,E.memoize=sc,E.merge=_9,E.mergeWith=QS,E.method=PB,E.methodOf=AB,E.mixin=wp,E.negate=ic,E.nthArg=OB,E.omit=I9,E.omitBy=D9,E.once=MV,E.orderBy=hV,E.over=$B,E.overArgs=OV,E.overEvery=_B,E.overSome=IB,E.partial=hp,E.partialRight=zS,E.partition=pV,E.pick=N9,E.pickBy=eT,E.property=aT,E.propertyOf=DB,E.pull=h8,E.pullAll=DS,E.pullAllBy=p8,E.pullAllWith=m8,E.pullAt=g8,E.range=NB,E.rangeRight=kB,E.rearg=$V,E.reject=yV,E.remove=y8,E.rest=_V,E.reverse=up,E.sampleSize=vV,E.set=j9,E.setWith=L9,E.shuffle=bV,E.slice=x8,E.sortBy=TV,E.sortedUniq=E8,E.sortedUniqBy=P8,E.split=oB,E.spread=IV,E.tail=A8,E.take=M8,E.takeRight=O8,E.takeRightWhile=$8,E.takeWhile=_8,E.tap=Y8,E.throttle=DV,E.thru=tc,E.toArray=KS,E.toPairs=tT,E.toPairsIn=nT,E.toPath=VB,E.toPlainObject=ZS,E.transform=R9,E.unary=NV,E.union=I8,E.unionBy=D8,E.unionWith=N8,E.uniq=k8,E.uniqBy=j8,E.uniqWith=L8,E.unset=F9,E.unzip=fp,E.unzipWith=NS,E.update=V9,E.updateWith=B9,E.values=Di,E.valuesIn=W9,E.without=R8,E.words=iT,E.wrap=kV,E.xor=F8,E.xorBy=V8,E.xorWith=B8,E.zip=W8,E.zipObject=U8,E.zipObjectDeep=z8,E.zipWith=G8,E.entries=tT,E.entriesIn=nT,E.extend=JS,E.extendWith=lc,wp(E,E),E.add=WB,E.attempt=oT,E.camelCase=Y9,E.capitalize=rT,E.ceil=UB,E.clamp=U9,E.clone=LV,E.cloneDeep=FV,E.cloneDeepWith=VV,E.cloneWith=RV,E.conformsTo=BV,E.deburr=sT,E.defaultTo=wB,E.divide=zB,E.endsWith=H9,E.eq=wn,E.escape=q9,E.escapeRegExp=K9,E.every=nV,E.find=sV,E.findIndex=OS,E.findKey=y9,E.findLast=iV,E.findLastIndex=$S,E.findLastKey=x9,E.floor=GB,E.forEach=jS,E.forEachRight=LS,E.forIn=v9,E.forInRight=b9,E.forOwn=w9,E.forOwnRight=S9,E.get=gp,E.gt=WV,E.gte=UV,E.has=E9,E.hasIn=yp,E.head=IS,E.identity=Bt,E.includes=uV,E.indexOf=i8,E.inRange=z9,E.invoke=M9,E.isArguments=Is,E.isArray=Me,E.isArrayBuffer=zV,E.isArrayLike=Ft,E.isArrayLikeObject=ct,E.isBoolean=GV,E.isBuffer=Xr,E.isDate=YV,E.isElement=HV,E.isEmpty=qV,E.isEqual=KV,E.isEqualWith=XV,E.isError=pp,E.isFinite=ZV,E.isFunction=gr,E.isInteger=GS,E.isLength=oc,E.isMap=YS,E.isMatch=JV,E.isMatchWith=QV,E.isNaN=e9,E.isNative=t9,E.isNil=r9,E.isNull=n9,E.isNumber=HS,E.isObject=rt,E.isObjectLike=ot,E.isPlainObject=qo,E.isRegExp=mp,E.isSafeInteger=s9,E.isSet=qS,E.isString=ac,E.isSymbol=Jt,E.isTypedArray=Ii,E.isUndefined=i9,E.isWeakMap=o9,E.isWeakSet=a9,E.join=u8,E.kebabCase=X9,E.last=hn,E.lastIndexOf=f8,E.lowerCase=Z9,E.lowerFirst=J9,E.lt=l9,E.lte=c9,E.max=YB,E.maxBy=HB,E.mean=qB,E.meanBy=KB,E.min=XB,E.minBy=ZB,E.stubArray=Tp,E.stubFalse=Cp,E.stubObject=jB,E.stubString=LB,E.stubTrue=RB,E.multiply=JB,E.nth=d8,E.noConflict=MB,E.noop=Sp,E.now=rc,E.pad=Q9,E.padEnd=eB,E.padStart=tB,E.parseInt=nB,E.random=G9,E.reduce=mV,E.reduceRight=gV,E.repeat=rB,E.replace=sB,E.result=k9,E.round=QB,E.runInContext=j,E.sample=xV,E.size=wV,E.snakeCase=iB,E.some=SV,E.sortedIndex=v8,E.sortedIndexBy=b8,E.sortedIndexOf=w8,E.sortedLastIndex=S8,E.sortedLastIndexBy=T8,E.sortedLastIndexOf=C8,E.startCase=aB,E.startsWith=lB,E.subtract=e7,E.sum=t7,E.sumBy=n7,E.template=cB,E.times=FB,E.toFinite=yr,E.toInteger=Oe,E.toLength=XS,E.toLower=uB,E.toNumber=pn,E.toSafeInteger=u9,E.toString=Be,E.toUpper=fB,E.trim=dB,E.trimEnd=hB,E.trimStart=pB,E.truncate=mB,E.unescape=gB,E.uniqueId=BB,E.upperCase=yB,E.upperFirst=xp,E.each=jS,E.eachRight=LS,E.first=IS,wp(E,function(){var i={};return Vn(E,function(l,f){ze.call(E.prototype,f)||(i[f]=l)}),i}(),{chain:!1}),E.VERSION=r,ln(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){E[i].placeholder=E}),ln(["drop","take"],function(i,l){ke.prototype[i]=function(f){f=f===n?1:pt(Oe(f),0);var y=this.__filtered__&&!l?new ke(this):this.clone();return y.__filtered__?y.__takeCount__=At(f,y.__takeCount__):y.__views__.push({size:At(f,k),type:i+(y.__dir__<0?"Right":"")}),y},ke.prototype[i+"Right"]=function(f){return this.reverse()[i](f).reverse()}}),ln(["filter","map","takeWhile"],function(i,l){var f=l+1,y=f==de||f==ue;ke.prototype[i]=function(w){var M=this.clone();return M.__iteratees__.push({iteratee:be(w,3),type:f}),M.__filtered__=M.__filtered__||y,M}}),ln(["head","last"],function(i,l){var f="take"+(l?"Right":"");ke.prototype[i]=function(){return this[f](1).value()[0]}}),ln(["initial","tail"],function(i,l){var f="drop"+(l?"":"Right");ke.prototype[i]=function(){return this.__filtered__?new ke(this):this[f](1)}}),ke.prototype.compact=function(){return this.filter(Bt)},ke.prototype.find=function(i){return this.filter(i).head()},ke.prototype.findLast=function(i){return this.reverse().find(i)},ke.prototype.invokeMap=_e(function(i,l){return typeof i=="function"?new ke(this):this.map(function(f){return Wo(f,i,l)})}),ke.prototype.reject=function(i){return this.filter(ic(be(i)))},ke.prototype.slice=function(i,l){i=Oe(i);var f=this;return f.__filtered__&&(i>0||l<0)?new ke(f):(i<0?f=f.takeRight(-i):i&&(f=f.drop(i)),l!==n&&(l=Oe(l),f=l<0?f.dropRight(-l):f.take(l-i)),f)},ke.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},ke.prototype.toArray=function(){return this.take(k)},Vn(ke.prototype,function(i,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),y=/^(?:head|last)$/.test(l),w=E[y?"take"+(l=="last"?"Right":""):l],M=y||/^find/.test(l);w&&(E.prototype[l]=function(){var _=this.__wrapped__,N=y?[1]:arguments,L=_ instanceof ke,H=N[0],q=L||Me(_),Z=function(Ne){var je=w.apply(E,Ur([Ne],N));return y&&ce?je[0]:je};q&&f&&typeof H=="function"&&H.length!=1&&(L=q=!1);var ce=this.__chain__,ye=!!this.__actions__.length,Te=M&&!ce,$e=L&&!ye;if(!M&&q){_=$e?_:new ke(this);var Ce=i.apply(_,N);return Ce.__actions__.push({func:tc,args:[Z],thisArg:n}),new un(Ce,ce)}return Te&&$e?i.apply(this,N):(Ce=this.thru(Z),Te?y?Ce.value()[0]:Ce.value():Ce)})}),ln(["pop","push","shift","sort","splice","unshift"],function(i){var l=Al[i],f=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",y=/^(?:pop|shift)$/.test(i);E.prototype[i]=function(){var w=arguments;if(y&&!this.__chain__){var M=this.value();return l.apply(Me(M)?M:[],w)}return this[f](function(_){return l.apply(Me(_)?_:[],w)})}}),Vn(ke.prototype,function(i,l){var f=E[l];if(f){var y=f.name+"";ze.call(Ai,y)||(Ai[y]=[]),Ai[y].push({name:l,func:f})}}),Ai[ql(n,v).name]=[{name:"wrapper",func:n}],ke.prototype.clone=gR,ke.prototype.reverse=yR,ke.prototype.value=xR,E.prototype.at=H8,E.prototype.chain=q8,E.prototype.commit=K8,E.prototype.next=X8,E.prototype.plant=J8,E.prototype.reverse=Q8,E.prototype.toJSON=E.prototype.valueOf=E.prototype.value=eV,E.prototype.first=E.prototype.head,ko&&(E.prototype[ko]=Z8),E},Ci=KL();Cs?((Cs.exports=Ci)._=Ci,bh._=Ci):vt._=Ci}).call(i5)}(uo,uo.exports)),uo.exports}var hf=o5();/*!
|
|
652
|
+
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
|
|
653
|
+
* License - https://fontawesome.com/license (Commercial License)
|
|
654
|
+
* Copyright 2024 Fonticons, Inc.
|
|
655
|
+
*/const a5={prefix:"fal",iconName:"eye-slash",icon:[640,512,[],"f070","M25.9 3.4C19-2 8.9-.8 3.4 6.1S-.8 23.1 6.1 28.6l608 480c6.9 5.5 17 4.3 22.5-2.6s4.3-17-2.6-22.5L25.9 3.4zM605.5 268.3c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-51.2 0-96 14.8-133.9 36.8l27.3 21.5C244.6 74.2 280.2 64 320 64c70.4 0 127.7 32 170.8 72c43.1 40 71.9 88 85.2 120c-9.2 22.1-25.9 52-49.5 81.5l25.1 19.8c25.6-32 43.7-64.4 53.9-89zM88.4 154.7c-25.6 32-43.7 64.4-53.9 89c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c51.2 0 96-14.8 133.9-36.8l-27.3-21.5C395.4 437.8 359.8 448 320 448c-70.4 0-127.7-32-170.8-72C106.1 336 77.3 288 64 256c9.2-22.1 25.9-52 49.5-81.5L88.4 154.7zM320 384c16.7 0 32.7-3.2 47.4-9.1l-30.9-24.4c-5.4 .9-10.9 1.4-16.5 1.4c-51 0-92.8-39.8-95.8-90.1l-30.9-24.4c-.9 6-1.3 12.2-1.3 18.5c0 70.7 57.3 128 128 128zM448 256c0-70.7-57.3-128-128-128c-16.7 0-32.7 3.2-47.4 9.1l30.9 24.4c5.4-.9 10.9-1.4 16.5-1.4c51 0 92.8 39.8 95.8 90.1l30.9 24.4c.9-6 1.3-12.2 1.3-18.5z"]},l5={prefix:"fal",iconName:"chevron-up",icon:[512,512,[],"f077","M244.7 116.7c6.2-6.2 16.4-6.2 22.6 0l192 192c6.2 6.2 6.2 16.4 0 22.6s-16.4 6.2-22.6 0L256 150.6 75.3 331.3c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l192-192z"]},c5={prefix:"fal",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M69.4 210.6C89.8 126.5 165.6 64 256 64c71.1 0 133.1 38.6 166.3 96L368 160c-8.8 0-16 7.2-16 16s7.2 16 16 16l80.7 0 15.3 0c8.8 0 16-7.2 16-16l0-96c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 60.6C408.8 75.5 337.5 32 256 32C149.6 32 60.5 106.2 37.7 205.6C35.5 215.2 43.1 224 53 224c7.9 0 14.6-5.7 16.5-13.4zm373.2 90.9C422.2 385.5 346.4 448 256 448c-71.1 0-133.1-38.6-166.3-96l54.5 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-80.9 0-15.1 0c-8.8 0-16 7.2-16 16l0 96c0 8.8 7.2 16 16 16s16-7.2 16-16l0-60.2C103.4 436.6 174.7 480 256 480c106.4 0 195.5-74.2 218.3-173.6c2.2-9.6-5.4-18.4-15.3-18.4c-7.9 0-14.6 5.7-16.5 13.4z"]},u5={prefix:"fal",iconName:"eye",icon:[576,512,[128065],"f06e","M117.2 136C160.3 96 217.6 64 288 64s127.7 32 170.8 72c43.1 40 71.9 88 85.2 120c-13.3 32-42.1 80-85.2 120c-43.1 40-100.4 72-170.8 72s-127.7-32-170.8-72C74.1 336 45.3 288 32 256c13.3-32 42.1-80 85.2-120zM288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM192 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},f5={prefix:"fal",iconName:"trash",icon:[448,512,[],"f1f8","M177.7 32l92.5 0c5.5 0 10.6 2.8 13.6 7.5L299.1 64 148.9 64l15.3-24.5c2.9-4.7 8.1-7.5 13.6-7.5zM336.9 64L311 22.6C302.2 8.5 286.8 0 270.3 0L177.7 0C161.2 0 145.8 8.5 137 22.6L111.1 64 64.1 64 32 64 16 64C7.2 64 0 71.2 0 80s7.2 16 16 16l18.3 0L59.8 452.6C62.1 486.1 90 512 123.6 512l200.8 0c33.6 0 61.4-25.9 63.8-59.4L413.7 96 432 96c8.8 0 16-7.2 16-16s-7.2-16-16-16l-16 0-32.1 0-47.1 0zm44.8 32L356.3 450.3C355.1 467 341.2 480 324.4 480l-200.8 0c-16.8 0-30.7-13-31.9-29.7L66.4 96l315.3 0z"]},d5={prefix:"fal",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M352 448l0-256-112 0c-26.5 0-48-21.5-48-48l0-112L64 32C46.3 32 32 46.3 32 64l0 384c0 17.7 14.3 32 32 32l256 0c17.7 0 32-14.3 32-32zm-.5-288c-.7-2.8-2.1-5.4-4.2-7.4L231.4 36.7c-2.1-2.1-4.6-3.5-7.4-4.2L224 144c0 8.8 7.2 16 16 16l111.5 0zM0 64C0 28.7 28.7 0 64 0L220.1 0c12.7 0 24.9 5.1 33.9 14.1L369.9 129.9c9 9 14.1 21.2 14.1 33.9L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z"]},h5={prefix:"fal",iconName:"chevron-down",icon:[512,512,[],"f078","M267.3 395.3c-6.2 6.2-16.4 6.2-22.6 0l-192-192c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L256 361.4 436.7 180.7c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6l-192 192z"]},pf={prefix:"fal",iconName:"x",icon:[384,512,[120],"58","M380.2 58.3c5.7-6.7 4.9-16.8-1.9-22.5s-16.8-4.9-22.6 1.9L192 231.2 28.2 37.7c-5.7-6.7-15.8-7.6-22.5-1.9s-7.6 15.8-1.9 22.5L171 256 3.8 453.7c-5.7 6.7-4.9 16.8 1.9 22.6s16.8 4.9 22.5-1.9L192 280.8 355.8 474.3c5.7 6.7 15.8 7.6 22.6 1.9s7.6-15.8 1.9-22.6L213 256 380.2 58.3z"]},mf=O.createContext({});function gf(e){const t=O.useRef(null);return t.current===null&&(t.current=e()),t.current}const yf=typeof window<"u",Cx=yf?O.useLayoutEffect:O.useEffect,Ia=O.createContext(null),xf=O.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class p5 extends he.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,s=r instanceof HTMLElement&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=s-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function m5({children:e,isPresent:t,anchorX:n}){const r=O.useId(),s=O.useRef(null),o=O.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=O.useContext(xf);return O.useInsertionEffect(()=>{const{width:c,height:u,top:d,left:h,right:p}=o.current;if(t||!s.current||!c||!u)return;const m=n==="left"?`left: ${h}`:`right: ${p}`;s.current.dataset.motionPopId=r;const x=document.createElement("style");return a&&(x.nonce=a),document.head.appendChild(x),x.sheet&&x.sheet.insertRule(`
|
|
652
656
|
[data-motion-pop-id="${r}"] {
|
|
653
657
|
position: absolute !important;
|
|
654
658
|
width: ${c}px !important;
|
|
655
659
|
height: ${u}px !important;
|
|
656
|
-
${
|
|
660
|
+
${m}px !important;
|
|
657
661
|
top: ${d}px !important;
|
|
658
662
|
}
|
|
659
|
-
`),()=>{document.head.removeChild(v)}},[t]),y.jsx(bI,{isPresent:t,childRef:i,sizeRef:o,children:Q.cloneElement(e,{ref:i})})}const SI=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=bf(TI),d=_.useId(),h=_.useCallback(p=>{u.set(p,!0);for(const v of u.values())if(!v)return;r&&r()},[u,r]),m=_.useMemo(()=>({id:d,initial:t,isPresent:n,custom:i,onExitComplete:h,register:p=>(u.set(p,!1),()=>u.delete(p))}),o?[Math.random(),h]:[n,h]);return _.useMemo(()=>{u.forEach((p,v)=>u.set(v,!1))},[n]),Q.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=y.jsx(wI,{isPresent:n,anchorX:c,children:e})),y.jsx(Ra.Provider,{value:m,children:e})};function TI(){return new Map}function Ov(e=!0){const t=_.useContext(Ra);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=_.useId();_.useEffect(()=>{if(e)return i(o)},[e]);const a=_.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const ja=e=>e.key||"";function _v(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const vn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=Ov(a),h=_.useMemo(()=>_v(e),[e]),m=a&&!u?[]:h.map(ja),p=_.useRef(!0),v=_.useRef(h),S=bf(()=>new Map),[x,T]=_.useState(h),[b,C]=_.useState(h);Mv(()=>{p.current=!1,v.current=h;for(let A=0;A<b.length;A++){const D=ja(b[A]);m.includes(D)?S.delete(D):S.get(D)!==!0&&S.set(D,!1)}},[b,m.length,m.join("-")]);const E=[];if(h!==x){let A=[...h];for(let D=0;D<b.length;D++){const R=b[D],j=ja(R);m.includes(j)||(A.splice(D,0,R),E.push(R))}return o==="wait"&&E.length&&(A=E),C(_v(A)),T(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&b.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:$}=_.useContext(xf);return y.jsx(y.Fragment,{children:b.map(A=>{const D=ja(A),R=a&&!u?!1:h===b||m.includes(D),j=()=>{if(S.has(D))S.set(D,!0);else return;let V=!0;S.forEach(Z=>{Z||(V=!1)}),V&&($==null||$(),C(v.current),a&&(d==null||d()),r&&r())};return y.jsx(SI,{isPresent:R,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:R?void 0:j,anchorX:c,children:A},D)})})},kt=e=>e;let rs=kt,Er=kt;process.env.NODE_ENV!=="production"&&(rs=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Er=(e,t)=>{if(!e)throw new Error(t)});const EI={useManualTiming:!1},Fa=["read","resolveKeyframes","update","preRender","render","postRender"],Iv={value:null};function CI(e,t){let n=new Set,r=new Set,i=!1,o=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){a.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,p=!1,v=!1)=>{const x=v&&i?n:r;return p&&a.add(m),x.has(m)||x.add(m),m},cancel:m=>{r.delete(m),a.delete(m)},process:m=>{if(c=m,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),t&&Iv.value&&Iv.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const PI=40;function $v(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Fa.reduce((b,C)=>(b[C]=CI(o,t?C:void 0),b),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:p}=a,v=()=>{const b=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(b-i.timestamp,PI),1),i.timestamp=b,i.isProcessing=!0,c.process(i),u.process(i),d.process(i),h.process(i),m.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(v))},S=()=>{n=!0,r=!0,i.isProcessing||e(v)};return{schedule:Fa.reduce((b,C)=>{const E=a[C];return b[C]=($,A=!1,D=!1)=>(n||S(),E.schedule($,A,D)),b},{}),cancel:b=>{for(let C=0;C<Fa.length;C++)a[Fa[C]].cancel(b)},state:i,steps:a}}const{schedule:qe,cancel:Cr,state:vt,steps:Tf}=$v(typeof requestAnimationFrame<"u"?requestAnimationFrame:kt,!0),Dv=_.createContext({strict:!1}),Nv={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},is={};for(const e in Nv)is[e]={isEnabled:t=>Nv[e].some(n=>!!t[n])};function AI(e){for(const t in e)is[t]={...is[t],...e[t]}}const MI=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Va(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||MI.has(e)}let kv=e=>!Va(e);function OI(e){e&&(kv=t=>t.startsWith("on")?!Va(t):e(t))}try{OI(require("@emotion/is-prop-valid").default)}catch{}function _I(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(kv(i)||n===!0&&Va(i)||!t&&!Va(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Lv=new Set;function Ba(e,t,n){e||Lv.has(t)||(console.warn(t),Lv.add(t))}function II(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Ba(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Wa=_.createContext({});function Ua(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function go(e){return typeof e=="string"||Array.isArray(e)}const Ef=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Cf=["initial",...Ef];function za(e){return Ua(e.animate)||Cf.some(t=>go(e[t]))}function Rv(e){return!!(za(e)||e.variants)}function $I(e,t){if(za(e)){const{initial:n,animate:r}=e;return{initial:n===!1||go(n)?n:void 0,animate:go(r)?r:void 0}}return e.inherit!==!1?t:{}}function DI(e){const{initial:t,animate:n}=$I(e,_.useContext(Wa));return _.useMemo(()=>({initial:t,animate:n}),[jv(t),jv(n)])}function jv(e){return Array.isArray(e)?e.join(" "):e}const NI=Symbol.for("motionComponentSymbol");function ss(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function kI(e,t,n){return _.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ss(n)&&(n.current=r))},[t])}const{schedule:Pf}=$v(queueMicrotask,!1),Af=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Fv="data-"+Af("framerAppearId"),Vv=_.createContext({});function LI(e,t,n,r,i){var o,a;const{visualElement:c}=_.useContext(Wa),u=_.useContext(Dv),d=_.useContext(Ra),h=_.useContext(Sf).reducedMotion,m=_.useRef(null);r=r||u.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const p=m.current,v=_.useContext(Vv);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&RI(m.current,n,i,v);const S=_.useRef(!1);_.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const x=n[Fv],T=_.useRef(!!x&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,x))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,x)));return Mv(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Pf.render(p.render),T.current&&p.animationState&&p.animationState.animateChanges())}),_.useEffect(()=>{p&&(!T.current&&p.animationState&&p.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,x)}),T.current=!1))}),p}function RI(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Bv(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&ss(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function Bv(e){if(e)return e.options.allowProjection!==!1?e.projection:Bv(e.parent)}function jI({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&AI(e);function c(d,h){let m;const p={..._.useContext(Sf),...d,layoutId:FI(d)},{isStatic:v}=p,S=DI(d),x=r(d,v);if(!v&&wf){VI(p,e);const T=BI(p);m=T.MeasureLayout,S.visualElement=LI(i,x,p,t,T.ProjectionNode)}return y.jsxs(Wa.Provider,{value:S,children:[m&&S.visualElement?y.jsx(m,{visualElement:S.visualElement,...p}):null,n(i,d,kI(x,S.visualElement,h),x,v,S.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const u=_.forwardRef(c);return u[NI]=i,u}function FI({layoutId:e}){const t=_.useContext(xf).id;return t&&e!==void 0?t+"-"+e:e}function VI(e,t){const n=_.useContext(Dv).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?rs(!1,r):Er(!1,r)}}function BI(e){const{drag:t,layout:n}=is;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Wv=e=>t=>typeof t=="string"&&t.startsWith(e),Mf=Wv("--"),WI=Wv("var(--"),Of=e=>WI(e)?UI.test(e.split("/*")[0].trim()):!1,UI=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,yo={};function zI(e){for(const t in e)yo[t]=e[t],Mf(t)&&(yo[t].isCSSVariable=!0)}const os=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],li=new Set(os);function Uv(e,{layout:t,layoutId:n}){return li.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!yo[e]||e==="opacity")}const Et=e=>!!(e&&e.getVelocity),zv=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Zn=(e,t,n)=>n>t?t:n<e?e:n,as={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},vo={...as,transform:e=>Zn(0,1,e)},Ga={...as,default:1},xo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pr=xo("deg"),kn=xo("%"),Se=xo("px"),GI=xo("vh"),YI=xo("vw"),Gv={...kn,parse:e=>kn.parse(e)/100,transform:e=>kn.transform(e*100)},HI={borderWidth:Se,borderTopWidth:Se,borderRightWidth:Se,borderBottomWidth:Se,borderLeftWidth:Se,borderRadius:Se,radius:Se,borderTopLeftRadius:Se,borderTopRightRadius:Se,borderBottomRightRadius:Se,borderBottomLeftRadius:Se,width:Se,maxWidth:Se,height:Se,maxHeight:Se,top:Se,right:Se,bottom:Se,left:Se,padding:Se,paddingTop:Se,paddingRight:Se,paddingBottom:Se,paddingLeft:Se,margin:Se,marginTop:Se,marginRight:Se,marginBottom:Se,marginLeft:Se,backgroundPositionX:Se,backgroundPositionY:Se},qI={rotate:Pr,rotateX:Pr,rotateY:Pr,rotateZ:Pr,scale:Ga,scaleX:Ga,scaleY:Ga,scaleZ:Ga,skew:Pr,skewX:Pr,skewY:Pr,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:vo,originX:Gv,originY:Gv,originZ:Se},Yv={...as,transform:Math.round},_f={...HI,...qI,zIndex:Yv,size:Se,fillOpacity:vo,strokeOpacity:vo,numOctaves:Yv},KI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},XI=os.length;function ZI(e,t,n){let r="",i=!0;for(let o=0;o<XI;o++){const a=os[o],c=e[a];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(a.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=zv(c,_f[a]);if(!u){i=!1;const h=KI[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function If(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const d=t[u];if(li.has(u)){a=!0;continue}else if(Mf(u)){i[u]=d;continue}else{const h=zv(d,_f[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=ZI(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${d} ${h}`}}const $f=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Hv(e,t,n){for(const r in t)!Et(t[r])&&!Uv(r,n)&&(e[r]=t[r])}function JI({transformTemplate:e},t){return _.useMemo(()=>{const n=$f();return If(n,t,e),Object.assign({},n.vars,n.style)},[t])}function QI(e,t){const n=e.style||{},r={};return Hv(r,n,e),Object.assign(r,JI(e,t)),r}function e6(e,t){const n={},r=QI(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const t6=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Df(e){return typeof e!="string"||e.includes("-")?!1:!!(t6.indexOf(e)>-1||/[A-Z]/u.test(e))}const n6={offset:"stroke-dashoffset",array:"stroke-dasharray"},r6={offset:"strokeDashoffset",array:"strokeDasharray"};function i6(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?n6:r6;e[o.offset]=Se.transform(-r);const a=Se.transform(t),c=Se.transform(n);e[o.array]=`${a} ${c}`}function qv(e,t,n){return typeof e=="string"?e:Se.transform(t+n*e)}function s6(e,t,n){const r=qv(t,e.x,e.width),i=qv(n,e.y,e.height);return`${r} ${i}`}function Nf(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(If(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:v,dimensions:S}=e;p.transform&&(S&&(v.transform=p.transform),delete p.transform),S&&(i!==void 0||o!==void 0||v.transform)&&(v.transformOrigin=s6(S,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&i6(p,a,c,u,!1)}const Kv=()=>({...$f(),attrs:{}}),kf=e=>typeof e=="string"&&e.toLowerCase()==="svg";function o6(e,t,n,r){const i=_.useMemo(()=>{const o=Kv();return Nf(o,t,kf(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Hv(o,e.style,e),i.style={...o,...i.style}}return i}function a6(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(Df(n)?o6:e6)(r,o,a,n),d=_I(r,typeof n=="string",e),h=n!==_.Fragment?{...d,...u,ref:i}:{},{children:m}=r,p=_.useMemo(()=>Et(m)?m.get():m,[m]);return _.createElement(n,{...h,children:p})}}function Xv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Lf(e,t,n,r){if(typeof t=="function"){const[i,o]=Xv(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Xv(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Rf=e=>Array.isArray(e),l6=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),c6=e=>Rf(e)?e[e.length-1]||0:e;function Ya(e){const t=Et(e)?e.get():e;return l6(t)?t.toValue():t}function u6({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:f6(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Zv=e=>(t,n)=>{const r=_.useContext(Wa),i=_.useContext(Ra),o=()=>u6(e,t,r,i);return n?o():bf(o)};function f6(e,t,n,r){const i={},o=r(e,{});for(const p in o)i[p]=Ya(o[p]);let{initial:a,animate:c}=e;const u=za(e),d=Rv(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const m=h?c:a;if(m&&typeof m!="boolean"&&!Ua(m)){const p=Array.isArray(m)?m:[m];for(let v=0;v<p.length;v++){const S=Lf(e,p[v]);if(S){const{transitionEnd:x,transition:T,...b}=S;for(const C in b){let E=b[C];if(Array.isArray(E)){const $=h?E.length-1:0;E=E[$]}E!==null&&(i[C]=E)}for(const C in x)i[C]=x[C]}}}return i}function jf(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(Et(i[a])||t.style&&Et(t.style[a])||Uv(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}const d6={useVisualState:Zv({scrapeMotionValuesFromProps:jf,createRenderState:$f})};function Jv(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function Qv(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const e1=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function t1(e,t,n,r){Qv(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(e1.has(i)?i:Af(i),t.attrs[i])}function n1(e,t,n){const r=jf(e,t,n);for(const i in e)if(Et(e[i])||Et(t[i])){const o=os.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const r1=["x","y","width","height","cx","cy","r"],h6={useVisualState:Zv({scrapeMotionValuesFromProps:n1,createRenderState:Kv,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in i)if(li.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<r1.length;c++){const u=r1[c];e[u]!==t[u]&&(a=!0)}a&&qe.read(()=>{Jv(n,r),qe.render(()=>{Nf(r,i,kf(n.tagName),e.transformTemplate),t1(n,r)})})}})};function m6(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Df(r)?h6:d6,preloadedFeatures:e,useRender:a6(i),createVisualElement:t,Component:r};return jI(a)}}function bo(e,t,n){const r=e.getProps();return Lf(r,t,n!==void 0?n:r.custom,e)}function Ff(e,t){return e?e[t]||e.default||e:void 0}const i1=new Set(["width","height","top","left","right","bottom",...os]);function Vf(e,t){e.indexOf(t)===-1&&e.push(t)}function Bf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Wf{constructor(){this.subscriptions=[]}add(t){return Vf(this.subscriptions,t),()=>Bf(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function s1(e,t){return t?e*(1e3/t):0}let Ha;function p6(){Ha=void 0}const Ln={now:()=>(Ha===void 0&&Ln.set(vt.isProcessing||EI.useManualTiming?vt.timestamp:performance.now()),Ha),set:e=>{Ha=e,queueMicrotask(p6)}},o1=30,g6=e=>!isNaN(parseFloat(e));class y6{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Ln.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ln.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=g6(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Ba(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Wf);const r=this.events[t].add(n);return t==="change"?()=>{r(),qe.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ln.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>o1)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,o1);return s1(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function wo(e,t){return new y6(e,t)}function v6(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,wo(n))}function x6(e,t){const n=bo(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=c6(o[a]);v6(e,a,c)}}function b6(e){return!!(Et(e)&&e.add)}function Uf(e,t){const n=e.getValue("willChange");if(b6(n))return n.add(t)}function a1(e){return e.props[Fv]}function zf(e){let t;return()=>(t===void 0&&(t=e()),t)}const w6=zf(()=>window.ScrollTimeline!==void 0);class S6{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(w6()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class T6 extends S6{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const Rn=e=>e*1e3,Jn=e=>e/1e3;function Gf(e){return typeof e=="function"}function l1(e,t){e.timeline=t,e.onfinish=null}const Yf=e=>Array.isArray(e)&&typeof e[0]=="number",E6={linearEasing:void 0};function C6(e,t){const n=zf(e);return()=>{var r;return(r=E6[t])!==null&&r!==void 0?r:n()}}const qa=C6(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ls=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},c1=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(ls(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function u1(e){return!!(typeof e=="function"&&qa()||!e||typeof e=="string"&&(e in Hf||qa())||Yf(e)||Array.isArray(e)&&e.every(u1))}const So=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Hf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:So([0,.65,.55,1]),circOut:So([.55,0,1,.45]),backIn:So([.31,.01,.66,-.59]),backOut:So([.33,1.53,.69,.99])};function f1(e,t){if(e)return typeof e=="function"&&qa()?c1(e,t):Yf(e)?So(e):Array.isArray(e)?e.map(n=>f1(n,t)||Hf.easeOut):Hf[e]}const d1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,P6=1e-7,A6=12;function M6(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=d1(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>P6&&++c<A6);return a}function To(e,t,n,r){if(e===t&&n===r)return kt;const i=o=>M6(o,0,1,e,n);return o=>o===0||o===1?o:d1(i(o),t,r)}const h1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,m1=e=>t=>1-e(1-t),p1=To(.33,1.53,.69,.99),qf=m1(p1),g1=h1(qf),y1=e=>(e*=2)<1?.5*qf(e):.5*(2-Math.pow(2,-10*(e-1))),Kf=e=>1-Math.sin(Math.acos(e)),v1=m1(Kf),x1=h1(Kf),b1=e=>/^0[^.\s]+$/u.test(e);function O6(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||b1(e):!0}const Eo=e=>Math.round(e*1e5)/1e5,Xf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _6(e){return e==null}const I6=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Zf=(e,t)=>n=>!!(typeof n=="string"&&I6.test(n)&&n.startsWith(e)||t&&!_6(n)&&Object.prototype.hasOwnProperty.call(n,t)),w1=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(Xf);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},$6=e=>Zn(0,255,e),Jf={...as,transform:e=>Math.round($6(e))},ci={test:Zf("rgb","red"),parse:w1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Jf.transform(e)+", "+Jf.transform(t)+", "+Jf.transform(n)+", "+Eo(vo.transform(r))+")"};function D6(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Qf={test:Zf("#"),parse:D6,transform:ci.transform},cs={test:Zf("hsl","hue"),parse:w1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+kn.transform(Eo(t))+", "+kn.transform(Eo(n))+", "+Eo(vo.transform(r))+")"},Ct={test:e=>ci.test(e)||Qf.test(e)||cs.test(e),parse:e=>ci.test(e)?ci.parse(e):cs.test(e)?cs.parse(e):Qf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ci.transform(e):cs.transform(e)},N6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function k6(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Xf))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(N6))===null||n===void 0?void 0:n.length)||0)>0}const S1="number",T1="color",L6="var",R6="var(",E1="${}",j6=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Co(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(j6,u=>(Ct.test(u)?(r.color.push(o),i.push(T1),n.push(Ct.parse(u))):u.startsWith(R6)?(r.var.push(o),i.push(L6),n.push(u)):(r.number.push(o),i.push(S1),n.push(parseFloat(u))),++o,E1)).split(E1);return{values:n,split:c,indexes:r,types:i}}function C1(e){return Co(e).values}function P1(e){const{split:t,types:n}=Co(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const c=n[a];c===S1?o+=Eo(i[a]):c===T1?o+=Ct.transform(i[a]):o+=i[a]}return o}}const F6=e=>typeof e=="number"?0:e;function V6(e){const t=C1(e);return P1(e)(t.map(F6))}const Ar={test:k6,parse:C1,createTransformer:P1,getAnimatableNone:V6},B6=new Set(["brightness","contrast","saturate","opacity"]);function W6(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Xf)||[];if(!r)return e;const i=n.replace(r,"");let o=B6.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const U6=/\b([a-z-]*)\(.*?\)/gu,ed={...Ar,getAnimatableNone:e=>{const t=e.match(U6);return t?t.map(W6).join(" "):e}},z6={..._f,color:Ct,backgroundColor:Ct,outlineColor:Ct,fill:Ct,stroke:Ct,borderColor:Ct,borderTopColor:Ct,borderRightColor:Ct,borderBottomColor:Ct,borderLeftColor:Ct,filter:ed,WebkitFilter:ed},A1=e=>z6[e];function M1(e,t){let n=A1(e);return n!==ed&&(n=Ar),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const G6=new Set(["auto","none","0"]);function Y6(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!G6.has(o)&&Co(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=M1(n,i)}const ui=e=>e*180/Math.PI,td=e=>{const t=ui(Math.atan2(e[1],e[0]));return nd(t)},H6={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:td,rotateZ:td,skewX:e=>ui(Math.atan(e[1])),skewY:e=>ui(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},nd=e=>(e=e%360,e<0&&(e+=360),e),O1=td,_1=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),I1=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),q6={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:_1,scaleY:I1,scale:e=>(_1(e)+I1(e))/2,rotateX:e=>nd(ui(Math.atan2(e[6],e[5]))),rotateY:e=>nd(ui(Math.atan2(-e[2],e[0]))),rotateZ:O1,rotate:O1,skewX:e=>ui(Math.atan(e[4])),skewY:e=>ui(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function $1(e){return e.includes("scale")?1:0}function rd(e,t){if(!e||e==="none")return $1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=q6,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=H6,i=c}if(!i)return $1(t);const o=r[t],a=i[1].split(",").map(X6);return typeof o=="function"?o(a):a[o]}const K6=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return rd(n,t)};function X6(e){return parseFloat(e.trim())}const D1=e=>e===as||e===Se,Z6=new Set(["x","y","z"]),J6=os.filter(e=>!Z6.has(e));function Q6(e){const t=[];return J6.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const us={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>rd(t,"x"),y:(e,{transform:t})=>rd(t,"y")};us.translateX=us.x,us.translateY=us.y;const fi=new Set;let id=!1,sd=!1;function N1(){if(sd){const e=Array.from(fi).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Q6(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}sd=!1,id=!1,fi.forEach(e=>e.complete()),fi.clear()}function k1(){fi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(sd=!0)})}function e$(){k1(),N1()}class od{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(fi.add(this),id||(id=!0,qe.read(k1),qe.resolveKeyframes(N1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),c=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),fi.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,fi.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const L1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),t$=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function n$(e){const t=t$.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const r$=4;function R1(e,t,n=1){Er(n<=r$,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=n$(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return L1(a)?parseFloat(a):a}return Of(i)?R1(i,t,n+1):i}const j1=e=>t=>t.test(e),F1=[as,Se,kn,Pr,YI,GI,{test:e=>e==="auto",parse:e=>e}],V1=e=>F1.find(j1(e));class B1 extends od{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Of(d))){const h=R1(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!i1.has(r)||t.length!==2)return;const[i,o]=t,a=V1(i),c=V1(o);if(a!==c)if(D1(a)&&D1(c))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)O6(t[i])&&r.push(i);r.length&&Y6(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=us[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,c=i[a];i[a]=us[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,d])=>{n.getValue(u).set(d)}),this.resolveNoneKeyframes()}}const W1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ar.test(e)||e==="0")&&!e.startsWith("url("));function i$(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function s$(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=W1(i,t),c=W1(o,t);return rs(a===c,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:i$(e)||(n==="spring"||Gf(n))&&r}const o$=e=>e!==null;function Ka(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(o$),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const a$=40;class U1{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ln.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>a$?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&e$(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Ln.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!s$(t,r,i,o))if(a)this.options.duration=0;else{u&&u(Ka(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const ad=2e4;function z1(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ad;)t+=n,r=e.next(t);return t>=ad?1/0:t}const rt=(e,t,n)=>e+(t-e)*n;function ld(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function l$({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=ld(u,c,e+1/3),o=ld(u,c,e),a=ld(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Xa(e,t){return n=>n>0?t:e}const cd=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},c$=[Qf,ci,cs],u$=e=>c$.find(t=>t.test(e));function G1(e){const t=u$(e);if(rs(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===cs&&(n=l$(n)),n}const Y1=(e,t)=>{const n=G1(e),r=G1(t);if(!n||!r)return Xa(e,t);const i={...n};return o=>(i.red=cd(n.red,r.red,o),i.green=cd(n.green,r.green,o),i.blue=cd(n.blue,r.blue,o),i.alpha=rt(n.alpha,r.alpha,o),ci.transform(i))},f$=(e,t)=>n=>t(e(n)),Po=(...e)=>e.reduce(f$),ud=new Set(["none","hidden"]);function d$(e,t){return ud.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function h$(e,t){return n=>rt(e,t,n)}function fd(e){return typeof e=="number"?h$:typeof e=="string"?Of(e)?Xa:Ct.test(e)?Y1:g$:Array.isArray(e)?H1:typeof e=="object"?Ct.test(e)?Y1:m$:Xa}function H1(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>fd(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function m$(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=fd(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function p$(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],c=e.indexes[a][i[a]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,i[a]++}return r}const g$=(e,t)=>{const n=Ar.createTransformer(t),r=Co(e),i=Co(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?ud.has(e)&&!i.values.length||ud.has(t)&&!r.values.length?d$(e,t):Po(H1(p$(r,i),i.values),n):(rs(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Xa(e,t))};function q1(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?rt(e,t,n):fd(e)(e,t)}const y$=5;function K1(e,t,n){const r=Math.max(t-y$,0);return s1(n-e(r),t-r)}const it={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},X1=.001;function v$({duration:e=it.duration,bounce:t=it.bounce,velocity:n=it.velocity,mass:r=it.mass}){let i,o;rs(e<=Rn(it.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Zn(it.minDamping,it.maxDamping,a),e=Zn(it.minDuration,it.maxDuration,Jn(e)),a<1?(i=d=>{const h=d*a,m=h*e,p=h-n,v=dd(d,a),S=Math.exp(-m);return X1-p/v*S},o=d=>{const m=d*a*e,p=m*n+n,v=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-m),x=dd(Math.pow(d,2),a);return(-i(d)+X1>0?-1:1)*((p-v)*S)/x}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},o=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const c=5/e,u=b$(i,o,c);if(e=Rn(e),isNaN(u))return{stiffness:it.stiffness,damping:it.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const x$=12;function b$(e,t,n){let r=n;for(let i=1;i<x$;i++)r=r-e(r)/t(r);return r}function dd(e,t){return e*Math.sqrt(1-t*t)}const w$=["duration","bounce"],S$=["stiffness","damping","mass"];function Z1(e,t){return t.some(n=>e[n]!==void 0)}function T$(e){let t={velocity:it.velocity,stiffness:it.stiffness,damping:it.damping,mass:it.mass,isResolvedFromDuration:!1,...e};if(!Z1(e,S$)&&Z1(e,w$))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Zn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:it.mass,stiffness:i,damping:o}}else{const n=v$(e);t={...t,...n,mass:it.mass},t.isResolvedFromDuration=!0}return t}function J1(e=it.visualDuration,t=it.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:u,damping:d,mass:h,duration:m,velocity:p,isResolvedFromDuration:v}=T$({...n,velocity:-Jn(n.velocity||0)}),S=p||0,x=d/(2*Math.sqrt(u*h)),T=a-o,b=Jn(Math.sqrt(u/h)),C=Math.abs(T)<5;r||(r=C?it.restSpeed.granular:it.restSpeed.default),i||(i=C?it.restDelta.granular:it.restDelta.default);let E;if(x<1){const A=dd(b,x);E=D=>{const R=Math.exp(-x*b*D);return a-R*((S+x*b*T)/A*Math.sin(A*D)+T*Math.cos(A*D))}}else if(x===1)E=A=>a-Math.exp(-b*A)*(T+(S+b*T)*A);else{const A=b*Math.sqrt(x*x-1);E=D=>{const R=Math.exp(-x*b*D),j=Math.min(A*D,300);return a-R*((S+x*b*T)*Math.sinh(j)+A*T*Math.cosh(j))/A}}const $={calculatedDuration:v&&m||null,next:A=>{const D=E(A);if(v)c.done=A>=m;else{let R=0;x<1&&(R=A===0?Rn(S):K1(E,A,D));const j=Math.abs(R)<=r,V=Math.abs(a-D)<=i;c.done=j&&V}return c.value=c.done?a:D,c},toString:()=>{const A=Math.min(z1($),ad),D=c1(R=>$.next(A*R).value,A,30);return A+"ms "+D}};return $}function Q1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},v=j=>c!==void 0&&j<c||u!==void 0&&j>u,S=j=>c===void 0?u:u===void 0||Math.abs(c-j)<Math.abs(u-j)?c:u;let x=n*t;const T=m+x,b=a===void 0?T:a(T);b!==T&&(x=b-m);const C=j=>-x*Math.exp(-j/r),E=j=>b+C(j),$=j=>{const V=C(j),Z=E(j);p.done=Math.abs(V)<=d,p.value=p.done?b:Z};let A,D;const R=j=>{v(p.value)&&(A=j,D=J1({keyframes:[p.value,S(p.value)],velocity:K1(E,j,p.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return R(0),{calculatedDuration:null,next:j=>{let V=!1;return!D&&A===void 0&&(V=!0,$(j),R(j)),A!==void 0&&j>=A?D.next(j-A):(!V&&$(j),p)}}}const E$=To(.42,0,1,1),C$=To(0,0,.58,1),ex=To(.42,0,.58,1),P$=e=>Array.isArray(e)&&typeof e[0]!="number",tx={linear:kt,easeIn:E$,easeInOut:ex,easeOut:C$,circIn:Kf,circInOut:x1,circOut:v1,backIn:qf,backInOut:g1,backOut:p1,anticipate:y1},nx=e=>{if(Yf(e)){Er(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return To(t,n,r,i)}else if(typeof e=="string")return Er(tx[e]!==void 0,`Invalid easing type '${e}'`),tx[e];return e};function A$(e,t,n){const r=[],i=n||q1,o=e.length-1;for(let a=0;a<o;a++){let c=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||kt:t;c=Po(u,c)}r.push(c)}return r}function M$(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Er(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=A$(t,r,i),u=c.length,d=h=>{if(a&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const p=ls(e[m],e[m+1],h);return c[m](p)};return n?h=>d(Zn(e[0],e[o-1],h)):d}function O$(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ls(0,t,r);e.push(rt(n,1,i))}}function _$(e){const t=[0];return O$(t,e.length-1),t}function I$(e,t){return e.map(n=>n*t)}function $$(e,t){return e.map(()=>t||ex).splice(0,e.length-1)}function Ao({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=P$(r)?r.map(nx):nx(r),o={done:!1,value:t[0]},a=I$(n&&n.length===t.length?n:_$(t),e),c=M$(a,t,{ease:Array.isArray(i)?i:$$(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const D$=e=>{const t=({timestamp:n})=>e(n);return{start:()=>qe.update(t,!0),stop:()=>Cr(t),now:()=>vt.isProcessing?vt.timestamp:Ln.now()}},N$={decay:Q1,inertia:Q1,tween:Ao,keyframes:Ao,spring:J1},k$=e=>e/100;class hd extends U1{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||od,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new a(o,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,c=Gf(n)?n:N$[n]||Ao;let u,d;process.env.NODE_ENV!=="production"&&c!==Ao&&Er(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==Ao&&typeof t[0]!="number"&&(u=Po(k$,q1(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=z1(h));const{calculatedDuration:m}=h,p=m+i,v=p*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:v}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:j}=this.options;return{done:!0,value:j[j.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:u,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:p,repeat:v,repeatType:S,repeatDelay:x,onUpdate:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const b=this.currentTime-p*(this.speed>=0?1:-1),C=this.speed>=0?b<0:b>h;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let E=this.currentTime,$=o;if(v){const j=Math.min(this.currentTime,h)/m;let V=Math.floor(j),Z=j%1;!Z&&j>=1&&(Z=1),Z===1&&V--,V=Math.min(V,v+1),!!(V%2)&&(S==="reverse"?(Z=1-Z,x&&(Z-=x/m)):S==="mirror"&&($=a)),E=Zn(0,1,Z)*m}const A=C?{done:!1,value:u[0]}:$.next(E);c&&(A.value=c(A.value));let{done:D}=A;!C&&d!==null&&(D=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return R&&i!==void 0&&(A.value=Ka(u,this.options,i)),T&&T(A.value),R&&this.finish(),A}get duration(){const{resolved:t}=this;return t?Jn(t.calculatedDuration):0}get time(){return Jn(this.currentTime)}set time(t){t=Rn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Jn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=D$,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const L$=new Set(["opacity","clipPath","filter","transform"]);function R$(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=f1(c,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const j$=zf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Za=10,F$=2e4;function V$(e){return Gf(e.type)||e.type==="spring"||!u1(e.ease)}function B$(e,t){const n=new hd({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<F$;)r=n.sample(o),i.push(r.value),o+=Za;return{times:void 0,keyframes:i,duration:o-Za,ease:"linear"}}const rx={anticipate:y1,backInOut:g1,circInOut:x1};function W$(e){return e in rx}class ix extends U1{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new B1(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&qa()&&W$(o)&&(o=rx[o]),V$(this.options)){const{onComplete:m,onUpdate:p,motionValue:v,element:S,...x}=this.options,T=B$(t,x);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,i=T.times,o=T.ease,a="keyframes"}const h=R$(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(l1(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ka(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Jn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Jn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Rn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return kt;const{animation:r}=n;l1(r,t)}return kt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:p,...v}=this.options,S=new hd({...v,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),x=Rn(this.time);d.setWithVelocity(S.sample(x-Za).value,S.sample(x).value,Za)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return j$()&&r&&L$.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}}const U$={type:"spring",stiffness:500,damping:25,restSpeed:10},z$=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),G$={type:"keyframes",duration:.8},Y$={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},H$=(e,{keyframes:t})=>t.length>2?G$:li.has(e)?e.startsWith("scale")?z$(t[1]):U$:Y$;function q$({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const md=(e,t,n,r={},i,o)=>a=>{const c=Ff(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Rn(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:p=>{t.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};q$(c)||(h={...h,...H$(e,h)}),h.duration&&(h.duration=Rn(h.duration)),h.repeatDelay&&(h.repeatDelay=Rn(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!c.type&&!c.ease,m&&!o&&t.get()!==void 0){const p=Ka(h.keyframes,c);if(p!==void 0)return qe.update(()=>{h.onUpdate(p),h.onComplete()}),new T6([])}return!o&&ix.supports(h)?new ix(h):new hd(h)};function K$({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function sx(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in u){const p=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),v=u[m];if(v===void 0||h&&K$(h,m))continue;const S={delay:n,...Ff(a||{},m)};let x=!1;if(window.MotionHandoffAnimation){const b=a1(e);if(b){const C=window.MotionHandoffAnimation(b,m,qe);C!==null&&(S.startTime=C,x=!0)}}Uf(e,m),p.start(md(m,p,v,e.shouldReduceMotion&&i1.has(m)?{type:!1}:S,e,x));const T=p.animation;T&&d.push(T)}return c&&Promise.all(d).then(()=>{qe.update(()=>{c&&x6(e,c)})}),d}function pd(e,t,n={}){var r;const i=bo(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(sx(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return X$(e,t,h+d,m,p,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,h]=u==="beforeChildren"?[a,c]:[c,a];return d().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function X$(e,t,n=0,r=0,i=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(Z$).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(pd(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function Z$(e,t){return e.sortNodePosition(t)}function J$(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>pd(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=pd(e,t,n);else{const i=typeof t=="function"?bo(e,t,n.custom):t;r=Promise.all(sx(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function ox(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Q$=Cf.length;function ax(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?ax(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Q$;n++){const r=Cf[n],i=e.props[r];(go(i)||i===!1)&&(t[r]=i)}return t}const eD=[...Ef].reverse(),tD=Ef.length;function nD(e){return t=>Promise.all(t.map(({animation:n,options:r})=>J$(e,n,r)))}function rD(e){let t=nD(e),n=lx(),r=!0;const i=u=>(d,h)=>{var m;const p=bo(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:v,transitionEnd:S,...x}=p;d={...d,...x,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=ax(e.parent)||{},m=[],p=new Set;let v={},S=1/0;for(let T=0;T<tD;T++){const b=eD[T],C=n[b],E=d[b]!==void 0?d[b]:h[b],$=go(E),A=b===u?C.isActive:null;A===!1&&(S=T);let D=E===h[b]&&E!==d[b]&&$;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),C.protectedKeys={...v},!C.isActive&&A===null||!E&&!C.prevProp||Ua(E)||typeof E=="boolean")continue;const R=iD(C.prevProp,E);let j=R||b===u&&C.isActive&&!D&&$||T>S&&$,V=!1;const Z=Array.isArray(E)?E:[E];let ee=Z.reduce(i(b),{});A===!1&&(ee={});const{prevResolvedValues:se={}}=C,ge={...se,...ee},ue=G=>{j=!0,p.has(G)&&(V=!0,p.delete(G)),C.needsAnimating[G]=!0;const W=e.getValue(G);W&&(W.liveStyle=!1)};for(const G in ge){const W=ee[G],Y=se[G];if(v.hasOwnProperty(G))continue;let M=!1;Rf(W)&&Rf(Y)?M=!ox(W,Y):M=W!==Y,M?W!=null?ue(G):p.add(G):W!==void 0&&p.has(G)?ue(G):C.protectedKeys[G]=!0}C.prevProp=E,C.prevResolvedValues=ee,C.isActive&&(v={...v,...ee}),r&&e.blockInitialAnimation&&(j=!1),j&&(!(D&&R)||V)&&m.push(...Z.map(G=>({animation:G,options:{type:b}})))}if(p.size){const T={};if(typeof d.initial!="boolean"){const b=bo(e,Array.isArray(d.initial)?d.initial[0]:d.initial);b&&b.transition&&(T.transition=b.transition)}p.forEach(b=>{const C=e.getBaseTarget(b),E=e.getValue(b);E&&(E.liveStyle=!0),T[b]=C??null}),m.push({animation:T})}let x=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(m):Promise.resolve()}function c(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(p=>{var v;return(v=p.animationState)===null||v===void 0?void 0:v.setActive(u,d)}),n[u].isActive=d;const m=a(u);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=lx(),r=!0}}}function iD(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ox(t,e):!1}function di(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function lx(){return{animate:di(!0),whileInView:di(),whileHover:di(),whileTap:di(),whileDrag:di(),whileFocus:di(),exit:di()}}class Mr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class sD extends Mr{constructor(t){super(t),t.animationState||(t.animationState=rD(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ua(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let oD=0;class aD extends Mr{constructor(){super(...arguments),this.id=oD++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const lD={animation:{Feature:sD},exit:{Feature:aD}},xn={x:!1,y:!1};function cx(){return xn.x||xn.y}function cD(e){return e==="x"||e==="y"?xn[e]?null:(xn[e]=!0,()=>{xn[e]=!1}):xn.x||xn.y?null:(xn.x=xn.y=!0,()=>{xn.x=xn.y=!1})}function Mo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const gd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Oo(e){return{point:{x:e.pageX,y:e.pageY}}}const uD=e=>t=>gd(t)&&e(t,Oo(t));function _o(e,t,n,r){return Mo(e,t,uD(n),r)}function ux({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function fD({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function dD(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const fx=1e-4,hD=1-fx,mD=1+fx,dx=.01,pD=0-dx,gD=0+dx;function _t(e){return e.max-e.min}function yD(e,t,n){return Math.abs(e-t)<=n}function hx(e,t,n,r=.5){e.origin=r,e.originPoint=rt(t.min,t.max,e.origin),e.scale=_t(n)/_t(t),e.translate=rt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=hD&&e.scale<=mD||isNaN(e.scale))&&(e.scale=1),(e.translate>=pD&&e.translate<=gD||isNaN(e.translate))&&(e.translate=0)}function Io(e,t,n,r){hx(e.x,t.x,n.x,r?r.originX:void 0),hx(e.y,t.y,n.y,r?r.originY:void 0)}function mx(e,t,n){e.min=n.min+t.min,e.max=e.min+_t(t)}function vD(e,t,n){mx(e.x,t.x,n.x),mx(e.y,t.y,n.y)}function px(e,t,n){e.min=t.min-n.min,e.max=e.min+_t(t)}function $o(e,t,n){px(e.x,t.x,n.x),px(e.y,t.y,n.y)}const gx=()=>({translate:0,scale:1,origin:0,originPoint:0}),fs=()=>({x:gx(),y:gx()}),yx=()=>({min:0,max:0}),lt=()=>({x:yx(),y:yx()});function rn(e){return[e("x"),e("y")]}function yd(e){return e===void 0||e===1}function vd({scale:e,scaleX:t,scaleY:n}){return!yd(e)||!yd(t)||!yd(n)}function hi(e){return vd(e)||vx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vx(e){return xx(e.x)||xx(e.y)}function xx(e){return e&&e!=="0%"}function Ja(e,t,n){const r=e-n,i=t*r;return n+i}function bx(e,t,n,r,i){return i!==void 0&&(e=Ja(e,i,r)),Ja(e,n,r)+t}function xd(e,t=0,n=1,r,i){e.min=bx(e.min,t,n,r,i),e.max=bx(e.max,t,n,r,i)}function wx(e,{x:t,y:n}){xd(e.x,t.translate,t.scale,t.originPoint),xd(e.y,n.translate,n.scale,n.originPoint)}const Sx=.999999999999,Tx=1.0000000000001;function xD(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&hs(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,wx(e,a)),r&&hi(o.latestValues)&&hs(e,o.latestValues))}t.x<Tx&&t.x>Sx&&(t.x=1),t.y<Tx&&t.y>Sx&&(t.y=1)}function ds(e,t){e.min=e.min+t,e.max=e.max+t}function Ex(e,t,n,r,i=.5){const o=rt(e.min,e.max,i);xd(e,t,n,o,r)}function hs(e,t){Ex(e.x,t.x,t.scaleX,t.scale,t.originX),Ex(e.y,t.y,t.scaleY,t.scale,t.originY)}function Cx(e,t){return ux(dD(e.getBoundingClientRect(),t))}function bD(e,t,n){const r=Cx(e,n),{scroll:i}=t;return i&&(ds(r.x,i.offset.x),ds(r.y,i.offset.y)),r}const Px=({current:e})=>e?e.ownerDocument.defaultView:null,Ax=(e,t)=>Math.abs(e-t);function wD(e,t){const n=Ax(e.x,t.x),r=Ax(e.y,t.y);return Math.sqrt(n**2+r**2)}class Mx{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=wd(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,v=wD(m.offset,{x:0,y:0})>=3;if(!p&&!v)return;const{point:S}=m,{timestamp:x}=vt;this.history.push({...S,timestamp:x});const{onStart:T,onMove:b}=this.handlers;p||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=bd(p,this.transformPagePoint),qe.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:v,onSessionEnd:S,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=wd(m.type==="pointercancel"?this.lastMoveEventInfo:bd(p,this.transformPagePoint),this.history);this.startEvent&&v&&v(m,T),S&&S(m,T)},!gd(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Oo(t),c=bd(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=vt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,wd(c,this.history)),this.removeListeners=Po(_o(this.contextWindow,"pointermove",this.handlePointerMove),_o(this.contextWindow,"pointerup",this.handlePointerUp),_o(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Cr(this.updatePoint)}}function bd(e,t){return t?{point:t(e.point)}:e}function Ox(e,t){return{x:e.x-t.x,y:e.y-t.y}}function wd({point:e},t){return{point:e,delta:Ox(e,_x(t)),offset:Ox(e,SD(t)),velocity:TD(t,.1)}}function SD(e){return e[0]}function _x(e){return e[e.length-1]}function TD(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=_x(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Rn(t)));)n--;if(!r)return{x:0,y:0};const o=Jn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function ED(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?rt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?rt(n,e,r.max):Math.min(e,n)),e}function Ix(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function CD(e,{top:t,left:n,bottom:r,right:i}){return{x:Ix(e.x,n,i),y:Ix(e.y,t,r)}}function $x(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function PD(e,t){return{x:$x(e.x,t.x),y:$x(e.y,t.y)}}function AD(e,t){let n=.5;const r=_t(e),i=_t(t);return i>r?n=ls(t.min,t.max-r,e.min):r>i&&(n=ls(e.min,e.max-i,t.min)),Zn(0,1,n)}function MD(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Sd=.35;function OD(e=Sd){return e===!1?e=0:e===!0&&(e=Sd),{x:Dx(e,"left","right"),y:Dx(e,"top","bottom")}}function Dx(e,t,n){return{min:Nx(e,t),max:Nx(e,n)}}function Nx(e,t){return typeof e=="number"?e:e[t]||0}const _D=new WeakMap;class ID{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=lt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Oo(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:v,onDragStart:S}=this.getProps();if(p&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=cD(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rn(T=>{let b=this.getAxisMotionValue(T).get()||0;if(kn.test(b)){const{projection:C}=this.visualElement;if(C&&C.layout){const E=C.layout.layoutBox[T];E&&(b=_t(E)*(parseFloat(b)/100))}}this.originPoint[T]=b}),S&&qe.postRender(()=>S(h,m)),Uf(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:p,dragDirectionLock:v,onDirectionLock:S,onDrag:x}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=m;if(v&&this.currentDirection===null){this.currentDirection=$D(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),this.visualElement.render(),x&&x(h,m)},c=(h,m)=>this.stop(h,m),u=()=>rn(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Mx(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:Px(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&qe.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Qa(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=ED(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&ss(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=CD(i.layoutBox,n):this.constraints=!1,this.elastic=OD(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=MD(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ss(t))return!1;const r=t.current;Er(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=bD(r,i.root,this.visualElement.getTransformPagePoint());let a=PD(i.layout.layoutBox,o);if(n){const c=n(fD(a));this.hasMutatedConstraints=!!c,c&&(a=ux(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=rn(h=>{if(!Qa(h,n,this.currentDirection))return;let m=u&&u[h]||{};a&&(m={min:0,max:0});const p=i?200:1e6,v=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Uf(this.visualElement,t),r.start(md(t,r,0,n,this.visualElement,!1))}stopAnimation(){rn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){rn(n=>{const{drag:r}=this.getProps();if(!Qa(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(t[n]-rt(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ss(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};rn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();i[a]=AD({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rn(a=>{if(!Qa(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(rt(u,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;_D.set(this.visualElement,this);const t=this.visualElement.current,n=_o(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();ss(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),qe.read(r);const a=Mo(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(rn(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=u[h].translate,m.set(m.get()+u[h].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=Sd,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}}function Qa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function $D(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class DD extends Mr{constructor(t){super(t),this.removeGroupControls=kt,this.removeListeners=kt,this.controls=new ID(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||kt}unmount(){this.removeGroupControls(),this.removeListeners()}}const kx=e=>(t,n)=>{e&&qe.postRender(()=>e(t,n))};class ND extends Mr{constructor(){super(...arguments),this.removePointerDownListener=kt}onPointerDown(t){this.session=new Mx(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Px(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:kx(t),onStart:kx(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&qe.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=_o(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const el={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Lx(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Do={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=Lx(e,t.target.x),r=Lx(e,t.target.y);return`${n}% ${r}%`}},kD={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ar.parse(e);if(i.length>5)return r;const o=Ar.createTransformer(e),a=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;i[0+a]/=c,i[1+a]/=u;const d=rt(c,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};class LD extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;zI(RD),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),el.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||qe.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Pf.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Rx(e){const[t,n]=Ov(),r=_.useContext(xf);return y.jsx(LD,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(Vv),isPresent:t,safeToRemove:n})}const RD={borderRadius:{...Do,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Do,borderTopRightRadius:Do,borderBottomLeftRadius:Do,borderBottomRightRadius:Do,boxShadow:kD};function jD(e,t,n){const r=Et(e)?e:wo(e);return r.start(md("",r,t,n)),r.animation}function FD(e){return e instanceof SVGElement&&e.tagName!=="svg"}const VD=(e,t)=>e.depth-t.depth;class BD{constructor(){this.children=[],this.isDirty=!1}add(t){Vf(this.children,t),this.isDirty=!0}remove(t){Bf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(VD),this.isDirty=!1,this.children.forEach(t)}}function WD(e,t){const n=Ln.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Cr(r),e(o-t))};return qe.read(r,!0),()=>Cr(r)}const jx=["TopLeft","TopRight","BottomLeft","BottomRight"],UD=jx.length,Fx=e=>typeof e=="string"?parseFloat(e):e,Vx=e=>typeof e=="number"||Se.test(e);function zD(e,t,n,r,i,o){i?(e.opacity=rt(0,n.opacity!==void 0?n.opacity:1,GD(r)),e.opacityExit=rt(t.opacity!==void 0?t.opacity:1,0,YD(r))):o&&(e.opacity=rt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<UD;a++){const c=`border${jx[a]}Radius`;let u=Bx(t,c),d=Bx(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||Vx(u)===Vx(d)?(e[c]=Math.max(rt(Fx(u),Fx(d),r),0),(kn.test(d)||kn.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=rt(t.rotate||0,n.rotate||0,r))}function Bx(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const GD=Wx(0,.5,v1),YD=Wx(.5,.95,kt);function Wx(e,t,n){return r=>r<e?0:r>t?1:n(ls(e,t,r))}function Ux(e,t){e.min=t.min,e.max=t.max}function sn(e,t){Ux(e.x,t.x),Ux(e.y,t.y)}function zx(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Gx(e,t,n,r,i){return e-=t,e=Ja(e,1/n,r),i!==void 0&&(e=Ja(e,1/i,r)),e}function HD(e,t=0,n=1,r=.5,i,o=e,a=e){if(kn.test(t)&&(t=parseFloat(t),t=rt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=rt(o.min,o.max,r);e===o&&(c-=t),e.min=Gx(e.min,t,n,c,i),e.max=Gx(e.max,t,n,c,i)}function Yx(e,t,[n,r,i],o,a){HD(e,t[n],t[r],t[i],t.scale,o,a)}const qD=["x","scaleX","originX"],KD=["y","scaleY","originY"];function Hx(e,t,n,r){Yx(e.x,t,qD,n?n.x:void 0,r?r.x:void 0),Yx(e.y,t,KD,n?n.y:void 0,r?r.y:void 0)}function qx(e){return e.translate===0&&e.scale===1}function Kx(e){return qx(e.x)&&qx(e.y)}function Xx(e,t){return e.min===t.min&&e.max===t.max}function XD(e,t){return Xx(e.x,t.x)&&Xx(e.y,t.y)}function Zx(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Jx(e,t){return Zx(e.x,t.x)&&Zx(e.y,t.y)}function Qx(e){return _t(e.x)/_t(e.y)}function eb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class ZD{constructor(){this.members=[]}add(t){Vf(this.members,t),t.scheduleRender()}remove(t){if(Bf(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function JD(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:p,skewX:v,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),v&&(r+=`skewX(${v}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const Td=["","X","Y","Z"],QD={visibility:"hidden"},tb=1e3;let e5=0;function Ed(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function nb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=a1(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",qe,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&nb(r)}function rb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=e5++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(r5),this.nodes.forEach(l5),this.nodes.forEach(c5),this.nodes.forEach(i5)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new BD)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Wf),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=FD(a),this.instance=a;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let m;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=WD(p,250),el.hasAnimatedSinceResize&&(el.hasAnimatedSinceResize=!1,this.nodes.forEach(sb))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:v,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||h.getDefaultTransition()||m5,{onLayoutAnimationStart:T,onLayoutAnimationComplete:b}=h.getProps(),C=!this.targetLayout||!Jx(this.targetLayout,S),E=!p&&v;if(this.options.layoutRoot||this.resumeFrom||E||p&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,E);const $={...Ff(x,"layout"),onPlay:T,onComplete:b};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else p||sb(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Cr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(u5),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&nb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ib);return}this.isUpdating||this.nodes.forEach(o5),this.isUpdating=!1,this.nodes.forEach(a5),this.nodes.forEach(t5),this.nodes.forEach(n5),this.clearAllSnapshots();const c=Ln.now();vt.delta=Zn(0,1e3/60,c-vt.timestamp),vt.timestamp=c,vt.isProcessing=!0,Tf.update.process(vt),Tf.preRender.process(vt),Tf.render.process(vt),vt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Pf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(s5),this.sharedNodes.forEach(f5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,qe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){qe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!_t(this.snapshot.measuredBox.x)&&!_t(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=lt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!Kx(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||hi(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),p5(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return lt();const u=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(g5))){const{scroll:h}=this.root;h&&(ds(u.x,h.offset.x),ds(u.y,h.offset.y))}return u}removeElementScroll(a){var c;const u=lt();if(sn(u,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:p}=h;h!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&sn(u,a),ds(u.x,m.offset.x),ds(u.y,m.offset.y))}return u}applyTransform(a,c=!1){const u=lt();sn(u,a);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&hs(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),hi(h.latestValues)&&hs(u,h.latestValues)}return hi(this.latestValues)&&hs(u,this.latestValues),u}removeTransform(a){const c=lt();sn(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!hi(d.latestValues))continue;vd(d.latestValues)&&d.updateSnapshot();const h=lt(),m=d.measurePageBox();sn(h,m),Hx(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return hi(this.latestValues)&&Hx(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==vt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!(!this.layout||!(m||p))){if(this.resolvedRelativeTargetAt=vt.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),$o(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=lt(),this.targetWithTransforms=lt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),vD(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),wx(this.target,this.targetDelta)):sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),$o(this.relativeTargetOrigin,this.target,v.target),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||vd(this.parent.latestValues)||vx(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===vt.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;sn(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,v=this.treeScale.y;xD(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=lt());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(zx(this.prevProjectionDelta.x,this.projectionDelta.x),zx(this.prevProjectionDelta.y,this.projectionDelta.y)),Io(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==v||!eb(this.projectionDelta.x,this.prevProjectionDelta.x)||!eb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=fs(),this.projectionDelta=fs(),this.projectionDeltaWithTransform=fs()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=fs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=lt(),v=u?u.source:void 0,S=this.layout?this.layout.source:void 0,x=v!==S,T=this.getStack(),b=!T||T.members.length<=1,C=!!(x&&!b&&this.options.crossfade===!0&&!this.path.some(h5));this.animationProgress=0;let E;this.mixTargetDelta=$=>{const A=$/1e3;ob(m.x,a.x,A),ob(m.y,a.y,A),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&($o(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),d5(this.relativeTarget,this.relativeTargetOrigin,p,A),E&&XD(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=lt()),sn(E,this.relativeTarget)),x&&(this.animationValues=h,zD(h,d,this.latestValues,A,C,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Cr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=qe.update(()=>{el.hasAnimatedSinceResize=!0,this.currentAnimation=jD(0,tb,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(tb),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&fb(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||lt();const m=_t(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+m;const p=_t(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+p}sn(c,u),hs(c,h),Io(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new ZD),this.sharedNodes.get(a).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&Ed("z",a,d,this.animationValues);for(let h=0;h<Td.length;h++)Ed(`rotate${Td[h]}`,a,d,this.animationValues),Ed(`skew${Td[h]}`,a,d,this.animationValues);a.render();for(const h in d)a.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return QD;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Ya(a==null?void 0:a.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const x={};return this.options.layoutId&&(x.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,x.pointerEvents=Ya(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!hi(this.latestValues)&&(x.transform=h?h({},""):"none",this.hasProjected=!1),x}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=JD(this.projectionDeltaWithTransform,this.treeScale,p),h&&(d.transform=h(p,d.transform));const{x:v,y:S}=this.projectionDelta;d.transformOrigin=`${v.origin*100}% ${S.origin*100}% 0`,m.animationValues?d.opacity=m===this?(u=(c=p.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:d.opacity=m===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const x in yo){if(p[x]===void 0)continue;const{correct:T,applyTo:b,isCSSVariable:C}=yo[x],E=d.transform==="none"?p[x]:T(p[x],m);if(b){const $=b.length;for(let A=0;A<$;A++)d[b[A]]=E}else C?this.options.visualElement.renderState.vars[x]=E:d[x]=E}return this.options.layoutId&&(d.pointerEvents=m===this?Ya(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(ib),this.root.sharedNodes.clear()}}}function t5(e){e.updateLayout()}function n5(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?rn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],v=_t(p);p.min=r[m].min,p.max=p.min+v}):fb(o,n.layoutBox,r)&&rn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],v=_t(r[m]);p.max=p.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+v)});const c=fs();Io(c,r,n.layoutBox);const u=fs();a?Io(u,e.applyTransform(i,!0),n.measuredBox):Io(u,r,n.layoutBox);const d=!Kx(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:v}=m;if(p&&v){const S=lt();$o(S,n.layoutBox,p.layoutBox);const x=lt();$o(x,r,v.layoutBox),Jx(S,x)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function r5(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function i5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function s5(e){e.clearSnapshot()}function ib(e){e.clearMeasurements()}function o5(e){e.isLayoutDirty=!1}function a5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function l5(e){e.resolveTargetDelta()}function c5(e){e.calcProjection()}function u5(e){e.resetSkewAndRotation()}function f5(e){e.removeLeadSnapshot()}function ob(e,t,n){e.translate=rt(t.translate,0,n),e.scale=rt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ab(e,t,n,r){e.min=rt(t.min,n.min,r),e.max=rt(t.max,n.max,r)}function d5(e,t,n,r){ab(e.x,t.x,n.x,r),ab(e.y,t.y,n.y,r)}function h5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const m5={duration:.45,ease:[.4,0,.1,1]},lb=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),cb=lb("applewebkit/")&&!lb("chrome/")?Math.round:kt;function ub(e){e.min=cb(e.min),e.max=cb(e.max)}function p5(e){ub(e.x),ub(e.y)}function fb(e,t,n){return e==="position"||e==="preserve-aspect"&&!yD(Qx(t),Qx(n),.2)}function g5(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const y5=rb({attachResizeListener:(e,t)=>Mo(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Cd={current:void 0},db=rb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Cd.current){const e=new y5({});e.mount(window),e.setOptions({layoutScroll:!0}),Cd.current=e}return Cd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),v5={pan:{Feature:ND},drag:{Feature:DD,ProjectionNode:db,MeasureLayout:Rx}};function x5(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function hb(e,t){const n=x5(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function mb(e){return!(e.pointerType==="touch"||cx())}function b5(e,t,n={}){const[r,i,o]=hb(e,n),a=c=>{if(!mb(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{mb(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}function pb(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&qe.postRender(()=>o(t,Oo(t)))}class w5 extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=b5(t,(n,r)=>(pb(this.node,r,"Start"),i=>pb(this.node,i,"End"))))}unmount(){}}class S5 extends Mr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Po(Mo(this.node.current,"focus",()=>this.onFocus()),Mo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const gb=(e,t)=>t?e===t?!0:gb(e,t.parentElement):!1,T5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function E5(e){return T5.has(e.tagName)||e.tabIndex!==-1}const No=new WeakSet;function yb(e){return t=>{t.key==="Enter"&&e(t)}}function Pd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const C5=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=yb(()=>{if(No.has(n))return;Pd(n,"down");const i=yb(()=>{Pd(n,"up")}),o=()=>Pd(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function vb(e){return gd(e)&&!cx()}function P5(e,t,n={}){const[r,i,o]=hb(e,n),a=c=>{const u=c.currentTarget;if(!vb(c)||No.has(u))return;No.add(u);const d=t(u,c),h=(v,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!vb(v)||!No.has(u))&&(No.delete(u),typeof d=="function"&&d(v,{success:S}))},m=v=>{h(v,u===window||u===document||n.useGlobalTarget||gb(u,v.target))},p=v=>{h(v,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",p,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>C5(d,i)),!E5(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}function xb(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&qe.postRender(()=>o(t,Oo(t)))}class A5 extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=P5(t,(n,r)=>(xb(this.node,r,"Start"),(i,{success:o})=>xb(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ad=new WeakMap,Md=new WeakMap,M5=e=>{const t=Ad.get(e.target);t&&t(e)},O5=e=>{e.forEach(M5)};function _5({root:e,...t}){const n=e||document;Md.has(n)||Md.set(n,{});const r=Md.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(O5,{root:e,...t})),r[i]}function I5(e,t,n){const r=_5(t);return Ad.set(e,n),r.observe(e),()=>{Ad.delete(e),r.unobserve(e)}}const $5={some:0,all:1};class D5 extends Mr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:$5[i]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),p=d?h:m;p&&p(u)};return I5(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(N5(t,n))&&this.startObserver()}unmount(){}}function N5({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const k5={inView:{Feature:D5},tap:{Feature:A5},focus:{Feature:S5},hover:{Feature:w5}},L5={layout:{ProjectionNode:db,MeasureLayout:Rx}},Od={current:null},bb={current:!1};function R5(){if(bb.current=!0,!!wf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Od.current=e.matches;e.addListener(t),t()}else Od.current=!1}const j5=[...F1,Ct,Ar],F5=e=>j5.find(j1(e)),V5=new WeakMap;function B5(e,t,n){for(const r in t){const i=t[r],o=n[r];if(Et(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&Ba(i.version==="12.6.2",`Attempting to mix Motion versions ${i.version} with 12.6.2 may not work as expected.`);else if(Et(o))e.addValue(r,wo(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,wo(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const wb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class W5{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=od,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const v=Ln.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,qe.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=za(n),this.isVariantNode=Rv(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in p){const S=p[v];u[v]!==void 0&&Et(S)&&S.set(u[v],!1)}}mount(t){this.current=t,V5.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),bb.current||R5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Od.current,process.env.NODE_ENV!=="production"&&Ba(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Cr(this.notifyUpdate),Cr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=li.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&qe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in is){const n=is[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):lt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<wb.length;r++){const i=wb[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=B5(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=wo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(L1(i)||b1(i))?i=parseFloat(i):!F5(i)&&Ar.test(n)&&(i=M1(t,n)),this.setBaseTarget(t,Et(i)?i.get():i)),Et(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=Lf(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Et(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Wf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Sb extends W5{constructor(){super(...arguments),this.KeyframeResolver=B1}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Et(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function U5(e){return window.getComputedStyle(e)}class z5 extends Sb{constructor(){super(...arguments),this.type="html",this.renderInstance=Qv}readValueFromInstance(t,n){if(li.has(n))return K6(t,n);{const r=U5(t),i=(Mf(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Cx(t,n)}build(t,n,r){If(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return jf(t,n,r)}}class G5 extends Sb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Jv(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(li.has(n)){const r=A1(n);return r&&r.default||0}return n=e1.has(n)?n:Af(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return n1(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&qe.postRender(this.updateDimensions)}build(t,n,r){Nf(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){t1(t,n,r,i)}mount(t){this.isSVGTag=kf(t.tagName),super.mount(t)}}const Y5=(e,t)=>Df(e)?new G5(t):new z5(t,{allowProjection:e!==_.Fragment}),H5=m6({...lD,...k5,...v5,...L5},Y5),Ge=II(H5),_d={defaultColorScheme:"aqua",t:e=>e},Tb=_.createContext(_d),Ue=()=>_.useContext(Tb),q5={date:(e,t)=>new Date(t.created_at??"").toDateString()===e.toDateString(),search:(e,t)=>JSON.stringify(t).toLowerCase().includes(e.toLowerCase())};function K5(e,t){const[n,r]=_.useState([]),i=_.useCallback(({key:h,value:m,label:p,type:v,icon:S,options:x})=>{if(n.find(C=>C.key===h)){console.warn(`El filtro con key "${String(h)}" ya existe, salteando la actualización...`);return}let b;typeof t=="string"?b=q5[t]:b=t[h]||t[h],r(C=>[...C,{key:h,value:m,label:p,type:v,icon:S,options:x,fn:b}])},[t,n]),o=_.useCallback(({key:h,value:m})=>{r(p=>p.map(v=>v.key===h?{...v,value:m}:v))},[]),a=_.useCallback(({key:h})=>{r(m=>m.filter(p=>p.key!==h))},[]),c=_.useCallback(()=>{r([])},[]),u=_.useMemo(()=>n.reduce((h,m)=>h.filter(p=>m.fn(m.value,p)),e),[e,n]),d=_.useMemo(()=>({addFilter:i,updateFilter:o,removeFilter:a,clearFilters:c,activeFilters:n.map(h=>({key:h.key,value:h.value,label:h.label,type:h.type,icon:h.icon,options:h.options}))}),[i,o,a,c,n]);return{data:u,filterControl:d}}const Eb=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:o,showCloseButton:a=!0})=>{const{t:c}=Ue(),u={hidden:{opacity:0},visible:{opacity:1}},d={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},h=()=>{i==null||i(),r()},m=()=>{o==null||o(),r()};return y.jsx(vn,{children:n&&y.jsx(y.Fragment,{children:y.jsx(Ge.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:u,onClick:r,children:y.jsx(Ge.div,{className:"w-full max-w-4xl mx-16 z-50",variants:d,initial:"hidden",animate:"visible",exit:"exit",onClick:p=>p.stopPropagation(),children:y.jsxs(Ss,{className:"flex flex-col gap-16 p-32",children:[y.jsxs("div",{className:"flex justify-between items-center gap-16",children:[y.jsx("h3",{className:"text-black font-700 text-3xl",children:e}),a&&y.jsx(Pe,{icon:nu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})]}),y.jsx("p",{className:"text-gray-500 text-xl font-600",children:t}),y.jsxs("div",{className:"flex justify-end w-full gap-16",children:[o&&y.jsx(wi,{onClick:m,variant:"transparent",className:"px-24 py-10! text-lg!",children:c("cancel")}),i&&y.jsx(wi,{onClick:h,className:"px-24 py-16 text-lg!",children:c("confirm")})]})]})})})})})};/*!
|
|
660
|
-
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
|
|
661
|
-
* License - https://fontawesome.com/license (Commercial License)
|
|
662
|
-
* Copyright 2024 Fonticons, Inc.
|
|
663
|
-
*/const X5={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},Z5={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},J5={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},Q5={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},e3={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]};function tl(){return typeof window<"u"}function ms(e){return Cb(e)?(e.nodeName||"").toLowerCase():"#document"}function Lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function jn(e){var t;return(t=(Cb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Cb(e){return tl()?e instanceof Node||e instanceof Lt(e).Node:!1}function Ke(e){return tl()?e instanceof Element||e instanceof Lt(e).Element:!1}function Rt(e){return tl()?e instanceof HTMLElement||e instanceof Lt(e).HTMLElement:!1}function Id(e){return!tl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Lt(e).ShadowRoot}function ko(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=on(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function t3(e){return["table","td","th"].includes(ms(e))}function nl(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function $d(e){const t=rl(),n=Ke(e)?on(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function n3(e){let t=er(e);for(;Rt(t)&&!Qn(t);){if($d(t))return t;if(nl(t))return null;t=er(t)}return null}function rl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Qn(e){return["html","body","#document"].includes(ms(e))}function on(e){return Lt(e).getComputedStyle(e)}function il(e){return Ke(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function er(e){if(ms(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Id(e)&&e.host||jn(e);return Id(t)?t.host:t}function Pb(e){const t=er(e);return Qn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Rt(t)&&ko(t)?t:Pb(t)}function Or(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Pb(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Lt(i);if(o){const c=Dd(a);return t.concat(a,a.visualViewport||[],ko(i)?i:[],c&&n?Or(c):[])}return t.concat(i,Or(i,[],n))}function Dd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ab(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function Lo(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Id(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Mb(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Ob(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function r3(e){return o3()?!1:!_b()&&e.width===0&&e.height===0||_b()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function i3(){return/apple/i.test(navigator.vendor)}function _b(){const e=/android/i;return e.test(Mb())||e.test(Ob())}function s3(){return Mb().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function o3(){return Ob().includes("jsdom/")}function Ro(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function a3(e){return"nativeEvent"in e}function l3(e){return e.matches("html,body")}function mi(e){return(e==null?void 0:e.ownerDocument)||document}function Nd(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function ps(e){return"composedPath"in e?e.composedPath()[0]:e.target}const c3="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Ib(e){return Rt(e)&&e.matches(c3)}const _r=Math.min,Yt=Math.max,sl=Math.round,ol=Math.floor,Fn=e=>({x:e,y:e}),u3={left:"right",right:"left",bottom:"top",top:"bottom"},f3={start:"end",end:"start"};function kd(e,t,n){return Yt(e,_r(t,n))}function gs(e,t){return typeof e=="function"?e(t):e}function Ir(e){return e.split("-")[0]}function ys(e){return e.split("-")[1]}function $b(e){return e==="x"?"y":"x"}function Ld(e){return e==="y"?"height":"width"}function pi(e){return["top","bottom"].includes(Ir(e))?"y":"x"}function Rd(e){return $b(pi(e))}function d3(e,t,n){n===void 0&&(n=!1);const r=ys(e),i=Rd(e),o=Ld(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=al(a)),[a,al(a)]}function h3(e){const t=al(e);return[jd(e),t,jd(t)]}function jd(e){return e.replace(/start|end/g,t=>f3[t])}function m3(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function p3(e,t,n,r){const i=ys(e);let o=m3(Ir(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(jd)))),o}function al(e){return e.replace(/left|right|bottom|top/g,t=>u3[t])}function g3(e){return{top:0,right:0,bottom:0,left:0,...e}}function Db(e){return typeof e!="number"?g3(e):{top:e,right:e,bottom:e,left:e}}function ll(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Nb(e,t,n){let{reference:r,floating:i}=e;const o=pi(t),a=Rd(t),c=Ld(a),u=Ir(t),d=o==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,p=r[c]/2-i[c]/2;let v;switch(u){case"top":v={x:h,y:r.y-i.height};break;case"bottom":v={x:h,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:m};break;case"left":v={x:r.x-i.width,y:m};break;default:v={x:r.x,y:r.y}}switch(ys(t)){case"start":v[a]-=p*(n&&d?-1:1);break;case"end":v[a]+=p*(n&&d?-1:1);break}return v}const y3=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,c=o.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=Nb(d,r,u),p=r,v={},S=0;for(let x=0;x<c.length;x++){const{name:T,fn:b}=c[x],{x:C,y:E,data:$,reset:A}=await b({x:h,y:m,initialPlacement:r,placement:p,strategy:i,middlewareData:v,rects:d,platform:a,elements:{reference:e,floating:t}});h=C??h,m=E??m,v={...v,[T]:{...v[T],...$}},A&&S<=50&&(S++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(d=A.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):A.rects),{x:h,y:m}=Nb(d,p,u)),x=-1)}return{x:h,y:m,placement:p,strategy:i,middlewareData:v}};async function Fd(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:c,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:p=!1,padding:v=0}=gs(t,e),S=Db(v),T=c[p?m==="floating"?"reference":"floating":m],b=ll(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(T)))==null||n?T:T.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:d,rootBoundary:h,strategy:u})),C=m==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),$=await(o.isElement==null?void 0:o.isElement(E))?await(o.getScale==null?void 0:o.getScale(E))||{x:1,y:1}:{x:1,y:1},A=ll(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:C,offsetParent:E,strategy:u}):C);return{top:(b.top-A.top+S.top)/$.y,bottom:(A.bottom-b.bottom+S.bottom)/$.y,left:(b.left-A.left+S.left)/$.x,right:(A.right-b.right+S.right)/$.x}}const v3=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:c,middlewareData:u}=t,{element:d,padding:h=0}=gs(e,t)||{};if(d==null)return{};const m=Db(h),p={x:n,y:r},v=Rd(i),S=Ld(v),x=await a.getDimensions(d),T=v==="y",b=T?"top":"left",C=T?"bottom":"right",E=T?"clientHeight":"clientWidth",$=o.reference[S]+o.reference[v]-p[v]-o.floating[S],A=p[v]-o.reference[v],D=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let R=D?D[E]:0;(!R||!await(a.isElement==null?void 0:a.isElement(D)))&&(R=c.floating[E]||o.floating[S]);const j=$/2-A/2,V=R/2-x[S]/2-1,Z=_r(m[b],V),ee=_r(m[C],V),se=Z,ge=R-x[S]-ee,ue=R/2-x[S]/2+j,fe=kd(se,ue,ge),he=!u.arrow&&ys(i)!=null&&ue!==fe&&o.reference[S]/2-(ue<se?Z:ee)-x[S]/2<0,G=he?ue<se?ue-se:ue-ge:0;return{[v]:p[v]+G,data:{[v]:fe,centerOffset:ue-fe-G,...he&&{alignmentOffset:G}},reset:he}}}),x3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:c,platform:u,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:x=!0,...T}=gs(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const b=Ir(i),C=pi(c),E=Ir(c)===c,$=await(u.isRTL==null?void 0:u.isRTL(d.floating)),A=p||(E||!x?[al(c)]:h3(c)),D=S!=="none";!p&&D&&A.push(...p3(c,x,S,$));const R=[c,...A],j=await Fd(t,T),V=[];let Z=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&V.push(j[b]),m){const ue=d3(i,a,$);V.push(j[ue[0]],j[ue[1]])}if(Z=[...Z,{placement:i,overflows:V}],!V.every(ue=>ue<=0)){var ee,se;const ue=(((ee=o.flip)==null?void 0:ee.index)||0)+1,fe=R[ue];if(fe)return{data:{index:ue,overflows:Z},reset:{placement:fe}};let he=(se=Z.filter(G=>G.overflows[0]<=0).sort((G,W)=>G.overflows[1]-W.overflows[1])[0])==null?void 0:se.placement;if(!he)switch(v){case"bestFit":{var ge;const G=(ge=Z.filter(W=>{if(D){const Y=pi(W.placement);return Y===C||Y==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(Y=>Y>0).reduce((Y,M)=>Y+M,0)]).sort((W,Y)=>W[1]-Y[1])[0])==null?void 0:ge[0];G&&(he=G);break}case"initialPlacement":he=c;break}if(i!==he)return{reset:{placement:he}}}return{}}}};async function b3(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Ir(n),c=ys(n),u=pi(n)==="y",d=["left","top"].includes(a)?-1:1,h=o&&u?-1:1,m=gs(t,e);let{mainAxis:p,crossAxis:v,alignmentAxis:S}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof S=="number"&&(v=c==="end"?S*-1:S),u?{x:v*h,y:p*d}:{x:p*d,y:v*h}}const w3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:c}=t,u=await b3(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:i+u.x,y:o+u.y,data:{...u,placement:a}}}}},S3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:c={fn:T=>{let{x:b,y:C}=T;return{x:b,y:C}}},...u}=gs(e,t),d={x:n,y:r},h=await Fd(t,u),m=pi(Ir(i)),p=$b(m);let v=d[p],S=d[m];if(o){const T=p==="y"?"top":"left",b=p==="y"?"bottom":"right",C=v+h[T],E=v-h[b];v=kd(C,v,E)}if(a){const T=m==="y"?"top":"left",b=m==="y"?"bottom":"right",C=S+h[T],E=S-h[b];S=kd(C,S,E)}const x=c.fn({...t,[p]:v,[m]:S});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[p]:o,[m]:a}}}}}},T3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:c}=t,{apply:u=()=>{},...d}=gs(e,t),h=await Fd(t,d),m=Ir(i),p=ys(i),v=pi(i)==="y",{width:S,height:x}=o.floating;let T,b;m==="top"||m==="bottom"?(T=m,b=p===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(b=m,T=p==="end"?"top":"bottom");const C=x-h.top-h.bottom,E=S-h.left-h.right,$=_r(x-h[T],C),A=_r(S-h[b],E),D=!t.middlewareData.shift;let R=$,j=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=C),D&&!p){const Z=Yt(h.left,0),ee=Yt(h.right,0),se=Yt(h.top,0),ge=Yt(h.bottom,0);v?j=S-2*(Z!==0||ee!==0?Z+ee:Yt(h.left,h.right)):R=x-2*(se!==0||ge!==0?se+ge:Yt(h.top,h.bottom))}await u({...t,availableWidth:j,availableHeight:R});const V=await a.getDimensions(c.floating);return S!==V.width||x!==V.height?{reset:{rects:!0}}:{}}}};function kb(e){const t=on(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Rt(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,c=sl(n)!==o||sl(r)!==a;return c&&(n=o,r=a),{width:n,height:r,$:c}}function Vd(e){return Ke(e)?e:e.contextElement}function vs(e){const t=Vd(e);if(!Rt(t))return Fn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=kb(t);let a=(o?sl(n.width):n.width)/r,c=(o?sl(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const E3=Fn(0);function Lb(e){const t=Lt(e);return!rl()||!t.visualViewport?E3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function C3(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Lt(e)?!1:t}function gi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Vd(e);let a=Fn(1);t&&(r?Ke(r)&&(a=vs(r)):a=vs(e));const c=C3(o,n,r)?Lb(o):Fn(0);let u=(i.left+c.x)/a.x,d=(i.top+c.y)/a.y,h=i.width/a.x,m=i.height/a.y;if(o){const p=Lt(o),v=r&&Ke(r)?Lt(r):r;let S=p,x=Dd(S);for(;x&&r&&v!==S;){const T=vs(x),b=x.getBoundingClientRect(),C=on(x),E=b.left+(x.clientLeft+parseFloat(C.paddingLeft))*T.x,$=b.top+(x.clientTop+parseFloat(C.paddingTop))*T.y;u*=T.x,d*=T.y,h*=T.x,m*=T.y,u+=E,d+=$,S=Lt(x),x=Dd(S)}}return ll({width:h,height:m,x:u,y:d})}function Bd(e,t){const n=il(e).scrollLeft;return t?t.left+n:gi(jn(e)).left+n}function Rb(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Bd(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function P3(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=jn(r),c=t?nl(t.floating):!1;if(r===a||c&&o)return n;let u={scrollLeft:0,scrollTop:0},d=Fn(1);const h=Fn(0),m=Rt(r);if((m||!m&&!o)&&((ms(r)!=="body"||ko(a))&&(u=il(r)),Rt(r))){const v=gi(r);d=vs(r),h.x=v.x+r.clientLeft,h.y=v.y+r.clientTop}const p=a&&!m&&!o?Rb(a,u,!0):Fn(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+h.x+p.x,y:n.y*d.y-u.scrollTop*d.y+h.y+p.y}}function A3(e){return Array.from(e.getClientRects())}function M3(e){const t=jn(e),n=il(e),r=e.ownerDocument.body,i=Yt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Yt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Bd(e);const c=-n.scrollTop;return on(r).direction==="rtl"&&(a+=Yt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:c}}function O3(e,t){const n=Lt(e),r=jn(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,c=0,u=0;if(i){o=i.width,a=i.height;const d=rl();(!d||d&&t==="fixed")&&(c=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:c,y:u}}function _3(e,t){const n=gi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Rt(e)?vs(e):Fn(1),a=e.clientWidth*o.x,c=e.clientHeight*o.y,u=i*o.x,d=r*o.y;return{width:a,height:c,x:u,y:d}}function jb(e,t,n){let r;if(t==="viewport")r=O3(e,n);else if(t==="document")r=M3(jn(e));else if(Ke(t))r=_3(t,n);else{const i=Lb(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ll(r)}function Fb(e,t){const n=er(e);return n===t||!Ke(n)||Qn(n)?!1:on(n).position==="fixed"||Fb(n,t)}function I3(e,t){const n=t.get(e);if(n)return n;let r=Or(e,[],!1).filter(c=>Ke(c)&&ms(c)!=="body"),i=null;const o=on(e).position==="fixed";let a=o?er(e):e;for(;Ke(a)&&!Qn(a);){const c=on(a),u=$d(a);!u&&c.position==="fixed"&&(i=null),(o?!u&&!i:!u&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||ko(a)&&!u&&Fb(e,a))?r=r.filter(h=>h!==a):i=c,a=er(a)}return t.set(e,r),r}function $3(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?nl(t)?[]:I3(t,this._c):[].concat(n),r],c=a[0],u=a.reduce((d,h)=>{const m=jb(t,h,i);return d.top=Yt(m.top,d.top),d.right=_r(m.right,d.right),d.bottom=_r(m.bottom,d.bottom),d.left=Yt(m.left,d.left),d},jb(t,c,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function D3(e){const{width:t,height:n}=kb(e);return{width:t,height:n}}function N3(e,t,n){const r=Rt(t),i=jn(t),o=n==="fixed",a=gi(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const u=Fn(0);if(r||!r&&!o)if((ms(t)!=="body"||ko(i))&&(c=il(t)),r){const p=gi(t,!0,o,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else i&&(u.x=Bd(i));const d=i&&!r&&!o?Rb(i,c):Fn(0),h=a.left+c.scrollLeft-u.x-d.x,m=a.top+c.scrollTop-u.y-d.y;return{x:h,y:m,width:a.width,height:a.height}}function Wd(e){return on(e).position==="static"}function Vb(e,t){if(!Rt(e)||on(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return jn(e)===n&&(n=n.ownerDocument.body),n}function Bb(e,t){const n=Lt(e);if(nl(e))return n;if(!Rt(e)){let i=er(e);for(;i&&!Qn(i);){if(Ke(i)&&!Wd(i))return i;i=er(i)}return n}let r=Vb(e,t);for(;r&&t3(r)&&Wd(r);)r=Vb(r,t);return r&&Qn(r)&&Wd(r)&&!$d(r)?n:r||n3(e)||n}const k3=async function(e){const t=this.getOffsetParent||Bb,n=this.getDimensions,r=await n(e.floating);return{reference:N3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function L3(e){return on(e).direction==="rtl"}const R3={convertOffsetParentRelativeRectToViewportRelativeRect:P3,getDocumentElement:jn,getClippingRect:$3,getOffsetParent:Bb,getElementRects:k3,getClientRects:A3,getDimensions:D3,getScale:vs,isElement:Ke,isRTL:L3};function Wb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function j3(e,t){let n=null,r;const i=jn(e);function o(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),o();const d=e.getBoundingClientRect(),{left:h,top:m,width:p,height:v}=d;if(c||t(),!p||!v)return;const S=ol(m),x=ol(i.clientWidth-(h+p)),T=ol(i.clientHeight-(m+v)),b=ol(h),E={rootMargin:-S+"px "+-x+"px "+-T+"px "+-b+"px",threshold:Yt(0,_r(1,u))||1};let $=!0;function A(D){const R=D[0].intersectionRatio;if(R!==u){if(!$)return a();R?a(!1,R):r=setTimeout(()=>{a(!1,1e-7)},1e3)}R===1&&!Wb(d,e.getBoundingClientRect())&&a(),$=!1}try{n=new IntersectionObserver(A,{...E,root:i.ownerDocument})}catch{n=new IntersectionObserver(A,E)}n.observe(e)}return a(!0),o}function $r(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=Vd(e),h=i||o?[...d?Or(d):[],...Or(t)]:[];h.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),o&&b.addEventListener("resize",n)});const m=d&&c?j3(d,n):null;let p=-1,v=null;a&&(v=new ResizeObserver(b=>{let[C]=b;C&&C.target===d&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var E;(E=v)==null||E.observe(t)})),n()}),d&&!u&&v.observe(d),v.observe(t));let S,x=u?gi(e):null;u&&T();function T(){const b=gi(e);x&&!Wb(x,b)&&n(),x=b,S=requestAnimationFrame(T)}return n(),()=>{var b;h.forEach(C=>{i&&C.removeEventListener("scroll",n),o&&C.removeEventListener("resize",n)}),m==null||m(),(b=v)==null||b.disconnect(),v=null,u&&cancelAnimationFrame(S)}}const F3=w3,V3=S3,B3=x3,W3=T3,Ub=v3,U3=(e,t,n)=>{const r=new Map,i={platform:R3,...n},o={...i.platform,_c:r};return y3(e,t,{...i,platform:o})};var cl=typeof document<"u"?_.useLayoutEffect:_.useEffect;function ul(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ul(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!ul(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function zb(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gb(e,t){const n=zb(e);return Math.round(t*n)/n}function Ud(e){const t=Q.useRef(e);return cl(()=>{t.current=e}),t}function z3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[h,m]=Q.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=Q.useState(r);ul(p,r)||v(r);const[S,x]=Q.useState(null),[T,b]=Q.useState(null),C=Q.useCallback(W=>{W!==D.current&&(D.current=W,x(W))},[]),E=Q.useCallback(W=>{W!==R.current&&(R.current=W,b(W))},[]),$=o||S,A=a||T,D=Q.useRef(null),R=Q.useRef(null),j=Q.useRef(h),V=u!=null,Z=Ud(u),ee=Ud(i),se=Ud(d),ge=Q.useCallback(()=>{if(!D.current||!R.current)return;const W={placement:t,strategy:n,middleware:p};ee.current&&(W.platform=ee.current),U3(D.current,R.current,W).then(Y=>{const M={...Y,isPositioned:se.current!==!1};ue.current&&!ul(j.current,M)&&(j.current=M,xT.flushSync(()=>{m(M)}))})},[p,t,n,ee,se]);cl(()=>{d===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,m(W=>({...W,isPositioned:!1})))},[d]);const ue=Q.useRef(!1);cl(()=>(ue.current=!0,()=>{ue.current=!1}),[]),cl(()=>{if($&&(D.current=$),A&&(R.current=A),$&&A){if(Z.current)return Z.current($,A,ge);ge()}},[$,A,ge,Z,V]);const fe=Q.useMemo(()=>({reference:D,floating:R,setReference:C,setFloating:E}),[C,E]),he=Q.useMemo(()=>({reference:$,floating:A}),[$,A]),G=Q.useMemo(()=>{const W={position:n,left:0,top:0};if(!he.floating)return W;const Y=Gb(he.floating,h.x),M=Gb(he.floating,h.y);return c?{...W,transform:"translate("+Y+"px, "+M+"px)",...zb(he.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Y,top:M}},[n,c,he.floating,h.x,h.y]);return Q.useMemo(()=>({...h,update:ge,refs:fe,elements:he,floatingStyles:G}),[h,ge,fe,he,G])}const G3=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ub({element:r.current,padding:i}).fn(n):{}:r?Ub({element:r,padding:i}).fn(n):{}}}},Dr=(e,t)=>({...F3(e),options:[e,t]}),Nr=(e,t)=>({...V3(e),options:[e,t]}),kr=(e,t)=>({...B3(e),options:[e,t]}),xs=(e,t)=>({...W3(e),options:[e,t]}),bs=(e,t)=>({...G3(e),options:[e,t]}),Yb={...Q},Y3=Yb.useInsertionEffect||(e=>e());function tr(e){const t=Q.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Y3(()=>{t.current=e}),Q.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var Lr=typeof document<"u"?_.useLayoutEffect:_.useEffect;let Hb=!1,H3=0;const qb=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+H3++;function q3(){const[e,t]=Q.useState(()=>Hb?qb():void 0);return Lr(()=>{e==null&&t(qb())},[]),Q.useEffect(()=>{Hb=!0},[]),e}const Kb=Yb.useId||q3;let zd;process.env.NODE_ENV!=="production"&&(zd=new Set);function K3(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=zd)!=null&&e.has(i))){var o;(o=zd)==null||o.add(i),console.error(i)}}function X3(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const Z3=Q.createContext(null),J3=Q.createContext(null),Gd=()=>{var e;return((e=Q.useContext(Z3))==null?void 0:e.id)||null},Yd=()=>Q.useContext(J3);function Hd(e){return"data-floating-ui-"+e}function an(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}function yi(e){const t=_.useRef(e);return Lr(()=>{t.current=e}),t}const Xb=Hd("safe-polygon");function qd(e,t,n){return n&&!Ro(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function Q3(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:o,elements:a}=e,{enabled:c=!0,delay:u=0,handleClose:d=null,mouseOnly:h=!1,restMs:m=0,move:p=!0}=t,v=Yd(),S=Gd(),x=yi(d),T=yi(u),b=yi(n),C=Q.useRef(),E=Q.useRef(-1),$=Q.useRef(),A=Q.useRef(-1),D=Q.useRef(!0),R=Q.useRef(!1),j=Q.useRef(()=>{}),V=Q.useRef(!1),Z=Q.useCallback(()=>{var G;const W=(G=i.current.openEvent)==null?void 0:G.type;return(W==null?void 0:W.includes("mouse"))&&W!=="mousedown"},[i]);Q.useEffect(()=>{if(!c)return;function G(W){let{open:Y}=W;Y||(an(E),an(A),D.current=!0,V.current=!1)}return o.on("openchange",G),()=>{o.off("openchange",G)}},[c,o]),Q.useEffect(()=>{if(!c||!x.current||!n)return;function G(Y){Z()&&r(!1,Y,"hover")}const W=mi(a.floating).documentElement;return W.addEventListener("mouseleave",G),()=>{W.removeEventListener("mouseleave",G)}},[a.floating,n,r,c,x,Z]);const ee=Q.useCallback(function(G,W,Y){W===void 0&&(W=!0),Y===void 0&&(Y="hover");const M=qd(T.current,"close",C.current);M&&!$.current?(an(E),E.current=window.setTimeout(()=>r(!1,G,Y),M)):W&&(an(E),r(!1,G,Y))},[T,r]),se=tr(()=>{j.current(),$.current=void 0}),ge=tr(()=>{if(R.current){const G=mi(a.floating).body;G.style.pointerEvents="",G.removeAttribute(Xb),R.current=!1}}),ue=tr(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);Q.useEffect(()=>{if(!c)return;function G(k){if(an(E),D.current=!1,h&&!Ro(C.current)||m>0&&!qd(T.current,"open"))return;const H=qd(T.current,"open",C.current);H?E.current=window.setTimeout(()=>{b.current||r(!0,k,"hover")},H):n||r(!0,k,"hover")}function W(k){if(ue())return;j.current();const H=mi(a.floating);if(an(A),V.current=!1,x.current&&i.current.floatingContext){n||an(E),$.current=x.current({...i.current.floatingContext,tree:v,x:k.clientX,y:k.clientY,onClose(){ge(),se(),ue()||ee(k,!0,"safe-polygon")}});const le=$.current;H.addEventListener("mousemove",le),j.current=()=>{H.removeEventListener("mousemove",le)};return}(C.current==="touch"?!Lo(a.floating,k.relatedTarget):!0)&&ee(k)}function Y(k){ue()||i.current.floatingContext&&(x.current==null||x.current({...i.current.floatingContext,tree:v,x:k.clientX,y:k.clientY,onClose(){ge(),se(),ue()||ee(k)}})(k))}if(Ke(a.domReference)){var M;const k=a.domReference;return n&&k.addEventListener("mouseleave",Y),(M=a.floating)==null||M.addEventListener("mouseleave",Y),p&&k.addEventListener("mousemove",G,{once:!0}),k.addEventListener("mouseenter",G),k.addEventListener("mouseleave",W),()=>{var H;n&&k.removeEventListener("mouseleave",Y),(H=a.floating)==null||H.removeEventListener("mouseleave",Y),p&&k.removeEventListener("mousemove",G),k.removeEventListener("mouseenter",G),k.removeEventListener("mouseleave",W)}}},[a,c,e,h,m,p,ee,se,ge,r,n,b,v,T,x,i,ue]),Lr(()=>{var G;if(c&&n&&(G=x.current)!=null&&G.__options.blockPointerEvents&&Z()){R.current=!0;const Y=a.floating;if(Ke(a.domReference)&&Y){var W;const M=mi(a.floating).body;M.setAttribute(Xb,"");const k=a.domReference,H=v==null||(W=v.nodesRef.current.find(ae=>ae.id===S))==null||(W=W.context)==null?void 0:W.elements.floating;return H&&(H.style.pointerEvents=""),M.style.pointerEvents="none",k.style.pointerEvents="auto",Y.style.pointerEvents="auto",()=>{M.style.pointerEvents="",k.style.pointerEvents="",Y.style.pointerEvents=""}}}},[c,n,S,a,v,x,Z]),Lr(()=>{n||(C.current=void 0,V.current=!1,se(),ge())},[n,se,ge]),Q.useEffect(()=>()=>{se(),an(E),an(A),ge()},[c,a.domReference,se,ge]);const fe=Q.useMemo(()=>{function G(W){C.current=W.pointerType}return{onPointerDown:G,onPointerEnter:G,onMouseMove(W){const{nativeEvent:Y}=W;function M(){!D.current&&!b.current&&r(!0,Y,"hover")}h&&!Ro(C.current)||n||m===0||V.current&&W.movementX**2+W.movementY**2<2||(an(A),C.current==="touch"?M():(V.current=!0,A.current=window.setTimeout(M,m)))}}},[h,r,n,b,m]),he=Q.useMemo(()=>({onMouseEnter(){an(E)},onMouseLeave(G){ue()||ee(G.nativeEvent,!1)}}),[ee,ue]);return Q.useMemo(()=>c?{reference:fe,floating:he}:{},[c,fe,he])}function Kd(e,t){let n=e.filter(i=>{var o;return i.parentId===t&&((o=i.context)==null?void 0:o.open)}),r=n;for(;r.length;)r=e.filter(i=>{var o;return(o=r)==null?void 0:o.some(a=>{var c;return i.parentId===a.id&&((c=i.context)==null?void 0:c.open)})}),n=n.concat(r);return n}const eN="data-floating-ui-focusable";function Zb(e){return Rt(e.target)&&e.target.tagName==="BUTTON"}function Jb(e){return Ib(e)}function vi(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:a=!0,event:c="click",toggle:u=!0,ignoreMouse:d=!1,keyboardHandlers:h=!0,stickIfOpen:m=!0}=t,p=Q.useRef(),v=Q.useRef(!1),S=Q.useMemo(()=>({onPointerDown(x){p.current=x.pointerType},onMouseDown(x){const T=p.current;x.button===0&&c!=="click"&&(Ro(T,!0)&&d||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="mousedown")?r(!1,x.nativeEvent,"click"):(x.preventDefault(),r(!0,x.nativeEvent,"click"))))},onClick(x){const T=p.current;if(c==="mousedown"&&p.current){p.current=void 0;return}Ro(T,!0)&&d||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="click")?r(!1,x.nativeEvent,"click"):r(!0,x.nativeEvent,"click"))},onKeyDown(x){p.current=void 0,!(x.defaultPrevented||!h||Zb(x))&&(x.key===" "&&!Jb(o)&&(x.preventDefault(),v.current=!0),x.key==="Enter"&&r(!(n&&u),x.nativeEvent,"click"))},onKeyUp(x){x.defaultPrevented||!h||Zb(x)||Jb(o)||x.key===" "&&v.current&&(v.current=!1,r(!(n&&u),x.nativeEvent,"click"))}}),[i,o,c,d,h,r,n,m,u]);return Q.useMemo(()=>a?{reference:S}:{},[a,S])}const tN={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},nN={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Qb=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function Rr(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:a=!0,escapeKey:c=!0,outsidePress:u=!0,outsidePressEvent:d="pointerdown",referencePress:h=!1,referencePressEvent:m="pointerdown",ancestorScroll:p=!1,bubbles:v,capture:S}=t,x=Yd(),T=tr(typeof u=="function"?u:()=>!1),b=typeof u=="function"?T:u,C=Q.useRef(!1),E=Q.useRef(!1),{escapeKey:$,outsidePress:A}=Qb(v),{escapeKey:D,outsidePress:R}=Qb(S),j=Q.useRef(!1),V=tr(fe=>{var he;if(!n||!a||!c||fe.key!=="Escape"||j.current)return;const G=(he=o.current.floatingContext)==null?void 0:he.nodeId,W=x?Kd(x.nodesRef.current,G):[];if(!$&&(fe.stopPropagation(),W.length>0)){let Y=!0;if(W.forEach(M=>{var k;if((k=M.context)!=null&&k.open&&!M.context.dataRef.current.__escapeKeyBubbles){Y=!1;return}}),!Y)return}r(!1,a3(fe)?fe.nativeEvent:fe,"escape-key")}),Z=tr(fe=>{var he;const G=()=>{var W;V(fe),(W=ps(fe))==null||W.removeEventListener("keydown",G)};(he=ps(fe))==null||he.addEventListener("keydown",G)}),ee=tr(fe=>{var he;const G=C.current;C.current=!1;const W=E.current;if(E.current=!1,d==="click"&&W||G||typeof b=="function"&&!b(fe))return;const Y=ps(fe),M="["+Hd("inert")+"]",k=mi(i.floating).querySelectorAll(M);let H=Ke(Y)?Y:null;for(;H&&!Qn(H);){const J=er(H);if(Qn(J)||!Ke(J))break;H=J}if(k.length&&Ke(Y)&&!l3(Y)&&!Lo(Y,i.floating)&&Array.from(k).every(J=>!Lo(H,J)))return;if(Rt(Y)&&ue){const J=Qn(Y),oe=on(Y),re=/auto|scroll/,de=J||re.test(oe.overflowX),Ce=J||re.test(oe.overflowY),Ve=de&&Y.clientWidth>0&&Y.scrollWidth>Y.clientWidth,ie=Ce&&Y.clientHeight>0&&Y.scrollHeight>Y.clientHeight,pe=oe.direction==="rtl",De=ie&&(pe?fe.offsetX<=Y.offsetWidth-Y.clientWidth:fe.offsetX>Y.clientWidth),ft=Ve&&fe.offsetY>Y.clientHeight;if(De||ft)return}const ae=(he=o.current.floatingContext)==null?void 0:he.nodeId,le=x&&Kd(x.nodesRef.current,ae).some(J=>{var oe;return Nd(fe,(oe=J.context)==null?void 0:oe.elements.floating)});if(Nd(fe,i.floating)||Nd(fe,i.domReference)||le)return;const U=x?Kd(x.nodesRef.current,ae):[];if(U.length>0){let J=!0;if(U.forEach(oe=>{var re;if((re=oe.context)!=null&&re.open&&!oe.context.dataRef.current.__outsidePressBubbles){J=!1;return}}),!J)return}r(!1,fe,"outside-press")}),se=tr(fe=>{var he;const G=()=>{var W;ee(fe),(W=ps(fe))==null||W.removeEventListener(d,G)};(he=ps(fe))==null||he.addEventListener(d,G)});Q.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=$,o.current.__outsidePressBubbles=A;let fe=-1;function he(k){r(!1,k,"ancestor-scroll")}function G(){window.clearTimeout(fe),j.current=!0}function W(){fe=window.setTimeout(()=>{j.current=!1},rl()?5:0)}const Y=mi(i.floating);c&&(Y.addEventListener("keydown",D?Z:V,D),Y.addEventListener("compositionstart",G),Y.addEventListener("compositionend",W)),b&&Y.addEventListener(d,R?se:ee,R);let M=[];return p&&(Ke(i.domReference)&&(M=Or(i.domReference)),Ke(i.floating)&&(M=M.concat(Or(i.floating))),!Ke(i.reference)&&i.reference&&i.reference.contextElement&&(M=M.concat(Or(i.reference.contextElement)))),M=M.filter(k=>{var H;return k!==((H=Y.defaultView)==null?void 0:H.visualViewport)}),M.forEach(k=>{k.addEventListener("scroll",he,{passive:!0})}),()=>{c&&(Y.removeEventListener("keydown",D?Z:V,D),Y.removeEventListener("compositionstart",G),Y.removeEventListener("compositionend",W)),b&&Y.removeEventListener(d,R?se:ee,R),M.forEach(k=>{k.removeEventListener("scroll",he)}),window.clearTimeout(fe)}},[o,i,c,b,d,n,r,p,a,$,A,V,D,Z,ee,R,se]),Q.useEffect(()=>{C.current=!1},[b,d]);const ge=Q.useMemo(()=>({onKeyDown:V,...h&&{[tN[m]]:fe=>{r(!1,fe.nativeEvent,"reference-press")},...m!=="click"&&{onClick(fe){r(!1,fe.nativeEvent,"reference-press")}}}}),[V,r,h,m]),ue=Q.useMemo(()=>({onKeyDown:V,onMouseDown(){E.current=!0},onMouseUp(){E.current=!0},[nN[d]]:()=>{C.current=!0}}),[V,d]);return Q.useMemo(()=>a?{reference:ge,floating:ue}:{},[a,ge,ue])}function rN(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Kb(),o=Q.useRef({}),[a]=Q.useState(()=>X3()),c=Gd()!=null;if(process.env.NODE_ENV!=="production"){const v=r.reference;v&&!Ke(v)&&K3("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[u,d]=Q.useState(r.reference),h=tr((v,S,x)=>{o.current.openEvent=v?S:void 0,a.emit("openchange",{open:v,event:S,reason:x,nested:c}),n==null||n(v,S,x)}),m=Q.useMemo(()=>({setPositionReference:d}),[]),p=Q.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return Q.useMemo(()=>({dataRef:o,open:t,onOpenChange:h,elements:p,events:a,floatingId:i,refs:m}),[t,h,p,a,i,m])}function jr(e){e===void 0&&(e={});const{nodeId:t}=e,n=rN({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=Q.useState(null),[c,u]=Q.useState(null),h=(i==null?void 0:i.domReference)||o,m=Q.useRef(null),p=Yd();Lr(()=>{h&&(m.current=h)},[h]);const v=z3({...e,elements:{...i,...c&&{reference:c}}}),S=Q.useCallback(E=>{const $=Ke(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),contextElement:E}:E;u($),v.refs.setReference($)},[v.refs]),x=Q.useCallback(E=>{(Ke(E)||E===null)&&(m.current=E,a(E)),(Ke(v.refs.reference.current)||v.refs.reference.current===null||E!==null&&!Ke(E))&&v.refs.setReference(E)},[v.refs]),T=Q.useMemo(()=>({...v.refs,setReference:x,setPositionReference:S,domReference:m}),[v.refs,x,S]),b=Q.useMemo(()=>({...v.elements,domReference:h}),[v.elements,h]),C=Q.useMemo(()=>({...v,...r,refs:T,elements:b,nodeId:t}),[v,T,b,t,r]);return Lr(()=>{r.dataRef.current.floatingContext=C;const E=p==null?void 0:p.nodesRef.current.find($=>$.id===t);E&&(E.context=C)}),Q.useMemo(()=>({...v,context:C,refs:T,elements:b}),[v,T,b,C])}function iN(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:o,elements:a}=e,{enabled:c=!0,visibleOnly:u=!0}=t,d=Q.useRef(!1),h=Q.useRef(-1),m=Q.useRef(!0);Q.useEffect(()=>{if(!c)return;const v=Lt(a.domReference);function S(){!n&&Rt(a.domReference)&&a.domReference===Ab(mi(a.domReference))&&(d.current=!0)}function x(){m.current=!0}return v.addEventListener("blur",S),v.addEventListener("keydown",x,!0),()=>{v.removeEventListener("blur",S),v.removeEventListener("keydown",x,!0)}},[a.domReference,n,c]),Q.useEffect(()=>{if(!c)return;function v(S){let{reason:x}=S;(x==="reference-press"||x==="escape-key")&&(d.current=!0)}return i.on("openchange",v),()=>{i.off("openchange",v)}},[i,c]),Q.useEffect(()=>()=>{an(h)},[]);const p=Q.useMemo(()=>({onPointerDown(v){r3(v.nativeEvent)||(m.current=!1)},onMouseLeave(){d.current=!1},onFocus(v){if(d.current)return;const S=ps(v.nativeEvent);if(u&&Ke(S))try{if(i3()&&s3())throw Error();if(!S.matches(":focus-visible"))return}catch{if(!m.current&&!Ib(S))return}r(!0,v.nativeEvent,"focus")},onBlur(v){d.current=!1;const S=v.relatedTarget,x=v.nativeEvent,T=Ke(S)&&S.hasAttribute(Hd("focus-guard"))&&S.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var b;const C=Ab(a.domReference?a.domReference.ownerDocument:document);!S&&C===a.domReference||Lo((b=o.current.floatingContext)==null?void 0:b.refs.floating.current,C)||Lo(a.domReference,C)||T||r(!1,x,"focus")})}}),[o,a.domReference,r,u]);return Q.useMemo(()=>c?{reference:p}:{},[c,p])}const e2="active",t2="selected";function Xd(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[e2]:a,[t2]:c,...u}=e;o=u}return{...n==="floating"&&{tabIndex:-1,[eN]:""},...o,...t.map(a=>{const c=a?a[n]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((a,c)=>(c&&Object.entries(c).forEach(u=>{let[d,h]=u;if(!(i&&[e2,t2].includes(d)))if(d.indexOf("on")===0){if(r.has(d)||r.set(d,[]),typeof h=="function"){var m;(m=r.get(d))==null||m.push(h),a[d]=function(){for(var p,v=arguments.length,S=new Array(v),x=0;x<v;x++)S[x]=arguments[x];return(p=r.get(d))==null?void 0:p.map(T=>T(...S)).find(T=>T!==void 0)}}}else a[d]=h}),a),{})}}function Fr(e){e===void 0&&(e=[]);const t=e.map(c=>c==null?void 0:c.reference),n=e.map(c=>c==null?void 0:c.floating),r=e.map(c=>c==null?void 0:c.item),i=Q.useCallback(c=>Xd(c,e,"reference"),t),o=Q.useCallback(c=>Xd(c,e,"floating"),n),a=Q.useCallback(c=>Xd(c,e,"item"),r);return Q.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const sN=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function oN(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,c=(n=sN.get(a))!=null?n:a,u=Kb(),h=Gd()!=null,m=Q.useMemo(()=>c==="tooltip"||a==="label"?{["aria-"+(a==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":c==="alertdialog"?"dialog":c,"aria-controls":r?i:void 0,...c==="listbox"&&{role:"combobox"},...c==="menu"&&{id:u},...c==="menu"&&h&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},[c,i,h,r,u,a]),p=Q.useMemo(()=>{const S={id:i,...c&&{role:c}};return c==="tooltip"||a==="label"?S:{...S,...c==="menu"&&{"aria-labelledby":u}}},[c,i,u,a]),v=Q.useCallback(S=>{let{active:x,selected:T}=S;const b={role:"option",...x&&{id:i+"-option"}};switch(a){case"select":return{...b,"aria-selected":x&&T};case"combobox":return{...b,...x&&{"aria-selected":!0}}}return{}},[i,a]);return Q.useMemo(()=>o?{reference:m,floating:p,item:v}:{},[o,m,p,v])}const n2=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function ws(e,t){return typeof e=="function"?e(t):e}function aN(e,t){const[n,r]=Q.useState(e);return e&&!n&&r(!0),Q.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function lN(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,a=(typeof i=="number"?i:i.close)||0,[c,u]=Q.useState("unmounted"),d=aN(n,a);return!d&&c==="close"&&u("unmounted"),Lr(()=>{if(r){if(n){u("initial");const h=requestAnimationFrame(()=>{u("open")});return()=>{cancelAnimationFrame(h)}}u("close")}},[n,r]),{isMounted:d,status:c}}function xi(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:o,duration:a=250}=t,c=e.placement,u=c.split("-")[0],d=Q.useMemo(()=>({side:u,placement:c}),[u,c]),h=typeof a=="number",m=(h?a:a.open)||0,p=(h?a:a.close)||0,[v,S]=Q.useState(()=>({...ws(o,d),...ws(n,d)})),{isMounted:x,status:T}=lN(e,{duration:a}),b=yi(n),C=yi(r),E=yi(i),$=yi(o);return Lr(()=>{const A=ws(b.current,d),D=ws(E.current,d),R=ws($.current,d),j=ws(C.current,d)||Object.keys(A).reduce((V,Z)=>(V[Z]="",V),{});if(T==="initial"&&S(V=>({transitionProperty:V.transitionProperty,...R,...A})),T==="open"&&S({transitionProperty:Object.keys(j).map(n2).join(","),transitionDuration:m+"ms",...R,...j}),T==="close"){const V=D||A;S({transitionProperty:Object.keys(V).map(n2).join(","),transitionDuration:p+"ms",...R,...V})}},[p,E,b,C,$,m,T,d]),{isMounted:x,styles:v}}const bi=({open:e,onClose:t,component:n,children:r,placement:i="bottom",className:o="",strategy:a="absolute",styles:c={},offset:u=8,padding:d=8,handleClickAway:h=!0})=>{const[m,p]=_.useState(e);_.useEffect(()=>{p(e)},[e]);const v=()=>{p(!1),t==null||t()},{x:S,y:x,strategy:T,refs:b,context:C}=jr({strategy:a,open:m,onOpenChange:V=>{!V&&!e&&v()},middleware:[Dr(u),kr(),Nr({padding:d})],whileElementsMounted:$r,placement:i}),E=vi(C,{enabled:!1}),$=Rr(C,{enabled:!1}),{getReferenceProps:A,getFloatingProps:D}=Fr([E,$]),{isMounted:R,styles:j}=xi(C,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px) scale(0.95)"}});return y.jsx(W2,{enabled:h,onClickAway:()=>{m&&v()},children:y.jsxs("div",{className:"relative",children:[y.jsx("div",{ref:b.setReference,...A(),className:"reference-element",children:r}),R&&y.jsx("div",{ref:b.setFloating,style:{position:T,top:x??0,left:S??0,...j,zIndex:999,...c},...D(),className:"floating-element",children:y.jsx(Ss,{className:o,children:typeof n=="function"?_.createElement(n):n})})]})})},cN=({selectedPeriod:e,handlePeriodChange:t,colorVariants:n})=>{const r={initial:{backgroundColor:"#ffffff",color:"#57595f"},active:{backgroundColor:(n==null?void 0:n.hoverLight)||"#dee7fc",color:(n==null?void 0:n.text)||"#111827"},exit:{backgroundColor:"#ffffff",color:"#57595f"}};return y.jsxs("div",{className:"flex rounded-xl p-6 gap-2 border",style:{borderColor:(n==null?void 0:n.hoverLight)||"#dbeafe"},children:[y.jsx(Ge.button,{variants:r,initial:"initial",animate:e==="AM"?"active":"initial",exit:"exit",transition:{duration:.2},onClick:()=>t("AM"),disabled:e==="AM",className:"flex items-center justify-center font-500 px-10 py-2 rounded-lg",children:"AM"}),y.jsx(Ge.button,{variants:r,initial:"initial",animate:e==="PM"?"active":"initial",exit:"exit",transition:{duration:.2},onClick:()=>t("PM"),disabled:e==="PM",className:"flex items-center justify-center font-500 px-10 py-2 rounded-lg",children:"PM"})]})},uN=({setHourMenuOpen:e,hourMenuOpen:t,selectedHour:n})=>y.jsx("button",{onClick:()=>e(!t),className:"flex justify-center items-center w-72 h-full border py-8 px-14 rounded-xl border-blue-100 text-gray-600 font-500",children:`${String(n).padStart(2,"0")}:00`});/*!
|
|
663
|
+
`),()=>{document.head.removeChild(x)}},[t]),g.jsx(p5,{isPresent:t,childRef:s,sizeRef:o,children:he.cloneElement(e,{ref:s})})}const g5=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=gf(y5),d=O.useId(),h=O.useCallback(m=>{u.set(m,!0);for(const x of u.values())if(!x)return;r&&r()},[u,r]),p=O.useMemo(()=>({id:d,initial:t,isPresent:n,custom:s,onExitComplete:h,register:m=>(u.set(m,!1),()=>u.delete(m))}),o?[Math.random(),h]:[n,h]);return O.useMemo(()=>{u.forEach((m,x)=>u.set(x,!1))},[n]),he.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=g.jsx(m5,{isPresent:n,anchorX:c,children:e})),g.jsx(Ia.Provider,{value:p,children:e})};function y5(){return new Map}function Ex(e=!0){const t=O.useContext(Ia);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,o=O.useId();O.useEffect(()=>{if(e)return s(o)},[e]);const a=O.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const Da=e=>e.key||"";function Px(e){const t=[];return O.Children.forEach(e,n=>{O.isValidElement(n)&&t.push(n)}),t}const qn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=Ex(a),h=O.useMemo(()=>Px(e),[e]),p=a&&!u?[]:h.map(Da),m=O.useRef(!0),x=O.useRef(h),S=gf(()=>new Map),[b,T]=O.useState(h),[v,A]=O.useState(h);Cx(()=>{m.current=!1,x.current=h;for(let P=0;P<v.length;P++){const D=Da(v[P]);p.includes(D)?S.delete(D):S.get(D)!==!0&&S.set(D,!1)}},[v,p.length,p.join("-")]);const C=[];if(h!==b){let P=[...h];for(let D=0;D<v.length;D++){const R=v[D],F=Da(R);p.includes(F)||(P.splice(D,0,R),C.push(R))}return o==="wait"&&C.length&&(P=C),A(Px(P)),T(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&v.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:I}=O.useContext(mf);return g.jsx(g.Fragment,{children:v.map(P=>{const D=Da(P),R=a&&!u?!1:h===v||p.includes(D),F=()=>{if(S.has(D))S.set(D,!0);else return;let W=!0;S.forEach(Q=>{Q||(W=!1)}),W&&(I==null||I(),A(x.current),a&&(d==null||d()),r&&r())};return g.jsx(g5,{isPresent:R,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:o,onExitComplete:R?void 0:F,anchorX:c,children:P},D)})})},kt=e=>e;let Qs=kt,$r=kt;process.env.NODE_ENV!=="production"&&(Qs=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},$r=(e,t)=>{if(!e)throw new Error(t)});const x5={useManualTiming:!1},Na=["read","resolveKeyframes","update","preRender","render","postRender"],Ax={value:null};function v5(e,t){let n=new Set,r=new Set,s=!1,o=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(p){a.has(p)&&(h.schedule(p),e()),u++,p(c)}const h={schedule:(p,m=!1,x=!1)=>{const b=x&&s?n:r;return m&&a.add(p),b.has(p)||b.add(p),p},cancel:p=>{r.delete(p),a.delete(p)},process:p=>{if(c=p,s){o=!0;return}s=!0,[n,r]=[r,n],n.forEach(d),t&&Ax.value&&Ax.value.frameloop[t].push(u),u=0,n.clear(),s=!1,o&&(o=!1,h.process(p))}};return h}const b5=40;function Mx(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Na.reduce((v,A)=>(v[A]=v5(o,t?A:void 0),v),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:p,postRender:m}=a,x=()=>{const v=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(v-s.timestamp,b5),1),s.timestamp=v,s.isProcessing=!0,c.process(s),u.process(s),d.process(s),h.process(s),p.process(s),m.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(x))},S=()=>{n=!0,r=!0,s.isProcessing||e(x)};return{schedule:Na.reduce((v,A)=>{const C=a[A];return v[A]=(I,P=!1,D=!1)=>(n||S(),C.schedule(I,P,D)),v},{}),cancel:v=>{for(let A=0;A<Na.length;A++)a[Na[A]].cancel(v)},state:s,steps:a}}const{schedule:He,cancel:_r,state:xt,steps:vf}=Mx(typeof requestAnimationFrame<"u"?requestAnimationFrame:kt,!0),Ox=O.createContext({strict:!1}),$x={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ei={};for(const e in $x)ei[e]={isEnabled:t=>$x[e].some(n=>!!t[n])};function w5(e){for(const t in e)ei[t]={...ei[t],...e[t]}}const S5=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ka(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||S5.has(e)}let _x=e=>!ka(e);function T5(e){e&&(_x=t=>t.startsWith("on")?!ka(t):e(t))}try{T5(require("@emotion/is-prop-valid").default)}catch{}function C5(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(_x(s)||n===!0&&ka(s)||!t&&!ka(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const Ix=new Set;function ja(e,t,n){e||Ix.has(t)||(console.warn(t),Ix.add(t))}function E5(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&ja(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const La=O.createContext({});function Ra(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function fo(e){return typeof e=="string"||Array.isArray(e)}const bf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wf=["initial",...bf];function Fa(e){return Ra(e.animate)||wf.some(t=>fo(e[t]))}function Dx(e){return!!(Fa(e)||e.variants)}function P5(e,t){if(Fa(e)){const{initial:n,animate:r}=e;return{initial:n===!1||fo(n)?n:void 0,animate:fo(r)?r:void 0}}return e.inherit!==!1?t:{}}function A5(e){const{initial:t,animate:n}=P5(e,O.useContext(La));return O.useMemo(()=>({initial:t,animate:n}),[Nx(t),Nx(n)])}function Nx(e){return Array.isArray(e)?e.join(" "):e}const M5=Symbol.for("motionComponentSymbol");function ti(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function O5(e,t,n){return O.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ti(n)&&(n.current=r))},[t])}const{schedule:Sf}=Mx(queueMicrotask,!1),Tf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),kx="data-"+Tf("framerAppearId"),jx=O.createContext({});function $5(e,t,n,r,s){var o,a;const{visualElement:c}=O.useContext(La),u=O.useContext(Ox),d=O.useContext(Ia),h=O.useContext(xf).reducedMotion,p=O.useRef(null);r=r||u.renderer,!p.current&&r&&(p.current=r(e,{visualState:t,parent:c,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const m=p.current,x=O.useContext(jx);m&&!m.projection&&s&&(m.type==="html"||m.type==="svg")&&_5(p.current,n,s,x);const S=O.useRef(!1);O.useInsertionEffect(()=>{m&&S.current&&m.update(n,d)});const b=n[kx],T=O.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,b)));return Cx(()=>{m&&(S.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),Sf.render(m.render),T.current&&m.animationState&&m.animationState.animateChanges())}),O.useEffect(()=>{m&&(!T.current&&m.animationState&&m.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,b)}),T.current=!1))}),m}function _5(e,t,n,r){const{layoutId:s,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Lx(e.parent)),e.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!a||c&&ti(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function Lx(e){if(e)return e.options.allowProjection!==!1?e.projection:Lx(e.parent)}function I5({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var o,a;e&&w5(e);function c(d,h){let p;const m={...O.useContext(xf),...d,layoutId:D5(d)},{isStatic:x}=m,S=A5(d),b=r(d,x);if(!x&&yf){N5(m,e);const T=k5(m);p=T.MeasureLayout,S.visualElement=$5(s,b,m,t,T.ProjectionNode)}return g.jsxs(La.Provider,{value:S,children:[p&&S.visualElement?g.jsx(p,{visualElement:S.visualElement,...m}):null,n(s,d,O5(b,S.visualElement,h),b,x,S.visualElement)]})}c.displayName=`motion.${typeof s=="string"?s:`create(${(a=(o=s.displayName)!==null&&o!==void 0?o:s.name)!==null&&a!==void 0?a:""})`}`;const u=O.forwardRef(c);return u[M5]=s,u}function D5({layoutId:e}){const t=O.useContext(mf).id;return t&&e!==void 0?t+"-"+e:e}function N5(e,t){const n=O.useContext(Ox).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Qs(!1,r):$r(!1,r)}}function k5(e){const{drag:t,layout:n}=ei;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Rx=e=>t=>typeof t=="string"&&t.startsWith(e),Cf=Rx("--"),j5=Rx("var(--"),Ef=e=>j5(e)?L5.test(e.split("/*")[0].trim()):!1,L5=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ho={};function R5(e){for(const t in e)ho[t]=e[t],Cf(t)&&(ho[t].isCSSVariable=!0)}const ni=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],as=new Set(ni);function Fx(e,{layout:t,layoutId:n}){return as.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ho[e]||e==="opacity")}const Ct=e=>!!(e&&e.getVelocity),Vx=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Kn=(e,t,n)=>n>t?t:n<e?e:n,ri={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},po={...ri,transform:e=>Kn(0,1,e)},Va={...ri,default:1},mo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ir=mo("deg"),In=mo("%"),Se=mo("px"),F5=mo("vh"),V5=mo("vw"),Bx={...In,parse:e=>In.parse(e)/100,transform:e=>In.transform(e*100)},B5={borderWidth:Se,borderTopWidth:Se,borderRightWidth:Se,borderBottomWidth:Se,borderLeftWidth:Se,borderRadius:Se,radius:Se,borderTopLeftRadius:Se,borderTopRightRadius:Se,borderBottomRightRadius:Se,borderBottomLeftRadius:Se,width:Se,maxWidth:Se,height:Se,maxHeight:Se,top:Se,right:Se,bottom:Se,left:Se,padding:Se,paddingTop:Se,paddingRight:Se,paddingBottom:Se,paddingLeft:Se,margin:Se,marginTop:Se,marginRight:Se,marginBottom:Se,marginLeft:Se,backgroundPositionX:Se,backgroundPositionY:Se},W5={rotate:Ir,rotateX:Ir,rotateY:Ir,rotateZ:Ir,scale:Va,scaleX:Va,scaleY:Va,scaleZ:Va,skew:Ir,skewX:Ir,skewY:Ir,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:po,originX:Bx,originY:Bx,originZ:Se},Wx={...ri,transform:Math.round},Pf={...B5,...W5,zIndex:Wx,size:Se,fillOpacity:po,strokeOpacity:po,numOctaves:Wx},U5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},z5=ni.length;function G5(e,t,n){let r="",s=!0;for(let o=0;o<z5;o++){const a=ni[o],c=e[a];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(a.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=Vx(c,Pf[a]);if(!u){s=!1;const h=U5[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Af(e,t,n){const{style:r,vars:s,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const d=t[u];if(as.has(u)){a=!0;continue}else if(Cf(u)){s[u]=d;continue}else{const h=Vx(d,Pf[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=G5(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${d} ${h}`}}const Mf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ux(e,t,n){for(const r in t)!Ct(t[r])&&!Fx(r,n)&&(e[r]=t[r])}function Y5({transformTemplate:e},t){return O.useMemo(()=>{const n=Mf();return Af(n,t,e),Object.assign({},n.vars,n.style)},[t])}function H5(e,t){const n=e.style||{},r={};return Ux(r,n,e),Object.assign(r,Y5(e,t)),r}function q5(e,t){const n={},r=H5(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const K5=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Of(e){return typeof e!="string"||e.includes("-")?!1:!!(K5.indexOf(e)>-1||/[A-Z]/u.test(e))}const X5={offset:"stroke-dashoffset",array:"stroke-dasharray"},Z5={offset:"strokeDashoffset",array:"strokeDasharray"};function J5(e,t,n=1,r=0,s=!0){e.pathLength=1;const o=s?X5:Z5;e[o.offset]=Se.transform(-r);const a=Se.transform(t),c=Se.transform(n);e[o.array]=`${a} ${c}`}function zx(e,t,n){return typeof e=="string"?e:Se.transform(t+n*e)}function Q5(e,t,n){const r=zx(t,e.x,e.width),s=zx(n,e.y,e.height);return`${r} ${s}`}function $f(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,p){if(Af(e,d,p),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:x,dimensions:S}=e;m.transform&&(S&&(x.transform=m.transform),delete m.transform),S&&(s!==void 0||o!==void 0||x.transform)&&(x.transformOrigin=Q5(S,s!==void 0?s:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&J5(m,a,c,u,!1)}const Gx=()=>({...Mf(),attrs:{}}),_f=e=>typeof e=="string"&&e.toLowerCase()==="svg";function e_(e,t,n,r){const s=O.useMemo(()=>{const o=Gx();return $f(o,t,_f(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Ux(o,e.style,e),s.style={...o,...s.style}}return s}function t_(e=!1){return(n,r,s,{latestValues:o},a)=>{const u=(Of(n)?e_:q5)(r,o,a,n),d=C5(r,typeof n=="string",e),h=n!==O.Fragment?{...d,...u,ref:s}:{},{children:p}=r,m=O.useMemo(()=>Ct(p)?p.get():p,[p]);return O.createElement(n,{...h,children:m})}}function Yx(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function If(e,t,n,r){if(typeof t=="function"){const[s,o]=Yx(r);t=t(n!==void 0?n:e.custom,s,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,o]=Yx(r);t=t(n!==void 0?n:e.custom,s,o)}return t}const Df=e=>Array.isArray(e),n_=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),r_=e=>Df(e)?e[e.length-1]||0:e;function Ba(e){const t=Ct(e)?e.get():e;return n_(t)?t.toValue():t}function s_({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,o){const a={latestValues:i_(r,s,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Hx=e=>(t,n)=>{const r=O.useContext(La),s=O.useContext(Ia),o=()=>s_(e,t,r,s);return n?o():gf(o)};function i_(e,t,n,r){const s={},o=r(e,{});for(const m in o)s[m]=Ba(o[m]);let{initial:a,animate:c}=e;const u=Fa(e),d=Dx(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const p=h?c:a;if(p&&typeof p!="boolean"&&!Ra(p)){const m=Array.isArray(p)?p:[p];for(let x=0;x<m.length;x++){const S=If(e,m[x]);if(S){const{transitionEnd:b,transition:T,...v}=S;for(const A in v){let C=v[A];if(Array.isArray(C)){const I=h?C.length-1:0;C=C[I]}C!==null&&(s[A]=C)}for(const A in b)s[A]=b[A]}}}return s}function Nf(e,t,n){var r;const{style:s}=e,o={};for(const a in s)(Ct(s[a])||t.style&&Ct(t.style[a])||Fx(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=s[a]);return o}const o_={useVisualState:Hx({scrapeMotionValuesFromProps:Nf,createRenderState:Mf})};function qx(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function Kx(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Xx=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Zx(e,t,n,r){Kx(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(Xx.has(s)?s:Tf(s),t.attrs[s])}function Jx(e,t,n){const r=Nf(e,t,n);for(const s in e)if(Ct(e[s])||Ct(t[s])){const o=ni.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[o]=e[s]}return r}const Qx=["x","y","width","height","cx","cy","r"],a_={useVisualState:Hx({scrapeMotionValuesFromProps:Jx,createRenderState:Gx,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:s})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in s)if(as.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<Qx.length;c++){const u=Qx[c];e[u]!==t[u]&&(a=!0)}a&&He.read(()=>{qx(n,r),He.render(()=>{$f(r,s,_f(n.tagName),e.transformTemplate),Zx(n,r)})})}})};function l_(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const a={...Of(r)?a_:o_,preloadedFeatures:e,useRender:t_(s),createVisualElement:t,Component:r};return I5(a)}}function go(e,t,n){const r=e.getProps();return If(r,t,n!==void 0?n:r.custom,e)}function kf(e,t){return e?e[t]||e.default||e:void 0}const e1=new Set(["width","height","top","left","right","bottom",...ni]);function jf(e,t){e.indexOf(t)===-1&&e.push(t)}function Lf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Rf{constructor(){this.subscriptions=[]}add(t){return jf(this.subscriptions,t),()=>Lf(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let o=0;o<s;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function t1(e,t){return t?e*(1e3/t):0}let Wa;function c_(){Wa=void 0}const Dn={now:()=>(Wa===void 0&&Dn.set(xt.isProcessing||x5.useManualTiming?xt.timestamp:performance.now()),Wa),set:e=>{Wa=e,queueMicrotask(c_)}},n1=30,u_=e=>!isNaN(parseFloat(e));class f_{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const o=Dn.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Dn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=u_(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ja(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Rf);const r=this.events[t].add(n);return t==="change"?()=>{r(),He.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Dn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>n1)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,n1);return t1(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function yo(e,t){return new f_(e,t)}function d_(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,yo(n))}function h_(e,t){const n=go(e,t);let{transitionEnd:r={},transition:s={},...o}=n||{};o={...o,...r};for(const a in o){const c=r_(o[a]);d_(e,a,c)}}function p_(e){return!!(Ct(e)&&e.add)}function Ff(e,t){const n=e.getValue("willChange");if(p_(n))return n.add(t)}function r1(e){return e.props[kx]}function Vf(e){let t;return()=>(t===void 0&&(t=e()),t)}const m_=Vf(()=>window.ScrollTimeline!==void 0);class g_{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(s=>{if(m_()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,o)=>{s&&s(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class y_ extends g_{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const Nn=e=>e*1e3,Xn=e=>e/1e3;function Bf(e){return typeof e=="function"}function s1(e,t){e.timeline=t,e.onfinish=null}const Wf=e=>Array.isArray(e)&&typeof e[0]=="number",x_={linearEasing:void 0};function v_(e,t){const n=Vf(e);return()=>{var r;return(r=x_[t])!==null&&r!==void 0?r:n()}}const Ua=v_(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),si=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},i1=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let o=0;o<s;o++)r+=e(si(0,s-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function o1(e){return!!(typeof e=="function"&&Ua()||!e||typeof e=="string"&&(e in Uf||Ua())||Wf(e)||Array.isArray(e)&&e.every(o1))}const xo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Uf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xo([0,.65,.55,1]),circOut:xo([.55,0,1,.45]),backIn:xo([.31,.01,.66,-.59]),backOut:xo([.33,1.53,.69,.99])};function a1(e,t){if(e)return typeof e=="function"&&Ua()?i1(e,t):Wf(e)?xo(e):Array.isArray(e)?e.map(n=>a1(n,t)||Uf.easeOut):Uf[e]}const l1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,b_=1e-7,w_=12;function S_(e,t,n,r,s){let o,a,c=0;do a=t+(n-t)/2,o=l1(a,r,s)-e,o>0?n=a:t=a;while(Math.abs(o)>b_&&++c<w_);return a}function vo(e,t,n,r){if(e===t&&n===r)return kt;const s=o=>S_(o,0,1,e,n);return o=>o===0||o===1?o:l1(s(o),t,r)}const c1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,u1=e=>t=>1-e(1-t),f1=vo(.33,1.53,.69,.99),zf=u1(f1),d1=c1(zf),h1=e=>(e*=2)<1?.5*zf(e):.5*(2-Math.pow(2,-10*(e-1))),Gf=e=>1-Math.sin(Math.acos(e)),p1=u1(Gf),m1=c1(Gf),g1=e=>/^0[^.\s]+$/u.test(e);function T_(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||g1(e):!0}const bo=e=>Math.round(e*1e5)/1e5,Yf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function C_(e){return e==null}const E_=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Hf=(e,t)=>n=>!!(typeof n=="string"&&E_.test(n)&&n.startsWith(e)||t&&!C_(n)&&Object.prototype.hasOwnProperty.call(n,t)),y1=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,o,a,c]=r.match(Yf);return{[e]:parseFloat(s),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},P_=e=>Kn(0,255,e),qf={...ri,transform:e=>Math.round(P_(e))},ls={test:Hf("rgb","red"),parse:y1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+qf.transform(e)+", "+qf.transform(t)+", "+qf.transform(n)+", "+bo(po.transform(r))+")"};function A_(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Kf={test:Hf("#"),parse:A_,transform:ls.transform},ii={test:Hf("hsl","hue"),parse:y1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+In.transform(bo(t))+", "+In.transform(bo(n))+", "+bo(po.transform(r))+")"},Et={test:e=>ls.test(e)||Kf.test(e)||ii.test(e),parse:e=>ls.test(e)?ls.parse(e):ii.test(e)?ii.parse(e):Kf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ls.transform(e):ii.transform(e)},M_=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function O_(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Yf))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(M_))===null||n===void 0?void 0:n.length)||0)>0}const x1="number",v1="color",$_="var",__="var(",b1="${}",I_=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function wo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let o=0;const c=t.replace(I_,u=>(Et.test(u)?(r.color.push(o),s.push(v1),n.push(Et.parse(u))):u.startsWith(__)?(r.var.push(o),s.push($_),n.push(u)):(r.number.push(o),s.push(x1),n.push(parseFloat(u))),++o,b1)).split(b1);return{values:n,split:c,indexes:r,types:s}}function w1(e){return wo(e).values}function S1(e){const{split:t,types:n}=wo(e),r=t.length;return s=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],s[a]!==void 0){const c=n[a];c===x1?o+=bo(s[a]):c===v1?o+=Et.transform(s[a]):o+=s[a]}return o}}const D_=e=>typeof e=="number"?0:e;function N_(e){const t=w1(e);return S1(e)(t.map(D_))}const Dr={test:O_,parse:w1,createTransformer:S1,getAnimatableNone:N_},k_=new Set(["brightness","contrast","saturate","opacity"]);function j_(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Yf)||[];if(!r)return e;const s=n.replace(r,"");let o=k_.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+s+")"}const L_=/\b([a-z-]*)\(.*?\)/gu,Xf={...Dr,getAnimatableNone:e=>{const t=e.match(L_);return t?t.map(j_).join(" "):e}},R_={...Pf,color:Et,backgroundColor:Et,outlineColor:Et,fill:Et,stroke:Et,borderColor:Et,borderTopColor:Et,borderRightColor:Et,borderBottomColor:Et,borderLeftColor:Et,filter:Xf,WebkitFilter:Xf},T1=e=>R_[e];function C1(e,t){let n=T1(e);return n!==Xf&&(n=Dr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const F_=new Set(["auto","none","0"]);function V_(e,t,n){let r=0,s;for(;r<e.length&&!s;){const o=e[r];typeof o=="string"&&!F_.has(o)&&wo(o).values.length&&(s=e[r]),r++}if(s&&n)for(const o of t)e[o]=C1(n,s)}const cs=e=>e*180/Math.PI,Zf=e=>{const t=cs(Math.atan2(e[1],e[0]));return Jf(t)},B_={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Zf,rotateZ:Zf,skewX:e=>cs(Math.atan(e[1])),skewY:e=>cs(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Jf=e=>(e=e%360,e<0&&(e+=360),e),E1=Zf,P1=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),A1=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),W_={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:P1,scaleY:A1,scale:e=>(P1(e)+A1(e))/2,rotateX:e=>Jf(cs(Math.atan2(e[6],e[5]))),rotateY:e=>Jf(cs(Math.atan2(-e[2],e[0]))),rotateZ:E1,rotate:E1,skewX:e=>cs(Math.atan(e[4])),skewY:e=>cs(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function M1(e){return e.includes("scale")?1:0}function Qf(e,t){if(!e||e==="none")return M1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=W_,s=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=B_,s=c}if(!s)return M1(t);const o=r[t],a=s[1].split(",").map(z_);return typeof o=="function"?o(a):a[o]}const U_=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Qf(n,t)};function z_(e){return parseFloat(e.trim())}const O1=e=>e===ri||e===Se,G_=new Set(["x","y","z"]),Y_=ni.filter(e=>!G_.has(e));function H_(e){const t=[];return Y_.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const oi={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Qf(t,"x"),y:(e,{transform:t})=>Qf(t,"y")};oi.translateX=oi.x,oi.translateY=oi.y;const us=new Set;let ed=!1,td=!1;function $1(){if(td){const e=Array.from(us).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=H_(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}td=!1,ed=!1,us.forEach(e=>e.complete()),us.clear()}function _1(){us.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(td=!0)})}function q_(){_1(),$1()}class nd{constructor(t,n,r,s,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(us.add(this),ed||(ed=!0,He.read(_1),He.resolveKeyframes($1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=s==null?void 0:s.get(),c=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),s&&a===void 0&&s.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),us.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,us.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const I1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),K_=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function X_(e){const t=K_.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}const Z_=4;function D1(e,t,n=1){$r(n<=Z_,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,s]=X_(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return I1(a)?parseFloat(a):a}return Ef(s)?D1(s,t,n+1):s}const N1=e=>t=>t.test(e),k1=[ri,Se,In,Ir,V5,F5,{test:e=>e==="auto",parse:e=>e}],j1=e=>k1.find(N1(e));class L1 extends nd{constructor(t,n,r,s,o){super(t,n,r,s,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Ef(d))){const h=D1(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!e1.has(r)||t.length!==2)return;const[s,o]=t,a=j1(s),c=j1(o);if(a!==c)if(O1(a)&&O1(c))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)T_(t[s])&&r.push(s);r.length&&V_(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=oi[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=s.length-1,c=s[a];s[a]=oi[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,d])=>{n.getValue(u).set(d)}),this.resolveNoneKeyframes()}}const R1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Dr.test(e)||e==="0")&&!e.startsWith("url("));function J_(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Q_(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=R1(s,t),c=R1(o,t);return Qs(a===c,`You are trying to animate ${t} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:J_(e)||(n==="spring"||Bf(n))&&r}const e3=e=>e!==null;function za(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(e3),o=t&&n!=="loop"&&t%2===1?0:s.length-1;return!o||r===void 0?s[o]:r}const t3=40;class F1{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Dn.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>t3?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&q_(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Dn.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!Q_(t,r,s,o))if(a)this.options.duration=0;else{u&&u(za(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const rd=2e4;function V1(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<rd;)t+=n,r=e.next(t);return t>=rd?1/0:t}const tt=(e,t,n)=>e+(t-e)*n;function sd(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function n3({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,o=0,a=0;if(!t)s=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;s=sd(u,c,e+1/3),o=sd(u,c,e),a=sd(u,c,e-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Ga(e,t){return n=>n>0?t:e}const id=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},r3=[Kf,ls,ii],s3=e=>r3.find(t=>t.test(e));function B1(e){const t=s3(e);if(Qs(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ii&&(n=n3(n)),n}const W1=(e,t)=>{const n=B1(e),r=B1(t);if(!n||!r)return Ga(e,t);const s={...n};return o=>(s.red=id(n.red,r.red,o),s.green=id(n.green,r.green,o),s.blue=id(n.blue,r.blue,o),s.alpha=tt(n.alpha,r.alpha,o),ls.transform(s))},i3=(e,t)=>n=>t(e(n)),So=(...e)=>e.reduce(i3),od=new Set(["none","hidden"]);function o3(e,t){return od.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function a3(e,t){return n=>tt(e,t,n)}function ad(e){return typeof e=="number"?a3:typeof e=="string"?Ef(e)?Ga:Et.test(e)?W1:u3:Array.isArray(e)?U1:typeof e=="object"?Et.test(e)?W1:l3:Ga}function U1(e,t){const n=[...e],r=n.length,s=e.map((o,a)=>ad(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=s[a](o);return n}}function l3(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=ad(e[s])(e[s],t[s]));return s=>{for(const o in r)n[o]=r[o](s);return n}}function c3(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],c=e.indexes[a][s[a]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,s[a]++}return r}const u3=(e,t)=>{const n=Dr.createTransformer(t),r=wo(e),s=wo(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?od.has(e)&&!s.values.length||od.has(t)&&!r.values.length?o3(e,t):So(U1(c3(r,s),s.values),n):(Qs(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Ga(e,t))};function z1(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tt(e,t,n):ad(e)(e,t)}const f3=5;function G1(e,t,n){const r=Math.max(t-f3,0);return t1(n-e(r),t-r)}const nt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Y1=.001;function d3({duration:e=nt.duration,bounce:t=nt.bounce,velocity:n=nt.velocity,mass:r=nt.mass}){let s,o;Qs(e<=Nn(nt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Kn(nt.minDamping,nt.maxDamping,a),e=Kn(nt.minDuration,nt.maxDuration,Xn(e)),a<1?(s=d=>{const h=d*a,p=h*e,m=h-n,x=ld(d,a),S=Math.exp(-p);return Y1-m/x*S},o=d=>{const p=d*a*e,m=p*n+n,x=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-p),b=ld(Math.pow(d,2),a);return(-s(d)+Y1>0?-1:1)*((m-x)*S)/b}):(s=d=>{const h=Math.exp(-d*e),p=(d-n)*e+1;return-.001+h*p},o=d=>{const h=Math.exp(-d*e),p=(n-d)*(e*e);return h*p});const c=5/e,u=p3(s,o,c);if(e=Nn(e),isNaN(u))return{stiffness:nt.stiffness,damping:nt.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const h3=12;function p3(e,t,n){let r=n;for(let s=1;s<h3;s++)r=r-e(r)/t(r);return r}function ld(e,t){return e*Math.sqrt(1-t*t)}const m3=["duration","bounce"],g3=["stiffness","damping","mass"];function H1(e,t){return t.some(n=>e[n]!==void 0)}function y3(e){let t={velocity:nt.velocity,stiffness:nt.stiffness,damping:nt.damping,mass:nt.mass,isResolvedFromDuration:!1,...e};if(!H1(e,g3)&&H1(e,m3))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,o=2*Kn(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:nt.mass,stiffness:s,damping:o}}else{const n=d3(e);t={...t,...n,mass:nt.mass},t.isResolvedFromDuration=!0}return t}function q1(e=nt.visualDuration,t=nt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:u,damping:d,mass:h,duration:p,velocity:m,isResolvedFromDuration:x}=y3({...n,velocity:-Xn(n.velocity||0)}),S=m||0,b=d/(2*Math.sqrt(u*h)),T=a-o,v=Xn(Math.sqrt(u/h)),A=Math.abs(T)<5;r||(r=A?nt.restSpeed.granular:nt.restSpeed.default),s||(s=A?nt.restDelta.granular:nt.restDelta.default);let C;if(b<1){const P=ld(v,b);C=D=>{const R=Math.exp(-b*v*D);return a-R*((S+b*v*T)/P*Math.sin(P*D)+T*Math.cos(P*D))}}else if(b===1)C=P=>a-Math.exp(-v*P)*(T+(S+v*T)*P);else{const P=v*Math.sqrt(b*b-1);C=D=>{const R=Math.exp(-b*v*D),F=Math.min(P*D,300);return a-R*((S+b*v*T)*Math.sinh(F)+P*T*Math.cosh(F))/P}}const I={calculatedDuration:x&&p||null,next:P=>{const D=C(P);if(x)c.done=P>=p;else{let R=0;b<1&&(R=P===0?Nn(S):G1(C,P,D));const F=Math.abs(R)<=r,W=Math.abs(a-D)<=s;c.done=F&&W}return c.value=c.done?a:D,c},toString:()=>{const P=Math.min(V1(I),rd),D=i1(R=>I.next(P*R).value,P,30);return P+"ms "+D}};return I}function K1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:h}){const p=e[0],m={done:!1,value:p},x=F=>c!==void 0&&F<c||u!==void 0&&F>u,S=F=>c===void 0?u:u===void 0||Math.abs(c-F)<Math.abs(u-F)?c:u;let b=n*t;const T=p+b,v=a===void 0?T:a(T);v!==T&&(b=v-p);const A=F=>-b*Math.exp(-F/r),C=F=>v+A(F),I=F=>{const W=A(F),Q=C(F);m.done=Math.abs(W)<=d,m.value=m.done?v:Q};let P,D;const R=F=>{x(m.value)&&(P=F,D=q1({keyframes:[m.value,S(m.value)],velocity:G1(C,F,m.value),damping:s,stiffness:o,restDelta:d,restSpeed:h}))};return R(0),{calculatedDuration:null,next:F=>{let W=!1;return!D&&P===void 0&&(W=!0,I(F),R(F)),P!==void 0&&F>=P?D.next(F-P):(!W&&I(F),m)}}}const x3=vo(.42,0,1,1),v3=vo(0,0,.58,1),X1=vo(.42,0,.58,1),b3=e=>Array.isArray(e)&&typeof e[0]!="number",Z1={linear:kt,easeIn:x3,easeInOut:X1,easeOut:v3,circIn:Gf,circInOut:m1,circOut:p1,backIn:zf,backInOut:d1,backOut:f1,anticipate:h1},J1=e=>{if(Wf(e)){$r(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,s]=e;return vo(t,n,r,s)}else if(typeof e=="string")return $r(Z1[e]!==void 0,`Invalid easing type '${e}'`),Z1[e];return e};function w3(e,t,n){const r=[],s=n||z1,o=e.length-1;for(let a=0;a<o;a++){let c=s(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||kt:t;c=So(u,c)}r.push(c)}return r}function S3(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const o=e.length;if($r(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=w3(t,r,s),u=c.length,d=h=>{if(a&&h<e[0])return t[0];let p=0;if(u>1)for(;p<e.length-2&&!(h<e[p+1]);p++);const m=si(e[p],e[p+1],h);return c[p](m)};return n?h=>d(Kn(e[0],e[o-1],h)):d}function T3(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=si(0,t,r);e.push(tt(n,1,s))}}function C3(e){const t=[0];return T3(t,e.length-1),t}function E3(e,t){return e.map(n=>n*t)}function P3(e,t){return e.map(()=>t||X1).splice(0,e.length-1)}function To({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=b3(r)?r.map(J1):J1(r),o={done:!1,value:t[0]},a=E3(n&&n.length===t.length?n:C3(t),e),c=S3(a,t,{ease:Array.isArray(s)?s:P3(t,s)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const A3=e=>{const t=({timestamp:n})=>e(n);return{start:()=>He.update(t,!0),stop:()=>_r(t),now:()=>xt.isProcessing?xt.timestamp:Dn.now()}},M3={decay:K1,inertia:K1,tween:To,keyframes:To,spring:q1},O3=e=>e/100;class cd extends F1{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:s,keyframes:o}=this.options,a=(s==null?void 0:s.KeyframeResolver)||nd,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new a(o,c,n,r,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:o,velocity:a=0}=this.options,c=Bf(n)?n:M3[n]||To;let u,d;process.env.NODE_ENV!=="production"&&c!==To&&$r(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==To&&typeof t[0]!="number"&&(u=So(O3,z1(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=V1(h));const{calculatedDuration:p}=h,m=p+s,x=m*(r+1)-s;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:p,resolvedDuration:m,totalDuration:x}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:s,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:u,calculatedDuration:d,totalDuration:h,resolvedDuration:p}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:x,repeatType:S,repeatDelay:b,onUpdate:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-m*(this.speed>=0?1:-1),A=this.speed>=0?v<0:v>h;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let C=this.currentTime,I=o;if(x){const F=Math.min(this.currentTime,h)/p;let W=Math.floor(F),Q=F%1;!Q&&F>=1&&(Q=1),Q===1&&W--,W=Math.min(W,x+1),!!(W%2)&&(S==="reverse"?(Q=1-Q,b&&(Q-=b/p)):S==="mirror"&&(I=a)),C=Kn(0,1,Q)*p}const P=A?{done:!1,value:u[0]}:I.next(C);c&&(P.value=c(P.value));let{done:D}=P;!A&&d!==null&&(D=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return R&&s!==void 0&&(P.value=za(u,this.options,s)),T&&T(P.value),R&&this.finish(),P}get duration(){const{resolved:t}=this;return t?Xn(t.calculatedDuration):0}get time(){return Xn(this.currentTime)}set time(t){t=Nn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Xn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=A3,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const $3=new Set(["opacity","clipPath","filter","transform"]);function _3(e,t,n,{delay:r=0,duration:s=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=a1(c,s);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const I3=Vf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ya=10,D3=2e4;function N3(e){return Bf(e.type)||e.type==="spring"||!o1(e.ease)}function k3(e,t){const n=new cd({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let o=0;for(;!r.done&&o<D3;)r=n.sample(o),s.push(r.value),o+=Ya;return{times:void 0,keyframes:s,duration:o-Ya,ease:"linear"}}const Q1={anticipate:h1,backInOut:d1,circInOut:m1};function j3(e){return e in Q1}class ev extends F1{constructor(t){super(t);const{name:n,motionValue:r,element:s,keyframes:o}=this.options;this.resolver=new L1(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:o,type:a,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&Ua()&&j3(o)&&(o=Q1[o]),N3(this.options)){const{onComplete:p,onUpdate:m,motionValue:x,element:S,...b}=this.options,T=k3(t,b);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,s=T.times,o=T.ease,a="keyframes"}const h=_3(c.owner.current,u,t,{...this.options,duration:r,times:s,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(s1(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:p}=this.options;c.set(za(t,this.options,n)),p&&p(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:s,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Xn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Xn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Nn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return kt;const{animation:r}=n;s1(r,t)}return kt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:s,type:o,ease:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:p,element:m,...x}=this.options,S=new cd({...x,keyframes:r,duration:s,type:o,ease:a,times:c,isGenerator:!0}),b=Nn(this.time);d.setWithVelocity(S.sample(b-Ya).value,S.sample(b).value,Ya)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:s,repeatType:o,damping:a,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return I3()&&r&&$3.has(r)&&(r!=="transform"||!d)&&!u&&!s&&o!=="mirror"&&a!==0&&c!=="inertia"}}const L3={type:"spring",stiffness:500,damping:25,restSpeed:10},R3=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),F3={type:"keyframes",duration:.8},V3={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},B3=(e,{keyframes:t})=>t.length>2?F3:as.has(e)?e.startsWith("scale")?R3(t[1]):L3:V3;function W3({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const ud=(e,t,n,r={},s,o)=>a=>{const c=kf(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Nn(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:m=>{t.set(m),c.onUpdate&&c.onUpdate(m)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:s};W3(c)||(h={...h,...B3(e,h)}),h.duration&&(h.duration=Nn(h.duration)),h.repeatDelay&&(h.repeatDelay=Nn(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let p=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(p=!0)),h.allowFlatten=!c.type&&!c.ease,p&&!o&&t.get()!==void 0){const m=za(h.keyframes,c);if(m!==void 0)return He.update(()=>{h.onUpdate(m),h.onComplete()}),new y_([])}return!o&&ev.supports(h)?new ev(h):new cd(h)};function U3({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function tv(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const d=[],h=s&&e.animationState&&e.animationState.getState()[s];for(const p in u){const m=e.getValue(p,(o=e.latestValues[p])!==null&&o!==void 0?o:null),x=u[p];if(x===void 0||h&&U3(h,p))continue;const S={delay:n,...kf(a||{},p)};let b=!1;if(window.MotionHandoffAnimation){const v=r1(e);if(v){const A=window.MotionHandoffAnimation(v,p,He);A!==null&&(S.startTime=A,b=!0)}}Ff(e,p),m.start(ud(p,m,x,e.shouldReduceMotion&&e1.has(p)?{type:!1}:S,e,b));const T=m.animation;T&&d.push(T)}return c&&Promise.all(d).then(()=>{He.update(()=>{c&&h_(e,c)})}),d}function fd(e,t,n={}){var r;const s=go(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const a=s?()=>Promise.all(tv(e,s,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:p,staggerDirection:m}=o;return z3(e,t,h+d,p,m,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,h]=u==="beforeChildren"?[a,c]:[c,a];return d().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function z3(e,t,n=0,r=0,s=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=s===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(G3).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(fd(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function G3(e,t){return e.sortNodePosition(t)}function Y3(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(o=>fd(e,o,n));r=Promise.all(s)}else if(typeof t=="string")r=fd(e,t,n);else{const s=typeof t=="function"?go(e,t,n.custom):t;r=Promise.all(tv(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function nv(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const H3=wf.length;function rv(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?rv(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<H3;n++){const r=wf[n],s=e.props[r];(fo(s)||s===!1)&&(t[r]=s)}return t}const q3=[...bf].reverse(),K3=bf.length;function X3(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Y3(e,n,r)))}function Z3(e){let t=X3(e),n=sv(),r=!0;const s=u=>(d,h)=>{var p;const m=go(e,h,u==="exit"?(p=e.presenceContext)===null||p===void 0?void 0:p.custom:void 0);if(m){const{transition:x,transitionEnd:S,...b}=m;d={...d,...b,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=rv(e.parent)||{},p=[],m=new Set;let x={},S=1/0;for(let T=0;T<K3;T++){const v=q3[T],A=n[v],C=d[v]!==void 0?d[v]:h[v],I=fo(C),P=v===u?A.isActive:null;P===!1&&(S=T);let D=C===h[v]&&C!==d[v]&&I;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),A.protectedKeys={...x},!A.isActive&&P===null||!C&&!A.prevProp||Ra(C)||typeof C=="boolean")continue;const R=J3(A.prevProp,C);let F=R||v===u&&A.isActive&&!D&&I||T>S&&I,W=!1;const Q=Array.isArray(C)?C:[C];let ee=Q.reduce(s(v),{});P===!1&&(ee={});const{prevResolvedValues:ae={}}=A,ge={...ae,...ee},de=Y=>{F=!0,m.has(Y)&&(W=!0,m.delete(Y)),A.needsAnimating[Y]=!0;const z=e.getValue(Y);z&&(z.liveStyle=!1)};for(const Y in ge){const z=ee[Y],K=ae[Y];if(x.hasOwnProperty(Y))continue;let $=!1;Df(z)&&Df(K)?$=!nv(z,K):$=z!==K,$?z!=null?de(Y):m.add(Y):z!==void 0&&m.has(Y)?de(Y):A.protectedKeys[Y]=!0}A.prevProp=C,A.prevResolvedValues=ee,A.isActive&&(x={...x,...ee}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(D&&R)||W)&&p.push(...Q.map(Y=>({animation:Y,options:{type:v}})))}if(m.size){const T={};if(typeof d.initial!="boolean"){const v=go(e,Array.isArray(d.initial)?d.initial[0]:d.initial);v&&v.transition&&(T.transition=v.transition)}m.forEach(v=>{const A=e.getBaseTarget(v),C=e.getValue(v);C&&(C.liveStyle=!0),T[v]=A??null}),p.push({animation:T})}let b=!!p.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(p):Promise.resolve()}function c(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(m=>{var x;return(x=m.animationState)===null||x===void 0?void 0:x.setActive(u,d)}),n[u].isActive=d;const p=a(u);for(const m in n)n[m].protectedKeys={};return p}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=sv(),r=!0}}}function J3(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!nv(t,e):!1}function fs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sv(){return{animate:fs(!0),whileInView:fs(),whileHover:fs(),whileTap:fs(),whileDrag:fs(),whileFocus:fs(),exit:fs()}}class Nr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Q3 extends Nr{constructor(t){super(t),t.animationState||(t.animationState=Z3(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ra(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let eI=0;class tI extends Nr{constructor(){super(...arguments),this.id=eI++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const nI={animation:{Feature:Q3},exit:{Feature:tI}},gn={x:!1,y:!1};function iv(){return gn.x||gn.y}function rI(e){return e==="x"||e==="y"?gn[e]?null:(gn[e]=!0,()=>{gn[e]=!1}):gn.x||gn.y?null:(gn.x=gn.y=!0,()=>{gn.x=gn.y=!1})}function Co(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const dd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Eo(e){return{point:{x:e.pageX,y:e.pageY}}}const sI=e=>t=>dd(t)&&e(t,Eo(t));function Po(e,t,n,r){return Co(e,t,sI(n),r)}function ov({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function iI({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function oI(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const av=1e-4,aI=1-av,lI=1+av,lv=.01,cI=0-lv,uI=0+lv;function $t(e){return e.max-e.min}function fI(e,t,n){return Math.abs(e-t)<=n}function cv(e,t,n,r=.5){e.origin=r,e.originPoint=tt(t.min,t.max,e.origin),e.scale=$t(n)/$t(t),e.translate=tt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=aI&&e.scale<=lI||isNaN(e.scale))&&(e.scale=1),(e.translate>=cI&&e.translate<=uI||isNaN(e.translate))&&(e.translate=0)}function Ao(e,t,n,r){cv(e.x,t.x,n.x,r?r.originX:void 0),cv(e.y,t.y,n.y,r?r.originY:void 0)}function uv(e,t,n){e.min=n.min+t.min,e.max=e.min+$t(t)}function dI(e,t,n){uv(e.x,t.x,n.x),uv(e.y,t.y,n.y)}function fv(e,t,n){e.min=t.min-n.min,e.max=e.min+$t(t)}function Mo(e,t,n){fv(e.x,t.x,n.x),fv(e.y,t.y,n.y)}const dv=()=>({translate:0,scale:1,origin:0,originPoint:0}),ai=()=>({x:dv(),y:dv()}),hv=()=>({min:0,max:0}),lt=()=>({x:hv(),y:hv()});function rn(e){return[e("x"),e("y")]}function hd(e){return e===void 0||e===1}function pd({scale:e,scaleX:t,scaleY:n}){return!hd(e)||!hd(t)||!hd(n)}function ds(e){return pd(e)||pv(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function pv(e){return mv(e.x)||mv(e.y)}function mv(e){return e&&e!=="0%"}function Ha(e,t,n){const r=e-n,s=t*r;return n+s}function gv(e,t,n,r,s){return s!==void 0&&(e=Ha(e,s,r)),Ha(e,n,r)+t}function md(e,t=0,n=1,r,s){e.min=gv(e.min,t,n,r,s),e.max=gv(e.max,t,n,r,s)}function yv(e,{x:t,y:n}){md(e.x,t.translate,t.scale,t.originPoint),md(e.y,n.translate,n.scale,n.originPoint)}const xv=.999999999999,vv=1.0000000000001;function hI(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let o,a;for(let c=0;c<s;c++){o=n[c],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ci(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,yv(e,a)),r&&ds(o.latestValues)&&ci(e,o.latestValues))}t.x<vv&&t.x>xv&&(t.x=1),t.y<vv&&t.y>xv&&(t.y=1)}function li(e,t){e.min=e.min+t,e.max=e.max+t}function bv(e,t,n,r,s=.5){const o=tt(e.min,e.max,s);md(e,t,n,o,r)}function ci(e,t){bv(e.x,t.x,t.scaleX,t.scale,t.originX),bv(e.y,t.y,t.scaleY,t.scale,t.originY)}function wv(e,t){return ov(oI(e.getBoundingClientRect(),t))}function pI(e,t,n){const r=wv(e,n),{scroll:s}=t;return s&&(li(r.x,s.offset.x),li(r.y,s.offset.y)),r}const Sv=({current:e})=>e?e.ownerDocument.defaultView:null,Tv=(e,t)=>Math.abs(e-t);function mI(e,t){const n=Tv(e.x,t.x),r=Tv(e.y,t.y);return Math.sqrt(n**2+r**2)}class Cv{constructor(t,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=yd(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,x=mI(p.offset,{x:0,y:0})>=3;if(!m&&!x)return;const{point:S}=p,{timestamp:b}=xt;this.history.push({...S,timestamp:b});const{onStart:T,onMove:v}=this.handlers;m||(T&&T(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,p)},this.handlePointerMove=(p,m)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=gd(m,this.transformPagePoint),He.update(this.updatePoint,!0)},this.handlePointerUp=(p,m)=>{this.end();const{onEnd:x,onSessionEnd:S,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=yd(p.type==="pointercancel"?this.lastMoveEventInfo:gd(m,this.transformPagePoint),this.history);this.startEvent&&x&&x(p,T),S&&S(p,T)},!dd(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const a=Eo(t),c=gd(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=xt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,yd(c,this.history)),this.removeListeners=So(Po(this.contextWindow,"pointermove",this.handlePointerMove),Po(this.contextWindow,"pointerup",this.handlePointerUp),Po(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),_r(this.updatePoint)}}function gd(e,t){return t?{point:t(e.point)}:e}function Ev(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yd({point:e},t){return{point:e,delta:Ev(e,Pv(t)),offset:Ev(e,gI(t)),velocity:yI(t,.1)}}function gI(e){return e[0]}function Pv(e){return e[e.length-1]}function yI(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=Pv(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Nn(t)));)n--;if(!r)return{x:0,y:0};const o=Xn(s.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(s.x-r.x)/o,y:(s.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function xI(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?tt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?tt(n,e,r.max):Math.min(e,n)),e}function Av(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function vI(e,{top:t,left:n,bottom:r,right:s}){return{x:Av(e.x,n,s),y:Av(e.y,t,r)}}function Mv(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function bI(e,t){return{x:Mv(e.x,t.x),y:Mv(e.y,t.y)}}function wI(e,t){let n=.5;const r=$t(e),s=$t(t);return s>r?n=si(t.min,t.max-r,e.min):r>s&&(n=si(e.min,e.max-s,t.min)),Kn(0,1,n)}function SI(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const xd=.35;function TI(e=xd){return e===!1?e=0:e===!0&&(e=xd),{x:Ov(e,"left","right"),y:Ov(e,"top","bottom")}}function Ov(e,t,n){return{min:$v(e,t),max:$v(e,n)}}function $v(e,t){return typeof e=="number"?e:e[t]||0}const CI=new WeakMap;class EI{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=lt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=h=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Eo(h).point)},o=(h,p)=>{const{drag:m,dragPropagation:x,onDragStart:S}=this.getProps();if(m&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=rI(m),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rn(T=>{let v=this.getAxisMotionValue(T).get()||0;if(In.test(v)){const{projection:A}=this.visualElement;if(A&&A.layout){const C=A.layout.layoutBox[T];C&&(v=$t(C)*(parseFloat(v)/100))}}this.originPoint[T]=v}),S&&He.postRender(()=>S(h,p)),Ff(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(h,p)=>{const{dragPropagation:m,dragDirectionLock:x,onDirectionLock:S,onDrag:b}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:T}=p;if(x&&this.currentDirection===null){this.currentDirection=PI(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",p.point,T),this.updateAxis("y",p.point,T),this.visualElement.render(),b&&b(h,p)},c=(h,p)=>this.stop(h,p),u=()=>rn(h=>{var p;return this.getAnimationState(h)==="paused"&&((p=this.getAxisMotionValue(h).animation)===null||p===void 0?void 0:p.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Cv(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:Sv(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&He.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!qa(t,s,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=xI(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&ti(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=vI(s.layoutBox,n):this.constraints=!1,this.elastic=TI(r),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&rn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=SI(s.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ti(t))return!1;const r=t.current;$r(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const o=pI(r,s.root,this.visualElement.getTransformPagePoint());let a=bI(s.layout.layoutBox,o);if(n){const c=n(iI(a));this.hasMutatedConstraints=!!c,c&&(a=ov(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=rn(h=>{if(!qa(h,n,this.currentDirection))return;let p=u&&u[h]||{};a&&(p={min:0,max:0});const m=s?200:1e6,x=s?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:m,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...o,...p};return this.startAxisValueAnimation(h,S)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ff(this.visualElement,t),r.start(ud(t,r,0,n,this.visualElement,!1))}stopAnimation(){rn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){rn(n=>{const{drag:r}=this.getProps();if(!qa(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,o=this.getAxisMotionValue(n);if(s&&s.layout){const{min:a,max:c}=s.layout.layoutBox[n];o.set(t[n]-tt(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ti(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};rn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();s[a]=wI({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rn(a=>{if(!qa(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(tt(u,d,s[a]))})}addListeners(){if(!this.visualElement.current)return;CI.set(this.visualElement,this);const t=this.visualElement.current,n=Po(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();ti(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,o=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),He.read(r);const a=Co(window,"resize",()=>this.scalePositionWithinConstraints()),c=s.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(rn(h=>{const p=this.getAxisMotionValue(h);p&&(this.originPoint[h]+=u[h].translate,p.set(p.get()+u[h].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:a=xd,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:o,dragElastic:a,dragMomentum:c}}}function qa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function PI(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class AI extends Nr{constructor(t){super(t),this.removeGroupControls=kt,this.removeListeners=kt,this.controls=new EI(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||kt}unmount(){this.removeGroupControls(),this.removeListeners()}}const _v=e=>(t,n)=>{e&&He.postRender(()=>e(t,n))};class MI extends Nr{constructor(){super(...arguments),this.removePointerDownListener=kt}onPointerDown(t){this.session=new Cv(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Sv(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:_v(t),onStart:_v(n),onMove:r,onEnd:(o,a)=>{delete this.session,s&&He.postRender(()=>s(o,a))}}}mount(){this.removePointerDownListener=Po(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ka={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Iv(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Oo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=Iv(e,t.target.x),r=Iv(e,t.target.y);return`${n}% ${r}%`}},OI={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=Dr.parse(e);if(s.length>5)return r;const o=Dr.createTransformer(e),a=typeof s[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;s[0+a]/=c,s[1+a]/=u;const d=tt(c,u,.5);return typeof s[2+a]=="number"&&(s[2+a]/=d),typeof s[3+a]=="number"&&(s[3+a]/=d),o(s)}};class $I extends O.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:o}=t;R5(_I),o&&(n.group&&n.group.add(o),r&&r.register&&s&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Ka.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,s||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||He.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Sf.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Dv(e){const[t,n]=Ex(),r=O.useContext(mf);return g.jsx($I,{...e,layoutGroup:r,switchLayoutGroup:O.useContext(jx),isPresent:t,safeToRemove:n})}const _I={borderRadius:{...Oo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Oo,borderTopRightRadius:Oo,borderBottomLeftRadius:Oo,borderBottomRightRadius:Oo,boxShadow:OI};function II(e,t,n){const r=Ct(e)?e:yo(e);return r.start(ud("",r,t,n)),r.animation}function DI(e){return e instanceof SVGElement&&e.tagName!=="svg"}const NI=(e,t)=>e.depth-t.depth;class kI{constructor(){this.children=[],this.isDirty=!1}add(t){jf(this.children,t),this.isDirty=!0}remove(t){Lf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(NI),this.isDirty=!1,this.children.forEach(t)}}function jI(e,t){const n=Dn.now(),r=({timestamp:s})=>{const o=s-n;o>=t&&(_r(r),e(o-t))};return He.read(r,!0),()=>_r(r)}const Nv=["TopLeft","TopRight","BottomLeft","BottomRight"],LI=Nv.length,kv=e=>typeof e=="string"?parseFloat(e):e,jv=e=>typeof e=="number"||Se.test(e);function RI(e,t,n,r,s,o){s?(e.opacity=tt(0,n.opacity!==void 0?n.opacity:1,FI(r)),e.opacityExit=tt(t.opacity!==void 0?t.opacity:1,0,VI(r))):o&&(e.opacity=tt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<LI;a++){const c=`border${Nv[a]}Radius`;let u=Lv(t,c),d=Lv(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||jv(u)===jv(d)?(e[c]=Math.max(tt(kv(u),kv(d),r),0),(In.test(d)||In.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=tt(t.rotate||0,n.rotate||0,r))}function Lv(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const FI=Rv(0,.5,p1),VI=Rv(.5,.95,kt);function Rv(e,t,n){return r=>r<e?0:r>t?1:n(si(e,t,r))}function Fv(e,t){e.min=t.min,e.max=t.max}function sn(e,t){Fv(e.x,t.x),Fv(e.y,t.y)}function Vv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Bv(e,t,n,r,s){return e-=t,e=Ha(e,1/n,r),s!==void 0&&(e=Ha(e,1/s,r)),e}function BI(e,t=0,n=1,r=.5,s,o=e,a=e){if(In.test(t)&&(t=parseFloat(t),t=tt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=tt(o.min,o.max,r);e===o&&(c-=t),e.min=Bv(e.min,t,n,c,s),e.max=Bv(e.max,t,n,c,s)}function Wv(e,t,[n,r,s],o,a){BI(e,t[n],t[r],t[s],t.scale,o,a)}const WI=["x","scaleX","originX"],UI=["y","scaleY","originY"];function Uv(e,t,n,r){Wv(e.x,t,WI,n?n.x:void 0,r?r.x:void 0),Wv(e.y,t,UI,n?n.y:void 0,r?r.y:void 0)}function zv(e){return e.translate===0&&e.scale===1}function Gv(e){return zv(e.x)&&zv(e.y)}function Yv(e,t){return e.min===t.min&&e.max===t.max}function zI(e,t){return Yv(e.x,t.x)&&Yv(e.y,t.y)}function Hv(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function qv(e,t){return Hv(e.x,t.x)&&Hv(e.y,t.y)}function Kv(e){return $t(e.x)/$t(e.y)}function Xv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class GI{constructor(){this.members=[]}add(t){jf(this.members,t),t.scheduleRender()}remove(t){if(Lf(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const o=this.members[s];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function YI(e,t,n){let r="";const s=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((s||o||a)&&(r=`translate3d(${s}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:p,rotateY:m,skewX:x,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),p&&(r+=`rotateX(${p}deg) `),m&&(r+=`rotateY(${m}deg) `),x&&(r+=`skewX(${x}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const vd=["","X","Y","Z"],HI={visibility:"hidden"},Zv=1e3;let qI=0;function bd(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Jv(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=r1(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",He,!(s||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Jv(r)}function Qv({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(a={},c=t==null?void 0:t()){this.id=qI++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(ZI),this.nodes.forEach(nD),this.nodes.forEach(rD),this.nodes.forEach(JI)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new kI)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Rf),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=DI(a),this.instance=a;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let p;const m=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=jI(m,250),Ka.hasAnimatedSinceResize&&(Ka.hasAnimatedSinceResize=!1,this.nodes.forEach(tb))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:m,hasRelativeLayoutChanged:x,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||h.getDefaultTransition()||lD,{onLayoutAnimationStart:T,onLayoutAnimationComplete:v}=h.getProps(),A=!this.targetLayout||!qv(this.targetLayout,S),C=!m&&x;if(this.options.layoutRoot||this.resumeFrom||C||m&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,C);const I={...kf(b,"layout"),onPlay:T,onComplete:v};(h.shouldReduceMotion||this.options.layoutRoot)&&(I.delay=0,I.type=!1),this.startAnimation(I)}else m||tb(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,_r(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(sD),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Jv(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const p=this.path[h];p.shouldResetTransform=!0,p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(eb);return}this.isUpdating||this.nodes.forEach(eD),this.isUpdating=!1,this.nodes.forEach(tD),this.nodes.forEach(KI),this.nodes.forEach(XI),this.clearAllSnapshots();const c=Dn.now();xt.delta=Kn(0,1e3/60,c-xt.timestamp),xt.timestamp=c,xt.isProcessing=!0,vf.update.process(xt),vf.preRender.process(xt),vf.render.process(xt),xt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Sf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(QI),this.sharedNodes.forEach(iD)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,He.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){He.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!$t(this.snapshot.measuredBox.x)&&!$t(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=lt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!s)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!Gv(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||ds(this.latestValues)||h)&&(s(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),cD(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return lt();const u=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(uD))){const{scroll:h}=this.root;h&&(li(u.x,h.offset.x),li(u.y,h.offset.y))}return u}removeElementScroll(a){var c;const u=lt();if(sn(u,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:p,options:m}=h;h!==this.root&&p&&m.layoutScroll&&(p.wasRoot&&sn(u,a),li(u.x,p.offset.x),li(u.y,p.offset.y))}return u}applyTransform(a,c=!1){const u=lt();sn(u,a);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&ci(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),ds(h.latestValues)&&ci(u,h.latestValues)}return ds(this.latestValues)&&ci(u,this.latestValues),u}removeTransform(a){const c=lt();sn(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!ds(d.latestValues))continue;pd(d.latestValues)&&d.updateSnapshot();const h=lt(),p=d.measurePageBox();sn(h,p),Uv(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return ds(this.latestValues)&&Uv(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==xt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:m}=this.options;if(!(!this.layout||!(p||m))){if(this.resolvedRelativeTargetAt=xt.timestamp,!this.targetDelta&&!this.relativeTarget){const x=this.getClosestProjectingParent();x&&x.layout&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Mo(this.relativeTargetOrigin,this.layout.layoutBox,x.layout.layoutBox),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=lt(),this.targetWithTransforms=lt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),dI(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),yv(this.target,this.targetDelta)):sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const x=this.getClosestProjectingParent();x&&!!x.resumingFrom==!!this.resumingFrom&&!x.options.layoutScroll&&x.target&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Mo(this.relativeTargetOrigin,this.target,x.target),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||pd(this.parent.latestValues)||pv(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===xt.timestamp&&(d=!1),d)return;const{layout:h,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||p))return;sn(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,x=this.treeScale.y;hI(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=lt());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Vv(this.prevProjectionDelta.x,this.projectionDelta.x),Vv(this.prevProjectionDelta.y,this.projectionDelta.y)),Ao(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==x||!Xv(this.projectionDelta.x,this.prevProjectionDelta.x)||!Xv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ai(),this.projectionDelta=ai(),this.projectionDeltaWithTransform=ai()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},p=ai();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const m=lt(),x=u?u.source:void 0,S=this.layout?this.layout.source:void 0,b=x!==S,T=this.getStack(),v=!T||T.members.length<=1,A=!!(b&&!v&&this.options.crossfade===!0&&!this.path.some(aD));this.animationProgress=0;let C;this.mixTargetDelta=I=>{const P=I/1e3;nb(p.x,a.x,P),nb(p.y,a.y,P),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mo(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),oD(this.relativeTarget,this.relativeTargetOrigin,m,P),C&&zI(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=lt()),sn(C,this.relativeTarget)),b&&(this.animationValues=h,RI(h,d,this.latestValues,P,A,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(_r(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=He.update(()=>{Ka.hasAnimatedSinceResize=!0,this.currentAnimation=II(0,Zv,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Zv),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&ab(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||lt();const p=$t(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+p;const m=$t(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+m}sn(c,u),ci(c,h),Ao(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new GI),this.sharedNodes.get(a).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&bd("z",a,d,this.animationValues);for(let h=0;h<vd.length;h++)bd(`rotate${vd[h]}`,a,d,this.animationValues),bd(`skew${vd[h]}`,a,d,this.animationValues);a.render();for(const h in d)a.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return HI;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Ba(a==null?void 0:a.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Ba(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!ds(this.latestValues)&&(b.transform=h?h({},""):"none",this.hasProjected=!1),b}const m=p.animationValues||p.latestValues;this.applyTransformsToTarget(),d.transform=YI(this.projectionDeltaWithTransform,this.treeScale,m),h&&(d.transform=h(m,d.transform));const{x,y:S}=this.projectionDelta;d.transformOrigin=`${x.origin*100}% ${S.origin*100}% 0`,p.animationValues?d.opacity=p===this?(u=(c=m.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:d.opacity=p===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const b in ho){if(m[b]===void 0)continue;const{correct:T,applyTo:v,isCSSVariable:A}=ho[b],C=d.transform==="none"?m[b]:T(m[b],p);if(v){const I=v.length;for(let P=0;P<I;P++)d[v[P]]=C}else A?this.options.visualElement.renderState.vars[b]=C:d[b]=C}return this.options.layoutId&&(d.pointerEvents=p===this?Ba(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(eb),this.root.sharedNodes.clear()}}}function KI(e){e.updateLayout()}function XI(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?rn(p=>{const m=a?n.measuredBox[p]:n.layoutBox[p],x=$t(m);m.min=r[p].min,m.max=m.min+x}):ab(o,n.layoutBox,r)&&rn(p=>{const m=a?n.measuredBox[p]:n.layoutBox[p],x=$t(r[p]);m.max=m.min+x,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+x)});const c=ai();Ao(c,r,n.layoutBox);const u=ai();a?Ao(u,e.applyTransform(s,!0),n.measuredBox):Ao(u,r,n.layoutBox);const d=!Gv(c);let h=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:m,layout:x}=p;if(m&&x){const S=lt();Mo(S,n.layoutBox,m.layoutBox);const b=lt();Mo(b,r,x.layoutBox),qv(S,b)||(h=!0),p.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=S,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function ZI(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function JI(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function QI(e){e.clearSnapshot()}function eb(e){e.clearMeasurements()}function eD(e){e.isLayoutDirty=!1}function tD(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function tb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function nD(e){e.resolveTargetDelta()}function rD(e){e.calcProjection()}function sD(e){e.resetSkewAndRotation()}function iD(e){e.removeLeadSnapshot()}function nb(e,t,n){e.translate=tt(t.translate,0,n),e.scale=tt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function rb(e,t,n,r){e.min=tt(t.min,n.min,r),e.max=tt(t.max,n.max,r)}function oD(e,t,n,r){rb(e.x,t.x,n.x,r),rb(e.y,t.y,n.y,r)}function aD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const lD={duration:.45,ease:[.4,0,.1,1]},sb=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ib=sb("applewebkit/")&&!sb("chrome/")?Math.round:kt;function ob(e){e.min=ib(e.min),e.max=ib(e.max)}function cD(e){ob(e.x),ob(e.y)}function ab(e,t,n){return e==="position"||e==="preserve-aspect"&&!fI(Kv(t),Kv(n),.2)}function uD(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const fD=Qv({attachResizeListener:(e,t)=>Co(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wd={current:void 0},lb=Qv({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wd.current){const e=new fD({});e.mount(window),e.setOptions({layoutScroll:!0}),wd.current=e}return wd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),dD={pan:{Feature:MI},drag:{Feature:AI,ProjectionNode:lb,MeasureLayout:Dv}};function hD(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const o=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function cb(e,t){const n=hD(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function ub(e){return!(e.pointerType==="touch"||iv())}function pD(e,t,n={}){const[r,s,o]=cb(e,n),a=c=>{if(!ub(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=p=>{ub(p)&&(d(p),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,s)};return r.forEach(c=>{c.addEventListener("pointerenter",a,s)}),o}function fb(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,o=r[s];o&&He.postRender(()=>o(t,Eo(t)))}class mD extends Nr{mount(){const{current:t}=this.node;t&&(this.unmount=pD(t,(n,r)=>(fb(this.node,r,"Start"),s=>fb(this.node,s,"End"))))}unmount(){}}class gD extends Nr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=So(Co(this.node.current,"focus",()=>this.onFocus()),Co(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const db=(e,t)=>t?e===t?!0:db(e,t.parentElement):!1,yD=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function xD(e){return yD.has(e.tagName)||e.tabIndex!==-1}const $o=new WeakSet;function hb(e){return t=>{t.key==="Enter"&&e(t)}}function Sd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const vD=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=hb(()=>{if($o.has(n))return;Sd(n,"down");const s=hb(()=>{Sd(n,"up")}),o=()=>Sd(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function pb(e){return dd(e)&&!iv()}function bD(e,t,n={}){const[r,s,o]=cb(e,n),a=c=>{const u=c.currentTarget;if(!pb(c)||$o.has(u))return;$o.add(u);const d=t(u,c),h=(x,S)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",m),!(!pb(x)||!$o.has(u))&&($o.delete(u),typeof d=="function"&&d(x,{success:S}))},p=x=>{h(x,u===window||u===document||n.useGlobalTarget||db(u,x.target))},m=x=>{h(x,!1)};window.addEventListener("pointerup",p,s),window.addEventListener("pointercancel",m,s)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,s),c instanceof HTMLElement&&(c.addEventListener("focus",d=>vD(d,s)),!xD(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}function mb(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),o=r[s];o&&He.postRender(()=>o(t,Eo(t)))}class wD extends Nr{mount(){const{current:t}=this.node;t&&(this.unmount=bD(t,(n,r)=>(mb(this.node,r,"Start"),(s,{success:o})=>mb(this.node,s,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Td=new WeakMap,Cd=new WeakMap,SD=e=>{const t=Td.get(e.target);t&&t(e)},TD=e=>{e.forEach(SD)};function CD({root:e,...t}){const n=e||document;Cd.has(n)||Cd.set(n,{});const r=Cd.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(TD,{root:e,...t})),r[s]}function ED(e,t,n){const r=CD(t);return Td.set(e,n),r.observe(e),()=>{Td.delete(e),r.unobserve(e)}}const PD={some:0,all:1};class AD extends Nr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:PD[s]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:p}=this.node.getProps(),m=d?h:p;m&&m(u)};return ED(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(MD(t,n))&&this.startObserver()}unmount(){}}function MD({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const OD={inView:{Feature:AD},tap:{Feature:wD},focus:{Feature:gD},hover:{Feature:mD}},$D={layout:{ProjectionNode:lb,MeasureLayout:Dv}},Ed={current:null},gb={current:!1};function _D(){if(gb.current=!0,!!yf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ed.current=e.matches;e.addListener(t),t()}else Ed.current=!1}const ID=[...k1,Et,Dr],DD=e=>ID.find(N1(e)),ND=new WeakMap;function kD(e,t,n){for(const r in t){const s=t[r],o=n[r];if(Ct(s))e.addValue(r,s),process.env.NODE_ENV==="development"&&ja(s.version==="12.6.2",`Attempting to mix Motion versions ${s.version} with 12.6.2 may not work as expected.`);else if(Ct(o))e.addValue(r,yo(s,{owner:e}));else if(o!==s)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(s):a.hasAnimated||a.set(s)}else{const a=e.getStaticValue(r);e.addValue(r,yo(a!==void 0?a:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const yb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class jD{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=nd,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const x=Dn.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,He.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Fa(n),this.isVariantNode=Dx(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const x in m){const S=m[x];u[x]!==void 0&&Ct(S)&&S.set(u[x],!1)}}mount(t){this.current=t,ND.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),gb.current||_D(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ed.current,process.env.NODE_ENV!=="production"&&ja(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),_r(this.notifyUpdate),_r(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=as.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&He.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ei){const n=ei[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):lt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<yb.length;r++){const s=yb[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o="on"+s,a=t[o];a&&(this.propEventSubscriptions[s]=this.on(s,a))}this.prevMotionValues=kD(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=yo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(I1(s)||g1(s))?s=parseFloat(s):!DD(s)&&Dr.test(n)&&(s=C1(t,n)),this.setBaseTarget(t,Ct(s)?s.get():s)),Ct(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const a=If(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(s=a[t])}if(r&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Ct(o)?o:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Rf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class xb extends jD{constructor(){super(...arguments),this.KeyframeResolver=L1}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ct(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function LD(e){return window.getComputedStyle(e)}class RD extends xb{constructor(){super(...arguments),this.type="html",this.renderInstance=Kx}readValueFromInstance(t,n){if(as.has(n))return U_(t,n);{const r=LD(t),s=(Cf(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return wv(t,n)}build(t,n,r){Af(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Nf(t,n,r)}}class FD extends xb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&qx(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(as.has(n)){const r=T1(n);return r&&r.default||0}return n=Xx.has(n)?n:Tf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Jx(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&He.postRender(this.updateDimensions)}build(t,n,r){$f(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){Zx(t,n,r,s)}mount(t){this.isSVGTag=_f(t.tagName),super.mount(t)}}const VD=(e,t)=>Of(e)?new FD(t):new RD(t,{allowProjection:e!==O.Fragment}),BD=l_({...nI,...OD,...dD,...$D},VD),st=E5(BD),Pd={defaultColorScheme:"aqua",t:e=>e},vb=O.createContext(Pd),Ue=()=>O.useContext(vb),WD={date:(e,t)=>new Date(t.created_at??"").toDateString()===e.toDateString(),search:(e,t)=>JSON.stringify(t).toLowerCase().includes(e.toLowerCase())};function UD(e,t){const[n,r]=O.useState([]),s=O.useCallback(({key:h,value:p,label:m,type:x,icon:S,options:b})=>{if(n.find(A=>A.key===h)){console.warn(`El filtro con key "${String(h)}" ya existe, salteando la actualización...`);return}let v;typeof t=="string"?v=WD[t]:v=t[h]||t[h],r(A=>[...A,{key:h,value:p,label:m,type:x,icon:S,options:b,fn:v}])},[t,n]),o=O.useCallback(({key:h,value:p})=>{r(m=>m.map(x=>x.key===h?{...x,value:p}:x))},[]),a=O.useCallback(({key:h})=>{r(p=>p.filter(m=>m.key!==h))},[]),c=O.useCallback(()=>{r([])},[]),u=O.useMemo(()=>n.reduce((h,p)=>h.filter(m=>p.fn(p.value,m)),e),[e,n]),d=O.useMemo(()=>({addFilter:s,updateFilter:o,removeFilter:a,clearFilters:c,activeFilters:n.map(h=>({key:h.key,value:h.value,label:h.label,type:h.type,icon:h.icon,options:h.options}))}),[s,o,a,c,n]);return{data:u,filterControl:d}}const bb=({title:e,description:t,open:n,onClose:r,onConfirm:s,onCancel:o,showCloseButton:a=!0})=>{const{t:c}=Ue(),u={hidden:{opacity:0},visible:{opacity:1}},d={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},h=()=>{s==null||s(),r()},p=()=>{o==null||o(),r()};return g.jsx(qn,{children:n&&g.jsx(g.Fragment,{children:g.jsx(st.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:u,onClick:r,children:g.jsx(st.div,{className:"w-full max-w-4xl mx-16 z-50",variants:d,initial:"hidden",animate:"visible",exit:"exit",onClick:m=>m.stopPropagation(),children:g.jsxs(yi,{className:"flex flex-col gap-16 p-32",children:[g.jsxs("div",{className:"flex justify-between items-center gap-16",children:[g.jsx("h3",{className:"text-black font-700 text-3xl",children:e}),a&&g.jsx(Pe,{icon:pf,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})]}),g.jsx("p",{className:"text-gray-500 text-xl font-600",children:t}),g.jsxs("div",{className:"flex justify-end w-full gap-16",children:[o&&g.jsx(ys,{onClick:p,variant:"transparent",className:"px-24 py-10! text-lg!",children:c("cancel")}),s&&g.jsx(ys,{onClick:h,className:"px-24 py-16 text-lg!",children:c("confirm")})]})]})})})})})};/*!
|
|
664
664
|
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
|
|
665
665
|
* License - https://fontawesome.com/license (Commercial License)
|
|
666
666
|
* Copyright 2024 Fonticons, Inc.
|
|
667
|
-
*/const fN={prefix:"far",iconName:"chevron-up",icon:[512,512,[],"f077","M239 111c9.4-9.4 24.6-9.4 33.9 0L465 303c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-175-175L81 337c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 111z"]},dN={prefix:"far",iconName:"cloud-arrow-up",icon:[640,512,[62338,"cloud-upload","cloud-upload-alt"],"f0ee","M354.9 121.7c13.8 16 36.5 21.1 55.9 12.5c8.9-3.9 18.7-6.2 29.2-6.2c39.8 0 72 32.2 72 72c0 4-.3 7.9-.9 11.7c-3.5 21.6 8.1 42.9 28.1 51.7C570.4 276.9 592 308 592 344c0 46.8-36.6 85.2-82.8 87.8c-.6 0-1.3 .1-1.9 .2l-3.3 0-360 0c-53 0-96-43-96-96c0-41.7 26.6-77.3 64-90.5c19.2-6.8 32-24.9 32-45.3l0-.2s0 0 0 0s0 0 0 0c0-66.3 53.7-120 120-120c36.3 0 68.8 16.1 90.9 41.7zM512 480l0-.2c71.4-4.1 128-63.3 128-135.8c0-55.7-33.5-103.7-81.5-124.7c1-6.3 1.5-12.8 1.5-19.3c0-66.3-53.7-120-120-120c-17.4 0-33.8 3.7-48.7 10.3C360.4 54.6 314.9 32 264 32C171.2 32 96 107.2 96 200l0 .2C40.1 220 0 273.3 0 336c0 79.5 64.5 144 144 144l320 0 40 0 8 0zM223 255c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l39-39L296 384c0 13.3 10.7 24 24 24s24-10.7 24-24l0-134.1 39 39c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-80-80c-9.4-9.4-24.6-9.4-33.9 0l-80 80z"]},hN={prefix:"far",iconName:"filter",icon:[512,512,[],"f0b0","M0 73.7C0 50.7 18.7 32 41.7 32l428.6 0c23 0 41.7 18.7 41.7 41.7c0 9.6-3.3 18.9-9.4 26.3L336 304.5l0 143.2c0 17.8-14.5 32.3-32.3 32.3c-7.3 0-14.4-2.5-20.1-7l-92.5-73.4c-9.6-7.6-15.1-19.1-15.1-31.3l0-63.7L9.4 100C3.3 92.6 0 83.3 0 73.7zM55 80L218.6 280.8c3.5 4.3 5.4 9.6 5.4 15.2l0 68.4 64 50.8L288 296c0-5.5 1.9-10.9 5.4-15.2L457 80 55 80z"]},mN={prefix:"far",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-8 0 0-88c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 64-24 0zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},r2={prefix:"far",iconName:"chevron-down",icon:[512,512,[],"f078","M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z"]},pN={prefix:"far",iconName:"bars-filter",icon:[448,512,[],"e0ad","M0 88C0 74.7 10.7 64 24 64l400 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 112C10.7 112 0 101.3 0 88zM64 248c0-13.3 10.7-24 24-24l272 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L88 272c-13.3 0-24-10.7-24-24zM288 408c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l80 0c13.3 0 24 10.7 24 24z"]},gN={prefix:"far",iconName:"check",icon:[448,512,[10003,10004],"f00c","M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119 119L407 103c9.4-9.4 24.6-9.4 33.9 0z"]},i2={prefix:"far",iconName:"x",icon:[384,512,[120],"58","M378.4 71.4c8.5-10.1 7.2-25.3-2.9-33.8s-25.3-7.2-33.8 2.9L192 218.7 42.4 40.6C33.9 30.4 18.7 29.1 8.6 37.6S-2.9 61.3 5.6 71.4L160.7 256 5.6 440.6c-8.5 10.2-7.2 25.3 2.9 33.8s25.3 7.2 33.8-2.9L192 293.3 341.6 471.4c8.5 10.2 23.7 11.5 33.8 2.9s11.5-23.7 2.9-33.8L223.3 256l155-184.6z"]},yN={primary:"#375ABC",primaryLight:"#8FA9F3",primaryDark:"#29438D",hover:"#4570EB",hoverLight:"#ECF1FD",text:"#375ABC",textLight:"#FFFFFF"},vN={primary:"#06B6D4",primaryLight:"#67E8F9",primaryDark:"#0891B2",hover:"#0891B2",hoverLight:"#CFFAFE",text:"#06B6D4",textLight:"#FFFFFF"},xN=e=>({blue:yN,aqua:vN})[e],Zd=({date:e,onDateChange:t,showTimeSelector:n=!0,minDate:r,maxDate:i,futureDates:o=!1,pastDates:a=!0,color:c="blue"})=>{const[u,d]=_.useState(e),[h,m]=_.useState(e),[p,v]=_.useState(e.getHours()%12||12),[S,x]=_.useState(e.getHours()>=12?"PM":"AM"),[T,b]=_.useState(0),{t:C}=Ue(),E=xN(c),[$,A]=_.useState(!1),[D,R]=_.useState(!1);_.useEffect(()=>{d(e),m(e),v(e.getHours()%12||12),x(e.getHours()>=12?"PM":"AM")},[e]);const j=()=>{b(-1),setTimeout(()=>{const W=V_(u);(!r||W>=r)&&d(W)},10)},V=()=>{b(1),setTimeout(()=>{d(cv(u,1))},10)},Z=W=>{if(i&&W>i||r&&W<r)return;const Y=wv(Sv(Tv(W,0),0),S==="AM"?p%12:p%12+12);m(Y),t(Y)},ee=W=>{v(W);const Y=wv(Sv(Tv(h,0),0),S==="AM"?W%12:W%12+12);m(Y),t(Y),A(!1)},se=W=>{x(W)},ge=()=>{const W=new Date,Y=20,M=5,[k,H]=_.useState(()=>Array.from({length:Y+1},(J,oe)=>{const re=new Date(W.getFullYear(),W.getMonth()-oe,1);return{name:Nn(re,"MMMM",{locale:ns}).replace(/^./,de=>de.toUpperCase()),index:re.getMonth(),year:re.getFullYear(),displayName:`${Nn(re,"MMMM",{locale:ns}).replace(/^./,de=>de.toUpperCase())} ${re.getFullYear()}`}})),ae=_.useRef(null),le=_.useRef(null);_.useEffect(()=>{ae.current&&ae.current.disconnect(),ae.current=new IntersectionObserver(J=>{J[0].isIntersecting&&H(oe=>{const re=oe[oe.length-1],de=new Date(re.year,re.index-1,1),Ce=Array.from({length:M},(Ve,ie)=>{const pe=new Date(de.getFullYear(),de.getMonth()-ie,1);return{name:Nn(pe,"MMMM",{locale:ns}).replace(/^./,De=>De.toUpperCase()),index:pe.getMonth(),year:pe.getFullYear(),displayName:`${Nn(pe,"MMMM",{locale:ns}).replace(/^./,De=>De.toUpperCase())} ${pe.getFullYear()}`}});return[...oe,...Ce]})}),le.current&&ae.current.observe(le.current)},[k]);const U=(J,oe)=>{const re=new Date(u);re.setMonth(J),re.setFullYear(oe),(!r||re>=r)&&d(re),R(!1)};return y.jsx("div",{className:"flex flex-col p-8 max-h-200 overflow-y-auto bg-light gap-4",children:k.map((J,oe)=>{const re=oe===k.length-1;return y.jsx("button",{ref:re?le:null,onClick:()=>U(J.index,J.year),className:"text-start p-6 font-600 transition-all duration-100 rounded-lg",style:{backgroundColor:u.getMonth()===J.index&&u.getFullYear()===J.year?E.hoverLight:"transparent",color:u.getMonth()===J.index&&u.getFullYear()===J.year?E.text:"inherit"},onMouseEnter:de=>{u.getMonth()===J.index&&u.getFullYear()===J.year||(de.currentTarget.style.backgroundColor="#F3F4F6")},onMouseLeave:de=>{u.getMonth()===J.index&&u.getFullYear()===J.year||(de.currentTarget.style.backgroundColor="transparent")},children:J.displayName},`${J.name}-${J.year}-${oe}`)})})},ue=()=>y.jsxs("div",{className:"flex justify-between items-center mb-8",children:[y.jsx(bi,{open:D,onClose:()=>R(!1),component:ge,placement:"bottom",className:"!p-0 overflow-hidden bg-light",strategy:"fixed",children:y.jsxs("button",{onClick:()=>R(!D),className:"transition-colors duration-150 flex gap-6 items-center !text-black",children:[y.jsx("h4",{className:"text-header-4",children:Nn(u,"MMMM yyyy",{locale:ns}).replace(/^./,W=>W.toUpperCase())}),y.jsx(Pe,{icon:r2,className:"w-12 h-12"})]})}),y.jsxs("div",{className:"flex items-center gap-8",children:[y.jsx(dh,{variant:"transparent",color:c,icon:Q5,onClick:j}),y.jsx(dh,{variant:"transparent",color:c,icon:_4,onClick:V})]})]}),fe=()=>{const W=Qi(B4(u)),Y=U4(j4(u)),M=V4({start:W,end:Y}),k=new Date;return k.setHours(0,0,0,0),y.jsx("div",{className:"grid grid-cols-7 gap-2",children:M.map((H,ae)=>{const le=dv(H,h),U=j_(H,u),J=F_(H),oe=H<k,re=H>k,de=!U||oe&&!a||re&&!o||r&&H<r||i&&H>i;return y.jsx(Ge.div,{className:`
|
|
667
|
+
*/const zD={prefix:"fas",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512z"]},GD={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},YD={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},HD={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},qD={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},wb={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]};function Xa(){return typeof window<"u"}function ui(e){return Sb(e)?(e.nodeName||"").toLowerCase():"#document"}function zt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function kn(e){var t;return(t=(Sb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Sb(e){return Xa()?e instanceof Node||e instanceof zt(e).Node:!1}function it(e){return Xa()?e instanceof Element||e instanceof zt(e).Element:!1}function Gt(e){return Xa()?e instanceof HTMLElement||e instanceof zt(e).HTMLElement:!1}function Ad(e){return!Xa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof zt(e).ShadowRoot}function _o(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=on(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function KD(e){return["table","td","th"].includes(ui(e))}function Za(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Md(e){const t=Ja(),n=it(e)?on(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function XD(e){let t=Jn(e);for(;Gt(t)&&!Zn(t);){if(Md(t))return t;if(Za(t))return null;t=Jn(t)}return null}function Ja(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Zn(e){return["html","body","#document"].includes(ui(e))}function on(e){return zt(e).getComputedStyle(e)}function Qa(e){return it(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Jn(e){if(ui(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ad(e)&&e.host||kn(e);return Ad(t)?t.host:t}function Tb(e){const t=Jn(e);return Zn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Gt(t)&&_o(t)?t:Tb(t)}function kr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Tb(e),o=s===((r=e.ownerDocument)==null?void 0:r.body),a=zt(s);if(o){const c=Od(a);return t.concat(a,a.visualViewport||[],_o(s)?s:[],c&&n?kr(c):[])}return t.concat(s,kr(s,[],n))}function Od(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Cb(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ad(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Eb(e,t){return["mouse","pen"].includes(e)}function ZD(e){return"nativeEvent"in e}function JD(e){return e.matches("html,body")}function Pb(e){return(e==null?void 0:e.ownerDocument)||document}function $d(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function Io(e){return"composedPath"in e?e.composedPath()[0]:e.target}const QD="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function e6(e){return Gt(e)&&e.matches(QD)}const jr=Math.min,Yt=Math.max,el=Math.round,tl=Math.floor,jn=e=>({x:e,y:e}),t6={left:"right",right:"left",bottom:"top",top:"bottom"},n6={start:"end",end:"start"};function _d(e,t,n){return Yt(e,jr(t,n))}function fi(e,t){return typeof e=="function"?e(t):e}function Lr(e){return e.split("-")[0]}function di(e){return e.split("-")[1]}function Ab(e){return e==="x"?"y":"x"}function Id(e){return e==="y"?"height":"width"}function hs(e){return["top","bottom"].includes(Lr(e))?"y":"x"}function Dd(e){return Ab(hs(e))}function r6(e,t,n){n===void 0&&(n=!1);const r=di(e),s=Dd(e),o=Id(s);let a=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=nl(a)),[a,nl(a)]}function s6(e){const t=nl(e);return[Nd(e),t,Nd(t)]}function Nd(e){return e.replace(/start|end/g,t=>n6[t])}function i6(e,t,n){const r=["left","right"],s=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?o:a;default:return[]}}function o6(e,t,n,r){const s=di(e);let o=i6(Lr(e),n==="start",r);return s&&(o=o.map(a=>a+"-"+s),t&&(o=o.concat(o.map(Nd)))),o}function nl(e){return e.replace(/left|right|bottom|top/g,t=>t6[t])}function a6(e){return{top:0,right:0,bottom:0,left:0,...e}}function Mb(e){return typeof e!="number"?a6(e):{top:e,right:e,bottom:e,left:e}}function rl(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function Ob(e,t,n){let{reference:r,floating:s}=e;const o=hs(t),a=Dd(t),c=Id(a),u=Lr(t),d=o==="y",h=r.x+r.width/2-s.width/2,p=r.y+r.height/2-s.height/2,m=r[c]/2-s[c]/2;let x;switch(u){case"top":x={x:h,y:r.y-s.height};break;case"bottom":x={x:h,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:p};break;case"left":x={x:r.x-s.width,y:p};break;default:x={x:r.x,y:r.y}}switch(di(t)){case"start":x[a]-=m*(n&&d?-1:1);break;case"end":x[a]+=m*(n&&d?-1:1);break}return x}const l6=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:a}=n,c=o.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:s}),{x:h,y:p}=Ob(d,r,u),m=r,x={},S=0;for(let b=0;b<c.length;b++){const{name:T,fn:v}=c[b],{x:A,y:C,data:I,reset:P}=await v({x:h,y:p,initialPlacement:r,placement:m,strategy:s,middlewareData:x,rects:d,platform:a,elements:{reference:e,floating:t}});h=A??h,p=C??p,x={...x,[T]:{...x[T],...I}},P&&S<=50&&(S++,typeof P=="object"&&(P.placement&&(m=P.placement),P.rects&&(d=P.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:s}):P.rects),{x:h,y:p}=Ob(d,m,u)),b=-1)}return{x:h,y:p,placement:m,strategy:s,middlewareData:x}};async function kd(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:o,rects:a,elements:c,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:m=!1,padding:x=0}=fi(t,e),S=Mb(x),T=c[m?p==="floating"?"reference":"floating":p],v=rl(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(T)))==null||n?T:T.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:d,rootBoundary:h,strategy:u})),A=p==="floating"?{x:r,y:s,width:a.floating.width,height:a.floating.height}:a.reference,C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),I=await(o.isElement==null?void 0:o.isElement(C))?await(o.getScale==null?void 0:o.getScale(C))||{x:1,y:1}:{x:1,y:1},P=rl(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:A,offsetParent:C,strategy:u}):A);return{top:(v.top-P.top+S.top)/I.y,bottom:(P.bottom-v.bottom+S.bottom)/I.y,left:(v.left-P.left+S.left)/I.x,right:(P.right-v.right+S.right)/I.x}}const c6=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:o,platform:a,elements:c,middlewareData:u}=t,{element:d,padding:h=0}=fi(e,t)||{};if(d==null)return{};const p=Mb(h),m={x:n,y:r},x=Dd(s),S=Id(x),b=await a.getDimensions(d),T=x==="y",v=T?"top":"left",A=T?"bottom":"right",C=T?"clientHeight":"clientWidth",I=o.reference[S]+o.reference[x]-m[x]-o.floating[S],P=m[x]-o.reference[x],D=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let R=D?D[C]:0;(!R||!await(a.isElement==null?void 0:a.isElement(D)))&&(R=c.floating[C]||o.floating[S]);const F=I/2-P/2,W=R/2-b[S]/2-1,Q=jr(p[v],W),ee=jr(p[A],W),ae=Q,ge=R-b[S]-ee,de=R/2-b[S]/2+F,le=_d(ae,de,ge),ue=!u.arrow&&di(s)!=null&&de!==le&&o.reference[S]/2-(de<ae?Q:ee)-b[S]/2<0,Y=ue?de<ae?de-ae:de-ge:0;return{[x]:m[x]+Y,data:{[x]:le,centerOffset:de-le-Y,...ue&&{alignmentOffset:Y}},reset:ue}}}),u6=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:o,rects:a,initialPlacement:c,platform:u,elements:d}=t,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:b=!0,...T}=fi(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const v=Lr(s),A=hs(c),C=Lr(c)===c,I=await(u.isRTL==null?void 0:u.isRTL(d.floating)),P=m||(C||!b?[nl(c)]:s6(c)),D=S!=="none";!m&&D&&P.push(...o6(c,b,S,I));const R=[c,...P],F=await kd(t,T),W=[];let Q=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&W.push(F[v]),p){const de=r6(s,a,I);W.push(F[de[0]],F[de[1]])}if(Q=[...Q,{placement:s,overflows:W}],!W.every(de=>de<=0)){var ee,ae;const de=(((ee=o.flip)==null?void 0:ee.index)||0)+1,le=R[de];if(le)return{data:{index:de,overflows:Q},reset:{placement:le}};let ue=(ae=Q.filter(Y=>Y.overflows[0]<=0).sort((Y,z)=>Y.overflows[1]-z.overflows[1])[0])==null?void 0:ae.placement;if(!ue)switch(x){case"bestFit":{var ge;const Y=(ge=Q.filter(z=>{if(D){const K=hs(z.placement);return K===A||K==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(K=>K>0).reduce((K,$)=>K+$,0)]).sort((z,K)=>z[1]-K[1])[0])==null?void 0:ge[0];Y&&(ue=Y);break}case"initialPlacement":ue=c;break}if(s!==ue)return{reset:{placement:ue}}}return{}}}};async function f6(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),a=Lr(n),c=di(n),u=hs(n)==="y",d=["left","top"].includes(a)?-1:1,h=o&&u?-1:1,p=fi(t,e);let{mainAxis:m,crossAxis:x,alignmentAxis:S}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof S=="number"&&(x=c==="end"?S*-1:S),u?{x:x*h,y:m*d}:{x:m*d,y:x*h}}const d6=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:o,placement:a,middlewareData:c}=t,u=await f6(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:s+u.x,y:o+u.y,data:{...u,placement:a}}}}},h6=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:c={fn:T=>{let{x:v,y:A}=T;return{x:v,y:A}}},...u}=fi(e,t),d={x:n,y:r},h=await kd(t,u),p=hs(Lr(s)),m=Ab(p);let x=d[m],S=d[p];if(o){const T=m==="y"?"top":"left",v=m==="y"?"bottom":"right",A=x+h[T],C=x-h[v];x=_d(A,x,C)}if(a){const T=p==="y"?"top":"left",v=p==="y"?"bottom":"right",A=S+h[T],C=S-h[v];S=_d(A,S,C)}const b=c.fn({...t,[m]:x,[p]:S});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[m]:o,[p]:a}}}}}},p6=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:o,platform:a,elements:c}=t,{apply:u=()=>{},...d}=fi(e,t),h=await kd(t,d),p=Lr(s),m=di(s),x=hs(s)==="y",{width:S,height:b}=o.floating;let T,v;p==="top"||p==="bottom"?(T=p,v=m===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(v=p,T=m==="end"?"top":"bottom");const A=b-h.top-h.bottom,C=S-h.left-h.right,I=jr(b-h[T],A),P=jr(S-h[v],C),D=!t.middlewareData.shift;let R=I,F=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=A),D&&!m){const Q=Yt(h.left,0),ee=Yt(h.right,0),ae=Yt(h.top,0),ge=Yt(h.bottom,0);x?F=S-2*(Q!==0||ee!==0?Q+ee:Yt(h.left,h.right)):R=b-2*(ae!==0||ge!==0?ae+ge:Yt(h.top,h.bottom))}await u({...t,availableWidth:F,availableHeight:R});const W=await a.getDimensions(c.floating);return S!==W.width||b!==W.height?{reset:{rects:!0}}:{}}}};function $b(e){const t=on(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Gt(e),o=s?e.offsetWidth:n,a=s?e.offsetHeight:r,c=el(n)!==o||el(r)!==a;return c&&(n=o,r=a),{width:n,height:r,$:c}}function jd(e){return it(e)?e:e.contextElement}function hi(e){const t=jd(e);if(!Gt(t))return jn(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:o}=$b(t);let a=(o?el(n.width):n.width)/r,c=(o?el(n.height):n.height)/s;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const m6=jn(0);function _b(e){const t=zt(e);return!Ja()||!t.visualViewport?m6:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function g6(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==zt(e)?!1:t}function ps(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),o=jd(e);let a=jn(1);t&&(r?it(r)&&(a=hi(r)):a=hi(e));const c=g6(o,n,r)?_b(o):jn(0);let u=(s.left+c.x)/a.x,d=(s.top+c.y)/a.y,h=s.width/a.x,p=s.height/a.y;if(o){const m=zt(o),x=r&&it(r)?zt(r):r;let S=m,b=Od(S);for(;b&&r&&x!==S;){const T=hi(b),v=b.getBoundingClientRect(),A=on(b),C=v.left+(b.clientLeft+parseFloat(A.paddingLeft))*T.x,I=v.top+(b.clientTop+parseFloat(A.paddingTop))*T.y;u*=T.x,d*=T.y,h*=T.x,p*=T.y,u+=C,d+=I,S=zt(b),b=Od(S)}}return rl({width:h,height:p,x:u,y:d})}function Ld(e,t){const n=Qa(e).scrollLeft;return t?t.left+n:ps(kn(e)).left+n}function Ib(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:Ld(e,r)),o=r.top+t.scrollTop;return{x:s,y:o}}function y6(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const o=s==="fixed",a=kn(r),c=t?Za(t.floating):!1;if(r===a||c&&o)return n;let u={scrollLeft:0,scrollTop:0},d=jn(1);const h=jn(0),p=Gt(r);if((p||!p&&!o)&&((ui(r)!=="body"||_o(a))&&(u=Qa(r)),Gt(r))){const x=ps(r);d=hi(r),h.x=x.x+r.clientLeft,h.y=x.y+r.clientTop}const m=a&&!p&&!o?Ib(a,u,!0):jn(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+h.x+m.x,y:n.y*d.y-u.scrollTop*d.y+h.y+m.y}}function x6(e){return Array.from(e.getClientRects())}function v6(e){const t=kn(e),n=Qa(e),r=e.ownerDocument.body,s=Yt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Yt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ld(e);const c=-n.scrollTop;return on(r).direction==="rtl"&&(a+=Yt(t.clientWidth,r.clientWidth)-s),{width:s,height:o,x:a,y:c}}function b6(e,t){const n=zt(e),r=kn(e),s=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,c=0,u=0;if(s){o=s.width,a=s.height;const d=Ja();(!d||d&&t==="fixed")&&(c=s.offsetLeft,u=s.offsetTop)}return{width:o,height:a,x:c,y:u}}function w6(e,t){const n=ps(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,o=Gt(e)?hi(e):jn(1),a=e.clientWidth*o.x,c=e.clientHeight*o.y,u=s*o.x,d=r*o.y;return{width:a,height:c,x:u,y:d}}function Db(e,t,n){let r;if(t==="viewport")r=b6(e,n);else if(t==="document")r=v6(kn(e));else if(it(t))r=w6(t,n);else{const s=_b(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return rl(r)}function Nb(e,t){const n=Jn(e);return n===t||!it(n)||Zn(n)?!1:on(n).position==="fixed"||Nb(n,t)}function S6(e,t){const n=t.get(e);if(n)return n;let r=kr(e,[],!1).filter(c=>it(c)&&ui(c)!=="body"),s=null;const o=on(e).position==="fixed";let a=o?Jn(e):e;for(;it(a)&&!Zn(a);){const c=on(a),u=Md(a);!u&&c.position==="fixed"&&(s=null),(o?!u&&!s:!u&&c.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||_o(a)&&!u&&Nb(e,a))?r=r.filter(h=>h!==a):s=c,a=Jn(a)}return t.set(e,r),r}function T6(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const a=[...n==="clippingAncestors"?Za(t)?[]:S6(t,this._c):[].concat(n),r],c=a[0],u=a.reduce((d,h)=>{const p=Db(t,h,s);return d.top=Yt(p.top,d.top),d.right=jr(p.right,d.right),d.bottom=jr(p.bottom,d.bottom),d.left=Yt(p.left,d.left),d},Db(t,c,s));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function C6(e){const{width:t,height:n}=$b(e);return{width:t,height:n}}function E6(e,t,n){const r=Gt(t),s=kn(t),o=n==="fixed",a=ps(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const u=jn(0);if(r||!r&&!o)if((ui(t)!=="body"||_o(s))&&(c=Qa(t)),r){const m=ps(t,!0,o,t);u.x=m.x+t.clientLeft,u.y=m.y+t.clientTop}else s&&(u.x=Ld(s));const d=s&&!r&&!o?Ib(s,c):jn(0),h=a.left+c.scrollLeft-u.x-d.x,p=a.top+c.scrollTop-u.y-d.y;return{x:h,y:p,width:a.width,height:a.height}}function Rd(e){return on(e).position==="static"}function kb(e,t){if(!Gt(e)||on(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return kn(e)===n&&(n=n.ownerDocument.body),n}function jb(e,t){const n=zt(e);if(Za(e))return n;if(!Gt(e)){let s=Jn(e);for(;s&&!Zn(s);){if(it(s)&&!Rd(s))return s;s=Jn(s)}return n}let r=kb(e,t);for(;r&&KD(r)&&Rd(r);)r=kb(r,t);return r&&Zn(r)&&Rd(r)&&!Md(r)?n:r||XD(e)||n}const P6=async function(e){const t=this.getOffsetParent||jb,n=this.getDimensions,r=await n(e.floating);return{reference:E6(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function A6(e){return on(e).direction==="rtl"}const M6={convertOffsetParentRelativeRectToViewportRelativeRect:y6,getDocumentElement:kn,getClippingRect:T6,getOffsetParent:jb,getElementRects:P6,getClientRects:x6,getDimensions:C6,getScale:hi,isElement:it,isRTL:A6};function Lb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function O6(e,t){let n=null,r;const s=kn(e);function o(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),o();const d=e.getBoundingClientRect(),{left:h,top:p,width:m,height:x}=d;if(c||t(),!m||!x)return;const S=tl(p),b=tl(s.clientWidth-(h+m)),T=tl(s.clientHeight-(p+x)),v=tl(h),C={rootMargin:-S+"px "+-b+"px "+-T+"px "+-v+"px",threshold:Yt(0,jr(1,u))||1};let I=!0;function P(D){const R=D[0].intersectionRatio;if(R!==u){if(!I)return a();R?a(!1,R):r=setTimeout(()=>{a(!1,1e-7)},1e3)}R===1&&!Lb(d,e.getBoundingClientRect())&&a(),I=!1}try{n=new IntersectionObserver(P,{...C,root:s.ownerDocument})}catch{n=new IntersectionObserver(P,C)}n.observe(e)}return a(!0),o}function Qn(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=jd(e),h=s||o?[...d?kr(d):[],...kr(t)]:[];h.forEach(v=>{s&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const p=d&&c?O6(d,n):null;let m=-1,x=null;a&&(x=new ResizeObserver(v=>{let[A]=v;A&&A.target===d&&x&&(x.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var C;(C=x)==null||C.observe(t)})),n()}),d&&!u&&x.observe(d),x.observe(t));let S,b=u?ps(e):null;u&&T();function T(){const v=ps(e);b&&!Lb(b,v)&&n(),b=v,S=requestAnimationFrame(T)}return n(),()=>{var v;h.forEach(A=>{s&&A.removeEventListener("scroll",n),o&&A.removeEventListener("resize",n)}),p==null||p(),(v=x)==null||v.disconnect(),x=null,u&&cancelAnimationFrame(S)}}const $6=d6,_6=h6,I6=u6,D6=p6,Rb=c6,N6=(e,t,n)=>{const r=new Map,s={platform:M6,...n},o={...s.platform,_c:r};return l6(e,t,{...s,platform:o})};var sl=typeof document<"u"?O.useLayoutEffect:O.useEffect;function il(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!il(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const o=s[r];if(!(o==="_owner"&&e.$$typeof)&&!il(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Fb(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Vb(e,t){const n=Fb(e);return Math.round(t*n)/n}function Fd(e){const t=he.useRef(e);return sl(()=>{t.current=e}),t}function k6(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:o,floating:a}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[h,p]=he.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,x]=he.useState(r);il(m,r)||x(r);const[S,b]=he.useState(null),[T,v]=he.useState(null),A=he.useCallback(z=>{z!==D.current&&(D.current=z,b(z))},[]),C=he.useCallback(z=>{z!==R.current&&(R.current=z,v(z))},[]),I=o||S,P=a||T,D=he.useRef(null),R=he.useRef(null),F=he.useRef(h),W=u!=null,Q=Fd(u),ee=Fd(s),ae=Fd(d),ge=he.useCallback(()=>{if(!D.current||!R.current)return;const z={placement:t,strategy:n,middleware:m};ee.current&&(z.platform=ee.current),N6(D.current,R.current,z).then(K=>{const $={...K,isPositioned:ae.current!==!1};de.current&&!il(F.current,$)&&(F.current=$,uT.flushSync(()=>{p($)}))})},[m,t,n,ee,ae]);sl(()=>{d===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,p(z=>({...z,isPositioned:!1})))},[d]);const de=he.useRef(!1);sl(()=>(de.current=!0,()=>{de.current=!1}),[]),sl(()=>{if(I&&(D.current=I),P&&(R.current=P),I&&P){if(Q.current)return Q.current(I,P,ge);ge()}},[I,P,ge,Q,W]);const le=he.useMemo(()=>({reference:D,floating:R,setReference:A,setFloating:C}),[A,C]),ue=he.useMemo(()=>({reference:I,floating:P}),[I,P]),Y=he.useMemo(()=>{const z={position:n,left:0,top:0};if(!ue.floating)return z;const K=Vb(ue.floating,h.x),$=Vb(ue.floating,h.y);return c?{...z,transform:"translate("+K+"px, "+$+"px)",...Fb(ue.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:K,top:$}},[n,c,ue.floating,h.x,h.y]);return he.useMemo(()=>({...h,update:ge,refs:le,elements:ue,floatingStyles:Y}),[h,ge,le,ue,Y])}const j6=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Rb({element:r.current,padding:s}).fn(n):{}:r?Rb({element:r,padding:s}).fn(n):{}}}},er=(e,t)=>({...$6(e),options:[e,t]}),tr=(e,t)=>({..._6(e),options:[e,t]}),nr=(e,t)=>({...I6(e),options:[e,t]}),Rr=(e,t)=>({...D6(e),options:[e,t]}),ms=(e,t)=>({...j6(e),options:[e,t]}),Bb={...he},L6=Bb.useInsertionEffect||(e=>e());function pi(e){const t=he.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return L6(()=>{t.current=e}),he.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return t.current==null?void 0:t.current(...r)},[])}var mi=typeof document<"u"?O.useLayoutEffect:O.useEffect;let Wb=!1,R6=0;const Ub=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+R6++;function F6(){const[e,t]=he.useState(()=>Wb?Ub():void 0);return mi(()=>{e==null&&t(Ub())},[]),he.useEffect(()=>{Wb=!0},[]),e}const V6=Bb.useId||F6;let Vd;process.env.NODE_ENV!=="production"&&(Vd=new Set);function B6(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const s="Floating UI: "+n.join(" ");if(!((e=Vd)!=null&&e.has(s))){var o;(o=Vd)==null||o.add(s),console.error(s)}}function W6(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(s=>s(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(s=>s!==n))||[])}}}const U6=he.createContext(null),z6=he.createContext(null),G6=()=>{var e;return((e=he.useContext(U6))==null?void 0:e.id)||null},zb=()=>he.useContext(z6);function Y6(e){return"data-floating-ui-"+e}function ol(e){const t=O.useRef(e);return mi(()=>{t.current=e}),t}function Bd(e,t){let n=e.filter(s=>{var o;return s.parentId===t&&((o=s.context)==null?void 0:o.open)}),r=n;for(;r.length;)r=e.filter(s=>{var o;return(o=r)==null?void 0:o.some(a=>{var c;return s.parentId===a.id&&((c=s.context)==null?void 0:c.open)})}),n=n.concat(r);return n}const H6="data-floating-ui-focusable";function Gb(e){return Gt(e.target)&&e.target.tagName==="BUTTON"}function Yb(e){return e6(e)}function rr(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:s,elements:{domReference:o}}=e,{enabled:a=!0,event:c="click",toggle:u=!0,ignoreMouse:d=!1,keyboardHandlers:h=!0,stickIfOpen:p=!0}=t,m=he.useRef(),x=he.useRef(!1),S=he.useMemo(()=>({onPointerDown(b){m.current=b.pointerType},onMouseDown(b){const T=m.current;b.button===0&&c!=="click"&&(Eb(T)&&d||(n&&u&&(!(s.current.openEvent&&p)||s.current.openEvent.type==="mousedown")?r(!1,b.nativeEvent,"click"):(b.preventDefault(),r(!0,b.nativeEvent,"click"))))},onClick(b){const T=m.current;if(c==="mousedown"&&m.current){m.current=void 0;return}Eb(T)&&d||(n&&u&&(!(s.current.openEvent&&p)||s.current.openEvent.type==="click")?r(!1,b.nativeEvent,"click"):r(!0,b.nativeEvent,"click"))},onKeyDown(b){m.current=void 0,!(b.defaultPrevented||!h||Gb(b))&&(b.key===" "&&!Yb(o)&&(b.preventDefault(),x.current=!0),b.key==="Enter"&&r(!(n&&u),b.nativeEvent,"click"))},onKeyUp(b){b.defaultPrevented||!h||Gb(b)||Yb(o)||b.key===" "&&x.current&&(x.current=!1,r(!(n&&u),b.nativeEvent,"click"))}}),[s,o,c,d,h,r,n,p,u]);return he.useMemo(()=>a?{reference:S}:{},[a,S])}const q6={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},K6={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Hb=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function sr(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:s,dataRef:o}=e,{enabled:a=!0,escapeKey:c=!0,outsidePress:u=!0,outsidePressEvent:d="pointerdown",referencePress:h=!1,referencePressEvent:p="pointerdown",ancestorScroll:m=!1,bubbles:x,capture:S}=t,b=zb(),T=pi(typeof u=="function"?u:()=>!1),v=typeof u=="function"?T:u,A=he.useRef(!1),C=he.useRef(!1),{escapeKey:I,outsidePress:P}=Hb(x),{escapeKey:D,outsidePress:R}=Hb(S),F=he.useRef(!1),W=pi(le=>{var ue;if(!n||!a||!c||le.key!=="Escape"||F.current)return;const Y=(ue=o.current.floatingContext)==null?void 0:ue.nodeId,z=b?Bd(b.nodesRef.current,Y):[];if(!I&&(le.stopPropagation(),z.length>0)){let K=!0;if(z.forEach($=>{var k;if((k=$.context)!=null&&k.open&&!$.context.dataRef.current.__escapeKeyBubbles){K=!1;return}}),!K)return}r(!1,ZD(le)?le.nativeEvent:le,"escape-key")}),Q=pi(le=>{var ue;const Y=()=>{var z;W(le),(z=Io(le))==null||z.removeEventListener("keydown",Y)};(ue=Io(le))==null||ue.addEventListener("keydown",Y)}),ee=pi(le=>{var ue;const Y=A.current;A.current=!1;const z=C.current;if(C.current=!1,d==="click"&&z||Y||typeof v=="function"&&!v(le))return;const K=Io(le),$="["+Y6("inert")+"]",k=Pb(s.floating).querySelectorAll($);let X=it(K)?K:null;for(;X&&!Zn(X);){const J=Jn(X);if(Zn(J)||!it(J))break;X=J}if(k.length&&it(K)&&!JD(K)&&!Cb(K,s.floating)&&Array.from(k).every(J=>!Cb(X,J)))return;if(Gt(K)&&de){const J=Zn(K),oe=on(K),se=/auto|scroll/,fe=J||se.test(oe.overflowX),Ee=J||se.test(oe.overflowY),Ve=fe&&K.clientWidth>0&&K.scrollWidth>K.clientWidth,ie=Ee&&K.clientHeight>0&&K.scrollHeight>K.clientHeight,me=oe.direction==="rtl",De=ie&&(me?le.offsetX<=K.offsetWidth-K.clientWidth:le.offsetX>K.clientWidth),ft=Ve&&le.offsetY>K.clientHeight;if(De||ft)return}const U=(ue=o.current.floatingContext)==null?void 0:ue.nodeId,re=b&&Bd(b.nodesRef.current,U).some(J=>{var oe;return $d(le,(oe=J.context)==null?void 0:oe.elements.floating)});if($d(le,s.floating)||$d(le,s.domReference)||re)return;const B=b?Bd(b.nodesRef.current,U):[];if(B.length>0){let J=!0;if(B.forEach(oe=>{var se;if((se=oe.context)!=null&&se.open&&!oe.context.dataRef.current.__outsidePressBubbles){J=!1;return}}),!J)return}r(!1,le,"outside-press")}),ae=pi(le=>{var ue;const Y=()=>{var z;ee(le),(z=Io(le))==null||z.removeEventListener(d,Y)};(ue=Io(le))==null||ue.addEventListener(d,Y)});he.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=I,o.current.__outsidePressBubbles=P;let le=-1;function ue(k){r(!1,k,"ancestor-scroll")}function Y(){window.clearTimeout(le),F.current=!0}function z(){le=window.setTimeout(()=>{F.current=!1},Ja()?5:0)}const K=Pb(s.floating);c&&(K.addEventListener("keydown",D?Q:W,D),K.addEventListener("compositionstart",Y),K.addEventListener("compositionend",z)),v&&K.addEventListener(d,R?ae:ee,R);let $=[];return m&&(it(s.domReference)&&($=kr(s.domReference)),it(s.floating)&&($=$.concat(kr(s.floating))),!it(s.reference)&&s.reference&&s.reference.contextElement&&($=$.concat(kr(s.reference.contextElement)))),$=$.filter(k=>{var X;return k!==((X=K.defaultView)==null?void 0:X.visualViewport)}),$.forEach(k=>{k.addEventListener("scroll",ue,{passive:!0})}),()=>{c&&(K.removeEventListener("keydown",D?Q:W,D),K.removeEventListener("compositionstart",Y),K.removeEventListener("compositionend",z)),v&&K.removeEventListener(d,R?ae:ee,R),$.forEach(k=>{k.removeEventListener("scroll",ue)}),window.clearTimeout(le)}},[o,s,c,v,d,n,r,m,a,I,P,W,D,Q,ee,R,ae]),he.useEffect(()=>{A.current=!1},[v,d]);const ge=he.useMemo(()=>({onKeyDown:W,...h&&{[q6[p]]:le=>{r(!1,le.nativeEvent,"reference-press")},...p!=="click"&&{onClick(le){r(!1,le.nativeEvent,"reference-press")}}}}),[W,r,h,p]),de=he.useMemo(()=>({onKeyDown:W,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[K6[d]]:()=>{A.current=!0}}),[W,d]);return he.useMemo(()=>a?{reference:ge,floating:de}:{},[a,ge,de])}function X6(e){const{open:t=!1,onOpenChange:n,elements:r}=e,s=V6(),o=he.useRef({}),[a]=he.useState(()=>W6()),c=G6()!=null;if(process.env.NODE_ENV!=="production"){const x=r.reference;x&&!it(x)&&B6("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[u,d]=he.useState(r.reference),h=pi((x,S,b)=>{o.current.openEvent=x?S:void 0,a.emit("openchange",{open:x,event:S,reason:b,nested:c}),n==null||n(x,S,b)}),p=he.useMemo(()=>({setPositionReference:d}),[]),m=he.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return he.useMemo(()=>({dataRef:o,open:t,onOpenChange:h,elements:m,events:a,floatingId:s,refs:p}),[t,h,m,a,s,p])}function ir(e){e===void 0&&(e={});const{nodeId:t}=e,n=X6({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,s=r.elements,[o,a]=he.useState(null),[c,u]=he.useState(null),h=(s==null?void 0:s.domReference)||o,p=he.useRef(null),m=zb();mi(()=>{h&&(p.current=h)},[h]);const x=k6({...e,elements:{...s,...c&&{reference:c}}}),S=he.useCallback(C=>{const I=it(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),contextElement:C}:C;u(I),x.refs.setReference(I)},[x.refs]),b=he.useCallback(C=>{(it(C)||C===null)&&(p.current=C,a(C)),(it(x.refs.reference.current)||x.refs.reference.current===null||C!==null&&!it(C))&&x.refs.setReference(C)},[x.refs]),T=he.useMemo(()=>({...x.refs,setReference:b,setPositionReference:S,domReference:p}),[x.refs,b,S]),v=he.useMemo(()=>({...x.elements,domReference:h}),[x.elements,h]),A=he.useMemo(()=>({...x,...r,refs:T,elements:v,nodeId:t}),[x,T,v,t,r]);return mi(()=>{r.dataRef.current.floatingContext=A;const C=m==null?void 0:m.nodesRef.current.find(I=>I.id===t);C&&(C.context=A)}),he.useMemo(()=>({...x,context:A,refs:T,elements:v}),[x,T,v,A])}const qb="active",Kb="selected";function Wd(e,t,n){const r=new Map,s=n==="item";let o=e;if(s&&e){const{[qb]:a,[Kb]:c,...u}=e;o=u}return{...n==="floating"&&{tabIndex:-1,[H6]:""},...o,...t.map(a=>{const c=a?a[n]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((a,c)=>(c&&Object.entries(c).forEach(u=>{let[d,h]=u;if(!(s&&[qb,Kb].includes(d)))if(d.indexOf("on")===0){if(r.has(d)||r.set(d,[]),typeof h=="function"){var p;(p=r.get(d))==null||p.push(h),a[d]=function(){for(var m,x=arguments.length,S=new Array(x),b=0;b<x;b++)S[b]=arguments[b];return(m=r.get(d))==null?void 0:m.map(T=>T(...S)).find(T=>T!==void 0)}}}else a[d]=h}),a),{})}}function or(e){e===void 0&&(e=[]);const t=e.map(c=>c==null?void 0:c.reference),n=e.map(c=>c==null?void 0:c.floating),r=e.map(c=>c==null?void 0:c.item),s=he.useCallback(c=>Wd(c,e,"reference"),t),o=he.useCallback(c=>Wd(c,e,"floating"),n),a=he.useCallback(c=>Wd(c,e,"item"),r);return he.useMemo(()=>({getReferenceProps:s,getFloatingProps:o,getItemProps:a}),[s,o,a])}const Xb=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function gi(e,t){return typeof e=="function"?e(t):e}function Z6(e,t){const[n,r]=he.useState(e);return e&&!n&&r(!0),he.useEffect(()=>{if(!e&&n){const s=setTimeout(()=>r(!1),t);return()=>clearTimeout(s)}},[e,n,t]),n}function J6(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:s=250}=t,a=(typeof s=="number"?s:s.close)||0,[c,u]=he.useState("unmounted"),d=Z6(n,a);return!d&&c==="close"&&u("unmounted"),mi(()=>{if(r){if(n){u("initial");const h=requestAnimationFrame(()=>{u("open")});return()=>{cancelAnimationFrame(h)}}u("close")}},[n,r]),{isMounted:d,status:c}}function ar(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:s,common:o,duration:a=250}=t,c=e.placement,u=c.split("-")[0],d=he.useMemo(()=>({side:u,placement:c}),[u,c]),h=typeof a=="number",p=(h?a:a.open)||0,m=(h?a:a.close)||0,[x,S]=he.useState(()=>({...gi(o,d),...gi(n,d)})),{isMounted:b,status:T}=J6(e,{duration:a}),v=ol(n),A=ol(r),C=ol(s),I=ol(o);return mi(()=>{const P=gi(v.current,d),D=gi(C.current,d),R=gi(I.current,d),F=gi(A.current,d)||Object.keys(P).reduce((W,Q)=>(W[Q]="",W),{});if(T==="initial"&&S(W=>({transitionProperty:W.transitionProperty,...R,...P})),T==="open"&&S({transitionProperty:Object.keys(F).map(Xb).join(","),transitionDuration:p+"ms",...R,...F}),T==="close"){const W=D||P;S({transitionProperty:Object.keys(W).map(Xb).join(","),transitionDuration:m+"ms",...R,...W})}},[m,C,v,A,I,p,T,d]),{isMounted:b,styles:x}}const gs=({open:e,onClose:t,component:n,children:r,placement:s="bottom",className:o="",strategy:a="absolute",styles:c={},offset:u=8,padding:d=8,handleClickAway:h=!0})=>{const[p,m]=O.useState(e);O.useEffect(()=>{m(e)},[e]);const x=()=>{m(!1),t==null||t()},{x:S,y:b,strategy:T,refs:v,context:A}=ir({strategy:a,open:p,onOpenChange:W=>{!W&&!e&&x()},middleware:[er(u),nr(),tr({padding:d})],whileElementsMounted:Qn,placement:s}),C=rr(A,{enabled:!1}),I=sr(A,{enabled:!1}),{getReferenceProps:P,getFloatingProps:D}=or([C,I]),{isMounted:R,styles:F}=ar(A,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px) scale(0.95)"}});return g.jsx(D2,{enabled:h,onClickAway:()=>{p&&x()},children:g.jsxs("div",{className:"relative",children:[g.jsx("div",{ref:v.setReference,...P(),className:"reference-element",children:r}),R&&g.jsx("div",{ref:v.setFloating,style:{position:T,top:b??0,left:S??0,...F,zIndex:999,...c},...D(),className:"floating-element",children:g.jsx(yi,{className:o,children:typeof n=="function"?O.createElement(n):n})})]})})},Q6=({selectedPeriod:e,handlePeriodChange:t,colorVariants:n})=>{const r={initial:{backgroundColor:"#ffffff",color:"#57595f"},active:{backgroundColor:(n==null?void 0:n.hoverLight)||"#dee7fc",color:(n==null?void 0:n.text)||"#111827"},exit:{backgroundColor:"#ffffff",color:"#57595f"}};return g.jsxs("div",{className:"flex rounded-xl p-6 gap-2 border",style:{borderColor:(n==null?void 0:n.hoverLight)||"#dbeafe"},children:[g.jsx(st.button,{variants:r,initial:"initial",animate:e==="AM"?"active":"initial",exit:"exit",transition:{duration:.2},onClick:()=>t("AM"),disabled:e==="AM",className:"flex items-center justify-center font-500 px-10 py-2 rounded-lg",children:"AM"}),g.jsx(st.button,{variants:r,initial:"initial",animate:e==="PM"?"active":"initial",exit:"exit",transition:{duration:.2},onClick:()=>t("PM"),disabled:e==="PM",className:"flex items-center justify-center font-500 px-10 py-2 rounded-lg",children:"PM"})]})},eN=({setHourMenuOpen:e,hourMenuOpen:t,selectedHour:n})=>g.jsx("button",{onClick:()=>e(!t),className:"flex justify-center items-center w-72 h-full border py-8 px-14 rounded-xl border-blue-100 text-gray-600 font-500",children:`${String(n).padStart(2,"0")}:00`}),tN={primary:"#375ABC",primaryLight:"#8FA9F3",primaryDark:"#29438D",hover:"#4570EB",hoverLight:"#ECF1FD",text:"#375ABC",textLight:"#FFFFFF"},nN={primary:"#06B6D4",primaryLight:"#67E8F9",primaryDark:"#0891B2",hover:"#0891B2",hoverLight:"#CFFAFE",text:"#06B6D4",textLight:"#FFFFFF"},rN=e=>({blue:tN,aqua:nN})[e],Ud=({date:e,onDateChange:t,showTimeSelector:n=!0,minDate:r,maxDate:s,futureDates:o=!1,pastDates:a=!0,color:c="blue"})=>{const[u,d]=O.useState(e),[h,p]=O.useState(e),[m,x]=O.useState(e.getHours()%12||12),[S,b]=O.useState(e.getHours()>=12?"PM":"AM"),[T,v]=O.useState(0),{t:A}=Ue(),C=rN(c),[I,P]=O.useState(!1),[D,R]=O.useState(!1);O.useEffect(()=>{d(e),p(e),x(e.getHours()%12||12),b(e.getHours()>=12?"PM":"AM")},[e]);const F=()=>{v(-1),setTimeout(()=>{const z=A$(u);(!r||z>=r)&&d(z)},10)},W=()=>{v(1),setTimeout(()=>{d(ix(u,1))},10)},Q=z=>{if(s&&z>s||r&&z<r)return;const K=yx(xx(vx(z,0),0),S==="AM"?m%12:m%12+12);p(K),t(K)},ee=z=>{x(z);const K=yx(xx(vx(h,0),0),S==="AM"?z%12:z%12+12);p(K),t(K),P(!1)},ae=z=>{b(z)},ge=()=>{const z=new Date,K=20,$=5,[k,X]=O.useState(()=>Array.from({length:K+1},(J,oe)=>{const se=new Date(z.getFullYear(),z.getMonth()-oe,1);return{name:_n(se,"MMMM",{locale:Js}).replace(/^./,fe=>fe.toUpperCase()),index:se.getMonth(),year:se.getFullYear(),displayName:`${_n(se,"MMMM",{locale:Js}).replace(/^./,fe=>fe.toUpperCase())} ${se.getFullYear()}`}})),U=O.useRef(null),re=O.useRef(null);O.useEffect(()=>{U.current&&U.current.disconnect(),U.current=new IntersectionObserver(J=>{J[0].isIntersecting&&X(oe=>{const se=oe[oe.length-1],fe=new Date(se.year,se.index-1,1),Ee=Array.from({length:$},(Ve,ie)=>{const me=new Date(fe.getFullYear(),fe.getMonth()-ie,1);return{name:_n(me,"MMMM",{locale:Js}).replace(/^./,De=>De.toUpperCase()),index:me.getMonth(),year:me.getFullYear(),displayName:`${_n(me,"MMMM",{locale:Js}).replace(/^./,De=>De.toUpperCase())} ${me.getFullYear()}`}});return[...oe,...Ee]})}),re.current&&U.current.observe(re.current)},[k]);const B=(J,oe)=>{const se=new Date(u);se.setMonth(J),se.setFullYear(oe),(!r||se>=r)&&d(se),R(!1)};return g.jsx("div",{className:"flex flex-col p-8 max-h-200 overflow-y-auto bg-light gap-4",children:k.map((J,oe)=>{const se=oe===k.length-1;return g.jsx("button",{ref:se?re:null,onClick:()=>B(J.index,J.year),className:"text-start p-6 font-600 transition-all duration-100 rounded-lg",style:{backgroundColor:u.getMonth()===J.index&&u.getFullYear()===J.year?C.hoverLight:"transparent",color:u.getMonth()===J.index&&u.getFullYear()===J.year?C.text:"inherit"},onMouseEnter:fe=>{u.getMonth()===J.index&&u.getFullYear()===J.year||(fe.currentTarget.style.backgroundColor="#F3F4F6")},onMouseLeave:fe=>{u.getMonth()===J.index&&u.getFullYear()===J.year||(fe.currentTarget.style.backgroundColor="transparent")},children:J.displayName},`${J.name}-${J.year}-${oe}`)})})},de=()=>g.jsxs("div",{className:"flex justify-between items-center mb-8",children:[g.jsx(gs,{open:D,onClose:()=>R(!1),component:ge,placement:"bottom",className:"!p-0 overflow-hidden bg-light",strategy:"fixed",children:g.jsxs("button",{onClick:()=>R(!D),className:"transition-colors duration-150 flex gap-6 items-center !text-black",children:[g.jsx("h4",{className:"text-header-4",children:_n(u,"MMMM yyyy",{locale:Js}).replace(/^./,z=>z.toUpperCase())}),g.jsx(Pe,{icon:r0,className:"w-12 h-12"})]})}),g.jsxs("div",{className:"flex items-center gap-8",children:[g.jsx(sh,{variant:"transparent",color:c,icon:qD,onClick:F}),g.jsx(sh,{variant:"transparent",color:c,icon:g4,onClick:W})]})]}),le=()=>{const z=Ks(M4(u)),K=$4(E4(u)),$=A4({start:z,end:K}),k=new Date;return k.setHours(0,0,0,0),g.jsx("div",{className:"grid grid-cols-7 gap-2",children:$.map((X,U)=>{const re=lx(X,h),B=E$(X,u),J=P$(X),oe=X<k,se=X>k,fe=!B||oe&&!a||se&&!o||r&&X<r||s&&X>s;return g.jsx(st.div,{className:`
|
|
668
668
|
p-2 text-center w-[40px] h-[40px] rounded-full flex items-center justify-center font-600 select-none
|
|
669
|
-
${
|
|
670
|
-
`,onClick:()=>!
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
w-full h-full rounded-full border
|
|
678
|
-
|
|
679
|
-
${n&&!c?"border-blue-200":"border-blue-100"}
|
|
680
|
-
${!c&&"group-hover:border-blue-300"}
|
|
681
|
-
${c&&"cursor-not-allowed"}
|
|
669
|
+
${fe?"text-gray-400 pointer-events-none":"cursor-pointer"}
|
|
670
|
+
`,onClick:()=>!fe&&Q(X),initial:!1,animate:{backgroundColor:re?C.primaryLight:"transparent",color:re?C.textLight:J?C.text:fe?"#9CA3AF":"#000000"},transition:{duration:.2,ease:"easeInOut",backgroundColor:{duration:.2,ease:"easeOut"}},whileHover:!fe&&!re?{backgroundColor:C.hoverLight}:{},whileTap:fe?{}:{backgroundColor:re?C.primaryDark:C.hoverLight},children:_n(X,"d")},U)})})},ue=()=>{const z=Array.from({length:12},($,k)=>k+1),K=()=>g.jsx("div",{className:"bg-white rounded-lg shadow-lg w-80 max-h-[150px] overflow-y-auto p-4 flex flex-col gap-4",children:z.map($=>g.jsxs("button",{onClick:()=>ee($),className:"w-full text-center py-2 transition-all duration-100 rounded-lg",style:{backgroundColor:$===m?C.hoverLight:"transparent",color:$===m?C.text:"inherit",fontWeight:$===m?"500":"normal"},onMouseEnter:k=>{$!==m&&(k.currentTarget.style.backgroundColor="#F3F4F6")},onMouseLeave:k=>{$!==m&&(k.currentTarget.style.backgroundColor="transparent")},children:[String($).padStart(2,"0"),":00"]},$))});return g.jsxs("div",{className:"flex justify-between items-center mt-4 mb-4",children:[g.jsx("h4",{className:"text-body-m font-medium",children:A("time")}),g.jsxs("div",{className:"flex items-center gap-6",children:[g.jsx(gs,{open:I,onClose:()=>P(!1),component:K,placement:"bottom",className:"!p-0 overflow-hidden",strategy:"fixed",children:g.jsx(eN,{setHourMenuOpen:P,hourMenuOpen:I,selectedHour:m})}),g.jsx(Q6,{selectedPeriod:S,handlePeriodChange:ae,colorVariants:C})]})]})},Y={slideNextEnter:{x:300,opacity:0},slidePrevEnter:{x:-300,opacity:0},center:{x:0,opacity:1,transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}},slideNextExit:{x:-300,opacity:0,transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}},slidePrevExit:{x:300,opacity:0,transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}}};return g.jsxs("div",{className:"rounded-3xl max-w-[300px] mx-auto bg-white p-24 relative overflow-hidden",children:[de(),g.jsx(qn,{initial:!1,mode:"popLayout",children:g.jsx(st.div,{variants:Y,initial:T===1?"slideNextEnter":T===-1?"slidePrevEnter":!1,animate:"center",exit:T===1?"slideNextExit":"slidePrevExit",className:"w-full",children:le()},_n(u,"yyyy-MM"))}),n&&ue()]})},al=({label:e,onChange:t,value:n,name:r,error:s,placeholder:o,className:a="",disabled:c=!1,disabledInput:u=!1,size:d="md",leftSide:h,rightSide:p,...m})=>{const{t:x}=Ue(),b={sm:{container:"px-16 py-8",text:"text-sm",label:"text-sm",error:"text-sm",gap:"gap-8"},md:{container:"p-16",text:"text-14",label:"text-14",error:"text-14",gap:"gap-8"}}[d];return g.jsxs("label",{className:`flex flex-col group select-none ${b.gap} ${c&&"cursor-not-allowed"} ${a}`,htmlFor:r,children:[g.jsx("h6",{className:`text-gray-600 font-600 group ${s&&"!text-red-500"} ${b.label} ${c&&"text-gray-300"}`,children:e}),g.jsxs("label",{htmlFor:r,className:`
|
|
671
|
+
flex items-center justify-between gap-8 bg-light
|
|
672
|
+
${b.container} ${s&&"!border-red-500"} rounded-full border
|
|
673
|
+
${n&&!c?"border-blue-200":"border-blue-100"}
|
|
674
|
+
${!c&&"group-hover:border-blue-300"}
|
|
675
|
+
${c&&"cursor-not-allowed"}
|
|
682
676
|
|
|
683
677
|
group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
|
|
684
678
|
${u&&"hover:!cursor-pointer"}
|
|
685
679
|
group-disabled:bg-gray-500
|
|
686
|
-
`,children:[h&&h,
|
|
680
|
+
`,children:[h&&h,g.jsx("input",{...m,id:r,name:r,disabled:c,placeholder:o,value:n,onChange:T=>{t(T.target.value)},className:`group bg-transparent w-full h-full font-600 placeholder:font-600 ${b.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none ${u&&"pointer-events-none !select-none !caret-transparent"}`}),p&&p]}),g.jsx("h4",{className:`font-500 text-red-500 leading-none ${b.error}`,children:s&&x(s||"",{x:x(r)})})]})},Zb=e=>_n(e,"dd/MM/yyyy"),Jb=e=>{const[t,n,r]=e.split("/");if((t==null?void 0:t.length)===2&&(n==null?void 0:n.length)===2&&(r==null?void 0:r.length)===4){const s=new Date(Number(r),Number(n)-1,Number(t));return isNaN(s.getTime())?null:s}return null},sN=({control:e,name:t,showTimeSelector:n=!1,label:r,translateKey:s="",placeholder:o,futureDates:a=!1,pastDates:c=!0,size:u})=>{const{field:{value:d,onChange:h,onBlur:p},fieldState:{error:m}}=vr.useController({name:t,control:e}),{t:x}=Ue(),S=x(t),b=x(s),[T,v]=O.useState(!1),[A,C]=O.useState("");O.useEffect(()=>{d instanceof Date&&!isNaN(d.getTime())?C(Zb(d)):C("")},[d]);const I=Jb(A),P=R=>{const F=R.replace(/\D/g,"").slice(0,8),W=[];F.length>0&&W.push(F.slice(0,2)),F.length>2&&W.push(F.slice(2,4)),F.length>4&&W.push(F.slice(4,8));const Q=W.join("/");if(C(Q),v(!1),Q.length===10){const ee=Jb(Q);h(ee)}},D=()=>{h(null),C("")};return g.jsx(gs,{open:T,strategy:"fixed",padding:0,offset:0,onClose:()=>v(!1),className:"p-0!",component:g.jsx(Ud,{date:I||new Date,onDateChange:R=>{C(Zb(R)),h(R),v(!1)},showTimeSelector:n,futureDates:a,pastDates:c}),children:g.jsx(al,{size:u,onBlur:p,name:b||S,label:r,value:A,onFocus:R=>{R.preventDefault(),v(!0)},disabledInput:!0,onChange:R=>P(R),placeholder:o,error:m==null?void 0:m.message,rightSide:!!I&&g.jsx(Pe,{icon:nx,className:"text-gray-500 cursor-pointer",onClick:D})})})},Qb=({title:e,description:t,open:n,onClose:r,onConfirm:s,onCancel:o,icon:a=wb,showCloseButton:c=!0})=>{const u={hidden:{opacity:0},visible:{opacity:1}},d={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},h=()=>{s==null||s(),r()},p=()=>{o==null||o(),r()},{t:m}=Ue();return g.jsx(qn,{children:n&&g.jsx(g.Fragment,{children:g.jsx(st.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:u,onClick:r,children:g.jsx(st.div,{className:"w-full max-w-sm mx-16 z-50",variants:d,initial:"hidden",animate:"visible",exit:"exit",onClick:x=>x.stopPropagation(),children:g.jsxs(yi,{className:"flex flex-col gap-20 p-32",children:[g.jsxs("div",{className:"flex flex-col",children:[g.jsx("div",{className:"flex justify-end",children:c&&g.jsx(Pe,{icon:pf,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})}),g.jsx("div",{className:"flex justify-center",children:g.jsx("div",{className:"bg-blue-100 rounded-full w-76 h-76 flex justify-center items-center",children:g.jsx(Pe,{icon:a,className:"w-32 h-36 min-h-36 min-w-36 text-blue-500",onClick:r})})})]}),g.jsxs("div",{className:"flex flex-col gap-20 items-center justify-center",children:[g.jsxs("div",{className:"text-center w-full",children:[g.jsx("h3",{className:"text-black font-700 text-3xl w-full",children:e}),g.jsx("p",{className:"text-gray-500 text-xl font-600 w-full",children:t})]}),g.jsxs("div",{className:"flex justify-center w-full gap-16",children:[!!o&&g.jsx(ys,{size:"lg",onClick:p,variant:"transparent",children:m("cancel")}),!!s&&g.jsx(ys,{size:"lg",onClick:h,children:m("confirm")})]})]})]})})})})})},e2={duration:.3,ease:[.32,.72,0,1]},iN={initial:{opacity:0,height:0,y:-8},animate:{opacity:1,height:"auto",y:0},exit:{opacity:0,height:0,y:-8}},oN=({isOpen:e})=>g.jsx(st.div,{animate:{rotate:e?180:0},transition:{duration:.5,ease:[.16,1,.3,1]},children:g.jsx(Pe,{icon:YD,className:"text-gray-500 w-12 h-12 max-w-12 max-h-12"})}),aN=({label:e,children:t,subtitle:n,open:r,onClick:s,className:o="",labelClassName:a=""})=>{const{t:c}=Ue(),[u,d]=O.useState(!1),h=r!==void 0?r:u,p=s||(()=>d(!u));return g.jsxs(st.div,{className:"relative w-full bg-white border border-blue-100 rounded-2xl overflow-hidden",children:[g.jsxs("button",{onClick:p,className:`py-24 px-32 text-black font-semibold border-b
|
|
687
681
|
${h?"border-blue-100 bg-gray-50/50":"border-transparent"}
|
|
688
682
|
transition-all duration-200 ease-in-out focus:outline-none hover:bg-gray-50/50
|
|
689
|
-
flex items-center gap-2 group w-full justify-between`,children:[
|
|
683
|
+
flex items-center gap-2 group w-full justify-between`,children:[g.jsx("span",{className:`text-left text-lg md:text-xl font-700 ${a}`,children:c(e)}),g.jsxs("div",{className:"flex gap-10 items-center",children:[g.jsx("span",{className:"text-gray-500 font-normal text-base md:text-lg",children:n}),g.jsx(oN,{isOpen:h})]})]}),g.jsx(qn,{mode:"wait",children:h&&g.jsx(st.div,{...iN,transition:{height:{duration:e2.duration,ease:e2.ease},opacity:{duration:.15,ease:"easeOut"}},className:`w-full bg-white overflow-hidden ${o}`,children:t})})]})},Ht={LOADING:"loading",COMPLETE:"complete",ERROR:"error"},lN=({file:e,onDelete:t,onRetry:n,uploadDuration:r=4e3})=>{const{t:s}=Ue(),o=()=>e.error?Ht.ERROR:e.loading?Ht.LOADING:Ht.COMPLETE,[a,c]=O.useState(o()),[u,d]=O.useState(0),[h,p]=O.useState(10);O.useEffect(()=>{const b=o();c(b);let T;if(b===Ht.LOADING&&u<100){const C=100/(r/100);T=setInterval(()=>{d(I=>{const P=Math.min(I+C,99),D=Math.max(0,Math.round((100-P)/10));return p(D),P})},100)}else b===Ht.COMPLETE&&u<100&&d(100);return()=>{T&&clearInterval(T)}},[e.loading,e.error,r,o,u]);const m=()=>{switch(a){case Ht.LOADING:return`${Math.round(u)}% (${h} ${s("seconds_left")})`;case Ht.COMPLETE:return s("file_uploaded");case Ht.ERROR:return s("upload_error");default:return""}},x=()=>{switch(a){case Ht.COMPLETE:return"text-green-500 font-600";case Ht.ERROR:return"text-red-500 font-600";default:return"text-gray-300 font-400"}},S=()=>{if(!(e!=null&&e.file_size))return s("unknown");const b=e.file_size/1024;return b<1024?`${b.toFixed(1)} KB`:`${(b/1024).toFixed(1)} MB`};return g.jsxs("div",{className:"border border-gray-100 bg-white rounded-lg p-16 shadow-sm w-full",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx(Pe,{icon:d5,className:"w-12 h-12 min-w-12 min-h-12 text-gray-400"}),g.jsx("span",{className:"text-gray-500 text-sm",children:e.user_file_name})]}),a===Ht.COMPLETE&&g.jsx("button",{onClick:t,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:g.jsx(Pe,{icon:f5})}),a===Ht.ERROR&&g.jsx("button",{onClick:n,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:g.jsx(Pe,{icon:c5})})]}),g.jsx("div",{className:"flex items-center mt-2",children:e!=null&&e.analyzing?g.jsxs("div",{className:"flex items-center gap-6",children:[g.jsx(st.div,{className:"h-14 w-14 rounded-full border-2 border-t-blue-500 border-r-blue-300 border-b-blue-200 border-l-blue-400",animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"}}),g.jsxs("span",{className:"text-sm text-gray-500",children:[s("analyzing_file_with_ai"),"..."]})]}):g.jsxs("div",{className:"text-sm",children:[g.jsxs("span",{className:"text-gray-500",children:[S()," |"]})," ",g.jsx("span",{className:x(),children:m()})]})}),a===Ht.LOADING&&g.jsx("div",{className:"mt-2 bg-gray-200 rounded-full h-2",children:g.jsx("div",{className:"h-2 rounded-full transition-all duration-100 ease-linear bg-blue-500",style:{width:`${u}%`}})})]})},t2=({index:e,label:t,active:n,completed:r})=>g.jsxs("div",{className:"flex items-center gap-8",children:[g.jsx("div",{className:`
|
|
690
684
|
size-24 rounded-full border-[1px] flex items-center justify-center text-center font-600 text-label transition-colors ease-in-out duration-200
|
|
691
685
|
${n&&"border-blue-500! text-blue-500!"}
|
|
692
686
|
${r?"text-blue-500 bg-blue-50 border-none!":"border-gray-300 text-gray-300"}
|
|
693
|
-
`,children:r?
|
|
687
|
+
`,children:r?g.jsx(Pe,{icon:FE,className:`
|
|
694
688
|
text-blue-500
|
|
695
689
|
size-16
|
|
696
|
-
`}):e}),
|
|
690
|
+
`}):e}),g.jsx("h6",{className:`
|
|
697
691
|
text-body-m transition-colors ease-in-out duration-200
|
|
698
692
|
${n||r?"text-blue-500":"text-gray-300"}
|
|
699
693
|
${n&&"font-600"}
|
|
700
694
|
${r&&"font-500"}
|
|
701
|
-
`,children:t})]}),CN=({currentStep:e,steps:t})=>y.jsx("div",{className:"flex flex-col gap-16",children:t.map((n,r)=>y.jsx(c2,{label:n,index:r+1,active:r+1===e,completed:r+1<e},r))}),PN=({label:e,value:t})=>y.jsxs("div",{className:"col-span-2 flex flex-col gap-6",children:[y.jsx("h4",{className:"text-body-m font-600",children:e}),y.jsx("div",{className:"text-body-s text-gray-600",children:typeof t=="string"||_.isValidElement(t)?t:null})]}),u2=({title:e,children:t,className:n=""})=>y.jsxs("div",{className:`w-full flex flex-col gap-16 ${n}`,children:[y.jsx("h4",{className:"text-body-m font-600",children:e}),y.jsx("div",{className:"w-full grid grid-cols-4 gap-8 bg-white p-16 rounded-2xl border-1 border-blue-100",children:t})]});u2.Entry=PN;const Ss=({children:e,className:t,element:n="div"})=>{const r=n;return y.jsx(r,{className:`bg-white p-24 border border-blue-100 rounded-2xl ${t||""}`,children:e})},AN=({isOpen:e,onClose:t})=>{const n={hidden:{opacity:0},visible:{opacity:1}},r={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}};return y.jsx(vn,{children:e&&y.jsx(y.Fragment,{children:y.jsx(Ge.div,{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:n,onClick:t,children:y.jsx(Ge.div,{className:"w-full max-w-4xl mx-16 z-50",variants:r,initial:"hidden",animate:"visible",exit:"exit",onClick:i=>i.stopPropagation(),children:y.jsx(Ss,{className:"flex flex-col gap-16 md:gap-24 !p-0",children:y.jsx(y.Fragment,{})})})})})})},MN={completedBgColor:"#dae2fb",focusBorderColor:"#4570EB",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-blue-500",lineActiveColor:"bg-blue-500",lineGradientFrom:"from-blue-500"},ON={completedBgColor:"#C7F9F5",focusBorderColor:"#1DA696",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-aqua-500",lineActiveColor:"bg-aqua-500",lineGradientFrom:"from-aqua-500"},Jd=e=>{switch(e){case"aqua":return ON;case"blue":default:return MN}},_N=({status:e,label:t,shouldAnimate:n,color:r,index:i})=>{const{t:o}=Ue(),a=e==="done",c=e==="focus",{focusBorderColor:u,pendingBorderColor:d,iconActiveColor:h}=Jd(r);return y.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[y.jsx(Ge.div,{initial:n?!1:{backgroundColor:a?"#E0F1ED":c?u:"white",borderWidth:c?"1px":"0px",borderColor:c?u:d},animate:{backgroundColor:a?"#E0F1ED":c?u:"white",borderWidth:c||!a?"1px":"0px",borderColor:c?u:d},transition:{duration:n?.3:0,ease:"easeOut"},className:"min-w-28 min-h-28 rounded-full flex items-center justify-center text-xl font-bold border-[1px]",children:y.jsx(Ge.div,{initial:n?!1:{color:a?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:a||c?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},transition:{duration:n?.2:0},className:"flex items-center justify-center",children:y.jsx(vn,{mode:"wait",children:a||c?y.jsx(Ge.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:a?y.jsx(Pe,{icon:c0,className:`w-14 h-14 min-w-14 min-h-14 ${h}`}):y.jsx("div",{className:"text-white leading-none font-500 text-body-s flex items-center justify-center mb-1",children:i+1})},"check"):y.jsx(Ge.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:y.jsx(Pe,{icon:l0,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),y.jsx("span",{className:`text-body-s transition-all duration-300 text-center w-full font-500
|
|
702
|
-
|
|
703
|
-
`,style:{color:c?u:a?"#000":"#8F9095"},children:o(t)})]})},IN=({status:e,label:t,shouldAnimate:n,color:r})=>{const{t:i}=Ue(),o=e==="done",a=e==="focus",{completedBgColor:c,focusBorderColor:u,pendingBorderColor:d,iconActiveColor:h}=Jd(r);return y.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[y.jsx(Ge.div,{initial:n?!1:{backgroundColor:o?c:"white",borderWidth:a||!o?"1px":"0px",borderColor:a?u:d},animate:{backgroundColor:o?c:"white",borderWidth:a||!o?"1px":"0px",borderColor:a?u:d},transition:{duration:n?.3:0,ease:"easeOut"},className:"min-w-24 min-h-24 rounded-full flex items-center justify-center text-xs font-bold z-10",children:y.jsx(Ge.div,{initial:n?!1:{color:a||o?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:a||o?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},transition:{duration:n?.2:0},className:"flex items-center justify-center",children:y.jsx(vn,{mode:"wait",children:o||a?y.jsx(Ge.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:y.jsx(Pe,{icon:c0,className:`w-14 h-14 min-w-14 min-h-14 ${h}`})},"check"):y.jsx(Ge.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:y.jsx(Pe,{icon:l0,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),y.jsx("span",{className:`text-body-s font-medium transition-all duration-300 text-center w-full ${o||a?"text-black":"text-gray-400"}`,children:i(t)})]})},$N=({steps:e,direction:t="horizontal",color:n})=>{const{defaultColorScheme:r}=Ue(),i=n||r,{lineActiveColor:o,lineGradientFrom:a}=Jd(i),[c,u]=_.useState([]),[d,h]=_.useState(null),[m,p]=_.useState(!1),v=e.findIndex(b=>!b.completed),S=b=>v===b;_.useEffect(()=>{const b=e.map((C,E)=>S(E)?"focus":C.completed?"done":"pending");if(!m)u(b),p(!0),h(null);else{const C=b.findIndex((E,$)=>E!==c[$]);h(C!==-1?C:null),u(b)}},[e,v]);const x=()=>y.jsx("div",{className:"flex flex-col gap-16 relative",children:e.map((b,C)=>{var D;const E=S(C-1)?"focus":(D=e[C-1])!=null&&D.completed?"done":"pending",$=S(C)?"focus":b.completed?"done":"pending",A=m&&d===C;return y.jsxs("div",{className:"flex items-center gap-10 relative",children:[C!==0&&y.jsx("div",{className:`absolute left-[13px] bottom-[28px] w-[1.5px] h-16 ${$==="done"||$==="focus"?o:E==="done"||E==="focus"?`bg-gradient-to-b ${a} to-[rgb(243,244,246)]`:"bg-[rgb(243,244,246)]"}`}),y.jsx(_N,{index:C,status:$,shouldAnimate:A,label:b.label,color:i})]},C)})}),T=()=>y.jsx("div",{className:"w-full flex items-center gap-12",children:e.map((b,C)=>{const E=S(C)?"focus":b.completed?"done":"pending",$=m&&d===C;return y.jsx("div",{className:"flex flex-col items-center justify-evenly w-full gap-2 relative col-span-1",children:y.jsx(IN,{index:C,status:E,shouldAnimate:$,label:b.label,color:i})},C)})});return t==="horizontal"?y.jsx(T,{}):y.jsx(x,{})},DN=({variant:e="underline",color:t="blue",tabs:n,activeTab:r,onTabChange:i,className:o="",direction:a="row",showLabel:c=!0,labelClassName:u=""})=>{const d=_.useRef([]),[h,m]=_.useState({left:0,width:0}),p=_.useRef(null),{defaultColorScheme:v}=Ue(),S=t||v,x=()=>{const T=n.findIndex(b=>b.id===r);if(T>=0&&d.current[T]){const b=d.current[T];if(b&&p.current){const C=p.current.getBoundingClientRect(),E=b.getBoundingClientRect();m({left:E.left-C.left,width:E.width})}}};return _.useEffect(()=>{x()},[r,n]),_.useEffect(()=>{const T=()=>{x()};return window.addEventListener("resize",T),()=>{window.removeEventListener("resize",T)}},[r,n]),y.jsxs("div",{ref:p,className:`flex items-center relative ${o}`,children:[n.map((T,b)=>y.jsx(pf.div,{ref:C=>{d.current[b]=C},className:"w-full",children:y.jsx(F2,{href:T.href,label:c?T.label:"",labelClassName:u,icon:T.icon,direction:a,isSelected:r===T.id,onClick:()=>i(T.id),variant:e})},T.id)),y.jsx(pf.div,{className:`absolute bottom-0 h-2 bg-${S}-500`,initial:!1,animate:{left:h.left,width:h.width},transition:{type:"spring",stiffness:300,damping:30}})]})},Qd=e=>Nn(e,"dd/MM/yyyy"),NN=e=>{const[t,n,r]=e.split("/");if((t==null?void 0:t.length)===2&&(n==null?void 0:n.length)===2&&(r==null?void 0:r.length)===4){const i=new Date(Number(r),Number(n)-1,Number(t));return isNaN(i.getTime())?null:i}return null};function eh({currentDate:e,onDateChange:t,label:n,placeholder:r="dd/mm/yyyy",error:i,translatedKey:o,showTimeSelector:a=!1,futureDates:c=!1,pastDates:u=!0,minDate:d,maxDate:h,customDisplay:m,size:p}){const[v,S]=_.useState(!1),[x,T]=_.useState(e?Qd(e):"");_.useEffect(()=>{T(e?Qd(e):"")},[e]);const b=E=>{const $=E.replace(/\D/g,"").slice(0,8),A=[];$.length>0&&A.push($.slice(0,2)),$.length>2&&A.push($.slice(2,4)),$.length>4&&A.push($.slice(4,8));const D=A.join("/");if(T(D),S(!1),D.length===10){const R=NN(D);R&&t(R)}},C=()=>{t(null),T("")};return y.jsx(bi,{open:v,strategy:"fixed",padding:0,offset:0,onClose:()=>S(!1),className:"p-0!",component:y.jsx(Zd,{date:e||new Date,onDateChange:E=>{t(E),T(Qd(E)),S(!1)},showTimeSelector:a,futureDates:c,pastDates:u,minDate:d,maxDate:h}),children:m?y.jsx("div",{onClick:E=>{E.preventDefault(),S(!0)},children:m}):y.jsx(fl,{size:p,name:o,label:n,value:x,onClick:E=>{E.preventDefault(),S(!0)},onChange:E=>b(E),placeholder:r,error:i,rightSide:e&&y.jsx(Pe,{icon:ov,className:"text-gray-500 cursor-pointer",onClick:C})})})}function f2(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=f2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Vn(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=f2(e))&&(r&&(r+=" "),r+=t);return r}const d2={filled:"bg-blue-500 text-white hover:bg-blue-600 hover:text-white active:bg-blue-700 active:text-white",transparent:"bg-blue-100 text-blue-500 hover:bg-blue-200 hover:text-blue-600 active:bg-blue-300/80 active:text-blue-700",outline:"bg-transparent border-1 border-blue-500 text-blue-500 hover:text-blue-600 hover:border-blue-600 active:text-blue-700 active:border-blue-700",invisible:"text-blue-500 hover:text-blue-600 active:text-blue-700"},h2={filled:"bg-aqua-500 text-white hover:bg-aqua-600 hover:text-white active:bg-aqua-700 active:text-white",transparent:"bg-aqua-100 text-aqua-500 hover:bg-aqua-200/50 hover:text-aqua-600 active:bg-aqua-200/70 active:text-aqua-700",outline:"bg-transparent border-1 border-aqua-500 text-aqua-500 hover:text-aqua-600 hover:border-aqua-600 active:text-aqua-700 active:border-aqua-700",invisible:"text-aqua-500 hover:text-aqua-600 active:text-aqua-700"},m2={filled:"bg-red-500 text-white hover:bg-red-600 hover:text-white active:bg-red-700 active:text-white",transparent:"bg-red-500/20 text-error hover:bg-red-500/30 hover:text-red-600 active:text-red-700 active:bg-red-700/40",outline:"bg-transparent border-1 border-red-500 text-error hover:text-red-600 hover:border-red-600 active:text-red-700 active:border-red-700",invisible:"text-red-500 hover:text-red-600 active:text-red-700"},p2={filled:"bg-gray-500 text-white hover:bg-gray-600 hover:text-white active:bg-gray-700 active:text-white",transparent:"bg-gray-100 text-gray-500 hover:bg-gray-200 hover:text-gray-600 active:text-gray-700 active:bg-gray-300",outline:"bg-transparent border-1 border-gray-500 text-gray-500 hover:text-gray-600 hover:border-gray-600 active:text-gray-700 active:border-gray-700",invisible:"text-gray-500 hover:text-gray-600 active:text-gray-700"},kN="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 text-body-s disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",LN={lg:"gap-12 px-24 py-8 text-lg",base:"gap-8 px-20 py-7",md:"gap-8 px-16 py-6",sm:"gap-4 px-12 py-5",xs:"gap-4 px-6 py-3"},RN=(e="filled",t="blue",n="base")=>{const r=Vn(kN,LN[n]),i={blue:d2[e],aqua:h2[e],red:m2[e],gray:p2[e]}[t];return Vn(r,i)},jN="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 leading-normal disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",FN={lg:"min-h-[46px] max-h-[46px] min-w-[46px] max-w-[46px]",base:"min-h-[40px] max-h-[40px] min-w-[40px] max-w-[40px]",md:"min-h-[28px] max-h-[28px] min-w-[28px] max-w-[28px]",sm:"min-h-[20px] max-h-[20px] min-w-[16px] max-w-[16px]",xs:"min-h-[12px] max-h-[12px] min-w-[12px] max-w-[12px]"},VN={none:"",blue:"shadow-blue-sh hover:shadow-blue-sh active:shadow-blue-sh"},BN=(e="filled",t="blue",n="base",r="none")=>{const i=Vn(jN,FN[n],VN[r]),o={blue:d2[e],aqua:h2[e],red:m2[e],gray:p2[e]}[t];return Vn(i,o)},WN={lg:"min-h-[20px] max-h-[20px]",base:"min-h-[15px] max-h-[15px]",md:"min-h-[15px] max-h-[15px]",sm:"min-h-[15px] max-h-[15px]",xs:"min-h-[15px] max-h-[15px]"},jo=(e="base")=>WN[e],wi=({icon:e,rightIcon:t,color:n,variant:r="filled",size:i="base",children:o,className:a,...c})=>{const{defaultColorScheme:u}=Ue(),d=n||u;return y.jsxs("button",{type:"button",className:RN(r,d,i)+" "+a,...c,children:[e&&y.jsx(Pe,{icon:e,className:jo(i)}),o,t&&y.jsx(Pe,{icon:t,className:jo(i)})]})},UN=({name:e,error:t,value:n="",onChange:r,onOptionClick:i,onKeyDown:o,onSelect:a,onButtonClick:c,options:u,placeholder:d,label:h,disabled:m=!1,className:p="",buttonContent:v="Enviar",showOptionsOnClick:S=!0,showChevron:x=!1,showButton:T=!1,setValueOnOptionSelect:b=!0,leftSide:C,rightSide:E})=>{const{t:$}=Ue(),[A,D]=_.useState(!1),R=_.useRef(null),{x:j,y:V,strategy:Z,refs:ee,context:se}=jr({open:A,onOpenChange:D,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:U,elements:J}){Object.assign(J.floating.style,{maxHeight:`${Math.min(U-10,300)}px`})},padding:8})],placement:"bottom-start",whileElementsMounted:$r}),ge=vi(se,{enabled:x}),ue=Rr(se),{getReferenceProps:fe,getFloatingProps:he}=Fr([ge,ue]),{isMounted:G,styles:W}=xi(se,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),Y=(()=>{const U=Array.isArray(u)?u:[];if(!n||!n.trim())return U;const J=n.toLowerCase();return U.filter(oe=>oe.label.toLowerCase().includes(J))})(),M=U=>{b&&(r==null||r(U.label)),D(!1),i==null||i(U),a==null||a(U.value)},k=U=>{r==null||r(U)},H=U=>{U.stopPropagation(),x&&!m&&(D(!A),!A&&R.current&&setTimeout(()=>{var J;return(J=R.current)==null?void 0:J.focus()},100))},le={...x?fe():{},onKeyDown:void 0,onClick:void 0};return y.jsxs("div",{className:`flex flex-col gap-8 select-none ${m&&"cursor-not-allowed"} ${p}`,children:[y.jsx("h6",{className:`text-gray-600 font-600 group ${t&&"!text-red-500"} text-label ${m&&"text-gray-300"}`,children:h}),y.jsxs("div",{className:"flex gap-24",children:[y.jsxs("div",{ref:ee.setReference,className:`
|
|
695
|
+
`,children:t})]}),cN=({currentStep:e,steps:t})=>g.jsx("div",{className:"flex flex-col gap-16",children:t.map((n,r)=>g.jsx(t2,{label:n,index:r+1,active:r+1===e,completed:r+1<e},r))}),uN=({label:e,value:t})=>g.jsxs("div",{className:"col-span-2 flex flex-col gap-6",children:[g.jsx("h4",{className:"text-body-m font-600",children:e}),g.jsx("div",{className:"text-body-s text-gray-600",children:typeof t=="string"||O.isValidElement(t)?t:null})]}),n2=({title:e,children:t,className:n=""})=>g.jsxs("div",{className:`w-full flex flex-col gap-16 ${n}`,children:[g.jsx("h4",{className:"text-body-m font-600",children:e}),g.jsx("div",{className:"w-full grid grid-cols-4 gap-8 bg-white p-16 rounded-2xl border-1 border-blue-100",children:t})]});n2.Entry=uN;const yi=({children:e,className:t,element:n="div"})=>{const r=n;return g.jsx(r,{className:`bg-white p-24 border border-blue-100 rounded-2xl ${t||""}`,children:e})},fN=({isOpen:e,onClose:t})=>{const n={hidden:{opacity:0},visible:{opacity:1}},r={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}};return g.jsx(qn,{children:e&&g.jsx(g.Fragment,{children:g.jsx(st.div,{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:n,onClick:t,children:g.jsx(st.div,{className:"w-full max-w-4xl mx-16 z-50",variants:r,initial:"hidden",animate:"visible",exit:"exit",onClick:s=>s.stopPropagation(),children:g.jsx(yi,{className:"flex flex-col gap-16 md:gap-24 !p-0",children:g.jsx(g.Fragment,{})})})})})})},dN={focusIconColor:"text-white",completedIconColor:"text-blue-500",pendingIconColor:"text-blue-500",labelColor:"text-blue-500",focusBgColor:"#4570EB",completedBgColor:"#CAD6F9",pendingBgColor:"#ECF1FD",lineActiveColor:"bg-blue-200",lineGradientFrom:"from-blue-500",lineGradientTo:"to-blue-200"},hN={focusIconColor:"text-white",completedIconColor:"text-aqua-500",pendingIconColor:"text-aqua-500",labelColor:"text-aqua-500",focusBgColor:"#1DA696",completedBgColor:"#C7F9F5",pendingBgColor:"#C7F9F5",lineActiveColor:"bg-aqua-200",lineGradientFrom:"from-aqua-500",lineGradientTo:"to-aqua-200"},ll=e=>{switch(e){case"aqua":return hN;case"blue":default:return dN}},pN=e=>{const{t}=Ue(),{labelColor:n}=ll(e.color);return g.jsxs("div",{className:"flex items-center gap-8 h-fit min-w-0",children:[g.jsx("div",{className:"flex-shrink-0",children:g.jsx(oh,{...e})}),e.label&&g.jsx("span",{className:`text-body-s transition-all duration-300 font-semibold truncate ${n}`,children:t(e.label)})]})},mN=e=>{const{t}=Ue(),{labelColor:n}=ll(e.color);return g.jsxs("div",{className:"flex flex-col items-center gap-8 h-fit min-w-fit",children:[g.jsx(oh,{...e}),e.label&&g.jsx("span",{className:`text-body-s transition-all duration-300 text-center font-semibold whitespace-nowrap ${n}`,children:t(e.label)})]})},gN=({steps:e,direction:t="horizontal",color:n})=>{const{defaultColorScheme:r}=Ue(),s=n||r,o=ll(s),[a,c]=O.useState([]),[u,d]=O.useState(null),[h,p]=O.useState(!1),m=e.findIndex(T=>!T.completed),x=T=>m===T;O.useEffect(()=>{const T=e.map((v,A)=>x(A)?"focus":v.completed?"done":"pending");if(!h)c(T),p(!0),d(null);else{const v=T.findIndex((A,C)=>A!==a[C]);d(v!==-1?v:null),c(T)}},[e,m]);const S=()=>g.jsx("div",{className:"flex flex-col h-full w-full",children:e.map((T,v)=>{const A=x(v)?"focus":T.completed?"done":"pending",C=h&&u===v;return g.jsxs("div",{className:`flex flex-col ${v<e.length-1?"flex-1":"flex-initial"}`,children:[g.jsx("div",{className:"flex items-center gap-4 z-10",children:g.jsx(pN,{index:v,status:A,shouldAnimate:C,label:T.label,color:s})}),v<e.length-1&&g.jsx("div",{className:"flex h-full w-[35px] justify-center my-4",children:g.jsx("div",{className:`w-[1.5px] h-full transition-all duration-500 ${A==="done"?o.lineActiveColor:A==="focus"?`bg-gradient-to-b ${o.lineGradientFrom} ${o.lineGradientTo}`:""}`,style:{backgroundColor:A==="pending"?o.pendingBgColor:void 0}})})]},v)})}),b=()=>g.jsx("div",{className:"w-full flex items-start",children:e.map((T,v)=>{const A=x(v)?"focus":T.completed?"done":"pending",C=h&&u===v;return g.jsxs("div",{className:`flex items-start ${v<e.length-1?"flex-1":"flex-initial"}`,children:[g.jsx("div",{className:"flex flex-col items-center z-10",children:g.jsx(mN,{index:v,status:A,shouldAnimate:C,label:T.label,color:s})}),v<e.length-1&&g.jsx("div",{className:`flex-1 h-[1.5px] mt-[16px] mx-4 transition-all duration-500 ${A==="done"?o.lineActiveColor:A==="focus"?`bg-gradient-to-r ${o.lineGradientFrom} ${o.lineGradientTo}`:""}`,style:{backgroundColor:A==="pending"?o.pendingBgColor:void 0}})]},v)})});return t==="horizontal"?g.jsx(b,{}):g.jsx(S,{})},yN=({variant:e="underline",color:t="blue",tabs:n,activeTab:r,onTabChange:s,className:o="",direction:a="row",showLabel:c=!0,labelClassName:u=""})=>{const d=O.useRef([]),[h,p]=O.useState({left:0,width:0}),m=O.useRef(null),{defaultColorScheme:x}=Ue(),S=t||x,b=()=>{const T=n.findIndex(v=>v.id===r);if(T>=0&&d.current[T]){const v=d.current[T];if(v&&m.current){const A=m.current.getBoundingClientRect(),C=v.getBoundingClientRect();p({left:C.left-A.left,width:C.width})}}};return O.useEffect(()=>{b()},[r,n]),O.useEffect(()=>{const T=()=>{b()};return window.addEventListener("resize",T),()=>{window.removeEventListener("resize",T)}},[r,n]),g.jsxs("div",{ref:m,className:`flex items-center relative ${o}`,children:[n.map((T,v)=>g.jsx(uf.div,{ref:A=>{d.current[v]=A},className:"w-full",children:g.jsx($2,{href:T.href,label:c?T.label:"",labelClassName:u,icon:T.icon,direction:a,isSelected:r===T.id,onClick:()=>s(T.id),variant:e})},T.id)),g.jsx(uf.div,{className:`absolute bottom-0 h-2 bg-${S}-500`,initial:!1,animate:{left:h.left,width:h.width},transition:{type:"spring",stiffness:300,damping:30}})]})},zd=e=>_n(e,"dd/MM/yyyy"),xN=e=>{const[t,n,r]=e.split("/");if((t==null?void 0:t.length)===2&&(n==null?void 0:n.length)===2&&(r==null?void 0:r.length)===4){const s=new Date(Number(r),Number(n)-1,Number(t));return isNaN(s.getTime())?null:s}return null};function Gd({currentDate:e,onDateChange:t,label:n,placeholder:r="dd/mm/yyyy",error:s,translatedKey:o,showTimeSelector:a=!1,futureDates:c=!1,pastDates:u=!0,minDate:d,maxDate:h,customDisplay:p,size:m}){const[x,S]=O.useState(!1),[b,T]=O.useState(e?zd(e):"");O.useEffect(()=>{T(e?zd(e):"")},[e]);const v=C=>{const I=C.replace(/\D/g,"").slice(0,8),P=[];I.length>0&&P.push(I.slice(0,2)),I.length>2&&P.push(I.slice(2,4)),I.length>4&&P.push(I.slice(4,8));const D=P.join("/");if(T(D),S(!1),D.length===10){const R=xN(D);R&&t(R)}},A=()=>{t(null),T("")};return g.jsx(gs,{open:x,strategy:"fixed",padding:0,offset:0,onClose:()=>S(!1),className:"p-0!",component:g.jsx(Ud,{date:e||new Date,onDateChange:C=>{t(C),T(zd(C)),S(!1)},showTimeSelector:a,futureDates:c,pastDates:u,minDate:d,maxDate:h}),children:p?g.jsx("div",{onClick:C=>{C.preventDefault(),S(!0)},children:p}):g.jsx(al,{size:m,name:o,label:n,value:b,onClick:C=>{C.preventDefault(),S(!0)},onChange:C=>v(C),placeholder:r,error:s,rightSide:e&&g.jsx(Pe,{icon:nx,className:"text-gray-500 cursor-pointer",onClick:A})})})}function r2(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=r2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ln(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=r2(e))&&(r&&(r+=" "),r+=t);return r}const s2={filled:"bg-blue-500 text-white hover:bg-blue-600 hover:text-white active:bg-blue-700 active:text-white",transparent:"bg-blue-100 text-blue-500 hover:bg-blue-200 hover:text-blue-600 active:bg-blue-300/80 active:text-blue-700",outline:"bg-transparent border-1 border-blue-500 text-blue-500 hover:text-blue-600 hover:border-blue-600 active:text-blue-700 active:border-blue-700",invisible:"text-blue-500 hover:text-blue-600 active:text-blue-700"},i2={filled:"bg-aqua-500 text-white hover:bg-aqua-600 hover:text-white active:bg-aqua-700 active:text-white",transparent:"bg-aqua-100 text-aqua-500 hover:bg-aqua-200/50 hover:text-aqua-600 active:bg-aqua-200/70 active:text-aqua-700",outline:"bg-transparent border-1 border-aqua-500 text-aqua-500 hover:text-aqua-600 hover:border-aqua-600 active:text-aqua-700 active:border-aqua-700",invisible:"text-aqua-500 hover:text-aqua-600 active:text-aqua-700"},o2={filled:"bg-red-500 text-white hover:bg-red-600 hover:text-white active:bg-red-700 active:text-white",transparent:"bg-red-500/20 text-error hover:bg-red-500/30 hover:text-red-600 active:text-red-700 active:bg-red-700/40",outline:"bg-transparent border-1 border-red-500 text-error hover:text-red-600 hover:border-red-600 active:text-red-700 active:border-red-700",invisible:"text-red-500 hover:text-red-600 active:text-red-700"},a2={filled:"bg-gray-500 text-white hover:bg-gray-600 hover:text-white active:bg-gray-700 active:text-white",transparent:"bg-gray-100 text-gray-500 hover:bg-gray-200 hover:text-gray-600 active:text-gray-700 active:bg-gray-300",outline:"bg-transparent border-1 border-gray-500 text-gray-500 hover:text-gray-600 hover:border-gray-600 active:text-gray-700 active:border-gray-700",invisible:"text-gray-500 hover:text-gray-600 active:text-gray-700"},vN="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 text-body-s disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",bN={lg:"gap-12 px-24 py-8 text-lg",base:"gap-8 px-20 py-7",md:"gap-8 px-16 py-6",sm:"gap-4 px-12 py-5",xs:"gap-4 px-6 py-3"},wN=(e="filled",t="blue",n="base")=>{const r=Ln(vN,bN[n]),s={blue:s2[e],aqua:i2[e],red:o2[e],gray:a2[e]}[t];return Ln(r,s)},SN="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 leading-normal disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",TN={lg:"min-h-[46px] max-h-[46px] min-w-[46px] max-w-[46px]",base:"min-h-[40px] max-h-[40px] min-w-[40px] max-w-[40px]",md:"min-h-[28px] max-h-[28px] min-w-[28px] max-w-[28px]",sm:"min-h-[20px] max-h-[20px] min-w-[16px] max-w-[16px]",xs:"min-h-[12px] max-h-[12px] min-w-[12px] max-w-[12px]"},CN={none:"",blue:"shadow-blue-sh hover:shadow-blue-sh active:shadow-blue-sh"},EN=(e="filled",t="blue",n="base",r="none")=>{const s=Ln(SN,TN[n],CN[r]),o={blue:s2[e],aqua:i2[e],red:o2[e],gray:a2[e]}[t];return Ln(s,o)},PN={lg:"min-h-[20px] max-h-[20px]",base:"min-h-[15px] max-h-[15px]",md:"min-h-[15px] max-h-[15px]",sm:"min-h-[15px] max-h-[15px]",xs:"min-h-[15px] max-h-[15px]"},Do=(e="base")=>PN[e],ys=({icon:e,rightIcon:t,color:n,variant:r="filled",size:s="base",children:o,className:a,...c})=>{const{defaultColorScheme:u}=Ue(),d=n||u;return g.jsxs("button",{type:"button",className:wN(r,d,s)+" "+a,...c,children:[e&&g.jsx(Pe,{icon:e,className:Do(s)}),o,t&&g.jsx(Pe,{icon:t,className:Do(s)})]})},AN=({name:e,error:t,value:n="",onChange:r,onOptionClick:s,onKeyDown:o,onSelect:a,onButtonClick:c,options:u,placeholder:d,label:h,disabled:p=!1,className:m="",buttonContent:x="Enviar",showOptionsOnClick:S=!0,showChevron:b=!1,showButton:T=!1,setValueOnOptionSelect:v=!0,leftSide:A,rightSide:C})=>{const{t:I}=Ue(),[P,D]=O.useState(!1),R=O.useRef(null),{x:F,y:W,strategy:Q,refs:ee,context:ae}=ir({open:P,onOpenChange:D,middleware:[er(8),nr(),tr({padding:8}),Rr({apply({availableHeight:B,elements:J}){Object.assign(J.floating.style,{maxHeight:`${Math.min(B-10,300)}px`})},padding:8})],placement:"bottom-start",whileElementsMounted:Qn}),ge=rr(ae,{enabled:b}),de=sr(ae),{getReferenceProps:le,getFloatingProps:ue}=or([ge,de]),{isMounted:Y,styles:z}=ar(ae,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),K=(()=>{const B=Array.isArray(u)?u:[];if(!n||!n.trim())return B;const J=n.toLowerCase();return B.filter(oe=>oe.label.toLowerCase().includes(J))})(),$=B=>{v&&(r==null||r(B.label)),D(!1),s==null||s(B),a==null||a(B.value)},k=B=>{r==null||r(B)},X=B=>{B.stopPropagation(),b&&!p&&(D(!P),!P&&R.current&&setTimeout(()=>{var J;return(J=R.current)==null?void 0:J.focus()},100))},re={...b?le():{},onKeyDown:void 0,onClick:void 0};return g.jsxs("div",{className:`flex flex-col gap-8 select-none ${p&&"cursor-not-allowed"} ${m}`,children:[g.jsx("h6",{className:`text-gray-600 font-600 group ${t&&"!text-red-500"} text-label ${p&&"text-gray-300"}`,children:h}),g.jsxs("div",{className:"flex gap-24",children:[g.jsxs("div",{ref:ee.setReference,className:`
|
|
704
696
|
flex items-center justify-between gap-8 p-16
|
|
705
697
|
|
|
706
698
|
${t&&"!border-red-500"}
|
|
@@ -709,48 +701,66 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
709
701
|
|
|
710
702
|
w-full h-full rounded-full border
|
|
711
703
|
|
|
712
|
-
${n&&!
|
|
713
|
-
${!
|
|
714
|
-
${
|
|
704
|
+
${n&&!p?"border-blue-200":"border-blue-100"}
|
|
705
|
+
${!p&&"hover:border-blue-300"}
|
|
706
|
+
${p&&"cursor-not-allowed"}
|
|
715
707
|
|
|
716
708
|
focus-within:border-blue-500 transition-colors duration-200 ease-in-out
|
|
717
|
-
${
|
|
709
|
+
${p&&"hover:!cursor-pointer"}
|
|
718
710
|
group-disabled:bg-gray-500
|
|
719
|
-
`,...
|
|
711
|
+
`,...re,children:[A&&A,g.jsx("input",{ref:R,id:e,name:e,disabled:p,placeholder:d,value:n,onClick:()=>{S&&!P&&!p&&D(!0)},onChange:B=>k(B.target.value),onKeyDown:B=>{o&&o(B),B.key==="Enter"&&(B.preventDefault(),K.length>0&&$(K[0])),B.key==="Escape"&&D(!1)},className:`group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none ${p&&"pointer-events-none !select-none !caret-transparent"}`}),C&&!b?C:b&&g.jsx(Pe,{icon:NE,className:`text-xl text-gray-500 cursor-pointer ${P&&"rotate-180"} transition-transform duration-150 ease-in-out`,onClick:X})]}),T&&g.jsx(ys,{variant:"filled",size:"lg",onClick:c,className:"h-[55px]!",children:x})]}),g.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:t&&I(t||"",{x:I(e)})}),Y&&g.jsx("div",{ref:ee.setFloating,style:{position:Q,top:W??0,left:F??0,...z,width:ee.reference.current instanceof Element?ee.reference.current.clientWidth:void 0,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...ue(),children:g.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:K.length>0?g.jsx("ul",{className:"py-4",children:K.map((B,J)=>g.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${n===B.label?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:oe=>{oe.stopPropagation(),$(B)},children:g.jsx("span",{children:I(B.label)})},`${B.label}-${J}`))}):n&&(n==null?void 0:n.length)>0?g.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[g.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),g.jsxs("p",{className:"mt-8 text-body-s",children:['No se encontraron resultados para "',n,'"']})]}):null})})]})},Yd=({label:e,onClick:t,onRemove:n,readOnly:r})=>g.jsxs("div",{className:"flex justify-between items-center gap-10 bg-[#DEE6F7] rounded-[4px] p-8 text-14",onClick:t,children:[g.jsx("span",{className:"text-blue-500 font-semibold text-nowrap text-ellipsis overflow-hidden",children:e}),!r&&n&&g.jsx("button",{onClick:s=>{n(),s.stopPropagation()},className:"flex items-center text-blue-300 hover:text-red-500",children:g.jsx(Pe,{icon:i0})})]}),MN=({values:e,onPillRemove:t})=>{const[n,r]=O.useState(!1),s=e.slice(0,3),o=e.slice(3);return g.jsxs("div",{className:"flex justify-between items-start gap-20",children:[g.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[s.map(a=>g.jsx(Yd,{label:a.label,onRemove:()=>t(a.value)},a.value)),g.jsx(qn,{children:n&&o.map(a=>g.jsx(st.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2},children:g.jsx(Yd,{label:a.label,onRemove:()=>t(a.value)})},a.value))})]}),o.length>0&&g.jsx("button",{type:"button",onClick:()=>r(!n),className:"flex items-center gap-8 w-fit text-blue-500 font-semibold text-14 transition hover:text-blue-700 text-nowrap shrink-0",children:n?g.jsxs(g.Fragment,{children:[g.jsx("p",{children:"Ocultar"})," ",g.jsx(Pe,{icon:l5})]}):g.jsxs(g.Fragment,{children:[g.jsxs("p",{children:["Ver ",o.length," más"]})," ",g.jsx(Pe,{icon:h5})]})})]})},ON=({open:e,onClose:t,children:n,side:r="right",className:s="",backdropClassName:o="",width:a="650px",zIndex:c=9999,usePortal:u=!0})=>{O.useEffect(()=>{const m=x=>{x.key==="Escape"&&e&&t()};return e&&(document.addEventListener("keydown",m),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",m),document.body.style.overflow="unset"}},[e,t]);const d={initial:{x:r==="right"?"100%":"-100%"},animate:{x:0,transition:{type:"spring",stiffness:300,damping:30,opacity:{duration:.2}}},exit:{x:r==="right"?"100%":"-100%",transition:{type:"spring",stiffness:300,damping:30,opacity:{duration:.15}}}},h={initial:{opacity:0},animate:{opacity:1,transition:{duration:.2}},exit:{opacity:0,transition:{duration:.15}}},p=g.jsx(qn,{children:e&&g.jsxs("div",{className:"fixed inset-0 flex",style:{zIndex:c},children:[g.jsx(st.div,{variants:h,initial:"initial",animate:"animate",exit:"exit",className:`absolute inset-0 bg-black/50 backdrop-blur-[0.60px] ${o}`,onClick:m=>{m.preventDefault(),m.stopPropagation(),t()}}),g.jsx("div",{className:`relative flex w-full pointer-events-none ${r==="left"?"justify-start":"justify-end"}`,children:g.jsx(st.div,{variants:d,initial:"initial",animate:"animate",exit:"exit",className:`
|
|
720
712
|
relative bg-white shadow-2xl h-full overflow-hidden flex flex-col pointer-events-auto
|
|
721
|
-
${
|
|
722
|
-
`,style:{width:typeof a=="number"?`${a}px`:a},onClick:
|
|
713
|
+
${s}
|
|
714
|
+
`,style:{width:typeof a=="number"?`${a}px`:a},onClick:m=>{m.preventDefault(),m.stopPropagation()},children:n})})]})});return u&&typeof document<"u"&&document.body?Ep.createPortal(p,document.body):p},$N=({filters:e})=>{const[t,n]=O.useState(!1),r=()=>n(!1),s=()=>n(!0);return g.jsx(gs,{open:t,onClose:r,placement:"bottom-start",className:"w-[326px] shadow-md px-0! text-base! py-12!",component:g.jsxs("div",{className:"relative flex flex-col gap-[10px]",children:[g.jsx("h4",{className:"px-24 text-lg font-semibold text-blue-900",children:"Filtros"}),g.jsx("div",{className:"flex flex-col",children:e.map((o,a)=>g.jsxs("div",{className:"group flex gap-[8px] items-center px-[24px] py-[8px] hover:bg-blue-100 cursor-pointer transition ease-in-out",onClick:o.onClick,children:[g.jsx(Pe,{icon:o.icon,className:"text-[14px] text-gray-600 group-hover:text-blue-500"}),g.jsx("p",{className:"text-[12px] text-gray-500 font-semibold group-hover:text-gray-800",children:o.label})]},a))})]}),children:g.jsx(Pe,{icon:LE,onClick:s,className:"transition text-[16px] ease-in-out duration-150 hover:text-gray-600 cursor-pointer"})})},_N=({label:e,options:t,selectedValues:n,onUpdate:r,placeholder:s="Seleccionar opciones",allowSearch:o=!0,className:a="",disabled:c=!1,size:u="md"})=>{var ue;const[d,h]=O.useState(!1),[p,m]=O.useState(""),x=O.useRef(null),S=O.useRef(null),T={sm:{container:"px-16 py-8",text:"text-sm",label:"text-sm",icon:"w-12 h-12",checkboxSize:16,gap:"gap-8",searchText:"text-sm",searchIcon:"size-12"},md:{container:"p-16",text:"text-14",label:"text-14",icon:"w-16 h-16",checkboxSize:20,gap:"gap-8",searchText:"text-14",searchIcon:"size-16"}}[u],{x:v,y:A,strategy:C,refs:I,context:P}=ir({open:d&&!c,onOpenChange:Y=>!c&&h(Y),middleware:[er(8),nr(),tr({padding:8}),Rr({apply({availableHeight:Y,elements:z}){Object.assign(z.floating.style,{maxHeight:`${Math.min(Y-10,500)}px`})},padding:8}),ms({element:S})],placement:"bottom-start",whileElementsMounted:Qn}),D=rr(P,{enabled:!c}),R=sr(P),{getReferenceProps:F,getFloatingProps:W}=or([D,R]),{isMounted:Q,styles:ee}=ar(P,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ae=O.useCallback((Y,z)=>{if(c)return;let K;z?K=n.includes(Y)?n:[...n,Y]:K=n.filter($=>$!==Y),r(K)},[n,r,c]),ge=t.filter(Y=>Y.label.toLowerCase().includes(p.toLowerCase())),de=()=>{if(n.length===0)return s;const Y=t.filter(z=>n.includes(z.value)).map(z=>z.label);return Y.length===1?Y[0]:`${Y.length} seleccionados`},le=F({onClick:()=>!c&&h(!d)});return g.jsxs("div",{className:`flex flex-col select-none ${T.gap} ${c?"cursor-not-allowed":""} ${a}`,children:[e&&g.jsx("h6",{className:`text-gray-600 font-600 ${T.label} ${c?"text-gray-300":""}`,children:e}),g.jsxs("div",{ref:I.setReference,className:`
|
|
715
|
+
flex items-center justify-between rounded-full border transition-all duration-200
|
|
716
|
+
${T.container}
|
|
717
|
+
${c?"bg-gray-50 border-gray-200 cursor-not-allowed":"bg-blue-50 cursor-pointer"}
|
|
718
|
+
${!c&&(d?"border-blue-500":"border-blue-100 hover:border-blue-300")}
|
|
719
|
+
`,...le,children:[g.jsx("span",{className:`flex-grow text-left truncate font-600 ${T.text} ${c?"text-gray-300":"text-gray-500"}`,children:de()}),g.jsx("svg",{className:`${T.icon} transition-transform ${d?"rotate-180":""} ${c?"text-gray-300":"text-gray-500"}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),Q&&!c&&g.jsxs("div",{ref:I.setFloating,style:{position:C,top:A??0,left:v??0,...ee,width:(ue=I.reference.current)==null?void 0:ue.clientWidth,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...W(),children:[o&&g.jsx("div",{className:"sticky top-0 bg-white p-8 border-b border-gray-100 z-20",children:g.jsxs("div",{className:"relative",children:[g.jsx("div",{className:"absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none",children:g.jsx("svg",{className:`${T.searchIcon} text-gray-400`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),g.jsx("input",{ref:x,type:"text",className:`w-full py-6 pl-36 pr-12 rounded-full focus:outline-none bg-gray-50 ${T.searchText}`,placeholder:"Buscar...",value:p,onChange:Y=>m(Y.target.value),onClick:Y=>Y.stopPropagation(),autoFocus:!0}),p&&g.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:Y=>{Y.stopPropagation(),m("")},children:g.jsx("svg",{className:"h-16 w-16 text-gray-400 hover:text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]})}),g.jsx("div",{className:"max-h-[450px] overflow-y-auto",children:ge.length>0?g.jsx("div",{className:"py-4",children:ge.map(Y=>{var K,$,k;const z=n.includes(Y.value);return g.jsxs(O.Fragment,{children:[Y.dividerBefore&&g.jsx("div",{className:"px-16 py-8",children:g.jsx("hr",{className:"border-t border-gray-200"})}),g.jsxs("div",{className:"flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer gap-12",onClick:()=>ae(Y.value,!z),children:[g.jsx(Kd,{active:z,size:T.checkboxSize,variant:"square",className:"flex-shrink-0"}),g.jsxs("div",{className:`flex items-center rounded-[8px] py-4 px-8 gap-[6px] overflow-hidden ${((K=Y.colors)==null?void 0:K.bgColor)||""} ${(($=Y.colors)==null?void 0:$.textColor)||""}`,children:[((k=Y.colors)==null?void 0:k.dotColor)&&g.jsx("span",{className:"size-6 rounded-full flex-shrink-0",style:{background:Y.colors.dotColor}}),g.jsx("span",{className:`${T.text} font-semibold truncate`,children:Y.label})]})]})]},Y.value)})}):g.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[g.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),g.jsxs("p",{className:"mt-8 text-body-s",children:["No se encontraron resultados para “",p,"”"]})]})})]})]})},IN=({label:e,options:t,selectedValue:n=null,onUpdate:r,placeholder:s="Seleccionar opción",allowSearch:o=!0,className:a="",disabled:c=!1,size:u="md",showRadio:d=!1})=>{var Y,z,K,$;const[h,p]=O.useState(!1),[m,x]=O.useState(""),S=O.useRef(null),b=O.useRef(null),v={sm:{container:"px-16 py-8",text:"text-sm",label:"text-sm",icon:"w-12 h-12",checkboxSize:16,gap:"gap-8",searchText:"text-sm",searchIcon:"size-12"},md:{container:"p-16",text:"text-14",label:"text-14",icon:"w-16 h-16",checkboxSize:20,gap:"gap-8",searchText:"text-14",searchIcon:"size-16"}}[u],{x:A,y:C,strategy:I,refs:P,context:D}=ir({open:h&&!c,onOpenChange:k=>!c&&p(k),middleware:[er(8),nr(),tr({padding:8}),Rr({apply({availableHeight:k,elements:X}){Object.assign(X.floating.style,{maxHeight:`${Math.min(k-10,500)}px`})},padding:8}),ms({element:b})],placement:"bottom-start",whileElementsMounted:Qn}),R=rr(D,{enabled:!c}),F=sr(D),{getReferenceProps:W,getFloatingProps:Q}=or([R,F]),{isMounted:ee,styles:ae}=ar(D,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ge=t.find(k=>k.value===n),de=k=>{c||(r(n===k?null:k),p(!1),x(""))},le=t.filter(k=>k.label.toLowerCase().includes(m.toLowerCase())),ue=W({onClick:()=>!c&&p(!h)});return g.jsxs("div",{className:`flex flex-col select-none ${v.gap} ${c?"cursor-not-allowed":""} ${a}`,children:[e&&g.jsx("h6",{className:`text-gray-600 font-600 ${v.label} ${c?"text-gray-300":""}`,children:e}),g.jsxs("div",{ref:P.setReference,className:`
|
|
720
|
+
flex items-center justify-between rounded-full border transition-all duration-200
|
|
721
|
+
${v.container}
|
|
722
|
+
${c?"bg-gray-50 border-gray-200 cursor-not-allowed":"bg-blue-50 cursor-pointer"}
|
|
723
|
+
${!c&&(h?"border-blue-500":"border-blue-100 hover:border-blue-300")}
|
|
724
|
+
`,...ue,children:[ge?g.jsxs("div",{className:`flex items-center gap-[6px] overflow-hidden ${((Y=ge.colors)==null?void 0:Y.bgColor)||""} ${((z=ge.colors)==null?void 0:z.textColor)||""} ${ge.colors?"rounded-[8px] py-4 px-8":""}`,children:[((K=ge.colors)==null?void 0:K.dotColor)&&g.jsx("span",{className:"size-6 rounded-full flex-shrink-0",style:{background:ge.colors.dotColor}}),g.jsx("span",{className:`${v.text} font-semibold truncate`,children:ge.label})]}):g.jsx("span",{className:`flex-grow text-left truncate font-600 ${v.text} ${c?"text-gray-300":"text-gray-500"}`,children:s}),g.jsx("svg",{className:`${v.icon} transition-transform ${h?"rotate-180":""} ${c?"text-gray-300":"text-gray-500"}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),ee&&!c&&g.jsxs("div",{ref:P.setFloating,style:{position:I,top:C??0,left:A??0,...ae,width:($=P.reference.current)==null?void 0:$.clientWidth,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...Q(),children:[o&&g.jsx("div",{className:"sticky top-0 bg-white p-8 border-b border-gray-100 z-20",children:g.jsxs("div",{className:"relative",children:[g.jsx("div",{className:"absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none",children:g.jsx("svg",{className:`${v.searchIcon} text-gray-400`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),g.jsx("input",{ref:S,type:"text",className:`w-full py-6 pl-36 pr-12 rounded-full focus:outline-none bg-gray-50 ${v.searchText}`,placeholder:"Buscar...",value:m,onChange:k=>x(k.target.value),onClick:k=>k.stopPropagation(),autoFocus:!0}),m&&g.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:k=>{k.stopPropagation(),x("")},children:g.jsx("svg",{className:"h-16 w-16 text-gray-400 hover:text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]})}),g.jsx("div",{className:"max-h-[450px] overflow-y-auto",children:le.length>0?g.jsx("div",{className:"py-4",children:le.map(k=>{var U,re,B;const X=n===k.value;return g.jsxs(O.Fragment,{children:[k.dividerBefore&&g.jsx("div",{className:"px-16 py-8",children:g.jsx("hr",{className:"border-t border-gray-200"})}),g.jsxs("div",{className:"flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer gap-12",onClick:()=>de(k.value),children:[d&&g.jsx(Kd,{active:X,size:v.checkboxSize,variant:"rounded",className:"flex-shrink-0"}),g.jsxs("div",{className:`flex items-center rounded-[8px] py-4 px-8 gap-[6px] overflow-hidden ${((U=k.colors)==null?void 0:U.bgColor)||""} ${((re=k.colors)==null?void 0:re.textColor)||""}`,children:[((B=k.colors)==null?void 0:B.dotColor)&&g.jsx("span",{className:"size-6 rounded-full flex-shrink-0",style:{background:k.colors.dotColor}}),g.jsx("span",{className:`${v.text} font-semibold truncate`,children:k.label})]})]})]},k.value)})}):g.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[g.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),g.jsxs("p",{className:"mt-8 text-body-s",children:["No se encontraron resultados para “",m,"”"]})]})})]})]})},DN=({image:e,title:t,subtitle:n,className:r=""})=>g.jsxs("div",{className:`flex flex-col items-center justify-center gap-24 p-8 text-center w-full h-full min-h-[300px] ${r}`,children:[e&&g.jsx("img",{src:e,alt:t,draggable:!1,className:"select-none"}),g.jsxs("div",{className:"space-y-16 max-w-[300px] select-none",children:[g.jsx("h3",{className:"text-[20px] font-bold text-blue-900 tracking-wide leading-[100%]",children:t}),g.jsx("p",{className:"text-base text-gray-500 max-w-sm leading-[150%]",children:n})]})]}),NN=({text:e,children:t,icon:n,location:r="top",childClassName:s=""})=>{const[o,a]=O.useState(!1),c=O.useRef(null),u={top:"bottom-full left-1/2 -translate-x-1/2 mb-2 flex-col",bottom:"top-full left-1/2 -translate-x-1/2 mt-2 flex-col-reverse",left:"right-full top-1/2 -translate-y-1/2 mr-2 flex-row",right:"left-full top-1/2 -translate-y-1/2 ml-2 flex-row-reverse"},d={top:"border-l-[8px] border-l-transparent border-r-[8px] border-r-transparent border-t-[8px] border-t-gray-700",bottom:"border-l-[8px] border-l-transparent border-r-[8px] border-r-transparent border-b-[8px] border-b-gray-700",left:"border-t-[8px] border-t-transparent border-b-[8px] border-b-transparent border-l-[8px] border-l-gray-700",right:"border-t-[8px] border-t-transparent border-b-[8px] border-b-transparent border-r-[8px] border-r-gray-700"},h=()=>{const p=c.current;if(p){const m=p.scrollWidth>p.offsetWidth;a(m)}};return O.useLayoutEffect(()=>(h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)),[e,t]),g.jsxs("div",{className:"group relative grid min-w-0 w-full",children:[g.jsx("div",{ref:c,className:`truncate ${s}`,children:t}),o&&g.jsxs("div",{className:`pointer-events-none absolute flex items-center opacity-0 transition-opacity group-hover:opacity-100 z-50 ${u[r]}`,children:[g.jsx("div",{className:"bg-gray-700 p-12 rounded-[8px] shadow-xl max-w-[320px] w-max border border-gray-700/50",children:g.jsxs("div",{className:`flex items-start ${n?"gap-8":"justify-center"}`,children:[n&&g.jsx("div",{className:"flex items-center h-[16px] flex-shrink-0",children:g.jsx(Pe,{icon:n,className:"text-[16px] text-gray-100"})}),g.jsx("p",{className:"text-[12px] text-blue-50 leading-[16px] font-normal text-left",children:e})]})}),g.jsx("div",{className:`w-0 h-0 ${d[r]}`})]})]})},kN=()=>{const[e,t]=O.useState([]),n=O.useRef([]),r=O.useCallback(a=>{const c={...a,id:(a==null?void 0:a.id)||hf.uniqueId(),open:!0,type:(a==null?void 0:a.type)||"center",props:{...a.props,open:!0,onClose:()=>o(a.id||hf.uniqueId())}};n.current=[...n.current,c],t(n.current)},[]),s=O.useCallback(a=>{const c=hf.uniqueId(),u={id:c,open:!0,onClose:()=>{o(c)},type:"custom",component:a};n.current=[...n.current,u],t(n.current)},[]),o=O.useCallback(a=>{n.current=n.current.map(c=>c.id===a?{...c,open:!1}:c),t(n.current),setTimeout(()=>{n.current=n.current.filter(c=>c.id!==a),t(n.current)},150)},[]);return O.useEffect(()=>{window.openModal=r,window.closeModal=o,window.openCustomModal=s},[r,o,s]),g.jsx(g.Fragment,{children:e.map(a=>{if(a.type==="custom"&&(a!=null&&a.component)){const{open:u,onClose:d,component:h}=a;return h(u,d)}if(a.type==="dialog"){const{props:u}=a;return g.jsx(Qb,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}if(a.type==="alert"){const{props:u}=a;return g.jsx(bb,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}const{props:c}=a;return g.jsx(d2,{...c,open:a.open,onClose:()=>o(a.id),children:typeof c.children=="function"?c.children(()=>o(a.id)):c.children},a.id)})})};function jN(e){var t;(t=window==null?void 0:window.openModal)==null||t.call(window,e)}function LN(e){var t;(t=window==null?void 0:window.openCustomModal)==null||t.call(window,e)}function RN(e){var t;(t=window==null?void 0:window.closeModal)==null||t.call(window,e)}function FN(e,t,n){const r=t[e];if(O.isValidElement(r)&&typeof r.type!="string")return O.cloneElement(r,n);if(typeof r=="function"){const s=r;return g.jsx(s,{...n})}return r??g.jsx("div",{children:"no content"})}const Hd=[];function l2(e="bottom-center"){var t;if(!Hd.find(n=>n.id===e)){const n=document.createElement("div");switch(n.classList.add("fixed","z-[99999]","flex","flex-col","items-center","w-fit","min-w-[18rem]"),n.style.setProperty("z-index","99999"),e){case"top-left":n.classList.add("top-8","left-8");break;case"top-right":n.classList.add("top-8","right-8");break;case"bottom-left":n.classList.add("bottom-8","left-8");break;case"bottom-right":n.classList.add("bottom-8","right-8");break;case"top-center":n.classList.add("top-8","left-1/2","-translate-x-1/2");break;case"bottom-center":default:n.classList.add("bottom-8","left-1/2","-translate-x-1/2")}Hd.push({id:e,element:n}),document.body.appendChild(n)}return(t=Hd.find(n=>n.id===e))==null?void 0:t.element}function cl(e,t="success",{position:n="top-right",duration:r=3e3}={}){import("react-dom/client").then(({createRoot:s})=>{const o=l2(n);if(!o)return;const a=document.createElement("div"),c=s(a),u=()=>{c.unmount(),o.removeChild(a)};c.render(g.jsx(ff,{content:e,type:t,duration:r,onClose:u})),o.prepend(a),setTimeout(()=>{a.classList.add("mt-[0.5rem]")},10)})}const qd=(e,t,n={})=>{import("react-dom/client").then(({createRoot:r})=>{const s=l2(n.position);if(!s)return;const o=document.createElement("div"),a=r(o),c=()=>{a.unmount(),s.removeChild(o)};a.render(g.jsx(tx,{promise:e,messages:t,options:n,onClose:c})),s.prepend(o),setTimeout(()=>{o.classList.add("mt-[0.5rem]")},10)})},c2=(e,t={})=>{let n=()=>{},r=()=>{};const s=new Promise((o,a)=>{n=o,r=a});return qd(s,e,t),{resolve:o=>{typeof o=="string"&&(e.success={title:"Success",description:o}),n(o)},reject:o=>{typeof o=="string"&&(e.error={title:"Error",description:o}),r(o)}}},VN={success:(e,t={})=>cl(e,"success",t),error:(e,t={})=>cl(e,"error",t),warning:(e,t={})=>cl(e,"warning",t),notification:(e,t={})=>cl(e,"notification",t),async:(e,t,n={})=>qd(e,t,n),loading:(e,t={})=>c2(e,t)},u2=({containerProps:e={},imageProps:t={},src:n="",alt:r="",size:s=30,user:o=null})=>{const{className:a=" ",...c}=e,{className:u=" ",...d}=t,h=s+"px",p=s*.5+"px",m=s*.4+"px",[x,S]=O.useState(!1),b=()=>r?df(r):o?df(o!=null&&o.first_name||o!=null&&o.last_name?((o==null?void 0:o.first_name)||"")+" "+((o==null?void 0:o.last_name)||""):o==null?void 0:o.email):"#9CA1B6",T=P=>{try{return P?(new URL(P),!0):!1}catch(D){return console.log(D),!1}},v=()=>T(n)?n:o!=null&&o.image&&T(o.image)?o.image:o!=null&&o.image?Sx(o.image):"",A=()=>r?g.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:m},children:r}):o?g.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:m},children:o!=null&&o.first_name||o!=null&&o.last_name?((o==null?void 0:o.first_name)||" ")[0]+((o==null?void 0:o.last_name)||" ")[0]:((o==null?void 0:o.email)||" ")[0]}):g.jsx(Pe,{style:{maxWidth:p,maxHeight:p,minWidth:p,minHeight:p},icon:m4,className:"w-full text-white"}),C=()=>{S(!0)},I=v();return g.jsxs("div",{className:"flex items-center justify-center rounded-full overflow-hidden h-full relative "+a,style:{maxWidth:h,maxHeight:h,minWidth:h,minHeight:h,backgroundColor:b()},...c,children:[I&&!x&&g.jsx("img",{src:I,alt:r,className:`
|
|
723
725
|
object-cover w-full h-full text-center indent-[10000px] absolute
|
|
724
726
|
z-10
|
|
725
727
|
${u}
|
|
726
|
-
`,onError:
|
|
728
|
+
`,onError:C,...d}),g.jsx("div",{className:`
|
|
727
729
|
flex items-center justify-center leading-none text-center absolute
|
|
728
|
-
`,style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},children:C()})]})},x2=({className:e="",direction:t="horizontal"})=>t==="horizontal"?y.jsx("hr",{className:`w-full min-h-1 max-h-1 bg-blue-100 border-blue-100 ${e}`}):y.jsx("hr",{className:`h-full min-w-1 max-w-1 bg-blue-100 border-blue-100 ${e}`}),b2=({open:e,onClose:t,title:n,children:r,className:i="",showCloseButton:o=!0})=>{const a={hidden:{opacity:0},visible:{opacity:1}},c={hidden:{opacity:0,scale:.9},visible:{opacity:1,scale:1,transition:{duration:.15}},exit:{opacity:0,scale:.9,transition:{duration:.15}}};return y.jsx(vn,{children:e&&y.jsx(y.Fragment,{children:y.jsx(Ge.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:a,onClick:t,children:y.jsx(Ge.div,{className:`w-full max-w-lg mx-16 z-50 ${i}`,variants:c,initial:"hidden",animate:"visible",exit:"exit",onClick:u=>u.stopPropagation(),children:y.jsxs(Ss,{className:`flex flex-col ${n&&"gap-16 md:gap-24"} p-0!`,children:[y.jsxs("div",{className:"flex flex-col gap-16 md:gap-24 md:p-32 pb-0!",children:[y.jsxs("div",{className:"flex justify-between items-center px-16 pt-16 md:px-0 md:pt-0",children:[n&&y.jsx("h2",{className:"text-black font-700 text-2xl",children:n}),o&&y.jsx(Pe,{icon:nu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700 ml-auto",onClick:t})]}),n&&y.jsx(x2,{className:"bg-gray-100!"})]}),y.jsx("div",{className:"flex flex-col gap-16 md:gap-24 p-16 pt-0 md:p-32 md:pt-4",children:typeof r=="function"?r(t):r})]})})})})})},QN=({active:e,color:t="blue",variant:n="rounded",className:r,size:i=16,...o})=>{const a={blue:"border-blue-500 bg-blue-500",aqua:"border-aqua-500 bg-aqua-500",red:"border-red-500 bg-red-500",gray:"border-gray-500 bg-gray-500"}[t],c={rounded:"rounded-full",square:"rounded-md"}[n],u=d=>({width:`${d}px`,height:`${d}px`,minWidth:`${d}px`,minHeight:`${d}px`});return y.jsx("div",{className:`relative transition-colors ease-in-out duration-150 flex items-center justify-center ${c} border-[1.5px] bg-white ${e?a:"border-gray-400"} ${r}`,style:u(i),...o,children:y.jsx("div",{className:`absolute transition-colors ease-in-out duration-150 ${c} size-12 ${e?a:""}`,style:u(i*.7)})})};var ih,w2;function ek(){if(w2)return ih;w2=1;function e(b){this._maxSize=b,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(b){return this._values[b]},e.prototype.set=function(b,C){return this._size>=this._maxSize&&this.clear(),b in this._values||this._size++,this._values[b]=C};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,a=512,c=new e(a),u=new e(a),d=new e(a);ih={Cache:e,split:m,normalizePath:h,setter:function(b){var C=h(b);return u.get(b)||u.set(b,function($,A){for(var D=0,R=C.length,j=$;D<R-1;){var V=C[D];if(V==="__proto__"||V==="constructor"||V==="prototype")return $;j=j[C[D++]]}j[C[D]]=A})},getter:function(b,C){var E=h(b);return d.get(b)||d.set(b,function(A){for(var D=0,R=E.length;D<R;)if(A!=null||!C)A=A[E[D++]];else return;return A})},join:function(b){return b.reduce(function(C,E){return C+(v(E)||n.test(E)?"["+E+"]":(C?".":"")+E)},"")},forEach:function(b,C,E){p(Array.isArray(b)?b:m(b),C,E)}};function h(b){return c.get(b)||c.set(b,m(b).map(function(C){return C.replace(o,"$2")}))}function m(b){return b.match(t)||[""]}function p(b,C,E){var $=b.length,A,D,R,j;for(D=0;D<$;D++)A=b[D],A&&(T(A)&&(A='"'+A+'"'),j=v(A),R=!j&&/^\d+$/.test(A),C.call(E,A,j,R,D,b))}function v(b){return typeof b=="string"&&b&&["'",'"'].indexOf(b.charAt(0))!==-1}function S(b){return b.match(r)&&!b.match(n)}function x(b){return i.test(b)}function T(b){return!v(b)&&(S(b)||x(b))}return ih}var Si=ek(),sh,S2;function tk(){if(S2)return sh;S2=1;const e=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,t=h=>h.match(e)||[],n=h=>h[0].toUpperCase()+h.slice(1),r=(h,m)=>t(h).join(m).toLowerCase(),i=h=>t(h).reduce((m,p)=>`${m}${m?p[0].toUpperCase()+p.slice(1).toLowerCase():p.toLowerCase()}`,"");return sh={words:t,upperFirst:n,camelCase:i,pascalCase:h=>n(i(h)),snakeCase:h=>r(h,"_"),kebabCase:h=>r(h,"-"),sentenceCase:h=>n(r(h," ")),titleCase:h=>t(h).map(n).join(" ")},sh}var oh=tk(),hl={exports:{}},T2;function nk(){if(T2)return hl.exports;T2=1,hl.exports=function(i){return e(t(i),i)},hl.exports.array=e;function e(i,o){var a=i.length,c=new Array(a),u={},d=a,h=n(o),m=r(i);for(o.forEach(function(v){if(!m.has(v[0])||!m.has(v[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});d--;)u[d]||p(i[d],d,new Set);return c;function p(v,S,x){if(x.has(v)){var T;try{T=", node was:"+JSON.stringify(v)}catch{T=""}throw new Error("Cyclic dependency"+T)}if(!m.has(v))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(v));if(!u[S]){u[S]=!0;var b=h.get(v)||new Set;if(b=Array.from(b),S=b.length){x.add(v);do{var C=b[--S];p(C,m.get(C),x)}while(S);x.delete(v)}c[--a]=v}}}function t(i){for(var o=new Set,a=0,c=i.length;a<c;a++){var u=i[a];o.add(u[0]),o.add(u[1])}return Array.from(o)}function n(i){for(var o=new Map,a=0,c=i.length;a<c;a++){var u=i[a];o.has(u[0])||o.set(u[0],new Set),o.has(u[1])||o.set(u[1],new Set),o.get(u[0]).add(u[1])}return o}function r(i){for(var o=new Map,a=0,c=i.length;a<c;a++)o.set(i[a],a);return o}return hl.exports}var rk=nk();const ik=Nm(rk),sk=Object.prototype.toString,ok=Error.prototype.toString,ak=RegExp.prototype.toString,lk=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",ck=/^Symbol\((.*)\)(.*)$/;function uk(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function E2(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return uk(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return lk.call(e).replace(ck,"Symbol($1)");const r=sk.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+ok.call(e)+"]":r==="RegExp"?ak.call(e):null}function Vr(e,t){let n=E2(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let o=E2(this[r],t);return o!==null?o:i},2)}function C2(e){return e==null?[]:[].concat(e)}let P2,A2,M2,fk=/\$\{\s*(\w+)\s*\}/g;P2=Symbol.toStringTag;class O2{constructor(t,n,r,i){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[P2]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],C2(t).forEach(o=>{if(jt.isError(o)){this.errors.push(...o.errors);const a=o.inner.length?o.inner:[o];this.inner.push(...a)}else this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}A2=Symbol.hasInstance,M2=Symbol.toStringTag;class jt extends Error{static formatError(t,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof t=="string"?t.replace(fk,(i,o)=>Vr(n[o])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i,o){const a=new O2(t,n,r,i);if(o)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[M2]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,jt)}static[A2](t){return O2[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Bn={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${Vr(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Vr(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${Vr(n,!0)}\``+i}},Ft={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},dk={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},ah={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},hk={isValue:"${path} field must be ${value}"},ml={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:Bn,string:Ft,number:dk,date:ah,object:ml,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:hk,tuple:{notType:e=>{const{path:t,value:n,spec:r}=e,i=r.types.length;if(Array.isArray(n)){if(n.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${n.length} for value: \`${Vr(n,!0)}\``;if(n.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${n.length} for value: \`${Vr(n,!0)}\``}return jt.formatError(Bn.notType,e)}}});const lh=e=>e&&e.__isYupSchema__;class pl{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:o}=n,a=typeof r=="function"?r:(...c)=>c.every(u=>u===r);return new pl(t,(c,u)=>{var d;let h=a(...c)?i:o;return(d=h==null?void 0:h(u))!=null?d:u})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(o=>o.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!lh(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const gl={context:"$",value:"."};class Ti{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===gl.context,this.isValue=this.key[0]===gl.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?gl.context:this.isValue?gl.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Si.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let i=this.isContext?r:this.isValue?t:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Ti.prototype.__isYupRef=!0;const Ei=e=>e==null;function Ts(e){function t({value:n,path:r="",options:i,originalValue:o,schema:a},c,u){const{name:d,test:h,params:m,message:p,skipAbsent:v}=e;let{parent:S,context:x,abortEarly:T=a.spec.abortEarly,disableStackTrace:b=a.spec.disableStackTrace}=i;function C(ee){return Ti.isRef(ee)?ee.getValue(n,S,x):ee}function E(ee={}){const se=Object.assign({value:n,originalValue:o,label:a.spec.label,path:ee.path||r,spec:a.spec,disableStackTrace:ee.disableStackTrace||b},m,ee.params);for(const ue of Object.keys(se))se[ue]=C(se[ue]);const ge=new jt(jt.formatError(ee.message||p,se),n,se.path,ee.type||d,se.disableStackTrace);return ge.params=se,ge}const $=T?c:u;let A={path:r,parent:S,type:d,from:i.from,createError:E,resolve:C,options:i,originalValue:o,schema:a};const D=ee=>{jt.isError(ee)?$(ee):ee?u(null):$(E())},R=ee=>{jt.isError(ee)?$(ee):c(ee)};if(v&&Ei(n))return D(!0);let V;try{var Z;if(V=h.call(A,n,A),typeof((Z=V)==null?void 0:Z.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${A.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(V).then(D,R)}}catch(ee){R(ee);return}D(V)}return t.OPTIONS=e,t}function mk(e,t,n,r=n){let i,o,a;return t?(Si.forEach(t,(c,u,d)=>{let h=u?c.slice(1,c.length-1):c;e=e.resolve({context:r,parent:i,value:n});let m=e.type==="tuple",p=d?parseInt(h,10):0;if(e.innerType||m){if(m&&!d)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&p>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${c}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[p],e=m?e.spec.types[p]:e.innerType}if(!d){if(!e.fields||!e.fields[h])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);i=n,n=n&&n[h],e=e.fields[h]}o=h,a=u?"["+c+"]":"."+c}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}class yl extends Set{describe(){const t=[];for(const n of this.values())t.push(Ti.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new yl(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function Es(e,t=new Map){if(lh(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=Es(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,i]of e.entries())n.set(r,Es(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Es(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=Es(i,t)}else throw Error(`Unable to clone ${e}`);return n}class Wn{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new yl,this._blacklist=new yl,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Bn.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Es(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(o=>{t.tests.forEach(a=>{o.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,o)=>o.resolve(i,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,i,o;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive,disableStackTrace:(o=t.disableStackTrace)!=null?o:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),i=n.assert==="ignore-optionality",o=r._cast(t,n);if(n.assert!==!1&&!r.isType(o)){if(i&&Ei(o))return o;let a=Vr(t),c=Vr(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
730
|
+
`,style:{maxWidth:p,maxHeight:p,minWidth:p,minHeight:p},children:A()})]})},f2=({className:e="",direction:t="horizontal"})=>t==="horizontal"?g.jsx("hr",{className:`w-full min-h-1 max-h-1 bg-blue-100 border-blue-100 ${e}`}):g.jsx("hr",{className:`h-full min-w-1 max-w-1 bg-blue-100 border-blue-100 ${e}`}),d2=({open:e,onClose:t,title:n,children:r,className:s="",showCloseButton:o=!0})=>{const a={hidden:{opacity:0},visible:{opacity:1}},c={hidden:{opacity:0,scale:.9},visible:{opacity:1,scale:1,transition:{duration:.15}},exit:{opacity:0,scale:.9,transition:{duration:.15}}};return g.jsx(qn,{children:e&&g.jsx(g.Fragment,{children:g.jsx(st.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:a,onClick:t,children:g.jsx(st.div,{className:`w-full max-w-lg mx-16 z-50 ${s}`,variants:c,initial:"hidden",animate:"visible",exit:"exit",onClick:u=>u.stopPropagation(),children:g.jsxs(yi,{className:`flex flex-col ${n&&"gap-16 md:gap-24"} p-0!`,children:[g.jsxs("div",{className:"flex flex-col gap-16 md:gap-24 md:p-32 pb-0!",children:[g.jsxs("div",{className:"flex justify-between items-center px-16 pt-16 md:px-0 md:pt-0",children:[n&&g.jsx("h2",{className:"text-black font-700 text-2xl",children:n}),o&&g.jsx(Pe,{icon:pf,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700 ml-auto",onClick:t})]}),n&&g.jsx(f2,{className:"bg-gray-100!"})]}),g.jsx("div",{className:"flex flex-col gap-16 md:gap-24 p-16 pt-0 md:p-32 md:pt-4",children:typeof r=="function"?r(t):r})]})})})})})},Kd=({active:e=!1,variant:t="rounded",color:n="blue",size:r=20,disabled:s=!1,onClick:o,className:a="",...c})=>{const u=!!e,d=x=>{s||o&&o(x)},h={blue:u?"bg-blue-500 border-blue-500":"bg-white border-gray-300 hover:border-blue-400",aqua:u?"bg-aqua-500 border-aqua-500":"bg-white border-gray-300 hover:border-aqua-400",red:u?"bg-red-500 border-red-500":"bg-white border-gray-300 hover:border-red-400",gray:u?"bg-gray-500 border-gray-500":"bg-white border-gray-300 hover:border-gray-400"},p=u?"bg-gray-400 border-gray-400 opacity-60":"bg-gray-100 border-gray-300 opacity-60",m=t==="rounded"?"rounded-full":"rounded-md";return g.jsx("div",{className:`
|
|
731
|
+
relative flex items-center justify-center border-[1.5px] transition-all duration-150
|
|
732
|
+
${m}
|
|
733
|
+
${s?"cursor-not-allowed":"cursor-pointer"}
|
|
734
|
+
${s?p:h[n]}
|
|
735
|
+
${a}
|
|
736
|
+
`,style:{width:`${r}px`,height:`${r}px`,minWidth:`${r}px`,minHeight:`${r}px`},onClick:d,...c,children:u&&g.jsx(Pe,{icon:wb,className:"text-white",style:{fontSize:`${r*.6}px`}})})},BN=({bgColor:e="bg-green-100",textColor:t="text-green-700",label:n="Completed",labelClassName:r="",className:s="",size:o="sm",showDot:a=!1,style:c={}})=>g.jsxs("div",{className:`flex items-center justify-center rounded-[6px] ${o==="md"?"py-8 px-12":"py-4 px-8"} text-center text-nowrap h-fit w-fit ${a?"gap-[6px]":""} ${e} ${t} ${s}`,style:c,children:[a&&g.jsx(Pe,{icon:zD,className:"text-[6px]"}),g.jsx("div",{className:`font-semibold ${o==="md"?"text-[16px] leading-[22px]":"text-[12px] leading-[16px]"} ${r}`,children:n})]});var Xd,h2;function WN(){if(h2)return Xd;h2=1;function e(v){this._maxSize=v,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(v){return this._values[v]},e.prototype.set=function(v,A){return this._size>=this._maxSize&&this.clear(),v in this._values||this._size++,this._values[v]=A};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,s=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,a=512,c=new e(a),u=new e(a),d=new e(a);Xd={Cache:e,split:p,normalizePath:h,setter:function(v){var A=h(v);return u.get(v)||u.set(v,function(I,P){for(var D=0,R=A.length,F=I;D<R-1;){var W=A[D];if(W==="__proto__"||W==="constructor"||W==="prototype")return I;F=F[A[D++]]}F[A[D]]=P})},getter:function(v,A){var C=h(v);return d.get(v)||d.set(v,function(P){for(var D=0,R=C.length;D<R;)if(P!=null||!A)P=P[C[D++]];else return;return P})},join:function(v){return v.reduce(function(A,C){return A+(x(C)||n.test(C)?"["+C+"]":(A?".":"")+C)},"")},forEach:function(v,A,C){m(Array.isArray(v)?v:p(v),A,C)}};function h(v){return c.get(v)||c.set(v,p(v).map(function(A){return A.replace(o,"$2")}))}function p(v){return v.match(t)||[""]}function m(v,A,C){var I=v.length,P,D,R,F;for(D=0;D<I;D++)P=v[D],P&&(T(P)&&(P='"'+P+'"'),F=x(P),R=!F&&/^\d+$/.test(P),A.call(C,P,F,R,D,v))}function x(v){return typeof v=="string"&&v&&["'",'"'].indexOf(v.charAt(0))!==-1}function S(v){return v.match(r)&&!v.match(n)}function b(v){return s.test(v)}function T(v){return!x(v)&&(S(v)||b(v))}return Xd}var xs=WN(),Zd,p2;function UN(){if(p2)return Zd;p2=1;const e=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,t=h=>h.match(e)||[],n=h=>h[0].toUpperCase()+h.slice(1),r=(h,p)=>t(h).join(p).toLowerCase(),s=h=>t(h).reduce((p,m)=>`${p}${p?m[0].toUpperCase()+m.slice(1).toLowerCase():m.toLowerCase()}`,"");return Zd={words:t,upperFirst:n,camelCase:s,pascalCase:h=>n(s(h)),snakeCase:h=>r(h,"_"),kebabCase:h=>r(h,"-"),sentenceCase:h=>n(r(h," ")),titleCase:h=>t(h).map(n).join(" ")},Zd}var Jd=UN(),ul={exports:{}},m2;function zN(){if(m2)return ul.exports;m2=1,ul.exports=function(s){return e(t(s),s)},ul.exports.array=e;function e(s,o){var a=s.length,c=new Array(a),u={},d=a,h=n(o),p=r(s);for(o.forEach(function(x){if(!p.has(x[0])||!p.has(x[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});d--;)u[d]||m(s[d],d,new Set);return c;function m(x,S,b){if(b.has(x)){var T;try{T=", node was:"+JSON.stringify(x)}catch{T=""}throw new Error("Cyclic dependency"+T)}if(!p.has(x))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(x));if(!u[S]){u[S]=!0;var v=h.get(x)||new Set;if(v=Array.from(v),S=v.length){b.add(x);do{var A=v[--S];m(A,p.get(A),b)}while(S);b.delete(x)}c[--a]=x}}}function t(s){for(var o=new Set,a=0,c=s.length;a<c;a++){var u=s[a];o.add(u[0]),o.add(u[1])}return Array.from(o)}function n(s){for(var o=new Map,a=0,c=s.length;a<c;a++){var u=s[a];o.has(u[0])||o.set(u[0],new Set),o.has(u[1])||o.set(u[1],new Set),o.get(u[0]).add(u[1])}return o}function r(s){for(var o=new Map,a=0,c=s.length;a<c;a++)o.set(s[a],a);return o}return ul.exports}var GN=zN();const YN=Ap(GN),HN=Object.prototype.toString,qN=Error.prototype.toString,KN=RegExp.prototype.toString,XN=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",ZN=/^Symbol\((.*)\)(.*)$/;function JN(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function g2(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return JN(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return XN.call(e).replace(ZN,"Symbol($1)");const r=HN.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+qN.call(e)+"]":r==="RegExp"?KN.call(e):null}function Fr(e,t){let n=g2(e,t);return n!==null?n:JSON.stringify(e,function(r,s){let o=g2(this[r],t);return o!==null?o:s},2)}function y2(e){return e==null?[]:[].concat(e)}let x2,v2,b2,QN=/\$\{\s*(\w+)\s*\}/g;x2=Symbol.toStringTag;class w2{constructor(t,n,r,s){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[x2]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=s,this.errors=[],this.inner=[],y2(t).forEach(o=>{if(jt.isError(o)){this.errors.push(...o.errors);const a=o.inner.length?o.inner:[o];this.inner.push(...a)}else this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}v2=Symbol.hasInstance,b2=Symbol.toStringTag;class jt extends Error{static formatError(t,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof t=="string"?t.replace(QN,(s,o)=>Fr(n[o])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,s,o){const a=new w2(t,n,r,s);if(o)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[b2]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,jt)}static[v2](t){return w2[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Rn={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const s=r!=null&&r!==n?` (cast from the value \`${Fr(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Fr(n,!0)}\``+s:`${e} must match the configured type. The validated value was: \`${Fr(n,!0)}\``+s}},Lt={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},ek={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Qd={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},tk={isValue:"${path} field must be ${value}"},fl={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:Rn,string:Lt,number:ek,date:Qd,object:fl,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:tk,tuple:{notType:e=>{const{path:t,value:n,spec:r}=e,s=r.types.length;if(Array.isArray(n)){if(n.length<s)return`${t} tuple value has too few items, expected a length of ${s} but got ${n.length} for value: \`${Fr(n,!0)}\``;if(n.length>s)return`${t} tuple value has too many items, expected a length of ${s} but got ${n.length} for value: \`${Fr(n,!0)}\``}return jt.formatError(Rn.notType,e)}}});const eh=e=>e&&e.__isYupSchema__;class dl{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:s,otherwise:o}=n,a=typeof r=="function"?r:(...c)=>c.every(u=>u===r);return new dl(t,(c,u)=>{var d;let h=a(...c)?s:o;return(d=h==null?void 0:h(u))!=null?d:u})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(o=>o.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),s=this.fn(r,t,n);if(s===void 0||s===t)return t;if(!eh(s))throw new TypeError("conditions must return a schema object");return s.resolve(n)}}const hl={context:"$",value:"."};class vs{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===hl.context,this.isValue=this.key[0]===hl.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?hl.context:this.isValue?hl.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&xs.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let s=this.isContext?r:this.isValue?t:n;return this.getter&&(s=this.getter(s||{})),this.map&&(s=this.map(s)),s}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}vs.prototype.__isYupRef=!0;const bs=e=>e==null;function xi(e){function t({value:n,path:r="",options:s,originalValue:o,schema:a},c,u){const{name:d,test:h,params:p,message:m,skipAbsent:x}=e;let{parent:S,context:b,abortEarly:T=a.spec.abortEarly,disableStackTrace:v=a.spec.disableStackTrace}=s;function A(ee){return vs.isRef(ee)?ee.getValue(n,S,b):ee}function C(ee={}){const ae=Object.assign({value:n,originalValue:o,label:a.spec.label,path:ee.path||r,spec:a.spec,disableStackTrace:ee.disableStackTrace||v},p,ee.params);for(const de of Object.keys(ae))ae[de]=A(ae[de]);const ge=new jt(jt.formatError(ee.message||m,ae),n,ae.path,ee.type||d,ae.disableStackTrace);return ge.params=ae,ge}const I=T?c:u;let P={path:r,parent:S,type:d,from:s.from,createError:C,resolve:A,options:s,originalValue:o,schema:a};const D=ee=>{jt.isError(ee)?I(ee):ee?u(null):I(C())},R=ee=>{jt.isError(ee)?I(ee):c(ee)};if(x&&bs(n))return D(!0);let W;try{var Q;if(W=h.call(P,n,P),typeof((Q=W)==null?void 0:Q.then)=="function"){if(s.sync)throw new Error(`Validation test of type: "${P.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(W).then(D,R)}}catch(ee){R(ee);return}D(W)}return t.OPTIONS=e,t}function nk(e,t,n,r=n){let s,o,a;return t?(xs.forEach(t,(c,u,d)=>{let h=u?c.slice(1,c.length-1):c;e=e.resolve({context:r,parent:s,value:n});let p=e.type==="tuple",m=d?parseInt(h,10):0;if(e.innerType||p){if(p&&!d)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&m>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${c}, in the path: ${t}. because there is no value at that index. `);s=n,n=n&&n[m],e=p?e.spec.types[m]:e.innerType}if(!d){if(!e.fields||!e.fields[h])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);s=n,n=n&&n[h],e=e.fields[h]}o=h,a=u?"["+c+"]":"."+c}),{schema:e,parent:s,parentPath:o}):{parent:s,parentPath:t,schema:e}}class pl extends Set{describe(){const t=[];for(const n of this.values())t.push(vs.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new pl(this.values())}merge(t,n){const r=this.clone();return t.forEach(s=>r.add(s)),n.forEach(s=>r.delete(s)),r}}function vi(e,t=new Map){if(eh(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=vi(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,s]of e.entries())n.set(r,vi(s,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(vi(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,s]of Object.entries(e))n[r]=vi(s,t)}else throw Error(`Unable to clone ${e}`);return n}class Fn{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new pl,this._blacklist=new pl,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Rn.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=vi(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const s=Object.assign({},n.spec,r.spec);return r.spec=s,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(o=>{t.tests.forEach(a=>{o.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((s,o)=>o.resolve(s,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,s,o;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(s=t.recursive)!=null?s:this.spec.recursive,disableStackTrace:(o=t.disableStackTrace)!=null?o:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),s=n.assert==="ignore-optionality",o=r._cast(t,n);if(n.assert!==!1&&!r.isType(o)){if(s&&bs(o))return o;let a=Fr(t),c=Fr(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
729
737
|
|
|
730
738
|
attempted value: ${a}
|
|
731
|
-
`+(c!==a?`result of cast: ${c}`:""))}return o}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,o)=>o.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,i){let{path:o,originalValue:a=t,strict:c=this.spec.strict}=n,u=t;c||(u=this._cast(u,Object.assign({assert:!1},n)));let d=[];for(let h of Object.values(this.internalTests))h&&d.push(h);this.runTests({path:o,value:u,originalValue:a,options:n,tests:d},r,h=>{if(h.length)return i(h,u);this.runTests({path:o,value:u,originalValue:a,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:o,value:a,originalValue:c,path:u,options:d}=t,h=x=>{i||(i=!0,n(x,a))},m=x=>{i||(i=!0,r(x,a))},p=o.length,v=[];if(!p)return m([]);let S={value:a,originalValue:c,path:u,options:d,schema:this};for(let x=0;x<o.length;x++){const T=o[x];T(S,h,function(C){C&&(Array.isArray(C)?v.push(...C):v.push(C)),--p<=0&&m(v)})}}asNestedTest({key:t,index:n,parent:r,parentPath:i,originalParent:o,options:a}){const c=t??n;if(c==null)throw TypeError("Must include `key` or `index` for nested validations");const u=typeof c=="number";let d=r[c];const h=Object.assign({},a,{strict:!0,parent:r,value:d,originalValue:o[c],key:void 0,[u?"index":"key"]:c,path:u||c.includes(".")?`${i||""}[${u?c:`"${c}"`}]`:(i?`${i}.`:"")+t});return(m,p,v)=>this.resolve(h)._validate(d,h,p,v)}validate(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),o=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return new Promise((a,c)=>i._validate(t,n,(u,d)=>{jt.isError(u)&&(u.value=d),c(u)},(u,d)=>{u.length?c(new jt(u,d,void 0,void 0,o)):a(d)}))}validateSync(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),o,a=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return i._validate(t,Object.assign({},n,{sync:!0}),(c,u)=>{throw jt.isError(c)&&(c.value=u),c},(c,u)=>{if(c.length)throw new jt(c,t,void 0,void 0,a);o=u}),o}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(jt.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(jt.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Es(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=Ts({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=Ts({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Bn.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Bn.notNull){return this.nullability(!1,t)}required(t=Bn.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Bn.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=Ts(n),o=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(o||a.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=C2(t).map(o=>new Ti(o));return i.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(typeof n=="function"?new pl(i,n):pl.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Ts({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=Bn.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=Ts({message:n,name:"oneOf",skipAbsent:!0,test(i){let o=this.schema._whitelist,a=o.resolveAll(this.resolve);return a.includes(i)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:a}})}}),r}notOneOf(t,n=Bn.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=Ts({message:n,name:"notOneOf",test(i){let o=this.schema._blacklist,a=o.resolveAll(this.resolve);return a.includes(i)?this.createError({params:{values:Array.from(o).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:o,nullable:a}=n.spec;return{meta:i,label:r,optional:o,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,d,h)=>h.findIndex(m=>m.name===u.name)===d)}}}Wn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Wn.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:o,schema:a}=mk(this,t,n,r.context);return a[e](i&&i[o],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])Wn.prototype[e]=Wn.prototype.oneOf;for(const e of["not","nope"])Wn.prototype[e]=Wn.prototype.notOneOf;const pk=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function gk(e){const t=ch(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function ch(e){var t,n;const r=pk.exec(e);return r?{year:nr(r[1]),month:nr(r[2],1)-1,day:nr(r[3],1),hour:nr(r[4]),minute:nr(r[5]),second:nr(r[6]),millisecond:r[7]?nr(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:nr(r[10]),minuteOffset:nr(r[11])}:null}function nr(e,t=0){return Number(e)||t}let yk=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,vk=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,xk=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,bk="^\\d{4}-\\d{2}-\\d{2}",wk="\\d{2}:\\d{2}:\\d{2}",Sk="(([+-]\\d{2}(:?\\d{2})?)|Z)",Tk=new RegExp(`${bk}T${wk}(\\.\\d+)?${Sk}$`),Ek=e=>Ei(e)||e===e.trim(),Ck={}.toString();function Br(){return new _2}class _2 extends Wn{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===Ck?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Bn.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=Ft.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=Ft.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=Ft.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,i,o;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:o}=n:i=n),this.test({name:o||"matches",message:i||Ft.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=Ft.email){return this.matches(yk,{name:"email",message:t,excludeEmptyString:!0})}url(t=Ft.url){return this.matches(vk,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Ft.uuid){return this.matches(xk,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,i;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:i=void 0}=t:n=t),this.matches(Tk,{name:"datetime",message:n||Ft.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Ft.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:o=>{if(!o||r)return!0;const a=ch(o);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||Ft.datetime_precision,params:{precision:i},skipAbsent:!0,test:o=>{if(!o||i==null)return!0;const a=ch(o);return a?a.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Ft.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:Ek})}lowercase(t=Ft.lowercase){return this.transform(n=>Ei(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Ei(n)||n===n.toLowerCase()})}uppercase(t=Ft.uppercase){return this.transform(n=>Ei(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Ei(n)||n===n.toUpperCase()})}}Br.prototype=_2.prototype;let Pk=new Date(""),Ak=e=>Object.prototype.toString.call(e)==="[object Date]";class uh extends Wn{constructor(){super({type:"date",check(t){return Ak(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=gk(t),isNaN(t)?uh.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Ti.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,n=ah.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(r)}})}max(t,n=ah.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(r)}})}}uh.INVALID_DATE=Pk;function Mk(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([a,c])=>`${a}-${c}`));function o(a,c){let u=Si.split(a)[0];r.add(u),i.has(`${c}-${u}`)||n.push([c,u])}for(const a of Object.keys(e)){let c=e[a];r.add(a),Ti.isRef(c)&&c.isSibling?o(c.path,a):lh(c)&&"deps"in c&&c.deps.forEach(u=>o(u,a))}return ik.array(Array.from(r),n).reverse()}function I2(e,t){let n=1/0;return e.some((r,i)=>{var o;if((o=t.path)!=null&&o.includes(r))return n=i,!0}),n}function $2(e){return(t,n)=>I2(e,t)-I2(e,n)}const Ok=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function vl(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=vl(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=vl(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(vl)}):"optional"in e?e.optional():e}const _k=(e,t)=>{const n=[...Si.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=Si.getter(Si.join(n),!0)(e);return!!(i&&r in i)};let D2=e=>Object.prototype.toString.call(e)==="[object Object]";function N2(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const Ik=$2([]);function fh(e){return new k2(e)}class k2 extends Wn{constructor(t){super({type:"object",check(n){return D2(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=Ik,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let i=super._cast(t,n);if(i===void 0)return this.getDefault(n);if(!this._typeCheck(i))return i;let o=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,c=[].concat(this._nodes,Object.keys(i).filter(m=>!this._nodes.includes(m))),u={},d=Object.assign({},n,{parent:u,__validating:n.__validating||!1}),h=!1;for(const m of c){let p=o[m],v=m in i;if(p){let S,x=i[m];d.path=(n.path?`${n.path}.`:"")+m,p=p.resolve({value:x,context:n.context,parent:u});let T=p instanceof Wn?p.spec:void 0,b=T==null?void 0:T.strict;if(T!=null&&T.strip){h=h||m in i;continue}S=!n.__validating||!b?p.cast(i[m],d):i[m],S!==void 0&&(u[m]=S)}else v&&!a&&(u[m]=i[m]);(v!==m in u||u[m]!==i[m])&&(h=!0)}return h?u:i}_validate(t,n={},r,i){let{from:o=[],originalValue:a=t,recursive:c=this.spec.recursive}=n;n.from=[{schema:this,value:a},...o],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(u,d)=>{if(!c||!D2(d)){i(u,d);return}a=a||d;let h=[];for(let m of this._nodes){let p=this.fields[m];!p||Ti.isRef(p)||h.push(p.asNestedTest({options:n,key:m,parent:d,parentPath:n.path,originalParent:a}))}this.runTests({tests:h,value:d,originalValue:a,options:n},r,m=>{i(m.sort(this._sortErrors).concat(u),d)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,o]of Object.entries(this.fields)){const a=r[i];r[i]=a===void 0?o:a}return n.withMutation(i=>i.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var i;const o=this.fields[r];let a=t;(i=a)!=null&&i.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=o&&"getDefault"in o?o.getDefault(a):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=Mk(t,n),r._sortErrors=$2(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let i=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),i=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),i)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return vl(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,i])=>t.includes(r)&&t.includes(i)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let i=Si.getter(t,!0);return this.transform(o=>{if(!o)return o;let a=o;return _k(o,t)&&(a=Object.assign({},o),r||delete a[t],a[n]=i(o)),a})}json(){return this.transform(Ok)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||ml.exact,test(n){if(n==null)return!0;const r=N2(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=ml.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const o=N2(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=ml.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const i of Object.keys(n))r[t(i)]=n[i];return r})}camelCase(){return this.transformKeys(oh.camelCase)}snakeCase(){return this.transformKeys(oh.snakeCase)}constantCase(){return this.transformKeys(t=>oh.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[o,a]of Object.entries(n.fields)){var i;let c=t;(i=c)!=null&&i.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[o]})),r.fields[o]=a.describe(c)}return r}}fh.prototype=k2.prototype,fh().shape({labelES:Br().required(),label:Br().required(),code:Br().required(),codeISO2:Br().required(),phone:Br().required()});const L2=[{labelES:"Afganistán",label:"Afghanistan",codeISO2:"AF",code:"AFG",phone:"93"},{labelES:"Albania",label:"Albania",codeISO2:"AL",code:"ALB",phone:"355"},{labelES:"Alemania",label:"Germany",codeISO2:"DE",code:"DEU",phone:"49"},{labelES:"Andorra",label:"Andorra",codeISO2:"AD",code:"AND",phone:"376"},{labelES:"Angola",label:"Angola",codeISO2:"AO",code:"AGO",phone:"244"},{labelES:"Anguila",label:"Anguilla",codeISO2:"AI",code:"AIA",phone:"1 264"},{labelES:"Antártida",label:"Antarctica",codeISO2:"AQ",code:"ATA",phone:"672"},{labelES:"Antigua y Barbuda",label:"Antigua and Barbuda",codeISO2:"AG",code:"ATG",phone:"1 268"},{labelES:"Arabia Saudita",label:"Saudi Arabia",codeISO2:"SA",code:"SAU",phone:"966"},{labelES:"Argelia",label:"Algeria",codeISO2:"DZ",code:"DZA",phone:"213"},{labelES:"Argentina",label:"Argentina",codeISO2:"AR",code:"ARG",phone:"54"},{labelES:"Armenia",label:"Armenia",codeISO2:"AM",code:"ARM",phone:"374"},{labelES:"Aruba",label:"Aruba",codeISO2:"AW",code:"ABW",phone:"297"},{labelES:"Australia",label:"Australia",codeISO2:"AU",code:"AUS",phone:"61"},{labelES:"Austria",label:"Austria",codeISO2:"AT",code:"AUT",phone:"43"},{labelES:"Azerbaiyán",label:"Azerbaijan",codeISO2:"AZ",code:"AZE",phone:"994"},{labelES:"Bélgica",label:"Belgium",codeISO2:"BE",code:"BEL",phone:"32"},{labelES:"Bahamas",label:"Bahamas",codeISO2:"BS",code:"BHS",phone:"1 242"},{labelES:"Bahrein",label:"Bahrain",codeISO2:"BH",code:"BHR",phone:"973"},{labelES:"Bangladesh",label:"Bangladesh",codeISO2:"BD",code:"BGD",phone:"880"},{labelES:"Barbados",label:"Barbados",codeISO2:"BB",code:"BRB",phone:"1 246"},{labelES:"Belice",label:"Belize",codeISO2:"BZ",code:"BLZ",phone:"501"},{labelES:"Benín",label:"Benin",codeISO2:"BJ",code:"BEN",phone:"229"},{labelES:"Bhután",label:"Bhutan",codeISO2:"BT",code:"BTN",phone:"975"},{labelES:"Bielorrusia",label:"Belarus",codeISO2:"BY",code:"BLR",phone:"375"},{labelES:"Birmania",label:"Myanmar",codeISO2:"MM",code:"MMR",phone:"95"},{labelES:"Bolivia",label:"Bolivia",codeISO2:"BO",code:"BOL",phone:"591"},{labelES:"Bosnia y Herzegovina",label:"Bosnia and Herzegovina",codeISO2:"BA",code:"BIH",phone:"387"},{labelES:"Botsuana",label:"Botswana",codeISO2:"BW",code:"BWA",phone:"267"},{labelES:"Brasil",label:"Brazil",codeISO2:"BR",code:"BRA",phone:"55"},{labelES:"Brunéi",label:"Brunei",codeISO2:"BN",code:"BRN",phone:"673"},{labelES:"Bulgaria",label:"Bulgaria",codeISO2:"BG",code:"BGR",phone:"359"},{labelES:"Burkina Faso",label:"Burkina Faso",codeISO2:"BF",code:"BFA",phone:"226"},{labelES:"Burundi",label:"Burundi",codeISO2:"BI",code:"BDI",phone:"257"},{labelES:"Cabo Verde",label:"Cape Verde",codeISO2:"CV",code:"CPV",phone:"238"},{labelES:"Camboya",label:"Cambodia",codeISO2:"KH",code:"KHM",phone:"855"},{labelES:"Camerún",label:"Cameroon",codeISO2:"CM",code:"CMR",phone:"237"},{labelES:"Canadá",label:"Canada",codeISO2:"CA",code:"CAN",phone:"1"},{labelES:"Chad",label:"Chad",codeISO2:"TD",code:"TCD",phone:"235"},{labelES:"Chile",label:"Chile",codeISO2:"CL",code:"CHL",phone:"56"},{labelES:"China",label:"China",codeISO2:"CN",code:"CHN",phone:"86"},{labelES:"Chipre",label:"Cyprus",codeISO2:"CY",code:"CYP",phone:"357"},{labelES:"Ciudad del Vaticano",label:"Vatican City State",codeISO2:"VA",code:"VAT",phone:"39"},{labelES:"Colombia",label:"Colombia",codeISO2:"CO",code:"COL",phone:"57"},{labelES:"Comoras",label:"Comoros",codeISO2:"KM",code:"COM",phone:"269"},{labelES:"República del Congo",label:"Republic of the Congo",codeISO2:"CG",code:"COG",phone:"242"},{labelES:"República Democrática del Congo",label:"Democratic Republic of the Congo",codeISO2:"CD",code:"COD",phone:"243"},{labelES:"Corea del Norte",label:"North Korea",codeISO2:"KP",code:"PRK",phone:"850"},{labelES:"Corea del Sur",label:"South Korea",codeISO2:"KR",code:"KOR",phone:"82"},{labelES:"Costa de Marfil",label:"Ivory Coast",codeISO2:"CI",code:"CIV",phone:"225"},{labelES:"Costa Rica",label:"Costa Rica",codeISO2:"CR",code:"CRI",phone:"506"},{labelES:"Croacia",label:"Croatia",codeISO2:"HR",code:"HRV",phone:"385"},{labelES:"Cuba",label:"Cuba",codeISO2:"CU",code:"CUB",phone:"53"},{labelES:"Curazao",label:"Curaçao",codeISO2:"CW",code:"CWU",phone:"5999"},{labelES:"Dinamarca",label:"Denmark",codeISO2:"DK",code:"DNK",phone:"45"},{labelES:"Dominica",label:"Dominica",codeISO2:"DM",code:"DMA",phone:"1 767"},{labelES:"Ecuador",label:"Ecuador",codeISO2:"EC",code:"ECU",phone:"593"},{labelES:"Egipto",label:"Egypt",codeISO2:"EG",code:"EGY",phone:"20"},{labelES:"El Salvador",label:"El Salvador",codeISO2:"SV",code:"SLV",phone:"503"},{labelES:"Emiratos Árabes Unidos",label:"United Arab Emirates",codeISO2:"AE",code:"ARE",phone:"971"},{labelES:"Eritrea",label:"Eritrea",codeISO2:"ER",code:"ERI",phone:"291"},{labelES:"Eslovaquia",label:"Slovakia",codeISO2:"SK",code:"SVK",phone:"421"},{labelES:"Eslovenia",label:"Slovenia",codeISO2:"SI",code:"SVN",phone:"386"},{labelES:"España",label:"Spain",codeISO2:"ES",code:"ESP",phone:"34"},{labelES:"Estados Unidos de América",label:"United States of America",codeISO2:"US",code:"USA",phone:"1"},{labelES:"Estonia",label:"Estonia",codeISO2:"EE",code:"EST",phone:"372"},{labelES:"Etiopía",label:"Ethiopia",codeISO2:"ET",code:"ETH",phone:"251"},{labelES:"Filipinas",label:"Philippines",codeISO2:"PH",code:"PHL",phone:"63"},{labelES:"Finlandia",label:"Finland",codeISO2:"FI",code:"FIN",phone:"358"},{labelES:"Fiyi",label:"Fiji",codeISO2:"FJ",code:"FJI",phone:"679"},{labelES:"Francia",label:"France",codeISO2:"FR",code:"FRA",phone:"33"},{labelES:"Gabón",label:"Gabon",codeISO2:"GA",code:"GAB",phone:"241"},{labelES:"Gambia",label:"Gambia",codeISO2:"GM",code:"GMB",phone:"220"},{labelES:"Georgia",label:"Georgia",codeISO2:"GE",code:"GEO",phone:"995"},{labelES:"Ghana",label:"Ghana",codeISO2:"GH",code:"GHA",phone:"233"},{labelES:"Gibraltar",label:"Gibraltar",codeISO2:"GI",code:"GIB",phone:"350"},{labelES:"Granada",label:"Grenada",codeISO2:"GD",code:"GRD",phone:"1 473"},{labelES:"Grecia",label:"Greece",codeISO2:"GR",code:"GRC",phone:"30"},{labelES:"Groenlandia",label:"Greenland",codeISO2:"GL",code:"GRL",phone:"299"},{labelES:"Guadalupe",label:"Guadeloupe",codeISO2:"GP",code:"GLP",phone:"590"},{labelES:"Guam",label:"Guam",codeISO2:"GU",code:"GUM",phone:"1 671"},{labelES:"Guatemala",label:"Guatemala",codeISO2:"GT",code:"GTM",phone:"502"},{labelES:"Guayana Francesa",label:"French Guiana",codeISO2:"GF",code:"GUF",phone:"594"},{labelES:"Guernsey",label:"Guernsey",codeISO2:"GG",code:"GGY",phone:"44"},{labelES:"Guinea",label:"Guinea",codeISO2:"GN",code:"GIN",phone:"224"},{labelES:"Guinea Ecuatorial",label:"Equatorial Guinea",codeISO2:"GQ",code:"GNQ",phone:"240"},{labelES:"Guinea-Bissau",label:"Guinea-Bissau",codeISO2:"GW",code:"GNB",phone:"245"},{labelES:"Guyana",label:"Guyana",codeISO2:"GY",code:"GUY",phone:"592"},{labelES:"Haití",label:"Haiti",codeISO2:"HT",code:"HTI",phone:"509"},{labelES:"Honduras",label:"Honduras",codeISO2:"HN",code:"HND",phone:"504"},{labelES:"Hong kong",label:"Hong Kong",codeISO2:"HK",code:"HKG",phone:"852"},{labelES:"Hungría",label:"Hungary",codeISO2:"HU",code:"HUN",phone:"36"},{labelES:"India",label:"India",codeISO2:"IN",code:"IND",phone:"91"},{labelES:"Indonesia",label:"Indonesia",codeISO2:"ID",code:"IDN",phone:"62"},{labelES:"Irán",label:"Iran",codeISO2:"IR",code:"IRN",phone:"98"},{labelES:"Irak",label:"Iraq",codeISO2:"IQ",code:"IRQ",phone:"964"},{labelES:"Irlanda",label:"Ireland",codeISO2:"IE",code:"IRL",phone:"353"},{labelES:"Isla Bouvet",label:"Bouvet Island",codeISO2:"BV",code:"BVT",phone:""},{labelES:"Isla de Man",label:"Isle of Man",codeISO2:"IM",code:"IMN",phone:"44"},{labelES:"Isla de Navidad",label:"Christmas Island",codeISO2:"CX",code:"CXR",phone:"61"},{labelES:"Isla Norfolk",label:"Norfolk Island",codeISO2:"NF",code:"NFK",phone:"672"},{labelES:"Islandia",label:"Iceland",codeISO2:"IS",code:"ISL",phone:"354"},{labelES:"Islas Bermudas",label:"Bermuda Islands",codeISO2:"BM",code:"BMU",phone:"1 441"},{labelES:"Islas Caimán",label:"Cayman Islands",codeISO2:"KY",code:"CYM",phone:"1 345"},{labelES:"Islas Cocos (Keeling)",label:"Cocos (Keeling) Islands",codeISO2:"CC",code:"CCK",phone:"61"},{labelES:"Islas Cook",label:"Cook Islands",codeISO2:"CK",code:"COK",phone:"682"},{labelES:"Islas de Åland",label:"Åland Islands",codeISO2:"AX",code:"ALA",phone:"358"},{labelES:"Islas Feroe",label:"Faroe Islands",codeISO2:"FO",code:"FRO",phone:"298"},{labelES:"Islas Georgias del Sur y Sandwich del Sur",label:"South Georgia and the South Sandwich Islands",codeISO2:"GS",code:"SGS",phone:"500"},{labelES:"Islas Heard y McDonald",label:"Heard Island and McDonald Islands",codeISO2:"HM",code:"HMD",phone:""},{labelES:"Islas Maldivas",label:"Maldives",codeISO2:"MV",code:"MDV",phone:"960"},{labelES:"Islas Malvinas",label:"Falkland Islands (Malvinas)",codeISO2:"FK",code:"FLK",phone:"500"},{labelES:"Islas Marianas del Norte",label:"Northern Mariana Islands",codeISO2:"MP",code:"MNP",phone:"1 670"},{labelES:"Islas Marshall",label:"Marshall Islands",codeISO2:"MH",code:"MHL",phone:"692"},{labelES:"Islas Pitcairn",label:"Pitcairn Islands",codeISO2:"PN",code:"PCN",phone:"870"},{labelES:"Islas Salomón",label:"Solomon Islands",codeISO2:"SB",code:"SLB",phone:"677"},{labelES:"Islas Turcas y Caicos",label:"Turks and Caicos Islands",codeISO2:"TC",code:"TCA",phone:"1 649"},{labelES:"Islas Ultramarinas Menores de Estados Unidos",label:"United States Minor Outlying Islands",codeISO2:"UM",code:"UMI",phone:"246"},{labelES:"Islas Vírgenes Británicas",label:"Virgin Islands",codeISO2:"VG",code:"VGB",phone:"1 284"},{labelES:"Islas Vírgenes de los Estados Unidos",label:"United States Virgin Islands",codeISO2:"VI",code:"VIR",phone:"1 340"},{labelES:"Israel",label:"Israel",codeISO2:"IL",code:"ISR",phone:"972"},{labelES:"Italia",label:"Italy",codeISO2:"IT",code:"ITA",phone:"39"},{labelES:"Jamaica",label:"Jamaica",codeISO2:"JM",code:"JAM",phone:"1 876"},{labelES:"Japón",label:"Japan",codeISO2:"JP",code:"JPN",phone:"81"},{labelES:"Jersey",label:"Jersey",codeISO2:"JE",code:"JEY",phone:"44"},{labelES:"Jordania",label:"Jordan",codeISO2:"JO",code:"JOR",phone:"962"},{labelES:"Kazajistán",label:"Kazakhstan",codeISO2:"KZ",code:"KAZ",phone:"7"},{labelES:"Kenia",label:"Kenya",codeISO2:"KE",code:"KEN",phone:"254"},{labelES:"Kirguistán",label:"Kyrgyzstan",codeISO2:"KG",code:"KGZ",phone:"996"},{labelES:"Kiribati",label:"Kiribati",codeISO2:"KI",code:"KIR",phone:"686"},{labelES:"Kuwait",label:"Kuwait",codeISO2:"KW",code:"KWT",phone:"965"},{labelES:"Líbano",label:"Lebanon",codeISO2:"LB",code:"LBN",phone:"961"},{labelES:"Laos",label:"Laos",codeISO2:"LA",code:"LAO",phone:"856"},{labelES:"Lesoto",label:"Lesotho",codeISO2:"LS",code:"LSO",phone:"266"},{labelES:"Letonia",label:"Latvia",codeISO2:"LV",code:"LVA",phone:"371"},{labelES:"Liberia",label:"Liberia",codeISO2:"LR",code:"LBR",phone:"231"},{labelES:"Libia",label:"Libya",codeISO2:"LY",code:"LBY",phone:"218"},{labelES:"Liechtenstein",label:"Liechtenstein",codeISO2:"LI",code:"LIE",phone:"423"},{labelES:"Lituania",label:"Lithuania",codeISO2:"LT",code:"LTU",phone:"370"},{labelES:"Luxemburgo",label:"Luxembourg",codeISO2:"LU",code:"LUX",phone:"352"},{labelES:"México",label:"Mexico",codeISO2:"MX",code:"MEX",phone:"52"},{labelES:"Mónaco",label:"Monaco",codeISO2:"MC",code:"MCO",phone:"377"},{labelES:"Macao",label:"Macao",codeISO2:"MO",code:"MAC",phone:"853"},{labelES:"Macedônia",label:"Macedonia",codeISO2:"MK",code:"MKD",phone:"389"},{labelES:"Madagascar",label:"Madagascar",codeISO2:"MG",code:"MDG",phone:"261"},{labelES:"Malasia",label:"Malaysia",codeISO2:"MY",code:"MYS",phone:"60"},{labelES:"Malawi",label:"Malawi",codeISO2:"MW",code:"MWI",phone:"265"},{labelES:"Mali",label:"Mali",codeISO2:"ML",code:"MLI",phone:"223"},{labelES:"Malta",label:"Malta",codeISO2:"MT",code:"MLT",phone:"356"},{labelES:"Marruecos",label:"Morocco",codeISO2:"MA",code:"MAR",phone:"212"},{labelES:"Martinica",label:"Martinique",codeISO2:"MQ",code:"MTQ",phone:"596"},{labelES:"Mauricio",label:"Mauritius",codeISO2:"MU",code:"MUS",phone:"230"},{labelES:"Mauritania",label:"Mauritania",codeISO2:"MR",code:"MRT",phone:"222"},{labelES:"Mayotte",label:"Mayotte",codeISO2:"YT",code:"MYT",phone:"262"},{labelES:"Micronesia",label:"Estados Federados de",codeISO2:"FM",code:"FSM",phone:"691"},{labelES:"Moldavia",label:"Moldova",codeISO2:"MD",code:"MDA",phone:"373"},{labelES:"Mongolia",label:"Mongolia",codeISO2:"MN",code:"MNG",phone:"976"},{labelES:"Montenegro",label:"Montenegro",codeISO2:"ME",code:"MNE",phone:"382"},{labelES:"Montserrat",label:"Montserrat",codeISO2:"MS",code:"MSR",phone:"1 664"},{labelES:"Mozambique",label:"Mozambique",codeISO2:"MZ",code:"MOZ",phone:"258"},{labelES:"Namibia",label:"Namibia",codeISO2:"NA",code:"NAM",phone:"264"},{labelES:"Nauru",label:"Nauru",codeISO2:"NR",code:"NRU",phone:"674"},{labelES:"Nepal",label:"Nepal",codeISO2:"NP",code:"NPL",phone:"977"},{labelES:"Nicaragua",label:"Nicaragua",codeISO2:"NI",code:"NIC",phone:"505"},{labelES:"Niger",label:"Niger",codeISO2:"NE",code:"NER",phone:"227"},{labelES:"Nigeria",label:"Nigeria",codeISO2:"NG",code:"NGA",phone:"234"},{labelES:"Niue",label:"Niue",codeISO2:"NU",code:"NIU",phone:"683"},{labelES:"Noruega",label:"Norway",codeISO2:"NO",code:"NOR",phone:"47"},{labelES:"Nueva Caledonia",label:"New Caledonia",codeISO2:"NC",code:"NCL",phone:"687"},{labelES:"Nueva Zelanda",label:"New Zealand",codeISO2:"NZ",code:"NZL",phone:"64"},{labelES:"Omán",label:"Oman",codeISO2:"OM",code:"OMN",phone:"968"},{labelES:"Países Bajos",label:"Netherlands",codeISO2:"NL",code:"NLD",phone:"31"},{labelES:"Pakistán",label:"Pakistan",codeISO2:"PK",code:"PAK",phone:"92"},{labelES:"Palau",label:"Palau",codeISO2:"PW",code:"PLW",phone:"680"},{labelES:"Palestina",label:"Palestine",codeISO2:"PS",code:"PSE",phone:"970"},{labelES:"Panamá",label:"Panama",codeISO2:"PA",code:"PAN",phone:"507"},{labelES:"Papúa Nueva Guinea",label:"Papua New Guinea",codeISO2:"PG",code:"PNG",phone:"675"},{labelES:"Paraguay",label:"Paraguay",codeISO2:"PY",code:"PRY",phone:"595"},{labelES:"Perú",label:"Peru",codeISO2:"PE",code:"PER",phone:"51"},{labelES:"Polinesia Francesa",label:"French Polynesia",codeISO2:"PF",code:"PYF",phone:"689"},{labelES:"Polonia",label:"Poland",codeISO2:"PL",code:"POL",phone:"48"},{labelES:"Portugal",label:"Portugal",codeISO2:"PT",code:"PRT",phone:"351"},{labelES:"Puerto Rico",label:"Puerto Rico",codeISO2:"PR",code:"PRI",phone:"1"},{labelES:"Qatar",label:"Qatar",codeISO2:"QA",code:"QAT",phone:"974"},{labelES:"Reino Unido",label:"United Kingdom",codeISO2:"GB",code:"GBR",phone:"44"},{labelES:"República Centroafricana",label:"Central African Republic",codeISO2:"CF",code:"CAF",phone:"236"},{labelES:"República Checa",label:"Czech Republic",codeISO2:"CZ",code:"CZE",phone:"420"},{labelES:"República Dominicana",label:"Dominican Republic",codeISO2:"DO",code:"DOM",phone:"1 809"},{labelES:"República de Sudán del Sur",label:"South Sudan",codeISO2:"SS",code:"SSD",phone:"211"},{labelES:"Reunión",label:"Réunion",codeISO2:"RE",code:"REU",phone:"262"},{labelES:"Ruanda",label:"Rwanda",codeISO2:"RW",code:"RWA",phone:"250"},{labelES:"Rumanía",label:"Romania",codeISO2:"RO",code:"ROU",phone:"40"},{labelES:"Rusia",label:"Russia",codeISO2:"RU",code:"RUS",phone:"7"},{labelES:"Sahara Occidental",label:"Western Sahara",codeISO2:"EH",code:"ESH",phone:"212"},{labelES:"Samoa",label:"Samoa",codeISO2:"WS",code:"WSM",phone:"685"},{labelES:"Samoa Americana",label:"American Samoa",codeISO2:"AS",code:"ASM",phone:"1 684"},{labelES:"San Bartolomé",label:"Saint Barthélemy",codeISO2:"BL",code:"BLM",phone:"590"},{labelES:"San Cristóbal y Nieves",label:"Saint Kitts and Nevis",codeISO2:"KN",code:"KNA",phone:"1 869"},{labelES:"San Marino",label:"San Marino",codeISO2:"SM",code:"SMR",phone:"378"},{labelES:"San Martín (Francia)",label:"Saint Martin (French part)",codeISO2:"MF",code:"MAF",phone:"1 599"},{labelES:"San Pedro y Miquelón",label:"Saint Pierre and Miquelon",codeISO2:"PM",code:"SPM",phone:"508"},{labelES:"San Vicente y las Granadinas",label:"Saint Vincent and the Grenadines",codeISO2:"VC",code:"VCT",phone:"1 784"},{labelES:"Santa Elena",label:"Ascensión y Tristán de Acuña",codeISO2:"SH",code:"SHN",phone:"290"},{labelES:"Santa Lucía",label:"Saint Lucia",codeISO2:"LC",code:"LCA",phone:"1 758"},{labelES:"Santo Tomé y Príncipe",label:"Sao Tome and Principe",codeISO2:"ST",code:"STP",phone:"239"},{labelES:"Senegal",label:"Senegal",codeISO2:"SN",code:"SEN",phone:"221"},{labelES:"Serbia",label:"Serbia",codeISO2:"RS",code:"SRB",phone:"381"},{labelES:"Seychelles",label:"Seychelles",codeISO2:"SC",code:"SYC",phone:"248"},{labelES:"Sierra Leona",label:"Sierra Leone",codeISO2:"SL",code:"SLE",phone:"232"},{labelES:"Singapur",label:"Singapore",codeISO2:"SG",code:"SGP",phone:"65"},{labelES:"Sint Maarten",label:"Sint Maarten",codeISO2:"SX",code:"SMX",phone:"1 721"},{labelES:"Siria",label:"Syria",codeISO2:"SY",code:"SYR",phone:"963"},{labelES:"Somalia",label:"Somalia",codeISO2:"SO",code:"SOM",phone:"252"},{labelES:"Sri lanka",label:"Sri Lanka",codeISO2:"LK",code:"LKA",phone:"94"},{labelES:"Sudáfrica",label:"South Africa",codeISO2:"ZA",code:"ZAF",phone:"27"},{labelES:"Sudán",label:"Sudan",codeISO2:"SD",code:"SDN",phone:"249"},{labelES:"Suecia",label:"Sweden",codeISO2:"SE",code:"SWE",phone:"46"},{labelES:"Suiza",label:"Switzerland",codeISO2:"CH",code:"CHE",phone:"41"},{labelES:"Surinám",label:"Suriname",codeISO2:"SR",code:"SUR",phone:"597"},{labelES:"Svalbard y Jan Mayen",label:"Svalbard and Jan Mayen",codeISO2:"SJ",code:"SJM",phone:"47"},{labelES:"Swazilandia",label:"Swaziland",codeISO2:"SZ",code:"SWZ",phone:"268"},{labelES:"Tayikistán",label:"Tajikistan",codeISO2:"TJ",code:"TJK",phone:"992"},{labelES:"Tailandia",label:"Thailand",codeISO2:"TH",code:"THA",phone:"66"},{labelES:"Taiwán",label:"Taiwan",codeISO2:"TW",code:"TWN",phone:"886"},{labelES:"Tanzania",label:"Tanzania",codeISO2:"TZ",code:"TZA",phone:"255"},{labelES:"Territorio Británico del Océano Índico",label:"British Indian Ocean Territory",codeISO2:"IO",code:"IOT",phone:"246"},{labelES:"Territorios Australes y Antárticas Franceses",label:"French Southern Territories",codeISO2:"TF",code:"ATF",phone:""},{labelES:"Timor Oriental",label:"East Timor",codeISO2:"TL",code:"TLS",phone:"670"},{labelES:"Togo",label:"Togo",codeISO2:"TG",code:"TGO",phone:"228"},{labelES:"Tokelau",label:"Tokelau",codeISO2:"TK",code:"TKL",phone:"690"},{labelES:"Tonga",label:"Tonga",codeISO2:"TO",code:"TON",phone:"676"},{labelES:"Trinidad y Tobago",label:"Trinidad and Tobago",codeISO2:"TT",code:"TTO",phone:"1 868"},{labelES:"Tunez",label:"Tunisia",codeISO2:"TN",code:"TUN",phone:"216"},{labelES:"Turkmenistán",label:"Turkmenistan",codeISO2:"TM",code:"TKM",phone:"993"},{labelES:"Turquía",label:"Turkey",codeISO2:"TR",code:"TUR",phone:"90"},{labelES:"Tuvalu",label:"Tuvalu",codeISO2:"TV",code:"TUV",phone:"688"},{labelES:"Ucrania",label:"Ukraine",codeISO2:"UA",code:"UKR",phone:"380"},{labelES:"Uganda",label:"Uganda",codeISO2:"UG",code:"UGA",phone:"256"},{labelES:"Uruguay",label:"Uruguay",codeISO2:"UY",code:"URY",phone:"598"},{labelES:"Uzbekistán",label:"Uzbekistan",codeISO2:"UZ",code:"UZB",phone:"998"},{labelES:"Vanuatu",label:"Vanuatu",codeISO2:"VU",code:"VUT",phone:"678"},{labelES:"Venezuela",label:"Venezuela",codeISO2:"VE",code:"VEN",phone:"58"},{labelES:"Vietnam",label:"Vietnam",codeISO2:"VN",code:"VNM",phone:"84"},{labelES:"Wallis y Futuna",label:"Wallis and Futuna",codeISO2:"WF",code:"WLF",phone:"681"},{labelES:"Yemen",label:"Yemen",codeISO2:"YE",code:"YEM",phone:"967"},{labelES:"Yibuti",label:"Djibouti",codeISO2:"DJ",code:"DJI",phone:"253"},{labelES:"Zambia",label:"Zambia",codeISO2:"ZM",code:"ZMB",phone:"260"},{labelES:"Zimbabue",label:"Zimbabwe",codeISO2:"ZW",code:"ZWE",phone:"263"}],$k=({countries:e=L2,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:a="",translateKey:c})=>{var Ce,Ve,ie;const{t:u}=Ue(),{field:d,fieldState:h}=hr.useController({name:t,control:n,rules:{validate:{}},defaultValue:null}),[m,p]=_.useState(!1),[v,S]=_.useState(""),[x,T]=_.useState(d.value||null),b=_.useRef(null),C=_.useRef(null),E=_.useRef(null),{x:$,y:A,strategy:D,refs:R,context:j,placement:V,middlewareData:Z}=jr({open:m,onOpenChange:p,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:pe,elements:De}){Object.assign(De.floating.style,{maxHeight:`${Math.min(pe-10,300)}px`})},padding:8}),bs({element:C})],placement:"bottom-start",whileElementsMounted:$r}),ee=vi(j),se=Rr(j),{getReferenceProps:ge,getFloatingProps:ue}=Fr([ee,se]),{isMounted:fe,styles:he}=xi(j,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),W=(Array.isArray(e)?e:[]).filter(pe=>{if(!v.trim())return!0;const De=o==="es"&&pe.labelES?pe.labelES.toLowerCase():pe.label.toLowerCase(),ft=pe.code?pe.code.toLowerCase():"";return De.includes(v.toLowerCase())||ft.includes(v.toLowerCase())}),Y=pe=>{T(pe),p(!1),S(""),d.onChange(pe)},M=()=>{p(!m),!m&&b.current&&setTimeout(()=>{var pe;(pe=b.current)==null||pe.focus()},100)},k=()=>{setTimeout(()=>{m||d.onBlur()},200)};_.useEffect(()=>{T(d.value)},[d.value]),_.useEffect(()=>{const pe=De=>{E.current&&!E.current.contains(De.target)&&d.onBlur()};return document.addEventListener("mousedown",pe),()=>{document.removeEventListener("mousedown",pe)}},[d]);const H=pe=>{var De;return pe?pe.codeISO2?pe.codeISO2.toLowerCase():((De=pe.code)==null?void 0:De.toLowerCase())||"":""},ae=(Ce=Z.arrow)==null?void 0:Ce.x,le=(Ve=Z.arrow)==null?void 0:Ve.y,U={top:"bottom",right:"left",bottom:"top",left:"right"}[V.split("-")[0]],J=ge({onClick:M,onBlur:k}),oe=u(r),re=u(i),de=(ie=h.error)==null?void 0:ie.message;return y.jsxs("div",{ref:E,className:`w-full relative flex flex-col gap-8 ${a}`,children:[y.jsx("label",{className:`text-gray-600 font-600 group ${de&&"!text-red-500"} text-label`,children:oe}),y.jsxs("div",{ref:R.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${de&&"border-red-500 hover:border-red-600"} ${fe?"border-blue-400":"border-blue-100"}`,...J,tabIndex:0,children:[x!=null&&x.code?y.jsxs("div",{className:"flex items-center w-full gap-10",children:[H(x)&&y.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${H(x)}.png`,srcSet:`https://flagcdn.com/w40/${H(x)}.png 2x`,alt:x.label,onError:pe=>{pe.currentTarget.style.display="none"}}),y.jsxs("span",{className:"flex-grow font-600 text-body-m",children:[o==="es"&&x.labelES?x.labelES:x.label,x.code?` (${x.code})`:u("select_country")]})]}):y.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:re}),y.jsx("svg",{className:`w-16 h-16 transition-transform ${m?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),de&&y.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(de,{x:u(c||"")||u(t)})}),fe&&y.jsxs("div",{ref:R.setFloating,style:{position:D,top:A??0,left:$??0,...he},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ue(),children:[y.jsx("div",{ref:C,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ae!=null?`${ae}px`:"",top:le!=null?`${le}px`:"",right:"",bottom:"",[U]:"-2px",borderRight:U==="left"?"1px solid":"none",borderBottom:U==="top"?"1px solid":"none",borderLeft:U==="right"?"1px solid":"none",borderTop:U==="bottom"?"1px solid":"none"}}),y.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:y.jsx("input",{ref:b,type:"text",className:"w-full p-16 text-body-s",placeholder:u("search")+"...",value:v,onChange:pe=>S(pe.target.value),onClick:pe=>pe.stopPropagation(),onBlur:pe=>{pe.stopPropagation()},autoFocus:!0})}),y.jsx("div",{children:W.length>0?y.jsx("ul",{className:"flex flex-col",children:W.map((pe,De)=>{var Ci;const ft=pe.codeISO2?pe.codeISO2.toLowerCase():((Ci=pe.code)==null?void 0:Ci.toLowerCase())||"";return y.jsxs("li",{className:"flex items-center gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:dt=>{dt.stopPropagation(),Y(pe)},children:[ft&&y.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${ft}.png`,srcSet:`https://flagcdn.com/w40/${ft}.png 2x`,alt:pe.label,onError:dt=>{dt.currentTarget.style.display="none"}}),y.jsxs("span",{children:[o==="es"&&pe.labelES?pe.labelES:pe.label,pe.code?` (${pe.code})`:"Country not found"]})]},`${pe.code}-${De}`)})}):y.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},Dk=({country:e})=>{const t=n=>{var r;return n?n.codeISO2?n.codeISO2.toLowerCase():((r=n.code)==null?void 0:r.toLowerCase())||"":""};return y.jsxs("div",{className:"flex items-center gap-8",children:[y.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${t(e)}.png`,srcSet:`https://flagcdn.com/w40/${t(e)}.png 2x`,alt:e.label,onError:n=>{n.currentTarget.style.display="none"}}),y.jsx("p",{className:"text-body-s text-gray-600",children:e.label})]})},Nk=({countries:e,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:a=""})=>{const{t:c}=Ue();return y.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:u,value:d},fieldState:{error:h}})=>y.jsx(kk,{countries:e,value:d,onChange:u,label:c(r),placeholder:c(i),language:o,error:h==null?void 0:h.message,className:a})})},kk=({countries:e,value:t,onChange:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",error:a,className:c=""})=>{var ae,le;const{t:u}=Ue(),[d,h]=_.useState(!1),[m,p]=_.useState(""),[v,S]=_.useState(t||null),x=_.useRef(null),T=_.useRef(null),{x:b,y:C,strategy:E,refs:$,context:A,placement:D,middlewareData:R}=jr({open:d,onOpenChange:h,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:U,elements:J}){Object.assign(J.floating.style,{maxHeight:`${Math.min(U-10,300)}px`})},padding:8}),bs({element:T})],placement:"bottom-start",whileElementsMounted:$r}),j=vi(A),V=Rr(A),{getReferenceProps:Z,getFloatingProps:ee}=Fr([j,V]),{isMounted:se,styles:ge}=xi(A,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),fe=(Array.isArray(e)?e:[]).filter(U=>{if(!m.trim())return!0;const J=o==="es"&&U.labelES?U.labelES.toLowerCase():U.label.toLowerCase(),oe=U.code?U.code.toLowerCase():"";return J.includes(m.toLowerCase())||oe.includes(m.toLowerCase())}),he=U=>{S(U),h(!1),p(""),n(U)},G=()=>{h(!d),!d&&x.current&&setTimeout(()=>{var U;(U=x.current)==null||U.focus()},100)};_.useEffect(()=>{S(t)},[t]);const W=U=>{var J;return U?U.codeISO2?U.codeISO2.toLowerCase():((J=U.code)==null?void 0:J.toLowerCase())||"":""},Y=(ae=R.arrow)==null?void 0:ae.x,M=(le=R.arrow)==null?void 0:le.y,k={top:"bottom",right:"left",bottom:"top",left:"right"}[D.split("-")[0]],H=Z({onClick:G});return y.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[y.jsx("label",{className:`text-gray-600 font-600 group ${a&&"!text-red-500"} text-label`,children:r}),y.jsxs("div",{ref:$.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${a&&"border-red-500 hover:border-red-600"} ${se?"border-blue-400":"border-blue-100"}`,...H,children:[v!=null&&v.code?y.jsxs("div",{className:"flex items-center w-full",children:[W(v)&&y.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${W(v)}.png`,srcSet:`https://flagcdn.com/w40/${W(v)}.png 2x`,alt:v.label,onError:U=>{U.currentTarget.style.display="none"}}),y.jsxs("span",{className:"flex-grow",children:[o==="es"&&v.labelES?v.labelES:v.label,v.code?` (${v.code})`:u("select_country")]})]}):y.jsx("span",{className:"text-gray-500",children:i}),y.jsx("svg",{className:`w-16 h-16 transition-transform ${d?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),a&&y.jsx("p",{className:"mt-1 text-sm text-red-600",children:a}),se&&y.jsxs("div",{ref:$.setFloating,style:{position:E,top:C??0,left:b??0,...ge},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ee(),children:[y.jsx("div",{ref:T,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:Y!=null?`${Y}px`:"",top:M!=null?`${M}px`:"",right:"",bottom:"",[k]:"-2px",borderRight:k==="left"?"1px solid":"none",borderBottom:k==="top"?"1px solid":"none",borderLeft:k==="right"?"1px solid":"none",borderTop:k==="bottom"?"1px solid":"none"}}),y.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:y.jsx("input",{ref:x,type:"text",className:"w-full p-16",placeholder:u("search")+"...",value:m,onChange:U=>p(U.target.value),onClick:U=>U.stopPropagation(),autoFocus:!0})}),y.jsx("div",{children:fe.length>0?y.jsx("ul",{className:"flex flex-col",children:fe.map((U,J)=>{var re;const oe=U.codeISO2?U.codeISO2.toLowerCase():((re=U.code)==null?void 0:re.toLowerCase())||"";return y.jsxs("li",{className:"flex items-center gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:de=>{de.stopPropagation(),he(U)},children:[oe&&y.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${oe}.png`,srcSet:`https://flagcdn.com/w40/${oe}.png 2x`,alt:U.label,onError:de=>{de.currentTarget.style.display="none"}}),y.jsxs("span",{children:[o==="es"&&U.labelES?U.labelES:U.label,U.code?` (${U.code})`:"Country not found"]})]},`${U.code}-${J}`)})}):y.jsx("div",{className:"px-3 py-2 text-gray-500",children:"No countries found"})})]})]})},dh=({variant:e="filled",color:t,size:n="base",shadow:r="none",icon:i,iconProps:o={},children:a,className:c,...u})=>{const{defaultColorScheme:d}=Ue(),h=t||d;return y.jsx("button",{...u,className:`${BN(e,h,n,r)} ${c}`,children:i?y.jsx(Pe,{...o,className:jo(n),icon:i}):a})};function Lk(e){return e!==null&&typeof e=="object"&&"name"in e&&"size"in e&&"type"in e&&typeof e.name=="string"&&typeof e.size=="number"&&typeof e.type=="string"}const Rk=({src:e,alt:t,isEditable:n=!1,onChange:r,className:i="",name:o,control:a,user:c})=>{const[u,d]=_.useState(e||null),[h,m]=_.useState(!!e),p=_.useRef(null),v=hr.useController({name:o,control:a}),S=!!a;_.useEffect(()=>{if(S){const C=v==null?void 0:v.field.value;if(Lk(C)){const E=URL.createObjectURL(C);return d(E),m(!0),()=>URL.revokeObjectURL(E)}else typeof C=="string"&&C&&C!==e?(d(C),m(!0)):e?(d(e),m(!0)):(d(null),m(!1))}},[v==null?void 0:v.field.value,e]);const x=()=>{var C;n&&((C=p.current)==null||C.click())},T=C=>{var $;const E=($=C.target.files)==null?void 0:$[0];if(E){const A=URL.createObjectURL(E);d(A),m(!0),S&&(v==null||v.field.onChange(E)),r&&r(E)}},b=C=>{C.stopPropagation(),d(null),m(!1),p.current&&(p.current.value=""),S&&(v==null||v.field.onChange(null)),r&&r(null)};return y.jsxs("div",{className:"relative flex items-center gap-10",children:[n&&h&&y.jsx("button",{type:"button",onClick:b,className:"bg-red-500 text-white rounded-full w-20 h-20 flex items-center justify-center hover:bg-red-600 focus:outline-none","aria-label":"Eliminar imagen",children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[y.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),y.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),y.jsxs("div",{className:`relative flex items-center justify-center h-40 w-40 ${n?"cursor-pointer hover:opacity-80":""} ${i}`,onClick:x,children:[u?y.jsx("img",{src:u,alt:t,className:"w-full h-full object-cover rounded-full"}):y.jsx(v2,{size:60,user:c}),n&&y.jsxs(y.Fragment,{children:[y.jsx("input",{type:"file",ref:C=>{p.current=C,v&&v.field.ref(C)},onChange:T,onBlur:v==null?void 0:v.field.onBlur,accept:"image/*",className:"hidden"}),!h&&y.jsx("div",{className:"absolute bottom-0 right-0 bg-blue-100 rounded-full h-20 w-20 flex items-center justify-center",children:y.jsx(Pe,{icon:J5,className:"text-blue-500"})})]})]})]})},jk=fh({name:Br(),base64:Br()}),Fk=({imageUrl:e,title:t,subtitle:n})=>y.jsxs("section",{className:"gap-10 flex flex-col items-center justify-center",children:[y.jsx("img",{src:e,alt:t,width:100,height:100}),y.jsx("h1",{className:"font-bold text-2xl align-middle",children:t}),y.jsx("p",{className:"text-lg align-middle font-semibold text-gray-500",children:n})]}),Vk=e=>{switch(e){case"warning":return"bg-yellow-50 border-2 border-yellow-500";case"error":return"bg-red-50 border-2 border-red-500";default:return"bg-blue-50 border-2 border-blue-500"}},R2=e=>{switch(e){case"warning":return"text-yellow-500";case"error":return"text-red-500";default:return"text-blue-500"}},Bk=({description:e,title:t,className:n,icon:r,type:i="informative",iconClassName:o=""})=>y.jsxs("div",{className:`flex items-center gap-12 p-12 w-full ${Vk(i)} rounded-lg ${n}`,children:[r?y.jsx(Pe,{icon:r,className:`min-h-20 h-20 ${o} ${R2(i)}`}):y.jsx(Pe,{icon:mN,className:`min-h-20 h-20 ${o} ${R2(i)}`}),y.jsxs("div",{className:"flex flex-col gap-4",children:[y.jsx("h4",{className:"text-body-s font-500 text-black leading-none",children:t}),y.jsx("p",{className:"text-gray-600 text-body-s leading-none",children:e})]})]}),Wk=({size:e=16,strokeWidth:t=2,color:n="#1DA696",...r})=>{const i=(e-t)/2,o=2*Math.PI*i,{className:a="",...c}=r;return y.jsx("div",{...c,className:`relative flex items-center justify-center ${a}`,children:y.jsx("svg",{height:e,width:e,className:"animate-spin",children:y.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:o+" "+o,strokeDashoffset:o/4,r:i,cx:e/2,cy:e/2})})})},Uk=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:o=!1,leftSide:a})=>{const{field:{value:c="",onChange:u,ref:d,onBlur:h},fieldState:{error:m}}=hr.useController({name:n,control:t}),[p,v]=_.useState(!1),{t:S}=Ue();return y.jsxs("label",{className:`flex flex-col group gap-8 select-none ${o&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[y.jsx("h6",{className:`text-gray-600 font-600 group ${m&&"!text-red-500"} text-label ${o&&"text-gray-300"}`,children:e}),y.jsxs("label",{htmlFor:n,className:`
|
|
732
|
-
flex items-center justify-between gap-8
|
|
733
|
-
|
|
734
|
-
${m&&"!border-red-500"}
|
|
739
|
+
`+(c!==a?`result of cast: ${c}`:""))}return o}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((s,o)=>o.call(this,s,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,s){let{path:o,originalValue:a=t,strict:c=this.spec.strict}=n,u=t;c||(u=this._cast(u,Object.assign({assert:!1},n)));let d=[];for(let h of Object.values(this.internalTests))h&&d.push(h);this.runTests({path:o,value:u,originalValue:a,options:n,tests:d},r,h=>{if(h.length)return s(h,u);this.runTests({path:o,value:u,originalValue:a,options:n,tests:this.tests},r,s)})}runTests(t,n,r){let s=!1,{tests:o,value:a,originalValue:c,path:u,options:d}=t,h=b=>{s||(s=!0,n(b,a))},p=b=>{s||(s=!0,r(b,a))},m=o.length,x=[];if(!m)return p([]);let S={value:a,originalValue:c,path:u,options:d,schema:this};for(let b=0;b<o.length;b++){const T=o[b];T(S,h,function(A){A&&(Array.isArray(A)?x.push(...A):x.push(A)),--m<=0&&p(x)})}}asNestedTest({key:t,index:n,parent:r,parentPath:s,originalParent:o,options:a}){const c=t??n;if(c==null)throw TypeError("Must include `key` or `index` for nested validations");const u=typeof c=="number";let d=r[c];const h=Object.assign({},a,{strict:!0,parent:r,value:d,originalValue:o[c],key:void 0,[u?"index":"key"]:c,path:u||c.includes(".")?`${s||""}[${u?c:`"${c}"`}]`:(s?`${s}.`:"")+t});return(p,m,x)=>this.resolve(h)._validate(d,h,m,x)}validate(t,n){var r;let s=this.resolve(Object.assign({},n,{value:t})),o=(r=n==null?void 0:n.disableStackTrace)!=null?r:s.spec.disableStackTrace;return new Promise((a,c)=>s._validate(t,n,(u,d)=>{jt.isError(u)&&(u.value=d),c(u)},(u,d)=>{u.length?c(new jt(u,d,void 0,void 0,o)):a(d)}))}validateSync(t,n){var r;let s=this.resolve(Object.assign({},n,{value:t})),o,a=(r=n==null?void 0:n.disableStackTrace)!=null?r:s.spec.disableStackTrace;return s._validate(t,Object.assign({},n,{sync:!0}),(c,u)=>{throw jt.isError(c)&&(c.value=u),c},(c,u)=>{if(c.length)throw new jt(c,t,void 0,void 0,a);o=u}),o}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(jt.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(jt.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):vi(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=xi({message:n,name:"nullable",test(s){return s===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=xi({message:n,name:"optionality",test(s){return s===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Rn.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Rn.notNull){return this.nullability(!1,t)}required(t=Rn.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Rn.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),s=xi(n),o=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(o||a.OPTIONS.test===s.OPTIONS.test))),r.tests.push(s),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),s=y2(t).map(o=>new vs(o));return s.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(typeof n=="function"?new dl(s,n):dl.fromOptions(s,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=xi({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=Rn.oneOf){let r=this.clone();return t.forEach(s=>{r._whitelist.add(s),r._blacklist.delete(s)}),r.internalTests.whiteList=xi({message:n,name:"oneOf",skipAbsent:!0,test(s){let o=this.schema._whitelist,a=o.resolveAll(this.resolve);return a.includes(s)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:a}})}}),r}notOneOf(t,n=Rn.notOneOf){let r=this.clone();return t.forEach(s=>{r._blacklist.add(s),r._whitelist.delete(s)}),r.internalTests.blacklist=xi({message:n,name:"notOneOf",test(s){let o=this.schema._blacklist,a=o.resolveAll(this.resolve);return a.includes(s)?this.createError({params:{values:Array.from(o).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:s,optional:o,nullable:a}=n.spec;return{meta:s,label:r,optional:o,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,d,h)=>h.findIndex(p=>p.name===u.name)===d)}}}Fn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Fn.prototype[`${e}At`]=function(t,n,r={}){const{parent:s,parentPath:o,schema:a}=nk(this,t,n,r.context);return a[e](s&&s[o],Object.assign({},r,{parent:s,path:t}))};for(const e of["equals","is"])Fn.prototype[e]=Fn.prototype.oneOf;for(const e of["not","nope"])Fn.prototype[e]=Fn.prototype.notOneOf;const rk=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function sk(e){const t=th(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function th(e){var t,n;const r=rk.exec(e);return r?{year:lr(r[1]),month:lr(r[2],1)-1,day:lr(r[3],1),hour:lr(r[4]),minute:lr(r[5]),second:lr(r[6]),millisecond:r[7]?lr(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:lr(r[10]),minuteOffset:lr(r[11])}:null}function lr(e,t=0){return Number(e)||t}let ik=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ok=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,ak=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,lk="^\\d{4}-\\d{2}-\\d{2}",ck="\\d{2}:\\d{2}:\\d{2}",uk="(([+-]\\d{2}(:?\\d{2})?)|Z)",fk=new RegExp(`${lk}T${ck}(\\.\\d+)?${uk}$`),dk=e=>bs(e)||e===e.trim(),hk={}.toString();function Vr(){return new S2}class S2 extends Fn{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const s=t!=null&&t.toString?t.toString():t;return s===hk?t:s})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Rn.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=Lt.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=Lt.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=Lt.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,s,o;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:s,name:o}=n:s=n),this.test({name:o||"matches",message:s||Lt.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=Lt.email){return this.matches(ik,{name:"email",message:t,excludeEmptyString:!0})}url(t=Lt.url){return this.matches(ok,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Lt.uuid){return this.matches(ak,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,s;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:s=void 0}=t:n=t),this.matches(fk,{name:"datetime",message:n||Lt.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Lt.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:o=>{if(!o||r)return!0;const a=th(o);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||Lt.datetime_precision,params:{precision:s},skipAbsent:!0,test:o=>{if(!o||s==null)return!0;const a=th(o);return a?a.precision===s:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Lt.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:dk})}lowercase(t=Lt.lowercase){return this.transform(n=>bs(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>bs(n)||n===n.toLowerCase()})}uppercase(t=Lt.uppercase){return this.transform(n=>bs(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>bs(n)||n===n.toUpperCase()})}}Vr.prototype=S2.prototype;let pk=new Date(""),mk=e=>Object.prototype.toString.call(e)==="[object Date]";class nh extends Fn{constructor(){super({type:"date",check(t){return mk(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=sk(t),isNaN(t)?nh.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(vs.isRef(t))r=t;else{let s=this.cast(t);if(!this._typeCheck(s))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=s}return r}min(t,n=Qd.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(s){return s>=this.resolve(r)}})}max(t,n=Qd.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(s){return s<=this.resolve(r)}})}}nh.INVALID_DATE=pk;function gk(e,t=[]){let n=[],r=new Set,s=new Set(t.map(([a,c])=>`${a}-${c}`));function o(a,c){let u=xs.split(a)[0];r.add(u),s.has(`${c}-${u}`)||n.push([c,u])}for(const a of Object.keys(e)){let c=e[a];r.add(a),vs.isRef(c)&&c.isSibling?o(c.path,a):eh(c)&&"deps"in c&&c.deps.forEach(u=>o(u,a))}return YN.array(Array.from(r),n).reverse()}function T2(e,t){let n=1/0;return e.some((r,s)=>{var o;if((o=t.path)!=null&&o.includes(r))return n=s,!0}),n}function C2(e){return(t,n)=>T2(e,t)-T2(e,n)}const yk=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function ml(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=ml(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=ml(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(ml)}):"optional"in e?e.optional():e}const xk=(e,t)=>{const n=[...xs.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),s=xs.getter(xs.join(n),!0)(e);return!!(s&&r in s)};let E2=e=>Object.prototype.toString.call(e)==="[object Object]";function P2(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const vk=C2([]);function rh(e){return new A2(e)}class A2 extends Fn{constructor(t){super({type:"object",check(n){return E2(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=vk,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let s=super._cast(t,n);if(s===void 0)return this.getDefault(n);if(!this._typeCheck(s))return s;let o=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,c=[].concat(this._nodes,Object.keys(s).filter(p=>!this._nodes.includes(p))),u={},d=Object.assign({},n,{parent:u,__validating:n.__validating||!1}),h=!1;for(const p of c){let m=o[p],x=p in s;if(m){let S,b=s[p];d.path=(n.path?`${n.path}.`:"")+p,m=m.resolve({value:b,context:n.context,parent:u});let T=m instanceof Fn?m.spec:void 0,v=T==null?void 0:T.strict;if(T!=null&&T.strip){h=h||p in s;continue}S=!n.__validating||!v?m.cast(s[p],d):s[p],S!==void 0&&(u[p]=S)}else x&&!a&&(u[p]=s[p]);(x!==p in u||u[p]!==s[p])&&(h=!0)}return h?u:s}_validate(t,n={},r,s){let{from:o=[],originalValue:a=t,recursive:c=this.spec.recursive}=n;n.from=[{schema:this,value:a},...o],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(u,d)=>{if(!c||!E2(d)){s(u,d);return}a=a||d;let h=[];for(let p of this._nodes){let m=this.fields[p];!m||vs.isRef(m)||h.push(m.asNestedTest({options:n,key:p,parent:d,parentPath:n.path,originalParent:a}))}this.runTests({tests:h,value:d,originalValue:a,options:n},r,p=>{s(p.sort(this._sortErrors).concat(u),d)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[s,o]of Object.entries(this.fields)){const a=r[s];r[s]=a===void 0?o:a}return n.withMutation(s=>s.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var s;const o=this.fields[r];let a=t;(s=a)!=null&&s.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=o&&"getDefault"in o?o.getDefault(a):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=gk(t,n),r._sortErrors=C2(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let s=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),s=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),s)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return ml(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,s])=>t.includes(r)&&t.includes(s)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let s=xs.getter(t,!0);return this.transform(o=>{if(!o)return o;let a=o;return xk(o,t)&&(a=Object.assign({},o),r||delete a[t],a[n]=s(o)),a})}json(){return this.transform(yk)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||fl.exact,test(n){if(n==null)return!0;const r=P2(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=fl.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(s){if(s==null)return!0;const o=P2(this.schema,s);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=fl.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const s of Object.keys(n))r[t(s)]=n[s];return r})}camelCase(){return this.transformKeys(Jd.camelCase)}snakeCase(){return this.transformKeys(Jd.snakeCase)}constantCase(){return this.transformKeys(t=>Jd.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[o,a]of Object.entries(n.fields)){var s;let c=t;(s=c)!=null&&s.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[o]})),r.fields[o]=a.describe(c)}return r}}rh.prototype=A2.prototype,rh().shape({labelES:Vr().required(),label:Vr().required(),code:Vr().required(),codeISO2:Vr().required(),phone:Vr().required()});const M2=[{labelES:"Afganistán",label:"Afghanistan",codeISO2:"AF",code:"AFG",phone:"93"},{labelES:"Albania",label:"Albania",codeISO2:"AL",code:"ALB",phone:"355"},{labelES:"Alemania",label:"Germany",codeISO2:"DE",code:"DEU",phone:"49"},{labelES:"Andorra",label:"Andorra",codeISO2:"AD",code:"AND",phone:"376"},{labelES:"Angola",label:"Angola",codeISO2:"AO",code:"AGO",phone:"244"},{labelES:"Anguila",label:"Anguilla",codeISO2:"AI",code:"AIA",phone:"1 264"},{labelES:"Antártida",label:"Antarctica",codeISO2:"AQ",code:"ATA",phone:"672"},{labelES:"Antigua y Barbuda",label:"Antigua and Barbuda",codeISO2:"AG",code:"ATG",phone:"1 268"},{labelES:"Arabia Saudita",label:"Saudi Arabia",codeISO2:"SA",code:"SAU",phone:"966"},{labelES:"Argelia",label:"Algeria",codeISO2:"DZ",code:"DZA",phone:"213"},{labelES:"Argentina",label:"Argentina",codeISO2:"AR",code:"ARG",phone:"54"},{labelES:"Armenia",label:"Armenia",codeISO2:"AM",code:"ARM",phone:"374"},{labelES:"Aruba",label:"Aruba",codeISO2:"AW",code:"ABW",phone:"297"},{labelES:"Australia",label:"Australia",codeISO2:"AU",code:"AUS",phone:"61"},{labelES:"Austria",label:"Austria",codeISO2:"AT",code:"AUT",phone:"43"},{labelES:"Azerbaiyán",label:"Azerbaijan",codeISO2:"AZ",code:"AZE",phone:"994"},{labelES:"Bélgica",label:"Belgium",codeISO2:"BE",code:"BEL",phone:"32"},{labelES:"Bahamas",label:"Bahamas",codeISO2:"BS",code:"BHS",phone:"1 242"},{labelES:"Bahrein",label:"Bahrain",codeISO2:"BH",code:"BHR",phone:"973"},{labelES:"Bangladesh",label:"Bangladesh",codeISO2:"BD",code:"BGD",phone:"880"},{labelES:"Barbados",label:"Barbados",codeISO2:"BB",code:"BRB",phone:"1 246"},{labelES:"Belice",label:"Belize",codeISO2:"BZ",code:"BLZ",phone:"501"},{labelES:"Benín",label:"Benin",codeISO2:"BJ",code:"BEN",phone:"229"},{labelES:"Bhután",label:"Bhutan",codeISO2:"BT",code:"BTN",phone:"975"},{labelES:"Bielorrusia",label:"Belarus",codeISO2:"BY",code:"BLR",phone:"375"},{labelES:"Birmania",label:"Myanmar",codeISO2:"MM",code:"MMR",phone:"95"},{labelES:"Bolivia",label:"Bolivia",codeISO2:"BO",code:"BOL",phone:"591"},{labelES:"Bosnia y Herzegovina",label:"Bosnia and Herzegovina",codeISO2:"BA",code:"BIH",phone:"387"},{labelES:"Botsuana",label:"Botswana",codeISO2:"BW",code:"BWA",phone:"267"},{labelES:"Brasil",label:"Brazil",codeISO2:"BR",code:"BRA",phone:"55"},{labelES:"Brunéi",label:"Brunei",codeISO2:"BN",code:"BRN",phone:"673"},{labelES:"Bulgaria",label:"Bulgaria",codeISO2:"BG",code:"BGR",phone:"359"},{labelES:"Burkina Faso",label:"Burkina Faso",codeISO2:"BF",code:"BFA",phone:"226"},{labelES:"Burundi",label:"Burundi",codeISO2:"BI",code:"BDI",phone:"257"},{labelES:"Cabo Verde",label:"Cape Verde",codeISO2:"CV",code:"CPV",phone:"238"},{labelES:"Camboya",label:"Cambodia",codeISO2:"KH",code:"KHM",phone:"855"},{labelES:"Camerún",label:"Cameroon",codeISO2:"CM",code:"CMR",phone:"237"},{labelES:"Canadá",label:"Canada",codeISO2:"CA",code:"CAN",phone:"1"},{labelES:"Chad",label:"Chad",codeISO2:"TD",code:"TCD",phone:"235"},{labelES:"Chile",label:"Chile",codeISO2:"CL",code:"CHL",phone:"56"},{labelES:"China",label:"China",codeISO2:"CN",code:"CHN",phone:"86"},{labelES:"Chipre",label:"Cyprus",codeISO2:"CY",code:"CYP",phone:"357"},{labelES:"Ciudad del Vaticano",label:"Vatican City State",codeISO2:"VA",code:"VAT",phone:"39"},{labelES:"Colombia",label:"Colombia",codeISO2:"CO",code:"COL",phone:"57"},{labelES:"Comoras",label:"Comoros",codeISO2:"KM",code:"COM",phone:"269"},{labelES:"República del Congo",label:"Republic of the Congo",codeISO2:"CG",code:"COG",phone:"242"},{labelES:"República Democrática del Congo",label:"Democratic Republic of the Congo",codeISO2:"CD",code:"COD",phone:"243"},{labelES:"Corea del Norte",label:"North Korea",codeISO2:"KP",code:"PRK",phone:"850"},{labelES:"Corea del Sur",label:"South Korea",codeISO2:"KR",code:"KOR",phone:"82"},{labelES:"Costa de Marfil",label:"Ivory Coast",codeISO2:"CI",code:"CIV",phone:"225"},{labelES:"Costa Rica",label:"Costa Rica",codeISO2:"CR",code:"CRI",phone:"506"},{labelES:"Croacia",label:"Croatia",codeISO2:"HR",code:"HRV",phone:"385"},{labelES:"Cuba",label:"Cuba",codeISO2:"CU",code:"CUB",phone:"53"},{labelES:"Curazao",label:"Curaçao",codeISO2:"CW",code:"CWU",phone:"5999"},{labelES:"Dinamarca",label:"Denmark",codeISO2:"DK",code:"DNK",phone:"45"},{labelES:"Dominica",label:"Dominica",codeISO2:"DM",code:"DMA",phone:"1 767"},{labelES:"Ecuador",label:"Ecuador",codeISO2:"EC",code:"ECU",phone:"593"},{labelES:"Egipto",label:"Egypt",codeISO2:"EG",code:"EGY",phone:"20"},{labelES:"El Salvador",label:"El Salvador",codeISO2:"SV",code:"SLV",phone:"503"},{labelES:"Emiratos Árabes Unidos",label:"United Arab Emirates",codeISO2:"AE",code:"ARE",phone:"971"},{labelES:"Eritrea",label:"Eritrea",codeISO2:"ER",code:"ERI",phone:"291"},{labelES:"Eslovaquia",label:"Slovakia",codeISO2:"SK",code:"SVK",phone:"421"},{labelES:"Eslovenia",label:"Slovenia",codeISO2:"SI",code:"SVN",phone:"386"},{labelES:"España",label:"Spain",codeISO2:"ES",code:"ESP",phone:"34"},{labelES:"Estados Unidos de América",label:"United States of America",codeISO2:"US",code:"USA",phone:"1"},{labelES:"Estonia",label:"Estonia",codeISO2:"EE",code:"EST",phone:"372"},{labelES:"Etiopía",label:"Ethiopia",codeISO2:"ET",code:"ETH",phone:"251"},{labelES:"Filipinas",label:"Philippines",codeISO2:"PH",code:"PHL",phone:"63"},{labelES:"Finlandia",label:"Finland",codeISO2:"FI",code:"FIN",phone:"358"},{labelES:"Fiyi",label:"Fiji",codeISO2:"FJ",code:"FJI",phone:"679"},{labelES:"Francia",label:"France",codeISO2:"FR",code:"FRA",phone:"33"},{labelES:"Gabón",label:"Gabon",codeISO2:"GA",code:"GAB",phone:"241"},{labelES:"Gambia",label:"Gambia",codeISO2:"GM",code:"GMB",phone:"220"},{labelES:"Georgia",label:"Georgia",codeISO2:"GE",code:"GEO",phone:"995"},{labelES:"Ghana",label:"Ghana",codeISO2:"GH",code:"GHA",phone:"233"},{labelES:"Gibraltar",label:"Gibraltar",codeISO2:"GI",code:"GIB",phone:"350"},{labelES:"Granada",label:"Grenada",codeISO2:"GD",code:"GRD",phone:"1 473"},{labelES:"Grecia",label:"Greece",codeISO2:"GR",code:"GRC",phone:"30"},{labelES:"Groenlandia",label:"Greenland",codeISO2:"GL",code:"GRL",phone:"299"},{labelES:"Guadalupe",label:"Guadeloupe",codeISO2:"GP",code:"GLP",phone:"590"},{labelES:"Guam",label:"Guam",codeISO2:"GU",code:"GUM",phone:"1 671"},{labelES:"Guatemala",label:"Guatemala",codeISO2:"GT",code:"GTM",phone:"502"},{labelES:"Guayana Francesa",label:"French Guiana",codeISO2:"GF",code:"GUF",phone:"594"},{labelES:"Guernsey",label:"Guernsey",codeISO2:"GG",code:"GGY",phone:"44"},{labelES:"Guinea",label:"Guinea",codeISO2:"GN",code:"GIN",phone:"224"},{labelES:"Guinea Ecuatorial",label:"Equatorial Guinea",codeISO2:"GQ",code:"GNQ",phone:"240"},{labelES:"Guinea-Bissau",label:"Guinea-Bissau",codeISO2:"GW",code:"GNB",phone:"245"},{labelES:"Guyana",label:"Guyana",codeISO2:"GY",code:"GUY",phone:"592"},{labelES:"Haití",label:"Haiti",codeISO2:"HT",code:"HTI",phone:"509"},{labelES:"Honduras",label:"Honduras",codeISO2:"HN",code:"HND",phone:"504"},{labelES:"Hong kong",label:"Hong Kong",codeISO2:"HK",code:"HKG",phone:"852"},{labelES:"Hungría",label:"Hungary",codeISO2:"HU",code:"HUN",phone:"36"},{labelES:"India",label:"India",codeISO2:"IN",code:"IND",phone:"91"},{labelES:"Indonesia",label:"Indonesia",codeISO2:"ID",code:"IDN",phone:"62"},{labelES:"Irán",label:"Iran",codeISO2:"IR",code:"IRN",phone:"98"},{labelES:"Irak",label:"Iraq",codeISO2:"IQ",code:"IRQ",phone:"964"},{labelES:"Irlanda",label:"Ireland",codeISO2:"IE",code:"IRL",phone:"353"},{labelES:"Isla Bouvet",label:"Bouvet Island",codeISO2:"BV",code:"BVT",phone:""},{labelES:"Isla de Man",label:"Isle of Man",codeISO2:"IM",code:"IMN",phone:"44"},{labelES:"Isla de Navidad",label:"Christmas Island",codeISO2:"CX",code:"CXR",phone:"61"},{labelES:"Isla Norfolk",label:"Norfolk Island",codeISO2:"NF",code:"NFK",phone:"672"},{labelES:"Islandia",label:"Iceland",codeISO2:"IS",code:"ISL",phone:"354"},{labelES:"Islas Bermudas",label:"Bermuda Islands",codeISO2:"BM",code:"BMU",phone:"1 441"},{labelES:"Islas Caimán",label:"Cayman Islands",codeISO2:"KY",code:"CYM",phone:"1 345"},{labelES:"Islas Cocos (Keeling)",label:"Cocos (Keeling) Islands",codeISO2:"CC",code:"CCK",phone:"61"},{labelES:"Islas Cook",label:"Cook Islands",codeISO2:"CK",code:"COK",phone:"682"},{labelES:"Islas de Åland",label:"Åland Islands",codeISO2:"AX",code:"ALA",phone:"358"},{labelES:"Islas Feroe",label:"Faroe Islands",codeISO2:"FO",code:"FRO",phone:"298"},{labelES:"Islas Georgias del Sur y Sandwich del Sur",label:"South Georgia and the South Sandwich Islands",codeISO2:"GS",code:"SGS",phone:"500"},{labelES:"Islas Heard y McDonald",label:"Heard Island and McDonald Islands",codeISO2:"HM",code:"HMD",phone:""},{labelES:"Islas Maldivas",label:"Maldives",codeISO2:"MV",code:"MDV",phone:"960"},{labelES:"Islas Malvinas",label:"Falkland Islands (Malvinas)",codeISO2:"FK",code:"FLK",phone:"500"},{labelES:"Islas Marianas del Norte",label:"Northern Mariana Islands",codeISO2:"MP",code:"MNP",phone:"1 670"},{labelES:"Islas Marshall",label:"Marshall Islands",codeISO2:"MH",code:"MHL",phone:"692"},{labelES:"Islas Pitcairn",label:"Pitcairn Islands",codeISO2:"PN",code:"PCN",phone:"870"},{labelES:"Islas Salomón",label:"Solomon Islands",codeISO2:"SB",code:"SLB",phone:"677"},{labelES:"Islas Turcas y Caicos",label:"Turks and Caicos Islands",codeISO2:"TC",code:"TCA",phone:"1 649"},{labelES:"Islas Ultramarinas Menores de Estados Unidos",label:"United States Minor Outlying Islands",codeISO2:"UM",code:"UMI",phone:"246"},{labelES:"Islas Vírgenes Británicas",label:"Virgin Islands",codeISO2:"VG",code:"VGB",phone:"1 284"},{labelES:"Islas Vírgenes de los Estados Unidos",label:"United States Virgin Islands",codeISO2:"VI",code:"VIR",phone:"1 340"},{labelES:"Israel",label:"Israel",codeISO2:"IL",code:"ISR",phone:"972"},{labelES:"Italia",label:"Italy",codeISO2:"IT",code:"ITA",phone:"39"},{labelES:"Jamaica",label:"Jamaica",codeISO2:"JM",code:"JAM",phone:"1 876"},{labelES:"Japón",label:"Japan",codeISO2:"JP",code:"JPN",phone:"81"},{labelES:"Jersey",label:"Jersey",codeISO2:"JE",code:"JEY",phone:"44"},{labelES:"Jordania",label:"Jordan",codeISO2:"JO",code:"JOR",phone:"962"},{labelES:"Kazajistán",label:"Kazakhstan",codeISO2:"KZ",code:"KAZ",phone:"7"},{labelES:"Kenia",label:"Kenya",codeISO2:"KE",code:"KEN",phone:"254"},{labelES:"Kirguistán",label:"Kyrgyzstan",codeISO2:"KG",code:"KGZ",phone:"996"},{labelES:"Kiribati",label:"Kiribati",codeISO2:"KI",code:"KIR",phone:"686"},{labelES:"Kuwait",label:"Kuwait",codeISO2:"KW",code:"KWT",phone:"965"},{labelES:"Líbano",label:"Lebanon",codeISO2:"LB",code:"LBN",phone:"961"},{labelES:"Laos",label:"Laos",codeISO2:"LA",code:"LAO",phone:"856"},{labelES:"Lesoto",label:"Lesotho",codeISO2:"LS",code:"LSO",phone:"266"},{labelES:"Letonia",label:"Latvia",codeISO2:"LV",code:"LVA",phone:"371"},{labelES:"Liberia",label:"Liberia",codeISO2:"LR",code:"LBR",phone:"231"},{labelES:"Libia",label:"Libya",codeISO2:"LY",code:"LBY",phone:"218"},{labelES:"Liechtenstein",label:"Liechtenstein",codeISO2:"LI",code:"LIE",phone:"423"},{labelES:"Lituania",label:"Lithuania",codeISO2:"LT",code:"LTU",phone:"370"},{labelES:"Luxemburgo",label:"Luxembourg",codeISO2:"LU",code:"LUX",phone:"352"},{labelES:"México",label:"Mexico",codeISO2:"MX",code:"MEX",phone:"52"},{labelES:"Mónaco",label:"Monaco",codeISO2:"MC",code:"MCO",phone:"377"},{labelES:"Macao",label:"Macao",codeISO2:"MO",code:"MAC",phone:"853"},{labelES:"Macedônia",label:"Macedonia",codeISO2:"MK",code:"MKD",phone:"389"},{labelES:"Madagascar",label:"Madagascar",codeISO2:"MG",code:"MDG",phone:"261"},{labelES:"Malasia",label:"Malaysia",codeISO2:"MY",code:"MYS",phone:"60"},{labelES:"Malawi",label:"Malawi",codeISO2:"MW",code:"MWI",phone:"265"},{labelES:"Mali",label:"Mali",codeISO2:"ML",code:"MLI",phone:"223"},{labelES:"Malta",label:"Malta",codeISO2:"MT",code:"MLT",phone:"356"},{labelES:"Marruecos",label:"Morocco",codeISO2:"MA",code:"MAR",phone:"212"},{labelES:"Martinica",label:"Martinique",codeISO2:"MQ",code:"MTQ",phone:"596"},{labelES:"Mauricio",label:"Mauritius",codeISO2:"MU",code:"MUS",phone:"230"},{labelES:"Mauritania",label:"Mauritania",codeISO2:"MR",code:"MRT",phone:"222"},{labelES:"Mayotte",label:"Mayotte",codeISO2:"YT",code:"MYT",phone:"262"},{labelES:"Micronesia",label:"Estados Federados de",codeISO2:"FM",code:"FSM",phone:"691"},{labelES:"Moldavia",label:"Moldova",codeISO2:"MD",code:"MDA",phone:"373"},{labelES:"Mongolia",label:"Mongolia",codeISO2:"MN",code:"MNG",phone:"976"},{labelES:"Montenegro",label:"Montenegro",codeISO2:"ME",code:"MNE",phone:"382"},{labelES:"Montserrat",label:"Montserrat",codeISO2:"MS",code:"MSR",phone:"1 664"},{labelES:"Mozambique",label:"Mozambique",codeISO2:"MZ",code:"MOZ",phone:"258"},{labelES:"Namibia",label:"Namibia",codeISO2:"NA",code:"NAM",phone:"264"},{labelES:"Nauru",label:"Nauru",codeISO2:"NR",code:"NRU",phone:"674"},{labelES:"Nepal",label:"Nepal",codeISO2:"NP",code:"NPL",phone:"977"},{labelES:"Nicaragua",label:"Nicaragua",codeISO2:"NI",code:"NIC",phone:"505"},{labelES:"Niger",label:"Niger",codeISO2:"NE",code:"NER",phone:"227"},{labelES:"Nigeria",label:"Nigeria",codeISO2:"NG",code:"NGA",phone:"234"},{labelES:"Niue",label:"Niue",codeISO2:"NU",code:"NIU",phone:"683"},{labelES:"Noruega",label:"Norway",codeISO2:"NO",code:"NOR",phone:"47"},{labelES:"Nueva Caledonia",label:"New Caledonia",codeISO2:"NC",code:"NCL",phone:"687"},{labelES:"Nueva Zelanda",label:"New Zealand",codeISO2:"NZ",code:"NZL",phone:"64"},{labelES:"Omán",label:"Oman",codeISO2:"OM",code:"OMN",phone:"968"},{labelES:"Países Bajos",label:"Netherlands",codeISO2:"NL",code:"NLD",phone:"31"},{labelES:"Pakistán",label:"Pakistan",codeISO2:"PK",code:"PAK",phone:"92"},{labelES:"Palau",label:"Palau",codeISO2:"PW",code:"PLW",phone:"680"},{labelES:"Palestina",label:"Palestine",codeISO2:"PS",code:"PSE",phone:"970"},{labelES:"Panamá",label:"Panama",codeISO2:"PA",code:"PAN",phone:"507"},{labelES:"Papúa Nueva Guinea",label:"Papua New Guinea",codeISO2:"PG",code:"PNG",phone:"675"},{labelES:"Paraguay",label:"Paraguay",codeISO2:"PY",code:"PRY",phone:"595"},{labelES:"Perú",label:"Peru",codeISO2:"PE",code:"PER",phone:"51"},{labelES:"Polinesia Francesa",label:"French Polynesia",codeISO2:"PF",code:"PYF",phone:"689"},{labelES:"Polonia",label:"Poland",codeISO2:"PL",code:"POL",phone:"48"},{labelES:"Portugal",label:"Portugal",codeISO2:"PT",code:"PRT",phone:"351"},{labelES:"Puerto Rico",label:"Puerto Rico",codeISO2:"PR",code:"PRI",phone:"1"},{labelES:"Qatar",label:"Qatar",codeISO2:"QA",code:"QAT",phone:"974"},{labelES:"Reino Unido",label:"United Kingdom",codeISO2:"GB",code:"GBR",phone:"44"},{labelES:"República Centroafricana",label:"Central African Republic",codeISO2:"CF",code:"CAF",phone:"236"},{labelES:"República Checa",label:"Czech Republic",codeISO2:"CZ",code:"CZE",phone:"420"},{labelES:"República Dominicana",label:"Dominican Republic",codeISO2:"DO",code:"DOM",phone:"1 809"},{labelES:"República de Sudán del Sur",label:"South Sudan",codeISO2:"SS",code:"SSD",phone:"211"},{labelES:"Reunión",label:"Réunion",codeISO2:"RE",code:"REU",phone:"262"},{labelES:"Ruanda",label:"Rwanda",codeISO2:"RW",code:"RWA",phone:"250"},{labelES:"Rumanía",label:"Romania",codeISO2:"RO",code:"ROU",phone:"40"},{labelES:"Rusia",label:"Russia",codeISO2:"RU",code:"RUS",phone:"7"},{labelES:"Sahara Occidental",label:"Western Sahara",codeISO2:"EH",code:"ESH",phone:"212"},{labelES:"Samoa",label:"Samoa",codeISO2:"WS",code:"WSM",phone:"685"},{labelES:"Samoa Americana",label:"American Samoa",codeISO2:"AS",code:"ASM",phone:"1 684"},{labelES:"San Bartolomé",label:"Saint Barthélemy",codeISO2:"BL",code:"BLM",phone:"590"},{labelES:"San Cristóbal y Nieves",label:"Saint Kitts and Nevis",codeISO2:"KN",code:"KNA",phone:"1 869"},{labelES:"San Marino",label:"San Marino",codeISO2:"SM",code:"SMR",phone:"378"},{labelES:"San Martín (Francia)",label:"Saint Martin (French part)",codeISO2:"MF",code:"MAF",phone:"1 599"},{labelES:"San Pedro y Miquelón",label:"Saint Pierre and Miquelon",codeISO2:"PM",code:"SPM",phone:"508"},{labelES:"San Vicente y las Granadinas",label:"Saint Vincent and the Grenadines",codeISO2:"VC",code:"VCT",phone:"1 784"},{labelES:"Santa Elena",label:"Ascensión y Tristán de Acuña",codeISO2:"SH",code:"SHN",phone:"290"},{labelES:"Santa Lucía",label:"Saint Lucia",codeISO2:"LC",code:"LCA",phone:"1 758"},{labelES:"Santo Tomé y Príncipe",label:"Sao Tome and Principe",codeISO2:"ST",code:"STP",phone:"239"},{labelES:"Senegal",label:"Senegal",codeISO2:"SN",code:"SEN",phone:"221"},{labelES:"Serbia",label:"Serbia",codeISO2:"RS",code:"SRB",phone:"381"},{labelES:"Seychelles",label:"Seychelles",codeISO2:"SC",code:"SYC",phone:"248"},{labelES:"Sierra Leona",label:"Sierra Leone",codeISO2:"SL",code:"SLE",phone:"232"},{labelES:"Singapur",label:"Singapore",codeISO2:"SG",code:"SGP",phone:"65"},{labelES:"Sint Maarten",label:"Sint Maarten",codeISO2:"SX",code:"SMX",phone:"1 721"},{labelES:"Siria",label:"Syria",codeISO2:"SY",code:"SYR",phone:"963"},{labelES:"Somalia",label:"Somalia",codeISO2:"SO",code:"SOM",phone:"252"},{labelES:"Sri lanka",label:"Sri Lanka",codeISO2:"LK",code:"LKA",phone:"94"},{labelES:"Sudáfrica",label:"South Africa",codeISO2:"ZA",code:"ZAF",phone:"27"},{labelES:"Sudán",label:"Sudan",codeISO2:"SD",code:"SDN",phone:"249"},{labelES:"Suecia",label:"Sweden",codeISO2:"SE",code:"SWE",phone:"46"},{labelES:"Suiza",label:"Switzerland",codeISO2:"CH",code:"CHE",phone:"41"},{labelES:"Surinám",label:"Suriname",codeISO2:"SR",code:"SUR",phone:"597"},{labelES:"Svalbard y Jan Mayen",label:"Svalbard and Jan Mayen",codeISO2:"SJ",code:"SJM",phone:"47"},{labelES:"Swazilandia",label:"Swaziland",codeISO2:"SZ",code:"SWZ",phone:"268"},{labelES:"Tayikistán",label:"Tajikistan",codeISO2:"TJ",code:"TJK",phone:"992"},{labelES:"Tailandia",label:"Thailand",codeISO2:"TH",code:"THA",phone:"66"},{labelES:"Taiwán",label:"Taiwan",codeISO2:"TW",code:"TWN",phone:"886"},{labelES:"Tanzania",label:"Tanzania",codeISO2:"TZ",code:"TZA",phone:"255"},{labelES:"Territorio Británico del Océano Índico",label:"British Indian Ocean Territory",codeISO2:"IO",code:"IOT",phone:"246"},{labelES:"Territorios Australes y Antárticas Franceses",label:"French Southern Territories",codeISO2:"TF",code:"ATF",phone:""},{labelES:"Timor Oriental",label:"East Timor",codeISO2:"TL",code:"TLS",phone:"670"},{labelES:"Togo",label:"Togo",codeISO2:"TG",code:"TGO",phone:"228"},{labelES:"Tokelau",label:"Tokelau",codeISO2:"TK",code:"TKL",phone:"690"},{labelES:"Tonga",label:"Tonga",codeISO2:"TO",code:"TON",phone:"676"},{labelES:"Trinidad y Tobago",label:"Trinidad and Tobago",codeISO2:"TT",code:"TTO",phone:"1 868"},{labelES:"Tunez",label:"Tunisia",codeISO2:"TN",code:"TUN",phone:"216"},{labelES:"Turkmenistán",label:"Turkmenistan",codeISO2:"TM",code:"TKM",phone:"993"},{labelES:"Turquía",label:"Turkey",codeISO2:"TR",code:"TUR",phone:"90"},{labelES:"Tuvalu",label:"Tuvalu",codeISO2:"TV",code:"TUV",phone:"688"},{labelES:"Ucrania",label:"Ukraine",codeISO2:"UA",code:"UKR",phone:"380"},{labelES:"Uganda",label:"Uganda",codeISO2:"UG",code:"UGA",phone:"256"},{labelES:"Uruguay",label:"Uruguay",codeISO2:"UY",code:"URY",phone:"598"},{labelES:"Uzbekistán",label:"Uzbekistan",codeISO2:"UZ",code:"UZB",phone:"998"},{labelES:"Vanuatu",label:"Vanuatu",codeISO2:"VU",code:"VUT",phone:"678"},{labelES:"Venezuela",label:"Venezuela",codeISO2:"VE",code:"VEN",phone:"58"},{labelES:"Vietnam",label:"Vietnam",codeISO2:"VN",code:"VNM",phone:"84"},{labelES:"Wallis y Futuna",label:"Wallis and Futuna",codeISO2:"WF",code:"WLF",phone:"681"},{labelES:"Yemen",label:"Yemen",codeISO2:"YE",code:"YEM",phone:"967"},{labelES:"Yibuti",label:"Djibouti",codeISO2:"DJ",code:"DJI",phone:"253"},{labelES:"Zambia",label:"Zambia",codeISO2:"ZM",code:"ZMB",phone:"260"},{labelES:"Zimbabue",label:"Zimbabwe",codeISO2:"ZW",code:"ZWE",phone:"263"}],bk=({countries:e=M2,name:t,control:n,label:r="select_a_country",placeholder:s="type_to_search",language:o="en",className:a="",translateKey:c})=>{var Ee,Ve,ie;const{t:u}=Ue(),{field:d,fieldState:h}=vr.useController({name:t,control:n,rules:{validate:{}},defaultValue:null}),[p,m]=O.useState(!1),[x,S]=O.useState(""),[b,T]=O.useState(d.value||null),v=O.useRef(null),A=O.useRef(null),C=O.useRef(null),{x:I,y:P,strategy:D,refs:R,context:F,placement:W,middlewareData:Q}=ir({open:p,onOpenChange:m,middleware:[er(8),nr(),tr({padding:8}),Rr({apply({availableHeight:me,elements:De}){Object.assign(De.floating.style,{maxHeight:`${Math.min(me-10,300)}px`})},padding:8}),ms({element:A})],placement:"bottom-start",whileElementsMounted:Qn}),ee=rr(F),ae=sr(F),{getReferenceProps:ge,getFloatingProps:de}=or([ee,ae]),{isMounted:le,styles:ue}=ar(F,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),z=(Array.isArray(e)?e:[]).filter(me=>{if(!x.trim())return!0;const De=o==="es"&&me.labelES?me.labelES.toLowerCase():me.label.toLowerCase(),ft=me.code?me.code.toLowerCase():"";return De.includes(x.toLowerCase())||ft.includes(x.toLowerCase())}),K=me=>{T(me),m(!1),S(""),d.onChange(me)},$=()=>{m(!p),!p&&v.current&&setTimeout(()=>{var me;(me=v.current)==null||me.focus()},100)},k=()=>{setTimeout(()=>{p||d.onBlur()},200)};O.useEffect(()=>{T(d.value)},[d.value]),O.useEffect(()=>{const me=De=>{C.current&&!C.current.contains(De.target)&&d.onBlur()};return document.addEventListener("mousedown",me),()=>{document.removeEventListener("mousedown",me)}},[d]);const X=me=>{var De;return me?me.codeISO2?me.codeISO2.toLowerCase():((De=me.code)==null?void 0:De.toLowerCase())||"":""},U=(Ee=Q.arrow)==null?void 0:Ee.x,re=(Ve=Q.arrow)==null?void 0:Ve.y,B={top:"bottom",right:"left",bottom:"top",left:"right"}[W.split("-")[0]],J=ge({onClick:$,onBlur:k}),oe=u(r),se=u(s),fe=(ie=h.error)==null?void 0:ie.message;return g.jsxs("div",{ref:C,className:`w-full relative flex flex-col gap-8 ${a}`,children:[g.jsx("label",{className:`text-gray-600 font-600 group ${fe&&"!text-red-500"} text-label`,children:oe}),g.jsxs("div",{ref:R.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${fe&&"border-red-500 hover:border-red-600"} ${le?"border-blue-400":"border-blue-100"}`,...J,tabIndex:0,children:[b!=null&&b.code?g.jsxs("div",{className:"flex items-center w-full gap-10",children:[X(b)&&g.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${X(b)}.png`,srcSet:`https://flagcdn.com/w40/${X(b)}.png 2x`,alt:b.label,onError:me=>{me.currentTarget.style.display="none"}}),g.jsxs("span",{className:"flex-grow font-600 text-body-m",children:[o==="es"&&b.labelES?b.labelES:b.label,b.code?` (${b.code})`:u("select_country")]})]}):g.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:se}),g.jsx("svg",{className:`w-16 h-16 transition-transform ${p?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),fe&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(fe,{x:u(c||"")||u(t)})}),le&&g.jsxs("div",{ref:R.setFloating,style:{position:D,top:P??0,left:I??0,...ue},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...de(),children:[g.jsx("div",{ref:A,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:U!=null?`${U}px`:"",top:re!=null?`${re}px`:"",right:"",bottom:"",[B]:"-2px",borderRight:B==="left"?"1px solid":"none",borderBottom:B==="top"?"1px solid":"none",borderLeft:B==="right"?"1px solid":"none",borderTop:B==="bottom"?"1px solid":"none"}}),g.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:g.jsx("input",{ref:v,type:"text",className:"w-full p-16 text-body-s",placeholder:u("search")+"...",value:x,onChange:me=>S(me.target.value),onClick:me=>me.stopPropagation(),onBlur:me=>{me.stopPropagation()},autoFocus:!0})}),g.jsx("div",{children:z.length>0?g.jsx("ul",{className:"flex flex-col",children:z.map((me,De)=>{var ws;const ft=me.codeISO2?me.codeISO2.toLowerCase():((ws=me.code)==null?void 0:ws.toLowerCase())||"";return g.jsxs("li",{className:"flex items-center gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:dt=>{dt.stopPropagation(),K(me)},children:[ft&&g.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${ft}.png`,srcSet:`https://flagcdn.com/w40/${ft}.png 2x`,alt:me.label,onError:dt=>{dt.currentTarget.style.display="none"}}),g.jsxs("span",{children:[o==="es"&&me.labelES?me.labelES:me.label,me.code?` (${me.code})`:"Country not found"]})]},`${me.code}-${De}`)})}):g.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},wk=({country:e})=>{const t=n=>{var r;return n?n.codeISO2?n.codeISO2.toLowerCase():((r=n.code)==null?void 0:r.toLowerCase())||"":""};return g.jsxs("div",{className:"flex items-center gap-8",children:[g.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${t(e)}.png`,srcSet:`https://flagcdn.com/w40/${t(e)}.png 2x`,alt:e.label,onError:n=>{n.currentTarget.style.display="none"}}),g.jsx("p",{className:"text-body-s text-gray-600",children:e.label})]})},Sk=({countries:e,name:t,control:n,label:r="select_a_country",placeholder:s="type_to_search",language:o="en",className:a=""})=>{const{t:c}=Ue();return g.jsx(vr.Controller,{name:t,control:n,render:({field:{onChange:u,value:d},fieldState:{error:h}})=>g.jsx(Tk,{countries:e,value:d,onChange:u,label:c(r),placeholder:c(s),language:o,error:h==null?void 0:h.message,className:a})})},Tk=({countries:e,value:t,onChange:n,label:r="select_a_country",placeholder:s="type_to_search",language:o="en",error:a,className:c=""})=>{var U,re;const{t:u}=Ue(),[d,h]=O.useState(!1),[p,m]=O.useState(""),[x,S]=O.useState(t||null),b=O.useRef(null),T=O.useRef(null),{x:v,y:A,strategy:C,refs:I,context:P,placement:D,middlewareData:R}=ir({open:d,onOpenChange:h,middleware:[er(8),nr(),tr({padding:8}),Rr({apply({availableHeight:B,elements:J}){Object.assign(J.floating.style,{maxHeight:`${Math.min(B-10,300)}px`})},padding:8}),ms({element:T})],placement:"bottom-start",whileElementsMounted:Qn}),F=rr(P),W=sr(P),{getReferenceProps:Q,getFloatingProps:ee}=or([F,W]),{isMounted:ae,styles:ge}=ar(P,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),le=(Array.isArray(e)?e:[]).filter(B=>{if(!p.trim())return!0;const J=o==="es"&&B.labelES?B.labelES.toLowerCase():B.label.toLowerCase(),oe=B.code?B.code.toLowerCase():"";return J.includes(p.toLowerCase())||oe.includes(p.toLowerCase())}),ue=B=>{S(B),h(!1),m(""),n(B)},Y=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var B;(B=b.current)==null||B.focus()},100)};O.useEffect(()=>{S(t)},[t]);const z=B=>{var J;return B?B.codeISO2?B.codeISO2.toLowerCase():((J=B.code)==null?void 0:J.toLowerCase())||"":""},K=(U=R.arrow)==null?void 0:U.x,$=(re=R.arrow)==null?void 0:re.y,k={top:"bottom",right:"left",bottom:"top",left:"right"}[D.split("-")[0]],X=Q({onClick:Y});return g.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[g.jsx("label",{className:`text-gray-600 font-600 group ${a&&"!text-red-500"} text-label`,children:r}),g.jsxs("div",{ref:I.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${a&&"border-red-500 hover:border-red-600"} ${ae?"border-blue-400":"border-blue-100"}`,...X,children:[x!=null&&x.code?g.jsxs("div",{className:"flex items-center w-full",children:[z(x)&&g.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${z(x)}.png`,srcSet:`https://flagcdn.com/w40/${z(x)}.png 2x`,alt:x.label,onError:B=>{B.currentTarget.style.display="none"}}),g.jsxs("span",{className:"flex-grow",children:[o==="es"&&x.labelES?x.labelES:x.label,x.code?` (${x.code})`:u("select_country")]})]}):g.jsx("span",{className:"text-gray-500",children:s}),g.jsx("svg",{className:`w-16 h-16 transition-transform ${d?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),a&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:a}),ae&&g.jsxs("div",{ref:I.setFloating,style:{position:C,top:A??0,left:v??0,...ge},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ee(),children:[g.jsx("div",{ref:T,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:K!=null?`${K}px`:"",top:$!=null?`${$}px`:"",right:"",bottom:"",[k]:"-2px",borderRight:k==="left"?"1px solid":"none",borderBottom:k==="top"?"1px solid":"none",borderLeft:k==="right"?"1px solid":"none",borderTop:k==="bottom"?"1px solid":"none"}}),g.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:g.jsx("input",{ref:b,type:"text",className:"w-full p-16",placeholder:u("search")+"...",value:p,onChange:B=>m(B.target.value),onClick:B=>B.stopPropagation(),autoFocus:!0})}),g.jsx("div",{children:le.length>0?g.jsx("ul",{className:"flex flex-col",children:le.map((B,J)=>{var se;const oe=B.codeISO2?B.codeISO2.toLowerCase():((se=B.code)==null?void 0:se.toLowerCase())||"";return g.jsxs("li",{className:"flex items-center gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:fe=>{fe.stopPropagation(),ue(B)},children:[oe&&g.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${oe}.png`,srcSet:`https://flagcdn.com/w40/${oe}.png 2x`,alt:B.label,onError:fe=>{fe.currentTarget.style.display="none"}}),g.jsxs("span",{children:[o==="es"&&B.labelES?B.labelES:B.label,B.code?` (${B.code})`:"Country not found"]})]},`${B.code}-${J}`)})}):g.jsx("div",{className:"px-3 py-2 text-gray-500",children:"No countries found"})})]})]})},sh=({variant:e="filled",color:t,size:n="base",shadow:r="none",icon:s,iconProps:o={},children:a,className:c,...u})=>{const{defaultColorScheme:d}=Ue(),h=t||d;return g.jsx("button",{...u,className:`${EN(e,h,n,r)} ${c}`,children:s?g.jsx(Pe,{...o,className:Do(n),icon:s}):a})};function Ck(e){return e!==null&&typeof e=="object"&&"name"in e&&"size"in e&&"type"in e&&typeof e.name=="string"&&typeof e.size=="number"&&typeof e.type=="string"}const Ek=({src:e,alt:t,isEditable:n=!1,onChange:r,className:s="",name:o,control:a,user:c})=>{const[u,d]=O.useState(e||null),[h,p]=O.useState(!!e),m=O.useRef(null),x=vr.useController({name:o,control:a}),S=!!a;O.useEffect(()=>{if(S){const A=x==null?void 0:x.field.value;if(Ck(A)){const C=URL.createObjectURL(A);return d(C),p(!0),()=>URL.revokeObjectURL(C)}else typeof A=="string"&&A&&A!==e?(d(A),p(!0)):e?(d(e),p(!0)):(d(null),p(!1))}},[x==null?void 0:x.field.value,e]);const b=()=>{var A;n&&((A=m.current)==null||A.click())},T=A=>{var I;const C=(I=A.target.files)==null?void 0:I[0];if(C){const P=URL.createObjectURL(C);d(P),p(!0),S&&(x==null||x.field.onChange(C)),r&&r(C)}},v=A=>{A.stopPropagation(),d(null),p(!1),m.current&&(m.current.value=""),S&&(x==null||x.field.onChange(null)),r&&r(null)};return g.jsxs("div",{className:"relative flex items-center gap-10",children:[n&&h&&g.jsx("button",{type:"button",onClick:v,className:"bg-red-500 text-white rounded-full w-20 h-20 flex items-center justify-center hover:bg-red-600 focus:outline-none","aria-label":"Eliminar imagen",children:g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[g.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),g.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),g.jsxs("div",{className:`relative flex items-center justify-center h-40 w-40 ${n?"cursor-pointer hover:opacity-80":""} ${s}`,onClick:b,children:[u?g.jsx("img",{src:u,alt:t,className:"w-full h-full object-cover rounded-full"}):g.jsx(u2,{size:60,user:c}),n&&g.jsxs(g.Fragment,{children:[g.jsx("input",{type:"file",ref:A=>{m.current=A,x&&x.field.ref(A)},onChange:T,onBlur:x==null?void 0:x.field.onBlur,accept:"image/*",className:"hidden"}),!h&&g.jsx("div",{className:"absolute bottom-0 right-0 bg-blue-100 rounded-full h-20 w-20 flex items-center justify-center",children:g.jsx(Pe,{icon:HD,className:"text-blue-500"})})]})]})]})},Pk=rh({name:Vr(),base64:Vr()}),Ak=({imageUrl:e,title:t,subtitle:n})=>g.jsxs("section",{className:"gap-10 flex flex-col items-center justify-center",children:[g.jsx("img",{src:e,alt:t,width:100,height:100}),g.jsx("h1",{className:"font-bold text-2xl align-middle",children:t}),g.jsx("p",{className:"text-lg align-middle font-semibold text-gray-500",children:n})]}),Mk=e=>{switch(e){case"small":return{containerStyles:"p-12",titleStyles:"text-sm",descriptionStyles:"text-xs",iconStyles:"p-4 text-xs"};case"normal":return{containerStyles:"p-16",titleStyles:"text-14",descriptionStyles:"text-sm",iconStyles:"p-6 text-md"};default:return{containerStyles:"p-16",titleStyles:"text-14",descriptionStyles:"text-sm",iconStyles:"p-6 text-md"}}},Ok=e=>{switch(e){case"success":return"bg-green-100 text-green-500";case"warning":return"bg-yellow-100 text-yellow-500";case"error":return"bg-red-100 text-red-500";case"informative":return"bg-blue-100 text-blue-500";default:return"bg-blue-100 text-blue-500"}},$k=e=>{switch(e){case"success":return t0;case"warning":return Ui;case"error":return s0;case"informative":return n0;default:return"info"}},_k=({description:e,title:t,showIcon:n=!0,type:r="informative",size:s="normal"})=>{const o=Mk(s),a=$k(r),c=Ok(r);return g.jsx("div",{className:`w-full rounded-xl bg-white border border-blue-100 ${o.containerStyles}`,children:g.jsxs("div",{className:"space-y-8",children:[g.jsxs("div",{className:"flex items-center gap-12",children:[n&&g.jsx(Pe,{icon:a,className:`rounded-full ${o.iconStyles} ${c}`}),g.jsx("h5",{className:`font-semibold text-blue-900 self-center ${o.titleStyles}`,children:t})]}),e&&g.jsx("p",{className:`text-gray-500 leading-[16px] ${o.descriptionStyles}`,children:e})]})})},Ik=[{rotate:"0deg",delay:"0s"},{rotate:"90deg",delay:"0.3s"},{rotate:"270deg",delay:"0.9s"},{rotate:"180deg",delay:"0.6s"}],Dk=({variant:e="circle",size:t=16,color:n="#1DA696",...r})=>{const{className:s="",...o}=r;if(e==="cube"){const d=t/Math.SQRT2;return g.jsx("div",{...o,className:`relative flex items-center justify-center overflow-hidden ${s}`,style:{width:t,height:t},children:g.jsx("div",{className:"relative rotate-45",style:{width:d,height:d},children:Ik.map((h,p)=>g.jsx("div",{className:"float-left w-1/2 h-1/2 relative",style:{transform:`scale(1.1) rotate(${h.rotate})`},children:g.jsx("span",{className:"absolute inset-0 origin-bottom-right animate-sk-fold-cube",style:{backgroundColor:n,animationDelay:h.delay}})},p))})})}const a=Math.max(1,Math.round(t*.125)),c=(t-a)/2,u=2*Math.PI*c;return g.jsx("div",{...o,className:`relative flex items-center justify-center ${s}`,children:g.jsx("svg",{height:t,width:t,className:"animate-spin",children:g.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:a,strokeDasharray:`${u} ${u}`,strokeDashoffset:u/4,r:c,cx:t/2,cy:t/2})})})},Nk=({label:e,control:t,name:n,placeholder:r,className:s="",disabled:o=!1,size:a="md",leftSide:c})=>{const{field:{value:u="",onChange:d,ref:h,onBlur:p},fieldState:{error:m}}=vr.useController({name:n,control:t}),[x,S]=O.useState(!1),{t:b}=Ue(),v={sm:{container:"px-16 py-8",text:"text-sm",label:"text-sm",error:"text-sm",gap:"gap-8"},md:{container:"p-16",text:"text-14",label:"text-14",error:"text-sm",gap:"gap-8"}}[a];return g.jsxs("label",{className:`flex flex-col group select-none ${v.gap} ${o&&"cursor-not-allowed"} ${s}`,htmlFor:n,children:[g.jsx("h6",{className:`text-gray-600 font-600 group ${m&&"!text-red-500"} ${v.label} ${o&&"text-gray-300"}`,children:e}),g.jsxs("label",{htmlFor:n,className:`
|
|
740
|
+
flex items-center justify-between gap-8 ${v.container}
|
|
741
|
+
|
|
742
|
+
${m&&"!border-red-500"}
|
|
735
743
|
|
|
736
744
|
bg-light
|
|
737
|
-
|
|
738
|
-
w-full h-full rounded-full border
|
|
739
|
-
|
|
740
|
-
${
|
|
741
|
-
${!o&&"group-hover:border-blue-300"}
|
|
745
|
+
|
|
746
|
+
w-full h-full rounded-full border
|
|
747
|
+
|
|
748
|
+
${u&&!o?"border-blue-200":"border-blue-100"}
|
|
749
|
+
${!o&&"group-hover:border-blue-300"}
|
|
742
750
|
${o&&"cursor-not-allowed"}
|
|
743
|
-
|
|
751
|
+
|
|
744
752
|
group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
|
|
745
|
-
|
|
753
|
+
|
|
746
754
|
group-disabled:bg-gray-500
|
|
747
|
-
`,children:[a&&a,y.jsx("input",{id:n,type:p?"text":"password",autoComplete:"off","aria-autocomplete":"none",name:n,disabled:o,placeholder:r,value:c,onChange:x=>u(x.target.value),onBlur:h,ref:d,className:"group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none"}),y.jsx(Pe,{icon:p?qC:zC,className:"min-h-16 max-h-16 text-gray-400 hover:text-gray-500 transition-colors duration-150 cursor-pointer ease-in-out",onClick:()=>v(!p)})]}),y.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:m&&S(m.message||"",{x:S(n)})})]})},zk=({name:e,control:t,label:n="phone_number",placeholder:r="enter_phone_number",language:i="en",className:o="",translateKey:a,countries:c=L2})=>{var Ai,Sl,Wr,Tl;const{t:u}=Ue(),{field:d,fieldState:h}=hr.useController({name:e,control:t,rules:{validate:{}}}),m=((Ai=d.value)==null?void 0:Ai.split(" "))||[],p=m[0]||null,v=m[1]||"",S=c.find(xe=>p===xe.phone),[x,T]=_.useState(!1),[b,C]=_.useState(""),[E,$]=_.useState(S||null),[A,D]=_.useState(v),[R,j]=_.useState(!1),V=_.useRef(null),Z=_.useRef(null),ee=_.useRef(null),se=_.useRef(null),{x:ge,y:ue,strategy:fe,refs:he,context:G,placement:W,middlewareData:Y}=jr({open:x,onOpenChange:T,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:xe,elements:Qe}){Object.assign(Qe.floating.style,{maxHeight:`${Math.min(xe-10,300)}px`})},padding:8}),bs({element:Z})],placement:"bottom-start",whileElementsMounted:$r}),M=vi(G),k=Rr(G),{getReferenceProps:H,getFloatingProps:ae}=Fr([M,k]),{isMounted:le,styles:U}=xi(G,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),oe=(Array.isArray(c)?c:[]).filter(xe=>{if(!b.trim())return!0;const Qe=i==="es"&&xe.labelES?xe.labelES.toLowerCase():xe.label.toLowerCase(),Pt=xe.code?xe.code.toLowerCase():"",wn=xe.phone?xe.phone.toLowerCase():"";return Qe.includes(b.toLowerCase())||Pt.includes(b.toLowerCase())||wn.includes(b.toLowerCase())}),re=xe=>{$(xe),T(!1),C("");const Qe=`${xe.phone} ${A}`;d.onChange(Qe),setTimeout(()=>{var Pt;(Pt=ee.current)==null||Pt.focus()},100)},de=xe=>{const Qe=xe.target.value;if(D(Qe),E){const Pt=`${E.phone} ${Qe}`;d.onChange(Pt)}},Ce=()=>{T(!x),!x&&V.current&&setTimeout(()=>{var xe;(xe=V.current)==null||xe.focus()},100)},Ve=()=>{setTimeout(()=>{x||d.onBlur()},200)},ie=()=>{j(!0)},pe=()=>{j(!1)};_.useEffect(()=>{if(d.value){const xe=d.value.split(" "),Qe=xe[0]||"",Pt=xe[1]||"",wn=c.find(rr=>rr.phone===Qe);wn&&$(wn),D(Pt)}},[d.value,c]),_.useEffect(()=>{const xe=Qe=>{se.current&&!se.current.contains(Qe.target)&&d.onBlur()};return document.addEventListener("mousedown",xe),()=>{document.removeEventListener("mousedown",xe)}},[d]);const De=xe=>{var Qe;return xe?xe.codeISO2?xe.codeISO2.toLowerCase():((Qe=xe.code)==null?void 0:Qe.toLowerCase())||"":""},ft=(Sl=Y.arrow)==null?void 0:Sl.x,Ci=(Wr=Y.arrow)==null?void 0:Wr.y,dt={top:"bottom",right:"left",bottom:"top",left:"right"}[W.split("-")[0]],bl=H({onClick:Ce,onBlur:Ve}),wl=()=>h.error?"border-red-500":R||x?"border-blue-400":"border-blue-100",Pi=u(n),qt=u(r),bn=(Tl=h.error)==null?void 0:Tl.message;return y.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${o}`,children:[y.jsx("label",{className:`text-gray-600 font-600 group ${bn&&"!text-red-500"} text-label`,children:Pi}),y.jsxs("div",{ref:se,className:"flex items-center w-full",onMouseEnter:ie,onMouseLeave:pe,children:[y.jsxs("div",{ref:he.setReference,className:`flex items-center justify-between text-lg max-w-120 font-600 bg-light rounded-l-full p-16 cursor-pointer border border-r-0 transition-all duration-200 ${bn?"border-red-500":wl()}`,style:{minWidth:"140px"},...bl,tabIndex:0,children:[E!=null&&E.code?y.jsxs("div",{className:"flex items-center truncate",children:[De(E)&&y.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${De(E)}.png`,srcSet:`https://flagcdn.com/w40/${De(E)}.png 2x`,alt:E.label,onError:xe=>{xe.currentTarget.style.display="none"}}),y.jsxs("span",{children:["+",E.phone]})]}):y.jsx("span",{className:"text-gray-400 font-600 text-body-m truncate",children:u("select_country")}),y.jsx(Pe,{icon:r2,className:"w-14 h-14 min-w-14 min-h-14"})]}),y.jsx("input",{ref:ee,type:"tel",className:`placeholder:text-gray-400 flex-grow bg-light rounded-r-full font-600 text-body-m p-16 border transition-all duration-200 ${bn?"border-red-500":wl()}`,placeholder:qt,value:A,onChange:de,onBlur:Ve})]}),bn&&y.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(bn,{x:u(a||"")||e})}),le&&y.jsxs("div",{ref:he.setFloating,style:{position:fe,top:ue??0,left:ge??0,...U},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...ae(),children:[y.jsx("div",{ref:Z,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ft!=null?`${ft}px`:"",top:Ci!=null?`${Ci}px`:"",right:"",bottom:"",[dt]:"-2px",borderRight:dt==="left"?"1px solid":"none",borderBottom:dt==="top"?"1px solid":"none",borderLeft:dt==="right"?"1px solid":"none",borderTop:dt==="bottom"?"1px solid":"none"}}),y.jsx("div",{className:"sticky top-0 bg-white p-2 z-20 w-fit",children:y.jsx("input",{ref:V,type:"text",className:"w-fit p-16",placeholder:u("search")+"...",value:b,onChange:xe=>C(xe.target.value),onClick:xe=>xe.stopPropagation(),onBlur:xe=>{xe.stopPropagation()},autoFocus:!0})}),y.jsx("div",{children:oe.length>0?y.jsx("ul",{className:"flex flex-col",children:oe.map((xe,Qe)=>{var wn;const Pt=xe.codeISO2?xe.codeISO2.toLowerCase():((wn=xe.code)==null?void 0:wn.toLowerCase())||"";return y.jsxs("li",{className:"flex items-center justify-between gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:rr=>{rr.stopPropagation(),re(xe)},children:[Pt&&y.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Pt}.png`,srcSet:`https://flagcdn.com/w40/${Pt}.png 2x`,alt:xe.label,onError:rr=>{rr.currentTarget.style.display="none"}}),y.jsxs("span",{className:"text-gray-500",children:["+",xe.phone]})]},`${xe.code}-${Qe}`)})}):y.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},Gk={bgColor:"bg-blue-100",fillColor:"bg-blue-500"},Yk={bgColor:"bg-aqua-100",fillColor:"bg-aqua-500"},Hk=e=>{switch(e){case"aqua":return Yk;case"blue":default:return Gk}},qk=({progress:e,showPercentage:t=!1,color:n,className:r="",...i})=>{const{defaultColorScheme:o}=Ue(),a=n||o,{bgColor:c,fillColor:u}=Hk(a),d=Math.min(Math.max(e,0),100);return y.jsxs("div",{className:`flex items-center gap-12 ${r}`,...i,children:[y.jsx("div",{className:`w-full h-8 ${c} rounded-full`,children:y.jsx("div",{className:`h-full ${u} rounded-full transition-all duration-300 ease-in-out`,style:{width:`${d}%`}})}),t&&y.jsxs("span",{className:"text-sm text-gray-400 font-500",children:[d,"%"]})]})},Kk=()=>{const[e,t]=_.useState(!1),n=_.useRef(null),r=()=>{t(!0),setTimeout(()=>{var o;return(o=n.current)==null?void 0:o.focus()},100)},i=()=>{t(!1)};return y.jsx("div",{className:"relative flex items-center",children:y.jsxs("div",{className:`flex items-center justify-center bg-white shadow-md rounded-full transition-all duration-300 ease-in-out ${e?"w-[200px] h-[40px]":"size-[40px]"}`,children:[y.jsx("button",{onClick:r,className:"size-[40px] flex items-center justify-center rounded-full hover:bg-gray-100 transition-all",children:y.jsx(Pe,{icon:X5})}),y.jsx("input",{ref:n,type:"text",className:`w-full outline-none bg-transparent transition-all ${e?"w-full pr-[10px]":"w-0"}`,placeholder:"Buscar...",onBlur:i,style:{border:"none",outline:"none"}})]})})},Xk="w-fit transition-colors ease-in-out duration-200 flex items-center justify-center gap-12 px-24 py-7 text-base rounded-full font-600 bg-transparent",Zk={true:"bg-blue-100 text-blue-500 hover:bg-blue-100/80 active:bg-blue-100/50 !bg-blue-100",false:"text-gray-800 hover:bg-blue-100/40 hover:text-blue-500 active:bg-blue-100/20 active:text-blue-500"},Jk={true:"bg-aqua-100 text-aqua-500 hover:bg-aqua-100/80 active:bg-aqua-100/50 !bg-aqua-100",false:"text-gray-800 hover:bg-aqua-100/40 hover:text-aqua-500 active:bg-aqua-100/20 active:text-aqua-500"},Qk=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=Jk[n];break;case"blue":default:r=Zk[n];break}return Vn(Xk,r)},eL=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ue(),d=c||u,h=p=>{if(i){p.preventDefault();return}n==null||n(p)},m=`${Qk(r,d)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?y.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[a&&y.jsx(Pe,{icon:a,className:jo()}),e]}):y.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&y.jsx(Pe,{icon:a,className:jo()}),e]})},tL="w-fit transition-colors group ease-in-out duration-200 flex flex-col items-center justify-center gap-12 text-base font-600",nL={true:"text-blue-500 hover:text-blue-500",false:"text-gray-800 hover:text-blue-500"},rL={true:"text-aqua-500 hover:text-aqua-500",false:"text-gray-800 hover:text-aqua-500"},iL="flex h-32 w-32 items-center justify-center transition-colors ease-in-out duration-200 rounded-full",sL={true:"text-blue-500 bg-blue-100 rounded-full",false:"text-gray-800 hover:text-blue-500 active:text-blue-500 group-hover:bg-blue-100 group-hover:text-blue-500"},oL={true:"text-aqua-500 bg-aqua-100 rounded-full",false:"text-gray-800 hover:text-aqua-500 active:text-aqua-500 group-hover:bg-aqua-100 group-hover:text-aqua-500"},j2=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"blue":r=sL[n];break;case"aqua":default:r=oL[n];break}return Vn(iL,r)},aL=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=rL[n];break;case"blue":default:r=nL[n];break}return Vn(tL,r)},lL=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ue(),d=c||u,h=p=>{if(i){p.preventDefault();return}n==null||n(p)},m=`${aL(r,d)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?y.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[a&&y.jsx("div",{className:j2(r,d),children:y.jsx(Pe,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]}):y.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&y.jsx("div",{className:j2(r,d),children:y.jsx(Pe,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]})},cL=e=>{const{display:t,...n}=e;return t==="desktop"?y.jsx(eL,{...n}):t==="mobile"?y.jsx(lL,{...n}):null},uL=({options:e,name:t,control:n,label:r="Select an option",placeholder:i="Type to search...",className:o="",input:a=!0,dropdownStyle:c={},innerClassName:u="",showChevron:d=!0})=>y.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:h,value:m},fieldState:{error:p}})=>y.jsx(fL,{options:e,value:m,onChange:h,label:r,placeholder:i,error:p==null?void 0:p.message,className:o,input:a,dropdownStyle:c,innerClassName:u,showChevron:d})}),fL=({options:e,value:t,onChange:n,label:r="Select an option",placeholder:i="Type to search...",error:o,input:a=!0,className:c="",dropdownStyle:u={},innerClassName:d="",showChevron:h=!0})=>{const{t:m}=Ue(),[p,v]=_.useState(!1),[S,x]=_.useState(""),[T,b]=_.useState(t||null),C=_.useRef(null),E=_.useRef(null),{x:$,y:A,strategy:D,refs:R,context:j}=jr({open:p,onOpenChange:v,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:M,elements:k}){Object.assign(k.floating.style,{maxHeight:`${Math.min(M-10,300)}px`})},padding:8}),bs({element:E})],placement:"bottom-start",whileElementsMounted:$r}),V=vi(j),Z=Rr(j),{getReferenceProps:ee,getFloatingProps:se}=Fr([V,Z]),{isMounted:ge,styles:ue}=xi(j,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),fe=(()=>{const M=Array.isArray(e)?e:[];if(!S.trim())return M;const k=S.toLowerCase();return M.filter(H=>{const ae=H.label.toLowerCase(),le=H.key.toLowerCase();return ae.includes(k)||le.includes(k)})})(),he=M=>{b(M),v(!1),x(""),n(M)},G=()=>{v(!p),!p&&C.current&&setTimeout(()=>{var M;return(M=C.current)==null?void 0:M.focus()},100)};_.useEffect(()=>{b(t)},[t]);const W=ee({onClick:G}),Y=m(i);return y.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[y.jsx("h6",{className:`text-gray-600 font-600 group ${o?"!text-red-500":""} text-label`,children:r}),y.jsxs("div",{ref:R.setReference,className:`${d} flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
|
|
748
|
-
|
|
749
|
-
${o?"border-red-500 hover:border-red-600":""}
|
|
755
|
+
`,children:[c&&c,g.jsx("input",{id:n,type:x?"text":"password",autoComplete:"off","aria-autocomplete":"none",name:n,disabled:o,placeholder:r,value:u,onChange:A=>d(A.target.value),onBlur:p,ref:h,className:`group bg-transparent w-full h-full font-600 placeholder:font-600 ${v.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none`}),g.jsx(Pe,{icon:x?u5:a5,className:"min-h-16 max-h-16 text-gray-400 hover:text-gray-500 transition-colors duration-150 cursor-pointer ease-in-out",onClick:()=>S(!x)})]}),g.jsx("h4",{className:`font-500 text-red-500 leading-none ${v.error}`,children:m&&b(m.message||"",{x:b(n)})})]})},kk=({name:e,control:t,label:n="phone_number",placeholder:r="enter_phone_number",language:s="en",className:o="",translateKey:a,countries:c=M2})=>{var Ts,vl,Br,bl;const{t:u}=Ue(),{field:d,fieldState:h}=vr.useController({name:e,control:t,rules:{validate:{}}}),p=((Ts=d.value)==null?void 0:Ts.split(" "))||[],m=p[0]||null,x=p[1]||"",S=c.find(ve=>m===ve.phone),[b,T]=O.useState(!1),[v,A]=O.useState(""),[C,I]=O.useState(S||null),[P,D]=O.useState(x),[R,F]=O.useState(!1),W=O.useRef(null),Q=O.useRef(null),ee=O.useRef(null),ae=O.useRef(null),{x:ge,y:de,strategy:le,refs:ue,context:Y,placement:z,middlewareData:K}=ir({open:b,onOpenChange:T,middleware:[er(8),nr(),tr({padding:8}),Rr({apply({availableHeight:ve,elements:Ze}){Object.assign(Ze.floating.style,{maxHeight:`${Math.min(ve-10,300)}px`})},padding:8}),ms({element:Q})],placement:"bottom-start",whileElementsMounted:Qn}),$=rr(Y),k=sr(Y),{getReferenceProps:X,getFloatingProps:U}=or([$,k]),{isMounted:re,styles:B}=ar(Y,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),oe=(Array.isArray(c)?c:[]).filter(ve=>{if(!v.trim())return!0;const Ze=s==="es"&&ve.labelES?ve.labelES.toLowerCase():ve.label.toLowerCase(),Pt=ve.code?ve.code.toLowerCase():"",xn=ve.phone?ve.phone.toLowerCase():"";return Ze.includes(v.toLowerCase())||Pt.includes(v.toLowerCase())||xn.includes(v.toLowerCase())}),se=ve=>{I(ve),T(!1),A("");const Ze=`${ve.phone} ${P}`;d.onChange(Ze),setTimeout(()=>{var Pt;(Pt=ee.current)==null||Pt.focus()},100)},fe=ve=>{const Ze=ve.target.value;if(D(Ze),C){const Pt=`${C.phone} ${Ze}`;d.onChange(Pt)}},Ee=()=>{T(!b),!b&&W.current&&setTimeout(()=>{var ve;(ve=W.current)==null||ve.focus()},100)},Ve=()=>{setTimeout(()=>{b||d.onBlur()},200)},ie=()=>{F(!0)},me=()=>{F(!1)};O.useEffect(()=>{if(d.value){const ve=d.value.split(" "),Ze=ve[0]||"",Pt=ve[1]||"",xn=c.find(cr=>cr.phone===Ze);xn&&I(xn),D(Pt)}},[d.value,c]),O.useEffect(()=>{const ve=Ze=>{ae.current&&!ae.current.contains(Ze.target)&&d.onBlur()};return document.addEventListener("mousedown",ve),()=>{document.removeEventListener("mousedown",ve)}},[d]);const De=ve=>{var Ze;return ve?ve.codeISO2?ve.codeISO2.toLowerCase():((Ze=ve.code)==null?void 0:Ze.toLowerCase())||"":""},ft=(vl=K.arrow)==null?void 0:vl.x,ws=(Br=K.arrow)==null?void 0:Br.y,dt={top:"bottom",right:"left",bottom:"top",left:"right"}[z.split("-")[0]],yl=X({onClick:Ee,onBlur:Ve}),xl=()=>h.error?"border-red-500":R||b?"border-blue-400":"border-blue-100",Ss=u(n),qt=u(r),yn=(bl=h.error)==null?void 0:bl.message;return g.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${o}`,children:[g.jsx("label",{className:`text-gray-600 font-600 group ${yn&&"!text-red-500"} text-label`,children:Ss}),g.jsxs("div",{ref:ae,className:"flex items-center w-full",onMouseEnter:ie,onMouseLeave:me,children:[g.jsxs("div",{ref:ue.setReference,className:`flex items-center justify-between text-lg max-w-120 font-600 bg-light rounded-l-full p-16 cursor-pointer border border-r-0 transition-all duration-200 ${yn?"border-red-500":xl()}`,style:{minWidth:"140px"},...yl,tabIndex:0,children:[C!=null&&C.code?g.jsxs("div",{className:"flex items-center truncate",children:[De(C)&&g.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${De(C)}.png`,srcSet:`https://flagcdn.com/w40/${De(C)}.png 2x`,alt:C.label,onError:ve=>{ve.currentTarget.style.display="none"}}),g.jsxs("span",{children:["+",C.phone]})]}):g.jsx("span",{className:"text-gray-400 font-600 text-body-m truncate",children:u("select_country")}),g.jsx(Pe,{icon:r0,className:"w-14 h-14 min-w-14 min-h-14"})]}),g.jsx("input",{ref:ee,type:"tel",className:`placeholder:text-gray-400 flex-grow bg-light rounded-r-full font-600 text-body-m p-16 border transition-all duration-200 ${yn?"border-red-500":xl()}`,placeholder:qt,value:P,onChange:fe,onBlur:Ve})]}),yn&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(yn,{x:u(a||"")||e})}),re&&g.jsxs("div",{ref:ue.setFloating,style:{position:le,top:de??0,left:ge??0,...B},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...U(),children:[g.jsx("div",{ref:Q,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ft!=null?`${ft}px`:"",top:ws!=null?`${ws}px`:"",right:"",bottom:"",[dt]:"-2px",borderRight:dt==="left"?"1px solid":"none",borderBottom:dt==="top"?"1px solid":"none",borderLeft:dt==="right"?"1px solid":"none",borderTop:dt==="bottom"?"1px solid":"none"}}),g.jsx("div",{className:"sticky top-0 bg-white p-2 z-20 w-fit",children:g.jsx("input",{ref:W,type:"text",className:"w-fit p-16",placeholder:u("search")+"...",value:v,onChange:ve=>A(ve.target.value),onClick:ve=>ve.stopPropagation(),onBlur:ve=>{ve.stopPropagation()},autoFocus:!0})}),g.jsx("div",{children:oe.length>0?g.jsx("ul",{className:"flex flex-col",children:oe.map((ve,Ze)=>{var xn;const Pt=ve.codeISO2?ve.codeISO2.toLowerCase():((xn=ve.code)==null?void 0:xn.toLowerCase())||"";return g.jsxs("li",{className:"flex items-center justify-between gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:cr=>{cr.stopPropagation(),se(ve)},children:[Pt&&g.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Pt}.png`,srcSet:`https://flagcdn.com/w40/${Pt}.png 2x`,alt:ve.label,onError:cr=>{cr.currentTarget.style.display="none"}}),g.jsxs("span",{className:"text-gray-500",children:["+",ve.phone]})]},`${ve.code}-${Ze}`)})}):g.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},jk={bgColor:"bg-blue-100",fillColor:"bg-blue-500"},Lk={bgColor:"bg-aqua-100",fillColor:"bg-aqua-500"},Rk=e=>{switch(e){case"aqua":return Lk;case"blue":default:return jk}},Fk=({progress:e,showPercentage:t=!1,color:n,className:r="",...s})=>{const{defaultColorScheme:o}=Ue(),a=n||o,{bgColor:c,fillColor:u}=Rk(a),d=Math.min(Math.max(e,0),100);return g.jsxs("div",{className:`flex items-center gap-12 ${r}`,...s,children:[g.jsx("div",{className:`w-full h-8 ${c} rounded-full`,children:g.jsx("div",{className:`h-full ${u} rounded-full transition-all duration-300 ease-in-out`,style:{width:`${d}%`}})}),t&&g.jsxs("span",{className:"text-sm text-gray-400 font-500",children:[d,"%"]})]})},Vk=()=>{const[e,t]=O.useState(!1),n=O.useRef(null),r=()=>{t(!0),setTimeout(()=>{var o;return(o=n.current)==null?void 0:o.focus()},100)},s=()=>{t(!1)};return g.jsx("div",{className:"relative flex items-center",children:g.jsxs("div",{className:`flex items-center justify-center bg-white shadow-md rounded-full transition-all duration-300 ease-in-out ${e?"w-[200px] h-[40px]":"size-[40px]"}`,children:[g.jsx("button",{onClick:r,className:"size-[40px] flex items-center justify-center rounded-full hover:bg-gray-100 transition-all",children:g.jsx(Pe,{icon:GD})}),g.jsx("input",{ref:n,type:"text",className:`w-full outline-none bg-transparent transition-all ${e?"w-full pr-[10px]":"w-0"}`,placeholder:"Buscar...",onBlur:s,style:{border:"none",outline:"none"}})]})})},Bk="w-fit transition-colors ease-in-out duration-200 flex items-center justify-center gap-12 px-24 py-7 text-base rounded-full font-600 bg-transparent",Wk={true:"bg-blue-100 text-blue-500 hover:bg-blue-100/80 active:bg-blue-100/50 !bg-blue-100",false:"text-gray-800 hover:bg-blue-100/40 hover:text-blue-500 active:bg-blue-100/20 active:text-blue-500"},Uk={true:"bg-aqua-100 text-aqua-500 hover:bg-aqua-100/80 active:bg-aqua-100/50 !bg-aqua-100",false:"text-gray-800 hover:bg-aqua-100/40 hover:text-aqua-500 active:bg-aqua-100/20 active:text-aqua-500"},zk=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=Uk[n];break;case"blue":default:r=Wk[n];break}return Ln(Bk,r)},Gk=({label:e,href:t,onClick:n,active:r=!1,disabled:s=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ue(),d=c||u,h=m=>{if(s){m.preventDefault();return}n==null||n(m)},p=`${zk(r,d)} ${s?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?g.jsxs("a",{href:t,className:`${p} ${o||""}`,onClick:h,"aria-disabled":s,children:[a&&g.jsx(Pe,{icon:a,className:Do()}),e]}):g.jsxs("button",{className:`${p} ${o||""}`,onClick:h,disabled:s,children:[a&&g.jsx(Pe,{icon:a,className:Do()}),e]})},Yk="w-fit transition-colors group ease-in-out duration-200 flex flex-col items-center justify-center gap-12 text-base font-600",Hk={true:"text-blue-500 hover:text-blue-500",false:"text-gray-800 hover:text-blue-500"},qk={true:"text-aqua-500 hover:text-aqua-500",false:"text-gray-800 hover:text-aqua-500"},Kk="flex h-32 w-32 items-center justify-center transition-colors ease-in-out duration-200 rounded-full",Xk={true:"text-blue-500 bg-blue-100 rounded-full",false:"text-gray-800 hover:text-blue-500 active:text-blue-500 group-hover:bg-blue-100 group-hover:text-blue-500"},Zk={true:"text-aqua-500 bg-aqua-100 rounded-full",false:"text-gray-800 hover:text-aqua-500 active:text-aqua-500 group-hover:bg-aqua-100 group-hover:text-aqua-500"},O2=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"blue":r=Xk[n];break;case"aqua":default:r=Zk[n];break}return Ln(Kk,r)},Jk=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=qk[n];break;case"blue":default:r=Hk[n];break}return Ln(Yk,r)},Qk=({label:e,href:t,onClick:n,active:r=!1,disabled:s=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ue(),d=c||u,h=m=>{if(s){m.preventDefault();return}n==null||n(m)},p=`${Jk(r,d)} ${s?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?g.jsxs("a",{href:t,className:`${p} ${o||""}`,onClick:h,"aria-disabled":s,children:[a&&g.jsx("div",{className:O2(r,d),children:g.jsx(Pe,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]}):g.jsxs("button",{className:`${p} ${o||""}`,onClick:h,disabled:s,children:[a&&g.jsx("div",{className:O2(r,d),children:g.jsx(Pe,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]})},ej=e=>{const{display:t,...n}=e;return t==="desktop"?g.jsx(Gk,{...n}):t==="mobile"?g.jsx(Qk,{...n}):null},tj=({options:e,name:t,control:n,label:r="",placeholder:s="Type to search...",className:o="",input:a=!0,dropdownStyle:c={},innerClassName:u="",showChevron:d=!0,size:h="md"})=>{const{field:{value:p,onChange:m},fieldState:{error:x}}=vr.useController({name:t,control:n});return g.jsx(nj,{options:e,value:p,onChange:m,label:r,placeholder:s,error:x==null?void 0:x.message,className:o,input:a,dropdownStyle:c,innerClassName:u,showChevron:d,size:h})},nj=({options:e,value:t,onChange:n,label:r="Select an option",placeholder:s="Type to search...",error:o,input:a=!0,className:c="",dropdownStyle:u={},innerClassName:d="",showChevron:h=!0,size:p="md"})=>{var X;const{t:m}=Ue(),[x,S]=O.useState(!1),[b,T]=O.useState(""),[v,A]=O.useState(t||null),C=O.useRef(null),I=O.useRef(null),D={sm:{container:"px-16 py-8",text:"text-sm",label:"text-sm",error:"text-sm",gap:"gap-8",icon:"w-12 h-12"},md:{container:"p-16",text:"text-14",label:"text-14",error:"text-sm",gap:"gap-8",icon:"w-16 h-16"}}[p],{x:R,y:F,strategy:W,refs:Q,context:ee}=ir({open:x,onOpenChange:S,middleware:[er(8),nr(),tr({padding:8}),Rr({apply({availableHeight:U,elements:re}){Object.assign(re.floating.style,{maxHeight:`${Math.min(U-10,300)}px`})},padding:8}),ms({element:I})],placement:"bottom-start",whileElementsMounted:Qn}),ae=rr(ee),ge=sr(ee),{getReferenceProps:de,getFloatingProps:le}=or([ae,ge]),{isMounted:ue,styles:Y}=ar(ee,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),z=(()=>{const U=Array.isArray(e)?e:[];if(!b.trim())return U;const re=b.toLowerCase();return U.filter(B=>B.label.toLowerCase().includes(re)||B.key.toLowerCase().includes(re))})(),K=U=>{A(U),S(!1),T(""),n(U)},$=()=>{S(!x),!x&&C.current&&setTimeout(()=>{var U;return(U=C.current)==null?void 0:U.focus()},100)};O.useEffect(()=>{A(t)},[t]);const k=de({onClick:$});return g.jsxs("div",{className:`relative flex flex-col ${D.gap} ${c}`,children:[r&&g.jsx("h6",{className:`text-gray-600 font-600 ${o?"!text-red-500":""} ${D.label}`,children:r}),g.jsxs("div",{ref:Q.setReference,className:`${d} flex items-center justify-between bg-light rounded-full border transition-all duration-200
|
|
756
|
+
${D.container} cursor-pointer hover:border-blue-400
|
|
757
|
+
${o?"border-red-500 hover:border-red-600":""}
|
|
758
|
+
${x?"border-blue-400":"border-blue-100"}`,...k,children:[g.jsx("div",{className:"flex items-center w-full overflow-hidden",children:g.jsx("span",{className:`flex-grow font-600 truncate ${D.text} ${v?"":"text-gray-400"}`,children:m(v?v.label:s)})}),h&&g.jsx("svg",{className:`${D.icon} transition-transform ${x?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),o&&g.jsx("p",{className:`font-500 text-red-500 leading-none ${D.error}`,children:o}),ue&&g.jsxs("div",{ref:Q.setFloating,style:{position:W,top:F??0,left:R??0,...Y,width:(X=Q.reference.current)==null?void 0:X.clientWidth,zIndex:50,...u},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...le(),children:[a&&g.jsx("div",{className:"sticky top-0 bg-white p-8 border-b border-gray-100 z-20",children:g.jsxs("div",{className:"relative",children:[g.jsx("div",{className:"absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none",children:g.jsx("svg",{className:"h-16 w-16 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),g.jsx("input",{ref:C,type:"text",className:"w-full py-8 pl-40 pr-12 rounded-full focus:outline-none text-body-s",placeholder:m("search_options"),value:b,onChange:U=>T(U.target.value),onClick:U=>U.stopPropagation(),autoFocus:!0})]})}),g.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:z.length>0?g.jsx("ul",{className:"py-4",children:z.map((U,re)=>g.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer
|
|
759
|
+
${(v==null?void 0:v.key)===U.key?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:B=>{B.stopPropagation(),K(U)},children:g.jsx("span",{className:D.text,children:typeof U.label=="string"?m(U.label):U.expandedLabel||U.label})},`${U.key}-${re}`))}):g.jsx("div",{className:"px-16 py-16 text-center text-gray-500",children:g.jsx("p",{className:"text-body-s",children:"No matches found"})})})]})]})},rj={activeTextColor:"text-blue-500",activeBgColor:"bg-blue-100",hoverBgColor:"hover:bg-blue-100",activeIconColor:"text-blue-500"},sj={activeTextColor:"text-aqua-500",activeBgColor:"bg-aqua-100",hoverBgColor:"hover:bg-aqua-100",activeIconColor:"text-aqua-500"},ij=e=>{switch(e){case"aqua":return sj;case"blue":default:return rj}},oj=({active:e,icon:t,label:n,onClick:r,expanded:s,disabled:o=!1,color:a})=>{const{defaultColorScheme:c}=Ue(),u=a||c,{activeTextColor:d,activeBgColor:h,hoverBgColor:p,activeIconColor:m}=ij(u);return g.jsxs("div",{onClick:()=>!o&&r(),className:`
|
|
750
760
|
flex items-center rounded-full text-gray transition-all duration-150 h-[40px] w-full px-[12.3px]
|
|
751
|
-
${!
|
|
752
|
-
${o?"cursor-not-allowed opacity-50":`cursor-pointer ${
|
|
753
|
-
${e?`${d} ${h}`:"bg-transparent"}`,children:[
|
|
761
|
+
${!s&&"w-fit"}
|
|
762
|
+
${o?"cursor-not-allowed opacity-50":`cursor-pointer ${p}`}
|
|
763
|
+
${e?`${d} ${h}`:"bg-transparent"}`,children:[g.jsx(Pe,{icon:t,className:e?m:"text-gray-500",style:{height:"16px"}}),g.jsx("h4",{className:`
|
|
754
764
|
text-md
|
|
755
765
|
leading-none
|
|
756
766
|
font-600
|
|
@@ -759,32 +769,34 @@ attempted value: ${a}
|
|
|
759
769
|
transition-all duration-100 ease-in-out
|
|
760
770
|
${!e&&"text-gray-500"}
|
|
761
771
|
opacity-0 capitalize
|
|
762
|
-
${
|
|
763
|
-
${e&&d}`,children:n})]})},
|
|
764
|
-
flex items-center justify-between gap-8 ${
|
|
772
|
+
${s&&"translate-x-0 opacity-100 !w-full !h-auto ml-8"}
|
|
773
|
+
${e&&d}`,children:n})]})},aj="flex w-full h-full gap-12 px-10 py-6 items-center justify-center",lj={default:"flex-row rounded-full text-blue-500",underline:"flex-col border-b-[1.3px] px-24 pb-16 text-gray-700"},cj={true:"text-blue-500 border-b-blue-500",false:"text-gray-700 border-b-gray-700"},uj=(e="underline",t=!1)=>Ln(aj,lj[e],cj[String(t)]),$2=({label:e,icon:t,isSelected:n,onClick:r,variant:s="default",direction:o="row",labelClassName:a=""})=>g.jsxs("button",{className:`${uj(s,n)} w-full cursor-pointer transition-all duration-200 ${o==="row"&&"flex-row!"}`,onClick:r,children:[t&&g.jsx(Pe,{icon:t,className:`${n?"text-blue-500":"text-gray-500"} w-20 h-20`}),g.jsx("span",{className:Ln("text-lg font-500",a),children:e})]}),fj="transition-colors ease-in-out duration-200 flex items-center justify-center text-body-m rounded-full w-fit font-600 leading-normal disabled:cursor-not-allowed disabled:text-gray-300",dj={blue:"text-blue-500 hover:text-blue-600 active:text-blue-700",aqua:"text-aqua-500 hover:text-aqua-600 active:text-aqua-700",red:"text-red-500 hover:text-red-600 active:text-red-700",gray:"text-gray-500 hover:text-gray-600 active:text-gray-700"},hj=(e="blue")=>Ln(fj,dj[e]),_2=({color:e,children:t,className:n,...r})=>{const{defaultColorScheme:s}=Ue(),o=e||s;return g.jsx("button",{type:"button",className:hj(o)+" "+n,...r,children:t})},pj=({label:e,control:t,name:n,placeholder:r,className:s="",disabled:o=!1,leftSide:a,rightSide:c,translateKey:u="",size:d="md",...h})=>{const{field:{value:p="",onChange:m,ref:x,onBlur:S},fieldState:{error:b}}=vr.useController({name:n,control:t}),{t:T}=Ue(),A={sm:{container:"px-16 py-8",text:"text-sm",label:"text-sm",error:"text-sm",gap:"gap-8"},md:{container:"p-16",text:"text-14",label:"text-14",error:"text-sm",gap:"gap-8"}}[d],C=T(n),I=T(u);return g.jsxs("label",{className:`flex flex-col group select-none ${A.gap} ${o&&"cursor-not-allowed"} ${s}`,htmlFor:n,children:[g.jsx("h6",{className:`text-gray-600 font-600 group ${b&&"text-red-500!"} ${A.label} ${o&&"text-gray-300"}`,children:e}),g.jsxs("label",{htmlFor:n,className:`
|
|
774
|
+
flex items-center justify-between gap-8 ${A.container}
|
|
765
775
|
|
|
766
|
-
${
|
|
776
|
+
${b&&"border-red-500!"}
|
|
767
777
|
|
|
768
778
|
!bg-blue-50
|
|
769
779
|
|
|
770
|
-
|
|
780
|
+
rounded-full border
|
|
771
781
|
|
|
772
|
-
${
|
|
782
|
+
${p&&!o?"border-blue-200":"border-blue-100"}
|
|
773
783
|
${!o&&"group-hover:border-blue-300"}
|
|
774
784
|
${o&&"cursor-not-allowed"}
|
|
775
785
|
|
|
776
786
|
group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
|
|
777
787
|
|
|
778
788
|
group-disabled:bg-gray-500
|
|
779
|
-
`,children:[a&&a,
|
|
780
|
-
border transition-all duration-200
|
|
781
|
-
${i?"border-red-500 hover:border-red-600":""} ${p?"border-blue-400":"border-blue-100"}`,...Y,children:[C?y.jsx("div",{className:"flex items-center w-full",children:y.jsx("span",{className:"flex-grow font-600 text-body-m",children:C.label})}):y.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:a}),m&&y.jsx("svg",{className:`w-16 h-16 transition-transform ${p?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),i&&y.jsx("p",{className:"mt-1 text-sm text-red-600",children:i}),ue&&y.jsxs("div",{ref:j.setFloating,style:{position:R,top:D??0,left:A??0,...fe,width:j.reference.current instanceof Element?j.reference.current.clientWidth:void 0,zIndex:50,...h},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...ge(),children:[c&&y.jsx("div",{className:"sticky top-0 bg-white p-8 border-b border-gray-100 z-20",children:y.jsxs("div",{className:"relative",children:[y.jsx("div",{className:"absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none",children:y.jsx("svg",{className:"h-16 w-16 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),y.jsx("input",{ref:T,type:"text",className:"w-full py-8 pl-40 pr-12 rounded-full focus:outline-none text-body-s",placeholder:"Search options...",value:S,onChange:M=>x(M.target.value),onClick:M=>M.stopPropagation(),autoFocus:!0}),S&&y.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:M=>{M.stopPropagation(),x("")},children:y.jsx("svg",{className:"h-16 w-16 text-gray-400 hover:text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]})}),y.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:he.length>0?y.jsx("ul",{className:"py-4",children:he.map((M,k)=>y.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${n===M.value?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:H=>{H.stopPropagation(),G(M)},children:y.jsx("span",{children:(M==null?void 0:M.expandedLabel)||M.label})},`${M.value}-${k}`))}):y.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[y.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),y.jsxs("p",{className:"mt-8 text-body-s",children:['No matches found for "',S,'"']})]})})]})]})},xl=e=>{if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e);if(!e)return"";if(_.isValidElement(e)){const n=e.props.children;return n?Array.isArray(n)?n.map(xl).join(" "):xl(n):""}return Array.isArray(e)?e.map(xl).join(" "):""},hh=({size:e=100,strokeWidth:t=4,color:n="#1DA696",duration:r=3e3,label:i="",initialProgress:o=0,automaticProgress:a=!0,showProgress:c=!0,...u})=>{const[d,h]=_.useState(o),m=(e-t)/2,p=2*Math.PI*m,v=p*(1-d/100),{className:S="",...x}=u;return _.useEffect(()=>{if(!a)return;let T,b;const C=E=>{T||(T=E);const $=E-T,A=Math.min(100,$/r*100);h(A),A<100&&(b=requestAnimationFrame(C))};return b=requestAnimationFrame(C),()=>{b&&cancelAnimationFrame(b)}},[r,a]),y.jsxs("div",{...x,className:`relative flex items-center justify-center ${S}`,children:[y.jsxs("svg",{height:e,width:e,className:"transform -rotate-90",children:[y.jsx("circle",{stroke:"#E5E7EB",fill:"transparent",strokeWidth:t,r:m,cx:e/2,cy:e/2}),y.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:p,strokeDashoffset:v,strokeLinecap:"round",r:m,cx:e/2,cy:e/2})]}),y.jsxs("div",{className:"absolute flex flex-col items-center justify-center",children:[i&&y.jsx("div",{className:"text-xs font-medium text-gray-500",children:i}),c&&y.jsxs("div",{className:"text-lg font-semibold",style:{color:n},children:[Math.round(d),"%"]})]})]})},CL=({title:e="drag_and_drop_your_files_here",subtitle:t=null,buttonTitle:n="choose_files",onUpload:r=()=>{},acceptedExtensions:i=["pdf","png","jpg","jpeg","svg","docx","doc","xls","xlsx"],maxSize:o=1024,loading:a=!1,loadingDuration:c=1e4,className:u="",disabled:d=!1,direction:h="column"})=>{const{t:m}=Ue(),[p,v]=_.useState(!1),[S,x]=_.useState(""),T=_.useRef(null),b=i.map(V=>`.${V}`).join(","),C=V=>{const Z=[];let ee=!1;Array.from(V).forEach(se=>{var ue;const ge=((ue=se.name.split(".").pop())==null?void 0:ue.toLowerCase())||"";if(!i.includes(ge)){x(`El archivo ${se.name} tiene una extensión no permitida.`),ee=!0;return}if(se.size>o*1024){x(`El archivo ${se.name} excede el tamaño máximo de ${o}KB.`),ee=!0;return}Z.push(se)}),!ee&&Z.length>0&&(x(""),r(Z))},E=()=>{T.current&&T.current.click()},$=V=>{const Z=V.target.files;Z&&Z.length>0&&C(Z),V.target.value=""},A=V=>{V.preventDefault(),V.stopPropagation(),v(!0)},D=V=>{V.preventDefault(),V.stopPropagation(),v(!1)},R=V=>{V.preventDefault(),V.stopPropagation(),p||v(!0)},j=V=>{V.preventDefault(),V.stopPropagation(),v(!1);const Z=V.dataTransfer.files;Z.length>0&&C(Z)};return h==="row"?a?y.jsx("div",{className:`w-full mx-auto h-fit ${u} flex flex-col`,children:y.jsx("div",{className:"bg-blue-50 p-8 rounded-2xl h-full flex flex-col",children:y.jsxs("div",{className:"h-full flex items-center justify-center gap-8 border-[1.4px] border-dashed rounded-2xl px-12 py-10 text-center transition-all duration-300 border-blue-200 select-none",children:[y.jsx(hh,{size:28,showProgress:!1,duration:c,strokeWidth:3,color:"#4570EB"}),y.jsxs("h4",{className:"text-body-s text-gray-400",children:[m("loading"),"..."]})]})})}):y.jsxs("div",{className:`w-full h-fit flex flex-col ${u}`,children:[y.jsx("div",{className:"bg-blue-50 p-8 rounded-2xl h-full",children:y.jsxs("div",{className:`${d&&"hover:cursor-not-allowed! pointer-events-none! opacity-50!"} flex flex-row border-[1.4px] h-full border-dashed items-center justify-between rounded-2xl px-12 py-10 cursor-pointer transition-all duration-300 gap-8 ${p?"border-blue-400 bg-blue-100/50":"border-blue-200 hover:border-blue-400"}`,onDragEnter:A,onDragLeave:D,onDragOver:R,onDrop:j,onClick:E,children:[y.jsx("div",{className:"flex justify-center shrink-0",children:y.jsx(Pe,{icon:dN,className:"text-blue-500 text-2xl"})}),y.jsx("div",{className:"flex flex-col items-start text-left grow",children:y.jsx("h3",{className:"font-600 text-lg text-dark",children:m(e)})}),y.jsx("div",{className:"shrink-0",children:y.jsx(wi,{color:"blue",variant:"transparent",children:m(n)})}),y.jsx("input",{type:"file",ref:T,className:"hidden",multiple:!0,accept:b,onChange:$})]})}),S&&y.jsx("div",{className:"mt-3 text-sm text-red-500",children:S})]}):a?y.jsx("div",{className:`w-full mx-auto h-full ${u} flex flex-col grow`,children:y.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl h-full flex flex-col grow",children:y.jsxs("div",{className:"h-full grow flex items-center justify-center gap-16 border-[1.4px] border-dashed rounded-2xl pt-28 p-32 text-center transition-all duration-300 border-blue-200 select-none",children:[y.jsx(hh,{size:75,duration:c,strokeWidth:6,color:"#4570EB"}),y.jsxs("h4",{className:"text-body-s text-gray-400",children:[m("loading"),"..."]})]})})}):y.jsxs("div",{className:`w-full mx-auto h-full flex flex-col ${u}`,children:[y.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl h-full grow",children:y.jsxs("div",{className:`${d&&"hover:cursor-not-allowed! pointer-events-none! opacity-50!"} flex flex-col border-[1.4px] h-full grow border-dashed items-center justify-center rounded-2xl pt-28 p-32 text-center cursor-pointer transition-all duration-300 ${p?"border-blue-400 bg-blue-100/50":"border-blue-200 hover:border-blue-400"}`,onDragEnter:A,onDragLeave:D,onDragOver:R,onDrop:j,onClick:E,children:[y.jsx("div",{className:"flex justify-center translate-y-4",children:y.jsx("img",{className:"w-full h-auto max-w-160",src:"/images/svg/empty-state/empty-state-upload.svg",alt:"empty-state"})}),y.jsxs("div",{className:"flex flex-col items-center",children:[y.jsx("h3",{className:"font-600 text-xl text-dark",children:m(e)}),t&&y.jsx("p",{className:"font-400 text-lg text-gray-500",children:m(t)}),y.jsx(V2,{color:"blue",children:m(n)}),y.jsx("input",{type:"file",ref:T,className:"hidden",multiple:!0,accept:b,onChange:$})]})]})}),S&&y.jsx("div",{className:"mt-3 text-sm text-red-500 shrink-0",children:S}),y.jsx("div",{className:"mt-10 w-full flex justify-center shrink-0",children:y.jsxs("span",{className:"text-gray-500 font-400 text-base",children:[i.join(", ").toUpperCase()," ",m("formats"),". ",m("maximum_size"),":"," ",Cv(o,"mb")]})})]})},ln=8,PL=1e3,AL="300px",ML={top:"bottom",right:"left",bottom:"top",left:"right"},OL={top:{borderLeft:`${ln}px solid transparent`,borderRight:`${ln}px solid transparent`,borderTop:`${ln}px solid #C7C8CA`},bottom:{borderLeft:`${ln}px solid transparent`,borderRight:`${ln}px solid transparent`,borderBottom:`${ln}px solid #C7C8CA`},left:{borderTop:`${ln}px solid transparent`,borderBottom:`${ln}px solid transparent`,borderLeft:`${ln}px solid #C7C8CA`},right:{borderTop:`${ln}px solid transparent`,borderBottom:`${ln}px solid transparent`,borderRight:`${ln}px solid #C7C8CA`}},_L=({children:e,message:t,className:n="",placement:r="top",offset:i=8,delay:o=0})=>{const[a,c]=_.useState(!1),u=_.useRef(null),{x:d,y:h,strategy:m,placement:p,refs:v,context:S,middlewareData:x}=jr({open:a,onOpenChange:c,placement:r,middleware:[Dr(i),kr(),Nr({padding:8}),bs({element:u})],whileElementsMounted:$r}),T=Q3(S,{delay:o}),b=iN(S),C=Rr(S),E=oN(S,{role:"tooltip"}),{getReferenceProps:$,getFloatingProps:A}=Fr([T,b,C,E]),D=p.split("-")[0],R=ML[D],{x:j,y:V}=x.arrow||{x:0,y:0},Z=_.cloneElement(e,{ref:v.setReference,...$()});return y.jsxs(y.Fragment,{children:[Z,y.jsx(vn,{children:a&&y.jsx("div",{ref:v.setFloating,style:{position:m,top:h??0,left:d??0,zIndex:PL,width:"max-content",maxWidth:AL},...A(),children:y.jsxs(Ge.div,{className:`py-10 px-16 rounded-xl text-md bg-gray-200 text-gray-800 font-600 shadow-lg ${n} relative`,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.1,ease:"easeOut"},children:[t,y.jsx("div",{ref:u,className:"absolute w-0 h-0 tooltip-arrow-light",style:{position:"absolute",left:j!=null?`${j}px`:"",top:V!=null?`${V}px`:"",[R]:"-7px",...OL[D]}})]})})})]})},IL=({progress:e=0,showPercentage:t=!0,showPercentageLabel:n=!1,label:r,percentageLabel:i="progreso",percentageClassName:o="",percentageLabelClassName:a="",labelClassName:c="",className:u="",size:d=120,strokeWidth:h=8,backgroundColor:m="#e5e7eb",animated:p=!0,animationDuration:v="1.5s",colorThresholds:S,lowThreshold:x=30,mediumThreshold:T=70,lowColor:b="#ef4444",mediumColor:C="#eab308",highColor:E="#22c55e",singleColor:$,clockwise:A=!0,startAngle:D=-90})=>{const R=Y=>{if($)return $;if(S&&S.length>0){const M=[...S].sort((k,H)=>k.threshold-H.threshold);for(let k=M.length-1;k>=0;k--)if(Y>=M[k].threshold)return M[k].color;return M[0].color}return Y<x?b:Y<T?C:E},j=Y=>{if(!S||S.length===0)return;const M=[...S].sort((k,H)=>k.threshold-H.threshold);for(let k=M.length-1;k>=0;k--)if(Y>=M[k].threshold)return M[k].label;return M[0].label},V=Math.min(100,Math.max(0,e)),Z=R(V),ee=j(V),se=d/2,ge=(d-h)/2,ue=2*Math.PI*ge,fe=ue,he=ue-V/100*ue,W=`rotate(${D} ${se} ${se}) scale(${A?1:-1}, 1)`;return y.jsxs("div",{className:`flex flex-col items-center gap-2 ${u}`,children:[y.jsxs("div",{className:"relative",style:{width:d,height:d},children:[y.jsxs("svg",{width:d,height:d,className:"transform -rotate-90",viewBox:`0 0 ${d} ${d}`,children:[y.jsx("circle",{cx:se,cy:se,r:ge,fill:"transparent",stroke:m,strokeWidth:h,className:"opacity-20"}),y.jsx("circle",{cx:se,cy:se,r:ge,fill:"transparent",stroke:Z,strokeWidth:h,strokeDasharray:fe,strokeDashoffset:he,strokeLinecap:"round",transform:W,className:p?"transition-all ease-out":"",style:p?{transitionDuration:v,transitionProperty:"stroke-dashoffset, stroke"}:{}})]}),y.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:y.jsxs("div",{className:"text-center",children:[t&&y.jsxs("div",{className:`text-2xl font-bold text-gray-800 ${o}`,children:[Math.round(V),"%"]}),(ee||i)&&n&&y.jsx("div",{className:`text-xs text-gray-500 mt-1 ${a}`,children:ee||i})]})})]}),r&&y.jsx("p",{className:`text-gray-500 text-label mt-6 ${c}`,children:r})]})},$L=({progress:e,showPercentage:t=!1,percentageLabel:n="",className:r="",height:i="h-5",backgroundColor:o="bg-gray-200",animated:a=!0,animationDuration:c="duration-300",colorThresholds:u,lowThreshold:d=30,mediumThreshold:h=70,lowColor:m="bg-red-500",mediumColor:p="bg-yellow-500",highColor:v="bg-green-500",singleColor:S})=>{const x=A=>{if(S)return S;if(u&&u.length>0){const D=[...u].sort((R,j)=>R.threshold-j.threshold);for(let R=D.length-1;R>=0;R--)if(A>=D[R].threshold)return D[R].color;return D[0].color}return A<d?m:A<h?p:v},T=A=>{if(!u||u.length===0)return;const D=[...u].sort((R,j)=>R.threshold-j.threshold);for(let R=D.length-1;R>=0;R--)if(A>=D[R].threshold)return D[R].label;return D[0].label},b=Math.min(100,Math.max(0,e)),C=x(b),E=T(b),$=a?`transition-all ${c} ease-in-out`:"";return y.jsxs("div",{className:`w-full flex gap-4 items-center ${r}`,children:[y.jsx("div",{className:`flex-1 ${o} rounded-full ${i} overflow-hidden`,children:y.jsx("div",{className:`h-full ${C} ${$} rounded-full`,style:{width:`${b}%`}})}),t&&y.jsxs("div",{className:"text-sm text-gray-700 font-medium text-nowrap flex items-center gap-1",children:[y.jsxs("span",{className:"font-bold",children:[Math.round(b),"%"]}),E&&y.jsxs("span",{className:"text-xs text-gray-500",children:["(",E,")"]}),y.jsx("span",{className:"text-gray-600",children:n})]})]})},DL=({progress:e=0,showPercentage:t=!0,size:n=120,strokeWidth:r=8,color:i="#4570EB",backgroundColor:o="#E4E4E7",label:a,className:c="",labelClassName:u="",percentageLabel:d="",percentageClassName:h="",showPercentageLabel:m=!1,percentageLabelClassName:p="",clockwise:v=!0,startAngle:S=-90})=>{const x=Math.min(100,Math.max(0,e)),T=n/2,b=(n-r)/2,C=2*Math.PI*b,E=C,$=C-x/100*C,D=`rotate(${S} ${T} ${T}) scale(${v?1:-1}, 1)`;return y.jsxs("div",{className:`flex flex-col items-center gap-2 ${c}`,children:[y.jsxs("div",{className:"relative",style:{width:n,height:n},children:[y.jsxs("svg",{width:n,height:n,className:"transform -rotate-90",viewBox:`0 0 ${n} ${n}`,children:[y.jsx("circle",{cx:T,cy:T,r:b,fill:"transparent",stroke:o,strokeWidth:r,className:"opacity-20"}),y.jsx("circle",{cx:T,cy:T,r:b,fill:"transparent",stroke:i,strokeWidth:r,strokeDasharray:E,strokeDashoffset:$,strokeLinecap:"round",transform:D,className:"transition-all ease-out",style:{transitionDuration:"1.5s",transitionProperty:"stroke-dashoffset, stroke"}})]}),y.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:y.jsxs("div",{className:"text-center",children:[t&&y.jsxs("div",{className:`text-2xl font-bold text-gray-800 ${h}`,children:[Math.round(x),"%"]}),d&&m&&y.jsx("div",{className:`text-xs text-gray-500 mt-1 ${p}`,children:d})]})})]}),a&&y.jsx("p",{className:`text-gray-500 text-label mt-6 ${u}`,children:a})]})},NL=({active:e,onClick:t})=>{const{defaultColorScheme:n}=Ue();return y.jsxs("button",{onClick:t,className:`
|
|
789
|
+
`,children:[a&&a,g.jsx("input",{id:n,name:n,disabled:o,placeholder:r,value:p,onChange:P=>m(P.target.value),onBlur:S,ref:x,className:`group bg-transparent w-full h-full font-600 placeholder:font-600 ${A.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-hidden`,...h}),c&&c]}),g.jsx("h4",{className:`font-500 text-red-500 leading-none ${A.error}`,children:(b==null?void 0:b.message)&&T(b.message,{x:I||C})})]})},mj=({label:e,value:t,className:n})=>g.jsxs("div",{className:`flex flex-col gap-4 ${n||""}`,children:[g.jsx("p",{className:"text-lg font-600 text-gray-800",children:e}),g.jsx("p",{className:"text-base font-400 text-gray-600",children:t})]}),I2=({options:e,onChange:t,value:n,disabled:r,error:s,label:o="",placeholder:a="",allowSearch:c=!1,className:u="",innerClassName:d="",dropdownStyle:h={},showChevron:p=!0,size:m="md"})=>{const[x,S]=O.useState(!1),[b,T]=O.useState(""),v=O.useRef(null),A=O.useRef(null),C=e.find(U=>U.value===n),P={sm:{container:"px-16 py-8",text:"text-sm",label:"text-sm",error:"text-sm",gap:"gap-8",icon:"w-12 h-12",option:"text-sm"},md:{container:"p-16",text:"text-14",label:"text-14",error:"text-sm",gap:"gap-8",icon:"w-16 h-16",option:"text-14"}}[m],D=O.useMemo(()=>e.map(U=>({...U,searchableLabel:typeof U.label=="string"?U.label:O.isValidElement(U.label)?gl(U.label):String(U.label),searchableValue:String(U.value)})),[e]),R=O.useMemo(()=>{const U={keys:[{name:"searchableLabel",weight:2},{name:"searchableValue",weight:1}],threshold:.2,distance:150,includeScore:!0,includeMatches:!0,ignoreLocation:!0,minMatchCharLength:1,shouldSort:!0,findAllMatches:!0};return new cT(D,U)},[D]),{x:F,y:W,strategy:Q,refs:ee,context:ae}=ir({open:x,onOpenChange:S,middleware:[er(8),nr(),tr({padding:8}),Rr({apply({availableHeight:U,elements:re}){Object.assign(re.floating.style,{maxHeight:`${Math.min(U-10,300)}px`})},padding:8}),ms({element:A})],placement:"bottom-start",whileElementsMounted:Qn}),ge=rr(ae),de=sr(ae),{getReferenceProps:le,getFloatingProps:ue}=or([ge,de]),{isMounted:Y,styles:z}=ar(ae,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),K=O.useMemo(()=>b.trim()?R.search(b).map(re=>({...re.item,score:re.score,matches:re.matches})):e,[b,R,e]),$=U=>{t(U.value),S(!1),T("")},X=le({onClick:()=>{r||(S(!x),!x&&v.current&&c&&setTimeout(()=>{var U;return(U=v.current)==null?void 0:U.focus()},100))}});return g.jsxs("div",{className:`relative flex flex-col ${P.gap} ${u}`,children:[o&&g.jsx("h6",{className:`text-gray-600 font-600 group ${s?"!text-red-500":""} ${P.label} ${r?"text-gray-300":""}`,children:o}),g.jsxs("div",{ref:ee.setReference,className:`${d} flex items-center justify-between bg-light rounded-full
|
|
790
|
+
${P.container} cursor-pointer border transition-all duration-200
|
|
791
|
+
${r?"opacity-60 cursor-not-allowed":"hover:border-blue-400"}
|
|
792
|
+
${s?"border-red-500 hover:border-red-600":""}
|
|
793
|
+
${x?"border-blue-400":"border-blue-100"}`,...X,children:[g.jsx("div",{className:"flex items-center w-full overflow-hidden",children:g.jsx("span",{className:`flex-grow font-600 truncate ${P.text} ${C?"":"text-gray-400"}`,children:C?C.label:a})}),p&&g.jsx("svg",{className:`${P.icon} transition-transform ${x?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),s&&g.jsx("p",{className:`font-500 text-red-500 leading-none ${P.error}`,children:s}),Y&&g.jsxs("div",{ref:ee.setFloating,style:{position:Q,top:W??0,left:F??0,...z,width:ee.reference.current instanceof Element?ee.reference.current.clientWidth:void 0,zIndex:50,...h},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...ue(),children:[c&&g.jsx("div",{className:"sticky top-0 bg-white p-8 border-b border-gray-100 z-20",children:g.jsxs("div",{className:"relative",children:[g.jsx("div",{className:"absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none",children:g.jsx("svg",{className:"h-16 w-16 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),g.jsx("input",{ref:v,type:"text",className:"w-full py-8 pl-40 pr-12 rounded-full focus:outline-none text-body-s",placeholder:"Search options...",value:b,onChange:U=>T(U.target.value),onClick:U=>U.stopPropagation(),autoFocus:!0}),b&&g.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:U=>{U.stopPropagation(),T("")},children:g.jsx("svg",{className:"h-16 w-16 text-gray-400 hover:text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]})}),g.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:K.length>0?g.jsx("ul",{className:"py-4",children:K.map((U,re)=>g.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${P.option} ${n===U.value?"bg-blue-100/30 text-blue-500 font-medium text":""}`,onClick:B=>{B.stopPropagation(),$(U)},children:g.jsx("span",{children:(U==null?void 0:U.expandedLabel)||U.label})},`${U.value}-${re}`))}):g.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[g.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),g.jsxs("p",{className:"mt-8 text-body-s",children:['No matches found for "',b,'"']})]})})]})]})},gl=e=>{if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e);if(!e)return"";if(O.isValidElement(e)){const n=e.props.children;return n?Array.isArray(n)?n.map(gl).join(" "):gl(n):""}return Array.isArray(e)?e.map(gl).join(" "):""},ih=({size:e=100,strokeWidth:t=4,color:n="#1DA696",duration:r=3e3,label:s="",initialProgress:o=0,automaticProgress:a=!0,showProgress:c=!0,...u})=>{const[d,h]=O.useState(o),p=(e-t)/2,m=2*Math.PI*p,x=m*(1-d/100),{className:S="",...b}=u;return O.useEffect(()=>{if(!a)return;let T,v;const A=C=>{T||(T=C);const I=C-T,P=Math.min(100,I/r*100);h(P),P<100&&(v=requestAnimationFrame(A))};return v=requestAnimationFrame(A),()=>{v&&cancelAnimationFrame(v)}},[r,a]),g.jsxs("div",{...b,className:`relative flex items-center justify-center ${S}`,children:[g.jsxs("svg",{height:e,width:e,className:"transform -rotate-90",children:[g.jsx("circle",{stroke:"#E5E7EB",fill:"transparent",strokeWidth:t,r:p,cx:e/2,cy:e/2}),g.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:m,strokeDashoffset:x,strokeLinecap:"round",r:p,cx:e/2,cy:e/2})]}),g.jsxs("div",{className:"absolute flex flex-col items-center justify-center",children:[s&&g.jsx("div",{className:"text-xs font-medium text-gray-500",children:s}),c&&g.jsxs("div",{className:"text-lg font-semibold",style:{color:n},children:[Math.round(d),"%"]})]})]})},gj=({title:e="drag_and_drop_your_files_here",subtitle:t=null,buttonTitle:n="choose_files",onUpload:r=()=>{},acceptedExtensions:s=["pdf","png","jpg","jpeg","svg","docx","doc","xls","xlsx"],maxSize:o=1024,loading:a=!1,loadingDuration:c=1e4,className:u="",disabled:d=!1,direction:h="column"})=>{const{t:p}=Ue(),[m,x]=O.useState(!1),[S,b]=O.useState(""),T=O.useRef(null),v=s.map(W=>`.${W}`).join(","),A=W=>{const Q=[];let ee=!1;Array.from(W).forEach(ae=>{var de;const ge=((de=ae.name.split(".").pop())==null?void 0:de.toLowerCase())||"";if(!s.includes(ge)){b(`El archivo ${ae.name} tiene una extensión no permitida.`),ee=!0;return}if(ae.size>o*1024){b(`El archivo ${ae.name} excede el tamaño máximo de ${o}KB.`),ee=!0;return}Q.push(ae)}),!ee&&Q.length>0&&(b(""),r(Q))},C=()=>{T.current&&T.current.click()},I=W=>{const Q=W.target.files;Q&&Q.length>0&&A(Q),W.target.value=""},P=W=>{W.preventDefault(),W.stopPropagation(),x(!0)},D=W=>{W.preventDefault(),W.stopPropagation(),x(!1)},R=W=>{W.preventDefault(),W.stopPropagation(),m||x(!0)},F=W=>{W.preventDefault(),W.stopPropagation(),x(!1);const Q=W.dataTransfer.files;Q.length>0&&A(Q)};return h==="row"?a?g.jsx("div",{className:`w-full mx-auto h-fit ${u} flex flex-col`,children:g.jsx("div",{className:"bg-blue-50 p-8 rounded-2xl h-full flex flex-col",children:g.jsxs("div",{className:"h-full flex items-center justify-center gap-8 border-[1.4px] border-dashed rounded-2xl px-12 py-10 text-center transition-all duration-300 border-blue-200 select-none",children:[g.jsx(ih,{size:28,showProgress:!1,duration:c,strokeWidth:3,color:"#4570EB"}),g.jsxs("h4",{className:"text-body-s text-gray-400",children:[p("loading"),"..."]})]})})}):g.jsxs("div",{className:`w-full h-fit flex flex-col ${u}`,children:[g.jsx("div",{className:"bg-blue-50 p-8 rounded-2xl h-full",children:g.jsxs("div",{className:`${d&&"hover:cursor-not-allowed! pointer-events-none! opacity-50!"} flex flex-row border-[1.4px] h-full border-dashed items-center justify-between rounded-2xl px-12 py-10 cursor-pointer transition-all duration-300 gap-8 ${m?"border-blue-400 bg-blue-100/50":"border-blue-200 hover:border-blue-400"}`,onDragEnter:P,onDragLeave:D,onDragOver:R,onDrop:F,onClick:C,children:[g.jsx("div",{className:"flex justify-center shrink-0",children:g.jsx(Pe,{icon:kE,className:"text-blue-500 text-2xl"})}),g.jsx("div",{className:"flex flex-col items-start text-left grow",children:g.jsx("h3",{className:"font-600 text-lg text-dark",children:p(e)})}),g.jsx("div",{className:"shrink-0",children:g.jsx(ys,{color:"blue",variant:"transparent",children:p(n)})}),g.jsx("input",{type:"file",ref:T,className:"hidden",multiple:!0,accept:v,onChange:I})]})}),S&&g.jsx("div",{className:"mt-3 text-sm text-red-500",children:S})]}):a?g.jsx("div",{className:`w-full mx-auto h-full ${u} flex flex-col grow`,children:g.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl h-full flex flex-col grow",children:g.jsxs("div",{className:"h-full grow flex items-center justify-center gap-16 border-[1.4px] border-dashed rounded-2xl pt-28 p-32 text-center transition-all duration-300 border-blue-200 select-none",children:[g.jsx(ih,{size:75,duration:c,strokeWidth:6,color:"#4570EB"}),g.jsxs("h4",{className:"text-body-s text-gray-400",children:[p("loading"),"..."]})]})})}):g.jsxs("div",{className:`w-full mx-auto h-full flex flex-col ${u}`,children:[g.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl h-full grow",children:g.jsxs("div",{className:`${d&&"hover:cursor-not-allowed! pointer-events-none! opacity-50!"} flex flex-col border-[1.4px] h-full grow border-dashed items-center justify-center rounded-2xl pt-28 p-32 text-center cursor-pointer transition-all duration-300 ${m?"border-blue-400 bg-blue-100/50":"border-blue-200 hover:border-blue-400"}`,onDragEnter:P,onDragLeave:D,onDragOver:R,onDrop:F,onClick:C,children:[g.jsx("div",{className:"flex justify-center translate-y-4",children:g.jsx("img",{className:"w-full h-auto max-w-160",src:"/images/svg/empty-state/empty-state-upload.svg",alt:"empty-state"})}),g.jsxs("div",{className:"flex flex-col items-center",children:[g.jsx("h3",{className:"font-600 text-xl text-dark",children:p(e)}),t&&g.jsx("p",{className:"font-400 text-lg text-gray-500",children:p(t)}),g.jsx(_2,{color:"blue",children:p(n)}),g.jsx("input",{type:"file",ref:T,className:"hidden",multiple:!0,accept:v,onChange:I})]})]})}),S&&g.jsx("div",{className:"mt-3 text-sm text-red-500 shrink-0",children:S}),g.jsx("div",{className:"mt-10 w-full flex justify-center shrink-0",children:g.jsxs("span",{className:"text-gray-500 font-400 text-base",children:[s.join(", ").toUpperCase()," ",p("formats"),". ",p("maximum_size"),":"," ",wx(o,"mb")]})})]})},yj=({progress:e=0,showPercentage:t=!0,showPercentageLabel:n=!1,label:r,percentageLabel:s="progreso",percentageClassName:o="",percentageLabelClassName:a="",labelClassName:c="",className:u="",size:d=120,strokeWidth:h=8,backgroundColor:p="#e5e7eb",animated:m=!0,animationDuration:x="1.5s",colorThresholds:S,lowThreshold:b=30,mediumThreshold:T=70,lowColor:v="#ef4444",mediumColor:A="#eab308",highColor:C="#22c55e",singleColor:I,clockwise:P=!0,startAngle:D=-90})=>{const R=K=>{if(I)return I;if(S&&S.length>0){const $=[...S].sort((k,X)=>k.threshold-X.threshold);for(let k=$.length-1;k>=0;k--)if(K>=$[k].threshold)return $[k].color;return $[0].color}return K<b?v:K<T?A:C},F=K=>{if(!S||S.length===0)return;const $=[...S].sort((k,X)=>k.threshold-X.threshold);for(let k=$.length-1;k>=0;k--)if(K>=$[k].threshold)return $[k].label;return $[0].label},W=Math.min(100,Math.max(0,e)),Q=R(W),ee=F(W),ae=d/2,ge=(d-h)/2,de=2*Math.PI*ge,le=de,ue=de-W/100*de,z=`rotate(${D} ${ae} ${ae}) scale(${P?1:-1}, 1)`;return g.jsxs("div",{className:`flex flex-col items-center gap-2 ${u}`,children:[g.jsxs("div",{className:"relative",style:{width:d,height:d},children:[g.jsxs("svg",{width:d,height:d,className:"transform -rotate-90",viewBox:`0 0 ${d} ${d}`,children:[g.jsx("circle",{cx:ae,cy:ae,r:ge,fill:"transparent",stroke:p,strokeWidth:h,className:"opacity-20"}),g.jsx("circle",{cx:ae,cy:ae,r:ge,fill:"transparent",stroke:Q,strokeWidth:h,strokeDasharray:le,strokeDashoffset:ue,strokeLinecap:"round",transform:z,className:m?"transition-all ease-out":"",style:m?{transitionDuration:x,transitionProperty:"stroke-dashoffset, stroke"}:{}})]}),g.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:g.jsxs("div",{className:"text-center",children:[t&&g.jsxs("div",{className:`text-2xl font-bold text-gray-800 ${o}`,children:[Math.round(W),"%"]}),(ee||s)&&n&&g.jsx("div",{className:`text-xs text-gray-500 mt-1 ${a}`,children:ee||s})]})})]}),r&&g.jsx("p",{className:`text-gray-500 text-label mt-6 ${c}`,children:r})]})},xj=({progress:e,showPercentage:t=!1,percentageLabel:n="",className:r="",height:s="h-5",backgroundColor:o="bg-gray-200",animated:a=!0,animationDuration:c="duration-300",colorThresholds:u,lowThreshold:d=30,mediumThreshold:h=70,lowColor:p="bg-red-500",mediumColor:m="bg-yellow-500",highColor:x="bg-green-500",singleColor:S})=>{const b=P=>{if(S)return S;if(u&&u.length>0){const D=[...u].sort((R,F)=>R.threshold-F.threshold);for(let R=D.length-1;R>=0;R--)if(P>=D[R].threshold)return D[R].color;return D[0].color}return P<d?p:P<h?m:x},T=P=>{if(!u||u.length===0)return;const D=[...u].sort((R,F)=>R.threshold-F.threshold);for(let R=D.length-1;R>=0;R--)if(P>=D[R].threshold)return D[R].label;return D[0].label},v=Math.min(100,Math.max(0,e)),A=b(v),C=T(v),I=a?`transition-all ${c} ease-in-out`:"";return g.jsxs("div",{className:`w-full flex gap-4 items-center ${r}`,children:[g.jsx("div",{className:`flex-1 ${o} rounded-full ${s} overflow-hidden`,children:g.jsx("div",{className:`h-full ${A} ${I} rounded-full`,style:{width:`${v}%`}})}),t&&g.jsxs("div",{className:"text-sm text-gray-700 font-medium text-nowrap flex items-center gap-1",children:[g.jsxs("span",{className:"font-bold",children:[Math.round(v),"%"]}),C&&g.jsxs("span",{className:"text-xs text-gray-500",children:["(",C,")"]}),g.jsx("span",{className:"text-gray-600",children:n})]})]})},vj=({progress:e=0,showPercentage:t=!0,size:n=120,strokeWidth:r=8,color:s="#4570EB",backgroundColor:o="#E4E4E7",label:a,className:c="",labelClassName:u="",percentageLabel:d="",percentageClassName:h="",showPercentageLabel:p=!1,percentageLabelClassName:m="",clockwise:x=!0,startAngle:S=-90})=>{const b=Math.min(100,Math.max(0,e)),T=n/2,v=(n-r)/2,A=2*Math.PI*v,C=A,I=A-b/100*A,D=`rotate(${S} ${T} ${T}) scale(${x?1:-1}, 1)`;return g.jsxs("div",{className:`flex flex-col items-center gap-2 ${c}`,children:[g.jsxs("div",{className:"relative",style:{width:n,height:n},children:[g.jsxs("svg",{width:n,height:n,className:"transform -rotate-90",viewBox:`0 0 ${n} ${n}`,children:[g.jsx("circle",{cx:T,cy:T,r:v,fill:"transparent",stroke:o,strokeWidth:r,className:"opacity-20"}),g.jsx("circle",{cx:T,cy:T,r:v,fill:"transparent",stroke:s,strokeWidth:r,strokeDasharray:C,strokeDashoffset:I,strokeLinecap:"round",transform:D,className:"transition-all ease-out",style:{transitionDuration:"1.5s",transitionProperty:"stroke-dashoffset, stroke"}})]}),g.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:g.jsxs("div",{className:"text-center",children:[t&&g.jsxs("div",{className:`text-2xl font-bold text-gray-800 ${h}`,children:[Math.round(b),"%"]}),d&&p&&g.jsx("div",{className:`text-xs text-gray-500 mt-1 ${m}`,children:d})]})})]}),a&&g.jsx("p",{className:`text-gray-500 text-label mt-6 ${u}`,children:a})]})},bj=({active:e,onClick:t})=>{const{defaultColorScheme:n}=Ue();return g.jsxs("button",{onClick:t,className:`
|
|
782
794
|
relative inline-flex min-h-24 min-w-48 items-center rounded-full
|
|
783
795
|
transition-colors duration-200 ease-in-out focus:outline-none
|
|
784
796
|
shadow-lg
|
|
785
797
|
${e?`bg-${n}-500`:"bg-gray-200"}
|
|
786
|
-
`,children:[
|
|
798
|
+
`,children:[g.jsx("span",{className:"sr-only",children:e?"On":"Off"}),g.jsx("span",{className:`
|
|
787
799
|
inline-block h-20 w-20 transform rounded-full bg-white
|
|
788
800
|
transition-transform duration-200 ease-in-out drop-shadow-xl
|
|
789
801
|
${e?"translate-x-24":"translate-x-3"}
|
|
790
|
-
`})]})},
|
|
802
|
+
`})]})},wj=({filter:e,filterControl:t,translations:n={}})=>{var h,p,m,x,S,b,T,v,A,C;const[r,s]=O.useState(!0),{updateFilter:o,removeFilter:a}=t,c=!!(e!=null&&e.value),u=(I,P)=>n[I]||P,d=(I,P=[])=>{const D=P.find(R=>R.value===I);return D?D.label:String(I)};return g.jsx(gs,{open:r,onClose:()=>s(!1),placement:"bottom",className:"min-w-[400px]",component:g.jsxs("div",{children:[g.jsx("p",{children:u(e.key,e.label)}),e.type==="date"?g.jsxs("div",{className:"flex flex-col gap-2",children:[g.jsx("div",{className:"scale-[0.8] origin-left -mr-[10%] w-[125%]! relative z-99",children:g.jsx(Gd,{currentDate:(h=e.value)!=null&&h.startDate?new Date(e.value.startDate):null,maxDate:(p=e.value)!=null&&p.endDate?new Date(e.value.endDate):void 0,futureDates:!0,onDateChange:I=>o({key:e.key,value:{...e.value||{},startDate:(I==null?void 0:I.toISOString())||""},label:e.label,type:e.type}),label:"Fecha de inicio",translatedKey:"start_date"})}),g.jsx("div",{className:"scale-[0.8] origin-left -mr-[10%] w-[125%]! ",children:g.jsx(Gd,{currentDate:(m=e.value)!=null&&m.endDate?new Date(e.value.endDate):null,minDate:(x=e.value)!=null&&x.startDate?new Date(e.value.startDate):void 0,onDateChange:I=>o({key:e.key,value:{...e.value||{},endDate:(I==null?void 0:I.toISOString())||""},label:e.label,type:e.type}),label:"Fecha de fin",futureDates:!0,translatedKey:"end_date"})})]}):e.type==="select"?g.jsx(I2,{className:"scale-[0.8] origin-left -mr-[10%] w-[125%]! p-0! m-0!",value:e.value||"",options:e.options||[],label:"",allowSearch:!0,onChange:I=>o({key:e.key,value:I,label:e.label,type:e.type}),placeholder:u(e.key,e.label)}):g.jsx(al,{size:"sm",name:e.key,value:e.value,onChange:I=>o({key:e.key,value:I,label:e.label,type:e.type}),placeholder:u(e.key,e.label)})]}),children:g.jsxs("div",{className:`flex gap-[8px] items-center px-[12px] py-[8px] bg-blue-100 max-w-[400px] ${c&&"border-1! border-blue-500!"} cursor-pointer transition ease-in-out rounded-full border border-transparent hover:border-blue-500`,onClick:()=>s(!0),children:[g.jsxs("div",{className:"flex justify-between items-center gap-[6px] min-w-0",children:[g.jsx(Pe,{icon:e.icon||jE,className:"text-[14px] text-blue-500"}),g.jsx("p",{className:"flex-1 min-w-0 text-[12px] font-semibold text-gray-800 truncate overflow-hidden whitespace-nowrap",title:e.type==="date"?`${((S=e.value)==null?void 0:S.startDate)||"..."} - ${((b=e.value)==null?void 0:b.endDate)||"..."}`:String(e.value||u(e.key,e.label)),children:e.value&&(e.type==="date"?(T=e.value)!=null&&T.startDate||(v=e.value)!=null&&v.endDate:e.value)?g.jsxs(g.Fragment,{children:[u(e.key,e.label),":"," ",g.jsx("span",{className:"text-gray-600 truncate overflow-hidden whitespace-nowrap",children:e.type==="date"?`${(A=e.value)!=null&&A.startDate?new Date(e.value.startDate).toLocaleDateString():"..."} - ${(C=e.value)!=null&&C.endDate?new Date(e.value.endDate).toLocaleDateString():"..."}`:e.type==="select"?d(e.value,e.options):String(e.value)})]}):u(e.key,e.label)})]}),g.jsx("div",{className:"flex justify-center items-center",onClick:()=>a({key:e.key}),children:g.jsx(Pe,{icon:i0,className:"text-[10px] text-gray-400"})})]})})},D2=({children:e,onClickAway:t,enabled:n=!0,mouseEvent:r="onClick",touchEvent:s="onTouchEnd"})=>{const o=O.useRef(null);return O.useEffect(()=>{if(!n)return;const a=p=>{o.current&&(o.current.contains(p.target)||t())},c=p=>{switch(p){case"onClick":return"click";case"onMouseDown":return"mousedown";case"onMouseUp":return"mouseup";default:return"click"}},u=p=>{switch(p){case"onTouchStart":return"touchstart";case"onTouchEnd":return"touchend";default:return"touchend"}},d=c(r),h=u(s);return document.addEventListener(d,a,!0),document.addEventListener(h,a,!0),()=>{document.removeEventListener(d,a,!0),document.removeEventListener(h,a,!0)}},[n,t,r,s]),g.jsx("div",{ref:o,style:{display:"contents"},children:e})},oh=({status:e,shouldAnimate:t,color:n,index:r,sizeClass:s})=>{const o=e==="done",a=e==="focus",{focusIconColor:c,completedIconColor:u,pendingIconColor:d,focusBgColor:h,completedBgColor:p,pendingBgColor:m}=ll(n),x=o?u:a?c:d,S=o?p:a?h:m;return g.jsx(st.div,{animate:{backgroundColor:S},transition:{duration:t?.3:0,ease:"easeOut"},className:`size-[35px] rounded-full flex items-center justify-center font-bold text-sm ${s} ${x}`,children:g.jsx(qn,{mode:"wait",children:o?g.jsx(st.div,{initial:t?{opacity:0,scale:.5}:{opacity:1},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.5},className:"flex items-center justify-center",children:g.jsx(Pe,{icon:y4})},"check"):g.jsx(st.div,{initial:t?{opacity:0}:{opacity:1},animate:{opacity:1},className:"leading-none flex items-center justify-center",children:r+1},"number")})})},Sj="Alejo",Tj=({theme:e={},children:t})=>{const n={...Pd,...e};return g.jsx(vb.Provider,{value:n,children:t})};ne.ActionButton=DE,ne.AlertModal=bb,ne.AsyncToast=tx,ne.AutocompleteInput=AN,ne.Avatar=u2,ne.BoxContainer=yi,ne.Button=ys,ne.CalendarSelector=Ud,ne.CenterModal=d2,ne.Checkbox=Kd,ne.Chip=BN,ne.CircleProgress=vj,ne.ClickAwayListener=D2,ne.CountryDropdown=Sk,ne.CountryInput=bk,ne.CountryLabel=wk,ne.DateInput=sN,ne.DialogModal=Qb,ne.Divider=f2,ne.Dropdown=aN,ne.EmptyState=DN,ne.FileUpload=lN,ne.FilterPill=wj,ne.FiltersMenu=$N,ne.FloatingMenu=gs,ne.IconButton=sh,ne.ImageProfileInput=Ek,ne.IndexedStep=t2,ne.IndexedStepper=cN,ne.InfoCard=Ak,ne.InformationContainer=n2,ne.InformationDisclaimer=_k,ne.LoadingProgress=ih,ne.LoadingSpinner=Dk,ne.ModalContainer=kN,ne.MultiSelectDropdown=_N,ne.Organism=Sj,ne.PasswordInput=Nk,ne.PhoneInput=kk,ne.Pill=Yd,ne.PillsContainer=MN,ne.ProgressBar=Fk,ne.SearchBar=Vk,ne.SearchModal=fN,ne.SectionButton=ej,ne.SelectInput=tj,ne.SideModal=ON,ne.SidebarButton=oj,ne.SingleSelectDropdown=IN,ne.StepIndicator=oh,ne.Stepper=gN,ne.Switch=bj,ne.Tab=$2,ne.Tabs=yN,ne.TextButton=_2,ne.TextInput=pj,ne.TextStaticInput=mj,ne.ThemeProvider=Tj,ne.ThresholdCircleProgress=yj,ne.ThresholdProgressBar=xj,ne.Toast=ff,ne.Tooltip=NN,ne.UncontrolledDateInput=Gd,ne.UncontrolledSelector=I2,ne.UncontrolledTextInput=al,ne.UploadContainer=gj,ne.capitalizeFirstLetter=bx,ne.closeModal=RN,ne.defaultTheme=Pd,ne.formatLocalizedDate=r5,ne.getImageUrl=Sx,ne.openCustomModal=LN,ne.openModal=jN,ne.renderTabContent=FN,ne.showToastAsync=qd,ne.showToastLoading=c2,ne.stringToColor=df,ne.toBase64=s5,ne.toast=VN,ne.translateBytes=wx,ne.useFilterToggler=UD,ne.useTheme=Ue,ne.yupImageProfileValidator=Pk,Object.defineProperty(ne,Symbol.toStringTag,{value:"Module"})});
|