"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[557,5169],{5169(t,n,e){e.d(n,{loadExternalPopInteraction:()=>o});var i=e(557),r=e(3199);class a extends i.sJ{handleClickMode;maxDistance=0;constructor(t){super(t),this.handleClickMode=(t,n)=>{const e=this.container;if("pop"!==t)return;const i=n.mouse.clickPosition;if(!i)return;const r=e.particles.grid.queryCircle(i,e.retina.pixelRatio);if(r.length)for(const t of r)t.destroy()}}clear(){}init(){}interact(){}isEnabled(t,n){const e=this.container.actualOptions,i=t.mouse,a=(n?.interactivity??e.interactivity)?.events;return!!a&&i.clicking&&i.inside&&!!i.position&&(0,r.hnD)("pop",a.onClick.mode)}reset(){}}async function o(t){t.checkVersion("4.1.3"),await t.pluginManager.register(t=>{(0,i.m0)(t),t.pluginManager.addInteractor?.("externalPop",t=>Promise.resolve(new a(t)))})}},5475(t,n,e){var i;e.d(n,{Q:()=>i}),function(t){t.circle="circle",t.rectangle="rectangle"}(i||(i={}))},7976(t,n,e){var i;e.d(n,{h:()=>i}),function(t){t.canvas="canvas",t.parent="parent",t.window="window"}(i||(i={}))},9205(t,n,e){var i;e.d(n,{e:()=>i}),function(t){t.external="external",t.particles="particles"}(i||(i={}))},7553(t,n,e){e.d(n,{Bp:()=>l,DG:()=>d,G3:()=>u,Rb:()=>s,Z0:()=>o,ms:()=>r,s7:()=>c,vo:()=>a,xO:()=>i});const i="click",r="pointerdown",a="pointerup",o="pointerleave",s="pointermove",c="touchstart",l="touchend",d="touchmove",u="touchcancel"},9756(t,n,e){e.d(n,{G:()=>a});var i=e(3199),r=e(5475);class a{enable=!1;mode=[];selectors=[];type=r.Q.circle;load(t){(0,i.kZJ)(t)||((0,i.kBH)(this,"selectors",t.selectors),(0,i.kBH)(this,"enable",t.enable),(0,i.kBH)(this,"mode",t.mode),(0,i.kBH)(this,"type",t.type))}}},3153(t,n,e){e.d(n,{k:()=>d});var i=e(3199);class r{enable=!1;mode=[];load(t){(0,i.kZJ)(t)||((0,i.kBH)(this,"enable",t.enable),(0,i.kBH)(this,"mode",t.mode))}}var a=e(9756);class o{enable=!1;mode=[];load(t){(0,i.kZJ)(t)||((0,i.kBH)(this,"enable",t.enable),(0,i.kBH)(this,"mode",t.mode))}}class s{onClick=new r;onDiv=new a.G;onHover=new o;load(t){if((0,i.kZJ)(t))return;this.onClick.load(t.onClick);const n=t.onDiv;void 0!==n&&(this.onDiv=(0,i.wJ2)(n,t=>{const n=new a.G;return n.load(t),n})),this.onHover.load(t.onHover)}}var c=e(7976),l=e(2376);class d{detectsOn=c.h.window;events=new s;modes;constructor(t,n){this.modes=new l.d(t,n)}load(t){if((0,i.kZJ)(t))return;const n=t.detectsOn;void 0!==n&&(this.detectsOn=n),this.events.load(t.events),this.modes.load(t.modes)}}},2376(t,n,e){e.d(n,{d:()=>r});var i=e(3199);class r{#t;#n;constructor(t,n){this.#n=t,this.#t=n}load(t){if((0,i.kZJ)(t))return;if(!this.#t)return;const n=this.#n.interactors?.get(this.#t);if(n)for(const e of n)e.loadModeOptions&&e.loadModeOptions(this,t)}}},557(t,n,e){e.d(n,{Q5:()=>d.Q,sJ:()=>s,U4:()=>c,NV:()=>g,U6:()=>h,m0:()=>w,iK:()=>p,loadInteractivityPlugin:()=>v,Z0:()=>l.Z0,Rb:()=>l.Rb});var i=e(3199),r=e(3153);class a{id="interactivity";#n;constructor(t){this.#n=t}async getPlugin(t){const{InteractivityPluginInstance:n}=await e.e(6890).then(e.bind(e,6890));return new n(this.#n,t)}loadOptions(t,n,e){if(!this.needsPlugin())return;let i=n.interactivity;i?.load||(n.interactivity=i=new r.k(this.#n,t)),i.load(e?.interactivity);const a=this.#n.interactors?.get(t);if(a)for(const t of a)t.loadOptions&&t.loadOptions(n,e)}loadParticlesOptions(t,n,e){e?.interactivity&&(n.interactivity=(0,i.zwS)({},e.interactivity));const r=this.#n.interactors?.get(t);if(r)for(const t of r)t.loadParticlesOptions?.(n,e)}needsPlugin(){return!0}}var o=e(9205);class s{type=o.e.external;container;constructor(t){this.container=t}}class c{type=o.e.particles;container;constructor(t){this.container=t}}var l=e(7553),d=e(5475);function u(t,n){return(0,i.cyL)(t)?t.find((t,e)=>n(t,e)):n(t,0)?t:void 0}function p(t,n){return!!u(n,n=>n.enable&&(0,i.hnD)(t,n.mode))}function h(t,n,e){(0,i.wJ2)(n,n=>{const r=n.mode;n.enable&&(0,i.hnD)(t,r)&&function(t,n){const e=t.selectors;(0,i.wJ2)(e,e=>{n(e,t)})}(n,e)})}function g(t,n){if(n&&t)return u(t,t=>function(t,n){const e=(0,i.wJ2)(n,n=>t.matches(n));return(0,i.cyL)(e)?e.some(t=>t):e}(n,t.selectors))}async function v(t){t.checkVersion("4.1.3"),await t.pluginManager.register(t=>{const n=t,e=n.pluginManager;e.addPlugin(new a(e)),e.initializers.interactors??=new Map,e.interactors??=new Map,e.addInteractor=(t,n)=>{e.initializers.interactors??=new Map,e.initializers.interactors.set(t,n)},e.getInteractors=async(t,n=!1)=>(e.interactors??=new Map,e.initializers.interactors??=new Map,(0,i.HQK)(t,e.interactors,e.initializers.interactors,n)),e.setOnClickHandler=t=>{const{items:e}=n;if(!e.length)throw new Error("Click handlers can only be set after calling tsParticles.load()");e.forEach(n=>{const e=n;e.addClickHandler?.(t)})}})}function w(t){if(!t.pluginManager.addInteractor)throw new Error("tsParticles Interactivity Plugin is not loaded")}e(7976),e(9756),e(2376)}}]);