import { __require as J } from "./index-bind.js";
var F, A;
function X() {
  if (A) return F;
  A = 1;
  var w = J(), s = Object.prototype.toString, l = /* @__PURE__ */ (function(r) {
    return function(e) {
      var t = s.call(e);
      return r[t] || (r[t] = t.slice(8, -1).toLowerCase());
    };
  })(/* @__PURE__ */ Object.create(null));
  function f(r) {
    return r = r.toLowerCase(), function(t) {
      return l(t) === r;
    };
  }
  function o(r) {
    return Array.isArray(r);
  }
  function p(r) {
    return typeof r > "u";
  }
  function B(r) {
    return r !== null && !p(r) && r.constructor !== null && !p(r.constructor) && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
  }
  var O = f("ArrayBuffer");
  function S(r) {
    var e;
    return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(r) : e = r && r.buffer && O(r.buffer), e;
  }
  function E(r) {
    return typeof r == "string";
  }
  function g(r) {
    return typeof r == "number";
  }
  function h(r) {
    return r !== null && typeof r == "object";
  }
  function c(r) {
    if (l(r) !== "object")
      return !1;
    var e = Object.getPrototypeOf(r);
    return e === null || e === Object.prototype;
  }
  function P(r) {
    return r && Object.keys(r).length === 0 && Object.getPrototypeOf(r) === Object.prototype;
  }
  var L = f("Date"), x = f("File"), b = f("Blob"), U = f("FileList");
  function y(r) {
    return s.call(r) === "[object Function]";
  }
  function D(r) {
    return h(r) && y(r.pipe);
  }
  function N(r) {
    var e = "[object FormData]";
    return r && (typeof FormData == "function" && r instanceof FormData || s.call(r) === e || y(r.toString) && r.toString() === e);
  }
  var T = f("URLSearchParams");
  function V(r) {
    return r.trim ? r.trim() : r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
  }
  function q() {
    var r;
    return typeof navigator < "u" && ((r = navigator.product) === "ReactNative" || r === "NativeScript" || r === "NS") ? !1 : typeof window < "u" && typeof document < "u";
  }
  function d(r, e) {
    if (!(r === null || typeof r > "u"))
      if (typeof r != "object" && (r = [r]), o(r))
        for (var t = 0, i = r.length; t < i; t++)
          e.call(null, r[t], t, r);
      else
        for (var n in r)
          Object.prototype.hasOwnProperty.call(r, n) && e.call(null, r[n], n, r);
  }
  function m() {
    var r = {};
    function e(n, u) {
      c(r[u]) && c(n) ? r[u] = m(r[u], n) : c(n) ? r[u] = m({}, n) : o(n) ? r[u] = n.slice() : r[u] = n;
    }
    for (var t = 0, i = arguments.length; t < i; t++)
      d(arguments[t], e);
    return r;
  }
  function M(r, e, t) {
    return d(e, function(n, u) {
      t && typeof n == "function" ? r[u] = w(n, t) : r[u] = n;
    }), r;
  }
  function R(r) {
    return r.charCodeAt(0) === 65279 && (r = r.slice(1)), r;
  }
  function _(r, e, t, i) {
    r.prototype = Object.create(e.prototype, i), r.prototype.constructor = r, t && Object.assign(r.prototype, t);
  }
  function C(r, e, t, i) {
    var n, u, a, v = {};
    if (e = e || {}, r == null) return e;
    do {
      for (n = Object.getOwnPropertyNames(r), u = n.length; u-- > 0; )
        a = n[u], (!i || i(a, r, e)) && !v[a] && (e[a] = r[a], v[a] = !0);
      r = t !== !1 && Object.getPrototypeOf(r);
    } while (r && (!t || t(r, e)) && r !== Object.prototype);
    return e;
  }
  function H(r, e, t) {
    r = String(r), (t === void 0 || t > r.length) && (t = r.length), t -= e.length;
    var i = r.indexOf(e, t);
    return i !== -1 && i === t;
  }
  function W(r) {
    if (!r) return null;
    if (o(r)) return r;
    var e = r.length;
    if (!g(e)) return null;
    for (var t = new Array(e); e-- > 0; )
      t[e] = r[e];
    return t;
  }
  var I = /* @__PURE__ */ (function(r) {
    return function(e) {
      return r && e instanceof r;
    };
  })(typeof Uint8Array < "u" && Object.getPrototypeOf(Uint8Array));
  function K(r, e) {
    for (var t = r && r[Symbol.iterator], i = t.call(r), n; (n = i.next()) && !n.done; ) {
      var u = n.value;
      e.call(r, u[0], u[1]);
    }
  }
  function $(r, e) {
    for (var t, i = []; (t = r.exec(e)) !== null; )
      i.push(t);
    return i;
  }
  var z = f("HTMLFormElement"), G = /* @__PURE__ */ (function(e) {
    return function(t, i) {
      return e.call(t, i);
    };
  })(Object.prototype.hasOwnProperty);
  return F = {
    isArray: o,
    isArrayBuffer: O,
    isBuffer: B,
    isFormData: N,
    isArrayBufferView: S,
    isString: E,
    isNumber: g,
    isObject: h,
    isPlainObject: c,
    isEmptyObject: P,
    isUndefined: p,
    isDate: L,
    isFile: x,
    isBlob: b,
    isFunction: y,
    isStream: D,
    isURLSearchParams: T,
    isStandardBrowserEnv: q,
    forEach: d,
    merge: m,
    extend: M,
    trim: V,
    stripBOM: R,
    inherits: _,
    toFlatObject: C,
    kindOf: l,
    kindOfTest: f,
    endsWith: H,
    toArray: W,
    isTypedArray: I,
    isFileList: U,
    forEachEntry: K,
    matchAll: $,
    isHTMLForm: z,
    hasOwnProperty: G
  }, F;
}
export {
  X as __require
};
