const c={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function o(t){return!t||typeof t!="string"?"":t.replace(/[&<>"'`=/]/g,n=>c[n]||n)}function f(t){if(!t||typeof t!="string")return!1;const n=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;return t.length<=254&&n.test(t)}function l(t){return!t||typeof t!="string"?"":t.replace(/[\r\n\t%]/g,"").trim()}function g(t){if(!t||typeof t!="string")return!0;const n=t.replace(/\D/g,"");return n.length>=10&&n.length<=15}function p(t){if(!t||typeof t!="string")return!0;try{const n=new URL(t);return["http:","https:"].includes(n.protocol)}catch{return!1}}function m(t){return t!==""&&t!==void 0&&t!==null}function d(){return Date.now()}function w(t,n=30*60*1e3,e=2e3){const r=Date.now()-t;return r>=e&&r<=n}const s=3e4;function y(t){return t?Date.now()-t>=s:!0}function z(t){if(!t)return 0;const n=s-(Date.now()-t);return Math.max(0,Math.ceil(n/1e3))}function D(t){return Object.entries(t).filter(([,e])=>e!==void 0&&e!=="").map(([e,a])=>{const r=o(e),i=o(a||"").replace(/\n/g,"<br>");return`<p><strong>${r}:</strong> ${i}</p>`}).join(`
`)}const h={name:100,email:254,phone:20,company:200,website:2048,message:5e3,projectDetails:5e3};export{h as F,o as a,D as b,w as c,y as d,f as e,g as f,d as g,z as h,m as i,p as j,l as s};