Pakistan applies $10bn US forex facility, leverages Iran mediation