What geopolitical entity emerged from the Late Middle Ages