from collections import defaultdict HTTP_TIMEOUT = 15.0 BROWSER_SESSION_TIMEOUT = 15000 BROWSER_NAV_TIMEOUT = 10000 BROWSER_SUBMIT_NAV_TIMEOUT: defaultdict[str, int] = defaultdict( lambda: BROWSER_NAV_TIMEOUT ) BROWSER_SUBMIT_NAV_TIMEOUT["codeforces"] = BROWSER_NAV_TIMEOUT * 2 BROWSER_TURNSTILE_POLL = 5000 BROWSER_ELEMENT_WAIT = 10000 BROWSER_SETTLE_DELAY = 500 SUBMIT_POLL_TIMEOUT = 30.0