Tesla posts 1st annual revenue decline as it pivots to AI, robotics