import t from "./index.es38.js";
import "./index.es39.js";
import "./index.es40.js";
import "./index.es41.js";
import "./index.es42.js";
import "./index.es43.js";
import "./index.es44.js";
import "./index.es45.js";
import "./index.es46.js";
import "./index.es47.js";
import "./index.es48.js";
import "./index.es49.js";
import "./index.es50.js";
import "./index.es51.js";
import "./index.es52.js";
import "./index.es53.js";
import "./index.es54.js";
import "./index.es55.js";
import "./index.es56.js";
import "./index.es57.js";
import "./index.es58.js";
import "./index.es59.js";
import "./index.es60.js";
import "./index.es61.js";
import "./index.es62.js";
import "./index.es63.js";
import "./index.es64.js";
import "./index.es65.js";
const y = [
  "",
  null,
  void 0,
  [],
  {}
], E = {
  emptyValues: y,
  ignoreHtml: !0,
  ignoreWhitespace: !0,
  removeEmptyValues: !1
}, u = /(<([^>]+)>)/gi, a = /\s\s+/g, V = (e, i) => {
  const n = t.compact(i == null ? void 0 : i.split("."));
  let r = e;
  return t.each(n, (s) => {
    t.isArray(r) ? r = t.map(r, (o) => t.get(o, s)) : r = t.get(r, s);
  }), r;
}, h = (e, i, n) => {
  const r = i.split("."), s = t.clone(e);
  let o = s;
  for (let p = 0; p < r.length; p += 1)
    p < r.length - 1 ? t.isArray(o[r[p]]) ? o = t.map(o, (c) => t.get(c, r[p])) : o = t.get(o, r[p]) : o[r[p]] = n;
  return s;
}, j = (e) => t.isObject(e) || t.isArray(e) ? t.isEmpty(e) : !e, g = (e, i, n = {}) => {
  const r = t.defaults(n, E);
  if (e === i || t.contains(r.emptyValues, e) && t.contains(r.emptyValues, i))
    return !0;
  if (t.isString(e) && t.isString(i)) {
    let s = e, o = i;
    if (r.ignoreWhitespace && (s = e.replace(a, " "), o = i.replace(a, " ")), r.ignoreHtml && (s = s.replace(u, ""), o = o.replace(u, "")), s === o)
      return !0;
  }
  if (t.isFunction(e) && t.isFunction(i) && e.toString() === i.toString())
    return !0;
  if (e !== null && typeof e == "object" && i !== null && typeof i == "object") {
    let s = e, o = i;
    r.removeEmptyValues && (s = t.omit(e, (m) => t.contains(r.emptyValues, m)), o = t.omit(i, (m) => t.contains(r.emptyValues, m)));
    const p = t.keys(s), c = t.keys(o);
    if (p.length !== c.length)
      return !1;
    let f = !0;
    return t.each(t.keys(s), (m) => {
      t.has(o, m) && g(s[m], o[m]) || (f = !1);
    }), !!f;
  }
  return !1;
}, S = (e) => !!e && typeof e == "object" && typeof e.then == "function", l = (e, i) => t.isArray(e) ? t.map(e, (n) => l(n, i)) : t.isObject(e) ? t.mapObject(t.omit(e, i), (n) => l(n, i)) : e, J = {
  getNestedValue: V,
  setNestedValue: h,
  isEmpty: j,
  isEqual: g,
  isPromise: S,
  without: l
};
export {
  J as default
};
//# sourceMappingURL=index.es32.js.map
