"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.safeNavigate=exports.navigateTo=exports.isUrlSafe=void 0;var a=exports.navigateTo=function(a){window.location.assign(a)},b=exports.isUrlSafe=function(a){if(!a||""===a.trim())return!1;try{var b=new URL(a);return"https:"===b.protocol}catch(a){return!1}},c=exports.safeNavigate=function(c){if(!b(c))return!1;try{var d=new URL(c);return a(d.href),!0}catch(a){return console.warn("Error navigating to URL:",c),!1}};