I agree with so much of what has been said . .In particular . .
Don't give up on your friend . .
Seek help, advice, guidance - for her and yourself . .
Try to keep some emotional distance from things (far easier for me to say than for you to do . . )
Don't damage yourself in the process of trying to help this friend . .
Accept that, if it comes to the worst, it's not your fault . .
Whatever happens, don't hide or deny your own emotions; the more emotionally draining this situation becomes the more emotional support you will need.
Good luck
G.