Prefabricated modular anti-seismic buildings