I am sorry Bug is not feeling well. Throwing up white foam means she is swallowing her own saliva. That is an indication of nausea.
Give her one quarter of a ten mg pepcid a/c (famotidine). I usually add it to a tablespoon of baby food chicken with no onion or garlic Or canned cat food.Every 12 hours.
Remove all dry food and any wet with chunks, pieces or shreds.
Feed only smooth pate canned food or baby food.
If she gets dehydrated give her tuna water drained from the can.
Please let me know how she is doing .
Please be so kind as to rate my answer with positive feedback; that is the only way I receive credit for my assistance. Thank you very much!
Providing a positive rating will not end our conversation, should you need me for any follow-up. Simply click 'Reply' for clarification or additional information, if needed, at no additional charge.