In need of accurate stereo wiring diagram!

Recently bought a 99 Corolla, that a previous owner did a terrible job installing a radio in. They cut the factory wiring right off instead of using a wiring adapter, and they did an awful job. The radio wouldn't turn off with the car, and sometimes wouldn't stay turned off. I bought a new more modern aftermarket radio for it so I have bluetooth and such, but I need a factory wiring diagram to know what wire goes to what! Thanks in advance for any responses!