A quick copy and paste into Google indicates it's Minnesota law. Penn Cycle and Fitness claim to be the largest Trek dealer in that state and they carry the Trek XM700+ Federal CPSC regulations govern the sale so it's possible to legally purchase this ebike in Minnesota but the law means speed pedelecs are not classed as an "electric-assisted bicycle" but as a "Motorized bicycle" and you would need to title and register it at the
DMV, and get liability insurance. If you have a driver's license it doesn't appear they make you get a moped permit or take the
moped test. You aren't permitted to ride it in bicycle lanes, paths or trails. The 2bhp motor size suggests you can ride a 1500W ebike but in order to get liability insurance from
Markel insurance company they only insure ebikes up to the CPSC limits of 750W and 20mph which rules out speed pedelecs. Unless you can find an insurer willing to provide liability insurance it may be this last detail that in practice makes speed pedelecs legal to buy but illegal to operate/ride in Minnesota. My opinion does not constitute legal advice.