Drag the bob to choose a starting height, or use the slider, then release. Gravitational store at the top becomes kinetic store at the bottom and back again. Switch on air resistance and a thermal store appears: the swing fades, that energy is transferred to the surroundings, and the total bar stays exactly the same. Energy is transferred, never lost.