what is this?

i’m supposed to get my period this week & today along i had a bit of spotting and cramping but later on i came to the bathroom again to find this.