Prompt and non-prompt \(J/\psi \) elliptic flow in Pb+Pb collisions at \(\sqrt{s_{_\text {NN}}} = 5.02\) Tev with the ATLAS detector