const a = typeof navigator < "u", o = e(), r = f(), n = u(), c = typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter:none"), m = (
  // iPads can claim to be MacIntel
  o.platform === "MacIntel" && o.maxTouchPoints > 1 ? !0 : /iP(hone|ad|od)|iOS/.test(o.platform)
), p = a && /apple/i.test(navigator.vendor), g = a && /android/i.test(r) || /android/i.test(n);
a && r.toLowerCase().startsWith("mac") && navigator.maxTouchPoints;
const d = n.includes("jsdom/");
function e() {
  if (!a)
    return {
      platform: "",
      maxTouchPoints: -1
    };
  const t = navigator.userAgentData;
  return t?.platform ? {
    platform: t.platform,
    maxTouchPoints: navigator.maxTouchPoints
  } : {
    platform: navigator.platform ?? "",
    maxTouchPoints: navigator.maxTouchPoints ?? -1
  };
}
function u() {
  if (!a)
    return "";
  const t = navigator.userAgentData;
  return t && Array.isArray(t.brands) ? t.brands.map(({
    brand: i,
    version: s
  }) => `${i}/${s}`).join(" ") : navigator.userAgent;
}
function f() {
  if (!a)
    return "";
  const t = navigator.userAgentData;
  return t?.platform ? t.platform : navigator.platform ?? "";
}
export {
  d as a,
  p as b,
  m as c,
  c as d,
  g as i
};
//# sourceMappingURL=detectBrowser-Bc7rk5fI.mjs.map
