Maximum Flow and Minimum-Cost Flow in Almost-Linear Time