Text this: Ibn Khaldun and the metaphysics of history