"use strict";(globalThis.webpackChunkwordpress_particles=globalThis.webpackChunkwordpress_particles||[]).push([[6776],{6776:(o,e,a)=>{a.r(e),a.d(e,{loadCogShape:()=>t});var i=a(5302);class s{afterEffect(o,e,a){if(void 0===e.cogHoleRadius||void 0===e.cogInnerRadius||void 0===e.cogInnerTaper||void 0===e.cogNotches||void 0===e.cogOuterTaper)return;const i=2*Math.PI,s=a*e.cogHoleRadius/100;o.globalCompositeOperation="destination-out",o.beginPath(),o.moveTo(s,0),o.arc(0,0,s,0,i),o.closePath(),o.fill(),o.globalCompositeOperation="source-over"}draw(o,e,a){if(void 0===e.cogHoleRadius||void 0===e.cogInnerRadius||void 0===e.cogInnerTaper||void 0===e.cogNotches||void 0===e.cogOuterTaper)return;const i=2*Math.PI,s=i/(2*e.cogNotches),t=s*e.cogInnerTaper*.005,c=s*e.cogOuterTaper*.005,n=a*e.cogInnerRadius/100;let r=s,u=!1;for(o.moveTo(a*Math.cos(c),a*Math.sin(c));r<=i;r+=s)u?(o.lineTo(n*Math.cos(r-t),n*Math.sin(r-t)),o.lineTo(a*Math.cos(r+c),a*Math.sin(r+c))):(o.lineTo(a*Math.cos(r-c),a*Math.sin(r-c)),o.lineTo(n*Math.cos(r+t),n*Math.sin(r+t))),u=!u}particleInit(o,e){const a=e.shapeData;e.cogHoleRadius=(0,i.Gu)(a?.holeRadius??44),e.cogInnerRadius=(0,i.Gu)(a?.innerRadius??72),e.cogInnerTaper=(0,i.Gu)(a?.innerTaper??35),e.cogNotches=(0,i.Gu)(a?.notches??7),e.cogOuterTaper=(0,i.Gu)(a?.outerTaper??50)}}async function t(o,e=!0){await o.addShape("cog",new s,e)}}}]);