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