Metal-catalyzed cyclization via isomerization of .alpha.-dienyl-.omega.-allyl acetates