define(["exports"],(function(r){"use strict";var e=[],t=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,n=!1;function a(){n=!0;for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=r.length;o>18&63]+e[a>>12&63]+e[a>>6&63]+e[63&a]);return h.join("")}r.fromByteArray=function(r){var t;n||a();for(var o=r.length,c=o%3,d="",i=[],u=16383,A=0,f=o-c;Af?f:A+u));return 1===c?(t=r[o-1],d+=e[t>>2],d+=e[t<<4&63],d+="=="):2===c&&(t=(r[o-2]<<8)+r[o-1],d+=e[t>>10],d+=e[t>>4&63],d+=e[t<<2&63],d+="="),i.push(d),i.join("")},r.toByteArray=function(r){var e,h,c,d,i,u;n||a();var A=r.length;if(A%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===r[A-2]?2:"="===r[A-1]?1:0,u=new o(3*A/4-i),c=i>0?A-4:A;var f=0;for(e=0,h=0;e>16&255,u[f++]=d>>8&255,u[f++]=255&d;return 2===i?(d=t[r.charCodeAt(e)]<<2|t[r.charCodeAt(e+1)]>>4,u[f++]=255&d):1===i&&(d=t[r.charCodeAt(e)]<<10|t[r.charCodeAt(e+1)]<<4|t[r.charCodeAt(e+2)]>>2,u[f++]=d>>8&255,u[f++]=255&d),u},Object.defineProperty(r,"__esModule",{value:!0})}));