PAGASA: Mawar weakens into typhoon