let t;const n=new Uint8Array(16);function o(){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(n)}const r=[];for(let t=0;t<256;++t){r.push((t+256).toString(16).slice(1))}function e(t,n=0){return r[t[n+0]]+r[t[n+1]]+r[t[n+2]]+r[t[n+3]]+"-"+r[t[n+4]]+r[t[n+5]]+"-"+r[t[n+6]]+r[t[n+7]]+"-"+r[t[n+8]]+r[t[n+9]]+"-"+r[t[n+10]]+r[t[n+11]]+r[t[n+12]]+r[t[n+13]]+r[t[n+14]]+r[t[n+15]]}const c=typeof crypto!=="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const u={randomUUID:c};function s(t,n,r){if(u.randomUUID&&!n&&!t){return u.randomUUID()}t=t||{};const c=t.random||(t.rng||o)();c[6]=c[6]&15|64;c[8]=c[8]&63|128;if(n){r=r||0;for(let t=0;t<16;++t){n[r+t]=c[t]}return n}return e(c)}function i(t,n=[]){const o=t.attributes;const r={};n.forEach((t=>{const n=o.getNamedItem(t);if(n){r[t]=n.value;o.removeNamedItem(t)}}));return r}function f(t,n=[]){const o=i(t,["id",...n]);o.id=o.id||s();return o}function p(){return s()}export{f as a,i as b,p as g,s as v};
//# sourceMappingURL=p-f239ccff.js.map