motion-v 0.2.6 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1 -0
- package/dist/es/animation/use-animate.mjs +21 -0
- package/dist/es/components/AnimatePresence.vue.mjs +53 -0
- package/dist/es/components/AnimatePresence.vue2.mjs +4 -0
- package/dist/es/components/Motion.vue.mjs +98 -0
- package/dist/es/components/Motion.vue2.mjs +4 -0
- package/dist/es/components/Primitive.mjs +23 -0
- package/dist/es/components/Slot.mjs +27 -0
- package/dist/es/components/context.mjs +6 -0
- package/dist/es/components/presence.mjs +13 -0
- package/dist/es/components/renderSlotFragments.mjs +7 -0
- package/dist/es/constants/index.mjs +19 -0
- package/dist/es/features/events.mjs +53 -0
- package/dist/es/features/feature-manager.mjs +28 -0
- package/dist/es/features/feature.mjs +10 -0
- package/dist/es/features/gestures/base.mjs +14 -0
- package/dist/es/features/gestures/hover.mjs +33 -0
- package/dist/es/features/gestures/in-view.mjs +29 -0
- package/dist/es/features/gestures/press.mjs +28 -0
- package/dist/es/features/svg.mjs +30 -0
- package/dist/es/index.mjs +104 -0
- package/dist/es/node_modules/.pnpm/@vueuse_shared@11.1.0_vue@3.4.38_typescript@5.5.4_/node_modules/@vueuse/shared/index.mjs +6 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/GroupPlaybackControls.mjs +66 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animate/index.mjs +20 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.mjs +8 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animate/sequence.mjs +12 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animate/single-value.mjs +10 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animate/subject.mjs +30 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs +202 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.mjs +79 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs +148 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.mjs +17 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.mjs +12 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.mjs +23 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animators/waapi/NativeAnimation.mjs +106 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +24 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +12 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animators/waapi/easing.mjs +27 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animators/waapi/index.mjs +17 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/attach-timeline.mjs +6 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs +8 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/linear.mjs +11 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/memo-supports.mjs +12 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/style.mjs +10 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-flags.mjs +6 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-linear-easing.mjs +12 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-partial-keyframes.mjs +12 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.mjs +5 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/generators/inertia.mjs +37 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/generators/keyframes.mjs +30 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/generators/spring/find.mjs +55 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/generators/spring/index.mjs +67 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/generators/utils/calc-duration.mjs +13 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/generators/utils/is-generator.mjs +6 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.mjs +9 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.mjs +46 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs +45 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.mjs +6 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs +7 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/sequence/create.mjs +106 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs +7 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/sequence/utils/edit.mjs +22 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/sequence/utils/sort.mjs +6 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/utils/create-visual-element.mjs +39 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs +22 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/utils/get-value-transition.mjs +6 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/utils/is-animatable.mjs +7 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.mjs +6 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs +6 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs +4 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/utils/is-none.mjs +7 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.mjs +6 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/utils/stagger.mjs +24 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/easing/anticipate.mjs +5 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/easing/back.mjs +9 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/easing/circ.mjs +8 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/easing/cubic-bezier.mjs +18 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/easing/ease.mjs +7 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/easing/modifiers/mirror.mjs +4 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/easing/modifiers/reverse.mjs +4 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/easing/steps.mjs +11 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/easing/utils/create-generator-easing.mjs +13 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/easing/utils/get-easing-for-segment.mjs +8 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/easing/utils/is-bezier-definition.mjs +4 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.mjs +4 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/easing/utils/map.mjs +32 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/frameloop/batcher.mjs +39 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/frameloop/frame.mjs +9 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/frameloop/index-legacy.mjs +7 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/frameloop/render-step.mjs +41 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/frameloop/sync-time.mjs +15 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/motion/features/definitions.mjs +27 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs +8 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/projection/geometry/conversion.mjs +21 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/projection/geometry/models.mjs +8 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/projection/styles/scale-correction.mjs +4 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/projection/utils/measure.mjs +7 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/VisualElement.mjs +226 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.mjs +65 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.mjs +19 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/resize/handle-element.mjs +46 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/resize/handle-window.mjs +23 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/resize/index.mjs +8 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/scroll/index.mjs +46 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/scroll/info.mjs +38 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/scroll/observe.mjs +12 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/scroll/offsets/edge.mjs +17 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/scroll/offsets/index.mjs +26 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/scroll/offsets/inset.mjs +25 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/scroll/offsets/offset.mjs +9 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/scroll/offsets/presets.mjs +21 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/scroll/on-scroll-handler.mjs +23 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/scroll/supports.mjs +5 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/scroll/track.mjs +40 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs +4 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.mjs +31 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.mjs +5 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs +6 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/utils/resolve-element.mjs +12 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.mjs +52 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.mjs +10 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.mjs +24 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.mjs +9 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/value-types/find.mjs +8 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.mjs +4 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/value-types/number-browser.mjs +41 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/value-types/number.mjs +18 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/value-types/test.mjs +4 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/value-types/transform.mjs +31 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.mjs +7 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.mjs +8 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/dom/viewport/index.mjs +25 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.mjs +46 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/html/utils/build-styles.mjs +29 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/html/utils/build-transform.mjs +31 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.mjs +16 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/html/utils/render.mjs +8 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs +12 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/html/utils/transform.mjs +23 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/object/ObjectVisualElement.mjs +37 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/store.mjs +4 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.mjs +40 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.mjs +26 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs +28 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs +4 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/svg/utils/path.mjs +18 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/svg/utils/render.mjs +11 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs +15 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.mjs +11 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.mjs +76 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.mjs +13 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/utils/is-variant-label.mjs +6 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/utils/motion-values.mjs +26 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs +8 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/utils/resolve-variants.mjs +20 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/utils/setters.mjs +18 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/render/utils/variant-props.mjs +13 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/GlobalConfig.mjs +7 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/array.mjs +11 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/clamp.mjs +4 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/delay.mjs +17 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/distance.mjs +9 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/errors.mjs +12 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.mjs +22 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/interpolate.mjs +38 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/is-browser.mjs +4 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/is-numerical-string.mjs +4 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/is-zero-value-string.mjs +4 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/memo.mjs +7 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/mix/color.mjs +29 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/mix/complex.mjs +52 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/mix/immediate.mjs +6 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/mix/index.mjs +8 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/mix/number.mjs +4 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/mix/visibility.mjs +8 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/noop.mjs +4 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/offsets/default.mjs +8 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/offsets/fill.mjs +12 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/offsets/time.mjs +6 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/pipe.mjs +4 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/progress.mjs +7 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/reduced-motion/index.mjs +13 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/reduced-motion/state.mjs +5 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/resolve-value.mjs +5 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/subscription-manager.mjs +29 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/time-conversion.mjs +5 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/transform.mjs +12 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/velocity-per-second.mjs +6 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/warn-once.mjs +7 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/utils/wrap.mjs +7 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/value/index.mjs +210 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/value/types/color/hex.mjs +19 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/value/types/color/hsla.mjs +12 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/value/types/color/index.mjs +11 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/value/types/color/rgba.mjs +16 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/value/types/color/utils.mjs +18 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/value/types/complex/filter.mjs +24 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/value/types/complex/index.mjs +49 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/value/types/numbers/index.mjs +17 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/value/types/numbers/units.mjs +17 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/value/types/utils/color-regex.mjs +4 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/value/types/utils/float-regex.mjs +4 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/value/types/utils/is-nullish.mjs +6 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/value/types/utils/sanitize.mjs +4 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/value/types/utils/single-color-regex.mjs +4 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +9 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/value/use-will-change/is.mjs +7 -0
- package/dist/es/node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/value/utils/is-motion-value.mjs +4 -0
- package/dist/es/node_modules/.pnpm/hey-listen@1.0.8/node_modules/hey-listen/dist/hey-listen.es.mjs +13 -0
- package/dist/es/state/event.mjs +6 -0
- package/dist/es/state/motion-state.mjs +134 -0
- package/dist/es/state/schedule.mjs +22 -0
- package/dist/es/state/style.mjs +93 -0
- package/dist/es/state/transform.mjs +59 -0
- package/dist/es/state/utils.mjs +113 -0
- package/dist/es/utils/createContext.mjs +17 -0
- package/dist/es/utils/events.mjs +8 -0
- package/dist/es/utils/motion-value.mjs +6 -0
- package/dist/es/utils/use-animation-frame.mjs +14 -0
- package/dist/es/utils/use-in-view.mjs +19 -0
- package/dist/es/value/use-combine-values.mjs +22 -0
- package/dist/es/value/use-computed.mjs +13 -0
- package/dist/es/value/use-motion-template.mjs +19 -0
- package/dist/es/value/use-scroll.mjs +47 -0
- package/dist/es/value/use-spring.mjs +39 -0
- package/dist/es/value/use-time.mjs +9 -0
- package/dist/es/value/use-transform.mjs +25 -0
- package/dist/src/animation/index.d.ts +1 -0
- package/dist/src/animation/use-animate.d.ts +8 -0
- package/dist/src/components/Motion.d.ts +3 -3
- package/dist/src/features/events.d.ts +1 -1
- package/dist/src/features/feature-manager.d.ts +9 -0
- package/dist/src/features/feature.d.ts +0 -7
- package/dist/src/features/index.d.ts +2 -1
- package/dist/src/index.d.ts +3 -0
- package/dist/src/state/motion-state.d.ts +1 -1
- package/dist/src/state/utils.d.ts +1 -1
- package/dist/src/types/state.d.ts +3 -2
- package/dist/src/utils/index.d.ts +2 -0
- package/dist/src/utils/use-dom-ref.d.ts +1 -0
- package/dist/src/utils/use-in-view.d.ts +3 -0
- package/package.json +7 -7
- package/dist/index.js +0 -4011
- package/dist/index.umd.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("vue");function qs(e,t){e.indexOf(t)===-1&&e.push(t)}function Wn(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class kn{constructor(){this.subscriptions=[]}add(t){return qs(this.subscriptions,t),()=>Wn(this.subscriptions,t)}notify(t,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function ce(e,t){return t?e*(1e3/t):0}const qe=new Set;function Ot(e,t,n){e||qe.has(t)||(console.warn(t),qe.add(t))}const Zs={skipAnimations:!1,useManualTiming:!1},_=e=>e;function Js(e){let t=new Set,n=new Set,s=!1,i=!1;const r=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){r.has(u)&&(l.schedule(u),e()),u(o)}const l={schedule:(u,c=!1,f=!1)=>{const m=f&&s?t:n;return c&&r.add(u),m.has(u)||m.add(u),u},cancel:u=>{n.delete(u),r.delete(u)},process:u=>{if(o=u,s){i=!0;return}s=!0,[t,n]=[n,t],n.clear(),t.forEach(a),s=!1,i&&(i=!1,l.process(u))}};return l}const rt=["read","resolveKeyframes","update","preRender","render","postRender"],Qs=40;function ti(e,t){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=rt.reduce((y,v)=>(y[v]=Js(r),y),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:f,postRender:h}=o,m=()=>{const y=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(y-i.timestamp,Qs),1),i.timestamp=y,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),f.process(i),h.process(i),i.isProcessing=!1,n&&t&&(s=!1,e(m))},g=()=>{n=!0,s=!0,i.isProcessing||e(m)};return{schedule:rt.reduce((y,v)=>{const V=o[v];return y[v]=(x,T=!1,M=!1)=>(n||g(),V.schedule(x,T,M)),y},{}),cancel:y=>{for(let v=0;v<rt.length;v++)o[rt[v]].cancel(y)},state:i,steps:o}}const{schedule:E,cancel:R,state:X,steps:ei}=ti(typeof requestAnimationFrame<"u"?requestAnimationFrame:_,!0);let wt;function ni(){wt=void 0}const N={now:()=>(wt===void 0&&N.set(X.isProcessing||Zs.useManualTiming?X.timestamp:performance.now()),wt),set:e=>{wt=e,queueMicrotask(ni)}},Ze=30,si=e=>!isNaN(parseFloat(e)),k={current:void 0};class Gn{constructor(t,n={}){this.version="11.11.11",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const r=N.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=N.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=si(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Ot(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new kn);const s=this.events[t].add(n);return t==="change"?()=>{s(),E.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return k.current&&k.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=N.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ze)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ze);return ce(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function F(e,t){return new Gn(e,t)}function Ft(e){let t;return()=>(t===void 0&&(t=e()),t)}const Un=Ft(()=>window.ScrollTimeline!==void 0);class fe{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let s=0;s<this.animations.length;s++)this.animations[s][t]=n}attachTimeline(t,n){const s=this.animations.map(i=>Un()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{s.forEach((i,r)=>{i&&i(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const O=e=>e*1e3,I=e=>e/1e3,ii=5;function zn(e,t,n){const s=Math.max(t-ii,0);return ce(n-e(s),t-s)}exports.warning=_;exports.invariant=_;process.env.NODE_ENV!=="production"&&(exports.warning=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},exports.invariant=(e,t)=>{if(!e)throw new Error(t)});const U=(e,t,n)=>n>t?t:n<e?e:n,Wt=.001,ri=.01,Je=10,oi=.05,ai=1;function li({duration:e=800,bounce:t=.25,velocity:n=0,mass:s=1}){let i,r;exports.warning(e<=O(Je),"Spring duration must be 10 seconds or less");let o=1-t;o=U(oi,ai,o),e=U(ri,Je,I(e)),o<1?(i=u=>{const c=u*o,f=c*e,h=c-n,m=Xt(u,o),g=Math.exp(-f);return Wt-h/m*g},r=u=>{const f=u*o*e,h=f*n+n,m=Math.pow(o,2)*Math.pow(u,2)*e,g=Math.exp(-f),S=Xt(Math.pow(u,2),o);return(-i(u)+Wt>0?-1:1)*((h-m)*g)/S}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Wt+c*f},r=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=ci(i,r,a);if(e=O(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:e}}}const ui=12;function ci(e,t,n){let s=n;for(let i=1;i<ui;i++)s=s-e(s)/t(s);return s}function Xt(e,t){return e*Math.sqrt(1-t*t)}const fi=["duration","bounce"],hi=["stiffness","damping","mass"];function Qe(e,t){return t.some(n=>e[n]!==void 0)}function di(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Qe(e,hi)&&Qe(e,fi)){const n=li(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Dt({keyframes:e,restDelta:t,restSpeed:n,...s}){const i=e[0],r=e[e.length-1],o={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:c,velocity:f,isResolvedFromDuration:h}=di({...s,velocity:-I(s.velocity||0)}),m=f||0,g=l/(2*Math.sqrt(a*u)),S=r-i,w=I(Math.sqrt(a/u)),y=Math.abs(S)<5;n||(n=y?.01:2),t||(t=y?.005:.5);let v;if(g<1){const V=Xt(w,g);v=x=>{const T=Math.exp(-g*w*x);return r-T*((m+g*w*S)/V*Math.sin(V*x)+S*Math.cos(V*x))}}else if(g===1)v=V=>r-Math.exp(-w*V)*(S+(m+w*S)*V);else{const V=w*Math.sqrt(g*g-1);v=x=>{const T=Math.exp(-g*w*x),M=Math.min(V*x,300);return r-T*((m+g*w*S)*Math.sinh(M)+V*S*Math.cosh(M))/V}}return{calculatedDuration:h&&c||null,next:V=>{const x=v(V);if(h)o.done=V>=c;else{let T=0;g<1&&(T=V===0?O(m):zn(v,V,x));const M=Math.abs(T)<=n,D=Math.abs(r-x)<=t;o.done=M&&D}return o.value=o.done?r:x,o}}}const qt=2e4;function jn(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<qt;)t+=n,s=e.next(t);return t>=qt?1/0:t}function Hn(e,t=100,n){const s=n({...e,keyframes:[0,t]}),i=Math.min(jn(s),qt);return{type:"keyframes",ease:r=>s.next(i*r).value/t,duration:I(i)}}const pt=(e,t,n)=>e+(t-e)*n,tt=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s};function Yn(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const i=tt(0,t,s);e.push(pt(n,1,i))}}function he(e){const t=[0];return Yn(t,e.length-1),t}const C=e=>!!(e&&e.getVelocity);function Bt(e,t,n){var s;if(typeof e=="string"){let i=document;t&&(exports.invariant(!!t.current,"Scope provided, but no element detected."),i=t.current),n?((s=n[e])!==null&&s!==void 0||(n[e]=i.querySelectorAll(e)),e=n[e]):e=i.querySelectorAll(e)}else e instanceof Element&&(e=[e]);return Array.from(e||[])}function de(e){return typeof e=="object"&&!Array.isArray(e)}function Xn(e,t,n,s){return typeof e=="string"&&de(t)?Bt(e,n,s):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function mt(e){return typeof e=="function"}function tn(e,t,n,s){var i;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:(i=s.get(t))!==null&&i!==void 0?i:e}const qn=(e,t,n)=>{const s=t-e;return((n-e)%s+s)%s+e},Zn=e=>Array.isArray(e)&&typeof e[0]!="number";function pi(e,t){return Zn(e)?e[qn(0,e.length,t)]:e}function mi(e,t,n){for(let s=0;s<e.length;s++){const i=e[s];i.at>t&&i.at<n&&(Wn(e,i),s--)}}function gi(e,t,n,s,i,r){mi(e,i,r);for(let o=0;o<t.length;o++)e.push({value:t[o],at:pt(i,r,s[o]),easing:pi(n,o)})}function yi(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const vi="easeInOut";function bi(e,{defaultTransition:t={},...n}={},s,i){const r=t.duration||.3,o=new Map,a=new Map,l={},u=new Map;let c=0,f=0,h=0;for(let m=0;m<e.length;m++){const g=e[m];if(typeof g=="string"){u.set(g,f);continue}else if(!Array.isArray(g)){u.set(g.name,tn(f,g.at,c,u));continue}let[S,w,y={}]=g;y.at!==void 0&&(f=tn(f,y.at,c,u));let v=0;const V=(x,T,M,D=0,b=0)=>{const A=wi(x),{delay:B=0,times:j=he(A),type:$t="keyframes",...Ys}=T;let{ease:$e=t.ease||"easeOut",duration:L}=T;const We=typeof B=="function"?B(D,b):B,ke=A.length,Ge=mt($t)?$t:i==null?void 0:i[$t];if(ke<=2&&Ge){let He=100;if(ke===2&&Vi(A)){const Xs=A[1]-A[0];He=Math.abs(Xs)}const Ye={...Ys};L!==void 0&&(Ye.duration=O(L));const Xe=Hn(Ye,He,Ge);$e=Xe.ease,L=Xe.duration}L??(L=r);const Ue=f+We,ze=Ue+L;j.length===1&&j[0]===0&&(j[1]=1);const je=j.length-A.length;je>0&&Yn(j,je),A.length===1&&A.unshift(null),gi(M,A,$e,j,Ue,ze),v=Math.max(We+L,v),h=Math.max(ze,h)};if(C(S)){const x=en(S,a);V(w,y,nn("default",x))}else{const x=Xn(S,w,s,l),T=x.length;for(let M=0;M<T;M++){w=w,y=y;const D=x[M],b=en(D,a);for(const A in w)V(w[A],Si(y,A),nn(A,b),M,T)}}c=f,f+=v}return a.forEach((m,g)=>{for(const S in m){const w=m[S];w.sort(yi);const y=[],v=[],V=[];for(let T=0;T<w.length;T++){const{at:M,value:D,easing:b}=w[T];y.push(D),v.push(tt(0,h,M)),V.push(b||"easeOut")}v[0]!==0&&(v.unshift(0),y.unshift(y[0]),V.unshift(vi)),v[v.length-1]!==1&&(v.push(1),y.push(null)),o.has(g)||o.set(g,{keyframes:{},transition:{}});const x=o.get(g);x.keyframes[S]=y,x.transition[S]={...t,duration:h,ease:V,times:v,...n}}}),o}function en(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function nn(e,t){return t[e]||(t[e]=[]),t[e]}function wi(e){return Array.isArray(e)?e:[e]}function Si(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const Ti=e=>typeof e=="number",Vi=e=>e.every(Ti),K=new WeakMap,gt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],q=new Set(gt),xi={type:"spring",stiffness:500,damping:25,restSpeed:10},Ai=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Mi={type:"keyframes",duration:.8},Ei={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Pi=(e,{keyframes:t})=>t.length>2?Mi:q.has(e)?e.startsWith("scale")?Ai(t[1]):xi:Ei;function pe(e,t){return e?e[t]||e.default||e:void 0}const Ci=e=>e!==null;function yt(e,{repeat:t,repeatType:n="loop"},s){const i=e.filter(Ci),r=t&&n!=="loop"&&t%2===1?0:i.length-1;return!r||s===void 0?i[r]:s}const Jn=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Oi=1e-7,Fi=12;function Di(e,t,n,s,i){let r,o,a=0;do o=t+(n-t)/2,r=Jn(o,s,i)-e,r>0?n=o:t=o;while(Math.abs(r)>Oi&&++a<Fi);return o}function et(e,t,n,s){if(e===t&&n===s)return _;const i=r=>Di(r,0,1,e,n);return r=>r===0||r===1?r:Jn(i(r),t,s)}const me=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ge=e=>t=>1-e(1-t),ye=et(.33,1.53,.69,.99),It=ge(ye),ve=me(It),be=e=>(e*=2)<1?.5*It(e):.5*(2-Math.pow(2,-10*(e-1))),Rt=e=>1-Math.sin(Math.acos(e)),Qn=ge(Rt),we=me(Rt),ts=e=>/^0[^.\s]+$/u.test(e);function Bi(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ts(e):!0}const es=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ns=e=>t=>typeof t=="string"&&t.startsWith(e),ss=ns("--"),Ii=ns("var(--"),Se=e=>Ii(e)?Ri.test(e.split("/*")[0].trim()):!1,Ri=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Li=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ni(e){const t=Li.exec(e);if(!t)return[,];const[,n,s,i]=t;return[`--${n??s}`,i]}const Ki=4;function is(e,t,n=1){exports.invariant(n<=Ki,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[s,i]=Ni(e);if(!s)return;const r=window.getComputedStyle(t).getPropertyValue(s);if(r){const o=r.trim();return es(o)?parseFloat(o):o}return Se(i)?is(i,t,n+1):i}const nt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ut={...nt,transform:e=>U(0,1,e)},bt={...nt,default:1},vt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),$=vt("deg"),J=vt("%"),p=vt("px"),_i=vt("vh"),$i=vt("vw"),sn={...J,parse:e=>J.parse(e)/100,transform:e=>J.transform(e*100)},Wi=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),rn=e=>e===nt||e===p,on=(e,t)=>parseFloat(e.split(", ")[t]),an=(e,t)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return on(i[1],t);{const r=s.match(/^matrix\((.+)\)$/u);return r?on(r[1],e):0}},ki=new Set(["x","y","z"]),Gi=gt.filter(e=>!ki.has(e));function Ui(e){const t=[];return Gi.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const Q={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:an(4,13),y:an(5,14)};Q.translateX=Q.x;Q.translateY=Q.y;const rs=e=>t=>t.test(e),zi={test:e=>e==="auto",parse:e=>e},os=[nt,p,J,$,$i,_i,zi],ln=e=>os.find(rs(e)),Y=new Set;let Zt=!1,Jt=!1;function as(){if(Jt){const e=Array.from(Y).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const i=Ui(s);i.length&&(n.set(s,i),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{var a;(a=s.getValue(r))===null||a===void 0||a.set(o)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Jt=!1,Zt=!1,Y.forEach(e=>e.complete()),Y.clear()}function ls(){Y.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Jt=!0)})}function ji(){ls(),as()}class Te{constructor(t,n,s,i,r,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Y.add(this),Zt||(Zt=!0,E.read(ls),E.resolveKeyframes(as))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:i}=this;for(let r=0;r<t.length;r++)if(t[r]===null)if(r===0){const o=i==null?void 0:i.get(),a=t[t.length-1];if(o!==void 0)t[0]=o;else if(s&&n){const l=s.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),i&&o===void 0&&i.set(t[0])}else t[r]=t[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Y.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Y.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const at=e=>Math.round(e*1e5)/1e5,Ve=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Hi(e){return e==null}const Yi=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,xe=(e,t)=>n=>!!(typeof n=="string"&&Yi.test(n)&&n.startsWith(e)||t&&!Hi(n)&&Object.prototype.hasOwnProperty.call(n,t)),us=(e,t,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(Ve);return{[e]:parseFloat(i),[t]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Xi=e=>U(0,255,e),kt={...nt,transform:e=>Math.round(Xi(e))},H={test:xe("rgb","red"),parse:us("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+kt.transform(e)+", "+kt.transform(t)+", "+kt.transform(n)+", "+at(ut.transform(s))+")"};function qi(e){let t="",n="",s="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,s+=s,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Qt={test:xe("#"),parse:qi,transform:H.transform},Z={test:xe("hsl","hue"),parse:us("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+J.transform(at(t))+", "+J.transform(at(n))+", "+at(ut.transform(s))+")"},P={test:e=>H.test(e)||Qt.test(e)||Z.test(e),parse:e=>H.test(e)?H.parse(e):Z.test(e)?Z.parse(e):Qt.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?H.transform(e):Z.transform(e)},Zi=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ji(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ve))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Zi))===null||n===void 0?void 0:n.length)||0)>0}const cs="number",fs="color",Qi="var",tr="var(",un="${}",er=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ct(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=t.replace(er,l=>(P.test(l)?(s.color.push(r),i.push(fs),n.push(P.parse(l))):l.startsWith(tr)?(s.var.push(r),i.push(Qi),n.push(l)):(s.number.push(r),i.push(cs),n.push(parseFloat(l))),++r,un)).split(un);return{values:n,split:a,indexes:s,types:i}}function hs(e){return ct(e).values}function ds(e){const{split:t,types:n}=ct(e),s=t.length;return i=>{let r="";for(let o=0;o<s;o++)if(r+=t[o],i[o]!==void 0){const a=n[o];a===cs?r+=at(i[o]):a===fs?r+=P.transform(i[o]):r+=i[o]}return r}}const nr=e=>typeof e=="number"?0:e;function sr(e){const t=hs(e);return ds(e)(t.map(nr))}const st={test:Ji,parse:hs,createTransformer:ds,getAnimatableNone:sr},ir=new Set(["brightness","contrast","saturate","opacity"]);function rr(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(Ve)||[];if(!s)return e;const i=n.replace(s,"");let r=ir.has(t)?1:0;return s!==n&&(r*=100),t+"("+r+i+")"}const or=/\b([a-z-]*)\(.*?\)/gu,te={...st,getAnimatableNone:e=>{const t=e.match(or);return t?t.map(rr).join(" "):e}},ee={borderWidth:p,borderTopWidth:p,borderRightWidth:p,borderBottomWidth:p,borderLeftWidth:p,borderRadius:p,radius:p,borderTopLeftRadius:p,borderTopRightRadius:p,borderBottomRightRadius:p,borderBottomLeftRadius:p,width:p,maxWidth:p,height:p,maxHeight:p,top:p,right:p,bottom:p,left:p,padding:p,paddingTop:p,paddingRight:p,paddingBottom:p,paddingLeft:p,margin:p,marginTop:p,marginRight:p,marginBottom:p,marginLeft:p,backgroundPositionX:p,backgroundPositionY:p},ar={rotate:$,rotateX:$,rotateY:$,rotateZ:$,scale:bt,scaleX:bt,scaleY:bt,scaleZ:bt,skew:$,skewX:$,skewY:$,distance:p,translateX:p,translateY:p,translateZ:p,x:p,y:p,z:p,perspective:p,transformPerspective:p,opacity:ut,originX:sn,originY:sn,originZ:p},cn={...nt,transform:Math.round},Ae={...ee,...ar,zIndex:cn,size:p,fillOpacity:ut,strokeOpacity:ut,numOctaves:cn},lr={...Ae,color:P,backgroundColor:P,outlineColor:P,fill:P,stroke:P,borderColor:P,borderTopColor:P,borderRightColor:P,borderBottomColor:P,borderLeftColor:P,filter:te,WebkitFilter:te},Me=e=>lr[e];function ps(e,t){let n=Me(e);return n!==te&&(n=st),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const ur=new Set(["auto","none","0"]);function cr(e,t,n){let s=0,i;for(;s<e.length&&!i;){const r=e[s];typeof r=="string"&&!ur.has(r)&&ct(r).values.length&&(i=e[s]),s++}if(i&&n)for(const r of t)e[r]=ps(n,i)}class ms extends Te{constructor(t,n,s,i,r){super(t,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),Se(u))){const c=is(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Wi.has(s)||t.length!==2)return;const[i,r]=t,o=ln(i),a=ln(r);if(o!==a)if(rn(o)&&rn(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let i=0;i<t.length;i++)Bi(t[i])&&s.push(i);s.length&&cr(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Q[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(s,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:s,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const r=n.getValue(s);r&&r.jump(this.measuredOrigin,!1);const o=i.length-1,a=i[o];i[o]=Q[s](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const fn=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(st.test(e)||e==="0")&&!e.startsWith("url("));function fr(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function hr(e,t,n,s){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const r=e[e.length-1],o=fn(i,t),a=fn(r,t);return exports.warning(o===a,`You are trying to animate ${t} from "${i}" to "${r}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${r} via the \`style\` property.`),!o||!a?!1:fr(e)||(n==="spring"||mt(n))&&s}const dr=40;class gs{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=N.now(),this.options={autoplay:t,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>dr?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ji(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=N.now(),this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:r,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!hr(t,s,i,r))if(o)this.options.duration=0;else{l==null||l(yt(t,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function ne({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],h={done:!1,value:f},m=b=>a!==void 0&&b<a||l!==void 0&&b>l,g=b=>a===void 0?l:l===void 0||Math.abs(a-b)<Math.abs(l-b)?a:l;let S=n*t;const w=f+S,y=o===void 0?w:o(w);y!==w&&(S=y-f);const v=b=>-S*Math.exp(-b/s),V=b=>y+v(b),x=b=>{const A=v(b),B=V(b);h.done=Math.abs(A)<=u,h.value=h.done?y:B};let T,M;const D=b=>{m(h.value)&&(T=b,M=Dt({keyframes:[h.value,g(h.value)],velocity:zn(V,b,h.value),damping:i,stiffness:r,restDelta:u,restSpeed:c}))};return D(0),{calculatedDuration:null,next:b=>{let A=!1;return!M&&T===void 0&&(A=!0,x(b),D(b)),T!==void 0&&b>=T?M.next(b-T):(!A&&x(b),h)}}}const ys=et(.42,0,1,1),vs=et(0,0,.58,1),Ee=et(.42,0,.58,1),Pe=e=>Array.isArray(e)&&typeof e[0]=="number",hn={linear:_,easeIn:ys,easeInOut:Ee,easeOut:vs,circIn:Rt,circInOut:we,circOut:Qn,backIn:It,backInOut:ve,backOut:ye,anticipate:be},se=e=>{if(Pe(e)){exports.invariant(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,s,i]=e;return et(t,n,s,i)}else if(typeof e=="string")return exports.invariant(hn[e]!==void 0,`Invalid easing type '${e}'`),hn[e];return e},pr=(e,t)=>n=>t(e(n)),Lt=(...e)=>e.reduce(pr);function Gt(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function mr({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let i=0,r=0,o=0;if(!t)i=r=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Gt(l,a,e+1/3),r=Gt(l,a,e),o=Gt(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function xt(e,t){return n=>n>0?t:e}const Ut=(e,t,n)=>{const s=e*e,i=n*(t*t-s)+s;return i<0?0:Math.sqrt(i)},gr=[Qt,H,Z],yr=e=>gr.find(t=>t.test(e));function dn(e){const t=yr(e);if(exports.warning(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Z&&(n=mr(n)),n}const pn=(e,t)=>{const n=dn(e),s=dn(t);if(!n||!s)return xt(e,t);const i={...n};return r=>(i.red=Ut(n.red,s.red,r),i.green=Ut(n.green,s.green,r),i.blue=Ut(n.blue,s.blue,r),i.alpha=pt(n.alpha,s.alpha,r),H.transform(i))},ie=new Set(["none","hidden"]);function vr(e,t){return ie.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function br(e,t){return n=>pt(e,t,n)}function Ce(e){return typeof e=="number"?br:typeof e=="string"?Se(e)?xt:P.test(e)?pn:Tr:Array.isArray(e)?bs:typeof e=="object"?P.test(e)?pn:wr:xt}function bs(e,t){const n=[...e],s=n.length,i=e.map((r,o)=>Ce(r)(r,t[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function wr(e,t){const n={...e,...t},s={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(s[i]=Ce(e[i])(e[i],t[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function Sr(e,t){var n;const s=[],i={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const o=t.types[r],a=e.indexes[o][i[o]],l=(n=e.values[a])!==null&&n!==void 0?n:0;s[r]=l,i[o]++}return s}const Tr=(e,t)=>{const n=st.createTransformer(t),s=ct(e),i=ct(t);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?ie.has(e)&&!i.values.length||ie.has(t)&&!s.values.length?vr(e,t):Lt(bs(Sr(s,i),i.values),n):(exports.warning(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),xt(e,t))};function Oe(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?pt(e,t,n):Ce(e)(e,t)}function Vr(e,t,n){const s=[],i=n||Oe,r=e.length-1;for(let o=0;o<r;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||_:t;a=Lt(l,a)}s.push(a)}return s}function Nt(e,t,{clamp:n=!0,ease:s,mixer:i}={}){const r=e.length;if(exports.invariant(r===t.length,"Both input and output ranges must be the same length"),r===1)return()=>t[0];if(r===2&&e[0]===e[1])return()=>t[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=Vr(t,s,i),a=o.length,l=u=>{let c=0;if(a>1)for(;c<e.length-2&&!(u<e[c+1]);c++);const f=tt(e[c],e[c+1],u);return o[c](f)};return n?u=>l(U(e[0],e[r-1],u)):l}function xr(e,t){return e.map(n=>n*t)}function Ar(e,t){return e.map(()=>t||Ee).splice(0,e.length-1)}function ft({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const i=Zn(s)?s.map(se):se(s),r={done:!1,value:t[0]},o=xr(n&&n.length===t.length?n:he(t),e),a=Nt(o,t,{ease:Array.isArray(i)?i:Ar(t,i)});return{calculatedDuration:e,next:l=>(r.value=a(l),r.done=l>=e,r)}}const Mr=e=>{const t=({timestamp:n})=>e(n);return{start:()=>E.update(t,!0),stop:()=>R(t),now:()=>X.isProcessing?X.timestamp:N.now()}},Er={decay:ne,inertia:ne,tween:ft,keyframes:ft,spring:Dt},Pr=e=>e/100;class Kt extends gs{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:s,element:i,keyframes:r}=this.options,o=(i==null?void 0:i.KeyframeResolver)||Te,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(r,a,n,s,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=this.options,a=mt(n)?n:Er[n]||ft;let l,u;a!==ft&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&exports.invariant(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),l=Lt(Pr,Oe(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});r==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=jn(c));const{calculatedDuration:f}=c,h=f+i,m=h*(s+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:h,totalDuration:m}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:s}=this;if(!s){const{keyframes:b}=this.options;return{done:!0,value:b[b.length-1]}}const{finalKeyframe:i,generator:r,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=s;if(this.startTime===null)return r.next(0);const{delay:h,repeat:m,repeatType:g,repeatDelay:S,onUpdate:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const y=this.currentTime-h*(this.speed>=0?1:-1),v=this.speed>=0?y<0:y>c;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let V=this.currentTime,x=r;if(m){const b=Math.min(this.currentTime,c)/f;let A=Math.floor(b),B=b%1;!B&&b>=1&&(B=1),B===1&&A--,A=Math.min(A,m+1),!!(A%2)&&(g==="reverse"?(B=1-B,S&&(B-=S/f)):g==="mirror"&&(x=o)),V=U(0,1,B)*f}const T=v?{done:!1,value:l[0]}:x.next(V);a&&(T.value=a(T.value));let{done:M}=T;!v&&u!==null&&(M=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return D&&i!==void 0&&(T.value=yt(l,this.options,i)),w&&w(T.value),D&&this.finish(),T}get duration(){const{resolved:t}=this;return t?I(t.calculatedDuration):0}get time(){return I(this.currentTime)}set time(t){t=O(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=I(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Mr,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}function Cr(e){return new Kt(e)}const Or=new Set(["opacity","clipPath","filter","transform"]),Fr=10,Dr=(e,t)=>{let n="";const s=Math.max(Math.round(t/Fr),2);for(let i=0;i<s;i++)n+=e(tt(0,s-1,i))+", ";return`linear(${n.substring(0,n.length-2)})`},Br={linearEasing:void 0};function Ir(e,t){const n=Ft(e);return()=>{var s;return(s=Br[t])!==null&&s!==void 0?s:n()}}const ht=Ir(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function ws(e){return!!(typeof e=="function"&&ht()||!e||typeof e=="string"&&(e in re||ht())||Pe(e)||Array.isArray(e)&&e.every(ws))}const ot=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,re={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ot([0,.65,.55,1]),circOut:ot([.55,0,1,.45]),backIn:ot([.31,.01,.66,-.59]),backOut:ot([.33,1.53,.69,.99])};function Ss(e,t){if(e)return typeof e=="function"&&ht()?Dr(e,t):Pe(e)?ot(e):Array.isArray(e)?e.map(n=>Ss(n,t)||re.easeOut):re[e]}function Ts(e,t,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=Ss(a,i);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:s,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"})}function At(e,t){e.timeline=t,e.onfinish=null}const Vs=Ft(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Mt=10,Rr=2e4;function Lr(e){return mt(e.type)||e.type==="spring"||!ws(e.ease)}function Nr(e,t){const n=new Kt({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:e[0]};const i=[];let r=0;for(;!s.done&&r<Rr;)s=n.sample(r),i.push(s.value),r+=Mt;return{times:void 0,keyframes:i,duration:r-Mt,ease:"linear"}}const xs={anticipate:be,backInOut:ve,circInOut:we};function Kr(e){return e in xs}class mn extends gs{constructor(t){super(t);const{name:n,motionValue:s,element:i,keyframes:r}=this.options;this.resolver=new ms(r,(o,a)=>this.onKeyframesResolved(o,a),n,s,i),this.resolver.scheduleResolve()}initPlayback(t,n){var s;let{duration:i=300,times:r,ease:o,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((s=l.owner)===null||s===void 0)&&s.current))return!1;if(typeof o=="string"&&ht()&&Kr(o)&&(o=xs[o]),Lr(this.options)){const{onComplete:h,onUpdate:m,motionValue:g,element:S,...w}=this.options,y=Nr(t,w);t=y.keyframes,t.length===1&&(t[1]=t[0]),i=y.duration,r=y.times,o=y.ease,a="keyframes"}const f=Ts(l.owner.current,u,t,{...this.options,duration:i,times:r,ease:o});return f.startTime=c??this.calcStartTime(),this.pendingTimeline?(At(f,this.pendingTimeline),this.pendingTimeline=void 0):f.onfinish=()=>{const{onComplete:h}=this.options;l.set(yt(t,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:f,duration:i,times:r,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return I(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return I(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=O(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return _;const{animation:s}=n;At(s,t)}return _}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:s,duration:i,type:r,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:f,element:h,...m}=this.options,g=new Kt({...m,keyframes:s,duration:i,type:r,ease:o,times:a,isGenerator:!0}),S=O(this.time);u.setWithVelocity(g.sample(S-Mt).value,g.sample(S).value,Mt)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:s,repeatDelay:i,repeatType:r,damping:o,type:a}=t;return Vs()&&s&&Or.has(s)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&r!=="mirror"&&o!==0&&a!=="inertia"}}function _r({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const As=(e,t,n,s={},i,r)=>o=>{const a=pe(s,e)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-O(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:r?void 0:i};_r(a)||(c={...c,...Pi(e,c)}),c.duration&&(c.duration=O(c.duration)),c.repeatDelay&&(c.repeatDelay=O(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),f&&!r&&t.get()!==void 0){const h=yt(c.keyframes,a);if(h!==void 0)return E.update(()=>{c.onUpdate(h),c.onComplete()}),new fe([])}return!r&&mn.supports(c)?new mn(c):new Kt(c)},$r=e=>Array.isArray(e),Wr=e=>$r(e)?e[e.length-1]||0:e;function gn(e){const t=[{},{}];return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function Ms(e,t,n,s){if(typeof t=="function"){const[i,r]=gn(s);t=t(n!==void 0?n:e.custom,i,r)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,r]=gn(s);t=t(n!==void 0?n:e.custom,i,r)}return t}function kr(e,t,n){const s=e.getProps();return Ms(s,t,s.custom,e)}function Gr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,F(n))}function Ur(e,t){const n=kr(e,t);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=Wr(r[o]);Gr(e,o,a)}}const Fe=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),zr="framerAppearId",jr="data-"+Fe(zr);function Hr(e){return e.props[jr]}function Yr(e){return!!(C(e)&&e.add)}function Xr(e,t){const n=e.getValue("willChange");if(Yr(n))return n.add(t)}function qr({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function Zr(e,t,{delay:n=0,transitionOverride:s,type:i}={}){var r;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;s&&(o=s);const u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const f in l){const h=e.getValue(f,(r=e.latestValues[f])!==null&&r!==void 0?r:null),m=l[f];if(m===void 0||c&&qr(c,f))continue;const g={delay:n,...pe(o||{},f)};let S=!1;if(window.MotionHandoffAnimation){const y=Hr(e);if(y){const v=window.MotionHandoffAnimation(y,f,E);v!==null&&(g.startTime=v,S=!0)}}Xr(e,f),h.start(As(f,h,m,e.shouldReduceMotion&&q.has(f)?{type:!1}:g,e,S));const w=h.animation;w&&u.push(w)}return a&&Promise.all(u).then(()=>{E.update(()=>{a&&Ur(e,a)})}),u}function Jr(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Qr={};function to(e,{layout:t,layoutId:n}){return q.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Qr[e]||e==="opacity")}function Es(e,t,n){var s;const{style:i}=e,r={};for(const o in i)(C(i[o])||t.style&&C(t.style[o])||to(o,e)||((s=n==null?void 0:n.getValue(o))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(r[o]=i[o]);return r}function eo(e,t,n){const s=Es(e,t,n);for(const i in e)if(C(e[i])||C(t[i])){const r=gt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=e[i]}return s}const no=typeof window<"u",oe={current:null},Ps={current:!1};function so(){if(Ps.current=!0,!!no)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>oe.current=e.matches;e.addListener(t),t()}else oe.current=!1}function io(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ro(e){return typeof e=="string"||Array.isArray(e)}const oo=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ao=["initial",...oo];function Cs(e){return io(e.animate)||ao.some(t=>ro(e[t]))}function lo(e){return!!(Cs(e)||e.variants)}function uo(e,t,n){for(const s in t){const i=t[s],r=n[s];if(C(i))e.addValue(s,i),process.env.NODE_ENV==="development"&&Ot(i.version==="11.11.11",`Attempting to mix Framer Motion versions ${i.version} with 11.11.11 may not work as expected.`);else if(C(r))e.addValue(s,F(i,{owner:e}));else if(r!==i)if(e.hasValue(s)){const o=e.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(s);e.addValue(s,F(o!==void 0?o:i,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const yn={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ae={};for(const e in yn)ae[e]={isEnabled:t=>yn[e].some(n=>!!t[n])};const co=[...os,P,st],fo=e=>co.find(rs(e)),vn=()=>({min:0,max:0}),De=()=>({x:vn(),y:vn()}),bn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Os{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Te,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=N.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,E.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=Cs(n),this.isVariantNode=lo(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const m=f[h];l[h]!==void 0&&C(m)&&m.set(l[h],!1)}}mount(t){this.current=t,K.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),Ps.current||so(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:oe.current,process.env.NODE_ENV!=="production"&&Ot(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){K.delete(this.current),this.projection&&this.projection.unmount(),R(this.notifyUpdate),R(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=q.has(t),i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&E.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),r=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),r(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ae){const n=ae[t];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[t]&&i&&s(this.props)&&(this.features[t]=new i(this)),this.features[t]){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):De()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<bn.length;s++){const i=bn[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=t[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=uo(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&n!==void 0&&(s=F(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){var s;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(s=this.getBaseTargetFromProps(this.props,t))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(es(i)||ts(i))?i=parseFloat(i):!fo(i)&&st.test(n)&&(i=ps(t,n)),this.setBaseTarget(t,C(i)?i.get():i)),C(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:s}=this.props;let i;if(typeof s=="string"||typeof s=="object"){const o=Ms(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(s&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!C(r)?r:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new kn),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Fs extends Os{constructor(){super(...arguments),this.KeyframeResolver=ms}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}}const Ds=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ho={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},po=gt.length;function mo(e,t,n){let s="",i=!0;for(let r=0;r<po;r++){const o=gt[r],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=Ds(a,Ae[o]);if(!l){i=!1;const c=ho[o]||o;s+=`${c}(${u}) `}n&&(t[o]=u)}}return s=s.trim(),n?s=n(t,i?"":s):i&&(s="none"),s}function Bs(e,t,n){const{style:s,vars:i,transformOrigin:r}=e;let o=!1,a=!1;for(const l in t){const u=t[l];if(q.has(l)){o=!0;continue}else if(ss(l)){i[l]=u;continue}else{const c=Ds(u,Ae[l]);l.startsWith("origin")?(a=!0,r[l]=c):s[l]=c}}if(t.transform||(o||n?s.transform=mo(t,e.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=r;s.transformOrigin=`${l} ${u} ${c}`}}function wn(e,t,n){return typeof e=="string"?e:p.transform(t+n*e)}function go(e,t,n){const s=wn(t,e.x,e.width),i=wn(n,e.y,e.height);return`${s} ${i}`}const yo={offset:"stroke-dashoffset",array:"stroke-dasharray"},vo={offset:"strokeDashoffset",array:"strokeDasharray"};function bo(e,t,n=1,s=0,i=!0){e.pathLength=1;const r=i?yo:vo;e[r.offset]=p.transform(-s);const o=p.transform(t),a=p.transform(n);e[r.array]=`${o} ${a}`}function wo(e,{attrX:t,attrY:n,attrScale:s,originX:i,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},c,f){if(Bs(e,u,f),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:m,dimensions:g}=e;h.transform&&(g&&(m.transform=h.transform),delete h.transform),g&&(i!==void 0||r!==void 0||m.transform)&&(m.transformOrigin=go(g,i!==void 0?i:.5,r!==void 0?r:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),o!==void 0&&bo(h,o,a,l,!1)}const Is=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Rs(e,{style:t,vars:n},s,i){Object.assign(e.style,t,i&&i.getProjectionStyles(s));for(const r in n)e.style.setProperty(r,n[r])}function So(e,t,n,s){Rs(e,t,void 0,s);for(const i in t.attrs)e.setAttribute(Is.has(i)?i:Fe(i),t.attrs[i])}const To=e=>typeof e=="string"&&e.toLowerCase()==="svg";class Vo extends Fs{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=De}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(q.has(n)){const s=Me(n);return s&&s.default||0}return n=Is.has(n)?n:Fe(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return eo(t,n,s)}build(t,n,s){wo(t,n,this.isSVGTag,s.transformTemplate)}renderInstance(t,n,s,i){So(t,n,s,i)}mount(t){this.isSVGTag=To(t.tagName),super.mount(t)}}function xo({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function Ao(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Mo(e,t){return xo(Ao(e.getBoundingClientRect(),t))}function Eo(e){return window.getComputedStyle(e)}class Po extends Fs{constructor(){super(...arguments),this.type="html",this.renderInstance=Rs}readValueFromInstance(t,n){if(q.has(n)){const s=Me(n);return s&&s.default||0}else{const s=Eo(t),i=(ss(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Mo(t,n)}build(t,n,s){Bs(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return Es(t,n,s)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;C(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Co(e,t){return e in t}class Oo extends Os{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(Co(n,t)){const s=t[n];if(typeof s=="string"||typeof s=="number")return s}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return De()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}function Ls(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Jr(e)?new Vo(t):new Po(t);n.mount(e),K.set(e,n)}function Fo(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Oo(t);n.mount(e),K.set(e,n)}function Do(e,t,n){const s=C(e)?e:F(e);return s.start(As("",s,t,n)),s.animation}function Bo(e,t){return C(e)||typeof e=="number"||typeof e=="string"&&!de(t)}function Ns(e,t,n,s){const i=[];if(Bo(e,t))i.push(Do(e,de(t)&&t.default||t,n&&(n.default||n)));else{const r=Xn(e,t,s),o=r.length;exports.invariant(!!o,"No valid elements provided.");for(let a=0;a<o;a++){const l=r[a],u=l instanceof Element?Ls:Fo;K.has(l)||u(l);const c=K.get(l),f={...n};"delay"in f&&typeof f.delay=="function"&&(f.delay=f.delay(a,o)),i.push(...Zr(c,{...t,transition:f},{}))}}return i}function Io(e,t,n){const s=[];return bi(e,t,n,{spring:Dt}).forEach(({keyframes:r,transition:o},a)=>{s.push(...Ns(a,r,o))}),s}function Ro(e){return Array.isArray(e)&&Array.isArray(e[0])}function Be(e){function t(n,s,i){let r=[];Ro(n)?r=Io(n,s,e):r=Ns(n,s,i,e);const o=new fe(r);return e&&e.animations.push(o),o}return t}const Ks=Be();function Lo(e,t,n){e.style.setProperty(`--${t}`,n)}function No(e,t,n){e.style[t]=n}const Ko=Ft(()=>{try{document.createElement("div").animate({opacity:[1]})}catch{return!1}return!0}),St=new WeakMap;function _o(e,t,n){for(let s=0;s<t.length;s++)t[s]===null&&(t[s]=s===0?n():t[s-1]),typeof t[s]=="number"&&ee[e]&&(t[s]=ee[e].transform(t[s]));!Ko()&&t.length<2&&t.unshift(n())}const Sn="easeOut";function Tn(e){const t=St.get(e)||new Map;return St.set(e,t),St.get(e)}class $o{constructor(t,n,s,i){const r=n.startsWith("--");this.setValue=r?Lo:No,this.options=i,this.updateFinishedPromise(),exports.invariant(typeof i.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "framer-motion"?`);const o=Tn(t).get(n);o&&o.stop();const a=()=>n.startsWith("--")?t.style.getPropertyValue(n):window.getComputedStyle(t)[n];if(Array.isArray(s)||(s=[s]),_o(n,s,a),mt(i.type)){const u=Hn(i,100,i.type);i.ease=ht()?u.ease:Sn,i.duration=O(u.duration),i.type="keyframes"}else i.ease=i.ease||Sn;this.removeAnimation=()=>{var u;return(u=St.get(t))===null||u===void 0?void 0:u.delete(n)};const l=()=>{this.setValue(t,n,yt(s,this.options)),this.cancel(),this.resolveFinishedPromise()};Vs()?(this.animation=Ts(t,n,s,i),i.autoplay===!1&&this.animation.pause(),this.animation.onfinish=l,this.pendingTimeline&&At(this.animation,this.pendingTimeline),Tn(t).set(n,this)):l()}get duration(){return I(this.options.duration||300)}get time(){var t;return this.animation?I(((t=this.animation)===null||t===void 0?void 0:t.currentTime)||0):0}set time(t){this.animation&&(this.animation.currentTime=O(t))}get speed(){return this.animation?this.animation.playbackRate:1}set speed(t){this.animation&&(this.animation.playbackRate=t)}get state(){return this.animation?this.animation.playState:"finished"}get startTime(){return this.animation?this.animation.startTime:null}play(){this.state==="finished"&&this.updateFinishedPromise(),this.animation&&this.animation.play()}pause(){this.animation&&this.animation.pause()}stop(){!this.animation||this.state==="idle"||this.state==="finished"||(this.animation.commitStyles&&this.animation.commitStyles(),this.cancel())}complete(){this.animation&&this.animation.finish()}cancel(){this.removeAnimation();try{this.animation&&this.animation.cancel()}catch{}}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}attachTimeline(t){return this.animation?At(this.animation,t):this.pendingTimeline=t,_}}function Wo(e,t,n,s){const i=Bt(e,s),r=i.length;exports.invariant(!!r,"No valid element provided.");const o=[];for(let a=0;a<r;a++){const l=i[a],u={...n};typeof u.delay=="function"&&(u.delay=u.delay(a,r));for(const c in t){const f=t[c],h={...pe(n,c)};h.duration=h.duration?O(h.duration):h.duration,h.delay=O(h.delay||0),o.push(new $o(l,c,f,h))}}return o}const ko=e=>{function t(n,s,i){return new fe(Wo(n,s,i,e))}return t},Go=ko(),Tt=new WeakMap;let W;function Uo(e,t){if(t){const{inlineSize:n,blockSize:s}=t[0];return{width:n,height:s}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function zo({target:e,contentRect:t,borderBoxSize:n}){var s;(s=Tt.get(e))===null||s===void 0||s.forEach(i=>{i({target:e,contentSize:t,get size(){return Uo(e,n)}})})}function jo(e){e.forEach(zo)}function Ho(){typeof ResizeObserver>"u"||(W=new ResizeObserver(jo))}function Yo(e,t){W||Ho();const n=Bt(e);return n.forEach(s=>{let i=Tt.get(s);i||(i=new Set,Tt.set(s,i)),i.add(t),W==null||W.observe(s)}),()=>{n.forEach(s=>{const i=Tt.get(s);i==null||i.delete(t),i!=null&&i.size||W==null||W.unobserve(s)})}}const Vt=new Set;let lt;function Xo(){lt=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};Vt.forEach(n=>n(t))},window.addEventListener("resize",lt)}function qo(e){return Vt.add(e),lt||Xo(),()=>{Vt.delete(e),!Vt.size&<&&(lt=void 0)}}function Zo(e,t){return typeof e=="function"?qo(e):Yo(e,t)}const Jo=50,Vn=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Qo=()=>({time:0,x:Vn(),y:Vn()}),ta={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function xn(e,t,n,s){const i=n[t],{length:r,position:o}=ta[t],a=i.current,l=n.time;i.current=e[`scroll${o}`],i.scrollLength=e[`scroll${r}`]-e[`client${r}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=tt(0,i.scrollLength,i.current);const u=s-l;i.velocity=u>Jo?0:ce(i.current-a,u)}function ea(e,t,n){xn(e,"x",t,n),xn(e,"y",t,n),t.time=n}function na(e,t){const n={x:0,y:0};let s=e;for(;s&&s!==t;)if(s instanceof HTMLElement)n.x+=s.offsetLeft,n.y+=s.offsetTop,s=s.offsetParent;else if(s.tagName==="svg"){const i=s.getBoundingClientRect();s=s.parentElement;const r=s.getBoundingClientRect();n.x+=i.left-r.left,n.y+=i.top-r.top}else if(s instanceof SVGGraphicsElement){const{x:i,y:r}=s.getBBox();n.x+=i,n.y+=r;let o=null,a=s.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=s.parentNode;s=o}else break;return n}const sa={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},le={start:0,center:.5,end:1};function An(e,t,n=0){let s=0;if(e in le&&(e=le[e]),typeof e=="string"){const i=parseFloat(e);e.endsWith("px")?s=i:e.endsWith("%")?e=i/100:e.endsWith("vw")?s=i/100*document.documentElement.clientWidth:e.endsWith("vh")?s=i/100*document.documentElement.clientHeight:e=i}return typeof e=="number"&&(s=t*e),n+s}const ia=[0,0];function ra(e,t,n,s){let i=Array.isArray(e)?e:ia,r=0,o=0;return typeof e=="number"?i=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?i=e.split(" "):i=[e,le[e]?e:"0"]),r=An(i[0],n,s),o=An(i[1],t),r-o}const oa={x:0,y:0};function aa(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function la(e,t,n){const{offset:s=sa.All}=n,{target:i=e,axis:r="y"}=n,o=r==="y"?"height":"width",a=i!==e?na(i,e):oa,l=i===e?{width:e.scrollWidth,height:e.scrollHeight}:aa(i),u={width:e.clientWidth,height:e.clientHeight};t[r].offset.length=0;let c=!t[r].interpolate;const f=s.length;for(let h=0;h<f;h++){const m=ra(s[h],u[o],l[o],a[r]);!c&&m!==t[r].interpolatorOffsets[h]&&(c=!0),t[r].offset[h]=m}c&&(t[r].interpolate=Nt(t[r].offset,he(s)),t[r].interpolatorOffsets=[...t[r].offset]),t[r].progress=t[r].interpolate(t[r].current)}function ua(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let s=t;for(;s&&s!==e;)n.x.targetOffset+=s.offsetLeft,n.y.targetOffset+=s.offsetTop,s=s.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight,process.env.NODE_ENV!=="production"&&e&&t&&t!==e&&Ot(getComputedStyle(e).position!=="static","Please ensure that the container has a non-static position, like 'relative', 'fixed', or 'absolute' to ensure scroll offset is calculated correctly.")}function ca(e,t,n,s={}){return{measure:()=>ua(e,s.target,n),update:i=>{ea(e,n,i),(s.offset||s.target)&&la(e,n,s)},notify:()=>t(n)}}const it=new WeakMap,Mn=new WeakMap,zt=new WeakMap,En=e=>e===document.documentElement?window:e;function _t(e,{container:t=document.documentElement,...n}={}){let s=zt.get(t);s||(s=new Set,zt.set(t,s));const i=Qo(),r=ca(t,e,i,n);if(s.add(r),!it.has(t)){const a=()=>{for(const h of s)h.measure()},l=()=>{for(const h of s)h.update(X.timestamp)},u=()=>{for(const h of s)h.notify()},c=()=>{E.read(a,!1,!0),E.read(l,!1,!0),E.update(u,!1,!0)};it.set(t,c);const f=En(t);window.addEventListener("resize",c,{passive:!0}),t!==document.documentElement&&Mn.set(t,Zo(t,c)),f.addEventListener("scroll",c,{passive:!0})}const o=it.get(t);return E.read(o,!1,!0),()=>{var a;R(o);const l=zt.get(t);if(!l||(l.delete(r),l.size))return;const u=it.get(t);it.delete(t),u&&(En(t).removeEventListener("scroll",u),(a=Mn.get(t))===null||a===void 0||a(),window.removeEventListener("resize",u))}}function _s(e,t){let n;const s=()=>{const{currentTime:i}=t,o=(i===null?0:i.value)/100;n!==o&&e(o),n=o};return E.update(s,!0),()=>R(s)}function fa({source:e,container:t,axis:n="y"}){e&&(t=e);const s={value:0},i=_t(r=>{s.value=r[n].progress*100},{container:t,axis:n});return{currentTime:s,cancel:i}}const jt=new Map;function $s({source:e,container:t=document.documentElement,axis:n="y"}={}){e&&(t=e),jt.has(t)||jt.set(t,{});const s=jt.get(t);return s[n]||(s[n]=Un()?new ScrollTimeline({source:t,axis:n}):fa({source:t,axis:n})),s[n]}function ha(e){return e.length===2}function Ws(e){return e&&(e.target||e.offset)}function da(e,t){return ha(e)||Ws(t)?_t(n=>{e(n[t.axis].progress,n)},t):_s(e,$s(t))}function pa(e,t){if(Ws(t))return e.pause(),_t(n=>{e.time=e.duration*n[t.axis].progress},t);{const n=$s(t);return e.attachTimeline(n,s=>(s.pause(),_s(i=>{s.time=s.duration*i},n)))}}function ks(e,{axis:t="y",...n}={}){const s={axis:t,...n};return typeof e=="function"?da(e,s):pa(e,s)}const ma={some:0,all:1};function Ie(e,t,{root:n,margin:s,amount:i="some"}={}){const r=Bt(e),o=new WeakMap,a=u=>{u.forEach(c=>{const f=o.get(c.target);if(c.isIntersecting!==!!f)if(c.isIntersecting){const h=t(c);typeof h=="function"?o.set(c.target,h):l.unobserve(c.target)}else f&&(f(c),o.delete(c.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:s,threshold:typeof i=="number"?i:ma[i]});return r.forEach(u=>l.observe(u)),()=>l.disconnect()}function ga(e,t="end"){return n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const s=n*e,i=t==="end"?Math.floor(s):Math.ceil(s);return U(0,1,i/e)}}function ya(e,t){if(e==="first")return 0;{const n=t-1;return e==="last"?n:n/2}}function va(e=.1,{startDelay:t=0,from:n=0,ease:s}={}){return(i,r)=>{const o=typeof n=="number"?n:ya(n,r),a=Math.abs(o-i);let l=e*a;if(s){const u=r*e;l=se(s)(l/u)*u}return t+l}}const ba=e=>e&&typeof e=="object"&&e.mix,wa=e=>ba(e)?e.mix:void 0;function Gs(...e){const t=!Array.isArray(e[0]),n=t?0:-1,s=e[0+n],i=e[1+n],r=e[2+n],o=e[3+n],a=Nt(i,r,{mixer:wa(r[0]),...o});return t?a(s):a}function Sa(e,t){const n=N.now(),s=({timestamp:i})=>{const r=i-n;r>=t&&(R(s),e(r-t))};return E.read(s,!0),()=>R(s)}function Ta(e,t){return Sa(e,O(t))}const ue=(e,t)=>Math.abs(e-t);function Va(e,t){const n=ue(e.x,t.x),s=ue(e.y,t.y);return Math.sqrt(n**2+s**2)}const xa=E,Aa=rt.reduce((e,t)=>(e[t]=n=>R(n),e),{});function Re(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,s=Symbol(n);return[o=>{const a=d.inject(s,o);if(a||a===null)return a;throw new Error(`Injection \`${s.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},o=>(d.provide(s,o),o)]}function z(e){return!!(e&&e.getVelocity)}function Ma(e,t){const n=d.ref(!1);return d.watch([e,()=>d.isRef(t)?t.value:t],(s,i)=>{const r=d.unref(t)||{},{once:o}=r;if(!e.value||o&&n.value)return;const a=()=>(n.value=!0,o?void 0:()=>{n.value=!1});return Ie(e.value,a,r)},{immediate:!0}),n}function Us(e){let t=0;const n=({timestamp:i,delta:r})=>{t||(t=i),e(i-t,r)},s=()=>R(n);d.onBeforeUpdate(()=>{s(),E.update(n,!0)}),d.onUnmounted(()=>s()),E.update(n,!0)}const[Ea,Pa]=Re("Motion");function Pn(e,t,n){if(typeof e=="object")return e;if(e&&t){const s=t[e];return typeof s=="function"?s(n):s}}function Ca(e,t){return typeof e!=typeof t?!0:Array.isArray(e)&&Array.isArray(t)?!Oa(e,t):e!==t}function Oa(e,t){const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}function Fa(e,t){!e.includes(t)&&e.push(t)}function Da(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Ba(e,t){return e[t]?{...e,...e[t]}:{...e}}function Cn(e){return e==null?void 0:e.startsWith("--")}function Ia(){}const Ra=e=>e;function La(e){return typeof e=="number"}const Na=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],Ka=new Set(Na);function _a(e){return Ka.has(e)}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const On=e=>typeof e<"u",Fn={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:e=>`${e}deg`},$a={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:e=>`${e}px`},rotate:Fn,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:Ra},skew:Fn},Wa=["translate","scale","rotate","skew"],ka=["","X","Y","Z"],Le=new Map,Et=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"];Wa.forEach(e=>{ka.forEach(t=>{Et.push(e+t),Le.set(e+t,$a[e])})});const Ga=new Set(Et),Ua=e=>Ga.has(e),Dn={x:"translateX",y:"translateY",z:"translateZ"};function za([e],[t]){return Et.indexOf(e)-Et.indexOf(t)}function ja(e,[t,n]){return`${e} ${t}(${n})`}function Ha(e){return e.sort(za).reduce(ja,"").trim()}const Ya={translate:[0,0],rotate:0,scale:1,skew:0,x:0,y:0,z:0},Xa={get:(e,t)=>{let n=Cn(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!n&&n!=="0"){const s=Le.get(t);s&&(n=s.initialValue)}return n},set:(e,t,n)=>{Cn(t)?e.style.setProperty(t,n):e.style[t]=n}};function Ht(e){var s;const t={},n=[];for(let i in e){let r=e[i];r=z(r)?r.get():r,Ua(i)&&i in Dn&&(i=Dn[i]);let o=Array.isArray(r)?r[0]:r;const a=Le.get(i);a?(o=La(r)?(s=a.toDefaultUnit)==null?void 0:s.call(a,r):r,n.push([i,o])):t[i]=o}return n.length&&(t.transform=Ha(n)),t}const Bn={fill:!0,stroke:!0,strokeWidth:!0,opacity:!0,fillOpacity:!0,strokeOpacity:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeDasharray:!0,strokeDashoffset:!0,cx:!0,cy:!0,r:!0,d:!0,x:!0,y:!0,x1:!0,y1:!0,x2:!0,y2:!0,points:!0,pathLength:!0,transform:!0,viewBox:!0,width:!0,height:!0,preserveAspectRatio:!0,clipPath:!0,filter:!0,mask:!0,stopColor:!0,stopOpacity:!0,gradientTransform:!0,gradientUnits:!0,spreadMethod:!0,markerEnd:!0,markerMid:!0,markerStart:!0,textAnchor:!0,dominantBaseline:!0,fontFamily:!0,fontSize:!0,fontWeight:!0,letterSpacing:!0,vectorEffect:!0};function qa(e){const t={},n={};for(const s in e)if(s in Bn){const i=Bn[s],r=typeof i=="string"?i:s,o=e[s];t[r]=z(o)?o.get():o}else n[s]=e[s];return{attributes:t,style:n}}function zs(e){return e?e.flatMap(t=>t.type===d.Fragment?zs(t.children):[t]):[]}const Za=d.defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var l,u;if(!n.default)return null;const s=zs(n.default()),i=s.findIndex(c=>c.type!==d.Comment);if(i===-1)return s;const r=s[i];(l=r.props)==null||delete l.ref;const o=r.props?d.mergeProps(t,r.props):t;t.class&&((u=r.props)!=null&&u.class)&&delete r.props.class;const a=d.cloneVNode(r,o);for(const c in o)c.startsWith("on")&&(a.props||(a.props={}),a.props[c]=o[c]);return s.length===1?a:(s[i]=a,s)}}}),Ja=d.defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const s=e.asChild?"template":e.as;return typeof s=="string"&&["area","img","input"].includes(s)?()=>d.h(s,t):s!=="template"?()=>d.h(e.as,t,{default:n.default}):()=>d.h(Za,t,{default:n.default})}});var js=function(){},Hs=function(){};process.env.NODE_ENV!=="production"&&(js=function(e,t){!e&&typeof console<"u"&&console.warn(t)},Hs=function(e,t){if(!e)throw new Error(t)});class Ne{constructor(t){this.state=t}update(){}}class Qa extends Ne{constructor(){super(...arguments),this.handlers={}}mount(){const t=this.state.getElement();t&&(this.handlers.motionstart=n=>{var i,r;const s=n.detail.target;(r=(i=this.state.getOptions()).onMotionStart)==null||r.call(i,s)},this.handlers.motioncomplete=n=>{var i,r;const s=n.detail.target;(r=(i=this.state.getOptions()).onMotionComplete)==null||r.call(i,s)},this.handlers.hoverstart=n=>{var i,r;const s=n.detail;(r=(i=this.state.getOptions()).onHoverStart)==null||r.call(i,s)},this.handlers.hoverend=n=>{var i,r;const s=n.detail;(r=(i=this.state.getOptions()).onHoverEnd)==null||r.call(i,s)},this.handlers.pressstart=n=>{var i,r;const s=n.detail;(r=(i=this.state.getOptions()).onPressStart)==null||r.call(i,s)},this.handlers.pressend=n=>{var i,r;const s=n.detail;(r=(i=this.state.getOptions()).onPressEnd)==null||r.call(i,s)},this.handlers.viewenter=n=>{var i,r;const s=n.detail.target;(r=(i=this.state.getOptions()).onViewEnter)==null||r.call(i,s)},this.handlers.viewleave=n=>{var i,r;const s=n.detail.target;(r=(i=this.state.getOptions()).onViewLeave)==null||r.call(i,s)},Object.entries(this.handlers).forEach(([n,s])=>{t.addEventListener(n,s)}))}unmount(){const t=this.state.getElement();t&&Object.entries(this.handlers).forEach(([n,s])=>{s&&(t.removeEventListener(n,s),delete this.handlers[n])})}}function dt(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:{originalEvent:n}}))}class Ke extends Ne{updateGestureSubscriptions(){const t=this.isActive();t&&!this.removeGestureSubscriptions?this.removeGestureSubscriptions=this.subscribeEvents():!t&&this.removeGestureSubscriptions&&(this.removeGestureSubscriptions(),this.removeGestureSubscriptions=void 0)}unmount(){var t;(t=this.removeGestureSubscriptions)==null||t.call(this)}}function In(e,t,n){return s=>{s.pointerType&&s.pointerType!=="mouse"||(n(),dt(e,t,s))}}class tl extends Ke{isActive(){return!!this.state.getOptions().hover}constructor(t){super(t),this.subscribeEvents=()=>{const n=this.state.getElement(),s=In(n,"hoverstart",()=>{this.state.setActive("hover",!0)}),i=In(n,"hoverend",()=>{this.state.setActive("hover",!1)});return n.addEventListener("pointerenter",s),n.addEventListener("pointerleave",i),()=>{n.removeEventListener("pointerenter",s),n.removeEventListener("pointerleave",i)}}}mount(){this.updateGestureSubscriptions()}update(){this.updateGestureSubscriptions()}}class el extends Ke{isActive(){return!!this.state.getOptions().press}constructor(t){super(t),this.subscribeEvents=()=>{const n=this.state.getElement(),s=r=>{this.state.setActive("press",!1),dt(n,"pressend",r),window.removeEventListener("pointerup",s)},i=r=>{this.state.setActive("press",!0),dt(n,"pressstart",r),window.addEventListener("pointerup",s)};return n.addEventListener("pointerdown",i),()=>{n.removeEventListener("pointerdown",i),window.removeEventListener("pointerup",s)}}}mount(){this.updateGestureSubscriptions()}update(){this.updateGestureSubscriptions()}}class nl extends Ke{isActive(){return!!this.state.getOptions().inView}constructor(t){super(t),this.subscribeEvents=()=>{var r;const n=this.state.getElement(),{once:s,...i}=((r=this.state.getOptions())==null?void 0:r.inViewOptions)||{};return Ie(n,o=>{if(this.state.setActive("inView",!0),dt(n,"viewenter",o),!s)return a=>{this.state.setActive("inView",!1),dt(n,"viewleave",a)}},i)}}mount(){this.updateGestureSubscriptions()}update(){this.updateGestureSubscriptions()}}function sl(e){return e instanceof SVGElement&&e.tagName!=="svg"}class il extends Ne{mount(){const t=this.state.getElement();if(!sl(t))return;const n=this.state.visualElement;E.read(()=>{try{n.renderState.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.renderState.dimensions={x:0,y:0,width:0,height:0}}})}unmount(){}}class rl{constructor(t){this.features=[],this.features=[new tl(t),new el(t),new nl(t),new il(t),new Qa(t)]}mount(){this.features.forEach(t=>t.mount())}unmount(){this.features.forEach(t=>t.unmount())}update(){this.features.forEach(t=>t.update())}}let G;const Rn=e=>e.next(),ol=e=>e.animateUpdates();function al(){if(!G)return;const e=G.sort(ul).map(ol);e.forEach(Rn),e.forEach(Rn),G=void 0}function Ln(e){G?Fa(G,e):(G=[e],requestAnimationFrame(al))}function ll(e){G&&Da(G,e)}function ul(e,t){return e.getDepth()-t.getDepth()}function Nn(e,t,n){return new CustomEvent(e,{detail:{target:t,isExit:n}})}const cl=["initial","animate","inView","hover","press","exit","drag"],Pt=new WeakMap;class fl{constructor(t,n){this.element=null,this.activeStates={initial:!0,animate:!0},this._context=null,this.options=t,this.parent=n,this.depth=(n==null?void 0:n.depth)+1||0;const s=t.initial===!1?"animate":"initial";this.featureManager=new rl(this),this.initTarget(s)}get context(){if(!this._context){const t={get:(n,s)=>{var i;return typeof this.options[s]=="string"?this.options[s]:(i=this.parent)==null?void 0:i.context[s]}};this._context=new Proxy({},t)}return this._context}initTarget(t){this.baseTarget=Pn(this.options[t]||this.context[t],this.options.variants)||{},this.target={...this.baseTarget}}get initial(){return On(this.options.initial)?this.options.initial:this.context.initial}mount(t){var s;Hs(!!t,"Animation state must be mounted with valid Element"),this.element=t,Pt.set(t,this),K.get(t)||Ls(t);const n=K.get(t);if(this.visualElement=n,n.update(this.options,(s=this.parent)==null?void 0:s.context),typeof this.initial=="object")for(const i in this.initial)n.setStaticValue(i,this.initial[i]);else if(typeof this.initial=="string"&&this.options.variants)for(const i in this.options.variants[this.initial])n.setStaticValue(i,this.options.variants[this.initial][i]);this.featureManager.mount()}unmount(){var t;Pt.delete(this.element),ll(this),(t=K.get(this.element))==null||t.unmount(),this.featureManager.unmount()}update(t){var n;this.options=t,this.visualElement.update(this.options,(n=this.parent)==null?void 0:n.context),this.featureManager.update(),Ln(this)}setActive(t,n){this.element&&(this.activeStates[t]=n,Ln(this))}*animateUpdates(){const t=this.target;this.target={};const n={};for(const l of cl){if(!this.activeStates[l])continue;const u=Pn(On(this.options[l])?this.options[l]:this.context[l],this.options.variants,this.options.custom);if(!u)continue;const c={...t,...u};for(const f in c)f!=="transition"&&(this.target[f]=u[f],n[f]=Ba(u.transition??this.options.transition??{},f))}const s=new Set([...Object.keys(this.target),...Object.keys(t)]),i=[];s.forEach(l=>{var u;this.target[l]===void 0&&(this.target[l]=this.baseTarget[l]),Ca(t[l],this.target[l])&&((u=this.baseTarget)[l]??(u[l]=Xa.get(this.element,l)),i.push(()=>Ks(this.element,{[l]:this.target[l]==="none"?Ya[l]:this.target[l]},n[l]||{})))}),yield;const r=i.map(l=>l()).filter(Boolean);if(!r.length)return;const o=this.target;this.element.dispatchEvent(Nn("motionstart",o));const a=this.activeStates.exit;Promise.all(r).then(()=>{this.element.dispatchEvent(Nn("motioncomplete",{...o},a))}).catch(Ia)}isMounted(){return!!this.element}getDepth(){return this.depth}getOptions(){return this.options}getElement(){return this.element}getTarget(){return this.target}}const Ct=new Map;function Yt(e){const t=Ct.get(e);t&&e.removeEventListener("motioncomplete",t),Ct.delete(e)}const[hl,dl]=Re("AnimatePresenceContext"),pl=d.defineComponent({name:"Motion",inheritAttrs:!1,__name:"Motion",props:d.mergeDefaults({as:{},asChild:{type:Boolean},custom:{},inViewOptions:{},inView:{},press:{},hover:{},initial:{type:[String,Object,Boolean]},animate:{},exit:{},variants:{},style:{},transformTemplate:{type:Function},transition:{},onMotionStart:{type:Function},onMotionComplete:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},onPressStart:{type:Function},onPressEnd:{type:Function},onViewEnter:{type:Function},onViewLeave:{type:Function}},{as:"div",asChild:!1,initial:void 0,animate:void 0,hover:void 0,inView:void 0}),setup(e){const t=e,{initial:n,safeUnmount:s}=hl({initial:d.ref(void 0),safeUnmount:()=>!0}),i=Ea(null),r=d.useAttrs(),o=new fl({...r,...t},i);Pa(o);const a=d.getCurrentInstance();d.onMounted(()=>{o.mount(a==null?void 0:a.vnode.el),o.update({...r,...t,style:{...Ht(o.getTarget()),...t.style}})}),d.onUnmounted(()=>{s(a==null?void 0:a.vnode.el)&&o.unmount()}),d.onUpdated(()=>{o.update({...r,...t,initial:n.value===!1?n.value:t.initial===!0?void 0:t.initial})});function l(){const u={...r};Object.keys(r).forEach(f=>{z(r[f])&&(u[f]=r[f].get())});let c={...t.style};if(!o.isMounted())if(_a(t.as)){const{attributes:f,style:h}=qa(o.getTarget());Object.assign(u,f),Object.assign(c,h,t.style)}else Object.assign(c,t.style,o.getTarget());return c=Ht(c),u.style=Ht(c),u}return(u,c)=>(d.openBlock(),d.createBlock(d.unref(Ja),d.mergeProps({as:u.as,"as-child":u.asChild},l()),{default:d.withCtx(()=>[d.renderSlot(u.$slots,"default")]),_:3},16,["as","as-child"]))}}),ml=d.defineComponent({name:"AnimatePresence",inheritAttrs:!0,__name:"AnimatePresence",props:{mode:{default:"sync"},initial:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},as:{}},setup(e){const t=e,{initial:n}=d.toRefs(t);dl({initial:n,safeUnmount(r){return!Ct.has(r)}});function s(r){const o=Pt.get(r);o&&(Yt(r),o.setActive("exit",!1))}function i(r,o){const a=Pt.get(r);if(!a)return o();Yt(r);function l(u){var c;(c=u==null?void 0:u.detail)!=null&&c.isExit&&(Yt(r),o(),r.isConnected||a.unmount())}Ct.set(r,l),r.addEventListener("motioncomplete",l),a.setActive("exit",!0)}return(r,o)=>(d.openBlock(),d.createBlock(d.resolveDynamicComponent(r.multiple?d.TransitionGroup:d.Transition),{tag:r.multiple?r.as:void 0,css:!1,mode:r.mode==="wait"?"out-in":void 0,onEnter:s,onLeave:i},{default:d.withCtx(()=>[d.renderSlot(r.$slots,"default")]),_:3},40,["tag","mode"]))}});function _e(e){const t=F(e()),n=()=>t.set(e()),s=()=>E.preRender(n,!1,!0);let i;const r=a=>{i=a.map(l=>l.on("change",s))},o=()=>{i.forEach(a=>a()),R(n)};return d.onUnmounted(()=>{o()}),{subscribe:r,unsubscribe:o,value:t}}function gl(e){k.current=[];const{value:t,subscribe:n,unsubscribe:s}=_e(e);return n(k.current),k.current=void 0,d.onBeforeUpdate(()=>{s(),k.current=[],e(),n(k.current),k.current=void 0}),t}function yl(e,t,n,s){if(typeof e=="function")return gl(e);const i=typeof t=="function"?t:Gs(t,n,s);return Array.isArray(e)?Kn(e,i):Kn([e],([r])=>i(r))}function Kn(e,t){const n=[],{value:s,subscribe:i}=_e(()=>{n.length=0;const r=e.length;for(let o=0;o<r;o++)n[o]=e[o].get();return t(n)});return i(e),s}function vl(){const e=F(0);return Us(t=>e.set(t)),e}function bl(e,...t){const n=e.length;function s(){let o="";for(let a=0;a<n;a++){o+=e[a];const l=t[a];l&&(o+=z(l)?l.get():l)}return o}const{value:i,subscribe:r}=_e(s);return r(t.filter(z)),i}function _n(e){return typeof e=="number"?e:parseFloat(e)}function wl(e,t={}){let n=null;const s=F(z(e)?_n(e.get()):e);let i=s.get(),r=()=>{};const o=()=>{n&&(n.stop(),n=null)},a=()=>{const l=n;(l==null?void 0:l.time)===0&&l.sample(X.delta),o(),n=Cr({keyframes:[s.get(),i],velocity:s.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...t,onUpdate:r})};return d.watch(()=>JSON.stringify(t),()=>{const l=s.attach((u,c)=>(i=u,r=c,E.update(a),s.get()),o);d.onBeforeUnmount(()=>l())},{immediate:!0}),z(e)&&e.on("change",l=>{s.set(_n(l))}),s}function $n(e,t){js(!!(!t||t.value),`You have defined a ${e} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref.`)}function Sl(){return{scrollX:F(0),scrollY:F(0),scrollXProgress:F(0),scrollYProgress:F(0)}}function Tl({container:e,target:t,...n}={}){const s=Sl();let i;const r=()=>{i==null||i(),i=ks((o,{x:a,y:l})=>{s.scrollX.set(a.current),s.scrollXProgress.set(a.progress),s.scrollY.set(l.current),s.scrollYProgress.set(l.progress)},{...n,container:(e==null?void 0:e.value)??void 0,target:(t==null?void 0:t.value)??void 0})};return d.onMounted(()=>{$n("target",t),$n("container",e),r()}),d.onUnmounted(()=>i==null?void 0:i()),d.watch(()=>[e==null?void 0:e.value,t==null?void 0:t.value,n.offset],r),s}const Vl={motion:["Motion","MotionPresence"]},xl={utilities:["useTransform","useTime","useMotionTemplate","useSpring","useScroll","useMotionValue"]};function Al(){const e=d.ref(null),t=new Proxy(e,{get(s,i){if(typeof i=="string"||typeof i=="symbol")return i==="current"?Reflect.get(s,"value"):Reflect.get(s,i)},set(s,i,r){return i==="value"?Reflect.set(s,i,(r==null?void 0:r.$el)||r):i==="animations"?Reflect.set(s,i,r):!0}});t.animations=[];const n=Be(t);return d.onUnmounted(()=>{t.animations.forEach(s=>s.stop())}),[t,n]}exports.AnimatePresence=ml;exports.Motion=pl;exports.MotionValue=Gn;exports.animate=Ks;exports.animateMini=Go;exports.anticipate=be;exports.backIn=It;exports.backInOut=ve;exports.backOut=ye;exports.cancelFrame=R;exports.cancelSync=Aa;exports.circIn=Rt;exports.circInOut=we;exports.circOut=Qn;exports.clamp=U;exports.components=Vl;exports.createContext=Re;exports.createScopedAnimate=Be;exports.cubicBezier=et;exports.delay=Ta;exports.distance=ue;exports.distance2D=Va;exports.easeIn=ys;exports.easeInOut=Ee;exports.easeOut=vs;exports.frame=E;exports.frameData=X;exports.frameSteps=ei;exports.inView=Ie;exports.inertia=ne;exports.interpolate=Nt;exports.isMotionValue=z;exports.keyframes=ft;exports.mirrorEasing=me;exports.mix=Oe;exports.motionValue=F;exports.pipe=Lt;exports.progress=tt;exports.reverseEasing=ge;exports.scroll=ks;exports.scrollInfo=_t;exports.spring=Dt;exports.stagger=va;exports.steps=ga;exports.sync=xa;exports.transform=Gs;exports.useAnimate=Al;exports.useAnimationFrame=Us;exports.useInView=Ma;exports.useMotionTemplate=bl;exports.useMotionValue=F;exports.useScroll=Tl;exports.useSpring=wl;exports.useTime=vl;exports.useTransform=yl;exports.utilities=xl;exports.wrap=qn;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ref as f, onUnmounted as m } from "vue";
|
|
2
|
+
import { createScopedAnimate as s } from "../node_modules/.pnpm/framer-motion@11.11.11/node_modules/framer-motion/dist/es/animation/animate/index.mjs";
|
|
3
|
+
function p() {
|
|
4
|
+
const o = f(null), e = new Proxy(o, {
|
|
5
|
+
get(n, t) {
|
|
6
|
+
if (typeof t == "string" || typeof t == "symbol")
|
|
7
|
+
return t === "current" ? Reflect.get(n, "value") : Reflect.get(n, t);
|
|
8
|
+
},
|
|
9
|
+
set(n, t, r) {
|
|
10
|
+
return t === "value" ? Reflect.set(n, t, (r == null ? void 0 : r.$el) || r) : t === "animations" ? Reflect.set(n, t, r) : !0;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
e.animations = [];
|
|
14
|
+
const i = s(e);
|
|
15
|
+
return m(() => {
|
|
16
|
+
e.animations.forEach((n) => n.stop());
|
|
17
|
+
}), [e, i];
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
p as useAnimate
|
|
21
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { defineComponent as p, toRefs as v, openBlock as C, createBlock as A, resolveDynamicComponent as k, TransitionGroup as g, Transition as h, withCtx as y, renderSlot as B } from "vue";
|
|
2
|
+
import { mountedStates as r } from "../state/motion-state.mjs";
|
|
3
|
+
import { provideAnimatePresence as b, doneCallbacks as m, removeDoneCallback as i } from "./presence.mjs";
|
|
4
|
+
const x = /* @__PURE__ */ p({
|
|
5
|
+
name: "AnimatePresence",
|
|
6
|
+
inheritAttrs: !0,
|
|
7
|
+
__name: "AnimatePresence",
|
|
8
|
+
props: {
|
|
9
|
+
mode: { default: "sync" },
|
|
10
|
+
initial: { type: Boolean, default: !0 },
|
|
11
|
+
multiple: { type: Boolean, default: !1 },
|
|
12
|
+
as: {}
|
|
13
|
+
},
|
|
14
|
+
setup(u) {
|
|
15
|
+
const l = u, { initial: c } = v(l);
|
|
16
|
+
b({
|
|
17
|
+
initial: c,
|
|
18
|
+
safeUnmount(e) {
|
|
19
|
+
return !m.has(e);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
function f(e) {
|
|
23
|
+
const t = r.get(e);
|
|
24
|
+
t && (i(e), t.setActive("exit", !1));
|
|
25
|
+
}
|
|
26
|
+
function d(e, t) {
|
|
27
|
+
const n = r.get(e);
|
|
28
|
+
if (!n)
|
|
29
|
+
return t();
|
|
30
|
+
i(e);
|
|
31
|
+
function a(o) {
|
|
32
|
+
var s;
|
|
33
|
+
(s = o == null ? void 0 : o.detail) != null && s.isExit && (i(e), t(), e.isConnected || n.unmount());
|
|
34
|
+
}
|
|
35
|
+
m.set(e, a), e.addEventListener("motioncomplete", a), n.setActive("exit", !0);
|
|
36
|
+
}
|
|
37
|
+
return (e, t) => (C(), A(k(e.multiple ? g : h), {
|
|
38
|
+
tag: e.multiple ? e.as : void 0,
|
|
39
|
+
css: !1,
|
|
40
|
+
mode: e.mode === "wait" ? "out-in" : void 0,
|
|
41
|
+
onEnter: f,
|
|
42
|
+
onLeave: d
|
|
43
|
+
}, {
|
|
44
|
+
default: y(() => [
|
|
45
|
+
B(e.$slots, "default")
|
|
46
|
+
]),
|
|
47
|
+
_: 3
|
|
48
|
+
}, 40, ["tag", "mode"]));
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
export {
|
|
52
|
+
x as default
|
|
53
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { defineComponent as f, mergeDefaults as v, ref as y, useAttrs as g, getCurrentInstance as h, onMounted as S, onUnmounted as M, onUpdated as F, openBlock as P, createBlock as b, unref as j, mergeProps as w, withCtx as C, renderSlot as V } from "vue";
|
|
2
|
+
import { injectMotion as O, provideMotion as E } from "./context.mjs";
|
|
3
|
+
import { createStyles as a, convertSvgStyleToAttributes as T } from "../state/style.mjs";
|
|
4
|
+
import { Primitive as A } from "./Primitive.mjs";
|
|
5
|
+
import { MotionState as B } from "../state/motion-state.mjs";
|
|
6
|
+
import { isSVGElement as U } from "../state/utils.mjs";
|
|
7
|
+
import { injectAnimatePresence as _ } from "./presence.mjs";
|
|
8
|
+
import { isMotionValue as H } from "../utils/motion-value.mjs";
|
|
9
|
+
const z = /* @__PURE__ */ f({
|
|
10
|
+
name: "Motion",
|
|
11
|
+
inheritAttrs: !1,
|
|
12
|
+
__name: "Motion",
|
|
13
|
+
props: /* @__PURE__ */ v({
|
|
14
|
+
as: {},
|
|
15
|
+
asChild: { type: Boolean },
|
|
16
|
+
custom: {},
|
|
17
|
+
inViewOptions: {},
|
|
18
|
+
inView: {},
|
|
19
|
+
press: {},
|
|
20
|
+
hover: {},
|
|
21
|
+
initial: { type: [String, Object, Boolean] },
|
|
22
|
+
animate: {},
|
|
23
|
+
exit: {},
|
|
24
|
+
variants: {},
|
|
25
|
+
style: {},
|
|
26
|
+
transformTemplate: { type: Function },
|
|
27
|
+
transition: {},
|
|
28
|
+
onMotionStart: { type: Function },
|
|
29
|
+
onMotionComplete: { type: Function },
|
|
30
|
+
onHoverStart: { type: Function },
|
|
31
|
+
onHoverEnd: { type: Function },
|
|
32
|
+
onPressStart: { type: Function },
|
|
33
|
+
onPressEnd: { type: Function },
|
|
34
|
+
onViewEnter: { type: Function },
|
|
35
|
+
onViewLeave: { type: Function }
|
|
36
|
+
}, {
|
|
37
|
+
as: "div",
|
|
38
|
+
asChild: !1,
|
|
39
|
+
initial: void 0,
|
|
40
|
+
animate: void 0,
|
|
41
|
+
hover: void 0,
|
|
42
|
+
inView: void 0
|
|
43
|
+
}),
|
|
44
|
+
setup(p) {
|
|
45
|
+
const t = p, { initial: l, safeUnmount: u } = _({ initial: y(void 0), safeUnmount: () => !0 }), c = O(null), o = g(), e = new B(
|
|
46
|
+
{
|
|
47
|
+
...o,
|
|
48
|
+
...t
|
|
49
|
+
},
|
|
50
|
+
c
|
|
51
|
+
);
|
|
52
|
+
E(e);
|
|
53
|
+
const i = h();
|
|
54
|
+
S(() => {
|
|
55
|
+
e.mount(i == null ? void 0 : i.vnode.el), e.update({
|
|
56
|
+
...o,
|
|
57
|
+
...t,
|
|
58
|
+
style: { ...a(e.getTarget()), ...t.style }
|
|
59
|
+
});
|
|
60
|
+
}), M(() => {
|
|
61
|
+
u(i == null ? void 0 : i.vnode.el) && e.unmount();
|
|
62
|
+
}), F(() => {
|
|
63
|
+
e.update({
|
|
64
|
+
...o,
|
|
65
|
+
...t,
|
|
66
|
+
initial: l.value === !1 ? l.value : t.initial === !0 ? void 0 : t.initial
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
function m() {
|
|
70
|
+
const n = { ...o };
|
|
71
|
+
Object.keys(o).forEach((r) => {
|
|
72
|
+
H(o[r]) && (n[r] = o[r].get());
|
|
73
|
+
});
|
|
74
|
+
let s = {
|
|
75
|
+
...t.style
|
|
76
|
+
};
|
|
77
|
+
if (!e.isMounted())
|
|
78
|
+
if (U(t.as)) {
|
|
79
|
+
const { attributes: r, style: d } = T(e.getTarget());
|
|
80
|
+
Object.assign(n, r), Object.assign(s, d, t.style);
|
|
81
|
+
} else
|
|
82
|
+
Object.assign(s, t.style, e.getTarget());
|
|
83
|
+
return s = a(s), n.style = a(s), n;
|
|
84
|
+
}
|
|
85
|
+
return (n, s) => (P(), b(j(A), w({
|
|
86
|
+
as: n.as,
|
|
87
|
+
"as-child": n.asChild
|
|
88
|
+
}, m()), {
|
|
89
|
+
default: C(() => [
|
|
90
|
+
V(n.$slots, "default")
|
|
91
|
+
]),
|
|
92
|
+
_: 3
|
|
93
|
+
}, 16, ["as", "as-child"]));
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
export {
|
|
97
|
+
z as default
|
|
98
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defineComponent as r, h as a } from "vue";
|
|
2
|
+
import { Slot as f } from "./Slot.mjs";
|
|
3
|
+
const d = r({
|
|
4
|
+
name: "Primitive",
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
props: {
|
|
7
|
+
asChild: {
|
|
8
|
+
type: Boolean,
|
|
9
|
+
default: !1
|
|
10
|
+
},
|
|
11
|
+
as: {
|
|
12
|
+
type: [String, Object],
|
|
13
|
+
default: "div"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
setup(t, { attrs: i, slots: n }) {
|
|
17
|
+
const e = t.asChild ? "template" : t.as;
|
|
18
|
+
return typeof e == "string" && ["area", "img", "input"].includes(e) ? () => a(e, i) : e !== "template" ? () => a(t.as, i, { default: n.default }) : () => a(f, i, { default: n.default });
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
export {
|
|
22
|
+
d as Primitive
|
|
23
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineComponent as m, Comment as d, mergeProps as c, cloneVNode as u } from "vue";
|
|
2
|
+
import { renderSlotFragments as a } from "./renderSlotFragments.mjs";
|
|
3
|
+
const x = m({
|
|
4
|
+
name: "PrimitiveSlot",
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
setup(h, { attrs: t, slots: i }) {
|
|
7
|
+
return () => {
|
|
8
|
+
var f, l;
|
|
9
|
+
if (!i.default)
|
|
10
|
+
return null;
|
|
11
|
+
const e = a(i.default()), s = e.findIndex((o) => o.type !== d);
|
|
12
|
+
if (s === -1)
|
|
13
|
+
return e;
|
|
14
|
+
const r = e[s];
|
|
15
|
+
(f = r.props) == null || delete f.ref;
|
|
16
|
+
const p = r.props ? c(t, r.props) : t;
|
|
17
|
+
t.class && ((l = r.props) != null && l.class) && delete r.props.class;
|
|
18
|
+
const n = u(r, p);
|
|
19
|
+
for (const o in p)
|
|
20
|
+
o.startsWith("on") && (n.props || (n.props = {}), n.props[o] = p[o]);
|
|
21
|
+
return e.length === 1 ? n : (e[s] = n, e);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
x as Slot
|
|
27
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createContext as o } from "../utils/createContext.mjs";
|
|
2
|
+
const t = /* @__PURE__ */ new Map();
|
|
3
|
+
function r(e) {
|
|
4
|
+
const n = t.get(e);
|
|
5
|
+
n && e.removeEventListener("motioncomplete", n), t.delete(e);
|
|
6
|
+
}
|
|
7
|
+
const [a, i] = o("AnimatePresenceContext");
|
|
8
|
+
export {
|
|
9
|
+
t as doneCallbacks,
|
|
10
|
+
a as injectAnimatePresence,
|
|
11
|
+
i as provideAnimatePresence,
|
|
12
|
+
r as removeDoneCallback
|
|
13
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
motion: [
|
|
3
|
+
"Motion",
|
|
4
|
+
"MotionPresence"
|
|
5
|
+
]
|
|
6
|
+
}, o = {
|
|
7
|
+
utilities: [
|
|
8
|
+
"useTransform",
|
|
9
|
+
"useTime",
|
|
10
|
+
"useMotionTemplate",
|
|
11
|
+
"useSpring",
|
|
12
|
+
"useScroll",
|
|
13
|
+
"useMotionValue"
|
|
14
|
+
]
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
e as components,
|
|
18
|
+
o as utilities
|
|
19
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Feature as i } from "./feature.mjs";
|
|
2
|
+
class h extends i {
|
|
3
|
+
constructor() {
|
|
4
|
+
super(...arguments), this.handlers = {};
|
|
5
|
+
}
|
|
6
|
+
mount() {
|
|
7
|
+
const r = this.state.getElement();
|
|
8
|
+
r && (this.handlers.motionstart = (s) => {
|
|
9
|
+
var t, e;
|
|
10
|
+
const n = s.detail.target;
|
|
11
|
+
(e = (t = this.state.getOptions()).onMotionStart) == null || e.call(t, n);
|
|
12
|
+
}, this.handlers.motioncomplete = (s) => {
|
|
13
|
+
var t, e;
|
|
14
|
+
const n = s.detail.target;
|
|
15
|
+
(e = (t = this.state.getOptions()).onMotionComplete) == null || e.call(t, n);
|
|
16
|
+
}, this.handlers.hoverstart = (s) => {
|
|
17
|
+
var t, e;
|
|
18
|
+
const n = s.detail;
|
|
19
|
+
(e = (t = this.state.getOptions()).onHoverStart) == null || e.call(t, n);
|
|
20
|
+
}, this.handlers.hoverend = (s) => {
|
|
21
|
+
var t, e;
|
|
22
|
+
const n = s.detail;
|
|
23
|
+
(e = (t = this.state.getOptions()).onHoverEnd) == null || e.call(t, n);
|
|
24
|
+
}, this.handlers.pressstart = (s) => {
|
|
25
|
+
var t, e;
|
|
26
|
+
const n = s.detail;
|
|
27
|
+
(e = (t = this.state.getOptions()).onPressStart) == null || e.call(t, n);
|
|
28
|
+
}, this.handlers.pressend = (s) => {
|
|
29
|
+
var t, e;
|
|
30
|
+
const n = s.detail;
|
|
31
|
+
(e = (t = this.state.getOptions()).onPressEnd) == null || e.call(t, n);
|
|
32
|
+
}, this.handlers.viewenter = (s) => {
|
|
33
|
+
var t, e;
|
|
34
|
+
const n = s.detail.target;
|
|
35
|
+
(e = (t = this.state.getOptions()).onViewEnter) == null || e.call(t, n);
|
|
36
|
+
}, this.handlers.viewleave = (s) => {
|
|
37
|
+
var t, e;
|
|
38
|
+
const n = s.detail.target;
|
|
39
|
+
(e = (t = this.state.getOptions()).onViewLeave) == null || e.call(t, n);
|
|
40
|
+
}, Object.entries(this.handlers).forEach(([s, n]) => {
|
|
41
|
+
r.addEventListener(s, n);
|
|
42
|
+
}));
|
|
43
|
+
}
|
|
44
|
+
unmount() {
|
|
45
|
+
const r = this.state.getElement();
|
|
46
|
+
r && Object.entries(this.handlers).forEach(([s, n]) => {
|
|
47
|
+
n && (r.removeEventListener(s, n), delete this.handlers[s]);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
h as EventFeature
|
|
53
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { EventFeature as r } from "./events.mjs";
|
|
2
|
+
import { SVGFeature as t } from "./svg.mjs";
|
|
3
|
+
import { HoverGesture as o } from "./gestures/hover.mjs";
|
|
4
|
+
import { PressGesture as u } from "./gestures/press.mjs";
|
|
5
|
+
import { InViewGesture as n } from "./gestures/in-view.mjs";
|
|
6
|
+
class p {
|
|
7
|
+
constructor(e) {
|
|
8
|
+
this.features = [], this.features = [
|
|
9
|
+
new o(e),
|
|
10
|
+
new u(e),
|
|
11
|
+
new n(e),
|
|
12
|
+
new t(e),
|
|
13
|
+
new r(e)
|
|
14
|
+
];
|
|
15
|
+
}
|
|
16
|
+
mount() {
|
|
17
|
+
this.features.forEach((e) => e.mount());
|
|
18
|
+
}
|
|
19
|
+
unmount() {
|
|
20
|
+
this.features.forEach((e) => e.unmount());
|
|
21
|
+
}
|
|
22
|
+
update() {
|
|
23
|
+
this.features.forEach((e) => e.update());
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
p as FeatureManager
|
|
28
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Feature as s } from "../feature.mjs";
|
|
2
|
+
class r extends s {
|
|
3
|
+
updateGestureSubscriptions() {
|
|
4
|
+
const e = this.isActive();
|
|
5
|
+
e && !this.removeGestureSubscriptions ? this.removeGestureSubscriptions = this.subscribeEvents() : !e && this.removeGestureSubscriptions && (this.removeGestureSubscriptions(), this.removeGestureSubscriptions = void 0);
|
|
6
|
+
}
|
|
7
|
+
unmount() {
|
|
8
|
+
var e;
|
|
9
|
+
(e = this.removeGestureSubscriptions) == null || e.call(this);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
r as BaseGesture
|
|
14
|
+
};
|