Significant Accounting Policies | Significant Accounting Policies There have been no changes to our accounting policies disclosed in our audited consolidated financial statements and the related notes for the year ended December 31, 2017 other than, during the three months ended March 31, 2018, we adopted new accounting guidance related to stock-based compensation and to income tax effects of intra-entity transfers of assets other than inventory and, during the six months ended June 30, 2018 (see Note 6), we adopted accounting policies relating to our convertible senior notes that were issued in May and June 2018. See “Recently Adopted Accounting Pronouncements” below. Use of Estimates The preparation of condensed consolidated financial statements in conformity with U.S. GAAP requires management to make estimates and assumptions that affect the reported amounts of assets and liabilities, disclosure of contingent liabilities at the date of the condensed consolidated financial statements, and the reported amounts of revenue and expenses during the reporting period. Actual results could differ from these estimates and assumptions. On an ongoing basis, our management evaluates estimates and assumptions based on historical data and experience, as well as various other factors that our management believes to be reasonable under the circumstances, the results of which form the basis for making judgments about the carrying value of assets and liabilities. Convertible Senior Notes Convertible senior notes are accounted for in accordance with the provisions of Accounting Standards Codification, or ASC, 470‑20, Debt with Conversion and Other Options . Convertible debt instruments that have a net settlement feature and may be settled wholly or partially in cash upon conversion are required to be separated into liability and equity components of the instrument. The carrying amount of the liability component of the instrument is computed by estimating the fair value of a similar liability without the conversion option. The carrying amount of the equity component, representing the conversion option, is then calculated by deducting the fair value of the liability component from the principal amount of the instrument. The difference between the principal amount and the liability component represents a debt discount that is amortized to interest expense over the respective term of the convertible debt instrument using the effective interest rate method. The equity component is not remeasured as long as it continues to meet the conditions for equity classification. Issuance costs incurred related to the issuance of convertible debt instruments are allocated to the liability and equity components based on their relative fair values. Variable Interest Entities In accordance with ASC 810, Consolidation , the applicable accounting guidance for the consolidation of variable interest entities, or VIEs, we analyze our interests to determine if such interests are variable interests. If variable interests are identified, then the related entity is assessed to determine if it is a VIE. VIEs are generally entities that have either a total equity investment that is insufficient to permit the entity to finance its activities without additional subordinated financial support, or whose equity investors lack the characteristics of a controlling financial interest (i.e., ability to make significant decisions through voting rights and a right to receive the expected residual returns of the entity or an obligation to absorb the expected losses of the entity). If we determine that the entity is a VIE, we then assess if we must consolidate the VIE. We deem ourselves to be the primary beneficiary if we have both (i) the power to direct the activities of the VIE that most significantly impact the entity’s economic performance, and (ii) an obligation to absorb losses of the entity that could potentially be significant to the VIE, or a right to receive benefits from the entity that could be significant to the VIE. As of December 31, 2017 and June 30, 2018 , we determined that two and one of our distributors were VIEs under the guidance of ASC 810, Consolidation, respectively. These determinations were due to (i) our participation in the design of the distributor’s legal entity, (ii) our having a variable interest in the distributor, and (iii) our having the right to residual returns. We determined that we were not the primary beneficiary of these VIEs because we did not have (a) the power to direct the activities that most significantly impact the VIE’s economic performance, and (b) the obligation to absorb losses of the VIE or the right to receive benefits from the VIE that could potentially be significant. Therefore, we did not consolidate any assets or liabilities of these VIE’s in our consolidated balance sheets or record the results of these distributors in our consolidated statements of operations and comprehensive loss. Transactions with the VIEs were accounted for in the same manner as our other distributors and resellers. As of June 30, 2018 and December 31, 2017 , we had no exposure to losses from the contractual relationships with these VIEs or commitments to fund these VIEs. During the three months ended March 31, 2018, we acquired 100% of the outstanding equity of one of our VIEs. Our condensed consolidated financial statements include the assets and liabilities and the results of operations of the acquired company commencing as of the acquisition date. See Note 3 for additional information. Recently Adopted Accounting Pronouncements Under the Jumpstart our Business Startups Act, or the JOBS Act, we qualify as an emerging growth company, or EGC. However, we currently expect that we will no longer qualify as an EGC after December 31, 2018. While we maintain EGC status, we have elected to use the extended transition period for complying with new or revised accounting standards pursuant to Section 107(b) of the JOBS Act. In October 2016, the Financial Accounting Standards Board, or FASB, issued Accounting Standards Update, or ASU, 2016-16, Intra-Entity Transfers of Assets Other Than Inventory . This guidance removes the prohibition in ASC 740, Income Taxes, or ASC 740, against the immediate recognition of the current and deferred income tax effects of intra-entity transfers of assets other than inventory. This guidance is intended to reduce the complexity of U.S. GAAP and diversity in practice related to the tax consequences of certain types of intra-entity asset transfers, particularly those involving intellectual property. The impact of adoption is recorded using the modified retrospective transition basis through a cumulative-effect adjustment to accumulated deficit as of the beginning of the period of adoption. We early adopted ASU 2016-16 on January 1, 2018, resulting in the elimination of $1.4 million of deferred tax charges included in other assets in our consolidated balance sheet at December 31, 2017 . We recorded the elimination of the deferred charge to accumulated deficit as of January 1, 2018. In March 2016, the FASB issued ASU 2016-9, Compensation—Stock Compensation (Topic 718): Improvements to Employee Share-Based Payment Accounting , or ASU 2016-9, which simplifies several aspects of the accounting for share-based payment transactions and related tax impacts, the classification of excess tax benefits on the statement of cash flows, statutory tax withholding requirements, and other stock-based compensation classification matters. We adopted ASU 2016-9 on January 1, 2018. Upon adoption, we recognized $ 2.4 million of previously unrecognized excess tax benefits related to stock awards using the modified retrospective transition method. We recorded the recognized excess tax benefits as a deferred tax asset, which was then fully offset by our U.S. federal and state deferred tax asset valuation allowance resulting in no impact to our accumulated deficit. Immediately prior to adoption, we had no unrecognized excess tax benefits related to stock awards in jurisdictions outside the United States. All future excess tax benefits resulting from the settlement of stock awards will be recorded to income tax expense. Additionally, upon adoption, we changed our accounting policy to account for forfeitures when they occur rather than estimate a forfeiture rate, the result of which was recorded using the modified retrospective transition basis through a cumulative-effect adjustment to accumulated deficit and additional paid-in-capital of $ 0.1 million as of January 1, 2018. Recently Issued Accounting Pronouncements In January 2017, the FASB issued ASU 2017-04, Simplifying the Test for Goodwill Impairment , which simplifies the subsequent measurement of goodwill by removing the requirement to perform a hypothetical purchase price allocation to compute the implied fair value of goodwill to measure impairment. Instead, any goodwill impairment will equal the amount by which a reporting unit’s carrying value exceeds its fair value, not to exceed the carrying amount of goodwill. Further, the guidance eliminates the requirements for any reporting unit with a zero or negative carrying amount to perform a qualitative assessment and, if it fails that qualitative test, to perform Step 2 of the goodwill impairment test. If we no longer qualify as an EGC, this guidance will be effective for us for annual or any interim goodwill impairment test in annual reporting periods beginning after December 15, 2020. Early adoption is permitted and will be applied to any acquisitions after adoption on a prospective basis. While we continue to assess the potential impact of the adoption of this guidance, we do not expect the adoption of this guidance to have a material impact on our consolidated financial statements. In January 2017, the FASB issued ASU 2017-01, Clarifying the Definition of a Business , which narrows the application of when an integrated set of assets and activities is considered a business and provides a framework to assist entities in evaluating whether both an input and a substantive process are present to be considered a business. It is expected that the new guidance will reduce the number of transactions that would need to be further evaluated and accounted for as a business. If we no longer qualify as an EGC after December 31, 2018, this guidance will be effective for us for the annual reporting period for the year ending December 31, 2018, and for interim and annual reporting periods thereafter. Early adoption is permitted and will be applied on a prospective basis. We are evaluating the potential impact of adopting this guidance on our consolidated financial statements. In November 2016, the FASB issued ASU 2016-18, Restricted Cash , which requires that restricted cash be included with cash and cash equivalents when reconciling the beginning and ending total amounts shown on the statement of cash flows. If we no longer qualify as an EGC after December 31, 2018, this guidance will be effective for us for the year ending December 31, 2018, and for interim and annual reporting periods thereafter, and should be applied using a retrospective transition method to each period presented. Early adoption is permitted, including adoption in an interim period. If an entity early adopts the amendments in an interim period, any adjustments should be reflected as of the beginning of the fiscal year that includes that interim period. We have not yet determined the timing of adoption. We currently present changes in restricted cash within investing activities and so the adoption of this guidance will result in changes in net cash flows from investing activities and to certain beginning and ending cash and cash equivalent totals shown on our consolidated statement of cash flows. In August 2016, the FASB issued ASU 2016-15, Classification of Certain Cash Receipts and Cash Payments , which addresses eight specific cash flow issues with the objective of reducing the existing diversity in practice, including presentation of cash flows relating to contingent consideration payments, proceeds from the settlement of insurance claims, and debt prepayment or debt extinguishment costs, among other matters. If we no longer qualify as an EGC after December 31, 2018, this guidance will be effective for us for the annual reporting period for the year ending December 31, 2018, and for interim and annual reporting periods thereafter. Early adoption is permitted, including adoption in an interim period. If adopted in an interim period, any adjustments should be reflected as of the beginning of the fiscal year that includes that interim period. Adoption of this guidance is required to be applied using a retrospective transition method to each period presented, unless impracticable to do so. We are currently evaluating the potential impact of this guidance on our consolidated statement of cash flows. In February 2016, the FASB issued ASU 2016-02, Leases , creating Topic 842, which requires lessees to record the assets and liabilities arising from all leases in the statement of financial position. Under ASU 2016-2, lessees will recognize a liability for lease payments and a right-of-use asset. When measuring assets and liabilities, a lessee should include amounts related to option terms, such as the option of extending or terminating the lease or purchasing the underlying asset, that are reasonably certain to be exercised. For leases with a term of 12 months or less, lessees are permitted to make an accounting policy election to not recognize lease assets and liabilities. This guidance retains the distinction between finance leases and operating leases and the classification criteria remains similar. For financing leases, a lessee will recognize the interest on a lease liability separate from amortization of the right-of-use asset. In addition, repayments of principal will be presented within financing activities, and interest payments will be presented within operating activities in the statement of cash flows. For operating leases, a lessee will recognize a single lease cost on a straight-line basis and classify all cash payments within operating activities in the statement of cash flows. If we no longer qualify as an EGC after December 31, 2018, this guidance will be effective for us for annual reporting periods beginning after December 15, 2018, including interim periods within those annual periods, and is required to be applied using a modified retrospective approach with an option to recognize the cumulative effect of applying the new standard as an adjustment to the opening balance of retained earnings on the date of adoption. Early adoption is permitted. We are evaluating the potential impact of this guidance on our consolidated financial statements. In May 2014, the FASB issued ASU 2014-09, Revenue from Contracts with Customers . This guidance replaces most existing revenue recognition guidance. It provides principles for recognizing revenue for the transfer of promised goods or services to customers with the consideration to which the entity expects to be entitled in exchange for those goods or services. In August 2015, the FASB issued ASU 2015-14, which deferred the effective date of ASU 2014-9 by one year. During 2016 and 2017, the FASB continued to issue additional amendments to this new revenue guidance. If we no longer qualify as an EGC after December 31, 2018, this guidance will be effective for us for the annual reporting period for the year ending December 31, 2018, and for interim and annual reporting periods thereafter. Early adoption is permitted. We are evaluating the potential impact of this guidance on our consolidated financial statements. |