"use strict";var a=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var l=(o,e)=>{for(var r in e)a(o,r,{get:e[r],enumerable:!0})},m=(o,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of i(e))!p.call(o,t)&&t!==r&&a(o,t,{get:()=>e[t],enumerable:!(n=d(e,t))||n.enumerable});return o};var g=o=>m(a({},"__esModule",{value:!0}),o);var B={};l(B,{ScureBase32Plugin:()=>s,base32:()=>f,default:()=>u});module.exports=g(B);var c=require("@scure/base"),s=class{name="scure";encode(e,r={}){let{padding:n=!1}=r,t=c.base32.encode(e);return n?t:t.replace(/=+$/,"")}decode(e){try{let r=e.toUpperCase(),n=r.padEnd(Math.ceil(r.length/8)*8,"=");return c.base32.decode(n)}catch(r){throw r instanceof Error?new Error(`Invalid Base32 string: ${r.message}`):new Error("Invalid Base32 string")}}},f=Object.freeze(new s),u=s;0&&(module.exports={ScureBase32Plugin,base32});
//# sourceMappingURL=index.cjs.map