Resource levels and prey state influence antipredator behavior and the strength of nonconsumptive predator effects