dune-react 0.0.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 (269) hide show
  1. package/README.md +49 -0
  2. package/dist/_virtual/_commonjsHelpers.js +8 -0
  3. package/dist/_virtual/index.js +4 -0
  4. package/dist/_virtual/sha1.js +4 -0
  5. package/dist/_virtual/util.js +4 -0
  6. package/dist/components/index.d.ts +4 -0
  7. package/dist/components/ui-custom/background.d.ts +8 -0
  8. package/dist/components/ui-custom/background.js +51 -0
  9. package/dist/components/ui-custom/cover.d.ts +17 -0
  10. package/dist/components/ui-custom/cover.js +231 -0
  11. package/dist/components/ui-custom/sparkles.d.ts +13 -0
  12. package/dist/components/ui-custom/sparkles.js +418 -0
  13. package/dist/components/ui-custom/spotlight-new.d.ts +13 -0
  14. package/dist/index.d.ts +2 -0
  15. package/dist/index.js +40 -0
  16. package/dist/node_modules/.pnpm/@fluid-tailwind_tailwind-merge@0.0.3_tailwind-merge@3.3.1/node_modules/@fluid-tailwind/tailwind-merge/dist/index.js +50 -0
  17. package/dist/node_modules/.pnpm/@tsparticles_basic@3.9.1/node_modules/@tsparticles/basic/browser/index.js +25 -0
  18. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Canvas.js +510 -0
  19. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Container.js +463 -0
  20. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Engine.js +293 -0
  21. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Particle.js +355 -0
  22. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Particles.js +326 -0
  23. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Retina.js +37 -0
  24. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Constants.js +105 -0
  25. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/EventListeners.js +309 -0
  26. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/ExternalInteractorBase.js +10 -0
  27. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/InteractionManager.js +64 -0
  28. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/ParticlesInteractorBase.js +10 -0
  29. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Point.js +9 -0
  30. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/QuadTree.js +60 -0
  31. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Ranges.js +57 -0
  32. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Core/Utils/Vectors.js +120 -0
  33. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/AnimationStatus.js +8 -0
  34. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Directions/MoveDirection.js +17 -0
  35. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Directions/OutModeDirection.js +10 -0
  36. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Directions/RotateDirection.js +9 -0
  37. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/InteractivityDetect.js +9 -0
  38. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/AnimationMode.js +10 -0
  39. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/CollisionMode.js +9 -0
  40. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/LimitMode.js +8 -0
  41. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/OutMode.js +11 -0
  42. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/PixelMode.js +8 -0
  43. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/ResponsiveMode.js +8 -0
  44. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Modes/ThemeMode.js +9 -0
  45. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/AlterType.js +8 -0
  46. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/DestroyType.js +9 -0
  47. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/DivType.js +8 -0
  48. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/EasingType.js +33 -0
  49. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/EventType.js +18 -0
  50. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/GradientType.js +9 -0
  51. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/InteractorType.js +8 -0
  52. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/ParticleOutType.js +9 -0
  53. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Enums/Types/StartValueType.js +9 -0
  54. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/AnimatableColor.js +38 -0
  55. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/AnimationOptions.js +60 -0
  56. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Background/Background.js +39 -0
  57. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/BackgroundMask/BackgroundMask.js +27 -0
  58. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/BackgroundMask/BackgroundMaskCover.js +24 -0
  59. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/ColorAnimation.js +22 -0
  60. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/FullScreen/FullScreen.js +21 -0
  61. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/HslAnimation.js +20 -0
  62. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/ClickEvent.js +21 -0
  63. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/DivEvent.js +30 -0
  64. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/Events.js +33 -0
  65. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/HoverEvent.js +24 -0
  66. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/Parallax.js +25 -0
  67. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Events/ResizeEvent.js +21 -0
  68. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Interactivity.js +25 -0
  69. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Interactivity/Modes/Modes.js +28 -0
  70. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/ManualParticle.js +24 -0
  71. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Options.js +163 -0
  72. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/OptionsColor.js +29 -0
  73. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Bounce/ParticlesBounce.js +18 -0
  74. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +10 -0
  75. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Collisions/Collisions.js +36 -0
  76. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Collisions/CollisionsAbsorb.js +17 -0
  77. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Collisions/CollisionsOverlap.js +21 -0
  78. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Effect/Effect.js +36 -0
  79. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/Move.js +95 -0
  80. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveAngle.js +22 -0
  81. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveAttract.js +36 -0
  82. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveCenter.js +30 -0
  83. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveGravity.js +30 -0
  84. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveTrail.js +26 -0
  85. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/MoveTrailFill.js +18 -0
  86. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/OutModes.js +22 -0
  87. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/Path/MovePath.js +30 -0
  88. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Move/Spin.js +26 -0
  89. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Number/ParticlesDensity.js +27 -0
  90. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Number/ParticlesNumber.js +23 -0
  91. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Number/ParticlesNumberLimit.js +22 -0
  92. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Opacity/Opacity.js +23 -0
  93. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Opacity/OpacityAnimation.js +22 -0
  94. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/ParticlesOptions.js +97 -0
  95. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Shadow.js +38 -0
  96. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Shape/Shape.js +36 -0
  97. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Size/Size.js +23 -0
  98. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Size/SizeAnimation.js +22 -0
  99. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/Stroke.js +25 -0
  100. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Particles/ZIndex/ZIndex.js +28 -0
  101. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Responsive.js +31 -0
  102. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Theme/Theme.js +24 -0
  103. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/Theme/ThemeDefault.js +26 -0
  104. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Options/Classes/ValueWithRandom.js +46 -0
  105. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Types/RangeType.js +8 -0
  106. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/CanvasUtils.js +168 -0
  107. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/ColorUtils.js +316 -0
  108. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/EventDispatcher.js +47 -0
  109. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/NumberUtils.js +135 -0
  110. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/OptionsUtils.js +15 -0
  111. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/TypeUtils.js +26 -0
  112. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/Utils/Utils.js +475 -0
  113. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/index.js +82 -0
  114. package/dist/node_modules/.pnpm/@tsparticles_engine@3.9.1/node_modules/@tsparticles/engine/browser/init.js +9 -0
  115. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-attract@3.9.1/node_modules/@tsparticles/interaction-external-attract/browser/Attractor.js +81 -0
  116. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-attract@3.9.1/node_modules/@tsparticles/interaction-external-attract/browser/Options/Classes/Attract.js +38 -0
  117. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-attract@3.9.1/node_modules/@tsparticles/interaction-external-attract/browser/Utils.js +50 -0
  118. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-attract@3.9.1/node_modules/@tsparticles/interaction-external-attract/browser/index.js +10 -0
  119. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bounce@3.9.1/node_modules/@tsparticles/interaction-external-bounce/browser/Bouncer.js +45 -0
  120. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bounce@3.9.1/node_modules/@tsparticles/interaction-external-bounce/browser/Options/Classes/Bounce.js +17 -0
  121. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bounce@3.9.1/node_modules/@tsparticles/interaction-external-bounce/browser/Utils.js +47 -0
  122. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bounce@3.9.1/node_modules/@tsparticles/interaction-external-bounce/browser/index.js +10 -0
  123. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Bubbler.js +274 -0
  124. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Enums.js +9 -0
  125. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Options/Classes/Bubble.js +20 -0
  126. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Options/Classes/BubbleBase.js +39 -0
  127. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Options/Classes/BubbleDiv.js +20 -0
  128. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/Utils.js +13 -0
  129. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-bubble@3.9.1/node_modules/@tsparticles/interaction-external-bubble/browser/index.js +10 -0
  130. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/Connector.js +59 -0
  131. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/Options/Classes/Connect.js +24 -0
  132. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/Options/Classes/ConnectLinks.js +17 -0
  133. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/Utils.js +44 -0
  134. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-connect@3.9.1/node_modules/@tsparticles/interaction-external-connect/browser/index.js +10 -0
  135. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/Grabber.js +76 -0
  136. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/Options/Classes/Grab.js +20 -0
  137. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/Options/Classes/GrabLinks.js +29 -0
  138. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/Utils.js +19 -0
  139. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-grab@3.9.1/node_modules/@tsparticles/interaction-external-grab/browser/index.js +10 -0
  140. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-pause@3.9.1/node_modules/@tsparticles/interaction-external-pause/browser/Pauser.js +32 -0
  141. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-pause@3.9.1/node_modules/@tsparticles/interaction-external-pause/browser/index.js +10 -0
  142. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-push@3.9.1/node_modules/@tsparticles/interaction-external-push/browser/Options/Classes/Push.js +34 -0
  143. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-push@3.9.1/node_modules/@tsparticles/interaction-external-push/browser/Pusher.js +47 -0
  144. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-push@3.9.1/node_modules/@tsparticles/interaction-external-push/browser/index.js +10 -0
  145. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-remove@3.9.1/node_modules/@tsparticles/interaction-external-remove/browser/Options/Classes/Remove.js +19 -0
  146. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-remove@3.9.1/node_modules/@tsparticles/interaction-external-remove/browser/Remover.js +39 -0
  147. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-remove@3.9.1/node_modules/@tsparticles/interaction-external-remove/browser/index.js +10 -0
  148. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-repulse@3.9.1/node_modules/@tsparticles/interaction-external-repulse/browser/Options/Classes/Repulse.js +20 -0
  149. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-repulse@3.9.1/node_modules/@tsparticles/interaction-external-repulse/browser/Options/Classes/RepulseBase.js +38 -0
  150. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-repulse@3.9.1/node_modules/@tsparticles/interaction-external-repulse/browser/Options/Classes/RepulseDiv.js +20 -0
  151. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-repulse@3.9.1/node_modules/@tsparticles/interaction-external-repulse/browser/Repulser.js +160 -0
  152. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-repulse@3.9.1/node_modules/@tsparticles/interaction-external-repulse/browser/index.js +10 -0
  153. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-slow@3.9.1/node_modules/@tsparticles/interaction-external-slow/browser/Options/Classes/Slow.js +21 -0
  154. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-slow@3.9.1/node_modules/@tsparticles/interaction-external-slow/browser/Slower.js +53 -0
  155. package/dist/node_modules/.pnpm/@tsparticles_interaction-external-slow@3.9.1/node_modules/@tsparticles/interaction-external-slow/browser/index.js +10 -0
  156. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-attract@3.9.1/node_modules/@tsparticles/interaction-particles-attract/browser/Attractor.js +37 -0
  157. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-attract@3.9.1/node_modules/@tsparticles/interaction-particles-attract/browser/index.js +10 -0
  158. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/Absorb.js +28 -0
  159. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/Bounce.js +18 -0
  160. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/Collider.js +41 -0
  161. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/Destroy.js +17 -0
  162. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/ResolveCollision.js +23 -0
  163. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-collisions@3.9.1/node_modules/@tsparticles/interaction-particles-collisions/browser/index.js +10 -0
  164. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/CircleWarp.js +33 -0
  165. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/LinkInstance.js +152 -0
  166. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/Linker.js +109 -0
  167. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/LinksPlugin.js +18 -0
  168. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/Options/Classes/Links.js +58 -0
  169. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/Options/Classes/LinksShadow.js +25 -0
  170. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/Options/Classes/LinksTriangle.js +28 -0
  171. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/Utils.js +106 -0
  172. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/index.js +10 -0
  173. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/interaction.js +9 -0
  174. package/dist/node_modules/.pnpm/@tsparticles_interaction-particles-links@3.9.1/node_modules/@tsparticles/interaction-particles-links/browser/plugin.js +8 -0
  175. package/dist/node_modules/.pnpm/@tsparticles_move-base@3.9.1/node_modules/@tsparticles/move-base/browser/BaseMover.js +37 -0
  176. package/dist/node_modules/.pnpm/@tsparticles_move-base@3.9.1/node_modules/@tsparticles/move-base/browser/Utils.js +128 -0
  177. package/dist/node_modules/.pnpm/@tsparticles_move-base@3.9.1/node_modules/@tsparticles/move-base/browser/index.js +10 -0
  178. package/dist/node_modules/.pnpm/@tsparticles_move-parallax@3.9.1/node_modules/@tsparticles/move-parallax/browser/ParallaxMover.js +31 -0
  179. package/dist/node_modules/.pnpm/@tsparticles_move-parallax@3.9.1/node_modules/@tsparticles/move-parallax/browser/index.js +10 -0
  180. package/dist/node_modules/.pnpm/@tsparticles_plugin-easing-quad@3.9.1/node_modules/@tsparticles/plugin-easing-quad/browser/index.js +11 -0
  181. package/dist/node_modules/.pnpm/@tsparticles_plugin-hex-color@3.9.1/node_modules/@tsparticles/plugin-hex-color/browser/HexColorManager.js +43 -0
  182. package/dist/node_modules/.pnpm/@tsparticles_plugin-hex-color@3.9.1/node_modules/@tsparticles/plugin-hex-color/browser/index.js +8 -0
  183. package/dist/node_modules/.pnpm/@tsparticles_plugin-hsl-color@3.9.1/node_modules/@tsparticles/plugin-hsl-color/browser/HslColorManager.js +46 -0
  184. package/dist/node_modules/.pnpm/@tsparticles_plugin-hsl-color@3.9.1/node_modules/@tsparticles/plugin-hsl-color/browser/index.js +8 -0
  185. package/dist/node_modules/.pnpm/@tsparticles_plugin-rgb-color@3.9.1/node_modules/@tsparticles/plugin-rgb-color/browser/RgbColorManager.js +45 -0
  186. package/dist/node_modules/.pnpm/@tsparticles_plugin-rgb-color@3.9.1/node_modules/@tsparticles/plugin-rgb-color/browser/index.js +8 -0
  187. package/dist/node_modules/.pnpm/@tsparticles_react@3.0.0_@tsparticles_engine@3.9.1_react-dom@18.3.1_react@18.3.1/node_modules/@tsparticles/react/dist/Particles.js +18 -0
  188. package/dist/node_modules/.pnpm/@tsparticles_react@3.0.0_@tsparticles_engine@3.9.1_react-dom@18.3.1_react@18.3.1/node_modules/@tsparticles/react/dist/index.js +9 -0
  189. package/dist/node_modules/.pnpm/@tsparticles_shape-circle@3.9.1/node_modules/@tsparticles/shape-circle/browser/CircleDrawer.js +28 -0
  190. package/dist/node_modules/.pnpm/@tsparticles_shape-circle@3.9.1/node_modules/@tsparticles/shape-circle/browser/Utils.js +12 -0
  191. package/dist/node_modules/.pnpm/@tsparticles_shape-circle@3.9.1/node_modules/@tsparticles/shape-circle/browser/index.js +8 -0
  192. package/dist/node_modules/.pnpm/@tsparticles_shape-emoji@3.9.1/node_modules/@tsparticles/shape-emoji/browser/EmojiDrawer.js +103 -0
  193. package/dist/node_modules/.pnpm/@tsparticles_shape-emoji@3.9.1/node_modules/@tsparticles/shape-emoji/browser/Utils.js +13 -0
  194. package/dist/node_modules/.pnpm/@tsparticles_shape-emoji@3.9.1/node_modules/@tsparticles/shape-emoji/browser/index.js +8 -0
  195. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/ByteStream.js +51 -0
  196. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/Constants.js +6 -0
  197. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/Enums/DisposalMethod.js +14 -0
  198. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/Types/GIFDataHeaders.js +13 -0
  199. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/GifUtils/Utils.js +419 -0
  200. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/ImageDrawer.js +130 -0
  201. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/ImagePreloader.js +36 -0
  202. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/Options/Classes/Preload.js +33 -0
  203. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/Utils.js +94 -0
  204. package/dist/node_modules/.pnpm/@tsparticles_shape-image@3.9.1/node_modules/@tsparticles/shape-image/browser/index.js +54 -0
  205. package/dist/node_modules/.pnpm/@tsparticles_shape-line@3.9.1/node_modules/@tsparticles/shape-line/browser/LineDrawer.js +16 -0
  206. package/dist/node_modules/.pnpm/@tsparticles_shape-line@3.9.1/node_modules/@tsparticles/shape-line/browser/Utils.js +9 -0
  207. package/dist/node_modules/.pnpm/@tsparticles_shape-line@3.9.1/node_modules/@tsparticles/shape-line/browser/index.js +8 -0
  208. package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/PolygonDrawer.js +27 -0
  209. package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/PolygonDrawerBase.js +16 -0
  210. package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/TriangleDrawer.js +30 -0
  211. package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/Utils.js +19 -0
  212. package/dist/node_modules/.pnpm/@tsparticles_shape-polygon@3.9.1/node_modules/@tsparticles/shape-polygon/browser/index.js +20 -0
  213. package/dist/node_modules/.pnpm/@tsparticles_shape-square@3.9.1/node_modules/@tsparticles/shape-square/browser/SquareDrawer.js +16 -0
  214. package/dist/node_modules/.pnpm/@tsparticles_shape-square@3.9.1/node_modules/@tsparticles/shape-square/browser/Utils.js +8 -0
  215. package/dist/node_modules/.pnpm/@tsparticles_shape-square@3.9.1/node_modules/@tsparticles/shape-square/browser/index.js +8 -0
  216. package/dist/node_modules/.pnpm/@tsparticles_shape-star@3.9.1/node_modules/@tsparticles/shape-star/browser/StarDrawer.js +22 -0
  217. package/dist/node_modules/.pnpm/@tsparticles_shape-star@3.9.1/node_modules/@tsparticles/shape-star/browser/Utils.js +14 -0
  218. package/dist/node_modules/.pnpm/@tsparticles_shape-star@3.9.1/node_modules/@tsparticles/shape-star/browser/index.js +8 -0
  219. package/dist/node_modules/.pnpm/@tsparticles_slim@3.9.1/node_modules/@tsparticles/slim/browser/index.js +56 -0
  220. package/dist/node_modules/.pnpm/@tsparticles_updater-color@3.9.1/node_modules/@tsparticles/updater-color/browser/ColorUpdater.js +23 -0
  221. package/dist/node_modules/.pnpm/@tsparticles_updater-color@3.9.1/node_modules/@tsparticles/updater-color/browser/index.js +10 -0
  222. package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/LifeUpdater.js +52 -0
  223. package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/Options/Classes/Life.js +23 -0
  224. package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/Options/Classes/LifeDelay.js +20 -0
  225. package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/Options/Classes/LifeDuration.js +20 -0
  226. package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/Utils.js +58 -0
  227. package/dist/node_modules/.pnpm/@tsparticles_updater-life@3.9.1/node_modules/@tsparticles/updater-life/browser/index.js +10 -0
  228. package/dist/node_modules/.pnpm/@tsparticles_updater-opacity@3.9.1/node_modules/@tsparticles/updater-opacity/browser/OpacityUpdater.js +38 -0
  229. package/dist/node_modules/.pnpm/@tsparticles_updater-opacity@3.9.1/node_modules/@tsparticles/updater-opacity/browser/index.js +10 -0
  230. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/BounceOutMode.js +36 -0
  231. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/DestroyOutMode.js +37 -0
  232. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/NoneOutMode.js +36 -0
  233. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/OutOfCanvasUpdater.js +45 -0
  234. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/OutOutMode.js +110 -0
  235. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/Utils.js +66 -0
  236. package/dist/node_modules/.pnpm/@tsparticles_updater-out-modes@3.9.1/node_modules/@tsparticles/updater-out-modes/browser/index.js +10 -0
  237. package/dist/node_modules/.pnpm/@tsparticles_updater-rotate@3.9.1/node_modules/@tsparticles/updater-rotate/browser/Options/Classes/Rotate.js +29 -0
  238. package/dist/node_modules/.pnpm/@tsparticles_updater-rotate@3.9.1/node_modules/@tsparticles/updater-rotate/browser/Options/Classes/RotateAnimation.js +30 -0
  239. package/dist/node_modules/.pnpm/@tsparticles_updater-rotate@3.9.1/node_modules/@tsparticles/updater-rotate/browser/RotateUpdater.js +77 -0
  240. package/dist/node_modules/.pnpm/@tsparticles_updater-rotate@3.9.1/node_modules/@tsparticles/updater-rotate/browser/index.js +10 -0
  241. package/dist/node_modules/.pnpm/@tsparticles_updater-size@3.9.1/node_modules/@tsparticles/updater-size/browser/SizeUpdater.js +30 -0
  242. package/dist/node_modules/.pnpm/@tsparticles_updater-size@3.9.1/node_modules/@tsparticles/updater-size/browser/index.js +10 -0
  243. package/dist/node_modules/.pnpm/@tsparticles_updater-stroke-color@3.9.1/node_modules/@tsparticles/updater-stroke-color/browser/StrokeColorUpdater.js +35 -0
  244. package/dist/node_modules/.pnpm/@tsparticles_updater-stroke-color@3.9.1/node_modules/@tsparticles/updater-stroke-color/browser/index.js +10 -0
  245. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +17 -0
  246. package/dist/node_modules/.pnpm/file-type@12.4.1/node_modules/file-type/index.js +826 -0
  247. package/dist/node_modules/.pnpm/file-type@12.4.1/node_modules/file-type/supported.js +242 -0
  248. package/dist/node_modules/.pnpm/file-type@12.4.1/node_modules/file-type/util.js +64 -0
  249. package/dist/node_modules/.pnpm/js-sha1@0.6.0/node_modules/js-sha1/src/sha1.js +311 -0
  250. package/dist/node_modules/.pnpm/nanoid@5.1.5/node_modules/nanoid/index.browser.js +22 -0
  251. package/dist/node_modules/.pnpm/tailwind-merge@3.3.1/node_modules/tailwind-merge/dist/bundle-mjs.js +3007 -0
  252. package/dist/utils/css-utils.d.ts +10 -0
  253. package/dist/utils/css-utils.js +17 -0
  254. package/dist/utils/index.d.ts +9 -0
  255. package/dist/utils/storage-qetag.d.ts +22 -0
  256. package/dist/utils/storage-qetag.js +3 -0
  257. package/dist/utils/utils-api.d.ts +17 -0
  258. package/dist/utils/utils-api.js +31 -0
  259. package/dist/utils/utils-canvas.d.ts +30 -0
  260. package/dist/utils/utils-canvas.js +54 -0
  261. package/dist/utils/utils-common.d.ts +6 -0
  262. package/dist/utils/utils-common.js +15 -0
  263. package/dist/utils/utils-image.d.ts +33 -0
  264. package/dist/utils/utils-image.js +57 -0
  265. package/dist/utils/utils-random.d.ts +1 -0
  266. package/dist/utils/utils-random.js +6 -0
  267. package/dist/utils/utils-time.d.ts +49 -0
  268. package/dist/utils/utils-time.js +112 -0
  269. package/package.json +81 -0
@@ -0,0 +1,309 @@
1
+ import { touchDelay, millisecondsToSeconds, mouseMoveEvent, touchStartEvent, touchMoveEvent, touchEndEvent, mouseUpEvent, mouseDownEvent, touchCancelEvent, mouseLeaveEvent, visibilityChangeEvent, resizeEvent, double, lengthOffset, minCoordinate, mouseOutEvent } from "./Constants.js";
2
+ import { executeOnSingleOrMultiple, safeMatchMedia } from "../../Utils/Utils.js";
3
+ import { InteractivityDetect } from "../../Enums/InteractivityDetect.js";
4
+ import { isBoolean } from "../../Utils/TypeUtils.js";
5
+ function manageListener(element, event, handler, add, options) {
6
+ if (add) {
7
+ let addOptions = { passive: true };
8
+ if (isBoolean(options)) {
9
+ addOptions.capture = options;
10
+ } else if (options !== void 0) {
11
+ addOptions = options;
12
+ }
13
+ element.addEventListener(event, handler, addOptions);
14
+ } else {
15
+ const removeOptions = options;
16
+ element.removeEventListener(event, handler, removeOptions);
17
+ }
18
+ }
19
+ class EventListeners {
20
+ constructor(container) {
21
+ this.container = container;
22
+ this._doMouseTouchClick = (e) => {
23
+ const container2 = this.container, options = container2.actualOptions;
24
+ if (this._canPush) {
25
+ const mouseInteractivity = container2.interactivity.mouse, mousePos = mouseInteractivity.position;
26
+ if (!mousePos) {
27
+ return;
28
+ }
29
+ mouseInteractivity.clickPosition = { ...mousePos };
30
+ mouseInteractivity.clickTime = (/* @__PURE__ */ new Date()).getTime();
31
+ const onClick = options.interactivity.events.onClick;
32
+ executeOnSingleOrMultiple(onClick.mode, (mode) => this.container.handleClickMode(mode));
33
+ }
34
+ if (e.type === "touchend") {
35
+ setTimeout(() => this._mouseTouchFinish(), touchDelay);
36
+ }
37
+ };
38
+ this._handleThemeChange = (e) => {
39
+ const mediaEvent = e, container2 = this.container, options = container2.options, defaultThemes = options.defaultThemes, themeName = mediaEvent.matches ? defaultThemes.dark : defaultThemes.light, theme = options.themes.find((theme2) => theme2.name === themeName);
40
+ if (theme == null ? void 0 : theme.default.auto) {
41
+ void container2.loadTheme(themeName);
42
+ }
43
+ };
44
+ this._handleVisibilityChange = () => {
45
+ const container2 = this.container, options = container2.actualOptions;
46
+ this._mouseTouchFinish();
47
+ if (!options.pauseOnBlur) {
48
+ return;
49
+ }
50
+ if (document == null ? void 0 : document.hidden) {
51
+ container2.pageHidden = true;
52
+ container2.pause();
53
+ } else {
54
+ container2.pageHidden = false;
55
+ if (container2.animationStatus) {
56
+ void container2.play(true);
57
+ } else {
58
+ void container2.draw(true);
59
+ }
60
+ }
61
+ };
62
+ this._handleWindowResize = () => {
63
+ if (this._resizeTimeout) {
64
+ clearTimeout(this._resizeTimeout);
65
+ delete this._resizeTimeout;
66
+ }
67
+ const handleResize = async () => {
68
+ const canvas = this.container.canvas;
69
+ await (canvas == null ? void 0 : canvas.windowResize());
70
+ };
71
+ this._resizeTimeout = setTimeout(() => void handleResize(), this.container.actualOptions.interactivity.events.resize.delay * millisecondsToSeconds);
72
+ };
73
+ this._manageInteractivityListeners = (mouseLeaveTmpEvent, add) => {
74
+ const handlers = this._handlers, container2 = this.container, options = container2.actualOptions, interactivityEl = container2.interactivity.element;
75
+ if (!interactivityEl) {
76
+ return;
77
+ }
78
+ const html = interactivityEl, canvas = container2.canvas;
79
+ canvas.setPointerEvents(html === canvas.element ? "initial" : "none");
80
+ if (!(options.interactivity.events.onHover.enable || options.interactivity.events.onClick.enable)) {
81
+ return;
82
+ }
83
+ manageListener(interactivityEl, mouseMoveEvent, handlers.mouseMove, add);
84
+ manageListener(interactivityEl, touchStartEvent, handlers.touchStart, add);
85
+ manageListener(interactivityEl, touchMoveEvent, handlers.touchMove, add);
86
+ if (!options.interactivity.events.onClick.enable) {
87
+ manageListener(interactivityEl, touchEndEvent, handlers.touchEnd, add);
88
+ } else {
89
+ manageListener(interactivityEl, touchEndEvent, handlers.touchEndClick, add);
90
+ manageListener(interactivityEl, mouseUpEvent, handlers.mouseUp, add);
91
+ manageListener(interactivityEl, mouseDownEvent, handlers.mouseDown, add);
92
+ }
93
+ manageListener(interactivityEl, mouseLeaveTmpEvent, handlers.mouseLeave, add);
94
+ manageListener(interactivityEl, touchCancelEvent, handlers.touchCancel, add);
95
+ };
96
+ this._manageListeners = (add) => {
97
+ const handlers = this._handlers, container2 = this.container, options = container2.actualOptions, detectType = options.interactivity.detectsOn, canvasEl = container2.canvas.element;
98
+ let mouseLeaveTmpEvent = mouseLeaveEvent;
99
+ if (detectType === InteractivityDetect.window) {
100
+ container2.interactivity.element = window;
101
+ mouseLeaveTmpEvent = mouseOutEvent;
102
+ } else if (detectType === InteractivityDetect.parent && canvasEl) {
103
+ container2.interactivity.element = canvasEl.parentElement ?? canvasEl.parentNode;
104
+ } else {
105
+ container2.interactivity.element = canvasEl;
106
+ }
107
+ this._manageMediaMatch(add);
108
+ this._manageResize(add);
109
+ this._manageInteractivityListeners(mouseLeaveTmpEvent, add);
110
+ if (document) {
111
+ manageListener(document, visibilityChangeEvent, handlers.visibilityChange, add, false);
112
+ }
113
+ };
114
+ this._manageMediaMatch = (add) => {
115
+ const handlers = this._handlers, mediaMatch = safeMatchMedia("(prefers-color-scheme: dark)");
116
+ if (!mediaMatch) {
117
+ return;
118
+ }
119
+ if (mediaMatch.addEventListener !== void 0) {
120
+ manageListener(mediaMatch, "change", handlers.themeChange, add);
121
+ return;
122
+ }
123
+ if (mediaMatch.addListener === void 0) {
124
+ return;
125
+ }
126
+ if (add) {
127
+ mediaMatch.addListener(handlers.oldThemeChange);
128
+ } else {
129
+ mediaMatch.removeListener(handlers.oldThemeChange);
130
+ }
131
+ };
132
+ this._manageResize = (add) => {
133
+ const handlers = this._handlers, container2 = this.container, options = container2.actualOptions;
134
+ if (!options.interactivity.events.resize) {
135
+ return;
136
+ }
137
+ if (typeof ResizeObserver === "undefined") {
138
+ manageListener(window, resizeEvent, handlers.resize, add);
139
+ return;
140
+ }
141
+ const canvasEl = container2.canvas.element;
142
+ if (this._resizeObserver && !add) {
143
+ if (canvasEl) {
144
+ this._resizeObserver.unobserve(canvasEl);
145
+ }
146
+ this._resizeObserver.disconnect();
147
+ delete this._resizeObserver;
148
+ } else if (!this._resizeObserver && add && canvasEl) {
149
+ this._resizeObserver = new ResizeObserver((entries) => {
150
+ const entry = entries.find((e) => e.target === canvasEl);
151
+ if (!entry) {
152
+ return;
153
+ }
154
+ this._handleWindowResize();
155
+ });
156
+ this._resizeObserver.observe(canvasEl);
157
+ }
158
+ };
159
+ this._mouseDown = () => {
160
+ const { interactivity } = this.container;
161
+ if (!interactivity) {
162
+ return;
163
+ }
164
+ const { mouse } = interactivity;
165
+ mouse.clicking = true;
166
+ mouse.downPosition = mouse.position;
167
+ };
168
+ this._mouseTouchClick = (e) => {
169
+ const container2 = this.container, options = container2.actualOptions, { mouse } = container2.interactivity;
170
+ mouse.inside = true;
171
+ let handled = false;
172
+ const mousePosition = mouse.position;
173
+ if (!mousePosition || !options.interactivity.events.onClick.enable) {
174
+ return;
175
+ }
176
+ for (const plugin of container2.plugins.values()) {
177
+ if (!plugin.clickPositionValid) {
178
+ continue;
179
+ }
180
+ handled = plugin.clickPositionValid(mousePosition);
181
+ if (handled) {
182
+ break;
183
+ }
184
+ }
185
+ if (!handled) {
186
+ this._doMouseTouchClick(e);
187
+ }
188
+ mouse.clicking = false;
189
+ };
190
+ this._mouseTouchFinish = () => {
191
+ const interactivity = this.container.interactivity;
192
+ if (!interactivity) {
193
+ return;
194
+ }
195
+ const mouse = interactivity.mouse;
196
+ delete mouse.position;
197
+ delete mouse.clickPosition;
198
+ delete mouse.downPosition;
199
+ interactivity.status = mouseLeaveEvent;
200
+ mouse.inside = false;
201
+ mouse.clicking = false;
202
+ };
203
+ this._mouseTouchMove = (e) => {
204
+ const container2 = this.container, options = container2.actualOptions, interactivity = container2.interactivity, canvasEl = container2.canvas.element;
205
+ if (!(interactivity == null ? void 0 : interactivity.element)) {
206
+ return;
207
+ }
208
+ interactivity.mouse.inside = true;
209
+ let pos;
210
+ if (e.type.startsWith("pointer")) {
211
+ this._canPush = true;
212
+ const mouseEvent = e;
213
+ if (interactivity.element === window) {
214
+ if (canvasEl) {
215
+ const clientRect = canvasEl.getBoundingClientRect();
216
+ pos = {
217
+ x: mouseEvent.clientX - clientRect.left,
218
+ y: mouseEvent.clientY - clientRect.top
219
+ };
220
+ }
221
+ } else if (options.interactivity.detectsOn === InteractivityDetect.parent) {
222
+ const source = mouseEvent.target, target = mouseEvent.currentTarget;
223
+ if (source && target && canvasEl) {
224
+ const sourceRect = source.getBoundingClientRect(), targetRect = target.getBoundingClientRect(), canvasRect = canvasEl.getBoundingClientRect();
225
+ pos = {
226
+ x: mouseEvent.offsetX + double * sourceRect.left - (targetRect.left + canvasRect.left),
227
+ y: mouseEvent.offsetY + double * sourceRect.top - (targetRect.top + canvasRect.top)
228
+ };
229
+ } else {
230
+ pos = {
231
+ x: mouseEvent.offsetX ?? mouseEvent.clientX,
232
+ y: mouseEvent.offsetY ?? mouseEvent.clientY
233
+ };
234
+ }
235
+ } else if (mouseEvent.target === canvasEl) {
236
+ pos = {
237
+ x: mouseEvent.offsetX ?? mouseEvent.clientX,
238
+ y: mouseEvent.offsetY ?? mouseEvent.clientY
239
+ };
240
+ }
241
+ } else {
242
+ this._canPush = e.type !== "touchmove";
243
+ if (canvasEl) {
244
+ const touchEvent = e, lastTouch = touchEvent.touches[touchEvent.touches.length - lengthOffset], canvasRect = canvasEl.getBoundingClientRect();
245
+ pos = {
246
+ x: lastTouch.clientX - (canvasRect.left ?? minCoordinate),
247
+ y: lastTouch.clientY - (canvasRect.top ?? minCoordinate)
248
+ };
249
+ }
250
+ }
251
+ const pxRatio = container2.retina.pixelRatio;
252
+ if (pos) {
253
+ pos.x *= pxRatio;
254
+ pos.y *= pxRatio;
255
+ }
256
+ interactivity.mouse.position = pos;
257
+ interactivity.status = mouseMoveEvent;
258
+ };
259
+ this._touchEnd = (e) => {
260
+ const evt = e, touches = Array.from(evt.changedTouches);
261
+ for (const touch of touches) {
262
+ this._touches.delete(touch.identifier);
263
+ }
264
+ this._mouseTouchFinish();
265
+ };
266
+ this._touchEndClick = (e) => {
267
+ const evt = e, touches = Array.from(evt.changedTouches);
268
+ for (const touch of touches) {
269
+ this._touches.delete(touch.identifier);
270
+ }
271
+ this._mouseTouchClick(e);
272
+ };
273
+ this._touchStart = (e) => {
274
+ const evt = e, touches = Array.from(evt.changedTouches);
275
+ for (const touch of touches) {
276
+ this._touches.set(touch.identifier, performance.now());
277
+ }
278
+ this._mouseTouchMove(e);
279
+ };
280
+ this._canPush = true;
281
+ this._touches = /* @__PURE__ */ new Map();
282
+ this._handlers = {
283
+ mouseDown: () => this._mouseDown(),
284
+ mouseLeave: () => this._mouseTouchFinish(),
285
+ mouseMove: (e) => this._mouseTouchMove(e),
286
+ mouseUp: (e) => this._mouseTouchClick(e),
287
+ touchStart: (e) => this._touchStart(e),
288
+ touchMove: (e) => this._mouseTouchMove(e),
289
+ touchEnd: (e) => this._touchEnd(e),
290
+ touchCancel: (e) => this._touchEnd(e),
291
+ touchEndClick: (e) => this._touchEndClick(e),
292
+ visibilityChange: () => this._handleVisibilityChange(),
293
+ themeChange: (e) => this._handleThemeChange(e),
294
+ oldThemeChange: (e) => this._handleThemeChange(e),
295
+ resize: () => {
296
+ this._handleWindowResize();
297
+ }
298
+ };
299
+ }
300
+ addListeners() {
301
+ this._manageListeners(true);
302
+ }
303
+ removeListeners() {
304
+ this._manageListeners(false);
305
+ }
306
+ }
307
+ export {
308
+ EventListeners
309
+ };
@@ -0,0 +1,10 @@
1
+ import { InteractorType } from "../../Enums/Types/InteractorType.js";
2
+ class ExternalInteractorBase {
3
+ constructor(container) {
4
+ this.type = InteractorType.external;
5
+ this.container = container;
6
+ }
7
+ }
8
+ export {
9
+ ExternalInteractorBase
10
+ };
@@ -0,0 +1,64 @@
1
+ import { InteractorType } from "../../Enums/Types/InteractorType.js";
2
+ class InteractionManager {
3
+ constructor(engine, container) {
4
+ this.container = container;
5
+ this._engine = engine;
6
+ this._interactors = [];
7
+ this._externalInteractors = [];
8
+ this._particleInteractors = [];
9
+ }
10
+ externalInteract(delta) {
11
+ for (const interactor of this._externalInteractors) {
12
+ if (interactor.isEnabled()) {
13
+ interactor.interact(delta);
14
+ }
15
+ }
16
+ }
17
+ handleClickMode(mode) {
18
+ var _a;
19
+ for (const interactor of this._externalInteractors) {
20
+ (_a = interactor.handleClickMode) == null ? void 0 : _a.call(interactor, mode);
21
+ }
22
+ }
23
+ async init() {
24
+ this._interactors = await this._engine.getInteractors(this.container, true);
25
+ this._externalInteractors = [];
26
+ this._particleInteractors = [];
27
+ for (const interactor of this._interactors) {
28
+ switch (interactor.type) {
29
+ case InteractorType.external:
30
+ this._externalInteractors.push(interactor);
31
+ break;
32
+ case InteractorType.particles:
33
+ this._particleInteractors.push(interactor);
34
+ break;
35
+ }
36
+ interactor.init();
37
+ }
38
+ }
39
+ particlesInteract(particle, delta) {
40
+ for (const interactor of this._externalInteractors) {
41
+ interactor.clear(particle, delta);
42
+ }
43
+ for (const interactor of this._particleInteractors) {
44
+ if (interactor.isEnabled(particle)) {
45
+ interactor.interact(particle, delta);
46
+ }
47
+ }
48
+ }
49
+ reset(particle) {
50
+ for (const interactor of this._externalInteractors) {
51
+ if (interactor.isEnabled()) {
52
+ interactor.reset(particle);
53
+ }
54
+ }
55
+ for (const interactor of this._particleInteractors) {
56
+ if (interactor.isEnabled(particle)) {
57
+ interactor.reset(particle);
58
+ }
59
+ }
60
+ }
61
+ }
62
+ export {
63
+ InteractionManager
64
+ };
@@ -0,0 +1,10 @@
1
+ import { InteractorType } from "../../Enums/Types/InteractorType.js";
2
+ class ParticlesInteractorBase {
3
+ constructor(container) {
4
+ this.type = InteractorType.particles;
5
+ this.container = container;
6
+ }
7
+ }
8
+ export {
9
+ ParticlesInteractorBase
10
+ };
@@ -0,0 +1,9 @@
1
+ class Point {
2
+ constructor(position, particle) {
3
+ this.position = position;
4
+ this.particle = particle;
5
+ }
6
+ }
7
+ export {
8
+ Point
9
+ };
@@ -0,0 +1,60 @@
1
+ import { Rectangle, Circle } from "./Ranges.js";
2
+ import { subdivideCount, half, double } from "./Constants.js";
3
+ import { getDistance } from "../../Utils/NumberUtils.js";
4
+ class QuadTree {
5
+ constructor(rectangle, capacity) {
6
+ this.rectangle = rectangle;
7
+ this.capacity = capacity;
8
+ this._subdivide = () => {
9
+ const { x, y } = this.rectangle.position, { width, height } = this.rectangle.size, { capacity: capacity2 } = this;
10
+ for (let i = 0; i < subdivideCount; i++) {
11
+ const fixedIndex = i % double;
12
+ this._subs.push(new QuadTree(new Rectangle(x + width * half * fixedIndex, y + height * half * (Math.round(i * half) - fixedIndex), width * half, height * half), capacity2));
13
+ }
14
+ this._divided = true;
15
+ };
16
+ this._points = [];
17
+ this._divided = false;
18
+ this._subs = [];
19
+ }
20
+ insert(point) {
21
+ if (!this.rectangle.contains(point.position)) {
22
+ return false;
23
+ }
24
+ if (this._points.length < this.capacity) {
25
+ this._points.push(point);
26
+ return true;
27
+ }
28
+ if (!this._divided) {
29
+ this._subdivide();
30
+ }
31
+ return this._subs.some((sub) => sub.insert(point));
32
+ }
33
+ query(range, check) {
34
+ const res = [];
35
+ if (!range.intersects(this.rectangle)) {
36
+ return [];
37
+ }
38
+ for (const p of this._points) {
39
+ if (!range.contains(p.position) && getDistance(range.position, p.position) > p.particle.getRadius() && (!check || check(p.particle))) {
40
+ continue;
41
+ }
42
+ res.push(p.particle);
43
+ }
44
+ if (this._divided) {
45
+ for (const sub of this._subs) {
46
+ res.push(...sub.query(range, check));
47
+ }
48
+ }
49
+ return res;
50
+ }
51
+ queryCircle(position, radius, check) {
52
+ return this.query(new Circle(position.x, position.y, radius), check);
53
+ }
54
+ queryRectangle(position, size, check) {
55
+ return this.query(new Rectangle(position.x, position.y, size.width, size.height), check);
56
+ }
57
+ }
58
+ export {
59
+ QuadTree
60
+ };
@@ -0,0 +1,57 @@
1
+ import { RangeType } from "../../Types/RangeType.js";
2
+ import { getDistance } from "../../Utils/NumberUtils.js";
3
+ import { squareExp } from "./Constants.js";
4
+ class BaseRange {
5
+ constructor(x, y, type) {
6
+ this.position = {
7
+ x,
8
+ y
9
+ };
10
+ this.type = type;
11
+ }
12
+ }
13
+ class Circle extends BaseRange {
14
+ constructor(x, y, radius) {
15
+ super(x, y, RangeType.circle);
16
+ this.radius = radius;
17
+ }
18
+ contains(point) {
19
+ return getDistance(point, this.position) <= this.radius;
20
+ }
21
+ intersects(range) {
22
+ const pos1 = this.position, pos2 = range.position, distPos = { x: Math.abs(pos2.x - pos1.x), y: Math.abs(pos2.y - pos1.y) }, r = this.radius;
23
+ if (range instanceof Circle || range.type === RangeType.circle) {
24
+ const circleRange = range, rSum = r + circleRange.radius, dist = Math.sqrt(distPos.x ** squareExp + distPos.y ** squareExp);
25
+ return rSum > dist;
26
+ } else if (range instanceof Rectangle || range.type === RangeType.rectangle) {
27
+ const rectRange = range, { width, height } = rectRange.size, edges = Math.pow(distPos.x - width, squareExp) + Math.pow(distPos.y - height, squareExp);
28
+ return edges <= r ** squareExp || distPos.x <= r + width && distPos.y <= r + height || distPos.x <= width || distPos.y <= height;
29
+ }
30
+ return false;
31
+ }
32
+ }
33
+ class Rectangle extends BaseRange {
34
+ constructor(x, y, width, height) {
35
+ super(x, y, RangeType.rectangle);
36
+ this.size = {
37
+ height,
38
+ width
39
+ };
40
+ }
41
+ contains(point) {
42
+ const w = this.size.width, h = this.size.height, pos = this.position;
43
+ return point.x >= pos.x && point.x <= pos.x + w && point.y >= pos.y && point.y <= pos.y + h;
44
+ }
45
+ intersects(range) {
46
+ if (range instanceof Circle) {
47
+ return range.intersects(this);
48
+ }
49
+ const w = this.size.width, h = this.size.height, pos1 = this.position, pos2 = range.position, size2 = range instanceof Rectangle ? range.size : { width: 0, height: 0 }, w2 = size2.width, h2 = size2.height;
50
+ return pos2.x < pos1.x + w && pos2.x + w2 > pos1.x && pos2.y < pos1.y + h && pos2.y + h2 > pos1.y;
51
+ }
52
+ }
53
+ export {
54
+ BaseRange,
55
+ Circle,
56
+ Rectangle
57
+ };
@@ -0,0 +1,120 @@
1
+ import { originPoint, errorPrefix, squareExp, none, inverseFactorNumerator } from "./Constants.js";
2
+ import { isNumber } from "../../Utils/TypeUtils.js";
3
+ class Vector3d {
4
+ constructor(xOrCoords, y, z) {
5
+ this._updateFromAngle = (angle, length) => {
6
+ this.x = Math.cos(angle) * length;
7
+ this.y = Math.sin(angle) * length;
8
+ };
9
+ if (!isNumber(xOrCoords) && xOrCoords) {
10
+ this.x = xOrCoords.x;
11
+ this.y = xOrCoords.y;
12
+ const coords3d = xOrCoords;
13
+ this.z = coords3d.z ? coords3d.z : originPoint.z;
14
+ } else if (xOrCoords !== void 0 && y !== void 0) {
15
+ this.x = xOrCoords;
16
+ this.y = y;
17
+ this.z = z ?? originPoint.z;
18
+ } else {
19
+ throw new Error(`${errorPrefix} Vector3d not initialized correctly`);
20
+ }
21
+ }
22
+ static get origin() {
23
+ return Vector3d.create(originPoint.x, originPoint.y, originPoint.z);
24
+ }
25
+ get angle() {
26
+ return Math.atan2(this.y, this.x);
27
+ }
28
+ set angle(angle) {
29
+ this._updateFromAngle(angle, this.length);
30
+ }
31
+ get length() {
32
+ return Math.sqrt(this.getLengthSq());
33
+ }
34
+ set length(length) {
35
+ this._updateFromAngle(this.angle, length);
36
+ }
37
+ static clone(source) {
38
+ return Vector3d.create(source.x, source.y, source.z);
39
+ }
40
+ static create(x, y, z) {
41
+ return new Vector3d(x, y, z);
42
+ }
43
+ add(v) {
44
+ return Vector3d.create(this.x + v.x, this.y + v.y, this.z + v.z);
45
+ }
46
+ addTo(v) {
47
+ this.x += v.x;
48
+ this.y += v.y;
49
+ this.z += v.z;
50
+ }
51
+ copy() {
52
+ return Vector3d.clone(this);
53
+ }
54
+ distanceTo(v) {
55
+ return this.sub(v).length;
56
+ }
57
+ distanceToSq(v) {
58
+ return this.sub(v).getLengthSq();
59
+ }
60
+ div(n) {
61
+ return Vector3d.create(this.x / n, this.y / n, this.z / n);
62
+ }
63
+ divTo(n) {
64
+ this.x /= n;
65
+ this.y /= n;
66
+ this.z /= n;
67
+ }
68
+ getLengthSq() {
69
+ return this.x ** squareExp + this.y ** squareExp;
70
+ }
71
+ mult(n) {
72
+ return Vector3d.create(this.x * n, this.y * n, this.z * n);
73
+ }
74
+ multTo(n) {
75
+ this.x *= n;
76
+ this.y *= n;
77
+ this.z *= n;
78
+ }
79
+ normalize() {
80
+ const length = this.length;
81
+ if (length != none) {
82
+ this.multTo(inverseFactorNumerator / length);
83
+ }
84
+ }
85
+ rotate(angle) {
86
+ return Vector3d.create(this.x * Math.cos(angle) - this.y * Math.sin(angle), this.x * Math.sin(angle) + this.y * Math.cos(angle), originPoint.z);
87
+ }
88
+ setTo(c) {
89
+ this.x = c.x;
90
+ this.y = c.y;
91
+ const v3d = c;
92
+ this.z = v3d.z ? v3d.z : originPoint.z;
93
+ }
94
+ sub(v) {
95
+ return Vector3d.create(this.x - v.x, this.y - v.y, this.z - v.z);
96
+ }
97
+ subFrom(v) {
98
+ this.x -= v.x;
99
+ this.y -= v.y;
100
+ this.z -= v.z;
101
+ }
102
+ }
103
+ class Vector extends Vector3d {
104
+ constructor(xOrCoords, y) {
105
+ super(xOrCoords, y, originPoint.z);
106
+ }
107
+ static get origin() {
108
+ return Vector.create(originPoint.x, originPoint.y);
109
+ }
110
+ static clone(source) {
111
+ return Vector.create(source.x, source.y);
112
+ }
113
+ static create(x, y) {
114
+ return new Vector(x, y);
115
+ }
116
+ }
117
+ export {
118
+ Vector,
119
+ Vector3d
120
+ };
@@ -0,0 +1,8 @@
1
+ var AnimationStatus;
2
+ (function(AnimationStatus2) {
3
+ AnimationStatus2["increasing"] = "increasing";
4
+ AnimationStatus2["decreasing"] = "decreasing";
5
+ })(AnimationStatus || (AnimationStatus = {}));
6
+ export {
7
+ AnimationStatus
8
+ };
@@ -0,0 +1,17 @@
1
+ var MoveDirection;
2
+ (function(MoveDirection2) {
3
+ MoveDirection2["bottom"] = "bottom";
4
+ MoveDirection2["bottomLeft"] = "bottom-left";
5
+ MoveDirection2["bottomRight"] = "bottom-right";
6
+ MoveDirection2["left"] = "left";
7
+ MoveDirection2["none"] = "none";
8
+ MoveDirection2["right"] = "right";
9
+ MoveDirection2["top"] = "top";
10
+ MoveDirection2["topLeft"] = "top-left";
11
+ MoveDirection2["topRight"] = "top-right";
12
+ MoveDirection2["outside"] = "outside";
13
+ MoveDirection2["inside"] = "inside";
14
+ })(MoveDirection || (MoveDirection = {}));
15
+ export {
16
+ MoveDirection
17
+ };
@@ -0,0 +1,10 @@
1
+ var OutModeDirection;
2
+ (function(OutModeDirection2) {
3
+ OutModeDirection2["bottom"] = "bottom";
4
+ OutModeDirection2["left"] = "left";
5
+ OutModeDirection2["right"] = "right";
6
+ OutModeDirection2["top"] = "top";
7
+ })(OutModeDirection || (OutModeDirection = {}));
8
+ export {
9
+ OutModeDirection
10
+ };
@@ -0,0 +1,9 @@
1
+ var RotateDirection;
2
+ (function(RotateDirection2) {
3
+ RotateDirection2["clockwise"] = "clockwise";
4
+ RotateDirection2["counterClockwise"] = "counter-clockwise";
5
+ RotateDirection2["random"] = "random";
6
+ })(RotateDirection || (RotateDirection = {}));
7
+ export {
8
+ RotateDirection
9
+ };