Fair Value Measurements - Schedule of Fair Value of Financial Assets (Details) - USD ($) $ in Thousands | Jun. 30, 2021 | Dec. 31, 2020 |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable Securities, Amortized Cost | $ 2,388,011 | $ 1,978,283 |
Marketable Securities, Unrealized Gains | 831 | 1,700 |
Marketable Securities, Unrealized Losses | (827) | (334) |
Marketable Securities, Fair Value | 2,388,015 | 1,979,649 |
Total Financial Assets, Amortized Cost | 2,835,844 | 2,421,372 |
Total Financial Assets, Fair Value | 2,835,848 | 2,422,738 |
Level I | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable Securities, Fair Value | 832,800 | 523,506 |
Total Financial Assets, Fair Value | 1,280,633 | 966,595 |
Level II | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable Securities, Fair Value | 1,555,215 | 1,456,143 |
Total Financial Assets, Fair Value | 1,555,215 | 1,456,143 |
Level III | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
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 | 443,597 | 438,854 |
Cash Equivalents, Fair Value | 443,597 | 438,854 |
Money market funds | Level I | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash Equivalents, Fair Value | 443,597 | 438,854 |
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 |
Commercial paper | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable Securities, Amortized Cost | 60,959 | 51,211 |
Marketable Securities, Unrealized Gains | 0 | 0 |
Marketable Securities, Unrealized Losses | 0 | 0 |
Marketable Securities, Fair Value | 60,959 | 51,211 |
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 | 60,959 | 51,211 |
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] | | |
Marketable Securities, Amortized Cost | 73,870 | 50,136 |
Marketable Securities, Unrealized Gains | 0 | 3 |
Marketable Securities, Unrealized Losses | 0 | 0 |
Marketable Securities, Fair Value | 73,870 | 50,139 |
Certificate of deposits | Level I | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable Securities, Fair Value | 0 | 0 |
Certificate of deposits | Level II | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable Securities, Fair Value | 73,870 | 50,139 |
Certificate of deposits | Level III | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
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 | 832,903 | 523,320 |
Marketable Securities, Unrealized Gains | 111 | 187 |
Marketable Securities, Unrealized Losses | (214) | (1) |
Marketable Securities, Fair Value | 832,800 | 523,506 |
U.S. government notes | Level I | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Marketable Securities, Fair Value | 832,800 | 523,506 |
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 | 1,083,824 | 878,484 |
Marketable Securities, Unrealized Gains | 532 | 1,167 |
Marketable Securities, Unrealized Losses | (578) | (330) |
Marketable Securities, Fair Value | 1,083,778 | 879,321 |
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 | 1,083,778 | 879,321 |
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 | 336,455 | 475,132 |
Marketable Securities, Unrealized Gains | 188 | 343 |
Marketable Securities, Unrealized Losses | (35) | (3) |
Marketable Securities, Fair Value | 336,608 | 475,472 |
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 | 336,608 | 475,472 |
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,236 | 4,235 |
Other Assets, Fair Value | 4,236 | 4,235 |
Money market funds - restricted | Level I | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Other Assets, Fair Value | 4,236 | 4,235 |
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 |