Solution 1:

It means neither of those options. Rather, it means, "to think or speculate curiously."

https://www.dictionary.com/browse/wonder?s=t (see definition 1)