@g4rcez/components 5.0.0 → 5.0.1
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/{MotionConfig-BLwtdAWy.js → MotionConfig-DKKYqBH2.js} +2 -2
- package/dist/{MotionConfig-BLwtdAWy.js.map → MotionConfig-DKKYqBH2.js.map} +1 -1
- package/dist/{autocomplete-DVKTP0Il.js → autocomplete-D3VOTihi.js} +2 -2
- package/dist/{autocomplete-DVKTP0Il.js.map → autocomplete-D3VOTihi.js.map} +1 -1
- package/dist/{calendar-_DZjphH8.js → calendar-PCCZDUIL.js} +4 -4
- package/dist/{calendar-_DZjphH8.js.map → calendar-PCCZDUIL.js.map} +1 -1
- package/dist/components/display/alert.js +1 -1
- package/dist/components/display/calendar.js +1 -1
- package/dist/components/display/list.js +2 -2
- package/dist/components/display/notifications.js +1 -1
- package/dist/components/floating/expand.js +1 -1
- package/dist/components/floating/modal.js +1 -1
- package/dist/components/form/autocomplete.js +1 -1
- package/dist/components/form/date-picker.js +1 -1
- package/dist/components/form/file-upload.js +1 -1
- package/dist/components/table/table.js +1 -1
- package/dist/{date-picker-9q_Ki5Vu.js → date-picker-BhKEFZew.js} +2 -2
- package/dist/{date-picker-9q_Ki5Vu.js.map → date-picker-BhKEFZew.js.map} +1 -1
- package/dist/{dist-Buc00Zls.js → dist-BrGpYRaj.js} +56 -55
- package/dist/{dist-Buc00Zls.js.map → dist-BrGpYRaj.js.map} +1 -1
- package/dist/{file-upload-COk6_Bs5.js → file-upload-DWbZfeG5.js} +15 -15
- package/dist/{file-upload-COk6_Bs5.js.map → file-upload-DWbZfeG5.js.map} +1 -1
- package/dist/index.js +646 -647
- package/dist/index.js.map +1 -1
- package/dist/{modal-Cn-OaKRp.js → modal-Bz-61ays.js} +3 -3
- package/dist/{modal-Cn-OaKRp.js.map → modal-Bz-61ays.js.map} +1 -1
- package/dist/{notifications-l_B9J4Gx.js → notifications-MT4XkLov.js} +270 -269
- package/dist/{notifications-l_B9J4Gx.js.map → notifications-MT4XkLov.js.map} +1 -1
- package/dist/{proxy-Drpz0Avo.js → proxy-BcJ_5Dwq.js} +465 -468
- package/dist/{proxy-Drpz0Avo.js.map → proxy-BcJ_5Dwq.js.map} +1 -1
- package/dist/{table-Dql6Yzag.js → table-CUFbAI2k.js} +3 -3
- package/dist/{table-Dql6Yzag.js.map → table-CUFbAI2k.js.map} +1 -1
- package/package.json +1 -1
- package/dist/src/components/core/button.d.ts +0 -77
- package/dist/src/components/core/button.d.ts.map +0 -1
- package/dist/src/components/core/button.jsx +0 -79
- package/dist/src/components/core/heading.d.ts +0 -3
- package/dist/src/components/core/heading.d.ts.map +0 -1
- package/dist/src/components/core/heading.jsx +0 -4
- package/dist/src/components/core/polymorph.d.ts +0 -10
- package/dist/src/components/core/polymorph.d.ts.map +0 -1
- package/dist/src/components/core/polymorph.jsx +0 -5
- package/dist/src/components/core/render-on-view.d.ts +0 -7
- package/dist/src/components/core/render-on-view.d.ts.map +0 -1
- package/dist/src/components/core/render-on-view.jsx +0 -31
- package/dist/src/components/core/resizable.d.ts +0 -3
- package/dist/src/components/core/resizable.d.ts.map +0 -1
- package/dist/src/components/core/resizable.jsx +0 -51
- package/dist/src/components/core/slot.d.ts +0 -16
- package/dist/src/components/core/slot.d.ts.map +0 -1
- package/dist/src/components/core/slot.jsx +0 -156
- package/dist/src/components/core/tag.d.ts +0 -35
- package/dist/src/components/core/tag.d.ts.map +0 -1
- package/dist/src/components/core/tag.jsx +0 -53
- package/dist/src/components/core/typography.d.ts +0 -25
- package/dist/src/components/core/typography.d.ts.map +0 -1
- package/dist/src/components/core/typography.jsx +0 -20
- package/dist/src/components/display/alert.d.ts +0 -28
- package/dist/src/components/display/alert.d.ts.map +0 -1
- package/dist/src/components/display/alert.jsx +0 -61
- package/dist/src/components/display/calendar.d.ts +0 -42
- package/dist/src/components/display/calendar.d.ts.map +0 -1
- package/dist/src/components/display/calendar.jsx +0 -318
- package/dist/src/components/display/card.d.ts +0 -29
- package/dist/src/components/display/card.d.ts.map +0 -1
- package/dist/src/components/display/card.jsx +0 -43
- package/dist/src/components/display/empty.d.ts +0 -8
- package/dist/src/components/display/empty.d.ts.map +0 -1
- package/dist/src/components/display/empty.jsx +0 -11
- package/dist/src/components/display/list.d.ts +0 -16
- package/dist/src/components/display/list.d.ts.map +0 -1
- package/dist/src/components/display/list.jsx +0 -85
- package/dist/src/components/display/notifications.d.ts +0 -27
- package/dist/src/components/display/notifications.d.ts.map +0 -1
- package/dist/src/components/display/notifications.jsx +0 -130
- package/dist/src/components/display/progress.d.ts +0 -16
- package/dist/src/components/display/progress.d.ts.map +0 -1
- package/dist/src/components/display/progress.jsx +0 -21
- package/dist/src/components/display/shortcut.d.ts +0 -4
- package/dist/src/components/display/shortcut.d.ts.map +0 -1
- package/dist/src/components/display/shortcut.jsx +0 -23
- package/dist/src/components/display/skeleton.d.ts +0 -12
- package/dist/src/components/display/skeleton.d.ts.map +0 -1
- package/dist/src/components/display/skeleton.jsx +0 -19
- package/dist/src/components/display/spinner.d.ts +0 -5
- package/dist/src/components/display/spinner.d.ts.map +0 -1
- package/dist/src/components/display/spinner.jsx +0 -11
- package/dist/src/components/display/stats.d.ts +0 -12
- package/dist/src/components/display/stats.d.ts.map +0 -1
- package/dist/src/components/display/stats.jsx +0 -16
- package/dist/src/components/display/step.d.ts +0 -24
- package/dist/src/components/display/step.d.ts.map +0 -1
- package/dist/src/components/display/step.jsx +0 -145
- package/dist/src/components/display/tabs.d.ts +0 -24
- package/dist/src/components/display/tabs.d.ts.map +0 -1
- package/dist/src/components/display/tabs.jsx +0 -125
- package/dist/src/components/display/timeline.d.ts +0 -10
- package/dist/src/components/display/timeline.d.ts.map +0 -1
- package/dist/src/components/display/timeline.jsx +0 -25
- package/dist/src/components/floating/command-palette.d.ts +0 -49
- package/dist/src/components/floating/command-palette.d.ts.map +0 -1
- package/dist/src/components/floating/command-palette.jsx +0 -223
- package/dist/src/components/floating/dropdown.d.ts +0 -15
- package/dist/src/components/floating/dropdown.d.ts.map +0 -1
- package/dist/src/components/floating/dropdown.jsx +0 -56
- package/dist/src/components/floating/expand.d.ts +0 -11
- package/dist/src/components/floating/expand.d.ts.map +0 -1
- package/dist/src/components/floating/expand.jsx +0 -44
- package/dist/src/components/floating/menu.d.ts +0 -52
- package/dist/src/components/floating/menu.d.ts.map +0 -1
- package/dist/src/components/floating/menu.jsx +0 -165
- package/dist/src/components/floating/modal.d.ts +0 -60
- package/dist/src/components/floating/modal.d.ts.map +0 -1
- package/dist/src/components/floating/modal.jsx +0 -336
- package/dist/src/components/floating/toolbar.d.ts +0 -6
- package/dist/src/components/floating/toolbar.d.ts.map +0 -1
- package/dist/src/components/floating/toolbar.jsx +0 -5
- package/dist/src/components/floating/tooltip.d.ts +0 -17
- package/dist/src/components/floating/tooltip.d.ts.map +0 -1
- package/dist/src/components/floating/tooltip.jsx +0 -67
- package/dist/src/components/floating/wizard.d.ts +0 -26
- package/dist/src/components/floating/wizard.d.ts.map +0 -1
- package/dist/src/components/floating/wizard.jsx +0 -165
- package/dist/src/components/form/autocomplete.d.ts +0 -16
- package/dist/src/components/form/autocomplete.d.ts.map +0 -1
- package/dist/src/components/form/autocomplete.jsx +0 -290
- package/dist/src/components/form/checkbox.d.ts +0 -12
- package/dist/src/components/form/checkbox.d.ts.map +0 -1
- package/dist/src/components/form/checkbox.jsx +0 -12
- package/dist/src/components/form/date-picker.d.ts +0 -10
- package/dist/src/components/form/date-picker.d.ts.map +0 -1
- package/dist/src/components/form/date-picker.jsx +0 -115
- package/dist/src/components/form/file-upload.d.ts +0 -15
- package/dist/src/components/form/file-upload.d.ts.map +0 -1
- package/dist/src/components/form/file-upload.jsx +0 -138
- package/dist/src/components/form/form.d.ts +0 -3
- package/dist/src/components/form/form.d.ts.map +0 -1
- package/dist/src/components/form/form.jsx +0 -10
- package/dist/src/components/form/formReset.d.ts +0 -2
- package/dist/src/components/form/formReset.d.ts.map +0 -1
- package/dist/src/components/form/formReset.jsx +0 -17
- package/dist/src/components/form/free-text.d.ts +0 -11
- package/dist/src/components/form/free-text.d.ts.map +0 -1
- package/dist/src/components/form/free-text.jsx +0 -41
- package/dist/src/components/form/input-field.d.ts +0 -34
- package/dist/src/components/form/input-field.d.ts.map +0 -1
- package/dist/src/components/form/input-field.jsx +0 -58
- package/dist/src/components/form/input.d.ts +0 -52
- package/dist/src/components/form/input.d.ts.map +0 -1
- package/dist/src/components/form/input.jsx +0 -36
- package/dist/src/components/form/multi-select.d.ts +0 -19
- package/dist/src/components/form/multi-select.d.ts.map +0 -1
- package/dist/src/components/form/multi-select.jsx +0 -344
- package/dist/src/components/form/radiobox.d.ts +0 -7
- package/dist/src/components/form/radiobox.d.ts.map +0 -1
- package/dist/src/components/form/radiobox.jsx +0 -6
- package/dist/src/components/form/select.d.ts +0 -13
- package/dist/src/components/form/select.d.ts.map +0 -1
- package/dist/src/components/form/select.jsx +0 -44
- package/dist/src/components/form/slider.d.ts +0 -7
- package/dist/src/components/form/slider.d.ts.map +0 -1
- package/dist/src/components/form/slider.jsx +0 -45
- package/dist/src/components/form/switch.d.ts +0 -9
- package/dist/src/components/form/switch.d.ts.map +0 -1
- package/dist/src/components/form/switch.jsx +0 -46
- package/dist/src/components/form/task-list.d.ts +0 -3
- package/dist/src/components/form/task-list.d.ts.map +0 -1
- package/dist/src/components/form/task-list.jsx +0 -26
- package/dist/src/components/form/textarea.d.ts +0 -5
- package/dist/src/components/form/textarea.d.ts.map +0 -1
- package/dist/src/components/form/textarea.jsx +0 -26
- package/dist/src/components/index.d.ts +0 -45
- package/dist/src/components/index.d.ts.map +0 -1
- package/dist/src/components/index.js +0 -44
- package/dist/src/components/page-calendar/calendar-header.d.ts +0 -16
- package/dist/src/components/page-calendar/calendar-header.d.ts.map +0 -1
- package/dist/src/components/page-calendar/calendar-header.jsx +0 -83
- package/dist/src/components/page-calendar/day-view.d.ts +0 -12
- package/dist/src/components/page-calendar/day-view.d.ts.map +0 -1
- package/dist/src/components/page-calendar/day-view.jsx +0 -89
- package/dist/src/components/page-calendar/event-pill.d.ts +0 -9
- package/dist/src/components/page-calendar/event-pill.d.ts.map +0 -1
- package/dist/src/components/page-calendar/event-pill.jsx +0 -25
- package/dist/src/components/page-calendar/index.d.ts +0 -4
- package/dist/src/components/page-calendar/index.d.ts.map +0 -1
- package/dist/src/components/page-calendar/index.js +0 -2
- package/dist/src/components/page-calendar/month-view.d.ts +0 -11
- package/dist/src/components/page-calendar/month-view.d.ts.map +0 -1
- package/dist/src/components/page-calendar/month-view.jsx +0 -46
- package/dist/src/components/page-calendar/page-calendar.d.ts +0 -18
- package/dist/src/components/page-calendar/page-calendar.d.ts.map +0 -1
- package/dist/src/components/page-calendar/page-calendar.jsx +0 -41
- package/dist/src/components/page-calendar/page-calendar.types.d.ts +0 -18
- package/dist/src/components/page-calendar/page-calendar.types.d.ts.map +0 -1
- package/dist/src/components/page-calendar/page-calendar.types.js +0 -1
- package/dist/src/components/page-calendar/page-calendar.utils.d.ts +0 -24
- package/dist/src/components/page-calendar/page-calendar.utils.d.ts.map +0 -1
- package/dist/src/components/page-calendar/page-calendar.utils.js +0 -93
- package/dist/src/components/page-calendar/week-view.d.ts +0 -11
- package/dist/src/components/page-calendar/week-view.d.ts.map +0 -1
- package/dist/src/components/page-calendar/week-view.jsx +0 -66
- package/dist/src/components/table/filter.d.ts +0 -42
- package/dist/src/components/table/filter.d.ts.map +0 -1
- package/dist/src/components/table/filter.jsx +0 -169
- package/dist/src/components/table/group.d.ts +0 -17
- package/dist/src/components/table/group.d.ts.map +0 -1
- package/dist/src/components/table/group.jsx +0 -75
- package/dist/src/components/table/index.d.ts +0 -19
- package/dist/src/components/table/index.d.ts.map +0 -1
- package/dist/src/components/table/index.jsx +0 -63
- package/dist/src/components/table/inner-table.d.ts +0 -29
- package/dist/src/components/table/inner-table.d.ts.map +0 -1
- package/dist/src/components/table/inner-table.jsx +0 -102
- package/dist/src/components/table/metadata.d.ts +0 -4
- package/dist/src/components/table/metadata.d.ts.map +0 -1
- package/dist/src/components/table/metadata.jsx +0 -36
- package/dist/src/components/table/pagination.d.ts +0 -5
- package/dist/src/components/table/pagination.d.ts.map +0 -1
- package/dist/src/components/table/pagination.jsx +0 -74
- package/dist/src/components/table/row.d.ts +0 -11
- package/dist/src/components/table/row.d.ts.map +0 -1
- package/dist/src/components/table/row.jsx +0 -49
- package/dist/src/components/table/sort.d.ts +0 -28
- package/dist/src/components/table/sort.d.ts.map +0 -1
- package/dist/src/components/table/sort.jsx +0 -109
- package/dist/src/components/table/table-lib.d.ts +0 -135
- package/dist/src/components/table/table-lib.d.ts.map +0 -1
- package/dist/src/components/table/table-lib.js +0 -83
- package/dist/src/components/table/table.context.d.ts +0 -10
- package/dist/src/components/table/table.context.d.ts.map +0 -1
- package/dist/src/components/table/table.context.jsx +0 -5
- package/dist/src/components/table/thead.d.ts +0 -9
- package/dist/src/components/table/thead.d.ts.map +0 -1
- package/dist/src/components/table/thead.jsx +0 -103
- package/dist/src/config/context.d.ts +0 -21
- package/dist/src/config/context.d.ts.map +0 -1
- package/dist/src/config/context.js +0 -12
- package/dist/src/config/default-translations.d.ts +0 -94
- package/dist/src/config/default-translations.d.ts.map +0 -1
- package/dist/src/config/default-translations.jsx +0 -87
- package/dist/src/config/default-tweaks.d.ts +0 -13
- package/dist/src/config/default-tweaks.d.ts.map +0 -1
- package/dist/src/config/default-tweaks.js +0 -4
- package/dist/src/constants.d.ts +0 -3
- package/dist/src/constants.d.ts.map +0 -1
- package/dist/src/constants.js +0 -2
- package/dist/src/hooks/use-click-outside.d.ts +0 -3
- package/dist/src/hooks/use-click-outside.d.ts.map +0 -1
- package/dist/src/hooks/use-click-outside.js +0 -17
- package/dist/src/hooks/use-color-parser.d.ts +0 -2
- package/dist/src/hooks/use-color-parser.d.ts.map +0 -1
- package/dist/src/hooks/use-color-parser.js +0 -9
- package/dist/src/hooks/use-components-provider.d.ts +0 -15
- package/dist/src/hooks/use-components-provider.d.ts.map +0 -1
- package/dist/src/hooks/use-components-provider.jsx +0 -22
- package/dist/src/hooks/use-debounce.d.ts +0 -5
- package/dist/src/hooks/use-debounce.d.ts.map +0 -1
- package/dist/src/hooks/use-debounce.js +0 -12
- package/dist/src/hooks/use-floating-ref.d.ts +0 -2
- package/dist/src/hooks/use-floating-ref.d.ts.map +0 -1
- package/dist/src/hooks/use-floating-ref.js +0 -6
- package/dist/src/hooks/use-form.d.ts +0 -394
- package/dist/src/hooks/use-form.d.ts.map +0 -1
- package/dist/src/hooks/use-form.js +0 -563
- package/dist/src/hooks/use-hover.d.ts +0 -3
- package/dist/src/hooks/use-hover.d.ts.map +0 -1
- package/dist/src/hooks/use-hover.js +0 -18
- package/dist/src/hooks/use-input-id.d.ts +0 -4
- package/dist/src/hooks/use-input-id.d.ts.map +0 -1
- package/dist/src/hooks/use-input-id.js +0 -5
- package/dist/src/hooks/use-is-coarse-device.d.ts +0 -2
- package/dist/src/hooks/use-is-coarse-device.d.ts.map +0 -1
- package/dist/src/hooks/use-is-coarse-device.js +0 -12
- package/dist/src/hooks/use-locale.d.ts +0 -3
- package/dist/src/hooks/use-locale.d.ts.map +0 -1
- package/dist/src/hooks/use-locale.js +0 -10
- package/dist/src/hooks/use-media-query.d.ts +0 -2
- package/dist/src/hooks/use-media-query.d.ts.map +0 -1
- package/dist/src/hooks/use-media-query.js +0 -25
- package/dist/src/hooks/use-on-event.d.ts +0 -4
- package/dist/src/hooks/use-on-event.d.ts.map +0 -1
- package/dist/src/hooks/use-on-event.js +0 -10
- package/dist/src/hooks/use-parent.d.ts +0 -3
- package/dist/src/hooks/use-parent.d.ts.map +0 -1
- package/dist/src/hooks/use-parent.js +0 -21
- package/dist/src/hooks/use-preferences.d.ts +0 -2
- package/dist/src/hooks/use-preferences.d.ts.map +0 -1
- package/dist/src/hooks/use-preferences.js +0 -23
- package/dist/src/hooks/use-previous.d.ts +0 -2
- package/dist/src/hooks/use-previous.d.ts.map +0 -1
- package/dist/src/hooks/use-previous.js +0 -9
- package/dist/src/hooks/use-reactive.d.ts +0 -2
- package/dist/src/hooks/use-reactive.d.ts.map +0 -1
- package/dist/src/hooks/use-reactive.js +0 -9
- package/dist/src/hooks/use-remove-scroll.d.ts +0 -4
- package/dist/src/hooks/use-remove-scroll.d.ts.map +0 -1
- package/dist/src/hooks/use-remove-scroll.js +0 -48
- package/dist/src/hooks/use-resize-observer.d.ts +0 -2
- package/dist/src/hooks/use-resize-observer.d.ts.map +0 -1
- package/dist/src/hooks/use-resize-observer.js +0 -17
- package/dist/src/hooks/use-stable-ref.d.ts +0 -2
- package/dist/src/hooks/use-stable-ref.d.ts.map +0 -1
- package/dist/src/hooks/use-stable-ref.js +0 -9
- package/dist/src/hooks/use-swipe.d.ts +0 -8
- package/dist/src/hooks/use-swipe.d.ts.map +0 -1
- package/dist/src/hooks/use-swipe.js +0 -17
- package/dist/src/hooks/use-translations.d.ts +0 -92
- package/dist/src/hooks/use-translations.d.ts.map +0 -1
- package/dist/src/hooks/use-translations.js +0 -9
- package/dist/src/hooks/use-tweaks.d.ts +0 -3
- package/dist/src/hooks/use-tweaks.d.ts.map +0 -1
- package/dist/src/hooks/use-tweaks.js +0 -9
- package/dist/src/hooks/use-window-size.d.ts +0 -5
- package/dist/src/hooks/use-window-size.d.ts.map +0 -1
- package/dist/src/hooks/use-window-size.js +0 -14
- package/dist/src/index.d.ts +0 -22
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -20
- package/dist/src/lib/combi-keys.d.ts +0 -15
- package/dist/src/lib/combi-keys.d.ts.map +0 -1
- package/dist/src/lib/combi-keys.js +0 -60
- package/dist/src/lib/dict.d.ts +0 -9
- package/dist/src/lib/dict.d.ts.map +0 -1
- package/dist/src/lib/dict.js +0 -28
- package/dist/src/lib/dom.d.ts +0 -20
- package/dist/src/lib/dom.d.ts.map +0 -1
- package/dist/src/lib/dom.js +0 -185
- package/dist/src/lib/fns.d.ts +0 -11
- package/dist/src/lib/fns.d.ts.map +0 -1
- package/dist/src/lib/fns.js +0 -46
- package/dist/src/lib/fzf.d.ts +0 -16
- package/dist/src/lib/fzf.d.ts.map +0 -1
- package/dist/src/lib/fzf.js +0 -115
- package/dist/src/lib/keyboard-area.d.ts +0 -16
- package/dist/src/lib/keyboard-area.d.ts.map +0 -1
- package/dist/src/lib/keyboard-area.js +0 -14
- package/dist/src/styles/common.d.ts +0 -8
- package/dist/src/styles/common.d.ts.map +0 -1
- package/dist/src/styles/common.js +0 -20
- package/dist/src/styles/components.d.ts +0 -3
- package/dist/src/styles/components.d.ts.map +0 -1
- package/dist/src/styles/components.js +0 -397
- package/dist/src/styles/dark.d.ts +0 -3
- package/dist/src/styles/dark.d.ts.map +0 -1
- package/dist/src/styles/dark.js +0 -217
- package/dist/src/styles/default-tokens.d.ts +0 -74
- package/dist/src/styles/default-tokens.d.ts.map +0 -1
- package/dist/src/styles/default-tokens.js +0 -41
- package/dist/src/styles/design-tokens.d.ts +0 -29
- package/dist/src/styles/design-tokens.d.ts.map +0 -1
- package/dist/src/styles/design-tokens.js +0 -73
- package/dist/src/styles/light.d.ts +0 -3
- package/dist/src/styles/light.d.ts.map +0 -1
- package/dist/src/styles/light.js +0 -217
- package/dist/src/styles/theme.d.ts +0 -3
- package/dist/src/styles/theme.d.ts.map +0 -1
- package/dist/src/styles/theme.js +0 -4
- package/dist/src/styles/theme.types.d.ts +0 -540
- package/dist/src/styles/theme.types.d.ts.map +0 -1
- package/dist/src/styles/theme.types.js +0 -1
- package/dist/src/types.d.ts +0 -26
- package/dist/src/types.d.ts.map +0 -1
- package/dist/src/types.js +0 -1
- package/dist/tsconfig.lib.tsbuildinfo +0 -1
- package/dist/with-selector-BAUQ-vKK.js +0 -187
- package/dist/with-selector-BAUQ-vKK.js.map +0 -1
|
@@ -19,47 +19,44 @@ var tt = Object.create, L = Object.defineProperty, nt = Object.getOwnPropertyDes
|
|
|
19
19
|
}, ut = (e, t, n) => (n = e == null ? {} : tt(it(e)), lt(t || !e || !e.__esModule ? L(n, "default", {
|
|
20
20
|
value: e,
|
|
21
21
|
enumerable: !0
|
|
22
|
-
}) : n, e)), dt = (e) => at.call(e, "module.exports") ? e["module.exports"] : lt(L({}, "__esModule", { value: !0 }), e),
|
|
23
|
-
if (typeof require < "u") return require.apply(this, arguments);
|
|
24
|
-
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
25
|
-
}), R = M({}), pt = typeof window < "u" ? Ze : Je, z = /* @__PURE__ */ M(null);
|
|
22
|
+
}) : n, e)), dt = (e) => at.call(e, "module.exports") ? e["module.exports"] : lt(L({}, "__esModule", { value: !0 }), e), R = M({}), ft = typeof window < "u" ? Ze : Je, z = /* @__PURE__ */ M(null);
|
|
26
23
|
//#endregion
|
|
27
24
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs
|
|
28
|
-
function
|
|
25
|
+
function pt(e, t, n, r = 0, i = 1) {
|
|
29
26
|
let a = Array.from(e).sort((e, t) => e.sortNodePosition(t)).indexOf(t), o = e.size, s = (o - 1) * r;
|
|
30
27
|
return typeof n == "function" ? n(a, o) : i === 1 ? a * r : s - a * r;
|
|
31
28
|
}
|
|
32
29
|
//#endregion
|
|
33
30
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs
|
|
34
|
-
function
|
|
31
|
+
function mt(e, t, n = {}) {
|
|
35
32
|
let r = u(e, t, n.type === "exit" ? e.presenceContext?.custom : void 0), { transition: i = e.getDefaultTransition() || {} } = r || {};
|
|
36
33
|
n.transitionOverride && (i = n.transitionOverride);
|
|
37
34
|
let a = r ? () => Promise.all(c(e, r, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (r = 0) => {
|
|
38
35
|
let { delayChildren: a = 0, staggerChildren: o, staggerDirection: s } = i;
|
|
39
|
-
return
|
|
36
|
+
return ht(e, t, r, a, o, s, n);
|
|
40
37
|
} : () => Promise.resolve(), { when: s } = i;
|
|
41
38
|
if (s) {
|
|
42
39
|
let [e, t] = s === "beforeChildren" ? [a, o] : [o, a];
|
|
43
40
|
return e().then(() => t());
|
|
44
41
|
} else return Promise.all([a(), o(n.delay)]);
|
|
45
42
|
}
|
|
46
|
-
function
|
|
43
|
+
function ht(e, t, n = 0, r = 0, i = 0, a = 1, o) {
|
|
47
44
|
let s = [];
|
|
48
|
-
for (let c of e.variantChildren) c.notify("AnimationStart", t), s.push(
|
|
45
|
+
for (let c of e.variantChildren) c.notify("AnimationStart", t), s.push(mt(c, t, {
|
|
49
46
|
...o,
|
|
50
|
-
delay: n + (typeof r == "function" ? 0 : r) +
|
|
47
|
+
delay: n + (typeof r == "function" ? 0 : r) + pt(e.variantChildren, c, r, i, a)
|
|
51
48
|
}).then(() => c.notify("AnimationComplete", t)));
|
|
52
49
|
return Promise.all(s);
|
|
53
50
|
}
|
|
54
51
|
//#endregion
|
|
55
52
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs
|
|
56
|
-
function
|
|
53
|
+
function gt(e, t, n = {}) {
|
|
57
54
|
e.notify("AnimationStart", t);
|
|
58
55
|
let r;
|
|
59
56
|
if (Array.isArray(t)) {
|
|
60
|
-
let i = t.map((t) =>
|
|
57
|
+
let i = t.map((t) => mt(e, t, n));
|
|
61
58
|
r = Promise.all(i);
|
|
62
|
-
} else if (typeof t == "string") r =
|
|
59
|
+
} else if (typeof t == "string") r = mt(e, t, n);
|
|
63
60
|
else {
|
|
64
61
|
let i = typeof t == "function" ? u(e, t, n.custom) : t;
|
|
65
62
|
r = Promise.all(c(e, i, n));
|
|
@@ -70,7 +67,7 @@ function _t(e, t, n = {}) {
|
|
|
70
67
|
}
|
|
71
68
|
//#endregion
|
|
72
69
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/utils/is-html-element.mjs
|
|
73
|
-
function
|
|
70
|
+
function _t(e) {
|
|
74
71
|
return g(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
|
|
75
72
|
}
|
|
76
73
|
//#endregion
|
|
@@ -79,12 +76,12 @@ var B = {
|
|
|
79
76
|
x: !1,
|
|
80
77
|
y: !1
|
|
81
78
|
};
|
|
82
|
-
function
|
|
79
|
+
function vt() {
|
|
83
80
|
return B.x || B.y;
|
|
84
81
|
}
|
|
85
82
|
//#endregion
|
|
86
83
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs
|
|
87
|
-
function
|
|
84
|
+
function yt(e) {
|
|
88
85
|
return e === "x" || e === "y" ? B[e] ? null : (B[e] = !0, () => {
|
|
89
86
|
B[e] = !1;
|
|
90
87
|
}) : B.x || B.y ? null : (B.x = B.y = !0, () => {
|
|
@@ -93,7 +90,7 @@ function bt(e) {
|
|
|
93
90
|
}
|
|
94
91
|
//#endregion
|
|
95
92
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/gestures/utils/setup.mjs
|
|
96
|
-
function
|
|
93
|
+
function bt(e, t) {
|
|
97
94
|
let n = te(e), r = new AbortController();
|
|
98
95
|
return [
|
|
99
96
|
n,
|
|
@@ -107,11 +104,11 @@ function xt(e, t) {
|
|
|
107
104
|
}
|
|
108
105
|
//#endregion
|
|
109
106
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/gestures/hover.mjs
|
|
110
|
-
function
|
|
111
|
-
return !(e.pointerType === "touch" ||
|
|
107
|
+
function xt(e) {
|
|
108
|
+
return !(e.pointerType === "touch" || vt());
|
|
112
109
|
}
|
|
113
|
-
function
|
|
114
|
-
let [r, i, a] =
|
|
110
|
+
function St(e, t, n = {}) {
|
|
111
|
+
let [r, i, a] = bt(e, n);
|
|
115
112
|
return r.forEach((e) => {
|
|
116
113
|
let n = !1, r = !1, a, o = () => {
|
|
117
114
|
e.removeEventListener("pointerleave", u);
|
|
@@ -131,7 +128,7 @@ function Ct(e, t, n = {}) {
|
|
|
131
128
|
}
|
|
132
129
|
};
|
|
133
130
|
e.addEventListener("pointerenter", (n) => {
|
|
134
|
-
if (!
|
|
131
|
+
if (!xt(n)) return;
|
|
135
132
|
r = !1;
|
|
136
133
|
let o = t(e, n);
|
|
137
134
|
typeof o == "function" && (a = o, e.addEventListener("pointerleave", u, i));
|
|
@@ -140,115 +137,115 @@ function Ct(e, t, n = {}) {
|
|
|
140
137
|
}
|
|
141
138
|
//#endregion
|
|
142
139
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs
|
|
143
|
-
var
|
|
140
|
+
var Ct = (e, t) => t ? e === t ? !0 : Ct(e, t.parentElement) : !1, wt = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, Tt = new Set([
|
|
144
141
|
"BUTTON",
|
|
145
142
|
"INPUT",
|
|
146
143
|
"SELECT",
|
|
147
144
|
"TEXTAREA",
|
|
148
145
|
"A"
|
|
149
146
|
]);
|
|
150
|
-
function
|
|
151
|
-
return
|
|
147
|
+
function Et(e) {
|
|
148
|
+
return Tt.has(e.tagName) || e.isContentEditable === !0;
|
|
152
149
|
}
|
|
153
|
-
var
|
|
150
|
+
var Dt = new Set([
|
|
154
151
|
"INPUT",
|
|
155
152
|
"SELECT",
|
|
156
153
|
"TEXTAREA"
|
|
157
154
|
]);
|
|
158
|
-
function
|
|
159
|
-
return
|
|
155
|
+
function Ot(e) {
|
|
156
|
+
return Dt.has(e.tagName) || e.isContentEditable === !0;
|
|
160
157
|
}
|
|
161
158
|
//#endregion
|
|
162
159
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs
|
|
163
|
-
var
|
|
160
|
+
var kt = /* @__PURE__ */ new WeakSet();
|
|
164
161
|
//#endregion
|
|
165
162
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs
|
|
166
|
-
function
|
|
163
|
+
function At(e) {
|
|
167
164
|
return (t) => {
|
|
168
165
|
t.key === "Enter" && e(t);
|
|
169
166
|
};
|
|
170
167
|
}
|
|
171
|
-
function
|
|
168
|
+
function jt(e, t) {
|
|
172
169
|
e.dispatchEvent(new PointerEvent("pointer" + t, {
|
|
173
170
|
isPrimary: !0,
|
|
174
171
|
bubbles: !0
|
|
175
172
|
}));
|
|
176
173
|
}
|
|
177
|
-
var
|
|
174
|
+
var Mt = (e, t) => {
|
|
178
175
|
let n = e.currentTarget;
|
|
179
176
|
if (!n) return;
|
|
180
|
-
let r =
|
|
181
|
-
if (
|
|
182
|
-
|
|
183
|
-
let e =
|
|
184
|
-
|
|
177
|
+
let r = At(() => {
|
|
178
|
+
if (kt.has(n)) return;
|
|
179
|
+
jt(n, "down");
|
|
180
|
+
let e = At(() => {
|
|
181
|
+
jt(n, "up");
|
|
185
182
|
});
|
|
186
|
-
n.addEventListener("keyup", e, t), n.addEventListener("blur", () =>
|
|
183
|
+
n.addEventListener("keyup", e, t), n.addEventListener("blur", () => jt(n, "cancel"), t);
|
|
187
184
|
});
|
|
188
185
|
n.addEventListener("keydown", r, t), n.addEventListener("blur", () => n.removeEventListener("keydown", r), t);
|
|
189
186
|
};
|
|
190
187
|
//#endregion
|
|
191
188
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/gestures/press/index.mjs
|
|
192
|
-
function
|
|
193
|
-
return
|
|
189
|
+
function Nt(e) {
|
|
190
|
+
return wt(e) && !vt();
|
|
194
191
|
}
|
|
195
|
-
var
|
|
196
|
-
function
|
|
197
|
-
let [r, i, a] =
|
|
192
|
+
var Pt = /* @__PURE__ */ new WeakSet();
|
|
193
|
+
function Ft(e, t, n = {}) {
|
|
194
|
+
let [r, i, a] = bt(e, n), o = (e) => {
|
|
198
195
|
let r = e.currentTarget;
|
|
199
|
-
if (!
|
|
200
|
-
|
|
196
|
+
if (!Nt(e) || Pt.has(e)) return;
|
|
197
|
+
kt.add(r), n.stopPropagation && Pt.add(e);
|
|
201
198
|
let a = t(r, e), o = (e, t) => {
|
|
202
|
-
window.removeEventListener("pointerup", s), window.removeEventListener("pointercancel", c),
|
|
199
|
+
window.removeEventListener("pointerup", s), window.removeEventListener("pointercancel", c), kt.has(r) && kt.delete(r), Nt(e) && typeof a == "function" && a(e, { success: t });
|
|
203
200
|
}, s = (e) => {
|
|
204
|
-
o(e, r === window || r === document || n.useGlobalTarget ||
|
|
201
|
+
o(e, r === window || r === document || n.useGlobalTarget || Ct(r, e.target));
|
|
205
202
|
}, c = (e) => {
|
|
206
203
|
o(e, !1);
|
|
207
204
|
};
|
|
208
205
|
window.addEventListener("pointerup", s, i), window.addEventListener("pointercancel", c, i);
|
|
209
206
|
};
|
|
210
207
|
return r.forEach((e) => {
|
|
211
|
-
(n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i),
|
|
208
|
+
(n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), _t(e) && (e.addEventListener("focus", (e) => Mt(e, i)), !Et(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
|
|
212
209
|
}), a;
|
|
213
210
|
}
|
|
214
211
|
//#endregion
|
|
215
212
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/resize/handle-element.mjs
|
|
216
|
-
var
|
|
217
|
-
function
|
|
218
|
-
|
|
213
|
+
var It = /* @__PURE__ */ new WeakMap(), Lt, Rt = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : ze(r) && "getBBox" in r ? r.getBBox()[t] : r[n], zt = /* @__PURE__ */ Rt("inline", "width", "offsetWidth"), Bt = /* @__PURE__ */ Rt("block", "height", "offsetHeight");
|
|
214
|
+
function Vt({ target: e, borderBoxSize: t }) {
|
|
215
|
+
It.get(e)?.forEach((n) => {
|
|
219
216
|
n(e, {
|
|
220
217
|
get width() {
|
|
221
|
-
return
|
|
218
|
+
return zt(e, t);
|
|
222
219
|
},
|
|
223
220
|
get height() {
|
|
224
|
-
return
|
|
221
|
+
return Bt(e, t);
|
|
225
222
|
}
|
|
226
223
|
});
|
|
227
224
|
});
|
|
228
225
|
}
|
|
229
|
-
function
|
|
230
|
-
e.forEach(
|
|
226
|
+
function Ht(e) {
|
|
227
|
+
e.forEach(Vt);
|
|
231
228
|
}
|
|
232
|
-
function
|
|
233
|
-
typeof ResizeObserver > "u" || (
|
|
229
|
+
function Ut() {
|
|
230
|
+
typeof ResizeObserver > "u" || (Lt = new ResizeObserver(Ht));
|
|
234
231
|
}
|
|
235
|
-
function
|
|
236
|
-
|
|
232
|
+
function Wt(e, t) {
|
|
233
|
+
Lt || Ut();
|
|
237
234
|
let n = te(e);
|
|
238
235
|
return n.forEach((e) => {
|
|
239
|
-
let n =
|
|
240
|
-
n || (n = /* @__PURE__ */ new Set(),
|
|
236
|
+
let n = It.get(e);
|
|
237
|
+
n || (n = /* @__PURE__ */ new Set(), It.set(e, n)), n.add(t), Lt?.observe(e);
|
|
241
238
|
}), () => {
|
|
242
239
|
n.forEach((e) => {
|
|
243
|
-
let n =
|
|
244
|
-
n?.delete(t), n?.size ||
|
|
240
|
+
let n = It.get(e);
|
|
241
|
+
n?.delete(t), n?.size || Lt?.unobserve(e);
|
|
245
242
|
});
|
|
246
243
|
};
|
|
247
244
|
}
|
|
248
245
|
//#endregion
|
|
249
246
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/resize/handle-window.mjs
|
|
250
|
-
var
|
|
251
|
-
function
|
|
247
|
+
var Gt = /* @__PURE__ */ new Set(), V;
|
|
248
|
+
function Kt() {
|
|
252
249
|
V = () => {
|
|
253
250
|
let e = {
|
|
254
251
|
get width() {
|
|
@@ -258,18 +255,18 @@ function qt() {
|
|
|
258
255
|
return window.innerHeight;
|
|
259
256
|
}
|
|
260
257
|
};
|
|
261
|
-
|
|
258
|
+
Gt.forEach((t) => t(e));
|
|
262
259
|
}, window.addEventListener("resize", V);
|
|
263
260
|
}
|
|
264
|
-
function
|
|
265
|
-
return
|
|
266
|
-
|
|
261
|
+
function qt(e) {
|
|
262
|
+
return Gt.add(e), V || Kt(), () => {
|
|
263
|
+
Gt.delete(e), !Gt.size && typeof V == "function" && (window.removeEventListener("resize", V), V = void 0);
|
|
267
264
|
};
|
|
268
265
|
}
|
|
269
266
|
//#endregion
|
|
270
267
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/resize/index.mjs
|
|
271
|
-
function
|
|
272
|
-
return typeof e == "function" ?
|
|
268
|
+
function Jt(e, t) {
|
|
269
|
+
return typeof e == "function" ? qt(e) : Wt(e, t);
|
|
273
270
|
}
|
|
274
271
|
//#endregion
|
|
275
272
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/Feature.mjs
|
|
@@ -278,15 +275,15 @@ var H = class {
|
|
|
278
275
|
this.isMounted = !1, this.node = e;
|
|
279
276
|
}
|
|
280
277
|
update() {}
|
|
281
|
-
},
|
|
282
|
-
function
|
|
278
|
+
}, Yt = p.length;
|
|
279
|
+
function Xt(e) {
|
|
283
280
|
if (!e) return;
|
|
284
281
|
if (!e.isControllingVariants) {
|
|
285
|
-
let t = e.parent &&
|
|
282
|
+
let t = e.parent && Xt(e.parent) || {};
|
|
286
283
|
return e.props.initial !== void 0 && (t.initial = e.props.initial), t;
|
|
287
284
|
}
|
|
288
285
|
let t = {};
|
|
289
|
-
for (let n = 0; n <
|
|
286
|
+
for (let n = 0; n < Yt; n++) {
|
|
290
287
|
let r = p[n], i = e.props[r];
|
|
291
288
|
(h(i) || i === !1) && (t[r] = i);
|
|
292
289
|
}
|
|
@@ -294,7 +291,7 @@ function Zt(e) {
|
|
|
294
291
|
}
|
|
295
292
|
//#endregion
|
|
296
293
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs
|
|
297
|
-
function
|
|
294
|
+
function Zt(e, t) {
|
|
298
295
|
if (!Array.isArray(t)) return !1;
|
|
299
296
|
let n = t.length;
|
|
300
297
|
if (n !== e.length) return !1;
|
|
@@ -303,12 +300,12 @@ function Qt(e, t) {
|
|
|
303
300
|
}
|
|
304
301
|
//#endregion
|
|
305
302
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/utils/animation-state.mjs
|
|
306
|
-
var
|
|
307
|
-
function
|
|
308
|
-
return (t) => Promise.all(t.map(({ animation: t, options: n }) =>
|
|
303
|
+
var Qt = [...ge].reverse(), $t = ge.length;
|
|
304
|
+
function en(e) {
|
|
305
|
+
return (t) => Promise.all(t.map(({ animation: t, options: n }) => gt(e, t, n)));
|
|
309
306
|
}
|
|
310
|
-
function
|
|
311
|
-
let t =
|
|
307
|
+
function tn(e) {
|
|
308
|
+
let t = en(e), n = rn(), r = !0, i = !1, a = (t) => (n, r) => {
|
|
312
309
|
let i = u(e, r, t === "exit" ? e.presenceContext?.custom : void 0);
|
|
313
310
|
if (i) {
|
|
314
311
|
let { transition: e, transitionEnd: t, ...r } = i;
|
|
@@ -324,9 +321,9 @@ function nn(e) {
|
|
|
324
321
|
t = n(e);
|
|
325
322
|
}
|
|
326
323
|
function s(o) {
|
|
327
|
-
let { props: s } = e, c =
|
|
328
|
-
for (let t = 0; t <
|
|
329
|
-
let m =
|
|
324
|
+
let { props: s } = e, c = Xt(e.parent) || {}, l = [], d = /* @__PURE__ */ new Set(), f = {}, p = Infinity;
|
|
325
|
+
for (let t = 0; t < $t; t++) {
|
|
326
|
+
let m = Qt[t], g = n[m], v = s[m] === void 0 ? c[m] : s[m], y = h(v), b = m === o ? g.isActive : null;
|
|
330
327
|
b === !1 && (p = t);
|
|
331
328
|
let x = v === c[m] && v !== s[m] && y;
|
|
332
329
|
if (x && (r || i) && e.manuallyAnimateOnMount && (x = !1), g.protectedKeys = { ...f }, !g.isActive && b === null || !v && !g.prevProp || _(v) || typeof v == "boolean") continue;
|
|
@@ -337,7 +334,7 @@ function nn(e) {
|
|
|
337
334
|
});
|
|
338
335
|
continue;
|
|
339
336
|
}
|
|
340
|
-
let S =
|
|
337
|
+
let S = nn(g.prevProp, v), C = S || m === o && g.isActive && !x && y || t > p && y, ee = !1, te = Array.isArray(v) ? v : [v], w = te.reduce(a(m), {});
|
|
341
338
|
b === !1 && (w = {});
|
|
342
339
|
let { prevResolvedValues: ne = {} } = g, re = {
|
|
343
340
|
...ne,
|
|
@@ -351,7 +348,7 @@ function nn(e) {
|
|
|
351
348
|
let t = w[e], n = ne[e];
|
|
352
349
|
if (f.hasOwnProperty(e)) continue;
|
|
353
350
|
let r = !1;
|
|
354
|
-
r = Ee(t) && Ee(n) ? !
|
|
351
|
+
r = Ee(t) && Ee(n) ? !Zt(t, n) || S : t !== n, r ? t == null ? d.add(e) : ie(e) : t !== void 0 && d.has(e) ? ie(e) : g.protectedKeys[e] = !0;
|
|
355
352
|
}
|
|
356
353
|
g.prevProp = v, g.prevResolvedValues = w, g.isActive && (f = {
|
|
357
354
|
...f,
|
|
@@ -364,7 +361,7 @@ function nn(e) {
|
|
|
364
361
|
let { parent: r } = e, i = u(r, t);
|
|
365
362
|
if (r.enteringChildren && i) {
|
|
366
363
|
let { delayChildren: t } = i.transition || {};
|
|
367
|
-
n.delay =
|
|
364
|
+
n.delay = pt(r.enteringChildren, e, t);
|
|
368
365
|
}
|
|
369
366
|
}
|
|
370
367
|
return {
|
|
@@ -400,12 +397,12 @@ function nn(e) {
|
|
|
400
397
|
setAnimateFunction: o,
|
|
401
398
|
getState: () => n,
|
|
402
399
|
reset: () => {
|
|
403
|
-
n =
|
|
400
|
+
n = rn(), i = !0;
|
|
404
401
|
}
|
|
405
402
|
};
|
|
406
403
|
}
|
|
407
|
-
function
|
|
408
|
-
return typeof t == "string" ? t !== e : Array.isArray(t) ? !
|
|
404
|
+
function nn(e, t) {
|
|
405
|
+
return typeof t == "string" ? t !== e : Array.isArray(t) ? !Zt(t, e) : !1;
|
|
409
406
|
}
|
|
410
407
|
function U(e = !1) {
|
|
411
408
|
return {
|
|
@@ -415,7 +412,7 @@ function U(e = !1) {
|
|
|
415
412
|
prevResolvedValues: {}
|
|
416
413
|
};
|
|
417
414
|
}
|
|
418
|
-
function
|
|
415
|
+
function rn() {
|
|
419
416
|
return {
|
|
420
417
|
animate: U(!0),
|
|
421
418
|
whileInView: U(),
|
|
@@ -428,92 +425,92 @@ function an() {
|
|
|
428
425
|
}
|
|
429
426
|
//#endregion
|
|
430
427
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/geometry/copy.mjs
|
|
431
|
-
function
|
|
428
|
+
function an(e, t) {
|
|
432
429
|
e.min = t.min, e.max = t.max;
|
|
433
430
|
}
|
|
434
431
|
function W(e, t) {
|
|
435
|
-
|
|
432
|
+
an(e.x, t.x), an(e.y, t.y);
|
|
436
433
|
}
|
|
437
|
-
function
|
|
434
|
+
function on(e, t) {
|
|
438
435
|
e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
|
|
439
436
|
}
|
|
440
437
|
//#endregion
|
|
441
438
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs
|
|
442
|
-
var
|
|
439
|
+
var sn = .9999, cn = 1.0001, ln = -.01, un = .01;
|
|
443
440
|
function G(e) {
|
|
444
441
|
return e.max - e.min;
|
|
445
442
|
}
|
|
446
|
-
function
|
|
443
|
+
function dn(e, t, n) {
|
|
447
444
|
return Math.abs(e - t) <= n;
|
|
448
445
|
}
|
|
449
|
-
function
|
|
450
|
-
e.origin = r, e.originPoint = j(t.min, t.max, e.origin), e.scale = G(n) / G(t), e.translate = j(n.min, n.max, e.origin) - e.originPoint, (e.scale >=
|
|
446
|
+
function fn(e, t, n, r = .5) {
|
|
447
|
+
e.origin = r, e.originPoint = j(t.min, t.max, e.origin), e.scale = G(n) / G(t), e.translate = j(n.min, n.max, e.origin) - e.originPoint, (e.scale >= sn && e.scale <= cn || isNaN(e.scale)) && (e.scale = 1), (e.translate >= ln && e.translate <= un || isNaN(e.translate)) && (e.translate = 0);
|
|
451
448
|
}
|
|
452
449
|
function K(e, t, n, r) {
|
|
453
|
-
|
|
450
|
+
fn(e.x, t.x, n.x, r ? r.originX : void 0), fn(e.y, t.y, n.y, r ? r.originY : void 0);
|
|
454
451
|
}
|
|
455
|
-
function
|
|
452
|
+
function pn(e, t, n, r = 0) {
|
|
456
453
|
e.min = (r ? j(n.min, n.max, r) : n.min) + t.min, e.max = e.min + G(t);
|
|
457
454
|
}
|
|
458
|
-
function
|
|
459
|
-
|
|
455
|
+
function mn(e, t, n, r) {
|
|
456
|
+
pn(e.x, t.x, n.x, r?.x), pn(e.y, t.y, n.y, r?.y);
|
|
460
457
|
}
|
|
461
|
-
function
|
|
458
|
+
function hn(e, t, n, r = 0) {
|
|
462
459
|
let i = r ? j(n.min, n.max, r) : n.min;
|
|
463
460
|
e.min = t.min - i, e.max = e.min + G(t);
|
|
464
461
|
}
|
|
465
|
-
function
|
|
466
|
-
|
|
462
|
+
function gn(e, t, n, r) {
|
|
463
|
+
hn(e.x, t.x, n.x, r?.x), hn(e.y, t.y, n.y, r?.y);
|
|
467
464
|
}
|
|
468
465
|
//#endregion
|
|
469
466
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs
|
|
470
|
-
function
|
|
467
|
+
function _n(e, t, n, r, i) {
|
|
471
468
|
return e -= t, e = pe(e, 1 / n, r), i !== void 0 && (e = pe(e, 1 / i, r)), e;
|
|
472
469
|
}
|
|
473
|
-
function
|
|
470
|
+
function vn(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
|
|
474
471
|
if (se.test(t) && (t = parseFloat(t), t = j(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
|
|
475
472
|
let s = j(a.min, a.max, r);
|
|
476
|
-
e === a && (s -= t), e.min =
|
|
473
|
+
e === a && (s -= t), e.min = _n(e.min, t, n, s, i), e.max = _n(e.max, t, n, s, i);
|
|
477
474
|
}
|
|
478
|
-
function
|
|
479
|
-
|
|
475
|
+
function yn(e, t, [n, r, i], a, o) {
|
|
476
|
+
vn(e, t[n], t[r], t[i], t.scale, a, o);
|
|
480
477
|
}
|
|
481
|
-
var
|
|
478
|
+
var bn = [
|
|
482
479
|
"x",
|
|
483
480
|
"scaleX",
|
|
484
481
|
"originX"
|
|
485
|
-
],
|
|
482
|
+
], xn = [
|
|
486
483
|
"y",
|
|
487
484
|
"scaleY",
|
|
488
485
|
"originY"
|
|
489
486
|
];
|
|
490
|
-
function
|
|
491
|
-
|
|
487
|
+
function Sn(e, t, n, r) {
|
|
488
|
+
yn(e.x, t, bn, n ? n.x : void 0, r ? r.x : void 0), yn(e.y, t, xn, n ? n.y : void 0, r ? r.y : void 0);
|
|
492
489
|
}
|
|
493
490
|
//#endregion
|
|
494
491
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/geometry/utils.mjs
|
|
495
|
-
function
|
|
492
|
+
function Cn(e) {
|
|
496
493
|
return e.translate === 0 && e.scale === 1;
|
|
497
494
|
}
|
|
498
|
-
function
|
|
499
|
-
return
|
|
495
|
+
function wn(e) {
|
|
496
|
+
return Cn(e.x) && Cn(e.y);
|
|
500
497
|
}
|
|
501
|
-
function
|
|
498
|
+
function Tn(e, t) {
|
|
502
499
|
return e.min === t.min && e.max === t.max;
|
|
503
500
|
}
|
|
504
|
-
function
|
|
505
|
-
return
|
|
501
|
+
function En(e, t) {
|
|
502
|
+
return Tn(e.x, t.x) && Tn(e.y, t.y);
|
|
506
503
|
}
|
|
507
|
-
function
|
|
504
|
+
function Dn(e, t) {
|
|
508
505
|
return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
|
|
509
506
|
}
|
|
510
|
-
function
|
|
511
|
-
return
|
|
507
|
+
function On(e, t) {
|
|
508
|
+
return Dn(e.x, t.x) && Dn(e.y, t.y);
|
|
512
509
|
}
|
|
513
|
-
function
|
|
510
|
+
function kn(e) {
|
|
514
511
|
return G(e.x) / G(e.y);
|
|
515
512
|
}
|
|
516
|
-
function
|
|
513
|
+
function An(e, t) {
|
|
517
514
|
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
|
|
518
515
|
}
|
|
519
516
|
//#endregion
|
|
@@ -523,7 +520,7 @@ function q(e) {
|
|
|
523
520
|
}
|
|
524
521
|
//#endregion
|
|
525
522
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/styles/transform.mjs
|
|
526
|
-
function
|
|
523
|
+
function jn(e, t, n) {
|
|
527
524
|
let r = "", i = e.x.translate / t.x, a = e.y.translate / t.y, o = n?.z || 0;
|
|
528
525
|
if ((i || a || o) && (r = `translate3d(${i}px, ${a}px, ${o}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
|
|
529
526
|
let { transformPerspective: e, rotate: t, pathRotation: i, rotateX: a, rotateY: o, skewX: s, skewY: c } = n;
|
|
@@ -534,25 +531,25 @@ function Mn(e, t, n) {
|
|
|
534
531
|
}
|
|
535
532
|
//#endregion
|
|
536
533
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs
|
|
537
|
-
var
|
|
534
|
+
var Mn = [
|
|
538
535
|
"borderTopLeftRadius",
|
|
539
536
|
"borderTopRightRadius",
|
|
540
537
|
"borderBottomLeftRadius",
|
|
541
538
|
"borderBottomRightRadius"
|
|
542
|
-
],
|
|
543
|
-
function
|
|
544
|
-
i ? (e.opacity = j(0, n.opacity ?? 1,
|
|
545
|
-
for (let i = 0; i <
|
|
546
|
-
let a =
|
|
547
|
-
o === void 0 && s === void 0 || (o ||= 0, s ||= 0, o === 0 || s === 0 ||
|
|
539
|
+
], Nn = Mn.length, Pn = (e) => typeof e == "string" ? parseFloat(e) : e, Fn = (e) => typeof e == "number" || xe.test(e);
|
|
540
|
+
function In(e, t, n, r, i, a) {
|
|
541
|
+
i ? (e.opacity = j(0, n.opacity ?? 1, Rn(r)), e.opacityExit = j(t.opacity ?? 1, 0, zn(r))) : a && (e.opacity = j(t.opacity ?? 1, n.opacity ?? 1, r));
|
|
542
|
+
for (let i = 0; i < Nn; i++) {
|
|
543
|
+
let a = Mn[i], o = Ln(t, a), s = Ln(n, a);
|
|
544
|
+
o === void 0 && s === void 0 || (o ||= 0, s ||= 0, o === 0 || s === 0 || Fn(o) === Fn(s) ? (e[a] = Math.max(j(Pn(o), Pn(s), r), 0), (se.test(s) || se.test(o)) && (e[a] += "%")) : e[a] = s);
|
|
548
545
|
}
|
|
549
546
|
(t.rotate || n.rotate) && (e.rotate = j(t.rotate || 0, n.rotate || 0, r));
|
|
550
547
|
}
|
|
551
|
-
function
|
|
548
|
+
function Ln(e, t) {
|
|
552
549
|
return e[t] === void 0 ? e.borderRadius : e[t];
|
|
553
550
|
}
|
|
554
|
-
var
|
|
555
|
-
function
|
|
551
|
+
var Rn = /* @__PURE__ */ Bn(0, .5, Re), zn = /* @__PURE__ */ Bn(.5, .95, i);
|
|
552
|
+
function Bn(e, t, n) {
|
|
556
553
|
return (r) => r < e ? 0 : r > t ? 1 : n(C(e, t, r));
|
|
557
554
|
}
|
|
558
555
|
//#endregion
|
|
@@ -562,7 +559,7 @@ function J(e, t, n, r = { passive: !0 }) {
|
|
|
562
559
|
}
|
|
563
560
|
//#endregion
|
|
564
561
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs
|
|
565
|
-
var
|
|
562
|
+
var Vn = (e, t) => e.depth - t.depth, Hn = class {
|
|
566
563
|
constructor() {
|
|
567
564
|
this.children = [], this.isDirty = !1;
|
|
568
565
|
}
|
|
@@ -573,12 +570,12 @@ var Hn = (e, t) => e.depth - t.depth, Un = class {
|
|
|
573
570
|
v(this.children, e), this.isDirty = !0;
|
|
574
571
|
}
|
|
575
572
|
forEach(e) {
|
|
576
|
-
this.isDirty && this.children.sort(
|
|
573
|
+
this.isDirty && this.children.sort(Vn), this.isDirty = !1, this.children.forEach(e);
|
|
577
574
|
}
|
|
578
575
|
};
|
|
579
576
|
//#endregion
|
|
580
577
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/utils/delay.mjs
|
|
581
|
-
function
|
|
578
|
+
function Un(e, t) {
|
|
582
579
|
let n = le.now(), r = ({ timestamp: i }) => {
|
|
583
580
|
let a = i - n;
|
|
584
581
|
a >= t && (D(r), e(a - t));
|
|
@@ -587,12 +584,12 @@ function Wn(e, t) {
|
|
|
587
584
|
}
|
|
588
585
|
//#endregion
|
|
589
586
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
|
|
590
|
-
function
|
|
587
|
+
function Wn(e) {
|
|
591
588
|
return d(e) ? e.get() : e;
|
|
592
589
|
}
|
|
593
590
|
//#endregion
|
|
594
591
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/shared/stack.mjs
|
|
595
|
-
var
|
|
592
|
+
var Gn = class {
|
|
596
593
|
constructor() {
|
|
597
594
|
this.members = [];
|
|
598
595
|
}
|
|
@@ -638,24 +635,24 @@ var Kn = class {
|
|
|
638
635
|
removeLeadSnapshot() {
|
|
639
636
|
this.lead?.snapshot && (this.lead.snapshot = void 0);
|
|
640
637
|
}
|
|
641
|
-
},
|
|
638
|
+
}, Kn = {
|
|
642
639
|
hasAnimatedSinceResize: !0,
|
|
643
640
|
hasEverUpdated: !1
|
|
644
641
|
}, Y = {
|
|
645
642
|
nodes: 0,
|
|
646
643
|
calculatedTargetDeltas: 0,
|
|
647
644
|
calculatedProjections: 0
|
|
648
|
-
},
|
|
645
|
+
}, qn = [
|
|
649
646
|
"",
|
|
650
647
|
"X",
|
|
651
648
|
"Y",
|
|
652
649
|
"Z"
|
|
653
|
-
],
|
|
654
|
-
function
|
|
650
|
+
], Jn = 1e3, Yn = 0;
|
|
651
|
+
function Xn(e, t, n, r) {
|
|
655
652
|
let { latestValues: i } = t;
|
|
656
653
|
i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
|
|
657
654
|
}
|
|
658
|
-
function
|
|
655
|
+
function Zn(e) {
|
|
659
656
|
if (e.hasCheckedOptimisedAppear = !0, e.root === e) return;
|
|
660
657
|
let { visualElement: t } = e.options;
|
|
661
658
|
if (!t) return;
|
|
@@ -665,21 +662,21 @@ function Qn(e) {
|
|
|
665
662
|
window.MotionCancelOptimisedAnimation(n, "transform", A, !(t || r));
|
|
666
663
|
}
|
|
667
664
|
let { parent: r } = e;
|
|
668
|
-
r && !r.hasCheckedOptimisedAppear &&
|
|
665
|
+
r && !r.hasCheckedOptimisedAppear && Zn(r);
|
|
669
666
|
}
|
|
670
|
-
function
|
|
667
|
+
function Qn({ attachResizeListener: e, defaultParent: t, measureScroll: r, checkIsScrollRoot: i, resetTransform: a }) {
|
|
671
668
|
return class {
|
|
672
669
|
constructor(e = {}, n = t?.()) {
|
|
673
|
-
this.id =
|
|
670
|
+
this.id = Yn++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ 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 = {
|
|
674
671
|
x: 1,
|
|
675
672
|
y: 1
|
|
676
673
|
}, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.layoutVersion = 0, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
|
|
677
674
|
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
|
|
678
675
|
}, this.updateProjection = () => {
|
|
679
|
-
this.projectionUpdateScheduled = !1, O.value && (Y.nodes = Y.calculatedTargetDeltas = Y.calculatedProjections = 0), this.nodes.forEach(
|
|
676
|
+
this.projectionUpdateScheduled = !1, O.value && (Y.nodes = Y.calculatedTargetDeltas = Y.calculatedProjections = 0), this.nodes.forEach(tr), this.nodes.forEach(ur), this.nodes.forEach(dr), this.nodes.forEach(nr), O.addProjectionMetrics && O.addProjectionMetrics(Y);
|
|
680
677
|
}, this.resolvedRelativeTargetAt = 0, this.linkedParentVersion = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = e, this.root = n ? n.root || n : this, this.path = n ? [...n.path, n] : [], this.parent = n, this.depth = n ? n.depth + 1 : 0;
|
|
681
678
|
for (let e = 0; e < this.path.length; e++) this.path[e].shouldResetTransform = !0;
|
|
682
|
-
this.root === this && (this.nodes = new
|
|
679
|
+
this.root === this && (this.nodes = new Hn());
|
|
683
680
|
}
|
|
684
681
|
addEventListener(e, t) {
|
|
685
682
|
return this.eventHandlers.has(e) || this.eventHandlers.set(e, new Pe()), this.eventHandlers.get(e).add(t);
|
|
@@ -701,7 +698,7 @@ function $n({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
701
698
|
r = window.innerWidth;
|
|
702
699
|
}), e(t, () => {
|
|
703
700
|
let e = window.innerWidth;
|
|
704
|
-
e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n =
|
|
701
|
+
e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n = Un(i, 250), Kn.hasAnimatedSinceResize && (Kn.hasAnimatedSinceResize = !1, this.nodes.forEach(lr)));
|
|
705
702
|
});
|
|
706
703
|
}
|
|
707
704
|
n && this.root.registerSharedNode(n, this), this.options.animate !== !1 && i && (n || r) && this.addEventListener("didUpdate", ({ delta: e, hasLayoutChanged: t, hasRelativeLayoutChanged: n, layout: r }) => {
|
|
@@ -709,7 +706,7 @@ function $n({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
709
706
|
this.target = void 0, this.relativeTarget = void 0;
|
|
710
707
|
return;
|
|
711
708
|
}
|
|
712
|
-
let a = this.options.transition || i.getDefaultTransition() ||
|
|
709
|
+
let a = this.options.transition || i.getDefaultTransition() || vr, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = i.getProps(), c = !this.targetLayout || !On(this.targetLayout, r), l = !t && n;
|
|
713
710
|
if (this.options.layoutRoot || this.resumeFrom || l || t && (c || !this.currentAnimation)) {
|
|
714
711
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
|
|
715
712
|
let t = {
|
|
@@ -718,7 +715,7 @@ function $n({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
718
715
|
onComplete: s
|
|
719
716
|
};
|
|
720
717
|
(i.shouldReduceMotion || this.options.layoutRoot) && (t.delay = 0, t.type = !1), this.startAnimation(t), this.setAnimationOrigin(e, l, t.path);
|
|
721
|
-
} else t ||
|
|
718
|
+
} else t || lr(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
|
|
722
719
|
this.targetLayout = r;
|
|
723
720
|
});
|
|
724
721
|
}
|
|
@@ -740,7 +737,7 @@ function $n({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
740
737
|
return this.isAnimationBlocked || this.parent && this.parent.isTreeAnimationBlocked() || !1;
|
|
741
738
|
}
|
|
742
739
|
startUpdate() {
|
|
743
|
-
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(
|
|
740
|
+
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(fr), this.animationId++);
|
|
744
741
|
}
|
|
745
742
|
getTransformTemplate() {
|
|
746
743
|
let { visualElement: e } = this.options;
|
|
@@ -751,7 +748,7 @@ function $n({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
751
748
|
this.options.onExitComplete && this.options.onExitComplete();
|
|
752
749
|
return;
|
|
753
750
|
}
|
|
754
|
-
if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear &&
|
|
751
|
+
if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && Zn(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
|
|
755
752
|
this.isLayoutDirty = !0;
|
|
756
753
|
for (let e = 0; e < this.path.length; e++) {
|
|
757
754
|
let t = this.path[e];
|
|
@@ -765,14 +762,14 @@ function $n({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
765
762
|
update() {
|
|
766
763
|
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
|
|
767
764
|
let e = this.updateBlockedByResize;
|
|
768
|
-
this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(
|
|
765
|
+
this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(ar), this.nodes.forEach(ir);
|
|
769
766
|
return;
|
|
770
767
|
}
|
|
771
768
|
if (this.animationId <= this.animationCommitId) {
|
|
772
|
-
this.nodes.forEach(
|
|
769
|
+
this.nodes.forEach(or);
|
|
773
770
|
return;
|
|
774
771
|
}
|
|
775
|
-
this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(
|
|
772
|
+
this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(sr), this.nodes.forEach(cr), this.nodes.forEach($n), this.nodes.forEach(er)) : this.nodes.forEach(or), this.clearAllSnapshots();
|
|
776
773
|
let e = le.now();
|
|
777
774
|
k.delta = _e(0, 1e3 / 60, e - k.timestamp), k.timestamp = e, k.isProcessing = !0, me.update.process(k), me.preRender.process(k), me.render.process(k), k.isProcessing = !1;
|
|
778
775
|
}
|
|
@@ -780,7 +777,7 @@ function $n({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
780
777
|
this.updateScheduled || (this.updateScheduled = !0, n.read(this.scheduleUpdate));
|
|
781
778
|
}
|
|
782
779
|
clearAllSnapshots() {
|
|
783
|
-
this.nodes.forEach(
|
|
780
|
+
this.nodes.forEach(rr), this.sharedNodes.forEach(pr);
|
|
784
781
|
}
|
|
785
782
|
scheduleUpdateProjection() {
|
|
786
783
|
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, A.preRender(this.updateProjection, !1, !0));
|
|
@@ -816,12 +813,12 @@ function $n({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
816
813
|
}
|
|
817
814
|
resetTransform() {
|
|
818
815
|
if (!a) return;
|
|
819
|
-
let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, t = this.projectionDelta && !
|
|
816
|
+
let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, t = this.projectionDelta && !wn(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, i = r !== this.prevTransformTemplateValue;
|
|
820
817
|
e && this.instance && (t || E(this.latestValues) || i) && (a(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
|
|
821
818
|
}
|
|
822
819
|
measure(e = !0) {
|
|
823
820
|
let t = this.measurePageBox(), n = this.removeElementScroll(t);
|
|
824
|
-
return e && (n = this.removeTransform(n)),
|
|
821
|
+
return e && (n = this.removeTransform(n)), Sr(n), {
|
|
825
822
|
animationId: this.root.animationId,
|
|
826
823
|
measuredBox: t,
|
|
827
824
|
layoutBox: n,
|
|
@@ -833,7 +830,7 @@ function $n({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
833
830
|
let { visualElement: e } = this.options;
|
|
834
831
|
if (!e) return l();
|
|
835
832
|
let t = e.measureViewportBox();
|
|
836
|
-
if (!(this.scroll?.wasRoot || this.path.some(
|
|
833
|
+
if (!(this.scroll?.wasRoot || this.path.some(wr))) {
|
|
837
834
|
let { scroll: e } = this.root;
|
|
838
835
|
e && (T(t.x, e.offset.x), T(t.y, e.offset.y));
|
|
839
836
|
}
|
|
@@ -864,9 +861,9 @@ function $n({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
864
861
|
let n = this.path[e];
|
|
865
862
|
if (!E(n.latestValues)) continue;
|
|
866
863
|
let r;
|
|
867
|
-
n.instance && (Le(n.latestValues) && n.updateSnapshot(), r = l(), W(r, n.measurePageBox())),
|
|
864
|
+
n.instance && (Le(n.latestValues) && n.updateSnapshot(), r = l(), W(r, n.measurePageBox())), Sn(t, n.latestValues, n.snapshot?.layoutBox, r);
|
|
868
865
|
}
|
|
869
|
-
return E(this.latestValues) &&
|
|
866
|
+
return E(this.latestValues) && Sn(t, this.latestValues), t;
|
|
870
867
|
}
|
|
871
868
|
setTargetDelta(e) {
|
|
872
869
|
this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
|
|
@@ -893,7 +890,7 @@ function $n({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
893
890
|
if (!this.layout || !(r || i)) return;
|
|
894
891
|
this.resolvedRelativeTargetAt = k.timestamp;
|
|
895
892
|
let a = this.getClosestProjectingParent();
|
|
896
|
-
a && this.linkedParentVersion !== a.layoutVersion && !a.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = l(), this.targetWithTransforms = l()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(),
|
|
893
|
+
a && this.linkedParentVersion !== a.layoutVersion && !a.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = l(), this.targetWithTransforms = l()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), mn(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : W(this.target, this.layout.layoutBox), Te(this.target, this.targetDelta)) : W(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && !!a.resumingFrom == !!this.resumingFrom && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), O.value && Y.calculatedTargetDeltas++);
|
|
897
894
|
}
|
|
898
895
|
getClosestProjectingParent() {
|
|
899
896
|
if (!(!this.parent || Le(this.parent.latestValues) || Me(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
|
|
@@ -902,7 +899,7 @@ function $n({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
902
899
|
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
|
|
903
900
|
}
|
|
904
901
|
createRelativeTarget(e, t, n) {
|
|
905
|
-
this.relativeParent = e, this.linkedParentVersion = e.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = l(), this.relativeTargetOrigin = l(),
|
|
902
|
+
this.relativeParent = e, this.linkedParentVersion = e.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = l(), this.relativeTargetOrigin = l(), gn(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), W(this.relativeTarget, this.relativeTargetOrigin);
|
|
906
903
|
}
|
|
907
904
|
removeRelativeTarget() {
|
|
908
905
|
this.relativeParent = this.relativeTarget = void 0;
|
|
@@ -920,7 +917,7 @@ function $n({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
920
917
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
921
918
|
return;
|
|
922
919
|
}
|
|
923
|
-
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (
|
|
920
|
+
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (on(this.prevProjectionDelta.x, this.projectionDelta.x), on(this.prevProjectionDelta.y, this.projectionDelta.y)), K(this.projectionDelta, this.layoutCorrected, s, this.latestValues), (this.treeScale.x !== a || this.treeScale.y !== o || !An(this.projectionDelta.x, this.prevProjectionDelta.x) || !An(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), O.value && Y.calculatedProjections++;
|
|
924
921
|
}
|
|
925
922
|
hide() {
|
|
926
923
|
this.isVisible = !1;
|
|
@@ -941,17 +938,17 @@ function $n({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
941
938
|
setAnimationOrigin(e, t = !1, n) {
|
|
942
939
|
let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = f();
|
|
943
940
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;
|
|
944
|
-
let s = l(), c = (r ? r.source : void 0) !== (this.layout ? this.layout.source : void 0), u = this.getStack(), d = !u || u.members.length <= 1, p = !!(c && !d && this.options.crossfade === !0 && !this.path.some(
|
|
941
|
+
let s = l(), c = (r ? r.source : void 0) !== (this.layout ? this.layout.source : void 0), u = this.getStack(), d = !u || u.members.length <= 1, p = !!(c && !d && this.options.crossfade === !0 && !this.path.some(_r));
|
|
945
942
|
this.animationProgress = 0;
|
|
946
943
|
let m, h = n?.interpolateProjection(e);
|
|
947
944
|
this.mixTargetDelta = (t) => {
|
|
948
945
|
let n = t / 1e3, r = h?.(n);
|
|
949
|
-
r ? (o.x.translate = r.x, o.x.scale = j(e.x.scale, 1, n), o.x.origin = e.x.origin, o.x.originPoint = e.x.originPoint, o.y.translate = r.y, o.y.scale = j(e.y.scale, 1, n), o.y.origin = e.y.origin, o.y.originPoint = e.y.originPoint) : (
|
|
946
|
+
r ? (o.x.translate = r.x, o.x.scale = j(e.x.scale, 1, n), o.x.origin = e.x.origin, o.x.originPoint = e.x.originPoint, o.y.translate = r.y, o.y.scale = j(e.y.scale, 1, n), o.y.origin = e.y.origin, o.y.originPoint = e.y.originPoint) : (mr(o.x, e.x, n), mr(o.y, e.y, n)), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (gn(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), gr(this.relativeTarget, this.relativeTargetOrigin, s, n), m && En(this.relativeTarget, m) && (this.isProjectionDirty = !1), m ||= l(), W(m, this.relativeTarget)), c && (this.animationValues = a, In(a, i, this.latestValues, n, p, d)), r && r.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
|
|
950
947
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
951
948
|
}
|
|
952
949
|
startAnimation(e) {
|
|
953
950
|
this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (D(this.pendingAnimation), void 0), this.pendingAnimation = A.update(() => {
|
|
954
|
-
|
|
951
|
+
Kn.hasAnimatedSinceResize = !0, je.layout++, this.motionValue ||= ue(0), this.motionValue.jump(0, !1), this.currentAnimation = Ce(this.motionValue, [0, 1e3], {
|
|
955
952
|
...e,
|
|
956
953
|
velocity: 0,
|
|
957
954
|
isSync: !0,
|
|
@@ -973,12 +970,12 @@ function $n({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
973
970
|
e && e.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
|
|
974
971
|
}
|
|
975
972
|
finishAnimation() {
|
|
976
|
-
this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(
|
|
973
|
+
this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Jn), this.currentAnimation.stop()), this.completeAnimation();
|
|
977
974
|
}
|
|
978
975
|
applyTransformsToTarget() {
|
|
979
976
|
let e = this.getLead(), { targetWithTransforms: t, target: n, layout: r, latestValues: i } = e;
|
|
980
977
|
if (!(!t || !n || !r)) {
|
|
981
|
-
if (this !== e && this.layout && r &&
|
|
978
|
+
if (this !== e && this.layout && r && Cr(this.options.animationType, this.layout.layoutBox, r.layoutBox)) {
|
|
982
979
|
n = this.target || l();
|
|
983
980
|
let t = G(this.layout.layoutBox.x);
|
|
984
981
|
n.x.min = e.target.x.min, n.x.max = n.x.min + t;
|
|
@@ -989,7 +986,7 @@ function $n({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
989
986
|
}
|
|
990
987
|
}
|
|
991
988
|
registerSharedNode(e, t) {
|
|
992
|
-
this.sharedNodes.has(e) || this.sharedNodes.set(e, new
|
|
989
|
+
this.sharedNodes.has(e) || this.sharedNodes.set(e, new Gn()), this.sharedNodes.get(e).add(t);
|
|
993
990
|
let n = t.options.initialPromotionConfig;
|
|
994
991
|
t.promote({
|
|
995
992
|
transition: n ? n.transition : void 0,
|
|
@@ -1026,8 +1023,8 @@ function $n({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
1026
1023
|
let t = !1, { latestValues: n } = e;
|
|
1027
1024
|
if ((n.z || n.rotate || n.rotateX || n.rotateY || n.rotateZ || n.skewX || n.skewY) && (t = !0), !t) return;
|
|
1028
1025
|
let r = {};
|
|
1029
|
-
n.z &&
|
|
1030
|
-
for (let t = 0; t <
|
|
1026
|
+
n.z && Xn("z", e, r, this.animationValues);
|
|
1027
|
+
for (let t = 0; t < qn.length; t++) Xn(`rotate${qn[t]}`, e, r, this.animationValues), Xn(`skew${qn[t]}`, e, r, this.animationValues);
|
|
1031
1028
|
e.render();
|
|
1032
1029
|
for (let t in r) e.setStaticValue(t, r[t]), this.animationValues && (this.animationValues[t] = r[t]);
|
|
1033
1030
|
e.scheduleRender();
|
|
@@ -1040,18 +1037,18 @@ function $n({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
1040
1037
|
}
|
|
1041
1038
|
let n = this.getTransformTemplate();
|
|
1042
1039
|
if (this.needsReset) {
|
|
1043
|
-
this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents =
|
|
1040
|
+
this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = Wn(t?.pointerEvents) || "", e.transform = n ? n(this.latestValues, "") : "none";
|
|
1044
1041
|
return;
|
|
1045
1042
|
}
|
|
1046
1043
|
let r = this.getLead();
|
|
1047
1044
|
if (!this.projectionDelta || !this.layout || !r.target) {
|
|
1048
|
-
this.options.layoutId && (e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents =
|
|
1045
|
+
this.options.layoutId && (e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = Wn(t?.pointerEvents) || ""), this.hasProjected && !E(this.latestValues) && (e.transform = n ? n({}, "") : "none", this.hasProjected = !1);
|
|
1049
1046
|
return;
|
|
1050
1047
|
}
|
|
1051
1048
|
e.visibility = "";
|
|
1052
1049
|
let i = r.animationValues || r.latestValues;
|
|
1053
1050
|
this.applyTransformsToTarget();
|
|
1054
|
-
let a =
|
|
1051
|
+
let a = jn(this.projectionDeltaWithTransform, this.treeScale, i);
|
|
1055
1052
|
n && (a = n(i, a)), e.transform = a;
|
|
1056
1053
|
let { x: o, y: s } = this.projectionDelta;
|
|
1057
1054
|
e.transformOrigin = `${o.origin * 100}% ${s.origin * 100}% 0`, r.animationValues ? e.opacity = r === this ? i.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : i.opacityExit : e.opacity = r === this ? i.opacity === void 0 ? "" : i.opacity : i.opacityExit === void 0 ? 0 : i.opacityExit;
|
|
@@ -1063,20 +1060,20 @@ function $n({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
1063
1060
|
for (let n = 0; n < t; n++) e[o[n]] = c;
|
|
1064
1061
|
} else s ? this.options.visualElement.renderState.vars[t] = c : e[t] = c;
|
|
1065
1062
|
}
|
|
1066
|
-
this.options.layoutId && (e.pointerEvents = r === this ?
|
|
1063
|
+
this.options.layoutId && (e.pointerEvents = r === this ? Wn(t?.pointerEvents) || "" : "none");
|
|
1067
1064
|
}
|
|
1068
1065
|
clearSnapshot() {
|
|
1069
1066
|
this.resumeFrom = this.snapshot = void 0;
|
|
1070
1067
|
}
|
|
1071
1068
|
resetTree() {
|
|
1072
|
-
this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(
|
|
1069
|
+
this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(ir), this.root.sharedNodes.clear();
|
|
1073
1070
|
}
|
|
1074
1071
|
};
|
|
1075
1072
|
}
|
|
1076
|
-
function
|
|
1073
|
+
function $n(e) {
|
|
1077
1074
|
e.updateLayout();
|
|
1078
1075
|
}
|
|
1079
|
-
function
|
|
1076
|
+
function er(e) {
|
|
1080
1077
|
let t = e.resumeFrom?.snapshot || e.snapshot;
|
|
1081
1078
|
if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
|
|
1082
1079
|
let { layoutBox: n, measuredBox: r } = e.layout, { animationType: i } = e.options, a = t.source !== e.layout.source;
|
|
@@ -1086,8 +1083,8 @@ function tr(e) {
|
|
|
1086
1083
|
});
|
|
1087
1084
|
else if (i === "x" || i === "y") {
|
|
1088
1085
|
let e = i === "x" ? "y" : "x";
|
|
1089
|
-
|
|
1090
|
-
} else
|
|
1086
|
+
an(a ? t.measuredBox[e] : t.layoutBox[e], n[e]);
|
|
1087
|
+
} else Cr(i, t.layoutBox, n) && q((r) => {
|
|
1091
1088
|
let i = a ? t.measuredBox[r] : t.layoutBox[r], o = G(n[r]);
|
|
1092
1089
|
i.max = i.min + o, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[r].max = e.relativeTarget[r].min + o);
|
|
1093
1090
|
});
|
|
@@ -1095,16 +1092,16 @@ function tr(e) {
|
|
|
1095
1092
|
K(o, n, t.layoutBox);
|
|
1096
1093
|
let s = f();
|
|
1097
1094
|
a ? K(s, e.applyTransform(r, !0), t.measuredBox) : K(s, n, t.layoutBox);
|
|
1098
|
-
let c = !
|
|
1095
|
+
let c = !wn(o), u = !1;
|
|
1099
1096
|
if (!e.resumeFrom) {
|
|
1100
1097
|
let r = e.getClosestProjectingParent();
|
|
1101
1098
|
if (r && !r.resumeFrom) {
|
|
1102
1099
|
let { snapshot: i, layout: a } = r;
|
|
1103
1100
|
if (i && a) {
|
|
1104
1101
|
let o = e.options.layoutAnchor || void 0, s = l();
|
|
1105
|
-
|
|
1102
|
+
gn(s, t.layoutBox, i.layoutBox, o);
|
|
1106
1103
|
let c = l();
|
|
1107
|
-
|
|
1104
|
+
gn(c, n, a.layoutBox, o), On(s, c) || (u = !0), r.options.layoutRoot && (e.relativeTarget = c, e.relativeTargetOrigin = s, e.relativeParent = r);
|
|
1108
1105
|
}
|
|
1109
1106
|
}
|
|
1110
1107
|
}
|
|
@@ -1122,59 +1119,59 @@ function tr(e) {
|
|
|
1122
1119
|
}
|
|
1123
1120
|
e.options.transition = void 0;
|
|
1124
1121
|
}
|
|
1125
|
-
function
|
|
1122
|
+
function tr(e) {
|
|
1126
1123
|
O.value && Y.nodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
|
|
1127
1124
|
}
|
|
1128
|
-
function
|
|
1125
|
+
function nr(e) {
|
|
1129
1126
|
e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
|
|
1130
1127
|
}
|
|
1131
|
-
function
|
|
1128
|
+
function rr(e) {
|
|
1132
1129
|
e.clearSnapshot();
|
|
1133
1130
|
}
|
|
1134
|
-
function
|
|
1131
|
+
function ir(e) {
|
|
1135
1132
|
e.clearMeasurements();
|
|
1136
1133
|
}
|
|
1137
|
-
function
|
|
1134
|
+
function ar(e) {
|
|
1138
1135
|
e.isLayoutDirty = !0, e.updateLayout();
|
|
1139
1136
|
}
|
|
1140
|
-
function
|
|
1137
|
+
function or(e) {
|
|
1141
1138
|
e.isLayoutDirty = !1;
|
|
1142
1139
|
}
|
|
1143
|
-
function
|
|
1140
|
+
function sr(e) {
|
|
1144
1141
|
e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.layout, e.isLayoutDirty = !0);
|
|
1145
1142
|
}
|
|
1146
|
-
function
|
|
1143
|
+
function cr(e) {
|
|
1147
1144
|
let { visualElement: t } = e.options;
|
|
1148
1145
|
t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
|
|
1149
1146
|
}
|
|
1150
|
-
function
|
|
1147
|
+
function lr(e) {
|
|
1151
1148
|
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
|
|
1152
1149
|
}
|
|
1153
|
-
function
|
|
1150
|
+
function ur(e) {
|
|
1154
1151
|
e.resolveTargetDelta();
|
|
1155
1152
|
}
|
|
1156
|
-
function
|
|
1153
|
+
function dr(e) {
|
|
1157
1154
|
e.calcProjection();
|
|
1158
1155
|
}
|
|
1159
|
-
function
|
|
1156
|
+
function fr(e) {
|
|
1160
1157
|
e.resetSkewAndRotation();
|
|
1161
1158
|
}
|
|
1162
|
-
function
|
|
1159
|
+
function pr(e) {
|
|
1163
1160
|
e.removeLeadSnapshot();
|
|
1164
1161
|
}
|
|
1165
|
-
function
|
|
1162
|
+
function mr(e, t, n) {
|
|
1166
1163
|
e.translate = j(t.translate, 0, n), e.scale = j(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
|
|
1167
1164
|
}
|
|
1168
|
-
function
|
|
1165
|
+
function hr(e, t, n, r) {
|
|
1169
1166
|
e.min = j(t.min, n.min, r), e.max = j(t.max, n.max, r);
|
|
1170
1167
|
}
|
|
1171
|
-
function
|
|
1172
|
-
|
|
1168
|
+
function gr(e, t, n, r) {
|
|
1169
|
+
hr(e.x, t.x, n.x, r), hr(e.y, t.y, n.y, r);
|
|
1173
1170
|
}
|
|
1174
|
-
function
|
|
1171
|
+
function _r(e) {
|
|
1175
1172
|
return e.animationValues && e.animationValues.opacityExit !== void 0;
|
|
1176
1173
|
}
|
|
1177
|
-
var
|
|
1174
|
+
var vr = {
|
|
1178
1175
|
duration: .45,
|
|
1179
1176
|
ease: [
|
|
1180
1177
|
.4,
|
|
@@ -1182,39 +1179,39 @@ var yr = {
|
|
|
1182
1179
|
.1,
|
|
1183
1180
|
1
|
|
1184
1181
|
]
|
|
1185
|
-
},
|
|
1186
|
-
function
|
|
1187
|
-
e.min =
|
|
1182
|
+
}, yr = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), br = yr("applewebkit/") && !yr("chrome/") ? Math.round : i;
|
|
1183
|
+
function xr(e) {
|
|
1184
|
+
e.min = br(e.min), e.max = br(e.max);
|
|
1188
1185
|
}
|
|
1189
|
-
function
|
|
1190
|
-
|
|
1186
|
+
function Sr(e) {
|
|
1187
|
+
xr(e.x), xr(e.y);
|
|
1191
1188
|
}
|
|
1192
|
-
function
|
|
1193
|
-
return e === "position" || e === "preserve-aspect" && !
|
|
1189
|
+
function Cr(e, t, n) {
|
|
1190
|
+
return e === "position" || e === "preserve-aspect" && !dn(kn(t), kn(n), .2);
|
|
1194
1191
|
}
|
|
1195
|
-
function
|
|
1192
|
+
function wr(e) {
|
|
1196
1193
|
return e !== e.root && e.scroll?.wasRoot;
|
|
1197
1194
|
}
|
|
1198
1195
|
//#endregion
|
|
1199
1196
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs
|
|
1200
|
-
var
|
|
1197
|
+
var Tr = Qn({
|
|
1201
1198
|
attachResizeListener: (e, t) => J(e, "resize", t),
|
|
1202
1199
|
measureScroll: () => ({
|
|
1203
1200
|
x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
|
|
1204
1201
|
y: document.documentElement.scrollTop || document.body?.scrollTop || 0
|
|
1205
1202
|
}),
|
|
1206
1203
|
checkIsScrollRoot: () => !0
|
|
1207
|
-
}),
|
|
1204
|
+
}), Er = { current: void 0 }, Dr = Qn({
|
|
1208
1205
|
measureScroll: (e) => ({
|
|
1209
1206
|
x: e.scrollLeft,
|
|
1210
1207
|
y: e.scrollTop
|
|
1211
1208
|
}),
|
|
1212
1209
|
defaultParent: () => {
|
|
1213
|
-
if (!
|
|
1214
|
-
let e = new
|
|
1215
|
-
e.mount(window), e.setOptions({ layoutScroll: !0 }),
|
|
1210
|
+
if (!Er.current) {
|
|
1211
|
+
let e = new Tr({});
|
|
1212
|
+
e.mount(window), e.setOptions({ layoutScroll: !0 }), Er.current = e;
|
|
1216
1213
|
}
|
|
1217
|
-
return
|
|
1214
|
+
return Er.current;
|
|
1218
1215
|
},
|
|
1219
1216
|
resetTransform: (e, t) => {
|
|
1220
1217
|
e.style.transform = t === void 0 ? "none" : t;
|
|
@@ -1223,34 +1220,34 @@ var Er = $n({
|
|
|
1223
1220
|
});
|
|
1224
1221
|
//#endregion
|
|
1225
1222
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs
|
|
1226
|
-
function
|
|
1223
|
+
function Or(e, t) {
|
|
1227
1224
|
if (typeof e == "function") return e(t);
|
|
1228
1225
|
e != null && (e.current = t);
|
|
1229
1226
|
}
|
|
1230
|
-
function
|
|
1227
|
+
function kr(...e) {
|
|
1231
1228
|
return (t) => {
|
|
1232
1229
|
let n = !1, r = e.map((e) => {
|
|
1233
|
-
let r =
|
|
1230
|
+
let r = Or(e, t);
|
|
1234
1231
|
return !n && typeof r == "function" && (n = !0), r;
|
|
1235
1232
|
});
|
|
1236
1233
|
if (n) return () => {
|
|
1237
1234
|
for (let t = 0; t < r.length; t++) {
|
|
1238
1235
|
let n = r[t];
|
|
1239
|
-
typeof n == "function" ? n() :
|
|
1236
|
+
typeof n == "function" ? n() : Or(e[t], null);
|
|
1240
1237
|
}
|
|
1241
1238
|
};
|
|
1242
1239
|
};
|
|
1243
1240
|
}
|
|
1244
|
-
function
|
|
1245
|
-
return Be.useCallback(
|
|
1241
|
+
function Ar(...e) {
|
|
1242
|
+
return Be.useCallback(kr(...e), e);
|
|
1246
1243
|
}
|
|
1247
1244
|
//#endregion
|
|
1248
1245
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
|
|
1249
|
-
var
|
|
1246
|
+
var jr = class extends Be.Component {
|
|
1250
1247
|
getSnapshotBeforeUpdate(e) {
|
|
1251
1248
|
let t = this.props.childRef.current;
|
|
1252
|
-
if (
|
|
1253
|
-
let e = t.offsetParent, n =
|
|
1249
|
+
if (_t(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
|
|
1250
|
+
let e = t.offsetParent, n = _t(e) && e.offsetWidth || 0, r = _t(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
|
|
1254
1251
|
a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction;
|
|
1255
1252
|
}
|
|
1256
1253
|
return null;
|
|
@@ -1260,7 +1257,7 @@ var Mr = class extends Be.Component {
|
|
|
1260
1257
|
return this.props.children;
|
|
1261
1258
|
}
|
|
1262
1259
|
};
|
|
1263
|
-
function
|
|
1260
|
+
function Mr({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a }) {
|
|
1264
1261
|
let o = Ye(), s = F(null), c = F({
|
|
1265
1262
|
width: 0,
|
|
1266
1263
|
height: 0,
|
|
@@ -1269,7 +1266,7 @@ function Nr({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a
|
|
|
1269
1266
|
right: 0,
|
|
1270
1267
|
bottom: 0,
|
|
1271
1268
|
direction: "ltr"
|
|
1272
|
-
}), { nonce: l } = N(ke), u =
|
|
1269
|
+
}), { nonce: l } = N(ke), u = Ar(s, e.props?.ref ?? e?.ref);
|
|
1273
1270
|
return Xe(() => {
|
|
1274
1271
|
let { width: e, height: u, top: d, left: f, right: p, bottom: m, direction: h } = c.current;
|
|
1275
1272
|
if (t || a === !1 || !s.current || !e || !u) return;
|
|
@@ -1289,7 +1286,7 @@ function Nr({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a
|
|
|
1289
1286
|
`), () => {
|
|
1290
1287
|
s.current?.removeAttribute("data-motion-pop-id"), b.contains(y) && b.removeChild(y);
|
|
1291
1288
|
};
|
|
1292
|
-
}, [t]), I(
|
|
1289
|
+
}, [t]), I(jr, {
|
|
1293
1290
|
isPresent: t,
|
|
1294
1291
|
childRef: s,
|
|
1295
1292
|
sizeRef: c,
|
|
@@ -1299,8 +1296,8 @@ function Nr({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a
|
|
|
1299
1296
|
}
|
|
1300
1297
|
//#endregion
|
|
1301
1298
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
|
|
1302
|
-
var
|
|
1303
|
-
let d = o(
|
|
1299
|
+
var Nr = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: s, anchorX: c, anchorY: l, root: u }) => {
|
|
1300
|
+
let d = o(Pr), f = Ye(), p = !0, m = P(() => (p = !1, {
|
|
1304
1301
|
id: f,
|
|
1305
1302
|
initial: t,
|
|
1306
1303
|
isPresent: n,
|
|
@@ -1320,7 +1317,7 @@ var Pr = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i,
|
|
|
1320
1317
|
d.forEach((e, t) => d.set(t, !1));
|
|
1321
1318
|
}, [n]), Be.useEffect(() => {
|
|
1322
1319
|
!n && !d.size && r && r();
|
|
1323
|
-
}, [n]), e = I(
|
|
1320
|
+
}, [n]), e = I(Mr, {
|
|
1324
1321
|
pop: s === "popLayout",
|
|
1325
1322
|
isPresent: n,
|
|
1326
1323
|
anchorX: c,
|
|
@@ -1332,12 +1329,12 @@ var Pr = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i,
|
|
|
1332
1329
|
children: e
|
|
1333
1330
|
});
|
|
1334
1331
|
};
|
|
1335
|
-
function
|
|
1332
|
+
function Pr() {
|
|
1336
1333
|
return /* @__PURE__ */ new Map();
|
|
1337
1334
|
}
|
|
1338
1335
|
//#endregion
|
|
1339
1336
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
|
|
1340
|
-
function
|
|
1337
|
+
function Fr(e = !0) {
|
|
1341
1338
|
let t = N(z);
|
|
1342
1339
|
if (t === null) return [!0, null];
|
|
1343
1340
|
let { isPresent: n, onExitComplete: r, register: i } = t, a = Ye();
|
|
@@ -1354,7 +1351,7 @@ function Ir(e = !0) {
|
|
|
1354
1351
|
//#endregion
|
|
1355
1352
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
|
|
1356
1353
|
var X = (e) => e.key || "";
|
|
1357
|
-
function
|
|
1354
|
+
function Ir(e) {
|
|
1358
1355
|
let t = [];
|
|
1359
1356
|
return Ve.forEach(e, (e) => {
|
|
1360
1357
|
Ke(e) && t.push(e);
|
|
@@ -1362,9 +1359,9 @@ function Lr(e) {
|
|
|
1362
1359
|
}
|
|
1363
1360
|
//#endregion
|
|
1364
1361
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
|
|
1365
|
-
var
|
|
1366
|
-
let [d, f] =
|
|
1367
|
-
|
|
1362
|
+
var Lr = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: s = !1, anchorX: c = "left", anchorY: l = "top", root: u }) => {
|
|
1363
|
+
let [d, f] = Fr(s), p = P(() => Ir(e), [e]), m = s && !d ? [] : p.map(X), h = F(!0), g = F(p), _ = o(() => /* @__PURE__ */ new Map()), v = F(/* @__PURE__ */ new Set()), [y, b] = Qe(p), [x, S] = Qe(p);
|
|
1364
|
+
ft(() => {
|
|
1368
1365
|
h.current = !1, g.current = p;
|
|
1369
1366
|
for (let e = 0; e < x.length; e++) {
|
|
1370
1367
|
let t = X(x[e]);
|
|
@@ -1382,13 +1379,13 @@ var Rr = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
|
|
|
1382
1379
|
let n = x[t], r = X(n);
|
|
1383
1380
|
m.includes(r) || (e.splice(t, 0, n), C.push(n));
|
|
1384
1381
|
}
|
|
1385
|
-
return a === "wait" && C.length && (e = C), S(
|
|
1382
|
+
return a === "wait" && C.length && (e = C), S(Ir(e)), b(p), null;
|
|
1386
1383
|
}
|
|
1387
1384
|
process.env.NODE_ENV !== "production" && a === "wait" && x.length > 1 && console.warn("You're attempting to animate multiple children within AnimatePresence, but its mode is set to \"wait\". This will lead to odd visual behaviour.");
|
|
1388
1385
|
let { forceRender: ee } = N(R);
|
|
1389
1386
|
return I($e, { children: x.map((e) => {
|
|
1390
1387
|
let o = X(e), y = s && !d ? !1 : p === x || m.includes(o);
|
|
1391
|
-
return I(
|
|
1388
|
+
return I(Nr, {
|
|
1392
1389
|
isPresent: y,
|
|
1393
1390
|
initial: !h.current || n ? void 0 : !1,
|
|
1394
1391
|
custom: t,
|
|
@@ -1409,7 +1406,7 @@ var Rr = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
|
|
|
1409
1406
|
children: e
|
|
1410
1407
|
}, o);
|
|
1411
1408
|
}) });
|
|
1412
|
-
},
|
|
1409
|
+
}, Rr = M({ strict: !1 }), zr = {
|
|
1413
1410
|
animation: [
|
|
1414
1411
|
"animate",
|
|
1415
1412
|
"variants",
|
|
@@ -1446,20 +1443,20 @@ var Rr = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
|
|
|
1446
1443
|
"onViewportLeave"
|
|
1447
1444
|
],
|
|
1448
1445
|
layout: ["layout", "layoutId"]
|
|
1449
|
-
},
|
|
1450
|
-
function
|
|
1451
|
-
if (
|
|
1446
|
+
}, Br = !1;
|
|
1447
|
+
function Vr() {
|
|
1448
|
+
if (Br) return;
|
|
1452
1449
|
let e = {};
|
|
1453
|
-
for (let t in
|
|
1454
|
-
S(e),
|
|
1450
|
+
for (let t in zr) e[t] = { isEnabled: (e) => zr[t].some((t) => !!e[t]) };
|
|
1451
|
+
S(e), Br = !0;
|
|
1455
1452
|
}
|
|
1456
|
-
function
|
|
1457
|
-
return
|
|
1453
|
+
function Hr() {
|
|
1454
|
+
return Vr(), Ne();
|
|
1458
1455
|
}
|
|
1459
1456
|
//#endregion
|
|
1460
1457
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/features/load-features.mjs
|
|
1461
|
-
function
|
|
1462
|
-
let t =
|
|
1458
|
+
function Ur(e) {
|
|
1459
|
+
let t = Hr();
|
|
1463
1460
|
for (let n in e) t[n] = {
|
|
1464
1461
|
...t[n],
|
|
1465
1462
|
...e[n]
|
|
@@ -1468,32 +1465,32 @@ function Wr(e) {
|
|
|
1468
1465
|
}
|
|
1469
1466
|
//#endregion
|
|
1470
1467
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
|
|
1471
|
-
var
|
|
1472
|
-
function
|
|
1473
|
-
return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") ||
|
|
1468
|
+
var Wr = new Set(/* @__PURE__ */ "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.propagate.ignoreStrict.viewport".split("."));
|
|
1469
|
+
function Gr(e) {
|
|
1470
|
+
return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || Wr.has(e);
|
|
1474
1471
|
}
|
|
1475
1472
|
//#endregion
|
|
1476
1473
|
//#region __vite-optional-peer-dep:@emotion/is-prop-valid:framer-motion
|
|
1477
|
-
var
|
|
1478
|
-
throw
|
|
1479
|
-
})),
|
|
1480
|
-
function
|
|
1481
|
-
typeof e == "function" && (
|
|
1474
|
+
var Kr = /* @__PURE__ */ ct({ default: () => qr }), qr, Jr = ot((() => {
|
|
1475
|
+
throw qr = {}, Error("Could not resolve \"@emotion/is-prop-valid\" imported by \"framer-motion\". Is it installed?");
|
|
1476
|
+
})), Yr = (e) => !Gr(e);
|
|
1477
|
+
function Xr(e) {
|
|
1478
|
+
typeof e == "function" && (Yr = (t) => t.startsWith("on") ? !Gr(t) : e(t));
|
|
1482
1479
|
}
|
|
1483
1480
|
try {
|
|
1484
|
-
|
|
1481
|
+
Xr((Jr(), dt(Kr)).default);
|
|
1485
1482
|
} catch {}
|
|
1486
|
-
function
|
|
1483
|
+
function Zr(e, t, n) {
|
|
1487
1484
|
let r = {};
|
|
1488
|
-
for (let i in e) i === "values" && typeof e.values == "object" || d(e[i]) || (
|
|
1485
|
+
for (let i in e) i === "values" && typeof e.values == "object" || d(e[i]) || (Yr(i) || n === !0 && Gr(i) || !t && !Gr(i) || e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]);
|
|
1489
1486
|
return r;
|
|
1490
1487
|
}
|
|
1491
1488
|
//#endregion
|
|
1492
1489
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
|
|
1493
|
-
var
|
|
1490
|
+
var Qr = /* @__PURE__ */ M({});
|
|
1494
1491
|
//#endregion
|
|
1495
1492
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
|
|
1496
|
-
function
|
|
1493
|
+
function $r(e, t) {
|
|
1497
1494
|
if (ve(e)) {
|
|
1498
1495
|
let { initial: t, animate: n } = e;
|
|
1499
1496
|
return {
|
|
@@ -1505,19 +1502,19 @@ function ei(e, t) {
|
|
|
1505
1502
|
}
|
|
1506
1503
|
//#endregion
|
|
1507
1504
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
|
|
1508
|
-
function
|
|
1509
|
-
let { initial: t, animate: n } =
|
|
1505
|
+
function ei(e) {
|
|
1506
|
+
let { initial: t, animate: n } = $r(e, N(Qr));
|
|
1510
1507
|
return P(() => ({
|
|
1511
1508
|
initial: t,
|
|
1512
1509
|
animate: n
|
|
1513
|
-
}), [
|
|
1510
|
+
}), [ti(t), ti(n)]);
|
|
1514
1511
|
}
|
|
1515
|
-
function
|
|
1512
|
+
function ti(e) {
|
|
1516
1513
|
return Array.isArray(e) ? e.join(" ") : e;
|
|
1517
1514
|
}
|
|
1518
1515
|
//#endregion
|
|
1519
1516
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
|
|
1520
|
-
var
|
|
1517
|
+
var ni = () => ({
|
|
1521
1518
|
style: {},
|
|
1522
1519
|
transform: {},
|
|
1523
1520
|
transformOrigin: {},
|
|
@@ -1525,34 +1522,34 @@ var ri = () => ({
|
|
|
1525
1522
|
});
|
|
1526
1523
|
//#endregion
|
|
1527
1524
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/html/use-props.mjs
|
|
1528
|
-
function
|
|
1525
|
+
function ri(e, t, n) {
|
|
1529
1526
|
for (let r in t) !d(t[r]) && !be(r, n) && (e[r] = t[r]);
|
|
1530
1527
|
}
|
|
1531
|
-
function
|
|
1528
|
+
function ii({ transformTemplate: e }, t) {
|
|
1532
1529
|
return P(() => {
|
|
1533
|
-
let n =
|
|
1530
|
+
let n = ni();
|
|
1534
1531
|
return ce(n, t, e), Object.assign({}, n.vars, n.style);
|
|
1535
1532
|
}, [t]);
|
|
1536
1533
|
}
|
|
1537
|
-
function
|
|
1534
|
+
function ai(e, t) {
|
|
1538
1535
|
let n = e.style || {}, r = {};
|
|
1539
|
-
return
|
|
1536
|
+
return ri(r, n, e), Object.assign(r, ii(e, t)), r;
|
|
1540
1537
|
}
|
|
1541
|
-
function
|
|
1542
|
-
let n = {}, r =
|
|
1538
|
+
function oi(e, t) {
|
|
1539
|
+
let n = {}, r = ai(e, t);
|
|
1543
1540
|
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;
|
|
1544
1541
|
}
|
|
1545
1542
|
//#endregion
|
|
1546
1543
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs
|
|
1547
|
-
var
|
|
1548
|
-
...
|
|
1544
|
+
var si = () => ({
|
|
1545
|
+
...ni(),
|
|
1549
1546
|
attrs: {}
|
|
1550
1547
|
});
|
|
1551
1548
|
//#endregion
|
|
1552
1549
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/svg/use-props.mjs
|
|
1553
|
-
function
|
|
1550
|
+
function ci(e, t, n, r) {
|
|
1554
1551
|
let i = P(() => {
|
|
1555
|
-
let n =
|
|
1552
|
+
let n = si();
|
|
1556
1553
|
return we(n, t, ae(r), e.transformTemplate, e.style), {
|
|
1557
1554
|
...n.attrs,
|
|
1558
1555
|
style: { ...n.style }
|
|
@@ -1560,7 +1557,7 @@ function li(e, t, n, r) {
|
|
|
1560
1557
|
}, [t]);
|
|
1561
1558
|
if (e.style) {
|
|
1562
1559
|
let t = {};
|
|
1563
|
-
|
|
1560
|
+
ri(t, e.style, e), i.style = {
|
|
1564
1561
|
...t,
|
|
1565
1562
|
...i.style
|
|
1566
1563
|
};
|
|
@@ -1569,7 +1566,7 @@ function li(e, t, n, r) {
|
|
|
1569
1566
|
}
|
|
1570
1567
|
//#endregion
|
|
1571
1568
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
|
|
1572
|
-
var
|
|
1569
|
+
var li = [
|
|
1573
1570
|
"animate",
|
|
1574
1571
|
"circle",
|
|
1575
1572
|
"defs",
|
|
@@ -1598,13 +1595,13 @@ var ui = [
|
|
|
1598
1595
|
];
|
|
1599
1596
|
//#endregion
|
|
1600
1597
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
|
|
1601
|
-
function
|
|
1602
|
-
return typeof e != "string" || e.includes("-") ? !1 : !!(
|
|
1598
|
+
function ui(e) {
|
|
1599
|
+
return typeof e != "string" || e.includes("-") ? !1 : !!(li.indexOf(e) > -1 || /[A-Z]/u.test(e));
|
|
1603
1600
|
}
|
|
1604
1601
|
//#endregion
|
|
1605
1602
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/dom/use-render.mjs
|
|
1606
|
-
function
|
|
1607
|
-
let s = (o ??
|
|
1603
|
+
function di(e, t, n, { latestValues: r }, i, a = !1, o) {
|
|
1604
|
+
let s = (o ?? ui(e) ? ci : oi)(t, r, i, e), c = Zr(t, typeof e == "string", a), l = e === Ue ? {} : {
|
|
1608
1605
|
...c,
|
|
1609
1606
|
...s,
|
|
1610
1607
|
ref: n
|
|
@@ -1616,15 +1613,15 @@ function fi(e, t, n, { latestValues: r }, i, a = !1, o) {
|
|
|
1616
1613
|
}
|
|
1617
1614
|
//#endregion
|
|
1618
1615
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
|
|
1619
|
-
function
|
|
1616
|
+
function fi({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
|
|
1620
1617
|
return {
|
|
1621
|
-
latestValues:
|
|
1618
|
+
latestValues: pi(n, r, i, e),
|
|
1622
1619
|
renderState: t()
|
|
1623
1620
|
};
|
|
1624
1621
|
}
|
|
1625
|
-
function
|
|
1622
|
+
function pi(t, n, r, i) {
|
|
1626
1623
|
let a = {}, o = i(t, {});
|
|
1627
|
-
for (let e in o) a[e] =
|
|
1624
|
+
for (let e in o) a[e] = Wn(o[e]);
|
|
1628
1625
|
let { initial: s, animate: c } = t, l = ve(t), u = e(t);
|
|
1629
1626
|
n && u && !l && t.inherit !== !1 && (s === void 0 && (s = n.initial), c === void 0 && (c = n.animate));
|
|
1630
1627
|
let d = r ? r.initial === !1 : !1;
|
|
@@ -1650,19 +1647,19 @@ function mi(t, n, r, i) {
|
|
|
1650
1647
|
}
|
|
1651
1648
|
return a;
|
|
1652
1649
|
}
|
|
1653
|
-
var
|
|
1654
|
-
let r = N(
|
|
1650
|
+
var mi = (e) => (t, n) => {
|
|
1651
|
+
let r = N(Qr), i = N(z), a = () => fi(e, t, r, i);
|
|
1655
1652
|
return n ? a() : o(a);
|
|
1656
|
-
},
|
|
1653
|
+
}, hi = /* @__PURE__ */ mi({
|
|
1657
1654
|
scrapeMotionValuesFromProps: oe,
|
|
1658
|
-
createRenderState:
|
|
1659
|
-
}),
|
|
1655
|
+
createRenderState: ni
|
|
1656
|
+
}), gi = /* @__PURE__ */ mi({
|
|
1660
1657
|
scrapeMotionValuesFromProps: he,
|
|
1661
|
-
createRenderState:
|
|
1662
|
-
}),
|
|
1658
|
+
createRenderState: si
|
|
1659
|
+
}), _i = Symbol.for("motionComponentSymbol");
|
|
1663
1660
|
//#endregion
|
|
1664
1661
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
|
|
1665
|
-
function
|
|
1662
|
+
function vi(e, t, n) {
|
|
1666
1663
|
let r = F(n);
|
|
1667
1664
|
Xe(() => {
|
|
1668
1665
|
r.current = n;
|
|
@@ -1680,7 +1677,7 @@ function yi(e, t, n) {
|
|
|
1680
1677
|
}
|
|
1681
1678
|
//#endregion
|
|
1682
1679
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
|
|
1683
|
-
var
|
|
1680
|
+
var yi = M({});
|
|
1684
1681
|
//#endregion
|
|
1685
1682
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/is-ref-object.mjs
|
|
1686
1683
|
function Z(e) {
|
|
@@ -1688,8 +1685,8 @@ function Z(e) {
|
|
|
1688
1685
|
}
|
|
1689
1686
|
//#endregion
|
|
1690
1687
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
|
|
1691
|
-
function
|
|
1692
|
-
let { visualElement: o } = N(
|
|
1688
|
+
function bi(e, t, n, r, i, a) {
|
|
1689
|
+
let { visualElement: o } = N(Qr), s = N(Rr), c = N(z), l = N(ke), u = l.reducedMotion, d = l.skipAnimations, f = F(null), p = F(!1);
|
|
1693
1690
|
r ||= s.renderer, !f.current && r && (f.current = r(e, {
|
|
1694
1691
|
visualState: t,
|
|
1695
1692
|
parent: o,
|
|
@@ -1700,14 +1697,14 @@ function xi(e, t, n, r, i, a) {
|
|
|
1700
1697
|
skipAnimations: d,
|
|
1701
1698
|
isSVG: a
|
|
1702
1699
|
}), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
|
|
1703
|
-
let m = f.current, h = N(
|
|
1704
|
-
m && !m.projection && i && (m.type === "html" || m.type === "svg") &&
|
|
1700
|
+
let m = f.current, h = N(yi);
|
|
1701
|
+
m && !m.projection && i && (m.type === "html" || m.type === "svg") && xi(f.current, n, i, h);
|
|
1705
1702
|
let g = F(!1);
|
|
1706
1703
|
Xe(() => {
|
|
1707
1704
|
m && g.current && m.update(n, c);
|
|
1708
1705
|
});
|
|
1709
1706
|
let _ = n[w], v = F(!!_ && typeof window < "u" && !window.MotionHandoffIsComplete?.(_) && window.MotionHasOptimisedAnimation?.(_));
|
|
1710
|
-
return
|
|
1707
|
+
return ft(() => {
|
|
1711
1708
|
p.current = !0, m && (g.current = !0, window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), v.current && m.animationState && m.animationState.animateChanges());
|
|
1712
1709
|
}), Je(() => {
|
|
1713
1710
|
m && (!v.current && m.animationState && m.animationState.animateChanges(), v.current &&= (queueMicrotask(() => {
|
|
@@ -1715,9 +1712,9 @@ function xi(e, t, n, r, i, a) {
|
|
|
1715
1712
|
}), !1), m.enteringChildren = void 0);
|
|
1716
1713
|
}), m;
|
|
1717
1714
|
}
|
|
1718
|
-
function
|
|
1715
|
+
function xi(e, t, n, r) {
|
|
1719
1716
|
let { layoutId: i, layout: a, drag: o, dragConstraints: s, layoutScroll: c, layoutRoot: l, layoutAnchor: u, layoutCrossfade: d } = t;
|
|
1720
|
-
e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 :
|
|
1717
|
+
e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : Si(e.parent)), e.projection.setOptions({
|
|
1721
1718
|
layoutId: i,
|
|
1722
1719
|
layout: a,
|
|
1723
1720
|
alwaysMeasureLayout: !!o || s && Z(s),
|
|
@@ -1730,50 +1727,50 @@ function Si(e, t, n, r) {
|
|
|
1730
1727
|
layoutAnchor: u
|
|
1731
1728
|
});
|
|
1732
1729
|
}
|
|
1733
|
-
function
|
|
1734
|
-
if (e) return e.options.allowProjection === !1 ?
|
|
1730
|
+
function Si(e) {
|
|
1731
|
+
if (e) return e.options.allowProjection === !1 ? Si(e.parent) : e.projection;
|
|
1735
1732
|
}
|
|
1736
1733
|
//#endregion
|
|
1737
1734
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/index.mjs
|
|
1738
|
-
function
|
|
1739
|
-
r &&
|
|
1740
|
-
let a = n ? n === "svg" :
|
|
1735
|
+
function Ci(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
|
|
1736
|
+
r && Ur(r);
|
|
1737
|
+
let a = n ? n === "svg" : ui(e), o = a ? gi : hi;
|
|
1741
1738
|
function s(n, s) {
|
|
1742
1739
|
let c, l = {
|
|
1743
1740
|
...N(ke),
|
|
1744
1741
|
...n,
|
|
1745
|
-
layoutId:
|
|
1746
|
-
}, { isStatic: u } = l, d =
|
|
1742
|
+
layoutId: wi(n)
|
|
1743
|
+
}, { isStatic: u } = l, d = ei(n), f = o(n, u);
|
|
1747
1744
|
if (!u && typeof window < "u") {
|
|
1748
|
-
|
|
1749
|
-
let t =
|
|
1750
|
-
c = t.MeasureLayout, d.visualElement =
|
|
1745
|
+
Ti(l, r);
|
|
1746
|
+
let t = Ei(l);
|
|
1747
|
+
c = t.MeasureLayout, d.visualElement = bi(e, f, l, i, t.ProjectionNode, a);
|
|
1751
1748
|
}
|
|
1752
|
-
return et(
|
|
1749
|
+
return et(Qr.Provider, {
|
|
1753
1750
|
value: d,
|
|
1754
1751
|
children: [c && d.visualElement ? I(c, {
|
|
1755
1752
|
visualElement: d.visualElement,
|
|
1756
1753
|
...l
|
|
1757
|
-
}) : null,
|
|
1754
|
+
}) : null, di(e, n, vi(f, d.visualElement, s), f, u, t, a)]
|
|
1758
1755
|
});
|
|
1759
1756
|
}
|
|
1760
1757
|
s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
|
|
1761
1758
|
let c = Ge(s);
|
|
1762
|
-
return c[
|
|
1759
|
+
return c[_i] = e, c;
|
|
1763
1760
|
}
|
|
1764
|
-
function
|
|
1761
|
+
function wi({ layoutId: e }) {
|
|
1765
1762
|
let t = N(R).id;
|
|
1766
1763
|
return t && e !== void 0 ? t + "-" + e : e;
|
|
1767
1764
|
}
|
|
1768
|
-
function
|
|
1769
|
-
let r = N(
|
|
1765
|
+
function Ti(e, n) {
|
|
1766
|
+
let r = N(Rr).strict;
|
|
1770
1767
|
if (process.env.NODE_ENV !== "production" && n && r) {
|
|
1771
1768
|
let n = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
1772
1769
|
e.ignoreStrict ? t(!1, n, "lazy-strict-mode") : ye(!1, n, "lazy-strict-mode");
|
|
1773
1770
|
}
|
|
1774
1771
|
}
|
|
1775
|
-
function
|
|
1776
|
-
let { drag: t, layout: n } =
|
|
1772
|
+
function Ei(e) {
|
|
1773
|
+
let { drag: t, layout: n } = Hr();
|
|
1777
1774
|
if (!t && !n) return {};
|
|
1778
1775
|
let r = {
|
|
1779
1776
|
...t,
|
|
@@ -1786,16 +1783,16 @@ function Di(e) {
|
|
|
1786
1783
|
}
|
|
1787
1784
|
//#endregion
|
|
1788
1785
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
|
|
1789
|
-
function
|
|
1790
|
-
if (typeof Proxy > "u") return
|
|
1791
|
-
let n = /* @__PURE__ */ new Map(), r = (n, r) =>
|
|
1792
|
-
return new Proxy((e, t) => (process.env.NODE_ENV !== "production" && Ie(!1, "motion() is deprecated. Use motion.create() instead."), r(e, t)), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a,
|
|
1786
|
+
function Di(e, t) {
|
|
1787
|
+
if (typeof Proxy > "u") return Ci;
|
|
1788
|
+
let n = /* @__PURE__ */ new Map(), r = (n, r) => Ci(n, r, e, t);
|
|
1789
|
+
return new Proxy((e, t) => (process.env.NODE_ENV !== "production" && Ie(!1, "motion() is deprecated. Use motion.create() instead."), r(e, t)), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Ci(a, void 0, e, t)), n.get(a)) });
|
|
1793
1790
|
}
|
|
1794
1791
|
//#endregion
|
|
1795
1792
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
|
|
1796
|
-
var
|
|
1793
|
+
var Oi = (e, t) => t.isSVG ?? ui(e) ? new De(t) : new Oe(t, { allowProjection: e !== Ue }), ki = class extends H {
|
|
1797
1794
|
constructor(e) {
|
|
1798
|
-
super(e), e.animationState ||=
|
|
1795
|
+
super(e), e.animationState ||= tn(e);
|
|
1799
1796
|
}
|
|
1800
1797
|
updateAnimationControlsSubscription() {
|
|
1801
1798
|
let { animate: e } = this.node.getProps();
|
|
@@ -1811,11 +1808,11 @@ var ki = (e, t) => t.isSVG ?? di(e) ? new De(t) : new Oe(t, { allowProjection: e
|
|
|
1811
1808
|
unmount() {
|
|
1812
1809
|
this.node.animationState.reset(), this.unmountControls?.();
|
|
1813
1810
|
}
|
|
1814
|
-
},
|
|
1815
|
-
animation: { Feature:
|
|
1811
|
+
}, Ai = 0, ji = {
|
|
1812
|
+
animation: { Feature: ki },
|
|
1816
1813
|
exit: { Feature: class extends H {
|
|
1817
1814
|
constructor() {
|
|
1818
|
-
super(...arguments), this.id =
|
|
1815
|
+
super(...arguments), this.id = Ai++, this.isExitComplete = !1;
|
|
1819
1816
|
}
|
|
1820
1817
|
update() {
|
|
1821
1818
|
if (!this.node.presenceContext) return;
|
|
@@ -1856,22 +1853,22 @@ function Q(e) {
|
|
|
1856
1853
|
y: e.pageY
|
|
1857
1854
|
} };
|
|
1858
1855
|
}
|
|
1859
|
-
var
|
|
1856
|
+
var Mi = (e) => (t) => wt(t) && e(t, Q(t));
|
|
1860
1857
|
//#endregion
|
|
1861
1858
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/events/add-pointer-event.mjs
|
|
1862
1859
|
function $(e, t, n, r) {
|
|
1863
|
-
return J(e, t,
|
|
1860
|
+
return J(e, t, Mi(n), r);
|
|
1864
1861
|
}
|
|
1865
1862
|
//#endregion
|
|
1866
1863
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/get-context-window.mjs
|
|
1867
|
-
var
|
|
1868
|
-
function
|
|
1869
|
-
let n =
|
|
1864
|
+
var Ni = ({ current: e }) => e ? e.ownerDocument.defaultView : null, Pi = (e, t) => Math.abs(e - t);
|
|
1865
|
+
function Fi(e, t) {
|
|
1866
|
+
let n = Pi(e.x, t.x), r = Pi(e.y, t.y);
|
|
1870
1867
|
return Math.sqrt(n ** 2 + r ** 2);
|
|
1871
1868
|
}
|
|
1872
1869
|
//#endregion
|
|
1873
1870
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs
|
|
1874
|
-
var
|
|
1871
|
+
var Ii = /* @__PURE__ */ new Set(["auto", "scroll"]), Li = class {
|
|
1875
1872
|
constructor(e, t, { transformPagePoint: n, contextWindow: r = window, dragSnapToOrigin: i = !1, distanceThreshold: o = 3, element: s } = {}) {
|
|
1876
1873
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.lastRawMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.removeScrollListeners = null, this.onElementScroll = (e) => {
|
|
1877
1874
|
this.handleScroll(e.target);
|
|
@@ -1879,8 +1876,8 @@ var Li = /* @__PURE__ */ new Set(["auto", "scroll"]), Ri = class {
|
|
|
1879
1876
|
this.handleScroll(window);
|
|
1880
1877
|
}, this.updatePoint = () => {
|
|
1881
1878
|
if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
|
|
1882
|
-
this.lastRawMoveEventInfo && (this.lastMoveEventInfo =
|
|
1883
|
-
let e =
|
|
1879
|
+
this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Ri(this.lastRawMoveEventInfo, this.transformPagePoint));
|
|
1880
|
+
let e = Bi(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = Fi(e.offset, {
|
|
1884
1881
|
x: 0,
|
|
1885
1882
|
y: 0
|
|
1886
1883
|
}) >= this.distanceThreshold;
|
|
@@ -1893,28 +1890,28 @@ var Li = /* @__PURE__ */ new Set(["auto", "scroll"]), Ri = class {
|
|
|
1893
1890
|
let { onStart: a, onMove: o } = this.handlers;
|
|
1894
1891
|
t || (a && a(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), o && o(this.lastMoveEvent, e);
|
|
1895
1892
|
}, this.handlePointerMove = (e, t) => {
|
|
1896
|
-
this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo =
|
|
1893
|
+
this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = Ri(t, this.transformPagePoint), A.update(this.updatePoint, !0);
|
|
1897
1894
|
}, this.handlePointerUp = (e, t) => {
|
|
1898
1895
|
this.end();
|
|
1899
1896
|
let { onEnd: n, onSessionEnd: r, resumeAnimation: i } = this.handlers;
|
|
1900
1897
|
if ((this.dragSnapToOrigin || !this.startEvent) && i && i(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
|
|
1901
|
-
let a =
|
|
1898
|
+
let a = Bi(e.type === "pointercancel" ? this.lastMoveEventInfo : Ri(t, this.transformPagePoint), this.history);
|
|
1902
1899
|
this.startEvent && n && n(e, a), r && r(e, a);
|
|
1903
|
-
}, !
|
|
1900
|
+
}, !wt(e)) return;
|
|
1904
1901
|
this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = o, this.contextWindow = r || window;
|
|
1905
|
-
let c =
|
|
1902
|
+
let c = Ri(Q(e), this.transformPagePoint), { point: l } = c, { timestamp: u } = k;
|
|
1906
1903
|
this.history = [{
|
|
1907
1904
|
...l,
|
|
1908
1905
|
timestamp: u
|
|
1909
1906
|
}];
|
|
1910
1907
|
let { onSessionStart: d } = t;
|
|
1911
|
-
d && d(e,
|
|
1908
|
+
d && d(e, Bi(c, this.history)), this.removeListeners = a($(this.contextWindow, "pointermove", this.handlePointerMove), $(this.contextWindow, "pointerup", this.handlePointerUp), $(this.contextWindow, "pointercancel", this.handlePointerUp)), s && this.startScrollTracking(s);
|
|
1912
1909
|
}
|
|
1913
1910
|
startScrollTracking(e) {
|
|
1914
1911
|
let t = e.parentElement;
|
|
1915
1912
|
for (; t;) {
|
|
1916
1913
|
let e = getComputedStyle(t);
|
|
1917
|
-
(
|
|
1914
|
+
(Ii.has(e.overflowX) || Ii.has(e.overflowY)) && this.scrollPositions.set(t, {
|
|
1918
1915
|
x: t.scrollLeft,
|
|
1919
1916
|
y: t.scrollTop
|
|
1920
1917
|
}), t = t.parentElement;
|
|
@@ -1948,35 +1945,35 @@ var Li = /* @__PURE__ */ new Set(["auto", "scroll"]), Ri = class {
|
|
|
1948
1945
|
this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), D(this.updatePoint);
|
|
1949
1946
|
}
|
|
1950
1947
|
};
|
|
1951
|
-
function
|
|
1948
|
+
function Ri(e, t) {
|
|
1952
1949
|
return t ? { point: t(e.point) } : e;
|
|
1953
1950
|
}
|
|
1954
|
-
function
|
|
1951
|
+
function zi(e, t) {
|
|
1955
1952
|
return {
|
|
1956
1953
|
x: e.x - t.x,
|
|
1957
1954
|
y: e.y - t.y
|
|
1958
1955
|
};
|
|
1959
1956
|
}
|
|
1960
|
-
function
|
|
1957
|
+
function Bi({ point: e }, t) {
|
|
1961
1958
|
return {
|
|
1962
1959
|
point: e,
|
|
1963
|
-
delta:
|
|
1964
|
-
offset:
|
|
1965
|
-
velocity:
|
|
1960
|
+
delta: zi(e, Hi(t)),
|
|
1961
|
+
offset: zi(e, Vi(t)),
|
|
1962
|
+
velocity: Ui(t, .1)
|
|
1966
1963
|
};
|
|
1967
1964
|
}
|
|
1968
|
-
function
|
|
1965
|
+
function Vi(e) {
|
|
1969
1966
|
return e[0];
|
|
1970
1967
|
}
|
|
1971
|
-
function
|
|
1968
|
+
function Hi(e) {
|
|
1972
1969
|
return e[e.length - 1];
|
|
1973
1970
|
}
|
|
1974
|
-
function
|
|
1971
|
+
function Ui(e, t) {
|
|
1975
1972
|
if (e.length < 2) return {
|
|
1976
1973
|
x: 0,
|
|
1977
1974
|
y: 0
|
|
1978
1975
|
};
|
|
1979
|
-
let n = e.length - 1, i = null, a =
|
|
1976
|
+
let n = e.length - 1, i = null, a = Hi(e);
|
|
1980
1977
|
for (; n >= 0 && (i = e[n], !(a.timestamp - i.timestamp > r(t)));) n--;
|
|
1981
1978
|
if (!i) return {
|
|
1982
1979
|
x: 0,
|
|
@@ -1996,61 +1993,61 @@ function Wi(e, t) {
|
|
|
1996
1993
|
}
|
|
1997
1994
|
//#endregion
|
|
1998
1995
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs
|
|
1999
|
-
function
|
|
1996
|
+
function Wi(e, { min: t, max: n }, r) {
|
|
2000
1997
|
return t !== void 0 && e < t ? e = r ? j(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? j(n, e, r.max) : Math.min(e, n)), e;
|
|
2001
1998
|
}
|
|
2002
|
-
function
|
|
1999
|
+
function Gi(e, t, n) {
|
|
2003
2000
|
return {
|
|
2004
2001
|
min: t === void 0 ? void 0 : e.min + t,
|
|
2005
2002
|
max: n === void 0 ? void 0 : e.max + n - (e.max - e.min)
|
|
2006
2003
|
};
|
|
2007
2004
|
}
|
|
2008
|
-
function
|
|
2005
|
+
function Ki(e, { top: t, left: n, bottom: r, right: i }) {
|
|
2009
2006
|
return {
|
|
2010
|
-
x:
|
|
2011
|
-
y:
|
|
2007
|
+
x: Gi(e.x, n, i),
|
|
2008
|
+
y: Gi(e.y, t, r)
|
|
2012
2009
|
};
|
|
2013
2010
|
}
|
|
2014
|
-
function
|
|
2011
|
+
function qi(e, t) {
|
|
2015
2012
|
let n = t.min - e.min, r = t.max - e.max;
|
|
2016
2013
|
return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), {
|
|
2017
2014
|
min: n,
|
|
2018
2015
|
max: r
|
|
2019
2016
|
};
|
|
2020
2017
|
}
|
|
2021
|
-
function
|
|
2018
|
+
function Ji(e, t) {
|
|
2022
2019
|
return {
|
|
2023
|
-
x:
|
|
2024
|
-
y:
|
|
2020
|
+
x: qi(e.x, t.x),
|
|
2021
|
+
y: qi(e.y, t.y)
|
|
2025
2022
|
};
|
|
2026
2023
|
}
|
|
2027
|
-
function
|
|
2024
|
+
function Yi(e, t) {
|
|
2028
2025
|
let n = .5, r = G(e), i = G(t);
|
|
2029
2026
|
return i > r ? n = C(t.min, t.max - r, e.min) : r > i && (n = C(e.min, e.max - i, t.min)), _e(0, 1, n);
|
|
2030
2027
|
}
|
|
2031
|
-
function
|
|
2028
|
+
function Xi(e, t) {
|
|
2032
2029
|
let n = {};
|
|
2033
2030
|
return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
|
|
2034
2031
|
}
|
|
2035
|
-
var
|
|
2036
|
-
function
|
|
2037
|
-
return e === !1 ? e = 0 : e === !0 && (e =
|
|
2038
|
-
x:
|
|
2039
|
-
y:
|
|
2032
|
+
var Zi = .35;
|
|
2033
|
+
function Qi(e = Zi) {
|
|
2034
|
+
return e === !1 ? e = 0 : e === !0 && (e = Zi), {
|
|
2035
|
+
x: $i(e, "left", "right"),
|
|
2036
|
+
y: $i(e, "top", "bottom")
|
|
2040
2037
|
};
|
|
2041
2038
|
}
|
|
2042
|
-
function
|
|
2039
|
+
function $i(e, t, n) {
|
|
2043
2040
|
return {
|
|
2044
|
-
min:
|
|
2045
|
-
max:
|
|
2041
|
+
min: ea(e, t),
|
|
2042
|
+
max: ea(e, n)
|
|
2046
2043
|
};
|
|
2047
2044
|
}
|
|
2048
|
-
function
|
|
2045
|
+
function ea(e, t) {
|
|
2049
2046
|
return typeof e == "number" ? e : e[t] || 0;
|
|
2050
2047
|
}
|
|
2051
2048
|
//#endregion
|
|
2052
2049
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs
|
|
2053
|
-
var
|
|
2050
|
+
var ta = /* @__PURE__ */ new WeakMap(), na = class {
|
|
2054
2051
|
constructor(e) {
|
|
2055
2052
|
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
|
|
2056
2053
|
x: 0,
|
|
@@ -2064,7 +2061,7 @@ var na = /* @__PURE__ */ new WeakMap(), ra = class {
|
|
|
2064
2061
|
t && this.snapToCursor(Q(e).point), this.stopAnimation();
|
|
2065
2062
|
}, a = (e, t) => {
|
|
2066
2063
|
let { drag: n, dragPropagation: r, onDragStart: i } = this.getProps();
|
|
2067
|
-
if (n && !r && (this.openDragLock && this.openDragLock(), this.openDragLock =
|
|
2064
|
+
if (n && !r && (this.openDragLock && this.openDragLock(), this.openDragLock = yt(n), !this.openDragLock)) return;
|
|
2068
2065
|
this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), q((e) => {
|
|
2069
2066
|
let t = this.getAxisMotionValue(e).get() || 0;
|
|
2070
2067
|
if (se.test(t)) {
|
|
@@ -2084,7 +2081,7 @@ var na = /* @__PURE__ */ new WeakMap(), ra = class {
|
|
|
2084
2081
|
if (!n && !this.openDragLock) return;
|
|
2085
2082
|
let { offset: o } = t;
|
|
2086
2083
|
if (r && this.currentDirection === null) {
|
|
2087
|
-
this.currentDirection =
|
|
2084
|
+
this.currentDirection = oa(o), this.currentDirection !== null && i && i(this.currentDirection);
|
|
2088
2085
|
return;
|
|
2089
2086
|
}
|
|
2090
2087
|
this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && A.update(() => a(e, t), !1, !0);
|
|
@@ -2097,7 +2094,7 @@ var na = /* @__PURE__ */ new WeakMap(), ra = class {
|
|
|
2097
2094
|
y: 0
|
|
2098
2095
|
});
|
|
2099
2096
|
}, { dragSnapToOrigin: u } = this.getProps();
|
|
2100
|
-
this.panSession = new
|
|
2097
|
+
this.panSession = new Li(e, {
|
|
2101
2098
|
onSessionStart: i,
|
|
2102
2099
|
onStart: a,
|
|
2103
2100
|
onMove: o,
|
|
@@ -2107,7 +2104,7 @@ var na = /* @__PURE__ */ new WeakMap(), ra = class {
|
|
|
2107
2104
|
transformPagePoint: this.visualElement.getTransformPagePoint(),
|
|
2108
2105
|
dragSnapToOrigin: u,
|
|
2109
2106
|
distanceThreshold: n,
|
|
2110
|
-
contextWindow:
|
|
2107
|
+
contextWindow: Ni(this.visualElement),
|
|
2111
2108
|
element: this.visualElement.current
|
|
2112
2109
|
});
|
|
2113
2110
|
}
|
|
@@ -2131,14 +2128,14 @@ var na = /* @__PURE__ */ new WeakMap(), ra = class {
|
|
|
2131
2128
|
}
|
|
2132
2129
|
updateAxis(e, t, n) {
|
|
2133
2130
|
let { drag: r } = this.getProps();
|
|
2134
|
-
if (!n || !
|
|
2131
|
+
if (!n || !aa(e, r, this.currentDirection)) return;
|
|
2135
2132
|
let i = this.getAxisMotionValue(e), a = this.originPoint[e] + n[e];
|
|
2136
|
-
this.constraints && this.constraints[e] && (a =
|
|
2133
|
+
this.constraints && this.constraints[e] && (a = Wi(a, this.constraints[e], this.elastic[e])), i.set(a);
|
|
2137
2134
|
}
|
|
2138
2135
|
resolveConstraints() {
|
|
2139
2136
|
let { dragConstraints: e, dragElastic: t } = this.getProps(), n = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, r = this.constraints;
|
|
2140
|
-
e && Z(e) ? this.constraints ||= this.resolveRefConstraints() : e && n ? this.constraints =
|
|
2141
|
-
this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] =
|
|
2137
|
+
e && Z(e) ? this.constraints ||= this.resolveRefConstraints() : e && n ? this.constraints = Ki(n.layoutBox, e) : this.constraints = !1, this.elastic = Qi(t), r !== this.constraints && !Z(e) && n && this.constraints && !this.hasMutatedConstraints && q((e) => {
|
|
2138
|
+
this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Xi(n.layoutBox[e], this.constraints[e]));
|
|
2142
2139
|
});
|
|
2143
2140
|
}
|
|
2144
2141
|
resolveRefConstraints() {
|
|
@@ -2149,7 +2146,7 @@ var na = /* @__PURE__ */ new WeakMap(), ra = class {
|
|
|
2149
2146
|
let { projection: r } = this.visualElement;
|
|
2150
2147
|
if (!r || !r.layout) return !1;
|
|
2151
2148
|
r.root && (r.root.scroll = void 0, r.root.updateScroll());
|
|
2152
|
-
let i = de(n, r.root, this.visualElement.getTransformPagePoint()), a =
|
|
2149
|
+
let i = de(n, r.root, this.visualElement.getTransformPagePoint()), a = Ji(r.layout.layoutBox, i);
|
|
2153
2150
|
if (t) {
|
|
2154
2151
|
let e = t(b(a));
|
|
2155
2152
|
this.hasMutatedConstraints = !!e, e && (a = Fe(e));
|
|
@@ -2158,7 +2155,7 @@ var na = /* @__PURE__ */ new WeakMap(), ra = class {
|
|
|
2158
2155
|
}
|
|
2159
2156
|
startAnimation(e) {
|
|
2160
2157
|
let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = q((o) => {
|
|
2161
|
-
if (!
|
|
2158
|
+
if (!aa(o, t, this.currentDirection)) return;
|
|
2162
2159
|
let c = s && s[o] || {};
|
|
2163
2160
|
(a === !0 || a === o) && (c = {
|
|
2164
2161
|
min: 0,
|
|
@@ -2193,7 +2190,7 @@ var na = /* @__PURE__ */ new WeakMap(), ra = class {
|
|
|
2193
2190
|
snapToCursor(e) {
|
|
2194
2191
|
q((t) => {
|
|
2195
2192
|
let { drag: n } = this.getProps();
|
|
2196
|
-
if (!
|
|
2193
|
+
if (!aa(t, n, this.currentDirection)) return;
|
|
2197
2194
|
let { projection: r } = this.visualElement, i = this.getAxisMotionValue(t);
|
|
2198
2195
|
if (r && r.layout) {
|
|
2199
2196
|
let { min: n, max: a } = r.layout.layoutBox[t], o = i.get() || 0;
|
|
@@ -2214,7 +2211,7 @@ var na = /* @__PURE__ */ new WeakMap(), ra = class {
|
|
|
2214
2211
|
let t = this.getAxisMotionValue(e);
|
|
2215
2212
|
if (t && this.constraints !== !1) {
|
|
2216
2213
|
let n = t.get();
|
|
2217
|
-
r[e] =
|
|
2214
|
+
r[e] = Yi({
|
|
2218
2215
|
min: n,
|
|
2219
2216
|
max: n
|
|
2220
2217
|
}, this.constraints[e]);
|
|
@@ -2222,20 +2219,20 @@ var na = /* @__PURE__ */ new WeakMap(), ra = class {
|
|
|
2222
2219
|
});
|
|
2223
2220
|
let { transformTemplate: i } = this.visualElement.getProps();
|
|
2224
2221
|
this.visualElement.current.style.transform = i ? i({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), q((t) => {
|
|
2225
|
-
if (!
|
|
2222
|
+
if (!aa(t, e, null)) return;
|
|
2226
2223
|
let n = this.getAxisMotionValue(t), { min: i, max: a } = this.constraints[t];
|
|
2227
2224
|
n.set(j(i, a, r[t]));
|
|
2228
2225
|
}), this.visualElement.render();
|
|
2229
2226
|
}
|
|
2230
2227
|
addListeners() {
|
|
2231
2228
|
if (!this.visualElement.current) return;
|
|
2232
|
-
|
|
2229
|
+
ta.set(this.visualElement, this);
|
|
2233
2230
|
let e = this.visualElement.current, t = $(e, "pointerdown", (t) => {
|
|
2234
|
-
let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e &&
|
|
2231
|
+
let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && Ot(i);
|
|
2235
2232
|
n && r && !a && this.start(t);
|
|
2236
2233
|
}), n, r = () => {
|
|
2237
2234
|
let { dragConstraints: t } = this.getProps();
|
|
2238
|
-
Z(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||=
|
|
2235
|
+
Z(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= ia(e, t.current, () => this.scalePositionWithinConstraints()));
|
|
2239
2236
|
}, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
|
|
2240
2237
|
i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), A.read(r);
|
|
2241
2238
|
let o = J(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
|
|
@@ -2249,7 +2246,7 @@ var na = /* @__PURE__ */ new WeakMap(), ra = class {
|
|
|
2249
2246
|
};
|
|
2250
2247
|
}
|
|
2251
2248
|
getProps() {
|
|
2252
|
-
let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a =
|
|
2249
|
+
let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = Zi, dragMomentum: o = !0 } = e;
|
|
2253
2250
|
return {
|
|
2254
2251
|
...e,
|
|
2255
2252
|
drag: t,
|
|
@@ -2261,7 +2258,7 @@ var na = /* @__PURE__ */ new WeakMap(), ra = class {
|
|
|
2261
2258
|
};
|
|
2262
2259
|
}
|
|
2263
2260
|
};
|
|
2264
|
-
function
|
|
2261
|
+
function ra(e) {
|
|
2265
2262
|
let t = !0;
|
|
2266
2263
|
return () => {
|
|
2267
2264
|
if (t) {
|
|
@@ -2271,24 +2268,24 @@ function ia(e) {
|
|
|
2271
2268
|
e();
|
|
2272
2269
|
};
|
|
2273
2270
|
}
|
|
2274
|
-
function
|
|
2275
|
-
let r =
|
|
2271
|
+
function ia(e, t, n) {
|
|
2272
|
+
let r = Jt(e, ra(n)), i = Jt(t, ra(n));
|
|
2276
2273
|
return () => {
|
|
2277
2274
|
r(), i();
|
|
2278
2275
|
};
|
|
2279
2276
|
}
|
|
2280
|
-
function
|
|
2277
|
+
function aa(e, t, n) {
|
|
2281
2278
|
return (t === !0 || t === e) && (n === null || n === e);
|
|
2282
2279
|
}
|
|
2283
|
-
function
|
|
2280
|
+
function oa(e, t = 10) {
|
|
2284
2281
|
let n = null;
|
|
2285
2282
|
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
|
|
2286
2283
|
}
|
|
2287
2284
|
//#endregion
|
|
2288
2285
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/drag/index.mjs
|
|
2289
|
-
var
|
|
2286
|
+
var sa = class extends H {
|
|
2290
2287
|
constructor(e) {
|
|
2291
|
-
super(e), this.removeGroupControls = i, this.removeListeners = i, this.controls = new
|
|
2288
|
+
super(e), this.removeGroupControls = i, this.removeListeners = i, this.controls = new na(e);
|
|
2292
2289
|
}
|
|
2293
2290
|
mount() {
|
|
2294
2291
|
let { dragControls: e } = this.node.getProps();
|
|
@@ -2301,24 +2298,24 @@ var ca = class extends H {
|
|
|
2301
2298
|
unmount() {
|
|
2302
2299
|
this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
|
|
2303
2300
|
}
|
|
2304
|
-
},
|
|
2301
|
+
}, ca = (e) => (t, n) => {
|
|
2305
2302
|
e && A.update(() => e(t, n), !1, !0);
|
|
2306
|
-
},
|
|
2303
|
+
}, la = class extends H {
|
|
2307
2304
|
constructor() {
|
|
2308
2305
|
super(...arguments), this.removePointerDownListener = i;
|
|
2309
2306
|
}
|
|
2310
2307
|
onPointerDown(e) {
|
|
2311
|
-
this.session = new
|
|
2308
|
+
this.session = new Li(e, this.createPanHandlers(), {
|
|
2312
2309
|
transformPagePoint: this.node.getTransformPagePoint(),
|
|
2313
|
-
contextWindow:
|
|
2310
|
+
contextWindow: Ni(this.node)
|
|
2314
2311
|
});
|
|
2315
2312
|
}
|
|
2316
2313
|
createPanHandlers() {
|
|
2317
2314
|
let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();
|
|
2318
2315
|
return {
|
|
2319
|
-
onSessionStart:
|
|
2320
|
-
onStart:
|
|
2321
|
-
onMove:
|
|
2316
|
+
onSessionStart: ca(e),
|
|
2317
|
+
onStart: ca(t),
|
|
2318
|
+
onMove: ca(n),
|
|
2322
2319
|
onEnd: (e, t) => {
|
|
2323
2320
|
delete this.session, r && A.postRender(() => r(e, t));
|
|
2324
2321
|
}
|
|
@@ -2333,23 +2330,23 @@ var ca = class extends H {
|
|
|
2333
2330
|
unmount() {
|
|
2334
2331
|
this.removePointerDownListener(), this.session && this.session.end();
|
|
2335
2332
|
}
|
|
2336
|
-
},
|
|
2333
|
+
}, ua = !1, da = class extends He {
|
|
2337
2334
|
componentDidMount() {
|
|
2338
2335
|
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r } = this.props, { projection: i } = e;
|
|
2339
|
-
i && (t.group && t.group.add(i), n && n.register && r && n.register(i),
|
|
2336
|
+
i && (t.group && t.group.add(i), n && n.register && r && n.register(i), ua && i.root.didUpdate(), i.addEventListener("animationComplete", () => {
|
|
2340
2337
|
this.safeToRemove();
|
|
2341
2338
|
}), i.setOptions({
|
|
2342
2339
|
...i.options,
|
|
2343
2340
|
layoutDependency: this.props.layoutDependency,
|
|
2344
2341
|
onExitComplete: () => this.safeToRemove()
|
|
2345
|
-
})),
|
|
2342
|
+
})), Kn.hasEverUpdated = !0;
|
|
2346
2343
|
}
|
|
2347
2344
|
getSnapshotBeforeUpdate(e) {
|
|
2348
2345
|
let { layoutDependency: t, visualElement: n, drag: r, isPresent: i } = this.props, { projection: a } = n;
|
|
2349
2346
|
return a ? (a.isPresent = i, e.layoutDependency !== t && a.setOptions({
|
|
2350
2347
|
...a.options,
|
|
2351
2348
|
layoutDependency: t
|
|
2352
|
-
}),
|
|
2349
|
+
}), ua = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || A.postRender(() => {
|
|
2353
2350
|
let e = a.getStack();
|
|
2354
2351
|
(!e || !e.members.length) && this.safeToRemove();
|
|
2355
2352
|
})), null) : null;
|
|
@@ -2362,7 +2359,7 @@ var ca = class extends H {
|
|
|
2362
2359
|
}
|
|
2363
2360
|
componentWillUnmount() {
|
|
2364
2361
|
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
|
|
2365
|
-
|
|
2362
|
+
ua = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));
|
|
2366
2363
|
}
|
|
2367
2364
|
safeToRemove() {
|
|
2368
2365
|
let { safeToRemove: e } = this.props;
|
|
@@ -2372,41 +2369,41 @@ var ca = class extends H {
|
|
|
2372
2369
|
return null;
|
|
2373
2370
|
}
|
|
2374
2371
|
};
|
|
2375
|
-
function
|
|
2376
|
-
let [t, n] =
|
|
2377
|
-
return I(
|
|
2372
|
+
function fa(e) {
|
|
2373
|
+
let [t, n] = Fr(), r = N(R);
|
|
2374
|
+
return I(da, {
|
|
2378
2375
|
...e,
|
|
2379
2376
|
layoutGroup: r,
|
|
2380
|
-
switchLayoutGroup: N(
|
|
2377
|
+
switchLayoutGroup: N(yi),
|
|
2381
2378
|
isPresent: t,
|
|
2382
2379
|
safeToRemove: n
|
|
2383
2380
|
});
|
|
2384
2381
|
}
|
|
2385
2382
|
//#endregion
|
|
2386
2383
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/features/drag.mjs
|
|
2387
|
-
var
|
|
2388
|
-
pan: { Feature:
|
|
2384
|
+
var pa = {
|
|
2385
|
+
pan: { Feature: la },
|
|
2389
2386
|
drag: {
|
|
2390
|
-
Feature:
|
|
2391
|
-
ProjectionNode:
|
|
2392
|
-
MeasureLayout:
|
|
2387
|
+
Feature: sa,
|
|
2388
|
+
ProjectionNode: Dr,
|
|
2389
|
+
MeasureLayout: fa
|
|
2393
2390
|
}
|
|
2394
2391
|
};
|
|
2395
2392
|
//#endregion
|
|
2396
2393
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/hover.mjs
|
|
2397
|
-
function
|
|
2394
|
+
function ma(e, t, n) {
|
|
2398
2395
|
let { props: r } = e;
|
|
2399
2396
|
e.animationState && r.whileHover && e.animationState.setActive("whileHover", n === "Start");
|
|
2400
2397
|
let i = r["onHover" + n];
|
|
2401
2398
|
i && A.postRender(() => i(t, Q(t)));
|
|
2402
2399
|
}
|
|
2403
|
-
var
|
|
2400
|
+
var ha = class extends H {
|
|
2404
2401
|
mount() {
|
|
2405
2402
|
let { current: e } = this.node;
|
|
2406
|
-
e && (this.unmount =
|
|
2403
|
+
e && (this.unmount = St(e, (e, t) => (ma(this.node, t, "Start"), (e) => ma(this.node, e, "End"))));
|
|
2407
2404
|
}
|
|
2408
2405
|
unmount() {}
|
|
2409
|
-
},
|
|
2406
|
+
}, ga = class extends H {
|
|
2410
2407
|
constructor() {
|
|
2411
2408
|
super(...arguments), this.isActive = !1;
|
|
2412
2409
|
}
|
|
@@ -2429,51 +2426,51 @@ var ga = class extends H {
|
|
|
2429
2426
|
};
|
|
2430
2427
|
//#endregion
|
|
2431
2428
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/press.mjs
|
|
2432
|
-
function
|
|
2429
|
+
function _a(e, t, n) {
|
|
2433
2430
|
let { props: r } = e;
|
|
2434
2431
|
if (e.current instanceof HTMLButtonElement && e.current.disabled) return;
|
|
2435
2432
|
e.animationState && r.whileTap && e.animationState.setActive("whileTap", n === "Start");
|
|
2436
2433
|
let i = r["onTap" + (n === "End" ? "" : n)];
|
|
2437
2434
|
i && A.postRender(() => i(t, Q(t)));
|
|
2438
2435
|
}
|
|
2439
|
-
var
|
|
2436
|
+
var va = class extends H {
|
|
2440
2437
|
mount() {
|
|
2441
2438
|
let { current: e } = this.node;
|
|
2442
2439
|
if (!e) return;
|
|
2443
2440
|
let { globalTapTarget: t, propagate: n } = this.node.props;
|
|
2444
|
-
this.unmount =
|
|
2441
|
+
this.unmount = Ft(e, (e, t) => (_a(this.node, t, "Start"), (e, { success: t }) => _a(this.node, e, t ? "End" : "Cancel")), {
|
|
2445
2442
|
useGlobalTarget: t,
|
|
2446
2443
|
stopPropagation: n?.tap === !1
|
|
2447
2444
|
});
|
|
2448
2445
|
}
|
|
2449
2446
|
unmount() {}
|
|
2450
|
-
},
|
|
2451
|
-
let t =
|
|
2447
|
+
}, ya = /* @__PURE__ */ new WeakMap(), ba = /* @__PURE__ */ new WeakMap(), xa = (e) => {
|
|
2448
|
+
let t = ya.get(e.target);
|
|
2452
2449
|
t && t(e);
|
|
2453
|
-
},
|
|
2454
|
-
e.forEach(
|
|
2450
|
+
}, Sa = (e) => {
|
|
2451
|
+
e.forEach(xa);
|
|
2455
2452
|
};
|
|
2456
|
-
function
|
|
2453
|
+
function Ca({ root: e, ...t }) {
|
|
2457
2454
|
let n = e || document;
|
|
2458
|
-
|
|
2459
|
-
let r =
|
|
2460
|
-
return r[i] || (r[i] = new IntersectionObserver(
|
|
2455
|
+
ba.has(n) || ba.set(n, {});
|
|
2456
|
+
let r = ba.get(n), i = JSON.stringify(t);
|
|
2457
|
+
return r[i] || (r[i] = new IntersectionObserver(Sa, {
|
|
2461
2458
|
root: e,
|
|
2462
2459
|
...t
|
|
2463
2460
|
})), r[i];
|
|
2464
2461
|
}
|
|
2465
|
-
function
|
|
2466
|
-
let r =
|
|
2467
|
-
return
|
|
2468
|
-
|
|
2462
|
+
function wa(e, t, n) {
|
|
2463
|
+
let r = Ca(t);
|
|
2464
|
+
return ya.set(e, n), r.observe(e), () => {
|
|
2465
|
+
ya.delete(e), r.unobserve(e);
|
|
2469
2466
|
};
|
|
2470
2467
|
}
|
|
2471
2468
|
//#endregion
|
|
2472
2469
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
|
|
2473
|
-
var
|
|
2470
|
+
var Ta = {
|
|
2474
2471
|
some: 0,
|
|
2475
2472
|
all: 1
|
|
2476
|
-
},
|
|
2473
|
+
}, Ea = class extends H {
|
|
2477
2474
|
constructor() {
|
|
2478
2475
|
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
|
2479
2476
|
}
|
|
@@ -2482,7 +2479,7 @@ var Ea = {
|
|
|
2482
2479
|
let { viewport: e = {} } = this.node.getProps(), { root: t, margin: n, amount: r = "some", once: i } = e, a = {
|
|
2483
2480
|
root: t ? t.current : void 0,
|
|
2484
2481
|
rootMargin: n,
|
|
2485
|
-
threshold: typeof r == "number" ? r :
|
|
2482
|
+
threshold: typeof r == "number" ? r : Ta[r]
|
|
2486
2483
|
}, o = (e) => {
|
|
2487
2484
|
let { isIntersecting: t } = e;
|
|
2488
2485
|
if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
|
|
@@ -2490,7 +2487,7 @@ var Ea = {
|
|
|
2490
2487
|
let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
|
|
2491
2488
|
a && a(e);
|
|
2492
2489
|
};
|
|
2493
|
-
this.stopObserver =
|
|
2490
|
+
this.stopObserver = wa(this.node.current, a, o);
|
|
2494
2491
|
}
|
|
2495
2492
|
mount() {
|
|
2496
2493
|
this.startObserver();
|
|
@@ -2502,32 +2499,32 @@ var Ea = {
|
|
|
2502
2499
|
"amount",
|
|
2503
2500
|
"margin",
|
|
2504
2501
|
"root"
|
|
2505
|
-
].some(
|
|
2502
|
+
].some(Da(e, t)) && this.startObserver();
|
|
2506
2503
|
}
|
|
2507
2504
|
unmount() {
|
|
2508
2505
|
this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
|
|
2509
2506
|
}
|
|
2510
2507
|
};
|
|
2511
|
-
function
|
|
2508
|
+
function Da({ viewport: e = {} }, { viewport: t = {} } = {}) {
|
|
2512
2509
|
return (n) => e[n] !== t[n];
|
|
2513
2510
|
}
|
|
2514
2511
|
//#endregion
|
|
2515
2512
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/features/gestures.mjs
|
|
2516
|
-
var
|
|
2517
|
-
inView: { Feature:
|
|
2518
|
-
tap: { Feature:
|
|
2519
|
-
focus: { Feature:
|
|
2520
|
-
hover: { Feature:
|
|
2521
|
-
},
|
|
2522
|
-
ProjectionNode:
|
|
2523
|
-
MeasureLayout:
|
|
2524
|
-
} },
|
|
2525
|
-
...
|
|
2526
|
-
...
|
|
2527
|
-
...
|
|
2528
|
-
...
|
|
2529
|
-
},
|
|
2530
|
-
//#endregion
|
|
2531
|
-
export { R as a,
|
|
2513
|
+
var Oa = {
|
|
2514
|
+
inView: { Feature: Ea },
|
|
2515
|
+
tap: { Feature: va },
|
|
2516
|
+
focus: { Feature: ga },
|
|
2517
|
+
hover: { Feature: ha }
|
|
2518
|
+
}, ka = { layout: {
|
|
2519
|
+
ProjectionNode: Dr,
|
|
2520
|
+
MeasureLayout: fa
|
|
2521
|
+
} }, Aa = /* @__PURE__ */ Di({
|
|
2522
|
+
...ji,
|
|
2523
|
+
...Oa,
|
|
2524
|
+
...pa,
|
|
2525
|
+
...ka
|
|
2526
|
+
}, Oi);
|
|
2527
|
+
//#endregion
|
|
2528
|
+
export { R as a, ft as i, Xr as n, st as o, Lr as r, ut as s, Aa as t };
|
|
2532
2529
|
|
|
2533
|
-
//# sourceMappingURL=proxy-
|
|
2530
|
+
//# sourceMappingURL=proxy-BcJ_5Dwq.js.map
|