'use strict';
var __defProp=Object['defineProperty'],__name=(_0xba5a26,_0x16e9a1)=>__defProp(_0xba5a26,'name',{'value':_0x16e9a1,'configurable':!![]});const cookieAttributes={'httpOnly':'HttpOnly','sameSite':'SameSite','maxAge':'Max-Age','path':'Path','secure':'Secure'};const delim=';\x20';function createCookie(_0x43e810,_0x284838,_0x37bbd0){const _0x2c9a2e={'name':_0x43e810,'value':_0x284838,'attributes':_0x37bbd0};return _0x2c9a2e;}__name(createCookie,'createCookie');function serializeCookie(_0x4dc5af){const _0x99d65e=[];_0x99d65e['push'](createAttribute(_0x4dc5af['name'],_0x4dc5af['value'])+delim+cookieAttributes['httpOnly']);const _0x5a415c=getDefaultAttributes();for(const _0x411091 in _0x5a415c){!(_0x4dc5af['attributes']&&_0x411091 in _0x4dc5af['attributes'])&&_0x99d65e['push'](_0x5a415c[_0x411091]);}for(const _0xa2e90e in _0x4dc5af['attributes']){_0x99d65e['push'](createAttribute(_0xa2e90e,_0x4dc5af['attributes'][_0xa2e90e]));}return _0x99d65e['join'](delim);}__name(serializeCookie,'serializeCookie');function createAttribute(_0x5df4b5,_0x4b9e1c){return _0x5df4b5+'='+_0x4b9e1c;}__name(createAttribute,'createAttribute');function getDefaultAttributes(){const _0x4d6a31=createAttribute(cookieAttributes['sameSite'],'Lax'),_0x17eece=createAttribute(cookieAttributes['maxAge'],'0'),_0xc73dd5=createAttribute(cookieAttributes['path'],'/'),_0x4e40a1={'SameSite':_0x4d6a31,[cookieAttributes['maxAge']]:_0x17eece,'Path':_0xc73dd5};return _0x4e40a1;}__name(getDefaultAttributes,'getDefaultAttributes');

export { cookieAttributes, createCookie, serializeCookie };
