/* eslint-disable no-undef */ export function isBrowserOrWorkerEnvironment() { return ( (typeof window !== "undefined" && typeof window.document !== "undefined") || (typeof self !== "undefined" && typeof self.importScripts === "function") ); }