@vkzstudio/muza-ui 1.0.8 → 1.0.10

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 (275) hide show
  1. package/dist/components/Button/Button.js +19 -19
  2. package/dist/components/Button/ButtonLoader.d.ts +7 -0
  3. package/dist/components/Button/ButtonLoader.d.ts.map +1 -0
  4. package/dist/components/Button/ButtonLoader.js +40 -0
  5. package/dist/components/Button/buttonVariants.d.ts.map +1 -1
  6. package/dist/components/Button/buttonVariants.js +0 -1
  7. package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts.map +1 -1
  8. package/dist/components/Icons/CustomIcons.d.ts +1 -0
  9. package/dist/components/Icons/CustomIcons.d.ts.map +1 -1
  10. package/dist/components/Icons/CustomIcons.js +39 -28
  11. package/dist/components/ReorderableTable/ReorderableTable.js +1 -1
  12. package/dist/components/SwipeButton/SwipeButton.js +1 -1
  13. package/dist/components/TextEditor/EditorToolbar.d.ts +18 -0
  14. package/dist/components/TextEditor/EditorToolbar.d.ts.map +1 -0
  15. package/dist/components/TextEditor/EditorToolbar.js +175 -0
  16. package/dist/components/TextEditor/LinkBubbleMenu.d.ts +52 -0
  17. package/dist/components/TextEditor/LinkBubbleMenu.d.ts.map +1 -0
  18. package/dist/components/TextEditor/LinkBubbleMenu.js +97 -0
  19. package/dist/components/TextEditor/TextEditor.d.ts +134 -0
  20. package/dist/components/TextEditor/TextEditor.d.ts.map +1 -0
  21. package/dist/components/TextEditor/TextEditor.js +240 -0
  22. package/dist/components/TextEditor/TextEditor.stories.d.ts +51 -0
  23. package/dist/components/TextEditor/TextEditor.stories.d.ts.map +1 -0
  24. package/dist/components/TextEditor/ToolbarButton.d.ts +38 -0
  25. package/dist/components/TextEditor/ToolbarButton.d.ts.map +1 -0
  26. package/dist/components/TextEditor/ToolbarButton.js +68 -0
  27. package/dist/components/TextEditor/ToolbarSeparator.d.ts +22 -0
  28. package/dist/components/TextEditor/ToolbarSeparator.d.ts.map +1 -0
  29. package/dist/components/TextEditor/ToolbarSeparator.js +23 -0
  30. package/dist/components/TextEditor/index.d.ts +4 -0
  31. package/dist/components/TextEditor/index.d.ts.map +1 -0
  32. package/dist/components/TextEditor/useLinkEditor.d.ts +37 -0
  33. package/dist/components/TextEditor/useLinkEditor.d.ts.map +1 -0
  34. package/dist/components/TextEditor/useLinkEditor.js +32 -0
  35. package/dist/components/index.d.ts +1 -0
  36. package/dist/components/index.d.ts.map +1 -1
  37. package/dist/index.js +140 -132
  38. package/dist/muza-ui.css +1 -1
  39. package/dist/node_modules/@popperjs/core/lib/createPopper.js +122 -0
  40. package/dist/node_modules/@popperjs/core/lib/dom-utils/contains.js +18 -0
  41. package/dist/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js +23 -0
  42. package/dist/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js +37 -0
  43. package/dist/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js +32 -0
  44. package/dist/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js +7 -0
  45. package/dist/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js +10 -0
  46. package/dist/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js +17 -0
  47. package/dist/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js +9 -0
  48. package/dist/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js +13 -0
  49. package/dist/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js +6 -0
  50. package/dist/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js +10 -0
  51. package/dist/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js +35 -0
  52. package/dist/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js +18 -0
  53. package/dist/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js +10 -0
  54. package/dist/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js +21 -0
  55. package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindow.js +12 -0
  56. package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js +11 -0
  57. package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js +9 -0
  58. package/dist/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js +20 -0
  59. package/dist/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js +7 -0
  60. package/dist/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js +8 -0
  61. package/dist/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js +7 -0
  62. package/dist/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js +16 -0
  63. package/dist/node_modules/@popperjs/core/lib/enums.js +31 -0
  64. package/dist/node_modules/@popperjs/core/lib/modifiers/applyStyles.js +47 -0
  65. package/dist/node_modules/@popperjs/core/lib/modifiers/arrow.js +37 -0
  66. package/dist/node_modules/@popperjs/core/lib/modifiers/computeStyles.js +99 -0
  67. package/dist/node_modules/@popperjs/core/lib/modifiers/eventListeners.js +26 -0
  68. package/dist/node_modules/@popperjs/core/lib/modifiers/flip.js +74 -0
  69. package/dist/node_modules/@popperjs/core/lib/modifiers/hide.js +44 -0
  70. package/dist/node_modules/@popperjs/core/lib/modifiers/offset.js +31 -0
  71. package/dist/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js +19 -0
  72. package/dist/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js +54 -0
  73. package/dist/node_modules/@popperjs/core/lib/popper.js +27 -0
  74. package/dist/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js +27 -0
  75. package/dist/node_modules/@popperjs/core/lib/utils/computeOffsets.js +54 -0
  76. package/dist/node_modules/@popperjs/core/lib/utils/debounce.js +13 -0
  77. package/dist/node_modules/@popperjs/core/lib/utils/detectOverflow.js +33 -0
  78. package/dist/node_modules/@popperjs/core/lib/utils/expandToHashMap.js +8 -0
  79. package/dist/node_modules/@popperjs/core/lib/utils/getAltAxis.js +6 -0
  80. package/dist/node_modules/@popperjs/core/lib/utils/getBasePlacement.js +6 -0
  81. package/dist/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js +11 -0
  82. package/dist/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js +6 -0
  83. package/dist/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js +14 -0
  84. package/dist/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js +12 -0
  85. package/dist/node_modules/@popperjs/core/lib/utils/getVariation.js +6 -0
  86. package/dist/node_modules/@popperjs/core/lib/utils/math.js +6 -0
  87. package/dist/node_modules/@popperjs/core/lib/utils/mergeByName.js +15 -0
  88. package/dist/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js +7 -0
  89. package/dist/node_modules/@popperjs/core/lib/utils/orderModifiers.js +31 -0
  90. package/dist/node_modules/@popperjs/core/lib/utils/rectToClientRect.js +11 -0
  91. package/dist/node_modules/@popperjs/core/lib/utils/userAgent.js +9 -0
  92. package/dist/node_modules/@popperjs/core/lib/utils/within.js +12 -0
  93. package/dist/node_modules/@tiptap/core/dist/index.js +2857 -0
  94. package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +45 -0
  95. package/dist/node_modules/@tiptap/extension-bold/dist/index.js +76 -0
  96. package/dist/node_modules/@tiptap/extension-bubble-menu/dist/index.js +129 -0
  97. package/dist/node_modules/@tiptap/extension-bullet-list/dist/index.js +55 -0
  98. package/dist/node_modules/@tiptap/extension-code/dist/index.js +54 -0
  99. package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +136 -0
  100. package/dist/node_modules/@tiptap/extension-document/dist/index.js +10 -0
  101. package/dist/node_modules/@tiptap/extension-dropcursor/dist/index.js +21 -0
  102. package/dist/node_modules/@tiptap/extension-gapcursor/dist/index.js +25 -0
  103. package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +56 -0
  104. package/dist/node_modules/@tiptap/extension-heading/dist/index.js +55 -0
  105. package/dist/node_modules/@tiptap/extension-history/dist/index.js +36 -0
  106. package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +59 -0
  107. package/dist/node_modules/@tiptap/extension-italic/dist/index.js +75 -0
  108. package/dist/node_modules/@tiptap/extension-link/dist/index.js +272 -0
  109. package/dist/node_modules/@tiptap/extension-list-item/dist/index.js +34 -0
  110. package/dist/node_modules/@tiptap/extension-ordered-list/dist/index.js +73 -0
  111. package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +34 -0
  112. package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js +53 -0
  113. package/dist/node_modules/@tiptap/extension-strike/dist/index.js +64 -0
  114. package/dist/node_modules/@tiptap/extension-text/dist/index.js +9 -0
  115. package/dist/node_modules/@tiptap/react/dist/index.js +709 -0
  116. package/dist/node_modules/@tiptap/starter-kit/dist/index.js +30 -0
  117. package/dist/node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.js +4 -4
  118. package/dist/node_modules/framer-motion/dist/es/animation/animate/subject.js +24 -24
  119. package/dist/node_modules/framer-motion/dist/es/animation/sequence/create.js +61 -56
  120. package/dist/node_modules/framer-motion/dist/es/animation/utils/create-visual-element.js +8 -8
  121. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +32 -30
  122. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +22 -22
  123. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +34 -32
  124. package/dist/node_modules/framer-motion/dist/es/components/Reorder/Group.js +34 -26
  125. package/dist/node_modules/framer-motion/dist/es/components/Reorder/Item.js +30 -25
  126. package/dist/node_modules/framer-motion/dist/es/components/Reorder/utils/auto-scroll.js +64 -0
  127. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +2 -2
  128. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +3 -3
  129. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +100 -89
  130. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +11 -7
  131. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +4 -4
  132. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +2 -2
  133. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +1 -1
  134. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +106 -59
  135. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +6 -6
  136. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +1 -1
  137. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +1 -1
  138. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +5 -5
  139. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +18 -6
  140. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +1 -1
  141. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +27 -42
  142. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +4 -4
  143. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +10 -7
  144. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +4 -4
  145. package/dist/node_modules/framer-motion/dist/es/motion/index.js +49 -49
  146. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +18 -13
  147. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +41 -40
  148. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +13 -13
  149. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +6 -6
  150. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +12 -12
  151. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +3 -3
  152. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +7 -7
  153. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +5 -5
  154. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +1 -1
  155. package/dist/node_modules/framer-motion/dist/es/value/use-transform.js +26 -18
  156. package/dist/node_modules/linkifyjs/dist/linkify.js +707 -0
  157. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +33 -30
  158. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +17 -17
  159. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +20 -19
  160. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +10 -0
  161. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/motion-value.js +13 -13
  162. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/visual-element-target.js +11 -11
  163. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +24 -20
  164. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/utils/default-transitions.js +1 -1
  165. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +7 -3
  166. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +1 -1
  167. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/animation/mix-values.js +2 -2
  168. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/delta-apply.js +4 -4
  169. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/delta-calc.js +1 -1
  170. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/delta-remove.js +6 -6
  171. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/DocumentProjectionNode.js +7 -4
  172. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/create-projection-node.js +149 -149
  173. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +60 -0
  174. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/styles/scale-border-radius.js +1 -1
  175. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/styles/scale-box-shadow.js +2 -2
  176. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +21 -0
  177. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/VisualElement.js +58 -50
  178. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/dom/DOMVisualElement.js +7 -6
  179. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +6 -0
  180. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +38 -0
  181. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +29 -0
  182. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +37 -0
  183. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +14 -0
  184. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +40 -0
  185. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +32 -0
  186. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +15 -0
  187. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +15 -0
  188. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/animation-state.js +31 -31
  189. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/is-controlling-variants.js +1 -1
  190. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +9 -0
  191. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/motion-values.js +6 -6
  192. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +15 -0
  193. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/setters.js +4 -4
  194. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/utils/delay.js +2 -2
  195. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +8 -6
  196. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +62 -42
  197. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +7 -0
  198. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +7 -0
  199. package/dist/node_modules/motion-utils/dist/es/errors.js +10 -9
  200. package/dist/node_modules/orderedmap/dist/index.js +103 -0
  201. package/dist/node_modules/prosemirror-commands/dist/index.js +388 -0
  202. package/dist/node_modules/prosemirror-dropcursor/dist/index.js +86 -0
  203. package/dist/node_modules/prosemirror-gapcursor/dist/index.js +204 -0
  204. package/dist/node_modules/prosemirror-history/dist/index.js +248 -0
  205. package/dist/node_modules/prosemirror-keymap/dist/index.js +62 -0
  206. package/dist/node_modules/prosemirror-model/dist/index.js +2733 -0
  207. package/dist/node_modules/prosemirror-schema-list/dist/index.js +88 -0
  208. package/dist/node_modules/prosemirror-state/dist/index.js +822 -0
  209. package/dist/node_modules/prosemirror-transform/dist/index.js +1520 -0
  210. package/dist/node_modules/prosemirror-view/dist/index.js +3794 -0
  211. package/dist/node_modules/rope-sequence/dist/index.js +100 -0
  212. package/dist/node_modules/tippy.js/dist/tippy.esm.js +813 -0
  213. package/dist/node_modules/w3c-keyname/index.js +93 -0
  214. package/dist/translations/locales/cs.d.ts.map +1 -1
  215. package/dist/translations/locales/cs.js +18 -0
  216. package/dist/translations/locales/en.d.ts.map +1 -1
  217. package/dist/translations/locales/en.js +18 -0
  218. package/dist/translations/locales/sk.d.ts.map +1 -1
  219. package/dist/translations/locales/sk.js +18 -0
  220. package/dist/translations/types.d.ts +22 -0
  221. package/dist/translations/types.d.ts.map +1 -1
  222. package/package.json +17 -1
  223. package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +0 -10
  224. package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +0 -8
  225. package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +0 -58
  226. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +0 -10
  227. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -4
  228. package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +0 -38
  229. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +0 -29
  230. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +0 -31
  231. package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +0 -12
  232. package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +0 -40
  233. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +0 -23
  234. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +0 -18
  235. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +0 -15
  236. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +0 -13
  237. package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +0 -7
  238. package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +0 -7
  239. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/visual-element-variant.js +0 -0
  240. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/visual-element.js +0 -0
  241. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/optimized-appear/data-id.js +0 -0
  242. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/optimized-appear/get-appear-id.js +0 -0
  243. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/utils/calc-child-stagger.js +0 -0
  244. /package/dist/node_modules/{framer-motion/dist/es/animation/animators/waapi → motion-dom/dist/es/animation}/utils/get-final-keyframe.js +0 -0
  245. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/utils/is-transition-defined.js +0 -0
  246. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/events/add-dom-event.js +0 -0
  247. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/conversion.js +0 -0
  248. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/copy.js +0 -0
  249. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/models.js +0 -0
  250. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/utils.js +0 -0
  251. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/HTMLProjectionNode.js +0 -0
  252. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/state.js +0 -0
  253. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/styles/transform.js +0 -0
  254. /package/dist/node_modules/{framer-motion/dist/es/render → motion-dom/dist/es/projection}/utils/compare-by-depth.js +0 -0
  255. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/each-axis.js +0 -0
  256. /package/dist/node_modules/{framer-motion/dist/es/render → motion-dom/dist/es/projection}/utils/flat-tree.js +0 -0
  257. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/has-transform.js +0 -0
  258. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/measure.js +0 -0
  259. /package/dist/node_modules/{framer-motion/dist/es/motion/features → motion-dom/dist/es/render}/Feature.js +0 -0
  260. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/html/utils/render.js +0 -0
  261. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/object/ObjectVisualElement.js +0 -0
  262. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/store.js +0 -0
  263. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/camel-case-attrs.js +0 -0
  264. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/is-svg-tag.js +0 -0
  265. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/render.js +0 -0
  266. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/get-variant-context.js +0 -0
  267. /package/dist/node_modules/{framer-motion/dist/es/animation → motion-dom/dist/es/render}/utils/is-animation-controls.js +0 -0
  268. /package/dist/node_modules/{framer-motion/dist/es/animation → motion-dom/dist/es/render}/utils/is-keyframes-target.js +0 -0
  269. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/is-variant-label.js +0 -0
  270. /package/dist/node_modules/{framer-motion/dist/es → motion-dom/dist/es/render}/utils/reduced-motion/state.js +0 -0
  271. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/resolve-dynamic-variants.js +0 -0
  272. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/resolve-variants.js +0 -0
  273. /package/dist/node_modules/{framer-motion/dist/es → motion-dom/dist/es/render}/utils/shallow-compare.js +0 -0
  274. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/variant-props.js +0 -0
  275. /package/dist/node_modules/{framer-motion/dist/es/value/use-will-change → motion-dom/dist/es/value/will-change}/add-will-change.js +0 -0
@@ -1,37 +1,37 @@
1
- import { animateSingleValue as at } from "../../animation/animate/single-value.js";
2
- import { getOptimisedAppearId as rt } from "../../animation/optimized-appear/get-appear-id.js";
3
- import { FlatTree as nt } from "../../render/utils/flat-tree.js";
4
- import { delay as ht } from "../../utils/delay.js";
1
+ import { getValueTransition as at } from "../../animation/utils/get-value-transition.js";
2
+ import { microtask as rt } from "../../frameloop/microtask.js";
3
+ import { time as nt } from "../../frameloop/sync-time.js";
4
+ import { translateAxis as L, transformBox as E, applyBoxDelta as ht, applyTreeDeltas as lt } from "../geometry/delta-apply.js";
5
+ import { calcLength as P, calcRelativeBox as ut, calcRelativePosition as w, calcBoxDelta as k, isNear as ct } from "../geometry/delta-calc.js";
6
+ import { removeBoxTransforms as b } from "../geometry/delta-remove.js";
7
+ import { copyBoxInto as p, copyAxisDeltaInto as W } from "../geometry/copy.js";
8
+ import { createBox as m, createDelta as B } from "../geometry/models.js";
9
+ import { boxEqualsRounded as et, isDeltaZero as it, axisDeltaEquals as z, boxEquals as dt, aspectRatio as N } from "../geometry/utils.js";
10
+ import { buildProjectionTransform as mt } from "../styles/transform.js";
11
+ import { eachAxis as H } from "../utils/each-axis.js";
12
+ import { hasTransform as S, hasScale as G, has2DTranslate as ft } from "../utils/has-transform.js";
13
+ import { mixValues as pt } from "../animation/mix-values.js";
14
+ import { isSVGElement as yt } from "../../utils/is-svg-element.js";
15
+ import { isSVGSVGElement as gt } from "../../utils/is-svg-svg-element.js";
16
+ import { mixNumber as U } from "../../utils/mix/number.js";
17
+ import { motionValue as vt } from "../../value/index.js";
18
+ import { scaleCorrectors as q } from "../styles/scale-correction.js";
19
+ import { animateSingleValue as Tt } from "../../animation/animate/single-value.js";
20
+ import { getOptimisedAppearId as xt } from "../../animation/optimized-appear/get-appear-id.js";
21
+ import { FlatTree as Dt } from "../utils/flat-tree.js";
22
+ import { delay as St } from "../../utils/delay.js";
5
23
  import { resolveMotionValue as C } from "../../value/utils/resolve-motion-value.js";
6
- import { mixValues as lt } from "../animation/mix-values.js";
7
- import { copyBoxInto as f, copyAxisDeltaInto as b } from "../geometry/copy.js";
8
- import { translateAxis as E, transformBox as w, applyBoxDelta as ut, applyTreeDeltas as ct } from "../geometry/delta-apply.js";
9
- import { calcLength as S, calcRelativePosition as k, calcRelativeBox as dt, calcBoxDelta as L, isNear as mt } from "../geometry/delta-calc.js";
10
- import { removeBoxTransforms as W } from "../geometry/delta-remove.js";
11
- import { createBox as d, createDelta as B } from "../geometry/models.js";
12
- import { boxEqualsRounded as et, isDeltaZero as it, axisDeltaEquals as z, boxEquals as ft, aspectRatio as N } from "../geometry/utils.js";
13
- import { NodeStack as pt } from "../shared/stack.js";
14
- import { scaleCorrectors as H } from "../styles/scale-correction.js";
15
- import { buildProjectionTransform as yt } from "../styles/transform.js";
16
- import { eachAxis as G } from "../utils/each-axis.js";
17
- import { hasTransform as P, hasScale as q, has2DTranslate as gt } from "../utils/has-transform.js";
18
- import { globalProjectionState as O } from "./state.js";
19
- import { SubscriptionManager as vt } from "../../../../../motion-utils/dist/es/subscription-manager.js";
20
- import { isSVGElement as Tt } from "../../../../../motion-dom/dist/es/utils/is-svg-element.js";
21
- import { isSVGSVGElement as xt } from "../../../../../motion-dom/dist/es/utils/is-svg-svg-element.js";
22
- import { frame as V, cancelFrame as X, frameData as y, frameSteps as F } from "../../../../../motion-dom/dist/es/frameloop/frame.js";
23
- import { getValueTransition as Dt } from "../../../../../motion-dom/dist/es/animation/utils/get-value-transition.js";
24
- import { time as Pt } from "../../../../../motion-dom/dist/es/frameloop/sync-time.js";
25
- import { clamp as St } from "../../../../../motion-utils/dist/es/clamp.js";
26
- import { microtask as Bt } from "../../../../../motion-dom/dist/es/frameloop/microtask.js";
27
- import { motionValue as jt } from "../../../../../motion-dom/dist/es/value/index.js";
28
- import { mixNumber as U } from "../../../../../motion-dom/dist/es/utils/mix/number.js";
29
- import { noop as At } from "../../../../../motion-utils/dist/es/noop.js";
30
- const I = ["", "X", "Y", "Z"], Rt = 1e3;
24
+ import { NodeStack as Pt } from "../shared/stack.js";
25
+ import { globalProjectionState as F } from "./state.js";
26
+ import { frame as V, cancelFrame as X, frameData as y, frameSteps as O } from "../../frameloop/frame.js";
27
+ import { SubscriptionManager as Bt } from "../../../../../motion-utils/dist/es/subscription-manager.js";
28
+ import { clamp as Rt } from "../../../../../motion-utils/dist/es/clamp.js";
29
+ import { noop as jt } from "../../../../../motion-utils/dist/es/noop.js";
30
+ const I = ["", "X", "Y", "Z"], At = 1e3;
31
31
  let Vt = 0;
32
- function M(e, n, c, u) {
32
+ function M(e, n, c, l) {
33
33
  const { latestValues: v } = n;
34
- v[e] && (c[e] = v[e], n.setStaticValue(e, 0), u && (u[e] = 0));
34
+ v[e] && (c[e] = v[e], n.setStaticValue(e, 0), l && (l[e] = 0));
35
35
  }
36
36
  function st(e) {
37
37
  if (e.hasCheckedOptimisedAppear = !0, e.root === e)
@@ -39,28 +39,28 @@ function st(e) {
39
39
  const { visualElement: n } = e.options;
40
40
  if (!n)
41
41
  return;
42
- const c = rt(n);
42
+ const c = xt(n);
43
43
  if (window.MotionHasOptimisedAnimation(c, "transform")) {
44
- const { layout: v, layoutId: j } = e.options;
45
- window.MotionCancelOptimisedAnimation(c, "transform", V, !(v || j));
44
+ const { layout: v, layoutId: R } = e.options;
45
+ window.MotionCancelOptimisedAnimation(c, "transform", V, !(v || R));
46
46
  }
47
- const { parent: u } = e;
48
- u && !u.hasCheckedOptimisedAppear && st(u);
47
+ const { parent: l } = e;
48
+ l && !l.hasCheckedOptimisedAppear && st(l);
49
49
  }
50
- function xe({ attachResizeListener: e, defaultParent: n, measureScroll: c, checkIsScrollRoot: u, resetTransform: v }) {
50
+ function xe({ attachResizeListener: e, defaultParent: n, measureScroll: c, checkIsScrollRoot: l, resetTransform: v }) {
51
51
  return class {
52
52
  constructor(t = {}, i = n == null ? void 0 : n()) {
53
- this.id = Vt++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
53
+ this.id = Vt++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.layoutVersion = 0, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
54
54
  this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
55
55
  }, this.updateProjection = () => {
56
- this.projectionUpdateScheduled = !1, this.nodes.forEach(Et), this.nodes.forEach(Ot), this.nodes.forEach(Ft), this.nodes.forEach(wt);
57
- }, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = t, this.root = i ? i.root || i : this, this.path = i ? [...i.path, i] : [], this.parent = i, this.depth = i ? i.depth + 1 : 0;
56
+ this.projectionUpdateScheduled = !1, this.nodes.forEach(Et), this.nodes.forEach(Ft), this.nodes.forEach(Ot), this.nodes.forEach(wt);
57
+ }, this.resolvedRelativeTargetAt = 0, this.linkedParentVersion = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = t, this.root = i ? i.root || i : this, this.path = i ? [...i.path, i] : [], this.parent = i, this.depth = i ? i.depth + 1 : 0;
58
58
  for (let s = 0; s < this.path.length; s++)
59
59
  this.path[s].shouldResetTransform = !0;
60
- this.root === this && (this.nodes = new nt());
60
+ this.root === this && (this.nodes = new Dt());
61
61
  }
62
62
  addEventListener(t, i) {
63
- return this.eventHandlers.has(t) || this.eventHandlers.set(t, new vt()), this.eventHandlers.get(t).add(i);
63
+ return this.eventHandlers.has(t) || this.eventHandlers.set(t, new Bt()), this.eventHandlers.get(t).add(i);
64
64
  }
65
65
  notifyListeners(t, ...i) {
66
66
  const s = this.eventHandlers.get(t);
@@ -75,35 +75,35 @@ function xe({ attachResizeListener: e, defaultParent: n, measureScroll: c, check
75
75
  mount(t) {
76
76
  if (this.instance)
77
77
  return;
78
- this.isSVG = Tt(t) && !xt(t), this.instance = t;
78
+ this.isSVG = yt(t) && !gt(t), this.instance = t;
79
79
  const { layoutId: i, layout: s, visualElement: o } = this.options;
80
80
  if (o && !o.current && o.mount(t), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (s || i) && (this.isLayoutDirty = !0), e) {
81
81
  let a, r = 0;
82
- const l = () => this.root.updateBlockedByResize = !1;
82
+ const h = () => this.root.updateBlockedByResize = !1;
83
83
  V.read(() => {
84
84
  r = window.innerWidth;
85
85
  }), e(t, () => {
86
- const h = window.innerWidth;
87
- h !== r && (r = h, this.root.updateBlockedByResize = !0, a && a(), a = ht(l, 250), O.hasAnimatedSinceResize && (O.hasAnimatedSinceResize = !1, this.nodes.forEach(Z)));
86
+ const u = window.innerWidth;
87
+ u !== r && (r = u, this.root.updateBlockedByResize = !0, a && a(), a = St(h, 250), F.hasAnimatedSinceResize && (F.hasAnimatedSinceResize = !1, this.nodes.forEach(Z)));
88
88
  });
89
89
  }
90
- i && this.root.registerSharedNode(i, this), this.options.animate !== !1 && o && (i || s) && this.addEventListener("didUpdate", ({ delta: a, hasLayoutChanged: r, hasRelativeLayoutChanged: l, layout: h }) => {
90
+ i && this.root.registerSharedNode(i, this), this.options.animate !== !1 && o && (i || s) && this.addEventListener("didUpdate", ({ delta: a, hasLayoutChanged: r, hasRelativeLayoutChanged: h, layout: u }) => {
91
91
  if (this.isTreeAnimationBlocked()) {
92
92
  this.target = void 0, this.relativeTarget = void 0;
93
93
  return;
94
94
  }
95
- const m = this.options.transition || o.getDefaultTransition() || zt, { onLayoutAnimationStart: g, onLayoutAnimationComplete: T } = o.getProps(), D = !this.targetLayout || !et(this.targetLayout, h), x = !r && l;
95
+ const d = this.options.transition || o.getDefaultTransition() || zt, { onLayoutAnimationStart: g, onLayoutAnimationComplete: T } = o.getProps(), D = !this.targetLayout || !et(this.targetLayout, u), x = !r && h;
96
96
  if (this.options.layoutRoot || this.resumeFrom || x || r && (D || !this.currentAnimation)) {
97
97
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
98
- const p = {
99
- ...Dt(m, "layout"),
98
+ const f = {
99
+ ...at(d, "layout"),
100
100
  onPlay: g,
101
101
  onComplete: T
102
102
  };
103
- (o.shouldReduceMotion || this.options.layoutRoot) && (p.delay = 0, p.type = !1), this.startAnimation(p), this.setAnimationOrigin(a, x);
103
+ (o.shouldReduceMotion || this.options.layoutRoot) && (f.delay = 0, f.type = !1), this.startAnimation(f), this.setAnimationOrigin(a, x);
104
104
  } else
105
105
  r || Z(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
106
- this.targetLayout = h;
106
+ this.targetLayout = u;
107
107
  });
108
108
  }
109
109
  unmount() {
@@ -160,11 +160,11 @@ function xe({ attachResizeListener: e, defaultParent: n, measureScroll: c, check
160
160
  return;
161
161
  }
162
162
  this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Ct), this.nodes.forEach(kt), this.nodes.forEach(Lt)) : this.nodes.forEach($), this.clearAllSnapshots();
163
- const i = Pt.now();
164
- y.delta = St(0, 1e3 / 60, i - y.timestamp), y.timestamp = i, y.isProcessing = !0, F.update.process(y), F.preRender.process(y), F.render.process(y), y.isProcessing = !1;
163
+ const i = nt.now();
164
+ y.delta = Rt(0, 1e3 / 60, i - y.timestamp), y.timestamp = i, y.isProcessing = !0, O.update.process(y), O.preRender.process(y), O.render.process(y), y.isProcessing = !1;
165
165
  }
166
166
  didUpdate() {
167
- this.updateScheduled || (this.updateScheduled = !0, Bt.read(this.scheduleUpdate));
167
+ this.updateScheduled || (this.updateScheduled = !0, rt.read(this.scheduleUpdate));
168
168
  }
169
169
  clearAllSnapshots() {
170
170
  this.nodes.forEach(Ut), this.sharedNodes.forEach(Mt);
@@ -181,7 +181,7 @@ function xe({ attachResizeListener: e, defaultParent: n, measureScroll: c, check
181
181
  * Update measurements
182
182
  */
183
183
  updateSnapshot() {
184
- this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !S(this.snapshot.measuredBox.x) && !S(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
184
+ this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !P(this.snapshot.measuredBox.x) && !P(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
185
185
  }
186
186
  updateLayout() {
187
187
  if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty))
@@ -190,14 +190,14 @@ function xe({ attachResizeListener: e, defaultParent: n, measureScroll: c, check
190
190
  for (let s = 0; s < this.path.length; s++)
191
191
  this.path[s].updateScroll();
192
192
  const t = this.layout;
193
- this.layout = this.measure(!1), this.layoutCorrected = d(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
193
+ this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected = m(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
194
194
  const { visualElement: i } = this.options;
195
195
  i && i.notify("LayoutMeasure", this.layout.layoutBox, t ? t.layoutBox : void 0);
196
196
  }
197
197
  updateScroll(t = "measure") {
198
198
  let i = !!(this.options.layoutScroll && this.instance);
199
199
  if (this.scroll && this.scroll.animationId === this.root.animationId && this.scroll.phase === t && (i = !1), i && this.instance) {
200
- const s = u(this.instance);
200
+ const s = l(this.instance);
201
201
  this.scroll = {
202
202
  animationId: this.root.animationId,
203
203
  phase: t,
@@ -211,7 +211,7 @@ function xe({ attachResizeListener: e, defaultParent: n, measureScroll: c, check
211
211
  if (!v)
212
212
  return;
213
213
  const t = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, i = this.projectionDelta && !it(this.projectionDelta), s = this.getTransformTemplate(), o = s ? s(this.latestValues, "") : void 0, a = o !== this.prevTransformTemplateValue;
214
- t && this.instance && (i || P(this.latestValues) || a) && (v(this.instance, o), this.shouldResetTransform = !1, this.scheduleRender());
214
+ t && this.instance && (i || S(this.latestValues) || a) && (v(this.instance, o), this.shouldResetTransform = !1, this.scheduleRender());
215
215
  }
216
216
  measure(t = !0) {
217
217
  const i = this.measurePageBox();
@@ -228,49 +228,49 @@ function xe({ attachResizeListener: e, defaultParent: n, measureScroll: c, check
228
228
  var o;
229
229
  const { visualElement: t } = this.options;
230
230
  if (!t)
231
- return d();
231
+ return m();
232
232
  const i = t.measureViewportBox();
233
233
  if (!(((o = this.scroll) == null ? void 0 : o.wasRoot) || this.path.some(Ht))) {
234
234
  const { scroll: a } = this.root;
235
- a && (E(i.x, a.offset.x), E(i.y, a.offset.y));
235
+ a && (L(i.x, a.offset.x), L(i.y, a.offset.y));
236
236
  }
237
237
  return i;
238
238
  }
239
239
  removeElementScroll(t) {
240
240
  var s;
241
- const i = d();
242
- if (f(i, t), (s = this.scroll) != null && s.wasRoot)
241
+ const i = m();
242
+ if (p(i, t), (s = this.scroll) != null && s.wasRoot)
243
243
  return i;
244
244
  for (let o = 0; o < this.path.length; o++) {
245
- const a = this.path[o], { scroll: r, options: l } = a;
246
- a !== this.root && r && l.layoutScroll && (r.wasRoot && f(i, t), E(i.x, r.offset.x), E(i.y, r.offset.y));
245
+ const a = this.path[o], { scroll: r, options: h } = a;
246
+ a !== this.root && r && h.layoutScroll && (r.wasRoot && p(i, t), L(i.x, r.offset.x), L(i.y, r.offset.y));
247
247
  }
248
248
  return i;
249
249
  }
250
250
  applyTransform(t, i = !1) {
251
- const s = d();
252
- f(s, t);
251
+ const s = m();
252
+ p(s, t);
253
253
  for (let o = 0; o < this.path.length; o++) {
254
254
  const a = this.path[o];
255
- !i && a.options.layoutScroll && a.scroll && a !== a.root && w(s, {
255
+ !i && a.options.layoutScroll && a.scroll && a !== a.root && E(s, {
256
256
  x: -a.scroll.offset.x,
257
257
  y: -a.scroll.offset.y
258
- }), P(a.latestValues) && w(s, a.latestValues);
258
+ }), S(a.latestValues) && E(s, a.latestValues);
259
259
  }
260
- return P(this.latestValues) && w(s, this.latestValues), s;
260
+ return S(this.latestValues) && E(s, this.latestValues), s;
261
261
  }
262
262
  removeTransform(t) {
263
- const i = d();
264
- f(i, t);
263
+ const i = m();
264
+ p(i, t);
265
265
  for (let s = 0; s < this.path.length; s++) {
266
266
  const o = this.path[s];
267
- if (!o.instance || !P(o.latestValues))
267
+ if (!o.instance || !S(o.latestValues))
268
268
  continue;
269
- q(o.latestValues) && o.updateSnapshot();
270
- const a = d(), r = o.measurePageBox();
271
- f(a, r), W(i, o.latestValues, o.snapshot ? o.snapshot.layoutBox : void 0, a);
269
+ G(o.latestValues) && o.updateSnapshot();
270
+ const a = m(), r = o.measurePageBox();
271
+ p(a, r), b(i, o.latestValues, o.snapshot ? o.snapshot.layoutBox : void 0, a);
272
272
  }
273
- return P(this.latestValues) && W(i, this.latestValues), i;
273
+ return S(this.latestValues) && b(i, this.latestValues), i;
274
274
  }
275
275
  setTargetDelta(t) {
276
276
  this.targetDelta = t, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -289,50 +289,50 @@ function xe({ attachResizeListener: e, defaultParent: n, measureScroll: c, check
289
289
  this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== y.timestamp && this.relativeParent.resolveTargetDelta(!0);
290
290
  }
291
291
  resolveTargetDelta(t = !1) {
292
- var l;
292
+ var u;
293
293
  const i = this.getLead();
294
294
  this.isProjectionDirty || (this.isProjectionDirty = i.isProjectionDirty), this.isTransformDirty || (this.isTransformDirty = i.isTransformDirty), this.isSharedProjectionDirty || (this.isSharedProjectionDirty = i.isSharedProjectionDirty);
295
295
  const s = !!this.resumingFrom || this !== i;
296
- if (!(t || s && this.isSharedProjectionDirty || this.isProjectionDirty || (l = this.parent) != null && l.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize))
296
+ if (!(t || s && this.isSharedProjectionDirty || this.isProjectionDirty || (u = this.parent) != null && u.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize))
297
297
  return;
298
298
  const { layout: a, layoutId: r } = this.options;
299
- if (!(!this.layout || !(a || r))) {
300
- if (this.resolvedRelativeTargetAt = y.timestamp, !this.targetDelta && !this.relativeTarget) {
301
- const h = this.getClosestProjectingParent();
302
- h && h.layout && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = d(), this.relativeTargetOrigin = d(), k(this.relativeTargetOrigin, this.layout.layoutBox, h.layout.layoutBox), f(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
303
- }
304
- if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = d(), this.targetWithTransforms = d()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), dt(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : f(this.target, this.layout.layoutBox), ut(this.target, this.targetDelta)) : f(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
305
- this.attemptToResolveRelativeTarget = !1;
306
- const h = this.getClosestProjectingParent();
307
- h && !!h.resumingFrom == !!this.resumingFrom && !h.options.layoutScroll && h.target && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = d(), this.relativeTargetOrigin = d(), k(this.relativeTargetOrigin, this.target, h.target), f(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
308
- }
309
- }
299
+ if (!this.layout || !(a || r))
300
+ return;
301
+ this.resolvedRelativeTargetAt = y.timestamp;
302
+ const h = this.getClosestProjectingParent();
303
+ h && this.linkedParentVersion !== h.layoutVersion && !h.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (h && h.layout ? this.createRelativeTarget(h, this.layout.layoutBox, h.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = m(), this.targetWithTransforms = m()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), ut(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : p(this.target, this.layout.layoutBox), ht(this.target, this.targetDelta)) : p(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, h && !!h.resumingFrom == !!this.resumingFrom && !h.options.layoutScroll && h.target && this.animationProgress !== 1 ? this.createRelativeTarget(h, this.target, h.target) : this.relativeParent = this.relativeTarget = void 0));
310
304
  }
311
305
  getClosestProjectingParent() {
312
- if (!(!this.parent || q(this.parent.latestValues) || gt(this.parent.latestValues)))
306
+ if (!(!this.parent || G(this.parent.latestValues) || ft(this.parent.latestValues)))
313
307
  return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
314
308
  }
315
309
  isProjecting() {
316
310
  return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
317
311
  }
312
+ createRelativeTarget(t, i, s) {
313
+ this.relativeParent = t, this.linkedParentVersion = t.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = m(), this.relativeTargetOrigin = m(), w(this.relativeTargetOrigin, i, s), p(this.relativeTarget, this.relativeTargetOrigin);
314
+ }
315
+ removeRelativeTarget() {
316
+ this.relativeParent = this.relativeTarget = void 0;
317
+ }
318
318
  calcProjection() {
319
- var m;
319
+ var d;
320
320
  const t = this.getLead(), i = !!this.resumingFrom || this !== t;
321
321
  let s = !0;
322
- if ((this.isProjectionDirty || (m = this.parent) != null && m.isProjectionDirty) && (s = !1), i && (this.isSharedProjectionDirty || this.isTransformDirty) && (s = !1), this.resolvedRelativeTargetAt === y.timestamp && (s = !1), s)
322
+ if ((this.isProjectionDirty || (d = this.parent) != null && d.isProjectionDirty) && (s = !1), i && (this.isSharedProjectionDirty || this.isTransformDirty) && (s = !1), this.resolvedRelativeTargetAt === y.timestamp && (s = !1), s)
323
323
  return;
324
324
  const { layout: o, layoutId: a } = this.options;
325
325
  if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(o || a))
326
326
  return;
327
- f(this.layoutCorrected, this.layout.layoutBox);
328
- const r = this.treeScale.x, l = this.treeScale.y;
329
- ct(this.layoutCorrected, this.treeScale, this.path, i), t.layout && !t.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (t.target = t.layout.layoutBox, t.targetWithTransforms = d());
330
- const { target: h } = t;
331
- if (!h) {
327
+ p(this.layoutCorrected, this.layout.layoutBox);
328
+ const r = this.treeScale.x, h = this.treeScale.y;
329
+ lt(this.layoutCorrected, this.treeScale, this.path, i), t.layout && !t.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (t.target = t.layout.layoutBox, t.targetWithTransforms = m());
330
+ const { target: u } = t;
331
+ if (!u) {
332
332
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
333
333
  return;
334
334
  }
335
- !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (b(this.prevProjectionDelta.x, this.projectionDelta.x), b(this.prevProjectionDelta.y, this.projectionDelta.y)), L(this.projectionDelta, this.layoutCorrected, h, this.latestValues), (this.treeScale.x !== r || this.treeScale.y !== l || !z(this.projectionDelta.x, this.prevProjectionDelta.x) || !z(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", h));
335
+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (W(this.prevProjectionDelta.x, this.projectionDelta.x), W(this.prevProjectionDelta.y, this.projectionDelta.y)), k(this.projectionDelta, this.layoutCorrected, u, this.latestValues), (this.treeScale.x !== r || this.treeScale.y !== h || !z(this.projectionDelta.x, this.prevProjectionDelta.x) || !z(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", u));
336
336
  }
337
337
  hide() {
338
338
  this.isVisible = !1;
@@ -354,18 +354,18 @@ function xe({ attachResizeListener: e, defaultParent: n, measureScroll: c, check
354
354
  setAnimationOrigin(t, i = !1) {
355
355
  const s = this.snapshot, o = s ? s.latestValues : {}, a = { ...this.latestValues }, r = B();
356
356
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !i;
357
- const l = d(), h = s ? s.source : void 0, m = this.layout ? this.layout.source : void 0, g = h !== m, T = this.getStack(), D = !T || T.members.length <= 1, x = !!(g && !D && this.options.crossfade === !0 && !this.path.some(Wt));
357
+ const h = m(), u = s ? s.source : void 0, d = this.layout ? this.layout.source : void 0, g = u !== d, T = this.getStack(), D = !T || T.members.length <= 1, x = !!(g && !D && this.options.crossfade === !0 && !this.path.some(Wt));
358
358
  this.animationProgress = 0;
359
- let p;
360
- this.mixTargetDelta = (A) => {
361
- const R = A / 1e3;
362
- J(r.x, t.x, R), J(r.y, t.y, R), this.setTargetDelta(r), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (k(l, this.layout.layoutBox, this.relativeParent.layout.layoutBox), bt(this.relativeTarget, this.relativeTargetOrigin, l, R), p && ft(this.relativeTarget, p) && (this.isProjectionDirty = !1), p || (p = d()), f(p, this.relativeTarget)), g && (this.animationValues = a, lt(a, o, this.latestValues, R, x, D)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = R;
359
+ let f;
360
+ this.mixTargetDelta = (j) => {
361
+ const A = j / 1e3;
362
+ J(r.x, t.x, A), J(r.y, t.y, A), this.setTargetDelta(r), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (w(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), bt(this.relativeTarget, this.relativeTargetOrigin, h, A), f && dt(this.relativeTarget, f) && (this.isProjectionDirty = !1), f || (f = m()), p(f, this.relativeTarget)), g && (this.animationValues = a, pt(a, o, this.latestValues, A, x, D)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = A;
363
363
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
364
364
  }
365
365
  startAnimation(t) {
366
366
  var i, s, o;
367
367
  this.notifyListeners("animationStart"), (i = this.currentAnimation) == null || i.stop(), (o = (s = this.resumingFrom) == null ? void 0 : s.currentAnimation) == null || o.stop(), this.pendingAnimation && (X(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = V.update(() => {
368
- O.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = jt(0)), this.currentAnimation = at(this.motionValue, [0, 1e3], {
368
+ F.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = vt(0)), this.currentAnimation = Tt(this.motionValue, [0, 1e3], {
369
369
  ...t,
370
370
  velocity: 0,
371
371
  isSync: !0,
@@ -386,24 +386,24 @@ function xe({ attachResizeListener: e, defaultParent: n, measureScroll: c, check
386
386
  t && t.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
387
387
  }
388
388
  finishAnimation() {
389
- this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Rt), this.currentAnimation.stop()), this.completeAnimation();
389
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(At), this.currentAnimation.stop()), this.completeAnimation();
390
390
  }
391
391
  applyTransformsToTarget() {
392
392
  const t = this.getLead();
393
393
  let { targetWithTransforms: i, target: s, layout: o, latestValues: a } = t;
394
394
  if (!(!i || !s || !o)) {
395
395
  if (this !== t && this.layout && o && ot(this.options.animationType, this.layout.layoutBox, o.layoutBox)) {
396
- s = this.target || d();
397
- const r = S(this.layout.layoutBox.x);
396
+ s = this.target || m();
397
+ const r = P(this.layout.layoutBox.x);
398
398
  s.x.min = t.target.x.min, s.x.max = s.x.min + r;
399
- const l = S(this.layout.layoutBox.y);
400
- s.y.min = t.target.y.min, s.y.max = s.y.min + l;
399
+ const h = P(this.layout.layoutBox.y);
400
+ s.y.min = t.target.y.min, s.y.max = s.y.min + h;
401
401
  }
402
- f(i, s), w(i, a), L(this.projectionDeltaWithTransform, this.layoutCorrected, i, a);
402
+ p(i, s), E(i, a), k(this.projectionDeltaWithTransform, this.layoutCorrected, i, a);
403
403
  }
404
404
  }
405
405
  registerSharedNode(t, i) {
406
- this.sharedNodes.has(t) || this.sharedNodes.set(t, new pt()), this.sharedNodes.get(t).add(i);
406
+ this.sharedNodes.has(t) || this.sharedNodes.set(t, new Pt()), this.sharedNodes.get(t).add(i);
407
407
  const o = i.options.initialPromotionConfig;
408
408
  i.promote({
409
409
  transition: o ? o.transition : void 0,
@@ -468,26 +468,26 @@ function xe({ attachResizeListener: e, defaultParent: n, measureScroll: c, check
468
468
  }
469
469
  const o = this.getLead();
470
470
  if (!this.projectionDelta || !this.layout || !o.target) {
471
- this.options.layoutId && (t.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, t.pointerEvents = C(i == null ? void 0 : i.pointerEvents) || ""), this.hasProjected && !P(this.latestValues) && (t.transform = s ? s({}, "") : "none", this.hasProjected = !1);
471
+ this.options.layoutId && (t.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, t.pointerEvents = C(i == null ? void 0 : i.pointerEvents) || ""), this.hasProjected && !S(this.latestValues) && (t.transform = s ? s({}, "") : "none", this.hasProjected = !1);
472
472
  return;
473
473
  }
474
474
  t.visibility = "";
475
475
  const a = o.animationValues || o.latestValues;
476
476
  this.applyTransformsToTarget();
477
- let r = yt(this.projectionDeltaWithTransform, this.treeScale, a);
477
+ let r = mt(this.projectionDeltaWithTransform, this.treeScale, a);
478
478
  s && (r = s(a, r)), t.transform = r;
479
- const { x: l, y: h } = this.projectionDelta;
480
- t.transformOrigin = `${l.origin * 100}% ${h.origin * 100}% 0`, o.animationValues ? t.opacity = o === this ? a.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : a.opacityExit : t.opacity = o === this ? a.opacity !== void 0 ? a.opacity : "" : a.opacityExit !== void 0 ? a.opacityExit : 0;
481
- for (const m in H) {
482
- if (a[m] === void 0)
479
+ const { x: h, y: u } = this.projectionDelta;
480
+ t.transformOrigin = `${h.origin * 100}% ${u.origin * 100}% 0`, o.animationValues ? t.opacity = o === this ? a.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : a.opacityExit : t.opacity = o === this ? a.opacity !== void 0 ? a.opacity : "" : a.opacityExit !== void 0 ? a.opacityExit : 0;
481
+ for (const d in q) {
482
+ if (a[d] === void 0)
483
483
  continue;
484
- const { correct: g, applyTo: T, isCSSVariable: D } = H[m], x = r === "none" ? a[m] : g(a[m], o);
484
+ const { correct: g, applyTo: T, isCSSVariable: D } = q[d], x = r === "none" ? a[d] : g(a[d], o);
485
485
  if (T) {
486
- const p = T.length;
487
- for (let A = 0; A < p; A++)
488
- t[T[A]] = x;
486
+ const f = T.length;
487
+ for (let j = 0; j < f; j++)
488
+ t[T[j]] = x;
489
489
  } else
490
- D ? this.options.visualElement.renderState.vars[m] = x : t[m] = x;
490
+ D ? this.options.visualElement.renderState.vars[d] = x : t[d] = x;
491
491
  }
492
492
  this.options.layoutId && (t.pointerEvents = o === this ? C(i == null ? void 0 : i.pointerEvents) || "" : "none");
493
493
  }
@@ -510,34 +510,34 @@ function Lt(e) {
510
510
  var c;
511
511
  const n = ((c = e.resumeFrom) == null ? void 0 : c.snapshot) || e.snapshot;
512
512
  if (e.isLead() && e.layout && n && e.hasListeners("didUpdate")) {
513
- const { layoutBox: u, measuredBox: v } = e.layout, { animationType: j } = e.options, t = n.source !== e.layout.source;
514
- j === "size" ? G((r) => {
515
- const l = t ? n.measuredBox[r] : n.layoutBox[r], h = S(l);
516
- l.min = u[r].min, l.max = l.min + h;
517
- }) : ot(j, n.layoutBox, u) && G((r) => {
518
- const l = t ? n.measuredBox[r] : n.layoutBox[r], h = S(u[r]);
519
- l.max = l.min + h, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[r].max = e.relativeTarget[r].min + h);
513
+ const { layoutBox: l, measuredBox: v } = e.layout, { animationType: R } = e.options, t = n.source !== e.layout.source;
514
+ R === "size" ? H((r) => {
515
+ const h = t ? n.measuredBox[r] : n.layoutBox[r], u = P(h);
516
+ h.min = l[r].min, h.max = h.min + u;
517
+ }) : ot(R, n.layoutBox, l) && H((r) => {
518
+ const h = t ? n.measuredBox[r] : n.layoutBox[r], u = P(l[r]);
519
+ h.max = h.min + u, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[r].max = e.relativeTarget[r].min + u);
520
520
  });
521
521
  const i = B();
522
- L(i, u, n.layoutBox);
522
+ k(i, l, n.layoutBox);
523
523
  const s = B();
524
- t ? L(s, e.applyTransform(v, !0), n.measuredBox) : L(s, u, n.layoutBox);
524
+ t ? k(s, e.applyTransform(v, !0), n.measuredBox) : k(s, l, n.layoutBox);
525
525
  const o = !it(i);
526
526
  let a = !1;
527
527
  if (!e.resumeFrom) {
528
528
  const r = e.getClosestProjectingParent();
529
529
  if (r && !r.resumeFrom) {
530
- const { snapshot: l, layout: h } = r;
531
- if (l && h) {
532
- const m = d();
533
- k(m, n.layoutBox, l.layoutBox);
534
- const g = d();
535
- k(g, u, h.layoutBox), et(m, g) || (a = !0), r.options.layoutRoot && (e.relativeTarget = g, e.relativeTargetOrigin = m, e.relativeParent = r);
530
+ const { snapshot: h, layout: u } = r;
531
+ if (h && u) {
532
+ const d = m();
533
+ w(d, n.layoutBox, h.layoutBox);
534
+ const g = m();
535
+ w(g, l, u.layoutBox), et(d, g) || (a = !0), r.options.layoutRoot && (e.relativeTarget = g, e.relativeTargetOrigin = d, e.relativeParent = r);
536
536
  }
537
537
  }
538
538
  }
539
539
  e.notifyListeners("didUpdate", {
540
- layout: u,
540
+ layout: l,
541
541
  snapshot: n,
542
542
  delta: s,
543
543
  layoutDelta: i,
@@ -545,8 +545,8 @@ function Lt(e) {
545
545
  hasRelativeLayoutChanged: a
546
546
  });
547
547
  } else if (e.isLead()) {
548
- const { onExitComplete: u } = e.options;
549
- u && u();
548
+ const { onExitComplete: l } = e.options;
549
+ l && l();
550
550
  }
551
551
  e.options.transition = void 0;
552
552
  }
@@ -572,10 +572,10 @@ function Ct(e) {
572
572
  function Z(e) {
573
573
  e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
574
574
  }
575
- function Ot(e) {
575
+ function Ft(e) {
576
576
  e.resolveTargetDelta();
577
577
  }
578
- function Ft(e) {
578
+ function Ot(e) {
579
579
  e.calcProjection();
580
580
  }
581
581
  function It(e) {
@@ -587,11 +587,11 @@ function Mt(e) {
587
587
  function J(e, n, c) {
588
588
  e.translate = U(n.translate, 0, c), e.scale = U(n.scale, 1, c), e.origin = n.origin, e.originPoint = n.originPoint;
589
589
  }
590
- function K(e, n, c, u) {
591
- e.min = U(n.min, c.min, u), e.max = U(n.max, c.max, u);
590
+ function K(e, n, c, l) {
591
+ e.min = U(n.min, c.min, l), e.max = U(n.max, c.max, l);
592
592
  }
593
- function bt(e, n, c, u) {
594
- K(e.x, n.x, c.x, u), K(e.y, n.y, c.y, u);
593
+ function bt(e, n, c, l) {
594
+ K(e.x, n.x, c.x, l), K(e.y, n.y, c.y, l);
595
595
  }
596
596
  function Wt(e) {
597
597
  return e.animationValues && e.animationValues.opacityExit !== void 0;
@@ -599,7 +599,7 @@ function Wt(e) {
599
599
  const zt = {
600
600
  duration: 0.45,
601
601
  ease: [0.4, 0, 0.1, 1]
602
- }, Q = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), _ = Q("applewebkit/") && !Q("chrome/") ? Math.round : At;
602
+ }, Q = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), _ = Q("applewebkit/") && !Q("chrome/") ? Math.round : jt;
603
603
  function tt(e) {
604
604
  e.min = _(e.min), e.max = _(e.max);
605
605
  }
@@ -607,7 +607,7 @@ function Nt(e) {
607
607
  tt(e.x), tt(e.y);
608
608
  }
609
609
  function ot(e, n, c) {
610
- return e === "position" || e === "preserve-aspect" && !mt(N(n), N(c), 0.2);
610
+ return e === "position" || e === "preserve-aspect" && !ct(N(n), N(c), 0.2);
611
611
  }
612
612
  function Ht(e) {
613
613
  var n;
@@ -0,0 +1,60 @@
1
+ import { addUniqueItem as n, removeItem as a } from "../../../../../motion-utils/dist/es/array.js";
2
+ class l {
3
+ constructor() {
4
+ this.members = [];
5
+ }
6
+ add(e) {
7
+ n(this.members, e), e.scheduleRender();
8
+ }
9
+ remove(e) {
10
+ if (a(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
11
+ const s = this.members[this.members.length - 1];
12
+ s && this.promote(s);
13
+ }
14
+ }
15
+ relegate(e) {
16
+ const s = this.members.findIndex((i) => e === i);
17
+ if (s === 0)
18
+ return !1;
19
+ let t;
20
+ for (let i = s; i >= 0; i--) {
21
+ const r = this.members[i];
22
+ if (r.isPresent !== !1) {
23
+ t = r;
24
+ break;
25
+ }
26
+ }
27
+ return t ? (this.promote(t), !0) : !1;
28
+ }
29
+ promote(e, s) {
30
+ const t = this.lead;
31
+ if (e !== t && (this.prevLead = t, this.lead = e, e.show(), t)) {
32
+ t.instance && t.scheduleRender(), e.scheduleRender();
33
+ const i = t.options.layoutDependency, r = e.options.layoutDependency;
34
+ i !== void 0 && r !== void 0 && i === r || (e.resumeFrom = t, s && (e.resumeFrom.preserveOpacity = !0), t.snapshot && (e.snapshot = t.snapshot, e.snapshot.latestValues = t.animationValues || t.latestValues), e.root && e.root.isUpdating && (e.isLayoutDirty = !0));
35
+ const { crossfade: o } = e.options;
36
+ o === !1 && t.hide();
37
+ }
38
+ }
39
+ exitAnimationComplete() {
40
+ this.members.forEach((e) => {
41
+ const { options: s, resumingFrom: t } = e;
42
+ s.onExitComplete && s.onExitComplete(), t && t.options.onExitComplete && t.options.onExitComplete();
43
+ });
44
+ }
45
+ scheduleRender() {
46
+ this.members.forEach((e) => {
47
+ e.instance && e.scheduleRender(!1);
48
+ });
49
+ }
50
+ /**
51
+ * Clear any leads that have been removed this render to prevent them from being
52
+ * used in future animations and to prevent memory leaks
53
+ */
54
+ removeLeadSnapshot() {
55
+ this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
56
+ }
57
+ }
58
+ export {
59
+ l as NodeStack
60
+ };
@@ -1,4 +1,4 @@
1
- import { px as c } from "../../../../../motion-dom/dist/es/value/types/numbers/units.js";
1
+ import { px as c } from "../../value/types/numbers/units.js";
2
2
  function e(r, n) {
3
3
  return n.max === n.min ? 0 : r / (n.max - n.min) * 100;
4
4
  }