Production of antinuclei and hypernuclei in a relativistic Hagedorn resonance gas model