1 | import "./chunk-V4OQ3NZ2.js";
|
---|
2 |
|
---|
3 | // node_modules/uuid/dist/esm-browser/max.js
|
---|
4 | var max_default = "ffffffff-ffff-ffff-ffff-ffffffffffff";
|
---|
5 |
|
---|
6 | // node_modules/uuid/dist/esm-browser/nil.js
|
---|
7 | var nil_default = "00000000-0000-0000-0000-000000000000";
|
---|
8 |
|
---|
9 | // node_modules/uuid/dist/esm-browser/regex.js
|
---|
10 | var regex_default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;
|
---|
11 |
|
---|
12 | // node_modules/uuid/dist/esm-browser/validate.js
|
---|
13 | function validate(uuid) {
|
---|
14 | return typeof uuid === "string" && regex_default.test(uuid);
|
---|
15 | }
|
---|
16 | var validate_default = validate;
|
---|
17 |
|
---|
18 | // node_modules/uuid/dist/esm-browser/parse.js
|
---|
19 | function parse(uuid) {
|
---|
20 | if (!validate_default(uuid)) {
|
---|
21 | throw TypeError("Invalid UUID");
|
---|
22 | }
|
---|
23 | let v;
|
---|
24 | return Uint8Array.of((v = parseInt(uuid.slice(0, 8), 16)) >>> 24, v >>> 16 & 255, v >>> 8 & 255, v & 255, (v = parseInt(uuid.slice(9, 13), 16)) >>> 8, v & 255, (v = parseInt(uuid.slice(14, 18), 16)) >>> 8, v & 255, (v = parseInt(uuid.slice(19, 23), 16)) >>> 8, v & 255, (v = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255, v / 4294967296 & 255, v >>> 24 & 255, v >>> 16 & 255, v >>> 8 & 255, v & 255);
|
---|
25 | }
|
---|
26 | var parse_default = parse;
|
---|
27 |
|
---|
28 | // node_modules/uuid/dist/esm-browser/stringify.js
|
---|
29 | var byteToHex = [];
|
---|
30 | for (let i = 0; i < 256; ++i) {
|
---|
31 | byteToHex.push((i + 256).toString(16).slice(1));
|
---|
32 | }
|
---|
33 | function unsafeStringify(arr, offset = 0) {
|
---|
34 | return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
---|
35 | }
|
---|
36 | function stringify(arr, offset = 0) {
|
---|
37 | const uuid = unsafeStringify(arr, offset);
|
---|
38 | if (!validate_default(uuid)) {
|
---|
39 | throw TypeError("Stringified UUID is invalid");
|
---|
40 | }
|
---|
41 | return uuid;
|
---|
42 | }
|
---|
43 | var stringify_default = stringify;
|
---|
44 |
|
---|
45 | // node_modules/uuid/dist/esm-browser/rng.js
|
---|
46 | var getRandomValues;
|
---|
47 | var rnds8 = new Uint8Array(16);
|
---|
48 | function rng() {
|
---|
49 | if (!getRandomValues) {
|
---|
50 | if (typeof crypto === "undefined" || !crypto.getRandomValues) {
|
---|
51 | throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
---|
52 | }
|
---|
53 | getRandomValues = crypto.getRandomValues.bind(crypto);
|
---|
54 | }
|
---|
55 | return getRandomValues(rnds8);
|
---|
56 | }
|
---|
57 |
|
---|
58 | // node_modules/uuid/dist/esm-browser/v1.js
|
---|
59 | var _state = {};
|
---|
60 | function v1(options, buf, offset) {
|
---|
61 | var _a;
|
---|
62 | let bytes;
|
---|
63 | const isV6 = (options == null ? void 0 : options._v6) ?? false;
|
---|
64 | if (options) {
|
---|
65 | const optionsKeys = Object.keys(options);
|
---|
66 | if (optionsKeys.length === 1 && optionsKeys[0] === "_v6") {
|
---|
67 | options = void 0;
|
---|
68 | }
|
---|
69 | }
|
---|
70 | if (options) {
|
---|
71 | bytes = v1Bytes(options.random ?? ((_a = options.rng) == null ? void 0 : _a.call(options)) ?? rng(), options.msecs, options.nsecs, options.clockseq, options.node, buf, offset);
|
---|
72 | } else {
|
---|
73 | const now = Date.now();
|
---|
74 | const rnds = rng();
|
---|
75 | updateV1State(_state, now, rnds);
|
---|
76 | bytes = v1Bytes(rnds, _state.msecs, _state.nsecs, isV6 ? void 0 : _state.clockseq, isV6 ? void 0 : _state.node, buf, offset);
|
---|
77 | }
|
---|
78 | return buf ? bytes : unsafeStringify(bytes);
|
---|
79 | }
|
---|
80 | function updateV1State(state, now, rnds) {
|
---|
81 | state.msecs ?? (state.msecs = -Infinity);
|
---|
82 | state.nsecs ?? (state.nsecs = 0);
|
---|
83 | if (now === state.msecs) {
|
---|
84 | state.nsecs++;
|
---|
85 | if (state.nsecs >= 1e4) {
|
---|
86 | state.node = void 0;
|
---|
87 | state.nsecs = 0;
|
---|
88 | }
|
---|
89 | } else if (now > state.msecs) {
|
---|
90 | state.nsecs = 0;
|
---|
91 | } else if (now < state.msecs) {
|
---|
92 | state.node = void 0;
|
---|
93 | }
|
---|
94 | if (!state.node) {
|
---|
95 | state.node = rnds.slice(10, 16);
|
---|
96 | state.node[0] |= 1;
|
---|
97 | state.clockseq = (rnds[8] << 8 | rnds[9]) & 16383;
|
---|
98 | }
|
---|
99 | state.msecs = now;
|
---|
100 | return state;
|
---|
101 | }
|
---|
102 | function v1Bytes(rnds, msecs, nsecs, clockseq, node, buf, offset = 0) {
|
---|
103 | if (!buf) {
|
---|
104 | buf = new Uint8Array(16);
|
---|
105 | offset = 0;
|
---|
106 | }
|
---|
107 | msecs ?? (msecs = Date.now());
|
---|
108 | nsecs ?? (nsecs = 0);
|
---|
109 | clockseq ?? (clockseq = (rnds[8] << 8 | rnds[9]) & 16383);
|
---|
110 | node ?? (node = rnds.slice(10, 16));
|
---|
111 | msecs += 122192928e5;
|
---|
112 | const tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296;
|
---|
113 | buf[offset++] = tl >>> 24 & 255;
|
---|
114 | buf[offset++] = tl >>> 16 & 255;
|
---|
115 | buf[offset++] = tl >>> 8 & 255;
|
---|
116 | buf[offset++] = tl & 255;
|
---|
117 | const tmh = msecs / 4294967296 * 1e4 & 268435455;
|
---|
118 | buf[offset++] = tmh >>> 8 & 255;
|
---|
119 | buf[offset++] = tmh & 255;
|
---|
120 | buf[offset++] = tmh >>> 24 & 15 | 16;
|
---|
121 | buf[offset++] = tmh >>> 16 & 255;
|
---|
122 | buf[offset++] = clockseq >>> 8 | 128;
|
---|
123 | buf[offset++] = clockseq & 255;
|
---|
124 | for (let n = 0; n < 6; ++n) {
|
---|
125 | buf[offset++] = node[n];
|
---|
126 | }
|
---|
127 | return buf;
|
---|
128 | }
|
---|
129 | var v1_default = v1;
|
---|
130 |
|
---|
131 | // node_modules/uuid/dist/esm-browser/v1ToV6.js
|
---|
132 | function v1ToV6(uuid) {
|
---|
133 | const v1Bytes2 = typeof uuid === "string" ? parse_default(uuid) : uuid;
|
---|
134 | const v6Bytes = _v1ToV6(v1Bytes2);
|
---|
135 | return typeof uuid === "string" ? unsafeStringify(v6Bytes) : v6Bytes;
|
---|
136 | }
|
---|
137 | function _v1ToV6(v1Bytes2) {
|
---|
138 | return Uint8Array.of((v1Bytes2[6] & 15) << 4 | v1Bytes2[7] >> 4 & 15, (v1Bytes2[7] & 15) << 4 | (v1Bytes2[4] & 240) >> 4, (v1Bytes2[4] & 15) << 4 | (v1Bytes2[5] & 240) >> 4, (v1Bytes2[5] & 15) << 4 | (v1Bytes2[0] & 240) >> 4, (v1Bytes2[0] & 15) << 4 | (v1Bytes2[1] & 240) >> 4, (v1Bytes2[1] & 15) << 4 | (v1Bytes2[2] & 240) >> 4, 96 | v1Bytes2[2] & 15, v1Bytes2[3], v1Bytes2[8], v1Bytes2[9], v1Bytes2[10], v1Bytes2[11], v1Bytes2[12], v1Bytes2[13], v1Bytes2[14], v1Bytes2[15]);
|
---|
139 | }
|
---|
140 |
|
---|
141 | // node_modules/uuid/dist/esm-browser/md5.js
|
---|
142 | function md5(bytes) {
|
---|
143 | const words = uint8ToUint32(bytes);
|
---|
144 | const md5Bytes = wordsToMd5(words, bytes.length * 8);
|
---|
145 | return uint32ToUint8(md5Bytes);
|
---|
146 | }
|
---|
147 | function uint32ToUint8(input) {
|
---|
148 | const bytes = new Uint8Array(input.length * 4);
|
---|
149 | for (let i = 0; i < input.length * 4; i++) {
|
---|
150 | bytes[i] = input[i >> 2] >>> i % 4 * 8 & 255;
|
---|
151 | }
|
---|
152 | return bytes;
|
---|
153 | }
|
---|
154 | function getOutputLength(inputLength8) {
|
---|
155 | return (inputLength8 + 64 >>> 9 << 4) + 14 + 1;
|
---|
156 | }
|
---|
157 | function wordsToMd5(x, len) {
|
---|
158 | const xpad = new Uint32Array(getOutputLength(len)).fill(0);
|
---|
159 | xpad.set(x);
|
---|
160 | xpad[len >> 5] |= 128 << len % 32;
|
---|
161 | xpad[xpad.length - 1] = len;
|
---|
162 | x = xpad;
|
---|
163 | let a = 1732584193;
|
---|
164 | let b = -271733879;
|
---|
165 | let c = -1732584194;
|
---|
166 | let d = 271733878;
|
---|
167 | for (let i = 0; i < x.length; i += 16) {
|
---|
168 | const olda = a;
|
---|
169 | const oldb = b;
|
---|
170 | const oldc = c;
|
---|
171 | const oldd = d;
|
---|
172 | a = md5ff(a, b, c, d, x[i], 7, -680876936);
|
---|
173 | d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
|
---|
174 | c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
|
---|
175 | b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
|
---|
176 | a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
|
---|
177 | d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
|
---|
178 | c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
|
---|
179 | b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
|
---|
180 | a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
|
---|
181 | d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
|
---|
182 | c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
|
---|
183 | b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
|
---|
184 | a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
|
---|
185 | d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
|
---|
186 | c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
|
---|
187 | b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
|
---|
188 | a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
|
---|
189 | d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
|
---|
190 | c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
|
---|
191 | b = md5gg(b, c, d, a, x[i], 20, -373897302);
|
---|
192 | a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
|
---|
193 | d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
|
---|
194 | c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
|
---|
195 | b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
|
---|
196 | a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
|
---|
197 | d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
|
---|
198 | c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
|
---|
199 | b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
|
---|
200 | a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
|
---|
201 | d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
|
---|
202 | c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
|
---|
203 | b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
|
---|
204 | a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
|
---|
205 | d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
|
---|
206 | c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
|
---|
207 | b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
|
---|
208 | a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
|
---|
209 | d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
|
---|
210 | c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
|
---|
211 | b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
|
---|
212 | a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
|
---|
213 | d = md5hh(d, a, b, c, x[i], 11, -358537222);
|
---|
214 | c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
|
---|
215 | b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
|
---|
216 | a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
|
---|
217 | d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
|
---|
218 | c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
|
---|
219 | b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
|
---|
220 | a = md5ii(a, b, c, d, x[i], 6, -198630844);
|
---|
221 | d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
|
---|
222 | c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
|
---|
223 | b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
|
---|
224 | a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
|
---|
225 | d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
|
---|
226 | c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
|
---|
227 | b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
|
---|
228 | a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
|
---|
229 | d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
|
---|
230 | c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
|
---|
231 | b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
|
---|
232 | a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
|
---|
233 | d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
|
---|
234 | c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
|
---|
235 | b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
|
---|
236 | a = safeAdd(a, olda);
|
---|
237 | b = safeAdd(b, oldb);
|
---|
238 | c = safeAdd(c, oldc);
|
---|
239 | d = safeAdd(d, oldd);
|
---|
240 | }
|
---|
241 | return Uint32Array.of(a, b, c, d);
|
---|
242 | }
|
---|
243 | function uint8ToUint32(input) {
|
---|
244 | if (input.length === 0) {
|
---|
245 | return new Uint32Array();
|
---|
246 | }
|
---|
247 | const output = new Uint32Array(getOutputLength(input.length * 8)).fill(0);
|
---|
248 | for (let i = 0; i < input.length; i++) {
|
---|
249 | output[i >> 2] |= (input[i] & 255) << i % 4 * 8;
|
---|
250 | }
|
---|
251 | return output;
|
---|
252 | }
|
---|
253 | function safeAdd(x, y) {
|
---|
254 | const lsw = (x & 65535) + (y & 65535);
|
---|
255 | const msw = (x >> 16) + (y >> 16) + (lsw >> 16);
|
---|
256 | return msw << 16 | lsw & 65535;
|
---|
257 | }
|
---|
258 | function bitRotateLeft(num, cnt) {
|
---|
259 | return num << cnt | num >>> 32 - cnt;
|
---|
260 | }
|
---|
261 | function md5cmn(q, a, b, x, s, t) {
|
---|
262 | return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
|
---|
263 | }
|
---|
264 | function md5ff(a, b, c, d, x, s, t) {
|
---|
265 | return md5cmn(b & c | ~b & d, a, b, x, s, t);
|
---|
266 | }
|
---|
267 | function md5gg(a, b, c, d, x, s, t) {
|
---|
268 | return md5cmn(b & d | c & ~d, a, b, x, s, t);
|
---|
269 | }
|
---|
270 | function md5hh(a, b, c, d, x, s, t) {
|
---|
271 | return md5cmn(b ^ c ^ d, a, b, x, s, t);
|
---|
272 | }
|
---|
273 | function md5ii(a, b, c, d, x, s, t) {
|
---|
274 | return md5cmn(c ^ (b | ~d), a, b, x, s, t);
|
---|
275 | }
|
---|
276 | var md5_default = md5;
|
---|
277 |
|
---|
278 | // node_modules/uuid/dist/esm-browser/v35.js
|
---|
279 | function stringToBytes(str) {
|
---|
280 | str = unescape(encodeURIComponent(str));
|
---|
281 | const bytes = new Uint8Array(str.length);
|
---|
282 | for (let i = 0; i < str.length; ++i) {
|
---|
283 | bytes[i] = str.charCodeAt(i);
|
---|
284 | }
|
---|
285 | return bytes;
|
---|
286 | }
|
---|
287 | var DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
|
---|
288 | var URL = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
---|
289 | function v35(version2, hash, value, namespace, buf, offset) {
|
---|
290 | const valueBytes = typeof value === "string" ? stringToBytes(value) : value;
|
---|
291 | const namespaceBytes = typeof namespace === "string" ? parse_default(namespace) : namespace;
|
---|
292 | if (typeof namespace === "string") {
|
---|
293 | namespace = parse_default(namespace);
|
---|
294 | }
|
---|
295 | if ((namespace == null ? void 0 : namespace.length) !== 16) {
|
---|
296 | throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
|
---|
297 | }
|
---|
298 | let bytes = new Uint8Array(16 + valueBytes.length);
|
---|
299 | bytes.set(namespaceBytes);
|
---|
300 | bytes.set(valueBytes, namespaceBytes.length);
|
---|
301 | bytes = hash(bytes);
|
---|
302 | bytes[6] = bytes[6] & 15 | version2;
|
---|
303 | bytes[8] = bytes[8] & 63 | 128;
|
---|
304 | if (buf) {
|
---|
305 | offset = offset || 0;
|
---|
306 | for (let i = 0; i < 16; ++i) {
|
---|
307 | buf[offset + i] = bytes[i];
|
---|
308 | }
|
---|
309 | return buf;
|
---|
310 | }
|
---|
311 | return unsafeStringify(bytes);
|
---|
312 | }
|
---|
313 |
|
---|
314 | // node_modules/uuid/dist/esm-browser/v3.js
|
---|
315 | function v3(value, namespace, buf, offset) {
|
---|
316 | return v35(48, md5_default, value, namespace, buf, offset);
|
---|
317 | }
|
---|
318 | v3.DNS = DNS;
|
---|
319 | v3.URL = URL;
|
---|
320 | var v3_default = v3;
|
---|
321 |
|
---|
322 | // node_modules/uuid/dist/esm-browser/native.js
|
---|
323 | var randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
---|
324 | var native_default = { randomUUID };
|
---|
325 |
|
---|
326 | // node_modules/uuid/dist/esm-browser/v4.js
|
---|
327 | function v4(options, buf, offset) {
|
---|
328 | if (native_default.randomUUID && !buf && !options) {
|
---|
329 | return native_default.randomUUID();
|
---|
330 | }
|
---|
331 | options = options || {};
|
---|
332 | const rnds = options.random || (options.rng || rng)();
|
---|
333 | rnds[6] = rnds[6] & 15 | 64;
|
---|
334 | rnds[8] = rnds[8] & 63 | 128;
|
---|
335 | if (buf) {
|
---|
336 | offset = offset || 0;
|
---|
337 | for (let i = 0; i < 16; ++i) {
|
---|
338 | buf[offset + i] = rnds[i];
|
---|
339 | }
|
---|
340 | return buf;
|
---|
341 | }
|
---|
342 | return unsafeStringify(rnds);
|
---|
343 | }
|
---|
344 | var v4_default = v4;
|
---|
345 |
|
---|
346 | // node_modules/uuid/dist/esm-browser/sha1.js
|
---|
347 | function f(s, x, y, z) {
|
---|
348 | switch (s) {
|
---|
349 | case 0:
|
---|
350 | return x & y ^ ~x & z;
|
---|
351 | case 1:
|
---|
352 | return x ^ y ^ z;
|
---|
353 | case 2:
|
---|
354 | return x & y ^ x & z ^ y & z;
|
---|
355 | case 3:
|
---|
356 | return x ^ y ^ z;
|
---|
357 | }
|
---|
358 | }
|
---|
359 | function ROTL(x, n) {
|
---|
360 | return x << n | x >>> 32 - n;
|
---|
361 | }
|
---|
362 | function sha1(bytes) {
|
---|
363 | const K = [1518500249, 1859775393, 2400959708, 3395469782];
|
---|
364 | const H = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
|
---|
365 | const newBytes = new Uint8Array(bytes.length + 1);
|
---|
366 | newBytes.set(bytes);
|
---|
367 | newBytes[bytes.length] = 128;
|
---|
368 | bytes = newBytes;
|
---|
369 | const l = bytes.length / 4 + 2;
|
---|
370 | const N = Math.ceil(l / 16);
|
---|
371 | const M = new Array(N);
|
---|
372 | for (let i = 0; i < N; ++i) {
|
---|
373 | const arr = new Uint32Array(16);
|
---|
374 | for (let j = 0; j < 16; ++j) {
|
---|
375 | arr[j] = bytes[i * 64 + j * 4] << 24 | bytes[i * 64 + j * 4 + 1] << 16 | bytes[i * 64 + j * 4 + 2] << 8 | bytes[i * 64 + j * 4 + 3];
|
---|
376 | }
|
---|
377 | M[i] = arr;
|
---|
378 | }
|
---|
379 | M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32);
|
---|
380 | M[N - 1][14] = Math.floor(M[N - 1][14]);
|
---|
381 | M[N - 1][15] = (bytes.length - 1) * 8 & 4294967295;
|
---|
382 | for (let i = 0; i < N; ++i) {
|
---|
383 | const W = new Uint32Array(80);
|
---|
384 | for (let t = 0; t < 16; ++t) {
|
---|
385 | W[t] = M[i][t];
|
---|
386 | }
|
---|
387 | for (let t = 16; t < 80; ++t) {
|
---|
388 | W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1);
|
---|
389 | }
|
---|
390 | let a = H[0];
|
---|
391 | let b = H[1];
|
---|
392 | let c = H[2];
|
---|
393 | let d = H[3];
|
---|
394 | let e = H[4];
|
---|
395 | for (let t = 0; t < 80; ++t) {
|
---|
396 | const s = Math.floor(t / 20);
|
---|
397 | const T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[t] >>> 0;
|
---|
398 | e = d;
|
---|
399 | d = c;
|
---|
400 | c = ROTL(b, 30) >>> 0;
|
---|
401 | b = a;
|
---|
402 | a = T;
|
---|
403 | }
|
---|
404 | H[0] = H[0] + a >>> 0;
|
---|
405 | H[1] = H[1] + b >>> 0;
|
---|
406 | H[2] = H[2] + c >>> 0;
|
---|
407 | H[3] = H[3] + d >>> 0;
|
---|
408 | H[4] = H[4] + e >>> 0;
|
---|
409 | }
|
---|
410 | return Uint8Array.of(H[0] >> 24, H[0] >> 16, H[0] >> 8, H[0], H[1] >> 24, H[1] >> 16, H[1] >> 8, H[1], H[2] >> 24, H[2] >> 16, H[2] >> 8, H[2], H[3] >> 24, H[3] >> 16, H[3] >> 8, H[3], H[4] >> 24, H[4] >> 16, H[4] >> 8, H[4]);
|
---|
411 | }
|
---|
412 | var sha1_default = sha1;
|
---|
413 |
|
---|
414 | // node_modules/uuid/dist/esm-browser/v5.js
|
---|
415 | function v5(value, namespace, buf, offset) {
|
---|
416 | return v35(80, sha1_default, value, namespace, buf, offset);
|
---|
417 | }
|
---|
418 | v5.DNS = DNS;
|
---|
419 | v5.URL = URL;
|
---|
420 | var v5_default = v5;
|
---|
421 |
|
---|
422 | // node_modules/uuid/dist/esm-browser/v6.js
|
---|
423 | function v6(options, buf, offset) {
|
---|
424 | options ?? (options = {});
|
---|
425 | offset ?? (offset = 0);
|
---|
426 | let bytes = v1_default({ ...options, _v6: true }, new Uint8Array(16));
|
---|
427 | bytes = v1ToV6(bytes);
|
---|
428 | if (buf) {
|
---|
429 | for (let i = 0; i < 16; i++) {
|
---|
430 | buf[offset + i] = bytes[i];
|
---|
431 | }
|
---|
432 | return buf;
|
---|
433 | }
|
---|
434 | return unsafeStringify(bytes);
|
---|
435 | }
|
---|
436 | var v6_default = v6;
|
---|
437 |
|
---|
438 | // node_modules/uuid/dist/esm-browser/v6ToV1.js
|
---|
439 | function v6ToV1(uuid) {
|
---|
440 | const v6Bytes = typeof uuid === "string" ? parse_default(uuid) : uuid;
|
---|
441 | const v1Bytes2 = _v6ToV1(v6Bytes);
|
---|
442 | return typeof uuid === "string" ? unsafeStringify(v1Bytes2) : v1Bytes2;
|
---|
443 | }
|
---|
444 | function _v6ToV1(v6Bytes) {
|
---|
445 | return Uint8Array.of((v6Bytes[3] & 15) << 4 | v6Bytes[4] >> 4 & 15, (v6Bytes[4] & 15) << 4 | (v6Bytes[5] & 240) >> 4, (v6Bytes[5] & 15) << 4 | v6Bytes[6] & 15, v6Bytes[7], (v6Bytes[1] & 15) << 4 | (v6Bytes[2] & 240) >> 4, (v6Bytes[2] & 15) << 4 | (v6Bytes[3] & 240) >> 4, 16 | (v6Bytes[0] & 240) >> 4, (v6Bytes[0] & 15) << 4 | (v6Bytes[1] & 240) >> 4, v6Bytes[8], v6Bytes[9], v6Bytes[10], v6Bytes[11], v6Bytes[12], v6Bytes[13], v6Bytes[14], v6Bytes[15]);
|
---|
446 | }
|
---|
447 |
|
---|
448 | // node_modules/uuid/dist/esm-browser/v7.js
|
---|
449 | var _state2 = {};
|
---|
450 | function v7(options, buf, offset) {
|
---|
451 | var _a;
|
---|
452 | let bytes;
|
---|
453 | if (options) {
|
---|
454 | bytes = v7Bytes(options.random ?? ((_a = options.rng) == null ? void 0 : _a.call(options)) ?? rng(), options.msecs, options.seq, buf, offset);
|
---|
455 | } else {
|
---|
456 | const now = Date.now();
|
---|
457 | const rnds = rng();
|
---|
458 | updateV7State(_state2, now, rnds);
|
---|
459 | bytes = v7Bytes(rnds, _state2.msecs, _state2.seq, buf, offset);
|
---|
460 | }
|
---|
461 | return buf ? bytes : unsafeStringify(bytes);
|
---|
462 | }
|
---|
463 | function updateV7State(state, now, rnds) {
|
---|
464 | state.msecs ?? (state.msecs = -Infinity);
|
---|
465 | state.seq ?? (state.seq = 0);
|
---|
466 | if (now > state.msecs) {
|
---|
467 | state.seq = rnds[6] << 23 | rnds[7] << 16 | rnds[8] << 8 | rnds[9];
|
---|
468 | state.msecs = now;
|
---|
469 | } else {
|
---|
470 | state.seq = state.seq + 1 | 0;
|
---|
471 | if (state.seq === 0) {
|
---|
472 | state.msecs++;
|
---|
473 | }
|
---|
474 | }
|
---|
475 | return state;
|
---|
476 | }
|
---|
477 | function v7Bytes(rnds, msecs, seq, buf, offset = 0) {
|
---|
478 | if (!buf) {
|
---|
479 | buf = new Uint8Array(16);
|
---|
480 | offset = 0;
|
---|
481 | }
|
---|
482 | msecs ?? (msecs = Date.now());
|
---|
483 | seq ?? (seq = rnds[6] * 127 << 24 | rnds[7] << 16 | rnds[8] << 8 | rnds[9]);
|
---|
484 | buf[offset++] = msecs / 1099511627776 & 255;
|
---|
485 | buf[offset++] = msecs / 4294967296 & 255;
|
---|
486 | buf[offset++] = msecs / 16777216 & 255;
|
---|
487 | buf[offset++] = msecs / 65536 & 255;
|
---|
488 | buf[offset++] = msecs / 256 & 255;
|
---|
489 | buf[offset++] = msecs & 255;
|
---|
490 | buf[offset++] = 112 | seq >>> 28 & 15;
|
---|
491 | buf[offset++] = seq >>> 20 & 255;
|
---|
492 | buf[offset++] = 128 | seq >>> 14 & 63;
|
---|
493 | buf[offset++] = seq >>> 6 & 255;
|
---|
494 | buf[offset++] = seq << 2 & 255 | rnds[10] & 3;
|
---|
495 | buf[offset++] = rnds[11];
|
---|
496 | buf[offset++] = rnds[12];
|
---|
497 | buf[offset++] = rnds[13];
|
---|
498 | buf[offset++] = rnds[14];
|
---|
499 | buf[offset++] = rnds[15];
|
---|
500 | return buf;
|
---|
501 | }
|
---|
502 | var v7_default = v7;
|
---|
503 |
|
---|
504 | // node_modules/uuid/dist/esm-browser/version.js
|
---|
505 | function version(uuid) {
|
---|
506 | if (!validate_default(uuid)) {
|
---|
507 | throw TypeError("Invalid UUID");
|
---|
508 | }
|
---|
509 | return parseInt(uuid.slice(14, 15), 16);
|
---|
510 | }
|
---|
511 | var version_default = version;
|
---|
512 | export {
|
---|
513 | max_default as MAX,
|
---|
514 | nil_default as NIL,
|
---|
515 | parse_default as parse,
|
---|
516 | stringify_default as stringify,
|
---|
517 | v1_default as v1,
|
---|
518 | v1ToV6,
|
---|
519 | v3_default as v3,
|
---|
520 | v4_default as v4,
|
---|
521 | v5_default as v5,
|
---|
522 | v6_default as v6,
|
---|
523 | v6ToV1,
|
---|
524 | v7_default as v7,
|
---|
525 | validate_default as validate,
|
---|
526 | version_default as version
|
---|
527 | };
|
---|
528 | //# sourceMappingURL=uuid.js.map
|
---|