/**
* @vue/shared v3.5.18
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
process.env.NODE_ENV !== "production" && Object.freeze({});
process.env.NODE_ENV !== "production" && Object.freeze([]);
const u = (t) => {
  const e = /* @__PURE__ */ Object.create(null);
  return (r) => e[r] || (e[r] = t(r));
}, m = /-(\w)/g, p = u(
  (t) => t.replace(m, (e, r) => r ? r.toUpperCase() : "")
), a = (t = "") => t.split(" ").filter((e) => !!e.trim()), h = (t, e) => {
  if (!t || !e) return !1;
  if (e.includes(" ")) throw new Error("className should not contain space.");
  return t.classList.contains(e);
}, y = (t, e) => {
  !t || !e.trim() || t.classList.add(...a(e));
}, g = (t, e) => {
  !t || !e.trim() || t.classList.remove(...a(e));
}, N = (t, e) => {
  if (!t || !e) return "";
  let r = p(e);
  r === "float" && (r = "cssFloat");
  try {
    const n = t.style[r];
    if (n) return n;
    const s = window == null ? void 0 : window.getComputedStyle(t, "");
    return s ? s[r] : "";
  } catch {
    return t.style[r];
  }
}, d = (t = {}) => Object.keys(t).map((e) => `${e}:${t[e] !== "" ? t[e] : '""'}`).join(";"), E = (t, e) => {
  if (!document.getElementById(t))
    return new Promise((r, n) => {
      const s = document.createElement("style");
      s.rel = "text/css", s.id = t;
      for (const i of e)
        s.appendChild(document.createTextNode(`${i.className}{${d(i.style)}}`));
      document.getElementsByTagName("head")[0].appendChild(s), s.onload = () => r("load success"), s.onerror = () => n("load error");
    });
}, S = (t, e) => {
  const r = document.getElementById(t);
  if (r) {
    r.innerHTML = "";
    for (const n of e)
      r.appendChild(document.createTextNode(`${n.className}{${d(n.style)}}`));
  }
}, l = (t) => Number(t.toString().replace("px", "")), o = (t, e, r) => {
  e = l(e), r = l(r);
  let n;
  return t === "add" && (n = e + r), t === "subtract" && (n = e - r), t === "multiply" && (n = e * r), t === "divide" && (n = e / r), e = null, r = null, n;
}, c = (t) => ({
  add: (e) => c(o("add", t, e)),
  subtract: (e) => c(o("subtract", t, e)),
  multiply: (e) => c(o("multiply", t, e)),
  divide: (e) => c(o("divide", t, e)),
  res: () => {
    const e = t + "px";
    return t = null, e;
  }
});
export {
  y as addClass,
  E as createStyle,
  c as curringMath,
  d as getCSS,
  N as getStyle,
  h as hasClass,
  g as removeClass,
  S as updateStyle
};
