"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[3535],{3535(s,a,e){e.d(a,{loadHslColorPlugin:()=>i});var n,r=e(3199);!function(s){s[s.h=1]="h",s[s.s=2]="s",s[s.l=3]="l",s[s.a=5]="a"}(n||(n={}));const l=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i;class t{accepts(s){return s.startsWith("hsl")}handleColor(s){const a=s.value.hsl??s.value;if("h"in a&&"s"in a&&"l"in a)return(0,r.YLU)(a)}handleRangeColor(s){const a=s.value.hsl??s.value;if("h"in a&&"s"in a&&"l"in a)return(0,r.YLU)({h:(0,r.VGA)(a.h),l:(0,r.VGA)(a.l),s:(0,r.VGA)(a.s)})}parseString(s){if(!this.accepts(s))return;const a=l.exec(s);return a?(0,r.ayx)({a:a.length>4?(0,r.M3Y)(a[n.a]):1,h:Number.parseInt(a[n.h]??"0",10),l:Number.parseInt(a[n.l]??"0",10),s:Number.parseInt(a[n.s]??"0",10)}):void 0}}async function i(s){s.checkVersion("4.1.3"),await s.pluginManager.register(s=>{s.pluginManager.addColorManager("hsl",new t)})}}}]);