@fluidattacks/design 3.25.5-pr.5 → 3.25.5-pr.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index.css +1 -0
- package/dist/assets/vendor.css +1 -0
- package/dist/components/@core/constants.d.ts +2 -0
- package/dist/components/@core/index.d.ts +5 -0
- package/dist/components/@core/index.js +1 -0
- package/dist/components/@core/styles.d.ts +6 -0
- package/dist/components/@core/types.d.ts +182 -0
- package/dist/components/@core/utils.d.ts +11 -0
- package/dist/components/@core/variants/utils.d.ts +59 -0
- package/dist/components/accordion/accordion-content/index.d.ts +3 -0
- package/dist/components/accordion/accordion-content/index.js +1 -0
- package/dist/components/accordion/index.d.ts +4 -0
- package/dist/components/accordion/index.js +1 -0
- package/dist/components/accordion/index.stories.d.ts +6 -0
- package/dist/components/accordion/types.d.ts +38 -0
- package/dist/components/alert/index.d.ts +4 -0
- package/dist/components/alert/index.js +1 -0
- package/dist/components/alert/index.stories.d.ts +11 -0
- package/dist/components/alert/styles.d.ts +277 -0
- package/dist/components/alert/types.d.ts +24 -0
- package/dist/components/avatar/index.d.ts +5 -0
- package/dist/components/avatar/index.js +1 -0
- package/dist/components/avatar/index.stories.d.ts +9 -0
- package/dist/components/avatar/styles.d.ts +539 -0
- package/dist/components/avatar/types.d.ts +15 -0
- package/dist/components/button/index.d.ts +3 -0
- package/dist/components/button/index.js +1 -0
- package/dist/components/button/index.stories.d.ts +11 -0
- package/dist/components/button/styles.d.ts +288 -0
- package/dist/components/button/types.d.ts +34 -0
- package/dist/components/card/card-header/index.d.ts +3 -0
- package/dist/components/card/card-header/index.js +1 -0
- package/dist/components/card/card-with-image/index.d.ts +4 -0
- package/dist/components/card/card-with-image/index.js +1 -0
- package/dist/components/card/card-with-image/index.stories.d.ts +66 -0
- package/dist/components/card/card-with-input/index.d.ts +3 -0
- package/dist/components/card/card-with-input/index.js +1 -0
- package/dist/components/card/card-with-input/index.stories.d.ts +368 -0
- package/dist/components/card/card-with-input/styles.d.ts +8 -0
- package/dist/components/card/card-with-options/index.d.ts +3 -0
- package/dist/components/card/card-with-options/index.js +1 -0
- package/dist/components/card/card-with-options/index.stories.d.ts +6 -0
- package/dist/components/card/card-with-options/types.d.ts +18 -0
- package/dist/components/card/card-with-selector/index.d.ts +3 -0
- package/dist/components/card/card-with-selector/index.js +1 -0
- package/dist/components/card/card-with-selector/index.stories.d.ts +6 -0
- package/dist/components/card/card-with-selector/styles.d.ts +270 -0
- package/dist/components/card/card-with-switch/index.d.ts +3 -0
- package/dist/components/card/card-with-switch/index.js +1 -0
- package/dist/components/card/card-with-switch/index.stories.d.ts +7 -0
- package/dist/components/card/index.d.ts +6 -0
- package/dist/components/card/index.js +1 -0
- package/dist/components/card/types.d.ts +140 -0
- package/dist/components/card-container/index.d.ts +3 -0
- package/dist/components/card-container/index.js +1 -0
- package/dist/components/card-container/types.d.ts +18 -0
- package/dist/components/carousel/index.d.ts +5 -0
- package/dist/components/carousel/index.js +1 -0
- package/dist/components/carousel/index.stories.d.ts +7 -0
- package/dist/components/carousel/styles.d.ts +814 -0
- package/dist/components/carousel/types.d.ts +19 -0
- package/dist/components/checkbox/index.d.ts +3 -0
- package/dist/components/checkbox/index.js +1 -0
- package/dist/components/checkbox/index.stories.d.ts +8 -0
- package/dist/components/checkbox/styles.d.ts +272 -0
- package/dist/components/checkbox/types.d.ts +21 -0
- package/dist/components/cloud-image/index.d.ts +5 -0
- package/dist/components/cloud-image/index.js +1 -0
- package/dist/components/cloud-image/types.d.ts +18 -0
- package/dist/components/code-snippet/index.d.ts +3 -0
- package/dist/components/code-snippet/index.js +1 -0
- package/dist/components/code-snippet/index.stories.d.ts +8 -0
- package/dist/components/code-snippet/location-code/index.d.ts +3 -0
- package/dist/components/code-snippet/location-code/index.js +1 -0
- package/dist/components/code-snippet/styles.d.ts +539 -0
- package/dist/components/code-snippet/types.d.ts +25 -0
- package/dist/components/colors/index.d.ts +10 -0
- package/dist/components/colors/index.js +1 -0
- package/dist/components/conditions-dialog/index.d.ts +3 -0
- package/dist/components/conditions-dialog/index.js +1 -0
- package/dist/components/conditions-dialog/types.d.ts +19 -0
- package/dist/components/confirm-dialog/index.d.ts +11 -0
- package/dist/components/confirm-dialog/index.js +1 -0
- package/dist/components/confirm-dialog/types.d.ts +15 -0
- package/dist/components/container/index.d.ts +5 -0
- package/dist/components/container/index.js +1 -0
- package/dist/components/container/index.stories.d.ts +8 -0
- package/dist/components/container/styles.d.ts +276 -0
- package/dist/components/container/types.d.ts +22 -0
- package/dist/components/copy-button/index.d.ts +4 -0
- package/dist/components/copy-button/index.js +1 -0
- package/dist/components/divider/index.d.ts +3 -0
- package/dist/components/divider/index.js +1 -0
- package/dist/components/divider/index.stories.d.ts +7 -0
- package/dist/components/divider/types.d.ts +11 -0
- package/dist/components/dropdown/index.d.ts +4 -0
- package/dist/components/dropdown/index.js +1 -0
- package/dist/components/dropdown/index.stories.d.ts +7 -0
- package/dist/components/dropdown/styles.d.ts +540 -0
- package/dist/components/dropdown/types.d.ts +19 -0
- package/dist/components/empty-state/empty-button/index.d.ts +8 -0
- package/dist/components/empty-state/empty-button/index.js +1 -0
- package/dist/components/empty-state/index.d.ts +4 -0
- package/dist/components/empty-state/index.js +1 -0
- package/dist/components/empty-state/index.stories.d.ts +10 -0
- package/dist/components/empty-state/styles.d.ts +544 -0
- package/dist/components/empty-state/types.d.ts +35 -0
- package/dist/components/file-preview/index.d.ts +4 -0
- package/dist/components/file-preview/index.js +1 -0
- package/dist/components/file-preview/styles.d.ts +342 -0
- package/dist/components/file-preview/types.d.ts +21 -0
- package/dist/components/file-preview/utils.d.ts +5 -0
- package/dist/components/form/index.d.ts +7 -0
- package/dist/components/form/index.js +1 -0
- package/dist/components/form/index.stories.d.ts +13 -0
- package/dist/components/form/inner-form/index.d.ts +3 -0
- package/dist/components/form/inner-form/index.js +1 -0
- package/dist/components/form/styles.d.ts +278 -0
- package/dist/components/form/types.d.ts +50 -0
- package/dist/components/grid-container/index.d.ts +4 -0
- package/dist/components/grid-container/index.js +1 -0
- package/dist/components/grid-container/index.stories.d.ts +6 -0
- package/dist/components/grid-container/styles.d.ts +279 -0
- package/dist/components/grid-container/types.d.ts +17 -0
- package/dist/components/grid-layout/index.stories.d.ts +14 -0
- package/dist/components/grid-layout/styles.d.ts +1084 -0
- package/dist/components/group-selector/index.d.ts +3 -0
- package/dist/components/group-selector/index.js +1 -0
- package/dist/components/group-selector/index.stories.d.ts +8 -0
- package/dist/components/group-selector/option-container/index.d.ts +4 -0
- package/dist/components/group-selector/option-container/index.js +1 -0
- package/dist/components/group-selector/styles.d.ts +7 -0
- package/dist/components/group-selector/types.d.ts +44 -0
- package/dist/components/icon/index.d.ts +3 -0
- package/dist/components/icon/index.js +1 -0
- package/dist/components/icon/styles.d.ts +550 -0
- package/dist/components/icon/types.d.ts +35 -0
- package/dist/components/icon-button/index.d.ts +3 -0
- package/dist/components/icon-button/index.js +1 -0
- package/dist/components/icon-button/index.stories.d.ts +354 -0
- package/dist/components/icon-button/styles.d.ts +623 -0
- package/dist/components/icon-button/types.d.ts +22 -0
- package/dist/components/indicator-card/index.d.ts +5 -0
- package/dist/components/indicator-card/index.js +1 -0
- package/dist/components/indicator-card/index.stories.d.ts +7 -0
- package/dist/components/indicator-card/types.d.ts +30 -0
- package/dist/components/info-sidebar/index.d.ts +4 -0
- package/dist/components/info-sidebar/index.js +1 -0
- package/dist/components/info-sidebar/index.stories.d.ts +7 -0
- package/dist/components/info-sidebar/types.d.ts +32 -0
- package/dist/components/inputs/fields/combobox/field/index.d.ts +6 -0
- package/dist/components/inputs/fields/combobox/field/index.js +1 -0
- package/dist/components/inputs/fields/combobox/index.d.ts +4 -0
- package/dist/components/inputs/fields/combobox/index.js +1 -0
- package/dist/components/inputs/fields/combobox/index.stories.d.ts +8 -0
- package/dist/components/inputs/fields/combobox/option/index.d.ts +3 -0
- package/dist/components/inputs/fields/combobox/option/index.js +1 -0
- package/dist/components/inputs/fields/combobox/styles.d.ts +7 -0
- package/dist/components/inputs/fields/combobox/types.d.ts +65 -0
- package/dist/components/inputs/fields/date/calendar/cell/index.d.ts +3 -0
- package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -0
- package/dist/components/inputs/fields/date/calendar/grid/index.d.ts +3 -0
- package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -0
- package/dist/components/inputs/fields/date/calendar/header/index.d.ts +3 -0
- package/dist/components/inputs/fields/date/calendar/header/index.js +1 -0
- package/dist/components/inputs/fields/date/calendar/index.d.ts +6 -0
- package/dist/components/inputs/fields/date/calendar/index.js +1 -0
- package/dist/components/inputs/fields/date/calendar/styles.d.ts +2178 -0
- package/dist/components/inputs/fields/date/index.d.ts +3 -0
- package/dist/components/inputs/fields/date/index.js +1 -0
- package/dist/components/inputs/fields/date/index.stories.d.ts +6 -0
- package/dist/components/inputs/fields/date/types.d.ts +38 -0
- package/dist/components/inputs/fields/date-range/calendar/index.d.ts +6 -0
- package/dist/components/inputs/fields/date-range/calendar/index.js +1 -0
- package/dist/components/inputs/fields/date-range/index.d.ts +4 -0
- package/dist/components/inputs/fields/date-range/index.js +1 -0
- package/dist/components/inputs/fields/date-range/index.stories.d.ts +6 -0
- package/dist/components/inputs/fields/date-range/styles.d.ts +5 -0
- package/dist/components/inputs/fields/date-time/calendar/index.d.ts +9 -0
- package/dist/components/inputs/fields/date-time/calendar/index.js +1 -0
- package/dist/components/inputs/fields/date-time/calendar/styles.d.ts +539 -0
- package/dist/components/inputs/fields/date-time/index.d.ts +4 -0
- package/dist/components/inputs/fields/date-time/index.js +1 -0
- package/dist/components/inputs/fields/date-time/index.stories.d.ts +6 -0
- package/dist/components/inputs/fields/editable/index.d.ts +5 -0
- package/dist/components/inputs/fields/editable/index.js +1 -0
- package/dist/components/inputs/fields/editable/index.stories.d.ts +9 -0
- package/dist/components/inputs/fields/editable/types.d.ts +19 -0
- package/dist/components/inputs/fields/input/index.d.ts +3 -0
- package/dist/components/inputs/fields/input/index.js +1 -0
- package/dist/components/inputs/fields/input/index.stories.d.ts +8 -0
- package/dist/components/inputs/fields/input-array/field/index.d.ts +2 -0
- package/dist/components/inputs/fields/input-array/field/index.js +1 -0
- package/dist/components/inputs/fields/input-array/index.d.ts +3 -0
- package/dist/components/inputs/fields/input-array/index.js +1 -0
- package/dist/components/inputs/fields/input-array/index.stories.d.ts +6 -0
- package/dist/components/inputs/fields/input-file/index.d.ts +3 -0
- package/dist/components/inputs/fields/input-file/index.js +1 -0
- package/dist/components/inputs/fields/input-file/index.stories.d.ts +6 -0
- package/dist/components/inputs/fields/input-file/styles.d.ts +572 -0
- package/dist/components/inputs/fields/input-tags/field/index.d.ts +6 -0
- package/dist/components/inputs/fields/input-tags/field/index.js +1 -0
- package/dist/components/inputs/fields/input-tags/index.d.ts +3 -0
- package/dist/components/inputs/fields/input-tags/index.js +1 -0
- package/dist/components/inputs/fields/input-tags/index.stories.d.ts +7 -0
- package/dist/components/inputs/fields/input-tags/styles.d.ts +301 -0
- package/dist/components/inputs/fields/number/index.d.ts +3 -0
- package/dist/components/inputs/fields/number/index.js +1 -0
- package/dist/components/inputs/fields/number/index.stories.d.ts +6 -0
- package/dist/components/inputs/fields/number-range/index.d.ts +3 -0
- package/dist/components/inputs/fields/number-range/index.js +1 -0
- package/dist/components/inputs/fields/number-range/index.stories.d.ts +7 -0
- package/dist/components/inputs/fields/phone/index.d.ts +3 -0
- package/dist/components/inputs/fields/phone/index.js +1 -0
- package/dist/components/inputs/fields/phone/index.stories.d.ts +6 -0
- package/dist/components/inputs/fields/phone/styles.d.ts +1357 -0
- package/dist/components/inputs/fields/text-area/index.d.ts +3 -0
- package/dist/components/inputs/fields/text-area/index.js +1 -0
- package/dist/components/inputs/fields/text-area/index.stories.d.ts +7 -0
- package/dist/components/inputs/index.d.ts +16 -0
- package/dist/components/inputs/index.js +1 -0
- package/dist/components/inputs/label/index.d.ts +3 -0
- package/dist/components/inputs/label/index.js +1 -0
- package/dist/components/inputs/outline-container/index.d.ts +4 -0
- package/dist/components/inputs/outline-container/index.js +1 -0
- package/dist/components/inputs/styles.d.ts +276 -0
- package/dist/components/inputs/types.d.ts +179 -0
- package/dist/components/inputs/utils/action-button/index.d.ts +3 -0
- package/dist/components/inputs/utils/action-button/index.js +1 -0
- package/dist/components/inputs/utils/calendar-button/index.d.ts +8 -0
- package/dist/components/inputs/utils/calendar-button/index.js +1 -0
- package/dist/components/inputs/utils/date-selector/index.d.ts +3 -0
- package/dist/components/inputs/utils/date-selector/index.js +1 -0
- package/dist/components/inputs/utils/date-time-field/index.d.ts +4 -0
- package/dist/components/inputs/utils/date-time-field/index.js +1 -0
- package/dist/components/inputs/utils/dialog/index.d.ts +4 -0
- package/dist/components/inputs/utils/dialog/index.js +1 -0
- package/dist/components/inputs/utils/number-field/index.d.ts +3 -0
- package/dist/components/inputs/utils/number-field/index.js +1 -0
- package/dist/components/inputs/utils/popover/index.d.ts +4 -0
- package/dist/components/inputs/utils/popover/index.js +1 -0
- package/dist/components/inputs/utils/styles.d.ts +1644 -0
- package/dist/components/inputs/utils/types.d.ts +84 -0
- package/dist/components/inputs/utils.d.ts +3 -0
- package/dist/components/layout/categories/buttons/index.d.ts +808 -0
- package/dist/components/layout/categories/buttons/index.js +1 -0
- package/dist/components/layout/categories/column/index.d.ts +3 -0
- package/dist/components/layout/categories/column/index.js +1 -0
- package/dist/components/layout/categories/column/styles.d.ts +284 -0
- package/dist/components/layout/categories/gap/index.d.ts +3 -0
- package/dist/components/layout/categories/gap/index.js +1 -0
- package/dist/components/layout/categories/gap/styles.d.ts +276 -0
- package/dist/components/layout/categories/row/index.d.ts +3 -0
- package/dist/components/layout/categories/row/index.js +1 -0
- package/dist/components/layout/categories/row/styles.d.ts +280 -0
- package/dist/components/layout/index.d.ts +5 -0
- package/dist/components/layout/index.js +1 -0
- package/dist/components/layout/types.d.ts +50 -0
- package/dist/components/link/index.d.ts +5 -0
- package/dist/components/link/index.js +1 -0
- package/dist/components/link/index.stories.d.ts +10 -0
- package/dist/components/link/styles.d.ts +10 -0
- package/dist/components/link/types.d.ts +22 -0
- package/dist/components/list-item/index.d.ts +5 -0
- package/dist/components/list-item/index.js +1 -0
- package/dist/components/list-item/index.stories.d.ts +8 -0
- package/dist/components/list-item/styles.d.ts +540 -0
- package/dist/components/list-item/types.d.ts +33 -0
- package/dist/components/little-flag/index.d.ts +4 -0
- package/dist/components/little-flag/index.js +1 -0
- package/dist/components/little-flag/styles.d.ts +6 -0
- package/dist/components/little-flag/types.d.ts +15 -0
- package/dist/components/loading/index.d.ts +4 -0
- package/dist/components/loading/index.js +1 -0
- package/dist/components/loading/index.stories.d.ts +8 -0
- package/dist/components/loading/styles.d.ts +9 -0
- package/dist/components/loading/types.d.ts +15 -0
- package/dist/components/logo/index.d.ts +3 -0
- package/dist/components/logo/index.js +1 -0
- package/dist/components/logo/types.d.ts +12 -0
- package/dist/components/lottie/index.d.ts +3 -0
- package/dist/components/lottie/index.js +1 -0
- package/dist/components/lottie/styles.d.ts +402 -0
- package/dist/components/lottie/types.d.ts +11 -0
- package/dist/components/menu/index.d.ts +4 -0
- package/dist/components/menu/index.js +1 -0
- package/dist/components/menu/types.d.ts +31 -0
- package/dist/components/message-banner/index.d.ts +3 -0
- package/dist/components/message-banner/index.js +1 -0
- package/dist/components/message-banner/index.stories.d.ts +7 -0
- package/dist/components/message-banner/styles.d.ts +280 -0
- package/dist/components/message-banner/types.d.ts +28 -0
- package/dist/components/message-banner/utils.d.ts +7 -0
- package/dist/components/modal/columns-modal/index.d.ts +3 -0
- package/dist/components/modal/columns-modal/index.js +1 -0
- package/dist/components/modal/columns-modal/index.stories.d.ts +7 -0
- package/dist/components/modal/columns-modal/preview-panel/index.d.ts +3 -0
- package/dist/components/modal/columns-modal/preview-panel/index.js +1 -0
- package/dist/components/modal/columns-modal/preview-panel/styles.d.ts +376 -0
- package/dist/components/modal/columns-modal/preview-panel/types.d.ts +17 -0
- package/dist/components/modal/columns-modal/search-panel/index.d.ts +3 -0
- package/dist/components/modal/columns-modal/search-panel/index.js +1 -0
- package/dist/components/modal/columns-modal/search-panel/styles.d.ts +376 -0
- package/dist/components/modal/columns-modal/search-panel/types.d.ts +16 -0
- package/dist/components/modal/columns-modal/types.d.ts +16 -0
- package/dist/components/modal/filters-modal/applied-filter/index.d.ts +3 -0
- package/dist/components/modal/filters-modal/applied-filter/index.js +1 -0
- package/dist/components/modal/filters-modal/applied-filter/types.d.ts +31 -0
- package/dist/components/modal/filters-modal/applied-filters/index.d.ts +3 -0
- package/dist/components/modal/filters-modal/applied-filters/index.js +1 -0
- package/dist/components/modal/filters-modal/applied-filters/utils.d.ts +7 -0
- package/dist/components/modal/filters-modal/column-filters/index.d.ts +3 -0
- package/dist/components/modal/filters-modal/column-filters/index.js +1 -0
- package/dist/components/modal/filters-modal/column-filters/index.stories.d.ts +6 -0
- package/dist/components/modal/filters-modal/column-filters/types.d.ts +15 -0
- package/dist/components/modal/filters-modal/filter-control/index.d.ts +3 -0
- package/dist/components/modal/filters-modal/filter-control/index.js +1 -0
- package/dist/components/modal/filters-modal/filter-control/types.d.ts +16 -0
- package/dist/components/modal/filters-modal/filter-form/form-content/index.d.ts +2 -0
- package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -0
- package/dist/components/modal/filters-modal/filter-form/form-content/types.d.ts +18 -0
- package/dist/components/modal/filters-modal/filter-form/hooks/index.d.ts +4 -0
- package/dist/components/modal/filters-modal/filter-form/hooks/index.js +1 -0
- package/dist/components/modal/filters-modal/filter-form/hooks/types.d.ts +22 -0
- package/dist/components/modal/filters-modal/filter-form/index.d.ts +3 -0
- package/dist/components/modal/filters-modal/filter-form/index.js +1 -0
- package/dist/components/modal/filters-modal/filter-form/types.d.ts +15 -0
- package/dist/components/modal/filters-modal/filter-form/utils.d.ts +6 -0
- package/dist/components/modal/filters-modal/filters-list/index.d.ts +4 -0
- package/dist/components/modal/filters-modal/filters-list/index.js +1 -0
- package/dist/components/modal/filters-modal/filters-list/styles.d.ts +376 -0
- package/dist/components/modal/filters-modal/filters-list/types.d.ts +34 -0
- package/dist/components/modal/filters-modal/index.d.ts +6 -0
- package/dist/components/modal/filters-modal/index.js +1 -0
- package/dist/components/modal/filters-modal/index.stories.d.ts +16 -0
- package/dist/components/modal/filters-modal/optimization/utils.d.ts +10 -0
- package/dist/components/modal/filters-modal/styles.d.ts +647 -0
- package/dist/components/modal/filters-modal/types.d.ts +98 -0
- package/dist/components/modal/filters-modal/utils.d.ts +5 -0
- package/dist/components/modal/footer/index.d.ts +3 -0
- package/dist/components/modal/footer/index.js +1 -0
- package/dist/components/modal/header/index.d.ts +3 -0
- package/dist/components/modal/header/index.js +1 -0
- package/dist/components/modal/index.d.ts +11 -0
- package/dist/components/modal/index.js +1 -0
- package/dist/components/modal/index.stories.d.ts +18 -0
- package/dist/components/modal/modal-confirm/index.d.ts +3 -0
- package/dist/components/modal/modal-confirm/index.js +1 -0
- package/dist/components/modal/styles.d.ts +1357 -0
- package/dist/components/modal/types.d.ts +94 -0
- package/dist/components/modal/utils.d.ts +4 -0
- package/dist/components/notification/index.d.ts +4 -0
- package/dist/components/notification/index.js +1 -0
- package/dist/components/notification/index.stories.d.ts +9 -0
- package/dist/components/notification/styles.d.ts +7 -0
- package/dist/components/notification/types.d.ts +16 -0
- package/dist/components/notification/utils.d.ts +4 -0
- package/dist/components/notification-sign/index.d.ts +3 -0
- package/dist/components/notification-sign/index.js +1 -0
- package/dist/components/notification-sign/index.stories.d.ts +6 -0
- package/dist/components/notification-sign/styles.d.ts +544 -0
- package/dist/components/notification-sign/types.d.ts +16 -0
- package/dist/components/number-input/index.d.ts +5 -0
- package/dist/components/number-input/index.js +1 -0
- package/dist/components/number-input/index.stories.d.ts +6 -0
- package/dist/components/number-input/styles.d.ts +570 -0
- package/dist/components/number-input/types.d.ts +17 -0
- package/dist/components/oauth-selector/index.d.ts +5 -0
- package/dist/components/oauth-selector/index.js +1 -0
- package/dist/components/oauth-selector/index.stories.d.ts +7 -0
- package/dist/components/oauth-selector/option-container/index.d.ts +3 -0
- package/dist/components/oauth-selector/option-container/index.js +1 -0
- package/dist/components/oauth-selector/types.d.ts +45 -0
- package/dist/components/pop-up/description/index.d.ts +6 -0
- package/dist/components/pop-up/description/index.js +1 -0
- package/dist/components/pop-up/index.d.ts +4 -0
- package/dist/components/pop-up/index.js +1 -0
- package/dist/components/pop-up/index.stories.d.ts +8 -0
- package/dist/components/pop-up/types.d.ts +60 -0
- package/dist/components/premium-feature/index.d.ts +3 -0
- package/dist/components/premium-feature/index.js +1 -0
- package/dist/components/premium-feature/index.stories.d.ts +9 -0
- package/dist/components/premium-feature/styles.d.ts +270 -0
- package/dist/components/premium-feature/types.d.ts +14 -0
- package/dist/components/priority-score/index.d.ts +3 -0
- package/dist/components/priority-score/index.js +1 -0
- package/dist/components/priority-score/index.stories.d.ts +6 -0
- package/dist/components/priority-score/types.d.ts +9 -0
- package/dist/components/progress-bar/index.d.ts +3 -0
- package/dist/components/progress-bar/index.js +1 -0
- package/dist/components/progress-bar/index.stories.d.ts +185 -0
- package/dist/components/progress-bar/styles.d.ts +13 -0
- package/dist/components/progress-bar/types.d.ts +24 -0
- package/dist/components/progress-indicator/in-progress-icon/index.d.ts +3 -0
- package/dist/components/progress-indicator/in-progress-icon/index.js +1 -0
- package/dist/components/progress-indicator/index.d.ts +5 -0
- package/dist/components/progress-indicator/index.js +1 -0
- package/dist/components/progress-indicator/step/index.d.ts +3 -0
- package/dist/components/progress-indicator/step/index.js +1 -0
- package/dist/components/progress-indicator/styles.d.ts +14 -0
- package/dist/components/progress-indicator/types.d.ts +46 -0
- package/dist/components/radio-button/index.d.ts +3 -0
- package/dist/components/radio-button/index.js +1 -0
- package/dist/components/radio-button/index.stories.d.ts +121 -0
- package/dist/components/radio-button/styles.d.ts +541 -0
- package/dist/components/radio-button/types.d.ts +14 -0
- package/dist/components/scroll-button/index.d.ts +4 -0
- package/dist/components/scroll-button/index.js +1 -0
- package/dist/components/scroll-button/styles.d.ts +274 -0
- package/dist/components/scroll-button/types.d.ts +25 -0
- package/dist/components/search/index.d.ts +3 -0
- package/dist/components/search/index.js +1 -0
- package/dist/components/search/index.stories.d.ts +7 -0
- package/dist/components/search/styles.d.ts +839 -0
- package/dist/components/search/types.d.ts +12 -0
- package/dist/components/severity-badge/index.d.ts +4 -0
- package/dist/components/severity-badge/index.js +1 -0
- package/dist/components/severity-badge/index.stories.d.ts +8 -0
- package/dist/components/severity-badge/types.d.ts +26 -0
- package/dist/components/severity-badge/utils.d.ts +3 -0
- package/dist/components/severity-overview/badge/index.d.ts +3 -0
- package/dist/components/severity-overview/badge/index.js +1 -0
- package/dist/components/severity-overview/index.d.ts +3 -0
- package/dist/components/severity-overview/index.js +1 -0
- package/dist/components/severity-overview/index.stories.d.ts +6 -0
- package/dist/components/severity-overview/types.d.ts +40 -0
- package/dist/components/severity-overview/utils.d.ts +3 -0
- package/dist/components/show-on-hover/index.d.ts +3 -0
- package/dist/components/show-on-hover/index.js +1 -0
- package/dist/components/show-on-hover/styles.d.ts +270 -0
- package/dist/components/show-on-hover/types.d.ts +12 -0
- package/dist/components/slide-out-menu/index.d.ts +6 -0
- package/dist/components/slide-out-menu/index.js +1 -0
- package/dist/components/slide-out-menu/index.stories.d.ts +8 -0
- package/dist/components/slide-out-menu/menu-item/index.d.ts +4 -0
- package/dist/components/slide-out-menu/menu-item/index.js +1 -0
- package/dist/components/slide-out-menu/styles.d.ts +333 -0
- package/dist/components/slide-out-menu/types.d.ts +43 -0
- package/dist/components/slider/index.d.ts +3 -0
- package/dist/components/slider/index.js +1 -0
- package/dist/components/slider/index.stories.d.ts +7 -0
- package/dist/components/slider/styles.d.ts +546 -0
- package/dist/components/slider/thumb/index.d.ts +3 -0
- package/dist/components/slider/thumb/index.js +1 -0
- package/dist/components/slider/types.d.ts +19 -0
- package/dist/components/slider/utils.d.ts +2 -0
- package/dist/components/step-lapse/index.d.ts +3 -0
- package/dist/components/step-lapse/index.js +1 -0
- package/dist/components/step-lapse/index.stories.d.ts +6 -0
- package/dist/components/step-lapse/styles.d.ts +812 -0
- package/dist/components/step-lapse/types.d.ts +44 -0
- package/dist/components/table/context/index.d.ts +3 -0
- package/dist/components/table/context/index.js +1 -0
- package/dist/components/table/context/types.d.ts +27 -0
- package/dist/components/table/export-csv/index.d.ts +4 -0
- package/dist/components/table/export-csv/index.js +1 -0
- package/dist/components/table/export-csv/types.d.ts +25 -0
- package/dist/components/table/export-csv/utils.d.ts +2 -0
- package/dist/components/table/index.d.ts +24 -0
- package/dist/components/table/index.js +1 -0
- package/dist/components/table/index.stories.d.ts +22 -0
- package/dist/components/table/pagination/pagination-control/index.d.ts +2 -0
- package/dist/components/table/pagination/pagination-control/index.js +1 -0
- package/dist/components/table/pagination/pagination-control/styles.d.ts +6 -0
- package/dist/components/table/pagination/pagination-dropdown/index.d.ts +2 -0
- package/dist/components/table/pagination/pagination-dropdown/index.js +1 -0
- package/dist/components/table/pagination/pagination-size/index.d.ts +2 -0
- package/dist/components/table/pagination/pagination-size/index.js +1 -0
- package/dist/components/table/sort-icon/index.d.ts +3 -0
- package/dist/components/table/sort-icon/index.js +1 -0
- package/dist/components/table/sort-icon/styles.d.ts +5 -0
- package/dist/components/table/sort-icon/types.d.ts +9 -0
- package/dist/components/table/styles.d.ts +812 -0
- package/dist/components/table/table-body/index.d.ts +3 -0
- package/dist/components/table/table-body/index.js +1 -0
- package/dist/components/table/table-body/styles.d.ts +270 -0
- package/dist/components/table/table-column-toggle/index.d.ts +3 -0
- package/dist/components/table/table-column-toggle/index.js +1 -0
- package/dist/components/table/table-content/head/index.d.ts +3 -0
- package/dist/components/table/table-content/head/index.js +1 -0
- package/dist/components/table/table-content/index.d.ts +2 -0
- package/dist/components/table/table-content/index.js +1 -0
- package/dist/components/table/table-footer/footer-content/index.d.ts +4 -0
- package/dist/components/table/table-footer/footer-content/index.js +1 -0
- package/dist/components/table/table-footer/index.d.ts +4 -0
- package/dist/components/table/table-footer/index.js +1 -0
- package/dist/components/table/table-options/caption-content/index.d.ts +4 -0
- package/dist/components/table/table-options/caption-content/index.js +1 -0
- package/dist/components/table/table-options/controls-content/index.d.ts +4 -0
- package/dist/components/table/table-options/controls-content/index.js +1 -0
- package/dist/components/table/table-options/highlighted-content/index.d.ts +4 -0
- package/dist/components/table/table-options/highlighted-content/index.js +1 -0
- package/dist/components/table/table-options/index.d.ts +4 -0
- package/dist/components/table/table-options/index.js +1 -0
- package/dist/components/table/table-options/styles.d.ts +808 -0
- package/dist/components/table/types.d.ts +34 -0
- package/dist/components/table/wrapper/index.d.ts +4 -0
- package/dist/components/table/wrapper/index.js +1 -0
- package/dist/components/table-button/index.d.ts +3 -0
- package/dist/components/table-button/index.js +1 -0
- package/dist/components/table-button/index.stories.d.ts +112 -0
- package/dist/components/table-button/styles.d.ts +280 -0
- package/dist/components/table-button/types.d.ts +16 -0
- package/dist/components/tabs/index.d.ts +4 -0
- package/dist/components/tabs/index.js +1 -0
- package/dist/components/tabs/index.stories.d.ts +10 -0
- package/dist/components/tabs/styles.d.ts +6 -0
- package/dist/components/tabs/tab/index.d.ts +4 -0
- package/dist/components/tabs/tab/index.js +1 -0
- package/dist/components/tabs/types.d.ts +57 -0
- package/dist/components/tag/index.d.ts +4 -0
- package/dist/components/tag/index.js +1 -0
- package/dist/components/tag/index.stories.d.ts +9 -0
- package/dist/components/tag/styles.d.ts +7 -0
- package/dist/components/tag/types.d.ts +32 -0
- package/dist/components/timeline/card/index.d.ts +3 -0
- package/dist/components/timeline/card/index.js +1 -0
- package/dist/components/timeline/index.d.ts +5 -0
- package/dist/components/timeline/index.js +1 -0
- package/dist/components/timeline/index.stories.d.ts +6 -0
- package/dist/components/timeline/styles.d.ts +8 -0
- package/dist/components/timeline/types.d.ts +24 -0
- package/dist/components/toggle/index.d.ts +5 -0
- package/dist/components/toggle/index.js +1 -0
- package/dist/components/toggle/index.stories.d.ts +125 -0
- package/dist/components/toggle/styles.d.ts +810 -0
- package/dist/components/toggle/types.d.ts +30 -0
- package/dist/components/tooltip/index.d.ts +4 -0
- package/dist/components/tooltip/index.js +1 -0
- package/dist/components/tooltip/index.stories.d.ts +8 -0
- package/dist/components/tooltip/styles.d.ts +337 -0
- package/dist/components/tooltip/types.d.ts +29 -0
- package/dist/components/tour/index.d.ts +6 -0
- package/dist/components/tour/index.js +1 -0
- package/dist/components/tour/types.d.ts +14 -0
- package/dist/components/typography/heading/index.d.ts +3 -0
- package/dist/components/typography/heading/index.js +1 -0
- package/dist/components/typography/index.d.ts +4 -0
- package/dist/components/typography/index.js +1 -0
- package/dist/components/typography/span/index.d.ts +4 -0
- package/dist/components/typography/span/index.js +1 -0
- package/dist/components/typography/styles.d.ts +832 -0
- package/dist/components/typography/text/index.d.ts +3 -0
- package/dist/components/typography/text/index.js +1 -0
- package/dist/components/typography/types.d.ts +29 -0
- package/dist/components-8KvoC7ZY.mjs +12183 -0
- package/dist/components-Bnce3gbg.js +3097 -0
- package/dist/gradients.svg +13 -0
- package/dist/hooks/index.d.ts +9 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/use-carousel.d.ts +6 -0
- package/dist/hooks/use-click-outside.d.ts +2 -0
- package/dist/hooks/use-cloudinary-image.d.ts +13 -0
- package/dist/hooks/use-columns-modal.d.ts +23 -0
- package/dist/hooks/use-debounced-callback.d.ts +4 -0
- package/dist/hooks/use-modal.d.ts +11 -0
- package/dist/hooks/use-search.d.ts +5 -0
- package/dist/index.d.ts +66 -0
- package/dist/index.js +1 -0
- package/dist/utils/date.d.ts +5 -0
- package/dist/utils/open-url.d.ts +1 -0
- package/dist/vendor-DGfjRRUz.js +223 -0
- package/dist/vendor-Nr1PjBcL.mjs +45708 -0
- package/package.json +1 -1
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
"use strict";require('./assets/vendor.css');var Dj=Object.defineProperty;var Aj=(e,t,n)=>t in e?Dj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var mf=(e,t,n)=>Aj(e,typeof t!="symbol"?t+"":t,n);const T=require("react"),la=require("react/jsx-runtime"),qa=require("react-dom");function y5(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=y5(T),rp=y5(qa);var Fr=function(){return Fr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Fr.apply(this,arguments)};function Ou(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}function Tj(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Pj=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,_j=Tj(function(e){return Pj.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Yi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ci(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wn="-ms-",qf="-moz-",rn="-webkit-",b5="comm",$m="rule",B4="decl",Mj="@import",Fj="@namespace",$5="@keyframes",Rj="@layer",x5=Math.abs,V4=String.fromCharCode,Z1=Object.assign;function kj(e,t){return ar(e,0)^45?(((t<<2^ar(e,0))<<2^ar(e,1))<<2^ar(e,2))<<2^ar(e,3):0}function w5(e){return e.trim()}function Va(e,t){return(e=t.exec(e))?e[0]:e}function Vt(e,t,n){return e.replace(t,n)}function ip(e,t,n){return e.indexOf(t,n)}function ar(e,t){return e.charCodeAt(t)|0}function Iu(e,t,n){return e.slice(t,n)}function bs(e){return e.length}function C5(e){return e.length}function Mf(e,t){return t.push(e),e}function Oj(e,t){return e.map(t).join("")}function Xw(e,t){return e.filter(function(n){return!Va(n,t)})}var xm=1,rc=1,E5=0,ts=0,rr=0,$c="";function wm(e,t,n,r,i,s,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:xm,column:rc,length:a,return:"",siblings:o}}function vo(e,t){return Z1(wm("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Tl(e){for(;e.root;)e=vo(e.root,{children:[e]});Mf(e,e.siblings)}function Ij(){return rr}function Lj(){return rr=ts>0?ar($c,--ts):0,rc--,rr===10&&(rc=1,xm--),rr}function Es(){return rr=ts<E5?ar($c,ts++):0,rc++,rr===10&&(rc=1,xm++),rr}function So(){return ar($c,ts)}function sp(){return ts}function Cm(e,t){return Iu($c,e,t)}function ed(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Bj(e){return xm=rc=1,E5=bs($c=e),ts=0,[]}function Vj(e){return $c="",e}function cv(e){return w5(Cm(ts-1,X1(e===91?e+2:e===40?e+1:e)))}function Nj(e){for(;(rr=So())&&rr<33;)Es();return ed(e)>2||ed(rr)>3?"":" "}function jj(e,t){for(;--t&&Es()&&!(rr<48||rr>102||rr>57&&rr<65||rr>70&&rr<97););return Cm(e,sp()+(t<6&&So()==32&&Es()==32))}function X1(e){for(;Es();)switch(rr){case e:return ts;case 34:case 39:e!==34&&e!==39&&X1(rr);break;case 40:e===41&&X1(e);break;case 92:Es();break}return ts}function Kj(e,t){for(;Es()&&e+rr!==57;)if(e+rr===84&&So()===47)break;return"/*"+Cm(t,ts-1)+"*"+V4(e===47?e:Es())}function Uj(e){for(;!ed(So());)Es();return Cm(e,ts)}function qj(e){return Vj(ap("",null,null,null,[""],e=Bj(e),0,[0],e))}function ap(e,t,n,r,i,s,a,o,l){for(var d=0,h=0,m=a,g=0,b=0,x=0,w=1,S=1,E=1,C=0,A="",k=i,M=s,R=r,K=A;S;)switch(x=C,C=Es()){case 40:if(x!=108&&ar(K,m-1)==58){ip(K+=Vt(cv(C),"&","&\f"),"&\f",x5(d?o[d-1]:0))!=-1&&(E=-1);break}case 34:case 39:case 91:K+=cv(C);break;case 9:case 10:case 13:case 32:K+=Nj(x);break;case 92:K+=jj(sp()-1,7);continue;case 47:switch(So()){case 42:case 47:Mf(zj(Kj(Es(),sp()),t,n,l),l),(ed(x||1)==5||ed(So()||1)==5)&&bs(K)&&Iu(K,-1,void 0)!==" "&&(K+=" ");break;default:K+="/"}break;case 123*w:o[d++]=bs(K)*E;case 125*w:case 59:case 0:switch(C){case 0:case 125:S=0;case 59+h:E==-1&&(K=Vt(K,/\f/g,"")),b>0&&(bs(K)-m||w===0&&x===47)&&Mf(b>32?Qw(K+";",r,n,m-1,l):Qw(Vt(K," ","")+";",r,n,m-2,l),l);break;case 59:K+=";";default:if(Mf(R=Jw(K,t,n,d,h,i,o,A,k=[],M=[],m,s),s),C===123)if(h===0)ap(K,t,R,R,k,s,m,o,M);else{switch(g){case 99:if(ar(K,3)===110)break;case 108:if(ar(K,2)===97)break;default:h=0;case 100:case 109:case 115:}h?ap(e,R,R,r&&Mf(Jw(e,R,R,0,0,i,o,A,i,k=[],m,M),M),i,M,m,o,r?k:M):ap(K,R,R,R,[""],M,0,o,M)}}d=h=b=0,w=E=1,A=K="",m=a;break;case 58:m=1+bs(K),b=x;default:if(w<1){if(C==123)--w;else if(C==125&&w++==0&&Lj()==125)continue}switch(K+=V4(C),C*w){case 38:E=h>0?1:(K+="\f",-1);break;case 44:o[d++]=(bs(K)-1)*E,E=1;break;case 64:So()===45&&(K+=cv(Es())),g=So(),h=m=bs(A=K+=Uj(sp())),C++;break;case 45:x===45&&bs(K)==2&&(w=0)}}return s}function Jw(e,t,n,r,i,s,a,o,l,d,h,m){for(var g=i-1,b=i===0?s:[""],x=C5(b),w=0,S=0,E=0;w<r;++w)for(var C=0,A=Iu(e,g+1,g=x5(S=a[w])),k=e;C<x;++C)(k=w5(S>0?b[C]+" "+A:Vt(A,/&\f/g,b[C])))&&(l[E++]=k);return wm(e,t,n,i===0?$m:o,l,d,h,m)}function zj(e,t,n,r){return wm(e,t,n,b5,V4(Ij()),Iu(e,2,-2),0,r)}function Qw(e,t,n,r,i){return wm(e,t,n,B4,Iu(e,0,r),Iu(e,r+1,-1),r,i)}function S5(e,t,n){switch(kj(e,t)){case 5103:return rn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return rn+e+e;case 4855:return rn+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return qf+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return rn+e+qf+e+wn+e+e;case 5936:switch(ar(e,t+11)){case 114:return rn+e+wn+Vt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return rn+e+wn+Vt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return rn+e+wn+Vt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return rn+e+wn+e+e;case 6165:return rn+e+wn+"flex-"+e+e;case 5187:return rn+e+Vt(e,/(\w+).+(:[^]+)/,rn+"box-$1$2"+wn+"flex-$1$2")+e;case 5443:return rn+e+wn+"flex-item-"+Vt(e,/flex-|-self/g,"")+(Va(e,/flex-|baseline/)?"":wn+"grid-row-"+Vt(e,/flex-|-self/g,""))+e;case 4675:return rn+e+wn+"flex-line-pack"+Vt(e,/align-content|flex-|-self/g,"")+e;case 5548:return rn+e+wn+Vt(e,"shrink","negative")+e;case 5292:return rn+e+wn+Vt(e,"basis","preferred-size")+e;case 6060:return rn+"box-"+Vt(e,"-grow","")+rn+e+wn+Vt(e,"grow","positive")+e;case 4554:return rn+Vt(e,/([^-])(transform)/g,"$1"+rn+"$2")+e;case 6187:return Vt(Vt(Vt(e,/(zoom-|grab)/,rn+"$1"),/(image-set)/,rn+"$1"),e,"")+e;case 5495:case 3959:return Vt(e,/(image-set\([^]*)/,rn+"$1$`$1");case 4968:return Vt(Vt(e,/(.+:)(flex-)?(.*)/,rn+"box-pack:$3"+wn+"flex-pack:$3"),/space-between/,"justify")+rn+e+e;case 4200:if(!Va(e,/flex-|baseline/))return wn+"grid-column-align"+Iu(e,t)+e;break;case 2592:case 3360:return wn+Vt(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Va(r.props,/grid-\w+-end/)})?~ip(e+(n=n[t].value),"span",0)?e:wn+Vt(e,"-start","")+e+wn+"grid-row-span:"+(~ip(n,"span",0)?Va(n,/\d+/):+Va(n,/\d+/)-+Va(e,/\d+/))+";":wn+Vt(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Va(r.props,/grid-\w+-start/)})?e:wn+Vt(Vt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Vt(e,/(.+)-inline(.+)/,rn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(bs(e)-1-t>6)switch(ar(e,t+1)){case 109:if(ar(e,t+4)!==45)break;case 102:return Vt(e,/(.+:)(.+)-([^]+)/,"$1"+rn+"$2-$3$1"+qf+(ar(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ip(e,"stretch",0)?S5(Vt(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Vt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,s,a,o,l,d){return wn+i+":"+s+d+(a?wn+i+"-span:"+(o?l:+l-+s)+d:"")+e});case 4949:if(ar(e,t+6)===121)return Vt(e,":",":"+rn)+e;break;case 6444:switch(ar(e,ar(e,14)===45?18:11)){case 120:return Vt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+rn+(ar(e,14)===45?"inline-":"")+"box$3$1"+rn+"$2$3$1"+wn+"$2box$3")+e;case 100:return Vt(e,":",":"+wn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Vt(e,"scroll-","scroll-snap-")+e}return e}function _p(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Wj(e,t,n,r){switch(e.type){case Rj:if(e.children.length)break;case Mj:case Fj:case B4:return e.return=e.return||e.value;case b5:return"";case $5:return e.return=e.value+"{"+_p(e.children,r)+"}";case $m:if(!bs(e.value=e.props.join(",")))return""}return bs(n=_p(e.children,r))?e.return=e.value+"{"+n+"}":""}function Hj(e){var t=C5(e);return function(n,r,i,s){for(var a="",o=0;o<t;o++)a+=e[o](n,r,i,s)||"";return a}}function Gj(e){return function(t){t.root||(t=t.return)&&e(t)}}function Yj(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case B4:e.return=S5(e.value,e.length,n);return;case $5:return _p([vo(e,{value:Vt(e.value,"@","@"+rn)})],r);case $m:if(e.length)return Oj(n=e.props,function(i){switch(Va(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Tl(vo(e,{props:[Vt(i,/:(read-\w+)/,":"+qf+"$1")]})),Tl(vo(e,{props:[i]})),Z1(e,{props:Xw(n,r)});break;case"::placeholder":Tl(vo(e,{props:[Vt(i,/:(plac\w+)/,":"+rn+"input-$1")]})),Tl(vo(e,{props:[Vt(i,/:(plac\w+)/,":"+qf+"$1")]})),Tl(vo(e,{props:[Vt(i,/:(plac\w+)/,wn+"input-$1")]})),Tl(vo(e,{props:[i]})),Z1(e,{props:Xw(n,r)});break}return""})}}var Zj={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Lu=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",N4=typeof window<"u"&&"HTMLElement"in window,Xj=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),eC=/invalid hook call/i,Rh=new Set,Jj=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
|
|
2
|
+
`)+`You may see this warning because you've called styled inside another component.
|
|
3
|
+
To resolve this only create new StyledComponents outside of any render method and function component.`,i=console.error;try{var s=!0;console.error=function(a){for(var o=[],l=1;l<arguments.length;l++)o[l-1]=arguments[l];eC.test(a)?(s=!1,Rh.delete(r)):i.apply(void 0,Ou([a],o,!1))},T.useRef(),s&&!Rh.has(r)&&(console.warn(r),Rh.add(r))}catch(a){eC.test(a.message)&&Rh.delete(r)}finally{console.error=i}}},Em=Object.freeze([]),ic=Object.freeze({});function Qj(e,t,n){return n===void 0&&(n=ic),e.theme!==n.theme&&e.theme||t||n.theme}var J1=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),eK=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,tK=/(^-|-$)/g;function tC(e){return e.replace(eK,"-").replace(tK,"")}var nK=/(a)(d)/gi,nC=function(e){return String.fromCharCode(e+(e>25?39:97))};function Q1(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=nC(t%52)+n;return(nC(t%52)+n).replace(nK,"$1-$2")}var fv,mu=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},D5=function(e){return mu(5381,e)};function A5(e){return Q1(D5(e)>>>0)}function T5(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function dv(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var P5=typeof Symbol=="function"&&Symbol.for,_5=P5?Symbol.for("react.memo"):60115,rK=P5?Symbol.for("react.forward_ref"):60112,iK={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},sK={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},M5={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},aK=((fv={})[rK]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},fv[_5]=M5,fv);function rC(e){return("type"in(t=e)&&t.type.$$typeof)===_5?M5:"$$typeof"in e?aK[e.$$typeof]:iK;var t}var oK=Object.defineProperty,uK=Object.getOwnPropertyNames,iC=Object.getOwnPropertySymbols,lK=Object.getOwnPropertyDescriptor,cK=Object.getPrototypeOf,sC=Object.prototype;function F5(e,t,n){if(typeof t!="string"){if(sC){var r=cK(t);r&&r!==sC&&F5(e,r,n)}var i=uK(t);iC&&(i=i.concat(iC(t)));for(var s=rC(e),a=rC(t),o=0;o<i.length;++o){var l=i[o];if(!(l in sK||n&&n[l]||a&&l in a||s&&l in s)){var d=lK(t,l);try{oK(e,l,d)}catch{}}}}return e}function Bu(e){return typeof e=="function"}function j4(e){return typeof e=="object"&&"styledComponentId"in e}function yu(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function eb(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function sc(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function tb(e,t,n){if(n===void 0&&(n=!1),!n&&!sc(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=tb(e[r],t[r]);else if(sc(t))for(var r in t)e[r]=tb(e[r],t[r]);return e}function K4(e,t){Object.defineProperty(e,"toString",{value:t})}var fK=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
4
|
+
|
|
5
|
+
`,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
6
|
+
|
|
7
|
+
- Are you trying to reuse it across renders?
|
|
8
|
+
- Are you accidentally calling collectStyles twice?
|
|
9
|
+
|
|
10
|
+
`,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
11
|
+
|
|
12
|
+
`,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
13
|
+
|
|
14
|
+
- Does this error occur on the client and is your target falsy?
|
|
15
|
+
- Does this error occur on the server and is the sheet falsy?
|
|
16
|
+
|
|
17
|
+
`,5:`The clone method cannot be used on the client!
|
|
18
|
+
|
|
19
|
+
- Are you running in a client-like environment on the server?
|
|
20
|
+
- Are you trying to run SSR on the client?
|
|
21
|
+
|
|
22
|
+
`,6:`Trying to insert a new style tag, but the given Node is unmounted!
|
|
23
|
+
|
|
24
|
+
- Are you using a custom target that isn't mounted?
|
|
25
|
+
- Does your document not have a valid head element?
|
|
26
|
+
- Have you accidentally removed a style tag manually?
|
|
27
|
+
|
|
28
|
+
`,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
|
|
29
|
+
|
|
30
|
+
`,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
|
|
31
|
+
|
|
32
|
+
`,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
|
|
33
|
+
|
|
34
|
+
`,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
|
|
35
|
+
|
|
36
|
+
`,14:`ThemeProvider: "theme" prop is required.
|
|
37
|
+
|
|
38
|
+
`,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
|
|
39
|
+
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
40
|
+
as for instance in your render method then you may be running into this limitation.
|
|
41
|
+
|
|
42
|
+
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
43
|
+
Has styled-components' style tag been unmounted or altered by another script?
|
|
44
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function dK(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],i=1,s=e.length;i<s;i+=1)r.push(e[i]);return r.forEach(function(a){n=n.replace(/%[a-z]/,a)}),n}function ia(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(dK.apply(void 0,Ou([fK[e]],t,!1)).trim())}var hK=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,s=i;t>=s;)if((s<<=1)<0)throw ia(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(r),this.length=s;for(var a=i;a<s;a++)this.groupSizes[a]=0}for(var o=this.indexOfGroup(t+1),l=(a=0,n.length);a<l;a++)this.tag.insertRule(o,n[a])&&(this.groupSizes[t]++,o++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),i=r+n;this.groupSizes[t]=0;for(var s=r;s<i;s++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),s=i+r,a=i;a<s;a++)n+="".concat(this.tag.getRule(a)).concat(`/*!sc*/
|
|
45
|
+
`);return n},e}(),op=new Map,Mp=new Map,up=1,kh=function(e){if(op.has(e))return op.get(e);for(;Mp.has(up);)up++;var t=up++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>1073741824))throw ia(16,"".concat(t));return op.set(e,t),Mp.set(t,e),t},pK=function(e,t){up=t+1,op.set(e,t),Mp.set(t,e)},mK="style[".concat(Lu,"][").concat("data-styled-version",'="').concat("6.1.1",'"]'),gK=new RegExp("^".concat(Lu,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),vK=function(e,t,n){for(var r,i=n.split(","),s=0,a=i.length;s<a;s++)(r=i[s])&&e.registerName(t,r)},yK=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(`/*!sc*/
|
|
46
|
+
`),i=[],s=0,a=r.length;s<a;s++){var o=r[s].trim();if(o){var l=o.match(gK);if(l){var d=0|parseInt(l[1],10),h=l[2];d!==0&&(pK(h,d),vK(e,h,l[3]),e.getTag().insertRules(d,i)),i.length=0}else i.push(o)}}};function bK(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var R5=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(o){var l=Array.from(o.querySelectorAll("style[".concat(Lu,"]")));return l[l.length-1]}(n),s=i!==void 0?i.nextSibling:null;r.setAttribute(Lu,"active"),r.setAttribute("data-styled-version","6.1.1");var a=bK();return a&&r.setAttribute("nonce",a),n.insertBefore(r,s),r},$K=function(){function e(t){this.element=R5(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,i=0,s=r.length;i<s;i++){var a=r[i];if(a.ownerNode===n)return a}throw ia(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),xK=function(){function e(t){this.element=R5(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),wK=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),aC=N4,CK={isServer:!N4,useCSSOMInjection:!Xj},k5=function(){function e(t,n,r){t===void 0&&(t=ic),n===void 0&&(n={});var i=this;this.options=Fr(Fr({},CK),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&N4&&aC&&(aC=!1,function(s){for(var a=document.querySelectorAll(mK),o=0,l=a.length;o<l;o++){var d=a[o];d&&d.getAttribute(Lu)!=="active"&&(yK(s,d),d.parentNode&&d.parentNode.removeChild(d))}}(this)),K4(this,function(){return function(s){for(var a=s.getTag(),o=a.length,l="",d=function(m){var g=function(E){return Mp.get(E)}(m);if(g===void 0)return"continue";var b=s.names.get(g),x=a.getGroup(m);if(b===void 0||x.length===0)return"continue";var w="".concat(Lu,".g").concat(m,'[id="').concat(g,'"]'),S="";b!==void 0&&b.forEach(function(E){E.length>0&&(S+="".concat(E,","))}),l+="".concat(x).concat(w,'{content:"').concat(S,'"}').concat(`/*!sc*/
|
|
47
|
+
`)},h=0;h<o;h++)d(h);return l}(i)})}return e.registerId=function(t){return kh(t)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(Fr(Fr({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,i=n.target;return n.isServer?new wK(i):r?new $K(i):new xK(i)}(this.options),new hK(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(kh(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(kh(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(kh(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),EK=/&/g,SK=/^\s*\/\/.*$/gm;function O5(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=O5(n.children,t)),n})}function DK(e){var t,n,r,i=ic,s=i.options,a=s===void 0?ic:s,o=i.plugins,l=o===void 0?Em:o,d=function(g,b,x){return x===n||x.startsWith(n)&&x.endsWith(n)&&x.replaceAll(n,"").length>0?".".concat(t):g},h=l.slice();h.push(function(g){g.type===$m&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(EK,n).replace(r,d))}),a.prefix&&h.push(Yj),h.push(Wj);var m=function(g,b,x,w){b===void 0&&(b=""),x===void 0&&(x=""),w===void 0&&(w="&"),t=w,n=b,r=new RegExp("\\".concat(n,"\\b"),"g");var S=g.replace(SK,""),E=qj(x||b?"".concat(x," ").concat(b," { ").concat(S," }"):S);a.namespace&&(E=O5(E,a.namespace));var C=[];return _p(E,Hj(h.concat(Gj(function(A){return C.push(A)})))),C};return m.hash=l.length?l.reduce(function(g,b){return b.name||ia(15),mu(g,b.name)},5381).toString():"",m}var AK=new k5,nb=DK(),I5=T.createContext({shouldForwardProp:void 0,styleSheet:AK,stylis:nb});I5.Consumer;T.createContext(void 0);function oC(){return T.useContext(I5)}var rb=function(){function e(t,n){var r=this;this.inject=function(i,s){s===void 0&&(s=nb);var a=r.name+s.hash;i.hasNameForId(r.id,a)||i.insertRules(r.id,a,s(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,K4(this,function(){throw ia(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=nb),this.name+t.hash},e}(),TK=function(e){return e>="A"&&e<="Z"};function uC(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;TK(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var L5=function(e){return e==null||e===!1||e===""},B5=function(e){var t,n,r=[];for(var i in e){var s=e[i];e.hasOwnProperty(i)&&!L5(s)&&(Array.isArray(s)&&s.isCss||Bu(s)?r.push("".concat(uC(i),":"),s,";"):sc(s)?r.push.apply(r,Ou(Ou(["".concat(i," {")],B5(s),!1),["}"],!1)):r.push("".concat(uC(i),": ").concat((t=i,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Zj||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Pu(e,t,n,r){if(L5(e))return[];if(j4(e))return[".".concat(e.styledComponentId)];if(Bu(e)){if(!Bu(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var i=e(t);return process.env.NODE_ENV==="production"||typeof i!="object"||Array.isArray(i)||i instanceof rb||sc(i)||i===null||console.error("".concat(T5(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Pu(i,t,n,r)}var s;return e instanceof rb?n?(e.inject(n,r),[e.getName(r)]):[e]:sc(e)?B5(e):Array.isArray(e)?Array.prototype.concat.apply(Em,e.map(function(a){return Pu(a,t,n,r)})):[e.toString()]}function PK(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Bu(n)&&!j4(n))return!1}return!0}var _K=D5("6.1.1"),MK=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&PK(t),this.componentId=n,this.baseHash=mu(_K,n),this.baseStyle=r,k5.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))i=yu(i,this.staticRulesId);else{var s=eb(Pu(this.rules,t,n,r)),a=Q1(mu(this.baseHash,s)>>>0);if(!n.hasNameForId(this.componentId,a)){var o=r(s,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,o)}i=yu(i,a),this.staticRulesId=a}else{for(var l=mu(this.baseHash,r.hash),d="",h=0;h<this.rules.length;h++){var m=this.rules[h];if(typeof m=="string")d+=m,process.env.NODE_ENV!=="production"&&(l=mu(l,m));else if(m){var g=eb(Pu(m,t,n,r));l=mu(l,g+h),d+=g}}if(d){var b=Q1(l>>>0);n.hasNameForId(this.componentId,b)||n.insertRules(this.componentId,b,r(d,".".concat(b),void 0,this.componentId)),i=yu(i,b)}}return i},e}(),td=T.createContext(void 0);td.Consumer;function FK(){var e=T.useContext(td);if(!e)throw ia(18);return e}function RK(e){var t=T.useContext(td),n=T.useMemo(function(){return function(r,i){if(!r)throw ia(14);if(Bu(r)){var s=r(i);if(process.env.NODE_ENV!=="production"&&(s===null||Array.isArray(s)||typeof s!="object"))throw ia(7);return s}if(Array.isArray(r)||typeof r!="object")throw ia(8);return i?Fr(Fr({},i),r):r}(e.theme,t)},[e.theme,t]);return e.children?T.createElement(td.Provider,{value:n},e.children):null}var hv={},lC=new Set;function kK(e,t,n){var r=j4(e),i=e,s=!dv(e),a=t.attrs,o=a===void 0?Em:a,l=t.componentId,d=l===void 0?function(k,M){var R=typeof k!="string"?"sc":tC(k);hv[R]=(hv[R]||0)+1;var K="".concat(R,"-").concat(A5("6.1.1"+R+hv[R]));return M?"".concat(M,"-").concat(K):K}(t.displayName,t.parentComponentId):l,h=t.displayName,m=h===void 0?function(k){return dv(k)?"styled.".concat(k):"Styled(".concat(T5(k),")")}(e):h,g=t.displayName&&t.componentId?"".concat(tC(t.displayName),"-").concat(t.componentId):t.componentId||d,b=r&&i.attrs?i.attrs.concat(o).filter(Boolean):o,x=t.shouldForwardProp;if(r&&i.shouldForwardProp){var w=i.shouldForwardProp;if(t.shouldForwardProp){var S=t.shouldForwardProp;x=function(k,M){return w(k,M)&&S(k,M)}}else x=w}var E=new MK(n,g,r?i.componentStyle:void 0);function C(k,M){return function(R,K,H){var le=R.attrs,ae=R.componentStyle,I=R.defaultProps,$e=R.foldedComponentIds,we=R.styledComponentId,W=R.target,ie=T.useContext(td),O=oC(),L=R.shouldForwardProp||O.shouldForwardProp;process.env.NODE_ENV!=="production"&&T.useDebugValue(we);var B=function(_e,Me,Ye){for(var Ge,Ae=Fr(Fr({},Me),{className:void 0,theme:Ye}),Ke=0;Ke<_e.length;Ke+=1){var We=Bu(Ge=_e[Ke])?Ge(Ae):Ge;for(var Ve in We)Ae[Ve]=Ve==="className"?yu(Ae[Ve],We[Ve]):Ve==="style"?Fr(Fr({},Ae[Ve]),We[Ve]):We[Ve]}return Me.className&&(Ae.className=yu(Ae.className,Me.className)),Ae}(le,K,Qj(K,ie,I)||ic),he=B.as||W,U={};for(var te in B)B[te]===void 0||te[0]==="$"||te==="as"||te==="theme"||(te==="forwardedAs"?U.as=B.forwardedAs:L&&!L(te,he)||(U[te]=B[te],L||process.env.NODE_ENV!=="development"||_j(te)||lC.has(te)||!J1.has(he)||(lC.add(te),console.warn('styled-components: it looks like an unknown prop "'.concat(te,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var xe=function(_e,Me){var Ye=oC(),Ge=_e.generateAndInjectStyles(Me,Ye.styleSheet,Ye.stylis);return process.env.NODE_ENV!=="production"&&T.useDebugValue(Ge),Ge}(ae,B);process.env.NODE_ENV!=="production"&&R.warnTooManyClasses&&R.warnTooManyClasses(xe);var De=yu($e,we);return xe&&(De+=" "+xe),B.className&&(De+=" "+B.className),U[dv(he)&&!J1.has(he)?"class":"className"]=De,U.ref=H,T.createElement(he,U)}(A,k,M)}C.displayName=m;var A=T.forwardRef(C);return A.attrs=b,A.componentStyle=E,A.displayName=m,A.shouldForwardProp=x,A.foldedComponentIds=r?yu(i.foldedComponentIds,i.styledComponentId):"",A.styledComponentId=g,A.target=r?i.target:e,Object.defineProperty(A,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(k){this._foldedDefaultProps=r?function(M){for(var R=[],K=1;K<arguments.length;K++)R[K-1]=arguments[K];for(var H=0,le=R;H<le.length;H++)tb(M,le[H],!0);return M}({},i.defaultProps,k):k}}),process.env.NODE_ENV!=="production"&&(Jj(m,g),A.warnTooManyClasses=function(k,M){var R={},K=!1;return function(H){if(!K&&(R[H]=!0,Object.keys(R).length>=200)){var le=M?' with the id of "'.concat(M,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(k).concat(le,`.
|
|
48
|
+
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
49
|
+
Example:
|
|
50
|
+
const Component = styled.div.attrs(props => ({
|
|
51
|
+
style: {
|
|
52
|
+
background: props.background,
|
|
53
|
+
},
|
|
54
|
+
}))\`width: 100%;\`
|
|
55
|
+
|
|
56
|
+
<Component />`),K=!0,R={}}}}(m,g)),K4(A,function(){return".".concat(A.styledComponentId)}),s&&F5(A,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),A}function cC(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var fC=function(e){return Object.assign(e,{isCss:!0})};function U4(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Bu(e)||sc(e)){var r=e;return fC(Pu(cC(Em,Ou([r],t,!0))))}var i=e;return t.length===0&&i.length===1&&typeof i[0]=="string"?Pu(i):fC(Pu(cC(i,t)))}function ib(e,t,n){if(n===void 0&&(n=ic),!t)throw ia(1,t);var r=function(i){for(var s=[],a=1;a<arguments.length;a++)s[a-1]=arguments[a];return e(t,n,U4.apply(void 0,Ou([i],s,!1)))};return r.attrs=function(i){return ib(e,t,Fr(Fr({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return ib(e,t,Fr(Fr({},n),i))},r}var V5=function(e){return ib(kK,e)},N5=V5;J1.forEach(function(e){N5[e]=V5(e)});function OK(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=eb(U4.apply(void 0,Ou([e],t,!1))),i=A5(r);return new rb(i,r)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
57
|
+
Perhaps you're looking to import 'styled-components/native'?
|
|
58
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Oh="__sc-".concat(Lu,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Oh]||(window[Oh]=0),window[Oh]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
59
|
+
|
|
60
|
+
See https://s-c.sh/2BAXzed for more info.`),window[Oh]+=1);function Sm(){return typeof window<"u"}function xc(e){return j5(e)?(e.nodeName||"").toLowerCase():"#document"}function li(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ca(e){var t;return(t=(j5(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function j5(e){return Sm()?e instanceof Node||e instanceof li(e).Node:!1}function ir(e){return Sm()?e instanceof Element||e instanceof li(e).Element:!1}function ns(e){return Sm()?e instanceof HTMLElement||e instanceof li(e).HTMLElement:!1}function sb(e){return!Sm()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof li(e).ShadowRoot}function Dd(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ds(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function IK(e){return["table","td","th"].includes(xc(e))}function Dm(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function q4(e){const t=z4(),n=ir(e)?Ds(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 LK(e){let t=Fo(e);for(;ns(t)&&!ac(t);){if(q4(t))return t;if(Dm(t))return null;t=Fo(t)}return null}function z4(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ac(e){return["html","body","#document"].includes(xc(e))}function Ds(e){return li(e).getComputedStyle(e)}function Am(e){return ir(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Fo(e){if(xc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||sb(e)&&e.host||ca(e);return sb(t)?t.host:t}function K5(e){const t=Fo(e);return ac(t)?e.ownerDocument?e.ownerDocument.body:e.body:ns(t)&&Dd(t)?t:K5(t)}function nd(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=K5(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=li(i);if(s){const o=ab(a);return t.concat(a,a.visualViewport||[],Dd(i)?i:[],o&&n?nd(o):[])}return t.concat(i,nd(i,[],n))}function ab(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Fp=Math.min,_u=Math.max,Rp=Math.round,Ih=Math.floor,sa=e=>({x:e,y:e}),BK={left:"right",right:"left",bottom:"top",top:"bottom"},VK={start:"end",end:"start"};function dC(e,t,n){return _u(e,Fp(t,n))}function Tm(e,t){return typeof e=="function"?e(t):e}function Vu(e){return e.split("-")[0]}function Pm(e){return e.split("-")[1]}function U5(e){return e==="x"?"y":"x"}function q5(e){return e==="y"?"height":"width"}function Do(e){return["top","bottom"].includes(Vu(e))?"y":"x"}function z5(e){return U5(Do(e))}function NK(e,t,n){n===void 0&&(n=!1);const r=Pm(e),i=z5(e),s=q5(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=kp(a)),[a,kp(a)]}function jK(e){const t=kp(e);return[ob(e),t,ob(t)]}function ob(e){return e.replace(/start|end/g,t=>VK[t])}function KK(e,t,n){const r=["left","right"],i=["right","left"],s=["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?s:a;default:return[]}}function UK(e,t,n,r){const i=Pm(e);let s=KK(Vu(e),n==="start",r);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(ob)))),s}function kp(e){return e.replace(/left|right|bottom|top/g,t=>BK[t])}function qK(e){return{top:0,right:0,bottom:0,left:0,...e}}function zK(e){return typeof e!="number"?qK(e):{top:e,right:e,bottom:e,left:e}}function Op(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 WK(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function HK(){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 GK(){return/apple/i.test(navigator.vendor)}function YK(){return WK().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function ZK(){return HK().includes("jsdom/")}const hC="data-floating-ui-focusable",XK="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function pC(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 ub(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&sb(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function JK(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Ff(e){return(e==null?void 0:e.ownerDocument)||document}function QK(e){return ns(e)&&e.matches(XK)}function eU(e){if(!e||ZK())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function tU(e){return e?e.hasAttribute(hC)?e:e.querySelector("["+hC+"]")||e:null}function lb(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}var nU=typeof document<"u",rU=function(){},oc=nU?T.useLayoutEffect:rU;const iU={...He};function Lh(e){const t=He.useRef(e);return oc(()=>{t.current=e}),t}const sU=iU.useInsertionEffect,aU=sU||(e=>e());function Rf(e){const t=He.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return aU(()=>{t.current=e}),He.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)},[])}function mC(e,t,n){let{reference:r,floating:i}=e;const s=Do(t),a=z5(t),o=q5(a),l=Vu(t),d=s==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,g=r[o]/2-i[o]/2;let b;switch(l){case"top":b={x:h,y:r.y-i.height};break;case"bottom":b={x:h,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:m};break;case"left":b={x:r.x-i.width,y:m};break;default:b={x:r.x,y:r.y}}switch(Pm(t)){case"start":b[a]-=g*(n&&d?-1:1);break;case"end":b[a]+=g*(n&&d?-1:1);break}return b}const oU=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,o=s.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=mC(d,r,l),g=r,b={},x=0;for(let w=0;w<o.length;w++){const{name:S,fn:E}=o[w],{x:C,y:A,data:k,reset:M}=await E({x:h,y:m,initialPlacement:r,placement:g,strategy:i,middlewareData:b,rects:d,platform:a,elements:{reference:e,floating:t}});h=C??h,m=A??m,b={...b,[S]:{...b[S],...k}},M&&x<=50&&(x++,typeof M=="object"&&(M.placement&&(g=M.placement),M.rects&&(d=M.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):M.rects),{x:h,y:m}=mC(d,g,l)),w=-1)}return{x:h,y:m,placement:g,strategy:i,middlewareData:b}};async function W5(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:a,elements:o,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:g=!1,padding:b=0}=Tm(t,e),x=zK(b),S=o[g?m==="floating"?"reference":"floating":m],E=Op(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(S)))==null||n?S:S.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(o.floating)),boundary:d,rootBoundary:h,strategy:l})),C=m==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(o.floating)),k=await(s.isElement==null?void 0:s.isElement(A))?await(s.getScale==null?void 0:s.getScale(A))||{x:1,y:1}:{x:1,y:1},M=Op(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:C,offsetParent:A,strategy:l}):C);return{top:(E.top-M.top+x.top)/k.y,bottom:(M.bottom-E.bottom+x.bottom)/k.y,left:(E.left-M.left+x.left)/k.x,right:(M.right-E.right+x.right)/k.x}}const uU=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:a,initialPlacement:o,platform:l,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:w=!0,...S}=Tm(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const E=Vu(i),C=Do(o),A=Vu(o)===o,k=await(l.isRTL==null?void 0:l.isRTL(d.floating)),M=g||(A||!w?[kp(o)]:jK(o)),R=x!=="none";!g&&R&&M.push(...UK(o,w,x,k));const K=[o,...M],H=await W5(t,S),le=[];let ae=((r=s.flip)==null?void 0:r.overflows)||[];if(h&&le.push(H[E]),m){const W=NK(i,a,k);le.push(H[W[0]],H[W[1]])}if(ae=[...ae,{placement:i,overflows:le}],!le.every(W=>W<=0)){var I,$e;const W=(((I=s.flip)==null?void 0:I.index)||0)+1,ie=K[W];if(ie&&(!(m==="alignment"?C!==Do(ie):!1)||ae.every(B=>B.overflows[0]>0&&Do(B.placement)===C)))return{data:{index:W,overflows:ae},reset:{placement:ie}};let O=($e=ae.filter(L=>L.overflows[0]<=0).sort((L,B)=>L.overflows[1]-B.overflows[1])[0])==null?void 0:$e.placement;if(!O)switch(b){case"bestFit":{var we;const L=(we=ae.filter(B=>{if(R){const he=Do(B.placement);return he===C||he==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(he=>he>0).reduce((he,U)=>he+U,0)]).sort((B,he)=>B[1]-he[1])[0])==null?void 0:we[0];L&&(O=L);break}case"initialPlacement":O=o;break}if(i!==O)return{reset:{placement:O}}}return{}}}};async function lU(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Vu(n),o=Pm(n),l=Do(n)==="y",d=["left","top"].includes(a)?-1:1,h=s&&l?-1:1,m=Tm(t,e);let{mainAxis:g,crossAxis:b,alignmentAxis:x}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return o&&typeof x=="number"&&(b=o==="end"?x*-1:x),l?{x:b*h,y:g*d}:{x:g*d,y:b*h}}const cU=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:a,middlewareData:o}=t,l=await lU(t,e);return a===((n=o.offset)==null?void 0:n.placement)&&(r=o.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:a}}}}},fU=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:o={fn:S=>{let{x:E,y:C}=S;return{x:E,y:C}}},...l}=Tm(e,t),d={x:n,y:r},h=await W5(t,l),m=Do(Vu(i)),g=U5(m);let b=d[g],x=d[m];if(s){const S=g==="y"?"top":"left",E=g==="y"?"bottom":"right",C=b+h[S],A=b-h[E];b=dC(C,b,A)}if(a){const S=m==="y"?"top":"left",E=m==="y"?"bottom":"right",C=x+h[S],A=x-h[E];x=dC(C,x,A)}const w=o.fn({...t,[g]:b,[m]:x});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[g]:s,[m]:a}}}}}};function H5(e){const t=Ds(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ns(e),s=i?e.offsetWidth:n,a=i?e.offsetHeight:r,o=Rp(n)!==s||Rp(r)!==a;return o&&(n=s,r=a),{width:n,height:r,$:o}}function W4(e){return ir(e)?e:e.contextElement}function Hl(e){const t=W4(e);if(!ns(t))return sa(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=H5(t);let a=(s?Rp(n.width):n.width)/r,o=(s?Rp(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!o||!Number.isFinite(o))&&(o=1),{x:a,y:o}}const dU=sa(0);function G5(e){const t=li(e);return!z4()||!t.visualViewport?dU:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function hU(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==li(e)?!1:t}function Nu(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=W4(e);let a=sa(1);t&&(r?ir(r)&&(a=Hl(r)):a=Hl(e));const o=hU(s,n,r)?G5(s):sa(0);let l=(i.left+o.x)/a.x,d=(i.top+o.y)/a.y,h=i.width/a.x,m=i.height/a.y;if(s){const g=li(s),b=r&&ir(r)?li(r):r;let x=g,w=ab(x);for(;w&&r&&b!==x;){const S=Hl(w),E=w.getBoundingClientRect(),C=Ds(w),A=E.left+(w.clientLeft+parseFloat(C.paddingLeft))*S.x,k=E.top+(w.clientTop+parseFloat(C.paddingTop))*S.y;l*=S.x,d*=S.y,h*=S.x,m*=S.y,l+=A,d+=k,x=li(w),w=ab(x)}}return Op({width:h,height:m,x:l,y:d})}function H4(e,t){const n=Am(e).scrollLeft;return t?t.left+n:Nu(ca(e)).left+n}function Y5(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:H4(e,r)),s=r.top+t.scrollTop;return{x:i,y:s}}function pU(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",a=ca(r),o=t?Dm(t.floating):!1;if(r===a||o&&s)return n;let l={scrollLeft:0,scrollTop:0},d=sa(1);const h=sa(0),m=ns(r);if((m||!m&&!s)&&((xc(r)!=="body"||Dd(a))&&(l=Am(r)),ns(r))){const b=Nu(r);d=Hl(r),h.x=b.x+r.clientLeft,h.y=b.y+r.clientTop}const g=a&&!m&&!s?Y5(a,l,!0):sa(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+h.x+g.x,y:n.y*d.y-l.scrollTop*d.y+h.y+g.y}}function mU(e){return Array.from(e.getClientRects())}function gU(e){const t=ca(e),n=Am(e),r=e.ownerDocument.body,i=_u(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=_u(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+H4(e);const o=-n.scrollTop;return Ds(r).direction==="rtl"&&(a+=_u(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:o}}function vU(e,t){const n=li(e),r=ca(e),i=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,o=0,l=0;if(i){s=i.width,a=i.height;const d=z4();(!d||d&&t==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}return{width:s,height:a,x:o,y:l}}function yU(e,t){const n=Nu(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=ns(e)?Hl(e):sa(1),a=e.clientWidth*s.x,o=e.clientHeight*s.y,l=i*s.x,d=r*s.y;return{width:a,height:o,x:l,y:d}}function gC(e,t,n){let r;if(t==="viewport")r=vU(e,n);else if(t==="document")r=gU(ca(e));else if(ir(t))r=yU(t,n);else{const i=G5(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Op(r)}function Z5(e,t){const n=Fo(e);return n===t||!ir(n)||ac(n)?!1:Ds(n).position==="fixed"||Z5(n,t)}function bU(e,t){const n=t.get(e);if(n)return n;let r=nd(e,[],!1).filter(o=>ir(o)&&xc(o)!=="body"),i=null;const s=Ds(e).position==="fixed";let a=s?Fo(e):e;for(;ir(a)&&!ac(a);){const o=Ds(a),l=q4(a);!l&&o.position==="fixed"&&(i=null),(s?!l&&!i:!l&&o.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Dd(a)&&!l&&Z5(e,a))?r=r.filter(h=>h!==a):i=o,a=Fo(a)}return t.set(e,r),r}function $U(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Dm(t)?[]:bU(t,this._c):[].concat(n),r],o=a[0],l=a.reduce((d,h)=>{const m=gC(t,h,i);return d.top=_u(m.top,d.top),d.right=Fp(m.right,d.right),d.bottom=Fp(m.bottom,d.bottom),d.left=_u(m.left,d.left),d},gC(t,o,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function xU(e){const{width:t,height:n}=H5(e);return{width:t,height:n}}function wU(e,t,n){const r=ns(t),i=ca(t),s=n==="fixed",a=Nu(e,!0,s,t);let o={scrollLeft:0,scrollTop:0};const l=sa(0);function d(){l.x=H4(i)}if(r||!r&&!s)if((xc(t)!=="body"||Dd(i))&&(o=Am(t)),r){const b=Nu(t,!0,s,t);l.x=b.x+t.clientLeft,l.y=b.y+t.clientTop}else i&&d();s&&!r&&i&&d();const h=i&&!r&&!s?Y5(i,o):sa(0),m=a.left+o.scrollLeft-l.x-h.x,g=a.top+o.scrollTop-l.y-h.y;return{x:m,y:g,width:a.width,height:a.height}}function pv(e){return Ds(e).position==="static"}function vC(e,t){if(!ns(e)||Ds(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ca(e)===n&&(n=n.ownerDocument.body),n}function X5(e,t){const n=li(e);if(Dm(e))return n;if(!ns(e)){let i=Fo(e);for(;i&&!ac(i);){if(ir(i)&&!pv(i))return i;i=Fo(i)}return n}let r=vC(e,t);for(;r&&IK(r)&&pv(r);)r=vC(r,t);return r&&ac(r)&&pv(r)&&!q4(r)?n:r||LK(e)||n}const CU=async function(e){const t=this.getOffsetParent||X5,n=this.getDimensions,r=await n(e.floating);return{reference:wU(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function EU(e){return Ds(e).direction==="rtl"}const SU={convertOffsetParentRelativeRectToViewportRelativeRect:pU,getDocumentElement:ca,getClippingRect:$U,getOffsetParent:X5,getElementRects:CU,getClientRects:mU,getDimensions:xU,getScale:Hl,isElement:ir,isRTL:EU};function J5(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function DU(e,t){let n=null,r;const i=ca(e);function s(){var o;clearTimeout(r),(o=n)==null||o.disconnect(),n=null}function a(o,l){o===void 0&&(o=!1),l===void 0&&(l=1),s();const d=e.getBoundingClientRect(),{left:h,top:m,width:g,height:b}=d;if(o||t(),!g||!b)return;const x=Ih(m),w=Ih(i.clientWidth-(h+g)),S=Ih(i.clientHeight-(m+b)),E=Ih(h),A={rootMargin:-x+"px "+-w+"px "+-S+"px "+-E+"px",threshold:_u(0,Fp(1,l))||1};let k=!0;function M(R){const K=R[0].intersectionRatio;if(K!==l){if(!k)return a();K?a(!1,K):r=setTimeout(()=>{a(!1,1e-7)},1e3)}K===1&&!J5(d,e.getBoundingClientRect())&&a(),k=!1}try{n=new IntersectionObserver(M,{...A,root:i.ownerDocument})}catch{n=new IntersectionObserver(M,A)}n.observe(e)}return a(!0),s}function AU(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,d=W4(e),h=i||s?[...d?nd(d):[],...nd(t)]:[];h.forEach(E=>{i&&E.addEventListener("scroll",n,{passive:!0}),s&&E.addEventListener("resize",n)});const m=d&&o?DU(d,n):null;let g=-1,b=null;a&&(b=new ResizeObserver(E=>{let[C]=E;C&&C.target===d&&b&&(b.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var A;(A=b)==null||A.observe(t)})),n()}),d&&!l&&b.observe(d),b.observe(t));let x,w=l?Nu(e):null;l&&S();function S(){const E=Nu(e);w&&!J5(w,E)&&n(),w=E,x=requestAnimationFrame(S)}return n(),()=>{var E;h.forEach(C=>{i&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),m==null||m(),(E=b)==null||E.disconnect(),b=null,l&&cancelAnimationFrame(x)}}const TU=cU,PU=fU,_U=uU,MU=(e,t,n)=>{const r=new Map,i={platform:SU,...n},s={...i.platform,_c:r};return oU(e,t,{...i,platform:s})};var FU=typeof document<"u",RU=function(){},lp=FU?T.useLayoutEffect:RU;function Ip(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(!Ip(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 s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!Ip(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Q5(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yC(e,t){const n=Q5(e);return Math.round(t*n)/n}function mv(e){const t=He.useRef(e);return lp(()=>{t.current=e}),t}function eP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:a}={},transform:o=!0,whileElementsMounted:l,open:d}=e,[h,m]=He.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,b]=He.useState(r);Ip(g,r)||b(r);const[x,w]=He.useState(null),[S,E]=He.useState(null),C=He.useCallback(B=>{B!==R.current&&(R.current=B,w(B))},[]),A=He.useCallback(B=>{B!==K.current&&(K.current=B,E(B))},[]),k=s||x,M=a||S,R=He.useRef(null),K=He.useRef(null),H=He.useRef(h),le=l!=null,ae=mv(l),I=mv(i),$e=mv(d),we=He.useCallback(()=>{if(!R.current||!K.current)return;const B={placement:t,strategy:n,middleware:g};I.current&&(B.platform=I.current),MU(R.current,K.current,B).then(he=>{const U={...he,isPositioned:$e.current!==!1};W.current&&!Ip(H.current,U)&&(H.current=U,rp.flushSync(()=>{m(U)}))})},[g,t,n,I,$e]);lp(()=>{d===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,m(B=>({...B,isPositioned:!1})))},[d]);const W=He.useRef(!1);lp(()=>(W.current=!0,()=>{W.current=!1}),[]),lp(()=>{if(k&&(R.current=k),M&&(K.current=M),k&&M){if(ae.current)return ae.current(k,M,we);we()}},[k,M,we,ae,le]);const ie=He.useMemo(()=>({reference:R,floating:K,setReference:C,setFloating:A}),[C,A]),O=He.useMemo(()=>({reference:k,floating:M}),[k,M]),L=He.useMemo(()=>{const B={position:n,left:0,top:0};if(!O.floating)return B;const he=yC(O.floating,h.x),U=yC(O.floating,h.y);return o?{...B,transform:"translate("+he+"px, "+U+"px)",...Q5(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:he,top:U}},[n,o,O.floating,h.x,h.y]);return He.useMemo(()=>({...h,update:we,refs:ie,elements:O,floatingStyles:L}),[h,we,ie,O,L])}const kU=(e,t)=>({...TU(e),options:[e,t]}),OU=(e,t)=>({...PU(e),options:[e,t]}),IU=(e,t)=>({..._U(e),options:[e,t]}),LU="data-floating-ui-focusable",bC="active",$C="selected",BU={...He};let xC=!1,VU=0;const wC=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+VU++;function NU(){const[e,t]=He.useState(()=>xC?wC():void 0);return oc(()=>{e==null&&t(wC())},[]),He.useEffect(()=>{xC=!0},[]),e}const jU=BU.useId,tP=jU||NU;let cb;process.env.NODE_ENV!=="production"&&(cb=new Set);function KU(){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=cb)!=null&&e.has(i))){var s;(s=cb)==null||s.add(i),console.error(i)}}function UU(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const qU=He.createContext(null),zU=He.createContext(null),G4=()=>{var e;return((e=He.useContext(qU))==null?void 0:e.id)||null},nP=()=>He.useContext(zU);function rP(e){return"data-floating-ui-"+e}function Ki(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const CC=rP("safe-polygon");function gv(e,t,n){if(n&&!lb(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r==null?void 0:r[t]}return e==null?void 0:e[t]}function vv(e){return typeof e=="function"?e():e}function WU(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:s,elements:a}=e,{enabled:o=!0,delay:l=0,handleClose:d=null,mouseOnly:h=!1,restMs:m=0,move:g=!0}=t,b=nP(),x=G4(),w=Lh(d),S=Lh(l),E=Lh(n),C=Lh(m),A=He.useRef(),k=He.useRef(-1),M=He.useRef(),R=He.useRef(-1),K=He.useRef(!0),H=He.useRef(!1),le=He.useRef(()=>{}),ae=He.useRef(!1),I=Rf(()=>{var L;const B=(L=i.current.openEvent)==null?void 0:L.type;return(B==null?void 0:B.includes("mouse"))&&B!=="mousedown"});He.useEffect(()=>{if(!o)return;function L(B){let{open:he}=B;he||(Ki(k),Ki(R),K.current=!0,ae.current=!1)}return s.on("openchange",L),()=>{s.off("openchange",L)}},[o,s]),He.useEffect(()=>{if(!o||!w.current||!n)return;function L(he){I()&&r(!1,he,"hover")}const B=Ff(a.floating).documentElement;return B.addEventListener("mouseleave",L),()=>{B.removeEventListener("mouseleave",L)}},[a.floating,n,r,o,w,I]);const $e=He.useCallback(function(L,B,he){B===void 0&&(B=!0),he===void 0&&(he="hover");const U=gv(S.current,"close",A.current);U&&!M.current?(Ki(k),k.current=window.setTimeout(()=>r(!1,L,he),U)):B&&(Ki(k),r(!1,L,he))},[S,r]),we=Rf(()=>{le.current(),M.current=void 0}),W=Rf(()=>{if(H.current){const L=Ff(a.floating).body;L.style.pointerEvents="",L.removeAttribute(CC),H.current=!1}}),ie=Rf(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);He.useEffect(()=>{if(!o)return;function L(xe){if(Ki(k),K.current=!1,h&&!lb(A.current)||vv(C.current)>0&&!gv(S.current,"open"))return;const De=gv(S.current,"open",A.current);De?k.current=window.setTimeout(()=>{E.current||r(!0,xe,"hover")},De):n||r(!0,xe,"hover")}function B(xe){if(ie()){W();return}le.current();const De=Ff(a.floating);if(Ki(R),ae.current=!1,w.current&&i.current.floatingContext){n||Ki(k),M.current=w.current({...i.current.floatingContext,tree:b,x:xe.clientX,y:xe.clientY,onClose(){W(),we(),ie()||$e(xe,!0,"safe-polygon")}});const Me=M.current;De.addEventListener("mousemove",Me),le.current=()=>{De.removeEventListener("mousemove",Me)};return}(A.current==="touch"?!ub(a.floating,xe.relatedTarget):!0)&&$e(xe)}function he(xe){ie()||i.current.floatingContext&&(w.current==null||w.current({...i.current.floatingContext,tree:b,x:xe.clientX,y:xe.clientY,onClose(){W(),we(),ie()||$e(xe)}})(xe))}function U(){Ki(k)}function te(xe){ie()||$e(xe,!1)}if(ir(a.domReference)){const xe=a.domReference,De=a.floating;return n&&xe.addEventListener("mouseleave",he),g&&xe.addEventListener("mousemove",L,{once:!0}),xe.addEventListener("mouseenter",L),xe.addEventListener("mouseleave",B),De&&(De.addEventListener("mouseleave",he),De.addEventListener("mouseenter",U),De.addEventListener("mouseleave",te)),()=>{n&&xe.removeEventListener("mouseleave",he),g&&xe.removeEventListener("mousemove",L),xe.removeEventListener("mouseenter",L),xe.removeEventListener("mouseleave",B),De&&(De.removeEventListener("mouseleave",he),De.removeEventListener("mouseenter",U),De.removeEventListener("mouseleave",te))}}},[a,o,e,h,g,$e,we,W,r,n,E,b,S,w,i,ie,C]),oc(()=>{var L;if(o&&n&&(L=w.current)!=null&&(L=L.__options)!=null&&L.blockPointerEvents&&I()){H.current=!0;const he=a.floating;if(ir(a.domReference)&&he){var B;const U=Ff(a.floating).body;U.setAttribute(CC,"");const te=a.domReference,xe=b==null||(B=b.nodesRef.current.find(De=>De.id===x))==null||(B=B.context)==null?void 0:B.elements.floating;return xe&&(xe.style.pointerEvents=""),U.style.pointerEvents="none",te.style.pointerEvents="auto",he.style.pointerEvents="auto",()=>{U.style.pointerEvents="",te.style.pointerEvents="",he.style.pointerEvents=""}}}},[o,n,x,a,b,w,I]),oc(()=>{n||(A.current=void 0,ae.current=!1,we(),W())},[n,we,W]),He.useEffect(()=>()=>{we(),Ki(k),Ki(R),W()},[o,a.domReference,we,W]);const O=He.useMemo(()=>{function L(B){A.current=B.pointerType}return{onPointerDown:L,onPointerEnter:L,onMouseMove(B){const{nativeEvent:he}=B;function U(){!K.current&&!E.current&&r(!0,he,"hover")}h&&!lb(A.current)||n||vv(C.current)===0||ae.current&&B.movementX**2+B.movementY**2<2||(Ki(R),A.current==="touch"?U():(ae.current=!0,R.current=window.setTimeout(U,vv(C.current))))}}},[h,r,n,E,C]);return He.useMemo(()=>o?{reference:O}:{},[o,O])}function HU(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=tP(),s=He.useRef({}),[a]=He.useState(()=>UU()),o=G4()!=null;if(process.env.NODE_ENV!=="production"){const b=r.reference;b&&!ir(b)&&KU("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,d]=He.useState(r.reference),h=Rf((b,x,w)=>{s.current.openEvent=b?x:void 0,a.emit("openchange",{open:b,event:x,reason:w,nested:o}),n==null||n(b,x,w)}),m=He.useMemo(()=>({setPositionReference:d}),[]),g=He.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return He.useMemo(()=>({dataRef:s,open:t,onOpenChange:h,elements:g,events:a,floatingId:i,refs:m}),[t,h,g,a,i,m])}function GU(e){e===void 0&&(e={});const{nodeId:t}=e,n=HU({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[s,a]=He.useState(null),[o,l]=He.useState(null),h=(i==null?void 0:i.domReference)||s,m=He.useRef(null),g=nP();oc(()=>{h&&(m.current=h)},[h]);const b=eP({...e,elements:{...i,...o&&{reference:o}}}),x=He.useCallback(A=>{const k=ir(A)?{getBoundingClientRect:()=>A.getBoundingClientRect(),getClientRects:()=>A.getClientRects(),contextElement:A}:A;l(k),b.refs.setReference(k)},[b.refs]),w=He.useCallback(A=>{(ir(A)||A===null)&&(m.current=A,a(A)),(ir(b.refs.reference.current)||b.refs.reference.current===null||A!==null&&!ir(A))&&b.refs.setReference(A)},[b.refs]),S=He.useMemo(()=>({...b.refs,setReference:w,setPositionReference:x,domReference:m}),[b.refs,w,x]),E=He.useMemo(()=>({...b.elements,domReference:h}),[b.elements,h]),C=He.useMemo(()=>({...b,...r,refs:S,elements:E,nodeId:t}),[b,S,E,t,r]);return oc(()=>{r.dataRef.current.floatingContext=C;const A=g==null?void 0:g.nodesRef.current.find(k=>k.id===t);A&&(A.context=C)}),He.useMemo(()=>({...b,context:C,refs:S,elements:E}),[b,S,E,C])}function yv(){return YK()&&GK()}function YU(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:s,elements:a}=e,{enabled:o=!0,visibleOnly:l=!0}=t,d=He.useRef(!1),h=He.useRef(-1),m=He.useRef(!0);He.useEffect(()=>{if(!o)return;const b=li(a.domReference);function x(){!n&&ns(a.domReference)&&a.domReference===pC(Ff(a.domReference))&&(d.current=!0)}function w(){m.current=!0}function S(){m.current=!1}return b.addEventListener("blur",x),yv()&&(b.addEventListener("keydown",w,!0),b.addEventListener("pointerdown",S,!0)),()=>{b.removeEventListener("blur",x),yv()&&(b.removeEventListener("keydown",w,!0),b.removeEventListener("pointerdown",S,!0))}},[a.domReference,n,o]),He.useEffect(()=>{if(!o)return;function b(x){let{reason:w}=x;(w==="reference-press"||w==="escape-key")&&(d.current=!0)}return i.on("openchange",b),()=>{i.off("openchange",b)}},[i,o]),He.useEffect(()=>()=>{Ki(h)},[]);const g=He.useMemo(()=>({onMouseLeave(){d.current=!1},onFocus(b){if(d.current)return;const x=JK(b.nativeEvent);if(l&&ir(x)){if(yv()&&!b.relatedTarget){if(!m.current&&!QK(x))return}else if(!eU(x))return}r(!0,b.nativeEvent,"focus")},onBlur(b){d.current=!1;const x=b.relatedTarget,w=b.nativeEvent,S=ir(x)&&x.hasAttribute(rP("focus-guard"))&&x.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var E;const C=pC(a.domReference?a.domReference.ownerDocument:document);!x&&C===a.domReference||ub((E=s.current.floatingContext)==null?void 0:E.refs.floating.current,C)||ub(a.domReference,C)||S||r(!1,w,"focus")})}}),[s,a.domReference,r,l]);return He.useMemo(()=>o?{reference:g}:{},[o,g])}function bv(e,t,n){const r=new Map,i=n==="item";let s=e;if(i&&e){const{[bC]:a,[$C]:o,...l}=e;s=l}return{...n==="floating"&&{tabIndex:-1,[LU]:""},...s,...t.map(a=>{const o=a?a[n]:null;return typeof o=="function"?e?o(e):null:o}).concat(e).reduce((a,o)=>(o&&Object.entries(o).forEach(l=>{let[d,h]=l;if(!(i&&[bC,$C].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 g,b=arguments.length,x=new Array(b),w=0;w<b;w++)x[w]=arguments[w];return(g=r.get(d))==null?void 0:g.map(S=>S(...x)).find(S=>S!==void 0)}}}else a[d]=h}),a),{})}}function ZU(e){e===void 0&&(e=[]);const t=e.map(o=>o==null?void 0:o.reference),n=e.map(o=>o==null?void 0:o.floating),r=e.map(o=>o==null?void 0:o.item),i=He.useCallback(o=>bv(o,e,"reference"),t),s=He.useCallback(o=>bv(o,e,"floating"),n),a=He.useCallback(o=>bv(o,e,"item"),r);return He.useMemo(()=>({getReferenceProps:i,getFloatingProps:s,getItemProps:a}),[i,s,a])}const XU=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function JU(e,t){var n,r;t===void 0&&(t={});const{open:i,elements:s,floatingId:a}=e,{enabled:o=!0,role:l="dialog"}=t,d=tP(),h=((n=s.domReference)==null?void 0:n.id)||d,m=He.useMemo(()=>{var C;return((C=tU(s.floating))==null?void 0:C.id)||a},[s.floating,a]),g=(r=XU.get(l))!=null?r:l,x=G4()!=null,w=He.useMemo(()=>g==="tooltip"||l==="label"?{["aria-"+(l==="label"?"labelledby":"describedby")]:i?m:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":g==="alertdialog"?"dialog":g,"aria-controls":i?m:void 0,...g==="listbox"&&{role:"combobox"},...g==="menu"&&{id:h},...g==="menu"&&x&&{role:"menuitem"},...l==="select"&&{"aria-autocomplete":"none"},...l==="combobox"&&{"aria-autocomplete":"list"}},[g,m,x,i,h,l]),S=He.useMemo(()=>{const C={id:m,...g&&{role:g}};return g==="tooltip"||l==="label"?C:{...C,...g==="menu"&&{"aria-labelledby":h}}},[g,m,h,l]),E=He.useCallback(C=>{let{active:A,selected:k}=C;const M={role:"option",...A&&{id:m+"-fui-option"}};switch(l){case"select":return{...M,"aria-selected":A&&k};case"combobox":return{...M,"aria-selected":k}}return{}},[m,l]);return He.useMemo(()=>o?{reference:w,floating:S,item:E}:{},[o,w,S,E])}var kf={exports:{}};/**
|
|
61
|
+
* @license
|
|
62
|
+
* Lodash <https://lodash.com/>
|
|
63
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
64
|
+
* Released under MIT license <https://lodash.com/license>
|
|
65
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
66
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
67
|
+
*/var QU=kf.exports,EC;function eq(){return EC||(EC=1,function(e,t){(function(){var n,r="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",o="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",m=1,g=2,b=4,x=1,w=2,S=1,E=2,C=4,A=8,k=16,M=32,R=64,K=128,H=256,le=512,ae=30,I="...",$e=800,we=16,W=1,ie=2,O=3,L=1/0,B=9007199254740991,he=17976931348623157e292,U=NaN,te=4294967295,xe=te-1,De=te>>>1,_e=[["ary",K],["bind",S],["bindKey",E],["curry",A],["curryRight",k],["flip",le],["partial",M],["partialRight",R],["rearg",H]],Me="[object Arguments]",Ye="[object Array]",Ge="[object AsyncFunction]",Ae="[object Boolean]",Ke="[object Date]",We="[object DOMException]",Ve="[object Error]",Te="[object Function]",tt="[object GeneratorFunction]",yt="[object Map]",Jt="[object Number]",xt="[object Null]",Mt="[object Object]",Ti="[object Promise]",mt="[object Proxy]",me="[object RegExp]",Se="[object Set]",Le="[object String]",it="[object Symbol]",Qe="[object Undefined]",Xe="[object WeakMap]",gt="[object WeakSet]",kt="[object ArrayBuffer]",wt="[object DataView]",yn="[object Float32Array]",Cr="[object Float64Array]",zt="[object Int8Array]",_t="[object Int16Array]",Lt="[object Int32Array]",Wt="[object Uint8Array]",gr="[object Uint8ClampedArray]",Zr="[object Uint16Array]",fi="[object Uint32Array]",kr=/\b__p \+= '';/g,Rs=/\b(__p \+=) '' \+/g,Vo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$t=/&(?:amp|lt|gt|quot|#39);/g,di=/[&<>"']/g,ha=RegExp($t.source),Nc=RegExp(di.source),el=/<%-([\s\S]+?)%>/g,jc=/<%([\s\S]+?)%>/g,tl=/<%=([\s\S]+?)%>/g,No=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nl=/^\w*$/,is=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ss=/[\\^$.*+?()[\]{}|]/g,bt=RegExp(ss.source),En=/^\s+/,pa=/\s/,rl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Er=/\{\n\/\* \[wrapped with (.+)\] \*/,il=/,? & /,sl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Kc=/[()=,{}\[\]\/\s]/,Xr=/\\(\\)?/g,st=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dn=/\w*$/,as=/^[-+]0x[0-9a-f]+$/i,hi=/^0b[01]+$/i,Xn=/^\[object .+?Constructor\]$/,jo=/^0o[0-7]+$/i,ks=/^(?:0|[1-9]\d*)$/,pi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ln=/($^)/,no=/['\n\r\u2028\u2029\\]/g,Ut="\\ud800-\\udfff",Uc="\\u0300-\\u036f",al="\\ufe20-\\ufe2f",qc="\\u20d0-\\u20ff",Ko=Uc+al+qc,ma="\\u2700-\\u27bf",ol="a-z\\xdf-\\xf6\\xf8-\\xff",Uo="\\xac\\xb1\\xd7\\xf7",zc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Wc="\\u2000-\\u206f",Hc=" \\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",ul="A-Z\\xc0-\\xd6\\xd8-\\xde",qo="\\ufe0e\\ufe0f",zo=Uo+zc+Wc+Hc,ga="['’]",ll="["+Ut+"]",cl="["+zo+"]",Or="["+Ko+"]",vr="\\d+",Ir="["+ma+"]",Os="["+ol+"]",ro="[^"+Ut+zo+vr+ma+ol+ul+"]",yr="\\ud83c[\\udffb-\\udfff]",va="(?:"+Or+"|"+yr+")",ya="[^"+Ut+"]",Pi="(?:\\ud83c[\\udde6-\\uddff]){2}",mi="[\\ud800-\\udbff][\\udc00-\\udfff]",or="["+ul+"]",_i="\\u200d",Wo="(?:"+Os+"|"+ro+")",fl="(?:"+or+"|"+ro+")",mn="(?:"+ga+"(?:d|ll|m|re|s|t|ve))?",Ho="(?:"+ga+"(?:D|LL|M|RE|S|T|VE))?",ba=va+"?",Go="["+qo+"]?",dl="(?:"+_i+"(?:"+[ya,Pi,mi].join("|")+")"+Go+ba+")*",Lr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Yo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Is=Go+ba+dl,Ls="(?:"+[Ir,Pi,mi].join("|")+")"+Is,$a="(?:"+[ya+Or+"?",Or,Pi,mi,ll].join("|")+")",os=RegExp(ga,"g"),xa=RegExp(Or,"g"),io=RegExp(yr+"(?="+yr+")|"+$a+Is,"g"),hl=RegExp([or+"?"+Os+"+"+mn+"(?="+[cl,or,"$"].join("|")+")",fl+"+"+Ho+"(?="+[cl,or+Wo,"$"].join("|")+")",or+"?"+Wo+"+"+mn,or+"+"+Ho,Yo,Lr,vr,Ls].join("|"),"g"),Gc=RegExp("["+_i+Ut+Ko+qo+"]"),wa=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Yc=["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"],Ca=-1,Yt={};Yt[yn]=Yt[Cr]=Yt[zt]=Yt[_t]=Yt[Lt]=Yt[Wt]=Yt[gr]=Yt[Zr]=Yt[fi]=!0,Yt[Me]=Yt[Ye]=Yt[kt]=Yt[Ae]=Yt[wt]=Yt[Ke]=Yt[Ve]=Yt[Te]=Yt[yt]=Yt[Jt]=Yt[Mt]=Yt[me]=Yt[Se]=Yt[Le]=Yt[Xe]=!1;var nn={};nn[Me]=nn[Ye]=nn[kt]=nn[wt]=nn[Ae]=nn[Ke]=nn[yn]=nn[Cr]=nn[zt]=nn[_t]=nn[Lt]=nn[yt]=nn[Jt]=nn[Mt]=nn[me]=nn[Se]=nn[Le]=nn[it]=nn[Wt]=nn[gr]=nn[Zr]=nn[fi]=!0,nn[Ve]=nn[Te]=nn[Xe]=!1;var se={À:"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"},Fe={"&":"&","<":"<",">":">",'"':""","'":"'"},qe={"&":"&","<":"<",">":">",""":'"',"'":"'"},ht={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},bn=parseFloat,sr=parseInt,ur=typeof Yi=="object"&&Yi&&Yi.Object===Object&&Yi,Kn=typeof self=="object"&&self&&self.Object===Object&&self,Sn=ur||Kn||Function("return this")(),Mi=t&&!t.nodeType&&t,Fi=Mi&&!0&&e&&!e.nodeType&&e,Zo=Fi&&Fi.exports===Mi,so=Zo&&ur.process,lr=function(){try{var F=Fi&&Fi.require&&Fi.require("util").types;return F||so&&so.binding&&so.binding("util")}catch{}}(),Ea=lr&&lr.isArrayBuffer,ih=lr&&lr.isDate,sh=lr&&lr.isMap,Zc=lr&&lr.isRegExp,ao=lr&&lr.isSet,us=lr&&lr.isTypedArray;function Bn(F,ee,Y){switch(Y.length){case 0:return F.call(ee);case 1:return F.call(ee,Y[0]);case 2:return F.call(ee,Y[0],Y[1]);case 3:return F.call(ee,Y[0],Y[1],Y[2])}return F.apply(ee,Y)}function Bs(F,ee,Y,fe){for(var ce=-1,z=F==null?0:F.length;++ce<z;){var Z=F[ce];ee(fe,Z,Y(Z),F)}return fe}function hn(F,ee){for(var Y=-1,fe=F==null?0:F.length;++Y<fe&&ee(F[Y],Y,F)!==!1;);return F}function cr(F,ee){for(var Y=F==null?0:F.length;Y--&&ee(F[Y],Y,F)!==!1;);return F}function Sa(F,ee){for(var Y=-1,fe=F==null?0:F.length;++Y<fe;)if(!ee(F[Y],Y,F))return!1;return!0}function Sr(F,ee){for(var Y=-1,fe=F==null?0:F.length,ce=0,z=[];++Y<fe;){var Z=F[Y];ee(Z,Y,F)&&(z[ce++]=Z)}return z}function Vs(F,ee){var Y=F==null?0:F.length;return!!Y&&Da(F,ee,0)>-1}function pl(F,ee,Y){for(var fe=-1,ce=F==null?0:F.length;++fe<ce;)if(Y(ee,F[fe]))return!0;return!1}function cn(F,ee){for(var Y=-1,fe=F==null?0:F.length,ce=Array(fe);++Y<fe;)ce[Y]=ee(F[Y],Y,F);return ce}function ls(F,ee){for(var Y=-1,fe=ee.length,ce=F.length;++Y<fe;)F[ce+Y]=ee[Y];return F}function ml(F,ee,Y,fe){var ce=-1,z=F==null?0:F.length;for(fe&&z&&(Y=F[++ce]);++ce<z;)Y=ee(Y,F[ce],ce,F);return Y}function Xo(F,ee,Y,fe){var ce=F==null?0:F.length;for(fe&&ce&&(Y=F[--ce]);ce--;)Y=ee(Y,F[ce],ce,F);return Y}function Ns(F,ee){for(var Y=-1,fe=F==null?0:F.length;++Y<fe;)if(ee(F[Y],Y,F))return!0;return!1}var Jo=gl("length");function Qo(F){return F.split("")}function mg(F){return F.match(sl)||[]}function Xc(F,ee,Y){var fe;return Y(F,function(ce,z,Z){if(ee(ce,z,Z))return fe=z,!1}),fe}function eu(F,ee,Y,fe){for(var ce=F.length,z=Y+(fe?1:-1);fe?z--:++z<ce;)if(ee(F[z],z,F))return z;return-1}function Da(F,ee,Y){return ee===ee?p(F,ee,Y):eu(F,Jc,Y)}function ah(F,ee,Y,fe){for(var ce=Y-1,z=F.length;++ce<z;)if(fe(F[ce],ee))return ce;return-1}function Jc(F){return F!==F}function tu(F,ee){var Y=F==null?0:F.length;return Y?js(F,ee)/Y:U}function gl(F){return function(ee){return ee==null?n:ee[F]}}function vl(F){return function(ee){return F==null?n:F[ee]}}function Qc(F,ee,Y,fe,ce){return ce(F,function(z,Z,V){Y=fe?(fe=!1,z):ee(Y,z,Z,V)}),Y}function nu(F,ee){var Y=F.length;for(F.sort(ee);Y--;)F[Y]=F[Y].value;return F}function js(F,ee){for(var Y,fe=-1,ce=F.length;++fe<ce;){var z=ee(F[fe]);z!==n&&(Y=Y===n?z:Y+z)}return Y}function yl(F,ee){for(var Y=-1,fe=Array(F);++Y<F;)fe[Y]=ee(Y);return fe}function gg(F,ee){return cn(ee,function(Y){return[Y,F[Y]]})}function oh(F){return F&&F.slice(0,_(F)+1).replace(En,"")}function Dr(F){return function(ee){return F(ee)}}function ef(F,ee){return cn(ee,function(Y){return F[Y]})}function gn(F,ee){return F.has(ee)}function bl(F,ee){for(var Y=-1,fe=F.length;++Y<fe&&Da(ee,F[Y],0)>-1;);return Y}function fr(F,ee){for(var Y=F.length;Y--&&Da(ee,F[Y],0)>-1;);return Y}function vg(F,ee){for(var Y=F.length,fe=0;Y--;)F[Y]===ee&&++fe;return fe}var yg=vl(se),Aa=vl(Fe);function gi(F){return"\\"+ht[F]}function bg(F,ee){return F==null?n:F[ee]}function Ar(F){return Gc.test(F)}function tf(F){return wa.test(F)}function Ks(F){for(var ee,Y=[];!(ee=F.next()).done;)Y.push(ee.value);return Y}function Vn(F){var ee=-1,Y=Array(F.size);return F.forEach(function(fe,ce){Y[++ee]=[ce,fe]}),Y}function Ri(F,ee){return function(Y){return F(ee(Y))}}function Jr(F,ee){for(var Y=-1,fe=F.length,ce=0,z=[];++Y<fe;){var Z=F[Y];(Z===ee||Z===h)&&(F[Y]=h,z[ce++]=Y)}return z}function oo(F){var ee=-1,Y=Array(F.size);return F.forEach(function(fe){Y[++ee]=fe}),Y}function c(F){var ee=-1,Y=Array(F.size);return F.forEach(function(fe){Y[++ee]=[fe,fe]}),Y}function p(F,ee,Y){for(var fe=Y-1,ce=F.length;++fe<ce;)if(F[fe]===ee)return fe;return-1}function v(F,ee,Y){for(var fe=Y+1;fe--;)if(F[fe]===ee)return fe;return fe}function $(F){return Ar(F)?pe(F):Jo(F)}function P(F){return Ar(F)?Q(F):Qo(F)}function _(F){for(var ee=F.length;ee--&&pa.test(F.charAt(ee)););return ee}var q=vl(qe);function pe(F){for(var ee=io.lastIndex=0;io.test(F);)++ee;return ee}function Q(F){return F.match(io)||[]}function ye(F){return F.match(hl)||[]}var Ce=function F(ee){ee=ee==null?Sn:Re.defaults(Sn.Object(),ee,Re.pick(Sn,Yc));var Y=ee.Array,fe=ee.Date,ce=ee.Error,z=ee.Function,Z=ee.Math,V=ee.Object,j=ee.RegExp,G=ee.String,ne=ee.TypeError,oe=Y.prototype,de=z.prototype,Oe=V.prototype,et=ee["__core-js_shared__"],Je=de.toString,Be=Oe.hasOwnProperty,ot=0,ct=function(){var u=/[^.]+$/.exec(et&&et.keys&&et.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),Ie=Oe.toString,be=Je.call(V),ue=Sn._,J=j("^"+Je.call(Be).replace(ss,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ge=Zo?ee.Buffer:n,Ne=ee.Symbol,ke=ee.Uint8Array,lt=ge?ge.allocUnsafe:n,Tt=Ri(V.getPrototypeOf,V),Et=V.create,$n=Oe.propertyIsEnumerable,Ht=oe.splice,dr=Ne?Ne.isConcatSpreadable:n,Jn=Ne?Ne.iterator:n,Nn=Ne?Ne.toStringTag:n,Un=function(){try{var u=ou(V,"defineProperty");return u({},"",{}),u}catch{}}(),qn=ee.clearTimeout!==Sn.clearTimeout&&ee.clearTimeout,br=fe&&fe.now!==Sn.Date.now&&fe.now,ft=ee.setTimeout!==Sn.setTimeout&&ee.setTimeout,fn=Z.ceil,Qr=Z.floor,ki=V.getOwnPropertySymbols,cs=ge?ge.isBuffer:n,vi=ee.isFinite,fs=oe.join,ds=Ri(V.keys,V),Zt=Z.max,xn=Z.min,Us=fe.now,yi=ee.parseInt,hs=Z.random,bi=oe.reverse,ps=ou(ee,"DataView"),qs=ou(ee,"Map"),uo=ou(ee,"Promise"),$l=ou(ee,"Set"),nf=ou(ee,"WeakMap"),rf=ou(V,"create"),uh=nf&&new nf,xl={},k9=uu(ps),O9=uu(qs),I9=uu(uo),L9=uu($l),B9=uu(nf),lh=Ne?Ne.prototype:n,sf=lh?lh.valueOf:n,mx=lh?lh.toString:n;function X(u){if(jn(u)&&!Ft(u)&&!(u instanceof qt)){if(u instanceof Oi)return u;if(Be.call(u,"__wrapped__"))return gw(u)}return new Oi(u)}var wl=function(){function u(){}return function(f){if(!_n(f))return{};if(Et)return Et(f);u.prototype=f;var y=new u;return u.prototype=n,y}}();function ch(){}function Oi(u,f){this.__wrapped__=u,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}X.templateSettings={escape:el,evaluate:jc,interpolate:tl,variable:"",imports:{_:X}},X.prototype=ch.prototype,X.prototype.constructor=X,Oi.prototype=wl(ch.prototype),Oi.prototype.constructor=Oi;function qt(u){this.__wrapped__=u,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=te,this.__views__=[]}function V9(){var u=new qt(this.__wrapped__);return u.__actions__=ei(this.__actions__),u.__dir__=this.__dir__,u.__filtered__=this.__filtered__,u.__iteratees__=ei(this.__iteratees__),u.__takeCount__=this.__takeCount__,u.__views__=ei(this.__views__),u}function N9(){if(this.__filtered__){var u=new qt(this);u.__dir__=-1,u.__filtered__=!0}else u=this.clone(),u.__dir__*=-1;return u}function j9(){var u=this.__wrapped__.value(),f=this.__dir__,y=Ft(u),D=f<0,N=y?u.length:0,re=QL(0,N,this.__views__),ve=re.start,Ee=re.end,Pe=Ee-ve,Ue=D?Ee:ve-1,ze=this.__iteratees__,Ze=ze.length,at=0,vt=xn(Pe,this.__takeCount__);if(!y||!D&&N==Pe&&vt==Pe)return Vx(u,this.__actions__);var St=[];e:for(;Pe--&&at<vt;){Ue+=f;for(var Bt=-1,Dt=u[Ue];++Bt<Ze;){var jt=ze[Bt],Gt=jt.iteratee,wi=jt.type,Nr=Gt(Dt);if(wi==ie)Dt=Nr;else if(!Nr){if(wi==W)continue e;break e}}St[at++]=Dt}return St}qt.prototype=wl(ch.prototype),qt.prototype.constructor=qt;function ru(u){var f=-1,y=u==null?0:u.length;for(this.clear();++f<y;){var D=u[f];this.set(D[0],D[1])}}function K9(){this.__data__=rf?rf(null):{},this.size=0}function U9(u){var f=this.has(u)&&delete this.__data__[u];return this.size-=f?1:0,f}function q9(u){var f=this.__data__;if(rf){var y=f[u];return y===l?n:y}return Be.call(f,u)?f[u]:n}function z9(u){var f=this.__data__;return rf?f[u]!==n:Be.call(f,u)}function W9(u,f){var y=this.__data__;return this.size+=this.has(u)?0:1,y[u]=rf&&f===n?l:f,this}ru.prototype.clear=K9,ru.prototype.delete=U9,ru.prototype.get=q9,ru.prototype.has=z9,ru.prototype.set=W9;function Ta(u){var f=-1,y=u==null?0:u.length;for(this.clear();++f<y;){var D=u[f];this.set(D[0],D[1])}}function H9(){this.__data__=[],this.size=0}function G9(u){var f=this.__data__,y=fh(f,u);if(y<0)return!1;var D=f.length-1;return y==D?f.pop():Ht.call(f,y,1),--this.size,!0}function Y9(u){var f=this.__data__,y=fh(f,u);return y<0?n:f[y][1]}function Z9(u){return fh(this.__data__,u)>-1}function X9(u,f){var y=this.__data__,D=fh(y,u);return D<0?(++this.size,y.push([u,f])):y[D][1]=f,this}Ta.prototype.clear=H9,Ta.prototype.delete=G9,Ta.prototype.get=Y9,Ta.prototype.has=Z9,Ta.prototype.set=X9;function Pa(u){var f=-1,y=u==null?0:u.length;for(this.clear();++f<y;){var D=u[f];this.set(D[0],D[1])}}function J9(){this.size=0,this.__data__={hash:new ru,map:new(qs||Ta),string:new ru}}function Q9(u){var f=Ch(this,u).delete(u);return this.size-=f?1:0,f}function eL(u){return Ch(this,u).get(u)}function tL(u){return Ch(this,u).has(u)}function nL(u,f){var y=Ch(this,u),D=y.size;return y.set(u,f),this.size+=y.size==D?0:1,this}Pa.prototype.clear=J9,Pa.prototype.delete=Q9,Pa.prototype.get=eL,Pa.prototype.has=tL,Pa.prototype.set=nL;function iu(u){var f=-1,y=u==null?0:u.length;for(this.__data__=new Pa;++f<y;)this.add(u[f])}function rL(u){return this.__data__.set(u,l),this}function iL(u){return this.__data__.has(u)}iu.prototype.add=iu.prototype.push=rL,iu.prototype.has=iL;function ms(u){var f=this.__data__=new Ta(u);this.size=f.size}function sL(){this.__data__=new Ta,this.size=0}function aL(u){var f=this.__data__,y=f.delete(u);return this.size=f.size,y}function oL(u){return this.__data__.get(u)}function uL(u){return this.__data__.has(u)}function lL(u,f){var y=this.__data__;if(y instanceof Ta){var D=y.__data__;if(!qs||D.length<i-1)return D.push([u,f]),this.size=++y.size,this;y=this.__data__=new Pa(D)}return y.set(u,f),this.size=y.size,this}ms.prototype.clear=sL,ms.prototype.delete=aL,ms.prototype.get=oL,ms.prototype.has=uL,ms.prototype.set=lL;function gx(u,f){var y=Ft(u),D=!y&&lu(u),N=!y&&!D&&po(u),re=!y&&!D&&!N&&Dl(u),ve=y||D||N||re,Ee=ve?yl(u.length,G):[],Pe=Ee.length;for(var Ue in u)(f||Be.call(u,Ue))&&!(ve&&(Ue=="length"||N&&(Ue=="offset"||Ue=="parent")||re&&(Ue=="buffer"||Ue=="byteLength"||Ue=="byteOffset")||Ra(Ue,Pe)))&&Ee.push(Ue);return Ee}function vx(u){var f=u.length;return f?u[_g(0,f-1)]:n}function cL(u,f){return Eh(ei(u),su(f,0,u.length))}function fL(u){return Eh(ei(u))}function $g(u,f,y){(y!==n&&!gs(u[f],y)||y===n&&!(f in u))&&_a(u,f,y)}function af(u,f,y){var D=u[f];(!(Be.call(u,f)&&gs(D,y))||y===n&&!(f in u))&&_a(u,f,y)}function fh(u,f){for(var y=u.length;y--;)if(gs(u[y][0],f))return y;return-1}function dL(u,f,y,D){return lo(u,function(N,re,ve){f(D,N,y(N),ve)}),D}function yx(u,f){return u&&Ws(f,hr(f),u)}function hL(u,f){return u&&Ws(f,ni(f),u)}function _a(u,f,y){f=="__proto__"&&Un?Un(u,f,{configurable:!0,enumerable:!0,value:y,writable:!0}):u[f]=y}function xg(u,f){for(var y=-1,D=f.length,N=Y(D),re=u==null;++y<D;)N[y]=re?n:tv(u,f[y]);return N}function su(u,f,y){return u===u&&(y!==n&&(u=u<=y?u:y),f!==n&&(u=u>=f?u:f)),u}function Ii(u,f,y,D,N,re){var ve,Ee=f&m,Pe=f&g,Ue=f&b;if(y&&(ve=N?y(u,D,N,re):y(u)),ve!==n)return ve;if(!_n(u))return u;var ze=Ft(u);if(ze){if(ve=t8(u),!Ee)return ei(u,ve)}else{var Ze=Tr(u),at=Ze==Te||Ze==tt;if(po(u))return Kx(u,Ee);if(Ze==Mt||Ze==Me||at&&!N){if(ve=Pe||at?{}:ow(u),!Ee)return Pe?qL(u,hL(ve,u)):UL(u,yx(ve,u))}else{if(!nn[Ze])return N?u:{};ve=n8(u,Ze,Ee)}}re||(re=new ms);var vt=re.get(u);if(vt)return vt;re.set(u,ve),Iw(u)?u.forEach(function(Dt){ve.add(Ii(Dt,f,y,Dt,u,re))}):kw(u)&&u.forEach(function(Dt,jt){ve.set(jt,Ii(Dt,f,y,jt,u,re))});var St=Ue?Pe?jg:Ng:Pe?ni:hr,Bt=ze?n:St(u);return hn(Bt||u,function(Dt,jt){Bt&&(jt=Dt,Dt=u[jt]),af(ve,jt,Ii(Dt,f,y,jt,u,re))}),ve}function pL(u){var f=hr(u);return function(y){return bx(y,u,f)}}function bx(u,f,y){var D=y.length;if(u==null)return!D;for(u=V(u);D--;){var N=y[D],re=f[N],ve=u[N];if(ve===n&&!(N in u)||!re(ve))return!1}return!0}function $x(u,f,y){if(typeof u!="function")throw new ne(a);return hf(function(){u.apply(n,y)},f)}function of(u,f,y,D){var N=-1,re=Vs,ve=!0,Ee=u.length,Pe=[],Ue=f.length;if(!Ee)return Pe;y&&(f=cn(f,Dr(y))),D?(re=pl,ve=!1):f.length>=i&&(re=gn,ve=!1,f=new iu(f));e:for(;++N<Ee;){var ze=u[N],Ze=y==null?ze:y(ze);if(ze=D||ze!==0?ze:0,ve&&Ze===Ze){for(var at=Ue;at--;)if(f[at]===Ze)continue e;Pe.push(ze)}else re(f,Ze,D)||Pe.push(ze)}return Pe}var lo=Hx(zs),xx=Hx(Cg,!0);function mL(u,f){var y=!0;return lo(u,function(D,N,re){return y=!!f(D,N,re),y}),y}function dh(u,f,y){for(var D=-1,N=u.length;++D<N;){var re=u[D],ve=f(re);if(ve!=null&&(Ee===n?ve===ve&&!xi(ve):y(ve,Ee)))var Ee=ve,Pe=re}return Pe}function gL(u,f,y,D){var N=u.length;for(y=Ot(y),y<0&&(y=-y>N?0:N+y),D=D===n||D>N?N:Ot(D),D<0&&(D+=N),D=y>D?0:Bw(D);y<D;)u[y++]=f;return u}function wx(u,f){var y=[];return lo(u,function(D,N,re){f(D,N,re)&&y.push(D)}),y}function $r(u,f,y,D,N){var re=-1,ve=u.length;for(y||(y=i8),N||(N=[]);++re<ve;){var Ee=u[re];f>0&&y(Ee)?f>1?$r(Ee,f-1,y,D,N):ls(N,Ee):D||(N[N.length]=Ee)}return N}var wg=Gx(),Cx=Gx(!0);function zs(u,f){return u&&wg(u,f,hr)}function Cg(u,f){return u&&Cx(u,f,hr)}function hh(u,f){return Sr(f,function(y){return ka(u[y])})}function au(u,f){f=fo(f,u);for(var y=0,D=f.length;u!=null&&y<D;)u=u[Hs(f[y++])];return y&&y==D?u:n}function Ex(u,f,y){var D=f(u);return Ft(u)?D:ls(D,y(u))}function Br(u){return u==null?u===n?Qe:xt:Nn&&Nn in V(u)?JL(u):f8(u)}function Eg(u,f){return u>f}function vL(u,f){return u!=null&&Be.call(u,f)}function yL(u,f){return u!=null&&f in V(u)}function bL(u,f,y){return u>=xn(f,y)&&u<Zt(f,y)}function Sg(u,f,y){for(var D=y?pl:Vs,N=u[0].length,re=u.length,ve=re,Ee=Y(re),Pe=1/0,Ue=[];ve--;){var ze=u[ve];ve&&f&&(ze=cn(ze,Dr(f))),Pe=xn(ze.length,Pe),Ee[ve]=!y&&(f||N>=120&&ze.length>=120)?new iu(ve&&ze):n}ze=u[0];var Ze=-1,at=Ee[0];e:for(;++Ze<N&&Ue.length<Pe;){var vt=ze[Ze],St=f?f(vt):vt;if(vt=y||vt!==0?vt:0,!(at?gn(at,St):D(Ue,St,y))){for(ve=re;--ve;){var Bt=Ee[ve];if(!(Bt?gn(Bt,St):D(u[ve],St,y)))continue e}at&&at.push(St),Ue.push(vt)}}return Ue}function $L(u,f,y,D){return zs(u,function(N,re,ve){f(D,y(N),re,ve)}),D}function uf(u,f,y){f=fo(f,u),u=fw(u,f);var D=u==null?u:u[Hs(Bi(f))];return D==null?n:Bn(D,u,y)}function Sx(u){return jn(u)&&Br(u)==Me}function xL(u){return jn(u)&&Br(u)==kt}function wL(u){return jn(u)&&Br(u)==Ke}function lf(u,f,y,D,N){return u===f?!0:u==null||f==null||!jn(u)&&!jn(f)?u!==u&&f!==f:CL(u,f,y,D,lf,N)}function CL(u,f,y,D,N,re){var ve=Ft(u),Ee=Ft(f),Pe=ve?Ye:Tr(u),Ue=Ee?Ye:Tr(f);Pe=Pe==Me?Mt:Pe,Ue=Ue==Me?Mt:Ue;var ze=Pe==Mt,Ze=Ue==Mt,at=Pe==Ue;if(at&&po(u)){if(!po(f))return!1;ve=!0,ze=!1}if(at&&!ze)return re||(re=new ms),ve||Dl(u)?iw(u,f,y,D,N,re):ZL(u,f,Pe,y,D,N,re);if(!(y&x)){var vt=ze&&Be.call(u,"__wrapped__"),St=Ze&&Be.call(f,"__wrapped__");if(vt||St){var Bt=vt?u.value():u,Dt=St?f.value():f;return re||(re=new ms),N(Bt,Dt,y,D,re)}}return at?(re||(re=new ms),XL(u,f,y,D,N,re)):!1}function EL(u){return jn(u)&&Tr(u)==yt}function Dg(u,f,y,D){var N=y.length,re=N,ve=!D;if(u==null)return!re;for(u=V(u);N--;){var Ee=y[N];if(ve&&Ee[2]?Ee[1]!==u[Ee[0]]:!(Ee[0]in u))return!1}for(;++N<re;){Ee=y[N];var Pe=Ee[0],Ue=u[Pe],ze=Ee[1];if(ve&&Ee[2]){if(Ue===n&&!(Pe in u))return!1}else{var Ze=new ms;if(D)var at=D(Ue,ze,Pe,u,f,Ze);if(!(at===n?lf(ze,Ue,x|w,D,Ze):at))return!1}}return!0}function Dx(u){if(!_n(u)||a8(u))return!1;var f=ka(u)?J:Xn;return f.test(uu(u))}function SL(u){return jn(u)&&Br(u)==me}function DL(u){return jn(u)&&Tr(u)==Se}function AL(u){return jn(u)&&_h(u.length)&&!!Yt[Br(u)]}function Ax(u){return typeof u=="function"?u:u==null?ri:typeof u=="object"?Ft(u)?_x(u[0],u[1]):Px(u):Yw(u)}function Ag(u){if(!df(u))return ds(u);var f=[];for(var y in V(u))Be.call(u,y)&&y!="constructor"&&f.push(y);return f}function TL(u){if(!_n(u))return c8(u);var f=df(u),y=[];for(var D in u)D=="constructor"&&(f||!Be.call(u,D))||y.push(D);return y}function Tg(u,f){return u<f}function Tx(u,f){var y=-1,D=ti(u)?Y(u.length):[];return lo(u,function(N,re,ve){D[++y]=f(N,re,ve)}),D}function Px(u){var f=Ug(u);return f.length==1&&f[0][2]?lw(f[0][0],f[0][1]):function(y){return y===u||Dg(y,u,f)}}function _x(u,f){return zg(u)&&uw(f)?lw(Hs(u),f):function(y){var D=tv(y,u);return D===n&&D===f?nv(y,u):lf(f,D,x|w)}}function ph(u,f,y,D,N){u!==f&&wg(f,function(re,ve){if(N||(N=new ms),_n(re))PL(u,f,ve,y,ph,D,N);else{var Ee=D?D(Hg(u,ve),re,ve+"",u,f,N):n;Ee===n&&(Ee=re),$g(u,ve,Ee)}},ni)}function PL(u,f,y,D,N,re,ve){var Ee=Hg(u,y),Pe=Hg(f,y),Ue=ve.get(Pe);if(Ue){$g(u,y,Ue);return}var ze=re?re(Ee,Pe,y+"",u,f,ve):n,Ze=ze===n;if(Ze){var at=Ft(Pe),vt=!at&&po(Pe),St=!at&&!vt&&Dl(Pe);ze=Pe,at||vt||St?Ft(Ee)?ze=Ee:zn(Ee)?ze=ei(Ee):vt?(Ze=!1,ze=Kx(Pe,!0)):St?(Ze=!1,ze=Ux(Pe,!0)):ze=[]:pf(Pe)||lu(Pe)?(ze=Ee,lu(Ee)?ze=Vw(Ee):(!_n(Ee)||ka(Ee))&&(ze=ow(Pe))):Ze=!1}Ze&&(ve.set(Pe,ze),N(ze,Pe,D,re,ve),ve.delete(Pe)),$g(u,y,ze)}function Mx(u,f){var y=u.length;if(y)return f+=f<0?y:0,Ra(f,y)?u[f]:n}function Fx(u,f,y){f.length?f=cn(f,function(re){return Ft(re)?function(ve){return au(ve,re.length===1?re[0]:re)}:re}):f=[ri];var D=-1;f=cn(f,Dr(Ct()));var N=Tx(u,function(re,ve,Ee){var Pe=cn(f,function(Ue){return Ue(re)});return{criteria:Pe,index:++D,value:re}});return nu(N,function(re,ve){return KL(re,ve,y)})}function _L(u,f){return Rx(u,f,function(y,D){return nv(u,D)})}function Rx(u,f,y){for(var D=-1,N=f.length,re={};++D<N;){var ve=f[D],Ee=au(u,ve);y(Ee,ve)&&cf(re,fo(ve,u),Ee)}return re}function ML(u){return function(f){return au(f,u)}}function Pg(u,f,y,D){var N=D?ah:Da,re=-1,ve=f.length,Ee=u;for(u===f&&(f=ei(f)),y&&(Ee=cn(u,Dr(y)));++re<ve;)for(var Pe=0,Ue=f[re],ze=y?y(Ue):Ue;(Pe=N(Ee,ze,Pe,D))>-1;)Ee!==u&&Ht.call(Ee,Pe,1),Ht.call(u,Pe,1);return u}function kx(u,f){for(var y=u?f.length:0,D=y-1;y--;){var N=f[y];if(y==D||N!==re){var re=N;Ra(N)?Ht.call(u,N,1):Rg(u,N)}}return u}function _g(u,f){return u+Qr(hs()*(f-u+1))}function FL(u,f,y,D){for(var N=-1,re=Zt(fn((f-u)/(y||1)),0),ve=Y(re);re--;)ve[D?re:++N]=u,u+=y;return ve}function Mg(u,f){var y="";if(!u||f<1||f>B)return y;do f%2&&(y+=u),f=Qr(f/2),f&&(u+=u);while(f);return y}function Nt(u,f){return Gg(cw(u,f,ri),u+"")}function RL(u){return vx(Al(u))}function kL(u,f){var y=Al(u);return Eh(y,su(f,0,y.length))}function cf(u,f,y,D){if(!_n(u))return u;f=fo(f,u);for(var N=-1,re=f.length,ve=re-1,Ee=u;Ee!=null&&++N<re;){var Pe=Hs(f[N]),Ue=y;if(Pe==="__proto__"||Pe==="constructor"||Pe==="prototype")return u;if(N!=ve){var ze=Ee[Pe];Ue=D?D(ze,Pe,Ee):n,Ue===n&&(Ue=_n(ze)?ze:Ra(f[N+1])?[]:{})}af(Ee,Pe,Ue),Ee=Ee[Pe]}return u}var Ox=uh?function(u,f){return uh.set(u,f),u}:ri,OL=Un?function(u,f){return Un(u,"toString",{configurable:!0,enumerable:!1,value:iv(f),writable:!0})}:ri;function IL(u){return Eh(Al(u))}function Li(u,f,y){var D=-1,N=u.length;f<0&&(f=-f>N?0:N+f),y=y>N?N:y,y<0&&(y+=N),N=f>y?0:y-f>>>0,f>>>=0;for(var re=Y(N);++D<N;)re[D]=u[D+f];return re}function LL(u,f){var y;return lo(u,function(D,N,re){return y=f(D,N,re),!y}),!!y}function mh(u,f,y){var D=0,N=u==null?D:u.length;if(typeof f=="number"&&f===f&&N<=De){for(;D<N;){var re=D+N>>>1,ve=u[re];ve!==null&&!xi(ve)&&(y?ve<=f:ve<f)?D=re+1:N=re}return N}return Fg(u,f,ri,y)}function Fg(u,f,y,D){var N=0,re=u==null?0:u.length;if(re===0)return 0;f=y(f);for(var ve=f!==f,Ee=f===null,Pe=xi(f),Ue=f===n;N<re;){var ze=Qr((N+re)/2),Ze=y(u[ze]),at=Ze!==n,vt=Ze===null,St=Ze===Ze,Bt=xi(Ze);if(ve)var Dt=D||St;else Ue?Dt=St&&(D||at):Ee?Dt=St&&at&&(D||!vt):Pe?Dt=St&&at&&!vt&&(D||!Bt):vt||Bt?Dt=!1:Dt=D?Ze<=f:Ze<f;Dt?N=ze+1:re=ze}return xn(re,xe)}function Ix(u,f){for(var y=-1,D=u.length,N=0,re=[];++y<D;){var ve=u[y],Ee=f?f(ve):ve;if(!y||!gs(Ee,Pe)){var Pe=Ee;re[N++]=ve===0?0:ve}}return re}function Lx(u){return typeof u=="number"?u:xi(u)?U:+u}function $i(u){if(typeof u=="string")return u;if(Ft(u))return cn(u,$i)+"";if(xi(u))return mx?mx.call(u):"";var f=u+"";return f=="0"&&1/u==-L?"-0":f}function co(u,f,y){var D=-1,N=Vs,re=u.length,ve=!0,Ee=[],Pe=Ee;if(y)ve=!1,N=pl;else if(re>=i){var Ue=f?null:GL(u);if(Ue)return oo(Ue);ve=!1,N=gn,Pe=new iu}else Pe=f?[]:Ee;e:for(;++D<re;){var ze=u[D],Ze=f?f(ze):ze;if(ze=y||ze!==0?ze:0,ve&&Ze===Ze){for(var at=Pe.length;at--;)if(Pe[at]===Ze)continue e;f&&Pe.push(Ze),Ee.push(ze)}else N(Pe,Ze,y)||(Pe!==Ee&&Pe.push(Ze),Ee.push(ze))}return Ee}function Rg(u,f){return f=fo(f,u),u=fw(u,f),u==null||delete u[Hs(Bi(f))]}function Bx(u,f,y,D){return cf(u,f,y(au(u,f)),D)}function gh(u,f,y,D){for(var N=u.length,re=D?N:-1;(D?re--:++re<N)&&f(u[re],re,u););return y?Li(u,D?0:re,D?re+1:N):Li(u,D?re+1:0,D?N:re)}function Vx(u,f){var y=u;return y instanceof qt&&(y=y.value()),ml(f,function(D,N){return N.func.apply(N.thisArg,ls([D],N.args))},y)}function kg(u,f,y){var D=u.length;if(D<2)return D?co(u[0]):[];for(var N=-1,re=Y(D);++N<D;)for(var ve=u[N],Ee=-1;++Ee<D;)Ee!=N&&(re[N]=of(re[N]||ve,u[Ee],f,y));return co($r(re,1),f,y)}function Nx(u,f,y){for(var D=-1,N=u.length,re=f.length,ve={};++D<N;){var Ee=D<re?f[D]:n;y(ve,u[D],Ee)}return ve}function Og(u){return zn(u)?u:[]}function Ig(u){return typeof u=="function"?u:ri}function fo(u,f){return Ft(u)?u:zg(u,f)?[u]:mw(on(u))}var BL=Nt;function ho(u,f,y){var D=u.length;return y=y===n?D:y,!f&&y>=D?u:Li(u,f,y)}var jx=qn||function(u){return Sn.clearTimeout(u)};function Kx(u,f){if(f)return u.slice();var y=u.length,D=lt?lt(y):new u.constructor(y);return u.copy(D),D}function Lg(u){var f=new u.constructor(u.byteLength);return new ke(f).set(new ke(u)),f}function VL(u,f){var y=f?Lg(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.byteLength)}function NL(u){var f=new u.constructor(u.source,dn.exec(u));return f.lastIndex=u.lastIndex,f}function jL(u){return sf?V(sf.call(u)):{}}function Ux(u,f){var y=f?Lg(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.length)}function qx(u,f){if(u!==f){var y=u!==n,D=u===null,N=u===u,re=xi(u),ve=f!==n,Ee=f===null,Pe=f===f,Ue=xi(f);if(!Ee&&!Ue&&!re&&u>f||re&&ve&&Pe&&!Ee&&!Ue||D&&ve&&Pe||!y&&Pe||!N)return 1;if(!D&&!re&&!Ue&&u<f||Ue&&y&&N&&!D&&!re||Ee&&y&&N||!ve&&N||!Pe)return-1}return 0}function KL(u,f,y){for(var D=-1,N=u.criteria,re=f.criteria,ve=N.length,Ee=y.length;++D<ve;){var Pe=qx(N[D],re[D]);if(Pe){if(D>=Ee)return Pe;var Ue=y[D];return Pe*(Ue=="desc"?-1:1)}}return u.index-f.index}function zx(u,f,y,D){for(var N=-1,re=u.length,ve=y.length,Ee=-1,Pe=f.length,Ue=Zt(re-ve,0),ze=Y(Pe+Ue),Ze=!D;++Ee<Pe;)ze[Ee]=f[Ee];for(;++N<ve;)(Ze||N<re)&&(ze[y[N]]=u[N]);for(;Ue--;)ze[Ee++]=u[N++];return ze}function Wx(u,f,y,D){for(var N=-1,re=u.length,ve=-1,Ee=y.length,Pe=-1,Ue=f.length,ze=Zt(re-Ee,0),Ze=Y(ze+Ue),at=!D;++N<ze;)Ze[N]=u[N];for(var vt=N;++Pe<Ue;)Ze[vt+Pe]=f[Pe];for(;++ve<Ee;)(at||N<re)&&(Ze[vt+y[ve]]=u[N++]);return Ze}function ei(u,f){var y=-1,D=u.length;for(f||(f=Y(D));++y<D;)f[y]=u[y];return f}function Ws(u,f,y,D){var N=!y;y||(y={});for(var re=-1,ve=f.length;++re<ve;){var Ee=f[re],Pe=D?D(y[Ee],u[Ee],Ee,y,u):n;Pe===n&&(Pe=u[Ee]),N?_a(y,Ee,Pe):af(y,Ee,Pe)}return y}function UL(u,f){return Ws(u,qg(u),f)}function qL(u,f){return Ws(u,sw(u),f)}function vh(u,f){return function(y,D){var N=Ft(y)?Bs:dL,re=f?f():{};return N(y,u,Ct(D,2),re)}}function Cl(u){return Nt(function(f,y){var D=-1,N=y.length,re=N>1?y[N-1]:n,ve=N>2?y[2]:n;for(re=u.length>3&&typeof re=="function"?(N--,re):n,ve&&Vr(y[0],y[1],ve)&&(re=N<3?n:re,N=1),f=V(f);++D<N;){var Ee=y[D];Ee&&u(f,Ee,D,re)}return f})}function Hx(u,f){return function(y,D){if(y==null)return y;if(!ti(y))return u(y,D);for(var N=y.length,re=f?N:-1,ve=V(y);(f?re--:++re<N)&&D(ve[re],re,ve)!==!1;);return y}}function Gx(u){return function(f,y,D){for(var N=-1,re=V(f),ve=D(f),Ee=ve.length;Ee--;){var Pe=ve[u?Ee:++N];if(y(re[Pe],Pe,re)===!1)break}return f}}function zL(u,f,y){var D=f&S,N=ff(u);function re(){var ve=this&&this!==Sn&&this instanceof re?N:u;return ve.apply(D?y:this,arguments)}return re}function Yx(u){return function(f){f=on(f);var y=Ar(f)?P(f):n,D=y?y[0]:f.charAt(0),N=y?ho(y,1).join(""):f.slice(1);return D[u]()+N}}function El(u){return function(f){return ml(Hw(Ww(f).replace(os,"")),u,"")}}function ff(u){return function(){var f=arguments;switch(f.length){case 0:return new u;case 1:return new u(f[0]);case 2:return new u(f[0],f[1]);case 3:return new u(f[0],f[1],f[2]);case 4:return new u(f[0],f[1],f[2],f[3]);case 5:return new u(f[0],f[1],f[2],f[3],f[4]);case 6:return new u(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new u(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var y=wl(u.prototype),D=u.apply(y,f);return _n(D)?D:y}}function WL(u,f,y){var D=ff(u);function N(){for(var re=arguments.length,ve=Y(re),Ee=re,Pe=Sl(N);Ee--;)ve[Ee]=arguments[Ee];var Ue=re<3&&ve[0]!==Pe&&ve[re-1]!==Pe?[]:Jr(ve,Pe);if(re-=Ue.length,re<y)return ew(u,f,yh,N.placeholder,n,ve,Ue,n,n,y-re);var ze=this&&this!==Sn&&this instanceof N?D:u;return Bn(ze,this,ve)}return N}function Zx(u){return function(f,y,D){var N=V(f);if(!ti(f)){var re=Ct(y,3);f=hr(f),y=function(Ee){return re(N[Ee],Ee,N)}}var ve=u(f,y,D);return ve>-1?N[re?f[ve]:ve]:n}}function Xx(u){return Fa(function(f){var y=f.length,D=y,N=Oi.prototype.thru;for(u&&f.reverse();D--;){var re=f[D];if(typeof re!="function")throw new ne(a);if(N&&!ve&&wh(re)=="wrapper")var ve=new Oi([],!0)}for(D=ve?D:y;++D<y;){re=f[D];var Ee=wh(re),Pe=Ee=="wrapper"?Kg(re):n;Pe&&Wg(Pe[0])&&Pe[1]==(K|A|M|H)&&!Pe[4].length&&Pe[9]==1?ve=ve[wh(Pe[0])].apply(ve,Pe[3]):ve=re.length==1&&Wg(re)?ve[Ee]():ve.thru(re)}return function(){var Ue=arguments,ze=Ue[0];if(ve&&Ue.length==1&&Ft(ze))return ve.plant(ze).value();for(var Ze=0,at=y?f[Ze].apply(this,Ue):ze;++Ze<y;)at=f[Ze].call(this,at);return at}})}function yh(u,f,y,D,N,re,ve,Ee,Pe,Ue){var ze=f&K,Ze=f&S,at=f&E,vt=f&(A|k),St=f&le,Bt=at?n:ff(u);function Dt(){for(var jt=arguments.length,Gt=Y(jt),wi=jt;wi--;)Gt[wi]=arguments[wi];if(vt)var Nr=Sl(Dt),Ci=vg(Gt,Nr);if(D&&(Gt=zx(Gt,D,N,vt)),re&&(Gt=Wx(Gt,re,ve,vt)),jt-=Ci,vt&&jt<Ue){var Wn=Jr(Gt,Nr);return ew(u,f,yh,Dt.placeholder,y,Gt,Wn,Ee,Pe,Ue-jt)}var vs=Ze?y:this,Ia=at?vs[u]:u;return jt=Gt.length,Ee?Gt=d8(Gt,Ee):St&&jt>1&&Gt.reverse(),ze&&Pe<jt&&(Gt.length=Pe),this&&this!==Sn&&this instanceof Dt&&(Ia=Bt||ff(Ia)),Ia.apply(vs,Gt)}return Dt}function Jx(u,f){return function(y,D){return $L(y,u,f(D),{})}}function bh(u,f){return function(y,D){var N;if(y===n&&D===n)return f;if(y!==n&&(N=y),D!==n){if(N===n)return D;typeof y=="string"||typeof D=="string"?(y=$i(y),D=$i(D)):(y=Lx(y),D=Lx(D)),N=u(y,D)}return N}}function Bg(u){return Fa(function(f){return f=cn(f,Dr(Ct())),Nt(function(y){var D=this;return u(f,function(N){return Bn(N,D,y)})})})}function $h(u,f){f=f===n?" ":$i(f);var y=f.length;if(y<2)return y?Mg(f,u):f;var D=Mg(f,fn(u/$(f)));return Ar(f)?ho(P(D),0,u).join(""):D.slice(0,u)}function HL(u,f,y,D){var N=f&S,re=ff(u);function ve(){for(var Ee=-1,Pe=arguments.length,Ue=-1,ze=D.length,Ze=Y(ze+Pe),at=this&&this!==Sn&&this instanceof ve?re:u;++Ue<ze;)Ze[Ue]=D[Ue];for(;Pe--;)Ze[Ue++]=arguments[++Ee];return Bn(at,N?y:this,Ze)}return ve}function Qx(u){return function(f,y,D){return D&&typeof D!="number"&&Vr(f,y,D)&&(y=D=n),f=Oa(f),y===n?(y=f,f=0):y=Oa(y),D=D===n?f<y?1:-1:Oa(D),FL(f,y,D,u)}}function xh(u){return function(f,y){return typeof f=="string"&&typeof y=="string"||(f=Vi(f),y=Vi(y)),u(f,y)}}function ew(u,f,y,D,N,re,ve,Ee,Pe,Ue){var ze=f&A,Ze=ze?ve:n,at=ze?n:ve,vt=ze?re:n,St=ze?n:re;f|=ze?M:R,f&=~(ze?R:M),f&C||(f&=-4);var Bt=[u,f,N,vt,Ze,St,at,Ee,Pe,Ue],Dt=y.apply(n,Bt);return Wg(u)&&dw(Dt,Bt),Dt.placeholder=D,hw(Dt,u,f)}function Vg(u){var f=Z[u];return function(y,D){if(y=Vi(y),D=D==null?0:xn(Ot(D),292),D&&vi(y)){var N=(on(y)+"e").split("e"),re=f(N[0]+"e"+(+N[1]+D));return N=(on(re)+"e").split("e"),+(N[0]+"e"+(+N[1]-D))}return f(y)}}var GL=$l&&1/oo(new $l([,-0]))[1]==L?function(u){return new $l(u)}:ov;function tw(u){return function(f){var y=Tr(f);return y==yt?Vn(f):y==Se?c(f):gg(f,u(f))}}function Ma(u,f,y,D,N,re,ve,Ee){var Pe=f&E;if(!Pe&&typeof u!="function")throw new ne(a);var Ue=D?D.length:0;if(Ue||(f&=-97,D=N=n),ve=ve===n?ve:Zt(Ot(ve),0),Ee=Ee===n?Ee:Ot(Ee),Ue-=N?N.length:0,f&R){var ze=D,Ze=N;D=N=n}var at=Pe?n:Kg(u),vt=[u,f,y,D,N,ze,Ze,re,ve,Ee];if(at&&l8(vt,at),u=vt[0],f=vt[1],y=vt[2],D=vt[3],N=vt[4],Ee=vt[9]=vt[9]===n?Pe?0:u.length:Zt(vt[9]-Ue,0),!Ee&&f&(A|k)&&(f&=-25),!f||f==S)var St=zL(u,f,y);else f==A||f==k?St=WL(u,f,Ee):(f==M||f==(S|M))&&!N.length?St=HL(u,f,y,D):St=yh.apply(n,vt);var Bt=at?Ox:dw;return hw(Bt(St,vt),u,f)}function nw(u,f,y,D){return u===n||gs(u,Oe[y])&&!Be.call(D,y)?f:u}function rw(u,f,y,D,N,re){return _n(u)&&_n(f)&&(re.set(f,u),ph(u,f,n,rw,re),re.delete(f)),u}function YL(u){return pf(u)?n:u}function iw(u,f,y,D,N,re){var ve=y&x,Ee=u.length,Pe=f.length;if(Ee!=Pe&&!(ve&&Pe>Ee))return!1;var Ue=re.get(u),ze=re.get(f);if(Ue&&ze)return Ue==f&&ze==u;var Ze=-1,at=!0,vt=y&w?new iu:n;for(re.set(u,f),re.set(f,u);++Ze<Ee;){var St=u[Ze],Bt=f[Ze];if(D)var Dt=ve?D(Bt,St,Ze,f,u,re):D(St,Bt,Ze,u,f,re);if(Dt!==n){if(Dt)continue;at=!1;break}if(vt){if(!Ns(f,function(jt,Gt){if(!gn(vt,Gt)&&(St===jt||N(St,jt,y,D,re)))return vt.push(Gt)})){at=!1;break}}else if(!(St===Bt||N(St,Bt,y,D,re))){at=!1;break}}return re.delete(u),re.delete(f),at}function ZL(u,f,y,D,N,re,ve){switch(y){case wt:if(u.byteLength!=f.byteLength||u.byteOffset!=f.byteOffset)return!1;u=u.buffer,f=f.buffer;case kt:return!(u.byteLength!=f.byteLength||!re(new ke(u),new ke(f)));case Ae:case Ke:case Jt:return gs(+u,+f);case Ve:return u.name==f.name&&u.message==f.message;case me:case Le:return u==f+"";case yt:var Ee=Vn;case Se:var Pe=D&x;if(Ee||(Ee=oo),u.size!=f.size&&!Pe)return!1;var Ue=ve.get(u);if(Ue)return Ue==f;D|=w,ve.set(u,f);var ze=iw(Ee(u),Ee(f),D,N,re,ve);return ve.delete(u),ze;case it:if(sf)return sf.call(u)==sf.call(f)}return!1}function XL(u,f,y,D,N,re){var ve=y&x,Ee=Ng(u),Pe=Ee.length,Ue=Ng(f),ze=Ue.length;if(Pe!=ze&&!ve)return!1;for(var Ze=Pe;Ze--;){var at=Ee[Ze];if(!(ve?at in f:Be.call(f,at)))return!1}var vt=re.get(u),St=re.get(f);if(vt&&St)return vt==f&&St==u;var Bt=!0;re.set(u,f),re.set(f,u);for(var Dt=ve;++Ze<Pe;){at=Ee[Ze];var jt=u[at],Gt=f[at];if(D)var wi=ve?D(Gt,jt,at,f,u,re):D(jt,Gt,at,u,f,re);if(!(wi===n?jt===Gt||N(jt,Gt,y,D,re):wi)){Bt=!1;break}Dt||(Dt=at=="constructor")}if(Bt&&!Dt){var Nr=u.constructor,Ci=f.constructor;Nr!=Ci&&"constructor"in u&&"constructor"in f&&!(typeof Nr=="function"&&Nr instanceof Nr&&typeof Ci=="function"&&Ci instanceof Ci)&&(Bt=!1)}return re.delete(u),re.delete(f),Bt}function Fa(u){return Gg(cw(u,n,bw),u+"")}function Ng(u){return Ex(u,hr,qg)}function jg(u){return Ex(u,ni,sw)}var Kg=uh?function(u){return uh.get(u)}:ov;function wh(u){for(var f=u.name+"",y=xl[f],D=Be.call(xl,f)?y.length:0;D--;){var N=y[D],re=N.func;if(re==null||re==u)return N.name}return f}function Sl(u){var f=Be.call(X,"placeholder")?X:u;return f.placeholder}function Ct(){var u=X.iteratee||sv;return u=u===sv?Ax:u,arguments.length?u(arguments[0],arguments[1]):u}function Ch(u,f){var y=u.__data__;return s8(f)?y[typeof f=="string"?"string":"hash"]:y.map}function Ug(u){for(var f=hr(u),y=f.length;y--;){var D=f[y],N=u[D];f[y]=[D,N,uw(N)]}return f}function ou(u,f){var y=bg(u,f);return Dx(y)?y:n}function JL(u){var f=Be.call(u,Nn),y=u[Nn];try{u[Nn]=n;var D=!0}catch{}var N=Ie.call(u);return D&&(f?u[Nn]=y:delete u[Nn]),N}var qg=ki?function(u){return u==null?[]:(u=V(u),Sr(ki(u),function(f){return $n.call(u,f)}))}:uv,sw=ki?function(u){for(var f=[];u;)ls(f,qg(u)),u=Tt(u);return f}:uv,Tr=Br;(ps&&Tr(new ps(new ArrayBuffer(1)))!=wt||qs&&Tr(new qs)!=yt||uo&&Tr(uo.resolve())!=Ti||$l&&Tr(new $l)!=Se||nf&&Tr(new nf)!=Xe)&&(Tr=function(u){var f=Br(u),y=f==Mt?u.constructor:n,D=y?uu(y):"";if(D)switch(D){case k9:return wt;case O9:return yt;case I9:return Ti;case L9:return Se;case B9:return Xe}return f});function QL(u,f,y){for(var D=-1,N=y.length;++D<N;){var re=y[D],ve=re.size;switch(re.type){case"drop":u+=ve;break;case"dropRight":f-=ve;break;case"take":f=xn(f,u+ve);break;case"takeRight":u=Zt(u,f-ve);break}}return{start:u,end:f}}function e8(u){var f=u.match(Er);return f?f[1].split(il):[]}function aw(u,f,y){f=fo(f,u);for(var D=-1,N=f.length,re=!1;++D<N;){var ve=Hs(f[D]);if(!(re=u!=null&&y(u,ve)))break;u=u[ve]}return re||++D!=N?re:(N=u==null?0:u.length,!!N&&_h(N)&&Ra(ve,N)&&(Ft(u)||lu(u)))}function t8(u){var f=u.length,y=new u.constructor(f);return f&&typeof u[0]=="string"&&Be.call(u,"index")&&(y.index=u.index,y.input=u.input),y}function ow(u){return typeof u.constructor=="function"&&!df(u)?wl(Tt(u)):{}}function n8(u,f,y){var D=u.constructor;switch(f){case kt:return Lg(u);case Ae:case Ke:return new D(+u);case wt:return VL(u,y);case yn:case Cr:case zt:case _t:case Lt:case Wt:case gr:case Zr:case fi:return Ux(u,y);case yt:return new D;case Jt:case Le:return new D(u);case me:return NL(u);case Se:return new D;case it:return jL(u)}}function r8(u,f){var y=f.length;if(!y)return u;var D=y-1;return f[D]=(y>1?"& ":"")+f[D],f=f.join(y>2?", ":" "),u.replace(rl,`{
|
|
68
|
+
/* [wrapped with `+f+`] */
|
|
69
|
+
`)}function i8(u){return Ft(u)||lu(u)||!!(dr&&u&&u[dr])}function Ra(u,f){var y=typeof u;return f=f??B,!!f&&(y=="number"||y!="symbol"&&ks.test(u))&&u>-1&&u%1==0&&u<f}function Vr(u,f,y){if(!_n(y))return!1;var D=typeof f;return(D=="number"?ti(y)&&Ra(f,y.length):D=="string"&&f in y)?gs(y[f],u):!1}function zg(u,f){if(Ft(u))return!1;var y=typeof u;return y=="number"||y=="symbol"||y=="boolean"||u==null||xi(u)?!0:nl.test(u)||!No.test(u)||f!=null&&u in V(f)}function s8(u){var f=typeof u;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?u!=="__proto__":u===null}function Wg(u){var f=wh(u),y=X[f];if(typeof y!="function"||!(f in qt.prototype))return!1;if(u===y)return!0;var D=Kg(y);return!!D&&u===D[0]}function a8(u){return!!ct&&ct in u}var o8=et?ka:lv;function df(u){var f=u&&u.constructor,y=typeof f=="function"&&f.prototype||Oe;return u===y}function uw(u){return u===u&&!_n(u)}function lw(u,f){return function(y){return y==null?!1:y[u]===f&&(f!==n||u in V(y))}}function u8(u){var f=Th(u,function(D){return y.size===d&&y.clear(),D}),y=f.cache;return f}function l8(u,f){var y=u[1],D=f[1],N=y|D,re=N<(S|E|K),ve=D==K&&y==A||D==K&&y==H&&u[7].length<=f[8]||D==(K|H)&&f[7].length<=f[8]&&y==A;if(!(re||ve))return u;D&S&&(u[2]=f[2],N|=y&S?0:C);var Ee=f[3];if(Ee){var Pe=u[3];u[3]=Pe?zx(Pe,Ee,f[4]):Ee,u[4]=Pe?Jr(u[3],h):f[4]}return Ee=f[5],Ee&&(Pe=u[5],u[5]=Pe?Wx(Pe,Ee,f[6]):Ee,u[6]=Pe?Jr(u[5],h):f[6]),Ee=f[7],Ee&&(u[7]=Ee),D&K&&(u[8]=u[8]==null?f[8]:xn(u[8],f[8])),u[9]==null&&(u[9]=f[9]),u[0]=f[0],u[1]=N,u}function c8(u){var f=[];if(u!=null)for(var y in V(u))f.push(y);return f}function f8(u){return Ie.call(u)}function cw(u,f,y){return f=Zt(f===n?u.length-1:f,0),function(){for(var D=arguments,N=-1,re=Zt(D.length-f,0),ve=Y(re);++N<re;)ve[N]=D[f+N];N=-1;for(var Ee=Y(f+1);++N<f;)Ee[N]=D[N];return Ee[f]=y(ve),Bn(u,this,Ee)}}function fw(u,f){return f.length<2?u:au(u,Li(f,0,-1))}function d8(u,f){for(var y=u.length,D=xn(f.length,y),N=ei(u);D--;){var re=f[D];u[D]=Ra(re,y)?N[re]:n}return u}function Hg(u,f){if(!(f==="constructor"&&typeof u[f]=="function")&&f!="__proto__")return u[f]}var dw=pw(Ox),hf=ft||function(u,f){return Sn.setTimeout(u,f)},Gg=pw(OL);function hw(u,f,y){var D=f+"";return Gg(u,r8(D,h8(e8(D),y)))}function pw(u){var f=0,y=0;return function(){var D=Us(),N=we-(D-y);if(y=D,N>0){if(++f>=$e)return arguments[0]}else f=0;return u.apply(n,arguments)}}function Eh(u,f){var y=-1,D=u.length,N=D-1;for(f=f===n?D:f;++y<f;){var re=_g(y,N),ve=u[re];u[re]=u[y],u[y]=ve}return u.length=f,u}var mw=u8(function(u){var f=[];return u.charCodeAt(0)===46&&f.push(""),u.replace(is,function(y,D,N,re){f.push(N?re.replace(Xr,"$1"):D||y)}),f});function Hs(u){if(typeof u=="string"||xi(u))return u;var f=u+"";return f=="0"&&1/u==-L?"-0":f}function uu(u){if(u!=null){try{return Je.call(u)}catch{}try{return u+""}catch{}}return""}function h8(u,f){return hn(_e,function(y){var D="_."+y[0];f&y[1]&&!Vs(u,D)&&u.push(D)}),u.sort()}function gw(u){if(u instanceof qt)return u.clone();var f=new Oi(u.__wrapped__,u.__chain__);return f.__actions__=ei(u.__actions__),f.__index__=u.__index__,f.__values__=u.__values__,f}function p8(u,f,y){(y?Vr(u,f,y):f===n)?f=1:f=Zt(Ot(f),0);var D=u==null?0:u.length;if(!D||f<1)return[];for(var N=0,re=0,ve=Y(fn(D/f));N<D;)ve[re++]=Li(u,N,N+=f);return ve}function m8(u){for(var f=-1,y=u==null?0:u.length,D=0,N=[];++f<y;){var re=u[f];re&&(N[D++]=re)}return N}function g8(){var u=arguments.length;if(!u)return[];for(var f=Y(u-1),y=arguments[0],D=u;D--;)f[D-1]=arguments[D];return ls(Ft(y)?ei(y):[y],$r(f,1))}var v8=Nt(function(u,f){return zn(u)?of(u,$r(f,1,zn,!0)):[]}),y8=Nt(function(u,f){var y=Bi(f);return zn(y)&&(y=n),zn(u)?of(u,$r(f,1,zn,!0),Ct(y,2)):[]}),b8=Nt(function(u,f){var y=Bi(f);return zn(y)&&(y=n),zn(u)?of(u,$r(f,1,zn,!0),n,y):[]});function $8(u,f,y){var D=u==null?0:u.length;return D?(f=y||f===n?1:Ot(f),Li(u,f<0?0:f,D)):[]}function x8(u,f,y){var D=u==null?0:u.length;return D?(f=y||f===n?1:Ot(f),f=D-f,Li(u,0,f<0?0:f)):[]}function w8(u,f){return u&&u.length?gh(u,Ct(f,3),!0,!0):[]}function C8(u,f){return u&&u.length?gh(u,Ct(f,3),!0):[]}function E8(u,f,y,D){var N=u==null?0:u.length;return N?(y&&typeof y!="number"&&Vr(u,f,y)&&(y=0,D=N),gL(u,f,y,D)):[]}function vw(u,f,y){var D=u==null?0:u.length;if(!D)return-1;var N=y==null?0:Ot(y);return N<0&&(N=Zt(D+N,0)),eu(u,Ct(f,3),N)}function yw(u,f,y){var D=u==null?0:u.length;if(!D)return-1;var N=D-1;return y!==n&&(N=Ot(y),N=y<0?Zt(D+N,0):xn(N,D-1)),eu(u,Ct(f,3),N,!0)}function bw(u){var f=u==null?0:u.length;return f?$r(u,1):[]}function S8(u){var f=u==null?0:u.length;return f?$r(u,L):[]}function D8(u,f){var y=u==null?0:u.length;return y?(f=f===n?1:Ot(f),$r(u,f)):[]}function A8(u){for(var f=-1,y=u==null?0:u.length,D={};++f<y;){var N=u[f];D[N[0]]=N[1]}return D}function $w(u){return u&&u.length?u[0]:n}function T8(u,f,y){var D=u==null?0:u.length;if(!D)return-1;var N=y==null?0:Ot(y);return N<0&&(N=Zt(D+N,0)),Da(u,f,N)}function P8(u){var f=u==null?0:u.length;return f?Li(u,0,-1):[]}var _8=Nt(function(u){var f=cn(u,Og);return f.length&&f[0]===u[0]?Sg(f):[]}),M8=Nt(function(u){var f=Bi(u),y=cn(u,Og);return f===Bi(y)?f=n:y.pop(),y.length&&y[0]===u[0]?Sg(y,Ct(f,2)):[]}),F8=Nt(function(u){var f=Bi(u),y=cn(u,Og);return f=typeof f=="function"?f:n,f&&y.pop(),y.length&&y[0]===u[0]?Sg(y,n,f):[]});function R8(u,f){return u==null?"":fs.call(u,f)}function Bi(u){var f=u==null?0:u.length;return f?u[f-1]:n}function k8(u,f,y){var D=u==null?0:u.length;if(!D)return-1;var N=D;return y!==n&&(N=Ot(y),N=N<0?Zt(D+N,0):xn(N,D-1)),f===f?v(u,f,N):eu(u,Jc,N,!0)}function O8(u,f){return u&&u.length?Mx(u,Ot(f)):n}var I8=Nt(xw);function xw(u,f){return u&&u.length&&f&&f.length?Pg(u,f):u}function L8(u,f,y){return u&&u.length&&f&&f.length?Pg(u,f,Ct(y,2)):u}function B8(u,f,y){return u&&u.length&&f&&f.length?Pg(u,f,n,y):u}var V8=Fa(function(u,f){var y=u==null?0:u.length,D=xg(u,f);return kx(u,cn(f,function(N){return Ra(N,y)?+N:N}).sort(qx)),D});function N8(u,f){var y=[];if(!(u&&u.length))return y;var D=-1,N=[],re=u.length;for(f=Ct(f,3);++D<re;){var ve=u[D];f(ve,D,u)&&(y.push(ve),N.push(D))}return kx(u,N),y}function Yg(u){return u==null?u:bi.call(u)}function j8(u,f,y){var D=u==null?0:u.length;return D?(y&&typeof y!="number"&&Vr(u,f,y)?(f=0,y=D):(f=f==null?0:Ot(f),y=y===n?D:Ot(y)),Li(u,f,y)):[]}function K8(u,f){return mh(u,f)}function U8(u,f,y){return Fg(u,f,Ct(y,2))}function q8(u,f){var y=u==null?0:u.length;if(y){var D=mh(u,f);if(D<y&&gs(u[D],f))return D}return-1}function z8(u,f){return mh(u,f,!0)}function W8(u,f,y){return Fg(u,f,Ct(y,2),!0)}function H8(u,f){var y=u==null?0:u.length;if(y){var D=mh(u,f,!0)-1;if(gs(u[D],f))return D}return-1}function G8(u){return u&&u.length?Ix(u):[]}function Y8(u,f){return u&&u.length?Ix(u,Ct(f,2)):[]}function Z8(u){var f=u==null?0:u.length;return f?Li(u,1,f):[]}function X8(u,f,y){return u&&u.length?(f=y||f===n?1:Ot(f),Li(u,0,f<0?0:f)):[]}function J8(u,f,y){var D=u==null?0:u.length;return D?(f=y||f===n?1:Ot(f),f=D-f,Li(u,f<0?0:f,D)):[]}function Q8(u,f){return u&&u.length?gh(u,Ct(f,3),!1,!0):[]}function eB(u,f){return u&&u.length?gh(u,Ct(f,3)):[]}var tB=Nt(function(u){return co($r(u,1,zn,!0))}),nB=Nt(function(u){var f=Bi(u);return zn(f)&&(f=n),co($r(u,1,zn,!0),Ct(f,2))}),rB=Nt(function(u){var f=Bi(u);return f=typeof f=="function"?f:n,co($r(u,1,zn,!0),n,f)});function iB(u){return u&&u.length?co(u):[]}function sB(u,f){return u&&u.length?co(u,Ct(f,2)):[]}function aB(u,f){return f=typeof f=="function"?f:n,u&&u.length?co(u,n,f):[]}function Zg(u){if(!(u&&u.length))return[];var f=0;return u=Sr(u,function(y){if(zn(y))return f=Zt(y.length,f),!0}),yl(f,function(y){return cn(u,gl(y))})}function ww(u,f){if(!(u&&u.length))return[];var y=Zg(u);return f==null?y:cn(y,function(D){return Bn(f,n,D)})}var oB=Nt(function(u,f){return zn(u)?of(u,f):[]}),uB=Nt(function(u){return kg(Sr(u,zn))}),lB=Nt(function(u){var f=Bi(u);return zn(f)&&(f=n),kg(Sr(u,zn),Ct(f,2))}),cB=Nt(function(u){var f=Bi(u);return f=typeof f=="function"?f:n,kg(Sr(u,zn),n,f)}),fB=Nt(Zg);function dB(u,f){return Nx(u||[],f||[],af)}function hB(u,f){return Nx(u||[],f||[],cf)}var pB=Nt(function(u){var f=u.length,y=f>1?u[f-1]:n;return y=typeof y=="function"?(u.pop(),y):n,ww(u,y)});function Cw(u){var f=X(u);return f.__chain__=!0,f}function mB(u,f){return f(u),u}function Sh(u,f){return f(u)}var gB=Fa(function(u){var f=u.length,y=f?u[0]:0,D=this.__wrapped__,N=function(re){return xg(re,u)};return f>1||this.__actions__.length||!(D instanceof qt)||!Ra(y)?this.thru(N):(D=D.slice(y,+y+(f?1:0)),D.__actions__.push({func:Sh,args:[N],thisArg:n}),new Oi(D,this.__chain__).thru(function(re){return f&&!re.length&&re.push(n),re}))});function vB(){return Cw(this)}function yB(){return new Oi(this.value(),this.__chain__)}function bB(){this.__values__===n&&(this.__values__=Lw(this.value()));var u=this.__index__>=this.__values__.length,f=u?n:this.__values__[this.__index__++];return{done:u,value:f}}function $B(){return this}function xB(u){for(var f,y=this;y instanceof ch;){var D=gw(y);D.__index__=0,D.__values__=n,f?N.__wrapped__=D:f=D;var N=D;y=y.__wrapped__}return N.__wrapped__=u,f}function wB(){var u=this.__wrapped__;if(u instanceof qt){var f=u;return this.__actions__.length&&(f=new qt(this)),f=f.reverse(),f.__actions__.push({func:Sh,args:[Yg],thisArg:n}),new Oi(f,this.__chain__)}return this.thru(Yg)}function CB(){return Vx(this.__wrapped__,this.__actions__)}var EB=vh(function(u,f,y){Be.call(u,y)?++u[y]:_a(u,y,1)});function SB(u,f,y){var D=Ft(u)?Sa:mL;return y&&Vr(u,f,y)&&(f=n),D(u,Ct(f,3))}function DB(u,f){var y=Ft(u)?Sr:wx;return y(u,Ct(f,3))}var AB=Zx(vw),TB=Zx(yw);function PB(u,f){return $r(Dh(u,f),1)}function _B(u,f){return $r(Dh(u,f),L)}function MB(u,f,y){return y=y===n?1:Ot(y),$r(Dh(u,f),y)}function Ew(u,f){var y=Ft(u)?hn:lo;return y(u,Ct(f,3))}function Sw(u,f){var y=Ft(u)?cr:xx;return y(u,Ct(f,3))}var FB=vh(function(u,f,y){Be.call(u,y)?u[y].push(f):_a(u,y,[f])});function RB(u,f,y,D){u=ti(u)?u:Al(u),y=y&&!D?Ot(y):0;var N=u.length;return y<0&&(y=Zt(N+y,0)),Mh(u)?y<=N&&u.indexOf(f,y)>-1:!!N&&Da(u,f,y)>-1}var kB=Nt(function(u,f,y){var D=-1,N=typeof f=="function",re=ti(u)?Y(u.length):[];return lo(u,function(ve){re[++D]=N?Bn(f,ve,y):uf(ve,f,y)}),re}),OB=vh(function(u,f,y){_a(u,y,f)});function Dh(u,f){var y=Ft(u)?cn:Tx;return y(u,Ct(f,3))}function IB(u,f,y,D){return u==null?[]:(Ft(f)||(f=f==null?[]:[f]),y=D?n:y,Ft(y)||(y=y==null?[]:[y]),Fx(u,f,y))}var LB=vh(function(u,f,y){u[y?0:1].push(f)},function(){return[[],[]]});function BB(u,f,y){var D=Ft(u)?ml:Qc,N=arguments.length<3;return D(u,Ct(f,4),y,N,lo)}function VB(u,f,y){var D=Ft(u)?Xo:Qc,N=arguments.length<3;return D(u,Ct(f,4),y,N,xx)}function NB(u,f){var y=Ft(u)?Sr:wx;return y(u,Ph(Ct(f,3)))}function jB(u){var f=Ft(u)?vx:RL;return f(u)}function KB(u,f,y){(y?Vr(u,f,y):f===n)?f=1:f=Ot(f);var D=Ft(u)?cL:kL;return D(u,f)}function UB(u){var f=Ft(u)?fL:IL;return f(u)}function qB(u){if(u==null)return 0;if(ti(u))return Mh(u)?$(u):u.length;var f=Tr(u);return f==yt||f==Se?u.size:Ag(u).length}function zB(u,f,y){var D=Ft(u)?Ns:LL;return y&&Vr(u,f,y)&&(f=n),D(u,Ct(f,3))}var WB=Nt(function(u,f){if(u==null)return[];var y=f.length;return y>1&&Vr(u,f[0],f[1])?f=[]:y>2&&Vr(f[0],f[1],f[2])&&(f=[f[0]]),Fx(u,$r(f,1),[])}),Ah=br||function(){return Sn.Date.now()};function HB(u,f){if(typeof f!="function")throw new ne(a);return u=Ot(u),function(){if(--u<1)return f.apply(this,arguments)}}function Dw(u,f,y){return f=y?n:f,f=u&&f==null?u.length:f,Ma(u,K,n,n,n,n,f)}function Aw(u,f){var y;if(typeof f!="function")throw new ne(a);return u=Ot(u),function(){return--u>0&&(y=f.apply(this,arguments)),u<=1&&(f=n),y}}var Xg=Nt(function(u,f,y){var D=S;if(y.length){var N=Jr(y,Sl(Xg));D|=M}return Ma(u,D,f,y,N)}),Tw=Nt(function(u,f,y){var D=S|E;if(y.length){var N=Jr(y,Sl(Tw));D|=M}return Ma(f,D,u,y,N)});function Pw(u,f,y){f=y?n:f;var D=Ma(u,A,n,n,n,n,n,f);return D.placeholder=Pw.placeholder,D}function _w(u,f,y){f=y?n:f;var D=Ma(u,k,n,n,n,n,n,f);return D.placeholder=_w.placeholder,D}function Mw(u,f,y){var D,N,re,ve,Ee,Pe,Ue=0,ze=!1,Ze=!1,at=!0;if(typeof u!="function")throw new ne(a);f=Vi(f)||0,_n(y)&&(ze=!!y.leading,Ze="maxWait"in y,re=Ze?Zt(Vi(y.maxWait)||0,f):re,at="trailing"in y?!!y.trailing:at);function vt(Wn){var vs=D,Ia=N;return D=N=n,Ue=Wn,ve=u.apply(Ia,vs),ve}function St(Wn){return Ue=Wn,Ee=hf(jt,f),ze?vt(Wn):ve}function Bt(Wn){var vs=Wn-Pe,Ia=Wn-Ue,Zw=f-vs;return Ze?xn(Zw,re-Ia):Zw}function Dt(Wn){var vs=Wn-Pe,Ia=Wn-Ue;return Pe===n||vs>=f||vs<0||Ze&&Ia>=re}function jt(){var Wn=Ah();if(Dt(Wn))return Gt(Wn);Ee=hf(jt,Bt(Wn))}function Gt(Wn){return Ee=n,at&&D?vt(Wn):(D=N=n,ve)}function wi(){Ee!==n&&jx(Ee),Ue=0,D=Pe=N=Ee=n}function Nr(){return Ee===n?ve:Gt(Ah())}function Ci(){var Wn=Ah(),vs=Dt(Wn);if(D=arguments,N=this,Pe=Wn,vs){if(Ee===n)return St(Pe);if(Ze)return jx(Ee),Ee=hf(jt,f),vt(Pe)}return Ee===n&&(Ee=hf(jt,f)),ve}return Ci.cancel=wi,Ci.flush=Nr,Ci}var GB=Nt(function(u,f){return $x(u,1,f)}),YB=Nt(function(u,f,y){return $x(u,Vi(f)||0,y)});function ZB(u){return Ma(u,le)}function Th(u,f){if(typeof u!="function"||f!=null&&typeof f!="function")throw new ne(a);var y=function(){var D=arguments,N=f?f.apply(this,D):D[0],re=y.cache;if(re.has(N))return re.get(N);var ve=u.apply(this,D);return y.cache=re.set(N,ve)||re,ve};return y.cache=new(Th.Cache||Pa),y}Th.Cache=Pa;function Ph(u){if(typeof u!="function")throw new ne(a);return function(){var f=arguments;switch(f.length){case 0:return!u.call(this);case 1:return!u.call(this,f[0]);case 2:return!u.call(this,f[0],f[1]);case 3:return!u.call(this,f[0],f[1],f[2])}return!u.apply(this,f)}}function XB(u){return Aw(2,u)}var JB=BL(function(u,f){f=f.length==1&&Ft(f[0])?cn(f[0],Dr(Ct())):cn($r(f,1),Dr(Ct()));var y=f.length;return Nt(function(D){for(var N=-1,re=xn(D.length,y);++N<re;)D[N]=f[N].call(this,D[N]);return Bn(u,this,D)})}),Jg=Nt(function(u,f){var y=Jr(f,Sl(Jg));return Ma(u,M,n,f,y)}),Fw=Nt(function(u,f){var y=Jr(f,Sl(Fw));return Ma(u,R,n,f,y)}),QB=Fa(function(u,f){return Ma(u,H,n,n,n,f)});function eV(u,f){if(typeof u!="function")throw new ne(a);return f=f===n?f:Ot(f),Nt(u,f)}function tV(u,f){if(typeof u!="function")throw new ne(a);return f=f==null?0:Zt(Ot(f),0),Nt(function(y){var D=y[f],N=ho(y,0,f);return D&&ls(N,D),Bn(u,this,N)})}function nV(u,f,y){var D=!0,N=!0;if(typeof u!="function")throw new ne(a);return _n(y)&&(D="leading"in y?!!y.leading:D,N="trailing"in y?!!y.trailing:N),Mw(u,f,{leading:D,maxWait:f,trailing:N})}function rV(u){return Dw(u,1)}function iV(u,f){return Jg(Ig(f),u)}function sV(){if(!arguments.length)return[];var u=arguments[0];return Ft(u)?u:[u]}function aV(u){return Ii(u,b)}function oV(u,f){return f=typeof f=="function"?f:n,Ii(u,b,f)}function uV(u){return Ii(u,m|b)}function lV(u,f){return f=typeof f=="function"?f:n,Ii(u,m|b,f)}function cV(u,f){return f==null||bx(u,f,hr(f))}function gs(u,f){return u===f||u!==u&&f!==f}var fV=xh(Eg),dV=xh(function(u,f){return u>=f}),lu=Sx(function(){return arguments}())?Sx:function(u){return jn(u)&&Be.call(u,"callee")&&!$n.call(u,"callee")},Ft=Y.isArray,hV=Ea?Dr(Ea):xL;function ti(u){return u!=null&&_h(u.length)&&!ka(u)}function zn(u){return jn(u)&&ti(u)}function pV(u){return u===!0||u===!1||jn(u)&&Br(u)==Ae}var po=cs||lv,mV=ih?Dr(ih):wL;function gV(u){return jn(u)&&u.nodeType===1&&!pf(u)}function vV(u){if(u==null)return!0;if(ti(u)&&(Ft(u)||typeof u=="string"||typeof u.splice=="function"||po(u)||Dl(u)||lu(u)))return!u.length;var f=Tr(u);if(f==yt||f==Se)return!u.size;if(df(u))return!Ag(u).length;for(var y in u)if(Be.call(u,y))return!1;return!0}function yV(u,f){return lf(u,f)}function bV(u,f,y){y=typeof y=="function"?y:n;var D=y?y(u,f):n;return D===n?lf(u,f,n,y):!!D}function Qg(u){if(!jn(u))return!1;var f=Br(u);return f==Ve||f==We||typeof u.message=="string"&&typeof u.name=="string"&&!pf(u)}function $V(u){return typeof u=="number"&&vi(u)}function ka(u){if(!_n(u))return!1;var f=Br(u);return f==Te||f==tt||f==Ge||f==mt}function Rw(u){return typeof u=="number"&&u==Ot(u)}function _h(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=B}function _n(u){var f=typeof u;return u!=null&&(f=="object"||f=="function")}function jn(u){return u!=null&&typeof u=="object"}var kw=sh?Dr(sh):EL;function xV(u,f){return u===f||Dg(u,f,Ug(f))}function wV(u,f,y){return y=typeof y=="function"?y:n,Dg(u,f,Ug(f),y)}function CV(u){return Ow(u)&&u!=+u}function EV(u){if(o8(u))throw new ce(s);return Dx(u)}function SV(u){return u===null}function DV(u){return u==null}function Ow(u){return typeof u=="number"||jn(u)&&Br(u)==Jt}function pf(u){if(!jn(u)||Br(u)!=Mt)return!1;var f=Tt(u);if(f===null)return!0;var y=Be.call(f,"constructor")&&f.constructor;return typeof y=="function"&&y instanceof y&&Je.call(y)==be}var ev=Zc?Dr(Zc):SL;function AV(u){return Rw(u)&&u>=-B&&u<=B}var Iw=ao?Dr(ao):DL;function Mh(u){return typeof u=="string"||!Ft(u)&&jn(u)&&Br(u)==Le}function xi(u){return typeof u=="symbol"||jn(u)&&Br(u)==it}var Dl=us?Dr(us):AL;function TV(u){return u===n}function PV(u){return jn(u)&&Tr(u)==Xe}function _V(u){return jn(u)&&Br(u)==gt}var MV=xh(Tg),FV=xh(function(u,f){return u<=f});function Lw(u){if(!u)return[];if(ti(u))return Mh(u)?P(u):ei(u);if(Jn&&u[Jn])return Ks(u[Jn]());var f=Tr(u),y=f==yt?Vn:f==Se?oo:Al;return y(u)}function Oa(u){if(!u)return u===0?u:0;if(u=Vi(u),u===L||u===-L){var f=u<0?-1:1;return f*he}return u===u?u:0}function Ot(u){var f=Oa(u),y=f%1;return f===f?y?f-y:f:0}function Bw(u){return u?su(Ot(u),0,te):0}function Vi(u){if(typeof u=="number")return u;if(xi(u))return U;if(_n(u)){var f=typeof u.valueOf=="function"?u.valueOf():u;u=_n(f)?f+"":f}if(typeof u!="string")return u===0?u:+u;u=oh(u);var y=hi.test(u);return y||jo.test(u)?sr(u.slice(2),y?2:8):as.test(u)?U:+u}function Vw(u){return Ws(u,ni(u))}function RV(u){return u?su(Ot(u),-B,B):u===0?u:0}function on(u){return u==null?"":$i(u)}var kV=Cl(function(u,f){if(df(f)||ti(f)){Ws(f,hr(f),u);return}for(var y in f)Be.call(f,y)&&af(u,y,f[y])}),Nw=Cl(function(u,f){Ws(f,ni(f),u)}),Fh=Cl(function(u,f,y,D){Ws(f,ni(f),u,D)}),OV=Cl(function(u,f,y,D){Ws(f,hr(f),u,D)}),IV=Fa(xg);function LV(u,f){var y=wl(u);return f==null?y:yx(y,f)}var BV=Nt(function(u,f){u=V(u);var y=-1,D=f.length,N=D>2?f[2]:n;for(N&&Vr(f[0],f[1],N)&&(D=1);++y<D;)for(var re=f[y],ve=ni(re),Ee=-1,Pe=ve.length;++Ee<Pe;){var Ue=ve[Ee],ze=u[Ue];(ze===n||gs(ze,Oe[Ue])&&!Be.call(u,Ue))&&(u[Ue]=re[Ue])}return u}),VV=Nt(function(u){return u.push(n,rw),Bn(jw,n,u)});function NV(u,f){return Xc(u,Ct(f,3),zs)}function jV(u,f){return Xc(u,Ct(f,3),Cg)}function KV(u,f){return u==null?u:wg(u,Ct(f,3),ni)}function UV(u,f){return u==null?u:Cx(u,Ct(f,3),ni)}function qV(u,f){return u&&zs(u,Ct(f,3))}function zV(u,f){return u&&Cg(u,Ct(f,3))}function WV(u){return u==null?[]:hh(u,hr(u))}function HV(u){return u==null?[]:hh(u,ni(u))}function tv(u,f,y){var D=u==null?n:au(u,f);return D===n?y:D}function GV(u,f){return u!=null&&aw(u,f,vL)}function nv(u,f){return u!=null&&aw(u,f,yL)}var YV=Jx(function(u,f,y){f!=null&&typeof f.toString!="function"&&(f=Ie.call(f)),u[f]=y},iv(ri)),ZV=Jx(function(u,f,y){f!=null&&typeof f.toString!="function"&&(f=Ie.call(f)),Be.call(u,f)?u[f].push(y):u[f]=[y]},Ct),XV=Nt(uf);function hr(u){return ti(u)?gx(u):Ag(u)}function ni(u){return ti(u)?gx(u,!0):TL(u)}function JV(u,f){var y={};return f=Ct(f,3),zs(u,function(D,N,re){_a(y,f(D,N,re),D)}),y}function QV(u,f){var y={};return f=Ct(f,3),zs(u,function(D,N,re){_a(y,N,f(D,N,re))}),y}var eN=Cl(function(u,f,y){ph(u,f,y)}),jw=Cl(function(u,f,y,D){ph(u,f,y,D)}),tN=Fa(function(u,f){var y={};if(u==null)return y;var D=!1;f=cn(f,function(re){return re=fo(re,u),D||(D=re.length>1),re}),Ws(u,jg(u),y),D&&(y=Ii(y,m|g|b,YL));for(var N=f.length;N--;)Rg(y,f[N]);return y});function nN(u,f){return Kw(u,Ph(Ct(f)))}var rN=Fa(function(u,f){return u==null?{}:_L(u,f)});function Kw(u,f){if(u==null)return{};var y=cn(jg(u),function(D){return[D]});return f=Ct(f),Rx(u,y,function(D,N){return f(D,N[0])})}function iN(u,f,y){f=fo(f,u);var D=-1,N=f.length;for(N||(N=1,u=n);++D<N;){var re=u==null?n:u[Hs(f[D])];re===n&&(D=N,re=y),u=ka(re)?re.call(u):re}return u}function sN(u,f,y){return u==null?u:cf(u,f,y)}function aN(u,f,y,D){return D=typeof D=="function"?D:n,u==null?u:cf(u,f,y,D)}var Uw=tw(hr),qw=tw(ni);function oN(u,f,y){var D=Ft(u),N=D||po(u)||Dl(u);if(f=Ct(f,4),y==null){var re=u&&u.constructor;N?y=D?new re:[]:_n(u)?y=ka(re)?wl(Tt(u)):{}:y={}}return(N?hn:zs)(u,function(ve,Ee,Pe){return f(y,ve,Ee,Pe)}),y}function uN(u,f){return u==null?!0:Rg(u,f)}function lN(u,f,y){return u==null?u:Bx(u,f,Ig(y))}function cN(u,f,y,D){return D=typeof D=="function"?D:n,u==null?u:Bx(u,f,Ig(y),D)}function Al(u){return u==null?[]:ef(u,hr(u))}function fN(u){return u==null?[]:ef(u,ni(u))}function dN(u,f,y){return y===n&&(y=f,f=n),y!==n&&(y=Vi(y),y=y===y?y:0),f!==n&&(f=Vi(f),f=f===f?f:0),su(Vi(u),f,y)}function hN(u,f,y){return f=Oa(f),y===n?(y=f,f=0):y=Oa(y),u=Vi(u),bL(u,f,y)}function pN(u,f,y){if(y&&typeof y!="boolean"&&Vr(u,f,y)&&(f=y=n),y===n&&(typeof f=="boolean"?(y=f,f=n):typeof u=="boolean"&&(y=u,u=n)),u===n&&f===n?(u=0,f=1):(u=Oa(u),f===n?(f=u,u=0):f=Oa(f)),u>f){var D=u;u=f,f=D}if(y||u%1||f%1){var N=hs();return xn(u+N*(f-u+bn("1e-"+((N+"").length-1))),f)}return _g(u,f)}var mN=El(function(u,f,y){return f=f.toLowerCase(),u+(y?zw(f):f)});function zw(u){return rv(on(u).toLowerCase())}function Ww(u){return u=on(u),u&&u.replace(pi,yg).replace(xa,"")}function gN(u,f,y){u=on(u),f=$i(f);var D=u.length;y=y===n?D:su(Ot(y),0,D);var N=y;return y-=f.length,y>=0&&u.slice(y,N)==f}function vN(u){return u=on(u),u&&Nc.test(u)?u.replace(di,Aa):u}function yN(u){return u=on(u),u&&bt.test(u)?u.replace(ss,"\\$&"):u}var bN=El(function(u,f,y){return u+(y?"-":"")+f.toLowerCase()}),$N=El(function(u,f,y){return u+(y?" ":"")+f.toLowerCase()}),xN=Yx("toLowerCase");function wN(u,f,y){u=on(u),f=Ot(f);var D=f?$(u):0;if(!f||D>=f)return u;var N=(f-D)/2;return $h(Qr(N),y)+u+$h(fn(N),y)}function CN(u,f,y){u=on(u),f=Ot(f);var D=f?$(u):0;return f&&D<f?u+$h(f-D,y):u}function EN(u,f,y){u=on(u),f=Ot(f);var D=f?$(u):0;return f&&D<f?$h(f-D,y)+u:u}function SN(u,f,y){return y||f==null?f=0:f&&(f=+f),yi(on(u).replace(En,""),f||0)}function DN(u,f,y){return(y?Vr(u,f,y):f===n)?f=1:f=Ot(f),Mg(on(u),f)}function AN(){var u=arguments,f=on(u[0]);return u.length<3?f:f.replace(u[1],u[2])}var TN=El(function(u,f,y){return u+(y?"_":"")+f.toLowerCase()});function PN(u,f,y){return y&&typeof y!="number"&&Vr(u,f,y)&&(f=y=n),y=y===n?te:y>>>0,y?(u=on(u),u&&(typeof f=="string"||f!=null&&!ev(f))&&(f=$i(f),!f&&Ar(u))?ho(P(u),0,y):u.split(f,y)):[]}var _N=El(function(u,f,y){return u+(y?" ":"")+rv(f)});function MN(u,f,y){return u=on(u),y=y==null?0:su(Ot(y),0,u.length),f=$i(f),u.slice(y,y+f.length)==f}function FN(u,f,y){var D=X.templateSettings;y&&Vr(u,f,y)&&(f=n),u=on(u),f=Fh({},f,D,nw);var N=Fh({},f.imports,D.imports,nw),re=hr(N),ve=ef(N,re),Ee,Pe,Ue=0,ze=f.interpolate||Ln,Ze="__p += '",at=j((f.escape||Ln).source+"|"+ze.source+"|"+(ze===tl?st:Ln).source+"|"+(f.evaluate||Ln).source+"|$","g"),vt="//# sourceURL="+(Be.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ca+"]")+`
|
|
70
|
+
`;u.replace(at,function(Dt,jt,Gt,wi,Nr,Ci){return Gt||(Gt=wi),Ze+=u.slice(Ue,Ci).replace(no,gi),jt&&(Ee=!0,Ze+=`' +
|
|
71
|
+
__e(`+jt+`) +
|
|
72
|
+
'`),Nr&&(Pe=!0,Ze+=`';
|
|
73
|
+
`+Nr+`;
|
|
74
|
+
__p += '`),Gt&&(Ze+=`' +
|
|
75
|
+
((__t = (`+Gt+`)) == null ? '' : __t) +
|
|
76
|
+
'`),Ue=Ci+Dt.length,Dt}),Ze+=`';
|
|
77
|
+
`;var St=Be.call(f,"variable")&&f.variable;if(!St)Ze=`with (obj) {
|
|
78
|
+
`+Ze+`
|
|
79
|
+
}
|
|
80
|
+
`;else if(Kc.test(St))throw new ce(o);Ze=(Pe?Ze.replace(kr,""):Ze).replace(Rs,"$1").replace(Vo,"$1;"),Ze="function("+(St||"obj")+`) {
|
|
81
|
+
`+(St?"":`obj || (obj = {});
|
|
82
|
+
`)+"var __t, __p = ''"+(Ee?", __e = _.escape":"")+(Pe?`, __j = Array.prototype.join;
|
|
83
|
+
function print() { __p += __j.call(arguments, '') }
|
|
84
|
+
`:`;
|
|
85
|
+
`)+Ze+`return __p
|
|
86
|
+
}`;var Bt=Gw(function(){return z(re,vt+"return "+Ze).apply(n,ve)});if(Bt.source=Ze,Qg(Bt))throw Bt;return Bt}function RN(u){return on(u).toLowerCase()}function kN(u){return on(u).toUpperCase()}function ON(u,f,y){if(u=on(u),u&&(y||f===n))return oh(u);if(!u||!(f=$i(f)))return u;var D=P(u),N=P(f),re=bl(D,N),ve=fr(D,N)+1;return ho(D,re,ve).join("")}function IN(u,f,y){if(u=on(u),u&&(y||f===n))return u.slice(0,_(u)+1);if(!u||!(f=$i(f)))return u;var D=P(u),N=fr(D,P(f))+1;return ho(D,0,N).join("")}function LN(u,f,y){if(u=on(u),u&&(y||f===n))return u.replace(En,"");if(!u||!(f=$i(f)))return u;var D=P(u),N=bl(D,P(f));return ho(D,N).join("")}function BN(u,f){var y=ae,D=I;if(_n(f)){var N="separator"in f?f.separator:N;y="length"in f?Ot(f.length):y,D="omission"in f?$i(f.omission):D}u=on(u);var re=u.length;if(Ar(u)){var ve=P(u);re=ve.length}if(y>=re)return u;var Ee=y-$(D);if(Ee<1)return D;var Pe=ve?ho(ve,0,Ee).join(""):u.slice(0,Ee);if(N===n)return Pe+D;if(ve&&(Ee+=Pe.length-Ee),ev(N)){if(u.slice(Ee).search(N)){var Ue,ze=Pe;for(N.global||(N=j(N.source,on(dn.exec(N))+"g")),N.lastIndex=0;Ue=N.exec(ze);)var Ze=Ue.index;Pe=Pe.slice(0,Ze===n?Ee:Ze)}}else if(u.indexOf($i(N),Ee)!=Ee){var at=Pe.lastIndexOf(N);at>-1&&(Pe=Pe.slice(0,at))}return Pe+D}function VN(u){return u=on(u),u&&ha.test(u)?u.replace($t,q):u}var NN=El(function(u,f,y){return u+(y?" ":"")+f.toUpperCase()}),rv=Yx("toUpperCase");function Hw(u,f,y){return u=on(u),f=y?n:f,f===n?tf(u)?ye(u):mg(u):u.match(f)||[]}var Gw=Nt(function(u,f){try{return Bn(u,n,f)}catch(y){return Qg(y)?y:new ce(y)}}),jN=Fa(function(u,f){return hn(f,function(y){y=Hs(y),_a(u,y,Xg(u[y],u))}),u});function KN(u){var f=u==null?0:u.length,y=Ct();return u=f?cn(u,function(D){if(typeof D[1]!="function")throw new ne(a);return[y(D[0]),D[1]]}):[],Nt(function(D){for(var N=-1;++N<f;){var re=u[N];if(Bn(re[0],this,D))return Bn(re[1],this,D)}})}function UN(u){return pL(Ii(u,m))}function iv(u){return function(){return u}}function qN(u,f){return u==null||u!==u?f:u}var zN=Xx(),WN=Xx(!0);function ri(u){return u}function sv(u){return Ax(typeof u=="function"?u:Ii(u,m))}function HN(u){return Px(Ii(u,m))}function GN(u,f){return _x(u,Ii(f,m))}var YN=Nt(function(u,f){return function(y){return uf(y,u,f)}}),ZN=Nt(function(u,f){return function(y){return uf(u,y,f)}});function av(u,f,y){var D=hr(f),N=hh(f,D);y==null&&!(_n(f)&&(N.length||!D.length))&&(y=f,f=u,u=this,N=hh(f,hr(f)));var re=!(_n(y)&&"chain"in y)||!!y.chain,ve=ka(u);return hn(N,function(Ee){var Pe=f[Ee];u[Ee]=Pe,ve&&(u.prototype[Ee]=function(){var Ue=this.__chain__;if(re||Ue){var ze=u(this.__wrapped__),Ze=ze.__actions__=ei(this.__actions__);return Ze.push({func:Pe,args:arguments,thisArg:u}),ze.__chain__=Ue,ze}return Pe.apply(u,ls([this.value()],arguments))})}),u}function XN(){return Sn._===this&&(Sn._=ue),this}function ov(){}function JN(u){return u=Ot(u),Nt(function(f){return Mx(f,u)})}var QN=Bg(cn),ej=Bg(Sa),tj=Bg(Ns);function Yw(u){return zg(u)?gl(Hs(u)):ML(u)}function nj(u){return function(f){return u==null?n:au(u,f)}}var rj=Qx(),ij=Qx(!0);function uv(){return[]}function lv(){return!1}function sj(){return{}}function aj(){return""}function oj(){return!0}function uj(u,f){if(u=Ot(u),u<1||u>B)return[];var y=te,D=xn(u,te);f=Ct(f),u-=te;for(var N=yl(D,f);++y<u;)f(y);return N}function lj(u){return Ft(u)?cn(u,Hs):xi(u)?[u]:ei(mw(on(u)))}function cj(u){var f=++ot;return on(u)+f}var fj=bh(function(u,f){return u+f},0),dj=Vg("ceil"),hj=bh(function(u,f){return u/f},1),pj=Vg("floor");function mj(u){return u&&u.length?dh(u,ri,Eg):n}function gj(u,f){return u&&u.length?dh(u,Ct(f,2),Eg):n}function vj(u){return tu(u,ri)}function yj(u,f){return tu(u,Ct(f,2))}function bj(u){return u&&u.length?dh(u,ri,Tg):n}function $j(u,f){return u&&u.length?dh(u,Ct(f,2),Tg):n}var xj=bh(function(u,f){return u*f},1),wj=Vg("round"),Cj=bh(function(u,f){return u-f},0);function Ej(u){return u&&u.length?js(u,ri):0}function Sj(u,f){return u&&u.length?js(u,Ct(f,2)):0}return X.after=HB,X.ary=Dw,X.assign=kV,X.assignIn=Nw,X.assignInWith=Fh,X.assignWith=OV,X.at=IV,X.before=Aw,X.bind=Xg,X.bindAll=jN,X.bindKey=Tw,X.castArray=sV,X.chain=Cw,X.chunk=p8,X.compact=m8,X.concat=g8,X.cond=KN,X.conforms=UN,X.constant=iv,X.countBy=EB,X.create=LV,X.curry=Pw,X.curryRight=_w,X.debounce=Mw,X.defaults=BV,X.defaultsDeep=VV,X.defer=GB,X.delay=YB,X.difference=v8,X.differenceBy=y8,X.differenceWith=b8,X.drop=$8,X.dropRight=x8,X.dropRightWhile=w8,X.dropWhile=C8,X.fill=E8,X.filter=DB,X.flatMap=PB,X.flatMapDeep=_B,X.flatMapDepth=MB,X.flatten=bw,X.flattenDeep=S8,X.flattenDepth=D8,X.flip=ZB,X.flow=zN,X.flowRight=WN,X.fromPairs=A8,X.functions=WV,X.functionsIn=HV,X.groupBy=FB,X.initial=P8,X.intersection=_8,X.intersectionBy=M8,X.intersectionWith=F8,X.invert=YV,X.invertBy=ZV,X.invokeMap=kB,X.iteratee=sv,X.keyBy=OB,X.keys=hr,X.keysIn=ni,X.map=Dh,X.mapKeys=JV,X.mapValues=QV,X.matches=HN,X.matchesProperty=GN,X.memoize=Th,X.merge=eN,X.mergeWith=jw,X.method=YN,X.methodOf=ZN,X.mixin=av,X.negate=Ph,X.nthArg=JN,X.omit=tN,X.omitBy=nN,X.once=XB,X.orderBy=IB,X.over=QN,X.overArgs=JB,X.overEvery=ej,X.overSome=tj,X.partial=Jg,X.partialRight=Fw,X.partition=LB,X.pick=rN,X.pickBy=Kw,X.property=Yw,X.propertyOf=nj,X.pull=I8,X.pullAll=xw,X.pullAllBy=L8,X.pullAllWith=B8,X.pullAt=V8,X.range=rj,X.rangeRight=ij,X.rearg=QB,X.reject=NB,X.remove=N8,X.rest=eV,X.reverse=Yg,X.sampleSize=KB,X.set=sN,X.setWith=aN,X.shuffle=UB,X.slice=j8,X.sortBy=WB,X.sortedUniq=G8,X.sortedUniqBy=Y8,X.split=PN,X.spread=tV,X.tail=Z8,X.take=X8,X.takeRight=J8,X.takeRightWhile=Q8,X.takeWhile=eB,X.tap=mB,X.throttle=nV,X.thru=Sh,X.toArray=Lw,X.toPairs=Uw,X.toPairsIn=qw,X.toPath=lj,X.toPlainObject=Vw,X.transform=oN,X.unary=rV,X.union=tB,X.unionBy=nB,X.unionWith=rB,X.uniq=iB,X.uniqBy=sB,X.uniqWith=aB,X.unset=uN,X.unzip=Zg,X.unzipWith=ww,X.update=lN,X.updateWith=cN,X.values=Al,X.valuesIn=fN,X.without=oB,X.words=Hw,X.wrap=iV,X.xor=uB,X.xorBy=lB,X.xorWith=cB,X.zip=fB,X.zipObject=dB,X.zipObjectDeep=hB,X.zipWith=pB,X.entries=Uw,X.entriesIn=qw,X.extend=Nw,X.extendWith=Fh,av(X,X),X.add=fj,X.attempt=Gw,X.camelCase=mN,X.capitalize=zw,X.ceil=dj,X.clamp=dN,X.clone=aV,X.cloneDeep=uV,X.cloneDeepWith=lV,X.cloneWith=oV,X.conformsTo=cV,X.deburr=Ww,X.defaultTo=qN,X.divide=hj,X.endsWith=gN,X.eq=gs,X.escape=vN,X.escapeRegExp=yN,X.every=SB,X.find=AB,X.findIndex=vw,X.findKey=NV,X.findLast=TB,X.findLastIndex=yw,X.findLastKey=jV,X.floor=pj,X.forEach=Ew,X.forEachRight=Sw,X.forIn=KV,X.forInRight=UV,X.forOwn=qV,X.forOwnRight=zV,X.get=tv,X.gt=fV,X.gte=dV,X.has=GV,X.hasIn=nv,X.head=$w,X.identity=ri,X.includes=RB,X.indexOf=T8,X.inRange=hN,X.invoke=XV,X.isArguments=lu,X.isArray=Ft,X.isArrayBuffer=hV,X.isArrayLike=ti,X.isArrayLikeObject=zn,X.isBoolean=pV,X.isBuffer=po,X.isDate=mV,X.isElement=gV,X.isEmpty=vV,X.isEqual=yV,X.isEqualWith=bV,X.isError=Qg,X.isFinite=$V,X.isFunction=ka,X.isInteger=Rw,X.isLength=_h,X.isMap=kw,X.isMatch=xV,X.isMatchWith=wV,X.isNaN=CV,X.isNative=EV,X.isNil=DV,X.isNull=SV,X.isNumber=Ow,X.isObject=_n,X.isObjectLike=jn,X.isPlainObject=pf,X.isRegExp=ev,X.isSafeInteger=AV,X.isSet=Iw,X.isString=Mh,X.isSymbol=xi,X.isTypedArray=Dl,X.isUndefined=TV,X.isWeakMap=PV,X.isWeakSet=_V,X.join=R8,X.kebabCase=bN,X.last=Bi,X.lastIndexOf=k8,X.lowerCase=$N,X.lowerFirst=xN,X.lt=MV,X.lte=FV,X.max=mj,X.maxBy=gj,X.mean=vj,X.meanBy=yj,X.min=bj,X.minBy=$j,X.stubArray=uv,X.stubFalse=lv,X.stubObject=sj,X.stubString=aj,X.stubTrue=oj,X.multiply=xj,X.nth=O8,X.noConflict=XN,X.noop=ov,X.now=Ah,X.pad=wN,X.padEnd=CN,X.padStart=EN,X.parseInt=SN,X.random=pN,X.reduce=BB,X.reduceRight=VB,X.repeat=DN,X.replace=AN,X.result=iN,X.round=wj,X.runInContext=F,X.sample=jB,X.size=qB,X.snakeCase=TN,X.some=zB,X.sortedIndex=K8,X.sortedIndexBy=U8,X.sortedIndexOf=q8,X.sortedLastIndex=z8,X.sortedLastIndexBy=W8,X.sortedLastIndexOf=H8,X.startCase=_N,X.startsWith=MN,X.subtract=Cj,X.sum=Ej,X.sumBy=Sj,X.template=FN,X.times=uj,X.toFinite=Oa,X.toInteger=Ot,X.toLength=Bw,X.toLower=RN,X.toNumber=Vi,X.toSafeInteger=RV,X.toString=on,X.toUpper=kN,X.trim=ON,X.trimEnd=IN,X.trimStart=LN,X.truncate=BN,X.unescape=VN,X.uniqueId=cj,X.upperCase=NN,X.upperFirst=rv,X.each=Ew,X.eachRight=Sw,X.first=$w,av(X,function(){var u={};return zs(X,function(f,y){Be.call(X.prototype,y)||(u[y]=f)}),u}(),{chain:!1}),X.VERSION=r,hn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){X[u].placeholder=X}),hn(["drop","take"],function(u,f){qt.prototype[u]=function(y){y=y===n?1:Zt(Ot(y),0);var D=this.__filtered__&&!f?new qt(this):this.clone();return D.__filtered__?D.__takeCount__=xn(y,D.__takeCount__):D.__views__.push({size:xn(y,te),type:u+(D.__dir__<0?"Right":"")}),D},qt.prototype[u+"Right"]=function(y){return this.reverse()[u](y).reverse()}}),hn(["filter","map","takeWhile"],function(u,f){var y=f+1,D=y==W||y==O;qt.prototype[u]=function(N){var re=this.clone();return re.__iteratees__.push({iteratee:Ct(N,3),type:y}),re.__filtered__=re.__filtered__||D,re}}),hn(["head","last"],function(u,f){var y="take"+(f?"Right":"");qt.prototype[u]=function(){return this[y](1).value()[0]}}),hn(["initial","tail"],function(u,f){var y="drop"+(f?"":"Right");qt.prototype[u]=function(){return this.__filtered__?new qt(this):this[y](1)}}),qt.prototype.compact=function(){return this.filter(ri)},qt.prototype.find=function(u){return this.filter(u).head()},qt.prototype.findLast=function(u){return this.reverse().find(u)},qt.prototype.invokeMap=Nt(function(u,f){return typeof u=="function"?new qt(this):this.map(function(y){return uf(y,u,f)})}),qt.prototype.reject=function(u){return this.filter(Ph(Ct(u)))},qt.prototype.slice=function(u,f){u=Ot(u);var y=this;return y.__filtered__&&(u>0||f<0)?new qt(y):(u<0?y=y.takeRight(-u):u&&(y=y.drop(u)),f!==n&&(f=Ot(f),y=f<0?y.dropRight(-f):y.take(f-u)),y)},qt.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},qt.prototype.toArray=function(){return this.take(te)},zs(qt.prototype,function(u,f){var y=/^(?:filter|find|map|reject)|While$/.test(f),D=/^(?:head|last)$/.test(f),N=X[D?"take"+(f=="last"?"Right":""):f],re=D||/^find/.test(f);N&&(X.prototype[f]=function(){var ve=this.__wrapped__,Ee=D?[1]:arguments,Pe=ve instanceof qt,Ue=Ee[0],ze=Pe||Ft(ve),Ze=function(jt){var Gt=N.apply(X,ls([jt],Ee));return D&&at?Gt[0]:Gt};ze&&y&&typeof Ue=="function"&&Ue.length!=1&&(Pe=ze=!1);var at=this.__chain__,vt=!!this.__actions__.length,St=re&&!at,Bt=Pe&&!vt;if(!re&&ze){ve=Bt?ve:new qt(this);var Dt=u.apply(ve,Ee);return Dt.__actions__.push({func:Sh,args:[Ze],thisArg:n}),new Oi(Dt,at)}return St&&Bt?u.apply(this,Ee):(Dt=this.thru(Ze),St?D?Dt.value()[0]:Dt.value():Dt)})}),hn(["pop","push","shift","sort","splice","unshift"],function(u){var f=oe[u],y=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",D=/^(?:pop|shift)$/.test(u);X.prototype[u]=function(){var N=arguments;if(D&&!this.__chain__){var re=this.value();return f.apply(Ft(re)?re:[],N)}return this[y](function(ve){return f.apply(Ft(ve)?ve:[],N)})}}),zs(qt.prototype,function(u,f){var y=X[f];if(y){var D=y.name+"";Be.call(xl,D)||(xl[D]=[]),xl[D].push({name:f,func:y})}}),xl[yh(n,E).name]=[{name:"wrapper",func:n}],qt.prototype.clone=V9,qt.prototype.reverse=N9,qt.prototype.value=j9,X.prototype.at=gB,X.prototype.chain=vB,X.prototype.commit=yB,X.prototype.next=bB,X.prototype.plant=xB,X.prototype.reverse=wB,X.prototype.toJSON=X.prototype.valueOf=X.prototype.value=CB,X.prototype.first=X.prototype.head,Jn&&(X.prototype[Jn]=$B),X},Re=Ce();Fi?((Fi.exports=Re)._=Re,Mi._=Re):Sn._=Re}).call(QU)}(kf,kf.exports)),kf.exports}var iP=eq();const tq=ci(iP);var Ad=e=>e.type==="checkbox",bu=e=>e instanceof Date,Kr=e=>e==null;const sP=e=>typeof e=="object";var Yn=e=>!Kr(e)&&!Array.isArray(e)&&sP(e)&&!bu(e),aP=e=>Yn(e)&&e.target?Ad(e.target)?e.target.checked:e.target.value:e,nq=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,oP=(e,t)=>e.has(nq(t)),rq=e=>{const t=e.constructor&&e.constructor.prototype;return Yn(t)&&t.hasOwnProperty("isPrototypeOf")},Y4=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Mn(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Y4&&(e instanceof Blob||r))&&(n||Yn(e)))if(t=n?[]:{},!n&&!rq(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=Mn(e[i]));else return e;return t}var Td=e=>Array.isArray(e)?e.filter(Boolean):[],Cn=e=>e===void 0,rt=(e,t,n)=>{if(!t||!Yn(e))return n;const r=Td(t.split(/[,[\].]+?/)).reduce((i,s)=>Kr(i)?i:i[s],e);return Cn(r)||r===e?Cn(e[t])?n:e[t]:r},Si=e=>typeof e=="boolean",Z4=e=>/^\w*$/.test(e),uP=e=>Td(e.replace(/["|']|\]/g,"").split(/\.|\[/)),en=(e,t,n)=>{let r=-1;const i=Z4(t)?[t]:uP(t),s=i.length,a=s-1;for(;++r<s;){const o=i[r];let l=n;if(r!==a){const d=e[o];l=Yn(d)||Array.isArray(d)?d:isNaN(+i[r+1])?{}:[]}if(o==="__proto__"||o==="constructor"||o==="prototype")return;e[o]=l,e=e[o]}};const Lp={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Gi={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},La={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},lP=T.createContext(null),Pd=()=>T.useContext(lP),iq=e=>{const{children:t,...n}=e;return T.createElement(lP.Provider,{value:n},t)};var cP=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(i,s,{get:()=>{const a=s;return t._proxyFormState[a]!==Gi.all&&(t._proxyFormState[a]=!r||Gi.all),n&&(n[a]=!0),e[a]}});return i};const X4=typeof window<"u"?He.useLayoutEffect:He.useEffect;function sq(e){const t=Pd(),{control:n=t.control,disabled:r,name:i,exact:s}=e||{},[a,o]=T.useState(n._formState),l=T.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return X4(()=>n._subscribe({name:i,formState:l.current,exact:s,callback:d=>{!r&&o({...n._formState,...d})}}),[i,r,s]),T.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),T.useMemo(()=>cP(a,n,l.current,!1),[a,n])}var Js=e=>typeof e=="string",fP=(e,t,n,r,i)=>Js(e)?(r&&t.watch.add(e),rt(n,e,i)):Array.isArray(e)?e.map(s=>(r&&t.watch.add(s),rt(n,s))):(r&&(t.watchAll=!0),n);function dP(e){const t=Pd(),{control:n=t.control,name:r,defaultValue:i,disabled:s,exact:a}=e||{},o=T.useRef(i),[l,d]=T.useState(n._getWatch(r,o.current));return X4(()=>n._subscribe({name:r,formState:{values:!0},exact:a,callback:h=>!s&&d(fP(r,n._names,h.values||n._formValues,!1,o.current))}),[r,n,s,a]),T.useEffect(()=>n._removeUnmounted()),l}function hP(e){const t=Pd(),{name:n,disabled:r,control:i=t.control,shouldUnregister:s}=e,a=oP(i._names.array,n),o=dP({control:i,name:n,defaultValue:rt(i._formValues,n,rt(i._defaultValues,n,e.defaultValue)),exact:!0}),l=sq({control:i,name:n,exact:!0}),d=T.useRef(e),h=T.useRef(i.register(n,{...e.rules,value:o,...Si(e.disabled)?{disabled:e.disabled}:{}})),m=T.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!rt(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!rt(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!rt(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!rt(l.validatingFields,n)},error:{enumerable:!0,get:()=>rt(l.errors,n)}}),[l,n]),g=T.useCallback(S=>h.current.onChange({target:{value:aP(S),name:n},type:Lp.CHANGE}),[n]),b=T.useCallback(()=>h.current.onBlur({target:{value:rt(i._formValues,n),name:n},type:Lp.BLUR}),[n,i._formValues]),x=T.useCallback(S=>{const E=rt(i._fields,n);E&&S&&(E._f.ref={focus:()=>S.focus&&S.focus(),select:()=>S.select&&S.select(),setCustomValidity:C=>S.setCustomValidity(C),reportValidity:()=>S.reportValidity()})},[i._fields,n]),w=T.useMemo(()=>({name:n,value:o,...Si(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:g,onBlur:b,ref:x}),[n,r,l.disabled,g,b,x,o]);return T.useEffect(()=>{const S=i._options.shouldUnregister||s;i.register(n,{...d.current.rules,...Si(d.current.disabled)?{disabled:d.current.disabled}:{}});const E=(C,A)=>{const k=rt(i._fields,C);k&&k._f&&(k._f.mount=A)};if(E(n,!0),S){const C=Mn(rt(i._options.defaultValues,n));en(i._defaultValues,n,C),Cn(rt(i._formValues,n))&&en(i._formValues,n,C)}return!a&&i.register(n),()=>{(a?S&&!i._state.action:S)?i.unregister(n):E(n,!1)}},[n,i,a,s]),T.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),T.useMemo(()=>({field:w,formState:l,fieldState:m}),[w,l,m])}const aq=e=>e.render(hP(e));var pP=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},ai=e=>Array.isArray(e)?e:[e],SC=()=>{let e=[];return{get observers(){return e},next:i=>{for(const s of e)s.next&&s.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(s=>s!==i)}}),unsubscribe:()=>{e=[]}}},fb=e=>Kr(e)||!sP(e);function wo(e,t){if(fb(e)||fb(t))return e===t;if(bu(e)&&bu(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const s=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const a=t[i];if(bu(s)&&bu(a)||Yn(s)&&Yn(a)||Array.isArray(s)&&Array.isArray(a)?!wo(s,a):s!==a)return!1}}return!0}var jr=e=>Yn(e)&&!Object.keys(e).length,J4=e=>e.type==="file",ws=e=>typeof e=="function",Bp=e=>{if(!Y4)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},mP=e=>e.type==="select-multiple",Q4=e=>e.type==="radio",oq=e=>Q4(e)||Ad(e),$v=e=>Bp(e)&&e.isConnected;function uq(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Cn(e)?r++:e[t[r++]];return e}function lq(e){for(const t in e)if(e.hasOwnProperty(t)&&!Cn(e[t]))return!1;return!0}function Qn(e,t){const n=Array.isArray(t)?t:Z4(t)?[t]:uP(t),r=n.length===1?e:uq(e,n),i=n.length-1,s=n[i];return r&&delete r[s],i!==0&&(Yn(r)&&jr(r)||Array.isArray(r)&&lq(r))&&Qn(e,n.slice(0,-1)),e}var gP=e=>{for(const t in e)if(ws(e[t]))return!0;return!1};function Vp(e,t={}){const n=Array.isArray(e);if(Yn(e)||n)for(const r in e)Array.isArray(e[r])||Yn(e[r])&&!gP(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Vp(e[r],t[r])):Kr(e[r])||(t[r]=!0);return t}function vP(e,t,n){const r=Array.isArray(e);if(Yn(e)||r)for(const i in e)Array.isArray(e[i])||Yn(e[i])&&!gP(e[i])?Cn(t)||fb(n[i])?n[i]=Array.isArray(e[i])?Vp(e[i],[]):{...Vp(e[i])}:vP(e[i],Kr(t)?{}:t[i],n[i]):n[i]=!wo(e[i],t[i]);return n}var gf=(e,t)=>vP(e,t,Vp(t));const DC={value:!1,isValid:!1},AC={value:!0,isValid:!0};var yP=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Cn(e[0].attributes.value)?Cn(e[0].value)||e[0].value===""?AC:{value:e[0].value,isValid:!0}:AC:DC}return DC},bP=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Cn(e)?e:t?e===""?NaN:e&&+e:n&&Js(e)?new Date(e):r?r(e):e;const TC={isValid:!1,value:null};var $P=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,TC):TC;function PC(e){const t=e.ref;return J4(t)?t.files:Q4(t)?$P(e.refs).value:mP(t)?[...t.selectedOptions].map(({value:n})=>n):Ad(t)?yP(e.refs).value:bP(Cn(t.value)?e.ref.value:t.value,e)}var cq=(e,t,n,r)=>{const i={};for(const s of e){const a=rt(t,s);a&&en(i,s,a._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Np=e=>e instanceof RegExp,vf=e=>Cn(e)?e:Np(e)?e.source:Yn(e)?Np(e.value)?e.value.source:e.value:e,Ol=e=>({isOnSubmit:!e||e===Gi.onSubmit,isOnBlur:e===Gi.onBlur,isOnChange:e===Gi.onChange,isOnAll:e===Gi.all,isOnTouch:e===Gi.onTouched});const _C="AsyncFunction";var fq=e=>!!e&&!!e.validate&&!!(ws(e.validate)&&e.validate.constructor.name===_C||Yn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===_C)),dq=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),db=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Gl=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const s=rt(e,i);if(s){const{_f:a,...o}=s;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],i)&&!r)return!0;if(a.ref&&t(a.ref,a.name)&&!r)return!0;if(Gl(o,t))break}else if(Yn(o)&&Gl(o,t))break}}};function MC(e,t,n){const r=rt(e,n);if(r||Z4(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const s=i.join("."),a=rt(t,s),o=rt(e,s);if(a&&!Array.isArray(a)&&n!==s)return{name:n};if(o&&o.type)return{name:s,error:o};if(o&&o.root&&o.root.type)return{name:`${s}.root`,error:o.root};i.pop()}return{name:n}}var hq=(e,t,n,r)=>{n(e);const{name:i,...s}=e;return jr(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(a=>t[a]===(!r||Gi.all))},pq=(e,t,n)=>!e||!t||e===t||ai(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),mq=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,gq=(e,t)=>!Td(rt(e,t)).length&&Qn(e,t),xP=(e,t,n)=>{const r=ai(rt(e,n));return en(r,"root",t[n]),en(e,n,r),e},cp=e=>Js(e);function FC(e,t,n="validate"){if(cp(e)||Array.isArray(e)&&e.every(cp)||Si(e)&&!e)return{type:n,message:cp(e)?e:"",ref:t}}var Pl=e=>Yn(e)&&!Np(e)?e:{value:e,message:""},hb=async(e,t,n,r,i,s)=>{const{ref:a,refs:o,required:l,maxLength:d,minLength:h,min:m,max:g,pattern:b,validate:x,name:w,valueAsNumber:S,mount:E}=e._f,C=rt(n,w);if(!E||t.has(w))return{};const A=o?o[0]:a,k=$e=>{i&&A.reportValidity&&(A.setCustomValidity(Si($e)?"":$e||""),A.reportValidity())},M={},R=Q4(a),K=Ad(a),H=R||K,le=(S||J4(a))&&Cn(a.value)&&Cn(C)||Bp(a)&&a.value===""||C===""||Array.isArray(C)&&!C.length,ae=pP.bind(null,w,r,M),I=($e,we,W,ie=La.maxLength,O=La.minLength)=>{const L=$e?we:W;M[w]={type:$e?ie:O,message:L,ref:a,...ae($e?ie:O,L)}};if(s?!Array.isArray(C)||!C.length:l&&(!H&&(le||Kr(C))||Si(C)&&!C||K&&!yP(o).isValid||R&&!$P(o).isValid)){const{value:$e,message:we}=cp(l)?{value:!!l,message:l}:Pl(l);if($e&&(M[w]={type:La.required,message:we,ref:A,...ae(La.required,we)},!r))return k(we),M}if(!le&&(!Kr(m)||!Kr(g))){let $e,we;const W=Pl(g),ie=Pl(m);if(!Kr(C)&&!isNaN(C)){const O=a.valueAsNumber||C&&+C;Kr(W.value)||($e=O>W.value),Kr(ie.value)||(we=O<ie.value)}else{const O=a.valueAsDate||new Date(C),L=U=>new Date(new Date().toDateString()+" "+U),B=a.type=="time",he=a.type=="week";Js(W.value)&&C&&($e=B?L(C)>L(W.value):he?C>W.value:O>new Date(W.value)),Js(ie.value)&&C&&(we=B?L(C)<L(ie.value):he?C<ie.value:O<new Date(ie.value))}if(($e||we)&&(I(!!$e,W.message,ie.message,La.max,La.min),!r))return k(M[w].message),M}if((d||h)&&!le&&(Js(C)||s&&Array.isArray(C))){const $e=Pl(d),we=Pl(h),W=!Kr($e.value)&&C.length>+$e.value,ie=!Kr(we.value)&&C.length<+we.value;if((W||ie)&&(I(W,$e.message,we.message),!r))return k(M[w].message),M}if(b&&!le&&Js(C)){const{value:$e,message:we}=Pl(b);if(Np($e)&&!C.match($e)&&(M[w]={type:La.pattern,message:we,ref:a,...ae(La.pattern,we)},!r))return k(we),M}if(x){if(ws(x)){const $e=await x(C,n),we=FC($e,A);if(we&&(M[w]={...we,...ae(La.validate,we.message)},!r))return k(we.message),M}else if(Yn(x)){let $e={};for(const we in x){if(!jr($e)&&!r)break;const W=FC(await x[we](C,n),A,we);W&&($e={...W,...ae(we,W.message)},k(W.message),r&&(M[w]=$e))}if(!jr($e)&&(M[w]={ref:A,...$e},!r))return M}}return k(!0),M};const vq={mode:Gi.onSubmit,reValidateMode:Gi.onChange,shouldFocusError:!0};function yq(e={}){let t={...vq,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:ws(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1};const r={};let i=Yn(t.defaultValues)||Yn(t.values)?Mn(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:Mn(i),a={action:!1,mount:!1,watch:!1},o={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,d=0;const h={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let m={...h};const g={array:SC(),state:SC()},b=t.criteriaMode===Gi.all,x=me=>Se=>{clearTimeout(d),d=setTimeout(me,Se)},w=async me=>{if(!t.disabled&&(h.isValid||m.isValid||me)){const Se=t.resolver?jr((await K()).errors):await le(r,!0);Se!==n.isValid&&g.state.next({isValid:Se})}},S=(me,Se)=>{!t.disabled&&(h.isValidating||h.validatingFields||m.isValidating||m.validatingFields)&&((me||Array.from(o.mount)).forEach(Le=>{Le&&(Se?en(n.validatingFields,Le,Se):Qn(n.validatingFields,Le))}),g.state.next({validatingFields:n.validatingFields,isValidating:!jr(n.validatingFields)}))},E=(me,Se=[],Le,it,Qe=!0,Xe=!0)=>{if(it&&Le&&!t.disabled){if(a.action=!0,Xe&&Array.isArray(rt(r,me))){const gt=Le(rt(r,me),it.argA,it.argB);Qe&&en(r,me,gt)}if(Xe&&Array.isArray(rt(n.errors,me))){const gt=Le(rt(n.errors,me),it.argA,it.argB);Qe&&en(n.errors,me,gt),gq(n.errors,me)}if((h.touchedFields||m.touchedFields)&&Xe&&Array.isArray(rt(n.touchedFields,me))){const gt=Le(rt(n.touchedFields,me),it.argA,it.argB);Qe&&en(n.touchedFields,me,gt)}(h.dirtyFields||m.dirtyFields)&&(n.dirtyFields=gf(i,s)),g.state.next({name:me,isDirty:I(me,Se),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else en(s,me,Se)},C=(me,Se)=>{en(n.errors,me,Se),g.state.next({errors:n.errors})},A=me=>{n.errors=me,g.state.next({errors:n.errors,isValid:!1})},k=(me,Se,Le,it)=>{const Qe=rt(r,me);if(Qe){const Xe=rt(s,me,Cn(Le)?rt(i,me):Le);Cn(Xe)||it&&it.defaultChecked||Se?en(s,me,Se?Xe:PC(Qe._f)):W(me,Xe),a.mount&&w()}},M=(me,Se,Le,it,Qe)=>{let Xe=!1,gt=!1;const kt={name:me};if(!t.disabled){if(!Le||it){(h.isDirty||m.isDirty)&&(gt=n.isDirty,n.isDirty=kt.isDirty=I(),Xe=gt!==kt.isDirty);const wt=wo(rt(i,me),Se);gt=!!rt(n.dirtyFields,me),wt?Qn(n.dirtyFields,me):en(n.dirtyFields,me,!0),kt.dirtyFields=n.dirtyFields,Xe=Xe||(h.dirtyFields||m.dirtyFields)&>!==!wt}if(Le){const wt=rt(n.touchedFields,me);wt||(en(n.touchedFields,me,Le),kt.touchedFields=n.touchedFields,Xe=Xe||(h.touchedFields||m.touchedFields)&&wt!==Le)}Xe&&Qe&&g.state.next(kt)}return Xe?kt:{}},R=(me,Se,Le,it)=>{const Qe=rt(n.errors,me),Xe=(h.isValid||m.isValid)&&Si(Se)&&n.isValid!==Se;if(t.delayError&&Le?(l=x(()=>C(me,Le)),l(t.delayError)):(clearTimeout(d),l=null,Le?en(n.errors,me,Le):Qn(n.errors,me)),(Le?!wo(Qe,Le):Qe)||!jr(it)||Xe){const gt={...it,...Xe&&Si(Se)?{isValid:Se}:{},errors:n.errors,name:me};n={...n,...gt},g.state.next(gt)}},K=async me=>{S(me,!0);const Se=await t.resolver(s,t.context,cq(me||o.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return S(me),Se},H=async me=>{const{errors:Se}=await K(me);if(me)for(const Le of me){const it=rt(Se,Le);it?en(n.errors,Le,it):Qn(n.errors,Le)}else n.errors=Se;return Se},le=async(me,Se,Le={valid:!0})=>{for(const it in me){const Qe=me[it];if(Qe){const{_f:Xe,...gt}=Qe;if(Xe){const kt=o.array.has(Xe.name),wt=Qe._f&&fq(Qe._f);wt&&h.validatingFields&&S([it],!0);const yn=await hb(Qe,o.disabled,s,b,t.shouldUseNativeValidation&&!Se,kt);if(wt&&h.validatingFields&&S([it]),yn[Xe.name]&&(Le.valid=!1,Se))break;!Se&&(rt(yn,Xe.name)?kt?xP(n.errors,yn,Xe.name):en(n.errors,Xe.name,yn[Xe.name]):Qn(n.errors,Xe.name))}!jr(gt)&&await le(gt,Se,Le)}}return Le.valid},ae=()=>{for(const me of o.unMount){const Se=rt(r,me);Se&&(Se._f.refs?Se._f.refs.every(Le=>!$v(Le)):!$v(Se._f.ref))&&Ge(me)}o.unMount=new Set},I=(me,Se)=>!t.disabled&&(me&&Se&&en(s,me,Se),!wo(U(),i)),$e=(me,Se,Le)=>fP(me,o,{...a.mount?s:Cn(Se)?i:Js(me)?{[me]:Se}:Se},Le,Se),we=me=>Td(rt(a.mount?s:i,me,t.shouldUnregister?rt(i,me,[]):[])),W=(me,Se,Le={})=>{const it=rt(r,me);let Qe=Se;if(it){const Xe=it._f;Xe&&(!Xe.disabled&&en(s,me,bP(Se,Xe)),Qe=Bp(Xe.ref)&&Kr(Se)?"":Se,mP(Xe.ref)?[...Xe.ref.options].forEach(gt=>gt.selected=Qe.includes(gt.value)):Xe.refs?Ad(Xe.ref)?Xe.refs.forEach(gt=>{(!gt.defaultChecked||!gt.disabled)&&(Array.isArray(Qe)?gt.checked=!!Qe.find(kt=>kt===gt.value):gt.checked=Qe===gt.value||!!Qe)}):Xe.refs.forEach(gt=>gt.checked=gt.value===Qe):J4(Xe.ref)?Xe.ref.value="":(Xe.ref.value=Qe,Xe.ref.type||g.state.next({name:me,values:Mn(s)})))}(Le.shouldDirty||Le.shouldTouch)&&M(me,Qe,Le.shouldTouch,Le.shouldDirty,!0),Le.shouldValidate&&he(me)},ie=(me,Se,Le)=>{for(const it in Se){if(!Se.hasOwnProperty(it))return;const Qe=Se[it],Xe=me+"."+it,gt=rt(r,Xe);(o.array.has(me)||Yn(Qe)||gt&&!gt._f)&&!bu(Qe)?ie(Xe,Qe,Le):W(Xe,Qe,Le)}},O=(me,Se,Le={})=>{const it=rt(r,me),Qe=o.array.has(me),Xe=Mn(Se);en(s,me,Xe),Qe?(g.array.next({name:me,values:Mn(s)}),(h.isDirty||h.dirtyFields||m.isDirty||m.dirtyFields)&&Le.shouldDirty&&g.state.next({name:me,dirtyFields:gf(i,s),isDirty:I(me,Xe)})):it&&!it._f&&!Kr(Xe)?ie(me,Xe,Le):W(me,Xe,Le),db(me,o)&&g.state.next({...n}),g.state.next({name:a.mount?me:void 0,values:Mn(s)})},L=async me=>{a.mount=!0;const Se=me.target;let Le=Se.name,it=!0;const Qe=rt(r,Le),Xe=wt=>{it=Number.isNaN(wt)||bu(wt)&&isNaN(wt.getTime())||wo(wt,rt(s,Le,wt))},gt=Ol(t.mode),kt=Ol(t.reValidateMode);if(Qe){let wt,yn;const Cr=Se.type?PC(Qe._f):aP(me),zt=me.type===Lp.BLUR||me.type===Lp.FOCUS_OUT,_t=!dq(Qe._f)&&!t.resolver&&!rt(n.errors,Le)&&!Qe._f.deps||mq(zt,rt(n.touchedFields,Le),n.isSubmitted,kt,gt),Lt=db(Le,o,zt);en(s,Le,Cr),zt?(Qe._f.onBlur&&Qe._f.onBlur(me),l&&l(0)):Qe._f.onChange&&Qe._f.onChange(me);const Wt=M(Le,Cr,zt),gr=!jr(Wt)||Lt;if(!zt&&g.state.next({name:Le,type:me.type,values:Mn(s)}),_t)return(h.isValid||m.isValid)&&(t.mode==="onBlur"?zt&&w():zt||w()),gr&&g.state.next({name:Le,...Lt?{}:Wt});if(!zt&&Lt&&g.state.next({...n}),t.resolver){const{errors:Zr}=await K([Le]);if(Xe(Cr),it){const fi=MC(n.errors,r,Le),kr=MC(Zr,r,fi.name||Le);wt=kr.error,Le=kr.name,yn=jr(Zr)}}else S([Le],!0),wt=(await hb(Qe,o.disabled,s,b,t.shouldUseNativeValidation))[Le],S([Le]),Xe(Cr),it&&(wt?yn=!1:(h.isValid||m.isValid)&&(yn=await le(r,!0)));it&&(Qe._f.deps&&he(Qe._f.deps),R(Le,yn,wt,Wt))}},B=(me,Se)=>{if(rt(n.errors,Se)&&me.focus)return me.focus(),1},he=async(me,Se={})=>{let Le,it;const Qe=ai(me);if(t.resolver){const Xe=await H(Cn(me)?me:Qe);Le=jr(Xe),it=me?!Qe.some(gt=>rt(Xe,gt)):Le}else me?(it=(await Promise.all(Qe.map(async Xe=>{const gt=rt(r,Xe);return await le(gt&>._f?{[Xe]:gt}:gt)}))).every(Boolean),!(!it&&!n.isValid)&&w()):it=Le=await le(r);return g.state.next({...!Js(me)||(h.isValid||m.isValid)&&Le!==n.isValid?{}:{name:me},...t.resolver||!me?{isValid:Le}:{},errors:n.errors}),Se.shouldFocus&&!it&&Gl(r,B,me?Qe:o.mount),it},U=me=>{const Se={...a.mount?s:i};return Cn(me)?Se:Js(me)?rt(Se,me):me.map(Le=>rt(Se,Le))},te=(me,Se)=>({invalid:!!rt((Se||n).errors,me),isDirty:!!rt((Se||n).dirtyFields,me),error:rt((Se||n).errors,me),isValidating:!!rt(n.validatingFields,me),isTouched:!!rt((Se||n).touchedFields,me)}),xe=me=>{me&&ai(me).forEach(Se=>Qn(n.errors,Se)),g.state.next({errors:me?n.errors:{}})},De=(me,Se,Le)=>{const it=(rt(r,me,{_f:{}})._f||{}).ref,Qe=rt(n.errors,me)||{},{ref:Xe,message:gt,type:kt,...wt}=Qe;en(n.errors,me,{...wt,...Se,ref:it}),g.state.next({name:me,errors:n.errors,isValid:!1}),Le&&Le.shouldFocus&&it&&it.focus&&it.focus()},_e=(me,Se)=>ws(me)?g.state.subscribe({next:Le=>me($e(void 0,Se),Le)}):$e(me,Se,!0),Me=me=>g.state.subscribe({next:Se=>{pq(me.name,Se.name,me.exact)&&hq(Se,me.formState||h,Mt,me.reRenderRoot)&&me.callback({values:{...s},...n,...Se})}}).unsubscribe,Ye=me=>(a.mount=!0,m={...m,...me.formState},Me({...me,formState:m})),Ge=(me,Se={})=>{for(const Le of me?ai(me):o.mount)o.mount.delete(Le),o.array.delete(Le),Se.keepValue||(Qn(r,Le),Qn(s,Le)),!Se.keepError&&Qn(n.errors,Le),!Se.keepDirty&&Qn(n.dirtyFields,Le),!Se.keepTouched&&Qn(n.touchedFields,Le),!Se.keepIsValidating&&Qn(n.validatingFields,Le),!t.shouldUnregister&&!Se.keepDefaultValue&&Qn(i,Le);g.state.next({values:Mn(s)}),g.state.next({...n,...Se.keepDirty?{isDirty:I()}:{}}),!Se.keepIsValid&&w()},Ae=({disabled:me,name:Se})=>{(Si(me)&&a.mount||me||o.disabled.has(Se))&&(me?o.disabled.add(Se):o.disabled.delete(Se))},Ke=(me,Se={})=>{let Le=rt(r,me);const it=Si(Se.disabled)||Si(t.disabled);return en(r,me,{...Le||{},_f:{...Le&&Le._f?Le._f:{ref:{name:me}},name:me,mount:!0,...Se}}),o.mount.add(me),Le?Ae({disabled:Si(Se.disabled)?Se.disabled:t.disabled,name:me}):k(me,!0,Se.value),{...it?{disabled:Se.disabled||t.disabled}:{},...t.progressive?{required:!!Se.required,min:vf(Se.min),max:vf(Se.max),minLength:vf(Se.minLength),maxLength:vf(Se.maxLength),pattern:vf(Se.pattern)}:{},name:me,onChange:L,onBlur:L,ref:Qe=>{if(Qe){Ke(me,Se),Le=rt(r,me);const Xe=Cn(Qe.value)&&Qe.querySelectorAll&&Qe.querySelectorAll("input,select,textarea")[0]||Qe,gt=oq(Xe),kt=Le._f.refs||[];if(gt?kt.find(wt=>wt===Xe):Xe===Le._f.ref)return;en(r,me,{_f:{...Le._f,...gt?{refs:[...kt.filter($v),Xe,...Array.isArray(rt(i,me))?[{}]:[]],ref:{type:Xe.type,name:me}}:{ref:Xe}}}),k(me,!1,void 0,Xe)}else Le=rt(r,me,{}),Le._f&&(Le._f.mount=!1),(t.shouldUnregister||Se.shouldUnregister)&&!(oP(o.array,me)&&a.action)&&o.unMount.add(me)}}},We=()=>t.shouldFocusError&&Gl(r,B,o.mount),Ve=me=>{Si(me)&&(g.state.next({disabled:me}),Gl(r,(Se,Le)=>{const it=rt(r,Le);it&&(Se.disabled=it._f.disabled||me,Array.isArray(it._f.refs)&&it._f.refs.forEach(Qe=>{Qe.disabled=it._f.disabled||me}))},0,!1))},Te=(me,Se)=>async Le=>{let it;Le&&(Le.preventDefault&&Le.preventDefault(),Le.persist&&Le.persist());let Qe=Mn(s);if(g.state.next({isSubmitting:!0}),t.resolver){const{errors:Xe,values:gt}=await K();n.errors=Xe,Qe=gt}else await le(r);if(o.disabled.size)for(const Xe of o.disabled)en(Qe,Xe,void 0);if(Qn(n.errors,"root"),jr(n.errors)){g.state.next({errors:{}});try{await me(Qe,Le)}catch(Xe){it=Xe}}else Se&&await Se({...n.errors},Le),We(),setTimeout(We);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:jr(n.errors)&&!it,submitCount:n.submitCount+1,errors:n.errors}),it)throw it},tt=(me,Se={})=>{rt(r,me)&&(Cn(Se.defaultValue)?O(me,Mn(rt(i,me))):(O(me,Se.defaultValue),en(i,me,Mn(Se.defaultValue))),Se.keepTouched||Qn(n.touchedFields,me),Se.keepDirty||(Qn(n.dirtyFields,me),n.isDirty=Se.defaultValue?I(me,Mn(rt(i,me))):I()),Se.keepError||(Qn(n.errors,me),h.isValid&&w()),g.state.next({...n}))},yt=(me,Se={})=>{const Le=me?Mn(me):i,it=Mn(Le),Qe=jr(me),Xe=Qe?i:it;if(Se.keepDefaultValues||(i=Le),!Se.keepValues){if(Se.keepDirtyValues){const gt=new Set([...o.mount,...Object.keys(gf(i,s))]);for(const kt of Array.from(gt))rt(n.dirtyFields,kt)?en(Xe,kt,rt(s,kt)):O(kt,rt(Xe,kt))}else{if(Y4&&Cn(me))for(const gt of o.mount){const kt=rt(r,gt);if(kt&&kt._f){const wt=Array.isArray(kt._f.refs)?kt._f.refs[0]:kt._f.ref;if(Bp(wt)){const yn=wt.closest("form");if(yn){yn.reset();break}}}}for(const gt of o.mount)O(gt,rt(Xe,gt))}s=Mn(Xe),g.array.next({values:{...Xe}}),g.state.next({values:{...Xe}})}o={mount:Se.keepDirtyValues?o.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!h.isValid||!!Se.keepIsValid||!!Se.keepDirtyValues,a.watch=!!t.shouldUnregister,g.state.next({submitCount:Se.keepSubmitCount?n.submitCount:0,isDirty:Qe?!1:Se.keepDirty?n.isDirty:!!(Se.keepDefaultValues&&!wo(me,i)),isSubmitted:Se.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Qe?{}:Se.keepDirtyValues?Se.keepDefaultValues&&s?gf(i,s):n.dirtyFields:Se.keepDefaultValues&&me?gf(i,me):Se.keepDirty?n.dirtyFields:{},touchedFields:Se.keepTouched?n.touchedFields:{},errors:Se.keepErrors?n.errors:{},isSubmitSuccessful:Se.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Jt=(me,Se)=>yt(ws(me)?me(s):me,Se),xt=(me,Se={})=>{const Le=rt(r,me),it=Le&&Le._f;if(it){const Qe=it.refs?it.refs[0]:it.ref;Qe.focus&&(Qe.focus(),Se.shouldSelect&&ws(Qe.select)&&Qe.select())}},Mt=me=>{n={...n,...me}},mt={control:{register:Ke,unregister:Ge,getFieldState:te,handleSubmit:Te,setError:De,_subscribe:Me,_runSchema:K,_focusError:We,_getWatch:$e,_getDirty:I,_setValid:w,_setFieldArray:E,_setDisabledField:Ae,_setErrors:A,_getFieldArray:we,_reset:yt,_resetDefaultValues:()=>ws(t.defaultValues)&&t.defaultValues().then(me=>{Jt(me,t.resetOptions),g.state.next({isLoading:!1})}),_removeUnmounted:ae,_disableForm:Ve,_subjects:g,_proxyFormState:h,get _fields(){return r},get _formValues(){return s},get _state(){return a},set _state(me){a=me},get _defaultValues(){return i},get _names(){return o},set _names(me){o=me},get _formState(){return n},get _options(){return t},set _options(me){t={...t,...me}}},subscribe:Ye,trigger:he,register:Ke,handleSubmit:Te,watch:_e,setValue:O,getValues:U,reset:Jt,resetField:tt,clearErrors:xe,unregister:Ge,setError:De,setFocus:xt,getFieldState:te};return{...mt,formControl:mt}}var mo=()=>{const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(Math.random()*16+e)%16|0;return(t=="x"?n:n&3|8).toString(16)})},xv=(e,t,n={})=>n.shouldFocus||Cn(n.shouldFocus)?n.focusName||`${e}.${Cn(n.focusIndex)?t:n.focusIndex}.`:"",wv=(e,t)=>[...e,...ai(t)],Cv=e=>Array.isArray(e)?e.map(()=>{}):void 0;function Ev(e,t,n){return[...e.slice(0,t),...ai(n),...e.slice(t)]}var Sv=(e,t,n)=>Array.isArray(e)?(Cn(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],Dv=(e,t)=>[...ai(t),...ai(e)];function bq(e,t){let n=0;const r=[...e];for(const i of t)r.splice(i-n,1),n++;return Td(r).length?r:[]}var Av=(e,t)=>Cn(t)?[]:bq(e,ai(t).sort((n,r)=>n-r)),Tv=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},RC=(e,t,n)=>(e[t]=n,e);function $q(e){const t=Pd(),{control:n=t.control,name:r,keyName:i="id",shouldUnregister:s,rules:a}=e,[o,l]=T.useState(n._getFieldArray(r)),d=T.useRef(n._getFieldArray(r).map(mo)),h=T.useRef(o),m=T.useRef(r),g=T.useRef(!1);m.current=r,h.current=o,n._names.array.add(r),a&&n.register(r,a),T.useEffect(()=>n._subjects.array.subscribe({next:({values:R,name:K})=>{if(K===m.current||!K){const H=rt(R,m.current);Array.isArray(H)&&(l(H),d.current=H.map(mo))}}}).unsubscribe,[n]);const b=T.useCallback(R=>{g.current=!0,n._setFieldArray(r,R)},[n,r]),x=(R,K)=>{const H=ai(Mn(R)),le=wv(n._getFieldArray(r),H);n._names.focus=xv(r,le.length-1,K),d.current=wv(d.current,H.map(mo)),b(le),l(le),n._setFieldArray(r,le,wv,{argA:Cv(R)})},w=(R,K)=>{const H=ai(Mn(R)),le=Dv(n._getFieldArray(r),H);n._names.focus=xv(r,0,K),d.current=Dv(d.current,H.map(mo)),b(le),l(le),n._setFieldArray(r,le,Dv,{argA:Cv(R)})},S=R=>{const K=Av(n._getFieldArray(r),R);d.current=Av(d.current,R),b(K),l(K),!Array.isArray(rt(n._fields,r))&&en(n._fields,r,void 0),n._setFieldArray(r,K,Av,{argA:R})},E=(R,K,H)=>{const le=ai(Mn(K)),ae=Ev(n._getFieldArray(r),R,le);n._names.focus=xv(r,R,H),d.current=Ev(d.current,R,le.map(mo)),b(ae),l(ae),n._setFieldArray(r,ae,Ev,{argA:R,argB:Cv(K)})},C=(R,K)=>{const H=n._getFieldArray(r);Tv(H,R,K),Tv(d.current,R,K),b(H),l(H),n._setFieldArray(r,H,Tv,{argA:R,argB:K},!1)},A=(R,K)=>{const H=n._getFieldArray(r);Sv(H,R,K),Sv(d.current,R,K),b(H),l(H),n._setFieldArray(r,H,Sv,{argA:R,argB:K},!1)},k=(R,K)=>{const H=Mn(K),le=RC(n._getFieldArray(r),R,H);d.current=[...le].map((ae,I)=>!ae||I===R?mo():d.current[I]),b(le),l([...le]),n._setFieldArray(r,le,RC,{argA:R,argB:H},!0,!1)},M=R=>{const K=ai(Mn(R));d.current=K.map(mo),b([...K]),l([...K]),n._setFieldArray(r,[...K],H=>H,{},!0,!1)};return T.useEffect(()=>{if(n._state.action=!1,db(r,n._names)&&n._subjects.state.next({...n._formState}),g.current&&(!Ol(n._options.mode).isOnSubmit||n._formState.isSubmitted)&&!Ol(n._options.reValidateMode).isOnSubmit)if(n._options.resolver)n._runSchema([r]).then(R=>{const K=rt(R.errors,r),H=rt(n._formState.errors,r);(H?!K&&H.type||K&&(H.type!==K.type||H.message!==K.message):K&&K.type)&&(K?en(n._formState.errors,r,K):Qn(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const R=rt(n._fields,r);R&&R._f&&!(Ol(n._options.reValidateMode).isOnSubmit&&Ol(n._options.mode).isOnSubmit)&&hb(R,n._names.disabled,n._formValues,n._options.criteriaMode===Gi.all,n._options.shouldUseNativeValidation,!0).then(K=>!jr(K)&&n._subjects.state.next({errors:xP(n._formState.errors,K,r)}))}n._subjects.state.next({name:r,values:Mn(n._formValues)}),n._names.focus&&Gl(n._fields,(R,K)=>{if(n._names.focus&&K.startsWith(n._names.focus)&&R.focus)return R.focus(),1}),n._names.focus="",n._setValid(),g.current=!1},[o,r,n]),T.useEffect(()=>(!rt(n._formValues,r)&&n._setFieldArray(r),()=>{const R=(K,H)=>{const le=rt(n._fields,K);le&&le._f&&(le._f.mount=H)};n._options.shouldUnregister||s?n.unregister(r):R(r,!1)}),[r,n,i,s]),{swap:T.useCallback(C,[b,r,n]),move:T.useCallback(A,[b,r,n]),prepend:T.useCallback(w,[b,r,n]),append:T.useCallback(x,[b,r,n]),remove:T.useCallback(S,[b,r,n]),insert:T.useCallback(E,[b,r,n]),update:T.useCallback(k,[b,r,n]),replace:T.useCallback(M,[b,r,n]),fields:T.useMemo(()=>o.map((R,K)=>({...R,[i]:d.current[K]||mo()})),[o,i])}}function xq(e={}){const t=T.useRef(void 0),n=T.useRef(void 0),[r,i]=T.useState({isDirty:!1,isValidating:!1,isLoading:ws(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:ws(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...e.formControl?e.formControl:yq(e),formState:r},e.formControl&&e.defaultValues&&!ws(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions));const s=t.current.control;return s._options=e,X4(()=>{const a=s._subscribe({formState:s._proxyFormState,callback:()=>i({...s._formState}),reRenderRoot:!0});return i(o=>({...o,isReady:!0})),s._formState.isReady=!0,a},[s]),T.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),T.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),T.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),T.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),T.useEffect(()=>{if(s._proxyFormState.isDirty){const a=s._getDirty();a!==r.isDirty&&s._subjects.state.next({isDirty:a})}},[s,r.isDirty]),T.useEffect(()=>{e.values&&!wo(e.values,n.current)?(s._reset(e.values,s._options.resetOptions),n.current=e.values,i(a=>({...a}))):s._resetDefaultValues()},[s,e.values]),T.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=cP(r,s),t.current}const pn=typeof document<"u"?T.useLayoutEffect:()=>{};function kn(e){const t=T.useRef(null);return pn(()=>{t.current=e},[e]),T.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function wq(e){let[t,n]=T.useState(e),r=T.useRef(null),i=kn(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?i():n(a.value)});pn(()=>{r.current&&i()});let s=kn(a=>{r.current=a(t),i()});return[t,s]}const jp={prefix:String(Math.round(Math.random()*1e10)),current:0},wP=T.createContext(jp),Cq=T.createContext(!1);let Eq=!!(typeof window<"u"&&window.document&&window.document.createElement),Pv=new WeakMap;function Sq(e=!1){let t=T.useContext(wP),n=T.useRef(null);if(n.current===null&&!e){var r,i;let s=(i=T.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(s){let a=Pv.get(s);a==null?Pv.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==a.state&&(t.current=a.id,Pv.delete(s))}n.current=++t.current}return n.current}function Dq(e){let t=T.useContext(wP);t===jp&&!Eq&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=Sq(!!e),r=t===jp&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function Aq(e){let t=T.useId(),[n]=T.useState(e3()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${jp.prefix}`;return e||`${r}-${t}`}const Tq=typeof T.useId=="function"?Aq:Dq;function Pq(){return!1}function _q(){return!0}function Mq(e){return()=>{}}function e3(){return typeof T.useSyncExternalStore=="function"?T.useSyncExternalStore(Mq,Pq,_q):T.useContext(Cq)}let Fq=!!(typeof window<"u"&&window.document&&window.document.createElement),Yl=new Map,Of;typeof FinalizationRegistry<"u"&&(Of=new FinalizationRegistry(e=>{Yl.delete(e)}));function Hr(e){let[t,n]=T.useState(e),r=T.useRef(null),i=Tq(t),s=T.useRef(null);if(Of&&Of.register(s,i),Fq){const a=Yl.get(i);a&&!a.includes(r)?a.push(r):Yl.set(i,[r])}return pn(()=>{let a=i;return()=>{Of&&Of.unregister(s),Yl.delete(a)}},[i]),T.useEffect(()=>{let a=r.current;return a&&n(a),()=>{a&&(r.current=null)}}),i}function Rq(e,t){if(e===t)return e;let n=Yl.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=Yl.get(t);return r?(r.forEach(i=>i.current=e),e):t}function uc(e=[]){let t=Hr(),[n,r]=wq(t),i=T.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return pn(i,[t,i,...e]),n}function ju(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const tn=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Ha=e=>e&&"window"in e&&e.window===e?e:tn(e).defaultView||window;function kq(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function Oq(e){return kq(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let Iq=!1;function _m(){return Iq}function Dn(e,t){if(!_m())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:Oq(n)?n=n.host:n=n.parentNode}return!1}const mr=(e=document)=>{var t;if(!_m())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function sn(e){return _m()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class Lq{get currentNode(){return this._currentNode}set currentNode(t){if(!Dn(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=t,i=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const a=r,o=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});n.push(o),o.currentNode=i,this._currentSetFor.add(o),r=i=a.host}else r=r.parentNode;const s=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(s),s.currentNode=i,this._currentSetFor.add(s),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return Dn(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(t):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(t)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let s=this.nextNode();return s&&(this.currentNode=s),s}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){var r;let s;if(typeof this.filter=="function"?s=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(s=this.filter.acceptNode(n)),s===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let a=this.lastChild();return a&&(this.currentNode=a),a}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=a=>{if(a.nodeType===Node.ELEMENT_NODE){const l=a.shadowRoot;if(l){const d=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(d),NodeFilter.FILTER_ACCEPT}else{var o;if(typeof this.filter=="function")return this.filter(a);if(!((o=this.filter)===null||o===void 0)&&o.acceptNode)return this.filter.acceptNode(a);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));const s=n.shadowRoot;if(s){const a=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(a)}}}function Bq(e,t,n,r){return _m()?new Lq(e,t,n,r):e.createTreeWalker(t,n,r)}function CP(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=CP(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Vq(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=CP(e))&&(r&&(r+=" "),r+=t);return r}function Qt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let s=t[i],a=r[i];typeof s=="function"&&typeof a=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=ju(s,a):(i==="className"||i==="UNSAFE_className")&&typeof s=="string"&&typeof a=="string"?t[i]=Vq(s,a):i==="id"&&s&&a?t.id=Rq(s,a):t[i]=a!==void 0?a:s}}return t}const Nq=new Set(["id"]),jq=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Kq=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Uq=/^(data-.*)$/;function Qa(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,s={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(Nq.has(a)||n&&jq.has(a)||r&&Kq.has(a)||i!=null&&i.has(a)||Uq.test(a))&&(s[a]=e[a]);return s}function Di(e){if(qq())e.focus({preventScroll:!0});else{let t=zq(e);e.focus(),Wq(t)}}let Bh=null;function qq(){if(Bh==null){Bh=!1;try{document.createElement("div").focus({get preventScroll(){return Bh=!0,!0}})}catch{}}return Bh}function zq(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function Wq(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Mm(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function t3(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function eo(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Ga=eo(function(){return t3(/^Mac/i)}),Hq=eo(function(){return t3(/^iPhone/i)}),EP=eo(function(){return t3(/^iPad/i)||Ga()&&navigator.maxTouchPoints>1}),_d=eo(function(){return Hq()||EP()}),fp=eo(function(){return Ga()||_d()}),n3=eo(function(){return Mm(/AppleWebKit/i)&&!SP()}),SP=eo(function(){return Mm(/Chrome/i)}),r3=eo(function(){return Mm(/Android/i)}),Gq=eo(function(){return Mm(/Firefox/i)}),Yq=T.createContext({isNative:!0,open:Xq,useHref:e=>e});function Fm(){return T.useContext(Yq)}function Ku(e,t,n=!0){var r,i;let{metaKey:s,ctrlKey:a,altKey:o,shiftKey:l}=t;Gq()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Ga()?s=!0:a=!0);let d=n3()&&Ga()&&!EP()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:a,altKey:o,shiftKey:l}):new MouseEvent("click",{metaKey:s,ctrlKey:a,altKey:o,shiftKey:l,bubbles:!0,cancelable:!0});Ku.isOpening=n,Di(e),e.dispatchEvent(d),Ku.isOpening=!1}Ku.isOpening=!1;function Zq(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function Xq(e,t){Zq(e,n=>Ku(n,t))}function Jq(e){let t=Fm();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}let Co=new Map,pb=new Set;function kC(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Co.get(r.target);i||(i=new Set,Co.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=Co.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Co.delete(r.target)),Co.size===0)){for(let s of pb)s();pb.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?kC():document.addEventListener("DOMContentLoaded",kC));function Qq(){for(const[e]of Co)"isConnected"in e&&!e.isConnected&&Co.delete(e)}function DP(e){requestAnimationFrame(()=>{Qq(),Co.size===0?e():pb.add(e)})}function Io(){let e=T.useRef(new Map),t=T.useCallback((i,s,a,o)=>{let l=o!=null&&o.once?(...d)=>{e.current.delete(a),a(...d)}:a;e.current.set(a,{type:s,eventTarget:i,fn:l,options:o}),i.addEventListener(s,l,o)},[]),n=T.useCallback((i,s,a,o)=>{var l;let d=((l=e.current.get(a))===null||l===void 0?void 0:l.fn)||a;i.removeEventListener(s,d,o),e.current.delete(a)},[]),r=T.useCallback(()=>{e.current.forEach((i,s)=>{n(i.eventTarget,i.type,s,i.options)})},[n]);return T.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function lc(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Hr(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function mb(e,t){const n=T.useRef(!0),r=T.useRef(null);T.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),T.useEffect(()=>{let i=r.current;n.current?n.current=!1:(!i||t.some((s,a)=>!Object.is(s,i[a])))&&e(),r.current=t},t)}function OC(e,t){const n=T.useRef(!0),r=T.useRef(null);pn(()=>(n.current=!0,()=>{n.current=!1}),[]),pn(()=>{n.current?n.current=!1:(!r.current||t.some((i,s)=>!Object.is(i,r[s])))&&e(),r.current=t},t)}function ez(){return typeof window.ResizeObserver<"u"}function IC(e){const{ref:t,box:n,onResize:r}=e;T.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(ez()){const s=new window.ResizeObserver(a=>{a.length&&r()});return s.observe(i,{box:n}),()=>{i&&s.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function AP(e,t){pn(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function rd(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function Rm(e,t){let n=e;for(rd(n,t)&&(n=n.parentElement);n&&!rd(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function tz(e,t){const n=[];for(;e&&e!==document.documentElement;)rd(e,t)&&n.push(e),e=e.parentElement;return n}let nz=0;const _v=new Map;function Md(e){let[t,n]=T.useState();return pn(()=>{if(!e)return;let r=_v.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${nz++}`;n(i);let s=document.createElement("div");s.id=i,s.style.display="none",s.textContent=e,document.body.appendChild(s),r={refCount:0,element:s},_v.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),_v.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Qs(e,t,n,r){let i=kn(n),s=n==null;T.useEffect(()=>{if(s||!e.current)return;let a=e.current;return a.addEventListener(t,i,r),()=>{a.removeEventListener(t,i,r)}},[e,t,r,s,i])}function TP(e,t){let n=LC(e,t,"left"),r=LC(e,t,"top"),i=t.offsetWidth,s=t.offsetHeight,a=e.scrollLeft,o=e.scrollTop,{borderTopWidth:l,borderLeftWidth:d,scrollPaddingTop:h,scrollPaddingRight:m,scrollPaddingBottom:g,scrollPaddingLeft:b}=getComputedStyle(e),x=a+parseInt(d,10),w=o+parseInt(l,10),S=x+e.clientWidth,E=w+e.clientHeight,C=parseInt(h,10)||0,A=parseInt(g,10)||0,k=parseInt(m,10)||0,M=parseInt(b,10)||0;n<=a+M?a=n-parseInt(d,10)-M:n+i>S-k&&(a+=n+i-S+k),r<=w+C?o=r-parseInt(l,10)-C:r+s>E-A&&(o+=r+s-E+A),e.scrollLeft=a,e.scrollTop=o}function LC(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function Kp(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let l=tz(e);for(let d of l)TP(d,e)}else{var n;let{left:l,top:d}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:h,top:m}=e.getBoundingClientRect();if(Math.abs(l-h)>1||Math.abs(d-m)>1){var r,i,s;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(s=e.scrollIntoView)===null||s===void 0||s.call(e,{block:"nearest"})}}}}function gb(e){return e.mozInputSource===0&&e.isTrusted?!0:r3()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function rz(e){return!r3()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function PP(e,t){let n=T.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function i3(e,t,n){let r=T.useRef(t),i=kn(()=>{n&&n(r.current)});T.useEffect(()=>{var s;let a=e==null||(s=e.current)===null||s===void 0?void 0:s.form;return a==null||a.addEventListener("reset",i),()=>{a==null||a.removeEventListener("reset",i)}},[e,i])}const iz="react-aria-clear-focus",sz="react-aria-focus";function Rl(e){return Ga()?e.metaKey:e.ctrlKey}const s3=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])'],az=s3.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";s3.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const oz=s3.join(':not([hidden]):not([tabindex="-1"]),');function _P(e){return e.matches(az)}function uz(e){return e.matches(oz)}function Ai(e,t,n){let[r,i]=T.useState(e||t),s=T.useRef(e!==void 0),a=e!==void 0;T.useEffect(()=>{let d=s.current;d!==a&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),s.current=a},[a]);let o=a?e:r,l=T.useCallback((d,...h)=>{let m=(g,...b)=>{n&&(Object.is(o,g)||n(g,...b)),a||(o=g)};typeof d=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((b,...x)=>{let w=d(a?o:b,...x);return m(w,...h),a?b:w})):(a||i(d),m(d,...h))},[a,o,n]);return[o,l]}function cc(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Vh(e,t){let n=e,r=t.toString(),i=r.indexOf("."),s=i>=0?r.length-i:0;if(s>0){let a=Math.pow(10,s);n=Math.round(n*a)/a}return n}function yf(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,s=Vh(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&s>n&&(s=Math.floor(Vh(n/r,r))*r):s<t?s=t:!isNaN(n)&&s>n&&(s=t+Math.floor(Vh((n-t)/r,r))*r),s=Vh(s,r),s}function a3(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function MP(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function FP(e){let t=T.useRef({isFocused:!1,observer:null});pn(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=kn(r=>{e==null||e(r)});return T.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,s=a=>{if(t.current.isFocused=!1,i.disabled){let o=a3(a);n(o)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",s,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let o=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let Up=!1;function BC(e){for(;e&&!_P(e);)e=e.parentElement;let t=Ha(e),n=t.document.activeElement;if(!n||n===e)return;Up=!0;let r=!1,i=h=>{(h.target===n||r)&&h.stopImmediatePropagation()},s=h=>{(h.target===n||r)&&(h.stopImmediatePropagation(),!e&&!r&&(r=!0,Di(n),l()))},a=h=>{(h.target===e||r)&&h.stopImmediatePropagation()},o=h=>{(h.target===e||r)&&(h.stopImmediatePropagation(),r||(r=!0,Di(n),l()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",s,!0),t.addEventListener("focusin",o,!0),t.addEventListener("focus",a,!0);let l=()=>{cancelAnimationFrame(d),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",s,!0),t.removeEventListener("focusin",o,!0),t.removeEventListener("focus",a,!0),Up=!1,r=!1},d=requestAnimationFrame(l);return l}let Il="default",vb="",dp=new WeakMap;function yb(e){if(_d()){if(Il==="default"){const t=tn(e);vb=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Il="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";dp.set(e,e.style[t]),e.style[t]="none"}}function hp(e){if(_d()){if(Il!=="disabled")return;Il="restoring",setTimeout(()=>{DP(()=>{if(Il==="restoring"){const t=tn(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=vb||""),vb="",Il="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&dp.has(e)){let t=dp.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),dp.delete(e)}}const o3=T.createContext({register:()=>{}});o3.displayName="PressResponderContext";function lz(e,t){return t.get?t.get.call(e):t.value}function RP(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function cz(e,t){var n=RP(e,t,"get");return lz(e,n)}function fz(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Fd(e,t,n){fz(e,t),t.set(e,n)}function dz(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function VC(e,t,n){var r=RP(e,t,"set");return dz(e,r,n),n}function hz(e){let t=T.useContext(o3);if(t){let{register:n,...r}=t;e=Qt(r,e),n()}return AP(t,e.ref),e}var Nh=new WeakMap;class jh{continuePropagation(){VC(this,Nh,!1)}get shouldStopPropagation(){return cz(this,Nh)}constructor(t,n,r,i){Fd(this,Nh,{writable:!0,value:void 0}),VC(this,Nh,!0);var s;let a=(s=i==null?void 0:i.target)!==null&&s!==void 0?s:r.currentTarget;const o=a==null?void 0:a.getBoundingClientRect();let l,d=0,h,m=null;r.clientX!=null&&r.clientY!=null&&(h=r.clientX,m=r.clientY),o&&(h!=null&&m!=null?(l=h-o.left,d=m-o.top):(l=o.width/2,d=o.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=d}}const NC=Symbol("linkClicked"),jC="react-aria-pressable-style",KC="data-react-aria-pressable";function Rd(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:s,onClick:a,isDisabled:o,isPressed:l,preventFocusOnPress:d,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:m,ref:g,...b}=hz(e),[x,w]=T.useState(!1),S=T.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:E,removeAllGlobalListeners:C}=Io(),A=kn((I,$e)=>{let we=S.current;if(o||we.didFirePressStart)return!1;let W=!0;if(we.isTriggeringEvent=!0,r){let ie=new jh("pressstart",$e,I);r(ie),W=ie.shouldStopPropagation}return n&&n(!0),we.isTriggeringEvent=!1,we.didFirePressStart=!0,w(!0),W}),k=kn((I,$e,we=!0)=>{let W=S.current;if(!W.didFirePressStart)return!1;W.didFirePressStart=!1,W.isTriggeringEvent=!0;let ie=!0;if(i){let O=new jh("pressend",$e,I);i(O),ie=O.shouldStopPropagation}if(n&&n(!1),w(!1),t&&we&&!o){let O=new jh("press",$e,I);t(O),ie&&(ie=O.shouldStopPropagation)}return W.isTriggeringEvent=!1,ie}),M=kn((I,$e)=>{let we=S.current;if(o)return!1;if(s){we.isTriggeringEvent=!0;let W=new jh("pressup",$e,I);return s(W),we.isTriggeringEvent=!1,W.shouldStopPropagation}return!0}),R=kn(I=>{let $e=S.current;if($e.isPressed&&$e.target){$e.didFirePressStart&&$e.pointerType!=null&&k(cu($e.target,I),$e.pointerType,!1),$e.isPressed=!1,$e.isOverTarget=!1,$e.activePointerId=null,$e.pointerType=null,C(),m||hp($e.target);for(let we of $e.disposables)we();$e.disposables=[]}}),K=kn(I=>{h&&R(I)}),H=kn(I=>{a==null||a(I)}),le=kn((I,$e)=>{if(a){let we=new MouseEvent("click",I);MP(we,$e),a(a3(we))}}),ae=T.useMemo(()=>{let I=S.current,$e={onKeyDown(W){if(Mv(W.nativeEvent,W.currentTarget)&&Dn(W.currentTarget,sn(W.nativeEvent))){var ie;zC(sn(W.nativeEvent),W.key)&&W.preventDefault();let O=!0;if(!I.isPressed&&!W.repeat){I.target=W.currentTarget,I.isPressed=!0,I.pointerType="keyboard",O=A(W,"keyboard");let L=W.currentTarget,B=he=>{Mv(he,L)&&!he.repeat&&Dn(L,sn(he))&&I.target&&M(cu(I.target,he),"keyboard")};E(tn(W.currentTarget),"keyup",ju(B,we),!0)}O&&W.stopPropagation(),W.metaKey&&Ga()&&((ie=I.metaKeyEvents)===null||ie===void 0||ie.set(W.key,W.nativeEvent))}else W.key==="Meta"&&(I.metaKeyEvents=new Map)},onClick(W){if(!(W&&!Dn(W.currentTarget,sn(W.nativeEvent)))&&W&&W.button===0&&!I.isTriggeringEvent&&!Ku.isOpening){let ie=!0;if(o&&W.preventDefault(),!I.ignoreEmulatedMouseEvents&&!I.isPressed&&(I.pointerType==="virtual"||gb(W.nativeEvent))){let O=A(W,"virtual"),L=M(W,"virtual"),B=k(W,"virtual");H(W),ie=O&&L&&B}else if(I.isPressed&&I.pointerType!=="keyboard"){let O=I.pointerType||W.nativeEvent.pointerType||"virtual",L=M(cu(W.currentTarget,W),O),B=k(cu(W.currentTarget,W),O,!0);ie=L&&B,I.isOverTarget=!1,H(W),R(W)}I.ignoreEmulatedMouseEvents=!1,ie&&W.stopPropagation()}}},we=W=>{var ie;if(I.isPressed&&I.target&&Mv(W,I.target)){var O;zC(sn(W),W.key)&&W.preventDefault();let B=sn(W),he=Dn(I.target,sn(W));k(cu(I.target,W),"keyboard",he),he&&le(W,I.target),C(),W.key!=="Enter"&&u3(I.target)&&Dn(I.target,B)&&!W[NC]&&(W[NC]=!0,Ku(I.target,W,!1)),I.isPressed=!1,(O=I.metaKeyEvents)===null||O===void 0||O.delete(W.key)}else if(W.key==="Meta"&&(!((ie=I.metaKeyEvents)===null||ie===void 0)&&ie.size)){var L;let B=I.metaKeyEvents;I.metaKeyEvents=void 0;for(let he of B.values())(L=I.target)===null||L===void 0||L.dispatchEvent(new KeyboardEvent("keyup",he))}};if(typeof PointerEvent<"u"){$e.onPointerDown=O=>{if(O.button!==0||!Dn(O.currentTarget,sn(O.nativeEvent)))return;if(rz(O.nativeEvent)){I.pointerType="virtual";return}I.pointerType=O.pointerType;let L=!0;if(!I.isPressed){I.isPressed=!0,I.isOverTarget=!0,I.activePointerId=O.pointerId,I.target=O.currentTarget,m||yb(I.target),L=A(O,I.pointerType);let B=sn(O.nativeEvent);"releasePointerCapture"in B&&B.releasePointerCapture(O.pointerId),E(tn(O.currentTarget),"pointerup",W,!1),E(tn(O.currentTarget),"pointercancel",ie,!1)}L&&O.stopPropagation()},$e.onMouseDown=O=>{if(Dn(O.currentTarget,sn(O.nativeEvent))&&O.button===0){if(d){let L=BC(O.target);L&&I.disposables.push(L)}O.stopPropagation()}},$e.onPointerUp=O=>{!Dn(O.currentTarget,sn(O.nativeEvent))||I.pointerType==="virtual"||O.button===0&&!I.isPressed&&M(O,I.pointerType||O.pointerType)},$e.onPointerEnter=O=>{O.pointerId===I.activePointerId&&I.target&&!I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!0,A(cu(I.target,O),I.pointerType))},$e.onPointerLeave=O=>{O.pointerId===I.activePointerId&&I.target&&I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!1,k(cu(I.target,O),I.pointerType,!1),K(O))};let W=O=>{if(O.pointerId===I.activePointerId&&I.isPressed&&O.button===0&&I.target){if(Dn(I.target,sn(O))&&I.pointerType!=null){let L=!1,B=setTimeout(()=>{I.isPressed&&I.target instanceof HTMLElement&&(L?R(O):(Di(I.target),I.target.click()))},80);E(O.currentTarget,"click",()=>L=!0,!0),I.disposables.push(()=>clearTimeout(B))}else R(O);I.isOverTarget=!1}},ie=O=>{R(O)};$e.onDragStart=O=>{Dn(O.currentTarget,sn(O.nativeEvent))&&R(O)}}else if(process.env.NODE_ENV==="test"){$e.onMouseDown=O=>{if(O.button!==0||!Dn(O.currentTarget,sn(O.nativeEvent)))return;if(I.ignoreEmulatedMouseEvents){O.stopPropagation();return}if(I.isPressed=!0,I.isOverTarget=!0,I.target=O.currentTarget,I.pointerType=gb(O.nativeEvent)?"virtual":"mouse",qa.flushSync(()=>A(O,I.pointerType))&&O.stopPropagation(),d){let B=BC(O.target);B&&I.disposables.push(B)}E(tn(O.currentTarget),"mouseup",W,!1)},$e.onMouseEnter=O=>{if(!Dn(O.currentTarget,sn(O.nativeEvent)))return;let L=!0;I.isPressed&&!I.ignoreEmulatedMouseEvents&&I.pointerType!=null&&(I.isOverTarget=!0,L=A(O,I.pointerType)),L&&O.stopPropagation()},$e.onMouseLeave=O=>{if(!Dn(O.currentTarget,sn(O.nativeEvent)))return;let L=!0;I.isPressed&&!I.ignoreEmulatedMouseEvents&&I.pointerType!=null&&(I.isOverTarget=!1,L=k(O,I.pointerType,!1),K(O)),L&&O.stopPropagation()},$e.onMouseUp=O=>{Dn(O.currentTarget,sn(O.nativeEvent))&&!I.ignoreEmulatedMouseEvents&&O.button===0&&!I.isPressed&&M(O,I.pointerType||"mouse")};let W=O=>{if(O.button===0){if(I.ignoreEmulatedMouseEvents){I.ignoreEmulatedMouseEvents=!1;return}I.target&&I.target.contains(O.target)&&I.pointerType!=null||R(O),I.isOverTarget=!1}};$e.onTouchStart=O=>{if(!Dn(O.currentTarget,sn(O.nativeEvent)))return;let L=pz(O.nativeEvent);if(!L)return;I.activePointerId=L.identifier,I.ignoreEmulatedMouseEvents=!0,I.isOverTarget=!0,I.isPressed=!0,I.target=O.currentTarget,I.pointerType="touch",m||yb(I.target),A(go(I.target,O),I.pointerType)&&O.stopPropagation(),E(Ha(O.currentTarget),"scroll",ie,!0)},$e.onTouchMove=O=>{if(!Dn(O.currentTarget,sn(O.nativeEvent)))return;if(!I.isPressed){O.stopPropagation();return}let L=UC(O.nativeEvent,I.activePointerId),B=!0;L&&qC(L,O.currentTarget)?!I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!0,B=A(go(I.target,O),I.pointerType)):I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!1,B=k(go(I.target,O),I.pointerType,!1),K(go(I.target,O))),B&&O.stopPropagation()},$e.onTouchEnd=O=>{if(!Dn(O.currentTarget,sn(O.nativeEvent)))return;if(!I.isPressed){O.stopPropagation();return}let L=UC(O.nativeEvent,I.activePointerId),B=!0;L&&qC(L,O.currentTarget)&&I.pointerType!=null?(M(go(I.target,O),I.pointerType),B=k(go(I.target,O),I.pointerType),le(O.nativeEvent,I.target)):I.isOverTarget&&I.pointerType!=null&&(B=k(go(I.target,O),I.pointerType,!1)),B&&O.stopPropagation(),I.isPressed=!1,I.activePointerId=null,I.isOverTarget=!1,I.ignoreEmulatedMouseEvents=!0,I.target&&!m&&hp(I.target),C()},$e.onTouchCancel=O=>{Dn(O.currentTarget,sn(O.nativeEvent))&&(O.stopPropagation(),I.isPressed&&R(go(I.target,O)))};let ie=O=>{I.isPressed&&Dn(sn(O),I.target)&&R({currentTarget:I.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};$e.onDragStart=O=>{Dn(O.currentTarget,sn(O.nativeEvent))&&R(O)}}return $e},[E,o,d,C,m,R,K,k,A,M,H,le]);return T.useEffect(()=>{if(!g||process.env.NODE_ENV==="test")return;const I=tn(g.current);if(!I||!I.head||I.getElementById(jC))return;const $e=I.createElement("style");$e.id=jC,$e.textContent=`
|
|
87
|
+
@layer {
|
|
88
|
+
[${KC}] {
|
|
89
|
+
touch-action: pan-x pan-y pinch-zoom;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
`.trim(),I.head.prepend($e)},[g]),T.useEffect(()=>{let I=S.current;return()=>{var $e;m||hp(($e=I.target)!==null&&$e!==void 0?$e:void 0);for(let we of I.disposables)we();I.disposables=[]}},[m]),{isPressed:l||x,pressProps:Qt(b,ae,{[KC]:!0})}}function u3(e){return e.tagName==="A"&&e.hasAttribute("href")}function Mv(e,t){const{key:n,code:r}=e,i=t,s=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Ha(i).HTMLInputElement&&!kP(i,n)||i instanceof Ha(i).HTMLTextAreaElement||i.isContentEditable)&&!((s==="link"||!s&&u3(i))&&n!=="Enter")}function pz(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function UC(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function go(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function cu(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function mz(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function gz(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function qC(e,t){let n=t.getBoundingClientRect(),r=mz(e);return gz(n,r)}function vz(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!u3(e)}function zC(e,t){return e instanceof HTMLInputElement?!kP(e,t):vz(e)}const yz=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function kP(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":yz.has(e.type)}let Yu=null,bz=new Set,zf=new Map,Uu=!1,bb=!1;function km(e,t){for(let n of bz)n(e,t)}function $z(e){return!(e.metaKey||!Ga()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function qp(e){Uu=!0,$z(e)&&(Yu="keyboard",km("keyboard",e))}function Wi(e){Yu="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Uu=!0,km("pointer",e))}function OP(e){gb(e)&&(Uu=!0,Yu="virtual")}function IP(e){e.target===window||e.target===document||Up||!e.isTrusted||(!Uu&&!bb&&(Yu="virtual",km("virtual",e)),Uu=!1,bb=!1)}function LP(){Up||(Uu=!1,bb=!0)}function WC(e){if(typeof window>"u"||typeof document>"u"||zf.get(Ha(e)))return;const t=Ha(e),n=tn(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Uu=!0,r.apply(this,arguments)},n.addEventListener("keydown",qp,!0),n.addEventListener("keyup",qp,!0),n.addEventListener("click",OP,!0),t.addEventListener("focus",IP,!0),t.addEventListener("blur",LP,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Wi,!0),n.addEventListener("pointermove",Wi,!0),n.addEventListener("pointerup",Wi,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Wi,!0),n.addEventListener("mousemove",Wi,!0),n.addEventListener("mouseup",Wi,!0)),t.addEventListener("beforeunload",()=>{BP(e)},{once:!0}),zf.set(t,{focus:r})}const BP=(e,t)=>{const n=Ha(e),r=tn(e);t&&r.removeEventListener("DOMContentLoaded",t),zf.has(n)&&(n.HTMLElement.prototype.focus=zf.get(n).focus,r.removeEventListener("keydown",qp,!0),r.removeEventListener("keyup",qp,!0),r.removeEventListener("click",OP,!0),n.removeEventListener("focus",IP,!0),n.removeEventListener("blur",LP,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Wi,!0),r.removeEventListener("pointermove",Wi,!0),r.removeEventListener("pointerup",Wi,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",Wi,!0),r.removeEventListener("mousemove",Wi,!0),r.removeEventListener("mouseup",Wi,!0)),zf.delete(n))};function xz(e){const t=tn(e);let n;return t.readyState!=="loading"?WC(e):(n=()=>{WC(e)},t.addEventListener("DOMContentLoaded",n)),()=>BP(e,n)}typeof document<"u"&&xz();function HC(){return Yu!=="pointer"}function id(){return Yu}function VP(e){Yu=e,km(e,null)}function qu(e){const t=tn(e),n=mr(t);if(id()==="virtual"){let r=n;DP(()=>{mr(t)===r&&e.isConnected&&Di(e)})}else Di(e)}function wz(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const s=T.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),a=FP(s),o=T.useCallback(l=>{const d=tn(l.target),h=d?mr(d):mr();l.target===l.currentTarget&&h===sn(l.nativeEvent)&&(n&&n(l),i&&i(!0),a(l))},[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?o:void 0,onBlur:!t&&(r||i)?s:void 0}}}function GC(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function NP(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:GC(e.onKeyDown),onKeyUp:GC(e.onKeyUp)}}}let Cz=T.createContext(null);function Ez(e){let t=T.useContext(Cz)||{};AP(t,e);let{ref:n,...r}=t;return r}function l3(e,t){let{focusProps:n}=wz(e),{keyboardProps:r}=NP(e),i=Qt(n,r),s=Ez(t),a=e.isDisabled?{}:s,o=T.useRef(e.autoFocus);T.useEffect(()=>{o.current&&t.current&&qu(t.current),o.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:Qt({...i,tabIndex:l},a)}}function Sz({children:e}){let t=T.useMemo(()=>({register:()=>{}}),[]);return T.createElement(o3.Provider,{value:t},e)}function wc(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,s=T.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:o}=Io(),l=T.useCallback(m=>{m.currentTarget.contains(m.target)&&s.current.isFocusWithin&&!m.currentTarget.contains(m.relatedTarget)&&(s.current.isFocusWithin=!1,o(),n&&n(m),i&&i(!1))},[n,i,s,o]),d=FP(l),h=T.useCallback(m=>{if(!m.currentTarget.contains(m.target))return;const g=tn(m.target),b=mr(g);if(!s.current.isFocusWithin&&b===sn(m.nativeEvent)){r&&r(m),i&&i(!0),s.current.isFocusWithin=!0,d(m);let x=m.currentTarget;a(g,"focus",w=>{if(s.current.isFocusWithin&&!Dn(x,w.target)){let S=new g.defaultView.FocusEvent("blur",{relatedTarget:w.target});MP(S,x);let E=a3(S);l(E)}},{capture:!0})}},[r,i,d,a,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:h,onBlur:l}}}let zp=!1,Fv=0;function $b(){zp=!0,setTimeout(()=>{zp=!1},50)}function YC(e){e.pointerType==="touch"&&$b()}function Dz(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",YC):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",$b),Fv++,()=>{Fv--,!(Fv>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",YC):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",$b))}}function Az(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[s,a]=T.useState(!1),o=T.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;T.useEffect(Dz,[]);let{addGlobalListener:l,removeAllGlobalListeners:d}=Io(),{hoverProps:h,triggerHoverEnd:m}=T.useMemo(()=>{let g=(w,S)=>{if(o.pointerType=S,i||S==="touch"||o.isHovered||!w.currentTarget.contains(w.target))return;o.isHovered=!0;let E=w.currentTarget;o.target=E,l(tn(w.target),"pointerover",C=>{o.isHovered&&o.target&&!Dn(o.target,C.target)&&b(C,C.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:E,pointerType:S}),n&&n(!0),a(!0)},b=(w,S)=>{let E=o.target;o.pointerType="",o.target=null,!(S==="touch"||!o.isHovered||!E)&&(o.isHovered=!1,d(),r&&r({type:"hoverend",target:E,pointerType:S}),n&&n(!1),a(!1))},x={};return typeof PointerEvent<"u"?(x.onPointerEnter=w=>{zp&&w.pointerType==="mouse"||g(w,w.pointerType)},x.onPointerLeave=w=>{!i&&w.currentTarget.contains(w.target)&&b(w,w.pointerType)}):process.env.NODE_ENV==="test"&&(x.onTouchStart=()=>{o.ignoreEmulatedMouseEvents=!0},x.onMouseEnter=w=>{!o.ignoreEmulatedMouseEvents&&!zp&&g(w,"mouse"),o.ignoreEmulatedMouseEvents=!1},x.onMouseLeave=w=>{!i&&w.currentTarget.contains(w.target)&&b(w,"mouse")}),{hoverProps:x,triggerHoverEnd:b}},[t,n,r,i,o,l,d]);return T.useEffect(()=>{i&&m({currentTarget:o.target},o.pointerType)},[i]),{hoverProps:h,isHovered:s}}function Tz(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,s=T.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=kn(l=>{n&&Kh(l,t)&&(i&&i(l),s.current.isPointerDown=!0)}),o=kn(l=>{n&&n(l)});T.useEffect(()=>{let l=s.current;if(r)return;const d=t.current,h=tn(d);if(typeof PointerEvent<"u"){let m=g=>{l.isPointerDown&&Kh(g,t)&&o(g),l.isPointerDown=!1};return h.addEventListener("pointerdown",a,!0),h.addEventListener("click",m,!0),()=>{h.removeEventListener("pointerdown",a,!0),h.removeEventListener("click",m,!0)}}else if(process.env.NODE_ENV==="test"){let m=b=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&Kh(b,t)&&o(b),l.isPointerDown=!1},g=b=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&Kh(b,t)&&o(b),l.isPointerDown=!1};return h.addEventListener("mousedown",a,!0),h.addEventListener("mouseup",m,!0),h.addEventListener("touchstart",a,!0),h.addEventListener("touchend",g,!0),()=>{h.removeEventListener("mousedown",a,!0),h.removeEventListener("mouseup",m,!0),h.removeEventListener("touchstart",a,!0),h.removeEventListener("touchend",g,!0)}}},[t,r,a,o])}function Kh(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}function jP(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=T.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:s,removeGlobalListener:a}=Io(),o=kn((h,m,g,b)=>{g===0&&b===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:m,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey})),n==null||n({type:"move",pointerType:m,deltaX:g,deltaY:b,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey}))}),l=kn((h,m)=>{hp(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:m,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey}))});return{moveProps:T.useMemo(()=>{let h={},m=()=>{yb(),i.current.didMove=!1};if(typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"){let b=E=>{if(E.button===0){var C,A,k,M;o(E,"mouse",E.pageX-((k=(C=i.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&k!==void 0?k:0),E.pageY-((M=(A=i.current.lastPosition)===null||A===void 0?void 0:A.pageY)!==null&&M!==void 0?M:0)),i.current.lastPosition={pageX:E.pageX,pageY:E.pageY}}},x=E=>{E.button===0&&(l(E,"mouse"),a(window,"mousemove",b,!1),a(window,"mouseup",x,!1))};h.onMouseDown=E=>{E.button===0&&(m(),E.stopPropagation(),E.preventDefault(),i.current.lastPosition={pageX:E.pageX,pageY:E.pageY},s(window,"mousemove",b,!1),s(window,"mouseup",x,!1))};let w=E=>{let C=[...E.changedTouches].findIndex(({identifier:K})=>K===i.current.id);if(C>=0){var A,k;let{pageX:K,pageY:H}=E.changedTouches[C];var M,R;o(E,"touch",K-((M=(A=i.current.lastPosition)===null||A===void 0?void 0:A.pageX)!==null&&M!==void 0?M:0),H-((R=(k=i.current.lastPosition)===null||k===void 0?void 0:k.pageY)!==null&&R!==void 0?R:0)),i.current.lastPosition={pageX:K,pageY:H}}},S=E=>{[...E.changedTouches].findIndex(({identifier:A})=>A===i.current.id)>=0&&(l(E,"touch"),i.current.id=null,a(window,"touchmove",w),a(window,"touchend",S),a(window,"touchcancel",S))};h.onTouchStart=E=>{if(E.changedTouches.length===0||i.current.id!=null)return;let{pageX:C,pageY:A,identifier:k}=E.changedTouches[0];m(),E.stopPropagation(),E.preventDefault(),i.current.lastPosition={pageX:C,pageY:A},i.current.id=k,s(window,"touchmove",w,!1),s(window,"touchend",S,!1),s(window,"touchcancel",S,!1)}}else{let b=w=>{if(w.pointerId===i.current.id){var S,E;let k=w.pointerType||"mouse";var C,A;o(w,k,w.pageX-((C=(S=i.current.lastPosition)===null||S===void 0?void 0:S.pageX)!==null&&C!==void 0?C:0),w.pageY-((A=(E=i.current.lastPosition)===null||E===void 0?void 0:E.pageY)!==null&&A!==void 0?A:0)),i.current.lastPosition={pageX:w.pageX,pageY:w.pageY}}},x=w=>{if(w.pointerId===i.current.id){let S=w.pointerType||"mouse";l(w,S),i.current.id=null,a(window,"pointermove",b,!1),a(window,"pointerup",x,!1),a(window,"pointercancel",x,!1)}};h.onPointerDown=w=>{w.button===0&&i.current.id==null&&(m(),w.stopPropagation(),w.preventDefault(),i.current.lastPosition={pageX:w.pageX,pageY:w.pageY},i.current.id=w.pointerId,s(window,"pointermove",b,!1),s(window,"pointerup",x,!1),s(window,"pointercancel",x,!1))}}let g=(b,x,w)=>{m(),o(b,"keyboard",x,w),l(b,"keyboard")};return h.onKeyDown=b=>{switch(b.key){case"Left":case"ArrowLeft":b.preventDefault(),b.stopPropagation(),g(b,-1,0);break;case"Right":case"ArrowRight":b.preventDefault(),b.stopPropagation(),g(b,1,0);break;case"Up":case"ArrowUp":b.preventDefault(),b.stopPropagation(),g(b,0,-1);break;case"Down":case"ArrowDown":b.preventDefault(),b.stopPropagation(),g(b,0,1);break}},h},[i,s,a,o,l])}}const Pz=500;function KP(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:s=Pz,accessibilityDescription:a}=e;const o=T.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:d}=Io(),{pressProps:h}=Rd({isDisabled:t,onPressStart(g){if(g.continuePropagation(),(g.pointerType==="mouse"||g.pointerType==="touch")&&(n&&n({...g,type:"longpressstart"}),o.current=setTimeout(()=>{g.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),tn(g.target).activeElement!==g.target&&Di(g.target),i&&i({...g,type:"longpress"}),o.current=void 0},s),g.pointerType==="touch")){let b=x=>{x.preventDefault()};l(g.target,"contextmenu",b,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{d(g.target,"contextmenu",b)},30)},{once:!0})}},onPressEnd(g){o.current&&clearTimeout(o.current),r&&(g.pointerType==="mouse"||g.pointerType==="touch")&&r({...g,type:"longpressend"})}}),m=Md(i&&!t?a:void 0);return{longPressProps:Qt(h,m)}}const _z=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Mz=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Fz(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return _z.has(n.script)}let t=e.split("-")[0];return Mz.has(t)}const Rz=Symbol.for("react-aria.i18n.locale");function UP(){let e=typeof window<"u"&&window[Rz]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Fz(e)?"rtl":"ltr"}}let xb=UP(),If=new Set;function ZC(){xb=UP();for(let e of If)e(xb)}function kz(){let e=e3(),[t,n]=T.useState(xb);return T.useEffect(()=>(If.size===0&&window.addEventListener("languagechange",ZC),If.add(n),()=>{If.delete(n),If.size===0&&window.removeEventListener("languagechange",ZC)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const Oz=T.createContext(null);function Rr(){let e=kz();return T.useContext(Oz)||e}const Iz=Symbol.for("react-aria.i18n.locale"),Lz=Symbol.for("react-aria.i18n.strings");let _l;class Lo{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=Bz(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[Iz];if(_l===void 0){let i=window[Lz];if(!i)return null;_l={};for(let s in i)_l[s]=new Lo({[n]:i[s]},n)}let r=_l==null?void 0:_l[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function Bz(e,t,n="en-US"){if(t[e])return t[e];let r=Vz(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function Vz(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const XC=new Map,JC=new Map;class qP{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let s=this.locale+":"+r,a=XC.get(s);a||(a=new Intl.PluralRules(this.locale,{type:r}),XC.set(s,a));let o=a.select(t);return i=n[o]||n.other,typeof i=="function"?i():i}number(t){let n=JC.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),JC.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const QC=new WeakMap;function Nz(e){let t=QC.get(e);return t||(t=new Lo(e),QC.set(e,t)),t}function zP(e,t){return t&&Lo.getGlobalDictionaryForPackage(t)||Nz(e)}function fa(e,t){let{locale:n}=Rr(),r=zP(e,t);return T.useMemo(()=>new qP(n,r),[n,r])}function Zl(e,t){return e-t*Math.floor(e/t)}const WP=1721426;function $u(e,t,n,r){t=kd(e,t);let i=t-1,s=-2;return n<=2?s=0:Ao(t)&&(s=-1),WP-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+s+r)}function Ao(e){return e%4===0&&(e%100!==0||e%400===0)}function kd(e,t){return e==="BC"?1-t:t}function Om(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const jz={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Yr{fromJulianDay(t){let n=t,r=n-WP,i=Math.floor(r/146097),s=Zl(r,146097),a=Math.floor(s/36524),o=Zl(s,36524),l=Math.floor(o/1461),d=Zl(o,1461),h=Math.floor(d/365),m=i*400+a*100+l*4+h+(a!==4&&h!==4?1:0),[g,b]=Om(m),x=n-$u(g,b,1,1),w=2;n<$u(g,b,3,1)?w=0:Ao(b)&&(w=1);let S=Math.floor(((x+w)*12+373)/367),E=n-$u(g,b,S,1)+1;return new Zn(g,b,S,E)}toJulianDay(t){return $u(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return jz[Ao(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Ao(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const Kz={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function nr(e,t){return t=On(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function wb(e,t){return Im(e.calendar,t.calendar)&&nr(e,t)}function Im(e,t){var n,r,i,s;return(s=(i=(n=e.isEqual)===null||n===void 0?void 0:n.call(e,t))!==null&&i!==void 0?i:(r=t.isEqual)===null||r===void 0?void 0:r.call(t,e))!==null&&s!==void 0?s:e.identifier===t.identifier}function HP(e,t){return nr(e,Lm(t))}const Uz={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function c3(e,t,n){let r=e.calendar.toJulianDay(e),i=n?Uz[n]:Yz(t),s=Math.ceil(r+1-i)%7;return s<0&&(s+=7),s}function GP(e){return ja(Date.now(),e)}function Lm(e){return Gr(GP(e))}function YP(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function ZP(e,t){return eE(e)-eE(t)}function eE(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Rv=null;function Od(){return Rv==null&&(Rv=new Intl.DateTimeFormat().resolvedOptions().timeZone),Rv}function Id(e){return e.subtract({days:e.day-1})}function Cb(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function qz(e){return Id(e.subtract({months:e.month-1}))}function zz(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function Wz(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function sd(e,t,n){let r=c3(e,t,n);return e.subtract({days:r})}function Hz(e,t,n){return sd(e,t,n).add({days:6})}const tE=new Map;function Gz(e){if(Intl.Locale){let n=tE.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&tE.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function Yz(e){let t=Gz(e);return t&&Kz[t]||0}function XP(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((c3(Id(e),t,n)+r)/7)}function f3(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function d3(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function fc(e){e=On(e,new Yr);let t=kd(e.era,e.year);return JP(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function JP(e,t,n,r,i,s,a){let o=new Date;return o.setUTCHours(r,i,s,a),o.setUTCFullYear(e,t-1,n),o.getTime()}function Eb(e,t){if(t==="UTC")return 0;if(e>0&&t===Od())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:s,minute:a,second:o}=QP(e,t);return JP(n,r,i,s,a,o,0)-Math.floor(e/1e3)*1e3}const nE=new Map;function QP(e,t){let n=nE.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),nE.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let s of r)s.type!=="literal"&&(i[s.type]=s.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const rE=864e5;function Zz(e,t,n,r){return(n===r?[n]:[n,r]).filter(s=>Xz(e,t,s))}function Xz(e,t,n){let r=QP(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function Na(e,t,n="compatible"){let r=As(e);if(t==="UTC")return fc(r);if(t===Od()&&n==="compatible"){r=On(r,new Yr);let l=new Date,d=kd(r.era,r.year);return l.setFullYear(d,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let i=fc(r),s=Eb(i-rE,t),a=Eb(i+rE,t),o=Zz(r,t,i-s,i-a);if(o.length===1)return o[0];if(o.length>1)switch(n){case"compatible":case"earlier":return o[0];case"later":return o[o.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-s,i-a);case"compatible":case"later":return Math.max(i-s,i-a);case"reject":throw new RangeError("No such absolute time found")}}function e_(e,t,n="compatible"){return new Date(Na(e,t,n))}function ja(e,t){let n=Eb(e,t),r=new Date(e+n),i=r.getUTCFullYear(),s=r.getUTCMonth()+1,a=r.getUTCDate(),o=r.getUTCHours(),l=r.getUTCMinutes(),d=r.getUTCSeconds(),h=r.getUTCMilliseconds();return new ud(i<1?"BC":"AD",i<1?-i+1:i,s,a,t,n,o,l,d,h)}function Gr(e){return new Zn(e.calendar,e.era,e.year,e.month,e.day)}function As(e,t){let n=0,r=0,i=0,s=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:s}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:s}=t),new od(e.calendar,e.era,e.year,e.month,e.day,n,r,i,s)}function iE(e){return new Ld(e.hour,e.minute,e.second,e.millisecond)}function On(e,t){if(Im(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,zu(r),r}function t_(e,t,n){if(e instanceof ud)return e.timeZone===t?e:Qz(e,t);let r=Na(e,t,n);return ja(r,t)}function Jz(e){let t=fc(e)-e.offset;return new Date(t)}function Qz(e,t){let n=fc(e)-e.offset;return On(ja(n,t),e.calendar)}const bf=36e5;function Bm(e,t){let n=e.copy(),r="hour"in n?s_(n,t):0;Sb(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Db(n),n_(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,eW(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var s,a;let l=(s=(a=n.calendar).isInverseEra)===null||s===void 0?void 0:s.call(a,n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let o=n.calendar.getMonthsInYear(n);return n.month>o&&(n.month=o,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Sb(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function Db(e){for(;e.month<1;)Sb(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Sb(e,1)}function eW(e){for(;e.day<1;)e.month--,Db(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Db(e)}function n_(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function zu(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),n_(e)}function h3(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function r_(e,t){return Bm(e,h3(t))}function p3(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),zu(n),n}function ad(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),i_(n),n}function tW(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Uh(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Uh(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Uh(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Uh(e.hour,24),t}function i_(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Uh(e,t){let n=e%t;return n<0&&(n+=t),n}function s_(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,tW(e)}function a_(e,t){let n=e.copy();return s_(n,t),n}function nW(e,t){return a_(e,h3(t))}function m3(e,t,n,r){let i=e.copy();switch(t){case"era":{let o=e.calendar.getEras(),l=o.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=Ka(l,n,0,o.length-1,r==null?void 0:r.round),i.era=o[l],zu(i);break}case"year":var s,a;!((s=(a=i.calendar).isInverseEra)===null||s===void 0)&&s.call(a,i)&&(n=-n),i.year=Ka(e.year,n,-1/0,9999,r==null?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=Ka(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=Ka(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),zu(i),i}function g3(e,t,n,r){let i=e.copy();switch(t){case"hour":{let s=e.hour,a=0,o=23;if((r==null?void 0:r.hourCycle)===12){let l=s>=12;a=l?12:0,o=l?23:11}i.hour=Ka(s,n,a,o,r==null?void 0:r.round);break}case"minute":i.minute=Ka(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=Ka(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=Ka(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function Ka(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let s=Math.abs(t);t>0?e=Math.ceil(e/s)*s:e=Math.floor(e/s)*s,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function o_(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=Bm(As(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Na(i,e.timeZone)}else n=fc(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=ja(n,e.timeZone);return On(r,e.calendar)}function rW(e,t){return o_(e,h3(t))}function iW(e,t,n,r){switch(t){case"hour":{let i=0,s=23;if((r==null?void 0:r.hourCycle)===12){let x=e.hour>=12;i=x?12:0,s=x?23:11}let a=As(e),o=On(ad(a,{hour:i}),new Yr),l=[Na(o,e.timeZone,"earlier"),Na(o,e.timeZone,"later")].filter(x=>ja(x,e.timeZone).day===o.day)[0],d=On(ad(a,{hour:s}),new Yr),h=[Na(d,e.timeZone,"earlier"),Na(d,e.timeZone,"later")].filter(x=>ja(x,e.timeZone).day===d.day).pop(),m=fc(e)-e.offset,g=Math.floor(m/bf),b=m%bf;return m=Ka(g,n,Math.floor(l/bf),Math.floor(h/bf),r==null?void 0:r.round)*bf+b,On(ja(m,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return g3(e,t,n,r);case"era":case"year":case"month":case"day":{let i=m3(As(e),t,n,r),s=Na(i,e.timeZone);return On(ja(s,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function sW(e,t,n){let r=As(e),i=ad(p3(r,t),t);if(i.compare(r)===0)return e;let s=Na(i,e.timeZone,n);return On(ja(s,e.timeZone),e.calendar)}const aW=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,oW=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function uW(e){let t=e.match(aW);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new Zn(Ys(t[1],0,9999),Ys(t[2],1,12),1);return n.day=Ys(t[3],1,n.calendar.getDaysInMonth(n)),n}function lW(e){let t=e.match(oW);if(!t)throw new Error("Invalid ISO 8601 date time string: "+e);let n=Ys(t[1],-9999,9999),r=n<1?"BC":"AD",i=new od(r,n<1?-n+1:n,Ys(t[2],1,12),1,t[4]?Ys(t[4],0,23):0,t[5]?Ys(t[5],0,59):0,t[6]?Ys(t[6],0,59):0,t[7]?Ys(t[7],0,1/0)*1e3:0);return i.day=Ys(t[3],0,i.calendar.getDaysInMonth(i)),i}function Ys(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function u_(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function l_(e){let t=On(e,new Yr),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function c_(e){return`${l_(e)}T${u_(e)}`}function cW(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function fW(e){return`${c_(e)}${cW(e.offset)}[${e.timeZone}]`}function v3(e){let t=typeof e[0]=="object"?e.shift():new Yr,n;if(typeof e[0]=="string")n=e.shift();else{let a=t.getEras();n=a[a.length-1]}let r=e.shift(),i=e.shift(),s=e.shift();return[t,n,r,i,s]}var dW=new WeakMap;class Zn{copy(){return this.era?new Zn(this.calendar,this.era,this.year,this.month,this.day):new Zn(this.calendar,this.year,this.month,this.day)}add(t){return Bm(this,t)}subtract(t){return r_(this,t)}set(t){return p3(this,t)}cycle(t,n,r){return m3(this,t,n,r)}toDate(t){return e_(this,t)}toString(){return l_(this)}compare(t){return YP(this,t)}constructor(...t){Fd(this,dW,{writable:!0,value:void 0});let[n,r,i,s,a]=v3(t);this.calendar=n,this.era=r,this.year=i,this.month=s,this.day=a,zu(this)}}var hW=new WeakMap;class Ld{copy(){return new Ld(this.hour,this.minute,this.second,this.millisecond)}add(t){return a_(this,t)}subtract(t){return nW(this,t)}set(t){return ad(this,t)}cycle(t,n,r){return g3(this,t,n,r)}toString(){return u_(this)}compare(t){return ZP(this,t)}constructor(t=0,n=0,r=0,i=0){Fd(this,hW,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,i_(this)}}var pW=new WeakMap;class od{copy(){return this.era?new od(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new od(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Bm(this,t)}subtract(t){return r_(this,t)}set(t){return p3(ad(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return m3(this,t,n,r);default:return g3(this,t,n,r)}}toDate(t,n){return e_(this,t,n)}toString(){return c_(this)}compare(t){let n=YP(this,t);return n===0?ZP(this,As(t)):n}constructor(...t){Fd(this,pW,{writable:!0,value:void 0});let[n,r,i,s,a]=v3(t);this.calendar=n,this.era=r,this.year=i,this.month=s,this.day=a,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,zu(this)}}var mW=new WeakMap;class ud{copy(){return this.era?new ud(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new ud(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return o_(this,t)}subtract(t){return rW(this,t)}set(t,n){return sW(this,t,n)}cycle(t,n,r){return iW(this,t,n,r)}toDate(){return Jz(this)}toString(){return fW(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-t_(t,this.timeZone).toDate().getTime()}constructor(...t){Fd(this,mW,{writable:!0,value:void 0});let[n,r,i,s,a]=v3(t),o=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=s,this.day=a,this.timeZone=o,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,zu(this)}}const Xl=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],gW=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],pp=[1867,1911,1925,1988,2018],xo=["meiji","taisho","showa","heisei","reiwa"];function sE(e){const t=Xl.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?Xl.length-1:t===0?0:t-1}function kv(e){let t=pp[xo.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Zn(e.year+t,e.month,e.day)}class vW extends Yr{fromJulianDay(t){let n=super.fromJulianDay(t),r=sE(n);return new Zn(this,xo[r],n.year-pp[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(kv(t))}balanceDate(t){let n=kv(t),r=sE(n);xo[r]!==t.era&&(t.era=xo[r],t.year=n.year-pp[r]),this.constrainDate(t)}constrainDate(t){let n=xo.indexOf(t.era),r=gW[n];if(r!=null){let[i,s,a]=r,o=i-pp[n];t.year=Math.max(1,Math.min(o,t.year)),t.year===o&&(t.month=Math.min(s,t.month),t.month===s&&(t.day=Math.min(a,t.day)))}if(t.year===1&&n>=0){let[,i,s]=Xl[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(s,t.day))}}getEras(){return xo}getYearsInEra(t){let n=xo.indexOf(t.era),r=Xl[n],i=Xl[n+1];if(i==null)return 9999-r[0]+1;let s=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&s++,s}getDaysInMonth(t){return super.getDaysInMonth(kv(t))}getMinimumMonthInYear(t){let n=aE(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=aE(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function aE(e){if(e.year===1){let t=xo.indexOf(e.era);return Xl[t]}}const f_=-543;class yW extends Yr{fromJulianDay(t){let n=super.fromJulianDay(t),r=kd(n.era,n.year);return new Zn(this,r-f_,n.month,n.day)}toJulianDay(t){return super.toJulianDay(oE(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(oE(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function oE(e){let[t,n]=Om(e.year+f_);return new Zn(t,n,e.month,e.day)}const Wp=1911;function d_(e){return e.era==="minguo"?e.year+Wp:1-e.year+Wp}function uE(e){let t=e-Wp;return t>0?["minguo",t]:["before_minguo",1-t]}class bW extends Yr{fromJulianDay(t){let n=super.fromJulianDay(t),r=kd(n.era,n.year),[i,s]=uE(r);return new Zn(this,i,s,n.month,n.day)}toJulianDay(t){return super.toJulianDay(lE(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=uE(d_(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(lE(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Wp}constructor(...t){super(...t),this.identifier="roc"}}function lE(e){let[t,n]=Om(d_(e));return new Zn(t,n,e.month,e.day)}const cE=1948320,fE=[0,31,62,93,124,155,186,216,246,276,306,336];class $W{fromJulianDay(t){let n=t-cE,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),s=n-i,a=s<216?Math.floor(s/31):Math.floor((s-6)/30),o=s-fE[a]+1;return new Zn(this,r,a+1,o)}toJulianDay(t){let n=cE-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=fE[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Zl(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const Ov=78,dE=80;class xW extends Yr{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-Ov,i=t-$u(n.era,n.year,1,1),s;i<dE?(r--,s=Ao(n.year-1)?31:30,i+=s+155+90+10):(s=Ao(n.year)?31:30,i-=dE);let a,o;if(i<s)a=1,o=i+1;else{let l=i-s;l<155?(a=Math.floor(l/31)+2,o=l%31+1):(l-=155,a=Math.floor(l/30)+7,o=l%30+1)}return new Zn(this,r,a,o)}toJulianDay(t){let n=t.year+Ov,[r,i]=Om(n),s,a;return Ao(i)?(s=31,a=$u(r,i,3,21)):(s=30,a=$u(r,i,3,22)),t.month===1?a+t.day-1:(a+=s+Math.min(t.month-2,5)*31,t.month>=8&&(a+=(t.month-7)*30),a+=t.day-1,a)}getDaysInMonth(t){return t.month===1&&Ao(t.year+Ov)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Hp=1948440,hE=1948439,zi=1300,Ml=1600,wW=460322;function Gp(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function h_(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+Gp(t,r,1,1)))/29.5)+1),s=n-Gp(t,r,i,1)+1;return new Zn(e,r,i,s)}function pE(e){return(14+11*e)%30<11}class y3{fromJulianDay(t){return h_(this,Hp,t)}toJulianDay(t){return Gp(Hp,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&pE(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return pE(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class CW extends y3{fromJulianDay(t){return h_(this,hE,t)}toJulianDay(t){return Gp(hE,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const EW="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Ab,Jl;function mp(e){return wW+Jl[e-zi]}function Lf(e,t){let n=e-zi,r=1<<11-(t-1);return(Ab[n]&r)===0?29:30}function mE(e,t){let n=mp(e);for(let r=1;r<t;r++)n+=Lf(e,r);return n}function gE(e){return Jl[e+1-zi]-Jl[e-zi]}class SW extends y3{fromJulianDay(t){let n=t-Hp,r=mp(zi),i=mp(Ml);if(n<r||n>i)return super.fromJulianDay(t);{let s=zi-1,a=1,o=1;for(;o>0;){s++,o=n-mp(s)+1;let l=gE(s);if(o===l){a=12;break}else if(o<l){let d=Lf(s,a);for(a=1;o>d;)o-=d,a++,d=Lf(s,a);break}}return new Zn(this,s,a,n-mE(s,a)+1)}}toJulianDay(t){return t.year<zi||t.year>Ml?super.toJulianDay(t):Hp+mE(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<zi||t.year>Ml?super.getDaysInMonth(t):Lf(t.year,t.month)}getDaysInYear(t){return t.year<zi||t.year>Ml?super.getDaysInYear(t):gE(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Ab||(Ab=new Uint16Array(Uint8Array.from(atob(EW),t=>t.charCodeAt(0)).buffer)),!Jl){Jl=new Uint32Array(Ml-zi+1);let t=0;for(let n=zi;n<=Ml;n++){Jl[n-zi]=t;for(let r=1;r<=12;r++)t+=Lf(n,r)}}}}const vE=347997,p_=1080,m_=24*p_,DW=29,AW=12*p_+793,TW=DW*m_+AW;function gu(e){return Zl(e*7+1,19)<7}function gp(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Zl(3*(r+1),7)<3&&(r+=1),r}function PW(e){let t=gp(e-1),n=gp(e);return gp(e+1)-n===356?2:n-t===382?1:0}function Wf(e){return gp(e)+PW(e)}function g_(e){return Wf(e+1)-Wf(e)}function _W(e){let t=g_(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function qh(e,t){if(t>=6&&!gu(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=_W(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?gu(e)?30:0:30}class MW{fromJulianDay(t){let n=t-vE,r=n*m_/TW,i=Math.floor((19*r+234)/235)+1,s=Wf(i),a=Math.floor(n-s);for(;a<1;)i--,s=Wf(i),a=Math.floor(n-s);let o=1,l=0;for(;l<a;)l+=qh(i,o),o++;o--,l-=qh(i,o);let d=a-l;return new Zn(this,i,o,d)}toJulianDay(t){let n=Wf(t.year);for(let r=1;r<t.month;r++)n+=qh(t.year,r);return n+t.day+vE}getDaysInMonth(t){return qh(t.year,t.month)}getMonthsInYear(t){return gu(t.year)?13:12}getDaysInYear(t){return g_(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(gu(n.year)&&!gu(t.year)&&n.month>6?t.month--:!gu(n.year)&&gu(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Tb=1723856,yE=1824665,Pb=5500;function Yp(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function b3(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Yp(e,n,1,1))/30),i=t+1-Yp(e,n,r,1);return[n,r,i]}function v_(e){return Math.floor(e%4/3)}function y_(e,t){return t%13!==0?30:v_(e)+5}class $3{fromJulianDay(t){let[n,r,i]=b3(Tb,t),s="AM";return n<=0&&(s="AA",n+=Pb),new Zn(this,s,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Pb),Yp(Tb,n,t.month,t.day)}getDaysInMonth(t){return y_(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+v_(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class FW extends $3{fromJulianDay(t){let[n,r,i]=b3(Tb,t);return n+=Pb,new Zn(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class RW extends $3{fromJulianDay(t){let[n,r,i]=b3(yE,t),s="CE";return n<=0&&(s="BCE",n=1-n),new Zn(this,s,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Yp(yE,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),y_(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function kW(e){switch(e){case"buddhist":return new yW;case"ethiopic":return new $3;case"ethioaa":return new FW;case"coptic":return new RW;case"hebrew":return new MW;case"indian":return new xW;case"islamic-civil":return new y3;case"islamic-tbla":return new CW;case"islamic-umalqura":return new SW;case"japanese":return new vW;case"persian":return new $W;case"roc":return new bW;case"gregory":default:return new Yr}}let Iv=new Map;class Zi{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return LW()&&(this.resolvedHourCycle||(this.resolvedHourCycle=BW(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=b_(t,n),this.options=n}}const OW={true:{ja:"h11"},false:{}};function b_(e,t={}){if(typeof t.hour12=="boolean"&&IW()){t={...t};let i=OW[String(t.hour12)][e.split("-")[0]],s=t.hour12?"h12":"h23";t.hourCycle=i??s,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,s)=>i[0]<s[0]?-1:1).join():"");if(Iv.has(n))return Iv.get(n);let r=new Intl.DateTimeFormat(e,t);return Iv.set(n,r),r}let Lv=null;function IW(){return Lv==null&&(Lv=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Lv}let Bv=null;function LW(){return Bv==null&&(Bv=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Bv}function BW(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=b_(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(s=>s.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(s=>s.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function ea(e){e=PP(e??{},VW);let{locale:t}=Rr();return T.useMemo(()=>new Zi(t,e),[t,e])}function VW(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}let Vv=new Map,_b=!1;try{_b=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Zp=!1;try{Zp=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const $_={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class x_{format(t){let n="";if(!_b&&this.options.signDisplay!=null?n=jW(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Zp){var r;let{unit:i,unitDisplay:s="short",locale:a}=this.resolvedOptions();if(!i)return n;let o=(r=$_[i])===null||r===void 0?void 0:r[s];n+=o[a]||o.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!_b&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Zp&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=NW(t,n),this.options=n}}function NW(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Zp){var r;let{unit:a,unitDisplay:o="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=$_[a])===null||r===void 0)&&r[o]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${o}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((a,o)=>a[0]<o[0]?-1:1).join():"");if(Vv.has(i))return Vv.get(i);let s=new Intl.NumberFormat(e,t);return Vv.set(i,s),s}function jW(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),s=e.format(n),a=i.replace(s,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(s,"!!!").replace(a,"+").replace("!!!",s)}else return e.format(n)}}const KW=new RegExp("^.*\\(.*\\).*$"),UW=["latn","arab","hanidec","deva","beng"];class w_{parse(t){return Nv(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return Nv(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return Nv(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const bE=new Map;function Nv(e,t,n){let r=$E(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of UW)if(i!==r.options.numberingSystem){let s=$E(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(s.isValidPartialNumber(n))return s}}return r}function $E(e,t){let n=e+(t?Object.entries(t).sort((i,s)=>i[0]<s[0]?-1:1).join():""),r=bE.get(n);return r||(r=new qW(e,t),bE.set(n,r)),r}class qW{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=$f(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let a=n.indexOf("-");n=n.replace("-",""),n=n.replace("+","");let o=n.indexOf(".");o===-1&&(o=n.length),n=n.replace(".",""),o-2===0?n=`0.${n}`:o-2===-1?n=`0.0${n}`:o-2===-2?n="0.00":n=`${n.slice(0,o-2)}.${n.slice(o-2)}`,a>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,s;let a={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((s=this.options.maximumFractionDigits)!==null&&s!==void 0?s:0)+2,20)};return new w_(this.locale,a).parse(new x_(this.locale,a).format(r))}return this.options.currencySign==="accounting"&&KW.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=$f(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(t=$f(t," ",this.symbols.group),t=$f(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=$f(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=WW(t,this.formatter,this.options,n);var r,i;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const xE=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),zW=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function WW(e,t,n,r){var i,s,a,o;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),d=l.formatToParts(-10000.111),h=l.formatToParts(10000.111),m=zW.map(ae=>l.formatToParts(ae));var g;let b=(g=(i=d.find(ae=>ae.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&g!==void 0?g:"-",x=(s=h.find(ae=>ae.type==="plusSign"))===null||s===void 0?void 0:s.value;!x&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(x="+");let S=(a=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(ae=>ae.type==="decimal"))===null||a===void 0?void 0:a.value,E=(o=d.find(ae=>ae.type==="group"))===null||o===void 0?void 0:o.value,C=d.filter(ae=>!xE.has(ae.type)).map(ae=>wE(ae.value)),A=m.flatMap(ae=>ae.filter(I=>!xE.has(I.type)).map(I=>wE(I.value))),k=[...new Set([...C,...A])].sort((ae,I)=>I.length-ae.length),M=k.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${k.join("|")}|[\\p{White_Space}]`,"gu"),R=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),K=new Map(R.map((ae,I)=>[ae,I])),H=new RegExp(`[${R.join("")}]`,"g");return{minusSign:b,plusSign:x,decimal:S,group:E,literals:M,numeral:H,index:ae=>String(K.get(ae))}}function $f(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function wE(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function HW(e={}){let{locale:t}=Rr();return T.useMemo(()=>new x_(t,e),[t,e])}let jv=new Map;function C_(e){let{locale:t}=Rr(),n=t+(e?Object.entries(e).sort((i,s)=>i[0]<s[0]?-1:1).join():"");if(jv.has(n))return jv.get(n);let r=new Intl.Collator(t,e);return jv.set(n,r),r}function E_(e){let t=C_({usage:"search",...e}),n=T.useCallback((s,a)=>a.length===0?!0:(s=s.normalize("NFC"),a=a.normalize("NFC"),t.compare(s.slice(0,a.length),a)===0),[t]),r=T.useCallback((s,a)=>a.length===0?!0:(s=s.normalize("NFC"),a=a.normalize("NFC"),t.compare(s.slice(-a.length),a)===0),[t]),i=T.useCallback((s,a)=>{if(a.length===0)return!0;s=s.normalize("NFC"),a=a.normalize("NFC");let o=0,l=a.length;for(;o+l<=s.length;o++){let d=s.slice(o,o+l);if(t.compare(a,d)===0)return!0}return!1},[t]);return T.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function GW(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:s,onPressEnd:a,onPressUp:o,onPressChange:l,preventFocusOnPress:d,allowFocusWhenDisabled:h,onClick:m,href:g,target:b,rel:x,type:w="button"}=e,S;n==="button"?S={type:w,disabled:r}:S={role:"button",href:n==="a"&&!r?g:void 0,target:n==="a"?b:void 0,type:n==="input"?w:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?x:void 0};let{pressProps:E,isPressed:C}=Rd({onPressStart:s,onPressEnd:a,onPressChange:l,onPress:i,onPressUp:o,onClick:m,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:A}=l3(e,t);h&&(A.tabIndex=r?-1:A.tabIndex);let k=Qt(A,E,Qa(e,{labelable:!0}));return{isPressed:C,buttonProps:Qt(S,k,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}function YW(e){const t=Ha(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:s}=e.ownerDocument.defaultView;let{display:a,visibility:o}=s(e);i=a!=="none"&&o!=="hidden"&&o!=="collapse"}return i}function ZW(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function S_(e,t){return e.nodeName!=="#comment"&&YW(e)&&ZW(e,t)&&(!e.parentElement||S_(e.parentElement,e))}const CE=T.createContext(null),Mb="react-aria-focus-scope-restore";let vn=null;function XW(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,s=T.useRef(null),a=T.useRef(null),o=T.useRef([]),{parentNode:l}=T.useContext(CE)||{},d=T.useMemo(()=>new Rb({scopeRef:o}),[o]);pn(()=>{let g=l||er.root;if(er.getTreeNode(g.scopeRef)&&vn&&!Xp(vn,g.scopeRef)){let b=er.getTreeNode(vn);b&&(g=b)}g.addChild(d),er.addNode(d)},[d,l]),pn(()=>{let g=er.getTreeNode(o);g&&(g.contain=!!n)},[n]),pn(()=>{var g;let b=(g=s.current)===null||g===void 0?void 0:g.nextSibling,x=[],w=S=>S.stopPropagation();for(;b&&b!==a.current;)x.push(b),b.addEventListener(Mb,w),b=b.nextSibling;return o.current=x,()=>{for(let S of x)S.removeEventListener(Mb,w)}},[t]),nH(o,r,n),QW(o,n),rH(o,r,n),tH(o,i),T.useEffect(()=>{const g=mr(tn(o.current?o.current[0]:void 0));let b=null;if(rs(g,o.current)){for(let x of er.traverse())x.scopeRef&&rs(g,x.scopeRef.current)&&(b=x);b===er.getTreeNode(o)&&(vn=b.scopeRef)}},[o]),pn(()=>()=>{var g,b,x;let w=(x=(b=er.getTreeNode(o))===null||b===void 0||(g=b.parent)===null||g===void 0?void 0:g.scopeRef)!==null&&x!==void 0?x:null;(o===vn||Xp(o,vn))&&(!w||er.getTreeNode(w))&&(vn=w),er.removeTreeNode(o)},[o]);let h=T.useMemo(()=>JW(o),[]),m=T.useMemo(()=>({focusManager:h,parentNode:d}),[d,h]);return T.createElement(CE.Provider,{value:m},T.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:s}),t,T.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function JW(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:s,accept:a}=t;var o;let l=r||mr(tn((o=n[0])!==null&&o!==void 0?o:void 0)),d=n[0].previousElementSibling,h=xu(n),m=Ur(h,{tabbable:i,accept:a},n);m.currentNode=rs(l,n)?l:d;let g=m.nextNode();return!g&&s&&(m.currentNode=d,g=m.nextNode()),g&&si(g,!0),g},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:s,accept:a}=t;var o;let l=r||mr(tn((o=n[0])!==null&&o!==void 0?o:void 0)),d=n[n.length-1].nextElementSibling,h=xu(n),m=Ur(h,{tabbable:i,accept:a},n);m.currentNode=rs(l,n)?l:d;let g=m.previousNode();return!g&&s&&(m.currentNode=d,g=m.previousNode()),g&&si(g,!0),g},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,s=xu(n),a=Ur(s,{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let o=a.nextNode();return o&&si(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,s=xu(n),a=Ur(s,{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let o=a.previousNode();return o&&si(o,!0),o}}}function xu(e){return e[0].parentElement}function Bf(e){let t=er.getTreeNode(vn);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function QW(e,t){let n=T.useRef(void 0),r=T.useRef(void 0);pn(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const s=tn(i?i[0]:void 0);let a=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!Bf(e)||d.isComposing)return;let h=mr(s),m=e.current;if(!m||!rs(h,m))return;let g=xu(m),b=Ur(g,{tabbable:!0},m);if(!h)return;b.currentNode=h;let x=d.shiftKey?b.previousNode():b.nextNode();x||(b.currentNode=d.shiftKey?m[m.length-1].nextElementSibling:m[0].previousElementSibling,x=d.shiftKey?b.previousNode():b.nextNode()),d.preventDefault(),x&&si(x,!0)},o=d=>{(!vn||Xp(vn,e))&&rs(sn(d),e.current)?(vn=e,n.current=sn(d)):Bf(e)&&!To(sn(d),e)?n.current?n.current.focus():vn&&vn.current&&Fb(vn.current):Bf(e)&&(n.current=sn(d))},l=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let h=id(),m=(h==="virtual"||h===null)&&r3()&&SP(),g=mr(s);if(!m&&g&&Bf(e)&&!To(g,e)){vn=e;let x=sn(d);if(x&&x.isConnected){var b;n.current=x,(b=n.current)===null||b===void 0||b.focus()}else vn.current&&Fb(vn.current)}})};return s.addEventListener("keydown",a,!1),s.addEventListener("focusin",o,!1),i==null||i.forEach(d=>d.addEventListener("focusin",o,!1)),i==null||i.forEach(d=>d.addEventListener("focusout",l,!1)),()=>{s.removeEventListener("keydown",a,!1),s.removeEventListener("focusin",o,!1),i==null||i.forEach(d=>d.removeEventListener("focusin",o,!1)),i==null||i.forEach(d=>d.removeEventListener("focusout",l,!1))}},[e,t]),pn(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function D_(e){return To(e)}function rs(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function To(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of er.traverse(er.getTreeNode(t)))if(n&&rs(e,n.current))return!0;return!1}function eH(e){return To(e,vn)}function Xp(e,t){var n;let r=(n=er.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function si(e,t=!1){if(e!=null&&!t)try{qu(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function A_(e,t=!0){let n=e[0].previousElementSibling,r=xu(e),i=Ur(r,{tabbable:t},e);i.currentNode=n;let s=i.nextNode();return t&&!s&&(r=xu(e),i=Ur(r,{tabbable:!1},e),i.currentNode=n,s=i.nextNode()),s}function Fb(e,t=!0){si(A_(e,t))}function tH(e,t){const n=T.useRef(t);T.useEffect(()=>{if(n.current){vn=e;const r=tn(e.current?e.current[0]:void 0);!rs(mr(r),vn.current)&&e.current&&Fb(e.current)}n.current=!1},[e])}function nH(e,t,n){pn(()=>{if(t||n)return;let r=e.current;const i=tn(r?r[0]:void 0);let s=a=>{let o=sn(a);rs(o,e.current)?vn=e:D_(o)||(vn=null)};return i.addEventListener("focusin",s,!1),r==null||r.forEach(a=>a.addEventListener("focusin",s,!1)),()=>{i.removeEventListener("focusin",s,!1),r==null||r.forEach(a=>a.removeEventListener("focusin",s,!1))}},[e,t,n])}function EE(e){let t=er.getTreeNode(vn);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function rH(e,t,n){const r=T.useRef(typeof document<"u"?mr(tn(e.current?e.current[0]:void 0)):null);pn(()=>{let i=e.current;const s=tn(i?i[0]:void 0);if(!t||n)return;let a=()=>{(!vn||Xp(vn,e))&&rs(mr(s),e.current)&&(vn=e)};return s.addEventListener("focusin",a,!1),i==null||i.forEach(o=>o.addEventListener("focusin",a,!1)),()=>{s.removeEventListener("focusin",a,!1),i==null||i.forEach(o=>o.removeEventListener("focusin",a,!1))}},[e,n]),pn(()=>{const i=tn(e.current?e.current[0]:void 0);if(!t)return;let s=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!Bf(e)||a.isComposing)return;let o=i.activeElement;if(!To(o,e)||!EE(e))return;let l=er.getTreeNode(e);if(!l)return;let d=l.nodeToRestore,h=Ur(i.body,{tabbable:!0});h.currentNode=o;let m=a.shiftKey?h.previousNode():h.nextNode();if((!d||!d.isConnected||d===i.body)&&(d=void 0,l.nodeToRestore=void 0),(!m||!To(m,e))&&d){h.currentNode=d;do m=a.shiftKey?h.previousNode():h.nextNode();while(To(m,e));a.preventDefault(),a.stopPropagation(),m?si(m,!0):D_(d)?si(d,!0):o.blur()}};return n||i.addEventListener("keydown",s,!0),()=>{n||i.removeEventListener("keydown",s,!0)}},[e,t,n]),pn(()=>{const i=tn(e.current?e.current[0]:void 0);if(!t)return;let s=er.getTreeNode(e);if(s){var a;return s.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let o=er.getTreeNode(e);if(!o)return;let l=o.nodeToRestore,d=mr(i);if(t&&l&&(d&&To(d,e)||d===i.body&&EE(e))){let h=er.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let m=h.getTreeNode(e);for(;m;){if(m.nodeToRestore&&m.nodeToRestore.isConnected){SE(m.nodeToRestore);return}m=m.parent}for(m=h.getTreeNode(e);m;){if(m.scopeRef&&m.scopeRef.current&&er.getTreeNode(m.scopeRef)){let g=A_(m.scopeRef.current,!0);SE(g);return}m=m.parent}}})}}}},[e,t])}function SE(e){e.dispatchEvent(new CustomEvent(Mb,{bubbles:!0,cancelable:!0}))&&si(e)}function Ur(e,t,n){let r=t!=null&&t.tabbable?uz:_P,i=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,s=tn(i),a=Bq(s,e||s,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(o)?NodeFilter.FILTER_REJECT:r(o)&&S_(o)&&(!n||rs(o,n))&&(!(t!=null&&t.accept)||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(a.currentNode=t.from),a}function Vm(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:s=t.tabbable,wrap:a=t.wrap,accept:o=t.accept}=n,l=i||mr(tn(r)),d=Ur(r,{tabbable:s,accept:o});r.contains(l)&&(d.currentNode=l);let h=d.nextNode();return!h&&a&&(d.currentNode=r,h=d.nextNode()),h&&si(h,!0),h},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:s=t.tabbable,wrap:a=t.wrap,accept:o=t.accept}=n,l=i||mr(tn(r)),d=Ur(r,{tabbable:s,accept:o});if(r.contains(l))d.currentNode=l;else{let m=Kv(d);return m&&si(m,!0),m??null}let h=d.previousNode();if(!h&&a){d.currentNode=r;let m=Kv(d);if(!m)return null;h=m}return h&&si(h,!0),h??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:s=t.accept}=n,o=Ur(r,{tabbable:i,accept:s}).nextNode();return o&&si(o,!0),o},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:s=t.accept}=n,a=Ur(r,{tabbable:i,accept:s}),o=Kv(a);return o&&si(o,!0),o??null}}}function Kv(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class x3{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let s=new Rb({scopeRef:t});i.addChild(s),s.parent=i,this.fastMap.set(t,s),r&&(s.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let s of this.traverse())s!==n&&n.nodeToRestore&&s.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&rs(s.nodeToRestore,n.scopeRef.current)&&(s.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(s=>r&&r.addChild(s))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new x3;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Rb({scopeRef:null}),this.fastMap.set(null,this.root)}}class Rb{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let er=new x3;function T_(e){let t=sH(tn(e));t!==e&&(t&&iH(t,e),e&&P_(e,t))}function iH(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function P_(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function sH(e){let t=mr(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}var __={};__={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var M_={};M_={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var F_={};F_={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var R_={};R_={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var k_={};k_={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var O_={};O_={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var I_={};I_={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var L_={};L_={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var B_={};B_={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var V_={};V_={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var N_={};N_={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var j_={};j_={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var K_={};K_={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var U_={};U_={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var q_={};q_={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var z_={};z_={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var W_={};W_={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var H_={};H_={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var G_={};G_={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var Y_={};Y_={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var Z_={};Z_={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var X_={};X_={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var J_={};J_={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var Q_={};Q_={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var e6={};e6={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var t6={};t6={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var n6={};n6={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var r6={};r6={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var i6={};i6={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var s6={};s6={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var a6={};a6={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var o6={};o6={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var u6={};u6={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var l6={};l6={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var Bd={};Bd={"ar-AE":__,"bg-BG":M_,"cs-CZ":F_,"da-DK":R_,"de-DE":k_,"el-GR":O_,"en-US":I_,"es-ES":L_,"et-EE":B_,"fi-FI":V_,"fr-FR":N_,"he-IL":j_,"hr-HR":K_,"hu-HU":U_,"it-IT":q_,"ja-JP":z_,"ko-KR":W_,"lt-LT":H_,"lv-LV":G_,"nb-NO":Y_,"nl-NL":Z_,"pl-PL":X_,"pt-BR":J_,"pt-PT":Q_,"ro-RO":e6,"ru-RU":t6,"sk-SK":n6,"sl-SI":r6,"sr-SP":i6,"sv-SE":s6,"tr-TR":a6,"uk-UA":o6,"zh-CN":u6,"zh-TW":l6};function c6(e){return e&&e.__esModule?e.default:e}const w3=new WeakMap;function ld(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function aH(e){let t=fa(c6(Bd),"@react-aria/calendar"),n,r;var i;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=(i=e.value)!==null&&i!==void 0?i:void 0;let s=ea({weekday:"long",month:"long",year:"numeric",day:"numeric",era:ld(n)||ld(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return T.useMemo(()=>{if(!a&&n&&r)if(nr(n,r)){let o=s.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:o})}else{let o=Ob(s,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:o})}return""},[n,r,a,e.timeZone,t,s])}function kb(e,t,n,r){let i=fa(c6(Bd),"@react-aria/calendar"),s=ld(e)||ld(t),a=ea({month:"long",year:"numeric",era:s,calendar:e.calendar.identifier,timeZone:n}),o=ea({month:"long",year:"numeric",day:"numeric",era:s,calendar:e.calendar.identifier,timeZone:n});return T.useMemo(()=>{if(nr(e,Id(e))){let l=e,d=t;if(e.calendar.getFormattableMonth&&(l=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(d=t.calendar.getFormattableMonth(t)),nr(t,Cb(e)))return a.format(l.toDate(n));if(nr(t,Cb(t)))return r?Ob(a,i,l,d,n):a.formatRange(l.toDate(n),d.toDate(n))}return r?Ob(o,i,e,t,n):o.formatRange(e.toDate(n),t.toDate(n))},[e,t,a,o,i,n,r])}function Ob(e,t,n,r,i){let s=e.formatRangeToParts(n.toDate(i),r.toDate(i)),a=-1;for(let d=0;d<s.length;d++){let h=s[d];if(h.source==="shared"&&h.type==="literal")a=d;else if(h.source==="endRange")break}let o="",l="";for(let d=0;d<s.length;d++)d<a?o+=s[d].value:d>a&&(l+=s[d].value);return t.format("dateRange",{startDate:o,endDate:l})}const f6=7e3;let Ui=null;function Ql(e,t="assertive",n=f6){Ui?Ui.announce(e,t,n):(Ui=new uH,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Ui.announce(e,t,n):setTimeout(()=>{Ui!=null&&Ui.isAttached()&&(Ui==null||Ui.announce(e,t,n))},100))}function oH(e){Ui&&Ui.clear(e)}class uH{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=f6){var i,s;if(!this.node)return;let a=document.createElement("div");typeof t=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",t["aria-labelledby"])):a.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(a):(s=this.politeLog)===null||s===void 0||s.appendChild(a),t!==""&&setTimeout(()=>{a.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function lH(e){return e&&e.__esModule?e.default:e}function d6(e,t){let n=fa(lH(Bd),"@react-aria/calendar"),r=Qa(e),i=kb(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),s=kb(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);mb(()=>{t.isFocused||Ql(s)},[s]);let a=aH(t);mb(()=>{a&&Ql(a,"polite",4e3)},[a]);let o=uc([!!e.errorMessage,e.isInvalid,e.validationState]);w3.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:o,selectedDateDescription:a});let[l,d]=T.useState(!1),h=e.isDisabled||t.isNextVisibleRangeInvalid();h&&l&&(d(!1),t.setFocused(!0));let[m,g]=T.useState(!1),b=e.isDisabled||t.isPreviousVisibleRangeInvalid();b&&m&&(g(!1),t.setFocused(!0));let x=lc({id:e.id,"aria-label":[e["aria-label"],s].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:Qt(r,x,{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:h,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:b,onFocusChange:g},errorMessageProps:{id:o},title:i}}function cH(e,t){return d6(e,t)}function fH(e,t,n){let r=d6(e,t),i=T.useRef(!1),s=T.useRef(typeof window<"u"?window:null);return Qs(s,"pointerdown",o=>{i.current=o.width===0&&o.height===0}),Qs(s,"pointerup",o=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let l=o.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(l)||!l.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=o=>{n.current&&(!o.relatedTarget||!n.current.contains(o.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},Qs(n,"touchmove",o=>{t.isDragging&&o.preventDefault()},{passive:!1,capture:!0}),r}function dH(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:s}=Rr(),a=w=>{switch(w.key){case"Enter":case" ":w.preventDefault(),t.selectFocusedDate();break;case"PageUp":w.preventDefault(),w.stopPropagation(),t.focusPreviousSection(w.shiftKey);break;case"PageDown":w.preventDefault(),w.stopPropagation(),t.focusNextSection(w.shiftKey);break;case"End":w.preventDefault(),w.stopPropagation(),t.focusSectionEnd();break;case"Home":w.preventDefault(),w.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":w.preventDefault(),w.stopPropagation(),s==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":w.preventDefault(),w.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":w.preventDefault(),w.stopPropagation(),s==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":w.preventDefault(),w.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(w.preventDefault(),t.setAnchorDate(null));break}},o=kb(n,r,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:d}=w3.get(t),h=lc({"aria-label":[l,o].filter(Boolean).join(", "),"aria-labelledby":d}),m=ea({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:g}=Rr(),b=T.useMemo(()=>{let w=sd(Lm(t.timeZone),g,i);return[...new Array(7).keys()].map(S=>{let C=w.add({days:S}).toDate(t.timeZone);return m.format(C)})},[g,t.timeZone,m,i]),x=XP(n,g,i);return{gridProps:Qt(h,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:a,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:b,weeksInMonth:x}}function hH(e){return e&&e.__esModule?e.default:e}function pH(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:s,selectedDateDescription:a}=w3.get(t),o=fa(hH(Bd),"@react-aria/calendar"),l=ea({weekday:"long",day:"numeric",month:"long",year:"numeric",era:ld(r),timeZone:t.timeZone}),d=t.isSelected(r),h=t.isCellFocused(r);i=i||t.isCellDisabled(r);let m=t.isCellUnavailable(r),g=!i&&!m,b=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&nr(t.value,r));b&&(d=!0),r=PP(r,wb);let x=T.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),w=HP(r,t.timeZone),S=T.useMemo(()=>{let I="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(nr(r,t.value.start)||nr(r,t.value.end))&&(I=a+", "),I+=l.format(x),w?I=o.format(d?"todayDateSelected":"todayDate",{date:I}):d&&(I=o.format("dateSelected",{date:I})),t.minValue&&nr(r,t.minValue)?I+=", "+o.format("minimumDate"):t.maxValue&&nr(r,t.maxValue)&&(I+=", "+o.format("maximumDate")),I},[l,x,o,d,w,r,t,a]),E="";"anchorDate"in t&&h&&!t.isReadOnly&&g&&(t.anchorDate?E=o.format("finishRangeSelectionPrompt"):E=o.format("startRangeSelectionPrompt"));let C=Md(E),A=T.useRef(!1),k=T.useRef(!1),M=T.useRef(void 0),{pressProps:R,isPressed:K}=Rd({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!g||t.isReadOnly,onPressStart(I){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(I.pointerType==="mouse"||I.pointerType==="touch")){if(t.highlightedRange&&!b){if(nr(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),k.current=!0;return}else if(nr(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),k.current=!0;return}}let $e=()=>{t.setDragging(!0),M.current=void 0,t.selectDate(r),t.setFocusedDate(r),A.current=!0};I.pointerType==="touch"?M.current=setTimeout($e,200):$e()}},onPressEnd(){k.current=!1,A.current=!1,clearTimeout(M.current),M.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(I){if(!t.isReadOnly&&("anchorDate"in t&&M.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(k.current)t.setAnchorDate(r);else if(t.anchorDate&&!A.current)t.selectDate(r),t.setFocusedDate(r);else if(I.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let $e=r.add({days:1});t.isInvalid($e)&&($e=r.subtract({days:1})),t.isInvalid($e)||t.setFocusedDate($e)}else I.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),H;i||(H=nr(r,t.focusedDate)?0:-1),T.useEffect(()=>{h&&n.current&&(Di(n.current),id()!=="pointer"&&document.activeElement===n.current&&Kp(n.current,{containingElement:Rm(n.current)}))},[h,n]);let le=ea({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),ae=T.useMemo(()=>le.formatToParts(x).find(I=>I.type==="day").value,[le,x]);return{cellProps:{role:"gridcell","aria-disabled":!g||void 0,"aria-selected":d||void 0,"aria-invalid":b||void 0},buttonProps:Qt(R,{onFocus(){i||t.setFocusedDate(r)},tabIndex:H,role:"button","aria-disabled":!g||void 0,"aria-label":S,"aria-invalid":b||void 0,"aria-describedby":[b?s:void 0,C["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(I){"highlightDate"in t&&(I.pointerType!=="touch"||t.isDragging)&&g&&t.highlightDate(r)},onPointerDown(I){"releasePointerCapture"in I.target&&I.target.releasePointerCapture(I.pointerId)},onContextMenu(I){I.preventDefault()}}),isPressed:K,isFocused:h,isSelected:d,isDisabled:i,isUnavailable:m,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:b,formattedDate:ae}}const Nm={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},h6={...Nm,customError:!0,valid:!1},vu={isInvalid:!1,validationDetails:Nm,validationErrors:[]},mH=T.createContext({}),dc="__formValidationState"+Date.now();function Vd(e){if(e[dc]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:s}=e[dc];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:s}}return gH(e)}function gH(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:s,validate:a,validationBehavior:o="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:h6}:null,d=T.useMemo(()=>{if(!a||i==null)return null;let ae=vH(a,i);return DE(ae)},[a,i]);s!=null&&s.validationDetails.valid&&(s=void 0);let h=T.useContext(mH),m=T.useMemo(()=>r?Array.isArray(r)?r.flatMap(ae=>Ib(h[ae])):Ib(h[r]):[],[h,r]),[g,b]=T.useState(h),[x,w]=T.useState(!1);h!==g&&(b(h),w(!1));let S=T.useMemo(()=>DE(x?[]:m),[x,m]),E=T.useRef(vu),[C,A]=T.useState(vu),k=T.useRef(vu),M=()=>{if(!R)return;K(!1);let ae=d||s||E.current;Uv(ae,k.current)||(k.current=ae,A(ae))},[R,K]=T.useState(!1);return T.useEffect(M),{realtimeValidation:l||S||d||s||vu,displayValidation:o==="native"?l||S||C:l||S||d||s||C,updateValidation(ae){o==="aria"&&!Uv(C,ae)?A(ae):E.current=ae},resetValidation(){let ae=vu;Uv(ae,k.current)||(k.current=ae,A(ae)),o==="native"&&K(!1),w(!0)},commitValidation(){o==="native"&&K(!0),w(!0)}}}function Ib(e){return e?Array.isArray(e)?e:[e]:[]}function vH(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Ib(n)}return[]}function DE(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:h6}:null}function Uv(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function Jp(...e){let t=new Set,n=!1,r={...Nm};for(let a of e){var i,s;for(let o of a.validationErrors)t.add(o);n||(n=a.isInvalid);for(let o in r)(i=r)[s=o]||(i[s]=a.validationDetails[o])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function p6(e,t,n){let{validationBehavior:r,focus:i}=e;pn(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(bH(n.current))}});let s=kn(()=>{t.resetValidation()}),a=kn(l=>{var d;t.displayValidation.isInvalid||t.commitValidation();let h=n==null||(d=n.current)===null||d===void 0?void 0:d.form;if(!l.defaultPrevented&&n&&h&&$H(h)===n.current){var m;i?i():(m=n.current)===null||m===void 0||m.focus(),VP("keyboard")}l.preventDefault()}),o=kn(()=>{t.commitValidation()});T.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let d=l.form;return l.addEventListener("invalid",a),l.addEventListener("change",o),d==null||d.addEventListener("reset",s),()=>{l.removeEventListener("invalid",a),l.removeEventListener("change",o),d==null||d.removeEventListener("reset",s)}},[n,a,o,s,r])}function yH(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function bH(e){return{isInvalid:!e.validity.valid,validationDetails:yH(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function $H(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function jm(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:s="label"}=e;t=Hr(t);let a=Hr(),o={};n?(r=r?`${a} ${r}`:a,o={id:a,htmlFor:s==="label"?t:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=lc({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:o,fieldProps:l}}function Km(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:s,fieldProps:a}=jm(e),o=uc([!!t,!!n,r,i]),l=uc([!!t,!!n,r,i]);return a=Qt(a,{"aria-describedby":[o,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:a,descriptionProps:{id:o},errorMessageProps:{id:l}}}const xH=0,wH=100,CH=1;function EH(e){const{isDisabled:t=!1,minValue:n=xH,maxValue:r=wH,numberFormatter:i,step:s=CH,orientation:a="horizontal"}=e;let o=T.useMemo(()=>{let te=(r-n)/10;return te=yf(te,0,te+s,s),Math.max(te,s)},[s,r,n]),l=T.useCallback(te=>te==null?void 0:te.map((xe,De)=>{let _e=De===0?n:te[De-1],Me=De===te.length-1?r:te[De+1];return yf(xe,_e,Me,s)}),[n,r,s]),d=T.useMemo(()=>l(TE(e.value)),[e.value]),h=T.useMemo(()=>{var te;return l((te=TE(e.defaultValue))!==null&&te!==void 0?te:[n])},[e.defaultValue,n]),m=PE(e.value,e.defaultValue,e.onChange),g=PE(e.value,e.defaultValue,e.onChangeEnd);const[b,x]=Ai(d,h,m),[w,S]=T.useState(new Array(b.length).fill(!1)),E=T.useRef(new Array(b.length).fill(!0)),[C,A]=T.useState(void 0),k=T.useRef(b),M=T.useRef(w);let R=te=>{k.current=te,x(te)},K=te=>{M.current=te,S(te)};function H(te){return(te-n)/(r-n)}function le(te){return te===0?n:b[te-1]}function ae(te){return te===b.length-1?r:b[te+1]}function I(te){return E.current[te]}function $e(te,xe){E.current[te]=xe}function we(te,xe){if(t||!I(te))return;const De=le(te),_e=ae(te);xe=yf(xe,De,_e,s);let Me=AE(k.current,te,xe);R(Me)}function W(te,xe){if(t||!I(te))return;xe&&(k.current=b);const De=M.current[te];M.current=AE(M.current,te,xe),K(M.current),g&&De&&!M.current.some(Boolean)&&g(k.current)}function ie(te){return i.format(te)}function O(te,xe){we(te,B(xe))}function L(te){return Math.round((te-n)/s)*s+n}function B(te){const xe=te*(r-n)+n;return cc(L(xe),n,r)}function he(te,xe=1){let De=Math.max(xe,s);we(te,yf(b[te]+De,n,r,s))}function U(te,xe=1){let De=Math.max(xe,s);we(te,yf(b[te]-De,n,r,s))}return{values:b,getThumbValue:te=>b[te],setThumbValue:we,setThumbPercent:O,isThumbDragging:te=>w[te],setThumbDragging:W,focusedThumb:C,setFocusedThumb:A,getThumbPercent:te=>H(b[te]),getValuePercent:H,getThumbValueLabel:te=>ie(b[te]),getFormattedValue:ie,getThumbMinValue:le,getThumbMaxValue:ae,getPercentValue:B,isThumbEditable:I,setThumbEditable:$e,incrementThumb:he,decrementThumb:U,step:s,pageSize:o,orientation:a,isDisabled:t}}function AE(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function TE(e){if(e!=null)return Array.isArray(e)?e:[e]}function PE(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const _E={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function SH(e={}){let{style:t,isFocusable:n}=e,[r,i]=T.useState(!1),{focusWithinProps:s}=wc({isDisabled:!n,onFocusWithinChange:o=>i(o)}),a=T.useMemo(()=>r?t:t?{..._E,...t}:_E,[r]);return{visuallyHiddenProps:{...s,style:a}}}function DH(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...s}=e,{visuallyHiddenProps:a}=SH(e);return T.createElement(n,Qt(s,a),t)}const C3=new WeakMap;function Lb(e,t){let n=C3.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function AH(e,t,n){let{labelProps:r,fieldProps:i}=jm(e),s=e.orientation==="vertical";var a;C3.set(t,{id:(a=r.id)!==null&&a!==void 0?a:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:o}=Rr(),{addGlobalListener:l,removeGlobalListener:d}=Io();const h=T.useRef(null),m=o==="rtl",g=T.useRef(null),{moveProps:b}=jP({onMoveStart(){g.current=null},onMove({deltaX:E,deltaY:C}){if(!n.current)return;let{height:A,width:k}=n.current.getBoundingClientRect(),M=s?A:k;g.current==null&&h.current!=null&&(g.current=t.getThumbPercent(h.current)*M);let R=s?C:E;if((s||m)&&(R=-R),g.current+=R,h.current!=null&&n.current){const K=cc(g.current/M,0,1);t.setThumbPercent(h.current,K)}},onMoveEnd(){h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null)}});let x=T.useRef(void 0),w=(E,C,A,k)=>{if(n.current&&!e.isDisabled&&t.values.every((M,R)=>!t.isThumbDragging(R))){let{height:M,width:R,top:K,left:H}=n.current.getBoundingClientRect(),le=s?M:R,we=((s?k:A)-(s?K:H))/le;(o==="rtl"||s)&&(we=1-we);let W=t.getPercentValue(we),ie,O=t.values.findIndex(L=>W-L<0);if(O===0)ie=O;else if(O===-1)ie=t.values.length-1;else{let L=t.values[O-1],B=t.values[O];Math.abs(L-W)<Math.abs(B-W)?ie=O-1:ie=O}ie>=0&&t.isThumbEditable(ie)?(E.preventDefault(),h.current=ie,t.setFocusedThumb(ie),x.current=C,t.setThumbDragging(h.current,!0),t.setThumbValue(ie,W),l(window,"mouseup",S,!1),l(window,"touchend",S,!1),l(window,"pointerup",S,!1)):h.current=null}},S=E=>{var C,A;((A=E.pointerId)!==null&&A!==void 0?A:(C=E.changedTouches)===null||C===void 0?void 0:C[0].identifier)===x.current&&(h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null),d(window,"mouseup",S,!1),d(window,"touchend",S,!1),d(window,"pointerup",S,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var E;(E=document.getElementById(Lb(t,0)))===null||E===void 0||E.focus(),VP("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:Qt({onMouseDown(E){E.button!==0||E.altKey||E.ctrlKey||E.metaKey||w(E,void 0,E.clientX,E.clientY)},onPointerDown(E){E.pointerType==="mouse"&&(E.button!==0||E.altKey||E.ctrlKey||E.metaKey)||w(E,E.pointerId,E.clientX,E.clientY)},onTouchStart(E){w(E,E.changedTouches[0].identifier,E.changedTouches[0].clientX,E.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},b),outputProps:{htmlFor:t.values.map((E,C)=>Lb(t,C)).join(" "),"aria-live":"off"}}}function TH(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:s,trackRef:a,inputRef:o,orientation:l=t.orientation,name:d}=e,h=e.isDisabled||t.isDisabled,m=l==="vertical",{direction:g}=Rr(),{addGlobalListener:b,removeGlobalListener:x}=Io(),w=C3.get(t);var S;const{labelProps:E,fieldProps:C}=jm({...e,id:Lb(t,n),"aria-labelledby":`${w.id} ${(S=e["aria-labelledby"])!==null&&S!==void 0?S:""}`.trim()}),A=t.values[n],k=T.useCallback(()=>{o.current&&Di(o.current)},[o]),M=t.focusedThumb===n;T.useEffect(()=>{M&&k()},[M,k]);let R=g==="rtl",K=T.useRef(null),{keyboardProps:H}=NP({onKeyDown(O){let{getThumbMaxValue:L,getThumbMinValue:B,decrementThumb:he,incrementThumb:U,setThumbValue:te,setThumbDragging:xe,pageSize:De}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(O.key)){O.continuePropagation();return}switch(O.preventDefault(),xe(n,!0),O.key){case"PageUp":U(n,De);break;case"PageDown":he(n,De);break;case"Home":te(n,B(n));break;case"End":te(n,L(n));break}xe(n,!1)}}),{moveProps:le}=jP({onMoveStart(){K.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:O,deltaY:L,pointerType:B,shiftKey:he}){const{getThumbPercent:U,setThumbPercent:te,decrementThumb:xe,incrementThumb:De,step:_e,pageSize:Me}=t;if(!a.current)return;let{width:Ye,height:Ge}=a.current.getBoundingClientRect(),Ae=m?Ge:Ye;if(K.current==null&&(K.current=U(n)*Ae),B==="keyboard")O>0&&R||O<0&&!R||L>0?xe(n,he?Me:_e):De(n,he?Me:_e);else{let Ke=m?L:O;(m||R)&&(Ke=-Ke),K.current+=Ke,te(n,cc(K.current/Ae,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!h);const{focusableProps:ae}=l3(Qt(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),o);let I=T.useRef(void 0),$e=O=>{k(),I.current=O,t.setThumbDragging(n,!0),b(window,"mouseup",we,!1),b(window,"touchend",we,!1),b(window,"pointerup",we,!1)},we=O=>{var L,B;((B=O.pointerId)!==null&&B!==void 0?B:(L=O.changedTouches)===null||L===void 0?void 0:L[0].identifier)===I.current&&(k(),t.setThumbDragging(n,!1),x(window,"mouseup",we,!1),x(window,"touchend",we,!1),x(window,"pointerup",we,!1))},W=t.getThumbPercent(n);(m||g==="rtl")&&(W=1-W);let ie=h?{}:Qt(H,le,{onMouseDown:O=>{O.button!==0||O.altKey||O.ctrlKey||O.metaKey||$e()},onPointerDown:O=>{O.button!==0||O.altKey||O.ctrlKey||O.metaKey||$e(O.pointerId)},onTouchStart:O=>{$e(O.changedTouches[0].identifier)}});return i3(o,A,O=>{t.setThumbValue(n,O)}),{inputProps:Qt(ae,C,{type:"range",tabIndex:h?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:A,name:d,disabled:h,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":s||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[w["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[w["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:O=>{t.setThumbValue(n,parseFloat(O.target.value))}}),thumbProps:{...ie,style:{position:"absolute",[m?"top":"left"]:`${W*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:E,isDragging:t.isThumbDragging(n),isDisabled:h,isFocused:M}}function PH(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:s=!1,type:a="text",validationBehavior:o="aria"}=e,[l,d]=Ai(e.value,e.defaultValue||"",e.onChange),{focusableProps:h}=l3(e,t),m=Vd({...e,value:l}),{isInvalid:g,validationErrors:b,validationDetails:x}=m.displayValidation,{labelProps:w,fieldProps:S,descriptionProps:E,errorMessageProps:C}=Km({...e,isInvalid:g,errorMessage:e.errorMessage||b}),A=Qa(e,{labelable:!0});const k={type:a,pattern:e.pattern};return i3(t,l,d),p6(e,m,t),T.useEffect(()=>{if(t.current instanceof Ha(t.current).HTMLTextAreaElement){let M=t.current;Object.defineProperty(M,"defaultValue",{get:()=>M.value,set:()=>{},configurable:!0})}},[t]),{labelProps:w,inputProps:Qt(A,n==="input"?k:void 0,{disabled:r,readOnly:s,required:i&&o==="native","aria-required":i&&o==="aria"||void 0,"aria-invalid":g||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:M=>d(M.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(T.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...h,...S}),descriptionProps:E,errorMessageProps:C,isInvalid:g,validationErrors:b,validationDetails:x}}var m6={};m6={Empty:"فارغ"};var g6={};g6={Empty:"Изпразни"};var v6={};v6={Empty:"Prázdné"};var y6={};y6={Empty:"Tom"};var b6={};b6={Empty:"Leer"};var $6={};$6={Empty:"Άδειο"};var x6={};x6={Empty:"Empty"};var w6={};w6={Empty:"Vacío"};var C6={};C6={Empty:"Tühjenda"};var E6={};E6={Empty:"Tyhjä"};var S6={};S6={Empty:"Vide"};var D6={};D6={Empty:"ריק"};var A6={};A6={Empty:"Prazno"};var T6={};T6={Empty:"Üres"};var P6={};P6={Empty:"Vuoto"};var _6={};_6={Empty:"空"};var M6={};M6={Empty:"비어 있음"};var F6={};F6={Empty:"Tuščias"};var R6={};R6={Empty:"Tukšs"};var k6={};k6={Empty:"Tom"};var O6={};O6={Empty:"Leeg"};var I6={};I6={Empty:"Pusty"};var L6={};L6={Empty:"Vazio"};var B6={};B6={Empty:"Vazio"};var V6={};V6={Empty:"Gol"};var N6={};N6={Empty:"Не заполнено"};var j6={};j6={Empty:"Prázdne"};var K6={};K6={Empty:"Prazen"};var U6={};U6={Empty:"Prazno"};var q6={};q6={Empty:"Tomt"};var z6={};z6={Empty:"Boş"};var W6={};W6={Empty:"Пусто"};var H6={};H6={Empty:"空"};var G6={};G6={Empty:"空白"};var Y6={};Y6={"ar-AE":m6,"bg-BG":g6,"cs-CZ":v6,"da-DK":y6,"de-DE":b6,"el-GR":$6,"en-US":x6,"es-ES":w6,"et-EE":C6,"fi-FI":E6,"fr-FR":S6,"he-IL":D6,"hr-HR":A6,"hu-HU":T6,"it-IT":P6,"ja-JP":_6,"ko-KR":M6,"lt-LT":F6,"lv-LV":R6,"nb-NO":k6,"nl-NL":O6,"pl-PL":I6,"pt-BR":L6,"pt-PT":B6,"ro-RO":V6,"ru-RU":N6,"sk-SK":j6,"sl-SI":K6,"sr-SP":U6,"sv-SE":q6,"tr-TR":z6,"uk-UA":W6,"zh-CN":H6,"zh-TW":G6};function _H(e){return e&&e.__esModule?e.default:e}function MH(e){const t=T.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:s,isDisabled:a,isReadOnly:o,isRequired:l,onIncrement:d,onIncrementPage:h,onDecrement:m,onDecrementPage:g,onDecrementToMin:b,onIncrementToMax:x}=e;const w=fa(_H(Y6),"@react-aria/spinbutton"),S=()=>clearTimeout(t.current);T.useEffect(()=>()=>S(),[]);let E=I=>{if(!(I.ctrlKey||I.metaKey||I.shiftKey||I.altKey||o))switch(I.key){case"PageUp":if(h){I.preventDefault(),h==null||h();break}case"ArrowUp":case"Up":d&&(I.preventDefault(),d==null||d());break;case"PageDown":if(g){I.preventDefault(),g==null||g();break}case"ArrowDown":case"Down":m&&(I.preventDefault(),m==null||m());break;case"Home":b&&(I.preventDefault(),b==null||b());break;case"End":x&&(I.preventDefault(),x==null||x());break}},C=T.useRef(!1),A=()=>{C.current=!0},k=()=>{C.current=!1},M=r===""?w.format("Empty"):(r||`${n}`).replace("-","−");T.useEffect(()=>{C.current&&(oH("assertive"),Ql(M,"assertive"))},[M]);const R=kn(I=>{S(),d==null||d(),t.current=window.setTimeout(()=>{(s===void 0||isNaN(s)||n===void 0||isNaN(n)||n<s)&&R(60)},I)}),K=kn(I=>{S(),m==null||m(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&K(60)},I)});let H=I=>{I.preventDefault()},{addGlobalListener:le,removeAllGlobalListeners:ae}=Io();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":M,"aria-valuemin":i,"aria-valuemax":s,"aria-disabled":a||void 0,"aria-readonly":o||void 0,"aria-required":l||void 0,onKeyDown:E,onFocus:A,onBlur:k},incrementButtonProps:{onPressStart:()=>{R(400),le(window,"contextmenu",H)},onPressEnd:()=>{S(),ae()},onFocus:A,onBlur:k},decrementButtonProps:{onPressStart:()=>{K(400),le(window,"contextmenu",H)},onPressEnd:()=>{S(),ae()},onFocus:A,onBlur:k}}}var Z6={};Z6={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var X6={};X6={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var J6={};J6={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var Q6={};Q6={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var eM={};eM={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var tM={};tM={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var nM={};nM={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var rM={};rM={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var iM={};iM={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var sM={};sM={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var aM={};aM={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var oM={};oM={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var uM={};uM={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var lM={};lM={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var cM={};cM={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var fM={};fM={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var dM={};dM={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var hM={};hM={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var pM={};pM={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var mM={};mM={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var gM={};gM={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var vM={};vM={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var yM={};yM={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var bM={};bM={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var $M={};$M={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var xM={};xM={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var wM={};wM={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var CM={};CM={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var EM={};EM={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var SM={};SM={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var DM={};DM={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var AM={};AM={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var TM={};TM={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var PM={};PM={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};var _M={};_M={"ar-AE":Z6,"bg-BG":X6,"cs-CZ":J6,"da-DK":Q6,"de-DE":eM,"el-GR":tM,"en-US":nM,"es-ES":rM,"et-EE":iM,"fi-FI":sM,"fr-FR":aM,"he-IL":oM,"hr-HR":uM,"hu-HU":lM,"it-IT":cM,"ja-JP":fM,"ko-KR":dM,"lt-LT":hM,"lv-LV":pM,"nb-NO":mM,"nl-NL":gM,"pl-PL":vM,"pt-BR":yM,"pt-PT":bM,"ro-RO":$M,"ru-RU":xM,"sk-SK":wM,"sl-SI":CM,"sr-SP":EM,"sv-SE":SM,"tr-TR":DM,"uk-UA":AM,"zh-CN":TM,"zh-TW":PM};const ta={top:"top",bottom:"top",left:"left",right:"left"},Qp={top:"bottom",bottom:"top",left:"right",right:"left"},FH={top:"left",left:"top"},Bb={top:"height",left:"width"},MM={width:"totalWidth",height:"totalHeight"},zh={};let pr=typeof document<"u"?window.visualViewport:null;function ME(e){let t=0,n=0,r=0,i=0,s=0,a=0,o={};var l;let d=((l=pr==null?void 0:pr.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let x=document.documentElement;r=x.clientWidth,i=x.clientHeight;var h;t=(h=pr==null?void 0:pr.width)!==null&&h!==void 0?h:r;var m;n=(m=pr==null?void 0:pr.height)!==null&&m!==void 0?m:i,o.top=x.scrollTop||e.scrollTop,o.left=x.scrollLeft||e.scrollLeft,pr&&(s=pr.offsetTop,a=pr.offsetLeft)}else({width:t,height:n,top:s,left:a}=ec(e)),o.top=e.scrollTop,o.left=e.scrollLeft,r=t,i=n;if(n3()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d){o.top=0,o.left=0;var g;s=(g=pr==null?void 0:pr.pageTop)!==null&&g!==void 0?g:0;var b;a=(b=pr==null?void 0:pr.pageLeft)!==null&&b!==void 0?b:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:o,top:s,left:a}}function RH(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function FE(e,t,n,r,i,s,a){var o;let l=(o=i.scroll[e])!==null&&o!==void 0?o:0,d=r[Bb[e]],h=r.scroll[ta[e]]+s,m=d+r.scroll[ta[e]]-s,g=t-l+a[e]-r[ta[e]],b=t-l+n+a[e]-r[ta[e]];return g<h?h-g:b>m?Math.max(m-b,h-g):0}function kH(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function RE(e){if(zh[e])return zh[e];let[t,n]=e.split(" "),r=ta[t]||"right",i=FH[r];ta[n]||(n="center");let s=Bb[r],a=Bb[i];return zh[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:s,crossSize:a},zh[e]}function qv(e,t,n,r,i,s,a,o,l,d){let{placement:h,crossPlacement:m,axis:g,crossAxis:b,size:x,crossSize:w}=r,S={};var E;S[b]=(E=e[b])!==null&&E!==void 0?E:0;var C,A,k,M;m==="center"?S[b]+=(((C=e[w])!==null&&C!==void 0?C:0)-((A=n[w])!==null&&A!==void 0?A:0))/2:m!==b&&(S[b]+=((k=e[w])!==null&&k!==void 0?k:0)-((M=n[w])!==null&&M!==void 0?M:0)),S[b]+=s;const R=e[b]-n[w]+l+d,K=e[b]+e[w]-l-d;if(S[b]=cc(S[b],R,K),h===g){const H=o?a[x]:t[MM[x]];S[Qp[g]]=Math.floor(H-e[g]+i)}else S[g]=Math.floor(e[g]+e[x]+i);return S}function OH(e,t,n,r,i,s,a,o){const l=r?n.height:t[MM.height];var d;let h=e.top!=null?n.top+e.top:n.top+(l-((d=e.bottom)!==null&&d!==void 0?d:0)-a);var m,g,b,x,w,S;let E=o!=="top"?Math.max(0,t.height+t.top+((m=t.scroll.top)!==null&&m!==void 0?m:0)-h-(((g=i.top)!==null&&g!==void 0?g:0)+((b=i.bottom)!==null&&b!==void 0?b:0)+s)):Math.max(0,h+a-(t.top+((x=t.scroll.top)!==null&&x!==void 0?x:0))-(((w=i.top)!==null&&w!==void 0?w:0)+((S=i.bottom)!==null&&S!==void 0?S:0)+s));return Math.min(t.height-s*2,E)}function kE(e,t,n,r,i,s){let{placement:a,axis:o,size:l}=s;var d,h;if(a===o)return Math.max(0,n[o]-e[o]-((d=e.scroll[o])!==null&&d!==void 0?d:0)+t[o]-((h=r[o])!==null&&h!==void 0?h:0)-r[Qp[o]]-i);var m;return Math.max(0,e[l]+e[o]+e.scroll[o]-t[o]-n[o]-n[l]-((m=r[o])!==null&&m!==void 0?m:0)-r[Qp[o]]-i)}function IH(e,t,n,r,i,s,a,o,l,d,h,m,g,b,x,w){let S=RE(e),{size:E,crossAxis:C,crossSize:A,placement:k,crossPlacement:M}=S,R=qv(t,o,n,S,h,m,d,g,x,w),K=h,H=kE(o,d,t,i,s+h,S);if(a&&r[E]>H){let _e=RE(`${Qp[k]} ${M}`),Me=qv(t,o,n,_e,h,m,d,g,x,w);kE(o,d,t,i,s+h,_e)>H&&(S=_e,R=Me,K=h)}let le="bottom";S.axis==="top"?S.placement==="top"?le="top":S.placement==="bottom"&&(le="bottom"):S.crossAxis==="top"&&(S.crossPlacement==="top"?le="bottom":S.crossPlacement==="bottom"&&(le="top"));let ae=FE(C,R[C],n[A],o,l,s,d);R[C]+=ae;let I=OH(R,o,d,g,i,s,n.height,le);b&&b<I&&(I=b),n.height=Math.min(n.height,I),R=qv(t,o,n,S,K,m,d,g,x,w),ae=FE(C,R[C],n[A],o,l,s,d),R[C]+=ae;let $e={},we=t[C]+.5*t[A]-R[C]-i[ta[C]];const W=x/2+w;var ie,O,L,B;const he=ta[C]==="left"?((ie=i.left)!==null&&ie!==void 0?ie:0)+((O=i.right)!==null&&O!==void 0?O:0):((L=i.top)!==null&&L!==void 0?L:0)+((B=i.bottom)!==null&&B!==void 0?B:0),U=n[A]-he-x/2-w,te=t[C]+x/2-(R[C]+i[ta[C]]),xe=t[C]+t[A]-x/2-(R[C]+i[ta[C]]),De=cc(we,te,xe);return $e[C]=cc(De,W,U),{position:R,maxHeight:I,arrowOffsetLeft:$e.left,arrowOffsetTop:$e.top,placement:S.placement}}function LH(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:s,shouldFlip:a,boundaryElement:o,offset:l,crossOffset:d,maxHeight:h,arrowSize:m=0,arrowBoundaryOffset:g=0}=e,b=r instanceof HTMLElement?BH(r):document.documentElement,x=b===document.documentElement;const w=window.getComputedStyle(b).position;let S=!!w&&w!=="static",E=x?ec(n):OE(n,b);if(!x){let{marginTop:$e,marginLeft:we}=window.getComputedStyle(n);E.top+=parseInt($e,10)||0,E.left+=parseInt(we,10)||0}let C=ec(r),A=kH(r);var k,M;C.width+=((k=A.left)!==null&&k!==void 0?k:0)+((M=A.right)!==null&&M!==void 0?M:0);var R,K;C.height+=((R=A.top)!==null&&R!==void 0?R:0)+((K=A.bottom)!==null&&K!==void 0?K:0);let H=RH(i),le=ME(o),ae=ME(b),I=o.tagName==="BODY"?ec(b):OE(b,o);return b.tagName==="HTML"&&o.tagName==="BODY"&&(ae.scroll.top=0,ae.scroll.left=0),IH(t,E,C,H,A,s,a,le,ae,I,l,d,S,h,m,g)}function ec(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:s,scrollLeft:a,clientTop:o,clientLeft:l}=document.documentElement;return{top:t+s-o,left:n+a-l,width:r,height:i}}function OE(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:s,width:a,height:o}=e.getBoundingClientRect();r={top:i,left:s,width:a,height:o}}else{r=ec(e);let i=ec(t),s=window.getComputedStyle(t);i.top+=(parseInt(s.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(s.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function BH(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!IE(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!IE(t);)t=t.parentElement;return t||document.documentElement}function IE(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const FM=new WeakMap;function VH(e){let{triggerRef:t,isOpen:n,onClose:r}=e;T.useEffect(()=>{if(!n||r===null)return;let i=s=>{let a=s.target;if(!t.current||a instanceof Node&&!a.contains(t.current)||s.target instanceof HTMLInputElement||s.target instanceof HTMLTextAreaElement)return;let o=r||FM.get(t.current);o&&o()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let Hn=typeof document<"u"?window.visualViewport:null;function NH(e){let{direction:t}=Rr(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:s=i,placement:a="bottom",containerPadding:o=12,shouldFlip:l=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:h=0,crossOffset:m=0,shouldUpdatePosition:g=!0,isOpen:b=!0,onClose:x,maxHeight:w,arrowBoundaryOffset:S=0}=e,[E,C]=T.useState(null),A=[g,a,i.current,r.current,s.current,o,l,d,h,m,b,t,w,S,n],k=T.useRef(Hn==null?void 0:Hn.scale);T.useEffect(()=>{b&&(k.current=Hn==null?void 0:Hn.scale)},[b]);let M=T.useCallback(()=>{if(g===!1||!b||!i.current||!r.current||!d||(Hn==null?void 0:Hn.scale)!==k.current)return;let ae=null;if(s.current&&s.current.contains(document.activeElement)){var I;let B=(I=document.activeElement)===null||I===void 0?void 0:I.getBoundingClientRect(),he=s.current.getBoundingClientRect();var $e;if(ae={type:"top",offset:(($e=B==null?void 0:B.top)!==null&&$e!==void 0?$e:0)-he.top},ae.offset>he.height/2){ae.type="bottom";var we;ae.offset=((we=B==null?void 0:B.bottom)!==null&&we!==void 0?we:0)-he.bottom}}let W=i.current;if(!w&&i.current){var ie;W.style.top="0px",W.style.bottom="";var O;W.style.maxHeight=((O=(ie=window.visualViewport)===null||ie===void 0?void 0:ie.height)!==null&&O!==void 0?O:window.innerHeight)+"px"}let L=LH({placement:KH(a,t),overlayNode:i.current,targetNode:r.current,scrollNode:s.current||i.current,padding:o,shouldFlip:l,boundaryElement:d,offset:h,crossOffset:m,maxHeight:w,arrowSize:n,arrowBoundaryOffset:S});if(L.position){if(W.style.top="",W.style.bottom="",W.style.left="",W.style.right="",Object.keys(L.position).forEach(B=>W.style[B]=L.position[B]+"px"),W.style.maxHeight=L.maxHeight!=null?L.maxHeight+"px":"",ae&&document.activeElement&&s.current){let B=document.activeElement.getBoundingClientRect(),he=s.current.getBoundingClientRect(),U=B[ae.type]-he[ae.type];s.current.scrollTop+=U-ae.offset}C(L)}},A);pn(M,A),jH(M),IC({ref:i,onResize:M}),IC({ref:r,onResize:M});let R=T.useRef(!1);pn(()=>{let ae,I=()=>{R.current=!0,clearTimeout(ae),ae=setTimeout(()=>{R.current=!1},500),M()},$e=()=>{R.current&&I()};return Hn==null||Hn.addEventListener("resize",I),Hn==null||Hn.addEventListener("scroll",$e),()=>{Hn==null||Hn.removeEventListener("resize",I),Hn==null||Hn.removeEventListener("scroll",$e)}},[M]);let K=T.useCallback(()=>{R.current||x==null||x()},[x,R]);VH({triggerRef:r,isOpen:b,onClose:x&&K});var H,le;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...E==null?void 0:E.position,maxHeight:(H=E==null?void 0:E.maxHeight)!==null&&H!==void 0?H:"100vh"}},placement:(le=E==null?void 0:E.placement)!==null&&le!==void 0?le:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:E==null?void 0:E.arrowOffsetLeft,top:E==null?void 0:E.arrowOffsetTop}},updatePosition:M}}function jH(e){pn(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function KH(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Gs=[];function UH(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:s=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:o}=e;T.useEffect(()=>{if(i&&!Gs.includes(t))return Gs.push(t),()=>{let x=Gs.indexOf(t);x>=0&&Gs.splice(x,1)}},[i,t]);let l=()=>{Gs[Gs.length-1]===t&&n&&n()},d=x=>{(!o||o(x.target))&&Gs[Gs.length-1]===t&&(x.stopPropagation(),x.preventDefault())},h=x=>{(!o||o(x.target))&&(Gs[Gs.length-1]===t&&(x.stopPropagation(),x.preventDefault()),l())},m=x=>{x.key==="Escape"&&!a&&!x.nativeEvent.isComposing&&(x.stopPropagation(),x.preventDefault(),l())};Tz({ref:t,onInteractOutside:s&&i?h:void 0,onInteractOutsideStart:d});let{focusWithinProps:g}=wc({isDisabled:!r,onBlurWithin:x=>{!x.relatedTarget||eH(x.relatedTarget)||(!o||o(x.relatedTarget))&&(n==null||n())}}),b=x=>{x.target===x.currentTarget&&x.preventDefault()};return{overlayProps:{onKeyDown:m,...g},underlayProps:{onPointerDown:b}}}function qH(e,t,n){let{type:r}=e,{isOpen:i}=t;T.useEffect(()=>{n&&n.current&&FM.set(n.current,t.close)});let s;r==="menu"?s=!0:r==="listbox"&&(s="listbox");let a=Hr();return{triggerProps:{"aria-haspopup":s,"aria-expanded":i,"aria-controls":i?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}const zv=typeof document<"u"&&window.visualViewport,zH=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Wh=0,Wv;function WH(e={}){let{isDisabled:t}=e;pn(()=>{if(!t)return Wh++,Wh===1&&(_d()?Wv=GH():Wv=HH()),()=>{Wh--,Wh===0&&Wv()}},[t])}function HH(){let e=window.innerWidth-document.documentElement.clientWidth;return ju(e>0&&("scrollbarGutter"in document.documentElement.style?wu(document.documentElement,"scrollbarGutter","stable"):wu(document.documentElement,"paddingRight",`${e}px`)),wu(document.documentElement,"overflow","hidden"))}function GH(){let e,t,n=d=>{e=Rm(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=wu(e,"overscrollBehavior","contain"))},r=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&d.preventDefault()},i=()=>{t&&t()},s=d=>{let h=d.target;YH(h)&&(o(),h.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{h.style.transform="",zv&&(zv.height<window.innerHeight?requestAnimationFrame(()=>{LE(h)}):zv.addEventListener("resize",()=>LE(h),{once:!0}))}))},a=null,o=()=>{if(a)return;let d=()=>{window.scrollTo(0,0)},h=window.pageXOffset,m=window.pageYOffset;a=ju(xf(window,"scroll",d),wu(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),wu(document.documentElement,"overflow","hidden"),wu(document.body,"marginTop",`-${m}px`),()=>{window.scrollTo(h,m)}),window.scrollTo(0,0)},l=ju(xf(document,"touchstart",n,{passive:!1,capture:!0}),xf(document,"touchmove",r,{passive:!1,capture:!0}),xf(document,"touchend",i,{passive:!1,capture:!0}),xf(document,"focus",s,!0));return()=>{t==null||t(),a==null||a(),l()}}function wu(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function xf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function LE(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=Rm(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,s=n.getBoundingClientRect().top;s>i+n.clientHeight&&(r.scrollTop+=s-i)}n=r.parentElement}}function YH(e){return e instanceof HTMLInputElement&&!zH.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const ZH=T.createContext({});function XH(){var e;return(e=T.useContext(ZH))!==null&&e!==void 0?e:{}}let wf=new WeakMap,ii=[];function RM(e,t=document.body){let n=new Set(e),r=new Set,i=l=>{for(let g of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(g);let d=g=>{if(n.has(g)||g.parentElement&&r.has(g.parentElement)&&g.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let b of n)if(g.contains(b))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},h=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:d}),m=d(l);if(m===NodeFilter.FILTER_ACCEPT&&s(l),m!==NodeFilter.FILTER_REJECT){let g=h.nextNode();for(;g!=null;)s(g),g=h.nextNode()}},s=l=>{var d;let h=(d=wf.get(l))!==null&&d!==void 0?d:0;l.getAttribute("aria-hidden")==="true"&&h===0||(h===0&&l.setAttribute("aria-hidden","true"),r.add(l),wf.set(l,h+1))};ii.length&&ii[ii.length-1].disconnect(),i(t);let a=new MutationObserver(l=>{for(let d of l)if(!(d.type!=="childList"||d.addedNodes.length===0)&&![...n,...r].some(h=>h.contains(d.target))){for(let h of d.removedNodes)h instanceof Element&&(n.delete(h),r.delete(h));for(let h of d.addedNodes)(h instanceof HTMLElement||h instanceof SVGElement)&&(h.dataset.liveAnnouncer==="true"||h.dataset.reactAriaTopLayer==="true")?n.add(h):h instanceof Element&&i(h)}});a.observe(t,{childList:!0,subtree:!0});let o={visibleNodes:n,hiddenNodes:r,observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return ii.push(o),()=>{a.disconnect();for(let l of r){let d=wf.get(l);d!=null&&(d===1?(l.removeAttribute("aria-hidden"),wf.delete(l)):wf.set(l,d-1))}o===ii[ii.length-1]?(ii.pop(),ii.length&&ii[ii.length-1].observe()):ii.splice(ii.indexOf(o),1)}}function JH(e){let t=ii[ii.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function QH(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:s,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:o,...l}=e,d=l.trigger==="SubmenuTrigger",{overlayProps:h,underlayProps:m}=UH({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!s||d,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:o},i??r),{overlayProps:g,arrowProps:b,placement:x}=NH({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:s&&!d?t.close:null});return WH({isDisabled:s||!t.isOpen}),pn(()=>{if(t.isOpen&&r.current){var w,S;return s?JH((w=i==null?void 0:i.current)!==null&&w!==void 0?w:r.current):RM([(S=i==null?void 0:i.current)!==null&&S!==void 0?S:r.current])}},[s,t.isOpen,r,i]),{popoverProps:Qt(h,g),arrowProps:b,underlayProps:m,placement:x}}const kM=T.createContext(null);function eG(e){let t=e3(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,s]=T.useState(!1),a=T.useMemo(()=>({contain:i,setContain:s}),[i,s]),{getContainer:o}=XH();if(!e.portalContainer&&o&&(n=o()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=T.createElement(XW,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},l)),l=T.createElement(kM.Provider,{value:a},T.createElement(Sz,null,l)),qa.createPortal(l,n)}function tG(){let e=T.useContext(kM),t=e==null?void 0:e.setContain;pn(()=>{t==null||t(!0)},[t])}const Um=new WeakMap;function nG(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function OM(e,t){let n=Um.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${nG(t)}`}function Vb(e){return fp()?e.altKey:e.ctrlKey}function vp(e,t){var n,r;let i=`[data-key="${CSS.escape(String(t))}"]`,s=(n=e.current)===null||n===void 0?void 0:n.dataset.collection;return s&&(i=`[data-collection="${CSS.escape(s)}"]${i}`),(r=e.current)===null||r===void 0?void 0:r.querySelector(i)}const IM=new WeakMap;function rG(e){let t=Hr();return IM.set(e,t),t}function iG(e){return IM.get(e)}const sG=1e3;function aG(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=T.useRef({search:"",timeout:void 0}).current,s=a=>{let o=oG(a.key);if(!(!o||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target))){if(o===" "&&i.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),i.search+=o,t.getKeyForSearch!=null){let l=t.getKeyForSearch(i.search,n.focusedKey);l==null&&(l=t.getKeyForSearch(i.search)),l!=null&&(n.setFocusedKey(l),r&&r(l))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},sG)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?s:void 0}}}function oG(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function LM(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:s=!1,disallowEmptySelection:a=!1,disallowSelectAll:o=!1,escapeKeyBehavior:l="clearSelection",selectOnFocus:d=t.selectionBehavior==="replace",disallowTypeAhead:h=!1,shouldUseVirtualFocus:m,allowsTabNavigation:g=!1,isVirtualized:b,scrollRef:x=r,linkBehavior:w="action"}=e,{direction:S}=Rr(),E=Fm(),C=L=>{var B;if(L.altKey&&L.key==="Tab"&&L.preventDefault(),!(!((B=r.current)===null||B===void 0)&&B.contains(L.target)))return;const he=(Te,tt)=>{if(Te!=null){if(t.isLink(Te)&&w==="selection"&&d&&!Vb(L)){qa.flushSync(()=>{t.setFocusedKey(Te,tt)});let yt=vp(r,Te),Jt=t.getItemProps(Te);yt&&E.open(yt,L,Jt.href,Jt.routerOptions);return}if(t.setFocusedKey(Te,tt),t.isLink(Te)&&w==="override")return;L.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Te):d&&!Vb(L)&&t.replaceSelection(Te)}};switch(L.key){case"ArrowDown":if(n.getKeyBelow){var U,te,xe;let Te=t.focusedKey!=null?(U=n.getKeyBelow)===null||U===void 0?void 0:U.call(n,t.focusedKey):(te=n.getFirstKey)===null||te===void 0?void 0:te.call(n);Te==null&&s&&(Te=(xe=n.getFirstKey)===null||xe===void 0?void 0:xe.call(n,t.focusedKey)),Te!=null&&(L.preventDefault(),he(Te))}break;case"ArrowUp":if(n.getKeyAbove){var De,_e,Me;let Te=t.focusedKey!=null?(De=n.getKeyAbove)===null||De===void 0?void 0:De.call(n,t.focusedKey):(_e=n.getLastKey)===null||_e===void 0?void 0:_e.call(n);Te==null&&s&&(Te=(Me=n.getLastKey)===null||Me===void 0?void 0:Me.call(n,t.focusedKey)),Te!=null&&(L.preventDefault(),he(Te))}break;case"ArrowLeft":if(n.getKeyLeftOf){var Ye,Ge,Ae;let Te=t.focusedKey!=null?(Ye=n.getKeyLeftOf)===null||Ye===void 0?void 0:Ye.call(n,t.focusedKey):null;Te==null&&s&&(Te=S==="rtl"?(Ge=n.getFirstKey)===null||Ge===void 0?void 0:Ge.call(n,t.focusedKey):(Ae=n.getLastKey)===null||Ae===void 0?void 0:Ae.call(n,t.focusedKey)),Te!=null&&(L.preventDefault(),he(Te,S==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var Ke,We,Ve;let Te=t.focusedKey!=null?(Ke=n.getKeyRightOf)===null||Ke===void 0?void 0:Ke.call(n,t.focusedKey):null;Te==null&&s&&(Te=S==="rtl"?(We=n.getLastKey)===null||We===void 0?void 0:We.call(n,t.focusedKey):(Ve=n.getFirstKey)===null||Ve===void 0?void 0:Ve.call(n,t.focusedKey)),Te!=null&&(L.preventDefault(),he(Te,S==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&L.shiftKey)return;L.preventDefault();let Te=n.getFirstKey(t.focusedKey,Rl(L));t.setFocusedKey(Te),Te!=null&&(Rl(L)&&L.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Te):d&&t.replaceSelection(Te))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&L.shiftKey)return;L.preventDefault();let Te=n.getLastKey(t.focusedKey,Rl(L));t.setFocusedKey(Te),Te!=null&&(Rl(L)&&L.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Te):d&&t.replaceSelection(Te))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let Te=n.getKeyPageBelow(t.focusedKey);Te!=null&&(L.preventDefault(),he(Te))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let Te=n.getKeyPageAbove(t.focusedKey);Te!=null&&(L.preventDefault(),he(Te))}break;case"a":Rl(L)&&t.selectionMode==="multiple"&&o!==!0&&(L.preventDefault(),t.selectAll());break;case"Escape":l==="clearSelection"&&!a&&t.selectedKeys.size!==0&&(L.stopPropagation(),L.preventDefault(),t.clearSelection());break;case"Tab":if(!g){if(L.shiftKey)r.current.focus();else{let Te=Ur(r.current,{tabbable:!0}),tt,yt;do yt=Te.lastChild(),yt&&(tt=yt);while(yt);tt&&!tt.contains(document.activeElement)&&Di(tt)}break}}},A=T.useRef({top:0,left:0});Qs(x,"scroll",b?void 0:()=>{var L,B,he,U;A.current={top:(he=(L=x.current)===null||L===void 0?void 0:L.scrollTop)!==null&&he!==void 0?he:0,left:(U=(B=x.current)===null||B===void 0?void 0:B.scrollLeft)!==null&&U!==void 0?U:0}});let k=L=>{if(t.isFocused){L.currentTarget.contains(L.target)||t.setFocused(!1);return}if(L.currentTarget.contains(L.target)){if(t.setFocused(!0),t.focusedKey==null){var B,he;let xe=_e=>{_e!=null&&(t.setFocusedKey(_e),d&&!t.isSelected(_e)&&t.replaceSelection(_e))},De=L.relatedTarget;var U,te;De&&L.currentTarget.compareDocumentPosition(De)&Node.DOCUMENT_POSITION_FOLLOWING?xe((U=t.lastSelectedKey)!==null&&U!==void 0?U:(B=n.getLastKey)===null||B===void 0?void 0:B.call(n)):xe((te=t.firstSelectedKey)!==null&&te!==void 0?te:(he=n.getFirstKey)===null||he===void 0?void 0:he.call(n))}else!b&&x.current&&(x.current.scrollTop=A.current.top,x.current.scrollLeft=A.current.left);if(t.focusedKey!=null&&x.current){let xe=vp(r,t.focusedKey);xe instanceof HTMLElement&&(!xe.contains(document.activeElement)&&!m&&Di(xe),id()==="keyboard"&&Kp(xe,{containingElement:r.current}))}}},M=L=>{L.currentTarget.contains(L.relatedTarget)||t.setFocused(!1)},R=T.useRef(!1);Qs(r,sz,m?L=>{let{detail:B}=L;L.stopPropagation(),t.setFocused(!0),(B==null?void 0:B.focusStrategy)==="first"&&(R.current=!0)}:void 0);let K=kn(()=>{var L,B;let he=(B=(L=n.getFirstKey)===null||L===void 0?void 0:L.call(n))!==null&&B!==void 0?B:null;he==null?(T_(r.current),t.collection.size>0&&(R.current=!1)):(t.setFocusedKey(he),R.current=!1)});OC(()=>{R.current&&K()},[t.collection,K]);let H=kn(()=>{t.collection.size>0&&(R.current=!1)});OC(()=>{H()},[t.focusedKey,H]),Qs(r,iz,m?L=>{var B;L.stopPropagation(),t.setFocused(!1),!((B=L.detail)===null||B===void 0)&&B.clearFocusKey&&t.setFocusedKey(null)}:void 0);const le=T.useRef(i),ae=T.useRef(!1);T.useEffect(()=>{if(le.current){var L,B;let te=null;var he;i==="first"&&(te=(he=(L=n.getFirstKey)===null||L===void 0?void 0:L.call(n))!==null&&he!==void 0?he:null);var U;i==="last"&&(te=(U=(B=n.getLastKey)===null||B===void 0?void 0:B.call(n))!==null&&U!==void 0?U:null);let xe=t.selectedKeys;if(xe.size){for(let De of xe)if(t.canSelectItem(De)){te=De;break}}t.setFocused(!0),t.setFocusedKey(te),te==null&&!m&&r.current&&qu(r.current),t.collection.size>0&&(le.current=!1,ae.current=!0)}});let I=T.useRef(t.focusedKey),$e=T.useRef(null);T.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==I.current||ae.current)&&x.current&&r.current){let L=id(),B=vp(r,t.focusedKey);if(!(B instanceof HTMLElement))return;(L==="keyboard"||ae.current)&&($e.current&&cancelAnimationFrame($e.current),$e.current=requestAnimationFrame(()=>{x.current&&(TP(x.current,B),L!=="virtual"&&Kp(B,{containingElement:r.current}))}))}!m&&t.isFocused&&t.focusedKey==null&&I.current!=null&&r.current&&qu(r.current),I.current=t.focusedKey,ae.current=!1}),T.useEffect(()=>()=>{$e.current&&cancelAnimationFrame($e.current)},[]),Qs(r,"react-aria-focus-scope-restore",L=>{L.preventDefault(),t.setFocused(!0)});let we={onKeyDown:C,onFocus:k,onBlur:M,onMouseDown(L){x.current===L.target&&L.preventDefault()}},{typeSelectProps:W}=aG({keyboardDelegate:n,selectionManager:t});h||(we=Qt(W,we));let ie;m||(ie=t.focusedKey==null?0:-1);let O=rG(t.collection);return{collectionProps:Qt(we,{tabIndex:ie,"data-collection":O})}}function uG(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:s,shouldUseVirtualFocus:a,focus:o,isDisabled:l,onAction:d,allowsDifferentPressOrigin:h,linkBehavior:m="action"}=e,g=Fm();t=Hr(t);let b=B=>{if(B.pointerType==="keyboard"&&Vb(B))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(m==="selection"&&i.current){let he=n.getItemProps(r);g.open(i.current,B,he.href,he.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(m==="override"||m==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):B&&B.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||B&&(Rl(B)||B.pointerType==="touch"||B.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};T.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(a?T_(i.current):o?o():document.activeElement!==i.current&&i.current&&qu(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,a]),l=l||n.isDisabled(r);let x={};!a&&!l?x={tabIndex:r===n.focusedKey?0:-1,onFocus(B){B.target===i.current&&n.setFocusedKey(r)}}:l&&(x.onMouseDown=B=>{B.preventDefault()});let w=n.isLink(r)&&m==="override",S=n.isLink(r)&&m!=="selection"&&m!=="none",E=!l&&n.canSelectItem(r)&&!w,C=(d||S)&&!l,A=C&&(n.selectionBehavior==="replace"?!E:!E||n.isEmpty),k=C&&E&&n.selectionBehavior==="replace",M=A||k,R=T.useRef(null),K=M&&E,H=T.useRef(!1),le=T.useRef(!1),ae=B=>{if(d&&d(),S&&i.current){let he=n.getItemProps(r);g.open(i.current,B,he.href,he.routerOptions)}},I={ref:i};s?(I.onPressStart=B=>{R.current=B.pointerType,H.current=K,B.pointerType==="keyboard"&&(!M||VE())&&b(B)},h?(I.onPressUp=A?void 0:B=>{B.pointerType==="mouse"&&E&&b(B)},I.onPress=A?ae:B=>{B.pointerType!=="keyboard"&&B.pointerType!=="mouse"&&E&&b(B)}):I.onPress=B=>{if(A||k&&B.pointerType!=="mouse"){if(B.pointerType==="keyboard"&&!BE())return;ae(B)}else B.pointerType!=="keyboard"&&E&&b(B)}):(I.onPressStart=B=>{R.current=B.pointerType,H.current=K,le.current=A,E&&(B.pointerType==="mouse"&&!A||B.pointerType==="keyboard"&&(!C||VE()))&&b(B)},I.onPress=B=>{(B.pointerType==="touch"||B.pointerType==="pen"||B.pointerType==="virtual"||B.pointerType==="keyboard"&&M&&BE()||B.pointerType==="mouse"&&le.current)&&(M?ae(B):E&&b(B))}),x["data-collection"]=iG(n.collection),x["data-key"]=r,I.preventFocusOnPress=a,a&&(I=Qt(I,{onPressStart(B){B.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(B){B.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}}));let{pressProps:$e,isPressed:we}=Rd(I),W=k?B=>{R.current==="mouse"&&(B.stopPropagation(),B.preventDefault(),ae(B))}:void 0,{longPressProps:ie}=KP({isDisabled:!K,onLongPress(B){B.pointerType==="touch"&&(b(B),n.setSelectionBehavior("toggle"))}}),O=B=>{R.current==="touch"&&H.current&&B.preventDefault()},L=n.isLink(r)?B=>{Ku.isOpening||B.preventDefault()}:void 0;return{itemProps:Qt(x,E||A||a&&!l?$e:{},K?ie:{},{onDoubleClick:W,onDragStartCapture:O,onClick:L,id:t},a?{onMouseDown:B=>B.preventDefault()}:void 0),isPressed:we,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:l,allowsSelection:E,hasAction:M}}function BE(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function VE(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class NE{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?vp(this.ref,t):null;if(!r)return null;let i=n.getBoundingClientRect(),s=r.getBoundingClientRect();return{x:s.left-i.left+n.scrollLeft,y:s.top-i.top+n.scrollTop,width:s.width,height:s.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,i,s;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(i=t==null?void 0:t.offsetWidth)!==null&&i!==void 0?i:0,height:(s=t==null?void 0:t.offsetHeight)!==null&&s!==void 0?s:0}}constructor(t){this.ref=t}}class BM{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let i=t,s=this.layoutDelegate.getItemRect(i);if(!s||i==null)return null;let a=s;do{if(i=n(i),i==null)break;s=this.layoutDelegate.getItemRect(i)}while(s&&r(a,s)&&i!=null);return i}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!rd(n))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let s=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>s&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let s=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>s&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!rd(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let s=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<s&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let s=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<s&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let s=r.getItem(i);if(!s)return null;let a=s.textValue.slice(0,t.length);if(s.textValue&&this.collator.compare(a,t)===0)return i;i=this.getNextKey(i)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new NE(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new NE(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function lG(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:s,layoutDelegate:a}=e,o=C_({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,d=T.useMemo(()=>s||new BM({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:o,layoutDelegate:a}),[s,a,n,r,i,o,l]),{collectionProps:h}=LM({...e,ref:i,selectionManager:t,keyboardDelegate:d});return{listProps:h}}function cG(e,t,n){let r=Qa(e,{labelable:!0}),i=e.selectionBehavior||"toggle",s=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&s==="action"&&(s="override");let{listProps:a}=lG({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:s}),{focusWithinProps:o}=wc({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=Hr(e.id);Um.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:s});let{labelProps:d,fieldProps:h}=jm({...e,id:l,labelElementType:"span"});return{labelProps:d,listBoxProps:Qt(r,o,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Qt(h,a)})}}function VM(e){return null}VM.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:s}=t,a=t.title||t.children,o=t.textValue||(typeof a=="string"?a:"")||t["aria-label"]||"";!o&&!(n!=null&&n.suppressTextValueWarning)&&process.env.NODE_ENV!=="production"&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:a,textValue:o,"aria-label":t["aria-label"],hasChildNodes:fG(t),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(i){let l=[];T.Children.forEach(s,d=>{l.push({type:"item",element:d})}),yield*l}}}};function fG(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&T.Children.count(e.children)>0)}let dG=VM;class hG{build(t,n){return this.context=n,jE(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(T.isValidElement(n)&&n.type===T.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let s of r)yield*this.getFullNode({value:s,index:i},{renderer:n}),i++}else{let i=[];T.Children.forEach(n,a=>{a&&i.push(a)});let s=0;for(let a of i){let o=this.getFullNode({element:a,index:s},{});for(let l of o)s++,yield l}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let s=n.value;if(s!=null){var a;let o=(a=s.key)!==null&&a!==void 0?a:s.id;if(o==null)throw new Error("No key found for item");return o}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(T.isValidElement(t.element)&&t.element.type===T.Fragment){let S=[];T.Children.forEach(t.element.props.children,C=>{S.push(C)});var s;let E=(s=t.index)!==null&&s!==void 0?s:0;for(const C of S)yield*this.getFullNode({element:C,index:E++},n,r,i);return}let a=t.element;if(!a&&t.value&&n&&n.renderer){let S=this.cache.get(t.value);if(S&&(!S.shouldInvalidate||!S.shouldInvalidate(this.context))){S.index=t.index,S.parentKey=i?i.key:null,yield S;return}a=n.renderer(t.value)}if(T.isValidElement(a)){let S=a.type;if(typeof S!="function"&&typeof S.getCollectionNode!="function"){let k=a.type;throw new Error(`Unknown element <${k}> in collection.`)}let E=S.getCollectionNode(a.props,this.context);var o;let C=(o=t.index)!==null&&o!==void 0?o:0,A=E.next();for(;!A.done&&A.value;){let k=A.value;t.index=C;var l;let M=(l=k.key)!==null&&l!==void 0?l:null;M==null&&(M=k.element?null:this.getKey(a,t,n,r));let K=[...this.getFullNode({...k,key:M,index:C,wrapper:pG(t.wrapper,k.wrapper)},this.getChildState(n,k),r?`${r}${a.key}`:a.key,i)];for(let H of K){var d,h;H.value=(h=(d=k.value)!==null&&d!==void 0?d:t.value)!==null&&h!==void 0?h:null,H.value&&this.cache.set(H.value,H);var m;if(t.type&&H.type!==t.type)throw new Error(`Unsupported type <${Hv(H.type)}> in <${Hv((m=i==null?void 0:i.type)!==null&&m!==void 0?m:"unknown parent type")}>. Only <${Hv(t.type)}> is supported.`);C++,yield H}A=E.next(K)}return}if(t.key==null||t.type==null)return;let g=this;var b,x;let w={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(b=t.value)!==null&&b!==void 0?b:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:(x=t.textValue)!==null&&x!==void 0?x:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:jE(function*(){if(!t.hasChildNodes||!t.childNodes)return;let S=0;for(let E of t.childNodes()){E.key!=null&&(E.key=`${w.key}${E.key}`);let C=g.getFullNode({...E,index:S},g.getChildState(n,E),w.key,w);for(let A of C)S++,yield A}})};yield w}constructor(){this.cache=new WeakMap}}function jE(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function pG(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Hv(e){return e[0].toUpperCase()+e.slice(1)}function mG(e,t,n){let r=T.useMemo(()=>new hG,[]),{children:i,items:s,collection:a}=e;return T.useMemo(()=>{if(a)return a;let l=r.build({children:i,items:s},n);return t(l)},[r,i,s,a,n,t])}function qm(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function gG(e){return vG(e)}function vG(e,t){for(let n of e)return n}function Gv(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...KE(e,t),t],i=[...KE(e,n),n],s=r.slice(0,i.length).findIndex((a,o)=>a!==i[o]);return s!==-1?(t=r[s],n=i[s],t.index-n.index):r.findIndex(a=>a===n)>=0?1:(i.findIndex(a=>a===t)>=0,-1)}function KE(e,t){let n=[],r=t;for(;(r==null?void 0:r.parentKey)!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const UE=new WeakMap;function NM(e){let t=UE.get(e);if(t!=null)return t;let n=0,r=i=>{for(let s of i)s.type==="section"?r(qm(s,e)):s.type==="item"&&n++};return r(e),UE.set(e,n),n}function yG(e,t,n){var r,i;let{key:s}=e,a=Um.get(t);var o;let l=(o=e.isDisabled)!==null&&o!==void 0?o:t.selectionManager.isDisabled(s);var d;let h=(d=e.isSelected)!==null&&d!==void 0?d:t.selectionManager.isSelected(s);var m;let g=(m=e.shouldSelectOnPressUp)!==null&&m!==void 0?m:a==null?void 0:a.shouldSelectOnPressUp;var b;let x=(b=e.shouldFocusOnHover)!==null&&b!==void 0?b:a==null?void 0:a.shouldFocusOnHover;var w;let S=(w=e.shouldUseVirtualFocus)!==null&&w!==void 0?w:a==null?void 0:a.shouldUseVirtualFocus;var E;let C=(E=e.isVirtualized)!==null&&E!==void 0?E:a==null?void 0:a.isVirtualized,A=uc(),k=uc(),M={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?h:void 0};Ga()&&n3()||(M["aria-label"]=e["aria-label"],M["aria-labelledby"]=A,M["aria-describedby"]=k);let R=t.collection.getItem(s);if(C){let L=Number(R==null?void 0:R.index);M["aria-posinset"]=Number.isNaN(L)?void 0:L+1,M["aria-setsize"]=NM(t.collection)}let K=a!=null&&a.onAction?()=>{var L;return a==null||(L=a.onAction)===null||L===void 0?void 0:L.call(a,s)}:void 0,H=OM(t,s),{itemProps:le,isPressed:ae,isFocused:I,hasAction:$e,allowsSelection:we}=uG({selectionManager:t.selectionManager,key:s,ref:n,shouldSelectOnPressUp:g,allowsDifferentPressOrigin:g&&x,isVirtualized:C,shouldUseVirtualFocus:S,isDisabled:l,onAction:K||!(R==null||(r=R.props)===null||r===void 0)&&r.onAction?ju(R==null||(i=R.props)===null||i===void 0?void 0:i.onAction,K):void 0,linkBehavior:a==null?void 0:a.linkBehavior,id:H}),{hoverProps:W}=Az({isDisabled:l||!x,onHoverStart(){HC()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(s))}}),ie=Qa(R==null?void 0:R.props);delete ie.id;let O=Jq(R==null?void 0:R.props);return{optionProps:{...M,...Qt(ie,le,W,O),id:H},labelProps:{id:A},descriptionProps:{id:k},isFocused:I,isFocusVisible:I&&t.selectionManager.isFocused&&HC(),isSelected:h,isDisabled:l,isPressed:ae,allowsSelection:we,hasAction:$e}}var jM={};jM={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var KM={};KM={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var UM={};UM={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var qM={};qM={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var zM={};zM={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var WM={};WM={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var HM={};HM={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var GM={};GM={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var YM={};YM={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var ZM={};ZM={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var XM={};XM={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var JM={};JM={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var QM={};QM={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var eF={};eF={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var tF={};tF={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var nF={};nF={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var rF={};rF={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var iF={};iF={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var sF={};sF={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var aF={};aF={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var oF={};oF={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var uF={};uF={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var lF={};lF={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var cF={};cF={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var fF={};fF={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var dF={};dF={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var hF={};hF={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var pF={};pF={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var mF={};mF={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var gF={};gF={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var vF={};vF={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var yF={};yF={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var bF={};bF={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var $F={};$F={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var xF={};xF={"ar-AE":jM,"bg-BG":KM,"cs-CZ":UM,"da-DK":qM,"de-DE":zM,"el-GR":WM,"en-US":HM,"es-ES":GM,"et-EE":YM,"fi-FI":ZM,"fr-FR":XM,"he-IL":JM,"hr-HR":QM,"hu-HU":eF,"it-IT":tF,"ja-JP":nF,"ko-KR":rF,"lt-LT":iF,"lv-LV":sF,"nb-NO":aF,"nl-NL":oF,"pl-PL":uF,"pt-BR":lF,"pt-PT":cF,"ro-RO":fF,"ru-RU":dF,"sk-SK":hF,"sl-SI":pF,"sr-SP":mF,"sv-SE":gF,"tr-TR":vF,"uk-UA":yF,"zh-CN":bF,"zh-TW":$F};function bG(e){return e&&e.__esModule?e.default:e}function $G(e,t,n){let{type:r="menu",isDisabled:i,trigger:s="press"}=e,a=Hr(),{triggerProps:o,overlayProps:l}=qH({type:r},t,n),d=b=>{if(!i&&!(s==="longPress"&&!b.altKey)&&n&&n.current)switch(b.key){case"Enter":case" ":if(s==="longPress")return;case"ArrowDown":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),t.toggle("last");break;default:"continuePropagation"in b&&b.continuePropagation()}},h=fa(bG(xF),"@react-aria/menu"),{longPressProps:m}=KP({isDisabled:i||s!=="longPress",accessibilityDescription:h.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),g={preventFocusOnPress:!0,onPressStart(b){b.pointerType!=="touch"&&b.pointerType!=="keyboard"&&!i&&(Di(b.target),t.open(b.pointerType==="virtual"?"first":null))},onPress(b){b.pointerType==="touch"&&!i&&(Di(b.target),t.toggle())}};return delete o.onPress,{menuTriggerProps:{...o,...s==="press"?g:m,id:a,onKeyDown:d},menuProps:{...l,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function xG(e){return e&&e.__esModule?e.default:e}function wG(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:s,keyboardDelegate:a,layoutDelegate:o,shouldFocusWrap:l,isReadOnly:d,isDisabled:h}=e,m=T.useRef(null);n=n??m;let g=fa(xG(_M),"@react-aria/combobox"),{menuTriggerProps:b,menuProps:x}=$G({type:"listbox",isDisabled:h||d},t,n);Um.set(t,{id:x.id});let{collection:w}=t,{disabledKeys:S}=t.selectionManager,E=T.useMemo(()=>a||new BM({collection:w,disabledKeys:S,ref:s,layoutDelegate:o}),[a,o,w,S,s]),{collectionProps:C}=LM({selectionManager:t.selectionManager,keyboardDelegate:E,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:l,ref:i,isVirtualized:!0}),A=Fm(),k=Ve=>{if(!Ve.nativeEvent.isComposing)switch(Ve.key){case"Enter":case"Tab":if(t.isOpen&&Ve.key==="Enter"&&Ve.preventDefault(),t.isOpen&&s.current&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){let Te=s.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(Ve.key==="Enter"&&Te instanceof HTMLAnchorElement){let tt=t.collection.getItem(t.selectionManager.focusedKey);tt&&A.open(Te,Ve,tt.props.href,tt.props.routerOptions)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&Ve.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},M=Ve=>{var Te;let tt=(n==null?void 0:n.current)&&n.current===Ve.relatedTarget,yt=(Te=r.current)===null||Te===void 0?void 0:Te.contains(Ve.relatedTarget);tt||yt||(e.onBlur&&e.onBlur(Ve),t.setFocused(!1))},R=Ve=>{t.isFocused||(e.onFocus&&e.onFocus(Ve),t.setFocused(!0))},{isInvalid:K,validationErrors:H,validationDetails:le}=t.displayValidation,{labelProps:ae,inputProps:I,descriptionProps:$e,errorMessageProps:we}=PH({...e,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:ju(t.isOpen&&C.onKeyDown,k,e.onKeyDown),onBlur:M,value:t.inputValue,onFocus:R,autoComplete:"off",validate:void 0,[dc]:t},i),W=Ve=>{if(Ve.pointerType==="touch"){var Te;(Te=i.current)===null||Te===void 0||Te.focus(),t.toggle(null,"manual")}},ie=Ve=>{if(Ve.pointerType!=="touch"){var Te;(Te=i.current)===null||Te===void 0||Te.focus(),t.toggle(Ve.pointerType==="keyboard"||Ve.pointerType==="virtual"?"first":null,"manual")}},O=lc({id:b.id,"aria-label":g.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||ae.id}),L=lc({id:x.id,"aria-label":g.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||ae.id}),B=T.useRef(0),he=Ve=>{if(h||d)return;if(Ve.timeStamp-B.current<500){var Te;Ve.preventDefault(),(Te=i.current)===null||Te===void 0||Te.focus();return}let tt=Ve.target.getBoundingClientRect(),yt=Ve.changedTouches[0],Jt=Math.ceil(tt.left+.5*tt.width),xt=Math.ceil(tt.top+.5*tt.height);if(yt.clientX===Jt&&yt.clientY===xt){var Mt;Ve.preventDefault(),(Mt=i.current)===null||Mt===void 0||Mt.focus(),t.toggle(null,"manual"),B.current=Ve.timeStamp}},U=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var te;let xe=(te=U==null?void 0:U.parentKey)!==null&&te!==void 0?te:null;var De;let _e=(De=t.selectionManager.focusedKey)!==null&&De!==void 0?De:null,Me=T.useRef(xe),Ye=T.useRef(_e);T.useEffect(()=>{if(fp()&&U!=null&&_e!=null&&_e!==Ye.current){let Te=t.selectionManager.isSelected(_e),tt=xe!=null?t.collection.getItem(xe):null,yt=(tt==null?void 0:tt["aria-label"])||(typeof(tt==null?void 0:tt.rendered)=="string"?tt.rendered:"")||"";var Ve;let Jt=g.format("focusAnnouncement",{isGroupChange:(Ve=tt&&xe!==Me.current)!==null&&Ve!==void 0?Ve:!1,groupTitle:yt,groupCount:tt?[...qm(tt,t.collection)].length:0,optionText:U["aria-label"]||U.textValue||"",isSelected:Te});Ql(Jt)}Me.current=xe,Ye.current=_e});let Ge=NM(t.collection),Ae=T.useRef(Ge),Ke=T.useRef(t.isOpen);T.useEffect(()=>{let Ve=t.isOpen!==Ke.current&&(t.selectionManager.focusedKey==null||fp());if(t.isOpen&&(Ve||Ge!==Ae.current)){let Te=g.format("countAnnouncement",{optionCount:Ge});Ql(Te)}Ae.current=Ge,Ke.current=t.isOpen});let We=T.useRef(t.selectedKey);return T.useEffect(()=>{if(fp()&&t.isFocused&&t.selectedItem&&t.selectedKey!==We.current){let Ve=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",Te=g.format("selectedAnnouncement",{optionText:Ve});Ql(Te)}We.current=t.selectedKey}),T.useEffect(()=>{if(t.isOpen)return RM([i.current,r.current].filter(Ve=>Ve!=null))},[t.isOpen,i,r]),mb(()=>{!U&&i.current&&mr(tn(i.current))===i.current&&P_(i.current,null)},[U]),{labelProps:ae,buttonProps:{...b,...O,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:W,onPressStart:ie,isDisabled:h||d},inputProps:Qt(I,{role:"combobox","aria-expanded":b["aria-expanded"],"aria-controls":t.isOpen?x.id:void 0,"aria-autocomplete":"list","aria-activedescendant":U?OM(t,U.key):void 0,onTouchEnd:he,autoCorrect:"off",spellCheck:"false"}),listBoxProps:Qt(x,L,{autoFocus:t.focusStrategy||!0,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:$e,errorMessageProps:we,isInvalid:K,validationErrors:H,validationDetails:le}}var wF={};wF={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var CF={};CF={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var EF={};EF={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var SF={};SF={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var DF={};DF={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var AF={};AF={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var TF={};TF={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var PF={};PF={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var _F={};_F={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var MF={};MF={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var FF={};FF={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var RF={};RF={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var kF={};kF={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var OF={};OF={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var IF={};IF={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var LF={};LF={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var BF={};BF={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var VF={};VF={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var NF={};NF={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var jF={};jF={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var KF={};KF={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var UF={};UF={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var qF={};qF={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var zF={};zF={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var WF={};WF={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var HF={};HF={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var GF={};GF={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var YF={};YF={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var ZF={};ZF={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var XF={};XF={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var JF={};JF={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var QF={};QF={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var eR={};eR={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var tR={};tR={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var Nd={};Nd={"ar-AE":wF,"bg-BG":CF,"cs-CZ":EF,"da-DK":SF,"de-DE":DF,"el-GR":AF,"en-US":TF,"es-ES":PF,"et-EE":_F,"fi-FI":MF,"fr-FR":FF,"he-IL":RF,"hr-HR":kF,"hu-HU":OF,"it-IT":IF,"ja-JP":LF,"ko-KR":BF,"lt-LT":VF,"lv-LV":NF,"nb-NO":jF,"nl-NL":KF,"pl-PL":UF,"pt-BR":qF,"pt-PT":zF,"ro-RO":WF,"ru-RU":HF,"sk-SK":GF,"sl-SI":YF,"sr-SP":ZF,"sv-SE":XF,"tr-TR":JF,"uk-UA":QF,"zh-CN":eR,"zh-TW":tR};function E3(e,t,n){let{direction:r}=Rr(),i=T.useMemo(()=>Vm(t),[t]),s=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":if(l.preventDefault(),l.stopPropagation(),r==="rtl"){if(t.current){let d=l.target,h=qE(t.current,d.getBoundingClientRect().left,-1);h&&h.focus()}}else i.focusPrevious();break;case"ArrowRight":if(l.preventDefault(),l.stopPropagation(),r==="rtl"){if(t.current){let d=l.target,h=qE(t.current,d.getBoundingClientRect().left,1);h&&h.focus()}}else i.focusNext();break}},a=()=>{var l;if(!t.current)return;let d=(l=window.event)===null||l===void 0?void 0:l.target,h=Ur(t.current,{tabbable:!0});if(d&&(h.currentNode=d,d=h.previousNode()),!d){let m;do m=h.lastChild(),m&&(d=m);while(m)}for(;d!=null&&d.hasAttribute("data-placeholder");){let m=h.previousNode();if(m&&m.hasAttribute("data-placeholder"))d=m;else break}d&&d.focus()},{pressProps:o}=Rd({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&a()},onPress(l){(l.pointerType==="touch"||l.pointerType==="pen")&&a()}});return Qt(o,{onKeyDown:s})}function qE(e,t,n){let r=Ur(e,{tabbable:!0}),i=r.nextNode(),s=null,a=1/0;for(;i;){let l=i.getBoundingClientRect().left-t,d=Math.abs(l);Math.sign(l)===n&&d<a&&(s=i,a=d),i=r.nextNode()}return s}function CG(e){return e&&e.__esModule?e.default:e}const nR=new WeakMap,Hf="__role_"+Date.now(),rR="__focusManager_"+Date.now();function iR(e,t,n){var r;let{isInvalid:i,validationErrors:s,validationDetails:a}=t.displayValidation,{labelProps:o,fieldProps:l,descriptionProps:d,errorMessageProps:h}=Km({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||s}),m=T.useRef(null),{focusWithinProps:g}=wc({...e,onFocusWithin(ae){var I;m.current=t.value,(I=e.onFocus)===null||I===void 0||I.call(e,ae)},onBlurWithin:ae=>{var I;t.confirmPlaceholder(),t.value!==m.current&&t.commitValidation(),(I=e.onBlur)===null||I===void 0||I.call(e,ae)},onFocusWithinChange:e.onFocusChange}),b=fa(CG(Nd),"@react-aria/datepicker"),x=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",w=t.maxGranularity==="hour"?"time":"date",S=t.value?b.format(x,{[w]:t.formatValue({month:"long"})}):"",E=Md(S),C=e[Hf]==="presentation"?l["aria-describedby"]:[E["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,A=e[rR],k=T.useMemo(()=>A||Vm(n),[A,n]),M=E3(t,n,e[Hf]==="presentation");nR.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[o.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:C,focusManager:k});let R=T.useRef(e.autoFocus),K;e[Hf]==="presentation"?K={role:"presentation"}:K=Qt(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":C}),T.useEffect(()=>{R.current&&k.focusFirst(),R.current=!1},[k]),i3(e.inputRef,t.value,t.setValue),p6({...e,focus(){k.focusFirst()}},t,e.inputRef);let H={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(H.type="text",H.hidden=!0,H.required=e.isRequired,H.onChange=()=>{});let le=Qa(e);return{labelProps:{...o,onClick:()=>{k.focusFirst()}},fieldProps:Qt(le,K,M,g,{onKeyDown(ae){e.onKeyDown&&e.onKeyDown(ae)},onKeyUp(ae){e.onKeyUp&&e.onKeyUp(ae)},style:{unicodeBidi:"isolate"}}),inputProps:H,descriptionProps:d,errorMessageProps:h,isInvalid:i,validationErrors:s,validationDetails:a}}function EG(e,t,n){var r;let i=iR(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function SG(e){return e&&e.__esModule?e.default:e}function DG(e,t,n){let r=Hr(),i=Hr(),s=Hr(),a=fa(SG(Nd),"@react-aria/datepicker"),{isInvalid:o,validationErrors:l,validationDetails:d}=t.displayValidation,{labelProps:h,fieldProps:m,descriptionProps:g,errorMessageProps:b}=Km({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||l}),x=E3(t,n),w=m["aria-labelledby"]||m.id,{locale:S}=Rr(),E=t.formatValue(S,{month:"long"}),C=E?a.format("selectedDateDescription",{date:E}):"",A=Md(C),k=[A["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,M=Qa(e),R=T.useMemo(()=>Vm(n),[n]),K=T.useRef(!1),{focusWithinProps:H}=wc({...e,isDisabled:t.isOpen,onBlurWithin:le=>{let ae=document.getElementById(i);if(!(ae!=null&&ae.contains(le.relatedTarget))){var I,$e;K.current=!1,(I=e.onBlur)===null||I===void 0||I.call(e,le),($e=e.onFocusChange)===null||$e===void 0||$e.call(e,!1)}},onFocusWithin:le=>{if(!K.current){var ae,I;K.current=!0,(ae=e.onFocus)===null||ae===void 0||ae.call(e,le),(I=e.onFocusChange)===null||I===void 0||I.call(e,!0)}}});return{groupProps:Qt(M,x,m,A,H,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":w,"aria-describedby":k,onKeyDown(le){t.isOpen||e.onKeyDown&&e.onKeyDown(le)},onKeyUp(le){t.isOpen||e.onKeyUp&&e.onKeyUp(le)}}),labelProps:{...h,onClick:()=>{R.focusFirst()}},fieldProps:{...m,id:s,[Hf]:"presentation","aria-describedby":k,value:t.value,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[dc]:t,autoFocus:e.autoFocus,name:e.name},descriptionProps:g,errorMessageProps:b,buttonProps:{...A,id:r,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${r} ${w}`,"aria-describedby":k,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${w}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:o,validationErrors:l,validationDetails:d}}function AG(e){return e&&e.__esModule?e.default:e}function TG(){let{locale:e}=Rr(),t=zP(AG(Nd),"@react-aria/datepicker");return T.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new PG(e,t)}},[e,t])}class PG{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function _G(e,t,n){let r=T.useRef(""),{locale:i,direction:s}=Rr(),a=TG(),{ariaLabel:o,ariaLabelledBy:l,ariaDescribedBy:d,focusManager:h}=nR.get(t),m=e.isPlaceholder?"":e.text,g=T.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),b=ea({month:"long",timeZone:g.timeZone}),x=ea({hour:"numeric",hour12:g.hour12,timeZone:g.timeZone});if(e.type==="month"&&!e.isPlaceholder){let U=b.format(t.dateValue);m=U!==m?`${m} – ${U}`:U}else e.type==="hour"&&!e.isPlaceholder&&(m=x.format(t.dateValue));let{spinButtonProps:w}=MH({value:e.value,textValue:m,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",e.maxValue!==void 0&&t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",e.minValue!==void 0&&t.setSegment(e.type,e.minValue)}}),S=T.useMemo(()=>new w_(i,{maximumFractionDigits:0}),[i]),E=()=>{if(e.text===e.placeholder&&h.focusPrevious(),S.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let U=e.text.slice(0,-1),te=S.parse(U);U=te===0?"":U,U.length===0||te===0?t.clearSegment(e.type):t.setSegment(e.type,te),r.current=U}else e.type==="dayPeriod"&&t.clearSegment(e.type)},C=U=>{if(U.key==="a"&&(Ga()?U.metaKey:U.ctrlKey)&&U.preventDefault(),!(U.ctrlKey||U.metaKey||U.shiftKey||U.altKey))switch(U.key){case"Backspace":case"Delete":U.preventDefault(),U.stopPropagation(),E();break}},{startsWith:A}=E_({sensitivity:"base"}),k=ea({hour:"numeric",hour12:!0}),M=T.useMemo(()=>{let U=new Date;return U.setHours(0),k.formatToParts(U).find(te=>te.type==="dayPeriod").value},[k]),R=T.useMemo(()=>{let U=new Date;return U.setHours(12),k.formatToParts(U).find(te=>te.type==="dayPeriod").value},[k]),K=ea({year:"numeric",era:"narrow",timeZone:"UTC"}),H=T.useMemo(()=>{if(e.type!=="era")return[];let U=On(new Zn(1,1,1),t.calendar),te=t.calendar.getEras().map(De=>{let _e=U.set({year:1,month:1,day:1,era:De}).toDate("UTC"),Ye=K.formatToParts(_e).find(Ge=>Ge.type==="era").value;return{era:De,formatted:Ye}}),xe=MG(te.map(De=>De.formatted));if(xe)for(let De of te)De.formatted=De.formatted.slice(xe);return te},[K,t.calendar,e.type]),le=U=>{if(t.isDisabled||t.isReadOnly)return;let te=r.current+U;switch(e.type){case"dayPeriod":if(A(M,U))t.setSegment("dayPeriod",0);else if(A(R,U))t.setSegment("dayPeriod",12);else break;h.focusNext();break;case"era":{let xe=H.find(De=>A(De.formatted,U));xe&&(t.setSegment("era",xe.era),h.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!S.isValidPartialNumber(te))return;let xe=S.parse(te),De=xe,_e=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":xe>11&&(De=S.parse(U));break;case"h12":_e=!1,xe>12&&(De=S.parse(U));break}e.value!==void 0&&e.value>=12&&xe>1&&(xe+=12)}else e.maxValue!==void 0&&xe>e.maxValue&&(De=S.parse(U));if(isNaN(xe))return;let Me=De!==0||_e;Me&&t.setSegment(e.type,De),e.maxValue!==void 0&&(+(xe+"0")>e.maxValue||te.length>=String(e.maxValue).length)?(r.current="",Me&&h.focusNext()):r.current=te;break}}},ae=()=>{r.current="",n.current&&Kp(n.current,{containingElement:Rm(n.current)});let U=window.getSelection();U==null||U.collapse(n.current)},I=T.useRef(typeof document<"u"?document:null);Qs(I,"selectionchange",()=>{var U;let te=window.getSelection();te!=null&&te.anchorNode&&(!((U=n.current)===null||U===void 0)&&U.contains(te==null?void 0:te.anchorNode))&&te.collapse(n.current)});let $e=T.useRef("");Qs(n,"beforeinput",U=>{if(n.current)switch(U.preventDefault(),U.inputType){case"deleteContentBackward":case"deleteContentForward":S.isValidPartialNumber(e.text)&&!t.isReadOnly&&E();break;case"insertCompositionText":$e.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:U.data!=null&&le(U.data);break}}),Qs(n,"input",U=>{let{inputType:te,data:xe}=U;switch(te){case"insertCompositionText":n.current&&(n.current.textContent=$e.current),xe!=null&&(A(M,xe)||A(R,xe))&&le(xe);break}}),pn(()=>{let U=n.current;return()=>{document.activeElement===U&&(h.focusPrevious()||h.focusNext())}},[n,h]);let we=_d()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},W=T.useMemo(()=>t.segments.find(U=>U.isEditable),[t.segments]);e!==W&&!t.isInvalid&&(d=void 0);let ie=Hr(),O=!t.isDisabled&&!t.isReadOnly&&e.isEditable,L=e.type==="literal"?"":a.of(e.type),B=lc({"aria-label":`${L}${o?`, ${o}`:""}${l?", ":""}`,"aria-labelledby":l});if(e.type==="literal")return{segmentProps:{"aria-hidden":!0}};let he={caretColor:"transparent"};if(s==="rtl"){he.unicodeBidi="embed";let U=g[e.type];(U==="numeric"||U==="2-digit")&&(he.direction="ltr")}return{segmentProps:Qt(w,B,{id:ie,...we,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":d,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:O,suppressContentEditableWarning:O,spellCheck:O?"false":void 0,autoCorrect:O?"off":void 0,[parseInt(T.version,10)>=17?"enterKeyHint":"enterkeyhint"]:O?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!O?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:C,onFocus:ae,style:he,onPointerDown(U){U.stopPropagation()},onMouseDown(U){U.stopPropagation()}})}}function MG(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}function FG(e){return e&&e.__esModule?e.default:e}function RG(e,t,n){var r,i,s;let a=fa(FG(Nd),"@react-aria/datepicker"),{isInvalid:o,validationErrors:l,validationDetails:d}=t.displayValidation,{labelProps:h,fieldProps:m,descriptionProps:g,errorMessageProps:b}=Km({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||l}),x=m["aria-labelledby"]||m.id,{locale:w}=Rr(),S=t.formatValue(w,{month:"long"}),E=S?a.format("selectedRangeDescription",{startDate:S.start,endDate:S.end}):"",C=Md(E),A={"aria-label":a.format("startDate"),"aria-labelledby":x},k={"aria-label":a.format("endDate"),"aria-labelledby":x},M=Hr(),R=Hr(),K=E3(t,n),H=[C["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,le=T.useMemo(()=>Vm(n,{accept:B=>B.id!==M}),[n,M]),ae={[rR]:le,[Hf]:"presentation","aria-describedby":H,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},I=Qa(e),$e=T.useRef(!1),{focusWithinProps:we}=wc({...e,isDisabled:t.isOpen,onBlurWithin:B=>{let he=document.getElementById(R);if(!(he!=null&&he.contains(B.relatedTarget))){var U,te;$e.current=!1,(U=e.onBlur)===null||U===void 0||U.call(e,B),(te=e.onFocusChange)===null||te===void 0||te.call(e,!1)}},onFocusWithin:B=>{if(!$e.current){var he,U;$e.current=!0,(he=e.onFocus)===null||he===void 0||he.call(e,B),(U=e.onFocusChange)===null||U===void 0||U.call(e,!0)}}}),W=T.useRef(vu),ie=T.useRef(vu);var O,L;return{groupProps:Qt(I,K,m,C,we,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":H,onKeyDown(B){t.isOpen||e.onKeyDown&&e.onKeyDown(B)},onKeyUp(B){t.isOpen||e.onKeyUp&&e.onKeyUp(B)}}),labelProps:{...h,onClick:()=>{le.focusFirst()}},buttonProps:{...C,id:M,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${M} ${x}`,"aria-describedby":H,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:R,"aria-labelledby":`${M} ${x}`},startFieldProps:{...A,...ae,value:(O=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&O!==void 0?O:null,onChange:B=>t.setDateTime("start",B),autoFocus:e.autoFocus,name:e.startName,[dc]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(B){W.current=B,t.updateValidation(Jp(B,ie.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...k,...ae,value:(L=(i=t.value)===null||i===void 0?void 0:i.end)!==null&&L!==void 0?L:null,onChange:B=>t.setDateTime("end",B),name:e.endName,[dc]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(B){ie.current=B,t.updateValidation(Jp(W.current,B))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:g,errorMessageProps:b,calendarProps:{autoFocus:!0,value:!((s=t.dateRange)===null||s===void 0)&&s.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:o,validationErrors:l,validationDetails:d}}function kG(e,t){let{role:n="dialog"}=e,r=uc();r=e["aria-label"]?void 0:r;let i=T.useRef(!1);return T.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){qu(t.current);let s=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),qu(t.current)),i.current=!1)},500);return()=>{clearTimeout(s)}}},[t]),tG(),{dialogProps:{...Qa(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:s=>{i.current&&s.stopPropagation()}},titleProps:{id:r}}}function tc(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function Nb(e,t,n,r,i){let s={};for(let o in t)s[o]=Math.floor(t[o]/2),s[o]>0&&t[o]%2===0&&s[o]--;let a=Cu(e,t,n).subtract(s);return cd(e,a,t,n,r,i)}function Cu(e,t,n,r,i){let s=e;return t.years?s=qz(e):t.months?s=Id(e):t.weeks&&(s=sd(e,n)),cd(e,s,t,n,r,i)}function jb(e,t,n,r,i){let s={...t};s.days?s.days--:s.weeks?s.weeks--:s.months?s.months--:s.years&&s.years--;let a=Cu(e,t,n).subtract(s);return cd(e,a,t,n,r,i)}function cd(e,t,n,r,i,s){if(i&&e.compare(i)>=0){let a=d3(t,Cu(Gr(i),n,r));a&&(t=a)}if(s&&e.compare(s)<=0){let a=f3(t,jb(Gr(s),n,r));a&&(t=a)}return t}function yo(e,t,n){if(t){let r=d3(e,Gr(t));r&&(e=r)}if(n){let r=f3(e,Gr(n));r&&(e=r)}return e}function sR(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function aR(e){let t=T.useMemo(()=>new Zi(e.locale),[e.locale]),n=T.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:s={months:1},minValue:a,maxValue:o,selectionAlignment:l,isDateUnavailable:d,pageBehavior:h="visible",firstDayOfWeek:m}=e,g=T.useMemo(()=>i(n.calendar),[i,n.calendar]);var b;let[x,w]=Ai(e.value,(b=e.defaultValue)!==null&&b!==void 0?b:null,e.onChange),S=T.useMemo(()=>x?On(Gr(x),g):null,[x,g]),E=T.useMemo(()=>x&&"timeZone"in x?x.timeZone:n.timeZone,[x,n.timeZone]),C=T.useMemo(()=>e.focusedValue?yo(On(Gr(e.focusedValue),g),a,o):void 0,[e.focusedValue,g,a,o]),A=T.useMemo(()=>yo(e.defaultFocusedValue?On(Gr(e.defaultFocusedValue),g):S||On(Lm(E),g),a,o),[e.defaultFocusedValue,S,E,g,a,o]),[k,M]=Ai(C,A,e.onFocusChange),[R,K]=T.useState(()=>{switch(l){case"start":return Cu(k,s,r,a,o);case"end":return jb(k,s,r,a,o);case"center":default:return Nb(k,s,r,a,o)}}),[H,le]=T.useState(e.autoFocus||!1),ae=T.useMemo(()=>{let te={...s};return te.days?te.days--:te.days=-1,R.add(te)},[R,s]),[I,$e]=T.useState(g);if(!Im(g,I)){let te=On(k,g);K(Nb(te,s,r,a,o)),M(te),$e(g)}tc(k,a,o)?M(yo(k,a,o)):k.compare(R)<0?K(jb(k,s,r,a,o)):k.compare(ae)>0&&K(Cu(k,s,r,a,o));function we(te){te=yo(te,a,o),M(te)}function W(te){if(!e.isDisabled&&!e.isReadOnly){let xe=te;if(xe===null){w(null);return}if(xe=yo(xe,a,o),xe=sR(xe,R,d),!xe)return;xe=On(xe,(x==null?void 0:x.calendar)||new Yr),x&&"hour"in x?w(x.set(xe)):w(xe)}}let ie=T.useMemo(()=>S?d&&d(S)?!0:tc(S,a,o):!1,[S,d,a,o]),O=e.isInvalid||e.validationState==="invalid"||ie,L=O?"invalid":null,B=T.useMemo(()=>h==="visible"?s:Yv(s),[h,s]);var he,U;return{isDisabled:(he=e.isDisabled)!==null&&he!==void 0?he:!1,isReadOnly:(U=e.isReadOnly)!==null&&U!==void 0?U:!1,value:S,setValue:W,visibleRange:{start:R,end:ae},minValue:a,maxValue:o,focusedDate:k,timeZone:E,validationState:L,isValueInvalid:O,setFocusedDate(te){we(te),le(!0)},focusNextDay(){we(k.add({days:1}))},focusPreviousDay(){we(k.subtract({days:1}))},focusNextRow(){s.days?this.focusNextPage():(s.weeks||s.months||s.years)&&we(k.add({weeks:1}))},focusPreviousRow(){s.days?this.focusPreviousPage():(s.weeks||s.months||s.years)&&we(k.subtract({weeks:1}))},focusNextPage(){let te=R.add(B);M(yo(k.add(B),a,o)),K(Cu(cd(k,te,B,r,a,o),B,r))},focusPreviousPage(){let te=R.subtract(B);M(yo(k.subtract(B),a,o)),K(Cu(cd(k,te,B,r,a,o),B,r))},focusSectionStart(){s.days?we(R):s.weeks?we(sd(k,r)):(s.months||s.years)&&we(Id(k))},focusSectionEnd(){s.days?we(ae):s.weeks?we(Hz(k,r)):(s.months||s.years)&&we(Cb(k))},focusNextSection(te){if(!te&&!s.days){we(k.add(Yv(s)));return}s.days?this.focusNextPage():s.weeks?we(k.add({months:1})):(s.months||s.years)&&we(k.add({years:1}))},focusPreviousSection(te){if(!te&&!s.days){we(k.subtract(Yv(s)));return}s.days?this.focusPreviousPage():s.weeks?we(k.subtract({months:1})):(s.months||s.years)&&we(k.subtract({years:1}))},selectFocusedDate(){d&&d(k)||W(k)},selectDate(te){W(te)},isFocused:H,setFocused:le,isInvalid(te){return tc(te,a,o)},isSelected(te){return S!=null&&nr(te,S)&&!this.isCellDisabled(te)&&!this.isCellUnavailable(te)},isCellFocused(te){return H&&k&&nr(te,k)},isCellDisabled(te){return e.isDisabled||te.compare(R)<0||te.compare(ae)>0||this.isInvalid(te)},isCellUnavailable(te){return e.isDateUnavailable?e.isDateUnavailable(te):!1},isPreviousVisibleRangeInvalid(){let te=R.subtract({days:1});return nr(te,R)||this.isInvalid(te)},isNextVisibleRangeInvalid(){let te=ae.add({days:1});return nr(te,ae)||this.isInvalid(te)},getDatesInWeek(te,xe=R){let De=xe.add({weeks:te}),_e=[];De=sd(De,r,m);let Me=c3(De,r,m);for(let Ye=0;Ye<Me;Ye++)_e.push(null);for(;_e.length<7;){_e.push(De);let Ye=De.add({days:1});if(nr(De,Ye))break;De=Ye}for(;_e.length<7;)_e.push(null);return _e}}}function Yv(e){let t={...e};for(let n in e)t[n]=1;return t}function OG(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:s,visibleDuration:a={months:1},minValue:o,maxValue:l,...d}=e,[h,m]=Ai(t,n||null,r),[g,b]=T.useState(null),x="center";if(h&&h.start&&h.end){let B=Nb(Gr(h.start),a,s,o,l).add(a).subtract({days:1});h.end.compare(B)>0&&(x="start")}let w=T.useRef(null),[S,E]=T.useState(null),C=T.useMemo(()=>d3(o,S==null?void 0:S.start),[o,S]),A=T.useMemo(()=>f3(l,S==null?void 0:S.end),[l,S]),k=aR({...d,value:h&&h.start,createCalendar:i,locale:s,visibleDuration:a,minValue:C,maxValue:A,selectionAlignment:x}),M=L=>{if(L&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const B=WE(L,k,-1),he=WE(L,k,1);w.current={start:B,end:he},E(w.current)}else w.current=null,E(null)},[R,K]=T.useState(k.visibleRange);(!wb(k.visibleRange.start,R.start)||!wb(k.visibleRange.end,R.end))&&(M(g),K(k.visibleRange));let H=L=>{L?(b(L),M(L)):(b(null),M(null))},le=g?Zv(g,k.focusedDate):h&&Zv(h.start,h.end),ae=L=>{if(e.isReadOnly)return;const B=yo(L,C,A),he=sR(B,k.visibleRange.start,e.isDateUnavailable);if(he)if(!g)H(he);else{let U=Zv(g,he);U&&m({start:zE(U.start,h==null?void 0:h.start),end:zE(U.end,h==null?void 0:h.end)}),H(null)}},[I,$e]=T.useState(!1),{isDateUnavailable:we}=e,W=T.useMemo(()=>!h||g?!1:we&&(we(h.start)||we(h.end))?!0:tc(h.start,o,l)||tc(h.end,o,l),[we,h,g,o,l]),ie=e.isInvalid||e.validationState==="invalid"||W;return{...k,value:h,setValue:m,anchorDate:g,setAnchorDate:H,highlightedRange:le,validationState:ie?"invalid":null,isValueInvalid:ie,selectFocusedDate(){ae(k.focusedDate)},selectDate:ae,highlightDate(L){g&&k.setFocusedDate(L)},isSelected(L){return!!(le&&L.compare(le.start)>=0&&L.compare(le.end)<=0&&!k.isCellDisabled(L)&&!k.isCellUnavailable(L))},isInvalid(L){var B,he;return k.isInvalid(L)||tc(L,(B=w.current)===null||B===void 0?void 0:B.start,(he=w.current)===null||he===void 0?void 0:he.end)},isDragging:I,setDragging:$e}}function Zv(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:Gr(e),end:Gr(t)})}function zE(e,t){return e=On(e,(t==null?void 0:t.calendar)||new Yr),t&&"hour"in t?t.set(e):e}function WE(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});if(t.isCellUnavailable(r))return r.add({days:-n})}class Kb{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let o of a.childNodes)n(o)};for(let a of t)n(a);let r=null,i=0;for(let[a,o]of this.keyMap)r?(r.nextKey=a,o.prevKey=r.key):(this.firstKey=a,o.prevKey=void 0),o.type==="item"&&(o.index=i++),r=o,r.nextKey=void 0;var s;this.lastKey=(s=r==null?void 0:r.key)!==null&&s!==void 0?s:null}}class $s extends Set{constructor(t,n,r){super(t),t instanceof $s?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function IG(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function LG(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:s="all"}=e,a=T.useRef(!1),[,o]=T.useState(!1),l=T.useRef(null),d=T.useRef(null),[,h]=T.useState(null),m=T.useMemo(()=>HE(e.selectedKeys),[e.selectedKeys]),g=T.useMemo(()=>HE(e.defaultSelectedKeys,new $s),[e.defaultSelectedKeys]),[b,x]=Ai(m,g,e.onSelectionChange),w=T.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[S,E]=T.useState(i);i==="replace"&&S==="toggle"&&typeof b=="object"&&b.size===0&&E("replace");let C=T.useRef(i);return T.useEffect(()=>{i!==C.current&&(E(i),C.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:S,setSelectionBehavior:E,get isFocused(){return a.current},setFocused(A){a.current=A,o(A)},get focusedKey(){return l.current},get childFocusStrategy(){return d.current},setFocusedKey(A,k="first"){l.current=A,d.current=k,h(A)},selectedKeys:b,setSelectedKeys(A){(r||!IG(A,b))&&x(A)},disabledKeys:w,disabledBehavior:s}}function HE(e,t){return e?e==="all"?"all":new $s(e):t}class S3{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&Gv(this.collection,i,t)<0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&Gv(this.collection,i,t)>0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new $s([n],n,n);else{let a=this.state.selectedKeys;var i;let o=(i=a.anchorKey)!==null&&i!==void 0?i:n;r=new $s(a,o,n);var s;for(let l of this.getKeyRange(o,(s=a.currentKey)!==null&&s!==void 0?s:n))r.delete(l);for(let l of this.getKeyRange(n,o))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?Gv(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let i=[],s=t;for(;s!=null;){let a=this.collection.getItem(s);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&i.push(s),s===n)return i;s=this.collection.getKeyAfter(s)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new $s(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new $s([n],n,n):new $s;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new $s;for(let r of t){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let a=this.collection.getItem(r);(a==null?void 0:a.type)==="item"&&t.push(r);var s;a!=null&&a.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&n((s=(i=gG(qm(a,this.collection)))===null||i===void 0?void 0:i.key)!==null&&s!==void 0?s:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new $s)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}withCollection(t){return new S3(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,n,r){this.collection=t,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function BG(e){let{filter:t,layoutDelegate:n}=e,r=LG(e),i=T.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=T.useCallback(d=>t?new Kb(t(d)):new Kb(d),[t]),a=T.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),o=mG(e,s,a),l=T.useMemo(()=>new S3(o,r,{layoutDelegate:n}),[o,r,n]);return VG(o,l),{collection:o,disabledKeys:i,selectionManager:l}}function VG(e,t){const n=T.useRef(null);T.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){const h=n.current.getItem(t.focusedKey),m=[...n.current.getKeys()].map(E=>{const C=n.current.getItem(E);return(C==null?void 0:C.type)==="item"?C:null}).filter(E=>E!==null),g=[...e.getKeys()].map(E=>{const C=e.getItem(E);return(C==null?void 0:C.type)==="item"?C:null}).filter(E=>E!==null);var r,i;const b=((r=m==null?void 0:m.length)!==null&&r!==void 0?r:0)-((i=g==null?void 0:g.length)!==null&&i!==void 0?i:0);var s,a,o;let x=Math.min(b>1?Math.max(((s=h==null?void 0:h.index)!==null&&s!==void 0?s:0)-b+1,0):(a=h==null?void 0:h.index)!==null&&a!==void 0?a:0,((o=g==null?void 0:g.length)!==null&&o!==void 0?o:0)-1),w=null,S=!1;for(;x>=0;){if(!t.isDisabled(g[x].key)){w=g[x];break}if(x<g.length-1&&!S)x++;else{S=!0;var l,d;x>((l=h==null?void 0:h.index)!==null&&l!==void 0?l:0)&&(x=(d=h==null?void 0:h.index)!==null&&d!==void 0?d:0),x--}}t.setFocusedKey(w?w.key:null)}n.current=e},[e,t])}function NG(e){var t;let[n,r]=Ai(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=T.useMemo(()=>n!=null?[n]:[],[n]),{collection:s,disabledKeys:a,selectionManager:o}=BG({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:d=>{if(d==="all")return;var h;let m=(h=d.values().next().value)!==null&&h!==void 0?h:null;m===n&&e.onSelectionChange&&e.onSelectionChange(m),r(m)}}),l=n!=null?s.getItem(n):null;return{collection:s,disabledKeys:a,selectionManager:o,selectedKey:n,setSelectedKey:r,selectedItem:l}}function D3(e){let[t,n]=Ai(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=T.useCallback(()=>{n(!0)},[n]),i=T.useCallback(()=>{n(!1)},[n]),s=T.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:s}}function jG(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:s,shouldCloseOnBlur:a=!0}=e,[o,l]=T.useState(!1),[d,h]=T.useState(!1),[m,g]=T.useState(null),b=mt=>{e.onSelectionChange&&e.onSelectionChange(mt),mt===E&&(_e(),te())};var x;let{collection:w,selectionManager:S,selectedKey:E,setSelectedKey:C,selectedItem:A,disabledKeys:k}=NG({...e,onSelectionChange:b,items:(x=e.items)!==null&&x!==void 0?x:e.defaultItems}),M=e.defaultInputValue;if(M==null){var R,K;E==null?M="":M=(K=(R=w.getItem(E))===null||R===void 0?void 0:R.textValue)!==null&&K!==void 0?K:""}let[H,le]=Ai(e.inputValue,M,e.onInputChange),ae=w,I=T.useMemo(()=>e.items!=null||!n?w:KG(w,H,n),[w,H,n,e.items]),[$e,we]=T.useState(I),W=T.useRef("focus"),O=D3({...e,onOpenChange:mt=>{e.onOpenChange&&e.onOpenChange(mt,mt?W.current:void 0),S.setFocused(mt),mt||S.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),L=(mt=null,me)=>{let Se=me==="manual"||me==="focus"&&r==="focus";(i||I.size>0||Se&&ae.size>0||e.items)&&(Se&&!O.isOpen&&e.items===void 0&&l(!0),W.current=me,g(mt),O.open())},B=(mt=null,me)=>{let Se=me==="manual"||me==="focus"&&r==="focus";!(i||I.size>0||Se&&ae.size>0||e.items)&&!O.isOpen||(Se&&!O.isOpen&&e.items===void 0&&l(!0),O.isOpen||(W.current=me),U(mt))},he=T.useCallback(()=>{we(o?ae:I)},[o,ae,I]),U=T.useCallback((mt=null)=>{O.isOpen&&he(),g(mt),O.toggle()},[O,he]),te=T.useCallback(()=>{O.isOpen&&(he(),O.close())},[O,he]),[xe,De]=T.useState(H),_e=()=>{var mt,me;let Se=E!=null&&(me=(mt=w.getItem(E))===null||mt===void 0?void 0:mt.textValue)!==null&&me!==void 0?me:"";De(Se),le(Se)};var Me,Ye;let Ge=T.useRef((Ye=(Me=e.selectedKey)!==null&&Me!==void 0?Me:e.defaultSelectedKey)!==null&&Ye!==void 0?Ye:null);var Ae;let Ke=T.useRef(E!=null&&(Ae=(t=w.getItem(E))===null||t===void 0?void 0:t.textValue)!==null&&Ae!==void 0?Ae:"");T.useEffect(()=>{var mt;d&&(I.size>0||i)&&!O.isOpen&&H!==xe&&r!=="manual"&&L(null,"input"),!o&&!i&&O.isOpen&&I.size===0&&te(),E!=null&&E!==Ge.current&&te(),H!==xe&&(S.setFocusedKey(null),l(!1),H===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&C(null)),E!==Ge.current&&(e.inputValue===void 0||e.selectedKey===void 0)?_e():xe!==H&&De(H);var me;let Se=E!=null&&(me=(mt=w.getItem(E))===null||mt===void 0?void 0:mt.textValue)!==null&&me!==void 0?me:"";!d&&E!=null&&e.inputValue===void 0&&E===Ge.current&&Ke.current!==Se&&(De(Se),le(Se)),Ge.current=E,Ke.current=Se});let We=Vd({...e,value:T.useMemo(()=>({inputValue:H,selectedKey:E}),[H,E])}),Ve=()=>{s&&E==null?Te():tt()},Te=()=>{Ge.current=null,C(null),te()},tt=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var mt,me;(mt=e.onSelectionChange)===null||mt===void 0||mt.call(e,E);var Se;let Le=E!=null&&(Se=(me=w.getItem(E))===null||me===void 0?void 0:me.textValue)!==null&&Se!==void 0?Se:"";De(Le),te()}else _e(),te()};const yt=()=>{if(s){var mt,me;const Se=E!=null&&(me=(mt=w.getItem(E))===null||mt===void 0?void 0:mt.textValue)!==null&&me!==void 0?me:"";H===Se?tt():Te()}else tt()};let Jt=()=>{O.isOpen&&S.focusedKey!=null?E===S.focusedKey?tt():C(S.focusedKey):yt()},xt=T.useRef(H),Mt=mt=>{mt?(xt.current=H,r==="focus"&&!e.isReadOnly&&L(null,"focus")):(a&&yt(),H!==xt.current&&We.commitValidation()),h(mt)},Ti=T.useMemo(()=>O.isOpen?o?ae:I:$e,[O.isOpen,ae,I,o,$e]);return{...We,...O,focusStrategy:m,toggle:B,open:L,close:yt,selectionManager:S,selectedKey:E,setSelectedKey:C,disabledKeys:k,isFocused:d,setFocused:Mt,selectedItem:A,collection:Ti,inputValue:H,setInputValue:le,commit:Jt,revert:Ve}}function KG(e,t,n){return new Kb(oR(e,e,t,n))}function oR(e,t,n,r){let i=[];for(let s of t)if(s.type==="section"&&s.hasChildNodes){let a=oR(e,qm(s,e),n,r);[...a].some(o=>o.type==="item")&&i.push({...s,childNodes:a})}else s.type==="item"&&r(s.textValue,n)?i.push({...s}):s.type!=="item"&&i.push({...s});return i}var uR={};uR={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var lR={};lR={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var cR={};cR={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var fR={};fR={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var dR={};dR={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var hR={};hR={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var pR={};pR={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var mR={};mR={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var gR={};gR={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var vR={};vR={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var yR={};yR={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var bR={};bR={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var $R={};$R={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var xR={};xR={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var wR={};wR={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var CR={};CR={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var ER={};ER={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var SR={};SR={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var DR={};DR={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var AR={};AR={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var TR={};TR={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var PR={};PR={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var _R={};_R={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var MR={};MR={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var FR={};FR={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var RR={};RR={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var kR={};kR={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var OR={};OR={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var IR={};IR={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var LR={};LR={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var BR={};BR={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var VR={};VR={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var NR={};NR={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var jR={};jR={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var KR={};KR={"ar-AE":uR,"bg-BG":lR,"cs-CZ":cR,"da-DK":fR,"de-DE":dR,"el-GR":hR,"en-US":pR,"es-ES":mR,"et-EE":gR,"fi-FI":vR,"fr-FR":yR,"he-IL":bR,"hr-HR":$R,"hu-HU":xR,"it-IT":wR,"ja-JP":CR,"ko-KR":ER,"lt-LT":SR,"lv-LV":DR,"nb-NO":AR,"nl-NL":TR,"pl-PL":PR,"pt-BR":_R,"pt-PT":MR,"ro-RO":FR,"ru-RU":RR,"sk-SK":kR,"sl-SI":OR,"sr-SP":IR,"sv-SE":LR,"tr-TR":BR,"uk-UA":VR,"zh-CN":NR,"zh-TW":jR};function UG(e){return e&&e.__esModule?e.default:e}const UR=new Lo(UG(KR));function qR(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function em(e,t,n,r,i){let s=e!=null&&n!=null&&e.compare(n)>0,a=e!=null&&t!=null&&e.compare(t)<0,o=e!=null&&(r==null?void 0:r(e))||!1,l=s||a||o,d=[];if(l){let h=qR(),m=Lo.getGlobalDictionaryForPackage("@react-stately/datepicker")||UR,g=new qP(h,m),b=new Zi(h,za({},i)),x=b.resolvedOptions().timeZone;a&&t!=null&&d.push(g.format("rangeUnderflow",{minValue:b.format(t.toDate(x))})),s&&n!=null&&d.push(g.format("rangeOverflow",{maxValue:b.format(n.toDate(x))})),o&&d.push(g.format("unavailableDate"))}return{isInvalid:l,validationErrors:d,validationDetails:{badInput:o,customError:!1,patternMismatch:!1,rangeOverflow:s,rangeUnderflow:a,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function qG(e,t,n,r,i){var s;let a=em((s=e==null?void 0:e.start)!==null&&s!==void 0?s:null,t,n,r,i);var o;let l=em((o=e==null?void 0:e.end)!==null&&o!==void 0?o:null,t,n,r,i),d=Jp(a,l);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let h=Lo.getGlobalDictionaryForPackage("@react-stately/datepicker")||UR;d=Jp(d,{isInvalid:!0,validationErrors:[h.getStringForLocale("rangeReversed",qR())],validationDetails:{...Nm,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return d}const zG={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},WG={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function za(e,t){e={...t.shouldForceLeadingZeros?WG:zG,...e};let r=t.granularity||"minute",i=Object.keys(e);var s;let a=i.indexOf((s=t.maxGranularity)!==null&&s!==void 0?s:"year");a<0&&(a=0);let o=i.indexOf(r);if(o<0&&(o=2),a>o)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(a,o+1).reduce((h,m)=>(h[m]=e[m],h),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&a===0&&(l.era="short"),l}function Ll(e){return e&&"hour"in e?e:new Ld}function zR(e,t){if(e===null)return null;if(e)return On(e,t)}function Cf(e,t,n,r){if(e)return zR(e,n);let i=On(GP(r??Od()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?Gr(i):r?i:As(i)}function A3(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,s]=T.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&s([r,n]),t||(t=e?r:i[0]);let a=e?n:i[1];return[t,a]}function HG(e){let t=D3(e),[n,r]=Ai(e.value,e.defaultValue||null,e.onChange),i=n||e.placeholderValue||null,[s,a]=A3(i,e.granularity),o=n!=null?n.toDate(a??"UTC"):null,l=s==="hour"||s==="minute"||s==="second";var d;let h=(d=e.shouldCloseOnSelect)!==null&&d!==void 0?d:!0,[m,g]=T.useState(null),[b,x]=T.useState(null);if(n&&(m=n,"hour"in n&&(b=n)),i&&!(s in i))throw new Error("Invalid granularity "+s+" for value "+i.toString());let w=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",S=T.useMemo(()=>({granularity:s,timeZone:a,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:w}),[s,e.hourCycle,e.shouldForceLeadingZeros,a,e.hideTimeZone,w]),{minValue:E,maxValue:C,isDateUnavailable:A}=e,k=T.useMemo(()=>em(n,E,C,A,S),[n,E,C,A,S]),M=Vd({...e,value:n,builtinValidation:k}),R=M.displayValidation.isInvalid,K=e.validationState||(R?"invalid":null),H=(I,$e)=>{r("timeZone"in $e?$e.set(Gr(I)):As(I,$e)),g(null),x(null),M.commitValidation()};return{...M,value:n,setValue:r,dateValue:m,timeValue:b,setDateValue:I=>{let $e=typeof h=="function"?h():h;l?b||$e?H(I,b||Ll(e.defaultValue||e.placeholderValue)):g(I):(r(I),M.commitValidation()),$e&&t.setOpen(!1)},setTimeValue:I=>{m&&I?H(m,I):x(I)},granularity:s,hasTime:l,...t,setOpen(I){!I&&!n&&m&&l&&H(m,b||Ll(e.defaultValue||e.placeholderValue)),t.setOpen(I)},validationState:K,isInvalid:R,formatValue(I,$e){if(!o)return"";let we=za($e,S);return new Zi(I,we).format(o)},getDateFormatter(I,$e){let we={...S,...$e},W=za({},we);return new Zi(I,W)}}}const GG=new Lo({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"年",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function YG(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?GG.getStringForLocale(e,n):"––"}const yp={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},GE={year:5,month:2,day:7,hour:2,minute:15,second:15},WR={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function HR(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:s=!1,isRequired:a=!1,minValue:o,maxValue:l,isDateUnavailable:d}=e,h=e.value||e.defaultValue||e.placeholderValue||null,[m,g]=A3(h,e.granularity),b=g||"UTC";if(h&&!(m in h))throw new Error("Invalid granularity "+m+" for value "+h.toString());let x=T.useMemo(()=>new Zi(t),[t]),w=T.useMemo(()=>n(x.resolvedOptions().calendar),[n,x]);var S;let[E,C]=Ai(e.value,(S=e.defaultValue)!==null&&S!==void 0?S:null,e.onChange),A=T.useMemo(()=>{var Ae;return(Ae=zR(E,w))!==null&&Ae!==void 0?Ae:null},[E,w]),[k,M]=T.useState(()=>Cf(e.placeholderValue,m,w,g)),R=A||k,K=w.identifier==="gregory"&&R.era==="BC",H=T.useMemo(()=>{var Ae;return{granularity:m,maxGranularity:(Ae=e.maxGranularity)!==null&&Ae!==void 0?Ae:"year",timeZone:g,hideTimeZone:r,hourCycle:e.hourCycle,showEra:K,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,m,e.hourCycle,e.shouldForceLeadingZeros,g,r,K]),le=T.useMemo(()=>za({},H),[H]),ae=T.useMemo(()=>new Zi(t,le),[t,le]),I=T.useMemo(()=>ae.resolvedOptions(),[ae]),$e=T.useMemo(()=>ae.formatToParts(new Date).filter(Ae=>yp[Ae.type]).reduce((Ae,Ke)=>(Ae[WR[Ke.type]||Ke.type]=!0,Ae),{}),[ae]),[we,W]=T.useState(()=>e.value||e.defaultValue?{...$e}:{}),ie=T.useRef(null),O=T.useRef(w);T.useEffect(()=>{Im(w,O.current)||(O.current=w,M(Ae=>Object.keys(we).length>0?On(Ae,w):Cf(e.placeholderValue,m,w,g)))},[w,m,we,g,e.placeholderValue]),E&&Object.keys(we).length<Object.keys($e).length&&(we={...$e},W(we)),E==null&&Object.keys(we).length===Object.keys($e).length&&(we={},W(we),M(Cf(e.placeholderValue,m,w,g)));let L=A&&Object.keys(we).length>=Object.keys($e).length?A:k,B=Ae=>{if(e.isDisabled||e.isReadOnly)return;let Ke=Object.keys(we),We=Object.keys($e);Ae==null?(C(null),M(Cf(e.placeholderValue,m,w,g)),W({})):Ke.length>=We.length||Ke.length===We.length-1&&$e.dayPeriod&&!we.dayPeriod&&ie.current!=="dayPeriod"?(Ae=On(Ae,(h==null?void 0:h.calendar)||new Yr),C(Ae)):M(Ae),ie.current=null},he=T.useMemo(()=>L.toDate(b),[L,b]),U=T.useMemo(()=>ZG(he,we,ae,I,L,w,t,m),[he,we,ae,I,L,w,t,m]);$e.era&&we.year&&!we.era?(we.era=!0,W({...we})):!$e.era&&we.era&&(delete we.era,W({...we}));let te=Ae=>{we[Ae]=!0,Ae==="year"&&$e.era&&(we.era=!0),W({...we})},xe=(Ae,Ke)=>{if(we[Ae])B(XG(L,Ae,Ke,I));else{te(Ae);let We=Object.keys(we),Ve=Object.keys($e);(We.length>=Ve.length||We.length===Ve.length-1&&$e.dayPeriod&&!we.dayPeriod)&&B(L)}},De=T.useMemo(()=>em(E,o,l,d,H),[E,o,l,d,H]),_e=Vd({...e,value:E,builtinValidation:De}),Me=_e.displayValidation.isInvalid,Ye=e.validationState||(Me?"invalid":null);var Ge;return{..._e,value:A,dateValue:he,calendar:w,setValue:B,segments:U,dateFormatter:ae,validationState:Ye,isInvalid:Me,granularity:m,maxGranularity:(Ge=e.maxGranularity)!==null&&Ge!==void 0?Ge:"year",isDisabled:i,isReadOnly:s,isRequired:a,increment(Ae){xe(Ae,1)},decrement(Ae){xe(Ae,-1)},incrementPage(Ae){xe(Ae,GE[Ae]||1)},decrementPage(Ae){xe(Ae,-(GE[Ae]||1))},setSegment(Ae,Ke){te(Ae),B(JG(L,Ae,Ke,I))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let Ae=Object.keys(we),Ke=Object.keys($e);Ae.length===Ke.length-1&&$e.dayPeriod&&!we.dayPeriod&&(we={...$e},W(we),B(L.copy()))},clearSegment(Ae){delete we[Ae],ie.current=Ae,W({...we});let Ke=Cf(e.placeholderValue,m,w,g),We=L;if(Ae==="dayPeriod"&&"hour"in L&&"hour"in Ke){let Ve=L.hour>=12,Te=Ke.hour>=12;Ve&&!Te?We=L.set({hour:L.hour-12}):!Ve&&Te&&(We=L.set({hour:L.hour+12}))}else Ae==="hour"&&"hour"in L&&L.hour>=12&&we.dayPeriod?We=L.set({hour:Ke.hour+12}):Ae in L&&(We=L.set({[Ae]:Ke[Ae]}));C(null),B(We)},formatValue(Ae){if(!A)return"";let Ke=za(Ae,H);return new Zi(t,Ke).format(he)},getDateFormatter(Ae,Ke){let We={...H,...Ke},Ve=za({},We);return new Zi(Ae,Ve)}}}function ZG(e,t,n,r,i,s,a,o){let l=["hour","minute","second"],d=n.formatToParts(e),h=[];for(let m of d){let g=WR[m.type]||m.type,b=yp[g];g==="era"&&s.getEras().length===1&&(b=!1);let x=yp[g]&&!t[g],w=yp[g]?YG(g,m.value,a):null,S={type:g,text:x?w:m.value,...Hh(i,g,r),isPlaceholder:x,placeholder:w,isEditable:b};g==="hour"?(h.push({type:"literal",text:"",...Hh(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1}),h.push(S),g===o&&h.push({type:"literal",text:"",...Hh(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):l.includes(g)&&g===o?(h.push(S),h.push({type:"literal",text:"",...Hh(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):h.push(S)}return h}function Hh(e,t,n){switch(t){case"era":{let r=e.calendar.getEras();return{value:r.indexOf(e.era),minValue:0,maxValue:r.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:zz(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:Wz(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let r=e.hour>=12;return{value:e.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function XG(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let i=e.hour,s=i>=12;return e.set({hour:s?i-12:i+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}throw new Error("Unknown segment: "+t)}function JG(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e&&typeof n=="number")switch(t){case"dayPeriod":{let i=e.hour,s=i>=12;return n>=12===s?e:e.set({hour:s?i-12:i+12})}case"hour":if(r.hour12){let s=e.hour>=12;!s&&n===12&&(n=0),s&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}throw new Error("Unknown segment: "+t)}function QG(e){var t,n;let r=D3(e),[i,s]=Ai(e.value,e.defaultValue||null,e.onChange),[a,o]=T.useState(()=>i||{start:null,end:null});i==null&&a.start&&a.end&&(a={start:null,end:null},o(a));let l=i||a,d=O=>{o(O||{start:null,end:null}),fu(O)?s(O):s(null)},h=(l==null?void 0:l.start)||(l==null?void 0:l.end)||e.placeholderValue||null,[m,g]=A3(h,e.granularity),b=m==="hour"||m==="minute"||m==="second";var x;let w=(x=e.shouldCloseOnSelect)!==null&&x!==void 0?x:!0,[S,E]=T.useState(null),[C,A]=T.useState(null);l&&fu(l)&&(S=l,"hour"in l.start&&(C=l));let k=(O,L)=>{d({start:"timeZone"in L.start?L.start.set(Gr(O.start)):As(O.start,L.start),end:"timeZone"in L.end?L.end.set(Gr(O.end)):As(O.end,L.end)}),E(null),A(null),we.commitValidation()},M=O=>{let L=typeof w=="function"?w():w;b?fu(O)&&(L||C!=null&&C.start&&(C!=null&&C.end))?k(O,{start:(C==null?void 0:C.start)||Ll(e.placeholderValue),end:(C==null?void 0:C.end)||Ll(e.placeholderValue)}):E(O):fu(O)?(d(O),we.commitValidation()):E(O),L&&r.setOpen(!1)},R=O=>{fu(S)&&fu(O)?k(S,O):A(O)},K=(l==null||(t=l.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&l.start.era==="BC"||(l==null||(n=l.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&l.end.era==="BC",H=T.useMemo(()=>({granularity:m,timeZone:g,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:K}),[m,e.hourCycle,e.shouldForceLeadingZeros,g,e.hideTimeZone,K]),{minValue:le,maxValue:ae,isDateUnavailable:I}=e,$e=T.useMemo(()=>qG(l,le,ae,I,H),[l,le,ae,I,H]),we=Vd({...e,value:i,name:T.useMemo(()=>[e.startName,e.endName].filter(O=>O!=null),[e.startName,e.endName]),builtinValidation:$e}),W=we.displayValidation.isInvalid,ie=e.validationState||(W?"invalid":null);return{...we,value:l,setValue:d,dateRange:S,timeRange:C,granularity:m,hasTime:b,setDate(O,L){var B,he;M(O==="start"?{start:L,end:(B=S==null?void 0:S.end)!==null&&B!==void 0?B:null}:{start:(he=S==null?void 0:S.start)!==null&&he!==void 0?he:null,end:L})},setTime(O,L){var B,he;R(O==="start"?{start:L,end:(B=C==null?void 0:C.end)!==null&&B!==void 0?B:null}:{start:(he=C==null?void 0:C.start)!==null&&he!==void 0?he:null,end:L})},setDateTime(O,L){var B,he;d(O==="start"?{start:L,end:(B=l==null?void 0:l.end)!==null&&B!==void 0?B:null}:{start:(he=l==null?void 0:l.start)!==null&&he!==void 0?he:null,end:L})},setDateRange:M,setTimeRange:R,...r,setOpen(O){!O&&!(l!=null&&l.start&&(l!=null&&l.end))&&fu(S)&&b&&k(S,{start:(C==null?void 0:C.start)||Ll(e.placeholderValue),end:(C==null?void 0:C.end)||Ll(e.placeholderValue)}),r.setOpen(O)},validationState:ie,isInvalid:W,formatValue(O,L){if(!l||!l.start||!l.end)return null;let B="timeZone"in l.start?l.start.timeZone:void 0,he=e.granularity||(l.start&&"minute"in l.start?"minute":"day"),U="timeZone"in l.end?l.end.timeZone:void 0,te=e.granularity||(l.end&&"minute"in l.end?"minute":"day"),xe=za(L,{granularity:he,timeZone:B,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:l.start.calendar.identifier==="gregory"&&l.start.era==="BC"||l.end.calendar.identifier==="gregory"&&l.end.era==="BC"}),De=l.start.toDate(B||"UTC"),_e=l.end.toDate(U||"UTC"),Me=new Zi(O,xe),Ye;if(B===U&&he===te&&l.start.compare(l.end)!==0){try{let Ge=Me.formatRangeToParts(De,_e),Ae=-1;for(let Ve=0;Ve<Ge.length;Ve++){let Te=Ge[Ve];if(Te.source==="shared"&&Te.type==="literal")Ae=Ve;else if(Te.source==="endRange")break}let Ke="",We="";for(let Ve=0;Ve<Ge.length;Ve++)Ve<Ae?Ke+=Ge[Ve].value:Ve>Ae&&(We+=Ge[Ve].value);return{start:Ke,end:We}}catch{}Ye=Me}else{let Ge=za(L,{granularity:te,timeZone:U,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});Ye=new Zi(O,Ge)}return{start:Me.format(De),end:Ye.format(_e)}},getDateFormatter(O,L){let B={...H,...L},he=za({},B);return new Zi(O,he)}}}function fu(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function eY(e){let{placeholderValue:t=new Ld,minValue:n,maxValue:r,granularity:i,validate:s}=e;var a;let[o,l]=Ai(e.value,(a=e.defaultValue)!==null&&a!==void 0?a:null,e.onChange),d=o||t,h=d&&"day"in d?d:void 0,m=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,g=T.useMemo(()=>{let A=d&&"timeZone"in d?d.timeZone:void 0;return(A||m)&&t?t_(Ef(t),A||m):Ef(t)},[t,d,m]),b=T.useMemo(()=>Ef(n,h),[n,h]),x=T.useMemo(()=>Ef(r,h),[r,h]),w=T.useMemo(()=>o&&"day"in o?iE(o):o,[o]),S=T.useMemo(()=>o==null?null:Ef(o),[o]);return{...HR({...e,value:S,defaultValue:void 0,minValue:b,maxValue:x,onChange:A=>{l(h||m?A:A&&iE(A))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:g??void 0,createCalendar:()=>new Yr,validate:T.useCallback(()=>s==null?void 0:s(o),[s,o])}),timeValue:w}}function Ef(e,t=Lm(Od())){return e?"day"in e?e:As(t,e):null}var Xv,YE;function tY(){if(YE)return Xv;YE=1;function e(){this.__data__=[],this.size=0}return Xv=e,Xv}var Jv,ZE;function T3(){if(ZE)return Jv;ZE=1;function e(t,n){return t===n||t!==t&&n!==n}return Jv=e,Jv}var Qv,XE;function zm(){if(XE)return Qv;XE=1;var e=T3();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return Qv=t,Qv}var ey,JE;function nY(){if(JE)return ey;JE=1;var e=zm(),t=Array.prototype,n=t.splice;function r(i){var s=this.__data__,a=e(s,i);if(a<0)return!1;var o=s.length-1;return a==o?s.pop():n.call(s,a,1),--this.size,!0}return ey=r,ey}var ty,QE;function rY(){if(QE)return ty;QE=1;var e=zm();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return ty=t,ty}var ny,eS;function iY(){if(eS)return ny;eS=1;var e=zm();function t(n){return e(this.__data__,n)>-1}return ny=t,ny}var ry,tS;function sY(){if(tS)return ry;tS=1;var e=zm();function t(n,r){var i=this.__data__,s=e(i,n);return s<0?(++this.size,i.push([n,r])):i[s][1]=r,this}return ry=t,ry}var iy,nS;function Wm(){if(nS)return iy;nS=1;var e=tY(),t=nY(),n=rY(),r=iY(),i=sY();function s(a){var o=-1,l=a==null?0:a.length;for(this.clear();++o<l;){var d=a[o];this.set(d[0],d[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,iy=s,iy}var sy,rS;function aY(){if(rS)return sy;rS=1;var e=Wm();function t(){this.__data__=new e,this.size=0}return sy=t,sy}var ay,iS;function oY(){if(iS)return ay;iS=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return ay=e,ay}var oy,sS;function uY(){if(sS)return oy;sS=1;function e(t){return this.__data__.get(t)}return oy=e,oy}var uy,aS;function lY(){if(aS)return uy;aS=1;function e(t){return this.__data__.has(t)}return uy=e,uy}var ly,oS;function GR(){if(oS)return ly;oS=1;var e=typeof Yi=="object"&&Yi&&Yi.Object===Object&&Yi;return ly=e,ly}var cy,uS;function to(){if(uS)return cy;uS=1;var e=GR(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return cy=n,cy}var fy,lS;function Hm(){if(lS)return fy;lS=1;var e=to(),t=e.Symbol;return fy=t,fy}var dy,cS;function cY(){if(cS)return dy;cS=1;var e=Hm(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function s(a){var o=n.call(a,i),l=a[i];try{a[i]=void 0;var d=!0}catch{}var h=r.call(a);return d&&(o?a[i]=l:delete a[i]),h}return dy=s,dy}var hy,fS;function fY(){if(fS)return hy;fS=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return hy=n,hy}var py,dS;function Cc(){if(dS)return py;dS=1;var e=Hm(),t=cY(),n=fY(),r="[object Null]",i="[object Undefined]",s=e?e.toStringTag:void 0;function a(o){return o==null?o===void 0?i:r:s&&s in Object(o)?t(o):n(o)}return py=a,py}var my,hS;function Ec(){if(hS)return my;hS=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return my=e,my}var gy,pS;function P3(){if(pS)return gy;pS=1;var e=Cc(),t=Ec(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function a(o){if(!t(o))return!1;var l=e(o);return l==r||l==i||l==n||l==s}return gy=a,gy}var vy,mS;function dY(){if(mS)return vy;mS=1;var e=to(),t=e["__core-js_shared__"];return vy=t,vy}var yy,gS;function hY(){if(gS)return yy;gS=1;var e=dY(),t=function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!t&&t in r}return yy=n,yy}var by,vS;function YR(){if(vS)return by;vS=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return by=n,by}var $y,yS;function pY(){if(yS)return $y;yS=1;var e=P3(),t=hY(),n=Ec(),r=YR(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,a=Function.prototype,o=Object.prototype,l=a.toString,d=o.hasOwnProperty,h=RegExp("^"+l.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(g){if(!n(g)||t(g))return!1;var b=e(g)?h:s;return b.test(r(g))}return $y=m,$y}var xy,bS;function mY(){if(bS)return xy;bS=1;function e(t,n){return t==null?void 0:t[n]}return xy=e,xy}var wy,$S;function Sc(){if($S)return wy;$S=1;var e=pY(),t=mY();function n(r,i){var s=t(r,i);return e(s)?s:void 0}return wy=n,wy}var Cy,xS;function _3(){if(xS)return Cy;xS=1;var e=Sc(),t=to(),n=e(t,"Map");return Cy=n,Cy}var Ey,wS;function Gm(){if(wS)return Ey;wS=1;var e=Sc(),t=e(Object,"create");return Ey=t,Ey}var Sy,CS;function gY(){if(CS)return Sy;CS=1;var e=Gm();function t(){this.__data__=e?e(null):{},this.size=0}return Sy=t,Sy}var Dy,ES;function vY(){if(ES)return Dy;ES=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Dy=e,Dy}var Ay,SS;function yY(){if(SS)return Ay;SS=1;var e=Gm(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(s){var a=this.__data__;if(e){var o=a[s];return o===t?void 0:o}return r.call(a,s)?a[s]:void 0}return Ay=i,Ay}var Ty,DS;function bY(){if(DS)return Ty;DS=1;var e=Gm(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var s=this.__data__;return e?s[i]!==void 0:n.call(s,i)}return Ty=r,Ty}var Py,AS;function $Y(){if(AS)return Py;AS=1;var e=Gm(),t="__lodash_hash_undefined__";function n(r,i){var s=this.__data__;return this.size+=this.has(r)?0:1,s[r]=e&&i===void 0?t:i,this}return Py=n,Py}var _y,TS;function xY(){if(TS)return _y;TS=1;var e=gY(),t=vY(),n=yY(),r=bY(),i=$Y();function s(a){var o=-1,l=a==null?0:a.length;for(this.clear();++o<l;){var d=a[o];this.set(d[0],d[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,_y=s,_y}var My,PS;function wY(){if(PS)return My;PS=1;var e=xY(),t=Wm(),n=_3();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return My=r,My}var Fy,_S;function CY(){if(_S)return Fy;_S=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Fy=e,Fy}var Ry,MS;function Ym(){if(MS)return Ry;MS=1;var e=CY();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return Ry=t,Ry}var ky,FS;function EY(){if(FS)return ky;FS=1;var e=Ym();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return ky=t,ky}var Oy,RS;function SY(){if(RS)return Oy;RS=1;var e=Ym();function t(n){return e(this,n).get(n)}return Oy=t,Oy}var Iy,kS;function DY(){if(kS)return Iy;kS=1;var e=Ym();function t(n){return e(this,n).has(n)}return Iy=t,Iy}var Ly,OS;function AY(){if(OS)return Ly;OS=1;var e=Ym();function t(n,r){var i=e(this,n),s=i.size;return i.set(n,r),this.size+=i.size==s?0:1,this}return Ly=t,Ly}var By,IS;function M3(){if(IS)return By;IS=1;var e=wY(),t=EY(),n=SY(),r=DY(),i=AY();function s(a){var o=-1,l=a==null?0:a.length;for(this.clear();++o<l;){var d=a[o];this.set(d[0],d[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,By=s,By}var Vy,LS;function TY(){if(LS)return Vy;LS=1;var e=Wm(),t=_3(),n=M3(),r=200;function i(s,a){var o=this.__data__;if(o instanceof e){var l=o.__data__;if(!t||l.length<r-1)return l.push([s,a]),this.size=++o.size,this;o=this.__data__=new n(l)}return o.set(s,a),this.size=o.size,this}return Vy=i,Vy}var Ny,BS;function ZR(){if(BS)return Ny;BS=1;var e=Wm(),t=aY(),n=oY(),r=uY(),i=lY(),s=TY();function a(o){var l=this.__data__=new e(o);this.size=l.size}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=s,Ny=a,Ny}var jy,VS;function PY(){if(VS)return jy;VS=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return jy=t,jy}var Ky,NS;function _Y(){if(NS)return Ky;NS=1;function e(t){return this.__data__.has(t)}return Ky=e,Ky}var Uy,jS;function MY(){if(jS)return Uy;jS=1;var e=M3(),t=PY(),n=_Y();function r(i){var s=-1,a=i==null?0:i.length;for(this.__data__=new e;++s<a;)this.add(i[s])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Uy=r,Uy}var qy,KS;function XR(){if(KS)return qy;KS=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return qy=e,qy}var zy,US;function FY(){if(US)return zy;US=1;function e(t,n){return t.has(n)}return zy=e,zy}var Wy,qS;function JR(){if(qS)return Wy;qS=1;var e=MY(),t=XR(),n=FY(),r=1,i=2;function s(a,o,l,d,h,m){var g=l&r,b=a.length,x=o.length;if(b!=x&&!(g&&x>b))return!1;var w=m.get(a),S=m.get(o);if(w&&S)return w==o&&S==a;var E=-1,C=!0,A=l&i?new e:void 0;for(m.set(a,o),m.set(o,a);++E<b;){var k=a[E],M=o[E];if(d)var R=g?d(M,k,E,o,a,m):d(k,M,E,a,o,m);if(R!==void 0){if(R)continue;C=!1;break}if(A){if(!t(o,function(K,H){if(!n(A,H)&&(k===K||h(k,K,l,d,m)))return A.push(H)})){C=!1;break}}else if(!(k===M||h(k,M,l,d,m))){C=!1;break}}return m.delete(a),m.delete(o),C}return Wy=s,Wy}var Hy,zS;function RY(){if(zS)return Hy;zS=1;var e=to(),t=e.Uint8Array;return Hy=t,Hy}var Gy,WS;function kY(){if(WS)return Gy;WS=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,s){r[++n]=[s,i]}),r}return Gy=e,Gy}var Yy,HS;function OY(){if(HS)return Yy;HS=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return Yy=e,Yy}var Zy,GS;function IY(){if(GS)return Zy;GS=1;var e=Hm(),t=RY(),n=T3(),r=JR(),i=kY(),s=OY(),a=1,o=2,l="[object Boolean]",d="[object Date]",h="[object Error]",m="[object Map]",g="[object Number]",b="[object RegExp]",x="[object Set]",w="[object String]",S="[object Symbol]",E="[object ArrayBuffer]",C="[object DataView]",A=e?e.prototype:void 0,k=A?A.valueOf:void 0;function M(R,K,H,le,ae,I,$e){switch(H){case C:if(R.byteLength!=K.byteLength||R.byteOffset!=K.byteOffset)return!1;R=R.buffer,K=K.buffer;case E:return!(R.byteLength!=K.byteLength||!I(new t(R),new t(K)));case l:case d:case g:return n(+R,+K);case h:return R.name==K.name&&R.message==K.message;case b:case w:return R==K+"";case m:var we=i;case x:var W=le&a;if(we||(we=s),R.size!=K.size&&!W)return!1;var ie=$e.get(R);if(ie)return ie==K;le|=o,$e.set(R,K);var O=r(we(R),we(K),le,ae,I,$e);return $e.delete(R),O;case S:if(k)return k.call(R)==k.call(K)}return!1}return Zy=M,Zy}var Xy,YS;function LY(){if(YS)return Xy;YS=1;function e(t,n){for(var r=-1,i=n.length,s=t.length;++r<i;)t[s+r]=n[r];return t}return Xy=e,Xy}var Jy,ZS;function da(){if(ZS)return Jy;ZS=1;var e=Array.isArray;return Jy=e,Jy}var Qy,XS;function BY(){if(XS)return Qy;XS=1;var e=LY(),t=da();function n(r,i,s){var a=i(r);return t(r)?a:e(a,s(r))}return Qy=n,Qy}var e0,JS;function VY(){if(JS)return e0;JS=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,s=0,a=[];++r<i;){var o=t[r];n(o,r,t)&&(a[s++]=o)}return a}return e0=e,e0}var t0,QS;function NY(){if(QS)return t0;QS=1;function e(){return[]}return t0=e,t0}var n0,eD;function jY(){if(eD)return n0;eD=1;var e=VY(),t=NY(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(a){return a==null?[]:(a=Object(a),e(i(a),function(o){return r.call(a,o)}))}:t;return n0=s,n0}var r0,tD;function KY(){if(tD)return r0;tD=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return r0=e,r0}var i0,nD;function Dc(){if(nD)return i0;nD=1;function e(t){return t!=null&&typeof t=="object"}return i0=e,i0}var s0,rD;function UY(){if(rD)return s0;rD=1;var e=Cc(),t=Dc(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return s0=r,s0}var a0,iD;function QR(){if(iD)return a0;iD=1;var e=UY(),t=Dc(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,s=e(function(){return arguments}())?e:function(a){return t(a)&&r.call(a,"callee")&&!i.call(a,"callee")};return a0=s,a0}var Vf={exports:{}},o0,sD;function qY(){if(sD)return o0;sD=1;function e(){return!1}return o0=e,o0}Vf.exports;var aD;function F3(){return aD||(aD=1,function(e,t){var n=to(),r=qY(),i=t&&!t.nodeType&&t,s=i&&!0&&e&&!e.nodeType&&e,a=s&&s.exports===i,o=a?n.Buffer:void 0,l=o?o.isBuffer:void 0,d=l||r;e.exports=d}(Vf,Vf.exports)),Vf.exports}var u0,oD;function R3(){if(oD)return u0;oD=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var s=typeof r;return i=i??e,!!i&&(s=="number"||s!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return u0=n,u0}var l0,uD;function k3(){if(uD)return l0;uD=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return l0=t,l0}var c0,lD;function zY(){if(lD)return c0;lD=1;var e=Cc(),t=k3(),n=Dc(),r="[object Arguments]",i="[object Array]",s="[object Boolean]",a="[object Date]",o="[object Error]",l="[object Function]",d="[object Map]",h="[object Number]",m="[object Object]",g="[object RegExp]",b="[object Set]",x="[object String]",w="[object WeakMap]",S="[object ArrayBuffer]",E="[object DataView]",C="[object Float32Array]",A="[object Float64Array]",k="[object Int8Array]",M="[object Int16Array]",R="[object Int32Array]",K="[object Uint8Array]",H="[object Uint8ClampedArray]",le="[object Uint16Array]",ae="[object Uint32Array]",I={};I[C]=I[A]=I[k]=I[M]=I[R]=I[K]=I[H]=I[le]=I[ae]=!0,I[r]=I[i]=I[S]=I[s]=I[E]=I[a]=I[o]=I[l]=I[d]=I[h]=I[m]=I[g]=I[b]=I[x]=I[w]=!1;function $e(we){return n(we)&&t(we.length)&&!!I[e(we)]}return c0=$e,c0}var f0,cD;function WY(){if(cD)return f0;cD=1;function e(t){return function(n){return t(n)}}return f0=e,f0}var Nf={exports:{}};Nf.exports;var fD;function HY(){return fD||(fD=1,function(e,t){var n=GR(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===r,a=s&&n.process,o=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=o}(Nf,Nf.exports)),Nf.exports}var d0,dD;function O3(){if(dD)return d0;dD=1;var e=zY(),t=WY(),n=HY(),r=n&&n.isTypedArray,i=r?t(r):e;return d0=i,d0}var h0,hD;function GY(){if(hD)return h0;hD=1;var e=KY(),t=QR(),n=da(),r=F3(),i=R3(),s=O3(),a=Object.prototype,o=a.hasOwnProperty;function l(d,h){var m=n(d),g=!m&&t(d),b=!m&&!g&&r(d),x=!m&&!g&&!b&&s(d),w=m||g||b||x,S=w?e(d.length,String):[],E=S.length;for(var C in d)(h||o.call(d,C))&&!(w&&(C=="length"||b&&(C=="offset"||C=="parent")||x&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||i(C,E)))&&S.push(C);return S}return h0=l,h0}var p0,pD;function YY(){if(pD)return p0;pD=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return p0=t,p0}var m0,mD;function ek(){if(mD)return m0;mD=1;function e(t,n){return function(r){return t(n(r))}}return m0=e,m0}var g0,gD;function ZY(){if(gD)return g0;gD=1;var e=ek(),t=e(Object.keys,Object);return g0=t,g0}var v0,vD;function XY(){if(vD)return v0;vD=1;var e=YY(),t=ZY(),n=Object.prototype,r=n.hasOwnProperty;function i(s){if(!e(s))return t(s);var a=[];for(var o in Object(s))r.call(s,o)&&o!="constructor"&&a.push(o);return a}return v0=i,v0}var y0,yD;function I3(){if(yD)return y0;yD=1;var e=P3(),t=k3();function n(r){return r!=null&&t(r.length)&&!e(r)}return y0=n,y0}var b0,bD;function L3(){if(bD)return b0;bD=1;var e=GY(),t=XY(),n=I3();function r(i){return n(i)?e(i):t(i)}return b0=r,b0}var $0,$D;function JY(){if($D)return $0;$D=1;var e=BY(),t=jY(),n=L3();function r(i){return e(i,n,t)}return $0=r,$0}var x0,xD;function QY(){if(xD)return x0;xD=1;var e=JY(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(s,a,o,l,d,h){var m=o&t,g=e(s),b=g.length,x=e(a),w=x.length;if(b!=w&&!m)return!1;for(var S=b;S--;){var E=g[S];if(!(m?E in a:r.call(a,E)))return!1}var C=h.get(s),A=h.get(a);if(C&&A)return C==a&&A==s;var k=!0;h.set(s,a),h.set(a,s);for(var M=m;++S<b;){E=g[S];var R=s[E],K=a[E];if(l)var H=m?l(K,R,E,a,s,h):l(R,K,E,s,a,h);if(!(H===void 0?R===K||d(R,K,o,l,h):H)){k=!1;break}M||(M=E=="constructor")}if(k&&!M){var le=s.constructor,ae=a.constructor;le!=ae&&"constructor"in s&&"constructor"in a&&!(typeof le=="function"&&le instanceof le&&typeof ae=="function"&&ae instanceof ae)&&(k=!1)}return h.delete(s),h.delete(a),k}return x0=i,x0}var w0,wD;function eZ(){if(wD)return w0;wD=1;var e=Sc(),t=to(),n=e(t,"DataView");return w0=n,w0}var C0,CD;function tZ(){if(CD)return C0;CD=1;var e=Sc(),t=to(),n=e(t,"Promise");return C0=n,C0}var E0,ED;function nZ(){if(ED)return E0;ED=1;var e=Sc(),t=to(),n=e(t,"Set");return E0=n,E0}var S0,SD;function rZ(){if(SD)return S0;SD=1;var e=Sc(),t=to(),n=e(t,"WeakMap");return S0=n,S0}var D0,DD;function iZ(){if(DD)return D0;DD=1;var e=eZ(),t=_3(),n=tZ(),r=nZ(),i=rZ(),s=Cc(),a=YR(),o="[object Map]",l="[object Object]",d="[object Promise]",h="[object Set]",m="[object WeakMap]",g="[object DataView]",b=a(e),x=a(t),w=a(n),S=a(r),E=a(i),C=s;return(e&&C(new e(new ArrayBuffer(1)))!=g||t&&C(new t)!=o||n&&C(n.resolve())!=d||r&&C(new r)!=h||i&&C(new i)!=m)&&(C=function(A){var k=s(A),M=k==l?A.constructor:void 0,R=M?a(M):"";if(R)switch(R){case b:return g;case x:return o;case w:return d;case S:return h;case E:return m}return k}),D0=C,D0}var A0,AD;function sZ(){if(AD)return A0;AD=1;var e=ZR(),t=JR(),n=IY(),r=QY(),i=iZ(),s=da(),a=F3(),o=O3(),l=1,d="[object Arguments]",h="[object Array]",m="[object Object]",g=Object.prototype,b=g.hasOwnProperty;function x(w,S,E,C,A,k){var M=s(w),R=s(S),K=M?h:i(w),H=R?h:i(S);K=K==d?m:K,H=H==d?m:H;var le=K==m,ae=H==m,I=K==H;if(I&&a(w)){if(!a(S))return!1;M=!0,le=!1}if(I&&!le)return k||(k=new e),M||o(w)?t(w,S,E,C,A,k):n(w,S,K,E,C,A,k);if(!(E&l)){var $e=le&&b.call(w,"__wrapped__"),we=ae&&b.call(S,"__wrapped__");if($e||we){var W=$e?w.value():w,ie=we?S.value():S;return k||(k=new e),A(W,ie,E,C,k)}}return I?(k||(k=new e),r(w,S,E,C,A,k)):!1}return A0=x,A0}var T0,TD;function B3(){if(TD)return T0;TD=1;var e=sZ(),t=Dc();function n(r,i,s,a,o){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,s,a,n,o)}return T0=n,T0}var P0,PD;function aZ(){if(PD)return P0;PD=1;var e=B3();function t(n,r){return e(n,r)}return P0=t,P0}var oZ=aZ();const uZ=ci(oZ);var bp={exports:{}},lZ=bp.exports,_D;function cZ(){return _D||(_D=1,function(e,t){(function(n,r){e.exports=r()})(lZ,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",a="second",o="minute",l="hour",d="day",h="week",m="month",g="quarter",b="year",x="date",w="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(W){var ie=["th","st","nd","rd"],O=W%100;return"["+W+(ie[(O-20)%10]||ie[O]||ie[0])+"]"}},A=function(W,ie,O){var L=String(W);return!L||L.length>=ie?W:""+Array(ie+1-L.length).join(O)+W},k={s:A,z:function(W){var ie=-W.utcOffset(),O=Math.abs(ie),L=Math.floor(O/60),B=O%60;return(ie<=0?"+":"-")+A(L,2,"0")+":"+A(B,2,"0")},m:function W(ie,O){if(ie.date()<O.date())return-W(O,ie);var L=12*(O.year()-ie.year())+(O.month()-ie.month()),B=ie.clone().add(L,m),he=O-B<0,U=ie.clone().add(L+(he?-1:1),m);return+(-(L+(O-B)/(he?B-U:U-B))||0)},a:function(W){return W<0?Math.ceil(W)||0:Math.floor(W)},p:function(W){return{M:m,y:b,w:h,d,D:x,h:l,m:o,s:a,ms:s,Q:g}[W]||String(W||"").toLowerCase().replace(/s$/,"")},u:function(W){return W===void 0}},M="en",R={};R[M]=C;var K="$isDayjsObject",H=function(W){return W instanceof $e||!(!W||!W[K])},le=function W(ie,O,L){var B;if(!ie)return M;if(typeof ie=="string"){var he=ie.toLowerCase();R[he]&&(B=he),O&&(R[he]=O,B=he);var U=ie.split("-");if(!B&&U.length>1)return W(U[0])}else{var te=ie.name;R[te]=ie,B=te}return!L&&B&&(M=B),B||!L&&M},ae=function(W,ie){if(H(W))return W.clone();var O=typeof ie=="object"?ie:{};return O.date=W,O.args=arguments,new $e(O)},I=k;I.l=le,I.i=H,I.w=function(W,ie){return ae(W,{locale:ie.$L,utc:ie.$u,x:ie.$x,$offset:ie.$offset})};var $e=function(){function W(O){this.$L=le(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[K]=!0}var ie=W.prototype;return ie.parse=function(O){this.$d=function(L){var B=L.date,he=L.utc;if(B===null)return new Date(NaN);if(I.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var U=B.match(S);if(U){var te=U[2]-1||0,xe=(U[7]||"0").substring(0,3);return he?new Date(Date.UTC(U[1],te,U[3]||1,U[4]||0,U[5]||0,U[6]||0,xe)):new Date(U[1],te,U[3]||1,U[4]||0,U[5]||0,U[6]||0,xe)}}return new Date(B)}(O),this.init()},ie.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},ie.$utils=function(){return I},ie.isValid=function(){return this.$d.toString()!==w},ie.isSame=function(O,L){var B=ae(O);return this.startOf(L)<=B&&B<=this.endOf(L)},ie.isAfter=function(O,L){return ae(O)<this.startOf(L)},ie.isBefore=function(O,L){return this.endOf(L)<ae(O)},ie.$g=function(O,L,B){return I.u(O)?this[L]:this.set(B,O)},ie.unix=function(){return Math.floor(this.valueOf()/1e3)},ie.valueOf=function(){return this.$d.getTime()},ie.startOf=function(O,L){var B=this,he=!!I.u(L)||L,U=I.p(O),te=function(Ke,We){var Ve=I.w(B.$u?Date.UTC(B.$y,We,Ke):new Date(B.$y,We,Ke),B);return he?Ve:Ve.endOf(d)},xe=function(Ke,We){return I.w(B.toDate()[Ke].apply(B.toDate("s"),(he?[0,0,0,0]:[23,59,59,999]).slice(We)),B)},De=this.$W,_e=this.$M,Me=this.$D,Ye="set"+(this.$u?"UTC":"");switch(U){case b:return he?te(1,0):te(31,11);case m:return he?te(1,_e):te(0,_e+1);case h:var Ge=this.$locale().weekStart||0,Ae=(De<Ge?De+7:De)-Ge;return te(he?Me-Ae:Me+(6-Ae),_e);case d:case x:return xe(Ye+"Hours",0);case l:return xe(Ye+"Minutes",1);case o:return xe(Ye+"Seconds",2);case a:return xe(Ye+"Milliseconds",3);default:return this.clone()}},ie.endOf=function(O){return this.startOf(O,!1)},ie.$set=function(O,L){var B,he=I.p(O),U="set"+(this.$u?"UTC":""),te=(B={},B[d]=U+"Date",B[x]=U+"Date",B[m]=U+"Month",B[b]=U+"FullYear",B[l]=U+"Hours",B[o]=U+"Minutes",B[a]=U+"Seconds",B[s]=U+"Milliseconds",B)[he],xe=he===d?this.$D+(L-this.$W):L;if(he===m||he===b){var De=this.clone().set(x,1);De.$d[te](xe),De.init(),this.$d=De.set(x,Math.min(this.$D,De.daysInMonth())).$d}else te&&this.$d[te](xe);return this.init(),this},ie.set=function(O,L){return this.clone().$set(O,L)},ie.get=function(O){return this[I.p(O)]()},ie.add=function(O,L){var B,he=this;O=Number(O);var U=I.p(L),te=function(_e){var Me=ae(he);return I.w(Me.date(Me.date()+Math.round(_e*O)),he)};if(U===m)return this.set(m,this.$M+O);if(U===b)return this.set(b,this.$y+O);if(U===d)return te(1);if(U===h)return te(7);var xe=(B={},B[o]=r,B[l]=i,B[a]=n,B)[U]||1,De=this.$d.getTime()+O*xe;return I.w(De,this)},ie.subtract=function(O,L){return this.add(-1*O,L)},ie.format=function(O){var L=this,B=this.$locale();if(!this.isValid())return B.invalidDate||w;var he=O||"YYYY-MM-DDTHH:mm:ssZ",U=I.z(this),te=this.$H,xe=this.$m,De=this.$M,_e=B.weekdays,Me=B.months,Ye=B.meridiem,Ge=function(We,Ve,Te,tt){return We&&(We[Ve]||We(L,he))||Te[Ve].slice(0,tt)},Ae=function(We){return I.s(te%12||12,We,"0")},Ke=Ye||function(We,Ve,Te){var tt=We<12?"AM":"PM";return Te?tt.toLowerCase():tt};return he.replace(E,function(We,Ve){return Ve||function(Te){switch(Te){case"YY":return String(L.$y).slice(-2);case"YYYY":return I.s(L.$y,4,"0");case"M":return De+1;case"MM":return I.s(De+1,2,"0");case"MMM":return Ge(B.monthsShort,De,Me,3);case"MMMM":return Ge(Me,De);case"D":return L.$D;case"DD":return I.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return Ge(B.weekdaysMin,L.$W,_e,2);case"ddd":return Ge(B.weekdaysShort,L.$W,_e,3);case"dddd":return _e[L.$W];case"H":return String(te);case"HH":return I.s(te,2,"0");case"h":return Ae(1);case"hh":return Ae(2);case"a":return Ke(te,xe,!0);case"A":return Ke(te,xe,!1);case"m":return String(xe);case"mm":return I.s(xe,2,"0");case"s":return String(L.$s);case"ss":return I.s(L.$s,2,"0");case"SSS":return I.s(L.$ms,3,"0");case"Z":return U}return null}(We)||U.replace(":","")})},ie.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ie.diff=function(O,L,B){var he,U=this,te=I.p(L),xe=ae(O),De=(xe.utcOffset()-this.utcOffset())*r,_e=this-xe,Me=function(){return I.m(U,xe)};switch(te){case b:he=Me()/12;break;case m:he=Me();break;case g:he=Me()/3;break;case h:he=(_e-De)/6048e5;break;case d:he=(_e-De)/864e5;break;case l:he=_e/i;break;case o:he=_e/r;break;case a:he=_e/n;break;default:he=_e}return B?he:I.a(he)},ie.daysInMonth=function(){return this.endOf(m).$D},ie.$locale=function(){return R[this.$L]},ie.locale=function(O,L){if(!O)return this.$L;var B=this.clone(),he=le(O,L,!0);return he&&(B.$L=he),B},ie.clone=function(){return I.w(this.$d,this)},ie.toDate=function(){return new Date(this.valueOf())},ie.toJSON=function(){return this.isValid()?this.toISOString():null},ie.toISOString=function(){return this.$d.toISOString()},ie.toString=function(){return this.$d.toUTCString()},W}(),we=$e.prototype;return ae.prototype=we,[["$ms",s],["$s",a],["$m",o],["$H",l],["$W",d],["$M",m],["$y",b],["$D",x]].forEach(function(W){we[W[1]]=function(ie){return this.$g(ie,W[0],W[1])}}),ae.extend=function(W,ie){return W.$i||(W(ie,$e,ae),W.$i=!0),ae},ae.locale=le,ae.isDayjs=H,ae.unix=function(W){return ae(1e3*W)},ae.en=R[M],ae.Ls=R,ae.p={},ae})}(bp)),bp.exports}var tk=cZ();const fZ=ci(tk);var _0,MD;function dZ(){if(MD)return _0;MD=1;var e=Cc(),t=Dc(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return _0=r,_0}var hZ=dZ();const pZ=ci(hZ);var Zu=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) .....-...."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253",".. .. ...."],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251",".. ... ...."],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262","",1,["269","639"]],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262","",0],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],mZ="react-international-phone-",nk=(...e)=>e.filter(t=>!!t).join(" ").trim(),gZ=(...e)=>nk(...e).split(" ").map(t=>`${mZ}${t}`).join(" "),Mr=({addPrefix:e,rawClassNames:t})=>nk(gZ(...e),...t),vZ=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let s=e.slice(0,r),a=e.slice(r),o=s,l=0;for(let d of t.split("")){if(l>=a.length){if(!i&&d!==n){o+=d;continue}break}d===n?(o+=a[l],l+=1):o+=d}return o},kl=e=>e?/^\d+$/.test(e):!1,Zm=e=>e.replace(/\D/g,""),yZ=(e,t)=>{let n=e.style.display;n!=="block"&&(e.style.display="block");let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),s=i.top-r.top,a=r.bottom-i.bottom;s>=0&&a>=0||(Math.abs(s)<Math.abs(a)?e.scrollTop+=s:e.scrollTop-=a),e.style.display=n},bZ=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),$Z=(e,t)=>{let n=t.disableDialCodeAndPrefix?!1:t.forceDialCode,r=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,i=e,s=d=>t.trimNonDigitsEnd?d.trim():d;if(!i)return r&&!i.length||n?s(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):s(i);if(i=Zm(i),i===t.dialCode&&!t.disableDialCodeAndPrefix)return s(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(i)&&!t.disableDialCodeAndPrefix)return s(n?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${i}`);if(!i.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(n)return s(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(i.length<t.dialCode.length)return s(`${t.prefix}${i}`)}let a=()=>{let d=t.dialCode.length,h=i.slice(0,d),m=i.slice(d);return{phoneLeftSide:h,phoneRightSide:m}},{phoneLeftSide:o,phoneRightSide:l}=a();return o=`${t.prefix}${o}${t.charAfterDialCode}`,l=vZ({value:l,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&l.length===0}),t.disableDialCodeAndPrefix&&(o=""),s(`${o}${l}`)},xZ=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:s})=>{if(r<i)return i;if(!e)return n.length;let a=null;for(let h=r-1;h>=0;h-=1)if(kl(t[h])){a=h;break}if(a===null){for(let h=0;h<t.length;h+=1)if(kl(n[h]))return h;return t.length}let o=0;for(let h=0;h<a;h+=1)kl(t[h])&&(o+=1);let l=0,d=0;for(let h=0;h<n.length&&(l+=1,kl(n[h])&&(d+=1),!(d>=o+1));h+=1);if(s!=="backward")for(;!kl(n[l])&&l<n.length;)l+=1;return l},$p=({phone:e,prefix:t})=>e?`${t}${Zm(e)}`:"";function Ub({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:s,charAfterDialCode:a,forceDialCode:o,disableDialCodeAndPrefix:l,defaultMask:d,countryGuessingEnabled:h,disableFormatting:m}){let g=e;l&&(g=g.startsWith(`${s}`)?g:`${s}${t.dialCode}${g}`);let b=h?_Z({phone:g,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,x=(b==null?void 0:b.country)??t,w=$Z(g,{prefix:s,mask:TZ({phone:g,country:x,defaultMask:d,disableFormatting:m}),maskChar:rk,dialCode:x.dialCode,trimNonDigitsEnd:r,charAfterDialCode:a,forceDialCode:o,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:l}),S=h&&!(b!=null&&b.fullDialCodeMatch)?t:x;return{phone:$p({phone:l?`${S.dialCode}${w}`:w,prefix:s}),inputValue:w,country:S}}var wZ=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},CZ=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:s,forceDialCode:a,disableDialCodeAndPrefix:o,countryGuessingEnabled:l,defaultMask:d,disableFormatting:h,countries:m})=>{let g=e.nativeEvent,b=g.inputType,x=wZ(b),w=!!(b!=null&&b.startsWith("insertFrom")),S=b==="insertText",E=(g==null?void 0:g.data)||void 0,C=e.target.value,A=e.target.selectionStart??0;if(b!=null&&b.includes("history"))return{inputValue:r,phone:$p({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(S&&!kl(E)&&C!==i)return{inputValue:r,phone:$p({phone:o?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:A-((E==null?void 0:E.length)??0),country:t};if(a&&!C.startsWith(`${i}${t.dialCode}`)&&!w){let H=C?r:`${i}${t.dialCode}${s}`;return{inputValue:H,phone:$p({phone:H,prefix:i}),cursorPosition:i.length+t.dialCode.length+s.length,country:t}}let{phone:k,inputValue:M,country:R}=Ub({value:C,country:t,trimNonDigitsEnd:x==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:l,countries:m,prefix:i,charAfterDialCode:s,forceDialCode:a,disableDialCodeAndPrefix:o,disableFormatting:h,defaultMask:d}),K=xZ({cursorPositionAfterInput:A,phoneBeforeInput:r,phoneAfterInput:C,phoneAfterFormatted:M,leftOffset:a?i.length+t.dialCode.length+s.length:0,deletion:x});return{phone:k,inputValue:M,cursorPosition:K,country:R}},EZ=(e,t)=>{let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(e[i]!==t[i])return!1;return!0},SZ=()=>{let e=T.useRef(),t=T.useRef(Date.now());return{check:()=>{let n=Date.now(),r=e.current?n-t.current:void 0;return e.current=t.current,t.current=n,r}}},DZ={size:20,overrideLastItemDebounceMS:-1};function AZ(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...DZ,...t},[s,a]=T.useState(e),[o,l]=T.useState([s]),[d,h]=T.useState(0),m=SZ();return[s,(g,b)=>{if(typeof g=="object"&&typeof s=="object"&&EZ(g,s)||g===s)return;let x=r>0,w=m.check(),S=x&&w!==void 0?w>r:!0;if((b==null?void 0:b.overrideLastItem)!==void 0?b.overrideLastItem:!S)l(E=>[...E.slice(0,d),g]);else{let E=o.length>=n;l(C=>[...C.slice(E?1:0,d+1),g]),E||h(C=>C+1)}a(g),i==null||i(g)},()=>{if(d<=0)return{success:!1};let g=o[d-1];return a(g),h(b=>b-1),i==null||i(g),{success:!0,value:g}},()=>{if(d+1>=o.length)return{success:!1};let g=o[d+1];return a(g),h(b=>b+1),i==null||i(g),{success:!0,value:g}}]}var rk=".",Ni={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:Zu},ik=({defaultCountry:e=Ni.defaultCountry,value:t=Ni.value,countries:n=Ni.countries,prefix:r=Ni.prefix,defaultMask:i=Ni.defaultMask,charAfterDialCode:s=Ni.charAfterDialCode,historySaveDebounceMS:a=Ni.historySaveDebounceMS,disableCountryGuess:o=Ni.disableCountryGuess,disableDialCodePrefill:l=Ni.disableDialCodePrefill,forceDialCode:d=Ni.forceDialCode,disableDialCodeAndPrefix:h=Ni.disableDialCodeAndPrefix,disableFormatting:m=Ni.disableFormatting,onChange:g,inputRef:b})=>{let x={countries:n,prefix:r,charAfterDialCode:s,forceDialCode:h?!1:d,disableDialCodeAndPrefix:h,defaultMask:i,countryGuessingEnabled:!o,disableFormatting:m},w=T.useRef(null),S=b||w,E=W=>{Promise.resolve().then(()=>{var ie;typeof window>"u"||S.current!==(document==null?void 0:document.activeElement)||((ie=S.current)==null||ie.setSelectionRange(W,W))})},[{phone:C,inputValue:A,country:k},M,R,K]=AZ(()=>{let W=Bl({value:e,field:"iso2",countries:n});W||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let ie=W||Bl({value:"us",field:"iso2",countries:n}),{phone:O,inputValue:L,country:B}=Ub({value:t,country:ie,insertDialCodeOnEmpty:!l,...x});return E(L.length),{phone:O,inputValue:L,country:B.iso2}},{overrideLastItemDebounceMS:a,onChange:({inputValue:W,phone:ie,country:O})=>{if(!g)return;let L=H(O);g({phone:ie,inputValue:W,country:L})}}),H=T.useCallback(W=>Bl({value:W,field:"iso2",countries:n}),[n]),le=T.useMemo(()=>H(k),[k,H]);T.useEffect(()=>{let W=S.current;if(!W)return;let ie=O=>{if(!O.key)return;let L=O.ctrlKey,B=O.metaKey,he=O.shiftKey;if(O.key.toLowerCase()==="z"){if(bZ()){if(!B)return}else if(!L)return;he?K():R()}};return W.addEventListener("keydown",ie),()=>{W.removeEventListener("keydown",ie)}},[S,R,K]);let ae=W=>{W.preventDefault();let{phone:ie,inputValue:O,country:L,cursorPosition:B}=CZ(W,{country:le,phoneBeforeInput:A,insertDialCodeOnEmpty:!1,...x});return M({inputValue:O,phone:ie,country:L.iso2}),E(B),t},I=(W,ie={focusOnInput:!1})=>{let O=Bl({value:W,field:"iso2",countries:n});if(!O){console.error(`[react-international-phone]: can not find a country with "${W}" iso2 code`);return}let L=h?"":`${r}${O.dialCode}${s}`;M({inputValue:L,phone:`${r}${O.dialCode}`,country:O.iso2}),ie.focusOnInput&&Promise.resolve().then(()=>{var B;(B=S.current)==null||B.focus()})},[$e,we]=T.useState(!1);return T.useEffect(()=>{if(!$e){we(!0),t!==C&&(g==null||g({inputValue:A,phone:C,country:le}));return}if(t===C)return;let{phone:W,inputValue:ie,country:O}=Ub({value:t,country:le,insertDialCodeOnEmpty:!l,...x});M({phone:W,inputValue:ie,country:O.iso2})},[t]),{phone:C,inputValue:A,country:le,setCountry:I,handlePhoneValueChange:ae,inputRef:S}},TZ=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,s=o=>r?o.replace(new RegExp(`[^${rk}]`,"g"),""):o;if(!i)return s(n);if(typeof i=="string")return s(i);if(!i.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),s(n);let a=Object.keys(i).find(o=>{if(o==="default")return!1;if(!(o.charAt(0)==="/"&&o.charAt(o.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${o}" for ${t.iso2} is not valid`),!1;let l=new RegExp(o.substring(1,o.length-1)),d=e.replace(t.dialCode,"");return l.test(Zm(d))});return s(a?i[a]:i.default)},xs=e=>{let[t,n,r,i,s,a]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:s,areaCodes:a}},PZ=e=>`Field "${e}" is not supported`,Bl=({field:e,value:t,countries:n=Zu})=>{if(["priority"].includes(e))throw new Error(PZ(e));let r=n.find(i=>{let s=xs(i);return t===s[e]});if(r)return xs(r)},_Z=({phone:e,countries:t=Zu,currentCountryIso2:n})=>{var o;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=Zm(e);if(!i)return r;let s=r,a=({country:l,fullDialCodeMatch:d})=>{var g,b;let h=l.dialCode===((g=s.country)==null?void 0:g.dialCode),m=(l.priority??0)<(((b=s.country)==null?void 0:b.priority)??0);(!h||m)&&(s={country:l,fullDialCodeMatch:d})};for(let l of t){let d=xs(l),{dialCode:h,areaCodes:m}=d;if(i.startsWith(h)){let g=s.country?Number(h)>=Number(s.country.dialCode):!0;if(m){let b=i.substring(h.length);for(let x of m)if(b.startsWith(x))return{country:d,fullDialCodeMatch:!0}}(g||h===i||!s.fullDialCodeMatch)&&a({country:d,fullDialCodeMatch:!0})}s.fullDialCodeMatch||i.length<h.length&&h.startsWith(i)&&(!s.country||Number(h)<=Number(s.country.dialCode))&&a({country:d,fullDialCodeMatch:!1})}if(n){let l=Bl({value:n,field:"iso2",countries:t});if(!l)return s;let d=l?(h=>{if(!(h!=null&&h.areaCodes))return!1;let m=i.substring(h.dialCode.length);return h.areaCodes.some(g=>g.startsWith(m))})(l):!1;s&&((o=s.country)==null?void 0:o.dialCode)===l.dialCode&&s.country!==l&&s.fullDialCodeMatch&&(!l.areaCodes||d)&&(s={country:l,fullDialCodeMatch:!0})}return s},MZ=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},FZ="abcdefghijklmnopqrstuvwxyz",RZ="1f1e6",FD=FZ.split("").reduce((e,t,n)=>({...e,[t]:MZ(RZ,n)}),{}),kZ=e=>[FD[e[0]],FD[e[1]]].join("-"),V3=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:s,style:a,...o})=>{if(!e)return T.createElement("img",{className:Mr({addPrefix:["flag-emoji"],rawClassNames:[s]}),width:t,height:t,...o});let l=()=>{if(n)return n;let d=kZ(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${d}.svg`};return T.createElement("img",{className:Mr({addPrefix:["flag-emoji"],rawClassNames:[s]}),src:l(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...a},alt:"",...o})},OZ=1e3,IZ=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=Zu,preferredCountries:i=[],flags:s,onSelect:a,onClose:o,...l})=>{let d=T.useRef(null),h=T.useRef(),m=T.useMemo(()=>{if(!i||!i.length)return r;let R=[],K=[...r];for(let H of i){let le=K.findIndex(ae=>xs(ae).iso2===H);if(le!==-1){let ae=K.splice(le,1)[0];R.push(ae)}}return R.concat(K)},[r,i]),g=T.useRef({updatedAt:void 0,value:""}),b=R=>{let K=g.current.updatedAt&&new Date().getTime()-g.current.updatedAt.getTime()>OZ;g.current={value:K?R:`${g.current.value}${R}`,updatedAt:new Date};let H=m.findIndex(le=>xs(le).name.toLowerCase().startsWith(g.current.value));H!==-1&&S(H)},x=T.useCallback(R=>m.findIndex(K=>xs(K).iso2===R),[m]),[w,S]=T.useState(x(n)),E=()=>{h.current!==n&&S(x(n))},C=T.useCallback(R=>{S(x(R.iso2)),a==null||a(R)},[a,x]),A=R=>{let K=m.length-1,H=le=>R==="prev"?le-1:R==="next"?le+1:R==="last"?K:0;S(le=>{let ae=H(le);return ae<0?0:ae>K?K:ae})},k=R=>{if(R.stopPropagation(),R.key==="Enter"){R.preventDefault();let K=xs(m[w]);C(K);return}if(R.key==="Escape"){o==null||o();return}if(R.key==="ArrowUp"){R.preventDefault(),A("prev");return}if(R.key==="ArrowDown"){R.preventDefault(),A("next");return}if(R.key==="PageUp"){R.preventDefault(),A("first");return}if(R.key==="PageDown"){R.preventDefault(),A("last");return}R.key===" "&&R.preventDefault(),R.key.length===1&&!R.altKey&&!R.ctrlKey&&!R.metaKey&&b(R.key.toLocaleLowerCase())},M=T.useCallback(()=>{if(!d.current||w===void 0)return;let R=xs(m[w]).iso2;if(R===h.current)return;let K=d.current.querySelector(`[data-country="${R}"]`);K&&(yZ(d.current,K),h.current=R)},[w,m]);return T.useEffect(()=>{M()},[w,M]),T.useEffect(()=>{d.current&&(e?d.current.focus():E())},[e]),T.useEffect(()=>{E()},[n]),T.createElement("ul",{ref:d,role:"listbox",className:Mr({addPrefix:["country-selector-dropdown"],rawClassNames:[l.className]}),style:{display:e?"block":"none",...l.style},onKeyDown:k,onBlur:o,tabIndex:-1,"aria-activedescendant":`react-international-phone__${xs(m[w]).iso2}-option`},m.map((R,K)=>{let H=xs(R),le=H.iso2===n,ae=K===w,I=i.includes(H.iso2),$e=K===i.length-1,we=s==null?void 0:s.find(W=>W.iso2===H.iso2);return T.createElement(T.Fragment,{key:H.iso2},T.createElement("li",{"data-country":H.iso2,role:"option","aria-selected":le,"aria-label":`${H.name} ${t}${H.dialCode}`,id:`react-international-phone__${H.iso2}-option`,className:Mr({addPrefix:["country-selector-dropdown__list-item",I&&"country-selector-dropdown__list-item--preferred",le&&"country-selector-dropdown__list-item--selected",ae&&"country-selector-dropdown__list-item--focused"],rawClassNames:[l.listItemClassName]}),onClick:()=>C(H),style:l.listItemStyle,title:H.name},T.createElement(V3,{iso2:H.iso2,src:we==null?void 0:we.src,className:Mr({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[l.listItemFlagClassName]}),style:l.listItemFlagStyle}),T.createElement("span",{className:Mr({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[l.listItemCountryNameClassName]}),style:l.listItemCountryNameStyle},H.name),T.createElement("span",{className:Mr({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[l.listItemDialCodeClassName]}),style:l.listItemDialCodeStyle},t,H.dialCode)),$e?T.createElement("hr",{className:Mr({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[l.preferredListDividerClassName]}),style:l.preferredListDividerStyle}):null)}))},LZ=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=Zu,preferredCountries:s=[],flags:a,renderButtonWrapper:o,...l})=>{let[d,h]=T.useState(!1),m=T.useMemo(()=>{if(e)return Bl({value:e,field:"iso2",countries:i})},[i,e]),g=T.useRef(null),b=w=>{w.key&&["ArrowUp","ArrowDown"].includes(w.key)&&(w.preventDefault(),h(!0))},x=()=>{var E;let w={title:m==null?void 0:m.name,onClick:()=>h(C=>!C),onMouseDown:C=>C.preventDefault(),onKeyDown:b,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":d},S=T.createElement("div",{className:Mr({addPrefix:["country-selector-button__button-content"],rawClassNames:[l.buttonContentWrapperClassName]}),style:l.buttonContentWrapperStyle},T.createElement(V3,{iso2:e,src:(E=a==null?void 0:a.find(C=>C.iso2===e))==null?void 0:E.src,className:Mr({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[l.flagClassName]}),style:{visibility:e?"visible":"hidden",...l.flagStyle}}),!r&&T.createElement("div",{className:Mr({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",d&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[l.dropdownArrowClassName]}),style:l.dropdownArrowStyle}));return o?o({children:S,rootProps:w}):T.createElement("button",{...w,type:"button",className:Mr({addPrefix:["country-selector-button",d&&"country-selector-button--active",n&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[l.buttonClassName]}),"data-country":e,style:l.buttonStyle},S)};return T.createElement("div",{className:Mr({addPrefix:["country-selector"],rawClassNames:[l.className]}),style:l.style,ref:g},x(),T.createElement(IZ,{show:d,countries:i,preferredCountries:s,flags:a,onSelect:w=>{h(!1),t==null||t(w)},selectedCountry:e,onClose:()=>{h(!1)},...l.dropdownStyleProps}))},BZ=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>T.createElement("div",{className:Mr({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);T.forwardRef(({value:e,onChange:t,countries:n=Zu,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:s,disableFocusAfterCountrySelect:a,flags:o,style:l,className:d,inputStyle:h,inputClassName:m,countrySelectorStyleProps:g,dialCodePreviewStyleProps:b,inputProps:x,placeholder:w,disabled:S,name:E,onFocus:C,onBlur:A,required:k,autoFocus:M,...R},K)=>{let{phone:H,inputValue:le,inputRef:ae,country:I,setCountry:$e,handlePhoneValueChange:we}=ik({value:e,countries:n,...R,onChange:ie=>{t==null||t(ie.phone,{country:ie.country,inputValue:ie.inputValue})}}),W=R.disableDialCodeAndPrefix&&s&&(I==null?void 0:I.dialCode);return T.useImperativeHandle(K,()=>ae.current?Object.assign(ae.current,{setCountry:$e,state:{phone:H,inputValue:le,country:I}}):null,[ae,$e,H,le,I]),T.createElement("div",{ref:K,className:Mr({addPrefix:["input-container"],rawClassNames:[d]}),style:l},T.createElement(LZ,{onSelect:ie=>$e(ie.iso2,{focusOnInput:!a}),flags:o,selectedCountry:I.iso2,countries:n,preferredCountries:r,disabled:S,hideDropdown:i,...g}),W&&T.createElement(BZ,{dialCode:I.dialCode,prefix:R.prefix??"+",disabled:S,...b}),T.createElement("input",{onChange:we,value:le,type:"tel",ref:ae,className:Mr({addPrefix:["input",S&&"input--disabled"],rawClassNames:[m]}),placeholder:w,disabled:S,style:h,name:E,onFocus:C,onBlur:A,autoFocus:M,required:k,...x}))});var Po=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},qb={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,s="[object Arguments]",a="[object Array]",o="[object Boolean]",l="[object Date]",d="[object Error]",h="[object Function]",m="[object GeneratorFunction]",g="[object Map]",b="[object Number]",x="[object Object]",w="[object Promise]",S="[object RegExp]",E="[object Set]",C="[object String]",A="[object Symbol]",k="[object WeakMap]",M="[object ArrayBuffer]",R="[object DataView]",K="[object Float32Array]",H="[object Float64Array]",le="[object Int8Array]",ae="[object Int16Array]",I="[object Int32Array]",$e="[object Uint8Array]",we="[object Uint8ClampedArray]",W="[object Uint16Array]",ie="[object Uint32Array]",O=/[\\^$.*+?()[\]{}|]/g,L=/\w*$/,B=/^\[object .+?Constructor\]$/,he=/^(?:0|[1-9]\d*)$/,U={};U[s]=U[a]=U[M]=U[R]=U[o]=U[l]=U[K]=U[H]=U[le]=U[ae]=U[I]=U[g]=U[b]=U[x]=U[S]=U[E]=U[C]=U[A]=U[$e]=U[we]=U[W]=U[ie]=!0,U[d]=U[h]=U[k]=!1;var te=typeof Po=="object"&&Po&&Po.Object===Object&&Po,xe=typeof self=="object"&&self&&self.Object===Object&&self,De=te||xe||Function("return this")(),_e=t&&!t.nodeType&&t,Me=_e&&!0&&e&&!e.nodeType&&e,Ye=Me&&Me.exports===_e;function Ge(se,Fe){return se.set(Fe[0],Fe[1]),se}function Ae(se,Fe){return se.add(Fe),se}function Ke(se,Fe){for(var qe=-1,ht=se?se.length:0;++qe<ht&&Fe(se[qe],qe,se)!==!1;);return se}function We(se,Fe){for(var qe=-1,ht=Fe.length,bn=se.length;++qe<ht;)se[bn+qe]=Fe[qe];return se}function Ve(se,Fe,qe,ht){for(var bn=-1,sr=se?se.length:0;++bn<sr;)qe=Fe(qe,se[bn],bn,se);return qe}function Te(se,Fe){for(var qe=-1,ht=Array(se);++qe<se;)ht[qe]=Fe(qe);return ht}function tt(se,Fe){return se==null?void 0:se[Fe]}function yt(se){var Fe=!1;if(se!=null&&typeof se.toString!="function")try{Fe=!!(se+"")}catch{}return Fe}function Jt(se){var Fe=-1,qe=Array(se.size);return se.forEach(function(ht,bn){qe[++Fe]=[bn,ht]}),qe}function xt(se,Fe){return function(qe){return se(Fe(qe))}}function Mt(se){var Fe=-1,qe=Array(se.size);return se.forEach(function(ht){qe[++Fe]=ht}),qe}var Ti=Array.prototype,mt=Function.prototype,me=Object.prototype,Se=De["__core-js_shared__"],Le=function(){var se=/[^.]+$/.exec(Se&&Se.keys&&Se.keys.IE_PROTO||"");return se?"Symbol(src)_1."+se:""}(),it=mt.toString,Qe=me.hasOwnProperty,Xe=me.toString,gt=RegExp("^"+it.call(Qe).replace(O,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kt=Ye?De.Buffer:void 0,wt=De.Symbol,yn=De.Uint8Array,Cr=xt(Object.getPrototypeOf,Object),zt=Object.create,_t=me.propertyIsEnumerable,Lt=Ti.splice,Wt=Object.getOwnPropertySymbols,gr=kt?kt.isBuffer:void 0,Zr=xt(Object.keys,Object),fi=mi(De,"DataView"),kr=mi(De,"Map"),Rs=mi(De,"Promise"),Vo=mi(De,"Set"),$t=mi(De,"WeakMap"),di=mi(Object,"create"),ha=Lr(fi),Nc=Lr(kr),el=Lr(Rs),jc=Lr(Vo),tl=Lr($t),No=wt?wt.prototype:void 0,nl=No?No.valueOf:void 0;function is(se){var Fe=-1,qe=se?se.length:0;for(this.clear();++Fe<qe;){var ht=se[Fe];this.set(ht[0],ht[1])}}function ss(){this.__data__=di?di(null):{}}function bt(se){return this.has(se)&&delete this.__data__[se]}function En(se){var Fe=this.__data__;if(di){var qe=Fe[se];return qe===r?void 0:qe}return Qe.call(Fe,se)?Fe[se]:void 0}function pa(se){var Fe=this.__data__;return di?Fe[se]!==void 0:Qe.call(Fe,se)}function rl(se,Fe){var qe=this.__data__;return qe[se]=di&&Fe===void 0?r:Fe,this}is.prototype.clear=ss,is.prototype.delete=bt,is.prototype.get=En,is.prototype.has=pa,is.prototype.set=rl;function Er(se){var Fe=-1,qe=se?se.length:0;for(this.clear();++Fe<qe;){var ht=se[Fe];this.set(ht[0],ht[1])}}function il(){this.__data__=[]}function sl(se){var Fe=this.__data__,qe=ma(Fe,se);if(qe<0)return!1;var ht=Fe.length-1;return qe==ht?Fe.pop():Lt.call(Fe,qe,1),!0}function Kc(se){var Fe=this.__data__,qe=ma(Fe,se);return qe<0?void 0:Fe[qe][1]}function Xr(se){return ma(this.__data__,se)>-1}function st(se,Fe){var qe=this.__data__,ht=ma(qe,se);return ht<0?qe.push([se,Fe]):qe[ht][1]=Fe,this}Er.prototype.clear=il,Er.prototype.delete=sl,Er.prototype.get=Kc,Er.prototype.has=Xr,Er.prototype.set=st;function dn(se){var Fe=-1,qe=se?se.length:0;for(this.clear();++Fe<qe;){var ht=se[Fe];this.set(ht[0],ht[1])}}function as(){this.__data__={hash:new is,map:new(kr||Er),string:new is}}function hi(se){return Pi(this,se).delete(se)}function Xn(se){return Pi(this,se).get(se)}function jo(se){return Pi(this,se).has(se)}function ks(se,Fe){return Pi(this,se).set(se,Fe),this}dn.prototype.clear=as,dn.prototype.delete=hi,dn.prototype.get=Xn,dn.prototype.has=jo,dn.prototype.set=ks;function pi(se){this.__data__=new Er(se)}function Ln(){this.__data__=new Er}function no(se){return this.__data__.delete(se)}function Ut(se){return this.__data__.get(se)}function Uc(se){return this.__data__.has(se)}function al(se,Fe){var qe=this.__data__;if(qe instanceof Er){var ht=qe.__data__;if(!kr||ht.length<n-1)return ht.push([se,Fe]),this;qe=this.__data__=new dn(ht)}return qe.set(se,Fe),this}pi.prototype.clear=Ln,pi.prototype.delete=no,pi.prototype.get=Ut,pi.prototype.has=Uc,pi.prototype.set=al;function qc(se,Fe){var qe=$a(se)||Ls(se)?Te(se.length,String):[],ht=qe.length,bn=!!ht;for(var sr in se)Qe.call(se,sr)&&!(bn&&(sr=="length"||Ho(sr,ht)))&&qe.push(sr);return qe}function Ko(se,Fe,qe){var ht=se[Fe];(!(Qe.call(se,Fe)&&Is(ht,qe))||qe===void 0&&!(Fe in se))&&(se[Fe]=qe)}function ma(se,Fe){for(var qe=se.length;qe--;)if(Is(se[qe][0],Fe))return qe;return-1}function ol(se,Fe){return se&&yr(Fe,Ca(Fe),se)}function Uo(se,Fe,qe,ht,bn,sr,ur){var Kn;if(ht&&(Kn=sr?ht(se,bn,sr,ur):ht(se)),Kn!==void 0)return Kn;if(!wa(se))return se;var Sn=$a(se);if(Sn){if(Kn=Wo(se),!Fe)return ro(se,Kn)}else{var Mi=_i(se),Fi=Mi==h||Mi==m;if(io(se))return zo(se,Fe);if(Mi==x||Mi==s||Fi&&!sr){if(yt(se))return sr?se:{};if(Kn=fl(Fi?{}:se),!Fe)return va(se,ol(Kn,se))}else{if(!U[Mi])return sr?se:{};Kn=mn(se,Mi,Uo,Fe)}}ur||(ur=new pi);var Zo=ur.get(se);if(Zo)return Zo;if(ur.set(se,Kn),!Sn)var so=qe?ya(se):Ca(se);return Ke(so||se,function(lr,Ea){so&&(Ea=lr,lr=se[Ea]),Ko(Kn,Ea,Uo(lr,Fe,qe,ht,Ea,se,ur))}),Kn}function zc(se){return wa(se)?zt(se):{}}function Wc(se,Fe,qe){var ht=Fe(se);return $a(se)?ht:We(ht,qe(se))}function Hc(se){return Xe.call(se)}function ul(se){if(!wa(se)||Go(se))return!1;var Fe=hl(se)||yt(se)?gt:B;return Fe.test(Lr(se))}function qo(se){if(!dl(se))return Zr(se);var Fe=[];for(var qe in Object(se))Qe.call(se,qe)&&qe!="constructor"&&Fe.push(qe);return Fe}function zo(se,Fe){if(Fe)return se.slice();var qe=new se.constructor(se.length);return se.copy(qe),qe}function ga(se){var Fe=new se.constructor(se.byteLength);return new yn(Fe).set(new yn(se)),Fe}function ll(se,Fe){var qe=Fe?ga(se.buffer):se.buffer;return new se.constructor(qe,se.byteOffset,se.byteLength)}function cl(se,Fe,qe){var ht=Fe?qe(Jt(se),!0):Jt(se);return Ve(ht,Ge,new se.constructor)}function Or(se){var Fe=new se.constructor(se.source,L.exec(se));return Fe.lastIndex=se.lastIndex,Fe}function vr(se,Fe,qe){var ht=Fe?qe(Mt(se),!0):Mt(se);return Ve(ht,Ae,new se.constructor)}function Ir(se){return nl?Object(nl.call(se)):{}}function Os(se,Fe){var qe=Fe?ga(se.buffer):se.buffer;return new se.constructor(qe,se.byteOffset,se.length)}function ro(se,Fe){var qe=-1,ht=se.length;for(Fe||(Fe=Array(ht));++qe<ht;)Fe[qe]=se[qe];return Fe}function yr(se,Fe,qe,ht){qe||(qe={});for(var bn=-1,sr=Fe.length;++bn<sr;){var ur=Fe[bn],Kn=void 0;Ko(qe,ur,Kn===void 0?se[ur]:Kn)}return qe}function va(se,Fe){return yr(se,or(se),Fe)}function ya(se){return Wc(se,Ca,or)}function Pi(se,Fe){var qe=se.__data__;return ba(Fe)?qe[typeof Fe=="string"?"string":"hash"]:qe.map}function mi(se,Fe){var qe=tt(se,Fe);return ul(qe)?qe:void 0}var or=Wt?xt(Wt,Object):Yt,_i=Hc;(fi&&_i(new fi(new ArrayBuffer(1)))!=R||kr&&_i(new kr)!=g||Rs&&_i(Rs.resolve())!=w||Vo&&_i(new Vo)!=E||$t&&_i(new $t)!=k)&&(_i=function(se){var Fe=Xe.call(se),qe=Fe==x?se.constructor:void 0,ht=qe?Lr(qe):void 0;if(ht)switch(ht){case ha:return R;case Nc:return g;case el:return w;case jc:return E;case tl:return k}return Fe});function Wo(se){var Fe=se.length,qe=se.constructor(Fe);return Fe&&typeof se[0]=="string"&&Qe.call(se,"index")&&(qe.index=se.index,qe.input=se.input),qe}function fl(se){return typeof se.constructor=="function"&&!dl(se)?zc(Cr(se)):{}}function mn(se,Fe,qe,ht){var bn=se.constructor;switch(Fe){case M:return ga(se);case o:case l:return new bn(+se);case R:return ll(se,ht);case K:case H:case le:case ae:case I:case $e:case we:case W:case ie:return Os(se,ht);case g:return cl(se,ht,qe);case b:case C:return new bn(se);case S:return Or(se);case E:return vr(se,ht,qe);case A:return Ir(se)}}function Ho(se,Fe){return Fe=Fe??i,!!Fe&&(typeof se=="number"||he.test(se))&&se>-1&&se%1==0&&se<Fe}function ba(se){var Fe=typeof se;return Fe=="string"||Fe=="number"||Fe=="symbol"||Fe=="boolean"?se!=="__proto__":se===null}function Go(se){return!!Le&&Le in se}function dl(se){var Fe=se&&se.constructor,qe=typeof Fe=="function"&&Fe.prototype||me;return se===qe}function Lr(se){if(se!=null){try{return it.call(se)}catch{}try{return se+""}catch{}}return""}function Yo(se){return Uo(se,!0,!0)}function Is(se,Fe){return se===Fe||se!==se&&Fe!==Fe}function Ls(se){return xa(se)&&Qe.call(se,"callee")&&(!_t.call(se,"callee")||Xe.call(se)==s)}var $a=Array.isArray;function os(se){return se!=null&&Gc(se.length)&&!hl(se)}function xa(se){return Yc(se)&&os(se)}var io=gr||nn;function hl(se){var Fe=wa(se)?Xe.call(se):"";return Fe==h||Fe==m}function Gc(se){return typeof se=="number"&&se>-1&&se%1==0&&se<=i}function wa(se){var Fe=typeof se;return!!se&&(Fe=="object"||Fe=="function")}function Yc(se){return!!se&&typeof se=="object"}function Ca(se){return os(se)?qc(se):qo(se)}function Yt(){return[]}function nn(){return!1}e.exports=Yo})(qb,qb.exports);var _o=qb.exports,zb=function(){return zb=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},zb.apply(this,arguments)};function VZ(e,t,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function o(h){try{d(r.next(h))}catch(m){a(m)}}function l(h){try{d(r.throw(h))}catch(m){a(m)}}function d(h){h.done?s(h.value):i(h.value).then(o,l)}d((r=r.apply(e,[])).next())})}function NZ(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=o(0),a.throw=o(1),a.return=o(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(d){return function(h){return l([d,h])}}function l(d){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,d[0]&&(n=0)),n;)try{if(r=1,i&&(s=d[0]&2?i.return:d[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,d[1])).done)return s;switch(i=0,s&&(d=[d[0]&2,s.value]),d[0]){case 0:case 1:s=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[1]<s[3])){n.label=d[1];break}if(d[0]===6&&n.label<s[1]){n.label=s[1],s=d;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(d);break}s[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(h){d=[6,h],i=0}finally{r=s=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function tm(e,t,n,r,i){return VZ(this,void 0,void 0,function(){var s,a;return NZ(this,function(o){switch(o.label){case 0:if(n===void 0)return[2];a=0,o.label=1;case 1:return a<n.length?[4,n[a](e,t,r,i,n)]:[3,4];case 2:if(s=o.sent(),s==="canceled")return[3,4];o.label=3;case 3:return a++,[3,1];case 4:return s!=="canceled"?[2,s]:[2]}})})}var Wb=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:zb({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},jZ=function(){function e(t,n,r,i){var s=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var a=_o(n);tm(t,a,r,this.htmlPluginState,i).then(function(o){if(s.isMounted){s.htmlPluginState.pluginEventSubscription.forEach(function(d){d()});var l=Wb(i,o);s.imgElement.setAttribute("src",a.toURL(l))}})}return e.prototype.update=function(t,n,r){var i=this,s=_o(t);tm(this.imgElement,s,n,this.htmlPluginState).then(function(a){if(i.isMounted){var o=Wb(r,a);i.imgElement.setAttribute("src",s.toURL(o))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let In=class{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(n=>this.hasValue(n)),this}setDelimiter(t){return this.delimiter=t,this}},KZ=class extends Error{constructor(t="Unsupported"){super(t)}};function N3(e){return new KZ(e)}function UZ(){return this._qualifierModel||{error:N3(`unsupported qualifier ${this.constructor.name}`)}}let qZ=class{constructor(){this._qualifierModel={}}toJson(){return UZ.apply(this)}},It=class extends qZ{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof In?this.qualifierValue=n:(this.qualifierValue=new In,this.qualifierValue.addValue(n))}toString(){const{key:t,delimiter:n,qualifierValue:r}=this;return`${t}${n}${r.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}},Qi=class extends It{constructor(t,n){let r;n?r=new In([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function zZ(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function WZ(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=(n=(t=(e=this._actionModel)===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.transformation)===null||n===void 0?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:N3(`unsupported action ${this.constructor.name}`)}}let HZ=class{constructor(){this._actionModel={}}toJson(){return WZ.apply(this)}},_s=class extends HZ{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),zZ(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[n,r]=t.toLowerCase().split("_");n==="fl"?this.flags.push(new Qi(r)):this.qualifiers.set(n,new It(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Qi(t)):t instanceof Qi&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class j3 extends _s{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class Xm extends j3{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new It("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new It("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new It("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new It("h",t)),this}static fromJson(t){const n=new Xm;return t.width&&n.width(t.width),t.height&&n.height(t.height),t.x&&n.x(t.x),t.y&&n.y(t.y),n}}function GZ(){return new Xm}function sk(){return new j3("faces")}function YZ(){return new j3("ocr_text")}class ZZ extends _s{constructor(t){super(),this._actionModel={},this._strength=t,this._actionModel.actionType="blur",this._actionModel.strength=t}region(t){return this._region=t,this._actionModel.region=t.toJson(),this}strength(t){return this._strength=t,this._actionModel.strength=t,this}prepareQualifiers(){const t=this._strength?`:${this._strength}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new It("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new It("e",`blur_region${t}`)),this.addQualifier(new It("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new It("e",`blur_faces${t}`))):this.addQualifier(new It("e",`blur${t}`))}static fromJson(t){const{strength:n,region:r}=t,i=new this(n);return n&&i.strength(n),r&&r.regionType==="faces"&&i.region(sk()),r&&r.regionType==="ocr_text"&&i.region(YZ()),r&&r.regionType==="custom"&&i.region(Xm.fromJson(r)),i}}function Xu(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const ak={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},XZ={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},ok={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},uk={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},JZ={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},lk={444:"CHROMA_444",420:"CHROMA_420"},QZ={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},eX=Xu(lk);Xu(QZ);const tX=Xu(ak),nX=Xu(XZ),ck=Xu(ok);Xu(uk);Xu(JZ);class fk extends _s{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=ck[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new In([t,`${n}`]).setDelimiter(":"):r=new In(t),new It("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,s=ok[n]||n;return new this(s,r||i)}}class rX extends fk{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=ck[t]||t,n&&this.setLevel(n)}setLevel(t){this._actionModel[this.LEVEL_NAME]=t;const n=this.createEffectQualifier(this.effectType,t);return this.addQualifier(n),this}}function Jm(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class iX extends _s{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(t){return this._actionModel.numOfColors=t,this._numOfColors=t,this}detailsLevel(t){return this._actionModel.detailLevel=t,this._detailsLevel=t,this}despeckleLevel(t){return this._actionModel.despeckleLevel=t,this._despeckleLevel=t,this}cornersLevel(t){return this._actionModel.cornersLevel=t,this._cornersLevel=t,this}paths(t){return this._actionModel.paths=t,this._paths=t,this}prepareQualifiers(){let t="vectorize";this._numOfColors&&(t+=`:${new In(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new In(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new In(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new In(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new In(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new It("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:s,detailLevel:a,numOfColors:o}=t,l=new this;return r&&l.paths(r),i&&l.cornersLevel(i),s&&l.despeckleLevel(s),a&&l.detailsLevel(a),o&&l.numOfColors(o),l}}class sX extends rX{level(t){return this._actionModel.level=t,this.setLevel(t)}}class aX extends _s{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new It("e",new In("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new It("e",new In(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new It("e",new In(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:n,type:r,stripesStrength:i}=t,s=new this;return r==="xray"&&s.xray(),r==="stripes"&&i&&s.stripesStrength(i),s}}class oX extends sX{color(t){return this._actionModel.color=t,this.addQualifier(new It("co",new In(Jm(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,s=new this(n,r);return i&&s.color(i),s}}class uX extends _s{constructor(t){super(),this._actionModel={},this._squareSize=t,this._actionModel.actionType="pixelate",this._actionModel.squareSize=t}region(t){return this._region=t,this._actionModel.region={regionType:this._region.regionType},this}squareSize(t){return this._squareSize=t,this._actionModel.squareSize=t,this}prepareQualifiers(){const t=this._squareSize?`:${this._squareSize}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new It("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new It("e",`pixelate_region${t}`)),this.addQualifier(new It("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new It("e",`pixelate_faces${t}`))):this.addQualifier(new It("e",`pixelate${t}`))}static fromJson(t){const{region:n,squareSize:r}=t,i=new this(r);return r&&i.squareSize(r),n&&n.regionType==="faces"&&i.region(sk()),n&&n.regionType==="custom"&&i.region(GZ()),i}}const lX=e=>pX(encodeURIComponent,dX,hX)(e),cX=/[!'()*~_.-]/g,fX={"!":"%21","'":"%27","(":"%28",")":"%29","*":"%2A","~":"%7E",_:"%5F",".":"%2E","-":"%2D"},dX=e=>e.replace(cX,t=>{var n;return(n=fX[t])!==null&&n!==void 0?n:t}),hX=e=>e.replace(/%20/g," "),pX=(...e)=>t=>e.reduce((n,r)=>r(n),t);function mX(e){return new ZZ(e)}function gX(){return new fk("grayscale")}function RD(e){return new oX("colorize",e)}function vX(){return new iX}function yX(){return new aX}function bX(e){return new uX(e)}let $X=class extends _s{constructor(t){super(),this._actionModel={},this.addQualifier(new It("b",new In(Jm(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},kD=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:N3(`unsupported action ${this.constructor.name}`)}}};function xX(e){const t=e;return"error"in t&&!!t.error}function wX(){return new Qi("ignore_aspect_ratio")}function CX(){return new Qi("lossy")}function EX(){return new Qi("preserve_transparency")}function SX(e){return new Qi("progressive",e)}function DX(){return new Qi("region_relative")}function AX(){return new Qi("relative")}let K3=class extends In{constructor(t){super(t),this.val=t}getValue(){return this.val}},dk=class extends _s{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof K3?i=n.getValue():i=n,this._actionModel.actionType=nX[t],this._actionModel[r]=i,this.addQualifier(new It(t,n))}},TX=class extends Qi{constructor(t){super("progressive",t)}},Hb=class extends dk{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(CX()),this}progressive(t){return t instanceof TX?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(SX(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(EX()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:s}=t;let a;return n?a=new this("f",n):a=new this("f"),i&&(i.mode?a.progressive(i.mode):a.progressive()),r&&a.lossy(),s&&a.preserveTransparency(),a}},Qm=class hk{constructor(){this.actions=[]}addAction(t){let n;if(typeof t=="string"){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";n=new kD(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof hk?this.actions=this.actions.concat(t.actions):this.actions.push(new kD(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new Hb("q",t)),this}format(t){return this.addAction(new Hb("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new $X(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new _s;let r=t;return typeof t=="string"&&(r=new Qi(t)),n.addQualifier(r),this.addAction(n)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if(xX(r))return r;t.push(r)}return{actions:t}}};function OD(e){const t=e.toString();return t.match(/[A-Z]/gi)||t.length>1&&t[0]==="0"?t:!isNaN(parseFloat(t))&&t.indexOf(":")===-1&&t.indexOf(".")===-1?`${t}.0`:t}class PX extends In{}class _X extends _s{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=tX[t]||t,this.addQualifier(new It("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new It("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new It("w",t))}aspectRatio(t){if(t instanceof PX)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new It("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=OD(t),this.addQualifier(new It("ar",OD(t)));if(t instanceof Qi)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(AX())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(DX())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:s}=t,{aspectRatio:a,width:o,height:l}=r,d=ak[n]||n,h=new this(d,o,l);return a&&h.aspectRatio(a==="ignore_aspect_ratio"?wX():a),i&&h.relative(),s&&h.regionRelative(),h}}class U3 extends It{constructor(t){super("g",new In(t))}}class pk extends U3{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class mk extends U3{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class gk extends U3{constructor(t){super(t)}}function MX(e){return new gk(e)}function vk(...e){const t=[...e];return new mk(t)}function yk(){return new pk}class hc extends In{constructor(t){super(),this.name=t}toString(){return this.name}}function FX(){return new hc("ocr_text")}function RX(e){return e&&`${e}`.split(":")[0]==="auto"}function kX(e){const t=q3(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function q3(e){return`${e}`.replace("g_","")}function OX(e){return{compass:q3(e),gravityType:"direction"}}function IX(e){return q3(e)==="ocr_text"}function LX(){return{gravityType:"ocr"}}function BX(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function VX(e){const n=e.toString().split("_"),r={object:n[0]};return n.length>1&&(n[1]==="avoid"?r.avoid=!0:r.weight=+n[1]),r}function bk(e){let t;const n=e==="auto"?new pk:e;return`${e}`.startsWith("auto:")?t=`${e}`.split(":").filter(i=>i!=="auto"):t=n.qualifierValue.values.filter(i=>i!=="auto"),{gravityType:"auto",autoFocus:t.map(VX)}}function NX(e){const t=`${e}`.split(":").includes("auto"),n=e.qualifierValue.values,i={gravityType:"object",focusOnObjects:(t?n.slice(0,n.length-1):n).map(s=>`${s}`)};if(t){const s=n[n.length-1].values.slice(1),a=yk().autoFocus(...s);i.fallbackGravity=bk(a)}return i}function jX(e){const n=e.split(":").map(r=>new hc(r));return new mk(n)}function KX(e){return kX(e)?OX(e):IX(e)?LX():RX(e)||BX(e)?bk(e):NX(typeof e=="string"?jX(e):e)}class z3 extends In{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof hc?t:new hc(t);return new z3(r,n)}shouldAddWeight(){return typeof this._weight=="number"||typeof this._weight=="string"||this.shouldAvoid}getName(){return this.focusOn.name}getWeight(){return this.shouldAvoid?"avoid":this._weight}toString(){return this.shouldAddWeight()?`${this.getName()}_${this.getWeight()}`:`${this.getName()}`}weight(t){return this._weight=t,this}avoid(){return this.shouldAvoid=!0,this}}class $k extends In{constructor(t){super(),this.val=t}toString(){return this.val}}function UX(e){return e.gravityType==="direction"}function qX(e){return e.gravityType==="ocr"}function zX(e){return e.gravityType==="auto"}function WX(e){const{object:t,weight:n,avoid:r}=e,i=new z3(new hc(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function xk(e){const n=(e.autoFocus||[]).map(WX);return yk().autoFocus(...n)}function HX(e){const t=(e.focusOnObjects||[]).map(r=>new hc(r)),n=vk(...t);if(e.fallbackGravity){const r=xk(e.fallbackGravity);n.fallbackGravity(r)}return n}function GX(e){return UX(e)?new gk(new $k(e.compass)):qX(e)?vk(FX()):zX(e)?xk(e):HX(e)}class W3 extends _X{gravity(t){this._actionModel.gravity=KX(t);const n=typeof t=="string"?new It("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity(GX(t.gravity)),n}}class jd extends It{constructor(t){super("b"),t&&this.addValue(t)}}const wk=100,YX=0;class ZX extends jd{intensity(t){return this.intensityLevel=t,this}brightness(t){return this.brightnessLevel=t,this}toString(){const t=this.intensityLevel!==void 0?`:${this.intensityLevel}`:"",n=this.brightnessLevel!==void 0?this.intensityLevel!==void 0?`:${this.brightnessLevel}`:`:${wk}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var Ck=ZX;class H3 extends jd{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>Jm(n)),this}}class Ek extends H3{toString(){return`
|
|
93
|
+
b_auto:border
|
|
94
|
+
${this._contrast?"_contrast":""}
|
|
95
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
96
|
+
`.replace(/\s+/g,"")}}class Sk extends H3{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class Dk extends Sk{toString(){return`
|
|
97
|
+
b_auto:border_gradient
|
|
98
|
+
${this._contrast?"_contrast":""}
|
|
99
|
+
${this._gradientColors?`:${this._gradientColors}`:""}
|
|
100
|
+
${this._gradientDirection?`:${this._gradientDirection}`:""}
|
|
101
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
102
|
+
`.replace(/\s+/g,"")}}class Ak extends Sk{toString(){return`
|
|
103
|
+
b_auto:predominant_gradient
|
|
104
|
+
${this._contrast?"_contrast":""}
|
|
105
|
+
${this._gradientColors?`:${this._gradientColors}`:""}
|
|
106
|
+
${this._gradientDirection?`:${this._gradientDirection}`:""}
|
|
107
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
108
|
+
`.replace(/\s+/g,"")}}class Tk extends H3{toString(){return`
|
|
109
|
+
b_auto:predominant
|
|
110
|
+
${this._contrast?"_contrast":""}
|
|
111
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
112
|
+
`.replace(/\s+/g,"")}}class Pk extends jd{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(t){try{this._prompt=decodeURIComponent(t)}catch{this._prompt=t}return this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return`b_gen_fill${this._prompt?`:prompt_${lX(this._prompt)}`:""}`}}function _k(e){return`${e}`.replace("b_","")}function XX(){return{backgroundType:"auto"}}function JX(e){const{intensityLevel:t,brightnessLevel:n}=e,r={backgroundType:"blurred"};return(t||t===0)&&(r.intensity=t),(n||n===0)&&(r.brightness=n),r}function G3(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function QX(e){return Object.assign(Object.assign({},G3(e)),{backgroundType:"border"})}function Mk(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=G3(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function eJ(e){return Object.assign(Object.assign({},Mk(e)),{backgroundType:"borderGradient"})}function tJ(e){return{backgroundType:"color",color:_k(e)}}function nJ(e){return Object.assign(Object.assign({},G3(e)),{backgroundType:"predominant"})}function rJ(e){return Object.assign(Object.assign({},Mk(e)),{backgroundType:"predominantGradient"})}function iJ(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function sJ(e){return _k(e)==="auto"?XX():e instanceof Ck?JX(e):e instanceof Ek?QX(e):e instanceof Dk?eJ(e):e instanceof Tk?nJ(e):e instanceof Ak?rJ(e):e instanceof Pk?iJ(e):tJ(e)}function aJ(){return new K3("svg")}function Y3(){return new K3("auto")}function Fk(){return new Ek}function Rk(){return new jd("auto")}function kk(){return new Dk}function Ok(){return new Ak}function Ik(){return new Tk}function Lk(e){return new jd(Jm(e))}function oJ(){return new Ck}function Bk(){return new Pk}const Vk={auto:Rk,border:Fk,borderGradient:kk,predominantGradient:Ok,predominant:Ik,color:Lk,blurred:oJ,generativeFill:Bk};function uJ(e){const{brightness:t,intensity:n}=e,r=Vk.blurred();return r.brightness(t??YX),r.intensity(n??wk),r}function ID(e,t){const{gradientColors:n,gradientDirection:r,contrast:i,palette:s}=t;return i&&e.contrast(),s&&e.palette(...s),n&&e.gradientColors(+n),r&&e.gradientDirection(r),e}function LD(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function lJ(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}function cJ(e){const{backgroundType:t}=e;switch(t){case"auto":return Rk();case"blurred":return uJ(e);case"border":return LD(Fk(),e);case"borderGradient":return ID(kk(),e);case"predominant":return LD(Ik(),e);case"predominantGradient":return ID(Ok(),e);case"generativeFill":return lJ(Bk(),e);default:return Lk(e.color)}}class fJ extends W3{background(t){return this._actionModel.background=sJ(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new It("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new It("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.background&&n.background(cJ(t.background)),t.x&&n.offsetX(t.x),t.y&&n.offsetY(t.y),t.zoom&&n.zoom(t.zoom),n}}class dJ extends W3{x(t){return this._actionModel.x=t,this.addQualifier(new It("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new It("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new It("z",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.x&&n.x(t.x),t.y&&n.y(t.y),t.zoom&&n.zoom(t.zoom),n}}class hJ extends W3{x(t){return this._actionModel.x=t,this.addQualifier(new It("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new It("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.x&&n.x(t.x),t.y&&n.y(t.y),n}}function pJ(e,t){return new dJ("crop",e,t)}function mJ(e,t){return new hJ("fill",e,t)}function gJ(e,t){return new fJ("pad",e,t)}class vJ extends dk{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=lk[t];const n=new In([this._actionModel.level,t]);return n.setDelimiter(":"),this.addQualifier(new It("q",n))}quantization(t){this._actionModel.quantization=t;const n=new In([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new It("q",n))}static fromJson(t){const{level:n,chromaSubSampling:r,quantization:i}=t,s=uk[n]||n,a=new this(s);if(r){const o=eX[r.toUpperCase()];o&&a.chromaSubSampling(+o)}return i&&a.quantization(i),a}}function eg(e){return new Hb("f",e)}function tg(e){return new vJ(e)}function yJ(){return new $k("north_east")}RD(70).color("black"),RD(40).color("white"),gX(),yX();var bJ=new Qm().effect(vX()).delivery(tg("auto")).delivery(eg(aJ())),$J=new Qm().effect(bX()).delivery(tg("auto")).delivery(eg(Y3())),xJ=new Qm().effect(mX(2e3)).delivery(tg("auto")).delivery(eg(Y3())),wJ=new Qm().resize(gJ("iw_div_2").aspectRatio(1).background(Vk.auto())).resize(pJ(1,1).gravity(MX(yJ()))).resize(mJ().height("ih").width("iw")).delivery(tg("auto")).delivery(eg(Y3())),BD={vectorize:bJ,pixelate:$J,blur:xJ,"predominant-color":wJ},VD="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ND={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},jD="?_a=",CJ=function(){function e(t,n,r,i,s,a,o){var l=this;this.mimeType="video",this.mimeSubTypes=ND,this.videoElement=t,this.originalVideo=n,this.videoOptions=o,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var d=_o(n);tm(t,n,i,this.htmlPluginState).then(function(){l.htmlPluginState.pluginEventSubscription.forEach(function(h){h()}),l.setVideoAttributes(s,a),l.handleSourceToVideo(d,r)})}return e.prototype.handleSourceToVideo=function(t,n){var r=this;if(n)this.generateUserSources(t,n);else{var i=["webm","mp4","ogv"];i.forEach(function(s){r.appendSourceTag(_o(t),s)})}},e.prototype.generateUserSources=function(t,n){var r=this;n.map(function(i){var s=i.type,a=i.codecs,o=i.transcode;return r.appendSourceTag(_o(t).transcode(o),s,r.buildMimeType(s,a))})},e.prototype.appendSourceTag=function(t,n,r){var i,s=document.createElement("source"),a=(i=this.videoOptions)===null||i===void 0?void 0:i.useFetchFormat;a&&t.format(n);var o=t.toURL(),l=o.split(jD),d=l[1]?"".concat(jD).concat(l[1]):"",h=a?"":".".concat(n);s.src="".concat(l[0]).concat(h).concat(d),s.type=r||"video/".concat(ND[n]||n),this.videoElement.appendChild(s)},e.prototype.buildMimeType=function(t,n){var r="".concat(this.mimeType,"/").concat(this.mimeSubTypes[t]||t);return n&&(r+="; codecs="+(Array.isArray(n)?n.join(", "):n)),r},e.prototype.setVideoAttributes=function(t,n){var r;if(t===void 0&&(t={}),n==="auto"){var i=_o(this.originalVideo);t.poster=i.quality("auto").format("jpg").addTransformation("so_auto").toURL()}else n&&(t.poster=(r=n.toURL)===null||r===void 0?void 0:r.call(n));for(var s=0,a=Object.entries(t);s<a.length;s++){var o=a[s],l=o[0],d=o[1];d&&this.videoElement.setAttribute(l,l==="poster"?d:"")}},e.prototype.update=function(t,n,r,i,s){var a=this;if(t!==this.originalVideo){for(var o=this.videoElement.getElementsByTagName("SOURCE");o[0];)o[0].parentNode.removeChild(o[0]);tm(this.videoElement,t,r,this.htmlPluginState).then(function(){a.setVideoAttributes(i,s),a.handleSourceToVideo(t,n),a.videoElement.load()})}},e}(),EJ=typeof Po=="object"&&Po&&Po.Object===Object&&Po,SJ=typeof self=="object"&&self&&self.Object===Object&&self;EJ||SJ||Function("return this")();function Z3(){return typeof window<"u"}function DJ(e){return e instanceof HTMLImageElement}function AJ(e){var t={},n=t.rootMargin,r=n===void 0?"0px":n,i=t.threshold,s=i===void 0?.1:i;return TJ.bind(null,r,s)}function TJ(e,t,n,r,i,s){return e===void 0&&(e="0px"),t===void 0&&(t=.1),Z3()?new Promise(function(a){var o=function(){return a({lazyload:!0})},l=_J(n,o,e,t);i.cleanupCallbacks.push(function(){l(),a("canceled")})}):!1}function PJ(){return window&&"IntersectionObserver"in window}function _J(e,t,n,r){try{if(!PJ())return t(),function(){};var i=new IntersectionObserver(function(s){s.forEach(function(a){a.isIntersecting&&(i.unobserve(a.target),t())})},{rootMargin:n,threshold:r});return i.observe(e),function(){e&&i.observe(e)}}catch{t()}}function MJ(e){var t={},n=t.mode,r=n===void 0?"vectorize":n;return FJ.bind(null,r)}function FJ(e,t,n,r,i,s){BD[e]||(e="vectorize");var a=BD[e].actions,o=_o(n);if(a.forEach(function(d){o.addAction(d)}),!Z3())return n.transformation=o.transformation,!0;if(DJ(t)){o.transformation.actions.forEach(function(d,h){d instanceof _s&&d.getActionTag()==="responsive"&&delete o.transformation.actions[h]});var l=Wb(i,{placeholder:!0});return t.src=o.toURL(l),t.onerror=function(){t.src=VD},new Promise(function(d){t.onload=function(){d()}}).then(function(){return new Promise(function(d){r.cleanupCallbacks.push(function(){t.src=VD,d("canceled")});var h=new Image;h.src=n.toURL(l),h.onload=function(){d({placeholder:!0})},h.onerror=function(){d({placeholder:!0})}})})}}function RJ(e,t,n){var r=_o(t);if(e)for(var i=0;i<e.length;i++){var s=e[i](null,r);if(!s)break}return r.toURL(n?{trackedAnalytics:n}:null)}function nm(e){e.cleanupCallbacks.forEach(function(t){t()})}/*! *****************************************************************************
|
|
113
|
+
Copyright (c) Microsoft Corporation.
|
|
114
|
+
|
|
115
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
116
|
+
purpose with or without fee is hereby granted.
|
|
117
|
+
|
|
118
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
119
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
120
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
121
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
122
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
123
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
124
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
125
|
+
***************************************************************************** */var Gb=function(e,t){return Gb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},Gb(e,t)};function Nk(e,t){Gb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var fd=function(){return fd=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},fd.apply(this,arguments)};function jk(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var M0={sdkSemver:"1.14.3",techVersion:T.version,sdkCode:"J"},kJ=function(e){Nk(t,e);function t(n){var r=e.call(this,n)||this;return r.imageRef=T.createRef(),r}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new jZ(this.imageRef.current,this.props.cldImg,this.props.plugins,M0)},t.prototype.componentDidUpdate=function(){nm(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,M0)},t.prototype.componentWillUnmount=function(){nm(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=jk(n,["cldImg","plugins"]);if(Z3())return T.createElement("img",fd({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=RJ(this.props.plugins,this.props.cldImg,M0);return T.createElement("img",fd({},r,{src:i}))},t}(T.Component),OJ=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){Nk(t,e);function t(n){var r=e.call(this,n)||this;return r.videoRef=T.createRef(),r.attachRef=r.attachRef.bind(r),r}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new CJ(this.videoRef&&this.videoRef.current,this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster,{useFetchFormat:this.props.useFetchFormat})},t.prototype.componentDidUpdate=function(){nm(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){nm(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return OJ.forEach(function(i){i in n.props&&(r[i]=n.props[i])}),r},t.prototype.attachRef=function(n){this.videoRef.current=n;var r=this.props.innerRef;r&&(r instanceof Function?r(n):r.current=n)},t.prototype.render=function(){var n=this.props;n.cldVid,n.cldPoster,n.plugins,n.sources,n.innerRef,n.useFetchFormat;var r=jk(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return T.createElement("video",fd({},r,{ref:this.attachRef}))},t})(T.Component);function IJ(e){return!(typeof e!="object"||e instanceof Array)}class LJ{filterOutNonSupportedKeys(t,n){const r=Object.create({});return IJ(t)?(Object.keys(t).forEach(i=>{n.indexOf(i)>=0?r[i]=t[i]:console.warn("Warning - unsupported key provided to configuration: ",i)}),r):Object.create({})}}const KD=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class X3 extends LJ{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,KD);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,KD);return new X3(Object.assign({},this,n))}setCname(t){return this.cname=t,this}setSecureDistribution(t){return this.secureDistribution=t,this}setPrivateCdn(t){return this.privateCdn=t,this}setSignUrl(t){return this.signUrl=t,this}setLongUrlSignature(t){return this.longUrlSignature=t,this}setShorten(t){return this.shorten=t,this}setUseRootPath(t){return this.useRootPath=t,this}setSecure(t){return this.secure=t,this}setForceVersion(t){return this.forceVersion=t,this}setQueryParams(t){return this.queryParams=t,this}}class dd{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(n=>this.hasValue(n)),this}setDelimiter(t){return this.delimiter=t,this}}class BJ extends Error{constructor(t="Unsupported"){super(t)}}function J3(e){return new BJ(e)}function VJ(){return this._qualifierModel||{error:J3(`unsupported qualifier ${this.constructor.name}`)}}class NJ{constructor(){this._qualifierModel={}}toJson(){return VJ.apply(this)}}class ng extends NJ{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof dd?this.qualifierValue=n:(this.qualifierValue=new dd,this.qualifierValue.addValue(n))}toString(){const{key:t,delimiter:n,qualifierValue:r}=this;return`${t}${n}${r.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}}class Mo extends ng{constructor(t,n){let r;n?r=new dd([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function jJ(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function KJ(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=(n=(t=(e=this._actionModel)===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.transformation)===null||n===void 0?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:J3(`unsupported action ${this.constructor.name}`)}}class UJ{constructor(){this._actionModel={}}toJson(){return KJ.apply(this)}}class Q3 extends UJ{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),jJ(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[n,r]=t.toLowerCase().split("_");n==="fl"?this.flags.push(new Mo(r)):this.qualifiers.set(n,new ng(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Mo(t)):t instanceof Mo&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function qJ(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class zJ extends Q3{constructor(t){super(),this._actionModel={},this.addQualifier(new ng("b",new dd(qJ(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class UD{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:J3(`unsupported action ${this.constructor.name}`)}}}function WJ(e){const t=e;return"error"in t&&!!t.error}function HJ(){return new Mo("lossy")}function GJ(){return new Mo("preserve_transparency")}function YJ(e){return new Mo("progressive",e)}class ZJ extends dd{constructor(t){super(t),this.val=t}getValue(){return this.val}}function Ju(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const XJ={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},JJ={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},QJ={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},eQ={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},tQ={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},nQ={444:"CHROMA_444",420:"CHROMA_420"},rQ={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};Ju(nQ);Ju(rQ);Ju(XJ);const iQ=Ju(JJ);Ju(QJ);Ju(eQ);Ju(tQ);class sQ extends Q3{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof ZJ?i=n.getValue():i=n,this._actionModel.actionType=iQ[t],this._actionModel[r]=i,this.addQualifier(new ng(t,n))}}class aQ extends Mo{constructor(t){super("progressive",t)}}class rm extends sQ{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(HJ()),this}progressive(t){return t instanceof aQ?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(YJ(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(GJ()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:s}=t;let a;return n?a=new this("f",n):a=new this("f"),i&&(i.mode?a.progressive(i.mode):a.progressive()),r&&a.lossy(),s&&a.preserveTransparency(),a}}class rg{constructor(){this.actions=[]}addAction(t){let n;if(typeof t=="string"){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";n=new UD(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof rg?this.actions=this.actions.concat(t.actions):this.actions.push(new UD(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new rm("q",t)),this}format(t){return this.addAction(new rm("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new zJ(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Q3;let r=t;return typeof t=="string"&&(r=new Mo(t)),n.addQualifier(r),this.addAction(n)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if(WJ(r))return r;t.push(r)}return{actions:t}}}class oQ extends rg{}class uQ extends rg{}function lQ(e){return e.match(/^https?:\//)}function cQ(e){return e.indexOf("/")<0}function fQ(e){return e.match(/^v[0-9]+/)}function dQ(e,t){const n=t.secure,r=t.privateCdn,i=t.cname,s=t.secureDistribution;return!n&&!i?`http://res.cloudinary.com/${e}`:n&&!s&&r?`https://${e}-res.cloudinary.com`:n&&!s?`https://res.cloudinary.com/${e}`:n&&s&&r?`https://${s}`:n&&s?`https://${s}/${e}`:!n&&i?`http://${i}/${e}`:"ERROR"}function hQ(e){return e||"image"}function pQ(e){return e||"upload"}function mQ(e,t,n){const r=n!==!1;return t?`v${t}`:fQ(e)||lQ(e)||cQ(e)?"":r?"v1":""}function e$(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=gQ(i,r/i.length)),i.slice(0,r)+String(e))}function gQ(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const vQ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",im={};let qD=0;vQ.split("").forEach(e=>{let t=qD.toString(2);t=e$(t,6,"0"),im[t]=e,qD++});function yQ(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function bQ(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").map(t=>{const n=+t;if(isNaN(n)||n<0)throw"Invalid version number provided";return e$(t,2,"0")}).join(".")}function zD(e){let t="";const r=e.split(".").length*6,i=yQ(e),s=bQ(i);let o=parseInt(s.split(".").join("")).toString(2);if(o=e$(o,r,"0"),o.length%6!==0)throw"Version must be smaller than 43.21.26)";return o.match(/.{1,6}/g).forEach(l=>{t+=im[l]}),t}function $Q(e){const t={sdkSemver:e.sdkSemver,techVersion:e.techVersion,sdkCode:e.sdkCode,product:e.product,feature:"0",osType:e.osType,osVersion:e.osVersion};return e.accessibility&&(t.feature="D"),e.lazyload&&(t.feature="C"),e.responsive&&(t.feature="A"),e.placeholder&&(t.feature="B"),t}const xQ="1.21.0";function wQ(e){const[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),s=r.padStart(6,"0"),a=i.padStart(6,"0");return im[s]+im[a]}function CQ(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function EQ(e){const t={techVersion:CQ(),sdkCode:"T",sdkSemver:xQ.split("-")[0],product:"A",osType:"Z",osVersion:"0.0",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return e?Object.assign(Object.assign({},t),e):t}function WD(e){const t=EQ(e),n=$Q(t);try{const r=SQ(n.techVersion),i=zD(n.sdkSemver),s=zD(r),a=wQ(n.osVersion),o=n.feature,l=n.sdkCode,{product:d,osType:h}=n;return`D${d}${l}${i}${s}${h}${a}${o}`}catch{return"E"}}function SQ(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const HD={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class DQ{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new X3(t),this}setCloudConfig(t){return this.cloudName=t.cloudName,this.apiKey=t.apiKey,this.apiSecret=t.apiSecret,this.authToken=t.authToken,this}setPublicID(t){return this.publicID=t?t.toString():"",this}setDeliveryType(t){return this.deliveryType=t,this}setSuffix(t){return this.suffix=t,this}setSignature(t){return this.signature=t,this}setVersion(t){return t&&(this.version=t),this}setAssetType(t){return t&&(this.assetType=t),this}sign(){return this}toURL(t={}){return this.createCloudinaryURL(null,t.trackedAnalytics)}validateAssetForURLCreation(){if(typeof this.cloudName>"u")throw"You must supply a cloudName when initializing the asset";const t=this.suffix&&this.suffix.indexOf(".")>=0,n=this.suffix&&this.suffix.indexOf("/")>=0;if(t||n)throw"`suffix`` should not include . or /"}getResourceType(){const t=hQ(this.assetType),n=pQ(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,s=HD[`${t}/${n}`],a=this.urlConfig.useRootPath,o=this.urlConfig.shorten;if(a){if(i==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${i} instead`)}if(o&&i==="image/upload")return"iu";if(r){if(s)return s;throw new Error(`URL Suffix only supported for ${Object.keys(HD).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=dQ(this.cloudName,this.urlConfig),i=t?t.toString():"",s=mQ(this.publicID,this.version,this.urlConfig.forceVersion),a=this.publicID;if(typeof t=="string")return[r,this.getResourceType(),this.getSignature(),i,s,a.replace(/,/g,"%2C"),this.suffix].filter(l=>l).join("/");{const o=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),s,encodeURI(a).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(h=>h).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),l=this.urlConfig.analytics!==!1&&!a.includes("?");let d="";if(typeof this.urlConfig.queryParams=="object")try{const h=new URLSearchParams(this.urlConfig.queryParams);l&&h.set("_a",WD(n)),d=h.toString()}catch{console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else d=this.urlConfig.queryParams||"",l&&(d+=`${d.length>0?"&":""}_a=${WD(n)}`);return d?`${o}?${d}`:o}}}class Kk extends DQ{constructor(t,n,r,i){super(t,n,r),this.transformation=i}animated(t){return this.transformation.animated(t),this}border(t){return this.transformation.border(t),this}reshape(t){return this.transformation.reshape(t),this}resize(t){return this.transformation.resize(t),this}quality(t){return this.addAction(new rm("q",t)),this}format(t){return this.addAction(new rm("f",t)),this}roundCorners(t){return this.transformation.roundCorners(t),this}overlay(t){return this.transformation.overlay(t),this}addVariable(t){return this.transformation.addVariable(t),this}conditional(t){return this.transformation.conditional(t),this}effect(t){return this.transformation.effect(t),this}adjust(t){return this.transformation.adjust(t),this}rotate(t){return this.transformation.rotate(t),this}namedTransformation(t){return this.transformation.namedTransformation(t),this}delivery(t){return this.transformation.delivery(t),this}backgroundColor(t){return this.transformation.backgroundColor(t),this}psdTools(t){return this.transformation.psdTools(t),this}extract(t){return this.transformation.extract(t),this}addFlag(t){return this.transformation.addFlag(t),this}customFunction(t){return this.transformation.customFunction(t),this}addAction(t){return this.transformation.addAction(t),this}addTransformation(t){return this.transformation.addTransformation(t),this}toString(){return this.transformation.toString()}underlay(t){return this.transformation.underlay(t),this}toURL(t={}){return this.createCloudinaryURL(this.transformation,t==null?void 0:t.trackedAnalytics)}}class AQ extends Kk{constructor(t,n,r){super(t,n,r,new oQ)}}class TQ extends Kk{constructor(t,n,r){super(t,n,r,new uQ),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class PQ{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new AQ(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new TQ(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var F0,GD;function _Q(){if(GD)return F0;GD=1;var e=ZR(),t=B3(),n=1,r=2;function i(s,a,o,l){var d=o.length,h=d,m=!l;if(s==null)return!h;for(s=Object(s);d--;){var g=o[d];if(m&&g[2]?g[1]!==s[g[0]]:!(g[0]in s))return!1}for(;++d<h;){g=o[d];var b=g[0],x=s[b],w=g[1];if(m&&g[2]){if(x===void 0&&!(b in s))return!1}else{var S=new e;if(l)var E=l(x,w,b,s,a,S);if(!(E===void 0?t(w,x,n|r,l,S):E))return!1}}return!0}return F0=i,F0}var R0,YD;function Uk(){if(YD)return R0;YD=1;var e=Ec();function t(n){return n===n&&!e(n)}return R0=t,R0}var k0,ZD;function MQ(){if(ZD)return k0;ZD=1;var e=Uk(),t=L3();function n(r){for(var i=t(r),s=i.length;s--;){var a=i[s],o=r[a];i[s]=[a,o,e(o)]}return i}return k0=n,k0}var O0,XD;function qk(){if(XD)return O0;XD=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return O0=e,O0}var I0,JD;function FQ(){if(JD)return I0;JD=1;var e=_Q(),t=MQ(),n=qk();function r(i){var s=t(i);return s.length==1&&s[0][2]?n(s[0][0],s[0][1]):function(a){return a===i||e(a,i,s)}}return I0=r,I0}var L0,QD;function t$(){if(QD)return L0;QD=1;var e=Cc(),t=Dc(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return L0=r,L0}var B0,eA;function n$(){if(eA)return B0;eA=1;var e=da(),t=t$(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(s,a){if(e(s))return!1;var o=typeof s;return o=="number"||o=="symbol"||o=="boolean"||s==null||t(s)?!0:r.test(s)||!n.test(s)||a!=null&&s in Object(a)}return B0=i,B0}var V0,tA;function RQ(){if(tA)return V0;tA=1;var e=M3(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var s=function(){var a=arguments,o=i?i.apply(this,a):a[0],l=s.cache;if(l.has(o))return l.get(o);var d=r.apply(this,a);return s.cache=l.set(o,d)||l,d};return s.cache=new(n.Cache||e),s}return n.Cache=e,V0=n,V0}var N0,nA;function kQ(){if(nA)return N0;nA=1;var e=RQ(),t=500;function n(r){var i=e(r,function(a){return s.size===t&&s.clear(),a}),s=i.cache;return i}return N0=n,N0}var j0,rA;function OQ(){if(rA)return j0;rA=1;var e=kQ(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(t,function(a,o,l,d){s.push(l?d.replace(n,"$1"):o||a)}),s});return j0=r,j0}var K0,iA;function IQ(){if(iA)return K0;iA=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,s=Array(i);++r<i;)s[r]=n(t[r],r,t);return s}return K0=e,K0}var U0,sA;function LQ(){if(sA)return U0;sA=1;var e=Hm(),t=IQ(),n=da(),r=t$(),i=e?e.prototype:void 0,s=i?i.toString:void 0;function a(o){if(typeof o=="string")return o;if(n(o))return t(o,a)+"";if(r(o))return s?s.call(o):"";var l=o+"";return l=="0"&&1/o==-1/0?"-0":l}return U0=a,U0}var q0,aA;function BQ(){if(aA)return q0;aA=1;var e=LQ();function t(n){return n==null?"":e(n)}return q0=t,q0}var z0,oA;function zk(){if(oA)return z0;oA=1;var e=da(),t=n$(),n=OQ(),r=BQ();function i(s,a){return e(s)?s:t(s,a)?[s]:n(r(s))}return z0=i,z0}var W0,uA;function ig(){if(uA)return W0;uA=1;var e=t$();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return W0=t,W0}var H0,lA;function Wk(){if(lA)return H0;lA=1;var e=zk(),t=ig();function n(r,i){i=e(i,r);for(var s=0,a=i.length;r!=null&&s<a;)r=r[t(i[s++])];return s&&s==a?r:void 0}return H0=n,H0}var G0,cA;function VQ(){if(cA)return G0;cA=1;var e=Wk();function t(n,r,i){var s=n==null?void 0:e(n,r);return s===void 0?i:s}return G0=t,G0}var Y0,fA;function NQ(){if(fA)return Y0;fA=1;function e(t,n){return t!=null&&n in Object(t)}return Y0=e,Y0}var Z0,dA;function jQ(){if(dA)return Z0;dA=1;var e=zk(),t=QR(),n=da(),r=R3(),i=k3(),s=ig();function a(o,l,d){l=e(l,o);for(var h=-1,m=l.length,g=!1;++h<m;){var b=s(l[h]);if(!(g=o!=null&&d(o,b)))break;o=o[b]}return g||++h!=m?g:(m=o==null?0:o.length,!!m&&i(m)&&r(b,m)&&(n(o)||t(o)))}return Z0=a,Z0}var X0,hA;function KQ(){if(hA)return X0;hA=1;var e=NQ(),t=jQ();function n(r,i){return r!=null&&t(r,i,e)}return X0=n,X0}var J0,pA;function UQ(){if(pA)return J0;pA=1;var e=B3(),t=VQ(),n=KQ(),r=n$(),i=Uk(),s=qk(),a=ig(),o=1,l=2;function d(h,m){return r(h)&&i(m)?s(a(h),m):function(g){var b=t(g,h);return b===void 0&&b===m?n(g,h):e(m,b,o|l)}}return J0=d,J0}var Q0,mA;function qQ(){if(mA)return Q0;mA=1;function e(t){return t}return Q0=e,Q0}var e1,gA;function zQ(){if(gA)return e1;gA=1;function e(t){return function(n){return n==null?void 0:n[t]}}return e1=e,e1}var t1,vA;function WQ(){if(vA)return t1;vA=1;var e=Wk();function t(n){return function(r){return e(r,n)}}return t1=t,t1}var n1,yA;function HQ(){if(yA)return n1;yA=1;var e=zQ(),t=WQ(),n=n$(),r=ig();function i(s){return n(s)?e(r(s)):t(s)}return n1=i,n1}var r1,bA;function Hk(){if(bA)return r1;bA=1;var e=FQ(),t=UQ(),n=qQ(),r=da(),i=HQ();function s(a){return typeof a=="function"?a:a==null?n:typeof a=="object"?r(a)?t(a[0],a[1]):e(a):i(a)}return r1=s,r1}var i1,$A;function GQ(){if($A)return i1;$A=1;function e(t){return function(n,r,i){for(var s=-1,a=Object(n),o=i(n),l=o.length;l--;){var d=o[t?l:++s];if(r(a[d],d,a)===!1)break}return n}}return i1=e,i1}var s1,xA;function YQ(){if(xA)return s1;xA=1;var e=GQ(),t=e();return s1=t,s1}var a1,wA;function Gk(){if(wA)return a1;wA=1;var e=YQ(),t=L3();function n(r,i){return r&&e(r,i,t)}return a1=n,a1}var o1,CA;function ZQ(){if(CA)return o1;CA=1;var e=I3();function t(n,r){return function(i,s){if(i==null)return i;if(!e(i))return n(i,s);for(var a=i.length,o=r?a:-1,l=Object(i);(r?o--:++o<a)&&s(l[o],o,l)!==!1;);return i}}return o1=t,o1}var u1,EA;function XQ(){if(EA)return u1;EA=1;var e=Gk(),t=ZQ(),n=t(e);return u1=n,u1}var l1,SA;function JQ(){if(SA)return l1;SA=1;var e=XQ();function t(n,r){var i;return e(n,function(s,a,o){return i=r(s,a,o),!i}),!!i}return l1=t,l1}var c1,DA;function QQ(){if(DA)return c1;DA=1;var e=T3(),t=I3(),n=R3(),r=Ec();function i(s,a,o){if(!r(o))return!1;var l=typeof a;return(l=="number"?t(o)&&n(a,o.length):l=="string"&&a in o)?e(o[a],s):!1}return c1=i,c1}var f1,AA;function eee(){if(AA)return f1;AA=1;var e=XR(),t=Hk(),n=JQ(),r=da(),i=QQ();function s(a,o,l){var d=r(a)?e:n;return l&&i(a,o,l)&&(o=void 0),d(a,t(o,3))}return f1=s,f1}var tee=eee();const nee=ci(tee);var d1={exports:{}},TA;function ree(){return TA||(TA=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
126
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
127
|
+
*
|
|
128
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
129
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
130
|
+
* @namespace
|
|
131
|
+
* @public
|
|
132
|
+
*/var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,a={},o={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function C(A){return A instanceof l?new l(A.type,C(A.content),A.alias):Array.isArray(A)?A.map(C):A.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(C){return Object.prototype.toString.call(C).slice(8,-1)},objId:function(C){return C.__id||Object.defineProperty(C,"__id",{value:++s}),C.__id},clone:function C(A,k){k=k||{};var M,R;switch(o.util.type(A)){case"Object":if(R=o.util.objId(A),k[R])return k[R];M={},k[R]=M;for(var K in A)A.hasOwnProperty(K)&&(M[K]=C(A[K],k));return M;case"Array":return R=o.util.objId(A),k[R]?k[R]:(M=[],k[R]=M,A.forEach(function(H,le){M[le]=C(H,k)}),M);default:return A}},getLanguage:function(C){for(;C;){var A=i.exec(C.className);if(A)return A[1].toLowerCase();C=C.parentElement}return"none"},setLanguage:function(C,A){C.className=C.className.replace(RegExp(i,"gi"),""),C.classList.add("language-"+A)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(M){var C=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(M.stack)||[])[1];if(C){var A=document.getElementsByTagName("script");for(var k in A)if(A[k].src==C)return A[k]}return null}},isActive:function(C,A,k){for(var M="no-"+A;C;){var R=C.classList;if(R.contains(A))return!0;if(R.contains(M))return!1;C=C.parentElement}return!!k}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(C,A){var k=o.util.clone(o.languages[C]);for(var M in A)k[M]=A[M];return k},insertBefore:function(C,A,k,M){M=M||o.languages;var R=M[C],K={};for(var H in R)if(R.hasOwnProperty(H)){if(H==A)for(var le in k)k.hasOwnProperty(le)&&(K[le]=k[le]);k.hasOwnProperty(H)||(K[H]=R[H])}var ae=M[C];return M[C]=K,o.languages.DFS(o.languages,function(I,$e){$e===ae&&I!=C&&(this[I]=K)}),K},DFS:function C(A,k,M,R){R=R||{};var K=o.util.objId;for(var H in A)if(A.hasOwnProperty(H)){k.call(A,H,A[H],M||H);var le=A[H],ae=o.util.type(le);ae==="Object"&&!R[K(le)]?(R[K(le)]=!0,C(le,k,null,R)):ae==="Array"&&!R[K(le)]&&(R[K(le)]=!0,C(le,k,H,R))}}},plugins:{},highlightAll:function(C,A){o.highlightAllUnder(document,C,A)},highlightAllUnder:function(C,A,k){var M={callback:k,container:C,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",M),M.elements=Array.prototype.slice.apply(M.container.querySelectorAll(M.selector)),o.hooks.run("before-all-elements-highlight",M);for(var R=0,K;K=M.elements[R++];)o.highlightElement(K,A===!0,M.callback)},highlightElement:function(C,A,k){var M=o.util.getLanguage(C),R=o.languages[M];o.util.setLanguage(C,M);var K=C.parentElement;K&&K.nodeName.toLowerCase()==="pre"&&o.util.setLanguage(K,M);var H=C.textContent,le={element:C,language:M,grammar:R,code:H};function ae($e){le.highlightedCode=$e,o.hooks.run("before-insert",le),le.element.innerHTML=le.highlightedCode,o.hooks.run("after-highlight",le),o.hooks.run("complete",le),k&&k.call(le.element)}if(o.hooks.run("before-sanity-check",le),K=le.element.parentElement,K&&K.nodeName.toLowerCase()==="pre"&&!K.hasAttribute("tabindex")&&K.setAttribute("tabindex","0"),!le.code){o.hooks.run("complete",le),k&&k.call(le.element);return}if(o.hooks.run("before-highlight",le),!le.grammar){ae(o.util.encode(le.code));return}if(A&&r.Worker){var I=new Worker(o.filename);I.onmessage=function($e){ae($e.data)},I.postMessage(JSON.stringify({language:le.language,code:le.code,immediateClose:!0}))}else ae(o.highlight(le.code,le.grammar,le.language))},highlight:function(C,A,k){var M={code:C,grammar:A,language:k};if(o.hooks.run("before-tokenize",M),!M.grammar)throw new Error('The language "'+M.language+'" has no grammar.');return M.tokens=o.tokenize(M.code,M.grammar),o.hooks.run("after-tokenize",M),l.stringify(o.util.encode(M.tokens),M.language)},tokenize:function(C,A){var k=A.rest;if(k){for(var M in k)A[M]=k[M];delete A.rest}var R=new m;return g(R,R.head,C),h(C,R,A,R.head,0),x(R)},hooks:{all:{},add:function(C,A){var k=o.hooks.all;k[C]=k[C]||[],k[C].push(A)},run:function(C,A){var k=o.hooks.all[C];if(!(!k||!k.length))for(var M=0,R;R=k[M++];)R(A)}},Token:l};r.Prism=o;function l(C,A,k,M){this.type=C,this.content=A,this.alias=k,this.length=(M||"").length|0}l.stringify=function C(A,k){if(typeof A=="string")return A;if(Array.isArray(A)){var M="";return A.forEach(function(ae){M+=C(ae,k)}),M}var R={type:A.type,content:C(A.content,k),tag:"span",classes:["token",A.type],attributes:{},language:k},K=A.alias;K&&(Array.isArray(K)?Array.prototype.push.apply(R.classes,K):R.classes.push(K)),o.hooks.run("wrap",R);var H="";for(var le in R.attributes)H+=" "+le+'="'+(R.attributes[le]||"").replace(/"/g,""")+'"';return"<"+R.tag+' class="'+R.classes.join(" ")+'"'+H+">"+R.content+"</"+R.tag+">"};function d(C,A,k,M){C.lastIndex=A;var R=C.exec(k);if(R&&M&&R[1]){var K=R[1].length;R.index+=K,R[0]=R[0].slice(K)}return R}function h(C,A,k,M,R,K){for(var H in k)if(!(!k.hasOwnProperty(H)||!k[H])){var le=k[H];le=Array.isArray(le)?le:[le];for(var ae=0;ae<le.length;++ae){if(K&&K.cause==H+","+ae)return;var I=le[ae],$e=I.inside,we=!!I.lookbehind,W=!!I.greedy,ie=I.alias;if(W&&!I.pattern.global){var O=I.pattern.toString().match(/[imsuy]*$/)[0];I.pattern=RegExp(I.pattern.source,O+"g")}for(var L=I.pattern||I,B=M.next,he=R;B!==A.tail&&!(K&&he>=K.reach);he+=B.value.length,B=B.next){var U=B.value;if(A.length>C.length)return;if(!(U instanceof l)){var te=1,xe;if(W){if(xe=d(L,he,C,we),!xe||xe.index>=C.length)break;var Ye=xe.index,De=xe.index+xe[0].length,_e=he;for(_e+=B.value.length;Ye>=_e;)B=B.next,_e+=B.value.length;if(_e-=B.value.length,he=_e,B.value instanceof l)continue;for(var Me=B;Me!==A.tail&&(_e<De||typeof Me.value=="string");Me=Me.next)te++,_e+=Me.value.length;te--,U=C.slice(he,_e),xe.index-=he}else if(xe=d(L,0,U,we),!xe)continue;var Ye=xe.index,Ge=xe[0],Ae=U.slice(0,Ye),Ke=U.slice(Ye+Ge.length),We=he+U.length;K&&We>K.reach&&(K.reach=We);var Ve=B.prev;Ae&&(Ve=g(A,Ve,Ae),he+=Ae.length),b(A,Ve,te);var Te=new l(H,$e?o.tokenize(Ge,$e):Ge,ie,Ge);if(B=g(A,Ve,Te),Ke&&g(A,B,Ke),te>1){var tt={cause:H+","+ae,reach:We};h(C,A,k,B.prev,he,tt),K&&tt.reach>K.reach&&(K.reach=tt.reach)}}}}}}function m(){var C={value:null,prev:null,next:null},A={value:null,prev:C,next:null};C.next=A,this.head=C,this.tail=A,this.length=0}function g(C,A,k){var M=A.next,R={value:k,prev:A,next:M};return A.next=R,M.prev=R,C.length++,R}function b(C,A,k){for(var M=A.next,R=0;R<k&&M!==C.tail;R++)M=M.next;A.next=M,M.prev=A,C.length-=R}function x(C){for(var A=[],k=C.head.next;k!==C.tail;)A.push(k.value),k=k.next;return A}if(!r.document)return r.addEventListener&&(o.disableWorkerMessageHandler||r.addEventListener("message",function(C){var A=JSON.parse(C.data),k=A.language,M=A.code,R=A.immediateClose;r.postMessage(o.highlight(M,o.languages[k],k)),R&&r.close()},!1)),o;var w=o.util.currentScript();w&&(o.filename=w.src,w.hasAttribute("data-manual")&&(o.manual=!0));function S(){o.manual||o.highlightAll()}if(!o.manual){var E=document.readyState;E==="loading"||E==="interactive"&&w&&w.defer?document.addEventListener("DOMContentLoaded",S):window.requestAnimationFrame?window.requestAnimationFrame(S):window.setTimeout(S,16)}return o}(t);e.exports&&(e.exports=n),typeof Yi<"u"&&(Yi.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,s){var a={};a["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[s]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};o["language-"+s]={pattern:/[\s\S]+/,inside:n.languages[s]};var l={};l[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:o},n.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var s=r.languages.markup;s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",i=function(w,S){return"✖ Error "+w+" while fetching file: "+S},s="✖ Error: File does not exist or is empty",a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},o="data-src-status",l="loading",d="loaded",h="failed",m="pre[data-src]:not(["+o+'="'+d+'"]):not(['+o+'="'+l+'"])';function g(w,S,E){var C=new XMLHttpRequest;C.open("GET",w,!0),C.onreadystatechange=function(){C.readyState==4&&(C.status<400&&C.responseText?S(C.responseText):C.status>=400?E(i(C.status,C.statusText)):E(s))},C.send(null)}function b(w){var S=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(w||"");if(S){var E=Number(S[1]),C=S[2],A=S[3];return C?A?[E,Number(A)]:[E,void 0]:[E,E]}}n.hooks.add("before-highlightall",function(w){w.selector+=", "+m}),n.hooks.add("before-sanity-check",function(w){var S=w.element;if(S.matches(m)){w.code="",S.setAttribute(o,l);var E=S.appendChild(document.createElement("CODE"));E.textContent=r;var C=S.getAttribute("data-src"),A=w.language;if(A==="none"){var k=(/\.(\w+)$/.exec(C)||[,"none"])[1];A=a[k]||k}n.util.setLanguage(E,A),n.util.setLanguage(S,A);var M=n.plugins.autoloader;M&&M.loadLanguages(A),g(C,function(R){S.setAttribute(o,d);var K=b(S.getAttribute("data-range"));if(K){var H=R.split(/\r\n?|\n/g),le=K[0],ae=K[1]==null?H.length:K[1];le<0&&(le+=H.length),le=Math.max(0,Math.min(le-1,H.length)),ae<0&&(ae+=H.length),ae=Math.max(0,Math.min(ae,H.length)),R=H.slice(le,ae).join(`
|
|
133
|
+
`),S.hasAttribute("data-start")||S.setAttribute("data-start",String(le+1))}E.textContent=R,n.highlightElement(E)},function(R){S.setAttribute(o,h),E.textContent=R})}}),n.plugins.fileHighlight={highlight:function(S){for(var E=(S||document).querySelectorAll(m),C=0,A;A=E[C++];)n.highlightElement(A)}};var x=!1;n.fileHighlight=function(){x||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),x=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(d1)),d1.exports}var iee=ree();(function(){if(typeof Prism>"u"||typeof document>"u"||!document.querySelector)return;var e="line-numbers",t="linkable-line-numbers",n=/\n(?!$)/g;function r(g,b){return Array.prototype.slice.call((b||document).querySelectorAll(g))}function i(g,b){return g.classList.contains(b)}function s(g){g()}var a=function(){var g;return function(){if(typeof g>"u"){var b=document.createElement("div");b.style.fontSize="13px",b.style.lineHeight="1.5",b.style.padding="0",b.style.border="0",b.innerHTML=" <br /> ",document.body.appendChild(b),g=b.offsetHeight===38,document.body.removeChild(b)}return g}}();function o(g,b){var x=getComputedStyle(g),w=getComputedStyle(b);function S(E){return+E.substr(0,E.length-2)}return b.offsetTop+S(w.borderTopWidth)+S(w.paddingTop)-S(x.paddingTop)}function l(g){return!g||!/pre/i.test(g.nodeName)?!1:!!(g.hasAttribute("data-line")||g.id&&Prism.util.isActive(g,t))}var d=!0;Prism.plugins.lineHighlight={highlightLines:function(b,x,w){x=typeof x=="string"?x:b.getAttribute("data-line")||"";var S=x.replace(/\s+/g,"").split(",").filter(Boolean),E=+b.getAttribute("data-line-offset")||0,C=a()?parseInt:parseFloat,A=C(getComputedStyle(b).lineHeight),k=Prism.util.isActive(b,e),M=b.querySelector("code"),R=k?b:M||b,K=[],H=M.textContent.match(n),le=H?H.length+1:1,ae=!M||R==M?0:o(b,M);S.forEach(function(we){var W=we.split("-"),ie=+W[0],O=+W[1]||ie;if(O=Math.min(le+E,O),!(O<ie)){var L=b.querySelector('.line-highlight[data-range="'+we+'"]')||document.createElement("div");if(K.push(function(){L.setAttribute("aria-hidden","true"),L.setAttribute("data-range",we),L.className=(w||"")+" line-highlight"}),k&&Prism.plugins.lineNumbers){var B=Prism.plugins.lineNumbers.getLine(b,ie),he=Prism.plugins.lineNumbers.getLine(b,O);if(B){var U=B.offsetTop+ae+"px";K.push(function(){L.style.top=U})}if(he){var te=he.offsetTop-B.offsetTop+he.offsetHeight+"px";K.push(function(){L.style.height=te})}}else K.push(function(){L.setAttribute("data-start",String(ie)),O>ie&&L.setAttribute("data-end",String(O)),L.style.top=(ie-E-1)*A+ae+"px",L.textContent=new Array(O-ie+2).join(`
|
|
134
|
+
`)});K.push(function(){L.style.width=b.scrollWidth+"px"}),K.push(function(){R.appendChild(L)})}});var I=b.id;if(k&&Prism.util.isActive(b,t)&&I){i(b,t)||K.push(function(){b.classList.add(t)});var $e=parseInt(b.getAttribute("data-start")||"1");r(".line-numbers-rows > span",b).forEach(function(we,W){var ie=W+$e;we.onclick=function(){var O=I+"."+ie;d=!1,location.hash=O,setTimeout(function(){d=!0},1)}})}return function(){K.forEach(s)}}};function h(){var g=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(E){E.parentNode.removeChild(E)});var b=(g.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!b||document.getElementById(g))){var x=g.slice(0,g.lastIndexOf(".")),w=document.getElementById(x);if(w){w.hasAttribute("data-line")||w.setAttribute("data-line","");var S=Prism.plugins.lineHighlight.highlightLines(w,b,"temporary ");S(),d&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var m=0;Prism.hooks.add("before-sanity-check",function(g){var b=g.element.parentElement;if(l(b)){var x=0;r(".line-highlight",b).forEach(function(w){x+=w.textContent.length,w.parentNode.removeChild(w)}),x&&/^(?: \n)+$/.test(g.code.slice(-x))&&(g.code=g.code.slice(0,-x))}}),Prism.hooks.add("complete",function g(b){var x=b.element.parentElement;if(l(x)){clearTimeout(m);var w=Prism.plugins.lineNumbers,S=b.plugins&&b.plugins.lineNumbers;if(i(x,e)&&w&&!S)Prism.hooks.add("line-numbers",g);else{var E=Prism.plugins.lineHighlight.highlightLines(x);E(),m=setTimeout(h,1)}}}),window.addEventListener("hashchange",h),window.addEventListener("resize",function(){var g=r("pre").filter(l).map(function(b){return Prism.plugins.lineHighlight.highlightLines(b)});g.forEach(s)})})();const Yk=T.createContext({});function Kd(e){const t=T.useRef(null);return t.current===null&&(t.current=e()),t.current}const r$=typeof window<"u",Zk=r$?T.useLayoutEffect:T.useEffect,i$=T.createContext(null);function s$(e,t){e.indexOf(t)===-1&&e.push(t)}function a$(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function see([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const i=n<0?e.length+n:n,[s]=e.splice(t,1);e.splice(i,0,s)}return e}const Ya=(e,t,n)=>n>t?t:n<e?e:n;let Ac=()=>{},Ts=()=>{};process.env.NODE_ENV!=="production"&&(Ac=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Ts=(e,t)=>{if(!e)throw new Error(t)});const Za={},Xk=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Jk(e){return typeof e=="object"&&e!==null}const Qk=e=>/^0[^.\s]+$/u.test(e);function o$(e){let t;return()=>(t===void 0&&(t=e()),t)}const es=e=>e,aee=(e,t)=>n=>t(e(n)),Ud=(...e)=>e.reduce(aee),hd=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let u$=class{constructor(){this.subscriptions=[]}add(t){return s$(this.subscriptions,t),()=>a$(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 s=0;s<i;s++){const a=this.subscriptions[s];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const Ss=e=>e*1e3,aa=e=>e/1e3;function e7(e,t){return t?e*(1e3/t):0}const PA=new Set;function l$(e,t,n){e||PA.has(t)||(console.warn(t),PA.add(t))}const t7=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,oee=1e-7,uee=12;function lee(e,t,n,r,i){let s,a,o=0;do a=t+(n-t)/2,s=t7(a,r,i)-e,s>0?n=a:t=a;while(Math.abs(s)>oee&&++o<uee);return a}function qd(e,t,n,r){if(e===t&&n===r)return es;const i=s=>lee(s,0,1,e,n);return s=>s===0||s===1?s:t7(i(s),t,r)}const n7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,r7=e=>t=>1-e(1-t),i7=qd(.33,1.53,.69,.99),c$=r7(i7),s7=n7(c$),a7=e=>(e*=2)<1?.5*c$(e):.5*(2-Math.pow(2,-10*(e-1))),f$=e=>1-Math.sin(Math.acos(e)),o7=r7(f$),u7=n7(f$),cee=qd(.42,0,1,1),fee=qd(0,0,.58,1),l7=qd(.42,0,.58,1),dee=e=>Array.isArray(e)&&typeof e[0]!="number",c7=e=>Array.isArray(e)&&typeof e[0]=="number",_A={linear:es,easeIn:cee,easeInOut:l7,easeOut:fee,circIn:f$,circInOut:u7,circOut:o7,backIn:c$,backInOut:s7,backOut:i7,anticipate:a7},hee=e=>typeof e=="string",MA=e=>{if(c7(e)){Ts(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return qd(t,n,r,i)}else if(hee(e))return Ts(_A[e]!==void 0,`Invalid easing type '${e}'`),_A[e];return e},Gh=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function pee(e,t){let n=new Set,r=new Set,i=!1,s=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function l(h){a.has(h)&&(d.schedule(h),e()),h(o)}const d={schedule:(h,m=!1,g=!1)=>{const x=g&&i?n:r;return m&&a.add(h),x.has(h)||x.add(h),h},cancel:h=>{r.delete(h),a.delete(h)},process:h=>{if(o=h,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,s&&(s=!1,d.process(h))}};return d}const mee=40;function f7(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=Gh.reduce((A,k)=>(A[k]=pee(s),A),{}),{setup:o,read:l,resolveKeyframes:d,preUpdate:h,update:m,preRender:g,render:b,postRender:x}=a,w=()=>{const A=Za.useManualTiming?i.timestamp:performance.now();n=!1,Za.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(A-i.timestamp,mee),1)),i.timestamp=A,i.isProcessing=!0,o.process(i),l.process(i),d.process(i),h.process(i),m.process(i),g.process(i),b.process(i),x.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(w))},S=()=>{n=!0,r=!0,i.isProcessing||e(w)};return{schedule:Gh.reduce((A,k)=>{const M=a[k];return A[k]=(R,K=!1,H=!1)=>(n||S(),M.schedule(R,K,H)),A},{}),cancel:A=>{for(let k=0;k<Gh.length;k++)a[Gh[k]].cancel(A)},state:i,steps:a}}const{schedule:Pn,cancel:Xa,state:xr,steps:h1}=f7(typeof requestAnimationFrame<"u"?requestAnimationFrame:es,!0);let xp;function gee(){xp=void 0}const oi={now:()=>(xp===void 0&&oi.set(xr.isProcessing||Za.useManualTiming?xr.timestamp:performance.now()),xp),set:e=>{xp=e,queueMicrotask(gee)}},d7=e=>t=>typeof t=="string"&&t.startsWith(e),d$=d7("--"),vee=d7("var(--"),h$=e=>vee(e)?yee.test(e.split("/*")[0].trim()):!1,yee=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Tc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},pd={...Tc,transform:e=>Ya(0,1,e)},Yh={...Tc,default:1},Gf=e=>Math.round(e*1e5)/1e5,p$=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function bee(e){return e==null}const $ee=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,m$=(e,t)=>n=>!!(typeof n=="string"&&$ee.test(n)&&n.startsWith(e)||t&&!bee(n)&&Object.prototype.hasOwnProperty.call(n,t)),h7=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,a,o]=r.match(p$);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(a),alpha:o!==void 0?parseFloat(o):1}},xee=e=>Ya(0,255,e),p1={...Tc,transform:e=>Math.round(xee(e))},Eu={test:m$("rgb","red"),parse:h7("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+p1.transform(e)+", "+p1.transform(t)+", "+p1.transform(n)+", "+Gf(pd.transform(r))+")"};function wee(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 Yb={test:m$("#"),parse:wee,transform:Eu.transform},zd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),bo=zd("deg"),oa=zd("%"),At=zd("px"),Cee=zd("vh"),Eee=zd("vw"),FA={...oa,parse:e=>oa.parse(e)/100,transform:e=>oa.transform(e*100)},Vl={test:m$("hsl","hue"),parse:h7("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+oa.transform(Gf(t))+", "+oa.transform(Gf(n))+", "+Gf(pd.transform(r))+")"},tr={test:e=>Eu.test(e)||Yb.test(e)||Vl.test(e),parse:e=>Eu.test(e)?Eu.parse(e):Vl.test(e)?Vl.parse(e):Yb.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Eu.transform(e):Vl.transform(e),getAnimatableNone:e=>{const t=tr.parse(e);return t.alpha=0,tr.transform(t)}},See=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Dee(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(p$))==null?void 0:t.length)||0)+(((n=e.match(See))==null?void 0:n.length)||0)>0}const p7="number",m7="color",Aee="var",Tee="var(",RA="${}",Pee=/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 md(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const o=t.replace(Pee,l=>(tr.test(l)?(r.color.push(s),i.push(m7),n.push(tr.parse(l))):l.startsWith(Tee)?(r.var.push(s),i.push(Aee),n.push(l)):(r.number.push(s),i.push(p7),n.push(parseFloat(l))),++s,RA)).split(RA);return{values:n,split:o,indexes:r,types:i}}function g7(e){return md(e).values}function v7(e){const{split:t,types:n}=md(e),r=t.length;return i=>{let s="";for(let a=0;a<r;a++)if(s+=t[a],i[a]!==void 0){const o=n[a];o===p7?s+=Gf(i[a]):o===m7?s+=tr.transform(i[a]):s+=i[a]}return s}}const _ee=e=>typeof e=="number"?0:tr.test(e)?tr.getAnimatableNone(e):e;function Mee(e){const t=g7(e);return v7(e)(t.map(_ee))}const Ro={test:Dee,parse:g7,createTransformer:v7,getAnimatableNone:Mee};function m1(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 Fee({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,a=0;if(!t)i=s=a=n;else{const o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;i=m1(l,o,e+1/3),s=m1(l,o,e),a=m1(l,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:r}}function sm(e,t){return n=>n>0?t:e}const Tn=(e,t,n)=>e+(t-e)*n,g1=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Ree=[Yb,Eu,Vl],kee=e=>Ree.find(t=>t.test(e));function kA(e){const t=kee(e);if(Ac(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Vl&&(n=Fee(n)),n}const OA=(e,t)=>{const n=kA(e),r=kA(t);if(!n||!r)return sm(e,t);const i={...n};return s=>(i.red=g1(n.red,r.red,s),i.green=g1(n.green,r.green,s),i.blue=g1(n.blue,r.blue,s),i.alpha=Tn(n.alpha,r.alpha,s),Eu.transform(i))},Zb=new Set(["none","hidden"]);function Oee(e,t){return Zb.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Iee(e,t){return n=>Tn(e,t,n)}function g$(e){return typeof e=="number"?Iee:typeof e=="string"?h$(e)?sm:tr.test(e)?OA:Vee:Array.isArray(e)?y7:typeof e=="object"?tr.test(e)?OA:Lee:sm}function y7(e,t){const n=[...e],r=n.length,i=e.map((s,a)=>g$(s)(s,t[a]));return s=>{for(let a=0;a<r;a++)n[a]=i[a](s);return n}}function Lee(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=g$(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function Bee(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],a=e.indexes[s][r[s]],o=e.values[a]??0;n[i]=o,r[s]++}return n}const Vee=(e,t)=>{const n=Ro.createTransformer(t),r=md(e),i=md(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?Zb.has(e)&&!i.values.length||Zb.has(t)&&!r.values.length?Oee(e,t):Ud(y7(Bee(r,i),i.values),n):(Ac(!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.`),sm(e,t))};function b7(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Tn(e,t,n):g$(e)(e,t)}const Nee=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Pn.update(t,n),stop:()=>Xa(t),now:()=>xr.isProcessing?xr.timestamp:oi.now()}},$7=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=Math.round(e(s/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},am=2e4;function v$(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<am;)t+=n,r=e.next(t);return t>=am?1/0:t}function jee(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(v$(r),am);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:aa(i)}}const Kee=5;function x7(e,t,n){const r=Math.max(t-Kee,0);return e7(n-e(r),t-r)}const Fn={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},v1=.001;function Uee({duration:e=Fn.duration,bounce:t=Fn.bounce,velocity:n=Fn.velocity,mass:r=Fn.mass}){let i,s;Ac(e<=Ss(Fn.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Ya(Fn.minDamping,Fn.maxDamping,a),e=Ya(Fn.minDuration,Fn.maxDuration,aa(e)),a<1?(i=d=>{const h=d*a,m=h*e,g=h-n,b=Xb(d,a),x=Math.exp(-m);return v1-g/b*x},s=d=>{const m=d*a*e,g=m*n+n,b=Math.pow(a,2)*Math.pow(d,2)*e,x=Math.exp(-m),w=Xb(Math.pow(d,2),a);return(-i(d)+v1>0?-1:1)*((g-b)*x)/w}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-v1+h*m},s=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const o=5/e,l=zee(i,s,o);if(e=Ss(e),isNaN(l))return{stiffness:Fn.stiffness,damping:Fn.damping,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const qee=12;function zee(e,t,n){let r=n;for(let i=1;i<qee;i++)r=r-e(r)/t(r);return r}function Xb(e,t){return e*Math.sqrt(1-t*t)}const Wee=["duration","bounce"],Hee=["stiffness","damping","mass"];function IA(e,t){return t.some(n=>e[n]!==void 0)}function Gee(e){let t={velocity:Fn.velocity,stiffness:Fn.stiffness,damping:Fn.damping,mass:Fn.mass,isResolvedFromDuration:!1,...e};if(!IA(e,Hee)&&IA(e,Wee))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Ya(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Fn.mass,stiffness:i,damping:s}}else{const n=Uee(e);t={...t,...n,mass:Fn.mass},t.isResolvedFromDuration=!0}return t}function om(e=Fn.visualDuration,t=Fn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],o={done:!1,value:s},{stiffness:l,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=Gee({...n,velocity:-aa(n.velocity||0)}),x=g||0,w=d/(2*Math.sqrt(l*h)),S=a-s,E=aa(Math.sqrt(l/h)),C=Math.abs(S)<5;r||(r=C?Fn.restSpeed.granular:Fn.restSpeed.default),i||(i=C?Fn.restDelta.granular:Fn.restDelta.default);let A;if(w<1){const M=Xb(E,w);A=R=>{const K=Math.exp(-w*E*R);return a-K*((x+w*E*S)/M*Math.sin(M*R)+S*Math.cos(M*R))}}else if(w===1)A=M=>a-Math.exp(-E*M)*(S+(x+E*S)*M);else{const M=E*Math.sqrt(w*w-1);A=R=>{const K=Math.exp(-w*E*R),H=Math.min(M*R,300);return a-K*((x+w*E*S)*Math.sinh(H)+M*S*Math.cosh(H))/M}}const k={calculatedDuration:b&&m||null,next:M=>{const R=A(M);if(b)o.done=M>=m;else{let K=M===0?x:0;w<1&&(K=M===0?Ss(x):x7(A,M,R));const H=Math.abs(K)<=r,le=Math.abs(a-R)<=i;o.done=H&&le}return o.value=o.done?a:R,o},toString:()=>{const M=Math.min(v$(k),am),R=$7(K=>k.next(M*K).value,M,30);return M+"ms "+R},toTransition:()=>{}};return k}om.applyToOptions=e=>{const t=jee(e,100,om);return e.ease=t.ease,e.duration=Ss(t.duration),e.type="keyframes",e};function Jb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=H=>o!==void 0&&H<o||l!==void 0&&H>l,x=H=>o===void 0?l:l===void 0||Math.abs(o-H)<Math.abs(l-H)?o:l;let w=n*t;const S=m+w,E=a===void 0?S:a(S);E!==S&&(w=E-m);const C=H=>-w*Math.exp(-H/r),A=H=>E+C(H),k=H=>{const le=C(H),ae=A(H);g.done=Math.abs(le)<=d,g.value=g.done?E:ae};let M,R;const K=H=>{b(g.value)&&(M=H,R=om({keyframes:[g.value,x(g.value)],velocity:x7(A,H,g.value),damping:i,stiffness:s,restDelta:d,restSpeed:h}))};return K(0),{calculatedDuration:null,next:H=>{let le=!1;return!R&&M===void 0&&(le=!0,k(H),K(H)),M!==void 0&&H>=M?R.next(H-M):(!le&&k(H),g)}}}function Yee(e,t,n){const r=[],i=n||Za.mix||b7,s=e.length-1;for(let a=0;a<s;a++){let o=i(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||es:t;o=Ud(l,o)}r.push(o)}return r}function w7(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Ts(s===t.length,"Both input and output ranges must be the same length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=Yee(t,r,i),l=o.length,d=h=>{if(a&&h<e[0])return t[0];let m=0;if(l>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=hd(e[m],e[m+1],h);return o[m](g)};return n?h=>d(Ya(e[0],e[s-1],h)):d}function Zee(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=hd(0,t,r);e.push(Tn(n,1,i))}}function Xee(e){const t=[0];return Zee(t,e.length-1),t}function Jee(e,t){return e.map(n=>n*t)}function Qee(e,t){return e.map(()=>t||l7).splice(0,e.length-1)}function Nl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=dee(r)?r.map(MA):MA(r),s={done:!1,value:t[0]},a=Jee(n&&n.length===t.length?n:Xee(t),e),o=w7(a,t,{ease:Array.isArray(i)?i:Qee(t,i)});return{calculatedDuration:e,next:l=>(s.value=o(l),s.done=l>=e,s)}}const ete=e=>e!==null;function y$(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(ete),o=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!o||r===void 0?s[o]:r}const tte={decay:Jb,inertia:Jb,tween:Nl,keyframes:Nl,spring:om};function C7(e){typeof e.type=="string"&&(e.type=tte[e.type])}let b$=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}};const nte=e=>e/100;let $$=class extends b${constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==oi.now()&&this.tick(oi.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;C7(t);const{type:n=Nl,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:a=0}=t;let{keyframes:o}=t;const l=n||Nl;process.env.NODE_ENV!=="production"&&l!==Nl&&Ts(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`),l!==Nl&&typeof o[0]!="number"&&(this.mixKeyframes=Ud(nte,b7(o[0],o[1])),o=[0,100]);const d=l({...t,keyframes:o});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...o].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=v$(d));const{calculatedDuration:h}=d;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:h,repeat:m,repeatType:g,repeatDelay:b,type:x,onUpdate:w,finalKeyframe:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const E=this.currentTime-d*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?E<0:E>i;this.currentTime=Math.max(E,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let A=this.currentTime,k=r;if(m){const H=Math.min(this.currentTime,i)/o;let le=Math.floor(H),ae=H%1;!ae&&H>=1&&(ae=1),ae===1&&le--,le=Math.min(le,m+1),!!(le%2)&&(g==="reverse"?(ae=1-ae,b&&(ae-=b/o)):g==="mirror"&&(k=a)),A=Ya(0,1,ae)*o}const M=C?{done:!1,value:h[0]}:k.next(A);s&&(M.value=s(M.value));let{done:R}=M;!C&&l!==null&&(R=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const K=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return K&&x!==Jb&&(M.value=y$(h,this.options,S,this.speed)),w&&w(M.value),K&&this.finish(),M}then(t,n){return this.finished.then(t,n)}get duration(){return aa(this.calculatedDuration)}get time(){return aa(this.currentTime)}set time(t){var n;t=Ss(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(oi.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=aa(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=Nee,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(oi.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}};function rte(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Su=e=>e*180/Math.PI,Qb=e=>{const t=Su(Math.atan2(e[1],e[0]));return e4(t)},ite={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Qb,rotateZ:Qb,skewX:e=>Su(Math.atan(e[1])),skewY:e=>Su(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},e4=e=>(e=e%360,e<0&&(e+=360),e),LA=Qb,BA=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),VA=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ste={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:BA,scaleY:VA,scale:e=>(BA(e)+VA(e))/2,rotateX:e=>e4(Su(Math.atan2(e[6],e[5]))),rotateY:e=>e4(Su(Math.atan2(-e[2],e[0]))),rotateZ:LA,rotate:LA,skewX:e=>Su(Math.atan(e[4])),skewY:e=>Su(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function t4(e){return e.includes("scale")?1:0}function n4(e,t){if(!e||e==="none")return t4(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=ste,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=ite,i=o}if(!i)return t4(t);const s=r[t],a=i[1].split(",").map(ote);return typeof s=="function"?s(a):a[s]}const ate=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return n4(n,t)};function ote(e){return parseFloat(e.trim())}const Pc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_c=new Set(Pc),NA=e=>e===Tc||e===At,ute=new Set(["x","y","z"]),lte=Pc.filter(e=>!ute.has(e));function cte(e){const t=[];return lte.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Mu={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})=>n4(t,"x"),y:(e,{transform:t})=>n4(t,"y")};Mu.translateX=Mu.x;Mu.translateY=Mu.y;const Fu=new Set;let r4=!1,i4=!1,s4=!1;function E7(){if(i4){const e=Array.from(Fu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=cte(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(([s,a])=>{var o;(o=r.getValue(s))==null||o.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}i4=!1,r4=!1,Fu.forEach(e=>e.complete(s4)),Fu.clear()}function S7(){Fu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(i4=!0)})}function fte(){s4=!0,S7(),E7(),s4=!1}let x$=class{constructor(t,n,r,i,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(Fu.add(this),r4||(r4=!0,Pn.read(S7),Pn.resolveKeyframes(E7))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const o=r.readValue(n,a);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=a),i&&s===void 0&&i.set(t[0])}rte(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Fu.delete(this)}cancel(){this.state==="scheduled"&&(Fu.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};const dte=e=>e.startsWith("--");function hte(e,t,n){dte(t)?e.style.setProperty(t,n):e.style[t]=n}const pte=o$(()=>window.ScrollTimeline!==void 0),mte={};function gte(e,t){const n=o$(e);return()=>mte[t]??n()}const D7=gte(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),jf=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,jA={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jf([0,.65,.55,1]),circOut:jf([.55,0,1,.45]),backIn:jf([.31,.01,.66,-.59]),backOut:jf([.33,1.53,.69,.99])};function A7(e,t){if(e)return typeof e=="function"?D7()?$7(e,t):"ease-out":c7(e)?jf(e):Array.isArray(e)?e.map(n=>A7(n,t)||jA.easeOut):jA[e]}function vte(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:l}={},d=void 0){const h={[t]:n};l&&(h.offset=l);const m=A7(o,i);Array.isArray(m)&&(h.easing=m);const g={delay:r,duration:i,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"};return d&&(g.pseudoElement=d),e.animate(h,g)}function T7(e){return typeof e=="function"&&"applyToOptions"in e}function yte({type:e,...t}){return T7(e)&&D7()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}let bte=class extends b${constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:o,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,Ts(typeof t.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);const d=yte(t);this.animation=vte(n,r,i,d,s),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const h=y$(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(h):hte(n,r,h),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return aa(Number(t))}get time(){return aa(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ss(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&pte()?(this.animation.timeline=t,es):n(this)}};const P7={anticipate:a7,backInOut:s7,circInOut:u7};function $te(e){return e in P7}function xte(e){typeof e.ease=="string"&&$te(e.ease)&&(e.ease=P7[e.ease])}const KA=10;let wte=class extends bte{constructor(t){xte(t),C7(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new $$({...a,autoplay:!1}),l=Ss(this.finishedTime??this.time);n.setWithVelocity(o.sample(l-KA).value,o.sample(l).value,KA),o.stop()}};const UA=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ro.test(e)||e==="0")&&!e.startsWith("url("));function Cte(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 Ete(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=UA(i,t),o=UA(s,t);return Ac(a===o,`You are trying to animate ${t} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`),!a||!o?!1:Cte(e)||(n==="spring"||T7(n))&&r}function _7(e){return Jk(e)&&"offsetHeight"in e}const Ste=new Set(["opacity","clipPath","filter","transform"]),Dte=o$(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Ate(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:a}=e;if(!_7((d=t==null?void 0:t.owner)==null?void 0:d.current))return!1;const{onUpdate:o,transformTemplate:l}=t.owner.getProps();return Dte()&&n&&Ste.has(n)&&(n!=="transform"||!l)&&!o&&!r&&i!=="mirror"&&s!==0&&a!=="inertia"}const Tte=40;let Pte=class extends b${constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",keyframes:o,name:l,motionValue:d,element:h,...m}){var x;super(),this.stop=()=>{var w,S;this._animation&&(this._animation.stop(),(w=this.stopTimeline)==null||w.call(this)),(S=this.keyframeResolver)==null||S.cancel()},this.createdAt=oi.now();const g={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:a,name:l,motionValue:d,element:h,...m},b=(h==null?void 0:h.KeyframeResolver)||x$;this.keyframeResolver=new b(o,(w,S,E)=>this.onKeyframesResolved(w,S,g,!E),l,d,h),(x=this.keyframeResolver)==null||x.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:a,velocity:o,delay:l,isHandoff:d,onUpdate:h}=r;this.resolvedAt=oi.now(),Ete(t,s,a,o)||((Za.instantAnimations||!l)&&(h==null||h(y$(t,r,n))),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const g={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Tte?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!d&&Ate(g)?new wte({...g,element:g.motionValue.owner.current}):new $$(g);b.finished.then(()=>this.notifyFinished()).catch(es),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),fte()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}};const _te=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Mte(e){const t=_te.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const Fte=4;function M7(e,t,n=1){Ts(n<=Fte,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=Mte(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const a=s.trim();return Xk(a)?parseFloat(a):a}return h$(i)?M7(i,t,n+1):i}function w$(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const F7=new Set(["width","height","top","left","right","bottom",...Pc]),Rte={test:e=>e==="auto",parse:e=>e},R7=e=>t=>t.test(e),k7=[Tc,At,oa,bo,Eee,Cee,Rte],qA=e=>k7.find(R7(e));function kte(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Qk(e):!0}const Ote=new Set(["brightness","contrast","saturate","opacity"]);function Ite(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(p$)||[];if(!r)return e;const i=n.replace(r,"");let s=Ote.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Lte=/\b([a-z-]*)\(.*?\)/gu,a4={...Ro,getAnimatableNone:e=>{const t=e.match(Lte);return t?t.map(Ite).join(" "):e}},zA={...Tc,transform:Math.round},Bte={rotate:bo,rotateX:bo,rotateY:bo,rotateZ:bo,scale:Yh,scaleX:Yh,scaleY:Yh,scaleZ:Yh,skew:bo,skewX:bo,skewY:bo,distance:At,translateX:At,translateY:At,translateZ:At,x:At,y:At,z:At,perspective:At,transformPerspective:At,opacity:pd,originX:FA,originY:FA,originZ:At},C$={borderWidth:At,borderTopWidth:At,borderRightWidth:At,borderBottomWidth:At,borderLeftWidth:At,borderRadius:At,radius:At,borderTopLeftRadius:At,borderTopRightRadius:At,borderBottomRightRadius:At,borderBottomLeftRadius:At,width:At,maxWidth:At,height:At,maxHeight:At,top:At,right:At,bottom:At,left:At,padding:At,paddingTop:At,paddingRight:At,paddingBottom:At,paddingLeft:At,margin:At,marginTop:At,marginRight:At,marginBottom:At,marginLeft:At,backgroundPositionX:At,backgroundPositionY:At,...Bte,zIndex:zA,fillOpacity:pd,strokeOpacity:pd,numOctaves:zA},Vte={...C$,color:tr,backgroundColor:tr,outlineColor:tr,fill:tr,stroke:tr,borderColor:tr,borderTopColor:tr,borderRightColor:tr,borderBottomColor:tr,borderLeftColor:tr,filter:a4,WebkitFilter:a4},O7=e=>Vte[e];function I7(e,t){let n=O7(e);return n!==a4&&(n=Ro),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Nte=new Set(["auto","none","0"]);function jte(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!Nte.has(s)&&md(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=I7(n,i)}let Kte=class extends x${constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let d=t[l];if(typeof d=="string"&&(d=d.trim(),h$(d))){const h=M7(d,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!F7.has(r)||t.length!==2)return;const[i,s]=t,a=qA(i),o=qA(s);if(a!==o)if(NA(a)&&NA(o))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else Mu[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||kte(t[i]))&&r.push(i);r.length&&jte(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=Mu[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 o;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,a=r[s];r[s]=Mu[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),(o=this.removedTransforms)!=null&&o.length&&this.removedTransforms.forEach(([l,d])=>{t.getValue(l).set(d)}),this.resolveNoneKeyframes()}};function Ute(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const L7=(e,t)=>t&&typeof e=="number"?t.transform(e):e,WA=30,qte=e=>!isNaN(parseFloat(e)),Yf={current:void 0};let zte=class{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{var a,o;const s=oi.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((a=this.events.change)==null||a.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty();i&&((o=this.events.renderRequest)==null||o.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=oi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=qte(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&l$(!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 u$);const r=this.events[t].add(n);return t==="change"?()=>{r(),Pn.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()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Yf.current&&Yf.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=oi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>WA)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,WA);return e7(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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Wu(e,t){return new zte(e,t)}const{schedule:E$}=f7(queueMicrotask,!1),ys={x:!1,y:!1};function B7(){return ys.x||ys.y}function Wte(e){return e==="x"||e==="y"?ys[e]?null:(ys[e]=!0,()=>{ys[e]=!1}):ys.x||ys.y?null:(ys.x=ys.y=!0,()=>{ys.x=ys.y=!1})}function V7(e,t){const n=Ute(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function HA(e){return!(e.pointerType==="touch"||B7())}function Hte(e,t,n={}){const[r,i,s]=V7(e,n),a=o=>{if(!HA(o))return;const{target:l}=o,d=t(l,o);if(typeof d!="function"||!l)return;const h=m=>{HA(m)&&(d(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(o=>{o.addEventListener("pointerenter",a,i)}),s}const N7=(e,t)=>t?e===t?!0:N7(e,t.parentElement):!1,S$=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Gte=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Yte(e){return Gte.has(e.tagName)||e.tabIndex!==-1}const wp=new WeakSet;function GA(e){return t=>{t.key==="Enter"&&e(t)}}function y1(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Zte=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=GA(()=>{if(wp.has(n))return;y1(n,"down");const i=GA(()=>{y1(n,"up")}),s=()=>y1(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function YA(e){return S$(e)&&!B7()}function Xte(e,t,n={}){const[r,i,s]=V7(e,n),a=o=>{const l=o.currentTarget;if(!YA(o))return;wp.add(l);const d=t(l,o),h=(b,x)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),wp.has(l)&&wp.delete(l),YA(b)&&typeof d=="function"&&d(b,{success:x})},m=b=>{h(b,l===window||l===document||n.useGlobalTarget||N7(l,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",a,i),_7(o)&&(o.addEventListener("focus",d=>Zte(d,i)),!Yte(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),s}function j7(e){return Jk(e)&&"ownerSVGElement"in e}function Jte(e){return j7(e)&&e.tagName==="svg"}function Qte(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],s=e[2+n],a=e[3+n],o=w7(i,s,a);return t?o(r):o}const wr=e=>!!(e&&e.getVelocity),ene=[...k7,tr,Ro],tne=e=>ene.find(R7(e)),D$=T.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function nne(e=!0){const t=T.useContext(i$);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=T.useId();T.useEffect(()=>{if(e)return i(s)},[e]);const a=T.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,a]:[!0]}const K7=T.createContext({strict:!1}),ZA={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"]},pc={};for(const e in ZA)pc[e]={isEnabled:t=>ZA[e].some(n=>!!t[n])};function rne(e){for(const t in e)pc[t]={...pc[t],...e[t]}}const ine=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 um(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ine.has(e)}let U7=e=>!um(e);function sne(e){typeof e=="function"&&(U7=t=>t.startsWith("on")?!um(t):e(t))}try{sne(require("@emotion/is-prop-valid").default)}catch{}function ane(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(U7(i)||n===!0&&um(i)||!t&&!um(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function one(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&l$(!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 sg=T.createContext({});function ag(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function gd(e){return typeof e=="string"||Array.isArray(e)}const A$=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],T$=["initial",...A$];function og(e){return ag(e.animate)||T$.some(t=>gd(e[t]))}function q7(e){return!!(og(e)||e.variants)}function une(e,t){if(og(e)){const{initial:n,animate:r}=e;return{initial:n===!1||gd(n)?n:void 0,animate:gd(r)?r:void 0}}return e.inherit!==!1?t:{}}function lne(e){const{initial:t,animate:n}=une(e,T.useContext(sg));return T.useMemo(()=>({initial:t,animate:n}),[XA(t),XA(n)])}function XA(e){return Array.isArray(e)?e.join(" "):e}const cne=Symbol.for("motionComponentSymbol");function jl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function fne(e,t,n){return T.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):jl(n)&&(n.current=r))},[t])}const P$=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),dne="framerAppearId",z7="data-"+P$(dne),W7=T.createContext({});function hne(e,t,n,r,i){var w,S;const{visualElement:s}=T.useContext(sg),a=T.useContext(K7),o=T.useContext(i$),l=T.useContext(D$).reducedMotion,d=T.useRef(null);r=r||a.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:l}));const h=d.current,m=T.useContext(W7);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&pne(d.current,n,i,m);const g=T.useRef(!1);T.useInsertionEffect(()=>{h&&g.current&&h.update(n,o)});const b=n[z7],x=T.useRef(!!b&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,b))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,b)));return Zk(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),E$.render(h.render),x.current&&h.animationState&&h.animationState.animateChanges())}),T.useEffect(()=>{h&&(!x.current&&h.animationState&&h.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)==null||E.call(window,b)}),x.current=!1))}),h}function pne(e,t,n,r){const{layoutId:i,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:d,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:H7(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!a||o&&jl(o),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:d})}function H7(e){if(e)return e.options.allowProjection!==!1?e.projection:H7(e.parent)}function mne({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&rne(e);function s(o,l){let d;const h={...T.useContext(D$),...o,layoutId:gne(o)},{isStatic:m}=h,g=lne(o),b=r(o,m);if(!m&&r$){vne(h,e);const x=yne(h);d=x.MeasureLayout,g.visualElement=hne(i,b,h,t,x.ProjectionNode)}return la.jsxs(sg.Provider,{value:g,children:[d&&g.visualElement?la.jsx(d,{visualElement:g.visualElement,...h}):null,n(i,o,fne(b,g.visualElement,l),b,m,g.visualElement)]})}s.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const a=T.forwardRef(s);return a[cne]=i,a}function gne({layoutId:e}){const t=T.useContext(Yk).id;return t&&e!==void 0?t+"-"+e:e}function vne(e,t){const n=T.useContext(K7).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?Ac(!1,r):Ts(!1,r)}}function yne(e){const{drag:t,layout:n}=pc;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 vd={};function bne(e){for(const t in e)vd[t]=e[t],d$(t)&&(vd[t].isCSSVariable=!0)}function G7(e,{layout:t,layoutId:n}){return _c.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!vd[e]||e==="opacity")}const $ne={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},xne=Pc.length;function wne(e,t,n){let r="",i=!0;for(let s=0;s<xne;s++){const a=Pc[s],o=e[a];if(o===void 0)continue;let l=!0;if(typeof o=="number"?l=o===(a.startsWith("scale")?1:0):l=parseFloat(o)===0,!l||n){const d=L7(o,C$[a]);if(!l){i=!1;const h=$ne[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function _$(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let a=!1,o=!1;for(const l in t){const d=t[l];if(_c.has(l)){a=!0;continue}else if(d$(l)){i[l]=d;continue}else{const h=L7(d,C$[l]);l.startsWith("origin")?(o=!0,s[l]=h):r[l]=h}}if(t.transform||(a||n?r.transform=wne(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:l="50%",originY:d="50%",originZ:h=0}=s;r.transformOrigin=`${l} ${d} ${h}`}}const M$=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Y7(e,t,n){for(const r in t)!wr(t[r])&&!G7(r,n)&&(e[r]=t[r])}function Cne({transformTemplate:e},t){return T.useMemo(()=>{const n=M$();return _$(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Ene(e,t){const n=e.style||{},r={};return Y7(r,n,e),Object.assign(r,Cne(e,t)),r}function Sne(e,t){const n={},r=Ene(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 Dne={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ane={offset:"strokeDashoffset",array:"strokeDasharray"};function Tne(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?Dne:Ane;e[s.offset]=At.transform(-r);const a=At.transform(t),o=At.transform(n);e[s.array]=`${a} ${o}`}function Z7(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:a=0,...o},l,d,h){if(_$(e,o,d),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g}=e;m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=(h==null?void 0:h.transformBox)??"fill-box",delete m.transformBox),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),i!==void 0&&Tne(m,i,s,a,!1)}const X7=()=>({...M$(),attrs:{}}),J7=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Pne(e,t,n,r){const i=T.useMemo(()=>{const s=X7();return Z7(s,t,J7(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Y7(s,e.style,e),i.style={...s,...i.style}}return i}const _ne=["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 F$(e){return typeof e!="string"||e.includes("-")?!1:!!(_ne.indexOf(e)>-1||/[A-Z]/u.test(e))}function Mne(e=!1){return(n,r,i,{latestValues:s},a)=>{const l=(F$(n)?Pne:Sne)(r,s,a,n),d=ane(r,typeof n=="string",e),h=n!==T.Fragment?{...d,...l,ref:i}:{},{children:m}=r,g=T.useMemo(()=>wr(m)?m.get():m,[m]);return T.createElement(n,{...h,children:g})}}function JA(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function R$(e,t,n,r){if(typeof t=="function"){const[i,s]=JA(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=JA(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function Cp(e){return wr(e)?e.get():e}function Fne({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Rne(n,r,i,e),renderState:t()}}const Q7=e=>(t,n)=>{const r=T.useContext(sg),i=T.useContext(i$),s=()=>Fne(e,t,r,i);return n?s():Kd(s)};function Rne(e,t,n,r){const i={},s=r(e,{});for(const g in s)i[g]=Cp(s[g]);let{initial:a,animate:o}=e;const l=og(e),d=q7(e);t&&d&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),o===void 0&&(o=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const m=h?o:a;if(m&&typeof m!="boolean"&&!ag(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const x=R$(e,g[b]);if(x){const{transitionEnd:w,transition:S,...E}=x;for(const C in E){let A=E[C];if(Array.isArray(A)){const k=h?A.length-1:0;A=A[k]}A!==null&&(i[C]=A)}for(const C in w)i[C]=w[C]}}}return i}function k$(e,t,n){var s;const{style:r}=e,i={};for(const a in r)(wr(r[a])||t.style&&wr(t.style[a])||G7(a,e)||((s=n==null?void 0:n.getValue(a))==null?void 0:s.liveStyle)!==void 0)&&(i[a]=r[a]);return i}const kne={useVisualState:Q7({scrapeMotionValuesFromProps:k$,createRenderState:M$})};function eO(e,t,n){const r=k$(e,t,n);for(const i in e)if(wr(e[i])||wr(t[i])){const s=Pc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const One={useVisualState:Q7({scrapeMotionValuesFromProps:eO,createRenderState:X7})};function Ine(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...F$(r)?One:kne,preloadedFeatures:e,useRender:Mne(i),createVisualElement:t,Component:r};return mne(a)}}function yd(e,t,n){const r=e.getProps();return R$(r,t,n!==void 0?n:r.custom,e)}const o4=e=>Array.isArray(e);function Lne(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Wu(n))}function Bne(e){return o4(e)?e[e.length-1]||0:e}function Vne(e,t){const n=yd(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const a in s){const o=Bne(s[a]);Lne(e,a,o)}}function Nne(e){return!!(wr(e)&&e.add)}function u4(e,t){const n=e.getValue("willChange");if(Nne(n))return n.add(t);if(!n&&Za.WillChange){const r=new Za.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function tO(e){return e.props[z7]}const jne=e=>e!==null;function Kne(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(jne),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const Une={type:"spring",stiffness:500,damping:25,restSpeed:10},qne=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),zne={type:"keyframes",duration:.8},Wne={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Hne=(e,{keyframes:t})=>t.length>2?zne:_c.has(e)?e.startsWith("scale")?qne(t[1]):Une:Wne;function Gne({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:d,...h}){return!!Object.keys(h).length}const O$=(e,t,n,r={},i,s)=>a=>{const o=w$(r,e)||{},l=o.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Ss(l);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-d,onUpdate:g=>{t.set(g),o.onUpdate&&o.onUpdate(g)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:i};Gne(o)||Object.assign(h,Hne(e,h)),h.duration&&(h.duration=Ss(h.duration)),h.repeatDelay&&(h.repeatDelay=Ss(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)),(Za.instantAnimations||Za.skipAnimations)&&(m=!0,h.duration=0,h.delay=0),h.allowFlatten=!o.type&&!o.ease,m&&!s&&t.get()!==void 0){const g=Kne(h.keyframes,o);if(g!==void 0){Pn.update(()=>{h.onUpdate(g),h.onComplete()});return}}return o.isSync?new $$(h):new Pte(h)};function Yne({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function nO(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:a,...o}=t;r&&(s=r);const l=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in o){const m=e.getValue(h,e.latestValues[h]??null),g=o[h];if(g===void 0||d&&Yne(d,h))continue;const b={delay:n,...w$(s||{},h)},x=m.get();if(x!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===x&&!b.velocity)continue;let w=!1;if(window.MotionHandoffAnimation){const E=tO(e);if(E){const C=window.MotionHandoffAnimation(E,h,Pn);C!==null&&(b.startTime=C,w=!0)}}u4(e,h),m.start(O$(h,m,g,e.shouldReduceMotion&&F7.has(h)?{type:!1}:b,e,w));const S=m.animation;S&&l.push(S)}return a&&Promise.all(l).then(()=>{Pn.update(()=>{a&&Vne(e,a)})}),l}function l4(e,t,n={}){var l;const r=yd(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(nO(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return Zne(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[d,h]=o==="beforeChildren"?[s,a]:[a,s];return d().then(()=>h())}else return Promise.all([s(),a(n.delay)])}function Zne(e,t,n=0,r=0,i=1,s){const a=[],o=(e.variantChildren.size-1)*r,l=i===1?(d=0)=>d*r:(d=0)=>o-d*r;return Array.from(e.variantChildren).sort(Xne).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(l4(d,t,{...s,delay:n+l(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function Xne(e,t){return e.sortNodePosition(t)}function Jne(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>l4(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=l4(e,t,n);else{const i=typeof t=="function"?yd(e,t,n.custom):t;r=Promise.all(nO(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function rO(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 Qne=T$.length;function iO(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?iO(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Qne;n++){const r=T$[n],i=e.props[r];(gd(i)||i===!1)&&(t[r]=i)}return t}const ere=[...A$].reverse(),tre=A$.length;function nre(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Jne(e,n,r)))}function rre(e){let t=nre(e),n=QA(),r=!0;const i=l=>(d,h)=>{var g;const m=yd(e,h,l==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:b,transitionEnd:x,...w}=m;d={...d,...w,...x}}return d};function s(l){t=l(e)}function a(l){const{props:d}=e,h=iO(e.parent)||{},m=[],g=new Set;let b={},x=1/0;for(let S=0;S<tre;S++){const E=ere[S],C=n[E],A=d[E]!==void 0?d[E]:h[E],k=gd(A),M=E===l?C.isActive:null;M===!1&&(x=S);let R=A===h[E]&&A!==d[E]&&k;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),C.protectedKeys={...b},!C.isActive&&M===null||!A&&!C.prevProp||ag(A)||typeof A=="boolean")continue;const K=ire(C.prevProp,A);let H=K||E===l&&C.isActive&&!R&&k||S>x&&k,le=!1;const ae=Array.isArray(A)?A:[A];let I=ae.reduce(i(E),{});M===!1&&(I={});const{prevResolvedValues:$e={}}=C,we={...$e,...I},W=L=>{H=!0,g.has(L)&&(le=!0,g.delete(L)),C.needsAnimating[L]=!0;const B=e.getValue(L);B&&(B.liveStyle=!1)};for(const L in we){const B=I[L],he=$e[L];if(b.hasOwnProperty(L))continue;let U=!1;o4(B)&&o4(he)?U=!rO(B,he):U=B!==he,U?B!=null?W(L):g.add(L):B!==void 0&&g.has(L)?W(L):C.protectedKeys[L]=!0}C.prevProp=A,C.prevResolvedValues=I,C.isActive&&(b={...b,...I}),r&&e.blockInitialAnimation&&(H=!1),H&&(!(R&&K)||le)&&m.push(...ae.map(L=>({animation:L,options:{type:E}})))}if(g.size){const S={};if(typeof d.initial!="boolean"){const E=yd(e,Array.isArray(d.initial)?d.initial[0]:d.initial);E&&E.transition&&(S.transition=E.transition)}g.forEach(E=>{const C=e.getBaseTarget(E),A=e.getValue(E);A&&(A.liveStyle=!0),S[E]=C??null}),m.push({animation:S})}let w=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(m):Promise.resolve()}function o(l,d){var m;if(n[l].isActive===d)return Promise.resolve();(m=e.variantChildren)==null||m.forEach(g=>{var b;return(b=g.animationState)==null?void 0:b.setActive(l,d)}),n[l].isActive=d;const h=a(l);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:a,setActive:o,setAnimateFunction:s,getState:()=>n,reset:()=>{n=QA(),r=!0}}}function ire(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!rO(t,e):!1}function du(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function QA(){return{animate:du(!0),whileInView:du(),whileHover:du(),whileTap:du(),whileDrag:du(),whileFocus:du(),exit:du()}}let Bo=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},sre=class extends Bo{constructor(t){super(t),t.animationState||(t.animationState=rre(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ag(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.call(this)}},are=0,ore=class extends Bo{constructor(){super(...arguments),this.id=are++}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 ure={animation:{Feature:sre},exit:{Feature:ore}};function bd(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Wd(e){return{point:{x:e.pageX,y:e.pageY}}}const lre=e=>t=>S$(t)&&e(t,Wd(t));function Zf(e,t,n,r){return bd(e,t,lre(n),r)}function sO({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function cre({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function fre(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 aO=1e-4,dre=1-aO,hre=1+aO,oO=.01,pre=0-oO,mre=0+oO;function qr(e){return e.max-e.min}function gre(e,t,n){return Math.abs(e-t)<=n}function eT(e,t,n,r=.5){e.origin=r,e.originPoint=Tn(t.min,t.max,e.origin),e.scale=qr(n)/qr(t),e.translate=Tn(n.min,n.max,e.origin)-e.originPoint,(e.scale>=dre&&e.scale<=hre||isNaN(e.scale))&&(e.scale=1),(e.translate>=pre&&e.translate<=mre||isNaN(e.translate))&&(e.translate=0)}function Xf(e,t,n,r){eT(e.x,t.x,n.x,r?r.originX:void 0),eT(e.y,t.y,n.y,r?r.originY:void 0)}function tT(e,t,n){e.min=n.min+t.min,e.max=e.min+qr(t)}function vre(e,t,n){tT(e.x,t.x,n.x),tT(e.y,t.y,n.y)}function nT(e,t,n){e.min=t.min-n.min,e.max=e.min+qr(t)}function Jf(e,t,n){nT(e.x,t.x,n.x),nT(e.y,t.y,n.y)}const rT=()=>({translate:0,scale:1,origin:0,originPoint:0}),Kl=()=>({x:rT(),y:rT()}),iT=()=>({min:0,max:0}),Gn=()=>({x:iT(),y:iT()});function qi(e){return[e("x"),e("y")]}function b1(e){return e===void 0||e===1}function c4({scale:e,scaleX:t,scaleY:n}){return!b1(e)||!b1(t)||!b1(n)}function pu(e){return c4(e)||uO(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function uO(e){return sT(e.x)||sT(e.y)}function sT(e){return e&&e!=="0%"}function lm(e,t,n){const r=e-n,i=t*r;return n+i}function aT(e,t,n,r,i){return i!==void 0&&(e=lm(e,i,r)),lm(e,n,r)+t}function f4(e,t=0,n=1,r,i){e.min=aT(e.min,t,n,r,i),e.max=aT(e.max,t,n,r,i)}function lO(e,{x:t,y:n}){f4(e.x,t.translate,t.scale,t.originPoint),f4(e.y,n.translate,n.scale,n.originPoint)}const oT=.999999999999,uT=1.0000000000001;function yre(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,a;for(let o=0;o<i;o++){s=n[o],a=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&ql(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,lO(e,a)),r&&pu(s.latestValues)&&ql(e,s.latestValues))}t.x<uT&&t.x>oT&&(t.x=1),t.y<uT&&t.y>oT&&(t.y=1)}function Ul(e,t){e.min=e.min+t,e.max=e.max+t}function lT(e,t,n,r,i=.5){const s=Tn(e.min,e.max,i);f4(e,t,n,s,r)}function ql(e,t){lT(e.x,t.x,t.scaleX,t.scale,t.originX),lT(e.y,t.y,t.scaleY,t.scale,t.originY)}function cO(e,t){return sO(fre(e.getBoundingClientRect(),t))}function bre(e,t,n){const r=cO(e,n),{scroll:i}=t;return i&&(Ul(r.x,i.offset.x),Ul(r.y,i.offset.y)),r}const fO=({current:e})=>e?e.ownerDocument.defaultView:null,cT=(e,t)=>Math.abs(e-t);function $re(e,t){const n=cT(e.x,t.x),r=cT(e.y,t.y);return Math.sqrt(n**2+r**2)}class dO{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!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=x1(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,b=$re(m.offset,{x:0,y:0})>=3;if(!g&&!b)return;const{point:x}=m,{timestamp:w}=xr;this.history.push({...x,timestamp:w});const{onStart:S,onMove:E}=this.handlers;g||(S&&S(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),E&&E(this.lastMoveEvent,m)},this.handlePointerMove=(m,g)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=$1(g,this.transformPagePoint),Pn.update(this.updatePoint,!0)},this.handlePointerUp=(m,g)=>{this.end();const{onEnd:b,onSessionEnd:x,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=x1(m.type==="pointercancel"?this.lastMoveEventInfo:$1(g,this.transformPagePoint),this.history);this.startEvent&&b&&b(m,S),x&&x(m,S)},!S$(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Wd(t),o=$1(a,this.transformPagePoint),{point:l}=o,{timestamp:d}=xr;this.history=[{...l,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,x1(o,this.history)),this.removeListeners=Ud(Zf(this.contextWindow,"pointermove",this.handlePointerMove),Zf(this.contextWindow,"pointerup",this.handlePointerUp),Zf(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Xa(this.updatePoint)}}function $1(e,t){return t?{point:t(e.point)}:e}function fT(e,t){return{x:e.x-t.x,y:e.y-t.y}}function x1({point:e},t){return{point:e,delta:fT(e,hO(t)),offset:fT(e,xre(t)),velocity:wre(t,.1)}}function xre(e){return e[0]}function hO(e){return e[e.length-1]}function wre(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=hO(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ss(t)));)n--;if(!r)return{x:0,y:0};const s=aa(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const a={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Cre(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Tn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Tn(n,e,r.max):Math.min(e,n)),e}function dT(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 Ere(e,{top:t,left:n,bottom:r,right:i}){return{x:dT(e.x,n,i),y:dT(e.y,t,r)}}function hT(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 Sre(e,t){return{x:hT(e.x,t.x),y:hT(e.y,t.y)}}function Dre(e,t){let n=.5;const r=qr(e),i=qr(t);return i>r?n=hd(t.min,t.max-r,e.min):r>i&&(n=hd(e.min,e.max-i,t.min)),Ya(0,1,n)}function Are(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 d4=.35;function Tre(e=d4){return e===!1?e=0:e===!0&&(e=d4),{x:pT(e,"left","right"),y:pT(e,"top","bottom")}}function pT(e,t,n){return{min:mT(e,t),max:mT(e,n)}}function mT(e,t){return typeof e=="number"?e:e[t]||0}const Pre=new WeakMap;class _re{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=Gn(),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(Wd(h).point)},s=(h,m)=>{const{drag:g,dragPropagation:b,onDragStart:x}=this.getProps();if(g&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Wte(g),!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),qi(S=>{let E=this.getAxisMotionValue(S).get()||0;if(oa.test(E)){const{projection:C}=this.visualElement;if(C&&C.layout){const A=C.layout.layoutBox[S];A&&(E=qr(A)*(parseFloat(E)/100))}}this.originPoint[S]=E}),x&&Pn.postRender(()=>x(h,m)),u4(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:g,dragDirectionLock:b,onDirectionLock:x,onDrag:w}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:S}=m;if(b&&this.currentDirection===null){this.currentDirection=Mre(S),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",m.point,S),this.updateAxis("y",m.point,S),this.visualElement.render(),w&&w(h,m)},o=(h,m)=>this.stop(h,m),l=()=>qi(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)==null?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new dO(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:fO(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&Pn.postRender(()=>s(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||!Zh(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=Cre(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,i=this.constraints;t&&jl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Ere(r.layoutBox,t):this.constraints=!1,this.elastic=Tre(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&qi(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=Are(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!jl(t))return!1;const r=t.current;Ts(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 s=bre(r,i.root,this.visualElement.getTransformPagePoint());let a=Sre(i.layout.layoutBox,s);if(n){const o=n(cre(a));this.hasMutatedConstraints=!!o,o&&(a=sO(o))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},d=qi(h=>{if(!Zh(h,n,this.currentDirection))return;let m=l&&l[h]||{};a&&(m={min:0,max:0});const g=i?200:1e6,b=i?40:1e7,x={type:"inertia",velocity:r?t[h]:0,bounceStiffness:g,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...s,...m};return this.startAxisValueAnimation(h,x)});return Promise.all(d).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return u4(this.visualElement,t),r.start(O$(t,r,0,n,this.visualElement,!1))}stopAnimation(){qi(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){qi(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?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){qi(n=>{const{drag:r}=this.getProps();if(!Zh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:o}=i.layout.layoutBox[n];s.set(t[n]-Tn(a,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!jl(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};qi(a=>{const o=this.getAxisMotionValue(a);if(o&&this.constraints!==!1){const l=o.get();i[a]=Dre({min:l,max:l},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),qi(a=>{if(!Zh(a,t,null))return;const o=this.getAxisMotionValue(a),{min:l,max:d}=this.constraints[a];o.set(Tn(l,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;Pre.set(this.visualElement,this);const t=this.visualElement.current,n=Zf(t,"pointerdown",l=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();jl(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Pn.read(r);const a=bd(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(qi(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=l[h].translate,m.set(m.get()+l[h].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:a=d4,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:a,dragMomentum:o}}}function Zh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Mre(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Fre extends Bo{constructor(t){super(t),this.removeGroupControls=es,this.removeListeners=es,this.controls=new _re(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||es}unmount(){this.removeGroupControls(),this.removeListeners()}}const gT=e=>(t,n)=>{e&&Pn.postRender(()=>e(t,n))};class Rre extends Bo{constructor(){super(...arguments),this.removePointerDownListener=es}onPointerDown(t){this.session=new dO(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:fO(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:gT(t),onStart:gT(n),onMove:r,onEnd:(s,a)=>{delete this.session,i&&Pn.postRender(()=>i(s,a))}}}mount(){this.removePointerDownListener=Zf(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 Ep={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function vT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Sf={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(At.test(e))e=parseFloat(e);else return e;const n=vT(e,t.target.x),r=vT(e,t.target.y);return`${n}% ${r}%`}},kre={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ro.parse(e);if(i.length>5)return r;const s=Ro.createTransformer(e),a=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,l=n.y.scale*t.y;i[0+a]/=o,i[1+a]/=l;const d=Tn(o,l,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),s(i)}};class Ore extends T.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;bne(Ire),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Ep.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:a}=r;return a&&(a.isPresent=s,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||Pn.postRender(()=>{const o=a.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),E$.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 pO(e){const[t,n]=nne(),r=T.useContext(Yk);return la.jsx(Ore,{...e,layoutGroup:r,switchLayoutGroup:T.useContext(W7),isPresent:t,safeToRemove:n})}const Ire={borderRadius:{...Sf,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Sf,borderTopRightRadius:Sf,borderBottomLeftRadius:Sf,borderBottomRightRadius:Sf,boxShadow:kre};function Lre(e,t,n){const r=wr(e)?e:Wu(e);return r.start(O$("",r,t,n)),r.animation}const Bre=(e,t)=>e.depth-t.depth;class Vre{constructor(){this.children=[],this.isDirty=!1}add(t){s$(this.children,t),this.isDirty=!0}remove(t){a$(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Bre),this.isDirty=!1,this.children.forEach(t)}}function Nre(e,t){const n=oi.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Xa(r),e(s-t))};return Pn.setup(r,!0),()=>Xa(r)}const mO=["TopLeft","TopRight","BottomLeft","BottomRight"],jre=mO.length,yT=e=>typeof e=="string"?parseFloat(e):e,bT=e=>typeof e=="number"||At.test(e);function Kre(e,t,n,r,i,s){i?(e.opacity=Tn(0,n.opacity??1,Ure(r)),e.opacityExit=Tn(t.opacity??1,0,qre(r))):s&&(e.opacity=Tn(t.opacity??1,n.opacity??1,r));for(let a=0;a<jre;a++){const o=`border${mO[a]}Radius`;let l=$T(t,o),d=$T(n,o);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||bT(l)===bT(d)?(e[o]=Math.max(Tn(yT(l),yT(d),r),0),(oa.test(d)||oa.test(l))&&(e[o]+="%")):e[o]=d}(t.rotate||n.rotate)&&(e.rotate=Tn(t.rotate||0,n.rotate||0,r))}function $T(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Ure=gO(0,.5,o7),qre=gO(.5,.95,es);function gO(e,t,n){return r=>r<e?0:r>t?1:n(hd(e,t,r))}function xT(e,t){e.min=t.min,e.max=t.max}function ji(e,t){xT(e.x,t.x),xT(e.y,t.y)}function wT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function CT(e,t,n,r,i){return e-=t,e=lm(e,1/n,r),i!==void 0&&(e=lm(e,1/i,r)),e}function zre(e,t=0,n=1,r=.5,i,s=e,a=e){if(oa.test(t)&&(t=parseFloat(t),t=Tn(a.min,a.max,t/100)-a.min),typeof t!="number")return;let o=Tn(s.min,s.max,r);e===s&&(o-=t),e.min=CT(e.min,t,n,o,i),e.max=CT(e.max,t,n,o,i)}function ET(e,t,[n,r,i],s,a){zre(e,t[n],t[r],t[i],t.scale,s,a)}const Wre=["x","scaleX","originX"],Hre=["y","scaleY","originY"];function ST(e,t,n,r){ET(e.x,t,Wre,n?n.x:void 0,r?r.x:void 0),ET(e.y,t,Hre,n?n.y:void 0,r?r.y:void 0)}function DT(e){return e.translate===0&&e.scale===1}function vO(e){return DT(e.x)&&DT(e.y)}function AT(e,t){return e.min===t.min&&e.max===t.max}function Gre(e,t){return AT(e.x,t.x)&&AT(e.y,t.y)}function TT(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function yO(e,t){return TT(e.x,t.x)&&TT(e.y,t.y)}function PT(e){return qr(e.x)/qr(e.y)}function _T(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Yre{constructor(){this.members=[]}add(t){s$(this.members,t),t.scheduleRender()}remove(t){if(a$(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 s=this.members[i];if(s.isPresent!==!1){r=s;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 Zre(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||s||a)&&(r=`translate3d(${i}px, ${s}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:g,skewX:b,skewY:x}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),g&&(r+=`rotateY(${g}deg) `),b&&(r+=`skewX(${b}deg) `),x&&(r+=`skewY(${x}deg) `)}const o=e.x.scale*t.x,l=e.y.scale*t.y;return(o!==1||l!==1)&&(r+=`scale(${o}, ${l})`),r||"none"}const w1=["","X","Y","Z"],Xre={visibility:"hidden"},Jre=1e3;let Qre=0;function C1(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function bO(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=tO(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Pn,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&bO(r)}function $O({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},o=t==null?void 0:t()){this.id=Qre++,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(nie),this.nodes.forEach(oie),this.nodes.forEach(uie),this.nodes.forEach(rie)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Vre)}addEventListener(a,o){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new u$),this.eventHandlers.get(a).add(o)}notifyListeners(a,...o){const l=this.eventHandlers.get(a);l&&l.notify(...o)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=j7(a)&&!Jte(a),this.instance=a;const{layoutId:o,layout:l,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||o)&&(this.isLayoutDirty=!0),e){let h;const m=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Nre(m,250),Ep.hasAnimatedSinceResize&&(Ep.hasAnimatedSinceResize=!1,this.nodes.forEach(FT))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&d&&(o||l)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeLayoutChanged:g,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||d.getDefaultTransition()||hie,{onLayoutAnimationStart:w,onLayoutAnimationComplete:S}=d.getProps(),E=!this.targetLayout||!yO(this.targetLayout,b),C=!m&&g;if(this.options.layoutRoot||this.resumeFrom||C||m&&(E||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const A={...w$(x,"layout"),onPlay:w,onComplete:S};(d.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A),this.setAnimationOrigin(h,C)}else m||FT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}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,this.eventHandlers.clear(),Xa(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(lie),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&&bO(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:o,layout:l}=this.options;if(o===void 0&&!l)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(MT);return}this.isUpdating||this.nodes.forEach(sie),this.isUpdating=!1,this.nodes.forEach(aie),this.nodes.forEach(eie),this.nodes.forEach(tie),this.clearAllSnapshots();const o=oi.now();xr.delta=Ya(0,1e3/60,o-xr.timestamp),xr.timestamp=o,xr.isProcessing=!0,h1.update.process(xr),h1.preRender.process(xr),h1.render.process(xr),xr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,E$.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iie),this.sharedNodes.forEach(cie)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Pn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Pn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!qr(this.snapshot.measuredBox.x)&&!qr(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Gn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(o=!1),o&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!vO(this.projectionDelta),l=this.getTransformTemplate(),d=l?l(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&this.instance&&(o||pu(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return a&&(l=this.removeTransform(l)),pie(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:a}=this.options;if(!a)return Gn();const o=a.measureViewportBox();if(!(((d=this.scroll)==null?void 0:d.wasRoot)||this.path.some(mie))){const{scroll:h}=this.root;h&&(Ul(o.x,h.offset.x),Ul(o.y,h.offset.y))}return o}removeElementScroll(a){var l;const o=Gn();if(ji(o,a),(l=this.scroll)!=null&&l.wasRoot)return o;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:g}=h;h!==this.root&&m&&g.layoutScroll&&(m.wasRoot&&ji(o,a),Ul(o.x,m.offset.x),Ul(o.y,m.offset.y))}return o}applyTransform(a,o=!1){const l=Gn();ji(l,a);for(let d=0;d<this.path.length;d++){const h=this.path[d];!o&&h.options.layoutScroll&&h.scroll&&h!==h.root&&ql(l,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),pu(h.latestValues)&&ql(l,h.latestValues)}return pu(this.latestValues)&&ql(l,this.latestValues),l}removeTransform(a){const o=Gn();ji(o,a);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!pu(d.latestValues))continue;c4(d.latestValues)&&d.updateSnapshot();const h=Gn(),m=d.measurePageBox();ji(h,m),ST(o,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return pu(this.latestValues)&&ST(o,this.latestValues),o}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!==xr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var g;const o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==o;if(!(a||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(g=this.parent)!=null&&g.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=xr.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Gn(),this.relativeTargetOrigin=Gn(),Jf(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),ji(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Gn(),this.targetWithTransforms=Gn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),vre(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ji(this.target,this.layout.layoutBox),lO(this.target,this.targetDelta)):ji(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Gn(),this.relativeTargetOrigin=Gn(),Jf(this.relativeTargetOrigin,this.target,b.target),ji(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||c4(this.parent.latestValues)||uO(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 x;const a=this.getLead(),o=!!this.resumingFrom||this!==a;let l=!0;if((this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty)&&(l=!1),o&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===xr.timestamp&&(l=!1),l)return;const{layout:d,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||h))return;ji(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;yre(this.layoutCorrected,this.treeScale,this.path,o),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Gn());const{target:b}=a;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(wT(this.prevProjectionDelta.x,this.projectionDelta.x),wT(this.prevProjectionDelta.y,this.projectionDelta.y)),Xf(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!_T(this.projectionDelta.x,this.prevProjectionDelta.x)||!_T(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var o;if((o=this.options.visualElement)==null||o.scheduleRender(),a){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Kl(),this.projectionDelta=Kl(),this.projectionDeltaWithTransform=Kl()}setAnimationOrigin(a,o=!1){const l=this.snapshot,d=l?l.latestValues:{},h={...this.latestValues},m=Kl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const g=Gn(),b=l?l.source:void 0,x=this.layout?this.layout.source:void 0,w=b!==x,S=this.getStack(),E=!S||S.members.length<=1,C=!!(w&&!E&&this.options.crossfade===!0&&!this.path.some(die));this.animationProgress=0;let A;this.mixTargetDelta=k=>{const M=k/1e3;RT(m.x,a.x,M),RT(m.y,a.y,M),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Jf(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),fie(this.relativeTarget,this.relativeTargetOrigin,g,M),A&&Gre(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=Gn()),ji(A,this.relativeTarget)),w&&(this.animationValues=h,Kre(h,d,this.latestValues,M,C,E)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){var o,l,d;this.notifyListeners("animationStart"),(o=this.currentAnimation)==null||o.stop(),(d=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||d.stop(),this.pendingAnimation&&(Xa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Pn.update(()=>{Ep.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Wu(0)),this.currentAnimation=Lre(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),a.onUpdate&&a.onUpdate(h)},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(Jre),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:o,target:l,layout:d,latestValues:h}=a;if(!(!o||!l||!d)){if(this!==a&&this.layout&&d&&xO(this.options.animationType,this.layout.layoutBox,d.layoutBox)){l=this.target||Gn();const m=qr(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+m;const g=qr(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+g}ji(o,l),ql(o,h),Xf(this.projectionDeltaWithTransform,this.layoutCorrected,o,h)}}registerSharedNode(a,o){this.sharedNodes.has(a)||this.sharedNodes.set(a,new Yre),this.sharedNodes.get(a).add(o);const d=o.options.initialPromotionConfig;o.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(o):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())==null?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())==null?void 0:o.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:o,preserveFollowOpacity:l}={}){const d=this.getStack();d&&d.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let o=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(o=!0),!o)return;const d={};l.z&&C1("z",a,d,this.animationValues);for(let h=0;h<w1.length;h++)C1(`rotate${w1[h]}`,a,d,this.animationValues),C1(`skew${w1[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){if(!this.instance||this.isSVG)return;if(!this.isVisible)return Xre;const o={visibility:""},l=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,o.opacity="",o.pointerEvents=Cp(a==null?void 0:a.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none",o;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Cp(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!pu(this.latestValues)&&(b.transform=l?l({},""):"none",this.hasProjected=!1),b}const h=d.animationValues||d.latestValues;this.applyTransformsToTarget(),o.transform=Zre(this.projectionDeltaWithTransform,this.treeScale,h),l&&(o.transform=l(h,o.transform));const{x:m,y:g}=this.projectionDelta;o.transformOrigin=`${m.origin*100}% ${g.origin*100}% 0`,d.animationValues?o.opacity=d===this?h.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:o.opacity=d===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const b in vd){if(h[b]===void 0)continue;const{correct:x,applyTo:w,isCSSVariable:S}=vd[b],E=o.transform==="none"?h[b]:x(h[b],d);if(w){const C=w.length;for(let A=0;A<C;A++)o[w[A]]=E}else S?this.options.visualElement.renderState.vars[b]=E:o[b]=E}return this.options.layoutId&&(o.pointerEvents=d===this?Cp(a==null?void 0:a.pointerEvents)||"":"none"),o}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var o;return(o=a.currentAnimation)==null?void 0:o.stop()}),this.root.nodes.forEach(MT),this.root.sharedNodes.clear()}}}function eie(e){e.updateLayout()}function tie(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,a=t.source!==e.layout.source;s==="size"?qi(m=>{const g=a?t.measuredBox[m]:t.layoutBox[m],b=qr(g);g.min=r[m].min,g.max=g.min+b}):xO(s,t.layoutBox,r)&&qi(m=>{const g=a?t.measuredBox[m]:t.layoutBox[m],b=qr(r[m]);g.max=g.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+b)});const o=Kl();Xf(o,r,t.layoutBox);const l=Kl();a?Xf(l,e.applyTransform(i,!0),t.measuredBox):Xf(l,r,t.layoutBox);const d=!vO(o);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:b}=m;if(g&&b){const x=Gn();Jf(x,t.layoutBox,g.layoutBox);const w=Gn();Jf(w,r,b.layoutBox),yO(x,w)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=x,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:o,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function nie(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 rie(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iie(e){e.clearSnapshot()}function MT(e){e.clearMeasurements()}function sie(e){e.isLayoutDirty=!1}function aie(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function FT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function oie(e){e.resolveTargetDelta()}function uie(e){e.calcProjection()}function lie(e){e.resetSkewAndRotation()}function cie(e){e.removeLeadSnapshot()}function RT(e,t,n){e.translate=Tn(t.translate,0,n),e.scale=Tn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function kT(e,t,n,r){e.min=Tn(t.min,n.min,r),e.max=Tn(t.max,n.max,r)}function fie(e,t,n,r){kT(e.x,t.x,n.x,r),kT(e.y,t.y,n.y,r)}function die(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const hie={duration:.45,ease:[.4,0,.1,1]},OT=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),IT=OT("applewebkit/")&&!OT("chrome/")?Math.round:es;function LT(e){e.min=IT(e.min),e.max=IT(e.max)}function pie(e){LT(e.x),LT(e.y)}function xO(e,t,n){return e==="position"||e==="preserve-aspect"&&!gre(PT(t),PT(n),.2)}function mie(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const gie=$O({attachResizeListener:(e,t)=>bd(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),E1={current:void 0},wO=$O({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!E1.current){const e=new gie({});e.mount(window),e.setOptions({layoutScroll:!0}),E1.current=e}return E1.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),vie={pan:{Feature:Rre},drag:{Feature:Fre,ProjectionNode:wO,MeasureLayout:pO}};function BT(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&Pn.postRender(()=>s(t,Wd(t)))}let yie=class extends Bo{mount(){const{current:t}=this.node;t&&(this.unmount=Hte(t,(n,r)=>(BT(this.node,r,"Start"),i=>BT(this.node,i,"End"))))}unmount(){}},bie=class extends Bo{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=Ud(bd(this.node.current,"focus",()=>this.onFocus()),bd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function VT(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),s=r[i];s&&Pn.postRender(()=>s(t,Wd(t)))}let $ie=class extends Bo{mount(){const{current:t}=this.node;t&&(this.unmount=Xte(t,(n,r)=>(VT(this.node,r,"Start"),(i,{success:s})=>VT(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const h4=new WeakMap,S1=new WeakMap,xie=e=>{const t=h4.get(e.target);t&&t(e)},wie=e=>{e.forEach(xie)};function Cie({root:e,...t}){const n=e||document;S1.has(n)||S1.set(n,{});const r=S1.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(wie,{root:e,...t})),r[i]}function Eie(e,t,n){const r=Cie(t);return h4.set(e,n),r.observe(e),()=>{h4.delete(e),r.unobserve(e)}}const Sie={some:0,all:1};let Die=class extends Bo{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:s}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Sie[i]},o=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,s&&!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(),g=d?h:m;g&&g(l)};return Eie(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Aie(t,n))&&this.startObserver()}unmount(){}};function Aie({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Tie={inView:{Feature:Die},tap:{Feature:$ie},focus:{Feature:bie},hover:{Feature:yie}},Pie={layout:{ProjectionNode:wO,MeasureLayout:pO}},p4={current:null},CO={current:!1};function _ie(){if(CO.current=!0,!!r$)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>p4.current=e.matches;e.addListener(t),t()}else p4.current=!1}const Mie=new WeakMap;function Fie(e,t,n){for(const r in t){const i=t[r],s=n[r];if(wr(i))e.addValue(r,i);else if(wr(s))e.addValue(r,Wu(i,{owner:e}));else if(s!==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,Wu(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const NT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Rie=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=x$,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 g=oi.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Pn.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=og(n),this.isVariantNode=q7(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const b=m[g];l[g]!==void 0&&wr(b)&&b.set(l[g],!1)}}mount(t){this.current=t,Mie.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)),CO.current||_ie(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:p4.current,process.env.NODE_ENV!=="production"&&l$(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(),Xa(this.notifyUpdate),Xa(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=_c.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Pn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),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 pc){const n=pc[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 s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Gn()}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<NT.length;r++){const i=NT[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,a=t[s];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=Fie(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}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=Wu(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Xk(r)||Qk(r))?r=parseFloat(r):!tne(r)&&Ro.test(n)&&(r=I7(t,n)),this.setBaseTarget(t,wr(r)?r.get():r)),wr(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=R$(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!wr(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new u$),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},EO=class extends Rie{constructor(){super(...arguments),this.KeyframeResolver=Kte}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;wr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function SO(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}function kie(e){return window.getComputedStyle(e)}let Oie=class extends EO{constructor(){super(...arguments),this.type="html",this.renderInstance=SO}readValueFromInstance(t,n){var r;if(_c.has(n))return(r=this.projection)!=null&&r.isProjecting?t4(n):ate(t,n);{const i=kie(t),s=(d$(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return cO(t,n)}build(t,n,r){_$(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return k$(t,n,r)}};const DO=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 Iie(e,t,n,r){SO(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(DO.has(i)?i:P$(i),t.attrs[i])}let Lie=class extends EO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Gn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(_c.has(n)){const r=O7(n);return r&&r.default||0}return n=DO.has(n)?n:P$(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return eO(t,n,r)}build(t,n,r){Z7(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Iie(t,n,r,i)}mount(t){this.isSVGTag=J7(t.tagName),super.mount(t)}};const Bie=(e,t)=>F$(e)?new Lie(t):new Oie(t,{allowProjection:e!==T.Fragment}),Vie=Ine({...ure,...Tie,...vie,...Pie},Bie),AO=one(Vie);function TO(e){const t=Kd(()=>Wu(e)),{isStatic:n}=T.useContext(D$);if(n){const[,r]=T.useState(e);T.useEffect(()=>t.on("change",r),[])}return t}function PO(e,t){const n=TO(t()),r=()=>n.set(t());return r(),Zk(()=>{const i=()=>Pn.preRender(r,!1,!0),s=e.map(a=>a.on("change",i));return()=>{s.forEach(a=>a()),Xa(r)}}),n}function Nie(e){Yf.current=[],e();const t=PO(Yf.current,e);return Yf.current=void 0,t}function jie(e,t,n,r){if(typeof e=="function")return Nie(e);const i=typeof t=="function"?t:Qte(t,n,r);return Array.isArray(e)?jT(e,i):jT([e],([s])=>i(s))}function jT(e,t){const n=Kd(()=>[]);return PO(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const _O=T.createContext(null);function Kie(e,t,n,r){if(!r)return e;const i=e.findIndex(h=>h.value===t);if(i===-1)return e;const s=r>0?1:-1,a=e[i+s];if(!a)return e;const o=e[i],l=a.layout,d=Tn(l.min,l.max,.5);return s===1&&o.layout.max+n>d||s===-1&&o.layout.min+n<d?see(e,i,i+s):e}function Uie({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...s},a){const o=Kd(()=>AO[t]),l=[],d=T.useRef(!1);Ts(!!i,"Reorder.Group must be provided a values prop");const h={axis:n,registerItem:(m,g)=>{const b=l.findIndex(x=>m===x.value);b!==-1?l[b].layout=g[n]:l.push({value:m,layout:g[n]}),l.sort(Wie)},updateOrder:(m,g,b)=>{if(d.current)return;const x=Kie(l,m,g,b);l!==x&&(d.current=!0,r(x.map(zie).filter(w=>i.indexOf(w)!==-1)))}};return T.useEffect(()=>{d.current=!1}),la.jsx(o,{...s,ref:a,ignoreStrict:!0,children:la.jsx(_O.Provider,{value:h,children:e})})}const qie=T.forwardRef(Uie);function zie(e){return e.value}function Wie(e,t){return e.layout.min-t.layout.min}function KT(e,t=0){return wr(e)?e:TO(t)}function Hie({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:s=!0,...a},o){const l=Kd(()=>AO[r]),d=T.useContext(_O),h={x:KT(t.x),y:KT(t.y)},m=jie([h.x,h.y],([w,S])=>w||S?1:"unset");Ts(!!d,"Reorder.Item must be a child of Reorder.Group");const{axis:g,registerItem:b,updateOrder:x}=d;return la.jsx(l,{drag:g,...a,dragSnapToOrigin:!0,style:{...t,x:h.x,y:h.y,zIndex:m},layout:s,onDrag:(w,S)=>{const{velocity:E}=S;E[g]&&x(n,h[g].get(),E[g]),i&&i(w,S)},onLayoutMeasure:w=>b(n,w),ref:o,ignoreStrict:!0,children:e})}const Gie=T.forwardRef(Hie);var Sp={exports:{}},Yie=Sp.exports,UT;function Zie(){return UT||(UT=1,function(e,t){(function(n,r){e.exports=r()})(Yie,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,s){var a=i.prototype,o=a.format;s.en.formats=n,a.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var d=this.$locale().formats,h=function(m,g){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,x,w){var S=w&&w.toUpperCase();return x||g[w]||n[w]||g[S].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(E,C,A){return C||A.slice(1)})})}(l,d===void 0?{}:d);return o.call(this,h)}}})}(Sp)),Sp.exports}var Xie=Zie();const Jie=ci(Xie),qT=(e,t,n)=>{if(e&&"reportValidity"in e){const r=rt(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},MO=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?qT(r.ref,n,e):r&&r.refs&&r.refs.forEach(i=>qT(i,n,e))}},Qie=(e,t)=>{t.shouldUseNativeValidation&&MO(e,t);const n={};for(const r in e){const i=rt(t.fields,r),s=Object.assign(e[r]||{},{ref:i&&i.ref});if(ese(t.names||Object.keys(e),r)){const a=Object.assign({},rt(n,r));en(a,"root",s),en(n,r,a)}else en(n,r,s)}return n},ese=(e,t)=>{const n=zT(t);return e.some(r=>zT(r).match(`^${n}\\.\\d+`))};function zT(e){return e.replace(/\]|\[/g,"")}function tse(e,t,n){return n===void 0&&(n={}),function(r,i,s){try{return Promise.resolve(function(a,o){try{var l=(t!=null&&t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(d){return s.shouldUseNativeValidation&&MO({},s),{values:n.raw?Object.assign({},r):d,errors:{}}}))}catch(d){return o(d)}return l&&l.then?l.then(void 0,o):l}(0,function(a){if(!a.inner)throw a;return{values:{},errors:Qie((o=a,l=!s.shouldUseNativeValidation&&s.criteriaMode==="all",(o.inner||[]).reduce(function(d,h){if(d[h.path]||(d[h.path]={message:h.message,type:h.type}),l){var m=d[h.path].types,g=m&&m[h.type];d[h.path]=pP(h.path,l,d,h.type,g?[].concat(g,h.message):h.message)}return d},{})),s)};var o,l}))}catch(a){return Promise.reject(a)}}}var Kf={exports:{}},nse=Kf.exports,WT;function rse(){return WT||(WT=1,function(e,t){(function(n,r){r(t,T)})(nse,function(n,r){function i(W){return W&&typeof W=="object"&&"default"in W?W:{default:W}}var s=i(r),a=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Yi<"u"?Yi:typeof self<"u"?self:{},o={exports:{}};(function(W,ie){typeof navigator<"u"&&function(O,L){W.exports=L()}(a,function(){var O="http://www.w3.org/2000/svg",L="",B=!1,he=-999999,U=function(p){B=!!p},te=function(){return B},xe=function(p){L=p},De=function(){return L};function _e(c){return document.createElement(c)}function Me(c,p){var v,$=c.length,P;for(v=0;v<$;v+=1){P=c[v].prototype;for(var _ in P)Object.prototype.hasOwnProperty.call(P,_)&&(p.prototype[_]=P[_])}}function Ye(c){function p(){}return p.prototype=c,p}var Ge=function(){function c(p){this.audios=[],this.audioFactory=p,this._volume=1,this._isMuted=!1}return c.prototype={addAudio:function(v){this.audios.push(v)},pause:function(){var v,$=this.audios.length;for(v=0;v<$;v+=1)this.audios[v].pause()},resume:function(){var v,$=this.audios.length;for(v=0;v<$;v+=1)this.audios[v].resume()},setRate:function(v){var $,P=this.audios.length;for($=0;$<P;$+=1)this.audios[$].setRate(v)},createAudio:function(v){return this.audioFactory?this.audioFactory(v):window.Howl?new window.Howl({src:[v]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(v){this.audioFactory=v},setVolume:function(v){this._volume=v,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var v,$=this.audios.length;for(v=0;v<$;v+=1)this.audios[v].volume(this._volume*(this._isMuted?0:1))}},function(){return new c}}(),Ae=function(){function c(v,$){var P=0,_=[],q;switch(v){case"int16":case"uint8c":q=1;break;default:q=1.1;break}for(P=0;P<$;P+=1)_.push(q);return _}function p(v,$){return v==="float32"?new Float32Array($):v==="int16"?new Int16Array($):v==="uint8c"?new Uint8ClampedArray($):c(v,$)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?p:c}();function Ke(c){return Array.apply(null,{length:c})}var We=!0,Ve=null,Te="",tt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),yt=Math.pow,Jt=Math.sqrt,xt=Math.floor,Mt=Math.min,Ti=150,mt=Math.PI/180,me=.5519;function Se(c,p,v,$){this.type=c,this.currentTime=p,this.totalTime=v,this.direction=$<0?-1:1}function Le(c,p){this.type=c,this.direction=p<0?-1:1}function it(c,p,v,$){this.type=c,this.currentLoop=v,this.totalLoops=p,this.direction=$<0?-1:1}function Qe(c,p,v){this.type=c,this.firstFrame=p,this.totalFrames=v}function Xe(c,p){this.type=c,this.target=p}function gt(c,p){this.type="renderFrameError",this.nativeError=c,this.currentTime=p}function kt(c){this.type="configError",this.nativeError=c}var wt=function(){var c=0;return function(){return c+=1,Te+"__lottie_element_"+c}}();function yn(c,p,v){var $,P,_,q,pe,Q,ye,Ce;switch(q=Math.floor(c*6),pe=c*6-q,Q=v*(1-p),ye=v*(1-pe*p),Ce=v*(1-(1-pe)*p),q%6){case 0:$=v,P=Ce,_=Q;break;case 1:$=ye,P=v,_=Q;break;case 2:$=Q,P=v,_=Ce;break;case 3:$=Q,P=ye,_=v;break;case 4:$=Ce,P=Q,_=v;break;case 5:$=v,P=Q,_=ye;break}return[$,P,_]}function Cr(c,p,v){var $=Math.max(c,p,v),P=Math.min(c,p,v),_=$-P,q,pe=$===0?0:_/$,Q=$/255;switch($){case P:q=0;break;case c:q=p-v+_*(p<v?6:0),q/=6*_;break;case p:q=v-c+_*2,q/=6*_;break;case v:q=c-p+_*4,q/=6*_;break}return[q,pe,Q]}function zt(c,p){var v=Cr(c[0]*255,c[1]*255,c[2]*255);return v[1]+=p,v[1]>1?v[1]=1:v[1]<=0&&(v[1]=0),yn(v[0],v[1],v[2])}function _t(c,p){var v=Cr(c[0]*255,c[1]*255,c[2]*255);return v[2]+=p,v[2]>1?v[2]=1:v[2]<0&&(v[2]=0),yn(v[0],v[1],v[2])}function Lt(c,p){var v=Cr(c[0]*255,c[1]*255,c[2]*255);return v[0]+=p/360,v[0]>1?v[0]-=1:v[0]<0&&(v[0]+=1),yn(v[0],v[1],v[2])}(function(){var c=[],p,v;for(p=0;p<256;p+=1)v=p.toString(16),c[p]=v.length===1?"0"+v:v;return function($,P,_){return $<0&&($=0),P<0&&(P=0),_<0&&(_=0),"#"+c[$]+c[P]+c[_]}})();var Wt=function(p){We=!!p},gr=function(){return We},Zr=function(p){Ve=p},fi=function(){return Ve},kr=function(p){Ti=p},Rs=function(){return Ti},Vo=function(p){Te=p};function $t(c){return document.createElementNS(O,c)}function di(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?di=function(v){return typeof v}:di=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},di(c)}var ha=function(){var c=1,p=[],v,$,P={onmessage:function(){},postMessage:function(ee){v({data:ee})}},_={postMessage:function(ee){P.onmessage({data:ee})}};function q(F){if(window.Worker&&window.Blob&&te()){var ee=new Blob(["var _workerSelf = self; self.onmessage = ",F.toString()],{type:"text/javascript"}),Y=URL.createObjectURL(ee);return new Worker(Y)}return v=F,P}function pe(){$||($=q(function(ee){function Y(){function ce(Ie,be){var ue,J,ge=Ie.length,Ne,ke,lt,Tt;for(J=0;J<ge;J+=1)if(ue=Ie[J],"ks"in ue&&!ue.completed){if(ue.completed=!0,ue.hasMask){var Et=ue.masksProperties;for(ke=Et.length,Ne=0;Ne<ke;Ne+=1)if(Et[Ne].pt.k.i)G(Et[Ne].pt.k);else for(Tt=Et[Ne].pt.k.length,lt=0;lt<Tt;lt+=1)Et[Ne].pt.k[lt].s&&G(Et[Ne].pt.k[lt].s[0]),Et[Ne].pt.k[lt].e&&G(Et[Ne].pt.k[lt].e[0])}ue.ty===0?(ue.layers=V(ue.refId,be),ce(ue.layers,be)):ue.ty===4?j(ue.shapes):ue.ty===5&&ot(ue)}}function z(Ie,be){if(Ie){var ue=0,J=Ie.length;for(ue=0;ue<J;ue+=1)Ie[ue].t===1&&(Ie[ue].data.layers=V(Ie[ue].data.refId,be),ce(Ie[ue].data.layers,be))}}function Z(Ie,be){for(var ue=0,J=be.length;ue<J;){if(be[ue].id===Ie)return be[ue];ue+=1}return null}function V(Ie,be){var ue=Z(Ie,be);return ue?ue.layers.__used?JSON.parse(JSON.stringify(ue.layers)):(ue.layers.__used=!0,ue.layers):null}function j(Ie){var be,ue=Ie.length,J,ge;for(be=ue-1;be>=0;be-=1)if(Ie[be].ty==="sh")if(Ie[be].ks.k.i)G(Ie[be].ks.k);else for(ge=Ie[be].ks.k.length,J=0;J<ge;J+=1)Ie[be].ks.k[J].s&&G(Ie[be].ks.k[J].s[0]),Ie[be].ks.k[J].e&&G(Ie[be].ks.k[J].e[0]);else Ie[be].ty==="gr"&&j(Ie[be].it)}function G(Ie){var be,ue=Ie.i.length;for(be=0;be<ue;be+=1)Ie.i[be][0]+=Ie.v[be][0],Ie.i[be][1]+=Ie.v[be][1],Ie.o[be][0]+=Ie.v[be][0],Ie.o[be][1]+=Ie.v[be][1]}function ne(Ie,be){var ue=be?be.split("."):[100,100,100];return Ie[0]>ue[0]?!0:ue[0]>Ie[0]?!1:Ie[1]>ue[1]?!0:ue[1]>Ie[1]?!1:Ie[2]>ue[2]?!0:ue[2]>Ie[2]?!1:null}var oe=function(){var Ie=[4,4,14];function be(J){var ge=J.t.d;J.t.d={k:[{s:ge,t:0}]}}function ue(J){var ge,Ne=J.length;for(ge=0;ge<Ne;ge+=1)J[ge].ty===5&&be(J[ge])}return function(J){if(ne(Ie,J.v)&&(ue(J.layers),J.assets)){var ge,Ne=J.assets.length;for(ge=0;ge<Ne;ge+=1)J.assets[ge].layers&&ue(J.assets[ge].layers)}}}(),de=function(){var Ie=[4,7,99];return function(be){if(be.chars&&!ne(Ie,be.v)){var ue,J=be.chars.length;for(ue=0;ue<J;ue+=1){var ge=be.chars[ue];ge.data&&ge.data.shapes&&(j(ge.data.shapes),ge.data.ip=0,ge.data.op=99999,ge.data.st=0,ge.data.sr=1,ge.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},be.chars[ue].t||(ge.data.shapes.push({ty:"no"}),ge.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),Oe=function(){var Ie=[5,7,15];function be(J){var ge=J.t.p;typeof ge.a=="number"&&(ge.a={a:0,k:ge.a}),typeof ge.p=="number"&&(ge.p={a:0,k:ge.p}),typeof ge.r=="number"&&(ge.r={a:0,k:ge.r})}function ue(J){var ge,Ne=J.length;for(ge=0;ge<Ne;ge+=1)J[ge].ty===5&&be(J[ge])}return function(J){if(ne(Ie,J.v)&&(ue(J.layers),J.assets)){var ge,Ne=J.assets.length;for(ge=0;ge<Ne;ge+=1)J.assets[ge].layers&&ue(J.assets[ge].layers)}}}(),et=function(){var Ie=[4,1,9];function be(J){var ge,Ne=J.length,ke,lt;for(ge=0;ge<Ne;ge+=1)if(J[ge].ty==="gr")be(J[ge].it);else if(J[ge].ty==="fl"||J[ge].ty==="st")if(J[ge].c.k&&J[ge].c.k[0].i)for(lt=J[ge].c.k.length,ke=0;ke<lt;ke+=1)J[ge].c.k[ke].s&&(J[ge].c.k[ke].s[0]/=255,J[ge].c.k[ke].s[1]/=255,J[ge].c.k[ke].s[2]/=255,J[ge].c.k[ke].s[3]/=255),J[ge].c.k[ke].e&&(J[ge].c.k[ke].e[0]/=255,J[ge].c.k[ke].e[1]/=255,J[ge].c.k[ke].e[2]/=255,J[ge].c.k[ke].e[3]/=255);else J[ge].c.k[0]/=255,J[ge].c.k[1]/=255,J[ge].c.k[2]/=255,J[ge].c.k[3]/=255}function ue(J){var ge,Ne=J.length;for(ge=0;ge<Ne;ge+=1)J[ge].ty===4&&be(J[ge].shapes)}return function(J){if(ne(Ie,J.v)&&(ue(J.layers),J.assets)){var ge,Ne=J.assets.length;for(ge=0;ge<Ne;ge+=1)J.assets[ge].layers&&ue(J.assets[ge].layers)}}}(),Je=function(){var Ie=[4,4,18];function be(J){var ge,Ne=J.length,ke,lt;for(ge=Ne-1;ge>=0;ge-=1)if(J[ge].ty==="sh")if(J[ge].ks.k.i)J[ge].ks.k.c=J[ge].closed;else for(lt=J[ge].ks.k.length,ke=0;ke<lt;ke+=1)J[ge].ks.k[ke].s&&(J[ge].ks.k[ke].s[0].c=J[ge].closed),J[ge].ks.k[ke].e&&(J[ge].ks.k[ke].e[0].c=J[ge].closed);else J[ge].ty==="gr"&&be(J[ge].it)}function ue(J){var ge,Ne,ke=J.length,lt,Tt,Et,$n;for(Ne=0;Ne<ke;Ne+=1){if(ge=J[Ne],ge.hasMask){var Ht=ge.masksProperties;for(Tt=Ht.length,lt=0;lt<Tt;lt+=1)if(Ht[lt].pt.k.i)Ht[lt].pt.k.c=Ht[lt].cl;else for($n=Ht[lt].pt.k.length,Et=0;Et<$n;Et+=1)Ht[lt].pt.k[Et].s&&(Ht[lt].pt.k[Et].s[0].c=Ht[lt].cl),Ht[lt].pt.k[Et].e&&(Ht[lt].pt.k[Et].e[0].c=Ht[lt].cl)}ge.ty===4&&be(ge.shapes)}}return function(J){if(ne(Ie,J.v)&&(ue(J.layers),J.assets)){var ge,Ne=J.assets.length;for(ge=0;ge<Ne;ge+=1)J.assets[ge].layers&&ue(J.assets[ge].layers)}}}();function Be(Ie){Ie.__complete||(et(Ie),oe(Ie),de(Ie),Oe(Ie),Je(Ie),ce(Ie.layers,Ie.assets),z(Ie.chars,Ie.assets),Ie.__complete=!0)}function ot(Ie){Ie.t.a.length===0&&"m"in Ie.t.p}var ct={};return ct.completeData=Be,ct.checkColors=et,ct.checkChars=de,ct.checkPathProperties=Oe,ct.checkShapes=Je,ct.completeLayers=ce,ct}if(_.dataManager||(_.dataManager=Y()),_.assetLoader||(_.assetLoader=function(){function ce(Z){var V=Z.getResponseHeader("content-type");return V&&Z.responseType==="json"&&V.indexOf("json")!==-1||Z.response&&di(Z.response)==="object"?Z.response:Z.response&&typeof Z.response=="string"?JSON.parse(Z.response):Z.responseText?JSON.parse(Z.responseText):null}function z(Z,V,j,G){var ne,oe=new XMLHttpRequest;try{oe.responseType="json"}catch{}oe.onreadystatechange=function(){if(oe.readyState===4)if(oe.status===200)ne=ce(oe),j(ne);else try{ne=ce(oe),j(ne)}catch(de){G&&G(de)}};try{oe.open(["G","E","T"].join(""),Z,!0)}catch{oe.open(["G","E","T"].join(""),V+"/"+Z,!0)}oe.send()}return{load:z}}()),ee.data.type==="loadAnimation")_.assetLoader.load(ee.data.path,ee.data.fullPath,function(ce){_.dataManager.completeData(ce),_.postMessage({id:ee.data.id,payload:ce,status:"success"})},function(){_.postMessage({id:ee.data.id,status:"error"})});else if(ee.data.type==="complete"){var fe=ee.data.animation;_.dataManager.completeData(fe),_.postMessage({id:ee.data.id,payload:fe,status:"success"})}else ee.data.type==="loadData"&&_.assetLoader.load(ee.data.path,ee.data.fullPath,function(ce){_.postMessage({id:ee.data.id,payload:ce,status:"success"})},function(){_.postMessage({id:ee.data.id,status:"error"})})}),$.onmessage=function(F){var ee=F.data,Y=ee.id,fe=p[Y];p[Y]=null,ee.status==="success"?fe.onComplete(ee.payload):fe.onError&&fe.onError()})}function Q(F,ee){c+=1;var Y="processId_"+c;return p[Y]={onComplete:F,onError:ee},Y}function ye(F,ee,Y){pe();var fe=Q(ee,Y);$.postMessage({type:"loadAnimation",path:F,fullPath:window.location.origin+window.location.pathname,id:fe})}function Ce(F,ee,Y){pe();var fe=Q(ee,Y);$.postMessage({type:"loadData",path:F,fullPath:window.location.origin+window.location.pathname,id:fe})}function Re(F,ee,Y){pe();var fe=Q(ee,Y);$.postMessage({type:"complete",animation:F,id:fe})}return{loadAnimation:ye,loadData:Ce,completeAnimation:Re}}(),Nc=function(){var c=function(){var z=_e("canvas");z.width=1,z.height=1;var Z=z.getContext("2d");return Z.fillStyle="rgba(0,0,0,0)",Z.fillRect(0,0,1,1),z}();function p(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function v(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function $(z,Z,V){var j="";if(z.e)j=z.p;else if(Z){var G=z.p;G.indexOf("images/")!==-1&&(G=G.split("/")[1]),j=Z+G}else j=V,j+=z.u?z.u:"",j+=z.p;return j}function P(z){var Z=0,V=setInterval((function(){var j=z.getBBox();(j.width||Z>500)&&(this._imageLoaded(),clearInterval(V)),Z+=1}).bind(this),50)}function _(z){var Z=$(z,this.assetsPath,this.path),V=$t("image");tt?this.testImageLoaded(V):V.addEventListener("load",this._imageLoaded,!1),V.addEventListener("error",(function(){j.img=c,this._imageLoaded()}).bind(this),!1),V.setAttributeNS("http://www.w3.org/1999/xlink","href",Z),this._elementHelper.append?this._elementHelper.append(V):this._elementHelper.appendChild(V);var j={img:V,assetData:z};return j}function q(z){var Z=$(z,this.assetsPath,this.path),V=_e("img");V.crossOrigin="anonymous",V.addEventListener("load",this._imageLoaded,!1),V.addEventListener("error",(function(){j.img=c,this._imageLoaded()}).bind(this),!1),V.src=Z;var j={img:V,assetData:z};return j}function pe(z){var Z={assetData:z},V=$(z,this.assetsPath,this.path);return ha.loadData(V,(function(j){Z.img=j,this._footageLoaded()}).bind(this),(function(){Z.img={},this._footageLoaded()}).bind(this)),Z}function Q(z,Z){this.imagesLoadedCb=Z;var V,j=z.length;for(V=0;V<j;V+=1)z[V].layers||(!z[V].t||z[V].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(z[V]))):z[V].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(z[V]))))}function ye(z){this.path=z||""}function Ce(z){this.assetsPath=z||""}function Re(z){for(var Z=0,V=this.images.length;Z<V;){if(this.images[Z].assetData===z)return this.images[Z].img;Z+=1}return null}function F(){this.imagesLoadedCb=null,this.images.length=0}function ee(){return this.totalImages===this.loadedAssets}function Y(){return this.totalFootages===this.loadedFootagesCount}function fe(z,Z){z==="svg"?(this._elementHelper=Z,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function ce(){this._imageLoaded=p.bind(this),this._footageLoaded=v.bind(this),this.testImageLoaded=P.bind(this),this.createFootageData=pe.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return ce.prototype={loadAssets:Q,setAssetsPath:Ce,setPath:ye,loadedImages:ee,loadedFootages:Y,destroy:F,getAsset:Re,createImgData:q,createImageData:_,imageLoaded:p,footageLoaded:v,setCacheType:fe},ce}();function el(){}el.prototype={triggerEvent:function(p,v){if(this._cbs[p])for(var $=this._cbs[p],P=0;P<$.length;P+=1)$[P](v)},addEventListener:function(p,v){return this._cbs[p]||(this._cbs[p]=[]),this._cbs[p].push(v),(function(){this.removeEventListener(p,v)}).bind(this)},removeEventListener:function(p,v){if(!v)this._cbs[p]=null;else if(this._cbs[p]){for(var $=0,P=this._cbs[p].length;$<P;)this._cbs[p][$]===v&&(this._cbs[p].splice($,1),$-=1,P-=1),$+=1;this._cbs[p].length||(this._cbs[p]=null)}}};var jc=function(){function c(p){for(var v=p.split(`\r
|
|
135
|
+
`),$={},P,_=0,q=0;q<v.length;q+=1)P=v[q].split(":"),P.length===2&&($[P[0]]=P[1].trim(),_+=1);if(_===0)throw new Error;return $}return function(p){for(var v=[],$=0;$<p.length;$+=1){var P=p[$],_={time:P.tm,duration:P.dr};try{_.payload=JSON.parse(p[$].cm)}catch{try{_.payload=c(p[$].cm)}catch{_.payload={name:p[$].cm}}}v.push(_)}return v}}(),tl=function(){function c(p){this.compositions.push(p)}return function(){function p(v){for(var $=0,P=this.compositions.length;$<P;){if(this.compositions[$].data&&this.compositions[$].data.nm===v)return this.compositions[$].prepareFrame&&this.compositions[$].data.xt&&this.compositions[$].prepareFrame(this.currentFrame),this.compositions[$].compInterface;$+=1}return null}return p.compositions=[],p.currentFrame=0,p.registerComposition=c,p}}(),No={},nl=function(p,v){No[p]=v};function is(c){return No[c]}function ss(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ss=function(v){return typeof v}:ss=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},ss(c)}var bt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=wt(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=gr(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=tl(),this.imagePreloader=new Nc,this.audioController=Ge(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new Se("drawnFrame",0,0,0)};Me([el],bt),bt.prototype.setParams=function(c){(c.wrapper||c.container)&&(this.wrapper=c.wrapper||c.container);var p="svg";c.animType?p=c.animType:c.renderer&&(p=c.renderer);var v=is(p);this.renderer=new v(this,c.rendererSettings),this.imagePreloader.setCacheType(p,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=p,c.loop===""||c.loop===null||c.loop===void 0||c.loop===!0?this.loop=!0:c.loop===!1?this.loop=!1:this.loop=parseInt(c.loop,10),this.autoplay="autoplay"in c?c.autoplay:!0,this.name=c.name?c.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(c,"autoloadSegments")?c.autoloadSegments:!0,this.assetsPath=c.assetsPath,this.initialSegment=c.initialSegment,c.audioFactory&&this.audioController.setAudioFactory(c.audioFactory),c.animationData?this.setupAnimation(c.animationData):c.path&&(c.path.lastIndexOf("\\")!==-1?this.path=c.path.substr(0,c.path.lastIndexOf("\\")+1):this.path=c.path.substr(0,c.path.lastIndexOf("/")+1),this.fileName=c.path.substr(c.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),ha.loadAnimation(c.path,this.configAnimation,this.onSetupError))},bt.prototype.onSetupError=function(){this.trigger("data_failed")},bt.prototype.setupAnimation=function(c){ha.completeAnimation(c,this.configAnimation)},bt.prototype.setData=function(c,p){p&&ss(p)!=="object"&&(p=JSON.parse(p));var v={wrapper:c,animationData:p},$=c.attributes;v.path=$.getNamedItem("data-animation-path")?$.getNamedItem("data-animation-path").value:$.getNamedItem("data-bm-path")?$.getNamedItem("data-bm-path").value:$.getNamedItem("bm-path")?$.getNamedItem("bm-path").value:"",v.animType=$.getNamedItem("data-anim-type")?$.getNamedItem("data-anim-type").value:$.getNamedItem("data-bm-type")?$.getNamedItem("data-bm-type").value:$.getNamedItem("bm-type")?$.getNamedItem("bm-type").value:$.getNamedItem("data-bm-renderer")?$.getNamedItem("data-bm-renderer").value:$.getNamedItem("bm-renderer")?$.getNamedItem("bm-renderer").value:"canvas";var P=$.getNamedItem("data-anim-loop")?$.getNamedItem("data-anim-loop").value:$.getNamedItem("data-bm-loop")?$.getNamedItem("data-bm-loop").value:$.getNamedItem("bm-loop")?$.getNamedItem("bm-loop").value:"";P==="false"?v.loop=!1:P==="true"?v.loop=!0:P!==""&&(v.loop=parseInt(P,10));var _=$.getNamedItem("data-anim-autoplay")?$.getNamedItem("data-anim-autoplay").value:$.getNamedItem("data-bm-autoplay")?$.getNamedItem("data-bm-autoplay").value:$.getNamedItem("bm-autoplay")?$.getNamedItem("bm-autoplay").value:!0;v.autoplay=_!=="false",v.name=$.getNamedItem("data-name")?$.getNamedItem("data-name").value:$.getNamedItem("data-bm-name")?$.getNamedItem("data-bm-name").value:$.getNamedItem("bm-name")?$.getNamedItem("bm-name").value:"";var q=$.getNamedItem("data-anim-prerender")?$.getNamedItem("data-anim-prerender").value:$.getNamedItem("data-bm-prerender")?$.getNamedItem("data-bm-prerender").value:$.getNamedItem("bm-prerender")?$.getNamedItem("bm-prerender").value:"";q==="false"&&(v.prerender=!1),this.setParams(v)},bt.prototype.includeLayers=function(c){c.op>this.animationData.op&&(this.animationData.op=c.op,this.totalFrames=Math.floor(c.op-this.animationData.ip));var p=this.animationData.layers,v,$=p.length,P=c.layers,_,q=P.length;for(_=0;_<q;_+=1)for(v=0;v<$;){if(p[v].id===P[_].id){p[v]=P[_];break}v+=1}if((c.chars||c.fonts)&&(this.renderer.globalData.fontManager.addChars(c.chars),this.renderer.globalData.fontManager.addFonts(c.fonts,this.renderer.globalData.defs)),c.assets)for($=c.assets.length,v=0;v<$;v+=1)this.animationData.assets.push(c.assets[v]);this.animationData.__complete=!1,ha.completeAnimation(this.animationData,this.onSegmentComplete)},bt.prototype.onSegmentComplete=function(c){this.animationData=c;var p=fi();p&&p.initExpressions(this),this.loadNextSegment()},bt.prototype.loadNextSegment=function(){var c=this.animationData.segments;if(!c||c.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var p=c.shift();this.timeCompleted=p.time*this.frameRate;var v=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,ha.loadData(v,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},bt.prototype.loadSegments=function(){var c=this.animationData.segments;c||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},bt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},bt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},bt.prototype.configAnimation=function(c){if(this.renderer)try{this.animationData=c,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(c),c.assets||(c.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(c.assets),this.markers=jc(c.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(p){this.triggerConfigError(p)}},bt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},bt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var c=fi();c&&c.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},bt.prototype.resize=function(c,p){var v=typeof c=="number"?c:void 0,$=typeof p=="number"?p:void 0;this.renderer.updateContainerSize(v,$)},bt.prototype.setSubframe=function(c){this.isSubframeEnabled=!!c},bt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},bt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(c){this.triggerRenderFrameError(c)}},bt.prototype.play=function(c){c&&this.name!==c||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},bt.prototype.pause=function(c){c&&this.name!==c||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},bt.prototype.togglePause=function(c){c&&this.name!==c||(this.isPaused===!0?this.play():this.pause())},bt.prototype.stop=function(c){c&&this.name!==c||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},bt.prototype.getMarkerData=function(c){for(var p,v=0;v<this.markers.length;v+=1)if(p=this.markers[v],p.payload&&p.payload.name===c)return p;return null},bt.prototype.goToAndStop=function(c,p,v){if(!(v&&this.name!==v)){var $=Number(c);if(isNaN($)){var P=this.getMarkerData(c);P&&this.goToAndStop(P.time,!0)}else p?this.setCurrentRawFrameValue(c):this.setCurrentRawFrameValue(c*this.frameModifier);this.pause()}},bt.prototype.goToAndPlay=function(c,p,v){if(!(v&&this.name!==v)){var $=Number(c);if(isNaN($)){var P=this.getMarkerData(c);P&&(P.duration?this.playSegments([P.time,P.time+P.duration],!0):this.goToAndStop(P.time,!0))}else this.goToAndStop($,p,v);this.play()}},bt.prototype.advanceTime=function(c){if(!(this.isPaused===!0||this.isLoaded===!1)){var p=this.currentRawFrame+c*this.frameModifier,v=!1;p>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(p>this.totalFrames?p%this.totalFrames:0)||(v=!0,p=this.totalFrames-1):p>=this.totalFrames?(this.playCount+=1,this.checkSegments(p%this.totalFrames)||(this.setCurrentRawFrameValue(p%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(p):p<0?this.checkSegments(p%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+p%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(v=!0,p=0)):this.setCurrentRawFrameValue(p),v&&(this.setCurrentRawFrameValue(p),this.pause(),this.trigger("complete"))}},bt.prototype.adjustSegment=function(c,p){this.playCount=0,c[1]<c[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=c[0]-c[1],this.timeCompleted=this.totalFrames,this.firstFrame=c[1],this.setCurrentRawFrameValue(this.totalFrames-.001-p)):c[1]>c[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=c[1]-c[0],this.timeCompleted=this.totalFrames,this.firstFrame=c[0],this.setCurrentRawFrameValue(.001+p)),this.trigger("segmentStart")},bt.prototype.setSegment=function(c,p){var v=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<c?v=c:this.currentRawFrame+this.firstFrame>p&&(v=p-c)),this.firstFrame=c,this.totalFrames=p-c,this.timeCompleted=this.totalFrames,v!==-1&&this.goToAndStop(v,!0)},bt.prototype.playSegments=function(c,p){if(p&&(this.segments.length=0),ss(c[0])==="object"){var v,$=c.length;for(v=0;v<$;v+=1)this.segments.push(c[v])}else this.segments.push(c);this.segments.length&&p&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},bt.prototype.resetSegments=function(c){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),c&&this.checkSegments(0)},bt.prototype.checkSegments=function(c){return this.segments.length?(this.adjustSegment(this.segments.shift(),c),!0):!1},bt.prototype.destroy=function(c){c&&this.name!==c||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},bt.prototype.setCurrentRawFrameValue=function(c){this.currentRawFrame=c,this.gotoFrame()},bt.prototype.setSpeed=function(c){this.playSpeed=c,this.updaFrameModifier()},bt.prototype.setDirection=function(c){this.playDirection=c<0?-1:1,this.updaFrameModifier()},bt.prototype.setLoop=function(c){this.loop=c},bt.prototype.setVolume=function(c,p){p&&this.name!==p||this.audioController.setVolume(c)},bt.prototype.getVolume=function(){return this.audioController.getVolume()},bt.prototype.mute=function(c){c&&this.name!==c||this.audioController.mute()},bt.prototype.unmute=function(c){c&&this.name!==c||this.audioController.unmute()},bt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},bt.prototype.getPath=function(){return this.path},bt.prototype.getAssetsPath=function(c){var p="";if(c.e)p=c.p;else if(this.assetsPath){var v=c.p;v.indexOf("images/")!==-1&&(v=v.split("/")[1]),p=this.assetsPath+v}else p=this.path,p+=c.u?c.u:"",p+=c.p;return p},bt.prototype.getAssetData=function(c){for(var p=0,v=this.assets.length;p<v;){if(c===this.assets[p].id)return this.assets[p];p+=1}return null},bt.prototype.hide=function(){this.renderer.hide()},bt.prototype.show=function(){this.renderer.show()},bt.prototype.getDuration=function(c){return c?this.totalFrames:this.totalFrames/this.frameRate},bt.prototype.updateDocumentData=function(c,p,v){try{var $=this.renderer.getElementByPath(c);$.updateDocumentData(p,v)}catch{}},bt.prototype.trigger=function(c){if(this._cbs&&this._cbs[c])switch(c){case"enterFrame":this.triggerEvent(c,new Se(c,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(c,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(c,new it(c,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(c,new Le(c,this.frameMult));break;case"segmentStart":this.triggerEvent(c,new Qe(c,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(c,new Xe(c,this));break;default:this.triggerEvent(c)}c==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Se(c,this.currentFrame,this.totalFrames,this.frameMult)),c==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new it(c,this.loop,this.playCount,this.frameMult)),c==="complete"&&this.onComplete&&this.onComplete.call(this,new Le(c,this.frameMult)),c==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Qe(c,this.firstFrame,this.totalFrames)),c==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Xe(c,this))},bt.prototype.triggerRenderFrameError=function(c){var p=new gt(c,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)},bt.prototype.triggerConfigError=function(c){var p=new kt(c,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)};var En=function(){var c={},p=[],v=0,$=0,P=0,_=!0,q=!1;function pe(be){for(var ue=0,J=be.target;ue<$;)p[ue].animation===J&&(p.splice(ue,1),ue-=1,$-=1,J.isPaused||Re()),ue+=1}function Q(be,ue){if(!be)return null;for(var J=0;J<$;){if(p[J].elem===be&&p[J].elem!==null)return p[J].animation;J+=1}var ge=new bt;return F(ge,be),ge.setData(be,ue),ge}function ye(){var be,ue=p.length,J=[];for(be=0;be<ue;be+=1)J.push(p[be].animation);return J}function Ce(){P+=1,et()}function Re(){P-=1}function F(be,ue){be.addEventListener("destroy",pe),be.addEventListener("_active",Ce),be.addEventListener("_idle",Re),p.push({elem:ue,animation:be}),$+=1}function ee(be){var ue=new bt;return F(ue,null),ue.setParams(be),ue}function Y(be,ue){var J;for(J=0;J<$;J+=1)p[J].animation.setSpeed(be,ue)}function fe(be,ue){var J;for(J=0;J<$;J+=1)p[J].animation.setDirection(be,ue)}function ce(be){var ue;for(ue=0;ue<$;ue+=1)p[ue].animation.play(be)}function z(be){var ue=be-v,J;for(J=0;J<$;J+=1)p[J].animation.advanceTime(ue);v=be,P&&!q?window.requestAnimationFrame(z):_=!0}function Z(be){v=be,window.requestAnimationFrame(z)}function V(be){var ue;for(ue=0;ue<$;ue+=1)p[ue].animation.pause(be)}function j(be,ue,J){var ge;for(ge=0;ge<$;ge+=1)p[ge].animation.goToAndStop(be,ue,J)}function G(be){var ue;for(ue=0;ue<$;ue+=1)p[ue].animation.stop(be)}function ne(be){var ue;for(ue=0;ue<$;ue+=1)p[ue].animation.togglePause(be)}function oe(be){var ue;for(ue=$-1;ue>=0;ue-=1)p[ue].animation.destroy(be)}function de(be,ue,J){var ge=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Ne,ke=ge.length;for(Ne=0;Ne<ke;Ne+=1)J&&ge[Ne].setAttribute("data-bm-type",J),Q(ge[Ne],be);if(ue&&ke===0){J||(J="svg");var lt=document.getElementsByTagName("body")[0];lt.innerText="";var Tt=_e("div");Tt.style.width="100%",Tt.style.height="100%",Tt.setAttribute("data-bm-type",J),lt.appendChild(Tt),Q(Tt,be)}}function Oe(){var be;for(be=0;be<$;be+=1)p[be].animation.resize()}function et(){!q&&P&&_&&(window.requestAnimationFrame(Z),_=!1)}function Je(){q=!0}function Be(){q=!1,et()}function ot(be,ue){var J;for(J=0;J<$;J+=1)p[J].animation.setVolume(be,ue)}function ct(be){var ue;for(ue=0;ue<$;ue+=1)p[ue].animation.mute(be)}function Ie(be){var ue;for(ue=0;ue<$;ue+=1)p[ue].animation.unmute(be)}return c.registerAnimation=Q,c.loadAnimation=ee,c.setSpeed=Y,c.setDirection=fe,c.play=ce,c.pause=V,c.stop=G,c.togglePause=ne,c.searchAnimations=de,c.resize=Oe,c.goToAndStop=j,c.destroy=oe,c.freeze=Je,c.unfreeze=Be,c.setVolume=ot,c.mute=ct,c.unmute=Ie,c.getRegisteredAnimations=ye,c}(),pa=function(){var c={};c.getBezierEasing=v;var p={};function v(Z,V,j,G,ne){var oe=ne||("bez_"+Z+"_"+V+"_"+j+"_"+G).replace(/\./g,"p");if(p[oe])return p[oe];var de=new z([Z,V,j,G]);return p[oe]=de,de}var $=4,P=.001,_=1e-7,q=10,pe=11,Q=1/(pe-1),ye=typeof Float32Array=="function";function Ce(Z,V){return 1-3*V+3*Z}function Re(Z,V){return 3*V-6*Z}function F(Z){return 3*Z}function ee(Z,V,j){return((Ce(V,j)*Z+Re(V,j))*Z+F(V))*Z}function Y(Z,V,j){return 3*Ce(V,j)*Z*Z+2*Re(V,j)*Z+F(V)}function fe(Z,V,j,G,ne){var oe,de,Oe=0;do de=V+(j-V)/2,oe=ee(de,G,ne)-Z,oe>0?j=de:V=de;while(Math.abs(oe)>_&&++Oe<q);return de}function ce(Z,V,j,G){for(var ne=0;ne<$;++ne){var oe=Y(V,j,G);if(oe===0)return V;var de=ee(V,j,G)-Z;V-=de/oe}return V}function z(Z){this._p=Z,this._mSampleValues=ye?new Float32Array(pe):new Array(pe),this._precomputed=!1,this.get=this.get.bind(this)}return z.prototype={get:function(V){var j=this._p[0],G=this._p[1],ne=this._p[2],oe=this._p[3];return this._precomputed||this._precompute(),j===G&&ne===oe?V:V===0?0:V===1?1:ee(this._getTForX(V),G,oe)},_precompute:function(){var V=this._p[0],j=this._p[1],G=this._p[2],ne=this._p[3];this._precomputed=!0,(V!==j||G!==ne)&&this._calcSampleValues()},_calcSampleValues:function(){for(var V=this._p[0],j=this._p[2],G=0;G<pe;++G)this._mSampleValues[G]=ee(G*Q,V,j)},_getTForX:function(V){for(var j=this._p[0],G=this._p[2],ne=this._mSampleValues,oe=0,de=1,Oe=pe-1;de!==Oe&&ne[de]<=V;++de)oe+=Q;--de;var et=(V-ne[de])/(ne[de+1]-ne[de]),Je=oe+et*Q,Be=Y(Je,j,G);return Be>=P?ce(V,Je,j,G):Be===0?Je:fe(V,oe,oe+Q,j,G)}},c}(),rl=function(){function c(p){return p.concat(Ke(p.length))}return{double:c}}(),Er=function(){return function(c,p,v){var $=0,P=c,_=Ke(P),q={newElement:pe,release:Q};function pe(){var ye;return $?($-=1,ye=_[$]):ye=p(),ye}function Q(ye){$===P&&(_=rl.double(_),P*=2),v&&v(ye),_[$]=ye,$+=1}return q}}(),il=function(){function c(){return{addedLength:0,percents:Ae("float32",Rs()),lengths:Ae("float32",Rs())}}return Er(8,c)}(),sl=function(){function c(){return{lengths:[],totalLength:0}}function p(v){var $,P=v.lengths.length;for($=0;$<P;$+=1)il.release(v.lengths[$]);v.lengths.length=0}return Er(8,c,p)}();function Kc(){var c=Math;function p(F,ee,Y,fe,ce,z){var Z=F*fe+ee*ce+Y*z-ce*fe-z*F-Y*ee;return Z>-.001&&Z<.001}function v(F,ee,Y,fe,ce,z,Z,V,j){if(Y===0&&z===0&&j===0)return p(F,ee,fe,ce,Z,V);var G=c.sqrt(c.pow(fe-F,2)+c.pow(ce-ee,2)+c.pow(z-Y,2)),ne=c.sqrt(c.pow(Z-F,2)+c.pow(V-ee,2)+c.pow(j-Y,2)),oe=c.sqrt(c.pow(Z-fe,2)+c.pow(V-ce,2)+c.pow(j-z,2)),de;return G>ne?G>oe?de=G-ne-oe:de=oe-ne-G:oe>ne?de=oe-ne-G:de=ne-G-oe,de>-1e-4&&de<1e-4}var $=function(){return function(F,ee,Y,fe){var ce=Rs(),z,Z,V,j,G,ne=0,oe,de=[],Oe=[],et=il.newElement();for(V=Y.length,z=0;z<ce;z+=1){for(G=z/(ce-1),oe=0,Z=0;Z<V;Z+=1)j=yt(1-G,3)*F[Z]+3*yt(1-G,2)*G*Y[Z]+3*(1-G)*yt(G,2)*fe[Z]+yt(G,3)*ee[Z],de[Z]=j,Oe[Z]!==null&&(oe+=yt(de[Z]-Oe[Z],2)),Oe[Z]=de[Z];oe&&(oe=Jt(oe),ne+=oe),et.percents[z]=G,et.lengths[z]=ne}return et.addedLength=ne,et}}();function P(F){var ee=sl.newElement(),Y=F.c,fe=F.v,ce=F.o,z=F.i,Z,V=F._length,j=ee.lengths,G=0;for(Z=0;Z<V-1;Z+=1)j[Z]=$(fe[Z],fe[Z+1],ce[Z],z[Z+1]),G+=j[Z].addedLength;return Y&&V&&(j[Z]=$(fe[Z],fe[0],ce[Z],z[0]),G+=j[Z].addedLength),ee.totalLength=G,ee}function _(F){this.segmentLength=0,this.points=new Array(F)}function q(F,ee){this.partialLength=F,this.point=ee}var pe=function(){var F={};return function(ee,Y,fe,ce){var z=(ee[0]+"_"+ee[1]+"_"+Y[0]+"_"+Y[1]+"_"+fe[0]+"_"+fe[1]+"_"+ce[0]+"_"+ce[1]).replace(/\./g,"p");if(!F[z]){var Z=Rs(),V,j,G,ne,oe,de=0,Oe,et,Je=null;ee.length===2&&(ee[0]!==Y[0]||ee[1]!==Y[1])&&p(ee[0],ee[1],Y[0],Y[1],ee[0]+fe[0],ee[1]+fe[1])&&p(ee[0],ee[1],Y[0],Y[1],Y[0]+ce[0],Y[1]+ce[1])&&(Z=2);var Be=new _(Z);for(G=fe.length,V=0;V<Z;V+=1){for(et=Ke(G),oe=V/(Z-1),Oe=0,j=0;j<G;j+=1)ne=yt(1-oe,3)*ee[j]+3*yt(1-oe,2)*oe*(ee[j]+fe[j])+3*(1-oe)*yt(oe,2)*(Y[j]+ce[j])+yt(oe,3)*Y[j],et[j]=ne,Je!==null&&(Oe+=yt(et[j]-Je[j],2));Oe=Jt(Oe),de+=Oe,Be.points[V]=new q(Oe,et),Je=et}Be.segmentLength=de,F[z]=Be}return F[z]}}();function Q(F,ee){var Y=ee.percents,fe=ee.lengths,ce=Y.length,z=xt((ce-1)*F),Z=F*ee.addedLength,V=0;if(z===ce-1||z===0||Z===fe[z])return Y[z];for(var j=fe[z]>Z?-1:1,G=!0;G;)if(fe[z]<=Z&&fe[z+1]>Z?(V=(Z-fe[z])/(fe[z+1]-fe[z]),G=!1):z+=j,z<0||z>=ce-1){if(z===ce-1)return Y[z];G=!1}return Y[z]+(Y[z+1]-Y[z])*V}function ye(F,ee,Y,fe,ce,z){var Z=Q(ce,z),V=1-Z,j=c.round((V*V*V*F[0]+(Z*V*V+V*Z*V+V*V*Z)*Y[0]+(Z*Z*V+V*Z*Z+Z*V*Z)*fe[0]+Z*Z*Z*ee[0])*1e3)/1e3,G=c.round((V*V*V*F[1]+(Z*V*V+V*Z*V+V*V*Z)*Y[1]+(Z*Z*V+V*Z*Z+Z*V*Z)*fe[1]+Z*Z*Z*ee[1])*1e3)/1e3;return[j,G]}var Ce=Ae("float32",8);function Re(F,ee,Y,fe,ce,z,Z){ce<0?ce=0:ce>1&&(ce=1);var V=Q(ce,Z);z=z>1?1:z;var j=Q(z,Z),G,ne=F.length,oe=1-V,de=1-j,Oe=oe*oe*oe,et=V*oe*oe*3,Je=V*V*oe*3,Be=V*V*V,ot=oe*oe*de,ct=V*oe*de+oe*V*de+oe*oe*j,Ie=V*V*de+oe*V*j+V*oe*j,be=V*V*j,ue=oe*de*de,J=V*de*de+oe*j*de+oe*de*j,ge=V*j*de+oe*j*j+V*de*j,Ne=V*j*j,ke=de*de*de,lt=j*de*de+de*j*de+de*de*j,Tt=j*j*de+de*j*j+j*de*j,Et=j*j*j;for(G=0;G<ne;G+=1)Ce[G*4]=c.round((Oe*F[G]+et*Y[G]+Je*fe[G]+Be*ee[G])*1e3)/1e3,Ce[G*4+1]=c.round((ot*F[G]+ct*Y[G]+Ie*fe[G]+be*ee[G])*1e3)/1e3,Ce[G*4+2]=c.round((ue*F[G]+J*Y[G]+ge*fe[G]+Ne*ee[G])*1e3)/1e3,Ce[G*4+3]=c.round((ke*F[G]+lt*Y[G]+Tt*fe[G]+Et*ee[G])*1e3)/1e3;return Ce}return{getSegmentsLength:P,getNewSegment:Re,getPointInSegment:ye,buildBezierData:pe,pointOnLine2D:p,pointOnLine3D:v}}var Xr=Kc(),st=function(){var c=he,p=Math.abs;function v(ce,z){var Z=this.offsetTime,V;this.propType==="multidimensional"&&(V=Ae("float32",this.pv.length));for(var j=z.lastIndex,G=j,ne=this.keyframes.length-1,oe=!0,de,Oe,et;oe;){if(de=this.keyframes[G],Oe=this.keyframes[G+1],G===ne-1&&ce>=Oe.t-Z){de.h&&(de=Oe),j=0;break}if(Oe.t-Z>ce){j=G;break}G<ne-1?G+=1:(j=0,oe=!1)}et=this.keyframesMetadata[G]||{};var Je,Be,ot,ct,Ie,be,ue=Oe.t-Z,J=de.t-Z,ge;if(de.to){et.bezierData||(et.bezierData=Xr.buildBezierData(de.s,Oe.s||de.e,de.to,de.ti));var Ne=et.bezierData;if(ce>=ue||ce<J){var ke=ce>=ue?Ne.points.length-1:0;for(Be=Ne.points[ke].point.length,Je=0;Je<Be;Je+=1)V[Je]=Ne.points[ke].point[Je]}else{et.__fnct?be=et.__fnct:(be=pa.getBezierEasing(de.o.x,de.o.y,de.i.x,de.i.y,de.n).get,et.__fnct=be),ot=be((ce-J)/(ue-J));var lt=Ne.segmentLength*ot,Tt,Et=z.lastFrame<ce&&z._lastKeyframeIndex===G?z._lastAddedLength:0;for(Ie=z.lastFrame<ce&&z._lastKeyframeIndex===G?z._lastPoint:0,oe=!0,ct=Ne.points.length;oe;){if(Et+=Ne.points[Ie].partialLength,lt===0||ot===0||Ie===Ne.points.length-1){for(Be=Ne.points[Ie].point.length,Je=0;Je<Be;Je+=1)V[Je]=Ne.points[Ie].point[Je];break}else if(lt>=Et&<<Et+Ne.points[Ie+1].partialLength){for(Tt=(lt-Et)/Ne.points[Ie+1].partialLength,Be=Ne.points[Ie].point.length,Je=0;Je<Be;Je+=1)V[Je]=Ne.points[Ie].point[Je]+(Ne.points[Ie+1].point[Je]-Ne.points[Ie].point[Je])*Tt;break}Ie<ct-1?Ie+=1:oe=!1}z._lastPoint=Ie,z._lastAddedLength=Et-Ne.points[Ie].partialLength,z._lastKeyframeIndex=G}}else{var $n,Ht,dr,Jn,Nn;if(ne=de.s.length,ge=Oe.s||de.e,this.sh&&de.h!==1)if(ce>=ue)V[0]=ge[0],V[1]=ge[1],V[2]=ge[2];else if(ce<=J)V[0]=de.s[0],V[1]=de.s[1],V[2]=de.s[2];else{var Un=_(de.s),qn=_(ge),br=(ce-J)/(ue-J);P(V,$(Un,qn,br))}else for(G=0;G<ne;G+=1)de.h!==1&&(ce>=ue?ot=1:ce<J?ot=0:(de.o.x.constructor===Array?(et.__fnct||(et.__fnct=[]),et.__fnct[G]?be=et.__fnct[G]:($n=de.o.x[G]===void 0?de.o.x[0]:de.o.x[G],Ht=de.o.y[G]===void 0?de.o.y[0]:de.o.y[G],dr=de.i.x[G]===void 0?de.i.x[0]:de.i.x[G],Jn=de.i.y[G]===void 0?de.i.y[0]:de.i.y[G],be=pa.getBezierEasing($n,Ht,dr,Jn).get,et.__fnct[G]=be)):et.__fnct?be=et.__fnct:($n=de.o.x,Ht=de.o.y,dr=de.i.x,Jn=de.i.y,be=pa.getBezierEasing($n,Ht,dr,Jn).get,de.keyframeMetadata=be),ot=be((ce-J)/(ue-J)))),ge=Oe.s||de.e,Nn=de.h===1?de.s[G]:de.s[G]+(ge[G]-de.s[G])*ot,this.propType==="multidimensional"?V[G]=Nn:V=Nn}return z.lastIndex=j,V}function $(ce,z,Z){var V=[],j=ce[0],G=ce[1],ne=ce[2],oe=ce[3],de=z[0],Oe=z[1],et=z[2],Je=z[3],Be,ot,ct,Ie,be;return ot=j*de+G*Oe+ne*et+oe*Je,ot<0&&(ot=-ot,de=-de,Oe=-Oe,et=-et,Je=-Je),1-ot>1e-6?(Be=Math.acos(ot),ct=Math.sin(Be),Ie=Math.sin((1-Z)*Be)/ct,be=Math.sin(Z*Be)/ct):(Ie=1-Z,be=Z),V[0]=Ie*j+be*de,V[1]=Ie*G+be*Oe,V[2]=Ie*ne+be*et,V[3]=Ie*oe+be*Je,V}function P(ce,z){var Z=z[0],V=z[1],j=z[2],G=z[3],ne=Math.atan2(2*V*G-2*Z*j,1-2*V*V-2*j*j),oe=Math.asin(2*Z*V+2*j*G),de=Math.atan2(2*Z*G-2*V*j,1-2*Z*Z-2*j*j);ce[0]=ne/mt,ce[1]=oe/mt,ce[2]=de/mt}function _(ce){var z=ce[0]*mt,Z=ce[1]*mt,V=ce[2]*mt,j=Math.cos(z/2),G=Math.cos(Z/2),ne=Math.cos(V/2),oe=Math.sin(z/2),de=Math.sin(Z/2),Oe=Math.sin(V/2),et=j*G*ne-oe*de*Oe,Je=oe*de*ne+j*G*Oe,Be=oe*G*ne+j*de*Oe,ot=j*de*ne-oe*G*Oe;return[Je,Be,ot,et]}function q(){var ce=this.comp.renderedFrame-this.offsetTime,z=this.keyframes[0].t-this.offsetTime,Z=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(ce===this._caching.lastFrame||this._caching.lastFrame!==c&&(this._caching.lastFrame>=Z&&ce>=Z||this._caching.lastFrame<z&&ce<z))){this._caching.lastFrame>=ce&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var V=this.interpolateValue(ce,this._caching);this.pv=V}return this._caching.lastFrame=ce,this.pv}function pe(ce){var z;if(this.propType==="unidimensional")z=ce*this.mult,p(this.v-z)>1e-5&&(this.v=z,this._mdf=!0);else for(var Z=0,V=this.v.length;Z<V;)z=ce[Z]*this.mult,p(this.v[Z]-z)>1e-5&&(this.v[Z]=z,this._mdf=!0),Z+=1}function Q(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var ce,z=this.effectsSequence.length,Z=this.kf?this.pv:this.data.k;for(ce=0;ce<z;ce+=1)Z=this.effectsSequence[ce](Z);this.setVValue(Z),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function ye(ce){this.effectsSequence.push(ce),this.container.addDynamicProperty(this)}function Ce(ce,z,Z,V){this.propType="unidimensional",this.mult=Z||1,this.data=z,this.v=Z?z.k*Z:z.k,this.pv=z.k,this._mdf=!1,this.elem=ce,this.container=V,this.comp=ce.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Q,this.setVValue=pe,this.addEffect=ye}function Re(ce,z,Z,V){this.propType="multidimensional",this.mult=Z||1,this.data=z,this._mdf=!1,this.elem=ce,this.container=V,this.comp=ce.comp,this.k=!1,this.kf=!1,this.frameId=-1;var j,G=z.k.length;for(this.v=Ae("float32",G),this.pv=Ae("float32",G),this.vel=Ae("float32",G),j=0;j<G;j+=1)this.v[j]=z.k[j]*this.mult,this.pv[j]=z.k[j];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=Q,this.setVValue=pe,this.addEffect=ye}function F(ce,z,Z,V){this.propType="unidimensional",this.keyframes=z.k,this.keyframesMetadata=[],this.offsetTime=ce.data.st,this.frameId=-1,this._caching={lastFrame:c,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=z,this.mult=Z||1,this.elem=ce,this.container=V,this.comp=ce.comp,this.v=c,this.pv=c,this._isFirstFrame=!0,this.getValue=Q,this.setVValue=pe,this.interpolateValue=v,this.effectsSequence=[q.bind(this)],this.addEffect=ye}function ee(ce,z,Z,V){this.propType="multidimensional";var j,G=z.k.length,ne,oe,de,Oe;for(j=0;j<G-1;j+=1)z.k[j].to&&z.k[j].s&&z.k[j+1]&&z.k[j+1].s&&(ne=z.k[j].s,oe=z.k[j+1].s,de=z.k[j].to,Oe=z.k[j].ti,(ne.length===2&&!(ne[0]===oe[0]&&ne[1]===oe[1])&&Xr.pointOnLine2D(ne[0],ne[1],oe[0],oe[1],ne[0]+de[0],ne[1]+de[1])&&Xr.pointOnLine2D(ne[0],ne[1],oe[0],oe[1],oe[0]+Oe[0],oe[1]+Oe[1])||ne.length===3&&!(ne[0]===oe[0]&&ne[1]===oe[1]&&ne[2]===oe[2])&&Xr.pointOnLine3D(ne[0],ne[1],ne[2],oe[0],oe[1],oe[2],ne[0]+de[0],ne[1]+de[1],ne[2]+de[2])&&Xr.pointOnLine3D(ne[0],ne[1],ne[2],oe[0],oe[1],oe[2],oe[0]+Oe[0],oe[1]+Oe[1],oe[2]+Oe[2]))&&(z.k[j].to=null,z.k[j].ti=null),ne[0]===oe[0]&&ne[1]===oe[1]&&de[0]===0&&de[1]===0&&Oe[0]===0&&Oe[1]===0&&(ne.length===2||ne[2]===oe[2]&&de[2]===0&&Oe[2]===0)&&(z.k[j].to=null,z.k[j].ti=null));this.effectsSequence=[q.bind(this)],this.data=z,this.keyframes=z.k,this.keyframesMetadata=[],this.offsetTime=ce.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=Z||1,this.elem=ce,this.container=V,this.comp=ce.comp,this.getValue=Q,this.setVValue=pe,this.interpolateValue=v,this.frameId=-1;var et=z.k[0].s.length;for(this.v=Ae("float32",et),this.pv=Ae("float32",et),j=0;j<et;j+=1)this.v[j]=c,this.pv[j]=c;this._caching={lastFrame:c,lastIndex:0,value:Ae("float32",et)},this.addEffect=ye}function Y(ce,z,Z,V,j){var G;if(!z.k.length)G=new Ce(ce,z,V,j);else if(typeof z.k[0]=="number")G=new Re(ce,z,V,j);else switch(Z){case 0:G=new F(ce,z,V,j);break;case 1:G=new ee(ce,z,V,j);break}return G.effectsSequence.length&&j.addDynamicProperty(G),G}var fe={getProp:Y};return fe}();function dn(){}dn.prototype={addDynamicProperty:function(p){this.dynamicProperties.indexOf(p)===-1&&(this.dynamicProperties.push(p),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var p,v=this.dynamicProperties.length;for(p=0;p<v;p+=1)this.dynamicProperties[p].getValue(),this.dynamicProperties[p]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(p){this.container=p,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var as=function(){function c(){return Ae("float32",2)}return Er(8,c)}();function hi(){this.c=!1,this._length=0,this._maxLength=8,this.v=Ke(this._maxLength),this.o=Ke(this._maxLength),this.i=Ke(this._maxLength)}hi.prototype.setPathData=function(c,p){this.c=c,this.setLength(p);for(var v=0;v<p;)this.v[v]=as.newElement(),this.o[v]=as.newElement(),this.i[v]=as.newElement(),v+=1},hi.prototype.setLength=function(c){for(;this._maxLength<c;)this.doubleArrayLength();this._length=c},hi.prototype.doubleArrayLength=function(){this.v=this.v.concat(Ke(this._maxLength)),this.i=this.i.concat(Ke(this._maxLength)),this.o=this.o.concat(Ke(this._maxLength)),this._maxLength*=2},hi.prototype.setXYAt=function(c,p,v,$,P){var _;switch(this._length=Math.max(this._length,$+1),this._length>=this._maxLength&&this.doubleArrayLength(),v){case"v":_=this.v;break;case"i":_=this.i;break;case"o":_=this.o;break;default:_=[];break}(!_[$]||_[$]&&!P)&&(_[$]=as.newElement()),_[$][0]=c,_[$][1]=p},hi.prototype.setTripleAt=function(c,p,v,$,P,_,q,pe){this.setXYAt(c,p,"v",q,pe),this.setXYAt(v,$,"o",q,pe),this.setXYAt(P,_,"i",q,pe)},hi.prototype.reverse=function(){var c=new hi;c.setPathData(this.c,this._length);var p=this.v,v=this.o,$=this.i,P=0;this.c&&(c.setTripleAt(p[0][0],p[0][1],$[0][0],$[0][1],v[0][0],v[0][1],0,!1),P=1);var _=this._length-1,q=this._length,pe;for(pe=P;pe<q;pe+=1)c.setTripleAt(p[_][0],p[_][1],$[_][0],$[_][1],v[_][0],v[_][1],pe,!1),_-=1;return c},hi.prototype.length=function(){return this._length};var Xn=function(){function c(){return new hi}function p(P){var _=P._length,q;for(q=0;q<_;q+=1)as.release(P.v[q]),as.release(P.i[q]),as.release(P.o[q]),P.v[q]=null,P.i[q]=null,P.o[q]=null;P._length=0,P.c=!1}function v(P){var _=$.newElement(),q,pe=P._length===void 0?P.v.length:P._length;for(_.setLength(pe),_.c=P.c,q=0;q<pe;q+=1)_.setTripleAt(P.v[q][0],P.v[q][1],P.o[q][0],P.o[q][1],P.i[q][0],P.i[q][1],q);return _}var $=Er(4,c,p);return $.clone=v,$}();function jo(){this._length=0,this._maxLength=4,this.shapes=Ke(this._maxLength)}jo.prototype.addShape=function(c){this._length===this._maxLength&&(this.shapes=this.shapes.concat(Ke(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=c,this._length+=1},jo.prototype.releaseShapes=function(){var c;for(c=0;c<this._length;c+=1)Xn.release(this.shapes[c]);this._length=0};var ks=function(){var c={newShapeCollection:P,release:_},p=0,v=4,$=Ke(v);function P(){var q;return p?(p-=1,q=$[p]):q=new jo,q}function _(q){var pe,Q=q._length;for(pe=0;pe<Q;pe+=1)Xn.release(q.shapes[pe]);q._length=0,p===v&&($=rl.double($),v*=2),$[p]=q,p+=1}return c}(),pi=function(){var c=-999999;function p(z,Z,V){var j=V.lastIndex,G,ne,oe,de,Oe,et,Je,Be,ot,ct=this.keyframes;if(z<ct[0].t-this.offsetTime)G=ct[0].s[0],oe=!0,j=0;else if(z>=ct[ct.length-1].t-this.offsetTime)G=ct[ct.length-1].s?ct[ct.length-1].s[0]:ct[ct.length-2].e[0],oe=!0;else{for(var Ie=j,be=ct.length-1,ue=!0,J,ge,Ne;ue&&(J=ct[Ie],ge=ct[Ie+1],!(ge.t-this.offsetTime>z));)Ie<be-1?Ie+=1:ue=!1;if(Ne=this.keyframesMetadata[Ie]||{},oe=J.h===1,j=Ie,!oe){if(z>=ge.t-this.offsetTime)Be=1;else if(z<J.t-this.offsetTime)Be=0;else{var ke;Ne.__fnct?ke=Ne.__fnct:(ke=pa.getBezierEasing(J.o.x,J.o.y,J.i.x,J.i.y).get,Ne.__fnct=ke),Be=ke((z-(J.t-this.offsetTime))/(ge.t-this.offsetTime-(J.t-this.offsetTime)))}ne=ge.s?ge.s[0]:J.e[0]}G=J.s[0]}for(et=Z._length,Je=G.i[0].length,V.lastIndex=j,de=0;de<et;de+=1)for(Oe=0;Oe<Je;Oe+=1)ot=oe?G.i[de][Oe]:G.i[de][Oe]+(ne.i[de][Oe]-G.i[de][Oe])*Be,Z.i[de][Oe]=ot,ot=oe?G.o[de][Oe]:G.o[de][Oe]+(ne.o[de][Oe]-G.o[de][Oe])*Be,Z.o[de][Oe]=ot,ot=oe?G.v[de][Oe]:G.v[de][Oe]+(ne.v[de][Oe]-G.v[de][Oe])*Be,Z.v[de][Oe]=ot}function v(){var z=this.comp.renderedFrame-this.offsetTime,Z=this.keyframes[0].t-this.offsetTime,V=this.keyframes[this.keyframes.length-1].t-this.offsetTime,j=this._caching.lastFrame;return j!==c&&(j<Z&&z<Z||j>V&&z>V)||(this._caching.lastIndex=j<z?this._caching.lastIndex:0,this.interpolateShape(z,this.pv,this._caching)),this._caching.lastFrame=z,this.pv}function $(){this.paths=this.localShapeCollection}function P(z,Z){if(z._length!==Z._length||z.c!==Z.c)return!1;var V,j=z._length;for(V=0;V<j;V+=1)if(z.v[V][0]!==Z.v[V][0]||z.v[V][1]!==Z.v[V][1]||z.o[V][0]!==Z.o[V][0]||z.o[V][1]!==Z.o[V][1]||z.i[V][0]!==Z.i[V][0]||z.i[V][1]!==Z.i[V][1])return!1;return!0}function _(z){P(this.v,z)||(this.v=Xn.clone(z),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function q(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var z;this.kf?z=this.pv:this.data.ks?z=this.data.ks.k:z=this.data.pt.k;var Z,V=this.effectsSequence.length;for(Z=0;Z<V;Z+=1)z=this.effectsSequence[Z](z);this.setVValue(z),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function pe(z,Z,V){this.propType="shape",this.comp=z.comp,this.container=z,this.elem=z,this.data=Z,this.k=!1,this.kf=!1,this._mdf=!1;var j=V===3?Z.pt.k:Z.ks.k;this.v=Xn.clone(j),this.pv=Xn.clone(this.v),this.localShapeCollection=ks.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=$,this.effectsSequence=[]}function Q(z){this.effectsSequence.push(z),this.container.addDynamicProperty(this)}pe.prototype.interpolateShape=p,pe.prototype.getValue=q,pe.prototype.setVValue=_,pe.prototype.addEffect=Q;function ye(z,Z,V){this.propType="shape",this.comp=z.comp,this.elem=z,this.container=z,this.offsetTime=z.data.st,this.keyframes=V===3?Z.pt.k:Z.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var j=this.keyframes[0].s[0].i.length;this.v=Xn.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,j),this.pv=Xn.clone(this.v),this.localShapeCollection=ks.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=c,this.reset=$,this._caching={lastFrame:c,lastIndex:0},this.effectsSequence=[v.bind(this)]}ye.prototype.getValue=q,ye.prototype.interpolateShape=p,ye.prototype.setVValue=_,ye.prototype.addEffect=Q;var Ce=function(){var z=me;function Z(V,j){this.v=Xn.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=ks.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=j.d,this.elem=V,this.comp=V.comp,this.frameId=-1,this.initDynamicPropertyContainer(V),this.p=st.getProp(V,j.p,1,0,this),this.s=st.getProp(V,j.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return Z.prototype={reset:$,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var j=this.p.v[0],G=this.p.v[1],ne=this.s.v[0]/2,oe=this.s.v[1]/2,de=this.d!==3,Oe=this.v;Oe.v[0][0]=j,Oe.v[0][1]=G-oe,Oe.v[1][0]=de?j+ne:j-ne,Oe.v[1][1]=G,Oe.v[2][0]=j,Oe.v[2][1]=G+oe,Oe.v[3][0]=de?j-ne:j+ne,Oe.v[3][1]=G,Oe.i[0][0]=de?j-ne*z:j+ne*z,Oe.i[0][1]=G-oe,Oe.i[1][0]=de?j+ne:j-ne,Oe.i[1][1]=G-oe*z,Oe.i[2][0]=de?j+ne*z:j-ne*z,Oe.i[2][1]=G+oe,Oe.i[3][0]=de?j-ne:j+ne,Oe.i[3][1]=G+oe*z,Oe.o[0][0]=de?j+ne*z:j-ne*z,Oe.o[0][1]=G-oe,Oe.o[1][0]=de?j+ne:j-ne,Oe.o[1][1]=G+oe*z,Oe.o[2][0]=de?j-ne*z:j+ne*z,Oe.o[2][1]=G+oe,Oe.o[3][0]=de?j-ne:j+ne,Oe.o[3][1]=G-oe*z}},Me([dn],Z),Z}(),Re=function(){function z(Z,V){this.v=Xn.newElement(),this.v.setPathData(!0,0),this.elem=Z,this.comp=Z.comp,this.data=V,this.frameId=-1,this.d=V.d,this.initDynamicPropertyContainer(Z),V.sy===1?(this.ir=st.getProp(Z,V.ir,0,0,this),this.is=st.getProp(Z,V.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=st.getProp(Z,V.pt,0,0,this),this.p=st.getProp(Z,V.p,1,0,this),this.r=st.getProp(Z,V.r,0,mt,this),this.or=st.getProp(Z,V.or,0,0,this),this.os=st.getProp(Z,V.os,0,.01,this),this.localShapeCollection=ks.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return z.prototype={reset:$,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var V=Math.floor(this.pt.v)*2,j=Math.PI*2/V,G=!0,ne=this.or.v,oe=this.ir.v,de=this.os.v,Oe=this.is.v,et=2*Math.PI*ne/(V*2),Je=2*Math.PI*oe/(V*2),Be,ot,ct,Ie,be=-Math.PI/2;be+=this.r.v;var ue=this.data.d===3?-1:1;for(this.v._length=0,Be=0;Be<V;Be+=1){ot=G?ne:oe,ct=G?de:Oe,Ie=G?et:Je;var J=ot*Math.cos(be),ge=ot*Math.sin(be),Ne=J===0&&ge===0?0:ge/Math.sqrt(J*J+ge*ge),ke=J===0&&ge===0?0:-J/Math.sqrt(J*J+ge*ge);J+=+this.p.v[0],ge+=+this.p.v[1],this.v.setTripleAt(J,ge,J-Ne*Ie*ct*ue,ge-ke*Ie*ct*ue,J+Ne*Ie*ct*ue,ge+ke*Ie*ct*ue,Be,!0),G=!G,be+=j*ue}},convertPolygonToPath:function(){var V=Math.floor(this.pt.v),j=Math.PI*2/V,G=this.or.v,ne=this.os.v,oe=2*Math.PI*G/(V*4),de,Oe=-Math.PI*.5,et=this.data.d===3?-1:1;for(Oe+=this.r.v,this.v._length=0,de=0;de<V;de+=1){var Je=G*Math.cos(Oe),Be=G*Math.sin(Oe),ot=Je===0&&Be===0?0:Be/Math.sqrt(Je*Je+Be*Be),ct=Je===0&&Be===0?0:-Je/Math.sqrt(Je*Je+Be*Be);Je+=+this.p.v[0],Be+=+this.p.v[1],this.v.setTripleAt(Je,Be,Je-ot*oe*ne*et,Be-ct*oe*ne*et,Je+ot*oe*ne*et,Be+ct*oe*ne*et,de,!0),Oe+=j*et}this.paths.length=0,this.paths[0]=this.v}},Me([dn],z),z}(),F=function(){function z(Z,V){this.v=Xn.newElement(),this.v.c=!0,this.localShapeCollection=ks.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=Z,this.comp=Z.comp,this.frameId=-1,this.d=V.d,this.initDynamicPropertyContainer(Z),this.p=st.getProp(Z,V.p,1,0,this),this.s=st.getProp(Z,V.s,1,0,this),this.r=st.getProp(Z,V.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return z.prototype={convertRectToPath:function(){var V=this.p.v[0],j=this.p.v[1],G=this.s.v[0]/2,ne=this.s.v[1]/2,oe=Mt(G,ne,this.r.v),de=oe*(1-me);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(V+G,j-ne+oe,V+G,j-ne+oe,V+G,j-ne+de,0,!0),this.v.setTripleAt(V+G,j+ne-oe,V+G,j+ne-de,V+G,j+ne-oe,1,!0),oe!==0?(this.v.setTripleAt(V+G-oe,j+ne,V+G-oe,j+ne,V+G-de,j+ne,2,!0),this.v.setTripleAt(V-G+oe,j+ne,V-G+de,j+ne,V-G+oe,j+ne,3,!0),this.v.setTripleAt(V-G,j+ne-oe,V-G,j+ne-oe,V-G,j+ne-de,4,!0),this.v.setTripleAt(V-G,j-ne+oe,V-G,j-ne+de,V-G,j-ne+oe,5,!0),this.v.setTripleAt(V-G+oe,j-ne,V-G+oe,j-ne,V-G+de,j-ne,6,!0),this.v.setTripleAt(V+G-oe,j-ne,V+G-de,j-ne,V+G-oe,j-ne,7,!0)):(this.v.setTripleAt(V-G,j+ne,V-G+de,j+ne,V-G,j+ne,2),this.v.setTripleAt(V-G,j-ne,V-G,j-ne+de,V-G,j-ne,3))):(this.v.setTripleAt(V+G,j-ne+oe,V+G,j-ne+de,V+G,j-ne+oe,0,!0),oe!==0?(this.v.setTripleAt(V+G-oe,j-ne,V+G-oe,j-ne,V+G-de,j-ne,1,!0),this.v.setTripleAt(V-G+oe,j-ne,V-G+de,j-ne,V-G+oe,j-ne,2,!0),this.v.setTripleAt(V-G,j-ne+oe,V-G,j-ne+oe,V-G,j-ne+de,3,!0),this.v.setTripleAt(V-G,j+ne-oe,V-G,j+ne-de,V-G,j+ne-oe,4,!0),this.v.setTripleAt(V-G+oe,j+ne,V-G+oe,j+ne,V-G+de,j+ne,5,!0),this.v.setTripleAt(V+G-oe,j+ne,V+G-de,j+ne,V+G-oe,j+ne,6,!0),this.v.setTripleAt(V+G,j+ne-oe,V+G,j+ne-oe,V+G,j+ne-de,7,!0)):(this.v.setTripleAt(V-G,j-ne,V-G+de,j-ne,V-G,j-ne,1,!0),this.v.setTripleAt(V-G,j+ne,V-G,j+ne-de,V-G,j+ne,2,!0),this.v.setTripleAt(V+G,j+ne,V+G-de,j+ne,V+G,j+ne,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:$},Me([dn],z),z}();function ee(z,Z,V){var j;if(V===3||V===4){var G=V===3?Z.pt:Z.ks,ne=G.k;ne.length?j=new ye(z,Z,V):j=new pe(z,Z,V)}else V===5?j=new F(z,Z):V===6?j=new Ce(z,Z):V===7&&(j=new Re(z,Z));return j.k&&z.addDynamicProperty(j),j}function Y(){return pe}function fe(){return ye}var ce={};return ce.getShapeProp=ee,ce.getConstructorFunction=Y,ce.getKeyframedConstructorFunction=fe,ce}();/*!
|
|
136
|
+
Transformation Matrix v2.0
|
|
137
|
+
(c) Epistemex 2014-2015
|
|
138
|
+
www.epistemex.com
|
|
139
|
+
By Ken Fyrstenberg
|
|
140
|
+
Contributions by leeoniya.
|
|
141
|
+
License: MIT, header required.
|
|
142
|
+
*/var Ln=function(){var c=Math.cos,p=Math.sin,v=Math.tan,$=Math.round;function P(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function _(ue){if(ue===0)return this;var J=c(ue),ge=p(ue);return this._t(J,-ge,0,0,ge,J,0,0,0,0,1,0,0,0,0,1)}function q(ue){if(ue===0)return this;var J=c(ue),ge=p(ue);return this._t(1,0,0,0,0,J,-ge,0,0,ge,J,0,0,0,0,1)}function pe(ue){if(ue===0)return this;var J=c(ue),ge=p(ue);return this._t(J,0,ge,0,0,1,0,0,-ge,0,J,0,0,0,0,1)}function Q(ue){if(ue===0)return this;var J=c(ue),ge=p(ue);return this._t(J,-ge,0,0,ge,J,0,0,0,0,1,0,0,0,0,1)}function ye(ue,J){return this._t(1,J,ue,1,0,0)}function Ce(ue,J){return this.shear(v(ue),v(J))}function Re(ue,J){var ge=c(J),Ne=p(J);return this._t(ge,Ne,0,0,-Ne,ge,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,v(ue),1,0,0,0,0,1,0,0,0,0,1)._t(ge,-Ne,0,0,Ne,ge,0,0,0,0,1,0,0,0,0,1)}function F(ue,J,ge){return!ge&&ge!==0&&(ge=1),ue===1&&J===1&&ge===1?this:this._t(ue,0,0,0,0,J,0,0,0,0,ge,0,0,0,0,1)}function ee(ue,J,ge,Ne,ke,lt,Tt,Et,$n,Ht,dr,Jn,Nn,Un,qn,br){return this.props[0]=ue,this.props[1]=J,this.props[2]=ge,this.props[3]=Ne,this.props[4]=ke,this.props[5]=lt,this.props[6]=Tt,this.props[7]=Et,this.props[8]=$n,this.props[9]=Ht,this.props[10]=dr,this.props[11]=Jn,this.props[12]=Nn,this.props[13]=Un,this.props[14]=qn,this.props[15]=br,this}function Y(ue,J,ge){return ge=ge||0,ue!==0||J!==0||ge!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,ue,J,ge,1):this}function fe(ue,J,ge,Ne,ke,lt,Tt,Et,$n,Ht,dr,Jn,Nn,Un,qn,br){var ft=this.props;if(ue===1&&J===0&&ge===0&&Ne===0&&ke===0&<===1&&Tt===0&&Et===0&&$n===0&&Ht===0&&dr===1&&Jn===0)return ft[12]=ft[12]*ue+ft[15]*Nn,ft[13]=ft[13]*lt+ft[15]*Un,ft[14]=ft[14]*dr+ft[15]*qn,ft[15]*=br,this._identityCalculated=!1,this;var fn=ft[0],Qr=ft[1],ki=ft[2],cs=ft[3],vi=ft[4],fs=ft[5],ds=ft[6],Zt=ft[7],xn=ft[8],Us=ft[9],yi=ft[10],hs=ft[11],bi=ft[12],ps=ft[13],qs=ft[14],uo=ft[15];return ft[0]=fn*ue+Qr*ke+ki*$n+cs*Nn,ft[1]=fn*J+Qr*lt+ki*Ht+cs*Un,ft[2]=fn*ge+Qr*Tt+ki*dr+cs*qn,ft[3]=fn*Ne+Qr*Et+ki*Jn+cs*br,ft[4]=vi*ue+fs*ke+ds*$n+Zt*Nn,ft[5]=vi*J+fs*lt+ds*Ht+Zt*Un,ft[6]=vi*ge+fs*Tt+ds*dr+Zt*qn,ft[7]=vi*Ne+fs*Et+ds*Jn+Zt*br,ft[8]=xn*ue+Us*ke+yi*$n+hs*Nn,ft[9]=xn*J+Us*lt+yi*Ht+hs*Un,ft[10]=xn*ge+Us*Tt+yi*dr+hs*qn,ft[11]=xn*Ne+Us*Et+yi*Jn+hs*br,ft[12]=bi*ue+ps*ke+qs*$n+uo*Nn,ft[13]=bi*J+ps*lt+qs*Ht+uo*Un,ft[14]=bi*ge+ps*Tt+qs*dr+uo*qn,ft[15]=bi*Ne+ps*Et+qs*Jn+uo*br,this._identityCalculated=!1,this}function ce(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function z(ue){for(var J=0;J<16;){if(ue.props[J]!==this.props[J])return!1;J+=1}return!0}function Z(ue){var J;for(J=0;J<16;J+=1)ue.props[J]=this.props[J];return ue}function V(ue){var J;for(J=0;J<16;J+=1)this.props[J]=ue[J]}function j(ue,J,ge){return{x:ue*this.props[0]+J*this.props[4]+ge*this.props[8]+this.props[12],y:ue*this.props[1]+J*this.props[5]+ge*this.props[9]+this.props[13],z:ue*this.props[2]+J*this.props[6]+ge*this.props[10]+this.props[14]}}function G(ue,J,ge){return ue*this.props[0]+J*this.props[4]+ge*this.props[8]+this.props[12]}function ne(ue,J,ge){return ue*this.props[1]+J*this.props[5]+ge*this.props[9]+this.props[13]}function oe(ue,J,ge){return ue*this.props[2]+J*this.props[6]+ge*this.props[10]+this.props[14]}function de(){var ue=this.props[0]*this.props[5]-this.props[1]*this.props[4],J=this.props[5]/ue,ge=-this.props[1]/ue,Ne=-this.props[4]/ue,ke=this.props[0]/ue,lt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/ue,Tt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/ue,Et=new Ln;return Et.props[0]=J,Et.props[1]=ge,Et.props[4]=Ne,Et.props[5]=ke,Et.props[12]=lt,Et.props[13]=Tt,Et}function Oe(ue){var J=this.getInverseMatrix();return J.applyToPointArray(ue[0],ue[1],ue[2]||0)}function et(ue){var J,ge=ue.length,Ne=[];for(J=0;J<ge;J+=1)Ne[J]=Oe(ue[J]);return Ne}function Je(ue,J,ge){var Ne=Ae("float32",6);if(this.isIdentity())Ne[0]=ue[0],Ne[1]=ue[1],Ne[2]=J[0],Ne[3]=J[1],Ne[4]=ge[0],Ne[5]=ge[1];else{var ke=this.props[0],lt=this.props[1],Tt=this.props[4],Et=this.props[5],$n=this.props[12],Ht=this.props[13];Ne[0]=ue[0]*ke+ue[1]*Tt+$n,Ne[1]=ue[0]*lt+ue[1]*Et+Ht,Ne[2]=J[0]*ke+J[1]*Tt+$n,Ne[3]=J[0]*lt+J[1]*Et+Ht,Ne[4]=ge[0]*ke+ge[1]*Tt+$n,Ne[5]=ge[0]*lt+ge[1]*Et+Ht}return Ne}function Be(ue,J,ge){var Ne;return this.isIdentity()?Ne=[ue,J,ge]:Ne=[ue*this.props[0]+J*this.props[4]+ge*this.props[8]+this.props[12],ue*this.props[1]+J*this.props[5]+ge*this.props[9]+this.props[13],ue*this.props[2]+J*this.props[6]+ge*this.props[10]+this.props[14]],Ne}function ot(ue,J){if(this.isIdentity())return ue+","+J;var ge=this.props;return Math.round((ue*ge[0]+J*ge[4]+ge[12])*100)/100+","+Math.round((ue*ge[1]+J*ge[5]+ge[13])*100)/100}function ct(){for(var ue=0,J=this.props,ge="matrix3d(",Ne=1e4;ue<16;)ge+=$(J[ue]*Ne)/Ne,ge+=ue===15?")":",",ue+=1;return ge}function Ie(ue){var J=1e4;return ue<1e-6&&ue>0||ue>-1e-6&&ue<0?$(ue*J)/J:ue}function be(){var ue=this.props,J=Ie(ue[0]),ge=Ie(ue[1]),Ne=Ie(ue[4]),ke=Ie(ue[5]),lt=Ie(ue[12]),Tt=Ie(ue[13]);return"matrix("+J+","+ge+","+Ne+","+ke+","+lt+","+Tt+")"}return function(){this.reset=P,this.rotate=_,this.rotateX=q,this.rotateY=pe,this.rotateZ=Q,this.skew=Ce,this.skewFromAxis=Re,this.shear=ye,this.scale=F,this.setTransform=ee,this.translate=Y,this.transform=fe,this.applyToPoint=j,this.applyToX=G,this.applyToY=ne,this.applyToZ=oe,this.applyToPointArray=Be,this.applyToTriplePoints=Je,this.applyToPointStringified=ot,this.toCSS=ct,this.to2dCSS=be,this.clone=Z,this.cloneFromProps=V,this.equals=z,this.inversePoints=et,this.inversePoint=Oe,this.getInverseMatrix=de,this._t=this.transform,this.isIdentity=ce,this._identity=!0,this._identityCalculated=!1,this.props=Ae("float32",16),this.reset()}}();function no(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?no=function(v){return typeof v}:no=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},no(c)}var Ut={};function Uc(c){xe(c)}function al(){En.searchAnimations()}function qc(c){Wt(c)}function Ko(c){Vo(c)}function ma(c){return En.loadAnimation(c)}function ol(c){if(typeof c=="string")switch(c){case"high":kr(200);break;default:case"medium":kr(50);break;case"low":kr(10);break}else!isNaN(c)&&c>1&&kr(c)}function Uo(){return typeof navigator<"u"}function zc(c,p){c==="expressions"&&Zr(p)}function Wc(c){switch(c){case"propertyFactory":return st;case"shapePropertyFactory":return pi;case"matrix":return Ln;default:return null}}Ut.play=En.play,Ut.pause=En.pause,Ut.setLocationHref=Uc,Ut.togglePause=En.togglePause,Ut.setSpeed=En.setSpeed,Ut.setDirection=En.setDirection,Ut.stop=En.stop,Ut.searchAnimations=al,Ut.registerAnimation=En.registerAnimation,Ut.loadAnimation=ma,Ut.setSubframeRendering=qc,Ut.resize=En.resize,Ut.goToAndStop=En.goToAndStop,Ut.destroy=En.destroy,Ut.setQuality=ol,Ut.inBrowser=Uo,Ut.installPlugin=zc,Ut.freeze=En.freeze,Ut.unfreeze=En.unfreeze,Ut.setVolume=En.setVolume,Ut.mute=En.mute,Ut.unmute=En.unmute,Ut.getRegisteredAnimations=En.getRegisteredAnimations,Ut.useWebWorker=U,Ut.setIDPrefix=Ko,Ut.__getFactory=Wc,Ut.version="5.10.2";function Hc(){document.readyState==="complete"&&(clearInterval(cl),al())}function ul(c){for(var p=qo.split("&"),v=0;v<p.length;v+=1){var $=p[v].split("=");if(decodeURIComponent($[0])==c)return decodeURIComponent($[1])}return null}var qo="";{var zo=document.getElementsByTagName("script"),ga=zo.length-1,ll=zo[ga]||{src:""};qo=ll.src?ll.src.replace(/^[^\?]+\??/,""):"",ul("renderer")}var cl=setInterval(Hc,100);try{no(ie)!=="object"&&(window.bodymovin=Ut)}catch{}var Or=function(){var c={},p={};c.registerModifier=v,c.getModifier=$;function v(P,_){p[P]||(p[P]=_)}function $(P,_,q){return new p[P](_,q)}return c}();function vr(){}vr.prototype.initModifierProperties=function(){},vr.prototype.addShapeToModifier=function(){},vr.prototype.addShape=function(c){if(!this.closed){c.sh.container.addDynamicProperty(c.sh);var p={shape:c.sh,data:c,localShapeCollection:ks.newShapeCollection()};this.shapes.push(p),this.addShapeToModifier(p),this._isAnimated&&c.setAsAnimated()}},vr.prototype.init=function(c,p){this.shapes=[],this.elem=c,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,p),this.frameId=he,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},vr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},Me([dn],vr);function Ir(){}Me([vr],Ir),Ir.prototype.initModifierProperties=function(c,p){this.s=st.getProp(c,p.s,0,.01,this),this.e=st.getProp(c,p.e,0,.01,this),this.o=st.getProp(c,p.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=p.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Ir.prototype.addShapeToModifier=function(c){c.pathsData=[]},Ir.prototype.calculateShapeEdges=function(c,p,v,$,P){var _=[];p<=1?_.push({s:c,e:p}):c>=1?_.push({s:c-1,e:p-1}):(_.push({s:c,e:1}),_.push({s:0,e:p-1}));var q=[],pe,Q=_.length,ye;for(pe=0;pe<Q;pe+=1)if(ye=_[pe],!(ye.e*P<$||ye.s*P>$+v)){var Ce,Re;ye.s*P<=$?Ce=0:Ce=(ye.s*P-$)/v,ye.e*P>=$+v?Re=1:Re=(ye.e*P-$)/v,q.push([Ce,Re])}return q.length||q.push([0,0]),q},Ir.prototype.releasePathsData=function(c){var p,v=c.length;for(p=0;p<v;p+=1)sl.release(c[p]);return c.length=0,c},Ir.prototype.processShapes=function(c){var p,v;if(this._mdf||c){var $=this.o.v%360/360;if($<0&&($+=1),this.s.v>1?p=1+$:this.s.v<0?p=0+$:p=this.s.v+$,this.e.v>1?v=1+$:this.e.v<0?v=0+$:v=this.e.v+$,p>v){var P=p;p=v,v=P}p=Math.round(p*1e4)*1e-4,v=Math.round(v*1e4)*1e-4,this.sValue=p,this.eValue=v}else p=this.sValue,v=this.eValue;var _,q,pe=this.shapes.length,Q,ye,Ce,Re,F,ee=0;if(v===p)for(q=0;q<pe;q+=1)this.shapes[q].localShapeCollection.releaseShapes(),this.shapes[q].shape._mdf=!0,this.shapes[q].shape.paths=this.shapes[q].localShapeCollection,this._mdf&&(this.shapes[q].pathsData.length=0);else if(v===1&&p===0||v===0&&p===1){if(this._mdf)for(q=0;q<pe;q+=1)this.shapes[q].pathsData.length=0,this.shapes[q].shape._mdf=!0}else{var Y=[],fe,ce;for(q=0;q<pe;q+=1)if(fe=this.shapes[q],!fe.shape._mdf&&!this._mdf&&!c&&this.m!==2)fe.shape.paths=fe.localShapeCollection;else{if(_=fe.shape.paths,ye=_._length,F=0,!fe.shape._mdf&&fe.pathsData.length)F=fe.totalShapeLength;else{for(Ce=this.releasePathsData(fe.pathsData),Q=0;Q<ye;Q+=1)Re=Xr.getSegmentsLength(_.shapes[Q]),Ce.push(Re),F+=Re.totalLength;fe.totalShapeLength=F,fe.pathsData=Ce}ee+=F,fe.shape._mdf=!0}var z=p,Z=v,V=0,j;for(q=pe-1;q>=0;q-=1)if(fe=this.shapes[q],fe.shape._mdf){for(ce=fe.localShapeCollection,ce.releaseShapes(),this.m===2&&pe>1?(j=this.calculateShapeEdges(p,v,fe.totalShapeLength,V,ee),V+=fe.totalShapeLength):j=[[z,Z]],ye=j.length,Q=0;Q<ye;Q+=1){z=j[Q][0],Z=j[Q][1],Y.length=0,Z<=1?Y.push({s:fe.totalShapeLength*z,e:fe.totalShapeLength*Z}):z>=1?Y.push({s:fe.totalShapeLength*(z-1),e:fe.totalShapeLength*(Z-1)}):(Y.push({s:fe.totalShapeLength*z,e:fe.totalShapeLength}),Y.push({s:0,e:fe.totalShapeLength*(Z-1)}));var G=this.addShapes(fe,Y[0]);if(Y[0].s!==Y[0].e){if(Y.length>1){var ne=fe.shape.paths.shapes[fe.shape.paths._length-1];if(ne.c){var oe=G.pop();this.addPaths(G,ce),G=this.addShapes(fe,Y[1],oe)}else this.addPaths(G,ce),G=this.addShapes(fe,Y[1])}this.addPaths(G,ce)}}fe.shape.paths=ce}}},Ir.prototype.addPaths=function(c,p){var v,$=c.length;for(v=0;v<$;v+=1)p.addShape(c[v])},Ir.prototype.addSegment=function(c,p,v,$,P,_,q){P.setXYAt(p[0],p[1],"o",_),P.setXYAt(v[0],v[1],"i",_+1),q&&P.setXYAt(c[0],c[1],"v",_),P.setXYAt($[0],$[1],"v",_+1)},Ir.prototype.addSegmentFromArray=function(c,p,v,$){p.setXYAt(c[1],c[5],"o",v),p.setXYAt(c[2],c[6],"i",v+1),$&&p.setXYAt(c[0],c[4],"v",v),p.setXYAt(c[3],c[7],"v",v+1)},Ir.prototype.addShapes=function(c,p,v){var $=c.pathsData,P=c.shape.paths.shapes,_,q=c.shape.paths._length,pe,Q,ye=0,Ce,Re,F,ee,Y=[],fe,ce=!0;for(v?(Re=v._length,fe=v._length):(v=Xn.newElement(),Re=0,fe=0),Y.push(v),_=0;_<q;_+=1){for(F=$[_].lengths,v.c=P[_].c,Q=P[_].c?F.length:F.length+1,pe=1;pe<Q;pe+=1)if(Ce=F[pe-1],ye+Ce.addedLength<p.s)ye+=Ce.addedLength,v.c=!1;else if(ye>p.e){v.c=!1;break}else p.s<=ye&&p.e>=ye+Ce.addedLength?(this.addSegment(P[_].v[pe-1],P[_].o[pe-1],P[_].i[pe],P[_].v[pe],v,Re,ce),ce=!1):(ee=Xr.getNewSegment(P[_].v[pe-1],P[_].v[pe],P[_].o[pe-1],P[_].i[pe],(p.s-ye)/Ce.addedLength,(p.e-ye)/Ce.addedLength,F[pe-1]),this.addSegmentFromArray(ee,v,Re,ce),ce=!1,v.c=!1),ye+=Ce.addedLength,Re+=1;if(P[_].c&&F.length){if(Ce=F[pe-1],ye<=p.e){var z=F[pe-1].addedLength;p.s<=ye&&p.e>=ye+z?(this.addSegment(P[_].v[pe-1],P[_].o[pe-1],P[_].i[0],P[_].v[0],v,Re,ce),ce=!1):(ee=Xr.getNewSegment(P[_].v[pe-1],P[_].v[0],P[_].o[pe-1],P[_].i[0],(p.s-ye)/z,(p.e-ye)/z,F[pe-1]),this.addSegmentFromArray(ee,v,Re,ce),ce=!1,v.c=!1)}else v.c=!1;ye+=Ce.addedLength,Re+=1}if(v._length&&(v.setXYAt(v.v[fe][0],v.v[fe][1],"i",fe),v.setXYAt(v.v[v._length-1][0],v.v[v._length-1][1],"o",v._length-1)),ye>p.e)break;_<q-1&&(v=Xn.newElement(),ce=!0,Y.push(v),Re=0)}return Y};function Os(){}Me([vr],Os),Os.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amount=st.getProp(c,p.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Os.prototype.processPath=function(c,p){var v=p/100,$=[0,0],P=c._length,_=0;for(_=0;_<P;_+=1)$[0]+=c.v[_][0],$[1]+=c.v[_][1];$[0]/=P,$[1]/=P;var q=Xn.newElement();q.c=c.c;var pe,Q,ye,Ce,Re,F;for(_=0;_<P;_+=1)pe=c.v[_][0]+($[0]-c.v[_][0])*v,Q=c.v[_][1]+($[1]-c.v[_][1])*v,ye=c.o[_][0]+($[0]-c.o[_][0])*-v,Ce=c.o[_][1]+($[1]-c.o[_][1])*-v,Re=c.i[_][0]+($[0]-c.i[_][0])*-v,F=c.i[_][1]+($[1]-c.i[_][1])*-v,q.setTripleAt(pe,Q,ye,Ce,Re,F,_);return q},Os.prototype.processShapes=function(c){var p,v,$=this.shapes.length,P,_,q=this.amount.v;if(q!==0){var pe,Q;for(v=0;v<$;v+=1){if(pe=this.shapes[v],Q=pe.localShapeCollection,!(!pe.shape._mdf&&!this._mdf&&!c))for(Q.releaseShapes(),pe.shape._mdf=!0,p=pe.shape.paths.shapes,_=pe.shape.paths._length,P=0;P<_;P+=1)Q.addShape(this.processPath(p[P],q));pe.shape.paths=pe.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var ro=function(){var c=[0,0];function p(Q){var ye=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||ye,this.a&&Q.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&Q.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&Q.skewFromAxis(-this.sk.v,this.sa.v),this.r?Q.rotate(-this.r.v):Q.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?Q.translate(this.px.v,this.py.v,-this.pz.v):Q.translate(this.px.v,this.py.v,0):Q.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function v(Q){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||Q){var ye;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var Ce,Re;if(ye=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(Ce=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/ye,0),Re=this.p.getValueAtTime(this.p.keyframes[0].t/ye,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(Ce=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/ye,0),Re=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/ye,0)):(Ce=this.p.pv,Re=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/ye,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){Ce=[],Re=[];var F=this.px,ee=this.py;F._caching.lastFrame+F.offsetTime<=F.keyframes[0].t?(Ce[0]=F.getValueAtTime((F.keyframes[0].t+.01)/ye,0),Ce[1]=ee.getValueAtTime((ee.keyframes[0].t+.01)/ye,0),Re[0]=F.getValueAtTime(F.keyframes[0].t/ye,0),Re[1]=ee.getValueAtTime(ee.keyframes[0].t/ye,0)):F._caching.lastFrame+F.offsetTime>=F.keyframes[F.keyframes.length-1].t?(Ce[0]=F.getValueAtTime(F.keyframes[F.keyframes.length-1].t/ye,0),Ce[1]=ee.getValueAtTime(ee.keyframes[ee.keyframes.length-1].t/ye,0),Re[0]=F.getValueAtTime((F.keyframes[F.keyframes.length-1].t-.01)/ye,0),Re[1]=ee.getValueAtTime((ee.keyframes[ee.keyframes.length-1].t-.01)/ye,0)):(Ce=[F.pv,ee.pv],Re[0]=F.getValueAtTime((F._caching.lastFrame+F.offsetTime-.01)/ye,F.offsetTime),Re[1]=ee.getValueAtTime((ee._caching.lastFrame+ee.offsetTime-.01)/ye,ee.offsetTime))}else Re=c,Ce=Re;this.v.rotate(-Math.atan2(Ce[1]-Re[1],Ce[0]-Re[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function $(){if(!this.a.k)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function P(){}function _(Q){this._addDynamicProperty(Q),this.elem.addDynamicProperty(Q),this._isDirty=!0}function q(Q,ye,Ce){if(this.elem=Q,this.frameId=-1,this.propType="transform",this.data=ye,this.v=new Ln,this.pre=new Ln,this.appliedTransformations=0,this.initDynamicPropertyContainer(Ce||Q),ye.p&&ye.p.s?(this.px=st.getProp(Q,ye.p.x,0,0,this),this.py=st.getProp(Q,ye.p.y,0,0,this),ye.p.z&&(this.pz=st.getProp(Q,ye.p.z,0,0,this))):this.p=st.getProp(Q,ye.p||{k:[0,0,0]},1,0,this),ye.rx){if(this.rx=st.getProp(Q,ye.rx,0,mt,this),this.ry=st.getProp(Q,ye.ry,0,mt,this),this.rz=st.getProp(Q,ye.rz,0,mt,this),ye.or.k[0].ti){var Re,F=ye.or.k.length;for(Re=0;Re<F;Re+=1)ye.or.k[Re].to=null,ye.or.k[Re].ti=null}this.or=st.getProp(Q,ye.or,1,mt,this),this.or.sh=!0}else this.r=st.getProp(Q,ye.r||{k:0},0,mt,this);ye.sk&&(this.sk=st.getProp(Q,ye.sk,0,mt,this),this.sa=st.getProp(Q,ye.sa,0,mt,this)),this.a=st.getProp(Q,ye.a||{k:[0,0,0]},1,0,this),this.s=st.getProp(Q,ye.s||{k:[100,100,100]},1,.01,this),ye.o?this.o=st.getProp(Q,ye.o,0,.01,Q):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}q.prototype={applyToMatrix:p,getValue:v,precalculateMatrix:$,autoOrient:P},Me([dn],q),q.prototype.addDynamicProperty=_,q.prototype._addDynamicProperty=dn.prototype.addDynamicProperty;function pe(Q,ye,Ce){return new q(Q,ye,Ce)}return{getTransformProperty:pe}}();function yr(){}Me([vr],yr),yr.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.c=st.getProp(c,p.c,0,null,this),this.o=st.getProp(c,p.o,0,null,this),this.tr=ro.getTransformProperty(c,p.tr,this),this.so=st.getProp(c,p.tr.so,0,.01,this),this.eo=st.getProp(c,p.tr.eo,0,.01,this),this.data=p,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Ln,this.rMatrix=new Ln,this.sMatrix=new Ln,this.tMatrix=new Ln,this.matrix=new Ln},yr.prototype.applyTransforms=function(c,p,v,$,P,_){var q=_?-1:1,pe=$.s.v[0]+(1-$.s.v[0])*(1-P),Q=$.s.v[1]+(1-$.s.v[1])*(1-P);c.translate($.p.v[0]*q*P,$.p.v[1]*q*P,$.p.v[2]),p.translate(-$.a.v[0],-$.a.v[1],$.a.v[2]),p.rotate(-$.r.v*q*P),p.translate($.a.v[0],$.a.v[1],$.a.v[2]),v.translate(-$.a.v[0],-$.a.v[1],$.a.v[2]),v.scale(_?1/pe:pe,_?1/Q:Q),v.translate($.a.v[0],$.a.v[1],$.a.v[2])},yr.prototype.init=function(c,p,v,$){for(this.elem=c,this.arr=p,this.pos=v,this.elemsData=$,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,p[v]);v>0;)v-=1,this._elements.unshift(p[v]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},yr.prototype.resetElements=function(c){var p,v=c.length;for(p=0;p<v;p+=1)c[p]._processed=!1,c[p].ty==="gr"&&this.resetElements(c[p].it)},yr.prototype.cloneElements=function(c){var p=JSON.parse(JSON.stringify(c));return this.resetElements(p),p},yr.prototype.changeGroupRender=function(c,p){var v,$=c.length;for(v=0;v<$;v+=1)c[v]._render=p,c[v].ty==="gr"&&this.changeGroupRender(c[v].it,p)},yr.prototype.processShapes=function(c){var p,v,$,P,_,q=!1;if(this._mdf||c){var pe=Math.ceil(this.c.v);if(this._groups.length<pe){for(;this._groups.length<pe;){var Q={it:this.cloneElements(this._elements),ty:"gr"};Q.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,Q),this._groups.splice(0,0,Q),this._currentCopies+=1}this.elem.reloadShapes(),q=!0}_=0;var ye;for($=0;$<=this._groups.length-1;$+=1){if(ye=_<pe,this._groups[$]._render=ye,this.changeGroupRender(this._groups[$].it,ye),!ye){var Ce=this.elemsData[$].it,Re=Ce[Ce.length-1];Re.transform.op.v!==0?(Re.transform.op._mdf=!0,Re.transform.op.v=0):Re.transform.op._mdf=!1}_+=1}this._currentCopies=pe;var F=this.o.v,ee=F%1,Y=F>0?Math.floor(F):Math.ceil(F),fe=this.pMatrix.props,ce=this.rMatrix.props,z=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var Z=0;if(F>0){for(;Z<Y;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),Z+=1;ee&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,ee,!1),Z+=ee)}else if(F<0){for(;Z>Y;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),Z-=1;ee&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-ee,!0),Z-=ee)}$=this.data.m===1?0:this._currentCopies-1,P=this.data.m===1?1:-1,_=this._currentCopies;for(var V,j;_;){if(p=this.elemsData[$].it,v=p[p.length-1].transform.mProps.v.props,j=v.length,p[p.length-1].transform.mProps._mdf=!0,p[p.length-1].transform.op._mdf=!0,p[p.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*($/(this._currentCopies-1)),Z!==0){for(($!==0&&P===1||$!==this._currentCopies-1&&P===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(ce[0],ce[1],ce[2],ce[3],ce[4],ce[5],ce[6],ce[7],ce[8],ce[9],ce[10],ce[11],ce[12],ce[13],ce[14],ce[15]),this.matrix.transform(z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7],z[8],z[9],z[10],z[11],z[12],z[13],z[14],z[15]),this.matrix.transform(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5],fe[6],fe[7],fe[8],fe[9],fe[10],fe[11],fe[12],fe[13],fe[14],fe[15]),V=0;V<j;V+=1)v[V]=this.matrix.props[V];this.matrix.reset()}else for(this.matrix.reset(),V=0;V<j;V+=1)v[V]=this.matrix.props[V];Z+=1,_-=1,$+=P}}else for(_=this._currentCopies,$=0,P=1;_;)p=this.elemsData[$].it,v=p[p.length-1].transform.mProps.v.props,p[p.length-1].transform.mProps._mdf=!1,p[p.length-1].transform.op._mdf=!1,_-=1,$+=P;return q},yr.prototype.addShape=function(){};function va(){}Me([vr],va),va.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.rd=st.getProp(c,p.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},va.prototype.processPath=function(c,p){var v=Xn.newElement();v.c=c.c;var $,P=c._length,_,q,pe,Q,ye,Ce,Re=0,F,ee,Y,fe,ce,z;for($=0;$<P;$+=1)_=c.v[$],pe=c.o[$],q=c.i[$],_[0]===pe[0]&&_[1]===pe[1]&&_[0]===q[0]&&_[1]===q[1]?($===0||$===P-1)&&!c.c?(v.setTripleAt(_[0],_[1],pe[0],pe[1],q[0],q[1],Re),Re+=1):($===0?Q=c.v[P-1]:Q=c.v[$-1],ye=Math.sqrt(Math.pow(_[0]-Q[0],2)+Math.pow(_[1]-Q[1],2)),Ce=ye?Math.min(ye/2,p)/ye:0,ce=_[0]+(Q[0]-_[0])*Ce,F=ce,z=_[1]-(_[1]-Q[1])*Ce,ee=z,Y=F-(F-_[0])*me,fe=ee-(ee-_[1])*me,v.setTripleAt(F,ee,Y,fe,ce,z,Re),Re+=1,$===P-1?Q=c.v[0]:Q=c.v[$+1],ye=Math.sqrt(Math.pow(_[0]-Q[0],2)+Math.pow(_[1]-Q[1],2)),Ce=ye?Math.min(ye/2,p)/ye:0,Y=_[0]+(Q[0]-_[0])*Ce,F=Y,fe=_[1]+(Q[1]-_[1])*Ce,ee=fe,ce=F-(F-_[0])*me,z=ee-(ee-_[1])*me,v.setTripleAt(F,ee,Y,fe,ce,z,Re),Re+=1):(v.setTripleAt(c.v[$][0],c.v[$][1],c.o[$][0],c.o[$][1],c.i[$][0],c.i[$][1],Re),Re+=1);return v},va.prototype.processShapes=function(c){var p,v,$=this.shapes.length,P,_,q=this.rd.v;if(q!==0){var pe,Q;for(v=0;v<$;v+=1){if(pe=this.shapes[v],Q=pe.localShapeCollection,!(!pe.shape._mdf&&!this._mdf&&!c))for(Q.releaseShapes(),pe.shape._mdf=!0,p=pe.shape.paths.shapes,_=pe.shape.paths._length,P=0;P<_;P+=1)Q.addShape(this.processPath(p[P],q));pe.shape.paths=pe.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function ya(c,p){return Math.abs(c-p)*1e5<=Math.min(Math.abs(c),Math.abs(p))}function Pi(c){return Math.abs(c)<=1e-5}function mi(c,p,v){return c*(1-v)+p*v}function or(c,p,v){return[mi(c[0],p[0],v),mi(c[1],p[1],v)]}function _i(c,p,v){if(c===0)return[];var $=p*p-4*c*v;if($<0)return[];var P=-p/(2*c);if($===0)return[P];var _=Math.sqrt($)/(2*c);return[P-_,P+_]}function Wo(c,p,v,$){return[-c+3*p-3*v+$,3*c-6*p+3*v,-3*c+3*p,c]}function fl(c){return new mn(c,c,c,c,!1)}function mn(c,p,v,$,P){P&&os(c,p)&&(p=or(c,$,1/3)),P&&os(v,$)&&(v=or(c,$,2/3));var _=Wo(c[0],p[0],v[0],$[0]),q=Wo(c[1],p[1],v[1],$[1]);this.a=[_[0],q[0]],this.b=[_[1],q[1]],this.c=[_[2],q[2]],this.d=[_[3],q[3]],this.points=[c,p,v,$]}mn.prototype.point=function(c){return[((this.a[0]*c+this.b[0])*c+this.c[0])*c+this.d[0],((this.a[1]*c+this.b[1])*c+this.c[1])*c+this.d[1]]},mn.prototype.derivative=function(c){return[(3*c*this.a[0]+2*this.b[0])*c+this.c[0],(3*c*this.a[1]+2*this.b[1])*c+this.c[1]]},mn.prototype.tangentAngle=function(c){var p=this.derivative(c);return Math.atan2(p[1],p[0])},mn.prototype.normalAngle=function(c){var p=this.derivative(c);return Math.atan2(p[0],p[1])},mn.prototype.inflectionPoints=function(){var c=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Pi(c))return[];var p=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/c,v=p*p-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/c;if(v<0)return[];var $=Math.sqrt(v);return Pi($)?$>0&&$<1?[p]:[]:[p-$,p+$].filter(function(P){return P>0&&P<1})},mn.prototype.split=function(c){if(c<=0)return[fl(this.points[0]),this];if(c>=1)return[this,fl(this.points[this.points.length-1])];var p=or(this.points[0],this.points[1],c),v=or(this.points[1],this.points[2],c),$=or(this.points[2],this.points[3],c),P=or(p,v,c),_=or(v,$,c),q=or(P,_,c);return[new mn(this.points[0],p,P,q,!0),new mn(q,_,$,this.points[3],!0)]};function Ho(c,p){var v=c.points[0][p],$=c.points[c.points.length-1][p];if(v>$){var P=$;$=v,v=P}for(var _=_i(3*c.a[p],2*c.b[p],c.c[p]),q=0;q<_.length;q+=1)if(_[q]>0&&_[q]<1){var pe=c.point(_[q])[p];pe<v?v=pe:pe>$&&($=pe)}return{min:v,max:$}}mn.prototype.bounds=function(){return{x:Ho(this,0),y:Ho(this,1)}},mn.prototype.boundingBox=function(){var c=this.bounds();return{left:c.x.min,right:c.x.max,top:c.y.min,bottom:c.y.max,width:c.x.max-c.x.min,height:c.y.max-c.y.min,cx:(c.x.max+c.x.min)/2,cy:(c.y.max+c.y.min)/2}};function ba(c,p,v){var $=c.boundingBox();return{cx:$.cx,cy:$.cy,width:$.width,height:$.height,bez:c,t:(p+v)/2,t1:p,t2:v}}function Go(c){var p=c.bez.split(.5);return[ba(p[0],c.t1,c.t),ba(p[1],c.t,c.t2)]}function dl(c,p){return Math.abs(c.cx-p.cx)*2<c.width+p.width&&Math.abs(c.cy-p.cy)*2<c.height+p.height}function Lr(c,p,v,$,P,_){if(dl(c,p)){if(v>=_||c.width<=$&&c.height<=$&&p.width<=$&&p.height<=$){P.push([c.t,p.t]);return}var q=Go(c),pe=Go(p);Lr(q[0],pe[0],v+1,$,P,_),Lr(q[0],pe[1],v+1,$,P,_),Lr(q[1],pe[0],v+1,$,P,_),Lr(q[1],pe[1],v+1,$,P,_)}}mn.prototype.intersections=function(c,p,v){p===void 0&&(p=2),v===void 0&&(v=7);var $=[];return Lr(ba(this,0,1),ba(c,0,1),0,p,$,v),$},mn.shapeSegment=function(c,p){var v=(p+1)%c.length();return new mn(c.v[p],c.o[p],c.i[v],c.v[v],!0)},mn.shapeSegmentInverted=function(c,p){var v=(p+1)%c.length();return new mn(c.v[v],c.i[v],c.o[p],c.v[p],!0)};function Yo(c,p){return[c[1]*p[2]-c[2]*p[1],c[2]*p[0]-c[0]*p[2],c[0]*p[1]-c[1]*p[0]]}function Is(c,p,v,$){var P=[c[0],c[1],1],_=[p[0],p[1],1],q=[v[0],v[1],1],pe=[$[0],$[1],1],Q=Yo(Yo(P,_),Yo(q,pe));return Pi(Q[2])?null:[Q[0]/Q[2],Q[1]/Q[2]]}function Ls(c,p,v){return[c[0]+Math.cos(p)*v,c[1]-Math.sin(p)*v]}function $a(c,p){return Math.hypot(c[0]-p[0],c[1]-p[1])}function os(c,p){return ya(c[0],p[0])&&ya(c[1],p[1])}function xa(){}Me([vr],xa),xa.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amplitude=st.getProp(c,p.s,0,null,this),this.frequency=st.getProp(c,p.r,0,null,this),this.pointsType=st.getProp(c,p.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function io(c,p,v,$,P,_,q){var pe=v-Math.PI/2,Q=v+Math.PI/2,ye=p[0]+Math.cos(v)*$*P,Ce=p[1]-Math.sin(v)*$*P;c.setTripleAt(ye,Ce,ye+Math.cos(pe)*_,Ce-Math.sin(pe)*_,ye+Math.cos(Q)*q,Ce-Math.sin(Q)*q,c.length())}function hl(c,p){var v=[p[0]-c[0],p[1]-c[1]],$=-Math.PI*.5,P=[Math.cos($)*v[0]-Math.sin($)*v[1],Math.sin($)*v[0]+Math.cos($)*v[1]];return P}function Gc(c,p){var v=p===0?c.length()-1:p-1,$=(p+1)%c.length(),P=c.v[v],_=c.v[$],q=hl(P,_);return Math.atan2(0,1)-Math.atan2(q[1],q[0])}function wa(c,p,v,$,P,_,q){var pe=Gc(p,v),Q=p.v[v%p._length],ye=p.v[v===0?p._length-1:v-1],Ce=p.v[(v+1)%p._length],Re=_===2?Math.sqrt(Math.pow(Q[0]-ye[0],2)+Math.pow(Q[1]-ye[1],2)):0,F=_===2?Math.sqrt(Math.pow(Q[0]-Ce[0],2)+Math.pow(Q[1]-Ce[1],2)):0;io(c,p.v[v%p._length],pe,q,$,F/((P+1)*2),Re/((P+1)*2))}function Yc(c,p,v,$,P,_){for(var q=0;q<$;q+=1){var pe=(q+1)/($+1),Q=P===2?Math.sqrt(Math.pow(p.points[3][0]-p.points[0][0],2)+Math.pow(p.points[3][1]-p.points[0][1],2)):0,ye=p.normalAngle(pe),Ce=p.point(pe);io(c,Ce,ye,_,v,Q/(($+1)*2),Q/(($+1)*2)),_=-_}return _}xa.prototype.processPath=function(c,p,v,$){var P=c._length,_=Xn.newElement();if(_.c=c.c,c.c||(P-=1),P===0)return _;var q=-1,pe=mn.shapeSegment(c,0);wa(_,c,0,p,v,$,q);for(var Q=0;Q<P;Q+=1)q=Yc(_,pe,p,v,$,-q),Q===P-1&&!c.c?pe=null:pe=mn.shapeSegment(c,(Q+1)%P),wa(_,c,Q+1,p,v,$,q);return _},xa.prototype.processShapes=function(c){var p,v,$=this.shapes.length,P,_,q=this.amplitude.v,pe=Math.max(0,Math.round(this.frequency.v)),Q=this.pointsType.v;if(q!==0){var ye,Ce;for(v=0;v<$;v+=1){if(ye=this.shapes[v],Ce=ye.localShapeCollection,!(!ye.shape._mdf&&!this._mdf&&!c))for(Ce.releaseShapes(),ye.shape._mdf=!0,p=ye.shape.paths.shapes,_=ye.shape.paths._length,P=0;P<_;P+=1)Ce.addShape(this.processPath(p[P],q,pe,Q));ye.shape.paths=ye.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Ca(c,p,v){var $=Math.atan2(p[0]-c[0],p[1]-c[1]);return[Ls(c,$,v),Ls(p,$,v)]}function Yt(c,p){var v,$,P,_,q,pe,Q;Q=Ca(c.points[0],c.points[1],p),v=Q[0],$=Q[1],Q=Ca(c.points[1],c.points[2],p),P=Q[0],_=Q[1],Q=Ca(c.points[2],c.points[3],p),q=Q[0],pe=Q[1];var ye=Is(v,$,P,_);ye===null&&(ye=$);var Ce=Is(q,pe,P,_);return Ce===null&&(Ce=q),new mn(v,ye,Ce,pe)}function nn(c,p,v,$,P){var _=p.points[3],q=v.points[0];if($===3||os(_,q))return _;if($===2){var pe=-p.tangentAngle(1),Q=-v.tangentAngle(0)+Math.PI,ye=Is(_,Ls(_,pe+Math.PI/2,100),q,Ls(q,pe+Math.PI/2,100)),Ce=ye?$a(ye,_):$a(_,q)/2,Re=Ls(_,pe,2*Ce*me);return c.setXYAt(Re[0],Re[1],"o",c.length()-1),Re=Ls(q,Q,2*Ce*me),c.setTripleAt(q[0],q[1],q[0],q[1],Re[0],Re[1],c.length()),q}var F=os(_,p.points[2])?p.points[0]:p.points[2],ee=os(q,v.points[1])?v.points[3]:v.points[1],Y=Is(F,_,q,ee);return Y&&$a(Y,_)<P?(c.setTripleAt(Y[0],Y[1],Y[0],Y[1],Y[0],Y[1],c.length()),Y):_}function se(c,p){var v=c.intersections(p);return v.length&&ya(v[0][0],1)&&v.shift(),v.length?v[0]:null}function Fe(c,p){var v=c.slice(),$=p.slice(),P=se(c[c.length-1],p[0]);return P&&(v[c.length-1]=c[c.length-1].split(P[0])[0],$[0]=p[0].split(P[1])[1]),c.length>1&&p.length>1&&(P=se(c[0],p[p.length-1]),P)?[[c[0].split(P[0])[0]],[p[p.length-1].split(P[1])[1]]]:[v,$]}function qe(c){for(var p,v=1;v<c.length;v+=1)p=Fe(c[v-1],c[v]),c[v-1]=p[0],c[v]=p[1];return c.length>1&&(p=Fe(c[c.length-1],c[0]),c[c.length-1]=p[0],c[0]=p[1]),c}function ht(c,p){var v=c.inflectionPoints(),$,P,_,q;if(v.length===0)return[Yt(c,p)];if(v.length===1||ya(v[1],1))return _=c.split(v[0]),$=_[0],P=_[1],[Yt($,p),Yt(P,p)];_=c.split(v[0]),$=_[0];var pe=(v[1]-v[0])/(1-v[0]);return _=_[1].split(pe),q=_[0],P=_[1],[Yt($,p),Yt(q,p),Yt(P,p)]}function bn(){}Me([vr],bn),bn.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amount=st.getProp(c,p.a,0,null,this),this.miterLimit=st.getProp(c,p.ml,0,null,this),this.lineJoin=p.lj,this._isAnimated=this.amount.effectsSequence.length!==0},bn.prototype.processPath=function(c,p,v,$){var P=Xn.newElement();P.c=c.c;var _=c.length();c.c||(_-=1);var q,pe,Q,ye=[];for(q=0;q<_;q+=1)Q=mn.shapeSegment(c,q),ye.push(ht(Q,p));if(!c.c)for(q=_-1;q>=0;q-=1)Q=mn.shapeSegmentInverted(c,q),ye.push(ht(Q,p));ye=qe(ye);var Ce=null,Re=null;for(q=0;q<ye.length;q+=1){var F=ye[q];for(Re&&(Ce=nn(P,Re,F[0],v,$)),Re=F[F.length-1],pe=0;pe<F.length;pe+=1)Q=F[pe],Ce&&os(Q.points[0],Ce)?P.setXYAt(Q.points[1][0],Q.points[1][1],"o",P.length()-1):P.setTripleAt(Q.points[0][0],Q.points[0][1],Q.points[1][0],Q.points[1][1],Q.points[0][0],Q.points[0][1],P.length()),P.setTripleAt(Q.points[3][0],Q.points[3][1],Q.points[3][0],Q.points[3][1],Q.points[2][0],Q.points[2][1],P.length()),Ce=Q.points[3]}return ye.length&&nn(P,Re,ye[0][0],v,$),P},bn.prototype.processShapes=function(c){var p,v,$=this.shapes.length,P,_,q=this.amount.v,pe=this.miterLimit.v,Q=this.lineJoin;if(q!==0){var ye,Ce;for(v=0;v<$;v+=1){if(ye=this.shapes[v],Ce=ye.localShapeCollection,!(!ye.shape._mdf&&!this._mdf&&!c))for(Ce.releaseShapes(),ye.shape._mdf=!0,p=ye.shape.paths.shapes,_=ye.shape.paths._length,P=0;P<_;P+=1)Ce.addShape(this.processPath(p[P],q,Q,pe));ye.shape.paths=ye.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function sr(c){for(var p=c.fStyle?c.fStyle.split(" "):[],v="normal",$="normal",P=p.length,_,q=0;q<P;q+=1)switch(_=p[q].toLowerCase(),_){case"italic":$="italic";break;case"bold":v="700";break;case"black":v="900";break;case"medium":v="500";break;case"regular":case"normal":v="400";break;case"light":case"thin":v="200";break}return{style:$,weight:c.fWeight||v}}var ur=function(){var c=5e3,p={w:0,size:0,shapes:[],data:{shapes:[]}},v=[];v=v.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var $=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],P=[65039,8205];function _(j){var G=j.split(","),ne,oe=G.length,de=[];for(ne=0;ne<oe;ne+=1)G[ne]!=="sans-serif"&&G[ne]!=="monospace"&&de.push(G[ne]);return de.join(",")}function q(j,G){var ne=_e("span");ne.setAttribute("aria-hidden",!0),ne.style.fontFamily=G;var oe=_e("span");oe.innerText="giItT1WQy@!-/#",ne.style.position="absolute",ne.style.left="-10000px",ne.style.top="-10000px",ne.style.fontSize="300px",ne.style.fontVariant="normal",ne.style.fontStyle="normal",ne.style.fontWeight="normal",ne.style.letterSpacing="0",ne.appendChild(oe),document.body.appendChild(ne);var de=oe.offsetWidth;return oe.style.fontFamily=_(j)+", "+G,{node:oe,w:de,parent:ne}}function pe(){var j,G=this.fonts.length,ne,oe,de=G;for(j=0;j<G;j+=1)this.fonts[j].loaded?de-=1:this.fonts[j].fOrigin==="n"||this.fonts[j].origin===0?this.fonts[j].loaded=!0:(ne=this.fonts[j].monoCase.node,oe=this.fonts[j].monoCase.w,ne.offsetWidth!==oe?(de-=1,this.fonts[j].loaded=!0):(ne=this.fonts[j].sansCase.node,oe=this.fonts[j].sansCase.w,ne.offsetWidth!==oe&&(de-=1,this.fonts[j].loaded=!0)),this.fonts[j].loaded&&(this.fonts[j].sansCase.parent.parentNode.removeChild(this.fonts[j].sansCase.parent),this.fonts[j].monoCase.parent.parentNode.removeChild(this.fonts[j].monoCase.parent)));de!==0&&Date.now()-this.initTime<c?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function Q(j,G){var ne=document.body&&G?"svg":"canvas",oe,de=sr(j);if(ne==="svg"){var Oe=$t("text");Oe.style.fontSize="100px",Oe.setAttribute("font-family",j.fFamily),Oe.setAttribute("font-style",de.style),Oe.setAttribute("font-weight",de.weight),Oe.textContent="1",j.fClass?(Oe.style.fontFamily="inherit",Oe.setAttribute("class",j.fClass)):Oe.style.fontFamily=j.fFamily,G.appendChild(Oe),oe=Oe}else{var et=new OffscreenCanvas(500,500).getContext("2d");et.font=de.style+" "+de.weight+" 100px "+j.fFamily,oe=et}function Je(Be){return ne==="svg"?(oe.textContent=Be,oe.getComputedTextLength()):oe.measureText(Be).width}return{measureText:Je}}function ye(j,G){if(!j){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=j.list;return}if(!document.body){this.isLoaded=!0,j.list.forEach(function(be){be.helper=Q(be),be.cache={}}),this.fonts=j.list;return}var ne=j.list,oe,de=ne.length,Oe=de;for(oe=0;oe<de;oe+=1){var et=!0,Je,Be;if(ne[oe].loaded=!1,ne[oe].monoCase=q(ne[oe].fFamily,"monospace"),ne[oe].sansCase=q(ne[oe].fFamily,"sans-serif"),!ne[oe].fPath)ne[oe].loaded=!0,Oe-=1;else if(ne[oe].fOrigin==="p"||ne[oe].origin===3){if(Je=document.querySelectorAll('style[f-forigin="p"][f-family="'+ne[oe].fFamily+'"], style[f-origin="3"][f-family="'+ne[oe].fFamily+'"]'),Je.length>0&&(et=!1),et){var ot=_e("style");ot.setAttribute("f-forigin",ne[oe].fOrigin),ot.setAttribute("f-origin",ne[oe].origin),ot.setAttribute("f-family",ne[oe].fFamily),ot.type="text/css",ot.innerText="@font-face {font-family: "+ne[oe].fFamily+"; font-style: normal; src: url('"+ne[oe].fPath+"');}",G.appendChild(ot)}}else if(ne[oe].fOrigin==="g"||ne[oe].origin===1){for(Je=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Be=0;Be<Je.length;Be+=1)Je[Be].href.indexOf(ne[oe].fPath)!==-1&&(et=!1);if(et){var ct=_e("link");ct.setAttribute("f-forigin",ne[oe].fOrigin),ct.setAttribute("f-origin",ne[oe].origin),ct.type="text/css",ct.rel="stylesheet",ct.href=ne[oe].fPath,document.body.appendChild(ct)}}else if(ne[oe].fOrigin==="t"||ne[oe].origin===2){for(Je=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Be=0;Be<Je.length;Be+=1)ne[oe].fPath===Je[Be].src&&(et=!1);if(et){var Ie=_e("link");Ie.setAttribute("f-forigin",ne[oe].fOrigin),Ie.setAttribute("f-origin",ne[oe].origin),Ie.setAttribute("rel","stylesheet"),Ie.setAttribute("href",ne[oe].fPath),G.appendChild(Ie)}}ne[oe].helper=Q(ne[oe],G),ne[oe].cache={},this.fonts.push(ne[oe])}Oe===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Ce(j){if(j){this.chars||(this.chars=[]);var G,ne=j.length,oe,de=this.chars.length,Oe;for(G=0;G<ne;G+=1){for(oe=0,Oe=!1;oe<de;)this.chars[oe].style===j[G].style&&this.chars[oe].fFamily===j[G].fFamily&&this.chars[oe].ch===j[G].ch&&(Oe=!0),oe+=1;Oe||(this.chars.push(j[G]),de+=1)}}}function Re(j,G,ne){for(var oe=0,de=this.chars.length;oe<de;){if(this.chars[oe].ch===j&&this.chars[oe].style===G&&this.chars[oe].fFamily===ne)return this.chars[oe];oe+=1}return(typeof j=="string"&&j.charCodeAt(0)!==13||!j)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",j,G,ne)),p}function F(j,G,ne){var oe=this.getFontByName(G),de=j.charCodeAt(0);if(!oe.cache[de+1]){var Oe=oe.helper;if(j===" "){var et=Oe.measureText("|"+j+"|"),Je=Oe.measureText("||");oe.cache[de+1]=(et-Je)/100}else oe.cache[de+1]=Oe.measureText(j)/100}return oe.cache[de+1]*ne}function ee(j){for(var G=0,ne=this.fonts.length;G<ne;){if(this.fonts[G].fName===j)return this.fonts[G];G+=1}return this.fonts[0]}function Y(j,G){var ne=j.toString(16)+G.toString(16);return $.indexOf(ne)!==-1}function fe(j,G){return G?j===P[0]&&G===P[1]:j===P[1]}function ce(j){return v.indexOf(j)!==-1}function z(){this.isLoaded=!0}var Z=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};Z.isModifier=Y,Z.isZeroWidthJoiner=fe,Z.isCombinedCharacter=ce;var V={addChars:Ce,addFonts:ye,getCharData:Re,getFontByName:ee,measureText:F,checkLoadedFonts:pe,setIsLoaded:z};return Z.prototype=V,Z}();function Kn(){}Kn.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(p){this.renderableComponents.indexOf(p)===-1&&this.renderableComponents.push(p)},removeRenderableComponent:function(p){this.renderableComponents.indexOf(p)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(p),1)},prepareRenderableFrame:function(p){this.checkLayerLimits(p)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(p){this.data.ip-this.data.st<=p&&this.data.op-this.data.st>p?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var p,v=this.renderableComponents.length;for(p=0;p<v;p+=1)this.renderableComponents[p].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var Sn=function(){var c={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(p){return c[p]||""}}();function Mi(c,p,v){this.p=st.getProp(p,c.v,0,0,v)}function Fi(c,p,v){this.p=st.getProp(p,c.v,0,0,v)}function Zo(c,p,v){this.p=st.getProp(p,c.v,1,0,v)}function so(c,p,v){this.p=st.getProp(p,c.v,1,0,v)}function lr(c,p,v){this.p=st.getProp(p,c.v,0,0,v)}function Ea(c,p,v){this.p=st.getProp(p,c.v,0,0,v)}function ih(c,p,v){this.p=st.getProp(p,c.v,0,0,v)}function sh(){this.p={}}function Zc(c,p){var v=c.ef||[];this.effectElements=[];var $,P=v.length,_;for($=0;$<P;$+=1)_=new ao(v[$],p),this.effectElements.push(_)}function ao(c,p){this.init(c,p)}Me([dn],ao),ao.prototype.getValue=ao.prototype.iterateDynamicProperties,ao.prototype.init=function(c,p){this.data=c,this.effectElements=[],this.initDynamicPropertyContainer(p);var v,$=this.data.ef.length,P,_=this.data.ef;for(v=0;v<$;v+=1){switch(P=null,_[v].ty){case 0:P=new Mi(_[v],p,this);break;case 1:P=new Fi(_[v],p,this);break;case 2:P=new Zo(_[v],p,this);break;case 3:P=new so(_[v],p,this);break;case 4:case 7:P=new ih(_[v],p,this);break;case 10:P=new lr(_[v],p,this);break;case 11:P=new Ea(_[v],p,this);break;case 5:P=new Zc(_[v],p);break;default:P=new sh(_[v]);break}P&&this.effectElements.push(P)}};function us(){}us.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var p=0,v=this.data.masksProperties.length;p<v;){if(this.data.masksProperties[p].mode!=="n"&&this.data.masksProperties[p].cl!==!1)return!0;p+=1}return!1},initExpressions:function(){},setBlendMode:function(){var p=Sn(this.data.bm),v=this.baseElement||this.layerElement;v.style["mix-blend-mode"]=p},initBaseData:function(p,v,$){this.globalData=v,this.comp=$,this.data=p,this.layerId=wt(),this.data.sr||(this.data.sr=1),this.effectsManager=new Zc(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Bn(){}Bn.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(p,v){var $,P=this.dynamicProperties.length;for($=0;$<P;$+=1)(v||this._isParent&&this.dynamicProperties[$].propType==="transform")&&(this.dynamicProperties[$].getValue(),this.dynamicProperties[$]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(p){this.dynamicProperties.indexOf(p)===-1&&this.dynamicProperties.push(p)}};function Bs(c,p,v){this.initFrame(),this.initRenderable(),this.assetData=p.getAssetData(c.refId),this.footageData=p.imageLoader.getAsset(this.assetData),this.initBaseData(c,p,v)}Bs.prototype.prepareFrame=function(){},Me([Kn,us,Bn],Bs),Bs.prototype.getBaseElement=function(){return null},Bs.prototype.renderFrame=function(){},Bs.prototype.destroy=function(){},Bs.prototype.initExpressions=function(){},Bs.prototype.getFootageData=function(){return this.footageData};function hn(c,p,v){this.initFrame(),this.initRenderable(),this.assetData=p.getAssetData(c.refId),this.initBaseData(c,p,v),this._isPlaying=!1,this._canPlay=!1;var $=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio($),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=c.tm?st.getProp(this,c.tm,0,p.frameRate,this):{_placeholder:!0},this.lv=st.getProp(this,c.au&&c.au.lv?c.au.lv:{k:[100]},1,.01,this)}hn.prototype.prepareFrame=function(c){if(this.prepareRenderableFrame(c,!0),this.prepareProperties(c,!0),this.tm._placeholder)this._currentTime=c/this.data.sr;else{var p=this.tm.v;this._currentTime=p}this._volume=this.lv.v[0];var v=this._volume*this._volumeMultiplier;this._previousVolume!==v&&(this._previousVolume=v,this.audio.volume(v))},Me([Kn,us,Bn],hn),hn.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},hn.prototype.show=function(){},hn.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},hn.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},hn.prototype.resume=function(){this._canPlay=!0},hn.prototype.setRate=function(c){this.audio.rate(c)},hn.prototype.volume=function(c){this._volumeMultiplier=c,this._previousVolume=c*this._volume,this.audio.volume(this._previousVolume)},hn.prototype.getBaseElement=function(){return null},hn.prototype.destroy=function(){},hn.prototype.sourceRectAtTime=function(){},hn.prototype.initExpressions=function(){};function cr(){}cr.prototype.checkLayers=function(c){var p,v=this.layers.length,$;for(this.completeLayers=!0,p=v-1;p>=0;p-=1)this.elements[p]||($=this.layers[p],$.ip-$.st<=c-this.layers[p].st&&$.op-$.st>c-this.layers[p].st&&this.buildItem(p)),this.completeLayers=this.elements[p]?this.completeLayers:!1;this.checkPendingElements()},cr.prototype.createItem=function(c){switch(c.ty){case 2:return this.createImage(c);case 0:return this.createComp(c);case 1:return this.createSolid(c);case 3:return this.createNull(c);case 4:return this.createShape(c);case 5:return this.createText(c);case 6:return this.createAudio(c);case 13:return this.createCamera(c);case 15:return this.createFootage(c);default:return this.createNull(c)}},cr.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},cr.prototype.createAudio=function(c){return new hn(c,this.globalData,this)},cr.prototype.createFootage=function(c){return new Bs(c,this.globalData,this)},cr.prototype.buildAllItems=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)this.buildItem(c);this.checkPendingElements()},cr.prototype.includeLayers=function(c){this.completeLayers=!1;var p,v=c.length,$,P=this.layers.length;for(p=0;p<v;p+=1)for($=0;$<P;){if(this.layers[$].id===c[p].id){this.layers[$]=c[p];break}$+=1}},cr.prototype.setProjectInterface=function(c){this.globalData.projectInterface=c},cr.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},cr.prototype.buildElementParenting=function(c,p,v){for(var $=this.elements,P=this.layers,_=0,q=P.length;_<q;)P[_].ind==p&&(!$[_]||$[_]===!0?(this.buildItem(_),this.addPendingElement(c)):(v.push($[_]),$[_].setAsParent(),P[_].parent!==void 0?this.buildElementParenting(c,P[_].parent,v):c.setHierarchy(v))),_+=1},cr.prototype.addPendingElement=function(c){this.pendingElements.push(c)},cr.prototype.searchExtraCompositions=function(c){var p,v=c.length;for(p=0;p<v;p+=1)if(c[p].xt){var $=this.createComp(c[p]);$.initExpressions(),this.globalData.projectInterface.registerComposition($)}},cr.prototype.getElementById=function(c){var p,v=this.elements.length;for(p=0;p<v;p+=1)if(this.elements[p].data.ind===c)return this.elements[p];return null},cr.prototype.getElementByPath=function(c){var p=c.shift(),v;if(typeof p=="number")v=this.elements[p];else{var $,P=this.elements.length;for($=0;$<P;$+=1)if(this.elements[$].data.nm===p){v=this.elements[$];break}}return c.length===0?v:v.getElementByPath(c)},cr.prototype.setupGlobalData=function(c,p){this.globalData.fontManager=new ur,this.globalData.fontManager.addChars(c.chars),this.globalData.fontManager.addFonts(c.fonts,p),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=c.fr,this.globalData.nm=c.nm,this.globalData.compSize={w:c.w,h:c.h}};function Sa(){}Sa.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?ro.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Ln},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var p,v=this.finalTransform.mat,$=0,P=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;$<P;){if(this.hierarchy[$].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}$+=1}if(this.finalTransform._matMdf)for(p=this.finalTransform.mProp.v.props,v.cloneFromProps(p),$=0;$<P;$+=1)p=this.hierarchy[$].finalTransform.mProp.v.props,v.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15])}},globalToLocal:function(p){var v=[];v.push(this.finalTransform);for(var $=!0,P=this.comp;$;)P.finalTransform?(P.data.hasMask&&v.splice(0,0,P.finalTransform),P=P.comp):$=!1;var _,q=v.length,pe;for(_=0;_<q;_+=1)pe=v[_].mat.applyToPointArray(0,0,0),p=[p[0]-pe[0],p[1]-pe[1],0];return p},mHelper:new Ln};function Sr(c,p,v){this.data=c,this.element=p,this.globalData=v,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var $=this.globalData.defs,P,_=this.masksProperties?this.masksProperties.length:0;this.viewData=Ke(_),this.solidPath="";var q,pe=this.masksProperties,Q=0,ye=[],Ce,Re,F=wt(),ee,Y,fe,ce,z="clipPath",Z="clip-path";for(P=0;P<_;P+=1)if((pe[P].mode!=="a"&&pe[P].mode!=="n"||pe[P].inv||pe[P].o.k!==100||pe[P].o.x)&&(z="mask",Z="mask"),(pe[P].mode==="s"||pe[P].mode==="i")&&Q===0?(ee=$t("rect"),ee.setAttribute("fill","#ffffff"),ee.setAttribute("width",this.element.comp.data.w||0),ee.setAttribute("height",this.element.comp.data.h||0),ye.push(ee)):ee=null,q=$t("path"),pe[P].mode==="n")this.viewData[P]={op:st.getProp(this.element,pe[P].o,0,.01,this.element),prop:pi.getShapeProp(this.element,pe[P],3),elem:q,lastPath:""},$.appendChild(q);else{Q+=1,q.setAttribute("fill",pe[P].mode==="s"?"#000000":"#ffffff"),q.setAttribute("clip-rule","nonzero");var V;if(pe[P].x.k!==0?(z="mask",Z="mask",ce=st.getProp(this.element,pe[P].x,0,null,this.element),V=wt(),Y=$t("filter"),Y.setAttribute("id",V),fe=$t("feMorphology"),fe.setAttribute("operator","erode"),fe.setAttribute("in","SourceGraphic"),fe.setAttribute("radius","0"),Y.appendChild(fe),$.appendChild(Y),q.setAttribute("stroke",pe[P].mode==="s"?"#000000":"#ffffff")):(fe=null,ce=null),this.storedData[P]={elem:q,x:ce,expan:fe,lastPath:"",lastOperator:"",filterId:V,lastRadius:0},pe[P].mode==="i"){Re=ye.length;var j=$t("g");for(Ce=0;Ce<Re;Ce+=1)j.appendChild(ye[Ce]);var G=$t("mask");G.setAttribute("mask-type","alpha"),G.setAttribute("id",F+"_"+Q),G.appendChild(q),$.appendChild(G),j.setAttribute("mask","url("+De()+"#"+F+"_"+Q+")"),ye.length=0,ye.push(j)}else ye.push(q);pe[P].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[P]={elem:q,lastPath:"",op:st.getProp(this.element,pe[P].o,0,.01,this.element),prop:pi.getShapeProp(this.element,pe[P],3),invRect:ee},this.viewData[P].prop.k||this.drawPath(pe[P],this.viewData[P].prop.v,this.viewData[P])}for(this.maskElement=$t(z),_=ye.length,P=0;P<_;P+=1)this.maskElement.appendChild(ye[P]);Q>0&&(this.maskElement.setAttribute("id",F),this.element.maskedElement.setAttribute(Z,"url("+De()+"#"+F+")"),$.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Sr.prototype.getMaskProperty=function(c){return this.viewData[c].prop},Sr.prototype.renderFrame=function(c){var p=this.element.finalTransform.mat,v,$=this.masksProperties.length;for(v=0;v<$;v+=1)if((this.viewData[v].prop._mdf||c)&&this.drawPath(this.masksProperties[v],this.viewData[v].prop.v,this.viewData[v]),(this.viewData[v].op._mdf||c)&&this.viewData[v].elem.setAttribute("fill-opacity",this.viewData[v].op.v),this.masksProperties[v].mode!=="n"&&(this.viewData[v].invRect&&(this.element.finalTransform.mProp._mdf||c)&&this.viewData[v].invRect.setAttribute("transform",p.getInverseMatrix().to2dCSS()),this.storedData[v].x&&(this.storedData[v].x._mdf||c))){var P=this.storedData[v].expan;this.storedData[v].x.v<0?(this.storedData[v].lastOperator!=="erode"&&(this.storedData[v].lastOperator="erode",this.storedData[v].elem.setAttribute("filter","url("+De()+"#"+this.storedData[v].filterId+")")),P.setAttribute("radius",-this.storedData[v].x.v)):(this.storedData[v].lastOperator!=="dilate"&&(this.storedData[v].lastOperator="dilate",this.storedData[v].elem.setAttribute("filter",null)),this.storedData[v].elem.setAttribute("stroke-width",this.storedData[v].x.v*2))}},Sr.prototype.getMaskelement=function(){return this.maskElement},Sr.prototype.createLayerSolidPath=function(){var c="M0,0 ";return c+=" h"+this.globalData.compSize.w,c+=" v"+this.globalData.compSize.h,c+=" h-"+this.globalData.compSize.w,c+=" v-"+this.globalData.compSize.h+" ",c},Sr.prototype.drawPath=function(c,p,v){var $=" M"+p.v[0][0]+","+p.v[0][1],P,_;for(_=p._length,P=1;P<_;P+=1)$+=" C"+p.o[P-1][0]+","+p.o[P-1][1]+" "+p.i[P][0]+","+p.i[P][1]+" "+p.v[P][0]+","+p.v[P][1];if(p.c&&_>1&&($+=" C"+p.o[P-1][0]+","+p.o[P-1][1]+" "+p.i[0][0]+","+p.i[0][1]+" "+p.v[0][0]+","+p.v[0][1]),v.lastPath!==$){var q="";v.elem&&(p.c&&(q=c.inv?this.solidPath+$:$),v.elem.setAttribute("d",q)),v.lastPath=$}},Sr.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Vs=function(){var c={};c.createFilter=p,c.createAlphaToLuminanceFilter=v;function p($,P){var _=$t("filter");return _.setAttribute("id",$),P!==!0&&(_.setAttribute("filterUnits","objectBoundingBox"),_.setAttribute("x","0%"),_.setAttribute("y","0%"),_.setAttribute("width","100%"),_.setAttribute("height","100%")),_}function v(){var $=$t("feColorMatrix");return $.setAttribute("type","matrix"),$.setAttribute("color-interpolation-filters","sRGB"),$.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),$}return c}(),pl=function(){var c={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(c.maskType=!1),/firefox/i.test(navigator.userAgent)&&(c.svgLumaHidden=!1),c}(),cn={},ls="filter_result_";function ml(c){var p,v="SourceGraphic",$=c.data.ef?c.data.ef.length:0,P=wt(),_=Vs.createFilter(P,!0),q=0;this.filters=[];var pe;for(p=0;p<$;p+=1){pe=null;var Q=c.data.ef[p].ty;if(cn[Q]){var ye=cn[Q].effect;pe=new ye(_,c.effectsManager.effectElements[p],c,ls+q,v),v=ls+q,cn[Q].countsAsEffect&&(q+=1)}pe&&this.filters.push(pe)}q&&(c.globalData.defs.appendChild(_),c.layerElement.setAttribute("filter","url("+De()+"#"+P+")")),this.filters.length&&c.addRenderableComponent(this)}ml.prototype.renderFrame=function(c){var p,v=this.filters.length;for(p=0;p<v;p+=1)this.filters[p].renderFrame(c)};function Xo(){}Xo.prototype={initRendererElement:function(){this.layerElement=$t("g")},createContainerElements:function(){this.matteElement=$t("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var p=null;if(this.data.td){this.matteMasks={};var v=$t("g");v.setAttribute("id",this.layerId),v.appendChild(this.layerElement),p=v,this.globalData.defs.appendChild(v)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),p=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var $=$t("clipPath"),P=$t("path");P.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var _=wt();if($.setAttribute("id",_),$.appendChild(P),this.globalData.defs.appendChild($),this.checkMasks()){var q=$t("g");q.setAttribute("clip-path","url("+De()+"#"+_+")"),q.appendChild(this.layerElement),this.transformedElement=q,p?p.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+De()+"#"+_+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Sr(this.data,this,this.globalData),this.renderableEffectsManager=new ml(this)},getMatte:function(p){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[p]){var v=this.layerId+"_"+p,$,P,_,q;if(p===1||p===3){var pe=$t("mask");pe.setAttribute("id",v),pe.setAttribute("mask-type",p===3?"luminance":"alpha"),_=$t("use"),_.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),pe.appendChild(_),this.globalData.defs.appendChild(pe),!pl.maskType&&p===1&&(pe.setAttribute("mask-type","luminance"),$=wt(),P=Vs.createFilter($),this.globalData.defs.appendChild(P),P.appendChild(Vs.createAlphaToLuminanceFilter()),q=$t("g"),q.appendChild(_),pe.appendChild(q),q.setAttribute("filter","url("+De()+"#"+$+")"))}else if(p===2){var Q=$t("mask");Q.setAttribute("id",v),Q.setAttribute("mask-type","alpha");var ye=$t("g");Q.appendChild(ye),$=wt(),P=Vs.createFilter($);var Ce=$t("feComponentTransfer");Ce.setAttribute("in","SourceGraphic"),P.appendChild(Ce);var Re=$t("feFuncA");Re.setAttribute("type","table"),Re.setAttribute("tableValues","1.0 0.0"),Ce.appendChild(Re),this.globalData.defs.appendChild(P);var F=$t("rect");F.setAttribute("width",this.comp.data.w),F.setAttribute("height",this.comp.data.h),F.setAttribute("x","0"),F.setAttribute("y","0"),F.setAttribute("fill","#ffffff"),F.setAttribute("opacity","0"),ye.setAttribute("filter","url("+De()+"#"+$+")"),ye.appendChild(F),_=$t("use"),_.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),ye.appendChild(_),pl.maskType||(Q.setAttribute("mask-type","luminance"),P.appendChild(Vs.createAlphaToLuminanceFilter()),q=$t("g"),ye.appendChild(F),q.appendChild(this.layerElement),ye.appendChild(q)),this.globalData.defs.appendChild(Q)}this.matteMasks[p]=v}return this.matteMasks[p]},setMatte:function(p){this.matteElement&&this.matteElement.setAttribute("mask","url("+De()+"#"+p+")")}};function Ns(){}Ns.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(p){this.hierarchy=p},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function Jo(){}(function(){var c={initElement:function(v,$,P){this.initFrame(),this.initBaseData(v,$,P),this.initTransform(v,$,P),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var v=this.baseElement||this.layerElement;v.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var v=this.baseElement||this.layerElement;v.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(v){this._mdf=!1,this.prepareRenderableFrame(v),this.prepareProperties(v,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};Me([Kn,Ye(c)],Jo)})();function Qo(c,p,v){this.assetData=p.getAssetData(c.refId),this.initElement(c,p,v),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}Me([us,Sa,Xo,Ns,Bn,Jo],Qo),Qo.prototype.createContent=function(){var c=this.globalData.getAssetsPath(this.assetData);this.innerElem=$t("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",c),this.layerElement.appendChild(this.innerElem)},Qo.prototype.sourceRectAtTime=function(){return this.sourceRect};function mg(c,p){this.elem=c,this.pos=p}function Xc(){}Xc.prototype={addShapeToModifiers:function(p){var v,$=this.shapeModifiers.length;for(v=0;v<$;v+=1)this.shapeModifiers[v].addShape(p)},isShapeInAnimatedModifiers:function(p){for(var v=0,$=this.shapeModifiers.length;v<$;)if(this.shapeModifiers[v].isAnimatedWithShape(p))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var p,v=this.shapes.length;for(p=0;p<v;p+=1)this.shapes[p].sh.reset();v=this.shapeModifiers.length;var $;for(p=v-1;p>=0&&($=this.shapeModifiers[p].processShapes(this._isFirstFrame),!$);p-=1);}},searchProcessedElement:function(p){for(var v=this.processedElements,$=0,P=v.length;$<P;){if(v[$].elem===p)return v[$].pos;$+=1}return 0},addProcessedElement:function(p,v){for(var $=this.processedElements,P=$.length;P;)if(P-=1,$[P].elem===p){$[P].pos=v;return}$.push(new mg(p,v))},prepareFrame:function(p){this.prepareRenderableFrame(p),this.prepareProperties(p,this.isInRange)}};var eu={1:"butt",2:"round",3:"square"},Da={1:"miter",2:"round",3:"bevel"};function ah(c,p,v){this.caches=[],this.styles=[],this.transformers=c,this.lStr="",this.sh=v,this.lvl=p,this._isAnimated=!!v.k;for(var $=0,P=c.length;$<P;){if(c[$].mProps.dynamicProperties.length){this._isAnimated=!0;break}$+=1}}ah.prototype.setAsAnimated=function(){this._isAnimated=!0};function Jc(c,p){this.data=c,this.type=c.ty,this.d="",this.lvl=p,this._mdf=!1,this.closed=c.hd===!0,this.pElem=$t("path"),this.msElem=null}Jc.prototype.reset=function(){this.d="",this._mdf=!1};function tu(c,p,v,$){this.elem=c,this.frameId=-1,this.dataProps=Ke(p.length),this.renderer=v,this.k=!1,this.dashStr="",this.dashArray=Ae("float32",p.length?p.length-1:0),this.dashoffset=Ae("float32",1),this.initDynamicPropertyContainer($);var P,_=p.length||0,q;for(P=0;P<_;P+=1)q=st.getProp(c,p[P].v,0,0,this),this.k=q.k||this.k,this.dataProps[P]={n:p[P].n,p:q};this.k||this.getValue(!0),this._isAnimated=this.k}tu.prototype.getValue=function(c){if(!(this.elem.globalData.frameId===this.frameId&&!c)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||c,this._mdf)){var p=0,v=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),p=0;p<v;p+=1)this.dataProps[p].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[p].p.v:this.dashArray[p]=this.dataProps[p].p.v:this.dashoffset[0]=this.dataProps[p].p.v}},Me([dn],tu);function gl(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=st.getProp(c,p.o,0,.01,this),this.w=st.getProp(c,p.w,0,null,this),this.d=new tu(c,p.d||{},"svg",this),this.c=st.getProp(c,p.c,1,255,this),this.style=v,this._isAnimated=!!this._isAnimated}Me([dn],gl);function vl(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=st.getProp(c,p.o,0,.01,this),this.c=st.getProp(c,p.c,1,255,this),this.style=v}Me([dn],vl);function Qc(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.style=v}Me([dn],Qc);function nu(c,p,v){this.data=p,this.c=Ae("uint8c",p.p*4);var $=p.k.k[0].s?p.k.k[0].s.length-p.p*4:p.k.k.length-p.p*4;this.o=Ae("float32",$),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=$,this.initDynamicPropertyContainer(v),this.prop=st.getProp(c,p.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}nu.prototype.comparePoints=function(c,p){for(var v=0,$=this.o.length/2,P;v<$;){if(P=Math.abs(c[v*4]-c[p*4+v*2]),P>.01)return!1;v+=1}return!0},nu.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var c=0,p=this.data.k.k.length;c<p;){if(!this.comparePoints(this.data.k.k[c].s,this.data.p))return!1;c+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},nu.prototype.getValue=function(c){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||c){var p,v=this.data.p*4,$,P;for(p=0;p<v;p+=1)$=p%4===0?100:255,P=Math.round(this.prop.v[p]*$),this.c[p]!==P&&(this.c[p]=P,this._cmdf=!c);if(this.o.length)for(v=this.prop.v.length,p=this.data.p*4;p<v;p+=1)$=p%2===0?100:1,P=p%2===0?Math.round(this.prop.v[p]*100):this.prop.v[p],this.o[p-this.data.p*4]!==P&&(this.o[p-this.data.p*4]=P,this._omdf=!c);this._mdf=!c}},Me([dn],nu);function js(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.initGradientData(c,p,v)}js.prototype.initGradientData=function(c,p,v){this.o=st.getProp(c,p.o,0,.01,this),this.s=st.getProp(c,p.s,1,null,this),this.e=st.getProp(c,p.e,1,null,this),this.h=st.getProp(c,p.h||{k:0},0,.01,this),this.a=st.getProp(c,p.a||{k:0},0,mt,this),this.g=new nu(c,p.g,this),this.style=v,this.stops=[],this.setGradientData(v.pElem,p),this.setGradientOpacity(p,v),this._isAnimated=!!this._isAnimated},js.prototype.setGradientData=function(c,p){var v=wt(),$=$t(p.t===1?"linearGradient":"radialGradient");$.setAttribute("id",v),$.setAttribute("spreadMethod","pad"),$.setAttribute("gradientUnits","userSpaceOnUse");var P=[],_,q,pe;for(pe=p.g.p*4,q=0;q<pe;q+=4)_=$t("stop"),$.appendChild(_),P.push(_);c.setAttribute(p.ty==="gf"?"fill":"stroke","url("+De()+"#"+v+")"),this.gf=$,this.cst=P},js.prototype.setGradientOpacity=function(c,p){if(this.g._hasOpacity&&!this.g._collapsable){var v,$,P,_=$t("mask"),q=$t("path");_.appendChild(q);var pe=wt(),Q=wt();_.setAttribute("id",Q);var ye=$t(c.t===1?"linearGradient":"radialGradient");ye.setAttribute("id",pe),ye.setAttribute("spreadMethod","pad"),ye.setAttribute("gradientUnits","userSpaceOnUse"),P=c.g.k.k[0].s?c.g.k.k[0].s.length:c.g.k.k.length;var Ce=this.stops;for($=c.g.p*4;$<P;$+=2)v=$t("stop"),v.setAttribute("stop-color","rgb(255,255,255)"),ye.appendChild(v),Ce.push(v);q.setAttribute(c.ty==="gf"?"fill":"stroke","url("+De()+"#"+pe+")"),c.ty==="gs"&&(q.setAttribute("stroke-linecap",eu[c.lc||2]),q.setAttribute("stroke-linejoin",Da[c.lj||2]),c.lj===1&&q.setAttribute("stroke-miterlimit",c.ml)),this.of=ye,this.ms=_,this.ost=Ce,this.maskId=Q,p.msElem=q}},Me([dn],js);function yl(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.w=st.getProp(c,p.w,0,null,this),this.d=new tu(c,p.d||{},"svg",this),this.initGradientData(c,p,v),this._isAnimated=!!this._isAnimated}Me([js,dn],yl);function gg(){this.it=[],this.prevViewData=[],this.gr=$t("g")}function oh(c,p,v){this.transform={mProps:c,op:p,container:v},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Dr=function(p,v,$,P){if(v===0)return"";var _=p.o,q=p.i,pe=p.v,Q,ye=" M"+P.applyToPointStringified(pe[0][0],pe[0][1]);for(Q=1;Q<v;Q+=1)ye+=" C"+P.applyToPointStringified(_[Q-1][0],_[Q-1][1])+" "+P.applyToPointStringified(q[Q][0],q[Q][1])+" "+P.applyToPointStringified(pe[Q][0],pe[Q][1]);return $&&v&&(ye+=" C"+P.applyToPointStringified(_[Q-1][0],_[Q-1][1])+" "+P.applyToPointStringified(q[0][0],q[0][1])+" "+P.applyToPointStringified(pe[0][0],pe[0][1]),ye+="z"),ye},ef=function(){var c=new Ln,p=new Ln,v={createRenderFunction:$};function $(Re){switch(Re.ty){case"fl":return pe;case"gf":return ye;case"gs":return Q;case"st":return Ce;case"sh":case"el":case"rc":case"sr":return q;case"tr":return P;case"no":return _;default:return null}}function P(Re,F,ee){(ee||F.transform.op._mdf)&&F.transform.container.setAttribute("opacity",F.transform.op.v),(ee||F.transform.mProps._mdf)&&F.transform.container.setAttribute("transform",F.transform.mProps.v.to2dCSS())}function _(){}function q(Re,F,ee){var Y,fe,ce,z,Z,V,j=F.styles.length,G=F.lvl,ne,oe,de,Oe,et;for(V=0;V<j;V+=1){if(z=F.sh._mdf||ee,F.styles[V].lvl<G){for(oe=p.reset(),Oe=G-F.styles[V].lvl,et=F.transformers.length-1;!z&&Oe>0;)z=F.transformers[et].mProps._mdf||z,Oe-=1,et-=1;if(z)for(Oe=G-F.styles[V].lvl,et=F.transformers.length-1;Oe>0;)de=F.transformers[et].mProps.v.props,oe.transform(de[0],de[1],de[2],de[3],de[4],de[5],de[6],de[7],de[8],de[9],de[10],de[11],de[12],de[13],de[14],de[15]),Oe-=1,et-=1}else oe=c;if(ne=F.sh.paths,fe=ne._length,z){for(ce="",Y=0;Y<fe;Y+=1)Z=ne.shapes[Y],Z&&Z._length&&(ce+=Dr(Z,Z._length,Z.c,oe));F.caches[V]=ce}else ce=F.caches[V];F.styles[V].d+=Re.hd===!0?"":ce,F.styles[V]._mdf=z||F.styles[V]._mdf}}function pe(Re,F,ee){var Y=F.style;(F.c._mdf||ee)&&Y.pElem.setAttribute("fill","rgb("+xt(F.c.v[0])+","+xt(F.c.v[1])+","+xt(F.c.v[2])+")"),(F.o._mdf||ee)&&Y.pElem.setAttribute("fill-opacity",F.o.v)}function Q(Re,F,ee){ye(Re,F,ee),Ce(Re,F,ee)}function ye(Re,F,ee){var Y=F.gf,fe=F.g._hasOpacity,ce=F.s.v,z=F.e.v;if(F.o._mdf||ee){var Z=Re.ty==="gf"?"fill-opacity":"stroke-opacity";F.style.pElem.setAttribute(Z,F.o.v)}if(F.s._mdf||ee){var V=Re.t===1?"x1":"cx",j=V==="x1"?"y1":"cy";Y.setAttribute(V,ce[0]),Y.setAttribute(j,ce[1]),fe&&!F.g._collapsable&&(F.of.setAttribute(V,ce[0]),F.of.setAttribute(j,ce[1]))}var G,ne,oe,de;if(F.g._cmdf||ee){G=F.cst;var Oe=F.g.c;for(oe=G.length,ne=0;ne<oe;ne+=1)de=G[ne],de.setAttribute("offset",Oe[ne*4]+"%"),de.setAttribute("stop-color","rgb("+Oe[ne*4+1]+","+Oe[ne*4+2]+","+Oe[ne*4+3]+")")}if(fe&&(F.g._omdf||ee)){var et=F.g.o;for(F.g._collapsable?G=F.cst:G=F.ost,oe=G.length,ne=0;ne<oe;ne+=1)de=G[ne],F.g._collapsable||de.setAttribute("offset",et[ne*2]+"%"),de.setAttribute("stop-opacity",et[ne*2+1])}if(Re.t===1)(F.e._mdf||ee)&&(Y.setAttribute("x2",z[0]),Y.setAttribute("y2",z[1]),fe&&!F.g._collapsable&&(F.of.setAttribute("x2",z[0]),F.of.setAttribute("y2",z[1])));else{var Je;if((F.s._mdf||F.e._mdf||ee)&&(Je=Math.sqrt(Math.pow(ce[0]-z[0],2)+Math.pow(ce[1]-z[1],2)),Y.setAttribute("r",Je),fe&&!F.g._collapsable&&F.of.setAttribute("r",Je)),F.e._mdf||F.h._mdf||F.a._mdf||ee){Je||(Je=Math.sqrt(Math.pow(ce[0]-z[0],2)+Math.pow(ce[1]-z[1],2)));var Be=Math.atan2(z[1]-ce[1],z[0]-ce[0]),ot=F.h.v;ot>=1?ot=.99:ot<=-1&&(ot=-.99);var ct=Je*ot,Ie=Math.cos(Be+F.a.v)*ct+ce[0],be=Math.sin(Be+F.a.v)*ct+ce[1];Y.setAttribute("fx",Ie),Y.setAttribute("fy",be),fe&&!F.g._collapsable&&(F.of.setAttribute("fx",Ie),F.of.setAttribute("fy",be))}}}function Ce(Re,F,ee){var Y=F.style,fe=F.d;fe&&(fe._mdf||ee)&&fe.dashStr&&(Y.pElem.setAttribute("stroke-dasharray",fe.dashStr),Y.pElem.setAttribute("stroke-dashoffset",fe.dashoffset[0])),F.c&&(F.c._mdf||ee)&&Y.pElem.setAttribute("stroke","rgb("+xt(F.c.v[0])+","+xt(F.c.v[1])+","+xt(F.c.v[2])+")"),(F.o._mdf||ee)&&Y.pElem.setAttribute("stroke-opacity",F.o.v),(F.w._mdf||ee)&&(Y.pElem.setAttribute("stroke-width",F.w.v),Y.msElem&&Y.msElem.setAttribute("stroke-width",F.w.v))}return v}();function gn(c,p,v){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(c,p,v),this.prevViewData=[]}Me([us,Sa,Xo,Xc,Ns,Bn,Jo],gn),gn.prototype.initSecondaryElement=function(){},gn.prototype.identityMatrix=new Ln,gn.prototype.buildExpressionInterface=function(){},gn.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},gn.prototype.filterUniqueShapes=function(){var c,p=this.shapes.length,v,$,P=this.stylesList.length,_,q=[],pe=!1;for($=0;$<P;$+=1){for(_=this.stylesList[$],pe=!1,q.length=0,c=0;c<p;c+=1)v=this.shapes[c],v.styles.indexOf(_)!==-1&&(q.push(v),pe=v._isAnimated||pe);q.length>1&&pe&&this.setShapesAsAnimated(q)}},gn.prototype.setShapesAsAnimated=function(c){var p,v=c.length;for(p=0;p<v;p+=1)c[p].setAsAnimated()},gn.prototype.createStyleElement=function(c,p){var v,$=new Jc(c,p),P=$.pElem;if(c.ty==="st")v=new gl(this,c,$);else if(c.ty==="fl")v=new vl(this,c,$);else if(c.ty==="gf"||c.ty==="gs"){var _=c.ty==="gf"?js:yl;v=new _(this,c,$),this.globalData.defs.appendChild(v.gf),v.maskId&&(this.globalData.defs.appendChild(v.ms),this.globalData.defs.appendChild(v.of),P.setAttribute("mask","url("+De()+"#"+v.maskId+")"))}else c.ty==="no"&&(v=new Qc(this,c,$));return(c.ty==="st"||c.ty==="gs")&&(P.setAttribute("stroke-linecap",eu[c.lc||2]),P.setAttribute("stroke-linejoin",Da[c.lj||2]),P.setAttribute("fill-opacity","0"),c.lj===1&&P.setAttribute("stroke-miterlimit",c.ml)),c.r===2&&P.setAttribute("fill-rule","evenodd"),c.ln&&P.setAttribute("id",c.ln),c.cl&&P.setAttribute("class",c.cl),c.bm&&(P.style["mix-blend-mode"]=Sn(c.bm)),this.stylesList.push($),this.addToAnimatedContents(c,v),v},gn.prototype.createGroupElement=function(c){var p=new gg;return c.ln&&p.gr.setAttribute("id",c.ln),c.cl&&p.gr.setAttribute("class",c.cl),c.bm&&(p.gr.style["mix-blend-mode"]=Sn(c.bm)),p},gn.prototype.createTransformElement=function(c,p){var v=ro.getTransformProperty(this,c,this),$=new oh(v,v.o,p);return this.addToAnimatedContents(c,$),$},gn.prototype.createShapeElement=function(c,p,v){var $=4;c.ty==="rc"?$=5:c.ty==="el"?$=6:c.ty==="sr"&&($=7);var P=pi.getShapeProp(this,c,$,this),_=new ah(p,v,P);return this.shapes.push(_),this.addShapeToModifiers(_),this.addToAnimatedContents(c,_),_},gn.prototype.addToAnimatedContents=function(c,p){for(var v=0,$=this.animatedContents.length;v<$;){if(this.animatedContents[v].element===p)return;v+=1}this.animatedContents.push({fn:ef.createRenderFunction(c),element:p,data:c})},gn.prototype.setElementStyles=function(c){var p=c.styles,v,$=this.stylesList.length;for(v=0;v<$;v+=1)this.stylesList[v].closed||p.push(this.stylesList[v])},gn.prototype.reloadShapes=function(){this._isFirstFrame=!0;var c,p=this.itemsData.length;for(c=0;c<p;c+=1)this.prevViewData[c]=this.itemsData[c];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),p=this.dynamicProperties.length,c=0;c<p;c+=1)this.dynamicProperties[c].getValue();this.renderModifiers()},gn.prototype.searchShapes=function(c,p,v,$,P,_,q){var pe=[].concat(_),Q,ye=c.length-1,Ce,Re,F=[],ee=[],Y,fe,ce;for(Q=ye;Q>=0;Q-=1){if(ce=this.searchProcessedElement(c[Q]),ce?p[Q]=v[ce-1]:c[Q]._render=q,c[Q].ty==="fl"||c[Q].ty==="st"||c[Q].ty==="gf"||c[Q].ty==="gs"||c[Q].ty==="no")ce?p[Q].style.closed=!1:p[Q]=this.createStyleElement(c[Q],P),c[Q]._render&&p[Q].style.pElem.parentNode!==$&&$.appendChild(p[Q].style.pElem),F.push(p[Q].style);else if(c[Q].ty==="gr"){if(!ce)p[Q]=this.createGroupElement(c[Q]);else for(Re=p[Q].it.length,Ce=0;Ce<Re;Ce+=1)p[Q].prevViewData[Ce]=p[Q].it[Ce];this.searchShapes(c[Q].it,p[Q].it,p[Q].prevViewData,p[Q].gr,P+1,pe,q),c[Q]._render&&p[Q].gr.parentNode!==$&&$.appendChild(p[Q].gr)}else c[Q].ty==="tr"?(ce||(p[Q]=this.createTransformElement(c[Q],$)),Y=p[Q].transform,pe.push(Y)):c[Q].ty==="sh"||c[Q].ty==="rc"||c[Q].ty==="el"||c[Q].ty==="sr"?(ce||(p[Q]=this.createShapeElement(c[Q],pe,P)),this.setElementStyles(p[Q])):c[Q].ty==="tm"||c[Q].ty==="rd"||c[Q].ty==="ms"||c[Q].ty==="pb"||c[Q].ty==="zz"||c[Q].ty==="op"?(ce?(fe=p[Q],fe.closed=!1):(fe=Or.getModifier(c[Q].ty),fe.init(this,c[Q]),p[Q]=fe,this.shapeModifiers.push(fe)),ee.push(fe)):c[Q].ty==="rp"&&(ce?(fe=p[Q],fe.closed=!0):(fe=Or.getModifier(c[Q].ty),p[Q]=fe,fe.init(this,c,Q,p),this.shapeModifiers.push(fe),q=!1),ee.push(fe));this.addProcessedElement(c[Q],Q+1)}for(ye=F.length,Q=0;Q<ye;Q+=1)F[Q].closed=!0;for(ye=ee.length,Q=0;Q<ye;Q+=1)ee[Q].closed=!0},gn.prototype.renderInnerContent=function(){this.renderModifiers();var c,p=this.stylesList.length;for(c=0;c<p;c+=1)this.stylesList[c].reset();for(this.renderShape(),c=0;c<p;c+=1)(this.stylesList[c]._mdf||this._isFirstFrame)&&(this.stylesList[c].msElem&&(this.stylesList[c].msElem.setAttribute("d",this.stylesList[c].d),this.stylesList[c].d="M0 0"+this.stylesList[c].d),this.stylesList[c].pElem.setAttribute("d",this.stylesList[c].d||"M0 0"))},gn.prototype.renderShape=function(){var c,p=this.animatedContents.length,v;for(c=0;c<p;c+=1)v=this.animatedContents[c],(this._isFirstFrame||v.element._isAnimated)&&v.data!==!0&&v.fn(v.data,v.element,this._isFirstFrame)},gn.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function bl(c,p,v,$,P,_){this.o=c,this.sw=p,this.sc=v,this.fc=$,this.m=P,this.p=_,this._mdf={o:!0,sw:!!p,sc:!!v,fc:!!$,m:!0,p:!0}}bl.prototype.update=function(c,p,v,$,P,_){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var q=!1;return this.o!==c&&(this.o=c,this._mdf.o=!0,q=!0),this.sw!==p&&(this.sw=p,this._mdf.sw=!0,q=!0),this.sc!==v&&(this.sc=v,this._mdf.sc=!0,q=!0),this.fc!==$&&(this.fc=$,this._mdf.fc=!0,q=!0),this.m!==P&&(this.m=P,this._mdf.m=!0,q=!0),_.length&&(this.p[0]!==_[0]||this.p[1]!==_[1]||this.p[4]!==_[4]||this.p[5]!==_[5]||this.p[12]!==_[12]||this.p[13]!==_[13])&&(this.p=_,this._mdf.p=!0,q=!0),q};function fr(c,p){this._frameId=he,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=p,this.elem=c,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}fr.prototype.defaultBoxWidth=[0,0],fr.prototype.copyData=function(c,p){for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(c[v]=p[v]);return c},fr.prototype.setCurrentData=function(c){c.__complete||this.completeTextData(c),this.currentData=c,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},fr.prototype.searchProperty=function(){return this.searchKeyframes()},fr.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},fr.prototype.addEffect=function(c){this.effectsSequence.push(c),this.elem.addDynamicProperty(this)},fr.prototype.getValue=function(c){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!c)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var p=this.currentData,v=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var $,P=this.effectsSequence.length,_=c||this.data.d.k[this.keysIndex].s;for($=0;$<P;$+=1)v!==this.keysIndex?_=this.effectsSequence[$](_,_.t):_=this.effectsSequence[$](this.currentData,_.t);p!==_&&this.setCurrentData(_),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},fr.prototype.getKeyframeValue=function(){for(var c=this.data.d.k,p=this.elem.comp.renderedFrame,v=0,$=c.length;v<=$-1&&!(v===$-1||c[v+1].t>p);)v+=1;return this.keysIndex!==v&&(this.keysIndex=v),this.data.d.k[this.keysIndex].s},fr.prototype.buildFinalText=function(c){for(var p=[],v=0,$=c.length,P,_,q=!1;v<$;)P=c.charCodeAt(v),ur.isCombinedCharacter(P)?p[p.length-1]+=c.charAt(v):P>=55296&&P<=56319?(_=c.charCodeAt(v+1),_>=56320&&_<=57343?(q||ur.isModifier(P,_)?(p[p.length-1]+=c.substr(v,2),q=!1):p.push(c.substr(v,2)),v+=1):p.push(c.charAt(v))):P>56319?(_=c.charCodeAt(v+1),ur.isZeroWidthJoiner(P,_)?(q=!0,p[p.length-1]+=c.substr(v,2),v+=1):p.push(c.charAt(v))):ur.isZeroWidthJoiner(P)?(p[p.length-1]+=c.charAt(v),q=!0):p.push(c.charAt(v)),v+=1;return p},fr.prototype.completeTextData=function(c){c.__complete=!0;var p=this.elem.globalData.fontManager,v=this.data,$=[],P,_,q,pe=0,Q,ye=v.m.g,Ce=0,Re=0,F=0,ee=[],Y=0,fe=0,ce,z,Z=p.getFontByName(c.f),V,j=0,G=sr(Z);c.fWeight=G.weight,c.fStyle=G.style,c.finalSize=c.s,c.finalText=this.buildFinalText(c.t),_=c.finalText.length,c.finalLineHeight=c.lh;var ne=c.tr/1e3*c.finalSize,oe;if(c.sz)for(var de=!0,Oe=c.sz[0],et=c.sz[1],Je,Be;de;){Be=this.buildFinalText(c.t),Je=0,Y=0,_=Be.length,ne=c.tr/1e3*c.finalSize;var ot=-1;for(P=0;P<_;P+=1)oe=Be[P].charCodeAt(0),q=!1,Be[P]===" "?ot=P:(oe===13||oe===3)&&(Y=0,q=!0,Je+=c.finalLineHeight||c.finalSize*1.2),p.chars?(V=p.getCharData(Be[P],Z.fStyle,Z.fFamily),j=q?0:V.w*c.finalSize/100):j=p.measureText(Be[P],c.f,c.finalSize),Y+j>Oe&&Be[P]!==" "?(ot===-1?_+=1:P=ot,Je+=c.finalLineHeight||c.finalSize*1.2,Be.splice(P,ot===P?1:0,"\r"),ot=-1,Y=0):(Y+=j,Y+=ne);Je+=Z.ascent*c.finalSize/100,this.canResize&&c.finalSize>this.minimumFontSize&&et<Je?(c.finalSize-=1,c.finalLineHeight=c.finalSize*c.lh/c.s):(c.finalText=Be,_=c.finalText.length,de=!1)}Y=-ne,j=0;var ct=0,Ie;for(P=0;P<_;P+=1)if(q=!1,Ie=c.finalText[P],oe=Ie.charCodeAt(0),oe===13||oe===3?(ct=0,ee.push(Y),fe=Y>fe?Y:fe,Y=-2*ne,Q="",q=!0,F+=1):Q=Ie,p.chars?(V=p.getCharData(Ie,Z.fStyle,p.getFontByName(c.f).fFamily),j=q?0:V.w*c.finalSize/100):j=p.measureText(Q,c.f,c.finalSize),Ie===" "?ct+=j+ne:(Y+=j+ne+ct,ct=0),$.push({l:j,an:j,add:Ce,n:q,anIndexes:[],val:Q,line:F,animatorJustifyOffset:0}),ye==2){if(Ce+=j,Q===""||Q===" "||P===_-1){for((Q===""||Q===" ")&&(Ce-=j);Re<=P;)$[Re].an=Ce,$[Re].ind=pe,$[Re].extra=j,Re+=1;pe+=1,Ce=0}}else if(ye==3){if(Ce+=j,Q===""||P===_-1){for(Q===""&&(Ce-=j);Re<=P;)$[Re].an=Ce,$[Re].ind=pe,$[Re].extra=j,Re+=1;Ce=0,pe+=1}}else $[pe].ind=pe,$[pe].extra=0,pe+=1;if(c.l=$,fe=Y>fe?Y:fe,ee.push(Y),c.sz)c.boxWidth=c.sz[0],c.justifyOffset=0;else switch(c.boxWidth=fe,c.j){case 1:c.justifyOffset=-c.boxWidth;break;case 2:c.justifyOffset=-c.boxWidth/2;break;default:c.justifyOffset=0}c.lineWidths=ee;var be=v.a,ue,J;z=be.length;var ge,Ne,ke=[];for(ce=0;ce<z;ce+=1){for(ue=be[ce],ue.a.sc&&(c.strokeColorAnim=!0),ue.a.sw&&(c.strokeWidthAnim=!0),(ue.a.fc||ue.a.fh||ue.a.fs||ue.a.fb)&&(c.fillColorAnim=!0),Ne=0,ge=ue.s.b,P=0;P<_;P+=1)J=$[P],J.anIndexes[ce]=Ne,(ge==1&&J.val!==""||ge==2&&J.val!==""&&J.val!==" "||ge==3&&(J.n||J.val==" "||P==_-1)||ge==4&&(J.n||P==_-1))&&(ue.s.rn===1&&ke.push(Ne),Ne+=1);v.a[ce].s.totalChars=Ne;var lt=-1,Tt;if(ue.s.rn===1)for(P=0;P<_;P+=1)J=$[P],lt!=J.anIndexes[ce]&&(lt=J.anIndexes[ce],Tt=ke.splice(Math.floor(Math.random()*ke.length),1)[0]),J.anIndexes[ce]=Tt}c.yOffset=c.finalLineHeight||c.finalSize*1.2,c.ls=c.ls||0,c.ascent=Z.ascent*c.finalSize/100},fr.prototype.updateDocumentData=function(c,p){p=p===void 0?this.keysIndex:p;var v=this.copyData({},this.data.d.k[p].s);v=this.copyData(v,c),this.data.d.k[p].s=v,this.recalculate(p),this.elem.addDynamicProperty(this)},fr.prototype.recalculate=function(c){var p=this.data.d.k[c].s;p.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(p)},fr.prototype.canResizeFont=function(c){this.canResize=c,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},fr.prototype.setMinimumFontSize=function(c){this.minimumFontSize=Math.floor(c)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var vg=function(){var c=Math.max,p=Math.min,v=Math.floor;function $(_,q){this._currentTextLength=-1,this.k=!1,this.data=q,this.elem=_,this.comp=_.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(_),this.s=st.getProp(_,q.s||{k:0},0,0,this),"e"in q?this.e=st.getProp(_,q.e,0,0,this):this.e={v:100},this.o=st.getProp(_,q.o||{k:0},0,0,this),this.xe=st.getProp(_,q.xe||{k:0},0,0,this),this.ne=st.getProp(_,q.ne||{k:0},0,0,this),this.sm=st.getProp(_,q.sm||{k:100},0,0,this),this.a=st.getProp(_,q.a,0,.01,this),this.dynamicProperties.length||this.getValue()}$.prototype={getMult:function(q){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var pe=0,Q=0,ye=1,Ce=1;this.ne.v>0?pe=this.ne.v/100:Q=-this.ne.v/100,this.xe.v>0?ye=1-this.xe.v/100:Ce=1+this.xe.v/100;var Re=pa.getBezierEasing(pe,Q,ye,Ce).get,F=0,ee=this.finalS,Y=this.finalE,fe=this.data.sh;if(fe===2)Y===ee?F=q>=Y?1:0:F=c(0,p(.5/(Y-ee)+(q-ee)/(Y-ee),1)),F=Re(F);else if(fe===3)Y===ee?F=q>=Y?0:1:F=1-c(0,p(.5/(Y-ee)+(q-ee)/(Y-ee),1)),F=Re(F);else if(fe===4)Y===ee?F=0:(F=c(0,p(.5/(Y-ee)+(q-ee)/(Y-ee),1)),F<.5?F*=2:F=1-2*(F-.5)),F=Re(F);else if(fe===5){if(Y===ee)F=0;else{var ce=Y-ee;q=p(c(0,q+.5-ee),Y-ee);var z=-ce/2+q,Z=ce/2;F=Math.sqrt(1-z*z/(Z*Z))}F=Re(F)}else fe===6?(Y===ee?F=0:(q=p(c(0,q+.5-ee),Y-ee),F=(1+Math.cos(Math.PI+Math.PI*2*q/(Y-ee)))/2),F=Re(F)):(q>=v(ee)&&(q-ee<0?F=c(0,p(p(Y,1)-(ee-q),1)):F=c(0,p(Y-q,1))),F=Re(F));if(this.sm.v!==100){var V=this.sm.v*.01;V===0&&(V=1e-8);var j=.5-V*.5;F<j?F=0:(F=(F-j)/V,F>1&&(F=1))}return F*this.a.v},getValue:function(q){this.iterateDynamicProperties(),this._mdf=q||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,q&&this.data.r===2&&(this.e.v=this._currentTextLength);var pe=this.data.r===2?1:100/this.data.totalChars,Q=this.o.v/pe,ye=this.s.v/pe+Q,Ce=this.e.v/pe+Q;if(ye>Ce){var Re=ye;ye=Ce,Ce=Re}this.finalS=ye,this.finalE=Ce}},Me([dn],$);function P(_,q,pe){return new $(_,q)}return{getTextSelectorProp:P}}();function yg(c,p,v){var $={propType:!1},P=st.getProp,_=p.a;this.a={r:_.r?P(c,_.r,0,mt,v):$,rx:_.rx?P(c,_.rx,0,mt,v):$,ry:_.ry?P(c,_.ry,0,mt,v):$,sk:_.sk?P(c,_.sk,0,mt,v):$,sa:_.sa?P(c,_.sa,0,mt,v):$,s:_.s?P(c,_.s,1,.01,v):$,a:_.a?P(c,_.a,1,0,v):$,o:_.o?P(c,_.o,0,.01,v):$,p:_.p?P(c,_.p,1,0,v):$,sw:_.sw?P(c,_.sw,0,0,v):$,sc:_.sc?P(c,_.sc,1,0,v):$,fc:_.fc?P(c,_.fc,1,0,v):$,fh:_.fh?P(c,_.fh,0,0,v):$,fs:_.fs?P(c,_.fs,0,.01,v):$,fb:_.fb?P(c,_.fb,0,.01,v):$,t:_.t?P(c,_.t,0,0,v):$},this.s=vg.getTextSelectorProp(c,p.s,v),this.s.t=p.s.t}function Aa(c,p,v){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=c,this._renderType=p,this._elem=v,this._animatorsData=Ke(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(v)}Aa.prototype.searchProperties=function(){var c,p=this._textData.a.length,v,$=st.getProp;for(c=0;c<p;c+=1)v=this._textData.a[c],this._animatorsData[c]=new yg(this._elem,v,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:$(this._elem,this._textData.p.a,0,0,this),f:$(this._elem,this._textData.p.f,0,0,this),l:$(this._elem,this._textData.p.l,0,0,this),r:$(this._elem,this._textData.p.r,0,0,this),p:$(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=$(this._elem,this._textData.m.a,1,0,this)},Aa.prototype.getMeasures=function(c,p){if(this.lettersChangedFlag=p,!(!this._mdf&&!this._isFirstFrame&&!p&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var v=this._moreOptions.alignment.v,$=this._animatorsData,P=this._textData,_=this.mHelper,q=this._renderType,pe=this.renderedLetters.length,Q,ye,Ce,Re,F=c.l,ee,Y,fe,ce,z,Z,V,j,G,ne,oe,de,Oe,et,Je;if(this._hasMaskedPath){if(Je=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Be=Je.v;this._pathData.r.v&&(Be=Be.reverse()),ee={tLength:0,segments:[]},Re=Be._length-1;var ot;for(de=0,Ce=0;Ce<Re;Ce+=1)ot=Xr.buildBezierData(Be.v[Ce],Be.v[Ce+1],[Be.o[Ce][0]-Be.v[Ce][0],Be.o[Ce][1]-Be.v[Ce][1]],[Be.i[Ce+1][0]-Be.v[Ce+1][0],Be.i[Ce+1][1]-Be.v[Ce+1][1]]),ee.tLength+=ot.segmentLength,ee.segments.push(ot),de+=ot.segmentLength;Ce=Re,Je.v.c&&(ot=Xr.buildBezierData(Be.v[Ce],Be.v[0],[Be.o[Ce][0]-Be.v[Ce][0],Be.o[Ce][1]-Be.v[Ce][1]],[Be.i[0][0]-Be.v[0][0],Be.i[0][1]-Be.v[0][1]]),ee.tLength+=ot.segmentLength,ee.segments.push(ot),de+=ot.segmentLength),this._pathData.pi=ee}if(ee=this._pathData.pi,Y=this._pathData.f.v,V=0,Z=1,ce=0,z=!0,ne=ee.segments,Y<0&&Je.v.c)for(ee.tLength<Math.abs(Y)&&(Y=-Math.abs(Y)%ee.tLength),V=ne.length-1,G=ne[V].points,Z=G.length-1;Y<0;)Y+=G[Z].partialLength,Z-=1,Z<0&&(V-=1,G=ne[V].points,Z=G.length-1);G=ne[V].points,j=G[Z-1],fe=G[Z],oe=fe.partialLength}Re=F.length,Q=0,ye=0;var ct=c.finalSize*1.2*.714,Ie=!0,be,ue,J,ge,Ne;ge=$.length;var ke,lt=-1,Tt,Et,$n,Ht=Y,dr=V,Jn=Z,Nn=-1,Un,qn,br,ft,fn,Qr,ki,cs,vi="",fs=this.defaultPropsArray,ds;if(c.j===2||c.j===1){var Zt=0,xn=0,Us=c.j===2?-.5:-1,yi=0,hs=!0;for(Ce=0;Ce<Re;Ce+=1)if(F[Ce].n){for(Zt&&(Zt+=xn);yi<Ce;)F[yi].animatorJustifyOffset=Zt,yi+=1;Zt=0,hs=!0}else{for(J=0;J<ge;J+=1)be=$[J].a,be.t.propType&&(hs&&c.j===2&&(xn+=be.t.v*Us),ue=$[J].s,ke=ue.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),ke.length?Zt+=be.t.v*ke[0]*Us:Zt+=be.t.v*ke*Us);hs=!1}for(Zt&&(Zt+=xn);yi<Ce;)F[yi].animatorJustifyOffset=Zt,yi+=1}for(Ce=0;Ce<Re;Ce+=1){if(_.reset(),Un=1,F[Ce].n)Q=0,ye+=c.yOffset,ye+=Ie?1:0,Y=Ht,Ie=!1,this._hasMaskedPath&&(V=dr,Z=Jn,G=ne[V].points,j=G[Z-1],fe=G[Z],oe=fe.partialLength,ce=0),vi="",cs="",Qr="",ds="",fs=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Nn!==F[Ce].line){switch(c.j){case 1:Y+=de-c.lineWidths[F[Ce].line];break;case 2:Y+=(de-c.lineWidths[F[Ce].line])/2;break}Nn=F[Ce].line}lt!==F[Ce].ind&&(F[lt]&&(Y+=F[lt].extra),Y+=F[Ce].an/2,lt=F[Ce].ind),Y+=v[0]*F[Ce].an*.005;var bi=0;for(J=0;J<ge;J+=1)be=$[J].a,be.p.propType&&(ue=$[J].s,ke=ue.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),ke.length?bi+=be.p.v[0]*ke[0]:bi+=be.p.v[0]*ke),be.a.propType&&(ue=$[J].s,ke=ue.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),ke.length?bi+=be.a.v[0]*ke[0]:bi+=be.a.v[0]*ke);for(z=!0,this._pathData.a.v&&(Y=F[0].an*.5+(de-this._pathData.f.v-F[0].an*.5-F[F.length-1].an*.5)*lt/(Re-1),Y+=this._pathData.f.v);z;)ce+oe>=Y+bi||!G?(Oe=(Y+bi-ce)/fe.partialLength,Et=j.point[0]+(fe.point[0]-j.point[0])*Oe,$n=j.point[1]+(fe.point[1]-j.point[1])*Oe,_.translate(-v[0]*F[Ce].an*.005,-(v[1]*ct)*.01),z=!1):G&&(ce+=fe.partialLength,Z+=1,Z>=G.length&&(Z=0,V+=1,ne[V]?G=ne[V].points:Je.v.c?(Z=0,V=0,G=ne[V].points):(ce-=fe.partialLength,G=null)),G&&(j=fe,fe=G[Z],oe=fe.partialLength));Tt=F[Ce].an/2-F[Ce].add,_.translate(-Tt,0,0)}else Tt=F[Ce].an/2-F[Ce].add,_.translate(-Tt,0,0),_.translate(-v[0]*F[Ce].an*.005,-v[1]*ct*.01,0);for(J=0;J<ge;J+=1)be=$[J].a,be.t.propType&&(ue=$[J].s,ke=ue.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),(Q!==0||c.j!==0)&&(this._hasMaskedPath?ke.length?Y+=be.t.v*ke[0]:Y+=be.t.v*ke:ke.length?Q+=be.t.v*ke[0]:Q+=be.t.v*ke));for(c.strokeWidthAnim&&(br=c.sw||0),c.strokeColorAnim&&(c.sc?qn=[c.sc[0],c.sc[1],c.sc[2]]:qn=[0,0,0]),c.fillColorAnim&&c.fc&&(ft=[c.fc[0],c.fc[1],c.fc[2]]),J=0;J<ge;J+=1)be=$[J].a,be.a.propType&&(ue=$[J].s,ke=ue.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),ke.length?_.translate(-be.a.v[0]*ke[0],-be.a.v[1]*ke[1],be.a.v[2]*ke[2]):_.translate(-be.a.v[0]*ke,-be.a.v[1]*ke,be.a.v[2]*ke));for(J=0;J<ge;J+=1)be=$[J].a,be.s.propType&&(ue=$[J].s,ke=ue.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),ke.length?_.scale(1+(be.s.v[0]-1)*ke[0],1+(be.s.v[1]-1)*ke[1],1):_.scale(1+(be.s.v[0]-1)*ke,1+(be.s.v[1]-1)*ke,1));for(J=0;J<ge;J+=1){if(be=$[J].a,ue=$[J].s,ke=ue.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),be.sk.propType&&(ke.length?_.skewFromAxis(-be.sk.v*ke[0],be.sa.v*ke[1]):_.skewFromAxis(-be.sk.v*ke,be.sa.v*ke)),be.r.propType&&(ke.length?_.rotateZ(-be.r.v*ke[2]):_.rotateZ(-be.r.v*ke)),be.ry.propType&&(ke.length?_.rotateY(be.ry.v*ke[1]):_.rotateY(be.ry.v*ke)),be.rx.propType&&(ke.length?_.rotateX(be.rx.v*ke[0]):_.rotateX(be.rx.v*ke)),be.o.propType&&(ke.length?Un+=(be.o.v*ke[0]-Un)*ke[0]:Un+=(be.o.v*ke-Un)*ke),c.strokeWidthAnim&&be.sw.propType&&(ke.length?br+=be.sw.v*ke[0]:br+=be.sw.v*ke),c.strokeColorAnim&&be.sc.propType)for(fn=0;fn<3;fn+=1)ke.length?qn[fn]+=(be.sc.v[fn]-qn[fn])*ke[0]:qn[fn]+=(be.sc.v[fn]-qn[fn])*ke;if(c.fillColorAnim&&c.fc){if(be.fc.propType)for(fn=0;fn<3;fn+=1)ke.length?ft[fn]+=(be.fc.v[fn]-ft[fn])*ke[0]:ft[fn]+=(be.fc.v[fn]-ft[fn])*ke;be.fh.propType&&(ke.length?ft=Lt(ft,be.fh.v*ke[0]):ft=Lt(ft,be.fh.v*ke)),be.fs.propType&&(ke.length?ft=zt(ft,be.fs.v*ke[0]):ft=zt(ft,be.fs.v*ke)),be.fb.propType&&(ke.length?ft=_t(ft,be.fb.v*ke[0]):ft=_t(ft,be.fb.v*ke))}}for(J=0;J<ge;J+=1)be=$[J].a,be.p.propType&&(ue=$[J].s,ke=ue.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),this._hasMaskedPath?ke.length?_.translate(0,be.p.v[1]*ke[0],-be.p.v[2]*ke[1]):_.translate(0,be.p.v[1]*ke,-be.p.v[2]*ke):ke.length?_.translate(be.p.v[0]*ke[0],be.p.v[1]*ke[1],-be.p.v[2]*ke[2]):_.translate(be.p.v[0]*ke,be.p.v[1]*ke,-be.p.v[2]*ke));if(c.strokeWidthAnim&&(Qr=br<0?0:br),c.strokeColorAnim&&(ki="rgb("+Math.round(qn[0]*255)+","+Math.round(qn[1]*255)+","+Math.round(qn[2]*255)+")"),c.fillColorAnim&&c.fc&&(cs="rgb("+Math.round(ft[0]*255)+","+Math.round(ft[1]*255)+","+Math.round(ft[2]*255)+")"),this._hasMaskedPath){if(_.translate(0,-c.ls),_.translate(0,v[1]*ct*.01+ye,0),this._pathData.p.v){et=(fe.point[1]-j.point[1])/(fe.point[0]-j.point[0]);var ps=Math.atan(et)*180/Math.PI;fe.point[0]<j.point[0]&&(ps+=180),_.rotate(-ps*Math.PI/180)}_.translate(Et,$n,0),Y-=v[0]*F[Ce].an*.005,F[Ce+1]&<!==F[Ce+1].ind&&(Y+=F[Ce].an/2,Y+=c.tr*.001*c.finalSize)}else{switch(_.translate(Q,ye,0),c.ps&&_.translate(c.ps[0],c.ps[1]+c.ascent,0),c.j){case 1:_.translate(F[Ce].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[F[Ce].line]),0,0);break;case 2:_.translate(F[Ce].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[F[Ce].line])/2,0,0);break}_.translate(0,-c.ls),_.translate(Tt,0,0),_.translate(v[0]*F[Ce].an*.005,v[1]*ct*.01,0),Q+=F[Ce].l+c.tr*.001*c.finalSize}q==="html"?vi=_.toCSS():q==="svg"?vi=_.to2dCSS():fs=[_.props[0],_.props[1],_.props[2],_.props[3],_.props[4],_.props[5],_.props[6],_.props[7],_.props[8],_.props[9],_.props[10],_.props[11],_.props[12],_.props[13],_.props[14],_.props[15]],ds=Un}pe<=Ce?(Ne=new bl(ds,Qr,ki,cs,vi,fs),this.renderedLetters.push(Ne),pe+=1,this.lettersChangedFlag=!0):(Ne=this.renderedLetters[Ce],this.lettersChangedFlag=Ne.update(ds,Qr,ki,cs,vi,fs)||this.lettersChangedFlag)}}},Aa.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Aa.prototype.mHelper=new Ln,Aa.prototype.defaultPropsArray=[],Me([dn],Aa);function gi(){}gi.prototype.initElement=function(c,p,v){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(c,p,v),this.textProperty=new fr(this,c.t,this.dynamicProperties),this.textAnimator=new Aa(c.t,this.renderType,this),this.initTransform(c,p,v),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},gi.prototype.prepareFrame=function(c){this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},gi.prototype.createPathShape=function(c,p){var v,$=p.length,P,_="";for(v=0;v<$;v+=1)p[v].ty==="sh"&&(P=p[v].ks.k,_+=Dr(P,P.i.length,!0,c));return _},gi.prototype.updateDocumentData=function(c,p){this.textProperty.updateDocumentData(c,p)},gi.prototype.canResizeFont=function(c){this.textProperty.canResizeFont(c)},gi.prototype.setMinimumFontSize=function(c){this.textProperty.setMinimumFontSize(c)},gi.prototype.applyTextPropertiesToMatrix=function(c,p,v,$,P){switch(c.ps&&p.translate(c.ps[0],c.ps[1]+c.ascent,0),p.translate(0,-c.ls,0),c.j){case 1:p.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[v]),0,0);break;case 2:p.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[v])/2,0,0);break}p.translate($,P,0)},gi.prototype.buildColor=function(c){return"rgb("+Math.round(c[0]*255)+","+Math.round(c[1]*255)+","+Math.round(c[2]*255)+")"},gi.prototype.emptyProp=new bl,gi.prototype.destroy=function(){};var bg={shapes:[]};function Ar(c,p,v){this.textSpans=[],this.renderType="svg",this.initElement(c,p,v)}Me([us,Sa,Xo,Ns,Bn,Jo,gi],Ar),Ar.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=$t("text"))},Ar.prototype.buildTextContents=function(c){for(var p=0,v=c.length,$=[],P="";p<v;)c[p]==="\r"||c[p]===""?($.push(P),P=""):P+=c[p],p+=1;return $.push(P),$},Ar.prototype.buildShapeData=function(c,p){if(c.shapes&&c.shapes.length){var v=c.shapes[0];if(v.it){var $=v.it[v.it.length-1];$.s&&($.s.k[0]=p,$.s.k[1]=p)}}return c},Ar.prototype.buildNewText=function(){this.addDynamicProperty(this);var c,p,v=this.textProperty.currentData;this.renderedLetters=Ke(v?v.l.length:0),v.fc?this.layerElement.setAttribute("fill",this.buildColor(v.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),v.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(v.sc)),this.layerElement.setAttribute("stroke-width",v.sw)),this.layerElement.setAttribute("font-size",v.finalSize);var $=this.globalData.fontManager.getFontByName(v.f);if($.fClass)this.layerElement.setAttribute("class",$.fClass);else{this.layerElement.setAttribute("font-family",$.fFamily);var P=v.fWeight,_=v.fStyle;this.layerElement.setAttribute("font-style",_),this.layerElement.setAttribute("font-weight",P)}this.layerElement.setAttribute("aria-label",v.t);var q=v.l||[],pe=!!this.globalData.fontManager.chars;p=q.length;var Q,ye=this.mHelper,Ce="",Re=this.data.singleShape,F=0,ee=0,Y=!0,fe=v.tr*.001*v.finalSize;if(Re&&!pe&&!v.sz){var ce=this.textContainer,z="start";switch(v.j){case 1:z="end";break;case 2:z="middle";break;default:z="start";break}ce.setAttribute("text-anchor",z),ce.setAttribute("letter-spacing",fe);var Z=this.buildTextContents(v.finalText);for(p=Z.length,ee=v.ps?v.ps[1]+v.ascent:0,c=0;c<p;c+=1)Q=this.textSpans[c].span||$t("tspan"),Q.textContent=Z[c],Q.setAttribute("x",0),Q.setAttribute("y",ee),Q.style.display="inherit",ce.appendChild(Q),this.textSpans[c]||(this.textSpans[c]={span:null,glyph:null}),this.textSpans[c].span=Q,ee+=v.finalLineHeight;this.layerElement.appendChild(ce)}else{var V=this.textSpans.length,j;for(c=0;c<p;c+=1){if(this.textSpans[c]||(this.textSpans[c]={span:null,childSpan:null,glyph:null}),!pe||!Re||c===0){if(Q=V>c?this.textSpans[c].span:$t(pe?"g":"text"),V<=c){if(Q.setAttribute("stroke-linecap","butt"),Q.setAttribute("stroke-linejoin","round"),Q.setAttribute("stroke-miterlimit","4"),this.textSpans[c].span=Q,pe){var G=$t("g");Q.appendChild(G),this.textSpans[c].childSpan=G}this.textSpans[c].span=Q,this.layerElement.appendChild(Q)}Q.style.display="inherit"}if(ye.reset(),Re&&(q[c].n&&(F=-fe,ee+=v.yOffset,ee+=Y?1:0,Y=!1),this.applyTextPropertiesToMatrix(v,ye,q[c].line,F,ee),F+=q[c].l||0,F+=fe),pe){j=this.globalData.fontManager.getCharData(v.finalText[c],$.fStyle,this.globalData.fontManager.getFontByName(v.f).fFamily);var ne;if(j.t===1)ne=new Jr(j.data,this.globalData,this);else{var oe=bg;j.data&&j.data.shapes&&(oe=this.buildShapeData(j.data,v.finalSize)),ne=new gn(oe,this.globalData,this)}if(this.textSpans[c].glyph){var de=this.textSpans[c].glyph;this.textSpans[c].childSpan.removeChild(de.layerElement),de.destroy()}this.textSpans[c].glyph=ne,ne._debug=!0,ne.prepareFrame(0),ne.renderFrame(),this.textSpans[c].childSpan.appendChild(ne.layerElement),j.t===1&&this.textSpans[c].childSpan.setAttribute("transform","scale("+v.finalSize/100+","+v.finalSize/100+")")}else Re&&Q.setAttribute("transform","translate("+ye.props[12]+","+ye.props[13]+")"),Q.textContent=q[c].val,Q.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Re&&Q&&Q.setAttribute("d",Ce)}for(;c<this.textSpans.length;)this.textSpans[c].span.style.display="none",c+=1;this._sizeChanged=!0},Ar.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var c=this.layerElement.getBBox();this.bbox={top:c.y,left:c.x,width:c.width,height:c.height}}return this.bbox},Ar.prototype.getValue=function(){var c,p=this.textSpans.length,v;for(this.renderedFrame=this.comp.renderedFrame,c=0;c<p;c+=1)v=this.textSpans[c].glyph,v&&(v.prepareFrame(this.comp.renderedFrame-this.data.st),v._mdf&&(this._mdf=!0))},Ar.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var c,p,v=this.textAnimator.renderedLetters,$=this.textProperty.currentData.l;p=$.length;var P,_,q;for(c=0;c<p;c+=1)$[c].n||(P=v[c],_=this.textSpans[c].span,q=this.textSpans[c].glyph,q&&q.renderFrame(),P._mdf.m&&_.setAttribute("transform",P.m),P._mdf.o&&_.setAttribute("opacity",P.o),P._mdf.sw&&_.setAttribute("stroke-width",P.sw),P._mdf.sc&&_.setAttribute("stroke",P.sc),P._mdf.fc&&_.setAttribute("fill",P.fc))}};function tf(c,p,v){this.initElement(c,p,v)}Me([Qo],tf),tf.prototype.createContent=function(){var c=$t("rect");c.setAttribute("width",this.data.sw),c.setAttribute("height",this.data.sh),c.setAttribute("fill",this.data.sc),this.layerElement.appendChild(c)};function Ks(c,p,v){this.initFrame(),this.initBaseData(c,p,v),this.initFrame(),this.initTransform(c,p,v),this.initHierarchy()}Ks.prototype.prepareFrame=function(c){this.prepareProperties(c,!0)},Ks.prototype.renderFrame=function(){},Ks.prototype.getBaseElement=function(){return null},Ks.prototype.destroy=function(){},Ks.prototype.sourceRectAtTime=function(){},Ks.prototype.hide=function(){},Me([us,Sa,Ns,Bn],Ks);function Vn(){}Me([cr],Vn),Vn.prototype.createNull=function(c){return new Ks(c,this.globalData,this)},Vn.prototype.createShape=function(c){return new gn(c,this.globalData,this)},Vn.prototype.createText=function(c){return new Ar(c,this.globalData,this)},Vn.prototype.createImage=function(c){return new Qo(c,this.globalData,this)},Vn.prototype.createSolid=function(c){return new tf(c,this.globalData,this)},Vn.prototype.configAnimation=function(c){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+c.w+" "+c.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",c.w),this.svgElement.setAttribute("height",c.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var p=this.globalData.defs;this.setupGlobalData(c,p),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=c;var v=$t("clipPath"),$=$t("rect");$.setAttribute("width",c.w),$.setAttribute("height",c.h),$.setAttribute("x",0),$.setAttribute("y",0);var P=wt();v.setAttribute("id",P),v.appendChild($),this.layerElement.setAttribute("clip-path","url("+De()+"#"+P+")"),p.appendChild(v),this.layers=c.layers,this.elements=Ke(c.layers.length)},Vn.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var c,p=this.layers?this.layers.length:0;for(c=0;c<p;c+=1)this.elements[c]&&this.elements[c].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Vn.prototype.updateContainerSize=function(){},Vn.prototype.findIndexByInd=function(c){var p=0,v=this.layers.length;for(p=0;p<v;p+=1)if(this.layers[p].ind===c)return p;return-1},Vn.prototype.buildItem=function(c){var p=this.elements;if(!(p[c]||this.layers[c].ty===99)){p[c]=!0;var v=this.createItem(this.layers[c]);if(p[c]=v,fi()&&(this.layers[c].ty===0&&this.globalData.projectInterface.registerComposition(v),v.initExpressions()),this.appendElementInPos(v,c),this.layers[c].tt){var $="tp"in this.layers[c]?this.findIndexByInd(this.layers[c].tp):c-1;if($===-1)return;if(!this.elements[$]||this.elements[$]===!0)this.buildItem($),this.addPendingElement(v);else{var P=p[$],_=P.getMatte(this.layers[c].tt);v.setMatte(_)}}}},Vn.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();if(c.checkParenting(),c.data.tt)for(var p=0,v=this.elements.length;p<v;){if(this.elements[p]===c){var $="tp"in c.data?this.findIndexByInd(c.data.tp):p-1,P=this.elements[$],_=P.getMatte(this.layers[p].tt);c.setMatte(_);break}p+=1}}},Vn.prototype.renderFrame=function(c){if(!(this.renderedFrame===c||this.destroyed)){c===null?c=this.renderedFrame:this.renderedFrame=c,this.globalData.frameNum=c,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=c,this.globalData._mdf=!1;var p,v=this.layers.length;for(this.completeLayers||this.checkLayers(c),p=v-1;p>=0;p-=1)(this.completeLayers||this.elements[p])&&this.elements[p].prepareFrame(c-this.layers[p].st);if(this.globalData._mdf)for(p=0;p<v;p+=1)(this.completeLayers||this.elements[p])&&this.elements[p].renderFrame()}},Vn.prototype.appendElementInPos=function(c,p){var v=c.getBaseElement();if(v){for(var $=0,P;$<p;)this.elements[$]&&this.elements[$]!==!0&&this.elements[$].getBaseElement()&&(P=this.elements[$].getBaseElement()),$+=1;P?this.layerElement.insertBefore(v,P):this.layerElement.appendChild(v)}},Vn.prototype.hide=function(){this.layerElement.style.display="none"},Vn.prototype.show=function(){this.layerElement.style.display="block"};function Ri(){}Me([us,Sa,Ns,Bn,Jo],Ri),Ri.prototype.initElement=function(c,p,v){this.initFrame(),this.initBaseData(c,p,v),this.initTransform(c,p,v),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!p.progressiveLoad)&&this.buildAllItems(),this.hide()},Ri.prototype.prepareFrame=function(c){if(this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=c/this.data.sr;else{var p=this.tm.v;p===this.data.op&&(p=this.data.op-1),this.renderedFrame=p}var v,$=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),v=$-1;v>=0;v-=1)(this.completeLayers||this.elements[v])&&(this.elements[v].prepareFrame(this.renderedFrame-this.layers[v].st),this.elements[v]._mdf&&(this._mdf=!0))}},Ri.prototype.renderInnerContent=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)(this.completeLayers||this.elements[c])&&this.elements[c].renderFrame()},Ri.prototype.setElements=function(c){this.elements=c},Ri.prototype.getElements=function(){return this.elements},Ri.prototype.destroyElements=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)this.elements[c]&&this.elements[c].destroy()},Ri.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Jr(c,p,v){this.layers=c.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?Ke(this.layers.length):[],this.initElement(c,p,v),this.tm=c.tm?st.getProp(this,c.tm,0,p.frameRate,this):{_placeholder:!0}}Me([Vn,Ri,Xo],Jr),Jr.prototype.createComp=function(c){return new Jr(c,this.globalData,this)};function oo(c,p){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.svgElement=$t("svg");var v="";if(p&&p.title){var $=$t("title"),P=wt();$.setAttribute("id",P),$.textContent=p.title,this.svgElement.appendChild($),v+=P}if(p&&p.description){var _=$t("desc"),q=wt();_.setAttribute("id",q),_.textContent=p.description,this.svgElement.appendChild(_),v+=" "+q}v&&this.svgElement.setAttribute("aria-labelledby",v);var pe=$t("defs");this.svgElement.appendChild(pe);var Q=$t("g");this.svgElement.appendChild(Q),this.layerElement=Q,this.renderConfig={preserveAspectRatio:p&&p.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:p&&p.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:p&&p.contentVisibility||"visible",progressiveLoad:p&&p.progressiveLoad||!1,hideOnTransparent:!(p&&p.hideOnTransparent===!1),viewBoxOnly:p&&p.viewBoxOnly||!1,viewBoxSize:p&&p.viewBoxSize||!1,className:p&&p.className||"",id:p&&p.id||"",focusable:p&&p.focusable,filterSize:{width:p&&p.filterSize&&p.filterSize.width||"100%",height:p&&p.filterSize&&p.filterSize.height||"100%",x:p&&p.filterSize&&p.filterSize.x||"0%",y:p&&p.filterSize&&p.filterSize.y||"0%"},width:p&&p.width,height:p&&p.height,runExpressions:!p||p.runExpressions===void 0||p.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:pe,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return Me([Vn],oo),oo.prototype.createComp=function(c){return new Jr(c,this.globalData,this)},nl("svg",oo),Or.registerModifier("tm",Ir),Or.registerModifier("pb",Os),Or.registerModifier("rp",yr),Or.registerModifier("rd",va),Or.registerModifier("zz",xa),Or.registerModifier("op",bn),Ut})})(o,o.exports);var l=o.exports;function d(W,ie){var O=W==null?null:typeof Symbol<"u"&&W[Symbol.iterator]||W["@@iterator"];if(O!=null){var L,B,he,U,te=[],xe=!0,De=!1;try{if(he=(O=O.call(W)).next,ie!==0)for(;!(xe=(L=he.call(O)).done)&&(te.push(L.value),te.length!==ie);xe=!0);}catch(_e){De=!0,B=_e}finally{try{if(!xe&&O.return!=null&&(U=O.return(),Object(U)!==U))return}finally{if(De)throw B}}return te}}function h(W,ie){var O=Object.keys(W);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(W);ie&&(L=L.filter(function(B){return Object.getOwnPropertyDescriptor(W,B).enumerable})),O.push.apply(O,L)}return O}function m(W){for(var ie=1;ie<arguments.length;ie++){var O=arguments[ie]!=null?arguments[ie]:{};ie%2?h(Object(O),!0).forEach(function(L){g(W,L,O[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties(W,Object.getOwnPropertyDescriptors(O)):h(Object(O)).forEach(function(L){Object.defineProperty(W,L,Object.getOwnPropertyDescriptor(O,L))})}return W}function g(W,ie,O){return ie=M(ie),ie in W?Object.defineProperty(W,ie,{value:O,enumerable:!0,configurable:!0,writable:!0}):W[ie]=O,W}function b(W,ie){if(W==null)return{};var O={},L=Object.keys(W),B,he;for(he=0;he<L.length;he++)B=L[he],!(ie.indexOf(B)>=0)&&(O[B]=W[B]);return O}function x(W,ie){if(W==null)return{};var O=b(W,ie),L,B;if(Object.getOwnPropertySymbols){var he=Object.getOwnPropertySymbols(W);for(B=0;B<he.length;B++)L=he[B],!(ie.indexOf(L)>=0)&&Object.prototype.propertyIsEnumerable.call(W,L)&&(O[L]=W[L])}return O}function w(W,ie){return S(W)||d(W,ie)||E(W,ie)||A()}function S(W){if(Array.isArray(W))return W}function E(W,ie){if(W){if(typeof W=="string")return C(W,ie);var O=Object.prototype.toString.call(W).slice(8,-1);if(O==="Object"&&W.constructor&&(O=W.constructor.name),O==="Map"||O==="Set")return Array.from(W);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return C(W,ie)}}function C(W,ie){(ie==null||ie>W.length)&&(ie=W.length);for(var O=0,L=new Array(ie);O<ie;O++)L[O]=W[O];return L}function A(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
143
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k(W,ie){if(typeof W!="object"||W===null)return W;var O=W[Symbol.toPrimitive];if(O!==void 0){var L=O.call(W,ie);if(typeof L!="object")return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ie==="string"?String:Number)(W)}function M(W){var ie=k(W,"string");return typeof ie=="symbol"?ie:String(ie)}var R=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],K=function(ie,O){var L=ie.animationData,B=ie.loop,he=ie.autoplay,U=ie.initialSegment,te=ie.onComplete,xe=ie.onLoopComplete,De=ie.onEnterFrame,_e=ie.onSegmentStart,Me=ie.onConfigReady,Ye=ie.onDataReady,Ge=ie.onDataFailed,Ae=ie.onLoadedImages,Ke=ie.onDOMLoaded,We=ie.onDestroy;ie.lottieRef,ie.renderer,ie.name,ie.assetsPath,ie.rendererSettings;var Ve=x(ie,R),Te=r.useState(!1),tt=w(Te,2),yt=tt[0],Jt=tt[1],xt=r.useRef(),Mt=r.useRef(null),Ti=function(){var _t;(_t=xt.current)===null||_t===void 0||_t.play()},mt=function(){var _t;(_t=xt.current)===null||_t===void 0||_t.stop()},me=function(){var _t;(_t=xt.current)===null||_t===void 0||_t.pause()},Se=function(_t){var Lt;(Lt=xt.current)===null||Lt===void 0||Lt.setSpeed(_t)},Le=function(_t,Lt){var Wt;(Wt=xt.current)===null||Wt===void 0||Wt.goToAndPlay(_t,Lt)},it=function(_t,Lt){var Wt;(Wt=xt.current)===null||Wt===void 0||Wt.goToAndStop(_t,Lt)},Qe=function(_t){var Lt;(Lt=xt.current)===null||Lt===void 0||Lt.setDirection(_t)},Xe=function(_t,Lt){var Wt;(Wt=xt.current)===null||Wt===void 0||Wt.playSegments(_t,Lt)},gt=function(_t){var Lt;(Lt=xt.current)===null||Lt===void 0||Lt.setSubframe(_t)},kt=function(_t){var Lt;return(Lt=xt.current)===null||Lt===void 0?void 0:Lt.getDuration(_t)},wt=function(){var _t;(_t=xt.current)===null||_t===void 0||_t.destroy(),xt.current=void 0},yn=function(){var _t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Lt;if(Mt.current){(Lt=xt.current)===null||Lt===void 0||Lt.destroy();var Wt=m(m(m({},ie),_t),{},{container:Mt.current});return xt.current=l.loadAnimation(Wt),Jt(!!xt.current),function(){var gr;(gr=xt.current)===null||gr===void 0||gr.destroy(),xt.current=void 0}}};r.useEffect(function(){var zt=yn();return function(){return zt==null?void 0:zt()}},[L,B]),r.useEffect(function(){xt.current&&(xt.current.autoplay=!!he)},[he]),r.useEffect(function(){if(xt.current){if(!U){xt.current.resetSegments(!0);return}!Array.isArray(U)||!U.length||((xt.current.currentRawFrame<U[0]||xt.current.currentRawFrame>U[1])&&(xt.current.currentRawFrame=U[0]),xt.current.setSegment(U[0],U[1]))}},[U]),r.useEffect(function(){var zt=[{name:"complete",handler:te},{name:"loopComplete",handler:xe},{name:"enterFrame",handler:De},{name:"segmentStart",handler:_e},{name:"config_ready",handler:Me},{name:"data_ready",handler:Ye},{name:"data_failed",handler:Ge},{name:"loaded_images",handler:Ae},{name:"DOMLoaded",handler:Ke},{name:"destroy",handler:We}],_t=zt.filter(function(Wt){return Wt.handler!=null});if(_t.length){var Lt=_t.map(function(Wt){var gr;return(gr=xt.current)===null||gr===void 0||gr.addEventListener(Wt.name,Wt.handler),function(){var Zr;(Zr=xt.current)===null||Zr===void 0||Zr.removeEventListener(Wt.name,Wt.handler)}});return function(){Lt.forEach(function(Wt){return Wt()})}}},[te,xe,De,_e,Me,Ye,Ge,Ae,Ke,We]);var Cr=s.default.createElement("div",m({style:O,ref:Mt},Ve));return{View:Cr,play:Ti,stop:mt,pause:me,setSpeed:Se,goToAndStop:it,goToAndPlay:Le,setDirection:Qe,playSegments:Xe,setSubframe:gt,getDuration:kt,destroy:wt,animationContainerRef:Mt,animationLoaded:yt,animationItem:xt.current}};function H(W){var ie=W.getBoundingClientRect(),O=ie.top,L=ie.height,B=window.innerHeight-O,he=window.innerHeight+L;return B/he}function le(W,ie,O){var L=W.getBoundingClientRect(),B=L.top,he=L.left,U=L.width,te=L.height,xe=(ie-he)/U,De=(O-B)/te;return{x:xe,y:De}}var ae=function(ie){var O=ie.wrapperRef,L=ie.animationItem,B=ie.mode,he=ie.actions;r.useEffect(function(){var U=O.current;if(!(!U||!L||!he.length)){L.stop();var te=function(){var _e=null,Me=function(){var Ge=H(U),Ae=he.find(function(We){var Ve=We.visibility;return Ve&&Ge>=Ve[0]&&Ge<=Ve[1]});if(Ae){if(Ae.type==="seek"&&Ae.visibility&&Ae.frames.length===2){var Ke=Ae.frames[0]+Math.ceil((Ge-Ae.visibility[0])/(Ae.visibility[1]-Ae.visibility[0])*Ae.frames[1]);//! goToAndStop must be relative to the start of the current segment
|
|
144
|
+
L.goToAndStop(Ke-L.firstFrame-1,!0)}Ae.type==="loop"&&(_e===null||_e!==Ae.frames||L.isPaused)&&(L.playSegments(Ae.frames,!0),_e=Ae.frames),Ae.type==="play"&&L.isPaused&&(L.resetSegments(!0),L.play()),Ae.type==="stop"&&L.goToAndStop(Ae.frames[0]-L.firstFrame-1,!0)}};return document.addEventListener("scroll",Me),function(){document.removeEventListener("scroll",Me)}},xe=function(){var _e=function(Ae,Ke){var We=Ae,Ve=Ke;if(We!==-1&&Ve!==-1){var Te=le(U,We,Ve);We=Te.x,Ve=Te.y}var tt=he.find(function(xt){var Mt=xt.position;return Mt&&Array.isArray(Mt.x)&&Array.isArray(Mt.y)?We>=Mt.x[0]&&We<=Mt.x[1]&&Ve>=Mt.y[0]&&Ve<=Mt.y[1]:Mt&&!Number.isNaN(Mt.x)&&!Number.isNaN(Mt.y)?We===Mt.x&&Ve===Mt.y:!1});if(tt){if(tt.type==="seek"&&tt.position&&Array.isArray(tt.position.x)&&Array.isArray(tt.position.y)&&tt.frames.length===2){var yt=(We-tt.position.x[0])/(tt.position.x[1]-tt.position.x[0]),Jt=(Ve-tt.position.y[0])/(tt.position.y[1]-tt.position.y[0]);L.playSegments(tt.frames,!0),L.goToAndStop(Math.ceil((yt+Jt)/2*(tt.frames[1]-tt.frames[0])),!0)}tt.type==="loop"&&L.playSegments(tt.frames,!0),tt.type==="play"&&(L.isPaused&&L.resetSegments(!1),L.playSegments(tt.frames)),tt.type==="stop"&&L.goToAndStop(tt.frames[0],!0)}},Me=function(Ae){_e(Ae.clientX,Ae.clientY)},Ye=function(){_e(-1,-1)};return U.addEventListener("mousemove",Me),U.addEventListener("mouseout",Ye),function(){U.removeEventListener("mousemove",Me),U.removeEventListener("mouseout",Ye)}};switch(B){case"scroll":return te();case"cursor":return xe()}}},[B,L])},I=function(ie){var O=ie.actions,L=ie.mode,B=ie.lottieObj,he=B.animationItem,U=B.View,te=B.animationContainerRef;return ae({actions:O,animationItem:he,mode:L,wrapperRef:te}),U},$e=["style","interactivity"],we=function(ie){var O,L,B,he=ie.style,U=ie.interactivity,te=x(ie,$e),xe=K(te,he),De=xe.View,_e=xe.play,Me=xe.stop,Ye=xe.pause,Ge=xe.setSpeed,Ae=xe.goToAndStop,Ke=xe.goToAndPlay,We=xe.setDirection,Ve=xe.playSegments,Te=xe.setSubframe,tt=xe.getDuration,yt=xe.destroy,Jt=xe.animationContainerRef,xt=xe.animationLoaded,Mt=xe.animationItem;return r.useEffect(function(){ie.lottieRef&&(ie.lottieRef.current={play:_e,stop:Me,pause:Ye,setSpeed:Ge,goToAndPlay:Ke,goToAndStop:Ae,setDirection:We,playSegments:Ve,setSubframe:Te,getDuration:tt,destroy:yt,animationContainerRef:Jt,animationLoaded:xt,animationItem:Mt})},[(O=ie.lottieRef)===null||O===void 0?void 0:O.current]),I({lottieObj:{View:De,play:_e,stop:Me,pause:Ye,setSpeed:Ge,goToAndStop:Ae,goToAndPlay:Ke,setDirection:We,playSegments:Ve,setSubframe:Te,getDuration:tt,destroy:yt,animationContainerRef:Jt,animationLoaded:xt,animationItem:Mt},actions:(L=U==null?void 0:U.actions)!==null&&L!==void 0?L:[],mode:(B=U==null?void 0:U.mode)!==null&&B!==void 0?B:"scroll"})};n.LottiePlayer=l,n.default=we,n.useLottie=K,n.useLottieInteractivity=I,Object.defineProperty(n,"__esModule",{value:!0})})}(Kf,Kf.exports)),Kf.exports}var ise=rse();const sse=ci(ise),ase=T.createContext({});function ose(e){const t=T.useRef(null);return t.current===null&&(t.current=e()),t.current}const I$=typeof window<"u",use=I$?T.useLayoutEffect:T.useEffect,FO=T.createContext(null),RO=T.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function lse(e){return typeof e=="object"&&e!==null}function kO(e){return lse(e)&&"offsetHeight"in e}const Xh=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function cse(e,t){let n=new Set,r=new Set,i=!1,s=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function l(h){a.has(h)&&(d.schedule(h),e()),h(o)}const d={schedule:(h,m=!1,g=!1)=>{const x=g&&i?n:r;return m&&a.add(h),x.has(h)||x.add(h),h},cancel:h=>{r.delete(h),a.delete(h)},process:h=>{if(o=h,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,s&&(s=!1,d.process(h))}};return d}const Ja={},fse=40;function OO(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=Xh.reduce((A,k)=>(A[k]=cse(s),A),{}),{setup:o,read:l,resolveKeyframes:d,preUpdate:h,update:m,preRender:g,render:b,postRender:x}=a,w=()=>{const A=Ja.useManualTiming?i.timestamp:performance.now();n=!1,Ja.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(A-i.timestamp,fse),1)),i.timestamp=A,i.isProcessing=!0,o.process(i),l.process(i),d.process(i),h.process(i),m.process(i),g.process(i),b.process(i),x.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(w))},S=()=>{n=!0,r=!0,i.isProcessing||e(w)};return{schedule:Xh.reduce((A,k)=>{const M=a[k];return A[k]=(R,K=!1,H=!1)=>(n||S(),M.schedule(R,K,H)),A},{}),cancel:A=>{for(let k=0;k<Xh.length;k++)a[Xh[k]].cancel(A)},state:i,steps:a}}const Mc=e=>e,{schedule:Ps,cancel:m4,state:cm}=OO(typeof requestAnimationFrame<"u"?requestAnimationFrame:Mc,!0),L$=T.createContext({strict:!1}),HT={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"]},mc={};for(const e in HT)mc[e]={isEnabled:t=>HT[e].some(n=>!!t[n])};function GT(e){for(const t in e)mc[t]={...mc[t],...e[t]}}function dse({children:e,features:t,strict:n=!1}){const[,r]=T.useState(!D1(t)),i=T.useRef(void 0);if(!D1(t)){const{renderer:s,...a}=t;i.current=s,GT(a)}return T.useEffect(()=>{D1(t)&&t().then(({renderer:s,...a})=>{GT(a),i.current=s,r(!0)})},[]),la.jsx(L$.Provider,{value:{renderer:i.current,strict:n},children:e})}function D1(e){return typeof e=="function"}const hse=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 fm(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||hse.has(e)}let IO=e=>!fm(e);function pse(e){e&&(IO=t=>t.startsWith("on")?!fm(t):e(t))}try{pse(require("@emotion/is-prop-valid").default)}catch{}function mse(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(IO(i)||n===!0&&fm(i)||!t&&!fm(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const YT=new Set;function B$(e,t,n){e||YT.has(t)||(console.warn(t),YT.add(t))}function gse(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&B$(!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 ug=T.createContext({});function lg(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function $d(e){return typeof e=="string"||Array.isArray(e)}const V$=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],N$=["initial",...V$];function cg(e){return lg(e.animate)||N$.some(t=>$d(e[t]))}function LO(e){return!!(cg(e)||e.variants)}function vse(e,t){if(cg(e)){const{initial:n,animate:r}=e;return{initial:n===!1||$d(n)?n:void 0,animate:$d(r)?r:void 0}}return e.inherit!==!1?t:{}}function yse(e){const{initial:t,animate:n}=vse(e,T.useContext(ug));return T.useMemo(()=>({initial:t,animate:n}),[ZT(t),ZT(n)])}function ZT(e){return Array.isArray(e)?e.join(" "):e}const bse=Symbol.for("motionComponentSymbol");function BO(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function $se(e,t,n){return T.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):BO(n)&&(n.current=r))},[t])}const j$=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),xse="framerAppearId",VO="data-"+j$(xse),wse=T.createContext({}),{schedule:Cse}=OO(queueMicrotask,!1);function Ese(e,t,n,r,i){var w,S;const{visualElement:s}=T.useContext(ug),a=T.useContext(L$),o=T.useContext(FO),l=T.useContext(RO).reducedMotion,d=T.useRef(null);r=r||a.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:l}));const h=d.current,m=T.useContext(wse);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&Sse(d.current,n,i,m);const g=T.useRef(!1);T.useInsertionEffect(()=>{h&&g.current&&h.update(n,o)});const b=n[VO],x=T.useRef(!!b&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,b))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,b)));return use(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Cse.render(h.render),x.current&&h.animationState&&h.animationState.animateChanges())}),T.useEffect(()=>{h&&(!x.current&&h.animationState&&h.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)==null||E.call(window,b)}),x.current=!1))}),h}function Sse(e,t,n,r){const{layoutId:i,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:d,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:NO(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!a||o&&BO(o),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:d})}function NO(e){if(e)return e.options.allowProjection!==!1?e.projection:NO(e.parent)}let Hd=()=>{},Hu=()=>{};process.env.NODE_ENV!=="production"&&(Hd=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Hu=(e,t)=>{if(!e)throw new Error(t)});function Dse({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){function s(o,l){let d;const h={...T.useContext(RO),...o,layoutId:Ase(o)},{isStatic:m}=h,g=yse(o),b=r(o,m);if(!m&&I$){Tse(h,e);const x=Pse(h);d=x.MeasureLayout,g.visualElement=Ese(i,b,h,t,x.ProjectionNode)}return la.jsxs(ug.Provider,{value:g,children:[d&&g.visualElement?la.jsx(d,{visualElement:g.visualElement,...h}):null,n(i,o,$se(b,g.visualElement,l),b,m,g.visualElement)]})}s.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const a=T.forwardRef(s);return a[bse]=i,a}function Ase({layoutId:e}){const t=T.useContext(ase).id;return t&&e!==void 0?t+"-"+e:e}function Tse(e,t){T.useContext(L$).strict,process.env.NODE_ENV}function Pse(e){const{drag:t,layout:n}=mc;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 jO=e=>t=>typeof t=="string"&&t.startsWith(e),KO=jO("--"),_se=jO("var(--"),K$=e=>_se(e)?Mse.test(e.split("/*")[0].trim()):!1,Mse=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Fse={},Fc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Rc=new Set(Fc);function UO(e,{layout:t,layoutId:n}){return Rc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Fse[e]||e==="opacity")}const qO=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Gu=(e,t,n)=>n>t?t:n<e?e:n,kc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},xd={...kc,transform:e=>Gu(0,1,e)},Jh={...kc,default:1},XT={...kc,transform:Math.round},Gd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),$o=Gd("deg"),nc=Gd("%"),Pt=Gd("px"),Rse=Gd("vh"),kse=Gd("vw"),JT={...nc,parse:e=>nc.parse(e)/100,transform:e=>nc.transform(e*100)},Ose={rotate:$o,rotateX:$o,rotateY:$o,rotateZ:$o,scale:Jh,scaleX:Jh,scaleY:Jh,scaleZ:Jh,skew:$o,skewX:$o,skewY:$o,distance:Pt,translateX:Pt,translateY:Pt,translateZ:Pt,x:Pt,y:Pt,z:Pt,perspective:Pt,transformPerspective:Pt,opacity:xd,originX:JT,originY:JT,originZ:Pt},U$={borderWidth:Pt,borderTopWidth:Pt,borderRightWidth:Pt,borderBottomWidth:Pt,borderLeftWidth:Pt,borderRadius:Pt,radius:Pt,borderTopLeftRadius:Pt,borderTopRightRadius:Pt,borderBottomRightRadius:Pt,borderBottomLeftRadius:Pt,width:Pt,maxWidth:Pt,height:Pt,maxHeight:Pt,top:Pt,right:Pt,bottom:Pt,left:Pt,padding:Pt,paddingTop:Pt,paddingRight:Pt,paddingBottom:Pt,paddingLeft:Pt,margin:Pt,marginTop:Pt,marginRight:Pt,marginBottom:Pt,marginLeft:Pt,backgroundPositionX:Pt,backgroundPositionY:Pt,...Ose,zIndex:XT,fillOpacity:xd,strokeOpacity:xd,numOctaves:XT},Ise={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Lse=Fc.length;function Bse(e,t,n){let r="",i=!0;for(let s=0;s<Lse;s++){const a=Fc[s],o=e[a];if(o===void 0)continue;let l=!0;if(typeof o=="number"?l=o===(a.startsWith("scale")?1:0):l=parseFloat(o)===0,!l||n){const d=qO(o,U$[a]);if(!l){i=!1;const h=Ise[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function q$(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let a=!1,o=!1;for(const l in t){const d=t[l];if(Rc.has(l)){a=!0;continue}else if(KO(l)){i[l]=d;continue}else{const h=qO(d,U$[l]);l.startsWith("origin")?(o=!0,s[l]=h):r[l]=h}}if(t.transform||(a||n?r.transform=Bse(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:l="50%",originY:d="50%",originZ:h=0}=s;r.transformOrigin=`${l} ${d} ${h}`}}const z$=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),zr=e=>!!(e&&e.getVelocity);function zO(e,t,n){for(const r in t)!zr(t[r])&&!UO(r,n)&&(e[r]=t[r])}function Vse({transformTemplate:e},t){return T.useMemo(()=>{const n=z$();return q$(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Nse(e,t){const n=e.style||{},r={};return zO(r,n,e),Object.assign(r,Vse(e,t)),r}function jse(e,t){const n={},r=Nse(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 Kse={offset:"stroke-dashoffset",array:"stroke-dasharray"},Use={offset:"strokeDashoffset",array:"strokeDasharray"};function qse(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?Kse:Use;e[s.offset]=Pt.transform(-r);const a=Pt.transform(t),o=Pt.transform(n);e[s.array]=`${a} ${o}`}function WO(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:a=0,...o},l,d,h){if(q$(e,o,d),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g}=e;m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=(h==null?void 0:h.transformBox)??"fill-box",delete m.transformBox),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),i!==void 0&&qse(m,i,s,a,!1)}const HO=()=>({...z$(),attrs:{}}),GO=e=>typeof e=="string"&&e.toLowerCase()==="svg";function zse(e,t,n,r){const i=T.useMemo(()=>{const s=HO();return WO(s,t,GO(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};zO(s,e.style,e),i.style={...s,...i.style}}return i}const Wse=["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 W$(e){return typeof e!="string"||e.includes("-")?!1:!!(Wse.indexOf(e)>-1||/[A-Z]/u.test(e))}function Hse(e=!1){return(n,r,i,{latestValues:s},a)=>{const l=(W$(n)?zse:jse)(r,s,a,n),d=mse(r,typeof n=="string",e),h=n!==T.Fragment?{...d,...l,ref:i}:{},{children:m}=r,g=T.useMemo(()=>zr(m)?m.get():m,[m]);return T.createElement(n,{...h,children:g})}}function QT(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function H$(e,t,n,r){if(typeof t=="function"){const[i,s]=QT(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=QT(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function Gse(e){return zr(e)?e.get():e}function Yse({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Zse(n,r,i,e),renderState:t()}}const YO=e=>(t,n)=>{const r=T.useContext(ug),i=T.useContext(FO),s=()=>Yse(e,t,r,i);return n?s():ose(s)};function Zse(e,t,n,r){const i={},s=r(e,{});for(const g in s)i[g]=Gse(s[g]);let{initial:a,animate:o}=e;const l=cg(e),d=LO(e);t&&d&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),o===void 0&&(o=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const m=h?o:a;if(m&&typeof m!="boolean"&&!lg(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const x=H$(e,g[b]);if(x){const{transitionEnd:w,transition:S,...E}=x;for(const C in E){let A=E[C];if(Array.isArray(A)){const k=h?A.length-1:0;A=A[k]}A!==null&&(i[C]=A)}for(const C in w)i[C]=w[C]}}}return i}function G$(e,t,n){var s;const{style:r}=e,i={};for(const a in r)(zr(r[a])||t.style&&zr(t.style[a])||UO(a,e)||((s=n==null?void 0:n.getValue(a))==null?void 0:s.liveStyle)!==void 0)&&(i[a]=r[a]);return i}const Xse={useVisualState:YO({scrapeMotionValuesFromProps:G$,createRenderState:z$})};function ZO(e,t,n){const r=G$(e,t,n);for(const i in e)if(zr(e[i])||zr(t[i])){const s=Fc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const Jse={useVisualState:YO({scrapeMotionValuesFromProps:ZO,createRenderState:HO})};function Qse(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...W$(r)?Jse:Xse,preloadedFeatures:e,useRender:Hse(i),createVisualElement:t,Component:r};return Dse(a)}}const eae=Qse(),tae=gse(eae);function wd(e,t,n){const r=e.getProps();return H$(r,t,n!==void 0?n:r.custom,e)}const g4=e=>Array.isArray(e);let Dp;function nae(){Dp=void 0}const Xi={now:()=>(Dp===void 0&&Xi.set(cm.isProcessing||Ja.useManualTiming?cm.timestamp:performance.now()),Dp),set:e=>{Dp=e,queueMicrotask(nae)}};function rae(e,t){e.indexOf(t)===-1&&e.push(t)}function iae(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class XO{constructor(){this.subscriptions=[]}add(t){return rae(this.subscriptions,t),()=>iae(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 s=0;s<i;s++){const a=this.subscriptions[s];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function JO(e,t){return t?e*(1e3/t):0}const e2=30,sae=e=>!isNaN(parseFloat(e));class aae{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{var a,o;const s=Xi.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((a=this.events.change)==null||a.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty();i&&((o=this.events.renderRequest)==null||o.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Xi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=sae(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&B$(!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 XO);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ps.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()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Xi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>e2)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,e2);return JO(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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function dm(e,t){return new aae(e,t)}function oae(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,dm(n))}function uae(e){return g4(e)?e[e.length-1]||0:e}function lae(e,t){const n=wd(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const a in s){const o=uae(s[a]);oae(e,a,o)}}function cae(e){return!!(zr(e)&&e.add)}function fae(e,t){const n=e.getValue("willChange");if(cae(n))return n.add(t);if(!n&&Ja.WillChange){const r=new Ja.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function dae(e){return e.props[VO]}const hae=e=>e!==null;function pae(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(hae),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const mae={type:"spring",stiffness:500,damping:25,restSpeed:10},gae=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),vae={type:"keyframes",duration:.8},yae={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},bae=(e,{keyframes:t})=>t.length>2?vae:Rc.has(e)?e.startsWith("scale")?gae(t[1]):mae:yae;function $ae({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:d,...h}){return!!Object.keys(h).length}function QO(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const ua=e=>e*1e3,Wa=e=>e/1e3,Qf=e=>Math.round(e*1e5)/1e5,Y$=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function xae(e){return e==null}const wae=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Z$=(e,t)=>n=>!!(typeof n=="string"&&wae.test(n)&&n.startsWith(e)||t&&!xae(n)&&Object.prototype.hasOwnProperty.call(n,t)),eI=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,a,o]=r.match(Y$);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(a),alpha:o!==void 0?parseFloat(o):1}},Cae=e=>Gu(0,255,e),A1={...kc,transform:e=>Math.round(Cae(e))},Du={test:Z$("rgb","red"),parse:eI("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+A1.transform(e)+", "+A1.transform(t)+", "+A1.transform(n)+", "+Qf(xd.transform(r))+")"};function Eae(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 v4={test:Z$("#"),parse:Eae,transform:Du.transform},zl={test:Z$("hsl","hue"),parse:eI("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+nc.transform(Qf(t))+", "+nc.transform(Qf(n))+", "+Qf(xd.transform(r))+")"},Pr={test:e=>Du.test(e)||v4.test(e)||zl.test(e),parse:e=>Du.test(e)?Du.parse(e):zl.test(e)?zl.parse(e):v4.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Du.transform(e):zl.transform(e)},Sae=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Dae(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Y$))==null?void 0:t.length)||0)+(((n=e.match(Sae))==null?void 0:n.length)||0)>0}const tI="number",nI="color",Aae="var",Tae="var(",t2="${}",Pae=/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 Cd(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const o=t.replace(Pae,l=>(Pr.test(l)?(r.color.push(s),i.push(nI),n.push(Pr.parse(l))):l.startsWith(Tae)?(r.var.push(s),i.push(Aae),n.push(l)):(r.number.push(s),i.push(tI),n.push(parseFloat(l))),++s,t2)).split(t2);return{values:n,split:o,indexes:r,types:i}}function rI(e){return Cd(e).values}function iI(e){const{split:t,types:n}=Cd(e),r=t.length;return i=>{let s="";for(let a=0;a<r;a++)if(s+=t[a],i[a]!==void 0){const o=n[a];o===tI?s+=Qf(i[a]):o===nI?s+=Pr.transform(i[a]):s+=i[a]}return s}}const _ae=e=>typeof e=="number"?0:e;function Mae(e){const t=rI(e);return iI(e)(t.map(_ae))}const Oc={test:Dae,parse:rI,createTransformer:iI,getAnimatableNone:Mae};function T1(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 Fae({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,a=0;if(!t)i=s=a=n;else{const o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;i=T1(l,o,e+1/3),s=T1(l,o,e),a=T1(l,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:r}}function hm(e,t){return n=>n>0?t:e}const fg=(e,t,n)=>e+(t-e)*n,P1=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Rae=[v4,Du,zl],kae=e=>Rae.find(t=>t.test(e));function n2(e){const t=kae(e);if(Hd(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===zl&&(n=Fae(n)),n}const r2=(e,t)=>{const n=n2(e),r=n2(t);if(!n||!r)return hm(e,t);const i={...n};return s=>(i.red=P1(n.red,r.red,s),i.green=P1(n.green,r.green,s),i.blue=P1(n.blue,r.blue,s),i.alpha=fg(n.alpha,r.alpha,s),Du.transform(i))},y4=new Set(["none","hidden"]);function Oae(e,t){return y4.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}const Iae=(e,t)=>n=>t(e(n)),dg=(...e)=>e.reduce(Iae);function Lae(e,t){return n=>fg(e,t,n)}function X$(e){return typeof e=="number"?Lae:typeof e=="string"?K$(e)?hm:Pr.test(e)?r2:Nae:Array.isArray(e)?sI:typeof e=="object"?Pr.test(e)?r2:Bae:hm}function sI(e,t){const n=[...e],r=n.length,i=e.map((s,a)=>X$(s)(s,t[a]));return s=>{for(let a=0;a<r;a++)n[a]=i[a](s);return n}}function Bae(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=X$(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function Vae(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],a=e.indexes[s][r[s]],o=e.values[a]??0;n[i]=o,r[s]++}return n}const Nae=(e,t)=>{const n=Oc.createTransformer(t),r=Cd(e),i=Cd(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?y4.has(e)&&!i.values.length||y4.has(t)&&!r.values.length?Oae(e,t):dg(sI(Vae(r,i),i.values),n):(Hd(!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.`),hm(e,t))};function aI(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?fg(e,t,n):X$(e)(e,t)}const jae=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Ps.update(t,n),stop:()=>m4(t),now:()=>cm.isProcessing?cm.timestamp:Xi.now()}},oI=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(s/(i-1))+", ";return`linear(${r.substring(0,r.length-2)})`},pm=2e4;function J$(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<pm;)t+=n,r=e.next(t);return t>=pm?1/0:t}function Kae(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(J$(r),pm);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:Wa(i)}}const Uae=5;function uI(e,t,n){const r=Math.max(t-Uae,0);return JO(n-e(r),t-r)}const Rn={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},_1=.001;function qae({duration:e=Rn.duration,bounce:t=Rn.bounce,velocity:n=Rn.velocity,mass:r=Rn.mass}){let i,s;Hd(e<=ua(Rn.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Gu(Rn.minDamping,Rn.maxDamping,a),e=Gu(Rn.minDuration,Rn.maxDuration,Wa(e)),a<1?(i=d=>{const h=d*a,m=h*e,g=h-n,b=b4(d,a),x=Math.exp(-m);return _1-g/b*x},s=d=>{const m=d*a*e,g=m*n+n,b=Math.pow(a,2)*Math.pow(d,2)*e,x=Math.exp(-m),w=b4(Math.pow(d,2),a);return(-i(d)+_1>0?-1:1)*((g-b)*x)/w}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-_1+h*m},s=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const o=5/e,l=Wae(i,s,o);if(e=ua(e),isNaN(l))return{stiffness:Rn.stiffness,damping:Rn.damping,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const zae=12;function Wae(e,t,n){let r=n;for(let i=1;i<zae;i++)r=r-e(r)/t(r);return r}function b4(e,t){return e*Math.sqrt(1-t*t)}const Hae=["duration","bounce"],Gae=["stiffness","damping","mass"];function i2(e,t){return t.some(n=>e[n]!==void 0)}function Yae(e){let t={velocity:Rn.velocity,stiffness:Rn.stiffness,damping:Rn.damping,mass:Rn.mass,isResolvedFromDuration:!1,...e};if(!i2(e,Gae)&&i2(e,Hae))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Gu(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Rn.mass,stiffness:i,damping:s}}else{const n=qae(e);t={...t,...n,mass:Rn.mass},t.isResolvedFromDuration=!0}return t}function mm(e=Rn.visualDuration,t=Rn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],o={done:!1,value:s},{stiffness:l,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=Yae({...n,velocity:-Wa(n.velocity||0)}),x=g||0,w=d/(2*Math.sqrt(l*h)),S=a-s,E=Wa(Math.sqrt(l/h)),C=Math.abs(S)<5;r||(r=C?Rn.restSpeed.granular:Rn.restSpeed.default),i||(i=C?Rn.restDelta.granular:Rn.restDelta.default);let A;if(w<1){const M=b4(E,w);A=R=>{const K=Math.exp(-w*E*R);return a-K*((x+w*E*S)/M*Math.sin(M*R)+S*Math.cos(M*R))}}else if(w===1)A=M=>a-Math.exp(-E*M)*(S+(x+E*S)*M);else{const M=E*Math.sqrt(w*w-1);A=R=>{const K=Math.exp(-w*E*R),H=Math.min(M*R,300);return a-K*((x+w*E*S)*Math.sinh(H)+M*S*Math.cosh(H))/M}}const k={calculatedDuration:b&&m||null,next:M=>{const R=A(M);if(b)o.done=M>=m;else{let K=M===0?x:0;w<1&&(K=M===0?ua(x):uI(A,M,R));const H=Math.abs(K)<=r,le=Math.abs(a-R)<=i;o.done=H&&le}return o.value=o.done?a:R,o},toString:()=>{const M=Math.min(J$(k),pm),R=oI(K=>k.next(M*K).value,M,30);return M+"ms "+R},toTransition:()=>{}};return k}mm.applyToOptions=e=>{const t=Kae(e,100,mm);return e.ease=t.ease,e.duration=ua(t.duration),e.type="keyframes",e};function $4({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=H=>o!==void 0&&H<o||l!==void 0&&H>l,x=H=>o===void 0?l:l===void 0||Math.abs(o-H)<Math.abs(l-H)?o:l;let w=n*t;const S=m+w,E=a===void 0?S:a(S);E!==S&&(w=E-m);const C=H=>-w*Math.exp(-H/r),A=H=>E+C(H),k=H=>{const le=C(H),ae=A(H);g.done=Math.abs(le)<=d,g.value=g.done?E:ae};let M,R;const K=H=>{b(g.value)&&(M=H,R=mm({keyframes:[g.value,x(g.value)],velocity:uI(A,H,g.value),damping:i,stiffness:s,restDelta:d,restSpeed:h}))};return K(0),{calculatedDuration:null,next:H=>{let le=!1;return!R&&M===void 0&&(le=!0,k(H),K(H)),M!==void 0&&H>=M?R.next(H-M):(!le&&k(H),g)}}}const lI=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};function Zae(e,t,n){const r=[],i=n||Ja.mix||aI,s=e.length-1;for(let a=0;a<s;a++){let o=i(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||Mc:t;o=dg(l,o)}r.push(o)}return r}function Xae(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Hu(s===t.length,"Both input and output ranges must be the same length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=Zae(t,r,i),l=o.length,d=h=>{if(a&&h<e[0])return t[0];let m=0;if(l>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=lI(e[m],e[m+1],h);return o[m](g)};return n?h=>d(Gu(e[0],e[s-1],h)):d}function Jae(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=lI(0,t,r);e.push(fg(n,1,i))}}function Qae(e){const t=[0];return Jae(t,e.length-1),t}function eoe(e,t){return e.map(n=>n*t)}const cI=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,toe=1e-7,noe=12;function roe(e,t,n,r,i){let s,a,o=0;do a=t+(n-t)/2,s=cI(a,r,i)-e,s>0?n=a:t=a;while(Math.abs(s)>toe&&++o<noe);return a}function Yd(e,t,n,r){if(e===t&&n===r)return Mc;const i=s=>roe(s,0,1,e,n);return s=>s===0||s===1?s:cI(i(s),t,r)}const ioe=Yd(.42,0,1,1),soe=Yd(0,0,.58,1),fI=Yd(.42,0,.58,1),aoe=e=>Array.isArray(e)&&typeof e[0]!="number",dI=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,hI=e=>t=>1-e(1-t),pI=Yd(.33,1.53,.69,.99),Q$=hI(pI),mI=dI(Q$),gI=e=>(e*=2)<1?.5*Q$(e):.5*(2-Math.pow(2,-10*(e-1))),ex=e=>1-Math.sin(Math.acos(e)),ooe=hI(ex),vI=dI(ex),yI=e=>Array.isArray(e)&&typeof e[0]=="number",s2={linear:Mc,easeIn:ioe,easeInOut:fI,easeOut:soe,circIn:ex,circInOut:vI,circOut:ooe,backIn:Q$,backInOut:mI,backOut:pI,anticipate:gI},uoe=e=>typeof e=="string",a2=e=>{if(yI(e)){Hu(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Yd(t,n,r,i)}else if(uoe(e))return Hu(s2[e]!==void 0,`Invalid easing type '${e}'`),s2[e];return e};function loe(e,t){return e.map(()=>t||fI).splice(0,e.length-1)}function Wl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=aoe(r)?r.map(a2):a2(r),s={done:!1,value:t[0]},a=eoe(n&&n.length===t.length?n:Qae(t),e),o=Xae(a,t,{ease:Array.isArray(i)?i:loe(t,i)});return{calculatedDuration:e,next:l=>(s.value=o(l),s.done=l>=e,s)}}const coe=e=>e!==null;function tx(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(coe),o=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!o||r===void 0?s[o]:r}const foe={decay:$4,inertia:$4,tween:Wl,keyframes:Wl,spring:mm};function bI(e){typeof e.type=="string"&&(e.type=foe[e.type])}class nx{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const doe=e=>e/100;class rx extends nx{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Xi.now()&&this.tick(Xi.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;bI(t);const{type:n=Wl,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:a=0}=t;let{keyframes:o}=t;const l=n||Wl;process.env.NODE_ENV!=="production"&&l!==Wl&&Hu(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`),l!==Wl&&typeof o[0]!="number"&&(this.mixKeyframes=dg(doe,aI(o[0],o[1])),o=[0,100]);const d=l({...t,keyframes:o});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...o].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=J$(d));const{calculatedDuration:h}=d;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:h,repeat:m,repeatType:g,repeatDelay:b,type:x,onUpdate:w,finalKeyframe:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const E=this.currentTime-d*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?E<0:E>i;this.currentTime=Math.max(E,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let A=this.currentTime,k=r;if(m){const H=Math.min(this.currentTime,i)/o;let le=Math.floor(H),ae=H%1;!ae&&H>=1&&(ae=1),ae===1&&le--,le=Math.min(le,m+1),!!(le%2)&&(g==="reverse"?(ae=1-ae,b&&(ae-=b/o)):g==="mirror"&&(k=a)),A=Gu(0,1,ae)*o}const M=C?{done:!1,value:h[0]}:k.next(A);s&&(M.value=s(M.value));let{done:R}=M;!C&&l!==null&&(R=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const K=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return K&&x!==$4&&(M.value=tx(h,this.options,S,this.speed)),w&&w(M.value),K&&this.finish(),M}then(t,n){return this.finished.then(t,n)}get duration(){return Wa(this.calculatedDuration)}get time(){return Wa(this.currentTime)}set time(t){var n;t=ua(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Xi.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Wa(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=jae,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Xi.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function hoe(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Au=e=>e*180/Math.PI,x4=e=>{const t=Au(Math.atan2(e[1],e[0]));return w4(t)},poe={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:x4,rotateZ:x4,skewX:e=>Au(Math.atan(e[1])),skewY:e=>Au(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},w4=e=>(e=e%360,e<0&&(e+=360),e),o2=x4,u2=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),l2=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),moe={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:u2,scaleY:l2,scale:e=>(u2(e)+l2(e))/2,rotateX:e=>w4(Au(Math.atan2(e[6],e[5]))),rotateY:e=>w4(Au(Math.atan2(-e[2],e[0]))),rotateZ:o2,rotate:o2,skewX:e=>Au(Math.atan(e[4])),skewY:e=>Au(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function C4(e){return e.includes("scale")?1:0}function E4(e,t){if(!e||e==="none")return C4(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=moe,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=poe,i=o}if(!i)return C4(t);const s=r[t],a=i[1].split(",").map(voe);return typeof s=="function"?s(a):a[s]}const goe=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return E4(n,t)};function voe(e){return parseFloat(e.trim())}const c2=e=>e===kc||e===Pt,yoe=new Set(["x","y","z"]),boe=Fc.filter(e=>!yoe.has(e));function $oe(e){const t=[];return boe.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ru={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})=>E4(t,"x"),y:(e,{transform:t})=>E4(t,"y")};Ru.translateX=Ru.x;Ru.translateY=Ru.y;const ku=new Set;let S4=!1,D4=!1,A4=!1;function $I(){if(D4){const e=Array.from(ku).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=$oe(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(([s,a])=>{var o;(o=r.getValue(s))==null||o.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}D4=!1,S4=!1,ku.forEach(e=>e.complete(A4)),ku.clear()}function xI(){ku.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(D4=!0)})}function xoe(){A4=!0,xI(),$I(),A4=!1}class ix{constructor(t,n,r,i,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(ku.add(this),S4||(S4=!0,Ps.read(xI),Ps.resolveKeyframes($I))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const o=r.readValue(n,a);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=a),i&&s===void 0&&i.set(t[0])}hoe(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ku.delete(this)}cancel(){this.state==="scheduled"&&(ku.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const woe=e=>e.startsWith("--");function Coe(e,t,n){woe(t)?e.style.setProperty(t,n):e.style[t]=n}function sx(e){let t;return()=>(t===void 0&&(t=e()),t)}const Eoe=sx(()=>window.ScrollTimeline!==void 0),Soe={};function Doe(e,t){const n=sx(e);return()=>Soe[t]??n()}const wI=Doe(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Uf=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,f2={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Uf([0,.65,.55,1]),circOut:Uf([.55,0,1,.45]),backIn:Uf([.31,.01,.66,-.59]),backOut:Uf([.33,1.53,.69,.99])};function CI(e,t){if(e)return typeof e=="function"?wI()?oI(e,t):"ease-out":yI(e)?Uf(e):Array.isArray(e)?e.map(n=>CI(n,t)||f2.easeOut):f2[e]}function Aoe(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:l}={},d=void 0){const h={[t]:n};l&&(h.offset=l);const m=CI(o,i);Array.isArray(m)&&(h.easing=m);const g={delay:r,duration:i,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"};return d&&(g.pseudoElement=d),e.animate(h,g)}function EI(e){return typeof e=="function"&&"applyToOptions"in e}function Toe({type:e,...t}){return EI(e)&&wI()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Poe extends nx{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:o,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,Hu(typeof t.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);const d=Toe(t);this.animation=Aoe(n,r,i,d,s),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const h=tx(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(h):Coe(n,r,h),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Wa(Number(t))}get time(){return Wa(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ua(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Eoe()?(this.animation.timeline=t,Mc):n(this)}}const SI={anticipate:gI,backInOut:mI,circInOut:vI};function _oe(e){return e in SI}function Moe(e){typeof e.ease=="string"&&_oe(e.ease)&&(e.ease=SI[e.ease])}const d2=10;class Foe extends Poe{constructor(t){Moe(t),bI(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new rx({...a,autoplay:!1}),l=ua(this.finishedTime??this.time);n.setWithVelocity(o.sample(l-d2).value,o.sample(l).value,d2),o.stop()}}const h2=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Oc.test(e)||e==="0")&&!e.startsWith("url("));function Roe(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 koe(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=h2(i,t),o=h2(s,t);return Hd(a===o,`You are trying to animate ${t} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`),!a||!o?!1:Roe(e)||(n==="spring"||EI(n))&&r}const Ooe=new Set(["opacity","clipPath","filter","transform"]),Ioe=sx(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Loe(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:a}=e;if(!kO((d=t==null?void 0:t.owner)==null?void 0:d.current))return!1;const{onUpdate:o,transformTemplate:l}=t.owner.getProps();return Ioe()&&n&&Ooe.has(n)&&(n!=="transform"||!l)&&!o&&!r&&i!=="mirror"&&s!==0&&a!=="inertia"}const Boe=40;class Voe extends nx{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",keyframes:o,name:l,motionValue:d,element:h,...m}){var x;super(),this.stop=()=>{var w,S;this._animation&&(this._animation.stop(),(w=this.stopTimeline)==null||w.call(this)),(S=this.keyframeResolver)==null||S.cancel()},this.createdAt=Xi.now();const g={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:a,name:l,motionValue:d,element:h,...m},b=(h==null?void 0:h.KeyframeResolver)||ix;this.keyframeResolver=new b(o,(w,S,E)=>this.onKeyframesResolved(w,S,g,!E),l,d,h),(x=this.keyframeResolver)==null||x.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:a,velocity:o,delay:l,isHandoff:d,onUpdate:h}=r;this.resolvedAt=Xi.now(),koe(t,s,a,o)||((Ja.instantAnimations||!l)&&(h==null||h(tx(t,r,n))),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const g={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Boe?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!d&&Loe(g)?new Foe({...g,element:g.motionValue.owner.current}):new rx(g);b.finished.then(()=>this.notifyFinished()).catch(Mc),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),xoe()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const Noe=(e,t,n,r={},i,s)=>a=>{const o=QO(r,e)||{},l=o.delay||r.delay||0;let{elapsed:d=0}=r;d=d-ua(l);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-d,onUpdate:g=>{t.set(g),o.onUpdate&&o.onUpdate(g)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:i};$ae(o)||Object.assign(h,bae(e,h)),h.duration&&(h.duration=ua(h.duration)),h.repeatDelay&&(h.repeatDelay=ua(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)),(Ja.instantAnimations||Ja.skipAnimations)&&(m=!0,h.duration=0,h.delay=0),h.allowFlatten=!o.type&&!o.ease,m&&!s&&t.get()!==void 0){const g=pae(h.keyframes,o);if(g!==void 0){Ps.update(()=>{h.onUpdate(g),h.onComplete()});return}}return o.isSync?new rx(h):new Voe(h)},DI=new Set(["width","height","top","left","right","bottom",...Fc]);function joe({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function AI(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:a,...o}=t;r&&(s=r);const l=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in o){const m=e.getValue(h,e.latestValues[h]??null),g=o[h];if(g===void 0||d&&joe(d,h))continue;const b={delay:n,...QO(s||{},h)},x=m.get();if(x!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===x&&!b.velocity)continue;let w=!1;if(window.MotionHandoffAnimation){const E=dae(e);if(E){const C=window.MotionHandoffAnimation(E,h,Ps);C!==null&&(b.startTime=C,w=!0)}}fae(e,h),m.start(Noe(h,m,g,e.shouldReduceMotion&&DI.has(h)?{type:!1}:b,e,w));const S=m.animation;S&&l.push(S)}return a&&Promise.all(l).then(()=>{Ps.update(()=>{a&&lae(e,a)})}),l}function T4(e,t,n={}){var l;const r=wd(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(AI(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return Koe(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[d,h]=o==="beforeChildren"?[s,a]:[a,s];return d().then(()=>h())}else return Promise.all([s(),a(n.delay)])}function Koe(e,t,n=0,r=0,i=1,s){const a=[],o=(e.variantChildren.size-1)*r,l=i===1?(d=0)=>d*r:(d=0)=>o-d*r;return Array.from(e.variantChildren).sort(Uoe).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(T4(d,t,{...s,delay:n+l(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function Uoe(e,t){return e.sortNodePosition(t)}function qoe(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>T4(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=T4(e,t,n);else{const i=typeof t=="function"?wd(e,t,n.custom):t;r=Promise.all(AI(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function TI(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 zoe=N$.length;function PI(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?PI(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<zoe;n++){const r=N$[n],i=e.props[r];($d(i)||i===!1)&&(t[r]=i)}return t}const Woe=[...V$].reverse(),Hoe=V$.length;function Goe(e){return t=>Promise.all(t.map(({animation:n,options:r})=>qoe(e,n,r)))}function Yoe(e){let t=Goe(e),n=p2(),r=!0;const i=l=>(d,h)=>{var g;const m=wd(e,h,l==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:b,transitionEnd:x,...w}=m;d={...d,...w,...x}}return d};function s(l){t=l(e)}function a(l){const{props:d}=e,h=PI(e.parent)||{},m=[],g=new Set;let b={},x=1/0;for(let S=0;S<Hoe;S++){const E=Woe[S],C=n[E],A=d[E]!==void 0?d[E]:h[E],k=$d(A),M=E===l?C.isActive:null;M===!1&&(x=S);let R=A===h[E]&&A!==d[E]&&k;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),C.protectedKeys={...b},!C.isActive&&M===null||!A&&!C.prevProp||lg(A)||typeof A=="boolean")continue;const K=Zoe(C.prevProp,A);let H=K||E===l&&C.isActive&&!R&&k||S>x&&k,le=!1;const ae=Array.isArray(A)?A:[A];let I=ae.reduce(i(E),{});M===!1&&(I={});const{prevResolvedValues:$e={}}=C,we={...$e,...I},W=L=>{H=!0,g.has(L)&&(le=!0,g.delete(L)),C.needsAnimating[L]=!0;const B=e.getValue(L);B&&(B.liveStyle=!1)};for(const L in we){const B=I[L],he=$e[L];if(b.hasOwnProperty(L))continue;let U=!1;g4(B)&&g4(he)?U=!TI(B,he):U=B!==he,U?B!=null?W(L):g.add(L):B!==void 0&&g.has(L)?W(L):C.protectedKeys[L]=!0}C.prevProp=A,C.prevResolvedValues=I,C.isActive&&(b={...b,...I}),r&&e.blockInitialAnimation&&(H=!1),H&&(!(R&&K)||le)&&m.push(...ae.map(L=>({animation:L,options:{type:E}})))}if(g.size){const S={};if(typeof d.initial!="boolean"){const E=wd(e,Array.isArray(d.initial)?d.initial[0]:d.initial);E&&E.transition&&(S.transition=E.transition)}g.forEach(E=>{const C=e.getBaseTarget(E),A=e.getValue(E);A&&(A.liveStyle=!0),S[E]=C??null}),m.push({animation:S})}let w=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(m):Promise.resolve()}function o(l,d){var m;if(n[l].isActive===d)return Promise.resolve();(m=e.variantChildren)==null||m.forEach(g=>{var b;return(b=g.animationState)==null?void 0:b.setActive(l,d)}),n[l].isActive=d;const h=a(l);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:a,setActive:o,setAnimateFunction:s,getState:()=>n,reset:()=>{n=p2(),r=!0}}}function Zoe(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!TI(t,e):!1}function hu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function p2(){return{animate:hu(!0),whileInView:hu(),whileHover:hu(),whileTap:hu(),whileDrag:hu(),whileFocus:hu(),exit:hu()}}class Ic{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Xoe extends Ic{constructor(t){super(t),t.animationState||(t.animationState=Yoe(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();lg(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.call(this)}}let Joe=0;class Qoe extends Ic{constructor(){super(...arguments),this.id=Joe++}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 eue={animation:{Feature:Xoe},exit:{Feature:Qoe}};function m2(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const tue=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function _I(e){return{point:{x:e.pageX,y:e.pageY}}}function nue({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function rue(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 g2=()=>({min:0,max:0}),MI=()=>({x:g2(),y:g2()});function iue(e,t){return nue(rue(e.getBoundingClientRect(),t))}const sue={y:!1};function aue(){return sue.y}function oue(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function FI(e,t){const n=oue(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function v2(e){return!(e.pointerType==="touch"||aue())}function uue(e,t,n={}){const[r,i,s]=FI(e,n),a=o=>{if(!v2(o))return;const{target:l}=o,d=t(l,o);if(typeof d!="function"||!l)return;const h=m=>{v2(m)&&(d(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(o=>{o.addEventListener("pointerenter",a,i)}),s}function y2(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&Ps.postRender(()=>s(t,_I(t)))}class lue extends Ic{mount(){const{current:t}=this.node;t&&(this.unmount=uue(t,(n,r)=>(y2(this.node,r,"Start"),i=>y2(this.node,i,"End"))))}unmount(){}}class cue extends Ic{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=dg(m2(this.node.current,"focus",()=>this.onFocus()),m2(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const RI=(e,t)=>t?e===t?!0:RI(e,t.parentElement):!1,fue=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function due(e){return fue.has(e.tagName)||e.tabIndex!==-1}const Ap=new WeakSet;function b2(e){return t=>{t.key==="Enter"&&e(t)}}function M1(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const hue=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=b2(()=>{if(Ap.has(n))return;M1(n,"down");const i=b2(()=>{M1(n,"up")}),s=()=>M1(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function $2(e){return tue(e)&&!0}function pue(e,t,n={}){const[r,i,s]=FI(e,n),a=o=>{const l=o.currentTarget;if(!$2(o))return;Ap.add(l);const d=t(l,o),h=(b,x)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),Ap.has(l)&&Ap.delete(l),$2(b)&&typeof d=="function"&&d(b,{success:x})},m=b=>{h(b,l===window||l===document||n.useGlobalTarget||RI(l,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",a,i),kO(o)&&(o.addEventListener("focus",d=>hue(d,i)),!due(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),s}function x2(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),s=r[i];s&&Ps.postRender(()=>s(t,_I(t)))}class mue extends Ic{mount(){const{current:t}=this.node;t&&(this.unmount=pue(t,(n,r)=>(x2(this.node,r,"Start"),(i,{success:s})=>x2(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const P4=new WeakMap,F1=new WeakMap,gue=e=>{const t=P4.get(e.target);t&&t(e)},vue=e=>{e.forEach(gue)};function yue({root:e,...t}){const n=e||document;F1.has(n)||F1.set(n,{});const r=F1.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(vue,{root:e,...t})),r[i]}function bue(e,t,n){const r=yue(t);return P4.set(e,n),r.observe(e),()=>{P4.delete(e),r.unobserve(e)}}const $ue={some:0,all:1};class xue extends Ic{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:s}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:$ue[i]},o=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,s&&!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(),g=d?h:m;g&&g(l)};return bue(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(wue(t,n))&&this.startObserver()}unmount(){}}function wue({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Cue={inView:{Feature:xue},tap:{Feature:mue},focus:{Feature:cue},hover:{Feature:lue}},_4={current:null},kI={current:!1};function Eue(){if(kI.current=!0,!!I$)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>_4.current=e.matches;e.addListener(t),t()}else _4.current=!1}const Sue=new WeakMap;function Due(e,t,n){for(const r in t){const i=t[r],s=n[r];if(zr(i))e.addValue(r,i);else if(zr(s))e.addValue(r,dm(i,{owner:e}));else if(s!==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,dm(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const OI=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),II=e=>/^0[^.\s]+$/u.test(e),Aue={test:e=>e==="auto",parse:e=>e},LI=e=>t=>t.test(e),BI=[kc,Pt,nc,$o,kse,Rse,Aue],w2=e=>BI.find(LI(e)),Tue=[...BI,Pr,Oc],Pue=e=>Tue.find(LI(e)),_ue=new Set(["brightness","contrast","saturate","opacity"]);function Mue(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Y$)||[];if(!r)return e;const i=n.replace(r,"");let s=_ue.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Fue=/\b([a-z-]*)\(.*?\)/gu,M4={...Oc,getAnimatableNone:e=>{const t=e.match(Fue);return t?t.map(Mue).join(" "):e}},Rue={...U$,color:Pr,backgroundColor:Pr,outlineColor:Pr,fill:Pr,stroke:Pr,borderColor:Pr,borderTopColor:Pr,borderRightColor:Pr,borderBottomColor:Pr,borderLeftColor:Pr,filter:M4,WebkitFilter:M4},VI=e=>Rue[e];function NI(e,t){let n=VI(e);return n!==M4&&(n=Oc),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const C2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class kue{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ix,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 g=Xi.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Ps.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=cg(n),this.isVariantNode=LO(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const b=m[g];l[g]!==void 0&&zr(b)&&b.set(l[g],!1)}}mount(t){this.current=t,Sue.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)),kI.current||Eue(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:_4.current,process.env.NODE_ENV!=="production"&&B$(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(),m4(this.notifyUpdate),m4(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=Rc.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Ps.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),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 mc){const n=mc[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 s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):MI()}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<C2.length;r++){const i=C2[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,a=t[s];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=Due(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}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=dm(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(OI(r)||II(r))?r=parseFloat(r):!Pue(r)&&Oc.test(n)&&(r=NI(t,n)),this.setBaseTarget(t,zr(r)?r.get():r)),zr(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=H$(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!zr(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new XO),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}const Oue=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Iue(e){const t=Oue.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const Lue=4;function jI(e,t,n=1){Hu(n<=Lue,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=Iue(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const a=s.trim();return OI(a)?parseFloat(a):a}return K$(i)?jI(i,t,n+1):i}function Bue(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||II(e):!0}const Vue=new Set(["auto","none","0"]);function Nue(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!Vue.has(s)&&Cd(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=NI(n,i)}class jue extends ix{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let d=t[l];if(typeof d=="string"&&(d=d.trim(),K$(d))){const h=jI(d,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!DI.has(r)||t.length!==2)return;const[i,s]=t,a=w2(i),o=w2(s);if(a!==o)if(c2(a)&&c2(o))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else Ru[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||Bue(t[i]))&&r.push(i);r.length&&Nue(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=Ru[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 o;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,a=r[s];r[s]=Ru[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),(o=this.removedTransforms)!=null&&o.length&&this.removedTransforms.forEach(([l,d])=>{t.getValue(l).set(d)}),this.resolveNoneKeyframes()}}class KI extends kue{constructor(){super(...arguments),this.KeyframeResolver=jue}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;zr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function UI(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}function Kue(e){return window.getComputedStyle(e)}class Uue extends KI{constructor(){super(...arguments),this.type="html",this.renderInstance=UI}readValueFromInstance(t,n){var r;if(Rc.has(n))return(r=this.projection)!=null&&r.isProjecting?C4(n):goe(t,n);{const i=Kue(t),s=(KO(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return iue(t,n)}build(t,n,r){q$(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return G$(t,n,r)}}const qI=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 que(e,t,n,r){UI(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(qI.has(i)?i:j$(i),t.attrs[i])}class zue extends KI{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=MI}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Rc.has(n)){const r=VI(n);return r&&r.default||0}return n=qI.has(n)?n:j$(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return ZO(t,n,r)}build(t,n,r){WO(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){que(t,n,r,i)}mount(t){this.isSVGTag=GO(t.tagName),super.mount(t)}}const Wue=(e,t)=>W$(e)?new zue(t):new Uue(t,{allowProjection:e!==T.Fragment}),Hue={renderer:Wue,...eue,...Cue},Gue=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),zI=e=>Array.isArray(e)&&e.every(t=>typeof t=="object"&&!(t instanceof Array)),Yue=e=>Array.isArray(e)&&e.every(t=>Array.isArray(t)),Zue=e=>Array.from(e.map(t=>Object.keys(t)).reduce((t,n)=>new Set([...t,...n]),[])),Xue=(e,t)=>{t=t||Zue(e);let n=t,r=t;zI(t)&&(n=t.map(s=>s.label),r=t.map(s=>s.key));const i=e.map(s=>r.map(a=>Jue(a,s)));return[n,...i]},Jue=(e,t)=>{const n=e.replace(/\[([^\]]+)]/g,".$1").split(".").reduce(function(r,i,s,a){const o=r[i];if(o==null)a.splice(1);else return o},t);return n===void 0?e in t?t[e]:"":n},Que=e=>typeof e>"u"||e===null?"":e,WI=(e,t=",",n='"')=>e.filter(r=>r).map(r=>r.map(i=>Que(i)).map(i=>`${n}${i}${n}`).join(t)).join(`
|
|
145
|
+
`),ele=(e,t,n,r)=>WI(t?[t,...e]:e,n,r),tle=(e,t,n,r)=>WI(Xue(e,t),n,r),nle=(e,t,n,r)=>t?`${t.join(n)}
|
|
146
|
+
${e}`:e.replace(/"/g,'""'),HI=(e,t,n,r)=>{if(zI(e))return tle(e,t,n,r);if(Yue(e))return ele(e,t,n,r);if(typeof e=="string")return nle(e,t,n);throw new TypeError('Data should be a "String", "Array of arrays" OR "Array of objects" ')},GI=(e,t,n,r,i)=>{const s=HI(e,n,r,i),a=Gue()?"application/csv":"text/csv",o=new Blob([t?"\uFEFF":"",s],{type:a}),l=`data:${a};charset=utf-8,${t?"\uFEFF":""}${s}`,d=window.URL||window.webkitURL;return typeof d.createObjectURL>"u"?l:d.createObjectURL(o)};var Qh={exports:{}},ep={exports:{}},un={};/** @license React v16.13.1
|
|
147
|
+
* react-is.production.min.js
|
|
148
|
+
*
|
|
149
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
150
|
+
*
|
|
151
|
+
* This source code is licensed under the MIT license found in the
|
|
152
|
+
* LICENSE file in the root directory of this source tree.
|
|
153
|
+
*/var E2;function rle(){if(E2)return un;E2=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,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function A(M){if(typeof M=="object"&&M!==null){var R=M.$$typeof;switch(R){case t:switch(M=M.type,M){case l:case d:case r:case s:case i:case m:return M;default:switch(M=M&&M.$$typeof,M){case o:case h:case x:case b:case a:return M;default:return R}}case n:return R}}}function k(M){return A(M)===d}return un.AsyncMode=l,un.ConcurrentMode=d,un.ContextConsumer=o,un.ContextProvider=a,un.Element=t,un.ForwardRef=h,un.Fragment=r,un.Lazy=x,un.Memo=b,un.Portal=n,un.Profiler=s,un.StrictMode=i,un.Suspense=m,un.isAsyncMode=function(M){return k(M)||A(M)===l},un.isConcurrentMode=k,un.isContextConsumer=function(M){return A(M)===o},un.isContextProvider=function(M){return A(M)===a},un.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===t},un.isForwardRef=function(M){return A(M)===h},un.isFragment=function(M){return A(M)===r},un.isLazy=function(M){return A(M)===x},un.isMemo=function(M){return A(M)===b},un.isPortal=function(M){return A(M)===n},un.isProfiler=function(M){return A(M)===s},un.isStrictMode=function(M){return A(M)===i},un.isSuspense=function(M){return A(M)===m},un.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===r||M===d||M===s||M===i||M===m||M===g||typeof M=="object"&&M!==null&&(M.$$typeof===x||M.$$typeof===b||M.$$typeof===a||M.$$typeof===o||M.$$typeof===h||M.$$typeof===S||M.$$typeof===E||M.$$typeof===C||M.$$typeof===w)},un.typeOf=A,un}var ln={};/** @license React v16.13.1
|
|
154
|
+
* react-is.development.js
|
|
155
|
+
*
|
|
156
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
157
|
+
*
|
|
158
|
+
* This source code is licensed under the MIT license found in the
|
|
159
|
+
* LICENSE file in the root directory of this source tree.
|
|
160
|
+
*/var S2;function ile(){return S2||(S2=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,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function A(Te){return typeof Te=="string"||typeof Te=="function"||Te===r||Te===d||Te===s||Te===i||Te===m||Te===g||typeof Te=="object"&&Te!==null&&(Te.$$typeof===x||Te.$$typeof===b||Te.$$typeof===a||Te.$$typeof===o||Te.$$typeof===h||Te.$$typeof===S||Te.$$typeof===E||Te.$$typeof===C||Te.$$typeof===w)}function k(Te){if(typeof Te=="object"&&Te!==null){var tt=Te.$$typeof;switch(tt){case t:var yt=Te.type;switch(yt){case l:case d:case r:case s:case i:case m:return yt;default:var Jt=yt&&yt.$$typeof;switch(Jt){case o:case h:case x:case b:case a:return Jt;default:return tt}}case n:return tt}}}var M=l,R=d,K=o,H=a,le=t,ae=h,I=r,$e=x,we=b,W=n,ie=s,O=i,L=m,B=!1;function he(Te){return B||(B=!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.")),U(Te)||k(Te)===l}function U(Te){return k(Te)===d}function te(Te){return k(Te)===o}function xe(Te){return k(Te)===a}function De(Te){return typeof Te=="object"&&Te!==null&&Te.$$typeof===t}function _e(Te){return k(Te)===h}function Me(Te){return k(Te)===r}function Ye(Te){return k(Te)===x}function Ge(Te){return k(Te)===b}function Ae(Te){return k(Te)===n}function Ke(Te){return k(Te)===s}function We(Te){return k(Te)===i}function Ve(Te){return k(Te)===m}ln.AsyncMode=M,ln.ConcurrentMode=R,ln.ContextConsumer=K,ln.ContextProvider=H,ln.Element=le,ln.ForwardRef=ae,ln.Fragment=I,ln.Lazy=$e,ln.Memo=we,ln.Portal=W,ln.Profiler=ie,ln.StrictMode=O,ln.Suspense=L,ln.isAsyncMode=he,ln.isConcurrentMode=U,ln.isContextConsumer=te,ln.isContextProvider=xe,ln.isElement=De,ln.isForwardRef=_e,ln.isFragment=Me,ln.isLazy=Ye,ln.isMemo=Ge,ln.isPortal=Ae,ln.isProfiler=Ke,ln.isStrictMode=We,ln.isSuspense=Ve,ln.isValidElementType=A,ln.typeOf=k}()),ln}var D2;function YI(){return D2||(D2=1,process.env.NODE_ENV==="production"?ep.exports=rle():ep.exports=ile()),ep.exports}/*
|
|
161
|
+
object-assign
|
|
162
|
+
(c) Sindre Sorhus
|
|
163
|
+
@license MIT
|
|
164
|
+
*/var R1,A2;function sle(){if(A2)return R1;A2=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var a={},o=0;o<10;o++)a["_"+String.fromCharCode(o)]=o;var l=Object.getOwnPropertyNames(a).map(function(h){return a[h]});if(l.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 R1=i()?Object.assign:function(s,a){for(var o,l=r(s),d,h=1;h<arguments.length;h++){o=Object(arguments[h]);for(var m in o)t.call(o,m)&&(l[m]=o[m]);if(e){d=e(o);for(var g=0;g<d.length;g++)n.call(o,d[g])&&(l[d[g]]=o[d[g]])}}return l},R1}var k1,T2;function ax(){if(T2)return k1;T2=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return k1=e,k1}var O1,P2;function ZI(){return P2||(P2=1,O1=Function.call.bind(Object.prototype.hasOwnProperty)),O1}var I1,_2;function ale(){if(_2)return I1;_2=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=ax(),n={},r=ZI();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(s,a,o,l,d){if(process.env.NODE_ENV!=="production"){for(var h in s)if(r(s,h)){var m;try{if(typeof s[h]!="function"){var g=Error((l||"React class")+": "+o+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}m=s[h](a,h,l,o,null,t)}catch(x){m=x}if(m&&!(m instanceof Error)&&e((l||"React class")+": type specification of "+o+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in n)){n[m.message]=!0;var b=d?d():"";e("Failed "+o+" type: "+m.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},I1=i,I1}var L1,M2;function ole(){if(M2)return L1;M2=1;var e=YI(),t=sle(),n=ax(),r=ZI(),i=ale(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(o){var l="Warning: "+o;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function a(){return null}return L1=function(o,l){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(U){var te=U&&(d&&U[d]||U[h]);if(typeof te=="function")return te}var g="<<anonymous>>",b={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:C(),arrayOf:A,element:k(),elementType:M(),instanceOf:R,node:ae(),objectOf:H,oneOf:K,oneOfType:le,shape:$e,exact:we};function x(U,te){return U===te?U!==0||1/U===1/te:U!==U&&te!==te}function w(U,te){this.message=U,this.data=te&&typeof te=="object"?te:{},this.stack=""}w.prototype=Error.prototype;function S(U){if(process.env.NODE_ENV!=="production")var te={},xe=0;function De(Me,Ye,Ge,Ae,Ke,We,Ve){if(Ae=Ae||g,We=We||Ge,Ve!==n){if(l){var Te=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 Te.name="Invariant Violation",Te}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var tt=Ae+":"+Ge;!te[tt]&&xe<3&&(s("You are manually calling a React.PropTypes validation function for the `"+We+"` prop on `"+Ae+"`. 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."),te[tt]=!0,xe++)}}return Ye[Ge]==null?Me?Ye[Ge]===null?new w("The "+Ke+" `"+We+"` is marked as required "+("in `"+Ae+"`, but its value is `null`.")):new w("The "+Ke+" `"+We+"` is marked as required in "+("`"+Ae+"`, but its value is `undefined`.")):null:U(Ye,Ge,Ae,Ke,We)}var _e=De.bind(null,!1);return _e.isRequired=De.bind(null,!0),_e}function E(U){function te(xe,De,_e,Me,Ye,Ge){var Ae=xe[De],Ke=O(Ae);if(Ke!==U){var We=L(Ae);return new w("Invalid "+Me+" `"+Ye+"` of type "+("`"+We+"` supplied to `"+_e+"`, expected ")+("`"+U+"`."),{expectedType:U})}return null}return S(te)}function C(){return S(a)}function A(U){function te(xe,De,_e,Me,Ye){if(typeof U!="function")return new w("Property `"+Ye+"` of component `"+_e+"` has invalid PropType notation inside arrayOf.");var Ge=xe[De];if(!Array.isArray(Ge)){var Ae=O(Ge);return new w("Invalid "+Me+" `"+Ye+"` of type "+("`"+Ae+"` supplied to `"+_e+"`, expected an array."))}for(var Ke=0;Ke<Ge.length;Ke++){var We=U(Ge,Ke,_e,Me,Ye+"["+Ke+"]",n);if(We instanceof Error)return We}return null}return S(te)}function k(){function U(te,xe,De,_e,Me){var Ye=te[xe];if(!o(Ye)){var Ge=O(Ye);return new w("Invalid "+_e+" `"+Me+"` of type "+("`"+Ge+"` supplied to `"+De+"`, expected a single ReactElement."))}return null}return S(U)}function M(){function U(te,xe,De,_e,Me){var Ye=te[xe];if(!e.isValidElementType(Ye)){var Ge=O(Ye);return new w("Invalid "+_e+" `"+Me+"` of type "+("`"+Ge+"` supplied to `"+De+"`, expected a single ReactElement type."))}return null}return S(U)}function R(U){function te(xe,De,_e,Me,Ye){if(!(xe[De]instanceof U)){var Ge=U.name||g,Ae=he(xe[De]);return new w("Invalid "+Me+" `"+Ye+"` of type "+("`"+Ae+"` supplied to `"+_e+"`, expected ")+("instance of `"+Ge+"`."))}return null}return S(te)}function K(U){if(!Array.isArray(U))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("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])."):s("Invalid argument supplied to oneOf, expected an array.")),a;function te(xe,De,_e,Me,Ye){for(var Ge=xe[De],Ae=0;Ae<U.length;Ae++)if(x(Ge,U[Ae]))return null;var Ke=JSON.stringify(U,function(Ve,Te){var tt=L(Te);return tt==="symbol"?String(Te):Te});return new w("Invalid "+Me+" `"+Ye+"` of value `"+String(Ge)+"` "+("supplied to `"+_e+"`, expected one of "+Ke+"."))}return S(te)}function H(U){function te(xe,De,_e,Me,Ye){if(typeof U!="function")return new w("Property `"+Ye+"` of component `"+_e+"` has invalid PropType notation inside objectOf.");var Ge=xe[De],Ae=O(Ge);if(Ae!=="object")return new w("Invalid "+Me+" `"+Ye+"` of type "+("`"+Ae+"` supplied to `"+_e+"`, expected an object."));for(var Ke in Ge)if(r(Ge,Ke)){var We=U(Ge,Ke,_e,Me,Ye+"."+Ke,n);if(We instanceof Error)return We}return null}return S(te)}function le(U){if(!Array.isArray(U))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var te=0;te<U.length;te++){var xe=U[te];if(typeof xe!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(xe)+" at index "+te+"."),a}function De(_e,Me,Ye,Ge,Ae){for(var Ke=[],We=0;We<U.length;We++){var Ve=U[We],Te=Ve(_e,Me,Ye,Ge,Ae,n);if(Te==null)return null;Te.data&&r(Te.data,"expectedType")&&Ke.push(Te.data.expectedType)}var tt=Ke.length>0?", expected one of type ["+Ke.join(", ")+"]":"";return new w("Invalid "+Ge+" `"+Ae+"` supplied to "+("`"+Ye+"`"+tt+"."))}return S(De)}function ae(){function U(te,xe,De,_e,Me){return W(te[xe])?null:new w("Invalid "+_e+" `"+Me+"` supplied to "+("`"+De+"`, expected a ReactNode."))}return S(U)}function I(U,te,xe,De,_e){return new w((U||"React class")+": "+te+" type `"+xe+"."+De+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+_e+"`.")}function $e(U){function te(xe,De,_e,Me,Ye){var Ge=xe[De],Ae=O(Ge);if(Ae!=="object")return new w("Invalid "+Me+" `"+Ye+"` of type `"+Ae+"` "+("supplied to `"+_e+"`, expected `object`."));for(var Ke in U){var We=U[Ke];if(typeof We!="function")return I(_e,Me,Ye,Ke,L(We));var Ve=We(Ge,Ke,_e,Me,Ye+"."+Ke,n);if(Ve)return Ve}return null}return S(te)}function we(U){function te(xe,De,_e,Me,Ye){var Ge=xe[De],Ae=O(Ge);if(Ae!=="object")return new w("Invalid "+Me+" `"+Ye+"` of type `"+Ae+"` "+("supplied to `"+_e+"`, expected `object`."));var Ke=t({},xe[De],U);for(var We in Ke){var Ve=U[We];if(r(U,We)&&typeof Ve!="function")return I(_e,Me,Ye,We,L(Ve));if(!Ve)return new w("Invalid "+Me+" `"+Ye+"` key `"+We+"` supplied to `"+_e+"`.\nBad object: "+JSON.stringify(xe[De],null," ")+`
|
|
165
|
+
Valid keys: `+JSON.stringify(Object.keys(U),null," "));var Te=Ve(Ge,We,_e,Me,Ye+"."+We,n);if(Te)return Te}return null}return S(te)}function W(U){switch(typeof U){case"number":case"string":case"undefined":return!0;case"boolean":return!U;case"object":if(Array.isArray(U))return U.every(W);if(U===null||o(U))return!0;var te=m(U);if(te){var xe=te.call(U),De;if(te!==U.entries){for(;!(De=xe.next()).done;)if(!W(De.value))return!1}else for(;!(De=xe.next()).done;){var _e=De.value;if(_e&&!W(_e[1]))return!1}}else return!1;return!0;default:return!1}}function ie(U,te){return U==="symbol"?!0:te?te["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&te instanceof Symbol:!1}function O(U){var te=typeof U;return Array.isArray(U)?"array":U instanceof RegExp?"object":ie(te,U)?"symbol":te}function L(U){if(typeof U>"u"||U===null)return""+U;var te=O(U);if(te==="object"){if(U instanceof Date)return"date";if(U instanceof RegExp)return"regexp"}return te}function B(U){var te=L(U);switch(te){case"array":case"object":return"an "+te;case"boolean":case"date":case"regexp":return"a "+te;default:return te}}function he(U){return!U.constructor||!U.constructor.name?g:U.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},L1}var B1,F2;function ule(){if(F2)return B1;F2=1;var e=ax();function t(){}function n(){}return n.resetWarningCache=t,B1=function(){function r(a,o,l,d,h,m){if(m!==e){var g=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 g.name="Invariant Violation",g}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},B1}var R2;function lle(){if(R2)return Qh.exports;if(R2=1,process.env.NODE_ENV!=="production"){var e=YI(),t=!0;Qh.exports=ole()(e.isElement,t)}else Qh.exports=ule()();return Qh.exports}var Ei=lle();const nt=ci(Ei),XI={data:Ei.oneOfType([Ei.string,Ei.array,Ei.func]).isRequired,headers:Ei.array,target:Ei.string,separator:Ei.string,filename:Ei.string,uFEFF:Ei.bool,onClick:Ei.func,asyncOnClick:Ei.bool,enclosingCharacter:Ei.string},JI={separator:",",filename:"generatedBy_react-csv.csv",uFEFF:!0,asyncOnClick:!1,enclosingCharacter:'"'},cle={target:"_blank"};class k2 extends T.Component{constructor(t){super(t),this.state={}}buildURI(){return GI(...arguments)}componentDidMount(){const{data:t,headers:n,separator:r,enclosingCharacter:i,uFEFF:s,target:a,specs:o,replace:l}=this.props;this.state.page=window.open(this.buildURI(t,s,n,r,i),a,o,l)}getWindow(){return this.state.page}render(){return null}}mf(k2,"defaultProps",Object.assign(JI,cle)),mf(k2,"propTypes",XI);var np;let fle=(np=class extends T.Component{constructor(t){super(t),this.buildURI=this.buildURI.bind(this)}buildURI(){return GI(...arguments)}handleLegacy(t,n=!1){if(window.navigator.msSaveOrOpenBlob){t.preventDefault();const{data:r,headers:i,separator:s,filename:a,enclosingCharacter:o,uFEFF:l}=this.props,d=n&&typeof r=="function"?r():r;let h=new Blob([l?"\uFEFF":"",HI(d,i,s,o)]);return window.navigator.msSaveBlob(h,a),!1}}handleAsyncClick(t){const n=r=>{if(r===!1){t.preventDefault();return}this.handleLegacy(t,!0)};this.props.onClick(t,n)}handleSyncClick(t){if(this.props.onClick(t)===!1){t.preventDefault();return}this.handleLegacy(t)}handleClick(){return t=>{if(typeof this.props.onClick=="function")return this.props.asyncOnClick?this.handleAsyncClick(t):this.handleSyncClick(t);this.handleLegacy(t)}}render(){const{data:t,headers:n,separator:r,filename:i,uFEFF:s,children:a,onClick:o,asyncOnClick:l,enclosingCharacter:d,...h}=this.props,g=typeof window>"u"?"":this.buildURI(t,s,n,r,d);return la.jsx("a",{download:i,...h,ref:b=>this.link=b,target:"_self",href:g,onClick:this.handleClick(),children:a})}},mf(np,"defaultProps",JI),mf(np,"propTypes",XI),np);const dle=fle;var V1,O2;function hle(){if(O2)return V1;O2=1;function e(t){return t==null}return V1=e,V1}var ple=hle();const mle=ci(ple);/**
|
|
166
|
+
* react-table
|
|
167
|
+
*
|
|
168
|
+
* Copyright (c) TanStack
|
|
169
|
+
*
|
|
170
|
+
* This source code is licensed under the MIT license found in the
|
|
171
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
172
|
+
*
|
|
173
|
+
* @license MIT
|
|
174
|
+
*/function gle(e,t){return e?vle(e)?He.createElement(e,t):e:null}function vle(e){return yle(e)||typeof e=="function"||ble(e)}function yle(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function ble(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}var N1,I2;function $le(){if(I2)return N1;I2=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i&&n(t[r],r,t)!==!1;);return t}return N1=e,N1}var j1,L2;function xle(){if(L2)return j1;L2=1;var e=Ec(),t=Object.create,n=function(){function r(){}return function(i){if(!e(i))return{};if(t)return t(i);r.prototype=i;var s=new r;return r.prototype=void 0,s}}();return j1=n,j1}var K1,B2;function wle(){if(B2)return K1;B2=1;var e=ek(),t=e(Object.getPrototypeOf,Object);return K1=t,K1}var U1,V2;function Cle(){if(V2)return U1;V2=1;var e=$le(),t=xle(),n=Gk(),r=Hk(),i=wle(),s=da(),a=F3(),o=P3(),l=Ec(),d=O3();function h(m,g,b){var x=s(m),w=x||a(m)||d(m);if(g=r(g,4),b==null){var S=m&&m.constructor;w?b=x?new S:[]:l(m)?b=o(S)?t(i(m)):{}:b={}}return(w?e:n)(m,function(E,C,A){return g(b,E,C,A)}),b}return U1=h,U1}var Ele=Cle();const Sle=ci(Ele);function QI(e){return t=>typeof t===e}var Dle=QI("function"),Ale=e=>e===null,N2=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",j2=e=>!Tle(e)&&!Ale(e)&&(Dle(e)||typeof e=="object"),Tle=QI("undefined");function Ple(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!Wr(e[r],t[r]))return!1;return!0}function _le(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new DataView(e.buffer),r=new DataView(t.buffer);let i=e.byteLength;for(;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function Mle(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;for(const n of e.entries())if(!Wr(n[1],t.get(n[0])))return!1;return!0}function Fle(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}function Wr(e,t){if(e===t)return!0;if(e&&j2(e)&&t&&j2(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return Ple(e,t);if(e instanceof Map&&t instanceof Map)return Mle(e,t);if(e instanceof Set&&t instanceof Set)return Fle(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return _le(e,t);if(N2(e)&&N2(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=n.length;i--!==0;){const s=n[i];if(!(s==="_owner"&&e.$$typeof)&&!Wr(e[s],t[s]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var Rle=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],kle=["bigint","boolean","null","number","string","symbol","undefined"];function hg(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(Ole(t))return t}function Ms(e){return t=>hg(t)===e}function Ole(e){return Rle.includes(e)}function Lc(e){return t=>typeof t===e}function Ile(e){return kle.includes(e)}var Lle=["innerHTML","ownerDocument","style","attributes","nodeValue"];function ut(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(ut.array(e))return"Array";if(ut.plainFunction(e))return"Function";const t=hg(e);return t||"Object"}ut.array=Array.isArray;ut.arrayOf=(e,t)=>!ut.array(e)&&!ut.function(t)?!1:e.every(n=>t(n));ut.asyncGeneratorFunction=e=>hg(e)==="AsyncGeneratorFunction";ut.asyncFunction=Ms("AsyncFunction");ut.bigint=Lc("bigint");ut.boolean=e=>e===!0||e===!1;ut.date=Ms("Date");ut.defined=e=>!ut.undefined(e);ut.domElement=e=>ut.object(e)&&!ut.plainObject(e)&&e.nodeType===1&&ut.string(e.nodeName)&&Lle.every(t=>t in e);ut.empty=e=>ut.string(e)&&e.length===0||ut.array(e)&&e.length===0||ut.object(e)&&!ut.map(e)&&!ut.set(e)&&Object.keys(e).length===0||ut.set(e)&&e.size===0||ut.map(e)&&e.size===0;ut.error=Ms("Error");ut.function=Lc("function");ut.generator=e=>ut.iterable(e)&&ut.function(e.next)&&ut.function(e.throw);ut.generatorFunction=Ms("GeneratorFunction");ut.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;ut.iterable=e=>!ut.nullOrUndefined(e)&&ut.function(e[Symbol.iterator]);ut.map=Ms("Map");ut.nan=e=>Number.isNaN(e);ut.null=e=>e===null;ut.nullOrUndefined=e=>ut.null(e)||ut.undefined(e);ut.number=e=>Lc("number")(e)&&!ut.nan(e);ut.numericString=e=>ut.string(e)&&e.length>0&&!Number.isNaN(Number(e));ut.object=e=>!ut.nullOrUndefined(e)&&(ut.function(e)||typeof e=="object");ut.oneOf=(e,t)=>ut.array(e)?e.indexOf(t)>-1:!1;ut.plainFunction=Ms("Function");ut.plainObject=e=>{if(hg(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ut.primitive=e=>ut.null(e)||Ile(typeof e);ut.promise=Ms("Promise");ut.propertyOf=(e,t,n)=>{if(!ut.object(e)||!t)return!1;const r=e[t];return ut.function(n)?n(r):ut.defined(r)};ut.regexp=Ms("RegExp");ut.set=Ms("Set");ut.string=Lc("string");ut.symbol=Lc("symbol");ut.undefined=Lc("undefined");ut.weakMap=Ms("WeakMap");ut.weakSet=Ms("WeakSet");var dt=ut;function Ble(...e){return e.every(t=>dt.string(t)||dt.array(t)||dt.plainObject(t))}function Vle(e,t,n){return e9(e,t)?[e,t].every(dt.array)?!e.some(W2(n))&&t.some(W2(n)):[e,t].every(dt.plainObject)?!Object.entries(e).some(z2(n))&&Object.entries(t).some(z2(n)):t===n:!1}function K2(e,t,n){const{actual:r,key:i,previous:s,type:a}=n,o=na(e,i),l=na(t,i);let d=[o,l].every(dt.number)&&(a==="increased"?o<l:o>l);return dt.undefined(r)||(d=d&&l===r),dt.undefined(s)||(d=d&&o===s),d}function U2(e,t,n){const{key:r,type:i,value:s}=n,a=na(e,r),o=na(t,r),l=i==="added"?a:o,d=i==="added"?o:a;if(!dt.nullOrUndefined(s)){if(dt.defined(l)){if(dt.array(l)||dt.plainObject(l))return Vle(l,d,s)}else return Wr(d,s);return!1}return[a,o].every(dt.array)?!d.every(ox(l)):[a,o].every(dt.plainObject)?Nle(Object.keys(l),Object.keys(d)):![a,o].every(h=>dt.primitive(h)&&dt.defined(h))&&(i==="added"?!dt.defined(a)&&dt.defined(o):dt.defined(a)&&!dt.defined(o))}function q2(e,t,{key:n}={}){let r=na(e,n),i=na(t,n);if(!e9(r,i))throw new TypeError("Inputs have different types");if(!Ble(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(dt.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function z2(e){return([t,n])=>dt.array(e)?Wr(e,n)||e.some(r=>Wr(r,n)||dt.array(n)&&ox(n)(r)):dt.plainObject(e)&&e[t]?!!e[t]&&Wr(e[t],n):Wr(e,n)}function Nle(e,t){return t.some(n=>!e.includes(n))}function W2(e){return t=>dt.array(e)?e.some(n=>Wr(n,t)||dt.array(t)&&ox(t)(n)):Wr(e,t)}function Df(e,t){return dt.array(e)?e.some(n=>Wr(n,t)):Wr(e,t)}function ox(e){return t=>e.some(n=>Wr(n,t))}function e9(...e){return e.every(dt.array)||e.every(dt.number)||e.every(dt.plainObject)||e.every(dt.string)}function na(e,t){return dt.plainObject(e)||dt.array(e)?dt.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):dt.number(t)?e[t]:e:e}function gm(e,t){if([e,t].some(dt.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(h=>dt.plainObject(h)||dt.array(h)))throw new Error("Expected plain objects or array");return{added:(h,m)=>{try{return U2(e,t,{key:h,type:"added",value:m})}catch{return!1}},changed:(h,m,g)=>{try{const b=na(e,h),x=na(t,h),w=dt.defined(m),S=dt.defined(g);if(w||S){const E=S?Df(g,b):!Df(m,b),C=Df(m,x);return E&&C}return[b,x].every(dt.array)||[b,x].every(dt.plainObject)?!Wr(b,x):b!==x}catch{return!1}},changedFrom:(h,m,g)=>{if(!dt.defined(h))return!1;try{const b=na(e,h),x=na(t,h),w=dt.defined(g);return Df(m,b)&&(w?Df(g,x):!w)}catch{return!1}},decreased:(h,m,g)=>{if(!dt.defined(h))return!1;try{return K2(e,t,{key:h,actual:m,previous:g,type:"decreased"})}catch{return!1}},emptied:h=>{try{const[m,g]=q2(e,t,{key:h});return!!m.length&&!g.length}catch{return!1}},filled:h=>{try{const[m,g]=q2(e,t,{key:h});return!m.length&&!!g.length}catch{return!1}},increased:(h,m,g)=>{if(!dt.defined(h))return!1;try{return K2(e,t,{key:h,actual:m,previous:g,type:"increased"})}catch{return!1}},removed:(h,m)=>{try{return U2(e,t,{key:h,type:"removed",value:m})}catch{return!1}}}}var q1,H2;function jle(){if(H2)return q1;H2=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;q1={left:i("scrollLeft"),top:i("scrollTop")};function i(o){return function(d,h,m,g){m=m||{},typeof m=="function"&&(g=m,m={}),typeof g!="function"&&(g=a);var b=r(),x=d[o],w=m.ease||s,S=isNaN(m.duration)?350:+m.duration,E=!1;return x===h?g(e,d[o]):requestAnimationFrame(A),C;function C(){E=!0}function A(k){if(E)return g(t,d[o]);var M=r(),R=n(1,(M-b)/S),K=w(R);d[o]=K*(h-x)+x,R<1?requestAnimationFrame(A):requestAnimationFrame(function(){g(null,d[o])})}}}function s(o){return .5*(1-Math.cos(Math.PI*o))}function a(){}return q1}var Kle=jle();const Ule=ci(Kle);var Tp={exports:{}},qle=Tp.exports,G2;function zle(){return G2||(G2=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(qle,function(){function t(r){var i=getComputedStyle(r,null).getPropertyValue("overflow");return i.indexOf("scroll")>-1||i.indexOf("auto")>-1}function n(r){if(r instanceof HTMLElement||r instanceof SVGElement){for(var i=r.parentNode;i.parentNode;){if(t(i))return i;i=i.parentNode}return document.scrollingElement||document.documentElement}}return n})}(Tp)),Tp.exports}var Wle=zle();const t9=ci(Wle);var z1,Y2;function Hle(){if(Y2)return z1;Y2=1;var e=function(r){return Object.prototype.hasOwnProperty.call(r,"props")},t=function(r,i){return r+n(i)},n=function(r){return r===null||typeof r=="boolean"||typeof r>"u"?"":typeof r=="number"?r.toString():typeof r=="string"?r:Array.isArray(r)?r.reduce(t,""):e(r)&&Object.prototype.hasOwnProperty.call(r.props,"children")?n(r.props.children):""};return n.default=n,z1=n,z1}var Gle=Hle();const Z2=ci(Gle);var W1,X2;function Yle(){if(X2)return W1;X2=1;var e=function(C){return t(C)&&!n(C)};function t(E){return!!E&&typeof E=="object"}function n(E){var C=Object.prototype.toString.call(E);return C==="[object RegExp]"||C==="[object Date]"||s(E)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function s(E){return E.$$typeof===i}function a(E){return Array.isArray(E)?[]:{}}function o(E,C){return C.clone!==!1&&C.isMergeableObject(E)?w(a(E),E,C):E}function l(E,C,A){return E.concat(C).map(function(k){return o(k,A)})}function d(E,C){if(!C.customMerge)return w;var A=C.customMerge(E);return typeof A=="function"?A:w}function h(E){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(E).filter(function(C){return Object.propertyIsEnumerable.call(E,C)}):[]}function m(E){return Object.keys(E).concat(h(E))}function g(E,C){try{return C in E}catch{return!1}}function b(E,C){return g(E,C)&&!(Object.hasOwnProperty.call(E,C)&&Object.propertyIsEnumerable.call(E,C))}function x(E,C,A){var k={};return A.isMergeableObject(E)&&m(E).forEach(function(M){k[M]=o(E[M],A)}),m(C).forEach(function(M){b(E,M)||(g(E,M)&&A.isMergeableObject(C[M])?k[M]=d(M,A)(E[M],C[M],A):k[M]=o(C[M],A))}),k}function w(E,C,A){A=A||{},A.arrayMerge=A.arrayMerge||l,A.isMergeableObject=A.isMergeableObject||e,A.cloneUnlessOtherwiseSpecified=o;var k=Array.isArray(C),M=Array.isArray(E),R=k===M;return R?k?A.arrayMerge(E,C,A):x(E,C,A):o(C,A)}w.all=function(C,A){if(!Array.isArray(C))throw new Error("first argument should be an array");return C.reduce(function(k,M){return w(k,M,A)},{})};var S=w;return W1=S,W1}var Zle=Yle();const Cs=ci(Zle);/**!
|
|
175
|
+
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
176
|
+
* @version 1.16.1
|
|
177
|
+
* @license
|
|
178
|
+
* Copyright (c) 2016 Federico Zivolo and contributors
|
|
179
|
+
*
|
|
180
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
181
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
182
|
+
* in the Software without restriction, including without limitation the rights
|
|
183
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
184
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
185
|
+
* furnished to do so, subject to the following conditions:
|
|
186
|
+
*
|
|
187
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
188
|
+
* copies or substantial portions of the Software.
|
|
189
|
+
*
|
|
190
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
191
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
192
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
193
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
194
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
195
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
196
|
+
* SOFTWARE.
|
|
197
|
+
*/var Zd=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",Xle=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Zd&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function Jle(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function Qle(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Xle))}}var ece=Zd&&window.Promise,tce=ece?Jle:Qle;function n9(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function Qu(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function ux(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function Xd(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Qu(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:Xd(ux(e))}function r9(e){return e&&e.referenceNode?e.referenceNode:e}var J2=Zd&&!!(window.MSInputMethodContext&&document.documentMode),Q2=Zd&&/MSIE 10/.test(navigator.userAgent);function Bc(e){return e===11?J2:e===10?Q2:J2||Q2}function gc(e){if(!e)return document.documentElement;for(var t=Bc(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return!r||r==="BODY"||r==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&Qu(n,"position")==="static"?gc(n):n}function nce(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||gc(e.firstElementChild)===e}function F4(e){return e.parentNode!==null?F4(e.parentNode):e}function vm(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,s=document.createRange();s.setStart(r,0),s.setEnd(i,0);var a=s.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return nce(a)?a:gc(a);var o=F4(e);return o.host?vm(o.host,t):vm(e,F4(t).host)}function vc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=t==="top"?"scrollTop":"scrollLeft",r=e.nodeName;if(r==="BODY"||r==="HTML"){var i=e.ownerDocument.documentElement,s=e.ownerDocument.scrollingElement||i;return s[n]}return e[n]}function rce(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=vc(t,"top"),i=vc(t,"left"),s=n?-1:1;return e.top+=r*s,e.bottom+=r*s,e.left+=i*s,e.right+=i*s,e}function e5(e,t){var n=t==="x"?"Left":"Top",r=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function t5(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Bc(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function i9(e){var t=e.body,n=e.documentElement,r=Bc(10)&&getComputedStyle(n);return{height:t5("Height",t,n,r),width:t5("Width",t,n,r)}}var ice=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},sce=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),yc=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Ji=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function ko(e){return Ji({},e,{right:e.left+e.width,bottom:e.top+e.height})}function R4(e){var t={};try{if(Bc(10)){t=e.getBoundingClientRect();var n=vc(e,"top"),r=vc(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},s=e.nodeName==="HTML"?i9(e.ownerDocument):{},a=s.width||e.clientWidth||i.width,o=s.height||e.clientHeight||i.height,l=e.offsetWidth-a,d=e.offsetHeight-o;if(l||d){var h=Qu(e);l-=e5(h,"x"),d-=e5(h,"y"),i.width-=l,i.height-=d}return ko(i)}function lx(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Bc(10),i=t.nodeName==="HTML",s=R4(e),a=R4(t),o=Xd(e),l=Qu(t),d=parseFloat(l.borderTopWidth),h=parseFloat(l.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var m=ko({top:s.top-a.top-d,left:s.left-a.left-h,width:s.width,height:s.height});if(m.marginTop=0,m.marginLeft=0,!r&&i){var g=parseFloat(l.marginTop),b=parseFloat(l.marginLeft);m.top-=d-g,m.bottom-=d-g,m.left-=h-b,m.right-=h-b,m.marginTop=g,m.marginLeft=b}return(r&&!n?t.contains(o):t===o&&o.nodeName!=="BODY")&&(m=rce(m,t)),m}function ace(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=lx(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),s=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:vc(n),o=t?0:vc(n,"left"),l={top:a-r.top+r.marginTop,left:o-r.left+r.marginLeft,width:i,height:s};return ko(l)}function s9(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(Qu(e,"position")==="fixed")return!0;var n=ux(e);return n?s9(n):!1}function a9(e){if(!e||!e.parentElement||Bc())return document.documentElement;for(var t=e.parentElement;t&&Qu(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function cx(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s={top:0,left:0},a=i?a9(e):vm(e,r9(t));if(r==="viewport")s=ace(a,i);else{var o=void 0;r==="scrollParent"?(o=Xd(ux(t)),o.nodeName==="BODY"&&(o=e.ownerDocument.documentElement)):r==="window"?o=e.ownerDocument.documentElement:o=r;var l=lx(o,a,i);if(o.nodeName==="HTML"&&!s9(a)){var d=i9(e.ownerDocument),h=d.height,m=d.width;s.top+=l.top-l.marginTop,s.bottom=h+l.top,s.left+=l.left-l.marginLeft,s.right=m+l.left}else s=l}n=n||0;var g=typeof n=="number";return s.left+=g?n:n.left||0,s.top+=g?n:n.top||0,s.right-=g?n:n.right||0,s.bottom-=g?n:n.bottom||0,s}function oce(e){var t=e.width,n=e.height;return t*n}function o9(e,t,n,r,i){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var a=cx(n,r,s,i),o={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(o).map(function(g){return Ji({key:g},o[g],{area:oce(o[g])})}).sort(function(g,b){return b.area-g.area}),d=l.filter(function(g){var b=g.width,x=g.height;return b>=n.clientWidth&&x>=n.clientHeight}),h=d.length>0?d[0].key:l[0].key,m=e.split("-")[1];return h+(m?"-"+m:"")}function u9(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?a9(t):vm(t,r9(n));return lx(n,i,r)}function l9(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),s={width:e.offsetWidth+i,height:e.offsetHeight+r};return s}function ym(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(n){return t[n]})}function c9(e,t,n){n=n.split("-")[0];var r=l9(e),i={width:r.width,height:r.height},s=["right","left"].indexOf(n)!==-1,a=s?"top":"left",o=s?"left":"top",l=s?"height":"width",d=s?"width":"height";return i[a]=t[a]+t[l]/2-r[l]/2,n===o?i[o]=t[o]-r[d]:i[o]=t[ym(o)],i}function Jd(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function uce(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=Jd(e,function(i){return i[t]===n});return e.indexOf(r)}function f9(e,t,n){var r=n===void 0?e:e.slice(0,uce(e,"name",n));return r.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var s=i.function||i.fn;i.enabled&&n9(s)&&(t.offsets.popper=ko(t.offsets.popper),t.offsets.reference=ko(t.offsets.reference),t=s(t,i))}),t}function lce(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=u9(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=o9(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=c9(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=f9(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function d9(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function fx(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],s=i?""+i+n:e;if(typeof document.body.style[s]<"u")return s}return null}function cce(){return this.state.isDestroyed=!0,d9(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[fx("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function h9(e){var t=e.ownerDocument;return t?t.defaultView:window}function p9(e,t,n,r){var i=e.nodeName==="BODY",s=i?e.ownerDocument.defaultView:e;s.addEventListener(t,n,{passive:!0}),i||p9(Xd(s.parentNode),t,n,r),r.push(s)}function fce(e,t,n,r){n.updateBound=r,h9(e).addEventListener("resize",n.updateBound,{passive:!0});var i=Xd(e);return p9(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function dce(){this.state.eventsEnabled||(this.state=fce(this.reference,this.options,this.state,this.scheduleUpdate))}function hce(e,t){return h9(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function pce(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=hce(this.reference,this.state))}function dx(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function k4(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&dx(t[n])&&(r="px"),e.style[n]=t[n]+r})}function mce(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function gce(e){return k4(e.instance.popper,e.styles),mce(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&k4(e.arrowElement,e.arrowStyles),e}function vce(e,t,n,r,i){var s=u9(i,t,e,n.positionFixed),a=o9(n.placement,s,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),k4(t,{position:n.positionFixed?"fixed":"absolute"}),n}function yce(e,t){var n=e.offsets,r=n.popper,i=n.reference,s=Math.round,a=Math.floor,o=function(E){return E},l=s(i.width),d=s(r.width),h=["left","right"].indexOf(e.placement)!==-1,m=e.placement.indexOf("-")!==-1,g=l%2===d%2,b=l%2===1&&d%2===1,x=t?h||m||g?s:a:o,w=t?s:o;return{left:x(b&&!m&&t?r.left-1:r.left),top:w(r.top),bottom:w(r.bottom),right:x(r.right)}}var bce=Zd&&/Firefox/i.test(navigator.userAgent);function $ce(e,t){var n=t.x,r=t.y,i=e.offsets.popper,s=Jd(e.instance.modifiers,function(A){return A.name==="applyStyle"}).gpuAcceleration;s!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=s!==void 0?s:t.gpuAcceleration,o=gc(e.instance.popper),l=R4(o),d={position:i.position},h=yce(e,window.devicePixelRatio<2||!bce),m=n==="bottom"?"top":"bottom",g=r==="right"?"left":"right",b=fx("transform"),x=void 0,w=void 0;if(m==="bottom"?o.nodeName==="HTML"?w=-o.clientHeight+h.bottom:w=-l.height+h.bottom:w=h.top,g==="right"?o.nodeName==="HTML"?x=-o.clientWidth+h.right:x=-l.width+h.right:x=h.left,a&&b)d[b]="translate3d("+x+"px, "+w+"px, 0)",d[m]=0,d[g]=0,d.willChange="transform";else{var S=m==="bottom"?-1:1,E=g==="right"?-1:1;d[m]=w*S,d[g]=x*E,d.willChange=m+", "+g}var C={"x-placement":e.placement};return e.attributes=Ji({},C,e.attributes),e.styles=Ji({},d,e.styles),e.arrowStyles=Ji({},e.offsets.arrow,e.arrowStyles),e}function m9(e,t,n){var r=Jd(e,function(o){var l=o.name;return l===t}),i=!!r&&e.some(function(o){return o.name===n&&o.enabled&&o.order<r.order});if(!i){var s="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return i}function xce(e,t){var n;if(!m9(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if(typeof r=="string"){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],s=e.offsets,a=s.popper,o=s.reference,l=["left","right"].indexOf(i)!==-1,d=l?"height":"width",h=l?"Top":"Left",m=h.toLowerCase(),g=l?"left":"top",b=l?"bottom":"right",x=l9(r)[d];o[b]-x<a[m]&&(e.offsets.popper[m]-=a[m]-(o[b]-x)),o[m]+x>a[b]&&(e.offsets.popper[m]+=o[m]+x-a[b]),e.offsets.popper=ko(e.offsets.popper);var w=o[m]+o[d]/2-x/2,S=Qu(e.instance.popper),E=parseFloat(S["margin"+h]),C=parseFloat(S["border"+h+"Width"]),A=w-e.offsets.popper[m]-E-C;return A=Math.max(Math.min(a[d]-x,A),0),e.arrowElement=r,e.offsets.arrow=(n={},yc(n,m,Math.round(A)),yc(n,g,""),n),e}function wce(e){return e==="end"?"start":e==="start"?"end":e}var g9=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],H1=g9.slice(3);function n5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=H1.indexOf(e),r=H1.slice(n+1).concat(H1.slice(0,n));return t?r.reverse():r}var G1={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Cce(e,t){if(d9(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=cx(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=ym(r),s=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case G1.FLIP:a=[r,i];break;case G1.CLOCKWISE:a=n5(r);break;case G1.COUNTERCLOCKWISE:a=n5(r,!0);break;default:a=t.behavior}return a.forEach(function(o,l){if(r!==o||a.length===l+1)return e;r=e.placement.split("-")[0],i=ym(r);var d=e.offsets.popper,h=e.offsets.reference,m=Math.floor,g=r==="left"&&m(d.right)>m(h.left)||r==="right"&&m(d.left)<m(h.right)||r==="top"&&m(d.bottom)>m(h.top)||r==="bottom"&&m(d.top)<m(h.bottom),b=m(d.left)<m(n.left),x=m(d.right)>m(n.right),w=m(d.top)<m(n.top),S=m(d.bottom)>m(n.bottom),E=r==="left"&&b||r==="right"&&x||r==="top"&&w||r==="bottom"&&S,C=["top","bottom"].indexOf(r)!==-1,A=!!t.flipVariations&&(C&&s==="start"&&b||C&&s==="end"&&x||!C&&s==="start"&&w||!C&&s==="end"&&S),k=!!t.flipVariationsByContent&&(C&&s==="start"&&x||C&&s==="end"&&b||!C&&s==="start"&&S||!C&&s==="end"&&w),M=A||k;(g||E||M)&&(e.flipped=!0,(g||E)&&(r=a[l+1]),M&&(s=wce(s)),e.placement=r+(s?"-"+s:""),e.offsets.popper=Ji({},e.offsets.popper,c9(e.instance.popper,e.offsets.reference,e.placement)),e=f9(e.instance.modifiers,e,"flip"))}),e}function Ece(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],s=Math.floor,a=["top","bottom"].indexOf(i)!==-1,o=a?"right":"bottom",l=a?"left":"top",d=a?"width":"height";return n[o]<s(r[l])&&(e.offsets.popper[l]=s(r[l])-n[d]),n[l]>s(r[o])&&(e.offsets.popper[l]=s(r[o])),e}function Sce(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+i[1],a=i[2];if(!s)return e;if(a.indexOf("%")===0){var o=void 0;switch(a){case"%p":o=n;break;case"%":case"%r":default:o=r}var l=ko(o);return l[t]/100*s}else if(a==="vh"||a==="vw"){var d=void 0;return a==="vh"?d=Math.max(document.documentElement.clientHeight,window.innerHeight||0):d=Math.max(document.documentElement.clientWidth,window.innerWidth||0),d/100*s}else return s}function Dce(e,t,n,r){var i=[0,0],s=["right","left"].indexOf(r)!==-1,a=e.split(/(\+|\-)/).map(function(h){return h.trim()}),o=a.indexOf(Jd(a,function(h){return h.search(/,|\s/)!==-1}));a[o]&&a[o].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,d=o!==-1?[a.slice(0,o).concat([a[o].split(l)[0]]),[a[o].split(l)[1]].concat(a.slice(o+1))]:[a];return d=d.map(function(h,m){var g=(m===1?!s:s)?"height":"width",b=!1;return h.reduce(function(x,w){return x[x.length-1]===""&&["+","-"].indexOf(w)!==-1?(x[x.length-1]=w,b=!0,x):b?(x[x.length-1]+=w,b=!1,x):x.concat(w)},[]).map(function(x){return Sce(x,g,t,n)})}),d.forEach(function(h,m){h.forEach(function(g,b){dx(g)&&(i[m]+=g*(h[b-1]==="-"?-1:1))})}),i}function Ace(e,t){var n=t.offset,r=e.placement,i=e.offsets,s=i.popper,a=i.reference,o=r.split("-")[0],l=void 0;return dx(+n)?l=[+n,0]:l=Dce(n,s,a,o),o==="left"?(s.top+=l[0],s.left-=l[1]):o==="right"?(s.top+=l[0],s.left+=l[1]):o==="top"?(s.left+=l[0],s.top-=l[1]):o==="bottom"&&(s.left+=l[0],s.top+=l[1]),e.popper=s,e}function Tce(e,t){var n=t.boundariesElement||gc(e.instance.popper);e.instance.reference===n&&(n=gc(n));var r=fx("transform"),i=e.instance.popper.style,s=i.top,a=i.left,o=i[r];i.top="",i.left="",i[r]="";var l=cx(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=s,i.left=a,i[r]=o,t.boundaries=l;var d=t.priority,h=e.offsets.popper,m={primary:function(b){var x=h[b];return h[b]<l[b]&&!t.escapeWithReference&&(x=Math.max(h[b],l[b])),yc({},b,x)},secondary:function(b){var x=b==="right"?"left":"top",w=h[x];return h[b]>l[b]&&!t.escapeWithReference&&(w=Math.min(h[x],l[b]-(b==="right"?h.width:h.height))),yc({},x,w)}};return d.forEach(function(g){var b=["left","top"].indexOf(g)!==-1?"primary":"secondary";h=Ji({},h,m[b](g))}),e.offsets.popper=h,e}function Pce(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,s=i.reference,a=i.popper,o=["bottom","top"].indexOf(n)!==-1,l=o?"left":"top",d=o?"width":"height",h={start:yc({},l,s[l]),end:yc({},l,s[l]+s[d]-a[d])};e.offsets.popper=Ji({},a,h[r])}return e}function _ce(e){if(!m9(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Jd(e.instance.modifiers,function(r){return r.name==="preventOverflow"}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function Mce(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,s=r.reference,a=["left","right"].indexOf(n)!==-1,o=["top","left"].indexOf(n)===-1;return i[a?"left":"top"]=s[n]-(o?i[a?"width":"height"]:0),e.placement=ym(t),e.offsets.popper=ko(i),e}var Fce={shift:{order:100,enabled:!0,fn:Pce},offset:{order:200,enabled:!0,fn:Ace,offset:0},preventOverflow:{order:300,enabled:!0,fn:Tce,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:Ece},arrow:{order:500,enabled:!0,fn:xce,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Cce,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:Mce},hide:{order:800,enabled:!0,fn:_ce},computeStyle:{order:850,enabled:!0,fn:$ce,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:gce,onLoad:vce,gpuAcceleration:void 0}},Rce={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Fce},Ed=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ice(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=tce(this.update.bind(this)),this.options=Ji({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Ji({},e.Defaults.modifiers,i.modifiers)).forEach(function(a){r.options.modifiers[a]=Ji({},e.Defaults.modifiers[a]||{},i.modifiers?i.modifiers[a]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(a){return Ji({name:a},r.options.modifiers[a])}).sort(function(a,o){return a.order-o.order}),this.modifiers.forEach(function(a){a.enabled&&n9(a.onLoad)&&a.onLoad(r.reference,r.popper,r.options,a,r.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return sce(e,[{key:"update",value:function(){return lce.call(this)}},{key:"destroy",value:function(){return cce.call(this)}},{key:"enableEventListeners",value:function(){return dce.call(this)}},{key:"disableEventListeners",value:function(){return pce.call(this)}}]),e}();Ed.Utils=(typeof window<"u"?window:global).PopperUtils;Ed.placements=g9;Ed.Defaults=Rce;var kce=["innerHTML","ownerDocument","style","attributes","nodeValue"],Oce=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],Ice=["bigint","boolean","null","number","string","symbol","undefined"];function pg(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(Lce(t))return t}function Fs(e){return function(t){return pg(t)===e}}function Lce(e){return Oce.includes(e)}function Vc(e){return function(t){return typeof t===e}}function Bce(e){return Ice.includes(e)}function je(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(je.array(e))return"Array";if(je.plainFunction(e))return"Function";var t=pg(e);return t||"Object"}je.array=Array.isArray;je.arrayOf=function(e,t){return!je.array(e)&&!je.function(t)?!1:e.every(function(n){return t(n)})};je.asyncGeneratorFunction=function(e){return pg(e)==="AsyncGeneratorFunction"};je.asyncFunction=Fs("AsyncFunction");je.bigint=Vc("bigint");je.boolean=function(e){return e===!0||e===!1};je.date=Fs("Date");je.defined=function(e){return!je.undefined(e)};je.domElement=function(e){return je.object(e)&&!je.plainObject(e)&&e.nodeType===1&&je.string(e.nodeName)&&kce.every(function(t){return t in e})};je.empty=function(e){return je.string(e)&&e.length===0||je.array(e)&&e.length===0||je.object(e)&&!je.map(e)&&!je.set(e)&&Object.keys(e).length===0||je.set(e)&&e.size===0||je.map(e)&&e.size===0};je.error=Fs("Error");je.function=Vc("function");je.generator=function(e){return je.iterable(e)&&je.function(e.next)&&je.function(e.throw)};je.generatorFunction=Fs("GeneratorFunction");je.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};je.iterable=function(e){return!je.nullOrUndefined(e)&&je.function(e[Symbol.iterator])};je.map=Fs("Map");je.nan=function(e){return Number.isNaN(e)};je.null=function(e){return e===null};je.nullOrUndefined=function(e){return je.null(e)||je.undefined(e)};je.number=function(e){return Vc("number")(e)&&!je.nan(e)};je.numericString=function(e){return je.string(e)&&e.length>0&&!Number.isNaN(Number(e))};je.object=function(e){return!je.nullOrUndefined(e)&&(je.function(e)||typeof e=="object")};je.oneOf=function(e,t){return je.array(e)?e.indexOf(t)>-1:!1};je.plainFunction=Fs("Function");je.plainObject=function(e){if(pg(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};je.primitive=function(e){return je.null(e)||Bce(typeof e)};je.promise=Fs("Promise");je.propertyOf=function(e,t,n){if(!je.object(e)||!t)return!1;var r=e[t];return je.function(n)?n(r):je.defined(r)};je.regexp=Fs("RegExp");je.set=Fs("Set");je.string=Vc("string");je.symbol=Vc("symbol");je.undefined=Vc("undefined");je.weakMap=Fs("WeakMap");je.weakSet=Fs("WeakSet");function v9(e){return function(t){return typeof t===e}}var Vce=v9("function"),Nce=function(e){return e===null},r5=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},i5=function(e){return!jce(e)&&!Nce(e)&&(Vce(e)||typeof e=="object")},jce=v9("undefined"),O4=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function Kce(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!ui(e[r],t[r]))return!1;return!0}function Uce(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=new DataView(e.buffer),r=new DataView(t.buffer),i=e.byteLength;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function qce(e,t){var n,r,i,s;if(e.size!==t.size)return!1;try{for(var a=O4(e.entries()),o=a.next();!o.done;o=a.next()){var l=o.value;if(!t.has(l[0]))return!1}}catch(m){n={error:m}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}try{for(var d=O4(e.entries()),h=d.next();!h.done;h=d.next()){var l=h.value;if(!ui(l[1],t.get(l[0])))return!1}}catch(m){i={error:m}}finally{try{h&&!h.done&&(s=d.return)&&s.call(d)}finally{if(i)throw i.error}}return!0}function zce(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=O4(e.entries()),s=i.next();!s.done;s=i.next()){var a=s.value;if(!t.has(a[0]))return!1}}catch(o){n={error:o}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function ui(e,t){if(e===t)return!0;if(e&&i5(e)&&t&&i5(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return Kce(e,t);if(e instanceof Map&&t instanceof Map)return qce(e,t);if(e instanceof Set&&t instanceof Set)return zce(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return Uce(e,t);if(r5(e)&&r5(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(var i=n.length;i--!==0;){var s=n[i];if(!(s==="_owner"&&e.$$typeof)&&!ui(e[s],t[s]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function Wce(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return je.string(n)||je.array(n)||je.plainObject(n)})}function Hce(e,t,n){return y9(e,t)?[e,t].every(je.array)?!e.some(l5(n))&&t.some(l5(n)):[e,t].every(je.plainObject)?!Object.entries(e).some(u5(n))&&Object.entries(t).some(u5(n)):t===n:!1}function s5(e,t,n){var r=n.actual,i=n.key,s=n.previous,a=n.type,o=ra(e,i),l=ra(t,i),d=[o,l].every(je.number)&&(a==="increased"?o<l:o>l);return je.undefined(r)||(d=d&&l===r),je.undefined(s)||(d=d&&o===s),d}function a5(e,t,n){var r=n.key,i=n.type,s=n.value,a=ra(e,r),o=ra(t,r),l=i==="added"?a:o,d=i==="added"?o:a;if(!je.nullOrUndefined(s)){if(je.defined(l)){if(je.array(l)||je.plainObject(l))return Hce(l,d,s)}else return ui(d,s);return!1}return[a,o].every(je.array)?!d.every(hx(l)):[a,o].every(je.plainObject)?Gce(Object.keys(l),Object.keys(d)):![a,o].every(function(h){return je.primitive(h)&&je.defined(h)})&&(i==="added"?!je.defined(a)&&je.defined(o):je.defined(a)&&!je.defined(o))}function o5(e,t,n){var r=n===void 0?{}:n,i=r.key,s=ra(e,i),a=ra(t,i);if(!y9(s,a))throw new TypeError("Inputs have different types");if(!Wce(s,a))throw new TypeError("Inputs don't have length");return[s,a].every(je.plainObject)&&(s=Object.keys(s),a=Object.keys(a)),[s,a]}function u5(e){return function(t){var n=t[0],r=t[1];return je.array(e)?ui(e,r)||e.some(function(i){return ui(i,r)||je.array(r)&&hx(r)(i)}):je.plainObject(e)&&e[n]?!!e[n]&&ui(e[n],r):ui(e,r)}}function Gce(e,t){return t.some(function(n){return!e.includes(n)})}function l5(e){return function(t){return je.array(e)?e.some(function(n){return ui(n,t)||je.array(t)&&hx(t)(n)}):ui(e,t)}}function Af(e,t){return je.array(e)?e.some(function(n){return ui(n,t)}):ui(e,t)}function hx(e){return function(t){return e.some(function(n){return ui(n,t)})}}function y9(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(je.array)||e.every(je.number)||e.every(je.plainObject)||e.every(je.string)}function ra(e,t){if(je.plainObject(e)||je.array(e)){if(je.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return je.number(t)?e[t]:e}return e}function Yce(e,t){if([e,t].some(je.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(m){return je.plainObject(m)||je.array(m)}))throw new Error("Expected plain objects or array");var n=function(m,g){try{return a5(e,t,{key:m,type:"added",value:g})}catch{return!1}},r=function(m,g,b){try{var x=ra(e,m),w=ra(t,m),S=je.defined(g),E=je.defined(b);if(S||E){var C=E?Af(b,x):!Af(g,x),A=Af(g,w);return C&&A}return[x,w].every(je.array)||[x,w].every(je.plainObject)?!ui(x,w):x!==w}catch{return!1}},i=function(m,g,b){if(!je.defined(m))return!1;try{var x=ra(e,m),w=ra(t,m),S=je.defined(b);return Af(g,x)&&(S?Af(b,w):!S)}catch{return!1}},s=function(m,g){return je.defined(m)?(process.env.NODE_ENV==="development"&&console.warn("`changedTo` is deprecated! Replace it with `change`"),r(m,g)):!1},a=function(m,g,b){if(!je.defined(m))return!1;try{return s5(e,t,{key:m,actual:g,previous:b,type:"decreased"})}catch{return!1}},o=function(m){try{var g=o5(e,t,{key:m}),b=g[0],x=g[1];return!!b.length&&!x.length}catch{return!1}},l=function(m){try{var g=o5(e,t,{key:m}),b=g[0],x=g[1];return!b.length&&!!x.length}catch{return!1}},d=function(m,g,b){if(!je.defined(m))return!1;try{return s5(e,t,{key:m,actual:g,previous:b,type:"increased"})}catch{return!1}},h=function(m,g){try{return a5(e,t,{key:m,type:"removed",value:g})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:s,decreased:a,emptied:o,filled:l,increased:d,removed:h}}function c5(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 An(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c5(Object(n),!0).forEach(function(r){_r(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$9(r.key),r)}}function eh(e,t,n){return t&&Zce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _r(e,t,n){return t=$9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function th(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I4(e,t)}function bm(e){return bm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bm(e)}function I4(e,t){return I4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},I4(e,t)}function Xce(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Jce(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function b9(e,t){if(e==null)return{};var n=Jce(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ba(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qce(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ba(e)}function nh(e){var t=Xce();return function(){var r=bm(e),i;if(t){var s=bm(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return Qce(this,i)}}function efe(e,t){if(typeof e!="object"||e===null)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 $9(e){var t=efe(e,"string");return typeof t=="symbol"?t:String(t)}var tfe={flip:{padding:20},preventOverflow:{padding:10}},nfe="The typeValidator argument must be a function with the signature function(props, propName, componentName).",rfe="The error message is optional, but must be a string if provided.";function ife(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function sfe(e,t){return Object.hasOwnProperty.call(e,t)}function afe(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function ofe(e,t){if(typeof e!="function")throw new TypeError(nfe);if(t&&typeof t!="string")throw new TypeError(rfe)}function f5(e,t,n){return ofe(e,n),function(r,i,s){for(var a=arguments.length,o=new Array(a>3?a-3:0),l=3;l<a;l++)o[l-3]=arguments[l];return ife(t,r,i,s)?sfe(r,i)?e.apply(void 0,[r,i,s].concat(o)):afe(r,i,s):e.apply(void 0,[r,i,s].concat(o))}}var Xt={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing"},Tf=qa.createPortal!==void 0;function Zs(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Y1(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function tp(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,s=e.debug,a=s===void 0?!1:s,o=i?console.warn||console.error:console.log;a&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(l){je.plainObject(l)&&l.key?o.apply(console,[l.key,l.value]):o.apply(console,[l])}):o.apply(console,[n]),console.groupEnd())}function ufe(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function lfe(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function cfe(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(a){n(a),lfe(e,t,i)},ufe(e,t,i,r)}function d5(){}var x9=function(e){th(n,e);var t=nh(n);function n(){return Qd(this,n),t.apply(this,arguments)}return eh(n,[{key:"componentDidMount",value:function(){Zs()&&(this.node||this.appendNode(),Tf||this.renderPortal())}},{key:"componentDidUpdate",value:function(){Zs()&&(Tf||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!Zs()||!this.node||(Tf||qa.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var i=this.props,s=i.id,a=i.zIndex;this.node||(this.node=document.createElement("div"),s&&(this.node.id=s),a&&(this.node.style.zIndex=a),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!Zs())return null;var i=this.props,s=i.children,a=i.setRef;if(this.node||this.appendNode(),Tf)return qa.createPortal(s,this.node);var o=qa.unstable_renderSubtreeIntoContainer(this,s.length>1?T.createElement("div",null,s):s[0],this.node);return a(o),null}},{key:"renderReact16",value:function(){var i=this.props,s=i.hasChildren,a=i.placement,o=i.target;return s?this.renderPortal():o||a==="center"?this.renderPortal():null}},{key:"render",value:function(){return Tf?this.renderReact16():null}}]),n}(T.Component);_r(x9,"propTypes",{children:nt.oneOfType([nt.element,nt.array]),hasChildren:nt.bool,id:nt.oneOfType([nt.string,nt.number]),placement:nt.string,setRef:nt.func.isRequired,target:nt.oneOfType([nt.object,nt.string]),zIndex:nt.number});var w9=function(e){th(n,e);var t=nh(n);function n(){return Qd(this,n),t.apply(this,arguments)}return eh(n,[{key:"parentStyle",get:function(){var i=this.props,s=i.placement,a=i.styles,o=a.arrow.length,l={pointerEvents:"none",position:"absolute",width:"100%"};return s.startsWith("top")?(l.bottom=0,l.left=0,l.right=0,l.height=o):s.startsWith("bottom")?(l.left=0,l.right=0,l.top=0,l.height=o):s.startsWith("left")?(l.right=0,l.top=0,l.bottom=0):s.startsWith("right")&&(l.left=0,l.top=0),l}},{key:"render",value:function(){var i=this.props,s=i.placement,a=i.setArrowRef,o=i.styles,l=o.arrow,d=l.color,h=l.display,m=l.length,g=l.margin,b=l.position,x=l.spread,w={display:h,position:b},S,E=x,C=m;return s.startsWith("top")?(S="0,0 ".concat(E/2,",").concat(C," ").concat(E,",0"),w.bottom=0,w.marginLeft=g,w.marginRight=g):s.startsWith("bottom")?(S="".concat(E,",").concat(C," ").concat(E/2,",0 0,").concat(C),w.top=0,w.marginLeft=g,w.marginRight=g):s.startsWith("left")?(C=x,E=m,S="0,0 ".concat(E,",").concat(C/2," 0,").concat(C),w.right=0,w.marginTop=g,w.marginBottom=g):s.startsWith("right")&&(C=x,E=m,S="".concat(E,",").concat(C," ").concat(E,",0 0,").concat(C/2),w.left=0,w.marginTop=g,w.marginBottom=g),T.createElement("div",{className:"__floater__arrow",style:this.parentStyle},T.createElement("span",{ref:a,style:w},T.createElement("svg",{width:E,height:C,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},T.createElement("polygon",{points:S,fill:d}))))}}]),n}(T.Component);_r(w9,"propTypes",{placement:nt.string.isRequired,setArrowRef:nt.func.isRequired,styles:nt.object.isRequired});var ffe=["color","height","width"];function C9(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,s=n.width,a=b9(n,ffe);return T.createElement("button",{"aria-label":"close",onClick:t,style:a,type:"button"},T.createElement("svg",{width:"".concat(s,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},T.createElement("g",null,T.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))}C9.propTypes={handleClick:nt.func.isRequired,styles:nt.object.isRequired};function E9(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,s=e.positionWrapper,a=e.showCloseButton,o=e.title,l=e.styles,d={content:T.isValidElement(t)?t:T.createElement("div",{className:"__floater__content",style:l.content},t)};return o&&(d.title=T.isValidElement(o)?o:T.createElement("div",{className:"__floater__title",style:l.title},o)),n&&(d.footer=T.isValidElement(n)?n:T.createElement("div",{className:"__floater__footer",style:l.footer},n)),(a||s)&&!je.boolean(i)&&(d.close=T.createElement(C9,{styles:l.close,handleClick:r})),T.createElement("div",{className:"__floater__container",style:l.container},d.close,d.title,d.content,d.footer)}E9.propTypes={content:nt.node.isRequired,footer:nt.node,handleClick:nt.func.isRequired,open:nt.bool,positionWrapper:nt.bool.isRequired,showCloseButton:nt.bool.isRequired,styles:nt.object.isRequired,title:nt.node};var S9=function(e){th(n,e);var t=nh(n);function n(){return Qd(this,n),t.apply(this,arguments)}return eh(n,[{key:"style",get:function(){var i=this.props,s=i.disableAnimation,a=i.component,o=i.placement,l=i.hideArrow,d=i.status,h=i.styles,m=h.arrow.length,g=h.floater,b=h.floaterCentered,x=h.floaterClosing,w=h.floaterOpening,S=h.floaterWithAnimation,E=h.floaterWithComponent,C={};return l||(o.startsWith("top")?C.padding="0 0 ".concat(m,"px"):o.startsWith("bottom")?C.padding="".concat(m,"px 0 0"):o.startsWith("left")?C.padding="0 ".concat(m,"px 0 0"):o.startsWith("right")&&(C.padding="0 0 0 ".concat(m,"px"))),[Xt.OPENING,Xt.OPEN].indexOf(d)!==-1&&(C=An(An({},C),w)),d===Xt.CLOSING&&(C=An(An({},C),x)),d===Xt.OPEN&&!s&&(C=An(An({},C),S)),o==="center"&&(C=An(An({},C),b)),a&&(C=An(An({},C),E)),An(An({},g),C)}},{key:"render",value:function(){var i=this.props,s=i.component,a=i.handleClick,o=i.hideArrow,l=i.setFloaterRef,d=i.status,h={},m=["__floater"];return s?T.isValidElement(s)?h.content=T.cloneElement(s,{closeFn:a}):h.content=s({closeFn:a}):h.content=T.createElement(E9,this.props),d===Xt.OPEN&&m.push("__floater__open"),o||(h.arrow=T.createElement(w9,this.props)),T.createElement("div",{ref:l,className:m.join(" "),style:this.style},T.createElement("div",{className:"__floater__body"},h.content,h.arrow))}}]),n}(T.Component);_r(S9,"propTypes",{component:nt.oneOfType([nt.func,nt.element]),content:nt.node,disableAnimation:nt.bool.isRequired,footer:nt.node,handleClick:nt.func.isRequired,hideArrow:nt.bool.isRequired,open:nt.bool,placement:nt.string.isRequired,positionWrapper:nt.bool.isRequired,setArrowRef:nt.func.isRequired,setFloaterRef:nt.func.isRequired,showCloseButton:nt.bool,status:nt.string.isRequired,styles:nt.object.isRequired,title:nt.node});var D9=function(e){th(n,e);var t=nh(n);function n(){return Qd(this,n),t.apply(this,arguments)}return eh(n,[{key:"render",value:function(){var i=this.props,s=i.children,a=i.handleClick,o=i.handleMouseEnter,l=i.handleMouseLeave,d=i.setChildRef,h=i.setWrapperRef,m=i.style,g=i.styles,b;if(s)if(T.Children.count(s)===1)if(!T.isValidElement(s))b=T.createElement("span",null,s);else{var x=je.function(s.type)?"innerRef":"ref";b=T.cloneElement(T.Children.only(s),_r({},x,d))}else b=s;return b?T.createElement("span",{ref:h,style:An(An({},g),m),onClick:a,onMouseEnter:o,onMouseLeave:l},b):null}}]),n}(T.Component);_r(D9,"propTypes",{children:nt.node,handleClick:nt.func.isRequired,handleMouseEnter:nt.func.isRequired,handleMouseLeave:nt.func.isRequired,setChildRef:nt.func.isRequired,setWrapperRef:nt.func.isRequired,style:nt.object,styles:nt.object.isRequired});var dfe={zIndex:100};function hfe(e){var t=Cs(dfe,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}var pfe=["arrow","flip","offset"],mfe=["position","top","right","bottom","left"],px=function(e){th(n,e);var t=nh(n);function n(r){var i;return Qd(this,n),i=t.call(this,r),_r(Ba(i),"setArrowRef",function(s){i.arrowRef=s}),_r(Ba(i),"setChildRef",function(s){i.childRef=s}),_r(Ba(i),"setFloaterRef",function(s){i.floaterRef=s}),_r(Ba(i),"setWrapperRef",function(s){i.wrapperRef=s}),_r(Ba(i),"handleTransitionEnd",function(){var s=i.state.status,a=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:s===Xt.OPENING?Xt.OPEN:Xt.IDLE},function(){var o=i.state.status;a(o===Xt.OPEN?"open":"close",i.props)})}),_r(Ba(i),"handleClick",function(){var s=i.props,a=s.event,o=s.open;if(!je.boolean(o)){var l=i.state,d=l.positionWrapper,h=l.status;(i.event==="click"||i.event==="hover"&&d)&&(tp({title:"click",data:[{event:a,status:h===Xt.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),_r(Ba(i),"handleMouseEnter",function(){var s=i.props,a=s.event,o=s.open;if(!(je.boolean(o)||Y1())){var l=i.state.status;i.event==="hover"&&l===Xt.IDLE&&(tp({title:"mouseEnter",data:[{key:"originalEvent",value:a}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),_r(Ba(i),"handleMouseLeave",function(){var s=i.props,a=s.event,o=s.eventDelay,l=s.open;if(!(je.boolean(l)||Y1())){var d=i.state,h=d.status,m=d.positionWrapper;i.event==="hover"&&(tp({title:"mouseLeave",data:[{key:"originalEvent",value:a}],debug:i.debug}),o?[Xt.OPENING,Xt.OPEN].indexOf(h)!==-1&&!m&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},o*1e3)):i.toggle(Xt.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:Xt.INIT,statusWrapper:Xt.INIT},i._isMounted=!1,i.hasMounted=!1,Zs()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return eh(n,[{key:"componentDidMount",value:function(){if(Zs()){var i=this.state.positionWrapper,s=this.props,a=s.children,o=s.open,l=s.target;this._isMounted=!0,tp({title:"init",data:{hasChildren:!!a,hasTarget:!!l,isControlled:je.boolean(o),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!a&&l&&je.boolean(o)}}},{key:"componentDidUpdate",value:function(i,s){if(Zs()){var a=this.props,o=a.autoOpen,l=a.open,d=a.target,h=a.wrapperOptions,m=Yce(s,this.state),g=m.changedFrom,b=m.changed;if(i.open!==l){var x;je.boolean(l)&&(x=l?Xt.OPENING:Xt.CLOSING),this.toggle(x)}(i.wrapperOptions.position!==h.position||i.target!==d)&&this.changeWrapperPosition(this.props),b("status",Xt.IDLE)&&l?this.toggle(Xt.OPEN):g("status",Xt.INIT,Xt.IDLE)&&o&&this.toggle(Xt.OPEN),this.popper&&b("status",Xt.OPENING)&&this.popper.instance.update(),this.floaterRef&&(b("status",Xt.OPENING)||b("status",Xt.CLOSING))&&cfe(this.floaterRef,"transitionend",this.handleTransitionEnd),b("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){Zs()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var i=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,a=this.state.positionWrapper,o=this.props,l=o.disableFlip,d=o.getPopper,h=o.hideArrow,m=o.offset,g=o.placement,b=o.wrapperOptions,x=g==="top"||g==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(g==="center")this.setState({status:Xt.IDLE});else if(s&&this.floaterRef){var w=this.options,S=w.arrow,E=w.flip,C=w.offset,A=b9(w,pfe);new Ed(s,this.floaterRef,{placement:g,modifiers:An({arrow:An({enabled:!h,element:this.arrowRef},S),flip:An({enabled:!l,behavior:x},E),offset:An({offset:"0, ".concat(m,"px")},C)},A),onCreate:function(R){var K;if(i.popper=R,!((K=i.floaterRef)!==null&&K!==void 0&&K.isConnected)){i.setState({needsUpdate:!0});return}d(R,"floater"),i._isMounted&&i.setState({currentPlacement:R.placement,status:Xt.IDLE}),g!==R.placement&&setTimeout(function(){R.instance.update()},1)},onUpdate:function(R){i.popper=R;var K=i.state.currentPlacement;i._isMounted&&R.placement!==K&&i.setState({currentPlacement:R.placement})}})}if(a){var k=je.undefined(b.offset)?0:b.offset;new Ed(this.target,this.wrapperRef,{placement:b.placement||g,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(k,"px")},flip:{enabled:!1}},onCreate:function(R){i.wrapperPopper=R,i._isMounted&&i.setState({statusWrapper:Xt.IDLE}),d(R,"wrapper"),g!==R.placement&&setTimeout(function(){R.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var i=this;this.floaterRefInterval=setInterval(function(){var s;(s=i.floaterRef)!==null&&s!==void 0&&s.isConnected&&(clearInterval(i.floaterRefInterval),i.setState({needsUpdate:!1}),i.initPopper())},50)}},{key:"changeWrapperPosition",value:function(i){var s=i.target,a=i.wrapperOptions;this.setState({positionWrapper:a.position&&!!s})}},{key:"toggle",value:function(i){var s=this.state.status,a=s===Xt.OPEN?Xt.CLOSING:Xt.OPENING;je.undefined(i)||(a=i),this.setState({status:a})}},{key:"debug",get:function(){var i=this.props.debug;return i||Zs()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,s=i.disableHoverToClick,a=i.event;return a==="hover"&&Y1()&&!s?"click":a}},{key:"options",get:function(){var i=this.props.options;return Cs(tfe,i||{})}},{key:"styles",get:function(){var i=this,s=this.state,a=s.status,o=s.positionWrapper,l=s.statusWrapper,d=this.props.styles,h=Cs(hfe(d),d);if(o){var m;[Xt.IDLE].indexOf(a)===-1||[Xt.IDLE].indexOf(l)===-1?m=h.wrapperPosition:m=this.wrapperPopper.styles,h.wrapper=An(An({},h.wrapper),m)}if(this.target){var g=window.getComputedStyle(this.target);this.wrapperStyles?h.wrapper=An(An({},h.wrapper),this.wrapperStyles):["relative","static"].indexOf(g.position)===-1&&(this.wrapperStyles={},o||(mfe.forEach(function(b){i.wrapperStyles[b]=g[b]}),h.wrapper=An(An({},h.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return h}},{key:"target",get:function(){if(!Zs())return null;var i=this.props.target;return i?je.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,s=i.currentPlacement,a=i.positionWrapper,o=i.status,l=this.props,d=l.children,h=l.component,m=l.content,g=l.disableAnimation,b=l.footer,x=l.hideArrow,w=l.id,S=l.open,E=l.showCloseButton,C=l.style,A=l.target,k=l.title,M=T.createElement(D9,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:C,styles:this.styles.wrapper},d),R={};return a?R.wrapperInPortal=M:R.wrapperAsChildren=M,T.createElement("span",null,T.createElement(x9,{hasChildren:!!d,id:w,placement:s,setRef:this.setFloaterRef,target:A,zIndex:this.styles.options.zIndex},T.createElement(S9,{component:h,content:m,disableAnimation:g,footer:b,handleClick:this.handleClick,hideArrow:x||s==="center",open:S,placement:s,positionWrapper:a,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:E,status:o,styles:this.styles,title:k}),R.wrapperInPortal),R.wrapperAsChildren)}}]),n}(T.Component);_r(px,"propTypes",{autoOpen:nt.bool,callback:nt.func,children:nt.node,component:f5(nt.oneOfType([nt.func,nt.element]),function(e){return!e.content}),content:f5(nt.node,function(e){return!e.component}),debug:nt.bool,disableAnimation:nt.bool,disableFlip:nt.bool,disableHoverToClick:nt.bool,event:nt.oneOf(["hover","click"]),eventDelay:nt.number,footer:nt.node,getPopper:nt.func,hideArrow:nt.bool,id:nt.oneOfType([nt.string,nt.number]),offset:nt.number,open:nt.bool,options:nt.object,placement:nt.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:nt.bool,style:nt.object,styles:nt.object,target:nt.oneOfType([nt.object,nt.string]),title:nt.node,wrapperOptions:nt.shape({offset:nt.number,placement:nt.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:nt.bool})});_r(px,"defaultProps",{autoOpen:!1,callback:d5,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:d5,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var gfe=Object.defineProperty,vfe=(e,t,n)=>t in e?gfe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pt=(e,t,n)=>vfe(e,typeof t!="symbol"?t+"":t,n),an={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},Hi={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found"},Rt={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},Kt={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"};function Eo(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function A9(e){return e?e.getBoundingClientRect():null}function yfe(e=!1){const{body:t,documentElement:n}=document;if(!t||!n)return 0;if(e){const r=[t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort((s,a)=>s-a),i=Math.floor(r.length/2);return r.length%2===0?(r[i-1]+r[i])/2:r[i]}return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function Ua(e){if(typeof e=="string")try{return document.querySelector(e)}catch(t){return process.env.NODE_ENV!=="production"&&console.error(t),null}return e}function bfe(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function Sd(e,t,n){if(!e)return Tu();const r=t9(e);if(r){if(r.isSameNode(Tu()))return n?document:Tu();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",Tu()}return r}function rh(e,t){if(!e)return!1;const n=Sd(e,t);return n?!n.isSameNode(Tu()):!1}function $fe(e){return e.offsetParent!==document.body}function bc(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=bfe(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?bc(e.parentNode,t):!1}function xfe(e){var t;if(!e)return!1;let n=e;for(;n&&n!==document.body;){if(n instanceof HTMLElement){const{display:r,visibility:i}=getComputedStyle(n);if(r==="none"||i==="hidden")return!1}n=(t=n.parentElement)!=null?t:null}return!0}function wfe(e,t,n){var r,i,s;const a=A9(e),o=Sd(e,n),l=rh(e,n),d=bc(e);let h=0,m=(r=a==null?void 0:a.top)!=null?r:0;if(l&&d){const g=(i=e==null?void 0:e.offsetTop)!=null?i:0,b=(s=o==null?void 0:o.scrollTop)!=null?s:0;m=g-b}else o instanceof HTMLElement&&(h=o.scrollTop,!l&&!bc(e)&&(m+=h),o.isSameNode(Tu())||(m+=Tu().scrollTop));return Math.floor(m-t)}function Cfe(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:s=0}=(r=t9(e))!=null?r:{};let a=e.getBoundingClientRect().top+s;i&&(rh(e,n)||$fe(e))&&(a-=i);const o=Math.floor(a-t);return o<0?0:o}function Tu(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function Efe(e,t){const{duration:n,element:r}=t;return new Promise((i,s)=>{const{scrollTop:a}=r,o=e>a?e-a:a-e;Ule.top(r,e,{duration:o<100?50:n},l=>l&&l.message!=="Element already at target scroll position"?s(l):i())})}var Pf=qa.createPortal!==void 0;function T9(e=navigator.userAgent){let t=e;return typeof window>"u"?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":window.opera||e.includes(" OPR/")?t="opera":typeof window.InstallTrigger<"u"?t="firefox":window.chrome?t="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function Pp(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Xs(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let s=Z2(e);if(s)(s.includes("{step}")||s.includes("{steps}"))&&r&&i&&(s=s.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(T.isValidElement(e)&&!Object.values(e.props).length&&Pp(e.type)==="function"){const a=e.type({});s=Xs(a,t)}else s=Z2(n);return s}function Sfe(e,t){return!dt.plainObject(e)||!dt.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function Dfe(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,s,a,o)=>s+s+a+a+o+o),r=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(n);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function h5(e){return e.disableBeacon||e.placement==="center"}function p5(){return!["chrome","safari","firefox","opera"].includes(T9())}function Oo({data:e,debug:t=!1,title:n,warn:r=!1}){const i=r?console.warn||console.error:console.log;t&&(n&&e?(console.groupCollapsed(`%creact-joyride: ${n}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(s=>{dt.plainObject(s)&&s.key?i.apply(console,[s.key,s.value]):i.apply(console,[s])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function Afe(e){return Object.keys(e)}function P9(e,...t){if(!dt.plainObject(e))throw new TypeError("Expected an object");const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&(t.includes(r)||(n[r]=e[r]));return n}function Tfe(e,...t){if(!dt.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&t.includes(r)&&(n[r]=e[r]);return n}function L4(e,t,n){const r=s=>s.replace("{step}",String(t)).replace("{steps}",String(n));if(Pp(e)==="string")return r(e);if(!T.isValidElement(e))return e;const{children:i}=e.props;if(Pp(i)==="string"&&i.includes("{step}"))return T.cloneElement(e,{children:r(i)});if(Array.isArray(i))return T.cloneElement(e,{children:i.map(s=>typeof s=="string"?r(s):L4(s,t,n))});if(Pp(e.type)==="function"&&!Object.values(e.props).length){const s=e.type({});return L4(s,t,n)}return e}function Pfe(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:s,target:a}=e;return!s.disableScrolling&&(!t||i||n===Rt.TOOLTIP)&&s.placement!=="center"&&(!s.isFixed||!bc(a))&&r!==n&&[Rt.BEACON,Rt.TOOLTIP].includes(n)}var _fe={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},_9={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},Mfe={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:_9,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},Ffe={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},Rfe={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},_f={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},m5={borderRadius:4,position:"absolute"};function kfe(e,t){var n,r,i,s,a;const{floaterProps:o,styles:l}=e,d=Cs((n=t.floaterProps)!=null?n:{},o??{}),h=Cs(l??{},(r=t.styles)!=null?r:{}),m=Cs(Rfe,h.options||{}),g=t.placement==="center"||t.disableBeacon;let{width:b}=m;window.innerWidth>480&&(b=380),"width"in m&&(b=typeof m.width=="number"&&window.innerWidth<m.width?window.innerWidth-30:m.width);const x={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:m.zIndex},w={beacon:{..._f,display:g?"none":"inline-block",height:m.beaconSize,position:"relative",width:m.beaconSize,zIndex:m.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:m.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${Dfe(m.primaryColor).join(",")}, 0.2)`,border:`2px solid ${m.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:m.backgroundColor,borderRadius:5,boxSizing:"border-box",color:m.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:b},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{..._f,backgroundColor:m.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{..._f,color:m.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{..._f,color:m.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{..._f,color:m.textColor,fontSize:14},overlay:{...x,backgroundColor:m.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...x},overlayLegacyCenter:{...x,backgroundColor:m.overlayColor},spotlight:{...m5,backgroundColor:"gray"},spotlightLegacy:{...m5,boxShadow:`0 0 0 9999px ${m.overlayColor}, ${m.spotlightShadow}`},floaterStyles:{arrow:{color:(a=(s=(i=d==null?void 0:d.styles)==null?void 0:i.arrow)==null?void 0:s.color)!=null?a:m.arrowColor},options:{zIndex:m.zIndex+100}},options:m};return Cs(w,h)}function Ofe(e){return Tfe(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function Fl(e,t){var n,r,i,s,a,o;const l=t??{},d=Cs.all([Mfe,Ofe(e),l],{isMergeableObject:dt.plainObject}),h=kfe(e,d),m=rh(Ua(d.target),d.disableScrollParentFix),g=Cs.all([_fe,(n=e.floaterProps)!=null?n:{},(r=d.floaterProps)!=null?r:{}]);return g.offset=d.offset,g.styles=Cs((i=g.styles)!=null?i:{},h.floaterStyles),g.offset+=(a=(s=e.spotlightPadding)!=null?s:d.spotlightPadding)!=null?a:0,d.placementBeacon&&g.wrapperOptions&&(g.wrapperOptions.placement=d.placementBeacon),m&&g.options.preventOverflow&&(g.options.preventOverflow.boundariesElement="window"),{...d,locale:Cs.all([_9,(o=e.locale)!=null?o:{},d.locale||{}]),floaterProps:g,styles:P9(h,"floaterStyles")}}function M9(e,t=!1){return dt.plainObject(e)?e.target?!0:(Oo({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(Oo({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function g5(e,t=!1){return dt.array(e)?e.every(n=>M9(n,t)):(Oo({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var F9={action:"init",controlled:!1,index:0,lifecycle:Rt.INIT,origin:null,size:0,status:Kt.IDLE},v5=Afe(P9(F9,"controlled","size")),Ife=class{constructor(e){pt(this,"beaconPopper"),pt(this,"tooltipPopper"),pt(this,"data",new Map),pt(this,"listener"),pt(this,"store",new Map),pt(this,"addListener",i=>{this.listener=i}),pt(this,"setSteps",i=>{const{size:s,status:a}=this.getState(),o={size:i.length,status:a};this.data.set("steps",i),a===Kt.WAITING&&!s&&i.length&&(o.status=Kt.RUNNING),this.setState(o)}),pt(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),pt(this,"setPopper",(i,s)=>{i==="beacon"?this.beaconPopper=s:this.tooltipPopper=s}),pt(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),pt(this,"close",(i=null)=>{const{index:s,status:a}=this.getState();a===Kt.RUNNING&&this.setState({...this.getNextState({action:an.CLOSE,index:s+1,origin:i})})}),pt(this,"go",i=>{const{controlled:s,status:a}=this.getState();if(s||a!==Kt.RUNNING)return;const o=this.getSteps()[i];this.setState({...this.getNextState({action:an.GO,index:i}),status:o?a:Kt.FINISHED})}),pt(this,"info",()=>this.getState()),pt(this,"next",()=>{const{index:i,status:s}=this.getState();s===Kt.RUNNING&&this.setState(this.getNextState({action:an.NEXT,index:i+1}))}),pt(this,"open",()=>{const{status:i}=this.getState();i===Kt.RUNNING&&this.setState({...this.getNextState({action:an.UPDATE,lifecycle:Rt.TOOLTIP})})}),pt(this,"prev",()=>{const{index:i,status:s}=this.getState();s===Kt.RUNNING&&this.setState({...this.getNextState({action:an.PREV,index:i-1})})}),pt(this,"reset",(i=!1)=>{const{controlled:s}=this.getState();s||this.setState({...this.getNextState({action:an.RESET,index:0}),status:i?Kt.RUNNING:Kt.READY})}),pt(this,"skip",()=>{const{status:i}=this.getState();i===Kt.RUNNING&&this.setState({action:an.SKIP,lifecycle:Rt.INIT,status:Kt.SKIPPED})}),pt(this,"start",i=>{const{index:s,size:a}=this.getState();this.setState({...this.getNextState({action:an.START,index:dt.number(i)?i:s},!0),status:a?Kt.RUNNING:Kt.WAITING})}),pt(this,"stop",(i=!1)=>{const{index:s,status:a}=this.getState();[Kt.FINISHED,Kt.SKIPPED].includes(a)||this.setState({...this.getNextState({action:an.STOP,index:s+(i?1:0)}),status:Kt.PAUSED})}),pt(this,"update",i=>{var s,a;if(!Sfe(i,v5))throw new Error(`State is not valid. Valid keys: ${v5.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(s=i.action)!=null?s:an.UPDATE,origin:(a=i.origin)!=null?a:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:an.INIT,controlled:dt.number(n),continuous:t,index:dt.number(n)?n:0,lifecycle:Rt.INIT,origin:null,status:r.length?Kt.READY:Kt.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(r)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...F9}}getNextState(e,t=!1){var n,r,i,s,a;const{action:o,controlled:l,index:d,size:h,status:m}=this.getState(),g=dt.number(e.index)?e.index:d,b=l&&!t?d:Math.min(Math.max(g,0),h);return{action:(n=e.action)!=null?n:o,controlled:l,index:b,lifecycle:(r=e.lifecycle)!=null?r:Rt.INIT,origin:(i=e.origin)!=null?i:null,size:(s=e.size)!=null?s:h,status:b===h?Kt.FINISHED:(a=e.status)!=null?a:m}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){const t=JSON.stringify(e),n=JSON.stringify(this.getState());return t!==n}setState(e,t=!1){const n=this.getState(),{action:r,index:i,lifecycle:s,origin:a=null,size:o,status:l}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",s),this.store.set("origin",a),this.store.set("size",o),this.store.set("status",l),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function Lfe(e){return new Ife(e)}function Bfe({styles:e}){return He.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var Vfe=Bfe,Nfe=class extends He.Component{constructor(){super(...arguments),pt(this,"isActive",!1),pt(this,"resizeTimeout"),pt(this,"scrollTimeout"),pt(this,"scrollParent"),pt(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),pt(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[Rt.INIT,Rt.BEACON,Rt.COMPLETE,Rt.ERROR];return t||(e?r.includes(n):n!==Rt.TOOLTIP)}),pt(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:s,width:a}=this.spotlightStyles,o=i==="fixed"?e.clientY:e.pageY,l=i==="fixed"?e.clientX:e.pageX,d=o>=s&&o<=s+n,m=l>=r&&l<=r+a&&d;m!==t&&this.updateState({mouseOverSpotlight:m})}),pt(this,"handleScroll",()=>{const{target:e}=this.props,t=Ua(e);if(this.scrollParent!==document){const{isScrolling:n}=this.state;n||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout(()=>{this.updateState({isScrolling:!1,showSpotlight:!0})},50)}else bc(t,"sticky")&&this.updateState({})}),pt(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){const{debug:e,disableScrolling:t,disableScrollParentFix:n=!1,target:r}=this.props,i=Ua(r);this.scrollParent=Sd(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&rh(i,!0)&&Oo({title:"step has a custom scroll parent and can cause trouble with scrolling",data:[{key:"parent",value:this.scrollParent}],debug:e}),window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;const{disableScrollParentFix:n,lifecycle:r,spotlightClicks:i,target:s}=this.props,{changed:a}=gm(e,this.props);if(a("target")||a("disableScrollParentFix")){const o=Ua(s);this.scrollParent=Sd(o??document.body,n,!0)}a("lifecycle",Rt.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:o}=this.state;o||this.updateState({showSpotlight:!0})},100)),(a("spotlightClicks")||a("disableOverlay")||a("lifecycle"))&&(i&&r===Rt.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Rt.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(e=this.scrollParent)==null||e.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:e}=this.state,{disableOverlayClose:t,placement:n,styles:r}=this.props;let i=r.overlay;return p5()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:yfe(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:s,spotlightPadding:a=0,styles:o,target:l}=this.props,d=Ua(l),h=A9(d),m=bc(d),g=wfe(d,a,i);return{...p5()?o.spotlightLegacy:o.spotlight,height:Math.round(((e=h==null?void 0:h.height)!=null?e:0)+a*2),left:Math.round(((t=h==null?void 0:h.left)!=null?t:0)-a),opacity:r?1:0,pointerEvents:s?"none":"auto",position:m?"fixed":"absolute",top:g,transition:"opacity 0.2s",width:Math.round(((n=h==null?void 0:h.width)!=null?n:0)+a*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:n}=this.props,{hideSpotlight:r,overlayStyles:i,spotlightStyles:s}=this;if(r())return null;let a=n!=="center"&&e&&He.createElement(Vfe,{styles:s});if(T9()==="safari"){const{mixBlendMode:o,zIndex:l,...d}=i;a=He.createElement("div",{style:{...d}},a),delete i.backgroundColor}return He.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},a)}},jfe=class extends He.Component{constructor(){super(...arguments),pt(this,"node",null)}componentDidMount(){const{id:e}=this.props;Eo()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),Pf||this.renderReact15())}componentDidUpdate(){Eo()&&(Pf||this.renderReact15())}componentWillUnmount(){!Eo()||!this.node||(Pf||rp.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!Eo())return;const{children:e}=this.props;this.node&&rp.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!Eo()||!Pf)return null;const{children:e}=this.props;return this.node?rp.createPortal(e,this.node):null}render(){return Pf?this.renderReact16():null}},Kfe=class{constructor(e,t){if(pt(this,"element"),pt(this,"options"),pt(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),pt(this,"canHaveFocus",n=>{const r=/input|select|textarea|button|object/,i=n.nodeName.toLowerCase();return(r.test(i)&&!n.getAttribute("disabled")||i==="a"&&!!n.getAttribute("href"))&&this.isVisible(n)}),pt(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),pt(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),pt(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:i}=n;if(!r.length)return;let s=document.activeElement?r.indexOf(document.activeElement):0;s===-1||!i&&s+1===r.length?s=0:i&&s===0?s=r.length-1:s+=i?-1:1,r[s].focus()}),pt(this,"isHidden",n=>{const r=n.offsetWidth<=0&&n.offsetHeight<=0,i=window.getComputedStyle(n);return r&&!n.innerHTML?!0:r&&i.getPropertyValue("overflow")!=="visible"||i.getPropertyValue("display")==="none"}),pt(this,"isVisible",n=>{let r=n;for(;r;)if(r instanceof HTMLElement){if(r===document.body)break;if(this.isHidden(r))return!1;r=r.parentNode}return!0}),pt(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),pt(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),pt(this,"setFocus",()=>{const{selector:n}=this.options;if(!n)return;const r=this.element.querySelector(n);r&&window.requestAnimationFrame(()=>this.checkFocus(r))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},Ufe=class extends He.Component{constructor(e){if(super(e),pt(this,"beacon",null),pt(this,"setBeaconRef",i=>{this.beacon=i}),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",e.nonce&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode(`
|
|
198
|
+
@keyframes joyride-beacon-inner {
|
|
199
|
+
20% {
|
|
200
|
+
opacity: 0.9;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
90% {
|
|
204
|
+
opacity: 0.7;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
@keyframes joyride-beacon-outer {
|
|
209
|
+
0% {
|
|
210
|
+
transform: scale(1);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
45% {
|
|
214
|
+
opacity: 0.7;
|
|
215
|
+
transform: scale(0.75);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
100% {
|
|
219
|
+
opacity: 0.9;
|
|
220
|
+
transform: scale(1);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
`)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(dt.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{dt.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e!=null&&e.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:i,onClickOrHover:s,size:a,step:o,styles:l}=this.props,d=Xs(i.open),h={"aria-label":d,onClick:s,onMouseEnter:s,ref:this.setBeaconRef,title:d};let m;if(e){const g=e;m=He.createElement(g,{continuous:t,index:n,isLastStep:r,size:a,step:o,...h})}else m=He.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:l.beacon,type:"button",...h},He.createElement("span",{style:l.beaconInner}),He.createElement("span",{style:l.beaconOuter}));return m}};function qfe({styles:e,...t}){const{color:n,height:r,width:i,...s}=e;return T.createElement("button",{style:s,type:"button",...t},T.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof i=="number"?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},T.createElement("g",null,T.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}var zfe=qfe;function Wfe(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:s,skipProps:a,step:o,tooltipProps:l}=e,{content:d,hideBackButton:h,hideCloseButton:m,hideFooter:g,showSkipButton:b,styles:x,title:w}=o,S={};return S.primary=He.createElement("button",{"data-test-id":"button-primary",style:x.buttonNext,type:"button",...s}),b&&!i&&(S.skip=He.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:x.buttonSkip,type:"button",...a})),!h&&r>0&&(S.back=He.createElement("button",{"data-test-id":"button-back",style:x.buttonBack,type:"button",...t})),S.close=!m&&He.createElement(zfe,{"data-test-id":"button-close",styles:x.buttonClose,...n}),He.createElement("div",{key:"JoyrideTooltip","aria-label":Xs(w??d),className:"react-joyride__tooltip",style:x.tooltip,...l},He.createElement("div",{style:x.tooltipContainer},w&&He.createElement("h1",{"aria-label":Xs(w),style:x.tooltipTitle},w),He.createElement("div",{style:x.tooltipContent},d)),!g&&He.createElement("div",{style:x.tooltipFooter},He.createElement("div",{style:x.tooltipFooterSpacer},S.skip),S.back,S.primary),S.close)}var Hfe=Wfe,Gfe=class extends He.Component{constructor(){super(...arguments),pt(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),pt(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),pt(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),pt(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),pt(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:s}=this.props,{back:a,close:o,last:l,next:d,nextLabelWithProgress:h,skip:m}=s.locale,g=Xs(a),b=Xs(o),x=Xs(l),w=Xs(d),S=Xs(m);let E=o,C=b;if(e){if(E=d,C=w,s.showProgress&&!n){const A=Xs(h,{step:t+1,steps:i});E=L4(h,t+1,i),C=A}n&&(E=l,C=x)}return{backProps:{"aria-label":g,children:a,"data-action":"back",onClick:this.handleClickBack,role:"button",title:g},closeProps:{"aria-label":b,children:o,"data-action":"close",onClick:this.handleClickClose,role:"button",title:b},primaryProps:{"aria-label":C,children:E,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:C},skipProps:{"aria-label":S,children:m,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:S},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:s}=this.props,{beaconComponent:a,tooltipComponent:o,...l}=s;let d;if(o){const h={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:l,setTooltipRef:r},m=o;d=He.createElement(m,{...h})}else d=He.createElement(Hfe,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:s});return d}},Yfe=class extends He.Component{constructor(){super(...arguments),pt(this,"scope",null),pt(this,"tooltip",null),pt(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:Rt.TOOLTIP})}),pt(this,"setTooltipRef",e=>{this.tooltip=e}),pt(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:s,store:a}=this.props;t==="wrapper"?a.setPopper("beacon",e):a.setPopper("tooltip",e),a.getPopper("beacon")&&(a.getPopper("tooltip")||s.placement==="center")&&i===Rt.INIT&&a.update({action:r,lifecycle:Rt.READY}),(n=s.floaterProps)!=null&&n.getPopper&&s.floaterProps.getPopper(e,t)}),pt(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:s}=this.props;return He.createElement(Gfe,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:s,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;Oo({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:s,debug:a,helpers:o,index:l,lifecycle:d,shouldScroll:h,status:m,step:g,store:b}=this.props,{changed:x,changedFrom:w}=gm(e,this.props),S=o.info(),E=i&&n!==an.CLOSE&&(l>0||n===an.PREV),C=x("action")||x("index")||x("lifecycle")||x("status"),A=w("lifecycle",[Rt.TOOLTIP,Rt.INIT],Rt.INIT),k=x("action",[an.NEXT,an.PREV,an.SKIP,an.CLOSE]),M=s&&l===e.index;if(k&&(A||M)&&r({...S,index:e.index,lifecycle:Rt.COMPLETE,step:e.step,type:Hi.STEP_AFTER}),g.placement==="center"&&m===Kt.RUNNING&&x("index")&&n!==an.START&&d===Rt.INIT&&b.update({lifecycle:Rt.READY}),C){const R=Ua(g.target),K=!!R;K&&xfe(R)?(w("status",Kt.READY,Kt.RUNNING)||w("lifecycle",Rt.INIT,Rt.READY))&&r({...S,step:g,type:Hi.STEP_BEFORE}):(console.warn(K?"Target not visible":"Target not mounted",g),r({...S,type:Hi.TARGET_NOT_FOUND,step:g}),s||b.update({index:l+(n===an.PREV?-1:1)}))}w("lifecycle",Rt.INIT,Rt.READY)&&b.update({lifecycle:h5(g)||E?Rt.TOOLTIP:Rt.BEACON}),x("index")&&Oo({title:`step:${d}`,data:[{key:"props",value:this.props}],debug:a}),x("lifecycle",Rt.BEACON)&&r({...S,step:g,type:Hi.BEACON}),x("lifecycle",Rt.TOOLTIP)&&(r({...S,step:g,type:Hi.TOOLTIP}),h&&this.tooltip&&(this.scope=new Kfe(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),w("lifecycle",[Rt.TOOLTIP,Rt.INIT],Rt.INIT)&&((t=this.scope)==null||t.removeScope(),b.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return h5(t)||e===Rt.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:s,step:a}=this.props,o=Ua(a.target);return!M9(a)||!dt.domElement(o)?null:He.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},He.createElement(px,{...a.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:a.placement,target:a.target},He.createElement(Ufe,{beaconComponent:a.beaconComponent,continuous:e,index:n,isLastStep:n+1===s,locale:a.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:s,step:a,styles:a.styles})))}},R9=class extends He.Component{constructor(e){super(e),pt(this,"helpers"),pt(this,"store"),pt(this,"callback",a=>{const{callback:o}=this.props;dt.function(o)&&o(a)}),pt(this,"handleKeyboard",a=>{const{index:o,lifecycle:l}=this.state,{steps:d}=this.props,h=d[o];l===Rt.TOOLTIP&&a.code==="Escape"&&h&&!h.disableCloseOnEsc&&this.store.close("keyboard")}),pt(this,"handleClickOverlay",()=>{const{index:a}=this.state,{steps:o}=this.props;Fl(this.props,o[a]).disableOverlayClose||this.helpers.close("overlay")}),pt(this,"syncState",a=>{this.setState(a)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=Lfe({...e,controlled:r&&dt.number(i)}),this.helpers=this.store.getHelpers();const{addListener:s}=this.store;Oo({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),s(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!Eo())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;g5(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!Eo())return;const{action:n,controlled:r,index:i,status:s}=this.state,{debug:a,run:o,stepIndex:l,steps:d}=this.props,{stepIndex:h,steps:m}=e,{reset:g,setSteps:b,start:x,stop:w,update:S}=this.store,{changed:E}=gm(e,this.props),{changed:C,changedFrom:A}=gm(t,this.state),k=Fl(this.props,d[i]),M=!Wr(m,d),R=dt.number(l)&&E("stepIndex"),K=Ua(k.target);if(M&&(g5(d,a)?b(d):console.warn("Steps are not valid",d)),E("run")&&(o?x(l):w()),R){let ae=dt.number(h)&&h<l?an.NEXT:an.PREV;n===an.STOP&&(ae=an.START),[Kt.FINISHED,Kt.SKIPPED].includes(s)||S({action:n===an.CLOSE?an.CLOSE:ae,index:l,lifecycle:Rt.INIT})}!r&&s===Kt.RUNNING&&i===0&&!K&&(this.store.update({index:i+1}),this.callback({...this.state,type:Hi.TARGET_NOT_FOUND,step:k}));const H={...this.state,index:i,step:k};if(C("action",[an.NEXT,an.PREV,an.SKIP,an.CLOSE])&&C("status",Kt.PAUSED)){const ae=Fl(this.props,d[t.index]);this.callback({...H,index:t.index,lifecycle:Rt.COMPLETE,step:ae,type:Hi.STEP_AFTER})}if(C("status",[Kt.FINISHED,Kt.SKIPPED])){const ae=Fl(this.props,d[t.index]);r||this.callback({...H,index:t.index,lifecycle:Rt.COMPLETE,step:ae,type:Hi.STEP_AFTER}),this.callback({...H,type:Hi.TOUR_END,step:ae,index:t.index}),g()}else A("status",[Kt.IDLE,Kt.READY],Kt.RUNNING)?this.callback({...H,type:Hi.TOUR_START}):(C("status")||C("action",an.RESET))&&this.callback({...H,type:Hi.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:i,disableScrollParentFix:s=!1,scrollDuration:a,scrollOffset:o=20,scrollToFirstStep:l=!1,steps:d}=this.props,h=Fl(this.props,d[t]),m=Ua(h.target),g=Pfe({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:h,target:m});if(r===Kt.RUNNING&&g){const b=rh(m,s),x=Sd(m,s);let w=Math.floor(Cfe(m,o,s))||0;Oo({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const S=this.store.getPopper("beacon"),E=this.store.getPopper("tooltip");if(n===Rt.BEACON&&S){const{offsets:C,placement:A}=S;!["bottom"].includes(A)&&!b&&(w=Math.floor(C.popper.top-o))}else if(n===Rt.TOOLTIP&&E){const{flipped:C,offsets:A,placement:k}=E;["top","right","left"].includes(k)&&!C&&!b?w=Math.floor(A.popper.top-o):w-=h.spotlightPadding}w=w>=0?w:0,r===Kt.RUNNING&&Efe(w,{element:x,duration:a}).then(()=>{setTimeout(()=>{var C;(C=this.store.getPopper("tooltip"))==null||C.instance.update()},10)})}}render(){if(!Eo())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:s,scrollToFirstStep:a=!1,steps:o}=this.props,l=n===Kt.RUNNING,d={};if(l&&o[e]){const h=Fl(this.props,o[e]);d.step=He.createElement(Yfe,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:s,shouldScroll:!h.disableScrolling&&(e!==0||a),step:h,store:this.store}),d.overlay=He.createElement(jfe,{id:"react-joyride-portal"},He.createElement(Nfe,{...h,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return He.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};pt(R9,"defaultProps",Ffe);var Zfe=R9;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=aR;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=HP;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=Od;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=XP;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=nr;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=EG;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=iR;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=Rr;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=EH;exports.$293f70390ea03370$export$497855f14858aa34=yG;exports.$32489daedd52963e$export$1315d136e6f7581=_G;exports.$337b884510726a0d$export$c6fdb837b070b4ff=eG;exports.$36a0ac60f04457c5$export$136073280381448e=pH;exports.$3c0fc76039f1c516$export$60e84778edff6d26=HR;exports.$40df3f8667284809$export$d55e7ee900f34e93=kG;exports.$46a4342aab3d8076$export$87e0539f600c24e5=fH;exports.$47b897dc8cdb026b$export$8d15029008292ae=TH;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=DH;exports.$6057a3d2a53a12fd$export$42df105a73306d51=DG;exports.$64244302c3013299$export$dd0bbc9b26defe37=kW;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=GW;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=RG;exports.$93c38a5e28be6249$export$e50a61c1de9f574=QG;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=cH;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=OG;exports.$a916eb452884faea$export$b7a616150fdb9f44=HW;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=jG;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=HG;exports.$bb77f239b46e8c72$export$3274cf84b703fff=E_;exports.$bcca50147b47f54d$export$56b2c08e277f365=AH;exports.$c132121280ec012d$export$50eacbbf140a3141=cG;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=dG;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=wG;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=dH;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=eY;exports.$f2f8a6077418541e$export$542a6fd13ac93354=QH;exports.$fae977aafc393c5c$export$588937bcd60ade55=lW;exports.$fae977aafc393c5c$export$6b862160d295c8e=uW;exports.ACTIONS=an;exports.AdvancedImage=kJ;exports.CSVLink=dle;exports.Cloudinary=PQ;exports.Controller=aq;exports.EVENTS=Hi;exports.FormProvider=iq;exports.Je=FK;exports.LazyMotion=dse;exports.Lottie=sse;exports.M=xs;exports.R=Zu;exports.ReorderGroup=qie;exports.ReorderItem=Gie;exports.STATUS=Kt;exports.Xe=RK;exports._=tq;exports.autoUpdate=AU;exports.components_default=Zfe;exports.ct=OK;exports.dayjs=fZ;exports.dayjs_minExports=tk;exports.domAnimation=Hue;exports.ee=ik;exports.flexRender=gle;exports.flip=IU;exports.isEqual=uZ;exports.isNil=mle;exports.isNumber=pZ;exports.lazyload=AJ;exports.localizedFormat=Jie;exports.lodashExports=iP;exports.m=tae;exports.nt=U4;exports.o=tse;exports.offset=kU;exports.placeholder=MJ;exports.prismExports=iee;exports.q=V3;exports.shift=OU;exports.some=nee;exports.st=N5;exports.transform=Sle;exports.useController=hP;exports.useFieldArray=$q;exports.useFloating=GU;exports.useFloating$1=eP;exports.useFocus=YU;exports.useForm=xq;exports.useFormContext=Pd;exports.useHover=WU;exports.useInteractions=ZU;exports.useRole=JU;exports.useWatch=dP;
|