Nuclear physics and astrophysics of the r-process