SKHIRAT, Morocco — The UN envoy to Libya has presented the country's warring factions a final draft of a peace deal and urged all parties to accept it. After emerging from talks late Monday in Morocco, Bernardino Leon told reporters that “we finished our work. ... Now it is up to the parties, up to the participants in this dialogue to react to this text.” The participants are expected to resume talks after Eid Al-Adha to discuss who could be prime minister for a unity government, and decide whether to sign on to the accord. Libya is divided between an Islamist-backed government in Tripoli and an internationally recognized leadership based in the east. Leon has led several rounds of peace talks aimed at ending the country's chaos. Libya has had two parliaments and two governments since August last year when militia seized the capital Tripoli prompting the government recognized by most of the international community to take refuge in the remote east. Leon has been trying for months to come up with a compromise between the conflicting claims of the two administrations that will allow the formation of a united government to tackle the rise of militant groups and people smuggling across the Mediterranean to Europe. But successive proposals have met with objections from one side or the other, and the Spanish diplomat said that the latest plan was the final one and there would be no more redrafting. “In every negotiation and every process, there's a moment in which we have to be clear that the job is done,” Leon told a pre-dawn news conference. “It's the moment for them... after a process that has been longer than we all expected... to say yes we want to work together. “Every Libyan... will see elements in the agreement they will not like but hopefully they will see more elements that they like. “They can refuse and reject the proposal but in this case they will also be choosing uncertainty, choosing difficulties working with the international community.” He said all parties had confirmed their willingness to return to discuss representatives for a united government within days and for a deal to be signed in Libya before Oct. 20. — Agencies