import{i as t}from"./ssr-C2pjZzfv.js";const r=/^(\/+|\.+|ftp|http(s?):\/\/)/i;function i(t){return r.test(t)}function n(r){const n=t?window.location.protocol:"https:";return i(r)?r:`${n}//${r}`}const o="javascript:void(0)",a=/^(?:\w+script|data):/i,s=/&#(\w+)(^\w|;)?/g,e=/&(newline|tab);/gi,c=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;function u(t){if(t){return(r=t,r.replace(s,(t,r)=>String.fromCharCode(r))).replace(e,"").replace(c,"").trim().match(a)?o:t}var r;return o}export{o as F,n as f,i,u as s};
