XML 19 R6.htm IDEA: XBRL DOCUMENT v3.22.0.1
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Cash flows from operating activities:      
Net income (loss) $ (60,018) $ (1,724) $ 882
Adjustments to reconcile net income (loss) to net cash used in operating activities:      
Depreciation and amortization 18,694 12,475 11,361
Loss on disposal and abandonment of intangible assets 146 320 67
Loss on disposal and impairment of property and equipment, net 92 1,722 2,542
Net gain on strategic investments and marketable securities (23,035)    
Stock-based compensation expense 303,331 133,572 78,495
Deferred income taxes (81,303) (16,528) (7,987)
Unrecognized tax benefits (706) 671 983
Bond amortization 5,217 3,345 361
Noncash lease expense 5,573 4,104 3,567
Provision for expected credit losses (214) 1,302  
Change in assets and liabilities:      
Accounts and notes receivable and contract assets (205,769) (107,762) (38,830)
Inventory (18,272) (52,156) (4,903)
Prepaid expenses and other assets (40,158) (14,885) (9,845)
Accounts payable, accrued and other liabilities 45,301 8,886 4,967
Deferred revenue 175,615 65,139 24,013
Net cash provided by operating activities 124,494 38,481 65,673
Cash flows from investing activities:      
Purchases of investments and marketable securities (362,479) (656,522) (354,477)
Proceeds from call, maturity, or sale of investments 718,617 379,839 130,083
Proceeds from strategic investments 14,546    
Purchases of property and equipment (49,886) (72,629) (15,939)
Proceeds from disposal of property and equipment 43 95  
Purchases of intangible assets (392) (241) (404)
Purchases of strategic investments (45,500) (7,068)  
Business acquisition, net of cash acquired (22,393)    
Net cash provided by (used in) investing activities 252,556 (356,526) (240,737)
Cash flows from financing activities:      
Net proceeds from equity offering 105,514 306,779  
Proceeds from options exercised 51,614 295 114
Income and payroll tax payments for net-settled stock awards (331,309) (7,809) (4,051)
Net cash provided by (used in) financing activities (174,181) 299,265 (3,937)
Effect of exchange rate changes on cash and cash equivalents (1,982) 1,976 329
Net increase (decrease) in cash and cash equivalents 200,887 (16,804) (178,672)
Cash and cash equivalents and restricted cash, beginning of period 155,551 172,355 351,027
Cash and cash equivalents and restricted cash, end of period $ 356,438 $ 155,551 $ 172,355