v3.19.3

NET INCOME (LOSS) PER SHARE (Tables) | 9 Months Ended
--- | ---
Sep. 30, 2019
Earnings Per Share [Abstract] |
Schedule of Basic and Diluted Net Loss Per Share | The following table presents the calculation of basic and diluted net income (loss) per share (in thousands, except per share data):
| Three Months Ended September 30, |  | Nine Months Ended September 30,
2019 |  | 2018 |  | 2019 |  | 2018
Numerator: |  |  |  |  |  |  |
Net income (loss) | $ | 29,397 |  |  | $ | 19,643 |  |  | $ | (15,494 | ) |  | $ | (10,249 | )
Denominator: |  |  |  |  |  |  |
Basic shares: |  |  |  |  |  |  |
Weighted-average common shares outstanding | 427,906 |  |  | 410,095 |  | 423,957 |  |  | 403,577
Weighted-average unvested shares | (782 | ) |  | (405 | ) |  | (718 | ) |  | (597 | )
Weighted-average shares used to compute basic net loss per share | 427,124 |  |  | 409,690 |  |  | 423,239 |  |  | 402,980
Diluted shares: |  |  |  |  |  |  |
Stock options and restricted stock units | 28,549 |  |  | 47,175 |  |  | — |  |  | — |
Convertible senior notes | — |  |  | 6,409 |  |  | — |  |  | — |
Common stock warrants | 10,372 |  |  | 11,422 |  |  | — |  |  | — |
Employee stock purchase plan | 54 |  |  | 219 |  |  | — |  |  | — |
Weighted-average shares used to compute diluted net income (loss) per share | 466,099 |  |  | 474,915 |  |  | 423,239 |  |  | 402,980
Net income (loss) per share: |  |  |  |  |  |  |
Basic | $ | 0.07 |  |  | $ | 0.05 |  |  | $ | (0.04 | ) |  | $ | (0.03 | )
Diluted | $ | 0.06 |  |  | $ | 0.04 |  |  | $ | (0.04 | ) |  | $ | (0.03 | )
Schedule of Antidilutive Securities Excluded from Calculation of Diluted Net Income (Loss) Per Share | The following potential common shares were excluded from the calculation of diluted net income (loss) per share because their effect would have been anti-dilutive for the periods presented (in thousands):
| Three Months Ended September 30, |  | Nine Months Ended September 30,
| 2019 |  | 2018 |  | 2019 |  | 2018
Stock options and restricted stock units | 15,113 |  |  | 12,079 |  |  | 46,045 |  |  | 62,822 |
Common stock warrants | 19,880 |  |  | 18,830 |  |  | 30,252 |  |  | 24,387 |
Convertible senior notes | 20,305 |  |  | 23,415 |  |  | 20,305 |  |  | 24,276 |
Unvested shares | 782 |  |  | 405 |  |  | 718 |  |  | 597 |
Employee stock purchase plan | 189 |  |  | 26 |  |  | 217 |  |  | 207 |
Total anti-dilutive securities | 56,269 |  |  | 54,755 |  |  | 97,537 |  |  | 112,289 |

X
- References No definition available. + Details
Name: | us-gaap_EarningsPerShareAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) in the future that were not included in the computation of diluted EPS because to do so would increase EPS amounts or decrease loss per share amounts for the period presented, by antidilutive securities. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257 + Details
Name: | us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of an entity's basic and diluted earnings per share calculations, including a reconciliation of numerators and denominators of the basic and diluted per-share computations for income from continuing operations. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257 + Details
Name: | us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration