Legal regulation of the activities of pilots at the end of the XVIII - first half of the 20th centuries.