On the structure of the Selberg class, IV: basic invariants