let t;const o=new Uint8Array(16);function r(){if(!t){t=typeof crypto!=="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto);if(!t){throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}}return t(o)}const n=[];for(let t=0;t<256;++t){n.push((t+256).toString(16).slice(1))}function e(t,o=0){return n[t[o+0]]+n[t[o+1]]+n[t[o+2]]+n[t[o+3]]+"-"+n[t[o+4]]+n[t[o+5]]+"-"+n[t[o+6]]+n[t[o+7]]+"-"+n[t[o+8]]+n[t[o+9]]+"-"+n[t[o+10]]+n[t[o+11]]+n[t[o+12]]+n[t[o+13]]+n[t[o+14]]+n[t[o+15]]}const u=typeof crypto!=="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const c={randomUUID:u};function p(t,o,n){if(c.randomUUID&&!o&&!t){return c.randomUUID()}t=t||{};const u=t.random||(t.rng||r)();u[6]=u[6]&15|64;u[8]=u[8]&63|128;if(o){n=n||0;for(let t=0;t<16;++t){o[n+t]=u[t]}return o}return e(u)}export{p as v};
//# sourceMappingURL=p-14616bce.js.map