Income Taxes (Tables)
|
12 Months Ended |
Dec. 31, 2017 |
Income Taxes |
|
Summary of loss before income tax provision (benefit) |
|
|
|
|
|
|
|
|
|
|
|
|
|
Year Ended December 31,
|
|
|
|
2017
|
|
2016
|
|
2015
|
|
Domestic
|
|
$
|
(9,387)
|
|
$
|
(47,059)
|
|
$
|
7,059
|
|
Foreign
|
|
|
7,698
|
|
|
6,569
|
|
|
1,929
|
|
Total
|
|
$
|
(1,689)
|
|
$
|
(40,490)
|
|
$
|
8,988
|
|
|
Summary of components of the income tax provision charged to operations |
|
|
|
|
|
|
|
|
|
|
|
|
|
Year Ended December 31,
|
|
|
|
2017
|
|
2016
|
|
2015
|
|
Current:
|
|
|
|
|
|
|
|
|
|
|
Federal
|
|
$
|
(1,201)
|
|
$
|
3,812
|
|
$
|
12,731
|
|
State
|
|
|
951
|
|
|
1,172
|
|
|
1,644
|
|
Foreign
|
|
|
6,438
|
|
|
4,509
|
|
|
685
|
|
|
|
|
6,188
|
|
|
9,493
|
|
|
15,060
|
|
|
|
|
|
|
|
|
|
|
|
|
Deferred:
|
|
|
|
|
|
|
|
|
|
|
Federal
|
|
|
(4,439)
|
|
|
5,992
|
|
|
(9,384)
|
|
State
|
|
|
146
|
|
|
117
|
|
|
(1,288)
|
|
Foreign
|
|
|
(304)
|
|
|
(525)
|
|
|
164
|
|
|
|
|
(4,597)
|
|
|
5,584
|
|
|
(10,508)
|
|
|
|
|
|
|
|
|
|
|
|
|
Total
|
|
$
|
1,591
|
|
$
|
15,077
|
|
$
|
4,552
|
|
|
Schedule of net deferred tax assets (liabilities) |
|
|
|
|
|
|
|
|
|
|
At December 31,
|
|
|
|
2017
|
|
2016
|
|
Deferred revenue
|
|
$
|
5,723
|
|
$
|
6,309
|
|
Prepaid expenses and accruals
|
|
|
1,459
|
|
|
1,363
|
|
Deferred rent and lease incentives
|
|
|
3,419
|
|
|
3,940
|
|
Net operating loss and tax credit carryforwards
|
|
|
66,896
|
|
|
100,471
|
|
Property and equipment and intangible assets
|
|
|
(51,182)
|
|
|
(90,222)
|
|
Stock-based compensation expense
|
|
|
6,894
|
|
|
10,641
|
|
Convertible Notes
|
|
|
(2,886)
|
|
|
(6,346)
|
|
Other
|
|
|
1,221
|
|
|
(2,101)
|
|
Total deferred tax assets
|
|
|
31,544
|
|
|
24,055
|
|
Less: valuation allowance
|
|
|
(32,513)
|
|
|
(29,610)
|
|
Net deferred tax liabilities
|
|
$
|
(969)
|
|
$
|
(5,555)
|
|
|
Summary of expected tax provision |
|
|
|
|
|
|
|
|
|
|
|
|
|
Year Ended December 31,
|
|
|
|
2017
|
|
2016
|
|
2015
|
|
Tax provision (benefit), at U.S. federal statutory tax rate
|
|
$
|
(573)
|
|
$
|
(13,767)
|
|
$
|
3,056
|
|
|
|
|
|
|
|
|
|
|
|
|
State income tax provision (benefit), net of federal benefit
|
|
|
(1,251)
|
|
|
(2,053)
|
|
|
247
|
|
Effect of stock-based compensation excess tax benefit
|
|
|
(11,522)
|
|
|
—
|
|
|
—
|
|
Effect of permanent items
|
|
|
1,145
|
|
|
1,773
|
|
|
1,899
|
|
Change in valuation allowance
|
|
|
2,151
|
|
|
26,269
|
|
|
841
|
|
Effect of change in federal income tax rate
|
|
|
13,792
|
|
|
—
|
|
|
—
|
|
Effect of change in state income tax rate
|
|
|
537
|
|
|
279
|
|
|
283
|
|
Uncertain tax positions
|
|
|
3,668
|
|
|
2,024
|
|
|
(859)
|
|
Research and development credits
|
|
|
(2,815)
|
|
|
(2,758)
|
|
|
(1,914)
|
|
Change in permanent reinvestment assertion
|
|
|
(4,494)
|
|
|
—
|
|
|
—
|
|
State net operating loss adjustment, net of valuation allowance impact
|
|
|
836
|
|
|
—
|
|
|
—
|
|
Other
|
|
|
117
|
|
|
3,310
|
|
|
999
|
|
Income tax provision
|
|
$
|
1,591
|
|
$
|
15,077
|
|
$
|
4,552
|
|
|
Schedule of reconciliation of the beginning and ending amount of unrecognized tax benefit |
|
|
|
|
|
|
|
|
|
|
|
|
|
Year Ended December 31,
|
|
|
|
2017
|
|
2016
|
|
2015
|
|
Unrecognized tax benefits balance at beginning of year
|
|
$
|
16,476
|
|
$
|
14,129
|
|
$
|
2,092
|
|
Additions based on tax positions related to the current year
|
|
|
1,691
|
|
|
1,153
|
|
|
576
|
|
Additions based on tax positions related to prior years
|
|
|
145
|
|
|
1,257
|
|
|
—
|
|
Additions based on tax positions related to acquired entities
|
|
|
—
|
|
|
—
|
|
|
12,780
|
|
Reductions for settlements with taxing authorities related to prior years
|
|
|
—
|
|
|
—
|
|
|
(1,120)
|
|
Reductions for lapses of statute of limitations
|
|
|
—
|
|
|
(63)
|
|
|
(199)
|
|
Unrecognized tax benefits balance at end of year
|
|
$
|
18,312
|
|
$
|
16,476
|
|
$
|
14,129
|
|
|