{"version":3,"file":"b64u-lite.mjs","sources":["../index.mjs","../node_modules/b64-lite/dist/b64-lite.mjs"],"sourcesContent":["import { atob, btoa, toBase64, fromBase64, toBuffer as toBuffer64 } from 'b64-lite'\n\nexport function toBinaryString(b64u) {\n return atob(b64u\n .replace(/-/g, '+')\n .replace(/_/g, '/'))\n}\n\nexport function fromBinaryString(binaryString, padding) {\n return btoa(binaryString)\n .replace(/\\+/g, '-')\n .replace(/\\//g, '_')\n .replace(/=/g, padding ? '=' : '')\n}\n\nexport function toBase64Url(input, padding) {\n return toBase64(input)\n .replace(/\\+/g, '-')\n .replace(/\\//g, '_')\n .replace(/=/g, padding ? '=' : '')\n}\n\nexport function fromBase64Url(b64u) {\n return fromBase64(b64u\n .replace(/-/g, '+')\n .replace(/_/g, '/'))\n}\n\nexport function toBuffer(b64u) {\n return toBuffer64(b64u\n .replace(/-/g, '+')\n .replace(/_/g, '/'))\n}\n","function n(n){return window.atob(n)}function o(n){return window.btoa(n)}function t(n){if(\"string\"==typeof n)return window.btoa(unescape(encodeURIComponent(n)));for(var o=new Uint8Array(n),t=\"\",e=0;e