What is the etymology of mediocre?

Can you answer this question?