tsparticles 1.40.2 → 1.41.3

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 (1015) hide show
  1. package/Core/Container.d.ts +1 -1
  2. package/Core/Container.js +9 -23
  3. package/Core/Interfaces/IExternalInteractor.d.ts +1 -1
  4. package/Core/Interfaces/IParticlesInteractor.d.ts +1 -1
  5. package/Core/Particle.js +2 -2
  6. package/Core/Particles.d.ts +3 -3
  7. package/Core/Particles.js +7 -7
  8. package/Core/Utils/ExternalInteractorBase.d.ts +1 -1
  9. package/Core/Utils/FrameManager.d.ts +1 -1
  10. package/Core/Utils/FrameManager.js +2 -2
  11. package/Core/Utils/InteractionManager.d.ts +2 -2
  12. package/Core/Utils/InteractionManager.js +4 -4
  13. package/Core/Utils/ParticlesInteractorBase.d.ts +1 -1
  14. package/Interactions/External/Attract/Attractor.d.ts +1 -1
  15. package/Interactions/External/Attract/Attractor.js +1 -1
  16. package/Interactions/External/Bounce/Bouncer.d.ts +1 -1
  17. package/Interactions/External/Bounce/Bouncer.js +1 -1
  18. package/Interactions/External/Bubble/Bubbler.d.ts +1 -1
  19. package/Interactions/External/Bubble/Bubbler.js +1 -1
  20. package/Interactions/External/Connect/Connector.d.ts +1 -1
  21. package/Interactions/External/Connect/Connector.js +1 -1
  22. package/Interactions/External/Grab/Grabber.d.ts +1 -1
  23. package/Interactions/External/Grab/Grabber.js +1 -1
  24. package/Interactions/External/Repulse/Repulser.d.ts +1 -1
  25. package/Interactions/External/Repulse/Repulser.js +1 -1
  26. package/Interactions/External/Trail/TrailMaker.d.ts +1 -1
  27. package/Interactions/External/Trail/TrailMaker.js +1 -1
  28. package/Interactions/Particles/Attract/Attractor.d.ts +1 -1
  29. package/Interactions/Particles/Attract/Attractor.js +1 -1
  30. package/Interactions/Particles/Collisions/Collider.d.ts +1 -1
  31. package/Interactions/Particles/Collisions/Collider.js +1 -1
  32. package/Interactions/Particles/Links/Linker.d.ts +1 -1
  33. package/Interactions/Particles/Links/Linker.js +1 -1
  34. package/Plugins/PolygonMask/PolygonMaskInstance.js +1 -1
  35. package/Updaters/Opacity/OpacityUpdater.js +7 -5
  36. package/Updaters/Size/SizeUpdater.js +7 -5
  37. package/browser/Core/Container.d.ts +1 -1
  38. package/browser/Core/Container.js +9 -23
  39. package/browser/Core/Interfaces/IExternalInteractor.d.ts +1 -1
  40. package/browser/Core/Interfaces/IParticlesInteractor.d.ts +1 -1
  41. package/browser/Core/Particle.js +2 -2
  42. package/browser/Core/Particles.d.ts +3 -3
  43. package/browser/Core/Particles.js +7 -7
  44. package/browser/Core/Utils/ExternalInteractorBase.d.ts +1 -1
  45. package/browser/Core/Utils/FrameManager.d.ts +1 -1
  46. package/browser/Core/Utils/FrameManager.js +2 -2
  47. package/browser/Core/Utils/InteractionManager.d.ts +2 -2
  48. package/browser/Core/Utils/InteractionManager.js +4 -4
  49. package/browser/Core/Utils/ParticlesInteractorBase.d.ts +1 -1
  50. package/browser/Interactions/External/Attract/Attractor.d.ts +1 -1
  51. package/browser/Interactions/External/Attract/Attractor.js +1 -1
  52. package/browser/Interactions/External/Bounce/Bouncer.d.ts +1 -1
  53. package/browser/Interactions/External/Bounce/Bouncer.js +1 -1
  54. package/browser/Interactions/External/Bubble/Bubbler.d.ts +1 -1
  55. package/browser/Interactions/External/Bubble/Bubbler.js +1 -1
  56. package/browser/Interactions/External/Connect/Connector.d.ts +1 -1
  57. package/browser/Interactions/External/Connect/Connector.js +1 -1
  58. package/browser/Interactions/External/Grab/Grabber.d.ts +1 -1
  59. package/browser/Interactions/External/Grab/Grabber.js +1 -1
  60. package/browser/Interactions/External/Repulse/Repulser.d.ts +1 -1
  61. package/browser/Interactions/External/Repulse/Repulser.js +1 -1
  62. package/browser/Interactions/External/Trail/TrailMaker.d.ts +1 -1
  63. package/browser/Interactions/External/Trail/TrailMaker.js +1 -1
  64. package/browser/Interactions/Particles/Attract/Attractor.d.ts +1 -1
  65. package/browser/Interactions/Particles/Attract/Attractor.js +1 -1
  66. package/browser/Interactions/Particles/Collisions/Collider.d.ts +1 -1
  67. package/browser/Interactions/Particles/Collisions/Collider.js +1 -1
  68. package/browser/Interactions/Particles/Links/Linker.d.ts +1 -1
  69. package/browser/Interactions/Particles/Links/Linker.js +1 -1
  70. package/browser/Plugins/PolygonMask/PolygonMaskInstance.js +1 -1
  71. package/browser/Updaters/Opacity/OpacityUpdater.js +7 -5
  72. package/browser/Updaters/Size/SizeUpdater.js +7 -5
  73. package/esm/Core/Container.d.ts +1 -1
  74. package/esm/Core/Container.js +9 -23
  75. package/esm/Core/Interfaces/IExternalInteractor.d.ts +1 -1
  76. package/esm/Core/Interfaces/IParticlesInteractor.d.ts +1 -1
  77. package/esm/Core/Particle.js +2 -2
  78. package/esm/Core/Particles.d.ts +3 -3
  79. package/esm/Core/Particles.js +7 -7
  80. package/esm/Core/Utils/ExternalInteractorBase.d.ts +1 -1
  81. package/esm/Core/Utils/FrameManager.d.ts +1 -1
  82. package/esm/Core/Utils/FrameManager.js +2 -2
  83. package/esm/Core/Utils/InteractionManager.d.ts +2 -2
  84. package/esm/Core/Utils/InteractionManager.js +4 -4
  85. package/esm/Core/Utils/ParticlesInteractorBase.d.ts +1 -1
  86. package/esm/Interactions/External/Attract/Attractor.d.ts +1 -1
  87. package/esm/Interactions/External/Attract/Attractor.js +1 -1
  88. package/esm/Interactions/External/Bounce/Bouncer.d.ts +1 -1
  89. package/esm/Interactions/External/Bounce/Bouncer.js +1 -1
  90. package/esm/Interactions/External/Bubble/Bubbler.d.ts +1 -1
  91. package/esm/Interactions/External/Bubble/Bubbler.js +1 -1
  92. package/esm/Interactions/External/Connect/Connector.d.ts +1 -1
  93. package/esm/Interactions/External/Connect/Connector.js +1 -1
  94. package/esm/Interactions/External/Grab/Grabber.d.ts +1 -1
  95. package/esm/Interactions/External/Grab/Grabber.js +1 -1
  96. package/esm/Interactions/External/Repulse/Repulser.d.ts +1 -1
  97. package/esm/Interactions/External/Repulse/Repulser.js +1 -1
  98. package/esm/Interactions/External/Trail/TrailMaker.d.ts +1 -1
  99. package/esm/Interactions/External/Trail/TrailMaker.js +1 -1
  100. package/esm/Interactions/Particles/Attract/Attractor.d.ts +1 -1
  101. package/esm/Interactions/Particles/Attract/Attractor.js +1 -1
  102. package/esm/Interactions/Particles/Collisions/Collider.d.ts +1 -1
  103. package/esm/Interactions/Particles/Collisions/Collider.js +1 -1
  104. package/esm/Interactions/Particles/Links/Linker.d.ts +1 -1
  105. package/esm/Interactions/Particles/Links/Linker.js +1 -1
  106. package/esm/Plugins/PolygonMask/PolygonMaskInstance.js +1 -1
  107. package/esm/Updaters/Opacity/OpacityUpdater.js +7 -5
  108. package/esm/Updaters/Size/SizeUpdater.js +7 -5
  109. package/package.json +1 -1
  110. package/report.html +6 -5
  111. package/report.slim.html +6 -5
  112. package/tsparticles.engine.js +24 -38
  113. package/tsparticles.engine.min.js +2 -2
  114. package/tsparticles.interaction.external.attract.js +23 -37
  115. package/tsparticles.interaction.external.attract.min.js +2 -2
  116. package/tsparticles.interaction.external.bounce.js +23 -37
  117. package/tsparticles.interaction.external.bounce.min.js +2 -2
  118. package/tsparticles.interaction.external.bubble.js +23 -37
  119. package/tsparticles.interaction.external.bubble.min.js +2 -2
  120. package/tsparticles.interaction.external.connect.js +23 -37
  121. package/tsparticles.interaction.external.connect.min.js +2 -2
  122. package/tsparticles.interaction.external.grab.js +23 -37
  123. package/tsparticles.interaction.external.grab.min.js +2 -2
  124. package/tsparticles.interaction.external.repulse.js +23 -37
  125. package/tsparticles.interaction.external.repulse.min.js +2 -2
  126. package/tsparticles.interaction.external.trail.js +23 -37
  127. package/tsparticles.interaction.external.trail.min.js +2 -2
  128. package/tsparticles.interaction.particles.attract.js +23 -37
  129. package/tsparticles.interaction.particles.attract.min.js +2 -2
  130. package/tsparticles.interaction.particles.collisions.js +23 -37
  131. package/tsparticles.interaction.particles.collisions.min.js +2 -2
  132. package/tsparticles.interaction.particles.links.js +23 -37
  133. package/tsparticles.interaction.particles.links.min.js +2 -2
  134. package/tsparticles.js +43 -56
  135. package/tsparticles.min.js +2 -2
  136. package/tsparticles.pathseg.min.js +1 -1
  137. package/tsparticles.plugins.absorbers.js +22 -36
  138. package/tsparticles.plugins.absorbers.min.js +1 -1
  139. package/tsparticles.plugins.emitters.js +22 -36
  140. package/tsparticles.plugins.emitters.min.js +1 -1
  141. package/tsparticles.plugins.polygonMask.js +24 -38
  142. package/tsparticles.plugins.polygonMask.min.js +2 -2
  143. package/tsparticles.shape.circle.min.js +1 -1
  144. package/tsparticles.shape.image.js +22 -36
  145. package/tsparticles.shape.image.min.js +1 -1
  146. package/tsparticles.shape.line.min.js +1 -1
  147. package/tsparticles.shape.polygon.min.js +1 -1
  148. package/tsparticles.shape.square.min.js +1 -1
  149. package/tsparticles.shape.star.min.js +1 -1
  150. package/tsparticles.shape.text.js +22 -36
  151. package/tsparticles.shape.text.min.js +1 -1
  152. package/tsparticles.slim.js +40 -53
  153. package/tsparticles.slim.min.js +2 -2
  154. package/tsparticles.updater.angle.js +22 -36
  155. package/tsparticles.updater.angle.min.js +1 -1
  156. package/tsparticles.updater.color.js +22 -36
  157. package/tsparticles.updater.color.min.js +1 -1
  158. package/tsparticles.updater.life.js +22 -36
  159. package/tsparticles.updater.life.min.js +1 -1
  160. package/tsparticles.updater.opacity.js +25 -39
  161. package/tsparticles.updater.opacity.min.js +2 -2
  162. package/tsparticles.updater.outModes.js +22 -36
  163. package/tsparticles.updater.outModes.min.js +1 -1
  164. package/tsparticles.updater.roll.js +22 -36
  165. package/tsparticles.updater.roll.min.js +1 -1
  166. package/tsparticles.updater.size.js +26 -39
  167. package/tsparticles.updater.size.min.js +2 -2
  168. package/tsparticles.updater.strokeColor.js +22 -36
  169. package/tsparticles.updater.strokeColor.min.js +1 -1
  170. package/tsparticles.updater.tilt.js +22 -36
  171. package/tsparticles.updater.tilt.min.js +1 -1
  172. package/tsparticles.updater.wobble.js +22 -36
  173. package/tsparticles.updater.wobble.min.js +1 -1
  174. package/umd/Core/Canvas.d.ts +35 -0
  175. package/umd/Core/Canvas.js +328 -0
  176. package/umd/Core/Container.d.ts +68 -0
  177. package/umd/Core/Container.js +405 -0
  178. package/umd/Core/Interfaces/Colors.d.ts +33 -0
  179. package/umd/Core/Interfaces/Colors.js +12 -0
  180. package/umd/Core/Interfaces/Gradients.d.ts +21 -0
  181. package/umd/Core/Interfaces/Gradients.js +12 -0
  182. package/umd/Core/Interfaces/IAttract.d.ts +7 -0
  183. package/umd/Core/Interfaces/IAttract.js +12 -0
  184. package/umd/Core/Interfaces/IBounds.d.ts +6 -0
  185. package/umd/Core/Interfaces/IBounds.js +12 -0
  186. package/umd/Core/Interfaces/IBubble.d.ts +4 -0
  187. package/umd/Core/Interfaces/IBubble.js +12 -0
  188. package/umd/Core/Interfaces/IBubbleParticleData.d.ts +9 -0
  189. package/umd/Core/Interfaces/IBubbleParticleData.js +12 -0
  190. package/umd/Core/Interfaces/ICircleBouncer.d.ts +9 -0
  191. package/umd/Core/Interfaces/ICircleBouncer.js +12 -0
  192. package/umd/Core/Interfaces/IContainerInteractivity.d.ts +6 -0
  193. package/umd/Core/Interfaces/IContainerInteractivity.js +12 -0
  194. package/umd/Core/Interfaces/IContainerPlugin.d.ts +32 -0
  195. package/umd/Core/Interfaces/IContainerPlugin.js +12 -0
  196. package/umd/Core/Interfaces/ICoordinates.d.ts +7 -0
  197. package/umd/Core/Interfaces/ICoordinates.js +12 -0
  198. package/umd/Core/Interfaces/IDelta.d.ts +4 -0
  199. package/umd/Core/Interfaces/IDelta.js +12 -0
  200. package/umd/Core/Interfaces/IDimension.d.ts +4 -0
  201. package/umd/Core/Interfaces/IDimension.js +12 -0
  202. package/umd/Core/Interfaces/IDistance.d.ts +4 -0
  203. package/umd/Core/Interfaces/IDistance.js +12 -0
  204. package/umd/Core/Interfaces/IExternalInteractor.d.ts +6 -0
  205. package/umd/Core/Interfaces/IExternalInteractor.js +12 -0
  206. package/umd/Core/Interfaces/IInteractor.d.ts +6 -0
  207. package/umd/Core/Interfaces/IInteractor.js +12 -0
  208. package/umd/Core/Interfaces/IMouseData.d.ts +9 -0
  209. package/umd/Core/Interfaces/IMouseData.js +12 -0
  210. package/umd/Core/Interfaces/IMovePathGenerator.d.ts +8 -0
  211. package/umd/Core/Interfaces/IMovePathGenerator.js +12 -0
  212. package/umd/Core/Interfaces/IParticle.d.ts +55 -0
  213. package/umd/Core/Interfaces/IParticle.js +12 -0
  214. package/umd/Core/Interfaces/IParticleGradientAnimation.d.ts +8 -0
  215. package/umd/Core/Interfaces/IParticleGradientAnimation.js +12 -0
  216. package/umd/Core/Interfaces/IParticleGradientColorAnimation.d.ts +7 -0
  217. package/umd/Core/Interfaces/IParticleGradientColorAnimation.js +12 -0
  218. package/umd/Core/Interfaces/IParticleHslAnimation.d.ts +6 -0
  219. package/umd/Core/Interfaces/IParticleHslAnimation.js +12 -0
  220. package/umd/Core/Interfaces/IParticleLife.d.ts +7 -0
  221. package/umd/Core/Interfaces/IParticleLife.js +12 -0
  222. package/umd/Core/Interfaces/IParticleLoops.d.ts +4 -0
  223. package/umd/Core/Interfaces/IParticleLoops.js +12 -0
  224. package/umd/Core/Interfaces/IParticleRetinaProps.d.ts +12 -0
  225. package/umd/Core/Interfaces/IParticleRetinaProps.js +12 -0
  226. package/umd/Core/Interfaces/IParticleRoll.d.ts +9 -0
  227. package/umd/Core/Interfaces/IParticleRoll.js +12 -0
  228. package/umd/Core/Interfaces/IParticleSpin.d.ts +9 -0
  229. package/umd/Core/Interfaces/IParticleSpin.js +12 -0
  230. package/umd/Core/Interfaces/IParticleUpdater.d.ts +9 -0
  231. package/umd/Core/Interfaces/IParticleUpdater.js +12 -0
  232. package/umd/Core/Interfaces/IParticleValueAnimation.d.ts +17 -0
  233. package/umd/Core/Interfaces/IParticleValueAnimation.js +12 -0
  234. package/umd/Core/Interfaces/IParticleWobble.d.ts +4 -0
  235. package/umd/Core/Interfaces/IParticleWobble.js +12 -0
  236. package/umd/Core/Interfaces/IParticlesFrequencies.d.ts +4 -0
  237. package/umd/Core/Interfaces/IParticlesFrequencies.js +12 -0
  238. package/umd/Core/Interfaces/IParticlesInteractor.d.ts +7 -0
  239. package/umd/Core/Interfaces/IParticlesInteractor.js +12 -0
  240. package/umd/Core/Interfaces/IPlugin.d.ts +11 -0
  241. package/umd/Core/Interfaces/IPlugin.js +12 -0
  242. package/umd/Core/Interfaces/IRangeValue.d.ts +4 -0
  243. package/umd/Core/Interfaces/IRangeValue.js +12 -0
  244. package/umd/Core/Interfaces/IRectSideResult.d.ts +5 -0
  245. package/umd/Core/Interfaces/IRectSideResult.js +12 -0
  246. package/umd/Core/Interfaces/IRepulse.d.ts +7 -0
  247. package/umd/Core/Interfaces/IRepulse.js +12 -0
  248. package/umd/Core/Interfaces/IShapeDrawer.d.ts +10 -0
  249. package/umd/Core/Interfaces/IShapeDrawer.js +12 -0
  250. package/umd/Core/Interfaces/IShapeValues.d.ts +8 -0
  251. package/umd/Core/Interfaces/IShapeValues.js +12 -0
  252. package/umd/Core/Interfaces/index.d.ts +36 -0
  253. package/umd/Core/Interfaces/index.js +58 -0
  254. package/umd/Core/Loader.d.ts +32 -0
  255. package/umd/Core/Loader.js +193 -0
  256. package/umd/Core/Particle.d.ts +71 -0
  257. package/umd/Core/Particle.js +394 -0
  258. package/umd/Core/Particles.d.ts +46 -0
  259. package/umd/Core/Particles.js +331 -0
  260. package/umd/Core/Retina.d.ts +26 -0
  261. package/umd/Core/Retina.js +107 -0
  262. package/umd/Core/Utils/Circle.d.ts +8 -0
  263. package/umd/Core/Utils/Circle.js +52 -0
  264. package/umd/Core/Utils/CircleWarp.d.ts +9 -0
  265. package/umd/Core/Utils/CircleWarp.js +70 -0
  266. package/umd/Core/Utils/Constants.d.ts +18 -0
  267. package/umd/Core/Utils/Constants.js +32 -0
  268. package/umd/Core/Utils/EventListeners.d.ts +33 -0
  269. package/umd/Core/Utils/EventListeners.js +383 -0
  270. package/umd/Core/Utils/ExternalInteractorBase.d.ts +12 -0
  271. package/umd/Core/Utils/ExternalInteractorBase.js +20 -0
  272. package/umd/Core/Utils/FrameManager.d.ts +6 -0
  273. package/umd/Core/Utils/FrameManager.js +53 -0
  274. package/umd/Core/Utils/InteractionManager.d.ts +14 -0
  275. package/umd/Core/Utils/InteractionManager.js +69 -0
  276. package/umd/Core/Utils/ParticlesInteractorBase.d.ts +12 -0
  277. package/umd/Core/Utils/ParticlesInteractorBase.js +20 -0
  278. package/umd/Core/Utils/ParticlesMover.d.ts +13 -0
  279. package/umd/Core/Utils/ParticlesMover.js +196 -0
  280. package/umd/Core/Utils/Plugins.d.ts +36 -0
  281. package/umd/Core/Utils/Plugins.js +108 -0
  282. package/umd/Core/Utils/Point.d.ts +7 -0
  283. package/umd/Core/Utils/Point.js +20 -0
  284. package/umd/Core/Utils/QuadTree.d.ts +23 -0
  285. package/umd/Core/Utils/QuadTree.js +88 -0
  286. package/umd/Core/Utils/Range.d.ts +7 -0
  287. package/umd/Core/Utils/Range.js +22 -0
  288. package/umd/Core/Utils/Rectangle.d.ts +8 -0
  289. package/umd/Core/Utils/Rectangle.js +48 -0
  290. package/umd/Core/Utils/Vector.d.ts +29 -0
  291. package/umd/Core/Utils/Vector.js +106 -0
  292. package/umd/Core/Utils/Vector3d.d.ts +18 -0
  293. package/umd/Core/Utils/Vector3d.js +68 -0
  294. package/umd/Core/Utils/index.d.ts +16 -0
  295. package/umd/Core/Utils/index.js +38 -0
  296. package/umd/Core/index.d.ts +8 -0
  297. package/umd/Core/index.js +30 -0
  298. package/umd/Enums/AnimationStatus.d.ts +4 -0
  299. package/umd/Enums/AnimationStatus.js +12 -0
  300. package/umd/Enums/Directions/MoveDirection.d.ts +12 -0
  301. package/umd/Enums/Directions/MoveDirection.js +12 -0
  302. package/umd/Enums/Directions/OutModeDirection.d.ts +6 -0
  303. package/umd/Enums/Directions/OutModeDirection.js +12 -0
  304. package/umd/Enums/Directions/RotateDirection.d.ts +6 -0
  305. package/umd/Enums/Directions/RotateDirection.js +12 -0
  306. package/umd/Enums/Directions/TiltDirection.d.ts +6 -0
  307. package/umd/Enums/Directions/TiltDirection.js +12 -0
  308. package/umd/Enums/Directions/index.d.ts +4 -0
  309. package/umd/Enums/Directions/index.js +26 -0
  310. package/umd/Enums/InteractivityDetect.d.ts +5 -0
  311. package/umd/Enums/InteractivityDetect.js +12 -0
  312. package/umd/Enums/Modes/ClickMode.d.ts +9 -0
  313. package/umd/Enums/Modes/ClickMode.js +12 -0
  314. package/umd/Enums/Modes/CollisionMode.d.ts +5 -0
  315. package/umd/Enums/Modes/CollisionMode.js +12 -0
  316. package/umd/Enums/Modes/DestroyMode.d.ts +4 -0
  317. package/umd/Enums/Modes/DestroyMode.js +12 -0
  318. package/umd/Enums/Modes/DivMode.d.ts +5 -0
  319. package/umd/Enums/Modes/DivMode.js +12 -0
  320. package/umd/Enums/Modes/HoverMode.d.ts +11 -0
  321. package/umd/Enums/Modes/HoverMode.js +12 -0
  322. package/umd/Enums/Modes/OutMode.d.ts +10 -0
  323. package/umd/Enums/Modes/OutMode.js +12 -0
  324. package/umd/Enums/Modes/ResponsiveMode.d.ts +4 -0
  325. package/umd/Enums/Modes/ResponsiveMode.js +12 -0
  326. package/umd/Enums/Modes/RollMode.d.ts +5 -0
  327. package/umd/Enums/Modes/RollMode.js +12 -0
  328. package/umd/Enums/Modes/SizeMode.d.ts +4 -0
  329. package/umd/Enums/Modes/SizeMode.js +12 -0
  330. package/umd/Enums/Modes/ThemeMode.d.ts +5 -0
  331. package/umd/Enums/Modes/ThemeMode.js +12 -0
  332. package/umd/Enums/Modes/index.d.ts +10 -0
  333. package/umd/Enums/Modes/index.js +32 -0
  334. package/umd/Enums/Types/AlterType.d.ts +4 -0
  335. package/umd/Enums/Types/AlterType.js +12 -0
  336. package/umd/Enums/Types/DestroyType.d.ts +5 -0
  337. package/umd/Enums/Types/DestroyType.js +12 -0
  338. package/umd/Enums/Types/DivType.d.ts +4 -0
  339. package/umd/Enums/Types/DivType.js +12 -0
  340. package/umd/Enums/Types/EasingType.d.ts +10 -0
  341. package/umd/Enums/Types/EasingType.js +12 -0
  342. package/umd/Enums/Types/GradientType.d.ts +5 -0
  343. package/umd/Enums/Types/GradientType.js +12 -0
  344. package/umd/Enums/Types/InteractorType.d.ts +4 -0
  345. package/umd/Enums/Types/InteractorType.js +12 -0
  346. package/umd/Enums/Types/OrbitType.d.ts +4 -0
  347. package/umd/Enums/Types/OrbitType.js +12 -0
  348. package/umd/Enums/Types/ShapeType.d.ts +13 -0
  349. package/umd/Enums/Types/ShapeType.js +12 -0
  350. package/umd/Enums/Types/StartValueType.d.ts +5 -0
  351. package/umd/Enums/Types/StartValueType.js +12 -0
  352. package/umd/Enums/Types/index.d.ts +9 -0
  353. package/umd/Enums/Types/index.js +31 -0
  354. package/umd/Enums/index.d.ts +5 -0
  355. package/umd/Enums/index.js +27 -0
  356. package/umd/Interactions/External/Attract/Attractor.d.ts +11 -0
  357. package/umd/Interactions/External/Attract/Attractor.js +85 -0
  358. package/umd/Interactions/External/Attract/index.d.ts +2 -0
  359. package/umd/Interactions/External/Attract/index.js +18 -0
  360. package/umd/Interactions/External/Bounce/Bouncer.d.ts +11 -0
  361. package/umd/Interactions/External/Bounce/Bouncer.js +77 -0
  362. package/umd/Interactions/External/Bounce/index.d.ts +2 -0
  363. package/umd/Interactions/External/Bounce/index.js +18 -0
  364. package/umd/Interactions/External/Bubble/Bubbler.d.ts +16 -0
  365. package/umd/Interactions/External/Bubble/Bubbler.js +261 -0
  366. package/umd/Interactions/External/Bubble/IBubblerProcessParam.d.ts +10 -0
  367. package/umd/Interactions/External/Bubble/IBubblerProcessParam.js +12 -0
  368. package/umd/Interactions/External/Bubble/ProcessBubbleType.d.ts +5 -0
  369. package/umd/Interactions/External/Bubble/ProcessBubbleType.js +12 -0
  370. package/umd/Interactions/External/Bubble/index.d.ts +2 -0
  371. package/umd/Interactions/External/Bubble/index.js +18 -0
  372. package/umd/Interactions/External/Connect/Connector.d.ts +8 -0
  373. package/umd/Interactions/External/Connect/Connector.js +51 -0
  374. package/umd/Interactions/External/Connect/index.d.ts +2 -0
  375. package/umd/Interactions/External/Connect/index.js +18 -0
  376. package/umd/Interactions/External/Grab/Grabber.d.ts +8 -0
  377. package/umd/Interactions/External/Grab/Grabber.js +57 -0
  378. package/umd/Interactions/External/Grab/index.d.ts +2 -0
  379. package/umd/Interactions/External/Grab/index.js +18 -0
  380. package/umd/Interactions/External/Repulse/Repulser.d.ts +12 -0
  381. package/umd/Interactions/External/Repulse/Repulser.js +108 -0
  382. package/umd/Interactions/External/Repulse/index.d.ts +2 -0
  383. package/umd/Interactions/External/Repulse/index.js +18 -0
  384. package/umd/Interactions/External/Trail/TrailMaker.d.ts +10 -0
  385. package/umd/Interactions/External/Trail/TrailMaker.js +63 -0
  386. package/umd/Interactions/External/Trail/index.d.ts +2 -0
  387. package/umd/Interactions/External/Trail/index.js +18 -0
  388. package/umd/Interactions/Particles/Attract/Attractor.d.ts +8 -0
  389. package/umd/Interactions/Particles/Attract/Attractor.js +40 -0
  390. package/umd/Interactions/Particles/Attract/index.d.ts +2 -0
  391. package/umd/Interactions/Particles/Attract/index.js +18 -0
  392. package/umd/Interactions/Particles/Collisions/Collider.d.ts +10 -0
  393. package/umd/Interactions/Particles/Collisions/Collider.js +119 -0
  394. package/umd/Interactions/Particles/Collisions/index.d.ts +2 -0
  395. package/umd/Interactions/Particles/Collisions/index.js +18 -0
  396. package/umd/Interactions/Particles/Links/ILink.d.ts +9 -0
  397. package/umd/Interactions/Particles/Links/ILink.js +12 -0
  398. package/umd/Interactions/Particles/Links/LinkInstance.d.ts +10 -0
  399. package/umd/Interactions/Particles/Links/LinkInstance.js +134 -0
  400. package/umd/Interactions/Particles/Links/LinkParticle.d.ts +5 -0
  401. package/umd/Interactions/Particles/Links/LinkParticle.js +12 -0
  402. package/umd/Interactions/Particles/Links/Linker.d.ts +10 -0
  403. package/umd/Interactions/Particles/Links/Linker.js +115 -0
  404. package/umd/Interactions/Particles/Links/index.d.ts +2 -0
  405. package/umd/Interactions/Particles/Links/index.js +20 -0
  406. package/umd/Interactions/Particles/Links/interaction.d.ts +2 -0
  407. package/umd/Interactions/Particles/Links/interaction.js +18 -0
  408. package/umd/Interactions/Particles/Links/plugin.d.ts +2 -0
  409. package/umd/Interactions/Particles/Links/plugin.js +32 -0
  410. package/umd/Options/Classes/AnimatableColor.d.ts +11 -0
  411. package/umd/Options/Classes/AnimatableColor.js +50 -0
  412. package/umd/Options/Classes/AnimatableGradient.d.ts +53 -0
  413. package/umd/Options/Classes/AnimatableGradient.js +156 -0
  414. package/umd/Options/Classes/AnimationOptions.d.ts +11 -0
  415. package/umd/Options/Classes/AnimationOptions.js +39 -0
  416. package/umd/Options/Classes/Background/Background.d.ts +14 -0
  417. package/umd/Options/Classes/Background/Background.js +49 -0
  418. package/umd/Options/Classes/BackgroundMask/BackgroundMask.d.ts +11 -0
  419. package/umd/Options/Classes/BackgroundMask/BackgroundMask.js +38 -0
  420. package/umd/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +10 -0
  421. package/umd/Options/Classes/BackgroundMask/BackgroundMaskCover.js +32 -0
  422. package/umd/Options/Classes/ColorAnimation.d.ts +12 -0
  423. package/umd/Options/Classes/ColorAnimation.js +44 -0
  424. package/umd/Options/Classes/FullScreen/FullScreen.d.ts +9 -0
  425. package/umd/Options/Classes/FullScreen/FullScreen.js +31 -0
  426. package/umd/Options/Classes/HslAnimation.d.ts +11 -0
  427. package/umd/Options/Classes/HslAnimation.js +30 -0
  428. package/umd/Options/Classes/Interactivity/Events/ClickEvent.d.ts +10 -0
  429. package/umd/Options/Classes/Interactivity/Events/ClickEvent.js +31 -0
  430. package/umd/Options/Classes/Interactivity/Events/DivEvent.d.ts +18 -0
  431. package/umd/Options/Classes/Interactivity/Events/DivEvent.js +64 -0
  432. package/umd/Options/Classes/Interactivity/Events/Events.d.ts +20 -0
  433. package/umd/Options/Classes/Interactivity/Events/Events.js +68 -0
  434. package/umd/Options/Classes/Interactivity/Events/HoverEvent.d.ts +12 -0
  435. package/umd/Options/Classes/Interactivity/Events/HoverEvent.js +34 -0
  436. package/umd/Options/Classes/Interactivity/Events/Parallax.d.ts +10 -0
  437. package/umd/Options/Classes/Interactivity/Events/Parallax.js +35 -0
  438. package/umd/Options/Classes/Interactivity/Interactivity.d.ts +15 -0
  439. package/umd/Options/Classes/Interactivity/Interactivity.js +51 -0
  440. package/umd/Options/Classes/Interactivity/Modes/Attract.d.ts +14 -0
  441. package/umd/Options/Classes/Interactivity/Modes/Attract.js +47 -0
  442. package/umd/Options/Classes/Interactivity/Modes/Bounce.d.ts +8 -0
  443. package/umd/Options/Classes/Interactivity/Modes/Bounce.js +27 -0
  444. package/umd/Options/Classes/Interactivity/Modes/Bubble.d.ts +9 -0
  445. package/umd/Options/Classes/Interactivity/Modes/Bubble.js +37 -0
  446. package/umd/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +13 -0
  447. package/umd/Options/Classes/Interactivity/Modes/BubbleBase.js +53 -0
  448. package/umd/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +11 -0
  449. package/umd/Options/Classes/Interactivity/Modes/BubbleDiv.js +41 -0
  450. package/umd/Options/Classes/Interactivity/Modes/Connect.d.ts +15 -0
  451. package/umd/Options/Classes/Interactivity/Modes/Connect.js +47 -0
  452. package/umd/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +8 -0
  453. package/umd/Options/Classes/Interactivity/Modes/ConnectLinks.js +25 -0
  454. package/umd/Options/Classes/Interactivity/Modes/Grab.d.ts +14 -0
  455. package/umd/Options/Classes/Interactivity/Modes/Grab.js +43 -0
  456. package/umd/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +12 -0
  457. package/umd/Options/Classes/Interactivity/Modes/GrabLinks.js +39 -0
  458. package/umd/Options/Classes/Interactivity/Modes/Light.d.ts +11 -0
  459. package/umd/Options/Classes/Interactivity/Modes/Light.js +29 -0
  460. package/umd/Options/Classes/Interactivity/Modes/LightArea.d.ts +10 -0
  461. package/umd/Options/Classes/Interactivity/Modes/LightArea.js +30 -0
  462. package/umd/Options/Classes/Interactivity/Modes/LightGradient.d.ts +10 -0
  463. package/umd/Options/Classes/Interactivity/Modes/LightGradient.js +30 -0
  464. package/umd/Options/Classes/Interactivity/Modes/LightShadow.d.ts +10 -0
  465. package/umd/Options/Classes/Interactivity/Modes/LightShadow.js +31 -0
  466. package/umd/Options/Classes/Interactivity/Modes/Modes.d.ts +29 -0
  467. package/umd/Options/Classes/Interactivity/Modes/Modes.js +55 -0
  468. package/umd/Options/Classes/Interactivity/Modes/Push.d.ts +12 -0
  469. package/umd/Options/Classes/Interactivity/Modes/Push.js +46 -0
  470. package/umd/Options/Classes/Interactivity/Modes/Remove.d.ts +10 -0
  471. package/umd/Options/Classes/Interactivity/Modes/Remove.js +35 -0
  472. package/umd/Options/Classes/Interactivity/Modes/Repulse.d.ts +9 -0
  473. package/umd/Options/Classes/Interactivity/Modes/Repulse.js +37 -0
  474. package/umd/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +14 -0
  475. package/umd/Options/Classes/Interactivity/Modes/RepulseBase.js +47 -0
  476. package/umd/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +11 -0
  477. package/umd/Options/Classes/Interactivity/Modes/RepulseDiv.js +49 -0
  478. package/umd/Options/Classes/Interactivity/Modes/Slow.d.ts +11 -0
  479. package/umd/Options/Classes/Interactivity/Modes/Slow.js +36 -0
  480. package/umd/Options/Classes/Interactivity/Modes/Trail.d.ts +12 -0
  481. package/umd/Options/Classes/Interactivity/Modes/Trail.js +39 -0
  482. package/umd/Options/Classes/ManualParticle.d.ts +10 -0
  483. package/umd/Options/Classes/ManualParticle.js +32 -0
  484. package/umd/Options/Classes/Motion/Motion.d.ts +10 -0
  485. package/umd/Options/Classes/Motion/Motion.js +30 -0
  486. package/umd/Options/Classes/Motion/MotionReduce.d.ts +9 -0
  487. package/umd/Options/Classes/Motion/MotionReduce.js +31 -0
  488. package/umd/Options/Classes/Options.d.ts +48 -0
  489. package/umd/Options/Classes/Options.js +184 -0
  490. package/umd/Options/Classes/OptionsColor.d.ts +10 -0
  491. package/umd/Options/Classes/OptionsColor.js +38 -0
  492. package/umd/Options/Classes/Particles/Bounce/Bounce.d.ts +10 -0
  493. package/umd/Options/Classes/Particles/Bounce/Bounce.js +28 -0
  494. package/umd/Options/Classes/Particles/Bounce/BounceFactor.d.ts +4 -0
  495. package/umd/Options/Classes/Particles/Bounce/BounceFactor.js +22 -0
  496. package/umd/Options/Classes/Particles/Collisions/Collisions.d.ts +14 -0
  497. package/umd/Options/Classes/Particles/Collisions/Collisions.js +37 -0
  498. package/umd/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +9 -0
  499. package/umd/Options/Classes/Particles/Collisions/CollisionsOverlap.js +31 -0
  500. package/umd/Options/Classes/Particles/Destroy/Destroy.d.ts +11 -0
  501. package/umd/Options/Classes/Particles/Destroy/Destroy.js +30 -0
  502. package/umd/Options/Classes/Particles/Destroy/Split.d.ts +15 -0
  503. package/umd/Options/Classes/Particles/Destroy/Split.js +41 -0
  504. package/umd/Options/Classes/Particles/Destroy/SplitFactor.d.ts +4 -0
  505. package/umd/Options/Classes/Particles/Destroy/SplitFactor.js +21 -0
  506. package/umd/Options/Classes/Particles/Destroy/SplitRate.d.ts +4 -0
  507. package/umd/Options/Classes/Particles/Destroy/SplitRate.js +21 -0
  508. package/umd/Options/Classes/Particles/Life/Life.d.ts +12 -0
  509. package/umd/Options/Classes/Particles/Life/Life.js +33 -0
  510. package/umd/Options/Classes/Particles/Life/LifeDelay.d.ts +9 -0
  511. package/umd/Options/Classes/Particles/Life/LifeDelay.js +30 -0
  512. package/umd/Options/Classes/Particles/Life/LifeDuration.d.ts +9 -0
  513. package/umd/Options/Classes/Particles/Life/LifeDuration.js +31 -0
  514. package/umd/Options/Classes/Particles/Links/Links.d.ts +22 -0
  515. package/umd/Options/Classes/Particles/Links/Links.js +67 -0
  516. package/umd/Options/Classes/Particles/Links/LinksShadow.d.ts +11 -0
  517. package/umd/Options/Classes/Particles/Links/LinksShadow.js +35 -0
  518. package/umd/Options/Classes/Particles/Links/LinksTriangle.d.ts +12 -0
  519. package/umd/Options/Classes/Particles/Links/LinksTriangle.js +38 -0
  520. package/umd/Options/Classes/Particles/Move/Attract.d.ts +15 -0
  521. package/umd/Options/Classes/Particles/Move/Attract.js +56 -0
  522. package/umd/Options/Classes/Particles/Move/Move.d.ts +44 -0
  523. package/umd/Options/Classes/Particles/Move/Move.js +142 -0
  524. package/umd/Options/Classes/Particles/Move/MoveAngle.d.ts +9 -0
  525. package/umd/Options/Classes/Particles/Move/MoveAngle.js +31 -0
  526. package/umd/Options/Classes/Particles/Move/MoveGravity.d.ts +11 -0
  527. package/umd/Options/Classes/Particles/Move/MoveGravity.js +39 -0
  528. package/umd/Options/Classes/Particles/Move/OutModes.d.ts +13 -0
  529. package/umd/Options/Classes/Particles/Move/OutModes.js +32 -0
  530. package/umd/Options/Classes/Particles/Move/Path/Path.d.ts +13 -0
  531. package/umd/Options/Classes/Particles/Move/Path/Path.js +40 -0
  532. package/umd/Options/Classes/Particles/Move/Path/PathDelay.d.ts +4 -0
  533. package/umd/Options/Classes/Particles/Move/Path/PathDelay.js +20 -0
  534. package/umd/Options/Classes/Particles/Move/Spin.d.ts +11 -0
  535. package/umd/Options/Classes/Particles/Move/Spin.js +33 -0
  536. package/umd/Options/Classes/Particles/Move/Trail.d.ts +11 -0
  537. package/umd/Options/Classes/Particles/Move/Trail.js +35 -0
  538. package/umd/Options/Classes/Particles/Number/Density.d.ts +12 -0
  539. package/umd/Options/Classes/Particles/Number/Density.js +43 -0
  540. package/umd/Options/Classes/Particles/Number/ParticlesNumber.d.ts +13 -0
  541. package/umd/Options/Classes/Particles/Number/ParticlesNumber.js +42 -0
  542. package/umd/Options/Classes/Particles/Opacity/Opacity.d.ts +12 -0
  543. package/umd/Options/Classes/Particles/Opacity/Opacity.js +43 -0
  544. package/umd/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +14 -0
  545. package/umd/Options/Classes/Particles/Opacity/OpacityAnimation.js +54 -0
  546. package/umd/Options/Classes/Particles/Orbit/Orbit.d.ts +18 -0
  547. package/umd/Options/Classes/Particles/Orbit/Orbit.js +48 -0
  548. package/umd/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +7 -0
  549. package/umd/Options/Classes/Particles/Orbit/OrbitRotation.js +29 -0
  550. package/umd/Options/Classes/Particles/ParticlesOptions.d.ts +58 -0
  551. package/umd/Options/Classes/Particles/ParticlesOptions.js +153 -0
  552. package/umd/Options/Classes/Particles/Repulse/Repulse.d.ts +13 -0
  553. package/umd/Options/Classes/Particles/Repulse/Repulse.js +46 -0
  554. package/umd/Options/Classes/Particles/Roll/Roll.d.ts +16 -0
  555. package/umd/Options/Classes/Particles/Roll/Roll.js +45 -0
  556. package/umd/Options/Classes/Particles/Roll/RollLight.d.ts +9 -0
  557. package/umd/Options/Classes/Particles/Roll/RollLight.js +31 -0
  558. package/umd/Options/Classes/Particles/Rotate/Rotate.d.ts +13 -0
  559. package/umd/Options/Classes/Particles/Rotate/Rotate.js +38 -0
  560. package/umd/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +10 -0
  561. package/umd/Options/Classes/Particles/Rotate/RotateAnimation.js +35 -0
  562. package/umd/Options/Classes/Particles/Shadow.d.ts +13 -0
  563. package/umd/Options/Classes/Particles/Shadow.js +48 -0
  564. package/umd/Options/Classes/Particles/Shape/Shape.d.ts +27 -0
  565. package/umd/Options/Classes/Particles/Shape/Shape.js +113 -0
  566. package/umd/Options/Classes/Particles/Size/Size.d.ts +12 -0
  567. package/umd/Options/Classes/Particles/Size/Size.js +43 -0
  568. package/umd/Options/Classes/Particles/Size/SizeAnimation.d.ts +14 -0
  569. package/umd/Options/Classes/Particles/Size/SizeAnimation.js +54 -0
  570. package/umd/Options/Classes/Particles/Stroke.d.ts +11 -0
  571. package/umd/Options/Classes/Particles/Stroke.js +34 -0
  572. package/umd/Options/Classes/Particles/Tilt/Tilt.d.ts +13 -0
  573. package/umd/Options/Classes/Particles/Tilt/Tilt.js +38 -0
  574. package/umd/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +10 -0
  575. package/umd/Options/Classes/Particles/Tilt/TiltAnimation.js +35 -0
  576. package/umd/Options/Classes/Particles/Twinkle/Twinkle.d.ts +10 -0
  577. package/umd/Options/Classes/Particles/Twinkle/Twinkle.js +28 -0
  578. package/umd/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +12 -0
  579. package/umd/Options/Classes/Particles/Twinkle/TwinkleValues.js +39 -0
  580. package/umd/Options/Classes/Particles/Wobble/Wobble.d.ts +10 -0
  581. package/umd/Options/Classes/Particles/Wobble/Wobble.js +36 -0
  582. package/umd/Options/Classes/Particles/ZIndex/ZIndex.d.ts +11 -0
  583. package/umd/Options/Classes/Particles/ZIndex/ZIndex.js +38 -0
  584. package/umd/Options/Classes/Random.d.ts +9 -0
  585. package/umd/Options/Classes/Random.js +31 -0
  586. package/umd/Options/Classes/Responsive.d.ts +12 -0
  587. package/umd/Options/Classes/Responsive.js +41 -0
  588. package/umd/Options/Classes/Theme/Theme.d.ts +12 -0
  589. package/umd/Options/Classes/Theme/Theme.js +34 -0
  590. package/umd/Options/Classes/Theme/ThemeDefault.d.ts +11 -0
  591. package/umd/Options/Classes/Theme/ThemeDefault.js +35 -0
  592. package/umd/Options/Classes/ValueWithRandom.d.ts +10 -0
  593. package/umd/Options/Classes/ValueWithRandom.js +36 -0
  594. package/umd/Options/Interfaces/Background/IBackground.d.ts +9 -0
  595. package/umd/Options/Interfaces/Background/IBackground.js +12 -0
  596. package/umd/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +7 -0
  597. package/umd/Options/Interfaces/BackgroundMask/IBackgroundMask.js +12 -0
  598. package/umd/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.d.ts +5 -0
  599. package/umd/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.js +12 -0
  600. package/umd/Options/Interfaces/FullScreen/IFullScreen.d.ts +4 -0
  601. package/umd/Options/Interfaces/FullScreen/IFullScreen.js +12 -0
  602. package/umd/Options/Interfaces/IAnimatable.d.ts +4 -0
  603. package/umd/Options/Interfaces/IAnimatable.js +12 -0
  604. package/umd/Options/Interfaces/IAnimatableColor.d.ts +6 -0
  605. package/umd/Options/Interfaces/IAnimatableColor.js +12 -0
  606. package/umd/Options/Interfaces/IAnimatableGradient.d.ts +8 -0
  607. package/umd/Options/Interfaces/IAnimatableGradient.js +12 -0
  608. package/umd/Options/Interfaces/IAnimation.d.ts +6 -0
  609. package/umd/Options/Interfaces/IAnimation.js +12 -0
  610. package/umd/Options/Interfaces/IColorAnimation.d.ts +5 -0
  611. package/umd/Options/Interfaces/IColorAnimation.js +12 -0
  612. package/umd/Options/Interfaces/IHslAnimation.d.ts +6 -0
  613. package/umd/Options/Interfaces/IHslAnimation.js +12 -0
  614. package/umd/Options/Interfaces/IManualParticle.d.ts +7 -0
  615. package/umd/Options/Interfaces/IManualParticle.js +12 -0
  616. package/umd/Options/Interfaces/IOptionLoader.d.ts +4 -0
  617. package/umd/Options/Interfaces/IOptionLoader.js +12 -0
  618. package/umd/Options/Interfaces/IOptions.d.ts +34 -0
  619. package/umd/Options/Interfaces/IOptions.js +12 -0
  620. package/umd/Options/Interfaces/IOptionsColor.d.ts +2 -0
  621. package/umd/Options/Interfaces/IOptionsColor.js +12 -0
  622. package/umd/Options/Interfaces/IOptionsGradient.d.ts +13 -0
  623. package/umd/Options/Interfaces/IOptionsGradient.js +12 -0
  624. package/umd/Options/Interfaces/IRandom.d.ts +4 -0
  625. package/umd/Options/Interfaces/IRandom.js +12 -0
  626. package/umd/Options/Interfaces/IResponsive.d.ts +8 -0
  627. package/umd/Options/Interfaces/IResponsive.js +12 -0
  628. package/umd/Options/Interfaces/IValueWithRandom.d.ts +6 -0
  629. package/umd/Options/Interfaces/IValueWithRandom.js +12 -0
  630. package/umd/Options/Interfaces/Interactivity/Events/IClickEvent.d.ts +6 -0
  631. package/umd/Options/Interfaces/Interactivity/Events/IClickEvent.js +12 -0
  632. package/umd/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +11 -0
  633. package/umd/Options/Interfaces/Interactivity/Events/IDivEvent.js +12 -0
  634. package/umd/Options/Interfaces/Interactivity/Events/IEvents.d.ts +13 -0
  635. package/umd/Options/Interfaces/Interactivity/Events/IEvents.js +12 -0
  636. package/umd/Options/Interfaces/Interactivity/Events/IHoverEvent.d.ts +8 -0
  637. package/umd/Options/Interfaces/Interactivity/Events/IHoverEvent.js +12 -0
  638. package/umd/Options/Interfaces/Interactivity/Events/IParallax.d.ts +5 -0
  639. package/umd/Options/Interfaces/Interactivity/Events/IParallax.js +12 -0
  640. package/umd/Options/Interfaces/Interactivity/IInteractivity.d.ts +9 -0
  641. package/umd/Options/Interfaces/Interactivity/IInteractivity.js +12 -0
  642. package/umd/Options/Interfaces/Interactivity/Modes/IAttract.d.ts +9 -0
  643. package/umd/Options/Interfaces/Interactivity/Modes/IAttract.js +12 -0
  644. package/umd/Options/Interfaces/Interactivity/Modes/IBounce.d.ts +3 -0
  645. package/umd/Options/Interfaces/Interactivity/Modes/IBounce.js +12 -0
  646. package/umd/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +6 -0
  647. package/umd/Options/Interfaces/Interactivity/Modes/IBubble.js +12 -0
  648. package/umd/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +10 -0
  649. package/umd/Options/Interfaces/Interactivity/Modes/IBubbleBase.js +12 -0
  650. package/umd/Options/Interfaces/Interactivity/Modes/IBubbleDiv.d.ts +4 -0
  651. package/umd/Options/Interfaces/Interactivity/Modes/IBubbleDiv.js +12 -0
  652. package/umd/Options/Interfaces/Interactivity/Modes/IConnect.d.ts +8 -0
  653. package/umd/Options/Interfaces/Interactivity/Modes/IConnect.js +12 -0
  654. package/umd/Options/Interfaces/Interactivity/Modes/IConnectLinks.d.ts +3 -0
  655. package/umd/Options/Interfaces/Interactivity/Modes/IConnectLinks.js +12 -0
  656. package/umd/Options/Interfaces/Interactivity/Modes/IGrab.d.ts +7 -0
  657. package/umd/Options/Interfaces/Interactivity/Modes/IGrab.js +12 -0
  658. package/umd/Options/Interfaces/Interactivity/Modes/IGrabLinks.d.ts +7 -0
  659. package/umd/Options/Interfaces/Interactivity/Modes/IGrabLinks.js +12 -0
  660. package/umd/Options/Interfaces/Interactivity/Modes/ILight.d.ts +6 -0
  661. package/umd/Options/Interfaces/Interactivity/Modes/ILight.js +12 -0
  662. package/umd/Options/Interfaces/Interactivity/Modes/ILightArea.d.ts +9 -0
  663. package/umd/Options/Interfaces/Interactivity/Modes/ILightArea.js +12 -0
  664. package/umd/Options/Interfaces/Interactivity/Modes/ILightShadow.d.ts +5 -0
  665. package/umd/Options/Interfaces/Interactivity/Modes/ILightShadow.js +12 -0
  666. package/umd/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +5 -0
  667. package/umd/Options/Interfaces/Interactivity/Modes/IModeDiv.js +12 -0
  668. package/umd/Options/Interfaces/Interactivity/Modes/IModes.d.ts +22 -0
  669. package/umd/Options/Interfaces/Interactivity/Modes/IModes.js +12 -0
  670. package/umd/Options/Interfaces/Interactivity/Modes/IPush.d.ts +6 -0
  671. package/umd/Options/Interfaces/Interactivity/Modes/IPush.js +12 -0
  672. package/umd/Options/Interfaces/Interactivity/Modes/IRemove.d.ts +4 -0
  673. package/umd/Options/Interfaces/Interactivity/Modes/IRemove.js +12 -0
  674. package/umd/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +6 -0
  675. package/umd/Options/Interfaces/Interactivity/Modes/IRepulse.js +12 -0
  676. package/umd/Options/Interfaces/Interactivity/Modes/IRepulseBase.d.ts +9 -0
  677. package/umd/Options/Interfaces/Interactivity/Modes/IRepulseBase.js +12 -0
  678. package/umd/Options/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +4 -0
  679. package/umd/Options/Interfaces/Interactivity/Modes/IRepulseDiv.js +12 -0
  680. package/umd/Options/Interfaces/Interactivity/Modes/ISlow.d.ts +5 -0
  681. package/umd/Options/Interfaces/Interactivity/Modes/ISlow.js +12 -0
  682. package/umd/Options/Interfaces/Interactivity/Modes/ITrail.d.ts +8 -0
  683. package/umd/Options/Interfaces/Interactivity/Modes/ITrail.js +12 -0
  684. package/umd/Options/Interfaces/Motion/IMotion.d.ts +5 -0
  685. package/umd/Options/Interfaces/Motion/IMotion.js +12 -0
  686. package/umd/Options/Interfaces/Motion/IMotionReduce.d.ts +4 -0
  687. package/umd/Options/Interfaces/Motion/IMotionReduce.js +12 -0
  688. package/umd/Options/Interfaces/Particles/Bounce/IBounce.d.ts +5 -0
  689. package/umd/Options/Interfaces/Particles/Bounce/IBounce.js +12 -0
  690. package/umd/Options/Interfaces/Particles/Collisions/ICollisions.d.ts +9 -0
  691. package/umd/Options/Interfaces/Particles/Collisions/ICollisions.js +12 -0
  692. package/umd/Options/Interfaces/Particles/Collisions/ICollisionsOverlap.d.ts +4 -0
  693. package/umd/Options/Interfaces/Particles/Collisions/ICollisionsOverlap.js +12 -0
  694. package/umd/Options/Interfaces/Particles/Destroy/IDestroy.d.ts +6 -0
  695. package/umd/Options/Interfaces/Particles/Destroy/IDestroy.js +12 -0
  696. package/umd/Options/Interfaces/Particles/Destroy/ISplit.d.ts +10 -0
  697. package/umd/Options/Interfaces/Particles/Destroy/ISplit.js +12 -0
  698. package/umd/Options/Interfaces/Particles/IParticles.d.ts +52 -0
  699. package/umd/Options/Interfaces/Particles/IParticles.js +12 -0
  700. package/umd/Options/Interfaces/Particles/IShadow.d.ts +8 -0
  701. package/umd/Options/Interfaces/Particles/IShadow.js +12 -0
  702. package/umd/Options/Interfaces/Particles/IStroke.d.ts +7 -0
  703. package/umd/Options/Interfaces/Particles/IStroke.js +12 -0
  704. package/umd/Options/Interfaces/Particles/Life/ILife.d.ts +7 -0
  705. package/umd/Options/Interfaces/Particles/Life/ILife.js +12 -0
  706. package/umd/Options/Interfaces/Particles/Life/ILifeDelay.d.ts +4 -0
  707. package/umd/Options/Interfaces/Particles/Life/ILifeDelay.js +12 -0
  708. package/umd/Options/Interfaces/Particles/Life/ILifeDuration.d.ts +4 -0
  709. package/umd/Options/Interfaces/Particles/Life/ILifeDuration.js +12 -0
  710. package/umd/Options/Interfaces/Particles/Links/ILinks.d.ts +17 -0
  711. package/umd/Options/Interfaces/Particles/Links/ILinks.js +12 -0
  712. package/umd/Options/Interfaces/Particles/Links/ILinksShadow.d.ts +6 -0
  713. package/umd/Options/Interfaces/Particles/Links/ILinksShadow.js +12 -0
  714. package/umd/Options/Interfaces/Particles/Links/ILinksTriangle.d.ts +7 -0
  715. package/umd/Options/Interfaces/Particles/Links/ILinksTriangle.js +12 -0
  716. package/umd/Options/Interfaces/Particles/Move/IAttract.d.ts +8 -0
  717. package/umd/Options/Interfaces/Particles/Move/IAttract.js +12 -0
  718. package/umd/Options/Interfaces/Particles/Move/IMove.d.ts +35 -0
  719. package/umd/Options/Interfaces/Particles/Move/IMove.js +12 -0
  720. package/umd/Options/Interfaces/Particles/Move/IMoveAngle.d.ts +4 -0
  721. package/umd/Options/Interfaces/Particles/Move/IMoveAngle.js +12 -0
  722. package/umd/Options/Interfaces/Particles/Move/IMoveGravity.d.ts +6 -0
  723. package/umd/Options/Interfaces/Particles/Move/IMoveGravity.js +12 -0
  724. package/umd/Options/Interfaces/Particles/Move/IOutModes.d.ts +8 -0
  725. package/umd/Options/Interfaces/Particles/Move/IOutModes.js +12 -0
  726. package/umd/Options/Interfaces/Particles/Move/ISpin.d.ts +7 -0
  727. package/umd/Options/Interfaces/Particles/Move/ISpin.js +12 -0
  728. package/umd/Options/Interfaces/Particles/Move/ITrail.d.ts +6 -0
  729. package/umd/Options/Interfaces/Particles/Move/ITrail.js +12 -0
  730. package/umd/Options/Interfaces/Particles/Move/Path/IPath.d.ts +9 -0
  731. package/umd/Options/Interfaces/Particles/Move/Path/IPath.js +12 -0
  732. package/umd/Options/Interfaces/Particles/Number/IDensity.d.ts +6 -0
  733. package/umd/Options/Interfaces/Particles/Number/IDensity.js +12 -0
  734. package/umd/Options/Interfaces/Particles/Number/IParticlesNumber.d.ts +7 -0
  735. package/umd/Options/Interfaces/Particles/Number/IParticlesNumber.js +12 -0
  736. package/umd/Options/Interfaces/Particles/Opacity/IOpacity.d.ts +6 -0
  737. package/umd/Options/Interfaces/Particles/Opacity/IOpacity.js +12 -0
  738. package/umd/Options/Interfaces/Particles/Opacity/IOpacityAnimation.d.ts +8 -0
  739. package/umd/Options/Interfaces/Particles/Opacity/IOpacityAnimation.js +12 -0
  740. package/umd/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +12 -0
  741. package/umd/Options/Interfaces/Particles/Orbit/IOrbit.js +12 -0
  742. package/umd/Options/Interfaces/Particles/Repulse/IRepulse.d.ts +8 -0
  743. package/umd/Options/Interfaces/Particles/Repulse/IRepulse.js +12 -0
  744. package/umd/Options/Interfaces/Particles/Roll/IRoll.d.ts +12 -0
  745. package/umd/Options/Interfaces/Particles/Roll/IRoll.js +12 -0
  746. package/umd/Options/Interfaces/Particles/Roll/IRollLight.d.ts +4 -0
  747. package/umd/Options/Interfaces/Particles/Roll/IRollLight.js +12 -0
  748. package/umd/Options/Interfaces/Particles/Rotate/IRotate.d.ts +8 -0
  749. package/umd/Options/Interfaces/Particles/Rotate/IRotate.js +12 -0
  750. package/umd/Options/Interfaces/Particles/Rotate/IRotateAnimation.d.ts +5 -0
  751. package/umd/Options/Interfaces/Particles/Rotate/IRotateAnimation.js +12 -0
  752. package/umd/Options/Interfaces/Particles/Shape/ICharacterShape.d.ts +8 -0
  753. package/umd/Options/Interfaces/Particles/Shape/ICharacterShape.js +12 -0
  754. package/umd/Options/Interfaces/Particles/Shape/IImageShape.d.ts +8 -0
  755. package/umd/Options/Interfaces/Particles/Shape/IImageShape.js +12 -0
  756. package/umd/Options/Interfaces/Particles/Shape/IPolygonShape.d.ts +5 -0
  757. package/umd/Options/Interfaces/Particles/Shape/IPolygonShape.js +12 -0
  758. package/umd/Options/Interfaces/Particles/Shape/IShape.d.ts +16 -0
  759. package/umd/Options/Interfaces/Particles/Shape/IShape.js +12 -0
  760. package/umd/Options/Interfaces/Particles/Shape/IShapeValues.d.ts +1 -0
  761. package/umd/Options/Interfaces/Particles/Shape/IShapeValues.js +23 -0
  762. package/umd/Options/Interfaces/Particles/Shape/IStarShape.d.ts +6 -0
  763. package/umd/Options/Interfaces/Particles/Shape/IStarShape.js +12 -0
  764. package/umd/Options/Interfaces/Particles/Size/ISize.d.ts +6 -0
  765. package/umd/Options/Interfaces/Particles/Size/ISize.js +12 -0
  766. package/umd/Options/Interfaces/Particles/Size/ISizeAnimation.d.ts +8 -0
  767. package/umd/Options/Interfaces/Particles/Size/ISizeAnimation.js +12 -0
  768. package/umd/Options/Interfaces/Particles/Tilt/ITilt.d.ts +8 -0
  769. package/umd/Options/Interfaces/Particles/Tilt/ITilt.js +12 -0
  770. package/umd/Options/Interfaces/Particles/Tilt/ITiltAnimation.d.ts +5 -0
  771. package/umd/Options/Interfaces/Particles/Tilt/ITiltAnimation.js +12 -0
  772. package/umd/Options/Interfaces/Particles/Twinkle/ITwinkle.d.ts +5 -0
  773. package/umd/Options/Interfaces/Particles/Twinkle/ITwinkle.js +12 -0
  774. package/umd/Options/Interfaces/Particles/Twinkle/ITwinkleValues.d.ts +7 -0
  775. package/umd/Options/Interfaces/Particles/Twinkle/ITwinkleValues.js +12 -0
  776. package/umd/Options/Interfaces/Particles/Wobble/IWobble.d.ts +6 -0
  777. package/umd/Options/Interfaces/Particles/Wobble/IWobble.js +12 -0
  778. package/umd/Options/Interfaces/Particles/ZIndex/IZIndex.d.ts +6 -0
  779. package/umd/Options/Interfaces/Particles/ZIndex/IZIndex.js +12 -0
  780. package/umd/Options/Interfaces/Theme/ITheme.d.ts +8 -0
  781. package/umd/Options/Interfaces/Theme/ITheme.js +12 -0
  782. package/umd/Options/Interfaces/Theme/IThemeDefault.d.ts +6 -0
  783. package/umd/Options/Interfaces/Theme/IThemeDefault.js +12 -0
  784. package/umd/Plugins/Absorbers/AbsorberContainer.d.ts +7 -0
  785. package/umd/Plugins/Absorbers/AbsorberContainer.js +12 -0
  786. package/umd/Plugins/Absorbers/AbsorberInstance.d.ts +33 -0
  787. package/umd/Plugins/Absorbers/AbsorberInstance.js +172 -0
  788. package/umd/Plugins/Absorbers/Absorbers.d.ts +22 -0
  789. package/umd/Plugins/Absorbers/Absorbers.js +128 -0
  790. package/umd/Plugins/Absorbers/Enums/AbsorberClickMode.d.ts +3 -0
  791. package/umd/Plugins/Absorbers/Enums/AbsorberClickMode.js +12 -0
  792. package/umd/Plugins/Absorbers/Enums/index.d.ts +1 -0
  793. package/umd/Plugins/Absorbers/Enums/index.js +23 -0
  794. package/umd/Plugins/Absorbers/Options/Classes/Absorber.d.ts +18 -0
  795. package/umd/Plugins/Absorbers/Options/Classes/Absorber.js +57 -0
  796. package/umd/Plugins/Absorbers/Options/Classes/AbsorberSize.d.ts +11 -0
  797. package/umd/Plugins/Absorbers/Options/Classes/AbsorberSize.js +40 -0
  798. package/umd/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.d.ts +9 -0
  799. package/umd/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.js +31 -0
  800. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +13 -0
  801. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorber.js +12 -0
  802. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +12 -0
  803. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.js +12 -0
  804. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.d.ts +6 -0
  805. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.js +12 -0
  806. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberSizeLimit.d.ts +4 -0
  807. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberSizeLimit.js +12 -0
  808. package/umd/Plugins/Absorbers/index.d.ts +2 -0
  809. package/umd/Plugins/Absorbers/index.js +90 -0
  810. package/umd/Plugins/Emitters/EmitterContainer.d.ts +10 -0
  811. package/umd/Plugins/Emitters/EmitterContainer.js +12 -0
  812. package/umd/Plugins/Emitters/EmitterInstance.d.ts +45 -0
  813. package/umd/Plugins/Emitters/EmitterInstance.js +278 -0
  814. package/umd/Plugins/Emitters/Emitters.d.ts +25 -0
  815. package/umd/Plugins/Emitters/Emitters.js +163 -0
  816. package/umd/Plugins/Emitters/EmittersEngine.d.ts +7 -0
  817. package/umd/Plugins/Emitters/EmittersEngine.js +12 -0
  818. package/umd/Plugins/Emitters/Enums/EmitterClickMode.d.ts +3 -0
  819. package/umd/Plugins/Emitters/Enums/EmitterClickMode.js +12 -0
  820. package/umd/Plugins/Emitters/Enums/EmitterShapeType.d.ts +4 -0
  821. package/umd/Plugins/Emitters/Enums/EmitterShapeType.js +12 -0
  822. package/umd/Plugins/Emitters/Enums/index.d.ts +2 -0
  823. package/umd/Plugins/Emitters/Enums/index.js +24 -0
  824. package/umd/Plugins/Emitters/IEmitterShape.d.ts +4 -0
  825. package/umd/Plugins/Emitters/IEmitterShape.js +12 -0
  826. package/umd/Plugins/Emitters/Options/Classes/Emitter.d.ts +28 -0
  827. package/umd/Plugins/Emitters/Options/Classes/Emitter.js +74 -0
  828. package/umd/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +11 -0
  829. package/umd/Plugins/Emitters/Options/Classes/EmitterLife.js +36 -0
  830. package/umd/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +9 -0
  831. package/umd/Plugins/Emitters/Options/Classes/EmitterRate.js +32 -0
  832. package/umd/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +11 -0
  833. package/umd/Plugins/Emitters/Options/Classes/EmitterSize.js +35 -0
  834. package/umd/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +24 -0
  835. package/umd/Plugins/Emitters/Options/Interfaces/IEmitter.js +12 -0
  836. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterLife.d.ts +6 -0
  837. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterLife.js +12 -0
  838. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +12 -0
  839. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterOptions.js +12 -0
  840. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterRate.d.ts +5 -0
  841. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterRate.js +12 -0
  842. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +5 -0
  843. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterSize.js +12 -0
  844. package/umd/Plugins/Emitters/ShapeManager.d.ts +9 -0
  845. package/umd/Plugins/Emitters/ShapeManager.js +40 -0
  846. package/umd/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +5 -0
  847. package/umd/Plugins/Emitters/Shapes/Circle/CircleShape.js +42 -0
  848. package/umd/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +5 -0
  849. package/umd/Plugins/Emitters/Shapes/Square/SquareShape.js +53 -0
  850. package/umd/Plugins/Emitters/index.d.ts +3 -0
  851. package/umd/Plugins/Emitters/index.js +120 -0
  852. package/umd/Plugins/PolygonMask/Enums/PolygonMaskInlineArrangement.d.ts +8 -0
  853. package/umd/Plugins/PolygonMask/Enums/PolygonMaskInlineArrangement.js +12 -0
  854. package/umd/Plugins/PolygonMask/Enums/PolygonMaskMoveType.d.ts +4 -0
  855. package/umd/Plugins/PolygonMask/Enums/PolygonMaskMoveType.js +12 -0
  856. package/umd/Plugins/PolygonMask/Enums/PolygonMaskType.d.ts +6 -0
  857. package/umd/Plugins/PolygonMask/Enums/PolygonMaskType.js +12 -0
  858. package/umd/Plugins/PolygonMask/Enums/index.d.ts +3 -0
  859. package/umd/Plugins/PolygonMask/Enums/index.js +25 -0
  860. package/umd/Plugins/PolygonMask/Interfaces/ISvgPath.d.ts +6 -0
  861. package/umd/Plugins/PolygonMask/Interfaces/ISvgPath.js +12 -0
  862. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +24 -0
  863. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMask.js +76 -0
  864. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.d.ts +15 -0
  865. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.js +48 -0
  866. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.d.ts +11 -0
  867. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.js +39 -0
  868. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +9 -0
  869. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.js +27 -0
  870. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +11 -0
  871. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.js +39 -0
  872. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +10 -0
  873. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.js +31 -0
  874. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +18 -0
  875. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.js +12 -0
  876. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +8 -0
  877. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.js +12 -0
  878. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.d.ts +6 -0
  879. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.js +12 -0
  880. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.d.ts +4 -0
  881. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.js +12 -0
  882. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.d.ts +6 -0
  883. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.js +12 -0
  884. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.d.ts +5 -0
  885. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.js +12 -0
  886. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskOptions.d.ts +4 -0
  887. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskOptions.js +12 -0
  888. package/umd/Plugins/PolygonMask/PolygonMaskInstance.d.ts +38 -0
  889. package/umd/Plugins/PolygonMask/PolygonMaskInstance.js +396 -0
  890. package/umd/Plugins/PolygonMask/Types.d.ts +8 -0
  891. package/umd/Plugins/PolygonMask/Types.js +12 -0
  892. package/umd/Plugins/PolygonMask/Utils.d.ts +11 -0
  893. package/umd/Plugins/PolygonMask/Utils.js +134 -0
  894. package/umd/Plugins/PolygonMask/index.d.ts +2 -0
  895. package/umd/Plugins/PolygonMask/index.js +67 -0
  896. package/umd/Plugins/PolygonMask/pathseg.d.ts +0 -0
  897. package/umd/Plugins/PolygonMask/pathseg.js +1548 -0
  898. package/umd/Shapes/Circle/CircleDrawer.d.ts +5 -0
  899. package/umd/Shapes/Circle/CircleDrawer.js +22 -0
  900. package/umd/Shapes/Circle/index.d.ts +2 -0
  901. package/umd/Shapes/Circle/index.js +18 -0
  902. package/umd/Shapes/Image/ImageDrawer.d.ts +18 -0
  903. package/umd/Shapes/Image/ImageDrawer.js +142 -0
  904. package/umd/Shapes/Image/Utils.d.ts +28 -0
  905. package/umd/Shapes/Image/Utils.js +99 -0
  906. package/umd/Shapes/Image/index.d.ts +2 -0
  907. package/umd/Shapes/Image/index.js +20 -0
  908. package/umd/Shapes/Line/LineDrawer.d.ts +5 -0
  909. package/umd/Shapes/Line/LineDrawer.js +23 -0
  910. package/umd/Shapes/Line/index.d.ts +2 -0
  911. package/umd/Shapes/Line/index.js +18 -0
  912. package/umd/Shapes/Polygon/PolygonDrawer.d.ts +7 -0
  913. package/umd/Shapes/Polygon/PolygonDrawer.js +36 -0
  914. package/umd/Shapes/Polygon/PolygonDrawerBase.d.ts +15 -0
  915. package/umd/Shapes/Polygon/PolygonDrawerBase.js +40 -0
  916. package/umd/Shapes/Polygon/TriangleDrawer.d.ts +8 -0
  917. package/umd/Shapes/Polygon/TriangleDrawer.js +35 -0
  918. package/umd/Shapes/Polygon/index.d.ts +4 -0
  919. package/umd/Shapes/Polygon/index.js +28 -0
  920. package/umd/Shapes/Square/SquareDrawer.d.ts +5 -0
  921. package/umd/Shapes/Square/SquareDrawer.js +23 -0
  922. package/umd/Shapes/Square/index.d.ts +2 -0
  923. package/umd/Shapes/Square/index.js +20 -0
  924. package/umd/Shapes/Star/StarDrawer.d.ts +5 -0
  925. package/umd/Shapes/Star/StarDrawer.js +34 -0
  926. package/umd/Shapes/Star/index.d.ts +2 -0
  927. package/umd/Shapes/Star/index.js +18 -0
  928. package/umd/Shapes/Text/TextDrawer.d.ts +7 -0
  929. package/umd/Shapes/Text/TextDrawer.js +75 -0
  930. package/umd/Shapes/Text/index.d.ts +2 -0
  931. package/umd/Shapes/Text/index.js +21 -0
  932. package/umd/Types/ParticlesGroups.d.ts +4 -0
  933. package/umd/Types/ParticlesGroups.js +12 -0
  934. package/umd/Types/PathOptions.d.ts +3 -0
  935. package/umd/Types/PathOptions.js +12 -0
  936. package/umd/Types/RangeValue.d.ts +2 -0
  937. package/umd/Types/RangeValue.js +12 -0
  938. package/umd/Types/RecursivePartial.d.ts +3 -0
  939. package/umd/Types/RecursivePartial.js +12 -0
  940. package/umd/Types/ShapeData.d.ts +5 -0
  941. package/umd/Types/ShapeData.js +12 -0
  942. package/umd/Types/ShapeDrawerFunctions.d.ts +11 -0
  943. package/umd/Types/ShapeDrawerFunctions.js +12 -0
  944. package/umd/Types/SingleOrMultiple.d.ts +1 -0
  945. package/umd/Types/SingleOrMultiple.js +12 -0
  946. package/umd/Types/index.d.ts +6 -0
  947. package/umd/Types/index.js +28 -0
  948. package/umd/Updaters/Angle/AngleUpdater.d.ts +8 -0
  949. package/umd/Updaters/Angle/AngleUpdater.js +88 -0
  950. package/umd/Updaters/Angle/index.d.ts +2 -0
  951. package/umd/Updaters/Angle/index.js +18 -0
  952. package/umd/Updaters/Color/ColorUpdater.d.ts +8 -0
  953. package/umd/Updaters/Color/ColorUpdater.js +77 -0
  954. package/umd/Updaters/Color/index.d.ts +2 -0
  955. package/umd/Updaters/Color/index.js +18 -0
  956. package/umd/Updaters/Life/LifeUpdater.d.ts +8 -0
  957. package/umd/Updaters/Life/LifeUpdater.js +77 -0
  958. package/umd/Updaters/Life/index.d.ts +2 -0
  959. package/umd/Updaters/Life/index.js +18 -0
  960. package/umd/Updaters/Opacity/OpacityUpdater.d.ts +8 -0
  961. package/umd/Updaters/Opacity/OpacityUpdater.js +131 -0
  962. package/umd/Updaters/Opacity/index.d.ts +2 -0
  963. package/umd/Updaters/Opacity/index.js +18 -0
  964. package/umd/Updaters/OutModes/IBounceData.d.ts +11 -0
  965. package/umd/Updaters/OutModes/IBounceData.js +12 -0
  966. package/umd/Updaters/OutModes/OutOfCanvasUpdater.d.ts +13 -0
  967. package/umd/Updaters/OutModes/OutOfCanvasUpdater.js +156 -0
  968. package/umd/Updaters/OutModes/Utils.d.ts +3 -0
  969. package/umd/Updaters/OutModes/Utils.js +75 -0
  970. package/umd/Updaters/OutModes/index.d.ts +2 -0
  971. package/umd/Updaters/OutModes/index.js +18 -0
  972. package/umd/Updaters/Roll/RollUpdater.d.ts +6 -0
  973. package/umd/Updaters/Roll/RollUpdater.js +73 -0
  974. package/umd/Updaters/Roll/index.d.ts +2 -0
  975. package/umd/Updaters/Roll/index.js +18 -0
  976. package/umd/Updaters/Size/SizeUpdater.d.ts +6 -0
  977. package/umd/Updaters/Size/SizeUpdater.js +88 -0
  978. package/umd/Updaters/Size/index.d.ts +2 -0
  979. package/umd/Updaters/Size/index.js +18 -0
  980. package/umd/Updaters/StrokeColor/StrokeColorUpdater.d.ts +8 -0
  981. package/umd/Updaters/StrokeColor/StrokeColorUpdater.js +94 -0
  982. package/umd/Updaters/StrokeColor/index.d.ts +2 -0
  983. package/umd/Updaters/StrokeColor/index.js +18 -0
  984. package/umd/Updaters/Tilt/TiltUpdater.d.ts +8 -0
  985. package/umd/Updaters/Tilt/TiltUpdater.js +89 -0
  986. package/umd/Updaters/Tilt/index.d.ts +2 -0
  987. package/umd/Updaters/Tilt/index.js +18 -0
  988. package/umd/Updaters/Wobble/WobbleUpdater.d.ts +14 -0
  989. package/umd/Updaters/Wobble/WobbleUpdater.js +61 -0
  990. package/umd/Updaters/Wobble/index.d.ts +2 -0
  991. package/umd/Updaters/Wobble/index.js +18 -0
  992. package/umd/Utils/CanvasUtils.d.ts +19 -0
  993. package/umd/Utils/CanvasUtils.js +297 -0
  994. package/umd/Utils/ColorUtils.d.ts +26 -0
  995. package/umd/Utils/ColorUtils.js +486 -0
  996. package/umd/Utils/NumberUtils.d.ts +23 -0
  997. package/umd/Utils/NumberUtils.js +138 -0
  998. package/umd/Utils/Utils.d.ts +38 -0
  999. package/umd/Utils/Utils.js +279 -0
  1000. package/umd/Utils/index.d.ts +4 -0
  1001. package/umd/Utils/index.js +26 -0
  1002. package/umd/engine.d.ts +26 -0
  1003. package/umd/engine.js +108 -0
  1004. package/umd/full.d.ts +2 -0
  1005. package/umd/full.js +32 -0
  1006. package/umd/index.d.ts +20 -0
  1007. package/umd/index.engine.d.ts +13 -0
  1008. package/umd/index.engine.js +37 -0
  1009. package/umd/index.js +43 -0
  1010. package/umd/index.slim.d.ts +14 -0
  1011. package/umd/index.slim.js +40 -0
  1012. package/umd/pjs.d.ts +14 -0
  1013. package/umd/pjs.js +36 -0
  1014. package/umd/slim.d.ts +2 -0
  1015. package/umd/slim.js +62 -0
@@ -1,2 +1,2 @@
1
- /*! tsParticles v1.40.2 by Matteo Bruni */
2
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var s in i)("object"==typeof exports?exports:t)[s]=i[s]}}(window,(function(){return function(){"use strict";var t={d:function(e,i){for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function i(t,e,i){return Math.min(Math.max(t,e),i)}function s(t,e,i,s){return Math.floor((t*i+e*s)/(i+s))}function o(t){const e=r(t);let i=a(t);return e===i&&(i=0),Math.random()*(e-i)+i}function n(t){return"number"==typeof t?t:o(t)}function a(t){return"number"==typeof t?t:t.min}function r(t){return"number"==typeof t?t:t.max}function l(t,e){if(t===e||void 0===e&&"number"==typeof t)return t;const i=a(t),s=r(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(s,e)}:l(i,s)}function c(t){const e=t.random,{enable:i,minimumValue:s}="boolean"==typeof e?{enable:e,minimumValue:0}:e;return n(i?l(t.value,s):t.value)}function h(t,e){const i=t.x-e.x,s=t.y-e.y;return{dx:i,dy:s,distance:Math.sqrt(i*i+s*s)}}function d(t,e){return h(t,e).distance}function u(t){if("number"==typeof t)return t*Math.PI/180;switch(t){case"top":return-Math.PI/2;case"top-right":return-Math.PI/4;case"right":return 0;case"bottom-right":return Math.PI/4;case"bottom":return Math.PI/2;case"bottom-left":return 3*Math.PI/4;case"left":return Math.PI;case"top-left":return-3*Math.PI/4;case"none":default:return Math.random()*Math.PI*2}}function v(t){const e=jt.origin;return e.length=1,e.angle=t,e}function p(t,e,i,s){return jt.create(t.x*(i-s)/(i+s)+2*e.x*s/(i+s),t.y)}function f(t,e){switch(e){case"ease-out-quad":return 1-(1-t)**2;case"ease-out-cubic":return 1-(1-t)**3;case"ease-out-quart":return 1-(1-t)**4;case"ease-out-quint":return 1-(1-t)**5;case"ease-out-expo":return 1===t?1:1-Math.pow(2,-10*t);case"ease-out-sine":return Math.sin(t*Math.PI/2);case"ease-out-back":{const e=1.70158;return 1+(e+1)*Math.pow(t-1,3)+e*Math.pow(t-1,2)}case"ease-out-circ":return Math.sqrt(1-Math.pow(t-1,2));default:return t}}function m(t,e,i,s,o,n){const a={bounced:!1};return e.min>=s.min&&e.min<=s.max&&e.max>=s.min&&e.max<=s.max&&(t.max>=i.min&&t.max<=(i.max+i.min)/2&&o>0||t.min<=i.max&&t.min>(i.max+i.min)/2&&o<0)&&(a.velocity=o*-n,a.bounced=!0),a}function y(t,e){if(e instanceof Array){for(const i of e)if(t.matches(i))return!0;return!1}return t.matches(e)}function g(){return"undefined"==typeof window||!window||void 0===window.document||!window.document}function w(){return g()?t=>setTimeout(t):t=>(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||window.setTimeout)(t)}function b(){return g()?t=>clearTimeout(t):t=>(window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||window.clearTimeout)(t)}function x(t,e){return t===e||e instanceof Array&&e.indexOf(t)>-1}async function k(t){var e,i;try{await document.fonts.load(`${null!==(e=t.weight)&&void 0!==e?e:"400"} 36px '${null!==(i=t.font)&&void 0!==i?i:"Verdana"}'`)}catch(t){}}function M(t){return Math.floor(Math.random()*t.length)}function z(t,e,i=!0){return t[void 0!==e&&i?e%t.length:M(t)]}function P(t,e,i,s){return C(T(t,null!=i?i:0),e,s)}function C(t,e,i){let s=!0;return i&&"bottom"!==i||(s=t.top<e.height),!s||i&&"left"!==i||(s=t.right>0),!s||i&&"right"!==i||(s=t.left<e.width),!s||i&&"top"!==i||(s=t.bottom>0),s}function T(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function S(t,...e){for(const i of e){if(null==i)continue;if("object"!=typeof i){t=i;continue}const e=Array.isArray(i);!e||"object"==typeof t&&t&&Array.isArray(t)?e||"object"==typeof t&&t&&!Array.isArray(t)||(t={}):t=[];for(const e in i){if("__proto__"===e)continue;const s=i[e],o="object"==typeof s,n=t;n[e]=o&&Array.isArray(s)?s.map((t=>S(n[e],t))):S(n[e],s)}}return t}function O(t,e){return e instanceof Array?!!e.find((e=>e.enable&&x(t,e.mode))):x(t,e.mode)}function I(t,e,i){if(e instanceof Array)for(const s of e){const e=s.mode;s.enable&&x(t,e)&&E(s,i)}else{const s=e.mode;e.enable&&x(t,s)&&E(e,i)}}function E(t,e){const i=t.selectors;if(i instanceof Array)for(const s of i)e(s,t);else e(i,t)}function R(t,e){if(e&&t)return t instanceof Array?t.find((t=>y(e,t.selectors))):y(e,t.selectors)?t:void 0}function A(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:jt.create(c(t.options.bounce.horizontal),c(t.options.bounce.vertical))}}function D(t,e){const{x:i,y:s}=t.velocity.sub(e.velocity),[o,n]=[t.position,e.position],{dx:a,dy:r}=h(n,o);if(i*a+s*r>=0){const i=-Math.atan2(r,a),s=t.mass,o=e.mass,n=t.velocity.rotate(i),l=e.velocity.rotate(i),c=p(n,l,s,o),h=p(l,n,s,o),d=c.rotate(-i),u=h.rotate(-i);t.velocity.x=d.x*t.factor.x,t.velocity.y=d.y*t.factor.y,e.velocity.x=u.x*e.factor.x,e.velocity.y=u.y*e.factor.y}}function F(t,e){const i=T(t.getPosition(),t.getRadius()),s=m({min:i.left,max:i.right},{min:i.top,max:i.bottom},{min:e.left,max:e.right},{min:e.top,max:e.bottom},t.velocity.x,c(t.options.bounce.horizontal));s.bounced&&(void 0!==s.velocity&&(t.velocity.x=s.velocity),void 0!==s.position&&(t.position.x=s.position));const o=m({min:i.top,max:i.bottom},{min:i.left,max:i.right},{min:e.top,max:e.bottom},{min:e.left,max:e.right},t.velocity.y,c(t.options.bounce.vertical));o.bounced&&(void 0!==o.velocity&&(t.velocity.y=o.velocity),void 0!==o.position&&(t.position.y=o.position))}function L(t,e,i){let s=i;return s<0&&(s+=1),s>1&&(s-=1),s<1/6?t+6*(e-t)*s:s<.5?e:s<2/3?t+(e-t)*(2/3-s)*6:t}function q(t){if(t.startsWith("rgb")){const e=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return e?{a:e.length>4?parseFloat(e[5]):1,b:parseInt(e[3],10),g:parseInt(e[2],10),r:parseInt(e[1],10)}:void 0}if(t.startsWith("hsl")){const e=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return e?j({a:e.length>4?parseFloat(e[5]):1,h:parseInt(e[1],10),l:parseInt(e[3],10),s:parseInt(e[2],10)}):void 0}if(t.startsWith("hsv")){const e=/hsva?\(\s*(\d+)°\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return e?U({a:e.length>4?parseFloat(e[5]):1,h:parseInt(e[1],10),s:parseInt(e[2],10),v:parseInt(e[3],10)}):void 0}{const e=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,i=t.replace(e,((t,e,i,s,o)=>e+e+i+i+s+s+(void 0!==o?o+o:""))),s=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(i);return s?{a:void 0!==s[4]?parseInt(s[4],16)/255:1,b:parseInt(s[3],16),g:parseInt(s[2],16),r:parseInt(s[1],16)}:void 0}}function H(t,e,i=!0){var s,o,n;if(void 0===t)return;const a="string"==typeof t?{value:t}:t;let r;if("string"==typeof a.value)r=a.value===St.randomColorValue?K():B(a.value);else if(a.value instanceof Array){r=H({value:z(a.value,e,i)})}else{const t=a.value,e=null!==(s=t.rgb)&&void 0!==s?s:a.value;if(void 0!==e.r)r=e;else{const e=null!==(o=t.hsl)&&void 0!==o?o:a.value;if(void 0!==e.h&&void 0!==e.l)r=G(e);else{const e=null!==(n=t.hsv)&&void 0!==n?n:a.value;void 0!==e.h&&void 0!==e.v&&(r=Y(e))}}}return r}function V(t,e,i=!0){const s=H(t,e,i);return void 0!==s?_(s):void 0}function _(t){const e=t.r/255,i=t.g/255,s=t.b/255,o=Math.max(e,i,s),n=Math.min(e,i,s),a={h:0,l:(o+n)/2,s:0};return o!=n&&(a.s=a.l<.5?(o-n)/(o+n):(o-n)/(2-o-n),a.h=e===o?(i-s)/(o-n):a.h=i===o?2+(s-e)/(o-n):4+(e-i)/(o-n)),a.l*=100,a.s*=100,a.h*=60,a.h<0&&(a.h+=360),a}function W(t){var e;return null===(e=q(t))||void 0===e?void 0:e.a}function B(t){return q(t)}function G(t){const e={b:0,g:0,r:0},i={h:t.h/360,l:t.l/100,s:t.s/100};if(0===i.s)e.b=i.l,e.g=i.l,e.r=i.l;else{const t=i.l<.5?i.l*(1+i.s):i.l+i.s-i.l*i.s,s=2*i.l-t;e.r=L(s,t,i.h+1/3),e.g=L(s,t,i.h),e.b=L(s,t,i.h-1/3)}return e.r=Math.floor(255*e.r),e.g=Math.floor(255*e.g),e.b=Math.floor(255*e.b),e}function j(t){const e=G(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function $(t){const e=t.l/100,i=e+t.s/100*Math.min(e,1-e),s=i?2*(1-e/i):0;return{h:t.h,s:100*s,v:100*i}}function J(t){const e=$(t);return{a:t.a,h:e.h,s:e.s,v:e.v}}function N(t){const e=t.v/100,i=e*(1-t.s/100/2),s=0===i||1===i?0:(e-i)/Math.min(i,1-i);return{h:t.h,l:100*i,s:100*s}}function X(t){const e=N(t);return{a:t.a,h:e.h,l:e.l,s:e.s}}function Y(t){const e={b:0,g:0,r:0},i=t.h/60,s=t.s/100,o=t.v/100,n=o*s,a=n*(1-Math.abs(i%2-1));let r;if(i>=0&&i<=1?r={r:n,g:a,b:0}:i>1&&i<=2?r={r:a,g:n,b:0}:i>2&&i<=3?r={r:0,g:n,b:a}:i>3&&i<=4?r={r:0,g:a,b:n}:i>4&&i<=5?r={r:a,g:0,b:n}:i>5&&i<=6&&(r={r:n,g:0,b:a}),r){const t=o-n;e.r=Math.floor(255*(r.r+t)),e.g=Math.floor(255*(r.g+t)),e.b=Math.floor(255*(r.b+t))}return e}function U(t){const e=Y(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function Q(t){const e={r:t.r/255,g:t.g/255,b:t.b/255},i=Math.max(e.r,e.g,e.b),s=i-Math.min(e.r,e.g,e.b);let o=0;i===e.r?o=(e.g-e.b)/s*60:i===e.g?o=60*(2+(e.b-e.r)/s):i===e.b&&(o=60*(4+(e.r-e.g)/s));return{h:o,s:100*(i?s/i:0),v:100*i}}function Z(t){const e=Q(t);return{a:t.a,h:e.h,s:e.s,v:e.v}}function K(t){const e=null!=t?t:0;return{b:Math.floor(o(l(e,256))),g:Math.floor(o(l(e,256))),r:Math.floor(o(l(e,256)))}}function tt(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${null!=e?e:1})`}function et(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${null!=e?e:1})`}function it(t,e){return et(N(t),e)}function st(t,e,i,o){let n=t,a=e;return void 0===n.r&&(n=G(t)),void 0===a.r&&(a=G(e)),{b:s(n.b,a.b,i,o),g:s(n.g,a.g,i,o),r:s(n.r,a.r,i,o)}}function ot(t,e,i){var s,o;if(i===St.randomColorValue)return K();if("mid"!==i)return i;{const i=null!==(s=t.getFillColor())&&void 0!==s?s:t.getStrokeColor(),n=null!==(o=null==e?void 0:e.getFillColor())&&void 0!==o?o:null==e?void 0:e.getStrokeColor();if(i&&n&&e)return st(i,n,t.getRadius(),e.getRadius());{const t=null!=i?i:n;if(t)return G(t)}}}function nt(t,e,i){const s="string"==typeof t?t:t.value;return s===St.randomColorValue?i?H({value:s}):e?St.randomColorValue:St.midColorValue:H({value:s})}function at(t){return void 0!==t?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function rt(t,e,i){const s={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(lt(s.h,e.h,i),lt(s.s,e.s,i),lt(s.l,e.l,i)),s}function lt(t,e,i){if(t.enable=e.enable,t.enable){if(t.velocity=e.speed/100*i,e.sync)return;t.status=0,t.velocity*=Math.random(),t.value&&(t.value*=Math.random())}else t.velocity=0}function ct(t,e,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.closePath()}function ht(t,e,i){t.save(),t.fillStyle=null!=i?i:"rgba(0,0,0,0)",t.fillRect(0,0,e.width,e.height),t.restore()}function dt(t,e){t.clearRect(0,0,e.width,e.height)}function ut(t,e,i,s,o,n,a,r,l,c,u,v){let p=!1;if(d(i,s)<=o)ct(t,i,s),p=!0;else if(a){let e,a;const r=h(i,{x:s.x-n.width,y:s.y});if(r.distance<=o){const t=i.y-r.dy/r.dx*i.x;e={x:0,y:t},a={x:n.width,y:t}}else{const t=h(i,{x:s.x,y:s.y-n.height});if(t.distance<=o){const s=-(i.y-t.dy/t.dx*i.x)/(t.dy/t.dx);e={x:s,y:0},a={x:s,y:n.height}}else{const t=h(i,{x:s.x-n.width,y:s.y-n.height});if(t.distance<=o){const s=i.y-t.dy/t.dx*i.x;e={x:-s/(t.dy/t.dx),y:s},a={x:e.x+n.width,y:e.y+n.height}}}}e&&a&&(ct(t,i,e),ct(t,s,a),p=!0)}if(p){if(t.lineWidth=e,r&&(t.globalCompositeOperation=l),t.strokeStyle=tt(c,u),v.enable){const e=H(v.color);e&&(t.shadowBlur=v.blur,t.shadowColor=tt(e))}t.stroke()}}function vt(t,e,i,s,o,n,a,r){!function(t,e,i,s){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.lineTo(s.x,s.y),t.closePath()}(t,e,i,s),o&&(t.globalCompositeOperation=n),t.fillStyle=tt(a,r),t.fill()}function pt(t,e,i,s,o){t.save(),ct(t,s,o),t.lineWidth=e,t.strokeStyle=i,t.stroke(),t.restore()}function ft(t,e,i,s){const o=Math.floor(i.getRadius()/e.getRadius()),n=e.getFillColor(),a=i.getFillColor();if(!n||!a)return;const r=e.getPosition(),l=i.getPosition(),c=st(n,a,e.getRadius(),i.getRadius()),h=t.createLinearGradient(r.x,r.y,l.x,l.y);return h.addColorStop(0,et(n,s)),h.addColorStop(o>1?1:o,tt(c,s)),h.addColorStop(1,et(a,s)),h}function mt(t,e,i,s,o,n){t.save(),ct(t,i,s),t.strokeStyle=tt(o,n),t.lineWidth=e,t.stroke(),t.restore()}function yt(t,e,i,s,o,n,a,r,l,c,h,d){var u,v,p,f,m,y;const g=i.getPosition(),w=i.options.tilt,b=i.options.roll;if(e.save(),w.enable||b.enable){const t=b.enable&&i.roll,s=w.enable&&i.tilt,o=t&&("horizontal"===b.mode||"both"===b.mode),n=t&&("vertical"===b.mode||"both"===b.mode);e.setTransform(o?Math.cos(i.roll.angle):1,s?Math.cos(i.tilt.value)*i.tilt.cosDirection:0,s?Math.sin(i.tilt.value)*i.tilt.sinDirection:0,n?Math.sin(i.roll.angle):1,g.x,g.y)}else e.translate(g.x,g.y);e.beginPath();const x=(null!==(v=null===(u=i.rotate)||void 0===u?void 0:u.value)&&void 0!==v?v:0)+(i.options.rotate.path?i.velocity.angle:0);0!==x&&e.rotate(x),a&&(e.globalCompositeOperation=r);const k=i.shadowColor;if(h.enable&&k&&(e.shadowBlur=h.blur,e.shadowColor=tt(k),e.shadowOffsetX=h.offset.x,e.shadowOffsetY=h.offset.y),d){const t=d.angle.value,i="radial"===d.type?e.createRadialGradient(0,0,0,0,0,l):e.createLinearGradient(Math.cos(t)*-l,Math.sin(t)*-l,Math.cos(t)*l,Math.sin(t)*l);for(const t of d.colors)i.addColorStop(t.stop,et({h:t.value.h.value,s:t.value.s.value,l:t.value.l.value},null!==(f=null===(p=t.opacity)||void 0===p?void 0:p.value)&&void 0!==f?f:c));e.fillStyle=i}else o&&(e.fillStyle=o);const M=i.stroke;e.lineWidth=null!==(m=i.strokeWidth)&&void 0!==m?m:0,n&&(e.strokeStyle=n),gt(t,e,i,l,c,s),(null!==(y=null==M?void 0:M.width)&&void 0!==y?y:0)>0&&e.stroke(),i.close&&e.closePath(),i.fill&&e.fill(),e.restore(),e.save(),w.enable&&i.tilt?e.setTransform(1,Math.cos(i.tilt.value)*i.tilt.cosDirection,Math.sin(i.tilt.value)*i.tilt.sinDirection,1,g.x,g.y):e.translate(g.x,g.y),0!==x&&e.rotate(x),a&&(e.globalCompositeOperation=r),wt(t,e,i,l,c,s),e.restore()}function gt(t,e,i,s,o,n){if(!i.shape)return;const a=t.drawers.get(i.shape);a&&a.draw(e,i,s,o,n,t.retina.pixelRatio)}function wt(t,e,i,s,o,n){if(!i.shape)return;const a=t.drawers.get(i.shape);(null==a?void 0:a.afterEffect)&&a.afterEffect(e,i,s,o,n,t.retina.pixelRatio)}function bt(t,e,i){e.draw&&(t.save(),e.draw(t,i),t.restore())}function xt(t,e,i,s){void 0!==e.drawParticle&&(t.save(),e.drawParticle(t,i,s),t.restore())}function kt(t,e,i,s,o,n,a,r,l){const c=e.getPosition();if(i&&(t.strokeStyle=et(i,o)),0===n)return;t.lineWidth=n;const h=a*Math.PI/180;t.beginPath(),t.ellipse(c.x,c.y,s/2,2*s,h,r,l),t.stroke()}function Mt(t,e,i){return{h:t.h,s:t.s,l:t.l+("darken"===e?-1:1)*i}}t.r(e),t.d(e,{Canvas:function(){return Jt},Circle:function(){return Pt},CircleWarp:function(){return Tt},Constants:function(){return St},Container:function(){return ts},Engine:function(){return cs},EventListeners:function(){return It},ExternalInteractorBase:function(){return Et},FrameManager:function(){return Rt},InteractionManager:function(){return Lt},Loader:function(){return os},Main:function(){return cs},Particle:function(){return $i},Particles:function(){return Yi},ParticlesInteractorBase:function(){return qt},ParticlesMover:function(){return Ht},Plugins:function(){return Wt},Point:function(){return Bt},QuadTree:function(){return Gt},Range:function(){return zt},Rectangle:function(){return Ct},Retina:function(){return Ui},Vector:function(){return jt},Vector3d:function(){return $t},alterHsl:function(){return Mt},animate:function(){return w},areBoundsInside:function(){return C},arrayRandomIndex:function(){return M},calcEasing:function(){return f},calculateBounds:function(){return T},cancelAnimation:function(){return b},circleBounce:function(){return D},circleBounceDataFromParticle:function(){return A},clamp:function(){return i},clear:function(){return dt},collisionVelocity:function(){return p},colorMix:function(){return st},colorToHsl:function(){return V},colorToRgb:function(){return H},deepExtend:function(){return S},divMode:function(){return R},divModeExecute:function(){return I},drawConnectLine:function(){return pt},drawEllipse:function(){return kt},drawGrabLine:function(){return mt},drawLinkLine:function(){return ut},drawLinkTriangle:function(){return vt},drawParticle:function(){return yt},drawParticlePlugin:function(){return xt},drawPlugin:function(){return bt},drawShape:function(){return gt},drawShapeAfterEffect:function(){return wt},getDistance:function(){return d},getDistances:function(){return h},getHslAnimationFromHsl:function(){return rt},getHslFromAnimation:function(){return at},getLinkColor:function(){return ot},getLinkRandomColor:function(){return nt},getParticleBaseVelocity:function(){return v},getParticleDirectionAngle:function(){return u},getRandomRgbColor:function(){return K},getRangeMax:function(){return r},getRangeMin:function(){return a},getRangeValue:function(){return n},getStyleFromHsl:function(){return et},getStyleFromHsv:function(){return it},getStyleFromRgb:function(){return tt},getValue:function(){return c},gradient:function(){return ft},hslToHsv:function(){return $},hslToRgb:function(){return G},hslaToHsva:function(){return J},hslaToRgba:function(){return j},hsvToHsl:function(){return N},hsvToRgb:function(){return Y},hsvaToHsla:function(){return X},hsvaToRgba:function(){return U},isDivModeEnabled:function(){return O},isInArray:function(){return x},isPointInside:function(){return P},isSsr:function(){return g},itemFromArray:function(){return z},loadFont:function(){return k},mix:function(){return s},pJSDom:function(){return us},paintBase:function(){return ht},particlesJS:function(){return ds},randomInRange:function(){return o},rectBounce:function(){return F},rgbToHsl:function(){return _},rgbToHsv:function(){return Q},rgbaToHsva:function(){return Z},setRangeValue:function(){return l},singleDivModeExecute:function(){return E},stringToAlpha:function(){return W},stringToRgb:function(){return B},tsParticles:function(){return hs}});class zt{constructor(t,e){this.position={x:t,y:e}}}class Pt extends zt{constructor(t,e,i){super(t,e),this.radius=i}contains(t){return d(t,this.position)<=this.radius}intersects(t){const e=t,i=t,s=this.position,o=t.position,n=Math.abs(o.x-s.x),a=Math.abs(o.y-s.y),r=this.radius;if(void 0!==i.radius){return r+i.radius>Math.sqrt(n*n+a+a)}if(void 0!==e.size){const t=e.size.width,i=e.size.height,s=Math.pow(n-t,2)+Math.pow(a-i,2);return!(n>r+t||a>r+i)&&(n<=t||a<=i||s<=r*r)}return!1}}class Ct extends zt{constructor(t,e,i,s){super(t,e),this.size={height:s,width:i}}contains(t){const e=this.size.width,i=this.size.height,s=this.position;return t.x>=s.x&&t.x<=s.x+e&&t.y>=s.y&&t.y<=s.y+i}intersects(t){const e=t,i=t,s=this.size.width,o=this.size.height,n=this.position,a=t.position;if(void 0!==i.radius)return i.intersects(this);if(void 0!==e.size){const t=e.size,i=t.width,r=t.height;return a.x<n.x+s&&a.x+i>n.x&&a.y<n.y+o&&a.y+r>n.y}return!1}}class Tt extends Pt{constructor(t,e,i,s){super(t,e,i),this.canvasSize=s,this.canvasSize={height:s.height,width:s.width}}contains(t){if(super.contains(t))return!0;const e={x:t.x-this.canvasSize.width,y:t.y};if(super.contains(e))return!0;const i={x:t.x-this.canvasSize.width,y:t.y-this.canvasSize.height};if(super.contains(i))return!0;const s={x:t.x,y:t.y-this.canvasSize.height};return super.contains(s)}intersects(t){if(super.intersects(t))return!0;const e=t,i=t,s={x:t.position.x-this.canvasSize.width,y:t.position.y-this.canvasSize.height};if(void 0!==i.radius){const t=new Pt(s.x,s.y,2*i.radius);return super.intersects(t)}if(void 0!==e.size){const t=new Ct(s.x,s.y,2*e.size.width,2*e.size.height);return super.intersects(t)}return!1}}class St{}function Ot(t,e,i,s,o){if(s){let s={passive:!0};"boolean"==typeof o?s.capture=o:void 0!==o&&(s=o),t.addEventListener(e,i,s)}else{const s=o;t.removeEventListener(e,i,s)}}St.generatedAttribute="generated",St.randomColorValue="random",St.midColorValue="mid",St.touchEndEvent="touchend",St.mouseDownEvent="mousedown",St.mouseUpEvent="mouseup",St.mouseMoveEvent="mousemove",St.touchStartEvent="touchstart",St.touchMoveEvent="touchmove",St.mouseLeaveEvent="mouseleave",St.mouseOutEvent="mouseout",St.touchCancelEvent="touchcancel",St.resizeEvent="resize",St.visibilityChangeEvent="visibilitychange",St.noPolygonDataLoaded="No polygon data loaded.",St.noPolygonFound="No polygon found, you need to specify SVG url in config.";class It{constructor(t){this.container=t,this.canPush=!0,this.mouseMoveHandler=t=>this.mouseTouchMove(t),this.touchStartHandler=t=>this.mouseTouchMove(t),this.touchMoveHandler=t=>this.mouseTouchMove(t),this.touchEndHandler=()=>this.mouseTouchFinish(),this.mouseLeaveHandler=()=>this.mouseTouchFinish(),this.touchCancelHandler=()=>this.mouseTouchFinish(),this.touchEndClickHandler=t=>this.mouseTouchClick(t),this.mouseUpHandler=t=>this.mouseTouchClick(t),this.mouseDownHandler=()=>this.mouseDown(),this.visibilityChangeHandler=()=>this.handleVisibilityChange(),this.themeChangeHandler=t=>this.handleThemeChange(t),this.oldThemeChangeHandler=t=>this.handleThemeChange(t),this.resizeHandler=()=>this.handleWindowResize()}addListeners(){this.manageListeners(!0)}removeListeners(){this.manageListeners(!1)}manageListeners(t){var e;const i=this.container,s=i.actualOptions,o=s.interactivity.detectsOn;let n=St.mouseLeaveEvent;if("window"===o)i.interactivity.element=window,n=St.mouseOutEvent;else if("parent"===o&&i.canvas.element){const t=i.canvas.element;i.interactivity.element=null!==(e=t.parentElement)&&void 0!==e?e:t.parentNode}else i.interactivity.element=i.canvas.element;const a=!g()&&"undefined"!=typeof matchMedia&&matchMedia("(prefers-color-scheme: dark)");a&&(void 0!==a.addEventListener?Ot(a,"change",this.themeChangeHandler,t):void 0!==a.addListener&&(t?a.addListener(this.oldThemeChangeHandler):a.removeListener(this.oldThemeChangeHandler)));const r=i.interactivity.element;if(!r)return;const l=r;(s.interactivity.events.onHover.enable||s.interactivity.events.onClick.enable)&&(Ot(r,St.mouseMoveEvent,this.mouseMoveHandler,t),Ot(r,St.touchStartEvent,this.touchStartHandler,t),Ot(r,St.touchMoveEvent,this.touchMoveHandler,t),s.interactivity.events.onClick.enable?(Ot(r,St.touchEndEvent,this.touchEndClickHandler,t),Ot(r,St.mouseUpEvent,this.mouseUpHandler,t),Ot(r,St.mouseDownEvent,this.mouseDownHandler,t)):Ot(r,St.touchEndEvent,this.touchEndHandler,t),Ot(r,n,this.mouseLeaveHandler,t),Ot(r,St.touchCancelEvent,this.touchCancelHandler,t)),i.canvas.element&&(i.canvas.element.style.pointerEvents=l===i.canvas.element?"initial":"none"),s.interactivity.events.resize&&("undefined"!=typeof ResizeObserver?this.resizeObserver&&!t?(i.canvas.element&&this.resizeObserver.unobserve(i.canvas.element),this.resizeObserver.disconnect(),delete this.resizeObserver):!this.resizeObserver&&t&&i.canvas.element&&(this.resizeObserver=new ResizeObserver((t=>{t.find((t=>t.target===i.canvas.element))&&this.handleWindowResize()})),this.resizeObserver.observe(i.canvas.element)):Ot(window,St.resizeEvent,this.resizeHandler,t)),document&&Ot(document,St.visibilityChangeEvent,this.visibilityChangeHandler,t,!1)}handleWindowResize(){this.resizeTimeout&&(clearTimeout(this.resizeTimeout),delete this.resizeTimeout),this.resizeTimeout=setTimeout((async()=>{var t;return await(null===(t=this.container.canvas)||void 0===t?void 0:t.windowResize())}),500)}handleVisibilityChange(){const t=this.container,e=t.actualOptions;this.mouseTouchFinish(),e.pauseOnBlur&&((null===document||void 0===document?void 0:document.hidden)?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.getAnimationStatus()?t.play(!0):t.draw(!0)))}mouseDown(){const t=this.container.interactivity;if(t){const e=t.mouse;e.clicking=!0,e.downPosition=e.position}}mouseTouchMove(t){var e,i,s,o,n,a,r;const l=this.container,c=l.actualOptions;if(void 0===(null===(e=l.interactivity)||void 0===e?void 0:e.element))return;let h;l.interactivity.mouse.inside=!0;const d=l.canvas.element;if(t.type.startsWith("mouse")){this.canPush=!0;const e=t;if(l.interactivity.element===window){if(d){const t=d.getBoundingClientRect();h={x:e.clientX-t.left,y:e.clientY-t.top}}}else if("parent"===c.interactivity.detectsOn){const t=e.target,o=e.currentTarget,n=l.canvas.element;if(t&&o&&n){const i=t.getBoundingClientRect(),s=o.getBoundingClientRect(),a=n.getBoundingClientRect();h={x:e.offsetX+2*i.left-(s.left+a.left),y:e.offsetY+2*i.top-(s.top+a.top)}}else h={x:null!==(i=e.offsetX)&&void 0!==i?i:e.clientX,y:null!==(s=e.offsetY)&&void 0!==s?s:e.clientY}}else e.target===l.canvas.element&&(h={x:null!==(o=e.offsetX)&&void 0!==o?o:e.clientX,y:null!==(n=e.offsetY)&&void 0!==n?n:e.clientY})}else{this.canPush="touchmove"!==t.type;const e=t,i=e.touches[e.touches.length-1],s=null==d?void 0:d.getBoundingClientRect();h={x:i.clientX-(null!==(a=null==s?void 0:s.left)&&void 0!==a?a:0),y:i.clientY-(null!==(r=null==s?void 0:s.top)&&void 0!==r?r:0)}}const u=l.retina.pixelRatio;h&&(h.x*=u,h.y*=u),l.interactivity.mouse.position=h,l.interactivity.status=St.mouseMoveEvent}mouseTouchFinish(){const t=this.container.interactivity;if(void 0===t)return;const e=t.mouse;delete e.position,delete e.clickPosition,delete e.downPosition,t.status=St.mouseLeaveEvent,e.inside=!1,e.clicking=!1}mouseTouchClick(t){const e=this.container,i=e.actualOptions,s=e.interactivity.mouse;s.inside=!0;let o=!1;const n=s.position;if(void 0!==n&&i.interactivity.events.onClick.enable){for(const[,t]of e.plugins)if(void 0!==t.clickPositionValid&&(o=t.clickPositionValid(n),o))break;o||this.doMouseTouchClick(t),s.clicking=!1}}doMouseTouchClick(t){const e=this.container,i=e.actualOptions;if(this.canPush){const t=e.interactivity.mouse.position;if(!t)return;e.interactivity.mouse.clickPosition={x:t.x,y:t.y},e.interactivity.mouse.clickTime=(new Date).getTime();const s=i.interactivity.events.onClick;if(s.mode instanceof Array)for(const t of s.mode)this.handleClickMode(t);else this.handleClickMode(s.mode)}"touchend"===t.type&&setTimeout((()=>this.mouseTouchFinish()),500)}handleThemeChange(t){const e=t.matches?this.container.options.defaultDarkTheme:this.container.options.defaultLightTheme,i=this.container.options.themes.find((t=>t.name===e));i&&i.default.auto&&this.container.loadTheme(e)}handleClickMode(t){const e=this.container,i=e.actualOptions,s=i.interactivity.modes.push.quantity,o=i.interactivity.modes.remove.quantity;switch(t){case"push":if(s>0){const t=z([void 0,...i.interactivity.modes.push.groups]),o=void 0!==t?e.actualOptions.particles.groups[t]:void 0;e.particles.push(s,e.interactivity.mouse,o,t)}break;case"remove":e.particles.removeQuantity(o);break;case"bubble":e.bubble.clicking=!0;break;case"repulse":e.repulse.clicking=!0,e.repulse.count=0;for(const t of e.repulse.particles)t.velocity.setTo(t.initialVelocity);e.repulse.particles=[],e.repulse.finish=!1,setTimeout((()=>{e.destroyed||(e.repulse.clicking=!1)}),1e3*i.interactivity.modes.repulse.duration);break;case"attract":e.attract.clicking=!0,e.attract.count=0;for(const t of e.attract.particles)t.velocity.setTo(t.initialVelocity);e.attract.particles=[],e.attract.finish=!1,setTimeout((()=>{e.destroyed||(e.attract.clicking=!1)}),1e3*i.interactivity.modes.attract.duration);break;case"pause":e.getAnimationStatus()?e.pause():e.play()}for(const[,i]of e.plugins)i.handleClickMode&&i.handleClickMode(t)}}class Et{constructor(t){this.container=t,this.type=0}}class Rt{constructor(t){this.container=t}nextFrame(t){var e;try{const i=this.container;if(void 0!==i.lastFrameTime&&t<i.lastFrameTime+1e3/i.fpsLimit)return void i.draw(!1);null!==(e=i.lastFrameTime)&&void 0!==e||(i.lastFrameTime=t);const s=t-i.lastFrameTime,o={value:s,factor:60*s/1e3};if(i.lifeTime+=o.value,i.lastFrameTime=t,s>1e3)return void i.draw(!1);if(i.particles.draw(o),i.duration>0&&i.lifeTime>i.duration)return void i.destroy();i.getAnimationStatus()&&i.draw(!1)}catch(t){console.error("tsParticles error in animation loop",t)}}}var At,Dt=function(t,e,i,s,o){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?o.call(t,i):o?o.value=i:e.set(t,i),i},Ft=function(t,e,i,s){if("a"===i&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?s:"a"===i?s.call(t):s?s.value:e.get(t)};class Lt{constructor(t,e){this.container=e,At.set(this,void 0),Dt(this,At,t,"f"),this.externalInteractors=[],this.particleInteractors=[],this.init()}init(){const t=Ft(this,At,"f").plugins.getInteractors(this.container,!0);this.externalInteractors=[],this.particleInteractors=[];for(const e of t)switch(e.type){case 0:this.externalInteractors.push(e);break;case 1:this.particleInteractors.push(e)}}externalInteract(t){for(const e of this.externalInteractors)e.isEnabled()&&e.interact(t)}particlesInteract(t,e){for(const e of this.externalInteractors)e.reset(t);for(const i of this.particleInteractors)i.isEnabled(t)&&i.interact(t,e)}}At=new WeakMap;class qt{constructor(t){this.container=t,this.type=1}}class Ht{constructor(t){this.container=t}move(t,e){t.destroyed||(this.moveParticle(t,e),this.moveParallax(t))}moveParticle(t,e){var i,s,o,a,l;const c=t.options,d=c.move;if(!d.enable)return;const u=this.container,v=this.getProximitySpeedFactor(t),p=(null!==(i=(a=t.retina).moveSpeed)&&void 0!==i?i:a.moveSpeed=n(d.speed)*u.retina.pixelRatio)*u.retina.reduceFactor,f=null!==(s=(l=t.retina).moveDrift)&&void 0!==s?s:l.moveDrift=n(t.options.move.drift)*u.retina.pixelRatio,m=r(c.size.value)*u.retina.pixelRatio,y=p*((d.size?t.getRadius()/m:1)*v*(e.factor||1)/2);this.applyPath(t,e);const g=d.gravity,w=g.enable&&g.inverse?-1:1;g.enable&&y&&(t.velocity.y+=w*(g.acceleration*e.factor)/(60*y)),f&&y&&(t.velocity.x+=f*e.factor/(60*y));const b=t.moveDecay;1!=b&&t.velocity.multTo(b);const x=t.velocity.mult(y),k=null!==(o=t.retina.maxSpeed)&&void 0!==o?o:u.retina.maxSpeed;g.enable&&g.maxSpeed>0&&(!g.inverse&&x.y>=0&&x.y>=k||g.inverse&&x.y<=0&&x.y<=-k)&&(x.y=w*k,y&&(t.velocity.y=x.y/y));const M=t.options.zIndex,z=(1-t.zIndexFactor)**M.velocityRate;d.spin.enable?this.spin(t,y):(1!=z&&x.multTo(z),t.position.addTo(x),d.vibrate&&(t.position.x+=Math.sin(t.position.x*Math.cos(t.position.y)),t.position.y+=Math.cos(t.position.y*Math.sin(t.position.x)))),function(t){const e=t.initialPosition,{dx:i,dy:s}=h(e,t.position),o=Math.abs(i),n=Math.abs(s),a=t.retina.maxDistance.horizontal,r=t.retina.maxDistance.vertical;if(a||r)if((a&&o>=a||r&&n>=r)&&!t.misplaced)t.misplaced=!!a&&o>a||!!r&&n>r,a&&(t.velocity.x=t.velocity.y/2-t.velocity.x),r&&(t.velocity.y=t.velocity.x/2-t.velocity.y);else if((!a||o<a)&&(!r||n<r)&&t.misplaced)t.misplaced=!1;else if(t.misplaced){const i=t.position,s=t.velocity;a&&(i.x<e.x&&s.x<0||i.x>e.x&&s.x>0)&&(s.x*=-Math.random()),r&&(i.y<e.y&&s.y<0||i.y>e.y&&s.y>0)&&(s.y*=-Math.random())}}(t)}spin(t,e){const i=this.container;if(!t.spin)return;const s={x:"clockwise"===t.spin.direction?Math.cos:Math.sin,y:"clockwise"===t.spin.direction?Math.sin:Math.cos};t.position.x=t.spin.center.x+t.spin.radius*s.x(t.spin.angle),t.position.y=t.spin.center.y+t.spin.radius*s.y(t.spin.angle),t.spin.radius+=t.spin.acceleration;const o=Math.max(i.canvas.size.width,i.canvas.size.height);t.spin.radius>o/2?(t.spin.radius=o/2,t.spin.acceleration*=-1):t.spin.radius<0&&(t.spin.radius=0,t.spin.acceleration*=-1),t.spin.angle+=e/100*(1-t.spin.radius/o)}applyPath(t,e){const s=t.options.move.path;if(!s.enable)return;const o=this.container;if(t.lastPathTime<=t.pathDelay)return void(t.lastPathTime+=e.value);const n=o.pathGenerator.generate(t);t.velocity.addTo(n),s.clamp&&(t.velocity.x=i(t.velocity.x,-1,1),t.velocity.y=i(t.velocity.y,-1,1)),t.lastPathTime-=t.pathDelay}moveParallax(t){const e=this.container,i=e.actualOptions;if(g()||!i.interactivity.events.onHover.parallax.enable)return;const s=i.interactivity.events.onHover.parallax.force,o=e.interactivity.mouse.position;if(!o)return;const n=e.canvas.size.width/2,a=e.canvas.size.height/2,r=i.interactivity.events.onHover.parallax.smooth,l=t.getRadius()/s,c=(o.x-n)*l,h=(o.y-a)*l;t.offset.x+=(c-t.offset.x)/r,t.offset.y+=(h-t.offset.y)/r}getProximitySpeedFactor(t){const e=this.container,i=e.actualOptions;if(!x("slow",i.interactivity.events.onHover.mode))return 1;const s=this.container.interactivity.mouse.position;if(!s)return 1;const o=d(s,t.getPosition()),n=e.retina.slowModeRadius;if(o>n)return 1;return(o/n||0)/i.interactivity.modes.slow.factor}}var Vt,_t=function(t,e,i,s,o){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?o.call(t,i):o?o.value=i:e.set(t,i),i};class Wt{constructor(t){Vt.set(this,void 0),_t(this,Vt,t,"f"),this.plugins=[],this.interactorsInitializers=new Map,this.updatersInitializers=new Map,this.interactors=new Map,this.updaters=new Map,this.presets=new Map,this.drawers=new Map,this.pathGenerators=new Map}getPlugin(t){return this.plugins.find((e=>e.id===t))}addPlugin(t){this.getPlugin(t.id)||this.plugins.push(t)}getAvailablePlugins(t){const e=new Map;for(const i of this.plugins)i.needsPlugin(t.actualOptions)&&e.set(i.id,i.getPlugin(t));return e}loadOptions(t,e){for(const i of this.plugins)i.loadOptions(t,e)}getPreset(t){return this.presets.get(t)}addPreset(t,e,i=!1){!i&&this.getPreset(t)||this.presets.set(t,e)}addShapeDrawer(t,e){this.getShapeDrawer(t)||this.drawers.set(t,e)}getShapeDrawer(t){return this.drawers.get(t)}getSupportedShapes(){return this.drawers.keys()}getPathGenerator(t){return this.pathGenerators.get(t)}addPathGenerator(t,e){this.getPathGenerator(t)||this.pathGenerators.set(t,e)}getInteractors(t,e=!1){let i=this.interactors.get(t);return i&&!e||(i=[...this.interactorsInitializers.values()].map((e=>e(t))),this.interactors.set(t,i)),i}addInteractor(t,e){this.interactorsInitializers.set(t,e)}getUpdaters(t,e=!1){let i=this.updaters.get(t);return i&&!e||(i=[...this.updatersInitializers.values()].map((e=>e(t))),this.updaters.set(t,i)),i}addParticleUpdater(t,e){this.updatersInitializers.set(t,e)}}Vt=new WeakMap;class Bt{constructor(t,e){this.position=t,this.particle=e}}class Gt{constructor(t,e){this.rectangle=t,this.capacity=e,this.points=[],this.divided=!1}subdivide(){const t=this.rectangle.position.x,e=this.rectangle.position.y,i=this.rectangle.size.width,s=this.rectangle.size.height,o=this.capacity;this.northEast=new Gt(new Ct(t,e,i/2,s/2),o),this.northWest=new Gt(new Ct(t+i/2,e,i/2,s/2),o),this.southEast=new Gt(new Ct(t,e+s/2,i/2,s/2),o),this.southWest=new Gt(new Ct(t+i/2,e+s/2,i/2,s/2),o),this.divided=!0}insert(t){var e,i,s,o,n;return!!this.rectangle.contains(t.position)&&(this.points.length<this.capacity?(this.points.push(t),!0):(this.divided||this.subdivide(),null!==(n=(null===(e=this.northEast)||void 0===e?void 0:e.insert(t))||(null===(i=this.northWest)||void 0===i?void 0:i.insert(t))||(null===(s=this.southEast)||void 0===s?void 0:s.insert(t))||(null===(o=this.southWest)||void 0===o?void 0:o.insert(t)))&&void 0!==n&&n))}queryCircle(t,e){return this.query(new Pt(t.x,t.y,e))}queryCircleWarp(t,e,i){const s=i,o=i;return this.query(new Tt(t.x,t.y,e,void 0!==s.canvas?s.canvas.size:o))}queryRectangle(t,e){return this.query(new Ct(t.x,t.y,e.width,e.height))}query(t,e){var i,s,o,n;const a=null!=e?e:[];if(!t.intersects(this.rectangle))return[];for(const e of this.points)!t.contains(e.position)&&d(t.position,e.position)>e.particle.getRadius()||a.push(e.particle);return this.divided&&(null===(i=this.northEast)||void 0===i||i.query(t,a),null===(s=this.northWest)||void 0===s||s.query(t,a),null===(o=this.southEast)||void 0===o||o.query(t,a),null===(n=this.southWest)||void 0===n||n.query(t,a)),a}}class jt{constructor(t,e){let i,s;if(void 0===e){if("number"==typeof t)throw new Error("tsParticles - Vector not initialized correctly");const e=t;[i,s]=[e.x,e.y]}else[i,s]=[t,e];this.x=i,this.y=s}static clone(t){return jt.create(t.x,t.y)}static create(t,e){return new jt(t,e)}static get origin(){return jt.create(0,0)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this.updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.x**2+this.y**2)}set length(t){this.updateFromAngle(this.angle,t)}add(t){return jt.create(this.x+t.x,this.y+t.y)}addTo(t){this.x+=t.x,this.y+=t.y}sub(t){return jt.create(this.x-t.x,this.y-t.y)}subFrom(t){this.x-=t.x,this.y-=t.y}mult(t){return jt.create(this.x*t,this.y*t)}multTo(t){this.x*=t,this.y*=t}div(t){return jt.create(this.x/t,this.y/t)}divTo(t){this.x/=t,this.y/=t}distanceTo(t){return this.sub(t).length}getLengthSq(){return this.x**2+this.y**2}distanceToSq(t){return this.sub(t).getLengthSq()}manhattanDistanceTo(t){return Math.abs(t.x-this.x)+Math.abs(t.y-this.y)}copy(){return jt.clone(this)}setTo(t){this.x=t.x,this.y=t.y}rotate(t){return jt.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t))}updateFromAngle(t,e){this.x=Math.cos(t)*e,this.y=Math.sin(t)*e}}class $t extends jt{constructor(t,e,i){super(t,e),this.z=void 0===i?t.z:i}static clone(t){return $t.create(t.x,t.y,t.z)}static create(t,e,i){return new $t(t,e,i)}add(t){return t instanceof $t?$t.create(this.x+t.x,this.y+t.y,this.z+t.z):super.add(t)}addTo(t){super.addTo(t),t instanceof $t&&(this.z+=t.z)}sub(t){return t instanceof $t?$t.create(this.x-t.x,this.y-t.y,this.z-t.z):super.sub(t)}subFrom(t){super.subFrom(t),t instanceof $t&&(this.z-=t.z)}mult(t){return $t.create(this.x*t,this.y*t,this.z*t)}multTo(t){super.multTo(t),this.z*=t}div(t){return $t.create(this.x/t,this.y/t,this.z/t)}divTo(t){super.divTo(t),this.z/=t}copy(){return $t.clone(this)}setTo(t){super.setTo(t),t instanceof $t&&(this.z=t.z)}}class Jt{constructor(t){this.container=t,this.size={height:0,width:0},this.context=null,this.generatedCanvas=!1}init(){this.resize(),this.initStyle(),this.initCover(),this.initTrail(),this.initBackground(),this.paint()}loadCanvas(t){var e;this.generatedCanvas&&(null===(e=this.element)||void 0===e||e.remove()),this.generatedCanvas=t.dataset&&St.generatedAttribute in t.dataset?"true"===t.dataset[St.generatedAttribute]:this.generatedCanvas,this.element=t,this.originalStyle=S({},this.element.style),this.size.height=t.offsetHeight,this.size.width=t.offsetWidth,this.context=this.element.getContext("2d"),this.container.retina.init(),this.initBackground()}destroy(){var t;this.generatedCanvas&&(null===(t=this.element)||void 0===t||t.remove()),this.draw((t=>{dt(t,this.size)}))}paint(){const t=this.container.actualOptions;this.draw((e=>{t.backgroundMask.enable&&t.backgroundMask.cover&&this.coverColor?(dt(e,this.size),this.paintBase(tt(this.coverColor,this.coverColor.a))):this.paintBase()}))}clear(){const t=this.container.actualOptions,e=t.particles.move.trail;t.backgroundMask.enable?this.paint():e.enable&&e.length>0&&this.trailFillColor?this.paintBase(tt(this.trailFillColor,1/e.length)):this.draw((t=>{dt(t,this.size)}))}async windowResize(){if(!this.element)return;const t=this.container;this.resize();const e=t.updateActualOptions();t.particles.setDensity();for(const[,e]of t.plugins)void 0!==e.resize&&e.resize();e&&await t.refresh()}resize(){if(!this.element)return;const t=this.container,e=t.retina.pixelRatio,i=t.canvas.size,s=i.width,o=i.height;i.width=this.element.offsetWidth*e,i.height=this.element.offsetHeight*e,this.element.width=i.width,this.element.height=i.height,this.container.started&&(this.resizeFactor={width:i.width/s,height:i.height/o})}drawConnectLine(t,e){this.draw((i=>{var s;const o=this.lineStyle(t,e);if(!o)return;const n=t.getPosition(),a=e.getPosition();pt(i,null!==(s=t.retina.linksWidth)&&void 0!==s?s:this.container.retina.linksWidth,o,n,a)}))}drawGrabLine(t,e,i,s){const o=this.container;this.draw((n=>{var a;const r=t.getPosition();mt(n,null!==(a=t.retina.linksWidth)&&void 0!==a?a:o.retina.linksWidth,r,s,e,i)}))}drawParticle(t,e){var i,s,o,n,a,r;if(t.spawning||t.destroyed)return;const l=t.getFillColor(),c=null!==(i=t.getStrokeColor())&&void 0!==i?i:l;if(!l&&!c)return;let[h,d]=this.getPluginParticleColors(t);const u=t.options.twinkle.particles,v=u.enable&&Math.random()<u.frequency;if(!h||!d){const t=V(u.color);h||(h=v&&void 0!==t?t:l||void 0),d||(d=v&&void 0!==t?t:c||void 0)}const p=this.container.actualOptions,f=t.options.zIndex,m=(1-t.zIndexFactor)**f.opacityRate,y=t.getRadius(),g=v?u.opacity:null!==(n=null!==(s=t.bubble.opacity)&&void 0!==s?s:null===(o=t.opacity)||void 0===o?void 0:o.value)&&void 0!==n?n:1,w=null!==(r=null===(a=t.stroke)||void 0===a?void 0:a.opacity)&&void 0!==r?r:g,b=g*m,x=h?et(h,b):void 0;(x||d)&&this.draw((i=>{const s=(1-t.zIndexFactor)**f.sizeRate,o=d?et(d,w*m):x;if(y<=0)return;const n=this.container;for(const e of n.particles.updaters)e.beforeDraw&&e.beforeDraw(t);yt(this.container,i,t,e,x,o,p.backgroundMask.enable,p.backgroundMask.composite,y*s,b,t.options.shadow,t.gradient);for(const e of n.particles.updaters)e.afterDraw&&e.afterDraw(t)}))}drawPlugin(t,e){this.draw((i=>{bt(i,t,e)}))}drawParticlePlugin(t,e,i){this.draw((s=>{xt(s,t,e,i)}))}initBackground(){const t=this.container.actualOptions.background,e=this.element,i=null==e?void 0:e.style;if(i){if(t.color){const e=H(t.color);i.backgroundColor=e?tt(e,t.opacity):""}else i.backgroundColor="";i.backgroundImage=t.image||"",i.backgroundPosition=t.position||"",i.backgroundRepeat=t.repeat||"",i.backgroundSize=t.size||""}}draw(t){if(this.context)return t(this.context)}initCover(){const t=this.container.actualOptions.backgroundMask.cover,e=H(t.color);e&&(this.coverColor={r:e.r,g:e.g,b:e.b,a:t.opacity})}initTrail(){const t=this.container.actualOptions,e=H(t.particles.move.trail.fillColor);if(e){const i=t.particles.move.trail;this.trailFillColor={r:e.r,g:e.g,b:e.b,a:1/i.length}}}getPluginParticleColors(t){let e,i;for(const[,s]of this.container.plugins)if(!e&&s.particleFillColor&&(e=V(s.particleFillColor(t))),!i&&s.particleStrokeColor&&(i=V(s.particleStrokeColor(t))),e&&i)break;return[e,i]}initStyle(){const t=this.element,e=this.container.actualOptions;if(!t)return;const i=this.originalStyle;e.fullScreen.enable?(this.originalStyle=S({},t.style),t.style.setProperty("position","fixed","important"),t.style.setProperty("z-index",e.fullScreen.zIndex.toString(10),"important"),t.style.setProperty("top","0","important"),t.style.setProperty("left","0","important"),t.style.setProperty("width","100%","important"),t.style.setProperty("height","100%","important")):i&&(t.style.position=i.position,t.style.zIndex=i.zIndex,t.style.top=i.top,t.style.left=i.left,t.style.width=i.width,t.style.height=i.height);for(const i in e.style){if(!i||!e.style)continue;const s=e.style[i];s&&t.style.setProperty(i,s,"important")}}paintBase(t){this.draw((e=>{ht(e,this.size,t)}))}lineStyle(t,e){return this.draw((i=>{const s=this.container.actualOptions.interactivity.modes.connect;return ft(i,t,e,s.links.opacity)}))}}class Nt{constructor(){this.value="#fff"}static create(t,e){const i=new Nt;return i.load(t),void 0!==e&&("string"==typeof e||e instanceof Array?i.load({value:e}):i.load(e)),i}load(t){void 0!==(null==t?void 0:t.value)&&(this.value=t.value)}}class Xt{constructor(){this.color=new Nt,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=Nt.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.position&&(this.position=t.position),void 0!==t.repeat&&(this.repeat=t.repeat),void 0!==t.size&&(this.size=t.size),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Yt{constructor(){this.color=new Nt,this.opacity=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=Nt.create(this.color,t.color)),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Ut{constructor(){this.composite="destination-out",this.cover=new Yt,this.enable=!1}load(t){if(void 0!==t){if(void 0!==t.composite&&(this.composite=t.composite),void 0!==t.cover){const e=t.cover,i="string"==typeof t.cover?{color:t.cover}:t.cover;this.cover.load(void 0!==e.color?e:{color:i})}void 0!==t.enable&&(this.enable=t.enable)}}}class Qt{constructor(){this.enable=!0,this.zIndex=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.zIndex&&(this.zIndex=t.zIndex))}}class Zt{constructor(){this.enable=!1,this.mode=[]}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode))}}class Kt{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type="circle"}get elementId(){return this.ids}set elementId(t){this.ids=t}get el(){return this.elementId}set el(t){this.elementId=t}get ids(){return this.selectors instanceof Array?this.selectors.map((t=>t.replace("#",""))):this.selectors.replace("#","")}set ids(t){this.selectors=t instanceof Array?t.map((t=>`#${t}`)):`#${t}`}load(t){var e,i;if(void 0===t)return;const s=null!==(i=null!==(e=t.ids)&&void 0!==e?e:t.elementId)&&void 0!==i?i:t.el;void 0!==s&&(this.ids=s),void 0!==t.selectors&&(this.selectors=t.selectors),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.type&&(this.type=t.type)}}class te{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.force&&(this.force=t.force),void 0!==t.smooth&&(this.smooth=t.smooth))}}class ee{constructor(){this.enable=!1,this.mode=[],this.parallax=new te}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.parallax.load(t.parallax))}}class ie{constructor(){this.onClick=new Zt,this.onDiv=new Kt,this.onHover=new ee,this.resize=!0}get onclick(){return this.onClick}set onclick(t){this.onClick=t}get ondiv(){return this.onDiv}set ondiv(t){this.onDiv=t}get onhover(){return this.onHover}set onhover(t){this.onHover=t}load(t){var e,i,s;if(void 0===t)return;this.onClick.load(null!==(e=t.onClick)&&void 0!==e?e:t.onclick);const o=null!==(i=t.onDiv)&&void 0!==i?i:t.ondiv;void 0!==o&&(o instanceof Array?this.onDiv=o.map((t=>{const e=new Kt;return e.load(t),e})):(this.onDiv=new Kt,this.onDiv.load(o))),this.onHover.load(null!==(s=t.onHover)&&void 0!==s?s:t.onhover),void 0!==t.resize&&(this.resize=t.resize)}}class se{constructor(){this.distance=200,this.duration=.4,this.easing="ease-out-quad",this.factor=1,this.maxSpeed=50,this.speed=1}load(t){t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.easing&&(this.easing=t.easing),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed),void 0!==t.speed&&(this.speed=t.speed))}}class oe{constructor(){this.distance=200}load(t){t&&void 0!==t.distance&&(this.distance=t.distance)}}class ne{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(t){void 0!==t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.mix&&(this.mix=t.mix),void 0!==t.opacity&&(this.opacity=t.opacity),void 0!==t.color&&(t.color instanceof Array?this.color=t.color.map((t=>Nt.create(void 0,t))):(this.color instanceof Array&&(this.color=new Nt),this.color=Nt.create(this.color,t.color))),void 0!==t.size&&(this.size=t.size))}}class ae extends ne{constructor(){super(),this.selectors=[]}get ids(){return this.selectors instanceof Array?this.selectors.map((t=>t.replace("#",""))):this.selectors.replace("#","")}set ids(t){this.selectors=t instanceof Array?t.map((t=>`#${t}`)):`#${t}`}load(t){super.load(t),void 0!==t&&(void 0!==t.ids&&(this.ids=t.ids),void 0!==t.selectors&&(this.selectors=t.selectors))}}class re extends ne{load(t){super.load(t),void 0!==t&&void 0!==t.divs&&(t.divs instanceof Array?this.divs=t.divs.map((t=>{const e=new ae;return e.load(t),e})):((this.divs instanceof Array||!this.divs)&&(this.divs=new ae),this.divs.load(t.divs)))}}class le{constructor(){this.opacity=.5}load(t){void 0!==t&&void 0!==t.opacity&&(this.opacity=t.opacity)}}class ce{constructor(){this.distance=80,this.links=new le,this.radius=60}get line_linked(){return this.links}set line_linked(t){this.links=t}get lineLinked(){return this.links}set lineLinked(t){this.links=t}load(t){var e,i;void 0!==t&&(void 0!==t.distance&&(this.distance=t.distance),this.links.load(null!==(i=null!==(e=t.links)&&void 0!==e?e:t.lineLinked)&&void 0!==i?i:t.line_linked),void 0!==t.radius&&(this.radius=t.radius))}}class he{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(t){void 0!==t&&(void 0!==t.blink&&(this.blink=t.blink),void 0!==t.color&&(this.color=Nt.create(this.color,t.color)),void 0!==t.consent&&(this.consent=t.consent),void 0!==t.opacity&&(this.opacity=t.opacity))}}class de{constructor(){this.distance=100,this.links=new he}get line_linked(){return this.links}set line_linked(t){this.links=t}get lineLinked(){return this.links}set lineLinked(t){this.links=t}load(t){var e,i;void 0!==t&&(void 0!==t.distance&&(this.distance=t.distance),this.links.load(null!==(i=null!==(e=t.links)&&void 0!==e?e:t.lineLinked)&&void 0!==i?i:t.line_linked))}}class ue{constructor(){this.start=new Nt,this.stop=new Nt,this.start.value="#ffffff",this.stop.value="#000000"}load(t){void 0!==t&&(this.start=Nt.create(this.start,t.start),this.stop=Nt.create(this.stop,t.stop))}}class ve{constructor(){this.gradient=new ue,this.radius=1e3}load(t){void 0!==t&&(this.gradient.load(t.gradient),void 0!==t.radius&&(this.radius=t.radius))}}class pe{constructor(){this.color=new Nt,this.color.value="#000000",this.length=2e3}load(t){void 0!==t&&(this.color=Nt.create(this.color,t.color),void 0!==t.length&&(this.length=t.length))}}class fe{constructor(){this.area=new ve,this.shadow=new pe}load(t){void 0!==t&&(this.area.load(t.area),this.shadow.load(t.shadow))}}class me{constructor(){this.default=!0,this.groups=[],this.quantity=4}get particles_nb(){return this.quantity}set particles_nb(t){this.quantity=t}load(t){var e;if(void 0===t)return;void 0!==t.default&&(this.default=t.default),void 0!==t.groups&&(this.groups=t.groups.map((t=>t))),this.groups.length||(this.default=!0);const i=null!==(e=t.quantity)&&void 0!==e?e:t.particles_nb;void 0!==i&&(this.quantity=i)}}class ye{constructor(){this.quantity=2}get particles_nb(){return this.quantity}set particles_nb(t){this.quantity=t}load(t){var e;if(void 0===t)return;const i=null!==(e=t.quantity)&&void 0!==e?e:t.particles_nb;void 0!==i&&(this.quantity=i)}}class ge{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing="ease-out-quad"}load(t){t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.easing&&(this.easing=t.easing),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed))}}class we extends ge{constructor(){super(),this.selectors=[]}get ids(){return this.selectors instanceof Array?this.selectors.map((t=>t.replace("#",""))):this.selectors.replace("#","")}set ids(t){this.selectors=t instanceof Array?t.map((()=>`#${t}`)):`#${t}`}load(t){super.load(t),void 0!==t&&(void 0!==t.ids&&(this.ids=t.ids),void 0!==t.selectors&&(this.selectors=t.selectors))}}class be extends ge{load(t){super.load(t),void 0!==(null==t?void 0:t.divs)&&(t.divs instanceof Array?this.divs=t.divs.map((t=>{const e=new we;return e.load(t),e})):((this.divs instanceof Array||!this.divs)&&(this.divs=new we),this.divs.load(t.divs)))}}class xe{constructor(){this.factor=3,this.radius=200}get active(){return!1}set active(t){}load(t){void 0!==t&&(void 0!==t.factor&&(this.factor=t.factor),void 0!==t.radius&&(this.radius=t.radius))}}class ke{constructor(){this.delay=1,this.pauseOnStop=!1,this.quantity=1}load(t){void 0!==t&&(void 0!==t.delay&&(this.delay=t.delay),void 0!==t.quantity&&(this.quantity=t.quantity),void 0!==t.particles&&(this.particles=S({},t.particles)),void 0!==t.pauseOnStop&&(this.pauseOnStop=t.pauseOnStop))}}class Me{constructor(){this.attract=new se,this.bounce=new oe,this.bubble=new re,this.connect=new ce,this.grab=new de,this.light=new fe,this.push=new me,this.remove=new ye,this.repulse=new be,this.slow=new xe,this.trail=new ke}load(t){void 0!==t&&(this.attract.load(t.attract),this.bubble.load(t.bubble),this.connect.load(t.connect),this.grab.load(t.grab),this.light.load(t.light),this.push.load(t.push),this.remove.load(t.remove),this.repulse.load(t.repulse),this.slow.load(t.slow),this.trail.load(t.trail))}}class ze{constructor(){this.detectsOn="window",this.events=new ie,this.modes=new Me}get detect_on(){return this.detectsOn}set detect_on(t){this.detectsOn=t}load(t){var e,i,s;if(void 0===t)return;const o=null!==(e=t.detectsOn)&&void 0!==e?e:t.detect_on;void 0!==o&&(this.detectsOn=o),this.events.load(t.events),this.modes.load(t.modes),!0===(null===(s=null===(i=t.modes)||void 0===i?void 0:i.slow)||void 0===s?void 0:s.active)&&(this.events.onHover.mode instanceof Array?this.events.onHover.mode.indexOf("slow")<0&&this.events.onHover.mode.push("slow"):"slow"!==this.events.onHover.mode&&(this.events.onHover.mode=[this.events.onHover.mode,"slow"]))}}class Pe{load(t){var e,i;t&&(void 0!==t.position&&(this.position={x:null!==(e=t.position.x)&&void 0!==e?e:50,y:null!==(i=t.position.y)&&void 0!==i?i:50}),void 0!==t.options&&(this.options=S({},t.options)))}}class Ce{constructor(){this.factor=4,this.value=!0}load(t){t&&(void 0!==t.factor&&(this.factor=t.factor),void 0!==t.value&&(this.value=t.value))}}class Te{constructor(){this.disable=!1,this.reduce=new Ce}load(t){t&&(void 0!==t.disable&&(this.disable=t.disable),this.reduce.load(t.reduce))}}class Se{constructor(){this.count=0,this.enable=!1,this.offset=0,this.speed=1,this.sync=!0}load(t){void 0!==t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(this.offset=l(t.offset)),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class Oe{constructor(){this.h=new Se,this.s=new Se,this.l=new Se}load(t){t&&(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}class Ie extends Nt{constructor(){super(),this.animation=new Oe}static create(t,e){const i=new Ie;return i.load(t),void 0!==e&&("string"==typeof e||e instanceof Array?i.load({value:e}):i.load(e)),i}load(t){if(super.load(t),!t)return;const e=t.animation;void 0!==e&&(void 0!==e.enable?this.animation.h.load(e):this.animation.load(t.animation))}}class Ee{constructor(){this.angle=new Re,this.colors=[],this.type="random"}load(t){t&&(this.angle.load(t.angle),void 0!==t.colors&&(this.colors=t.colors.map((t=>{const e=new De;return e.load(t),e}))),void 0!==t.type&&(this.type=t.type))}}class Re{constructor(){this.value=0,this.animation=new Fe,this.direction="clockwise"}load(t){t&&(this.animation.load(t.animation),void 0!==t.value&&(this.value=t.value),void 0!==t.direction&&(this.direction=t.direction))}}class Ae{constructor(){this.value=0,this.animation=new Le}load(t){t&&(this.animation.load(t.animation),void 0!==t.value&&(this.value=l(t.value)))}}class De{constructor(){this.stop=0,this.value=new Ie}load(t){t&&(void 0!==t.stop&&(this.stop=t.stop),this.value=Ie.create(this.value,t.value),void 0!==t.opacity&&(this.opacity=new Ae,"number"==typeof t.opacity?this.opacity.value=t.opacity:this.opacity.load(t.opacity)))}}class Fe{constructor(){this.count=0,this.enable=!1,this.speed=0,this.sync=!1}load(t){t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class Le{constructor(){this.count=0,this.enable=!1,this.speed=0,this.sync=!1,this.startValue="random"}load(t){t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync),void 0!==t.startValue&&(this.startValue=t.startValue))}}class qe{constructor(){this.enable=!1,this.minimumValue=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.minimumValue&&(this.minimumValue=t.minimumValue))}}class He{constructor(){this.random=new qe,this.value=0}load(t){t&&("boolean"==typeof t.random?this.random.enable=t.random:this.random.load(t.random),void 0!==t.value&&(this.value=l(t.value,this.random.enable?this.random.minimumValue:void 0)))}}class Ve extends He{constructor(){super(),this.random.minimumValue=.1,this.value=1}}class _e{constructor(){this.horizontal=new Ve,this.vertical=new Ve}load(t){t&&(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}class We{constructor(){this.enable=!0,this.retries=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.retries&&(this.retries=t.retries))}}class Be{constructor(){this.bounce=new _e,this.enable=!1,this.mode="bounce",this.overlap=new We}load(t){void 0!==t&&(this.bounce.load(t.bounce),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.overlap.load(t.overlap))}}class Ge extends He{constructor(){super(),this.value=3}}class je extends He{constructor(){super(),this.value={min:4,max:9}}}class $e{constructor(){this.count=1,this.factor=new Ge,this.rate=new je,this.sizeOffset=!0}load(t){t&&(void 0!==t.count&&(this.count=t.count),this.factor.load(t.factor),this.rate.load(t.rate),void 0!==t.particles&&(this.particles=S({},t.particles)),void 0!==t.sizeOffset&&(this.sizeOffset=t.sizeOffset))}}class Je{constructor(){this.mode="none",this.split=new $e}load(t){t&&(void 0!==t.mode&&(this.mode=t.mode),this.split.load(t.split))}}class Ne extends He{constructor(){super(),this.sync=!1}load(t){t&&(super.load(t),void 0!==t.sync&&(this.sync=t.sync))}}class Xe extends He{constructor(){super(),this.random.minimumValue=1e-4,this.sync=!1}load(t){void 0!==t&&(super.load(t),void 0!==t.sync&&(this.sync=t.sync))}}class Ye{constructor(){this.count=0,this.delay=new Ne,this.duration=new Xe}load(t){void 0!==t&&(void 0!==t.count&&(this.count=t.count),this.delay.load(t.delay),this.duration.load(t.duration))}}class Ue{constructor(){this.blur=5,this.color=new Nt,this.enable=!1,this.color.value="#00ff00"}load(t){void 0!==t&&(void 0!==t.blur&&(this.blur=t.blur),this.color=Nt.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable))}}class Qe{constructor(){this.enable=!1,this.frequency=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=Nt.create(this.color,t.color)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Ze{constructor(){this.blink=!1,this.color=new Nt,this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new Ue,this.triangles=new Qe,this.width=1,this.warp=!1}load(t){void 0!==t&&(void 0!==t.id&&(this.id=t.id),void 0!==t.blink&&(this.blink=t.blink),this.color=Nt.create(this.color,t.color),void 0!==t.consent&&(this.consent=t.consent),void 0!==t.distance&&(this.distance=t.distance),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity),this.shadow.load(t.shadow),this.triangles.load(t.triangles),void 0!==t.width&&(this.width=t.width),void 0!==t.warp&&(this.warp=t.warp))}}class Ke{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}get rotateX(){return this.rotate.x}set rotateX(t){this.rotate.x=t}get rotateY(){return this.rotate.y}set rotateY(t){this.rotate.y=t}load(t){var e,i,s,o;if(!t)return;void 0!==t.distance&&(this.distance=t.distance),void 0!==t.enable&&(this.enable=t.enable);const n=null!==(i=null===(e=t.rotate)||void 0===e?void 0:e.x)&&void 0!==i?i:t.rotateX;void 0!==n&&(this.rotate.x=n);const a=null!==(o=null===(s=t.rotate)||void 0===s?void 0:s.y)&&void 0!==o?o:t.rotateY;void 0!==a&&(this.rotate.y=a)}}class ti{constructor(){this.offset=0,this.value=90}load(t){void 0!==t&&(void 0!==t.offset&&(this.offset=t.offset),void 0!==t.value&&(this.value=t.value))}}class ei{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=t.acceleration),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.inverse&&(this.inverse=t.inverse),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed))}}class ii{constructor(){this.default="out"}load(t){var e,i,s,o;t&&(void 0!==t.default&&(this.default=t.default),this.bottom=null!==(e=t.bottom)&&void 0!==e?e:t.default,this.left=null!==(i=t.left)&&void 0!==i?i:t.default,this.right=null!==(s=t.right)&&void 0!==s?s:t.default,this.top=null!==(o=t.top)&&void 0!==o?o:t.default)}}class si extends He{constructor(){super()}}class oi{constructor(){this.clamp=!0,this.delay=new si,this.enable=!1,this.options={}}load(t){void 0!==t&&(void 0!==t.clamp&&(this.clamp=t.clamp),this.delay.load(t.delay),void 0!==t.enable&&(this.enable=t.enable),this.generator=t.generator,t.options&&(this.options=S(this.options,t.options)))}}class ni{constructor(){this.acceleration=0,this.enable=!1}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=l(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),this.position=t.position?S({},t.position):void 0)}}class ai{constructor(){this.enable=!1,this.length=10,this.fillColor=new Nt,this.fillColor.value="#000000"}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),this.fillColor=Nt.create(this.fillColor,t.fillColor),void 0!==t.length&&(this.length=t.length))}}class ri{constructor(){this.angle=new ti,this.attract=new Ke,this.decay=0,this.distance={},this.direction="none",this.drift=0,this.enable=!1,this.gravity=new ei,this.path=new oi,this.outModes=new ii,this.random=!1,this.size=!1,this.speed=2,this.spin=new ni,this.straight=!1,this.trail=new ai,this.vibrate=!1,this.warp=!1}get collisions(){return!1}set collisions(t){}get bounce(){return this.collisions}set bounce(t){this.collisions=t}get out_mode(){return this.outMode}set out_mode(t){this.outMode=t}get outMode(){return this.outModes.default}set outMode(t){this.outModes.default=t}get noise(){return this.path}set noise(t){this.path=t}load(t){var e,i,s;if(void 0===t)return;void 0!==t.angle&&("number"==typeof t.angle?this.angle.value=t.angle:this.angle.load(t.angle)),this.attract.load(t.attract),void 0!==t.decay&&(this.decay=t.decay),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.distance&&(this.distance="number"==typeof t.distance?{horizontal:t.distance,vertical:t.distance}:S({},t.distance)),void 0!==t.drift&&(this.drift=l(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);const o=null!==(e=t.outMode)&&void 0!==e?e:t.out_mode;void 0===t.outModes&&void 0===o||("string"==typeof t.outModes||void 0===t.outModes&&void 0!==o?this.outModes.load({default:null!==(i=t.outModes)&&void 0!==i?i:o}):this.outModes.load(t.outModes)),this.path.load(null!==(s=t.path)&&void 0!==s?s:t.noise),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=l(t.speed)),this.spin.load(t.spin),void 0!==t.straight&&(this.straight=t.straight),this.trail.load(t.trail),void 0!==t.vibrate&&(this.vibrate=t.vibrate),void 0!==t.warp&&(this.warp=t.warp)}}class li{constructor(){this.count=0,this.enable=!1,this.speed=1,this.sync=!1}load(t){t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class ci extends li{constructor(){super(),this.destroy="none",this.enable=!1,this.speed=2,this.startValue="random",this.sync=!1}get opacity_min(){return this.minimumValue}set opacity_min(t){this.minimumValue=t}load(t){var e;void 0!==t&&(super.load(t),void 0!==t.destroy&&(this.destroy=t.destroy),void 0!==t.enable&&(this.enable=t.enable),this.minimumValue=null!==(e=t.minimumValue)&&void 0!==e?e:t.opacity_min,void 0!==t.speed&&(this.speed=t.speed),void 0!==t.startValue&&(this.startValue=t.startValue),void 0!==t.sync&&(this.sync=t.sync))}}class hi extends He{constructor(){super(),this.animation=new ci,this.random.minimumValue=.1,this.value=1}get anim(){return this.animation}set anim(t){this.animation=t}load(t){var e;if(!t)return;super.load(t);const i=null!==(e=t.animation)&&void 0!==e?e:t.anim;void 0!==i&&(this.animation.load(i),this.value=l(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class di extends He{constructor(){super(),this.value=45,this.random.enable=!1,this.random.minimumValue=0}load(t){void 0!==t&&super.load(t)}}class ui{constructor(){this.animation=new li,this.enable=!1,this.opacity=1,this.rotation=new di,this.width=1}load(t){void 0!==t&&(this.animation.load(t.animation),this.rotation.load(t.rotation),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.opacity&&(this.opacity=t.opacity),void 0!==t.width&&(this.width=t.width),void 0!==t.radius&&(this.radius=t.radius),void 0!==t.color&&(this.color=Nt.create(this.color,t.color)))}}class vi{constructor(){this.enable=!1,this.area=800,this.factor=1e3}get value_area(){return this.area}set value_area(t){this.area=t}load(t){var e;if(void 0===t)return;void 0!==t.enable&&(this.enable=t.enable);const i=null!==(e=t.area)&&void 0!==e?e:t.value_area;void 0!==i&&(this.area=i),void 0!==t.factor&&(this.factor=t.factor)}}class pi{constructor(){this.density=new vi,this.limit=0,this.value=100}get max(){return this.limit}set max(t){this.limit=t}load(t){var e;if(void 0===t)return;this.density.load(t.density);const i=null!==(e=t.limit)&&void 0!==e?e:t.max;void 0!==i&&(this.limit=i),void 0!==t.value&&(this.value=t.value)}}class fi extends He{constructor(){super(),this.enabled=!1,this.distance=1,this.duration=1,this.factor=1,this.speed=1}load(t){super.load(t),t&&(void 0!==t.enabled&&(this.enabled=t.enabled),void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.speed&&(this.speed=t.speed))}}class mi{constructor(){this.enable=!1,this.value=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.value&&(this.value=t.value))}}class yi{constructor(){this.darken=new mi,this.enable=!1,this.enlighten=new mi,this.mode="vertical",this.speed=25}load(t){t&&(void 0!==t.backColor&&(this.backColor=Nt.create(this.backColor,t.backColor)),this.darken.load(t.darken),void 0!==t.enable&&(this.enable=t.enable),this.enlighten.load(t.enlighten),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.speed&&(this.speed=l(t.speed)))}}class gi{constructor(){this.enable=!1,this.speed=0,this.sync=!1}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class wi extends He{constructor(){super(),this.animation=new gi,this.direction="clockwise",this.path=!1,this.value=0}load(t){t&&(super.load(t),void 0!==t.direction&&(this.direction=t.direction),this.animation.load(t.animation),void 0!==t.path&&(this.path=t.path))}}class bi{constructor(){this.blur=0,this.color=new Nt,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000000"}load(t){void 0!==t&&(void 0!==t.blur&&(this.blur=t.blur),this.color=Nt.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(void 0!==t.offset.x&&(this.offset.x=t.offset.x),void 0!==t.offset.y&&(this.offset.y=t.offset.y)))}}class xi{constructor(){this.options={},this.type="circle"}get image(){var t;return null!==(t=this.options.image)&&void 0!==t?t:this.options.images}set image(t){this.options.image=t,this.options.images=t}get custom(){return this.options}set custom(t){this.options=t}get images(){return this.image}set images(t){this.image=t}get stroke(){return[]}set stroke(t){}get character(){var t;return null!==(t=this.options.character)&&void 0!==t?t:this.options.char}set character(t){this.options.character=t,this.options.char=t}get polygon(){var t;return null!==(t=this.options.polygon)&&void 0!==t?t:this.options.star}set polygon(t){this.options.polygon=t,this.options.star=t}load(t){var e,i,s;if(void 0===t)return;const o=null!==(e=t.options)&&void 0!==e?e:t.custom;if(void 0!==o)for(const t in o){const e=o[t];void 0!==e&&(this.options[t]=S(null!==(i=this.options[t])&&void 0!==i?i:{},e))}this.loadShape(t.character,"character","char",!0),this.loadShape(t.polygon,"polygon","star",!1),this.loadShape(null!==(s=t.image)&&void 0!==s?s:t.images,"image","images",!0),void 0!==t.type&&(this.type=t.type)}loadShape(t,e,i,s){var o,n,a,r;void 0!==t&&(t instanceof Array?(this.options[e]instanceof Array||(this.options[e]=[],this.options[i]&&!s||(this.options[i]=[])),this.options[e]=S(null!==(o=this.options[e])&&void 0!==o?o:[],t),this.options[i]&&!s||(this.options[i]=S(null!==(n=this.options[i])&&void 0!==n?n:[],t))):(this.options[e]instanceof Array&&(this.options[e]={},this.options[i]&&!s||(this.options[i]={})),this.options[e]=S(null!==(a=this.options[e])&&void 0!==a?a:{},t),this.options[i]&&!s||(this.options[i]=S(null!==(r=this.options[i])&&void 0!==r?r:{},t))))}}class ki extends li{constructor(){super(),this.destroy="none",this.enable=!1,this.speed=5,this.startValue="random",this.sync=!1}get size_min(){return this.minimumValue}set size_min(t){this.minimumValue=t}load(t){var e;void 0!==t&&(super.load(t),void 0!==t.destroy&&(this.destroy=t.destroy),void 0!==t.enable&&(this.enable=t.enable),this.minimumValue=null!==(e=t.minimumValue)&&void 0!==e?e:t.size_min,void 0!==t.speed&&(this.speed=t.speed),void 0!==t.startValue&&(this.startValue=t.startValue),void 0!==t.sync&&(this.sync=t.sync))}}class Mi extends He{constructor(){super(),this.animation=new ki,this.random.minimumValue=1,this.value=3}get anim(){return this.animation}set anim(t){this.animation=t}load(t){var e;if(!t)return;super.load(t);const i=null!==(e=t.animation)&&void 0!==e?e:t.anim;void 0!==i&&(this.animation.load(i),this.value=l(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class zi{constructor(){this.width=0}load(t){void 0!==t&&(void 0!==t.color&&(this.color=Ie.create(this.color,t.color)),void 0!==t.width&&(this.width=t.width),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Pi{constructor(){this.enable=!1,this.speed=0,this.sync=!1}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class Ci extends He{constructor(){super(),this.animation=new Pi,this.direction="clockwise",this.enable=!1,this.value=0}load(t){t&&(super.load(t),this.animation.load(t.animation),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.enable&&(this.enable=t.enable))}}class Ti{constructor(){this.enable=!1,this.frequency=.05,this.opacity=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=Nt.create(this.color,t.color)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Si{constructor(){this.lines=new Ti,this.particles=new Ti}load(t){void 0!==t&&(this.lines.load(t.lines),this.particles.load(t.particles))}}class Oi{constructor(){this.distance=5,this.enable=!1,this.speed=50}load(t){t&&(void 0!==t.distance&&(this.distance=l(t.distance)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=l(t.speed)))}}class Ii extends He{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),t&&(void 0!==t.opacityRate&&(this.opacityRate=t.opacityRate),void 0!==t.sizeRate&&(this.sizeRate=t.sizeRate),void 0!==t.velocityRate&&(this.velocityRate=t.velocityRate))}}class Ei{constructor(){this.bounce=new _e,this.collisions=new Be,this.color=new Ie,this.destroy=new Je,this.gradient=[],this.groups={},this.life=new Ye,this.links=new Ze,this.move=new ri,this.number=new pi,this.opacity=new hi,this.orbit=new ui,this.reduceDuplicates=!1,this.repulse=new fi,this.roll=new yi,this.rotate=new wi,this.shadow=new bi,this.shape=new xi,this.size=new Mi,this.stroke=new zi,this.tilt=new Ci,this.twinkle=new Si,this.wobble=new Oi,this.zIndex=new Ii}get line_linked(){return this.links}set line_linked(t){this.links=t}get lineLinked(){return this.links}set lineLinked(t){this.links=t}load(t){var e,i,s,o,n,a,r,l;if(void 0===t)return;this.bounce.load(t.bounce),this.color.load(Ie.create(this.color,t.color)),this.destroy.load(t.destroy),this.life.load(t.life);const c=null!==(i=null!==(e=t.links)&&void 0!==e?e:t.lineLinked)&&void 0!==i?i:t.line_linked;if(void 0!==c&&this.links.load(c),void 0!==t.groups)for(const e in t.groups){const i=t.groups[e];void 0!==i&&(this.groups[e]=S(null!==(s=this.groups[e])&&void 0!==s?s:{},i))}this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),this.orbit.load(t.orbit),void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.repulse.load(t.repulse),this.roll.load(t.roll),this.rotate.load(t.rotate),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.tilt.load(t.tilt),this.twinkle.load(t.twinkle),this.wobble.load(t.wobble),this.zIndex.load(t.zIndex);const h=null!==(n=null===(o=t.move)||void 0===o?void 0:o.collisions)&&void 0!==n?n:null===(a=t.move)||void 0===a?void 0:a.bounce;void 0!==h&&(this.collisions.enable=h),this.collisions.load(t.collisions);const d=null!==(r=t.stroke)&&void 0!==r?r:null===(l=t.shape)||void 0===l?void 0:l.stroke;d&&(d instanceof Array?this.stroke=d.map((t=>{const e=new zi;return e.load(t),e})):(this.stroke instanceof Array&&(this.stroke=new zi),this.stroke.load(d)));const u=t.gradient;u&&(u instanceof Array?this.gradient=u.map((t=>{const e=new Ee;return e.load(t),e})):(this.gradient instanceof Array&&(this.gradient=new Ee),this.gradient.load(u)))}}class Ri{constructor(){this.maxWidth=1/0,this.options={},this.mode="canvas"}load(t){t&&(void 0!==t.maxWidth&&(this.maxWidth=t.maxWidth),void 0!==t.mode&&("screen"===t.mode?this.mode="screen":this.mode="canvas"),void 0!==t.options&&(this.options=S({},t.options)))}}class Ai{constructor(){this.auto=!1,this.mode="any",this.value=!1}load(t){t&&(void 0!==t.auto&&(this.auto=t.auto),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}class Di{constructor(){this.name="",this.default=new Ai}load(t){void 0!==t&&(void 0!==t.name&&(this.name=t.name),this.default.load(t.default),void 0!==t.options&&(this.options=S({},t.options)))}}var Fi,Li,qi,Hi=function(t,e,i,s,o){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?o.call(t,i):o?o.value=i:e.set(t,i),i},Vi=function(t,e,i,s){if("a"===i&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?s:"a"===i?s.call(t):s?s.value:e.get(t)};class _i{constructor(t){Fi.add(this),Li.set(this,void 0),Hi(this,Li,t,"f"),this.autoPlay=!0,this.background=new Xt,this.backgroundMask=new Ut,this.fullScreen=new Qt,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new ze,this.manualParticles=[],this.motion=new Te,this.particles=new Ei,this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.style={},this.themes=[],this.zLayers=100}get fps_limit(){return this.fpsLimit}set fps_limit(t){this.fpsLimit=t}get retina_detect(){return this.detectRetina}set retina_detect(t){this.detectRetina=t}get backgroundMode(){return this.fullScreen}set backgroundMode(t){this.fullScreen.load(t)}load(t){var e,i,s,o,n;if(void 0===t)return;if(void 0!==t.preset)if(t.preset instanceof Array)for(const e of t.preset)this.importPreset(e);else this.importPreset(t.preset);void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay);const a=null!==(e=t.detectRetina)&&void 0!==e?e:t.retina_detect;void 0!==a&&(this.detectRetina=a),void 0!==t.duration&&(this.duration=t.duration);const r=null!==(i=t.fpsLimit)&&void 0!==i?i:t.fps_limit;void 0!==r&&(this.fpsLimit=r),void 0!==t.pauseOnBlur&&(this.pauseOnBlur=t.pauseOnBlur),void 0!==t.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=t.pauseOnOutsideViewport),void 0!==t.zLayers&&(this.zLayers=t.zLayers),this.background.load(t.background);const l=null!==(s=t.fullScreen)&&void 0!==s?s:t.backgroundMode;if("boolean"==typeof l?this.fullScreen.enable=l:this.fullScreen.load(l),this.backgroundMask.load(t.backgroundMask),this.interactivity.load(t.interactivity),void 0!==t.manualParticles&&(this.manualParticles=t.manualParticles.map((t=>{const e=new Pe;return e.load(t),e}))),this.motion.load(t.motion),this.particles.load(t.particles),this.style=S(this.style,t.style),Vi(this,Li,"f").plugins.loadOptions(this,t),void 0!==t.responsive)for(const e of t.responsive){const t=new Ri;t.load(e),this.responsive.push(t)}if(this.responsive.sort(((t,e)=>t.maxWidth-e.maxWidth)),void 0!==t.themes)for(const e of t.themes){const t=new Di;t.load(e),this.themes.push(t)}this.defaultDarkTheme=null===(o=Vi(this,Fi,"m",qi).call(this,"dark"))||void 0===o?void 0:o.name,this.defaultLightTheme=null===(n=Vi(this,Fi,"m",qi).call(this,"light"))||void 0===n?void 0:n.name}setTheme(t){if(t){const e=this.themes.find((e=>e.name===t));e&&this.load(e.options)}else{const t="undefined"!=typeof matchMedia&&matchMedia("(prefers-color-scheme: dark)"),e=t&&t.matches,i=Vi(this,Fi,"m",qi).call(this,e?"dark":"light");i&&this.load(i.options)}}setResponsive(t,e,i){this.load(i);const s=this.responsive.find((i=>"screen"===i.mode&&screen?i.maxWidth*e>screen.availWidth:i.maxWidth*e>t));return this.load(null==s?void 0:s.options),null==s?void 0:s.maxWidth}importPreset(t){this.load(Vi(this,Li,"f").plugins.getPreset(t))}}Li=new WeakMap,Fi=new WeakSet,qi=function(t){var e;return null!==(e=this.themes.find((e=>e.default.value&&e.default.mode===t)))&&void 0!==e?e:this.themes.find((t=>t.default.value&&"any"===t.default.mode))};var Wi,Bi=function(t,e,i,s,o){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?o.call(t,i):o?o.value=i:e.set(t,i),i},Gi=function(t,e,i,s){if("a"===i&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?s:"a"===i?s.call(t):s?s.value:e.get(t)};const ji=t=>{(x(t.outMode,t.checkModes)||x(t.outMode,t.checkModes))&&(t.coord>t.maxCoord-2*t.radius?t.setCb(-t.radius):t.coord<2*t.radius&&t.setCb(t.radius))};class $i{constructor(t,e,s,l,h,v){var p,f,m,y,g,w,b,x,k;this.id=e,this.container=s,this.group=v,Wi.set(this,void 0),Bi(this,Wi,t,"f"),this.fill=!0,this.close=!0,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.splitCount=0,this.misplaced=!1,this.retina={maxDistance:{}};const M=s.retina.pixelRatio,P=s.actualOptions,C=new Ei;C.load(P.particles);const T=C.shape.type,S=C.reduceDuplicates;if(this.shape=T instanceof Array?z(T,this.id,S):T,null==h?void 0:h.shape){if(h.shape.type){const t=h.shape.type;this.shape=t instanceof Array?z(t,this.id,S):t}const t=new xi;t.load(h.shape),this.shape&&(this.shapeData=this.loadShapeData(t,S))}else this.shapeData=this.loadShapeData(C.shape,S);void 0!==h&&C.load(h),void 0!==(null===(p=this.shapeData)||void 0===p?void 0:p.particles)&&C.load(null===(f=this.shapeData)||void 0===f?void 0:f.particles),this.fill=null!==(y=null===(m=this.shapeData)||void 0===m?void 0:m.fill)&&void 0!==y?y:this.fill,this.close=null!==(w=null===(g=this.shapeData)||void 0===g?void 0:g.close)&&void 0!==w?w:this.close,this.options=C,this.pathDelay=1e3*c(this.options.move.path.delay);const O=n(this.options.zIndex.value);s.retina.initParticle(this);const I=this.options.size,E=I.value;this.size={enable:I.animation.enable,value:c(I)*s.retina.pixelRatio,max:r(E)*M,min:a(E)*M,loops:0,maxLoops:I.animation.count};const R=I.animation;if(R.enable){switch(this.size.status=0,R.startValue){case"min":this.size.value=this.size.min,this.size.status=0;break;case"random":this.size.value=o(this.size)*M,this.size.status=Math.random()>=.5?0:1;break;case"max":default:this.size.value=this.size.max,this.size.status=1}this.size.velocity=(null!==(b=this.retina.sizeAnimationSpeed)&&void 0!==b?b:s.retina.sizeAnimationSpeed)/100*s.retina.reduceFactor,R.sync||(this.size.velocity*=Math.random())}this.direction=u(this.options.move.direction),this.bubble={inRange:!1},this.initialVelocity=this.calculateVelocity(),this.velocity=this.initialVelocity.copy(),this.moveDecay=1-n(this.options.move.decay),this.position=this.calcPosition(s,l,i(O,0,s.zLayers)),this.initialPosition=this.position.copy(),this.offset=jt.origin;const A=s.particles;A.needsSort=A.needsSort||A.lastZIndex<this.position.z,A.lastZIndex=this.position.z,this.zIndexFactor=this.position.z/s.zLayers,this.sides=24;let D=s.drawers.get(this.shape);D||(D=Gi(this,Wi,"f").plugins.getShapeDrawer(this.shape),D&&s.drawers.set(this.shape,D)),(null==D?void 0:D.loadShape)&&(null==D||D.loadShape(this));const F=null==D?void 0:D.getSidesCount;if(F&&(this.sides=F(this)),this.life=this.loadLife(),this.spawning=this.life.delay>0,this.options.move.spin.enable){const t=null!==(x=this.options.move.spin.position)&&void 0!==x?x:{x:50,y:50},e={x:t.x/100*s.canvas.size.width,y:t.y/100*s.canvas.size.height},i=d(this.getPosition(),e);this.spin={center:e,direction:this.velocity.x>=0?"clockwise":"counter-clockwise",angle:this.velocity.angle,radius:i,acceleration:null!==(k=this.retina.spinAcceleration)&&void 0!==k?k:n(this.options.move.spin.acceleration)}}this.shadowColor=H(this.options.shadow.color);for(const t of s.particles.updaters)t.init&&t.init(this);D&&D.particleInit&&D.particleInit(s,this);for(const[,t]of s.plugins)t.particleCreated&&t.particleCreated(this)}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}isInsideCanvas(){const t=this.getRadius(),e=this.container.canvas.size;return this.position.x>=-t&&this.position.y>=-t&&this.position.y<=e.height+t&&this.position.x<=e.width+t}draw(t){const e=this.container;for(const[,i]of e.plugins)e.canvas.drawParticlePlugin(i,this,t);e.canvas.drawParticle(this,t)}getPosition(){return{x:this.position.x+this.offset.x,y:this.position.y+this.offset.y,z:this.position.z}}getRadius(){var t;return null!==(t=this.bubble.radius)&&void 0!==t?t:this.size.value}getMass(){return this.getRadius()**2*Math.PI/2}getFillColor(){var t,e,i;const s=null!==(t=this.bubble.color)&&void 0!==t?t:at(this.color);if(s&&this.roll&&(this.backColor||this.roll.alter)){if(Math.floor((null!==(i=null===(e=this.roll)||void 0===e?void 0:e.angle)&&void 0!==i?i:0)/(Math.PI/2))%2){if(this.backColor)return this.backColor;if(this.roll.alter)return Mt(s,this.roll.alter.type,this.roll.alter.value)}}return s}getStrokeColor(){var t,e;return null!==(e=null!==(t=this.bubble.color)&&void 0!==t?t:at(this.strokeColor))&&void 0!==e?e:this.getFillColor()}destroy(t){if(this.destroyed=!0,this.bubble.inRange=!1,this.unbreakable)return;this.destroyed=!0,this.bubble.inRange=!1;for(const[,e]of this.container.plugins)e.particleDestroyed&&e.particleDestroyed(this,t);if(t)return;"split"===this.options.destroy.mode&&this.split()}reset(){this.opacity&&(this.opacity.loops=0),this.size.loops=0}split(){const t=this.options.destroy.split;if(t.count>=0&&this.splitCount++>t.count)return;const e=n(t.rate.value);for(let t=0;t<e;t++)this.container.particles.addSplitParticle(this)}calcPosition(t,e,i,s=0){var o,n,a,r,l,c;for(const[,s]of t.plugins){const t=void 0!==s.particlePosition?s.particlePosition(e,this):void 0;if(void 0!==t)return $t.create(t.x,t.y,i)}const h=t.canvas.size,d=$t.create(null!==(o=null==e?void 0:e.x)&&void 0!==o?o:Math.random()*h.width,null!==(n=null==e?void 0:e.y)&&void 0!==n?n:Math.random()*h.height,i),u=this.getRadius(),v=this.options.move.outModes,p=e=>{ji({outMode:e,checkModes:["bounce","bounce-horizontal"],coord:d.x,maxCoord:t.canvas.size.width,setCb:t=>d.x+=t,radius:u})},f=e=>{ji({outMode:e,checkModes:["bounce","bounce-vertical"],coord:d.y,maxCoord:t.canvas.size.height,setCb:t=>d.y+=t,radius:u})};return p(null!==(a=v.left)&&void 0!==a?a:v.default),p(null!==(r=v.right)&&void 0!==r?r:v.default),f(null!==(l=v.top)&&void 0!==l?l:v.default),f(null!==(c=v.bottom)&&void 0!==c?c:v.default),this.checkOverlap(d,s)?this.calcPosition(t,void 0,i,s+1):d}checkOverlap(t,e=0){const i=this.options.collisions,s=this.getRadius();if(!i.enable)return!1;const o=i.overlap;if(o.enable)return!1;const n=o.retries;if(n>=0&&e>n)throw new Error("Particle is overlapping and can't be placed");let a=!1;for(const e of this.container.particles.array)if(d(t,e.position)<s+e.getRadius()){a=!0;break}return a}calculateVelocity(){const t=v(this.direction).copy(),e=this.options.move,i=Math.PI/180*e.angle.value,s=Math.PI/180*e.angle.offset,n={left:s-i/2,right:s+i/2};return e.straight||(t.angle+=o(l(n.left,n.right))),e.random&&"number"==typeof e.speed&&(t.length*=Math.random()),t}loadShapeData(t,e){const i=t.options[this.shape];if(i)return S({},i instanceof Array?z(i,this.id,e):i)}loadLife(){const t=this.container,e=this.options,i=e.life,s={delay:t.retina.reduceFactor?n(i.delay.value)*(i.delay.sync?1:Math.random())/t.retina.reduceFactor*1e3:0,delayTime:0,duration:t.retina.reduceFactor?n(i.duration.value)*(i.duration.sync?1:Math.random())/t.retina.reduceFactor*1e3:0,time:0,count:e.life.count};return s.duration<=0&&(s.duration=-1),s.count<=0&&(s.count=-1),s}}Wi=new WeakMap;var Ji,Ni=function(t,e,i,s,o){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?o.call(t,i):o?o.value=i:e.set(t,i),i},Xi=function(t,e,i,s){if("a"===i&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?s:"a"===i?s.call(t):s?s.value:e.get(t)};class Yi{constructor(t,e){this.container=e,Ji.set(this,void 0),Ni(this,Ji,t,"f"),this.nextId=0,this.array=[],this.zArray=[],this.mover=new Ht(e),this.limit=0,this.needsSort=!1,this.lastZIndex=0,this.freqs={links:new Map,triangles:new Map},this.interactionManager=new Lt(Xi(this,Ji,"f"),e);const i=this.container.canvas.size;this.linksColors=new Map,this.quadTree=new Gt(new Ct(-i.width/4,-i.height/4,3*i.width/2,3*i.height/2),4),this.updaters=Xi(this,Ji,"f").plugins.getUpdaters(e,!0)}get count(){return this.array.length}init(){var t;const e=this.container,i=e.actualOptions;this.lastZIndex=0,this.needsSort=!1,this.freqs.links=new Map,this.freqs.triangles=new Map;let s=!1;this.updaters=Xi(this,Ji,"f").plugins.getUpdaters(e,!0),this.interactionManager.init();for(const[,t]of e.plugins)if(void 0!==t.particlesInitialization&&(s=t.particlesInitialization()),s)break;if(this.addManualParticles(),!s){for(const e in i.particles.groups){const s=i.particles.groups[e];for(let o=this.count,n=0;n<(null===(t=s.number)||void 0===t?void 0:t.value)&&o<i.particles.number.value;o++,n++)this.addParticle(void 0,s,e)}for(let t=this.count;t<i.particles.number.value;t++)this.addParticle()}e.pathGenerator.init(e)}redraw(){this.clear(),this.init(),this.draw({value:0,factor:0})}removeAt(t,e=1,i,s){if(!(t>=0&&t<=this.count))return;let o=0;for(let n=t;o<e&&n<this.count;n++){const t=this.array[n];if(!t||t.group!==i)continue;t.destroy(s),this.array.splice(n--,1);const e=this.zArray.indexOf(t);this.zArray.splice(e,1),o++}}remove(t,e,i){this.removeAt(this.array.indexOf(t),void 0,e,i)}update(t){const e=this.container,i=[];e.pathGenerator.update();for(const[,i]of e.plugins)void 0!==i.update&&i.update(t);for(const s of this.array){const o=e.canvas.resizeFactor;o&&(s.position.x*=o.width,s.position.y*=o.height),s.bubble.inRange=!1;for(const[,e]of this.container.plugins){if(s.destroyed)break;e.particleUpdate&&e.particleUpdate(s,t)}this.mover.move(s,t),s.destroyed?i.push(s):this.quadTree.insert(new Bt(s.getPosition(),s))}for(const t of i)this.remove(t);this.interactionManager.externalInteract(t);for(const i of e.particles.array){for(const e of this.updaters)e.update(i,t);i.destroyed||i.spawning||this.interactionManager.particlesInteract(i,t)}delete e.canvas.resizeFactor}draw(t){const e=this.container;e.canvas.clear();const i=this.container.canvas.size;this.quadTree=new Gt(new Ct(-i.width/4,-i.height/4,3*i.width/2,3*i.height/2),4),this.update(t),this.needsSort&&(this.zArray.sort(((t,e)=>e.position.z-t.position.z||t.id-e.id)),this.lastZIndex=this.zArray[this.zArray.length-1].position.z,this.needsSort=!1);for(const[,i]of e.plugins)e.canvas.drawPlugin(i,t);for(const e of this.zArray)e.draw(t)}clear(){this.array=[],this.zArray=[]}push(t,e,i,s){this.pushing=!0;for(let o=0;o<t;o++)this.addParticle(null==e?void 0:e.position,i,s);this.pushing=!1}addParticle(t,e,i){const s=this.container,o=s.actualOptions.particles.number.limit*s.density;if(o>0){const t=this.count+1-o;t>0&&this.removeQuantity(t)}return this.pushParticle(t,e,i)}addSplitParticle(t){const e=t.options.destroy.split,i=new Ei;i.load(t.options);const s=n(e.factor.value);i.color.load({value:{hsl:t.getFillColor()}}),"number"==typeof i.size.value?i.size.value/=s:(i.size.value.min/=s,i.size.value.max/=s),i.load(e.particles);const a=e.sizeOffset?l(-t.size.value,t.size.value):0,r={x:t.position.x+o(a),y:t.position.y+o(a)};return this.pushParticle(r,i,t.group,(e=>!(e.size.value<.5)&&(e.velocity.length=o(l(t.velocity.length,e.velocity.length)),e.splitCount=t.splitCount+1,e.unbreakable=!0,setTimeout((()=>{e.unbreakable=!1}),500),!0)))}removeQuantity(t,e){this.removeAt(0,t,e)}getLinkFrequency(t,e){const i=l(t.id,e.id),s=`${a(i)}_${r(i)}`;let o=this.freqs.links.get(s);return void 0===o&&(o=Math.random(),this.freqs.links.set(s,o)),o}getTriangleFrequency(t,e,i){let[s,o,n]=[t.id,e.id,i.id];s>o&&([o,s]=[s,o]),o>n&&([n,o]=[o,n]),s>n&&([n,s]=[s,n]);const a=`${s}_${o}_${n}`;let r=this.freqs.triangles.get(a);return void 0===r&&(r=Math.random(),this.freqs.triangles.set(a,r)),r}addManualParticles(){const t=this.container,e=t.actualOptions;for(const i of e.manualParticles){const e=i.position?{x:i.position.x*t.canvas.size.width/100,y:i.position.y*t.canvas.size.height/100}:void 0;this.addParticle(e,i.options)}}setDensity(){const t=this.container.actualOptions;for(const e in t.particles.groups)this.applyDensity(t.particles.groups[e],0,e);this.applyDensity(t.particles,t.manualParticles.length)}applyDensity(t,e,i){var s;if(!(null===(s=t.number.density)||void 0===s?void 0:s.enable))return;const o=t.number,n=this.initDensityFactor(o.density),a=o.value,r=o.limit>0?o.limit:a,l=Math.min(a,r)*n+e,c=Math.min(this.count,this.array.filter((t=>t.group===i)).length);this.limit=o.limit*n,c<l?this.push(Math.abs(l-c),void 0,t,i):c>l&&this.removeQuantity(c-l,i)}initDensityFactor(t){const e=this.container;if(!e.canvas.element||!t.enable)return 1;const i=e.canvas.element,s=e.retina.pixelRatio;return i.width*i.height/(t.factor*s**2*t.area)}pushParticle(t,e,i,s){try{const o=new $i(Xi(this,Ji,"f"),this.nextId,this.container,t,e,i);let n=!0;if(s&&(n=s(o)),!n)return;return this.array.push(o),this.zArray.push(o),this.nextId++,o}catch(t){return void console.warn(`error adding particle: ${t}`)}}}Ji=new WeakMap;class Ui{constructor(t){this.container=t}init(){const t=this.container,e=t.actualOptions;this.pixelRatio=!e.detectRetina||g()?1:window.devicePixelRatio;const i=this.container.actualOptions.motion;if(i&&(i.disable||i.reduce.value))if(g()||"undefined"==typeof matchMedia||!matchMedia)this.reduceFactor=1;else{const e=matchMedia("(prefers-reduced-motion: reduce)");if(e){this.handleMotionChange(e);const i=()=>{this.handleMotionChange(e),t.refresh().catch((()=>{}))};void 0!==e.addEventListener?e.addEventListener("change",i):void 0!==e.addListener&&e.addListener(i)}}else this.reduceFactor=1;const s=this.pixelRatio;if(t.canvas.element){const e=t.canvas.element;t.canvas.size.width=e.offsetWidth*s,t.canvas.size.height=e.offsetHeight*s}const o=e.particles;this.attractDistance=o.move.attract.distance*s,this.linksDistance=o.links.distance*s,this.linksWidth=o.links.width*s,this.sizeAnimationSpeed=o.size.animation.speed*s,this.maxSpeed=o.move.gravity.maxSpeed*s,void 0!==o.orbit.radius&&(this.orbitRadius=o.orbit.radius*this.container.retina.pixelRatio);const n=e.interactivity.modes;this.connectModeDistance=n.connect.distance*s,this.connectModeRadius=n.connect.radius*s,this.grabModeDistance=n.grab.distance*s,this.repulseModeDistance=n.repulse.distance*s,this.bounceModeDistance=n.bounce.distance*s,this.attractModeDistance=n.attract.distance*s,this.slowModeRadius=n.slow.radius*s,this.bubbleModeDistance=n.bubble.distance*s,n.bubble.size&&(this.bubbleModeSize=n.bubble.size*s)}initParticle(t){const e=t.options,i=this.pixelRatio,s=e.move.distance,o=t.retina;o.attractDistance=e.move.attract.distance*i,o.linksDistance=e.links.distance*i,o.linksWidth=e.links.width*i,o.moveDrift=n(e.move.drift)*i,o.moveSpeed=n(e.move.speed)*i,o.sizeAnimationSpeed=e.size.animation.speed*i,t.spin&&(o.spinAcceleration=n(e.move.spin.acceleration)*i);const a=o.maxDistance;a.horizontal=void 0!==s.horizontal?s.horizontal*i:void 0,a.vertical=void 0!==s.vertical?s.vertical*i:void 0,o.maxSpeed=e.move.gravity.maxSpeed*i}handleMotionChange(t){const e=this.container.actualOptions;if(t.matches){const t=e.motion;this.reduceFactor=t.disable?0:t.reduce.value?1/t.reduce.factor:1}else this.reduceFactor=1}}var Qi,Zi=function(t,e,i,s,o){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?o.call(t,i):o?o.value=i:e.set(t,i),i},Ki=function(t,e,i,s){if("a"===i&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?s:"a"===i?s.call(t):s?s.value:e.get(t)};class ts{constructor(t,e,i,...s){this.id=e,Qi.set(this,void 0),Zi(this,Qi,t,"f"),this.fpsLimit=120,this.duration=0,this.lifeTime=0,this.firstStart=!0,this.started=!1,this.destroyed=!1,this.paused=!0,this.lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._sourceOptions=i,this._initialSourceOptions=i,this.retina=new Ui(this),this.canvas=new Jt(this),this.particles=new Yi(Ki(this,Qi,"f"),this),this.drawer=new Rt(this),this.presets=s,this.pathGenerator={generate:()=>{const t=jt.create(0,0);return t.length=Math.random(),t.angle=Math.random()*Math.PI*2,t},init:()=>{},update:()=>{}},this.interactivity={mouse:{clicking:!1,inside:!1}},this.bubble={},this.repulse={particles:[]},this.attract={particles:[]},this.plugins=new Map,this.drawers=new Map,this.density=1,this._options=new _i(Ki(this,Qi,"f")),this.actualOptions=new _i(Ki(this,Qi,"f")),this.eventListeners=new It(this),"undefined"!=typeof IntersectionObserver&&IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver((t=>this.intersectionManager(t))))}get options(){return this._options}get sourceOptions(){return this._sourceOptions}play(t){const e=this.paused||t;if(!this.firstStart||this.actualOptions.autoPlay){if(this.paused&&(this.paused=!1),e)for(const[,t]of this.plugins)t.play&&t.play();this.draw(e||!1)}else this.firstStart=!1}pause(){if(void 0!==this.drawAnimationFrame&&(b()(this.drawAnimationFrame),delete this.drawAnimationFrame),!this.paused){for(const[,t]of this.plugins)t.pause&&t.pause();this.pageHidden||(this.paused=!0)}}draw(t){let e=t;this.drawAnimationFrame=w()((t=>{e&&(this.lastFrameTime=void 0,e=!1),this.drawer.nextFrame(t)}))}getAnimationStatus(){return!this.paused&&!this.pageHidden}setNoise(t,e,i){this.setPath(t,e,i)}setPath(t,e,i){t&&("function"==typeof t?(this.pathGenerator.generate=t,e&&(this.pathGenerator.init=e),i&&(this.pathGenerator.update=i)):(t.generate&&(this.pathGenerator.generate=t.generate),t.init&&(this.pathGenerator.init=t.init),t.update&&(this.pathGenerator.update=t.update)))}destroy(){this.stop(),this.canvas.destroy();for(const[,t]of this.drawers)t.destroy&&t.destroy(this);for(const t of this.drawers.keys())this.drawers.delete(t);this.destroyed=!0}exportImg(t){this.exportImage(t)}exportImage(t,e,i){var s;return null===(s=this.canvas.element)||void 0===s?void 0:s.toBlob(t,null!=e?e:"image/png",i)}exportConfiguration(){return JSON.stringify(this.actualOptions,void 0,2)}refresh(){return this.stop(),this.start()}reset(){return this._options=new _i(Ki(this,Qi,"f")),this.refresh()}stop(){if(this.started){this.firstStart=!0,this.started=!1,this.eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.clear(),this.interactivity.element instanceof HTMLElement&&this.intersectionObserver&&this.intersectionObserver.unobserve(this.interactivity.element);for(const[,t]of this.plugins)t.stop&&t.stop();for(const t of this.plugins.keys())this.plugins.delete(t);this.particles.linksColors=new Map,delete this.particles.grabLineColor,delete this.particles.linksColor,this._sourceOptions=this._options}}async loadTheme(t){this.currentTheme=t,await this.refresh()}async start(){if(!this.started){await this.init(),this.started=!0,this.eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this.intersectionObserver&&this.intersectionObserver.observe(this.interactivity.element);for(const[,t]of this.plugins)void 0!==t.startAsync?await t.startAsync():void 0!==t.start&&t.start();this.play()}}addClickHandler(t){const e=this.interactivity.element;if(!e)return;const i=(e,i,s)=>{if(this.destroyed)return;const o=this.retina.pixelRatio,n={x:i.x*o,y:i.y*o},a=this.particles.quadTree.queryCircle(n,s*o);t(e,a)};let s=!1,o=!1;e.addEventListener("click",(t=>{if(this.destroyed)return;const e=t,s={x:e.offsetX||e.clientX,y:e.offsetY||e.clientY};i(t,s,1)})),e.addEventListener("touchstart",(()=>{this.destroyed||(s=!0,o=!1)})),e.addEventListener("touchmove",(()=>{this.destroyed||(o=!0)})),e.addEventListener("touchend",(t=>{var e,n,a;if(!this.destroyed){if(s&&!o){const s=t;let o=s.touches[s.touches.length-1];if(!o&&(o=s.changedTouches[s.changedTouches.length-1],!o))return;const r=null===(e=this.canvas.element)||void 0===e?void 0:e.getBoundingClientRect(),l={x:o.clientX-(null!==(n=null==r?void 0:r.left)&&void 0!==n?n:0),y:o.clientY-(null!==(a=null==r?void 0:r.top)&&void 0!==a?a:0)};i(t,l,Math.max(o.radiusX,o.radiusY))}s=!1,o=!1}})),e.addEventListener("touchcancel",(()=>{this.destroyed||(s=!1,o=!1)}))}updateActualOptions(){this.actualOptions.responsive=[];const t=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this.currentTheme),this.responsiveMaxWidth!=t&&(this.responsiveMaxWidth=t,!0)}async init(){this._options=new _i(Ki(this,Qi,"f"));for(const t of this.presets)this._options.load(Ki(this,Qi,"f").plugins.getPreset(t));const t=Ki(this,Qi,"f").plugins.getSupportedShapes();for(const e of t){const t=Ki(this,Qi,"f").plugins.getShapeDrawer(e);t&&this.drawers.set(e,t)}this._options.load(this._initialSourceOptions),this._options.load(this._sourceOptions),this.actualOptions=new _i(Ki(this,Qi,"f")),this.actualOptions.load(this._options),this.retina.init(),this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize(),this.zLayers=this.actualOptions.zLayers,this.duration=n(this.actualOptions.duration),this.lifeTime=0,this.fpsLimit=this.actualOptions.fpsLimit>0?this.actualOptions.fpsLimit:120;const e=Ki(this,Qi,"f").plugins.getAvailablePlugins(this);for(const[t,i]of e)this.plugins.set(t,i);for(const[,t]of this.drawers)t.init&&await t.init(this);for(const[,t]of this.plugins)t.init?t.init(this.actualOptions):void 0!==t.initAsync&&await t.initAsync(this.actualOptions);const i=this.actualOptions.particles.move.path;if(i.generator){const t=Ki(this,Qi,"f").plugins.getPathGenerator(i.generator);t&&(t.init&&(this.pathGenerator.init=t.init),t.generate&&(this.pathGenerator.generate=t.generate),t.update&&(this.pathGenerator.update=t.update))}this.particles.init(),this.particles.setDensity();for(const[,t]of this.plugins)void 0!==t.particlesSetup&&t.particlesSetup()}intersectionManager(t){if(this.actualOptions.pauseOnOutsideViewport)for(const e of t)e.target===this.interactivity.element&&(e.isIntersecting?this.play():this.pause())}}Qi=new WeakMap;var es,is=function(t,e,i,s,o){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?o.call(t,i):o?o.value=i:e.set(t,i),i},ss=function(t,e,i,s){if("a"===i&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?s:"a"===i?s.call(t):s?s.value:e.get(t)};class os{constructor(t){es.set(this,void 0),is(this,es,t,"f")}dom(){return ss(this,es,"f").domArray}domItem(t){const e=this.dom(),i=e[t];if(i&&!i.destroyed)return i;e.splice(t,1)}async loadOptions(t){var e,i,s;const o=null!==(e=t.tagId)&&void 0!==e?e:`tsparticles${Math.floor(1e4*Math.random())}`,{options:n,index:a}=t;let r=null!==(i=t.element)&&void 0!==i?i:document.getElementById(o);r||(r=document.createElement("div"),r.id=o,null===(s=document.querySelector("body"))||void 0===s||s.append(r));const l=n instanceof Array?z(n,a):n,c=this.dom(),h=c.findIndex((t=>t.id===o));if(h>=0){const t=this.domItem(h);t&&!t.destroyed&&(t.destroy(),c.splice(h,1))}let d;if("canvas"===r.tagName.toLowerCase())d=r,d.dataset[St.generatedAttribute]="false";else{const t=r.getElementsByTagName("canvas");t.length?(d=t[0],d.dataset[St.generatedAttribute]="false"):(d=document.createElement("canvas"),d.dataset[St.generatedAttribute]="true",d.style.width="100%",d.style.height="100%",r.appendChild(d))}const u=new ts(ss(this,es,"f"),o,l);return h>=0?c.splice(h,0,u):c.push(u),u.canvas.loadCanvas(d),await u.start(),u}async loadRemoteOptions(t){const{url:e,index:i}=t,s=e instanceof Array?z(e,i):e;if(!s)return;const o=await fetch(s);if(!o.ok)return n=o.status,console.error(`Error tsParticles - fetch status: ${n}`),void console.error("Error tsParticles - File config not found");var n;const a=await o.json();return this.loadOptions({tagId:t.tagId,element:t.element,index:i,options:a})}load(t,e,i){const s={index:i};return"string"==typeof t?s.tagId=t:s.options=t,"number"==typeof e?s.index=null!=e?e:s.index:s.options=null!=e?e:s.options,this.loadOptions(s)}async set(t,e,i,s){const o={index:s};return"string"==typeof t?o.tagId=t:o.element=t,e instanceof HTMLElement?o.element=e:o.options=e,"number"==typeof i?o.index=i:o.options=null!=i?i:o.options,this.loadOptions(o)}async loadJSON(t,e,i){let s,o;return"number"==typeof e||void 0===e?s=t:(o=t,s=e),this.loadRemoteOptions({tagId:o,url:s,index:i})}async setJSON(t,e,i,s){let o,n,a,r;return t instanceof HTMLElement?(r=t,o=e,a=i):(n=t,r=e,o=i,a=s),this.loadRemoteOptions({tagId:n,url:o,index:a,element:r})}setOnClickHandler(t){const e=this.dom();if(0===e.length)throw new Error("Can only set click handlers after calling tsParticles.load() or tsParticles.loadJSON()");for(const i of e)i.addClickHandler(t)}}es=new WeakMap;var ns,as,rs=function(t,e,i,s,o){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?o.call(t,i):o?o.value=i:e.set(t,i),i},ls=function(t,e,i,s){if("a"===i&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?s:"a"===i?s.call(t):s?s.value:e.get(t)};class cs{constructor(){ns.set(this,void 0),as.set(this,void 0),rs(this,ns,!1,"f"),this.domArray=[],rs(this,as,new os(this),"f"),this.plugins=new Wt(this)}init(){ls(this,ns,"f")||rs(this,ns,!0,"f")}async loadFromArray(t,e,i){return ls(this,as,"f").load(t,e,i)}async load(t,e){return ls(this,as,"f").load(t,e)}async set(t,e,i){return ls(this,as,"f").set(t,e,i)}async loadJSON(t,e,i){return ls(this,as,"f").loadJSON(t,e,i)}async setJSON(t,e,i,s){return ls(this,as,"f").setJSON(t,e,i,s)}setOnClickHandler(t){ls(this,as,"f").setOnClickHandler(t)}dom(){return ls(this,as,"f").dom()}domItem(t){return ls(this,as,"f").domItem(t)}async refresh(){for(const t of this.dom())await t.refresh()}async addShape(t,e,i,s,o){let n;n="function"==typeof e?{afterEffect:s,destroy:o,draw:e,init:i}:e,this.plugins.addShapeDrawer(t,n),await this.refresh()}async addPreset(t,e,i=!1){this.plugins.addPreset(t,e,i),await this.refresh()}async addPlugin(t){this.plugins.addPlugin(t),await this.refresh()}async addPathGenerator(t,e){this.plugins.addPathGenerator(t,e),await this.refresh()}async addInteractor(t,e){this.plugins.addInteractor(t,e),await this.refresh()}async addParticleUpdater(t,e){this.plugins.addParticleUpdater(t,e),await this.refresh()}}ns=new WeakMap,as=new WeakMap;const hs=new cs;hs.init();const{particlesJS:ds,pJSDom:us}=(t=>{const e=(e,i)=>t.load(e,i);e.load=(e,i,s)=>{t.loadJSON(e,i).then((t=>{t&&s(t)})).catch((()=>{s(void 0)}))},e.setOnClickHandler=e=>{t.setOnClickHandler(e)};return{particlesJS:e,pJSDom:t.dom()}})(hs);return e}()}));
1
+ /*! tsParticles v1.41.3 by Matteo Bruni */
2
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var s in i)("object"==typeof exports?exports:t)[s]=i[s]}}(window,(function(){return function(){"use strict";var t={d:function(e,i){for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function i(t,e,i){return Math.min(Math.max(t,e),i)}function s(t,e,i,s){return Math.floor((t*i+e*s)/(i+s))}function o(t){const e=r(t);let i=a(t);return e===i&&(i=0),Math.random()*(e-i)+i}function n(t){return"number"==typeof t?t:o(t)}function a(t){return"number"==typeof t?t:t.min}function r(t){return"number"==typeof t?t:t.max}function l(t,e){if(t===e||void 0===e&&"number"==typeof t)return t;const i=a(t),s=r(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(s,e)}:l(i,s)}function c(t){const e=t.random,{enable:i,minimumValue:s}="boolean"==typeof e?{enable:e,minimumValue:0}:e;return n(i?l(t.value,s):t.value)}function h(t,e){const i=t.x-e.x,s=t.y-e.y;return{dx:i,dy:s,distance:Math.sqrt(i*i+s*s)}}function d(t,e){return h(t,e).distance}function u(t){if("number"==typeof t)return t*Math.PI/180;switch(t){case"top":return-Math.PI/2;case"top-right":return-Math.PI/4;case"right":return 0;case"bottom-right":return Math.PI/4;case"bottom":return Math.PI/2;case"bottom-left":return 3*Math.PI/4;case"left":return Math.PI;case"top-left":return-3*Math.PI/4;case"none":default:return Math.random()*Math.PI*2}}function v(t){const e=Gt.origin;return e.length=1,e.angle=t,e}function p(t,e,i,s){return Gt.create(t.x*(i-s)/(i+s)+2*e.x*s/(i+s),t.y)}function f(t,e){switch(e){case"ease-out-quad":return 1-(1-t)**2;case"ease-out-cubic":return 1-(1-t)**3;case"ease-out-quart":return 1-(1-t)**4;case"ease-out-quint":return 1-(1-t)**5;case"ease-out-expo":return 1===t?1:1-Math.pow(2,-10*t);case"ease-out-sine":return Math.sin(t*Math.PI/2);case"ease-out-back":{const e=1.70158;return 1+(e+1)*Math.pow(t-1,3)+e*Math.pow(t-1,2)}case"ease-out-circ":return Math.sqrt(1-Math.pow(t-1,2));default:return t}}function m(t,e,i,s,o,n){const a={bounced:!1};return e.min>=s.min&&e.min<=s.max&&e.max>=s.min&&e.max<=s.max&&(t.max>=i.min&&t.max<=(i.max+i.min)/2&&o>0||t.min<=i.max&&t.min>(i.max+i.min)/2&&o<0)&&(a.velocity=o*-n,a.bounced=!0),a}function y(t,e){if(e instanceof Array){for(const i of e)if(t.matches(i))return!0;return!1}return t.matches(e)}function g(){return"undefined"==typeof window||!window||void 0===window.document||!window.document}function w(){return g()?t=>setTimeout(t):t=>(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||window.setTimeout)(t)}function b(){return g()?t=>clearTimeout(t):t=>(window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||window.clearTimeout)(t)}function x(t,e){return t===e||e instanceof Array&&e.indexOf(t)>-1}async function k(t){var e,i;try{await document.fonts.load(`${null!==(e=t.weight)&&void 0!==e?e:"400"} 36px '${null!==(i=t.font)&&void 0!==i?i:"Verdana"}'`)}catch(t){}}function M(t){return Math.floor(Math.random()*t.length)}function z(t,e,i=!0){return t[void 0!==e&&i?e%t.length:M(t)]}function P(t,e,i,s){return C(T(t,null!=i?i:0),e,s)}function C(t,e,i){let s=!0;return i&&"bottom"!==i||(s=t.top<e.height),!s||i&&"left"!==i||(s=t.right>0),!s||i&&"right"!==i||(s=t.left<e.width),!s||i&&"top"!==i||(s=t.bottom>0),s}function T(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function S(t,...e){for(const i of e){if(null==i)continue;if("object"!=typeof i){t=i;continue}const e=Array.isArray(i);!e||"object"==typeof t&&t&&Array.isArray(t)?e||"object"==typeof t&&t&&!Array.isArray(t)||(t={}):t=[];for(const e in i){if("__proto__"===e)continue;const s=i[e],o="object"==typeof s,n=t;n[e]=o&&Array.isArray(s)?s.map((t=>S(n[e],t))):S(n[e],s)}}return t}function O(t,e){return e instanceof Array?!!e.find((e=>e.enable&&x(t,e.mode))):x(t,e.mode)}function I(t,e,i){if(e instanceof Array)for(const s of e){const e=s.mode;s.enable&&x(t,e)&&E(s,i)}else{const s=e.mode;e.enable&&x(t,s)&&E(e,i)}}function E(t,e){const i=t.selectors;if(i instanceof Array)for(const s of i)e(s,t);else e(i,t)}function R(t,e){if(e&&t)return t instanceof Array?t.find((t=>y(e,t.selectors))):y(e,t.selectors)?t:void 0}function A(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:Gt.create(c(t.options.bounce.horizontal),c(t.options.bounce.vertical))}}function D(t,e){const{x:i,y:s}=t.velocity.sub(e.velocity),[o,n]=[t.position,e.position],{dx:a,dy:r}=h(n,o);if(i*a+s*r>=0){const i=-Math.atan2(r,a),s=t.mass,o=e.mass,n=t.velocity.rotate(i),l=e.velocity.rotate(i),c=p(n,l,s,o),h=p(l,n,s,o),d=c.rotate(-i),u=h.rotate(-i);t.velocity.x=d.x*t.factor.x,t.velocity.y=d.y*t.factor.y,e.velocity.x=u.x*e.factor.x,e.velocity.y=u.y*e.factor.y}}function F(t,e){const i=T(t.getPosition(),t.getRadius()),s=m({min:i.left,max:i.right},{min:i.top,max:i.bottom},{min:e.left,max:e.right},{min:e.top,max:e.bottom},t.velocity.x,c(t.options.bounce.horizontal));s.bounced&&(void 0!==s.velocity&&(t.velocity.x=s.velocity),void 0!==s.position&&(t.position.x=s.position));const o=m({min:i.top,max:i.bottom},{min:i.left,max:i.right},{min:e.top,max:e.bottom},{min:e.left,max:e.right},t.velocity.y,c(t.options.bounce.vertical));o.bounced&&(void 0!==o.velocity&&(t.velocity.y=o.velocity),void 0!==o.position&&(t.position.y=o.position))}function L(t,e,i){let s=i;return s<0&&(s+=1),s>1&&(s-=1),s<1/6?t+6*(e-t)*s:s<.5?e:s<2/3?t+(e-t)*(2/3-s)*6:t}function q(t){if(t.startsWith("rgb")){const e=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return e?{a:e.length>4?parseFloat(e[5]):1,b:parseInt(e[3],10),g:parseInt(e[2],10),r:parseInt(e[1],10)}:void 0}if(t.startsWith("hsl")){const e=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return e?G({a:e.length>4?parseFloat(e[5]):1,h:parseInt(e[1],10),l:parseInt(e[3],10),s:parseInt(e[2],10)}):void 0}if(t.startsWith("hsv")){const e=/hsva?\(\s*(\d+)°\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return e?U({a:e.length>4?parseFloat(e[5]):1,h:parseInt(e[1],10),s:parseInt(e[2],10),v:parseInt(e[3],10)}):void 0}{const e=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,i=t.replace(e,((t,e,i,s,o)=>e+e+i+i+s+s+(void 0!==o?o+o:""))),s=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(i);return s?{a:void 0!==s[4]?parseInt(s[4],16)/255:1,b:parseInt(s[3],16),g:parseInt(s[2],16),r:parseInt(s[1],16)}:void 0}}function H(t,e,i=!0){var s,o,n;if(void 0===t)return;const a="string"==typeof t?{value:t}:t;let r;if("string"==typeof a.value)r=a.value===St.randomColorValue?K():B(a.value);else if(a.value instanceof Array){r=H({value:z(a.value,e,i)})}else{const t=a.value,e=null!==(s=t.rgb)&&void 0!==s?s:a.value;if(void 0!==e.r)r=e;else{const e=null!==(o=t.hsl)&&void 0!==o?o:a.value;if(void 0!==e.h&&void 0!==e.l)r=j(e);else{const e=null!==(n=t.hsv)&&void 0!==n?n:a.value;void 0!==e.h&&void 0!==e.v&&(r=Y(e))}}}return r}function V(t,e,i=!0){const s=H(t,e,i);return void 0!==s?_(s):void 0}function _(t){const e=t.r/255,i=t.g/255,s=t.b/255,o=Math.max(e,i,s),n=Math.min(e,i,s),a={h:0,l:(o+n)/2,s:0};return o!=n&&(a.s=a.l<.5?(o-n)/(o+n):(o-n)/(2-o-n),a.h=e===o?(i-s)/(o-n):a.h=i===o?2+(s-e)/(o-n):4+(e-i)/(o-n)),a.l*=100,a.s*=100,a.h*=60,a.h<0&&(a.h+=360),a}function W(t){var e;return null===(e=q(t))||void 0===e?void 0:e.a}function B(t){return q(t)}function j(t){const e={b:0,g:0,r:0},i={h:t.h/360,l:t.l/100,s:t.s/100};if(0===i.s)e.b=i.l,e.g=i.l,e.r=i.l;else{const t=i.l<.5?i.l*(1+i.s):i.l+i.s-i.l*i.s,s=2*i.l-t;e.r=L(s,t,i.h+1/3),e.g=L(s,t,i.h),e.b=L(s,t,i.h-1/3)}return e.r=Math.floor(255*e.r),e.g=Math.floor(255*e.g),e.b=Math.floor(255*e.b),e}function G(t){const e=j(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function $(t){const e=t.l/100,i=e+t.s/100*Math.min(e,1-e),s=i?2*(1-e/i):0;return{h:t.h,s:100*s,v:100*i}}function J(t){const e=$(t);return{a:t.a,h:e.h,s:e.s,v:e.v}}function N(t){const e=t.v/100,i=e*(1-t.s/100/2),s=0===i||1===i?0:(e-i)/Math.min(i,1-i);return{h:t.h,l:100*i,s:100*s}}function X(t){const e=N(t);return{a:t.a,h:e.h,l:e.l,s:e.s}}function Y(t){const e={b:0,g:0,r:0},i=t.h/60,s=t.s/100,o=t.v/100,n=o*s,a=n*(1-Math.abs(i%2-1));let r;if(i>=0&&i<=1?r={r:n,g:a,b:0}:i>1&&i<=2?r={r:a,g:n,b:0}:i>2&&i<=3?r={r:0,g:n,b:a}:i>3&&i<=4?r={r:0,g:a,b:n}:i>4&&i<=5?r={r:a,g:0,b:n}:i>5&&i<=6&&(r={r:n,g:0,b:a}),r){const t=o-n;e.r=Math.floor(255*(r.r+t)),e.g=Math.floor(255*(r.g+t)),e.b=Math.floor(255*(r.b+t))}return e}function U(t){const e=Y(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function Q(t){const e={r:t.r/255,g:t.g/255,b:t.b/255},i=Math.max(e.r,e.g,e.b),s=i-Math.min(e.r,e.g,e.b);let o=0;i===e.r?o=(e.g-e.b)/s*60:i===e.g?o=60*(2+(e.b-e.r)/s):i===e.b&&(o=60*(4+(e.r-e.g)/s));return{h:o,s:100*(i?s/i:0),v:100*i}}function Z(t){const e=Q(t);return{a:t.a,h:e.h,s:e.s,v:e.v}}function K(t){const e=null!=t?t:0;return{b:Math.floor(o(l(e,256))),g:Math.floor(o(l(e,256))),r:Math.floor(o(l(e,256)))}}function tt(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${null!=e?e:1})`}function et(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${null!=e?e:1})`}function it(t,e){return et(N(t),e)}function st(t,e,i,o){let n=t,a=e;return void 0===n.r&&(n=j(t)),void 0===a.r&&(a=j(e)),{b:s(n.b,a.b,i,o),g:s(n.g,a.g,i,o),r:s(n.r,a.r,i,o)}}function ot(t,e,i){var s,o;if(i===St.randomColorValue)return K();if("mid"!==i)return i;{const i=null!==(s=t.getFillColor())&&void 0!==s?s:t.getStrokeColor(),n=null!==(o=null==e?void 0:e.getFillColor())&&void 0!==o?o:null==e?void 0:e.getStrokeColor();if(i&&n&&e)return st(i,n,t.getRadius(),e.getRadius());{const t=null!=i?i:n;if(t)return j(t)}}}function nt(t,e,i){const s="string"==typeof t?t:t.value;return s===St.randomColorValue?i?H({value:s}):e?St.randomColorValue:St.midColorValue:H({value:s})}function at(t){return void 0!==t?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function rt(t,e,i){const s={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(lt(s.h,e.h,i),lt(s.s,e.s,i),lt(s.l,e.l,i)),s}function lt(t,e,i){if(t.enable=e.enable,t.enable){if(t.velocity=e.speed/100*i,e.sync)return;t.status=0,t.velocity*=Math.random(),t.value&&(t.value*=Math.random())}else t.velocity=0}function ct(t,e,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.closePath()}function ht(t,e,i){t.save(),t.fillStyle=null!=i?i:"rgba(0,0,0,0)",t.fillRect(0,0,e.width,e.height),t.restore()}function dt(t,e){t.clearRect(0,0,e.width,e.height)}function ut(t,e,i,s,o,n,a,r,l,c,u,v){let p=!1;if(d(i,s)<=o)ct(t,i,s),p=!0;else if(a){let e,a;const r=h(i,{x:s.x-n.width,y:s.y});if(r.distance<=o){const t=i.y-r.dy/r.dx*i.x;e={x:0,y:t},a={x:n.width,y:t}}else{const t=h(i,{x:s.x,y:s.y-n.height});if(t.distance<=o){const s=-(i.y-t.dy/t.dx*i.x)/(t.dy/t.dx);e={x:s,y:0},a={x:s,y:n.height}}else{const t=h(i,{x:s.x-n.width,y:s.y-n.height});if(t.distance<=o){const s=i.y-t.dy/t.dx*i.x;e={x:-s/(t.dy/t.dx),y:s},a={x:e.x+n.width,y:e.y+n.height}}}}e&&a&&(ct(t,i,e),ct(t,s,a),p=!0)}if(p){if(t.lineWidth=e,r&&(t.globalCompositeOperation=l),t.strokeStyle=tt(c,u),v.enable){const e=H(v.color);e&&(t.shadowBlur=v.blur,t.shadowColor=tt(e))}t.stroke()}}function vt(t,e,i,s,o,n,a,r){!function(t,e,i,s){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.lineTo(s.x,s.y),t.closePath()}(t,e,i,s),o&&(t.globalCompositeOperation=n),t.fillStyle=tt(a,r),t.fill()}function pt(t,e,i,s,o){t.save(),ct(t,s,o),t.lineWidth=e,t.strokeStyle=i,t.stroke(),t.restore()}function ft(t,e,i,s){const o=Math.floor(i.getRadius()/e.getRadius()),n=e.getFillColor(),a=i.getFillColor();if(!n||!a)return;const r=e.getPosition(),l=i.getPosition(),c=st(n,a,e.getRadius(),i.getRadius()),h=t.createLinearGradient(r.x,r.y,l.x,l.y);return h.addColorStop(0,et(n,s)),h.addColorStop(o>1?1:o,tt(c,s)),h.addColorStop(1,et(a,s)),h}function mt(t,e,i,s,o,n){t.save(),ct(t,i,s),t.strokeStyle=tt(o,n),t.lineWidth=e,t.stroke(),t.restore()}function yt(t,e,i,s,o,n,a,r,l,c,h,d){var u,v,p,f,m,y;const g=i.getPosition(),w=i.options.tilt,b=i.options.roll;if(e.save(),w.enable||b.enable){const t=b.enable&&i.roll,s=w.enable&&i.tilt,o=t&&("horizontal"===b.mode||"both"===b.mode),n=t&&("vertical"===b.mode||"both"===b.mode);e.setTransform(o?Math.cos(i.roll.angle):1,s?Math.cos(i.tilt.value)*i.tilt.cosDirection:0,s?Math.sin(i.tilt.value)*i.tilt.sinDirection:0,n?Math.sin(i.roll.angle):1,g.x,g.y)}else e.translate(g.x,g.y);e.beginPath();const x=(null!==(v=null===(u=i.rotate)||void 0===u?void 0:u.value)&&void 0!==v?v:0)+(i.options.rotate.path?i.velocity.angle:0);0!==x&&e.rotate(x),a&&(e.globalCompositeOperation=r);const k=i.shadowColor;if(h.enable&&k&&(e.shadowBlur=h.blur,e.shadowColor=tt(k),e.shadowOffsetX=h.offset.x,e.shadowOffsetY=h.offset.y),d){const t=d.angle.value,i="radial"===d.type?e.createRadialGradient(0,0,0,0,0,l):e.createLinearGradient(Math.cos(t)*-l,Math.sin(t)*-l,Math.cos(t)*l,Math.sin(t)*l);for(const t of d.colors)i.addColorStop(t.stop,et({h:t.value.h.value,s:t.value.s.value,l:t.value.l.value},null!==(f=null===(p=t.opacity)||void 0===p?void 0:p.value)&&void 0!==f?f:c));e.fillStyle=i}else o&&(e.fillStyle=o);const M=i.stroke;e.lineWidth=null!==(m=i.strokeWidth)&&void 0!==m?m:0,n&&(e.strokeStyle=n),gt(t,e,i,l,c,s),(null!==(y=null==M?void 0:M.width)&&void 0!==y?y:0)>0&&e.stroke(),i.close&&e.closePath(),i.fill&&e.fill(),e.restore(),e.save(),w.enable&&i.tilt?e.setTransform(1,Math.cos(i.tilt.value)*i.tilt.cosDirection,Math.sin(i.tilt.value)*i.tilt.sinDirection,1,g.x,g.y):e.translate(g.x,g.y),0!==x&&e.rotate(x),a&&(e.globalCompositeOperation=r),wt(t,e,i,l,c,s),e.restore()}function gt(t,e,i,s,o,n){if(!i.shape)return;const a=t.drawers.get(i.shape);a&&a.draw(e,i,s,o,n,t.retina.pixelRatio)}function wt(t,e,i,s,o,n){if(!i.shape)return;const a=t.drawers.get(i.shape);(null==a?void 0:a.afterEffect)&&a.afterEffect(e,i,s,o,n,t.retina.pixelRatio)}function bt(t,e,i){e.draw&&(t.save(),e.draw(t,i),t.restore())}function xt(t,e,i,s){void 0!==e.drawParticle&&(t.save(),e.drawParticle(t,i,s),t.restore())}function kt(t,e,i,s,o,n,a,r,l){const c=e.getPosition();if(i&&(t.strokeStyle=et(i,o)),0===n)return;t.lineWidth=n;const h=a*Math.PI/180;t.beginPath(),t.ellipse(c.x,c.y,s/2,2*s,h,r,l),t.stroke()}function Mt(t,e,i){return{h:t.h,s:t.s,l:t.l+("darken"===e?-1:1)*i}}t.r(e),t.d(e,{Canvas:function(){return Jt},Circle:function(){return Pt},CircleWarp:function(){return Tt},Constants:function(){return St},Container:function(){return ts},Engine:function(){return cs},EventListeners:function(){return It},ExternalInteractorBase:function(){return Et},FrameManager:function(){return Rt},InteractionManager:function(){return Lt},Loader:function(){return os},Main:function(){return cs},Particle:function(){return $i},Particles:function(){return Yi},ParticlesInteractorBase:function(){return qt},ParticlesMover:function(){return Ht},Plugins:function(){return Wt},Point:function(){return Bt},QuadTree:function(){return jt},Range:function(){return zt},Rectangle:function(){return Ct},Retina:function(){return Ui},Vector:function(){return Gt},Vector3d:function(){return $t},alterHsl:function(){return Mt},animate:function(){return w},areBoundsInside:function(){return C},arrayRandomIndex:function(){return M},calcEasing:function(){return f},calculateBounds:function(){return T},cancelAnimation:function(){return b},circleBounce:function(){return D},circleBounceDataFromParticle:function(){return A},clamp:function(){return i},clear:function(){return dt},collisionVelocity:function(){return p},colorMix:function(){return st},colorToHsl:function(){return V},colorToRgb:function(){return H},deepExtend:function(){return S},divMode:function(){return R},divModeExecute:function(){return I},drawConnectLine:function(){return pt},drawEllipse:function(){return kt},drawGrabLine:function(){return mt},drawLinkLine:function(){return ut},drawLinkTriangle:function(){return vt},drawParticle:function(){return yt},drawParticlePlugin:function(){return xt},drawPlugin:function(){return bt},drawShape:function(){return gt},drawShapeAfterEffect:function(){return wt},getDistance:function(){return d},getDistances:function(){return h},getHslAnimationFromHsl:function(){return rt},getHslFromAnimation:function(){return at},getLinkColor:function(){return ot},getLinkRandomColor:function(){return nt},getParticleBaseVelocity:function(){return v},getParticleDirectionAngle:function(){return u},getRandomRgbColor:function(){return K},getRangeMax:function(){return r},getRangeMin:function(){return a},getRangeValue:function(){return n},getStyleFromHsl:function(){return et},getStyleFromHsv:function(){return it},getStyleFromRgb:function(){return tt},getValue:function(){return c},gradient:function(){return ft},hslToHsv:function(){return $},hslToRgb:function(){return j},hslaToHsva:function(){return J},hslaToRgba:function(){return G},hsvToHsl:function(){return N},hsvToRgb:function(){return Y},hsvaToHsla:function(){return X},hsvaToRgba:function(){return U},isDivModeEnabled:function(){return O},isInArray:function(){return x},isPointInside:function(){return P},isSsr:function(){return g},itemFromArray:function(){return z},loadFont:function(){return k},mix:function(){return s},pJSDom:function(){return us},paintBase:function(){return ht},particlesJS:function(){return ds},randomInRange:function(){return o},rectBounce:function(){return F},rgbToHsl:function(){return _},rgbToHsv:function(){return Q},rgbaToHsva:function(){return Z},setRangeValue:function(){return l},singleDivModeExecute:function(){return E},stringToAlpha:function(){return W},stringToRgb:function(){return B},tsParticles:function(){return hs}});class zt{constructor(t,e){this.position={x:t,y:e}}}class Pt extends zt{constructor(t,e,i){super(t,e),this.radius=i}contains(t){return d(t,this.position)<=this.radius}intersects(t){const e=t,i=t,s=this.position,o=t.position,n=Math.abs(o.x-s.x),a=Math.abs(o.y-s.y),r=this.radius;if(void 0!==i.radius){return r+i.radius>Math.sqrt(n*n+a+a)}if(void 0!==e.size){const t=e.size.width,i=e.size.height,s=Math.pow(n-t,2)+Math.pow(a-i,2);return!(n>r+t||a>r+i)&&(n<=t||a<=i||s<=r*r)}return!1}}class Ct extends zt{constructor(t,e,i,s){super(t,e),this.size={height:s,width:i}}contains(t){const e=this.size.width,i=this.size.height,s=this.position;return t.x>=s.x&&t.x<=s.x+e&&t.y>=s.y&&t.y<=s.y+i}intersects(t){const e=t,i=t,s=this.size.width,o=this.size.height,n=this.position,a=t.position;if(void 0!==i.radius)return i.intersects(this);if(void 0!==e.size){const t=e.size,i=t.width,r=t.height;return a.x<n.x+s&&a.x+i>n.x&&a.y<n.y+o&&a.y+r>n.y}return!1}}class Tt extends Pt{constructor(t,e,i,s){super(t,e,i),this.canvasSize=s,this.canvasSize={height:s.height,width:s.width}}contains(t){if(super.contains(t))return!0;const e={x:t.x-this.canvasSize.width,y:t.y};if(super.contains(e))return!0;const i={x:t.x-this.canvasSize.width,y:t.y-this.canvasSize.height};if(super.contains(i))return!0;const s={x:t.x,y:t.y-this.canvasSize.height};return super.contains(s)}intersects(t){if(super.intersects(t))return!0;const e=t,i=t,s={x:t.position.x-this.canvasSize.width,y:t.position.y-this.canvasSize.height};if(void 0!==i.radius){const t=new Pt(s.x,s.y,2*i.radius);return super.intersects(t)}if(void 0!==e.size){const t=new Ct(s.x,s.y,2*e.size.width,2*e.size.height);return super.intersects(t)}return!1}}class St{}function Ot(t,e,i,s,o){if(s){let s={passive:!0};"boolean"==typeof o?s.capture=o:void 0!==o&&(s=o),t.addEventListener(e,i,s)}else{const s=o;t.removeEventListener(e,i,s)}}St.generatedAttribute="generated",St.randomColorValue="random",St.midColorValue="mid",St.touchEndEvent="touchend",St.mouseDownEvent="mousedown",St.mouseUpEvent="mouseup",St.mouseMoveEvent="mousemove",St.touchStartEvent="touchstart",St.touchMoveEvent="touchmove",St.mouseLeaveEvent="mouseleave",St.mouseOutEvent="mouseout",St.touchCancelEvent="touchcancel",St.resizeEvent="resize",St.visibilityChangeEvent="visibilitychange",St.noPolygonDataLoaded="No polygon data loaded.",St.noPolygonFound="No polygon found, you need to specify SVG url in config.";class It{constructor(t){this.container=t,this.canPush=!0,this.mouseMoveHandler=t=>this.mouseTouchMove(t),this.touchStartHandler=t=>this.mouseTouchMove(t),this.touchMoveHandler=t=>this.mouseTouchMove(t),this.touchEndHandler=()=>this.mouseTouchFinish(),this.mouseLeaveHandler=()=>this.mouseTouchFinish(),this.touchCancelHandler=()=>this.mouseTouchFinish(),this.touchEndClickHandler=t=>this.mouseTouchClick(t),this.mouseUpHandler=t=>this.mouseTouchClick(t),this.mouseDownHandler=()=>this.mouseDown(),this.visibilityChangeHandler=()=>this.handleVisibilityChange(),this.themeChangeHandler=t=>this.handleThemeChange(t),this.oldThemeChangeHandler=t=>this.handleThemeChange(t),this.resizeHandler=()=>this.handleWindowResize()}addListeners(){this.manageListeners(!0)}removeListeners(){this.manageListeners(!1)}manageListeners(t){var e;const i=this.container,s=i.actualOptions,o=s.interactivity.detectsOn;let n=St.mouseLeaveEvent;if("window"===o)i.interactivity.element=window,n=St.mouseOutEvent;else if("parent"===o&&i.canvas.element){const t=i.canvas.element;i.interactivity.element=null!==(e=t.parentElement)&&void 0!==e?e:t.parentNode}else i.interactivity.element=i.canvas.element;const a=!g()&&"undefined"!=typeof matchMedia&&matchMedia("(prefers-color-scheme: dark)");a&&(void 0!==a.addEventListener?Ot(a,"change",this.themeChangeHandler,t):void 0!==a.addListener&&(t?a.addListener(this.oldThemeChangeHandler):a.removeListener(this.oldThemeChangeHandler)));const r=i.interactivity.element;if(!r)return;const l=r;(s.interactivity.events.onHover.enable||s.interactivity.events.onClick.enable)&&(Ot(r,St.mouseMoveEvent,this.mouseMoveHandler,t),Ot(r,St.touchStartEvent,this.touchStartHandler,t),Ot(r,St.touchMoveEvent,this.touchMoveHandler,t),s.interactivity.events.onClick.enable?(Ot(r,St.touchEndEvent,this.touchEndClickHandler,t),Ot(r,St.mouseUpEvent,this.mouseUpHandler,t),Ot(r,St.mouseDownEvent,this.mouseDownHandler,t)):Ot(r,St.touchEndEvent,this.touchEndHandler,t),Ot(r,n,this.mouseLeaveHandler,t),Ot(r,St.touchCancelEvent,this.touchCancelHandler,t)),i.canvas.element&&(i.canvas.element.style.pointerEvents=l===i.canvas.element?"initial":"none"),s.interactivity.events.resize&&("undefined"!=typeof ResizeObserver?this.resizeObserver&&!t?(i.canvas.element&&this.resizeObserver.unobserve(i.canvas.element),this.resizeObserver.disconnect(),delete this.resizeObserver):!this.resizeObserver&&t&&i.canvas.element&&(this.resizeObserver=new ResizeObserver((t=>{t.find((t=>t.target===i.canvas.element))&&this.handleWindowResize()})),this.resizeObserver.observe(i.canvas.element)):Ot(window,St.resizeEvent,this.resizeHandler,t)),document&&Ot(document,St.visibilityChangeEvent,this.visibilityChangeHandler,t,!1)}handleWindowResize(){this.resizeTimeout&&(clearTimeout(this.resizeTimeout),delete this.resizeTimeout),this.resizeTimeout=setTimeout((async()=>{var t;return await(null===(t=this.container.canvas)||void 0===t?void 0:t.windowResize())}),500)}handleVisibilityChange(){const t=this.container,e=t.actualOptions;this.mouseTouchFinish(),e.pauseOnBlur&&((null===document||void 0===document?void 0:document.hidden)?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.getAnimationStatus()?t.play(!0):t.draw(!0)))}mouseDown(){const t=this.container.interactivity;if(t){const e=t.mouse;e.clicking=!0,e.downPosition=e.position}}mouseTouchMove(t){var e,i,s,o,n,a,r;const l=this.container,c=l.actualOptions;if(void 0===(null===(e=l.interactivity)||void 0===e?void 0:e.element))return;let h;l.interactivity.mouse.inside=!0;const d=l.canvas.element;if(t.type.startsWith("mouse")){this.canPush=!0;const e=t;if(l.interactivity.element===window){if(d){const t=d.getBoundingClientRect();h={x:e.clientX-t.left,y:e.clientY-t.top}}}else if("parent"===c.interactivity.detectsOn){const t=e.target,o=e.currentTarget,n=l.canvas.element;if(t&&o&&n){const i=t.getBoundingClientRect(),s=o.getBoundingClientRect(),a=n.getBoundingClientRect();h={x:e.offsetX+2*i.left-(s.left+a.left),y:e.offsetY+2*i.top-(s.top+a.top)}}else h={x:null!==(i=e.offsetX)&&void 0!==i?i:e.clientX,y:null!==(s=e.offsetY)&&void 0!==s?s:e.clientY}}else e.target===l.canvas.element&&(h={x:null!==(o=e.offsetX)&&void 0!==o?o:e.clientX,y:null!==(n=e.offsetY)&&void 0!==n?n:e.clientY})}else{this.canPush="touchmove"!==t.type;const e=t,i=e.touches[e.touches.length-1],s=null==d?void 0:d.getBoundingClientRect();h={x:i.clientX-(null!==(a=null==s?void 0:s.left)&&void 0!==a?a:0),y:i.clientY-(null!==(r=null==s?void 0:s.top)&&void 0!==r?r:0)}}const u=l.retina.pixelRatio;h&&(h.x*=u,h.y*=u),l.interactivity.mouse.position=h,l.interactivity.status=St.mouseMoveEvent}mouseTouchFinish(){const t=this.container.interactivity;if(void 0===t)return;const e=t.mouse;delete e.position,delete e.clickPosition,delete e.downPosition,t.status=St.mouseLeaveEvent,e.inside=!1,e.clicking=!1}mouseTouchClick(t){const e=this.container,i=e.actualOptions,s=e.interactivity.mouse;s.inside=!0;let o=!1;const n=s.position;if(void 0!==n&&i.interactivity.events.onClick.enable){for(const[,t]of e.plugins)if(void 0!==t.clickPositionValid&&(o=t.clickPositionValid(n),o))break;o||this.doMouseTouchClick(t),s.clicking=!1}}doMouseTouchClick(t){const e=this.container,i=e.actualOptions;if(this.canPush){const t=e.interactivity.mouse.position;if(!t)return;e.interactivity.mouse.clickPosition={x:t.x,y:t.y},e.interactivity.mouse.clickTime=(new Date).getTime();const s=i.interactivity.events.onClick;if(s.mode instanceof Array)for(const t of s.mode)this.handleClickMode(t);else this.handleClickMode(s.mode)}"touchend"===t.type&&setTimeout((()=>this.mouseTouchFinish()),500)}handleThemeChange(t){const e=t.matches?this.container.options.defaultDarkTheme:this.container.options.defaultLightTheme,i=this.container.options.themes.find((t=>t.name===e));i&&i.default.auto&&this.container.loadTheme(e)}handleClickMode(t){const e=this.container,i=e.actualOptions,s=i.interactivity.modes.push.quantity,o=i.interactivity.modes.remove.quantity;switch(t){case"push":if(s>0){const t=z([void 0,...i.interactivity.modes.push.groups]),o=void 0!==t?e.actualOptions.particles.groups[t]:void 0;e.particles.push(s,e.interactivity.mouse,o,t)}break;case"remove":e.particles.removeQuantity(o);break;case"bubble":e.bubble.clicking=!0;break;case"repulse":e.repulse.clicking=!0,e.repulse.count=0;for(const t of e.repulse.particles)t.velocity.setTo(t.initialVelocity);e.repulse.particles=[],e.repulse.finish=!1,setTimeout((()=>{e.destroyed||(e.repulse.clicking=!1)}),1e3*i.interactivity.modes.repulse.duration);break;case"attract":e.attract.clicking=!0,e.attract.count=0;for(const t of e.attract.particles)t.velocity.setTo(t.initialVelocity);e.attract.particles=[],e.attract.finish=!1,setTimeout((()=>{e.destroyed||(e.attract.clicking=!1)}),1e3*i.interactivity.modes.attract.duration);break;case"pause":e.getAnimationStatus()?e.pause():e.play()}for(const[,i]of e.plugins)i.handleClickMode&&i.handleClickMode(t)}}class Et{constructor(t){this.container=t,this.type=0}}class Rt{constructor(t){this.container=t}async nextFrame(t){var e;try{const i=this.container;if(void 0!==i.lastFrameTime&&t<i.lastFrameTime+1e3/i.fpsLimit)return void i.draw(!1);null!==(e=i.lastFrameTime)&&void 0!==e||(i.lastFrameTime=t);const s=t-i.lastFrameTime,o={value:s,factor:60*s/1e3};if(i.lifeTime+=o.value,i.lastFrameTime=t,s>1e3)return void i.draw(!1);if(await i.particles.draw(o),i.duration>0&&i.lifeTime>i.duration)return void i.destroy();i.getAnimationStatus()&&i.draw(!1)}catch(t){console.error("tsParticles error in animation loop",t)}}}var At,Dt=function(t,e,i,s,o){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?o.call(t,i):o?o.value=i:e.set(t,i),i},Ft=function(t,e,i,s){if("a"===i&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?s:"a"===i?s.call(t):s?s.value:e.get(t)};class Lt{constructor(t,e){this.container=e,At.set(this,void 0),Dt(this,At,t,"f"),this.externalInteractors=[],this.particleInteractors=[],this.init()}init(){const t=Ft(this,At,"f").plugins.getInteractors(this.container,!0);this.externalInteractors=[],this.particleInteractors=[];for(const e of t)switch(e.type){case 0:this.externalInteractors.push(e);break;case 1:this.particleInteractors.push(e)}}async externalInteract(t){for(const e of this.externalInteractors)e.isEnabled()&&await e.interact(t)}async particlesInteract(t,e){for(const e of this.externalInteractors)e.reset(t);for(const i of this.particleInteractors)i.isEnabled(t)&&await i.interact(t,e)}}At=new WeakMap;class qt{constructor(t){this.container=t,this.type=1}}class Ht{constructor(t){this.container=t}move(t,e){t.destroyed||(this.moveParticle(t,e),this.moveParallax(t))}moveParticle(t,e){var i,s,o,a,l;const c=t.options,d=c.move;if(!d.enable)return;const u=this.container,v=this.getProximitySpeedFactor(t),p=(null!==(i=(a=t.retina).moveSpeed)&&void 0!==i?i:a.moveSpeed=n(d.speed)*u.retina.pixelRatio)*u.retina.reduceFactor,f=null!==(s=(l=t.retina).moveDrift)&&void 0!==s?s:l.moveDrift=n(t.options.move.drift)*u.retina.pixelRatio,m=r(c.size.value)*u.retina.pixelRatio,y=p*((d.size?t.getRadius()/m:1)*v*(e.factor||1)/2);this.applyPath(t,e);const g=d.gravity,w=g.enable&&g.inverse?-1:1;g.enable&&y&&(t.velocity.y+=w*(g.acceleration*e.factor)/(60*y)),f&&y&&(t.velocity.x+=f*e.factor/(60*y));const b=t.moveDecay;1!=b&&t.velocity.multTo(b);const x=t.velocity.mult(y),k=null!==(o=t.retina.maxSpeed)&&void 0!==o?o:u.retina.maxSpeed;g.enable&&g.maxSpeed>0&&(!g.inverse&&x.y>=0&&x.y>=k||g.inverse&&x.y<=0&&x.y<=-k)&&(x.y=w*k,y&&(t.velocity.y=x.y/y));const M=t.options.zIndex,z=(1-t.zIndexFactor)**M.velocityRate;d.spin.enable?this.spin(t,y):(1!=z&&x.multTo(z),t.position.addTo(x),d.vibrate&&(t.position.x+=Math.sin(t.position.x*Math.cos(t.position.y)),t.position.y+=Math.cos(t.position.y*Math.sin(t.position.x)))),function(t){const e=t.initialPosition,{dx:i,dy:s}=h(e,t.position),o=Math.abs(i),n=Math.abs(s),a=t.retina.maxDistance.horizontal,r=t.retina.maxDistance.vertical;if(a||r)if((a&&o>=a||r&&n>=r)&&!t.misplaced)t.misplaced=!!a&&o>a||!!r&&n>r,a&&(t.velocity.x=t.velocity.y/2-t.velocity.x),r&&(t.velocity.y=t.velocity.x/2-t.velocity.y);else if((!a||o<a)&&(!r||n<r)&&t.misplaced)t.misplaced=!1;else if(t.misplaced){const i=t.position,s=t.velocity;a&&(i.x<e.x&&s.x<0||i.x>e.x&&s.x>0)&&(s.x*=-Math.random()),r&&(i.y<e.y&&s.y<0||i.y>e.y&&s.y>0)&&(s.y*=-Math.random())}}(t)}spin(t,e){const i=this.container;if(!t.spin)return;const s={x:"clockwise"===t.spin.direction?Math.cos:Math.sin,y:"clockwise"===t.spin.direction?Math.sin:Math.cos};t.position.x=t.spin.center.x+t.spin.radius*s.x(t.spin.angle),t.position.y=t.spin.center.y+t.spin.radius*s.y(t.spin.angle),t.spin.radius+=t.spin.acceleration;const o=Math.max(i.canvas.size.width,i.canvas.size.height);t.spin.radius>o/2?(t.spin.radius=o/2,t.spin.acceleration*=-1):t.spin.radius<0&&(t.spin.radius=0,t.spin.acceleration*=-1),t.spin.angle+=e/100*(1-t.spin.radius/o)}applyPath(t,e){const s=t.options.move.path;if(!s.enable)return;const o=this.container;if(t.lastPathTime<=t.pathDelay)return void(t.lastPathTime+=e.value);const n=o.pathGenerator.generate(t);t.velocity.addTo(n),s.clamp&&(t.velocity.x=i(t.velocity.x,-1,1),t.velocity.y=i(t.velocity.y,-1,1)),t.lastPathTime-=t.pathDelay}moveParallax(t){const e=this.container,i=e.actualOptions;if(g()||!i.interactivity.events.onHover.parallax.enable)return;const s=i.interactivity.events.onHover.parallax.force,o=e.interactivity.mouse.position;if(!o)return;const n=e.canvas.size.width/2,a=e.canvas.size.height/2,r=i.interactivity.events.onHover.parallax.smooth,l=t.getRadius()/s,c=(o.x-n)*l,h=(o.y-a)*l;t.offset.x+=(c-t.offset.x)/r,t.offset.y+=(h-t.offset.y)/r}getProximitySpeedFactor(t){const e=this.container,i=e.actualOptions;if(!x("slow",i.interactivity.events.onHover.mode))return 1;const s=this.container.interactivity.mouse.position;if(!s)return 1;const o=d(s,t.getPosition()),n=e.retina.slowModeRadius;if(o>n)return 1;return(o/n||0)/i.interactivity.modes.slow.factor}}var Vt,_t=function(t,e,i,s,o){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?o.call(t,i):o?o.value=i:e.set(t,i),i};class Wt{constructor(t){Vt.set(this,void 0),_t(this,Vt,t,"f"),this.plugins=[],this.interactorsInitializers=new Map,this.updatersInitializers=new Map,this.interactors=new Map,this.updaters=new Map,this.presets=new Map,this.drawers=new Map,this.pathGenerators=new Map}getPlugin(t){return this.plugins.find((e=>e.id===t))}addPlugin(t){this.getPlugin(t.id)||this.plugins.push(t)}getAvailablePlugins(t){const e=new Map;for(const i of this.plugins)i.needsPlugin(t.actualOptions)&&e.set(i.id,i.getPlugin(t));return e}loadOptions(t,e){for(const i of this.plugins)i.loadOptions(t,e)}getPreset(t){return this.presets.get(t)}addPreset(t,e,i=!1){!i&&this.getPreset(t)||this.presets.set(t,e)}addShapeDrawer(t,e){this.getShapeDrawer(t)||this.drawers.set(t,e)}getShapeDrawer(t){return this.drawers.get(t)}getSupportedShapes(){return this.drawers.keys()}getPathGenerator(t){return this.pathGenerators.get(t)}addPathGenerator(t,e){this.getPathGenerator(t)||this.pathGenerators.set(t,e)}getInteractors(t,e=!1){let i=this.interactors.get(t);return i&&!e||(i=[...this.interactorsInitializers.values()].map((e=>e(t))),this.interactors.set(t,i)),i}addInteractor(t,e){this.interactorsInitializers.set(t,e)}getUpdaters(t,e=!1){let i=this.updaters.get(t);return i&&!e||(i=[...this.updatersInitializers.values()].map((e=>e(t))),this.updaters.set(t,i)),i}addParticleUpdater(t,e){this.updatersInitializers.set(t,e)}}Vt=new WeakMap;class Bt{constructor(t,e){this.position=t,this.particle=e}}class jt{constructor(t,e){this.rectangle=t,this.capacity=e,this.points=[],this.divided=!1}subdivide(){const t=this.rectangle.position.x,e=this.rectangle.position.y,i=this.rectangle.size.width,s=this.rectangle.size.height,o=this.capacity;this.northEast=new jt(new Ct(t,e,i/2,s/2),o),this.northWest=new jt(new Ct(t+i/2,e,i/2,s/2),o),this.southEast=new jt(new Ct(t,e+s/2,i/2,s/2),o),this.southWest=new jt(new Ct(t+i/2,e+s/2,i/2,s/2),o),this.divided=!0}insert(t){var e,i,s,o,n;return!!this.rectangle.contains(t.position)&&(this.points.length<this.capacity?(this.points.push(t),!0):(this.divided||this.subdivide(),null!==(n=(null===(e=this.northEast)||void 0===e?void 0:e.insert(t))||(null===(i=this.northWest)||void 0===i?void 0:i.insert(t))||(null===(s=this.southEast)||void 0===s?void 0:s.insert(t))||(null===(o=this.southWest)||void 0===o?void 0:o.insert(t)))&&void 0!==n&&n))}queryCircle(t,e){return this.query(new Pt(t.x,t.y,e))}queryCircleWarp(t,e,i){const s=i,o=i;return this.query(new Tt(t.x,t.y,e,void 0!==s.canvas?s.canvas.size:o))}queryRectangle(t,e){return this.query(new Ct(t.x,t.y,e.width,e.height))}query(t,e){var i,s,o,n;const a=null!=e?e:[];if(!t.intersects(this.rectangle))return[];for(const e of this.points)!t.contains(e.position)&&d(t.position,e.position)>e.particle.getRadius()||a.push(e.particle);return this.divided&&(null===(i=this.northEast)||void 0===i||i.query(t,a),null===(s=this.northWest)||void 0===s||s.query(t,a),null===(o=this.southEast)||void 0===o||o.query(t,a),null===(n=this.southWest)||void 0===n||n.query(t,a)),a}}class Gt{constructor(t,e){let i,s;if(void 0===e){if("number"==typeof t)throw new Error("tsParticles - Vector not initialized correctly");const e=t;[i,s]=[e.x,e.y]}else[i,s]=[t,e];this.x=i,this.y=s}static clone(t){return Gt.create(t.x,t.y)}static create(t,e){return new Gt(t,e)}static get origin(){return Gt.create(0,0)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this.updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.x**2+this.y**2)}set length(t){this.updateFromAngle(this.angle,t)}add(t){return Gt.create(this.x+t.x,this.y+t.y)}addTo(t){this.x+=t.x,this.y+=t.y}sub(t){return Gt.create(this.x-t.x,this.y-t.y)}subFrom(t){this.x-=t.x,this.y-=t.y}mult(t){return Gt.create(this.x*t,this.y*t)}multTo(t){this.x*=t,this.y*=t}div(t){return Gt.create(this.x/t,this.y/t)}divTo(t){this.x/=t,this.y/=t}distanceTo(t){return this.sub(t).length}getLengthSq(){return this.x**2+this.y**2}distanceToSq(t){return this.sub(t).getLengthSq()}manhattanDistanceTo(t){return Math.abs(t.x-this.x)+Math.abs(t.y-this.y)}copy(){return Gt.clone(this)}setTo(t){this.x=t.x,this.y=t.y}rotate(t){return Gt.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t))}updateFromAngle(t,e){this.x=Math.cos(t)*e,this.y=Math.sin(t)*e}}class $t extends Gt{constructor(t,e,i){super(t,e),this.z=void 0===i?t.z:i}static clone(t){return $t.create(t.x,t.y,t.z)}static create(t,e,i){return new $t(t,e,i)}add(t){return t instanceof $t?$t.create(this.x+t.x,this.y+t.y,this.z+t.z):super.add(t)}addTo(t){super.addTo(t),t instanceof $t&&(this.z+=t.z)}sub(t){return t instanceof $t?$t.create(this.x-t.x,this.y-t.y,this.z-t.z):super.sub(t)}subFrom(t){super.subFrom(t),t instanceof $t&&(this.z-=t.z)}mult(t){return $t.create(this.x*t,this.y*t,this.z*t)}multTo(t){super.multTo(t),this.z*=t}div(t){return $t.create(this.x/t,this.y/t,this.z/t)}divTo(t){super.divTo(t),this.z/=t}copy(){return $t.clone(this)}setTo(t){super.setTo(t),t instanceof $t&&(this.z=t.z)}}class Jt{constructor(t){this.container=t,this.size={height:0,width:0},this.context=null,this.generatedCanvas=!1}init(){this.resize(),this.initStyle(),this.initCover(),this.initTrail(),this.initBackground(),this.paint()}loadCanvas(t){var e;this.generatedCanvas&&(null===(e=this.element)||void 0===e||e.remove()),this.generatedCanvas=t.dataset&&St.generatedAttribute in t.dataset?"true"===t.dataset[St.generatedAttribute]:this.generatedCanvas,this.element=t,this.originalStyle=S({},this.element.style),this.size.height=t.offsetHeight,this.size.width=t.offsetWidth,this.context=this.element.getContext("2d"),this.container.retina.init(),this.initBackground()}destroy(){var t;this.generatedCanvas&&(null===(t=this.element)||void 0===t||t.remove()),this.draw((t=>{dt(t,this.size)}))}paint(){const t=this.container.actualOptions;this.draw((e=>{t.backgroundMask.enable&&t.backgroundMask.cover&&this.coverColor?(dt(e,this.size),this.paintBase(tt(this.coverColor,this.coverColor.a))):this.paintBase()}))}clear(){const t=this.container.actualOptions,e=t.particles.move.trail;t.backgroundMask.enable?this.paint():e.enable&&e.length>0&&this.trailFillColor?this.paintBase(tt(this.trailFillColor,1/e.length)):this.draw((t=>{dt(t,this.size)}))}async windowResize(){if(!this.element)return;const t=this.container;this.resize();const e=t.updateActualOptions();t.particles.setDensity();for(const[,e]of t.plugins)void 0!==e.resize&&e.resize();e&&await t.refresh()}resize(){if(!this.element)return;const t=this.container,e=t.retina.pixelRatio,i=t.canvas.size,s=i.width,o=i.height;i.width=this.element.offsetWidth*e,i.height=this.element.offsetHeight*e,this.element.width=i.width,this.element.height=i.height,this.container.started&&(this.resizeFactor={width:i.width/s,height:i.height/o})}drawConnectLine(t,e){this.draw((i=>{var s;const o=this.lineStyle(t,e);if(!o)return;const n=t.getPosition(),a=e.getPosition();pt(i,null!==(s=t.retina.linksWidth)&&void 0!==s?s:this.container.retina.linksWidth,o,n,a)}))}drawGrabLine(t,e,i,s){const o=this.container;this.draw((n=>{var a;const r=t.getPosition();mt(n,null!==(a=t.retina.linksWidth)&&void 0!==a?a:o.retina.linksWidth,r,s,e,i)}))}drawParticle(t,e){var i,s,o,n,a,r;if(t.spawning||t.destroyed)return;const l=t.getFillColor(),c=null!==(i=t.getStrokeColor())&&void 0!==i?i:l;if(!l&&!c)return;let[h,d]=this.getPluginParticleColors(t);const u=t.options.twinkle.particles,v=u.enable&&Math.random()<u.frequency;if(!h||!d){const t=V(u.color);h||(h=v&&void 0!==t?t:l||void 0),d||(d=v&&void 0!==t?t:c||void 0)}const p=this.container.actualOptions,f=t.options.zIndex,m=(1-t.zIndexFactor)**f.opacityRate,y=t.getRadius(),g=v?u.opacity:null!==(n=null!==(s=t.bubble.opacity)&&void 0!==s?s:null===(o=t.opacity)||void 0===o?void 0:o.value)&&void 0!==n?n:1,w=null!==(r=null===(a=t.stroke)||void 0===a?void 0:a.opacity)&&void 0!==r?r:g,b=g*m,x=h?et(h,b):void 0;(x||d)&&this.draw((i=>{const s=(1-t.zIndexFactor)**f.sizeRate,o=d?et(d,w*m):x;if(y<=0)return;const n=this.container;for(const e of n.particles.updaters)e.beforeDraw&&e.beforeDraw(t);yt(this.container,i,t,e,x,o,p.backgroundMask.enable,p.backgroundMask.composite,y*s,b,t.options.shadow,t.gradient);for(const e of n.particles.updaters)e.afterDraw&&e.afterDraw(t)}))}drawPlugin(t,e){this.draw((i=>{bt(i,t,e)}))}drawParticlePlugin(t,e,i){this.draw((s=>{xt(s,t,e,i)}))}initBackground(){const t=this.container.actualOptions.background,e=this.element,i=null==e?void 0:e.style;if(i){if(t.color){const e=H(t.color);i.backgroundColor=e?tt(e,t.opacity):""}else i.backgroundColor="";i.backgroundImage=t.image||"",i.backgroundPosition=t.position||"",i.backgroundRepeat=t.repeat||"",i.backgroundSize=t.size||""}}draw(t){if(this.context)return t(this.context)}initCover(){const t=this.container.actualOptions.backgroundMask.cover,e=H(t.color);e&&(this.coverColor={r:e.r,g:e.g,b:e.b,a:t.opacity})}initTrail(){const t=this.container.actualOptions,e=H(t.particles.move.trail.fillColor);if(e){const i=t.particles.move.trail;this.trailFillColor={r:e.r,g:e.g,b:e.b,a:1/i.length}}}getPluginParticleColors(t){let e,i;for(const[,s]of this.container.plugins)if(!e&&s.particleFillColor&&(e=V(s.particleFillColor(t))),!i&&s.particleStrokeColor&&(i=V(s.particleStrokeColor(t))),e&&i)break;return[e,i]}initStyle(){const t=this.element,e=this.container.actualOptions;if(!t)return;const i=this.originalStyle;e.fullScreen.enable?(this.originalStyle=S({},t.style),t.style.setProperty("position","fixed","important"),t.style.setProperty("z-index",e.fullScreen.zIndex.toString(10),"important"),t.style.setProperty("top","0","important"),t.style.setProperty("left","0","important"),t.style.setProperty("width","100%","important"),t.style.setProperty("height","100%","important")):i&&(t.style.position=i.position,t.style.zIndex=i.zIndex,t.style.top=i.top,t.style.left=i.left,t.style.width=i.width,t.style.height=i.height);for(const i in e.style){if(!i||!e.style)continue;const s=e.style[i];s&&t.style.setProperty(i,s,"important")}}paintBase(t){this.draw((e=>{ht(e,this.size,t)}))}lineStyle(t,e){return this.draw((i=>{const s=this.container.actualOptions.interactivity.modes.connect;return ft(i,t,e,s.links.opacity)}))}}class Nt{constructor(){this.value="#fff"}static create(t,e){const i=new Nt;return i.load(t),void 0!==e&&("string"==typeof e||e instanceof Array?i.load({value:e}):i.load(e)),i}load(t){void 0!==(null==t?void 0:t.value)&&(this.value=t.value)}}class Xt{constructor(){this.color=new Nt,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=Nt.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.position&&(this.position=t.position),void 0!==t.repeat&&(this.repeat=t.repeat),void 0!==t.size&&(this.size=t.size),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Yt{constructor(){this.color=new Nt,this.opacity=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=Nt.create(this.color,t.color)),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Ut{constructor(){this.composite="destination-out",this.cover=new Yt,this.enable=!1}load(t){if(void 0!==t){if(void 0!==t.composite&&(this.composite=t.composite),void 0!==t.cover){const e=t.cover,i="string"==typeof t.cover?{color:t.cover}:t.cover;this.cover.load(void 0!==e.color?e:{color:i})}void 0!==t.enable&&(this.enable=t.enable)}}}class Qt{constructor(){this.enable=!0,this.zIndex=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.zIndex&&(this.zIndex=t.zIndex))}}class Zt{constructor(){this.enable=!1,this.mode=[]}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode))}}class Kt{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type="circle"}get elementId(){return this.ids}set elementId(t){this.ids=t}get el(){return this.elementId}set el(t){this.elementId=t}get ids(){return this.selectors instanceof Array?this.selectors.map((t=>t.replace("#",""))):this.selectors.replace("#","")}set ids(t){this.selectors=t instanceof Array?t.map((t=>`#${t}`)):`#${t}`}load(t){var e,i;if(void 0===t)return;const s=null!==(i=null!==(e=t.ids)&&void 0!==e?e:t.elementId)&&void 0!==i?i:t.el;void 0!==s&&(this.ids=s),void 0!==t.selectors&&(this.selectors=t.selectors),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.type&&(this.type=t.type)}}class te{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.force&&(this.force=t.force),void 0!==t.smooth&&(this.smooth=t.smooth))}}class ee{constructor(){this.enable=!1,this.mode=[],this.parallax=new te}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.parallax.load(t.parallax))}}class ie{constructor(){this.onClick=new Zt,this.onDiv=new Kt,this.onHover=new ee,this.resize=!0}get onclick(){return this.onClick}set onclick(t){this.onClick=t}get ondiv(){return this.onDiv}set ondiv(t){this.onDiv=t}get onhover(){return this.onHover}set onhover(t){this.onHover=t}load(t){var e,i,s;if(void 0===t)return;this.onClick.load(null!==(e=t.onClick)&&void 0!==e?e:t.onclick);const o=null!==(i=t.onDiv)&&void 0!==i?i:t.ondiv;void 0!==o&&(o instanceof Array?this.onDiv=o.map((t=>{const e=new Kt;return e.load(t),e})):(this.onDiv=new Kt,this.onDiv.load(o))),this.onHover.load(null!==(s=t.onHover)&&void 0!==s?s:t.onhover),void 0!==t.resize&&(this.resize=t.resize)}}class se{constructor(){this.distance=200,this.duration=.4,this.easing="ease-out-quad",this.factor=1,this.maxSpeed=50,this.speed=1}load(t){t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.easing&&(this.easing=t.easing),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed),void 0!==t.speed&&(this.speed=t.speed))}}class oe{constructor(){this.distance=200}load(t){t&&void 0!==t.distance&&(this.distance=t.distance)}}class ne{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(t){void 0!==t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.mix&&(this.mix=t.mix),void 0!==t.opacity&&(this.opacity=t.opacity),void 0!==t.color&&(t.color instanceof Array?this.color=t.color.map((t=>Nt.create(void 0,t))):(this.color instanceof Array&&(this.color=new Nt),this.color=Nt.create(this.color,t.color))),void 0!==t.size&&(this.size=t.size))}}class ae extends ne{constructor(){super(),this.selectors=[]}get ids(){return this.selectors instanceof Array?this.selectors.map((t=>t.replace("#",""))):this.selectors.replace("#","")}set ids(t){this.selectors=t instanceof Array?t.map((t=>`#${t}`)):`#${t}`}load(t){super.load(t),void 0!==t&&(void 0!==t.ids&&(this.ids=t.ids),void 0!==t.selectors&&(this.selectors=t.selectors))}}class re extends ne{load(t){super.load(t),void 0!==t&&void 0!==t.divs&&(t.divs instanceof Array?this.divs=t.divs.map((t=>{const e=new ae;return e.load(t),e})):((this.divs instanceof Array||!this.divs)&&(this.divs=new ae),this.divs.load(t.divs)))}}class le{constructor(){this.opacity=.5}load(t){void 0!==t&&void 0!==t.opacity&&(this.opacity=t.opacity)}}class ce{constructor(){this.distance=80,this.links=new le,this.radius=60}get line_linked(){return this.links}set line_linked(t){this.links=t}get lineLinked(){return this.links}set lineLinked(t){this.links=t}load(t){var e,i;void 0!==t&&(void 0!==t.distance&&(this.distance=t.distance),this.links.load(null!==(i=null!==(e=t.links)&&void 0!==e?e:t.lineLinked)&&void 0!==i?i:t.line_linked),void 0!==t.radius&&(this.radius=t.radius))}}class he{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(t){void 0!==t&&(void 0!==t.blink&&(this.blink=t.blink),void 0!==t.color&&(this.color=Nt.create(this.color,t.color)),void 0!==t.consent&&(this.consent=t.consent),void 0!==t.opacity&&(this.opacity=t.opacity))}}class de{constructor(){this.distance=100,this.links=new he}get line_linked(){return this.links}set line_linked(t){this.links=t}get lineLinked(){return this.links}set lineLinked(t){this.links=t}load(t){var e,i;void 0!==t&&(void 0!==t.distance&&(this.distance=t.distance),this.links.load(null!==(i=null!==(e=t.links)&&void 0!==e?e:t.lineLinked)&&void 0!==i?i:t.line_linked))}}class ue{constructor(){this.start=new Nt,this.stop=new Nt,this.start.value="#ffffff",this.stop.value="#000000"}load(t){void 0!==t&&(this.start=Nt.create(this.start,t.start),this.stop=Nt.create(this.stop,t.stop))}}class ve{constructor(){this.gradient=new ue,this.radius=1e3}load(t){void 0!==t&&(this.gradient.load(t.gradient),void 0!==t.radius&&(this.radius=t.radius))}}class pe{constructor(){this.color=new Nt,this.color.value="#000000",this.length=2e3}load(t){void 0!==t&&(this.color=Nt.create(this.color,t.color),void 0!==t.length&&(this.length=t.length))}}class fe{constructor(){this.area=new ve,this.shadow=new pe}load(t){void 0!==t&&(this.area.load(t.area),this.shadow.load(t.shadow))}}class me{constructor(){this.default=!0,this.groups=[],this.quantity=4}get particles_nb(){return this.quantity}set particles_nb(t){this.quantity=t}load(t){var e;if(void 0===t)return;void 0!==t.default&&(this.default=t.default),void 0!==t.groups&&(this.groups=t.groups.map((t=>t))),this.groups.length||(this.default=!0);const i=null!==(e=t.quantity)&&void 0!==e?e:t.particles_nb;void 0!==i&&(this.quantity=i)}}class ye{constructor(){this.quantity=2}get particles_nb(){return this.quantity}set particles_nb(t){this.quantity=t}load(t){var e;if(void 0===t)return;const i=null!==(e=t.quantity)&&void 0!==e?e:t.particles_nb;void 0!==i&&(this.quantity=i)}}class ge{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing="ease-out-quad"}load(t){t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.easing&&(this.easing=t.easing),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed))}}class we extends ge{constructor(){super(),this.selectors=[]}get ids(){return this.selectors instanceof Array?this.selectors.map((t=>t.replace("#",""))):this.selectors.replace("#","")}set ids(t){this.selectors=t instanceof Array?t.map((()=>`#${t}`)):`#${t}`}load(t){super.load(t),void 0!==t&&(void 0!==t.ids&&(this.ids=t.ids),void 0!==t.selectors&&(this.selectors=t.selectors))}}class be extends ge{load(t){super.load(t),void 0!==(null==t?void 0:t.divs)&&(t.divs instanceof Array?this.divs=t.divs.map((t=>{const e=new we;return e.load(t),e})):((this.divs instanceof Array||!this.divs)&&(this.divs=new we),this.divs.load(t.divs)))}}class xe{constructor(){this.factor=3,this.radius=200}get active(){return!1}set active(t){}load(t){void 0!==t&&(void 0!==t.factor&&(this.factor=t.factor),void 0!==t.radius&&(this.radius=t.radius))}}class ke{constructor(){this.delay=1,this.pauseOnStop=!1,this.quantity=1}load(t){void 0!==t&&(void 0!==t.delay&&(this.delay=t.delay),void 0!==t.quantity&&(this.quantity=t.quantity),void 0!==t.particles&&(this.particles=S({},t.particles)),void 0!==t.pauseOnStop&&(this.pauseOnStop=t.pauseOnStop))}}class Me{constructor(){this.attract=new se,this.bounce=new oe,this.bubble=new re,this.connect=new ce,this.grab=new de,this.light=new fe,this.push=new me,this.remove=new ye,this.repulse=new be,this.slow=new xe,this.trail=new ke}load(t){void 0!==t&&(this.attract.load(t.attract),this.bubble.load(t.bubble),this.connect.load(t.connect),this.grab.load(t.grab),this.light.load(t.light),this.push.load(t.push),this.remove.load(t.remove),this.repulse.load(t.repulse),this.slow.load(t.slow),this.trail.load(t.trail))}}class ze{constructor(){this.detectsOn="window",this.events=new ie,this.modes=new Me}get detect_on(){return this.detectsOn}set detect_on(t){this.detectsOn=t}load(t){var e,i,s;if(void 0===t)return;const o=null!==(e=t.detectsOn)&&void 0!==e?e:t.detect_on;void 0!==o&&(this.detectsOn=o),this.events.load(t.events),this.modes.load(t.modes),!0===(null===(s=null===(i=t.modes)||void 0===i?void 0:i.slow)||void 0===s?void 0:s.active)&&(this.events.onHover.mode instanceof Array?this.events.onHover.mode.indexOf("slow")<0&&this.events.onHover.mode.push("slow"):"slow"!==this.events.onHover.mode&&(this.events.onHover.mode=[this.events.onHover.mode,"slow"]))}}class Pe{load(t){var e,i;t&&(void 0!==t.position&&(this.position={x:null!==(e=t.position.x)&&void 0!==e?e:50,y:null!==(i=t.position.y)&&void 0!==i?i:50}),void 0!==t.options&&(this.options=S({},t.options)))}}class Ce{constructor(){this.factor=4,this.value=!0}load(t){t&&(void 0!==t.factor&&(this.factor=t.factor),void 0!==t.value&&(this.value=t.value))}}class Te{constructor(){this.disable=!1,this.reduce=new Ce}load(t){t&&(void 0!==t.disable&&(this.disable=t.disable),this.reduce.load(t.reduce))}}class Se{constructor(){this.count=0,this.enable=!1,this.offset=0,this.speed=1,this.sync=!0}load(t){void 0!==t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(this.offset=l(t.offset)),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class Oe{constructor(){this.h=new Se,this.s=new Se,this.l=new Se}load(t){t&&(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}class Ie extends Nt{constructor(){super(),this.animation=new Oe}static create(t,e){const i=new Ie;return i.load(t),void 0!==e&&("string"==typeof e||e instanceof Array?i.load({value:e}):i.load(e)),i}load(t){if(super.load(t),!t)return;const e=t.animation;void 0!==e&&(void 0!==e.enable?this.animation.h.load(e):this.animation.load(t.animation))}}class Ee{constructor(){this.angle=new Re,this.colors=[],this.type="random"}load(t){t&&(this.angle.load(t.angle),void 0!==t.colors&&(this.colors=t.colors.map((t=>{const e=new De;return e.load(t),e}))),void 0!==t.type&&(this.type=t.type))}}class Re{constructor(){this.value=0,this.animation=new Fe,this.direction="clockwise"}load(t){t&&(this.animation.load(t.animation),void 0!==t.value&&(this.value=t.value),void 0!==t.direction&&(this.direction=t.direction))}}class Ae{constructor(){this.value=0,this.animation=new Le}load(t){t&&(this.animation.load(t.animation),void 0!==t.value&&(this.value=l(t.value)))}}class De{constructor(){this.stop=0,this.value=new Ie}load(t){t&&(void 0!==t.stop&&(this.stop=t.stop),this.value=Ie.create(this.value,t.value),void 0!==t.opacity&&(this.opacity=new Ae,"number"==typeof t.opacity?this.opacity.value=t.opacity:this.opacity.load(t.opacity)))}}class Fe{constructor(){this.count=0,this.enable=!1,this.speed=0,this.sync=!1}load(t){t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class Le{constructor(){this.count=0,this.enable=!1,this.speed=0,this.sync=!1,this.startValue="random"}load(t){t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync),void 0!==t.startValue&&(this.startValue=t.startValue))}}class qe{constructor(){this.enable=!1,this.minimumValue=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.minimumValue&&(this.minimumValue=t.minimumValue))}}class He{constructor(){this.random=new qe,this.value=0}load(t){t&&("boolean"==typeof t.random?this.random.enable=t.random:this.random.load(t.random),void 0!==t.value&&(this.value=l(t.value,this.random.enable?this.random.minimumValue:void 0)))}}class Ve extends He{constructor(){super(),this.random.minimumValue=.1,this.value=1}}class _e{constructor(){this.horizontal=new Ve,this.vertical=new Ve}load(t){t&&(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}class We{constructor(){this.enable=!0,this.retries=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.retries&&(this.retries=t.retries))}}class Be{constructor(){this.bounce=new _e,this.enable=!1,this.mode="bounce",this.overlap=new We}load(t){void 0!==t&&(this.bounce.load(t.bounce),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.overlap.load(t.overlap))}}class je extends He{constructor(){super(),this.value=3}}class Ge extends He{constructor(){super(),this.value={min:4,max:9}}}class $e{constructor(){this.count=1,this.factor=new je,this.rate=new Ge,this.sizeOffset=!0}load(t){t&&(void 0!==t.count&&(this.count=t.count),this.factor.load(t.factor),this.rate.load(t.rate),void 0!==t.particles&&(this.particles=S({},t.particles)),void 0!==t.sizeOffset&&(this.sizeOffset=t.sizeOffset))}}class Je{constructor(){this.mode="none",this.split=new $e}load(t){t&&(void 0!==t.mode&&(this.mode=t.mode),this.split.load(t.split))}}class Ne extends He{constructor(){super(),this.sync=!1}load(t){t&&(super.load(t),void 0!==t.sync&&(this.sync=t.sync))}}class Xe extends He{constructor(){super(),this.random.minimumValue=1e-4,this.sync=!1}load(t){void 0!==t&&(super.load(t),void 0!==t.sync&&(this.sync=t.sync))}}class Ye{constructor(){this.count=0,this.delay=new Ne,this.duration=new Xe}load(t){void 0!==t&&(void 0!==t.count&&(this.count=t.count),this.delay.load(t.delay),this.duration.load(t.duration))}}class Ue{constructor(){this.blur=5,this.color=new Nt,this.enable=!1,this.color.value="#00ff00"}load(t){void 0!==t&&(void 0!==t.blur&&(this.blur=t.blur),this.color=Nt.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable))}}class Qe{constructor(){this.enable=!1,this.frequency=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=Nt.create(this.color,t.color)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Ze{constructor(){this.blink=!1,this.color=new Nt,this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new Ue,this.triangles=new Qe,this.width=1,this.warp=!1}load(t){void 0!==t&&(void 0!==t.id&&(this.id=t.id),void 0!==t.blink&&(this.blink=t.blink),this.color=Nt.create(this.color,t.color),void 0!==t.consent&&(this.consent=t.consent),void 0!==t.distance&&(this.distance=t.distance),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity),this.shadow.load(t.shadow),this.triangles.load(t.triangles),void 0!==t.width&&(this.width=t.width),void 0!==t.warp&&(this.warp=t.warp))}}class Ke{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}get rotateX(){return this.rotate.x}set rotateX(t){this.rotate.x=t}get rotateY(){return this.rotate.y}set rotateY(t){this.rotate.y=t}load(t){var e,i,s,o;if(!t)return;void 0!==t.distance&&(this.distance=t.distance),void 0!==t.enable&&(this.enable=t.enable);const n=null!==(i=null===(e=t.rotate)||void 0===e?void 0:e.x)&&void 0!==i?i:t.rotateX;void 0!==n&&(this.rotate.x=n);const a=null!==(o=null===(s=t.rotate)||void 0===s?void 0:s.y)&&void 0!==o?o:t.rotateY;void 0!==a&&(this.rotate.y=a)}}class ti{constructor(){this.offset=0,this.value=90}load(t){void 0!==t&&(void 0!==t.offset&&(this.offset=t.offset),void 0!==t.value&&(this.value=t.value))}}class ei{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=t.acceleration),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.inverse&&(this.inverse=t.inverse),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed))}}class ii{constructor(){this.default="out"}load(t){var e,i,s,o;t&&(void 0!==t.default&&(this.default=t.default),this.bottom=null!==(e=t.bottom)&&void 0!==e?e:t.default,this.left=null!==(i=t.left)&&void 0!==i?i:t.default,this.right=null!==(s=t.right)&&void 0!==s?s:t.default,this.top=null!==(o=t.top)&&void 0!==o?o:t.default)}}class si extends He{constructor(){super()}}class oi{constructor(){this.clamp=!0,this.delay=new si,this.enable=!1,this.options={}}load(t){void 0!==t&&(void 0!==t.clamp&&(this.clamp=t.clamp),this.delay.load(t.delay),void 0!==t.enable&&(this.enable=t.enable),this.generator=t.generator,t.options&&(this.options=S(this.options,t.options)))}}class ni{constructor(){this.acceleration=0,this.enable=!1}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=l(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),this.position=t.position?S({},t.position):void 0)}}class ai{constructor(){this.enable=!1,this.length=10,this.fillColor=new Nt,this.fillColor.value="#000000"}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),this.fillColor=Nt.create(this.fillColor,t.fillColor),void 0!==t.length&&(this.length=t.length))}}class ri{constructor(){this.angle=new ti,this.attract=new Ke,this.decay=0,this.distance={},this.direction="none",this.drift=0,this.enable=!1,this.gravity=new ei,this.path=new oi,this.outModes=new ii,this.random=!1,this.size=!1,this.speed=2,this.spin=new ni,this.straight=!1,this.trail=new ai,this.vibrate=!1,this.warp=!1}get collisions(){return!1}set collisions(t){}get bounce(){return this.collisions}set bounce(t){this.collisions=t}get out_mode(){return this.outMode}set out_mode(t){this.outMode=t}get outMode(){return this.outModes.default}set outMode(t){this.outModes.default=t}get noise(){return this.path}set noise(t){this.path=t}load(t){var e,i,s;if(void 0===t)return;void 0!==t.angle&&("number"==typeof t.angle?this.angle.value=t.angle:this.angle.load(t.angle)),this.attract.load(t.attract),void 0!==t.decay&&(this.decay=t.decay),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.distance&&(this.distance="number"==typeof t.distance?{horizontal:t.distance,vertical:t.distance}:S({},t.distance)),void 0!==t.drift&&(this.drift=l(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);const o=null!==(e=t.outMode)&&void 0!==e?e:t.out_mode;void 0===t.outModes&&void 0===o||("string"==typeof t.outModes||void 0===t.outModes&&void 0!==o?this.outModes.load({default:null!==(i=t.outModes)&&void 0!==i?i:o}):this.outModes.load(t.outModes)),this.path.load(null!==(s=t.path)&&void 0!==s?s:t.noise),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=l(t.speed)),this.spin.load(t.spin),void 0!==t.straight&&(this.straight=t.straight),this.trail.load(t.trail),void 0!==t.vibrate&&(this.vibrate=t.vibrate),void 0!==t.warp&&(this.warp=t.warp)}}class li{constructor(){this.count=0,this.enable=!1,this.speed=1,this.sync=!1}load(t){t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class ci extends li{constructor(){super(),this.destroy="none",this.enable=!1,this.speed=2,this.startValue="random",this.sync=!1}get opacity_min(){return this.minimumValue}set opacity_min(t){this.minimumValue=t}load(t){var e;void 0!==t&&(super.load(t),void 0!==t.destroy&&(this.destroy=t.destroy),void 0!==t.enable&&(this.enable=t.enable),this.minimumValue=null!==(e=t.minimumValue)&&void 0!==e?e:t.opacity_min,void 0!==t.speed&&(this.speed=t.speed),void 0!==t.startValue&&(this.startValue=t.startValue),void 0!==t.sync&&(this.sync=t.sync))}}class hi extends He{constructor(){super(),this.animation=new ci,this.random.minimumValue=.1,this.value=1}get anim(){return this.animation}set anim(t){this.animation=t}load(t){var e;if(!t)return;super.load(t);const i=null!==(e=t.animation)&&void 0!==e?e:t.anim;void 0!==i&&(this.animation.load(i),this.value=l(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class di extends He{constructor(){super(),this.value=45,this.random.enable=!1,this.random.minimumValue=0}load(t){void 0!==t&&super.load(t)}}class ui{constructor(){this.animation=new li,this.enable=!1,this.opacity=1,this.rotation=new di,this.width=1}load(t){void 0!==t&&(this.animation.load(t.animation),this.rotation.load(t.rotation),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.opacity&&(this.opacity=t.opacity),void 0!==t.width&&(this.width=t.width),void 0!==t.radius&&(this.radius=t.radius),void 0!==t.color&&(this.color=Nt.create(this.color,t.color)))}}class vi{constructor(){this.enable=!1,this.area=800,this.factor=1e3}get value_area(){return this.area}set value_area(t){this.area=t}load(t){var e;if(void 0===t)return;void 0!==t.enable&&(this.enable=t.enable);const i=null!==(e=t.area)&&void 0!==e?e:t.value_area;void 0!==i&&(this.area=i),void 0!==t.factor&&(this.factor=t.factor)}}class pi{constructor(){this.density=new vi,this.limit=0,this.value=100}get max(){return this.limit}set max(t){this.limit=t}load(t){var e;if(void 0===t)return;this.density.load(t.density);const i=null!==(e=t.limit)&&void 0!==e?e:t.max;void 0!==i&&(this.limit=i),void 0!==t.value&&(this.value=t.value)}}class fi extends He{constructor(){super(),this.enabled=!1,this.distance=1,this.duration=1,this.factor=1,this.speed=1}load(t){super.load(t),t&&(void 0!==t.enabled&&(this.enabled=t.enabled),void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.speed&&(this.speed=t.speed))}}class mi{constructor(){this.enable=!1,this.value=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.value&&(this.value=t.value))}}class yi{constructor(){this.darken=new mi,this.enable=!1,this.enlighten=new mi,this.mode="vertical",this.speed=25}load(t){t&&(void 0!==t.backColor&&(this.backColor=Nt.create(this.backColor,t.backColor)),this.darken.load(t.darken),void 0!==t.enable&&(this.enable=t.enable),this.enlighten.load(t.enlighten),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.speed&&(this.speed=l(t.speed)))}}class gi{constructor(){this.enable=!1,this.speed=0,this.sync=!1}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class wi extends He{constructor(){super(),this.animation=new gi,this.direction="clockwise",this.path=!1,this.value=0}load(t){t&&(super.load(t),void 0!==t.direction&&(this.direction=t.direction),this.animation.load(t.animation),void 0!==t.path&&(this.path=t.path))}}class bi{constructor(){this.blur=0,this.color=new Nt,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000000"}load(t){void 0!==t&&(void 0!==t.blur&&(this.blur=t.blur),this.color=Nt.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(void 0!==t.offset.x&&(this.offset.x=t.offset.x),void 0!==t.offset.y&&(this.offset.y=t.offset.y)))}}class xi{constructor(){this.options={},this.type="circle"}get image(){var t;return null!==(t=this.options.image)&&void 0!==t?t:this.options.images}set image(t){this.options.image=t,this.options.images=t}get custom(){return this.options}set custom(t){this.options=t}get images(){return this.image}set images(t){this.image=t}get stroke(){return[]}set stroke(t){}get character(){var t;return null!==(t=this.options.character)&&void 0!==t?t:this.options.char}set character(t){this.options.character=t,this.options.char=t}get polygon(){var t;return null!==(t=this.options.polygon)&&void 0!==t?t:this.options.star}set polygon(t){this.options.polygon=t,this.options.star=t}load(t){var e,i,s;if(void 0===t)return;const o=null!==(e=t.options)&&void 0!==e?e:t.custom;if(void 0!==o)for(const t in o){const e=o[t];void 0!==e&&(this.options[t]=S(null!==(i=this.options[t])&&void 0!==i?i:{},e))}this.loadShape(t.character,"character","char",!0),this.loadShape(t.polygon,"polygon","star",!1),this.loadShape(null!==(s=t.image)&&void 0!==s?s:t.images,"image","images",!0),void 0!==t.type&&(this.type=t.type)}loadShape(t,e,i,s){var o,n,a,r;void 0!==t&&(t instanceof Array?(this.options[e]instanceof Array||(this.options[e]=[],this.options[i]&&!s||(this.options[i]=[])),this.options[e]=S(null!==(o=this.options[e])&&void 0!==o?o:[],t),this.options[i]&&!s||(this.options[i]=S(null!==(n=this.options[i])&&void 0!==n?n:[],t))):(this.options[e]instanceof Array&&(this.options[e]={},this.options[i]&&!s||(this.options[i]={})),this.options[e]=S(null!==(a=this.options[e])&&void 0!==a?a:{},t),this.options[i]&&!s||(this.options[i]=S(null!==(r=this.options[i])&&void 0!==r?r:{},t))))}}class ki extends li{constructor(){super(),this.destroy="none",this.enable=!1,this.speed=5,this.startValue="random",this.sync=!1}get size_min(){return this.minimumValue}set size_min(t){this.minimumValue=t}load(t){var e;void 0!==t&&(super.load(t),void 0!==t.destroy&&(this.destroy=t.destroy),void 0!==t.enable&&(this.enable=t.enable),this.minimumValue=null!==(e=t.minimumValue)&&void 0!==e?e:t.size_min,void 0!==t.speed&&(this.speed=t.speed),void 0!==t.startValue&&(this.startValue=t.startValue),void 0!==t.sync&&(this.sync=t.sync))}}class Mi extends He{constructor(){super(),this.animation=new ki,this.random.minimumValue=1,this.value=3}get anim(){return this.animation}set anim(t){this.animation=t}load(t){var e;if(!t)return;super.load(t);const i=null!==(e=t.animation)&&void 0!==e?e:t.anim;void 0!==i&&(this.animation.load(i),this.value=l(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class zi{constructor(){this.width=0}load(t){void 0!==t&&(void 0!==t.color&&(this.color=Ie.create(this.color,t.color)),void 0!==t.width&&(this.width=t.width),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Pi{constructor(){this.enable=!1,this.speed=0,this.sync=!1}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class Ci extends He{constructor(){super(),this.animation=new Pi,this.direction="clockwise",this.enable=!1,this.value=0}load(t){t&&(super.load(t),this.animation.load(t.animation),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.enable&&(this.enable=t.enable))}}class Ti{constructor(){this.enable=!1,this.frequency=.05,this.opacity=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=Nt.create(this.color,t.color)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Si{constructor(){this.lines=new Ti,this.particles=new Ti}load(t){void 0!==t&&(this.lines.load(t.lines),this.particles.load(t.particles))}}class Oi{constructor(){this.distance=5,this.enable=!1,this.speed=50}load(t){t&&(void 0!==t.distance&&(this.distance=l(t.distance)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=l(t.speed)))}}class Ii extends He{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),t&&(void 0!==t.opacityRate&&(this.opacityRate=t.opacityRate),void 0!==t.sizeRate&&(this.sizeRate=t.sizeRate),void 0!==t.velocityRate&&(this.velocityRate=t.velocityRate))}}class Ei{constructor(){this.bounce=new _e,this.collisions=new Be,this.color=new Ie,this.destroy=new Je,this.gradient=[],this.groups={},this.life=new Ye,this.links=new Ze,this.move=new ri,this.number=new pi,this.opacity=new hi,this.orbit=new ui,this.reduceDuplicates=!1,this.repulse=new fi,this.roll=new yi,this.rotate=new wi,this.shadow=new bi,this.shape=new xi,this.size=new Mi,this.stroke=new zi,this.tilt=new Ci,this.twinkle=new Si,this.wobble=new Oi,this.zIndex=new Ii}get line_linked(){return this.links}set line_linked(t){this.links=t}get lineLinked(){return this.links}set lineLinked(t){this.links=t}load(t){var e,i,s,o,n,a,r,l;if(void 0===t)return;this.bounce.load(t.bounce),this.color.load(Ie.create(this.color,t.color)),this.destroy.load(t.destroy),this.life.load(t.life);const c=null!==(i=null!==(e=t.links)&&void 0!==e?e:t.lineLinked)&&void 0!==i?i:t.line_linked;if(void 0!==c&&this.links.load(c),void 0!==t.groups)for(const e in t.groups){const i=t.groups[e];void 0!==i&&(this.groups[e]=S(null!==(s=this.groups[e])&&void 0!==s?s:{},i))}this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),this.orbit.load(t.orbit),void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.repulse.load(t.repulse),this.roll.load(t.roll),this.rotate.load(t.rotate),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.tilt.load(t.tilt),this.twinkle.load(t.twinkle),this.wobble.load(t.wobble),this.zIndex.load(t.zIndex);const h=null!==(n=null===(o=t.move)||void 0===o?void 0:o.collisions)&&void 0!==n?n:null===(a=t.move)||void 0===a?void 0:a.bounce;void 0!==h&&(this.collisions.enable=h),this.collisions.load(t.collisions);const d=null!==(r=t.stroke)&&void 0!==r?r:null===(l=t.shape)||void 0===l?void 0:l.stroke;d&&(d instanceof Array?this.stroke=d.map((t=>{const e=new zi;return e.load(t),e})):(this.stroke instanceof Array&&(this.stroke=new zi),this.stroke.load(d)));const u=t.gradient;u&&(u instanceof Array?this.gradient=u.map((t=>{const e=new Ee;return e.load(t),e})):(this.gradient instanceof Array&&(this.gradient=new Ee),this.gradient.load(u)))}}class Ri{constructor(){this.maxWidth=1/0,this.options={},this.mode="canvas"}load(t){t&&(void 0!==t.maxWidth&&(this.maxWidth=t.maxWidth),void 0!==t.mode&&("screen"===t.mode?this.mode="screen":this.mode="canvas"),void 0!==t.options&&(this.options=S({},t.options)))}}class Ai{constructor(){this.auto=!1,this.mode="any",this.value=!1}load(t){t&&(void 0!==t.auto&&(this.auto=t.auto),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}class Di{constructor(){this.name="",this.default=new Ai}load(t){void 0!==t&&(void 0!==t.name&&(this.name=t.name),this.default.load(t.default),void 0!==t.options&&(this.options=S({},t.options)))}}var Fi,Li,qi,Hi=function(t,e,i,s,o){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?o.call(t,i):o?o.value=i:e.set(t,i),i},Vi=function(t,e,i,s){if("a"===i&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?s:"a"===i?s.call(t):s?s.value:e.get(t)};class _i{constructor(t){Fi.add(this),Li.set(this,void 0),Hi(this,Li,t,"f"),this.autoPlay=!0,this.background=new Xt,this.backgroundMask=new Ut,this.fullScreen=new Qt,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new ze,this.manualParticles=[],this.motion=new Te,this.particles=new Ei,this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.style={},this.themes=[],this.zLayers=100}get fps_limit(){return this.fpsLimit}set fps_limit(t){this.fpsLimit=t}get retina_detect(){return this.detectRetina}set retina_detect(t){this.detectRetina=t}get backgroundMode(){return this.fullScreen}set backgroundMode(t){this.fullScreen.load(t)}load(t){var e,i,s,o,n;if(void 0===t)return;if(void 0!==t.preset)if(t.preset instanceof Array)for(const e of t.preset)this.importPreset(e);else this.importPreset(t.preset);void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay);const a=null!==(e=t.detectRetina)&&void 0!==e?e:t.retina_detect;void 0!==a&&(this.detectRetina=a),void 0!==t.duration&&(this.duration=t.duration);const r=null!==(i=t.fpsLimit)&&void 0!==i?i:t.fps_limit;void 0!==r&&(this.fpsLimit=r),void 0!==t.pauseOnBlur&&(this.pauseOnBlur=t.pauseOnBlur),void 0!==t.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=t.pauseOnOutsideViewport),void 0!==t.zLayers&&(this.zLayers=t.zLayers),this.background.load(t.background);const l=null!==(s=t.fullScreen)&&void 0!==s?s:t.backgroundMode;if("boolean"==typeof l?this.fullScreen.enable=l:this.fullScreen.load(l),this.backgroundMask.load(t.backgroundMask),this.interactivity.load(t.interactivity),void 0!==t.manualParticles&&(this.manualParticles=t.manualParticles.map((t=>{const e=new Pe;return e.load(t),e}))),this.motion.load(t.motion),this.particles.load(t.particles),this.style=S(this.style,t.style),Vi(this,Li,"f").plugins.loadOptions(this,t),void 0!==t.responsive)for(const e of t.responsive){const t=new Ri;t.load(e),this.responsive.push(t)}if(this.responsive.sort(((t,e)=>t.maxWidth-e.maxWidth)),void 0!==t.themes)for(const e of t.themes){const t=new Di;t.load(e),this.themes.push(t)}this.defaultDarkTheme=null===(o=Vi(this,Fi,"m",qi).call(this,"dark"))||void 0===o?void 0:o.name,this.defaultLightTheme=null===(n=Vi(this,Fi,"m",qi).call(this,"light"))||void 0===n?void 0:n.name}setTheme(t){if(t){const e=this.themes.find((e=>e.name===t));e&&this.load(e.options)}else{const t="undefined"!=typeof matchMedia&&matchMedia("(prefers-color-scheme: dark)"),e=t&&t.matches,i=Vi(this,Fi,"m",qi).call(this,e?"dark":"light");i&&this.load(i.options)}}setResponsive(t,e,i){this.load(i);const s=this.responsive.find((i=>"screen"===i.mode&&screen?i.maxWidth*e>screen.availWidth:i.maxWidth*e>t));return this.load(null==s?void 0:s.options),null==s?void 0:s.maxWidth}importPreset(t){this.load(Vi(this,Li,"f").plugins.getPreset(t))}}Li=new WeakMap,Fi=new WeakSet,qi=function(t){var e;return null!==(e=this.themes.find((e=>e.default.value&&e.default.mode===t)))&&void 0!==e?e:this.themes.find((t=>t.default.value&&"any"===t.default.mode))};var Wi,Bi=function(t,e,i,s,o){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?o.call(t,i):o?o.value=i:e.set(t,i),i},ji=function(t,e,i,s){if("a"===i&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?s:"a"===i?s.call(t):s?s.value:e.get(t)};const Gi=t=>{(x(t.outMode,t.checkModes)||x(t.outMode,t.checkModes))&&(t.coord>t.maxCoord-2*t.radius?t.setCb(-t.radius):t.coord<2*t.radius&&t.setCb(t.radius))};class $i{constructor(t,e,s,l,h,v){var p,f,m,y,g,w,b,x,k;this.id=e,this.container=s,this.group=v,Wi.set(this,void 0),Bi(this,Wi,t,"f"),this.fill=!0,this.close=!0,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.splitCount=0,this.misplaced=!1,this.retina={maxDistance:{}};const M=s.retina.pixelRatio,P=s.actualOptions,C=new Ei;C.load(P.particles);const T=C.shape.type,S=C.reduceDuplicates;if(this.shape=T instanceof Array?z(T,this.id,S):T,null==h?void 0:h.shape){if(h.shape.type){const t=h.shape.type;this.shape=t instanceof Array?z(t,this.id,S):t}const t=new xi;t.load(h.shape),this.shape&&(this.shapeData=this.loadShapeData(t,S))}else this.shapeData=this.loadShapeData(C.shape,S);void 0!==h&&C.load(h),void 0!==(null===(p=this.shapeData)||void 0===p?void 0:p.particles)&&C.load(null===(f=this.shapeData)||void 0===f?void 0:f.particles),this.fill=null!==(y=null===(m=this.shapeData)||void 0===m?void 0:m.fill)&&void 0!==y?y:this.fill,this.close=null!==(w=null===(g=this.shapeData)||void 0===g?void 0:g.close)&&void 0!==w?w:this.close,this.options=C,this.pathDelay=1e3*c(this.options.move.path.delay);const O=n(this.options.zIndex.value);s.retina.initParticle(this);const I=this.options.size,E=I.value;this.size={enable:I.animation.enable,value:c(I)*s.retina.pixelRatio,max:r(E)*M,min:a(E)*M,loops:0,maxLoops:I.animation.count};const R=I.animation;if(R.enable){switch(this.size.status=0,R.startValue){case"min":this.size.value=this.size.min,this.size.status=0;break;case"random":this.size.value=o(this.size)*M,this.size.status=Math.random()>=.5?0:1;break;case"max":default:this.size.value=this.size.max,this.size.status=1}this.size.velocity=(null!==(b=this.retina.sizeAnimationSpeed)&&void 0!==b?b:s.retina.sizeAnimationSpeed)/100*s.retina.reduceFactor,R.sync||(this.size.velocity*=Math.random())}this.direction=u(this.options.move.direction),this.bubble={inRange:!1},this.initialVelocity=this.calculateVelocity(),this.velocity=this.initialVelocity.copy(),this.moveDecay=1-n(this.options.move.decay),this.position=this.calcPosition(s,l,i(O,0,s.zLayers)),this.initialPosition=this.position.copy(),this.offset=Gt.origin;const A=s.particles;A.needsSort=A.needsSort||A.lastZIndex<this.position.z,A.lastZIndex=this.position.z,this.zIndexFactor=this.position.z/s.zLayers,this.sides=24;let D=s.drawers.get(this.shape);D||(D=ji(this,Wi,"f").plugins.getShapeDrawer(this.shape),D&&s.drawers.set(this.shape,D)),(null==D?void 0:D.loadShape)&&(null==D||D.loadShape(this));const F=null==D?void 0:D.getSidesCount;if(F&&(this.sides=F(this)),this.life=this.loadLife(),this.spawning=this.life.delay>0,this.options.move.spin.enable){const t=null!==(x=this.options.move.spin.position)&&void 0!==x?x:{x:50,y:50},e={x:t.x/100*s.canvas.size.width,y:t.y/100*s.canvas.size.height},i=d(this.getPosition(),e);this.spin={center:e,direction:this.velocity.x>=0?"clockwise":"counter-clockwise",angle:this.velocity.angle,radius:i,acceleration:null!==(k=this.retina.spinAcceleration)&&void 0!==k?k:n(this.options.move.spin.acceleration)}}this.shadowColor=H(this.options.shadow.color);for(const t of s.particles.updaters)t.init&&t.init(this);D&&D.particleInit&&D.particleInit(s,this);for(const[,t]of s.plugins)t.particleCreated&&t.particleCreated(this)}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}isInsideCanvas(){const t=this.getRadius(),e=this.container.canvas.size;return this.position.x>=-t&&this.position.y>=-t&&this.position.y<=e.height+t&&this.position.x<=e.width+t}draw(t){const e=this.container;for(const[,i]of e.plugins)e.canvas.drawParticlePlugin(i,this,t);e.canvas.drawParticle(this,t)}getPosition(){return{x:this.position.x+this.offset.x,y:this.position.y+this.offset.y,z:this.position.z}}getRadius(){var t;return null!==(t=this.bubble.radius)&&void 0!==t?t:this.size.value}getMass(){return this.getRadius()**2*Math.PI/2}getFillColor(){var t,e;const i=null!==(t=this.bubble.color)&&void 0!==t?t:at(this.color);if(i&&this.roll&&(this.backColor||this.roll.alter)){const t="both"===this.options.roll.mode?2:1,s="horizontal"===this.options.roll.mode?Math.PI/2:0;if(Math.floor(((null!==(e=this.roll.angle)&&void 0!==e?e:0)+s)/(Math.PI/t))%2){if(this.backColor)return this.backColor;if(this.roll.alter)return Mt(i,this.roll.alter.type,this.roll.alter.value)}}return i}getStrokeColor(){var t,e;return null!==(e=null!==(t=this.bubble.color)&&void 0!==t?t:at(this.strokeColor))&&void 0!==e?e:this.getFillColor()}destroy(t){if(this.destroyed=!0,this.bubble.inRange=!1,this.unbreakable)return;this.destroyed=!0,this.bubble.inRange=!1;for(const[,e]of this.container.plugins)e.particleDestroyed&&e.particleDestroyed(this,t);if(t)return;"split"===this.options.destroy.mode&&this.split()}reset(){this.opacity&&(this.opacity.loops=0),this.size.loops=0}split(){const t=this.options.destroy.split;if(t.count>=0&&this.splitCount++>t.count)return;const e=n(t.rate.value);for(let t=0;t<e;t++)this.container.particles.addSplitParticle(this)}calcPosition(t,e,i,s=0){var o,n,a,r,l,c;for(const[,s]of t.plugins){const t=void 0!==s.particlePosition?s.particlePosition(e,this):void 0;if(void 0!==t)return $t.create(t.x,t.y,i)}const h=t.canvas.size,d=$t.create(null!==(o=null==e?void 0:e.x)&&void 0!==o?o:Math.random()*h.width,null!==(n=null==e?void 0:e.y)&&void 0!==n?n:Math.random()*h.height,i),u=this.getRadius(),v=this.options.move.outModes,p=e=>{Gi({outMode:e,checkModes:["bounce","bounce-horizontal"],coord:d.x,maxCoord:t.canvas.size.width,setCb:t=>d.x+=t,radius:u})},f=e=>{Gi({outMode:e,checkModes:["bounce","bounce-vertical"],coord:d.y,maxCoord:t.canvas.size.height,setCb:t=>d.y+=t,radius:u})};return p(null!==(a=v.left)&&void 0!==a?a:v.default),p(null!==(r=v.right)&&void 0!==r?r:v.default),f(null!==(l=v.top)&&void 0!==l?l:v.default),f(null!==(c=v.bottom)&&void 0!==c?c:v.default),this.checkOverlap(d,s)?this.calcPosition(t,void 0,i,s+1):d}checkOverlap(t,e=0){const i=this.options.collisions,s=this.getRadius();if(!i.enable)return!1;const o=i.overlap;if(o.enable)return!1;const n=o.retries;if(n>=0&&e>n)throw new Error("Particle is overlapping and can't be placed");let a=!1;for(const e of this.container.particles.array)if(d(t,e.position)<s+e.getRadius()){a=!0;break}return a}calculateVelocity(){const t=v(this.direction).copy(),e=this.options.move,i=Math.PI/180*e.angle.value,s=Math.PI/180*e.angle.offset,n={left:s-i/2,right:s+i/2};return e.straight||(t.angle+=o(l(n.left,n.right))),e.random&&"number"==typeof e.speed&&(t.length*=Math.random()),t}loadShapeData(t,e){const i=t.options[this.shape];if(i)return S({},i instanceof Array?z(i,this.id,e):i)}loadLife(){const t=this.container,e=this.options,i=e.life,s={delay:t.retina.reduceFactor?n(i.delay.value)*(i.delay.sync?1:Math.random())/t.retina.reduceFactor*1e3:0,delayTime:0,duration:t.retina.reduceFactor?n(i.duration.value)*(i.duration.sync?1:Math.random())/t.retina.reduceFactor*1e3:0,time:0,count:e.life.count};return s.duration<=0&&(s.duration=-1),s.count<=0&&(s.count=-1),s}}Wi=new WeakMap;var Ji,Ni=function(t,e,i,s,o){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?o.call(t,i):o?o.value=i:e.set(t,i),i},Xi=function(t,e,i,s){if("a"===i&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?s:"a"===i?s.call(t):s?s.value:e.get(t)};class Yi{constructor(t,e){this.container=e,Ji.set(this,void 0),Ni(this,Ji,t,"f"),this.nextId=0,this.array=[],this.zArray=[],this.mover=new Ht(e),this.limit=0,this.needsSort=!1,this.lastZIndex=0,this.freqs={links:new Map,triangles:new Map},this.interactionManager=new Lt(Xi(this,Ji,"f"),e);const i=this.container.canvas.size;this.linksColors=new Map,this.quadTree=new jt(new Ct(-i.width/4,-i.height/4,3*i.width/2,3*i.height/2),4),this.updaters=Xi(this,Ji,"f").plugins.getUpdaters(e,!0)}get count(){return this.array.length}init(){var t;const e=this.container,i=e.actualOptions;this.lastZIndex=0,this.needsSort=!1,this.freqs.links=new Map,this.freqs.triangles=new Map;let s=!1;this.updaters=Xi(this,Ji,"f").plugins.getUpdaters(e,!0),this.interactionManager.init();for(const[,t]of e.plugins)if(void 0!==t.particlesInitialization&&(s=t.particlesInitialization()),s)break;if(this.addManualParticles(),!s){for(const e in i.particles.groups){const s=i.particles.groups[e];for(let o=this.count,n=0;n<(null===(t=s.number)||void 0===t?void 0:t.value)&&o<i.particles.number.value;o++,n++)this.addParticle(void 0,s,e)}for(let t=this.count;t<i.particles.number.value;t++)this.addParticle()}e.pathGenerator.init(e)}async redraw(){this.clear(),this.init(),await this.draw({value:0,factor:0})}removeAt(t,e=1,i,s){if(!(t>=0&&t<=this.count))return;let o=0;for(let n=t;o<e&&n<this.count;n++){const t=this.array[n];if(!t||t.group!==i)continue;t.destroy(s),this.array.splice(n--,1);const e=this.zArray.indexOf(t);this.zArray.splice(e,1),o++}}remove(t,e,i){this.removeAt(this.array.indexOf(t),void 0,e,i)}async update(t){const e=this.container,i=[];e.pathGenerator.update();for(const[,i]of e.plugins)void 0!==i.update&&i.update(t);for(const s of this.array){const o=e.canvas.resizeFactor;o&&(s.position.x*=o.width,s.position.y*=o.height),s.bubble.inRange=!1;for(const[,e]of this.container.plugins){if(s.destroyed)break;e.particleUpdate&&e.particleUpdate(s,t)}this.mover.move(s,t),s.destroyed?i.push(s):this.quadTree.insert(new Bt(s.getPosition(),s))}for(const t of i)this.remove(t);await this.interactionManager.externalInteract(t);for(const i of e.particles.array){for(const e of this.updaters)e.update(i,t);i.destroyed||i.spawning||await this.interactionManager.particlesInteract(i,t)}delete e.canvas.resizeFactor}async draw(t){const e=this.container;e.canvas.clear();const i=this.container.canvas.size;this.quadTree=new jt(new Ct(-i.width/4,-i.height/4,3*i.width/2,3*i.height/2),4),await this.update(t),this.needsSort&&(this.zArray.sort(((t,e)=>e.position.z-t.position.z||t.id-e.id)),this.lastZIndex=this.zArray[this.zArray.length-1].position.z,this.needsSort=!1);for(const[,i]of e.plugins)e.canvas.drawPlugin(i,t);for(const e of this.zArray)e.draw(t)}clear(){this.array=[],this.zArray=[]}push(t,e,i,s){this.pushing=!0;for(let o=0;o<t;o++)this.addParticle(null==e?void 0:e.position,i,s);this.pushing=!1}addParticle(t,e,i){const s=this.container,o=s.actualOptions.particles.number.limit*s.density;if(o>0){const t=this.count+1-o;t>0&&this.removeQuantity(t)}return this.pushParticle(t,e,i)}addSplitParticle(t){const e=t.options.destroy.split,i=new Ei;i.load(t.options);const s=n(e.factor.value);i.color.load({value:{hsl:t.getFillColor()}}),"number"==typeof i.size.value?i.size.value/=s:(i.size.value.min/=s,i.size.value.max/=s),i.load(e.particles);const a=e.sizeOffset?l(-t.size.value,t.size.value):0,r={x:t.position.x+o(a),y:t.position.y+o(a)};return this.pushParticle(r,i,t.group,(e=>!(e.size.value<.5)&&(e.velocity.length=o(l(t.velocity.length,e.velocity.length)),e.splitCount=t.splitCount+1,e.unbreakable=!0,setTimeout((()=>{e.unbreakable=!1}),500),!0)))}removeQuantity(t,e){this.removeAt(0,t,e)}getLinkFrequency(t,e){const i=l(t.id,e.id),s=`${a(i)}_${r(i)}`;let o=this.freqs.links.get(s);return void 0===o&&(o=Math.random(),this.freqs.links.set(s,o)),o}getTriangleFrequency(t,e,i){let[s,o,n]=[t.id,e.id,i.id];s>o&&([o,s]=[s,o]),o>n&&([n,o]=[o,n]),s>n&&([n,s]=[s,n]);const a=`${s}_${o}_${n}`;let r=this.freqs.triangles.get(a);return void 0===r&&(r=Math.random(),this.freqs.triangles.set(a,r)),r}addManualParticles(){const t=this.container,e=t.actualOptions;for(const i of e.manualParticles){const e=i.position?{x:i.position.x*t.canvas.size.width/100,y:i.position.y*t.canvas.size.height/100}:void 0;this.addParticle(e,i.options)}}setDensity(){const t=this.container.actualOptions;for(const e in t.particles.groups)this.applyDensity(t.particles.groups[e],0,e);this.applyDensity(t.particles,t.manualParticles.length)}applyDensity(t,e,i){var s;if(!(null===(s=t.number.density)||void 0===s?void 0:s.enable))return;const o=t.number,n=this.initDensityFactor(o.density),a=o.value,r=o.limit>0?o.limit:a,l=Math.min(a,r)*n+e,c=Math.min(this.count,this.array.filter((t=>t.group===i)).length);this.limit=o.limit*n,c<l?this.push(Math.abs(l-c),void 0,t,i):c>l&&this.removeQuantity(c-l,i)}initDensityFactor(t){const e=this.container;if(!e.canvas.element||!t.enable)return 1;const i=e.canvas.element,s=e.retina.pixelRatio;return i.width*i.height/(t.factor*s**2*t.area)}pushParticle(t,e,i,s){try{const o=new $i(Xi(this,Ji,"f"),this.nextId,this.container,t,e,i);let n=!0;if(s&&(n=s(o)),!n)return;return this.array.push(o),this.zArray.push(o),this.nextId++,o}catch(t){return void console.warn(`error adding particle: ${t}`)}}}Ji=new WeakMap;class Ui{constructor(t){this.container=t}init(){const t=this.container,e=t.actualOptions;this.pixelRatio=!e.detectRetina||g()?1:window.devicePixelRatio;const i=this.container.actualOptions.motion;if(i&&(i.disable||i.reduce.value))if(g()||"undefined"==typeof matchMedia||!matchMedia)this.reduceFactor=1;else{const e=matchMedia("(prefers-reduced-motion: reduce)");if(e){this.handleMotionChange(e);const i=()=>{this.handleMotionChange(e),t.refresh().catch((()=>{}))};void 0!==e.addEventListener?e.addEventListener("change",i):void 0!==e.addListener&&e.addListener(i)}}else this.reduceFactor=1;const s=this.pixelRatio;if(t.canvas.element){const e=t.canvas.element;t.canvas.size.width=e.offsetWidth*s,t.canvas.size.height=e.offsetHeight*s}const o=e.particles;this.attractDistance=o.move.attract.distance*s,this.linksDistance=o.links.distance*s,this.linksWidth=o.links.width*s,this.sizeAnimationSpeed=o.size.animation.speed*s,this.maxSpeed=o.move.gravity.maxSpeed*s,void 0!==o.orbit.radius&&(this.orbitRadius=o.orbit.radius*this.container.retina.pixelRatio);const n=e.interactivity.modes;this.connectModeDistance=n.connect.distance*s,this.connectModeRadius=n.connect.radius*s,this.grabModeDistance=n.grab.distance*s,this.repulseModeDistance=n.repulse.distance*s,this.bounceModeDistance=n.bounce.distance*s,this.attractModeDistance=n.attract.distance*s,this.slowModeRadius=n.slow.radius*s,this.bubbleModeDistance=n.bubble.distance*s,n.bubble.size&&(this.bubbleModeSize=n.bubble.size*s)}initParticle(t){const e=t.options,i=this.pixelRatio,s=e.move.distance,o=t.retina;o.attractDistance=e.move.attract.distance*i,o.linksDistance=e.links.distance*i,o.linksWidth=e.links.width*i,o.moveDrift=n(e.move.drift)*i,o.moveSpeed=n(e.move.speed)*i,o.sizeAnimationSpeed=e.size.animation.speed*i,t.spin&&(o.spinAcceleration=n(e.move.spin.acceleration)*i);const a=o.maxDistance;a.horizontal=void 0!==s.horizontal?s.horizontal*i:void 0,a.vertical=void 0!==s.vertical?s.vertical*i:void 0,o.maxSpeed=e.move.gravity.maxSpeed*i}handleMotionChange(t){const e=this.container.actualOptions;if(t.matches){const t=e.motion;this.reduceFactor=t.disable?0:t.reduce.value?1/t.reduce.factor:1}else this.reduceFactor=1}}var Qi,Zi=function(t,e,i,s,o){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?o.call(t,i):o?o.value=i:e.set(t,i),i},Ki=function(t,e,i,s){if("a"===i&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?s:"a"===i?s.call(t):s?s.value:e.get(t)};class ts{constructor(t,e,i,...s){this.id=e,Qi.set(this,void 0),Zi(this,Qi,t,"f"),this.fpsLimit=120,this.duration=0,this.lifeTime=0,this.firstStart=!0,this.started=!1,this.destroyed=!1,this.paused=!0,this.lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._sourceOptions=i,this._initialSourceOptions=i,this.retina=new Ui(this),this.canvas=new Jt(this),this.particles=new Yi(Ki(this,Qi,"f"),this),this.drawer=new Rt(this),this.presets=s,this.pathGenerator={generate:()=>{const t=Gt.create(0,0);return t.length=Math.random(),t.angle=Math.random()*Math.PI*2,t},init:()=>{},update:()=>{}},this.interactivity={mouse:{clicking:!1,inside:!1}},this.bubble={},this.repulse={particles:[]},this.attract={particles:[]},this.plugins=new Map,this.drawers=new Map,this.density=1,this._options=new _i(Ki(this,Qi,"f")),this.actualOptions=new _i(Ki(this,Qi,"f")),this.eventListeners=new It(this),"undefined"!=typeof IntersectionObserver&&IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver((t=>this.intersectionManager(t))))}get options(){return this._options}get sourceOptions(){return this._sourceOptions}play(t){const e=this.paused||t;if(!this.firstStart||this.actualOptions.autoPlay){if(this.paused&&(this.paused=!1),e)for(const[,t]of this.plugins)t.play&&t.play();this.draw(e||!1)}else this.firstStart=!1}pause(){if(void 0!==this.drawAnimationFrame&&(b()(this.drawAnimationFrame),delete this.drawAnimationFrame),!this.paused){for(const[,t]of this.plugins)t.pause&&t.pause();this.pageHidden||(this.paused=!0)}}draw(t){let e=t;this.drawAnimationFrame=w()((async t=>{e&&(this.lastFrameTime=void 0,e=!1),await this.drawer.nextFrame(t)}))}getAnimationStatus(){return!this.paused&&!this.pageHidden}setNoise(t,e,i){this.setPath(t,e,i)}setPath(t,e,i){var s,o,n;if(t)if("function"==typeof t)this.pathGenerator.generate=t,e&&(this.pathGenerator.init=e),i&&(this.pathGenerator.update=i);else{const e=this.pathGenerator;this.pathGenerator=t,(s=this.pathGenerator).generate||(s.generate=e.generate),(o=this.pathGenerator).init||(o.init=e.init),(n=this.pathGenerator).update||(n.update=e.update)}}destroy(){this.stop(),this.canvas.destroy();for(const[,t]of this.drawers)t.destroy&&t.destroy(this);for(const t of this.drawers.keys())this.drawers.delete(t);this.destroyed=!0}exportImg(t){this.exportImage(t)}exportImage(t,e,i){var s;return null===(s=this.canvas.element)||void 0===s?void 0:s.toBlob(t,null!=e?e:"image/png",i)}exportConfiguration(){return JSON.stringify(this.actualOptions,void 0,2)}refresh(){return this.stop(),this.start()}reset(){return this._options=new _i(Ki(this,Qi,"f")),this.refresh()}stop(){if(this.started){this.firstStart=!0,this.started=!1,this.eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.clear(),this.interactivity.element instanceof HTMLElement&&this.intersectionObserver&&this.intersectionObserver.unobserve(this.interactivity.element);for(const[,t]of this.plugins)t.stop&&t.stop();for(const t of this.plugins.keys())this.plugins.delete(t);this.particles.linksColors=new Map,delete this.particles.grabLineColor,delete this.particles.linksColor,this._sourceOptions=this._options}}async loadTheme(t){this.currentTheme=t,await this.refresh()}async start(){if(!this.started){await this.init(),this.started=!0,this.eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this.intersectionObserver&&this.intersectionObserver.observe(this.interactivity.element);for(const[,t]of this.plugins)void 0!==t.startAsync?await t.startAsync():void 0!==t.start&&t.start();this.play()}}addClickHandler(t){const e=this.interactivity.element;if(!e)return;const i=(e,i,s)=>{if(this.destroyed)return;const o=this.retina.pixelRatio,n={x:i.x*o,y:i.y*o},a=this.particles.quadTree.queryCircle(n,s*o);t(e,a)};let s=!1,o=!1;e.addEventListener("click",(t=>{if(this.destroyed)return;const e=t,s={x:e.offsetX||e.clientX,y:e.offsetY||e.clientY};i(t,s,1)})),e.addEventListener("touchstart",(()=>{this.destroyed||(s=!0,o=!1)})),e.addEventListener("touchmove",(()=>{this.destroyed||(o=!0)})),e.addEventListener("touchend",(t=>{var e,n,a;if(!this.destroyed){if(s&&!o){const s=t;let o=s.touches[s.touches.length-1];if(!o&&(o=s.changedTouches[s.changedTouches.length-1],!o))return;const r=null===(e=this.canvas.element)||void 0===e?void 0:e.getBoundingClientRect(),l={x:o.clientX-(null!==(n=null==r?void 0:r.left)&&void 0!==n?n:0),y:o.clientY-(null!==(a=null==r?void 0:r.top)&&void 0!==a?a:0)};i(t,l,Math.max(o.radiusX,o.radiusY))}s=!1,o=!1}})),e.addEventListener("touchcancel",(()=>{this.destroyed||(s=!1,o=!1)}))}updateActualOptions(){this.actualOptions.responsive=[];const t=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this.currentTheme),this.responsiveMaxWidth!=t&&(this.responsiveMaxWidth=t,!0)}async init(){this._options=new _i(Ki(this,Qi,"f"));for(const t of this.presets)this._options.load(Ki(this,Qi,"f").plugins.getPreset(t));const t=Ki(this,Qi,"f").plugins.getSupportedShapes();for(const e of t){const t=Ki(this,Qi,"f").plugins.getShapeDrawer(e);t&&this.drawers.set(e,t)}this._options.load(this._initialSourceOptions),this._options.load(this._sourceOptions),this.actualOptions=new _i(Ki(this,Qi,"f")),this.actualOptions.load(this._options),this.retina.init(),this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize(),this.zLayers=this.actualOptions.zLayers,this.duration=n(this.actualOptions.duration),this.lifeTime=0,this.fpsLimit=this.actualOptions.fpsLimit>0?this.actualOptions.fpsLimit:120;const e=Ki(this,Qi,"f").plugins.getAvailablePlugins(this);for(const[t,i]of e)this.plugins.set(t,i);for(const[,t]of this.drawers)t.init&&await t.init(this);for(const[,t]of this.plugins)t.init?t.init(this.actualOptions):void 0!==t.initAsync&&await t.initAsync(this.actualOptions);const i=this.actualOptions.particles.move.path;i.generator&&this.setPath(Ki(this,Qi,"f").plugins.getPathGenerator(i.generator)),this.particles.init(),this.particles.setDensity();for(const[,t]of this.plugins)void 0!==t.particlesSetup&&t.particlesSetup()}intersectionManager(t){if(this.actualOptions.pauseOnOutsideViewport)for(const e of t)e.target===this.interactivity.element&&(e.isIntersecting?this.play():this.pause())}}Qi=new WeakMap;var es,is=function(t,e,i,s,o){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?o.call(t,i):o?o.value=i:e.set(t,i),i},ss=function(t,e,i,s){if("a"===i&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?s:"a"===i?s.call(t):s?s.value:e.get(t)};class os{constructor(t){es.set(this,void 0),is(this,es,t,"f")}dom(){return ss(this,es,"f").domArray}domItem(t){const e=this.dom(),i=e[t];if(i&&!i.destroyed)return i;e.splice(t,1)}async loadOptions(t){var e,i,s;const o=null!==(e=t.tagId)&&void 0!==e?e:`tsparticles${Math.floor(1e4*Math.random())}`,{options:n,index:a}=t;let r=null!==(i=t.element)&&void 0!==i?i:document.getElementById(o);r||(r=document.createElement("div"),r.id=o,null===(s=document.querySelector("body"))||void 0===s||s.append(r));const l=n instanceof Array?z(n,a):n,c=this.dom(),h=c.findIndex((t=>t.id===o));if(h>=0){const t=this.domItem(h);t&&!t.destroyed&&(t.destroy(),c.splice(h,1))}let d;if("canvas"===r.tagName.toLowerCase())d=r,d.dataset[St.generatedAttribute]="false";else{const t=r.getElementsByTagName("canvas");t.length?(d=t[0],d.dataset[St.generatedAttribute]="false"):(d=document.createElement("canvas"),d.dataset[St.generatedAttribute]="true",d.style.width="100%",d.style.height="100%",r.appendChild(d))}const u=new ts(ss(this,es,"f"),o,l);return h>=0?c.splice(h,0,u):c.push(u),u.canvas.loadCanvas(d),await u.start(),u}async loadRemoteOptions(t){const{url:e,index:i}=t,s=e instanceof Array?z(e,i):e;if(!s)return;const o=await fetch(s);if(!o.ok)return n=o.status,console.error(`Error tsParticles - fetch status: ${n}`),void console.error("Error tsParticles - File config not found");var n;const a=await o.json();return this.loadOptions({tagId:t.tagId,element:t.element,index:i,options:a})}load(t,e,i){const s={index:i};return"string"==typeof t?s.tagId=t:s.options=t,"number"==typeof e?s.index=null!=e?e:s.index:s.options=null!=e?e:s.options,this.loadOptions(s)}async set(t,e,i,s){const o={index:s};return"string"==typeof t?o.tagId=t:o.element=t,e instanceof HTMLElement?o.element=e:o.options=e,"number"==typeof i?o.index=i:o.options=null!=i?i:o.options,this.loadOptions(o)}async loadJSON(t,e,i){let s,o;return"number"==typeof e||void 0===e?s=t:(o=t,s=e),this.loadRemoteOptions({tagId:o,url:s,index:i})}async setJSON(t,e,i,s){let o,n,a,r;return t instanceof HTMLElement?(r=t,o=e,a=i):(n=t,r=e,o=i,a=s),this.loadRemoteOptions({tagId:n,url:o,index:a,element:r})}setOnClickHandler(t){const e=this.dom();if(0===e.length)throw new Error("Can only set click handlers after calling tsParticles.load() or tsParticles.loadJSON()");for(const i of e)i.addClickHandler(t)}}es=new WeakMap;var ns,as,rs=function(t,e,i,s,o){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?o.call(t,i):o?o.value=i:e.set(t,i),i},ls=function(t,e,i,s){if("a"===i&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?s:"a"===i?s.call(t):s?s.value:e.get(t)};class cs{constructor(){ns.set(this,void 0),as.set(this,void 0),rs(this,ns,!1,"f"),this.domArray=[],rs(this,as,new os(this),"f"),this.plugins=new Wt(this)}init(){ls(this,ns,"f")||rs(this,ns,!0,"f")}async loadFromArray(t,e,i){return ls(this,as,"f").load(t,e,i)}async load(t,e){return ls(this,as,"f").load(t,e)}async set(t,e,i){return ls(this,as,"f").set(t,e,i)}async loadJSON(t,e,i){return ls(this,as,"f").loadJSON(t,e,i)}async setJSON(t,e,i,s){return ls(this,as,"f").setJSON(t,e,i,s)}setOnClickHandler(t){ls(this,as,"f").setOnClickHandler(t)}dom(){return ls(this,as,"f").dom()}domItem(t){return ls(this,as,"f").domItem(t)}async refresh(){for(const t of this.dom())await t.refresh()}async addShape(t,e,i,s,o){let n;n="function"==typeof e?{afterEffect:s,destroy:o,draw:e,init:i}:e,this.plugins.addShapeDrawer(t,n),await this.refresh()}async addPreset(t,e,i=!1){this.plugins.addPreset(t,e,i),await this.refresh()}async addPlugin(t){this.plugins.addPlugin(t),await this.refresh()}async addPathGenerator(t,e){this.plugins.addPathGenerator(t,e),await this.refresh()}async addInteractor(t,e){this.plugins.addInteractor(t,e),await this.refresh()}async addParticleUpdater(t,e){this.plugins.addParticleUpdater(t,e),await this.refresh()}}ns=new WeakMap,as=new WeakMap;const hs=new cs;hs.init();const{particlesJS:ds,pJSDom:us}=(t=>{const e=(e,i)=>t.load(e,i);e.load=(e,i,s)=>{t.loadJSON(e,i).then((t=>{t&&s(t)})).catch((()=>{s(void 0)}))},e.setOnClickHandler=e=>{t.setOnClickHandler(e)};return{particlesJS:e,pJSDom:t.dom()}})(hs);return e}()}));