Republics at War, 1776–1840