import { c as callBindExports } from "../call-bind/index.js";
import { c as callBound$1 } from "../call-bind/callBound.js";
import { g as getIntrinsic } from "../get-intrinsic/index.js";
var callBind = callBindExports;
var callBound = callBound$1;
var GetIntrinsic = getIntrinsic;
var $ArrayBuffer = GetIntrinsic("%ArrayBuffer%", true);
var $byteLength = callBound("ArrayBuffer.prototype.byteLength", true);
var $toString = callBound("Object.prototype.toString");
var abSlice = !!$ArrayBuffer && !$byteLength && new $ArrayBuffer(0).slice;
var $abSlice = !!abSlice && callBind(abSlice);
var isArrayBuffer = $byteLength || $abSlice ? function isArrayBuffer2(obj) {
  if (!obj || typeof obj !== "object") {
    return false;
  }
  try {
    if ($byteLength) {
      $byteLength(obj);
    } else {
      $abSlice(obj, 0);
    }
    return true;
  } catch (e) {
    return false;
  }
} : $ArrayBuffer ? function isArrayBuffer3(obj) {
  return $toString(obj) === "[object ArrayBuffer]";
} : function isArrayBuffer4(obj) {
  return false;
};
export {
  isArrayBuffer as i
};
//# sourceMappingURL=index.js.map
