XML 57 R46.htm IDEA: XBRL DOCUMENT v3.10.0.1
Prior-Period Financial Statements - Cash Flows (Details) - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2018
Sep. 30, 2017
Cash flows from operating activities    
Net loss $ (52,210) $ (45,853)
Adjustments to reconcile net loss to net cash used in operating activities    
Depreciation and amortization 2,368 1,420
Amortization of premium on marketable securities 68 2,148
Stock-based compensation 15,473 10,211
Abandonment of capitalized intangible assets 118 273
Loss (gain) on disposal of assets 110 (2)
Changes in operating assets and liabilities:    
Accounts receivable (1,320) 7,785
Interest receivable (624) (602)
Prepaid expenses and other assets (6,535) (3,971)
Accounts payable (886) 2,722
Accrued expenses 192 (2,056)
Income taxes (156) (65)
Deferred rent 466 359
Deferred revenue (20,039) 700
Net cash used in operating activities (62,975) (26,931)
Cash flows from investing activities    
Purchase of marketable securities (331,126) (49,203)
Purchase of intangible assets (1,302) (1,520)
Purchase of property and equipment   (3,834)
Proceeds from sale of property and equipment   2
Proceeds from maturities of marketable securities 165,134 77,566
Repayment of loan 86 (86)
Net cash provided by (used in) investing activities (171,633) 22,925
Cash flows from financing activities    
Proceeds from issuance of common stock upon exercise of stock awards 7,068 2,669
Proceeds from issuance of common stock under the Employee Stock Purchase Plan 504 443
Proceeds from issuance of common stock 260,245  
Common stock issuance costs (14,741)  
Net cash provided by financing activities 253,076 3,112
Net increase (decrease) in cash and cash equivalents 18,468 (894)
Cash and cash equivalents, beginning of period 16,528 14,528
Cash and cash equivalents, end of period $ 34,996 13,634
ASU 2014-09 | As Reported Before ASC Topic 606    
Cash flows from operating activities    
Net loss   (37,082)
Adjustments to reconcile net loss to net cash used in operating activities    
Depreciation and amortization   1,420
Amortization of premium on marketable securities   2,148
Stock-based compensation   10,211
Abandonment of capitalized intangible assets   273
Loss (gain) on disposal of assets   (2)
Changes in operating assets and liabilities:    
Accounts receivable   7,785
Interest receivable   (588)
Prepaid expenses and other assets   (3,971)
Accounts payable   2,722
Accrued expenses   (2,056)
Income taxes   (65)
Deferred rent   359
Deferred revenue   (8,171)
Net cash used in operating activities   (27,017)
Cash flows from investing activities    
Purchase of marketable securities   (49,203)
Purchase of intangible assets   (1,520)
Purchase of property and equipment   (3,834)
Proceeds from sale of property and equipment   2
Proceeds from maturities of marketable securities   77,566
Net cash provided by (used in) investing activities   23,011
Cash flows from financing activities    
Proceeds from issuance of common stock upon exercise of stock awards   2,669
Proceeds from issuance of common stock under the Employee Stock Purchase Plan   443
Net cash provided by financing activities   3,112
Net increase (decrease) in cash and cash equivalents   (894)
Cash and cash equivalents, beginning of period   14,528
Cash and cash equivalents, end of period   13,634
ASU 2014-09 | Effect of Adoption of ASC Topic 606    
Cash flows from operating activities    
Net loss   (8,771)
Changes in operating assets and liabilities:    
Interest receivable   (14)
Deferred revenue   8,871
Net cash used in operating activities   86
Cash flows from investing activities    
Repayment of loan   (86)
Net cash provided by (used in) investing activities   $ (86)