XML 18 R8.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
Operating activities      
Net loss $ (290,023) $ (189,291) $ (76,970)
Adjustments to reconcile net loss to net cash provided by (used in) operating activities:      
Depreciation 10,170 11,678 11,147
Amortization of finance lease right-of-use assets 4,639 10,369 10,307
Net accretion of premium and discount on investments 2,482 103 (3,667)
Unrealized loss on equity investments 30 0 (88)
Investment (gain) loss in unconsolidated variable interest entity (1,007) 202 0
Loss (gain) on disposal of property and equipment 233 933 (42)
Stock-based compensation 71,161 72,720 66,267
Expense for acquired in-process research and development asset 60,000 0 0
Realized loss on sales of available-for-sale securities 0 258 0
Changes in operating assets and liabilities:      
Accounts receivable, net ($(6,803), $718 and $42,365 from related parties) 25,180 (11,973) 35,229
Inventories (14,158) (9,175) (6,887)
Prepaid expenses and other current assets ($889, $124,321 and $(125,210) from a related party) (9,854) 123,492 (128,598)
Operating lease right-of-use assets 4,209 (24) (1,201)
Other assets (4,412) 5,843 (4,058)
Accounts payable ($(1,118), $1,118 and $0 from a related party) 805 17,731 (3,051)
Accrued and other liabilities ($(20), $(36,859) and $36,439 from a related party) 16,380 30,914 17,707
Operating lease liabilities, current 503 134 580
Deferred revenue ($21,549, $7,169 and $(3,137) from related parties) 57,637 45,077 (49,941)
Accrued interest for finance lease liabilities (75) (177) 194
Operating lease liabilities, non-current (4,043) (143) 692
Other long-term liabilities (12,089) (27,069) 53,675
Net cash provided by (used in) operating activities (82,232) 81,602 (78,705)
Investing activities      
Purchases of property and equipment (5,186) (3,994) (5,762)
Payment made for acquired in-process research and development asset (25,000) 0 0
Payment made for investment in unconsolidated variable interest entity 0 (3,896) 0
Proceeds from equity transfer of unconsolidated variable interest entity 0 1,063 0
Proceeds from sale of property and equipment 0 0 7
Purchases of available-for-sale securities (484,144) (8,192) (411,299)
Proceeds from sales of available-for-sale securities 4,214 10,606 0
Proceeds from maturities of investments 83,144 456,900 537,072
Net cash provided by (used in) investing activities (426,972) 452,487 120,018
Financing activities      
Repayments of finance lease liabilities (5,489) (12,620) (11,925)
Repayments of lease obligations (403) (403) (403)
Cash paid for payroll taxes on restricted stock unit releases (7,372) (11,463) (12,750)
Proceeds from issuance of common stock 12,701 37,829 20,778
Net cash provided by (used in) financing activities (563) 13,343 (4,300)
Effect of exchange rate change on cash and cash equivalents 2,597 4,695 (5)
Net increase (decrease) in cash and cash equivalents (507,170) 552,127 37,008
Total cash and cash equivalents at beginning of period 678,393 126,266 89,258
Total cash and cash equivalents at end of period 171,223 678,393 126,266
Supplemental cash flow information:      
Interest payments 94 135 174
Balance in accounts payable and accrued liabilities related to purchases of property and equipment 1,009 884 460
Balance in accrued liabilities related to acquired in-process research and development asset 35,000 0 0
Balance in other receivables related to stock option exercise 165 0 0
Conversion of subsidiary's convertible note payable to non-controlling interests $ 696 $ 0 $ 0