"use strict";(globalThis.webpackChunkwordpress_particles=globalThis.webpackChunkwordpress_particles||[]).push([[8694],{3151:(t,o,s)=>{s.d(o,{L:()=>i});class i{constructor(t){this.container=t,this.type="external"}}},8694:(t,o,s)=>{s.r(o),s.d(o,{Slow:()=>e,loadExternalSlowInteraction:()=>c});var i=s(3151),a=s(4684),n=s(5302);class e{constructor(){this.factor=3,this.radius=200}load(t){t&&(void 0!==t.factor&&(this.factor=t.factor),void 0!==t.radius&&(this.radius=t.radius))}}class r extends i.L{constructor(t){super(t)}clear(t,o,s){t.slow.inRange&&!s||(t.slow.factor=1)}init(){const t=this.container,o=t.actualOptions.interactivity.modes.slow;o&&(t.retina.slowModeRadius=o.radius*t.retina.pixelRatio)}async interact(){}isEnabled(t){const o=this.container,s=o.interactivity.mouse,i=(t?.interactivity??o.actualOptions.interactivity).events;return i.onHover.enable&&!!s.position&&(0,a.dB)("slow",i.onHover.mode)}loadModeOptions(t,...o){t.slow||(t.slow=new e);for(const s of o)t.slow.load(s?.slow)}reset(t){t.slow.inRange=!1;const o=this.container,s=o.actualOptions,i=o.interactivity.mouse.position,a=o.retina.slowModeRadius,e=s.interactivity.modes.slow;if(!e||!a||a<0||!i)return;const r=t.getPosition(),c=(0,n.Sp)(i,r),l=c/a,d=e.factor,{slow:u}=t;c>a||(u.inRange=!0,u.factor=l/d)}}async function c(t,o=!0){await t.addInteractor("externalSlow",(t=>new r(t)),o)}}}]);