Variational Analysis of Compressed Thin Elastic Sheets And The Phase Diagrams of Mean Field Spin Glasses