Panama is only relevant because of the US investment in the Canal and they claim ownership when it suits them and then cry poverty every time investments need to be made.
Panama is currently playing with fire by courting foreign interest that doesn't align with the US, who are effectively their paymasters.
It's not a sudden "empire-building" move by the US. The fact that the canal exists at all has always been because of the US Empire. Panama is playing a dangerous game of FA&FO.