Pakistanis voted on Wednesday in a knife-edge general election pitting cricket hero Imran Khan against the party of…