@nethesis/phone-island 1.0.5-dev.4 → 1.0.6-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (301) hide show
  1. package/README.md +35 -0
  2. package/dist/App.js +1 -1
  3. package/dist/App.js.map +1 -1
  4. package/dist/_virtual/index8.js +1 -1
  5. package/dist/_virtual/index9.js +1 -1
  6. package/dist/components/AudioPlayerView/Progress.js +1 -1
  7. package/dist/components/AudioPlayerView/Progress.js.map +1 -1
  8. package/dist/components/CallView/BackCall.js +1 -1
  9. package/dist/components/CallView/BackCall.js.map +1 -1
  10. package/dist/components/CallView/DisplayName.js +1 -1
  11. package/dist/components/CallView/DisplayName.js.map +1 -1
  12. package/dist/components/CallView/DisplayNameUtils.js +1 -1
  13. package/dist/components/CallView/DisplayNameUtils.js.map +1 -1
  14. package/dist/components/CallView/Number.js +1 -1
  15. package/dist/components/CallView/Number.js.map +1 -1
  16. package/dist/components/CallView/index.js +1 -1
  17. package/dist/components/CallView/index.js.map +1 -1
  18. package/dist/components/SideView/hooks/useSideViewLogic.js +1 -1
  19. package/dist/components/SideView/hooks/useSideViewLogic.js.map +1 -1
  20. package/dist/components/Socket.js +1 -1
  21. package/dist/components/Socket.js.map +1 -1
  22. package/dist/components/TextScroll.js +1 -1
  23. package/dist/components/TextScroll.js.map +1 -1
  24. package/dist/events/SocketEvents.js +1 -1
  25. package/dist/events/SocketEvents.js.map +1 -1
  26. package/dist/index.css +1 -1
  27. package/dist/lib/devices/devices.js +1 -1
  28. package/dist/lib/phone/queue.js +2 -0
  29. package/dist/lib/phone/queue.js.map +1 -0
  30. package/dist/models/currentCall.js +1 -1
  31. package/dist/models/currentCall.js.map +1 -1
  32. package/dist/models/index.js +1 -1
  33. package/dist/models/index.js.map +1 -1
  34. package/dist/models/queue.js +2 -0
  35. package/dist/models/queue.js.map +1 -0
  36. package/dist/node_modules/@fortawesome/react-fontawesome/index.es.js +1 -1
  37. package/dist/node_modules/@headlessui/react/dist/components/label/label.js +1 -1
  38. package/dist/node_modules/@headlessui/react/dist/components/label/label.js.map +1 -1
  39. package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine-glue.js +1 -1
  40. package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine-glue.js.map +1 -1
  41. package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine.js +1 -1
  42. package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine.js.map +1 -1
  43. package/dist/node_modules/@headlessui/react/dist/components/transition/transition.js +1 -1
  44. package/dist/node_modules/@headlessui/react/dist/components/transition/transition.js.map +1 -1
  45. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.js +1 -1
  46. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.js.map +1 -1
  47. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.js +1 -1
  48. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.js.map +1 -1
  49. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.js +1 -1
  50. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.js.map +1 -1
  51. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.js +1 -1
  52. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.js.map +1 -1
  53. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.js +1 -1
  54. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.js.map +1 -1
  55. package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.js +1 -1
  56. package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.js.map +1 -1
  57. package/dist/node_modules/@headlessui/react/dist/hooks/use-element-size.js +1 -1
  58. package/dist/node_modules/@headlessui/react/dist/hooks/use-element-size.js.map +1 -1
  59. package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js +1 -1
  60. package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js.map +1 -1
  61. package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js +1 -1
  62. package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js.map +1 -1
  63. package/dist/node_modules/@headlessui/react/dist/hooks/use-inert-others.js +1 -1
  64. package/dist/node_modules/@headlessui/react/dist/hooks/use-inert-others.js.map +1 -1
  65. package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js +1 -1
  66. package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js.map +1 -1
  67. package/dist/node_modules/@headlessui/react/dist/hooks/use-quick-release.js +1 -1
  68. package/dist/node_modules/@headlessui/react/dist/hooks/use-quick-release.js.map +1 -1
  69. package/dist/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.js +1 -1
  70. package/dist/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.js.map +1 -1
  71. package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js +1 -1
  72. package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js.map +1 -1
  73. package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js +1 -1
  74. package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js.map +1 -1
  75. package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js +1 -1
  76. package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js.map +1 -1
  77. package/dist/node_modules/@headlessui/react/dist/internal/floating.js +1 -1
  78. package/dist/node_modules/@headlessui/react/dist/internal/floating.js.map +1 -1
  79. package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js +1 -1
  80. package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js.map +1 -1
  81. package/dist/node_modules/@headlessui/react/dist/machine.js +1 -1
  82. package/dist/node_modules/@headlessui/react/dist/machine.js.map +1 -1
  83. package/dist/node_modules/@headlessui/react/dist/react-glue.js +1 -1
  84. package/dist/node_modules/@headlessui/react/dist/react-glue.js.map +1 -1
  85. package/dist/node_modules/@headlessui/react/dist/utils/class-names.js +1 -1
  86. package/dist/node_modules/@headlessui/react/dist/utils/class-names.js.map +1 -1
  87. package/dist/node_modules/@headlessui/react/dist/utils/disposables.js +1 -1
  88. package/dist/node_modules/@headlessui/react/dist/utils/disposables.js.map +1 -1
  89. package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js +1 -1
  90. package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js.map +1 -1
  91. package/dist/node_modules/@headlessui/react/dist/utils/match.js +1 -1
  92. package/dist/node_modules/@headlessui/react/dist/utils/match.js.map +1 -1
  93. package/dist/node_modules/@headlessui/react/dist/utils/render.js +1 -1
  94. package/dist/node_modules/@headlessui/react/dist/utils/render.js.map +1 -1
  95. package/dist/node_modules/@headlessui/react/dist/utils/store.js +1 -1
  96. package/dist/node_modules/@headlessui/react/dist/utils/store.js.map +1 -1
  97. package/dist/node_modules/@react-aria/focus/dist/FocusScope.mjs.js +1 -1
  98. package/dist/node_modules/@react-aria/focus/dist/FocusScope.mjs.js.map +1 -1
  99. package/dist/node_modules/@react-aria/focus/dist/useFocusRing.mjs.js +1 -1
  100. package/dist/node_modules/@react-aria/focus/dist/useFocusRing.mjs.js.map +1 -1
  101. package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.mjs.js +1 -1
  102. package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.mjs.js.map +1 -1
  103. package/dist/node_modules/@react-aria/utils/dist/useEffectEvent.mjs.js +1 -1
  104. package/dist/node_modules/@react-aria/utils/dist/useEffectEvent.mjs.js.map +1 -1
  105. package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.mjs.js +1 -1
  106. package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.mjs.js.map +1 -1
  107. package/dist/node_modules/engine.io-client/build/esm/socket.js +1 -1
  108. package/dist/node_modules/engine.io-client/build/esm/socket.js.map +1 -1
  109. package/dist/node_modules/engine.io-client/build/esm/transport.js +1 -1
  110. package/dist/node_modules/engine.io-client/build/esm/transport.js.map +1 -1
  111. package/dist/node_modules/engine.io-client/build/esm/transports/polling.js +1 -1
  112. package/dist/node_modules/engine.io-client/build/esm/transports/polling.js.map +1 -1
  113. package/dist/node_modules/engine.io-client/build/esm/transports/webtransport.js +1 -1
  114. package/dist/node_modules/engine.io-client/build/esm/transports/webtransport.js.map +1 -1
  115. package/dist/node_modules/engine.io-client/build/esm/util.js +1 -1
  116. package/dist/node_modules/engine.io-client/build/esm/util.js.map +1 -1
  117. package/dist/node_modules/engine.io-parser/build/esm/encodePacket.browser.js +1 -1
  118. package/dist/node_modules/engine.io-parser/build/esm/encodePacket.browser.js.map +1 -1
  119. package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs.js +1 -1
  120. package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs.js.map +1 -1
  121. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.mjs.js +1 -1
  122. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.mjs.js.map +1 -1
  123. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs.js +1 -1
  124. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs.js.map +1 -1
  125. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.mjs.js +1 -1
  126. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.mjs.js.map +1 -1
  127. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.mjs.js +1 -1
  128. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.mjs.js.map +1 -1
  129. package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs.js +1 -1
  130. package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs.js.map +1 -1
  131. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.mjs.js +1 -1
  132. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.mjs.js.map +1 -1
  133. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs.js +1 -1
  134. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs.js.map +1 -1
  135. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs.js +1 -1
  136. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs.js.map +1 -1
  137. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs.js +1 -1
  138. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs.js.map +1 -1
  139. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs.js +1 -1
  140. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs.js.map +1 -1
  141. package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.mjs.js +1 -1
  142. package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.mjs.js.map +1 -1
  143. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs.js +1 -1
  144. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs.js.map +1 -1
  145. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs.js +1 -1
  146. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs.js.map +1 -1
  147. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs.js +1 -1
  148. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs.js.map +1 -1
  149. package/dist/node_modules/framer-motion/dist/es/gestures/press.mjs.js +1 -1
  150. package/dist/node_modules/framer-motion/dist/es/gestures/press.mjs.js.map +1 -1
  151. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs.js +1 -1
  152. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs.js.map +1 -1
  153. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs.js +1 -1
  154. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs.js.map +1 -1
  155. package/dist/node_modules/framer-motion/dist/es/motion/index.mjs.js +1 -1
  156. package/dist/node_modules/framer-motion/dist/es/motion/index.mjs.js.map +1 -1
  157. package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs.js +1 -1
  158. package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs.js.map +1 -1
  159. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs.js +1 -1
  160. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs.js.map +1 -1
  161. package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.mjs.js +1 -1
  162. package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.mjs.js.map +1 -1
  163. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.mjs.js +1 -1
  164. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.mjs.js.map +1 -1
  165. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.mjs.js +1 -1
  166. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.mjs.js.map +1 -1
  167. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.mjs.js +1 -1
  168. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.mjs.js.map +1 -1
  169. package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.mjs.js +1 -1
  170. package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.mjs.js.map +1 -1
  171. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs.js +1 -1
  172. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs.js.map +1 -1
  173. package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.mjs.js +1 -1
  174. package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.mjs.js.map +1 -1
  175. package/dist/node_modules/framer-motion/dist/es/render/VisualElement.mjs.js +1 -1
  176. package/dist/node_modules/framer-motion/dist/es/render/VisualElement.mjs.js.map +1 -1
  177. package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.mjs.js +1 -1
  178. package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.mjs.js.map +1 -1
  179. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.mjs.js +1 -1
  180. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.mjs.js.map +1 -1
  181. package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.mjs.js +1 -1
  182. package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.mjs.js.map +1 -1
  183. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.mjs.js +1 -1
  184. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.mjs.js.map +1 -1
  185. package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.mjs.js +1 -1
  186. package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.mjs.js.map +1 -1
  187. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.mjs.js +1 -1
  188. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.mjs.js.map +1 -1
  189. package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.mjs.js +1 -1
  190. package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.mjs.js.map +1 -1
  191. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.mjs.js +1 -1
  192. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.mjs.js.map +1 -1
  193. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.mjs.js +1 -1
  194. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.mjs.js.map +1 -1
  195. package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.mjs.js +1 -1
  196. package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.mjs.js.map +1 -1
  197. package/dist/node_modules/framer-motion/dist/es/utils/delay.mjs.js +1 -1
  198. package/dist/node_modules/framer-motion/dist/es/utils/delay.mjs.js.map +1 -1
  199. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.mjs.js +1 -1
  200. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.mjs.js.map +1 -1
  201. package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +1 -1
  202. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +1 -1
  203. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +1 -1
  204. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
  205. package/dist/node_modules/js-base64/base64.mjs.js +1 -1
  206. package/dist/node_modules/js-base64/base64.mjs.js.map +1 -1
  207. package/dist/node_modules/mic-check/lib/index.js +1 -1
  208. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs.js +1 -1
  209. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs.js.map +1 -1
  210. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.mjs.js +1 -1
  211. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.mjs.js.map +1 -1
  212. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs.js +1 -1
  213. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs.js.map +1 -1
  214. package/dist/node_modules/motion-dom/dist/es/animation/drivers/driver-frameloop.mjs.js +1 -1
  215. package/dist/node_modules/motion-dom/dist/es/animation/drivers/driver-frameloop.mjs.js.map +1 -1
  216. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.mjs.js +1 -1
  217. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.mjs.js.map +1 -1
  218. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs.js +1 -1
  219. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs.js.map +1 -1
  220. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/find.mjs.js +1 -1
  221. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/find.mjs.js.map +1 -1
  222. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/index.mjs.js +1 -1
  223. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/index.mjs.js.map +1 -1
  224. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs.js +1 -1
  225. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs.js.map +1 -1
  226. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs.js +1 -1
  227. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs.js.map +1 -1
  228. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs.js +1 -1
  229. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs.js.map +1 -1
  230. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs.js +1 -1
  231. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs.js.map +1 -1
  232. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs.js +1 -1
  233. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs.js.map +1 -1
  234. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs.js +1 -1
  235. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs.js.map +1 -1
  236. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs.js +1 -1
  237. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs.js.map +1 -1
  238. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs.js +1 -1
  239. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs.js.map +1 -1
  240. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs.js +1 -1
  241. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs.js.map +1 -1
  242. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.mjs.js +1 -1
  243. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.mjs.js.map +1 -1
  244. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.mjs.js +1 -1
  245. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.mjs.js.map +1 -1
  246. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.mjs.js +1 -1
  247. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.mjs.js.map +1 -1
  248. package/dist/node_modules/motion-dom/dist/es/gestures/hover.mjs.js +1 -1
  249. package/dist/node_modules/motion-dom/dist/es/gestures/hover.mjs.js.map +1 -1
  250. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.mjs.js +1 -1
  251. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.mjs.js.map +1 -1
  252. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.mjs.js +1 -1
  253. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.mjs.js.map +1 -1
  254. package/dist/node_modules/motion-dom/dist/es/value/index.mjs.js +1 -1
  255. package/dist/node_modules/motion-dom/dist/es/value/index.mjs.js.map +1 -1
  256. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs.js +1 -1
  257. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs.js.map +1 -1
  258. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.mjs.js +1 -1
  259. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.mjs.js.map +1 -1
  260. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.mjs.js +1 -1
  261. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.mjs.js.map +1 -1
  262. package/dist/node_modules/motion-utils/dist/es/pipe.mjs.js +1 -1
  263. package/dist/node_modules/motion-utils/dist/es/pipe.mjs.js.map +1 -1
  264. package/dist/node_modules/prop-types/index.js +1 -1
  265. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +1 -1
  266. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +1 -1
  267. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  268. package/dist/node_modules/react-moment/dist/index.js +1 -1
  269. package/dist/node_modules/react-redux/es/components/Provider.js +1 -1
  270. package/dist/node_modules/react-redux/es/components/Provider.js.map +1 -1
  271. package/dist/node_modules/react-redux/es/hooks/useDispatch.js +1 -1
  272. package/dist/node_modules/react-redux/es/hooks/useDispatch.js.map +1 -1
  273. package/dist/node_modules/react-redux/es/hooks/useSelector.js +1 -1
  274. package/dist/node_modules/react-redux/es/hooks/useSelector.js.map +1 -1
  275. package/dist/node_modules/react-redux/es/hooks/useStore.js +1 -1
  276. package/dist/node_modules/react-redux/es/hooks/useStore.js.map +1 -1
  277. package/dist/node_modules/react-redux/node_modules/react-is/index.js +1 -1
  278. package/dist/node_modules/react-tooltip/dist/react-tooltip.min.mjs.js +1 -1
  279. package/dist/node_modules/react-tooltip/dist/react-tooltip.min.mjs.js.map +1 -1
  280. package/dist/node_modules/socket.io-client/build/esm/socket.js +1 -1
  281. package/dist/node_modules/socket.io-client/build/esm/socket.js.map +1 -1
  282. package/dist/node_modules/socket.io-client/build/esm/url.js +1 -1
  283. package/dist/node_modules/socket.io-client/build/esm/url.js.map +1 -1
  284. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +1 -1
  285. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +1 -1
  286. package/dist/node_modules/use-sync-external-store/shim/index.js +1 -1
  287. package/dist/node_modules/webrtc-adapter/src/js/adapter_factory.js +1 -1
  288. package/dist/node_modules/webrtc-adapter/src/js/adapter_factory.js.map +1 -1
  289. package/dist/node_modules/webrtc-adapter/src/js/safari/safari_shim.js +1 -1
  290. package/dist/node_modules/webrtc-adapter/src/js/safari/safari_shim.js.map +1 -1
  291. package/dist/package.json.js +1 -1
  292. package/dist/public/locales/en/translation.json.js +1 -1
  293. package/dist/public/locales/it/translation.json.js +1 -1
  294. package/dist/styles/CustomRange.styles.js.map +1 -1
  295. package/dist/styles/Island.styles.js +1 -1
  296. package/dist/styles/Island.styles.js.map +1 -1
  297. package/package.json +1 -1
  298. package/dist/node_modules/react-tooltip/dist/react-tooltip.min.css.js +0 -2
  299. package/dist/node_modules/react-tooltip/dist/react-tooltip.min.css.js.map +0 -1
  300. package/dist/node_modules/style-inject/dist/style-inject.es.js +0 -2
  301. package/dist/node_modules/style-inject/dist/style-inject.es.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"transport.js","sources":["../../../../../node_modules/engine.io-client/build/esm/transport.js"],"sourcesContent":["import { decodePacket } from \"engine.io-parser\";\nimport { Emitter } from \"@socket.io/component-emitter\";\nimport { installTimerFunctions } from \"./util.js\";\nimport { encode } from \"./contrib/parseqs.js\";\nexport class TransportError extends Error {\n constructor(reason, description, context) {\n super(reason);\n this.description = description;\n this.context = context;\n this.type = \"TransportError\";\n }\n}\nexport class Transport extends Emitter {\n /**\n * Transport abstract constructor.\n *\n * @param {Object} opts - options\n * @protected\n */\n constructor(opts) {\n super();\n this.writable = false;\n installTimerFunctions(this, opts);\n this.opts = opts;\n this.query = opts.query;\n this.socket = opts.socket;\n }\n /**\n * Emits an error.\n *\n * @param {String} reason\n * @param description\n * @param context - the error context\n * @return {Transport} for chaining\n * @protected\n */\n onError(reason, description, context) {\n super.emitReserved(\"error\", new TransportError(reason, description, context));\n return this;\n }\n /**\n * Opens the transport.\n */\n open() {\n this.readyState = \"opening\";\n this.doOpen();\n return this;\n }\n /**\n * Closes the transport.\n */\n close() {\n if (this.readyState === \"opening\" || this.readyState === \"open\") {\n this.doClose();\n this.onClose();\n }\n return this;\n }\n /**\n * Sends multiple packets.\n *\n * @param {Array} packets\n */\n send(packets) {\n if (this.readyState === \"open\") {\n this.write(packets);\n }\n else {\n // this might happen if the transport was silently closed in the beforeunload event handler\n }\n }\n /**\n * Called upon open\n *\n * @protected\n */\n onOpen() {\n this.readyState = \"open\";\n this.writable = true;\n super.emitReserved(\"open\");\n }\n /**\n * Called with data.\n *\n * @param {String} data\n * @protected\n */\n onData(data) {\n const packet = decodePacket(data, this.socket.binaryType);\n this.onPacket(packet);\n }\n /**\n * Called with a decoded packet.\n *\n * @protected\n */\n onPacket(packet) {\n super.emitReserved(\"packet\", packet);\n }\n /**\n * Called upon close.\n *\n * @protected\n */\n onClose(details) {\n this.readyState = \"closed\";\n super.emitReserved(\"close\", details);\n }\n /**\n * Pauses the transport, in order not to lose packets during an upgrade.\n *\n * @param onPause\n */\n pause(onPause) { }\n createUri(schema, query = {}) {\n return (schema +\n \"://\" +\n this._hostname() +\n this._port() +\n this.opts.path +\n this._query(query));\n }\n _hostname() {\n const hostname = this.opts.hostname;\n return hostname.indexOf(\":\") === -1 ? hostname : \"[\" + hostname + \"]\";\n }\n _port() {\n if (this.opts.port &&\n ((this.opts.secure && Number(this.opts.port !== 443)) ||\n (!this.opts.secure && Number(this.opts.port) !== 80))) {\n return \":\" + this.opts.port;\n }\n else {\n return \"\";\n }\n }\n _query(query) {\n const encodedQuery = encode(query);\n return encodedQuery.length ? \"?\" + encodedQuery : \"\";\n }\n}\n"],"names":["TransportError","Error","constructor","reason","description","context","super","this","type","Transport","Emitter","opts","writable","installTimerFunctions","query","socket","onError","emitReserved","open","readyState","doOpen","close","doClose","onClose","send","packets","write","onOpen","onData","data","packet","decodePacket","binaryType","onPacket","details","pause","onPause","createUri","schema","_hostname","_port","path","_query","hostname","indexOf","port","secure","Number","encodedQuery","encode","length"],"mappings":"mZAIO,MAAMA,UAAuBC,MAChCC,WA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ASC,QAAQ,KAAcD,EAAW,IAAMA,EAAW,GACtE,CACAH,KAAAA,GACI,OAAIjC,KAAKI,KAAKkC,OACRtC,KAAKI,KAAKmC,QAAUC,OAA0B,MAAnBxC,KAAKI,KAAKkC,QACjCtC,KAAKI,KAAKmC,QAAqC,KAA3BC,OAAOxC,KAAKI,KAAKkC,OACpC,IAAMtC,KAAKI,KAAKkC,KAGhB,EAEf,CACAH,MAAAA,CAAO5B,GACH,MAAMkC,EAAeC,SAAOnC,GAC5B,OAAOkC,EAAaE,OAAS,IAAMF,EAAe,EACtD"}
1
+ {"version":3,"file":"transport.js","sources":["../../../../../node_modules/engine.io-client/build/esm/transport.js"],"sourcesContent":["import { decodePacket } from \"engine.io-parser\";\nimport { Emitter } from \"@socket.io/component-emitter\";\nimport { installTimerFunctions } from \"./util.js\";\nimport { encode } from \"./contrib/parseqs.js\";\nexport class TransportError extends Error {\n constructor(reason, description, context) {\n super(reason);\n this.description = description;\n this.context = context;\n this.type = \"TransportError\";\n }\n}\nexport class Transport extends Emitter {\n /**\n * Transport abstract constructor.\n *\n * @param {Object} opts - options\n * @protected\n */\n constructor(opts) {\n super();\n this.writable = false;\n installTimerFunctions(this, opts);\n this.opts = opts;\n this.query = opts.query;\n this.socket = opts.socket;\n }\n /**\n * Emits an error.\n *\n * @param {String} reason\n * @param description\n * @param context - the error context\n * @return {Transport} for chaining\n * @protected\n */\n onError(reason, description, context) {\n super.emitReserved(\"error\", new TransportError(reason, description, context));\n return this;\n }\n /**\n * Opens the transport.\n */\n open() {\n this.readyState = \"opening\";\n this.doOpen();\n return this;\n }\n /**\n * Closes the transport.\n */\n close() {\n if (this.readyState === \"opening\" || this.readyState === \"open\") {\n this.doClose();\n this.onClose();\n }\n return this;\n }\n /**\n * Sends multiple packets.\n *\n * @param {Array} packets\n */\n send(packets) {\n if (this.readyState === \"open\") {\n this.write(packets);\n }\n else {\n // this might happen if the transport was silently closed in the beforeunload event handler\n }\n }\n /**\n * Called upon open\n *\n * @protected\n */\n onOpen() {\n this.readyState = \"open\";\n this.writable = true;\n super.emitReserved(\"open\");\n }\n /**\n * Called with data.\n *\n * @param {String} data\n * @protected\n */\n onData(data) {\n const packet = decodePacket(data, this.socket.binaryType);\n this.onPacket(packet);\n }\n /**\n * Called with a decoded packet.\n *\n * @protected\n */\n onPacket(packet) {\n super.emitReserved(\"packet\", packet);\n }\n /**\n * Called upon close.\n *\n * @protected\n */\n onClose(details) {\n this.readyState = \"closed\";\n super.emitReserved(\"close\", details);\n }\n /**\n * Pauses the transport, in order not to lose packets during an upgrade.\n *\n * @param onPause\n */\n pause(onPause) { }\n createUri(schema, query = {}) {\n return (schema +\n \"://\" +\n this._hostname() +\n this._port() +\n this.opts.path +\n this._query(query));\n }\n _hostname() {\n const hostname = this.opts.hostname;\n return hostname.indexOf(\":\") === -1 ? hostname : \"[\" + hostname + \"]\";\n }\n _port() {\n if (this.opts.port &&\n ((this.opts.secure && Number(this.opts.port !== 443)) ||\n (!this.opts.secure && Number(this.opts.port) !== 80))) {\n return \":\" + this.opts.port;\n }\n else {\n return \"\";\n }\n }\n _query(query) {\n const encodedQuery = encode(query);\n return encodedQuery.length ? \"?\" + encodedQuery : \"\";\n }\n}\n"],"names":["TransportError","Error","constructor","reason","description","context","super","this","type","Transport","Emitter","opts","writable","installTimerFunctions","query","socket","onError","emitReserved","open","readyState","doOpen","close","doClose","onClose","send","packets","write","onOpen","onData","data","packet","decodePacket","binaryType","onPacket","details","pause","onPause","createUri","schema","arguments","length","undefined","_hostname","_port","path","_query","hostname","indexOf","port","secure","Number","encodedQuery","encode"],"mappings":"mZAIO,MAAMA,UAAuBC,MAChCC,WAAAA,CAAYC,EAAQC,EAAaC,GAC7BC,MAAMH,GACNI,KAAKH,YAAcA,EACnBG,KAAKF,QAAUA,EACfE,KAAKC,KAAO,gBAChB,EAEG,MAAMC,UAAkBC,EAAAA,QAO3BR,WAAAA,CAAYS,GACRL,QACAC,KAAKK,UAAW,EAChBC,wBAAsBN,KAAMI,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C,QACjCzC,KAAKI,KAAKsC,QAAqC,KAA3BC,OAAO3C,KAAKI,KAAKqC,OACpC,IAAMzC,KAAKI,KAAKqC,KAGhB,EAEf,CACAH,MAAAA,CAAO/B,GACH,MAAMqC,EAAeC,SAAOtC,GAC5B,OAAOqC,EAAaX,OAAS,IAAMW,EAAe,EACtD"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../transport.js"),e=require("../contrib/yeast.js"),s=require("../../../../engine.io-parser/build/esm/index.js"),i=require("./xmlhttprequest.browser.js"),o=require("../../../../@socket.io/component-emitter/lib/esm/index.js"),r=require("../util.js"),n=require("../globalThis.browser.js");function a(){}const h=null!=new i.XHR({xdomain:!1}).responseType;class d extends t.Transport{constructor(t){if(super(t),this.polling=!1,"undefined"!=typeof location){const e="https:"===location.protocol;let s=location.port;s||(s=e?"443":"80"),this.xd="undefined"!=typeof location&&t.hostname!==location.hostname||s!==t.port}const e=t&&t.forceBase64;this.supportsBinary=h&&!e,this.opts.withCredentials&&(this.cookieJar=i.createCookieJar())}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const e=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let t=0;this.polling&&(t++,this.once("pollComplete",(function(){--t||e()}))),this.writable||(t++,this.once("drain",(function(){--t||e()})))}else e()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){s.decodePayload(t,this.socket.binaryType).forEach((t=>{if("opening"===this.readyState&&"open"===t.type&&this.onOpen(),"close"===t.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(t)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};"open"===this.readyState?t():this.once("open",t)}write(t){this.writable=!1,s.encodePayload(t,(t=>{this.doWrite(t,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const t=this.opts.secure?"https":"http",s=this.query||{};return!1!==this.opts.timestampRequests&&(s[this.opts.timestampParam]=e.yeast()),this.supportsBinary||s.sid||(s.b64=1),this.createUri(t,s)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new l(this.uri(),t)}doWrite(t,e){const s=this.request({method:"POST",data:t});s.on("success",e),s.on("error",((t,e)=>{this.onError("xhr post error",t,e)}))}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",((t,e)=>{this.onError("xhr poll error",t,e)})),this.pollXhr=t}}class l extends o.Emitter{constructor(t,e){super(),r.installTimerFunctions(this,e),this.opts=e,this.method=e.method||"GET",this.uri=t,this.data=void 0!==e.data?e.data:null,this.create()}create(){var t;const e=r.pick(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd;const s=this.xhr=new i.XHR(e);try{s.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let t in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(t)&&s.setRequestHeader(t,this.opts.extraHeaders[t])}}catch(t){}if("POST"===this.method)try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{s.setRequestHeader("Accept","*/*")}catch(t){}null===(t=this.opts.cookieJar)||void 0===t||t.addCookies(s),"withCredentials"in s&&(s.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(s.timeout=this.opts.requestTimeout),s.onreadystatechange=()=>{var t;3===s.readyState&&(null===(t=this.opts.cookieJar)||void 0===t||t.parseCookies(s)),4===s.readyState&&(200===s.status||1223===s.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"==typeof s.status?s.status:0)}),0))},s.send(this.data)}catch(t){return void this.setTimeoutFn((()=>{this.onError(t)}),0)}"undefined"!=typeof document&&(this.index=l.requestsCount++,l.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=a,t)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete l.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;null!==t&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(l.requestsCount=0,l.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",p);else if("function"==typeof addEventListener){const t="onpagehide"in n.globalThisShim?"pagehide":"unload";addEventListener(t,p,!1)}function p(){for(let t in l.requests)l.requests.hasOwnProperty(t)&&l.requests[t].abort()}exports.Polling=d,exports.Request=l;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../transport.js"),e=require("../contrib/yeast.js"),s=require("../../../../engine.io-parser/build/esm/index.js"),i=require("./xmlhttprequest.browser.js"),o=require("../../../../@socket.io/component-emitter/lib/esm/index.js"),r=require("../util.js"),n=require("../globalThis.browser.js");function a(){}const h=null!=new i.XHR({xdomain:!1}).responseType;class d extends t.Transport{constructor(t){if(super(t),this.polling=!1,"undefined"!=typeof location){const e="https:"===location.protocol;let s=location.port;s||(s=e?"443":"80"),this.xd="undefined"!=typeof location&&t.hostname!==location.hostname||s!==t.port}const e=t&&t.forceBase64;this.supportsBinary=h&&!e,this.opts.withCredentials&&(this.cookieJar=i.createCookieJar())}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const e=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let t=0;this.polling&&(t++,this.once("pollComplete",(function(){--t||e()}))),this.writable||(t++,this.once("drain",(function(){--t||e()})))}else e()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){s.decodePayload(t,this.socket.binaryType).forEach((t=>{if("opening"===this.readyState&&"open"===t.type&&this.onOpen(),"close"===t.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(t)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};"open"===this.readyState?t():this.once("open",t)}write(t){this.writable=!1,s.encodePayload(t,(t=>{this.doWrite(t,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const t=this.opts.secure?"https":"http",s=this.query||{};return!1!==this.opts.timestampRequests&&(s[this.opts.timestampParam]=e.yeast()),this.supportsBinary||s.sid||(s.b64=1),this.createUri(t,s)}request(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new l(this.uri(),t)}doWrite(t,e){const s=this.request({method:"POST",data:t});s.on("success",e),s.on("error",((t,e)=>{this.onError("xhr post error",t,e)}))}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",((t,e)=>{this.onError("xhr poll error",t,e)})),this.pollXhr=t}}class l extends o.Emitter{constructor(t,e){super(),r.installTimerFunctions(this,e),this.opts=e,this.method=e.method||"GET",this.uri=t,this.data=void 0!==e.data?e.data:null,this.create()}create(){var t;const e=r.pick(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd;const s=this.xhr=new i.XHR(e);try{s.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let t in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(t)&&s.setRequestHeader(t,this.opts.extraHeaders[t])}}catch(t){}if("POST"===this.method)try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{s.setRequestHeader("Accept","*/*")}catch(t){}null===(t=this.opts.cookieJar)||void 0===t||t.addCookies(s),"withCredentials"in s&&(s.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(s.timeout=this.opts.requestTimeout),s.onreadystatechange=()=>{var t;3===s.readyState&&(null===(t=this.opts.cookieJar)||void 0===t||t.parseCookies(s)),4===s.readyState&&(200===s.status||1223===s.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"==typeof s.status?s.status:0)}),0))},s.send(this.data)}catch(t){return void this.setTimeoutFn((()=>{this.onError(t)}),0)}"undefined"!=typeof document&&(this.index=l.requestsCount++,l.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=a,t)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete l.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;null!==t&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(l.requestsCount=0,l.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",p);else if("function"==typeof addEventListener){const t="onpagehide"in n.globalThisShim?"pagehide":"unload";addEventListener(t,p,!1)}function p(){for(let t in l.requests)l.requests.hasOwnProperty(t)&&l.requests[t].abort()}exports.Polling=d,exports.Request=l;
2
2
  //# sourceMappingURL=polling.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"polling.js","sources":["../../../../../../node_modules/engine.io-client/build/esm/transports/polling.js"],"sourcesContent":["import { Transport } from \"../transport.js\";\nimport { yeast } from \"../contrib/yeast.js\";\nimport { encodePayload, decodePayload } from \"engine.io-parser\";\nimport { createCookieJar, XHR as XMLHttpRequest, } from \"./xmlhttprequest.js\";\nimport { Emitter } from \"@socket.io/component-emitter\";\nimport { installTimerFunctions, pick } from \"../util.js\";\nimport { globalThisShim as globalThis } from \"../globalThis.js\";\nfunction empty() { }\nconst hasXHR2 = (function () {\n const xhr = new XMLHttpRequest({\n xdomain: false,\n });\n return null != xhr.responseType;\n})();\nexport class Polling extends Transport {\n /**\n * XHR Polling constructor.\n *\n * @param {Object} opts\n * @package\n */\n constructor(opts) {\n super(opts);\n this.polling = false;\n if (typeof location !== \"undefined\") {\n const isSSL = \"https:\" === location.protocol;\n let port = location.port;\n // some user agents have empty `location.port`\n if (!port) {\n port = isSSL ? \"443\" : \"80\";\n }\n this.xd =\n (typeof location !== \"undefined\" &&\n opts.hostname !== location.hostname) ||\n port !== opts.port;\n }\n /**\n * XHR supports binary\n */\n const forceBase64 = opts && opts.forceBase64;\n this.supportsBinary = hasXHR2 && !forceBase64;\n if (this.opts.withCredentials) {\n this.cookieJar = createCookieJar();\n }\n }\n get name() {\n return \"polling\";\n }\n /**\n * Opens the socket (triggers polling). We write a PING message to determine\n * when the transport is open.\n *\n * @protected\n */\n doOpen() {\n this.poll();\n }\n /**\n * Pauses polling.\n *\n * @param {Function} onPause - callback upon buffers are flushed and transport is paused\n * @package\n */\n pause(onPause) {\n this.readyState = \"pausing\";\n const pause = () => {\n this.readyState = \"paused\";\n onPause();\n };\n if (this.polling || !this.writable) {\n let total = 0;\n if (this.polling) {\n total++;\n this.once(\"pollComplete\", function () {\n --total || pause();\n });\n }\n if (!this.writable) {\n total++;\n this.once(\"drain\", function () {\n --total || pause();\n });\n }\n }\n else {\n pause();\n }\n }\n /**\n * Starts polling cycle.\n *\n * @private\n */\n poll() {\n this.polling = true;\n this.doPoll();\n this.emitReserved(\"poll\");\n }\n /**\n * Overloads onData to detect payloads.\n *\n * @protected\n */\n onData(data) {\n const callback = (packet) => {\n // if its the first message we consider the transport open\n if (\"opening\" === this.readyState && packet.type === \"open\") {\n this.onOpen();\n }\n // if its a close packet, we close the ongoing requests\n if (\"close\" === packet.type) {\n this.onClose({ description: \"transport closed by the server\" });\n return false;\n }\n // otherwise bypass onData and handle the message\n this.onPacket(packet);\n };\n // decode payload\n decodePayload(data, this.socket.binaryType).forEach(callback);\n // if an event did not trigger closing\n if (\"closed\" !== this.readyState) {\n // if we got data we're not polling\n this.polling = false;\n this.emitReserved(\"pollComplete\");\n if (\"open\" === this.readyState) {\n this.poll();\n }\n else {\n }\n }\n }\n /**\n * For polling, send a close packet.\n *\n * @protected\n */\n doClose() {\n const close = () => {\n this.write([{ type: \"close\" }]);\n };\n if (\"open\" === this.readyState) {\n close();\n }\n else {\n // in case we're trying to close while\n // handshaking is in progress (GH-164)\n this.once(\"open\", close);\n }\n }\n /**\n * Writes a packets payload.\n *\n * @param {Array} packets - data packets\n * @protected\n */\n write(packets) {\n this.writable = false;\n encodePayload(packets, (data) => {\n this.doWrite(data, () => {\n this.writable = true;\n this.emitReserved(\"drain\");\n });\n });\n }\n /**\n * Generates uri for connection.\n *\n * @private\n */\n uri() {\n const schema = this.opts.secure ? \"https\" : \"http\";\n const query = this.query || {};\n // cache busting is forced\n if (false !== this.opts.timestampRequests) {\n query[this.opts.timestampParam] = yeast();\n }\n if (!this.supportsBinary && !query.sid) {\n query.b64 = 1;\n }\n return this.createUri(schema, query);\n }\n /**\n * Creates a request.\n *\n * @param {String} method\n * @private\n */\n request(opts = {}) {\n Object.assign(opts, { xd: this.xd, cookieJar: this.cookieJar }, this.opts);\n return new Request(this.uri(), opts);\n }\n /**\n * Sends data.\n *\n * @param {String} data to send.\n * @param {Function} called upon flush.\n * @private\n */\n doWrite(data, fn) {\n const req = this.request({\n method: \"POST\",\n data: data,\n });\n req.on(\"success\", fn);\n req.on(\"error\", (xhrStatus, context) => {\n this.onError(\"xhr post error\", xhrStatus, context);\n });\n }\n /**\n * Starts a poll cycle.\n *\n * @private\n */\n doPoll() {\n const req = this.request();\n req.on(\"data\", this.onData.bind(this));\n req.on(\"error\", (xhrStatus, context) => {\n this.onError(\"xhr poll error\", xhrStatus, context);\n });\n this.pollXhr = req;\n }\n}\nexport class Request extends Emitter {\n /**\n * Request constructor\n *\n * @param {Object} options\n * @package\n */\n constructor(uri, opts) {\n super();\n installTimerFunctions(this, opts);\n this.opts = opts;\n this.method = opts.method || \"GET\";\n this.uri = uri;\n this.data = undefined !== opts.data ? opts.data : null;\n this.create();\n }\n /**\n * Creates the XHR object and sends the request.\n *\n * @private\n */\n create() {\n var _a;\n const opts = pick(this.opts, \"agent\", \"pfx\", \"key\", \"passphrase\", \"cert\", \"ca\", \"ciphers\", \"rejectUnauthorized\", \"autoUnref\");\n opts.xdomain = !!this.opts.xd;\n const xhr = (this.xhr = new XMLHttpRequest(opts));\n try {\n xhr.open(this.method, this.uri, true);\n try {\n if (this.opts.extraHeaders) {\n xhr.setDisableHeaderCheck && xhr.setDisableHeaderCheck(true);\n for (let i in this.opts.extraHeaders) {\n if (this.opts.extraHeaders.hasOwnProperty(i)) {\n xhr.setRequestHeader(i, this.opts.extraHeaders[i]);\n }\n }\n }\n }\n catch (e) { }\n if (\"POST\" === this.method) {\n try {\n xhr.setRequestHeader(\"Content-type\", \"text/plain;charset=UTF-8\");\n }\n catch (e) { }\n }\n try {\n xhr.setRequestHeader(\"Accept\", \"*/*\");\n }\n catch (e) { }\n (_a = this.opts.cookieJar) === null || _a === void 0 ? void 0 : _a.addCookies(xhr);\n // ie6 check\n if (\"withCredentials\" in xhr) {\n xhr.withCredentials = this.opts.withCredentials;\n }\n if (this.opts.requestTimeout) {\n xhr.timeout = this.opts.requestTimeout;\n }\n xhr.onreadystatechange = () => {\n var _a;\n if (xhr.readyState === 3) {\n (_a = this.opts.cookieJar) === null || _a === void 0 ? void 0 : _a.parseCookies(xhr);\n }\n if (4 !== xhr.readyState)\n return;\n if (200 === xhr.status || 1223 === xhr.status) {\n this.onLoad();\n }\n else {\n // make sure the `error` event handler that's user-set\n // does not throw in the same tick and gets caught here\n this.setTimeoutFn(() => {\n this.onError(typeof xhr.status === \"number\" ? xhr.status : 0);\n }, 0);\n }\n };\n xhr.send(this.data);\n }\n catch (e) {\n // Need to defer since .create() is called directly from the constructor\n // and thus the 'error' event can only be only bound *after* this exception\n // occurs. Therefore, also, we cannot throw here at all.\n this.setTimeoutFn(() => {\n this.onError(e);\n }, 0);\n return;\n }\n if (typeof document !== \"undefined\") {\n this.index = Request.requestsCount++;\n Request.requests[this.index] = this;\n }\n }\n /**\n * Called upon error.\n *\n * @private\n */\n onError(err) {\n this.emitReserved(\"error\", err, this.xhr);\n this.cleanup(true);\n }\n /**\n * Cleans up house.\n *\n * @private\n */\n cleanup(fromError) {\n if (\"undefined\" === typeof this.xhr || null === this.xhr) {\n return;\n }\n this.xhr.onreadystatechange = empty;\n if (fromError) {\n try {\n this.xhr.abort();\n }\n catch (e) { }\n }\n if (typeof document !== \"undefined\") {\n delete Request.requests[this.index];\n }\n this.xhr = null;\n }\n /**\n * Called upon load.\n *\n * @private\n */\n onLoad() {\n const data = this.xhr.responseText;\n if (data !== null) {\n this.emitReserved(\"data\", data);\n this.emitReserved(\"success\");\n this.cleanup();\n }\n }\n /**\n * Aborts the request.\n *\n * @package\n */\n abort() {\n this.cleanup();\n }\n}\nRequest.requestsCount = 0;\nRequest.requests = {};\n/**\n * Aborts pending requests when unloading the window. This is needed to prevent\n * memory leaks (e.g. when using IE) and to ensure that no spurious error is\n * emitted.\n */\nif (typeof document !== \"undefined\") {\n // @ts-ignore\n if (typeof attachEvent === \"function\") {\n // @ts-ignore\n attachEvent(\"onunload\", unloadHandler);\n }\n else if (typeof addEventListener === \"function\") {\n const terminationEvent = \"onpagehide\" in globalThis ? \"pagehide\" : \"unload\";\n addEventListener(terminationEvent, unloadHandler, false);\n }\n}\nfunction unloadHandler() {\n for (let i in Request.requests) {\n if (Request.requests.hasOwnProperty(i)) {\n Request.requests[i].abort();\n }\n }\n}\n"],"names":["empty","hasXHR2","XMLHttpRequest","xdomain","responseType","Polling","Transport","constructor","opts","super","this","polling","location","isSSL","protocol","port","xd","hostname","forceBase64","supportsBinary","withCredentials","cookieJar","createCookieJar","name","doOpen","poll","pause","onPause","readyState","writable","total","once","doPoll","emitReserved","onData","data","decodePayload","socket","binaryType","forEach","packet","type","onOpen","onClose","description","onPacket","doClose","close","write","packets","encodePayload","doWrite","uri","schema","secure","query","timestampRequests","timestampParam","yeast","sid","b64","createUri","request","Object","assign","Request","fn","req","method","on","xhrStatus","context","onError","bind","pollXhr","Emitter","installTimerFunctions","undefined","create","_a","pick","xhr","XHR","open","extraHeaders","setDisableHeaderCheck","i","hasOwnProperty","setRequestHeader","e","addCookies","requestTimeout","timeout","onreadystatechange","parseCookies","status","onLoad","setTimeoutFn","send","document","index","requestsCount","requests","err","cleanup","fromError","abort","responseText","attachEvent","unloadHandler","addEventListener","terminationEvent","globalThis"],"mappings":"iXAOA,SAASA,IAAU,CACnB,MAAMC,EAIK,MAHK,IAAIC,MAAe,CAC3BC,SAAS,IAEMC,aAEhB,MAAMC,UAAgBC,EAAAA,UAOzBC,WAAAA,CAAYC,GAGR,GAFAC,MAAMD,GACNE,KAAKC,SAAU,EACS,oBAAbC,SAA0B,CACjC,MAAMC,EAAQ,WAAaD,SAASE,SACpC,IAAIC,EAAOH,SAASG,KAEfA,IACDA,EAAOF,EAAQ,MAAQ,MAE3BH,KAAKM,GACoB,oBAAbJ,UACJJ,EAAKS,WAAaL,SAASK,UAC3BF,IAASP,EAAKO,IAC1B,CAIA,MAAMG,EAAcV,GAAQA,EAAKU,YACjCR,KAAKS,eAAiBlB,IAAYiB,EAC9BR,KAAKF,KAAKY,kBACVV,KAAKW,UAAYC,EAAAA,kBAEzB,CACA,QAAIC,GACA,MAAO,SACX,CAOAC,MAAAA,GACId,KAAKe,MACT,CAOAC,KAAAA,CAAMC,GACFjB,KAAKkB,WAAa,UAClB,MAAMF,EAAQA,KACVhB,KAAKkB,WAAa,SAClBD,GAAS,EAEb,GAAIjB,KAAKC,UAAYD,KAAKmB,SAAU,CAChC,IAAIC,EAAQ,EACRpB,KAAKC,UACLmB,IACApB,KAAKqB,KAAK,gBAAgB,aACpBD,GAASJ,GACf,KAEChB,KAAKmB,WACNC,IACApB,KAAKqB,KAAK,SAAS,aACbD,GAASJ,GACf,IAER,MAEIA,GAER,CAMAD,IAAAA,GACIf,KAAKC,SAAU,EACfD,KAAKsB,SACLtB,KAAKuB,aAAa,OACtB,CAMAC,MAAAA,CAAOC,GAeHC,EAAaA,cAACD,EAAMzB,KAAK2B,OAAOC,YAAYC,SAd1BC,IAMd,GAJI,YAAc9B,KAAKkB,YAA8B,SAAhBY,EAAOC,MACxC/B,KAAKgC,SAG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C,SAAW,CAAA,EAMK,oBAAbH,SAEP,GAA2B,mBAAhBS,YAEPA,YAAY,WAAYC,QAEvB,GAAgC,mBAArBC,iBAAiC,CAC7C,MAAMC,EAAmB,eAAgBC,iBAAa,WAAa,SACnEF,iBAAiBC,EAAkBF,GAAe,EACtD,CAEJ,SAASA,IACL,IAAK,IAAIvB,KAAKrB,EAAQqC,SACdrC,EAAQqC,SAASf,eAAeD,IAChCrB,EAAQqC,SAAShB,GAAGoB,OAGhC"}
1
+ {"version":3,"file":"polling.js","sources":["../../../../../../node_modules/engine.io-client/build/esm/transports/polling.js"],"sourcesContent":["import { Transport } from \"../transport.js\";\nimport { yeast } from \"../contrib/yeast.js\";\nimport { encodePayload, decodePayload } from \"engine.io-parser\";\nimport { createCookieJar, XHR as XMLHttpRequest, } from \"./xmlhttprequest.js\";\nimport { Emitter } from \"@socket.io/component-emitter\";\nimport { installTimerFunctions, pick } from \"../util.js\";\nimport { globalThisShim as globalThis } from \"../globalThis.js\";\nfunction empty() { }\nconst hasXHR2 = (function () {\n const xhr = new XMLHttpRequest({\n xdomain: false,\n });\n return null != xhr.responseType;\n})();\nexport class Polling extends Transport {\n /**\n * XHR Polling constructor.\n *\n * @param {Object} opts\n * @package\n */\n constructor(opts) {\n super(opts);\n this.polling = false;\n if (typeof location !== \"undefined\") {\n const isSSL = \"https:\" === location.protocol;\n let port = location.port;\n // some user agents have empty `location.port`\n if (!port) {\n port = isSSL ? \"443\" : \"80\";\n }\n this.xd =\n (typeof location !== \"undefined\" &&\n opts.hostname !== location.hostname) ||\n port !== opts.port;\n }\n /**\n * XHR supports binary\n */\n const forceBase64 = opts && opts.forceBase64;\n this.supportsBinary = hasXHR2 && !forceBase64;\n if (this.opts.withCredentials) {\n this.cookieJar = createCookieJar();\n }\n }\n get name() {\n return \"polling\";\n }\n /**\n * Opens the socket (triggers polling). We write a PING message to determine\n * when the transport is open.\n *\n * @protected\n */\n doOpen() {\n this.poll();\n }\n /**\n * Pauses polling.\n *\n * @param {Function} onPause - callback upon buffers are flushed and transport is paused\n * @package\n */\n pause(onPause) {\n this.readyState = \"pausing\";\n const pause = () => {\n this.readyState = \"paused\";\n onPause();\n };\n if (this.polling || !this.writable) {\n let total = 0;\n if (this.polling) {\n total++;\n this.once(\"pollComplete\", function () {\n --total || pause();\n });\n }\n if (!this.writable) {\n total++;\n this.once(\"drain\", function () {\n --total || pause();\n });\n }\n }\n else {\n pause();\n }\n }\n /**\n * Starts polling cycle.\n *\n * @private\n */\n poll() {\n this.polling = true;\n this.doPoll();\n this.emitReserved(\"poll\");\n }\n /**\n * Overloads onData to detect payloads.\n *\n * @protected\n */\n onData(data) {\n const callback = (packet) => {\n // if its the first message we consider the transport open\n if (\"opening\" === this.readyState && packet.type === \"open\") {\n this.onOpen();\n }\n // if its a close packet, we close the ongoing requests\n if (\"close\" === packet.type) {\n this.onClose({ description: \"transport closed by the server\" });\n return false;\n }\n // otherwise bypass onData and handle the message\n this.onPacket(packet);\n };\n // decode payload\n decodePayload(data, this.socket.binaryType).forEach(callback);\n // if an event did not trigger closing\n if (\"closed\" !== this.readyState) {\n // if we got data we're not polling\n this.polling = false;\n this.emitReserved(\"pollComplete\");\n if (\"open\" === this.readyState) {\n this.poll();\n }\n else {\n }\n }\n }\n /**\n * For polling, send a close packet.\n *\n * @protected\n */\n doClose() {\n const close = () => {\n this.write([{ type: \"close\" }]);\n };\n if (\"open\" === this.readyState) {\n close();\n }\n else {\n // in case we're trying to close while\n // handshaking is in progress (GH-164)\n this.once(\"open\", close);\n }\n }\n /**\n * Writes a packets payload.\n *\n * @param {Array} packets - data packets\n * @protected\n */\n write(packets) {\n this.writable = false;\n encodePayload(packets, (data) => {\n this.doWrite(data, () => {\n this.writable = true;\n this.emitReserved(\"drain\");\n });\n });\n }\n /**\n * Generates uri for connection.\n *\n * @private\n */\n uri() {\n const schema = this.opts.secure ? \"https\" : \"http\";\n const query = this.query || {};\n // cache busting is forced\n if (false !== this.opts.timestampRequests) {\n query[this.opts.timestampParam] = yeast();\n }\n if (!this.supportsBinary && !query.sid) {\n query.b64 = 1;\n }\n return this.createUri(schema, query);\n }\n /**\n * Creates a request.\n *\n * @param {String} method\n * @private\n */\n request(opts = {}) {\n Object.assign(opts, { xd: this.xd, cookieJar: this.cookieJar }, this.opts);\n return new Request(this.uri(), opts);\n }\n /**\n * Sends data.\n *\n * @param {String} data to send.\n * @param {Function} called upon flush.\n * @private\n */\n doWrite(data, fn) {\n const req = this.request({\n method: \"POST\",\n data: data,\n });\n req.on(\"success\", fn);\n req.on(\"error\", (xhrStatus, context) => {\n this.onError(\"xhr post error\", xhrStatus, context);\n });\n }\n /**\n * Starts a poll cycle.\n *\n * @private\n */\n doPoll() {\n const req = this.request();\n req.on(\"data\", this.onData.bind(this));\n req.on(\"error\", (xhrStatus, context) => {\n this.onError(\"xhr poll error\", xhrStatus, context);\n });\n this.pollXhr = req;\n }\n}\nexport class Request extends Emitter {\n /**\n * Request constructor\n *\n * @param {Object} options\n * @package\n */\n constructor(uri, opts) {\n super();\n installTimerFunctions(this, opts);\n this.opts = opts;\n this.method = opts.method || \"GET\";\n this.uri = uri;\n this.data = undefined !== opts.data ? opts.data : null;\n this.create();\n }\n /**\n * Creates the XHR object and sends the request.\n *\n * @private\n */\n create() {\n var _a;\n const opts = pick(this.opts, \"agent\", \"pfx\", \"key\", \"passphrase\", \"cert\", \"ca\", \"ciphers\", \"rejectUnauthorized\", \"autoUnref\");\n opts.xdomain = !!this.opts.xd;\n const xhr = (this.xhr = new XMLHttpRequest(opts));\n try {\n xhr.open(this.method, this.uri, true);\n try {\n if (this.opts.extraHeaders) {\n xhr.setDisableHeaderCheck && xhr.setDisableHeaderCheck(true);\n for (let i in this.opts.extraHeaders) {\n if (this.opts.extraHeaders.hasOwnProperty(i)) {\n xhr.setRequestHeader(i, this.opts.extraHeaders[i]);\n }\n }\n }\n }\n catch (e) { }\n if (\"POST\" === this.method) {\n try {\n xhr.setRequestHeader(\"Content-type\", \"text/plain;charset=UTF-8\");\n }\n catch (e) { }\n }\n try {\n xhr.setRequestHeader(\"Accept\", \"*/*\");\n }\n catch (e) { }\n (_a = this.opts.cookieJar) === null || _a === void 0 ? void 0 : _a.addCookies(xhr);\n // ie6 check\n if (\"withCredentials\" in xhr) {\n xhr.withCredentials = this.opts.withCredentials;\n }\n if (this.opts.requestTimeout) {\n xhr.timeout = this.opts.requestTimeout;\n }\n xhr.onreadystatechange = () => {\n var _a;\n if (xhr.readyState === 3) {\n (_a = this.opts.cookieJar) === null || _a === void 0 ? void 0 : _a.parseCookies(xhr);\n }\n if (4 !== xhr.readyState)\n return;\n if (200 === xhr.status || 1223 === xhr.status) {\n this.onLoad();\n }\n else {\n // make sure the `error` event handler that's user-set\n // does not throw in the same tick and gets caught here\n this.setTimeoutFn(() => {\n this.onError(typeof xhr.status === \"number\" ? xhr.status : 0);\n }, 0);\n }\n };\n xhr.send(this.data);\n }\n catch (e) {\n // Need to defer since .create() is called directly from the constructor\n // and thus the 'error' event can only be only bound *after* this exception\n // occurs. Therefore, also, we cannot throw here at all.\n this.setTimeoutFn(() => {\n this.onError(e);\n }, 0);\n return;\n }\n if (typeof document !== \"undefined\") {\n this.index = Request.requestsCount++;\n Request.requests[this.index] = this;\n }\n }\n /**\n * Called upon error.\n *\n * @private\n */\n onError(err) {\n this.emitReserved(\"error\", err, this.xhr);\n this.cleanup(true);\n }\n /**\n * Cleans up house.\n *\n * @private\n */\n cleanup(fromError) {\n if (\"undefined\" === typeof this.xhr || null === this.xhr) {\n return;\n }\n this.xhr.onreadystatechange = empty;\n if (fromError) {\n try {\n this.xhr.abort();\n }\n catch (e) { }\n }\n if (typeof document !== \"undefined\") {\n delete Request.requests[this.index];\n }\n this.xhr = null;\n }\n /**\n * Called upon load.\n *\n * @private\n */\n onLoad() {\n const data = this.xhr.responseText;\n if (data !== null) {\n this.emitReserved(\"data\", data);\n this.emitReserved(\"success\");\n this.cleanup();\n }\n }\n /**\n * Aborts the request.\n *\n * @package\n */\n abort() {\n this.cleanup();\n }\n}\nRequest.requestsCount = 0;\nRequest.requests = {};\n/**\n * Aborts pending requests when unloading the window. This is needed to prevent\n * memory leaks (e.g. when using IE) and to ensure that no spurious error is\n * emitted.\n */\nif (typeof document !== \"undefined\") {\n // @ts-ignore\n if (typeof attachEvent === \"function\") {\n // @ts-ignore\n attachEvent(\"onunload\", unloadHandler);\n }\n else if (typeof addEventListener === \"function\") {\n const terminationEvent = \"onpagehide\" in globalThis ? \"pagehide\" : \"unload\";\n addEventListener(terminationEvent, unloadHandler, false);\n }\n}\nfunction unloadHandler() {\n for (let i in Request.requests) {\n if (Request.requests.hasOwnProperty(i)) {\n Request.requests[i].abort();\n }\n }\n}\n"],"names":["empty","hasXHR2","XMLHttpRequest","xdomain","responseType","Polling","Transport","constructor","opts","super","this","polling","location","isSSL","protocol","port","xd","hostname","forceBase64","supportsBinary","withCredentials","cookieJar","createCookieJar","name","doOpen","poll","pause","onPause","readyState","writable","total","once","doPoll","emitReserved","onData","data","decodePayload","socket","binaryType","forEach","packet","type","onOpen","onClose","description","onPacket","doClose","close","write","packets","encodePayload","doWrite","uri","schema","secure","query","timestampRequests","timestampParam","yeast","sid","b64","createUri","request","arguments","length","undefined","Object","assign","Request","fn","req","method","on","xhrStatus","context","onError","bind","pollXhr","Emitter","installTimerFunctions","create","_a","pick","xhr","XHR","open","extraHeaders","setDisableHeaderCheck","i","hasOwnProperty","setRequestHeader","e","addCookies","requestTimeout","timeout","onreadystatechange","parseCookies","status","onLoad","setTimeoutFn","send","document","index","requestsCount","requests","err","cleanup","fromError","abort","responseText","attachEvent","unloadHandler","addEventListener","terminationEvent","globalThis"],"mappings":"iXAOA,SAASA,IAAU,CACnB,MAAMC,EAIK,MAHK,IAAIC,MAAe,CAC3BC,SAAS,IAEMC,aAEhB,MAAMC,UAAgBC,EAAAA,UAOzBC,WAAAA,CAAYC,GAGR,GAFAC,MAAMD,GACNE,KAAKC,SAAU,EACS,oBAAbC,SAA0B,CACjC,MAAMC,EAAQ,WAAa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AQoC,SAAShB,GAAGoB,OAGhC"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../transport.js"),t=require("./websocket-constructor.browser.js"),r=require("../../../../engine.io-parser/build/esm/index.js");class s extends e.Transport{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((e=>{const t=r.createPacketDecoderStream(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),i=r.createPacketEncoderStream();i.readable.pipeTo(e.writable),this.writer=i.writable.getWriter();const n=()=>{s.read().then((({done:e,value:t})=>{e||(this.onPacket(t),n())})).catch((e=>{}))};n();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this.writer.write(o).then((()=>this.onOpen()))}))})))}write(e){this.writable=!1;for(let r=0;r<e.length;r++){const s=e[r],i=r===e.length-1;this.writer.write(s).then((()=>{i&&t.nextTick((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}}exports.WT=s;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../transport.js"),t=require("./websocket-constructor.browser.js"),r=require("../../../../engine.io-parser/build/esm/index.js");class s extends e.Transport{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((e=>{const t=r.createPacketDecoderStream(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),i=r.createPacketEncoderStream();i.readable.pipeTo(e.writable),this.writer=i.writable.getWriter();const n=()=>{s.read().then((e=>{let{done:t,value:r}=e;t||(this.onPacket(r),n())})).catch((e=>{}))};n();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this.writer.write(o).then((()=>this.onOpen()))}))})))}write(e){this.writable=!1;for(let r=0;r<e.length;r++){const s=e[r],i=r===e.length-1;this.writer.write(s).then((()=>{i&&t.nextTick((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}}exports.WT=s;
2
2
  //# sourceMappingURL=webtransport.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"webtransport.js","sources":["../../../../../../node_modules/engine.io-client/build/esm/transports/webtransport.js"],"sourcesContent":["import { Transport } from \"../transport.js\";\nimport { nextTick } from \"./websocket-constructor.js\";\nimport { createPacketDecoderStream, createPacketEncoderStream, } from \"engine.io-parser\";\nexport class WT extends Transport {\n get name() {\n return \"webtransport\";\n }\n doOpen() {\n // @ts-ignore\n if (typeof WebTransport !== \"function\") {\n return;\n }\n // @ts-ignore\n this.transport = new WebTransport(this.createUri(\"https\"), this.opts.transportOptions[this.name]);\n this.transport.closed\n .then(() => {\n this.onClose();\n })\n .catch((err) => {\n this.onError(\"webtransport error\", err);\n });\n // note: we could have used async/await, but that would require some additional polyfills\n this.transport.ready.then(() => {\n this.transport.createBidirectionalStream().then((stream) => {\n const decoderStream = createPacketDecoderStream(Number.MAX_SAFE_INTEGER, this.socket.binaryType);\n const reader = stream.readable.pipeThrough(decoderStream).getReader();\n const encoderStream = createPacketEncoderStream();\n encoderStream.readable.pipeTo(stream.writable);\n this.writer = encoderStream.writable.getWriter();\n const read = () => {\n reader\n .read()\n .then(({ done, value }) => {\n if (done) {\n return;\n }\n this.onPacket(value);\n read();\n })\n .catch((err) => {\n });\n };\n read();\n const packet = { type: \"open\" };\n if (this.query.sid) {\n packet.data = `{\"sid\":\"${this.query.sid}\"}`;\n }\n this.writer.write(packet).then(() => this.onOpen());\n });\n });\n }\n write(packets) {\n this.writable = false;\n for (let i = 0; i < packets.length; i++) {\n const packet = packets[i];\n const lastPacket = i === packets.length - 1;\n this.writer.write(packet).then(() => {\n if (lastPacket) {\n nextTick(() => {\n this.writable = true;\n this.emitReserved(\"drain\");\n }, this.setTimeoutFn);\n }\n });\n }\n }\n doClose() {\n var _a;\n (_a = this.transport) === null || _a === void 0 ? void 0 : _a.close();\n }\n}\n"],"names":["WT","Transport","name","doOpen","WebTransport","this","transport","createUri","opts","transportOptions","closed","then","onClose","catch","err","onError","ready","createBidirectionalStream","stream","decoderStream","createPacketDecoderStream","Number","MAX_SAFE_INTEGER","socket","binaryType","reader","readable","pipeThrough","getReader","encoderStream","createPacketEncoderStream","pipeTo","writable","writer","getWriter","read","done","value","onPacket","packet","type","query","sid","data","write","onOpen","packets","i","length","lastPacket","nextTick","emitReserved","setTimeoutFn","doClose","_a","close"],"mappings":"kNAGO,MAAMA,UAAWC,EAAAA,UACpB,QAAIC,GACA,MAAO,cACX,CACAC,MAAAA,GAEgC,mBAAjBC,eAIXC,KAAKC,UAAY,IAAIF,aAAaC,KAAKE,UAAU,SAAUF,KAAKG,KAAKC,iBAAiBJ,KAAKH,OAC3FG,KAAKC,UAAUI,OACVC,MAAK,KACNN,KAAKO,SAAS,IAEbC,OAAOC,IACRT,KAAKU,QAAQ,qBAAsBD,EAAI,IAG3CT,KAAKC,UAAUU,MAAML,MAAK,KACtBN,KAAKC,UAAUW,4BAA4BN,MAAMO,IAC7C,MAAMC,EAAgBC,EAAAA,0BAA0BC,OAAOC,iBAAkBjB,KAAKkB,OAAOC,YAC/EC,EAASP,EAAOQ,SAASC,YAAYR,GAAeS,YACpDC,EAAgBC,EAAAA,4BACtBD,EAAcH,SAASK,OAAOb,EAAOc,UACrC3B,KAAK4B,OAASJ,EAAcG,SAASE,YACrC,MAAMC,EAAOA,KACTV,EACKU,OACAxB,MAAK,EAAGyB,OAAMC,YACXD,IAGJ/B,KAAKiC,SAASD,GACdF,IAAM,IAELtB,OAAOC,OACV,EAENqB,IACA,MAAMI,EAAS,CAAEC,KAAM,QACnBnC,KAAKoC,MAAMC,MACXH,EAAOI,KAAO,WAAWtC,KAAKoC,MAAMC,SAExCrC,KAAK4B,OAAOW,MAAML,GAAQ5B,MAAK,IAAMN,KAAKwC,UAAS,GACrD,IAEV,CACAD,KAAAA,CAAME,GACFzC,KAAK2B,UAAW,EAChB,IAAK,IAAIe,EAAI,EAAGA,EAAID,EAAQE,OAAQD,IAAK,CACrC,MAAMR,EAASO,EAAQC,GACjBE,EAAaF,IAAMD,EAAQE,OAAS,EAC1C3C,KAAK4B,OAAOW,MAAML,GAAQ5B,MAAK,KACvBsC,GACAC,EAAAA,UAAS,KACL7C,KAAK2B,UAAW,EAChB3B,KAAK8C,aAAa,QAAQ,GAC3B9C,KAAK+C,aACZ,GAER,CACJ,CACAC,OAAAA,GACI,IAAIC,EACsB,QAAzBA,EAAKjD,KAAKC,iBAA8B,IAAPgD,GAAyBA,EAAGC,OAClE"}
1
+ {"version":3,"file":"webtransport.js","sources":["../../../../../../node_modules/engine.io-client/build/esm/transports/webtransport.js"],"sourcesContent":["import { Transport } from \"../transport.js\";\nimport { nextTick } from \"./websocket-constructor.js\";\nimport { createPacketDecoderStream, createPacketEncoderStream, } from \"engine.io-parser\";\nexport class WT extends Transport {\n get name() {\n return \"webtransport\";\n }\n doOpen() {\n // @ts-ignore\n if (typeof WebTransport !== \"function\") {\n return;\n }\n // @ts-ignore\n this.transport = new WebTransport(this.createUri(\"https\"), this.opts.transportOptions[this.name]);\n this.transport.closed\n .then(() => {\n this.onClose();\n })\n .catch((err) => {\n this.onError(\"webtransport error\", err);\n });\n // note: we could have used async/await, but that would require some additional polyfills\n this.transport.ready.then(() => {\n this.transport.createBidirectionalStream().then((stream) => {\n const decoderStream = createPacketDecoderStream(Number.MAX_SAFE_INTEGER, this.socket.binaryType);\n const reader = stream.readable.pipeThrough(decoderStream).getReader();\n const encoderStream = createPacketEncoderStream();\n encoderStream.readable.pipeTo(stream.writable);\n this.writer = encoderStream.writable.getWriter();\n const read = () => {\n reader\n .read()\n .then(({ done, value }) => {\n if (done) {\n return;\n }\n this.onPacket(value);\n read();\n })\n .catch((err) => {\n });\n };\n read();\n const packet = { type: \"open\" };\n if (this.query.sid) {\n packet.data = `{\"sid\":\"${this.query.sid}\"}`;\n }\n this.writer.write(packet).then(() => this.onOpen());\n });\n });\n }\n write(packets) {\n this.writable = false;\n for (let i = 0; i < packets.length; i++) {\n const packet = packets[i];\n const lastPacket = i === packets.length - 1;\n this.writer.write(packet).then(() => {\n if (lastPacket) {\n nextTick(() => {\n this.writable = true;\n this.emitReserved(\"drain\");\n }, this.setTimeoutFn);\n }\n });\n }\n }\n doClose() {\n var _a;\n (_a = this.transport) === null || _a === void 0 ? void 0 : _a.close();\n }\n}\n"],"names":["WT","Transport","name","doOpen","WebTransport","this","transport","createUri","opts","transportOptions","closed","then","onClose","catch","err","onError","ready","createBidirectionalStream","stream","decoderStream","createPacketDecoderStream","Number","MAX_SAFE_INTEGER","socket","binaryType","reader","readable","pipeThrough","getReader","encoderStream","createPacketEncoderStream","pipeTo","writable","writer","getWriter","read","_ref","done","value","onPacket","packet","type","query","sid","data","write","onOpen","packets","i","length","lastPacket","nextTick","emitReserved","setTimeoutFn","doClose","_a","close"],"mappings":"kNAGO,MAAMA,UAAWC,EAAAA,UACpB,QAAIC,GACA,MAAO,cACX,CACAC,MAAAA,GAEgC,mBAAjBC,eAIXC,KAAKC,UAAY,IAAIF,aAAaC,KAAKE,UAAU,SAAUF,KAAKG,KAAKC,iBAAiBJ,KAAKH,OAC3FG,KAAKC,UAAUI,OACVC,MAAK,KACNN,KAAKO,SAAS,IAEbC,OAAOC,IACRT,KAAKU,QAAQ,qBAAsBD,EAAI,IAG3CT,KAAKC,UAAUU,MAAML,MAAK,KACtBN,KAAKC,UAAUW,4BAA4BN,MAAMO,IAC7C,MAAMC,EAAgBC,EAAAA,0BAA0BC,OAAOC,iBAAkBjB,KAAKkB,OAAOC,YAC/EC,EAASP,EAAOQ,SAASC,YAAYR,GAAeS,YACpDC,EAAgBC,EAAAA,4BACtBD,EAAcH,SAASK,OAAOb,EAAOc,UACrC3B,KAAK4B,OAASJ,EAAcG,SAASE,YACrC,MAAMC,EAAOA,KACTV,EACKU,OACAxB,MAAKyB,IAAqB,IAApBC,KAAEA,EAAIC,MAAEA,GAAOF,EAClBC,IAGJhC,KAAKkC,SAASD,GACdH,IAAM,IAELtB,OAAOC,OACV,EAENqB,IACA,MAAMK,EAAS,CAAEC,KAAM,QACnBpC,KAAKqC,MAAMC,MACXH,EAAOI,KAAO,WAAWvC,KAAKqC,MAAMC,SAExCtC,KAAK4B,OAAOY,MAAML,GAAQ7B,MAAK,IAAMN,KAAKyC,UAAS,GACrD,IAEV,CACAD,KAAAA,CAAME,GACF1C,KAAK2B,UAAW,EAChB,IAAK,IAAIgB,EAAI,EAAGA,EAAID,EAAQE,OAAQD,IAAK,CACrC,MAAMR,EAASO,EAAQC,GACjBE,EAAaF,IAAMD,EAAQE,OAAS,EAC1C5C,KAAK4B,OAAOY,MAAML,GAAQ7B,MAAK,KACvBuC,GACAC,EAAAA,UAAS,KACL9C,KAAK2B,UAAW,EAChB3B,KAAK+C,aAAa,QAAQ,GAC3B/C,KAAKgD,aACZ,GAER,CACJ,CACAC,OAAAA,GACI,IAAIC,EACsB,QAAzBA,EAAKlD,KAAKC,iBAA8B,IAAPiD,GAAyBA,EAAGC,OAClE"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./globalThis.browser.js");const i=e.globalThisShim.setTimeout,t=e.globalThisShim.clearTimeout;exports.byteLength=function(e){return"string"==typeof e?function(e){let i=0,t=0;for(let o=0,l=e.length;o<l;o++)i=e.charCodeAt(o),i<128?t+=1:i<2048?t+=2:i<55296||i>=57344?t+=3:(o++,t+=4);return t}(e):Math.ceil(1.33*(e.byteLength||e.size))},exports.installTimerFunctions=function(o,l){l.useNativeTimers?(o.setTimeoutFn=i.bind(e.globalThisShim),o.clearTimeoutFn=t.bind(e.globalThisShim)):(o.setTimeoutFn=e.globalThisShim.setTimeout.bind(e.globalThisShim),o.clearTimeoutFn=e.globalThisShim.clearTimeout.bind(e.globalThisShim))},exports.pick=function(e,...i){return i.reduce(((i,t)=>(e.hasOwnProperty(t)&&(i[t]=e[t]),i)),{})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./globalThis.browser.js");const i=e.globalThisShim.setTimeout,t=e.globalThisShim.clearTimeout;exports.byteLength=function(e){return"string"==typeof e?function(e){let i=0,t=0;for(let o=0,r=e.length;o<r;o++)i=e.charCodeAt(o),i<128?t+=1:i<2048?t+=2:i<55296||i>=57344?t+=3:(o++,t+=4);return t}(e):Math.ceil(1.33*(e.byteLength||e.size))},exports.installTimerFunctions=function(o,r){r.useNativeTimers?(o.setTimeoutFn=i.bind(e.globalThisShim),o.clearTimeoutFn=t.bind(e.globalThisShim)):(o.setTimeoutFn=e.globalThisShim.setTimeout.bind(e.globalThisShim),o.clearTimeoutFn=e.globalThisShim.clearTimeout.bind(e.globalThisShim))},exports.pick=function(e){for(var i=arguments.length,t=new Array(i>1?i-1:0),o=1;o<i;o++)t[o-1]=arguments[o];return t.reduce(((i,t)=>(e.hasOwnProperty(t)&&(i[t]=e[t]),i)),{})};
2
2
  //# sourceMappingURL=util.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"util.js","sources":["../../../../../node_modules/engine.io-client/build/esm/util.js"],"sourcesContent":["import { globalThisShim as globalThis } from \"./globalThis.js\";\nexport function pick(obj, ...attr) {\n return attr.reduce((acc, k) => {\n if (obj.hasOwnProperty(k)) {\n acc[k] = obj[k];\n }\n return acc;\n }, {});\n}\n// Keep a reference to the real timeout functions so they can be used when overridden\nconst NATIVE_SET_TIMEOUT = globalThis.setTimeout;\nconst NATIVE_CLEAR_TIMEOUT = globalThis.clearTimeout;\nexport function installTimerFunctions(obj, opts) {\n if (opts.useNativeTimers) {\n obj.setTimeoutFn = NATIVE_SET_TIMEOUT.bind(globalThis);\n obj.clearTimeoutFn = NATIVE_CLEAR_TIMEOUT.bind(globalThis);\n }\n else {\n obj.setTimeoutFn = globalThis.setTimeout.bind(globalThis);\n obj.clearTimeoutFn = globalThis.clearTimeout.bind(globalThis);\n }\n}\n// base64 encoded buffers are about 33% bigger (https://en.wikipedia.org/wiki/Base64)\nconst BASE64_OVERHEAD = 1.33;\n// we could also have used `new Blob([obj]).size`, but it isn't supported in IE9\nexport function byteLength(obj) {\n if (typeof obj === \"string\") {\n return utf8Length(obj);\n }\n // arraybuffer or blob\n return Math.ceil((obj.byteLength || obj.size) * BASE64_OVERHEAD);\n}\nfunction utf8Length(str) {\n let c = 0, length = 0;\n for (let i = 0, l = str.length; i < l; i++) {\n c = str.charCodeAt(i);\n if (c < 0x80) {\n length += 1;\n }\n else if (c < 0x800) {\n length += 2;\n }\n else if (c < 0xd800 || c >= 0xe000) {\n length += 3;\n }\n else {\n i++;\n length += 4;\n }\n }\n return length;\n}\n"],"names":["NATIVE_SET_TIMEOUT","globalThis","globalThisShim","setTimeout","NATIVE_CLEAR_TIMEOUT","clearTimeout","obj","str","c","length","i","l","charCodeAt","utf8Length","Math","ceil","byteLength","size","opts","useNativeTimers","setTimeoutFn","bind","clearTimeoutFn","attr","reduce","acc","k","hasOwnProperty"],"mappings":"6GAUA,MAAMA,EAAqBC,EAAUC,eAACC,WAChCC,EAAuBH,EAAUC,eAACG,gCAcjC,SAAoBC,GACvB,MAAmB,iBAARA,EAMf,SAAoBC,GAChB,IAAIC,EAAI,EAAGC,EAAS,EACpB,IAAK,IAAIC,EAAI,EAAGC,EAAIJ,EAAIE,OAAQC,EAAIC,EAAGD,IACnCF,EAAID,EAAIK,WAAWF,GACfF,EAAI,IACJC,GAAU,EAELD,EAAI,KACTC,GAAU,EAELD,EAAI,OAAUA,GAAK,MACxBC,GAAU,GAGVC,IACAD,GAAU,GAGlB,OAAOA,CACX,CAxBeI,CAAWP,GAGfQ,KAAKC,KAPQ,MAOFT,EAAIU,YAAcV,EAAIW,MAC5C,gCAnBO,SAA+BX,EAAKY,GACnCA,EAAKC,iBACLb,EAAIc,aAAepB,EAAmBqB,KAAKpB,EAAUC,gBACrDI,EAAIgB,eAAiBlB,EAAqBiB,KAAKpB,EAAUC,kBAGzDI,EAAIc,aAAenB,EAAUC,eAACC,WAAWkB,KAAKpB,EAAUC,gBACxDI,EAAIgB,eAAiBrB,EAAUC,eAACG,aAAagB,KAAKpB,EAAUC,gBAEpE,eApBO,SAAcI,KAAQiB,GACzB,OAAOA,EAAKC,QAAO,CAACC,EAAKC,KACjBpB,EAAIqB,eAAeD,KACnBD,EAAIC,GAAKpB,EAAIoB,IAEVD,IACR,CAAE,EACT"}
1
+ {"version":3,"file":"util.js","sources":["../../../../../node_modules/engine.io-client/build/esm/util.js"],"sourcesContent":["import { globalThisShim as globalThis } from \"./globalThis.js\";\nexport function pick(obj, ...attr) {\n return attr.reduce((acc, k) => {\n if (obj.hasOwnProperty(k)) {\n acc[k] = obj[k];\n }\n return acc;\n }, {});\n}\n// Keep a reference to the real timeout functions so they can be used when overridden\nconst NATIVE_SET_TIMEOUT = globalThis.setTimeout;\nconst NATIVE_CLEAR_TIMEOUT = globalThis.clearTimeout;\nexport function installTimerFunctions(obj, opts) {\n if (opts.useNativeTimers) {\n obj.setTimeoutFn = NATIVE_SET_TIMEOUT.bind(globalThis);\n obj.clearTimeoutFn = NATIVE_CLEAR_TIMEOUT.bind(globalThis);\n }\n else {\n obj.setTimeoutFn = globalThis.setTimeout.bind(globalThis);\n obj.clearTimeoutFn = globalThis.clearTimeout.bind(globalThis);\n }\n}\n// base64 encoded buffers are about 33% bigger (https://en.wikipedia.org/wiki/Base64)\nconst BASE64_OVERHEAD = 1.33;\n// we could also have used `new Blob([obj]).size`, but it isn't supported in IE9\nexport function byteLength(obj) {\n if (typeof obj === \"string\") {\n return utf8Length(obj);\n }\n // arraybuffer or blob\n return Math.ceil((obj.byteLength || obj.size) * BASE64_OVERHEAD);\n}\nfunction utf8Length(str) {\n let c = 0, length = 0;\n for (let i = 0, l = str.length; i < l; i++) {\n c = str.charCodeAt(i);\n if (c < 0x80) {\n length += 1;\n }\n else if (c < 0x800) {\n length += 2;\n }\n else if (c < 0xd800 || c >= 0xe000) {\n length += 3;\n }\n else {\n i++;\n length += 4;\n }\n }\n return length;\n}\n"],"names":["NATIVE_SET_TIMEOUT","globalThis","globalThisShim","setTimeout","NATIVE_CLEAR_TIMEOUT","clearTimeout","obj","str","c","length","i","l","charCodeAt","utf8Length","Math","ceil","byteLength","size","opts","useNativeTimers","setTimeoutFn","bind","clearTimeoutFn","_len","arguments","attr","Array","_key","reduce","acc","k","hasOwnProperty"],"mappings":"6GAUA,MAAMA,EAAqBC,EAAUC,eAACC,WAChCC,EAAuBH,EAAUC,eAACG,gCAcjC,SAAoBC,GACvB,MAAmB,iBAARA,EAMf,SAAoBC,GAChB,IAAIC,EAAI,EAAGC,EAAS,EACpB,IAAK,IAAIC,EAAI,EAAGC,EAAIJ,EAAIE,OAAQC,EAAIC,EAAGD,IACnCF,EAAID,EAAIK,WAAWF,GACfF,EAAI,IACJC,GAAU,EAELD,EAAI,KACTC,GAAU,EAELD,EAAI,OAAUA,GAAK,MACxBC,GAAU,GAGVC,IACAD,GAAU,GAGlB,OAAOA,CACX,CAxBeI,CAAWP,GAGfQ,KAAKC,KAPQ,MAOFT,EAAIU,YAAcV,EAAIW,MAC5C,gCAnBO,SAA+BX,EAAKY,GACnCA,EAAKC,iBACLb,EAAIc,aAAepB,EAAmBqB,KAAKpB,EAAUC,gBACrDI,EAAIgB,eAAiBlB,EAAqBiB,KAAKpB,EAAUC,kBAGzDI,EAAIc,aAAenB,EAAUC,eAACC,WAAWkB,KAAKpB,EAAUC,gBACxDI,EAAIgB,eAAiBrB,EAAUC,eAACG,aAAagB,KAAKpB,EAAUC,gBAEpE,eApBO,SAAcI,GAAc,IAAAiB,IAAAA,EAAAC,UAAAf,OAANgB,MAAIC,MAAAH,EAAAA,EAAAA,OAAAI,EAAA,EAAAA,EAAAJ,EAAAI,IAAJF,EAAIE,EAAAH,GAAAA,UAAAG,GAC7B,OAAOF,EAAKG,QAAO,CAACC,EAAKC,KACjBxB,EAAIyB,eAAeD,KACnBD,EAAIC,GAAKxB,EAAIwB,IAEVD,IACR,CAAE,EACT"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./commons.js");const t="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),r="function"==typeof ArrayBuffer,n=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,o=({type:o,data:f},c,i)=>t&&f instanceof Blob?c?i(f):a(f,i):r&&(f instanceof ArrayBuffer||n(f))?c?i(f):a(new Blob([f]),i):i(e.PACKET_TYPES[o]+(f||"")),a=(e,t)=>{const r=new FileReader;return r.onload=function(){const e=r.result.split(",")[1];t("b"+(e||""))},r.readAsDataURL(e)};function f(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let c;exports.encodePacket=o,exports.encodePacketToBinary=function(e,a){return t&&e.data instanceof Blob?e.data.arrayBuffer().then(f).then(a):r&&(e.data instanceof ArrayBuffer||n(e.data))?a(f(e.data)):void o(e,!1,(e=>{c||(c=new TextEncoder),a(c.encode(e))}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./commons.js");const t="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),r="function"==typeof ArrayBuffer,n=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,o=(o,f,c)=>{let{type:i,data:u}=o;return t&&u instanceof Blob?f?c(u):a(u,c):r&&(u instanceof ArrayBuffer||n(u))?f?c(u):a(new Blob([u]),c):c(e.PACKET_TYPES[i]+(u||""))},a=(e,t)=>{const r=new FileReader;return r.onload=function(){const e=r.result.split(",")[1];t("b"+(e||""))},r.readAsDataURL(e)};function f(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let c;exports.encodePacket=o,exports.encodePacketToBinary=function(e,a){return t&&e.data instanceof Blob?e.data.arrayBuffer().then(f).then(a):r&&(e.data instanceof ArrayBuffer||n(e.data))?a(f(e.data)):void o(e,!1,(e=>{c||(c=new TextEncoder),a(c.encode(e))}))};
2
2
  //# sourceMappingURL=encodePacket.browser.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"encodePacket.browser.js","sources":["../../../../../node_modules/engine.io-parser/build/esm/encodePacket.browser.js"],"sourcesContent":["import { PACKET_TYPES } from \"./commons.js\";\nconst withNativeBlob = typeof Blob === \"function\" ||\n (typeof Blob !== \"undefined\" &&\n Object.prototype.toString.call(Blob) === \"[object BlobConstructor]\");\nconst withNativeArrayBuffer = typeof ArrayBuffer === \"function\";\n// ArrayBuffer.isView method is not defined in IE10\nconst isView = (obj) => {\n return typeof ArrayBuffer.isView === \"function\"\n ? ArrayBuffer.isView(obj)\n : obj && obj.buffer instanceof ArrayBuffer;\n};\nconst encodePacket = ({ type, data }, supportsBinary, callback) => {\n if (withNativeBlob && data instanceof Blob) {\n if (supportsBinary) {\n return callback(data);\n }\n else {\n return encodeBlobAsBase64(data, callback);\n }\n }\n else if (withNativeArrayBuffer &&\n (data instanceof ArrayBuffer || isView(data))) {\n if (supportsBinary) {\n return callback(data);\n }\n else {\n return encodeBlobAsBase64(new Blob([data]), callback);\n }\n }\n // plain string\n return callback(PACKET_TYPES[type] + (data || \"\"));\n};\nconst encodeBlobAsBase64 = (data, callback) => {\n const fileReader = new FileReader();\n fileReader.onload = function () {\n const content = fileReader.result.split(\",\")[1];\n callback(\"b\" + (content || \"\"));\n };\n return fileReader.readAsDataURL(data);\n};\nfunction toArray(data) {\n if (data instanceof Uint8Array) {\n return data;\n }\n else if (data instanceof ArrayBuffer) {\n return new Uint8Array(data);\n }\n else {\n return new Uint8Array(data.buffer, data.byteOffset, data.byteLength);\n }\n}\nlet TEXT_ENCODER;\nexport function encodePacketToBinary(packet, callback) {\n if (withNativeBlob && packet.data instanceof Blob) {\n return packet.data.arrayBuffer().then(toArray).then(callback);\n }\n else if (withNativeArrayBuffer &&\n (packet.data instanceof ArrayBuffer || isView(packet.data))) {\n return callback(toArray(packet.data));\n }\n encodePacket(packet, false, (encoded) => {\n if (!TEXT_ENCODER) {\n TEXT_ENCODER = new TextEncoder();\n }\n callback(TEXT_ENCODER.encode(encoded));\n });\n}\nexport { encodePacket };\n"],"names":["withNativeBlob","Blob","Object","prototype","toString","call","withNativeArrayBuffer","ArrayBuffer","isView","obj","buffer","encodePacket","type","data","supportsBinary","callback","encodeBlobAsBase64","PACKET_TYPES","fileReader","FileReader","onload","content","result","split","readAsDataURL","toArray","Uint8Array","byteOffset","byteLength","TEXT_ENCODER","packet","arrayBuffer","then","encoded","TextEncoder","encode"],"mappings":"kGACA,MAAMA,EAAiC,mBAATC,MACT,oBAATA,MACqC,6BAAzCC,OAAOC,UAAUC,SAASC,KAAKJ,MACjCK,EAA+C,mBAAhBC,YAE/BC,EAAUC,GACyB,mBAAvBF,YAAYC,OACpBD,YAAYC,OAAOC,GACnBA,GAAOA,EAAIC,kBAAkBH,YAEjCI,EAAeA,EAAGC,OAAMC,QAAQC,EAAgBC,IAC9Cf,GAAkBa,aAAgBZ,KAC9Ba,EACOC,EAASF,GAGTG,EAAmBH,EAAME,GAG/BT,IACJO,aAAgBN,aAAeC,EAAOK,IACnCC,EACOC,EAASF,GAGTG,EAAmB,IAAIf,KAAK,CAACY,IAAQE,GAI7CA,EAASE,EAAAA,aAAaL,IAASC,GAAQ,KAE5CG,EAAqBA,CAACH,EAAME,KAC9B,MAAMG,EAAa,IAAIC,WAKvB,OAJAD,EAAWE,OAAS,WAChB,MAAMC,EAAUH,EAAWI,OAAOC,MAAM,KAAK,GAC7CR,EAAS,KAAOM,GAAW,MAExBH,EAAWM,cAAcX,EAAK,EAEzC,SAASY,EAAQZ,GACb,OAAIA,aAAgBa,WACTb,EAEFA,aAAgBN,YACd,IAAImB,WAAWb,GAGf,IAAIa,WAAWb,EAAKH,OAAQG,EAAKc,WAAYd,EAAKe,WAEjE,CACA,IAAIC,sDACG,SAA8BC,EAAQf,GACzC,OAAIf,GAAkB8B,EAAOjB,gBAAgBZ,KAClC6B,EAAOjB,KAAKkB,cAAcC,KAAKP,GAASO,KAAKjB,GAE/CT,IACJwB,EAAOjB,gBAAgBN,aAAeC,EAAOsB,EAAOjB,OAC9CE,EAASU,EAAQK,EAAOjB,YAEnCF,EAAamB,GAAQ,GAAQG,IACpBJ,IACDA,EAAe,IAAIK,aAEvBnB,EAASc,EAAaM,OAAOF,GAAS,GAE9C"}
1
+ {"version":3,"file":"encodePacket.browser.js","sources":["../../../../../node_modules/engine.io-parser/build/esm/encodePacket.browser.js"],"sourcesContent":["import { PACKET_TYPES } from \"./commons.js\";\nconst withNativeBlob = typeof Blob === \"function\" ||\n (typeof Blob !== \"undefined\" &&\n Object.prototype.toString.call(Blob) === \"[object BlobConstructor]\");\nconst withNativeArrayBuffer = typeof ArrayBuffer === \"function\";\n// ArrayBuffer.isView method is not defined in IE10\nconst isView = (obj) => {\n return typeof ArrayBuffer.isView === \"function\"\n ? ArrayBuffer.isView(obj)\n : obj && obj.buffer instanceof ArrayBuffer;\n};\nconst encodePacket = ({ type, data }, supportsBinary, callback) => {\n if (withNativeBlob && data instanceof Blob) {\n if (supportsBinary) {\n return callback(data);\n }\n else {\n return encodeBlobAsBase64(data, callback);\n }\n }\n else if (withNativeArrayBuffer &&\n (data instanceof ArrayBuffer || isView(data))) {\n if (supportsBinary) {\n return callback(data);\n }\n else {\n return encodeBlobAsBase64(new Blob([data]), callback);\n }\n }\n // plain string\n return callback(PACKET_TYPES[type] + (data || \"\"));\n};\nconst encodeBlobAsBase64 = (data, callback) => {\n const fileReader = new FileReader();\n fileReader.onload = function () {\n const content = fileReader.result.split(\",\")[1];\n callback(\"b\" + (content || \"\"));\n };\n return fileReader.readAsDataURL(data);\n};\nfunction toArray(data) {\n if (data instanceof Uint8Array) {\n return data;\n }\n else if (data instanceof ArrayBuffer) {\n return new Uint8Array(data);\n }\n else {\n return new Uint8Array(data.buffer, data.byteOffset, data.byteLength);\n }\n}\nlet TEXT_ENCODER;\nexport function encodePacketToBinary(packet, callback) {\n if (withNativeBlob && packet.data instanceof Blob) {\n return packet.data.arrayBuffer().then(toArray).then(callback);\n }\n else if (withNativeArrayBuffer &&\n (packet.data instanceof ArrayBuffer || isView(packet.data))) {\n return callback(toArray(packet.data));\n }\n encodePacket(packet, false, (encoded) => {\n if (!TEXT_ENCODER) {\n TEXT_ENCODER = new TextEncoder();\n }\n callback(TEXT_ENCODER.encode(encoded));\n });\n}\nexport { encodePacket };\n"],"names":["withNativeBlob","Blob","Object","prototype","toString","call","withNativeArrayBuffer","ArrayBuffer","isView","obj","buffer","encodePacket","_ref","supportsBinary","callback","type","data","encodeBlobAsBase64","PACKET_TYPES","fileReader","FileReader","onload","content","result","split","readAsDataURL","toArray","Uint8Array","byteOffset","byteLength","TEXT_ENCODER","packet","arrayBuffer","then","encoded","TextEncoder","encode"],"mappings":"kGACA,MAAMA,EAAiC,mBAATC,MACT,oBAATA,MACqC,6BAAzCC,OAAOC,UAAUC,SAASC,KAAKJ,MACjCK,EAA+C,mBAAhBC,YAE/BC,EAAUC,GACyB,mBAAvBF,YAAYC,OACpBD,YAAYC,OAAOC,GACnBA,GAAOA,EAAIC,kBAAkBH,YAEjCI,EAAeA,CAAAC,EAAiBC,EAAgBC,KAAa,IAA7CC,KAAEA,EAAIC,KAAEA,GAAMJ,EAChC,OAAIZ,GAAkBgB,aAAgBf,KAC9BY,EACOC,EAASE,GAGTC,EAAmBD,EAAMF,GAG/BR,IACJU,aAAgBT,aAAeC,EAAOQ,IACnCH,EACOC,EAASE,GAGTC,EAAmB,IAAIhB,KAAK,CAACe,IAAQF,GAI7CA,EAASI,EAAAA,aAAaH,IAASC,GAAQ,IAAI,EAEhDC,EAAqBA,CAACD,EAAMF,KAC9B,MAAMK,EAAa,IAAIC,WAKvB,OAJAD,EAAWE,OAAS,WAChB,MAAMC,EAAUH,EAAWI,OAAOC,MAAM,KAAK,GAC7CV,EAAS,KAAOQ,GAAW,MAExBH,EAAWM,cAAcT,EAAK,EAEzC,SAASU,EAAQV,GACb,OAAIA,aAAgBW,WACTX,EAEFA,aAAgBT,YACd,IAAIoB,WAAWX,GAGf,IAAIW,WAAWX,EAAKN,OAAQM,EAAKY,WAAYZ,EAAKa,WAEjE,CACA,IAAIC,sDACG,SAA8BC,EAAQjB,GACzC,OAAId,GAAkB+B,EAAOf,gBAAgBf,KAClC8B,EAAOf,KAAKgB,cAAcC,KAAKP,GAASO,KAAKnB,GAE/CR,IACJyB,EAAOf,gBAAgBT,aAAeC,EAAOuB,EAAOf,OAC9CF,EAASY,EAAQK,EAAOf,YAEnCL,EAAaoB,GAAQ,GAAQG,IACpBJ,IACDA,EAAe,IAAIK,aAEvBrB,EAASgB,EAAaM,OAAOF,GAAS,GAE9C"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=e=>null!==e;exports.getFinalKeyframe=function(t,{repeat:o,repeatType:r="loop"},l){const n=t.filter(e),p=o&&"loop"!==r&&o%2==1?0:n.length-1;return p&&void 0!==l?l:n[p]};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=e=>null!==e;exports.getFinalKeyframe=function(t,o,r){let{repeat:l,repeatType:n="loop"}=o;const p=t.filter(e),s=l&&"loop"!==n&&l%2==1?0:p.length-1;return s&&void 0!==r?r:p[s]};
2
2
  //# sourceMappingURL=get-final-keyframe.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-final-keyframe.mjs.js","sources":["../../../../../../../../../node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs"],"sourcesContent":["const isNotNull = (value) => value !== null;\nfunction getFinalKeyframe(keyframes, { repeat, repeatType = \"loop\" }, finalKeyframe) {\n const resolvedKeyframes = keyframes.filter(isNotNull);\n const index = repeat && repeatType !== \"loop\" && repeat % 2 === 1\n ? 0\n : resolvedKeyframes.length - 1;\n return !index || finalKeyframe === undefined\n ? resolvedKeyframes[index]\n : finalKeyframe;\n}\n\nexport { getFinalKeyframe };\n"],"names":["isNotNull","value","keyframes","repeat","repeatType","finalKeyframe","resolvedKeyframes","filter","index","length","undefined"],"mappings":"oEAAA,MAAMA,EAAaC,GAAoB,OAAVA,2BAC7B,SAA0BC,GAAWC,OAAEA,EAAMC,WAAEA,EAAa,QAAUC,GAClE,MAAMC,EAAoBJ,EAAUK,OAAOP,GACrCQ,EAAQL,GAAyB,SAAfC,GAAyBD,EAAS,GAAM,EAC1D,EACAG,EAAkBG,OAAS,EACjC,OAAQD,QAA2BE,IAAlBL,EAEXA,EADAC,EAAkBE,EAE5B"}
1
+ {"version":3,"file":"get-final-keyframe.mjs.js","sources":["../../../../../../../../../node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs"],"sourcesContent":["const isNotNull = (value) => value !== null;\nfunction getFinalKeyframe(keyframes, { repeat, repeatType = \"loop\" }, finalKeyframe) {\n const resolvedKeyframes = keyframes.filter(isNotNull);\n const index = repeat && repeatType !== \"loop\" && repeat % 2 === 1\n ? 0\n : resolvedKeyframes.length - 1;\n return !index || finalKeyframe === undefined\n ? resolvedKeyframes[index]\n : finalKeyframe;\n}\n\nexport { getFinalKeyframe };\n"],"names":["isNotNull","value","keyframes","_ref","finalKeyframe","repeat","repeatType","resolvedKeyframes","filter","index","length","undefined"],"mappings":"oEAAA,MAAMA,EAAaC,GAAoB,OAAVA,2BAC7B,SAA0BC,EAASC,EAAmCC,GAAe,IAAhDC,OAAEA,EAAMC,WAAEA,EAAa,QAAQH,EAChE,MAAMI,EAAoBL,EAAUM,OAAOR,GACrCS,EAAQJ,GAAyB,SAAfC,GAAyBD,EAAS,GAAM,EAC1D,EACAE,EAAkBG,OAAS,EACjC,OAAQD,QAA2BE,IAAlBP,EAEXA,EADAG,EAAkBE,EAE5B"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../animators/waapi/utils/get-final-keyframe.mjs.js"),i=require("../utils/default-transitions.mjs.js"),t=require("../utils/is-transition-defined.mjs.js"),o=require("../../../../../motion-dom/dist/es/animation/utils/get-value-transition.mjs.js"),n=require("../../../../../motion-utils/dist/es/time-conversion.mjs.js"),s=require("../../../../../motion-utils/dist/es/global-config.mjs.js"),a=require("../../../../../motion-dom/dist/es/frameloop/frame.mjs.js"),r=require("../../../../../motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs.js");exports.animateMotionValue=(l,d,m,u={},y,p)=>f=>{const c=o.getValueTransition(u,l)||{},j=c.delay||u.delay||0;let{elapsed:g=0}=u;g-=n.secondsToMilliseconds(j);const v={keyframes:Array.isArray(m)?m:[null,m],ease:"easeOut",velocity:d.getVelocity(),...c,delay:-g,onUpdate:e=>{d.set(e),c.onUpdate&&c.onUpdate(e)},onComplete:()=>{f(),c.onComplete&&c.onComplete()},name:l,motionValue:d,element:p?void 0:y};t.isTransitionDefined(c)||Object.assign(v,i.getDefaultTransition(l,v)),v.duration&&(v.duration=n.secondsToMilliseconds(v.duration)),v.repeatDelay&&(v.repeatDelay=n.secondsToMilliseconds(v.repeatDelay)),void 0!==v.from&&(v.keyframes[0]=v.from);let M=!1;if((!1===v.type||0===v.duration&&!v.repeatDelay)&&(v.duration=0,0===v.delay&&(M=!0)),(s.MotionGlobalConfig.instantAnimations||s.MotionGlobalConfig.skipAnimations)&&(M=!0,v.duration=0,v.delay=0),v.allowFlatten=!c.type&&!c.ease,M&&!p&&void 0!==d.get()){const i=e.getFinalKeyframe(v.keyframes,c);if(void 0!==i)return void a.frame.update((()=>{v.onUpdate(i),v.onComplete()}))}return new r.AsyncMotionValueAnimation(v)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../animators/waapi/utils/get-final-keyframe.mjs.js"),i=require("../utils/default-transitions.mjs.js"),t=require("../utils/is-transition-defined.mjs.js"),o=require("../../../../../motion-dom/dist/es/animation/utils/get-value-transition.mjs.js"),n=require("../../../../../motion-utils/dist/es/time-conversion.mjs.js"),s=require("../../../../../motion-utils/dist/es/global-config.mjs.js"),a=require("../../../../../motion-dom/dist/es/frameloop/frame.mjs.js"),r=require("../../../../../motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs.js");exports.animateMotionValue=function(l,d,m){let u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},y=arguments.length>4?arguments[4]:void 0,f=arguments.length>5?arguments[5]:void 0;return p=>{const c=o.getValueTransition(u,l)||{},j=c.delay||u.delay||0;let{elapsed:g=0}=u;g-=n.secondsToMilliseconds(j);const v={keyframes:Array.isArray(m)?m:[null,m],ease:"easeOut",velocity:d.getVelocity(),...c,delay:-g,onUpdate:e=>{d.set(e),c.onUpdate&&c.onUpdate(e)},onComplete:()=>{p(),c.onComplete&&c.onComplete()},name:l,motionValue:d,element:f?void 0:y};t.isTransitionDefined(c)||Object.assign(v,i.getDefaultTransition(l,v)),v.duration&&(v.duration=n.secondsToMilliseconds(v.duration)),v.repeatDelay&&(v.repeatDelay=n.secondsToMilliseconds(v.repeatDelay)),void 0!==v.from&&(v.keyframes[0]=v.from);let M=!1;if((!1===v.type||0===v.duration&&!v.repeatDelay)&&(v.duration=0,0===v.delay&&(M=!0)),(s.MotionGlobalConfig.instantAnimations||s.MotionGlobalConfig.skipAnimations)&&(M=!0,v.duration=0,v.delay=0),v.allowFlatten=!c.type&&!c.ease,M&&!f&&void 0!==d.get()){const i=e.getFinalKeyframe(v.keyframes,c);if(void 0!==i)return void a.frame.update((()=>{v.onUpdate(i),v.onComplete()}))}return new r.AsyncMotionValueAnimation(v)}};
2
2
  //# sourceMappingURL=motion-value.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"motion-value.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/animation/interfaces/motion-value.mjs"],"sourcesContent":["import { getValueTransition, frame, AsyncMotionValueAnimation } from 'motion-dom';\nimport { secondsToMilliseconds, MotionGlobalConfig } from 'motion-utils';\nimport { getFinalKeyframe } from '../animators/waapi/utils/get-final-keyframe.mjs';\nimport { getDefaultTransition } from '../utils/default-transitions.mjs';\nimport { isTransitionDefined } from '../utils/is-transition-defined.mjs';\n\nconst animateMotionValue = (name, value, target, transition = {}, element, isHandoff) => (onComplete) => {\n const valueTransition = getValueTransition(transition, name) || {};\n /**\n * Most transition values are currently completely overwritten by value-specific\n * transitions. In the future it'd be nicer to blend these transitions. But for now\n * delay actually does inherit from the root transition if not value-specific.\n */\n const delay = valueTransition.delay || transition.delay || 0;\n /**\n * Elapsed isn't a public transition option but can be passed through from\n * optimized appear effects in milliseconds.\n */\n let { elapsed = 0 } = transition;\n elapsed = elapsed - secondsToMilliseconds(delay);\n const options = {\n keyframes: Array.isArray(target) ? target : [null, target],\n ease: \"easeOut\",\n velocity: value.getVelocity(),\n ...valueTransition,\n delay: -elapsed,\n onUpdate: (v) => {\n value.set(v);\n valueTransition.onUpdate && valueTransition.onUpdate(v);\n },\n onComplete: () => {\n onComplete();\n valueTransition.onComplete && valueTransition.onComplete();\n },\n name,\n motionValue: value,\n element: isHandoff ? undefined : element,\n };\n /**\n * If there's no transition defined for this value, we can generate\n * unique transition settings for this value.\n */\n if (!isTransitionDefined(valueTransition)) {\n Object.assign(options, getDefaultTransition(name, options));\n }\n /**\n * Both WAAPI and our internal animation functions use durations\n * as defined by milliseconds, while our external API defines them\n * as seconds.\n */\n options.duration && (options.duration = secondsToMilliseconds(options.duration));\n options.repeatDelay && (options.repeatDelay = secondsToMilliseconds(options.repeatDelay));\n /**\n * Support deprecated way to set initial value. Prefer keyframe syntax.\n */\n if (options.from !== undefined) {\n options.keyframes[0] = options.from;\n }\n let shouldSkip = false;\n if (options.type === false ||\n (options.duration === 0 && !options.repeatDelay)) {\n options.duration = 0;\n if (options.delay === 0) {\n shouldSkip = true;\n }\n }\n if (MotionGlobalConfig.instantAnimations ||\n MotionGlobalConfig.skipAnimations) {\n shouldSkip = true;\n options.duration = 0;\n options.delay = 0;\n }\n /**\n * If the transition type or easing has been explicitly set by the user\n * then we don't want to allow flattening the animation.\n */\n options.allowFlatten = !valueTransition.type && !valueTransition.ease;\n /**\n * If we can or must skip creating the animation, and apply only\n * the final keyframe, do so. We also check once keyframes are resolved but\n * this early check prevents the need to create an animation at all.\n */\n if (shouldSkip && !isHandoff && value.get() !== undefined) {\n const finalKeyframe = getFinalKeyframe(options.keyframes, valueTransition);\n if (finalKeyframe !== undefined) {\n frame.update(() => {\n options.onUpdate(finalKeyframe);\n options.onComplete();\n });\n return;\n }\n }\n return new AsyncMotionValueAnimation(options);\n};\n\nexport { animateMotionValue };\n"],"names":["animateMotionValue","name","value","target","transition","element","isHandoff","onComplete","valueTransition","getValueTransition","delay","elapsed","secondsToMilliseconds","options","keyframes","Array","isArray","ease","velocity","getVelocity","onUpdate","v","set","motionValue","undefined","isTransitionDefined","Object","assign","getDefaultTransition","duration","repeatDelay","from","shouldSkip","type","MotionGlobalConfig","instantAnimations","skipAnimations","allowFlatten","get","finalKeyframe","getFinalKeyframe","frame","update","AsyncMotionValueAnimation"],"mappings":"gpBAM2BA,CAACC,EAAMC,EAAOC,EAAQC,EAAa,GAAIC,EAASC,IAAeC,IACtF,MAAMC,EAAkBC,EAAkBA,mBAACL,EAAYH,IAAS,CAAA,EAM1DS,EAAQF,EAAgBE,OAASN,EAAWM,OAAS,EAK3D,IAAIC,QAAEA,EAAU,GAAMP,EACtBO,GAAoBC,wBAAsBF,GAC1C,MAAMG,EAAU,CACZC,UAAWC,MAAMC,QAAQb,GAAUA,EAAS,CAAC,KAAMA,GACnDc,KAAM,UACNC,SAAUhB,EAAMiB,iBACbX,EACHE,OAAQC,EACRS,SAAWC,IACPnB,EAAMoB,IAAID,GACVb,EAAgBY,UAAYZ,EAAgBY,SAASC,EAAE,EAE3Dd,WAAYA,KACRA,IACAC,EAAgBD,YAAcC,EAAgBD,YAAY,EAE9DN,OACAsB,YAAarB,EACbG,QAASC,OAAYkB,EAAYnB,GAMhCoB,EAAAA,oBAAoBjB,IACrBkB,OAAOC,OAAOd,EAASe,EAAoBA,qBAAC3B,EAAMY,IAOtDA,EAAQgB,WAAahB,EAAQgB,SAAWjB,EAAAA,sBAAsBC,EAAQgB,WACtEhB,EAAQiB,cAAgBjB,EAAQiB,YAAclB,EAAAA,sBAAsBC,EAAQiB,mBAIvDN,IAAjBX,EAAQkB,OACRlB,EAAQC,UAAU,GAAKD,EAAQkB,MAEnC,IAAIC,GAAa,EAwBjB,KAvBqB,IAAjBnB,EAAQoB,MACc,IAArBpB,EAAQgB,WAAmBhB,EAAQiB,eACpCjB,EAAQgB,SAAW,EACG,IAAlBhB,EAAQH,QACRsB,GAAa,KAGjBE,qBAAmBC,mBACnBD,EAAkBA,mBAACE,kBACnBJ,GAAa,EACbnB,EAAQgB,SAAW,EACnBhB,EAAQH,MAAQ,GAMpBG,EAAQwB,cAAgB7B,EAAgByB,OAASzB,EAAgBS,KAM7De,IAAe1B,QAA6BkB,IAAhBtB,EAAMoC,MAAqB,CACvD,MAAMC,EAAgBC,EAAgBA,iBAAC3B,EAAQC,UAAWN,GAC1D,QAAsBgB,IAAlBe,EAKA,YAJAE,EAAKA,MAACC,QAAO,KACT7B,EAAQO,SAASmB,GACjB1B,EAAQN,YAAY,GAIhC,CACA,OAAO,IAAIoC,EAAAA,0BAA0B9B,EAAQ"}
1
+ {"version":3,"file":"motion-value.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/animation/interfaces/motion-value.mjs"],"sourcesContent":["import { getValueTransition, frame, AsyncMotionValueAnimation } from 'motion-dom';\nimport { secondsToMilliseconds, MotionGlobalConfig } from 'motion-utils';\nimport { getFinalKeyframe } from '../animators/waapi/utils/get-final-keyframe.mjs';\nimport { getDefaultTransition } from '../utils/default-transitions.mjs';\nimport { isTransitionDefined } from '../utils/is-transition-defined.mjs';\n\nconst animateMotionValue = (name, value, target, transition = {}, element, isHandoff) => (onComplete) => {\n const valueTransition = getValueTransition(transition, name) || {};\n /**\n * Most transition values are currently completely overwritten by value-specific\n * transitions. In the future it'd be nicer to blend these transitions. But for now\n * delay actually does inherit from the root transition if not value-specific.\n */\n const delay = valueTransition.delay || transition.delay || 0;\n /**\n * Elapsed isn't a public transition option but can be passed through from\n * optimized appear effects in milliseconds.\n */\n let { elapsed = 0 } = transition;\n elapsed = elapsed - secondsToMilliseconds(delay);\n const options = {\n keyframes: Array.isArray(target) ? target : [null, target],\n ease: \"easeOut\",\n velocity: value.getVelocity(),\n ...valueTransition,\n delay: -elapsed,\n onUpdate: (v) => {\n value.set(v);\n valueTransition.onUpdate && valueTransition.onUpdate(v);\n },\n onComplete: () => {\n onComplete();\n valueTransition.onComplete && valueTransition.onComplete();\n },\n name,\n motionValue: value,\n element: isHandoff ? undefined : element,\n };\n /**\n * If there's no transition defined for this value, we can generate\n * unique transition settings for this value.\n */\n if (!isTransitionDefined(valueTransition)) {\n Object.assign(options, getDefaultTransition(name, options));\n }\n /**\n * Both WAAPI and our internal animation functions use durations\n * as defined by milliseconds, while our external API defines them\n * as seconds.\n */\n options.duration && (options.duration = secondsToMilliseconds(options.duration));\n options.repeatDelay && (options.repeatDelay = secondsToMilliseconds(options.repeatDelay));\n /**\n * Support deprecated way to set initial value. Prefer keyframe syntax.\n */\n if (options.from !== undefined) {\n options.keyframes[0] = options.from;\n }\n let shouldSkip = false;\n if (options.type === false ||\n (options.duration === 0 && !options.repeatDelay)) {\n options.duration = 0;\n if (options.delay === 0) {\n shouldSkip = true;\n }\n }\n if (MotionGlobalConfig.instantAnimations ||\n MotionGlobalConfig.skipAnimations) {\n shouldSkip = true;\n options.duration = 0;\n options.delay = 0;\n }\n /**\n * If the transition type or easing has been explicitly set by the user\n * then we don't want to allow flattening the animation.\n */\n options.allowFlatten = !valueTransition.type && !valueTransition.ease;\n /**\n * If we can or must skip creating the animation, and apply only\n * the final keyframe, do so. We also check once keyframes are resolved but\n * this early check prevents the need to create an animation at all.\n */\n if (shouldSkip && !isHandoff && value.get() !== undefined) {\n const finalKeyframe = getFinalKeyframe(options.keyframes, valueTransition);\n if (finalKeyframe !== undefined) {\n frame.update(() => {\n options.onUpdate(finalKeyframe);\n options.onComplete();\n });\n return;\n }\n }\n return new AsyncMotionValueAnimation(options);\n};\n\nexport { animateMotionValue };\n"],"names":["name","value","target","transition","arguments","length","undefined","element","isHandoff","onComplete","valueTransition","getValueTransition","delay","elapsed","secondsToMilliseconds","options","keyframes","Array","isArray","ease","velocity","getVelocity","onUpdate","v","set","motionValue","isTransitionDefined","Object","assign","getDefaultTransition","duration","repeatDelay","from","shouldSkip","type","MotionGlobalConfig","instantAnimations","skipAnimations","allowFlatten","get","finalKeyframe","getFinalKeyframe","frame","update","AsyncMotionValueAnimation"],"mappings":"gpBAM2B,SAACA,EAAMC,EAAOC,GAAM,IAAEC,EAAUC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,CAAA,EAAIG,EAAOH,UAAAC,OAAAD,EAAAA,kBAAAE,EAAEE,EAASJ,UAAAC,OAAAD,EAAAA,kBAAAE,EAAA,OAAMG,IACtF,MAAMC,EAAkBC,EAAkBA,mBAACR,EAAYH,IAAS,CAAA,EAM1DY,EAAQF,EAAgBE,OAAST,EAAWS,OAAS,EAK3D,IAAIC,QAAEA,EAAU,GAAMV,EACtBU,GAAoBC,wBAAsBF,GAC1C,MAAMG,EAAU,CACZC,UAAWC,MAAMC,QAAQhB,GAAUA,EAAS,CAAC,KAAMA,GACnDiB,KAAM,UACNC,SAAUnB,EAAMoB,iBACbX,EACHE,OAAQC,EACRS,SAAWC,IACPtB,EAAMuB,IAAID,GACVb,EAAgBY,UAAYZ,EAAgBY,SAASC,EAAE,EAE3Dd,WAAYA,KACRA,IACAC,EAAgBD,YAAcC,EAAgBD,YAAY,EAE9DT,OACAyB,YAAaxB,EACbM,QAASC,OAAYF,EAAYC,GAMhCmB,EAAAA,oBAAoBhB,IACrBiB,OAAOC,OAAOb,EAASc,EAAoBA,qBAAC7B,EAAMe,IAOtDA,EAAQe,WAAaf,EAAQe,SAAWhB,EAAAA,sBAAsBC,EAAQe,WACtEf,EAAQgB,cAAgBhB,EAAQgB,YAAcjB,EAAAA,sBAAsBC,EAAQgB,mBAIvDzB,IAAjBS,EAAQiB,OACRjB,EAAQC,UAAU,GAAKD,EAAQiB,MAEnC,IAAIC,GAAa,EAwBjB,KAvBqB,IAAjBlB,EAAQmB,MACc,IAArBnB,EAAQe,WAAmBf,EAAQgB,eACpChB,EAAQe,SAAW,EACG,IAAlBf,EAAQH,QACRqB,GAAa,KAGjBE,qBAAmBC,mBACnBD,EAAkBA,mBAACE,kBACnBJ,GAAa,EACblB,EAAQe,SAAW,EACnBf,EAAQH,MAAQ,GAMpBG,EAAQuB,cAAgB5B,EAAgBwB,OAASxB,EAAgBS,KAM7Dc,IAAezB,QAA6BF,IAAhBL,EAAMsC,MAAqB,CACvD,MAAMC,EAAgBC,EAAgBA,iBAAC1B,EAAQC,UAAWN,GAC1D,QAAsBJ,IAAlBkC,EAKA,YAJAE,EAAKA,MAACC,QAAO,KACT5B,EAAQO,SAASkB,GACjBzB,EAAQN,YAAY,GAIhC,CACA,OAAO,IAAImC,EAAAA,0BAA0B7B,EAAQ,CAChD"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../render/utils/setters.mjs.js"),t=require("../../value/use-will-change/add-will-change.mjs.js"),i=require("../optimized-appear/get-appear-id.mjs.js"),n=require("./motion-value.mjs.js"),o=require("../../../../../motion-dom/dist/es/animation/utils/get-value-transition.mjs.js"),a=require("../../../../../motion-dom/dist/es/frameloop/frame.mjs.js"),s=require("../../../../../motion-dom/dist/es/render/utils/keys-position.mjs.js");function r({protectedKeys:e,needsAnimating:t},i){const n=e.hasOwnProperty(i)&&!0!==t[i];return t[i]=!1,n}exports.animateTarget=function(l,u,{delay:d=0,transitionOverride:m,type:p}={}){let{transition:c=l.getDefaultTransition(),transitionEnd:f,...g}=u;m&&(c=m);const j=[],y=p&&l.animationState&&l.animationState.getState()[p];for(const e in g){const u=l.getValue(e,l.latestValues[e]??null),m=g[e];if(void 0===m||y&&r(y,e))continue;const p={delay:d,...o.getValueTransition(c||{},e)},f=u.get();if(void 0!==f&&!u.isAnimating&&!Array.isArray(m)&&m===f&&!p.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const t=i.getOptimisedAppearId(l);if(t){const i=window.MotionHandoffAnimation(t,e,a.frame);null!==i&&(p.startTime=i,v=!0)}}t.addValueToWillChange(l,e),u.start(n.animateMotionValue(e,u,m,l.shouldReduceMotion&&s.positionalKeys.has(e)?{type:!1}:p,l,v));const h=u.animation;h&&j.push(h)}return f&&Promise.all(j).then((()=>{a.frame.update((()=>{f&&e.setTarget(l,f)}))})),j};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../render/utils/setters.mjs.js"),t=require("../../value/use-will-change/add-will-change.mjs.js"),i=require("../optimized-appear/get-appear-id.mjs.js"),n=require("./motion-value.mjs.js"),o=require("../../../../../motion-dom/dist/es/animation/utils/get-value-transition.mjs.js"),a=require("../../../../../motion-dom/dist/es/frameloop/frame.mjs.js"),s=require("../../../../../motion-dom/dist/es/render/utils/keys-position.mjs.js");function r(e,t){let{protectedKeys:i,needsAnimating:n}=e;const o=i.hasOwnProperty(t)&&!0!==n[t];return n[t]=!1,o}exports.animateTarget=function(l,u){let{delay:d=0,transitionOverride:m,type:p}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{transition:c=l.getDefaultTransition(),transitionEnd:f,...g}=u;m&&(c=m);const j=[],y=p&&l.animationState&&l.animationState.getState()[p];for(const e in g){const u=l.getValue(e,l.latestValues[e]??null),m=g[e];if(void 0===m||y&&r(y,e))continue;const p={delay:d,...o.getValueTransition(c||{},e)},f=u.get();if(void 0!==f&&!u.isAnimating&&!Array.isArray(m)&&m===f&&!p.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const t=i.getOptimisedAppearId(l);if(t){const i=window.MotionHandoffAnimation(t,e,a.frame);null!==i&&(p.startTime=i,v=!0)}}t.addValueToWillChange(l,e),u.start(n.animateMotionValue(e,u,m,l.shouldReduceMotion&&s.positionalKeys.has(e)?{type:!1}:p,l,v));const h=u.animation;h&&j.push(h)}return f&&Promise.all(j).then((()=>{a.frame.update((()=>{f&&e.setTarget(l,f)}))})),j};
2
2
  //# sourceMappingURL=visual-element-target.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"visual-element-target.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs"],"sourcesContent":["import { getValueTransition, frame, positionalKeys } from 'motion-dom';\nimport { setTarget } from '../../render/utils/setters.mjs';\nimport { addValueToWillChange } from '../../value/use-will-change/add-will-change.mjs';\nimport { getOptimisedAppearId } from '../optimized-appear/get-appear-id.mjs';\nimport { animateMotionValue } from './motion-value.mjs';\n\n/**\n * Decide whether we should block this animation. Previously, we achieved this\n * just by checking whether the key was listed in protectedKeys, but this\n * posed problems if an animation was triggered by afterChildren and protectedKeys\n * had been set to true in the meantime.\n */\nfunction shouldBlockAnimation({ protectedKeys, needsAnimating }, key) {\n const shouldBlock = protectedKeys.hasOwnProperty(key) && needsAnimating[key] !== true;\n needsAnimating[key] = false;\n return shouldBlock;\n}\nfunction animateTarget(visualElement, targetAndTransition, { delay = 0, transitionOverride, type } = {}) {\n let { transition = visualElement.getDefaultTransition(), transitionEnd, ...target } = targetAndTransition;\n if (transitionOverride)\n transition = transitionOverride;\n const animations = [];\n const animationTypeState = type &&\n visualElement.animationState &&\n visualElement.animationState.getState()[type];\n for (const key in target) {\n const value = visualElement.getValue(key, visualElement.latestValues[key] ?? null);\n const valueTarget = target[key];\n if (valueTarget === undefined ||\n (animationTypeState &&\n shouldBlockAnimation(animationTypeState, key))) {\n continue;\n }\n const valueTransition = {\n delay,\n ...getValueTransition(transition || {}, key),\n };\n /**\n * If the value is already at the defined target, skip the animation.\n */\n const currentValue = value.get();\n if (currentValue !== undefined &&\n !value.isAnimating &&\n !Array.isArray(valueTarget) &&\n valueTarget === currentValue &&\n !valueTransition.velocity) {\n continue;\n }\n /**\n * If this is the first time a value is being animated, check\n * to see if we're handling off from an existing animation.\n */\n let isHandoff = false;\n if (window.MotionHandoffAnimation) {\n const appearId = getOptimisedAppearId(visualElement);\n if (appearId) {\n const startTime = window.MotionHandoffAnimation(appearId, key, frame);\n if (startTime !== null) {\n valueTransition.startTime = startTime;\n isHandoff = true;\n }\n }\n }\n addValueToWillChange(visualElement, key);\n value.start(animateMotionValue(key, value, valueTarget, visualElement.shouldReduceMotion && positionalKeys.has(key)\n ? { type: false }\n : valueTransition, visualElement, isHandoff));\n const animation = value.animation;\n if (animation) {\n animations.push(animation);\n }\n }\n if (transitionEnd) {\n Promise.all(animations).then(() => {\n frame.update(() => {\n transitionEnd && setTarget(visualElement, transitionEnd);\n });\n });\n }\n return animations;\n}\n\nexport { animateTarget };\n"],"names":["shouldBlockAnimation","protectedKeys","needsAnimating","key","shouldBlock","hasOwnProperty","visualElement","targetAndTransition","delay","transitionOverride","type","transition","getDefaultTransition","transitionEnd","target","animations","animationTypeState","animationState","getState","value","getValue","latestValues","valueTarget","undefined","valueTransition","getValueTransition","currentValue","get","isAnimating","Array","isArray","velocity","isHandoff","window","MotionHandoffAnimation","appearId","getOptimisedAppearId","startTime","frame","addValueToWillChange","start","animateMotionValue","shouldReduceMotion","positionalKeys","has","animation","push","Promise","all","then","update","setTarget"],"mappings":"kgBAYA,SAASA,GAAqBC,cAAEA,EAAaC,eAAEA,GAAkBC,GAC7D,MAAMC,EAAcH,EAAcI,eAAeF,KAAgC,IAAxBD,EAAeC,G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GAC1D,IAGHE,CACX"}
1
+ {"version":3,"file":"visual-element-target.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs"],"sourcesContent":["import { getValueTransition, frame, positionalKeys } from 'motion-dom';\nimport { setTarget } from '../../render/utils/setters.mjs';\nimport { addValueToWillChange } from '../../value/use-will-change/add-will-change.mjs';\nimport { getOptimisedAppearId } from '../optimized-appear/get-appear-id.mjs';\nimport { animateMotionValue } from './motion-value.mjs';\n\n/**\n * Decide whether we should block this animation. Previously, we achieved this\n * just by checking whether the key was listed in protectedKeys, but this\n * posed problems if an animation was triggered by afterChildren and protectedKeys\n * had been set to true in the meantime.\n */\nfunction shouldBlockAnimation({ protectedKeys, needsAnimating }, key) {\n const shouldBlock = protectedKeys.hasOwnProperty(key) && needsAnimating[key] !== true;\n needsAnimating[key] = false;\n return shouldBlock;\n}\nfunction animateTarget(visualElement, targetAndTransition, { delay = 0, transitionOverride, type } = {}) {\n let { transition = visualElement.getDefaultTransition(), transitionEnd, ...target } = targetAndTransition;\n if (transitionOverride)\n transition = transitionOverride;\n const animations = [];\n const animationTypeState = type &&\n visualElement.animationState &&\n visualElement.animationState.getState()[type];\n for (const key in target) {\n const value = visualElement.getValue(key, visualElement.latestValues[key] ?? null);\n const valueTarget = target[key];\n if (valueTarget === undefined ||\n (animationTypeState &&\n shouldBlockAnimation(animationTypeState, key))) {\n continue;\n }\n const valueTransition = {\n delay,\n ...getValueTransition(transition || {}, key),\n };\n /**\n * If the value is already at the defined target, skip the animation.\n */\n const currentValue = value.get();\n if (currentValue !== undefined &&\n !value.isAnimating &&\n !Array.isArray(valueTarget) &&\n valueTarget === currentValue &&\n !valueTransition.velocity) {\n continue;\n }\n /**\n * If this is the first time a value is being animated, check\n * to see if we're handling off from an existing animation.\n */\n let isHandoff = false;\n if (window.MotionHandoffAnimation) {\n const appearId = getOptimisedAppearId(visualElement);\n if (appearId) {\n const startTime = window.MotionHandoffAnimation(appearId, key, frame);\n if (startTime !== null) {\n valueTransition.startTime = startTime;\n isHandoff = true;\n }\n }\n }\n addValueToWillChange(visualElement, key);\n value.start(animateMotionValue(key, value, valueTarget, visualElement.shouldReduceMotion && positionalKeys.has(key)\n ? { type: false }\n : valueTransition, visualElement, isHandoff));\n const animation = value.animation;\n if (animation) {\n animations.push(animation);\n }\n }\n if (transitionEnd) {\n Promise.all(animations).then(() => {\n frame.update(() => {\n transitionEnd && setTarget(visualElement, transitionEnd);\n });\n });\n }\n return animations;\n}\n\nexport { animateTarget };\n"],"names":["shouldBlockAnimation","_ref","key","protectedKeys","needsAnimating","shouldBlock","hasOwnProperty","visualElement","targetAndTransition","delay","transitionOverride","type","arguments","length","undefined","transition","getDefaultTransition","transitionEnd","target","animations","animationTypeState","animationState","getState","value","getValue","latestValues","valueTarget","valueTransition","getValueTransition","currentValue","get","isAnimating","Array","isArray","velocity","isHandoff","window","MotionHandoffAnimation","appearId","getOptimisedAppearId","startTime","frame","addValueToWillChange","start","animateMotionValue","shouldReduceMotion","positionalKeys","has","animation","push","Promise","all","then","update","setTarget"],"mappings":"kgBAYA,SAASA,EAAoBC,EAAoCC,GAAK,IAAxCC,cAAEA,EAAaC,eAAEA,GAAgBH,EAC3D,MAAMI,EAAcF,EAAcG,eAAeJ,KAAgC,IAAxBE,EAAeF,GAExE,OADAE,EAAeF,IAAO,EACfG,CACX,uBACA,SAAuBE,EAAeC,GAAmE,IAA9CC,MAAEA,EAAQ,EAACC,mBAAEA,EAAkBC,KAAEA,GAAMC,UAAAC,OAAAD,QAAAE,IAAAF,UAAAE,GAAAF,UAAG,GAAA,IAC7FG,WAAEA,EAAaR,EAAcS,uBAAsBC,cAAEA,KAAkBC,GAAWV,EAClFE,IACAK,EAAaL,GACjB,MAAMS,EAAa,GACbC,EAAqBT,GACvBJ,EAAcc,gBACdd,EAAcc,eAAeC,WAAWX,GAC5C,IAAK,MAAMT,KAAOgB,EAAQ,CACtB,MAAMK,EAAQhB,EAAciB,SAAStB,EAAKK,EAAckB,aAAavB,IAAQ,MACvEwB,EAAcR,EAAOhB,GAC3B,QAAoBY,IAAhBY,GACCN,GACGpB,EAAqBoB,EAAoBlB,GAC7C,SAEJ,MAAMyB,EAAkB,CACpBlB,WACGmB,qBAAmBb,GAAc,CAAE,EAAEb,IAKtC2B,EAAeN,EAAMO,MAC3B,QAAqBhB,IAAjBe,IACCN,EAAMQ,cACNC,MAAMC,QAAQP,IACfA,IAAgBG,IACfF,EAAgBO,SACjB,SAMJ,IAAIC,GAAY,EAChB,GAAIC,OAAOC,uBAAwB,CAC/B,MAAMC,EAAWC,uBAAqBhC,GACtC,GAAI+B,EAAU,CACV,MAAME,EAAYJ,OAAOC,uBAAuBC,EAAUpC,EAAKuC,EAAAA,OAC7C,OAAdD,IACAb,EAAgBa,UAAYA,EAC5BL,GAAY,EAEpB,CACJ,CACAO,uBAAqBnC,EAAeL,GACpCqB,EAAMoB,MAAMC,qBAAmB1C,EAAKqB,EAAOG,EAAanB,EAAcsC,oBAAsBC,EAAAA,eAAeC,IAAI7C,GACzG,CAAES,MAAM,GACRgB,EAAiBpB,EAAe4B,IACtC,MAAMa,EAAYzB,EAAMyB,UACpBA,GACA7B,EAAW8B,KAAKD,EAExB,CAQA,OAPI/B,GACAiC,QAAQC,IAAIhC,GAAYiC,MAAK,KACzBX,EAAKA,MAACY,QAAO,KACTpC,GAAiBqC,EAASA,UAAC/C,EAAeU,EAAc,GAC1D,IAGHE,CACX"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../render/utils/resolve-dynamic-variants.mjs.js"),r=require("./visual-element-target.mjs.js");function t(i,o,a={}){const s=e.resolveVariant(i,o,"exit"===a.type?i.presenceContext?.custom:void 0);let{transition:l=i.getDefaultTransition()||{}}=s||{};a.transitionOverride&&(l=a.transitionOverride);const d=s?()=>Promise.all(r.animateTarget(i,s,a)):()=>Promise.resolve(),u=i.variantChildren&&i.variantChildren.size?(e=0)=>{const{delayChildren:r=0,staggerChildren:s,staggerDirection:d}=l;return function(e,r,i=0,o=0,a=1,s){const l=[],d=(e.variantChildren.size-1)*o,u=1===a?(e=0)=>e*o:(e=0)=>d-e*o;return Array.from(e.variantChildren).sort(n).forEach(((e,n)=>{e.notify("AnimationStart",r),l.push(t(e,r,{...s,delay:i+u(n)}).then((()=>e.notify("AnimationComplete",r))))})),Promise.all(l)}(i,o,r+e,s,d,a)}:()=>Promise.resolve(),{when:m}=l;if(m){const[e,r]="beforeChildren"===m?[d,u]:[u,d];return e().then((()=>r()))}return Promise.all([d(),u(a.delay)])}function n(e,r){return e.sortNodePosition(r)}exports.animateVariant=t,exports.sortByTreeOrder=n;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../render/utils/resolve-dynamic-variants.mjs.js"),t=require("./visual-element-target.mjs.js");function r(i,o){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s=e.resolveVariant(i,o,"exit"===a.type?i.presenceContext?.custom:void 0);let{transition:l=i.getDefaultTransition()||{}}=s||{};a.transitionOverride&&(l=a.transitionOverride);const d=s?()=>Promise.all(t.animateTarget(i,s,a)):()=>Promise.resolve(),u=i.variantChildren&&i.variantChildren.size?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const{delayChildren:t=0,staggerChildren:s,staggerDirection:d}=l;return function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=arguments.length>5?arguments[5]:void 0;const l=[],d=(e.variantChildren.size-1)*o,u=1===a?function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*o}:function(){return d-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*o};return Array.from(e.variantChildren).sort(n).forEach(((e,n)=>{e.notify("AnimationStart",t),l.push(r(e,t,{...s,delay:i+u(n)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(l)}(i,o,t+e,s,d,a)}:()=>Promise.resolve(),{when:v}=l;if(v){const[e,t]="beforeChildren"===v?[d,u]:[u,d];return e().then((()=>t()))}return Promise.all([d(),u(a.delay)])}function n(e,t){return e.sortNodePosition(t)}exports.animateVariant=r,exports.sortByTreeOrder=n;
2
2
  //# sourceMappingURL=visual-element-variant.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"visual-element-variant.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.mjs"],"sourcesContent":["import { resolveVariant } from '../../render/utils/resolve-dynamic-variants.mjs';\nimport { animateTarget } from './visual-element-target.mjs';\n\nfunction animateVariant(visualElement, variant, options = {}) {\n const resolved = resolveVariant(visualElement, variant, options.type === \"exit\"\n ? visualElement.presenceContext?.custom\n : undefined);\n let { transition = visualElement.getDefaultTransition() || {} } = resolved || {};\n if (options.transitionOverride) {\n transition = options.transitionOverride;\n }\n /**\n * If we have a variant, create a callback that runs it as an animation.\n * Otherwise, we resolve a Promise immediately for a composable no-op.\n */\n const getAnimation = resolved\n ? () => Promise.all(animateTarget(visualElement, resolved, options))\n : () => Promise.resolve();\n /**\n * If we have children, create a callback that runs all their animations.\n * Otherwise, we resolve a Promise immediately for a composable no-op.\n */\n const getChildAnimations = visualElement.variantChildren && visualElement.variantChildren.size\n ? (forwardDelay = 0) => {\n const { delayChildren = 0, staggerChildren, staggerDirection, } = transition;\n return animateChildren(visualElement, variant, delayChildren + forwardDelay, staggerChildren, staggerDirection, options);\n }\n : () => Promise.resolve();\n /**\n * If the transition explicitly defines a \"when\" option, we need to resolve either\n * this animation or all children animations before playing the other.\n */\n const { when } = transition;\n if (when) {\n const [first, last] = when === \"beforeChildren\"\n ? [getAnimation, getChildAnimations]\n : [getChildAnimations, getAnimation];\n return first().then(() => last());\n }\n else {\n return Promise.all([getAnimation(), getChildAnimations(options.delay)]);\n }\n}\nfunction animateChildren(visualElement, variant, delayChildren = 0, staggerChildren = 0, staggerDirection = 1, options) {\n const animations = [];\n const maxStaggerDuration = (visualElement.variantChildren.size - 1) * staggerChildren;\n const generateStaggerDuration = staggerDirection === 1\n ? (i = 0) => i * staggerChildren\n : (i = 0) => maxStaggerDuration - i * staggerChildren;\n Array.from(visualElement.variantChildren)\n .sort(sortByTreeOrder)\n .forEach((child, i) => {\n child.notify(\"AnimationStart\", variant);\n animations.push(animateVariant(child, variant, {\n ...options,\n delay: delayChildren + generateStaggerDuration(i),\n }).then(() => child.notify(\"AnimationComplete\", variant)));\n });\n return Promise.all(animations);\n}\nfunction sortByTreeOrder(a, b) {\n return a.sortNodePosition(b);\n}\n\nexport { animateVariant, sortByTreeOrder };\n"],"names":["animateVariant","visualElement","variant","options","resolved","resolveVariant","type","presenceContext","custom","undefined","transition","getDefaultTransition","transitionOverride","getAnimation","Promise","all","animateTarget","resolve","getChildAnimations","variantChildren","size","forwardDelay","delayChildren","staggerChildren","staggerDirection","animations","maxStaggerDuration","generateStaggerDuration","i","Array","from","sort","sortByTreeOrder","forEach","child","notify","push","delay","then","animateChildren","when","first","last","a","b","sortNodePosition"],"mappings":"oLAGA,SAASA,EAAeC,EAAeC,EAASC,EAAU,CAAA,GACtD,MAAMC,EAAWC,EAAAA,eAAeJ,EAAeC,EAA0B,SAAjBC,EAAQG,KAC1DL,EAAcM,iBAAiBC,YAC/BC,GACN,IAAIC,WAAEA,EAAaT,EAAcU,wBAA0B,CAAC,GAAMP,GAAY,CAAA,EAC1ED,EAAQS,qBACRF,EAAaP,EAAQS,oBAMzB,MAAMC,EAAeT,EACf,IAAMU,QAAQC,IAAIC,EAAaA,cAACf,EAAeG,EAAUD,IACzD,IAAMW,QAAQG,UAKdC,EAAqBjB,EAAckB,iBAAmBlB,EAAckB,gBAAgBC,KACpF,CAACC,EAAe,KACd,MAAMC,cAAEA,EAAgB,EAACC,gBAAEA,EAAeC,iBAAEA,GAAsBd,EAClE,OAkBZ,SAAyBT,EAAeC,EAASoB,EAAgB,EAAGC,EAAkB,EAAGC,EAAmB,EAAGrB,GAC3G,MAAMsB,EAAa,GACbC,GAAsBzB,EAAckB,gBAAgBC,KAAO,GAAKG,EAChEI,EAA+C,IAArBH,EAC1B,CAACI,EAAI,IAAMA,EAAIL,EACf,CAACK,EAAI,IAAMF,EAAqBE,EAAIL,EAU1C,OATAM,MAAMC,KAAK7B,EAAckB,iBACpBY,KAAKC,GACLC,SAAQ,CAACC,EAAON,KACjBM,EAAMC,OAAO,iBAAkBjC,GAC/BuB,EAAWW,KAAKpC,EAAekC,EAAOhC,EAAS,IACxCC,EACHkC,MAAOf,EAAgBK,EAAwBC,KAChDU,MAAK,IAAMJ,EAAMC,OAAO,oBAAqBjC,KAAU,IAEvDY,QAAQC,IAAIU,EACvB,CAlCmBc,CAAgBtC,EAAeC,EAASoB,EAAgBD,EAAcE,EAAiBC,EAAkBrB,EAAQ,EAE1H,IAAMW,QAAQG,WAKduB,KAAEA,GAAS9B,EACjB,GAAI8B,EAAM,CACN,MAAOC,EAAOC,GAAiB,mBAATF,EAChB,CAAC3B,EAAcK,GACf,CAACA,EAAoBL,GAC3B,OAAO4B,IAAQH,MAAK,IAAMI,KAC9B,CAEI,OAAO5B,QAAQC,IAAI,CAACF,IAAgBK,EAAmBf,EAAQkC,QAEvE,CAkBA,SAASL,EAAgBW,EAAGC,GACxB,OAAOD,EAAEE,iBAAiBD,EAC9B"}
1
+ {"version":3,"file":"visual-element-variant.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.mjs"],"sourcesContent":["import { resolveVariant } from '../../render/utils/resolve-dynamic-variants.mjs';\nimport { animateTarget } from './visual-element-target.mjs';\n\nfunction animateVariant(visualElement, variant, options = {}) {\n const resolved = resolveVariant(visualElement, variant, options.type === \"exit\"\n ? visualElement.presenceContext?.custom\n : undefined);\n let { transition = visualElement.getDefaultTransition() || {} } = resolved || {};\n if (options.transitionOverride) {\n transition = options.transitionOverride;\n }\n /**\n * If we have a variant, create a callback that runs it as an animation.\n * Otherwise, we resolve a Promise immediately for a composable no-op.\n */\n const getAnimation = resolved\n ? () => Promise.all(animateTarget(visualElement, resolved, options))\n : () => Promise.resolve();\n /**\n * If we have children, create a callback that runs all their animations.\n * Otherwise, we resolve a Promise immediately for a composable no-op.\n */\n const getChildAnimations = visualElement.variantChildren && visualElement.variantChildren.size\n ? (forwardDelay = 0) => {\n const { delayChildren = 0, staggerChildren, staggerDirection, } = transition;\n return animateChildren(visualElement, variant, delayChildren + forwardDelay, staggerChildren, staggerDirection, options);\n }\n : () => Promise.resolve();\n /**\n * If the transition explicitly defines a \"when\" option, we need to resolve either\n * this animation or all children animations before playing the other.\n */\n const { when } = transition;\n if (when) {\n const [first, last] = when === \"beforeChildren\"\n ? [getAnimation, getChildAnimations]\n : [getChildAnimations, getAnimation];\n return first().then(() => last());\n }\n else {\n return Promise.all([getAnimation(), getChildAnimations(options.delay)]);\n }\n}\nfunction animateChildren(visualElement, variant, delayChildren = 0, staggerChildren = 0, staggerDirection = 1, options) {\n const animations = [];\n const maxStaggerDuration = (visualElement.variantChildren.size - 1) * staggerChildren;\n const generateStaggerDuration = staggerDirection === 1\n ? (i = 0) => i * staggerChildren\n : (i = 0) => maxStaggerDuration - i * staggerChildren;\n Array.from(visualElement.variantChildren)\n .sort(sortByTreeOrder)\n .forEach((child, i) => {\n child.notify(\"AnimationStart\", variant);\n animations.push(animateVariant(child, variant, {\n ...options,\n delay: delayChildren + generateStaggerDuration(i),\n }).then(() => child.notify(\"AnimationComplete\", variant)));\n });\n return Promise.all(animations);\n}\nfunction sortByTreeOrder(a, b) {\n return a.sortNodePosition(b);\n}\n\nexport { animateVariant, sortByTreeOrder };\n"],"names":["animateVariant","visualElement","variant","options","arguments","length","undefined","resolved","resolveVariant","type","presenceContext","custom","transition","getDefaultTransition","transitionOverride","getAnimation","Promise","all","animateTarget","resolve","getChildAnimations","variantChildren","size","forwardDelay","delayChildren","staggerChildren","staggerDirection","animations","maxStaggerDuration","generateStaggerDuration","Array","from","sort","sortByTreeOrder","forEach","child","i","notify","push","delay","then","animateChildren","when","first","last","a","b","sortNodePosition"],"mappings":"oLAGA,SAASA,EAAeC,EAAeC,GAAuB,IAAdC,EAAOC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,CAAA,EACtD,MAAMG,EAAWC,EAAAA,eAAeP,EAAeC,EAA0B,SAAjBC,EAAQM,KAC1DR,EAAcS,iBAAiBC,YAC/BL,GACN,IAAIM,WAAEA,EAAaX,EAAcY,wBAA0B,CAAC,GAAMN,GAAY,CAAA,EAC1EJ,EAAQW,qBACRF,EAAaT,EAAQW,oBAMzB,MAAMC,EAAeR,EACf,IAAMS,QAAQC,IAAIC,EAAaA,cAACjB,EAAeM,EAAUJ,IACzD,IAAMa,QAAQG,UAKdC,EAAqBnB,EAAcoB,iBAAmBpB,EAAcoB,gBAAgBC,KACpF,WAAsB,IAArBC,EAAYnB,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,EACd,MAAMoB,cAAEA,EAAgB,EAACC,gBAAEA,EAAeC,iBAAEA,GAAsBd,EAClE,OAkBZ,SAAyBX,EAAeC,GAAgF,IAAvEsB,EAAapB,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,EAAGqB,EAAerB,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,EAAGsB,EAAgBtB,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,EAAGD,EAAOC,UAAAC,OAAAD,EAAAA,kBAAAE,EAClH,MAAMqB,EAAa,GACbC,GAAsB3B,EAAcoB,gBAAgBC,KAAO,GAAKG,EAChEI,EAA+C,IAArBH,EAC1B,WAAM,OAAJtB,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,GAAUqB,GACf,WAAM,OAAKG,GAATxB,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,GAA+BqB,CAAe,EAUzD,OATAK,MAAMC,KAAK9B,EAAcoB,iBACpBW,KAAKC,GACLC,SAAQ,CAACC,EAAOC,KACjBD,EAAME,OAAO,iBAAkBnC,GAC/ByB,EAAWW,KAAKtC,EAAemC,EAAOjC,EAAS,IACxCC,EACHoC,MAAOf,EAAgBK,EAAwBO,KAChDI,MAAK,IAAML,EAAME,OAAO,oBAAqBnC,KAAU,IAEvDc,QAAQC,IAAIU,EACvB,CAlCmBc,CAAgBxC,EAAeC,EAASsB,EAAgBD,EAAcE,EAAiBC,EAAkBvB,EACpH,EACE,IAAMa,QAAQG,WAKduB,KAAEA,GAAS9B,EACjB,GAAI8B,EAAM,CACN,MAAOC,EAAOC,GAAiB,mBAATF,EAChB,CAAC3B,EAAcK,GACf,CAACA,EAAoBL,GAC3B,OAAO4B,IAAQH,MAAK,IAAMI,KAC9B,CAEI,OAAO5B,QAAQC,IAAI,CAACF,IAAgBK,EAAmBjB,EAAQoC,QAEvE,CAkBA,SAASN,EAAgBY,EAAGC,GACxB,OAAOD,EAAEE,iBAAiBD,EAC9B"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../render/utils/resolve-dynamic-variants.mjs.js"),t=require("./visual-element-target.mjs.js"),a=require("./visual-element-variant.mjs.js");exports.animateVisualElement=function(i,r,n={}){let s;if(i.notify("AnimationStart",r),Array.isArray(r)){const e=r.map((e=>a.animateVariant(i,e,n)));s=Promise.all(e)}else if("string"==typeof r)s=a.animateVariant(i,r,n);else{const a="function"==typeof r?e.resolveVariant(i,r,n.custom):r;s=Promise.all(t.animateTarget(i,a,n))}return s.then((()=>{i.notify("AnimationComplete",r)}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../render/utils/resolve-dynamic-variants.mjs.js"),t=require("./visual-element-target.mjs.js"),a=require("./visual-element-variant.mjs.js");exports.animateVisualElement=function(i,r){let n,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(i.notify("AnimationStart",r),Array.isArray(r)){const e=r.map((e=>a.animateVariant(i,e,s)));n=Promise.all(e)}else if("string"==typeof r)n=a.animateVariant(i,r,s);else{const a="function"==typeof r?e.resolveVariant(i,r,s.custom):r;n=Promise.all(t.animateTarget(i,a,s))}return n.then((()=>{i.notify("AnimationComplete",r)}))};
2
2
  //# sourceMappingURL=visual-element.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"visual-element.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/animation/interfaces/visual-element.mjs"],"sourcesContent":["import { resolveVariant } from '../../render/utils/resolve-dynamic-variants.mjs';\nimport { animateTarget } from './visual-element-target.mjs';\nimport { animateVariant } from './visual-element-variant.mjs';\n\nfunction animateVisualElement(visualElement, definition, options = {}) {\n visualElement.notify(\"AnimationStart\", definition);\n let animation;\n if (Array.isArray(definition)) {\n const animations = definition.map((variant) => animateVariant(visualElement, variant, options));\n animation = Promise.all(animations);\n }\n else if (typeof definition === \"string\") {\n animation = animateVariant(visualElement, definition, options);\n }\n else {\n const resolvedDefinition = typeof definition === \"function\"\n ? resolveVariant(visualElement, definition, options.custom)\n : definition;\n animation = Promise.all(animateTarget(visualElement, resolvedDefinition, options));\n }\n return animation.then(() => {\n visualElement.notify(\"AnimationComplete\", definition);\n });\n}\n\nexport { animateVisualElement };\n"],"names":["visualElement","definition","options","animation","notify","Array","isArray","animations","map","variant","animateVariant","Promise","all","resolvedDefinition","resolveVariant","custom","animateTarget","then"],"mappings":"8PAIA,SAA8BA,EAAeC,EAAYC,EAAU,CAAA,GAE/D,IAAIC,EACJ,GAFAH,EAAcI,OAAO,iBAAkBH,GAEnCI,MAAMC,QAAQL,GAAa,CAC3B,MAAMM,EAAaN,EAAWO,KAAKC,GAAYC,EAAcA,eAACV,EAAeS,EAASP,KACtFC,EAAYQ,QAAQC,IAAIL,EAC5B,MACK,GAA0B,iBAAfN,EACZE,EAAYO,EAAAA,eAAeV,EAAeC,EAAYC,OAErD,CACD,MAAMW,EAA2C,mBAAfZ,EAC5Ba,EAAcA,eAACd,EAAeC,EAAYC,EAAQa,QAClDd,EACNE,EAAYQ,QAAQC,IAAII,EAAAA,cAAchB,EAAea,EAAoBX,GAC7E,CACA,OAAOC,EAAUc,MAAK,KAClBjB,EAAcI,OAAO,oBAAqBH,EAAW,GAE7D"}
1
+ {"version":3,"file":"visual-element.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/animation/interfaces/visual-element.mjs"],"sourcesContent":["import { resolveVariant } from '../../render/utils/resolve-dynamic-variants.mjs';\nimport { animateTarget } from './visual-element-target.mjs';\nimport { animateVariant } from './visual-element-variant.mjs';\n\nfunction animateVisualElement(visualElement, definition, options = {}) {\n visualElement.notify(\"AnimationStart\", definition);\n let animation;\n if (Array.isArray(definition)) {\n const animations = definition.map((variant) => animateVariant(visualElement, variant, options));\n animation = Promise.all(animations);\n }\n else if (typeof definition === \"string\") {\n animation = animateVariant(visualElement, definition, options);\n }\n else {\n const resolvedDefinition = typeof definition === \"function\"\n ? resolveVariant(visualElement, definition, options.custom)\n : definition;\n animation = Promise.all(animateTarget(visualElement, resolvedDefinition, options));\n }\n return animation.then(() => {\n visualElement.notify(\"AnimationComplete\", definition);\n });\n}\n\nexport { animateVisualElement };\n"],"names":["visualElement","definition","animation","options","arguments","length","undefined","notify","Array","isArray","animations","map","variant","animateVariant","Promise","all","resolvedDefinition","resolveVariant","custom","animateTarget","then"],"mappings":"8PAIA,SAA8BA,EAAeC,GAA0B,IAE/DC,EAFiDC,EAAOC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,CAAA,EAG/D,GAFAJ,EAAcO,OAAO,iBAAkBN,GAEnCO,MAAMC,QAAQR,GAAa,CAC3B,MAAMS,EAAaT,EAAWU,KAAKC,GAAYC,EAAcA,eAACb,EAAeY,EAAST,KACtFD,EAAYY,QAAQC,IAAIL,EAC5B,MACK,GAA0B,iBAAfT,EACZC,EAAYW,EAAAA,eAAeb,EAAeC,EAAYE,OAErD,CACD,MAAMa,EAA2C,mBAAff,EAC5BgB,EAAcA,eAACjB,EAAeC,EAAYE,EAAQe,QAClDjB,EACNC,EAAYY,QAAQC,IAAII,EAAAA,cAAcnB,EAAegB,EAAoBb,GAC7E,CACA,OAAOD,EAAUkB,MAAK,KAClBpB,EAAcO,OAAO,oBAAqBN,EAAW,GAE7D"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../motion-dom/dist/es/render/utils/keys-transform.mjs.js");const s={type:"spring",stiffness:500,damping:25,restSpeed:10},t={type:"keyframes",duration:.8},r={type:"keyframes",ease:[.25,.1,.35,1],duration:.3};exports.getDefaultTransition=(a,{keyframes:i})=>i.length>2?t:e.transformProps.has(a)?a.startsWith("scale")?{type:"spring",stiffness:550,damping:0===i[1]?2*Math.sqrt(550):30,restSpeed:10}:s:r;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../motion-dom/dist/es/render/utils/keys-transform.mjs.js");const s={type:"spring",stiffness:500,damping:25,restSpeed:10},t={type:"keyframes",duration:.8},r={type:"keyframes",ease:[.25,.1,.35,1],duration:.3};exports.getDefaultTransition=(a,n)=>{let{keyframes:i}=n;return i.length>2?t:e.transformProps.has(a)?a.startsWith("scale")?{type:"spring",stiffness:550,damping:0===i[1]?2*Math.sqrt(550):30,restSpeed:10}:s:r};
2
2
  //# sourceMappingURL=default-transitions.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"default-transitions.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs"],"sourcesContent":["import { transformProps } from 'motion-dom';\n\nconst underDampedSpring = {\n type: \"spring\",\n stiffness: 500,\n damping: 25,\n restSpeed: 10,\n};\nconst criticallyDampedSpring = (target) => ({\n type: \"spring\",\n stiffness: 550,\n damping: target === 0 ? 2 * Math.sqrt(550) : 30,\n restSpeed: 10,\n});\nconst keyframesTransition = {\n type: \"keyframes\",\n duration: 0.8,\n};\n/**\n * Default easing curve is a slightly shallower version of\n * the default browser easing curve.\n */\nconst ease = {\n type: \"keyframes\",\n ease: [0.25, 0.1, 0.35, 1],\n duration: 0.3,\n};\nconst getDefaultTransition = (valueKey, { keyframes }) => {\n if (keyframes.length > 2) {\n return keyframesTransition;\n }\n else if (transformProps.has(valueKey)) {\n return valueKey.startsWith(\"scale\")\n ? criticallyDampedSpring(keyframes[1])\n : underDampedSpring;\n }\n return ease;\n};\n\nexport { getDefaultTransition };\n"],"names":["underDampedSpring","type","stiffness","damping","restSpeed","keyframesTransition","duration","ease","getDefaultTransition","valueKey","keyframes","length","transformProps","has","startsWith","Math","sqrt"],"mappings":"0JAEA,MAAMA,EAAoB,CACtBC,KAAM,SACNC,UAAW,IACXC,QAAS,GACTC,UAAW,IAQTC,EAAsB,CACxBJ,KAAM,YACNK,SAAU,IAMRC,EAAO,CACTN,KAAM,YACNM,KAAM,CAAC,IAAM,GAAK,IAAM,GACxBD,SAAU,iCAEeE,CAACC,GAAYC,eAClCA,EAAUC,OAAS,EACZN,EAEFO,EAAcA,eAACC,IAAIJ,GACjBA,EAASK,WAAW,SAxBS,CACxCb,KAAM,SACNC,UAAW,IACXC,QAAoB,IAsBaO,EAAU,GAtBnB,EAAIK,KAAKC,KAAK,KAAO,GAC7CZ,UAAW,IAsBDJ,EAEHO"}
1
+ {"version":3,"file":"default-transitions.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs"],"sourcesContent":["import { transformProps } from 'motion-dom';\n\nconst underDampedSpring = {\n type: \"spring\",\n stiffness: 500,\n damping: 25,\n restSpeed: 10,\n};\nconst criticallyDampedSpring = (target) => ({\n type: \"spring\",\n stiffness: 550,\n damping: target === 0 ? 2 * Math.sqrt(550) : 30,\n restSpeed: 10,\n});\nconst keyframesTransition = {\n type: \"keyframes\",\n duration: 0.8,\n};\n/**\n * Default easing curve is a slightly shallower version of\n * the default browser easing curve.\n */\nconst ease = {\n type: \"keyframes\",\n ease: [0.25, 0.1, 0.35, 1],\n duration: 0.3,\n};\nconst getDefaultTransition = (valueKey, { keyframes }) => {\n if (keyframes.length > 2) {\n return keyframesTransition;\n }\n else if (transformProps.has(valueKey)) {\n return valueKey.startsWith(\"scale\")\n ? criticallyDampedSpring(keyframes[1])\n : underDampedSpring;\n }\n return ease;\n};\n\nexport { getDefaultTransition };\n"],"names":["underDampedSpring","type","stiffness","damping","restSpeed","keyframesTransition","duration","ease","getDefaultTransition","valueKey","_ref","keyframes","length","transformProps","has","startsWith","Math","sqrt"],"mappings":"0JAEA,MAAMA,EAAoB,CACtBC,KAAM,SACNC,UAAW,IACXC,QAAS,GACTC,UAAW,IAQTC,EAAsB,CACxBJ,KAAM,YACNK,SAAU,IAMRC,EAAO,CACTN,KAAM,YACNM,KAAM,CAAC,IAAM,GAAK,IAAM,GACxBD,SAAU,iCAEeE,CAACC,EAAQC,KAAoB,IAAlBC,UAAEA,GAAWD,EACjD,OAAIC,EAAUC,OAAS,EACZP,EAEFQ,EAAcA,eAACC,IAAIL,GACjBA,EAASM,WAAW,SAxBS,CACxCd,KAAM,SACNC,UAAW,IACXC,QAAoB,IAsBaQ,EAAU,GAtBnB,EAAIK,KAAKC,KAAK,KAAO,GAC7Cb,UAAW,IAsBDJ,EAEHO,CAAI"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isTransitionDefined=function({when:e,delay:r,delayChildren:t,staggerChildren:n,staggerDirection:a,repeat:i,repeatType:s,repeatDelay:l,from:d,elapsed:o,...p}){return!!Object.keys(p).length};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isTransitionDefined=function(e){let{when:t,delay:r,delayChildren:n,staggerChildren:a,staggerDirection:i,repeat:s,repeatType:l,repeatDelay:d,from:o,elapsed:p,...y}=e;return!!Object.keys(y).length};
2
2
  //# sourceMappingURL=is-transition-defined.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-transition-defined.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.mjs"],"sourcesContent":["/**\n * Decide whether a transition is defined on a given Transition.\n * This filters out orchestration options and returns true\n * if any options are left.\n */\nfunction isTransitionDefined({ when, delay: _delay, delayChildren, staggerChildren, staggerDirection, repeat, repeatType, repeatDelay, from, elapsed, ...transition }) {\n return !!Object.keys(transition).length;\n}\n\nexport { isTransitionDefined };\n"],"names":["when","delay","_delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed","transition","Object","keys","length"],"mappings":"gGAKA,UAA6BA,KAAEA,EAAMC,MAAOC,EAAMC,cAAEA,EAAaC,gBAAEA,EAAeC,iBAAEA,EAAgBC,OAAEA,EAAMC,WAAEA,EAAUC,YAAEA,EAAWC,KAAEA,EAAIC,QAAEA,KAAYC,IACrJ,QAASC,OAAOC,KAAKF,GAAYG,MACrC"}
1
+ {"version":3,"file":"is-transition-defined.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.mjs"],"sourcesContent":["/**\n * Decide whether a transition is defined on a given Transition.\n * This filters out orchestration options and returns true\n * if any options are left.\n */\nfunction isTransitionDefined({ when, delay: _delay, delayChildren, staggerChildren, staggerDirection, repeat, repeatType, repeatDelay, from, elapsed, ...transition }) {\n return !!Object.keys(transition).length;\n}\n\nexport { isTransitionDefined };\n"],"names":["_ref","when","delay","_delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed","transition","Object","keys","length"],"mappings":"gGAKA,SAA4BA,GAA2I,IAA1IC,KAAEA,EAAMC,MAAOC,EAAMC,cAAEA,EAAaC,gBAAEA,EAAeC,iBAAEA,EAAgBC,OAAEA,EAAMC,WAAEA,EAAUC,YAAEA,EAAWC,KAAEA,EAAIC,QAAEA,KAAYC,GAAYZ,EACjK,QAASa,OAAOC,KAAKF,GAAYG,MACrC"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("../../../../../react/jsx-runtime.js");var e=require("react"),t=require("../../context/MotionConfigContext.mjs.js"),n=require("../../../../../../_virtual/jsx-runtime.js");function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var o=r(e);class i extends o.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=t.offsetParent,n=e instanceof HTMLElement&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}exports.PopChild=function({children:r,isPresent:s,anchorX:f}){const c=e.useId(),u=e.useRef(null),p=e.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:h}=e.useContext(t.MotionConfigContext);return e.useInsertionEffect((()=>{const{width:e,height:t,top:n,left:r,right:o}=p.current;if(s||!u.current||!e||!t)return;const i="left"===f?`left: ${r}`:`right: ${o}`;u.current.dataset.motionPopId=c;const d=document.createElement("style");return h&&(d.nonce=h),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`\n [data-motion-pop-id="${c}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${t}px !important;\n ${i}px !important;\n top: ${n}px !important;\n }\n `),()=>{document.head.removeChild(d)}}),[s]),n.exports.jsx(i,{isPresent:s,childRef:u,sizeRef:p,children:o.cloneElement(r,{ref:u})})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("../../../../../react/jsx-runtime.js");var e=require("react"),t=require("../../context/MotionConfigContext.mjs.js"),n=require("../../../../../../_virtual/jsx-runtime.js");function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var o=r(e);class i extends o.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=t.offsetParent,n=e instanceof HTMLElement&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}exports.PopChild=function(r){let{children:s,isPresent:f,anchorX:c}=r;const u=e.useId(),p=e.useRef(null),h=e.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:d}=e.useContext(t.MotionConfigContext);return e.useInsertionEffect((()=>{const{width:e,height:t,top:n,left:r,right:o}=h.current;if(f||!p.current||!e||!t)return;const i="left"===c?`left: ${r}`:`right: ${o}`;p.current.dataset.motionPopId=u;const s=document.createElement("style");return d&&(s.nonce=d),document.head.appendChild(s),s.sheet&&s.sheet.insertRule(`\n [data-motion-pop-id="${u}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${t}px !important;\n ${i}px !important;\n top: ${n}px !important;\n }\n `),()=>{document.head.removeChild(s)}}),[f]),n.exports.jsx(i,{isPresent:f,childRef:p,sizeRef:h,children:o.cloneElement(s,{ref:p})})};
2
2
  //# sourceMappingURL=PopChild.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PopChild.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs"],"sourcesContent":["\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport * as React from 'react';\nimport { useId, useRef, useContext, useInsertionEffect } from 'react';\nimport { MotionConfigContext } from '../../context/MotionConfigContext.mjs';\n\n/**\n * Measurement functionality has to be within a separate component\n * to leverage snapshot lifecycle.\n */\nclass PopChildMeasure extends React.Component {\n getSnapshotBeforeUpdate(prevProps) {\n const element = this.props.childRef.current;\n if (element && prevProps.isPresent && !this.props.isPresent) {\n const parent = element.offsetParent;\n const parentWidth = parent instanceof HTMLElement ? parent.offsetWidth || 0 : 0;\n const size = this.props.sizeRef.current;\n size.height = element.offsetHeight || 0;\n size.width = element.offsetWidth || 0;\n size.top = element.offsetTop;\n size.left = element.offsetLeft;\n size.right = parentWidth - size.width - size.left;\n }\n return null;\n }\n /**\n * Required with getSnapshotBeforeUpdate to stop React complaining.\n */\n componentDidUpdate() { }\n render() {\n return this.props.children;\n }\n}\nfunction PopChild({ children, isPresent, anchorX }) {\n const id = useId();\n const ref = useRef(null);\n const size = useRef({\n width: 0,\n height: 0,\n top: 0,\n left: 0,\n right: 0,\n });\n const { nonce } = useContext(MotionConfigContext);\n /**\n * We create and inject a style block so we can apply this explicit\n * sizing in a non-destructive manner by just deleting the style block.\n *\n * We can't apply size via render as the measurement happens\n * in getSnapshotBeforeUpdate (post-render), likewise if we apply the\n * styles directly on the DOM node, we might be overwriting\n * styles set via the style prop.\n */\n useInsertionEffect(() => {\n const { width, height, top, left, right } = size.current;\n if (isPresent || !ref.current || !width || !height)\n return;\n const x = anchorX === \"left\" ? `left: ${left}` : `right: ${right}`;\n ref.current.dataset.motionPopId = id;\n const style = document.createElement(\"style\");\n if (nonce)\n style.nonce = nonce;\n document.head.appendChild(style);\n if (style.sheet) {\n style.sheet.insertRule(`\n [data-motion-pop-id=\"${id}\"] {\n position: absolute !important;\n width: ${width}px !important;\n height: ${height}px !important;\n ${x}px !important;\n top: ${top}px !important;\n }\n `);\n }\n return () => {\n document.head.removeChild(style);\n };\n }, [isPresent]);\n return (jsx(PopChildMeasure, { isPresent: isPresent, childRef: ref, sizeRef: size, children: React.cloneElement(children, { ref }) }));\n}\n\nexport { PopChild };\n"],"names":["PopChildMeasure","React","Component","getSnapshotBeforeUpdate","prevProps","element","this","props","childRef","current","isPresent","parent","offsetParent","parentWidth","HTMLElement","offsetWidth","size","sizeRef","height","offsetHeight","width","top","offsetTop","left","offsetLeft","right","componentDidUpdate","render","children","anchorX","id","useId","ref","useRef","nonce","useContext","MotionConfigContext","useInsertionEffect","x","dataset","motionPopId","style","document","createElement","head","appendChild","sheet","insertRule","removeChild","jsx","cloneElement"],"mappings":"iiBAUA,MAAMA,UAAwBC,EAAMC,UAChCC,uBAAAA,CAAwBC,GACpB,MAAMC,EAAUC,KAAKC,MAAMC,SAASC,QACpC,GAAIJ,GAAWD,EAAUM,YAAcJ,KAAKC,MAAMG,UAAW,CACzD,MAAMC,EAASN,EAAQO,aACjBC,EAAcF,aAAkBG,aAAcH,EAAOI,aAAmB,EACxEC,EAAOV,KAAKC,MAAMU,QAAQR,QAChCO,EAAKE,OAASb,EAAQc,cAAgB,EACtCH,EAAKI,MAAQf,EAAQU,aAAe,EACpCC,EAAKK,IAAMhB,EAAQiB,UACnBN,EAAKO,KAAOlB,EAAQmB,WACpBR,EAAKS,MAAQZ,EAAcG,EAAKI,MAAQJ,EAAKO,IACjD,CACA,OAAO,IACX,CAIAG,kBAAAA,GAAuB,CACvBC,MAAAA,GACI,OAAOrB,KAAKC,MAAMqB,QACtB,mBAEJ,UAAkBA,SAAEA,EAAQlB,UAAEA,EAASmB,QAAEA,IACrC,MAAMC,EAAKC,EAAAA,QACLC,EAAMC,SAAO,MACbjB,EAAOiB,EAAAA,OAAO,CAChBb,MAAO,EACPF,OAAQ,EACRG,IAAK,EACLE,KAAM,EACNE,MAAO,KAELS,MAAEA,GAAUC,EAAAA,WAAWC,EAAAA,qBAmC7B,OAzBAC,EAAAA,oBAAmB,KACf,MAAMjB,MAAEA,EAAKF,OAAEA,EAAMG,IAAEA,EAAGE,KAAEA,EAAIE,MAAEA,GAAUT,EAAKP,QACjD,GAAIC,IAAcsB,EAAIvB,UAAYW,IAAUF,EACxC,OACJ,MAAMoB,EAAgB,SAAZT,EAAqB,SAASN,IAAS,UAAUE,IAC3DO,EAAIvB,QAAQ8B,QAAQC,YAAcV,EAClC,MAAMW,EAAQC,SAASC,cAAc,SAerC,OAdIT,IACAO,EAAMP,MAAQA,GAClBQ,SAASE,KAAKC,YAAYJ,GACtBA,EAAMK,OACNL,EAAMK,MAAMC,WAAW,oCACFjB,yEAEZV,wCACCF,gCACRoB,qCACKjB,0CAIJ,KACHqB,SAASE,KAAKI,YAAYP,EAAM,CACnC,GACF,CAAC/B,IACIuC,EAAAA,QAAAA,IAAIjD,EAAiB,CAAEU,UAAWA,EAAWF,SAAUwB,EAAKf,QAASD,EAAMY,SAAU3B,EAAMiD,aAAatB,EAAU,CAAEI,SAChI"}
1
+ {"version":3,"file":"PopChild.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs"],"sourcesContent":["\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport * as React from 'react';\nimport { useId, useRef, useContext, useInsertionEffect } from 'react';\nimport { MotionConfigContext } from '../../context/MotionConfigContext.mjs';\n\n/**\n * Measurement functionality has to be within a separate component\n * to leverage snapshot lifecycle.\n */\nclass PopChildMeasure extends React.Component {\n getSnapshotBeforeUpdate(prevProps) {\n const element = this.props.childRef.current;\n if (element && prevProps.isPresent && !this.props.isPresent) {\n const parent = element.offsetParent;\n const parentWidth = parent instanceof HTMLElement ? parent.offsetWidth || 0 : 0;\n const size = this.props.sizeRef.current;\n size.height = element.offsetHeight || 0;\n size.width = element.offsetWidth || 0;\n size.top = element.offsetTop;\n size.left = element.offsetLeft;\n size.right = parentWidth - size.width - size.left;\n }\n return null;\n }\n /**\n * Required with getSnapshotBeforeUpdate to stop React complaining.\n */\n componentDidUpdate() { }\n render() {\n return this.props.children;\n }\n}\nfunction PopChild({ children, isPresent, anchorX }) {\n const id = useId();\n const ref = useRef(null);\n const size = useRef({\n width: 0,\n height: 0,\n top: 0,\n left: 0,\n right: 0,\n });\n const { nonce } = useContext(MotionConfigContext);\n /**\n * We create and inject a style block so we can apply this explicit\n * sizing in a non-destructive manner by just deleting the style block.\n *\n * We can't apply size via render as the measurement happens\n * in getSnapshotBeforeUpdate (post-render), likewise if we apply the\n * styles directly on the DOM node, we might be overwriting\n * styles set via the style prop.\n */\n useInsertionEffect(() => {\n const { width, height, top, left, right } = size.current;\n if (isPresent || !ref.current || !width || !height)\n return;\n const x = anchorX === \"left\" ? `left: ${left}` : `right: ${right}`;\n ref.current.dataset.motionPopId = id;\n const style = document.createElement(\"style\");\n if (nonce)\n style.nonce = nonce;\n document.head.appendChild(style);\n if (style.sheet) {\n style.sheet.insertRule(`\n [data-motion-pop-id=\"${id}\"] {\n position: absolute !important;\n width: ${width}px !important;\n height: ${height}px !important;\n ${x}px !important;\n top: ${top}px !important;\n }\n `);\n }\n return () => {\n document.head.removeChild(style);\n };\n }, [isPresent]);\n return (jsx(PopChildMeasure, { isPresent: isPresent, childRef: ref, sizeRef: size, children: React.cloneElement(children, { ref }) }));\n}\n\nexport { PopChild };\n"],"names":["PopChildMeasure","React","Component","getSnapshotBeforeUpdate","prevProps","element","this","props","childRef","current","isPresent","parent","offsetParent","parentWidth","HTMLElement","offsetWidth","size","sizeRef","height","offsetHeight","width","top","offsetTop","left","offsetLeft","right","componentDidUpdate","render","children","_ref","anchorX","id","useId","ref","useRef","nonce","useContext","MotionConfigContext","useInsertionEffect","x","dataset","motionPopId","style","document","createElement","head","appendChild","sheet","insertRule","removeChild","jsx","cloneElement"],"mappings":"iiBAUA,MAAMA,UAAwBC,EAAMC,UAChCC,uBAAAA,CAAwBC,GACpB,MAAMC,EAAUC,KAAKC,MAAMC,SAASC,QACpC,GAAIJ,GAAWD,EAAUM,YAAcJ,KAAKC,MAAMG,UAAW,CACzD,MAAMC,EAASN,EAAQO,aACjBC,EAAcF,aAAkBG,aAAcH,EAAOI,aAAmB,EACxEC,EAAOV,KAAKC,MAAMU,QAAQR,QAChCO,EAAKE,OAASb,EAAQc,cAAgB,EACtCH,EAAKI,MAAQf,EAAQU,aAAe,EACpCC,EAAKK,IAAMhB,EAAQiB,UACnBN,EAAKO,KAAOlB,EAAQmB,WACpBR,EAAKS,MAAQZ,EAAcG,EAAKI,MAAQJ,EAAKO,IACjD,CACA,OAAO,IACX,CAIAG,kBAAAA,GAAuB,CACvBC,MAAAA,GACI,OAAOrB,KAAKC,MAAMqB,QACtB,mBAEJ,SAAiBC,GAAmC,IAAlCD,SAAEA,EAAQlB,UAAEA,EAASoB,QAAEA,GAASD,EAC9C,MAAME,EAAKC,EAAAA,QACLC,EAAMC,SAAO,MACblB,EAAOkB,EAAAA,OAAO,CAChBd,MAAO,EACPF,OAAQ,EACRG,IAAK,EACLE,KAAM,EACNE,MAAO,KAELU,MAAEA,GAAUC,EAAAA,WAAWC,EAAAA,qBAmC7B,OAzBAC,EAAAA,oBAAmB,KACf,MAAMlB,MAAEA,EAAKF,OAAEA,EAAMG,IAAEA,EAAGE,KAAEA,EAAIE,MAAEA,GAAUT,EAAKP,QACjD,GAAIC,IAAcuB,EAAIxB,UAAYW,IAAUF,EACxC,OACJ,MAAMqB,EAAgB,SAAZT,EAAqB,SAASP,IAAS,UAAUE,IAC3DQ,EAAIxB,QAAQ+B,QAAQC,YAAcV,EAClC,MAAMW,EAAQC,SAASC,cAAc,SAerC,OAdIT,IACAO,EAAMP,MAAQA,GAClBQ,SAASE,KAAKC,YAAYJ,GACtBA,EAAMK,OACNL,EAAMK,MAAMC,WAAW,oCACFjB,yEAEZX,wCACCF,gCACRqB,qCACKlB,0CAIJ,KACHsB,SAASE,KAAKI,YAAYP,EAAM,CACnC,GACF,CAAChC,IACIwC,EAAAA,QAAAA,IAAIlD,EAAiB,CAAEU,UAAWA,EAAWF,SAAUyB,EAAKhB,QAASD,EAAMY,SAAU3B,EAAMkD,aAAavB,EAAU,CAAEK,SAChI"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("../../../../../react/jsx-runtime.js");var e=require("react"),t=require("../../context/PresenceContext.mjs.js"),r=require("../../utils/use-constant.mjs.js"),s=require("./PopChild.mjs.js"),n=require("../../../../../../_virtual/jsx-runtime.js");function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var o=i(e);function u(){return new Map}exports.PresenceChild=({children:i,initial:c,isPresent:a,onExitComplete:l,custom:f,presenceAffectsLayout:j,mode:d,anchorX:p})=>{const m=r.useConstant(u),x=e.useId();let P=!0,h=e.useMemo((()=>(P=!1,{id:x,initial:c,isPresent:a,custom:f,onExitComplete:e=>{m.set(e,!0);for(const e of m.values())if(!e)return;l&&l()},register:e=>(m.set(e,!1),()=>m.delete(e))})),[a,m,l]);return j&&P&&(h={...h}),e.useMemo((()=>{m.forEach(((e,t)=>m.set(t,!1)))}),[a]),o.useEffect((()=>{!a&&!m.size&&l&&l()}),[a]),"popLayout"===d&&(i=n.exports.jsx(s.PopChild,{isPresent:a,anchorX:p,children:i})),n.exports.jsx(t.PresenceContext.Provider,{value:h,children:i})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("../../../../../react/jsx-runtime.js");var e=require("react"),t=require("../../context/PresenceContext.mjs.js"),r=require("../../utils/use-constant.mjs.js"),s=require("./PopChild.mjs.js"),n=require("../../../../../../_virtual/jsx-runtime.js");function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var o=i(e);function u(){return new Map}exports.PresenceChild=i=>{let{children:c,initial:a,isPresent:l,onExitComplete:f,custom:j,presenceAffectsLayout:d,mode:p,anchorX:m}=i;const x=r.useConstant(u),P=e.useId();let h=!0,v=e.useMemo((()=>(h=!1,{id:P,initial:a,isPresent:l,custom:j,onExitComplete:e=>{x.set(e,!0);for(const e of x.values())if(!e)return;f&&f()},register:e=>(x.set(e,!1),()=>x.delete(e))})),[l,x,f]);return d&&h&&(v={...v}),e.useMemo((()=>{x.forEach(((e,t)=>x.set(t,!1)))}),[l]),o.useEffect((()=>{!l&&!x.size&&f&&f()}),[l]),"popLayout"===p&&(c=n.exports.jsx(s.PopChild,{isPresent:l,anchorX:m,children:c})),n.exports.jsx(t.PresenceContext.Provider,{value:v,children:c})};
2
2
  //# sourceMappingURL=PresenceChild.mjs.js.map