"use strict";(self.webpackChunkwordpress_particles=self.webpackChunkwordpress_particles||[]).push([[390],{390:function(o,l,i){i.r(l),i.d(l,{loadStrokeColorUpdater:function(){return r}});var t=i(3563);function e(o,l,i,e,n){var r,s;const a=l;if(!a||!a.enable)return;const v=(0,t.vd)(i.offset),d=(null!==(r=l.velocity)&&void 0!==r?r:0)*o.factor+3.6*v,u=null!==(s=l.decay)&&void 0!==s?s:1;n&&0!==a.status?(a.value-=d,a.value<0&&(a.status=0,a.value+=a.value)):(a.value+=d,n&&a.value>e&&(a.status=1,a.value-=a.value%e)),a.velocity&&1!==u&&(a.velocity*=u),a.value>e&&(a.value%=e)}class n{constructor(o){this.container=o}init(o){var l,i;const e=this.container;o.stroke=(0,t.wA)(o.options.stroke,o.id,o.options.reduceDuplicates),o.strokeWidth=o.stroke.width*e.retina.pixelRatio;const n=null!==(l=(0,t.lN)(o.stroke.color))&&void 0!==l?l:o.getFillColor();n&&(o.strokeColor=(0,t.bS)(n,null===(i=o.stroke.color)||void 0===i?void 0:i.animation,e.retina.reduceFactor))}isEnabled(o){var l,i,t,e;const n=null===(l=o.stroke)||void 0===l?void 0:l.color;return!o.destroyed&&!o.spawning&&!!n&&(void 0!==(null===(i=o.strokeColor)||void 0===i?void 0:i.h.value)&&n.animation.h.enable||void 0!==(null===(t=o.strokeColor)||void 0===t?void 0:t.s.value)&&n.animation.s.enable||void 0!==(null===(e=o.strokeColor)||void 0===e?void 0:e.l.value)&&n.animation.l.enable)}update(o,l){this.isEnabled(o)&&function(o,l){var i,t,n,r,s,a,v,d,u,c;if(!(null===(i=o.stroke)||void 0===i?void 0:i.color))return;const k=o.stroke.color.animation,p=null!==(n=null===(t=o.strokeColor)||void 0===t?void 0:t.h)&&void 0!==n?n:null===(r=o.color)||void 0===r?void 0:r.h;p&&e(l,p,k.h,360,!1);const h=null!==(a=null===(s=o.strokeColor)||void 0===s?void 0:s.s)&&void 0!==a?a:null===(v=o.color)||void 0===v?void 0:v.s;h&&e(l,h,k.s,100,!0);const f=null!==(u=null===(d=o.strokeColor)||void 0===d?void 0:d.l)&&void 0!==u?u:null===(c=o.color)||void 0===c?void 0:c.l;f&&e(l,f,k.l,100,!0)}(o,l)}}async function r(o){await o.addParticleUpdater("strokeColor",(o=>new n(o)))}}}]);