Automated Two Higgs Doublet Model at NLO