(1) The imaginary part of the complex number $z=(1+i)^{2}(2+i)$ is $(\quad)$
(A) $-2 i$
(B) -2
(C) $4 i$
(D) 4
1. D

Translate the text above into English, please retain the original text's line breaks and format, and output the translation result directly.