Vanishing cycles for analytic maps