@windrun-huaiin/third-ui 14.2.0 → 14.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (550) hide show
  1. package/dist/fuma/mdx/index.d.ts +1 -0
  2. package/dist/fuma/mdx/index.js +2 -0
  3. package/dist/fuma/mdx/index.mjs +1 -0
  4. package/dist/fuma/mdx/suno-embed.d.ts +7 -0
  5. package/dist/fuma/mdx/suno-embed.js +120 -0
  6. package/dist/fuma/mdx/suno-embed.mjs +118 -0
  7. package/dist/main/delayed-img.js +2 -1
  8. package/dist/main/delayed-img.mjs +3 -2
  9. package/dist/main/index.d.ts +1 -0
  10. package/dist/main/index.js +3 -0
  11. package/dist/main/index.mjs +1 -0
  12. package/dist/main/snake-loading-frame.d.ts +23 -0
  13. package/dist/main/snake-loading-frame.js +344 -0
  14. package/dist/main/snake-loading-frame.mjs +341 -0
  15. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +47 -0
  16. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs +45 -0
  17. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +8 -0
  18. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs +6 -0
  19. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/LazyContext.js +8 -0
  20. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/LazyContext.mjs +6 -0
  21. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +15 -0
  22. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs +13 -0
  23. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/MotionContext/create.js +16 -0
  24. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/MotionContext/create.mjs +14 -0
  25. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/MotionContext/index.js +8 -0
  26. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/MotionContext/index.mjs +6 -0
  27. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +19 -0
  28. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs +17 -0
  29. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/PresenceContext.js +12 -0
  30. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/PresenceContext.mjs +10 -0
  31. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +11 -0
  32. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs +9 -0
  33. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/events/add-pointer-event.js +10 -0
  34. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/events/add-pointer-event.mjs +8 -0
  35. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/events/event-info.js +16 -0
  36. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/events/event-info.mjs +13 -0
  37. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +576 -0
  38. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs +573 -0
  39. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/drag/index.js +52 -0
  40. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/drag/index.mjs +50 -0
  41. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +141 -0
  42. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs +129 -0
  43. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/focus.js +43 -0
  44. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/focus.mjs +41 -0
  45. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/hover.js +32 -0
  46. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/hover.mjs +30 -0
  47. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +282 -0
  48. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs +280 -0
  49. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/pan/index.js +52 -0
  50. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/pan/index.mjs +50 -0
  51. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/press.js +39 -0
  52. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/gestures/press.mjs +37 -0
  53. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +69 -0
  54. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs +67 -0
  55. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/animation/index.js +42 -0
  56. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/animation/index.mjs +40 -0
  57. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/animations.js +15 -0
  58. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/animations.mjs +13 -0
  59. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/definitions.js +51 -0
  60. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/definitions.mjs +48 -0
  61. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/drag.js +19 -0
  62. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/drag.mjs +17 -0
  63. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/gestures.js +23 -0
  64. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/gestures.mjs +21 -0
  65. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +139 -0
  66. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs +137 -0
  67. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/layout.js +13 -0
  68. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/layout.mjs +11 -0
  69. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/load-features.js +17 -0
  70. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/load-features.mjs +15 -0
  71. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +78 -0
  72. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs +76 -0
  73. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +51 -0
  74. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs +49 -0
  75. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/index.js +114 -0
  76. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/index.mjs +112 -0
  77. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/utils/symbol.js +5 -0
  78. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/utils/symbol.mjs +3 -0
  79. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +53 -0
  80. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs +51 -0
  81. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +167 -0
  82. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs +165 -0
  83. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +82 -0
  84. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs +80 -0
  85. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +60 -0
  86. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs +58 -0
  87. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/components/create-proxy.js +47 -0
  88. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/components/create-proxy.mjs +45 -0
  89. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +15 -0
  90. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.mjs +13 -0
  91. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +9 -0
  92. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs +7 -0
  93. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +20 -0
  94. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs +18 -0
  95. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/dom/use-render.js +29 -0
  96. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/dom/use-render.mjs +27 -0
  97. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +69 -0
  98. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs +66 -0
  99. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +32 -0
  100. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs +30 -0
  101. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +13 -0
  102. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.mjs +11 -0
  103. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/html/use-props.js +61 -0
  104. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/html/use-props.mjs +58 -0
  105. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +10 -0
  106. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs +8 -0
  107. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +35 -0
  108. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs +33 -0
  109. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/svg/use-props.js +27 -0
  110. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/svg/use-props.mjs +25 -0
  111. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +13 -0
  112. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.mjs +11 -0
  113. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +10 -0
  114. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs +8 -0
  115. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/distance.js +12 -0
  116. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/distance.mjs +9 -0
  117. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/get-context-window.js +8 -0
  118. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/get-context-window.mjs +6 -0
  119. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/is-browser.js +5 -0
  120. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/is-browser.mjs +3 -0
  121. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/is-ref-object.js +9 -0
  122. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/is-ref-object.mjs +7 -0
  123. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/use-animation-frame.js +24 -0
  124. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/use-animation-frame.mjs +22 -0
  125. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/use-constant.js +21 -0
  126. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/use-constant.mjs +19 -0
  127. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +9 -0
  128. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs +7 -0
  129. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/value/use-combine-values.js +40 -0
  130. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/value/use-combine-values.mjs +38 -0
  131. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/value/use-computed.js +22 -0
  132. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/value/use-computed.mjs +20 -0
  133. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/value/use-motion-value.js +41 -0
  134. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/value/use-motion-value.mjs +39 -0
  135. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/value/use-transform.js +50 -0
  136. package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/value/use-transform.mjs +48 -0
  137. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +201 -0
  138. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs +199 -0
  139. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/JSAnimation.js +387 -0
  140. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/JSAnimation.mjs +385 -0
  141. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +182 -0
  142. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs +180 -0
  143. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +89 -0
  144. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs +87 -0
  145. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/animate/single-value.js +13 -0
  146. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/animate/single-value.mjs +11 -0
  147. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/drivers/frame.js +19 -0
  148. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/drivers/frame.mjs +17 -0
  149. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/inertia.js +89 -0
  150. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/inertia.mjs +87 -0
  151. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +54 -0
  152. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs +51 -0
  153. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/spring.js +332 -0
  154. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/spring.mjs +330 -0
  155. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +20 -0
  156. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs +17 -0
  157. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +21 -0
  158. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs +19 -0
  159. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +7 -0
  160. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs +5 -0
  161. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +11 -0
  162. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs +9 -0
  163. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +106 -0
  164. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs +104 -0
  165. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +101 -0
  166. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs +99 -0
  167. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +61 -0
  168. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs +59 -0
  169. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +28 -0
  170. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs +26 -0
  171. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +143 -0
  172. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs +141 -0
  173. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +150 -0
  174. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs +147 -0
  175. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +13 -0
  176. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs +11 -0
  177. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +11 -0
  178. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs +9 -0
  179. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +14 -0
  180. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs +12 -0
  181. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +7 -0
  182. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs +5 -0
  183. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +9 -0
  184. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs +7 -0
  185. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +17 -0
  186. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs +15 -0
  187. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +32 -0
  188. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs +30 -0
  189. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +50 -0
  190. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs +46 -0
  191. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +9 -0
  192. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.mjs +6 -0
  193. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +9 -0
  194. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs +7 -0
  195. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +28 -0
  196. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs +26 -0
  197. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +17 -0
  198. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs +15 -0
  199. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +45 -0
  200. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs +43 -0
  201. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +45 -0
  202. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs +42 -0
  203. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +42 -0
  204. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs +40 -0
  205. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +15 -0
  206. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs +13 -0
  207. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +32 -0
  208. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/is-animatable.mjs +30 -0
  209. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +30 -0
  210. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.mjs +26 -0
  211. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +28 -0
  212. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.mjs +26 -0
  213. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +8 -0
  214. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs +6 -0
  215. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +20 -0
  216. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs +18 -0
  217. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +16 -0
  218. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs +14 -0
  219. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +5 -0
  220. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs +3 -0
  221. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +30 -0
  222. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs +28 -0
  223. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +17 -0
  224. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.mjs +15 -0
  225. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +31 -0
  226. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs +29 -0
  227. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +54 -0
  228. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs +52 -0
  229. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +16 -0
  230. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs +14 -0
  231. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +17 -0
  232. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs +15 -0
  233. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +14 -0
  234. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.mjs +12 -0
  235. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +14 -0
  236. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.mjs +12 -0
  237. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +22 -0
  238. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.mjs +20 -0
  239. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/events/add-dom-event.js +8 -0
  240. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/events/add-dom-event.mjs +6 -0
  241. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/batcher.js +74 -0
  242. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/batcher.mjs +72 -0
  243. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/frame.js +11 -0
  244. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/frame.mjs +6 -0
  245. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/microtask.js +8 -0
  246. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/microtask.mjs +6 -0
  247. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/order.js +14 -0
  248. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/order.mjs +12 -0
  249. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/render-step.js +85 -0
  250. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/render-step.mjs +83 -0
  251. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/sync-time.js +33 -0
  252. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/sync-time.mjs +31 -0
  253. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +12 -0
  254. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.mjs +9 -0
  255. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +30 -0
  256. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs +28 -0
  257. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/hover.js +71 -0
  258. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/hover.mjs +69 -0
  259. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/press/index.js +91 -0
  260. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/press/index.mjs +89 -0
  261. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +36 -0
  262. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs +33 -0
  263. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +40 -0
  264. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs +38 -0
  265. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +5 -0
  266. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs +3 -0
  267. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +22 -0
  268. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs +20 -0
  269. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +20 -0
  270. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs +18 -0
  271. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/utils/setup.js +17 -0
  272. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/utils/setup.mjs +15 -0
  273. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +75 -0
  274. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs +73 -0
  275. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +37 -0
  276. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs +33 -0
  277. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/copy.js +35 -0
  278. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/copy.mjs +31 -0
  279. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +133 -0
  280. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs +124 -0
  281. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +67 -0
  282. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs +58 -0
  283. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +59 -0
  284. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs +54 -0
  285. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/models.js +22 -0
  286. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/models.mjs +17 -0
  287. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/utils.js +39 -0
  288. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/utils.mjs +31 -0
  289. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +15 -0
  290. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs +13 -0
  291. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +30 -0
  292. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.mjs +27 -0
  293. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +1644 -0
  294. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/node/create-projection-node.mjs +1637 -0
  295. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/node/state.js +21 -0
  296. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/node/state.mjs +19 -0
  297. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/shared/stack.js +86 -0
  298. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/shared/stack.mjs +84 -0
  299. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +44 -0
  300. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs +41 -0
  301. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +37 -0
  302. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.mjs +35 -0
  303. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +23 -0
  304. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/styles/scale-correction.mjs +21 -0
  305. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/styles/transform.js +51 -0
  306. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/styles/transform.mjs +49 -0
  307. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +5 -0
  308. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs +3 -0
  309. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +7 -0
  310. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs +5 -0
  311. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +26 -0
  312. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/utils/flat-tree.mjs +24 -0
  313. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +30 -0
  314. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs +26 -0
  315. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/utils/measure.js +20 -0
  316. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/utils/measure.mjs +17 -0
  317. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/Feature.js +16 -0
  318. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/Feature.mjs +14 -0
  319. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/VisualElement.js +567 -0
  320. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/VisualElement.mjs +563 -0
  321. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +44 -0
  322. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.mjs +42 -0
  323. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +5 -0
  324. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/dom/is-css-var.mjs +3 -0
  325. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +87 -0
  326. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs +83 -0
  327. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/dom/style-set.js +11 -0
  328. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/dom/style-set.mjs +9 -0
  329. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +7 -0
  330. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs +5 -0
  331. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +47 -0
  332. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs +44 -0
  333. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +67 -0
  334. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs +65 -0
  335. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +65 -0
  336. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/html/utils/build-transform.mjs +63 -0
  337. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/html/utils/render.js +19 -0
  338. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/html/utils/render.mjs +17 -0
  339. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +23 -0
  340. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs +21 -0
  341. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/store.js +5 -0
  342. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/store.mjs +3 -0
  343. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +47 -0
  344. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs +45 -0
  345. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +74 -0
  346. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs +72 -0
  347. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +32 -0
  348. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.mjs +30 -0
  349. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +5 -0
  350. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.mjs +3 -0
  351. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/path.js +33 -0
  352. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/path.mjs +31 -0
  353. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/render.js +14 -0
  354. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/render.mjs +12 -0
  355. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +21 -0
  356. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs +19 -0
  357. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/animation-state.js +388 -0
  358. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/animation-state.mjs +385 -0
  359. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +34 -0
  360. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/get-variant-context.mjs +32 -0
  361. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +9 -0
  362. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs +7 -0
  363. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +16 -0
  364. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs +13 -0
  365. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +14 -0
  366. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs +11 -0
  367. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +7 -0
  368. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.mjs +5 -0
  369. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +10 -0
  370. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs +8 -0
  371. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/keys-position.js +15 -0
  372. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/keys-position.mjs +13 -0
  373. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +31 -0
  374. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs +28 -0
  375. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/motion-values.js +57 -0
  376. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/motion-values.mjs +55 -0
  377. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +23 -0
  378. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.mjs +19 -0
  379. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +8 -0
  380. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs +5 -0
  381. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +10 -0
  382. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs +8 -0
  383. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +38 -0
  384. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs +36 -0
  385. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/setters.js +33 -0
  386. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/setters.mjs +31 -0
  387. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +16 -0
  388. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs +14 -0
  389. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/variant-props.js +15 -0
  390. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/variant-props.mjs +12 -0
  391. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/resize/handle-element.js +65 -0
  392. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/resize/handle-element.mjs +63 -0
  393. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/resize/handle-window.js +33 -0
  394. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/resize/handle-window.mjs +31 -0
  395. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/resize/index.js +10 -0
  396. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/resize/index.mjs +8 -0
  397. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/delay.js +22 -0
  398. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/delay.mjs +20 -0
  399. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/interpolate.js +81 -0
  400. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/interpolate.mjs +79 -0
  401. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/is-html-element.js +15 -0
  402. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/is-html-element.mjs +13 -0
  403. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/is-svg-element.js +13 -0
  404. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/is-svg-element.mjs +11 -0
  405. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +13 -0
  406. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs +11 -0
  407. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/color.js +50 -0
  408. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/color.mjs +47 -0
  409. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/complex.js +98 -0
  410. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/complex.mjs +93 -0
  411. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/immediate.js +7 -0
  412. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/immediate.mjs +5 -0
  413. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/index.js +16 -0
  414. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/index.mjs +14 -0
  415. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/number.js +28 -0
  416. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/number.mjs +26 -0
  417. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/visibility.js +19 -0
  418. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/visibility.mjs +16 -0
  419. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/resolve-elements.js +19 -0
  420. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/resolve-elements.mjs +17 -0
  421. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/supports/flags.js +9 -0
  422. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/supports/flags.mjs +7 -0
  423. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +17 -0
  424. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/supports/linear-easing.mjs +15 -0
  425. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/supports/memo.js +11 -0
  426. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/supports/memo.mjs +9 -0
  427. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +7 -0
  428. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs +5 -0
  429. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/transform.js +16 -0
  430. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/transform.mjs +14 -0
  431. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/index.js +322 -0
  432. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/index.mjs +319 -0
  433. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/auto.js +11 -0
  434. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/auto.mjs +9 -0
  435. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/color/hex.js +42 -0
  436. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/color/hex.mjs +40 -0
  437. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +44 -0
  438. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs +42 -0
  439. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/color/hsla.js +24 -0
  440. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/color/hsla.mjs +22 -0
  441. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/color/index.js +34 -0
  442. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/color/index.mjs +32 -0
  443. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/color/rgba.js +28 -0
  444. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/color/rgba.mjs +25 -0
  445. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/color/utils.js +32 -0
  446. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/color/utils.mjs +29 -0
  447. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/complex/filter.js +32 -0
  448. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/complex/filter.mjs +30 -0
  449. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/complex/index.js +116 -0
  450. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/complex/index.mjs +113 -0
  451. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/complex/mask.js +14 -0
  452. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/complex/mask.mjs +12 -0
  453. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/dimensions.js +18 -0
  454. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/dimensions.mjs +15 -0
  455. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/int.js +10 -0
  456. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/int.mjs +8 -0
  457. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +36 -0
  458. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/maps/defaults.mjs +33 -0
  459. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/maps/number.js +72 -0
  460. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/maps/number.mjs +70 -0
  461. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/maps/transform.js +33 -0
  462. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/maps/transform.mjs +31 -0
  463. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/numbers/index.js +21 -0
  464. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/numbers/index.mjs +17 -0
  465. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/numbers/units.js +25 -0
  466. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/numbers/units.mjs +18 -0
  467. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/test.js +8 -0
  468. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/test.mjs +6 -0
  469. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +19 -0
  470. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.mjs +17 -0
  471. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +5 -0
  472. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/color-regex.mjs +3 -0
  473. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/find.js +17 -0
  474. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/find.mjs +15 -0
  475. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +5 -0
  476. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/float-regex.mjs +3 -0
  477. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +12 -0
  478. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs +10 -0
  479. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +7 -0
  480. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs +5 -0
  481. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +7 -0
  482. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/sanitize.mjs +5 -0
  483. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +5 -0
  484. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs +3 -0
  485. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +5 -0
  486. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs +3 -0
  487. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +12 -0
  488. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs +10 -0
  489. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +22 -0
  490. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs +20 -0
  491. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/will-change/is.js +9 -0
  492. package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/will-change/is.mjs +7 -0
  493. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/array.js +14 -0
  494. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/array.mjs +11 -0
  495. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/clamp.js +11 -0
  496. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/clamp.mjs +9 -0
  497. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/anticipate.js +11 -0
  498. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/anticipate.mjs +9 -0
  499. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/back.js +13 -0
  500. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/back.mjs +9 -0
  501. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/circ.js +12 -0
  502. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/circ.mjs +8 -0
  503. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +53 -0
  504. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/cubic-bezier.mjs +51 -0
  505. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/ease.js +11 -0
  506. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/ease.mjs +7 -0
  507. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +7 -0
  508. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs +5 -0
  509. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +7 -0
  510. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/modifiers/reverse.mjs +5 -0
  511. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +5 -0
  512. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.mjs +3 -0
  513. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +7 -0
  514. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.mjs +5 -0
  515. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/utils/map.js +43 -0
  516. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/utils/map.mjs +41 -0
  517. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/errors.js +19 -0
  518. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/errors.mjs +19 -0
  519. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/format-error-message.js +9 -0
  520. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/format-error-message.mjs +7 -0
  521. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/global-config.js +5 -0
  522. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/global-config.mjs +3 -0
  523. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/is-numerical-string.js +8 -0
  524. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/is-numerical-string.mjs +6 -0
  525. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/is-object.js +7 -0
  526. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/is-object.mjs +5 -0
  527. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/is-zero-value-string.js +8 -0
  528. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/is-zero-value-string.mjs +6 -0
  529. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/memo.js +13 -0
  530. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/memo.mjs +11 -0
  531. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/noop.js +6 -0
  532. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/noop.mjs +4 -0
  533. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/pipe.js +13 -0
  534. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/pipe.mjs +11 -0
  535. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/progress.js +21 -0
  536. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/progress.mjs +19 -0
  537. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/subscription-manager.js +42 -0
  538. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/subscription-manager.mjs +40 -0
  539. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/time-conversion.js +15 -0
  540. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/time-conversion.mjs +12 -0
  541. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/velocity-per-second.js +13 -0
  542. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/velocity-per-second.mjs +11 -0
  543. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/warn-once.js +13 -0
  544. package/dist/node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/warn-once.mjs +11 -0
  545. package/package.json +2 -1
  546. package/src/fuma/mdx/index.ts +2 -1
  547. package/src/fuma/mdx/suno-embed.tsx +213 -0
  548. package/src/main/delayed-img.tsx +12 -10
  549. package/src/main/index.ts +2 -1
  550. package/src/main/snake-loading-frame.tsx +709 -0
@@ -0,0 +1,1644 @@
1
+ 'use strict';
2
+
3
+ var singleValue = require('../../animation/animate/single-value.js');
4
+ var getAppearId = require('../../animation/optimized-appear/get-appear-id.js');
5
+ var getValueTransition = require('../../animation/utils/get-value-transition.js');
6
+ var microtask = require('../../frameloop/microtask.js');
7
+ var syncTime = require('../../frameloop/sync-time.js');
8
+ var scaleCorrection = require('../styles/scale-correction.js');
9
+ var delay = require('../../utils/delay.js');
10
+ var isSvgElement = require('../../utils/is-svg-element.js');
11
+ var isSvgSvgElement = require('../../utils/is-svg-svg-element.js');
12
+ var number = require('../../utils/mix/number.js');
13
+ var index = require('../../value/index.js');
14
+ var resolveMotionValue = require('../../value/utils/resolve-motion-value.js');
15
+ var mixValues = require('../animation/mix-values.js');
16
+ var copy = require('../geometry/copy.js');
17
+ var deltaApply = require('../geometry/delta-apply.js');
18
+ var deltaCalc = require('../geometry/delta-calc.js');
19
+ var deltaRemove = require('../geometry/delta-remove.js');
20
+ var models = require('../geometry/models.js');
21
+ var utils = require('../geometry/utils.js');
22
+ var stack = require('../shared/stack.js');
23
+ var transform = require('../styles/transform.js');
24
+ var eachAxis = require('../utils/each-axis.js');
25
+ var flatTree = require('../utils/flat-tree.js');
26
+ var hasTransform = require('../utils/has-transform.js');
27
+ var state = require('./state.js');
28
+ var frame = require('../../frameloop/frame.js');
29
+ var subscriptionManager = require('../../../../../../../motion-utils@12.36.0/node_modules/motion-utils/dist/es/subscription-manager.js');
30
+ var clamp = require('../../../../../../../motion-utils@12.36.0/node_modules/motion-utils/dist/es/clamp.js');
31
+ var noop = require('../../../../../../../motion-utils@12.36.0/node_modules/motion-utils/dist/es/noop.js');
32
+
33
+ const transformAxes = ["", "X", "Y", "Z"];
34
+ /**
35
+ * We use 1000 as the animation target as 0-1000 maps better to pixels than 0-1
36
+ * which has a noticeable difference in spring animations
37
+ */
38
+ const animationTarget = 1000;
39
+ let id = 0;
40
+ function resetDistortingTransform(key, visualElement, values, sharedAnimationValues) {
41
+ const { latestValues } = visualElement;
42
+ // Record the distorting transform and then temporarily set it to 0
43
+ if (latestValues[key]) {
44
+ values[key] = latestValues[key];
45
+ visualElement.setStaticValue(key, 0);
46
+ if (sharedAnimationValues) {
47
+ sharedAnimationValues[key] = 0;
48
+ }
49
+ }
50
+ }
51
+ function cancelTreeOptimisedTransformAnimations(projectionNode) {
52
+ projectionNode.hasCheckedOptimisedAppear = true;
53
+ if (projectionNode.root === projectionNode)
54
+ return;
55
+ const { visualElement } = projectionNode.options;
56
+ if (!visualElement)
57
+ return;
58
+ const appearId = getAppearId.getOptimisedAppearId(visualElement);
59
+ if (window.MotionHasOptimisedAnimation(appearId, "transform")) {
60
+ const { layout, layoutId } = projectionNode.options;
61
+ window.MotionCancelOptimisedAnimation(appearId, "transform", frame.frame, !(layout || layoutId));
62
+ }
63
+ const { parent } = projectionNode;
64
+ if (parent && !parent.hasCheckedOptimisedAppear) {
65
+ cancelTreeOptimisedTransformAnimations(parent);
66
+ }
67
+ }
68
+ function createProjectionNode({ attachResizeListener, defaultParent, measureScroll, checkIsScrollRoot, resetTransform, }) {
69
+ return class ProjectionNode {
70
+ constructor(latestValues = {}, parent = defaultParent?.()) {
71
+ /**
72
+ * A unique ID generated for every projection node.
73
+ */
74
+ this.id = id++;
75
+ /**
76
+ * An id that represents a unique session instigated by startUpdate.
77
+ */
78
+ this.animationId = 0;
79
+ this.animationCommitId = 0;
80
+ /**
81
+ * A Set containing all this component's children. This is used to iterate
82
+ * through the children.
83
+ *
84
+ * TODO: This could be faster to iterate as a flat array stored on the root node.
85
+ */
86
+ this.children = new Set();
87
+ /**
88
+ * Options for the node. We use this to configure what kind of layout animations
89
+ * we should perform (if any).
90
+ */
91
+ this.options = {};
92
+ /**
93
+ * We use this to detect when its safe to shut down part of a projection tree.
94
+ * We have to keep projecting children for scale correction and relative projection
95
+ * until all their parents stop performing layout animations.
96
+ */
97
+ this.isTreeAnimating = false;
98
+ this.isAnimationBlocked = false;
99
+ /**
100
+ * Flag to true if we think this layout has been changed. We can't always know this,
101
+ * currently we set it to true every time a component renders, or if it has a layoutDependency
102
+ * if that has changed between renders. Additionally, components can be grouped by LayoutGroup
103
+ * and if one node is dirtied, they all are.
104
+ */
105
+ this.isLayoutDirty = false;
106
+ /**
107
+ * Flag to true if we think the projection calculations for this node needs
108
+ * recalculating as a result of an updated transform or layout animation.
109
+ */
110
+ this.isProjectionDirty = false;
111
+ /**
112
+ * Flag to true if the layout *or* transform has changed. This then gets propagated
113
+ * throughout the projection tree, forcing any element below to recalculate on the next frame.
114
+ */
115
+ this.isSharedProjectionDirty = false;
116
+ /**
117
+ * Flag transform dirty. This gets propagated throughout the whole tree but is only
118
+ * respected by shared nodes.
119
+ */
120
+ this.isTransformDirty = false;
121
+ /**
122
+ * Block layout updates for instant layout transitions throughout the tree.
123
+ */
124
+ this.updateManuallyBlocked = false;
125
+ this.updateBlockedByResize = false;
126
+ /**
127
+ * Set to true between the start of the first `willUpdate` call and the end of the `didUpdate`
128
+ * call.
129
+ */
130
+ this.isUpdating = false;
131
+ /**
132
+ * If this is an SVG element we currently disable projection transforms
133
+ */
134
+ this.isSVG = false;
135
+ /**
136
+ * Flag to true (during promotion) if a node doing an instant layout transition needs to reset
137
+ * its projection styles.
138
+ */
139
+ this.needsReset = false;
140
+ /**
141
+ * Flags whether this node should have its transform reset prior to measuring.
142
+ */
143
+ this.shouldResetTransform = false;
144
+ /**
145
+ * Store whether this node has been checked for optimised appear animations. As
146
+ * effects fire bottom-up, and we want to look up the tree for appear animations,
147
+ * this makes sure we only check each path once, stopping at nodes that
148
+ * have already been checked.
149
+ */
150
+ this.hasCheckedOptimisedAppear = false;
151
+ /**
152
+ * An object representing the calculated contextual/accumulated/tree scale.
153
+ * This will be used to scale calculcated projection transforms, as these are
154
+ * calculated in screen-space but need to be scaled for elements to layoutly
155
+ * make it to their calculated destinations.
156
+ *
157
+ * TODO: Lazy-init
158
+ */
159
+ this.treeScale = { x: 1, y: 1 };
160
+ /**
161
+ *
162
+ */
163
+ this.eventHandlers = new Map();
164
+ this.hasTreeAnimated = false;
165
+ this.layoutVersion = 0;
166
+ // Note: Currently only running on root node
167
+ this.updateScheduled = false;
168
+ this.scheduleUpdate = () => this.update();
169
+ this.projectionUpdateScheduled = false;
170
+ this.checkUpdateFailed = () => {
171
+ if (this.isUpdating) {
172
+ this.isUpdating = false;
173
+ this.clearAllSnapshots();
174
+ }
175
+ };
176
+ /**
177
+ * This is a multi-step process as shared nodes might be of different depths. Nodes
178
+ * are sorted by depth order, so we need to resolve the entire tree before moving to
179
+ * the next step.
180
+ */
181
+ this.updateProjection = () => {
182
+ this.projectionUpdateScheduled = false;
183
+ this.nodes.forEach(propagateDirtyNodes);
184
+ this.nodes.forEach(resolveTargetDelta);
185
+ this.nodes.forEach(calcProjection);
186
+ this.nodes.forEach(cleanDirtyNodes);
187
+ };
188
+ /**
189
+ * Frame calculations
190
+ */
191
+ this.resolvedRelativeTargetAt = 0.0;
192
+ this.linkedParentVersion = 0;
193
+ this.hasProjected = false;
194
+ this.isVisible = true;
195
+ this.animationProgress = 0;
196
+ /**
197
+ * Shared layout
198
+ */
199
+ // TODO Only running on root node
200
+ this.sharedNodes = new Map();
201
+ this.latestValues = latestValues;
202
+ this.root = parent ? parent.root || parent : this;
203
+ this.path = parent ? [...parent.path, parent] : [];
204
+ this.parent = parent;
205
+ this.depth = parent ? parent.depth + 1 : 0;
206
+ for (let i = 0; i < this.path.length; i++) {
207
+ this.path[i].shouldResetTransform = true;
208
+ }
209
+ if (this.root === this)
210
+ this.nodes = new flatTree.FlatTree();
211
+ }
212
+ addEventListener(name, handler) {
213
+ if (!this.eventHandlers.has(name)) {
214
+ this.eventHandlers.set(name, new subscriptionManager.SubscriptionManager());
215
+ }
216
+ return this.eventHandlers.get(name).add(handler);
217
+ }
218
+ notifyListeners(name, ...args) {
219
+ const subscriptionManager = this.eventHandlers.get(name);
220
+ subscriptionManager && subscriptionManager.notify(...args);
221
+ }
222
+ hasListeners(name) {
223
+ return this.eventHandlers.has(name);
224
+ }
225
+ /**
226
+ * Lifecycles
227
+ */
228
+ mount(instance) {
229
+ if (this.instance)
230
+ return;
231
+ this.isSVG = isSvgElement.isSVGElement(instance) && !isSvgSvgElement.isSVGSVGElement(instance);
232
+ this.instance = instance;
233
+ const { layoutId, layout, visualElement } = this.options;
234
+ if (visualElement && !visualElement.current) {
235
+ visualElement.mount(instance);
236
+ }
237
+ this.root.nodes.add(this);
238
+ this.parent && this.parent.children.add(this);
239
+ if (this.root.hasTreeAnimated && (layout || layoutId)) {
240
+ this.isLayoutDirty = true;
241
+ }
242
+ if (attachResizeListener) {
243
+ let cancelDelay;
244
+ let innerWidth = 0;
245
+ const resizeUnblockUpdate = () => (this.root.updateBlockedByResize = false);
246
+ // Set initial innerWidth in a frame.read callback to batch the read
247
+ frame.frame.read(() => {
248
+ innerWidth = window.innerWidth;
249
+ });
250
+ attachResizeListener(instance, () => {
251
+ const newInnerWidth = window.innerWidth;
252
+ if (newInnerWidth === innerWidth)
253
+ return;
254
+ innerWidth = newInnerWidth;
255
+ this.root.updateBlockedByResize = true;
256
+ cancelDelay && cancelDelay();
257
+ cancelDelay = delay.delay(resizeUnblockUpdate, 250);
258
+ if (state.globalProjectionState.hasAnimatedSinceResize) {
259
+ state.globalProjectionState.hasAnimatedSinceResize = false;
260
+ this.nodes.forEach(finishAnimation);
261
+ }
262
+ });
263
+ }
264
+ if (layoutId) {
265
+ this.root.registerSharedNode(layoutId, this);
266
+ }
267
+ // Only register the handler if it requires layout animation
268
+ if (this.options.animate !== false &&
269
+ visualElement &&
270
+ (layoutId || layout)) {
271
+ this.addEventListener("didUpdate", ({ delta, hasLayoutChanged, hasRelativeLayoutChanged, layout: newLayout, }) => {
272
+ if (this.isTreeAnimationBlocked()) {
273
+ this.target = undefined;
274
+ this.relativeTarget = undefined;
275
+ return;
276
+ }
277
+ // TODO: Check here if an animation exists
278
+ const layoutTransition = this.options.transition ||
279
+ visualElement.getDefaultTransition() ||
280
+ defaultLayoutTransition;
281
+ const { onLayoutAnimationStart, onLayoutAnimationComplete, } = visualElement.getProps();
282
+ /**
283
+ * The target layout of the element might stay the same,
284
+ * but its position relative to its parent has changed.
285
+ */
286
+ const hasTargetChanged = !this.targetLayout ||
287
+ !utils.boxEqualsRounded(this.targetLayout, newLayout);
288
+ /*
289
+ * Note: Disabled to fix relative animations always triggering new
290
+ * layout animations. If this causes further issues, we can try
291
+ * a different approach to detecting relative target changes.
292
+ */
293
+ // || hasRelativeLayoutChanged
294
+ /**
295
+ * If the layout hasn't seemed to have changed, it might be that the
296
+ * element is visually in the same place in the document but its position
297
+ * relative to its parent has indeed changed. So here we check for that.
298
+ */
299
+ const hasOnlyRelativeTargetChanged = !hasLayoutChanged && hasRelativeLayoutChanged;
300
+ if (this.options.layoutRoot ||
301
+ this.resumeFrom ||
302
+ hasOnlyRelativeTargetChanged ||
303
+ (hasLayoutChanged &&
304
+ (hasTargetChanged || !this.currentAnimation))) {
305
+ if (this.resumeFrom) {
306
+ this.resumingFrom = this.resumeFrom;
307
+ this.resumingFrom.resumingFrom = undefined;
308
+ }
309
+ const animationOptions = {
310
+ ...getValueTransition.getValueTransition(layoutTransition, "layout"),
311
+ onPlay: onLayoutAnimationStart,
312
+ onComplete: onLayoutAnimationComplete,
313
+ };
314
+ if (visualElement.shouldReduceMotion ||
315
+ this.options.layoutRoot) {
316
+ animationOptions.delay = 0;
317
+ animationOptions.type = false;
318
+ }
319
+ this.startAnimation(animationOptions);
320
+ /**
321
+ * Set animation origin after starting animation to avoid layout jump
322
+ * caused by stopping previous layout animation
323
+ */
324
+ this.setAnimationOrigin(delta, hasOnlyRelativeTargetChanged);
325
+ }
326
+ else {
327
+ /**
328
+ * If the layout hasn't changed and we have an animation that hasn't started yet,
329
+ * finish it immediately. Otherwise it will be animating from a location
330
+ * that was probably never committed to screen and look like a jumpy box.
331
+ */
332
+ if (!hasLayoutChanged) {
333
+ finishAnimation(this);
334
+ }
335
+ if (this.isLead() && this.options.onExitComplete) {
336
+ this.options.onExitComplete();
337
+ }
338
+ }
339
+ this.targetLayout = newLayout;
340
+ });
341
+ }
342
+ }
343
+ unmount() {
344
+ this.options.layoutId && this.willUpdate();
345
+ this.root.nodes.remove(this);
346
+ const stack = this.getStack();
347
+ stack && stack.remove(this);
348
+ this.parent && this.parent.children.delete(this);
349
+ this.instance = undefined;
350
+ this.eventHandlers.clear();
351
+ frame.cancelFrame(this.updateProjection);
352
+ }
353
+ // only on the root
354
+ blockUpdate() {
355
+ this.updateManuallyBlocked = true;
356
+ }
357
+ unblockUpdate() {
358
+ this.updateManuallyBlocked = false;
359
+ }
360
+ isUpdateBlocked() {
361
+ return this.updateManuallyBlocked || this.updateBlockedByResize;
362
+ }
363
+ isTreeAnimationBlocked() {
364
+ return (this.isAnimationBlocked ||
365
+ (this.parent && this.parent.isTreeAnimationBlocked()) ||
366
+ false);
367
+ }
368
+ // Note: currently only running on root node
369
+ startUpdate() {
370
+ if (this.isUpdateBlocked())
371
+ return;
372
+ this.isUpdating = true;
373
+ this.nodes && this.nodes.forEach(resetSkewAndRotation);
374
+ this.animationId++;
375
+ }
376
+ getTransformTemplate() {
377
+ const { visualElement } = this.options;
378
+ return visualElement && visualElement.getProps().transformTemplate;
379
+ }
380
+ willUpdate(shouldNotifyListeners = true) {
381
+ this.root.hasTreeAnimated = true;
382
+ if (this.root.isUpdateBlocked()) {
383
+ this.options.onExitComplete && this.options.onExitComplete();
384
+ return;
385
+ }
386
+ /**
387
+ * If we're running optimised appear animations then these must be
388
+ * cancelled before measuring the DOM. This is so we can measure
389
+ * the true layout of the element rather than the WAAPI animation
390
+ * which will be unaffected by the resetSkewAndRotate step.
391
+ *
392
+ * Note: This is a DOM write. Worst case scenario is this is sandwiched
393
+ * between other snapshot reads which will cause unnecessary style recalculations.
394
+ * This has to happen here though, as we don't yet know which nodes will need
395
+ * snapshots in startUpdate(), but we only want to cancel optimised animations
396
+ * if a layout animation measurement is actually going to be affected by them.
397
+ */
398
+ if (window.MotionCancelOptimisedAnimation &&
399
+ !this.hasCheckedOptimisedAppear) {
400
+ cancelTreeOptimisedTransformAnimations(this);
401
+ }
402
+ !this.root.isUpdating && this.root.startUpdate();
403
+ if (this.isLayoutDirty)
404
+ return;
405
+ this.isLayoutDirty = true;
406
+ for (let i = 0; i < this.path.length; i++) {
407
+ const node = this.path[i];
408
+ node.shouldResetTransform = true;
409
+ /**
410
+ * Percentage translates resolve against layoutBox dimensions,
411
+ * so ancestors with them must be re-measured after transform reset.
412
+ */
413
+ if (typeof node.latestValues.x === "string" ||
414
+ typeof node.latestValues.y === "string") {
415
+ node.isLayoutDirty = true;
416
+ }
417
+ node.updateScroll("snapshot");
418
+ if (node.options.layoutRoot) {
419
+ node.willUpdate(false);
420
+ }
421
+ }
422
+ const { layoutId, layout } = this.options;
423
+ if (layoutId === undefined && !layout)
424
+ return;
425
+ const transformTemplate = this.getTransformTemplate();
426
+ this.prevTransformTemplateValue = transformTemplate
427
+ ? transformTemplate(this.latestValues, "")
428
+ : undefined;
429
+ this.updateSnapshot();
430
+ shouldNotifyListeners && this.notifyListeners("willUpdate");
431
+ }
432
+ update() {
433
+ this.updateScheduled = false;
434
+ const updateWasBlocked = this.isUpdateBlocked();
435
+ // When doing an instant transition, we skip the layout update,
436
+ // but should still clean up the measurements so that the next
437
+ // snapshot could be taken correctly.
438
+ if (updateWasBlocked) {
439
+ const wasBlockedByResize = this.updateBlockedByResize;
440
+ this.unblockUpdate();
441
+ this.updateBlockedByResize = false;
442
+ this.clearAllSnapshots();
443
+ /**
444
+ * When blocked by resize, still measure layouts so
445
+ * callbacks like onLayoutMeasure fire (e.g. Reorder).
446
+ * Skip notifyLayoutUpdate to prevent animations.
447
+ */
448
+ if (wasBlockedByResize) {
449
+ this.nodes.forEach(forceLayoutMeasure);
450
+ }
451
+ this.nodes.forEach(clearMeasurements);
452
+ return;
453
+ }
454
+ /**
455
+ * If this is a repeat of didUpdate then ignore the animation.
456
+ */
457
+ if (this.animationId <= this.animationCommitId) {
458
+ this.nodes.forEach(clearIsLayoutDirty);
459
+ return;
460
+ }
461
+ this.animationCommitId = this.animationId;
462
+ if (!this.isUpdating) {
463
+ this.nodes.forEach(clearIsLayoutDirty);
464
+ }
465
+ else {
466
+ this.isUpdating = false;
467
+ /**
468
+ * Ensure animation-blocked nodes (e.g. during drag)
469
+ * get measured even when memoized (willUpdate skipped).
470
+ */
471
+ this.nodes.forEach(ensureDraggedNodesSnapshotted);
472
+ /**
473
+ * Write
474
+ */
475
+ this.nodes.forEach(resetTransformStyle);
476
+ /**
477
+ * Read ==================
478
+ */
479
+ // Update layout measurements of updated children
480
+ this.nodes.forEach(updateLayout);
481
+ /**
482
+ * Write
483
+ */
484
+ // Notify listeners that the layout is updated
485
+ this.nodes.forEach(notifyLayoutUpdate);
486
+ }
487
+ this.clearAllSnapshots();
488
+ /**
489
+ * Manually flush any pending updates. Ideally
490
+ * we could leave this to the following requestAnimationFrame but this seems
491
+ * to leave a flash of incorrectly styled content.
492
+ */
493
+ const now = syncTime.time.now();
494
+ frame.frameData.delta = clamp.clamp(0, 1000 / 60, now - frame.frameData.timestamp);
495
+ frame.frameData.timestamp = now;
496
+ frame.frameData.isProcessing = true;
497
+ frame.frameSteps.update.process(frame.frameData);
498
+ frame.frameSteps.preRender.process(frame.frameData);
499
+ frame.frameSteps.render.process(frame.frameData);
500
+ frame.frameData.isProcessing = false;
501
+ }
502
+ didUpdate() {
503
+ if (!this.updateScheduled) {
504
+ this.updateScheduled = true;
505
+ microtask.microtask.read(this.scheduleUpdate);
506
+ }
507
+ }
508
+ clearAllSnapshots() {
509
+ this.nodes.forEach(clearSnapshot);
510
+ this.sharedNodes.forEach(removeLeadSnapshots);
511
+ }
512
+ scheduleUpdateProjection() {
513
+ if (!this.projectionUpdateScheduled) {
514
+ this.projectionUpdateScheduled = true;
515
+ frame.frame.preRender(this.updateProjection, false, true);
516
+ }
517
+ }
518
+ scheduleCheckAfterUnmount() {
519
+ /**
520
+ * If the unmounting node is in a layoutGroup and did trigger a willUpdate,
521
+ * we manually call didUpdate to give a chance to the siblings to animate.
522
+ * Otherwise, cleanup all snapshots to prevents future nodes from reusing them.
523
+ */
524
+ frame.frame.postRender(() => {
525
+ if (this.isLayoutDirty) {
526
+ this.root.didUpdate();
527
+ }
528
+ else {
529
+ this.root.checkUpdateFailed();
530
+ }
531
+ });
532
+ }
533
+ /**
534
+ * Update measurements
535
+ */
536
+ updateSnapshot() {
537
+ if (this.snapshot || !this.instance)
538
+ return;
539
+ this.snapshot = this.measure();
540
+ if (this.snapshot &&
541
+ !deltaCalc.calcLength(this.snapshot.measuredBox.x) &&
542
+ !deltaCalc.calcLength(this.snapshot.measuredBox.y)) {
543
+ this.snapshot = undefined;
544
+ }
545
+ }
546
+ updateLayout() {
547
+ if (!this.instance)
548
+ return;
549
+ this.updateScroll();
550
+ if (!(this.options.alwaysMeasureLayout && this.isLead()) &&
551
+ !this.isLayoutDirty) {
552
+ return;
553
+ }
554
+ /**
555
+ * When a node is mounted, it simply resumes from the prevLead's
556
+ * snapshot instead of taking a new one, but the ancestors scroll
557
+ * might have updated while the prevLead is unmounted. We need to
558
+ * update the scroll again to make sure the layout we measure is
559
+ * up to date.
560
+ */
561
+ if (this.resumeFrom && !this.resumeFrom.instance) {
562
+ for (let i = 0; i < this.path.length; i++) {
563
+ const node = this.path[i];
564
+ node.updateScroll();
565
+ }
566
+ }
567
+ const prevLayout = this.layout;
568
+ this.layout = this.measure(false);
569
+ this.layoutVersion++;
570
+ if (!this.layoutCorrected)
571
+ this.layoutCorrected = models.createBox();
572
+ this.isLayoutDirty = false;
573
+ this.projectionDelta = undefined;
574
+ this.notifyListeners("measure", this.layout.layoutBox);
575
+ const { visualElement } = this.options;
576
+ visualElement &&
577
+ visualElement.notify("LayoutMeasure", this.layout.layoutBox, prevLayout ? prevLayout.layoutBox : undefined);
578
+ }
579
+ updateScroll(phase = "measure") {
580
+ let needsMeasurement = Boolean(this.options.layoutScroll && this.instance);
581
+ if (this.scroll &&
582
+ this.scroll.animationId === this.root.animationId &&
583
+ this.scroll.phase === phase) {
584
+ needsMeasurement = false;
585
+ }
586
+ if (needsMeasurement && this.instance) {
587
+ const isRoot = checkIsScrollRoot(this.instance);
588
+ this.scroll = {
589
+ animationId: this.root.animationId,
590
+ phase,
591
+ isRoot,
592
+ offset: measureScroll(this.instance),
593
+ wasRoot: this.scroll ? this.scroll.isRoot : isRoot,
594
+ };
595
+ }
596
+ }
597
+ resetTransform() {
598
+ if (!resetTransform)
599
+ return;
600
+ const isResetRequested = this.isLayoutDirty ||
601
+ this.shouldResetTransform ||
602
+ this.options.alwaysMeasureLayout;
603
+ const hasProjection = this.projectionDelta && !utils.isDeltaZero(this.projectionDelta);
604
+ const transformTemplate = this.getTransformTemplate();
605
+ const transformTemplateValue = transformTemplate
606
+ ? transformTemplate(this.latestValues, "")
607
+ : undefined;
608
+ const transformTemplateHasChanged = transformTemplateValue !== this.prevTransformTemplateValue;
609
+ if (isResetRequested &&
610
+ this.instance &&
611
+ (hasProjection ||
612
+ hasTransform.hasTransform(this.latestValues) ||
613
+ transformTemplateHasChanged)) {
614
+ resetTransform(this.instance, transformTemplateValue);
615
+ this.shouldResetTransform = false;
616
+ this.scheduleRender();
617
+ }
618
+ }
619
+ measure(removeTransform = true) {
620
+ const pageBox = this.measurePageBox();
621
+ let layoutBox = this.removeElementScroll(pageBox);
622
+ /**
623
+ * Measurements taken during the pre-render stage
624
+ * still have transforms applied so we remove them
625
+ * via calculation.
626
+ */
627
+ if (removeTransform) {
628
+ layoutBox = this.removeTransform(layoutBox);
629
+ }
630
+ roundBox(layoutBox);
631
+ return {
632
+ animationId: this.root.animationId,
633
+ measuredBox: pageBox,
634
+ layoutBox,
635
+ latestValues: {},
636
+ source: this.id,
637
+ };
638
+ }
639
+ measurePageBox() {
640
+ const { visualElement } = this.options;
641
+ if (!visualElement)
642
+ return models.createBox();
643
+ const box = visualElement.measureViewportBox();
644
+ const wasInScrollRoot = this.scroll?.wasRoot || this.path.some(checkNodeWasScrollRoot);
645
+ if (!wasInScrollRoot) {
646
+ // Remove viewport scroll to give page-relative coordinates
647
+ const { scroll } = this.root;
648
+ if (scroll) {
649
+ deltaApply.translateAxis(box.x, scroll.offset.x);
650
+ deltaApply.translateAxis(box.y, scroll.offset.y);
651
+ }
652
+ }
653
+ return box;
654
+ }
655
+ removeElementScroll(box) {
656
+ const boxWithoutScroll = models.createBox();
657
+ copy.copyBoxInto(boxWithoutScroll, box);
658
+ if (this.scroll?.wasRoot) {
659
+ return boxWithoutScroll;
660
+ }
661
+ /**
662
+ * Performance TODO: Keep a cumulative scroll offset down the tree
663
+ * rather than loop back up the path.
664
+ */
665
+ for (let i = 0; i < this.path.length; i++) {
666
+ const node = this.path[i];
667
+ const { scroll, options } = node;
668
+ if (node !== this.root && scroll && options.layoutScroll) {
669
+ /**
670
+ * If this is a new scroll root, we want to remove all previous scrolls
671
+ * from the viewport box.
672
+ */
673
+ if (scroll.wasRoot) {
674
+ copy.copyBoxInto(boxWithoutScroll, box);
675
+ }
676
+ deltaApply.translateAxis(boxWithoutScroll.x, scroll.offset.x);
677
+ deltaApply.translateAxis(boxWithoutScroll.y, scroll.offset.y);
678
+ }
679
+ }
680
+ return boxWithoutScroll;
681
+ }
682
+ applyTransform(box, transformOnly = false, output) {
683
+ const withTransforms = output || models.createBox();
684
+ copy.copyBoxInto(withTransforms, box);
685
+ for (let i = 0; i < this.path.length; i++) {
686
+ const node = this.path[i];
687
+ if (!transformOnly &&
688
+ node.options.layoutScroll &&
689
+ node.scroll &&
690
+ node !== node.root) {
691
+ deltaApply.translateAxis(withTransforms.x, -node.scroll.offset.x);
692
+ deltaApply.translateAxis(withTransforms.y, -node.scroll.offset.y);
693
+ }
694
+ if (!hasTransform.hasTransform(node.latestValues))
695
+ continue;
696
+ deltaApply.transformBox(withTransforms, node.latestValues, node.layout?.layoutBox);
697
+ }
698
+ if (hasTransform.hasTransform(this.latestValues)) {
699
+ deltaApply.transformBox(withTransforms, this.latestValues, this.layout?.layoutBox);
700
+ }
701
+ return withTransforms;
702
+ }
703
+ removeTransform(box) {
704
+ const boxWithoutTransform = models.createBox();
705
+ copy.copyBoxInto(boxWithoutTransform, box);
706
+ for (let i = 0; i < this.path.length; i++) {
707
+ const node = this.path[i];
708
+ if (!hasTransform.hasTransform(node.latestValues))
709
+ continue;
710
+ let sourceBox;
711
+ if (node.instance) {
712
+ hasTransform.hasScale(node.latestValues) && node.updateSnapshot();
713
+ sourceBox = models.createBox();
714
+ copy.copyBoxInto(sourceBox, node.measurePageBox());
715
+ }
716
+ deltaRemove.removeBoxTransforms(boxWithoutTransform, node.latestValues, node.snapshot?.layoutBox, sourceBox);
717
+ }
718
+ if (hasTransform.hasTransform(this.latestValues)) {
719
+ deltaRemove.removeBoxTransforms(boxWithoutTransform, this.latestValues);
720
+ }
721
+ return boxWithoutTransform;
722
+ }
723
+ setTargetDelta(delta) {
724
+ this.targetDelta = delta;
725
+ this.root.scheduleUpdateProjection();
726
+ this.isProjectionDirty = true;
727
+ }
728
+ setOptions(options) {
729
+ this.options = {
730
+ ...this.options,
731
+ ...options,
732
+ crossfade: options.crossfade !== undefined ? options.crossfade : true,
733
+ };
734
+ }
735
+ clearMeasurements() {
736
+ this.scroll = undefined;
737
+ this.layout = undefined;
738
+ this.snapshot = undefined;
739
+ this.prevTransformTemplateValue = undefined;
740
+ this.targetDelta = undefined;
741
+ this.target = undefined;
742
+ this.isLayoutDirty = false;
743
+ }
744
+ forceRelativeParentToResolveTarget() {
745
+ if (!this.relativeParent)
746
+ return;
747
+ /**
748
+ * If the parent target isn't up-to-date, force it to update.
749
+ * This is an unfortunate de-optimisation as it means any updating relative
750
+ * projection will cause all the relative parents to recalculate back
751
+ * up the tree.
752
+ */
753
+ if (this.relativeParent.resolvedRelativeTargetAt !==
754
+ frame.frameData.timestamp) {
755
+ this.relativeParent.resolveTargetDelta(true);
756
+ }
757
+ }
758
+ resolveTargetDelta(forceRecalculation = false) {
759
+ /**
760
+ * Once the dirty status of nodes has been spread through the tree, we also
761
+ * need to check if we have a shared node of a different depth that has itself
762
+ * been dirtied.
763
+ */
764
+ const lead = this.getLead();
765
+ this.isProjectionDirty || (this.isProjectionDirty = lead.isProjectionDirty);
766
+ this.isTransformDirty || (this.isTransformDirty = lead.isTransformDirty);
767
+ this.isSharedProjectionDirty || (this.isSharedProjectionDirty = lead.isSharedProjectionDirty);
768
+ const isShared = Boolean(this.resumingFrom) || this !== lead;
769
+ /**
770
+ * We don't use transform for this step of processing so we don't
771
+ * need to check whether any nodes have changed transform.
772
+ */
773
+ const canSkip = !(forceRecalculation ||
774
+ (isShared && this.isSharedProjectionDirty) ||
775
+ this.isProjectionDirty ||
776
+ this.parent?.isProjectionDirty ||
777
+ this.attemptToResolveRelativeTarget ||
778
+ this.root.updateBlockedByResize);
779
+ if (canSkip)
780
+ return;
781
+ const { layout, layoutId } = this.options;
782
+ /**
783
+ * If we have no layout, we can't perform projection, so early return
784
+ */
785
+ if (!this.layout || !(layout || layoutId))
786
+ return;
787
+ this.resolvedRelativeTargetAt = frame.frameData.timestamp;
788
+ const relativeParent = this.getClosestProjectingParent();
789
+ if (relativeParent &&
790
+ this.linkedParentVersion !== relativeParent.layoutVersion &&
791
+ !relativeParent.options.layoutRoot) {
792
+ this.removeRelativeTarget();
793
+ }
794
+ /**
795
+ * If we don't have a targetDelta but do have a layout, we can attempt to resolve
796
+ * a relativeParent. This will allow a component to perform scale correction
797
+ * even if no animation has started.
798
+ */
799
+ if (!this.targetDelta && !this.relativeTarget) {
800
+ if (this.options.layoutAnchor !== false &&
801
+ relativeParent &&
802
+ relativeParent.layout) {
803
+ this.createRelativeTarget(relativeParent, this.layout.layoutBox, relativeParent.layout.layoutBox);
804
+ }
805
+ else {
806
+ this.removeRelativeTarget();
807
+ }
808
+ }
809
+ /**
810
+ * If we have no relative target or no target delta our target isn't valid
811
+ * for this frame.
812
+ */
813
+ if (!this.relativeTarget && !this.targetDelta)
814
+ return;
815
+ /**
816
+ * Lazy-init target data structure
817
+ */
818
+ if (!this.target) {
819
+ this.target = models.createBox();
820
+ this.targetWithTransforms = models.createBox();
821
+ }
822
+ /**
823
+ * If we've got a relative box for this component, resolve it into a target relative to the parent.
824
+ */
825
+ if (this.relativeTarget &&
826
+ this.relativeTargetOrigin &&
827
+ this.relativeParent &&
828
+ this.relativeParent.target) {
829
+ this.forceRelativeParentToResolveTarget();
830
+ deltaCalc.calcRelativeBox(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || undefined);
831
+ /**
832
+ * If we've only got a targetDelta, resolve it into a target
833
+ */
834
+ }
835
+ else if (this.targetDelta) {
836
+ if (Boolean(this.resumingFrom)) {
837
+ this.applyTransform(this.layout.layoutBox, false, this.target);
838
+ }
839
+ else {
840
+ copy.copyBoxInto(this.target, this.layout.layoutBox);
841
+ }
842
+ deltaApply.applyBoxDelta(this.target, this.targetDelta);
843
+ }
844
+ else {
845
+ /**
846
+ * If no target, use own layout as target
847
+ */
848
+ copy.copyBoxInto(this.target, this.layout.layoutBox);
849
+ }
850
+ /**
851
+ * If we've been told to attempt to resolve a relative target, do so.
852
+ */
853
+ if (this.attemptToResolveRelativeTarget) {
854
+ this.attemptToResolveRelativeTarget = false;
855
+ if (this.options.layoutAnchor !== false &&
856
+ relativeParent &&
857
+ Boolean(relativeParent.resumingFrom) ===
858
+ Boolean(this.resumingFrom) &&
859
+ !relativeParent.options.layoutScroll &&
860
+ relativeParent.target &&
861
+ this.animationProgress !== 1) {
862
+ this.createRelativeTarget(relativeParent, this.target, relativeParent.target);
863
+ }
864
+ else {
865
+ this.relativeParent = this.relativeTarget = undefined;
866
+ }
867
+ }
868
+ }
869
+ getClosestProjectingParent() {
870
+ if (!this.parent ||
871
+ hasTransform.hasScale(this.parent.latestValues) ||
872
+ hasTransform.has2DTranslate(this.parent.latestValues)) {
873
+ return undefined;
874
+ }
875
+ if (this.parent.isProjecting()) {
876
+ return this.parent;
877
+ }
878
+ else {
879
+ return this.parent.getClosestProjectingParent();
880
+ }
881
+ }
882
+ isProjecting() {
883
+ return Boolean((this.relativeTarget ||
884
+ this.targetDelta ||
885
+ this.options.layoutRoot) &&
886
+ this.layout);
887
+ }
888
+ createRelativeTarget(relativeParent, layout, parentLayout) {
889
+ this.relativeParent = relativeParent;
890
+ this.linkedParentVersion = relativeParent.layoutVersion;
891
+ this.forceRelativeParentToResolveTarget();
892
+ this.relativeTarget = models.createBox();
893
+ this.relativeTargetOrigin = models.createBox();
894
+ deltaCalc.calcRelativePosition(this.relativeTargetOrigin, layout, parentLayout, this.options.layoutAnchor || undefined);
895
+ copy.copyBoxInto(this.relativeTarget, this.relativeTargetOrigin);
896
+ }
897
+ removeRelativeTarget() {
898
+ this.relativeParent = this.relativeTarget = undefined;
899
+ }
900
+ calcProjection() {
901
+ const lead = this.getLead();
902
+ const isShared = Boolean(this.resumingFrom) || this !== lead;
903
+ let canSkip = true;
904
+ /**
905
+ * If this is a normal layout animation and neither this node nor its nearest projecting
906
+ * is dirty then we can't skip.
907
+ */
908
+ if (this.isProjectionDirty || this.parent?.isProjectionDirty) {
909
+ canSkip = false;
910
+ }
911
+ /**
912
+ * If this is a shared layout animation and this node's shared projection is dirty then
913
+ * we can't skip.
914
+ */
915
+ if (isShared &&
916
+ (this.isSharedProjectionDirty || this.isTransformDirty)) {
917
+ canSkip = false;
918
+ }
919
+ /**
920
+ * If we have resolved the target this frame we must recalculate the
921
+ * projection to ensure it visually represents the internal calculations.
922
+ */
923
+ if (this.resolvedRelativeTargetAt === frame.frameData.timestamp) {
924
+ canSkip = false;
925
+ }
926
+ if (canSkip)
927
+ return;
928
+ const { layout, layoutId } = this.options;
929
+ /**
930
+ * If this section of the tree isn't animating we can
931
+ * delete our target sources for the following frame.
932
+ */
933
+ this.isTreeAnimating = Boolean((this.parent && this.parent.isTreeAnimating) ||
934
+ this.currentAnimation ||
935
+ this.pendingAnimation);
936
+ if (!this.isTreeAnimating) {
937
+ this.targetDelta = this.relativeTarget = undefined;
938
+ }
939
+ if (!this.layout || !(layout || layoutId))
940
+ return;
941
+ /**
942
+ * Reset the corrected box with the latest values from box, as we're then going
943
+ * to perform mutative operations on it.
944
+ */
945
+ copy.copyBoxInto(this.layoutCorrected, this.layout.layoutBox);
946
+ /**
947
+ * Record previous tree scales before updating.
948
+ */
949
+ const prevTreeScaleX = this.treeScale.x;
950
+ const prevTreeScaleY = this.treeScale.y;
951
+ /**
952
+ * Apply all the parent deltas to this box to produce the corrected box. This
953
+ * is the layout box, as it will appear on screen as a result of the transforms of its parents.
954
+ */
955
+ deltaApply.applyTreeDeltas(this.layoutCorrected, this.treeScale, this.path, isShared);
956
+ /**
957
+ * If this layer needs to perform scale correction but doesn't have a target,
958
+ * use the layout as the target.
959
+ */
960
+ if (lead.layout &&
961
+ !lead.target &&
962
+ (this.treeScale.x !== 1 || this.treeScale.y !== 1)) {
963
+ lead.target = lead.layout.layoutBox;
964
+ lead.targetWithTransforms = models.createBox();
965
+ }
966
+ const { target } = lead;
967
+ if (!target) {
968
+ /**
969
+ * If we don't have a target to project into, but we were previously
970
+ * projecting, we want to remove the stored transform and schedule
971
+ * a render to ensure the elements reflect the removed transform.
972
+ */
973
+ if (this.prevProjectionDelta) {
974
+ this.createProjectionDeltas();
975
+ this.scheduleRender();
976
+ }
977
+ return;
978
+ }
979
+ if (!this.projectionDelta || !this.prevProjectionDelta) {
980
+ this.createProjectionDeltas();
981
+ }
982
+ else {
983
+ copy.copyAxisDeltaInto(this.prevProjectionDelta.x, this.projectionDelta.x);
984
+ copy.copyAxisDeltaInto(this.prevProjectionDelta.y, this.projectionDelta.y);
985
+ }
986
+ /**
987
+ * Update the delta between the corrected box and the target box before user-set transforms were applied.
988
+ * This will allow us to calculate the corrected borderRadius and boxShadow to compensate
989
+ * for our layout reprojection, but still allow them to be scaled correctly by the user.
990
+ * It might be that to simplify this we may want to accept that user-set scale is also corrected
991
+ * and we wouldn't have to keep and calc both deltas, OR we could support a user setting
992
+ * to allow people to choose whether these styles are corrected based on just the
993
+ * layout reprojection or the final bounding box.
994
+ */
995
+ deltaCalc.calcBoxDelta(this.projectionDelta, this.layoutCorrected, target, this.latestValues);
996
+ if (this.treeScale.x !== prevTreeScaleX ||
997
+ this.treeScale.y !== prevTreeScaleY ||
998
+ !utils.axisDeltaEquals(this.projectionDelta.x, this.prevProjectionDelta.x) ||
999
+ !utils.axisDeltaEquals(this.projectionDelta.y, this.prevProjectionDelta.y)) {
1000
+ this.hasProjected = true;
1001
+ this.scheduleRender();
1002
+ this.notifyListeners("projectionUpdate", target);
1003
+ }
1004
+ }
1005
+ hide() {
1006
+ this.isVisible = false;
1007
+ // TODO: Schedule render
1008
+ }
1009
+ show() {
1010
+ this.isVisible = true;
1011
+ // TODO: Schedule render
1012
+ }
1013
+ scheduleRender(notifyAll = true) {
1014
+ this.options.visualElement?.scheduleRender();
1015
+ if (notifyAll) {
1016
+ const stack = this.getStack();
1017
+ stack && stack.scheduleRender();
1018
+ }
1019
+ if (this.resumingFrom && !this.resumingFrom.instance) {
1020
+ this.resumingFrom = undefined;
1021
+ }
1022
+ }
1023
+ createProjectionDeltas() {
1024
+ this.prevProjectionDelta = models.createDelta();
1025
+ this.projectionDelta = models.createDelta();
1026
+ this.projectionDeltaWithTransform = models.createDelta();
1027
+ }
1028
+ setAnimationOrigin(delta, hasOnlyRelativeTargetChanged = false) {
1029
+ const snapshot = this.snapshot;
1030
+ const snapshotLatestValues = snapshot ? snapshot.latestValues : {};
1031
+ const mixedValues = { ...this.latestValues };
1032
+ const targetDelta = models.createDelta();
1033
+ if (!this.relativeParent ||
1034
+ !this.relativeParent.options.layoutRoot) {
1035
+ this.relativeTarget = this.relativeTargetOrigin = undefined;
1036
+ }
1037
+ this.attemptToResolveRelativeTarget = !hasOnlyRelativeTargetChanged;
1038
+ const relativeLayout = models.createBox();
1039
+ const snapshotSource = snapshot ? snapshot.source : undefined;
1040
+ const layoutSource = this.layout ? this.layout.source : undefined;
1041
+ const isSharedLayoutAnimation = snapshotSource !== layoutSource;
1042
+ const stack = this.getStack();
1043
+ const isOnlyMember = !stack || stack.members.length <= 1;
1044
+ const shouldCrossfadeOpacity = Boolean(isSharedLayoutAnimation &&
1045
+ !isOnlyMember &&
1046
+ this.options.crossfade === true &&
1047
+ !this.path.some(hasOpacityCrossfade));
1048
+ this.animationProgress = 0;
1049
+ let prevRelativeTarget;
1050
+ this.mixTargetDelta = (latest) => {
1051
+ const progress = latest / 1000;
1052
+ mixAxisDelta(targetDelta.x, delta.x, progress);
1053
+ mixAxisDelta(targetDelta.y, delta.y, progress);
1054
+ this.setTargetDelta(targetDelta);
1055
+ if (this.relativeTarget &&
1056
+ this.relativeTargetOrigin &&
1057
+ this.layout &&
1058
+ this.relativeParent &&
1059
+ this.relativeParent.layout) {
1060
+ deltaCalc.calcRelativePosition(relativeLayout, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || undefined);
1061
+ mixBox(this.relativeTarget, this.relativeTargetOrigin, relativeLayout, progress);
1062
+ /**
1063
+ * If this is an unchanged relative target we can consider the
1064
+ * projection not dirty.
1065
+ */
1066
+ if (prevRelativeTarget &&
1067
+ utils.boxEquals(this.relativeTarget, prevRelativeTarget)) {
1068
+ this.isProjectionDirty = false;
1069
+ }
1070
+ if (!prevRelativeTarget)
1071
+ prevRelativeTarget = models.createBox();
1072
+ copy.copyBoxInto(prevRelativeTarget, this.relativeTarget);
1073
+ }
1074
+ if (isSharedLayoutAnimation) {
1075
+ this.animationValues = mixedValues;
1076
+ mixValues.mixValues(mixedValues, snapshotLatestValues, this.latestValues, progress, shouldCrossfadeOpacity, isOnlyMember);
1077
+ }
1078
+ this.root.scheduleUpdateProjection();
1079
+ this.scheduleRender();
1080
+ this.animationProgress = progress;
1081
+ };
1082
+ this.mixTargetDelta(this.options.layoutRoot ? 1000 : 0);
1083
+ }
1084
+ startAnimation(options) {
1085
+ this.notifyListeners("animationStart");
1086
+ this.currentAnimation?.stop();
1087
+ this.resumingFrom?.currentAnimation?.stop();
1088
+ if (this.pendingAnimation) {
1089
+ frame.cancelFrame(this.pendingAnimation);
1090
+ this.pendingAnimation = undefined;
1091
+ }
1092
+ /**
1093
+ * Start the animation in the next frame to have a frame with progress 0,
1094
+ * where the target is the same as when the animation started, so we can
1095
+ * calculate the relative positions correctly for instant transitions.
1096
+ */
1097
+ this.pendingAnimation = frame.frame.update(() => {
1098
+ state.globalProjectionState.hasAnimatedSinceResize = true;
1099
+ this.motionValue || (this.motionValue = index.motionValue(0));
1100
+ this.motionValue.jump(0, false);
1101
+ this.currentAnimation = singleValue.animateSingleValue(this.motionValue, [0, 1000], {
1102
+ ...options,
1103
+ velocity: 0,
1104
+ isSync: true,
1105
+ onUpdate: (latest) => {
1106
+ this.mixTargetDelta(latest);
1107
+ options.onUpdate && options.onUpdate(latest);
1108
+ },
1109
+ onStop: () => {
1110
+ },
1111
+ onComplete: () => {
1112
+ options.onComplete && options.onComplete();
1113
+ this.completeAnimation();
1114
+ },
1115
+ });
1116
+ if (this.resumingFrom) {
1117
+ this.resumingFrom.currentAnimation = this.currentAnimation;
1118
+ }
1119
+ this.pendingAnimation = undefined;
1120
+ });
1121
+ }
1122
+ completeAnimation() {
1123
+ if (this.resumingFrom) {
1124
+ this.resumingFrom.currentAnimation = undefined;
1125
+ this.resumingFrom.preserveOpacity = undefined;
1126
+ }
1127
+ const stack = this.getStack();
1128
+ stack && stack.exitAnimationComplete();
1129
+ this.resumingFrom =
1130
+ this.currentAnimation =
1131
+ this.animationValues =
1132
+ undefined;
1133
+ this.notifyListeners("animationComplete");
1134
+ }
1135
+ finishAnimation() {
1136
+ if (this.currentAnimation) {
1137
+ this.mixTargetDelta && this.mixTargetDelta(animationTarget);
1138
+ this.currentAnimation.stop();
1139
+ }
1140
+ this.completeAnimation();
1141
+ }
1142
+ applyTransformsToTarget() {
1143
+ const lead = this.getLead();
1144
+ let { targetWithTransforms, target, layout, latestValues } = lead;
1145
+ if (!targetWithTransforms || !target || !layout)
1146
+ return;
1147
+ /**
1148
+ * If we're only animating position, and this element isn't the lead element,
1149
+ * then instead of projecting into the lead box we instead want to calculate
1150
+ * a new target that aligns the two boxes but maintains the layout shape.
1151
+ */
1152
+ if (this !== lead &&
1153
+ this.layout &&
1154
+ layout &&
1155
+ shouldAnimatePositionOnly(this.options.animationType, this.layout.layoutBox, layout.layoutBox)) {
1156
+ target = this.target || models.createBox();
1157
+ const xLength = deltaCalc.calcLength(this.layout.layoutBox.x);
1158
+ target.x.min = lead.target.x.min;
1159
+ target.x.max = target.x.min + xLength;
1160
+ const yLength = deltaCalc.calcLength(this.layout.layoutBox.y);
1161
+ target.y.min = lead.target.y.min;
1162
+ target.y.max = target.y.min + yLength;
1163
+ }
1164
+ copy.copyBoxInto(targetWithTransforms, target);
1165
+ /**
1166
+ * Apply the latest user-set transforms to the targetBox to produce the targetBoxFinal.
1167
+ * This is the final box that we will then project into by calculating a transform delta and
1168
+ * applying it to the corrected box.
1169
+ */
1170
+ deltaApply.transformBox(targetWithTransforms, latestValues);
1171
+ /**
1172
+ * Update the delta between the corrected box and the final target box, after
1173
+ * user-set transforms are applied to it. This will be used by the renderer to
1174
+ * create a transform style that will reproject the element from its layout layout
1175
+ * into the desired bounding box.
1176
+ */
1177
+ deltaCalc.calcBoxDelta(this.projectionDeltaWithTransform, this.layoutCorrected, targetWithTransforms, latestValues);
1178
+ }
1179
+ registerSharedNode(layoutId, node) {
1180
+ if (!this.sharedNodes.has(layoutId)) {
1181
+ this.sharedNodes.set(layoutId, new stack.NodeStack());
1182
+ }
1183
+ const stack$1 = this.sharedNodes.get(layoutId);
1184
+ stack$1.add(node);
1185
+ const config = node.options.initialPromotionConfig;
1186
+ node.promote({
1187
+ transition: config ? config.transition : undefined,
1188
+ preserveFollowOpacity: config && config.shouldPreserveFollowOpacity
1189
+ ? config.shouldPreserveFollowOpacity(node)
1190
+ : undefined,
1191
+ });
1192
+ }
1193
+ isLead() {
1194
+ const stack = this.getStack();
1195
+ return stack ? stack.lead === this : true;
1196
+ }
1197
+ getLead() {
1198
+ const { layoutId } = this.options;
1199
+ return layoutId ? this.getStack()?.lead || this : this;
1200
+ }
1201
+ getPrevLead() {
1202
+ const { layoutId } = this.options;
1203
+ return layoutId ? this.getStack()?.prevLead : undefined;
1204
+ }
1205
+ getStack() {
1206
+ const { layoutId } = this.options;
1207
+ if (layoutId)
1208
+ return this.root.sharedNodes.get(layoutId);
1209
+ }
1210
+ promote({ needsReset, transition, preserveFollowOpacity, } = {}) {
1211
+ const stack = this.getStack();
1212
+ if (stack)
1213
+ stack.promote(this, preserveFollowOpacity);
1214
+ if (needsReset) {
1215
+ this.projectionDelta = undefined;
1216
+ this.needsReset = true;
1217
+ }
1218
+ if (transition)
1219
+ this.setOptions({ transition });
1220
+ }
1221
+ relegate() {
1222
+ const stack = this.getStack();
1223
+ if (stack) {
1224
+ return stack.relegate(this);
1225
+ }
1226
+ else {
1227
+ return false;
1228
+ }
1229
+ }
1230
+ resetSkewAndRotation() {
1231
+ const { visualElement } = this.options;
1232
+ if (!visualElement)
1233
+ return;
1234
+ // If there's no detected skew or rotation values, we can early return without a forced render.
1235
+ let hasDistortingTransform = false;
1236
+ /**
1237
+ * An unrolled check for rotation values. Most elements don't have any rotation and
1238
+ * skipping the nested loop and new object creation is 50% faster.
1239
+ */
1240
+ const { latestValues } = visualElement;
1241
+ if (latestValues.z ||
1242
+ latestValues.rotate ||
1243
+ latestValues.rotateX ||
1244
+ latestValues.rotateY ||
1245
+ latestValues.rotateZ ||
1246
+ latestValues.skewX ||
1247
+ latestValues.skewY) {
1248
+ hasDistortingTransform = true;
1249
+ }
1250
+ // If there's no distorting values, we don't need to do any more.
1251
+ if (!hasDistortingTransform)
1252
+ return;
1253
+ const resetValues = {};
1254
+ if (latestValues.z) {
1255
+ resetDistortingTransform("z", visualElement, resetValues, this.animationValues);
1256
+ }
1257
+ // Check the skew and rotate value of all axes and reset to 0
1258
+ for (let i = 0; i < transformAxes.length; i++) {
1259
+ resetDistortingTransform(`rotate${transformAxes[i]}`, visualElement, resetValues, this.animationValues);
1260
+ resetDistortingTransform(`skew${transformAxes[i]}`, visualElement, resetValues, this.animationValues);
1261
+ }
1262
+ // Force a render of this element to apply the transform with all skews and rotations
1263
+ // set to 0.
1264
+ visualElement.render();
1265
+ // Put back all the values we reset
1266
+ for (const key in resetValues) {
1267
+ visualElement.setStaticValue(key, resetValues[key]);
1268
+ if (this.animationValues) {
1269
+ this.animationValues[key] = resetValues[key];
1270
+ }
1271
+ }
1272
+ // Schedule a render for the next frame. This ensures we won't visually
1273
+ // see the element with the reset rotate value applied.
1274
+ visualElement.scheduleRender();
1275
+ }
1276
+ applyProjectionStyles(targetStyle, // CSSStyleDeclaration - doesn't allow numbers to be assigned to properties
1277
+ styleProp) {
1278
+ if (!this.instance || this.isSVG)
1279
+ return;
1280
+ if (!this.isVisible) {
1281
+ targetStyle.visibility = "hidden";
1282
+ return;
1283
+ }
1284
+ const transformTemplate = this.getTransformTemplate();
1285
+ if (this.needsReset) {
1286
+ this.needsReset = false;
1287
+ targetStyle.visibility = "";
1288
+ targetStyle.opacity = "";
1289
+ targetStyle.pointerEvents =
1290
+ resolveMotionValue.resolveMotionValue(styleProp?.pointerEvents) || "";
1291
+ targetStyle.transform = transformTemplate
1292
+ ? transformTemplate(this.latestValues, "")
1293
+ : "none";
1294
+ return;
1295
+ }
1296
+ const lead = this.getLead();
1297
+ if (!this.projectionDelta || !this.layout || !lead.target) {
1298
+ if (this.options.layoutId) {
1299
+ targetStyle.opacity =
1300
+ this.latestValues.opacity !== undefined
1301
+ ? this.latestValues.opacity
1302
+ : 1;
1303
+ targetStyle.pointerEvents =
1304
+ resolveMotionValue.resolveMotionValue(styleProp?.pointerEvents) || "";
1305
+ }
1306
+ if (this.hasProjected && !hasTransform.hasTransform(this.latestValues)) {
1307
+ targetStyle.transform = transformTemplate
1308
+ ? transformTemplate({}, "")
1309
+ : "none";
1310
+ this.hasProjected = false;
1311
+ }
1312
+ return;
1313
+ }
1314
+ targetStyle.visibility = "";
1315
+ const valuesToRender = lead.animationValues || lead.latestValues;
1316
+ this.applyTransformsToTarget();
1317
+ let transform$1 = transform.buildProjectionTransform(this.projectionDeltaWithTransform, this.treeScale, valuesToRender);
1318
+ if (transformTemplate) {
1319
+ transform$1 = transformTemplate(valuesToRender, transform$1);
1320
+ }
1321
+ targetStyle.transform = transform$1;
1322
+ const { x, y } = this.projectionDelta;
1323
+ targetStyle.transformOrigin = `${x.origin * 100}% ${y.origin * 100}% 0`;
1324
+ if (lead.animationValues) {
1325
+ /**
1326
+ * If the lead component is animating, assign this either the entering/leaving
1327
+ * opacity
1328
+ */
1329
+ targetStyle.opacity =
1330
+ lead === this
1331
+ ? valuesToRender.opacity ??
1332
+ this.latestValues.opacity ??
1333
+ 1
1334
+ : this.preserveOpacity
1335
+ ? this.latestValues.opacity
1336
+ : valuesToRender.opacityExit;
1337
+ }
1338
+ else {
1339
+ /**
1340
+ * Or we're not animating at all, set the lead component to its layout
1341
+ * opacity and other components to hidden.
1342
+ */
1343
+ targetStyle.opacity =
1344
+ lead === this
1345
+ ? valuesToRender.opacity !== undefined
1346
+ ? valuesToRender.opacity
1347
+ : ""
1348
+ : valuesToRender.opacityExit !== undefined
1349
+ ? valuesToRender.opacityExit
1350
+ : 0;
1351
+ }
1352
+ /**
1353
+ * Apply scale correction
1354
+ */
1355
+ for (const key in scaleCorrection.scaleCorrectors) {
1356
+ if (valuesToRender[key] === undefined)
1357
+ continue;
1358
+ const { correct, applyTo, isCSSVariable } = scaleCorrection.scaleCorrectors[key];
1359
+ /**
1360
+ * Only apply scale correction to the value if we have an
1361
+ * active projection transform. Otherwise these values become
1362
+ * vulnerable to distortion if the element changes size without
1363
+ * a corresponding layout animation.
1364
+ */
1365
+ const corrected = transform$1 === "none"
1366
+ ? valuesToRender[key]
1367
+ : correct(valuesToRender[key], lead);
1368
+ if (applyTo) {
1369
+ const num = applyTo.length;
1370
+ for (let i = 0; i < num; i++) {
1371
+ targetStyle[applyTo[i]] = corrected;
1372
+ }
1373
+ }
1374
+ else {
1375
+ // If this is a CSS variable, set it directly on the instance.
1376
+ // Replacing this function from creating styles to setting them
1377
+ // would be a good place to remove per frame object creation
1378
+ if (isCSSVariable) {
1379
+ this.options.visualElement.renderState.vars[key] = corrected;
1380
+ }
1381
+ else {
1382
+ targetStyle[key] = corrected;
1383
+ }
1384
+ }
1385
+ }
1386
+ /**
1387
+ * Disable pointer events on follow components. This is to ensure
1388
+ * that if a follow component covers a lead component it doesn't block
1389
+ * pointer events on the lead.
1390
+ */
1391
+ if (this.options.layoutId) {
1392
+ targetStyle.pointerEvents =
1393
+ lead === this
1394
+ ? resolveMotionValue.resolveMotionValue(styleProp?.pointerEvents) || ""
1395
+ : "none";
1396
+ }
1397
+ }
1398
+ clearSnapshot() {
1399
+ this.resumeFrom = this.snapshot = undefined;
1400
+ }
1401
+ // Only run on root
1402
+ resetTree() {
1403
+ this.root.nodes.forEach((node) => node.currentAnimation?.stop());
1404
+ this.root.nodes.forEach(clearMeasurements);
1405
+ this.root.sharedNodes.clear();
1406
+ }
1407
+ };
1408
+ }
1409
+ function updateLayout(node) {
1410
+ node.updateLayout();
1411
+ }
1412
+ function notifyLayoutUpdate(node) {
1413
+ const snapshot = node.resumeFrom?.snapshot || node.snapshot;
1414
+ if (node.isLead() &&
1415
+ node.layout &&
1416
+ snapshot &&
1417
+ node.hasListeners("didUpdate")) {
1418
+ const { layoutBox: layout, measuredBox: measuredLayout } = node.layout;
1419
+ const { animationType } = node.options;
1420
+ const isShared = snapshot.source !== node.layout.source;
1421
+ // TODO Maybe we want to also resize the layout snapshot so we don't trigger
1422
+ // animations for instance if layout="size" and an element has only changed position
1423
+ if (animationType === "size") {
1424
+ eachAxis.eachAxis((axis) => {
1425
+ const axisSnapshot = isShared
1426
+ ? snapshot.measuredBox[axis]
1427
+ : snapshot.layoutBox[axis];
1428
+ const length = deltaCalc.calcLength(axisSnapshot);
1429
+ axisSnapshot.min = layout[axis].min;
1430
+ axisSnapshot.max = axisSnapshot.min + length;
1431
+ });
1432
+ }
1433
+ else if (animationType === "x" || animationType === "y") {
1434
+ const snapAxis = animationType === "x" ? "y" : "x";
1435
+ copy.copyAxisInto(isShared
1436
+ ? snapshot.measuredBox[snapAxis]
1437
+ : snapshot.layoutBox[snapAxis], layout[snapAxis]);
1438
+ }
1439
+ else if (shouldAnimatePositionOnly(animationType, snapshot.layoutBox, layout)) {
1440
+ eachAxis.eachAxis((axis) => {
1441
+ const axisSnapshot = isShared
1442
+ ? snapshot.measuredBox[axis]
1443
+ : snapshot.layoutBox[axis];
1444
+ const length = deltaCalc.calcLength(layout[axis]);
1445
+ axisSnapshot.max = axisSnapshot.min + length;
1446
+ /**
1447
+ * Ensure relative target gets resized and rerendererd
1448
+ */
1449
+ if (node.relativeTarget && !node.currentAnimation) {
1450
+ node.isProjectionDirty = true;
1451
+ node.relativeTarget[axis].max =
1452
+ node.relativeTarget[axis].min + length;
1453
+ }
1454
+ });
1455
+ }
1456
+ const layoutDelta = models.createDelta();
1457
+ deltaCalc.calcBoxDelta(layoutDelta, layout, snapshot.layoutBox);
1458
+ const visualDelta = models.createDelta();
1459
+ if (isShared) {
1460
+ deltaCalc.calcBoxDelta(visualDelta, node.applyTransform(measuredLayout, true), snapshot.measuredBox);
1461
+ }
1462
+ else {
1463
+ deltaCalc.calcBoxDelta(visualDelta, layout, snapshot.layoutBox);
1464
+ }
1465
+ const hasLayoutChanged = !utils.isDeltaZero(layoutDelta);
1466
+ let hasRelativeLayoutChanged = false;
1467
+ if (!node.resumeFrom) {
1468
+ const relativeParent = node.getClosestProjectingParent();
1469
+ /**
1470
+ * If the relativeParent is itself resuming from a different element then
1471
+ * the relative snapshot is not relavent
1472
+ */
1473
+ if (relativeParent && !relativeParent.resumeFrom) {
1474
+ const { snapshot: parentSnapshot, layout: parentLayout } = relativeParent;
1475
+ if (parentSnapshot && parentLayout) {
1476
+ const anchor = node.options.layoutAnchor || undefined;
1477
+ const relativeSnapshot = models.createBox();
1478
+ deltaCalc.calcRelativePosition(relativeSnapshot, snapshot.layoutBox, parentSnapshot.layoutBox, anchor);
1479
+ const relativeLayout = models.createBox();
1480
+ deltaCalc.calcRelativePosition(relativeLayout, layout, parentLayout.layoutBox, anchor);
1481
+ if (!utils.boxEqualsRounded(relativeSnapshot, relativeLayout)) {
1482
+ hasRelativeLayoutChanged = true;
1483
+ }
1484
+ if (relativeParent.options.layoutRoot) {
1485
+ node.relativeTarget = relativeLayout;
1486
+ node.relativeTargetOrigin = relativeSnapshot;
1487
+ node.relativeParent = relativeParent;
1488
+ }
1489
+ }
1490
+ }
1491
+ }
1492
+ node.notifyListeners("didUpdate", {
1493
+ layout,
1494
+ snapshot,
1495
+ delta: visualDelta,
1496
+ layoutDelta,
1497
+ hasLayoutChanged,
1498
+ hasRelativeLayoutChanged,
1499
+ });
1500
+ }
1501
+ else if (node.isLead()) {
1502
+ const { onExitComplete } = node.options;
1503
+ onExitComplete && onExitComplete();
1504
+ }
1505
+ /**
1506
+ * Clearing transition
1507
+ * TODO: Investigate why this transition is being passed in as {type: false } from Framer
1508
+ * and why we need it at all
1509
+ */
1510
+ node.options.transition = undefined;
1511
+ }
1512
+ function propagateDirtyNodes(node) {
1513
+ if (!node.parent)
1514
+ return;
1515
+ /**
1516
+ * If this node isn't projecting, propagate isProjectionDirty. It will have
1517
+ * no performance impact but it will allow the next child that *is* projecting
1518
+ * but *isn't* dirty to just check its parent to see if *any* ancestor needs
1519
+ * correcting.
1520
+ */
1521
+ if (!node.isProjecting()) {
1522
+ node.isProjectionDirty = node.parent.isProjectionDirty;
1523
+ }
1524
+ /**
1525
+ * Propagate isSharedProjectionDirty and isTransformDirty
1526
+ * throughout the whole tree. A future revision can take another look at
1527
+ * this but for safety we still recalcualte shared nodes.
1528
+ */
1529
+ node.isSharedProjectionDirty || (node.isSharedProjectionDirty = Boolean(node.isProjectionDirty ||
1530
+ node.parent.isProjectionDirty ||
1531
+ node.parent.isSharedProjectionDirty));
1532
+ node.isTransformDirty || (node.isTransformDirty = node.parent.isTransformDirty);
1533
+ }
1534
+ function cleanDirtyNodes(node) {
1535
+ node.isProjectionDirty =
1536
+ node.isSharedProjectionDirty =
1537
+ node.isTransformDirty =
1538
+ false;
1539
+ }
1540
+ function clearSnapshot(node) {
1541
+ node.clearSnapshot();
1542
+ }
1543
+ function clearMeasurements(node) {
1544
+ node.clearMeasurements();
1545
+ }
1546
+ function forceLayoutMeasure(node) {
1547
+ node.isLayoutDirty = true;
1548
+ node.updateLayout();
1549
+ }
1550
+ function clearIsLayoutDirty(node) {
1551
+ node.isLayoutDirty = false;
1552
+ }
1553
+ /**
1554
+ * When a node is animation-blocked (e.g. during drag) and its component
1555
+ * didn't re-render (memoized), willUpdate() is never called so there's
1556
+ * no snapshot. Use the previous layout as a snapshot and mark dirty so
1557
+ * resetTransform/updateLayout/notifyLayoutUpdate process it normally.
1558
+ */
1559
+ function ensureDraggedNodesSnapshotted(node) {
1560
+ if (node.isAnimationBlocked && node.layout && !node.isLayoutDirty) {
1561
+ node.snapshot = node.layout;
1562
+ node.isLayoutDirty = true;
1563
+ }
1564
+ }
1565
+ function resetTransformStyle(node) {
1566
+ const { visualElement } = node.options;
1567
+ if (visualElement && visualElement.getProps().onBeforeLayoutMeasure) {
1568
+ visualElement.notify("BeforeLayoutMeasure");
1569
+ }
1570
+ node.resetTransform();
1571
+ }
1572
+ function finishAnimation(node) {
1573
+ node.finishAnimation();
1574
+ node.targetDelta = node.relativeTarget = node.target = undefined;
1575
+ node.isProjectionDirty = true;
1576
+ }
1577
+ function resolveTargetDelta(node) {
1578
+ node.resolveTargetDelta();
1579
+ }
1580
+ function calcProjection(node) {
1581
+ node.calcProjection();
1582
+ }
1583
+ function resetSkewAndRotation(node) {
1584
+ node.resetSkewAndRotation();
1585
+ }
1586
+ function removeLeadSnapshots(stack) {
1587
+ stack.removeLeadSnapshot();
1588
+ }
1589
+ function mixAxisDelta(output, delta, p) {
1590
+ output.translate = number.mixNumber(delta.translate, 0, p);
1591
+ output.scale = number.mixNumber(delta.scale, 1, p);
1592
+ output.origin = delta.origin;
1593
+ output.originPoint = delta.originPoint;
1594
+ }
1595
+ function mixAxis(output, from, to, p) {
1596
+ output.min = number.mixNumber(from.min, to.min, p);
1597
+ output.max = number.mixNumber(from.max, to.max, p);
1598
+ }
1599
+ function mixBox(output, from, to, p) {
1600
+ mixAxis(output.x, from.x, to.x, p);
1601
+ mixAxis(output.y, from.y, to.y, p);
1602
+ }
1603
+ function hasOpacityCrossfade(node) {
1604
+ return (node.animationValues && node.animationValues.opacityExit !== undefined);
1605
+ }
1606
+ const defaultLayoutTransition = {
1607
+ duration: 0.45,
1608
+ ease: [0.4, 0, 0.1, 1],
1609
+ };
1610
+ const userAgentContains = (string) => typeof navigator !== "undefined" &&
1611
+ navigator.userAgent &&
1612
+ navigator.userAgent.toLowerCase().includes(string);
1613
+ /**
1614
+ * Measured bounding boxes must be rounded in Safari and
1615
+ * left untouched in Chrome, otherwise non-integer layouts within scaled-up elements
1616
+ * can appear to jump.
1617
+ */
1618
+ const roundPoint = userAgentContains("applewebkit/") && !userAgentContains("chrome/")
1619
+ ? Math.round
1620
+ : noop.noop;
1621
+ function roundAxis(axis) {
1622
+ // Round to the nearest .5 pixels to support subpixel layouts
1623
+ axis.min = roundPoint(axis.min);
1624
+ axis.max = roundPoint(axis.max);
1625
+ }
1626
+ function roundBox(box) {
1627
+ roundAxis(box.x);
1628
+ roundAxis(box.y);
1629
+ }
1630
+ function shouldAnimatePositionOnly(animationType, snapshot, layout) {
1631
+ return (animationType === "position" ||
1632
+ (animationType === "preserve-aspect" &&
1633
+ !deltaCalc.isNear(utils.aspectRatio(snapshot), utils.aspectRatio(layout), 0.2)));
1634
+ }
1635
+ function checkNodeWasScrollRoot(node) {
1636
+ return node !== node.root && node.scroll?.wasRoot;
1637
+ }
1638
+
1639
+ exports.cleanDirtyNodes = cleanDirtyNodes;
1640
+ exports.createProjectionNode = createProjectionNode;
1641
+ exports.mixAxis = mixAxis;
1642
+ exports.mixAxisDelta = mixAxisDelta;
1643
+ exports.mixBox = mixBox;
1644
+ exports.propagateDirtyNodes = propagateDirtyNodes;