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

//# sourceMappingURL=detectBrowser.js.map