function setCookie(name,value,options={}){options={path:"/",};if(options.expires instanceof Date){options.expires=options.expires.toUTCString()}let updatedCookie=encodeURIComponent(name)+"="+encodeURIComponent(value);for(let optionKey in options){updatedCookie+="; "+optionKey;let optionValue=options[optionKey];if(optionValue!==!0){updatedCookie+="="+optionValue}}document.cookie=updatedCookie}setCookie("locale_window_width",(window.outerWidth==0?1920:window.outerWidth));localStorage.setItem("refererOld",JSON.stringify({referrer:document.referrer}));document.location.reload();