(()=>{"use strict";var e;sessionStorage.getItem("mgeo_redirected")||((null===(e=window.wp)||void 0===e?void 0:e.apiFetch)?window.wp.apiFetch({path:"maki-geo/v1/redirection"}).then((function(e){e.redirect&&e.url&&(sessionStorage.setItem("mgeo_redirected","1"),window.location.href=e.url)})).catch((function(e){console.error("Maki Geo redirection error:",e)})):console.error("Maki Geo redirection error: No window.wp.apiFetch found."))})();