function c(t, e, ...n) {
  const o = document.createElement(t);
  for (const r in e)
    r.indexOf("on") === 0 ? o[r] = e[r] : o.setAttribute(r, e[r]);
  return n.forEach((r) => {
    typeof r == "string" ? o.insertAdjacentHTML("beforeend", r) : o.append(r);
  }), o;
}
function i(t) {
  if (!t)
    return !1;
  const e = t.getBoundingClientRect();
  return !!(e.width || e.height);
}
function l(t) {
  const e = t.getBoundingClientRect();
  return {
    top: e.top + window.scrollY,
    left: e.left + window.scrollX
  };
}
function f(t, e) {
  return window.getComputedStyle(t).getPropertyValue(e);
}
function s(t, e) {
  return parseInt(f(t, e));
}
function a(t, e) {
  const n = document.createElement(e);
  return t.after(n), n.append(t), n;
}
function d(t, e) {
  return u(t, e).find(i) || null;
}
function p(t, e) {
  return u(t, e).findLast(i) || null;
}
function g(t, e) {
  return u(t, e).filter(i);
}
function u(t, e) {
  return t ? [...t.querySelectorAll(e)] : [];
}
function b(t, e = "common", n = void 0) {
  if (t)
    return t.topData || (t.topData = {}), n && (t.topData[e] = n), n === null && delete t.topData[e], t.topData[e];
}
function y(t) {
  t && delete t.topData;
}
const w = {
  genEl: c,
  isVisible: i,
  offset: l,
  css: f,
  cssNumber: s,
  wrap: a,
  querySelectorVisible: d,
  querySelectorVisibleLast: p,
  querySelectorAllVisible: g,
  querySelectorAllArray: u,
  storage: b,
  storageClear: y
};
export {
  f as css,
  s as cssNumber,
  w as default,
  c as genEl,
  i as isVisible,
  l as offset,
  u as querySelectorAllArray,
  g as querySelectorAllVisible,
  d as querySelectorVisible,
  p as querySelectorVisibleLast,
  b as storage,
  y as storageClear,
  a as wrap
};
//# sourceMappingURL=dom.js.map
