XML 11 R7.htm IDEA: XBRL DOCUMENT v3.19.3
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2019
Sep. 30, 2018
Cash flows from operating activities:    
Net loss $ (246,523) $ (221,237)
Adjustments to reconcile net loss to net cash used in operating activities:    
Stock-based compensation 42,809 38,415
(Accretion) amortization of (discount) premium on investment debt securities (595) 266
Amortization of deferred financing costs 1,529 1,144
Depreciation 2,839 3,551
Non-cash operating lease cost 3,974  
Gain on lease termination (1,995)  
Loss on the disposal of fixed assets 2,682 1,331
Accretion of debt discount 15,051 10,412
Unrealized gain on investments   (119)
Changes in operating assets:    
Prepaid expenses and other current assets (3,320) (856)
Accounts receivable (7,128) (5,579)
Inventory (2,240) (3,995)
Security deposits 1,018 7,138
Other assets (19,489)  
Changes in operating liabilities:    
Accounts payable, accrued expenses and other current liabilities 33,990 (11,719)
Operating lease liabilities (5,019)  
Long-term other liabilities 9,516 (1,300)
Interest payable (2,012) (3,738)
Deferred revenue (1,216) (1,616)
Net cash used in operating activities (176,129) (187,902)
Cash flows from investing activities:    
Purchases of investment debt securities (560,733) (378,261)
Sales and maturities of investment debt securities 306,898 293,307
Purchases of equipment, leasehold improvements, and furniture and fixtures (1,041) (45)
Net cash used by investing activities (254,876) (84,999)
Cash flows from financing activities:    
Proceeds from issuance of 2026 Convertible Notes, net of issuance costs 223,424  
Proceeds from issuance of common stock, net of issuance costs 227,180 261,362
Proceeds from exercise of options, net 2,511 3,201
Payments of employee withholding taxes related to stock-based awards (1,476) (1,458)
Net cash provided by financing activities 451,639 263,105
Effect of exchange rate changes (505) (835)
Net increase (decrease) in cash and cash equivalents 20,129 (10,631)
Cash and cash equivalents - beginning of period 43,248 70,013
Cash and cash equivalents - end of period $ 63,377 $ 59,382