function t(r,a){switch(a){case"ascii":return Uint8Array.from(r,e=>e.charCodeAt(0));case"base64":return Uint8Array.from(atob(r.replace(/-/g,"+").replace(/_/g,"/")),e=>e.charCodeAt(0));case"hex":return new Uint8Array(r.match(/.{1,2}/g).map(e=>parseInt(e,16)))}}function n(r){return Array.from(new Uint8Array(r)).reduce((a,e)=>a+e.toString(16).padStart(2,"0"),"")}function i(r){return String.fromCharCode(...new Uint8Array(r))}export{t as b,n as h,i as s};
//# sourceMappingURL=2fa-C8X1mOPn.js.map
