Title: The evolution of a regional community within Spanish empire and Peruvian nation