Homebirds Cardiff to edge past holders Wigan in FA Cup clash