var m=new Set(["domain","path","max-age","expires","samesite","secure","httponly"]);function g(i){let n={},e,t,r=0,o=i.split(/;\s*/g),s,a;for(;r=0&&(t+="; Max-Age="+(e.maxage|0)),e.domain&&(t+="; Domain="+e.domain),e.path&&(t+="; Path="+e.path),e.samesite&&(t+="; SameSite="+e.samesite),(e.secure||e.samesite==="None")&&(t+="; Secure"),e.httponly&&(t+="; HttpOnly"),t}export{g as a,x as b};