What is required if an obligatory hady animal perishes before discharge?

Bab al-Hady — Sacrificial Offerings, Eligibility, Slaughter and Handling