transpiled mode detection