"use client";
import { __exports as o } from "../../../../../_virtual/get2.js";
import { __require as g } from "../../_internal/isUnsafeProperty.js";
import { __require as P } from "../_internal/isDeepKey.js";
import { __require as K } from "../_internal/toKey.js";
import { __require as U } from "../util/toPath.js";
var y;
function T() {
  return y ? o : (y = 1, (function(u) {
    Object.defineProperty(u, Symbol.toStringTag, { value: "Module" });
    const t = /* @__PURE__ */ g(), c = /* @__PURE__ */ P(), m = /* @__PURE__ */ K(), _ = /* @__PURE__ */ U();
    function f(i, r, n) {
      if (i == null)
        return n;
      switch (typeof r) {
        case "string": {
          if (t.isUnsafeProperty(r))
            return n;
          const e = i[r];
          return e === void 0 ? c.isDeepKey(r) ? f(i, _.toPath(r), n) : n : e;
        }
        case "number":
        case "symbol": {
          typeof r == "number" && (r = m.toKey(r));
          const e = i[r];
          return e === void 0 ? n : e;
        }
        default: {
          if (Array.isArray(r))
            return q(i, r, n);
          if (Object.is(r?.valueOf(), -0) ? r = "-0" : r = String(r), t.isUnsafeProperty(r))
            return n;
          const e = i[r];
          return e === void 0 ? n : e;
        }
      }
    }
    function q(i, r, n) {
      if (r.length === 0)
        return n;
      let e = i;
      for (let s = 0; s < r.length; s++) {
        if (e == null || t.isUnsafeProperty(r[s]))
          return n;
        e = e[r[s]];
      }
      return e === void 0 ? n : e;
    }
    u.get = f;
  })(o), o);
}
export {
  T as __require
};
