When will the switches in an IRF stack compete to become the Master?

A.
when a Slave is configured with a higher priority and restarted
B.
when a new device with the highest Master priority joins an existing IRF stack
C.
when an IRF virtual device is partitioned due to link failure
D.
when a device other than the Master leaves the IRF stack