The president of Sri Lanka fled the country early Wednesday local time, days after protesters stormed his home and office and the official residence of his prime minister amid a three-month economic crisis that has triggered severe shortages of food and fuel.