The inside of a MacBook charger

This is one of the older MacBook chargers with the T-shaped MagSafe plug. The collar on the plug is too short, and it frayed and stopped working. I smashed it open with a hammer. I didn’t realize it has this whole complex circuit board. I thought power...