The Sun and the Heliopsphere as an Integrated System