@tamagui/animations-motion 3.0.0-beta.765.1 → 3.0.0-beta.804.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,6 +33,7 @@ module.exports = __toCommonJS(createAnimations_exports);
33
33
  var import_animation_helpers = require("@tamagui/animation-helpers");
34
34
  var import_use_presence = require("@tamagui/use-presence");
35
35
  var import_web = require("@tamagui/web");
36
+ var import_internal_runtime = require("@tamagui/web/internal-runtime");
36
37
  var import_react = require("motion/react");
37
38
  var import_react2 = __toESM(require("react"), 1);
38
39
  var import_jsx_runtime = require("react/jsx-runtime");
@@ -46,7 +47,7 @@ function useAnimateSSRSafe() {
46
47
  const asStyleRecord = (style) => style && typeof style === "object" && !Array.isArray(style) ? style : {};
47
48
  function assignInlineStyles(node, styles) {
48
49
  for (const key in styles) {
49
- node.style[key] = (0, import_web.normalizeValueWithProperty)(styles[key], key);
50
+ node.style[key] = (0, import_internal_runtime.normalizeValueWithProperty)(styles[key], key);
50
51
  }
51
52
  }
52
53
  const MotionValueStrategy = /* @__PURE__ */ new WeakMap();
@@ -80,7 +81,6 @@ function createAnimations(animations) {
80
81
  return {
81
82
  View: MotionView,
82
83
  Text: MotionText,
83
- isReactNative: false,
84
84
  inputStyle: "css",
85
85
  outputStyle: "inline",
86
86
  avoidReRenders: true,
@@ -242,7 +242,7 @@ function createAnimations(animations) {
242
242
  if (prevDont) {
243
243
  for (const key in prevDont) {
244
244
  if (key in doAnimate2) {
245
- node.style[key] = (0, import_web.normalizeValueWithProperty)(prevDont[key], key);
245
+ node.style[key] = (0, import_internal_runtime.normalizeValueWithProperty)(prevDont[key], key);
246
246
  if (refs.current.lastDoAnimate) {
247
247
  refs.current.lastDoAnimate[key] = prevDont[key];
248
248
  }
@@ -347,7 +347,7 @@ function createAnimations(animations) {
347
347
  }
348
348
  }
349
349
  const fixedDiff = fixTransparentColors(diff, refs.current.lastDoAnimate, doAnimate2);
350
- let waapiDiff = Object.fromEntries(Object.entries(fixedDiff).map(([key, value]) => [key, Array.isArray(value) ? value.map((item) => (0, import_web.normalizeValueWithProperty)(item, key)) : (0, import_web.normalizeValueWithProperty)(value, key)]));
350
+ let waapiDiff = Object.fromEntries(Object.entries(fixedDiff).map(([key, value]) => [key, Array.isArray(value) ? value.map((item) => (0, import_internal_runtime.normalizeValueWithProperty)(item, key)) : (0, import_internal_runtime.normalizeValueWithProperty)(value, key)]));
351
351
  if (popperHandledTransform && "transform" in waapiDiff) {
352
352
  waapiDiff = { ...waapiDiff };
353
353
  delete waapiDiff.transform;
@@ -737,14 +737,14 @@ function compileAnimatedStyle(initialSource, initialResolved) {
737
737
  const value = sourceStyle[entry.source];
738
738
  if (value === void 0) continue;
739
739
  if (entry.source === "transform" && Array.isArray(value)) {
740
- resolved.transform = (0, import_web.transformsToString)(value);
740
+ resolved.transform = (0, import_internal_runtime.transformsToString)(value);
741
741
  } else if (entry.source in transformAliases) {
742
742
  transforms.push({ [transformAliases[entry.source]]: value });
743
743
  } else {
744
- resolved[entry.target] = entry.tokenValue ?? (0, import_web.normalizeValueWithProperty)(value, entry.target);
744
+ resolved[entry.target] = entry.tokenValue ?? (0, import_internal_runtime.normalizeValueWithProperty)(value, entry.target);
745
745
  }
746
746
  }
747
- if (transforms.length) resolved.transform = (0, import_web.transformsToString)(transforms);
747
+ if (transforms.length) resolved.transform = (0, import_internal_runtime.transformsToString)(transforms);
748
748
  return resolved;
749
749
  };
750
750
  }
@@ -764,7 +764,7 @@ function createMotionView(defaultTag) {
764
764
  return hostRef.current;
765
765
  } };
766
766
  }
767
- const [_, state] = (0, import_web.useThemeWithState)({});
767
+ const [_, state] = (0, import_internal_runtime.useThemeWithState)({});
768
768
  const styles = Array.isArray(style) ? style : [style];
769
769
  const [animatedStyle, nonAnimatedStyles] = (() => {
770
770
  let animatedStyle2;
@@ -791,8 +791,8 @@ function createMotionView(defaultTag) {
791
791
  return {};
792
792
  }
793
793
  if (out.viewProps.style) {
794
- (0, import_web.fixStyles)(out.viewProps.style);
795
- (0, import_web.styleToCSS)(out.viewProps.style);
794
+ (0, import_internal_runtime.fixStyles)(out.viewProps.style);
795
+ (0, import_internal_runtime.styleToCSS)(out.viewProps.style);
796
796
  }
797
797
  return out.viewProps;
798
798
  }
@@ -36,6 +36,7 @@ var import_jsx_runtime = require("react/jsx-runtime");
36
36
  var import_animation_helpers = require("@tamagui/animation-helpers");
37
37
  var import_use_presence = require("@tamagui/use-presence");
38
38
  var import_web = require("@tamagui/web");
39
+ var import_internal_runtime = require("@tamagui/web/internal-runtime");
39
40
  var import_react = require("motion/react");
40
41
  var import_react2 = __toESM(require("react"), 1);
41
42
  function _instanceof(left, right) {
@@ -61,7 +62,7 @@ var asStyleRecord = function(style) {
61
62
  };
62
63
  function assignInlineStyles(node, styles) {
63
64
  for (var key in styles) {
64
- node.style[key] = (0, import_web.normalizeValueWithProperty)(styles[key], key);
65
+ node.style[key] = (0, import_internal_runtime.normalizeValueWithProperty)(styles[key], key);
65
66
  }
66
67
  }
67
68
  var MotionValueStrategy = /* @__PURE__ */ new WeakMap();
@@ -99,7 +100,6 @@ function createAnimations(animations) {
99
100
  return {
100
101
  View: MotionView,
101
102
  Text: MotionText,
102
- isReactNative: false,
103
103
  inputStyle: "css",
104
104
  outputStyle: "inline",
105
105
  avoidReRenders: true,
@@ -266,7 +266,7 @@ function createAnimations(animations) {
266
266
  if (prevDont) {
267
267
  for (var key in prevDont) {
268
268
  if (key in doAnimate2) {
269
- node.style[key] = (0, import_web.normalizeValueWithProperty)(prevDont[key], key);
269
+ node.style[key] = (0, import_internal_runtime.normalizeValueWithProperty)(prevDont[key], key);
270
270
  if (refs.current.lastDoAnimate) {
271
271
  refs.current.lastDoAnimate[key] = prevDont[key];
272
272
  }
@@ -413,8 +413,8 @@ function createAnimations(animations) {
413
413
  var waapiDiff = Object.fromEntries(Object.entries(fixedDiff).map(function(param2) {
414
414
  var [key3, value] = param2;
415
415
  return [key3, Array.isArray(value) ? value.map(function(item) {
416
- return (0, import_web.normalizeValueWithProperty)(item, key3);
417
- }) : (0, import_web.normalizeValueWithProperty)(value, key3)];
416
+ return (0, import_internal_runtime.normalizeValueWithProperty)(item, key3);
417
+ }) : (0, import_internal_runtime.normalizeValueWithProperty)(value, key3)];
418
418
  }));
419
419
  if (popperHandledTransform && "transform" in waapiDiff) {
420
420
  waapiDiff = { ...waapiDiff };
@@ -856,12 +856,12 @@ function compileAnimatedStyle(initialSource, initialResolved) {
856
856
  var value = sourceStyle[entry.source];
857
857
  if (value === void 0) continue;
858
858
  if (entry.source === "transform" && Array.isArray(value)) {
859
- resolved.transform = (0, import_web.transformsToString)(value);
859
+ resolved.transform = (0, import_internal_runtime.transformsToString)(value);
860
860
  } else if (entry.source in transformAliases) {
861
861
  transforms.push({ [transformAliases[entry.source]]: value });
862
862
  } else {
863
863
  var _entry_tokenValue;
864
- resolved[entry.target] = (_entry_tokenValue = entry.tokenValue) !== null && _entry_tokenValue !== void 0 ? _entry_tokenValue : (0, import_web.normalizeValueWithProperty)(value, entry.target);
864
+ resolved[entry.target] = (_entry_tokenValue = entry.tokenValue) !== null && _entry_tokenValue !== void 0 ? _entry_tokenValue : (0, import_internal_runtime.normalizeValueWithProperty)(value, entry.target);
865
865
  }
866
866
  }
867
867
  } catch (err) {
@@ -878,7 +878,7 @@ function compileAnimatedStyle(initialSource, initialResolved) {
878
878
  }
879
879
  }
880
880
  }
881
- if (transforms.length) resolved.transform = (0, import_web.transformsToString)(transforms);
881
+ if (transforms.length) resolved.transform = (0, import_internal_runtime.transformsToString)(transforms);
882
882
  return resolved;
883
883
  };
884
884
  }
@@ -899,7 +899,7 @@ function createMotionView(defaultTag) {
899
899
  return hostRef.current;
900
900
  } };
901
901
  }
902
- var [_, state] = (0, import_web.useThemeWithState)({});
902
+ var [_, state] = (0, import_internal_runtime.useThemeWithState)({});
903
903
  var styles = Array.isArray(style) ? style : [style];
904
904
  var [animatedStyle, nonAnimatedStyles] = (function() {
905
905
  var animatedStyle2;
@@ -943,8 +943,8 @@ function createMotionView(defaultTag) {
943
943
  return {};
944
944
  }
945
945
  if (out.viewProps.style) {
946
- (0, import_web.fixStyles)(out.viewProps.style);
947
- (0, import_web.styleToCSS)(out.viewProps.style);
946
+ (0, import_internal_runtime.fixStyles)(out.viewProps.style);
947
+ (0, import_internal_runtime.styleToCSS)(out.viewProps.style);
948
948
  }
949
949
  return out.viewProps;
950
950
  }
@@ -36,6 +36,7 @@ var import_jsx_runtime = require("react/jsx-runtime");
36
36
  var import_animation_helpers = require("@tamagui/animation-helpers");
37
37
  var import_use_presence = require("@tamagui/use-presence");
38
38
  var import_web = require("@tamagui/web");
39
+ var import_internal_runtime = require("@tamagui/web/internal-runtime");
39
40
  var import_react = require("motion/react");
40
41
  var import_react2 = __toESM(require("react"), 1);
41
42
  function _instanceof(left, right) {
@@ -61,7 +62,7 @@ var asStyleRecord = function(style) {
61
62
  };
62
63
  function assignInlineStyles(node, styles) {
63
64
  for (var key in styles) {
64
- node.style[key] = (0, import_web.normalizeValueWithProperty)(styles[key], key);
65
+ node.style[key] = (0, import_internal_runtime.normalizeValueWithProperty)(styles[key], key);
65
66
  }
66
67
  }
67
68
  var MotionValueStrategy = /* @__PURE__ */ new WeakMap();
@@ -99,7 +100,6 @@ function createAnimations(animations) {
99
100
  return {
100
101
  View: MotionView,
101
102
  Text: MotionText,
102
- isReactNative: false,
103
103
  inputStyle: "css",
104
104
  outputStyle: "inline",
105
105
  avoidReRenders: true,
@@ -266,7 +266,7 @@ function createAnimations(animations) {
266
266
  if (prevDont) {
267
267
  for (var key in prevDont) {
268
268
  if (key in doAnimate2) {
269
- node.style[key] = (0, import_web.normalizeValueWithProperty)(prevDont[key], key);
269
+ node.style[key] = (0, import_internal_runtime.normalizeValueWithProperty)(prevDont[key], key);
270
270
  if (refs.current.lastDoAnimate) {
271
271
  refs.current.lastDoAnimate[key] = prevDont[key];
272
272
  }
@@ -413,8 +413,8 @@ function createAnimations(animations) {
413
413
  var waapiDiff = Object.fromEntries(Object.entries(fixedDiff).map(function(param2) {
414
414
  var [key3, value] = param2;
415
415
  return [key3, Array.isArray(value) ? value.map(function(item) {
416
- return (0, import_web.normalizeValueWithProperty)(item, key3);
417
- }) : (0, import_web.normalizeValueWithProperty)(value, key3)];
416
+ return (0, import_internal_runtime.normalizeValueWithProperty)(item, key3);
417
+ }) : (0, import_internal_runtime.normalizeValueWithProperty)(value, key3)];
418
418
  }));
419
419
  if (popperHandledTransform && "transform" in waapiDiff) {
420
420
  waapiDiff = { ...waapiDiff };
@@ -856,12 +856,12 @@ function compileAnimatedStyle(initialSource, initialResolved) {
856
856
  var value = sourceStyle[entry.source];
857
857
  if (value === void 0) continue;
858
858
  if (entry.source === "transform" && Array.isArray(value)) {
859
- resolved.transform = (0, import_web.transformsToString)(value);
859
+ resolved.transform = (0, import_internal_runtime.transformsToString)(value);
860
860
  } else if (entry.source in transformAliases) {
861
861
  transforms.push({ [transformAliases[entry.source]]: value });
862
862
  } else {
863
863
  var _entry_tokenValue;
864
- resolved[entry.target] = (_entry_tokenValue = entry.tokenValue) !== null && _entry_tokenValue !== void 0 ? _entry_tokenValue : (0, import_web.normalizeValueWithProperty)(value, entry.target);
864
+ resolved[entry.target] = (_entry_tokenValue = entry.tokenValue) !== null && _entry_tokenValue !== void 0 ? _entry_tokenValue : (0, import_internal_runtime.normalizeValueWithProperty)(value, entry.target);
865
865
  }
866
866
  }
867
867
  } catch (err) {
@@ -878,7 +878,7 @@ function compileAnimatedStyle(initialSource, initialResolved) {
878
878
  }
879
879
  }
880
880
  }
881
- if (transforms.length) resolved.transform = (0, import_web.transformsToString)(transforms);
881
+ if (transforms.length) resolved.transform = (0, import_internal_runtime.transformsToString)(transforms);
882
882
  return resolved;
883
883
  };
884
884
  }
@@ -899,7 +899,7 @@ function createMotionView(defaultTag) {
899
899
  return hostRef.current;
900
900
  } };
901
901
  }
902
- var [_, state] = (0, import_web.useThemeWithState)({});
902
+ var [_, state] = (0, import_internal_runtime.useThemeWithState)({});
903
903
  var styles = Array.isArray(style) ? style : [style];
904
904
  var [animatedStyle, nonAnimatedStyles] = (function() {
905
905
  var animatedStyle2;
@@ -943,8 +943,8 @@ function createMotionView(defaultTag) {
943
943
  return {};
944
944
  }
945
945
  if (out.viewProps.style) {
946
- (0, import_web.fixStyles)(out.viewProps.style);
947
- (0, import_web.styleToCSS)(out.viewProps.style);
946
+ (0, import_internal_runtime.fixStyles)(out.viewProps.style);
947
+ (0, import_internal_runtime.styleToCSS)(out.viewProps.style);
948
948
  }
949
949
  return out.viewProps;
950
950
  }
@@ -1 +1 @@
1
- {"version":3,"file":"createAnimations.native.js","names":[],"sources":["cjs/createAnimations.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar createAnimations_exports = {};\n__export(createAnimations_exports, {\n createAnimations: () => createAnimations,\n disableAnimationProps: () => disableAnimationProps\n});\nmodule.exports = __toCommonJS(createAnimations_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_animation_helpers = require(\"@tamagui/animation-helpers\");\nvar import_use_presence = require(\"@tamagui/use-presence\");\nvar import_web = require(\"@tamagui/web\");\nvar import_react = require(\"motion/react\");\nvar import_react2 = __toESM(require(\"react\"), 1);\nfunction _instanceof(left, right) {\n if (right != null && typeof Symbol !== \"undefined\" && right[Symbol.hasInstance]) {\n return !!right[Symbol.hasInstance](left);\n } else {\n return left instanceof right;\n }\n}\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nvar isServer = typeof window === \"undefined\";\nfunction useAnimateSSRSafe() {\n if (isServer) {\n return [\n (0, import_react2.useRef)(null),\n function() {\n }\n ];\n }\n return (0, import_react.useAnimate)();\n}\nvar asStyleRecord = function(style) {\n return style && (typeof style === \"undefined\" ? \"undefined\" : _type_of(style)) === \"object\" && !Array.isArray(style) ? style : {};\n};\nfunction assignInlineStyles(node, styles) {\n for (var key in styles) {\n node.style[key] = (0, import_web.normalizeValueWithProperty)(styles[key], key);\n }\n}\nvar MotionValueStrategy = /* @__PURE__ */ new WeakMap();\nvar PendingMotionOnFinish = /* @__PURE__ */ new WeakMap();\nfunction settlePendingMotionOnFinish(mv, controls) {\n var onFinish = PendingMotionOnFinish.get(mv);\n if (!onFinish) return;\n PendingMotionOnFinish.delete(mv);\n controls.then(function() {\n return onFinish();\n }).catch(function() {\n return onFinish();\n });\n}\nvar PopperPositionAnims = /* @__PURE__ */ new WeakMap();\nfunction parseTranslate(transform) {\n if (!transform || transform === \"none\") return {\n x: 0,\n y: 0\n };\n try {\n var m = new DOMMatrixReadOnly(transform);\n if (!m.is2D || m.a !== 1 || m.b !== 0 || m.c !== 0 || m.d !== 1) return null;\n return {\n x: m.e,\n y: m.f\n };\n } catch (e) {\n return null;\n }\n}\nfunction createAnimations(animations) {\n var isHydratingGlobal;\n var hydratingComponents = /* @__PURE__ */ new Set();\n return {\n View: MotionView,\n Text: MotionText,\n isReactNative: false,\n inputStyle: \"css\",\n outputStyle: \"inline\",\n avoidReRenders: true,\n animations,\n usePresence: import_use_presence.usePresence,\n ResetPresence: import_use_presence.ResetPresence,\n onMount() {\n isHydratingGlobal = false;\n hydratingComponents.forEach(function(cb) {\n return cb();\n });\n },\n useAnimations: function(animationProps) {\n if (isHydratingGlobal === void 0 && !(0, import_web.getConfig)().settings.disableSSR) {\n isHydratingGlobal = true;\n }\n var { props, style, componentState, stateRef, useStyleEmitter, presence, onTransition, styleProps } = animationProps;\n var animationKey = Array.isArray(props.transition) ? props.transition[0] : props.transition;\n var isComponentHydrating = componentState.unmounted === true;\n var isMounting = componentState.unmounted === \"should-enter\";\n var isEntering = !!componentState.unmounted;\n var isExiting = (presence === null || presence === void 0 ? void 0 : presence[0]) === false;\n var sendExitComplete = presence === null || presence === void 0 ? void 0 : presence[1];\n var refs = (0, import_react2.useRef)(null);\n if (!refs.current) {\n refs.current = {\n isFirstRender: true,\n lastDoAnimate: null,\n lastDontAnimate: null,\n controls: null,\n lastAnimateAt: 0,\n disposed: false,\n wasExiting: false,\n isExiting: false,\n sendExitComplete: void 0,\n animationState: \"default\",\n frozenExitTarget: null,\n exitCompleteScheduled: false,\n enterCompleteScheduled: false,\n disableAnimation: true,\n wasEntering: false,\n wasDisabled: false,\n onTransition: void 0,\n enterStarted: false,\n exitStarted: false,\n updateInFlight: false,\n updateControls: null,\n wasNoClass: !!styleProps.noClass\n };\n }\n var emit = function(phase, cause, finished) {\n var _refs_current_onTransition, _refs_current;\n (_refs_current_onTransition = (_refs_current = refs.current).onTransition) === null || _refs_current_onTransition === void 0 ? void 0 : _refs_current_onTransition.call(_refs_current, phase === \"end\" ? {\n phase,\n cause,\n finished\n } : {\n phase,\n cause\n });\n };\n var justFinishedEntering = refs.current.wasEntering && !isEntering;\n (0, import_react2.useEffect)(function() {\n refs.current.wasEntering = isEntering;\n });\n var animationState = isExiting ? \"exit\" : isMounting || justFinishedEntering ? \"enter\" : \"default\";\n var disableAnimation = isComponentHydrating || isMounting || !animationKey;\n var [scope] = useAnimateSSRSafe();\n refs.current.isExiting = isExiting;\n refs.current.sendExitComplete = sendExitComplete;\n refs.current.animationState = animationState;\n refs.current.disableAnimation = disableAnimation;\n refs.current.onTransition = onTransition;\n var justStartedExiting = isExiting && !refs.current.wasExiting;\n var justStoppedExiting = !isExiting && refs.current.wasExiting;\n if (justStartedExiting || justStoppedExiting) {\n refs.current.frozenExitTarget = null;\n refs.current.exitCompleteScheduled = false;\n refs.current.enterCompleteScheduled = false;\n }\n (0, import_react2.useEffect)(function() {\n refs.current.wasExiting = isExiting;\n });\n (0, import_web.useIsomorphicLayoutEffect)(function() {\n if (justStoppedExiting && refs.current.exitStarted) {\n refs.current.exitStarted = false;\n emit(\"end\", \"exit\", false);\n }\n }, [\n justStoppedExiting\n ]);\n var { dontAnimate = {}, doAnimate, animationOptions } = getMotionAnimatedProps(props, style, disableAnimation, animationState);\n var [firstRenderStyle] = (0, import_react2.useState)(style);\n if (refs.current.isFirstRender) {\n refs.current.lastDontAnimate = firstRenderStyle;\n }\n var [isHydrating, setIsHydrating] = (0, import_react2.useState)(isHydratingGlobal);\n (0, import_react2.useLayoutEffect)(function() {\n if (isHydratingGlobal) {\n hydratingComponents.add(function() {\n setIsHydrating(false);\n });\n }\n return function() {\n refs.current.disposed = true;\n };\n }, []);\n var flushAnimation = function(param) {\n var { doAnimate: doAnimateRaw = {}, animationOptions: passedOptions = {}, dontAnimate: dontAnimate2 } = param;\n var startedControls = null;\n var isCurrentlyExiting = refs.current.isExiting;\n var currentSendExitComplete = refs.current.sendExitComplete;\n var currentAnimationState = refs.current.animationState;\n var doAnimate2 = doAnimateRaw;\n if (isCurrentlyExiting && refs.current.frozenExitTarget) {\n doAnimate2 = refs.current.frozenExitTarget;\n }\n var _props_transition;\n var animationOptions2 = isCurrentlyExiting && currentSendExitComplete ? getAnimationOptions((_props_transition = props.transition) !== null && _props_transition !== void 0 ? _props_transition : null, \"exit\") : passedOptions;\n try {\n var node = stateRef.current.host;\n if (refs.current.isFirstRender) {\n refs.current.lastDontAnimate = null;\n refs.current.lastDoAnimate = null;\n }\n if (process.env.NODE_ENV === \"development\") {\n if (props[\"debug\"] && props[\"debug\"] !== \"profile\") {\n console.groupCollapsed(`[motion] animate (${JSON.stringify(getDiff(refs.current.lastDoAnimate, doAnimate2), null, 2)})`);\n console.info({\n props,\n componentState,\n doAnimate: doAnimate2,\n dontAnimate: dontAnimate2,\n animationOptions: animationOptions2,\n animationProps,\n lastDoAnimate: {\n ...refs.current.lastDoAnimate\n },\n lastDontAnimate: {\n ...refs.current.lastDontAnimate\n },\n isExiting,\n style,\n node\n });\n console.groupCollapsed(`trace >`);\n console.trace();\n console.groupEnd();\n console.groupEnd();\n }\n }\n if (!_instanceof(node, HTMLElement)) {\n return;\n }\n var prevDont = refs.current.lastDontAnimate;\n if (dontAnimate2) {\n if (prevDont) {\n removeRemovedStyles(prevDont, dontAnimate2, node, doAnimate2);\n var changed = getDiff(prevDont, dontAnimate2);\n if (changed) {\n assignInlineStyles(node, changed);\n }\n } else {\n assignInlineStyles(node, dontAnimate2);\n }\n } else if (prevDont) {\n removeRemovedStyles(prevDont, {}, node, doAnimate2);\n }\n if (doAnimate2) {\n if (prevDont) {\n for (var key in prevDont) {\n if (key in doAnimate2) {\n node.style[key] = (0, import_web.normalizeValueWithProperty)(prevDont[key], key);\n if (refs.current.lastDoAnimate) {\n refs.current.lastDoAnimate[key] = prevDont[key];\n }\n }\n }\n }\n var lastAnimated = refs.current.lastDoAnimate;\n if (lastAnimated) {\n removeRemovedStyles(lastAnimated, doAnimate2, node, dontAnimate2);\n }\n var diff = getDiff(refs.current.lastDoAnimate, doAnimate2);\n if (diff) {\n if (isCurrentlyExiting && !refs.current.frozenExitTarget) {\n refs.current.frozenExitTarget = {\n ...doAnimate2\n };\n }\n var isPopperPosition = node.hasAttribute(\"data-popper-animate-position\");\n var popperHandledTransform = false;\n if (isPopperPosition && !isCurrentlyExiting && typeof diff.transform === \"string\") {\n var target = parseTranslate(diff.transform);\n if (target) {\n var entry = PopperPositionAnims.get(node);\n if (!entry) {\n var seed = target;\n try {\n var _parseTranslate;\n seed = (_parseTranslate = parseTranslate(getComputedStyle(node).transform)) !== null && _parseTranslate !== void 0 ? _parseTranslate : target;\n } catch (e) {\n }\n var x = (0, import_react.motionValue)(seed.x);\n var y = (0, import_react.motionValue)(seed.y);\n var write = function() {\n node.style.transform = `translate3d(${x.get()}px, ${y.get()}px, 0)`;\n };\n x.on(\"change\", write);\n y.on(\"change\", write);\n entry = {\n x,\n y,\n stop: null\n };\n PopperPositionAnims.set(node, entry);\n }\n if (!entry.stop) {\n try {\n var live = parseTranslate(getComputedStyle(node).transform);\n if (live) {\n entry.x.jump(live.x);\n entry.y.jump(live.y);\n }\n } catch (e) {\n }\n }\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = node.getAnimations()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var anim = _step.value;\n try {\n var _anim_effect_getKeyframes, _anim_effect;\n var kf = (_anim_effect = anim.effect) === null || _anim_effect === void 0 ? void 0 : (_anim_effect_getKeyframes = _anim_effect.getKeyframes) === null || _anim_effect_getKeyframes === void 0 ? void 0 : _anim_effect_getKeyframes.call(_anim_effect);\n if (kf === null || kf === void 0 ? void 0 : kf.some(function(k) {\n return \"transform\" in k;\n })) {\n anim.cancel();\n }\n } catch (e) {\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n var opts = animationOptions2;\n var _opts_transform, _ref;\n var positionTransition = (_ref = (_opts_transform = opts.transform) !== null && _opts_transform !== void 0 ? _opts_transform : opts.default) !== null && _ref !== void 0 ? _ref : animationOptions2;\n var cx = (0, import_react.animate)(entry.x, target.x, positionTransition);\n var cy = (0, import_react.animate)(entry.y, target.y, positionTransition);\n entry.stop = function() {\n cx.stop();\n cy.stop();\n };\n popperHandledTransform = true;\n }\n }\n if (isCurrentlyExiting) {\n var entry1 = PopperPositionAnims.get(node);\n if (entry1 === null || entry1 === void 0 ? void 0 : entry1.stop) {\n entry1.stop();\n entry1.stop = null;\n }\n }\n var midFlightValues = null;\n if (refs.current.controls) {\n try {\n var computed = getComputedStyle(node);\n midFlightValues = {};\n for (var key1 in diff) {\n var val = computed[key1];\n if (val !== void 0 && val !== \"\") {\n midFlightValues[key1] = val;\n }\n }\n } catch (e) {\n }\n if (isCurrentlyExiting) {\n refs.current.controls.stop();\n }\n if (midFlightValues) {\n for (var key2 in midFlightValues) {\n if (key2 === \"transform\" && popperHandledTransform) continue;\n node.style[key2] = midFlightValues[key2];\n }\n }\n if (isPopperPosition && !popperHandledTransform) {\n var anims = node.getAnimations();\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = anims[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var anim1 = _step1.value;\n anim1.cancel();\n }\n } catch (err) {\n _didIteratorError1 = true;\n _iteratorError1 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion1 && _iterator1.return != null) {\n _iterator1.return();\n }\n } finally {\n if (_didIteratorError1) {\n throw _iteratorError1;\n }\n }\n }\n }\n }\n var fixedDiff = fixTransparentColors(diff, refs.current.lastDoAnimate, doAnimate2);\n var waapiDiff = Object.fromEntries(Object.entries(fixedDiff).map(function(param2) {\n var [key3, value] = param2;\n return [\n key3,\n Array.isArray(value) ? value.map(function(item) {\n return (0, import_web.normalizeValueWithProperty)(item, key3);\n }) : (0, import_web.normalizeValueWithProperty)(value, key3)\n ];\n }));\n if (popperHandledTransform && \"transform\" in waapiDiff) {\n waapiDiff = {\n ...waapiDiff\n };\n delete waapiDiff.transform;\n }\n if ((isPopperPosition || isCurrentlyExiting) && (midFlightValues === null || midFlightValues === void 0 ? void 0 : midFlightValues.transform) && waapiDiff.transform) {\n waapiDiff.transform = [\n midFlightValues.transform,\n waapiDiff.transform\n ];\n }\n if (Object.keys(waapiDiff).length > 0) {\n startedControls = (0, import_react.animate)(node, waapiDiff, animationOptions2);\n refs.current.controls = startedControls;\n }\n refs.current.lastAnimateAt = Date.now();\n }\n }\n refs.current.lastDontAnimate = dontAnimate2 ? {\n ...dontAnimate2\n } : {};\n refs.current.lastDoAnimate = doAnimate2 ? {\n ...doAnimate2\n } : {};\n } finally {\n if (isCurrentlyExiting && currentSendExitComplete) {\n if (refs.current.enterStarted) {\n refs.current.enterStarted = false;\n emit(\"end\", \"enter\", false);\n }\n if (startedControls) {\n if (!refs.current.exitStarted) {\n refs.current.exitStarted = true;\n emit(\"start\", \"exit\");\n }\n refs.current.exitCompleteScheduled = true;\n var complete = function(finished) {\n if (!refs.current.isExiting) return;\n if (refs.current.exitStarted) {\n refs.current.exitStarted = false;\n emit(\"end\", \"exit\", finished);\n }\n currentSendExitComplete();\n };\n startedControls.finished.then(function() {\n return complete(true);\n }).catch(function() {\n return complete(false);\n });\n } else if (!refs.current.exitCompleteScheduled) {\n emit(\"start\", \"exit\");\n emit(\"end\", \"exit\", true);\n currentSendExitComplete();\n }\n } else if (currentAnimationState === \"enter\") {\n if (startedControls) {\n if (!refs.current.enterStarted) {\n refs.current.enterStarted = true;\n emit(\"start\", \"enter\");\n }\n refs.current.enterCompleteScheduled = true;\n var complete1 = function(finished) {\n if (refs.current.disposed || refs.current.animationState !== \"enter\") return;\n if (refs.current.enterStarted) {\n refs.current.enterStarted = false;\n emit(\"end\", \"enter\", finished);\n }\n };\n startedControls.finished.then(function() {\n return complete1(true);\n }).catch(function() {\n return complete1(false);\n });\n } else if (!refs.current.enterCompleteScheduled && !refs.current.disableAnimation) {\n emit(\"start\", \"enter\");\n emit(\"end\", \"enter\", true);\n }\n } else if (startedControls) {\n var controls = startedControls;\n if (refs.current.updateInFlight) {\n emit(\"end\", \"update\", false);\n }\n refs.current.updateInFlight = true;\n refs.current.updateControls = controls;\n emit(\"start\", \"update\");\n var settle = function(finished) {\n if (refs.current.updateControls !== controls) return;\n refs.current.updateInFlight = false;\n refs.current.updateControls = null;\n emit(\"end\", \"update\", finished);\n };\n controls.finished.then(function() {\n return settle(true);\n }).catch(function() {\n return settle(false);\n });\n }\n }\n };\n useStyleEmitter === null || useStyleEmitter === void 0 ? void 0 : useStyleEmitter(function(nextStyle, effectiveTransition) {\n var _$animationProps = getMotionAnimatedProps(props, nextStyle, disableAnimation, refs.current.animationState, effectiveTransition);\n flushAnimation(_$animationProps);\n });\n (0, import_web.useIsomorphicLayoutEffect)(function() {\n if (refs.current.isFirstRender) {\n refs.current.isFirstRender = false;\n refs.current.wasDisabled = disableAnimation;\n if (isHydrating) {\n if (doAnimate && Object.keys(doAnimate).length > 0) {\n refs.current.lastDoAnimate = {\n ...doAnimate\n };\n } else {\n refs.current.lastDoAnimate = dontAnimate ? {\n ...dontAnimate\n } : {};\n }\n refs.current.lastDontAnimate = dontAnimate ? {\n ...dontAnimate\n } : {};\n refs.current.lastAnimateAt = Date.now();\n return;\n }\n refs.current.lastDontAnimate = dontAnimate ? {\n ...dontAnimate\n } : {};\n refs.current.lastDoAnimate = doAnimate ? {\n ...doAnimate\n } : {};\n return;\n }\n var justEnabled = refs.current.wasDisabled && !disableAnimation;\n refs.current.wasDisabled = disableAnimation;\n var justStrippedClasses = !refs.current.wasNoClass && !!styleProps.noClass;\n refs.current.wasNoClass = !!styleProps.noClass;\n if ((justEnabled || justStrippedClasses) && animationState !== \"enter\") {\n var node = stateRef.current.host;\n if (_instanceof(node, HTMLElement)) {\n if (dontAnimate) assignInlineStyles(node, dontAnimate);\n if (doAnimate) assignInlineStyles(node, doAnimate);\n var entry = PopperPositionAnims.get(node);\n if (entry) {\n var _doAnimate_transform;\n var target = parseTranslate((_doAnimate_transform = doAnimate === null || doAnimate === void 0 ? void 0 : doAnimate.transform) !== null && _doAnimate_transform !== void 0 ? _doAnimate_transform : dontAnimate === null || dontAnimate === void 0 ? void 0 : dontAnimate.transform);\n if (target) {\n var _entry_stop;\n (_entry_stop = entry.stop) === null || _entry_stop === void 0 ? void 0 : _entry_stop.call(entry);\n entry.stop = null;\n entry.x.jump(target.x);\n entry.y.jump(target.y);\n }\n }\n }\n refs.current.lastDontAnimate = dontAnimate ? {\n ...dontAnimate\n } : {};\n refs.current.lastDoAnimate = doAnimate ? {\n ...doAnimate\n } : {};\n return;\n }\n flushAnimation({\n doAnimate,\n dontAnimate,\n animationOptions\n });\n }, [\n style,\n isExiting,\n disableAnimation,\n styleProps.noClass\n ]);\n if (process.env.NODE_ENV === \"development\") {\n if (props[\"debug\"] && props[\"debug\"] !== \"profile\") {\n console.groupCollapsed(`[motion] render`);\n console.info({\n style,\n doAnimate,\n dontAnimate,\n scope,\n animationOptions,\n isExiting,\n isFirstRender: refs.current.isFirstRender,\n animationProps\n });\n console.groupEnd();\n }\n }\n return {\n style: firstRenderStyle,\n ref: scope,\n render: \"div\"\n };\n },\n useAnimatedNumber(initial) {\n var motionValue2 = (0, import_react.useMotionValue)(initial);\n return import_react2.default.useMemo(function() {\n return {\n getInstance() {\n return motionValue2;\n },\n getValue() {\n return motionValue2.get();\n },\n setValue(next) {\n var config = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {\n type: \"spring\"\n }, onFinish = arguments.length > 2 ? arguments[2] : void 0;\n if (config.type === \"direct\") {\n MotionValueStrategy.set(motionValue2, {\n type: \"direct\"\n });\n motionValue2.set(next);\n onFinish === null || onFinish === void 0 ? void 0 : onFinish();\n return;\n }\n MotionValueStrategy.set(motionValue2, config);\n if (onFinish) {\n var prior = PendingMotionOnFinish.get(motionValue2);\n if (prior) {\n PendingMotionOnFinish.delete(motionValue2);\n prior();\n }\n PendingMotionOnFinish.set(motionValue2, onFinish);\n }\n motionValue2.set(next);\n },\n stop() {\n motionValue2.stop();\n }\n };\n }, [\n motionValue2\n ]);\n },\n useAnimatedNumberReaction(param, onValue) {\n var { value } = param;\n var instance = value.getInstance();\n (0, import_react.useMotionValueEvent)(instance, \"change\", onValue);\n },\n useAnimatedNumberStyle(val, getStyleProp) {\n var motionValue2 = val.getInstance();\n var getStyleRef = (0, import_react2.useRef)(getStyleProp);\n getStyleRef.current = getStyleProp;\n return (0, import_react2.useMemo)(function() {\n return {\n getStyle: function(cur) {\n return getStyleRef.current(cur);\n },\n motionValue: motionValue2\n };\n }, []);\n },\n useAnimatedNumbersStyle(vals, getStyleProp) {\n var motionValues = vals.map(function(v) {\n return v.getInstance();\n });\n var getStyleRef = (0, import_react2.useRef)(getStyleProp);\n getStyleRef.current = getStyleProp;\n return (0, import_react2.useMemo)(function() {\n return {\n getStyle: function() {\n for (var _len = arguments.length, currentValues = new Array(_len), _key = 0; _key < _len; _key++) {\n currentValues[_key] = arguments[_key];\n }\n return getStyleRef.current(...currentValues);\n },\n motionValues\n };\n }, []);\n }\n };\n function getMotionAnimatedProps(props, style, disable) {\n var animationState = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : \"default\", transitionOverride = arguments.length > 4 ? arguments[4] : void 0;\n if (disable) {\n return {\n dontAnimate: style\n };\n }\n var _ref;\n var animationOptions = getAnimationOptions((_ref = transitionOverride !== null && transitionOverride !== void 0 ? transitionOverride : props.transition) !== null && _ref !== void 0 ? _ref : null, animationState);\n var dontAnimate;\n var doAnimate;\n var animateOnly = props.animateOnly;\n for (var key in style) {\n var value = style[key];\n if (disableAnimationProps.has(key) || animateOnly && !animateOnly.includes(key)) {\n dontAnimate || (dontAnimate = {});\n dontAnimate[key] = value;\n } else {\n doAnimate || (doAnimate = {});\n doAnimate[key] = value;\n }\n }\n return {\n dontAnimate,\n doAnimate,\n animationOptions\n };\n }\n function getAnimationOptions(transitionProp) {\n var animationState = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : \"default\";\n var normalized = (0, import_animation_helpers.normalizeTransition)(transitionProp);\n var effectiveKey = (0, import_animation_helpers.getEffectiveAnimation)(normalized, animationState);\n if (!effectiveKey && animationState === \"default\") {\n effectiveKey = normalized.enter || normalized.exit || null;\n }\n var globalConfigOverride = normalized.config ? {\n ...normalized.config\n } : void 0;\n if (!effectiveKey && Object.keys(normalized.properties).length === 0 && !globalConfigOverride) {\n return {};\n }\n var defaultConfig = effectiveKey ? withInferredType(animations[effectiveKey]) : null;\n var delay = normalized.delay;\n var result = {};\n if (defaultConfig) {\n Object.assign(result, defaultConfig);\n }\n if (globalConfigOverride) {\n Object.assign(result, globalConfigOverride);\n if (result.type === void 0 && result.duration !== void 0 && result.damping === void 0 && result.stiffness === void 0 && result.mass === void 0) {\n result.type = \"tween\";\n }\n }\n if (delay) {\n result.delay = delay;\n }\n if (defaultConfig || globalConfigOverride || delay) {\n result.default = {\n ...defaultConfig,\n ...globalConfigOverride,\n ...delay ? {\n delay\n } : null\n };\n }\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = Object.entries(normalized.properties)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var [propName, animationNameOrConfig] = _step.value;\n if (typeof animationNameOrConfig === \"string\") {\n result[propName] = withInferredType(animations[animationNameOrConfig]);\n } else if (animationNameOrConfig && (typeof animationNameOrConfig === \"undefined\" ? \"undefined\" : _type_of(animationNameOrConfig)) === \"object\") {\n var baseConfig = animationNameOrConfig.type ? withInferredType(animations[animationNameOrConfig.type]) : defaultConfig;\n result[propName] = {\n ...baseConfig,\n ...animationNameOrConfig\n };\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n convertMsToS(result);\n convertMsToS(result.default);\n for (var key in result) {\n if (key !== \"default\" && _type_of(result[key]) === \"object\") {\n convertMsToS(result[key]);\n }\n }\n return result;\n }\n}\nfunction withInferredType(config) {\n if (!config) {\n return {\n type: \"spring\"\n };\n }\n var isTimingBased = config.duration !== void 0 && config.damping === void 0 && config.stiffness === void 0 && config.mass === void 0;\n return {\n type: isTimingBased ? \"tween\" : \"spring\",\n ...config\n };\n}\nfunction convertMsToS(config) {\n if (!config) return;\n if (typeof config.delay === \"number\") config.delay = config.delay / 1e3;\n if (typeof config.duration === \"number\") {\n var isTimingBased = config.type === \"tween\" || config.type === void 0 && config.damping === void 0 && config.stiffness === void 0 && config.mass === void 0;\n if (isTimingBased) {\n config.duration = config.duration / 1e3;\n }\n }\n}\nfunction removeRemovedStyles(prev, next, node, dontClearIfIn) {\n for (var key in prev) {\n if (!(key in next)) {\n if (dontClearIfIn && key in dontClearIfIn) {\n continue;\n }\n node.style[key] = \"\";\n }\n }\n}\nvar disableAnimationProps = /* @__PURE__ */ new Set([\n ...Object.keys(import_web.nonAnimatableStyleProps),\n \"flexBasis\"\n]);\nfunction motionPropsEqual(a, b) {\n for (var key in a) {\n if (!(key in b)) return false;\n }\n for (var key1 in b) {\n if (key1 === \"children\") continue;\n var av = a[key1];\n var bv = b[key1];\n if (typeof bv === \"function\" && typeof av === \"function\") continue;\n if (!Object.is(av, bv)) return false;\n }\n return true;\n}\nfunction motionStylesEqual(a, b) {\n if (a.length !== b.length) return false;\n for (var i = 0; i < a.length; i++) {\n var sa = a[i];\n var sb = b[i];\n if (sa === sb) continue;\n if (!sa || !sb) return false;\n var aCount = 0;\n for (var key in sa) {\n aCount++;\n if (!Object.is(sa[key], sb[key])) return false;\n }\n var bCount = 0;\n for (var _key in sb) {\n bCount++;\n }\n if (aCount !== bCount) return false;\n }\n return true;\n}\nvar MotionView = createMotionView(\"div\");\nvar MotionText = createMotionView(\"span\");\nvar transformAliases = {\n x: \"translateX\",\n y: \"translateY\",\n scale: \"scale\",\n scaleX: \"scaleX\",\n scaleY: \"scaleY\",\n rotate: \"rotate\",\n rotateX: \"rotateX\",\n rotateY: \"rotateY\",\n rotateZ: \"rotateZ\",\n skewX: \"skewX\",\n skewY: \"skewY\"\n};\nfunction compileAnimatedStyle(initialSource, initialResolved) {\n var shorthands = (0, import_web.getConfig)().shorthands;\n var entries = Object.keys(initialSource).map(function(source) {\n var _shorthands_source, _shorthands_source1, _shorthands_source2;\n return {\n source,\n target: (_shorthands_source = shorthands === null || shorthands === void 0 ? void 0 : shorthands[source]) !== null && _shorthands_source !== void 0 ? _shorthands_source : source,\n tokenValue: typeof initialSource[source] === \"string\" && initialResolved[(_shorthands_source1 = shorthands === null || shorthands === void 0 ? void 0 : shorthands[source]) !== null && _shorthands_source1 !== void 0 ? _shorthands_source1 : source] !== initialSource[source] ? initialResolved[(_shorthands_source2 = shorthands === null || shorthands === void 0 ? void 0 : shorthands[source]) !== null && _shorthands_source2 !== void 0 ? _shorthands_source2 : source] : void 0\n };\n });\n return function(sourceStyle) {\n var resolved = {};\n var transforms = [];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = entries[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var entry = _step.value;\n var value = sourceStyle[entry.source];\n if (value === void 0) continue;\n if (entry.source === \"transform\" && Array.isArray(value)) {\n resolved.transform = (0, import_web.transformsToString)(value);\n } else if (entry.source in transformAliases) {\n transforms.push({\n [transformAliases[entry.source]]: value\n });\n } else {\n var _entry_tokenValue;\n resolved[entry.target] = (_entry_tokenValue = entry.tokenValue) !== null && _entry_tokenValue !== void 0 ? _entry_tokenValue : (0, import_web.normalizeValueWithProperty)(value, entry.target);\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n if (transforms.length) resolved.transform = (0, import_web.transformsToString)(transforms);\n return resolved;\n };\n}\nfunction createMotionView(defaultTag) {\n var isText = defaultTag === \"span\";\n var Component = (0, import_web.createRefComponent)(function(propsIn, ref) {\n var _hooks_usePropsTransform;\n var { forwardedRef, animation, render = defaultTag, style, ...propsRest } = propsIn;\n var [scope, animate] = useAnimateSSRSafe();\n var hostRef = (0, import_react2.useRef)(null);\n var seededNode = (0, import_react2.useRef)(null);\n var seededInCurrentFrame = (0, import_react2.useRef)(false);\n var queuedAnimationFrames = (0, import_react2.useRef)(/* @__PURE__ */ new WeakMap());\n var composedRefs = (0, import_web.useComposedRefs)(forwardedRef, ref, hostRef, scope);\n var stateRef = (0, import_react2.useRef)(null);\n if (!stateRef.current) {\n stateRef.current = {\n get host() {\n return hostRef.current;\n }\n };\n }\n var [_, state] = (0, import_web.useThemeWithState)({});\n var styles = Array.isArray(style) ? style : [\n style\n ];\n var [animatedStyle, nonAnimatedStyles] = (function() {\n var animatedStyle2;\n var nonAnimatedStyles2 = [];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = styles[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var style2 = _step.value;\n if (style2.getStyle) {\n animatedStyle2 = style2;\n } else {\n nonAnimatedStyles2.push(style2);\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n return [\n animatedStyle2,\n nonAnimatedStyles2\n ];\n })();\n function getProps(props2) {\n if (process.env.NODE_ENV === \"development\" && propsIn.debug === \"profile\" && typeof performance !== \"undefined\") {\n performance.mark(\"tamagui-motion-style-split\");\n }\n var out = (0, import_web.getSplitStyles)(props2, isText ? import_web.Text.staticConfig : import_web.View.staticConfig, state === null || state === void 0 ? void 0 : state.theme, state === null || state === void 0 ? void 0 : state.name, {\n unmounted: false\n }, {\n isAnimated: false,\n noClass: true,\n resolveValues: \"auto\"\n });\n if (!out) {\n return {};\n }\n if (out.viewProps.style) {\n (0, import_web.fixStyles)(out.viewProps.style);\n (0, import_web.styleToCSS)(out.viewProps.style);\n }\n return out.viewProps;\n }\n var resolvedAnimatedStyle = (0, import_react2.useMemo)(function() {\n if (!animatedStyle) return null;\n var currentValues = animatedStyle.motionValues ? animatedStyle.motionValues.map(function(value) {\n return value.get();\n }) : animatedStyle.motionValue ? [\n animatedStyle.motionValue.get()\n ] : [];\n var initialSource = animatedStyle.getStyle(...currentValues);\n var initialResolved = asStyleRecord(getProps({\n style: initialSource\n }).style);\n return {\n initial: initialResolved,\n resolve: compileAnimatedStyle(initialSource, initialResolved)\n };\n }, [\n animatedStyle,\n state === null || state === void 0 ? void 0 : state.theme,\n state === null || state === void 0 ? void 0 : state.name\n ]);\n var memoRef = (0, import_react2.useRef)(null);\n var props;\n var cached = memoRef.current;\n if (cached && cached.theme === (state === null || state === void 0 ? void 0 : state.theme) && cached.themeName === (state === null || state === void 0 ? void 0 : state.name) && motionStylesEqual(cached.styles, nonAnimatedStyles) && motionPropsEqual(cached.propsRest, propsRest)) {\n props = {\n ...cached.result\n };\n for (var key in propsRest) {\n var val = propsRest[key];\n if (key === \"children\" || typeof val === \"function\") {\n props[key] = val;\n }\n }\n } else {\n props = getProps({\n ...propsRest,\n style: nonAnimatedStyles\n });\n memoRef.current = {\n propsRest,\n styles: nonAnimatedStyles,\n theme: state === null || state === void 0 ? void 0 : state.theme,\n themeName: state === null || state === void 0 ? void 0 : state.name,\n result: props\n };\n }\n if (resolvedAnimatedStyle) {\n props = {\n ...props,\n style: {\n ...asStyleRecord(props.style),\n ...resolvedAnimatedStyle.initial\n }\n };\n }\n var Element = render || \"div\";\n var transformedProps = (_hooks_usePropsTransform = import_web.hooks.usePropsTransform) === null || _hooks_usePropsTransform === void 0 ? void 0 : _hooks_usePropsTransform.call(import_web.hooks, render, props, stateRef, false);\n (0, import_web.useIsomorphicLayoutEffect)(function() {\n if (!animatedStyle) return;\n var node = hostRef.current;\n if (_instanceof(node, HTMLElement) && seededNode.current !== node) {\n var currentStyle = animatedStyle.motionValues ? animatedStyle.getStyle(...animatedStyle.motionValues.map(function(value) {\n return value.get();\n })) : animatedStyle.motionValue ? animatedStyle.getStyle(animatedStyle.motionValue.get()) : null;\n var webStyle = currentStyle && (resolvedAnimatedStyle === null || resolvedAnimatedStyle === void 0 ? void 0 : resolvedAnimatedStyle.resolve(currentStyle));\n if (webStyle) {\n assignInlineStyles(node, webStyle);\n seededNode.current = node;\n seededInCurrentFrame.current = true;\n requestAnimationFrame(function() {\n if (seededNode.current === node) seededInCurrentFrame.current = false;\n });\n }\n }\n var toTransition = function(animationConfig) {\n return (animationConfig === null || animationConfig === void 0 ? void 0 : animationConfig.type) === \"timing\" ? {\n type: \"tween\",\n duration: (animationConfig.duration || 0) / 1e3\n } : (animationConfig === null || animationConfig === void 0 ? void 0 : animationConfig.type) === \"direct\" ? {\n type: \"tween\",\n duration: 0\n } : {\n type: \"spring\",\n ...animationConfig\n };\n };\n var animateNodeTo = function(nextStyle, transition, motionValue3) {\n if (!_instanceof(node, HTMLElement) || hostRef.current !== node) return;\n var webStyle2 = resolvedAnimatedStyle === null || resolvedAnimatedStyle === void 0 ? void 0 : resolvedAnimatedStyle.resolve(nextStyle);\n if (!webStyle2) return;\n settlePendingMotionOnFinish(motionValue3, animate(node, webStyle2, transition));\n };\n var animateChangedValue = function(nextStyle, transition, motionValue3) {\n if (seededInCurrentFrame.current && seededNode.current === node) {\n var queuedFrame = queuedAnimationFrames.current.get(motionValue3);\n if (queuedFrame !== void 0) cancelAnimationFrame(queuedFrame);\n var frame = requestAnimationFrame(function() {\n if (queuedAnimationFrames.current.get(motionValue3) !== frame) return;\n queuedAnimationFrames.current.delete(motionValue3);\n if (hostRef.current === node) {\n animateNodeTo(nextStyle, transition, motionValue3);\n } else {\n var onFinish = PendingMotionOnFinish.get(motionValue3);\n PendingMotionOnFinish.delete(motionValue3);\n onFinish === null || onFinish === void 0 ? void 0 : onFinish();\n }\n });\n queuedAnimationFrames.current.set(motionValue3, frame);\n return;\n }\n animateNodeTo(nextStyle, transition, motionValue3);\n };\n if (animatedStyle.motionValues) {\n var mvs = animatedStyle.motionValues;\n var styleForAll = function() {\n return animatedStyle.getStyle(...mvs.map(function(value) {\n return value.get();\n }));\n };\n var unsubs = mvs.map(function(mv) {\n return mv.on(\"change\", function() {\n return animateChangedValue(styleForAll(), toTransition(MotionValueStrategy.get(mv)), mv);\n });\n });\n return function() {\n return unsubs.forEach(function(fn) {\n return fn();\n });\n };\n }\n var motionValue2 = animatedStyle.motionValue;\n if (!motionValue2) return;\n return motionValue2.on(\"change\", function(value) {\n return animateChangedValue(animatedStyle.getStyle(value), toTransition(MotionValueStrategy.get(motionValue2)), motionValue2);\n });\n }, [\n animatedStyle,\n resolvedAnimatedStyle\n ]);\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Element, {\n ...transformedProps,\n ref: composedRefs\n });\n });\n Component[\"acceptRenderProp\"] = true;\n return Component;\n}\nfunction getDiff(previous, next) {\n if (!previous) {\n return next;\n }\n var diff = null;\n for (var key in next) {\n if (next[key] !== previous[key]) {\n diff || (diff = {});\n diff[key] = next[key];\n }\n }\n return diff;\n}\nfunction fixTransparentColors(diff, previous, next) {\n var result = diff;\n for (var key in diff) {\n if (diff[key] === \"transparent\") {\n var fixed = \"rgba(0, 0, 0, 0)\";\n var candidates = [\n previous === null || previous === void 0 ? void 0 : previous[key],\n next === null || next === void 0 ? void 0 : next[key]\n ];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = candidates[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var candidate = _step.value;\n if (typeof candidate === \"string\" && candidate !== \"transparent\") {\n var rgbaMatch = candidate.match(/^rgba?\\(([^,]+),\\s*([^,]+),\\s*([^,)]+)/);\n if (rgbaMatch) {\n fixed = `rgba(${rgbaMatch[1]}, ${rgbaMatch[2]}, ${rgbaMatch[3]}, 0)`;\n break;\n }\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n if (result === diff) {\n result = {\n ...diff\n };\n }\n result[key] = fixed;\n }\n }\n return result;\n}\n//# sourceMappingURL=createAnimations.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKnG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UA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B,IAAI,OAAO,cAAc,YAAY,cAAc,eAAe;MAChE,IAAI,YAAY,UAAU,MAAM,wCAAwC;MACxE,IAAI,WAAW;OACb,QAAQ,QAAQ,UAAU,GAAG,IAAI,UAAU,GAAG,IAAI,UAAU,GAAG;OAC/D;MACF;KACF;IACF;GACF,SAAS,KAAK;IACZ,oBAAoB;IACpB,iBAAiB;GACnB,UAAU;IACR,IAAI;KACF,IAAI,CAAC,6BAA6B,UAAU,UAAU,MAAM;MAC1D,UAAU,OAAO;KACnB;IACF,UAAU;KACR,IAAI,mBAAmB;MACrB,MAAM;KACR;IACF;GACF;GACA,IAAI,WAAW,MAAM;IACnB,SAAS,EACP,GAAG,KACL;GACF;GACA,OAAO,OAAO;EAChB;CACF;CACA,OAAO;AACT"}
1
+ {"version":3,"file":"createAnimations.native.js","names":[],"sources":["cjs/createAnimations.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar createAnimations_exports = {};\n__export(createAnimations_exports, {\n createAnimations: () => createAnimations,\n disableAnimationProps: () => disableAnimationProps\n});\nmodule.exports = __toCommonJS(createAnimations_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_animation_helpers = require(\"@tamagui/animation-helpers\");\nvar import_use_presence = require(\"@tamagui/use-presence\");\nvar import_web = require(\"@tamagui/web\");\nvar import_internal_runtime = require(\"@tamagui/web/internal-runtime\");\nvar import_react = require(\"motion/react\");\nvar import_react2 = __toESM(require(\"react\"), 1);\nfunction _instanceof(left, right) {\n if (right != null && typeof Symbol !== \"undefined\" && right[Symbol.hasInstance]) {\n return !!right[Symbol.hasInstance](left);\n } else {\n return left instanceof right;\n }\n}\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nvar isServer = typeof window === \"undefined\";\nfunction useAnimateSSRSafe() {\n if (isServer) {\n return [\n (0, import_react2.useRef)(null),\n function() {\n }\n ];\n }\n return (0, import_react.useAnimate)();\n}\nvar asStyleRecord = function(style) {\n return style && (typeof style === \"undefined\" ? \"undefined\" : _type_of(style)) === \"object\" && !Array.isArray(style) ? style : {};\n};\nfunction assignInlineStyles(node, styles) {\n for (var key in styles) {\n node.style[key] = (0, import_internal_runtime.normalizeValueWithProperty)(styles[key], key);\n }\n}\nvar MotionValueStrategy = /* @__PURE__ */ new WeakMap();\nvar PendingMotionOnFinish = /* @__PURE__ */ new WeakMap();\nfunction settlePendingMotionOnFinish(mv, controls) {\n var onFinish = PendingMotionOnFinish.get(mv);\n if (!onFinish) return;\n PendingMotionOnFinish.delete(mv);\n controls.then(function() {\n return onFinish();\n }).catch(function() {\n return onFinish();\n });\n}\nvar PopperPositionAnims = /* @__PURE__ */ new WeakMap();\nfunction parseTranslate(transform) {\n if (!transform || transform === \"none\") return {\n x: 0,\n y: 0\n };\n try {\n var m = new DOMMatrixReadOnly(transform);\n if (!m.is2D || m.a !== 1 || m.b !== 0 || m.c !== 0 || m.d !== 1) return null;\n return {\n x: m.e,\n y: m.f\n };\n } catch (e) {\n return null;\n }\n}\nfunction createAnimations(animations) {\n var isHydratingGlobal;\n var hydratingComponents = /* @__PURE__ */ new Set();\n return {\n View: MotionView,\n Text: MotionText,\n inputStyle: \"css\",\n outputStyle: \"inline\",\n avoidReRenders: true,\n animations,\n usePresence: import_use_presence.usePresence,\n ResetPresence: import_use_presence.ResetPresence,\n onMount() {\n isHydratingGlobal = false;\n hydratingComponents.forEach(function(cb) {\n return cb();\n });\n },\n useAnimations: function(animationProps) {\n if (isHydratingGlobal === void 0 && !(0, import_web.getConfig)().settings.disableSSR) {\n isHydratingGlobal = true;\n }\n var { props, style, componentState, stateRef, useStyleEmitter, presence, onTransition, styleProps } = animationProps;\n var animationKey = Array.isArray(props.transition) ? props.transition[0] : props.transition;\n var isComponentHydrating = componentState.unmounted === true;\n var isMounting = componentState.unmounted === \"should-enter\";\n var isEntering = !!componentState.unmounted;\n var isExiting = (presence === null || presence === void 0 ? void 0 : presence[0]) === false;\n var sendExitComplete = presence === null || presence === void 0 ? void 0 : presence[1];\n var refs = (0, import_react2.useRef)(null);\n if (!refs.current) {\n refs.current = {\n isFirstRender: true,\n lastDoAnimate: null,\n lastDontAnimate: null,\n controls: null,\n lastAnimateAt: 0,\n disposed: false,\n wasExiting: false,\n isExiting: false,\n sendExitComplete: void 0,\n animationState: \"default\",\n frozenExitTarget: null,\n exitCompleteScheduled: false,\n enterCompleteScheduled: false,\n disableAnimation: true,\n wasEntering: false,\n wasDisabled: false,\n onTransition: void 0,\n enterStarted: false,\n exitStarted: false,\n updateInFlight: false,\n updateControls: null,\n wasNoClass: !!styleProps.noClass\n };\n }\n var emit = function(phase, cause, finished) {\n var _refs_current_onTransition, _refs_current;\n (_refs_current_onTransition = (_refs_current = refs.current).onTransition) === null || _refs_current_onTransition === void 0 ? void 0 : _refs_current_onTransition.call(_refs_current, phase === \"end\" ? {\n phase,\n cause,\n finished\n } : {\n phase,\n cause\n });\n };\n var justFinishedEntering = refs.current.wasEntering && !isEntering;\n (0, import_react2.useEffect)(function() {\n refs.current.wasEntering = isEntering;\n });\n var animationState = isExiting ? \"exit\" : isMounting || justFinishedEntering ? \"enter\" : \"default\";\n var disableAnimation = isComponentHydrating || isMounting || !animationKey;\n var [scope] = useAnimateSSRSafe();\n refs.current.isExiting = isExiting;\n refs.current.sendExitComplete = sendExitComplete;\n refs.current.animationState = animationState;\n refs.current.disableAnimation = disableAnimation;\n refs.current.onTransition = onTransition;\n var justStartedExiting = isExiting && !refs.current.wasExiting;\n var justStoppedExiting = !isExiting && refs.current.wasExiting;\n if (justStartedExiting || justStoppedExiting) {\n refs.current.frozenExitTarget = null;\n refs.current.exitCompleteScheduled = false;\n refs.current.enterCompleteScheduled = false;\n }\n (0, import_react2.useEffect)(function() {\n refs.current.wasExiting = isExiting;\n });\n (0, import_web.useIsomorphicLayoutEffect)(function() {\n if (justStoppedExiting && refs.current.exitStarted) {\n refs.current.exitStarted = false;\n emit(\"end\", \"exit\", false);\n }\n }, [\n justStoppedExiting\n ]);\n var { dontAnimate = {}, doAnimate, animationOptions } = getMotionAnimatedProps(props, style, disableAnimation, animationState);\n var [firstRenderStyle] = (0, import_react2.useState)(style);\n if (refs.current.isFirstRender) {\n refs.current.lastDontAnimate = firstRenderStyle;\n }\n var [isHydrating, setIsHydrating] = (0, import_react2.useState)(isHydratingGlobal);\n (0, import_react2.useLayoutEffect)(function() {\n if (isHydratingGlobal) {\n hydratingComponents.add(function() {\n setIsHydrating(false);\n });\n }\n return function() {\n refs.current.disposed = true;\n };\n }, []);\n var flushAnimation = function(param) {\n var { doAnimate: doAnimateRaw = {}, animationOptions: passedOptions = {}, dontAnimate: dontAnimate2 } = param;\n var startedControls = null;\n var isCurrentlyExiting = refs.current.isExiting;\n var currentSendExitComplete = refs.current.sendExitComplete;\n var currentAnimationState = refs.current.animationState;\n var doAnimate2 = doAnimateRaw;\n if (isCurrentlyExiting && refs.current.frozenExitTarget) {\n doAnimate2 = refs.current.frozenExitTarget;\n }\n var _props_transition;\n var animationOptions2 = isCurrentlyExiting && currentSendExitComplete ? getAnimationOptions((_props_transition = props.transition) !== null && _props_transition !== void 0 ? _props_transition : null, \"exit\") : passedOptions;\n try {\n var node = stateRef.current.host;\n if (refs.current.isFirstRender) {\n refs.current.lastDontAnimate = null;\n refs.current.lastDoAnimate = null;\n }\n if (process.env.NODE_ENV === \"development\") {\n if (props[\"debug\"] && props[\"debug\"] !== \"profile\") {\n console.groupCollapsed(`[motion] animate (${JSON.stringify(getDiff(refs.current.lastDoAnimate, doAnimate2), null, 2)})`);\n console.info({\n props,\n componentState,\n doAnimate: doAnimate2,\n dontAnimate: dontAnimate2,\n animationOptions: animationOptions2,\n animationProps,\n lastDoAnimate: {\n ...refs.current.lastDoAnimate\n },\n lastDontAnimate: {\n ...refs.current.lastDontAnimate\n },\n isExiting,\n style,\n node\n });\n console.groupCollapsed(`trace >`);\n console.trace();\n console.groupEnd();\n console.groupEnd();\n }\n }\n if (!_instanceof(node, HTMLElement)) {\n return;\n }\n var prevDont = refs.current.lastDontAnimate;\n if (dontAnimate2) {\n if (prevDont) {\n removeRemovedStyles(prevDont, dontAnimate2, node, doAnimate2);\n var changed = getDiff(prevDont, dontAnimate2);\n if (changed) {\n assignInlineStyles(node, changed);\n }\n } else {\n assignInlineStyles(node, dontAnimate2);\n }\n } else if (prevDont) {\n removeRemovedStyles(prevDont, {}, node, doAnimate2);\n }\n if (doAnimate2) {\n if (prevDont) {\n for (var key in prevDont) {\n if (key in doAnimate2) {\n node.style[key] = (0, import_internal_runtime.normalizeValueWithProperty)(prevDont[key], key);\n if (refs.current.lastDoAnimate) {\n refs.current.lastDoAnimate[key] = prevDont[key];\n }\n }\n }\n }\n var lastAnimated = refs.current.lastDoAnimate;\n if (lastAnimated) {\n removeRemovedStyles(lastAnimated, doAnimate2, node, dontAnimate2);\n }\n var diff = getDiff(refs.current.lastDoAnimate, doAnimate2);\n if (diff) {\n if (isCurrentlyExiting && !refs.current.frozenExitTarget) {\n refs.current.frozenExitTarget = {\n ...doAnimate2\n };\n }\n var isPopperPosition = node.hasAttribute(\"data-popper-animate-position\");\n var popperHandledTransform = false;\n if (isPopperPosition && !isCurrentlyExiting && typeof diff.transform === \"string\") {\n var target = parseTranslate(diff.transform);\n if (target) {\n var entry = PopperPositionAnims.get(node);\n if (!entry) {\n var seed = target;\n try {\n var _parseTranslate;\n seed = (_parseTranslate = parseTranslate(getComputedStyle(node).transform)) !== null && _parseTranslate !== void 0 ? _parseTranslate : target;\n } catch (e) {\n }\n var x = (0, import_react.motionValue)(seed.x);\n var y = (0, import_react.motionValue)(seed.y);\n var write = function() {\n node.style.transform = `translate3d(${x.get()}px, ${y.get()}px, 0)`;\n };\n x.on(\"change\", write);\n y.on(\"change\", write);\n entry = {\n x,\n y,\n stop: null\n };\n PopperPositionAnims.set(node, entry);\n }\n if (!entry.stop) {\n try {\n var live = parseTranslate(getComputedStyle(node).transform);\n if (live) {\n entry.x.jump(live.x);\n entry.y.jump(live.y);\n }\n } catch (e) {\n }\n }\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = node.getAnimations()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var anim = _step.value;\n try {\n var _anim_effect_getKeyframes, _anim_effect;\n var kf = (_anim_effect = anim.effect) === null || _anim_effect === void 0 ? void 0 : (_anim_effect_getKeyframes = _anim_effect.getKeyframes) === null || _anim_effect_getKeyframes === void 0 ? void 0 : _anim_effect_getKeyframes.call(_anim_effect);\n if (kf === null || kf === void 0 ? void 0 : kf.some(function(k) {\n return \"transform\" in k;\n })) {\n anim.cancel();\n }\n } catch (e) {\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n var opts = animationOptions2;\n var _opts_transform, _ref;\n var positionTransition = (_ref = (_opts_transform = opts.transform) !== null && _opts_transform !== void 0 ? _opts_transform : opts.default) !== null && _ref !== void 0 ? _ref : animationOptions2;\n var cx = (0, import_react.animate)(entry.x, target.x, positionTransition);\n var cy = (0, import_react.animate)(entry.y, target.y, positionTransition);\n entry.stop = function() {\n cx.stop();\n cy.stop();\n };\n popperHandledTransform = true;\n }\n }\n if (isCurrentlyExiting) {\n var entry1 = PopperPositionAnims.get(node);\n if (entry1 === null || entry1 === void 0 ? void 0 : entry1.stop) {\n entry1.stop();\n entry1.stop = null;\n }\n }\n var midFlightValues = null;\n if (refs.current.controls) {\n try {\n var computed = getComputedStyle(node);\n midFlightValues = {};\n for (var key1 in diff) {\n var val = computed[key1];\n if (val !== void 0 && val !== \"\") {\n midFlightValues[key1] = val;\n }\n }\n } catch (e) {\n }\n if (isCurrentlyExiting) {\n refs.current.controls.stop();\n }\n if (midFlightValues) {\n for (var key2 in midFlightValues) {\n if (key2 === \"transform\" && popperHandledTransform) continue;\n node.style[key2] = midFlightValues[key2];\n }\n }\n if (isPopperPosition && !popperHandledTransform) {\n var anims = node.getAnimations();\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = anims[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var anim1 = _step1.value;\n anim1.cancel();\n }\n } catch (err) {\n _didIteratorError1 = true;\n _iteratorError1 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion1 && _iterator1.return != null) {\n _iterator1.return();\n }\n } finally {\n if (_didIteratorError1) {\n throw _iteratorError1;\n }\n }\n }\n }\n }\n var fixedDiff = fixTransparentColors(diff, refs.current.lastDoAnimate, doAnimate2);\n var waapiDiff = Object.fromEntries(Object.entries(fixedDiff).map(function(param2) {\n var [key3, value] = param2;\n return [\n key3,\n Array.isArray(value) ? value.map(function(item) {\n return (0, import_internal_runtime.normalizeValueWithProperty)(item, key3);\n }) : (0, import_internal_runtime.normalizeValueWithProperty)(value, key3)\n ];\n }));\n if (popperHandledTransform && \"transform\" in waapiDiff) {\n waapiDiff = {\n ...waapiDiff\n };\n delete waapiDiff.transform;\n }\n if ((isPopperPosition || isCurrentlyExiting) && (midFlightValues === null || midFlightValues === void 0 ? void 0 : midFlightValues.transform) && waapiDiff.transform) {\n waapiDiff.transform = [\n midFlightValues.transform,\n waapiDiff.transform\n ];\n }\n if (Object.keys(waapiDiff).length > 0) {\n startedControls = (0, import_react.animate)(node, waapiDiff, animationOptions2);\n refs.current.controls = startedControls;\n }\n refs.current.lastAnimateAt = Date.now();\n }\n }\n refs.current.lastDontAnimate = dontAnimate2 ? {\n ...dontAnimate2\n } : {};\n refs.current.lastDoAnimate = doAnimate2 ? {\n ...doAnimate2\n } : {};\n } finally {\n if (isCurrentlyExiting && currentSendExitComplete) {\n if (refs.current.enterStarted) {\n refs.current.enterStarted = false;\n emit(\"end\", \"enter\", false);\n }\n if (startedControls) {\n if (!refs.current.exitStarted) {\n refs.current.exitStarted = true;\n emit(\"start\", \"exit\");\n }\n refs.current.exitCompleteScheduled = true;\n var complete = function(finished) {\n if (!refs.current.isExiting) return;\n if (refs.current.exitStarted) {\n refs.current.exitStarted = false;\n emit(\"end\", \"exit\", finished);\n }\n currentSendExitComplete();\n };\n startedControls.finished.then(function() {\n return complete(true);\n }).catch(function() {\n return complete(false);\n });\n } else if (!refs.current.exitCompleteScheduled) {\n emit(\"start\", \"exit\");\n emit(\"end\", \"exit\", true);\n currentSendExitComplete();\n }\n } else if (currentAnimationState === \"enter\") {\n if (startedControls) {\n if (!refs.current.enterStarted) {\n refs.current.enterStarted = true;\n emit(\"start\", \"enter\");\n }\n refs.current.enterCompleteScheduled = true;\n var complete1 = function(finished) {\n if (refs.current.disposed || refs.current.animationState !== \"enter\") return;\n if (refs.current.enterStarted) {\n refs.current.enterStarted = false;\n emit(\"end\", \"enter\", finished);\n }\n };\n startedControls.finished.then(function() {\n return complete1(true);\n }).catch(function() {\n return complete1(false);\n });\n } else if (!refs.current.enterCompleteScheduled && !refs.current.disableAnimation) {\n emit(\"start\", \"enter\");\n emit(\"end\", \"enter\", true);\n }\n } else if (startedControls) {\n var controls = startedControls;\n if (refs.current.updateInFlight) {\n emit(\"end\", \"update\", false);\n }\n refs.current.updateInFlight = true;\n refs.current.updateControls = controls;\n emit(\"start\", \"update\");\n var settle = function(finished) {\n if (refs.current.updateControls !== controls) return;\n refs.current.updateInFlight = false;\n refs.current.updateControls = null;\n emit(\"end\", \"update\", finished);\n };\n controls.finished.then(function() {\n return settle(true);\n }).catch(function() {\n return settle(false);\n });\n }\n }\n };\n useStyleEmitter === null || useStyleEmitter === void 0 ? void 0 : useStyleEmitter(function(nextStyle, effectiveTransition) {\n var _$animationProps = getMotionAnimatedProps(props, nextStyle, disableAnimation, refs.current.animationState, effectiveTransition);\n flushAnimation(_$animationProps);\n });\n (0, import_web.useIsomorphicLayoutEffect)(function() {\n if (refs.current.isFirstRender) {\n refs.current.isFirstRender = false;\n refs.current.wasDisabled = disableAnimation;\n if (isHydrating) {\n if (doAnimate && Object.keys(doAnimate).length > 0) {\n refs.current.lastDoAnimate = {\n ...doAnimate\n };\n } else {\n refs.current.lastDoAnimate = dontAnimate ? {\n ...dontAnimate\n } : {};\n }\n refs.current.lastDontAnimate = dontAnimate ? {\n ...dontAnimate\n } : {};\n refs.current.lastAnimateAt = Date.now();\n return;\n }\n refs.current.lastDontAnimate = dontAnimate ? {\n ...dontAnimate\n } : {};\n refs.current.lastDoAnimate = doAnimate ? {\n ...doAnimate\n } : {};\n return;\n }\n var justEnabled = refs.current.wasDisabled && !disableAnimation;\n refs.current.wasDisabled = disableAnimation;\n var justStrippedClasses = !refs.current.wasNoClass && !!styleProps.noClass;\n refs.current.wasNoClass = !!styleProps.noClass;\n if ((justEnabled || justStrippedClasses) && animationState !== \"enter\") {\n var node = stateRef.current.host;\n if (_instanceof(node, HTMLElement)) {\n if (dontAnimate) assignInlineStyles(node, dontAnimate);\n if (doAnimate) assignInlineStyles(node, doAnimate);\n var entry = PopperPositionAnims.get(node);\n if (entry) {\n var _doAnimate_transform;\n var target = parseTranslate((_doAnimate_transform = doAnimate === null || doAnimate === void 0 ? void 0 : doAnimate.transform) !== null && _doAnimate_transform !== void 0 ? _doAnimate_transform : dontAnimate === null || dontAnimate === void 0 ? void 0 : dontAnimate.transform);\n if (target) {\n var _entry_stop;\n (_entry_stop = entry.stop) === null || _entry_stop === void 0 ? void 0 : _entry_stop.call(entry);\n entry.stop = null;\n entry.x.jump(target.x);\n entry.y.jump(target.y);\n }\n }\n }\n refs.current.lastDontAnimate = dontAnimate ? {\n ...dontAnimate\n } : {};\n refs.current.lastDoAnimate = doAnimate ? {\n ...doAnimate\n } : {};\n return;\n }\n flushAnimation({\n doAnimate,\n dontAnimate,\n animationOptions\n });\n }, [\n style,\n isExiting,\n disableAnimation,\n styleProps.noClass\n ]);\n if (process.env.NODE_ENV === \"development\") {\n if (props[\"debug\"] && props[\"debug\"] !== \"profile\") {\n console.groupCollapsed(`[motion] render`);\n console.info({\n style,\n doAnimate,\n dontAnimate,\n scope,\n animationOptions,\n isExiting,\n isFirstRender: refs.current.isFirstRender,\n animationProps\n });\n console.groupEnd();\n }\n }\n return {\n style: firstRenderStyle,\n ref: scope,\n render: \"div\"\n };\n },\n useAnimatedNumber(initial) {\n var motionValue2 = (0, import_react.useMotionValue)(initial);\n return import_react2.default.useMemo(function() {\n return {\n getInstance() {\n return motionValue2;\n },\n getValue() {\n return motionValue2.get();\n },\n setValue(next) {\n var config = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {\n type: \"spring\"\n }, onFinish = arguments.length > 2 ? arguments[2] : void 0;\n if (config.type === \"direct\") {\n MotionValueStrategy.set(motionValue2, {\n type: \"direct\"\n });\n motionValue2.set(next);\n onFinish === null || onFinish === void 0 ? void 0 : onFinish();\n return;\n }\n MotionValueStrategy.set(motionValue2, config);\n if (onFinish) {\n var prior = PendingMotionOnFinish.get(motionValue2);\n if (prior) {\n PendingMotionOnFinish.delete(motionValue2);\n prior();\n }\n PendingMotionOnFinish.set(motionValue2, onFinish);\n }\n motionValue2.set(next);\n },\n stop() {\n motionValue2.stop();\n }\n };\n }, [\n motionValue2\n ]);\n },\n useAnimatedNumberReaction(param, onValue) {\n var { value } = param;\n var instance = value.getInstance();\n (0, import_react.useMotionValueEvent)(instance, \"change\", onValue);\n },\n useAnimatedNumberStyle(val, getStyleProp) {\n var motionValue2 = val.getInstance();\n var getStyleRef = (0, import_react2.useRef)(getStyleProp);\n getStyleRef.current = getStyleProp;\n return (0, import_react2.useMemo)(function() {\n return {\n getStyle: function(cur) {\n return getStyleRef.current(cur);\n },\n motionValue: motionValue2\n };\n }, []);\n },\n useAnimatedNumbersStyle(vals, getStyleProp) {\n var motionValues = vals.map(function(v) {\n return v.getInstance();\n });\n var getStyleRef = (0, import_react2.useRef)(getStyleProp);\n getStyleRef.current = getStyleProp;\n return (0, import_react2.useMemo)(function() {\n return {\n getStyle: function() {\n for (var _len = arguments.length, currentValues = new Array(_len), _key = 0; _key < _len; _key++) {\n currentValues[_key] = arguments[_key];\n }\n return getStyleRef.current(...currentValues);\n },\n motionValues\n };\n }, []);\n }\n };\n function getMotionAnimatedProps(props, style, disable) {\n var animationState = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : \"default\", transitionOverride = arguments.length > 4 ? arguments[4] : void 0;\n if (disable) {\n return {\n dontAnimate: style\n };\n }\n var _ref;\n var animationOptions = getAnimationOptions((_ref = transitionOverride !== null && transitionOverride !== void 0 ? transitionOverride : props.transition) !== null && _ref !== void 0 ? _ref : null, animationState);\n var dontAnimate;\n var doAnimate;\n var animateOnly = props.animateOnly;\n for (var key in style) {\n var value = style[key];\n if (disableAnimationProps.has(key) || animateOnly && !animateOnly.includes(key)) {\n dontAnimate || (dontAnimate = {});\n dontAnimate[key] = value;\n } else {\n doAnimate || (doAnimate = {});\n doAnimate[key] = value;\n }\n }\n return {\n dontAnimate,\n doAnimate,\n animationOptions\n };\n }\n function getAnimationOptions(transitionProp) {\n var animationState = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : \"default\";\n var normalized = (0, import_animation_helpers.normalizeTransition)(transitionProp);\n var effectiveKey = (0, import_animation_helpers.getEffectiveAnimation)(normalized, animationState);\n if (!effectiveKey && animationState === \"default\") {\n effectiveKey = normalized.enter || normalized.exit || null;\n }\n var globalConfigOverride = normalized.config ? {\n ...normalized.config\n } : void 0;\n if (!effectiveKey && Object.keys(normalized.properties).length === 0 && !globalConfigOverride) {\n return {};\n }\n var defaultConfig = effectiveKey ? withInferredType(animations[effectiveKey]) : null;\n var delay = normalized.delay;\n var result = {};\n if (defaultConfig) {\n Object.assign(result, defaultConfig);\n }\n if (globalConfigOverride) {\n Object.assign(result, globalConfigOverride);\n if (result.type === void 0 && result.duration !== void 0 && result.damping === void 0 && result.stiffness === void 0 && result.mass === void 0) {\n result.type = \"tween\";\n }\n }\n if (delay) {\n result.delay = delay;\n }\n if (defaultConfig || globalConfigOverride || delay) {\n result.default = {\n ...defaultConfig,\n ...globalConfigOverride,\n ...delay ? {\n delay\n } : null\n };\n }\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = Object.entries(normalized.properties)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var [propName, animationNameOrConfig] = _step.value;\n if (typeof animationNameOrConfig === \"string\") {\n result[propName] = withInferredType(animations[animationNameOrConfig]);\n } else if (animationNameOrConfig && (typeof animationNameOrConfig === \"undefined\" ? \"undefined\" : _type_of(animationNameOrConfig)) === \"object\") {\n var baseConfig = animationNameOrConfig.type ? withInferredType(animations[animationNameOrConfig.type]) : defaultConfig;\n result[propName] = {\n ...baseConfig,\n ...animationNameOrConfig\n };\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n convertMsToS(result);\n convertMsToS(result.default);\n for (var key in result) {\n if (key !== \"default\" && _type_of(result[key]) === \"object\") {\n convertMsToS(result[key]);\n }\n }\n return result;\n }\n}\nfunction withInferredType(config) {\n if (!config) {\n return {\n type: \"spring\"\n };\n }\n var isTimingBased = config.duration !== void 0 && config.damping === void 0 && config.stiffness === void 0 && config.mass === void 0;\n return {\n type: isTimingBased ? \"tween\" : \"spring\",\n ...config\n };\n}\nfunction convertMsToS(config) {\n if (!config) return;\n if (typeof config.delay === \"number\") config.delay = config.delay / 1e3;\n if (typeof config.duration === \"number\") {\n var isTimingBased = config.type === \"tween\" || config.type === void 0 && config.damping === void 0 && config.stiffness === void 0 && config.mass === void 0;\n if (isTimingBased) {\n config.duration = config.duration / 1e3;\n }\n }\n}\nfunction removeRemovedStyles(prev, next, node, dontClearIfIn) {\n for (var key in prev) {\n if (!(key in next)) {\n if (dontClearIfIn && key in dontClearIfIn) {\n continue;\n }\n node.style[key] = \"\";\n }\n }\n}\nvar disableAnimationProps = /* @__PURE__ */ new Set([\n ...Object.keys(import_web.nonAnimatableStyleProps),\n \"flexBasis\"\n]);\nfunction motionPropsEqual(a, b) {\n for (var key in a) {\n if (!(key in b)) return false;\n }\n for (var key1 in b) {\n if (key1 === \"children\") continue;\n var av = a[key1];\n var bv = b[key1];\n if (typeof bv === \"function\" && typeof av === \"function\") continue;\n if (!Object.is(av, bv)) return false;\n }\n return true;\n}\nfunction motionStylesEqual(a, b) {\n if (a.length !== b.length) return false;\n for (var i = 0; i < a.length; i++) {\n var sa = a[i];\n var sb = b[i];\n if (sa === sb) continue;\n if (!sa || !sb) return false;\n var aCount = 0;\n for (var key in sa) {\n aCount++;\n if (!Object.is(sa[key], sb[key])) return false;\n }\n var bCount = 0;\n for (var _key in sb) {\n bCount++;\n }\n if (aCount !== bCount) return false;\n }\n return true;\n}\nvar MotionView = createMotionView(\"div\");\nvar MotionText = createMotionView(\"span\");\nvar transformAliases = {\n x: \"translateX\",\n y: \"translateY\",\n scale: \"scale\",\n scaleX: \"scaleX\",\n scaleY: \"scaleY\",\n rotate: \"rotate\",\n rotateX: \"rotateX\",\n rotateY: \"rotateY\",\n rotateZ: \"rotateZ\",\n skewX: \"skewX\",\n skewY: \"skewY\"\n};\nfunction compileAnimatedStyle(initialSource, initialResolved) {\n var shorthands = (0, import_web.getConfig)().shorthands;\n var entries = Object.keys(initialSource).map(function(source) {\n var _shorthands_source, _shorthands_source1, _shorthands_source2;\n return {\n source,\n target: (_shorthands_source = shorthands === null || shorthands === void 0 ? void 0 : shorthands[source]) !== null && _shorthands_source !== void 0 ? _shorthands_source : source,\n tokenValue: typeof initialSource[source] === \"string\" && initialResolved[(_shorthands_source1 = shorthands === null || shorthands === void 0 ? void 0 : shorthands[source]) !== null && _shorthands_source1 !== void 0 ? _shorthands_source1 : source] !== initialSource[source] ? initialResolved[(_shorthands_source2 = shorthands === null || shorthands === void 0 ? void 0 : shorthands[source]) !== null && _shorthands_source2 !== void 0 ? _shorthands_source2 : source] : void 0\n };\n });\n return function(sourceStyle) {\n var resolved = {};\n var transforms = [];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = entries[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var entry = _step.value;\n var value = sourceStyle[entry.source];\n if (value === void 0) continue;\n if (entry.source === \"transform\" && Array.isArray(value)) {\n resolved.transform = (0, import_internal_runtime.transformsToString)(value);\n } else if (entry.source in transformAliases) {\n transforms.push({\n [transformAliases[entry.source]]: value\n });\n } else {\n var _entry_tokenValue;\n resolved[entry.target] = (_entry_tokenValue = entry.tokenValue) !== null && _entry_tokenValue !== void 0 ? _entry_tokenValue : (0, import_internal_runtime.normalizeValueWithProperty)(value, entry.target);\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n if (transforms.length) resolved.transform = (0, import_internal_runtime.transformsToString)(transforms);\n return resolved;\n };\n}\nfunction createMotionView(defaultTag) {\n var isText = defaultTag === \"span\";\n var Component = (0, import_web.createRefComponent)(function(propsIn, ref) {\n var _hooks_usePropsTransform;\n var { forwardedRef, animation, render = defaultTag, style, ...propsRest } = propsIn;\n var [scope, animate] = useAnimateSSRSafe();\n var hostRef = (0, import_react2.useRef)(null);\n var seededNode = (0, import_react2.useRef)(null);\n var seededInCurrentFrame = (0, import_react2.useRef)(false);\n var queuedAnimationFrames = (0, import_react2.useRef)(/* @__PURE__ */ new WeakMap());\n var composedRefs = (0, import_web.useComposedRefs)(forwardedRef, ref, hostRef, scope);\n var stateRef = (0, import_react2.useRef)(null);\n if (!stateRef.current) {\n stateRef.current = {\n get host() {\n return hostRef.current;\n }\n };\n }\n var [_, state] = (0, import_internal_runtime.useThemeWithState)({});\n var styles = Array.isArray(style) ? style : [\n style\n ];\n var [animatedStyle, nonAnimatedStyles] = (function() {\n var animatedStyle2;\n var nonAnimatedStyles2 = [];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = styles[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var style2 = _step.value;\n if (style2.getStyle) {\n animatedStyle2 = style2;\n } else {\n nonAnimatedStyles2.push(style2);\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n return [\n animatedStyle2,\n nonAnimatedStyles2\n ];\n })();\n function getProps(props2) {\n if (process.env.NODE_ENV === \"development\" && propsIn.debug === \"profile\" && typeof performance !== \"undefined\") {\n performance.mark(\"tamagui-motion-style-split\");\n }\n var out = (0, import_web.getSplitStyles)(props2, isText ? import_web.Text.staticConfig : import_web.View.staticConfig, state === null || state === void 0 ? void 0 : state.theme, state === null || state === void 0 ? void 0 : state.name, {\n unmounted: false\n }, {\n isAnimated: false,\n noClass: true,\n resolveValues: \"auto\"\n });\n if (!out) {\n return {};\n }\n if (out.viewProps.style) {\n (0, import_internal_runtime.fixStyles)(out.viewProps.style);\n (0, import_internal_runtime.styleToCSS)(out.viewProps.style);\n }\n return out.viewProps;\n }\n var resolvedAnimatedStyle = (0, import_react2.useMemo)(function() {\n if (!animatedStyle) return null;\n var currentValues = animatedStyle.motionValues ? animatedStyle.motionValues.map(function(value) {\n return value.get();\n }) : animatedStyle.motionValue ? [\n animatedStyle.motionValue.get()\n ] : [];\n var initialSource = animatedStyle.getStyle(...currentValues);\n var initialResolved = asStyleRecord(getProps({\n style: initialSource\n }).style);\n return {\n initial: initialResolved,\n resolve: compileAnimatedStyle(initialSource, initialResolved)\n };\n }, [\n animatedStyle,\n state === null || state === void 0 ? void 0 : state.theme,\n state === null || state === void 0 ? void 0 : state.name\n ]);\n var memoRef = (0, import_react2.useRef)(null);\n var props;\n var cached = memoRef.current;\n if (cached && cached.theme === (state === null || state === void 0 ? void 0 : state.theme) && cached.themeName === (state === null || state === void 0 ? void 0 : state.name) && motionStylesEqual(cached.styles, nonAnimatedStyles) && motionPropsEqual(cached.propsRest, propsRest)) {\n props = {\n ...cached.result\n };\n for (var key in propsRest) {\n var val = propsRest[key];\n if (key === \"children\" || typeof val === \"function\") {\n props[key] = val;\n }\n }\n } else {\n props = getProps({\n ...propsRest,\n style: nonAnimatedStyles\n });\n memoRef.current = {\n propsRest,\n styles: nonAnimatedStyles,\n theme: state === null || state === void 0 ? void 0 : state.theme,\n themeName: state === null || state === void 0 ? void 0 : state.name,\n result: props\n };\n }\n if (resolvedAnimatedStyle) {\n props = {\n ...props,\n style: {\n ...asStyleRecord(props.style),\n ...resolvedAnimatedStyle.initial\n }\n };\n }\n var Element = render || \"div\";\n var transformedProps = (_hooks_usePropsTransform = import_web.hooks.usePropsTransform) === null || _hooks_usePropsTransform === void 0 ? void 0 : _hooks_usePropsTransform.call(import_web.hooks, render, props, stateRef, false);\n (0, import_web.useIsomorphicLayoutEffect)(function() {\n if (!animatedStyle) return;\n var node = hostRef.current;\n if (_instanceof(node, HTMLElement) && seededNode.current !== node) {\n var currentStyle = animatedStyle.motionValues ? animatedStyle.getStyle(...animatedStyle.motionValues.map(function(value) {\n return value.get();\n })) : animatedStyle.motionValue ? animatedStyle.getStyle(animatedStyle.motionValue.get()) : null;\n var webStyle = currentStyle && (resolvedAnimatedStyle === null || resolvedAnimatedStyle === void 0 ? void 0 : resolvedAnimatedStyle.resolve(currentStyle));\n if (webStyle) {\n assignInlineStyles(node, webStyle);\n seededNode.current = node;\n seededInCurrentFrame.current = true;\n requestAnimationFrame(function() {\n if (seededNode.current === node) seededInCurrentFrame.current = false;\n });\n }\n }\n var toTransition = function(animationConfig) {\n return (animationConfig === null || animationConfig === void 0 ? void 0 : animationConfig.type) === \"timing\" ? {\n type: \"tween\",\n duration: (animationConfig.duration || 0) / 1e3\n } : (animationConfig === null || animationConfig === void 0 ? void 0 : animationConfig.type) === \"direct\" ? {\n type: \"tween\",\n duration: 0\n } : {\n type: \"spring\",\n ...animationConfig\n };\n };\n var animateNodeTo = function(nextStyle, transition, motionValue3) {\n if (!_instanceof(node, HTMLElement) || hostRef.current !== node) return;\n var webStyle2 = resolvedAnimatedStyle === null || resolvedAnimatedStyle === void 0 ? void 0 : resolvedAnimatedStyle.resolve(nextStyle);\n if (!webStyle2) return;\n settlePendingMotionOnFinish(motionValue3, animate(node, webStyle2, transition));\n };\n var animateChangedValue = function(nextStyle, transition, motionValue3) {\n if (seededInCurrentFrame.current && seededNode.current === node) {\n var queuedFrame = queuedAnimationFrames.current.get(motionValue3);\n if (queuedFrame !== void 0) cancelAnimationFrame(queuedFrame);\n var frame = requestAnimationFrame(function() {\n if (queuedAnimationFrames.current.get(motionValue3) !== frame) return;\n queuedAnimationFrames.current.delete(motionValue3);\n if (hostRef.current === node) {\n animateNodeTo(nextStyle, transition, motionValue3);\n } else {\n var onFinish = PendingMotionOnFinish.get(motionValue3);\n PendingMotionOnFinish.delete(motionValue3);\n onFinish === null || onFinish === void 0 ? void 0 : onFinish();\n }\n });\n queuedAnimationFrames.current.set(motionValue3, frame);\n return;\n }\n animateNodeTo(nextStyle, transition, motionValue3);\n };\n if (animatedStyle.motionValues) {\n var mvs = animatedStyle.motionValues;\n var styleForAll = function() {\n return animatedStyle.getStyle(...mvs.map(function(value) {\n return value.get();\n }));\n };\n var unsubs = mvs.map(function(mv) {\n return mv.on(\"change\", function() {\n return animateChangedValue(styleForAll(), toTransition(MotionValueStrategy.get(mv)), mv);\n });\n });\n return function() {\n return unsubs.forEach(function(fn) {\n return fn();\n });\n };\n }\n var motionValue2 = animatedStyle.motionValue;\n if (!motionValue2) return;\n return motionValue2.on(\"change\", function(value) {\n return animateChangedValue(animatedStyle.getStyle(value), toTransition(MotionValueStrategy.get(motionValue2)), motionValue2);\n });\n }, [\n animatedStyle,\n resolvedAnimatedStyle\n ]);\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Element, {\n ...transformedProps,\n ref: composedRefs\n });\n });\n Component[\"acceptRenderProp\"] = true;\n return Component;\n}\nfunction getDiff(previous, next) {\n if (!previous) {\n return next;\n }\n var diff = null;\n for (var key in next) {\n if (next[key] !== previous[key]) {\n diff || (diff = {});\n diff[key] = next[key];\n }\n }\n return diff;\n}\nfunction fixTransparentColors(diff, previous, next) {\n var result = diff;\n for (var key in diff) {\n if (diff[key] === \"transparent\") {\n var fixed = \"rgba(0, 0, 0, 0)\";\n var candidates = [\n previous === null || previous === void 0 ? void 0 : previous[key],\n next === null || next === void 0 ? void 0 : next[key]\n ];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = candidates[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var candidate = _step.value;\n if (typeof candidate === \"string\" && candidate !== \"transparent\") {\n var rgbaMatch = candidate.match(/^rgba?\\(([^,]+),\\s*([^,]+),\\s*([^,)]+)/);\n if (rgbaMatch) {\n fixed = `rgba(${rgbaMatch[1]}, ${rgbaMatch[2]}, ${rgbaMatch[3]}, 0)`;\n break;\n }\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n if (result === diff) {\n result = {\n ...diff\n };\n }\n result[key] = fixed;\n }\n }\n return result;\n}\n//# sourceMappingURL=createAnimations.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,i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