Foundation Model for Lossy Compression of Spatiotemporal Scientific Data