The homotopy theory of weighted mappings