Invariance theory for nonlocal variational principles—I extended variations