To her supporters in the SNP Nicola Sturgeon was an election-winning machine who led the party to its biggest ever victory - to her detractors she was a divisive figure who blew her party off course from independence.