XML 37 R8.htm IDEA: XBRL DOCUMENT v3.20.4
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2020
Dec. 31, 2019
Dec. 31, 2018
Operating activities      
Net loss $ (189,291) $ (76,970) $ (86,420)
Adjustments to reconcile net loss to net cash provided by (used in) operating activities:      
Depreciation 11,678 11,147 6,562
Amortization of finance lease right-of-use assets 10,369 10,307 0
Net accretion of discount on investments 103 (3,667) (42)
Unrealized loss (gain) on equity investments 0 (88) 1,120
Investment loss in unconsolidated variable interest entity 202 0 0
Loss (gain) on disposal of property and equipment 933 (42) 53
Stock-based compensation 72,720 66,267 52,142
Realized foreign currency gain 0 0 (1,074)
Realized loss (gain) on sales of available-for-sale securities 258 0 (87)
Changes in operating assets and liabilities:      
Accounts receivable, net ($718, $42,365 and $(43,486) from a related party) (11,973) 35,229 (55,232)
Inventories (9,175) (6,887) 0
Prepaid expenses and other current assets ($124,321, $(125,210) and $0 from a related party) 123,492 (128,598) (129)
Other assets 6,843 (3,253) 1,090
Accounts payable ($1,118, $0 and $0 from a related party) 17,731 (3,051) 3,630
Accrued and other liabilities ($(36,859), $36,439 and $172 from a related party) 31,048 18,288 5,606
Deferred revenue ($7,169, $(3,137) and $(3,908) from a related party) 45,077 (49,941) (5,031)
Lease obligations 0 0 32
Accrued interest for finance lease liabilities (177) 194 0
Other long-term liabilities (28,236) 52,360 1,636
Net cash provided by (used in) operating activities 81,602 (78,705) (76,144)
Investing activities      
Purchases of property and equipment (3,994) (5,762) (8,020)
Payment made for investment in unconsolidated variable interest entity (3,896) 0 0
Proceeds from equity transfer of unconsolidated variable interest entity 1,063 0 0
Proceeds from sale of property and equipment 0 7 184
Purchases of available-for-sale securities and term deposit (8,192) (411,299) (576,880)
Proceeds from sales of available-for-sale securities 10,606 0 8,167
Proceeds from maturities of investments 456,900 537,072 54,426
Net cash provided by (used in) investing activities 452,487 120,018 (522,123)
Financing activities      
Borrowings under capital lease obligations 0 0 49
Repayments of capital lease obligations 0 0 (6)
Repayments of finance lease liabilities (12,620) (11,925) 0
Repayments of lease obligations (403) (403) (403)
Cash paid for payroll taxes on restricted stock unit releases (11,463) (12,750) (15,612)
Proceeds from issuance of common stock 37,829 20,778 29,847
Net cash provided by (used in) financing activities 13,343 (4,300) 13,875
Effect of exchange rate change on cash and cash equivalents 4,695 (5) (8)
Net increase (decrease) in cash and cash equivalents 552,127 37,008 (584,400)
Total cash and cash equivalents at beginning of period 126,266 89,258 673,658
Total cash and cash equivalents at end of period 678,393 126,266 89,258
Supplemental cash flow information:      
Interest payments 135 174 218
Balance in accounts payable and accrued liabilities related to purchases of property and equipment 884 460 276
Deferred offering costs recorded in accounts payable and accrued liabilities $ 0 $ 0 $ 24