"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("html-entities"),i=t=>typeof t=="boolean"?t:typeof t=="string"?t==="true":!1,s=t=>typeof t=="number"?t:typeof t=="string"&&parseInt(t)||0,d=t=>{if(Array.isArray(t))return t;if(typeof t=="string"){const r=decodeURIComponent(t);if(r&&r!=="undefined")return JSON.parse(r)}return[]},c=t=>t?o.decode(t):"",u=t=>t?o.decode(t):"";function f(t){return t.replace(/^\[|\]$/g,"").split(",").map(r=>{const e=r.trim(),n=Number(e);return isNaN(n)?e:n})}exports.decodeHtmlEntitiesToHtml=u;exports.decodeHtmlEntitiesToText=c;exports.stringToArray=f;exports.toBoolean=i;exports.toNumber=s;exports.uriStringToArray=d;
