Your Name 1912bcd25b
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore: sync all remaining local workspace changes
2026-05-08 11:26:57 +08:00

106 lines
3.4 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 5d5b47876e53e564.da1ba52a93.js
* Module id: 458029
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e, t, r) => {
(() => {
"use strict";
"u" > typeof __nccwpck_require__ &&
(__nccwpck_require__.ab =
"/ROOT/node_modules/.pnpm/next@16.1.6_@babel+core@7.29.0_@opentelemetry+api@1.9.0_@playwright+test@1.58.1_babel-p_876821d3b4564cd803d7157ee72f8b43/node_modules/next/dist/compiled/cookie/");
var e,
r,
n,
o,
a = {};
(a.parse = function (t, r) {
if ("string" != typeof t)
throw TypeError("argument str must be a string");
for (
var o = {}, a = t.split(n), i = (r || {}).decode || e, l = 0;
l < a.length;
l++
) {
var s = a[l],
c = s.indexOf("=");
if (!(c < 0)) {
var u = s.substr(0, c).trim(),
d = s.substr(++c, s.length).trim();
'"' == d[0] && (d = d.slice(1, -1)),
void 0 == o[u] &&
(o[u] = (function (e, t) {
try {
return t(e);
} catch (t) {
return e;
}
})(d, i));
}
}
return o;
}),
(a.serialize = function (e, t, n) {
var a = n || {},
i = a.encode || r;
if ("function" != typeof i)
throw TypeError("option encode is invalid");
if (!o.test(e)) throw TypeError("argument name is invalid");
var l = i(t);
if (l && !o.test(l)) throw TypeError("argument val is invalid");
var s = e + "=" + l;
if (null != a.maxAge) {
var c = a.maxAge - 0;
if (isNaN(c) || !isFinite(c))
throw TypeError("option maxAge is invalid");
s += "; Max-Age=" + Math.floor(c);
}
if (a.domain) {
if (!o.test(a.domain)) throw TypeError("option domain is invalid");
s += "; Domain=" + a.domain;
}
if (a.path) {
if (!o.test(a.path)) throw TypeError("option path is invalid");
s += "; Path=" + a.path;
}
if (a.expires) {
if ("function" != typeof a.expires.toUTCString)
throw TypeError("option expires is invalid");
s += "; Expires=" + a.expires.toUTCString();
}
if (
(a.httpOnly && (s += "; HttpOnly"),
a.secure && (s += "; Secure"),
a.sameSite)
)
switch (
"string" == typeof a.sameSite
? a.sameSite.toLowerCase()
: a.sameSite
) {
case !0:
case "strict":
s += "; SameSite=Strict";
break;
case "lax":
s += "; SameSite=Lax";
break;
case "none":
s += "; SameSite=None";
break;
default:
throw TypeError("option sameSite is invalid");
}
return s;
}),
(e = decodeURIComponent),
(r = encodeURIComponent),
(n = /; */),
(o = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/),
(t.exports = a);
})();
};
export default moduleFactory;