Transition-metal catalyzed cyclization reactions