7. In triangle $A B C$, altitudes $A D, B E, C F$ are drawn. The length of side $A C$ is $1+\sqrt{3}$. The distances from the center of the inscribed circle in triangle $D E F$ to points $A$ and $C$ are $\sqrt{2}$ and 2, respectively. Find the length of side $A B$.