var search = /[\0\t\n\r]/g;
function preprocess() {
	let t = 1, n = "", r = !0, i;
	return a;
	function a(a, o, s) {
		let c = [], l, u, d, f, p;
		for (a = n + (typeof a == "string" ? a.toString() : new TextDecoder(o || void 0).decode(a)), d = 0, n = "", r &&= (a.charCodeAt(0) === 65279 && d++, void 0); d < a.length;) {
			if (search.lastIndex = d, l = search.exec(a), f = l && l.index !== void 0 ? l.index : a.length, p = a.charCodeAt(f), !l) {
				n = a.slice(d);
				break;
			}
			if (p === 10 && d === f && i) c.push(-3), i = void 0;
			else switch (i &&= (c.push(-5), void 0), d < f && (c.push(a.slice(d, f)), t += f - d), p) {
				case 0:
					c.push(65533), t++;
					break;
				case 9:
					for (u = Math.ceil(t / 4) * 4, c.push(-2); t++ < u;) c.push(-1);
					break;
				case 10:
					c.push(-4), t = 1;
					break;
				default: i = !0, t = 1;
			}
			d = f + 1;
		}
		return s && (i && c.push(-5), n && c.push(n), c.push(null)), c;
	}
}
export { preprocess };
