import { __module as isWeakset } from "../../_virtual/index14.js";
import { g as getIntrinsic } from "../get-intrinsic/index.js";
import { c as callBound$1 } from "../call-bind/callBound.js";
var GetIntrinsic = getIntrinsic;
var callBound = callBound$1;
var $WeakSet = GetIntrinsic("%WeakSet%", true);
var $setHas = callBound("WeakSet.prototype.has", true);
if ($setHas) {
  var $mapHas = callBound("WeakMap.prototype.has", true);
  isWeakset.exports = function isWeakSet(x) {
    if (!x || typeof x !== "object") {
      return false;
    }
    try {
      $setHas(x, $setHas);
      if ($mapHas) {
        try {
          $mapHas(x, $mapHas);
        } catch (e) {
          return true;
        }
      }
      return x instanceof $WeakSet;
    } catch (e) {
    }
    return false;
  };
} else {
  isWeakset.exports = function isWeakSet(x) {
    return false;
  };
}
var isWeaksetExports = isWeakset.exports;
export {
  isWeaksetExports as i
};
//# sourceMappingURL=index.js.map
