Sequential oxopyridinium betaine cycloaddition–palladium catalysed cyclisation–anion capture processes