"use strict";(globalThis.webpackChunkwordpress_particles=globalThis.webpackChunkwordpress_particles||[]).push([[5392],{5392:(t,a,e)=>{e.r(a),e.d(a,{loadTextShape:()=>l});var n=e(1197);const s=["text","character","char"];class o{draw(t,a,e,s){var o,l,i;const r=a.shapeData;if(void 0===r)return;const c=r.value;if(void 0===c)return;const p=a;void 0===p.text&&(p.text=(0,n.wA)(c,a.randomIndexData));const d=p.text,h=null!==(o=r.style)&&void 0!==o?o:"",u=null!==(l=r.weight)&&void 0!==l?l:"400",x=2*Math.round(e),f=null!==(i=r.font)&&void 0!==i?i:"Verdana",w=a.fill,v=d.length*e/2;t.font=`${h} ${u} ${x}px "${f}"`;const g={x:-v,y:e/2};t.globalAlpha=s,w?t.fillText(d,g.x,g.y):t.strokeText(d,g.x,g.y),t.globalAlpha=1}getSidesCount(){return 12}async init(t){const a=t.actualOptions;if(s.find((t=>(0,n.dB)(t,a.particles.shape.type)))){const t=s.map((t=>a.particles.shape.options[t])).find((t=>!!t)),e=[];(0,n.KH)(t,(t=>{e.push((0,n.mx)(t.font,t.weight))})),await Promise.all(e)}}}async function l(t){await t.addShape(s,new o)}}}]);