const a = typeof navigator < "u", o = e(), n = c(), r = u(), f = 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(n) || /android/i.test(r), d = a && n.toLowerCase().startsWith("mac") && !navigator.maxTouchPoints, l = r.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: s,
    version: i
  }) => `${s}/${i}`).join(" ") : navigator.userAgent;
}
function c() {
  if (!a)
    return "";
  const t = navigator.userAgentData;
  return t?.platform ? t.platform : navigator.platform ?? "";
}
export {
  l as a,
  d as b,
  p as c,
  m as d,
  f as e,
  g as i
};
