"use strict";(self.webpackChunkwordpress_particles=self.webpackChunkwordpress_particles||[]).push([[3091],{3091:function(n,t,o){o.r(t),o.d(t,{curvesPathName:function(){return r},loadCurvesPath:function(){return s}});var i=o(3563);class e{constructor(){this.options={rndFunc:null,period:100,nbHarmonics:2,attenHarmonics:.8,lowValue:-.03,highValue:.03}}generate(n){if(void 0===n.pathGen){const t=this.options;n.pathGen=function(n,t,o,e){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;const c=[],l=[],a=[],u=[],h=[],p=null!=n?n:i.sZ;let d=0;o<1&&(o=1);for(let n=1;n<=o;++n)c[n]=p(),l[n]=p(),a[n]=1===n?1:a[n-1]*e,d+=a[n],u[n]=n/t,h[n]=p();return a.forEach(((n,t)=>a[t]=n/d*(s-r))),()=>{let n,t,i=0;for(let e=o;e>=1;--e)n=h[e]+=u[e],h[e]>=1&&(n=h[e]-=1,c[e]=l[e],l[e]=p()),t=n**2*(3-2*n),i+=(c[e]*(1-t)+l[e]*t)*a[e];return i+r}}(t.rndFunc,t.period,t.nbHarmonics,t.attenHarmonics,t.lowValue,t.highValue)}return void 0===n.curveVelocity?(n.curveVelocity=i.OW.origin,n.curveVelocity.length=.6*(0,i.sZ)()+.8,n.curveVelocity.angle=(0,i.sZ)()*Math.PI*2):(n.curveVelocity.length+=.01,n.curveVelocity.angle=(n.curveVelocity.angle+n.pathGen())%(2*Math.PI)),n.velocity.x=0,n.velocity.y=0,n.curveVelocity}init(n){var t,o,i,e,r;const s=n.actualOptions.particles.move.path.options;"function"==typeof s.rndFunc?this.options.rndFunc=s.rndFunc:"string"==typeof s.rndFunc&&(this.options.rndFunc=window[s.rndFunc]||this.options.rndFunc),this.options.period=null!==(t=s.period)&&void 0!==t?t:this.options.period,this.options.nbHarmonics=null!==(o=s.nbHarmonics)&&void 0!==o?o:this.options.nbHarmonics,this.options.attenHarmonics=null!==(i=s.attenHarmonics)&&void 0!==i?i:this.options.attenHarmonics,this.options.lowValue=null!==(e=s.lowValue)&&void 0!==e?e:this.options.lowValue,this.options.highValue=null!==(r=s.highValue)&&void 0!==r?r:this.options.highValue}update(){}}const r="curvesPathGenerator";function s(n){n.addPathGenerator(r,new e)}}}]);