Maximilian II Emanuel, Elector of Bavaria, 1662-1726.