AI is especially good at ports like this where there’s a known and well tested surface area.
These guys puposely obscure controls and understanding of these products 100% to prevent you doing a port.
Just go open a microsoft word doc in the browser and look at the dom.
Despair! Horror!
Ever letter is it's own object and they stitch it into the visual view. When you type one letter is turns a single word into multiple objects all versioned objects.
Can't imagine all the crazy race condition protections baked into that.