function decodeBase64AsArray(input, bytes = 1) {
	const dec = globalThis.atob(input.replace(/[^A-Za-z0-9\+\/\=]/g, ""));
	const ar = new Uint32Array(dec.length / bytes);

	for (let i = 0, len = dec.length / bytes; i < len; i++) {
		ar[i] = 0;
		for (let j = bytes - 1; j >= 0; --j) {
			ar[i] += dec.charCodeAt(i * bytes + j) << (j << 3);
		}
	}
	return ar;
}
Decode a base64 encoded string into a byte array
@memberof TMXUtils
@param {string} input - Base64 encoded data
@param {number} [bytes] - number of bytes per array entry
@returns {Uint32Array} Decoded data