Semi-infinite flags. II: Local and global intersection cohomology of quasimaps spaces Gorenstein-duality for one-dimensional almost complete intersections -- with an application to non-isolated real singularities 