COLOMBO, Sri Lanka (AP) -- Sri Lanka's opposition political parties were meeting Sunday to agree on a new government a day after the country's president and prime minister offered to resign in the most dramatic day of monthslong political turmoil, with protesters storming both leaders' homes and setting fire to one of the buildings in a rage over the economic crisis.
Protesters remained in President Gotabaya Rajapaksa's home, his seaside office and the prime minister's residence, saying they will stay until they officially resign. The president's whereabouts are still unknown, but a statement from his office said he ordered officials to start immediate distribution of a cooking gas consignment to the public, suggesting that he was still at work.
Soldiers were deployed around the city and Chief of Defense Staff Shavendra Silva called for public support to maintain law and order. But troops simply watched from afar as crowds of people splashed in the garden pool, lounged on beds and used their cellphone cameras to capture the moment in Rajapaksa's sprawling residence.
On Sunday, occupants of the prime minister's official residence cooked in an outdoor kitchen, played carrom --- a popular tabletop game --- and slept on big sofas.
Ranjith Madduma Bandara, a top official in main opposition party United People's Force, said that separate discussions were held with other parties and lawmakers who broke away from Rajapaksa's ruling coalition and more meetings are planned. He did not say when an agreement might be reached, even though it was expected to be finalized on Sunday.
Another opposition lawmaker, M. A. Sumanthiran, said earlier that all opposition parties combined could easily muster the 113 members needed to show a majority in Parliament, at which point they will request Rajapaksa to install the new government and then resign.
Prime Minister Ranil Wickremesinghe said he will leave office once a new government is in place, and hours later the speaker of Parliament said Rajapaksa would step down Wednesday. Pressure on both men had grown as the economic meltdown set off acute shortages of essential items, leaving people struggling to obtain food, fuel and other necessities.
If both president and prime minister resign, Speaker Mahinda Yapa Abeywardena will take over as temporary president, according to the constitution.
Rajapaksa appointed Wickremesinghe as prime minister in May in an effort to solve the shortages and start economic recovery.
Wickremesinghe had been part of crucial talks with the International Monetary Fund for a bailout program and with the World Food Program to prepare for a predicted food crisis. The government must submit a plan on debt sustainability to the IMF in August before reaching an agreement.
Analysts say it is doubtful any new leader could do more than Wickremesinghe. His government's efforts showed promise, with much-needed fertilizer being distributed to farmers for next season's cultivation and cooking gas orders arriving in the country Sunday.
"This kind of unrest could create confusion among international organizations like the IMF and the World Bank," political analyst Ranga Kalansooriya said, adding that a new administration should agree on a common program for economic recovery.
He said while Wickremesinghe was working in the right direction, his administration's weakness was not implementing a long-term plan to go with its focus on solving day-to-day problems.
It is unlikely that an all-party government will agree on IMF-backed economic reforms without some parties losing their political support.
Wickremesinghe said Saturday that it was not proper for him to leave without a government in place.
"Today in this country we have a fuel crisis, a food shortage, we have the head of the World Food Program coming here and we have several matters to discuss with the IMF," Wickremesinghe said. "Therefore, if this government leaves there should be another government."
Four Cabinet ministers have resigned since Saturday's protests.
Even though both Wickremesinghe and Abeywardena, the parliament speaker, said in their speeches that they had spoken with the president, they did not say anything about his whereabouts.
Protesters also broke into the prime minister's private residence and set it on fire during the melee on Saturday. His party official, Ruwan Wijewardena, said Wickremesinghe was inside when the protesters gathered but security officers removed him to a different location.
Wijewardena said such acts will only polarize the society and political parties.
"If these kinds of incidents keep on going, we can wave bye-bye to the IMF and any international assistance that is going to come to the country. If there is lawlessness, if there is no coming together among the political groups, there is no way the international community can come in and help this country," he said.
U.S. Secretary of State Antony Blinken said that Washington was tracking the developments in Sri Lanka and urged Parliament to work quickly to implement solutions and address people's discontent.
Speaking at a news conference in Bangkok, Blinken said that the United States condemns attacks against the peaceful demonstrators while calling for a full investigation into any protest-related violence.
Sri Lanka is relying on aid from India and other nations as leaders try to negotiate a bailout with the IMF. Wickremesinghe said recently that negotiations with the IMF were complex because Sri Lanka was now a bankrupt state.
Sri Lanka announced in April that it was suspending repayment of foreign loans due to a foreign currency shortage. Its total foreign debt amounts to $51 billion, of which it must repay $28 billion by the end of 2027.
Months of demonstrations have all but dismantled the Rajapaksa political dynasty, which has ruled Sri Lanka for most of the past two decades but is accused by protesters of mismanagement and corruption. The president's older brother resigned as prime minister in May after violent protests saw him seek safety at a naval base. He later moved into a house in Colombo.