const t=[];for(let n=0;n<256;++n)t.push((n+256).toString(16).slice(1));function e(n,u=0){return(t[n[u+0]]+t[n[u+1]]+t[n[u+2]]+t[n[u+3]]+"-"+t[n[u+4]]+t[n[u+5]]+"-"+t[n[u+6]]+t[n[u+7]]+"-"+t[n[u+8]]+t[n[u+9]]+"-"+t[n[u+10]]+t[n[u+11]]+t[n[u+12]]+t[n[u+13]]+t[n[u+14]]+t[n[u+15]]).toLowerCase()}const d=new Uint8Array(16);function g(){return crypto.getRandomValues(d)}function y(n,u,i){return crypto.randomUUID?crypto.randomUUID():x(n)}function x(n,u,i){n=n||{};const c=n.random??n.rng?.()??g();if(c.length<16)throw new Error("Random bytes length must be >= 16");return c[6]=c[6]&15|64,c[8]=c[8]&63|128,e(c)}export{y as v};
//# sourceMappingURL=v4-Dnyct6Ft.js.map
