sample
.trim()
.split("\n")
.map((l) => {
const [, i, ore, clay, obsidian, geode] = l.match(
/Blueprint (\d+): Each ore robot costs (\d+ ore). Each clay robot costs (\d+ ore). Each obsidian robot costs (\d+ ore and \d+ clay). Each geode robot costs (\d+ ore and \d+ obsidian)./
);
return { i: +i, ore, clay, obsidian, geode };
})