The Czech Republic is a stable and prosperous market economy , which harmonized its laws and regulations with those of the EU prior to its EU accession in 2004 .