Fair Value Measurements - Schedule of Fair Value of Financial Assets (Details) - USD ($) $ in Thousands | Sep. 30, 2020 | Dec. 31, 2019 |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash Equivalents, Amortized Cost | $ 552,358 | $ 566,581 |
Cash Equivalents, Fair Value | 552,358 | 566,581 |
Marketable Securities, Amortized Cost | 1,873,093 | 1,609,833 |
Marketable Securities, Unrealized Gains | 2,878 | 3,383 |
Marketable Securities, Unrealized Losses | (419) | (134) |
Marketable Securities, Fair Value | 1,875,552 | 1,613,082 |
Total Financial Assets, Amortized Cost | 2,429,684 | 2,180,643 |
Total Financial Assets, Fair Value | 2,432,143 | 2,183,892 |
Level I | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash Equivalents, Fair Value | 552,358 | 562,580 |
Marketable Securities, Fair Value | 522,450 | 519,278 |
Total Financial Assets, Fair Value | 1,079,041 | 1,086,087 |
Level II | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash Equivalents, Fair Value | 0 | 4,001 |
Marketable Securities, Fair Value | 1,353,102 | 1,093,804 |
Total Financial Assets, Fair Value | 1,353,102 | 1,097,805 |
Level III | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash Equivalents, Fair Value | 0 | 0 |
Marketable Securities, Fair Value | 0 | 0 |
Total Financial Assets, Fair Value | 0 | 0 |
Money market funds | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash Equivalents, Amortized Cost | 478,702 | 562,580 |
Cash Equivalents, Fair Value | 478,702 | 562,580 |
Money market funds | Level I | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash Equivalents, Fair Value | 478,702 | 562,580 |
Money market funds | Level II | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash Equivalents, Fair Value | 0 | 0 |
Money market funds | Level III | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash Equivalents, Fair Value | 0 | 0 |
U.S. Treasuries | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash Equivalents, Amortized Cost | 73,656 | |
Cash Equivalents, Fair Value | 73,656 | |
U.S. Treasuries | Level I | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash Equivalents, Fair Value | 73,656 | |
U.S. Treasuries | Level II | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash Equivalents, Fair Value | 0 | |
U.S. Treasuries | Level III | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash Equivalents, Fair Value | 0 | |
Commercial paper | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable Securities, Amortized Cost | 51,926 | 66,717 |
Marketable Securities, Unrealized Gains | 0 | 0 |
Marketable Securities, Unrealized Losses | 0 | 0 |
Marketable Securities, Fair Value | 51,926 | 66,717 |
Commercial paper | Level I | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable Securities, Fair Value | 0 | 0 |
Commercial paper | Level II | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable Securities, Fair Value | 51,926 | 66,717 |
Commercial paper | Level III | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable Securities, Fair Value | 0 | 0 |
Certificate of deposits | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash Equivalents, Amortized Cost | | 4,001 |
Cash Equivalents, Fair Value | | 4,001 |
Marketable Securities, Amortized Cost | 21,218 | 3,000 |
Marketable Securities, Unrealized Gains | 0 | 0 |
Marketable Securities, Unrealized Losses | 0 | 0 |
Marketable Securities, Fair Value | 21,218 | 3,000 |
Certificate of deposits | Level I | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash Equivalents, Fair Value | | 0 |
Marketable Securities, Fair Value | 0 | 0 |
Certificate of deposits | Level II | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash Equivalents, Fair Value | | 4,001 |
Marketable Securities, Fair Value | 21,218 | 3,000 |
Certificate of deposits | Level III | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash Equivalents, Fair Value | | 0 |
Marketable Securities, Fair Value | 0 | 0 |
U.S. government notes | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable Securities, Amortized Cost | 522,044 | 518,884 |
Marketable Securities, Unrealized Gains | 412 | 414 |
Marketable Securities, Unrealized Losses | (6) | (20) |
Marketable Securities, Fair Value | 522,450 | 519,278 |
U.S. government notes | Level I | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable Securities, Fair Value | 522,450 | 519,278 |
U.S. government notes | Level II | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable Securities, Fair Value | 0 | 0 |
U.S. government notes | Level III | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable Securities, Fair Value | 0 | 0 |
Corporate bonds | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable Securities, Amortized Cost | 824,132 | 787,741 |
Marketable Securities, Unrealized Gains | 2,079 | 2,392 |
Marketable Securities, Unrealized Losses | (401) | (73) |
Marketable Securities, Fair Value | 825,810 | 790,060 |
Corporate bonds | Level I | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable Securities, Fair Value | 0 | 0 |
Corporate bonds | Level II | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable Securities, Fair Value | 825,810 | 790,060 |
Corporate bonds | Level III | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable Securities, Fair Value | 0 | 0 |
Agency securities | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable Securities, Amortized Cost | 453,773 | 233,491 |
Marketable Securities, Unrealized Gains | 387 | 577 |
Marketable Securities, Unrealized Losses | (12) | (41) |
Marketable Securities, Fair Value | 454,148 | 234,027 |
Agency securities | Level I | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable Securities, Fair Value | 0 | 0 |
Agency securities | Level II | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable Securities, Fair Value | 454,148 | 234,027 |
Agency securities | Level III | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable Securities, Fair Value | 0 | 0 |
Money market funds - restricted | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Other Assets, Amortized Cost | 4,233 | 4,229 |
Other Assets, Fair Value | 4,233 | 4,229 |
Money market funds - restricted | Level I | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Other Assets, Fair Value | 4,233 | 4,229 |
Money market funds - restricted | Level II | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Other Assets, Fair Value | 0 | 0 |
Money market funds - restricted | Level III | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Other Assets, Fair Value | $ 0 | $ 0 |