The general invariant theory of irregular analytic arcs or elements