/** * Minified by jsDelivr using Terser v3.14.1. * Original file: /npm/js-base64@3.5.2/base64.js * * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):function(){const r=e.Base64,o=t();o.noConflict=(()=>(e.Base64=r,o)),e.Meteor&&(Base64=o),e.Base64=o}()}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:this,function(){"use strict";const e="function"==typeof atob,t="function"==typeof btoa,r="function"==typeof Buffer,o="function"==typeof TextDecoder?new TextDecoder:void 0,n="function"==typeof TextEncoder?new TextEncoder:void 0,a=[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],f=(e=>{let t={};return a.forEach((e,r)=>t[e]=r),t})(),i=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,c=String.fromCharCode.bind(String),u="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):(e,t=(e=>e))=>new Uint8Array(Array.prototype.slice.call(e,0).map(t)),d=e=>e.replace(/[+\/]/g,e=>"+"==e?"-":"_").replace(/=+$/m,""),s=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),l=e=>{let t,r,o,n,f="";const i=e.length%3;for(let i=0;i255||(o=e.charCodeAt(i++))>255||(n=e.charCodeAt(i++))>255)throw new TypeError("invalid character found");f+=a[(t=r<<16|o<<8|n)>>18&63]+a[t>>12&63]+a[t>>6&63]+a[63&t]}return i?f.slice(0,i-3)+"===".substring(i):f},h=t?e=>btoa(e):r?e=>Buffer.from(e,"binary").toString("base64"):l,y=r?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,o=e.length;rt?d(y(e)):y(e),A=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?c(192|t>>>6)+c(128|63&t):c(224|t>>>12&15)+c(128|t>>>6&63)+c(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return c(240|t>>>18&7)+c(128|t>>>12&63)+c(128|t>>>6&63)+c(128|63&t)},b=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,B=e=>e.replace(b,A),g=r?e=>Buffer.from(e,"utf8").toString("base64"):n?e=>y(n.encode(e)):e=>h(B(e)),x=(e,t=!1)=>t?d(g(e)):g(e),C=e=>x(e,!0),m=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,U=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return c(55296+(t>>>10))+c(56320+(1023&t));case 3:return c((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return c((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},F=e=>e.replace(m,U),w=e=>{if(e=e.replace(/\s+/g,""),!i.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r,o,n="";for(let a=0;a>16&255):64===o?c(t>>16&255,t>>8&255):c(t>>16&255,t>>8&255,255&t);return n},S=e?e=>atob(s(e)):r?e=>Buffer.from(e,"base64").toString("binary"):w,E=r?e=>u(Buffer.from(e,"base64")):e=>u(S(e),e=>e.charCodeAt(0)),v=e=>E(R(e)),D=r?e=>Buffer.from(e,"base64").toString("utf8"):o?e=>o.decode(E(e)):e=>F(S(e)),R=e=>s(e.replace(/[-_]/g,e=>"-"==e?"+":"/")),T=e=>D(R(e)),j=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),z=function(){const e=(e,t)=>Object.defineProperty(String.prototype,e,j(t));e("fromBase64",function(){return T(this)}),e("toBase64",function(e){return x(this,e)}),e("toBase64URI",function(){return x(this,!0)}),e("toBase64URL",function(){return x(this,!0)}),e("toUint8Array",function(){return v(this)})},I=function(){const e=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,j(t));e("toBase64",function(e){return p(this,e)}),e("toBase64URI",function(){return p(this,!0)}),e("toBase64URL",function(){return p(this,!0)})},O={version:"3.5.2",VERSION:"3.5.2",atob:S,atobPolyfill:w,btoa:h,btoaPolyfill:l,fromBase64:T,toBase64:x,encode:x,encodeURI:C,encodeURL:C,utob:B,btou:F,decode:T,fromUint8Array:p,toUint8Array:v,extendString:z,extendUint8Array:I,extendBuiltins:()=>{z(),I()},Base64:{}};return Object.keys(O).forEach(e=>O.Base64[e]=O[e]),O}); //# sourceMappingURL=/sm/8b3e9902a1e4bcf5d0d3c8c564b2adc8d85b1bd24d822f07e614fb8de28f9295.map