Find the range of the function f(x)=4cos(π3sin(x2+6x+10−sinx))f(x) = 4 \cos \left( \frac{\pi}{3} \sin \left( x^{2} + 6x + 10 - \sin x \right) \right)f(x)=4cos(3πsin(x2+6x+10−sinx)).