TMI, Is this the mucus plug?

In had half come out yesterday all day and this morning this huge chunk? 
My legs are killing me and I'm having period like pains? What should I do?