The endogenous transaction costs of delegated auditing