How is the underlined pronoun used in the sentence?

Randi's dog greeted her excitedly at the front door.

A.
subject

B.
direct object

C.
subject complement

D.
object of a preposition
underlined pronoun her