"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[932],{932(r,a,e){var s;e.d(a,{loadHexColorPlugin:()=>p}),function(r){r[r.r=1]="r",r[r.g=2]="g",r[r.b=3]="b",r[r.a=4]="a"}(s||(s={}));const t=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i;class i{accepts(r){return r.startsWith("#")}handleColor(r){return this.#r(r.value)}handleRangeColor(r){return this.#r(r.value)}parseString(r){return this.#r(r)}#r(r){if("string"!=typeof r||!this.accepts(r))return;const a=r.replace(t,(r,a,e,s,t)=>a+a+e+e+s+s+(void 0===t?"":t+t)),e=n.exec(a);return e?{a:e[s.a]?Number.parseInt(e[s.a],16)/255:1,b:Number.parseInt(e[s.b]??"0",16),g:Number.parseInt(e[s.g]??"0",16),r:Number.parseInt(e[s.r]??"0",16)}:void 0}}async function p(r){r.checkVersion("4.1.3"),await r.pluginManager.register(r=>{r.pluginManager.addColorManager("hex",new i)})}}}]);