v3.24.0.1
NET INCOME (LOSS) PER SHARE - Calculation of Basic and Diluted Net Income (Loss) Per Share (Details) - USD ($)
$ / shares in Units, shares in Thousands, $ in Thousands
12 Months Ended
Dec. 31, 2023
Dec. 31, 2022
Dec. 31, 2021
Numerator:      
Net income (loss) $ (21,124) $ (553,005) $ 158,826
Less: Net loss attributable to noncontrolling interests (30,896) (12,258) (7,458)
Net income attributable to common stockholders, basic 9,772 (540,747) 166,284
Net income attributable to common stockholders, diluted $ 9,772 $ (540,747) $ 166,284
Basic shares:      
Weighted-average shares used to compute basic net income (loss) per share (in shares) 608,856 578,949 458,432
Diluted shares:      
Stock options, restricted stock, and employee stock purchase plan (in shares) 5,168 0 17,849
Convertible notes (in shares) 0 0 408
Common stock warrants (in shares) 0 0 25,090
Weighted-average shares used to compute diluted net income (loss) per share (in shares) 614,024 578,949 501,779
Net income (loss) per share attributable to common stockholders:      
Basic (in USD per share) $ 0.02 $ (0.93) $ 0.36
Diluted (in USD per share) $ 0.02 $ (0.93) $ 0.33