Semi-infinite flags. II: Local and global intersection cohomology of quasimaps spaces The perfectness of the intersection pairings for twisted cohomology and homology groups with respect to rational 1-forms 