Contracting 〜ているのだ to 〜てんだ
A verb ending in 〜て+いる followed by the particle のだ may contract as てんだ.
First, the い in 〜て+いる is dropped. Next, る becomes ん due to の following it. Finally, の becomes ん when followed by だ to です.
Examples
三ツ星カラーズ » Volume 6 » Page 23
名探偵コナン » Volume 1 » Page 8