Ascites is the abnormal accumulation of fluid in the peritoneal cavity, which is the space within th…