v3.22.2.2
NET INCOME (LOSS) PER SHARE - Schedule of Antidilutive Securities (Details) - shares
shares in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2022
Sep. 30, 2021
Sep. 30, 2022
Sep. 30, 2021
EARNINGS PER SHARE        
Total 13,132 3,102 3,513 2,036
Weighted average number of stock options        
EARNINGS PER SHARE        
Total 6,344 2,707 2,439 1,895
Convertible senior notes        
EARNINGS PER SHARE        
Total 5,608 0 797 0
Weighted average number of RSUs        
EARNINGS PER SHARE        
Total 1,180 369 277 132
Weighted average ESPP purchase options        
EARNINGS PER SHARE        
Total 0 26 0 9