Prime Minister Ranil Wickremesinghe on Saturday offered to resign and form an all-party government, hours after thousands of protesters stormed the official residence of President Gotabaya Rajapaksa who appears to have gone underground in the face of massive public anger over an unprecedented economic crisis that has brought Sri Lanka to its knees.