Thun is a town in the canton of Bern in Switzerland.