Quarterly report pursuant to Section 13 or 15(d)

Fair Value Measurements - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis (Details)

v3.22.1
Fair Value Measurements - Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis (Details) - USD ($)
$ in Thousands
Mar. 31, 2022
Dec. 31, 2021
Assets measured at fair value    
Available-for-sale investments $ 803,712 $ 343,249
Term Deposits [Member]    
Assets measured at fair value    
Available-for-sale investments 40,090 40,069
Asset Backed Securities [Member]    
Assets measured at fair value    
Available-for-sale investments 34,421 69,496
Government Debt Securities [Member]    
Assets measured at fair value    
Available-for-sale investments 350,131 47,308
Corporate Debt Securities [Member]    
Assets measured at fair value    
Available-for-sale investments 379,070 186,376
Fair Value Measurements Recurring [Member]    
Assets measured at fair value    
Cash equivalents 387,535 929,842
Available-for-sale investments 803,712 343,249
Total fair value of assets 1,191,247 1,273,091
Liabilities measured at fair value    
Total fair value of liabilities 137,933 154,746
Fair Value Measurements Recurring [Member] | Common Stock Warrant Liabilities Public [Member]    
Liabilities measured at fair value    
Common stock warrant liabilities (Public) 28,463 26,910
Fair Value Measurements Recurring [Member] | Earn Out Shares [Member]    
Liabilities measured at fair value    
Derivative liability (Earnout Shares) 90,440 109,844
Fair Value Measurements Recurring [Member] | Common Stock Warrant Liabilities Private [Member]    
Liabilities measured at fair value    
Common stock warrant liabilities (Public) 19,030 17,992
Fair Value Measurements Recurring [Member] | Money Market Funds [Member]    
Assets measured at fair value    
Cash equivalents 387,535 929,842
Fair Value Measurements Recurring [Member] | Term Deposits [Member]    
Assets measured at fair value    
Available-for-sale investments 40,090 40,069
Fair Value Measurements Recurring [Member] | Asset Backed Securities [Member]    
Assets measured at fair value    
Available-for-sale investments 34,421 69,496
Fair Value Measurements Recurring [Member] | Government Debt Securities [Member]    
Assets measured at fair value    
Available-for-sale investments 350,131 47,308
Fair Value Measurements Recurring [Member] | Corporate Debt Securities [Member]    
Assets measured at fair value    
Available-for-sale investments 379,070 186,376
Fair Value Measurements Recurring [Member] | Level 1 [Member]    
Assets measured at fair value    
Cash equivalents 387,535 929,842
Total fair value of assets 387,535 929,842
Liabilities measured at fair value    
Total fair value of liabilities 28,463 26,910
Fair Value Measurements Recurring [Member] | Level 1 [Member] | Common Stock Warrant Liabilities Public [Member]    
Liabilities measured at fair value    
Common stock warrant liabilities (Public) 28,463 26,910
Fair Value Measurements Recurring [Member] | Level 1 [Member] | Money Market Funds [Member]    
Assets measured at fair value    
Cash equivalents 387,535 929,842
Fair Value Measurements Recurring [Member] | Level 2 [Member]    
Assets measured at fair value    
Available-for-sale investments 803,712 343,249
Total fair value of assets 803,712 343,249
Liabilities measured at fair value    
Total fair value of liabilities 19,030 17,992
Fair Value Measurements Recurring [Member] | Level 2 [Member] | Common Stock Warrant Liabilities Private [Member]    
Liabilities measured at fair value    
Common stock warrant liabilities (Public) 19,030 17,992
Fair Value Measurements Recurring [Member] | Level 2 [Member] | Term Deposits [Member]    
Assets measured at fair value    
Available-for-sale investments 40,090 40,069
Fair Value Measurements Recurring [Member] | Level 2 [Member] | Asset Backed Securities [Member]    
Assets measured at fair value    
Available-for-sale investments 34,421 69,496
Fair Value Measurements Recurring [Member] | Level 2 [Member] | Government Debt Securities [Member]    
Assets measured at fair value    
Available-for-sale investments 350,131 47,308
Fair Value Measurements Recurring [Member] | Level 2 [Member] | Corporate Debt Securities [Member]    
Assets measured at fair value    
Available-for-sale investments 379,070 186,376
Fair Value Measurements Recurring [Member] | Level 3 [Member]    
Liabilities measured at fair value    
Total fair value of liabilities 90,440 109,844
Fair Value Measurements Recurring [Member] | Level 3 [Member] | Earn Out Shares [Member]    
Liabilities measured at fair value    
Derivative liability (Earnout Shares) $ 90,440 $ 109,844