@jenesei-software/jenesei-kit-react 1.3.40 → 2.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/README.md +0 -37
- package/build/AnimatePresence-19yP-TCg.js +134 -0
- package/build/AnimatePresence-19yP-TCg.js.map +1 -0
- package/build/AnimatePresence-BdBJCJuf.cjs +11 -0
- package/build/AnimatePresence-BdBJCJuf.cjs.map +1 -0
- package/build/area-outside.cjs.js +1 -2
- package/build/area-outside.d.ts +2 -28
- package/build/area-outside.es.js +2 -3
- package/build/area-preview.cjs.js +1 -2
- package/build/area-preview.d.ts +2 -48
- package/build/area-preview.es.js +3 -5
- package/build/area-skeleton.cjs.js +1 -2
- package/build/area-skeleton.d.ts +2 -68
- package/build/area-skeleton.es.js +2 -4
- package/build/areas/outside/area.d.ts +7 -0
- package/build/areas/outside/index.d.ts +1 -0
- package/build/areas/preview/area.d.ts +3 -0
- package/build/areas/preview/area.hooks.d.ts +1 -0
- package/build/areas/preview/area.types.d.ts +19 -0
- package/build/areas/preview/index.d.ts +3 -0
- package/build/areas/skeleton/area.d.ts +3 -0
- package/build/areas/skeleton/area.types.d.ts +21 -0
- package/build/areas/skeleton/index.d.ts +2 -0
- package/build/build-info.txt +3 -3
- package/build/button-BbGiFvok.js +102 -0
- package/build/button-BbGiFvok.js.map +1 -0
- package/build/button-BuPpgfL_.cjs +3 -0
- package/build/button-BuPpgfL_.cjs.map +1 -0
- package/build/checkbox-CXxWDklX.js +98 -0
- package/build/checkbox-CXxWDklX.js.map +1 -0
- package/build/checkbox-qgc_Ntc3.cjs +3 -0
- package/build/checkbox-qgc_Ntc3.cjs.map +1 -0
- package/build/chunk-Dd8m0Ver.cjs +1 -0
- package/build/chunk-cI0lbGMq.js +31 -0
- package/build/component-BHyXT2-h.js +71 -0
- package/build/component-BHyXT2-h.js.map +1 -0
- package/build/component-button.cjs.js +1 -2
- package/build/component-button.d.ts +2 -208
- package/build/component-button.es.js +2 -5
- package/build/component-checkbox.cjs.js +1 -2
- package/build/component-checkbox.d.ts +2 -208
- package/build/component-checkbox.es.js +2 -8
- package/build/component-date-picker.cjs.js +1 -2
- package/build/component-date-picker.d.ts +2 -582
- package/build/component-date-picker.es.js +2 -19
- package/build/component-icon.cjs.js +1 -2
- package/build/component-icon.d.ts +2 -136
- package/build/component-icon.es.js +4 -8
- package/build/component-input-otp.cjs.js +1 -2
- package/build/component-input-otp.d.ts +2 -211
- package/build/component-input-otp.es.js +2 -7
- package/build/component-input.cjs.js +1 -2
- package/build/component-input.d.ts +2 -286
- package/build/component-input.es.js +2 -18
- package/build/component-jsn2T8Hu.cjs +3 -0
- package/build/component-jsn2T8Hu.cjs.map +1 -0
- package/build/component-pagination.cjs.js +1 -2
- package/build/component-pagination.d.ts +2 -196
- package/build/component-pagination.es.js +2 -4
- package/build/component-popover.cjs.js +1 -0
- package/build/component-popover.d.ts +2 -0
- package/build/component-popover.es.js +5 -0
- package/build/component-select.cjs.js +1 -2
- package/build/component-select.d.ts +2 -411
- package/build/component-select.es.js +6 -18
- package/build/component-separator.cjs.js +1 -2
- package/build/component-separator.d.ts +2 -49
- package/build/component-separator.es.js +2 -5
- package/build/component-stack.cjs.js +1 -2
- package/build/component-stack.d.ts +2 -72
- package/build/component-stack.es.js +3 -6
- package/build/component-textarea.cjs.js +1 -2
- package/build/component-textarea.d.ts +2 -202
- package/build/component-textarea.es.js +2 -6
- package/build/component-toggle.cjs.js +1 -2
- package/build/component-toggle.d.ts +2 -150
- package/build/component-toggle.es.js +2 -6
- package/build/component-tooltip.cjs.js +1 -2
- package/build/component-tooltip.d.ts +2 -360
- package/build/component-tooltip.es.js +2 -10
- package/build/component-typography.cjs.js +1 -2
- package/build/component-typography.d.ts +2 -316
- package/build/component-typography.es.js +3 -9
- package/build/components/button/component.d.ts +3 -0
- package/build/components/button/component.types.d.ts +41 -0
- package/build/components/button/index.d.ts +2 -0
- package/build/components/checkbox/component.d.ts +3 -0
- package/build/components/checkbox/component.types.d.ts +51 -0
- package/build/components/checkbox/index.d.ts +2 -0
- package/build/components/date-picker/component.d.ts +2 -0
- package/build/components/date-picker/component.types.d.ts +86 -0
- package/build/components/date-picker/index.d.ts +2 -0
- package/build/components/error/component.d.ts +3 -0
- package/build/components/error/component.types.d.ts +11 -0
- package/build/components/error/index.d.ts +2 -0
- package/build/components/icon/component.consts.d.ts +6 -0
- package/build/components/icon/component.d.ts +9 -0
- package/build/components/icon/component.functions.d.ts +2 -0
- package/build/components/icon/component.hooks.d.ts +5 -0
- package/build/components/icon/component.types.d.ts +47 -0
- package/build/components/icon/index.d.ts +4 -0
- package/build/components/input/component.d.ts +6 -0
- package/build/components/input/component.types.d.ts +78 -0
- package/build/components/input/index.d.ts +2 -0
- package/build/components/input-otp/component.d.ts +2 -0
- package/build/components/input-otp/component.types.d.ts +8 -0
- package/build/components/input-otp/index.d.ts +2 -0
- package/build/components/pagination/component.constants.d.ts +1 -0
- package/build/components/pagination/component.d.ts +3 -0
- package/build/components/pagination/component.types.d.ts +22 -0
- package/build/components/pagination/index.d.ts +2 -0
- package/build/components/popover/component.constants.d.ts +3 -0
- package/build/components/popover/component.d.ts +34 -0
- package/build/components/popover/component.types.d.ts +113 -0
- package/build/components/popover/index.d.ts +2 -0
- package/build/components/select/component.d.ts +4 -0
- package/build/components/select/component.examples.d.ts +6 -0
- package/build/components/select/component.types.d.ts +109 -0
- package/build/components/select/index.d.ts +3 -0
- package/build/components/separator/component.d.ts +3 -0
- package/build/components/separator/component.types.d.ts +10 -0
- package/build/components/separator/index.d.ts +2 -0
- package/build/components/stack/component.d.ts +4 -0
- package/build/components/stack/component.types.d.ts +20 -0
- package/build/components/stack/index.d.ts +2 -0
- package/build/components/textarea/component.d.ts +2 -0
- package/build/components/textarea/component.types.d.ts +67 -0
- package/build/components/textarea/index.d.ts +2 -0
- package/build/components/toggle/component.d.ts +2 -0
- package/build/components/toggle/component.types.d.ts +25 -0
- package/build/components/toggle/index.d.ts +2 -0
- package/build/components/tooltip/component.constants.d.ts +3 -0
- package/build/components/tooltip/component.d.ts +4 -0
- package/build/components/tooltip/component.types.d.ts +12 -0
- package/build/components/tooltip/index.d.ts +2 -0
- package/build/components/typography/component.d.ts +3 -0
- package/build/components/typography/component.types.d.ts +18 -0
- package/build/components/typography/index.d.ts +2 -0
- package/build/components-error.cjs.js +1 -0
- package/build/components-error.d.ts +2 -0
- package/build/components-error.es.js +4 -0
- package/build/context-app-CMK9g6MI.js +417 -0
- package/build/context-app-CMK9g6MI.js.map +1 -0
- package/build/context-app-HhFcx1wY.cjs +9 -0
- package/build/context-app-HhFcx1wY.cjs.map +1 -0
- package/build/context-app.cjs.js +1 -2
- package/build/context-app.d.ts +2 -224
- package/build/context-app.es.js +3 -19
- package/build/context-browser-theme-Cb6siWO0.js +35 -0
- package/build/context-browser-theme-Cb6siWO0.js.map +1 -0
- package/build/context-browser-theme-Cso_rAT5.cjs +3 -0
- package/build/context-browser-theme-Cso_rAT5.cjs.map +1 -0
- package/build/context-browser-theme.cjs.js +1 -0
- package/build/context-browser-theme.d.ts +2 -0
- package/build/context-browser-theme.es.js +5 -0
- package/build/context-cookie-5CBhf-gb.js +138 -0
- package/build/context-cookie-5CBhf-gb.js.map +1 -0
- package/build/context-cookie-Btkd2aXy.cjs +3 -0
- package/build/context-cookie-Btkd2aXy.cjs.map +1 -0
- package/build/context-cookie.cjs.js +1 -2
- package/build/context-cookie.d.ts +2 -67
- package/build/context-cookie.es.js +3 -8
- package/build/context-dialog-B67-_jMH.cjs +3 -0
- package/build/context-dialog-B67-_jMH.cjs.map +1 -0
- package/build/context-dialog-CxGGmBqC.js +176 -0
- package/build/context-dialog-CxGGmBqC.js.map +1 -0
- package/build/context-dialog.cjs.js +1 -2
- package/build/context-dialog.d.ts +2 -106
- package/build/context-dialog.es.js +4 -17
- package/build/context-geolocation-C7PYGQ2g.js +42 -0
- package/build/context-geolocation-C7PYGQ2g.js.map +1 -0
- package/build/context-geolocation-CV4hV0NX.cjs +3 -0
- package/build/context-geolocation-CV4hV0NX.cjs.map +1 -0
- package/build/context-geolocation.cjs.js +1 -2
- package/build/context-geolocation.d.ts +2 -22
- package/build/context-geolocation.es.js +3 -6
- package/build/context-local-storage-Bb_vktd8.js +83 -0
- package/build/context-local-storage-Bb_vktd8.js.map +1 -0
- package/build/context-local-storage-DUKHVPAA.cjs +3 -0
- package/build/context-local-storage-DUKHVPAA.cjs.map +1 -0
- package/build/context-local-storage.cjs.js +1 -2
- package/build/context-local-storage.d.ts +2 -54
- package/build/context-local-storage.es.js +3 -8
- package/build/context-permission-Co4BKDOu.js +77 -0
- package/build/context-permission-Co4BKDOu.js.map +1 -0
- package/build/context-permission-DrcIwK9y.cjs +3 -0
- package/build/context-permission-DrcIwK9y.cjs.map +1 -0
- package/build/context-permission.cjs.js +1 -2
- package/build/context-permission.d.ts +2 -28
- package/build/context-permission.es.js +3 -7
- package/build/context-screen-width-CFexCIzV.js +53 -0
- package/build/context-screen-width-CFexCIzV.js.map +1 -0
- package/build/context-screen-width-hcRkxzy7.cjs +3 -0
- package/build/context-screen-width-hcRkxzy7.cjs.map +1 -0
- package/build/context-screen-width.cjs.js +1 -2
- package/build/context-screen-width.d.ts +2 -34
- package/build/context-screen-width.es.js +3 -5
- package/build/context-sonner-4gBa1F7G.cjs +3 -0
- package/build/context-sonner-4gBa1F7G.cjs.map +1 -0
- package/build/context-sonner-qDPLFpD5.js +218 -0
- package/build/context-sonner-qDPLFpD5.js.map +1 -0
- package/build/context-sonner.cjs.js +1 -2
- package/build/context-sonner.d.ts +2 -457
- package/build/context-sonner.es.js +3 -20
- package/build/contexts/context-app/context.d.ts +33 -0
- package/build/contexts/context-app/context.hooks.d.ts +2 -0
- package/build/contexts/context-app/context.styles.d.ts +14 -0
- package/build/contexts/context-app/context.types.d.ts +87 -0
- package/build/contexts/context-app/index.d.ts +2 -0
- package/build/contexts/context-browser-theme/context.d.ts +4 -0
- package/build/contexts/context-browser-theme/context.hooks.d.ts +2 -0
- package/build/contexts/context-browser-theme/context.types.d.ts +12 -0
- package/build/contexts/context-browser-theme/index.d.ts +2 -0
- package/build/contexts/context-cookie/context.d.ts +27 -0
- package/build/contexts/context-cookie/context.functions.d.ts +3 -0
- package/build/contexts/context-cookie/context.hooks.d.ts +9 -0
- package/build/contexts/context-cookie/context.types.d.ts +18 -0
- package/build/contexts/context-cookie/index.d.ts +3 -0
- package/build/contexts/context-dialog/context.constants.d.ts +8 -0
- package/build/contexts/context-dialog/context.d.ts +4 -0
- package/build/contexts/context-dialog/context.hooks.d.ts +3 -0
- package/build/contexts/context-dialog/context.styles.d.ts +9 -0
- package/build/contexts/context-dialog/context.types.d.ts +47 -0
- package/build/contexts/context-dialog/index.d.ts +3 -0
- package/build/contexts/context-geolocation/context.d.ts +4 -0
- package/build/contexts/context-geolocation/context.hooks.d.ts +2 -0
- package/build/contexts/context-geolocation/context.types.d.ts +10 -0
- package/build/contexts/context-geolocation/index.d.ts +2 -0
- package/build/contexts/context-local-storage/context.d.ts +21 -0
- package/build/contexts/context-local-storage/context.functions.d.ts +2 -0
- package/build/contexts/context-local-storage/context.hooks.d.ts +5 -0
- package/build/contexts/context-local-storage/context.types.d.ts +16 -0
- package/build/contexts/context-local-storage/index.d.ts +3 -0
- package/build/contexts/context-permission/context.d.ts +3 -0
- package/build/contexts/context-permission/context.functions.d.ts +1 -0
- package/build/contexts/context-permission/context.hooks.d.ts +5 -0
- package/build/contexts/context-permission/context.types.d.ts +11 -0
- package/build/contexts/context-permission/index.d.ts +2 -0
- package/build/contexts/context-screen-width/context.d.ts +4 -0
- package/build/contexts/context-screen-width/context.hooks.d.ts +2 -0
- package/build/contexts/context-screen-width/context.types.d.ts +11 -0
- package/build/contexts/context-screen-width/index.d.ts +3 -0
- package/build/contexts/context-sonner/context.constants.d.ts +9 -0
- package/build/contexts/context-sonner/context.d.ts +4 -0
- package/build/contexts/context-sonner/context.hooks.d.ts +2 -0
- package/build/contexts/context-sonner/context.styles.d.ts +30 -0
- package/build/contexts/context-sonner/context.types.d.ts +59 -0
- package/build/contexts/context-sonner/index.d.ts +3 -0
- package/build/cores/consts.d.ts +30 -0
- package/build/{functions.d.ts → cores/functions.d.ts} +18 -22
- package/build/cores/logger.d.ts +1 -0
- package/build/cores/types.d.ts +18 -0
- package/build/date-picker-CPNNIEa-.cjs +3 -0
- package/build/date-picker-CPNNIEa-.cjs.map +1 -0
- package/build/date-picker-Uuce_InW.js +689 -0
- package/build/date-picker-Uuce_InW.js.map +1 -0
- package/build/dist-BV0C3tLK.js +483 -0
- package/build/dist-BV0C3tLK.js.map +1 -0
- package/build/dist-DswBAjW1.cjs +3 -0
- package/build/dist-DswBAjW1.cjs.map +1 -0
- package/build/error-DzkkNL2H.cjs +3 -0
- package/build/error-DzkkNL2H.cjs.map +1 -0
- package/build/error-L2fvWcNv.js +50 -0
- package/build/error-L2fvWcNv.js.map +1 -0
- package/build/functions-CLGf7hqw.js +20 -0
- package/build/functions-CLGf7hqw.js.map +1 -0
- package/build/functions-Dwo54amB.cjs +3 -0
- package/build/functions-Dwo54amB.cjs.map +1 -0
- package/build/hooks/use-debounced-callback/index.d.ts +1 -0
- package/build/hooks/use-debounced-callback/use.d.ts +1 -0
- package/build/hooks/use-deep-compare-memoize/index.d.ts +1 -0
- package/build/hooks/use-deep-compare-memoize/use.d.ts +1 -0
- package/build/hooks/use-deep-memo/index.d.ts +1 -0
- package/build/hooks/use-deep-memo/use.d.ts +1 -0
- package/build/hooks/use-merge-refs/index.d.ts +1 -0
- package/build/hooks/use-merge-refs/use.d.ts +2 -0
- package/build/hooks/use-overflowing/index.d.ts +2 -0
- package/build/hooks/use-overflowing/use.d.ts +12 -0
- package/build/hooks/use-overflowing/use.types.d.ts +6 -0
- package/build/hooks/use-overflowing-advanced/index.d.ts +2 -0
- package/build/hooks/use-overflowing-advanced/use.d.ts +7 -0
- package/build/hooks/use-overflowing-advanced/use.types.d.ts +5 -0
- package/build/hooks/use-overflowing-in-container/index.d.ts +2 -0
- package/build/hooks/use-overflowing-in-container/use.d.ts +7 -0
- package/build/hooks/use-overflowing-in-container/use.types.d.ts +7 -0
- package/build/hooks/use-responsive-layout/index.d.ts +1 -0
- package/build/hooks/use-responsive-layout/use.d.ts +2 -0
- package/build/hooks/use-typography-styles/index.d.ts +2 -0
- package/build/hooks/use-typography-styles/use.d.ts +2 -0
- package/build/hooks/use-typography-styles/use.types.d.ts +11 -0
- package/build/hooks-use-debounced-callback.cjs.js +3 -2
- package/build/hooks-use-debounced-callback.cjs.js.map +1 -1
- package/build/hooks-use-debounced-callback.d.ts +2 -3
- package/build/hooks-use-debounced-callback.es.js +12 -3
- package/build/hooks-use-debounced-callback.es.js.map +1 -1
- package/build/hooks-use-deep-compare-memoize.cjs.js +3 -2
- package/build/hooks-use-deep-compare-memoize.cjs.js.map +1 -1
- package/build/hooks-use-deep-compare-memoize.d.ts +2 -3
- package/build/hooks-use-deep-compare-memoize.es.js +10 -3
- package/build/hooks-use-deep-compare-memoize.es.js.map +1 -1
- package/build/hooks-use-deep-memo.cjs.js +3 -0
- package/build/hooks-use-deep-memo.cjs.js.map +1 -0
- package/build/hooks-use-deep-memo.d.ts +2 -0
- package/build/hooks-use-deep-memo.es.js +13 -0
- package/build/hooks-use-deep-memo.es.js.map +1 -0
- package/build/hooks-use-merge-refs.cjs.js +3 -0
- package/build/hooks-use-merge-refs.cjs.js.map +1 -0
- package/build/hooks-use-merge-refs.d.ts +2 -0
- package/build/hooks-use-merge-refs.es.js +13 -0
- package/build/hooks-use-merge-refs.es.js.map +1 -0
- package/build/hooks-use-overflowing-advanced.cjs.js +3 -0
- package/build/hooks-use-overflowing-advanced.cjs.js.map +1 -0
- package/build/hooks-use-overflowing-advanced.d.ts +2 -0
- package/build/hooks-use-overflowing-advanced.es.js +24 -0
- package/build/hooks-use-overflowing-advanced.es.js.map +1 -0
- package/build/hooks-use-overflowing-in-container.cjs.js +3 -0
- package/build/hooks-use-overflowing-in-container.cjs.js.map +1 -0
- package/build/hooks-use-overflowing-in-container.d.ts +2 -0
- package/build/hooks-use-overflowing-in-container.es.js +20 -0
- package/build/hooks-use-overflowing-in-container.es.js.map +1 -0
- package/build/hooks-use-overflowing.cjs.js +3 -0
- package/build/hooks-use-overflowing.cjs.js.map +1 -0
- package/build/hooks-use-overflowing.d.ts +2 -0
- package/build/hooks-use-overflowing.es.js +28 -0
- package/build/hooks-use-overflowing.es.js.map +1 -0
- package/build/hooks-use-responsive-layout.cjs.js +3 -0
- package/build/hooks-use-responsive-layout.cjs.js.map +1 -0
- package/build/hooks-use-responsive-layout.d.ts +2 -0
- package/build/hooks-use-responsive-layout.es.js +22 -0
- package/build/hooks-use-responsive-layout.es.js.map +1 -0
- package/build/hooks-use-typography-styles.cjs.js +3 -0
- package/build/hooks-use-typography-styles.cjs.js.map +1 -0
- package/build/hooks-use-typography-styles.d.ts +2 -0
- package/build/hooks-use-typography-styles.es.js +37 -0
- package/build/hooks-use-typography-styles.es.js.map +1 -0
- package/build/icon-CoIQwke4.cjs +3 -0
- package/build/icon-CoIQwke4.cjs.map +1 -0
- package/build/icon-DzAWOQJg.js +277 -0
- package/build/icon-DzAWOQJg.js.map +1 -0
- package/build/index.cjs.js +1 -2
- package/build/index.d.ts +39 -2494
- package/build/index.es.js +104 -309
- package/build/input-CV02F03L.js +917 -0
- package/build/input-CV02F03L.js.map +1 -0
- package/build/input-otp-B9cYxJ7X.js +106 -0
- package/build/input-otp-B9cYxJ7X.js.map +1 -0
- package/build/input-otp-BVRCfoRK.cjs +3 -0
- package/build/input-otp-BVRCfoRK.cjs.map +1 -0
- package/build/input-zXF5f99Z.cjs +11 -0
- package/build/input-zXF5f99Z.cjs.map +1 -0
- package/build/isEqual-DeC2HFe5.cjs +3 -0
- package/build/isEqual-DeC2HFe5.cjs.map +1 -0
- package/build/isEqual-Qb81B2zH.js +676 -0
- package/build/isEqual-Qb81B2zH.js.map +1 -0
- package/build/logger-BRWLzI5S.js +174 -0
- package/build/logger-BRWLzI5S.js.map +1 -0
- package/build/logger-DZFY33QY.cjs +5 -0
- package/build/logger-DZFY33QY.cjs.map +1 -0
- package/build/motion-CAPq8wSn.cjs +3 -0
- package/build/motion-CAPq8wSn.cjs.map +1 -0
- package/build/motion-Dt6TyEjN.js +128 -0
- package/build/motion-Dt6TyEjN.js.map +1 -0
- package/build/outside-B3nRnDGb.cjs +3 -0
- package/build/outside-B3nRnDGb.cjs.map +1 -0
- package/build/outside-DpK1pI8b.js +24 -0
- package/build/outside-DpK1pI8b.js.map +1 -0
- package/build/pagination-Dbs4Lrpt.cjs +3 -0
- package/build/pagination-Dbs4Lrpt.cjs.map +1 -0
- package/build/pagination-YXSjZsMZ.js +110 -0
- package/build/pagination-YXSjZsMZ.js.map +1 -0
- package/build/popover-1k1MNFwv.js +1948 -0
- package/build/popover-1k1MNFwv.js.map +1 -0
- package/build/popover-CgwGn-55.cjs +3 -0
- package/build/popover-CgwGn-55.cjs.map +1 -0
- package/build/preview-C_yFxoFH.js +65 -0
- package/build/preview-C_yFxoFH.js.map +1 -0
- package/build/preview-dT7fmxcc.cjs +3 -0
- package/build/preview-dT7fmxcc.cjs.map +1 -0
- package/build/proxy-_gZenxVU.cjs +3 -0
- package/build/proxy-_gZenxVU.cjs.map +1 -0
- package/build/proxy-wCWa57J3.js +4354 -0
- package/build/proxy-wCWa57J3.js.map +1 -0
- package/build/select-B0adRX2_.cjs +9 -0
- package/build/select-B0adRX2_.cjs.map +1 -0
- package/build/select-D7EyxR2l.js +3443 -0
- package/build/select-D7EyxR2l.js.map +1 -0
- package/build/separator-CbeH8Lug.cjs +3 -0
- package/build/separator-CbeH8Lug.cjs.map +1 -0
- package/build/separator-hWp-s54-.js +29 -0
- package/build/separator-hWp-s54-.js.map +1 -0
- package/build/skeleton-BoVFwt7y.cjs +3 -0
- package/build/skeleton-BoVFwt7y.cjs.map +1 -0
- package/build/skeleton-DNwTI6w0.js +39 -0
- package/build/skeleton-DNwTI6w0.js.map +1 -0
- package/build/style-motion.cjs.js +1 -2
- package/build/style-motion.d.ts +2 -20
- package/build/style-motion.es.js +5 -6
- package/build/style-utils.cjs.js +1 -0
- package/build/style-utils.d.ts +2 -0
- package/build/style-utils.es.js +7 -0
- package/build/styles/motion/index.d.ts +1 -0
- package/build/styles/motion/motion.d.ts +13 -0
- package/build/styles/utils/constants.d.ts +1797 -0
- package/build/styles/utils/functions.d.ts +3 -0
- package/build/styles/utils/index.d.ts +3 -0
- package/build/styles/utils/types.d.ts +68 -0
- package/build/textarea-CbZSeqGR.cjs +3 -0
- package/build/textarea-CbZSeqGR.cjs.map +1 -0
- package/build/textarea-ChkjV_Ha.js +132 -0
- package/build/textarea-ChkjV_Ha.js.map +1 -0
- package/build/toggle-I6YvEX4w.js +86 -0
- package/build/toggle-I6YvEX4w.js.map +1 -0
- package/build/toggle-gYw5FUp-.cjs +3 -0
- package/build/toggle-gYw5FUp-.cjs.map +1 -0
- package/build/typography-B2KioMfq.js +116 -0
- package/build/typography-B2KioMfq.js.map +1 -0
- package/build/typography-DcxhX_9e.cjs +3 -0
- package/build/typography-DcxhX_9e.cjs.map +1 -0
- package/build/utils-Cona48dZ.js +925 -0
- package/build/utils-Cona48dZ.js.map +1 -0
- package/build/utils-DtinAjAU.cjs +3 -0
- package/build/utils-DtinAjAU.cjs.map +1 -0
- package/build/v4-BDi_Luux.cjs +3 -0
- package/build/v4-BDi_Luux.cjs.map +1 -0
- package/build/v4-CYaPyb-W.js +31 -0
- package/build/v4-CYaPyb-W.js.map +1 -0
- package/package.json +185 -194
- package/build/area-0BNtBqG8.cjs +0 -2
- package/build/area-0BNtBqG8.cjs.map +0 -1
- package/build/area-B6xxVQ87.js +0 -35
- package/build/area-B6xxVQ87.js.map +0 -1
- package/build/area-B7-4IFQB.js +0 -19
- package/build/area-B7-4IFQB.js.map +0 -1
- package/build/area-DxKLtDFZ.cjs +0 -2
- package/build/area-DxKLtDFZ.cjs.map +0 -1
- package/build/area-outside.cjs.js.map +0 -1
- package/build/area-outside.es.js.map +0 -1
- package/build/area-preview.cjs.js.map +0 -1
- package/build/area-preview.es.js.map +0 -1
- package/build/area-scroll.cjs.js +0 -2
- package/build/area-scroll.cjs.js.map +0 -1
- package/build/area-scroll.d.ts +0 -57
- package/build/area-scroll.es.js +0 -7
- package/build/area-scroll.es.js.map +0 -1
- package/build/area-skeleton.cjs.js.map +0 -1
- package/build/area-skeleton.es.js.map +0 -1
- package/build/area-smooth.cjs.js +0 -2
- package/build/area-smooth.cjs.js.map +0 -1
- package/build/area-smooth.d.ts +0 -37
- package/build/area-smooth.es.js +0 -5
- package/build/area-smooth.es.js.map +0 -1
- package/build/area.hooks-Bk04M7mk.js +0 -26
- package/build/area.hooks-Bk04M7mk.js.map +0 -1
- package/build/area.hooks-C_UKZzcb.cjs +0 -2
- package/build/area.hooks-C_UKZzcb.cjs.map +0 -1
- package/build/area.styles-Cpx4H0gc.cjs +0 -27
- package/build/area.styles-Cpx4H0gc.cjs.map +0 -1
- package/build/area.styles-DhCCEhuq.js +0 -32
- package/build/area.styles-DhCCEhuq.js.map +0 -1
- package/build/component-B72M2Tpw.js +0 -84
- package/build/component-B72M2Tpw.js.map +0 -1
- package/build/component-BIxOOifU.cjs +0 -2
- package/build/component-BIxOOifU.cjs.map +0 -1
- package/build/component-BMIqhbpK.js +0 -23
- package/build/component-BMIqhbpK.js.map +0 -1
- package/build/component-BQru5uoj.js +0 -10
- package/build/component-BQru5uoj.js.map +0 -1
- package/build/component-BRCDQbb-.js +0 -50
- package/build/component-BRCDQbb-.js.map +0 -1
- package/build/component-BUkf5TLO.js +0 -170
- package/build/component-BUkf5TLO.js.map +0 -1
- package/build/component-BmccRQ_Y.cjs +0 -2
- package/build/component-BmccRQ_Y.cjs.map +0 -1
- package/build/component-Bvq-fgCN.cjs +0 -2
- package/build/component-Bvq-fgCN.cjs.map +0 -1
- package/build/component-C448kBTA.js +0 -443
- package/build/component-C448kBTA.js.map +0 -1
- package/build/component-C6I01Mel.cjs +0 -2
- package/build/component-C6I01Mel.cjs.map +0 -1
- package/build/component-C8mTuBua.js +0 -74
- package/build/component-C8mTuBua.js.map +0 -1
- package/build/component-CVWsmIlg.cjs +0 -2
- package/build/component-CVWsmIlg.cjs.map +0 -1
- package/build/component-C_6x7Mk8.js +0 -88
- package/build/component-C_6x7Mk8.js.map +0 -1
- package/build/component-CbWtsuhz.js +0 -60
- package/build/component-CbWtsuhz.js.map +0 -1
- package/build/component-Cfs39n8Q.js +0 -21
- package/build/component-Cfs39n8Q.js.map +0 -1
- package/build/component-CoOTSdM5.cjs +0 -28
- package/build/component-CoOTSdM5.cjs.map +0 -1
- package/build/component-Cu2i_-RT.cjs +0 -2
- package/build/component-Cu2i_-RT.cjs.map +0 -1
- package/build/component-CyZbUCkT.js +0 -39
- package/build/component-CyZbUCkT.js.map +0 -1
- package/build/component-D-HMYzXU.js +0 -65
- package/build/component-D-HMYzXU.js.map +0 -1
- package/build/component-D2vDwS60.cjs +0 -2
- package/build/component-D2vDwS60.cjs.map +0 -1
- package/build/component-D3KCIC-G.js +0 -64
- package/build/component-D3KCIC-G.js.map +0 -1
- package/build/component-DJAq34yj.cjs +0 -2
- package/build/component-DJAq34yj.cjs.map +0 -1
- package/build/component-DRMRXUJA.cjs +0 -2
- package/build/component-DRMRXUJA.cjs.map +0 -1
- package/build/component-DfSTPgfj.js +0 -248
- package/build/component-DfSTPgfj.js.map +0 -1
- package/build/component-DqV_-YxZ.cjs +0 -2
- package/build/component-DqV_-YxZ.cjs.map +0 -1
- package/build/component-DrmSI_ni.cjs +0 -2
- package/build/component-DrmSI_ni.cjs.map +0 -1
- package/build/component-Qxjnm7yi.cjs +0 -2
- package/build/component-Qxjnm7yi.cjs.map +0 -1
- package/build/component-WmDPzhcW.cjs +0 -2
- package/build/component-WmDPzhcW.cjs.map +0 -1
- package/build/component-accordion.cjs.js +0 -2
- package/build/component-accordion.cjs.js.map +0 -1
- package/build/component-accordion.d.ts +0 -100
- package/build/component-accordion.es.js +0 -11
- package/build/component-accordion.es.js.map +0 -1
- package/build/component-button-group.cjs.js +0 -2
- package/build/component-button-group.cjs.js.map +0 -1
- package/build/component-button-group.d.ts +0 -195
- package/build/component-button-group.es.js +0 -7
- package/build/component-button-group.es.js.map +0 -1
- package/build/component-button.cjs.js.map +0 -1
- package/build/component-button.es.js.map +0 -1
- package/build/component-checkbox-group.cjs.js +0 -2
- package/build/component-checkbox-group.cjs.js.map +0 -1
- package/build/component-checkbox-group.d.ts +0 -224
- package/build/component-checkbox-group.es.js +0 -12
- package/build/component-checkbox-group.es.js.map +0 -1
- package/build/component-checkbox.cjs.js.map +0 -1
- package/build/component-checkbox.es.js.map +0 -1
- package/build/component-date-picker.cjs.js.map +0 -1
- package/build/component-date-picker.es.js.map +0 -1
- package/build/component-gcvwlILJ.js +0 -76
- package/build/component-gcvwlILJ.js.map +0 -1
- package/build/component-icon.cjs.js.map +0 -1
- package/build/component-icon.es.js.map +0 -1
- package/build/component-image-button.cjs.js +0 -2
- package/build/component-image-button.cjs.js.map +0 -1
- package/build/component-image-button.d.ts +0 -215
- package/build/component-image-button.es.js +0 -5
- package/build/component-image-button.es.js.map +0 -1
- package/build/component-image-select.cjs.js +0 -2
- package/build/component-image-select.cjs.js.map +0 -1
- package/build/component-image-select.d.ts +0 -313
- package/build/component-image-select.es.js +0 -12
- package/build/component-image-select.es.js.map +0 -1
- package/build/component-image-slider.cjs.js +0 -2
- package/build/component-image-slider.cjs.js.map +0 -1
- package/build/component-image-slider.d.ts +0 -108
- package/build/component-image-slider.es.js +0 -9
- package/build/component-image-slider.es.js.map +0 -1
- package/build/component-image.cjs.js +0 -2
- package/build/component-image.cjs.js.map +0 -1
- package/build/component-image.d.ts +0 -51
- package/build/component-image.es.js +0 -7
- package/build/component-image.es.js.map +0 -1
- package/build/component-input-otp.cjs.js.map +0 -1
- package/build/component-input-otp.es.js.map +0 -1
- package/build/component-input.cjs.js.map +0 -1
- package/build/component-input.es.js.map +0 -1
- package/build/component-mFXKTq1K.cjs +0 -2
- package/build/component-mFXKTq1K.cjs.map +0 -1
- package/build/component-pagination.cjs.js.map +0 -1
- package/build/component-pagination.es.js.map +0 -1
- package/build/component-range.cjs.js +0 -2
- package/build/component-range.cjs.js.map +0 -1
- package/build/component-range.d.ts +0 -212
- package/build/component-range.es.js +0 -9
- package/build/component-range.es.js.map +0 -1
- package/build/component-ripple.cjs.js +0 -2
- package/build/component-ripple.cjs.js.map +0 -1
- package/build/component-ripple.d.ts +0 -47
- package/build/component-ripple.es.js +0 -12
- package/build/component-ripple.es.js.map +0 -1
- package/build/component-select.cjs.js.map +0 -1
- package/build/component-select.es.js.map +0 -1
- package/build/component-separator.cjs.js.map +0 -1
- package/build/component-separator.es.js.map +0 -1
- package/build/component-stack.cjs.js.map +0 -1
- package/build/component-stack.es.js.map +0 -1
- package/build/component-textarea.cjs.js.map +0 -1
- package/build/component-textarea.es.js.map +0 -1
- package/build/component-toggle.cjs.js.map +0 -1
- package/build/component-toggle.es.js.map +0 -1
- package/build/component-tooltip.cjs.js.map +0 -1
- package/build/component-tooltip.es.js.map +0 -1
- package/build/component-typography.cjs.js.map +0 -1
- package/build/component-typography.es.js.map +0 -1
- package/build/component.constants-BQOzGr0l.js +0 -757
- package/build/component.constants-BQOzGr0l.js.map +0 -1
- package/build/component.constants-CFLrPu5_.cjs +0 -2
- package/build/component.constants-CFLrPu5_.cjs.map +0 -1
- package/build/component.constants-DI22AYyi.js +0 -142
- package/build/component.constants-DI22AYyi.js.map +0 -1
- package/build/component.constants-DnHO8qFb.cjs +0 -2
- package/build/component.constants-DnHO8qFb.cjs.map +0 -1
- package/build/component.functions-D9ffjEok.cjs +0 -8
- package/build/component.functions-D9ffjEok.cjs.map +0 -1
- package/build/component.functions-DNW6h8kk.js +0 -12
- package/build/component.functions-DNW6h8kk.js.map +0 -1
- package/build/component.styles-BX2Aiqp_.cjs +0 -43
- package/build/component.styles-BX2Aiqp_.cjs.map +0 -1
- package/build/component.styles-C0oU5oX_.js +0 -59
- package/build/component.styles-C0oU5oX_.js.map +0 -1
- package/build/component.styles-CD6ZzRrk.cjs +0 -14
- package/build/component.styles-CD6ZzRrk.cjs.map +0 -1
- package/build/component.styles-SZ5VuhNG.js +0 -20
- package/build/component.styles-SZ5VuhNG.js.map +0 -1
- package/build/component.types-6hyRS9ZB.cjs +0 -2
- package/build/component.types-6hyRS9ZB.cjs.map +0 -1
- package/build/component.types-e2YpVj0l.js +0 -907
- package/build/component.types-e2YpVj0l.js.map +0 -1
- package/build/consts.cjs.js +0 -2
- package/build/consts.cjs.js.map +0 -1
- package/build/consts.d.ts +0 -77
- package/build/consts.es.js +0 -151
- package/build/consts.es.js.map +0 -1
- package/build/context-BK9a46O1.cjs +0 -4
- package/build/context-BK9a46O1.cjs.map +0 -1
- package/build/context-CPZf131N.cjs +0 -2
- package/build/context-CPZf131N.cjs.map +0 -1
- package/build/context-Cr80KOpF.js +0 -122
- package/build/context-Cr80KOpF.js.map +0 -1
- package/build/context-DssNKJ_n.cjs +0 -2
- package/build/context-DssNKJ_n.cjs.map +0 -1
- package/build/context-PFdUnKga.js +0 -44
- package/build/context-PFdUnKga.js.map +0 -1
- package/build/context-app.cjs.js.map +0 -1
- package/build/context-app.es.js.map +0 -1
- package/build/context-cookie.cjs.js.map +0 -1
- package/build/context-cookie.es.js.map +0 -1
- package/build/context-dialog.cjs.js.map +0 -1
- package/build/context-dialog.es.js.map +0 -1
- package/build/context-geolocation.cjs.js.map +0 -1
- package/build/context-geolocation.es.js.map +0 -1
- package/build/context-local-storage.cjs.js.map +0 -1
- package/build/context-local-storage.es.js.map +0 -1
- package/build/context-permission.cjs.js.map +0 -1
- package/build/context-permission.es.js.map +0 -1
- package/build/context-screen-width.cjs.js.map +0 -1
- package/build/context-screen-width.es.js.map +0 -1
- package/build/context-sonner.cjs.js.map +0 -1
- package/build/context-sonner.es.js.map +0 -1
- package/build/context-w9weDPCZ.js +0 -200
- package/build/context-w9weDPCZ.js.map +0 -1
- package/build/context.constants-B14bB8O1.js +0 -254
- package/build/context.constants-B14bB8O1.js.map +0 -1
- package/build/context.constants-BA1u2p1r.cjs +0 -32
- package/build/context.constants-BA1u2p1r.cjs.map +0 -1
- package/build/context.constants-BWLe7YHv.js +0 -12598
- package/build/context.constants-BWLe7YHv.js.map +0 -1
- package/build/context.constants-baqYH-_k.cjs +0 -1742
- package/build/context.constants-baqYH-_k.cjs.map +0 -1
- package/build/context.functions--v7FClEV.cjs +0 -2
- package/build/context.functions--v7FClEV.cjs.map +0 -1
- package/build/context.functions-B8FDl7nJ.js +0 -14
- package/build/context.functions-B8FDl7nJ.js.map +0 -1
- package/build/context.functions-CB6--UcR.js +0 -35
- package/build/context.functions-CB6--UcR.js.map +0 -1
- package/build/context.functions-CHaPcuVS.cjs +0 -2
- package/build/context.functions-CHaPcuVS.cjs.map +0 -1
- package/build/context.functions-CPP8X6so.js +0 -35
- package/build/context.functions-CPP8X6so.js.map +0 -1
- package/build/context.functions-ar41xFVo.cjs +0 -2
- package/build/context.functions-ar41xFVo.cjs.map +0 -1
- package/build/context.hooks-B-YcyJ5E.cjs +0 -2
- package/build/context.hooks-B-YcyJ5E.cjs.map +0 -1
- package/build/context.hooks-B9dsW2kz.js +0 -117
- package/build/context.hooks-B9dsW2kz.js.map +0 -1
- package/build/context.hooks-Bi7spFak.cjs +0 -2
- package/build/context.hooks-Bi7spFak.cjs.map +0 -1
- package/build/context.hooks-BnHnPV_i.js +0 -49
- package/build/context.hooks-BnHnPV_i.js.map +0 -1
- package/build/context.hooks-CDnjxy35.cjs +0 -2
- package/build/context.hooks-CDnjxy35.cjs.map +0 -1
- package/build/context.hooks-DDD8ffJI.cjs +0 -2
- package/build/context.hooks-DDD8ffJI.cjs.map +0 -1
- package/build/context.hooks-Df0m0Voe.js +0 -13
- package/build/context.hooks-Df0m0Voe.js.map +0 -1
- package/build/context.hooks-DjafkFMD.cjs +0 -2
- package/build/context.hooks-DjafkFMD.cjs.map +0 -1
- package/build/context.hooks-DpwnIiRj.cjs +0 -2
- package/build/context.hooks-DpwnIiRj.cjs.map +0 -1
- package/build/context.hooks-HEeFGka7.js +0 -13
- package/build/context.hooks-HEeFGka7.js.map +0 -1
- package/build/context.hooks-NDk5ehgk.js +0 -13
- package/build/context.hooks-NDk5ehgk.js.map +0 -1
- package/build/context.hooks-oclt34zD.js +0 -68
- package/build/context.hooks-oclt34zD.js.map +0 -1
- package/build/functions.cjs.js +0 -2
- package/build/functions.cjs.js.map +0 -1
- package/build/functions.es.js +0 -50
- package/build/functions.es.js.map +0 -1
- package/build/index.cjs.js.map +0 -1
- package/build/index.es.js.map +0 -1
- package/build/jsx-runtime-C6yv_9g1.cjs +0 -11
- package/build/jsx-runtime-C6yv_9g1.cjs.map +0 -1
- package/build/jsx-runtime-DZS36FSE.js +0 -316
- package/build/jsx-runtime-DZS36FSE.js.map +0 -1
- package/build/motion-DrSN18V7.cjs +0 -2
- package/build/motion-DrSN18V7.cjs.map +0 -1
- package/build/motion-K7hUU4gL.js +0 -85
- package/build/motion-K7hUU4gL.js.map +0 -1
- package/build/style-BfuEu91g.js +0 -176
- package/build/style-BfuEu91g.js.map +0 -1
- package/build/style-Drq-Q1Im.cjs +0 -136
- package/build/style-Drq-Q1Im.cjs.map +0 -1
- package/build/style-add.cjs.js +0 -2
- package/build/style-add.cjs.js.map +0 -1
- package/build/style-add.d.ts +0 -88
- package/build/style-add.es.js +0 -17
- package/build/style-add.es.js.map +0 -1
- package/build/style-error.cjs.js +0 -2
- package/build/style-error.cjs.js.map +0 -1
- package/build/style-error.d.ts +0 -99
- package/build/style-error.es.js +0 -7
- package/build/style-error.es.js.map +0 -1
- package/build/style-fRZ6xrVp.cjs +0 -10
- package/build/style-fRZ6xrVp.cjs.map +0 -1
- package/build/style-motion.cjs.js.map +0 -1
- package/build/style-motion.es.js.map +0 -1
- package/build/style-plT9Ah7t.js +0 -33
- package/build/style-plT9Ah7t.js.map +0 -1
- package/build/style-sx.cjs.js +0 -2
- package/build/style-sx.cjs.js.map +0 -1
- package/build/style-sx.d.ts +0 -33
- package/build/style-sx.es.js +0 -5
- package/build/style-sx.es.js.map +0 -1
- package/build/style-theme.cjs.js +0 -2
- package/build/style-theme.cjs.js.map +0 -1
- package/build/style-theme.d.ts +0 -293
- package/build/style-theme.es.js +0 -16
- package/build/style-theme.es.js.map +0 -1
- package/build/types.cjs.js +0 -2
- package/build/types.cjs.js.map +0 -1
- package/build/types.d.ts +0 -27
- package/build/types.es.js +0 -2
- package/build/types.es.js.map +0 -1
- package/build/use-BF8VW4MA.cjs +0 -16
- package/build/use-BF8VW4MA.cjs.map +0 -1
- package/build/use-Bp8UVw4Y.js +0 -16
- package/build/use-Bp8UVw4Y.js.map +0 -1
- package/build/use-C7vngeRk.js +0 -882
- package/build/use-C7vngeRk.js.map +0 -1
- package/build/use-DdGWsOBo.js +0 -1577
- package/build/use-DdGWsOBo.js.map +0 -1
- package/build/use-IhzeVumv.cjs +0 -2
- package/build/use-IhzeVumv.cjs.map +0 -1
- package/build/use-zW3LuRc_.cjs +0 -2
- package/build/use-zW3LuRc_.cjs.map +0 -1
|
@@ -0,0 +1,4354 @@
|
|
|
1
|
+
import { a as fr, n as dr, r as mr } from "./chunk-cI0lbGMq.js";
|
|
2
|
+
import { jsx as Rs, jsxs as pr } from "react/jsx-runtime";
|
|
3
|
+
import { Component as vr, Fragment as Ls, createContext as ft, createElement as gr, forwardRef as yr, useCallback as Fs, useContext as k, useEffect as Le, useId as Tr, useInsertionEffect as xr, useLayoutEffect as Pr, useMemo as Xt, useRef as It } from "react";
|
|
4
|
+
var Bs = ft({});
|
|
5
|
+
function Sr(t) {
|
|
6
|
+
const e = It(null);
|
|
7
|
+
return e.current === null && (e.current = t()), e.current;
|
|
8
|
+
}
|
|
9
|
+
var Fe = ft(null), ks = ft({
|
|
10
|
+
transformPagePoint: (t) => t,
|
|
11
|
+
isStatic: !1,
|
|
12
|
+
reducedMotion: "never"
|
|
13
|
+
});
|
|
14
|
+
function br(t = !0) {
|
|
15
|
+
const e = k(Fe);
|
|
16
|
+
if (e === null) return [!0, null];
|
|
17
|
+
const { isPresent: i, onExitComplete: s, register: n } = e, o = Tr();
|
|
18
|
+
Le(() => {
|
|
19
|
+
t && n(o);
|
|
20
|
+
}, [t]);
|
|
21
|
+
const r = Fs(() => t && s && s(o), [
|
|
22
|
+
o,
|
|
23
|
+
s,
|
|
24
|
+
t
|
|
25
|
+
]);
|
|
26
|
+
return !i && s ? [!1, r] : [!0];
|
|
27
|
+
}
|
|
28
|
+
var Be = typeof window < "u", Ar = Be ? Pr : Le, O = /* @__NO_SIDE_EFFECTS__ */ (t) => t, dt = O, Y = O;
|
|
29
|
+
process.env.NODE_ENV !== "production" && (dt = (t, e) => {
|
|
30
|
+
!t && typeof console < "u" && console.warn(e);
|
|
31
|
+
}, Y = (t, e) => {
|
|
32
|
+
if (!t) throw new Error(e);
|
|
33
|
+
});
|
|
34
|
+
// @__NO_SIDE_EFFECTS__
|
|
35
|
+
function ke(t) {
|
|
36
|
+
let e;
|
|
37
|
+
return () => (e === void 0 && (e = t()), e);
|
|
38
|
+
}
|
|
39
|
+
var ut = /* @__NO_SIDE_EFFECTS__ */ (t, e, i) => {
|
|
40
|
+
const s = e - t;
|
|
41
|
+
return s === 0 ? 1 : (i - t) / s;
|
|
42
|
+
}, U = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, G = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3, Oe = {
|
|
43
|
+
skipAnimations: !1,
|
|
44
|
+
useManualTiming: !1
|
|
45
|
+
};
|
|
46
|
+
function wr(t) {
|
|
47
|
+
let e = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), s = !1, n = !1;
|
|
48
|
+
const o = /* @__PURE__ */ new WeakSet();
|
|
49
|
+
let r = {
|
|
50
|
+
delta: 0,
|
|
51
|
+
timestamp: 0,
|
|
52
|
+
isProcessing: !1
|
|
53
|
+
};
|
|
54
|
+
function a(u) {
|
|
55
|
+
o.has(u) && (l.schedule(u), t()), u(r);
|
|
56
|
+
}
|
|
57
|
+
const l = {
|
|
58
|
+
schedule: (u, c = !1, f = !1) => {
|
|
59
|
+
const h = f && s ? e : i;
|
|
60
|
+
return c && o.add(u), h.has(u) || h.add(u), u;
|
|
61
|
+
},
|
|
62
|
+
cancel: (u) => {
|
|
63
|
+
i.delete(u), o.delete(u);
|
|
64
|
+
},
|
|
65
|
+
process: (u) => {
|
|
66
|
+
if (r = u, s) {
|
|
67
|
+
n = !0;
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
s = !0, [e, i] = [i, e], e.forEach(a), e.clear(), s = !1, n && (n = !1, l.process(u));
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
return l;
|
|
74
|
+
}
|
|
75
|
+
var kt = [
|
|
76
|
+
"read",
|
|
77
|
+
"resolveKeyframes",
|
|
78
|
+
"update",
|
|
79
|
+
"preRender",
|
|
80
|
+
"render",
|
|
81
|
+
"postRender"
|
|
82
|
+
], Vr = 40;
|
|
83
|
+
function Os(t, e) {
|
|
84
|
+
let i = !1, s = !0;
|
|
85
|
+
const n = {
|
|
86
|
+
delta: 0,
|
|
87
|
+
timestamp: 0,
|
|
88
|
+
isProcessing: !1
|
|
89
|
+
}, o = () => i = !0, r = kt.reduce((v, g) => (v[g] = wr(o), v), {}), { read: a, resolveKeyframes: l, update: u, preRender: c, render: f, postRender: h } = r, d = () => {
|
|
90
|
+
const v = Oe.useManualTiming ? n.timestamp : performance.now();
|
|
91
|
+
i = !1, n.delta = s ? 1e3 / 60 : Math.max(Math.min(v - n.timestamp, Vr), 1), n.timestamp = v, n.isProcessing = !0, a.process(n), l.process(n), u.process(n), c.process(n), f.process(n), h.process(n), n.isProcessing = !1, i && e && (s = !1, t(d));
|
|
92
|
+
}, m = () => {
|
|
93
|
+
i = !0, s = !0, n.isProcessing || t(d);
|
|
94
|
+
};
|
|
95
|
+
return {
|
|
96
|
+
schedule: kt.reduce((v, g) => {
|
|
97
|
+
const x = r[g];
|
|
98
|
+
return v[g] = (b, S = !1, A = !1) => (i || m(), x.schedule(b, S, A)), v;
|
|
99
|
+
}, {}),
|
|
100
|
+
cancel: (v) => {
|
|
101
|
+
for (let g = 0; g < kt.length; g++) r[kt[g]].cancel(v);
|
|
102
|
+
},
|
|
103
|
+
state: n,
|
|
104
|
+
steps: r
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
var { schedule: w, cancel: X, state: R, steps: ne } = Os(typeof requestAnimationFrame < "u" ? requestAnimationFrame : O, !0), js = ft({ strict: !1 }), mi = {
|
|
108
|
+
animation: [
|
|
109
|
+
"animate",
|
|
110
|
+
"variants",
|
|
111
|
+
"whileHover",
|
|
112
|
+
"whileTap",
|
|
113
|
+
"exit",
|
|
114
|
+
"whileInView",
|
|
115
|
+
"whileFocus",
|
|
116
|
+
"whileDrag"
|
|
117
|
+
],
|
|
118
|
+
exit: ["exit"],
|
|
119
|
+
drag: ["drag", "dragControls"],
|
|
120
|
+
focus: ["whileFocus"],
|
|
121
|
+
hover: [
|
|
122
|
+
"whileHover",
|
|
123
|
+
"onHoverStart",
|
|
124
|
+
"onHoverEnd"
|
|
125
|
+
],
|
|
126
|
+
tap: [
|
|
127
|
+
"whileTap",
|
|
128
|
+
"onTap",
|
|
129
|
+
"onTapStart",
|
|
130
|
+
"onTapCancel"
|
|
131
|
+
],
|
|
132
|
+
pan: [
|
|
133
|
+
"onPan",
|
|
134
|
+
"onPanStart",
|
|
135
|
+
"onPanSessionStart",
|
|
136
|
+
"onPanEnd"
|
|
137
|
+
],
|
|
138
|
+
inView: [
|
|
139
|
+
"whileInView",
|
|
140
|
+
"onViewportEnter",
|
|
141
|
+
"onViewportLeave"
|
|
142
|
+
],
|
|
143
|
+
layout: ["layout", "layoutId"]
|
|
144
|
+
}, ct = {};
|
|
145
|
+
for (const t in mi) ct[t] = { isEnabled: (e) => mi[t].some((i) => !!e[i]) };
|
|
146
|
+
function Dr(t) {
|
|
147
|
+
for (const e in t) ct[e] = {
|
|
148
|
+
...ct[e],
|
|
149
|
+
...t[e]
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
var Mr = /* @__PURE__ */ new Set([
|
|
153
|
+
"animate",
|
|
154
|
+
"exit",
|
|
155
|
+
"variants",
|
|
156
|
+
"initial",
|
|
157
|
+
"style",
|
|
158
|
+
"values",
|
|
159
|
+
"variants",
|
|
160
|
+
"transition",
|
|
161
|
+
"transformTemplate",
|
|
162
|
+
"custom",
|
|
163
|
+
"inherit",
|
|
164
|
+
"onBeforeLayoutMeasure",
|
|
165
|
+
"onAnimationStart",
|
|
166
|
+
"onAnimationComplete",
|
|
167
|
+
"onUpdate",
|
|
168
|
+
"onDragStart",
|
|
169
|
+
"onDrag",
|
|
170
|
+
"onDragEnd",
|
|
171
|
+
"onMeasureDragConstraints",
|
|
172
|
+
"onDirectionLock",
|
|
173
|
+
"onDragTransitionEnd",
|
|
174
|
+
"_dragX",
|
|
175
|
+
"_dragY",
|
|
176
|
+
"onHoverStart",
|
|
177
|
+
"onHoverEnd",
|
|
178
|
+
"onViewportEnter",
|
|
179
|
+
"onViewportLeave",
|
|
180
|
+
"globalTapTarget",
|
|
181
|
+
"ignoreStrict",
|
|
182
|
+
"viewport"
|
|
183
|
+
]);
|
|
184
|
+
function Kt(t) {
|
|
185
|
+
return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || Mr.has(t);
|
|
186
|
+
}
|
|
187
|
+
var Cr = /* @__PURE__ */ mr({ default: () => Is }), Is, Er = dr((() => {
|
|
188
|
+
throw Is = {}, new Error('Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?');
|
|
189
|
+
})), Ns = (t) => !Kt(t);
|
|
190
|
+
function Rr(t) {
|
|
191
|
+
t && (Ns = (e) => e.startsWith("on") ? !Kt(e) : t(e));
|
|
192
|
+
}
|
|
193
|
+
try {
|
|
194
|
+
Rr((Er(), fr(Cr)).default);
|
|
195
|
+
} catch {
|
|
196
|
+
}
|
|
197
|
+
function Lr(t, e, i) {
|
|
198
|
+
const s = {};
|
|
199
|
+
for (const n in t)
|
|
200
|
+
n === "values" && typeof t.values == "object" || (Ns(n) || i === !0 && Kt(n) || !e && !Kt(n) || t.draggable && n.startsWith("onDrag")) && (s[n] = t[n]);
|
|
201
|
+
return s;
|
|
202
|
+
}
|
|
203
|
+
var pi = /* @__PURE__ */ new Set();
|
|
204
|
+
function qt(t, e, i) {
|
|
205
|
+
t || pi.has(e) || (console.warn(e), i && console.warn(i), pi.add(e));
|
|
206
|
+
}
|
|
207
|
+
function Fr(t) {
|
|
208
|
+
if (typeof Proxy > "u") return t;
|
|
209
|
+
const e = /* @__PURE__ */ new Map(), i = (...s) => (process.env.NODE_ENV !== "production" && qt(!1, "motion() is deprecated. Use motion.create() instead."), t(...s));
|
|
210
|
+
return new Proxy(i, { get: (s, n) => n === "create" ? t : (e.has(n) || e.set(n, t(n)), e.get(n)) });
|
|
211
|
+
}
|
|
212
|
+
var Zt = ft({});
|
|
213
|
+
function wt(t) {
|
|
214
|
+
return typeof t == "string" || Array.isArray(t);
|
|
215
|
+
}
|
|
216
|
+
function Jt(t) {
|
|
217
|
+
return t !== null && typeof t == "object" && typeof t.start == "function";
|
|
218
|
+
}
|
|
219
|
+
var je = [
|
|
220
|
+
"animate",
|
|
221
|
+
"whileInView",
|
|
222
|
+
"whileFocus",
|
|
223
|
+
"whileHover",
|
|
224
|
+
"whileTap",
|
|
225
|
+
"whileDrag",
|
|
226
|
+
"exit"
|
|
227
|
+
], Ie = ["initial", ...je];
|
|
228
|
+
function Qt(t) {
|
|
229
|
+
return Jt(t.animate) || Ie.some((e) => wt(t[e]));
|
|
230
|
+
}
|
|
231
|
+
function _s(t) {
|
|
232
|
+
return !!(Qt(t) || t.variants);
|
|
233
|
+
}
|
|
234
|
+
function Br(t, e) {
|
|
235
|
+
if (Qt(t)) {
|
|
236
|
+
const { initial: i, animate: s } = t;
|
|
237
|
+
return {
|
|
238
|
+
initial: i === !1 || wt(i) ? i : void 0,
|
|
239
|
+
animate: wt(s) ? s : void 0
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
return t.inherit !== !1 ? e : {};
|
|
243
|
+
}
|
|
244
|
+
function kr(t) {
|
|
245
|
+
const { initial: e, animate: i } = Br(t, k(Zt));
|
|
246
|
+
return Xt(() => ({
|
|
247
|
+
initial: e,
|
|
248
|
+
animate: i
|
|
249
|
+
}), [vi(e), vi(i)]);
|
|
250
|
+
}
|
|
251
|
+
function vi(t) {
|
|
252
|
+
return Array.isArray(t) ? t.join(" ") : t;
|
|
253
|
+
}
|
|
254
|
+
var Or = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
|
|
255
|
+
function nt(t) {
|
|
256
|
+
return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
|
|
257
|
+
}
|
|
258
|
+
function jr(t, e, i) {
|
|
259
|
+
return Fs((s) => {
|
|
260
|
+
s && t.onMount && t.onMount(s), e && (s ? e.mount(s) : e.unmount()), i && (typeof i == "function" ? i(s) : nt(i) && (i.current = s));
|
|
261
|
+
}, [e]);
|
|
262
|
+
}
|
|
263
|
+
var Ne = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Ir = "framerAppearId", Us = "data-" + Ne(Ir), { schedule: _e, cancel: Qu } = Os(queueMicrotask, !1), Ks = ft({});
|
|
264
|
+
function Nr(t, e, i, s, n) {
|
|
265
|
+
var o, r;
|
|
266
|
+
const { visualElement: a } = k(Zt), l = k(js), u = k(Fe), c = k(ks).reducedMotion, f = It(null);
|
|
267
|
+
s = s || l.renderer, !f.current && s && (f.current = s(t, {
|
|
268
|
+
visualState: e,
|
|
269
|
+
parent: a,
|
|
270
|
+
props: i,
|
|
271
|
+
presenceContext: u,
|
|
272
|
+
blockInitialAnimation: u ? u.initial === !1 : !1,
|
|
273
|
+
reducedMotionConfig: c
|
|
274
|
+
}));
|
|
275
|
+
const h = f.current, d = k(Ks);
|
|
276
|
+
h && !h.projection && n && (h.type === "html" || h.type === "svg") && _r(f.current, i, n, d);
|
|
277
|
+
const m = It(!1);
|
|
278
|
+
xr(() => {
|
|
279
|
+
h && m.current && h.update(i, u);
|
|
280
|
+
});
|
|
281
|
+
const p = i[Us], T = It(!!p && !(!((o = window.MotionHandoffIsComplete) === null || o === void 0) && o.call(window, p)) && ((r = window.MotionHasOptimisedAnimation) === null || r === void 0 ? void 0 : r.call(window, p)));
|
|
282
|
+
return Ar(() => {
|
|
283
|
+
h && (m.current = !0, window.MotionIsMounted = !0, h.updateFeatures(), _e.render(h.render), T.current && h.animationState && h.animationState.animateChanges());
|
|
284
|
+
}), Le(() => {
|
|
285
|
+
h && (!T.current && h.animationState && h.animationState.animateChanges(), T.current && (queueMicrotask(() => {
|
|
286
|
+
var v;
|
|
287
|
+
(v = window.MotionHandoffMarkAsComplete) === null || v === void 0 || v.call(window, p);
|
|
288
|
+
}), T.current = !1));
|
|
289
|
+
}), h;
|
|
290
|
+
}
|
|
291
|
+
function _r(t, e, i, s) {
|
|
292
|
+
const { layoutId: n, layout: o, drag: r, dragConstraints: a, layoutScroll: l, layoutRoot: u } = e;
|
|
293
|
+
t.projection = new i(t.latestValues, e["data-framer-portal-id"] ? void 0 : $s(t.parent)), t.projection.setOptions({
|
|
294
|
+
layoutId: n,
|
|
295
|
+
layout: o,
|
|
296
|
+
alwaysMeasureLayout: !!r || a && nt(a),
|
|
297
|
+
visualElement: t,
|
|
298
|
+
animationType: typeof o == "string" ? o : "both",
|
|
299
|
+
initialPromotionConfig: s,
|
|
300
|
+
layoutScroll: l,
|
|
301
|
+
layoutRoot: u
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
function $s(t) {
|
|
305
|
+
if (t)
|
|
306
|
+
return t.options.allowProjection !== !1 ? t.projection : $s(t.parent);
|
|
307
|
+
}
|
|
308
|
+
function Ur({ preloadedFeatures: t, createVisualElement: e, useRender: i, useVisualState: s, Component: n }) {
|
|
309
|
+
var o, r;
|
|
310
|
+
t && Dr(t);
|
|
311
|
+
function a(u, c) {
|
|
312
|
+
let f;
|
|
313
|
+
const h = {
|
|
314
|
+
...k(ks),
|
|
315
|
+
...u,
|
|
316
|
+
layoutId: Kr(u)
|
|
317
|
+
}, { isStatic: d } = h, m = kr(u), p = s(u, d);
|
|
318
|
+
if (!d && Be) {
|
|
319
|
+
$r(h, t);
|
|
320
|
+
const T = Wr(h);
|
|
321
|
+
f = T.MeasureLayout, m.visualElement = Nr(n, p, h, e, T.ProjectionNode);
|
|
322
|
+
}
|
|
323
|
+
return pr(Zt.Provider, {
|
|
324
|
+
value: m,
|
|
325
|
+
children: [f && m.visualElement ? Rs(f, {
|
|
326
|
+
visualElement: m.visualElement,
|
|
327
|
+
...h
|
|
328
|
+
}) : null, i(n, u, jr(p, m.visualElement, c), p, d, m.visualElement)]
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
a.displayName = `motion.${typeof n == "string" ? n : `create(${(r = (o = n.displayName) !== null && o !== void 0 ? o : n.name) !== null && r !== void 0 ? r : ""})`}`;
|
|
332
|
+
const l = yr(a);
|
|
333
|
+
return l[Or] = n, l;
|
|
334
|
+
}
|
|
335
|
+
function Kr({ layoutId: t }) {
|
|
336
|
+
const e = k(Bs).id;
|
|
337
|
+
return e && t !== void 0 ? e + "-" + t : t;
|
|
338
|
+
}
|
|
339
|
+
function $r(t, e) {
|
|
340
|
+
const i = k(js).strict;
|
|
341
|
+
if (process.env.NODE_ENV !== "production" && e && i) {
|
|
342
|
+
const s = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
343
|
+
t.ignoreStrict ? dt(!1, s) : Y(!1, s);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
function Wr(t) {
|
|
347
|
+
const { drag: e, layout: i } = ct;
|
|
348
|
+
if (!e && !i) return {};
|
|
349
|
+
const s = {
|
|
350
|
+
...e,
|
|
351
|
+
...i
|
|
352
|
+
};
|
|
353
|
+
return {
|
|
354
|
+
MeasureLayout: e?.isEnabled(t) || i?.isEnabled(t) ? s.MeasureLayout : void 0,
|
|
355
|
+
ProjectionNode: s.ProjectionNode
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
var Gr = [
|
|
359
|
+
"animate",
|
|
360
|
+
"circle",
|
|
361
|
+
"defs",
|
|
362
|
+
"desc",
|
|
363
|
+
"ellipse",
|
|
364
|
+
"g",
|
|
365
|
+
"image",
|
|
366
|
+
"line",
|
|
367
|
+
"filter",
|
|
368
|
+
"marker",
|
|
369
|
+
"mask",
|
|
370
|
+
"metadata",
|
|
371
|
+
"path",
|
|
372
|
+
"pattern",
|
|
373
|
+
"polygon",
|
|
374
|
+
"polyline",
|
|
375
|
+
"rect",
|
|
376
|
+
"stop",
|
|
377
|
+
"switch",
|
|
378
|
+
"symbol",
|
|
379
|
+
"svg",
|
|
380
|
+
"text",
|
|
381
|
+
"tspan",
|
|
382
|
+
"use",
|
|
383
|
+
"view"
|
|
384
|
+
];
|
|
385
|
+
function Ue(t) {
|
|
386
|
+
return typeof t != "string" || t.includes("-") ? !1 : !!(Gr.indexOf(t) > -1 || /[A-Z]/u.test(t));
|
|
387
|
+
}
|
|
388
|
+
function gi(t) {
|
|
389
|
+
const e = [{}, {}];
|
|
390
|
+
return t?.values.forEach((i, s) => {
|
|
391
|
+
e[0][s] = i.get(), e[1][s] = i.getVelocity();
|
|
392
|
+
}), e;
|
|
393
|
+
}
|
|
394
|
+
function Ke(t, e, i, s) {
|
|
395
|
+
if (typeof e == "function") {
|
|
396
|
+
const [n, o] = gi(s);
|
|
397
|
+
e = e(i !== void 0 ? i : t.custom, n, o);
|
|
398
|
+
}
|
|
399
|
+
if (typeof e == "string" && (e = t.variants && t.variants[e]), typeof e == "function") {
|
|
400
|
+
const [n, o] = gi(s);
|
|
401
|
+
e = e(i !== void 0 ? i : t.custom, n, o);
|
|
402
|
+
}
|
|
403
|
+
return e;
|
|
404
|
+
}
|
|
405
|
+
var ge = (t) => Array.isArray(t), zr = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), Hr = (t) => ge(t) ? t[t.length - 1] || 0 : t, F = (t) => !!(t && t.getVelocity);
|
|
406
|
+
function Nt(t) {
|
|
407
|
+
const e = F(t) ? t.get() : t;
|
|
408
|
+
return zr(e) ? e.toValue() : e;
|
|
409
|
+
}
|
|
410
|
+
function Yr({ scrapeMotionValuesFromProps: t, createRenderState: e, onUpdate: i }, s, n, o) {
|
|
411
|
+
const r = {
|
|
412
|
+
latestValues: Xr(s, n, o, t),
|
|
413
|
+
renderState: e()
|
|
414
|
+
};
|
|
415
|
+
return i && (r.onMount = (a) => i({
|
|
416
|
+
props: s,
|
|
417
|
+
current: a,
|
|
418
|
+
...r
|
|
419
|
+
}), r.onUpdate = (a) => i(a)), r;
|
|
420
|
+
}
|
|
421
|
+
var Ws = (t) => (e, i) => {
|
|
422
|
+
const s = k(Zt), n = k(Fe), o = () => Yr(t, e, s, n);
|
|
423
|
+
return i ? o() : Sr(o);
|
|
424
|
+
};
|
|
425
|
+
function Xr(t, e, i, s) {
|
|
426
|
+
const n = {}, o = s(t, {});
|
|
427
|
+
for (const h in o) n[h] = Nt(o[h]);
|
|
428
|
+
let { initial: r, animate: a } = t;
|
|
429
|
+
const l = Qt(t), u = _s(t);
|
|
430
|
+
e && u && !l && t.inherit !== !1 && (r === void 0 && (r = e.initial), a === void 0 && (a = e.animate));
|
|
431
|
+
let c = i ? i.initial === !1 : !1;
|
|
432
|
+
c = c || r === !1;
|
|
433
|
+
const f = c ? a : r;
|
|
434
|
+
if (f && typeof f != "boolean" && !Jt(f)) {
|
|
435
|
+
const h = Array.isArray(f) ? f : [f];
|
|
436
|
+
for (let d = 0; d < h.length; d++) {
|
|
437
|
+
const m = Ke(t, h[d]);
|
|
438
|
+
if (m) {
|
|
439
|
+
const { transitionEnd: p, transition: T, ...v } = m;
|
|
440
|
+
for (const g in v) {
|
|
441
|
+
let x = v[g];
|
|
442
|
+
if (Array.isArray(x)) {
|
|
443
|
+
const b = c ? x.length - 1 : 0;
|
|
444
|
+
x = x[b];
|
|
445
|
+
}
|
|
446
|
+
x !== null && (n[g] = x);
|
|
447
|
+
}
|
|
448
|
+
for (const g in p) n[g] = p[g];
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
return n;
|
|
453
|
+
}
|
|
454
|
+
var mt = [
|
|
455
|
+
"transformPerspective",
|
|
456
|
+
"x",
|
|
457
|
+
"y",
|
|
458
|
+
"z",
|
|
459
|
+
"translateX",
|
|
460
|
+
"translateY",
|
|
461
|
+
"translateZ",
|
|
462
|
+
"scale",
|
|
463
|
+
"scaleX",
|
|
464
|
+
"scaleY",
|
|
465
|
+
"rotate",
|
|
466
|
+
"rotateX",
|
|
467
|
+
"rotateY",
|
|
468
|
+
"rotateZ",
|
|
469
|
+
"skew",
|
|
470
|
+
"skewX",
|
|
471
|
+
"skewY"
|
|
472
|
+
], st = new Set(mt), Gs = (t) => (e) => typeof e == "string" && e.startsWith(t), zs = /* @__PURE__ */ Gs("--"), qr = /* @__PURE__ */ Gs("var(--"), $e = (t) => qr(t) ? Zr.test(t.split("/*")[0].trim()) : !1, Zr = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Hs = (t, e) => e && typeof t == "number" ? e.transform(t) : t, z = (t, e, i) => i > e ? e : i < t ? t : i, pt = {
|
|
473
|
+
test: (t) => typeof t == "number",
|
|
474
|
+
parse: parseFloat,
|
|
475
|
+
transform: (t) => t
|
|
476
|
+
}, Vt = {
|
|
477
|
+
...pt,
|
|
478
|
+
transform: (t) => z(0, 1, t)
|
|
479
|
+
}, Ot = {
|
|
480
|
+
...pt,
|
|
481
|
+
default: 1
|
|
482
|
+
}, Et = (t) => ({
|
|
483
|
+
test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
|
|
484
|
+
parse: parseFloat,
|
|
485
|
+
transform: (e) => `${e}${t}`
|
|
486
|
+
}), H = /* @__PURE__ */ Et("deg"), K = /* @__PURE__ */ Et("%"), y = /* @__PURE__ */ Et("px"), Jr = /* @__PURE__ */ Et("vh"), Qr = /* @__PURE__ */ Et("vw"), yi = {
|
|
487
|
+
...K,
|
|
488
|
+
parse: (t) => K.parse(t) / 100,
|
|
489
|
+
transform: (t) => K.transform(t * 100)
|
|
490
|
+
}, to = {
|
|
491
|
+
borderWidth: y,
|
|
492
|
+
borderTopWidth: y,
|
|
493
|
+
borderRightWidth: y,
|
|
494
|
+
borderBottomWidth: y,
|
|
495
|
+
borderLeftWidth: y,
|
|
496
|
+
borderRadius: y,
|
|
497
|
+
radius: y,
|
|
498
|
+
borderTopLeftRadius: y,
|
|
499
|
+
borderTopRightRadius: y,
|
|
500
|
+
borderBottomRightRadius: y,
|
|
501
|
+
borderBottomLeftRadius: y,
|
|
502
|
+
width: y,
|
|
503
|
+
maxWidth: y,
|
|
504
|
+
height: y,
|
|
505
|
+
maxHeight: y,
|
|
506
|
+
top: y,
|
|
507
|
+
right: y,
|
|
508
|
+
bottom: y,
|
|
509
|
+
left: y,
|
|
510
|
+
padding: y,
|
|
511
|
+
paddingTop: y,
|
|
512
|
+
paddingRight: y,
|
|
513
|
+
paddingBottom: y,
|
|
514
|
+
paddingLeft: y,
|
|
515
|
+
margin: y,
|
|
516
|
+
marginTop: y,
|
|
517
|
+
marginRight: y,
|
|
518
|
+
marginBottom: y,
|
|
519
|
+
marginLeft: y,
|
|
520
|
+
backgroundPositionX: y,
|
|
521
|
+
backgroundPositionY: y
|
|
522
|
+
}, eo = {
|
|
523
|
+
rotate: H,
|
|
524
|
+
rotateX: H,
|
|
525
|
+
rotateY: H,
|
|
526
|
+
rotateZ: H,
|
|
527
|
+
scale: Ot,
|
|
528
|
+
scaleX: Ot,
|
|
529
|
+
scaleY: Ot,
|
|
530
|
+
scaleZ: Ot,
|
|
531
|
+
skew: H,
|
|
532
|
+
skewX: H,
|
|
533
|
+
skewY: H,
|
|
534
|
+
distance: y,
|
|
535
|
+
translateX: y,
|
|
536
|
+
translateY: y,
|
|
537
|
+
translateZ: y,
|
|
538
|
+
x: y,
|
|
539
|
+
y,
|
|
540
|
+
z: y,
|
|
541
|
+
perspective: y,
|
|
542
|
+
transformPerspective: y,
|
|
543
|
+
opacity: Vt,
|
|
544
|
+
originX: yi,
|
|
545
|
+
originY: yi,
|
|
546
|
+
originZ: y
|
|
547
|
+
}, Ti = {
|
|
548
|
+
...pt,
|
|
549
|
+
transform: Math.round
|
|
550
|
+
}, We = {
|
|
551
|
+
...to,
|
|
552
|
+
...eo,
|
|
553
|
+
zIndex: Ti,
|
|
554
|
+
size: y,
|
|
555
|
+
fillOpacity: Vt,
|
|
556
|
+
strokeOpacity: Vt,
|
|
557
|
+
numOctaves: Ti
|
|
558
|
+
}, io = {
|
|
559
|
+
x: "translateX",
|
|
560
|
+
y: "translateY",
|
|
561
|
+
z: "translateZ",
|
|
562
|
+
transformPerspective: "perspective"
|
|
563
|
+
}, so = mt.length;
|
|
564
|
+
function no(t, e, i) {
|
|
565
|
+
let s = "", n = !0;
|
|
566
|
+
for (let o = 0; o < so; o++) {
|
|
567
|
+
const r = mt[o], a = t[r];
|
|
568
|
+
if (a === void 0) continue;
|
|
569
|
+
let l = !0;
|
|
570
|
+
if (typeof a == "number" ? l = a === (r.startsWith("scale") ? 1 : 0) : l = parseFloat(a) === 0, !l || i) {
|
|
571
|
+
const u = Hs(a, We[r]);
|
|
572
|
+
if (!l) {
|
|
573
|
+
n = !1;
|
|
574
|
+
const c = io[r] || r;
|
|
575
|
+
s += `${c}(${u}) `;
|
|
576
|
+
}
|
|
577
|
+
i && (e[r] = u);
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
return s = s.trim(), i ? s = i(e, n ? "" : s) : n && (s = "none"), s;
|
|
581
|
+
}
|
|
582
|
+
function Ge(t, e, i) {
|
|
583
|
+
const { style: s, vars: n, transformOrigin: o } = t;
|
|
584
|
+
let r = !1, a = !1;
|
|
585
|
+
for (const l in e) {
|
|
586
|
+
const u = e[l];
|
|
587
|
+
if (st.has(l)) {
|
|
588
|
+
r = !0;
|
|
589
|
+
continue;
|
|
590
|
+
} else if (zs(l)) {
|
|
591
|
+
n[l] = u;
|
|
592
|
+
continue;
|
|
593
|
+
} else {
|
|
594
|
+
const c = Hs(u, We[l]);
|
|
595
|
+
l.startsWith("origin") ? (a = !0, o[l] = c) : s[l] = c;
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
if (e.transform || (r || i ? s.transform = no(e, t.transform, i) : s.transform && (s.transform = "none")), a) {
|
|
599
|
+
const { originX: l = "50%", originY: u = "50%", originZ: c = 0 } = o;
|
|
600
|
+
s.transformOrigin = `${l} ${u} ${c}`;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
var ro = {
|
|
604
|
+
offset: "stroke-dashoffset",
|
|
605
|
+
array: "stroke-dasharray"
|
|
606
|
+
}, oo = {
|
|
607
|
+
offset: "strokeDashoffset",
|
|
608
|
+
array: "strokeDasharray"
|
|
609
|
+
};
|
|
610
|
+
function ao(t, e, i = 1, s = 0, n = !0) {
|
|
611
|
+
t.pathLength = 1;
|
|
612
|
+
const o = n ? ro : oo;
|
|
613
|
+
t[o.offset] = y.transform(-s);
|
|
614
|
+
const r = y.transform(e), a = y.transform(i);
|
|
615
|
+
t[o.array] = `${r} ${a}`;
|
|
616
|
+
}
|
|
617
|
+
function xi(t, e, i) {
|
|
618
|
+
return typeof t == "string" ? t : y.transform(e + i * t);
|
|
619
|
+
}
|
|
620
|
+
function lo(t, e, i) {
|
|
621
|
+
return `${xi(e, t.x, t.width)} ${xi(i, t.y, t.height)}`;
|
|
622
|
+
}
|
|
623
|
+
function ze(t, { attrX: e, attrY: i, attrScale: s, originX: n, originY: o, pathLength: r, pathSpacing: a = 1, pathOffset: l = 0, ...u }, c, f) {
|
|
624
|
+
if (Ge(t, u, f), c) {
|
|
625
|
+
t.style.viewBox && (t.attrs.viewBox = t.style.viewBox);
|
|
626
|
+
return;
|
|
627
|
+
}
|
|
628
|
+
t.attrs = t.style, t.style = {};
|
|
629
|
+
const { attrs: h, style: d, dimensions: m } = t;
|
|
630
|
+
h.transform && (m && (d.transform = h.transform), delete h.transform), m && (n !== void 0 || o !== void 0 || d.transform) && (d.transformOrigin = lo(m, n !== void 0 ? n : 0.5, o !== void 0 ? o : 0.5)), e !== void 0 && (h.x = e), i !== void 0 && (h.y = i), s !== void 0 && (h.scale = s), r !== void 0 && ao(h, r, a, l, !1);
|
|
631
|
+
}
|
|
632
|
+
var He = () => ({
|
|
633
|
+
style: {},
|
|
634
|
+
transform: {},
|
|
635
|
+
transformOrigin: {},
|
|
636
|
+
vars: {}
|
|
637
|
+
}), Ys = () => ({
|
|
638
|
+
...He(),
|
|
639
|
+
attrs: {}
|
|
640
|
+
}), Ye = (t) => typeof t == "string" && t.toLowerCase() === "svg";
|
|
641
|
+
function Xs(t, { style: e, vars: i }, s, n) {
|
|
642
|
+
Object.assign(t.style, e, n && n.getProjectionStyles(s));
|
|
643
|
+
for (const o in i) t.style.setProperty(o, i[o]);
|
|
644
|
+
}
|
|
645
|
+
var qs = /* @__PURE__ */ new Set([
|
|
646
|
+
"baseFrequency",
|
|
647
|
+
"diffuseConstant",
|
|
648
|
+
"kernelMatrix",
|
|
649
|
+
"kernelUnitLength",
|
|
650
|
+
"keySplines",
|
|
651
|
+
"keyTimes",
|
|
652
|
+
"limitingConeAngle",
|
|
653
|
+
"markerHeight",
|
|
654
|
+
"markerWidth",
|
|
655
|
+
"numOctaves",
|
|
656
|
+
"targetX",
|
|
657
|
+
"targetY",
|
|
658
|
+
"surfaceScale",
|
|
659
|
+
"specularConstant",
|
|
660
|
+
"specularExponent",
|
|
661
|
+
"stdDeviation",
|
|
662
|
+
"tableValues",
|
|
663
|
+
"viewBox",
|
|
664
|
+
"gradientTransform",
|
|
665
|
+
"pathLength",
|
|
666
|
+
"startOffset",
|
|
667
|
+
"textLength",
|
|
668
|
+
"lengthAdjust"
|
|
669
|
+
]);
|
|
670
|
+
function Zs(t, e, i, s) {
|
|
671
|
+
Xs(t, e, void 0, s);
|
|
672
|
+
for (const n in e.attrs) t.setAttribute(qs.has(n) ? n : Ne(n), e.attrs[n]);
|
|
673
|
+
}
|
|
674
|
+
var $t = {};
|
|
675
|
+
function uo(t) {
|
|
676
|
+
Object.assign($t, t);
|
|
677
|
+
}
|
|
678
|
+
function Js(t, { layout: e, layoutId: i }) {
|
|
679
|
+
return st.has(t) || t.startsWith("origin") || (e || i !== void 0) && (!!$t[t] || t === "opacity");
|
|
680
|
+
}
|
|
681
|
+
function Xe(t, e, i) {
|
|
682
|
+
var s;
|
|
683
|
+
const { style: n } = t, o = {};
|
|
684
|
+
for (const r in n) (F(n[r]) || e.style && F(e.style[r]) || Js(r, t) || ((s = i?.getValue(r)) === null || s === void 0 ? void 0 : s.liveStyle) !== void 0) && (o[r] = n[r]);
|
|
685
|
+
return o;
|
|
686
|
+
}
|
|
687
|
+
function Qs(t, e, i) {
|
|
688
|
+
const s = Xe(t, e, i);
|
|
689
|
+
for (const n in t) if (F(t[n]) || F(e[n])) {
|
|
690
|
+
const o = mt.indexOf(n) !== -1 ? "attr" + n.charAt(0).toUpperCase() + n.substring(1) : n;
|
|
691
|
+
s[o] = t[n];
|
|
692
|
+
}
|
|
693
|
+
return s;
|
|
694
|
+
}
|
|
695
|
+
function co(t, e) {
|
|
696
|
+
try {
|
|
697
|
+
e.dimensions = typeof t.getBBox == "function" ? t.getBBox() : t.getBoundingClientRect();
|
|
698
|
+
} catch {
|
|
699
|
+
e.dimensions = {
|
|
700
|
+
x: 0,
|
|
701
|
+
y: 0,
|
|
702
|
+
width: 0,
|
|
703
|
+
height: 0
|
|
704
|
+
};
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
var Pi = [
|
|
708
|
+
"x",
|
|
709
|
+
"y",
|
|
710
|
+
"width",
|
|
711
|
+
"height",
|
|
712
|
+
"cx",
|
|
713
|
+
"cy",
|
|
714
|
+
"r"
|
|
715
|
+
], ho = { useVisualState: Ws({
|
|
716
|
+
scrapeMotionValuesFromProps: Qs,
|
|
717
|
+
createRenderState: Ys,
|
|
718
|
+
onUpdate: ({ props: t, prevProps: e, current: i, renderState: s, latestValues: n }) => {
|
|
719
|
+
if (!i) return;
|
|
720
|
+
let o = !!t.drag;
|
|
721
|
+
if (!o) {
|
|
722
|
+
for (const a in n) if (st.has(a)) {
|
|
723
|
+
o = !0;
|
|
724
|
+
break;
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
if (!o) return;
|
|
728
|
+
let r = !e;
|
|
729
|
+
if (e) for (let a = 0; a < Pi.length; a++) {
|
|
730
|
+
const l = Pi[a];
|
|
731
|
+
t[l] !== e[l] && (r = !0);
|
|
732
|
+
}
|
|
733
|
+
r && w.read(() => {
|
|
734
|
+
co(i, s), w.render(() => {
|
|
735
|
+
ze(s, n, Ye(i.tagName), t.transformTemplate), Zs(i, s);
|
|
736
|
+
});
|
|
737
|
+
});
|
|
738
|
+
}
|
|
739
|
+
}) }, fo = { useVisualState: Ws({
|
|
740
|
+
scrapeMotionValuesFromProps: Xe,
|
|
741
|
+
createRenderState: He
|
|
742
|
+
}) };
|
|
743
|
+
function tn(t, e, i) {
|
|
744
|
+
for (const s in e) !F(e[s]) && !Js(s, i) && (t[s] = e[s]);
|
|
745
|
+
}
|
|
746
|
+
function mo({ transformTemplate: t }, e) {
|
|
747
|
+
return Xt(() => {
|
|
748
|
+
const i = He();
|
|
749
|
+
return Ge(i, e, t), Object.assign({}, i.vars, i.style);
|
|
750
|
+
}, [e]);
|
|
751
|
+
}
|
|
752
|
+
function po(t, e) {
|
|
753
|
+
const i = t.style || {}, s = {};
|
|
754
|
+
return tn(s, i, t), Object.assign(s, mo(t, e)), s;
|
|
755
|
+
}
|
|
756
|
+
function vo(t, e) {
|
|
757
|
+
const i = {}, s = po(t, e);
|
|
758
|
+
return t.drag && t.dragListener !== !1 && (i.draggable = !1, s.userSelect = s.WebkitUserSelect = s.WebkitTouchCallout = "none", s.touchAction = t.drag === !0 ? "none" : `pan-${t.drag === "x" ? "y" : "x"}`), t.tabIndex === void 0 && (t.onTap || t.onTapStart || t.whileTap) && (i.tabIndex = 0), i.style = s, i;
|
|
759
|
+
}
|
|
760
|
+
function go(t, e, i, s) {
|
|
761
|
+
const n = Xt(() => {
|
|
762
|
+
const o = Ys();
|
|
763
|
+
return ze(o, e, Ye(s), t.transformTemplate), {
|
|
764
|
+
...o.attrs,
|
|
765
|
+
style: { ...o.style }
|
|
766
|
+
};
|
|
767
|
+
}, [e]);
|
|
768
|
+
if (t.style) {
|
|
769
|
+
const o = {};
|
|
770
|
+
tn(o, t.style, t), n.style = {
|
|
771
|
+
...o,
|
|
772
|
+
...n.style
|
|
773
|
+
};
|
|
774
|
+
}
|
|
775
|
+
return n;
|
|
776
|
+
}
|
|
777
|
+
function yo(t = !1) {
|
|
778
|
+
return (i, s, n, { latestValues: o }, r) => {
|
|
779
|
+
const a = (Ue(i) ? go : vo)(s, o, r, i), l = Lr(s, typeof i == "string", t), u = i !== Ls ? {
|
|
780
|
+
...l,
|
|
781
|
+
...a,
|
|
782
|
+
ref: n
|
|
783
|
+
} : {}, { children: c } = s, f = Xt(() => F(c) ? c.get() : c, [c]);
|
|
784
|
+
return gr(i, {
|
|
785
|
+
...u,
|
|
786
|
+
children: f
|
|
787
|
+
});
|
|
788
|
+
};
|
|
789
|
+
}
|
|
790
|
+
function To(t, e) {
|
|
791
|
+
return function(s, { forwardMotionProps: n } = { forwardMotionProps: !1 }) {
|
|
792
|
+
return Ur({
|
|
793
|
+
...Ue(s) ? ho : fo,
|
|
794
|
+
preloadedFeatures: t,
|
|
795
|
+
useRender: yo(n),
|
|
796
|
+
createVisualElement: e,
|
|
797
|
+
Component: s
|
|
798
|
+
});
|
|
799
|
+
};
|
|
800
|
+
}
|
|
801
|
+
function en(t, e) {
|
|
802
|
+
if (!Array.isArray(e)) return !1;
|
|
803
|
+
const i = e.length;
|
|
804
|
+
if (i !== t.length) return !1;
|
|
805
|
+
for (let s = 0; s < i; s++) if (e[s] !== t[s]) return !1;
|
|
806
|
+
return !0;
|
|
807
|
+
}
|
|
808
|
+
function te(t, e, i) {
|
|
809
|
+
const s = t.getProps();
|
|
810
|
+
return Ke(s, e, i !== void 0 ? i : s.custom, t);
|
|
811
|
+
}
|
|
812
|
+
var xo = /* @__PURE__ */ ke(() => window.ScrollTimeline !== void 0), Po = class {
|
|
813
|
+
constructor(t) {
|
|
814
|
+
this.stop = () => this.runAll("stop"), this.animations = t.filter(Boolean);
|
|
815
|
+
}
|
|
816
|
+
get finished() {
|
|
817
|
+
return Promise.all(this.animations.map((t) => "finished" in t ? t.finished : t));
|
|
818
|
+
}
|
|
819
|
+
getAll(t) {
|
|
820
|
+
return this.animations[0][t];
|
|
821
|
+
}
|
|
822
|
+
setAll(t, e) {
|
|
823
|
+
for (let i = 0; i < this.animations.length; i++) this.animations[i][t] = e;
|
|
824
|
+
}
|
|
825
|
+
attachTimeline(t, e) {
|
|
826
|
+
const i = this.animations.map((s) => {
|
|
827
|
+
if (xo() && s.attachTimeline) return s.attachTimeline(t);
|
|
828
|
+
if (typeof e == "function") return e(s);
|
|
829
|
+
});
|
|
830
|
+
return () => {
|
|
831
|
+
i.forEach((s, n) => {
|
|
832
|
+
s && s(), this.animations[n].stop();
|
|
833
|
+
});
|
|
834
|
+
};
|
|
835
|
+
}
|
|
836
|
+
get time() {
|
|
837
|
+
return this.getAll("time");
|
|
838
|
+
}
|
|
839
|
+
set time(t) {
|
|
840
|
+
this.setAll("time", t);
|
|
841
|
+
}
|
|
842
|
+
get speed() {
|
|
843
|
+
return this.getAll("speed");
|
|
844
|
+
}
|
|
845
|
+
set speed(t) {
|
|
846
|
+
this.setAll("speed", t);
|
|
847
|
+
}
|
|
848
|
+
get startTime() {
|
|
849
|
+
return this.getAll("startTime");
|
|
850
|
+
}
|
|
851
|
+
get duration() {
|
|
852
|
+
let t = 0;
|
|
853
|
+
for (let e = 0; e < this.animations.length; e++) t = Math.max(t, this.animations[e].duration);
|
|
854
|
+
return t;
|
|
855
|
+
}
|
|
856
|
+
runAll(t) {
|
|
857
|
+
this.animations.forEach((e) => e[t]());
|
|
858
|
+
}
|
|
859
|
+
flatten() {
|
|
860
|
+
this.runAll("flatten");
|
|
861
|
+
}
|
|
862
|
+
play() {
|
|
863
|
+
this.runAll("play");
|
|
864
|
+
}
|
|
865
|
+
pause() {
|
|
866
|
+
this.runAll("pause");
|
|
867
|
+
}
|
|
868
|
+
cancel() {
|
|
869
|
+
this.runAll("cancel");
|
|
870
|
+
}
|
|
871
|
+
complete() {
|
|
872
|
+
this.runAll("complete");
|
|
873
|
+
}
|
|
874
|
+
}, So = class extends Po {
|
|
875
|
+
then(t, e) {
|
|
876
|
+
return Promise.all(this.animations).then(t).catch(e);
|
|
877
|
+
}
|
|
878
|
+
};
|
|
879
|
+
function qe(t, e) {
|
|
880
|
+
return t ? t[e] || t.default || t : void 0;
|
|
881
|
+
}
|
|
882
|
+
var bo = 2e4;
|
|
883
|
+
function sn(t) {
|
|
884
|
+
let e = 0;
|
|
885
|
+
const i = 50;
|
|
886
|
+
let s = t.next(e);
|
|
887
|
+
for (; !s.done && e < 2e4; )
|
|
888
|
+
e += i, s = t.next(e);
|
|
889
|
+
return e >= 2e4 ? 1 / 0 : e;
|
|
890
|
+
}
|
|
891
|
+
function Ze(t) {
|
|
892
|
+
return typeof t == "function";
|
|
893
|
+
}
|
|
894
|
+
function Si(t, e) {
|
|
895
|
+
t.timeline = e, t.onfinish = null;
|
|
896
|
+
}
|
|
897
|
+
var Je = (t) => Array.isArray(t) && typeof t[0] == "number", Ao = { linearEasing: void 0 };
|
|
898
|
+
function wo(t, e) {
|
|
899
|
+
const i = /* @__PURE__ */ ke(t);
|
|
900
|
+
return () => {
|
|
901
|
+
var s;
|
|
902
|
+
return (s = Ao[e]) !== null && s !== void 0 ? s : i();
|
|
903
|
+
};
|
|
904
|
+
}
|
|
905
|
+
var Wt = /* @__PURE__ */ wo(() => {
|
|
906
|
+
try {
|
|
907
|
+
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
|
|
908
|
+
} catch {
|
|
909
|
+
return !1;
|
|
910
|
+
}
|
|
911
|
+
return !0;
|
|
912
|
+
}, "linearEasing"), nn = (t, e, i = 10) => {
|
|
913
|
+
let s = "";
|
|
914
|
+
const n = Math.max(Math.round(e / i), 2);
|
|
915
|
+
for (let o = 0; o < n; o++) s += t(ut(0, n - 1, o)) + ", ";
|
|
916
|
+
return `linear(${s.substring(0, s.length - 2)})`;
|
|
917
|
+
};
|
|
918
|
+
function rn(t) {
|
|
919
|
+
return !!(typeof t == "function" && Wt() || !t || typeof t == "string" && (t in ye || Wt()) || Je(t) || Array.isArray(t) && t.every(rn));
|
|
920
|
+
}
|
|
921
|
+
var yt = ([t, e, i, s]) => `cubic-bezier(${t}, ${e}, ${i}, ${s})`, ye = {
|
|
922
|
+
linear: "linear",
|
|
923
|
+
ease: "ease",
|
|
924
|
+
easeIn: "ease-in",
|
|
925
|
+
easeOut: "ease-out",
|
|
926
|
+
easeInOut: "ease-in-out",
|
|
927
|
+
circIn: /* @__PURE__ */ yt([
|
|
928
|
+
0,
|
|
929
|
+
0.65,
|
|
930
|
+
0.55,
|
|
931
|
+
1
|
|
932
|
+
]),
|
|
933
|
+
circOut: /* @__PURE__ */ yt([
|
|
934
|
+
0.55,
|
|
935
|
+
0,
|
|
936
|
+
1,
|
|
937
|
+
0.45
|
|
938
|
+
]),
|
|
939
|
+
backIn: /* @__PURE__ */ yt([
|
|
940
|
+
0.31,
|
|
941
|
+
0.01,
|
|
942
|
+
0.66,
|
|
943
|
+
-0.59
|
|
944
|
+
]),
|
|
945
|
+
backOut: /* @__PURE__ */ yt([
|
|
946
|
+
0.33,
|
|
947
|
+
1.53,
|
|
948
|
+
0.69,
|
|
949
|
+
0.99
|
|
950
|
+
])
|
|
951
|
+
};
|
|
952
|
+
function on(t, e) {
|
|
953
|
+
if (t) return typeof t == "function" && Wt() ? nn(t, e) : Je(t) ? yt(t) : Array.isArray(t) ? t.map((i) => on(i, e) || ye.easeOut) : ye[t];
|
|
954
|
+
}
|
|
955
|
+
var _ = {
|
|
956
|
+
x: !1,
|
|
957
|
+
y: !1
|
|
958
|
+
};
|
|
959
|
+
function an() {
|
|
960
|
+
return _.x || _.y;
|
|
961
|
+
}
|
|
962
|
+
function Vo(t, e, i) {
|
|
963
|
+
var s;
|
|
964
|
+
if (t instanceof Element) return [t];
|
|
965
|
+
if (typeof t == "string") {
|
|
966
|
+
let n = document;
|
|
967
|
+
e && (n = e.current);
|
|
968
|
+
const o = (s = i?.[t]) !== null && s !== void 0 ? s : n.querySelectorAll(t);
|
|
969
|
+
return o ? Array.from(o) : [];
|
|
970
|
+
}
|
|
971
|
+
return Array.from(t);
|
|
972
|
+
}
|
|
973
|
+
function ln(t, e) {
|
|
974
|
+
const i = Vo(t), s = new AbortController(), n = {
|
|
975
|
+
passive: !0,
|
|
976
|
+
...e,
|
|
977
|
+
signal: s.signal
|
|
978
|
+
};
|
|
979
|
+
return [
|
|
980
|
+
i,
|
|
981
|
+
n,
|
|
982
|
+
() => s.abort()
|
|
983
|
+
];
|
|
984
|
+
}
|
|
985
|
+
function bi(t) {
|
|
986
|
+
return (e) => {
|
|
987
|
+
e.pointerType === "touch" || an() || t(e);
|
|
988
|
+
};
|
|
989
|
+
}
|
|
990
|
+
function Do(t, e, i = {}) {
|
|
991
|
+
const [s, n, o] = ln(t, i), r = bi((a) => {
|
|
992
|
+
const { target: l } = a, u = e(a);
|
|
993
|
+
if (typeof u != "function" || !l) return;
|
|
994
|
+
const c = bi((f) => {
|
|
995
|
+
u(f), l.removeEventListener("pointerleave", c);
|
|
996
|
+
});
|
|
997
|
+
l.addEventListener("pointerleave", c, n);
|
|
998
|
+
});
|
|
999
|
+
return s.forEach((a) => {
|
|
1000
|
+
a.addEventListener("pointerenter", r, n);
|
|
1001
|
+
}), o;
|
|
1002
|
+
}
|
|
1003
|
+
var un = (t, e) => e ? t === e ? !0 : un(t, e.parentElement) : !1, Qe = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1, Mo = /* @__PURE__ */ new Set([
|
|
1004
|
+
"BUTTON",
|
|
1005
|
+
"INPUT",
|
|
1006
|
+
"SELECT",
|
|
1007
|
+
"TEXTAREA",
|
|
1008
|
+
"A"
|
|
1009
|
+
]);
|
|
1010
|
+
function Co(t) {
|
|
1011
|
+
return Mo.has(t.tagName) || t.tabIndex !== -1;
|
|
1012
|
+
}
|
|
1013
|
+
var Tt = /* @__PURE__ */ new WeakSet();
|
|
1014
|
+
function Ai(t) {
|
|
1015
|
+
return (e) => {
|
|
1016
|
+
e.key === "Enter" && t(e);
|
|
1017
|
+
};
|
|
1018
|
+
}
|
|
1019
|
+
function re(t, e) {
|
|
1020
|
+
t.dispatchEvent(new PointerEvent("pointer" + e, {
|
|
1021
|
+
isPrimary: !0,
|
|
1022
|
+
bubbles: !0
|
|
1023
|
+
}));
|
|
1024
|
+
}
|
|
1025
|
+
var Eo = (t, e) => {
|
|
1026
|
+
const i = t.currentTarget;
|
|
1027
|
+
if (!i) return;
|
|
1028
|
+
const s = Ai(() => {
|
|
1029
|
+
if (Tt.has(i)) return;
|
|
1030
|
+
re(i, "down");
|
|
1031
|
+
const n = Ai(() => {
|
|
1032
|
+
re(i, "up");
|
|
1033
|
+
}), o = () => re(i, "cancel");
|
|
1034
|
+
i.addEventListener("keyup", n, e), i.addEventListener("blur", o, e);
|
|
1035
|
+
});
|
|
1036
|
+
i.addEventListener("keydown", s, e), i.addEventListener("blur", () => i.removeEventListener("keydown", s), e);
|
|
1037
|
+
};
|
|
1038
|
+
function wi(t) {
|
|
1039
|
+
return Qe(t) && !an();
|
|
1040
|
+
}
|
|
1041
|
+
function Ro(t, e, i = {}) {
|
|
1042
|
+
const [s, n, o] = ln(t, i), r = (a) => {
|
|
1043
|
+
const l = a.currentTarget;
|
|
1044
|
+
if (!wi(a) || Tt.has(l)) return;
|
|
1045
|
+
Tt.add(l);
|
|
1046
|
+
const u = e(a), c = (d, m) => {
|
|
1047
|
+
window.removeEventListener("pointerup", f), window.removeEventListener("pointercancel", h), !(!wi(d) || !Tt.has(l)) && (Tt.delete(l), typeof u == "function" && u(d, { success: m }));
|
|
1048
|
+
}, f = (d) => {
|
|
1049
|
+
c(d, i.useGlobalTarget || un(l, d.target));
|
|
1050
|
+
}, h = (d) => {
|
|
1051
|
+
c(d, !1);
|
|
1052
|
+
};
|
|
1053
|
+
window.addEventListener("pointerup", f, n), window.addEventListener("pointercancel", h, n);
|
|
1054
|
+
};
|
|
1055
|
+
return s.forEach((a) => {
|
|
1056
|
+
!Co(a) && a.getAttribute("tabindex") === null && (a.tabIndex = 0), (i.useGlobalTarget ? window : a).addEventListener("pointerdown", r, n), a.addEventListener("focus", (l) => Eo(l, n), n);
|
|
1057
|
+
}), o;
|
|
1058
|
+
}
|
|
1059
|
+
function Lo(t) {
|
|
1060
|
+
return t === "x" || t === "y" ? _[t] ? null : (_[t] = !0, () => {
|
|
1061
|
+
_[t] = !1;
|
|
1062
|
+
}) : _.x || _.y ? null : (_.x = _.y = !0, () => {
|
|
1063
|
+
_.x = _.y = !1;
|
|
1064
|
+
});
|
|
1065
|
+
}
|
|
1066
|
+
var cn = /* @__PURE__ */ new Set([
|
|
1067
|
+
"width",
|
|
1068
|
+
"height",
|
|
1069
|
+
"top",
|
|
1070
|
+
"left",
|
|
1071
|
+
"right",
|
|
1072
|
+
"bottom",
|
|
1073
|
+
...mt
|
|
1074
|
+
]), _t;
|
|
1075
|
+
function Fo() {
|
|
1076
|
+
_t = void 0;
|
|
1077
|
+
}
|
|
1078
|
+
var $ = {
|
|
1079
|
+
now: () => (_t === void 0 && $.set(R.isProcessing || Oe.useManualTiming ? R.timestamp : performance.now()), _t),
|
|
1080
|
+
set: (t) => {
|
|
1081
|
+
_t = t, queueMicrotask(Fo);
|
|
1082
|
+
}
|
|
1083
|
+
};
|
|
1084
|
+
function ti(t, e) {
|
|
1085
|
+
t.indexOf(e) === -1 && t.push(e);
|
|
1086
|
+
}
|
|
1087
|
+
function ei(t, e) {
|
|
1088
|
+
const i = t.indexOf(e);
|
|
1089
|
+
i > -1 && t.splice(i, 1);
|
|
1090
|
+
}
|
|
1091
|
+
var ii = class {
|
|
1092
|
+
constructor() {
|
|
1093
|
+
this.subscriptions = [];
|
|
1094
|
+
}
|
|
1095
|
+
add(t) {
|
|
1096
|
+
return ti(this.subscriptions, t), () => ei(this.subscriptions, t);
|
|
1097
|
+
}
|
|
1098
|
+
notify(t, e, i) {
|
|
1099
|
+
const s = this.subscriptions.length;
|
|
1100
|
+
if (s)
|
|
1101
|
+
if (s === 1) this.subscriptions[0](t, e, i);
|
|
1102
|
+
else for (let n = 0; n < s; n++) {
|
|
1103
|
+
const o = this.subscriptions[n];
|
|
1104
|
+
o && o(t, e, i);
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
getSize() {
|
|
1108
|
+
return this.subscriptions.length;
|
|
1109
|
+
}
|
|
1110
|
+
clear() {
|
|
1111
|
+
this.subscriptions.length = 0;
|
|
1112
|
+
}
|
|
1113
|
+
};
|
|
1114
|
+
function hn(t, e) {
|
|
1115
|
+
return e ? t * (1e3 / e) : 0;
|
|
1116
|
+
}
|
|
1117
|
+
var Vi = 30, Bo = (t) => !isNaN(parseFloat(t)), Di = { current: void 0 }, ko = class {
|
|
1118
|
+
constructor(t, e = {}) {
|
|
1119
|
+
this.version = "11.18.2", this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (i, s = !0) => {
|
|
1120
|
+
const n = $.now();
|
|
1121
|
+
this.updatedAt !== n && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(i), this.current !== this.prev && this.events.change && this.events.change.notify(this.current), s && this.events.renderRequest && this.events.renderRequest.notify(this.current);
|
|
1122
|
+
}, this.hasAnimated = !1, this.setCurrent(t), this.owner = e.owner;
|
|
1123
|
+
}
|
|
1124
|
+
setCurrent(t) {
|
|
1125
|
+
this.current = t, this.updatedAt = $.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = Bo(this.current));
|
|
1126
|
+
}
|
|
1127
|
+
setPrevFrameValue(t = this.current) {
|
|
1128
|
+
this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
|
|
1129
|
+
}
|
|
1130
|
+
onChange(t) {
|
|
1131
|
+
return process.env.NODE_ENV !== "production" && qt(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t);
|
|
1132
|
+
}
|
|
1133
|
+
on(t, e) {
|
|
1134
|
+
this.events[t] || (this.events[t] = new ii());
|
|
1135
|
+
const i = this.events[t].add(e);
|
|
1136
|
+
return t === "change" ? () => {
|
|
1137
|
+
i(), w.read(() => {
|
|
1138
|
+
this.events.change.getSize() || this.stop();
|
|
1139
|
+
});
|
|
1140
|
+
} : i;
|
|
1141
|
+
}
|
|
1142
|
+
clearListeners() {
|
|
1143
|
+
for (const t in this.events) this.events[t].clear();
|
|
1144
|
+
}
|
|
1145
|
+
attach(t, e) {
|
|
1146
|
+
this.passiveEffect = t, this.stopPassiveEffect = e;
|
|
1147
|
+
}
|
|
1148
|
+
set(t, e = !0) {
|
|
1149
|
+
!e || !this.passiveEffect ? this.updateAndNotify(t, e) : this.passiveEffect(t, this.updateAndNotify);
|
|
1150
|
+
}
|
|
1151
|
+
setWithVelocity(t, e, i) {
|
|
1152
|
+
this.set(e), this.prev = void 0, this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt - i;
|
|
1153
|
+
}
|
|
1154
|
+
jump(t, e = !0) {
|
|
1155
|
+
this.updateAndNotify(t), this.prev = t, this.prevUpdatedAt = this.prevFrameValue = void 0, e && this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
1156
|
+
}
|
|
1157
|
+
get() {
|
|
1158
|
+
return Di.current && Di.current.push(this), this.current;
|
|
1159
|
+
}
|
|
1160
|
+
getPrevious() {
|
|
1161
|
+
return this.prev;
|
|
1162
|
+
}
|
|
1163
|
+
getVelocity() {
|
|
1164
|
+
const t = $.now();
|
|
1165
|
+
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > Vi) return 0;
|
|
1166
|
+
const e = Math.min(this.updatedAt - this.prevUpdatedAt, Vi);
|
|
1167
|
+
return hn(parseFloat(this.current) - parseFloat(this.prevFrameValue), e);
|
|
1168
|
+
}
|
|
1169
|
+
start(t) {
|
|
1170
|
+
return this.stop(), new Promise((e) => {
|
|
1171
|
+
this.hasAnimated = !0, this.animation = t(e), this.events.animationStart && this.events.animationStart.notify();
|
|
1172
|
+
}).then(() => {
|
|
1173
|
+
this.events.animationComplete && this.events.animationComplete.notify(), this.clearAnimation();
|
|
1174
|
+
});
|
|
1175
|
+
}
|
|
1176
|
+
stop() {
|
|
1177
|
+
this.animation && (this.animation.stop(), this.events.animationCancel && this.events.animationCancel.notify()), this.clearAnimation();
|
|
1178
|
+
}
|
|
1179
|
+
isAnimating() {
|
|
1180
|
+
return !!this.animation;
|
|
1181
|
+
}
|
|
1182
|
+
clearAnimation() {
|
|
1183
|
+
delete this.animation;
|
|
1184
|
+
}
|
|
1185
|
+
destroy() {
|
|
1186
|
+
this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
1187
|
+
}
|
|
1188
|
+
};
|
|
1189
|
+
function Dt(t, e) {
|
|
1190
|
+
return new ko(t, e);
|
|
1191
|
+
}
|
|
1192
|
+
function Oo(t, e, i) {
|
|
1193
|
+
t.hasValue(e) ? t.getValue(e).set(i) : t.addValue(e, Dt(i));
|
|
1194
|
+
}
|
|
1195
|
+
function jo(t, e) {
|
|
1196
|
+
let { transitionEnd: i = {}, transition: s = {}, ...n } = te(t, e) || {};
|
|
1197
|
+
n = {
|
|
1198
|
+
...n,
|
|
1199
|
+
...i
|
|
1200
|
+
};
|
|
1201
|
+
for (const o in n) Oo(t, o, Hr(n[o]));
|
|
1202
|
+
}
|
|
1203
|
+
function Io(t) {
|
|
1204
|
+
return !!(F(t) && t.add);
|
|
1205
|
+
}
|
|
1206
|
+
function Te(t, e) {
|
|
1207
|
+
const i = t.getValue("willChange");
|
|
1208
|
+
if (Io(i)) return i.add(e);
|
|
1209
|
+
}
|
|
1210
|
+
function fn(t) {
|
|
1211
|
+
return t.props[Us];
|
|
1212
|
+
}
|
|
1213
|
+
var dn = { current: !1 }, mn = (t, e, i) => (((1 - 3 * i + 3 * e) * t + (3 * i - 6 * e)) * t + 3 * e) * t, No = 1e-7, _o = 12;
|
|
1214
|
+
function Uo(t, e, i, s, n) {
|
|
1215
|
+
let o, r, a = 0;
|
|
1216
|
+
do
|
|
1217
|
+
r = e + (i - e) / 2, o = mn(r, s, n) - t, o > 0 ? i = r : e = r;
|
|
1218
|
+
while (Math.abs(o) > No && ++a < _o);
|
|
1219
|
+
return r;
|
|
1220
|
+
}
|
|
1221
|
+
function Rt(t, e, i, s) {
|
|
1222
|
+
if (t === e && i === s) return O;
|
|
1223
|
+
const n = (o) => Uo(o, 0, 1, t, i);
|
|
1224
|
+
return (o) => o === 0 || o === 1 ? o : mn(n(o), e, s);
|
|
1225
|
+
}
|
|
1226
|
+
var pn = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, vn = (t) => (e) => 1 - t(1 - e), gn = /* @__PURE__ */ Rt(0.33, 1.53, 0.69, 0.99), si = /* @__PURE__ */ vn(gn), yn = /* @__PURE__ */ pn(si), Tn = (t) => (t *= 2) < 1 ? 0.5 * si(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), ni = (t) => 1 - Math.sin(Math.acos(t)), xn = vn(ni), Pn = pn(ni), Sn = (t) => /^0[^.\s]+$/u.test(t);
|
|
1227
|
+
function Ko(t) {
|
|
1228
|
+
return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || Sn(t) : !0;
|
|
1229
|
+
}
|
|
1230
|
+
var Pt = (t) => Math.round(t * 1e5) / 1e5, ri = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
1231
|
+
function $o(t) {
|
|
1232
|
+
return t == null;
|
|
1233
|
+
}
|
|
1234
|
+
var Wo = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, oi = (t, e) => (i) => !!(typeof i == "string" && Wo.test(i) && i.startsWith(t) || e && !$o(i) && Object.prototype.hasOwnProperty.call(i, e)), bn = (t, e, i) => (s) => {
|
|
1235
|
+
if (typeof s != "string") return s;
|
|
1236
|
+
const [n, o, r, a] = s.match(ri);
|
|
1237
|
+
return {
|
|
1238
|
+
[t]: parseFloat(n),
|
|
1239
|
+
[e]: parseFloat(o),
|
|
1240
|
+
[i]: parseFloat(r),
|
|
1241
|
+
alpha: a !== void 0 ? parseFloat(a) : 1
|
|
1242
|
+
};
|
|
1243
|
+
}, Go = (t) => z(0, 255, t), oe = {
|
|
1244
|
+
...pt,
|
|
1245
|
+
transform: (t) => Math.round(Go(t))
|
|
1246
|
+
}, et = {
|
|
1247
|
+
test: /* @__PURE__ */ oi("rgb", "red"),
|
|
1248
|
+
parse: /* @__PURE__ */ bn("red", "green", "blue"),
|
|
1249
|
+
transform: ({ red: t, green: e, blue: i, alpha: s = 1 }) => "rgba(" + oe.transform(t) + ", " + oe.transform(e) + ", " + oe.transform(i) + ", " + Pt(Vt.transform(s)) + ")"
|
|
1250
|
+
};
|
|
1251
|
+
function zo(t) {
|
|
1252
|
+
let e = "", i = "", s = "", n = "";
|
|
1253
|
+
return t.length > 5 ? (e = t.substring(1, 3), i = t.substring(3, 5), s = t.substring(5, 7), n = t.substring(7, 9)) : (e = t.substring(1, 2), i = t.substring(2, 3), s = t.substring(3, 4), n = t.substring(4, 5), e += e, i += i, s += s, n += n), {
|
|
1254
|
+
red: parseInt(e, 16),
|
|
1255
|
+
green: parseInt(i, 16),
|
|
1256
|
+
blue: parseInt(s, 16),
|
|
1257
|
+
alpha: n ? parseInt(n, 16) / 255 : 1
|
|
1258
|
+
};
|
|
1259
|
+
}
|
|
1260
|
+
var xe = {
|
|
1261
|
+
test: /* @__PURE__ */ oi("#"),
|
|
1262
|
+
parse: zo,
|
|
1263
|
+
transform: et.transform
|
|
1264
|
+
}, rt = {
|
|
1265
|
+
test: /* @__PURE__ */ oi("hsl", "hue"),
|
|
1266
|
+
parse: /* @__PURE__ */ bn("hue", "saturation", "lightness"),
|
|
1267
|
+
transform: ({ hue: t, saturation: e, lightness: i, alpha: s = 1 }) => "hsla(" + Math.round(t) + ", " + K.transform(Pt(e)) + ", " + K.transform(Pt(i)) + ", " + Pt(Vt.transform(s)) + ")"
|
|
1268
|
+
}, L = {
|
|
1269
|
+
test: (t) => et.test(t) || xe.test(t) || rt.test(t),
|
|
1270
|
+
parse: (t) => et.test(t) ? et.parse(t) : rt.test(t) ? rt.parse(t) : xe.parse(t),
|
|
1271
|
+
transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? et.transform(t) : rt.transform(t)
|
|
1272
|
+
}, Ho = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
1273
|
+
function Yo(t) {
|
|
1274
|
+
var e, i;
|
|
1275
|
+
return isNaN(t) && typeof t == "string" && (((e = t.match(ri)) === null || e === void 0 ? void 0 : e.length) || 0) + (((i = t.match(Ho)) === null || i === void 0 ? void 0 : i.length) || 0) > 0;
|
|
1276
|
+
}
|
|
1277
|
+
var An = "number", wn = "color", Xo = "var", qo = "var(", Mi = "${}", Zo = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
|
|
1278
|
+
function Mt(t) {
|
|
1279
|
+
const e = t.toString(), i = [], s = {
|
|
1280
|
+
color: [],
|
|
1281
|
+
number: [],
|
|
1282
|
+
var: []
|
|
1283
|
+
}, n = [];
|
|
1284
|
+
let o = 0;
|
|
1285
|
+
return {
|
|
1286
|
+
values: i,
|
|
1287
|
+
split: e.replace(Zo, (r) => (L.test(r) ? (s.color.push(o), n.push(wn), i.push(L.parse(r))) : r.startsWith(qo) ? (s.var.push(o), n.push(Xo), i.push(r)) : (s.number.push(o), n.push(An), i.push(parseFloat(r))), ++o, Mi)).split(Mi),
|
|
1288
|
+
indexes: s,
|
|
1289
|
+
types: n
|
|
1290
|
+
};
|
|
1291
|
+
}
|
|
1292
|
+
function Vn(t) {
|
|
1293
|
+
return Mt(t).values;
|
|
1294
|
+
}
|
|
1295
|
+
function Dn(t) {
|
|
1296
|
+
const { split: e, types: i } = Mt(t), s = e.length;
|
|
1297
|
+
return (n) => {
|
|
1298
|
+
let o = "";
|
|
1299
|
+
for (let r = 0; r < s; r++)
|
|
1300
|
+
if (o += e[r], n[r] !== void 0) {
|
|
1301
|
+
const a = i[r];
|
|
1302
|
+
a === An ? o += Pt(n[r]) : a === wn ? o += L.transform(n[r]) : o += n[r];
|
|
1303
|
+
}
|
|
1304
|
+
return o;
|
|
1305
|
+
};
|
|
1306
|
+
}
|
|
1307
|
+
var Jo = (t) => typeof t == "number" ? 0 : t;
|
|
1308
|
+
function Qo(t) {
|
|
1309
|
+
const e = Vn(t);
|
|
1310
|
+
return Dn(t)(e.map(Jo));
|
|
1311
|
+
}
|
|
1312
|
+
var q = {
|
|
1313
|
+
test: Yo,
|
|
1314
|
+
parse: Vn,
|
|
1315
|
+
createTransformer: Dn,
|
|
1316
|
+
getAnimatableNone: Qo
|
|
1317
|
+
}, ta = /* @__PURE__ */ new Set([
|
|
1318
|
+
"brightness",
|
|
1319
|
+
"contrast",
|
|
1320
|
+
"saturate",
|
|
1321
|
+
"opacity"
|
|
1322
|
+
]);
|
|
1323
|
+
function ea(t) {
|
|
1324
|
+
const [e, i] = t.slice(0, -1).split("(");
|
|
1325
|
+
if (e === "drop-shadow") return t;
|
|
1326
|
+
const [s] = i.match(ri) || [];
|
|
1327
|
+
if (!s) return t;
|
|
1328
|
+
const n = i.replace(s, "");
|
|
1329
|
+
let o = ta.has(e) ? 1 : 0;
|
|
1330
|
+
return s !== i && (o *= 100), e + "(" + o + n + ")";
|
|
1331
|
+
}
|
|
1332
|
+
var ia = /\b([a-z-]*)\(.*?\)/gu, Pe = {
|
|
1333
|
+
...q,
|
|
1334
|
+
getAnimatableNone: (t) => {
|
|
1335
|
+
const e = t.match(ia);
|
|
1336
|
+
return e ? e.map(ea).join(" ") : t;
|
|
1337
|
+
}
|
|
1338
|
+
}, sa = {
|
|
1339
|
+
...We,
|
|
1340
|
+
color: L,
|
|
1341
|
+
backgroundColor: L,
|
|
1342
|
+
outlineColor: L,
|
|
1343
|
+
fill: L,
|
|
1344
|
+
stroke: L,
|
|
1345
|
+
borderColor: L,
|
|
1346
|
+
borderTopColor: L,
|
|
1347
|
+
borderRightColor: L,
|
|
1348
|
+
borderBottomColor: L,
|
|
1349
|
+
borderLeftColor: L,
|
|
1350
|
+
filter: Pe,
|
|
1351
|
+
WebkitFilter: Pe
|
|
1352
|
+
}, ai = (t) => sa[t];
|
|
1353
|
+
function Mn(t, e) {
|
|
1354
|
+
let i = ai(t);
|
|
1355
|
+
return i !== Pe && (i = q), i.getAnimatableNone ? i.getAnimatableNone(e) : void 0;
|
|
1356
|
+
}
|
|
1357
|
+
var na = /* @__PURE__ */ new Set([
|
|
1358
|
+
"auto",
|
|
1359
|
+
"none",
|
|
1360
|
+
"0"
|
|
1361
|
+
]);
|
|
1362
|
+
function ra(t, e, i) {
|
|
1363
|
+
let s = 0, n;
|
|
1364
|
+
for (; s < t.length && !n; ) {
|
|
1365
|
+
const o = t[s];
|
|
1366
|
+
typeof o == "string" && !na.has(o) && Mt(o).values.length && (n = t[s]), s++;
|
|
1367
|
+
}
|
|
1368
|
+
if (n && i) for (const o of e) t[o] = Mn(i, n);
|
|
1369
|
+
}
|
|
1370
|
+
var Ci = (t) => t === pt || t === y, Ei = (t, e) => parseFloat(t.split(", ")[e]), Ri = (t, e) => (i, { transform: s }) => {
|
|
1371
|
+
if (s === "none" || !s) return 0;
|
|
1372
|
+
const n = s.match(/^matrix3d\((.+)\)$/u);
|
|
1373
|
+
if (n) return Ei(n[1], e);
|
|
1374
|
+
{
|
|
1375
|
+
const o = s.match(/^matrix\((.+)\)$/u);
|
|
1376
|
+
return o ? Ei(o[1], t) : 0;
|
|
1377
|
+
}
|
|
1378
|
+
}, oa = /* @__PURE__ */ new Set([
|
|
1379
|
+
"x",
|
|
1380
|
+
"y",
|
|
1381
|
+
"z"
|
|
1382
|
+
]), aa = mt.filter((t) => !oa.has(t));
|
|
1383
|
+
function la(t) {
|
|
1384
|
+
const e = [];
|
|
1385
|
+
return aa.forEach((i) => {
|
|
1386
|
+
const s = t.getValue(i);
|
|
1387
|
+
s !== void 0 && (e.push([i, s.get()]), s.set(i.startsWith("scale") ? 1 : 0));
|
|
1388
|
+
}), e;
|
|
1389
|
+
}
|
|
1390
|
+
var ht = {
|
|
1391
|
+
width: ({ x: t }, { paddingLeft: e = "0", paddingRight: i = "0" }) => t.max - t.min - parseFloat(e) - parseFloat(i),
|
|
1392
|
+
height: ({ y: t }, { paddingTop: e = "0", paddingBottom: i = "0" }) => t.max - t.min - parseFloat(e) - parseFloat(i),
|
|
1393
|
+
top: (t, { top: e }) => parseFloat(e),
|
|
1394
|
+
left: (t, { left: e }) => parseFloat(e),
|
|
1395
|
+
bottom: ({ y: t }, { top: e }) => parseFloat(e) + (t.max - t.min),
|
|
1396
|
+
right: ({ x: t }, { left: e }) => parseFloat(e) + (t.max - t.min),
|
|
1397
|
+
x: Ri(4, 13),
|
|
1398
|
+
y: Ri(5, 14)
|
|
1399
|
+
};
|
|
1400
|
+
ht.translateX = ht.x;
|
|
1401
|
+
ht.translateY = ht.y;
|
|
1402
|
+
var it = /* @__PURE__ */ new Set(), Se = !1, be = !1;
|
|
1403
|
+
function Cn() {
|
|
1404
|
+
if (be) {
|
|
1405
|
+
const t = Array.from(it).filter((s) => s.needsMeasurement), e = new Set(t.map((s) => s.element)), i = /* @__PURE__ */ new Map();
|
|
1406
|
+
e.forEach((s) => {
|
|
1407
|
+
const n = la(s);
|
|
1408
|
+
n.length && (i.set(s, n), s.render());
|
|
1409
|
+
}), t.forEach((s) => s.measureInitialState()), e.forEach((s) => {
|
|
1410
|
+
s.render();
|
|
1411
|
+
const n = i.get(s);
|
|
1412
|
+
n && n.forEach(([o, r]) => {
|
|
1413
|
+
var a;
|
|
1414
|
+
(a = s.getValue(o)) === null || a === void 0 || a.set(r);
|
|
1415
|
+
});
|
|
1416
|
+
}), t.forEach((s) => s.measureEndState()), t.forEach((s) => {
|
|
1417
|
+
s.suspendedScrollY !== void 0 && window.scrollTo(0, s.suspendedScrollY);
|
|
1418
|
+
});
|
|
1419
|
+
}
|
|
1420
|
+
be = !1, Se = !1, it.forEach((t) => t.complete()), it.clear();
|
|
1421
|
+
}
|
|
1422
|
+
function En() {
|
|
1423
|
+
it.forEach((t) => {
|
|
1424
|
+
t.readKeyframes(), t.needsMeasurement && (be = !0);
|
|
1425
|
+
});
|
|
1426
|
+
}
|
|
1427
|
+
function ua() {
|
|
1428
|
+
En(), Cn();
|
|
1429
|
+
}
|
|
1430
|
+
var li = class {
|
|
1431
|
+
constructor(t, e, i, s, n, o = !1) {
|
|
1432
|
+
this.isComplete = !1, this.isAsync = !1, this.needsMeasurement = !1, this.isScheduled = !1, this.unresolvedKeyframes = [...t], this.onComplete = e, this.name = i, this.motionValue = s, this.element = n, this.isAsync = o;
|
|
1433
|
+
}
|
|
1434
|
+
scheduleResolve() {
|
|
1435
|
+
this.isScheduled = !0, this.isAsync ? (it.add(this), Se || (Se = !0, w.read(En), w.resolveKeyframes(Cn))) : (this.readKeyframes(), this.complete());
|
|
1436
|
+
}
|
|
1437
|
+
readKeyframes() {
|
|
1438
|
+
const { unresolvedKeyframes: t, name: e, element: i, motionValue: s } = this;
|
|
1439
|
+
for (let n = 0; n < t.length; n++) if (t[n] === null) if (n === 0) {
|
|
1440
|
+
const o = s?.get(), r = t[t.length - 1];
|
|
1441
|
+
if (o !== void 0) t[0] = o;
|
|
1442
|
+
else if (i && e) {
|
|
1443
|
+
const a = i.readValue(e, r);
|
|
1444
|
+
a != null && (t[0] = a);
|
|
1445
|
+
}
|
|
1446
|
+
t[0] === void 0 && (t[0] = r), s && o === void 0 && s.set(t[0]);
|
|
1447
|
+
} else t[n] = t[n - 1];
|
|
1448
|
+
}
|
|
1449
|
+
setFinalKeyframe() {
|
|
1450
|
+
}
|
|
1451
|
+
measureInitialState() {
|
|
1452
|
+
}
|
|
1453
|
+
renderEndStyles() {
|
|
1454
|
+
}
|
|
1455
|
+
measureEndState() {
|
|
1456
|
+
}
|
|
1457
|
+
complete() {
|
|
1458
|
+
this.isComplete = !0, this.onComplete(this.unresolvedKeyframes, this.finalKeyframe), it.delete(this);
|
|
1459
|
+
}
|
|
1460
|
+
cancel() {
|
|
1461
|
+
this.isComplete || (this.isScheduled = !1, it.delete(this));
|
|
1462
|
+
}
|
|
1463
|
+
resume() {
|
|
1464
|
+
this.isComplete || this.scheduleResolve();
|
|
1465
|
+
}
|
|
1466
|
+
}, Rn = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t), ca = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
|
|
1467
|
+
function ha(t) {
|
|
1468
|
+
const e = ca.exec(t);
|
|
1469
|
+
if (!e) return [,];
|
|
1470
|
+
const [, i, s, n] = e;
|
|
1471
|
+
return [`--${i ?? s}`, n];
|
|
1472
|
+
}
|
|
1473
|
+
var fa = 4;
|
|
1474
|
+
function Ln(t, e, i = 1) {
|
|
1475
|
+
Y(i <= fa, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
|
|
1476
|
+
const [s, n] = ha(t);
|
|
1477
|
+
if (!s) return;
|
|
1478
|
+
const o = window.getComputedStyle(e).getPropertyValue(s);
|
|
1479
|
+
if (o) {
|
|
1480
|
+
const r = o.trim();
|
|
1481
|
+
return Rn(r) ? parseFloat(r) : r;
|
|
1482
|
+
}
|
|
1483
|
+
return $e(n) ? Ln(n, e, i + 1) : n;
|
|
1484
|
+
}
|
|
1485
|
+
var Fn = (t) => (e) => e.test(t), da = {
|
|
1486
|
+
test: (t) => t === "auto",
|
|
1487
|
+
parse: (t) => t
|
|
1488
|
+
}, Bn = [
|
|
1489
|
+
pt,
|
|
1490
|
+
y,
|
|
1491
|
+
K,
|
|
1492
|
+
H,
|
|
1493
|
+
Qr,
|
|
1494
|
+
Jr,
|
|
1495
|
+
da
|
|
1496
|
+
], Li = (t) => Bn.find(Fn(t)), kn = class extends li {
|
|
1497
|
+
constructor(t, e, i, s, n) {
|
|
1498
|
+
super(t, e, i, s, n, !0);
|
|
1499
|
+
}
|
|
1500
|
+
readKeyframes() {
|
|
1501
|
+
const { unresolvedKeyframes: t, element: e, name: i } = this;
|
|
1502
|
+
if (!e || !e.current) return;
|
|
1503
|
+
super.readKeyframes();
|
|
1504
|
+
for (let a = 0; a < t.length; a++) {
|
|
1505
|
+
let l = t[a];
|
|
1506
|
+
if (typeof l == "string" && (l = l.trim(), $e(l))) {
|
|
1507
|
+
const u = Ln(l, e.current);
|
|
1508
|
+
u !== void 0 && (t[a] = u), a === t.length - 1 && (this.finalKeyframe = l);
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
if (this.resolveNoneKeyframes(), !cn.has(i) || t.length !== 2) return;
|
|
1512
|
+
const [s, n] = t, o = Li(s), r = Li(n);
|
|
1513
|
+
if (o !== r)
|
|
1514
|
+
if (Ci(o) && Ci(r)) for (let a = 0; a < t.length; a++) {
|
|
1515
|
+
const l = t[a];
|
|
1516
|
+
typeof l == "string" && (t[a] = parseFloat(l));
|
|
1517
|
+
}
|
|
1518
|
+
else this.needsMeasurement = !0;
|
|
1519
|
+
}
|
|
1520
|
+
resolveNoneKeyframes() {
|
|
1521
|
+
const { unresolvedKeyframes: t, name: e } = this, i = [];
|
|
1522
|
+
for (let s = 0; s < t.length; s++) Ko(t[s]) && i.push(s);
|
|
1523
|
+
i.length && ra(t, i, e);
|
|
1524
|
+
}
|
|
1525
|
+
measureInitialState() {
|
|
1526
|
+
const { element: t, unresolvedKeyframes: e, name: i } = this;
|
|
1527
|
+
if (!t || !t.current) return;
|
|
1528
|
+
i === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = ht[i](t.measureViewportBox(), window.getComputedStyle(t.current)), e[0] = this.measuredOrigin;
|
|
1529
|
+
const s = e[e.length - 1];
|
|
1530
|
+
s !== void 0 && t.getValue(i, s).jump(s, !1);
|
|
1531
|
+
}
|
|
1532
|
+
measureEndState() {
|
|
1533
|
+
var t;
|
|
1534
|
+
const { element: e, name: i, unresolvedKeyframes: s } = this;
|
|
1535
|
+
if (!e || !e.current) return;
|
|
1536
|
+
const n = e.getValue(i);
|
|
1537
|
+
n && n.jump(this.measuredOrigin, !1);
|
|
1538
|
+
const o = s.length - 1, r = s[o];
|
|
1539
|
+
s[o] = ht[i](e.measureViewportBox(), window.getComputedStyle(e.current)), r !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = r), !((t = this.removedTransforms) === null || t === void 0) && t.length && this.removedTransforms.forEach(([a, l]) => {
|
|
1540
|
+
e.getValue(a).set(l);
|
|
1541
|
+
}), this.resolveNoneKeyframes();
|
|
1542
|
+
}
|
|
1543
|
+
}, Fi = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && (q.test(t) || t === "0") && !t.startsWith("url("));
|
|
1544
|
+
function ma(t) {
|
|
1545
|
+
const e = t[0];
|
|
1546
|
+
if (t.length === 1) return !0;
|
|
1547
|
+
for (let i = 0; i < t.length; i++) if (t[i] !== e) return !0;
|
|
1548
|
+
}
|
|
1549
|
+
function pa(t, e, i, s) {
|
|
1550
|
+
const n = t[0];
|
|
1551
|
+
if (n === null) return !1;
|
|
1552
|
+
if (e === "display" || e === "visibility") return !0;
|
|
1553
|
+
const o = t[t.length - 1], r = Fi(n, e), a = Fi(o, e);
|
|
1554
|
+
return dt(r === a, `You are trying to animate ${e} from "${n}" to "${o}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${o} via the \`style\` property.`), !r || !a ? !1 : ma(t) || (i === "spring" || Ze(i)) && s;
|
|
1555
|
+
}
|
|
1556
|
+
var va = (t) => t !== null;
|
|
1557
|
+
function ee(t, { repeat: e, repeatType: i = "loop" }, s) {
|
|
1558
|
+
const n = t.filter(va), o = e && i !== "loop" && e % 2 === 1 ? 0 : n.length - 1;
|
|
1559
|
+
return !o || s === void 0 ? n[o] : s;
|
|
1560
|
+
}
|
|
1561
|
+
var ga = 40, On = class {
|
|
1562
|
+
constructor({ autoplay: t = !0, delay: e = 0, type: i = "keyframes", repeat: s = 0, repeatDelay: n = 0, repeatType: o = "loop", ...r }) {
|
|
1563
|
+
this.isStopped = !1, this.hasAttemptedResolve = !1, this.createdAt = $.now(), this.options = {
|
|
1564
|
+
autoplay: t,
|
|
1565
|
+
delay: e,
|
|
1566
|
+
type: i,
|
|
1567
|
+
repeat: s,
|
|
1568
|
+
repeatDelay: n,
|
|
1569
|
+
repeatType: o,
|
|
1570
|
+
...r
|
|
1571
|
+
}, this.updateFinishedPromise();
|
|
1572
|
+
}
|
|
1573
|
+
calcStartTime() {
|
|
1574
|
+
return this.resolvedAt ? this.resolvedAt - this.createdAt > ga ? this.resolvedAt : this.createdAt : this.createdAt;
|
|
1575
|
+
}
|
|
1576
|
+
get resolved() {
|
|
1577
|
+
return !this._resolved && !this.hasAttemptedResolve && ua(), this._resolved;
|
|
1578
|
+
}
|
|
1579
|
+
onKeyframesResolved(t, e) {
|
|
1580
|
+
this.resolvedAt = $.now(), this.hasAttemptedResolve = !0;
|
|
1581
|
+
const { name: i, type: s, velocity: n, delay: o, onComplete: r, onUpdate: a, isGenerator: l } = this.options;
|
|
1582
|
+
if (!l && !pa(t, i, s, n)) if (dn.current || !o) {
|
|
1583
|
+
a && a(ee(t, this.options, e)), r && r(), this.resolveFinishedPromise();
|
|
1584
|
+
return;
|
|
1585
|
+
} else this.options.duration = 0;
|
|
1586
|
+
const u = this.initPlayback(t, e);
|
|
1587
|
+
u !== !1 && (this._resolved = {
|
|
1588
|
+
keyframes: t,
|
|
1589
|
+
finalKeyframe: e,
|
|
1590
|
+
...u
|
|
1591
|
+
}, this.onPostResolved());
|
|
1592
|
+
}
|
|
1593
|
+
onPostResolved() {
|
|
1594
|
+
}
|
|
1595
|
+
then(t, e) {
|
|
1596
|
+
return this.currentFinishedPromise.then(t, e);
|
|
1597
|
+
}
|
|
1598
|
+
flatten() {
|
|
1599
|
+
this.options.type = "keyframes", this.options.ease = "linear";
|
|
1600
|
+
}
|
|
1601
|
+
updateFinishedPromise() {
|
|
1602
|
+
this.currentFinishedPromise = new Promise((t) => {
|
|
1603
|
+
this.resolveFinishedPromise = t;
|
|
1604
|
+
});
|
|
1605
|
+
}
|
|
1606
|
+
}, D = (t, e, i) => t + (e - t) * i;
|
|
1607
|
+
function ae(t, e, i) {
|
|
1608
|
+
return i < 0 && (i += 1), i > 1 && (i -= 1), i < 1 / 6 ? t + (e - t) * 6 * i : i < 1 / 2 ? e : i < 2 / 3 ? t + (e - t) * (2 / 3 - i) * 6 : t;
|
|
1609
|
+
}
|
|
1610
|
+
function ya({ hue: t, saturation: e, lightness: i, alpha: s }) {
|
|
1611
|
+
t /= 360, e /= 100, i /= 100;
|
|
1612
|
+
let n = 0, o = 0, r = 0;
|
|
1613
|
+
if (!e) n = o = r = i;
|
|
1614
|
+
else {
|
|
1615
|
+
const a = i < 0.5 ? i * (1 + e) : i + e - i * e, l = 2 * i - a;
|
|
1616
|
+
n = ae(l, a, t + 1 / 3), o = ae(l, a, t), r = ae(l, a, t - 1 / 3);
|
|
1617
|
+
}
|
|
1618
|
+
return {
|
|
1619
|
+
red: Math.round(n * 255),
|
|
1620
|
+
green: Math.round(o * 255),
|
|
1621
|
+
blue: Math.round(r * 255),
|
|
1622
|
+
alpha: s
|
|
1623
|
+
};
|
|
1624
|
+
}
|
|
1625
|
+
function Gt(t, e) {
|
|
1626
|
+
return (i) => i > 0 ? e : t;
|
|
1627
|
+
}
|
|
1628
|
+
var le = (t, e, i) => {
|
|
1629
|
+
const s = t * t, n = i * (e * e - s) + s;
|
|
1630
|
+
return n < 0 ? 0 : Math.sqrt(n);
|
|
1631
|
+
}, Ta = [
|
|
1632
|
+
xe,
|
|
1633
|
+
et,
|
|
1634
|
+
rt
|
|
1635
|
+
], xa = (t) => Ta.find((e) => e.test(t));
|
|
1636
|
+
function Bi(t) {
|
|
1637
|
+
const e = xa(t);
|
|
1638
|
+
if (dt(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e) return !1;
|
|
1639
|
+
let i = e.parse(t);
|
|
1640
|
+
return e === rt && (i = ya(i)), i;
|
|
1641
|
+
}
|
|
1642
|
+
var ki = (t, e) => {
|
|
1643
|
+
const i = Bi(t), s = Bi(e);
|
|
1644
|
+
if (!i || !s) return Gt(t, e);
|
|
1645
|
+
const n = { ...i };
|
|
1646
|
+
return (o) => (n.red = le(i.red, s.red, o), n.green = le(i.green, s.green, o), n.blue = le(i.blue, s.blue, o), n.alpha = D(i.alpha, s.alpha, o), et.transform(n));
|
|
1647
|
+
}, Pa = (t, e) => (i) => e(t(i)), Lt = (...t) => t.reduce(Pa), Ae = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
1648
|
+
function Sa(t, e) {
|
|
1649
|
+
return Ae.has(t) ? (i) => i <= 0 ? t : e : (i) => i >= 1 ? e : t;
|
|
1650
|
+
}
|
|
1651
|
+
function ba(t, e) {
|
|
1652
|
+
return (i) => D(t, e, i);
|
|
1653
|
+
}
|
|
1654
|
+
function ui(t) {
|
|
1655
|
+
return typeof t == "number" ? ba : typeof t == "string" ? $e(t) ? Gt : L.test(t) ? ki : Va : Array.isArray(t) ? jn : typeof t == "object" ? L.test(t) ? ki : Aa : Gt;
|
|
1656
|
+
}
|
|
1657
|
+
function jn(t, e) {
|
|
1658
|
+
const i = [...t], s = i.length, n = t.map((o, r) => ui(o)(o, e[r]));
|
|
1659
|
+
return (o) => {
|
|
1660
|
+
for (let r = 0; r < s; r++) i[r] = n[r](o);
|
|
1661
|
+
return i;
|
|
1662
|
+
};
|
|
1663
|
+
}
|
|
1664
|
+
function Aa(t, e) {
|
|
1665
|
+
const i = {
|
|
1666
|
+
...t,
|
|
1667
|
+
...e
|
|
1668
|
+
}, s = {};
|
|
1669
|
+
for (const n in i) t[n] !== void 0 && e[n] !== void 0 && (s[n] = ui(t[n])(t[n], e[n]));
|
|
1670
|
+
return (n) => {
|
|
1671
|
+
for (const o in s) i[o] = s[o](n);
|
|
1672
|
+
return i;
|
|
1673
|
+
};
|
|
1674
|
+
}
|
|
1675
|
+
function wa(t, e) {
|
|
1676
|
+
var i;
|
|
1677
|
+
const s = [], n = {
|
|
1678
|
+
color: 0,
|
|
1679
|
+
var: 0,
|
|
1680
|
+
number: 0
|
|
1681
|
+
};
|
|
1682
|
+
for (let o = 0; o < e.values.length; o++) {
|
|
1683
|
+
const r = e.types[o], a = t.indexes[r][n[r]];
|
|
1684
|
+
s[o] = (i = t.values[a]) !== null && i !== void 0 ? i : 0, n[r]++;
|
|
1685
|
+
}
|
|
1686
|
+
return s;
|
|
1687
|
+
}
|
|
1688
|
+
var Va = (t, e) => {
|
|
1689
|
+
const i = q.createTransformer(e), s = Mt(t), n = Mt(e);
|
|
1690
|
+
return s.indexes.var.length === n.indexes.var.length && s.indexes.color.length === n.indexes.color.length && s.indexes.number.length >= n.indexes.number.length ? Ae.has(t) && !n.values.length || Ae.has(e) && !s.values.length ? Sa(t, e) : Lt(jn(wa(s, n), n.values), i) : (dt(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Gt(t, e));
|
|
1691
|
+
};
|
|
1692
|
+
function In(t, e, i) {
|
|
1693
|
+
return typeof t == "number" && typeof e == "number" && typeof i == "number" ? D(t, e, i) : ui(t)(t, e);
|
|
1694
|
+
}
|
|
1695
|
+
var Da = 5;
|
|
1696
|
+
function Nn(t, e, i) {
|
|
1697
|
+
const s = Math.max(e - Da, 0);
|
|
1698
|
+
return hn(i - t(s), e - s);
|
|
1699
|
+
}
|
|
1700
|
+
var V = {
|
|
1701
|
+
stiffness: 100,
|
|
1702
|
+
damping: 10,
|
|
1703
|
+
mass: 1,
|
|
1704
|
+
velocity: 0,
|
|
1705
|
+
duration: 800,
|
|
1706
|
+
bounce: 0.3,
|
|
1707
|
+
visualDuration: 0.3,
|
|
1708
|
+
restSpeed: {
|
|
1709
|
+
granular: 0.01,
|
|
1710
|
+
default: 2
|
|
1711
|
+
},
|
|
1712
|
+
restDelta: {
|
|
1713
|
+
granular: 5e-3,
|
|
1714
|
+
default: 0.5
|
|
1715
|
+
},
|
|
1716
|
+
minDuration: 0.01,
|
|
1717
|
+
maxDuration: 10,
|
|
1718
|
+
minDamping: 0.05,
|
|
1719
|
+
maxDamping: 1
|
|
1720
|
+
}, ue = 1e-3;
|
|
1721
|
+
function Ma({ duration: t = V.duration, bounce: e = V.bounce, velocity: i = V.velocity, mass: s = V.mass }) {
|
|
1722
|
+
let n, o;
|
|
1723
|
+
dt(t <= U(V.maxDuration), "Spring duration must be 10 seconds or less");
|
|
1724
|
+
let r = 1 - e;
|
|
1725
|
+
r = z(V.minDamping, V.maxDamping, r), t = z(V.minDuration, V.maxDuration, G(t)), r < 1 ? (n = (u) => {
|
|
1726
|
+
const c = u * r, f = c * t, h = c - i, d = we(u, r), m = Math.exp(-f);
|
|
1727
|
+
return ue - h / d * m;
|
|
1728
|
+
}, o = (u) => {
|
|
1729
|
+
const c = u * r * t, f = c * i + i, h = Math.pow(r, 2) * Math.pow(u, 2) * t, d = Math.exp(-c), m = we(Math.pow(u, 2), r);
|
|
1730
|
+
return (-n(u) + ue > 0 ? -1 : 1) * ((f - h) * d) / m;
|
|
1731
|
+
}) : (n = (u) => {
|
|
1732
|
+
const c = Math.exp(-u * t), f = (u - i) * t + 1;
|
|
1733
|
+
return -ue + c * f;
|
|
1734
|
+
}, o = (u) => Math.exp(-u * t) * ((i - u) * (t * t)));
|
|
1735
|
+
const a = 5 / t, l = Ea(n, o, a);
|
|
1736
|
+
if (t = U(t), isNaN(l)) return {
|
|
1737
|
+
stiffness: V.stiffness,
|
|
1738
|
+
damping: V.damping,
|
|
1739
|
+
duration: t
|
|
1740
|
+
};
|
|
1741
|
+
{
|
|
1742
|
+
const u = Math.pow(l, 2) * s;
|
|
1743
|
+
return {
|
|
1744
|
+
stiffness: u,
|
|
1745
|
+
damping: r * 2 * Math.sqrt(s * u),
|
|
1746
|
+
duration: t
|
|
1747
|
+
};
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
var Ca = 12;
|
|
1751
|
+
function Ea(t, e, i) {
|
|
1752
|
+
let s = i;
|
|
1753
|
+
for (let n = 1; n < Ca; n++) s = s - t(s) / e(s);
|
|
1754
|
+
return s;
|
|
1755
|
+
}
|
|
1756
|
+
function we(t, e) {
|
|
1757
|
+
return t * Math.sqrt(1 - e * e);
|
|
1758
|
+
}
|
|
1759
|
+
var Ra = ["duration", "bounce"], La = [
|
|
1760
|
+
"stiffness",
|
|
1761
|
+
"damping",
|
|
1762
|
+
"mass"
|
|
1763
|
+
];
|
|
1764
|
+
function Oi(t, e) {
|
|
1765
|
+
return e.some((i) => t[i] !== void 0);
|
|
1766
|
+
}
|
|
1767
|
+
function Fa(t) {
|
|
1768
|
+
let e = {
|
|
1769
|
+
velocity: V.velocity,
|
|
1770
|
+
stiffness: V.stiffness,
|
|
1771
|
+
damping: V.damping,
|
|
1772
|
+
mass: V.mass,
|
|
1773
|
+
isResolvedFromDuration: !1,
|
|
1774
|
+
...t
|
|
1775
|
+
};
|
|
1776
|
+
if (!Oi(t, La) && Oi(t, Ra)) if (t.visualDuration) {
|
|
1777
|
+
const i = t.visualDuration, s = 2 * Math.PI / (i * 1.2), n = s * s, o = 2 * z(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(n);
|
|
1778
|
+
e = {
|
|
1779
|
+
...e,
|
|
1780
|
+
mass: V.mass,
|
|
1781
|
+
stiffness: n,
|
|
1782
|
+
damping: o
|
|
1783
|
+
};
|
|
1784
|
+
} else {
|
|
1785
|
+
const i = Ma(t);
|
|
1786
|
+
e = {
|
|
1787
|
+
...e,
|
|
1788
|
+
...i,
|
|
1789
|
+
mass: V.mass
|
|
1790
|
+
}, e.isResolvedFromDuration = !0;
|
|
1791
|
+
}
|
|
1792
|
+
return e;
|
|
1793
|
+
}
|
|
1794
|
+
function _n(t = V.visualDuration, e = V.bounce) {
|
|
1795
|
+
const i = typeof t != "object" ? {
|
|
1796
|
+
visualDuration: t,
|
|
1797
|
+
keyframes: [0, 1],
|
|
1798
|
+
bounce: e
|
|
1799
|
+
} : t;
|
|
1800
|
+
let { restSpeed: s, restDelta: n } = i;
|
|
1801
|
+
const o = i.keyframes[0], r = i.keyframes[i.keyframes.length - 1], a = {
|
|
1802
|
+
done: !1,
|
|
1803
|
+
value: o
|
|
1804
|
+
}, { stiffness: l, damping: u, mass: c, duration: f, velocity: h, isResolvedFromDuration: d } = Fa({
|
|
1805
|
+
...i,
|
|
1806
|
+
velocity: -G(i.velocity || 0)
|
|
1807
|
+
}), m = h || 0, p = u / (2 * Math.sqrt(l * c)), T = r - o, v = G(Math.sqrt(l / c)), g = Math.abs(T) < 5;
|
|
1808
|
+
s || (s = g ? V.restSpeed.granular : V.restSpeed.default), n || (n = g ? V.restDelta.granular : V.restDelta.default);
|
|
1809
|
+
let x;
|
|
1810
|
+
if (p < 1) {
|
|
1811
|
+
const S = we(v, p);
|
|
1812
|
+
x = (A) => r - Math.exp(-p * v * A) * ((m + p * v * T) / S * Math.sin(S * A) + T * Math.cos(S * A));
|
|
1813
|
+
} else if (p === 1) x = (S) => r - Math.exp(-v * S) * (T + (m + v * T) * S);
|
|
1814
|
+
else {
|
|
1815
|
+
const S = v * Math.sqrt(p * p - 1);
|
|
1816
|
+
x = (A) => {
|
|
1817
|
+
const C = Math.exp(-p * v * A), P = Math.min(S * A, 300);
|
|
1818
|
+
return r - C * ((m + p * v * T) * Math.sinh(P) + S * T * Math.cosh(P)) / S;
|
|
1819
|
+
};
|
|
1820
|
+
}
|
|
1821
|
+
const b = {
|
|
1822
|
+
calculatedDuration: d && f || null,
|
|
1823
|
+
next: (S) => {
|
|
1824
|
+
const A = x(S);
|
|
1825
|
+
if (d)
|
|
1826
|
+
a.done = S >= f;
|
|
1827
|
+
else {
|
|
1828
|
+
let C = 0;
|
|
1829
|
+
p < 1 && (C = S === 0 ? U(m) : Nn(x, S, A));
|
|
1830
|
+
const P = Math.abs(C) <= s, E = Math.abs(r - A) <= n;
|
|
1831
|
+
a.done = P && E;
|
|
1832
|
+
}
|
|
1833
|
+
return a.value = a.done ? r : A, a;
|
|
1834
|
+
},
|
|
1835
|
+
toString: () => {
|
|
1836
|
+
const S = Math.min(sn(b), bo), A = nn((C) => b.next(S * C).value, S, 30);
|
|
1837
|
+
return S + "ms " + A;
|
|
1838
|
+
}
|
|
1839
|
+
};
|
|
1840
|
+
return b;
|
|
1841
|
+
}
|
|
1842
|
+
function ji({ keyframes: t, velocity: e = 0, power: i = 0.8, timeConstant: s = 325, bounceDamping: n = 10, bounceStiffness: o = 500, modifyTarget: r, min: a, max: l, restDelta: u = 0.5, restSpeed: c }) {
|
|
1843
|
+
const f = t[0], h = {
|
|
1844
|
+
done: !1,
|
|
1845
|
+
value: f
|
|
1846
|
+
}, d = (P) => a !== void 0 && P < a || l !== void 0 && P > l, m = (P) => a === void 0 ? l : l === void 0 || Math.abs(a - P) < Math.abs(l - P) ? a : l;
|
|
1847
|
+
let p = i * e;
|
|
1848
|
+
const T = f + p, v = r === void 0 ? T : r(T);
|
|
1849
|
+
v !== T && (p = v - f);
|
|
1850
|
+
const g = (P) => -p * Math.exp(-P / s), x = (P) => v + g(P), b = (P) => {
|
|
1851
|
+
const E = g(P), Bt = x(P);
|
|
1852
|
+
h.done = Math.abs(E) <= u, h.value = h.done ? v : Bt;
|
|
1853
|
+
};
|
|
1854
|
+
let S, A;
|
|
1855
|
+
const C = (P) => {
|
|
1856
|
+
d(h.value) && (S = P, A = _n({
|
|
1857
|
+
keyframes: [h.value, m(h.value)],
|
|
1858
|
+
velocity: Nn(x, P, h.value),
|
|
1859
|
+
damping: n,
|
|
1860
|
+
stiffness: o,
|
|
1861
|
+
restDelta: u,
|
|
1862
|
+
restSpeed: c
|
|
1863
|
+
}));
|
|
1864
|
+
};
|
|
1865
|
+
return C(0), {
|
|
1866
|
+
calculatedDuration: null,
|
|
1867
|
+
next: (P) => {
|
|
1868
|
+
let E = !1;
|
|
1869
|
+
return !A && S === void 0 && (E = !0, b(P), C(P)), S !== void 0 && P >= S ? A.next(P - S) : (!E && b(P), h);
|
|
1870
|
+
}
|
|
1871
|
+
};
|
|
1872
|
+
}
|
|
1873
|
+
var Ba = /* @__PURE__ */ Rt(0.42, 0, 1, 1), ka = /* @__PURE__ */ Rt(0, 0, 0.58, 1), Un = /* @__PURE__ */ Rt(0.42, 0, 0.58, 1), Oa = (t) => Array.isArray(t) && typeof t[0] != "number", Ii = {
|
|
1874
|
+
linear: O,
|
|
1875
|
+
easeIn: Ba,
|
|
1876
|
+
easeInOut: Un,
|
|
1877
|
+
easeOut: ka,
|
|
1878
|
+
circIn: ni,
|
|
1879
|
+
circInOut: Pn,
|
|
1880
|
+
circOut: xn,
|
|
1881
|
+
backIn: si,
|
|
1882
|
+
backInOut: yn,
|
|
1883
|
+
backOut: gn,
|
|
1884
|
+
anticipate: Tn
|
|
1885
|
+
}, Ni = (t) => {
|
|
1886
|
+
if (Je(t)) {
|
|
1887
|
+
Y(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
|
|
1888
|
+
const [e, i, s, n] = t;
|
|
1889
|
+
return Rt(e, i, s, n);
|
|
1890
|
+
} else if (typeof t == "string")
|
|
1891
|
+
return Y(Ii[t] !== void 0, `Invalid easing type '${t}'`), Ii[t];
|
|
1892
|
+
return t;
|
|
1893
|
+
};
|
|
1894
|
+
function ja(t, e, i) {
|
|
1895
|
+
const s = [], n = i || In, o = t.length - 1;
|
|
1896
|
+
for (let r = 0; r < o; r++) {
|
|
1897
|
+
let a = n(t[r], t[r + 1]);
|
|
1898
|
+
e && (a = Lt(Array.isArray(e) ? e[r] || O : e, a)), s.push(a);
|
|
1899
|
+
}
|
|
1900
|
+
return s;
|
|
1901
|
+
}
|
|
1902
|
+
function Ia(t, e, { clamp: i = !0, ease: s, mixer: n } = {}) {
|
|
1903
|
+
const o = t.length;
|
|
1904
|
+
if (Y(o === e.length, "Both input and output ranges must be the same length"), o === 1) return () => e[0];
|
|
1905
|
+
if (o === 2 && e[0] === e[1]) return () => e[1];
|
|
1906
|
+
const r = t[0] === t[1];
|
|
1907
|
+
t[0] > t[o - 1] && (t = [...t].reverse(), e = [...e].reverse());
|
|
1908
|
+
const a = ja(e, s, n), l = a.length, u = (c) => {
|
|
1909
|
+
if (r && c < t[0]) return e[0];
|
|
1910
|
+
let f = 0;
|
|
1911
|
+
if (l > 1)
|
|
1912
|
+
for (; f < t.length - 2 && !(c < t[f + 1]); f++) ;
|
|
1913
|
+
const h = ut(t[f], t[f + 1], c);
|
|
1914
|
+
return a[f](h);
|
|
1915
|
+
};
|
|
1916
|
+
return i ? (c) => u(z(t[0], t[o - 1], c)) : u;
|
|
1917
|
+
}
|
|
1918
|
+
function Na(t, e) {
|
|
1919
|
+
const i = t[t.length - 1];
|
|
1920
|
+
for (let s = 1; s <= e; s++) {
|
|
1921
|
+
const n = ut(0, e, s);
|
|
1922
|
+
t.push(D(i, 1, n));
|
|
1923
|
+
}
|
|
1924
|
+
}
|
|
1925
|
+
function _a(t) {
|
|
1926
|
+
const e = [0];
|
|
1927
|
+
return Na(e, t.length - 1), e;
|
|
1928
|
+
}
|
|
1929
|
+
function Ua(t, e) {
|
|
1930
|
+
return t.map((i) => i * e);
|
|
1931
|
+
}
|
|
1932
|
+
function Ka(t, e) {
|
|
1933
|
+
return t.map(() => e || Un).splice(0, t.length - 1);
|
|
1934
|
+
}
|
|
1935
|
+
function zt({ duration: t = 300, keyframes: e, times: i, ease: s = "easeInOut" }) {
|
|
1936
|
+
const n = Oa(s) ? s.map(Ni) : Ni(s), o = {
|
|
1937
|
+
done: !1,
|
|
1938
|
+
value: e[0]
|
|
1939
|
+
}, r = Ia(Ua(i && i.length === e.length ? i : _a(e), t), e, { ease: Array.isArray(n) ? n : Ka(e, n) });
|
|
1940
|
+
return {
|
|
1941
|
+
calculatedDuration: t,
|
|
1942
|
+
next: (a) => (o.value = r(a), o.done = a >= t, o)
|
|
1943
|
+
};
|
|
1944
|
+
}
|
|
1945
|
+
var $a = (t) => {
|
|
1946
|
+
const e = ({ timestamp: i }) => t(i);
|
|
1947
|
+
return {
|
|
1948
|
+
start: () => w.update(e, !0),
|
|
1949
|
+
stop: () => X(e),
|
|
1950
|
+
now: () => R.isProcessing ? R.timestamp : $.now()
|
|
1951
|
+
};
|
|
1952
|
+
}, Wa = {
|
|
1953
|
+
decay: ji,
|
|
1954
|
+
inertia: ji,
|
|
1955
|
+
tween: zt,
|
|
1956
|
+
keyframes: zt,
|
|
1957
|
+
spring: _n
|
|
1958
|
+
}, Ga = (t) => t / 100, ci = class extends On {
|
|
1959
|
+
constructor(t) {
|
|
1960
|
+
super(t), this.holdTime = null, this.cancelTime = null, this.currentTime = 0, this.playbackSpeed = 1, this.pendingPlayState = "running", this.startTime = null, this.state = "idle", this.stop = () => {
|
|
1961
|
+
if (this.resolver.cancel(), this.isStopped = !0, this.state === "idle") return;
|
|
1962
|
+
this.teardown();
|
|
1963
|
+
const { onStop: a } = this.options;
|
|
1964
|
+
a && a();
|
|
1965
|
+
};
|
|
1966
|
+
const { name: e, motionValue: i, element: s, keyframes: n } = this.options, o = s?.KeyframeResolver || li, r = (a, l) => this.onKeyframesResolved(a, l);
|
|
1967
|
+
this.resolver = new o(n, r, e, i, s), this.resolver.scheduleResolve();
|
|
1968
|
+
}
|
|
1969
|
+
flatten() {
|
|
1970
|
+
super.flatten(), this._resolved && Object.assign(this._resolved, this.initPlayback(this._resolved.keyframes));
|
|
1971
|
+
}
|
|
1972
|
+
initPlayback(t) {
|
|
1973
|
+
const { type: e = "keyframes", repeat: i = 0, repeatDelay: s = 0, repeatType: n, velocity: o = 0 } = this.options, r = Ze(e) ? e : Wa[e] || zt;
|
|
1974
|
+
let a, l;
|
|
1975
|
+
r !== zt && typeof t[0] != "number" && (process.env.NODE_ENV !== "production" && Y(t.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`), a = Lt(Ga, In(t[0], t[1])), t = [0, 100]);
|
|
1976
|
+
const u = r({
|
|
1977
|
+
...this.options,
|
|
1978
|
+
keyframes: t
|
|
1979
|
+
});
|
|
1980
|
+
n === "mirror" && (l = r({
|
|
1981
|
+
...this.options,
|
|
1982
|
+
keyframes: [...t].reverse(),
|
|
1983
|
+
velocity: -o
|
|
1984
|
+
})), u.calculatedDuration === null && (u.calculatedDuration = sn(u));
|
|
1985
|
+
const { calculatedDuration: c } = u, f = c + s, h = f * (i + 1) - s;
|
|
1986
|
+
return {
|
|
1987
|
+
generator: u,
|
|
1988
|
+
mirroredGenerator: l,
|
|
1989
|
+
mapPercentToKeyframes: a,
|
|
1990
|
+
calculatedDuration: c,
|
|
1991
|
+
resolvedDuration: f,
|
|
1992
|
+
totalDuration: h
|
|
1993
|
+
};
|
|
1994
|
+
}
|
|
1995
|
+
onPostResolved() {
|
|
1996
|
+
const { autoplay: t = !0 } = this.options;
|
|
1997
|
+
this.play(), this.pendingPlayState === "paused" || !t ? this.pause() : this.state = this.pendingPlayState;
|
|
1998
|
+
}
|
|
1999
|
+
tick(t, e = !1) {
|
|
2000
|
+
const { resolved: i } = this;
|
|
2001
|
+
if (!i) {
|
|
2002
|
+
const { keyframes: C } = this.options;
|
|
2003
|
+
return {
|
|
2004
|
+
done: !0,
|
|
2005
|
+
value: C[C.length - 1]
|
|
2006
|
+
};
|
|
2007
|
+
}
|
|
2008
|
+
const { finalKeyframe: s, generator: n, mirroredGenerator: o, mapPercentToKeyframes: r, keyframes: a, calculatedDuration: l, totalDuration: u, resolvedDuration: c } = i;
|
|
2009
|
+
if (this.startTime === null) return n.next(0);
|
|
2010
|
+
const { delay: f, repeat: h, repeatType: d, repeatDelay: m, onUpdate: p } = this.options;
|
|
2011
|
+
this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - u / this.speed, this.startTime)), e ? this.currentTime = t : this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = Math.round(t - this.startTime) * this.speed;
|
|
2012
|
+
const T = this.currentTime - f * (this.speed >= 0 ? 1 : -1), v = this.speed >= 0 ? T < 0 : T > u;
|
|
2013
|
+
this.currentTime = Math.max(T, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = u);
|
|
2014
|
+
let g = this.currentTime, x = n;
|
|
2015
|
+
if (h) {
|
|
2016
|
+
const C = Math.min(this.currentTime, u) / c;
|
|
2017
|
+
let P = Math.floor(C), E = C % 1;
|
|
2018
|
+
!E && C >= 1 && (E = 1), E === 1 && P--, P = Math.min(P, h + 1), P % 2 && (d === "reverse" ? (E = 1 - E, m && (E -= m / c)) : d === "mirror" && (x = o)), g = z(0, 1, E) * c;
|
|
2019
|
+
}
|
|
2020
|
+
const b = v ? {
|
|
2021
|
+
done: !1,
|
|
2022
|
+
value: a[0]
|
|
2023
|
+
} : x.next(g);
|
|
2024
|
+
r && (b.value = r(b.value));
|
|
2025
|
+
let { done: S } = b;
|
|
2026
|
+
!v && l !== null && (S = this.speed >= 0 ? this.currentTime >= u : this.currentTime <= 0);
|
|
2027
|
+
const A = this.holdTime === null && (this.state === "finished" || this.state === "running" && S);
|
|
2028
|
+
return A && s !== void 0 && (b.value = ee(a, this.options, s)), p && p(b.value), A && this.finish(), b;
|
|
2029
|
+
}
|
|
2030
|
+
get duration() {
|
|
2031
|
+
const { resolved: t } = this;
|
|
2032
|
+
return t ? G(t.calculatedDuration) : 0;
|
|
2033
|
+
}
|
|
2034
|
+
get time() {
|
|
2035
|
+
return G(this.currentTime);
|
|
2036
|
+
}
|
|
2037
|
+
set time(t) {
|
|
2038
|
+
t = U(t), this.currentTime = t, this.holdTime !== null || this.speed === 0 ? this.holdTime = t : this.driver && (this.startTime = this.driver.now() - t / this.speed);
|
|
2039
|
+
}
|
|
2040
|
+
get speed() {
|
|
2041
|
+
return this.playbackSpeed;
|
|
2042
|
+
}
|
|
2043
|
+
set speed(t) {
|
|
2044
|
+
const e = this.playbackSpeed !== t;
|
|
2045
|
+
this.playbackSpeed = t, e && (this.time = G(this.currentTime));
|
|
2046
|
+
}
|
|
2047
|
+
play() {
|
|
2048
|
+
if (this.resolver.isScheduled || this.resolver.resume(), !this._resolved) {
|
|
2049
|
+
this.pendingPlayState = "running";
|
|
2050
|
+
return;
|
|
2051
|
+
}
|
|
2052
|
+
if (this.isStopped) return;
|
|
2053
|
+
const { driver: t = $a, onPlay: e, startTime: i } = this.options;
|
|
2054
|
+
this.driver || (this.driver = t((n) => this.tick(n))), e && e();
|
|
2055
|
+
const s = this.driver.now();
|
|
2056
|
+
this.holdTime !== null ? this.startTime = s - this.holdTime : this.startTime ? this.state === "finished" && (this.startTime = s) : this.startTime = i ?? this.calcStartTime(), this.state === "finished" && this.updateFinishedPromise(), this.cancelTime = this.startTime, this.holdTime = null, this.state = "running", this.driver.start();
|
|
2057
|
+
}
|
|
2058
|
+
pause() {
|
|
2059
|
+
var t;
|
|
2060
|
+
if (!this._resolved) {
|
|
2061
|
+
this.pendingPlayState = "paused";
|
|
2062
|
+
return;
|
|
2063
|
+
}
|
|
2064
|
+
this.state = "paused", this.holdTime = (t = this.currentTime) !== null && t !== void 0 ? t : 0;
|
|
2065
|
+
}
|
|
2066
|
+
complete() {
|
|
2067
|
+
this.state !== "running" && this.play(), this.pendingPlayState = this.state = "finished", this.holdTime = null;
|
|
2068
|
+
}
|
|
2069
|
+
finish() {
|
|
2070
|
+
this.teardown(), this.state = "finished";
|
|
2071
|
+
const { onComplete: t } = this.options;
|
|
2072
|
+
t && t();
|
|
2073
|
+
}
|
|
2074
|
+
cancel() {
|
|
2075
|
+
this.cancelTime !== null && this.tick(this.cancelTime), this.teardown(), this.updateFinishedPromise();
|
|
2076
|
+
}
|
|
2077
|
+
teardown() {
|
|
2078
|
+
this.state = "idle", this.stopDriver(), this.resolveFinishedPromise(), this.updateFinishedPromise(), this.startTime = this.cancelTime = null, this.resolver.cancel();
|
|
2079
|
+
}
|
|
2080
|
+
stopDriver() {
|
|
2081
|
+
this.driver && (this.driver.stop(), this.driver = void 0);
|
|
2082
|
+
}
|
|
2083
|
+
sample(t) {
|
|
2084
|
+
return this.startTime = 0, this.tick(t, !0);
|
|
2085
|
+
}
|
|
2086
|
+
}, za = /* @__PURE__ */ new Set([
|
|
2087
|
+
"opacity",
|
|
2088
|
+
"clipPath",
|
|
2089
|
+
"filter",
|
|
2090
|
+
"transform"
|
|
2091
|
+
]);
|
|
2092
|
+
function Ha(t, e, i, { delay: s = 0, duration: n = 300, repeat: o = 0, repeatType: r = "loop", ease: a = "easeInOut", times: l } = {}) {
|
|
2093
|
+
const u = { [e]: i };
|
|
2094
|
+
l && (u.offset = l);
|
|
2095
|
+
const c = on(a, n);
|
|
2096
|
+
return Array.isArray(c) && (u.easing = c), t.animate(u, {
|
|
2097
|
+
delay: s,
|
|
2098
|
+
duration: n,
|
|
2099
|
+
easing: Array.isArray(c) ? "linear" : c,
|
|
2100
|
+
fill: "both",
|
|
2101
|
+
iterations: o + 1,
|
|
2102
|
+
direction: r === "reverse" ? "alternate" : "normal"
|
|
2103
|
+
});
|
|
2104
|
+
}
|
|
2105
|
+
var Ya = /* @__PURE__ */ ke(() => Object.hasOwnProperty.call(Element.prototype, "animate")), Ht = 10, Xa = 2e4;
|
|
2106
|
+
function qa(t) {
|
|
2107
|
+
return Ze(t.type) || t.type === "spring" || !rn(t.ease);
|
|
2108
|
+
}
|
|
2109
|
+
function Za(t, e) {
|
|
2110
|
+
const i = new ci({
|
|
2111
|
+
...e,
|
|
2112
|
+
keyframes: t,
|
|
2113
|
+
repeat: 0,
|
|
2114
|
+
delay: 0,
|
|
2115
|
+
isGenerator: !0
|
|
2116
|
+
});
|
|
2117
|
+
let s = {
|
|
2118
|
+
done: !1,
|
|
2119
|
+
value: t[0]
|
|
2120
|
+
};
|
|
2121
|
+
const n = [];
|
|
2122
|
+
let o = 0;
|
|
2123
|
+
for (; !s.done && o < Xa; )
|
|
2124
|
+
s = i.sample(o), n.push(s.value), o += Ht;
|
|
2125
|
+
return {
|
|
2126
|
+
times: void 0,
|
|
2127
|
+
keyframes: n,
|
|
2128
|
+
duration: o - Ht,
|
|
2129
|
+
ease: "linear"
|
|
2130
|
+
};
|
|
2131
|
+
}
|
|
2132
|
+
var Kn = {
|
|
2133
|
+
anticipate: Tn,
|
|
2134
|
+
backInOut: yn,
|
|
2135
|
+
circInOut: Pn
|
|
2136
|
+
};
|
|
2137
|
+
function Ja(t) {
|
|
2138
|
+
return t in Kn;
|
|
2139
|
+
}
|
|
2140
|
+
var _i = class extends On {
|
|
2141
|
+
constructor(t) {
|
|
2142
|
+
super(t);
|
|
2143
|
+
const { name: e, motionValue: i, element: s, keyframes: n } = this.options;
|
|
2144
|
+
this.resolver = new kn(n, (o, r) => this.onKeyframesResolved(o, r), e, i, s), this.resolver.scheduleResolve();
|
|
2145
|
+
}
|
|
2146
|
+
initPlayback(t, e) {
|
|
2147
|
+
let { duration: i = 300, times: s, ease: n, type: o, motionValue: r, name: a, startTime: l } = this.options;
|
|
2148
|
+
if (!r.owner || !r.owner.current) return !1;
|
|
2149
|
+
if (typeof n == "string" && Wt() && Ja(n) && (n = Kn[n]), qa(this.options)) {
|
|
2150
|
+
const { onComplete: c, onUpdate: f, motionValue: h, element: d, ...m } = this.options, p = Za(t, m);
|
|
2151
|
+
t = p.keyframes, t.length === 1 && (t[1] = t[0]), i = p.duration, s = p.times, n = p.ease, o = "keyframes";
|
|
2152
|
+
}
|
|
2153
|
+
const u = Ha(r.owner.current, a, t, {
|
|
2154
|
+
...this.options,
|
|
2155
|
+
duration: i,
|
|
2156
|
+
times: s,
|
|
2157
|
+
ease: n
|
|
2158
|
+
});
|
|
2159
|
+
return u.startTime = l ?? this.calcStartTime(), this.pendingTimeline ? (Si(u, this.pendingTimeline), this.pendingTimeline = void 0) : u.onfinish = () => {
|
|
2160
|
+
const { onComplete: c } = this.options;
|
|
2161
|
+
r.set(ee(t, this.options, e)), c && c(), this.cancel(), this.resolveFinishedPromise();
|
|
2162
|
+
}, {
|
|
2163
|
+
animation: u,
|
|
2164
|
+
duration: i,
|
|
2165
|
+
times: s,
|
|
2166
|
+
type: o,
|
|
2167
|
+
ease: n,
|
|
2168
|
+
keyframes: t
|
|
2169
|
+
};
|
|
2170
|
+
}
|
|
2171
|
+
get duration() {
|
|
2172
|
+
const { resolved: t } = this;
|
|
2173
|
+
if (!t) return 0;
|
|
2174
|
+
const { duration: e } = t;
|
|
2175
|
+
return G(e);
|
|
2176
|
+
}
|
|
2177
|
+
get time() {
|
|
2178
|
+
const { resolved: t } = this;
|
|
2179
|
+
if (!t) return 0;
|
|
2180
|
+
const { animation: e } = t;
|
|
2181
|
+
return G(e.currentTime || 0);
|
|
2182
|
+
}
|
|
2183
|
+
set time(t) {
|
|
2184
|
+
const { resolved: e } = this;
|
|
2185
|
+
if (!e) return;
|
|
2186
|
+
const { animation: i } = e;
|
|
2187
|
+
i.currentTime = U(t);
|
|
2188
|
+
}
|
|
2189
|
+
get speed() {
|
|
2190
|
+
const { resolved: t } = this;
|
|
2191
|
+
if (!t) return 1;
|
|
2192
|
+
const { animation: e } = t;
|
|
2193
|
+
return e.playbackRate;
|
|
2194
|
+
}
|
|
2195
|
+
set speed(t) {
|
|
2196
|
+
const { resolved: e } = this;
|
|
2197
|
+
if (!e) return;
|
|
2198
|
+
const { animation: i } = e;
|
|
2199
|
+
i.playbackRate = t;
|
|
2200
|
+
}
|
|
2201
|
+
get state() {
|
|
2202
|
+
const { resolved: t } = this;
|
|
2203
|
+
if (!t) return "idle";
|
|
2204
|
+
const { animation: e } = t;
|
|
2205
|
+
return e.playState;
|
|
2206
|
+
}
|
|
2207
|
+
get startTime() {
|
|
2208
|
+
const { resolved: t } = this;
|
|
2209
|
+
if (!t) return null;
|
|
2210
|
+
const { animation: e } = t;
|
|
2211
|
+
return e.startTime;
|
|
2212
|
+
}
|
|
2213
|
+
attachTimeline(t) {
|
|
2214
|
+
if (!this._resolved) this.pendingTimeline = t;
|
|
2215
|
+
else {
|
|
2216
|
+
const { resolved: e } = this;
|
|
2217
|
+
if (!e) return O;
|
|
2218
|
+
const { animation: i } = e;
|
|
2219
|
+
Si(i, t);
|
|
2220
|
+
}
|
|
2221
|
+
return O;
|
|
2222
|
+
}
|
|
2223
|
+
play() {
|
|
2224
|
+
if (this.isStopped) return;
|
|
2225
|
+
const { resolved: t } = this;
|
|
2226
|
+
if (!t) return;
|
|
2227
|
+
const { animation: e } = t;
|
|
2228
|
+
e.playState === "finished" && this.updateFinishedPromise(), e.play();
|
|
2229
|
+
}
|
|
2230
|
+
pause() {
|
|
2231
|
+
const { resolved: t } = this;
|
|
2232
|
+
if (!t) return;
|
|
2233
|
+
const { animation: e } = t;
|
|
2234
|
+
e.pause();
|
|
2235
|
+
}
|
|
2236
|
+
stop() {
|
|
2237
|
+
if (this.resolver.cancel(), this.isStopped = !0, this.state === "idle") return;
|
|
2238
|
+
this.resolveFinishedPromise(), this.updateFinishedPromise();
|
|
2239
|
+
const { resolved: t } = this;
|
|
2240
|
+
if (!t) return;
|
|
2241
|
+
const { animation: e, keyframes: i, duration: s, type: n, ease: o, times: r } = t;
|
|
2242
|
+
if (e.playState === "idle" || e.playState === "finished") return;
|
|
2243
|
+
if (this.time) {
|
|
2244
|
+
const { motionValue: l, onUpdate: u, onComplete: c, element: f, ...h } = this.options, d = new ci({
|
|
2245
|
+
...h,
|
|
2246
|
+
keyframes: i,
|
|
2247
|
+
duration: s,
|
|
2248
|
+
type: n,
|
|
2249
|
+
ease: o,
|
|
2250
|
+
times: r,
|
|
2251
|
+
isGenerator: !0
|
|
2252
|
+
}), m = U(this.time);
|
|
2253
|
+
l.setWithVelocity(d.sample(m - Ht).value, d.sample(m).value, Ht);
|
|
2254
|
+
}
|
|
2255
|
+
const { onStop: a } = this.options;
|
|
2256
|
+
a && a(), this.cancel();
|
|
2257
|
+
}
|
|
2258
|
+
complete() {
|
|
2259
|
+
const { resolved: t } = this;
|
|
2260
|
+
t && t.animation.finish();
|
|
2261
|
+
}
|
|
2262
|
+
cancel() {
|
|
2263
|
+
const { resolved: t } = this;
|
|
2264
|
+
t && t.animation.cancel();
|
|
2265
|
+
}
|
|
2266
|
+
static supports(t) {
|
|
2267
|
+
const { motionValue: e, name: i, repeatDelay: s, repeatType: n, damping: o, type: r } = t;
|
|
2268
|
+
if (!e || !e.owner || !(e.owner.current instanceof HTMLElement)) return !1;
|
|
2269
|
+
const { onUpdate: a, transformTemplate: l } = e.owner.getProps();
|
|
2270
|
+
return Ya() && i && za.has(i) && !a && !l && !s && n !== "mirror" && o !== 0 && r !== "inertia";
|
|
2271
|
+
}
|
|
2272
|
+
}, Qa = {
|
|
2273
|
+
type: "spring",
|
|
2274
|
+
stiffness: 500,
|
|
2275
|
+
damping: 25,
|
|
2276
|
+
restSpeed: 10
|
|
2277
|
+
}, tl = (t) => ({
|
|
2278
|
+
type: "spring",
|
|
2279
|
+
stiffness: 550,
|
|
2280
|
+
damping: t === 0 ? 2 * Math.sqrt(550) : 30,
|
|
2281
|
+
restSpeed: 10
|
|
2282
|
+
}), el = {
|
|
2283
|
+
type: "keyframes",
|
|
2284
|
+
duration: 0.8
|
|
2285
|
+
}, il = {
|
|
2286
|
+
type: "keyframes",
|
|
2287
|
+
ease: [
|
|
2288
|
+
0.25,
|
|
2289
|
+
0.1,
|
|
2290
|
+
0.35,
|
|
2291
|
+
1
|
|
2292
|
+
],
|
|
2293
|
+
duration: 0.3
|
|
2294
|
+
}, sl = (t, { keyframes: e }) => e.length > 2 ? el : st.has(t) ? t.startsWith("scale") ? tl(e[1]) : Qa : il;
|
|
2295
|
+
function nl({ when: t, delay: e, delayChildren: i, staggerChildren: s, staggerDirection: n, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: u, ...c }) {
|
|
2296
|
+
return !!Object.keys(c).length;
|
|
2297
|
+
}
|
|
2298
|
+
var hi = (t, e, i, s = {}, n, o) => (r) => {
|
|
2299
|
+
const a = qe(s, t) || {}, l = a.delay || s.delay || 0;
|
|
2300
|
+
let { elapsed: u = 0 } = s;
|
|
2301
|
+
u = u - U(l);
|
|
2302
|
+
let c = {
|
|
2303
|
+
keyframes: Array.isArray(i) ? i : [null, i],
|
|
2304
|
+
ease: "easeOut",
|
|
2305
|
+
velocity: e.getVelocity(),
|
|
2306
|
+
...a,
|
|
2307
|
+
delay: -u,
|
|
2308
|
+
onUpdate: (h) => {
|
|
2309
|
+
e.set(h), a.onUpdate && a.onUpdate(h);
|
|
2310
|
+
},
|
|
2311
|
+
onComplete: () => {
|
|
2312
|
+
r(), a.onComplete && a.onComplete();
|
|
2313
|
+
},
|
|
2314
|
+
name: t,
|
|
2315
|
+
motionValue: e,
|
|
2316
|
+
element: o ? void 0 : n
|
|
2317
|
+
};
|
|
2318
|
+
nl(a) || (c = {
|
|
2319
|
+
...c,
|
|
2320
|
+
...sl(t, c)
|
|
2321
|
+
}), c.duration && (c.duration = U(c.duration)), c.repeatDelay && (c.repeatDelay = U(c.repeatDelay)), c.from !== void 0 && (c.keyframes[0] = c.from);
|
|
2322
|
+
let f = !1;
|
|
2323
|
+
if ((c.type === !1 || c.duration === 0 && !c.repeatDelay) && (c.duration = 0, c.delay === 0 && (f = !0)), (dn.current || Oe.skipAnimations) && (f = !0, c.duration = 0, c.delay = 0), f && !o && e.get() !== void 0) {
|
|
2324
|
+
const h = ee(c.keyframes, a);
|
|
2325
|
+
if (h !== void 0)
|
|
2326
|
+
return w.update(() => {
|
|
2327
|
+
c.onUpdate(h), c.onComplete();
|
|
2328
|
+
}), new So([]);
|
|
2329
|
+
}
|
|
2330
|
+
return !o && _i.supports(c) ? new _i(c) : new ci(c);
|
|
2331
|
+
};
|
|
2332
|
+
function rl({ protectedKeys: t, needsAnimating: e }, i) {
|
|
2333
|
+
const s = t.hasOwnProperty(i) && e[i] !== !0;
|
|
2334
|
+
return e[i] = !1, s;
|
|
2335
|
+
}
|
|
2336
|
+
function $n(t, e, { delay: i = 0, transitionOverride: s, type: n } = {}) {
|
|
2337
|
+
var o;
|
|
2338
|
+
let { transition: r = t.getDefaultTransition(), transitionEnd: a, ...l } = e;
|
|
2339
|
+
s && (r = s);
|
|
2340
|
+
const u = [], c = n && t.animationState && t.animationState.getState()[n];
|
|
2341
|
+
for (const f in l) {
|
|
2342
|
+
const h = t.getValue(f, (o = t.latestValues[f]) !== null && o !== void 0 ? o : null), d = l[f];
|
|
2343
|
+
if (d === void 0 || c && rl(c, f)) continue;
|
|
2344
|
+
const m = {
|
|
2345
|
+
delay: i,
|
|
2346
|
+
...qe(r || {}, f)
|
|
2347
|
+
};
|
|
2348
|
+
let p = !1;
|
|
2349
|
+
if (window.MotionHandoffAnimation) {
|
|
2350
|
+
const v = fn(t);
|
|
2351
|
+
if (v) {
|
|
2352
|
+
const g = window.MotionHandoffAnimation(v, f, w);
|
|
2353
|
+
g !== null && (m.startTime = g, p = !0);
|
|
2354
|
+
}
|
|
2355
|
+
}
|
|
2356
|
+
Te(t, f), h.start(hi(f, h, d, t.shouldReduceMotion && cn.has(f) ? { type: !1 } : m, t, p));
|
|
2357
|
+
const T = h.animation;
|
|
2358
|
+
T && u.push(T);
|
|
2359
|
+
}
|
|
2360
|
+
return a && Promise.all(u).then(() => {
|
|
2361
|
+
w.update(() => {
|
|
2362
|
+
a && jo(t, a);
|
|
2363
|
+
});
|
|
2364
|
+
}), u;
|
|
2365
|
+
}
|
|
2366
|
+
function Ve(t, e, i = {}) {
|
|
2367
|
+
var s;
|
|
2368
|
+
const n = te(t, e, i.type === "exit" ? (s = t.presenceContext) === null || s === void 0 ? void 0 : s.custom : void 0);
|
|
2369
|
+
let { transition: o = t.getDefaultTransition() || {} } = n || {};
|
|
2370
|
+
i.transitionOverride && (o = i.transitionOverride);
|
|
2371
|
+
const r = n ? () => Promise.all($n(t, n, i)) : () => Promise.resolve(), a = t.variantChildren && t.variantChildren.size ? (u = 0) => {
|
|
2372
|
+
const { delayChildren: c = 0, staggerChildren: f, staggerDirection: h } = o;
|
|
2373
|
+
return ol(t, e, c + u, f, h, i);
|
|
2374
|
+
} : () => Promise.resolve(), { when: l } = o;
|
|
2375
|
+
if (l) {
|
|
2376
|
+
const [u, c] = l === "beforeChildren" ? [r, a] : [a, r];
|
|
2377
|
+
return u().then(() => c());
|
|
2378
|
+
} else return Promise.all([r(), a(i.delay)]);
|
|
2379
|
+
}
|
|
2380
|
+
function ol(t, e, i = 0, s = 0, n = 1, o) {
|
|
2381
|
+
const r = [], a = (t.variantChildren.size - 1) * s, l = n === 1 ? (u = 0) => u * s : (u = 0) => a - u * s;
|
|
2382
|
+
return Array.from(t.variantChildren).sort(al).forEach((u, c) => {
|
|
2383
|
+
u.notify("AnimationStart", e), r.push(Ve(u, e, {
|
|
2384
|
+
...o,
|
|
2385
|
+
delay: i + l(c)
|
|
2386
|
+
}).then(() => u.notify("AnimationComplete", e)));
|
|
2387
|
+
}), Promise.all(r);
|
|
2388
|
+
}
|
|
2389
|
+
function al(t, e) {
|
|
2390
|
+
return t.sortNodePosition(e);
|
|
2391
|
+
}
|
|
2392
|
+
function ll(t, e, i = {}) {
|
|
2393
|
+
t.notify("AnimationStart", e);
|
|
2394
|
+
let s;
|
|
2395
|
+
if (Array.isArray(e)) {
|
|
2396
|
+
const n = e.map((o) => Ve(t, o, i));
|
|
2397
|
+
s = Promise.all(n);
|
|
2398
|
+
} else if (typeof e == "string") s = Ve(t, e, i);
|
|
2399
|
+
else {
|
|
2400
|
+
const n = typeof e == "function" ? te(t, e, i.custom) : e;
|
|
2401
|
+
s = Promise.all($n(t, n, i));
|
|
2402
|
+
}
|
|
2403
|
+
return s.then(() => {
|
|
2404
|
+
t.notify("AnimationComplete", e);
|
|
2405
|
+
});
|
|
2406
|
+
}
|
|
2407
|
+
var ul = Ie.length;
|
|
2408
|
+
function Wn(t) {
|
|
2409
|
+
if (!t) return;
|
|
2410
|
+
if (!t.isControllingVariants) {
|
|
2411
|
+
const i = t.parent ? Wn(t.parent) || {} : {};
|
|
2412
|
+
return t.props.initial !== void 0 && (i.initial = t.props.initial), i;
|
|
2413
|
+
}
|
|
2414
|
+
const e = {};
|
|
2415
|
+
for (let i = 0; i < ul; i++) {
|
|
2416
|
+
const s = Ie[i], n = t.props[s];
|
|
2417
|
+
(wt(n) || n === !1) && (e[s] = n);
|
|
2418
|
+
}
|
|
2419
|
+
return e;
|
|
2420
|
+
}
|
|
2421
|
+
var cl = [...je].reverse(), hl = je.length;
|
|
2422
|
+
function fl(t) {
|
|
2423
|
+
return (e) => Promise.all(e.map(({ animation: i, options: s }) => ll(t, i, s)));
|
|
2424
|
+
}
|
|
2425
|
+
function dl(t) {
|
|
2426
|
+
let e = fl(t), i = Ui(), s = !0;
|
|
2427
|
+
const n = (l) => (u, c) => {
|
|
2428
|
+
var f;
|
|
2429
|
+
const h = te(t, c, l === "exit" ? (f = t.presenceContext) === null || f === void 0 ? void 0 : f.custom : void 0);
|
|
2430
|
+
if (h) {
|
|
2431
|
+
const { transition: d, transitionEnd: m, ...p } = h;
|
|
2432
|
+
u = {
|
|
2433
|
+
...u,
|
|
2434
|
+
...p,
|
|
2435
|
+
...m
|
|
2436
|
+
};
|
|
2437
|
+
}
|
|
2438
|
+
return u;
|
|
2439
|
+
};
|
|
2440
|
+
function o(l) {
|
|
2441
|
+
e = l(t);
|
|
2442
|
+
}
|
|
2443
|
+
function r(l) {
|
|
2444
|
+
const { props: u } = t, c = Wn(t.parent) || {}, f = [], h = /* @__PURE__ */ new Set();
|
|
2445
|
+
let d = {}, m = 1 / 0;
|
|
2446
|
+
for (let T = 0; T < hl; T++) {
|
|
2447
|
+
const v = cl[T], g = i[v], x = u[v] !== void 0 ? u[v] : c[v], b = wt(x), S = v === l ? g.isActive : null;
|
|
2448
|
+
S === !1 && (m = T);
|
|
2449
|
+
let A = x === c[v] && x !== u[v] && b;
|
|
2450
|
+
if (A && s && t.manuallyAnimateOnMount && (A = !1), g.protectedKeys = { ...d }, !g.isActive && S === null || !x && !g.prevProp || Jt(x) || typeof x == "boolean") continue;
|
|
2451
|
+
const C = ml(g.prevProp, x);
|
|
2452
|
+
let P = C || v === l && g.isActive && !A && b || T > m && b, E = !1;
|
|
2453
|
+
const Bt = Array.isArray(x) ? x : [x];
|
|
2454
|
+
let vt = Bt.reduce(n(v), {});
|
|
2455
|
+
S === !1 && (vt = {});
|
|
2456
|
+
const { prevResolvedValues: fi = {} } = g, hr = {
|
|
2457
|
+
...fi,
|
|
2458
|
+
...vt
|
|
2459
|
+
}, di = (B) => {
|
|
2460
|
+
P = !0, h.has(B) && (E = !0, h.delete(B)), g.needsAnimating[B] = !0;
|
|
2461
|
+
const W = t.getValue(B);
|
|
2462
|
+
W && (W.liveStyle = !1);
|
|
2463
|
+
};
|
|
2464
|
+
for (const B in hr) {
|
|
2465
|
+
const W = vt[B], ie = fi[B];
|
|
2466
|
+
if (d.hasOwnProperty(B)) continue;
|
|
2467
|
+
let se = !1;
|
|
2468
|
+
ge(W) && ge(ie) ? se = !en(W, ie) : se = W !== ie, se ? W != null ? di(B) : h.add(B) : W !== void 0 && h.has(B) ? di(B) : g.protectedKeys[B] = !0;
|
|
2469
|
+
}
|
|
2470
|
+
g.prevProp = x, g.prevResolvedValues = vt, g.isActive && (d = {
|
|
2471
|
+
...d,
|
|
2472
|
+
...vt
|
|
2473
|
+
}), s && t.blockInitialAnimation && (P = !1), P && (!(A && C) || E) && f.push(...Bt.map((B) => ({
|
|
2474
|
+
animation: B,
|
|
2475
|
+
options: { type: v }
|
|
2476
|
+
})));
|
|
2477
|
+
}
|
|
2478
|
+
if (h.size) {
|
|
2479
|
+
const T = {};
|
|
2480
|
+
h.forEach((v) => {
|
|
2481
|
+
const g = t.getBaseTarget(v), x = t.getValue(v);
|
|
2482
|
+
x && (x.liveStyle = !0), T[v] = g ?? null;
|
|
2483
|
+
}), f.push({ animation: T });
|
|
2484
|
+
}
|
|
2485
|
+
let p = !!f.length;
|
|
2486
|
+
return s && (u.initial === !1 || u.initial === u.animate) && !t.manuallyAnimateOnMount && (p = !1), s = !1, p ? e(f) : Promise.resolve();
|
|
2487
|
+
}
|
|
2488
|
+
function a(l, u) {
|
|
2489
|
+
var c;
|
|
2490
|
+
if (i[l].isActive === u) return Promise.resolve();
|
|
2491
|
+
(c = t.variantChildren) === null || c === void 0 || c.forEach((h) => {
|
|
2492
|
+
var d;
|
|
2493
|
+
return (d = h.animationState) === null || d === void 0 ? void 0 : d.setActive(l, u);
|
|
2494
|
+
}), i[l].isActive = u;
|
|
2495
|
+
const f = r(l);
|
|
2496
|
+
for (const h in i) i[h].protectedKeys = {};
|
|
2497
|
+
return f;
|
|
2498
|
+
}
|
|
2499
|
+
return {
|
|
2500
|
+
animateChanges: r,
|
|
2501
|
+
setActive: a,
|
|
2502
|
+
setAnimateFunction: o,
|
|
2503
|
+
getState: () => i,
|
|
2504
|
+
reset: () => {
|
|
2505
|
+
i = Ui(), s = !0;
|
|
2506
|
+
}
|
|
2507
|
+
};
|
|
2508
|
+
}
|
|
2509
|
+
function ml(t, e) {
|
|
2510
|
+
return typeof e == "string" ? e !== t : Array.isArray(e) ? !en(e, t) : !1;
|
|
2511
|
+
}
|
|
2512
|
+
function J(t = !1) {
|
|
2513
|
+
return {
|
|
2514
|
+
isActive: t,
|
|
2515
|
+
protectedKeys: {},
|
|
2516
|
+
needsAnimating: {},
|
|
2517
|
+
prevResolvedValues: {}
|
|
2518
|
+
};
|
|
2519
|
+
}
|
|
2520
|
+
function Ui() {
|
|
2521
|
+
return {
|
|
2522
|
+
animate: J(!0),
|
|
2523
|
+
whileInView: J(),
|
|
2524
|
+
whileHover: J(),
|
|
2525
|
+
whileTap: J(),
|
|
2526
|
+
whileDrag: J(),
|
|
2527
|
+
whileFocus: J(),
|
|
2528
|
+
exit: J()
|
|
2529
|
+
};
|
|
2530
|
+
}
|
|
2531
|
+
var Z = class {
|
|
2532
|
+
constructor(t) {
|
|
2533
|
+
this.isMounted = !1, this.node = t;
|
|
2534
|
+
}
|
|
2535
|
+
update() {
|
|
2536
|
+
}
|
|
2537
|
+
}, pl = class extends Z {
|
|
2538
|
+
constructor(t) {
|
|
2539
|
+
super(t), t.animationState || (t.animationState = dl(t));
|
|
2540
|
+
}
|
|
2541
|
+
updateAnimationControlsSubscription() {
|
|
2542
|
+
const { animate: t } = this.node.getProps();
|
|
2543
|
+
Jt(t) && (this.unmountControls = t.subscribe(this.node));
|
|
2544
|
+
}
|
|
2545
|
+
mount() {
|
|
2546
|
+
this.updateAnimationControlsSubscription();
|
|
2547
|
+
}
|
|
2548
|
+
update() {
|
|
2549
|
+
const { animate: t } = this.node.getProps(), { animate: e } = this.node.prevProps || {};
|
|
2550
|
+
t !== e && this.updateAnimationControlsSubscription();
|
|
2551
|
+
}
|
|
2552
|
+
unmount() {
|
|
2553
|
+
var t;
|
|
2554
|
+
this.node.animationState.reset(), (t = this.unmountControls) === null || t === void 0 || t.call(this);
|
|
2555
|
+
}
|
|
2556
|
+
}, vl = 0, gl = class extends Z {
|
|
2557
|
+
constructor() {
|
|
2558
|
+
super(...arguments), this.id = vl++;
|
|
2559
|
+
}
|
|
2560
|
+
update() {
|
|
2561
|
+
if (!this.node.presenceContext) return;
|
|
2562
|
+
const { isPresent: t, onExitComplete: e } = this.node.presenceContext, { isPresent: i } = this.node.prevPresenceContext || {};
|
|
2563
|
+
if (!this.node.animationState || t === i) return;
|
|
2564
|
+
const s = this.node.animationState.setActive("exit", !t);
|
|
2565
|
+
e && !t && s.then(() => e(this.id));
|
|
2566
|
+
}
|
|
2567
|
+
mount() {
|
|
2568
|
+
const { register: t } = this.node.presenceContext || {};
|
|
2569
|
+
t && (this.unmount = t(this.id));
|
|
2570
|
+
}
|
|
2571
|
+
unmount() {
|
|
2572
|
+
}
|
|
2573
|
+
}, yl = {
|
|
2574
|
+
animation: { Feature: pl },
|
|
2575
|
+
exit: { Feature: gl }
|
|
2576
|
+
};
|
|
2577
|
+
function Ct(t, e, i, s = { passive: !0 }) {
|
|
2578
|
+
return t.addEventListener(e, i, s), () => t.removeEventListener(e, i);
|
|
2579
|
+
}
|
|
2580
|
+
function Ft(t) {
|
|
2581
|
+
return { point: {
|
|
2582
|
+
x: t.pageX,
|
|
2583
|
+
y: t.pageY
|
|
2584
|
+
} };
|
|
2585
|
+
}
|
|
2586
|
+
var Tl = (t) => (e) => Qe(e) && t(e, Ft(e));
|
|
2587
|
+
function St(t, e, i, s) {
|
|
2588
|
+
return Ct(t, e, Tl(i), s);
|
|
2589
|
+
}
|
|
2590
|
+
var Ki = (t, e) => Math.abs(t - e);
|
|
2591
|
+
function xl(t, e) {
|
|
2592
|
+
const i = Ki(t.x, e.x), s = Ki(t.y, e.y);
|
|
2593
|
+
return Math.sqrt(i ** 2 + s ** 2);
|
|
2594
|
+
}
|
|
2595
|
+
var Gn = class {
|
|
2596
|
+
constructor(t, e, { transformPagePoint: i, contextWindow: s, dragSnapToOrigin: n = !1 } = {}) {
|
|
2597
|
+
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
|
|
2598
|
+
if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
|
|
2599
|
+
const u = he(this.lastMoveEventInfo, this.history), c = this.startEvent !== null, f = xl(u.offset, {
|
|
2600
|
+
x: 0,
|
|
2601
|
+
y: 0
|
|
2602
|
+
}) >= 3;
|
|
2603
|
+
if (!c && !f) return;
|
|
2604
|
+
const { point: h } = u, { timestamp: d } = R;
|
|
2605
|
+
this.history.push({
|
|
2606
|
+
...h,
|
|
2607
|
+
timestamp: d
|
|
2608
|
+
});
|
|
2609
|
+
const { onStart: m, onMove: p } = this.handlers;
|
|
2610
|
+
c || (m && m(this.lastMoveEvent, u), this.startEvent = this.lastMoveEvent), p && p(this.lastMoveEvent, u);
|
|
2611
|
+
}, this.handlePointerMove = (u, c) => {
|
|
2612
|
+
this.lastMoveEvent = u, this.lastMoveEventInfo = ce(c, this.transformPagePoint), w.update(this.updatePoint, !0);
|
|
2613
|
+
}, this.handlePointerUp = (u, c) => {
|
|
2614
|
+
this.end();
|
|
2615
|
+
const { onEnd: f, onSessionEnd: h, resumeAnimation: d } = this.handlers;
|
|
2616
|
+
if (this.dragSnapToOrigin && d && d(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
|
|
2617
|
+
const m = he(u.type === "pointercancel" ? this.lastMoveEventInfo : ce(c, this.transformPagePoint), this.history);
|
|
2618
|
+
this.startEvent && f && f(u, m), h && h(u, m);
|
|
2619
|
+
}, !Qe(t)) return;
|
|
2620
|
+
this.dragSnapToOrigin = n, this.handlers = e, this.transformPagePoint = i, this.contextWindow = s || window;
|
|
2621
|
+
const o = ce(Ft(t), this.transformPagePoint), { point: r } = o, { timestamp: a } = R;
|
|
2622
|
+
this.history = [{
|
|
2623
|
+
...r,
|
|
2624
|
+
timestamp: a
|
|
2625
|
+
}];
|
|
2626
|
+
const { onSessionStart: l } = e;
|
|
2627
|
+
l && l(t, he(o, this.history)), this.removeListeners = Lt(St(this.contextWindow, "pointermove", this.handlePointerMove), St(this.contextWindow, "pointerup", this.handlePointerUp), St(this.contextWindow, "pointercancel", this.handlePointerUp));
|
|
2628
|
+
}
|
|
2629
|
+
updateHandlers(t) {
|
|
2630
|
+
this.handlers = t;
|
|
2631
|
+
}
|
|
2632
|
+
end() {
|
|
2633
|
+
this.removeListeners && this.removeListeners(), X(this.updatePoint);
|
|
2634
|
+
}
|
|
2635
|
+
};
|
|
2636
|
+
function ce(t, e) {
|
|
2637
|
+
return e ? { point: e(t.point) } : t;
|
|
2638
|
+
}
|
|
2639
|
+
function $i(t, e) {
|
|
2640
|
+
return {
|
|
2641
|
+
x: t.x - e.x,
|
|
2642
|
+
y: t.y - e.y
|
|
2643
|
+
};
|
|
2644
|
+
}
|
|
2645
|
+
function he({ point: t }, e) {
|
|
2646
|
+
return {
|
|
2647
|
+
point: t,
|
|
2648
|
+
delta: $i(t, zn(e)),
|
|
2649
|
+
offset: $i(t, Pl(e)),
|
|
2650
|
+
velocity: Sl(e, 0.1)
|
|
2651
|
+
};
|
|
2652
|
+
}
|
|
2653
|
+
function Pl(t) {
|
|
2654
|
+
return t[0];
|
|
2655
|
+
}
|
|
2656
|
+
function zn(t) {
|
|
2657
|
+
return t[t.length - 1];
|
|
2658
|
+
}
|
|
2659
|
+
function Sl(t, e) {
|
|
2660
|
+
if (t.length < 2) return {
|
|
2661
|
+
x: 0,
|
|
2662
|
+
y: 0
|
|
2663
|
+
};
|
|
2664
|
+
let i = t.length - 1, s = null;
|
|
2665
|
+
const n = zn(t);
|
|
2666
|
+
for (; i >= 0 && (s = t[i], !(n.timestamp - s.timestamp > U(e))); )
|
|
2667
|
+
i--;
|
|
2668
|
+
if (!s) return {
|
|
2669
|
+
x: 0,
|
|
2670
|
+
y: 0
|
|
2671
|
+
};
|
|
2672
|
+
const o = G(n.timestamp - s.timestamp);
|
|
2673
|
+
if (o === 0) return {
|
|
2674
|
+
x: 0,
|
|
2675
|
+
y: 0
|
|
2676
|
+
};
|
|
2677
|
+
const r = {
|
|
2678
|
+
x: (n.x - s.x) / o,
|
|
2679
|
+
y: (n.y - s.y) / o
|
|
2680
|
+
};
|
|
2681
|
+
return r.x === 1 / 0 && (r.x = 0), r.y === 1 / 0 && (r.y = 0), r;
|
|
2682
|
+
}
|
|
2683
|
+
var Hn = 1e-4, bl = 1 - Hn, Al = 1 + Hn, Yn = 0.01, wl = 0 - Yn, Vl = 0 + Yn;
|
|
2684
|
+
function j(t) {
|
|
2685
|
+
return t.max - t.min;
|
|
2686
|
+
}
|
|
2687
|
+
function Dl(t, e, i) {
|
|
2688
|
+
return Math.abs(t - e) <= i;
|
|
2689
|
+
}
|
|
2690
|
+
function Wi(t, e, i, s = 0.5) {
|
|
2691
|
+
t.origin = s, t.originPoint = D(e.min, e.max, t.origin), t.scale = j(i) / j(e), t.translate = D(i.min, i.max, t.origin) - t.originPoint, (t.scale >= bl && t.scale <= Al || isNaN(t.scale)) && (t.scale = 1), (t.translate >= wl && t.translate <= Vl || isNaN(t.translate)) && (t.translate = 0);
|
|
2692
|
+
}
|
|
2693
|
+
function bt(t, e, i, s) {
|
|
2694
|
+
Wi(t.x, e.x, i.x, s ? s.originX : void 0), Wi(t.y, e.y, i.y, s ? s.originY : void 0);
|
|
2695
|
+
}
|
|
2696
|
+
function Gi(t, e, i) {
|
|
2697
|
+
t.min = i.min + e.min, t.max = t.min + j(e);
|
|
2698
|
+
}
|
|
2699
|
+
function Ml(t, e, i) {
|
|
2700
|
+
Gi(t.x, e.x, i.x), Gi(t.y, e.y, i.y);
|
|
2701
|
+
}
|
|
2702
|
+
function zi(t, e, i) {
|
|
2703
|
+
t.min = e.min - i.min, t.max = t.min + j(e);
|
|
2704
|
+
}
|
|
2705
|
+
function At(t, e, i) {
|
|
2706
|
+
zi(t.x, e.x, i.x), zi(t.y, e.y, i.y);
|
|
2707
|
+
}
|
|
2708
|
+
function Cl(t, { min: e, max: i }, s) {
|
|
2709
|
+
return e !== void 0 && t < e ? t = s ? D(e, t, s.min) : Math.max(t, e) : i !== void 0 && t > i && (t = s ? D(i, t, s.max) : Math.min(t, i)), t;
|
|
2710
|
+
}
|
|
2711
|
+
function Hi(t, e, i) {
|
|
2712
|
+
return {
|
|
2713
|
+
min: e !== void 0 ? t.min + e : void 0,
|
|
2714
|
+
max: i !== void 0 ? t.max + i - (t.max - t.min) : void 0
|
|
2715
|
+
};
|
|
2716
|
+
}
|
|
2717
|
+
function El(t, { top: e, left: i, bottom: s, right: n }) {
|
|
2718
|
+
return {
|
|
2719
|
+
x: Hi(t.x, i, n),
|
|
2720
|
+
y: Hi(t.y, e, s)
|
|
2721
|
+
};
|
|
2722
|
+
}
|
|
2723
|
+
function Yi(t, e) {
|
|
2724
|
+
let i = e.min - t.min, s = e.max - t.max;
|
|
2725
|
+
return e.max - e.min < t.max - t.min && ([i, s] = [s, i]), {
|
|
2726
|
+
min: i,
|
|
2727
|
+
max: s
|
|
2728
|
+
};
|
|
2729
|
+
}
|
|
2730
|
+
function Rl(t, e) {
|
|
2731
|
+
return {
|
|
2732
|
+
x: Yi(t.x, e.x),
|
|
2733
|
+
y: Yi(t.y, e.y)
|
|
2734
|
+
};
|
|
2735
|
+
}
|
|
2736
|
+
function Ll(t, e) {
|
|
2737
|
+
let i = 0.5;
|
|
2738
|
+
const s = j(t), n = j(e);
|
|
2739
|
+
return n > s ? i = ut(e.min, e.max - s, t.min) : s > n && (i = ut(t.min, t.max - n, e.min)), z(0, 1, i);
|
|
2740
|
+
}
|
|
2741
|
+
function Fl(t, e) {
|
|
2742
|
+
const i = {};
|
|
2743
|
+
return e.min !== void 0 && (i.min = e.min - t.min), e.max !== void 0 && (i.max = e.max - t.min), i;
|
|
2744
|
+
}
|
|
2745
|
+
var De = 0.35;
|
|
2746
|
+
function Bl(t = De) {
|
|
2747
|
+
return t === !1 ? t = 0 : t === !0 && (t = De), {
|
|
2748
|
+
x: Xi(t, "left", "right"),
|
|
2749
|
+
y: Xi(t, "top", "bottom")
|
|
2750
|
+
};
|
|
2751
|
+
}
|
|
2752
|
+
function Xi(t, e, i) {
|
|
2753
|
+
return {
|
|
2754
|
+
min: qi(t, e),
|
|
2755
|
+
max: qi(t, i)
|
|
2756
|
+
};
|
|
2757
|
+
}
|
|
2758
|
+
function qi(t, e) {
|
|
2759
|
+
return typeof t == "number" ? t : t[e] || 0;
|
|
2760
|
+
}
|
|
2761
|
+
var Zi = () => ({
|
|
2762
|
+
translate: 0,
|
|
2763
|
+
scale: 1,
|
|
2764
|
+
origin: 0,
|
|
2765
|
+
originPoint: 0
|
|
2766
|
+
}), ot = () => ({
|
|
2767
|
+
x: Zi(),
|
|
2768
|
+
y: Zi()
|
|
2769
|
+
}), Ji = () => ({
|
|
2770
|
+
min: 0,
|
|
2771
|
+
max: 0
|
|
2772
|
+
}), M = () => ({
|
|
2773
|
+
x: Ji(),
|
|
2774
|
+
y: Ji()
|
|
2775
|
+
});
|
|
2776
|
+
function N(t) {
|
|
2777
|
+
return [t("x"), t("y")];
|
|
2778
|
+
}
|
|
2779
|
+
function Xn({ top: t, left: e, right: i, bottom: s }) {
|
|
2780
|
+
return {
|
|
2781
|
+
x: {
|
|
2782
|
+
min: e,
|
|
2783
|
+
max: i
|
|
2784
|
+
},
|
|
2785
|
+
y: {
|
|
2786
|
+
min: t,
|
|
2787
|
+
max: s
|
|
2788
|
+
}
|
|
2789
|
+
};
|
|
2790
|
+
}
|
|
2791
|
+
function kl({ x: t, y: e }) {
|
|
2792
|
+
return {
|
|
2793
|
+
top: e.min,
|
|
2794
|
+
right: t.max,
|
|
2795
|
+
bottom: e.max,
|
|
2796
|
+
left: t.min
|
|
2797
|
+
};
|
|
2798
|
+
}
|
|
2799
|
+
function Ol(t, e) {
|
|
2800
|
+
if (!e) return t;
|
|
2801
|
+
const i = e({
|
|
2802
|
+
x: t.left,
|
|
2803
|
+
y: t.top
|
|
2804
|
+
}), s = e({
|
|
2805
|
+
x: t.right,
|
|
2806
|
+
y: t.bottom
|
|
2807
|
+
});
|
|
2808
|
+
return {
|
|
2809
|
+
top: i.y,
|
|
2810
|
+
left: i.x,
|
|
2811
|
+
bottom: s.y,
|
|
2812
|
+
right: s.x
|
|
2813
|
+
};
|
|
2814
|
+
}
|
|
2815
|
+
function fe(t) {
|
|
2816
|
+
return t === void 0 || t === 1;
|
|
2817
|
+
}
|
|
2818
|
+
function Me({ scale: t, scaleX: e, scaleY: i }) {
|
|
2819
|
+
return !fe(t) || !fe(e) || !fe(i);
|
|
2820
|
+
}
|
|
2821
|
+
function Q(t) {
|
|
2822
|
+
return Me(t) || qn(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
|
|
2823
|
+
}
|
|
2824
|
+
function qn(t) {
|
|
2825
|
+
return Qi(t.x) || Qi(t.y);
|
|
2826
|
+
}
|
|
2827
|
+
function Qi(t) {
|
|
2828
|
+
return t && t !== "0%";
|
|
2829
|
+
}
|
|
2830
|
+
function Yt(t, e, i) {
|
|
2831
|
+
return i + e * (t - i);
|
|
2832
|
+
}
|
|
2833
|
+
function ts(t, e, i, s, n) {
|
|
2834
|
+
return n !== void 0 && (t = Yt(t, n, s)), Yt(t, i, s) + e;
|
|
2835
|
+
}
|
|
2836
|
+
function Ce(t, e = 0, i = 1, s, n) {
|
|
2837
|
+
t.min = ts(t.min, e, i, s, n), t.max = ts(t.max, e, i, s, n);
|
|
2838
|
+
}
|
|
2839
|
+
function Zn(t, { x: e, y: i }) {
|
|
2840
|
+
Ce(t.x, e.translate, e.scale, e.originPoint), Ce(t.y, i.translate, i.scale, i.originPoint);
|
|
2841
|
+
}
|
|
2842
|
+
var es = 0.999999999999, is = 1.0000000000001;
|
|
2843
|
+
function jl(t, e, i, s = !1) {
|
|
2844
|
+
const n = i.length;
|
|
2845
|
+
if (!n) return;
|
|
2846
|
+
e.x = e.y = 1;
|
|
2847
|
+
let o, r;
|
|
2848
|
+
for (let a = 0; a < n; a++) {
|
|
2849
|
+
o = i[a], r = o.projectionDelta;
|
|
2850
|
+
const { visualElement: l } = o.options;
|
|
2851
|
+
l && l.props.style && l.props.style.display === "contents" || (s && o.options.layoutScroll && o.scroll && o !== o.root && lt(t, {
|
|
2852
|
+
x: -o.scroll.offset.x,
|
|
2853
|
+
y: -o.scroll.offset.y
|
|
2854
|
+
}), r && (e.x *= r.x.scale, e.y *= r.y.scale, Zn(t, r)), s && Q(o.latestValues) && lt(t, o.latestValues));
|
|
2855
|
+
}
|
|
2856
|
+
e.x < is && e.x > es && (e.x = 1), e.y < is && e.y > es && (e.y = 1);
|
|
2857
|
+
}
|
|
2858
|
+
function at(t, e) {
|
|
2859
|
+
t.min = t.min + e, t.max = t.max + e;
|
|
2860
|
+
}
|
|
2861
|
+
function ss(t, e, i, s, n = 0.5) {
|
|
2862
|
+
Ce(t, e, i, D(t.min, t.max, n), s);
|
|
2863
|
+
}
|
|
2864
|
+
function lt(t, e) {
|
|
2865
|
+
ss(t.x, e.x, e.scaleX, e.scale, e.originX), ss(t.y, e.y, e.scaleY, e.scale, e.originY);
|
|
2866
|
+
}
|
|
2867
|
+
function Jn(t, e) {
|
|
2868
|
+
return Xn(Ol(t.getBoundingClientRect(), e));
|
|
2869
|
+
}
|
|
2870
|
+
function Il(t, e, i) {
|
|
2871
|
+
const s = Jn(t, i), { scroll: n } = e;
|
|
2872
|
+
return n && (at(s.x, n.offset.x), at(s.y, n.offset.y)), s;
|
|
2873
|
+
}
|
|
2874
|
+
var Qn = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Nl = /* @__PURE__ */ new WeakMap(), _l = class {
|
|
2875
|
+
constructor(t) {
|
|
2876
|
+
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
|
|
2877
|
+
x: 0,
|
|
2878
|
+
y: 0
|
|
2879
|
+
}, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = M(), this.visualElement = t;
|
|
2880
|
+
}
|
|
2881
|
+
start(t, { snapToCursor: e = !1 } = {}) {
|
|
2882
|
+
const { presenceContext: i } = this.visualElement;
|
|
2883
|
+
if (i && i.isPresent === !1) return;
|
|
2884
|
+
const s = (u) => {
|
|
2885
|
+
const { dragSnapToOrigin: c } = this.getProps();
|
|
2886
|
+
c ? this.pauseAnimation() : this.stopAnimation(), e && this.snapToCursor(Ft(u).point);
|
|
2887
|
+
}, n = (u, c) => {
|
|
2888
|
+
const { drag: f, dragPropagation: h, onDragStart: d } = this.getProps();
|
|
2889
|
+
if (f && !h && (this.openDragLock && this.openDragLock(), this.openDragLock = Lo(f), !this.openDragLock))
|
|
2890
|
+
return;
|
|
2891
|
+
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), N((p) => {
|
|
2892
|
+
let T = this.getAxisMotionValue(p).get() || 0;
|
|
2893
|
+
if (K.test(T)) {
|
|
2894
|
+
const { projection: v } = this.visualElement;
|
|
2895
|
+
if (v && v.layout) {
|
|
2896
|
+
const g = v.layout.layoutBox[p];
|
|
2897
|
+
g && (T = j(g) * (parseFloat(T) / 100));
|
|
2898
|
+
}
|
|
2899
|
+
}
|
|
2900
|
+
this.originPoint[p] = T;
|
|
2901
|
+
}), d && w.postRender(() => d(u, c)), Te(this.visualElement, "transform");
|
|
2902
|
+
const { animationState: m } = this.visualElement;
|
|
2903
|
+
m && m.setActive("whileDrag", !0);
|
|
2904
|
+
}, o = (u, c) => {
|
|
2905
|
+
const { dragPropagation: f, dragDirectionLock: h, onDirectionLock: d, onDrag: m } = this.getProps();
|
|
2906
|
+
if (!f && !this.openDragLock) return;
|
|
2907
|
+
const { offset: p } = c;
|
|
2908
|
+
if (h && this.currentDirection === null) {
|
|
2909
|
+
this.currentDirection = Ul(p), this.currentDirection !== null && d && d(this.currentDirection);
|
|
2910
|
+
return;
|
|
2911
|
+
}
|
|
2912
|
+
this.updateAxis("x", c.point, p), this.updateAxis("y", c.point, p), this.visualElement.render(), m && m(u, c);
|
|
2913
|
+
}, r = (u, c) => this.stop(u, c), a = () => N((u) => {
|
|
2914
|
+
var c;
|
|
2915
|
+
return this.getAnimationState(u) === "paused" && ((c = this.getAxisMotionValue(u).animation) === null || c === void 0 ? void 0 : c.play());
|
|
2916
|
+
}), { dragSnapToOrigin: l } = this.getProps();
|
|
2917
|
+
this.panSession = new Gn(t, {
|
|
2918
|
+
onSessionStart: s,
|
|
2919
|
+
onStart: n,
|
|
2920
|
+
onMove: o,
|
|
2921
|
+
onSessionEnd: r,
|
|
2922
|
+
resumeAnimation: a
|
|
2923
|
+
}, {
|
|
2924
|
+
transformPagePoint: this.visualElement.getTransformPagePoint(),
|
|
2925
|
+
dragSnapToOrigin: l,
|
|
2926
|
+
contextWindow: Qn(this.visualElement)
|
|
2927
|
+
});
|
|
2928
|
+
}
|
|
2929
|
+
stop(t, e) {
|
|
2930
|
+
const i = this.isDragging;
|
|
2931
|
+
if (this.cancel(), !i) return;
|
|
2932
|
+
const { velocity: s } = e;
|
|
2933
|
+
this.startAnimation(s);
|
|
2934
|
+
const { onDragEnd: n } = this.getProps();
|
|
2935
|
+
n && w.postRender(() => n(t, e));
|
|
2936
|
+
}
|
|
2937
|
+
cancel() {
|
|
2938
|
+
this.isDragging = !1;
|
|
2939
|
+
const { projection: t, animationState: e } = this.visualElement;
|
|
2940
|
+
t && (t.isAnimationBlocked = !1), this.panSession && this.panSession.end(), this.panSession = void 0;
|
|
2941
|
+
const { dragPropagation: i } = this.getProps();
|
|
2942
|
+
!i && this.openDragLock && (this.openDragLock(), this.openDragLock = null), e && e.setActive("whileDrag", !1);
|
|
2943
|
+
}
|
|
2944
|
+
updateAxis(t, e, i) {
|
|
2945
|
+
const { drag: s } = this.getProps();
|
|
2946
|
+
if (!i || !jt(t, s, this.currentDirection)) return;
|
|
2947
|
+
const n = this.getAxisMotionValue(t);
|
|
2948
|
+
let o = this.originPoint[t] + i[t];
|
|
2949
|
+
this.constraints && this.constraints[t] && (o = Cl(o, this.constraints[t], this.elastic[t])), n.set(o);
|
|
2950
|
+
}
|
|
2951
|
+
resolveConstraints() {
|
|
2952
|
+
var t;
|
|
2953
|
+
const { dragConstraints: e, dragElastic: i } = this.getProps(), s = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (t = this.visualElement.projection) === null || t === void 0 ? void 0 : t.layout, n = this.constraints;
|
|
2954
|
+
e && nt(e) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : e && s ? this.constraints = El(s.layoutBox, e) : this.constraints = !1, this.elastic = Bl(i), n !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && N((o) => {
|
|
2955
|
+
this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = Fl(s.layoutBox[o], this.constraints[o]));
|
|
2956
|
+
});
|
|
2957
|
+
}
|
|
2958
|
+
resolveRefConstraints() {
|
|
2959
|
+
const { dragConstraints: t, onMeasureDragConstraints: e } = this.getProps();
|
|
2960
|
+
if (!t || !nt(t)) return !1;
|
|
2961
|
+
const i = t.current;
|
|
2962
|
+
Y(i !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");
|
|
2963
|
+
const { projection: s } = this.visualElement;
|
|
2964
|
+
if (!s || !s.layout) return !1;
|
|
2965
|
+
const n = Il(i, s.root, this.visualElement.getTransformPagePoint());
|
|
2966
|
+
let o = Rl(s.layout.layoutBox, n);
|
|
2967
|
+
if (e) {
|
|
2968
|
+
const r = e(kl(o));
|
|
2969
|
+
this.hasMutatedConstraints = !!r, r && (o = Xn(r));
|
|
2970
|
+
}
|
|
2971
|
+
return o;
|
|
2972
|
+
}
|
|
2973
|
+
startAnimation(t) {
|
|
2974
|
+
const { drag: e, dragMomentum: i, dragElastic: s, dragTransition: n, dragSnapToOrigin: o, onDragTransitionEnd: r } = this.getProps(), a = this.constraints || {}, l = N((u) => {
|
|
2975
|
+
if (!jt(u, e, this.currentDirection)) return;
|
|
2976
|
+
let c = a && a[u] || {};
|
|
2977
|
+
o && (c = {
|
|
2978
|
+
min: 0,
|
|
2979
|
+
max: 0
|
|
2980
|
+
});
|
|
2981
|
+
const f = s ? 200 : 1e6, h = s ? 40 : 1e7, d = {
|
|
2982
|
+
type: "inertia",
|
|
2983
|
+
velocity: i ? t[u] : 0,
|
|
2984
|
+
bounceStiffness: f,
|
|
2985
|
+
bounceDamping: h,
|
|
2986
|
+
timeConstant: 750,
|
|
2987
|
+
restDelta: 1,
|
|
2988
|
+
restSpeed: 10,
|
|
2989
|
+
...n,
|
|
2990
|
+
...c
|
|
2991
|
+
};
|
|
2992
|
+
return this.startAxisValueAnimation(u, d);
|
|
2993
|
+
});
|
|
2994
|
+
return Promise.all(l).then(r);
|
|
2995
|
+
}
|
|
2996
|
+
startAxisValueAnimation(t, e) {
|
|
2997
|
+
const i = this.getAxisMotionValue(t);
|
|
2998
|
+
return Te(this.visualElement, t), i.start(hi(t, i, 0, e, this.visualElement, !1));
|
|
2999
|
+
}
|
|
3000
|
+
stopAnimation() {
|
|
3001
|
+
N((t) => this.getAxisMotionValue(t).stop());
|
|
3002
|
+
}
|
|
3003
|
+
pauseAnimation() {
|
|
3004
|
+
N((t) => {
|
|
3005
|
+
var e;
|
|
3006
|
+
return (e = this.getAxisMotionValue(t).animation) === null || e === void 0 ? void 0 : e.pause();
|
|
3007
|
+
});
|
|
3008
|
+
}
|
|
3009
|
+
getAnimationState(t) {
|
|
3010
|
+
var e;
|
|
3011
|
+
return (e = this.getAxisMotionValue(t).animation) === null || e === void 0 ? void 0 : e.state;
|
|
3012
|
+
}
|
|
3013
|
+
getAxisMotionValue(t) {
|
|
3014
|
+
const e = `_drag${t.toUpperCase()}`, i = this.visualElement.getProps(), s = i[e];
|
|
3015
|
+
return s || this.visualElement.getValue(t, (i.initial ? i.initial[t] : void 0) || 0);
|
|
3016
|
+
}
|
|
3017
|
+
snapToCursor(t) {
|
|
3018
|
+
N((e) => {
|
|
3019
|
+
const { drag: i } = this.getProps();
|
|
3020
|
+
if (!jt(e, i, this.currentDirection)) return;
|
|
3021
|
+
const { projection: s } = this.visualElement, n = this.getAxisMotionValue(e);
|
|
3022
|
+
if (s && s.layout) {
|
|
3023
|
+
const { min: o, max: r } = s.layout.layoutBox[e];
|
|
3024
|
+
n.set(t[e] - D(o, r, 0.5));
|
|
3025
|
+
}
|
|
3026
|
+
});
|
|
3027
|
+
}
|
|
3028
|
+
scalePositionWithinConstraints() {
|
|
3029
|
+
if (!this.visualElement.current) return;
|
|
3030
|
+
const { drag: t, dragConstraints: e } = this.getProps(), { projection: i } = this.visualElement;
|
|
3031
|
+
if (!nt(e) || !i || !this.constraints) return;
|
|
3032
|
+
this.stopAnimation();
|
|
3033
|
+
const s = {
|
|
3034
|
+
x: 0,
|
|
3035
|
+
y: 0
|
|
3036
|
+
};
|
|
3037
|
+
N((o) => {
|
|
3038
|
+
const r = this.getAxisMotionValue(o);
|
|
3039
|
+
if (r && this.constraints !== !1) {
|
|
3040
|
+
const a = r.get();
|
|
3041
|
+
s[o] = Ll({
|
|
3042
|
+
min: a,
|
|
3043
|
+
max: a
|
|
3044
|
+
}, this.constraints[o]);
|
|
3045
|
+
}
|
|
3046
|
+
});
|
|
3047
|
+
const { transformTemplate: n } = this.visualElement.getProps();
|
|
3048
|
+
this.visualElement.current.style.transform = n ? n({}, "") : "none", i.root && i.root.updateScroll(), i.updateLayout(), this.resolveConstraints(), N((o) => {
|
|
3049
|
+
if (!jt(o, t, null)) return;
|
|
3050
|
+
const r = this.getAxisMotionValue(o), { min: a, max: l } = this.constraints[o];
|
|
3051
|
+
r.set(D(a, l, s[o]));
|
|
3052
|
+
});
|
|
3053
|
+
}
|
|
3054
|
+
addListeners() {
|
|
3055
|
+
if (!this.visualElement.current) return;
|
|
3056
|
+
Nl.set(this.visualElement, this);
|
|
3057
|
+
const t = this.visualElement.current, e = St(t, "pointerdown", (a) => {
|
|
3058
|
+
const { drag: l, dragListener: u = !0 } = this.getProps();
|
|
3059
|
+
l && u && this.start(a);
|
|
3060
|
+
}), i = () => {
|
|
3061
|
+
const { dragConstraints: a } = this.getProps();
|
|
3062
|
+
nt(a) && a.current && (this.constraints = this.resolveRefConstraints());
|
|
3063
|
+
}, { projection: s } = this.visualElement, n = s.addEventListener("measure", i);
|
|
3064
|
+
s && !s.layout && (s.root && s.root.updateScroll(), s.updateLayout()), w.read(i);
|
|
3065
|
+
const o = Ct(window, "resize", () => this.scalePositionWithinConstraints()), r = s.addEventListener("didUpdate", (({ delta: a, hasLayoutChanged: l }) => {
|
|
3066
|
+
this.isDragging && l && (N((u) => {
|
|
3067
|
+
const c = this.getAxisMotionValue(u);
|
|
3068
|
+
c && (this.originPoint[u] += a[u].translate, c.set(c.get() + a[u].translate));
|
|
3069
|
+
}), this.visualElement.render());
|
|
3070
|
+
}));
|
|
3071
|
+
return () => {
|
|
3072
|
+
o(), e(), n(), r && r();
|
|
3073
|
+
};
|
|
3074
|
+
}
|
|
3075
|
+
getProps() {
|
|
3076
|
+
const t = this.visualElement.getProps(), { drag: e = !1, dragDirectionLock: i = !1, dragPropagation: s = !1, dragConstraints: n = !1, dragElastic: o = De, dragMomentum: r = !0 } = t;
|
|
3077
|
+
return {
|
|
3078
|
+
...t,
|
|
3079
|
+
drag: e,
|
|
3080
|
+
dragDirectionLock: i,
|
|
3081
|
+
dragPropagation: s,
|
|
3082
|
+
dragConstraints: n,
|
|
3083
|
+
dragElastic: o,
|
|
3084
|
+
dragMomentum: r
|
|
3085
|
+
};
|
|
3086
|
+
}
|
|
3087
|
+
};
|
|
3088
|
+
function jt(t, e, i) {
|
|
3089
|
+
return (e === !0 || e === t) && (i === null || i === t);
|
|
3090
|
+
}
|
|
3091
|
+
function Ul(t, e = 10) {
|
|
3092
|
+
let i = null;
|
|
3093
|
+
return Math.abs(t.y) > e ? i = "y" : Math.abs(t.x) > e && (i = "x"), i;
|
|
3094
|
+
}
|
|
3095
|
+
var Kl = class extends Z {
|
|
3096
|
+
constructor(t) {
|
|
3097
|
+
super(t), this.removeGroupControls = O, this.removeListeners = O, this.controls = new _l(t);
|
|
3098
|
+
}
|
|
3099
|
+
mount() {
|
|
3100
|
+
const { dragControls: t } = this.node.getProps();
|
|
3101
|
+
t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || O;
|
|
3102
|
+
}
|
|
3103
|
+
unmount() {
|
|
3104
|
+
this.removeGroupControls(), this.removeListeners();
|
|
3105
|
+
}
|
|
3106
|
+
}, ns = (t) => (e, i) => {
|
|
3107
|
+
t && w.postRender(() => t(e, i));
|
|
3108
|
+
}, $l = class extends Z {
|
|
3109
|
+
constructor() {
|
|
3110
|
+
super(...arguments), this.removePointerDownListener = O;
|
|
3111
|
+
}
|
|
3112
|
+
onPointerDown(t) {
|
|
3113
|
+
this.session = new Gn(t, this.createPanHandlers(), {
|
|
3114
|
+
transformPagePoint: this.node.getTransformPagePoint(),
|
|
3115
|
+
contextWindow: Qn(this.node)
|
|
3116
|
+
});
|
|
3117
|
+
}
|
|
3118
|
+
createPanHandlers() {
|
|
3119
|
+
const { onPanSessionStart: t, onPanStart: e, onPan: i, onPanEnd: s } = this.node.getProps();
|
|
3120
|
+
return {
|
|
3121
|
+
onSessionStart: ns(t),
|
|
3122
|
+
onStart: ns(e),
|
|
3123
|
+
onMove: i,
|
|
3124
|
+
onEnd: (n, o) => {
|
|
3125
|
+
delete this.session, s && w.postRender(() => s(n, o));
|
|
3126
|
+
}
|
|
3127
|
+
};
|
|
3128
|
+
}
|
|
3129
|
+
mount() {
|
|
3130
|
+
this.removePointerDownListener = St(this.node.current, "pointerdown", (t) => this.onPointerDown(t));
|
|
3131
|
+
}
|
|
3132
|
+
update() {
|
|
3133
|
+
this.session && this.session.updateHandlers(this.createPanHandlers());
|
|
3134
|
+
}
|
|
3135
|
+
unmount() {
|
|
3136
|
+
this.removePointerDownListener(), this.session && this.session.end();
|
|
3137
|
+
}
|
|
3138
|
+
}, Ut = {
|
|
3139
|
+
hasAnimatedSinceResize: !0,
|
|
3140
|
+
hasEverUpdated: !1
|
|
3141
|
+
};
|
|
3142
|
+
function rs(t, e) {
|
|
3143
|
+
return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
|
|
3144
|
+
}
|
|
3145
|
+
var gt = { correct: (t, e) => {
|
|
3146
|
+
if (!e.target) return t;
|
|
3147
|
+
if (typeof t == "string") if (y.test(t)) t = parseFloat(t);
|
|
3148
|
+
else return t;
|
|
3149
|
+
return `${rs(t, e.target.x)}% ${rs(t, e.target.y)}%`;
|
|
3150
|
+
} }, Wl = { correct: (t, { treeScale: e, projectionDelta: i }) => {
|
|
3151
|
+
const s = t, n = q.parse(t);
|
|
3152
|
+
if (n.length > 5) return s;
|
|
3153
|
+
const o = q.createTransformer(t), r = typeof n[0] != "number" ? 1 : 0, a = i.x.scale * e.x, l = i.y.scale * e.y;
|
|
3154
|
+
n[0 + r] /= a, n[1 + r] /= l;
|
|
3155
|
+
const u = D(a, l, 0.5);
|
|
3156
|
+
return typeof n[2 + r] == "number" && (n[2 + r] /= u), typeof n[3 + r] == "number" && (n[3 + r] /= u), o(n);
|
|
3157
|
+
} }, Gl = class extends vr {
|
|
3158
|
+
componentDidMount() {
|
|
3159
|
+
const { visualElement: t, layoutGroup: e, switchLayoutGroup: i, layoutId: s } = this.props, { projection: n } = t;
|
|
3160
|
+
uo(zl), n && (e.group && e.group.add(n), i && i.register && s && i.register(n), n.root.didUpdate(), n.addEventListener("animationComplete", () => {
|
|
3161
|
+
this.safeToRemove();
|
|
3162
|
+
}), n.setOptions({
|
|
3163
|
+
...n.options,
|
|
3164
|
+
onExitComplete: () => this.safeToRemove()
|
|
3165
|
+
})), Ut.hasEverUpdated = !0;
|
|
3166
|
+
}
|
|
3167
|
+
getSnapshotBeforeUpdate(t) {
|
|
3168
|
+
const { layoutDependency: e, visualElement: i, drag: s, isPresent: n } = this.props, o = i.projection;
|
|
3169
|
+
return o && (o.isPresent = n, s || t.layoutDependency !== e || e === void 0 ? o.willUpdate() : this.safeToRemove(), t.isPresent !== n && (n ? o.promote() : o.relegate() || w.postRender(() => {
|
|
3170
|
+
const r = o.getStack();
|
|
3171
|
+
(!r || !r.members.length) && this.safeToRemove();
|
|
3172
|
+
}))), null;
|
|
3173
|
+
}
|
|
3174
|
+
componentDidUpdate() {
|
|
3175
|
+
const { projection: t } = this.props.visualElement;
|
|
3176
|
+
t && (t.root.didUpdate(), _e.postRender(() => {
|
|
3177
|
+
!t.currentAnimation && t.isLead() && this.safeToRemove();
|
|
3178
|
+
}));
|
|
3179
|
+
}
|
|
3180
|
+
componentWillUnmount() {
|
|
3181
|
+
const { visualElement: t, layoutGroup: e, switchLayoutGroup: i } = this.props, { projection: s } = t;
|
|
3182
|
+
s && (s.scheduleCheckAfterUnmount(), e && e.group && e.group.remove(s), i && i.deregister && i.deregister(s));
|
|
3183
|
+
}
|
|
3184
|
+
safeToRemove() {
|
|
3185
|
+
const { safeToRemove: t } = this.props;
|
|
3186
|
+
t && t();
|
|
3187
|
+
}
|
|
3188
|
+
render() {
|
|
3189
|
+
return null;
|
|
3190
|
+
}
|
|
3191
|
+
};
|
|
3192
|
+
function tr(t) {
|
|
3193
|
+
const [e, i] = br(), s = k(Bs);
|
|
3194
|
+
return Rs(Gl, {
|
|
3195
|
+
...t,
|
|
3196
|
+
layoutGroup: s,
|
|
3197
|
+
switchLayoutGroup: k(Ks),
|
|
3198
|
+
isPresent: e,
|
|
3199
|
+
safeToRemove: i
|
|
3200
|
+
});
|
|
3201
|
+
}
|
|
3202
|
+
var zl = {
|
|
3203
|
+
borderRadius: {
|
|
3204
|
+
...gt,
|
|
3205
|
+
applyTo: [
|
|
3206
|
+
"borderTopLeftRadius",
|
|
3207
|
+
"borderTopRightRadius",
|
|
3208
|
+
"borderBottomLeftRadius",
|
|
3209
|
+
"borderBottomRightRadius"
|
|
3210
|
+
]
|
|
3211
|
+
},
|
|
3212
|
+
borderTopLeftRadius: gt,
|
|
3213
|
+
borderTopRightRadius: gt,
|
|
3214
|
+
borderBottomLeftRadius: gt,
|
|
3215
|
+
borderBottomRightRadius: gt,
|
|
3216
|
+
boxShadow: Wl
|
|
3217
|
+
};
|
|
3218
|
+
function Hl(t, e, i) {
|
|
3219
|
+
const s = F(t) ? t : Dt(t);
|
|
3220
|
+
return s.start(hi("", s, e, i)), s.animation;
|
|
3221
|
+
}
|
|
3222
|
+
function Yl(t) {
|
|
3223
|
+
return t instanceof SVGElement && t.tagName !== "svg";
|
|
3224
|
+
}
|
|
3225
|
+
var Xl = (t, e) => t.depth - e.depth, ql = class {
|
|
3226
|
+
constructor() {
|
|
3227
|
+
this.children = [], this.isDirty = !1;
|
|
3228
|
+
}
|
|
3229
|
+
add(t) {
|
|
3230
|
+
ti(this.children, t), this.isDirty = !0;
|
|
3231
|
+
}
|
|
3232
|
+
remove(t) {
|
|
3233
|
+
ei(this.children, t), this.isDirty = !0;
|
|
3234
|
+
}
|
|
3235
|
+
forEach(t) {
|
|
3236
|
+
this.isDirty && this.children.sort(Xl), this.isDirty = !1, this.children.forEach(t);
|
|
3237
|
+
}
|
|
3238
|
+
};
|
|
3239
|
+
function Zl(t, e) {
|
|
3240
|
+
const i = $.now(), s = ({ timestamp: n }) => {
|
|
3241
|
+
const o = n - i;
|
|
3242
|
+
o >= e && (X(s), t(o - e));
|
|
3243
|
+
};
|
|
3244
|
+
return w.read(s, !0), () => X(s);
|
|
3245
|
+
}
|
|
3246
|
+
var er = [
|
|
3247
|
+
"TopLeft",
|
|
3248
|
+
"TopRight",
|
|
3249
|
+
"BottomLeft",
|
|
3250
|
+
"BottomRight"
|
|
3251
|
+
], Jl = er.length, os = (t) => typeof t == "string" ? parseFloat(t) : t, as = (t) => typeof t == "number" || y.test(t);
|
|
3252
|
+
function Ql(t, e, i, s, n, o) {
|
|
3253
|
+
n ? (t.opacity = D(0, i.opacity !== void 0 ? i.opacity : 1, tu(s)), t.opacityExit = D(e.opacity !== void 0 ? e.opacity : 1, 0, eu(s))) : o && (t.opacity = D(e.opacity !== void 0 ? e.opacity : 1, i.opacity !== void 0 ? i.opacity : 1, s));
|
|
3254
|
+
for (let r = 0; r < Jl; r++) {
|
|
3255
|
+
const a = `border${er[r]}Radius`;
|
|
3256
|
+
let l = ls(e, a), u = ls(i, a);
|
|
3257
|
+
l === void 0 && u === void 0 || (l || (l = 0), u || (u = 0), l === 0 || u === 0 || as(l) === as(u) ? (t[a] = Math.max(D(os(l), os(u), s), 0), (K.test(u) || K.test(l)) && (t[a] += "%")) : t[a] = u);
|
|
3258
|
+
}
|
|
3259
|
+
(e.rotate || i.rotate) && (t.rotate = D(e.rotate || 0, i.rotate || 0, s));
|
|
3260
|
+
}
|
|
3261
|
+
function ls(t, e) {
|
|
3262
|
+
return t[e] !== void 0 ? t[e] : t.borderRadius;
|
|
3263
|
+
}
|
|
3264
|
+
var tu = /* @__PURE__ */ ir(0, 0.5, xn), eu = /* @__PURE__ */ ir(0.5, 0.95, O);
|
|
3265
|
+
function ir(t, e, i) {
|
|
3266
|
+
return (s) => s < t ? 0 : s > e ? 1 : i(ut(t, e, s));
|
|
3267
|
+
}
|
|
3268
|
+
function us(t, e) {
|
|
3269
|
+
t.min = e.min, t.max = e.max;
|
|
3270
|
+
}
|
|
3271
|
+
function I(t, e) {
|
|
3272
|
+
us(t.x, e.x), us(t.y, e.y);
|
|
3273
|
+
}
|
|
3274
|
+
function cs(t, e) {
|
|
3275
|
+
t.translate = e.translate, t.scale = e.scale, t.originPoint = e.originPoint, t.origin = e.origin;
|
|
3276
|
+
}
|
|
3277
|
+
function hs(t, e, i, s, n) {
|
|
3278
|
+
return t -= e, t = Yt(t, 1 / i, s), n !== void 0 && (t = Yt(t, 1 / n, s)), t;
|
|
3279
|
+
}
|
|
3280
|
+
function iu(t, e = 0, i = 1, s = 0.5, n, o = t, r = t) {
|
|
3281
|
+
if (K.test(e) && (e = parseFloat(e), e = D(r.min, r.max, e / 100) - r.min), typeof e != "number") return;
|
|
3282
|
+
let a = D(o.min, o.max, s);
|
|
3283
|
+
t === o && (a -= e), t.min = hs(t.min, e, i, a, n), t.max = hs(t.max, e, i, a, n);
|
|
3284
|
+
}
|
|
3285
|
+
function fs(t, e, [i, s, n], o, r) {
|
|
3286
|
+
iu(t, e[i], e[s], e[n], e.scale, o, r);
|
|
3287
|
+
}
|
|
3288
|
+
var su = [
|
|
3289
|
+
"x",
|
|
3290
|
+
"scaleX",
|
|
3291
|
+
"originX"
|
|
3292
|
+
], nu = [
|
|
3293
|
+
"y",
|
|
3294
|
+
"scaleY",
|
|
3295
|
+
"originY"
|
|
3296
|
+
];
|
|
3297
|
+
function ds(t, e, i, s) {
|
|
3298
|
+
fs(t.x, e, su, i ? i.x : void 0, s ? s.x : void 0), fs(t.y, e, nu, i ? i.y : void 0, s ? s.y : void 0);
|
|
3299
|
+
}
|
|
3300
|
+
function ms(t) {
|
|
3301
|
+
return t.translate === 0 && t.scale === 1;
|
|
3302
|
+
}
|
|
3303
|
+
function sr(t) {
|
|
3304
|
+
return ms(t.x) && ms(t.y);
|
|
3305
|
+
}
|
|
3306
|
+
function ps(t, e) {
|
|
3307
|
+
return t.min === e.min && t.max === e.max;
|
|
3308
|
+
}
|
|
3309
|
+
function ru(t, e) {
|
|
3310
|
+
return ps(t.x, e.x) && ps(t.y, e.y);
|
|
3311
|
+
}
|
|
3312
|
+
function vs(t, e) {
|
|
3313
|
+
return Math.round(t.min) === Math.round(e.min) && Math.round(t.max) === Math.round(e.max);
|
|
3314
|
+
}
|
|
3315
|
+
function nr(t, e) {
|
|
3316
|
+
return vs(t.x, e.x) && vs(t.y, e.y);
|
|
3317
|
+
}
|
|
3318
|
+
function gs(t) {
|
|
3319
|
+
return j(t.x) / j(t.y);
|
|
3320
|
+
}
|
|
3321
|
+
function ys(t, e) {
|
|
3322
|
+
return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
|
|
3323
|
+
}
|
|
3324
|
+
var ou = class {
|
|
3325
|
+
constructor() {
|
|
3326
|
+
this.members = [];
|
|
3327
|
+
}
|
|
3328
|
+
add(t) {
|
|
3329
|
+
ti(this.members, t), t.scheduleRender();
|
|
3330
|
+
}
|
|
3331
|
+
remove(t) {
|
|
3332
|
+
if (ei(this.members, t), t === this.prevLead && (this.prevLead = void 0), t === this.lead) {
|
|
3333
|
+
const e = this.members[this.members.length - 1];
|
|
3334
|
+
e && this.promote(e);
|
|
3335
|
+
}
|
|
3336
|
+
}
|
|
3337
|
+
relegate(t) {
|
|
3338
|
+
const e = this.members.findIndex((s) => t === s);
|
|
3339
|
+
if (e === 0) return !1;
|
|
3340
|
+
let i;
|
|
3341
|
+
for (let s = e; s >= 0; s--) {
|
|
3342
|
+
const n = this.members[s];
|
|
3343
|
+
if (n.isPresent !== !1) {
|
|
3344
|
+
i = n;
|
|
3345
|
+
break;
|
|
3346
|
+
}
|
|
3347
|
+
}
|
|
3348
|
+
return i ? (this.promote(i), !0) : !1;
|
|
3349
|
+
}
|
|
3350
|
+
promote(t, e) {
|
|
3351
|
+
const i = this.lead;
|
|
3352
|
+
if (t !== i && (this.prevLead = i, this.lead = t, t.show(), i)) {
|
|
3353
|
+
i.instance && i.scheduleRender(), t.scheduleRender(), t.resumeFrom = i, e && (t.resumeFrom.preserveOpacity = !0), i.snapshot && (t.snapshot = i.snapshot, t.snapshot.latestValues = i.animationValues || i.latestValues), t.root && t.root.isUpdating && (t.isLayoutDirty = !0);
|
|
3354
|
+
const { crossfade: s } = t.options;
|
|
3355
|
+
s === !1 && i.hide();
|
|
3356
|
+
}
|
|
3357
|
+
}
|
|
3358
|
+
exitAnimationComplete() {
|
|
3359
|
+
this.members.forEach((t) => {
|
|
3360
|
+
const { options: e, resumingFrom: i } = t;
|
|
3361
|
+
e.onExitComplete && e.onExitComplete(), i && i.options.onExitComplete && i.options.onExitComplete();
|
|
3362
|
+
});
|
|
3363
|
+
}
|
|
3364
|
+
scheduleRender() {
|
|
3365
|
+
this.members.forEach((t) => {
|
|
3366
|
+
t.instance && t.scheduleRender(!1);
|
|
3367
|
+
});
|
|
3368
|
+
}
|
|
3369
|
+
removeLeadSnapshot() {
|
|
3370
|
+
this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
|
|
3371
|
+
}
|
|
3372
|
+
};
|
|
3373
|
+
function au(t, e, i) {
|
|
3374
|
+
let s = "";
|
|
3375
|
+
const n = t.x.translate / e.x, o = t.y.translate / e.y, r = i?.z || 0;
|
|
3376
|
+
if ((n || o || r) && (s = `translate3d(${n}px, ${o}px, ${r}px) `), (e.x !== 1 || e.y !== 1) && (s += `scale(${1 / e.x}, ${1 / e.y}) `), i) {
|
|
3377
|
+
const { transformPerspective: u, rotate: c, rotateX: f, rotateY: h, skewX: d, skewY: m } = i;
|
|
3378
|
+
u && (s = `perspective(${u}px) ${s}`), c && (s += `rotate(${c}deg) `), f && (s += `rotateX(${f}deg) `), h && (s += `rotateY(${h}deg) `), d && (s += `skewX(${d}deg) `), m && (s += `skewY(${m}deg) `);
|
|
3379
|
+
}
|
|
3380
|
+
const a = t.x.scale * e.x, l = t.y.scale * e.y;
|
|
3381
|
+
return (a !== 1 || l !== 1) && (s += `scale(${a}, ${l})`), s || "none";
|
|
3382
|
+
}
|
|
3383
|
+
var tt = {
|
|
3384
|
+
type: "projectionFrame",
|
|
3385
|
+
totalNodes: 0,
|
|
3386
|
+
resolvedTargetDeltas: 0,
|
|
3387
|
+
recalculatedProjection: 0
|
|
3388
|
+
}, xt = typeof window < "u" && window.MotionDebug !== void 0, de = [
|
|
3389
|
+
"",
|
|
3390
|
+
"X",
|
|
3391
|
+
"Y",
|
|
3392
|
+
"Z"
|
|
3393
|
+
], lu = { visibility: "hidden" }, Ts = 1e3, uu = 0;
|
|
3394
|
+
function me(t, e, i, s) {
|
|
3395
|
+
const { latestValues: n } = e;
|
|
3396
|
+
n[t] && (i[t] = n[t], e.setStaticValue(t, 0), s && (s[t] = 0));
|
|
3397
|
+
}
|
|
3398
|
+
function rr(t) {
|
|
3399
|
+
if (t.hasCheckedOptimisedAppear = !0, t.root === t) return;
|
|
3400
|
+
const { visualElement: e } = t.options;
|
|
3401
|
+
if (!e) return;
|
|
3402
|
+
const i = fn(e);
|
|
3403
|
+
if (window.MotionHasOptimisedAnimation(i, "transform")) {
|
|
3404
|
+
const { layout: n, layoutId: o } = t.options;
|
|
3405
|
+
window.MotionCancelOptimisedAnimation(i, "transform", w, !(n || o));
|
|
3406
|
+
}
|
|
3407
|
+
const { parent: s } = t;
|
|
3408
|
+
s && !s.hasCheckedOptimisedAppear && rr(s);
|
|
3409
|
+
}
|
|
3410
|
+
function or({ attachResizeListener: t, defaultParent: e, measureScroll: i, checkIsScrollRoot: s, resetTransform: n }) {
|
|
3411
|
+
return class {
|
|
3412
|
+
constructor(r = {}, a = e?.()) {
|
|
3413
|
+
this.id = uu++, this.animationId = 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 = {
|
|
3414
|
+
x: 1,
|
|
3415
|
+
y: 1
|
|
3416
|
+
}, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
|
|
3417
|
+
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
|
|
3418
|
+
}, this.updateProjection = () => {
|
|
3419
|
+
this.projectionUpdateScheduled = !1, xt && (tt.totalNodes = tt.resolvedTargetDeltas = tt.recalculatedProjection = 0), this.nodes.forEach(fu), this.nodes.forEach(gu), this.nodes.forEach(yu), this.nodes.forEach(du), xt && window.MotionDebug.record(tt);
|
|
3420
|
+
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = r, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
|
|
3421
|
+
for (let l = 0; l < this.path.length; l++) this.path[l].shouldResetTransform = !0;
|
|
3422
|
+
this.root === this && (this.nodes = new ql());
|
|
3423
|
+
}
|
|
3424
|
+
addEventListener(r, a) {
|
|
3425
|
+
return this.eventHandlers.has(r) || this.eventHandlers.set(r, new ii()), this.eventHandlers.get(r).add(a);
|
|
3426
|
+
}
|
|
3427
|
+
notifyListeners(r, ...a) {
|
|
3428
|
+
const l = this.eventHandlers.get(r);
|
|
3429
|
+
l && l.notify(...a);
|
|
3430
|
+
}
|
|
3431
|
+
hasListeners(r) {
|
|
3432
|
+
return this.eventHandlers.has(r);
|
|
3433
|
+
}
|
|
3434
|
+
mount(r, a = this.root.hasTreeAnimated) {
|
|
3435
|
+
if (this.instance) return;
|
|
3436
|
+
this.isSVG = Yl(r), this.instance = r;
|
|
3437
|
+
const { layoutId: l, layout: u, visualElement: c } = this.options;
|
|
3438
|
+
if (c && !c.current && c.mount(r), this.root.nodes.add(this), this.parent && this.parent.children.add(this), a && (u || l) && (this.isLayoutDirty = !0), t) {
|
|
3439
|
+
let f;
|
|
3440
|
+
const h = () => this.root.updateBlockedByResize = !1;
|
|
3441
|
+
t(r, () => {
|
|
3442
|
+
this.root.updateBlockedByResize = !0, f && f(), f = Zl(h, 250), Ut.hasAnimatedSinceResize && (Ut.hasAnimatedSinceResize = !1, this.nodes.forEach(Ps));
|
|
3443
|
+
});
|
|
3444
|
+
}
|
|
3445
|
+
l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && c && (l || u) && this.addEventListener("didUpdate", ({ delta: f, hasLayoutChanged: h, hasRelativeTargetChanged: d, layout: m }) => {
|
|
3446
|
+
if (this.isTreeAnimationBlocked()) {
|
|
3447
|
+
this.target = void 0, this.relativeTarget = void 0;
|
|
3448
|
+
return;
|
|
3449
|
+
}
|
|
3450
|
+
const p = this.options.transition || c.getDefaultTransition() || bu, { onLayoutAnimationStart: T, onLayoutAnimationComplete: v } = c.getProps(), g = !this.targetLayout || !nr(this.targetLayout, m) || d, x = !h && d;
|
|
3451
|
+
if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || x || h && (g || !this.currentAnimation)) {
|
|
3452
|
+
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(f, x);
|
|
3453
|
+
const b = {
|
|
3454
|
+
...qe(p, "layout"),
|
|
3455
|
+
onPlay: T,
|
|
3456
|
+
onComplete: v
|
|
3457
|
+
};
|
|
3458
|
+
(c.shouldReduceMotion || this.options.layoutRoot) && (b.delay = 0, b.type = !1), this.startAnimation(b);
|
|
3459
|
+
} else
|
|
3460
|
+
h || Ps(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
|
|
3461
|
+
this.targetLayout = m;
|
|
3462
|
+
});
|
|
3463
|
+
}
|
|
3464
|
+
unmount() {
|
|
3465
|
+
this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
|
|
3466
|
+
const r = this.getStack();
|
|
3467
|
+
r && r.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, X(this.updateProjection);
|
|
3468
|
+
}
|
|
3469
|
+
blockUpdate() {
|
|
3470
|
+
this.updateManuallyBlocked = !0;
|
|
3471
|
+
}
|
|
3472
|
+
unblockUpdate() {
|
|
3473
|
+
this.updateManuallyBlocked = !1;
|
|
3474
|
+
}
|
|
3475
|
+
isUpdateBlocked() {
|
|
3476
|
+
return this.updateManuallyBlocked || this.updateBlockedByResize;
|
|
3477
|
+
}
|
|
3478
|
+
isTreeAnimationBlocked() {
|
|
3479
|
+
return this.isAnimationBlocked || this.parent && this.parent.isTreeAnimationBlocked() || !1;
|
|
3480
|
+
}
|
|
3481
|
+
startUpdate() {
|
|
3482
|
+
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Tu), this.animationId++);
|
|
3483
|
+
}
|
|
3484
|
+
getTransformTemplate() {
|
|
3485
|
+
const { visualElement: r } = this.options;
|
|
3486
|
+
return r && r.getProps().transformTemplate;
|
|
3487
|
+
}
|
|
3488
|
+
willUpdate(r = !0) {
|
|
3489
|
+
if (this.root.hasTreeAnimated = !0, this.root.isUpdateBlocked()) {
|
|
3490
|
+
this.options.onExitComplete && this.options.onExitComplete();
|
|
3491
|
+
return;
|
|
3492
|
+
}
|
|
3493
|
+
if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && rr(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
|
|
3494
|
+
this.isLayoutDirty = !0;
|
|
3495
|
+
for (let c = 0; c < this.path.length; c++) {
|
|
3496
|
+
const f = this.path[c];
|
|
3497
|
+
f.shouldResetTransform = !0, f.updateScroll("snapshot"), f.options.layoutRoot && f.willUpdate(!1);
|
|
3498
|
+
}
|
|
3499
|
+
const { layoutId: a, layout: l } = this.options;
|
|
3500
|
+
if (a === void 0 && !l) return;
|
|
3501
|
+
const u = this.getTransformTemplate();
|
|
3502
|
+
this.prevTransformTemplateValue = u ? u(this.latestValues, "") : void 0, this.updateSnapshot(), r && this.notifyListeners("willUpdate");
|
|
3503
|
+
}
|
|
3504
|
+
update() {
|
|
3505
|
+
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
|
|
3506
|
+
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(xs);
|
|
3507
|
+
return;
|
|
3508
|
+
}
|
|
3509
|
+
this.isUpdating || this.nodes.forEach(pu), this.isUpdating = !1, this.nodes.forEach(vu), this.nodes.forEach(cu), this.nodes.forEach(hu), this.clearAllSnapshots();
|
|
3510
|
+
const r = $.now();
|
|
3511
|
+
R.delta = z(0, 1e3 / 60, r - R.timestamp), R.timestamp = r, R.isProcessing = !0, ne.update.process(R), ne.preRender.process(R), ne.render.process(R), R.isProcessing = !1;
|
|
3512
|
+
}
|
|
3513
|
+
didUpdate() {
|
|
3514
|
+
this.updateScheduled || (this.updateScheduled = !0, _e.read(this.scheduleUpdate));
|
|
3515
|
+
}
|
|
3516
|
+
clearAllSnapshots() {
|
|
3517
|
+
this.nodes.forEach(mu), this.sharedNodes.forEach(xu);
|
|
3518
|
+
}
|
|
3519
|
+
scheduleUpdateProjection() {
|
|
3520
|
+
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, w.preRender(this.updateProjection, !1, !0));
|
|
3521
|
+
}
|
|
3522
|
+
scheduleCheckAfterUnmount() {
|
|
3523
|
+
w.postRender(() => {
|
|
3524
|
+
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
|
|
3525
|
+
});
|
|
3526
|
+
}
|
|
3527
|
+
updateSnapshot() {
|
|
3528
|
+
this.snapshot || !this.instance || (this.snapshot = this.measure());
|
|
3529
|
+
}
|
|
3530
|
+
updateLayout() {
|
|
3531
|
+
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return;
|
|
3532
|
+
if (this.resumeFrom && !this.resumeFrom.instance) for (let l = 0; l < this.path.length; l++) this.path[l].updateScroll();
|
|
3533
|
+
const r = this.layout;
|
|
3534
|
+
this.layout = this.measure(!1), this.layoutCorrected = M(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
|
|
3535
|
+
const { visualElement: a } = this.options;
|
|
3536
|
+
a && a.notify("LayoutMeasure", this.layout.layoutBox, r ? r.layoutBox : void 0);
|
|
3537
|
+
}
|
|
3538
|
+
updateScroll(r = "measure") {
|
|
3539
|
+
let a = !!(this.options.layoutScroll && this.instance);
|
|
3540
|
+
if (this.scroll && this.scroll.animationId === this.root.animationId && this.scroll.phase === r && (a = !1), a) {
|
|
3541
|
+
const l = s(this.instance);
|
|
3542
|
+
this.scroll = {
|
|
3543
|
+
animationId: this.root.animationId,
|
|
3544
|
+
phase: r,
|
|
3545
|
+
isRoot: l,
|
|
3546
|
+
offset: i(this.instance),
|
|
3547
|
+
wasRoot: this.scroll ? this.scroll.isRoot : l
|
|
3548
|
+
};
|
|
3549
|
+
}
|
|
3550
|
+
}
|
|
3551
|
+
resetTransform() {
|
|
3552
|
+
if (!n) return;
|
|
3553
|
+
const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !sr(this.projectionDelta), l = this.getTransformTemplate(), u = l ? l(this.latestValues, "") : void 0, c = u !== this.prevTransformTemplateValue;
|
|
3554
|
+
r && (a || Q(this.latestValues) || c) && (n(this.instance, u), this.shouldResetTransform = !1, this.scheduleRender());
|
|
3555
|
+
}
|
|
3556
|
+
measure(r = !0) {
|
|
3557
|
+
const a = this.measurePageBox();
|
|
3558
|
+
let l = this.removeElementScroll(a);
|
|
3559
|
+
return r && (l = this.removeTransform(l)), Au(l), {
|
|
3560
|
+
animationId: this.root.animationId,
|
|
3561
|
+
measuredBox: a,
|
|
3562
|
+
layoutBox: l,
|
|
3563
|
+
latestValues: {},
|
|
3564
|
+
source: this.id
|
|
3565
|
+
};
|
|
3566
|
+
}
|
|
3567
|
+
measurePageBox() {
|
|
3568
|
+
var r;
|
|
3569
|
+
const { visualElement: a } = this.options;
|
|
3570
|
+
if (!a) return M();
|
|
3571
|
+
const l = a.measureViewportBox();
|
|
3572
|
+
if (!(!((r = this.scroll) === null || r === void 0) && r.wasRoot || this.path.some(wu))) {
|
|
3573
|
+
const { scroll: u } = this.root;
|
|
3574
|
+
u && (at(l.x, u.offset.x), at(l.y, u.offset.y));
|
|
3575
|
+
}
|
|
3576
|
+
return l;
|
|
3577
|
+
}
|
|
3578
|
+
removeElementScroll(r) {
|
|
3579
|
+
var a;
|
|
3580
|
+
const l = M();
|
|
3581
|
+
if (I(l, r), !((a = this.scroll) === null || a === void 0) && a.wasRoot) return l;
|
|
3582
|
+
for (let u = 0; u < this.path.length; u++) {
|
|
3583
|
+
const c = this.path[u], { scroll: f, options: h } = c;
|
|
3584
|
+
c !== this.root && f && h.layoutScroll && (f.wasRoot && I(l, r), at(l.x, f.offset.x), at(l.y, f.offset.y));
|
|
3585
|
+
}
|
|
3586
|
+
return l;
|
|
3587
|
+
}
|
|
3588
|
+
applyTransform(r, a = !1) {
|
|
3589
|
+
const l = M();
|
|
3590
|
+
I(l, r);
|
|
3591
|
+
for (let u = 0; u < this.path.length; u++) {
|
|
3592
|
+
const c = this.path[u];
|
|
3593
|
+
!a && c.options.layoutScroll && c.scroll && c !== c.root && lt(l, {
|
|
3594
|
+
x: -c.scroll.offset.x,
|
|
3595
|
+
y: -c.scroll.offset.y
|
|
3596
|
+
}), Q(c.latestValues) && lt(l, c.latestValues);
|
|
3597
|
+
}
|
|
3598
|
+
return Q(this.latestValues) && lt(l, this.latestValues), l;
|
|
3599
|
+
}
|
|
3600
|
+
removeTransform(r) {
|
|
3601
|
+
const a = M();
|
|
3602
|
+
I(a, r);
|
|
3603
|
+
for (let l = 0; l < this.path.length; l++) {
|
|
3604
|
+
const u = this.path[l];
|
|
3605
|
+
if (!u.instance || !Q(u.latestValues)) continue;
|
|
3606
|
+
Me(u.latestValues) && u.updateSnapshot();
|
|
3607
|
+
const c = M();
|
|
3608
|
+
I(c, u.measurePageBox()), ds(a, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, c);
|
|
3609
|
+
}
|
|
3610
|
+
return Q(this.latestValues) && ds(a, this.latestValues), a;
|
|
3611
|
+
}
|
|
3612
|
+
setTargetDelta(r) {
|
|
3613
|
+
this.targetDelta = r, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
|
|
3614
|
+
}
|
|
3615
|
+
setOptions(r) {
|
|
3616
|
+
this.options = {
|
|
3617
|
+
...this.options,
|
|
3618
|
+
...r,
|
|
3619
|
+
crossfade: r.crossfade !== void 0 ? r.crossfade : !0
|
|
3620
|
+
};
|
|
3621
|
+
}
|
|
3622
|
+
clearMeasurements() {
|
|
3623
|
+
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
|
|
3624
|
+
}
|
|
3625
|
+
forceRelativeParentToResolveTarget() {
|
|
3626
|
+
this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== R.timestamp && this.relativeParent.resolveTargetDelta(!0);
|
|
3627
|
+
}
|
|
3628
|
+
resolveTargetDelta(r = !1) {
|
|
3629
|
+
var a;
|
|
3630
|
+
const l = this.getLead();
|
|
3631
|
+
this.isProjectionDirty || (this.isProjectionDirty = l.isProjectionDirty), this.isTransformDirty || (this.isTransformDirty = l.isTransformDirty), this.isSharedProjectionDirty || (this.isSharedProjectionDirty = l.isSharedProjectionDirty);
|
|
3632
|
+
const u = !!this.resumingFrom || this !== l;
|
|
3633
|
+
if (!(r || u && this.isSharedProjectionDirty || this.isProjectionDirty || !((a = this.parent) === null || a === void 0) && a.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize)) return;
|
|
3634
|
+
const { layout: c, layoutId: f } = this.options;
|
|
3635
|
+
if (!(!this.layout || !(c || f))) {
|
|
3636
|
+
if (this.resolvedRelativeTargetAt = R.timestamp, !this.targetDelta && !this.relativeTarget) {
|
|
3637
|
+
const h = this.getClosestProjectingParent();
|
|
3638
|
+
h && h.layout && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = M(), this.relativeTargetOrigin = M(), At(this.relativeTargetOrigin, this.layout.layoutBox, h.layout.layoutBox), I(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
3639
|
+
}
|
|
3640
|
+
if (!(!this.relativeTarget && !this.targetDelta)) {
|
|
3641
|
+
if (this.target || (this.target = M(), this.targetWithTransforms = M()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Ml(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : I(this.target, this.layout.layoutBox), Zn(this.target, this.targetDelta)) : I(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
|
|
3642
|
+
this.attemptToResolveRelativeTarget = !1;
|
|
3643
|
+
const h = this.getClosestProjectingParent();
|
|
3644
|
+
h && !!h.resumingFrom == !!this.resumingFrom && !h.options.layoutScroll && h.target && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = M(), this.relativeTargetOrigin = M(), At(this.relativeTargetOrigin, this.target, h.target), I(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
3645
|
+
}
|
|
3646
|
+
xt && tt.resolvedTargetDeltas++;
|
|
3647
|
+
}
|
|
3648
|
+
}
|
|
3649
|
+
}
|
|
3650
|
+
getClosestProjectingParent() {
|
|
3651
|
+
if (!(!this.parent || Me(this.parent.latestValues) || qn(this.parent.latestValues)))
|
|
3652
|
+
return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
|
|
3653
|
+
}
|
|
3654
|
+
isProjecting() {
|
|
3655
|
+
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
|
|
3656
|
+
}
|
|
3657
|
+
calcProjection() {
|
|
3658
|
+
var r;
|
|
3659
|
+
const a = this.getLead(), l = !!this.resumingFrom || this !== a;
|
|
3660
|
+
let u = !0;
|
|
3661
|
+
if ((this.isProjectionDirty || !((r = this.parent) === null || r === void 0) && r.isProjectionDirty) && (u = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (u = !1), this.resolvedRelativeTargetAt === R.timestamp && (u = !1), u) return;
|
|
3662
|
+
const { layout: c, layoutId: f } = this.options;
|
|
3663
|
+
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(c || f)) return;
|
|
3664
|
+
I(this.layoutCorrected, this.layout.layoutBox);
|
|
3665
|
+
const h = this.treeScale.x, d = this.treeScale.y;
|
|
3666
|
+
jl(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox, a.targetWithTransforms = M());
|
|
3667
|
+
const { target: m } = a;
|
|
3668
|
+
if (!m) {
|
|
3669
|
+
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
3670
|
+
return;
|
|
3671
|
+
}
|
|
3672
|
+
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (cs(this.prevProjectionDelta.x, this.projectionDelta.x), cs(this.prevProjectionDelta.y, this.projectionDelta.y)), bt(this.projectionDelta, this.layoutCorrected, m, this.latestValues), (this.treeScale.x !== h || this.treeScale.y !== d || !ys(this.projectionDelta.x, this.prevProjectionDelta.x) || !ys(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", m)), xt && tt.recalculatedProjection++;
|
|
3673
|
+
}
|
|
3674
|
+
hide() {
|
|
3675
|
+
this.isVisible = !1;
|
|
3676
|
+
}
|
|
3677
|
+
show() {
|
|
3678
|
+
this.isVisible = !0;
|
|
3679
|
+
}
|
|
3680
|
+
scheduleRender(r = !0) {
|
|
3681
|
+
var a;
|
|
3682
|
+
if ((a = this.options.visualElement) === null || a === void 0 || a.scheduleRender(), r) {
|
|
3683
|
+
const l = this.getStack();
|
|
3684
|
+
l && l.scheduleRender();
|
|
3685
|
+
}
|
|
3686
|
+
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
|
|
3687
|
+
}
|
|
3688
|
+
createProjectionDeltas() {
|
|
3689
|
+
this.prevProjectionDelta = ot(), this.projectionDelta = ot(), this.projectionDeltaWithTransform = ot();
|
|
3690
|
+
}
|
|
3691
|
+
setAnimationOrigin(r, a = !1) {
|
|
3692
|
+
const l = this.snapshot, u = l ? l.latestValues : {}, c = { ...this.latestValues }, f = ot();
|
|
3693
|
+
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
|
|
3694
|
+
const h = M(), d = (l ? l.source : void 0) !== (this.layout ? this.layout.source : void 0), m = this.getStack(), p = !m || m.members.length <= 1, T = !!(d && !p && this.options.crossfade === !0 && !this.path.some(Su));
|
|
3695
|
+
this.animationProgress = 0;
|
|
3696
|
+
let v;
|
|
3697
|
+
this.mixTargetDelta = (g) => {
|
|
3698
|
+
const x = g / 1e3;
|
|
3699
|
+
Ss(f.x, r.x, x), Ss(f.y, r.y, x), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (At(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Pu(this.relativeTarget, this.relativeTargetOrigin, h, x), v && ru(this.relativeTarget, v) && (this.isProjectionDirty = !1), v || (v = M()), I(v, this.relativeTarget)), d && (this.animationValues = c, Ql(c, u, this.latestValues, x, T, p)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = x;
|
|
3700
|
+
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
3701
|
+
}
|
|
3702
|
+
startAnimation(r) {
|
|
3703
|
+
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (X(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = w.update(() => {
|
|
3704
|
+
Ut.hasAnimatedSinceResize = !0, this.currentAnimation = Hl(0, Ts, {
|
|
3705
|
+
...r,
|
|
3706
|
+
onUpdate: (a) => {
|
|
3707
|
+
this.mixTargetDelta(a), r.onUpdate && r.onUpdate(a);
|
|
3708
|
+
},
|
|
3709
|
+
onComplete: () => {
|
|
3710
|
+
r.onComplete && r.onComplete(), this.completeAnimation();
|
|
3711
|
+
}
|
|
3712
|
+
}), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
|
|
3713
|
+
});
|
|
3714
|
+
}
|
|
3715
|
+
completeAnimation() {
|
|
3716
|
+
this.resumingFrom && (this.resumingFrom.currentAnimation = void 0, this.resumingFrom.preserveOpacity = void 0);
|
|
3717
|
+
const r = this.getStack();
|
|
3718
|
+
r && r.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
|
|
3719
|
+
}
|
|
3720
|
+
finishAnimation() {
|
|
3721
|
+
this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Ts), this.currentAnimation.stop()), this.completeAnimation();
|
|
3722
|
+
}
|
|
3723
|
+
applyTransformsToTarget() {
|
|
3724
|
+
const r = this.getLead();
|
|
3725
|
+
let { targetWithTransforms: a, target: l, layout: u, latestValues: c } = r;
|
|
3726
|
+
if (!(!a || !l || !u)) {
|
|
3727
|
+
if (this !== r && this.layout && u && ar(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
|
|
3728
|
+
l = this.target || M();
|
|
3729
|
+
const f = j(this.layout.layoutBox.x);
|
|
3730
|
+
l.x.min = r.target.x.min, l.x.max = l.x.min + f;
|
|
3731
|
+
const h = j(this.layout.layoutBox.y);
|
|
3732
|
+
l.y.min = r.target.y.min, l.y.max = l.y.min + h;
|
|
3733
|
+
}
|
|
3734
|
+
I(a, l), lt(a, c), bt(this.projectionDeltaWithTransform, this.layoutCorrected, a, c);
|
|
3735
|
+
}
|
|
3736
|
+
}
|
|
3737
|
+
registerSharedNode(r, a) {
|
|
3738
|
+
this.sharedNodes.has(r) || this.sharedNodes.set(r, new ou()), this.sharedNodes.get(r).add(a);
|
|
3739
|
+
const l = a.options.initialPromotionConfig;
|
|
3740
|
+
a.promote({
|
|
3741
|
+
transition: l ? l.transition : void 0,
|
|
3742
|
+
preserveFollowOpacity: l && l.shouldPreserveFollowOpacity ? l.shouldPreserveFollowOpacity(a) : void 0
|
|
3743
|
+
});
|
|
3744
|
+
}
|
|
3745
|
+
isLead() {
|
|
3746
|
+
const r = this.getStack();
|
|
3747
|
+
return r ? r.lead === this : !0;
|
|
3748
|
+
}
|
|
3749
|
+
getLead() {
|
|
3750
|
+
var r;
|
|
3751
|
+
const { layoutId: a } = this.options;
|
|
3752
|
+
return a ? ((r = this.getStack()) === null || r === void 0 ? void 0 : r.lead) || this : this;
|
|
3753
|
+
}
|
|
3754
|
+
getPrevLead() {
|
|
3755
|
+
var r;
|
|
3756
|
+
const { layoutId: a } = this.options;
|
|
3757
|
+
return a ? (r = this.getStack()) === null || r === void 0 ? void 0 : r.prevLead : void 0;
|
|
3758
|
+
}
|
|
3759
|
+
getStack() {
|
|
3760
|
+
const { layoutId: r } = this.options;
|
|
3761
|
+
if (r) return this.root.sharedNodes.get(r);
|
|
3762
|
+
}
|
|
3763
|
+
promote({ needsReset: r, transition: a, preserveFollowOpacity: l } = {}) {
|
|
3764
|
+
const u = this.getStack();
|
|
3765
|
+
u && u.promote(this, l), r && (this.projectionDelta = void 0, this.needsReset = !0), a && this.setOptions({ transition: a });
|
|
3766
|
+
}
|
|
3767
|
+
relegate() {
|
|
3768
|
+
const r = this.getStack();
|
|
3769
|
+
return r ? r.relegate(this) : !1;
|
|
3770
|
+
}
|
|
3771
|
+
resetSkewAndRotation() {
|
|
3772
|
+
const { visualElement: r } = this.options;
|
|
3773
|
+
if (!r) return;
|
|
3774
|
+
let a = !1;
|
|
3775
|
+
const { latestValues: l } = r;
|
|
3776
|
+
if ((l.z || l.rotate || l.rotateX || l.rotateY || l.rotateZ || l.skewX || l.skewY) && (a = !0), !a) return;
|
|
3777
|
+
const u = {};
|
|
3778
|
+
l.z && me("z", r, u, this.animationValues);
|
|
3779
|
+
for (let c = 0; c < de.length; c++)
|
|
3780
|
+
me(`rotate${de[c]}`, r, u, this.animationValues), me(`skew${de[c]}`, r, u, this.animationValues);
|
|
3781
|
+
r.render();
|
|
3782
|
+
for (const c in u)
|
|
3783
|
+
r.setStaticValue(c, u[c]), this.animationValues && (this.animationValues[c] = u[c]);
|
|
3784
|
+
r.scheduleRender();
|
|
3785
|
+
}
|
|
3786
|
+
getProjectionStyles(r) {
|
|
3787
|
+
var a, l;
|
|
3788
|
+
if (!this.instance || this.isSVG) return;
|
|
3789
|
+
if (!this.isVisible) return lu;
|
|
3790
|
+
const u = { visibility: "" }, c = this.getTransformTemplate();
|
|
3791
|
+
if (this.needsReset)
|
|
3792
|
+
return this.needsReset = !1, u.opacity = "", u.pointerEvents = Nt(r?.pointerEvents) || "", u.transform = c ? c(this.latestValues, "") : "none", u;
|
|
3793
|
+
const f = this.getLead();
|
|
3794
|
+
if (!this.projectionDelta || !this.layout || !f.target) {
|
|
3795
|
+
const p = {};
|
|
3796
|
+
return this.options.layoutId && (p.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, p.pointerEvents = Nt(r?.pointerEvents) || ""), this.hasProjected && !Q(this.latestValues) && (p.transform = c ? c({}, "") : "none", this.hasProjected = !1), p;
|
|
3797
|
+
}
|
|
3798
|
+
const h = f.animationValues || f.latestValues;
|
|
3799
|
+
this.applyTransformsToTarget(), u.transform = au(this.projectionDeltaWithTransform, this.treeScale, h), c && (u.transform = c(h, u.transform));
|
|
3800
|
+
const { x: d, y: m } = this.projectionDelta;
|
|
3801
|
+
u.transformOrigin = `${d.origin * 100}% ${m.origin * 100}% 0`, f.animationValues ? u.opacity = f === this ? (l = (a = h.opacity) !== null && a !== void 0 ? a : this.latestValues.opacity) !== null && l !== void 0 ? l : 1 : this.preserveOpacity ? this.latestValues.opacity : h.opacityExit : u.opacity = f === this ? h.opacity !== void 0 ? h.opacity : "" : h.opacityExit !== void 0 ? h.opacityExit : 0;
|
|
3802
|
+
for (const p in $t) {
|
|
3803
|
+
if (h[p] === void 0) continue;
|
|
3804
|
+
const { correct: T, applyTo: v } = $t[p], g = u.transform === "none" ? h[p] : T(h[p], f);
|
|
3805
|
+
if (v) {
|
|
3806
|
+
const x = v.length;
|
|
3807
|
+
for (let b = 0; b < x; b++) u[v[b]] = g;
|
|
3808
|
+
} else u[p] = g;
|
|
3809
|
+
}
|
|
3810
|
+
return this.options.layoutId && (u.pointerEvents = f === this ? Nt(r?.pointerEvents) || "" : "none"), u;
|
|
3811
|
+
}
|
|
3812
|
+
clearSnapshot() {
|
|
3813
|
+
this.resumeFrom = this.snapshot = void 0;
|
|
3814
|
+
}
|
|
3815
|
+
resetTree() {
|
|
3816
|
+
this.root.nodes.forEach((r) => {
|
|
3817
|
+
var a;
|
|
3818
|
+
return (a = r.currentAnimation) === null || a === void 0 ? void 0 : a.stop();
|
|
3819
|
+
}), this.root.nodes.forEach(xs), this.root.sharedNodes.clear();
|
|
3820
|
+
}
|
|
3821
|
+
};
|
|
3822
|
+
}
|
|
3823
|
+
function cu(t) {
|
|
3824
|
+
t.updateLayout();
|
|
3825
|
+
}
|
|
3826
|
+
function hu(t) {
|
|
3827
|
+
var e;
|
|
3828
|
+
const i = ((e = t.resumeFrom) === null || e === void 0 ? void 0 : e.snapshot) || t.snapshot;
|
|
3829
|
+
if (t.isLead() && t.layout && i && t.hasListeners("didUpdate")) {
|
|
3830
|
+
const { layoutBox: s, measuredBox: n } = t.layout, { animationType: o } = t.options, r = i.source !== t.layout.source;
|
|
3831
|
+
o === "size" ? N((f) => {
|
|
3832
|
+
const h = r ? i.measuredBox[f] : i.layoutBox[f], d = j(h);
|
|
3833
|
+
h.min = s[f].min, h.max = h.min + d;
|
|
3834
|
+
}) : ar(o, i.layoutBox, s) && N((f) => {
|
|
3835
|
+
const h = r ? i.measuredBox[f] : i.layoutBox[f], d = j(s[f]);
|
|
3836
|
+
h.max = h.min + d, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[f].max = t.relativeTarget[f].min + d);
|
|
3837
|
+
});
|
|
3838
|
+
const a = ot();
|
|
3839
|
+
bt(a, s, i.layoutBox);
|
|
3840
|
+
const l = ot();
|
|
3841
|
+
r ? bt(l, t.applyTransform(n, !0), i.measuredBox) : bt(l, s, i.layoutBox);
|
|
3842
|
+
const u = !sr(a);
|
|
3843
|
+
let c = !1;
|
|
3844
|
+
if (!t.resumeFrom) {
|
|
3845
|
+
const f = t.getClosestProjectingParent();
|
|
3846
|
+
if (f && !f.resumeFrom) {
|
|
3847
|
+
const { snapshot: h, layout: d } = f;
|
|
3848
|
+
if (h && d) {
|
|
3849
|
+
const m = M();
|
|
3850
|
+
At(m, i.layoutBox, h.layoutBox);
|
|
3851
|
+
const p = M();
|
|
3852
|
+
At(p, s, d.layoutBox), nr(m, p) || (c = !0), f.options.layoutRoot && (t.relativeTarget = p, t.relativeTargetOrigin = m, t.relativeParent = f);
|
|
3853
|
+
}
|
|
3854
|
+
}
|
|
3855
|
+
}
|
|
3856
|
+
t.notifyListeners("didUpdate", {
|
|
3857
|
+
layout: s,
|
|
3858
|
+
snapshot: i,
|
|
3859
|
+
delta: l,
|
|
3860
|
+
layoutDelta: a,
|
|
3861
|
+
hasLayoutChanged: u,
|
|
3862
|
+
hasRelativeTargetChanged: c
|
|
3863
|
+
});
|
|
3864
|
+
} else if (t.isLead()) {
|
|
3865
|
+
const { onExitComplete: s } = t.options;
|
|
3866
|
+
s && s();
|
|
3867
|
+
}
|
|
3868
|
+
t.options.transition = void 0;
|
|
3869
|
+
}
|
|
3870
|
+
function fu(t) {
|
|
3871
|
+
xt && tt.totalNodes++, t.parent && (t.isProjecting() || (t.isProjectionDirty = t.parent.isProjectionDirty), t.isSharedProjectionDirty || (t.isSharedProjectionDirty = !!(t.isProjectionDirty || t.parent.isProjectionDirty || t.parent.isSharedProjectionDirty)), t.isTransformDirty || (t.isTransformDirty = t.parent.isTransformDirty));
|
|
3872
|
+
}
|
|
3873
|
+
function du(t) {
|
|
3874
|
+
t.isProjectionDirty = t.isSharedProjectionDirty = t.isTransformDirty = !1;
|
|
3875
|
+
}
|
|
3876
|
+
function mu(t) {
|
|
3877
|
+
t.clearSnapshot();
|
|
3878
|
+
}
|
|
3879
|
+
function xs(t) {
|
|
3880
|
+
t.clearMeasurements();
|
|
3881
|
+
}
|
|
3882
|
+
function pu(t) {
|
|
3883
|
+
t.isLayoutDirty = !1;
|
|
3884
|
+
}
|
|
3885
|
+
function vu(t) {
|
|
3886
|
+
const { visualElement: e } = t.options;
|
|
3887
|
+
e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
|
|
3888
|
+
}
|
|
3889
|
+
function Ps(t) {
|
|
3890
|
+
t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
|
|
3891
|
+
}
|
|
3892
|
+
function gu(t) {
|
|
3893
|
+
t.resolveTargetDelta();
|
|
3894
|
+
}
|
|
3895
|
+
function yu(t) {
|
|
3896
|
+
t.calcProjection();
|
|
3897
|
+
}
|
|
3898
|
+
function Tu(t) {
|
|
3899
|
+
t.resetSkewAndRotation();
|
|
3900
|
+
}
|
|
3901
|
+
function xu(t) {
|
|
3902
|
+
t.removeLeadSnapshot();
|
|
3903
|
+
}
|
|
3904
|
+
function Ss(t, e, i) {
|
|
3905
|
+
t.translate = D(e.translate, 0, i), t.scale = D(e.scale, 1, i), t.origin = e.origin, t.originPoint = e.originPoint;
|
|
3906
|
+
}
|
|
3907
|
+
function bs(t, e, i, s) {
|
|
3908
|
+
t.min = D(e.min, i.min, s), t.max = D(e.max, i.max, s);
|
|
3909
|
+
}
|
|
3910
|
+
function Pu(t, e, i, s) {
|
|
3911
|
+
bs(t.x, e.x, i.x, s), bs(t.y, e.y, i.y, s);
|
|
3912
|
+
}
|
|
3913
|
+
function Su(t) {
|
|
3914
|
+
return t.animationValues && t.animationValues.opacityExit !== void 0;
|
|
3915
|
+
}
|
|
3916
|
+
var bu = {
|
|
3917
|
+
duration: 0.45,
|
|
3918
|
+
ease: [
|
|
3919
|
+
0.4,
|
|
3920
|
+
0,
|
|
3921
|
+
0.1,
|
|
3922
|
+
1
|
|
3923
|
+
]
|
|
3924
|
+
}, As = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), ws = As("applewebkit/") && !As("chrome/") ? Math.round : O;
|
|
3925
|
+
function Vs(t) {
|
|
3926
|
+
t.min = ws(t.min), t.max = ws(t.max);
|
|
3927
|
+
}
|
|
3928
|
+
function Au(t) {
|
|
3929
|
+
Vs(t.x), Vs(t.y);
|
|
3930
|
+
}
|
|
3931
|
+
function ar(t, e, i) {
|
|
3932
|
+
return t === "position" || t === "preserve-aspect" && !Dl(gs(e), gs(i), 0.2);
|
|
3933
|
+
}
|
|
3934
|
+
function wu(t) {
|
|
3935
|
+
var e;
|
|
3936
|
+
return t !== t.root && ((e = t.scroll) === null || e === void 0 ? void 0 : e.wasRoot);
|
|
3937
|
+
}
|
|
3938
|
+
var Vu = or({
|
|
3939
|
+
attachResizeListener: (t, e) => Ct(t, "resize", e),
|
|
3940
|
+
measureScroll: () => ({
|
|
3941
|
+
x: document.documentElement.scrollLeft || document.body.scrollLeft,
|
|
3942
|
+
y: document.documentElement.scrollTop || document.body.scrollTop
|
|
3943
|
+
}),
|
|
3944
|
+
checkIsScrollRoot: () => !0
|
|
3945
|
+
}), pe = { current: void 0 }, lr = or({
|
|
3946
|
+
measureScroll: (t) => ({
|
|
3947
|
+
x: t.scrollLeft,
|
|
3948
|
+
y: t.scrollTop
|
|
3949
|
+
}),
|
|
3950
|
+
defaultParent: () => {
|
|
3951
|
+
if (!pe.current) {
|
|
3952
|
+
const t = new Vu({});
|
|
3953
|
+
t.mount(window), t.setOptions({ layoutScroll: !0 }), pe.current = t;
|
|
3954
|
+
}
|
|
3955
|
+
return pe.current;
|
|
3956
|
+
},
|
|
3957
|
+
resetTransform: (t, e) => {
|
|
3958
|
+
t.style.transform = e !== void 0 ? e : "none";
|
|
3959
|
+
},
|
|
3960
|
+
checkIsScrollRoot: (t) => window.getComputedStyle(t).position === "fixed"
|
|
3961
|
+
}), Du = {
|
|
3962
|
+
pan: { Feature: $l },
|
|
3963
|
+
drag: {
|
|
3964
|
+
Feature: Kl,
|
|
3965
|
+
ProjectionNode: lr,
|
|
3966
|
+
MeasureLayout: tr
|
|
3967
|
+
}
|
|
3968
|
+
};
|
|
3969
|
+
function Ds(t, e, i) {
|
|
3970
|
+
const { props: s } = t;
|
|
3971
|
+
t.animationState && s.whileHover && t.animationState.setActive("whileHover", i === "Start");
|
|
3972
|
+
const n = s["onHover" + i];
|
|
3973
|
+
n && w.postRender(() => n(e, Ft(e)));
|
|
3974
|
+
}
|
|
3975
|
+
var Mu = class extends Z {
|
|
3976
|
+
mount() {
|
|
3977
|
+
const { current: t } = this.node;
|
|
3978
|
+
t && (this.unmount = Do(t, (e) => (Ds(this.node, e, "Start"), (i) => Ds(this.node, i, "End"))));
|
|
3979
|
+
}
|
|
3980
|
+
unmount() {
|
|
3981
|
+
}
|
|
3982
|
+
}, Cu = class extends Z {
|
|
3983
|
+
constructor() {
|
|
3984
|
+
super(...arguments), this.isActive = !1;
|
|
3985
|
+
}
|
|
3986
|
+
onFocus() {
|
|
3987
|
+
let t = !1;
|
|
3988
|
+
try {
|
|
3989
|
+
t = this.node.current.matches(":focus-visible");
|
|
3990
|
+
} catch {
|
|
3991
|
+
t = !0;
|
|
3992
|
+
}
|
|
3993
|
+
!t || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !0), this.isActive = !0);
|
|
3994
|
+
}
|
|
3995
|
+
onBlur() {
|
|
3996
|
+
!this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
|
|
3997
|
+
}
|
|
3998
|
+
mount() {
|
|
3999
|
+
this.unmount = Lt(Ct(this.node.current, "focus", () => this.onFocus()), Ct(this.node.current, "blur", () => this.onBlur()));
|
|
4000
|
+
}
|
|
4001
|
+
unmount() {
|
|
4002
|
+
}
|
|
4003
|
+
};
|
|
4004
|
+
function Ms(t, e, i) {
|
|
4005
|
+
const { props: s } = t;
|
|
4006
|
+
t.animationState && s.whileTap && t.animationState.setActive("whileTap", i === "Start");
|
|
4007
|
+
const n = s["onTap" + (i === "End" ? "" : i)];
|
|
4008
|
+
n && w.postRender(() => n(e, Ft(e)));
|
|
4009
|
+
}
|
|
4010
|
+
var Eu = class extends Z {
|
|
4011
|
+
mount() {
|
|
4012
|
+
const { current: t } = this.node;
|
|
4013
|
+
t && (this.unmount = Ro(t, (e) => (Ms(this.node, e, "Start"), (i, { success: s }) => Ms(this.node, i, s ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
|
|
4014
|
+
}
|
|
4015
|
+
unmount() {
|
|
4016
|
+
}
|
|
4017
|
+
}, Ee = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), Ru = (t) => {
|
|
4018
|
+
const e = Ee.get(t.target);
|
|
4019
|
+
e && e(t);
|
|
4020
|
+
}, Lu = (t) => {
|
|
4021
|
+
t.forEach(Ru);
|
|
4022
|
+
};
|
|
4023
|
+
function Fu({ root: t, ...e }) {
|
|
4024
|
+
const i = t || document;
|
|
4025
|
+
ve.has(i) || ve.set(i, {});
|
|
4026
|
+
const s = ve.get(i), n = JSON.stringify(e);
|
|
4027
|
+
return s[n] || (s[n] = new IntersectionObserver(Lu, {
|
|
4028
|
+
root: t,
|
|
4029
|
+
...e
|
|
4030
|
+
})), s[n];
|
|
4031
|
+
}
|
|
4032
|
+
function Bu(t, e, i) {
|
|
4033
|
+
const s = Fu(e);
|
|
4034
|
+
return Ee.set(t, i), s.observe(t), () => {
|
|
4035
|
+
Ee.delete(t), s.unobserve(t);
|
|
4036
|
+
};
|
|
4037
|
+
}
|
|
4038
|
+
var ku = {
|
|
4039
|
+
some: 0,
|
|
4040
|
+
all: 1
|
|
4041
|
+
}, Ou = class extends Z {
|
|
4042
|
+
constructor() {
|
|
4043
|
+
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
|
4044
|
+
}
|
|
4045
|
+
startObserver() {
|
|
4046
|
+
this.unmount();
|
|
4047
|
+
const { viewport: t = {} } = this.node.getProps(), { root: e, margin: i, amount: s = "some", once: n } = t, o = {
|
|
4048
|
+
root: e ? e.current : void 0,
|
|
4049
|
+
rootMargin: i,
|
|
4050
|
+
threshold: typeof s == "number" ? s : ku[s]
|
|
4051
|
+
}, r = (a) => {
|
|
4052
|
+
const { isIntersecting: l } = a;
|
|
4053
|
+
if (this.isInView === l || (this.isInView = l, n && !l && this.hasEnteredView)) return;
|
|
4054
|
+
l && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", l);
|
|
4055
|
+
const { onViewportEnter: u, onViewportLeave: c } = this.node.getProps(), f = l ? u : c;
|
|
4056
|
+
f && f(a);
|
|
4057
|
+
};
|
|
4058
|
+
return Bu(this.node.current, o, r);
|
|
4059
|
+
}
|
|
4060
|
+
mount() {
|
|
4061
|
+
this.startObserver();
|
|
4062
|
+
}
|
|
4063
|
+
update() {
|
|
4064
|
+
if (typeof IntersectionObserver > "u") return;
|
|
4065
|
+
const { props: t, prevProps: e } = this.node;
|
|
4066
|
+
[
|
|
4067
|
+
"amount",
|
|
4068
|
+
"margin",
|
|
4069
|
+
"root"
|
|
4070
|
+
].some(ju(t, e)) && this.startObserver();
|
|
4071
|
+
}
|
|
4072
|
+
unmount() {
|
|
4073
|
+
}
|
|
4074
|
+
};
|
|
4075
|
+
function ju({ viewport: t = {} }, { viewport: e = {} } = {}) {
|
|
4076
|
+
return (i) => t[i] !== e[i];
|
|
4077
|
+
}
|
|
4078
|
+
var Iu = {
|
|
4079
|
+
inView: { Feature: Ou },
|
|
4080
|
+
tap: { Feature: Eu },
|
|
4081
|
+
focus: { Feature: Cu },
|
|
4082
|
+
hover: { Feature: Mu }
|
|
4083
|
+
}, Nu = { layout: {
|
|
4084
|
+
ProjectionNode: lr,
|
|
4085
|
+
MeasureLayout: tr
|
|
4086
|
+
} }, Re = { current: null }, ur = { current: !1 };
|
|
4087
|
+
function _u() {
|
|
4088
|
+
if (ur.current = !0, !!Be)
|
|
4089
|
+
if (window.matchMedia) {
|
|
4090
|
+
const t = window.matchMedia("(prefers-reduced-motion)"), e = () => Re.current = t.matches;
|
|
4091
|
+
t.addListener(e), e();
|
|
4092
|
+
} else Re.current = !1;
|
|
4093
|
+
}
|
|
4094
|
+
var Uu = [
|
|
4095
|
+
...Bn,
|
|
4096
|
+
L,
|
|
4097
|
+
q
|
|
4098
|
+
], Ku = (t) => Uu.find(Fn(t)), Cs = /* @__PURE__ */ new WeakMap();
|
|
4099
|
+
function $u(t, e, i) {
|
|
4100
|
+
for (const s in e) {
|
|
4101
|
+
const n = e[s], o = i[s];
|
|
4102
|
+
if (F(n))
|
|
4103
|
+
t.addValue(s, n), process.env.NODE_ENV === "development" && qt(n.version === "11.18.2", `Attempting to mix Motion versions ${n.version} with 11.18.2 may not work as expected.`);
|
|
4104
|
+
else if (F(o)) t.addValue(s, Dt(n, { owner: t }));
|
|
4105
|
+
else if (o !== n) if (t.hasValue(s)) {
|
|
4106
|
+
const r = t.getValue(s);
|
|
4107
|
+
r.liveStyle === !0 ? r.jump(n) : r.hasAnimated || r.set(n);
|
|
4108
|
+
} else {
|
|
4109
|
+
const r = t.getStaticValue(s);
|
|
4110
|
+
t.addValue(s, Dt(r !== void 0 ? r : n, { owner: t }));
|
|
4111
|
+
}
|
|
4112
|
+
}
|
|
4113
|
+
for (const s in i) e[s] === void 0 && t.removeValue(s);
|
|
4114
|
+
return e;
|
|
4115
|
+
}
|
|
4116
|
+
var Es = [
|
|
4117
|
+
"AnimationStart",
|
|
4118
|
+
"AnimationComplete",
|
|
4119
|
+
"Update",
|
|
4120
|
+
"BeforeLayoutMeasure",
|
|
4121
|
+
"LayoutMeasure",
|
|
4122
|
+
"LayoutAnimationStart",
|
|
4123
|
+
"LayoutAnimationComplete"
|
|
4124
|
+
], Wu = class {
|
|
4125
|
+
scrapeMotionValuesFromProps(t, e, i) {
|
|
4126
|
+
return {};
|
|
4127
|
+
}
|
|
4128
|
+
constructor({ parent: t, props: e, presenceContext: i, reducedMotionConfig: s, blockInitialAnimation: n, visualState: o }, r = {}) {
|
|
4129
|
+
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = li, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
|
|
4130
|
+
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
4131
|
+
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
|
|
4132
|
+
const h = $.now();
|
|
4133
|
+
this.renderScheduledAt < h && (this.renderScheduledAt = h, w.render(this.render, !1, !0));
|
|
4134
|
+
};
|
|
4135
|
+
const { latestValues: a, renderState: l, onUpdate: u } = o;
|
|
4136
|
+
this.onUpdate = u, this.latestValues = a, this.baseTarget = { ...a }, this.initialValues = e.initial ? { ...a } : {}, this.renderState = l, this.parent = t, this.props = e, this.presenceContext = i, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = s, this.options = r, this.blockInitialAnimation = !!n, this.isControllingVariants = Qt(e), this.isVariantNode = _s(e), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
|
|
4137
|
+
const { willChange: c, ...f } = this.scrapeMotionValuesFromProps(e, {}, this);
|
|
4138
|
+
for (const h in f) {
|
|
4139
|
+
const d = f[h];
|
|
4140
|
+
a[h] !== void 0 && F(d) && d.set(a[h], !1);
|
|
4141
|
+
}
|
|
4142
|
+
}
|
|
4143
|
+
mount(t) {
|
|
4144
|
+
this.current = t, Cs.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, i) => this.bindToMotionValue(i, e)), ur.current || _u(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Re.current, process.env.NODE_ENV !== "production" && qt(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
|
|
4145
|
+
}
|
|
4146
|
+
unmount() {
|
|
4147
|
+
Cs.delete(this.current), this.projection && this.projection.unmount(), X(this.notifyUpdate), X(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
|
|
4148
|
+
for (const t in this.events) this.events[t].clear();
|
|
4149
|
+
for (const t in this.features) {
|
|
4150
|
+
const e = this.features[t];
|
|
4151
|
+
e && (e.unmount(), e.isMounted = !1);
|
|
4152
|
+
}
|
|
4153
|
+
this.current = null;
|
|
4154
|
+
}
|
|
4155
|
+
bindToMotionValue(t, e) {
|
|
4156
|
+
this.valueSubscriptions.has(t) && this.valueSubscriptions.get(t)();
|
|
4157
|
+
const i = st.has(t), s = e.on("change", (r) => {
|
|
4158
|
+
this.latestValues[t] = r, this.props.onUpdate && w.preRender(this.notifyUpdate), i && this.projection && (this.projection.isTransformDirty = !0);
|
|
4159
|
+
}), n = e.on("renderRequest", this.scheduleRender);
|
|
4160
|
+
let o;
|
|
4161
|
+
window.MotionCheckAppearSync && (o = window.MotionCheckAppearSync(this, t, e)), this.valueSubscriptions.set(t, () => {
|
|
4162
|
+
s(), n(), o && o(), e.owner && e.stop();
|
|
4163
|
+
});
|
|
4164
|
+
}
|
|
4165
|
+
sortNodePosition(t) {
|
|
4166
|
+
return !this.current || !this.sortInstanceNodePosition || this.type !== t.type ? 0 : this.sortInstanceNodePosition(this.current, t.current);
|
|
4167
|
+
}
|
|
4168
|
+
updateFeatures() {
|
|
4169
|
+
let t = "animation";
|
|
4170
|
+
for (t in ct) {
|
|
4171
|
+
const e = ct[t];
|
|
4172
|
+
if (!e) continue;
|
|
4173
|
+
const { isEnabled: i, Feature: s } = e;
|
|
4174
|
+
if (!this.features[t] && s && i(this.props) && (this.features[t] = new s(this)), this.features[t]) {
|
|
4175
|
+
const n = this.features[t];
|
|
4176
|
+
n.isMounted ? n.update() : (n.mount(), n.isMounted = !0);
|
|
4177
|
+
}
|
|
4178
|
+
}
|
|
4179
|
+
}
|
|
4180
|
+
triggerBuild() {
|
|
4181
|
+
this.build(this.renderState, this.latestValues, this.props);
|
|
4182
|
+
}
|
|
4183
|
+
measureViewportBox() {
|
|
4184
|
+
return this.current ? this.measureInstanceViewportBox(this.current, this.props) : M();
|
|
4185
|
+
}
|
|
4186
|
+
getStaticValue(t) {
|
|
4187
|
+
return this.latestValues[t];
|
|
4188
|
+
}
|
|
4189
|
+
setStaticValue(t, e) {
|
|
4190
|
+
this.latestValues[t] = e;
|
|
4191
|
+
}
|
|
4192
|
+
update(t, e) {
|
|
4193
|
+
(t.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = t, this.prevPresenceContext = this.presenceContext, this.presenceContext = e;
|
|
4194
|
+
for (let i = 0; i < Es.length; i++) {
|
|
4195
|
+
const s = Es[i];
|
|
4196
|
+
this.propEventSubscriptions[s] && (this.propEventSubscriptions[s](), delete this.propEventSubscriptions[s]);
|
|
4197
|
+
const n = t["on" + s];
|
|
4198
|
+
n && (this.propEventSubscriptions[s] = this.on(s, n));
|
|
4199
|
+
}
|
|
4200
|
+
this.prevMotionValues = $u(this, this.scrapeMotionValuesFromProps(t, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue(), this.onUpdate && this.onUpdate(this);
|
|
4201
|
+
}
|
|
4202
|
+
getProps() {
|
|
4203
|
+
return this.props;
|
|
4204
|
+
}
|
|
4205
|
+
getVariant(t) {
|
|
4206
|
+
return this.props.variants ? this.props.variants[t] : void 0;
|
|
4207
|
+
}
|
|
4208
|
+
getDefaultTransition() {
|
|
4209
|
+
return this.props.transition;
|
|
4210
|
+
}
|
|
4211
|
+
getTransformPagePoint() {
|
|
4212
|
+
return this.props.transformPagePoint;
|
|
4213
|
+
}
|
|
4214
|
+
getClosestVariantNode() {
|
|
4215
|
+
return this.isVariantNode ? this : this.parent ? this.parent.getClosestVariantNode() : void 0;
|
|
4216
|
+
}
|
|
4217
|
+
addVariantChild(t) {
|
|
4218
|
+
const e = this.getClosestVariantNode();
|
|
4219
|
+
if (e)
|
|
4220
|
+
return e.variantChildren && e.variantChildren.add(t), () => e.variantChildren.delete(t);
|
|
4221
|
+
}
|
|
4222
|
+
addValue(t, e) {
|
|
4223
|
+
const i = this.values.get(t);
|
|
4224
|
+
e !== i && (i && this.removeValue(t), this.bindToMotionValue(t, e), this.values.set(t, e), this.latestValues[t] = e.get());
|
|
4225
|
+
}
|
|
4226
|
+
removeValue(t) {
|
|
4227
|
+
this.values.delete(t);
|
|
4228
|
+
const e = this.valueSubscriptions.get(t);
|
|
4229
|
+
e && (e(), this.valueSubscriptions.delete(t)), delete this.latestValues[t], this.removeValueFromRenderState(t, this.renderState);
|
|
4230
|
+
}
|
|
4231
|
+
hasValue(t) {
|
|
4232
|
+
return this.values.has(t);
|
|
4233
|
+
}
|
|
4234
|
+
getValue(t, e) {
|
|
4235
|
+
if (this.props.values && this.props.values[t]) return this.props.values[t];
|
|
4236
|
+
let i = this.values.get(t);
|
|
4237
|
+
return i === void 0 && e !== void 0 && (i = Dt(e === null ? void 0 : e, { owner: this }), this.addValue(t, i)), i;
|
|
4238
|
+
}
|
|
4239
|
+
readValue(t, e) {
|
|
4240
|
+
var i;
|
|
4241
|
+
let s = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : (i = this.getBaseTargetFromProps(this.props, t)) !== null && i !== void 0 ? i : this.readValueFromInstance(this.current, t, this.options);
|
|
4242
|
+
return s != null && (typeof s == "string" && (Rn(s) || Sn(s)) ? s = parseFloat(s) : !Ku(s) && q.test(e) && (s = Mn(t, e)), this.setBaseTarget(t, F(s) ? s.get() : s)), F(s) ? s.get() : s;
|
|
4243
|
+
}
|
|
4244
|
+
setBaseTarget(t, e) {
|
|
4245
|
+
this.baseTarget[t] = e;
|
|
4246
|
+
}
|
|
4247
|
+
getBaseTarget(t) {
|
|
4248
|
+
var e;
|
|
4249
|
+
const { initial: i } = this.props;
|
|
4250
|
+
let s;
|
|
4251
|
+
if (typeof i == "string" || typeof i == "object") {
|
|
4252
|
+
const o = Ke(this.props, i, (e = this.presenceContext) === null || e === void 0 ? void 0 : e.custom);
|
|
4253
|
+
o && (s = o[t]);
|
|
4254
|
+
}
|
|
4255
|
+
if (i && s !== void 0) return s;
|
|
4256
|
+
const n = this.getBaseTargetFromProps(this.props, t);
|
|
4257
|
+
return n !== void 0 && !F(n) ? n : this.initialValues[t] !== void 0 && s === void 0 ? void 0 : this.baseTarget[t];
|
|
4258
|
+
}
|
|
4259
|
+
on(t, e) {
|
|
4260
|
+
return this.events[t] || (this.events[t] = new ii()), this.events[t].add(e);
|
|
4261
|
+
}
|
|
4262
|
+
notify(t, ...e) {
|
|
4263
|
+
this.events[t] && this.events[t].notify(...e);
|
|
4264
|
+
}
|
|
4265
|
+
}, cr = class extends Wu {
|
|
4266
|
+
constructor() {
|
|
4267
|
+
super(...arguments), this.KeyframeResolver = kn;
|
|
4268
|
+
}
|
|
4269
|
+
sortInstanceNodePosition(t, e) {
|
|
4270
|
+
return t.compareDocumentPosition(e) & 2 ? 1 : -1;
|
|
4271
|
+
}
|
|
4272
|
+
getBaseTargetFromProps(t, e) {
|
|
4273
|
+
return t.style ? t.style[e] : void 0;
|
|
4274
|
+
}
|
|
4275
|
+
removeValueFromRenderState(t, { vars: e, style: i }) {
|
|
4276
|
+
delete e[t], delete i[t];
|
|
4277
|
+
}
|
|
4278
|
+
handleChildMotionValue() {
|
|
4279
|
+
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
|
|
4280
|
+
const { children: t } = this.props;
|
|
4281
|
+
F(t) && (this.childSubscription = t.on("change", (e) => {
|
|
4282
|
+
this.current && (this.current.textContent = `${e}`);
|
|
4283
|
+
}));
|
|
4284
|
+
}
|
|
4285
|
+
};
|
|
4286
|
+
function Gu(t) {
|
|
4287
|
+
return window.getComputedStyle(t);
|
|
4288
|
+
}
|
|
4289
|
+
var zu = class extends cr {
|
|
4290
|
+
constructor() {
|
|
4291
|
+
super(...arguments), this.type = "html", this.renderInstance = Xs;
|
|
4292
|
+
}
|
|
4293
|
+
readValueFromInstance(t, e) {
|
|
4294
|
+
if (st.has(e)) {
|
|
4295
|
+
const i = ai(e);
|
|
4296
|
+
return i && i.default || 0;
|
|
4297
|
+
} else {
|
|
4298
|
+
const i = Gu(t), s = (zs(e) ? i.getPropertyValue(e) : i[e]) || 0;
|
|
4299
|
+
return typeof s == "string" ? s.trim() : s;
|
|
4300
|
+
}
|
|
4301
|
+
}
|
|
4302
|
+
measureInstanceViewportBox(t, { transformPagePoint: e }) {
|
|
4303
|
+
return Jn(t, e);
|
|
4304
|
+
}
|
|
4305
|
+
build(t, e, i) {
|
|
4306
|
+
Ge(t, e, i.transformTemplate);
|
|
4307
|
+
}
|
|
4308
|
+
scrapeMotionValuesFromProps(t, e, i) {
|
|
4309
|
+
return Xe(t, e, i);
|
|
4310
|
+
}
|
|
4311
|
+
}, Hu = class extends cr {
|
|
4312
|
+
constructor() {
|
|
4313
|
+
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = M;
|
|
4314
|
+
}
|
|
4315
|
+
getBaseTargetFromProps(t, e) {
|
|
4316
|
+
return t[e];
|
|
4317
|
+
}
|
|
4318
|
+
readValueFromInstance(t, e) {
|
|
4319
|
+
if (st.has(e)) {
|
|
4320
|
+
const i = ai(e);
|
|
4321
|
+
return i && i.default || 0;
|
|
4322
|
+
}
|
|
4323
|
+
return e = qs.has(e) ? e : Ne(e), t.getAttribute(e);
|
|
4324
|
+
}
|
|
4325
|
+
scrapeMotionValuesFromProps(t, e, i) {
|
|
4326
|
+
return Qs(t, e, i);
|
|
4327
|
+
}
|
|
4328
|
+
build(t, e, i) {
|
|
4329
|
+
ze(t, e, this.isSVGTag, i.transformTemplate);
|
|
4330
|
+
}
|
|
4331
|
+
renderInstance(t, e, i, s) {
|
|
4332
|
+
Zs(t, e, i, s);
|
|
4333
|
+
}
|
|
4334
|
+
mount(t) {
|
|
4335
|
+
this.isSVGTag = Ye(t.tagName), super.mount(t);
|
|
4336
|
+
}
|
|
4337
|
+
}, Yu = (t, e) => Ue(t) ? new Hu(e) : new zu(e, { allowProjection: t !== Ls }), Xu = /* @__PURE__ */ To({
|
|
4338
|
+
...yl,
|
|
4339
|
+
...Iu,
|
|
4340
|
+
...Du,
|
|
4341
|
+
...Nu
|
|
4342
|
+
}, Yu), ec = /* @__PURE__ */ Fr(Xu);
|
|
4343
|
+
export {
|
|
4344
|
+
ks as a,
|
|
4345
|
+
Bs as c,
|
|
4346
|
+
br as i,
|
|
4347
|
+
Vo as n,
|
|
4348
|
+
Fe as o,
|
|
4349
|
+
Ar as r,
|
|
4350
|
+
Sr as s,
|
|
4351
|
+
ec as t
|
|
4352
|
+
};
|
|
4353
|
+
|
|
4354
|
+
//# sourceMappingURL=proxy-wCWa57J3.js.map
|