docs: heading ID references in docs/api.md (#7974)
docs: heading ID references in docs/api.md (#7974)

- `Worker` -> `WebWorker`, `#class-worker` -> `#class-webworker`
- `#pagesetuseragentuseragent-useragentdata` -> `#pagesetuseragentuseragent-useragentmetadata`
- `####WaitTimeoutOptions` -> `#waittimeoutoptions`
- `#cooperative-intercept-mode-and-legacy-intercept-mode` -> `#cooperative-intercept-mode`

Co-authored-by: jrandolf <f9cf5fb19f3dacdfdf5d5c82378940b44bd49d1c@users.noreply.github.com>
puppeteer/puppeteer,puppeteer/puppeteer,puppeteer/puppeteer,puppeteer/puppeteer