import { trimChars as e, trimCharsLeft as t } from "@milaboratories/helpers";
function n(e) {
	return e ? e.map((e) => "." + t(e, ["."])) : void 0;
}
function r(t) {
	let n = t.startsWith("/"), r = e(t, ["/"]).split("/"), i = [{
		index: 0,
		name: "Root",
		path: ""
	}];
	if (r.length === 1 && r[0] === "") return i;
	for (let e = 0; e < r.length; e++) {
		let t = (n ? "/" : "") + r.slice(0, e + 1).join("/");
		i.push({
			index: e + 1,
			name: r[e],
			path: t
		});
	}
	return i;
}
export { r as getFilePathBreadcrumbs, n as normalizeExtensions };

//# sourceMappingURL=utils.js.map