function t(a) {
  var n;
  if (typeof window > "u" || window.navigator == null) return !1;
  let o = (n = window.navigator.userAgentData) === null || n === void 0 ? void 0 : n.brands;
  return Array.isArray(o) && o.some((c) => a.test(c.brand)) || a.test(window.navigator.userAgent);
}
function r(a) {
  var n;
  return typeof window < "u" && window.navigator != null ? a.test(((n = window.navigator.userAgentData) === null || n === void 0 ? void 0 : n.platform) || window.navigator.platform) : !1;
}
function e(a) {
  if (process.env.NODE_ENV === "test") return a;
  let n = null;
  return () => (n == null && (n = a()), n);
}
const i = /* @__PURE__ */ e(function() {
  return r(/^Mac/i);
}), u = /* @__PURE__ */ e(function() {
  return r(/^iPhone/i);
}), s = /* @__PURE__ */ e(function() {
  return r(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
  i() && navigator.maxTouchPoints > 1;
}), $ = /* @__PURE__ */ e(function() {
  return u() || s();
}), f = /* @__PURE__ */ e(function() {
  return i() || $();
}), l = /* @__PURE__ */ e(function() {
  return t(/AppleWebKit/i) && !d();
}), d = /* @__PURE__ */ e(function() {
  return t(/Chrome/i);
}), w = /* @__PURE__ */ e(function() {
  return t(/Android/i);
}), v = /* @__PURE__ */ e(function() {
  return t(/Firefox/i);
});
export {
  v as $,
  l as a,
  i as b,
  s as c,
  w as d,
  d as e,
  $ as f,
  f as g,
  u as h
};
//# sourceMappingURL=platform-Z5fvtFmM.es.js.map
