GoPro Inc. is buying two video-editing app companies for a total of $105 million in cash and stock as the company seeks to diversity its top line amid a challenging market for