Identify the verbal and its function in the sentence:

I would rather be sleeping!

It is a gerund functioning as a noun.
It is a gerund functioning as a verb.
It is an infinitive functioning as a noun.
It is an infinitive functioning as a verb.