var _a, _b, _c;
import { getSafeWindow } from '../lib/globalObject.js';
var globalObject = getSafeWindow();
// NOTE Some checks are used from https://github.com/arasatasaygin/is.js
var platform = (((_a = globalObject.navigator) === null || _a === void 0 ? void 0 : _a.platform) || '').toLowerCase();
var userAgent = (((_b = globalObject.navigator) === null || _b === void 0 ? void 0 : _b.userAgent) || '').toLowerCase();
var vendor = (((_c = globalObject.navigator) === null || _c === void 0 ? void 0 : _c.vendor) || '').toLowerCase();
export var isMac = platform.includes('mac');
export var isWindows = platform.includes('win');
export var isSafari = /version\/(\d+).+?safari/.test(userAgent);
export var isFirefox = /(?:firefox|fxios)\/(\d+)/.test(userAgent);
export var isOpera = /(?:^opera.+?version|opr)\/(\d+)/.test(userAgent);
export var isChrome = vendor.includes('google inc') && /(?:chrome|crios)\/(\d+)/.test(userAgent) && !isOpera;
export var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(userAgent) &&
    globalObject.document &&
    'ontouchstart' in globalObject.document.documentElement;
export var isIOS = /(ip[ao]d|iphone)/gi.test(userAgent);
export var isSafari17 = isSafari && userAgent.includes('version/17');
var is17_0v = userAgent.includes('version/17.0');
var is17_1v = userAgent.includes('version/17.1');
var is17_2v = userAgent.includes('version/17.2');
var is17_3v = userAgent.includes('version/17.3');
export var isSafariWithTextareaBug = isSafari && (is17_0v || is17_1v || is17_2v || is17_3v);
//# sourceMappingURL=client.js.map