//#region src/utils/navigation.ts
function e(e) {
	try {
		let n = new URL(e, window.location.origin);
		if (n.protocol === "http:" || n.protocol === "https:") {
			t(n.href);
			return;
		}
	} catch {}
	t("/");
}
function t(e) {
	try {
		window.location.assign(e);
	} catch {
		window.location.href = e;
	}
}
//#endregion
export { e as t };

//# sourceMappingURL=navigation-DihI8dfX.js.map