What was the X-Y-Z Affair, and why was it such an issue at the time for President Adams and the US? What did its resolution say about the new US and its approach to the greater world?

I'll give brainliest