Spaces:
Paused
Paused
var __create = Object.create; | |
var __defProp = Object.defineProperty; | |
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | |
var __getOwnPropNames = Object.getOwnPropertyNames; | |
var __getProtoOf = Object.getPrototypeOf; | |
var __hasOwnProp = Object.prototype.hasOwnProperty; | |
var __commonJS = (cb, mod) => function __require() { | |
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; | |
}; | |
var __copyProps = (to, from, except, desc) => { | |
if (from && typeof from === "object" || typeof from === "function") { | |
for (let key of __getOwnPropNames(from)) | |
if (!__hasOwnProp.call(to, key) && key !== except) | |
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | |
} | |
return to; | |
}; | |
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | |
// If the importer is in node compatibility mode or this is not an ESM | |
// file that has been converted to a CommonJS file using a Babel- | |
// compatible transform (i.e. "__esModule" has not been set), then set | |
// "default" to the CommonJS "module.exports" for node compatibility. | |
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | |
mod | |
)); | |
// node_modules/cookie/index.js | |
var require_cookie = __commonJS({ | |
"node_modules/cookie/index.js"(exports) { | |
"use strict"; | |
exports.parse = parse; | |
exports.serialize = serialize; | |
var __toString = Object.prototype.toString; | |
var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/; | |
function parse(str, options) { | |
if (typeof str !== "string") { | |
throw new TypeError("argument str must be a string"); | |
} | |
var obj = {}; | |
var opt = options || {}; | |
var dec = opt.decode || decode; | |
var index = 0; | |
while (index < str.length) { | |
var eqIdx = str.indexOf("=", index); | |
if (eqIdx === -1) { | |
break; | |
} | |
var endIdx = str.indexOf(";", index); | |
if (endIdx === -1) { | |
endIdx = str.length; | |
} else if (endIdx < eqIdx) { | |
index = str.lastIndexOf(";", eqIdx - 1) + 1; | |
continue; | |
} | |
var key = str.slice(index, eqIdx).trim(); | |
if (void 0 === obj[key]) { | |
var val = str.slice(eqIdx + 1, endIdx).trim(); | |
if (val.charCodeAt(0) === 34) { | |
val = val.slice(1, -1); | |
} | |
obj[key] = tryDecode(val, dec); | |
} | |
index = endIdx + 1; | |
} | |
return obj; | |
} | |
function serialize(name, val, options) { | |
var opt = options || {}; | |
var enc = opt.encode || encode; | |
if (typeof enc !== "function") { | |
throw new TypeError("option encode is invalid"); | |
} | |
if (!fieldContentRegExp.test(name)) { | |
throw new TypeError("argument name is invalid"); | |
} | |
var value = enc(val); | |
if (value && !fieldContentRegExp.test(value)) { | |
throw new TypeError("argument val is invalid"); | |
} | |
var str = name + "=" + value; | |
if (null != opt.maxAge) { | |
var maxAge = opt.maxAge - 0; | |
if (isNaN(maxAge) || !isFinite(maxAge)) { | |
throw new TypeError("option maxAge is invalid"); | |
} | |
str += "; Max-Age=" + Math.floor(maxAge); | |
} | |
if (opt.domain) { | |
if (!fieldContentRegExp.test(opt.domain)) { | |
throw new TypeError("option domain is invalid"); | |
} | |
str += "; Domain=" + opt.domain; | |
} | |
if (opt.path) { | |
if (!fieldContentRegExp.test(opt.path)) { | |
throw new TypeError("option path is invalid"); | |
} | |
str += "; Path=" + opt.path; | |
} | |
if (opt.expires) { | |
var expires = opt.expires; | |
if (!isDate(expires) || isNaN(expires.valueOf())) { | |
throw new TypeError("option expires is invalid"); | |
} | |
str += "; Expires=" + expires.toUTCString(); | |
} | |
if (opt.httpOnly) { | |
str += "; HttpOnly"; | |
} | |
if (opt.secure) { | |
str += "; Secure"; | |
} | |
if (opt.priority) { | |
var priority = typeof opt.priority === "string" ? opt.priority.toLowerCase() : opt.priority; | |
switch (priority) { | |
case "low": | |
str += "; Priority=Low"; | |
break; | |
case "medium": | |
str += "; Priority=Medium"; | |
break; | |
case "high": | |
str += "; Priority=High"; | |
break; | |
default: | |
throw new TypeError("option priority is invalid"); | |
} | |
} | |
if (opt.sameSite) { | |
var sameSite = typeof opt.sameSite === "string" ? opt.sameSite.toLowerCase() : opt.sameSite; | |
switch (sameSite) { | |
case true: | |
str += "; SameSite=Strict"; | |
break; | |
case "lax": | |
str += "; SameSite=Lax"; | |
break; | |
case "strict": | |
str += "; SameSite=Strict"; | |
break; | |
case "none": | |
str += "; SameSite=None"; | |
break; | |
default: | |
throw new TypeError("option sameSite is invalid"); | |
} | |
} | |
return str; | |
} | |
function decode(str) { | |
return str.indexOf("%") !== -1 ? decodeURIComponent(str) : str; | |
} | |
function encode(val) { | |
return encodeURIComponent(val); | |
} | |
function isDate(val) { | |
return __toString.call(val) === "[object Date]" || val instanceof Date; | |
} | |
function tryDecode(str, decode2) { | |
try { | |
return decode2(str); | |
} catch (e) { | |
return str; | |
} | |
} | |
} | |
}); | |
// source.js | |
var import_cookie = __toESM(require_cookie(), 1); | |
var source_default = import_cookie.default; | |
export { | |
source_default as default | |
}; | |
/*! Bundled license information: | |
cookie/index.js: | |
(*! | |
* cookie | |
* Copyright(c) 2012-2014 Roman Shtylman | |
* Copyright(c) 2015 Douglas Christopher Wilson | |
* MIT Licensed | |
*) | |
*/ | |