Does she hate me

Okay guys !!! So my two friends were having a sleepover in my house last night (a guy and a girl) , I had asked my (girl)friend earlier that week if she liked our guy friend. Anyway long story short , my (girl)friend put her earphones in and barely interacted with us , we asked her to watch movies and other stuff but she turned everything down so me and my (guy) friend basically were cuddling the whole night, then things got a bit more serious and we started kissing and our (girl) friend seen and left the room .I feel like such a bad friend , I don't want to lose her I know I fucked up what do I do ?