Lewis Base Switched [3+3] and [4+2] Annulation Reaction of δ-Acetoxy Allenoates with Cyclic N-Sulfonyl Imines: Divergent Synthesis of Functionalized α-Pyridyl Acetates and Teraryl Scaffolds.