Let \( d \) be the distance between the foot of perpendiculars of the points \( P(1,2,-1) \) and \( Q(2,-1,3) \) on the plane \( -x + y + z = 1 \). Then \( d^2 \) is equal to __________.