Square ABCD has side length 1. Point P lies on ¯BC and point Q lies on ¯CD such that ∠PAQ=45∘. The area of triangle BPQ is 747. Compute the area of triangle APQ.