"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[420],{420(s,e,n){n.d(e,{loadResponsivePlugin:()=>d});var i,o=n(3199);!function(s){s.screen="screen",s.window="window",s.canvas="canvas"}(i||(i={}));class a{maxWidth=1/0;mode=i.canvas;options={};load(s){(0,o.kZJ)(s)||((0,o.kZJ)(s.maxWidth)||(this.maxWidth=s.maxWidth),(0,o.kZJ)(s.mode)||(s.mode===i.screen?this.mode=i.screen:this.mode=i.canvas),(0,o.kZJ)(s.options)||(this.options=(0,o.zwS)({},s.options)))}}class t{id="responsive";async getPlugin(s){const{ResponsivePluginInstance:e}=await n.e(9917).then(n.bind(n,9917));return new e(s)}loadOptions(s,e,n){if(this.needsPlugin(e)||this.needsPlugin(n)){if(e.setResponsive=(s,n,o)=>{e.load(o);const a=s/n,t={[i.screen]:screen.availWidth,[i.window]:innerWidth,[i.canvas]:a},d=e.responsive?.find(s=>s.maxWidth>t[s.mode]);return e.load(d?.options),d?.maxWidth},e.responsive??=[],void 0!==n?.responsive)for(const s of n.responsive){const n=new a;s&&n.load(s),e.responsive.push(n)}e.responsive.sort((s,e)=>s.maxWidth-e.maxWidth)}}needsPlugin(s){return!!s?.responsive?.length}}async function d(s){s.checkVersion("4.1.3"),await s.pluginManager.register(s=>{s.pluginManager.addPlugin(new t)})}}}]);