Novak Djokovic overcame an injury and Carlos Alcaraz to reach a 12th Australian Open semifinal and remains alive for a record 25th Grand Slam title.