src/preact: use URL instead of parseUrlDeprecated (#37561)
src/preact: use URL instead of parseUrlDeprecated (#37561)

* src/preact: use URL instead of parseUrlDeprecated

* address jridgewell feedback

* force toString conversion
Gregable/amphtml,media-net/amphtml,Gregable/amphtml,mhc-gh/amphtml,Gregable/amphtml,Gregable/amphtml,danielrozenberg/amphtml,alanorozco/amphtml,ampproject/amphtml,ampproject/amphtml,jpettitt/amphtml,mhc-gh/amphtml,alanorozco/amphtml,media-net/amphtml,ampproject/amphtml,jpettitt/amphtml,media-net/amphtml,alanorozco/amphtml,danielrozenberg/amphtml,mhc-gh/amphtml,jpettitt/amphtml,media-net/amphtml,danielrozenberg/amphtml,alanorozco/amphtml,mhc-gh/amphtml,danielrozenberg/amphtml,ampproject/amphtml,media-net/amphtml,alanorozco/amphtml,ampproject/amphtml,media-net/amphtml,mhc-gh/amphtml,jpettitt/amphtml,Gregable/amphtml,danielrozenberg/amphtml,media-net/amphtml,danielrozenberg/amphtml,jpettitt/amphtml,mhc-gh/amphtml,Gregable/amphtml,alanorozco/amphtml,ampproject/amphtml,mhc-gh/amphtml,jpettitt/amphtml,jpettitt/amphtml,alanorozco/amphtml,Gregable/amphtml,ampproject/amphtml,danielrozenberg/amphtml,media-net/amphtml,mhc-gh/amphtml,Gregable/amphtml,ampproject/amphtml,alanorozco/amphtml,jpettitt/amphtml,danielrozenberg/amphtml