If z1,z2,z3 are the vertices of an isosceles triangle with right angle at z2, then the value of (z1−z2)2+(z2−z3)2 is