Am I Eligible to Purchase a Handgun or “Military Style Assault Weapon”? Minnesota?

I live in Minnesota, and am 18 years old. Ever since I was about 12 years old my uncle has taken me to a shooting range about once or twice a month to fire some of guns (primarily hand guns – m9, m1911, sig sauer, glock-19 and assault weapons – AR-15, AK47), its been one of my favorite things to do since then. I absolutely love firing these weapons at the gun ranges, its a hobby I’ve enjoyed for a long time. Now I’m 18 years old and I’m interested in purchasing an “assault weapon” for target shooting.
I’ve taken a firearms safety class.
However there are a few things I’m afraid will prevent me from being able to purchase a firearm…The two biggest are probably that I spent 35 days in a drug rehab clinic for heroin and benzodiazapine addiction, and I’ve been diagnosed with depression.
Will my time spent in rehab and depression diagnosis make it impossible to purchase a firearm?
Thank you in advance for your answers
Thanks for your answers
I chose to go to rehab (was sick of being dependent on a chemical to live) so no, I wasn’t admitted there under court order or anything
I’ve never been charged with a drug related offense of any kind.
thanks for the replies!