The result will determine which party gets the first opportunity to form a government, with the prime minister appointed by King Mohammed VI from the party that wins the most seats.