v3.22.4
Consolidated Statements of Redeemable Convertible and Convertible Preferred Stock and Stockholders' Equity (Deficit) - USD ($)
$ in Thousands
Total
Common Stock
Additional Paid-in Capital
Treasury Stock
Accumulated Other Comprehensive Loss
Accumulated Deficit
Noncontrolling Interests
Parent
Series H-1 Convertible Preferred Stock
Series H-1 Convertible Preferred Stock
Common Stock
Series H-1 Convertible Preferred Stock
Additional Paid-in Capital
Redeemable Convertible Preferred Stock
Convertible Preferred Stock
Convertible Preferred Stock
Series H-1 Convertible Preferred Stock
Convertible Preferred Stock
Series K Convertible Preferred Stock
Convertible Preferred Stock
Series D Convertible Stock
Beginning balance (in shares) at Dec. 31, 2019                       4,017,000 742,840,000      
Beginning balance at Dec. 31, 2019                       $ 33,569 $ 2,093,662      
Temporary Equity [Abstract]                                
Conversion of convertible preferred stock to common stock (in shares)   793,726,000               28,000     (745,313,000) (28,000)    
Conversion of convertible preferred stock to common stock $ 2,105,319 $ 794 $ 2,104,525           $ 100   $ 100   $ (2,105,319) $ (100)    
Issuance of Series K convertible preferred stock (in shares)   206,501,000                         121,000  
Issuance of Series K convertible preferred stock 942,529 $ 207 942,322                       $ 947  
Issuance of Series D preferred stock upon net exercise of Series D preferred stock warrants (in shares)                               2,380,000
Issuance of Series D preferred stock upon net exercise of Series D preferred stock warrants                               $ 10,810
Conversion of redeemable convertible preferred stock to common stock (in shares)   4,017,000                   (4,017,000)        
Conversion of redeemable convertible preferred stock to common stock 33,569 $ 4 33,565                 $ (33,569)        
Ending balance (in shares) at Dec. 31, 2020                       0 0      
Ending balance at Dec. 31, 2020                       $ 0 $ 0      
Beginning balance (in shares) at Dec. 31, 2019   581,497,000                            
Beginning balance at Dec. 31, 2019 (1,980,642) $ 588 1,857,331 $ (38,895) $ (703) $ (3,798,963)                    
Beginning balance (in shares) at Dec. 31, 2019       6,393,000                        
Increase (Decrease) in Stockholders' Equity [Roll Forward]                                
Conversion of convertible preferred stock to common stock (in shares)   793,726,000               28,000     (745,313,000) (28,000)    
Conversion of convertible preferred stock to common stock 2,105,319 $ 794 2,104,525           $ 100   $ 100   $ (2,105,319) $ (100)    
Repurchase of common stock, held in treasury (in shares)   (808,000)   (808,000)                        
Repurchase of common stock, held in treasury (3,777)     $ (3,777)                        
Retirement of treasury stock (in shares)       (7,201,000)                        
Retirement of treasury stock 0 $ (7) (42,665) $ 42,672                        
Issuance of common stock upon net exercise of common stock warrants (in shares)   7,631,000                            
Issuance of common stock upon net exercise of common stock warrants 0 $ 8 (8)                          
Issuance of common stock, net of issuance costs (in shares)   206,501,000                         121,000  
Issuance of common stock, net of issuance costs 942,529 $ 207 942,322                       $ 947  
Conversion of redeemable convertible preferred stock to common stock (in shares)   4,017,000                   (4,017,000)        
Conversion of redeemable convertible preferred stock to common stock 33,569 $ 4 33,565                 $ (33,569)        
Conversion of preferred stock warrants to common stock warrants 31,007   31,007                          
Issuance of common stock from the exercise of stock options (in shares)   120,618,000                            
Issuance of common stock from the exercise of stock options 298,829 $ 120 298,709                          
Issuance of common stock upon vesting of restricted stock units ("RSUs") (in shares)   82,430,000                            
Issuance of common stock upon vesting of restricted stock units ("RSUs") 0 $ 82 (82)                          
Stock-based compensation 1,264,254   1,264,254                          
Settlement of employee loan accounted for as a modification to stock option (in shares)   (3,500,000)                            
Settlement of employee loan accounted for as a modification to stock option (205) $ (4) (201)                          
Other comprehensive loss (2,042)       (2,042)                      
Net loss (1,166,391)         (1,166,391)                    
Ending balance (in shares) at Dec. 31, 2020   1,792,140,000                            
Ending balance at Dec. 31, 2020 1,522,550 $ 1,792 6,488,857 $ 0 (2,745) (4,965,354)                    
Ending balance (in shares) at Dec. 31, 2020       0                        
Increase (Decrease) in Stockholders' Equity [Roll Forward]                                
Issuance of common stock from the exercise of stock options (in shares)   178,849,000                            
Issuance of common stock from the exercise of stock options 507,455 $ 178 507,277                          
Issuance of common stock upon vesting of restricted stock units ("RSUs") (in shares)   50,350,000                            
Issuance of common stock upon vesting of restricted stock units ("RSUs") 0 $ 50 (50)                          
Issuance of common stock upon vesting of growth units (shares)   1,471,000                            
Issuance of common stock upon vesting of growth units 0 $ 1 (1)                          
Issuance of common stock upon net exercise of common stock warrants and other (in shares)   4,664,000                            
Issuance of common stock upon net exercise of common stock warrants and other 1,712 $ 6 1,706                          
Stock-based compensation 779,296   779,296                          
Other comprehensive loss 396       396                      
Net loss $ (520,379)         (520,379)                    
Ending balance (in shares) at Dec. 31, 2021 2,027,474,000 2,027,474,000                            
Ending balance at Dec. 31, 2021 $ 2,291,030 $ 2,027 7,777,085   (2,349) (5,485,733)                    
Ending balance at Dec. 31, 2021 $ 2,291,030 $ 2,027 7,777,085   (2,349) (5,485,733) $ 0 $ 2,291,030                
Increase (Decrease) in Stockholders' Equity [Roll Forward]                                
Issuance of common stock from the exercise of stock options (in shares) 19,660,000 19,660,000                            
Issuance of common stock from the exercise of stock options $ 86,088 $ 20 86,068         86,088                
Issuance of common stock upon vesting of restricted stock units ("RSUs") (in shares)   51,941,000                            
Issuance of common stock upon vesting of restricted stock units ("RSUs") 0 $ 52 (52)                          
Stock-based compensation 564,897   564,897         564,897                
Other comprehensive loss (2,984)       (2,984)     (2,984)                
Noncontrolling interests 74,500           74,500                  
Net loss $ (371,094)         (373,705) 2,611 (373,705)                
Ending balance (in shares) at Dec. 31, 2022 2,099,075,000 2,099,075,000                            
Ending balance at Dec. 31, 2022 $ 2,565,326                              
Ending balance at Dec. 31, 2022 $ 2,642,437 $ 2,099 $ 8,427,998   $ (5,333) $ (5,859,438) $ 77,111 $ 2,565,326