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

76 lines
2.2 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 042913757dfeb33b.7750222294.js
* Module id: 197895
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e) => {
"use strict";
let t,
r =
"u" > typeof crypto &&
crypto.randomUUID &&
crypto.randomUUID.bind(crypto),
i = new Uint8Array(16),
n = [];
for (let e = 0; e < 256; ++e) n.push((e + 256).toString(16).slice(1));
e.s(
[
"v4",
0,
function (e, a, s) {
if (r && !a && !e) return r();
let l =
(e = e || {}).random ??
e.rng?.() ??
(function () {
if (!t) {
if ("u" < typeof crypto || !crypto.getRandomValues)
throw Error(
"crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported",
);
t = crypto.getRandomValues.bind(crypto);
}
return t(i);
})();
if (l.length < 16) throw Error("Random bytes length must be >= 16");
if (((l[6] = (15 & l[6]) | 64), (l[8] = (63 & l[8]) | 128), a)) {
if ((s = s || 0) < 0 || s + 16 > a.length)
throw RangeError(
`UUID byte range ${s}:${s + 15} is out of buffer bounds`,
);
for (let e = 0; e < 16; ++e) a[s + e] = l[e];
return a;
}
return (function (e, t = 0) {
return (
n[e[t + 0]] +
n[e[t + 1]] +
n[e[t + 2]] +
n[e[t + 3]] +
"-" +
n[e[t + 4]] +
n[e[t + 5]] +
"-" +
n[e[t + 6]] +
n[e[t + 7]] +
"-" +
n[e[t + 8]] +
n[e[t + 9]] +
"-" +
n[e[t + 10]] +
n[e[t + 11]] +
n[e[t + 12]] +
n[e[t + 13]] +
n[e[t + 14]] +
n[e[t + 15]]
).toLowerCase();
})(l);
},
],
197895,
);
};
export default moduleFactory;