framer-motion 1.8.4 → 1.9.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/CHANGELOG.md +7 -0
- package/dist/framer-motion.api.json +42 -0
- package/dist/framer-motion.cjs.js +31 -0
- package/dist/framer-motion.d.ts +28 -0
- package/dist/framer-motion.dev.js +31 -0
- package/dist/framer-motion.es.js +31 -1
- package/dist/framer-motion.js +1 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Framer Motion adheres to [Semantic Versioning](http://semver.org/).
|
|
4
4
|
|
|
5
|
+
## [1.9.0] Unreleased
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- `usePresence` hook. ([@inventingwithmonster](https://github.com/inventingwithmonster) in [#473](https://github.com/framer/motion/pull/473))
|
|
10
|
+
- `repository` field in `package.json`. ([@iamstarkov](https://github.com/iamstarkov) in [#469](https://github.com/framer/motion/pull/469))
|
|
11
|
+
|
|
5
12
|
## [1.8.4] 2020-02-05
|
|
6
13
|
|
|
7
14
|
### Added
|
|
@@ -13328,6 +13328,48 @@
|
|
|
13328
13328
|
],
|
|
13329
13329
|
"name": "useMotionValue"
|
|
13330
13330
|
},
|
|
13331
|
+
{
|
|
13332
|
+
"kind": "Function",
|
|
13333
|
+
"docComment": "/**\n * When a component is the child of an `AnimatePresence` component, it has access to information about whether it's still present the React tree. `usePresence` can be used to access that data and perform operations before the component can be considered safe to remove.\n *\n * It returns two values. `isPresent` is a boolean that is `true` when the component is present within the React tree. It is `false` when it's been removed, but still visible.\n *\n * When `isPresent` is `false`, the `safeToRemove` callback can be used to tell `AnimatePresence` that it's safe to remove the component from the DOM, for instance after a animation has completed.\n * ```jsx\n * const [isPresent, safeToRemove] = usePresence()\n *\n * useEffect(() => {\n * !isPresent setTimeout(safeToRemove, 1000)\n * }, [isPresent])\n * ```\n *\n * @public\n */\n",
|
|
13334
|
+
"excerptTokens": [
|
|
13335
|
+
{
|
|
13336
|
+
"kind": "Content",
|
|
13337
|
+
"text": "export declare function "
|
|
13338
|
+
},
|
|
13339
|
+
{
|
|
13340
|
+
"kind": "Reference",
|
|
13341
|
+
"text": "usePresence"
|
|
13342
|
+
},
|
|
13343
|
+
{
|
|
13344
|
+
"kind": "Content",
|
|
13345
|
+
"text": "(): "
|
|
13346
|
+
},
|
|
13347
|
+
{
|
|
13348
|
+
"kind": "Reference",
|
|
13349
|
+
"text": "Present"
|
|
13350
|
+
},
|
|
13351
|
+
{
|
|
13352
|
+
"kind": "Content",
|
|
13353
|
+
"text": " | "
|
|
13354
|
+
},
|
|
13355
|
+
{
|
|
13356
|
+
"kind": "Reference",
|
|
13357
|
+
"text": "NotPresent"
|
|
13358
|
+
},
|
|
13359
|
+
{
|
|
13360
|
+
"kind": "Content",
|
|
13361
|
+
"text": ";"
|
|
13362
|
+
}
|
|
13363
|
+
],
|
|
13364
|
+
"returnTypeTokenRange": {
|
|
13365
|
+
"startIndex": 3,
|
|
13366
|
+
"endIndex": 6
|
|
13367
|
+
},
|
|
13368
|
+
"releaseTag": "Public",
|
|
13369
|
+
"overloadIndex": 0,
|
|
13370
|
+
"parameters": [],
|
|
13371
|
+
"name": "usePresence"
|
|
13372
|
+
},
|
|
13331
13373
|
{
|
|
13332
13374
|
"kind": "Function",
|
|
13333
13375
|
"docComment": "/**\n * A hook that returns `true` if we should be using reduced motion based on the current device's Reduced Motion setting.\n *\n * This can be used to implement changes to your UI based on Reduced Motion. For instance, replacing motion-sickness inducing `x`/`y` animations with `opacity`, disabling the autoplay of background videos, or turning off parallax motion.\n *\n * It will actively respond to changes and re-render your components with the latest setting.\n * ```jsx\n * export function Sidebar({ isOpem }) {\n * const shouldReduceMotion = useReducedMotion()\n * const closedX = shouldReduceMotion ? 0 : \"-100%\"\n *\n * return (\n * <motion.div animate={{\n * opacity: isOpen ? 1 : 0,\n * x: isOpen ? 0 : closedX\n * }} />\n * )\n * }\n * ```\n *\n * @return boolean\n *\n * @public\n */\n",
|
|
@@ -4958,6 +4958,36 @@ var AnimatePresence = function (_a) {
|
|
|
4958
4958
|
: childrenToRender.map(function (child) { return React.cloneElement(child); })));
|
|
4959
4959
|
};
|
|
4960
4960
|
|
|
4961
|
+
/**
|
|
4962
|
+
* When a component is the child of an `AnimatePresence` component, it has access to
|
|
4963
|
+
* information about whether it's still present the React tree. `usePresence` can be
|
|
4964
|
+
* used to access that data and perform operations before the component can be considered
|
|
4965
|
+
* safe to remove.
|
|
4966
|
+
*
|
|
4967
|
+
* It returns two values. `isPresent` is a boolean that is `true` when the component
|
|
4968
|
+
* is present within the React tree. It is `false` when it's been removed, but still visible.
|
|
4969
|
+
*
|
|
4970
|
+
* When `isPresent` is `false`, the `safeToRemove` callback can be used to tell `AnimatePresence`
|
|
4971
|
+
* that it's safe to remove the component from the DOM, for instance after a animation has completed.
|
|
4972
|
+
*
|
|
4973
|
+
* ```jsx
|
|
4974
|
+
* const [isPresent, safeToRemove] = usePresence()
|
|
4975
|
+
*
|
|
4976
|
+
* useEffect(() => {
|
|
4977
|
+
* !isPresent setTimeout(safeToRemove, 1000)
|
|
4978
|
+
* }, [isPresent])
|
|
4979
|
+
* ```
|
|
4980
|
+
*
|
|
4981
|
+
* @public
|
|
4982
|
+
*/
|
|
4983
|
+
function usePresence() {
|
|
4984
|
+
var exitProps = React.useContext(MotionContext).exitProps;
|
|
4985
|
+
if (!exitProps)
|
|
4986
|
+
return [true];
|
|
4987
|
+
var isExiting = exitProps.isExiting, onExitComplete = exitProps.onExitComplete;
|
|
4988
|
+
return isExiting && onExitComplete ? [false, onExitComplete] : [true];
|
|
4989
|
+
}
|
|
4990
|
+
|
|
4961
4991
|
// Does this device prefer reduced motion? Returns `null` server-side.
|
|
4962
4992
|
var prefersReducedMotion = motionValue(null);
|
|
4963
4993
|
if (typeof window !== "undefined") {
|
|
@@ -5055,6 +5085,7 @@ exports.useGestures = useGestures;
|
|
|
5055
5085
|
exports.useInvertedScale = useInvertedScale;
|
|
5056
5086
|
exports.useMotionValue = useMotionValue;
|
|
5057
5087
|
exports.usePanGesture = usePanGesture;
|
|
5088
|
+
exports.usePresence = usePresence;
|
|
5058
5089
|
exports.useReducedMotion = useReducedMotion;
|
|
5059
5090
|
exports.useSpring = useSpring;
|
|
5060
5091
|
exports.useTapGesture = useTapGesture;
|
package/dist/framer-motion.d.ts
CHANGED
|
@@ -2939,6 +2939,8 @@ export declare interface None {
|
|
|
2939
2939
|
velocity?: number;
|
|
2940
2940
|
}
|
|
2941
2941
|
|
|
2942
|
+
declare type NotPresent = [false, () => void];
|
|
2943
|
+
|
|
2942
2944
|
declare type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
2943
2945
|
|
|
2944
2946
|
declare type OnUpdate = (v: Target) => void;
|
|
@@ -3530,6 +3532,8 @@ export declare namespace Point {
|
|
|
3530
3532
|
const relativeTo: (idOrElem: string | HTMLElement) => ({ x, y }: Point) => Point | undefined;
|
|
3531
3533
|
}
|
|
3532
3534
|
|
|
3535
|
+
declare type Present = [true];
|
|
3536
|
+
|
|
3533
3537
|
declare interface Props {
|
|
3534
3538
|
children?: any;
|
|
3535
3539
|
/**
|
|
@@ -4939,6 +4943,30 @@ export declare function useMotionValue<T>(initial: T): MotionValue<T>;
|
|
|
4939
4943
|
*/
|
|
4940
4944
|
export declare function usePanGesture({ onPan, onPanStart, onPanEnd, onPanSessionStart }: PanHandlers, ref: RefObject<Element>): void;
|
|
4941
4945
|
|
|
4946
|
+
/**
|
|
4947
|
+
* When a component is the child of an `AnimatePresence` component, it has access to
|
|
4948
|
+
* information about whether it's still present the React tree. `usePresence` can be
|
|
4949
|
+
* used to access that data and perform operations before the component can be considered
|
|
4950
|
+
* safe to remove.
|
|
4951
|
+
*
|
|
4952
|
+
* It returns two values. `isPresent` is a boolean that is `true` when the component
|
|
4953
|
+
* is present within the React tree. It is `false` when it's been removed, but still visible.
|
|
4954
|
+
*
|
|
4955
|
+
* When `isPresent` is `false`, the `safeToRemove` callback can be used to tell `AnimatePresence`
|
|
4956
|
+
* that it's safe to remove the component from the DOM, for instance after a animation has completed.
|
|
4957
|
+
*
|
|
4958
|
+
* ```jsx
|
|
4959
|
+
* const [isPresent, safeToRemove] = usePresence()
|
|
4960
|
+
*
|
|
4961
|
+
* useEffect(() => {
|
|
4962
|
+
* !isPresent setTimeout(safeToRemove, 1000)
|
|
4963
|
+
* }, [isPresent])
|
|
4964
|
+
* ```
|
|
4965
|
+
*
|
|
4966
|
+
* @public
|
|
4967
|
+
*/
|
|
4968
|
+
export declare function usePresence(): Present | NotPresent;
|
|
4969
|
+
|
|
4942
4970
|
/**
|
|
4943
4971
|
* A hook that returns `true` if we should be using reduced motion based on the current device's Reduced Motion setting.
|
|
4944
4972
|
*
|
|
@@ -7203,6 +7203,36 @@
|
|
|
7203
7203
|
: childrenToRender.map(function (child) { return React.cloneElement(child); })));
|
|
7204
7204
|
};
|
|
7205
7205
|
|
|
7206
|
+
/**
|
|
7207
|
+
* When a component is the child of an `AnimatePresence` component, it has access to
|
|
7208
|
+
* information about whether it's still present the React tree. `usePresence` can be
|
|
7209
|
+
* used to access that data and perform operations before the component can be considered
|
|
7210
|
+
* safe to remove.
|
|
7211
|
+
*
|
|
7212
|
+
* It returns two values. `isPresent` is a boolean that is `true` when the component
|
|
7213
|
+
* is present within the React tree. It is `false` when it's been removed, but still visible.
|
|
7214
|
+
*
|
|
7215
|
+
* When `isPresent` is `false`, the `safeToRemove` callback can be used to tell `AnimatePresence`
|
|
7216
|
+
* that it's safe to remove the component from the DOM, for instance after a animation has completed.
|
|
7217
|
+
*
|
|
7218
|
+
* ```jsx
|
|
7219
|
+
* const [isPresent, safeToRemove] = usePresence()
|
|
7220
|
+
*
|
|
7221
|
+
* useEffect(() => {
|
|
7222
|
+
* !isPresent setTimeout(safeToRemove, 1000)
|
|
7223
|
+
* }, [isPresent])
|
|
7224
|
+
* ```
|
|
7225
|
+
*
|
|
7226
|
+
* @public
|
|
7227
|
+
*/
|
|
7228
|
+
function usePresence() {
|
|
7229
|
+
var exitProps = React.useContext(MotionContext).exitProps;
|
|
7230
|
+
if (!exitProps)
|
|
7231
|
+
return [true];
|
|
7232
|
+
var isExiting = exitProps.isExiting, onExitComplete = exitProps.onExitComplete;
|
|
7233
|
+
return isExiting && onExitComplete ? [false, onExitComplete] : [true];
|
|
7234
|
+
}
|
|
7235
|
+
|
|
7206
7236
|
// Does this device prefer reduced motion? Returns `null` server-side.
|
|
7207
7237
|
var prefersReducedMotion = motionValue(null);
|
|
7208
7238
|
if (typeof window !== "undefined") {
|
|
@@ -7300,6 +7330,7 @@
|
|
|
7300
7330
|
exports.useInvertedScale = useInvertedScale;
|
|
7301
7331
|
exports.useMotionValue = useMotionValue;
|
|
7302
7332
|
exports.usePanGesture = usePanGesture;
|
|
7333
|
+
exports.usePresence = usePresence;
|
|
7303
7334
|
exports.useReducedMotion = useReducedMotion;
|
|
7304
7335
|
exports.useSpring = useSpring;
|
|
7305
7336
|
exports.useTapGesture = useTapGesture;
|
package/dist/framer-motion.es.js
CHANGED
|
@@ -4952,6 +4952,36 @@ var AnimatePresence = function (_a) {
|
|
|
4952
4952
|
: childrenToRender.map(function (child) { return cloneElement(child); })));
|
|
4953
4953
|
};
|
|
4954
4954
|
|
|
4955
|
+
/**
|
|
4956
|
+
* When a component is the child of an `AnimatePresence` component, it has access to
|
|
4957
|
+
* information about whether it's still present the React tree. `usePresence` can be
|
|
4958
|
+
* used to access that data and perform operations before the component can be considered
|
|
4959
|
+
* safe to remove.
|
|
4960
|
+
*
|
|
4961
|
+
* It returns two values. `isPresent` is a boolean that is `true` when the component
|
|
4962
|
+
* is present within the React tree. It is `false` when it's been removed, but still visible.
|
|
4963
|
+
*
|
|
4964
|
+
* When `isPresent` is `false`, the `safeToRemove` callback can be used to tell `AnimatePresence`
|
|
4965
|
+
* that it's safe to remove the component from the DOM, for instance after a animation has completed.
|
|
4966
|
+
*
|
|
4967
|
+
* ```jsx
|
|
4968
|
+
* const [isPresent, safeToRemove] = usePresence()
|
|
4969
|
+
*
|
|
4970
|
+
* useEffect(() => {
|
|
4971
|
+
* !isPresent setTimeout(safeToRemove, 1000)
|
|
4972
|
+
* }, [isPresent])
|
|
4973
|
+
* ```
|
|
4974
|
+
*
|
|
4975
|
+
* @public
|
|
4976
|
+
*/
|
|
4977
|
+
function usePresence() {
|
|
4978
|
+
var exitProps = useContext(MotionContext).exitProps;
|
|
4979
|
+
if (!exitProps)
|
|
4980
|
+
return [true];
|
|
4981
|
+
var isExiting = exitProps.isExiting, onExitComplete = exitProps.onExitComplete;
|
|
4982
|
+
return isExiting && onExitComplete ? [false, onExitComplete] : [true];
|
|
4983
|
+
}
|
|
4984
|
+
|
|
4955
4985
|
// Does this device prefer reduced motion? Returns `null` server-side.
|
|
4956
4986
|
var prefersReducedMotion = motionValue(null);
|
|
4957
4987
|
if (typeof window !== "undefined") {
|
|
@@ -5023,4 +5053,4 @@ function ReducedMotion(_a) {
|
|
|
5023
5053
|
return (createElement(MotionContext.Provider, { value: context }, children));
|
|
5024
5054
|
}
|
|
5025
5055
|
|
|
5026
|
-
export { AnimatePresence, AnimationControls, DragControls, MotionContext, MotionPluginContext, MotionPlugins, MotionValue, Point, ReducedMotion, UnstableSyncLayout, animationControls, createMotionComponent, isValidMotionProp, motion, motionValue, transform, unwrapMotionValue, useAnimatedState, useAnimation, useCycle, useDomEvent, useDragControls, useExternalRef, useGestures, useInvertedScale, useMotionValue, usePanGesture, useReducedMotion, useSpring, useTapGesture, useTransform, useViewportScroll };
|
|
5056
|
+
export { AnimatePresence, AnimationControls, DragControls, MotionContext, MotionPluginContext, MotionPlugins, MotionValue, Point, ReducedMotion, UnstableSyncLayout, animationControls, createMotionComponent, isValidMotionProp, motion, motionValue, transform, unwrapMotionValue, useAnimatedState, useAnimation, useCycle, useDomEvent, useDragControls, useExternalRef, useGestures, useInvertedScale, useMotionValue, usePanGesture, usePresence, useReducedMotion, useSpring, useTapGesture, useTransform, useViewportScroll };
|
package/dist/framer-motion.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],n):n((t=t||self).Motion={},t.React)}(this,function(r,C){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(t,n)};var P=function(){return(P=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)};function b(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(e[r[o]]=t[r[o]])}return e}function S(){for(var t=0,n=0,e=arguments.length;n<e;n++)t+=arguments[n].length;var r=Array(t),o=0;for(n=0;n<e;n++)for(var i=arguments[n],a=0,u=i.length;a<u;a++,o++)r[o]=i[a];return r}var t,n,w=function(){},o=0,i="undefined"!=typeof window&&void 0!==window.requestAnimationFrame?function(t){return window.requestAnimationFrame(t)}:function(t){var n=Date.now(),e=Math.max(0,16.7-(n-o));o=n+e,setTimeout(function(){return t(o)},e)};(n=t=t||{}).Read="read",n.Update="update",n.Render="render",n.PostRender="postRender",n.FixedUpdate="fixedUpdate";function d(t){return m=t}function a(t){return O[t].process(y)}function T(){return y}function u(n,e){return function(t){return Math.max(Math.min(t,e),n)}}function l(t){return t%1?Number(t.toFixed(5)):t}function s(n){return{test:function(t){return"string"==typeof t&&t.endsWith(n)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+n}}}function c(t){return void 0!==t.red}function f(t){return void 0!==t.hue}function p(i){return function(t){if("string"!=typeof t)return t;for(var n,e={},r=(n=t).substring(n.indexOf("(")+1,n.lastIndexOf(")")).split(/,\s*/),o=0;o<4;o++)e[i[o]]=void 0!==r[o]?parseFloat(r[o]):1;return e}}var h=1/60*1e3,v=!0,m=!1,g=!1,y={delta:0,timestamp:0},x=[t.Read,t.Update,t.Render,t.PostRender],E=x.reduce(function(t,n){var r,i,a,u,s,o,c,f,l,p=(r=d,i=[],s=!(a=[]),o=u=0,c=new WeakSet,f=new WeakSet,l={cancel:function(t){var n=a.indexOf(t);c.add(t),-1!==n&&a.splice(n,1)},process:function(t){var n,e;if(s=!0,i=(n=[a,i])[0],(a=n[1]).length=0,u=i.length)for(o=0;o<u;o++)(e=i[o])(t),!0!==f.has(e)||c.has(e)||(l.schedule(e),r(!0));s=!1},schedule:function(t,n,e){void 0===n&&(n=!1),void 0===e&&(e=!1),w("function"==typeof t,"Argument must be a function");var r=e&&s,o=r?i:a;c.delete(t),n&&f.add(t),-1===o.indexOf(t)&&(o.push(t),r&&(u=i.length))}});return t.sync[n]=function(t,n,e){return void 0===n&&(n=!1),void 0===e&&(e=!1),m||M(),p.schedule(t,n,e),t},t.cancelSync[n]=function(t){return p.cancel(t)},t.steps[n]=p,t},{steps:{},sync:{},cancelSync:{}}),O=E.steps,F=E.sync,I=E.cancelSync,A=function(t){m=!1,y.delta=v?h:Math.max(Math.min(t-y.timestamp,40),1),v||(h=y.delta),y.timestamp=t,g=!0,x.forEach(a),g=!1,m&&(v=!1,i(A))},M=function(){v=m=!0,g||i(A)},R=function(){return(R=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)},k=/(-)?(\d[\d\.]*)/g,V=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,D=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))$/i,L={test:function(t){return"number"==typeof t},parse:parseFloat,transform:function(t){return t}},B=R({},L,{transform:u(0,1)}),X=(R({},L,{default:1}),s("deg")),Y=s("%"),j=s("px"),H=s("vh"),z=s("vw"),N=(R({},Y,{parse:function(t){return Y.parse(t)/100},transform:function(t){return Y.transform(100*t)}}),u(0,255)),U=R({},L,{transform:function(t){return Math.round(N(t))}});function W(t,n){return t.startsWith(n)&&D.test(t)}function G(t){return"number"==typeof t?0:t}function _(n){return function(t){return 1-n(1-t)}}function q(n){return function(t){return t<=.5?n(2*t)/2:(2-n(2*(1-t)))/2}}function Z(n){return function(t){return Math.pow(t,n)}}function $(n){return function(t){return t*t*((n+1)*t-n)}}function K(t){var n=$(t);return function(t){return(t*=2)<1?.5*n(t):.5*(2-Math.pow(2,-10*(t-1)))}}function J(t){return t}function Q(t){return 1-Math.sin(Math.acos(t))}function tt(t){var n=t*t;return t<4/11?7.5625*n:t<8/11?9.075*n-9.9*t+3.4:t<.9?4356/361*n-35442/1805*t+16061/1805:10.8*t*t-20.52*t+10.72}function nt(t,n){return 1-3*n+3*t}function et(t,n){return 3*n-6*t}function rt(t){return 3*t}function ot(t,n,e){return 3*nt(n,e)*t*t+2*et(n,e)*t+rt(n)}function it(t,n,e){return((nt(n,e)*t+et(n,e))*t+rt(n))*t}var at={test:function(t){return"string"==typeof t?W(t,"rgb"):c(t)},parse:p(["red","green","blue","alpha"]),transform:function(t){var n,e,r,o,i,a=t.red,u=t.green,s=t.blue,c=t.alpha,f=void 0===c?1:c;return n={red:U.transform(a),green:U.transform(u),blue:U.transform(s),alpha:l(B.transform(f))},e=n.red,r=n.green,o=n.blue,i=n.alpha,"rgba("+e+", "+r+", "+o+", "+(void 0===i?1:i)+")"}},ut={test:function(t){return"string"==typeof t?W(t,"hsl"):f(t)},parse:p(["hue","saturation","lightness","alpha"]),transform:function(t){var n,e,r,o,i,a=t.hue,u=t.saturation,s=t.lightness,c=t.alpha,f=void 0===c?1:c;return n={hue:Math.round(a),saturation:Y.transform(l(u)),lightness:Y.transform(l(s)),alpha:l(B.transform(f))},e=n.hue,r=n.saturation,o=n.lightness,i=n.alpha,"hsla("+e+", "+r+", "+o+", "+(void 0===i?1:i)+")"}},st=R({},at,{test:function(t){return"string"==typeof t&&W(t,"#")},parse:function(t){var n="",e="",r="";return 4<t.length?(n=t.substr(1,2),e=t.substr(3,2),r=t.substr(5,2)):(n=t.substr(1,1),e=t.substr(2,1),r=t.substr(3,1),n+=n,e+=e,r+=r),{red:parseInt(n,16),green:parseInt(e,16),blue:parseInt(r,16),alpha:1}}}),ct={test:function(t){return"string"==typeof t&&D.test(t)||c(t)||f(t)},parse:function(t){return at.test(t)?at.parse(t):ut.test(t)?ut.parse(t):st.test(t)?st.parse(t):t},transform:function(t){return c(t)?at.transform(t):f(t)?ut.transform(t):t}},ft="${c}",lt={test:function(t){if("string"!=typeof t||!isNaN(t))return!1;var n=0,e=t.match(k),r=t.match(V);return e&&(n+=e.length),r&&(n+=r.length),0<n},parse:function(t){var n=t,e=[],r=n.match(V);r&&(n=n.replace(V,ft),e.push.apply(e,r.map(ct.parse)));var o=n.match(k);return o&&e.push.apply(e,o.map(L.parse)),e},createTransformer:function(t){var r=t,o=0,n=t.match(V),i=n?n.length:0;if(n)for(var e=0;e<i;e++)r=r.replace(n[e],ft),o++;var a=r.match(k),u=a?a.length:0;if(a)for(e=0;e<u;e++)r=r.replace(a[e],"${n}"),o++;return function(t){for(var n=r,e=0;e<o;e++)n=n.replace(e<i?ft:"${n}",e<i?ct.transform(t[e]):l(t[e]));return n}},getAnimatableNone:function(t){var n=lt.parse(t);return lt.createTransformer(t)(n.map(G))}},pt=_,dt=q,ht=Z(2),vt=_(ht),mt=q(ht),gt=_(Q),yt=q(gt),bt=$(1.525),wt=_(bt),xt=q(bt),Et=K(1.525),Ct="undefined"!=typeof Float32Array;function Pt(a,n,u,e){function r(t){for(var n,e,r,o=0,i=1;10!==i&&s[i]<=t;++i)o+=.1;return n=(t-s[--i])/(s[i+1]-s[i]),.001<=(r=ot(e=o+.1*n,a,u))?function(t,n){for(var e=0,r=0;e<8;++e){if(0===(r=ot(n,a,u)))return n;n-=(it(n,a,u)-t)/r}return n}(t,e):0===r?e:function(t,n,e){for(var r,o,i=0;0<(r=it(o=n+(e-n)/2,a,u)-t)?e=o:n=o,1e-7<Math.abs(r)&&++i<10;);return o}(t,o,o+.1)}var s=Ct?new Float32Array(11):new Array(11);!function(){for(var t=0;t<11;++t)s[t]=it(.1*t,a,u)}();return function(t){return a===n&&u===e?t:0===t?0:1===t?1:it(r(t),n,e)}}function St(t){return"number"==typeof t}function Tt(r){return function(n,e,t){return void 0!==t?r(n,e,t):function(t){return r(n,e,t)}}}function Ot(t){return t.hasOwnProperty("x")&&t.hasOwnProperty("y")}function At(t){return Ot(t)&&t.hasOwnProperty("z")}function Mt(t,n){return Math.abs(t-n)}function Rt(t,n,e){var r=t*t,o=n*n;return Math.sqrt(Math.max(0,e*(o-r)+r))}function kt(n){return jt.find(function(t){return t.test(n)})}function Vt(t){return"'"+t+"' is not an animatable color. Use the equivalent color code instead."}function Dt(n,e){return function(t){return e(n(t))}}var Lt=Object.freeze({reversed:_,mirrored:q,createReversedEasing:pt,createMirroredEasing:dt,createExpoIn:Z,createBackIn:$,createAnticipateEasing:K,linear:J,easeIn:ht,easeOut:vt,easeInOut:mt,circIn:Q,circOut:gt,circInOut:yt,backIn:bt,backOut:wt,backInOut:xt,anticipate:Et,bounceOut:tt,bounceIn:function(t){return 1-tt(1-t)},bounceInOut:function(t){return t<.5?.5*(1-tt(1-2*t)):.5*tt(2*t-1)+.5},cubicBezier:Pt}),Bt={x:0,y:0,z:0},Ft=Tt(function(t,n,e){return Math.min(Math.max(e,t),n)}),It=function(t,n,e){var r=n-t;return 0==r?1:(e-t)/r},Xt=function(t,n,e){return-e*t+e*n+t},Yt=function(){return(Yt=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)},jt=[st,at,ut],Ht=function(t,n){var e=kt(t),r=kt(n);w(!!e,Vt(t)),w(!!r,Vt(n)),w(e.transform===r.transform,"Both colors must be hex/RGBA, OR both must be HSLA.");var o=e.parse(t),i=r.parse(n),a=Yt({},o),u=e===ut?Xt:Rt;return function(t){for(var n in a)"alpha"!==n&&(a[n]=u(o[n],i[n],t));return a.alpha=Xt(o.alpha,i.alpha,t),e.transform(a)}},zt=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.reduce(Dt)};function Nt(n,e){return St(n)?function(t){return Xt(n,e,t)}:ct.test(n)?Ht(n,e):_t(n,e)}var Ut=function(t,e){var r=t.slice(),o=r.length,i=t.map(function(t,n){return Nt(t,e[n])});return function(t){for(var n=0;n<o;n++)r[n]=i[n](t);return r}},Wt=function(t,n){var e=Yt({},t,n),r={};for(var o in e)void 0!==t[o]&&void 0!==n[o]&&(r[o]=Nt(t[o],n[o]));return function(t){for(var n in r)e[n]=r[n](t);return e}};function Gt(t){for(var n=lt.parse(t),e=n.length,r=0,o=0,i=0,a=0;a<e;a++)r||"number"==typeof n[a]?r++:void 0!==n[a].hue?i++:o++;return{parsed:n,numNumbers:r,numRGB:o,numHSL:i}}var _t=function(t,n){var e=lt.createTransformer(n),r=Gt(t),o=Gt(n);return w(r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers,"Complex values '"+t+"' and '"+n+"' too different to mix. Ensure all colors are of the same type."),zt(Ut(r.parsed,o.parsed),e)},qt=function(n,e){return function(t){return Xt(n,e,t)}};function Zt(t,n,e){for(var r,o=[],i=e||("number"==typeof(r=t[0])?qt:"string"==typeof r?ct.test(r)?Ht:_t:Array.isArray(r)?Ut:"object"==typeof r?Wt:void 0),a=t.length-1,u=0;u<a;u++){var s=i(t[u],t[u+1]);if(n){var c=Array.isArray(n)?n[u]:n;s=zt(c,s)}o.push(s)}return o}function $t(t,n,e){var r=void 0===e?{}:e,o=r.clamp,i=void 0===o||o,a=r.ease,u=r.mixer,s=t.length;w(s===n.length,"Both input and output ranges must be the same length"),w(!a||!Array.isArray(a)||a.length===s-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[s-1]&&(t=[].concat(t),n=[].concat(n),t.reverse(),n.reverse());var c,f,l,p,d,h,v,m,g,y=Zt(n,a,u),b=2===s?(h=y,v=(d=t)[0],m=d[1],g=h[0],function(t){return g(It(v,m,t))}):(f=y,l=(c=t).length,p=l-1,function(t){var n=0,e=!1;if(t<=c[0]?e=!0:t>=c[p]&&(n=p-1,e=!0),!e){for(var r=1;r<l&&!(c[r]>t||r===p);r++);n=r-1}var o=It(c[n],c[n+1],t);return f[n](o)});return i?zt(Ft(t[0],t[s-1]),b):b}function Kt(t,n){return n?t*(1e3/n):0}var Jt=Tt(function(t,n,e){var r=n-t;return((e-t)%r+r)%r+t}),Qt=(Ft(0,1),tn.prototype.addChild=function(t){void 0===t&&(t={});var n=new tn(this.current,P({parent:this},t));return this.children||(this.children=new Set),this.children.add(n),n},tn.prototype.removeChild=function(t){this.children&&this.children.delete(t)},tn.prototype.subscribeTo=function(t,n){function e(){return n(r.current)}var r=this;return t.add(e),function(){return t.delete(e)}},tn.prototype.onChange=function(t){return this.updateSubscribers||(this.updateSubscribers=new Set),this.subscribeTo(this.updateSubscribers,t)},tn.prototype.onRenderRequest=function(t){return this.renderSubscribers||(this.renderSubscribers=new Set),this.notifySubscriber(t),this.subscribeTo(this.renderSubscribers,t)},tn.prototype.attach=function(t){this.passiveEffect=t},tn.prototype.set=function(t,n){void 0===n&&(n=!0),n&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,n)},tn.prototype.get=function(){return this.current},tn.prototype.getVelocity=function(){return this.canTrackVelocity?Kt(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},tn.prototype.start=function(n){var e=this;return this.stop(),new Promise(function(t){e.stopAnimation=n(t)}).then(function(){return e.clearAnimation()})},tn.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},tn.prototype.isAnimating=function(){return!!this.stopAnimation},tn.prototype.clearAnimation=function(){this.stopAnimation=null},tn.prototype.destroy=function(){this.updateSubscribers&&this.updateSubscribers.clear(),this.renderSubscribers&&this.renderSubscribers.clear(),this.parent&&this.parent.removeChild(this),this.stop()},tn);function tn(t,n){var e,i=this,r=void 0===n?{}:n,o=r.transformer,a=r.parent;this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.updateAndNotify=function(t,n){void 0===n&&(n=!0),i.prev=i.current,i.current=i.transformer?i.transformer(t):t,i.updateSubscribers&&i.prev!==i.current&&i.updateSubscribers.forEach(i.notifySubscriber),i.children&&i.children.forEach(i.setChild),n&&i.renderSubscribers&&i.renderSubscribers.forEach(i.notifySubscriber);var e=T(),r=e.delta,o=e.timestamp;i.lastUpdated!==o&&(i.timeDelta=r,i.lastUpdated=o,F.postRender(i.scheduleVelocityCheck))},this.notifySubscriber=function(t){t(i.current)},this.scheduleVelocityCheck=function(){return F.postRender(i.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==i.lastUpdated&&(i.prev=i.current)},this.setChild=function(t){return t.set(i.current)},this.parent=a,this.transformer=o,this.set(t,!1),this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e)))}function nn(t,n){return new Qt(t,n)}function en(n,e){return function(t){return Math.max(Math.min(t,e),n)}}function rn(t){return t%1?Number(t.toFixed(5)):t}function on(n){return{test:function(t){return"string"==typeof t&&t.endsWith(n)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+n}}}function an(t){return void 0!==t.red}function un(t){return void 0!==t.hue}function sn(i){return function(t){if("string"!=typeof t)return t;for(var n,e={},r=(n=t).substring(n.indexOf("(")+1,n.lastIndexOf(")")).split(/,\s*/),o=0;o<4;o++)e[i[o]]=void 0!==r[o]?parseFloat(r[o]):1;return e}}var cn=function(){return(cn=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)},fn=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))$/i,ln={test:function(t){return"number"==typeof t},parse:parseFloat,transform:function(t){return t}},pn=cn(cn({},ln),{transform:en(0,1)}),dn=cn(cn({},ln),{default:1}),hn=on("deg"),vn=on("%"),mn=on("px"),gn=cn(cn({},vn),{parse:function(t){return vn.parse(t)/100},transform:function(t){return vn.transform(100*t)}}),yn=en(0,255),bn=cn(cn({},ln),{transform:function(t){return Math.round(yn(t))}});function wn(t,n){return t.startsWith(n)&&fn.test(t)}function xn(t){var e=t.onRead,n=t.onRender,r=t.uncachedValues,c=void 0===r?new Set:r,o=t.useCache,f=void 0===o||o;return function(t){void 0===t&&(t={});var r=b(t,[]),o={},i=[],a=!1;function u(t,n){t.startsWith("--")&&(r.hasCSSVariable=!0);var e=o[t];o[t]=n,o[t]!==e&&(-1===i.indexOf(t)&&i.push(t),a||(a=!0,F.render(s.render)))}var s={get:function(t,n){return void 0===n&&(n=!1),!n&&f&&!c.has(t)&&void 0!==o[t]?o[t]:e(t,r)},set:function(t,n){if("string"==typeof t)u(t,n);else for(var e in t)u(e,t[e]);return this},render:function(t){return void 0===t&&(t=!1),!a&&!0!==t||(n(o,r,i),a=!1,i.length=0),this}};return s}}function En(t,n){return kn.set(t,Mn(n))}var Cn,Pn={test:function(t){return"string"==typeof t?wn(t,"rgb"):an(t)},parse:sn(["red","green","blue","alpha"]),transform:function(t){var n,e,r,o,i,a=t.red,u=t.green,s=t.blue,c=t.alpha,f=void 0===c?1:c;return n={red:bn.transform(a),green:bn.transform(u),blue:bn.transform(s),alpha:rn(pn.transform(f))},e=n.red,r=n.green,o=n.blue,i=n.alpha,"rgba("+e+", "+r+", "+o+", "+(void 0===i?1:i)+")"}},Sn={test:function(t){return"string"==typeof t?wn(t,"hsl"):un(t)},parse:sn(["hue","saturation","lightness","alpha"]),transform:function(t){var n,e,r,o,i,a=t.hue,u=t.saturation,s=t.lightness,c=t.alpha,f=void 0===c?1:c;return n={hue:Math.round(a),saturation:vn.transform(rn(u)),lightness:vn.transform(rn(s)),alpha:rn(pn.transform(f))},e=n.hue,r=n.saturation,o=n.lightness,i=n.alpha,"hsla("+e+", "+r+", "+o+", "+(void 0===i?1:i)+")"}},Tn=cn(cn({},Pn),{test:function(t){return"string"==typeof t&&wn(t,"#")},parse:function(t){var n="",e="",r="";return 4<t.length?(n=t.substr(1,2),e=t.substr(3,2),r=t.substr(5,2)):(n=t.substr(1,1),e=t.substr(2,1),r=t.substr(3,1),n+=n,e+=e,r+=r),{red:parseInt(n,16),green:parseInt(e,16),blue:parseInt(r,16),alpha:1}}}),On={test:function(t){return"string"==typeof t&&fn.test(t)||an(t)||un(t)},parse:function(t){return Pn.test(t)?Pn.parse(t):Sn.test(t)?Sn.parse(t):Tn.test(t)?Tn.parse(t):t},transform:function(t){return an(t)?Pn.transform(t):un(t)?Sn.transform(t):t}},An=/([a-z])([A-Z])/g,Mn=function(t){return t.replace(An,"$1-$2").toLowerCase()},Rn=new Map,kn=new Map,Vn=["Webkit","Moz","O","ms",""],Dn=Vn.length,Ln="undefined"!=typeof document,Bn=function(t,n){void 0===n&&(n=!1);var e,r=n?kn:Rn;return r.has(t)||(Ln?function(t){Cn=Cn||document.createElement("div");for(var n=0;n<Dn;n++){var e=Vn[n],r=""===e,o=r?t:e+t.charAt(0).toUpperCase()+t.slice(1);if(o in Cn.style||r){if(r&&"clipPath"===t&&kn.has(t))return;Rn.set(t,o),En(t,(r?"":"-")+Mn(o))}}}(t):En(e=t,e)),r.get(t)||t},Fn=["","X","Y","Z"],In=["translate","scale","rotate","skew","transformPerspective"].reduce(function(t,e){return Fn.reduce(function(t,n){return t.push(e+n),t},t)},["x","y","z"]),Xn=In.reduce(function(t,n){return t[n]=!0,t},{});function Yn(t){return!0===Xn[t]}function jn(t,n){return In.indexOf(t)-In.indexOf(n)}var Hn=new Set(["originX","originY","originZ"]);var zn=P(P({},ln),{transform:Math.round}),Nn={color:On,backgroundColor:On,outlineColor:On,fill:On,stroke:On,borderColor:On,borderTopColor:On,borderRightColor:On,borderBottomColor:On,borderLeftColor:On,borderWidth:mn,borderTopWidth:mn,borderRightWidth:mn,borderBottomWidth:mn,borderLeftWidth:mn,borderRadius:mn,radius:mn,borderTopLeftRadius:mn,borderTopRightRadius:mn,borderBottomRightRadius:mn,borderBottomLeftRadius:mn,width:mn,maxWidth:mn,height:mn,maxHeight:mn,size:mn,top:mn,right:mn,bottom:mn,left:mn,padding:mn,paddingTop:mn,paddingRight:mn,paddingBottom:mn,paddingLeft:mn,margin:mn,marginTop:mn,marginRight:mn,marginBottom:mn,marginLeft:mn,rotate:hn,rotateX:hn,rotateY:hn,rotateZ:hn,scale:dn,scaleX:dn,scaleY:dn,scaleZ:dn,skew:hn,skewX:hn,skewY:hn,distance:mn,translateX:mn,translateY:mn,translateZ:mn,x:mn,y:mn,z:mn,perspective:mn,opacity:pn,originX:gn,originY:gn,originZ:mn,zIndex:zn,fillOpacity:pn,strokeOpacity:pn,numOctaves:zn},Un=function(t){return Nn[t]},Wn=function(t,n){return n&&"number"==typeof t?n.transform(t):t},Gn="scrollLeft",_n="scrollTop",qn=new Set([Gn,_n]),Zn=new Set([Gn,_n,"transform"]),$n={x:"translateX",y:"translateY",z:"translateZ"};function Kn(t){return"function"==typeof t}function Jn(t,n,e,r,o,i,a){void 0===n&&(n=!0),void 0===e&&(e={}),void 0===r&&(r={}),void 0===o&&(o={}),void 0===i&&(i=[]),void 0===a&&(a=!1);var u,s=!0,c=!1,f=!1;for(var l in t){var p=t[l],d=Un(l),h=Wn(p,d);Yn(l)?(c=!0,r[l]=h,i.push(l),s&&(d.default&&p!==d.default||!d.default&&0!==p)&&(s=!1)):(u=l,Hn.has(u)?(o[l]=h,f=!0):Zn.has(l)&&Kn(h)||(e[Bn(l,a)]=h))}return!c&&"function"!=typeof t.transform||(e.transform=function(t,n,e,r,o){var i="",a=!1;e.sort(jn);for(var u=e.length,s=0;s<u;s++){var c=e[s];i+=($n[c]||c)+"("+n[c]+") ",a="z"===c||a}return!a&&o?i+="translateZ(0)":i=i.trim(),Kn(t.transform)?i=t.transform(n,r?"":i):r&&(i="none"),i}(t,r,i,s,n)),f&&(e.transformOrigin=(o.originX||"50%")+" "+(o.originY||"50%")+" "+(o.originZ||0)),e}function Qn(n,e){void 0===n&&(n=!0),void 0===e&&(e=!0);var r={},o={},i={},a=[];return function(t){return a.length=0,Jn(t,n,r,o,i,a,e),r}}var te=xn({onRead:function(t,n){var e=n.element,r=n.preparseOutput,o=Un(t);if(Yn(t))return o&&o.default||0;if(qn.has(t))return e[t];var i=window.getComputedStyle(e,null).getPropertyValue(Bn(t,!0))||0;return r&&o&&o.test(i)&&o.parse?o.parse(i):i},onRender:function(t,n,e){var r=n.element,o=n.buildStyles,i=n.hasCSSVariable;if(Object.assign(r.style,o(t)),i)for(var a=e.length,u=0;u<a;u++){var s=e[u];s.startsWith("--")&&r.style.setProperty(s,t[s])}-1!==e.indexOf(Gn)&&(r[Gn]=t[Gn]),-1!==e.indexOf(_n)&&(r[_n]=t[_n])},uncachedValues:qn});var ne=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues"]),ee=.5,re=function(){return{style:{}}},oe=function(t,n){return mn.transform(t*n)},ie={x:0,y:0,width:0,height:0};function ae(t,n,e){return"string"==typeof t?t:mn.transform(n+e*t)}function ue(t,n,e,r,o,i){void 0===n&&(n=ie),void 0===r&&(r=Qn(!1,!1)),void 0===o&&(o=re()),void 0===i&&(i=!0);var a,u,s=t.attrX,c=t.attrY,f=t.originX,l=t.originY,p=t.pathLength,d=t.pathSpacing,h=void 0===d?1:d,v=t.pathOffset,m=void 0===v?0:v,g=r(b(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]));for(var y in g){if("transform"===y)o.style.transform=g[y];else o[i&&!ne.has(y)?Mn(y):y]=g[y]}return void 0===f&&void 0===l&&!g.transform||(o.style.transformOrigin=(u=void 0!==l?l:ee,ae(void 0!==f?f:ee,(a=n).x,a.width)+" "+ae(u,a.y,a.height))),void 0!==s&&(o.x=s),void 0!==c&&(o.y=c),void 0!==e&&void 0!==p&&(o[i?"stroke-dashoffset":"strokeDashoffset"]=oe(-m,e),o[i?"stroke-dasharray":"strokeDasharray"]=oe(p,e)+" "+oe(h,e)),o}function se(t){var n=function(t){try{return"function"==typeof(n=t).getBBox?n.getBBox():n.getBoundingClientRect()}catch(t){return{x:0,y:0,width:0,height:0}}var n}(t),e="path"===t.tagName&&t.getTotalLength?t.getTotalLength():void 0;return fe({element:t,buildAttrs:function(n,e,r){void 0===r&&(r=!0);var o=re(),i=Qn(!1,!1);return function(t){return ue(t,n,e,i,o,r)}}(n,e)})}function ce(t,n){var e,r,o;return t===window?e=le(t):(o=t)instanceof HTMLElement||"function"==typeof o.click?e=function(t,n){void 0===n&&(n={});var e=n.enableHardwareAcceleration,r=b(n,["enableHardwareAcceleration"]);return te(P({element:t,buildStyles:Qn(e),preparseOutput:!0},r))}(t,n):((r=t)instanceof SVGElement||"ownerSVGElement"in r)&&(e=se(t)),w(void 0!==e,"No valid node provided. Node must be HTMLElement, SVGElement or window."),pe.set(t,e),e}var fe=xn({onRead:function(t,n){var e=n.element;if(Yn(t=ne.has(t)?t:Mn(t))){var r=Un(t);return r&&r.default||0}return e.getAttribute(t)},onRender:function(t,n){var e=n.element,r=(0,n.buildAttrs)(t);for(var o in r)"style"===o?Object.assign(e.style,r.style):e.setAttribute(o,r[o])}}),le=xn({useCache:!1,onRead:function(t){return"scrollTop"===t?window.pageYOffset:window.pageXOffset},onRender:function(t){var n=t.scrollTop,e=void 0===n?0:n,r=t.scrollLeft,o=void 0===r?0:r;return window.scrollTo(o,e)}}),pe=new WeakMap,de=function(t,n){return pe.has(t)?pe.get(t):ce(t,n)};function he(t,n){var e="string"==typeof t?document.querySelector(t):t;return de(e,n)}function ve(t){var n=C.useRef(null);return null===n.current&&(n.current=t()),n.current}var me=function(t){return t instanceof Qt},ge=xn({onRead:function(){return null},onRender:function(t,n){return(0,n.onUpdate)(t)}}),ye=(be.prototype.has=function(t){return this.values.has(t)},be.prototype.set=function(t,n){this.values.set(t,n),this.hasMounted&&this.bindValueToOutput(t,n)},be.prototype.get=function(t,n){var e=this.values.get(t);return void 0===e&&void 0!==n&&(e=new Qt(n),this.set(t,e)),e},be.prototype.forEach=function(t){return this.values.forEach(t)},be.prototype.bindValueToOutput=function(n,t){var e=this,r=t.onRenderRequest(function(t){return e.output&&e.output(n,t)}),o=t.onChange(function(t){e.onUpdate&&e.onUpdate.set(n,t)});this.unsubscribers.has(n)&&this.unsubscribers.get(n)(),this.unsubscribers.set(n,function(){r(),o()})},be.prototype.setOnUpdate=function(t){this.onUpdate=void 0,t&&(this.onUpdate=ge({onUpdate:t}))},be.prototype.setTransformTemplate=function(t){this.transformTemplate!==t&&(this.transformTemplate=t,this.updateTransformTemplate())},be.prototype.getTransformTemplate=function(){return this.transformTemplate},be.prototype.updateTransformTemplate=function(){this.output&&this.output("transform",this.transformTemplate)},be.prototype.mount=function(t){var e=this;this.hasMounted=!0,t&&(this.output=t),this.values.forEach(function(t,n){return e.bindValueToOutput(n,t)}),this.updateTransformTemplate()},be.prototype.unmount=function(){var r=this;this.values.forEach(function(t,n){var e=r.unsubscribers.get(n);e&&e()})},be);function be(){this.hasMounted=!1,this.values=new Map,this.unsubscribers=new Map}function we(e){var t=ve(function(){var t=new ye;for(var n in e)me(e[n])&&!Ie.has(n)&&t.set(n,e[n]);return t});return t.setOnUpdate(e.onUpdate),t.setTransformTemplate(e.transformTemplate),t}function xe(t){return Array.isArray(t)}function Ee(t){return xe(t)?t[t.length-1]||0:t}function Ce(n){return function(t){return t.test(n)}}function Pe(t){return Ge.find(Ce(t))}function Se(t){return new Ze({init:t})}function Te(e){function r(t,n){return void 0!==t&&!e[n](t)}var t=Object.keys(e);return{getVectorKeys:function(e){return t.reduce(function(t,n){return r(e[n],n)&&t.push(n),t},[])},testVectorProps:function(n){return n&&t.some(function(t){return r(n[t],t)})}}}function Oe(n){return $e.find(function(t){return t.test(n)})}function Ae(t,n){return t(n)}function Me(t,n){var e=n.from,r=n.to,o=b(n,["from","to"]),i=Oe(e)||Oe(r),a=i.transform,u=i.parse;return t(P({},o,{from:"string"==typeof e?u(e):e,to:"string"==typeof r?u(r):r})).pipe(a)}function Re(i){return function(t,n){var e=n.from,r=n.to,o=b(n,["from","to"]);return t(P({},o,{from:0,to:1})).pipe(i(e,r))}}function ke(r,t){var n=Te(t),o=n.testVectorProps,i=n.getVectorKeys;return function(t){if(!o(t))return r(t);var n=i(t),e=t[n[0]];return Qe(e)(r,t,n)}}function Ve(B){return void 0===B&&(B={}),Se(function(t){function r(t){var n;void 0===t&&(t=!1),V=rr({from:x=(n=[C,x])[0],to:C=n[1],ease:l,reverseEase:t}).start(a)}function o(){D=or(It(0,c,S)),V.seek(D)}function n(){L=!0,i=F.update(function(t){var n,e=t.delta;S+=e,o(),!(n=L&&c+b<S)||(!n||v||d||g)&&(S=S-c-b,v&&k<v?(k++,!0):d&&O<d?(O++,r(),!0):g&&M<g&&(r(++M%2!=0),!0))||(I.update(i),u&&F.update(u,!1,!0))},!0)}function e(){L=!1,i&&I.update(i)}var i,a=t.update,u=t.complete,s=B.duration,c=void 0===s?300:s,f=B.ease,l=void 0===f?vt:f,p=B.flip,d=void 0===p?0:p,h=B.loop,v=void 0===h?0:h,m=B.yoyo,g=void 0===m?0:m,y=B.repeatDelay,b=void 0===y?0:y,w=B.from,x=void 0===w?0:w,E=B.to,C=void 0===E?1:E,P=B.elapsed,S=void 0===P?0:P,T=B.flipCount,O=void 0===T?0:T,A=B.yoyoCount,M=void 0===A?0:A,R=B.loopCount,k=void 0===R?0:R,V=rr({from:x,to:C,ease:l}).start(a),D=0,L=!1;return n(),{isActive:function(){return L},getElapsed:function(){return Ft(0,c,S)},getProgress:function(){return D},stop:function(){e()},pause:function(){return e(),this},resume:function(){return L||n(),this},seek:function(t){return S=Xt(0,c,t),F.update(o,!1,!0),this},reverse:function(){return r(),this}}})}function De(r,o,i){return Se(function(t){var n=t.update,e=o.split(" ").map(function(t){return r.addEventListener(t,n,i),t});return{stop:function(){return e.forEach(function(t){return r.removeEventListener(t,n,i)})}}})}function Le(){return{clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}}function Be(t,n){return void 0===n&&(n=Le()),n.clientX=n.x=t.clientX,n.clientY=n.y=t.clientY,n.pageX=t.pageX,n.pageY=t.pageY,n}var Fe,Ie=new Set(["dragOriginX","dragOriginY"]),Xe=null,Ye=function(){return null!==Xe},je=function(){w(!Xe,"Sync render session already open"),Xe=[]},He=function(){w(null!==Xe,"No sync render session found"),Xe&&Xe.forEach(function(t){return t.render()}),Xe=null},ze=function(t){w(null!==Xe,"No sync render session found"),Xe&&Xe.push(t)},Ne=C.memo(function(t){var n=t.innerRef,r=t.values,o=t.isStatic;return C.useEffect(function(){w(n.current instanceof Element,"No `ref` found. Ensure components created with `motion.custom` forward refs using `React.forwardRef`");var e=he(n.current,{preparseOutput:!1,enableHardwareAcceleration:!o});return r.mount(function(t,n){e.set(t,n),Ye()&&ze(e)}),function(){return r.unmount()}},[]),null}),Ue=(Fe=function(t){return t.get()},function(t){var e={};return t.forEach(function(t,n){return e[n]=Fe(t)}),e}),We=new Set(["originX","originY","originZ"]),Ge=[L,j,Y,X,z,H,{test:function(t){return"auto"===t},parse:function(t){return t}}],_e=S(Ge,[ct,lt]),qe=function(){return function(t,n){var e=this,r=t.middleware,o=t.onComplete;this.isActive=!0,this.update=function(t){e.observer.update&&e.updateObserver(t)},this.complete=function(){e.observer.complete&&e.isActive&&e.observer.complete(),e.onComplete&&e.onComplete(),e.isActive=!1},this.error=function(t){e.observer.error&&e.isActive&&e.observer.error(t),e.isActive=!1},this.observer=n,this.updateObserver=function(t){return n.update(t)},this.onComplete=o,n.update&&r&&r.length&&r.forEach(function(t){return e.updateObserver=t(e.updateObserver,e.complete)})}}(),Ze=function(){function n(t){void 0===t&&(t={}),this.props=t}return n.prototype.create=function(t){return new n(t)},n.prototype.start=function(t){void 0===t&&(t={});var n,e,r,o=!1,i={stop:function(){}},a=this.props,u=a.init,s=b(a,["init"]),c=u((n=t,e=function(){o=!0,i.stop()},r=s.middleware,new qe({middleware:r,onComplete:e},"function"==typeof n?{update:n}:n)));return i=c?P({},i,c):i,o&&i.stop(),i},n.prototype.applyMiddleware=function(t){return this.create(P({},this.props,{middleware:this.props.middleware?[t].concat(this.props.middleware):[t]}))},n.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=1===t.length?t[0]:zt.apply(void 0,t);return this.applyMiddleware(function(n){return function(t){return n(e(t))}})},n}(),$e=[j,Y,X,H,z],Ke=Re(Ht),Je=Re(_t),Qe=function(t){return"number"==typeof t?Ae:Boolean(Oe(t))?Me:ct.test(t)?Ke:lt.test(t)?Je:Ae},tr=ke(function(b){return void 0===b&&(b={}),Se(function(t){var o=t.complete,i=t.update,n=b.velocity,e=void 0===n?0:n,r=b.from,a=void 0===r?0:r,u=b.power,s=void 0===u?.8:u,c=b.timeConstant,f=void 0===c?350:c,l=b.restDelta,p=void 0===l?.5:l,d=b.modifyTarget,h=0,v=s*e,m=Math.round(a+v),g=void 0===d?m:d(m),y=F.update(function(t){var n=t.delta;h+=n;var e=-v*Math.exp(-h/f),r=p<e||e<-p;i(r?g+e:g),r||(I.update(y),o())},!0);return{stop:function(){return I.update(y)}}})},{from:L.test,modifyTarget:function(t){return"function"==typeof t},velocity:L.test}),nr=ke(function(S){return void 0===S&&(S={}),Se(function(t){var s=t.update,c=t.complete,n=S.velocity,f=void 0===n?0:n,e=S.from,r=void 0===e?0:e,o=S.to,l=void 0===o?0:o,i=S.stiffness,p=void 0===i?100:i,a=S.damping,d=void 0===a?10:a,u=S.mass,h=void 0===u?1:u,v=S.restSpeed,m=void 0===v?.01:v,g=S.restDelta,y=void 0===g?.01:g,b=f?-f/1e3:0,w=0,x=l-r,E=r,C=E,P=F.update(function(t){var n=t.delta;w+=n;var e=d/(2*Math.sqrt(p*h)),r=Math.sqrt(p/h)/1e3;if(C=E,e<1){var o=Math.exp(-e*r*w),i=r*Math.sqrt(1-e*e);E=l-o*((b+e*r*x)/i*Math.sin(i*w)+x*Math.cos(i*w))}else{o=Math.exp(-r*w);E=l-o*(x+(b+r*x)*w)}f=Kt(E-C,n);var a=Math.abs(f)<=m,u=Math.abs(l-E)<=y;a&&u?(s(E=l),I.update(P),c()):s(E)},!0);return{stop:function(){return I.update(P)}}})},{from:L.test,to:L.test,stiffness:L.test,damping:L.test,mass:L.test,velocity:L.test}),er=ke(function(t){var n=t.from,h=void 0===n?0:n,e=t.velocity,v=void 0===e?0:e,m=t.min,g=t.max,r=t.power,y=void 0===r?.8:r,o=t.timeConstant,b=void 0===o?700:o,i=t.bounceStiffness,w=void 0===i?500:i,a=t.bounceDamping,x=void 0===a?10:a,u=t.restDelta,E=void 0===u?1:u,C=t.modifyTarget;return Se(function(t){function r(t){return void 0!==m&&t<=m}function o(t){return void 0!==g&&g<=t}function n(t){return r(t)||o(t)}function e(t){var n,e;u(t),c=f,v=Kt((f=t)-c,T().delta),a&&!l&&(e=v,r(n=t)&&e<0||o(n)&&0<e)&&p({from:t,velocity:v})}function i(t,n){a&&a.stop(),a=t.start({update:e,complete:function(){n?n():s()}})}var a,u=t.update,s=t.complete,c=h,f=h,l=!1,p=function(t){l=!0,i(nr(P({},t,{to:r(t.from)?m:g,stiffness:w,damping:x,restDelta:E})))};if(n(h))p({from:h,velocity:v});else if(0!==v){var d=tr({from:h,velocity:v,timeConstant:b,power:y,restDelta:n(h)?20:E,modifyTarget:C});i(d,function(){n(f)?p({from:f,velocity:v}):s()})}else s();return{stop:function(){return a&&a.stop()}}})},{from:L.test,velocity:L.test,min:L.test,max:L.test,damping:L.test,stiffness:L.test,modifyTarget:function(t){return"function"==typeof t}}),rr=ke(function(t){var n=t.from,e=void 0===n?0:n,r=t.to,o=void 0===r?1:r,i=t.ease,a=void 0===i?J:i,u=t.reverseEase;return void 0!==u&&u&&(a=pt(a)),Se(function(t){var n=t.update;return{seek:function(t){return n(t)}}}).pipe(a,function(t){return Xt(e,o,t)})},{ease:function(t){return"function"==typeof t},from:L.test,to:L.test}),or=Ft(0,1),ir=Ft(0,1),ar=[Le()];if("undefined"!=typeof document){De(document,"touchstart touchmove",{passive:!0,capture:!0}).start(function(t){for(var n=t.touches,e=n.length,r=ar.length=0;r<e;r++){var o=n[r];ar.push(Be(o))}})}var ur=Le();if("undefined"!=typeof document){De(document,"mousedown mousemove",!0).start(function(t){Be(t,ur)})}function sr(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function cr(t){return{type:"spring",stiffness:700,damping:0===t?100:35}}function fr(){return{ease:"linear",duration:.3}}function lr(t){return{type:"keyframes",duration:.8,values:t}}function pr(t){var r=t.to,o=t.duration;return Se(function(t){var n=t.update,e=t.complete;n(r),o?gr(o).start({complete:e}):e()})}function dr(t){return Array.isArray(t)?(w(4===t.length,"Cubic bezier arrays must contain four numerical values."),Pt(t[0],t[1],t[2],t[3])):"string"==typeof t?(w(void 0!==Lt[t],"Invalid easing type '"+t+"'"),Lt[t]):t}function hr(t){return Array.isArray(t)&&"number"!=typeof t[0]}function vr(t,n){return"zIndex"!==t&&(!("number"!=typeof n&&!Array.isArray(n))||!("string"!=typeof n||!lt.test(n)||n.startsWith("url(")))}function mr(t,n,e){var r,o,i,a=e?e.delay:0;if(void 0===e||!function(t){t.when,t.delay,t.delayChildren,t.staggerChildren,t.staggerDirection;var n=b(t,["when","delay","delayChildren","staggerChildren","staggerDirection"]);return Object.keys(n).length}(e))return P({delay:a},(r=t,i=xe(o=n)?lr:yr[r]||yr.default,P({to:o},i(o))));var u=e[t]||e.default||e;return!1===u.type?{delay:u.hasOwnProperty("delay")?u.delay:a,to:xe(n)?n[n.length-1]:n,type:"just"}:xe(n)?P(P({values:n,duration:.8,delay:a,ease:"linear"},u),{type:"keyframes"}):P({type:"tween",to:n,delay:a},u)}var gr=function(r){return Se(function(t){var n=t.complete,e=setTimeout(n,r);return{stop:function(){return clearTimeout(e)}}})},yr={x:sr,y:sr,z:sr,rotate:sr,rotateX:sr,rotateY:sr,rotateZ:sr,scaleX:cr,scaleY:cr,scale:cr,opacity:fr,backgroundColor:fr,color:fr,default:cr},br=function(t){return 1e3*t},wr={tween:Ve,spring:nr,keyframes:function(t){var n,e,r,o,i=t.easings,a=t.ease,u=void 0===a?J:a,s=t.times,c=t.values,f=b(t,["easings","ease","times","values"]);i=Array.isArray(i)?i:(e=i,(n=c).map(function(){return e||vt}).splice(0,n.length-1)),s=s||(o=(r=c).length,r.map(function(t,n){return 0!==n?n/(o-1):0}));var l=i.map(function(t,n){return rr({from:c[n],to:c[n+1],ease:t})});return Ve(P({},f,{ease:u})).applyMiddleware(function(t){return n=l,e=t,o=(r=s).length,a=(i=o-1)-1,u=n.map(function(t){return t.start(e)}),function(t){t<=r[0]&&u[0].seek(0),t>=r[i]&&u[a].seek(1);for(var n=1;n<o&&!(r[n]>t||n===i);n++);var e=It(r[n-1],r[n],t);u[n-1].seek(ir(e))};var r,n,e,o,i,a,u})},inertia:er,just:pr},xr={tween:function(t){if(t.ease){var n=hr(t.ease)?t.ease[0]:t.ease;t.ease=dr(n)}return t},keyframes:function(t){var n=t.from,e=(t.to,t.velocity,b(t,["from","to","velocity"]));if(e.values&&null===e.values[0]){var r=S(e.values);r[0]=n,e.values=r}return e.ease&&(e.easings=hr(e.ease)?e.ease.map(dr):dr(e.ease)),e.ease=J,e}},Er=function(t,n,e,r){var o,i,a,u=n.get(),s=vr(t,u),c=vr(t,e),f=mr(t,e,r),l=f.type,p=void 0===l?"tween":l,d=b(f,["type"]),h=s&&c?wr[p]:pr,v=(o=p,i=P({from:u,velocity:n.getVelocity()},d),xr[o]?xr[o](i):i);return((a=v).hasOwnProperty("duration")||a.hasOwnProperty("repeatDelay"))&&(v.duration&&(v.duration=br(v.duration)),v.repeatDelay&&(v.repeatDelay=br(v.repeatDelay))),[h,v]};function Cr(s,c,f,t){var n=t.delay,l=void 0===n?0:n,p=b(t,["delay"]);return c.start(function(n){var e,t=Er(s,c,f,p),r=t[0],o=t[1],i=o.delay,a=b(o,["delay"]);void 0!==i&&(l=i);function u(){var t=r(a);e=t.start({update:function(t){return c.set(t)},complete:n})}return l?e=gr(br(l)).start({complete:u}):u(),function(){e&&e.stop()}})}var Pr=(Sr.prototype.setProps=function(t){this.props=t},Sr.prototype.setVariants=function(t){t&&(this.variants=t)},Sr.prototype.setDefaultTransition=function(t){t&&(this.defaultTransition=t)},Sr.prototype.setValues=function(t,n){var r=this,e=void 0===n?{}:n,o=e.isActive,i=void 0===o?new Set:o,a=e.priority,u=this.resolveVariant(t),s=u.target,c=u.transitionEnd;return s=this.transformValues(P(P({},s),c)),Object.keys(s).forEach(function(t){if(!i.has(t)&&(i.add(t),s)){var n=Ee(s[t]);if(r.values.has(t)){var e=r.values.get(t);e&&e.set(n)}else r.values.set(t,nn(n));a||(r.baseTarget[t]=n)}})},Sr.prototype.transformValues=function(t){var n=this.props.transformValues;return n?n(t):t},Sr.prototype.checkForNewValues=function(t){var n,e=Object.keys(t).filter(this.hasValue),r=e.length;if(r)for(var o=0;o<r;o++){var i=e[o],a=t[i],u=null;Array.isArray(a)&&(u=a[0]),null===u&&(u=this.readValueFromSource(i),w(null!==u,'No initial value for "'+i+'" can be inferred. Ensure an initial value for "'+i+'" is defined on the component.')),"string"==typeof u&&/^\d*\.?\d+$/.test(u)?u=parseFloat(u):(n=u,!_e.find(Ce(n))&<.test(a)&&(u=lt.getAnimatableNone(a))),this.values.set(i,nn(u)),this.baseTarget[i]=u}},Sr.prototype.resolveVariant=function(t){if(!t)return{target:void 0,transition:void 0,transitionEnd:void 0};var n,e,r,o;"function"==typeof t&&(t=t(this.props.custom,(r=this.values,o={},r.forEach(function(t,n){return o[n]=t.get()}),o),(n=this.values,e={},n.forEach(function(t,n){return e[n]=t.getVelocity()}),e)));var i=t.transition;return{transition:void 0===i?this.defaultTransition:i,transitionEnd:t.transitionEnd,target:b(t,["transition","transitionEnd"])}},Sr.prototype.getHighestPriority=function(){return this.activeOverrides.size?Math.max.apply(Math,Array.from(this.activeOverrides)):0},Sr.prototype.setOverride=function(n,e){this.overrides[e]=n,this.children&&this.children.forEach(function(t){return t.setOverride(n,e)})},Sr.prototype.startOverride=function(t){var n=this.overrides[t];if(n)return this.start(n,{priority:t})},Sr.prototype.clearOverride=function(n){var t=this;if(this.children&&this.children.forEach(function(t){return t.clearOverride(n)}),this.overrides[n]){this.activeOverrides.delete(n);var e=this.getHighestPriority();this.resetIsAnimating(),!e||this.overrides[e]&&this.startOverride(e);var r=this.resolvedOverrides[n];if(r){var o={};for(var i in this.baseTarget)void 0!==r[i]&&(o[i]=this.baseTarget[i]);this.onStart(),this.animate(o).then(function(){return t.onComplete()})}}},Sr.prototype.apply=function(t){return Array.isArray(t)?this.applyVariantLabels(t):"string"==typeof t?this.applyVariantLabels([t]):void this.setValues(t)},Sr.prototype.applyVariantLabels=function(o){var i=this,a=new Set;S(o).reverse().forEach(function(t){var n=i.resolveVariant(i.variants[t]),e=n.target,r=n.transitionEnd;r&&i.setValues(r,{isActive:a}),e&&i.setValues(e,{isActive:a}),i.children&&i.children.size&&i.children.forEach(function(t){return t.applyVariantLabels(o)})})},Sr.prototype.start=function(t,n){var e,r,o=this;return void 0===n&&(n={}),n.priority&&this.activeOverrides.add(n.priority),this.resetIsAnimating(n.priority),r=t,e=Array.isArray(r)?this.animateVariantLabels(t,n):"string"==typeof t?this.animateVariant(t,n):this.animate(t,n),this.onStart(),e.then(function(){return o.onComplete()})},Sr.prototype.animate=function(t,n){var e=this,r=void 0===n?{}:n,o=r.delay,i=void 0===o?0:o,a=r.priority,u=void 0===a?0:a,s=r.transitionOverride,c=this.resolveVariant(t),f=c.target,l=c.transition,p=c.transitionEnd;if(s&&(l=s),!f)return Promise.resolve();if(f=this.transformValues(f),p=p&&this.transformValues(p),this.checkForNewValues(f),this.makeTargetAnimatable){var d=this.makeTargetAnimatable(f,p);f=d.target,p=d.transitionEnd}u&&(this.resolvedOverrides[u]=f),this.checkForNewValues(f);var h=[];for(var v in f){var m=this.values.get(v);if(m&&f&&void 0!==f[v]){var g=f[v];u||(this.baseTarget[v]=Ee(g)),this.isAnimating.has(v)||(this.isAnimating.add(v),h.push(Cr(v,m,g,P({delay:i},l))))}}var y=Promise.all(h);return p?y.then(function(){e.setValues(p,{priority:u})}):y},Sr.prototype.animateVariantLabels=function(t,n){var e=this,r=S(t).reverse().map(function(t){return e.animateVariant(t,n)});return Promise.all(r)},Sr.prototype.animateVariant=function(t,n){var e=this,r=!1,o=0,i=0,a=1,u=n&&n.priority||0,s=this.variants[t],c=s?function(){return e.animate(s,n)}:function(){return Promise.resolve()},f=this.children?function(){return e.animateChildren(t,o,i,a,u)}:function(){return Promise.resolve()};if(s&&this.children){var l=this.resolveVariant(s).transition;l&&(r=l.when||r,o=l.delayChildren||o,i=l.staggerChildren||i,a=l.staggerDirection||a)}if(r){var p="beforeChildren"===r?[c,f]:[f,c],d=p[1];return(0,p[0])().then(d)}return Promise.all([c(),f()])},Sr.prototype.animateChildren=function(r,o,n,t,i){if(void 0===o&&(o=0),void 0===n&&(n=0),void 0===t&&(t=1),void 0===i&&(i=0),!this.children)return Promise.resolve();var a=[],e=(this.children.size-1)*n,u=1===t?function(t){return t*n}:function(t){return e-t*n};return Array.from(this.children).forEach(function(t,n){var e=t.animateVariant(r,{priority:i,delay:o+u(n)});a.push(e)}),Promise.all(a)},Sr.prototype.onStart=function(){var t=this.props.onAnimationStart;t&&t()},Sr.prototype.onComplete=function(){var t=this.props.onAnimationComplete;t&&t()},Sr.prototype.checkOverrideIsAnimating=function(t){for(var n=this.overrides.length,e=t+1;e<n;e++){var r=this.resolvedOverrides[e];if(r)for(var o in r)this.isAnimating.add(o)}},Sr.prototype.resetIsAnimating=function(n){void 0===n&&(n=0),this.isAnimating.clear(),n<this.getHighestPriority()&&this.checkOverrideIsAnimating(n),this.children&&this.children.forEach(function(t){return t.resetIsAnimating(n)})},Sr.prototype.stop=function(){this.values.forEach(function(t){return t.stop()})},Sr.prototype.addChild=function(e){this.children||(this.children=new Set),this.children.add(e),this.overrides.forEach(function(t,n){t&&e.setOverride(t,n)})},Sr.prototype.removeChild=function(t){this.children&&this.children.delete(t)},Sr.prototype.resetChildren=function(){this.children&&this.children.clear()},Sr);function Sr(t){var e=this,n=t.values,r=t.readValueFromSource,o=t.makeTargetAnimatable;this.props={},this.variants={},this.baseTarget={},this.overrides=[],this.resolvedOverrides=[],this.activeOverrides=new Set,this.isAnimating=new Set,this.hasValue=function(t){return!e.values.has(t)},this.values=n,this.readValueFromSource=r,this.makeTargetAnimatable=o,this.values.forEach(function(t,n){return e.baseTarget[n]=t.get()})}var Tr=(Or.prototype.setVariants=function(n){this.variants=n,this.componentControls.forEach(function(t){return t.setVariants(n)})},Or.prototype.setDefaultTransition=function(n){this.defaultTransition=n,this.componentControls.forEach(function(t){return t.setDefaultTransition(n)})},Or.prototype.subscribe=function(t){var n=this;return this.componentControls.add(t),this.variants&&t.setVariants(this.variants),this.defaultTransition&&t.setDefaultTransition(this.defaultTransition),function(){return n.componentControls.delete(t)}},Or.prototype.start=function(e,r){var n=this;if(this.hasMounted){var o=[];return this.componentControls.forEach(function(t){var n=t.start(e,{transitionOverride:r});o.push(n)}),Promise.all(o)}return new Promise(function(t){n.pendingAnimations.push({animation:[e,r],resolve:t})})},Or.prototype.set=function(n){return w(this.hasMounted,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),this.componentControls.forEach(function(t){return t.apply(n)})},Or.prototype.stop=function(){this.componentControls.forEach(function(t){return t.stop()})},Or.prototype.mount=function(){var r=this;this.hasMounted=!0,this.pendingAnimations.forEach(function(t){var n=t.animation,e=t.resolve;return r.start.apply(r,n).then(e)})},Or.prototype.unmount=function(){this.hasMounted=!1,this.stop()},Or);function Or(){this.hasMounted=!1,this.pendingAnimations=[],this.componentControls=new Set}function Ar(t){return"string"==typeof t||Array.isArray(t)}function Mr(t){return t instanceof Tr}function Rr(n,e,t,r,o){void 0===r&&(r=!1);var i,a=o.initial,u=o.animate,s=o.variants,c=o.whileTap,f=o.whileHover;n.exitProps&&void 0!==n.exitProps.initial&&(a=n.exitProps.initial),!1!==a||Mr(u)?"boolean"!=typeof a&&(i=a):i=u;var l=C.useRef(!1),p=s||Ar(u)||Ar(c)||Ar(f)||Mr(u),d=Ar(i)?i:n.initial,h=Ar(u)?u:n.animate,v=r?d:null,m=p&&Ar(h)?h:null,g=C.useMemo(function(){return{controls:p?e:n.controls,initial:d,animate:h,values:t,hasMounted:l,isReducedMotion:n.isReducedMotion}},[v,m,n.isReducedMotion]);return function(t,n){void 0===n&&(n=!1);var e=C.useRef(!0);(!n||n&&e.current)&&t(),e.current=!1}(function(){var t=i||n.initial;t&&e.apply(t)},!(g.static=r)),C.useEffect(function(){l.current=!0},[]),g}var kr=C.createContext({static:!1});function Vr(t,n,e,r){var o=n.variants,i=n.transition,a=C.useContext(kr).controls,u=ve(function(){return new Pr(t)});return r&&r.exitProps&&r.exitProps.isExiting||(u.resetChildren(),u.setProps(n),u.setVariants(o),u.setDefaultTransition(i)),C.useEffect(function(){e&&a&&a.addChild(u)}),C.useEffect(function(){return function(){n.onAnimationComplete;var t=b(n,["onAnimationComplete"]);u.setProps(t),a&&a.removeChild(u)}},[]),u}function Dr(t){var n=t&&"function"!=typeof t?t:C.useRef(null);return t&&"function"==typeof t&&C.useEffect(function(){return t(n.current),function(){return t(null)}},[]),n}function Lr(t){var m=t.getValueControlsConfig,g=t.loadFunctionalityComponents,y=t.renderComponent;return C.forwardRef(function(t,n){var e,r,o,i,a=Dr(n),u=C.useContext(kr),s=u.static||t.static||!1,c=we(t),f=function(t,n,e,r){void 0===n&&(n={});var o,i={},a=C.useRef({}).current;for(var u in n){var s=n[u];if(me(s))t.set(u,s);else if(e||!Yn(u)&&(o=u,!We.has(o)))i[u]=s;else{if(t.has(u)){if(s!==a[u])t.get(u).set(s)}else t.set(u,nn(s));a[u]=s}}return r?r(i):i}(c,t.style,s,t.transformValues),l=(r=(e=t).animate,o=e.variants,(void 0===(i=e.inherit)||i)&&!!o&&(!r||r instanceof Tr)),p=Vr(ve(function(){return m(a,c)}),t,l,u),d=Rr(u,p,c,s,t),h=s?null:g(a,c,t,u,p,l),v=y(a,f,c,t,s);return C.createElement(C.Fragment,null,C.createElement(kr.Provider,{value:d},v),C.createElement(C.Fragment,null,C.createElement(Ne,{innerRef:a,values:c,isStatic:s}),h))})}var Br=["animate","circle","clipPath","defs","desc","ellipse","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","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use","view"],Fr=C.createContext({transformPagePoint:function(t){return t}});function Ir(t){return C.useEffect(function(){return function(){return t()}},[])}function Xr(t,n,e,r){if(e)return t.addEventListener(n,e,r),function(){return t.removeEventListener(n,e,r)}}function Yr(n,e,r,o){C.useEffect(function(){var t=n.current;if(r&&t)return Xr(t,e,r,o)},[n,e,r,o])}function jr(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function Hr(t){return!!t.touches}var zr={pageX:0,pageY:0};function Nr(t){return{point:Hr(t)?{x:(a=(i=t).touches[0]||i.changedTouches[0]||zr).pageX,y:a.pageY}:(e=(n=t).pageX,r=void 0===e?0:e,o=n.pageY,{x:r,y:void 0===o?0:o})};var n,e,r,o,i,a}var Ur,Wr=function(n,t){if(void 0===t&&(t=!1),n){var e=function(t){return n(t,Nr(t))};return t?function(e){if(e)return function(t){var n=t instanceof MouseEvent;(!n||n&&0===t.button)&&e(t)}}(e):e}},Gr="undefined"!=typeof window,_r=function(){return Gr&&null===window.onpointerdown},qr=function(){return Gr&&null===window.ontouchstart},Zr=function(){return Gr&&null===window.onmousedown},$r={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Kr={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Jr(t){return _r()?t:qr()?Kr[t]:Zr()?$r[t]:t}function Qr(t,n,e,r){return Xr(t,Jr(n),Wr(e,"pointerdown"===n),r)}function to(t,n,e,r){return Yr(t,Jr(n),Wr(e,"pointerdown"===n),r)}(Ur=r.Point||(r.Point={})).subtract=function(t,n){return{x:t.x-n.x,y:t.y-n.y}};var no=!(Ur.relativeTo=function(i){var a;return function(t){var n=t.x,e=t.y,r=void 0!==a?a:a="string"==typeof i?document.getElementById(i):i;if(r){var o=r.getBoundingClientRect();return{x:n-o.left-window.scrollX,y:e-o.top-window.scrollY}}}});"undefined"!=typeof window&&document.addEventListener("touchmove",function(t){no&&t.preventDefault()},{passive:!1});function eo(){return no=!1}var ro=(oo.prototype.handlePointerMove=function(t,n){this.lastMoveEvent=t,this.lastMoveEventInfo=io(n,this.transformPagePoint),jr(t)&&0===t.buttons?this.handlePointerUp(t,n):F.update(this.updatePoint,!0)},oo.prototype.handlePointerUp=function(t,n){this.end();var e=this.handlers.onEnd;if(e){var r=ao(io(n,this.transformPagePoint),this.history);e&&e(t,r)}},oo.prototype.updateHandlers=function(t){this.handlers=t},oo.prototype.end=function(){this.removeListeners&&this.removeListeners(),I.update(this.updatePoint),eo()},oo);function oo(t,n,e){var s=this,r=(void 0===e?{}:e).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(s.lastMoveEvent&&s.lastMoveEventInfo){var t=ao(s.lastMoveEventInfo,s.history),n=null!==s.startEvent,e=3<=function(t,n){if(void 0===n&&(n=Bt),St(t)&&St(n))return Mt(t,n);if(Ot(t)&&Ot(n)){var e=Mt(t.x,n.x),r=Mt(t.y,n.y),o=At(t)&&At(n)?Mt(t.z,n.z):0;return Math.sqrt(Math.pow(e,2)+Math.pow(r,2)+Math.pow(o,2))}return 0}(t.offset,{x:0,y:0});if(n||e){var r=t.point,o=T().timestamp;s.history.push(P(P({},r),{timestamp:o}));var i=s.handlers,a=i.onStart,u=i.onMove;n||(a&&a(s.lastMoveEvent,t),s.startEvent=s.lastMoveEvent),u&&u(s.lastMoveEvent,t)}}},!(Hr(t)&&1<t.touches.length)){this.handlers=n,this.transformPagePoint=r;var o=io(Nr(t),this.transformPagePoint),i=o.point,a=T().timestamp;this.history=[P(P({},i),{timestamp:a})];var u=n.onSessionStart;u&&u(t,ao(o,this.history));var c=Qr(window,"pointermove",function(t,n){return s.handlePointerMove(t,n)}),f=Qr(window,"pointerup",function(t,n){return s.handlePointerUp(t,n)});this.removeListeners=function(){c&&c(),f&&f()}}}function io(t,n){return n?{point:n(t.point)}:t}function ao(t,n){var e=t.point;return{point:e,delta:r.Point.subtract(e,uo(n)),offset:r.Point.subtract(e,n[0]),velocity:function(t,n){if(t.length<2)return{x:0,y:0};var e=t.length-1,r=null,o=uo(t);for(;0<=e&&(r=t[e],!(o.timestamp-r.timestamp>br(n)));)e--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0==i)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};a.x===1/0&&(a.x=0);a.y===1/0&&(a.y=0);return a}(n,.1)}}function uo(t){return t[t.length-1]}function so(t,n){var e=t.onPan,r=t.onPanStart,o=t.onPanEnd,i=t.onPanSessionStart,a=e||r||o||i,u=C.useRef(null),s=C.useContext(Fr).transformPagePoint,c={onSessionStart:i,onStart:r,onMove:e,onEnd:function(t,n){u.current=null,o&&o(t,n)}};null!==u.current&&u.current.updateHandlers(c),to(n,"pointerdown",a&&function(t){u.current=new ro(t,c,{transformPagePoint:s})}),Ir(function(){return u.current&&u.current.end()})}function co(t){return lo.indexOf(t)+1}var fo=function(t,n){return!!n&&(t===n||fo(t,n.parentElement))},lo=["whileHover","whileTap","whileDrag"];function po(t){var n=null;return function(){return null===n&&(n=t,function(){n=null})}}var ho=po("dragHorizontal"),vo=po("dragVertical");function mo(t){var n=!1;if("y"===t)n=vo();else if("x"===t)n=ho();else{var e=ho(),r=vo();e&&r?n=function(){e(),r()}:(e&&e(),r&&r())}return n}var go=co("whileTap");function yo(t,o){var i=t.onTap,e=t.onTapStart,a=t.onTapCancel,u=t.whileTap,s=t.controls,n=i||e||a||u,c=C.useRef(!1),r=C.useRef(null);function f(){r.current&&r.current(),r.current=null}u&&s&&s.setOverride(u,go);var l=C.useRef(null);l.current=function(t,n){var e=o.current;if(f(),c.current&&e){c.current=!1,s&&u&&s.clearOverride(go);var r=mo(!0);r&&(r(),fo(e,t.target)?i&&i(t,n):a&&a(t,n))}},to(o,"pointerdown",n?function(t,n){f(),r.current=Qr(window,"pointerup",function(t,n){return l.current(t,n)}),o.current&&!c.current&&(c.current=!0,e&&e(t,n),s&&u&&s.startOverride(go))}:void 0),Ir(f)}var bo=co("whileHover"),wo=function(e){return function(t,n){jr(t)&&e(t,n)}};function xo(t,n){var e,r,o,i,a,u;so(t,n),yo(t,n),r=n,o=(e=t).whileHover,i=e.onHoverStart,a=e.onHoverEnd,u=e.controls,o&&u&&u.setOverride(o,bo),to(r,"pointerenter",wo(function(t,n){i&&i(t,n),o&&u&&u.startOverride(bo)})),to(r,"pointerleave",wo(function(t,n){a&&a(t,n),o&&u&&u.clearOverride(bo)}))}function Eo(n){return function(t){return n(t),null}}function Co(t){return"object"==typeof t&&t.hasOwnProperty("current")}function Po(t){return t}var So=["onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","whileTap","whileHover","onHoverStart","onHoverEnd"],To={key:"gestures",shouldRender:function(n){return So.some(function(t){return n.hasOwnProperty(t)})},Component:Eo(function(t){var n=t.innerRef;xo(b(t,["innerRef"]),n)})},Oo=new Set(["INPUT","TEXTAREA","SELECT"]),Ao=(Mo.prototype.start=function(t,n){var c=this,e=(void 0===n?{}:n).snapToCursor;void 0!==e&&e&&this.snapToCursor(t);var r=this.props.transformPagePoint;this.panSession=new ro(t,{onSessionStart:function(t){t.target&&!Oo.has(t.target.tagName)&&(qr()||(t.preventDefault(),document.activeElement instanceof HTMLElement&&document.activeElement.blur())),no=!0,Ro(function(t){var n=c.point[t];n&&n.stop()})},onStart:function(t,n){if(c.constraintsNeedResolution){var e=c.props,r=e.dragConstraints,o=e.transformPagePoint;c.constraints=Lo(r,c.ref,c.point,o),c.applyConstraintsToPoint()}Ro(function(t){var n=c.point[t];n&&c.origin[t].set(n.get())});var i=c.props,a=i.drag,u=i.dragPropagation;if(!a||u||(c.openGlobalLock&&c.openGlobalLock(),c.openGlobalLock=mo(a),c.openGlobalLock)){c.isDragging=!0,c.currentDirection=null;var s=c.props.onDragStart;s&&s(t,ko(n,c.point))}},onMove:function(t,n){var e=c.props,r=e.dragPropagation,o=e.dragDirectionLock;if(r||c.openGlobalLock){var i=n.offset;if(o&&null===c.currentDirection){if(c.currentDirection=function(t,n){void 0===n&&(n=10);var e=null;return Math.abs(t.y)>n?e="y":Math.abs(t.x)>n&&(e="x"),e}(i),null!==c.currentDirection){var a=c.props.onDirectionLock;a&&a(c.currentDirection)}}else{c.updatePoint("x",i),c.updatePoint("y",i);var u=c.props.onDrag;u&&u(t,ko(n,c.point))}}},onEnd:function(t,n){c.stop(t,n)}},{transformPagePoint:r})},Mo.prototype.cancelDrag=function(){eo(),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null)},Mo.prototype.stop=function(t,n){var e;null===(e=this.panSession)||void 0===e||e.end(),this.panSession=null;var r=this.isDragging;if(this.cancelDrag(),r){var o=this.props,i=o.dragMomentum,a=o.dragElastic,u=o.onDragEnd;if(i||a){var s=n.velocity;this.animateDragEnd(s)}else this.recordBoxInfo(this.constraints);u&&u(t,ko(n,this.point))}},Mo.prototype.recordBoxInfo=function(t){if(t){var n=t.right,e=t.left,r=t.bottom,o=t.top;this.prevConstraintsBox.width=(n||0)-(e||0),this.prevConstraintsBox.height=(r||0)-(o||0)}this.point.x&&(this.prevConstraintsBox.x=this.point.x.get()),this.point.y&&(this.prevConstraintsBox.y=this.point.y.get())},Mo.prototype.snapToCursor=function(t){var e=this,n=this.props.transformPagePoint,r=Nr(t).point,o=Bo(this.ref,n),i=o.width/2+o.left+window.scrollX,a=o.height/2+o.top+window.scrollY,u={x:r.x-i,y:r.y-a};Ro(function(t){var n=e.point[t];n&&e.origin[t].set(n.get())}),this.updatePoint("x",u),this.updatePoint("y",u)},Mo.prototype.setPoint=function(t,n){this.point[t]=n},Mo.prototype.updatePoint=function(t,n){var e=this.props,r=e.drag,o=e.dragElastic,i=this.point[t];if(Do(t,r,this.currentDirection)&&i){var a=Io(t,this.origin[t].get()+n[t],this.constraints,o);i.set(a)}},Mo.prototype.updateProps=function(t){var e=this,n=t.drag,r=void 0!==n&&n,o=t.dragDirectionLock,i=void 0!==o&&o,a=t.dragPropagation,u=void 0!==a&&a,s=t.dragConstraints,c=void 0!==s&&s,f=t.dragElastic,l=void 0===f||f,p=t.dragMomentum,d=void 0===p||p,h=b(t,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=P({drag:r,dragDirectionLock:i,dragPropagation:u,dragConstraints:c,dragElastic:l,dragMomentum:d},h);var v=h._dragValueX,m=h._dragValueY,g=h.dragOriginX,y=h.dragOriginY;g&&(this.origin.x=g),y&&(this.origin.y=y),Ro(function(t){if(Do(t,r,e.currentDirection)){var n="x"===t?v:m;e.setPoint(t,n||e.values.get(t,0))}}),this.constraintsNeedResolution=Co(c),this.constraints=this.constraintsNeedResolution?this.constraints||!1:c},Mo.prototype.applyConstraintsToPoint=function(e){var r=this;return void 0===e&&(e=this.constraints),Ro(function(t){var n=r.point[t];n&&!n.isAnimating()&&Io(t,n,e,0)})},Mo.prototype.animateDragEnd=function(i){var a=this,t=this.props,u=t.drag,s=t.dragMomentum,c=t.dragElastic,f=t.dragTransition,l=t._dragTransitionControls,n=Ro(function(t){var n;if(Do(t,u,a.currentDirection)){var e=a.constraints?Vo(t,a.constraints):{},r=c?200:1e6,o=c?40:1e7;return(l||a.controls).start(((n={})[t]=0,n.transition=P(P({type:"inertia",velocity:s?i[t]:0,bounceStiffness:r,bounceDamping:o,timeConstant:750,restDelta:1},f),e),n))}});return Promise.all(n).then(function(){a.recordBoxInfo(a.constraints),a.scalePoint();var t=a.props.onDragTransitionEnd;t&&t()})},Mo.prototype.scalePoint=function(){var o=this,t=this.props,n=t.dragConstraints,e=t.transformPagePoint;if(Co(n)){var i=Bo(n,e),a=Bo(this.ref,e),r=function(t,n){var e=o.point[t];if(e){if(e.isAnimating())return e.stop(),void o.recordBoxInfo();var r=o.prevConstraintsBox[n]?(i[n]-a[n])/o.prevConstraintsBox[n]:1;e.set(o.prevConstraintsBox[t]*r)}};r("x","width"),r("y","height")}},Mo.prototype.mount=function(t){var o=this,n=Qr(t,"pointerdown",function(t){var n=o.props,e=n.drag,r=n.dragListener;e&&(void 0===r||r)&&o.start(t)}),e=Xr(window,"resize",function(){return o.scalePoint()});if(this.constraintsNeedResolution){var r=this.props,i=r.dragConstraints,a=r.transformPagePoint,u=Lo(i,this.ref,this.point,a);this.applyConstraintsToPoint(u),this.recordBoxInfo(u)}else!this.isDragging&&this.constraints&&this.applyConstraintsToPoint();return function(){n&&n(),e&&e(),o.cancelDrag()}},Mo);function Mo(t){var n=t.ref,e=t.values,r=t.controls;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.props={transformPagePoint:Po},this.point={},this.origin={x:nn(0),y:nn(0)},this.openGlobalLock=null,this.panSession=null,this.prevConstraintsBox={width:0,height:0,x:0,y:0},this.ref=n,this.values=e,this.controls=r}function Ro(t){return[t("x"),t("y")]}function ko(t,n){return P(P({},t),{point:{x:n.x?n.x.get():0,y:n.y?n.y.get():0}})}function Vo(t,n){var e=n.top,r=n.right,o=n.bottom,i=n.left;return"x"===t?{min:i,max:r}:{min:e,max:o}}function Do(t,n,e){return!(!0!==n&&n!==t||null!==e&&e!==t)}function Lo(t,n,e,r){w(null!==t.current&&null!==n.current,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var o=Bo(t,r),i=Bo(n,r),a=o.left-i.left+Fo(e.x),u=o.top-i.top+Fo(e.y);return{top:u,left:a,right:o.width-i.width+a,bottom:o.height-i.height+u}}function Bo(t,n){var e=t.current.getBoundingClientRect(),r=n({x:e.left,y:e.top}),o=r.x,i=r.y,a=n({x:e.width,y:e.height});return{left:o,top:i,width:a.x,height:a.y}}function Fo(t){return t?t.get():0}function Io(t,n,e,r){var o=n instanceof Qt?n.get():n;if(!e)return o;var i=Vo(t,e),a=i.min,u=i.max;return void 0!==a&&o<a?o=r?Xo(a,o,r):Math.max(a,o):void 0!==u&&u<o&&(o=r?Xo(u,o,r):Math.min(u,o)),n instanceof Qt&&n.set(o),o}function Xo(t,n,e){return Xt(t,n,"number"==typeof e?e:.35)}var Yo={key:"drag",shouldRender:function(t){return!!t.drag},Component:Eo(function(t){var n,e,r,o,i,a,u,s=t.innerRef,c=t.values,f=t.controls,l=b(t,["innerRef","values","controls"]);return e=s,r=c,o=f,i=(n=l).dragControls,a=C.useContext(Fr).transformPagePoint,(u=ve(function(){return new Ao({ref:e,values:r,controls:o})})).updateProps(P(P({},n),{transformPagePoint:a})),C.useEffect(function(){return i&&i.subscribe(u)},[u]),void C.useEffect(function(){return u.mount(e.current)},[])})};function jo(t){return"string"==typeof t&&t.startsWith("var(--")}var Ho=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;var zo=4;function No(t,n,e){void 0===e&&(e=1),w(e<=zo,'Max CSS variable fallback depth detected in property "'+t+'". This may indicate a circular fallback dependency.');var r,o,i=(r=t,(o=Ho.exec(r))?[o[1],o[2]]:[,]),a=i[0],u=i[1];if(a){var s=window.getComputedStyle(n).getPropertyValue(a);return s||(jo(u)?No(u,n,e+1):u)}}function Uo(t){return Zo.has(t)}function Wo(t,n){t.set(n,!1),t.set(n)}function Go(t){return t===L||t===j}var _o,qo,Zo=new Set(["width","height","top","left","right","bottom","x","y"]);(qo=_o=_o||{}).width="width",qo.height="height",qo.left="left",qo.right="right",qo.top="top",qo.bottom="bottom";function $o(t,n){return parseFloat(t.split(", ")[n])}function Ko(i,a){return function(t,n){var e=n.transform;if("none"===e||!e)return 0;var r=e.match(/^matrix3d\((.+)\)$/);if(r)return $o(r[1],a);var o=e.match(/^matrix\((.+)\)$/);return $o(o[1],i)}}var Jo=new Set(["x","y","z"]),Qo=In.filter(function(t){return!Jo.has(t)});function ti(d,t,h,v){void 0===v&&(v={}),h=P({},h),v=P({},v);var n=t.current,m=he(n),e=Object.keys(h).filter(Uo),g=[],y=!1,r=e.reduce(function(t,n){var e=d.get(n);if(!e)return t;var r,o,i,a,u=e.get(),s=h[n],c=Pe(u);if(xe(s))for(var f=s.length,l=null===s[0]?1:0;l<f;l++)r?w(Pe(s[l])===r,"All keyframes must be of the same type"):(r=Pe(s[l]),w(r===c||Go(c)&&Go(r),"Keyframes must be of the same dimension as the current value"));else r=Pe(s);if(c!==r)if(Go(c)&&Go(r)){var p=e.get();"string"==typeof p&&e.set(parseFloat(p)),"string"==typeof s?h[n]=parseFloat(s):Array.isArray(s)&&r===j&&(h[n]=s.map(parseFloat))}else y||(o=d,i=m,a=[],Qo.forEach(function(t){var n=o.get(t);void 0!==n&&(a.push([t,n.get()]),n.set(t.startsWith("scale")?1:0))}),a.length&&i.render(),g=a,y=!0),t.push(n),v[n]=void 0!==v[n]?v[n]:h[n],Wo(e,s);return t},[]);if(r.length){var o=function(e,r,t,n,o){var i=t.getBoundingClientRect(),a=getComputedStyle(t),u=a.display,s={top:a.top,left:a.left,bottom:a.bottom,right:a.right,transform:a.transform};"none"===u&&n.set("display",e.display||"block"),n.render();var c=t.getBoundingClientRect();return o.forEach(function(t){var n=r.get(t);Wo(n,ni[t](i,s)),e[t]=ni[t](c,a)}),e}(h,d,n,m,r);return g.length&&g.forEach(function(t){var n=t[0],e=t[1];d.get(n).set(e)}),m.render(),{target:o,transitionEnd:v}}return{target:h,transitionEnd:v}}var ni={width:function(t){return t.width},height:function(t){return t.height},top:function(t,n){var e=n.top;return parseFloat(e)},left:function(t,n){var e=n.left;return parseFloat(e)},bottom:function(t,n){var e=t.height,r=n.top;return parseFloat(r)+e},right:function(t,n){var e=t.width,r=n.left;return parseFloat(r)+e},x:Ko(4,13),y:Ko(5,14)};function ei(t,n,e,r){return o=e,Object.keys(o).some(Uo)?ti(t,n,e,r):{target:e,transitionEnd:r};var o}function ri(r,o){return function(t,n){var e=function(t,n,e,r){var o=b(e,[]),i=n.current;if(!(i instanceof HTMLElement))return{target:o,transitionEnd:r};for(var a in r=r&&P({},r),t.forEach(function(t){var n=t.get();if(jo(n)){var e=No(n,i);e&&t.set(e)}}),o){var u=o[a];if(jo(u)){var s=No(u,i);s&&(o[a]=s,r&&void 0===r[a]&&(r[a]=u))}}return{target:o,transitionEnd:r}}(r,o,t,n);return t=e.target,n=e.transitionEnd,ei(r,o,t,n)}}function oi(){var t=C.useState(0),n=t[0],e=t[1];return C.useCallback(function(){return e(n+1)},[n])}var ii,ai,ui,si=C.createContext(null);(ui=ai=ai||{}).Prepare="prepare",ui.Read="read",ui.Render="render";var ci=[ai.Prepare,ai.Read,ai.Render].reduce(function(t,n){return t[n]=[],t},{}),fi=!1;function li(t){for(var n=t.length,e=0;e<n;e++)t[e]();t.length=0}function pi(n){return function(t){t&&(fi=!0,ci[n].push(t))}}var di=((ii={})[ai.Prepare]=pi(ai.Prepare),ii[ai.Read]=pi(ai.Read),ii[ai.Render]=pi(ai.Render),ii.flush=function(){fi&&(li(ci.prepare),li(ci.read),li(ci.render),fi=!1)},ii);var hi={duration:.8,ease:[.45,.05,.19,1]},vi=sr();var mi={id:"x",size:"width",min:"left",max:"right",origin:"originX"},gi={id:"y",size:"height",min:"top",max:"bottom",origin:"originY"};function yi(t,n){return(t+n)/2}function bi(t,n,e){var r,o=t[e.size]-n[e.size],i=.5;return o&&(t[e.min]===n[e.min]?i=0:t[e.max]===n[e.max]&&(i=1)),(r={})[e.size]=o,r[e.origin]=i,r[e.id]=.5===i?yi(t[e.min],t[e.max])-yi(n[e.min],n[e.max]):0,r}var wi,xi,Ei,Ci={getLayout:function(t){return t.offset},measure:function(t){var n=t.offsetLeft,e=t.offsetTop,r=t.offsetWidth,o=t.offsetHeight;return{left:n,top:e,right:n+r,bottom:e+o,width:r,height:o}}},Pi={getLayout:function(t){return t.boundingBox},measure:function(t){var n=t.getBoundingClientRect();return{left:n.left,top:n.top,width:n.width,height:n.height,right:n.right,bottom:n.bottom}}};function Si(t){return window.getComputedStyle(t).position}function Ti(t){return"width"===t||"height"===t}function Oi(){this.constructor=xi}function Ai(){return null!==wi&&wi.apply(this,arguments)||this}var Mi,Ri,ki={key:"layout",shouldRender:function(t){var n=t.positionTransition,e=t.layoutTransition;return w(!(n&&e),"Don't set both positionTransition and layoutTransition on the same component"),"undefined"!=typeof window&&!(!n&&!e)},Component:(wi=C.Component,e(xi=Ai,Ei=wi),xi.prototype=null===Ei?Object.create(Ei):(Oi.prototype=Ei.prototype,new Oi),Ai.prototype.getSnapshotBeforeUpdate=function(){var t=this.props,n=t.innerRef,e=t.positionTransition,d=t.values,i=t.controls,a=n.current;if(a instanceof HTMLElement){var r,o,u,s,h,v,m=(r=this.props,o=r.layoutTransition,u=r.positionTransition,o||u),g=!!e,c=Si(a),y={offset:Ci.measure(a),boundingBox:Pi.measure(a)};return di.prepare(function(){s=a.style.transform,a.style.transform=""}),di.read(function(){h={offset:Ci.measure(a),boundingBox:Pi.measure(a)};var t,n,e=Si(a);t=c,n=e,v=g&&t===n?Ci:Pi}),di.render(function(){var t,n,e=v.getLayout(y),r=v.getLayout(h),c=P(P({},bi(t=e,n=r,mi)),bi(t,n,gi));if(c.x||c.y||c.width||c.height){he(a).set({originX:c.originX,originY:c.originY}),je();var f={},l={},p="function"==typeof m?m({delta:c}):m;o("left","x",0,c.x),o("top","y",0,c.y),g||(o("width","scaleX",1,y.boundingBox.width/h.boundingBox.width),o("height","scaleY",1,y.boundingBox.height/h.boundingBox.height)),f.transition=l,p&&i.start(f),He()}else s&&(a.style.transform=s);function o(t,n,e,r){var o=Ti(t)?t:n;if(c[o]){var i="boolean"==typeof p?P({},g?vi:hi):p,a=d.get(n,e),u=a.getVelocity();l[n]=i[n]?P({},i[n]):P({},i),void 0===l[n].velocity&&(l[n].velocity=u||0),f[n]=e;var s=Ti(t)||v!==Ci?0:a.get();a.set(r+s)}}}),null}},Ai.prototype.componentDidUpdate=function(){di.flush()},Ai.prototype.render=function(){return null},Ai.contextType=si,Ai)},Vi=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","static","positionTransition","layoutTransition","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragElastic","dragMomentum","dragPropagation","dragTransition","_dragValueX","_dragValueY","_dragTransitionControls","dragOriginX","dragOriginY","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","whileHover","whileTap","onHoverEnd","onHoverStart"]);function Di(t){return Vi.has(t)}(Ri=Mi=Mi||{}).Target="Target",Ri.VariantLabel="VariantLabel",Ri.AnimationSubscription="AnimationSubscription";function Li(t,n){return void 0!==n&&(Array.isArray(t)&&Array.isArray(n)?!function(t,n){if(null===n)return!1;var e=n.length;if(e!==t.length)return!1;for(var r=0;r<e;r++)if(n[r]!==t[r])return!1;return!0}(n,t):t!==n)}function Bi(t,n){void 0===n&&(n=!1);t.transition;var e=t.transitionEnd,r=b(t,["transition","transitionEnd"]);return n?P(P({},r),e):r}function Fi(t){var n,e=t instanceof Qt?t.get():t;return Array.from(new Set((n=e)?Array.isArray(n)?n:[n]:[]))}var Ii,Xi;function Yi(r,t,o,i){var a=Fi(t),u=C.useContext(kr),s=u.hasMounted&&u.hasMounted.current,c=C.useRef(!1);C.useEffect(function(){var t,n,e=!1;o?(e=!!s,a=Fi(u.animate)):e=c.current||(t=Fi(r),n=a,t.join(",")!==n.join(",")),e&&i.start(a),c.current=!0},[a.join(",")])}function ji(t){return t.animate instanceof Tr}var Hi=((Ii={})[Mi.Target]=Eo(function(t){var u,s,c,f,l,p,n=t.animate,e=t.controls,r=t.values,o=t.transition;return u=n,s=e,c=r,f=o,l=C.useRef(!0),(p=C.useRef(null)).current||(p.current=Bi(u,!0)),void C.useEffect(function(){var t={},n=Bi(u),e=Bi(u,!0);for(var r in n){var o=l.current&&(!c.has(r)||c.get(r).get()!==e[r]),i=null!==e[r],a=Li(p.current[r],e[r]);i&&(a||o)&&(t[r]=n[r])}l.current=!1,p.current=P(P({},p.current),e),Object.keys(t).length&&s.start(P(P({},t),{transition:u.transition||f,transitionEnd:u.transitionEnd}))},[u])}),Ii[Mi.VariantLabel]=Eo(function(t){var n=t.animate,e=t.inherit,r=void 0===e||e,o=t.controls;return Yi(t.initial,n,r,o)}),Ii[Mi.AnimationSubscription]=Eo(function(t){var n,e,r,o=t.animate,i=t.controls;return n=o,e=i,r=C.useMemo(function(){return n.subscribe(e)},[n]),void C.useEffect(function(){return function(){r&&r()}},[r])}),Ii),zi=["initial","animate","whileTap","whileHover"],Ni=((Xi={})[Mi.Target]=function(t){return!(void 0===t.animate||(n=t.animate,Array.isArray(n)||"string"==typeof n)||ji(t));var n},Xi[Mi.VariantLabel]=function(n){return void 0!==n.variants||zi.some(function(t){return"string"==typeof n[t]})},Xi[Mi.AnimationSubscription]=ji,Xi),Ui={key:"exit",shouldRender:function(t,n){var e=t.exit,r=!!n.exitProps,o=!!e;return w(!r||r&&o,"No exit prop defined on a child of AnimatePresence."),r&&o},Component:Eo(function(t){var n=t.animate,e=t.controls,r=t.parentContext,o=t.exit,i=r.exitProps,a=C.useRef(!1);if(i&&o){var u=i.isExiting,s=i.custom,c=i.onExitComplete;C.useEffect(function(){u?(!a.current&&o&&(e.setProps(P(P({},t),{custom:void 0!==s?s:t.custom})),e.start(o).then(c)),a.current=!0):!a.current||!n||n instanceof Tr||e.start(n),u||(a.current=!1)},[u])}})},Wi=function(t){return!Di(t)};try{var Gi=require("@emotion/is-prop-valid").default;Wi=function(t){return t.startsWith("on")?!Di(t):Gi(t)}}catch(E){}var _i=[ki,Yo,To,Ui],qi=_i.length;function Zi(h){var v="string"==typeof h,m=v&&-1!==Br.indexOf(h);return{renderComponent:function(t,n,e,r,o){var i,a,u,s,c,f,l,p=v?function(t){var n={};for(var e in t)Wi(e)&&(n[e]=t[e]);return n}(r):r,d=m?(f=n,(l=ue(Ue(e),void 0,void 0,void 0,void 0,!1)).style=P(P({},f),l.style),l):{style:(a=n,u=o,s=Ue(i=e),(c=i.getTransformTemplate())&&(s.transform=a.transform?c({},a.transform):c),Jn(P(P({},a),s),!u))};return C.createElement(h,P(P(P({},p),{ref:t}),d))},loadFunctionalityComponents:function(t,n,e,r,o,i){var a=[],u=function(t){var n=void 0;for(var e in Mi)Ni[e](t)&&(n=e);return n?Hi[n]:void 0}(e);u&&a.push(C.createElement(u,{key:"animation",initial:e.initial,animate:e.animate,variants:e.variants,transition:e.transition,controls:o,inherit:i,values:n}));for(var s=0;s<qi;s++){var c=_i[s],f=c.shouldRender,l=c.key,p=c.Component;f(e,r)&&a.push(C.createElement(p,P({key:l},e,{parentContext:r,values:n,controls:o,innerRef:t})))}return a},getValueControlsConfig:function(n,t){return{values:t,readValueFromSource:function(t){return he(n.current).get(t)},makeTargetAnimatable:ri(t,n)}}}}var $i=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","webview"].reduce(function(t,n){var e=Zi(n);return t[n]=Lr(e),t},{}),Ki=Br.reduce(function(t,n){return t[n]=Lr(Zi(n)),t},{}),Ji=P(P({custom:function(t){return Lr(Zi(t))}},$i),Ki);function Qi(t){return ve(function(){return nn(t)})}var ta=function(t){return"object"==typeof(n=t)&&n.mix?t.mix:void 0;var n};function na(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=!Array.isArray(t[0]),r=e?0:-1,o=t[0+r],i=t[1+r],a=t[2+r],u=t[3+r],s=$t(i,a,P({mixer:ta(a[0])},u));return e?s(o):s}var ea=function(t){return"function"==typeof t},ra=function(t){return t};function oa(t,n,e,r){var o=C.useRef(null),i=[t],a=ra;if(ea(n))a=n;else if(Array.isArray(e)){var u=n;a=na(u,e,r),i=[t,u.join(","),e.join(",")]}return C.useMemo(function(){return o.current&&o.current.destroy(),o.current=t.addChild({transformer:a}),o.current},i)}function ia(t){return.001<t?1/t:1e5}function aa(t,n,e){e.set(n&&t?t/n:0)}var ua=nn(0),sa=nn(0),ca=nn(0),fa=nn(0),la=!1,pa={scrollX:ua,scrollY:sa,scrollXProgress:ca,scrollYProgress:fa};var da=(ha.prototype.subscribe=function(t){var n=this;return this.componentControls.add(t),function(){return n.componentControls.delete(t)}},ha.prototype.start=function(n,e){this.componentControls.forEach(function(t){t.start(n.nativeEvent||n,e)})},ha);function ha(){this.componentControls=new Set}function va(){return new da}function ma(t){var n=t.children,e=t.exitProps,r=C.useContext(kr);return r=P(P({},r),{exitProps:e||{}}),C.createElement(kr.Provider,{value:r},n)}function ga(t){return t.key||""}var ya=nn(null);if("undefined"!=typeof window)if(window.matchMedia){var ba=window.matchMedia("(prefers-reduced-motion)"),wa=function(){return ya.set(ba.matches)};ba.addListener(wa),wa()}else ya.set(!1);function xa(t,n){return"boolean"==typeof n?n:Boolean(t)}r.AnimatePresence=function(t){var n,e,r,o=t.children,i=t.custom,a=t.initial,u=void 0===a||a,s=t.onExitComplete,c=t.exitBeforeEnter,f=oi(),l=C.useContext(si)||f,p=C.useRef(!0),d=(n=o,e=[],C.Children.forEach(n,function(t){C.isValidElement(t)&&e.push(t)}),e),h=C.useRef(d),v=C.useRef(new Map).current,m=C.useRef(new Set).current;if(r=v,d.forEach(function(t){var n=ga(t);r.set(n,t)}),p.current)return p.current=!1,C.createElement(C.Fragment,null,d.map(function(t){return C.createElement(ma,{key:ga(t),exitProps:u?void 0:{initial:!1}},t)}));for(var g=S(d),y=h.current.map(ga),b=d.map(ga),w=y.length,x=0;x<w;x++){var E=y[x];-1===b.indexOf(E)?m.add(E):m.delete(E)}return c&&m.size&&(g=[]),m.forEach(function(n){if(-1===b.indexOf(n)){var t=v.get(n);if(t){var e=y.indexOf(n),r={custom:i,isExiting:!0,onExitComplete:function(){m.delete(n);var t=h.current.findIndex(function(t){return t.key===n});h.current.splice(t,1),m.size||(h.current=d,l(),s&&s())}};g.splice(e,0,C.createElement(ma,{key:ga(t),exitProps:r},t))}}}),g=g.map(function(t){var n=t.key;return m.has(n)?t:C.createElement(ma,{key:ga(t)},t)}),h.current=g,C.createElement(C.Fragment,null,m.size?g:g.map(function(t){return C.cloneElement(t)}))},r.AnimationControls=Tr,r.DragControls=da,r.MotionContext=kr,r.MotionPluginContext=Fr,r.MotionPlugins=function(t){var n=t.children,e=b(t,["children"]),r=C.useContext(Fr),o=C.useRef(P({},r)).current;for(var i in e)o[i]=e[i];return C.createElement(Fr.Provider,{value:o},n)},r.MotionValue=Qt,r.ReducedMotion=function(t){var n=t.children,e=t.enabled,r=C.useContext(kr);return r=C.useMemo(function(){return P(P({},r),{isReducedMotion:e})},[e]),C.createElement(kr.Provider,{value:r},n)},r.UnstableSyncLayout=function(t){var n=t.children,e=oi();return C.createElement(si.Provider,{value:e},n)},r.animationControls=function(){return new Tr},r.createMotionComponent=Lr,r.isValidMotionProp=Di,r.motion=Ji,r.motionValue=nn,r.transform=na,r.unwrapMotionValue=function(t){var n,e=t instanceof Qt?t.get():t;return n=e,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?e.toValue():e},r.useAnimatedState=function(t){var n=C.useState(t),e=n[0],r=n[1],o=ve(function(){return{onUpdate:r}}),i=we(o),a=Vr({values:i,readValueFromSource:function(t){return e[t]}},{},!1),u=ve(function(){return function(t){return a.start(t)}});return C.useEffect(function(){return i.mount(),function(){return i.unmount()}},[]),[e,u]},r.useAnimation=function(){var t=ve(function(){return new Tr});return C.useEffect(function(){return t.mount(),function(){return t.unmount()}},[]),t},r.useCycle=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];n.length;var e=C.useRef(0),r=C.useState(n[e.current]),o=r[0],i=r[1];return[o,function(t){e.current="number"!=typeof t?Jt(0,n.length,e.current+1):t,i(n[e.current])}]},r.useDomEvent=Yr,r.useDragControls=function(){return ve(va)},r.useExternalRef=Dr,r.useGestures=xo,r.useInvertedScale=function(t){var n=Qi(1),e=Qi(1),r=C.useContext(kr).values;return w(!(!t&&!r),"If no scale values are provided, useInvertedScale must be used within a child of another motion component."),t?(n=t.scaleX||n,e=t.scaleY||e):r&&(n=r.get("scaleX",1),e=r.get("scaleY",1)),{scaleX:oa(n,ia),scaleY:oa(e,ia)}},r.useMotionValue=Qi,r.usePanGesture=so,r.useReducedMotion=function(){var n=C.useContext(kr).isReducedMotion,t=C.useState(xa(ya.get(),n)),e=t[0],r=t[1];return C.useEffect(function(){return ya.onChange(function(t){r(xa(t,n))})},[r,n]),e},r.useSpring=function(t,e){void 0===e&&(e={});var n,r,o=C.useRef(null),i=Qi(me(t)?t.get():t);return C.useMemo(function(){return i.attach(function(t,n){return o.current&&o.current.stop(),o.current=nr(P({from:i.get(),to:t,velocity:i.getVelocity()},e)).start(n),i.get()})},Object.values(e)),n=t,r=function(t){return i.set(parseFloat(t))},C.useEffect(function(){return me(n)?n.onChange(r):void 0},[n]),i},r.useTapGesture=yo,r.useTransform=oa,r.useViewportScroll=function(){return la||function(){if(la=!0,"undefined"!=typeof window){var t=function(){var t=window.pageXOffset,n=window.pageYOffset;ua.set(t),sa.set(n),aa(t,document.body.clientWidth-window.innerWidth,ca),aa(n,document.body.clientHeight-window.innerHeight,fa)};t(),window.addEventListener("resize",t),window.addEventListener("scroll",t,{passive:!0})}}(),pa},Object.defineProperty(r,"__esModule",{value:!0})});
|
|
1
|
+
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],n):n((t=t||self).Motion={},t.React)}(this,function(r,C){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(t,n)};var P=function(){return(P=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)};function b(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(e[r[o]]=t[r[o]])}return e}function S(){for(var t=0,n=0,e=arguments.length;n<e;n++)t+=arguments[n].length;var r=Array(t),o=0;for(n=0;n<e;n++)for(var i=arguments[n],a=0,u=i.length;a<u;a++,o++)r[o]=i[a];return r}var t,n,w=function(){},o=0,i="undefined"!=typeof window&&void 0!==window.requestAnimationFrame?function(t){return window.requestAnimationFrame(t)}:function(t){var n=Date.now(),e=Math.max(0,16.7-(n-o));o=n+e,setTimeout(function(){return t(o)},e)};(n=t=t||{}).Read="read",n.Update="update",n.Render="render",n.PostRender="postRender",n.FixedUpdate="fixedUpdate";function d(t){return m=t}function a(t){return O[t].process(y)}function T(){return y}function u(n,e){return function(t){return Math.max(Math.min(t,e),n)}}function l(t){return t%1?Number(t.toFixed(5)):t}function s(n){return{test:function(t){return"string"==typeof t&&t.endsWith(n)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+n}}}function c(t){return void 0!==t.red}function f(t){return void 0!==t.hue}function p(i){return function(t){if("string"!=typeof t)return t;for(var n,e={},r=(n=t).substring(n.indexOf("(")+1,n.lastIndexOf(")")).split(/,\s*/),o=0;o<4;o++)e[i[o]]=void 0!==r[o]?parseFloat(r[o]):1;return e}}var h=1/60*1e3,v=!0,m=!1,g=!1,y={delta:0,timestamp:0},x=[t.Read,t.Update,t.Render,t.PostRender],E=x.reduce(function(t,n){var r,i,a,u,s,o,c,f,l,p=(r=d,i=[],s=!(a=[]),o=u=0,c=new WeakSet,f=new WeakSet,l={cancel:function(t){var n=a.indexOf(t);c.add(t),-1!==n&&a.splice(n,1)},process:function(t){var n,e;if(s=!0,i=(n=[a,i])[0],(a=n[1]).length=0,u=i.length)for(o=0;o<u;o++)(e=i[o])(t),!0!==f.has(e)||c.has(e)||(l.schedule(e),r(!0));s=!1},schedule:function(t,n,e){void 0===n&&(n=!1),void 0===e&&(e=!1),w("function"==typeof t,"Argument must be a function");var r=e&&s,o=r?i:a;c.delete(t),n&&f.add(t),-1===o.indexOf(t)&&(o.push(t),r&&(u=i.length))}});return t.sync[n]=function(t,n,e){return void 0===n&&(n=!1),void 0===e&&(e=!1),m||M(),p.schedule(t,n,e),t},t.cancelSync[n]=function(t){return p.cancel(t)},t.steps[n]=p,t},{steps:{},sync:{},cancelSync:{}}),O=E.steps,F=E.sync,I=E.cancelSync,A=function(t){m=!1,y.delta=v?h:Math.max(Math.min(t-y.timestamp,40),1),v||(h=y.delta),y.timestamp=t,g=!0,x.forEach(a),g=!1,m&&(v=!1,i(A))},M=function(){v=m=!0,g||i(A)},R=function(){return(R=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)},k=/(-)?(\d[\d\.]*)/g,V=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,D=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))$/i,L={test:function(t){return"number"==typeof t},parse:parseFloat,transform:function(t){return t}},B=R({},L,{transform:u(0,1)}),X=(R({},L,{default:1}),s("deg")),Y=s("%"),j=s("px"),H=s("vh"),z=s("vw"),N=(R({},Y,{parse:function(t){return Y.parse(t)/100},transform:function(t){return Y.transform(100*t)}}),u(0,255)),U=R({},L,{transform:function(t){return Math.round(N(t))}});function W(t,n){return t.startsWith(n)&&D.test(t)}function G(t){return"number"==typeof t?0:t}function _(n){return function(t){return 1-n(1-t)}}function q(n){return function(t){return t<=.5?n(2*t)/2:(2-n(2*(1-t)))/2}}function Z(n){return function(t){return Math.pow(t,n)}}function $(n){return function(t){return t*t*((n+1)*t-n)}}function K(t){var n=$(t);return function(t){return(t*=2)<1?.5*n(t):.5*(2-Math.pow(2,-10*(t-1)))}}function J(t){return t}function Q(t){return 1-Math.sin(Math.acos(t))}function tt(t){var n=t*t;return t<4/11?7.5625*n:t<8/11?9.075*n-9.9*t+3.4:t<.9?4356/361*n-35442/1805*t+16061/1805:10.8*t*t-20.52*t+10.72}function nt(t,n){return 1-3*n+3*t}function et(t,n){return 3*n-6*t}function rt(t){return 3*t}function ot(t,n,e){return 3*nt(n,e)*t*t+2*et(n,e)*t+rt(n)}function it(t,n,e){return((nt(n,e)*t+et(n,e))*t+rt(n))*t}var at={test:function(t){return"string"==typeof t?W(t,"rgb"):c(t)},parse:p(["red","green","blue","alpha"]),transform:function(t){var n,e,r,o,i,a=t.red,u=t.green,s=t.blue,c=t.alpha,f=void 0===c?1:c;return n={red:U.transform(a),green:U.transform(u),blue:U.transform(s),alpha:l(B.transform(f))},e=n.red,r=n.green,o=n.blue,i=n.alpha,"rgba("+e+", "+r+", "+o+", "+(void 0===i?1:i)+")"}},ut={test:function(t){return"string"==typeof t?W(t,"hsl"):f(t)},parse:p(["hue","saturation","lightness","alpha"]),transform:function(t){var n,e,r,o,i,a=t.hue,u=t.saturation,s=t.lightness,c=t.alpha,f=void 0===c?1:c;return n={hue:Math.round(a),saturation:Y.transform(l(u)),lightness:Y.transform(l(s)),alpha:l(B.transform(f))},e=n.hue,r=n.saturation,o=n.lightness,i=n.alpha,"hsla("+e+", "+r+", "+o+", "+(void 0===i?1:i)+")"}},st=R({},at,{test:function(t){return"string"==typeof t&&W(t,"#")},parse:function(t){var n="",e="",r="";return 4<t.length?(n=t.substr(1,2),e=t.substr(3,2),r=t.substr(5,2)):(n=t.substr(1,1),e=t.substr(2,1),r=t.substr(3,1),n+=n,e+=e,r+=r),{red:parseInt(n,16),green:parseInt(e,16),blue:parseInt(r,16),alpha:1}}}),ct={test:function(t){return"string"==typeof t&&D.test(t)||c(t)||f(t)},parse:function(t){return at.test(t)?at.parse(t):ut.test(t)?ut.parse(t):st.test(t)?st.parse(t):t},transform:function(t){return c(t)?at.transform(t):f(t)?ut.transform(t):t}},ft="${c}",lt={test:function(t){if("string"!=typeof t||!isNaN(t))return!1;var n=0,e=t.match(k),r=t.match(V);return e&&(n+=e.length),r&&(n+=r.length),0<n},parse:function(t){var n=t,e=[],r=n.match(V);r&&(n=n.replace(V,ft),e.push.apply(e,r.map(ct.parse)));var o=n.match(k);return o&&e.push.apply(e,o.map(L.parse)),e},createTransformer:function(t){var r=t,o=0,n=t.match(V),i=n?n.length:0;if(n)for(var e=0;e<i;e++)r=r.replace(n[e],ft),o++;var a=r.match(k),u=a?a.length:0;if(a)for(e=0;e<u;e++)r=r.replace(a[e],"${n}"),o++;return function(t){for(var n=r,e=0;e<o;e++)n=n.replace(e<i?ft:"${n}",e<i?ct.transform(t[e]):l(t[e]));return n}},getAnimatableNone:function(t){var n=lt.parse(t);return lt.createTransformer(t)(n.map(G))}},pt=_,dt=q,ht=Z(2),vt=_(ht),mt=q(ht),gt=_(Q),yt=q(gt),bt=$(1.525),wt=_(bt),xt=q(bt),Et=K(1.525),Ct="undefined"!=typeof Float32Array;function Pt(a,n,u,e){function r(t){for(var n,e,r,o=0,i=1;10!==i&&s[i]<=t;++i)o+=.1;return n=(t-s[--i])/(s[i+1]-s[i]),.001<=(r=ot(e=o+.1*n,a,u))?function(t,n){for(var e=0,r=0;e<8;++e){if(0===(r=ot(n,a,u)))return n;n-=(it(n,a,u)-t)/r}return n}(t,e):0===r?e:function(t,n,e){for(var r,o,i=0;0<(r=it(o=n+(e-n)/2,a,u)-t)?e=o:n=o,1e-7<Math.abs(r)&&++i<10;);return o}(t,o,o+.1)}var s=Ct?new Float32Array(11):new Array(11);!function(){for(var t=0;t<11;++t)s[t]=it(.1*t,a,u)}();return function(t){return a===n&&u===e?t:0===t?0:1===t?1:it(r(t),n,e)}}function St(t){return"number"==typeof t}function Tt(r){return function(n,e,t){return void 0!==t?r(n,e,t):function(t){return r(n,e,t)}}}function Ot(t){return t.hasOwnProperty("x")&&t.hasOwnProperty("y")}function At(t){return Ot(t)&&t.hasOwnProperty("z")}function Mt(t,n){return Math.abs(t-n)}function Rt(t,n,e){var r=t*t,o=n*n;return Math.sqrt(Math.max(0,e*(o-r)+r))}function kt(n){return jt.find(function(t){return t.test(n)})}function Vt(t){return"'"+t+"' is not an animatable color. Use the equivalent color code instead."}function Dt(n,e){return function(t){return e(n(t))}}var Lt=Object.freeze({reversed:_,mirrored:q,createReversedEasing:pt,createMirroredEasing:dt,createExpoIn:Z,createBackIn:$,createAnticipateEasing:K,linear:J,easeIn:ht,easeOut:vt,easeInOut:mt,circIn:Q,circOut:gt,circInOut:yt,backIn:bt,backOut:wt,backInOut:xt,anticipate:Et,bounceOut:tt,bounceIn:function(t){return 1-tt(1-t)},bounceInOut:function(t){return t<.5?.5*(1-tt(1-2*t)):.5*tt(2*t-1)+.5},cubicBezier:Pt}),Bt={x:0,y:0,z:0},Ft=Tt(function(t,n,e){return Math.min(Math.max(e,t),n)}),It=function(t,n,e){var r=n-t;return 0==r?1:(e-t)/r},Xt=function(t,n,e){return-e*t+e*n+t},Yt=function(){return(Yt=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)},jt=[st,at,ut],Ht=function(t,n){var e=kt(t),r=kt(n);w(!!e,Vt(t)),w(!!r,Vt(n)),w(e.transform===r.transform,"Both colors must be hex/RGBA, OR both must be HSLA.");var o=e.parse(t),i=r.parse(n),a=Yt({},o),u=e===ut?Xt:Rt;return function(t){for(var n in a)"alpha"!==n&&(a[n]=u(o[n],i[n],t));return a.alpha=Xt(o.alpha,i.alpha,t),e.transform(a)}},zt=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.reduce(Dt)};function Nt(n,e){return St(n)?function(t){return Xt(n,e,t)}:ct.test(n)?Ht(n,e):_t(n,e)}var Ut=function(t,e){var r=t.slice(),o=r.length,i=t.map(function(t,n){return Nt(t,e[n])});return function(t){for(var n=0;n<o;n++)r[n]=i[n](t);return r}},Wt=function(t,n){var e=Yt({},t,n),r={};for(var o in e)void 0!==t[o]&&void 0!==n[o]&&(r[o]=Nt(t[o],n[o]));return function(t){for(var n in r)e[n]=r[n](t);return e}};function Gt(t){for(var n=lt.parse(t),e=n.length,r=0,o=0,i=0,a=0;a<e;a++)r||"number"==typeof n[a]?r++:void 0!==n[a].hue?i++:o++;return{parsed:n,numNumbers:r,numRGB:o,numHSL:i}}var _t=function(t,n){var e=lt.createTransformer(n),r=Gt(t),o=Gt(n);return w(r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers,"Complex values '"+t+"' and '"+n+"' too different to mix. Ensure all colors are of the same type."),zt(Ut(r.parsed,o.parsed),e)},qt=function(n,e){return function(t){return Xt(n,e,t)}};function Zt(t,n,e){for(var r,o=[],i=e||("number"==typeof(r=t[0])?qt:"string"==typeof r?ct.test(r)?Ht:_t:Array.isArray(r)?Ut:"object"==typeof r?Wt:void 0),a=t.length-1,u=0;u<a;u++){var s=i(t[u],t[u+1]);if(n){var c=Array.isArray(n)?n[u]:n;s=zt(c,s)}o.push(s)}return o}function $t(t,n,e){var r=void 0===e?{}:e,o=r.clamp,i=void 0===o||o,a=r.ease,u=r.mixer,s=t.length;w(s===n.length,"Both input and output ranges must be the same length"),w(!a||!Array.isArray(a)||a.length===s-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[s-1]&&(t=[].concat(t),n=[].concat(n),t.reverse(),n.reverse());var c,f,l,p,d,h,v,m,g,y=Zt(n,a,u),b=2===s?(h=y,v=(d=t)[0],m=d[1],g=h[0],function(t){return g(It(v,m,t))}):(f=y,l=(c=t).length,p=l-1,function(t){var n=0,e=!1;if(t<=c[0]?e=!0:t>=c[p]&&(n=p-1,e=!0),!e){for(var r=1;r<l&&!(c[r]>t||r===p);r++);n=r-1}var o=It(c[n],c[n+1],t);return f[n](o)});return i?zt(Ft(t[0],t[s-1]),b):b}function Kt(t,n){return n?t*(1e3/n):0}var Jt=Tt(function(t,n,e){var r=n-t;return((e-t)%r+r)%r+t}),Qt=(Ft(0,1),tn.prototype.addChild=function(t){void 0===t&&(t={});var n=new tn(this.current,P({parent:this},t));return this.children||(this.children=new Set),this.children.add(n),n},tn.prototype.removeChild=function(t){this.children&&this.children.delete(t)},tn.prototype.subscribeTo=function(t,n){function e(){return n(r.current)}var r=this;return t.add(e),function(){return t.delete(e)}},tn.prototype.onChange=function(t){return this.updateSubscribers||(this.updateSubscribers=new Set),this.subscribeTo(this.updateSubscribers,t)},tn.prototype.onRenderRequest=function(t){return this.renderSubscribers||(this.renderSubscribers=new Set),this.notifySubscriber(t),this.subscribeTo(this.renderSubscribers,t)},tn.prototype.attach=function(t){this.passiveEffect=t},tn.prototype.set=function(t,n){void 0===n&&(n=!0),n&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,n)},tn.prototype.get=function(){return this.current},tn.prototype.getVelocity=function(){return this.canTrackVelocity?Kt(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},tn.prototype.start=function(n){var e=this;return this.stop(),new Promise(function(t){e.stopAnimation=n(t)}).then(function(){return e.clearAnimation()})},tn.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},tn.prototype.isAnimating=function(){return!!this.stopAnimation},tn.prototype.clearAnimation=function(){this.stopAnimation=null},tn.prototype.destroy=function(){this.updateSubscribers&&this.updateSubscribers.clear(),this.renderSubscribers&&this.renderSubscribers.clear(),this.parent&&this.parent.removeChild(this),this.stop()},tn);function tn(t,n){var e,i=this,r=void 0===n?{}:n,o=r.transformer,a=r.parent;this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.updateAndNotify=function(t,n){void 0===n&&(n=!0),i.prev=i.current,i.current=i.transformer?i.transformer(t):t,i.updateSubscribers&&i.prev!==i.current&&i.updateSubscribers.forEach(i.notifySubscriber),i.children&&i.children.forEach(i.setChild),n&&i.renderSubscribers&&i.renderSubscribers.forEach(i.notifySubscriber);var e=T(),r=e.delta,o=e.timestamp;i.lastUpdated!==o&&(i.timeDelta=r,i.lastUpdated=o,F.postRender(i.scheduleVelocityCheck))},this.notifySubscriber=function(t){t(i.current)},this.scheduleVelocityCheck=function(){return F.postRender(i.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==i.lastUpdated&&(i.prev=i.current)},this.setChild=function(t){return t.set(i.current)},this.parent=a,this.transformer=o,this.set(t,!1),this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e)))}function nn(t,n){return new Qt(t,n)}function en(n,e){return function(t){return Math.max(Math.min(t,e),n)}}function rn(t){return t%1?Number(t.toFixed(5)):t}function on(n){return{test:function(t){return"string"==typeof t&&t.endsWith(n)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+n}}}function an(t){return void 0!==t.red}function un(t){return void 0!==t.hue}function sn(i){return function(t){if("string"!=typeof t)return t;for(var n,e={},r=(n=t).substring(n.indexOf("(")+1,n.lastIndexOf(")")).split(/,\s*/),o=0;o<4;o++)e[i[o]]=void 0!==r[o]?parseFloat(r[o]):1;return e}}var cn=function(){return(cn=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)},fn=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))$/i,ln={test:function(t){return"number"==typeof t},parse:parseFloat,transform:function(t){return t}},pn=cn(cn({},ln),{transform:en(0,1)}),dn=cn(cn({},ln),{default:1}),hn=on("deg"),vn=on("%"),mn=on("px"),gn=cn(cn({},vn),{parse:function(t){return vn.parse(t)/100},transform:function(t){return vn.transform(100*t)}}),yn=en(0,255),bn=cn(cn({},ln),{transform:function(t){return Math.round(yn(t))}});function wn(t,n){return t.startsWith(n)&&fn.test(t)}function xn(t){var e=t.onRead,n=t.onRender,r=t.uncachedValues,c=void 0===r?new Set:r,o=t.useCache,f=void 0===o||o;return function(t){void 0===t&&(t={});var r=b(t,[]),o={},i=[],a=!1;function u(t,n){t.startsWith("--")&&(r.hasCSSVariable=!0);var e=o[t];o[t]=n,o[t]!==e&&(-1===i.indexOf(t)&&i.push(t),a||(a=!0,F.render(s.render)))}var s={get:function(t,n){return void 0===n&&(n=!1),!n&&f&&!c.has(t)&&void 0!==o[t]?o[t]:e(t,r)},set:function(t,n){if("string"==typeof t)u(t,n);else for(var e in t)u(e,t[e]);return this},render:function(t){return void 0===t&&(t=!1),!a&&!0!==t||(n(o,r,i),a=!1,i.length=0),this}};return s}}function En(t,n){return kn.set(t,Mn(n))}var Cn,Pn={test:function(t){return"string"==typeof t?wn(t,"rgb"):an(t)},parse:sn(["red","green","blue","alpha"]),transform:function(t){var n,e,r,o,i,a=t.red,u=t.green,s=t.blue,c=t.alpha,f=void 0===c?1:c;return n={red:bn.transform(a),green:bn.transform(u),blue:bn.transform(s),alpha:rn(pn.transform(f))},e=n.red,r=n.green,o=n.blue,i=n.alpha,"rgba("+e+", "+r+", "+o+", "+(void 0===i?1:i)+")"}},Sn={test:function(t){return"string"==typeof t?wn(t,"hsl"):un(t)},parse:sn(["hue","saturation","lightness","alpha"]),transform:function(t){var n,e,r,o,i,a=t.hue,u=t.saturation,s=t.lightness,c=t.alpha,f=void 0===c?1:c;return n={hue:Math.round(a),saturation:vn.transform(rn(u)),lightness:vn.transform(rn(s)),alpha:rn(pn.transform(f))},e=n.hue,r=n.saturation,o=n.lightness,i=n.alpha,"hsla("+e+", "+r+", "+o+", "+(void 0===i?1:i)+")"}},Tn=cn(cn({},Pn),{test:function(t){return"string"==typeof t&&wn(t,"#")},parse:function(t){var n="",e="",r="";return 4<t.length?(n=t.substr(1,2),e=t.substr(3,2),r=t.substr(5,2)):(n=t.substr(1,1),e=t.substr(2,1),r=t.substr(3,1),n+=n,e+=e,r+=r),{red:parseInt(n,16),green:parseInt(e,16),blue:parseInt(r,16),alpha:1}}}),On={test:function(t){return"string"==typeof t&&fn.test(t)||an(t)||un(t)},parse:function(t){return Pn.test(t)?Pn.parse(t):Sn.test(t)?Sn.parse(t):Tn.test(t)?Tn.parse(t):t},transform:function(t){return an(t)?Pn.transform(t):un(t)?Sn.transform(t):t}},An=/([a-z])([A-Z])/g,Mn=function(t){return t.replace(An,"$1-$2").toLowerCase()},Rn=new Map,kn=new Map,Vn=["Webkit","Moz","O","ms",""],Dn=Vn.length,Ln="undefined"!=typeof document,Bn=function(t,n){void 0===n&&(n=!1);var e,r=n?kn:Rn;return r.has(t)||(Ln?function(t){Cn=Cn||document.createElement("div");for(var n=0;n<Dn;n++){var e=Vn[n],r=""===e,o=r?t:e+t.charAt(0).toUpperCase()+t.slice(1);if(o in Cn.style||r){if(r&&"clipPath"===t&&kn.has(t))return;Rn.set(t,o),En(t,(r?"":"-")+Mn(o))}}}(t):En(e=t,e)),r.get(t)||t},Fn=["","X","Y","Z"],In=["translate","scale","rotate","skew","transformPerspective"].reduce(function(t,e){return Fn.reduce(function(t,n){return t.push(e+n),t},t)},["x","y","z"]),Xn=In.reduce(function(t,n){return t[n]=!0,t},{});function Yn(t){return!0===Xn[t]}function jn(t,n){return In.indexOf(t)-In.indexOf(n)}var Hn=new Set(["originX","originY","originZ"]);var zn=P(P({},ln),{transform:Math.round}),Nn={color:On,backgroundColor:On,outlineColor:On,fill:On,stroke:On,borderColor:On,borderTopColor:On,borderRightColor:On,borderBottomColor:On,borderLeftColor:On,borderWidth:mn,borderTopWidth:mn,borderRightWidth:mn,borderBottomWidth:mn,borderLeftWidth:mn,borderRadius:mn,radius:mn,borderTopLeftRadius:mn,borderTopRightRadius:mn,borderBottomRightRadius:mn,borderBottomLeftRadius:mn,width:mn,maxWidth:mn,height:mn,maxHeight:mn,size:mn,top:mn,right:mn,bottom:mn,left:mn,padding:mn,paddingTop:mn,paddingRight:mn,paddingBottom:mn,paddingLeft:mn,margin:mn,marginTop:mn,marginRight:mn,marginBottom:mn,marginLeft:mn,rotate:hn,rotateX:hn,rotateY:hn,rotateZ:hn,scale:dn,scaleX:dn,scaleY:dn,scaleZ:dn,skew:hn,skewX:hn,skewY:hn,distance:mn,translateX:mn,translateY:mn,translateZ:mn,x:mn,y:mn,z:mn,perspective:mn,opacity:pn,originX:gn,originY:gn,originZ:mn,zIndex:zn,fillOpacity:pn,strokeOpacity:pn,numOctaves:zn},Un=function(t){return Nn[t]},Wn=function(t,n){return n&&"number"==typeof t?n.transform(t):t},Gn="scrollLeft",_n="scrollTop",qn=new Set([Gn,_n]),Zn=new Set([Gn,_n,"transform"]),$n={x:"translateX",y:"translateY",z:"translateZ"};function Kn(t){return"function"==typeof t}function Jn(t,n,e,r,o,i,a){void 0===n&&(n=!0),void 0===e&&(e={}),void 0===r&&(r={}),void 0===o&&(o={}),void 0===i&&(i=[]),void 0===a&&(a=!1);var u,s=!0,c=!1,f=!1;for(var l in t){var p=t[l],d=Un(l),h=Wn(p,d);Yn(l)?(c=!0,r[l]=h,i.push(l),s&&(d.default&&p!==d.default||!d.default&&0!==p)&&(s=!1)):(u=l,Hn.has(u)?(o[l]=h,f=!0):Zn.has(l)&&Kn(h)||(e[Bn(l,a)]=h))}return!c&&"function"!=typeof t.transform||(e.transform=function(t,n,e,r,o){var i="",a=!1;e.sort(jn);for(var u=e.length,s=0;s<u;s++){var c=e[s];i+=($n[c]||c)+"("+n[c]+") ",a="z"===c||a}return!a&&o?i+="translateZ(0)":i=i.trim(),Kn(t.transform)?i=t.transform(n,r?"":i):r&&(i="none"),i}(t,r,i,s,n)),f&&(e.transformOrigin=(o.originX||"50%")+" "+(o.originY||"50%")+" "+(o.originZ||0)),e}function Qn(n,e){void 0===n&&(n=!0),void 0===e&&(e=!0);var r={},o={},i={},a=[];return function(t){return a.length=0,Jn(t,n,r,o,i,a,e),r}}var te=xn({onRead:function(t,n){var e=n.element,r=n.preparseOutput,o=Un(t);if(Yn(t))return o&&o.default||0;if(qn.has(t))return e[t];var i=window.getComputedStyle(e,null).getPropertyValue(Bn(t,!0))||0;return r&&o&&o.test(i)&&o.parse?o.parse(i):i},onRender:function(t,n,e){var r=n.element,o=n.buildStyles,i=n.hasCSSVariable;if(Object.assign(r.style,o(t)),i)for(var a=e.length,u=0;u<a;u++){var s=e[u];s.startsWith("--")&&r.style.setProperty(s,t[s])}-1!==e.indexOf(Gn)&&(r[Gn]=t[Gn]),-1!==e.indexOf(_n)&&(r[_n]=t[_n])},uncachedValues:qn});var ne=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues"]),ee=.5,re=function(){return{style:{}}},oe=function(t,n){return mn.transform(t*n)},ie={x:0,y:0,width:0,height:0};function ae(t,n,e){return"string"==typeof t?t:mn.transform(n+e*t)}function ue(t,n,e,r,o,i){void 0===n&&(n=ie),void 0===r&&(r=Qn(!1,!1)),void 0===o&&(o=re()),void 0===i&&(i=!0);var a,u,s=t.attrX,c=t.attrY,f=t.originX,l=t.originY,p=t.pathLength,d=t.pathSpacing,h=void 0===d?1:d,v=t.pathOffset,m=void 0===v?0:v,g=r(b(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]));for(var y in g){if("transform"===y)o.style.transform=g[y];else o[i&&!ne.has(y)?Mn(y):y]=g[y]}return void 0===f&&void 0===l&&!g.transform||(o.style.transformOrigin=(u=void 0!==l?l:ee,ae(void 0!==f?f:ee,(a=n).x,a.width)+" "+ae(u,a.y,a.height))),void 0!==s&&(o.x=s),void 0!==c&&(o.y=c),void 0!==e&&void 0!==p&&(o[i?"stroke-dashoffset":"strokeDashoffset"]=oe(-m,e),o[i?"stroke-dasharray":"strokeDasharray"]=oe(p,e)+" "+oe(h,e)),o}function se(t){var n=function(t){try{return"function"==typeof(n=t).getBBox?n.getBBox():n.getBoundingClientRect()}catch(t){return{x:0,y:0,width:0,height:0}}var n}(t),e="path"===t.tagName&&t.getTotalLength?t.getTotalLength():void 0;return fe({element:t,buildAttrs:function(n,e,r){void 0===r&&(r=!0);var o=re(),i=Qn(!1,!1);return function(t){return ue(t,n,e,i,o,r)}}(n,e)})}function ce(t,n){var e,r,o;return t===window?e=le(t):(o=t)instanceof HTMLElement||"function"==typeof o.click?e=function(t,n){void 0===n&&(n={});var e=n.enableHardwareAcceleration,r=b(n,["enableHardwareAcceleration"]);return te(P({element:t,buildStyles:Qn(e),preparseOutput:!0},r))}(t,n):((r=t)instanceof SVGElement||"ownerSVGElement"in r)&&(e=se(t)),w(void 0!==e,"No valid node provided. Node must be HTMLElement, SVGElement or window."),pe.set(t,e),e}var fe=xn({onRead:function(t,n){var e=n.element;if(Yn(t=ne.has(t)?t:Mn(t))){var r=Un(t);return r&&r.default||0}return e.getAttribute(t)},onRender:function(t,n){var e=n.element,r=(0,n.buildAttrs)(t);for(var o in r)"style"===o?Object.assign(e.style,r.style):e.setAttribute(o,r[o])}}),le=xn({useCache:!1,onRead:function(t){return"scrollTop"===t?window.pageYOffset:window.pageXOffset},onRender:function(t){var n=t.scrollTop,e=void 0===n?0:n,r=t.scrollLeft,o=void 0===r?0:r;return window.scrollTo(o,e)}}),pe=new WeakMap,de=function(t,n){return pe.has(t)?pe.get(t):ce(t,n)};function he(t,n){var e="string"==typeof t?document.querySelector(t):t;return de(e,n)}function ve(t){var n=C.useRef(null);return null===n.current&&(n.current=t()),n.current}var me=function(t){return t instanceof Qt},ge=xn({onRead:function(){return null},onRender:function(t,n){return(0,n.onUpdate)(t)}}),ye=(be.prototype.has=function(t){return this.values.has(t)},be.prototype.set=function(t,n){this.values.set(t,n),this.hasMounted&&this.bindValueToOutput(t,n)},be.prototype.get=function(t,n){var e=this.values.get(t);return void 0===e&&void 0!==n&&(e=new Qt(n),this.set(t,e)),e},be.prototype.forEach=function(t){return this.values.forEach(t)},be.prototype.bindValueToOutput=function(n,t){var e=this,r=t.onRenderRequest(function(t){return e.output&&e.output(n,t)}),o=t.onChange(function(t){e.onUpdate&&e.onUpdate.set(n,t)});this.unsubscribers.has(n)&&this.unsubscribers.get(n)(),this.unsubscribers.set(n,function(){r(),o()})},be.prototype.setOnUpdate=function(t){this.onUpdate=void 0,t&&(this.onUpdate=ge({onUpdate:t}))},be.prototype.setTransformTemplate=function(t){this.transformTemplate!==t&&(this.transformTemplate=t,this.updateTransformTemplate())},be.prototype.getTransformTemplate=function(){return this.transformTemplate},be.prototype.updateTransformTemplate=function(){this.output&&this.output("transform",this.transformTemplate)},be.prototype.mount=function(t){var e=this;this.hasMounted=!0,t&&(this.output=t),this.values.forEach(function(t,n){return e.bindValueToOutput(n,t)}),this.updateTransformTemplate()},be.prototype.unmount=function(){var r=this;this.values.forEach(function(t,n){var e=r.unsubscribers.get(n);e&&e()})},be);function be(){this.hasMounted=!1,this.values=new Map,this.unsubscribers=new Map}function we(e){var t=ve(function(){var t=new ye;for(var n in e)me(e[n])&&!Ie.has(n)&&t.set(n,e[n]);return t});return t.setOnUpdate(e.onUpdate),t.setTransformTemplate(e.transformTemplate),t}function xe(t){return Array.isArray(t)}function Ee(t){return xe(t)?t[t.length-1]||0:t}function Ce(n){return function(t){return t.test(n)}}function Pe(t){return Ge.find(Ce(t))}function Se(t){return new Ze({init:t})}function Te(e){function r(t,n){return void 0!==t&&!e[n](t)}var t=Object.keys(e);return{getVectorKeys:function(e){return t.reduce(function(t,n){return r(e[n],n)&&t.push(n),t},[])},testVectorProps:function(n){return n&&t.some(function(t){return r(n[t],t)})}}}function Oe(n){return $e.find(function(t){return t.test(n)})}function Ae(t,n){return t(n)}function Me(t,n){var e=n.from,r=n.to,o=b(n,["from","to"]),i=Oe(e)||Oe(r),a=i.transform,u=i.parse;return t(P({},o,{from:"string"==typeof e?u(e):e,to:"string"==typeof r?u(r):r})).pipe(a)}function Re(i){return function(t,n){var e=n.from,r=n.to,o=b(n,["from","to"]);return t(P({},o,{from:0,to:1})).pipe(i(e,r))}}function ke(r,t){var n=Te(t),o=n.testVectorProps,i=n.getVectorKeys;return function(t){if(!o(t))return r(t);var n=i(t),e=t[n[0]];return Qe(e)(r,t,n)}}function Ve(B){return void 0===B&&(B={}),Se(function(t){function r(t){var n;void 0===t&&(t=!1),V=rr({from:x=(n=[C,x])[0],to:C=n[1],ease:l,reverseEase:t}).start(a)}function o(){D=or(It(0,c,S)),V.seek(D)}function n(){L=!0,i=F.update(function(t){var n,e=t.delta;S+=e,o(),!(n=L&&c+b<S)||(!n||v||d||g)&&(S=S-c-b,v&&k<v?(k++,!0):d&&O<d?(O++,r(),!0):g&&M<g&&(r(++M%2!=0),!0))||(I.update(i),u&&F.update(u,!1,!0))},!0)}function e(){L=!1,i&&I.update(i)}var i,a=t.update,u=t.complete,s=B.duration,c=void 0===s?300:s,f=B.ease,l=void 0===f?vt:f,p=B.flip,d=void 0===p?0:p,h=B.loop,v=void 0===h?0:h,m=B.yoyo,g=void 0===m?0:m,y=B.repeatDelay,b=void 0===y?0:y,w=B.from,x=void 0===w?0:w,E=B.to,C=void 0===E?1:E,P=B.elapsed,S=void 0===P?0:P,T=B.flipCount,O=void 0===T?0:T,A=B.yoyoCount,M=void 0===A?0:A,R=B.loopCount,k=void 0===R?0:R,V=rr({from:x,to:C,ease:l}).start(a),D=0,L=!1;return n(),{isActive:function(){return L},getElapsed:function(){return Ft(0,c,S)},getProgress:function(){return D},stop:function(){e()},pause:function(){return e(),this},resume:function(){return L||n(),this},seek:function(t){return S=Xt(0,c,t),F.update(o,!1,!0),this},reverse:function(){return r(),this}}})}function De(r,o,i){return Se(function(t){var n=t.update,e=o.split(" ").map(function(t){return r.addEventListener(t,n,i),t});return{stop:function(){return e.forEach(function(t){return r.removeEventListener(t,n,i)})}}})}function Le(){return{clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}}function Be(t,n){return void 0===n&&(n=Le()),n.clientX=n.x=t.clientX,n.clientY=n.y=t.clientY,n.pageX=t.pageX,n.pageY=t.pageY,n}var Fe,Ie=new Set(["dragOriginX","dragOriginY"]),Xe=null,Ye=function(){return null!==Xe},je=function(){w(!Xe,"Sync render session already open"),Xe=[]},He=function(){w(null!==Xe,"No sync render session found"),Xe&&Xe.forEach(function(t){return t.render()}),Xe=null},ze=function(t){w(null!==Xe,"No sync render session found"),Xe&&Xe.push(t)},Ne=C.memo(function(t){var n=t.innerRef,r=t.values,o=t.isStatic;return C.useEffect(function(){w(n.current instanceof Element,"No `ref` found. Ensure components created with `motion.custom` forward refs using `React.forwardRef`");var e=he(n.current,{preparseOutput:!1,enableHardwareAcceleration:!o});return r.mount(function(t,n){e.set(t,n),Ye()&&ze(e)}),function(){return r.unmount()}},[]),null}),Ue=(Fe=function(t){return t.get()},function(t){var e={};return t.forEach(function(t,n){return e[n]=Fe(t)}),e}),We=new Set(["originX","originY","originZ"]),Ge=[L,j,Y,X,z,H,{test:function(t){return"auto"===t},parse:function(t){return t}}],_e=S(Ge,[ct,lt]),qe=function(){return function(t,n){var e=this,r=t.middleware,o=t.onComplete;this.isActive=!0,this.update=function(t){e.observer.update&&e.updateObserver(t)},this.complete=function(){e.observer.complete&&e.isActive&&e.observer.complete(),e.onComplete&&e.onComplete(),e.isActive=!1},this.error=function(t){e.observer.error&&e.isActive&&e.observer.error(t),e.isActive=!1},this.observer=n,this.updateObserver=function(t){return n.update(t)},this.onComplete=o,n.update&&r&&r.length&&r.forEach(function(t){return e.updateObserver=t(e.updateObserver,e.complete)})}}(),Ze=function(){function n(t){void 0===t&&(t={}),this.props=t}return n.prototype.create=function(t){return new n(t)},n.prototype.start=function(t){void 0===t&&(t={});var n,e,r,o=!1,i={stop:function(){}},a=this.props,u=a.init,s=b(a,["init"]),c=u((n=t,e=function(){o=!0,i.stop()},r=s.middleware,new qe({middleware:r,onComplete:e},"function"==typeof n?{update:n}:n)));return i=c?P({},i,c):i,o&&i.stop(),i},n.prototype.applyMiddleware=function(t){return this.create(P({},this.props,{middleware:this.props.middleware?[t].concat(this.props.middleware):[t]}))},n.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=1===t.length?t[0]:zt.apply(void 0,t);return this.applyMiddleware(function(n){return function(t){return n(e(t))}})},n}(),$e=[j,Y,X,H,z],Ke=Re(Ht),Je=Re(_t),Qe=function(t){return"number"==typeof t?Ae:Boolean(Oe(t))?Me:ct.test(t)?Ke:lt.test(t)?Je:Ae},tr=ke(function(b){return void 0===b&&(b={}),Se(function(t){var o=t.complete,i=t.update,n=b.velocity,e=void 0===n?0:n,r=b.from,a=void 0===r?0:r,u=b.power,s=void 0===u?.8:u,c=b.timeConstant,f=void 0===c?350:c,l=b.restDelta,p=void 0===l?.5:l,d=b.modifyTarget,h=0,v=s*e,m=Math.round(a+v),g=void 0===d?m:d(m),y=F.update(function(t){var n=t.delta;h+=n;var e=-v*Math.exp(-h/f),r=p<e||e<-p;i(r?g+e:g),r||(I.update(y),o())},!0);return{stop:function(){return I.update(y)}}})},{from:L.test,modifyTarget:function(t){return"function"==typeof t},velocity:L.test}),nr=ke(function(S){return void 0===S&&(S={}),Se(function(t){var s=t.update,c=t.complete,n=S.velocity,f=void 0===n?0:n,e=S.from,r=void 0===e?0:e,o=S.to,l=void 0===o?0:o,i=S.stiffness,p=void 0===i?100:i,a=S.damping,d=void 0===a?10:a,u=S.mass,h=void 0===u?1:u,v=S.restSpeed,m=void 0===v?.01:v,g=S.restDelta,y=void 0===g?.01:g,b=f?-f/1e3:0,w=0,x=l-r,E=r,C=E,P=F.update(function(t){var n=t.delta;w+=n;var e=d/(2*Math.sqrt(p*h)),r=Math.sqrt(p/h)/1e3;if(C=E,e<1){var o=Math.exp(-e*r*w),i=r*Math.sqrt(1-e*e);E=l-o*((b+e*r*x)/i*Math.sin(i*w)+x*Math.cos(i*w))}else{o=Math.exp(-r*w);E=l-o*(x+(b+r*x)*w)}f=Kt(E-C,n);var a=Math.abs(f)<=m,u=Math.abs(l-E)<=y;a&&u?(s(E=l),I.update(P),c()):s(E)},!0);return{stop:function(){return I.update(P)}}})},{from:L.test,to:L.test,stiffness:L.test,damping:L.test,mass:L.test,velocity:L.test}),er=ke(function(t){var n=t.from,h=void 0===n?0:n,e=t.velocity,v=void 0===e?0:e,m=t.min,g=t.max,r=t.power,y=void 0===r?.8:r,o=t.timeConstant,b=void 0===o?700:o,i=t.bounceStiffness,w=void 0===i?500:i,a=t.bounceDamping,x=void 0===a?10:a,u=t.restDelta,E=void 0===u?1:u,C=t.modifyTarget;return Se(function(t){function r(t){return void 0!==m&&t<=m}function o(t){return void 0!==g&&g<=t}function n(t){return r(t)||o(t)}function e(t){var n,e;u(t),c=f,v=Kt((f=t)-c,T().delta),a&&!l&&(e=v,r(n=t)&&e<0||o(n)&&0<e)&&p({from:t,velocity:v})}function i(t,n){a&&a.stop(),a=t.start({update:e,complete:function(){n?n():s()}})}var a,u=t.update,s=t.complete,c=h,f=h,l=!1,p=function(t){l=!0,i(nr(P({},t,{to:r(t.from)?m:g,stiffness:w,damping:x,restDelta:E})))};if(n(h))p({from:h,velocity:v});else if(0!==v){var d=tr({from:h,velocity:v,timeConstant:b,power:y,restDelta:n(h)?20:E,modifyTarget:C});i(d,function(){n(f)?p({from:f,velocity:v}):s()})}else s();return{stop:function(){return a&&a.stop()}}})},{from:L.test,velocity:L.test,min:L.test,max:L.test,damping:L.test,stiffness:L.test,modifyTarget:function(t){return"function"==typeof t}}),rr=ke(function(t){var n=t.from,e=void 0===n?0:n,r=t.to,o=void 0===r?1:r,i=t.ease,a=void 0===i?J:i,u=t.reverseEase;return void 0!==u&&u&&(a=pt(a)),Se(function(t){var n=t.update;return{seek:function(t){return n(t)}}}).pipe(a,function(t){return Xt(e,o,t)})},{ease:function(t){return"function"==typeof t},from:L.test,to:L.test}),or=Ft(0,1),ir=Ft(0,1),ar=[Le()];if("undefined"!=typeof document){De(document,"touchstart touchmove",{passive:!0,capture:!0}).start(function(t){for(var n=t.touches,e=n.length,r=ar.length=0;r<e;r++){var o=n[r];ar.push(Be(o))}})}var ur=Le();if("undefined"!=typeof document){De(document,"mousedown mousemove",!0).start(function(t){Be(t,ur)})}function sr(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function cr(t){return{type:"spring",stiffness:700,damping:0===t?100:35}}function fr(){return{ease:"linear",duration:.3}}function lr(t){return{type:"keyframes",duration:.8,values:t}}function pr(t){var r=t.to,o=t.duration;return Se(function(t){var n=t.update,e=t.complete;n(r),o?gr(o).start({complete:e}):e()})}function dr(t){return Array.isArray(t)?(w(4===t.length,"Cubic bezier arrays must contain four numerical values."),Pt(t[0],t[1],t[2],t[3])):"string"==typeof t?(w(void 0!==Lt[t],"Invalid easing type '"+t+"'"),Lt[t]):t}function hr(t){return Array.isArray(t)&&"number"!=typeof t[0]}function vr(t,n){return"zIndex"!==t&&(!("number"!=typeof n&&!Array.isArray(n))||!("string"!=typeof n||!lt.test(n)||n.startsWith("url(")))}function mr(t,n,e){var r,o,i,a=e?e.delay:0;if(void 0===e||!function(t){t.when,t.delay,t.delayChildren,t.staggerChildren,t.staggerDirection;var n=b(t,["when","delay","delayChildren","staggerChildren","staggerDirection"]);return Object.keys(n).length}(e))return P({delay:a},(r=t,i=xe(o=n)?lr:yr[r]||yr.default,P({to:o},i(o))));var u=e[t]||e.default||e;return!1===u.type?{delay:u.hasOwnProperty("delay")?u.delay:a,to:xe(n)?n[n.length-1]:n,type:"just"}:xe(n)?P(P({values:n,duration:.8,delay:a,ease:"linear"},u),{type:"keyframes"}):P({type:"tween",to:n,delay:a},u)}var gr=function(r){return Se(function(t){var n=t.complete,e=setTimeout(n,r);return{stop:function(){return clearTimeout(e)}}})},yr={x:sr,y:sr,z:sr,rotate:sr,rotateX:sr,rotateY:sr,rotateZ:sr,scaleX:cr,scaleY:cr,scale:cr,opacity:fr,backgroundColor:fr,color:fr,default:cr},br=function(t){return 1e3*t},wr={tween:Ve,spring:nr,keyframes:function(t){var n,e,r,o,i=t.easings,a=t.ease,u=void 0===a?J:a,s=t.times,c=t.values,f=b(t,["easings","ease","times","values"]);i=Array.isArray(i)?i:(e=i,(n=c).map(function(){return e||vt}).splice(0,n.length-1)),s=s||(o=(r=c).length,r.map(function(t,n){return 0!==n?n/(o-1):0}));var l=i.map(function(t,n){return rr({from:c[n],to:c[n+1],ease:t})});return Ve(P({},f,{ease:u})).applyMiddleware(function(t){return n=l,e=t,o=(r=s).length,a=(i=o-1)-1,u=n.map(function(t){return t.start(e)}),function(t){t<=r[0]&&u[0].seek(0),t>=r[i]&&u[a].seek(1);for(var n=1;n<o&&!(r[n]>t||n===i);n++);var e=It(r[n-1],r[n],t);u[n-1].seek(ir(e))};var r,n,e,o,i,a,u})},inertia:er,just:pr},xr={tween:function(t){if(t.ease){var n=hr(t.ease)?t.ease[0]:t.ease;t.ease=dr(n)}return t},keyframes:function(t){var n=t.from,e=(t.to,t.velocity,b(t,["from","to","velocity"]));if(e.values&&null===e.values[0]){var r=S(e.values);r[0]=n,e.values=r}return e.ease&&(e.easings=hr(e.ease)?e.ease.map(dr):dr(e.ease)),e.ease=J,e}},Er=function(t,n,e,r){var o,i,a,u=n.get(),s=vr(t,u),c=vr(t,e),f=mr(t,e,r),l=f.type,p=void 0===l?"tween":l,d=b(f,["type"]),h=s&&c?wr[p]:pr,v=(o=p,i=P({from:u,velocity:n.getVelocity()},d),xr[o]?xr[o](i):i);return((a=v).hasOwnProperty("duration")||a.hasOwnProperty("repeatDelay"))&&(v.duration&&(v.duration=br(v.duration)),v.repeatDelay&&(v.repeatDelay=br(v.repeatDelay))),[h,v]};function Cr(s,c,f,t){var n=t.delay,l=void 0===n?0:n,p=b(t,["delay"]);return c.start(function(n){var e,t=Er(s,c,f,p),r=t[0],o=t[1],i=o.delay,a=b(o,["delay"]);void 0!==i&&(l=i);function u(){var t=r(a);e=t.start({update:function(t){return c.set(t)},complete:n})}return l?e=gr(br(l)).start({complete:u}):u(),function(){e&&e.stop()}})}var Pr=(Sr.prototype.setProps=function(t){this.props=t},Sr.prototype.setVariants=function(t){t&&(this.variants=t)},Sr.prototype.setDefaultTransition=function(t){t&&(this.defaultTransition=t)},Sr.prototype.setValues=function(t,n){var r=this,e=void 0===n?{}:n,o=e.isActive,i=void 0===o?new Set:o,a=e.priority,u=this.resolveVariant(t),s=u.target,c=u.transitionEnd;return s=this.transformValues(P(P({},s),c)),Object.keys(s).forEach(function(t){if(!i.has(t)&&(i.add(t),s)){var n=Ee(s[t]);if(r.values.has(t)){var e=r.values.get(t);e&&e.set(n)}else r.values.set(t,nn(n));a||(r.baseTarget[t]=n)}})},Sr.prototype.transformValues=function(t){var n=this.props.transformValues;return n?n(t):t},Sr.prototype.checkForNewValues=function(t){var n,e=Object.keys(t).filter(this.hasValue),r=e.length;if(r)for(var o=0;o<r;o++){var i=e[o],a=t[i],u=null;Array.isArray(a)&&(u=a[0]),null===u&&(u=this.readValueFromSource(i),w(null!==u,'No initial value for "'+i+'" can be inferred. Ensure an initial value for "'+i+'" is defined on the component.')),"string"==typeof u&&/^\d*\.?\d+$/.test(u)?u=parseFloat(u):(n=u,!_e.find(Ce(n))&<.test(a)&&(u=lt.getAnimatableNone(a))),this.values.set(i,nn(u)),this.baseTarget[i]=u}},Sr.prototype.resolveVariant=function(t){if(!t)return{target:void 0,transition:void 0,transitionEnd:void 0};var n,e,r,o;"function"==typeof t&&(t=t(this.props.custom,(r=this.values,o={},r.forEach(function(t,n){return o[n]=t.get()}),o),(n=this.values,e={},n.forEach(function(t,n){return e[n]=t.getVelocity()}),e)));var i=t.transition;return{transition:void 0===i?this.defaultTransition:i,transitionEnd:t.transitionEnd,target:b(t,["transition","transitionEnd"])}},Sr.prototype.getHighestPriority=function(){return this.activeOverrides.size?Math.max.apply(Math,Array.from(this.activeOverrides)):0},Sr.prototype.setOverride=function(n,e){this.overrides[e]=n,this.children&&this.children.forEach(function(t){return t.setOverride(n,e)})},Sr.prototype.startOverride=function(t){var n=this.overrides[t];if(n)return this.start(n,{priority:t})},Sr.prototype.clearOverride=function(n){var t=this;if(this.children&&this.children.forEach(function(t){return t.clearOverride(n)}),this.overrides[n]){this.activeOverrides.delete(n);var e=this.getHighestPriority();this.resetIsAnimating(),!e||this.overrides[e]&&this.startOverride(e);var r=this.resolvedOverrides[n];if(r){var o={};for(var i in this.baseTarget)void 0!==r[i]&&(o[i]=this.baseTarget[i]);this.onStart(),this.animate(o).then(function(){return t.onComplete()})}}},Sr.prototype.apply=function(t){return Array.isArray(t)?this.applyVariantLabels(t):"string"==typeof t?this.applyVariantLabels([t]):void this.setValues(t)},Sr.prototype.applyVariantLabels=function(o){var i=this,a=new Set;S(o).reverse().forEach(function(t){var n=i.resolveVariant(i.variants[t]),e=n.target,r=n.transitionEnd;r&&i.setValues(r,{isActive:a}),e&&i.setValues(e,{isActive:a}),i.children&&i.children.size&&i.children.forEach(function(t){return t.applyVariantLabels(o)})})},Sr.prototype.start=function(t,n){var e,r,o=this;return void 0===n&&(n={}),n.priority&&this.activeOverrides.add(n.priority),this.resetIsAnimating(n.priority),r=t,e=Array.isArray(r)?this.animateVariantLabels(t,n):"string"==typeof t?this.animateVariant(t,n):this.animate(t,n),this.onStart(),e.then(function(){return o.onComplete()})},Sr.prototype.animate=function(t,n){var e=this,r=void 0===n?{}:n,o=r.delay,i=void 0===o?0:o,a=r.priority,u=void 0===a?0:a,s=r.transitionOverride,c=this.resolveVariant(t),f=c.target,l=c.transition,p=c.transitionEnd;if(s&&(l=s),!f)return Promise.resolve();if(f=this.transformValues(f),p=p&&this.transformValues(p),this.checkForNewValues(f),this.makeTargetAnimatable){var d=this.makeTargetAnimatable(f,p);f=d.target,p=d.transitionEnd}u&&(this.resolvedOverrides[u]=f),this.checkForNewValues(f);var h=[];for(var v in f){var m=this.values.get(v);if(m&&f&&void 0!==f[v]){var g=f[v];u||(this.baseTarget[v]=Ee(g)),this.isAnimating.has(v)||(this.isAnimating.add(v),h.push(Cr(v,m,g,P({delay:i},l))))}}var y=Promise.all(h);return p?y.then(function(){e.setValues(p,{priority:u})}):y},Sr.prototype.animateVariantLabels=function(t,n){var e=this,r=S(t).reverse().map(function(t){return e.animateVariant(t,n)});return Promise.all(r)},Sr.prototype.animateVariant=function(t,n){var e=this,r=!1,o=0,i=0,a=1,u=n&&n.priority||0,s=this.variants[t],c=s?function(){return e.animate(s,n)}:function(){return Promise.resolve()},f=this.children?function(){return e.animateChildren(t,o,i,a,u)}:function(){return Promise.resolve()};if(s&&this.children){var l=this.resolveVariant(s).transition;l&&(r=l.when||r,o=l.delayChildren||o,i=l.staggerChildren||i,a=l.staggerDirection||a)}if(r){var p="beforeChildren"===r?[c,f]:[f,c],d=p[1];return(0,p[0])().then(d)}return Promise.all([c(),f()])},Sr.prototype.animateChildren=function(r,o,n,t,i){if(void 0===o&&(o=0),void 0===n&&(n=0),void 0===t&&(t=1),void 0===i&&(i=0),!this.children)return Promise.resolve();var a=[],e=(this.children.size-1)*n,u=1===t?function(t){return t*n}:function(t){return e-t*n};return Array.from(this.children).forEach(function(t,n){var e=t.animateVariant(r,{priority:i,delay:o+u(n)});a.push(e)}),Promise.all(a)},Sr.prototype.onStart=function(){var t=this.props.onAnimationStart;t&&t()},Sr.prototype.onComplete=function(){var t=this.props.onAnimationComplete;t&&t()},Sr.prototype.checkOverrideIsAnimating=function(t){for(var n=this.overrides.length,e=t+1;e<n;e++){var r=this.resolvedOverrides[e];if(r)for(var o in r)this.isAnimating.add(o)}},Sr.prototype.resetIsAnimating=function(n){void 0===n&&(n=0),this.isAnimating.clear(),n<this.getHighestPriority()&&this.checkOverrideIsAnimating(n),this.children&&this.children.forEach(function(t){return t.resetIsAnimating(n)})},Sr.prototype.stop=function(){this.values.forEach(function(t){return t.stop()})},Sr.prototype.addChild=function(e){this.children||(this.children=new Set),this.children.add(e),this.overrides.forEach(function(t,n){t&&e.setOverride(t,n)})},Sr.prototype.removeChild=function(t){this.children&&this.children.delete(t)},Sr.prototype.resetChildren=function(){this.children&&this.children.clear()},Sr);function Sr(t){var e=this,n=t.values,r=t.readValueFromSource,o=t.makeTargetAnimatable;this.props={},this.variants={},this.baseTarget={},this.overrides=[],this.resolvedOverrides=[],this.activeOverrides=new Set,this.isAnimating=new Set,this.hasValue=function(t){return!e.values.has(t)},this.values=n,this.readValueFromSource=r,this.makeTargetAnimatable=o,this.values.forEach(function(t,n){return e.baseTarget[n]=t.get()})}var Tr=(Or.prototype.setVariants=function(n){this.variants=n,this.componentControls.forEach(function(t){return t.setVariants(n)})},Or.prototype.setDefaultTransition=function(n){this.defaultTransition=n,this.componentControls.forEach(function(t){return t.setDefaultTransition(n)})},Or.prototype.subscribe=function(t){var n=this;return this.componentControls.add(t),this.variants&&t.setVariants(this.variants),this.defaultTransition&&t.setDefaultTransition(this.defaultTransition),function(){return n.componentControls.delete(t)}},Or.prototype.start=function(e,r){var n=this;if(this.hasMounted){var o=[];return this.componentControls.forEach(function(t){var n=t.start(e,{transitionOverride:r});o.push(n)}),Promise.all(o)}return new Promise(function(t){n.pendingAnimations.push({animation:[e,r],resolve:t})})},Or.prototype.set=function(n){return w(this.hasMounted,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),this.componentControls.forEach(function(t){return t.apply(n)})},Or.prototype.stop=function(){this.componentControls.forEach(function(t){return t.stop()})},Or.prototype.mount=function(){var r=this;this.hasMounted=!0,this.pendingAnimations.forEach(function(t){var n=t.animation,e=t.resolve;return r.start.apply(r,n).then(e)})},Or.prototype.unmount=function(){this.hasMounted=!1,this.stop()},Or);function Or(){this.hasMounted=!1,this.pendingAnimations=[],this.componentControls=new Set}function Ar(t){return"string"==typeof t||Array.isArray(t)}function Mr(t){return t instanceof Tr}function Rr(n,e,t,r,o){void 0===r&&(r=!1);var i,a=o.initial,u=o.animate,s=o.variants,c=o.whileTap,f=o.whileHover;n.exitProps&&void 0!==n.exitProps.initial&&(a=n.exitProps.initial),!1!==a||Mr(u)?"boolean"!=typeof a&&(i=a):i=u;var l=C.useRef(!1),p=s||Ar(u)||Ar(c)||Ar(f)||Mr(u),d=Ar(i)?i:n.initial,h=Ar(u)?u:n.animate,v=r?d:null,m=p&&Ar(h)?h:null,g=C.useMemo(function(){return{controls:p?e:n.controls,initial:d,animate:h,values:t,hasMounted:l,isReducedMotion:n.isReducedMotion}},[v,m,n.isReducedMotion]);return function(t,n){void 0===n&&(n=!1);var e=C.useRef(!0);(!n||n&&e.current)&&t(),e.current=!1}(function(){var t=i||n.initial;t&&e.apply(t)},!(g.static=r)),C.useEffect(function(){l.current=!0},[]),g}var kr=C.createContext({static:!1});function Vr(t,n,e,r){var o=n.variants,i=n.transition,a=C.useContext(kr).controls,u=ve(function(){return new Pr(t)});return r&&r.exitProps&&r.exitProps.isExiting||(u.resetChildren(),u.setProps(n),u.setVariants(o),u.setDefaultTransition(i)),C.useEffect(function(){e&&a&&a.addChild(u)}),C.useEffect(function(){return function(){n.onAnimationComplete;var t=b(n,["onAnimationComplete"]);u.setProps(t),a&&a.removeChild(u)}},[]),u}function Dr(t){var n=t&&"function"!=typeof t?t:C.useRef(null);return t&&"function"==typeof t&&C.useEffect(function(){return t(n.current),function(){return t(null)}},[]),n}function Lr(t){var m=t.getValueControlsConfig,g=t.loadFunctionalityComponents,y=t.renderComponent;return C.forwardRef(function(t,n){var e,r,o,i,a=Dr(n),u=C.useContext(kr),s=u.static||t.static||!1,c=we(t),f=function(t,n,e,r){void 0===n&&(n={});var o,i={},a=C.useRef({}).current;for(var u in n){var s=n[u];if(me(s))t.set(u,s);else if(e||!Yn(u)&&(o=u,!We.has(o)))i[u]=s;else{if(t.has(u)){if(s!==a[u])t.get(u).set(s)}else t.set(u,nn(s));a[u]=s}}return r?r(i):i}(c,t.style,s,t.transformValues),l=(r=(e=t).animate,o=e.variants,(void 0===(i=e.inherit)||i)&&!!o&&(!r||r instanceof Tr)),p=Vr(ve(function(){return m(a,c)}),t,l,u),d=Rr(u,p,c,s,t),h=s?null:g(a,c,t,u,p,l),v=y(a,f,c,t,s);return C.createElement(C.Fragment,null,C.createElement(kr.Provider,{value:d},v),C.createElement(C.Fragment,null,C.createElement(Ne,{innerRef:a,values:c,isStatic:s}),h))})}var Br=["animate","circle","clipPath","defs","desc","ellipse","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","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use","view"],Fr=C.createContext({transformPagePoint:function(t){return t}});function Ir(t){return C.useEffect(function(){return function(){return t()}},[])}function Xr(t,n,e,r){if(e)return t.addEventListener(n,e,r),function(){return t.removeEventListener(n,e,r)}}function Yr(n,e,r,o){C.useEffect(function(){var t=n.current;if(r&&t)return Xr(t,e,r,o)},[n,e,r,o])}function jr(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function Hr(t){return!!t.touches}var zr={pageX:0,pageY:0};function Nr(t){return{point:Hr(t)?{x:(a=(i=t).touches[0]||i.changedTouches[0]||zr).pageX,y:a.pageY}:(e=(n=t).pageX,r=void 0===e?0:e,o=n.pageY,{x:r,y:void 0===o?0:o})};var n,e,r,o,i,a}var Ur,Wr=function(n,t){if(void 0===t&&(t=!1),n){var e=function(t){return n(t,Nr(t))};return t?function(e){if(e)return function(t){var n=t instanceof MouseEvent;(!n||n&&0===t.button)&&e(t)}}(e):e}},Gr="undefined"!=typeof window,_r=function(){return Gr&&null===window.onpointerdown},qr=function(){return Gr&&null===window.ontouchstart},Zr=function(){return Gr&&null===window.onmousedown},$r={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Kr={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Jr(t){return _r()?t:qr()?Kr[t]:Zr()?$r[t]:t}function Qr(t,n,e,r){return Xr(t,Jr(n),Wr(e,"pointerdown"===n),r)}function to(t,n,e,r){return Yr(t,Jr(n),Wr(e,"pointerdown"===n),r)}(Ur=r.Point||(r.Point={})).subtract=function(t,n){return{x:t.x-n.x,y:t.y-n.y}};var no=!(Ur.relativeTo=function(i){var a;return function(t){var n=t.x,e=t.y,r=void 0!==a?a:a="string"==typeof i?document.getElementById(i):i;if(r){var o=r.getBoundingClientRect();return{x:n-o.left-window.scrollX,y:e-o.top-window.scrollY}}}});"undefined"!=typeof window&&document.addEventListener("touchmove",function(t){no&&t.preventDefault()},{passive:!1});function eo(){return no=!1}var ro=(oo.prototype.handlePointerMove=function(t,n){this.lastMoveEvent=t,this.lastMoveEventInfo=io(n,this.transformPagePoint),jr(t)&&0===t.buttons?this.handlePointerUp(t,n):F.update(this.updatePoint,!0)},oo.prototype.handlePointerUp=function(t,n){this.end();var e=this.handlers.onEnd;if(e){var r=ao(io(n,this.transformPagePoint),this.history);e&&e(t,r)}},oo.prototype.updateHandlers=function(t){this.handlers=t},oo.prototype.end=function(){this.removeListeners&&this.removeListeners(),I.update(this.updatePoint),eo()},oo);function oo(t,n,e){var s=this,r=(void 0===e?{}:e).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(s.lastMoveEvent&&s.lastMoveEventInfo){var t=ao(s.lastMoveEventInfo,s.history),n=null!==s.startEvent,e=3<=function(t,n){if(void 0===n&&(n=Bt),St(t)&&St(n))return Mt(t,n);if(Ot(t)&&Ot(n)){var e=Mt(t.x,n.x),r=Mt(t.y,n.y),o=At(t)&&At(n)?Mt(t.z,n.z):0;return Math.sqrt(Math.pow(e,2)+Math.pow(r,2)+Math.pow(o,2))}return 0}(t.offset,{x:0,y:0});if(n||e){var r=t.point,o=T().timestamp;s.history.push(P(P({},r),{timestamp:o}));var i=s.handlers,a=i.onStart,u=i.onMove;n||(a&&a(s.lastMoveEvent,t),s.startEvent=s.lastMoveEvent),u&&u(s.lastMoveEvent,t)}}},!(Hr(t)&&1<t.touches.length)){this.handlers=n,this.transformPagePoint=r;var o=io(Nr(t),this.transformPagePoint),i=o.point,a=T().timestamp;this.history=[P(P({},i),{timestamp:a})];var u=n.onSessionStart;u&&u(t,ao(o,this.history));var c=Qr(window,"pointermove",function(t,n){return s.handlePointerMove(t,n)}),f=Qr(window,"pointerup",function(t,n){return s.handlePointerUp(t,n)});this.removeListeners=function(){c&&c(),f&&f()}}}function io(t,n){return n?{point:n(t.point)}:t}function ao(t,n){var e=t.point;return{point:e,delta:r.Point.subtract(e,uo(n)),offset:r.Point.subtract(e,n[0]),velocity:function(t,n){if(t.length<2)return{x:0,y:0};var e=t.length-1,r=null,o=uo(t);for(;0<=e&&(r=t[e],!(o.timestamp-r.timestamp>br(n)));)e--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0==i)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};a.x===1/0&&(a.x=0);a.y===1/0&&(a.y=0);return a}(n,.1)}}function uo(t){return t[t.length-1]}function so(t,n){var e=t.onPan,r=t.onPanStart,o=t.onPanEnd,i=t.onPanSessionStart,a=e||r||o||i,u=C.useRef(null),s=C.useContext(Fr).transformPagePoint,c={onSessionStart:i,onStart:r,onMove:e,onEnd:function(t,n){u.current=null,o&&o(t,n)}};null!==u.current&&u.current.updateHandlers(c),to(n,"pointerdown",a&&function(t){u.current=new ro(t,c,{transformPagePoint:s})}),Ir(function(){return u.current&&u.current.end()})}function co(t){return lo.indexOf(t)+1}var fo=function(t,n){return!!n&&(t===n||fo(t,n.parentElement))},lo=["whileHover","whileTap","whileDrag"];function po(t){var n=null;return function(){return null===n&&(n=t,function(){n=null})}}var ho=po("dragHorizontal"),vo=po("dragVertical");function mo(t){var n=!1;if("y"===t)n=vo();else if("x"===t)n=ho();else{var e=ho(),r=vo();e&&r?n=function(){e(),r()}:(e&&e(),r&&r())}return n}var go=co("whileTap");function yo(t,o){var i=t.onTap,e=t.onTapStart,a=t.onTapCancel,u=t.whileTap,s=t.controls,n=i||e||a||u,c=C.useRef(!1),r=C.useRef(null);function f(){r.current&&r.current(),r.current=null}u&&s&&s.setOverride(u,go);var l=C.useRef(null);l.current=function(t,n){var e=o.current;if(f(),c.current&&e){c.current=!1,s&&u&&s.clearOverride(go);var r=mo(!0);r&&(r(),fo(e,t.target)?i&&i(t,n):a&&a(t,n))}},to(o,"pointerdown",n?function(t,n){f(),r.current=Qr(window,"pointerup",function(t,n){return l.current(t,n)}),o.current&&!c.current&&(c.current=!0,e&&e(t,n),s&&u&&s.startOverride(go))}:void 0),Ir(f)}var bo=co("whileHover"),wo=function(e){return function(t,n){jr(t)&&e(t,n)}};function xo(t,n){var e,r,o,i,a,u;so(t,n),yo(t,n),r=n,o=(e=t).whileHover,i=e.onHoverStart,a=e.onHoverEnd,u=e.controls,o&&u&&u.setOverride(o,bo),to(r,"pointerenter",wo(function(t,n){i&&i(t,n),o&&u&&u.startOverride(bo)})),to(r,"pointerleave",wo(function(t,n){a&&a(t,n),o&&u&&u.clearOverride(bo)}))}function Eo(n){return function(t){return n(t),null}}function Co(t){return"object"==typeof t&&t.hasOwnProperty("current")}function Po(t){return t}var So=["onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","whileTap","whileHover","onHoverStart","onHoverEnd"],To={key:"gestures",shouldRender:function(n){return So.some(function(t){return n.hasOwnProperty(t)})},Component:Eo(function(t){var n=t.innerRef;xo(b(t,["innerRef"]),n)})},Oo=new Set(["INPUT","TEXTAREA","SELECT"]),Ao=(Mo.prototype.start=function(t,n){var c=this,e=(void 0===n?{}:n).snapToCursor;void 0!==e&&e&&this.snapToCursor(t);var r=this.props.transformPagePoint;this.panSession=new ro(t,{onSessionStart:function(t){t.target&&!Oo.has(t.target.tagName)&&(qr()||(t.preventDefault(),document.activeElement instanceof HTMLElement&&document.activeElement.blur())),no=!0,Ro(function(t){var n=c.point[t];n&&n.stop()})},onStart:function(t,n){if(c.constraintsNeedResolution){var e=c.props,r=e.dragConstraints,o=e.transformPagePoint;c.constraints=Lo(r,c.ref,c.point,o),c.applyConstraintsToPoint()}Ro(function(t){var n=c.point[t];n&&c.origin[t].set(n.get())});var i=c.props,a=i.drag,u=i.dragPropagation;if(!a||u||(c.openGlobalLock&&c.openGlobalLock(),c.openGlobalLock=mo(a),c.openGlobalLock)){c.isDragging=!0,c.currentDirection=null;var s=c.props.onDragStart;s&&s(t,ko(n,c.point))}},onMove:function(t,n){var e=c.props,r=e.dragPropagation,o=e.dragDirectionLock;if(r||c.openGlobalLock){var i=n.offset;if(o&&null===c.currentDirection){if(c.currentDirection=function(t,n){void 0===n&&(n=10);var e=null;return Math.abs(t.y)>n?e="y":Math.abs(t.x)>n&&(e="x"),e}(i),null!==c.currentDirection){var a=c.props.onDirectionLock;a&&a(c.currentDirection)}}else{c.updatePoint("x",i),c.updatePoint("y",i);var u=c.props.onDrag;u&&u(t,ko(n,c.point))}}},onEnd:function(t,n){c.stop(t,n)}},{transformPagePoint:r})},Mo.prototype.cancelDrag=function(){eo(),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null)},Mo.prototype.stop=function(t,n){var e;null===(e=this.panSession)||void 0===e||e.end(),this.panSession=null;var r=this.isDragging;if(this.cancelDrag(),r){var o=this.props,i=o.dragMomentum,a=o.dragElastic,u=o.onDragEnd;if(i||a){var s=n.velocity;this.animateDragEnd(s)}else this.recordBoxInfo(this.constraints);u&&u(t,ko(n,this.point))}},Mo.prototype.recordBoxInfo=function(t){if(t){var n=t.right,e=t.left,r=t.bottom,o=t.top;this.prevConstraintsBox.width=(n||0)-(e||0),this.prevConstraintsBox.height=(r||0)-(o||0)}this.point.x&&(this.prevConstraintsBox.x=this.point.x.get()),this.point.y&&(this.prevConstraintsBox.y=this.point.y.get())},Mo.prototype.snapToCursor=function(t){var e=this,n=this.props.transformPagePoint,r=Nr(t).point,o=Bo(this.ref,n),i=o.width/2+o.left+window.scrollX,a=o.height/2+o.top+window.scrollY,u={x:r.x-i,y:r.y-a};Ro(function(t){var n=e.point[t];n&&e.origin[t].set(n.get())}),this.updatePoint("x",u),this.updatePoint("y",u)},Mo.prototype.setPoint=function(t,n){this.point[t]=n},Mo.prototype.updatePoint=function(t,n){var e=this.props,r=e.drag,o=e.dragElastic,i=this.point[t];if(Do(t,r,this.currentDirection)&&i){var a=Io(t,this.origin[t].get()+n[t],this.constraints,o);i.set(a)}},Mo.prototype.updateProps=function(t){var e=this,n=t.drag,r=void 0!==n&&n,o=t.dragDirectionLock,i=void 0!==o&&o,a=t.dragPropagation,u=void 0!==a&&a,s=t.dragConstraints,c=void 0!==s&&s,f=t.dragElastic,l=void 0===f||f,p=t.dragMomentum,d=void 0===p||p,h=b(t,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=P({drag:r,dragDirectionLock:i,dragPropagation:u,dragConstraints:c,dragElastic:l,dragMomentum:d},h);var v=h._dragValueX,m=h._dragValueY,g=h.dragOriginX,y=h.dragOriginY;g&&(this.origin.x=g),y&&(this.origin.y=y),Ro(function(t){if(Do(t,r,e.currentDirection)){var n="x"===t?v:m;e.setPoint(t,n||e.values.get(t,0))}}),this.constraintsNeedResolution=Co(c),this.constraints=this.constraintsNeedResolution?this.constraints||!1:c},Mo.prototype.applyConstraintsToPoint=function(e){var r=this;return void 0===e&&(e=this.constraints),Ro(function(t){var n=r.point[t];n&&!n.isAnimating()&&Io(t,n,e,0)})},Mo.prototype.animateDragEnd=function(i){var a=this,t=this.props,u=t.drag,s=t.dragMomentum,c=t.dragElastic,f=t.dragTransition,l=t._dragTransitionControls,n=Ro(function(t){var n;if(Do(t,u,a.currentDirection)){var e=a.constraints?Vo(t,a.constraints):{},r=c?200:1e6,o=c?40:1e7;return(l||a.controls).start(((n={})[t]=0,n.transition=P(P({type:"inertia",velocity:s?i[t]:0,bounceStiffness:r,bounceDamping:o,timeConstant:750,restDelta:1},f),e),n))}});return Promise.all(n).then(function(){a.recordBoxInfo(a.constraints),a.scalePoint();var t=a.props.onDragTransitionEnd;t&&t()})},Mo.prototype.scalePoint=function(){var o=this,t=this.props,n=t.dragConstraints,e=t.transformPagePoint;if(Co(n)){var i=Bo(n,e),a=Bo(this.ref,e),r=function(t,n){var e=o.point[t];if(e){if(e.isAnimating())return e.stop(),void o.recordBoxInfo();var r=o.prevConstraintsBox[n]?(i[n]-a[n])/o.prevConstraintsBox[n]:1;e.set(o.prevConstraintsBox[t]*r)}};r("x","width"),r("y","height")}},Mo.prototype.mount=function(t){var o=this,n=Qr(t,"pointerdown",function(t){var n=o.props,e=n.drag,r=n.dragListener;e&&(void 0===r||r)&&o.start(t)}),e=Xr(window,"resize",function(){return o.scalePoint()});if(this.constraintsNeedResolution){var r=this.props,i=r.dragConstraints,a=r.transformPagePoint,u=Lo(i,this.ref,this.point,a);this.applyConstraintsToPoint(u),this.recordBoxInfo(u)}else!this.isDragging&&this.constraints&&this.applyConstraintsToPoint();return function(){n&&n(),e&&e(),o.cancelDrag()}},Mo);function Mo(t){var n=t.ref,e=t.values,r=t.controls;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.props={transformPagePoint:Po},this.point={},this.origin={x:nn(0),y:nn(0)},this.openGlobalLock=null,this.panSession=null,this.prevConstraintsBox={width:0,height:0,x:0,y:0},this.ref=n,this.values=e,this.controls=r}function Ro(t){return[t("x"),t("y")]}function ko(t,n){return P(P({},t),{point:{x:n.x?n.x.get():0,y:n.y?n.y.get():0}})}function Vo(t,n){var e=n.top,r=n.right,o=n.bottom,i=n.left;return"x"===t?{min:i,max:r}:{min:e,max:o}}function Do(t,n,e){return!(!0!==n&&n!==t||null!==e&&e!==t)}function Lo(t,n,e,r){w(null!==t.current&&null!==n.current,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var o=Bo(t,r),i=Bo(n,r),a=o.left-i.left+Fo(e.x),u=o.top-i.top+Fo(e.y);return{top:u,left:a,right:o.width-i.width+a,bottom:o.height-i.height+u}}function Bo(t,n){var e=t.current.getBoundingClientRect(),r=n({x:e.left,y:e.top}),o=r.x,i=r.y,a=n({x:e.width,y:e.height});return{left:o,top:i,width:a.x,height:a.y}}function Fo(t){return t?t.get():0}function Io(t,n,e,r){var o=n instanceof Qt?n.get():n;if(!e)return o;var i=Vo(t,e),a=i.min,u=i.max;return void 0!==a&&o<a?o=r?Xo(a,o,r):Math.max(a,o):void 0!==u&&u<o&&(o=r?Xo(u,o,r):Math.min(u,o)),n instanceof Qt&&n.set(o),o}function Xo(t,n,e){return Xt(t,n,"number"==typeof e?e:.35)}var Yo={key:"drag",shouldRender:function(t){return!!t.drag},Component:Eo(function(t){var n,e,r,o,i,a,u,s=t.innerRef,c=t.values,f=t.controls,l=b(t,["innerRef","values","controls"]);return e=s,r=c,o=f,i=(n=l).dragControls,a=C.useContext(Fr).transformPagePoint,(u=ve(function(){return new Ao({ref:e,values:r,controls:o})})).updateProps(P(P({},n),{transformPagePoint:a})),C.useEffect(function(){return i&&i.subscribe(u)},[u]),void C.useEffect(function(){return u.mount(e.current)},[])})};function jo(t){return"string"==typeof t&&t.startsWith("var(--")}var Ho=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;var zo=4;function No(t,n,e){void 0===e&&(e=1),w(e<=zo,'Max CSS variable fallback depth detected in property "'+t+'". This may indicate a circular fallback dependency.');var r,o,i=(r=t,(o=Ho.exec(r))?[o[1],o[2]]:[,]),a=i[0],u=i[1];if(a){var s=window.getComputedStyle(n).getPropertyValue(a);return s||(jo(u)?No(u,n,e+1):u)}}function Uo(t){return Zo.has(t)}function Wo(t,n){t.set(n,!1),t.set(n)}function Go(t){return t===L||t===j}var _o,qo,Zo=new Set(["width","height","top","left","right","bottom","x","y"]);(qo=_o=_o||{}).width="width",qo.height="height",qo.left="left",qo.right="right",qo.top="top",qo.bottom="bottom";function $o(t,n){return parseFloat(t.split(", ")[n])}function Ko(i,a){return function(t,n){var e=n.transform;if("none"===e||!e)return 0;var r=e.match(/^matrix3d\((.+)\)$/);if(r)return $o(r[1],a);var o=e.match(/^matrix\((.+)\)$/);return $o(o[1],i)}}var Jo=new Set(["x","y","z"]),Qo=In.filter(function(t){return!Jo.has(t)});function ti(d,t,h,v){void 0===v&&(v={}),h=P({},h),v=P({},v);var n=t.current,m=he(n),e=Object.keys(h).filter(Uo),g=[],y=!1,r=e.reduce(function(t,n){var e=d.get(n);if(!e)return t;var r,o,i,a,u=e.get(),s=h[n],c=Pe(u);if(xe(s))for(var f=s.length,l=null===s[0]?1:0;l<f;l++)r?w(Pe(s[l])===r,"All keyframes must be of the same type"):(r=Pe(s[l]),w(r===c||Go(c)&&Go(r),"Keyframes must be of the same dimension as the current value"));else r=Pe(s);if(c!==r)if(Go(c)&&Go(r)){var p=e.get();"string"==typeof p&&e.set(parseFloat(p)),"string"==typeof s?h[n]=parseFloat(s):Array.isArray(s)&&r===j&&(h[n]=s.map(parseFloat))}else y||(o=d,i=m,a=[],Qo.forEach(function(t){var n=o.get(t);void 0!==n&&(a.push([t,n.get()]),n.set(t.startsWith("scale")?1:0))}),a.length&&i.render(),g=a,y=!0),t.push(n),v[n]=void 0!==v[n]?v[n]:h[n],Wo(e,s);return t},[]);if(r.length){var o=function(e,r,t,n,o){var i=t.getBoundingClientRect(),a=getComputedStyle(t),u=a.display,s={top:a.top,left:a.left,bottom:a.bottom,right:a.right,transform:a.transform};"none"===u&&n.set("display",e.display||"block"),n.render();var c=t.getBoundingClientRect();return o.forEach(function(t){var n=r.get(t);Wo(n,ni[t](i,s)),e[t]=ni[t](c,a)}),e}(h,d,n,m,r);return g.length&&g.forEach(function(t){var n=t[0],e=t[1];d.get(n).set(e)}),m.render(),{target:o,transitionEnd:v}}return{target:h,transitionEnd:v}}var ni={width:function(t){return t.width},height:function(t){return t.height},top:function(t,n){var e=n.top;return parseFloat(e)},left:function(t,n){var e=n.left;return parseFloat(e)},bottom:function(t,n){var e=t.height,r=n.top;return parseFloat(r)+e},right:function(t,n){var e=t.width,r=n.left;return parseFloat(r)+e},x:Ko(4,13),y:Ko(5,14)};function ei(t,n,e,r){return o=e,Object.keys(o).some(Uo)?ti(t,n,e,r):{target:e,transitionEnd:r};var o}function ri(r,o){return function(t,n){var e=function(t,n,e,r){var o=b(e,[]),i=n.current;if(!(i instanceof HTMLElement))return{target:o,transitionEnd:r};for(var a in r=r&&P({},r),t.forEach(function(t){var n=t.get();if(jo(n)){var e=No(n,i);e&&t.set(e)}}),o){var u=o[a];if(jo(u)){var s=No(u,i);s&&(o[a]=s,r&&void 0===r[a]&&(r[a]=u))}}return{target:o,transitionEnd:r}}(r,o,t,n);return t=e.target,n=e.transitionEnd,ei(r,o,t,n)}}function oi(){var t=C.useState(0),n=t[0],e=t[1];return C.useCallback(function(){return e(n+1)},[n])}var ii,ai,ui,si=C.createContext(null);(ui=ai=ai||{}).Prepare="prepare",ui.Read="read",ui.Render="render";var ci=[ai.Prepare,ai.Read,ai.Render].reduce(function(t,n){return t[n]=[],t},{}),fi=!1;function li(t){for(var n=t.length,e=0;e<n;e++)t[e]();t.length=0}function pi(n){return function(t){t&&(fi=!0,ci[n].push(t))}}var di=((ii={})[ai.Prepare]=pi(ai.Prepare),ii[ai.Read]=pi(ai.Read),ii[ai.Render]=pi(ai.Render),ii.flush=function(){fi&&(li(ci.prepare),li(ci.read),li(ci.render),fi=!1)},ii);var hi={duration:.8,ease:[.45,.05,.19,1]},vi=sr();var mi={id:"x",size:"width",min:"left",max:"right",origin:"originX"},gi={id:"y",size:"height",min:"top",max:"bottom",origin:"originY"};function yi(t,n){return(t+n)/2}function bi(t,n,e){var r,o=t[e.size]-n[e.size],i=.5;return o&&(t[e.min]===n[e.min]?i=0:t[e.max]===n[e.max]&&(i=1)),(r={})[e.size]=o,r[e.origin]=i,r[e.id]=.5===i?yi(t[e.min],t[e.max])-yi(n[e.min],n[e.max]):0,r}var wi,xi,Ei,Ci={getLayout:function(t){return t.offset},measure:function(t){var n=t.offsetLeft,e=t.offsetTop,r=t.offsetWidth,o=t.offsetHeight;return{left:n,top:e,right:n+r,bottom:e+o,width:r,height:o}}},Pi={getLayout:function(t){return t.boundingBox},measure:function(t){var n=t.getBoundingClientRect();return{left:n.left,top:n.top,width:n.width,height:n.height,right:n.right,bottom:n.bottom}}};function Si(t){return window.getComputedStyle(t).position}function Ti(t){return"width"===t||"height"===t}function Oi(){this.constructor=xi}function Ai(){return null!==wi&&wi.apply(this,arguments)||this}var Mi,Ri,ki={key:"layout",shouldRender:function(t){var n=t.positionTransition,e=t.layoutTransition;return w(!(n&&e),"Don't set both positionTransition and layoutTransition on the same component"),"undefined"!=typeof window&&!(!n&&!e)},Component:(wi=C.Component,e(xi=Ai,Ei=wi),xi.prototype=null===Ei?Object.create(Ei):(Oi.prototype=Ei.prototype,new Oi),Ai.prototype.getSnapshotBeforeUpdate=function(){var t=this.props,n=t.innerRef,e=t.positionTransition,d=t.values,i=t.controls,a=n.current;if(a instanceof HTMLElement){var r,o,u,s,h,v,m=(r=this.props,o=r.layoutTransition,u=r.positionTransition,o||u),g=!!e,c=Si(a),y={offset:Ci.measure(a),boundingBox:Pi.measure(a)};return di.prepare(function(){s=a.style.transform,a.style.transform=""}),di.read(function(){h={offset:Ci.measure(a),boundingBox:Pi.measure(a)};var t,n,e=Si(a);t=c,n=e,v=g&&t===n?Ci:Pi}),di.render(function(){var t,n,e=v.getLayout(y),r=v.getLayout(h),c=P(P({},bi(t=e,n=r,mi)),bi(t,n,gi));if(c.x||c.y||c.width||c.height){he(a).set({originX:c.originX,originY:c.originY}),je();var f={},l={},p="function"==typeof m?m({delta:c}):m;o("left","x",0,c.x),o("top","y",0,c.y),g||(o("width","scaleX",1,y.boundingBox.width/h.boundingBox.width),o("height","scaleY",1,y.boundingBox.height/h.boundingBox.height)),f.transition=l,p&&i.start(f),He()}else s&&(a.style.transform=s);function o(t,n,e,r){var o=Ti(t)?t:n;if(c[o]){var i="boolean"==typeof p?P({},g?vi:hi):p,a=d.get(n,e),u=a.getVelocity();l[n]=i[n]?P({},i[n]):P({},i),void 0===l[n].velocity&&(l[n].velocity=u||0),f[n]=e;var s=Ti(t)||v!==Ci?0:a.get();a.set(r+s)}}}),null}},Ai.prototype.componentDidUpdate=function(){di.flush()},Ai.prototype.render=function(){return null},Ai.contextType=si,Ai)},Vi=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","static","positionTransition","layoutTransition","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragElastic","dragMomentum","dragPropagation","dragTransition","_dragValueX","_dragValueY","_dragTransitionControls","dragOriginX","dragOriginY","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","whileHover","whileTap","onHoverEnd","onHoverStart"]);function Di(t){return Vi.has(t)}(Ri=Mi=Mi||{}).Target="Target",Ri.VariantLabel="VariantLabel",Ri.AnimationSubscription="AnimationSubscription";function Li(t,n){return void 0!==n&&(Array.isArray(t)&&Array.isArray(n)?!function(t,n){if(null===n)return!1;var e=n.length;if(e!==t.length)return!1;for(var r=0;r<e;r++)if(n[r]!==t[r])return!1;return!0}(n,t):t!==n)}function Bi(t,n){void 0===n&&(n=!1);t.transition;var e=t.transitionEnd,r=b(t,["transition","transitionEnd"]);return n?P(P({},r),e):r}function Fi(t){var n,e=t instanceof Qt?t.get():t;return Array.from(new Set((n=e)?Array.isArray(n)?n:[n]:[]))}var Ii,Xi;function Yi(r,t,o,i){var a=Fi(t),u=C.useContext(kr),s=u.hasMounted&&u.hasMounted.current,c=C.useRef(!1);C.useEffect(function(){var t,n,e=!1;o?(e=!!s,a=Fi(u.animate)):e=c.current||(t=Fi(r),n=a,t.join(",")!==n.join(",")),e&&i.start(a),c.current=!0},[a.join(",")])}function ji(t){return t.animate instanceof Tr}var Hi=((Ii={})[Mi.Target]=Eo(function(t){var u,s,c,f,l,p,n=t.animate,e=t.controls,r=t.values,o=t.transition;return u=n,s=e,c=r,f=o,l=C.useRef(!0),(p=C.useRef(null)).current||(p.current=Bi(u,!0)),void C.useEffect(function(){var t={},n=Bi(u),e=Bi(u,!0);for(var r in n){var o=l.current&&(!c.has(r)||c.get(r).get()!==e[r]),i=null!==e[r],a=Li(p.current[r],e[r]);i&&(a||o)&&(t[r]=n[r])}l.current=!1,p.current=P(P({},p.current),e),Object.keys(t).length&&s.start(P(P({},t),{transition:u.transition||f,transitionEnd:u.transitionEnd}))},[u])}),Ii[Mi.VariantLabel]=Eo(function(t){var n=t.animate,e=t.inherit,r=void 0===e||e,o=t.controls;return Yi(t.initial,n,r,o)}),Ii[Mi.AnimationSubscription]=Eo(function(t){var n,e,r,o=t.animate,i=t.controls;return n=o,e=i,r=C.useMemo(function(){return n.subscribe(e)},[n]),void C.useEffect(function(){return function(){r&&r()}},[r])}),Ii),zi=["initial","animate","whileTap","whileHover"],Ni=((Xi={})[Mi.Target]=function(t){return!(void 0===t.animate||(n=t.animate,Array.isArray(n)||"string"==typeof n)||ji(t));var n},Xi[Mi.VariantLabel]=function(n){return void 0!==n.variants||zi.some(function(t){return"string"==typeof n[t]})},Xi[Mi.AnimationSubscription]=ji,Xi),Ui={key:"exit",shouldRender:function(t,n){var e=t.exit,r=!!n.exitProps,o=!!e;return w(!r||r&&o,"No exit prop defined on a child of AnimatePresence."),r&&o},Component:Eo(function(t){var n=t.animate,e=t.controls,r=t.parentContext,o=t.exit,i=r.exitProps,a=C.useRef(!1);if(i&&o){var u=i.isExiting,s=i.custom,c=i.onExitComplete;C.useEffect(function(){u?(!a.current&&o&&(e.setProps(P(P({},t),{custom:void 0!==s?s:t.custom})),e.start(o).then(c)),a.current=!0):!a.current||!n||n instanceof Tr||e.start(n),u||(a.current=!1)},[u])}})},Wi=function(t){return!Di(t)};try{var Gi=require("@emotion/is-prop-valid").default;Wi=function(t){return t.startsWith("on")?!Di(t):Gi(t)}}catch(E){}var _i=[ki,Yo,To,Ui],qi=_i.length;function Zi(h){var v="string"==typeof h,m=v&&-1!==Br.indexOf(h);return{renderComponent:function(t,n,e,r,o){var i,a,u,s,c,f,l,p=v?function(t){var n={};for(var e in t)Wi(e)&&(n[e]=t[e]);return n}(r):r,d=m?(f=n,(l=ue(Ue(e),void 0,void 0,void 0,void 0,!1)).style=P(P({},f),l.style),l):{style:(a=n,u=o,s=Ue(i=e),(c=i.getTransformTemplate())&&(s.transform=a.transform?c({},a.transform):c),Jn(P(P({},a),s),!u))};return C.createElement(h,P(P(P({},p),{ref:t}),d))},loadFunctionalityComponents:function(t,n,e,r,o,i){var a=[],u=function(t){var n=void 0;for(var e in Mi)Ni[e](t)&&(n=e);return n?Hi[n]:void 0}(e);u&&a.push(C.createElement(u,{key:"animation",initial:e.initial,animate:e.animate,variants:e.variants,transition:e.transition,controls:o,inherit:i,values:n}));for(var s=0;s<qi;s++){var c=_i[s],f=c.shouldRender,l=c.key,p=c.Component;f(e,r)&&a.push(C.createElement(p,P({key:l},e,{parentContext:r,values:n,controls:o,innerRef:t})))}return a},getValueControlsConfig:function(n,t){return{values:t,readValueFromSource:function(t){return he(n.current).get(t)},makeTargetAnimatable:ri(t,n)}}}}var $i=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","webview"].reduce(function(t,n){var e=Zi(n);return t[n]=Lr(e),t},{}),Ki=Br.reduce(function(t,n){return t[n]=Lr(Zi(n)),t},{}),Ji=P(P({custom:function(t){return Lr(Zi(t))}},$i),Ki);function Qi(t){return ve(function(){return nn(t)})}var ta=function(t){return"object"==typeof(n=t)&&n.mix?t.mix:void 0;var n};function na(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=!Array.isArray(t[0]),r=e?0:-1,o=t[0+r],i=t[1+r],a=t[2+r],u=t[3+r],s=$t(i,a,P({mixer:ta(a[0])},u));return e?s(o):s}var ea=function(t){return"function"==typeof t},ra=function(t){return t};function oa(t,n,e,r){var o=C.useRef(null),i=[t],a=ra;if(ea(n))a=n;else if(Array.isArray(e)){var u=n;a=na(u,e,r),i=[t,u.join(","),e.join(",")]}return C.useMemo(function(){return o.current&&o.current.destroy(),o.current=t.addChild({transformer:a}),o.current},i)}function ia(t){return.001<t?1/t:1e5}function aa(t,n,e){e.set(n&&t?t/n:0)}var ua=nn(0),sa=nn(0),ca=nn(0),fa=nn(0),la=!1,pa={scrollX:ua,scrollY:sa,scrollXProgress:ca,scrollYProgress:fa};var da=(ha.prototype.subscribe=function(t){var n=this;return this.componentControls.add(t),function(){return n.componentControls.delete(t)}},ha.prototype.start=function(n,e){this.componentControls.forEach(function(t){t.start(n.nativeEvent||n,e)})},ha);function ha(){this.componentControls=new Set}function va(){return new da}function ma(t){var n=t.children,e=t.exitProps,r=C.useContext(kr);return r=P(P({},r),{exitProps:e||{}}),C.createElement(kr.Provider,{value:r},n)}function ga(t){return t.key||""}var ya=nn(null);if("undefined"!=typeof window)if(window.matchMedia){var ba=window.matchMedia("(prefers-reduced-motion)"),wa=function(){return ya.set(ba.matches)};ba.addListener(wa),wa()}else ya.set(!1);function xa(t,n){return"boolean"==typeof n?n:Boolean(t)}r.AnimatePresence=function(t){var n,e,r,o=t.children,i=t.custom,a=t.initial,u=void 0===a||a,s=t.onExitComplete,c=t.exitBeforeEnter,f=oi(),l=C.useContext(si)||f,p=C.useRef(!0),d=(n=o,e=[],C.Children.forEach(n,function(t){C.isValidElement(t)&&e.push(t)}),e),h=C.useRef(d),v=C.useRef(new Map).current,m=C.useRef(new Set).current;if(r=v,d.forEach(function(t){var n=ga(t);r.set(n,t)}),p.current)return p.current=!1,C.createElement(C.Fragment,null,d.map(function(t){return C.createElement(ma,{key:ga(t),exitProps:u?void 0:{initial:!1}},t)}));for(var g=S(d),y=h.current.map(ga),b=d.map(ga),w=y.length,x=0;x<w;x++){var E=y[x];-1===b.indexOf(E)?m.add(E):m.delete(E)}return c&&m.size&&(g=[]),m.forEach(function(n){if(-1===b.indexOf(n)){var t=v.get(n);if(t){var e=y.indexOf(n),r={custom:i,isExiting:!0,onExitComplete:function(){m.delete(n);var t=h.current.findIndex(function(t){return t.key===n});h.current.splice(t,1),m.size||(h.current=d,l(),s&&s())}};g.splice(e,0,C.createElement(ma,{key:ga(t),exitProps:r},t))}}}),g=g.map(function(t){var n=t.key;return m.has(n)?t:C.createElement(ma,{key:ga(t)},t)}),h.current=g,C.createElement(C.Fragment,null,m.size?g:g.map(function(t){return C.cloneElement(t)}))},r.AnimationControls=Tr,r.DragControls=da,r.MotionContext=kr,r.MotionPluginContext=Fr,r.MotionPlugins=function(t){var n=t.children,e=b(t,["children"]),r=C.useContext(Fr),o=C.useRef(P({},r)).current;for(var i in e)o[i]=e[i];return C.createElement(Fr.Provider,{value:o},n)},r.MotionValue=Qt,r.ReducedMotion=function(t){var n=t.children,e=t.enabled,r=C.useContext(kr);return r=C.useMemo(function(){return P(P({},r),{isReducedMotion:e})},[e]),C.createElement(kr.Provider,{value:r},n)},r.UnstableSyncLayout=function(t){var n=t.children,e=oi();return C.createElement(si.Provider,{value:e},n)},r.animationControls=function(){return new Tr},r.createMotionComponent=Lr,r.isValidMotionProp=Di,r.motion=Ji,r.motionValue=nn,r.transform=na,r.unwrapMotionValue=function(t){var n,e=t instanceof Qt?t.get():t;return n=e,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?e.toValue():e},r.useAnimatedState=function(t){var n=C.useState(t),e=n[0],r=n[1],o=ve(function(){return{onUpdate:r}}),i=we(o),a=Vr({values:i,readValueFromSource:function(t){return e[t]}},{},!1),u=ve(function(){return function(t){return a.start(t)}});return C.useEffect(function(){return i.mount(),function(){return i.unmount()}},[]),[e,u]},r.useAnimation=function(){var t=ve(function(){return new Tr});return C.useEffect(function(){return t.mount(),function(){return t.unmount()}},[]),t},r.useCycle=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];n.length;var e=C.useRef(0),r=C.useState(n[e.current]),o=r[0],i=r[1];return[o,function(t){e.current="number"!=typeof t?Jt(0,n.length,e.current+1):t,i(n[e.current])}]},r.useDomEvent=Yr,r.useDragControls=function(){return ve(va)},r.useExternalRef=Dr,r.useGestures=xo,r.useInvertedScale=function(t){var n=Qi(1),e=Qi(1),r=C.useContext(kr).values;return w(!(!t&&!r),"If no scale values are provided, useInvertedScale must be used within a child of another motion component."),t?(n=t.scaleX||n,e=t.scaleY||e):r&&(n=r.get("scaleX",1),e=r.get("scaleY",1)),{scaleX:oa(n,ia),scaleY:oa(e,ia)}},r.useMotionValue=Qi,r.usePanGesture=so,r.usePresence=function(){var t=C.useContext(kr).exitProps;if(!t)return[!0];var n=t.isExiting,e=t.onExitComplete;return n&&e?[!1,e]:[!0]},r.useReducedMotion=function(){var n=C.useContext(kr).isReducedMotion,t=C.useState(xa(ya.get(),n)),e=t[0],r=t[1];return C.useEffect(function(){return ya.onChange(function(t){r(xa(t,n))})},[r,n]),e},r.useSpring=function(t,e){void 0===e&&(e={});var n,r,o=C.useRef(null),i=Qi(me(t)?t.get():t);return C.useMemo(function(){return i.attach(function(t,n){return o.current&&o.current.stop(),o.current=nr(P({from:i.get(),to:t,velocity:i.getVelocity()},e)).start(n),i.get()})},Object.values(e)),n=t,r=function(t){return i.set(parseFloat(t))},C.useEffect(function(){return me(n)?n.onChange(r):void 0},[n]),i},r.useTapGesture=yo,r.useTransform=oa,r.useViewportScroll=function(){return la||function(){if(la=!0,"undefined"!=typeof window){var t=function(){var t=window.pageXOffset,n=window.pageYOffset;ua.set(t),sa.set(n),aa(t,document.body.clientWidth-window.innerWidth,ca),aa(n,document.body.clientHeight-window.innerHeight,fa)};t(),window.addEventListener("resize",t),window.addEventListener("scroll",t,{passive:!0})}}(),pa},Object.defineProperty(r,"__esModule",{value:!0})});
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "framer-motion",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"main": "dist/framer-motion.cjs.js",
|
|
5
5
|
"module": "dist/framer-motion.es.js",
|
|
6
6
|
"types": "dist/framer-motion.d.ts",
|
|
7
7
|
"author": "Framer Motion",
|
|
8
8
|
"license": "MIT",
|
|
9
|
+
"repository": "https://github.com/framer/motion/",
|
|
9
10
|
"keywords": [
|
|
10
11
|
"react animation",
|
|
11
12
|
"react",
|