[
  {
    "path": ".dockerignore",
    "content": "node_modules\ndist"
  },
  {
    "path": ".eslintrc.cjs",
    "content": "/* .eslintrc.cjs */\n\nmodule.exports = {\n  root: true, // Ensures ESLint doesn't look beyond this folder for configuration\n  parser: '@typescript-eslint/parser', // Tells ESLint to parse TypeScript\n  parserOptions: {\n    ecmaVersion: 'latest', // Enables modern JavaScript features\n    sourceType: 'module', // Allows import/export statements,\n    project: './tsconfig.json', // Tells ESLint to use the tsconfig.json file\n  },\n  extends: [\n    'eslint:recommended', // Basic ESLint rules\n    'plugin:@typescript-eslint/recommended', // Adds TypeScript-specific rules\n    'prettier', // Disables rules conflicting with Prettier\n  ],\n  ignorePatterns: [\n    '.eslintrc.cjs',\n    'scripts',\n    'src/utils/lodash/*',\n    'node_modules',\n    'dist',\n    'dist-cjs',\n    '*.js',\n    '*.cjs',\n    '*.d.ts',\n  ],\n  rules: {\n    // You can add or override any rules here, for example:\n    // \"no-console\": \"warn\", // Warn when using console.log\n  },\n};\n"
  },
  {
    "path": ".github/workflows/ci.yml",
    "content": "# Run formatting on all PRs\n\nname: CI\n\non:\n  push:\n    branches: [\"main\"]\n  pull_request:\n  workflow_dispatch: # Allows triggering the workflow manually in GitHub UI\n\n# If another push to the same PR or branch happens while this workflow is still running,\n# cancel the earlier run in favor of the next run.\nconcurrency:\n  group: ${{ github.workflow }}-${{ github.ref }}\n  cancel-in-progress: true\n\njobs:\n  format:\n    name: Check formatting\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      - name: Use Node.js 18.x\n        uses: actions/setup-node@v3\n        with:\n          node-version: 18.x\n          cache: \"yarn\"\n      - name: Install dependencies\n        run: yarn install --immutable --mode=skip-build\n      - name: Check formatting\n        run: yarn format:check\n\n  lint:\n    name: Check linting\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      - name: Use Node.js 18.x\n        uses: actions/setup-node@v3\n        with:\n          node-version: 18.x\n          cache: \"yarn\"\n      - name: Install dependencies\n        run: yarn install --immutable --mode=skip-build\n      - name: Check linting\n        run: yarn run lint:all\n"
  },
  {
    "path": ".gitignore",
    "content": "# npm\nnode_modules/\n\n# misc\n.DS_Store\n*.pem\n\n# debug\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\nui-debug.log*\n\n# local env files\n.env*.local\n\n# typescript\n*.tsbuildinfo\n\n# vercel\n.vercel\n\n# testing\ncoverage\n\n# next.js\n.next/\nout/\n\n# fumadocs\n.source\n\n# production\nbuild\ndist\napps/docs/public/registry/\n\n# turbo\n.turbo\n\n# env\n.env\n\n# cursor\n.cursor\n.cursor/\n\n#llm_context\nllm_context/\n\ntest_docs\n\n.swc\n"
  },
  {
    "path": ".prettierrc",
    "content": "{\n  \"trailingComma\": \"all\",\n  \"singleQuote\": true,\n  \"printWidth\": 80,\n  \"tabWidth\": 2\n}\n"
  },
  {
    "path": "LICENSE",
    "content": "MIT License\n\nCopyright (c) 2024 [Your Name or Organization Name]\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE. "
  },
  {
    "path": "README.md",
    "content": "# AI PDF Chatbot & Agent Powered by LangChain and LangGraph\n\nThis monorepo is a customizable template example of an AI chatbot agent that \"ingests\" PDF documents, stores embeddings in a vector database (Supabase), and then answers user queries using OpenAI (or another LLM provider) utilising LangChain and LangGraph as orchestration frameworks.\n\nThis template is also an accompanying example to the book [Learning LangChain (O'Reilly)](https://www.oreilly.com/library/view/learning-langchain/9781098167271): Building AI and LLM applications with LangChain and LangGraph.\n\n**Here's what the Chatbot UI looks like:**\n\n<img width=\"1096\" alt=\"Screenshot 2025-02-20 at 05 39 55\" src=\"https://github.com/user-attachments/assets/3a9ddea7-b718-476b-bdae-38839be20c12\" />\n\n## Table of Contents\n\n1. [Features](#features)\n2. [Architecture Overview](#architecture-overview)\n3. [Prerequisites](#prerequisites)\n4. [Installation](#installation)\n5. [Environment Variables](#environment-variables)\n   - [Frontend Variables](#frontend-variables)\n   - [Backend Variables](#backend-variables)\n6. [Local Development](#local-development)\n   - [Running the Backend](#running-the-backend)\n   - [Running the Frontend](#running-the-frontend)\n7. [Usage](#usage)\n   - [Uploading/Ingesting PDFs](#uploadingingesting-pdfs)\n   - [Asking Questions](#asking-questions)\n   - [Viewing Chat History](#viewing-chat-history)\n8. [Production Build & Deployment](#production-build--deployment)\n9. [Customizing the Agent](#customizing-the-agent)\n10. [Troubleshooting](#troubleshooting)\n11. [Next Steps](#next-steps)\n\n---\n\n## Features\n\n- **Document Ingestion Graph**: Upload and parse PDFs into `Document` objects, then store vector embeddings into a vector database (we use Supabase in this example).\n- **Retrieval Graph**: Handle user questions, decide whether to retrieve documents or give a direct answer, then generate concise responses with references to the retrieved documents.\n- **Streaming Responses**: Real-time streaming of partial responses from the server to the client UI.\n- **LangGraph Integration**: Built using LangGraph’s state machine approach to orchestrate ingestion and retrieval, visualise your agentic workflow, and debug each step of the graph.  \n- **Next.js Frontend**: Allows file uploads, real-time chat, and easy extension with React components and Tailwind.\n\n---\n\n## Architecture Overview\n\n```ascii\n┌─────────────────────┐    1. Upload PDFs    ┌───────────────────────────┐\n│Frontend (Next.js)   │ ────────────────────> │Backend (LangGraph)       │\n│ - React UI w/ chat  │                      │ - Ingestion Graph         │\n│ - Upload .pdf files │ <────────────────────┤   + Vector embedding via  │\n└─────────────────────┘    2. Confirmation   │     SupabaseVectorStore   │\n(storing embeddings in DB)\n\n┌─────────────────────┐    3. Ask questions  ┌───────────────────────────┐\n│Frontend (Next.js)   │ ────────────────────> │Backend (LangGraph)       │\n│ - Chat + SSE stream │                      │ - Retrieval Graph         │\n│ - Display sources   │ <────────────────────┤   + Chat model (OpenAI)   │\n└─────────────────────┘ 4. Streamed answers  └───────────────────────────┘\n\n```\n- **Supabase** is used as the vector store to store and retrieve relevant documents at query time.  \n- **OpenAI** (or other LLM providers) is used for language modeling.  \n- **LangGraph** orchestrates the \"graph\" steps for ingestion, routing, and generating responses.  \n- **Next.js** (React) powers the user interface for uploading PDFs and real-time chat.\n\nThe system consists of:\n- **Backend**: A Node.js/TypeScript service that contains LangGraph agent \"graphs\" for:\n  - **Ingestion** (`src/ingestion_graph.ts`) - handles indexing/ingesting documents\n  - **Retrieval** (`src/retrieval_graph.ts`) - question-answering over the ingested documents\n  - **Configuration** (`src/shared/configuration.ts`) - handles configuration for the backend api including model providers and vector stores\n- **Frontend**: A Next.js/React app that provides a web UI for users to upload PDFs and chat with the AI.\n---\n\n## Prerequisites\n\n1. **Node.js v18+** (we recommend Node v20).\n2. **Yarn** (or npm, but this monorepo is pre-configured with Yarn).\n3. **Supabase project** (if you plan to store embeddings in Supabase; see [Setting up Supabase](https://supabase.com/docs/guides/getting-started)).\n   - You will need:\n     - `SUPABASE_URL`\n     - `SUPABASE_SERVICE_ROLE_KEY`\n     - A table named `documents` and a function named `match_documents` for vector similarity search (see [LangChain documentation for guidance on setting up the tables](https://js.langchain.com/docs/integrations/vectorstores/supabase/)).\n4. **OpenAI API Key** (or another LLM provider’s key, supported by LangChain).\n5. **LangChain API Key** (free and optional, but highly recommended for debugging and tracing your LangChain and LangGraph applications). Learn more [here](https://docs.smith.langchain.com/administration/how_to_guides/organization_management/create_account_api_key)\n\n---\n\n## Installation\n\n1. **Clone** the repository:\n\n   ```bash\n   git clone https://github.com/mayooear/ai-pdf-chatbot-langchain.git\n   cd ai-pdf-chatbot-langchain\n   ```\n\n2.\tInstall dependencies (from the monorepo root):\n\nyarn install\n\n\t3.\tConfigure environment variables in both backend and frontend. See .`env.example` files for details.\n\n## Environment Variables\n\nThe project relies on environment variables to configure keys and endpoints. Each sub-project (backend and frontend) has its own .env.example. Copy these to .env and fill in your details.\n\n### Frontend Variables\n\nCreate a .env file in frontend:\n\n`cp frontend/.env.example frontend/.env`\n\n```\n    NEXT_PUBLIC_LANGGRAPH_API_URL=http://localhost:2024\n    LANGCHAIN_API_KEY=your-langsmith-api-key-here # Optional: LangSmith API key\n    LANGGRAPH_INGESTION_ASSISTANT_ID=ingestion_graph\n    LANGGRAPH_RETRIEVAL_ASSISTANT_ID=retrieval_graph\n\n    LANGCHAIN_TRACING_V2=true # Optional: Enable LangSmith tracing\n\n    LANGCHAIN_PROJECT=\"pdf-chatbot\" # Optional: LangSmith project name\n```\n\n### Backend Variables\n\nCreate a .env file in backend:\n\n`cp backend/.env.example backend/.env`\n\n```\n    OPENAI_API_KEY=your-openai-api-key-here\n    SUPABASE_URL=your-supabase-url-here\n    SUPABASE_SERVICE_ROLE_KEY=your-supabase-service-role-key-here\n\n    LANGCHAIN_TRACING_V2=true # Optional: Enable LangSmith tracing\n\n    LANGCHAIN_PROJECT=\"pdf-chatbot\" # Optional: LangSmith project name\n```\n\n**Explanation of Environment Variables:**\n\n-   `NEXT_PUBLIC_LANGGRAPH_API_URL`: The URL where your LangGraph backend server is running.  Defaults to `http://localhost:2024` for local development. \n-   `LANGCHAIN_API_KEY`: Your LangSmith API key.  This is optional, but highly recommended for debugging and tracing your LangChain and LangGraph applications.\n-   `LANGGRAPH_INGESTION_ASSISTANT_ID`: The ID of the LangGraph assistant for document ingestion. Default is `ingestion_graph`.\n-   `LANGGRAPH_RETRIEVAL_ASSISTANT_ID`: The ID of the LangGraph assistant for question answering. Default is `retrieval_graph`.\n-   `LANGCHAIN_TRACING_V2`:  Enable tracing to debug your application on the LangSmith platform.  Set to `true` to enable.\n-   `LANGCHAIN_PROJECT`:  The name of your LangSmith project.\n-   `OPENAI_API_KEY`: Your OpenAI API key.\n-   `SUPABASE_URL`: Your Supabase URL.\n-   `SUPABASE_SERVICE_ROLE_KEY`: Your Supabase service role key.\n\n\n\n## Local Development\n\nThis monorepo uses Turborepo to manage both backend and frontend projects. You can run them separately for development.\n\n### Running the Backend\n\n1.\tNavigate to backend:\n\n```bash\ncd backend\n```\n\n2.\tInstall dependencies (already done if you ran yarn install at the root).\n\n3.\tStart LangGraph in dev mode:\n\n```bash\nyarn langgraph:dev\n```\n\nThis will launch a local LangGraph server on port 2024 by default. It should redirect you to a UI for interacting with the LangGraph server. [Langgraph studio guide](https://langchain-ai.github.io/langgraph/concepts/langgraph_studio/)\n\n### Running the Frontend\n\n1. Navigate to frontend:\n\n```bash\ncd frontend\n```\n\n2. Start the Next.js development server:\n\n```bash\nyarn dev\n```\n\nThis will start a local Next.js development server (by default on port 3000).\n\nAccess the UI in your browser at http://localhost:3000.\n\n## Usage\n\nOnce both services are running:\n\n1. Use langgraph studio UI to interact with the LangGraph server and ensure the workflow is working as expected.\n\n2. Navigate to http://localhost:3000 to use the chatbot UI.\n\n3. Upload a small PDF document via the file upload button at the bottom of the page. This will trigger the ingestion graph to extract the text and store the embeddings in Supabase via the frontend `app/api/ingest` route.\n\t\n4. After the ingestion is complete, ask questions in the chat input.\n\n5. The chatbot will trigger the retrieval graph via the `app/api/chat` route to retrieve the most relevant documents from the vector database and use the relevant PDF context (if needed) to answer.\n\n\n### Uploading/Ingesting PDFs\n\nClick on the paperclip icon in the chat input area.\n\nSelect one or more PDF files to upload ensuring a total of max 5, each under 10MB (you can change these threshold values in the `app/api/ingest` route).\n\nThe backend processes the PDFs, extracts text, and stores embeddings in Supabase (or your chosen vector store).\n\n### Asking Questions\n\n- Type your question in the chat input field.\n- Responses stream in real time. If the system retrieved documents, you’ll see a link to “View Sources” for each chunk of text used in the answer.\n\n### Viewing Chat History\n\n- The system creates a unique thread per user session (frontend). All messages are kept in the state for the session.\n- For demonstration purposes, the current example UI does not store the entire conversation beyond the local thread state and is not persistent across sessions. You can extend it to persist threads in a database. However, the \"ingested documents\" are persistent across sessions as they are stored in a vector database.\n\n\n## Deploying the Backend\n\nTo deploy your LangGraph agent to a cloud service, you can either use LangGraph's cloud as per this [guide](https://langchain-ai.github.io/langgraph/cloud/quick_start/?h=studio#deploy-to-langgraph-cloud) or self-host it as per this [guide](https://langchain-ai.github.io/langgraph/how-tos/deploy-self-hosted/).\n\n## Deploying the Frontend\nThe frontend can be deployed to any hosting that supports Next.js (Vercel, Netlify, etc.).\n\nMake sure to set relevant environment variables in your deployment environment. In particular, ensure `NEXT_PUBLIC_LANGGRAPH_API_URL` is pointing to your deployed backend URL.\n\n## Customizing the Agent\n\nYou can customize the agent on the backend and frontend.\n\n### Backend\n\n- In the configuration file `src/shared/configuration.ts`, you can change the default configs i.e. the vector store, k-value, and filter kwargs, shared between the ingestion and retrieval graphs. On the backend, configs can be used in each node of the graph workflow or from frontend, you can pass a config object into the graph's client.\n- You can adjust the prompts in the `src/retrieval_graph/prompts.ts` file.\n- If you'd like to change the retrieval model, you can do so in the `src/shared/retrieval.ts` file by adding another retriever function that encapsulates the desired client for the vector store and then updating the `makeRetriever` function to return the new retriever.\n\n\n### Frontend\n\n- You can modify the file upload restrictions in the `app/api/ingest` route.\n- In `constants/graphConfigs.ts`, you can change the default config objects sent to the ingestion and retrieval graphs. These include the model provider, k value (no of source documents to retrieve), and retriever provider (i.e. vector store).\n\n\n## Troubleshooting\n1. .env Not Loaded\n   - Make sure you copied .env.example to .env in both backend and frontend.\n   - Check your environment variables are correct and restart the dev server.\n\n2. Supabase Vector Store\n   - Ensure you have configured your Supabase instance with the documents table and match_documents function. Check the official LangChain docs on Supabase integration.\n\n3. OpenAI Errors\n   - Double-check your OPENAI_API_KEY. Make sure you have enough credits/quota.\n\n4. LangGraph Not Running\n   - If yarn langgraph:dev fails, confirm your Node version is >= 18 and that you have all dependencies installed.\n\n5. Network Errors\n   - Frontend must point to the correct NEXT_PUBLIC_LANGGRAPH_API_URL. By default, it is http://localhost:2024.\n\n## Next Steps\n\nIf you'd like to contribute to this project, feel free to open a pull request. Ensure it is well documented and includes tests in the test files.\n\nIf you'd like to learn more about building AI chatbots and agents with LangChain and LangGraph, check out the book [Learning LangChain (O'Reilly)](https://www.oreilly.com/library/view/learning-langchain/9781098167271/).\n\n"
  },
  {
    "path": "backend/.gitignore",
    "content": "\n# LangGraph API\n.langgraph_api\n"
  },
  {
    "path": "backend/__tests__/ingestion_graph/state.test.ts",
    "content": "import { Document } from '@langchain/core/documents';\nimport { reduceDocs } from '../../src/shared/state.js';\n\ndescribe('IndexStateAnnotation', () => {\n  describe('docs reducer', () => {\n    it('should handle adding new documents', () => {\n      const initialDocs: Document[] = [];\n      const newDoc = new Document({\n        pageContent: 'test content',\n        metadata: { source: 'test.pdf', page: 1 },\n      });\n\n      const result = reduceDocs(initialDocs, [newDoc]);\n      expect(result).toHaveLength(1);\n      expect(result[0].pageContent).toBe('test content');\n      expect(result[0].metadata).toEqual({ source: 'test.pdf', page: 1 });\n    });\n\n    it('should handle merging multiple documents', () => {\n      const initialDocs = [\n        new Document({\n          pageContent: 'initial doc',\n          metadata: { source: 'initial.pdf', page: 1 },\n        }),\n      ];\n\n      const newDocs = [\n        new Document({\n          pageContent: 'new doc 1',\n          metadata: { source: 'new1.pdf', page: 1 },\n        }),\n        new Document({\n          pageContent: 'new doc 2',\n          metadata: { source: 'new2.pdf', page: 1 },\n        }),\n      ];\n\n      const result = reduceDocs(initialDocs, newDocs);\n      expect(result).toHaveLength(3);\n      expect(result.map((doc: Document) => doc.pageContent)).toEqual([\n        'initial doc',\n        'new doc 1',\n        'new doc 2',\n      ]);\n      expect(result.map((doc: Document) => doc.metadata.source)).toEqual([\n        'initial.pdf',\n        'new1.pdf',\n        'new2.pdf',\n      ]);\n    });\n\n    it('should handle empty document arrays', () => {\n      const initialDocs: Document[] = [];\n      const newDocs: Document[] = [];\n\n      const result = reduceDocs(initialDocs, newDocs);\n      expect(result).toHaveLength(0);\n    });\n\n    it('should handle \"delete\" action', () => {\n      const initialDocs = [\n        new Document({\n          pageContent: 'to be deleted',\n          metadata: { source: 'delete.pdf', page: 1 },\n        }),\n      ];\n\n      const result = reduceDocs(initialDocs, 'delete');\n      expect(result).toHaveLength(0);\n    });\n  });\n});\n"
  },
  {
    "path": "backend/__tests__/retrieval_graph/integration.test.ts",
    "content": "import dotenv from 'dotenv';\ndotenv.config();\n\nimport { graph } from '../../src/retrieval_graph/graph.js';\nimport { Document } from '@langchain/core/documents';\nimport { HumanMessage } from '@langchain/core/messages';\nimport { SupabaseVectorStore } from '@langchain/community/vectorstores/supabase';\nimport { OpenAIEmbeddings } from '@langchain/openai';\nimport { createClient } from '@supabase/supabase-js';\n\n/**\n * These tests require environment variables to be set:\n * OPENAI_API_KEY=your_openai_api_key\n * SUPABASE_URL=your_supabase_url\n * SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key\n *\n * To run the tests:\n * 1. Create a .env file in the backend directory\n * 2. Add the above environment variables with your values\n * 3. Run: npm test retrieval_graph/integration\n */\n\ndescribe('Retrieval Graph Integration', () => {\n  let vectorStore: SupabaseVectorStore;\n\n  beforeAll(async () => {\n    // Check for required environment variables\n    const requiredEnvVars = {\n      OPENAI_API_KEY: process.env.OPENAI_API_KEY,\n      SUPABASE_URL: process.env.SUPABASE_URL,\n      SUPABASE_SERVICE_ROLE_KEY: process.env.SUPABASE_SERVICE_ROLE_KEY,\n    };\n\n    const missingEnvVars = Object.entries(requiredEnvVars)\n      .filter(([_, value]) => !value)\n      .map(([key]) => key);\n\n    if (missingEnvVars.length > 0) {\n      console.error('\\nMissing required environment variables:');\n      console.error(missingEnvVars.join('\\n'));\n      console.error(\n        '\\nPlease create a .env file with the following variables:',\n      );\n      console.error('OPENAI_API_KEY=your_openai_api_key');\n      console.error('SUPABASE_URL=your_supabase_url');\n      console.error(\n        'SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key\\n',\n      );\n      return;\n    }\n\n    try {\n      // Setup test documents in Supabase\n      const embeddings = new OpenAIEmbeddings({\n        model: 'text-embedding-3-small',\n      });\n\n      const supabaseClient = createClient(\n        process.env.SUPABASE_URL!,\n        process.env.SUPABASE_SERVICE_ROLE_KEY!,\n      );\n\n      vectorStore = new SupabaseVectorStore(embeddings, {\n        client: supabaseClient,\n        tableName: 'documents',\n        queryName: 'match_documents',\n      });\n\n      // Add test documents with specific, unique information and ensure IDs are set\n      const testDocs = [\n        new Document({\n          pageContent:\n            'Project XYZ-123 was initiated on March 15, 2024, with a budget of $2.5M. The project lead, Dr. Sarah Chen, established three primary objectives: improving system reliability by 35%, reducing operational costs by 28%, and implementing a new machine learning pipeline with 99.9% uptime.',\n          metadata: {\n            source: 'test',\n            topic: 'project_report',\n            id: 'test_xyz123',\n          },\n        }),\n        new Document({\n          pageContent:\n            'The quarterly security audit for Q1 2024 identified 17 low-priority vulnerabilities and 3 medium-priority issues. Team lead Michael Rodriguez implemented fixes for all medium-priority issues within 48 hours, achieving a new record response time. The remaining issues are scheduled for resolution by April 30, 2024.',\n          metadata: {\n            source: 'test',\n            topic: 'security_audit',\n            id: 'test_audit_q1_2024',\n          },\n        }),\n      ];\n\n      // Clean up any existing test documents first\n      await supabaseClient\n        .from('documents')\n        .delete()\n        .eq('metadata->>source', 'test');\n\n      // Add the new test documents\n      await vectorStore.addDocuments(testDocs);\n    } catch (error) {\n      console.error('\\nError setting up test environment:');\n      console.error(error);\n      console.error('\\nPlease ensure:');\n      console.error('1. Your Supabase credentials are correct');\n      console.error('2. The documents table exists with the correct schema');\n      console.error('3. Your OpenAI API key is valid\\n');\n      throw error; // Rethrow to fail the test suite if setup fails\n    }\n  }, 30000); // Increased timeout to 30 seconds\n\n  afterAll(async () => {\n    // Clean up test documents only if environment variables are available\n    if (!process.env.SUPABASE_URL || !process.env.SUPABASE_SERVICE_ROLE_KEY) {\n      return;\n    }\n\n    try {\n      const supabaseClient = createClient(\n        process.env.SUPABASE_URL,\n        process.env.SUPABASE_SERVICE_ROLE_KEY,\n      );\n\n      // Delete test documents\n      await supabaseClient\n        .from('documents')\n        .delete()\n        .eq('metadata->>source', 'test');\n    } catch (error) {\n      console.error('\\nError cleaning up test documents:');\n      console.error(error);\n    }\n  });\n\n  // Skip all tests if environment variables are missing\n  const shouldRunTests = () => {\n    const hasEnvVars =\n      process.env.SUPABASE_URL &&\n      process.env.SUPABASE_SERVICE_ROLE_KEY &&\n      process.env.OPENAI_API_KEY;\n    if (!hasEnvVars) {\n      console.warn('Skipping tests due to missing environment variables');\n    }\n    return hasEnvVars;\n  };\n\n  describe('Direct Answer Path', () => {\n    it('should provide direct answers for general knowledge questions', async () => {\n      if (!shouldRunTests()) return;\n\n      const result = await graph.invoke({\n        messages: [],\n        query: 'What is 2+2?',\n      });\n\n      expect(result.messages).toHaveLength(1);\n      expect(result.messages[0]).toBeInstanceOf(HumanMessage);\n      const content = String(result.messages[0].content);\n      expect(content).toContain('4');\n    }, 30000);\n  });\n\n  describe('Retrieval Path', () => {\n    it('should retrieve and use context to answer specific project questions', async () => {\n      if (!shouldRunTests()) return;\n\n      const result = await graph.invoke({\n        messages: [],\n        query:\n          'What is the budget for Project XYZ-123 and who is the project lead?',\n      });\n\n      expect(result.messages).toHaveLength(1);\n      expect(result.documents).toBeDefined();\n      expect(result.documents.length).toBeGreaterThan(0);\n\n      const content = String(result.messages[0].content);\n      expect(content).toContain('$2.5M');\n      expect(content).toContain('Dr. Sarah Chen');\n    }, 30000);\n\n    it('should retrieve and provide security audit details', async () => {\n      if (!shouldRunTests()) return;\n\n      const result = await graph.invoke({\n        messages: [],\n        query:\n          'How many security vulnerabilities were found in Q1 2024 and who implemented the fixes?',\n      });\n\n      expect(result.messages).toHaveLength(1);\n      expect(result.documents).toBeDefined();\n      expect(result.documents.length).toBeGreaterThan(0);\n\n      const content = String(result.messages[0].content);\n      expect(content).toContain('17 low-priority');\n      expect(content).toContain('3 medium-priority');\n      expect(content).toContain('Michael Rodriguez');\n    }, 30000);\n\n    it('should handle questions without relevant context gracefully', async () => {\n      if (!shouldRunTests()) return;\n\n      const result = await graph.invoke({\n        messages: [],\n        query: 'What were the Q2 2024 security audit results?',\n      });\n\n      expect(result.messages).toHaveLength(1);\n      const content = String(result.messages[0].content);\n      expect(content.toLowerCase()).toMatch(\n        /(cannot|don't|not|sorry) (find|have|know|answer)/i,\n      );\n    }, 30000);\n  });\n\n  describe('Error Cases', () => {\n    it('should handle malformed queries gracefully', async () => {\n      if (!shouldRunTests()) return;\n\n      const result = await graph.invoke({\n        messages: [],\n        query: '   ',\n      });\n\n      expect(result.messages).toHaveLength(1);\n      const content = String(result.messages[0].content);\n      expect(content).toBeTruthy();\n    }, 30000);\n  });\n\n  describe('Message History', () => {\n    it('should preserve human messages in the conversation history', async () => {\n      if (!shouldRunTests()) return;\n\n      // First query\n      const result1 = await graph.invoke({\n        messages: [],\n        query: 'What is the budget for Project XYZ-123?',\n      });\n\n      // Second query should include history from first query\n      const result2 = await graph.invoke({\n        messages: result1.messages,\n        query: 'Who is the project lead?',\n      });\n\n      // Verify message history structure\n      expect(result2.messages.length).toBeGreaterThan(1);\n\n      // Find human messages in the history\n      const humanMessages = result2.messages.filter(\n        (msg) => msg instanceof HumanMessage,\n      );\n      const aiMessages = result2.messages.filter(\n        (msg) => !(msg instanceof HumanMessage),\n      );\n\n      // Verify we have both human and AI messages\n      expect(humanMessages.length).toBeGreaterThan(0);\n      expect(aiMessages.length).toBeGreaterThan(0);\n\n      // Verify the order - each human message should be followed by an AI message\n      result2.messages.forEach((msg, index) => {\n        if (\n          msg instanceof HumanMessage &&\n          index < result2.messages.length - 1\n        ) {\n          expect(result2.messages[index + 1] instanceof HumanMessage).toBe(\n            false,\n          );\n        }\n      });\n\n      // Verify content of messages\n      expect(String(humanMessages[0].content)).toContain('budget');\n      expect(String(humanMessages[1].content)).toContain('project lead');\n    }, 30000);\n  });\n});\n"
  },
  {
    "path": "backend/__tests__/retrieval_graph/promptTemplate.test.ts",
    "content": "import {\n  ROUTER_SYSTEM_PROMPT,\n  RESPONSE_SYSTEM_PROMPT,\n} from '../../src/retrieval_graph/prompts.js';\n\ndescribe('Prompt Templates', () => {\n  describe('ROUTER_SYSTEM_PROMPT', () => {\n    it('should format the router prompt correctly', async () => {\n      const query = 'What is the capital of France?';\n      const formattedPrompt = await ROUTER_SYSTEM_PROMPT.invoke({\n        query,\n      });\n\n      expect(formattedPrompt.toString()).toContain(\n        'You are a routing assistant',\n      );\n      expect(formattedPrompt.toString()).toContain(query);\n      expect(formattedPrompt.toString()).toContain(\"'retrieve'\");\n      expect(formattedPrompt.toString()).toContain(\"'direct'\");\n    });\n  });\n\n  describe('RESPONSE_SYSTEM_PROMPT', () => {\n    it('should format the response prompt correctly', async () => {\n      const context = 'Paris is the capital of France.';\n      const question = 'Tell me about the capital of France.';\n\n      const formattedPrompt = await RESPONSE_SYSTEM_PROMPT.invoke({\n        context: 'Paris is the capital of France.',\n        question: 'Tell me about the capital of France.',\n      });\n\n      console.log(formattedPrompt.toString());\n\n      expect(formattedPrompt.toString()).toContain(\n        'You are an assistant for question-answering tasks',\n      );\n      expect(formattedPrompt.toString()).toContain(context);\n      expect(formattedPrompt.toString()).toContain(question);\n    });\n  });\n});\n"
  },
  {
    "path": "backend/demo.ts",
    "content": "import { Client } from '@langchain/langgraph-sdk';\nimport { graph } from './src/retrieval_graph/graph.js';\nimport dotenv from 'dotenv';\n\n// Load environment variables from .env file\ndotenv.config();\n\n// Environment variables needed:\n// LANGGRAPH_API_URL: The URL where your LangGraph server is running\n//   - For local development: http://localhost:2024 (or your local server port)\n//   - For LangSmith cloud: https://api.smith.langchain.com\n//\n\nconst assistant_id = 'retrieval_graph';\nasync function runDemo() {\n  // Initialize the LangGraph client\n  const client = new Client({\n    apiUrl: process.env.LANGGRAPH_API_URL || 'http://localhost:2024',\n  });\n\n  // Create a new thread for this conversation\n  console.log('Creating new thread...');\n  const thread = await client.threads.create({\n    metadata: {\n      demo: 'retrieval-graph',\n    },\n  });\n  console.log('Thread created with ID:', thread.thread_id);\n\n  // Example question\n  const question = 'What is this document about?';\n\n  console.log('\\n=== Streaming Example ===');\n  console.log('Question:', question);\n\n  // Run the graph with streaming\n  try {\n    console.log('\\nStarting stream...');\n    const stream = await client.runs.stream(thread.thread_id, assistant_id, {\n      input: { query: question },\n      streamMode: ['values', 'messages', 'updates'], // Include all stream types\n    });\n\n    // Process the stream chunks\n    console.log('\\nWaiting for stream chunks...');\n    for await (const chunk of stream) {\n      console.log('\\nReceived chunk:');\n      //   console.log('Event type:', chunk.event);\n      if (chunk.event === 'values') {\n        // console.log('Values data:', JSON.stringify(chunk.data, null, 2));\n      } else if (chunk.event === 'messages/partial') {\n        // console.log('Messages data:', JSON.stringify(chunk, null, 2));\n      } else if (chunk.event === 'updates') {\n        console.log('Update data:', JSON.stringify(chunk.data, null, 2));\n      }\n    }\n    console.log('\\nStream completed.');\n\n    const messagesStream = await client.runs.stream(\n      thread.thread_id,\n      assistant_id,\n      {\n        input: { query: question },\n        streamMode: 'updates', // Include all stream types\n      },\n    );\n\n    for await (const chunk of messagesStream) {\n      console.log('\\nReceived chunk:');\n      console.log('Event type:', chunk.event);\n      console.log('updates data:', JSON.stringify(chunk.data, null, 2));\n    }\n  } catch (error) {\n    console.error('Error in streaming run:', error);\n    // Log more details about the error\n    if (error instanceof Error) {\n      console.error('Error message:', error.message);\n      console.error('Error stack:', error.stack);\n    }\n  }\n}\n\n// Run the demo\nrunDemo().catch((error) => {\n  console.error('Fatal error:', error);\n  process.exit(1);\n});\n"
  },
  {
    "path": "backend/ingest-demo.ipynb",
    "content": "{\n \"cells\": [\n  {\n   \"cell_type\": \"code\",\n   \"execution_count\": 4,\n   \"metadata\": {},\n   \"outputs\": [],\n   \"source\": [\n    \"import { SupabaseVectorStore } from \\\"@langchain/community/vectorstores/supabase\\\";\\n\",\n    \"import { OpenAIEmbeddings } from \\\"@langchain/openai\\\";\\n\",\n    \"import { createClient } from \\\"@supabase/supabase-js\\\";\\n\",\n    \"import dotenv from \\\"dotenv\\\";\\n\",\n    \"dotenv.config();\\n\",\n    \"\\n\",\n    \"const embeddings = new OpenAIEmbeddings({\\n\",\n    \"    model: \\\"text-embedding-3-small\\\",\\n\",\n    \"  });\\n\",\n    \"\\n\",\n    \"  const supabaseClient = createClient(\\n\",\n    \"    process.env.SUPABASE_URL ?? '',\\n\",\n    \"    process.env.SUPABASE_SERVICE_ROLE_KEY ?? '',\\n\",\n    \"  );\\n\",\n    \"  const vectorStore = new SupabaseVectorStore(embeddings, {\\n\",\n    \"    client: supabaseClient,\\n\",\n    \"    tableName: 'documents',\\n\",\n    \"    queryName: 'match_documents',\\n\",\n    \"  });\\n\",\n    \"\\n\"\n   ]\n  },\n  {\n   \"cell_type\": \"code\",\n   \"execution_count\": 5,\n   \"metadata\": {},\n   \"outputs\": [\n    {\n     \"name\": \"stdout\",\n     \"output_type\": \"stream\",\n     \"text\": [\n      \"{\\n\",\n      \"  pageContent: 'UNITED\\\\tSTATES\\\\n' +\\n\",\n      \"    'SECURITIES\\\\tAND\\\\tEXCHANGE\\\\tCOMMISSION\\\\n' +\\n\",\n      \"    'Washington,\\\\tD.C.\\\\t20549\\\\n' +\\n\",\n      \"    'FORM\\\\t10-K\\\\n' +\\n\",\n      \"    '(Mark\\\\tOne)\\\\n' +\\n\",\n      \"    'xANNUAL\\\\tREPORT\\\\tPURSUANT\\\\tTO\\\\tSECTION\\\\t13\\\\tOR\\\\t15(d)\\\\tOF\\\\tTHE\\\\tSECURITIES\\\\tEXCHANGE\\\\tACT\\\\tOF\\\\t1934\\\\n' +\\n\",\n      \"    'For\\\\tthe\\\\tfiscal\\\\tyear\\\\tended\\\\tDecember\\\\t31,\\\\t2023\\\\n' +\\n\",\n      \"    'OR\\\\n' +\\n\",\n      \"    'oTRANSITION\\\\tREPORT\\\\tPURSUANT\\\\tTO\\\\tSECTION\\\\t13\\\\tOR\\\\t15(d)\\\\tOF\\\\tTHE\\\\tSECURITIES\\\\tEXCHANGE\\\\tACT\\\\tOF\\\\t1934\\\\n' +\\n\",\n      \"    'For\\\\tthe\\\\ttransition\\\\tperiod\\\\tfrom\\\\t_________\\\\tto\\\\t_________\\\\n' +\\n\",\n      \"    'Commission\\\\tFile\\\\tNumber:\\\\t001-34756\\\\n' +\\n\",\n      \"    'Tesla,\\\\tInc.\\\\n' +\\n\",\n      \"    '(Exact\\\\tname\\\\tof\\\\tregistrant\\\\tas\\\\tspecified\\\\tin\\\\tits\\\\tcharter)\\\\n' +\\n\",\n      \"    'Delaware91-2197729\\\\n' +\\n\",\n      \"    '(State\\\\tor\\\\tother\\\\tjurisdiction\\\\tof\\\\n' +\\n\",\n      \"    'incorporation\\\\tor\\\\torganization)\\\\n' +\\n\",\n      \"    '(I.R.S.\\\\tEmployer\\\\n' +\\n\",\n      \"    'Identification\\\\tNo.)\\\\n' +\\n\",\n      \"    '1\\\\tTesla\\\\tRoad\\\\n' +\\n\",\n      \"    'Austin,\\\\tTexas78725\\\\n' +\\n\",\n      \"    '(Address\\\\tof\\\\tprincipal\\\\texecutive\\\\toffices)(Zip\\\\tCode)\\\\n' +\\n\",\n      \"    '(512)\\\\t516-8177\\\\n' +\\n\",\n      \"    '(Registrant’s\\\\ttelephone\\\\tnumber,\\\\tincluding\\\\tarea\\\\tcode)\\\\n' +\\n\",\n      \"    'Securities\\\\tregistered\\\\tpursuant\\\\tto\\\\tSection\\\\t12(b)\\\\tof\\\\tthe\\\\tAct:\\\\n' +\\n\",\n      \"    'Title\\\\tof\\\\teach\\\\tclassTrading\\\\tSymbol(s)Name\\\\tof\\\\teach\\\\texchange\\\\ton\\\\twhich\\\\tregistered\\\\n' +\\n\",\n      \"    'Common\\\\tstockTSLAThe\\\\tNasdaq\\\\tGlobal\\\\tSelect\\\\tMarket\\\\n' +\\n\",\n      \"    'Securities\\\\tregistered\\\\tpursuant\\\\tto\\\\tSection\\\\t12(g)\\\\tof\\\\tthe\\\\tAct:\\\\n' +\\n\",\n      \"    'None\\\\n' +\\n\",\n      \"    'Indicate\\\\tby\\\\tcheck\\\\tmark\\\\twhether\\\\tthe\\\\tregistrant\\\\tis\\\\ta\\\\twell-known\\\\tseasoned\\\\tissuer,\\\\tas\\\\tdefined\\\\tin\\\\tRule\\\\t405\\\\tof\\\\tthe\\\\tSecurities\\\\tAct.\\\\tYes\\\\tx\\\\tNo\\\\to\\\\n' +\\n\",\n      \"    'Indicate\\\\tby\\\\tcheck\\\\tmark\\\\tif\\\\tthe\\\\tregistrant\\\\tis\\\\tnot\\\\trequired\\\\tto\\\\tfile\\\\treports\\\\tpursuant\\\\tto\\\\tSection\\\\t13\\\\tor\\\\t15(d)\\\\tof\\\\tthe\\\\tAct.\\\\tYes\\\\to\\\\tNo\\\\tx\\\\n' +\\n\",\n      \"    'Indicate\\\\tby\\\\tcheck\\\\tmark\\\\twhether\\\\tthe\\\\tregistrant\\\\t(1)\\\\thas\\\\tfiled\\\\tall\\\\treports\\\\trequired\\\\tto\\\\tbe\\\\tfiled\\\\tby\\\\tSection\\\\t13\\\\tor\\\\t15(d)\\\\tof\\\\tthe\\\\tSecurities\\\\tExchange\\\\tAct\\\\tof\\\\t1934\\\\t(“Exchange\\\\tAct”)\\\\n' +\\n\",\n      \"    'during\\\\tthe\\\\tpreceding\\\\t12\\\\tmonths\\\\t(or\\\\tfor\\\\tsuch\\\\tshorter\\\\tperiod\\\\tthat\\\\tthe\\\\tregistrant\\\\twas\\\\trequired\\\\tto\\\\tfile\\\\tsuch\\\\treports),\\\\tand\\\\t(2)\\\\thas\\\\tbeen\\\\tsubject\\\\tto\\\\tsuch\\\\tfiling\\\\trequirements\\\\tfor\\\\tthe\\\\tpast\\\\t90\\\\n' +\\n\",\n      \"    'days.\\\\tYes\\\\tx\\\\tNo\\\\to\\\\n' +\\n\",\n      \"    'Indicate\\\\tby\\\\tcheck\\\\tmark\\\\twhether\\\\tthe\\\\tregistrant\\\\thas\\\\tsubmitted\\\\telectronically\\\\tevery\\\\tInteractive\\\\tData\\\\tFile\\\\trequired\\\\tto\\\\tbe\\\\tsubmitted\\\\tpursuant\\\\tto\\\\tRule\\\\t405\\\\tof\\\\tRegulation\\\\tS-T\\\\n' +\\n\",\n      \"    '(§232.405\\\\tof\\\\tthis\\\\tchapter)\\\\tduring\\\\tthe\\\\tpreceding\\\\t12\\\\tmonths\\\\t(or\\\\tfor\\\\tsuch\\\\tshorter\\\\tperiod\\\\tthat\\\\tthe\\\\tregistrant\\\\twas\\\\trequired\\\\tto\\\\tsubmit\\\\tsuch\\\\tfiles).\\\\tYes\\\\tx\\\\tNo\\\\to',\\n\",\n      \"  metadata: {\\n\",\n      \"    source: './test_docs/test-tsla-10k-2023.pdf',\\n\",\n      \"    pdf: {\\n\",\n      \"      version: '1.10.100',\\n\",\n      \"      info: [Object],\\n\",\n      \"      metadata: null,\\n\",\n      \"      totalPages: 130\\n\",\n      \"    },\\n\",\n      \"    loc: { pageNumber: 1, lines: [Object] },\\n\",\n      \"    uuid: 'f96c76fd-d49a-476e-8565-29bbe5d60101'\\n\",\n      \"  },\\n\",\n      \"  id: 'f96c76fd-d49a-476e-8565-29bbe5d60101'\\n\",\n      \"}\\n\"\n     ]\n    }\n   ],\n   \"source\": [\n    \"import { PDFLoader } from \\\"@langchain/community/document_loaders/fs/pdf\\\";\\n\",\n    \"import { RecursiveCharacterTextSplitter } from \\\"@langchain/textsplitters\\\";\\n\",\n    \"import { writeFile } from \\\"fs/promises\\\";\\n\",\n    \"import { reduceDocs } from \\\"./src/shared/state.js\\\";\\n\",\n    \"\\n\",\n    \"const pdfPath = \\\"./test_docs/test-tsla-10k-2023.pdf\\\"\\n\",\n    \"\\n\",\n    \"const loader = new PDFLoader(pdfPath);\\n\",\n    \"\\n\",\n    \"const docs = await loader.load();\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"const textSplitter = new RecursiveCharacterTextSplitter({\\n\",\n    \"    chunkSize: 2000,\\n\",\n    \"    chunkOverlap: 50,\\n\",\n    \"  });\\n\",\n    \"const docSplits = await textSplitter.splitDocuments(docs);\\n\",\n    \"\\n\",\n    \"const finalDocs = reduceDocs([], docSplits);\\n\",\n    \"\\n\",\n    \"  \\n\",\n    \"finalDocs[0]\\n\",\n    \"\\n\"\n   ]\n  },\n  {\n   \"cell_type\": \"code\",\n   \"execution_count\": 13,\n   \"metadata\": {},\n   \"outputs\": [\n    {\n     \"name\": \"stdout\",\n     \"output_type\": \"stream\",\n     \"text\": [\n      \"[\\n\",\n      \"  'f96c76fd-d49a-476e-8565-29bbe5d60101',\\n\",\n      \"  'cf036396-4b2b-46fb-9ca4-20bbd6a3947e',\\n\",\n      \"  'f725b551-cdad-4b17-9681-6c7ac07742aa',\\n\",\n      \"  '950dc7ea-3040-4e32-926f-3d2ad76598ba',\\n\",\n      \"  'd756834a-3b9c-4ac4-90f2-5a5bb9a88b89',\\n\",\n      \"  '15dcb874-9a11-414c-a612-4ba9ac78df9b',\\n\",\n      \"  '27c14e27-544b-4e2d-bd30-5271fc1c1945',\\n\",\n      \"  'c087b995-9b3c-43c9-849e-1ffccfa710e0',\\n\",\n      \"  'ac0b84ff-f893-4a95-aaad-c79b9951c32e',\\n\",\n      \"  '2f176e4f-1128-47ee-8803-ee004b725458',\\n\",\n      \"  'b72bf8bd-47be-4392-8781-1fee00cd8028',\\n\",\n      \"  'f87b847c-07e7-4e87-8a73-533028f7d778',\\n\",\n      \"  'a2a571cf-bbec-40b6-a5e7-8a33fd36d1dd',\\n\",\n      \"  '2405ac0e-8041-41e6-b8d2-c695a03a8a9a',\\n\",\n      \"  '157becfc-79c8-43f6-941b-df7e62a51811',\\n\",\n      \"  '79d2e706-1212-4a89-85f6-ff117f8a43cc',\\n\",\n      \"  '97353508-c3d5-4c16-9b13-ab792aabd89b',\\n\",\n      \"  'c63472f4-bd4d-4469-96a5-8eb01cd5fad2',\\n\",\n      \"  '0f221405-317e-4c2a-ac61-7ad049a3bcf4',\\n\",\n      \"  'de3767fe-d129-4218-b062-4b3c689797a6',\\n\",\n      \"  'ba25d45b-6d25-467e-bf25-0106088d9da8',\\n\",\n      \"  '4a391f87-1ccb-4f66-8cc8-d7a7f98c1455',\\n\",\n      \"  '844ef3dc-9281-4912-9ddb-52260891237d',\\n\",\n      \"  'c9b88bc9-6711-4c1d-a44d-878f3c9567d3',\\n\",\n      \"  'cff9d8f9-0037-4666-a9a6-bbdce8ec6281',\\n\",\n      \"  'a59d30c4-4ff6-4ade-b7b7-72130510fdc2',\\n\",\n      \"  '8189a997-b7db-412c-a24a-d2ad899996c3',\\n\",\n      \"  '3b84ebcb-83ff-4c28-a820-ba220b1182e0',\\n\",\n      \"  'cee3e54f-28da-44ba-8e89-3e7190da9c4d',\\n\",\n      \"  '7b8c2bfd-4e60-4dc0-9925-d91f12687bb9',\\n\",\n      \"  '6ee122b7-711c-41b3-8cff-c91c937521fb',\\n\",\n      \"  '90cfc70d-ed91-40df-a950-6156b58a958d',\\n\",\n      \"  'f65b5f7c-6188-4fbc-97a3-fe4a9a0195ef',\\n\",\n      \"  '93838d7f-cbc1-49c0-b1c3-7346890a33c6',\\n\",\n      \"  '4a151e15-2168-4c82-9328-ec9b38d74a33',\\n\",\n      \"  '468454c2-3de2-4fb9-94d4-0401bd6bbe5a',\\n\",\n      \"  '9ec60200-82d7-4be9-ac08-0b23ec063bbd',\\n\",\n      \"  'c14d0c79-9fcf-4881-97b9-28a26909623b',\\n\",\n      \"  '5dd44111-2198-4450-a775-a127f1871113',\\n\",\n      \"  '893ebdd6-03c4-4bb0-804c-6450c878a9ea',\\n\",\n      \"  '31a4d42a-7754-4577-8ba3-0a3f8211de83',\\n\",\n      \"  '77d5342d-4ba5-456b-8847-f4035db744fc',\\n\",\n      \"  '99b1d564-b7c2-4ca1-9ffc-32a166750e79',\\n\",\n      \"  'b42d8825-beb6-408d-a52a-ee173c0145e1',\\n\",\n      \"  'f8c0c005-4d91-46f7-b814-9b4b13899e30',\\n\",\n      \"  '6ba1713f-edc4-42bd-860b-96919be6571d',\\n\",\n      \"  'aa5bc2b5-4f0a-4c22-9612-998c5cd69bb1',\\n\",\n      \"  '91b91359-d140-458e-8fab-83ee5453a790',\\n\",\n      \"  '9f0bf3da-5c8e-45aa-bc48-3d4e61c3ebdb',\\n\",\n      \"  '1be204e4-70b0-47fc-b21e-7224eab69a75',\\n\",\n      \"  'be8393f0-ca5f-45c9-b1d7-986a303d0369',\\n\",\n      \"  '89be8879-eb8b-46a6-82e2-e51792f681b9',\\n\",\n      \"  '2522017c-9477-472d-8108-d76459ba8aa7',\\n\",\n      \"  'a691255f-4a4c-48ec-a3a3-80aba6c18c79',\\n\",\n      \"  'd2fb69aa-4717-445f-92cb-508218940968',\\n\",\n      \"  'db3123f4-4123-46b9-b9f4-0e6e1fa7e3c3',\\n\",\n      \"  '40f718e8-6881-4bb9-9d39-13aab528056d',\\n\",\n      \"  'a5dbff0a-3b09-4d12-b8ad-654bce0f5dee',\\n\",\n      \"  '6aea630d-a505-49cf-8d10-8174bd4faa15',\\n\",\n      \"  '496d2ee5-ab26-46b4-8b9d-7acc9ea36075',\\n\",\n      \"  'd34e623c-072f-49d3-9e94-4b70fcda51b2',\\n\",\n      \"  '18e26f1c-e144-4777-8f5f-776de83fb3be',\\n\",\n      \"  '938c7da4-2359-488e-89b8-fb4be3ce5b01',\\n\",\n      \"  'e6ebe707-26b2-4b18-91cc-a4a331217b2a',\\n\",\n      \"  'b025fdeb-35b7-46cc-85d1-3ec4ca0caddc',\\n\",\n      \"  'ddead230-69b3-410d-9eea-e89545dfff25',\\n\",\n      \"  'fb934adb-735c-4fed-a052-d896ddd437bf',\\n\",\n      \"  'ae420132-f438-4ff4-b992-3a3ccb69a5ef',\\n\",\n      \"  '38784dc9-ecdd-4759-97a8-4ee22aca4634',\\n\",\n      \"  '9d56a989-f2d2-4ad5-9e49-1898dd6e75f2',\\n\",\n      \"  '18400d6c-ab86-4f50-86aa-4b234b62f009',\\n\",\n      \"  'a4494df8-bfd6-44c6-b8b2-b81ff61a74fe',\\n\",\n      \"  'f8f51316-2feb-4b31-9e46-4689bf46787c',\\n\",\n      \"  'df12bf50-6dd4-492b-9c18-0e2e4841a4a4',\\n\",\n      \"  '34ceec9a-0016-43c0-8c55-7fcfe4495a8b',\\n\",\n      \"  'bbf9a474-4f3a-4abf-9342-699d2e9fe409',\\n\",\n      \"  '4f6ea7fc-2786-45f1-a4d2-7ecfbd36582a',\\n\",\n      \"  '71767cfe-8200-4971-820b-73129cdc9545',\\n\",\n      \"  '202e0e63-e8a5-4f7d-8484-4d46aad50d7f',\\n\",\n      \"  'bd131dd5-5d7b-45b1-9799-1ffb62d98797',\\n\",\n      \"  '1feb01f4-846c-494d-a6b8-5f4537fca483',\\n\",\n      \"  'a2c43dbe-dd5a-49eb-9cf6-38746b7d1f5c',\\n\",\n      \"  'd8c2ffce-9430-4a0b-8693-1aacca4182dd',\\n\",\n      \"  '315485dc-3489-4d76-872e-265b70a48bed',\\n\",\n      \"  '6068a764-8f01-4cbd-97f5-53350c8a05a0',\\n\",\n      \"  'c6f489c6-e661-4dd0-a648-94876c401f76',\\n\",\n      \"  'b807e746-b164-4d77-9920-add981023992',\\n\",\n      \"  'f326c9c3-fec6-4261-aad3-ca1e6c24e3e0',\\n\",\n      \"  '4c03255a-7007-4b62-89f9-7102969d292b',\\n\",\n      \"  '771daa63-07ad-4342-b1e8-8ea7236b5e03',\\n\",\n      \"  '0dc20776-a46a-49cf-a85e-9d76fd294360',\\n\",\n      \"  'd6270cad-f2c1-4832-84dd-af0d4b757226',\\n\",\n      \"  '1d105310-5247-4bf1-8594-c8f32b2d1b7e',\\n\",\n      \"  'bc5e8845-9e7e-4c4d-be6f-46eda519185d',\\n\",\n      \"  'fd844e2f-d433-46c2-87d6-b3c64535a8a2',\\n\",\n      \"  '7381ceeb-a2b0-4ff9-b72f-3cbf8f1641b8',\\n\",\n      \"  '52751f69-2718-4306-b7ec-57a142906aa2',\\n\",\n      \"  '2772db49-0b98-4c5d-9814-82c5b7439271',\\n\",\n      \"  'a622b09e-03bd-4a18-a927-5c52dfb9293e',\\n\",\n      \"  '06e6b02a-6967-44d3-aa7f-13cec5746ab3',\\n\",\n      \"  ... 193 more items\\n\",\n      \"]\\n\"\n     ]\n    }\n   ],\n   \"source\": [\n    \"const documentIds = finalDocs.map((doc) => doc.id);\\n\",\n    \"await vectorStore.addDocuments(finalDocs, {ids: documentIds});\\n\",\n    \"  \"\n   ]\n  },\n  {\n   \"cell_type\": \"code\",\n   \"execution_count\": 14,\n   \"metadata\": {},\n   \"outputs\": [\n    {\n     \"name\": \"stdout\",\n     \"output_type\": \"stream\",\n     \"text\": [\n      \"{\\n\",\n      \"  error: null,\\n\",\n      \"  data: [\\n\",\n      \"    { id: 'f96c76fd-d49a-476e-8565-29bbe5d60101' },\\n\",\n      \"    { id: 'cf036396-4b2b-46fb-9ca4-20bbd6a3947e' },\\n\",\n      \"    { id: 'f725b551-cdad-4b17-9681-6c7ac07742aa' },\\n\",\n      \"    { id: '950dc7ea-3040-4e32-926f-3d2ad76598ba' },\\n\",\n      \"    { id: 'd756834a-3b9c-4ac4-90f2-5a5bb9a88b89' },\\n\",\n      \"    { id: '15dcb874-9a11-414c-a612-4ba9ac78df9b' },\\n\",\n      \"    { id: '27c14e27-544b-4e2d-bd30-5271fc1c1945' },\\n\",\n      \"    { id: 'c087b995-9b3c-43c9-849e-1ffccfa710e0' },\\n\",\n      \"    { id: 'ac0b84ff-f893-4a95-aaad-c79b9951c32e' },\\n\",\n      \"    { id: '2f176e4f-1128-47ee-8803-ee004b725458' },\\n\",\n      \"    { id: 'b72bf8bd-47be-4392-8781-1fee00cd8028' },\\n\",\n      \"    { id: 'f87b847c-07e7-4e87-8a73-533028f7d778' },\\n\",\n      \"    { id: 'a2a571cf-bbec-40b6-a5e7-8a33fd36d1dd' },\\n\",\n      \"    { id: '2405ac0e-8041-41e6-b8d2-c695a03a8a9a' },\\n\",\n      \"    { id: '157becfc-79c8-43f6-941b-df7e62a51811' },\\n\",\n      \"    { id: '79d2e706-1212-4a89-85f6-ff117f8a43cc' },\\n\",\n      \"    { id: '97353508-c3d5-4c16-9b13-ab792aabd89b' },\\n\",\n      \"    { id: 'a59d30c4-4ff6-4ade-b7b7-72130510fdc2' },\\n\",\n      \"    { id: 'c63472f4-bd4d-4469-96a5-8eb01cd5fad2' },\\n\",\n      \"    { id: '0f221405-317e-4c2a-ac61-7ad049a3bcf4' },\\n\",\n      \"    { id: 'de3767fe-d129-4218-b062-4b3c689797a6' },\\n\",\n      \"    { id: 'ba25d45b-6d25-467e-bf25-0106088d9da8' },\\n\",\n      \"    { id: '755a56bf-ba20-4fc6-885b-97b1f1389cca' },\\n\",\n      \"    { id: '4a391f87-1ccb-4f66-8cc8-d7a7f98c1455' },\\n\",\n      \"    { id: '844ef3dc-9281-4912-9ddb-52260891237d' },\\n\",\n      \"    { id: 'c9b88bc9-6711-4c1d-a44d-878f3c9567d3' },\\n\",\n      \"    { id: 'cff9d8f9-0037-4666-a9a6-bbdce8ec6281' },\\n\",\n      \"    { id: '5c1ca925-732a-4eb1-b89e-222149802725' },\\n\",\n      \"    { id: '8189a997-b7db-412c-a24a-d2ad899996c3' },\\n\",\n      \"    { id: '3b84ebcb-83ff-4c28-a820-ba220b1182e0' },\\n\",\n      \"    { id: 'cee3e54f-28da-44ba-8e89-3e7190da9c4d' },\\n\",\n      \"    { id: '7b8c2bfd-4e60-4dc0-9925-d91f12687bb9' },\\n\",\n      \"    { id: '6ee122b7-711c-41b3-8cff-c91c937521fb' },\\n\",\n      \"    { id: '90cfc70d-ed91-40df-a950-6156b58a958d' },\\n\",\n      \"    { id: 'f65b5f7c-6188-4fbc-97a3-fe4a9a0195ef' },\\n\",\n      \"    { id: '93838d7f-cbc1-49c0-b1c3-7346890a33c6' },\\n\",\n      \"    { id: '4a151e15-2168-4c82-9328-ec9b38d74a33' },\\n\",\n      \"    { id: '468454c2-3de2-4fb9-94d4-0401bd6bbe5a' },\\n\",\n      \"    { id: '01bdc318-486d-4fc3-9494-54e89528b837' },\\n\",\n      \"    { id: '9ec60200-82d7-4be9-ac08-0b23ec063bbd' },\\n\",\n      \"    { id: 'c14d0c79-9fcf-4881-97b9-28a26909623b' },\\n\",\n      \"    { id: '5dd44111-2198-4450-a775-a127f1871113' },\\n\",\n      \"    { id: '893ebdd6-03c4-4bb0-804c-6450c878a9ea' },\\n\",\n      \"    { id: '31a4d42a-7754-4577-8ba3-0a3f8211de83' },\\n\",\n      \"    { id: '77d5342d-4ba5-456b-8847-f4035db744fc' },\\n\",\n      \"    { id: '99b1d564-b7c2-4ca1-9ffc-32a166750e79' },\\n\",\n      \"    { id: 'b42d8825-beb6-408d-a52a-ee173c0145e1' },\\n\",\n      \"    { id: '18e26f1c-e144-4777-8f5f-776de83fb3be' },\\n\",\n      \"    { id: 'f8c0c005-4d91-46f7-b814-9b4b13899e30' },\\n\",\n      \"    { id: '6ba1713f-edc4-42bd-860b-96919be6571d' },\\n\",\n      \"    { id: 'aa5bc2b5-4f0a-4c22-9612-998c5cd69bb1' },\\n\",\n      \"    { id: '91b91359-d140-458e-8fab-83ee5453a790' },\\n\",\n      \"    { id: 'bbf9a474-4f3a-4abf-9342-699d2e9fe409' },\\n\",\n      \"    { id: '9f0bf3da-5c8e-45aa-bc48-3d4e61c3ebdb' },\\n\",\n      \"    { id: '1be204e4-70b0-47fc-b21e-7224eab69a75' },\\n\",\n      \"    { id: 'be8393f0-ca5f-45c9-b1d7-986a303d0369' },\\n\",\n      \"    { id: '89be8879-eb8b-46a6-82e2-e51792f681b9' },\\n\",\n      \"    { id: '6068a764-8f01-4cbd-97f5-53350c8a05a0' },\\n\",\n      \"    { id: '2522017c-9477-472d-8108-d76459ba8aa7' },\\n\",\n      \"    { id: 'a691255f-4a4c-48ec-a3a3-80aba6c18c79' },\\n\",\n      \"    { id: 'd2fb69aa-4717-445f-92cb-508218940968' },\\n\",\n      \"    { id: 'db3123f4-4123-46b9-b9f4-0e6e1fa7e3c3' },\\n\",\n      \"    { id: '40f718e8-6881-4bb9-9d39-13aab528056d' },\\n\",\n      \"    { id: 'a5dbff0a-3b09-4d12-b8ad-654bce0f5dee' },\\n\",\n      \"    { id: '6aea630d-a505-49cf-8d10-8174bd4faa15' },\\n\",\n      \"    { id: '496d2ee5-ab26-46b4-8b9d-7acc9ea36075' },\\n\",\n      \"    { id: 'd34e623c-072f-49d3-9e94-4b70fcda51b2' },\\n\",\n      \"    { id: '938c7da4-2359-488e-89b8-fb4be3ce5b01' },\\n\",\n      \"    { id: 'e6ebe707-26b2-4b18-91cc-a4a331217b2a' },\\n\",\n      \"    { id: 'b025fdeb-35b7-46cc-85d1-3ec4ca0caddc' },\\n\",\n      \"    { id: 'ddead230-69b3-410d-9eea-e89545dfff25' },\\n\",\n      \"    { id: 'e00c5fe1-c425-4bea-9c37-0836c2c6befa' },\\n\",\n      \"    { id: 'fb934adb-735c-4fed-a052-d896ddd437bf' },\\n\",\n      \"    { id: 'ae420132-f438-4ff4-b992-3a3ccb69a5ef' },\\n\",\n      \"    { id: '38784dc9-ecdd-4759-97a8-4ee22aca4634' },\\n\",\n      \"    { id: '9d56a989-f2d2-4ad5-9e49-1898dd6e75f2' },\\n\",\n      \"    { id: 'fd844e2f-d433-46c2-87d6-b3c64535a8a2' },\\n\",\n      \"    { id: '18400d6c-ab86-4f50-86aa-4b234b62f009' },\\n\",\n      \"    { id: 'a4494df8-bfd6-44c6-b8b2-b81ff61a74fe' },\\n\",\n      \"    { id: 'f8f51316-2feb-4b31-9e46-4689bf46787c' },\\n\",\n      \"    { id: 'df12bf50-6dd4-492b-9c18-0e2e4841a4a4' },\\n\",\n      \"    { id: '34ceec9a-0016-43c0-8c55-7fcfe4495a8b' },\\n\",\n      \"    { id: '4f6ea7fc-2786-45f1-a4d2-7ecfbd36582a' },\\n\",\n      \"    { id: '71767cfe-8200-4971-820b-73129cdc9545' },\\n\",\n      \"    { id: '202e0e63-e8a5-4f7d-8484-4d46aad50d7f' },\\n\",\n      \"    { id: 'bd131dd5-5d7b-45b1-9799-1ffb62d98797' },\\n\",\n      \"    { id: 'a565e1b0-c95b-4e11-a3d6-c63866c31261' },\\n\",\n      \"    { id: '1feb01f4-846c-494d-a6b8-5f4537fca483' },\\n\",\n      \"    { id: 'a2c43dbe-dd5a-49eb-9cf6-38746b7d1f5c' },\\n\",\n      \"    { id: 'd8c2ffce-9430-4a0b-8693-1aacca4182dd' },\\n\",\n      \"    { id: '315485dc-3489-4d76-872e-265b70a48bed' },\\n\",\n      \"    { id: '4ff4df53-51dd-4735-b7ec-1ad08951e16e' },\\n\",\n      \"    { id: 'c6f489c6-e661-4dd0-a648-94876c401f76' },\\n\",\n      \"    { id: 'b807e746-b164-4d77-9920-add981023992' },\\n\",\n      \"    { id: 'f326c9c3-fec6-4261-aad3-ca1e6c24e3e0' },\\n\",\n      \"    { id: '4c03255a-7007-4b62-89f9-7102969d292b' },\\n\",\n      \"    { id: '771daa63-07ad-4342-b1e8-8ea7236b5e03' },\\n\",\n      \"    { id: '0dc20776-a46a-49cf-a85e-9d76fd294360' },\\n\",\n      \"    { id: 'd6270cad-f2c1-4832-84dd-af0d4b757226' },\\n\",\n      \"    { id: '1d105310-5247-4bf1-8594-c8f32b2d1b7e' },\\n\",\n      \"    ... 193 more items\\n\",\n      \"  ],\\n\",\n      \"  count: 293,\\n\",\n      \"  status: 200,\\n\",\n      \"  statusText: 'OK'\\n\",\n      \"}\\n\"\n     ]\n    }\n   ],\n   \"source\": [\n    \"//count the number of documents in the vector store\\n\",\n    \"\\n\",\n    \"await vectorStore.client.from('documents').select('id', { count: \\n\",\n    \"'exact'});\\n\"\n   ]\n  },\n  {\n   \"cell_type\": \"code\",\n   \"execution_count\": 15,\n   \"metadata\": {},\n   \"outputs\": [\n    {\n     \"name\": \"stdout\",\n     \"output_type\": \"stream\",\n     \"text\": [\n      \"[\\n\",\n      \"  Document {\\n\",\n      \"    pageContent: 'security\\\\tincidents,\\\\twhich\\\\tcould\\\\tresult\\\\tin\\\\tdata\\\\tbreaches,\\\\tintellectual\\\\tproperty\\\\ttheft,\\\\tclaims,\\\\tlitigation,\\\\tregulatory\\\\tinvestigations,\\\\tsignificant\\\\tliability,\\\\n' +\\n\",\n      \"      'reputational\\\\tdamage\\\\tand\\\\tother\\\\tadverse\\\\tconsequences”\\\\tincluded\\\\tas\\\\tpart\\\\tof\\\\tour\\\\trisk\\\\tfactor\\\\tdisclosures\\\\tat\\\\tItem\\\\t1A\\\\tof\\\\tthis\\\\tAnnual\\\\tReport\\\\ton\\\\tForm\\\\t10-K.\\\\n' +\\n\",\n      \"      'Cybersecurity\\\\tGovernance\\\\n' +\\n\",\n      \"      'Cybersecurity\\\\tis\\\\tan\\\\timportant\\\\tpart\\\\tof\\\\tour\\\\trisk\\\\tmanagement\\\\tprocesses\\\\tand\\\\tan\\\\tarea\\\\tof\\\\tfocus\\\\tfor\\\\tour\\\\tBoard\\\\tand\\\\tmanagement.\\\\tOur\\\\tAudit\\\\tCommittee\\\\tis\\\\n' +\\n\",\n      \"      'responsible\\\\tfor\\\\tthe\\\\toversight\\\\tof\\\\trisks\\\\tfrom\\\\tcybersecurity\\\\tthreats.\\\\tMembers\\\\tof\\\\tthe\\\\tAudit\\\\tCommittee\\\\treceive\\\\tupdates\\\\ton\\\\ta\\\\tquarterly\\\\tbasis\\\\tfrom\\\\tsenior\\\\n' +\\n\",\n      \"      'management,\\\\tincluding\\\\tleaders\\\\tfrom\\\\tour\\\\tInformation\\\\tSecurity,\\\\tProduct\\\\tSecurity,\\\\tCompliance\\\\tand\\\\tLegal\\\\tteams\\\\tregarding\\\\tmatters\\\\tof\\\\tcybersecurity.\\\\tThis\\\\n' +\\n\",\n      \"      'includes\\\\texisting\\\\tand\\\\tnew\\\\tcybersecurity\\\\trisks,\\\\tstatus\\\\ton\\\\thow\\\\tmanagement\\\\tis\\\\taddressing\\\\tand/or\\\\tmitigating\\\\tthose\\\\trisks,\\\\tcybersecurity\\\\tand\\\\tdata\\\\tprivacy\\\\n' +\\n\",\n      \"      'incidents\\\\t(if\\\\tany)\\\\tand\\\\tstatus\\\\ton\\\\tkey\\\\tinformation\\\\tsecurity\\\\tinitiatives.\\\\tOur\\\\tBoard\\\\tmembers\\\\talso\\\\tengage\\\\tin\\\\tad\\\\thoc\\\\tconversations\\\\twith\\\\tmanagement\\\\ton\\\\n' +\\n\",\n      \"      'cybersecurity-related\\\\tnews\\\\tevents\\\\tand\\\\tdiscuss\\\\tany\\\\tupdates\\\\tto\\\\tour\\\\tcybersecurity\\\\trisk\\\\tmanagement\\\\tand\\\\tstrategy\\\\tprograms.\\\\n' +\\n\",\n      \"      '29',\\n\",\n      \"    metadata: {\\n\",\n      \"      loc: [Object],\\n\",\n      \"      pdf: [Object],\\n\",\n      \"      uuid: '6068a764-8f01-4cbd-97f5-53350c8a05a0',\\n\",\n      \"      source: './test_docs/test-tsla-10k-2023.pdf'\\n\",\n      \"    },\\n\",\n      \"    id: undefined\\n\",\n      \"  },\\n\",\n      \"  Document {\\n\",\n      \"    pageContent: 'Risks\\\\tRelated\\\\tto\\\\tOur\\\\tAbility\\\\tto\\\\tGrow\\\\tOur\\\\tBusiness\\\\n' +\\n\",\n      \"      'We\\\\tmay\\\\texperience\\\\tdelays\\\\tin\\\\tlaunching\\\\tand\\\\tramping\\\\tthe\\\\tproduction\\\\tof\\\\tour\\\\tproducts\\\\tand\\\\tfeatures,\\\\tor\\\\twe\\\\tmay\\\\tbe\\\\tunable\\\\tto\\\\tcontrol\\\\n' +\\n\",\n      \"      'our\\\\tmanufacturing\\\\tcosts.\\\\n' +\\n\",\n      \"      'We\\\\thave\\\\tpreviously\\\\texperienced\\\\tand\\\\tmay\\\\tin\\\\tthe\\\\tfuture\\\\texperience\\\\tlaunch\\\\tand\\\\tproduction\\\\tramp\\\\tdelays\\\\tfor\\\\tnew\\\\tproducts\\\\tand\\\\tfeatures.\\\\tFor\\\\texample,\\\\n' +\\n\",\n      \"      'we\\\\tencountered\\\\tunanticipated\\\\tsupplier\\\\tissues\\\\tthat\\\\tled\\\\tto\\\\tdelays\\\\tduring\\\\tthe\\\\tinitial\\\\tramp\\\\tof\\\\tour\\\\tfirst\\\\tModel\\\\tX\\\\tand\\\\texperienced\\\\tchallenges\\\\twith\\\\ta\\\\tsupplier\\\\tand\\\\n' +\\n\",\n      \"      'with\\\\tramping\\\\tfull\\\\tautomation\\\\tfor\\\\tcertain\\\\tof\\\\tour\\\\tinitial\\\\tModel\\\\t3\\\\tmanufacturing\\\\tprocesses.\\\\tIn\\\\taddition,\\\\twe\\\\tmay\\\\tintroduce\\\\tin\\\\tthe\\\\tfuture\\\\tnew\\\\tor\\\\tunique\\\\n' +\\n\",\n      \"      'manufacturing\\\\tprocesses\\\\tand\\\\tdesign\\\\tfeatures\\\\tfor\\\\tour\\\\tproducts.\\\\tAs\\\\twe\\\\texpand\\\\tour\\\\tvehicle\\\\tofferings\\\\tand\\\\tglobal\\\\tfootprint,\\\\tthere\\\\tis\\\\tno\\\\tguarantee\\\\tthat\\\\twe\\\\twill\\\\n' +\\n\",\n      \"      'be\\\\table\\\\tto\\\\tsuccessfully\\\\tand\\\\ttimely\\\\tintroduce\\\\tand\\\\tscale\\\\tsuch\\\\tprocesses\\\\tor\\\\tfeatures.\\\\n' +\\n\",\n      \"      '14',\\n\",\n      \"    metadata: {\\n\",\n      \"      loc: [Object],\\n\",\n      \"      pdf: [Object],\\n\",\n      \"      uuid: '4a151e15-2168-4c82-9328-ec9b38d74a33',\\n\",\n      \"      source: './test_docs/test-tsla-10k-2023.pdf'\\n\",\n      \"    },\\n\",\n      \"    id: undefined\\n\",\n      \"  },\\n\",\n      \"  Document {\\n\",\n      \"    pageContent: 'Employees\\\\tare\\\\tencouraged\\\\tto\\\\tspeak\\\\tup\\\\tboth\\\\tin\\\\tregard\\\\tto\\\\tmisconduct\\\\tand\\\\tsafety\\\\tconcerns\\\\tand\\\\tcan\\\\tdo\\\\tso\\\\tby\\\\tcontacting\\\\tthe\\\\tintegrity\\\\tline,\\\\tsubmitting\\\\n' +\\n\",\n      \"      'concerns\\\\tthrough\\\\tour\\\\tTake\\\\tCharge\\\\tprocess,\\\\tor\\\\tnotifying\\\\ttheir\\\\tHuman\\\\tResource\\\\tPartner\\\\tor\\\\tany\\\\tmember\\\\tof\\\\tmanagement.\\\\tConcerns\\\\tare\\\\treviewed\\\\tin\\\\n' +\\n\",\n      \"      'accordance\\\\twith\\\\testablished\\\\tprotocols\\\\tby\\\\tinvestigators\\\\twith\\\\texpertise,\\\\twho\\\\talso\\\\treview\\\\tfor\\\\ttrends\\\\tand\\\\toutcomes\\\\tfor\\\\tremediation\\\\tand\\\\tappropriate\\\\tcontrols.\\\\n' +\\n\",\n      \"      'Responding\\\\tto\\\\tquestions\\\\ttimely\\\\tis\\\\tkey\\\\tso\\\\tHuman\\\\tResource\\\\tPartners\\\\tfor\\\\teach\\\\tfunctional\\\\tarea\\\\tare\\\\tvisible\\\\tthroughout\\\\tfacilities\\\\tand\\\\tare\\\\tactively\\\\tinvolved\\\\tin\\\\n' +\\n\",\n      \"      'driving\\\\tculture\\\\tand\\\\tengagement\\\\talongside\\\\tbusiness\\\\tleaders.\\\\n' +\\n\",\n      \"      'Available\\\\tInformation\\\\n' +\\n\",\n      \"      'We\\\\tfile\\\\tor\\\\tfurnish\\\\tperiodic\\\\treports\\\\tand\\\\tamendments\\\\tthereto,\\\\tincluding\\\\tour\\\\tAnnual\\\\tReports\\\\ton\\\\tForm\\\\t10-K,\\\\tour\\\\tQuarterly\\\\tReports\\\\ton\\\\tForm\\\\t10-Q\\\\tand\\\\n' +\\n\",\n      \"      'Current\\\\tReports\\\\ton\\\\tForm\\\\t8-K,\\\\tproxy\\\\tstatements\\\\tand\\\\tother\\\\tinformation\\\\twith\\\\tthe\\\\tSEC.\\\\tIn\\\\taddition,\\\\tthe\\\\tSEC\\\\tmaintains\\\\ta\\\\twebsite\\\\t(www.sec.gov)\\\\tthat\\\\tcontains\\\\n' +\\n\",\n      \"      'reports,\\\\tproxy\\\\tand\\\\tinformation\\\\tstatements,\\\\tand\\\\tother\\\\tinformation\\\\tregarding\\\\tissuers\\\\tthat\\\\tfile\\\\telectronically.\\\\tOur\\\\twebsite\\\\tis\\\\tlocated\\\\tat\\\\twww.tesla.com,\\\\tand\\\\n' +\\n\",\n      \"      'our\\\\treports,\\\\tamendments\\\\tthereto,\\\\tproxy\\\\tstatements\\\\tand\\\\tother\\\\tinformation\\\\tare\\\\talso\\\\tmade\\\\tavailable,\\\\tfree\\\\tof\\\\tcharge,\\\\ton\\\\tour\\\\tinvestor\\\\trelations\\\\twebsite\\\\tat\\\\n' +\\n\",\n      \"      'ir.tesla.com\\\\tas\\\\tsoon\\\\tas\\\\treasonably\\\\tpracticable\\\\tafter\\\\twe\\\\telectronically\\\\tfile\\\\tor\\\\tfurnish\\\\tsuch\\\\tinformation\\\\twith\\\\tthe\\\\tSEC.\\\\tThe\\\\tinformation\\\\tposted\\\\ton\\\\tour\\\\twebsite\\\\n' +\\n\",\n      \"      'is\\\\tnot\\\\tincorporated\\\\tby\\\\treference\\\\tinto\\\\tthis\\\\tAnnual\\\\tReport\\\\ton\\\\tForm\\\\t10-K.\\\\n' +\\n\",\n      \"      'ITEM\\\\t1A.\\\\tRISK\\\\tFACTORS\\\\n' +\\n\",\n      \"      'You\\\\tshould\\\\tcarefully\\\\tconsider\\\\tthe\\\\trisks\\\\tdescribed\\\\tbelow\\\\ttogether\\\\twith\\\\tthe\\\\tother\\\\tinformation\\\\tset\\\\tforth\\\\tin\\\\tthis\\\\treport,\\\\twhich\\\\tcould\\\\tmaterially\\\\taffect\\\\tour\\\\n' +\\n\",\n      \"      'business,\\\\tfinancial\\\\tcondition\\\\tand\\\\tfuture\\\\tresults.\\\\tThe\\\\trisks\\\\tdescribed\\\\tbelow\\\\tare\\\\tnot\\\\tthe\\\\tonly\\\\trisks\\\\tfacing\\\\tour\\\\tcompany.\\\\tRisks\\\\tand\\\\tuncertainties\\\\tnot\\\\tcurrently\\\\n' +\\n\",\n      \"      'known\\\\tto\\\\tus\\\\tor\\\\tthat\\\\twe\\\\tcurrently\\\\tdeem\\\\tto\\\\tbe\\\\timmaterial\\\\talso\\\\tmay\\\\tmaterially\\\\tadversely\\\\taffect\\\\tour\\\\tbusiness,\\\\tfinancial\\\\tcondition\\\\tand\\\\toperating\\\\tresults.',\\n\",\n      \"    metadata: {\\n\",\n      \"      loc: [Object],\\n\",\n      \"      pdf: [Object],\\n\",\n      \"      uuid: '93838d7f-cbc1-49c0-b1c3-7346890a33c6',\\n\",\n      \"      source: './test_docs/test-tsla-10k-2023.pdf'\\n\",\n      \"    },\\n\",\n      \"    id: undefined\\n\",\n      \"  },\\n\",\n      \"  Document {\\n\",\n      \"    pageContent: 'damage,\\\\tinterruptions,\\\\tsystem\\\\tmalfunctions,\\\\tpower\\\\toutages,\\\\tterrorism,\\\\tacts\\\\tof\\\\tvandalism,\\\\tsecurity\\\\tbreaches,\\\\tsecurity\\\\tincidents,\\\\tinadvertent\\\\tor\\\\tintentional\\\\n' +\\n\",\n      \"      'actions\\\\tby\\\\temployees\\\\tor\\\\tother\\\\tthird\\\\tparties,\\\\tand\\\\tother\\\\tcyber-attacks.\\\\n' +\\n\",\n      \"      'To\\\\tthe\\\\textent\\\\tany\\\\tsecurity\\\\tincident\\\\tresults\\\\tin\\\\tunauthorized\\\\taccess\\\\tor\\\\tdamage\\\\tto\\\\tor\\\\tacquisition,\\\\tuse,\\\\tcorruption,\\\\tloss,\\\\tdestruction,\\\\talteration\\\\tor\\\\n' +\\n\",\n      \"      'dissemination\\\\tof\\\\tour\\\\tdata,\\\\tincluding\\\\tintellectual\\\\tproperty\\\\tand\\\\tpersonal\\\\tinformation,\\\\tor\\\\tour\\\\tproducts\\\\tor\\\\tvehicles,\\\\tor\\\\tfor\\\\tit\\\\tto\\\\tbe\\\\tbelieved\\\\tor\\\\treported\\\\tthat\\\\tany\\\\n' +\\n\",\n      \"      'of\\\\tthese\\\\toccurred,\\\\tit\\\\tcould\\\\tdisrupt\\\\tour\\\\tbusiness,\\\\tharm\\\\tour\\\\treputation,\\\\tcompel\\\\tus\\\\tto\\\\tcomply\\\\twith\\\\tapplicable\\\\tdata\\\\tbreach\\\\tnotification\\\\tlaws,\\\\tsubject\\\\tus\\\\tto\\\\ttime\\\\n' +\\n\",\n      \"      'consuming,\\\\tdistracting\\\\tand\\\\texpensive\\\\tlitigation,\\\\tregulatory\\\\tinvestigation\\\\tand\\\\toversight,\\\\tmandatory\\\\tcorrective\\\\taction,\\\\trequire\\\\tus\\\\tto\\\\tverify\\\\tthe\\\\tcorrectness\\\\n' +\\n\",\n      \"      'of\\\\tdatabase\\\\tcontents,\\\\tor\\\\totherwise\\\\tsubject\\\\tus\\\\tto\\\\tliability\\\\tunder\\\\tlaws,\\\\tregulations\\\\tand\\\\tcontractual\\\\tobligations,\\\\tincluding\\\\tthose\\\\tthat\\\\tprotect\\\\tthe\\\\tprivacy\\\\tand\\\\n' +\\n\",\n      \"      'security\\\\tof\\\\tpersonal\\\\tinformation.\\\\tThis\\\\tcould\\\\tresult\\\\tin\\\\tincreased\\\\tcosts\\\\tto\\\\tus\\\\tand\\\\tresult\\\\tin\\\\tsignificant\\\\tlegal\\\\tand\\\\tfinancial\\\\texposure\\\\tand/or\\\\treputational\\\\tharm.\\\\n' +\\n\",\n      \"      'We\\\\talso\\\\trely\\\\ton\\\\tservice\\\\tproviders,\\\\tand\\\\tsimilar\\\\tincidents\\\\trelating\\\\tto\\\\ttheir\\\\tinformation\\\\ttechnology\\\\tsystems\\\\tcould\\\\talso\\\\thave\\\\ta\\\\tmaterial\\\\tadverse\\\\teffect\\\\ton\\\\n' +\\n\",\n      \"      'our\\\\tbusiness.\\\\tThere\\\\thave\\\\tbeen\\\\tand\\\\tmay\\\\tcontinue\\\\tto\\\\tbe\\\\tsignificant\\\\tsupply\\\\tchain\\\\tattacks.\\\\tOur\\\\tservice\\\\tproviders,\\\\tincluding\\\\tour\\\\tworkforce\\\\tmanagement\\\\n' +\\n\",\n      \"      'software\\\\tprovider,\\\\thave\\\\tbeen\\\\tsubject\\\\tto\\\\transomware\\\\tand\\\\tother\\\\tsecurity\\\\tincidents,\\\\tand\\\\twe\\\\tcannot\\\\tguarantee\\\\tthat\\\\tour\\\\tor\\\\tour\\\\tservice\\\\tproviders’\\\\tsystems\\\\n' +\\n\",\n      \"      'have\\\\tnot\\\\tbeen\\\\tbreached\\\\tor\\\\tthat\\\\tthey\\\\tdo\\\\tnot\\\\tcontain\\\\texploitable\\\\tdefects,\\\\tbugs,\\\\tor\\\\tvulnerabilities\\\\tthat\\\\tcould\\\\tresult\\\\tin\\\\ta\\\\tsecurity\\\\tincident,\\\\tor\\\\tother\\\\tdisruption\\\\n' +\\n\",\n      \"      'to,\\\\tour\\\\tor\\\\tour\\\\tservice\\\\tproviders’\\\\tsystems.\\\\tOur\\\\tability\\\\tto\\\\tmonitor\\\\tour\\\\tservice\\\\tproviders’\\\\tsecurity\\\\tmeasures\\\\tis\\\\tlimited,\\\\tand,\\\\tin\\\\tany\\\\tevent,\\\\tmalicious\\\\tthird\\\\n' +\\n\",\n      \"      'parties\\\\tmay\\\\tbe\\\\table\\\\tto\\\\tcircumvent\\\\tthose\\\\tsecurity\\\\tmeasures.',\\n\",\n      \"    metadata: {\\n\",\n      \"      loc: [Object],\\n\",\n      \"      pdf: [Object],\\n\",\n      \"      uuid: '40f718e8-6881-4bb9-9d39-13aab528056d',\\n\",\n      \"      source: './test_docs/test-tsla-10k-2023.pdf'\\n\",\n      \"    },\\n\",\n      \"    id: undefined\\n\",\n      \"  }\\n\",\n      \"]\\n\"\n     ]\n    }\n   ],\n   \"source\": [\n    \"await vectorStore.similaritySearch(\\\"risk factors\\\");\"\n   ]\n  },\n  {\n   \"cell_type\": \"code\",\n   \"execution_count\": 16,\n   \"metadata\": {},\n   \"outputs\": [\n    {\n     \"name\": \"stdout\",\n     \"output_type\": \"stream\",\n     \"text\": [\n      \"AIMessage {\\n\",\n      \"  \\\"id\\\": \\\"chatcmpl-AvntuDz8xFKGEO0DZMK5vBU0xcFZL\\\",\\n\",\n      \"  \\\"content\\\": \\\"The name of the company in the report is Tesla, Inc.\\\",\\n\",\n      \"  \\\"additional_kwargs\\\": {},\\n\",\n      \"  \\\"response_metadata\\\": {\\n\",\n      \"    \\\"tokenUsage\\\": {\\n\",\n      \"      \\\"promptTokens\\\": 1653,\\n\",\n      \"      \\\"completionTokens\\\": 14,\\n\",\n      \"      \\\"totalTokens\\\": 1667\\n\",\n      \"    },\\n\",\n      \"    \\\"finish_reason\\\": \\\"stop\\\",\\n\",\n      \"    \\\"model_name\\\": \\\"gpt-4o-2024-08-06\\\",\\n\",\n      \"    \\\"usage\\\": {\\n\",\n      \"      \\\"prompt_tokens\\\": 1653,\\n\",\n      \"      \\\"completion_tokens\\\": 14,\\n\",\n      \"      \\\"total_tokens\\\": 1667,\\n\",\n      \"      \\\"prompt_tokens_details\\\": {\\n\",\n      \"        \\\"cached_tokens\\\": 0,\\n\",\n      \"        \\\"audio_tokens\\\": 0\\n\",\n      \"      },\\n\",\n      \"      \\\"completion_tokens_details\\\": {\\n\",\n      \"        \\\"reasoning_tokens\\\": 0,\\n\",\n      \"        \\\"audio_tokens\\\": 0,\\n\",\n      \"        \\\"accepted_prediction_tokens\\\": 0,\\n\",\n      \"        \\\"rejected_prediction_tokens\\\": 0\\n\",\n      \"      }\\n\",\n      \"    },\\n\",\n      \"    \\\"system_fingerprint\\\": \\\"fp_50cad350e4\\\"\\n\",\n      \"  },\\n\",\n      \"  \\\"tool_calls\\\": [],\\n\",\n      \"  \\\"invalid_tool_calls\\\": [],\\n\",\n      \"  \\\"usage_metadata\\\": {\\n\",\n      \"    \\\"output_tokens\\\": 14,\\n\",\n      \"    \\\"input_tokens\\\": 1653,\\n\",\n      \"    \\\"total_tokens\\\": 1667,\\n\",\n      \"    \\\"input_token_details\\\": {\\n\",\n      \"      \\\"audio\\\": 0,\\n\",\n      \"      \\\"cache_read\\\": 0\\n\",\n      \"    },\\n\",\n      \"    \\\"output_token_details\\\": {\\n\",\n      \"      \\\"audio\\\": 0,\\n\",\n      \"      \\\"reasoning\\\": 0\\n\",\n      \"    }\\n\",\n      \"  }\\n\",\n      \"}\\n\"\n     ]\n    }\n   ],\n   \"source\": [\n    \"import { pull } from \\\"langchain/hub\\\";\\n\",\n    \"import { ChatPromptTemplate } from \\\"@langchain/core/prompts\\\";\\n\",\n    \"import { z } from \\\"zod\\\";\\n\",\n    \"import { ChatOpenAI } from \\\"@langchain/openai\\\";\\n\",\n    \"\\n\",\n    \"const retriever = vectorStore.asRetriever({\\n\",\n    \"  k: 2,\\n\",\n    \"})\\n\",\n    \"\\n\",\n    \"const answerSchema = z.object({\\n\",\n    \"  answer: z.string().describe(\\\"The answer to the question\\\"),\\n\",\n    \"  sources: z.array(z.string()).describe(\\\"The full text of the documents used to answer the question\\\"),\\n\",\n    \"});\\n\",\n    \"\\n\",\n    \"const llm = new ChatOpenAI({\\n\",\n    \"    model: \\\"gpt-4o\\\",\\n\",\n    \"    temperature: 0,\\n\",\n    \"  })\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"const promptTemplate = await pull<ChatPromptTemplate>(\\\"rlm/rag-prompt\\\");\\n\",\n    \"\\n\",\n    \"const query = \\\"What is the name of the company in the report?\\\"\\n\",\n    \"\\n\",\n    \"const retrievedDocs = await retriever.invoke(query)\\n\",\n    \"\\n\",\n    \"const formattedPrompt = await promptTemplate.invoke({\\n\",\n    \"  context: retrievedDocs,\\n\",\n    \"  question: query,\\n\",\n    \"});\\n\",\n    \"\\n\",\n    \"const response = await llm.invoke(formattedPrompt);\\n\",\n    \"\\n\",\n    \"console.log(response);\\n\"\n   ]\n  },\n  {\n   \"cell_type\": \"code\",\n   \"execution_count\": 17,\n   \"metadata\": {},\n   \"outputs\": [\n    {\n     \"name\": \"stdout\",\n     \"output_type\": \"stream\",\n     \"text\": [\n      \"{\\n\",\n      \"  error: {\\n\",\n      \"    code: '22P02',\\n\",\n      \"    details: null,\\n\",\n      \"    hint: null,\\n\",\n      \"    message: 'invalid input syntax for type uuid: \\\"\\\"'\\n\",\n      \"  },\\n\",\n      \"  data: null,\\n\",\n      \"  count: null,\\n\",\n      \"  status: 400,\\n\",\n      \"  statusText: 'Bad Request'\\n\",\n      \"}\\n\"\n     ]\n    },\n    {\n     \"name\": \"stderr\",\n     \"output_type\": \"stream\",\n     \"text\": [\n      \"UncaughtException: Error: Unexpected pending rebuildTimer\\n\",\n      \"    at sys.setTimeout (/opt/homebrew/lib/node_modules/tslab/dist/converter.js:111:19)\\n\",\n      \"    at Object.scheduleInvalidateResolutionsOfFailedLookupLocations (/opt/homebrew/lib/node_modules/tslab/node_modules/@tslab/typescript-for-tslab/lib/typescript.js:122719:55)\\n\",\n      \"    at scheduleInvalidateResolutionOfFailedLookupLocation (/opt/homebrew/lib/node_modules/tslab/node_modules/@tslab/typescript-for-tslab/lib/typescript.js:121553:22)\\n\",\n      \"    at /opt/homebrew/lib/node_modules/tslab/node_modules/@tslab/typescript-for-tslab/lib/typescript.js:121474:9\\n\",\n      \"    at /opt/homebrew/lib/node_modules/tslab/node_modules/@tslab/typescript-for-tslab/lib/typescript.js:5810:11\\n\",\n      \"    at /opt/homebrew/lib/node_modules/tslab/node_modules/@tslab/typescript-for-tslab/lib/typescript.js:5560:101\\n\",\n      \"    at Array.forEach (<anonymous>)\\n\",\n      \"    at /opt/homebrew/lib/node_modules/tslab/node_modules/@tslab/typescript-for-tslab/lib/typescript.js:5560:85\\n\",\n      \"    at FSWatcher.callbackChangingToMissingFileSystemEntry (/opt/homebrew/lib/node_modules/tslab/node_modules/@tslab/typescript-for-tslab/lib/typescript.js:6104:11)\\n\",\n      \"    at FSWatcher.emit (node:events:518:28)\\n\",\n      \"UncaughtException: Error: Unexpected pending rebuildTimer\\n\",\n      \"    at sys.setTimeout (/opt/homebrew/lib/node_modules/tslab/dist/converter.js:111:19)\\n\",\n      \"    at Object.scheduleInvalidateResolutionsOfFailedLookupLocations (/opt/homebrew/lib/node_modules/tslab/node_modules/@tslab/typescript-for-tslab/lib/typescript.js:122719:55)\\n\",\n      \"    at scheduleInvalidateResolutionOfFailedLookupLocation (/opt/homebrew/lib/node_modules/tslab/node_modules/@tslab/typescript-for-tslab/lib/typescript.js:121553:22)\\n\",\n      \"    at /opt/homebrew/lib/node_modules/tslab/node_modules/@tslab/typescript-for-tslab/lib/typescript.js:121474:9\\n\",\n      \"    at /opt/homebrew/lib/node_modules/tslab/node_modules/@tslab/typescript-for-tslab/lib/typescript.js:5810:11\\n\",\n      \"    at /opt/homebrew/lib/node_modules/tslab/node_modules/@tslab/typescript-for-tslab/lib/typescript.js:5560:101\\n\",\n      \"    at Array.forEach (<anonymous>)\\n\",\n      \"    at /opt/homebrew/lib/node_modules/tslab/node_modules/@tslab/typescript-for-tslab/lib/typescript.js:5560:85\\n\",\n      \"    at FSWatcher.callbackChangingToMissingFileSystemEntry (/opt/homebrew/lib/node_modules/tslab/node_modules/@tslab/typescript-for-tslab/lib/typescript.js:6104:11)\\n\",\n      \"    at FSWatcher.emit (node:events:518:28)\\n\",\n      \"UncaughtException: Error: Unexpected pending rebuildTimer\\n\",\n      \"    at sys.setTimeout (/opt/homebrew/lib/node_modules/tslab/dist/converter.js:111:19)\\n\",\n      \"    at Object.scheduleInvalidateResolutionsOfFailedLookupLocations (/opt/homebrew/lib/node_modules/tslab/node_modules/@tslab/typescript-for-tslab/lib/typescript.js:122719:55)\\n\",\n      \"    at scheduleInvalidateResolutionOfFailedLookupLocation (/opt/homebrew/lib/node_modules/tslab/node_modules/@tslab/typescript-for-tslab/lib/typescript.js:121553:22)\\n\",\n      \"    at /opt/homebrew/lib/node_modules/tslab/node_modules/@tslab/typescript-for-tslab/lib/typescript.js:121474:9\\n\",\n      \"    at /opt/homebrew/lib/node_modules/tslab/node_modules/@tslab/typescript-for-tslab/lib/typescript.js:5810:11\\n\",\n      \"    at /opt/homebrew/lib/node_modules/tslab/node_modules/@tslab/typescript-for-tslab/lib/typescript.js:5560:101\\n\",\n      \"    at Array.forEach (<anonymous>)\\n\",\n      \"    at /opt/homebrew/lib/node_modules/tslab/node_modules/@tslab/typescript-for-tslab/lib/typescript.js:5560:85\\n\",\n      \"    at FSWatcher.callbackChangingToMissingFileSystemEntry (/opt/homebrew/lib/node_modules/tslab/node_modules/@tslab/typescript-for-tslab/lib/typescript.js:6104:11)\\n\",\n      \"    at FSWatcher.emit (node:events:518:28)\\n\"\n     ]\n    }\n   ],\n   \"source\": [\n    \"// delete all documents from the vector store\\n\",\n    \"\\n\",\n    \"await vectorStore.client.from('documents').delete().neq('id', '');\\n\",\n    \"    \"\n   ]\n  },\n  {\n   \"cell_type\": \"code\",\n   \"execution_count\": null,\n   \"metadata\": {},\n   \"outputs\": [],\n   \"source\": []\n  }\n ],\n \"metadata\": {\n  \"kernelspec\": {\n   \"display_name\": \"TypeScript\",\n   \"language\": \"typescript\",\n   \"name\": \"tslab\"\n  },\n  \"language_info\": {\n   \"codemirror_mode\": {\n    \"mode\": \"typescript\",\n    \"name\": \"javascript\",\n    \"typescript\": true\n   },\n   \"file_extension\": \".ts\",\n   \"mimetype\": \"text/typescript\",\n   \"name\": \"typescript\",\n   \"version\": \"3.7.2\"\n  }\n },\n \"nbformat\": 4,\n \"nbformat_minor\": 2\n}\n"
  },
  {
    "path": "backend/jest.config.js",
    "content": "/** @type {import('ts-jest').JestConfigWithTsJest} */\nexport default {\n  preset: 'ts-jest',\n  testEnvironment: 'node',\n  extensionsToTreatAsEsm: ['.ts'],\n  moduleNameMapper: {\n    '^(\\\\.{1,2}/.*)\\\\.js$': '$1',\n  },\n  transform: {\n    '^.+\\\\.tsx?$': [\n      'ts-jest',\n      {\n        useESM: true,\n      },\n    ],\n  },\n  // Test configuration\n  testMatch: ['**/__tests__/**/*.test.ts'],\n  // Coverage configuration\n  collectCoverageFrom: [\n    'src/**/*.{ts,tsx}',\n    '!src/**/*.d.ts',\n    '!src/**/*.test.ts',\n  ],\n  coveragePathIgnorePatterns: ['/node_modules/', '/__tests__/', '/dist/'],\n  coverageThreshold: {\n    global: {\n      branches: 80,\n      functions: 80,\n      lines: 80,\n      statements: 80,\n    },\n  },\n  coverageDirectory: 'coverage',\n  // Helpful test output\n  verbose: true,\n};\n"
  },
  {
    "path": "backend/langgraph.json",
    "content": "{\n    \"node_version\": \"20\",\n    \"graphs\": {\n      \"ingestion_graph\": \"./src/ingestion_graph/graph.ts:graph\",\n      \"retrieval_graph\": \"./src/retrieval_graph/graph.ts:graph\"\n    },\n    \"env\": \".env\",\n    \"dependencies\":[\".\"]\n  }"
  },
  {
    "path": "backend/package.json",
    "content": "{\n  \"name\": \"backend\",\n  \"version\": \"0.0.1\",\n  \"description\": \"Chat with your PDF using this AI agent\",\n  \"author\": \"Mayo Oshin\",\n  \"license\": \"MIT\",\n  \"private\": true,\n  \"type\": \"module\",\n  \"scripts\": {\n    \"build\": \"tsc\",\n    \"clean\": \"rm -rf dist\",\n    \"demo\": \"npx tsx demo.ts\",\n    \"test\": \"jest\",\n    \"test:watch\": \"jest --watch\",\n    \"test:changed\": \"jest --onlyChanged --passWithNoTests\",\n    \"test:related\": \"jest --findRelatedTests\",\n    \"test:coverage\": \"jest --coverage\",\n    \"test:int\": \"jest --testPathPattern=\\\\.int\\\\.test\\\\.ts$\",\n    \"format\": \"prettier --write .\",\n    \"format:check\": \"prettier --check .\",\n    \"lint\": \"eslint src\",\n    \"lint:fix\": \"eslint src --fix\",\n    \"lint:langgraph-json\": \"node scripts/checkLanggraphPaths.js\",\n    \"lint:all\": \"yarn lint & yarn lint:langgraph-json\",\n    \"langgraph:dev\": \"npx @langchain/langgraph-cli dev\"\n  },\n  \"dependencies\": {\n    \"@langchain/community\": \"^0.3.26\",\n    \"@langchain/core\": \"^0.3.32\",\n    \"@langchain/langgraph\": \"^0.2.41\",\n    \"@langchain/langgraph-cli\": \"^0.0.1\",\n    \"@langchain/langgraph-sdk\": \"^0.0.36\",\n    \"@langchain/openai\": \"^0.3.17\",\n    \"@mendable/firecrawl-js\": \"^1.15.7\",\n    \"@supabase/supabase-js\": \"^2.48.1\",\n    \"chromadb\": \"^1.10.4\",\n    \"pdf-parse\": \"^1.1.1\",\n    \"uuid\": \"^11.0.5\",\n    \"ws\": \"^8.18.0\",\n    \"zod\": \"^3.24.1\"\n  },\n  \"devDependencies\": {\n    \"@eslint/eslintrc\": \"^3.1.0\",\n    \"@eslint/js\": \"^9.9.1\",\n    \"@jest/globals\": \"^29.7.0\",\n    \"@tsconfig/recommended\": \"^1.0.7\",\n    \"@types/jest\": \"^29.5.0\",\n    \"@types/node\": \"^22.10.6\",\n    \"@typescript-eslint/eslint-plugin\": \"5.59.8\",\n    \"@typescript-eslint/parser\": \"5.59.8\",\n    \"cross-env\": \"^7.0.3\",\n    \"dotenv\": \"^16.4.7\",\n    \"eslint\": \"^8.41.0\",\n    \"eslint-config-prettier\": \"^8.8.0\",\n    \"eslint-plugin-import\": \"^2.27.5\",\n    \"eslint-plugin-no-instanceof\": \"^1.0.1\",\n    \"eslint-plugin-prettier\": \"^4.2.1\",\n    \"jest\": \"^29.7.0\",\n    \"prettier\": \"^3.3.3\",\n    \"ts-jest\": \"^29.2.5\",\n    \"tsx\": \"^4.19.2\",\n    \"typescript\": \"^5.3.3\"\n  }\n}\n"
  },
  {
    "path": "backend/src/ingestion_graph/configuration.ts",
    "content": "import { Annotation } from '@langchain/langgraph';\nimport { RunnableConfig } from '@langchain/core/runnables';\nimport {\n  BaseConfigurationAnnotation,\n  ensureBaseConfiguration,\n} from '../shared/configuration.js';\n\n// This file contains sample documents to index, based on the following LangChain and LangGraph documentation pages:\nconst DEFAULT_DOCS_FILE = './src/sample_docs.json';\n\n/**\n * The configuration for the indexing process.\n */\nexport const IndexConfigurationAnnotation = Annotation.Root({\n  ...BaseConfigurationAnnotation.spec,\n\n  /**\n   * Path to a JSON file containing default documents to index.\n   */\n  docsFile: Annotation<string>,\n  useSampleDocs: Annotation<boolean>,\n});\n\n/**\n * Create an typeof IndexConfigurationAnnotation.State instance from a RunnableConfig object.\n *\n * @param config - The configuration object to use.\n * @returns An instance of typeof IndexConfigurationAnnotation.State with the specified configuration.\n */\nexport function ensureIndexConfiguration(\n  config: RunnableConfig,\n): typeof IndexConfigurationAnnotation.State {\n  const configurable = (config?.configurable || {}) as Partial<\n    typeof IndexConfigurationAnnotation.State\n  >;\n\n  const baseConfig = ensureBaseConfiguration(config);\n\n  return {\n    ...baseConfig,\n    docsFile: configurable.docsFile || DEFAULT_DOCS_FILE,\n    useSampleDocs: configurable.useSampleDocs || false,\n  };\n}\n"
  },
  {
    "path": "backend/src/ingestion_graph/graph.ts",
    "content": "/**\n * This \"graph\" simply exposes an endpoint for a user to upload docs to be indexed.\n */\n\nimport { RunnableConfig } from '@langchain/core/runnables';\nimport { StateGraph, END, START } from '@langchain/langgraph';\nimport fs from 'fs/promises';\n\nimport { IndexStateAnnotation } from './state.js';\nimport { makeRetriever } from '../shared/retrieval.js';\nimport {\n  ensureIndexConfiguration,\n  IndexConfigurationAnnotation,\n} from './configuration.js';\nimport { reduceDocs } from '../shared/state.js';\n\nasync function ingestDocs(\n  state: typeof IndexStateAnnotation.State,\n  config?: RunnableConfig,\n): Promise<typeof IndexStateAnnotation.Update> {\n  if (!config) {\n    throw new Error('Configuration required to run index_docs.');\n  }\n\n  const configuration = ensureIndexConfiguration(config);\n  let docs = state.docs;\n\n  if (!docs || docs.length === 0) {\n    if (configuration.useSampleDocs) {\n      const fileContent = await fs.readFile(configuration.docsFile, 'utf-8');\n      const serializedDocs = JSON.parse(fileContent);\n      docs = reduceDocs([], serializedDocs);\n    } else {\n      throw new Error('No sample documents to index.');\n    }\n  } else {\n    docs = reduceDocs([], docs);\n  }\n\n  const retriever = await makeRetriever(config);\n  await retriever.addDocuments(docs);\n\n  return { docs: 'delete' };\n}\n\n// Define the graph\nconst builder = new StateGraph(\n  IndexStateAnnotation,\n  IndexConfigurationAnnotation,\n)\n  .addNode('ingestDocs', ingestDocs)\n  .addEdge(START, 'ingestDocs')\n  .addEdge('ingestDocs', END);\n\n// Compile into a graph object that you can invoke and deploy.\nexport const graph = builder\n  .compile()\n  .withConfig({ runName: 'IngestionGraph' });\n"
  },
  {
    "path": "backend/src/ingestion_graph/state.ts",
    "content": "import { Annotation } from '@langchain/langgraph';\nimport { Document } from '@langchain/core/documents';\nimport { reduceDocs } from '../shared/state.js';\n\n/**\n * Represents the state for document indexing and retrieval.\n *\n * This interface defines the structure of the index state, which includes\n * the documents to be indexed and the retriever used for searching\n * these documents.\n */\nexport const IndexStateAnnotation = Annotation.Root({\n  /**\n   * A list of documents that the agent can index.\n   */\n  docs: Annotation<\n    Document[],\n    Document[] | { [key: string]: any }[] | string[] | string | 'delete'\n  >({\n    default: () => [],\n    reducer: reduceDocs,\n  }),\n});\n\nexport type IndexStateType = typeof IndexStateAnnotation.State;\n"
  },
  {
    "path": "backend/src/retrieval_graph/configuration.ts",
    "content": "import { Annotation } from '@langchain/langgraph';\nimport { RunnableConfig } from '@langchain/core/runnables';\nimport {\n  BaseConfigurationAnnotation,\n  ensureBaseConfiguration,\n} from '../shared/configuration.js';\n\n/**\n * The configuration for the agent.\n */\nexport const AgentConfigurationAnnotation = Annotation.Root({\n  ...BaseConfigurationAnnotation.spec,\n\n  // models\n  /**\n   * The language model used for processing and refining queries.\n   * Should be in the form: provider/model-name.\n   */\n  queryModel: Annotation<string>,\n});\n\n/**\n * Create a typeof ConfigurationAnnotation.State instance from a RunnableConfig object.\n *\n * @param config - The configuration object to use.\n * @returns An instance of typeof ConfigurationAnnotation.State with the specified configuration.\n */\nexport function ensureAgentConfiguration(\n  config: RunnableConfig,\n): typeof AgentConfigurationAnnotation.State {\n  const configurable = (config?.configurable || {}) as Partial<\n    typeof AgentConfigurationAnnotation.State\n  >;\n  const baseConfig = ensureBaseConfiguration(config);\n  return {\n    ...baseConfig,\n    queryModel: configurable.queryModel || 'openai/gpt-4o',\n  };\n}\n"
  },
  {
    "path": "backend/src/retrieval_graph/graph.ts",
    "content": "import { StateGraph, START, END } from '@langchain/langgraph';\nimport { AgentStateAnnotation } from './state.js';\nimport { makeRetriever } from '../shared/retrieval.js';\nimport { formatDocs } from './utils.js';\nimport { HumanMessage } from '@langchain/core/messages';\nimport { z } from 'zod';\nimport { RESPONSE_SYSTEM_PROMPT, ROUTER_SYSTEM_PROMPT } from './prompts.js';\nimport { RunnableConfig } from '@langchain/core/runnables';\nimport {\n  AgentConfigurationAnnotation,\n  ensureAgentConfiguration,\n} from './configuration.js';\nimport { loadChatModel } from '../shared/utils.js';\n\nasync function checkQueryType(\n  state: typeof AgentStateAnnotation.State,\n  config: RunnableConfig,\n): Promise<{\n  route: 'retrieve' | 'direct';\n}> {\n  //schema for routing\n  const schema = z.object({\n    route: z.enum(['retrieve', 'direct']),\n    directAnswer: z.string().optional(),\n  });\n\n  const configuration = ensureAgentConfiguration(config);\n  const model = await loadChatModel(configuration.queryModel);\n\n  const routingPrompt = ROUTER_SYSTEM_PROMPT;\n\n  const formattedPrompt = await routingPrompt.invoke({\n    query: state.query,\n  });\n\n  const response = await model\n    .withStructuredOutput(schema)\n    .invoke(formattedPrompt.toString());\n\n  const route = response.route;\n\n  return { route };\n}\n\nasync function answerQueryDirectly(\n  state: typeof AgentStateAnnotation.State,\n  config: RunnableConfig,\n): Promise<typeof AgentStateAnnotation.Update> {\n  const configuration = ensureAgentConfiguration(config);\n  const model = await loadChatModel(configuration.queryModel);\n  const userHumanMessage = new HumanMessage(state.query);\n\n  const response = await model.invoke([userHumanMessage]);\n  return { messages: [userHumanMessage, response] };\n}\n\nasync function routeQuery(\n  state: typeof AgentStateAnnotation.State,\n): Promise<'retrieveDocuments' | 'directAnswer'> {\n  const route = state.route;\n  if (!route) {\n    throw new Error('Route is not set');\n  }\n\n  if (route === 'retrieve') {\n    return 'retrieveDocuments';\n  } else if (route === 'direct') {\n    return 'directAnswer';\n  } else {\n    throw new Error('Invalid route');\n  }\n}\n\nasync function retrieveDocuments(\n  state: typeof AgentStateAnnotation.State,\n  config: RunnableConfig,\n): Promise<typeof AgentStateAnnotation.Update> {\n  const retriever = await makeRetriever(config);\n  const response = await retriever.invoke(state.query);\n\n  return { documents: response };\n}\n\nasync function generateResponse(\n  state: typeof AgentStateAnnotation.State,\n  config: RunnableConfig,\n): Promise<typeof AgentStateAnnotation.Update> {\n  const configuration = ensureAgentConfiguration(config);\n  const context = formatDocs(state.documents);\n  const model = await loadChatModel(configuration.queryModel);\n  const promptTemplate = RESPONSE_SYSTEM_PROMPT;\n\n  const formattedPrompt = await promptTemplate.invoke({\n    question: state.query,\n    context: context,\n  });\n\n  const userHumanMessage = new HumanMessage(state.query);\n\n  // Create a human message with the formatted prompt that includes context\n  const formattedPromptMessage = new HumanMessage(formattedPrompt.toString());\n\n  const messageHistory = [...state.messages, formattedPromptMessage];\n\n  // Let MessagesAnnotation handle the message history\n  const response = await model.invoke(messageHistory);\n\n  // Return both the current query and the AI response to be handled by MessagesAnnotation's reducer\n  return { messages: [userHumanMessage, response] };\n}\n\nconst builder = new StateGraph(\n  AgentStateAnnotation,\n  AgentConfigurationAnnotation,\n)\n  .addNode('retrieveDocuments', retrieveDocuments)\n  .addNode('generateResponse', generateResponse)\n  .addNode('checkQueryType', checkQueryType)\n  .addNode('directAnswer', answerQueryDirectly)\n  .addEdge(START, 'checkQueryType')\n  .addConditionalEdges('checkQueryType', routeQuery, [\n    'retrieveDocuments',\n    'directAnswer',\n  ])\n  .addEdge('retrieveDocuments', 'generateResponse')\n  .addEdge('generateResponse', END)\n  .addEdge('directAnswer', END);\n\nexport const graph = builder.compile().withConfig({\n  runName: 'RetrievalGraph',\n});\n"
  },
  {
    "path": "backend/src/retrieval_graph/prompts.ts",
    "content": "import { ChatPromptTemplate } from '@langchain/core/prompts';\n\nconst ROUTER_SYSTEM_PROMPT = ChatPromptTemplate.fromMessages([\n  [\n    'system',\n    \"You are a routing assistant. Your job is to determine if a question needs document retrieval or can be answered directly.\\n\\nRespond with either:\\n'retrieve' - if the question requires retrieving documents\\n'direct' - if the question can be answered directly AND your direct answer\",\n  ],\n  ['human', '{query}'],\n]);\n\nconst RESPONSE_SYSTEM_PROMPT = ChatPromptTemplate.fromMessages([\n  [\n    'system',\n    `You are an assistant for question-answering tasks. Use the following pieces of retrieved context to answer the question. \n    If you don't know the answer, just say that you don't know. Use three sentences maximum and keep the answer concise.\n    \n    question:\n    {question}\n    \n    context:\n    {context}\n    `,\n  ],\n]);\n\nexport { ROUTER_SYSTEM_PROMPT, RESPONSE_SYSTEM_PROMPT };\n"
  },
  {
    "path": "backend/src/retrieval_graph/state.ts",
    "content": "import { Annotation, MessagesAnnotation } from '@langchain/langgraph';\nimport { reduceDocs } from '../shared/state.js';\nimport { Document } from '@langchain/core/documents';\n/**\n * Represents the state of the retrieval graph / agent.\n */\nexport const AgentStateAnnotation = Annotation.Root({\n  query: Annotation<string>(),\n  route: Annotation<string>(),\n  ...MessagesAnnotation.spec,\n\n  /**\n   * Populated by the retriever. This is a list of documents that the agent can reference.\n   * @type {Document[]}\n   */\n  documents: Annotation<\n    Document[],\n    Document[] | { [key: string]: any }[] | string[] | string | 'delete'\n  >({\n    default: () => [],\n    // @ts-ignore\n    reducer: reduceDocs,\n  }),\n\n  // Additional attributes can be added here as needed\n});\n"
  },
  {
    "path": "backend/src/retrieval_graph/utils.ts",
    "content": "import { Document } from '@langchain/core/documents';\n\nexport function formatDoc(doc: Document): string {\n  const metadata = doc.metadata || {};\n  const meta = Object.entries(metadata)\n    .map(([k, v]) => ` ${k}=${v}`)\n    .join('');\n  const metaStr = meta ? ` ${meta}` : '';\n\n  return `<document${metaStr}>\\n${doc.pageContent}\\n</document>`;\n}\n\nexport function formatDocs(docs?: Document[]): string {\n  /**Format a list of documents as XML. */\n  if (!docs || docs.length === 0) {\n    return '<documents></documents>';\n  }\n  const formatted = docs.map(formatDoc).join('\\n');\n  return `<documents>\\n${formatted}\\n</documents>`;\n}\n"
  },
  {
    "path": "backend/src/sample_docs.json",
    "content": "[\n  {\n    \"pageContent\": \"UNITED\\tSTATES\\nSECURITIES\\tAND\\tEXCHANGE\\tCOMMISSION\\nWashington,\\tD.C.\\t20549\\nFORM\\t10-K\\n(Mark\\tOne)\\nxANNUAL\\tREPORT\\tPURSUANT\\tTO\\tSECTION\\t13\\tOR\\t15(d)\\tOF\\tTHE\\tSECURITIES\\tEXCHANGE\\tACT\\tOF\\t1934\\nFor\\tthe\\tfiscal\\tyear\\tended\\tDecember\\t31,\\t2023\\nOR\\noTRANSITION\\tREPORT\\tPURSUANT\\tTO\\tSECTION\\t13\\tOR\\t15(d)\\tOF\\tTHE\\tSECURITIES\\tEXCHANGE\\tACT\\tOF\\t1934\\nFor\\tthe\\ttransition\\tperiod\\tfrom\\t_________\\tto\\t_________\\nCommission\\tFile\\tNumber:\\t001-34756\\nTesla,\\tInc.\\n(Exact\\tname\\tof\\tregistrant\\tas\\tspecified\\tin\\tits\\tcharter)\\nDelaware91-2197729\\n(State\\tor\\tother\\tjurisdiction\\tof\\nincorporation\\tor\\torganization)\\n(I.R.S.\\tEmployer\\nIdentification\\tNo.)\\n1\\tTesla\\tRoad\\nAustin,\\tTexas78725\\n(Address\\tof\\tprincipal\\texecutive\\toffices)(Zip\\tCode)\\n(512)\\t516-8177\\n(Registrant’s\\ttelephone\\tnumber,\\tincluding\\tarea\\tcode)\\nSecurities\\tregistered\\tpursuant\\tto\\tSection\\t12(b)\\tof\\tthe\\tAct:\\nTitle\\tof\\teach\\tclassTrading\\tSymbol(s)Name\\tof\\teach\\texchange\\ton\\twhich\\tregistered\\nCommon\\tstockTSLAThe\\tNasdaq\\tGlobal\\tSelect\\tMarket\\nSecurities\\tregistered\\tpursuant\\tto\\tSection\\t12(g)\\tof\\tthe\\tAct:\\nNone\\nIndicate\\tby\\tcheck\\tmark\\twhether\\tthe\\tregistrant\\tis\\ta\\twell-known\\tseasoned\\tissuer,\\tas\\tdefined\\tin\\tRule\\t405\\tof\\tthe\\tSecurities\\tAct.\\tYes\\tx\\tNo\\to\\nIndicate\\tby\\tcheck\\tmark\\tif\\tthe\\tregistrant\\tis\\tnot\\trequired\\tto\\tfile\\treports\\tpursuant\\tto\\tSection\\t13\\tor\\t15(d)\\tof\\tthe\\tAct.\\tYes\\to\\tNo\\tx\\nIndicate\\tby\\tcheck\\tmark\\twhether\\tthe\\tregistrant\\t(1)\\thas\\tfiled\\tall\\treports\\trequired\\tto\\tbe\\tfiled\\tby\\tSection\\t13\\tor\\t15(d)\\tof\\tthe\\tSecurities\\tExchange\\tAct\\tof\\t1934\\t(“Exchange\\tAct”)\\nduring\\tthe\\tpreceding\\t12\\tmonths\\t(or\\tfor\\tsuch\\tshorter\\tperiod\\tthat\\tthe\\tregistrant\\twas\\trequired\\tto\\tfile\\tsuch\\treports),\\tand\\t(2)\\thas\\tbeen\\tsubject\\tto\\tsuch\\tfiling\\trequirements\\tfor\\tthe\\tpast\\t90\\ndays.\\tYes\\tx\\tNo\\to\\nIndicate\\tby\\tcheck\\tmark\\twhether\\tthe\\tregistrant\\thas\\tsubmitted\\telectronically\\tevery\\tInteractive\\tData\\tFile\\trequired\\tto\\tbe\\tsubmitted\\tpursuant\\tto\\tRule\\t405\\tof\\tRegulation\\tS-T\\n(§232.405\\tof\\tthis\\tchapter)\\tduring\\tthe\\tpreceding\\t12\\tmonths\\t(or\\tfor\\tsuch\\tshorter\\tperiod\\tthat\\tthe\\tregistrant\\twas\\trequired\\tto\\tsubmit\\tsuch\\tfiles).\\tYes\\tx\\tNo\\to\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 1,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 35\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Indicate\\tby\\tcheck\\tmark\\twhether\\tthe\\tregistrant\\tis\\ta\\tlarge\\taccelerated\\tfiler,\\tan\\taccelerated\\tfiler,\\ta\\tnon-accelerated\\tfiler,\\ta\\tsmaller\\treporting\\tcompany,\\tor\\tan\\temerging\\tgrowth\\ncompany.\\tSee\\tthe\\tdefinitions\\tof\\t“large\\taccelerated\\tfiler,”\\t“accelerated\\tfiler,”\\t“smaller\\treporting\\tcompany”\\tand\\t“emerging\\tgrowth\\tcompany”\\tin\\tRule\\t12b-2\\tof\\tthe\\tExchange\\tAct:\\nLarge\\taccelerated\\tfilerx\\tAccelerated\\tfilero\\nNon-accelerated\\tfilero\\tSmaller\\treporting\\tcompanyo\\nEmerging\\tgrowth\\tcompanyo\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 1,\n        \"lines\": {\n          \"from\": 36,\n          \"to\": 40\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"If\\tan\\temerging\\tgrowth\\tcompany,\\tindicate\\tby\\tcheck\\tmark\\tif\\tthe\\tregistrant\\thas\\telected\\tnot\\tto\\tuse\\tthe\\textended\\ttransition\\tperiod\\tfor\\tcomplying\\twith\\tany\\tnew\\tor\\trevised\\tfinancial\\naccounting\\tstandards\\tprovided\\tpursuant\\tto\\tSection\\t13(a)\\tof\\tthe\\tExchange\\tAct.\\to\\nIndicate\\tby\\tcheck\\tmark\\twhether\\tthe\\tRegistrant\\thas\\tfiled\\ta\\treport\\ton\\tand\\tattestation\\tto\\tits\\tmanagement’s\\tassessment\\tof\\tthe\\teffectiveness\\tof\\tits\\tinternal\\tcontrol\\tover\\tfinancial\\nreporting\\tunder\\tSection\\t404(b)\\tof\\tthe\\tSarbanes-Oxley\\tAct\\t(15\\tU.S.C.\\t7262(b))\\tby\\tthe\\tregistered\\tpublic\\taccounting\\tfirm\\tthat\\tprepared\\tor\\tissued\\tits\\taudit\\treport.\\tx\\nIf\\tsecurities\\tare\\tregistered\\tpursuant\\tto\\tSection\\t12(b)\\tof\\tthe\\tAct,\\tindicate\\tby\\tcheck\\tmark\\twhether\\tthe\\tfinancial\\tstatements\\tof\\tthe\\tregistrant\\tincluded\\tin\\tthe\\tfiling\\treflect\\tthe\\ncorrection\\tof\\tan\\terror\\tto\\tpreviously\\tissued\\tfinancial\\tstatements.\\to\\nIndicate\\tby\\tcheck\\tmark\\twhether\\tany\\tof\\tthose\\terror\\tcorrections\\tare\\trestatements\\tthat\\trequired\\ta\\trecovery\\tanalysis\\tof\\tincentive-based\\tcompensation\\treceived\\tby\\tany\\tof\\tthe\\nregistrant’s\\texecutive\\tofficers\\tduring\\tthe\\trelevant\\trecovery\\tperiod\\tpursuant\\tto\\t§240.10D-1(b).\\to\\nIndicate\\tby\\tcheck\\tmark\\twhether\\tthe\\tregistrant\\tis\\ta\\tshell\\tcompany\\t(as\\tdefined\\tin\\tRule\\t12b-2\\tof\\tthe\\tExchange\\tAct).\\tYes\\to\\tNo\\tx\\nThe\\taggregate\\tmarket\\tvalue\\tof\\tvoting\\tstock\\theld\\tby\\tnon-affiliates\\tof\\tthe\\tregistrant,\\tas\\tof\\tJune\\t30,\\t2023,\\tthe\\tlast\\tday\\tof\\tthe\\tregistrant’s\\tmost\\trecently\\tcompleted\\tsecond\\tfiscal\\nquarter,\\twas\\t$722.52\\tbillion\\t(based\\ton\\tthe\\tclosing\\tprice\\tfor\\tshares\\tof\\tthe\\tregistrant’s\\tCommon\\tStock\\tas\\treported\\tby\\tthe\\tNASDAQ\\tGlobal\\tSelect\\tMarket\\ton\\tJune\\t30,\\t2023).\\tShares\\tof\\nCommon\\tStock\\theld\\tby\\teach\\texecutive\\tofficer\\tand\\tdirector\\thave\\tbeen\\texcluded\\tin\\tthat\\tsuch\\tpersons\\tmay\\tbe\\tdeemed\\tto\\tbe\\taffiliates.\\tThis\\tdetermination\\tof\\taffiliate\\tstatus\\tis\\tnot\\nnecessarily\\ta\\tconclusive\\tdetermination\\tfor\\tother\\tpurposes.\\nAs\\tof\\tJanuary\\t22,\\t2024,\\tthere\\twere\\t3,184,790,415\\tshares\\tof\\tthe\\tregistrant’s\\tcommon\\tstock\\toutstanding.\\nDOCUMENTS\\tINCORPORATED\\tBY\\tREFERENCE\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 2,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 15\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"DOCUMENTS\\tINCORPORATED\\tBY\\tREFERENCE\\nPortions\\tof\\tthe\\tregistrant’s\\tProxy\\tStatement\\tfor\\tthe\\t2024\\tAnnual\\tMeeting\\tof\\tStockholders\\tare\\tincorporated\\therein\\tby\\treference\\tin\\tPart\\tIII\\tof\\tthis\\tAnnual\\tReport\\ton\\tForm\\t10-K\\tto\\nthe\\textent\\tstated\\therein.\\tSuch\\tproxy\\tstatement\\twill\\tbe\\tfiled\\twith\\tthe\\tSecurities\\tand\\tExchange\\tCommission\\twithin\\t120\\tdays\\tof\\tthe\\tregistrant’s\\tfiscal\\tyear\\tended\\tDecember\\t31,\\t2023.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 2,\n        \"lines\": {\n          \"from\": 15,\n          \"to\": 17\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"TESLA,\\tINC.\\nANNUAL\\tREPORT\\tON\\tFORM\\t10-K\\tFOR\\tTHE\\tYEAR\\tENDED\\tDECEMBER\\t31,\\t2023\\nINDEX\\n\\t\\tPage\\nPART\\tI.\\n\\t\\t\\nItem\\t1.Business4\\nItem\\t1A.Risk\\tFactors14\\nItem\\t1B.Unresolved\\tStaff\\tComments28\\nItem\\t1C.Cybersecurity29\\nItem\\t2.Properties30\\nItem\\t3.Legal\\tProceedings30\\nItem\\t4.Mine\\tSafety\\tDisclosures30\\n\\t\\nPART\\tII.\\n\\t\\nItem\\t5.Market\\tfor\\tRegistrant's\\tCommon\\tEquity,\\tRelated\\tStockholder\\tMatters\\tand\\tIssuer\\tPurchases\\tof\\tEquity\\tSecurities31\\nItem\\t6.[Reserved]32\\nItem\\t7.Management's\\tDiscussion\\tand\\tAnalysis\\tof\\tFinancial\\tCondition\\tand\\tResults\\tof\\tOperations33\\nItem\\t7A.Quantitative\\tand\\tQualitative\\tDisclosures\\tabout\\tMarket\\tRisk45\\nItem\\t8.Financial\\tStatements\\tand\\tSupplementary\\tData46\\nItem\\t9.Changes\\tin\\tand\\tDisagreements\\twith\\tAccountants\\ton\\tAccounting\\tand\\tFinancial\\tDisclosure93\\nItem\\t9A.Controls\\tand\\tProcedures93\\nItem\\t9B.Other\\tInformation94\\nItem\\t9C.Disclosure\\tRegarding\\tForeign\\tJurisdictions\\tthat\\tPrevent\\tInspections94\\n\\t\\nPART\\tIII.\\n\\t\\nItem\\t10.Directors,\\tExecutive\\tOfficers\\tand\\tCorporate\\tGovernance95\\nItem\\t11.Executive\\tCompensation95\\nItem\\t12.Security\\tOwnership\\tof\\tCertain\\tBeneficial\\tOwners\\tand\\tManagement\\tand\\tRelated\\tStockholder\\tMatters95\\nItem\\t13.Certain\\tRelationships\\tand\\tRelated\\tTransactions,\\tand\\tDirector\\tIndependence95\\nItem\\t14.Principal\\tAccountant\\tFees\\tand\\tServices95\\n\\t\\nPART\\tIV.\\n\\t\\nItem\\t15.Exhibits\\tand\\tFinancial\\tStatement\\tSchedules96\\nItem\\t16.Summary111\\n\\t\\nSignatures\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 3,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 40\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Table\\tof\\tContents\\nForward-Looking\\tStatements\\nThe\\tdiscussions\\tin\\tthis\\tAnnual\\tReport\\ton\\tForm\\t10-K\\tcontain\\tforward-looking\\tstatements\\treflecting\\tour\\tcurrent\\texpectations\\tthat\\tinvolve\\trisks\\tand\\nuncertainties.\\tThese\\tforward-looking\\tstatements\\tinclude,\\tbut\\tare\\tnot\\tlimited\\tto,\\tstatements\\tconcerning\\tsupply\\tchain\\tconstraints,\\tour\\tstrategy,\\ncompetition,\\tfuture\\toperations\\tand\\tproduction\\tcapacity,\\tfuture\\tfinancial\\tposition,\\tfuture\\trevenues,\\tprojected\\tcosts,\\tprofitability,\\texpected\\tcost\\treductions,\\ncapital\\tadequacy,\\texpectations\\tregarding\\tdemand\\tand\\tacceptance\\tfor\\tour\\ttechnologies,\\tgrowth\\topportunities\\tand\\ttrends\\tin\\tthe\\tmarkets\\tin\\twhich\\twe\\noperate,\\tprospects\\tand\\tplans\\tand\\tobjectives\\tof\\tmanagement.\\tThe\\twords\\t“anticipates,”\\t“believes,”\\t“could,”\\t“estimates,”\\t“expects,”\\t“intends,”\\t“may,”\\n“plans,”\\t“projects,”\\t“will,”\\t“would”\\tand\\tsimilar\\texpressions\\tare\\tintended\\tto\\tidentify\\tforward-looking\\tstatements,\\talthough\\tnot\\tall\\tforward-looking\\nstatements\\tcontain\\tthese\\tidentifying\\twords.\\tWe\\tmay\\tnot\\tactually\\tachieve\\tthe\\tplans,\\tintentions\\tor\\texpectations\\tdisclosed\\tin\\tour\\tforward-looking\\nstatements\\tand\\tyou\\tshould\\tnot\\tplace\\tundue\\treliance\\ton\\tour\\tforward-looking\\tstatements.\\tActual\\tresults\\tor\\tevents\\tcould\\tdiffer\\tmaterially\\tfrom\\tthe\\tplans,\\nintentions\\tand\\texpectations\\tdisclosed\\tin\\tthe\\tforward-looking\\tstatements\\tthat\\twe\\tmake.\\tThese\\tforward-looking\\tstatements\\tinvolve\\trisks\\tand\\tuncertainties\\nthat\\tcould\\tcause\\tour\\tactual\\tresults\\tto\\tdiffer\\tmaterially\\tfrom\\tthose\\tin\\tthe\\tforward-looking\\tstatements,\\tincluding,\\twithout\\tlimitation,\\tthe\\trisks\\tset\\tforth\\tin\\tPart\\nI,\\tItem\\t1A,\\t“Risk\\tFactors”\\tof\\tthe\\tAnnual\\tReport\\ton\\tForm\\t10-K\\tfor\\tthe\\tfiscal\\tyear\\tended\\tDecember\\t31,\\t2023\\tand\\tthat\\tare\\totherwise\\tdescribed\\tor\\tupdated\\nfrom\\ttime\\tto\\ttime\\tin\\tour\\tother\\tfilings\\twith\\tthe\\tSecurities\\tand\\tExchange\\tCommission\\t(the\\t“SEC”).\\tThe\\tdiscussion\\tof\\tsuch\\trisks\\tis\\tnot\\tan\\tindication\\tthat\\tany\\nsuch\\trisks\\thave\\toccurred\\tat\\tthe\\ttime\\tof\\tthis\\tfiling.\\tWe\\tdo\\tnot\\tassume\\tany\\tobligation\\tto\\tupdate\\tany\\tforward-looking\\tstatements.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 4,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 15\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Table\\tof\\tContents\\nPART\\tI\\nITEM\\t1.\\tBUSINESS\\nOverview\\nWe\\tdesign,\\tdevelop,\\tmanufacture,\\tsell\\tand\\tlease\\thigh-performance\\tfully\\telectric\\tvehicles\\tand\\tenergy\\tgeneration\\tand\\tstorage\\tsystems,\\tand\\toffer\\nservices\\trelated\\tto\\tour\\tproducts.\\tWe\\tgenerally\\tsell\\tour\\tproducts\\tdirectly\\tto\\tcustomers,\\tand\\tcontinue\\tto\\tgrow\\tour\\tcustomer-facing\\tinfrastructure\\tthrough\\ta\\nglobal\\tnetwork\\tof\\tvehicle\\tshowrooms\\tand\\tservice\\tcenters,\\tMobile\\tService,\\tbody\\tshops,\\tSupercharger\\tstations\\tand\\tDestination\\tChargers\\tto\\taccelerate\\tthe\\nwidespread\\tadoption\\tof\\tour\\tproducts.\\tWe\\temphasize\\tperformance,\\tattractive\\tstyling\\tand\\tthe\\tsafety\\tof\\tour\\tusers\\tand\\tworkforce\\tin\\tthe\\tdesign\\tand\\nmanufacture\\tof\\tour\\tproducts\\tand\\tare\\tcontinuing\\tto\\tdevelop\\tfull\\tself-driving\\ttechnology\\tfor\\timproved\\tsafety.\\tWe\\talso\\tstrive\\tto\\tlower\\tthe\\tcost\\tof\\townership\\nfor\\tour\\tcustomers\\tthrough\\tcontinuous\\tefforts\\tto\\treduce\\tmanufacturing\\tcosts\\tand\\tby\\toffering\\tfinancial\\tand\\tother\\tservices\\ttailored\\tto\\tour\\tproducts.\\nOur\\tmission\\tis\\tto\\taccelerate\\tthe\\tworld’s\\ttransition\\tto\\tsustainable\\tenergy.\\tWe\\tbelieve\\tthat\\tthis\\tmission,\\talong\\twith\\tour\\tengineering\\texpertise,\\nvertically\\tintegrated\\tbusiness\\tmodel\\tand\\tfocus\\ton\\tuser\\texperience\\tdifferentiate\\tus\\tfrom\\tother\\tcompanies.\\nSegment\\tInformation\\nWe\\toperate\\tas\\ttwo\\treportable\\tsegments:\\t(i)\\tautomotive\\tand\\t(ii)\\tenergy\\tgeneration\\tand\\tstorage.\\nThe\\tautomotive\\tsegment\\tincludes\\tthe\\tdesign,\\tdevelopment,\\tmanufacturing,\\tsales\\tand\\tleasing\\tof\\thigh-performance\\tfully\\telectric\\tvehicles\\tas\\twell\\tas\\nsales\\tof\\tautomotive\\tregulatory\\tcredits.\\tAdditionally,\\tthe\\tautomotive\\tsegment\\talso\\tincludes\\tservices\\tand\\tother,\\twhich\\tincludes\\tsales\\tof\\tused\\tvehicles,\\tnon-\\nwarranty\\tafter-sales\\tvehicle\\tservices,\\tbody\\tshop\\tand\\tparts,\\tpaid\\tSupercharging,\\tvehicle\\tinsurance\\trevenue\\tand\\tretail\\tmerchandise.\\tThe\\tenergy\\tgeneration\\nand\\tstorage\\tsegment\\tincludes\\tthe\\tdesign,\\tmanufacture,\\tinstallation,\\tsales\\tand\\tleasing\\tof\\tsolar\\tenergy\\tgeneration\\tand\\tenergy\\tstorage\\tproducts\\tand\\trelated\\nservices\\tand\\tsales\\tof\\tsolar\\tenergy\\tsystems\\tincentives.\\nOur\\tProducts\\tand\\tServices\\nAutomotive\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 5,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 21\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Our\\tProducts\\tand\\tServices\\nAutomotive\\nWe\\tcurrently\\tmanufacture\\tfive\\tdifferent\\tconsumer\\tvehicles\\t–\\tthe\\tModel\\t3,\\tY,\\tS,\\tX\\tand\\tCybertruck.\\tModel\\t3\\tis\\ta\\tfour-door\\tmid-size\\tsedan\\tthat\\twe\\ndesigned\\tfor\\tmanufacturability\\twith\\ta\\tbase\\tprice\\tfor\\tmass-market\\tappeal.\\tModel\\tY\\tis\\ta\\tcompact\\tsport\\tutility\\tvehicle\\t(“SUV”)\\tbuilt\\ton\\tthe\\tModel\\t3\\tplatform\\nwith\\tseating\\tfor\\tup\\tto\\tseven\\tadults.\\tModel\\tS\\tis\\ta\\tfour-door\\tfull-size\\tsedan\\tand\\tModel\\tX\\tis\\ta\\tmid-size\\tSUV\\twith\\tseating\\tfor\\tup\\tto\\tseven\\tadults.\\tModel\\tS\\tand\\nModel\\tX\\tfeature\\tthe\\thighest\\tperformance\\tcharacteristics\\tand\\tlongest\\tranges\\tthat\\twe\\toffer\\tin\\ta\\tsedan\\tand\\tSUV,\\trespectively.\\tIn\\tNovember\\t2023,\\twe\\nentered\\tthe\\tconsumer\\tpickup\\ttruck\\tmarket\\twith\\tfirst\\tdeliveries\\tof\\tthe\\tCybertruck,\\ta\\tfull-size\\telectric\\tpickup\\ttruck\\twith\\ta\\tstainless\\tsteel\\texterior\\tthat\\thas\\nthe\\tutility\\tand\\tstrength\\tof\\ta\\ttruck\\twhile\\tfeaturing\\tthe\\tspeed\\tof\\ta\\tsports\\tcar.\\nIn\\t2022,\\twe\\talso\\tbegan\\tearly\\tproduction\\tand\\tdeliveries\\tof\\ta\\tcommercial\\telectric\\tvehicle,\\tthe\\tTesla\\tSemi.\\tWe\\thave\\tplanned\\telectric\\tvehicles\\tto\\naddress\\tadditional\\tvehicle\\tmarkets,\\tand\\tto\\tcontinue\\tleveraging\\tdevelopments\\tin\\tour\\tproprietary\\tFull\\tSelf-Driving\\t(“FSD”)\\tCapability\\tfeatures,\\tbattery\\tcell\\nand\\tother\\ttechnologies.\\nEnergy\\tGeneration\\tand\\tStorage\\nEnergy\\tStorage\\tProducts\\nPowerwall\\tand\\tMegapack\\tare\\tour\\tlithium-ion\\tbattery\\tenergy\\tstorage\\tproducts.\\tPowerwall,\\twhich\\twe\\tsell\\tdirectly\\tto\\tcustomers,\\tas\\twell\\tas\\tthrough\\nchannel\\tpartners,\\tis\\tdesigned\\tto\\tstore\\tenergy\\tat\\ta\\thome\\tor\\tsmall\\tcommercial\\tfacility.\\tMegapack\\tis\\tan\\tenergy\\tstorage\\tsolution\\tfor\\tcommercial,\\tindustrial,\\nutility\\tand\\tenergy\\tgeneration\\tcustomers,\\tmultiple\\tof\\twhich\\tmay\\tbe\\tgrouped\\ttogether\\tto\\tform\\tlarger\\tinstallations\\tof\\tgigawatt\\thours\\t(“GWh”)\\tor\\tgreater\\ncapacity.\\nWe\\talso\\tcontinue\\tto\\tdevelop\\tsoftware\\tcapabilities\\tfor\\tremotely\\tcontrolling\\tand\\tdispatching\\tour\\tenergy\\tstorage\\tsystems\\tacross\\ta\\twide\\trange\\tof\\nmarkets\\tand\\tapplications,\\tincluding\\tthrough\\tour\\treal-time\\tenergy\\tcontrol\\tand\\toptimization\\tplatforms.\\n4\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 5,\n        \"lines\": {\n          \"from\": 20,\n          \"to\": 39\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Table\\tof\\tContents\\nSolar\\tEnergy\\tOfferings\\nWe\\tsell\\tretrofit\\tsolar\\tenergy\\tsystems\\tto\\tcustomers\\tand\\tchannel\\tpartners\\tand\\talso\\tmake\\tthem\\tavailable\\tthrough\\tpower\\tpurchase\\tagreement\\t(“PPA”)\\narrangements.\\tWe\\tpurchase\\tmost\\tof\\tthe\\tcomponents\\tfor\\tour\\tretrofit\\tsolar\\tenergy\\tsystems\\tfrom\\tmultiple\\tsources\\tto\\tensure\\tcompetitive\\tpricing\\tand\\nadequate\\tsupply.\\tWe\\talso\\tdesign\\tand\\tmanufacture\\tcertain\\tcomponents\\tfor\\tour\\tsolar\\tenergy\\tproducts.\\nWe\\tsell\\tour\\tSolar\\tRoof,\\twhich\\tcombines\\tpremium\\tglass\\troof\\ttiles\\twith\\tenergy\\tgeneration,\\tdirectly\\tto\\tcustomers,\\tas\\twell\\tas\\tthrough\\tchannel\\ncustomers.\\tWe\\tcontinue\\tto\\timprove\\tour\\tinstallation\\tcapability\\tand\\tefficiency,\\tincluding\\tthrough\\tcollaboration\\twith\\treal\\testate\\tdevelopers\\tand\\tbuilders\\ton\\nnew\\thomes.\\nTechnology\\nAutomotive\\nBattery\\tand\\tPowertrain\\nOur\\tcore\\tvehicle\\ttechnology\\tcompetencies\\tinclude\\tpowertrain\\tengineering\\tand\\tmanufacturing\\tand\\tour\\tability\\tto\\tdesign\\tvehicles\\tthat\\tutilize\\tthe\\nunique\\tadvantages\\tof\\tan\\telectric\\tpowertrain.\\tWe\\thave\\tdesigned\\tour\\tproprietary\\tpowertrain\\tsystems\\tto\\tbe\\tadaptable,\\tefficient,\\treliable\\tand\\tcost-effective\\nwhile\\twithstanding\\tthe\\trigors\\tof\\tan\\tautomotive\\tenvironment.\\tWe\\toffer\\tdual\\tmotor\\tpowertrain\\tvehicles,\\twhich\\tuse\\ttwo\\telectric\\tmotors\\tto\\tmaximize\\ttraction\\nand\\tperformance\\tin\\tan\\tall-wheel\\tdrive\\tconfiguration,\\tas\\twell\\tas\\tvehicle\\tpowertrain\\ttechnology\\tfeaturing\\tthree\\telectric\\tmotors\\tfor\\tfurther\\tincreased\\nperformance\\tin\\tcertain\\tversions\\tof\\tModel\\tS\\tand\\tModel\\tX,\\tCybertruck\\tand\\tthe\\tTesla\\tSemi.\\nWe\\tmaintain\\textensive\\ttesting\\tand\\tR&D\\tcapabilities\\tfor\\tbattery\\tcells,\\tpacks\\tand\\tsystems,\\tand\\thave\\tbuilt\\tan\\texpansive\\tbody\\tof\\tknowledge\\ton\\tlithium-\\nion\\tcell\\tchemistry\\ttypes\\tand\\tperformance\\tcharacteristics.\\tIn\\torder\\tto\\tenable\\ta\\tgreater\\tsupply\\tof\\tcells\\tfor\\tour\\tproducts\\twith\\thigher\\tenergy\\tdensity\\tat\\tlower\\ncosts,\\twe\\thave\\tdeveloped\\ta\\tnew\\tproprietary\\tlithium-ion\\tbattery\\tcell\\tand\\timproved\\tmanufacturing\\tprocesses.\\nVehicle\\tControl\\tand\\tInfotainment\\tSoftware\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 6,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 20\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Vehicle\\tControl\\tand\\tInfotainment\\tSoftware\\nThe\\tperformance\\tand\\tsafety\\tsystems\\tof\\tour\\tvehicles\\tand\\ttheir\\tbattery\\tpacks\\tutilize\\tsophisticated\\tcontrol\\tsoftware.\\tControl\\tsystems\\tin\\tour\\tvehicles\\noptimize\\tperformance,\\tcustomize\\tvehicle\\tbehavior,\\tmanage\\tcharging\\tand\\tcontrol\\tall\\tinfotainment\\tfunctions.\\tWe\\tdevelop\\talmost\\tall\\tof\\tthis\\tsoftware,\\nincluding\\tmost\\tof\\tthe\\tuser\\tinterfaces,\\tinternally\\tand\\tupdate\\tour\\tvehicles’\\tsoftware\\tregularly\\tthrough\\tover-the-air\\tupdates.\\nSelf-Driving\\tDevelopment\\tand\\tArtificial\\tIntelligence\\nWe\\thave\\texpertise\\tin\\tdeveloping\\ttechnologies,\\tsystems\\tand\\tsoftware\\tto\\tenable\\tself-driving\\tvehicles\\tusing\\tprimarily\\tvision-based\\ttechnologies.\\tOur\\nFSD\\tComputer\\truns\\tour\\tneural\\tnetworks\\tin\\tour\\tvehicles,\\tand\\twe\\tare\\talso\\tdeveloping\\tadditional\\tcomputer\\thardware\\tto\\tbetter\\tenable\\tthe\\tmassive\\tamounts\\nof\\tfield\\tdata\\tcaptured\\tby\\tour\\tvehicles\\tto\\tcontinually\\ttrain\\tand\\timprove\\tthese\\tneural\\tnetworks\\tfor\\treal-world\\tperformance.\\nCurrently,\\twe\\toffer\\tin\\tour\\tvehicles\\tcertain\\tadvanced\\tdriver\\tassist\\tsystems\\tunder\\tour\\tAutopilot\\tand\\tFSD\\tCapability\\toptions.\\tAlthough\\tat\\tpresent\\tthe\\ndriver\\tis\\tultimately\\tresponsible\\tfor\\tcontrolling\\tthe\\tvehicle,\\tour\\tsystems\\tprovide\\tsafety\\tand\\tconvenience\\tfunctionality\\tthat\\trelieves\\tdrivers\\tof\\tthe\\tmost\\ntedious\\tand\\tpotentially\\tdangerous\\taspects\\tof\\troad\\ttravel\\tmuch\\tlike\\tthe\\tsystem\\tthat\\tairplane\\tpilots\\tuse,\\twhen\\tconditions\\tpermit.\\tAs\\twith\\tother\\tvehicle\\nsystems,\\twe\\timprove\\tthese\\tfunctions\\tin\\tour\\tvehicles\\tover\\ttime\\tthrough\\tover-the-air\\tupdates.\\nWe\\tintend\\tto\\testablish\\tin\\tthe\\tfuture\\tan\\tautonomous\\tTesla\\tride-hailing\\tnetwork,\\twhich\\twe\\texpect\\twould\\talso\\tallow\\tus\\tto\\taccess\\ta\\tnew\\tcustomer\\tbase\\neven\\tas\\tmodes\\tof\\ttransportation\\tevolve.\\nWe\\tare\\talso\\tapplying\\tour\\tartificial\\tintelligence\\tlearnings\\tfrom\\tself-driving\\ttechnology\\tto\\tthe\\tfield\\tof\\trobotics,\\tsuch\\tas\\tthrough\\tOptimus,\\ta\\trobotic\\nhumanoid\\tin\\tdevelopment,\\twhich\\tis\\tcontrolled\\tby\\tthe\\tsame\\tAI\\tsystem.\\n5\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 6,\n        \"lines\": {\n          \"from\": 20,\n          \"to\": 36\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Table\\tof\\tContents\\nEnergy\\tGeneration\\tand\\tStorage\\nEnergy\\tStorage\\tProducts\\nWe\\tleverage\\tmany\\tof\\tthe\\tcomponent-level\\ttechnologies\\tfrom\\tour\\tvehicles\\tin\\tour\\tenergy\\tstorage\\tproducts.\\tBy\\ttaking\\ta\\tmodular\\tapproach\\tto\\tthe\\ndesign\\tof\\tbattery\\tsystems,\\twe\\tcan\\toptimize\\tmanufacturing\\tcapacity\\tof\\tour\\tenergy\\tstorage\\tproducts.\\tAdditionally,\\tour\\texpertise\\tin\\tpower\\telectronics\\nenables\\tour\\tbattery\\tsystems\\tto\\tinterconnect\\twith\\telectricity\\tgrids\\twhile\\tproviding\\tfast-acting\\tsystems\\tfor\\tpower\\tinjection\\tand\\tabsorption.\\tWe\\thave\\talso\\ndeveloped\\tsoftware\\tto\\tremotely\\tcontrol\\tand\\tdispatch\\tour\\tenergy\\tstorage\\tsystems.\\nSolar\\tEnergy\\tSystems\\nWe\\thave\\tengineered\\tSolar\\tRoof\\tover\\tnumerous\\titerations\\tto\\tcombine\\taesthetic\\tappeal\\tand\\tdurability\\twith\\tpower\\tgeneration.\\tThe\\tefficiency\\tof\\tour\\nsolar\\tenergy\\tproducts\\tis\\taided\\tby\\tour\\town\\tsolar\\tinverter,\\twhich\\tincorporates\\tour\\tpower\\telectronics\\ttechnologies.\\tWe\\tdesigned\\tboth\\tproducts\\tto\\tintegrate\\nwith\\tPowerwall.\\nDesign\\tand\\tEngineering\\nAutomotive\\nWe\\thave\\testablished\\tsignificant\\tin-house\\tcapabilities\\tin\\tthe\\tdesign\\tand\\ttest\\tengineering\\tof\\telectric\\tvehicles\\tand\\ttheir\\tcomponents\\tand\\tsystems.\\tOur\\nteam\\thas\\tsignificant\\texperience\\tin\\tcomputer-aided\\tdesign\\tas\\twell\\tas\\tdurability,\\tstrength\\tand\\tcrash\\ttest\\tsimulations,\\twhich\\treduces\\tthe\\tproduct\\ndevelopment\\ttime\\tof\\tnew\\tmodels.\\tWe\\thave\\talso\\tachieved\\tcomplex\\tengineering\\tfeats\\tin\\tstamping,\\tcasting\\tand\\tthermal\\tsystems,\\tand\\tdeveloped\\ta\\tmethod\\nto\\tintegrate\\tbatteries\\tdirectly\\twith\\tvehicle\\tbody\\tstructures\\twithout\\tseparate\\tbattery\\tpacks\\tto\\toptimize\\tmanufacturability,\\tweight,\\trange\\tand\\tcost\\ncharacteristics.\\nWe\\tare\\talso\\texpanding\\tour\\tmanufacturing\\toperations\\tglobally\\twhile\\ttaking\\taction\\tto\\tlocalize\\tour\\tvehicle\\tdesigns\\tand\\tproduction\\tfor\\tparticular\\nmarkets,\\tincluding\\tcountry-specific\\tmarket\\tdemands\\tand\\tfactory\\toptimizations\\tfor\\tlocal\\tworkforces.\\tAs\\twe\\tincrease\\tour\\tcapabilities,\\tparticularly\\tin\\tthe\\nareas\\tof\\tautomation,\\tdie-making\\tand\\tline-building,\\twe\\tare\\talso\\tmaking\\tstrides\\tin\\tthe\\tsimulations\\tmodeling\\tthese\\tcapabilities\\tprior\\tto\\tconstruction.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 7,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 21\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Energy\\tGeneration\\tand\\tStorage\\nOur\\texpertise\\tin\\telectrical,\\tmechanical,\\tcivil\\tand\\tsoftware\\tengineering\\tallows\\tus\\tto\\tdesign,\\tengineer,\\tmanufacture\\tand\\tinstall\\tenergy\\tgenerating\\tand\\nstorage\\tproducts\\tand\\tcomponents,\\tincluding\\tat\\tthe\\tresidential\\tthrough\\tutility\\tscale.\\tFor\\texample,\\tthe\\tmodular\\tdesign\\tof\\tour\\tMegapack\\tutility-scale\\tbattery\\nline\\tis\\tintended\\tto\\tsignificantly\\treduce\\tthe\\tamount\\tof\\tassembly\\trequired\\tin\\tthe\\tfield.\\tWe\\talso\\tcustomize\\tsolutions\\tincluding\\tour\\tenergy\\tstorage\\tproducts,\\nsolar\\tenergy\\tsystems\\tand/or\\tSolar\\tRoof\\tfor\\tcustomers\\tto\\tmeet\\ttheir\\tspecific\\tneeds.\\nSales\\tand\\tMarketing\\nHistorically,\\twe\\thave\\tbeen\\table\\tto\\tachieve\\tsales\\twithout\\ttraditional\\tadvertising\\tand\\tat\\trelatively\\tlow\\tmarketing\\tcosts.\\tWe\\tcontinue\\tto\\tmonitor\\tour\\npublic\\tnarrative\\tand\\tbrand,\\tand\\ttailor\\tour\\tmarketing\\tefforts\\taccordingly,\\tincluding\\tthrough\\tinvestments\\tin\\tcustomer\\teducation\\tand\\tadvertising\\tas\\nnecessary.\\nAutomotive\\nDirect\\tSales\\nOur\\tvehicle\\tsales\\tchannels\\tcurrently\\tinclude\\tour\\twebsite\\tand\\tan\\tinternational\\tnetwork\\tof\\tcompany-owned\\tstores.\\tIn\\tsome\\tjurisdictions,\\twe\\talso\\thave\\ngalleries\\tto\\teducate\\tand\\tinform\\tcustomers\\tabout\\tour\\tproducts,\\tbut\\tsuch\\tlocations\\tdo\\tnot\\ttransact\\tin\\tthe\\tsale\\tof\\tvehicles.\\tWe\\tbelieve\\tthis\\tinfrastructure\\nenables\\tus\\tto\\tbetter\\tcontrol\\tcosts\\tof\\tinventory,\\tmanage\\twarranty\\tservice\\tand\\tpricing,\\teducate\\tconsumers\\tabout\\telectric\\tvehicles,\\tmake\\tour\\tvehicles\\tmore\\naffordable,\\tmaintain\\tand\\tstrengthen\\tthe\\tTesla\\tbrand\\tand\\tobtain\\trapid\\tcustomer\\tfeedback.\\nWe\\treevaluate\\tour\\tsales\\tstrategy\\tboth\\tglobally\\tand\\tat\\ta\\tlocation-by-location\\tlevel\\tfrom\\ttime\\tto\\ttime\\tto\\toptimize\\tour\\tsales\\tchannels.\\tHowever,\\tsales\\nof\\tvehicles\\tin\\tthe\\tautomobile\\tindustry\\ttend\\tto\\tbe\\tcyclical\\tin\\tmany\\tmarkets,\\twhich\\tmay\\texpose\\tus\\tto\\tvolatility\\tfrom\\ttime\\tto\\ttime.\\n6\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 7,\n        \"lines\": {\n          \"from\": 22,\n          \"to\": 39\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Table\\tof\\tContents\\nUsed\\tVehicle\\tSales\\nOur\\tused\\tvehicle\\tbusiness\\tsupports\\tnew\\tvehicle\\tsales\\tby\\tintegrating\\tthe\\ttrade-in\\tof\\ta\\tcustomer’s\\texisting\\tTesla\\tor\\tnon-Tesla\\tvehicle\\twith\\tthe\\tsale\\tof\\na\\tnew\\tor\\tused\\tTesla\\tvehicle.\\tThe\\tTesla\\tand\\tnon-Tesla\\tvehicles\\twe\\tacquire\\tas\\ttrade-ins\\tare\\tsubsequently\\tremarketed,\\teither\\tdirectly\\tby\\tus\\tor\\tthrough\\tthird\\nparties.\\tWe\\talso\\tremarket\\tused\\tTesla\\tvehicles\\tacquired\\tfrom\\tother\\tsources\\tincluding\\tlease\\treturns.\\nPublic\\tCharging\\nWe\\thave\\ta\\tgrowing\\tglobal\\tnetwork\\tof\\tTesla\\tSuperchargers,\\twhich\\tare\\tour\\tindustrial-grade,\\thigh-speed\\tvehicle\\tchargers.\\tWhere\\tpossible,\\twe\\tco-\\nlocate\\tSuperchargers\\twith\\tour\\tsolar\\tand\\tenergy\\tstorage\\tsystems\\tto\\treduce\\tcosts\\tand\\tpromote\\trenewable\\tpower.\\tSupercharger\\tstations\\tare\\ttypically\\nplaced\\talong\\twell-traveled\\troutes\\tand\\tin\\tand\\taround\\tdense\\tcity\\tcenters\\tto\\tallow\\tvehicle\\towners\\tthe\\tability\\tto\\tenjoy\\tquick,\\treliable\\tcharging\\talong\\tan\\nextensive\\tnetwork\\twith\\tconvenient\\tstops.\\tUse\\tof\\tthe\\tSupercharger\\tnetwork\\teither\\trequires\\tpayment\\tof\\ta\\tfee\\tor\\tis\\tfree\\tunder\\tcertain\\tsales\\tprograms.\\tIn\\nNovember\\t2021,\\twe\\tbegan\\tto\\toffer\\tSupercharger\\taccess\\tto\\tnon-Tesla\\tvehicles\\tin\\tcertain\\tlocations\\tin\\tsupport\\tof\\tour\\tmission\\tto\\taccelerate\\tthe\\tworld’s\\ntransition\\tto\\tsustainable\\tenergy,\\tand\\tin\\tNovember\\t2022,\\twe\\topened\\tup\\tour\\tpreviously\\tproprietary\\tcharging\\tconnector\\tas\\tthe\\tNorth\\tAmerican\\tCharging\\nStandard\\t(NACS).\\tThis\\tenables\\tall\\telectric\\tvehicles\\tand\\tcharging\\tstations\\tto\\tinteroperate\\t—\\twhich\\tmakes\\tcharging\\teasier\\tand\\tmore\\tefficient\\tfor\\teveryone\\nand\\tadvances\\tour\\tmission\\tto\\taccelerate\\tthe\\tworld’s\\ttransition\\tto\\tsustainable\\tenergy.\\tFollowing\\tthis,\\ta\\tnumber\\tof\\tmajor\\tautomotive\\tcompanies\\tannounced\\ntheir\\tadoption\\tof\\tNACS,\\twith\\ttheir\\taccess\\tto\\tthe\\tSupercharger\\tnetwork\\tbeginning\\tin\\tphases\\tin\\t2024\\tand\\ttheir\\tproduction\\tof\\tNACS\\tvehicles\\tbeginning\\tno\\nlater\\tthan\\t2025.\\tWe\\talso\\tengaged\\tSAE\\tInternational\\tto\\tgovern\\tNACS\\tas\\tan\\tindustry\\tstandard,\\tnow\\tnamed\\tJ3400.\\tWe\\tcontinue\\tto\\tmonitor\\tand\\tincrease\\tour\\nnetwork\\tof\\tTesla\\tSuperchargers\\tin\\tanticipation\\tof\\tfuture\\tdemand.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 8,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 17\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"We\\talso\\twork\\twith\\ta\\twide\\tvariety\\tof\\thospitality,\\tretail\\tand\\tpublic\\tdestinations,\\tas\\twell\\tas\\tbusinesses\\twith\\tcommuting\\temployees,\\tto\\toffer\\tadditional\\ncharging\\toptions\\tfor\\tour\\tcustomers,\\tas\\twell\\tas\\tsingle-family\\thomeowners\\tand\\tmulti-family\\tresidential\\tentities,\\tto\\tdeploy\\thome\\tcharging\\tsolutions.\\nIn-App\\tUpgrades\\nAs\\tour\\tvehicles\\tare\\tcapable\\tof\\tbeing\\tupdated\\tremotely\\tover-the-air,\\tour\\tcustomers\\tmay\\tpurchase\\tadditional\\tpaid\\toptions\\tand\\tfeatures\\tthrough\\tthe\\nTesla\\tapp\\tor\\tthrough\\tthe\\tin-vehicle\\tuser\\tinterface.\\tWe\\texpect\\tthat\\tthis\\tfunctionality\\twill\\talso\\tallow\\tus\\tto\\toffer\\tcertain\\toptions\\tand\\tfeatures\\ton\\ta\\nsubscription\\tbasis\\tin\\tthe\\tfuture.\\nEnergy\\tGeneration\\tand\\tStorage\\nWe\\tmarket\\tand\\tsell\\tour\\tsolar\\tand\\tenergy\\tstorage\\tproducts\\tto\\tresidential,\\tcommercial\\tand\\tindustrial\\tcustomers\\tand\\tutilities\\tthrough\\ta\\tvariety\\tof\\nchannels,\\tincluding\\tthrough\\tour\\twebsite,\\tstores\\tand\\tgalleries,\\tas\\twell\\tas\\tthrough\\tour\\tnetwork\\tof\\tchannel\\tpartners,\\tand\\tin\\tthe\\tcase\\tof\\tsome\\tcommercial\\ncustomers,\\tthrough\\tPPA\\ttransactions.\\tWe\\temphasize\\tsimplicity,\\tstandardization\\tand\\taccessibility\\tto\\tmake\\tit\\teasy\\tand\\tcost-effective\\tfor\\tcustomers\\tto\\tadopt\\nclean\\tenergy,\\twhile\\treducing\\tour\\tcustomer\\tacquisition\\tcosts.\\nService\\tand\\tWarranty\\nAutomotive\\nService\\nWe\\tprovide\\tservice\\tfor\\tour\\telectric\\tvehicles\\tat\\tour\\tcompany-owned\\tservice\\tlocations\\tand\\tthrough\\tTesla\\tMobile\\tService\\ttechnicians\\twho\\tperform\\twork\\nremotely\\tat\\tcustomers’\\thomes\\tor\\tother\\tlocations.\\tServicing\\tthe\\tvehicles\\tourselves\\tallows\\tus\\tto\\tidentify\\tproblems\\tand\\timplement\\tsolutions\\tand\\nimprovements\\tfaster\\tthan\\ttraditional\\tautomobile\\tmanufacturers\\tand\\ttheir\\tdealer\\tnetworks.\\tThe\\tconnectivity\\tof\\tour\\tvehicles\\talso\\tallows\\tus\\tto\\tdiagnose\\tand\\nremedy\\tmany\\tproblems\\tremotely\\tand\\tproactively.\\nVehicle\\tLimited\\tWarranties\\tand\\tExtended\\tService\\tPlans\\nWe\\tprovide\\ta\\tmanufacturer’s\\tlimited\\twarranty\\ton\\tall\\tnew\\tand\\tused\\tTesla\\tvehicles\\twe\\tsell\\tdirectly\\tto\\tconsumers,\\twhich\\tmay\\tinclude\\tlimited\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 8,\n        \"lines\": {\n          \"from\": 18,\n          \"to\": 37\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"warranties\\ton\\tcertain\\tcomponents,\\tspecific\\ttypes\\tof\\tdamage\\tor\\tbattery\\tcapacity\\tretention.\\tWe\\talso\\tcurrently\\toffer\\toptional\\textended\\tservice\\tplans\\tthat\\nprovide\\tcoverage\\tbeyond\\tthe\\tnew\\tvehicle\\tlimited\\twarranties\\tfor\\tcertain\\tmodels\\tin\\tspecified\\tregions.\\n7\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 8,\n        \"lines\": {\n          \"from\": 38,\n          \"to\": 40\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Table\\tof\\tContents\\nEnergy\\tGeneration\\tand\\tStorage\\nWe\\tprovide\\tservice\\tand\\trepairs\\tto\\tour\\tenergy\\tproduct\\tcustomers,\\tincluding\\tunder\\twarranty\\twhere\\tapplicable.\\tWe\\tgenerally\\tprovide\\tmanufacturer’s\\nlimited\\twarranties\\twith\\tour\\tenergy\\tstorage\\tproducts\\tand\\toffer\\tcertain\\textended\\tlimited\\twarranties\\tthat\\tare\\tavailable\\tat\\tthe\\ttime\\tof\\tpurchase\\tof\\tthe\\nsystem.\\tIf\\twe\\tinstall\\ta\\tsystem,\\twe\\talso\\tprovide\\tcertain\\tlimited\\twarranties\\ton\\tour\\tinstallation\\tworkmanship.\\nFor\\tretrofit\\tsolar\\tenergy\\tsystems,\\twe\\tprovide\\tseparate\\tlimited\\twarranties\\tfor\\tworkmanship\\tand\\tagainst\\troof\\tleaks,\\tand\\tfor\\tSolar\\tRoof,\\twe\\talso\\nprovide\\tlimited\\twarranties\\tfor\\tdefects\\tand\\tweatherization.\\tFor\\tcomponents\\tnot\\tmanufactured\\tby\\tus,\\twe\\tgenerally\\tpass-through\\tthe\\tapplicable\\nmanufacturers’\\twarranties.\\nAs\\tpart\\tof\\tour\\tsolar\\tenergy\\tsystem\\tand\\tenergy\\tstorage\\tcontracts,\\twe\\tmay\\tprovide\\tthe\\tcustomer\\twith\\tperformance\\tguarantees\\tthat\\tcommit\\tthat\\tthe\\nunderlying\\tsystem\\twill\\tmeet\\tor\\texceed\\tthe\\tminimum\\tenergy\\tgeneration\\tor\\tperformance\\trequirements\\tspecified\\tin\\tthe\\tcontract.\\nFinancial\\tServices\\nAutomotive\\nPurchase\\tFinancing\\tand\\tLeases\\nWe\\toffer\\tleasing\\tand/or\\tloan\\tfinancing\\tarrangements\\tfor\\tour\\tvehicles\\tin\\tcertain\\tjurisdictions\\tin\\tNorth\\tAmerica,\\tEurope\\tand\\tAsia\\tourselves\\tand\\nthrough\\tvarious\\tfinancial\\tinstitutions.\\tUnder\\tcertain\\tof\\tsuch\\tprograms,\\twe\\thave\\tprovided\\tresale\\tvalue\\tguarantees\\tor\\tbuyback\\tguarantees\\tthat\\tmay\\nobligate\\tus\\tto\\tcover\\ta\\tresale\\tloss\\tup\\tto\\ta\\tcertain\\tlimit\\tor\\trepurchase\\tthe\\tsubject\\tvehicles\\tat\\tpre-determined\\tvalues.\\nInsurance\\nIn\\t2021,\\twe\\tlaunched\\tour\\tinsurance\\tproduct\\tusing\\treal-time\\tdriving\\tbehavior\\tin\\tselect\\tstates,\\twhich\\toffers\\trates\\tthat\\tare\\toften\\tbetter\\tthan\\tother\\nalternatives\\tand\\tpromotes\\tsafer\\tdriving.\\tOur\\tinsurance\\tproducts\\tare\\tcurrently\\tavailable\\tin\\t12\\tstates\\tand\\twe\\tplan\\tto\\texpand\\tthe\\tmarkets\\tin\\twhich\\twe\\toffer\\ninsurance\\tproducts,\\tas\\tpart\\tof\\tour\\tongoing\\teffort\\tto\\tdecrease\\tthe\\ttotal\\tcost\\tof\\townership\\tfor\\tour\\tcustomers.\\nEnergy\\tGeneration\\tand\\tStorage\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 9,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 21\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Energy\\tGeneration\\tand\\tStorage\\nWe\\toffer\\tcertain\\tfinancing\\toptions\\tto\\tour\\tsolar\\tcustomers,\\twhich\\tenable\\tthe\\tcustomer\\tto\\tpurchase\\tand\\town\\ta\\tsolar\\tenergy\\tsystem,\\tSolar\\tRoof\\tor\\nintegrated\\tsolar\\tand\\tPowerwall\\tsystem.\\tOur\\tsolar\\tPPAs,\\toffered\\tprimarily\\tto\\tcommercial\\tcustomers,\\tcharge\\ta\\tfee\\tper\\tkilowatt-hour\\tbased\\ton\\tthe\\tamount\\tof\\nelectricity\\tproduced\\tby\\tour\\tsolar\\tenergy\\tsystems.\\nManufacturing\\nWe\\tcurrently\\thave\\tmanufacturing\\tfacilities\\tin\\tthe\\tU.S.\\tin\\tNorthern\\tCalifornia,\\tin\\tBuffalo,\\tNew\\tYork,\\tGigafactory\\tNew\\tYork;\\tin\\tAustin,\\tTexas,\\nGigafactory\\tTexas\\tand\\tnear\\tReno,\\tNevada,\\tGigafactory\\tNevada.\\tAt\\tthese\\tfacilities,\\twe\\tmanufacture\\tand\\tassemble,\\tamong\\tother\\tthings,\\tvehicles,\\tcertain\\nvehicle\\tparts\\tand\\tcomponents,\\tsuch\\tas\\tour\\tbattery\\tpacks\\tand\\tbattery\\tcells,\\tenergy\\tstorage\\tcomponents\\tand\\tsolar\\tproducts\\tand\\tcomponents.\\nInternationally,\\twe\\talso\\thave\\tmanufacturing\\tfacilities\\tin\\tChina\\t(Gigafactory\\tShanghai)\\tand\\tGermany\\t(Gigafactory\\tBerlin-Brandenburg),\\twhich\\tallows\\nus\\tto\\tincrease\\tthe\\taffordability\\tof\\tour\\tvehicles\\tfor\\tcustomers\\tin\\tlocal\\tmarkets\\tby\\treducing\\ttransportation\\tand\\tmanufacturing\\tcosts\\tand\\teliminating\\tthe\\nimpact\\tof\\tunfavorable\\ttariffs.\\tIn\\tMarch\\t2023,\\twe\\tannounced\\tthe\\tlocation\\tof\\tour\\tnext\\tGigafactory\\tin\\tMonterrey,\\tMexico.\\tGenerally,\\twe\\tcontinue\\tto\\texpand\\nproduction\\tcapacity\\tat\\tour\\texisting\\tfacilities.\\tWe\\talso\\tintend\\tto\\tfurther\\tincrease\\tcost-competitiveness\\tin\\tour\\tsignificant\\tmarkets\\tby\\tstrategically\\tadding\\nlocal\\tmanufacturing.\\nSupply\\tChain\\nOur\\tproducts\\tuse\\tthousands\\tof\\tparts\\tthat\\tare\\tsourced\\tfrom\\thundreds\\tof\\tsuppliers\\tacross\\tthe\\tworld.\\tWe\\thave\\tdeveloped\\tclose\\trelationships\\twith\\nvendors\\tof\\tkey\\tparts\\tsuch\\tas\\tbattery\\tcells,\\telectronics\\tand\\tcomplex\\tvehicle\\tassemblies.\\tCertain\\tcomponents\\tpurchased\\tfrom\\tthese\\tsuppliers\\tare\\tshared\\tor\\nare\\tsimilar\\tacross\\tmany\\tproduct\\tlines,\\tallowing\\tus\\tto\\ttake\\tadvantage\\tof\\tpricing\\tefficiencies\\tfrom\\teconomies\\tof\\tscale.\\n8\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 9,\n        \"lines\": {\n          \"from\": 21,\n          \"to\": 38\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Table\\tof\\tContents\\nAs\\tis\\tthe\\tcase\\tfor\\tsome\\tautomotive\\tcompanies,\\tsome\\tof\\tour\\tprocured\\tcomponents\\tand\\tsystems\\tare\\tsourced\\tfrom\\tsingle\\tsuppliers.\\tWhere\\tmultiple\\nsources\\tare\\tavailable\\tfor\\tcertain\\tkey\\tcomponents,\\twe\\twork\\tto\\tqualify\\tmultiple\\tsuppliers\\tfor\\tthem\\twhere\\tit\\tis\\tsensible\\tto\\tdo\\tso\\tin\\torder\\tto\\tminimize\\npotential\\tproduction\\trisks\\tdue\\tto\\tdisruptions\\tin\\ttheir\\tsupply.\\tWe\\talso\\tmitigate\\trisk\\tby\\tmaintaining\\tsafety\\tstock\\tfor\\tkey\\tparts\\tand\\tassemblies\\tand\\tdie\\tbanks\\nfor\\tcomponents\\twith\\tlengthy\\tprocurement\\tlead\\ttimes.\\nOur\\tproducts\\tuse\\tvarious\\traw\\tmaterials\\tincluding\\taluminum,\\tsteel,\\tcobalt,\\tlithium,\\tnickel\\tand\\tcopper.\\tPricing\\tfor\\tthese\\tmaterials\\tis\\tgoverned\\tby\\nmarket\\tconditions\\tand\\tmay\\tfluctuate\\tdue\\tto\\tvarious\\tfactors\\toutside\\tof\\tour\\tcontrol,\\tsuch\\tas\\tsupply\\tand\\tdemand\\tand\\tmarket\\tspeculation.\\tWe\\tstrive\\tto\\nexecute\\tlong-term\\tsupply\\tcontracts\\tfor\\tsuch\\tmaterials\\tat\\tcompetitive\\tpricing\\twhen\\tfeasible,\\tand\\twe\\tcurrently\\tbelieve\\tthat\\twe\\thave\\tadequate\\taccess\\tto\\nraw\\tmaterials\\tsupplies\\tto\\tmeet\\tthe\\tneeds\\tof\\tour\\toperations.\\nGovernmental\\tPrograms,\\tIncentives\\tand\\tRegulations\\nGlobally,\\tthe\\townership\\tof\\tour\\tproducts\\tby\\tour\\tcustomers\\tis\\timpacted\\tby\\tvarious\\tgovernment\\tcredits,\\tincentives,\\tand\\tpolicies.\\tOur\\tbusiness\\tand\\nproducts\\tare\\talso\\tsubject\\tto\\tnumerous\\tgovernmental\\tregulations\\tthat\\tvary\\tamong\\tjurisdictions.\\nThe\\toperation\\tof\\tour\\tbusiness\\tis\\talso\\timpacted\\tby\\tvarious\\tgovernment\\tprograms,\\tincentives,\\tand\\tother\\tarrangements.\\tSee\\tNote\\t2,\\tSummary\\tof\\nSignificant\\tAccounting\\tPolicies,\\tto\\tthe\\tconsolidated\\tfinancial\\tstatements\\tincluded\\telsewhere\\tin\\tthis\\tAnnual\\tReport\\ton\\tForm\\t10-K\\tfor\\tfurther\\tdetails.\\nPrograms\\tand\\tIncentives\\nInflation\\tReduction\\tAct\\nOn\\tAugust\\t16,\\t2022,\\tthe\\tInflation\\tReduction\\tAct\\tof\\t2022\\t(“IRA”)\\twas\\tenacted\\tinto\\tlaw\\tand\\tis\\teffective\\tfor\\ttaxable\\tyears\\tbeginning\\tafter\\tDecember\\n31,\\t2022,\\tand\\tremains\\tsubject\\tto\\tfuture\\tguidance\\treleases.\\tThe\\tIRA\\tincludes\\tmultiple\\tincentives\\tto\\tpromote\\tclean\\tenergy,\\telectric\\tvehicles,\\tbattery\\tand\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 10,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 18\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"energy\\tstorage\\tmanufacture\\tor\\tpurchase,\\tincluding\\tthrough\\tproviding\\ttax\\tcredits\\tto\\tconsumers.\\tFor\\texample,\\tqualifying\\tTesla\\tcustomers\\tmay\\treceive\\tup\\nto\\t$7,500\\tin\\tfederal\\ttax\\tcredits\\tfor\\tthe\\tpurchase\\tof\\tqualified\\telectric\\tvehicles\\tin\\tthe\\tU.S.\\tthrough\\t2032.\\nAutomotive\\tRegulatory\\tCredits\\nWe\\tearn\\ttradable\\tcredits\\tin\\tthe\\toperation\\tof\\tour\\tbusiness\\tunder\\tvarious\\tregulations\\trelated\\tto\\tzero-emission\\tvehicles\\t(“ZEVs”),\\tgreenhouse\\tgas,\\tfuel\\neconomy\\tand\\tclean\\tfuel.\\tWe\\tsell\\tthese\\tcredits\\tto\\tother\\tregulated\\tentities\\twho\\tcan\\tuse\\tthe\\tcredits\\tto\\tcomply\\twith\\temission\\tstandards\\tand\\tother\\tregulatory\\nrequirements.\\tSales\\tof\\tthese\\tcredits\\tare\\trecognized\\twithin\\tautomotive\\tregulatory\\tcredits\\trevenue\\tin\\tour\\tconsolidated\\tstatements\\tof\\toperations\\tincluded\\nelsewhere\\tin\\tthis\\tAnnual\\tReport\\ton\\tForm\\t10-K.\\nEnergy\\tStorage\\tSystem\\tIncentives\\tand\\tPolicies\\nWhile\\tthe\\tregulatory\\tregime\\tfor\\tenergy\\tstorage\\tprojects\\tis\\tstill\\tunder\\tdevelopment,\\tthere\\tare\\tvarious\\tpolicies,\\tincentives\\tand\\tfinancial\\tmechanisms\\nat\\tthe\\tfederal,\\tstate\\tand\\tlocal\\tlevels\\tthat\\tsupport\\tthe\\tadoption\\tof\\tenergy\\tstorage.\\nFor\\texample,\\tenergy\\tstorage\\tsystems\\tthat\\tare\\tcharged\\tusing\\tsolar\\tenergy\\tmay\\tbe\\teligible\\tfor\\tthe\\tsolar\\tenergy-related\\tU.S.\\tfederal\\ttax\\tcredits\\ndescribed\\tbelow.\\tThe\\tFederal\\tEnergy\\tRegulatory\\tCommission\\t(“FERC”)\\thas\\talso\\ttaken\\tsteps\\tto\\tenable\\tthe\\tparticipation\\tof\\tenergy\\tstorage\\tin\\twholesale\\nenergy\\tmarkets.\\tIn\\taddition,\\tCalifornia\\tand\\ta\\tnumber\\tof\\tother\\tstates\\thave\\tadopted\\tprocurement\\ttargets\\tfor\\tenergy\\tstorage,\\tand\\tbehind-the-meter\\tenergy\\nstorage\\tsystems\\tqualify\\tfor\\tfunding\\tunder\\tthe\\tCalifornia\\tSelf\\tGeneration\\tIncentive\\tProgram.\\tOur\\tcustomers\\tprimarily\\tbenefit\\tdirectly\\tunder\\tthese\\nprograms.\\tIn\\tcertain\\tinstances\\tour\\tcustomers\\tmay\\ttransfer\\tsuch\\tcredits\\tto\\tus\\tas\\tcontract\\tconsideration.\\tIn\\tsuch\\ttransactions,\\tthey\\tare\\tincluded\\tas\\ta\\ncomponent\\tof\\tenergy\\tgeneration\\tand\\tstorage\\trevenues\\tin\\tour\\tconsolidated\\tstatements\\tof\\toperations\\tincluded\\telsewhere\\tin\\tthis\\tAnnual\\tReport\\ton\\tForm\\n10-K.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 10,\n        \"lines\": {\n          \"from\": 19,\n          \"to\": 35\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"10-K.\\nPursuant\\tto\\tthe\\tIRA,\\tunder\\tSections\\t48,\\t48E\\tand\\t25D\\tof\\tthe\\tInternal\\tRevenue\\tCode\\t(”IRC”),\\tstandalone\\tenergy\\tstorage\\ttechnology\\tis\\teligible\\tfor\\ta\\ttax\\ncredit\\tbetween\\t6%\\tand\\t50%\\tof\\tqualified\\texpenditures,\\tregardless\\tof\\tthe\\tsource\\tof\\tenergy,\\twhich\\tmay\\tbe\\tclaimed\\tby\\tour\\tcustomers\\tfor\\tstorage\\tsystems\\nthey\\tpurchase\\tor\\tby\\tus\\tfor\\tarrangements\\twhere\\twe\\town\\tthe\\tsystems.\\tThese\\ttax\\tcredits\\tare\\tprimarily\\tfor\\tthe\\tbenefit\\tof\\tour\\tcustomers\\tand\\tare\\tcurrently\\nscheduled\\tto\\tphase-out\\tstarting\\tin\\t2032\\tor\\tlater.\\n9\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 10,\n        \"lines\": {\n          \"from\": 35,\n          \"to\": 40\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Table\\tof\\tContents\\nSolar\\tEnergy\\tSystem\\tIncentives\\tand\\tPolicies\\nU.S.\\tfederal,\\tstate\\tand\\tlocal\\tgovernments\\thave\\testablished\\tvarious\\tpolicies,\\tincentives\\tand\\tfinancial\\tmechanisms\\tto\\treduce\\tthe\\tcost\\tof\\tsolar\\tenergy\\nand\\tto\\taccelerate\\tthe\\tadoption\\tof\\tsolar\\tenergy.\\tThese\\tincentives\\tinclude\\ttax\\tcredits,\\tcash\\tgrants,\\ttax\\tabatements\\tand\\trebates.\\nIn\\tparticular,\\tpursuant\\tto\\tthe\\tIRA,\\tSections\\t48,\\t48E\\tand\\t25D\\tof\\tthe\\tIRC\\tprovides\\ta\\ttax\\tcredit\\tbetween\\t6%\\tand\\t70%\\tof\\tqualified\\tcommercial\\tor\\nresidential\\texpenditures\\tfor\\tsolar\\tenergy\\tsystems,\\twhich\\tmay\\tbe\\tclaimed\\tby\\tour\\tcustomers\\tfor\\tsystems\\tthey\\tpurchase,\\tor\\tby\\tus\\tfor\\tarrangements\\twhere\\nwe\\town\\tthe\\tsystems\\tfor\\tproperties\\tthat\\tmeet\\tstatutory\\trequirements.\\tThese\\ttax\\tcredits\\tare\\tprimarily\\tfor\\tthe\\tdirect\\tbenefit\\tof\\tour\\tcustomers\\tand\\tare\\ncurrently\\tscheduled\\tto\\tphase-out\\tstarting\\tin\\t2032\\tor\\tlater.\\nRegulations\\nVehicle\\tSafety\\tand\\tTesting\\nIn\\tthe\\tU.S.,\\tour\\tvehicles\\tare\\tsubject\\tto\\tregulation\\tby\\tthe\\tNational\\tHighway\\tTraffic\\tSafety\\tAdministration\\t(“NHTSA”),\\tincluding\\tall\\tapplicable\\tFederal\\nMotor\\tVehicle\\tSafety\\tStandards\\t(“FMVSS”)\\tand\\tthe\\tNHTSA\\tbumper\\tstandard.\\tNumerous\\tFMVSS\\tapply\\tto\\tour\\tvehicles,\\tsuch\\tas\\tcrash-worthiness\\tand\\noccupant\\tprotection\\trequirements.\\tOur\\tcurrent\\tvehicles\\tfully\\tcomply\\tand\\twe\\texpect\\tthat\\tour\\tvehicles\\tin\\tthe\\tfuture\\twill\\tfully\\tcomply\\twith\\tall\\tapplicable\\nFMVSS\\twith\\tlimited\\tor\\tno\\texemptions,\\thowever,\\tFMVSS\\tare\\tsubject\\tto\\tchange\\tfrom\\ttime\\tto\\ttime.\\tAs\\ta\\tmanufacturer,\\twe\\tmust\\tself-certify\\tthat\\tour\\tvehicles\\nmeet\\tall\\tapplicable\\tFMVSS\\tand\\tthe\\tNHTSA\\tbumper\\tstandard,\\tor\\totherwise\\tare\\texempt,\\tbefore\\tthe\\tvehicles\\tmay\\tbe\\timported\\tor\\tsold\\tin\\tthe\\tU.S.\\nWe\\tare\\talso\\trequired\\tto\\tcomply\\twith\\tother\\tfederal\\tlaws\\tadministered\\tby\\tNHTSA,\\tincluding\\tthe\\tCorporate\\tAverage\\tFuel\\tEconomy\\tstandards,\\tTheft\\nPrevention\\tAct\\trequirements,\\tlabeling\\trequirements\\tand\\tother\\tinformation\\tprovided\\tto\\tcustomers\\tin\\twriting,\\tEarly\\tWarning\\tReporting\\trequirements\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 11,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 17\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"regarding\\twarranty\\tclaims,\\tfield\\treports,\\tdeath\\tand\\tinjury\\treports\\tand\\tforeign\\trecalls,\\ta\\tStanding\\tGeneral\\tOrder\\trequiring\\treports\\tregarding\\tcrashes\\ninvolving\\tvehicles\\tequipped\\twith\\tadvanced\\tdriver\\tassistance\\tsystems,\\tand\\tadditional\\trequirements\\tfor\\tcooperating\\twith\\tcompliance\\tand\\tsafety\\ninvestigations\\tand\\trecall\\treporting.\\tThe\\tU.S.\\tAutomobile\\tInformation\\tand\\tDisclosure\\tAct\\talso\\trequires\\tmanufacturers\\tof\\tmotor\\tvehicles\\tto\\tdisclose\\tcertain\\ninformation\\tregarding\\tthe\\tmanufacturer’s\\tsuggested\\tretail\\tprice,\\toptional\\tequipment\\tand\\tpricing.\\tIn\\taddition,\\tfederal\\tlaw\\trequires\\tinclusion\\tof\\tfuel\\neconomy\\tratings,\\tas\\tdetermined\\tby\\tthe\\tU.S.\\tDepartment\\tof\\tTransportation\\tand\\tthe\\tEnvironmental\\tProtection\\tAgency\\t(the\\t“EPA”),\\tand\\tNew\\tCar\\nAssessment\\tProgram\\tratings\\tas\\tdetermined\\tby\\tNHTSA,\\tif\\tavailable.\\nOur\\tvehicles\\tsold\\toutside\\tof\\tthe\\tU.S.\\tare\\tsubject\\tto\\tsimilar\\tforeign\\tcompliance,\\tsafety,\\tenvironmental\\tand\\tother\\tregulations.\\tMany\\tof\\tthose\\nregulations\\tare\\tdifferent\\tfrom\\tthose\\tapplicable\\tin\\tthe\\tU.S.\\tand\\tmay\\trequire\\tredesign\\tand/or\\tretesting.\\tSome\\tof\\tthose\\tregulations\\timpact\\tor\\tprevent\\tthe\\nrollout\\tof\\tnew\\tvehicle\\tfeatures.\\nSelf-Driving\\tVehicles\\nGenerally,\\tlaws\\tpertaining\\tto\\tself-driving\\tvehicles\\tare\\tevolving\\tglobally,\\tand\\tin\\tsome\\tcases\\tmay\\tcreate\\trestrictions\\ton\\tfeatures\\tor\\tvehicle\\tdesigns\\nthat\\twe\\tdevelop.\\tWhile\\tthere\\tare\\tcurrently\\tno\\tfederal\\tU.S.\\tregulations\\tpertaining\\tspecifically\\tto\\tself-driving\\tvehicles\\tor\\tself-driving\\tequipment,\\tNHTSA\\thas\\npublished\\trecommended\\tguidelines\\ton\\tself-driving\\tvehicles,\\tapart\\tfrom\\tthe\\tFMVSS\\tand\\tmanufacturer\\treporting\\tobligations,\\tand\\tretains\\tthe\\tauthority\\tto\\ninvestigate\\tand/or\\ttake\\taction\\ton\\tthe\\tsafety\\tor\\tcompliance\\tof\\tany\\tvehicle,\\tequipment\\tor\\tfeatures\\toperating\\ton\\tpublic\\troads.\\tCertain\\tU.S.\\tstates\\talso\\thave\\nlegal\\trestrictions\\ton\\tthe\\toperation,\\tregistration\\tor\\tlicensure\\tof\\tself-driving\\tvehicles,\\tand\\tmany\\tother\\tstates\\tare\\tconsidering\\tthem.\\tThis\\tregulatory\\npatchwork\\tincreases\\tthe\\tlegal\\tcomplexity\\twith\\trespect\\tto\\tself-driving\\tvehicles\\tin\\tthe\\tU.S.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 11,\n        \"lines\": {\n          \"from\": 18,\n          \"to\": 33\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"In\\tmarkets\\tthat\\tfollow\\tthe\\tregulations\\tof\\tthe\\tUnited\\tNations\\tEconomic\\tCommission\\tfor\\tEurope\\t(“ECE\\tmarkets”),\\tsome\\trequirements\\trestrict\\tthe\\ndesign\\tof\\tadvanced\\tdriver-assistance\\tor\\tself-driving\\tfeatures,\\twhich\\tcan\\tcompromise\\tor\\tprevent\\ttheir\\tuse\\tentirely.\\tOther\\tapplicable\\tlaws,\\tboth\\tcurrent\\tand\\nproposed,\\tmay\\thinder\\tthe\\tpath\\tand\\ttimeline\\tto\\tintroducing\\tself-driving\\tvehicles\\tfor\\tsale\\tand\\tuse\\tin\\tthe\\tmarkets\\twhere\\tthey\\tapply.\\nOther\\tkey\\tmarkets,\\tincluding\\tChina,\\tcontinue\\tto\\tconsider\\tself-driving\\tregulation.\\tAny\\timplemented\\tregulations\\tmay\\tdiffer\\tmaterially\\tfrom\\tthe\\tU.S.\\nand\\tECE\\tmarkets,\\twhich\\tmay\\tfurther\\tincrease\\tthe\\tlegal\\tcomplexity\\tof\\tself-driving\\tvehicles\\tand\\tlimit\\tor\\tprevent\\tcertain\\tfeatures.\\n10\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 11,\n        \"lines\": {\n          \"from\": 34,\n          \"to\": 39\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Table\\tof\\tContents\\nAutomobile\\tManufacturer\\tand\\tDealer\\tRegulation\\nIn\\tthe\\tU.S.,\\tstate\\tlaws\\tregulate\\tthe\\tmanufacture,\\tdistribution,\\tsale\\tand\\tservice\\tof\\tautomobiles,\\tand\\tgenerally\\trequire\\tmotor\\tvehicle\\tmanufacturers\\nand\\tdealers\\tto\\tbe\\tlicensed\\tin\\torder\\tto\\tsell\\tvehicles\\tdirectly\\tto\\tresidents.\\tCertain\\tstates\\thave\\tasserted\\tthat\\tthe\\tlaws\\tin\\tsuch\\tstates\\tdo\\tnot\\tpermit\\tautomobile\\nmanufacturers\\tto\\tbe\\tlicensed\\tas\\tdealers\\tor\\tto\\tact\\tin\\tthe\\tcapacity\\tof\\ta\\tdealer,\\tor\\tthat\\tthey\\totherwise\\trestrict\\ta\\tmanufacturer’s\\tability\\tto\\tdeliver\\tor\\tperform\\nwarranty\\trepairs\\ton\\tvehicles.\\tTo\\tsell\\tvehicles\\tto\\tresidents\\tof\\tstates\\twhere\\twe\\tare\\tnot\\tlicensed\\tas\\ta\\tdealer,\\twe\\tgenerally\\tconduct\\tthe\\tsale\\tout\\tof\\tthe\\tstate.\\nIn\\tcertain\\tsuch\\tstates,\\twe\\thave\\topened\\t“galleries”\\tthat\\tserve\\tan\\teducational\\tpurpose\\tand\\twhere\\tsales\\tmay\\tnot\\toccur.\\nSome\\tautomobile\\tdealer\\ttrade\\tassociations\\thave\\tboth\\tchallenged\\tthe\\tlegality\\tof\\tour\\toperations\\tin\\tcourt\\tand\\tused\\tadministrative\\tand\\tlegislative\\nprocesses\\tto\\tattempt\\tto\\tprohibit\\tor\\tlimit\\tour\\tability\\tto\\toperate\\texisting\\tstores\\tor\\texpand\\tto\\tnew\\tlocations.\\tCertain\\tdealer\\tassociations\\thave\\talso\\tactively\\nlobbied\\tstate\\tlicensing\\tagencies\\tand\\tlegislators\\tto\\tinterpret\\texisting\\tlaws\\tor\\tenact\\tnew\\tlaws\\tin\\tways\\tnot\\tfavorable\\tto\\tour\\townership\\tand\\toperation\\tof\\tour\\nown\\tretail\\tand\\tservice\\tlocations.\\tWe\\texpect\\tsuch\\tchallenges\\tto\\tcontinue,\\tand\\twe\\tintend\\tto\\tactively\\tfight\\tany\\tsuch\\tefforts.\\nBattery\\tSafety\\tand\\tTesting\\nOur\\tbattery\\tpacks\\tare\\tsubject\\tto\\tvarious\\tU.S.\\tand\\tinternational\\tregulations\\tthat\\tgovern\\ttransport\\tof\\t“dangerous\\tgoods,”\\tdefined\\tto\\tinclude\\tlithium-\\nion\\tbatteries,\\twhich\\tmay\\tpresent\\ta\\trisk\\tin\\ttransportation.\\tWe\\tconduct\\ttesting\\tto\\tdemonstrate\\tour\\tcompliance\\twith\\tsuch\\tregulations.\\nWe\\tuse\\tlithium-ion\\tcells\\tin\\tour\\thigh\\tvoltage\\tbattery\\tpacks\\tin\\tour\\tvehicles\\tand\\tenergy\\tstorage\\tproducts.\\tThe\\tuse,\\tstorage\\tand\\tdisposal\\tof\\tour\\tbattery\\npacks\\tare\\tregulated\\tunder\\texisting\\tlaws\\tand\\tare\\tthe\\tsubject\\tof\\tongoing\\tregulatory\\tchanges\\tthat\\tmay\\tadd\\tadditional\\trequirements\\tin\\tthe\\tfuture.\\tWe\\thave\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 12,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 16\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"agreements\\twith\\tthird\\tparty\\tbattery\\trecycling\\tcompanies\\tto\\trecycle\\tour\\tbattery\\tpacks,\\tand\\twe\\tare\\talso\\tpiloting\\tour\\town\\trecycling\\ttechnology.\\nSolar\\tEnergy—General\\nWe\\tare\\tsubject\\tto\\tcertain\\tstate\\tand\\tfederal\\tregulations\\tapplicable\\tto\\tsolar\\tand\\tbattery\\tstorage\\tproviders\\tand\\tsellers\\tof\\telectricity.\\tTo\\toperate\\tour\\nsystems,\\twe\\tenter\\tinto\\tstandard\\tinterconnection\\tagreements\\twith\\tapplicable\\tutilities.\\tSales\\tof\\telectricity\\tand\\tnon-sale\\tequipment\\tleases\\tby\\tthird\\tparties,\\nsuch\\tas\\tour\\tleases\\tand\\tPPAs,\\thave\\tfaced\\tregulatory\\tchallenges\\tin\\tsome\\tstates\\tand\\tjurisdictions.\\nSolar\\tEnergy—Net\\tMetering\\nMost\\tstates\\tin\\tthe\\tU.S.\\tmake\\tnet\\tenergy\\tmetering,\\tor\\tnet\\tmetering,\\tavailable\\tto\\tsolar\\tcustomers.\\tNet\\tmetering\\ttypically\\tallows\\tsolar\\tcustomers\\tto\\ninterconnect\\ttheir\\tsolar\\tenergy\\tsystems\\tto\\tthe\\tutility\\tgrid\\tand\\toffset\\ttheir\\tutility\\telectricity\\tpurchases\\tby\\treceiving\\ta\\tbill\\tcredit\\tfor\\texcess\\tenergy\\tgenerated\\nby\\ttheir\\tsolar\\tenergy\\tsystem\\tthat\\tis\\texported\\tto\\tthe\\tgrid.\\tIn\\tcertain\\tjurisdictions,\\tregulators\\tor\\tutilities\\thave\\treduced\\tor\\teliminated\\tthe\\tbenefit\\tavailable\\nunder\\tnet\\tmetering\\tor\\thave\\tproposed\\tto\\tdo\\tso.\\nCompetition\\nAutomotive\\nThe\\tworldwide\\tautomotive\\tmarket\\tis\\thighly\\tcompetitive\\tand\\twe\\texpect\\tit\\twill\\tbecome\\teven\\tmore\\tcompetitive\\tin\\tthe\\tfuture\\tas\\ta\\tsignificant\\tand\\ngrowing\\tnumber\\tof\\testablished\\tand\\tnew\\tautomobile\\tmanufacturers,\\tas\\twell\\tas\\tother\\tcompanies,\\thave\\tentered,\\tor\\tare\\treported\\tto\\thave\\tplans\\tto\\tenter\\tthe\\nelectric\\tvehicle\\tmarket.\\nWe\\tbelieve\\tthat\\tour\\tvehicles\\tcompete\\tin\\tthe\\tmarket\\tbased\\ton\\tboth\\ttheir\\ttraditional\\tsegment\\tclassification\\tas\\twell\\tas\\ttheir\\tpropulsion\\ttechnology.\\tFor\\nexample,\\tCybertruck\\tcompetes\\twith\\tother\\tpickup\\ttrucks,\\tModel\\tS\\tand\\tModel\\tX\\tcompete\\tprimarily\\twith\\tpremium\\tsedans\\tand\\tpremium\\tSUVs\\tand\\tModel\\t3\\nand\\tModel\\tY\\tcompete\\twith\\tsmall\\tto\\tmedium-sized\\tsedans\\tand\\tcompact\\tSUVs,\\twhich\\tare\\textremely\\tcompetitive\\tmarkets.\\tCompeting\\tproducts\\ttypically\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 12,\n        \"lines\": {\n          \"from\": 17,\n          \"to\": 34\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"include\\tinternal\\tcombustion\\tvehicles\\tfrom\\tmore\\testablished\\tautomobile\\tmanufacturers;\\thowever,\\tmany\\testablished\\tand\\tnew\\tautomobile\\tmanufacturers\\nhave\\tentered\\tor\\thave\\tannounced\\tplans\\tto\\tenter\\tthe\\tmarket\\tfor\\telectric\\tand\\tother\\talternative\\tfuel\\tvehicles.\\tOverall,\\twe\\tbelieve\\tthese\\tannouncements\\tand\\nvehicle\\tintroductions,\\tincluding\\tthe\\tintroduction\\tof\\telectric\\tvehicles\\tinto\\trental\\tcar\\tcompany\\tfleets,\\tpromote\\tthe\\tdevelopment\\tof\\tthe\\telectric\\tvehicle\\nmarket\\tby\\thighlighting\\tthe\\tattractiveness\\tof\\telectric\\tvehicles\\trelative\\tto\\tthe\\tinternal\\tcombustion\\tvehicle.\\tMany\\tmajor\\tautomobile\\tmanufacturers\\thave\\nelectric\\tvehicles\\tavailable\\ttoday\\tin\\tmajor\\tmarkets\\tincluding\\tthe\\tU.S.,\\tChina\\tand\\tEurope,\\tand\\tother\\tcurrent\\tand\\tprospective\\tautomobile\\tmanufacturers\\tare\\nalso\\tdeveloping\\telectric\\tvehicles.\\tIn\\taddition,\\tseveral\\tmanufacturers\\toffer\\thybrid\\tvehicles,\\tincluding\\tplug-in\\tversions.\\n11\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 12,\n        \"lines\": {\n          \"from\": 35,\n          \"to\": 41\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Table\\tof\\tContents\\nWe\\tbelieve\\tthat\\tthere\\tis\\talso\\tincreasing\\tcompetition\\tfor\\tour\\tvehicle\\tofferings\\tas\\ta\\tplatform\\tfor\\tdelivering\\tself-driving\\ttechnologies,\\tcharging\\tsolutions\\nand\\tother\\tfeatures\\tand\\tservices,\\tand\\twe\\texpect\\tto\\tcompete\\tin\\tthis\\tdeveloping\\tmarket\\tthrough\\tcontinued\\tprogress\\ton\\tour\\tAutopilot,\\tFSD\\tand\\tneural\\nnetwork\\tcapabilities,\\tSupercharger\\tnetwork\\tand\\tour\\tinfotainment\\tofferings.\\nEnergy\\tGeneration\\tand\\tStorage\\nEnergy\\tStorage\\tSystems\\nThe\\tmarket\\tfor\\tenergy\\tstorage\\tproducts\\tis\\talso\\thighly\\tcompetitive,\\tand\\tboth\\testablished\\tand\\temerging\\tcompanies\\thave\\tintroduced\\tproducts\\tthat\\tare\\nsimilar\\tto\\tour\\tproduct\\tportfolio\\tor\\tthat\\tare\\talternatives\\tto\\tthe\\telements\\tof\\tour\\tsystems.\\tWe\\tcompete\\twith\\tthese\\tcompanies\\tbased\\ton\\tprice,\\tenergy\\tdensity\\nand\\tefficiency.\\tWe\\tbelieve\\tthat\\tthe\\tspecifications\\tand\\tfeatures\\tof\\tour\\tproducts,\\tour\\tstrong\\tbrand\\tand\\tthe\\tmodular,\\tscalable\\tnature\\tof\\tour\\tenergy\\tstorage\\nproducts\\tgive\\tus\\ta\\tcompetitive\\tadvantage\\tin\\tour\\tmarkets.\\nSolar\\tEnergy\\tSystems\\nThe\\tprimary\\tcompetitors\\tto\\tour\\tsolar\\tenergy\\tbusiness\\tare\\tthe\\ttraditional\\tlocal\\tutility\\tcompanies\\tthat\\tsupply\\tenergy\\tto\\tour\\tpotential\\tcustomers.\\tWe\\ncompete\\twith\\tthese\\ttraditional\\tutility\\tcompanies\\tprimarily\\tbased\\ton\\tprice\\tand\\tthe\\tease\\tby\\twhich\\tcustomers\\tcan\\tswitch\\tto\\telectricity\\tgenerated\\tby\\tour\\nsolar\\tenergy\\tsystems.\\tWe\\talso\\tcompete\\twith\\tsolar\\tenergy\\tcompanies\\tthat\\tprovide\\tproducts\\tand\\tservices\\tsimilar\\tto\\tours.\\tMany\\tsolar\\tenergy\\tcompanies\\nonly\\tinstall\\tsolar\\tenergy\\tsystems,\\twhile\\tothers\\tonly\\tprovide\\tfinancing\\tfor\\tthese\\tinstallations.\\tWe\\tbelieve\\twe\\thave\\ta\\tsignificant\\texpansion\\topportunity\\twith\\nour\\tofferings\\tand\\tthat\\tthe\\tregulatory\\tenvironment\\tis\\tincreasingly\\tconducive\\tto\\tthe\\tadoption\\tof\\trenewable\\tenergy\\tsystems.\\nIntellectual\\tProperty\\nWe\\tplace\\ta\\tstrong\\temphasis\\ton\\tour\\tinnovative\\tapproach\\tand\\tproprietary\\tdesigns\\twhich\\tbring\\tintrinsic\\tvalue\\tand\\tuniqueness\\tto\\tour\\tproduct\\tportfolio.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 13,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 18\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"As\\tpart\\tof\\tour\\tbusiness,\\twe\\tseek\\tto\\tprotect\\tthe\\tunderlying\\tintellectual\\tproperty\\trights\\tof\\tthese\\tinnovations\\tand\\tdesigns\\tsuch\\tas\\twith\\trespect\\tto\\tpatents,\\ntrademarks,\\tcopyrights,\\ttrade\\tsecrets,\\tconfidential\\tinformation\\tand\\tother\\tmeasures,\\tincluding\\tthrough\\temployee\\tand\\tthird-party\\tnondisclosure\\nagreements\\tand\\tother\\tcontractual\\tarrangements.\\tFor\\texample,\\twe\\tplace\\ta\\thigh\\tpriority\\ton\\tobtaining\\tpatents\\tto\\tprovide\\tthe\\tbroadest\\tand\\tstrongest\\npossible\\tprotection\\tto\\tenable\\tour\\tfreedom\\tto\\toperate\\tour\\tinnovations\\tand\\tdesigns\\tacross\\tall\\tof\\tour\\tproducts\\tand\\ttechnologies\\tas\\twell\\tas\\tto\\tprotect\\tand\\ndefend\\tour\\tproduct\\tportfolio.\\tWe\\thave\\talso\\tadopted\\ta\\tpatent\\tpolicy\\tin\\twhich\\twe\\tirrevocably\\tpledged\\tthat\\twe\\twill\\tnot\\tinitiate\\ta\\tlawsuit\\tagainst\\tany\\tparty\\tfor\\ninfringing\\tour\\tpatents\\tthrough\\tactivity\\trelating\\tto\\telectric\\tvehicles\\tor\\trelated\\tequipment\\tfor\\tso\\tlong\\tas\\tsuch\\tparty\\tis\\tacting\\tin\\tgood\\tfaith.\\tWe\\tmade\\tthis\\npledge\\tin\\torder\\tto\\tencourage\\tthe\\tadvancement\\tof\\ta\\tcommon,\\trapidly-evolving\\tplatform\\tfor\\telectric\\tvehicles,\\tthereby\\tbenefiting\\tourselves,\\tother\\ncompanies\\tmaking\\telectric\\tvehicles\\tand\\tthe\\tworld.\\nEnvironmental,\\tSocial\\tand\\tGovernance\\t(ESG)\\tand\\tHuman\\tCapital\\tResources\\nESG\\nThe\\tvery\\tpurpose\\tof\\tTesla's\\texistence\\tis\\tto\\taccelerate\\tthe\\tworld's\\ttransition\\tto\\tsustainable\\tenergy.\\tWe\\tbelieve\\tthe\\tworld\\tcannot\\treduce\\tcarbon\\nemissions\\twithout\\taddressing\\tboth\\tenergy\\tgeneration\\tand\\tconsumption,\\tand\\twe\\tare\\tdesigning\\tand\\tmanufacturing\\ta\\tcomplete\\tenergy\\tand\\ttransportation\\necosystem\\tto\\tachieve\\tthis\\tgoal.\\tAs\\twe\\texpand,\\twe\\tare\\tbuilding\\teach\\tnew\\tfactory\\tto\\tbe\\tmore\\tefficient\\tand\\tsustainably\\tdesigned\\tthan\\tthe\\tprevious\\tone,\\nincluding\\twith\\trespect\\tto\\tper-unit\\twaste\\treduction\\tand\\tresource\\tconsumption,\\tincluding\\twater\\tand\\tenergy\\tusage.\\tWe\\tare\\tfocused\\ton\\tfurther\\tenhancing\\nsustainability\\tof\\toperations\\toutside\\tof\\tour\\tdirect\\tcontrol,\\tincluding\\treducing\\tthe\\tcarbon\\tfootprint\\tof\\tour\\tsupply\\tchain.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 13,\n        \"lines\": {\n          \"from\": 19,\n          \"to\": 33\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"We\\tare\\tcommitted\\tto\\tsourcing\\tonly\\tresponsibly\\tproduced\\tmaterials,\\tand\\tour\\tsuppliers\\tare\\trequired\\tto\\tprovide\\tevidence\\tof\\tmanagement\\tsystems\\tthat\\nensure\\tsocial,\\tenvironmental\\tand\\tsustainability\\tbest\\tpractices\\tin\\ttheir\\town\\toperations,\\tas\\twell\\tas\\tto\\tdemonstrate\\ta\\tcommitment\\tto\\tresponsible\\tsourcing\\ninto\\ttheir\\tsupply\\tchains.\\tWe\\thave\\ta\\tzero-tolerance\\tpolicy\\twhen\\tit\\tcomes\\tto\\tchild\\tor\\tforced\\tlabor\\tand\\thuman\\ttrafficking\\tby\\tour\\tsuppliers\\tand\\twe\\tlook\\tto\\tthe\\nOrganization\\tfor\\tEconomic\\tCo-operation\\tand\\tDevelopment\\tDue\\tDiligence\\tGuidelines\\tto\\tinform\\tour\\tprocess\\tand\\tuse\\tfeedback\\tfrom\\tour\\tinternal\\tand\\nexternal\\tstakeholders\\tto\\tfind\\tways\\tto\\tcontinually\\timprove.\\tWe\\tare\\talso\\tdriving\\tsafety\\tin\\tour\\town\\tfactories\\tby\\tfocusing\\ton\\tworker\\tengagement.\\tOur\\nincidents\\tper\\tvehicle\\tcontinue\\tto\\tdrop\\teven\\tas\\tour\\tproduction\\tvolumes\\tincrease.\\tWe\\talso\\tstrive\\tto\\tbe\\tan\\temployer\\tof\\tchoice\\tby\\toffering\\tcompelling,\\nimpactful\\tjobs\\twith\\tbest\\tin-industry\\tbenefits.\\n12\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 13,\n        \"lines\": {\n          \"from\": 34,\n          \"to\": 41\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Table\\tof\\tContents\\nWe\\tbelieve\\tthat\\tsound\\tcorporate\\tgovernance\\tis\\tcritical\\tto\\thelping\\tus\\tachieve\\tour\\tgoals,\\tincluding\\twith\\trespect\\tto\\tESG.\\tWe\\tcontinue\\tto\\tevolve\\ta\\ngovernance\\tframework\\tthat\\texercises\\tappropriate\\toversight\\tof\\tresponsibilities\\tat\\tall\\tlevels\\tthroughout\\tthe\\tcompany\\tand\\tmanages\\tits\\taffairs\\tconsistent\\nwith\\thigh\\tprinciples\\tof\\tbusiness\\tethics.\\tOur\\tESG\\tSustainability\\tCouncil\\tis\\tmade\\tup\\tof\\tleaders\\tfrom\\tacross\\tour\\tcompany,\\tand\\tregularly\\tpresents\\tto\\tour\\tBoard\\nof\\tDirectors,\\twhich\\toversees\\tour\\tESG\\timpacts,\\tinitiatives\\tand\\tpriorities.\\nHuman\\tCapital\\tResources\\nA\\tcompetitive\\tedge\\tfor\\tTesla\\tis\\tits\\tability\\tto\\tattract\\tand\\tretain\\thigh\\tquality\\temployees.\\tDuring\\tthe\\tpast\\tyear,\\tTesla\\tmade\\tsubstantial\\tinvestments\\tin\\nits\\tworkforce,\\tfurther\\tstrengthening\\tits\\tstanding\\tas\\tone\\tof\\tthe\\tmost\\tdesirable\\tand\\tinnovative\\tcompanies\\tto\\twork\\tfor.\\tAs\\tof\\tDecember\\t31,\\t2023,\\tour\\nemployee\\theadcount\\tworldwide\\twas\\t140,473.\\nWe\\thave\\tcreated\\tan\\tenvironment\\tthat\\tfosters\\tgrowth\\topportunities,\\tand\\tas\\tof\\tthis\\treport,\\tnearly\\ttwo-thirds\\t(65%)\\tof\\tour\\tmanagers\\twere\\tpromoted\\nfrom\\tan\\tinternal,\\tnon-manager\\tposition,\\tand\\t43%\\tof\\tour\\tmanagement\\temployees\\thave\\tbeen\\twith\\tTesla\\tfor\\tmore\\tthan\\tfive\\tyears.\\tTesla’s\\tgrowth\\tof\\t35%\\nover\\tthe\\tpast\\ttwo\\tyears\\thas\\toffered\\tinternal\\tcareer\\tdevelopment\\tto\\tour\\temployees\\tas\\twell\\tas\\tthe\\tability\\tto\\tmake\\ta\\tmeaningful\\tcontribution\\tto\\ta\\nsustainable\\tfuture.\\nWe\\tare\\table\\tto\\tretain\\tour\\temployees,\\tin\\tpart,\\tnot\\tonly\\tbecause\\temployees\\tcan\\tenjoy\\townership\\tin\\tTesla\\tthrough\\tstock\\t(of\\twhich\\t89%\\thave\\tbeen\\ngiven\\tthe\\topportunity\\tto),\\tbut\\tbecause\\twe\\talso\\tprovide\\tthem\\twith\\texcellent\\thealth\\tbenefits\\tsuch\\tas\\tfree\\tcounseling,\\tpaid\\tparental\\tleave,\\tpaid\\ttime\\toff\\tand\\nzero-premium\\tmedical\\tplan\\toptions\\tthat\\tare\\tmade\\tavailable\\ton\\tthe\\tfirst\\tday\\tof\\temployment.\\nWe\\trecognize\\tthe\\tpositive\\timpact\\tthat\\tleaders\\tcan\\thave\\ton\\ttheir\\tteams\\tand\\toffer\\tfundamental\\tskills\\ttraining\\tand\\tcontinuous\\tdevelopment\\tto\\tall\\nleaders\\tthrough\\tvarious\\tprograms\\tglobally.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 14,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 18\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"leaders\\tthrough\\tvarious\\tprograms\\tglobally.\\nWe\\tdon’t\\tstop\\tthere.\\tTesla\\thas\\tseveral\\tother\\tprograms\\tstrategically\\tdesigned\\tto\\tincrease\\tpaths\\tfor\\tgreater\\tcareer\\topportunity\\tsuch\\tas:\\n•Technician\\tTrainee\\t(Service)\\t– The\\tTesla\\tTechnician\\tTrainee\\tProgram\\tprovides\\ton-the-job\\tautomotive\\tmaintenance\\ttraining\\tat\\tTesla,\\nresulting\\tin\\tan\\tindustry\\tcertification.\\tTargeted\\tat\\tindividuals\\twith\\tlimited\\texperience,\\twhether\\tin\\tindustry\\tor\\tvocational\\tschools,\\tthe\\tprogram\\nprepares\\ttrainees\\tfor\\temployment\\tas\\ttechnicians.\\tIn\\t2023,\\twe\\thired\\tover\\t1,900\\tTechnician\\tTrainees\\tacross\\tthe\\tU.S.,\\tGermany\\tand\\tChina.\\n•START\\t(Manufacturing\\tand\\tService)\\t–\\tTesla\\tSTART\\tis\\tan\\tintensive\\ttraining\\tprogram\\tthat\\tcomplements\\tthe\\tTechnician\\tTrainee\\tprogram\\tand\\nequips\\tindividuals\\twith\\tthe\\tskills\\tneeded\\tfor\\ta\\tsuccessful\\ttechnician\\trole\\tat\\tTesla.\\tWe\\thave\\tpartnered\\twith\\tcolleges\\tand\\ttechnical\\tacademies\\tto\\nlaunch\\tTesla\\tSTART\\tin\\tthe\\tU.S.,\\tUnited\\tKingdom\\tand\\tGermany.\\tIn\\t2023,\\twe\\thired\\tover\\t350\\ttrainees\\tfor\\tmanufacturing\\tand\\tservice\\troles\\tthrough\\nthis\\tprogram,\\tproviding\\tan\\topportunity\\tto\\ttransition\\tinto\\tfull-time\\temployment.\\n•Internships\\t–\\tAnnually,\\tTesla\\thires\\tover\\t6,000\\tuniversity\\tand\\tcollege\\tstudents\\tfrom\\taround\\tthe\\tworld.\\tWe\\trecruit\\tfrom\\tdiverse\\tstudent\\norganizations\\tand\\tcampuses,\\tseeking\\ttop\\ttalent\\tpassionate\\tabout\\tour\\tmission.\\tOur\\tinterns\\tengage\\tin\\tmeaningful\\twork\\tfrom\\tday\\tone,\\tand\\twe\\noften\\toffer\\tthem\\tfull-time\\tpositions\\tpost-internship.\\n•Military\\tFellowship\\tand\\tTransition\\tPrograms\\t– The\\tMilitary\\tFellowship\\tand\\tTransition\\tPrograms\\tare\\tdesigned\\tto\\toffer\\texiting\\tmilitary\\tservice\\nmembers\\tin\\tthe\\tU.S.\\tand\\tEurope\\twith\\tcareer\\tguidance\\ton\\ttransitioning\\tinto\\tthe\\tcivil\\tworkforce.\\tWe\\tpartner\\twith\\tthe\\tcareer\\ttransition\\tservices\\tof\\nEuropean\\tDefence\\tMinistries\\tacross\\tfive\\tcountries,\\tas\\twell\\tas\\tthe\\tU.S.\\tChamber\\tof\\tCommerce’s\\tHire\\tour\\tHeroes.\\tThese\\tprograms\\taim\\tto\\tconvert\\nhigh-performing\\tindividuals\\tto\\tfull-time\\troles\\tand\\tcreate\\ta\\tveteran\\ttalent\\tpipeline.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 14,\n        \"lines\": {\n          \"from\": 18,\n          \"to\": 33\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"•Apprenticeships\\t–\\tTesla\\tApprenticeships\\tare\\toffered\\tglobally,\\tproviding\\tacademic\\tand\\ton-the-job\\ttraining\\tto\\tprepare\\tspecialists\\tin\\tskilled\\ntrades.\\tApprentices\\twill\\tcomplete\\tbetween\\tone\\tto\\tfour\\tyears\\tof\\ton-the-job\\ttraining.\\tApprentice\\tprograms\\thave\\tseen\\tskilled\\ttrade\\thires\\tacross\\tthe\\nU.S.,\\tAustralia,\\tHong\\tKong,\\tKorea\\tand\\tGermany.\\n•Manufacturing\\tDevelopment\\tProgram\\t– Tesla's\\tmanufacturing\\tpathway\\tprogram\\tis\\tdesigned\\tto\\tprovide\\tgraduating\\thigh\\tschool\\tseniors\\twith\\nthe\\tfinancial\\tresources,\\tcoursework\\tand\\texperience\\tthey\\tneed\\tto\\tstart\\ta\\tsuccessful\\tmanufacturing\\tcareer\\tat\\tTesla.\\tWe\\thired\\t373\\tgraduates\\nthrough\\tthis\\tprogram\\tin\\t2023,\\tand\\tour\\tgoal\\tin\\t2024\\tis\\tgrow\\tthis\\tprogram\\tto\\tover\\t600\\tstudents\\tannually\\tacross\\tour\\tFremont\\tFactory,\\tGigafactory\\nNevada,\\tGigafactory\\tTexas\\tand\\tGigafactory\\tNew\\tYork.\\n13\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 14,\n        \"lines\": {\n          \"from\": 34,\n          \"to\": 41\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Table\\tof\\tContents\\n•Engineering\\tDevelopment\\tProgram\\t– Launched\\tin\\tJanuary\\t2024,\\tthis\\tprogram\\ttargets\\trecent\\tcollege\\tand\\tuniversity\\tgraduates\\tfor\\tspecialized\\nengineering\\tfields.\\tIn\\tcollaboration\\twith\\tAustin\\tCommunity\\tCollege,\\tthe\\tprogram\\teducates\\tearly-career\\tengineers\\tin\\tcontrols\\tengineering,\\nenhancing\\ttheir\\tknowledge\\tof\\thigh-demand\\ttechnologies\\tfor\\tU.S.\\tmanufacturing.\\nWe\\twill\\tcontinue\\tto\\texpand\\tthe\\topportunities\\tfor\\tour\\temployees\\tto\\tadd\\tskills\\tand\\tdevelop\\tprofessionally\\twith\\ta\\tnew\\tEmployee\\tEducational\\tAssistance\\nProgram\\tlaunching\\tin\\tthe\\tU.S.\\tin\\tthe\\tspring\\tof\\t2024\\tto\\thelp\\temployees\\tpursue\\tselect\\tcertificates\\tor\\tdegrees.\\tWith\\tvirtual,\\tself-paced\\teducation\\toptions\\navailable,\\temployees\\tcan\\tpursue\\ta\\tnew\\tpath\\tor\\texpand\\ttheir\\tknowledge\\twhile\\tcontinuing\\tto\\tgrow\\ttheir\\tcareer.\\nAt\\tTesla,\\tour\\temployees\\tshow\\tup\\tpassionate\\tabout\\tmaking\\ta\\tdifference\\tin\\tthe\\tworld\\tand\\tfor\\teach\\tother.\\tWe\\tremain\\tunwavering\\tin\\tour\\tdemand\\tthat\\nour\\tfactories,\\toffices,\\tstores\\tand\\tservice\\tcenters\\tare\\tplaces\\twhere\\tour\\temployees\\tfeel\\trespected\\tand\\tappreciated.\\tOur\\tpolicies\\tare\\tdesigned\\tto\\tpromote\\nfairness\\tand\\trespect\\tfor\\teveryone.\\tWe\\thire,\\tevaluate\\tand\\tpromote\\temployees\\tbased\\ton\\ttheir\\tskills\\tand\\tperformance.\\tEveryone\\tis\\texpected\\tto\\tbe\\ntrustworthy,\\tdemonstrate\\texcellence\\tin\\ttheir\\tperformance\\tand\\tcollaborate\\twith\\tothers.\\tWith\\tthis\\tin\\tmind,\\twe\\twill\\tnot\\ttolerate\\tcertain\\tbehaviors.\\tThese\\ninclude\\tharassment,\\tretaliation,\\tviolence,\\tintimidation\\tand\\tdiscrimination\\tof\\tany\\tkind\\ton\\tthe\\tbasis\\tof\\trace,\\tcolor,\\treligion,\\tnational\\torigin,\\tgender,\\tsexual\\norientation,\\tgender\\tidentity,\\tgender\\texpression,\\tage,\\tdisability\\tor\\tveteran\\tstatus.\\nAnti-harassment\\ttraining\\tis\\tconducted\\ton\\tday\\tone\\tof\\tnew\\thire\\torientation\\tfor\\tall\\temployees\\tand\\treoccurring\\tfor\\tleaders.\\tIn\\taddition,\\twe\\trun\\tvarious\\nleadership\\tdevelopment\\tprograms\\tthroughout\\tthe\\tyear\\taimed\\tat\\tenhancing\\tleaders’\\tskills,\\tand\\tin\\tparticular,\\thelping\\tthem\\tto\\tunderstand\\thow\\tto\\nappropriately\\trespond\\tto\\tand\\taddress\\temployee\\tconcerns.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 15,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 16\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Employees\\tare\\tencouraged\\tto\\tspeak\\tup\\tboth\\tin\\tregard\\tto\\tmisconduct\\tand\\tsafety\\tconcerns\\tand\\tcan\\tdo\\tso\\tby\\tcontacting\\tthe\\tintegrity\\tline,\\tsubmitting\\nconcerns\\tthrough\\tour\\tTake\\tCharge\\tprocess,\\tor\\tnotifying\\ttheir\\tHuman\\tResource\\tPartner\\tor\\tany\\tmember\\tof\\tmanagement.\\tConcerns\\tare\\treviewed\\tin\\naccordance\\twith\\testablished\\tprotocols\\tby\\tinvestigators\\twith\\texpertise,\\twho\\talso\\treview\\tfor\\ttrends\\tand\\toutcomes\\tfor\\tremediation\\tand\\tappropriate\\tcontrols.\\nResponding\\tto\\tquestions\\ttimely\\tis\\tkey\\tso\\tHuman\\tResource\\tPartners\\tfor\\teach\\tfunctional\\tarea\\tare\\tvisible\\tthroughout\\tfacilities\\tand\\tare\\tactively\\tinvolved\\tin\\ndriving\\tculture\\tand\\tengagement\\talongside\\tbusiness\\tleaders.\\nAvailable\\tInformation\\nWe\\tfile\\tor\\tfurnish\\tperiodic\\treports\\tand\\tamendments\\tthereto,\\tincluding\\tour\\tAnnual\\tReports\\ton\\tForm\\t10-K,\\tour\\tQuarterly\\tReports\\ton\\tForm\\t10-Q\\tand\\nCurrent\\tReports\\ton\\tForm\\t8-K,\\tproxy\\tstatements\\tand\\tother\\tinformation\\twith\\tthe\\tSEC.\\tIn\\taddition,\\tthe\\tSEC\\tmaintains\\ta\\twebsite\\t(www.sec.gov)\\tthat\\tcontains\\nreports,\\tproxy\\tand\\tinformation\\tstatements,\\tand\\tother\\tinformation\\tregarding\\tissuers\\tthat\\tfile\\telectronically.\\tOur\\twebsite\\tis\\tlocated\\tat\\twww.tesla.com,\\tand\\nour\\treports,\\tamendments\\tthereto,\\tproxy\\tstatements\\tand\\tother\\tinformation\\tare\\talso\\tmade\\tavailable,\\tfree\\tof\\tcharge,\\ton\\tour\\tinvestor\\trelations\\twebsite\\tat\\nir.tesla.com\\tas\\tsoon\\tas\\treasonably\\tpracticable\\tafter\\twe\\telectronically\\tfile\\tor\\tfurnish\\tsuch\\tinformation\\twith\\tthe\\tSEC.\\tThe\\tinformation\\tposted\\ton\\tour\\twebsite\\nis\\tnot\\tincorporated\\tby\\treference\\tinto\\tthis\\tAnnual\\tReport\\ton\\tForm\\t10-K.\\nITEM\\t1A.\\tRISK\\tFACTORS\\nYou\\tshould\\tcarefully\\tconsider\\tthe\\trisks\\tdescribed\\tbelow\\ttogether\\twith\\tthe\\tother\\tinformation\\tset\\tforth\\tin\\tthis\\treport,\\twhich\\tcould\\tmaterially\\taffect\\tour\\nbusiness,\\tfinancial\\tcondition\\tand\\tfuture\\tresults.\\tThe\\trisks\\tdescribed\\tbelow\\tare\\tnot\\tthe\\tonly\\trisks\\tfacing\\tour\\tcompany.\\tRisks\\tand\\tuncertainties\\tnot\\tcurrently\\nknown\\tto\\tus\\tor\\tthat\\twe\\tcurrently\\tdeem\\tto\\tbe\\timmaterial\\talso\\tmay\\tmaterially\\tadversely\\taffect\\tour\\tbusiness,\\tfinancial\\tcondition\\tand\\toperating\\tresults.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 15,\n        \"lines\": {\n          \"from\": 17,\n          \"to\": 32\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Risks\\tRelated\\tto\\tOur\\tAbility\\tto\\tGrow\\tOur\\tBusiness\\nWe\\tmay\\texperience\\tdelays\\tin\\tlaunching\\tand\\tramping\\tthe\\tproduction\\tof\\tour\\tproducts\\tand\\tfeatures,\\tor\\twe\\tmay\\tbe\\tunable\\tto\\tcontrol\\nour\\tmanufacturing\\tcosts.\\nWe\\thave\\tpreviously\\texperienced\\tand\\tmay\\tin\\tthe\\tfuture\\texperience\\tlaunch\\tand\\tproduction\\tramp\\tdelays\\tfor\\tnew\\tproducts\\tand\\tfeatures.\\tFor\\texample,\\nwe\\tencountered\\tunanticipated\\tsupplier\\tissues\\tthat\\tled\\tto\\tdelays\\tduring\\tthe\\tinitial\\tramp\\tof\\tour\\tfirst\\tModel\\tX\\tand\\texperienced\\tchallenges\\twith\\ta\\tsupplier\\tand\\nwith\\tramping\\tfull\\tautomation\\tfor\\tcertain\\tof\\tour\\tinitial\\tModel\\t3\\tmanufacturing\\tprocesses.\\tIn\\taddition,\\twe\\tmay\\tintroduce\\tin\\tthe\\tfuture\\tnew\\tor\\tunique\\nmanufacturing\\tprocesses\\tand\\tdesign\\tfeatures\\tfor\\tour\\tproducts.\\tAs\\twe\\texpand\\tour\\tvehicle\\tofferings\\tand\\tglobal\\tfootprint,\\tthere\\tis\\tno\\tguarantee\\tthat\\twe\\twill\\nbe\\table\\tto\\tsuccessfully\\tand\\ttimely\\tintroduce\\tand\\tscale\\tsuch\\tprocesses\\tor\\tfeatures.\\n14\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 15,\n        \"lines\": {\n          \"from\": 33,\n          \"to\": 41\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Table\\tof\\tContents\\nIn\\tparticular,\\tour\\tfuture\\tbusiness\\tdepends\\tin\\tlarge\\tpart\\ton\\tincreasing\\tthe\\tproduction\\tof\\tmass-market\\tvehicles.\\tIn\\torder\\tto\\tbe\\tsuccessful,\\twe\\twill\\tneed\\nto\\timplement,\\tmaintain\\tand\\tramp\\tefficient\\tand\\tcost-effective\\tmanufacturing\\tcapabilities,\\tprocesses\\tand\\tsupply\\tchains\\tand\\tachieve\\tthe\\tdesign\\ttolerances,\\nhigh\\tquality\\tand\\toutput\\trates\\twe\\thave\\tplanned\\tat\\tour\\tmanufacturing\\tfacilities\\tin\\tCalifornia,\\tNevada,\\tTexas,\\tChina,\\tGermany\\tand\\tany\\tfuture\\tsites\\tsuch\\tas\\nMexico.\\tWe\\twill\\talso\\tneed\\tto\\thire,\\ttrain\\tand\\tcompensate\\tskilled\\temployees\\tto\\toperate\\tthese\\tfacilities.\\tBottlenecks\\tand\\tother\\tunexpected\\tchallenges\\tsuch\\nas\\tthose\\twe\\texperienced\\tin\\tthe\\tpast\\tmay\\tarise\\tduring\\tour\\tproduction\\tramps,\\tand\\twe\\tmust\\taddress\\tthem\\tpromptly\\twhile\\tcontinuing\\tto\\timprove\\nmanufacturing\\tprocesses\\tand\\treducing\\tcosts.\\tIf\\twe\\tare\\tnot\\tsuccessful\\tin\\tachieving\\tthese\\tgoals,\\twe\\tcould\\tface\\tdelays\\tin\\testablishing\\tand/or\\tsustaining\\tour\\nproduct\\tramps\\tor\\tbe\\tunable\\tto\\tmeet\\tour\\trelated\\tcost\\tand\\tprofitability\\ttargets.\\nWe\\thave\\texperienced,\\tand\\tmay\\talso\\texperience\\tsimilar\\tfuture\\tdelays\\tin\\tlaunching\\tand/or\\tramping\\tproduction\\tof\\tour\\tenergy\\tstorage\\tproducts\\tand\\nSolar\\tRoof;\\tnew\\tproduct\\tversions\\tor\\tvariants;\\tnew\\tvehicles;\\tand\\tfuture\\tfeatures\\tand\\tservices\\tbased\\ton\\tartificial\\tintelligence.\\tLikewise,\\twe\\tmay\\tencounter\\ndelays\\twith\\tthe\\tdesign,\\tconstruction\\tand\\tregulatory\\tor\\tother\\tapprovals\\tnecessary\\tto\\tbuild\\tand\\tbring\\tonline\\tfuture\\tmanufacturing\\tfacilities\\tand\\tproducts.\\nAny\\tdelay\\tor\\tother\\tcomplication\\tin\\tramping\\tthe\\tproduction\\tof\\tour\\tcurrent\\tproducts\\tor\\tthe\\tdevelopment,\\tmanufacture,\\tlaunch\\tand\\tproduction\\tramp\\tof\\nour\\tfuture\\tproducts,\\tfeatures\\tand\\tservices,\\tor\\tin\\tdoing\\tso\\tcost-effectively\\tand\\twith\\thigh\\tquality,\\tmay\\tharm\\tour\\tbrand,\\tbusiness,\\tprospects,\\tfinancial\\ncondition\\tand\\toperating\\tresults.\\nOur\\tsuppliers\\tmay\\tfail\\tto\\tdeliver\\tcomponents\\taccording\\tto\\tschedules,\\tprices,\\tquality\\tand\\tvolumes\\tthat\\tare\\tacceptable\\tto\\tus,\\tor\\twe\\nmay\\tbe\\tunable\\tto\\tmanage\\tthese\\tcomponents\\teffectively.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 16,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 16\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Our\\tproducts\\tcontain\\tthousands\\tof\\tparts\\tpurchased\\tglobally\\tfrom\\thundreds\\tof\\tsuppliers,\\tincluding\\tsingle-source\\tdirect\\tsuppliers,\\twhich\\texposes\\tus\\tto\\nmultiple\\tpotential\\tsources\\tof\\tcomponent\\tshortages.\\tUnexpected\\tchanges\\tin\\tbusiness\\tconditions,\\tmaterials\\tpricing,\\tincluding\\tinflation\\tof\\traw\\tmaterial\\ncosts,\\tlabor\\tissues,\\twars,\\ttrade\\tpolicies,\\tnatural\\tdisasters,\\thealth\\tepidemics\\tsuch\\tas\\tthe\\tglobal\\tCOVID-19\\tpandemic,\\ttrade\\tand\\tshipping\\tdisruptions,\\tport\\ncongestions,\\tcyberattacks\\tand\\tother\\tfactors\\tbeyond\\tour\\tor\\tour\\tsuppliers’\\tcontrol\\tcould\\talso\\taffect\\tthese\\tsuppliers’\\tability\\tto\\tdeliver\\tcomponents\\tto\\tus\\tor\\tto\\nremain\\tsolvent\\tand\\toperational.\\tFor\\texample,\\ta\\tglobal\\tshortage\\tof\\tsemiconductors\\tbeginning\\tin\\tearly\\t2021\\thas\\tcaused\\tchallenges\\tin\\tthe\\tmanufacturing\\nindustry\\tand\\timpacted\\tour\\tsupply\\tchain\\tand\\tproduction.\\tAdditionally,\\tif\\tour\\tsuppliers\\tdo\\tnot\\taccurately\\tforecast\\tand\\teffectively\\tallocate\\tproduction\\tor\\tif\\nthey\\tare\\tnot\\twilling\\tto\\tallocate\\tsufficient\\tproduction\\tto\\tus,\\tor\\tface\\tother\\tchallenges\\tsuch\\tas\\tinsolvency,\\tit\\tmay\\treduce\\tour\\taccess\\tto\\tcomponents\\tand\\nrequire\\tus\\tto\\tsearch\\tfor\\tnew\\tsuppliers.\\tThe\\tunavailability\\tof\\tany\\tcomponent\\tor\\tsupplier\\tcould\\tresult\\tin\\tproduction\\tdelays,\\tidle\\tmanufacturing\\tfacilities,\\nproduct\\tdesign\\tchanges\\tand\\tloss\\tof\\taccess\\tto\\timportant\\ttechnology\\tand\\ttools\\tfor\\tproducing\\tand\\tsupporting\\tour\\tproducts,\\tas\\twell\\tas\\timpact\\tour\\tcapacity\\nexpansion\\tand\\tour\\tability\\tto\\tfulfill\\tour\\tobligations\\tunder\\tcustomer\\tcontracts.\\tMoreover,\\tsignificant\\tincreases\\tin\\tour\\tproduction\\tor\\tproduct\\tdesign\\tchanges\\nby\\tus\\thave\\trequired\\tand\\tmay\\tin\\tthe\\tfuture\\trequire\\tus\\tto\\tprocure\\tadditional\\tcomponents\\tin\\ta\\tshort\\tamount\\tof\\ttime.\\tWe\\thave\\tfaced\\tin\\tthe\\tpast,\\tand\\tmay\\nface\\tsuppliers\\twho\\tare\\tunwilling\\tor\\tunable\\tto\\tsustainably\\tmeet\\tour\\ttimelines\\tor\\tour\\tcost,\\tquality\\tand\\tvolume\\tneeds,\\twhich\\tmay\\tincrease\\tour\\tcosts\\tor\\nrequire\\tus\\tto\\treplace\\tthem\\twith\\tother\\tsources.\\tFinally,\\tas\\twe\\tconstruct\\tnew\\tmanufacturing\\tfacilities\\tand\\tadd\\tproduction\\tlines\\tto\\texisting\\tfacilities,\\twe\\tmay\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 16,\n        \"lines\": {\n          \"from\": 17,\n          \"to\": 29\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"experience\\tissues\\tin\\tcorrespondingly\\tincreasing\\tthe\\tlevel\\tof\\tlocalized\\tprocurement\\tat\\tthose\\tfacilities.\\tWhile\\twe\\tbelieve\\tthat\\twe\\twill\\tbe\\table\\tto\\tsecure\\nadditional\\tor\\talternate\\tsources\\tor\\tdevelop\\tour\\town\\treplacements\\tfor\\tmost\\tof\\tour\\tcomponents,\\tthere\\tis\\tno\\tassurance\\tthat\\twe\\twill\\tbe\\table\\tto\\tdo\\tso\\tquickly\\nor\\tat\\tall.\\tAdditionally,\\twe\\tmay\\tbe\\tunsuccessful\\tin\\tour\\tcontinuous\\tefforts\\tto\\tnegotiate\\twith\\texisting\\tsuppliers\\tto\\tobtain\\tcost\\treductions\\tand\\tavoid\\nunfavorable\\tchanges\\tto\\tterms,\\tsource\\tless\\texpensive\\tsuppliers\\tfor\\tcertain\\tparts\\tand\\tredesign\\tcertain\\tparts\\tto\\tmake\\tthem\\tless\\texpensive\\tto\\tproduce,\\nespecially\\tin\\tthe\\tcase\\tof\\tincreases\\tin\\tmaterials\\tpricing.\\tAny\\tof\\tthese\\toccurrences\\tmay\\tharm\\tour\\tbusiness,\\tprospects,\\tfinancial\\tcondition\\tand\\toperating\\nresults.\\nAs\\tthe\\tscale\\tof\\tour\\tvehicle\\tproduction\\tincreases,\\twe\\twill\\talso\\tneed\\tto\\taccurately\\tforecast,\\tpurchase,\\twarehouse\\tand\\ttransport\\tcomponents\\tat\\thigh\\nvolumes\\tto\\tour\\tmanufacturing\\tfacilities\\tand\\tservicing\\tlocations\\tinternationally.\\tIf\\twe\\tare\\tunable\\tto\\taccurately\\tmatch\\tthe\\ttiming\\tand\\tquantities\\tof\\ncomponent\\tpurchases\\tto\\tour\\tactual\\tneeds\\tor\\tsuccessfully\\timplement\\tautomation,\\tinventory\\tmanagement\\tand\\tother\\tsystems\\tto\\taccommodate\\tthe\\nincreased\\tcomplexity\\tin\\tour\\tsupply\\tchain\\tand\\tparts\\tmanagement,\\twe\\tmay\\tincur\\tunexpected\\tproduction\\tdisruption,\\tstorage,\\ttransportation\\tand\\twrite-off\\ncosts,\\twhich\\tmay\\tharm\\tour\\tbusiness\\tand\\toperating\\tresults.\\nWe\\tmay\\tbe\\tunable\\tto\\tmeet\\tour\\tprojected\\tconstruction\\ttimelines,\\tcosts\\tand\\tproduction\\tramps\\tat\\tnew\\tfactories,\\tor\\twe\\tmay\\nexperience\\tdifficulties\\tin\\tgenerating\\tand\\tmaintaining\\tdemand\\tfor\\tproducts\\tmanufactured\\tthere.\\nOur\\tability\\tto\\tincrease\\tproduction\\tof\\tour\\tvehicles\\ton\\ta\\tsustained\\tbasis,\\tmake\\tthem\\taffordable\\tglobally\\tby\\taccessing\\tlocal\\tsupply\\tchains\\tand\\nworkforces\\tand\\tstreamline\\tdelivery\\tlogistics\\tis\\tdependent\\ton\\tthe\\tconstruction\\tand\\tramp\\tof\\tour\\tcurrent\\tand\\tfuture\\tfactories.\\tThe\\tconstruction\\tof\\tand\\ncommencement\\tand\\tramp\\tof\\tproduction\\tat\\tthese\\tfactories\\tare\\tsubject\\n15\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 16,\n        \"lines\": {\n          \"from\": 30,\n          \"to\": 46\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Table\\tof\\tContents\\nto\\ta\\tnumber\\tof\\tuncertainties\\tinherent\\tin\\tall\\tnew\\tmanufacturing\\toperations,\\tincluding\\tongoing\\tcompliance\\twith\\tregulatory\\trequirements,\\tprocurement\\tand\\nmaintenance\\tof\\tconstruction,\\tenvironmental\\tand\\toperational\\tlicenses\\tand\\tapprovals\\tfor\\tadditional\\texpansion,\\tsupply\\tchain\\tconstraints,\\thiring,\\ttraining\\tand\\nretention\\tof\\tqualified\\temployees\\tand\\tthe\\tpace\\tof\\tbringing\\tproduction\\tequipment\\tand\\tprocesses\\tonline\\twith\\tthe\\tcapability\\tto\\tmanufacture\\thigh-quality\\nunits\\tat\\tscale.\\tMoreover,\\twe\\twill\\thave\\tto\\testablish\\tand\\tramp\\tproduction\\tof\\tour\\tproprietary\\tbattery\\tcells\\tand\\tpacks\\tat\\tour\\tnew\\tfactories,\\tand\\twe\\tadditionally\\nintend\\tto\\tincorporate\\tsequential\\tdesign\\tand\\tmanufacturing\\tchanges\\tinto\\tvehicles\\tmanufactured\\tat\\teach\\tnew\\tfactory.\\tIf\\twe\\texperience\\tany\\tissues\\tor\\tdelays\\nin\\tmeeting\\tour\\tprojected\\ttimelines,\\tcosts,\\tcapital\\tefficiency\\tand\\tproduction\\tcapacity\\tfor\\tour\\tnew\\tfactories,\\texpanding\\tand\\tmanaging\\tteams\\tto\\timplement\\niterative\\tdesign\\tand\\tproduction\\tchanges\\tthere,\\tmaintaining\\tand\\tcomplying\\twith\\tthe\\tterms\\tof\\tany\\tdebt\\tfinancing\\tthat\\twe\\tobtain\\tto\\tfund\\tthem\\tor\\tgenerating\\nand\\tmaintaining\\tdemand\\tfor\\tthe\\tvehicles\\twe\\tmanufacture\\tthere,\\tour\\tbusiness,\\tprospects,\\toperating\\tresults\\tand\\tfinancial\\tcondition\\tmay\\tbe\\tharmed.\\nWe\\tmay\\tbe\\tunable\\tto\\tgrow\\tour\\tglobal\\tproduct\\tsales,\\tdelivery\\tand\\tinstallation\\tcapabilities\\tand\\tour\\tservicing\\tand\\tvehicle\\tcharging\\nnetworks,\\tor\\twe\\tmay\\tbe\\tunable\\tto\\taccurately\\tproject\\tand\\teffectively\\tmanage\\tour\\tgrowth.\\nOur\\tsuccess\\twill\\tdepend\\ton\\tour\\tability\\tto\\tcontinue\\tto\\texpand\\tour\\tsales\\tcapabilities.\\tWe\\tare\\ttargeting\\ta\\tglobal\\tmass\\tdemographic\\twith\\ta\\tbroad\\trange\\nof\\tpotential\\tcustomers,\\tin\\twhich\\twe\\thave\\trelatively\\tlimited\\texperience\\tprojecting\\tdemand\\tand\\tpricing\\tour\\tproducts.\\tWe\\tcurrently\\tproduce\\tnumerous\\ninternational\\tvariants\\tat\\ta\\tlimited\\tnumber\\tof\\tfactories,\\tand\\tif\\tour\\tspecific\\tdemand\\texpectations\\tfor\\tthese\\tvariants\\tprove\\tinaccurate,\\twe\\tmay\\tnot\\tbe\\table\\tto\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 17,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 14\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"timely\\tgenerate\\tdeliveries\\tmatched\\tto\\tthe\\tvehicles\\tthat\\twe\\tproduce\\tin\\tthe\\tsame\\ttimeframe\\tor\\tthat\\tare\\tcommensurate\\twith\\tthe\\tsize\\tof\\tour\\toperations\\tin\\ta\\ngiven\\tregion.\\tLikewise,\\tas\\twe\\tdevelop\\tand\\tgrow\\tour\\tenergy\\tproducts\\tand\\tservices\\tworldwide,\\tour\\tsuccess\\twill\\tdepend\\ton\\tour\\tability\\tto\\tcorrectly\\tforecast\\ndemand\\tin\\tvarious\\tmarkets.\\nBecause\\twe\\tdo\\tnot\\thave\\tindependent\\tdealer\\tnetworks,\\twe\\tare\\tresponsible\\tfor\\tdelivering\\tall\\tof\\tour\\tvehicles\\tto\\tour\\tcustomers.\\tAs\\tour\\tproduction\\nvolumes\\tcontinue\\tto\\tgrow,\\twe\\thave\\tfaced\\tin\\tthe\\tpast,\\tand\\tmay\\tface\\tchallenges\\twith\\tdeliveries\\tat\\tincreasing\\tvolumes,\\tparticularly\\tin\\tinternational\\tmarkets\\nrequiring\\tsignificant\\ttransit\\ttimes.\\tWe\\thave\\talso\\tdeployed\\ta\\tnumber\\tof\\tdelivery\\tmodels,\\tsuch\\tas\\tdeliveries\\tto\\tcustomers’\\thomes\\tand\\tworkplaces\\tand\\ntouchless\\tdeliveries,\\tbut\\tthere\\tis\\tno\\tguarantee\\tthat\\tsuch\\tmodels\\twill\\tbe\\tscalable\\tor\\tbe\\taccepted\\tglobally.\\tLikewise,\\tas\\twe\\tramp\\tour\\tenergy\\tproducts,\\twe\\nare\\tworking\\tto\\tsubstantially\\tincrease\\tour\\tproduction\\tand\\tinstallation\\tcapabilities.\\tIf\\twe\\texperience\\tproduction\\tdelays\\tor\\tinaccurately\\tforecast\\tdemand,\\tour\\nbusiness,\\tfinancial\\tcondition\\tand\\toperating\\tresults\\tmay\\tbe\\tharmed.\\nMoreover,\\tbecause\\tof\\tour\\tunique\\texpertise\\twith\\tour\\tvehicles,\\twe\\trecommend\\tthat\\tour\\tvehicles\\tbe\\tserviced\\tby\\tus\\tor\\tby\\tcertain\\tauthorized\\nprofessionals.\\tIf\\twe\\texperience\\tdelays\\tin\\tadding\\tservicing\\tcapacity\\tor\\tservicing\\tour\\tvehicles\\tefficiently,\\tor\\texperience\\tunforeseen\\tissues\\twith\\tthe\\treliability\\nof\\tour\\tvehicles,\\tparticularly\\thigher-volume\\tadditions\\tto\\tour\\tfleet\\tsuch\\tas\\tModel\\t3\\tand\\tModel\\tY,\\tit\\tcould\\toverburden\\tour\\tservicing\\tcapabilities\\tand\\tparts\\ninventory.\\tSimilarly,\\tthe\\tincreasing\\tnumber\\tof\\tTesla\\tvehicles\\talso\\trequires\\tus\\tto\\tcontinue\\tto\\trapidly\\tincrease\\tthe\\tnumber\\tof\\tour\\tSupercharger\\tstations\\tand\\nconnectors\\tthroughout\\tthe\\tworld.\\nThere\\tis\\tno\\tassurance\\tthat\\twe\\twill\\tbe\\table\\tto\\tramp\\tour\\tbusiness\\tto\\tmeet\\tour\\tsales,\\tdelivery,\\tinstallation,\\tservicing\\tand\\tvehicle\\tcharging\\ttargets\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 17,\n        \"lines\": {\n          \"from\": 15,\n          \"to\": 29\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"globally,\\tthat\\tour\\tprojections\\ton\\twhich\\tsuch\\ttargets\\tare\\tbased\\twill\\tprove\\taccurate\\tor\\tthat\\tthe\\tpace\\tof\\tgrowth\\tor\\tcoverage\\tof\\tour\\tcustomer\\tinfrastructure\\nnetwork\\twill\\tmeet\\tcustomer\\texpectations.\\tThese\\tplans\\trequire\\tsignificant\\tcash\\tinvestments\\tand\\tmanagement\\tresources\\tand\\tthere\\tis\\tno\\tguarantee\\tthat\\nthey\\twill\\tgenerate\\tadditional\\tsales\\tor\\tinstallations\\tof\\tour\\tproducts,\\tor\\tthat\\twe\\twill\\tbe\\table\\tto\\tavoid\\tcost\\toverruns\\tor\\tbe\\table\\tto\\thire\\tadditional\\tpersonnel\\tto\\nsupport\\tthem.\\tAs\\twe\\texpand,\\twe\\twill\\talso\\tneed\\tto\\tensure\\tour\\tcompliance\\twith\\tregulatory\\trequirements\\tin\\tvarious\\tjurisdictions\\tapplicable\\tto\\tthe\\tsale,\\ninstallation\\tand\\tservicing\\tof\\tour\\tproducts,\\tthe\\tsale\\tor\\tdispatch\\tof\\telectricity\\trelated\\tto\\tour\\tenergy\\tproducts\\tand\\tthe\\toperation\\tof\\tSuperchargers.\\tIf\\twe\\tfail\\tto\\nmanage\\tour\\tgrowth\\teffectively,\\tit\\tmay\\tharm\\tour\\tbrand,\\tbusiness,\\tprospects,\\tfinancial\\tcondition\\tand\\toperating\\tresults.\\nWe\\twill\\tneed\\tto\\tmaintain\\tand\\tsignificantly\\tgrow\\tour\\taccess\\tto\\tbattery\\tcells,\\tincluding\\tthrough\\tthe\\tdevelopment\\tand\\tmanufacture\\tof\\nour\\town\\tcells,\\tand\\tcontrol\\tour\\trelated\\tcosts.\\nWe\\tare\\tdependent\\ton\\tthe\\tcontinued\\tsupply\\tof\\tlithium-ion\\tbattery\\tcells\\tfor\\tour\\tvehicles\\tand\\tenergy\\tstorage\\tproducts,\\tand\\twe\\twill\\trequire\\tsubstantially\\nmore\\tcells\\tto\\tgrow\\tour\\tbusiness\\taccording\\tto\\tour\\tplans.\\tCurrently,\\twe\\trely\\ton\\tsuppliers\\tsuch\\tas\\tPanasonic\\tand\\tContemporary\\tAmperex\\tTechnology\\tCo.\\nLimited\\t(CATL)\\tfor\\tthese\\tcells.\\tWe\\thave\\tto\\tdate\\tfully\\tqualified\\tonly\\ta\\tvery\\tlimited\\tnumber\\tof\\tsuch\\tsuppliers\\tand\\thave\\tlimited\\tflexibility\\tin\\tchanging\\nsuppliers.\\tAny\\tdisruption\\tin\\tthe\\tsupply\\tof\\tbattery\\tcells\\tfrom\\tour\\tsuppliers\\tcould\\tlimit\\tproduction\\tof\\tour\\tvehicles\\tand\\tenergy\\tstorage\\tproducts.\\tIn\\tthe\\tlong\\nterm,\\twe\\tintend\\tto\\tsupplement\\tcells\\tfrom\\tour\\tsuppliers\\twith\\tcells\\tmanufactured\\tby\\tus,\\twhich\\twe\\tbelieve\\twill\\tbe\\tmore\\tefficient,\\tmanufacturable\\tat\\tgreater\\nvolumes\\tand\\tmore\\tcost-effective\\tthan\\tcurrently\\tavailable\\tcells.\\tHowever,\\tour\\tefforts\\tto\\tdevelop\\tand\\tmanufacture\\tsuch\\tbattery\\tcells\\thave\\trequired,\\tand\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 17,\n        \"lines\": {\n          \"from\": 30,\n          \"to\": 43\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"may\\tcontinue\\tto\\trequire,\\tsignificant\\tinvestments,\\tand\\tthere\\tcan\\tbe\\tno\\tassurance\\tthat\\twe\\twill\\tbe\\table\\tto\\tachieve\\tthese\\ttargets\\tin\\tthe\\ttimeframes\\tthat\\twe\\nhave\\tplanned\\tor\\tat\\tall.\\tIf\\twe\\tare\\n16\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 17,\n        \"lines\": {\n          \"from\": 44,\n          \"to\": 46\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Table\\tof\\tContents\\nunable\\tto\\tdo\\tso,\\twe\\tmay\\thave\\tto\\tcurtail\\tour\\tplanned\\tvehicle\\tand\\tenergy\\tstorage\\tproduct\\tproduction\\tor\\tprocure\\tadditional\\tcells\\tfrom\\tsuppliers\\tat\\npotentially\\tgreater\\tcosts,\\teither\\tof\\twhich\\tmay\\tharm\\tour\\tbusiness\\tand\\toperating\\tresults.\\nIn\\taddition,\\tthe\\tcost\\tand\\tmass\\tproduction\\tof\\tbattery\\tcells,\\twhether\\tmanufactured\\tby\\tour\\tsuppliers\\tor\\tby\\tus,\\tdepends\\tin\\tpart\\tupon\\tthe\\tprices\\tand\\navailability\\tof\\traw\\tmaterials\\tsuch\\tas\\tlithium,\\tnickel,\\tcobalt\\tand/or\\tother\\tmetals.\\tThe\\tprices\\tfor\\tthese\\tmaterials\\tfluctuate\\tand\\ttheir\\tavailable\\tsupply\\tmay\\tbe\\nunstable,\\tdepending\\ton\\tmarket\\tconditions\\tand\\tglobal\\tdemand\\tfor\\tthese\\tmaterials.\\tFor\\texample,\\tas\\ta\\tresult\\tof\\tincreased\\tglobal\\tproduction\\tof\\telectric\\nvehicles\\tand\\tenergy\\tstorage\\tproducts,\\tsuppliers\\tof\\tthese\\traw\\tmaterials\\tmay\\tbe\\tunable\\tto\\tmeet\\tour\\tvolume\\tneeds.\\tAdditionally,\\tour\\tsuppliers\\tmay\\tnot\\tbe\\nwilling\\tor\\table\\tto\\treliably\\tmeet\\tour\\ttimelines\\tor\\tour\\tcost\\tand\\tquality\\tneeds,\\twhich\\tmay\\trequire\\tus\\tto\\treplace\\tthem\\twith\\tother\\tsources.\\tAny\\treduced\\navailability\\tof\\tthese\\tmaterials\\tmay\\timpact\\tour\\taccess\\tto\\tcells\\tand\\tour\\tgrowth,\\tand\\tany\\tincreases\\tin\\ttheir\\tprices\\tmay\\treduce\\tour\\tprofitability\\tif\\twe\\tcannot\\nrecoup\\tsuch\\tcosts\\tthrough\\tincreased\\tprices.\\tMoreover,\\tour\\tinability\\tto\\tmeet\\tdemand\\tand\\tany\\tproduct\\tprice\\tincreases\\tmay\\tharm\\tour\\tbrand,\\tgrowth,\\nprospects\\tand\\toperating\\tresults.\\nOur\\tfuture\\tgrowth\\tand\\tsuccess\\tare\\tdependent\\tupon\\tconsumers’\\tdemand\\tfor\\telectric\\tvehicles\\tand\\tspecifically\\tour\\tvehicles\\tin\\tan\\nautomotive\\tindustry\\tthat\\tis\\tgenerally\\tcompetitive,\\tcyclical\\tand\\tvolatile.\\nThough\\twe\\tcontinue\\tto\\tsee\\tincreased\\tinterest\\tand\\tadoption\\tof\\telectric\\tvehicles,\\tif\\tthe\\tmarket\\tfor\\telectric\\tvehicles\\tin\\tgeneral\\tand\\tTesla\\tvehicles\\tin\\nparticular\\tdoes\\tnot\\tdevelop\\tas\\twe\\texpect,\\tdevelops\\tmore\\tslowly\\tthan\\twe\\texpect,\\tor\\tif\\tdemand\\tfor\\tour\\tvehicles\\tdecreases\\tin\\tour\\tmarkets\\tor\\tour\\tvehicles\\ncompete\\twith\\teach\\tother,\\tour\\tbusiness,\\tprospects,\\tfinancial\\tcondition\\tand\\toperating\\tresults\\tmay\\tbe\\tharmed.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 18,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 16\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"In\\taddition,\\telectric\\tvehicles\\tstill\\tconstitute\\ta\\tsmall\\tpercentage\\tof\\toverall\\tvehicle\\tsales.\\tAs\\ta\\tresult,\\tthe\\tmarket\\tfor\\tour\\tvehicles\\tcould\\tbe\\tnegatively\\naffected\\tby\\tnumerous\\tfactors,\\tsuch\\tas:\\n•perceptions\\tabout\\telectric\\tvehicle\\tfeatures,\\tquality,\\tsafety,\\tperformance\\tand\\tcost;\\n•perceptions\\tabout\\tthe\\tlimited\\trange\\tover\\twhich\\telectric\\tvehicles\\tmay\\tbe\\tdriven\\ton\\ta\\tsingle\\tbattery\\tcharge,\\tand\\taccess\\tto\\tcharging\\tfacilities;\\n•competition,\\tincluding\\tfrom\\tother\\ttypes\\tof\\talternative\\tfuel\\tvehicles,\\tplug-in\\thybrid\\telectric\\tvehicles\\tand\\thigh\\tfuel-economy\\tinternal\\tcombustion\\nengine\\tvehicles;\\n•volatility\\tin\\tthe\\tcost\\tof\\toil,\\tgasoline\\tand\\tenergy;\\n•government\\tregulations\\tand\\teconomic\\tincentives\\tand\\tconditions;\\tand\\n•concerns\\tabout\\tour\\tfuture\\tviability.\\nThe\\ttarget\\tdemographics\\tfor\\tour\\tvehicles\\tare\\thighly\\tcompetitive.\\tSales\\tof\\tvehicles\\tin\\tthe\\tautomotive\\tindustry\\ttend\\tto\\tbe\\tcyclical\\tin\\tmany\\tmarkets,\\nwhich\\tmay\\texpose\\tus\\tto\\tfurther\\tvolatility.\\tWe\\talso\\tcannot\\tpredict\\tthe\\tduration\\tor\\tdirection\\tof\\tcurrent\\tglobal\\ttrends\\tor\\ttheir\\tsustained\\timpact\\ton\\tconsumer\\ndemand.\\tUltimately,\\twe\\tcontinue\\tto\\tmonitor\\tmacroeconomic\\tconditions\\tto\\tremain\\tflexible\\tand\\tto\\toptimize\\tand\\tevolve\\tour\\tbusiness\\tas\\tappropriate,\\tand\\nattempt\\tto\\taccurately\\tproject\\tdemand\\tand\\tinfrastructure\\trequirements\\tglobally\\tand\\tdeploy\\tour\\tproduction,\\tworkforce\\tand\\tother\\tresources\\taccordingly.\\nRising\\tinterest\\trates\\tmay\\tlead\\tto\\tconsumers\\tto\\tincreasingly\\tpull\\tback\\tspending,\\tincluding\\ton\\tour\\tproducts,\\twhich\\tmay\\tharm\\tour\\tdemand,\\tbusiness\\tand\\noperating\\tresults.\\tIf\\twe\\texperience\\tunfavorable\\tglobal\\tmarket\\tconditions,\\tor\\tif\\twe\\tcannot\\tor\\tdo\\tnot\\tmaintain\\toperations\\tat\\ta\\tscope\\tthat\\tis\\tcommensurate\\nwith\\tsuch\\tconditions\\tor\\tare\\tlater\\trequired\\tto\\tor\\tchoose\\tto\\tsuspend\\tsuch\\toperations\\tagain,\\tour\\tbusiness,\\tprospects,\\tfinancial\\tcondition\\tand\\toperating\\tresults\\nmay\\tbe\\tharmed.\\nWe\\tface\\tstrong\\tcompetition\\tfor\\tour\\tproducts\\tand\\tservices\\tfrom\\ta\\tgrowing\\tlist\\tof\\testablished\\tand\\tnew\\tcompetitors.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 18,\n        \"lines\": {\n          \"from\": 17,\n          \"to\": 34\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"The\\tworldwide\\tautomotive\\tmarket\\tis\\thighly\\tcompetitive\\ttoday\\tand\\twe\\texpect\\tit\\twill\\tbecome\\teven\\tmore\\tso\\tin\\tthe\\tfuture.\\tA\\tsignificant\\tand\\tgrowing\\nnumber\\tof\\testablished\\tand\\tnew\\tautomobile\\tmanufacturers,\\tas\\twell\\tas\\tother\\tcompanies,\\thave\\tentered,\\tor\\tare\\treported\\tto\\thave\\tplans\\tto\\tenter,\\tthe\\tmarket\\nfor\\telectric\\tand\\tother\\talternative\\tfuel\\tvehicles,\\tincluding\\thybrid,\\tplug-in\\thybrid\\tand\\tfully\\telectric\\tvehicles,\\tas\\twell\\tas\\tthe\\tmarket\\tfor\\tself-driving\\ttechnology\\nand\\tother\\tvehicle\\tapplications\\tand\\tsoftware\\tplatforms.\\tIn\\tsome\\tcases,\\tour\\tcompetitors\\toffer\\tor\\twill\\toffer\\telectric\\tvehicles\\tin\\timportant\\tmarkets\\tsuch\\tas\\nChina\\tand\\tEurope,\\tand/or\\thave\\tannounced\\tan\\tintention\\tto\\tproduce\\telectric\\tvehicles\\texclusively\\tat\\tsome\\tpoint\\tin\\tthe\\tfuture.\\tIn\\taddition,\\tcertain\\ngovernment\\tand\\teconomic\\tincentives\\twhich\\tprovide\\tbenefits\\tto\\tmanufacturers\\twho\\tassemble\\tdomestically\\tor\\thave\\tlocal\\tsuppliers,\\tmay\\tprovide\\ta\\tgreater\\nbenefit\\tto\\tour\\tcompetitors,\\twhich\\tcould\\tnegatively\\timpact\\tour\\tprofitability.\\tMany\\tof\\tour\\tcompetitors\\thave\\tsignificantly\\tmore\\tor\\tbetter-established\\nresources\\tthan\\twe\\tdo\\tto\\tdevote\\tto\\tthe\\tdesign,\\tdevelopment,\\tmanufacturing,\\tdistribution,\\tpromotion,\\tsale\\tand\\tsupport\\tof\\ttheir\\tproducts.\\tIncreased\\ncompetition\\tcould\\tresult\\tin\\tour\\tlower\\tvehicle\\tunit\\tsales,\\tprice\\treductions,\\trevenue\\tshortfalls,\\tloss\\tof\\tcustomers\\tand\\tloss\\tof\\tmarket\\tshare,\\twhich\\tmay\\tharm\\nour\\tbusiness,\\tfinancial\\tcondition\\tand\\toperating\\tresults.\\n17\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 18,\n        \"lines\": {\n          \"from\": 35,\n          \"to\": 45\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Table\\tof\\tContents\\nWe\\talso\\tface\\tcompetition\\tin\\tour\\tenergy\\tgeneration\\tand\\tstorage\\tbusiness\\tfrom\\tother\\tmanufacturers,\\tdevelopers,\\tinstallers\\tand\\tservice\\tproviders\\tof\\ncompeting\\tenergy\\ttechnologies,\\tas\\twell\\tas\\tfrom\\tlarge\\tutilities.\\tDecreases\\tin\\tthe\\tretail\\tor\\twholesale\\tprices\\tof\\telectricity\\tfrom\\tutilities\\tor\\tother\\trenewable\\nenergy\\tsources\\tcould\\tmake\\tour\\tproducts\\tless\\tattractive\\tto\\tcustomers\\tand\\tlead\\tto\\tan\\tincreased\\trate\\tof\\tcustomer\\tdefaults.\\nRisks\\tRelated\\tto\\tOur\\tOperations\\nWe\\tmay\\texperience\\tissues\\twith\\tlithium-ion\\tcells\\tor\\tother\\tcomponents\\tmanufactured\\tat\\tour\\tGigafactories,\\twhich\\tmay\\tharm\\tthe\\nproduction\\tand\\tprofitability\\tof\\tour\\tvehicle\\tand\\tenergy\\tstorage\\tproducts.\\nOur\\tplan\\tto\\tgrow\\tthe\\tvolume\\tand\\tprofitability\\tof\\tour\\tvehicles\\tand\\tenergy\\tstorage\\tproducts\\tdepends\\ton\\tsignificant\\tlithium-ion\\tbattery\\tcell\\tproduction,\\nincluding\\tby\\tour\\tpartner\\tPanasonic\\tat\\tGigafactory\\tNevada.\\tWe\\talso\\tproduce\\tseveral\\tvehicle\\tcomponents\\tat\\tour\\tGigafactories,\\tsuch\\tas\\tbattery\\tmodules\\tand\\npacks\\tand\\tdrive\\tunits,\\tand\\tmanufacture\\tenergy\\tstorage\\tproducts.\\tIf\\twe\\tare\\tunable\\tto\\tor\\totherwise\\tdo\\tnot\\tmaintain\\tand\\tgrow\\tour\\trespective\\toperations,\\tor\\nif\\twe\\tare\\tunable\\tto\\tdo\\tso\\tcost-effectively\\tor\\thire\\tand\\tretain\\thighly-skilled\\tpersonnel\\tthere,\\tour\\tability\\tto\\tmanufacture\\tour\\tproducts\\tprofitably\\twould\\tbe\\nlimited,\\twhich\\tmay\\tharm\\tour\\tbusiness\\tand\\toperating\\tresults.\\nFinally,\\tthe\\thigh\\tvolumes\\tof\\tlithium-ion\\tcells\\tand\\tbattery\\tmodules\\tand\\tpacks\\tmanufactured\\tby\\tus\\tand\\tby\\tour\\tsuppliers\\tare\\tstored\\tand\\trecycled\\tat\\tour\\nvarious\\tfacilities.\\tAny\\tmishandling\\tof\\tthese\\tproducts\\tmay\\tcause\\tdisruption\\tto\\tthe\\toperation\\tof\\tsuch\\tfacilities.\\tWhile\\twe\\thave\\timplemented\\tsafety\\nprocedures\\trelated\\tto\\tthe\\thandling\\tof\\tthe\\tcells,\\tthere\\tcan\\tbe\\tno\\tassurance\\tthat\\ta\\tsafety\\tissue\\tor\\tfire\\trelated\\tto\\tthe\\tcells\\twould\\tnot\\tdisrupt\\tour\\toperations.\\nAny\\tsuch\\tdisruptions\\tor\\tissues\\tmay\\tharm\\tour\\tbrand\\tand\\tbusiness.\\nWe\\tface\\trisks\\tassociated\\twith\\tmaintaining\\tand\\texpanding\\tour\\tinternational\\toperations,\\tincluding\\tunfavorable\\tand\\tuncertain\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 19,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 17\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"regulatory,\\tpolitical,\\teconomic,\\ttax\\tand\\tlabor\\tconditions.\\nWe\\tare\\tsubject\\tto\\tlegal\\tand\\tregulatory\\trequirements,\\tpolitical\\tuncertainty\\tand\\tsocial,\\tenvironmental\\tand\\teconomic\\tconditions\\tin\\tnumerous\\njurisdictions,\\tincluding\\tmarkets\\tin\\twhich\\twe\\tgenerate\\tsignificant\\tsales,\\tover\\twhich\\twe\\thave\\tlittle\\tcontrol\\tand\\twhich\\tare\\tinherently\\tunpredictable.\\tOur\\noperations\\tin\\tsuch\\tjurisdictions,\\tparticularly\\tas\\ta\\tcompany\\tbased\\tin\\tthe\\tU.S.,\\tcreate\\trisks\\trelating\\tto\\tconforming\\tour\\tproducts\\tto\\tregulatory\\tand\\tsafety\\nrequirements\\tand\\tcharging\\tand\\tother\\telectric\\tinfrastructures;\\torganizing\\tlocal\\toperating\\tentities;\\testablishing,\\tstaffing\\tand\\tmanaging\\tforeign\\tbusiness\\nlocations;\\tattracting\\tlocal\\tcustomers;\\tnavigating\\tforeign\\tgovernment\\ttaxes,\\tregulations\\tand\\tpermit\\trequirements;\\tenforceability\\tof\\tour\\tcontractual\\trights;\\ntrade\\trestrictions,\\tcustoms\\tregulations,\\ttariffs\\tand\\tprice\\tor\\texchange\\tcontrols;\\tand\\tpreferences\\tin\\tforeign\\tnations\\tfor\\tdomestically\\tmanufactured\\tproducts.\\nFor\\texample,\\twe\\tmonitor\\ttax\\tlegislation\\tchanges\\ton\\ta\\tglobal\\tbasis,\\tincluding\\tchanges\\tarising\\tas\\ta\\tresult\\tof\\tthe\\tOrganization\\tfor\\tEconomic\\tCooperation\\tand\\nDevelopment’s\\tmulti-jurisdictional\\tplan\\tof\\taction\\tto\\taddress\\tbase\\terosion\\tand\\tprofit\\tshifting.\\tSuch\\tconditions\\tmay\\tincrease\\tour\\tcosts,\\timpact\\tour\\tability\\tto\\nsell\\tour\\tproducts\\tand\\trequire\\tsignificant\\tmanagement\\tattention,\\tand\\tmay\\tharm\\tour\\tbusiness\\tif\\twe\\tare\\tunable\\tto\\tmanage\\tthem\\teffectively.\\nOur\\tbusiness\\tmay\\tsuffer\\tif\\tour\\tproducts\\tor\\tfeatures\\tcontain\\tdefects,\\tfail\\tto\\tperform\\tas\\texpected\\tor\\ttake\\tlonger\\tthan\\texpected\\tto\\nbecome\\tfully\\tfunctional.\\nIf\\tour\\tproducts\\tcontain\\tdesign\\tor\\tmanufacturing\\tdefects,\\twhether\\trelating\\tto\\tour\\tsoftware\\tor\\thardware,\\tthat\\tcause\\tthem\\tnot\\tto\\tperform\\tas\\tdesigned\\nor\\tintended\\tor\\tthat\\trequire\\trepair,\\tor\\tcertain\\tfeatures\\tof\\tour\\tvehicles\\tsuch\\tas\\tnew\\tAutopilot\\tor\\tFSD\\tCapability\\tfeatures\\ttake\\tlonger\\tthan\\texpected\\tto\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 19,\n        \"lines\": {\n          \"from\": 18,\n          \"to\": 31\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"become\\tenabled,\\tare\\tlegally\\trestricted\\tor\\tbecome\\tsubject\\tto\\tonerous\\tregulation,\\tour\\tability\\tto\\tdevelop,\\tmarket\\tand\\tsell\\tour\\tproducts\\tand\\tservices\\tmay\\tbe\\nharmed,\\tand\\twe\\tmay\\texperience\\tdelivery\\tdelays,\\tproduct\\trecalls,\\tallegations\\tof\\tproduct\\tliability,\\tbreach\\tof\\twarranty\\tand\\trelated\\tconsumer\\tprotection\\nclaims\\tand\\tsignificant\\twarranty\\tand\\tother\\texpenses.\\tWhile\\twe\\tare\\tcontinuously\\tworking\\tto\\tdevelop\\tand\\timprove\\tour\\tproducts’\\tcapability\\tand\\tperformance,\\nthere\\tis\\tno\\tguarantee\\tthat\\tany\\tincremental\\tchanges\\tin\\tthe\\tspecific\\tsoftware\\tor\\tequipment\\twe\\tdeploy\\tin\\tour\\tvehicles\\tover\\ttime\\twill\\tnot\\tresult\\tin\\tinitial\\nfunctional\\tdisparities\\tfrom\\tprior\\titerations\\tor\\twill\\tperform\\tas\\tforecast\\tin\\tthe\\ttimeframe\\twe\\tanticipate,\\tor\\tat\\tall.\\tAlthough\\twe\\tattempt\\tto\\tremedy\\tany\\tissues\\nwe\\tobserve\\tin\\tour\\tproducts\\tas\\teffectively\\tand\\trapidly\\tas\\tpossible,\\tsuch\\tefforts\\tmay\\tnot\\tbe\\ttimely,\\tmay\\thamper\\tproduction\\tor\\tmay\\tnot\\tcompletely\\tsatisfy\\nour\\tcustomers.\\tWe\\thave\\tperformed,\\tand\\tcontinue\\tto\\tperform,\\textensive\\tinternal\\ttesting\\ton\\tour\\tproducts\\tand\\tfeatures,\\tthough,\\tlike\\tthe\\trest\\tof\\tthe\\tindustry,\\nwe\\tcurrently\\thave\\ta\\tlimited\\tframe\\tof\\treference\\tby\\twhich\\tto\\tevaluate\\tcertain\\taspects\\tof\\ttheir\\tlong-term\\tquality,\\treliability,\\tdurability\\tand\\tperformance\\ncharacteristics,\\tincluding\\texposure\\tto\\tor\\tconsequence\\tof\\texternal\\tattacks.\\tWhile\\twe\\tattempt\\tto\\tidentify\\tand\\taddress\\tor\\tremedy\\tdefects\\twe\\tidentify\\tpre-\\nproduction\\tand\\tsale,\\tthere\\tmay\\tbe\\tlatent\\tdefects\\tthat\\twe\\tmay\\tbe\\tunable\\tto\\tdetect\\tor\\tcontrol\\tfor\\tin\\tour\\tproducts,\\tand\\tthereby\\taddress,\\tprior\\tto\\ttheir\\tsale\\tto\\nor\\tinstallation\\tfor\\tcustomers.\\n18\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 19,\n        \"lines\": {\n          \"from\": 32,\n          \"to\": 43\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Table\\tof\\tContents\\nWe\\tmay\\tbe\\trequired\\tto\\tdefend\\tor\\tinsure\\tagainst\\tproduct\\tliability\\tclaims.\\nThe\\tautomobile\\tindustry\\tgenerally\\texperiences\\tsignificant\\tproduct\\tliability\\tclaims,\\tand\\tas\\tsuch\\twe\\tface\\tthe\\trisk\\tof\\tsuch\\tclaims\\tin\\tthe\\tevent\\tour\\nvehicles\\tdo\\tnot\\tperform\\tor\\tare\\tclaimed\\tto\\tnot\\thave\\tperformed\\tas\\texpected.\\tAs\\tis\\ttrue\\tfor\\tother\\tautomakers,\\tour\\tvehicles\\thave\\tbeen\\tinvolved\\tand\\twe\\nexpect\\tin\\tthe\\tfuture\\twill\\tbe\\tinvolved\\tin\\taccidents\\tresulting\\tin\\tdeath\\tor\\tpersonal\\tinjury,\\tand\\tsuch\\taccidents\\twhere\\tAutopilot,\\tEnhanced\\tAutopilot\\tor\\tFSD\\nCapability\\tfeatures\\tare\\tengaged\\tare\\tthe\\tsubject\\tof\\tsignificant\\tpublic\\tattention,\\tespecially\\tin\\tlight\\tof\\tNHTSA’s\\tStanding\\tGeneral\\tOrder\\trequiring\\treports\\nregarding\\tcrashes\\tinvolving\\tvehicles\\twith\\tadvanced\\tdriver\\tassistance\\tsystems.\\tWe\\thave\\texperienced,\\tand\\twe\\texpect\\tto\\tcontinue\\tto\\tface,\\tclaims\\tand\\nregulatory\\tscrutiny\\tarising\\tfrom\\tor\\trelated\\tto\\tmisuse\\tor\\tclaimed\\tfailures\\tor\\talleged\\tmisrepresentations\\tof\\tsuch\\tnew\\ttechnologies\\tthat\\twe\\tare\\tpioneering.\\tIn\\naddition,\\tthe\\tbattery\\tpacks\\tthat\\twe\\tproduce\\tmake\\tuse\\tof\\tlithium-ion\\tcells.\\tOn\\trare\\toccasions,\\tlithium-ion\\tcells\\tcan\\trapidly\\trelease\\tthe\\tenergy\\tthey\\tcontain\\nby\\tventing\\tsmoke\\tand\\tflames\\tin\\ta\\tmanner\\tthat\\tcan\\tignite\\tnearby\\tmaterials\\tas\\twell\\tas\\tother\\tlithium-ion\\tcells.\\tWhile\\twe\\thave\\tdesigned\\tour\\tbattery\\tpacks\\tto\\npassively\\tcontain\\tany\\tsingle\\tcell’s\\trelease\\tof\\tenergy\\twithout\\tspreading\\tto\\tneighboring\\tcells,\\tthere\\tcan\\tbe\\tno\\tassurance\\tthat\\ta\\tfield\\tor\\ttesting\\tfailure\\tof\\tour\\nvehicles\\tor\\tother\\tbattery\\tpacks\\tthat\\twe\\tproduce\\twill\\tnot\\toccur,\\tin\\tparticular\\tdue\\tto\\ta\\thigh-speed\\tcrash.\\tLikewise,\\tas\\tour\\tsolar\\tenergy\\tsystems\\tand\\tenergy\\nstorage\\tproducts\\tgenerate\\tand\\tstore\\telectricity,\\tthey\\thave\\tthe\\tpotential\\tto\\tfail\\tor\\tcause\\tinjury\\tto\\tpeople\\tor\\tproperty.\\tAny\\tproduct\\tliability\\tclaim\\tmay\\nsubject\\tus\\tto\\tlawsuits\\tand\\tsubstantial\\tmonetary\\tdamages,\\tproduct\\trecalls\\tor\\tredesign\\tefforts,\\tand\\teven\\ta\\tmeritless\\tclaim\\tmay\\trequire\\tus\\tto\\tdefend\\tit,\\tall\\tof\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 20,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 14\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"which\\tmay\\tgenerate\\tnegative\\tpublicity\\tand\\tbe\\texpensive\\tand\\ttime-consuming.\\tIn\\tmost\\tjurisdictions,\\twe\\tgenerally\\tself-insure\\tagainst\\tthe\\trisk\\tof\\tproduct\\nliability\\tclaims\\tfor\\tvehicle\\texposure,\\tmeaning\\tthat\\tany\\tproduct\\tliability\\tclaims\\twill\\tlikely\\thave\\tto\\tbe\\tpaid\\tfrom\\tcompany\\tfunds\\tand\\tnot\\tby\\tinsurance.\\nWe\\twill\\tneed\\tto\\tmaintain\\tpublic\\tcredibility\\tand\\tconfidence\\tin\\tour\\tlong-term\\tbusiness\\tprospects\\tin\\torder\\tto\\tsucceed.\\nIn\\torder\\tto\\tmaintain\\tand\\tgrow\\tour\\tbusiness,\\twe\\tmust\\tmaintain\\tcredibility\\tand\\tconfidence\\tamong\\tcustomers,\\tsuppliers,\\tanalysts,\\tinvestors,\\tratings\\nagencies\\tand\\tother\\tparties\\tin\\tour\\tlong-term\\tfinancial\\tviability\\tand\\tbusiness\\tprospects.\\tMaintaining\\tsuch\\tconfidence\\tmay\\tbe\\tchallenging\\tdue\\tto\\tour\\tlimited\\noperating\\thistory\\trelative\\tto\\testablished\\tcompetitors;\\tcustomer\\tunfamiliarity\\twith\\tour\\tproducts;\\tany\\tdelays\\twe\\tmay\\texperience\\tin\\tscaling\\tmanufacturing,\\ndelivery\\tand\\tservice\\toperations\\tto\\tmeet\\tdemand;\\tcompetition\\tand\\tuncertainty\\tregarding\\tthe\\tfuture\\tof\\telectric\\tvehicles\\tor\\tour\\tother\\tproducts\\tand\\tservices;\\nour\\tquarterly\\tproduction\\tand\\tsales\\tperformance\\tcompared\\twith\\tmarket\\texpectations;\\tand\\tother\\tfactors\\tincluding\\tthose\\tover\\twhich\\twe\\thave\\tno\\tcontrol.\\tIn\\nparticular,\\tTesla’s\\tproducts,\\tbusiness,\\tresults\\tof\\toperations,\\tand\\tstatements\\tand\\tactions\\tof\\tTesla\\tand\\tits\\tmanagement\\tare\\tsubject\\tto\\tsignificant\\tamounts\\tof\\ncommentary\\tby\\ta\\trange\\tof\\tthird\\tparties.\\tSuch\\tattention\\tcan\\tinclude\\tcriticism,\\twhich\\tmay\\tbe\\texaggerated\\tor\\tunfounded,\\tsuch\\tas\\tspeculation\\tregarding\\tthe\\nsufficiency\\tor\\tstability\\tof\\tour\\tmanagement\\tteam.\\tAny\\tsuch\\tnegative\\tperceptions,\\twhether\\tcaused\\tby\\tus\\tor\\tnot,\\tmay\\tharm\\tour\\tbusiness\\tand\\tmake\\tit\\tmore\\ndifficult\\tto\\traise\\tadditional\\tfunds\\tif\\tneeded.\\nWe\\tmay\\tbe\\tunable\\tto\\teffectively\\tgrow,\\tor\\tmanage\\tthe\\tcompliance,\\tresidual\\tvalue,\\tfinancing\\tand\\tcredit\\trisks\\trelated\\tto,\\tour\\tvarious\\nfinancing\\tprograms.\\nWe\\toffer\\tfinancing\\tarrangements\\tfor\\tour\\tvehicles\\tin\\tNorth\\tAmerica,\\tEurope\\tand\\tAsia\\tprimarily\\tourselves\\tand\\tthrough\\tvarious\\tfinancial\\tinstitutions.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 20,\n        \"lines\": {\n          \"from\": 15,\n          \"to\": 29\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"We\\talso\\tcurrently\\toffer\\tvehicle\\tfinancing\\tarrangements\\tdirectly\\tthrough\\tour\\tlocal\\tsubsidiaries\\tin\\tcertain\\tmarkets.\\tDepending\\ton\\tthe\\tcountry,\\tsuch\\narrangements\\tare\\tavailable\\tfor\\tspecified\\tmodels\\tand\\tmay\\tinclude\\toperating\\tleases\\tdirectly\\twith\\tus\\tunder\\twhich\\twe\\ttypically\\treceive\\tonly\\ta\\tvery\\tsmall\\nportion\\tof\\tthe\\ttotal\\tvehicle\\tpurchase\\tprice\\tat\\tthe\\ttime\\tof\\tlease,\\tfollowed\\tby\\ta\\tstream\\tof\\tpayments\\tover\\tthe\\tterm\\tof\\tthe\\tlease.\\tWe\\thave\\talso\\toffered\\tvarious\\narrangements\\tfor\\tcustomers\\tof\\tour\\tsolar\\tenergy\\tsystems\\twhereby\\tthey\\tpay\\tus\\ta\\tfixed\\tpayment\\tto\\tlease\\tor\\tfinance\\tthe\\tpurchase\\tof\\tsuch\\tsystems\\tor\\npurchase\\telectricity\\tgenerated\\tby\\tthem.\\tIf\\twe\\tdo\\tnot\\tsuccessfully\\tmonitor\\tand\\tcomply\\twith\\tapplicable\\tnational,\\tstate\\tand/or\\tlocal\\tfinancial\\tregulations\\tand\\nconsumer\\tprotection\\tlaws\\tgoverning\\tthese\\ttransactions,\\twe\\tmay\\tbecome\\tsubject\\tto\\tenforcement\\tactions\\tor\\tpenalties.\\nThe\\tprofitability\\tof\\tany\\tdirectly-leased\\tvehicles\\treturned\\tto\\tus\\tat\\tthe\\tend\\tof\\ttheir\\tleases\\tdepends\\ton\\tour\\tability\\tto\\taccurately\\tproject\\tour\\tvehicles’\\nresidual\\tvalues\\tat\\tthe\\toutset\\tof\\tthe\\tleases,\\tand\\tsuch\\tvalues\\tmay\\tfluctuate\\tprior\\tto\\tthe\\tend\\tof\\ttheir\\tterms\\tdepending\\ton\\tvarious\\tfactors\\tsuch\\tas\\tsupply\\tand\\ndemand\\tof\\tour\\tused\\tvehicles,\\teconomic\\tcycles\\tand\\tthe\\tpricing\\tof\\tnew\\tvehicles.\\tWe\\thave\\tmade\\tin\\tthe\\tpast\\tand\\tmay\\tmake\\tin\\tthe\\tfuture\\tcertain\\tadjustments\\nto\\tour\\tprices\\tfrom\\ttime\\tto\\ttime\\tin\\tthe\\tordinary\\tcourse\\tof\\tbusiness,\\twhich\\tmay\\timpact\\tthe\\tresidual\\tvalues\\tof\\tour\\tvehicles\\tand\\treduce\\tthe\\tprofitability\\tof\\tour\\nvehicle\\tleasing\\tprogram.\\tThe\\tfunding\\tand\\tgrowth\\tof\\tthis\\tprogram\\talso\\trely\\ton\\tour\\tability\\tto\\tsecure\\tadequate\\tfinancing\\tand/or\\tbusiness\\tpartners.\\tIf\\twe\\tare\\nunable\\tto\\tadequately\\tfund\\tour\\tleasing\\tprogram\\tthrough\\tinternal\\tfunds,\\tpartners\\tor\\tother\\tfinancing\\tsources,\\tand\\tcompelling\\talternative\\tfinancing\\tprograms\\nare\\tnot\\tavailable\\tfor\\tour\\tcustomers\\twho\\tmay\\texpect\\tor\\tneed\\tsuch\\toptions,\\twe\\tmay\\tbe\\tunable\\tto\\tgrow\\tour\\tvehicle\\tdeliveries.\\tFurthermore,\\tif\\tour\\tvehicle\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 20,\n        \"lines\": {\n          \"from\": 30,\n          \"to\": 42\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"leasing\\tbusiness\\tgrows\\tsubstantially,\\tour\\tbusiness\\tmay\\tsuffer\\tif\\twe\\tcannot\\teffectively\\tmanage\\tthe\\tresulting\\tgreater\\tlevels\\tof\\tresidual\\trisk.\\n19\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 20,\n        \"lines\": {\n          \"from\": 43,\n          \"to\": 44\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Table\\tof\\tContents\\nSimilarly,\\twe\\thave\\tprovided\\tresale\\tvalue\\tguarantees\\tto\\tvehicle\\tcustomers\\tand\\tpartners\\tfor\\tcertain\\tfinancing\\tprograms,\\tunder\\twhich\\tsuch\\ncounterparties\\tmay\\tsell\\ttheir\\tvehicles\\tback\\tto\\tus\\tat\\tcertain\\tpoints\\tin\\ttime\\tat\\tpre-determined\\tamounts.\\tHowever,\\tactual\\tresale\\tvalues\\tare\\tsubject\\tto\\nfluctuations\\tover\\tthe\\tterm\\tof\\tthe\\tfinancing\\tarrangements,\\tsuch\\tas\\tfrom\\tthe\\tvehicle\\tpricing\\tchanges\\tdiscussed\\tabove.\\tIf\\tthe\\tactual\\tresale\\tvalues\\tof\\tany\\nvehicles\\tresold\\tor\\treturned\\tto\\tus\\tpursuant\\tto\\tthese\\tprograms\\tare\\tmaterially\\tlower\\tthan\\tthe\\tpre-determined\\tamounts\\twe\\thave\\toffered,\\tour\\tfinancial\\ncondition\\tand\\toperating\\tresults\\tmay\\tbe\\tharmed.\\nFinally,\\tour\\tvehicle\\tand\\tsolar\\tenergy\\tsystem\\tfinancing\\tprograms\\tand\\tour\\tenergy\\tstorage\\tsales\\tprograms\\talso\\texpose\\tus\\tto\\tcustomer\\tcredit\\trisk.\\tIn\\nthe\\tevent\\tof\\ta\\twidespread\\teconomic\\tdownturn\\tor\\tother\\tcatastrophic\\tevent,\\tour\\tcustomers\\tmay\\tbe\\tunable\\tor\\tunwilling\\tto\\tsatisfy\\ttheir\\tpayment\\tobligations\\nto\\tus\\ton\\ta\\ttimely\\tbasis\\tor\\tat\\tall.\\tIf\\ta\\tsignificant\\tnumber\\tof\\tour\\tcustomers\\tdefault,\\twe\\tmay\\tincur\\tsubstantial\\tcredit\\tlosses\\tand/or\\timpairment\\tcharges\\twith\\nrespect\\tto\\tthe\\tunderlying\\tassets.\\nWe\\tmust\\tmanage\\tongoing\\tobligations\\tunder\\tour\\tagreement\\twith\\tthe\\tResearch\\tFoundation\\tfor\\tthe\\tState\\tUniversity\\tof\\tNew\\tYork\\nrelating\\tto\\tour\\tGigafactory\\tNew\\tYork.\\nWe\\tare\\tparty\\tto\\tan\\toperating\\tlease\\tand\\ta\\tresearch\\tand\\tdevelopment\\tagreement\\tthrough\\tthe\\tState\\tUniversity\\tof\\tNew\\tYork\\t(the\\t“SUNY\\tFoundation”).\\nThese\\tagreements\\tprovide\\tfor\\tthe\\tconstruction\\tand\\tuse\\tof\\tour\\tGigafactory\\tNew\\tYork,\\twhich\\twe\\thave\\tprimarily\\tused\\tfor\\tthe\\tdevelopment\\tand\\tproduction\\tof\\nour\\tSolar\\tRoof\\tand\\tother\\tsolar\\tproducts\\tand\\tcomponents,\\tenergy\\tstorage\\tcomponents\\tand\\tSupercharger\\tcomponents,\\tand\\tfor\\tother\\tlessor-approved\\nfunctions.\\tUnder\\tthis\\tagreement,\\twe\\tare\\tobligated\\tto,\\tamong\\tother\\tthings,\\tmeet\\temployment\\ttargets\\tas\\twell\\tas\\tspecified\\tminimum\\tnumbers\\tof\\tpersonnel\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 21,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 16\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"in\\tthe\\tState\\tof\\tNew\\tYork\\tand\\tin\\tBuffalo,\\tNew\\tYork\\tand\\tspend\\tor\\tincur\\t$5.00\\tbillion\\tin\\tcombined\\tcapital,\\toperational\\texpenses,\\tcosts\\tof\\tgoods\\tsold\\tand\\nother\\tcosts\\tin\\tthe\\tState\\tof\\tNew\\tYork\\tduring\\ta\\tperiod\\tthat\\twas\\tinitially\\t10\\tyears\\tbeginning\\tApril\\t30,\\t2018.\\tAs\\tof\\tDecember\\t31,\\t2023,\\twe\\tare\\tcurrently\\tin\\nexcess\\tof\\tsuch\\ttargets\\trelating\\tto\\tinvestments\\tand\\tpersonnel\\tin\\tthe\\tState\\tof\\tNew\\tYork\\tand\\tBuffalo.\\tWhile\\twe\\texpect\\tto\\thave\\tand\\tgrow\\tsignificant\\noperations\\tat\\tGigafactory\\tNew\\tYork\\tand\\tthe\\tsurrounding\\tBuffalo\\tarea,\\tany\\tfailure\\tby\\tus\\tin\\tany\\tyear\\tover\\tthe\\tcourse\\tof\\tthe\\tterm\\tof\\tthe\\tagreement\\tto\\tmeet\\nall\\tapplicable\\tfuture\\tobligations\\tmay\\tresult\\tin\\tour\\tobligation\\tto\\tpay\\ta\\t“program\\tpayment”\\tof\\t$41\\tmillion\\tto\\tthe\\tSUNY\\tFoundation\\tfor\\tsuch\\tyear,\\tthe\\ntermination\\tof\\tour\\tlease\\tat\\tGigafactory\\tNew\\tYork\\twhich\\tmay\\trequire\\tus\\tto\\tpay\\tadditional\\tpenalties,\\tand/or\\tthe\\tneed\\tto\\tadjust\\tcertain\\tof\\tour\\toperations.\\nAny\\tof\\tthe\\tforegoing\\tevents\\tmay\\tharm\\tour\\tbusiness,\\tfinancial\\tcondition\\tand\\toperating\\tresults.\\nIf\\twe\\tare\\tunable\\tto\\tattract,\\thire\\tand\\tretain\\tkey\\temployees\\tand\\tqualified\\tpersonnel,\\tour\\tability\\tto\\tcompete\\tmay\\tbe\\tharmed.\\nThe\\tloss\\tof\\tthe\\tservices\\tof\\tany\\tof\\tour\\tkey\\temployees\\tor\\tany\\tsignificant\\tportion\\tof\\tour\\tworkforce\\tcould\\tdisrupt\\tour\\toperations\\tor\\tdelay\\tthe\\ndevelopment,\\tintroduction\\tand\\tramp\\tof\\tour\\tproducts\\tand\\tservices.\\tIn\\tparticular,\\twe\\tare\\thighly\\tdependent\\ton\\tthe\\tservices\\tof\\tElon\\tMusk,\\tTechnoking\\tof\\nTesla\\tand\\tour\\tChief\\tExecutive\\tOfficer.\\tNone\\tof\\tour\\tkey\\temployees\\tis\\tbound\\tby\\tan\\temployment\\tagreement\\tfor\\tany\\tspecific\\tterm\\tand\\twe\\tmay\\tnot\\tbe\\table\\tto\\nsuccessfully\\tattract\\tand\\tretain\\tsenior\\tleadership\\tnecessary\\tto\\tgrow\\tour\\tbusiness.\\tOur\\tfuture\\tsuccess\\talso\\tdepends\\tupon\\tour\\tability\\tto\\tattract,\\thire\\tand\\nretain\\ta\\tlarge\\tnumber\\tof\\tengineering,\\tmanufacturing,\\tmarketing,\\tsales\\tand\\tdelivery,\\tservice,\\tinstallation,\\ttechnology\\tand\\tsupport\\tpersonnel,\\tespecially\\tto\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 21,\n        \"lines\": {\n          \"from\": 17,\n          \"to\": 29\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"support\\tour\\tplanned\\thigh-volume\\tproduct\\tsales,\\tmarket\\tand\\tgeographical\\texpansion\\tand\\ttechnological\\tinnovations.\\tIf\\twe\\tare\\tnot\\tsuccessful\\tin\\tmanaging\\nthese\\trisks,\\tour\\tbusiness,\\tfinancial\\tcondition\\tand\\toperating\\tresults\\tmay\\tbe\\tharmed.\\nEmployees\\tmay\\tleave\\tTesla\\tor\\tchoose\\tother\\temployers\\tover\\tTesla\\tdue\\tto\\tvarious\\tfactors,\\tsuch\\tas\\ta\\tvery\\tcompetitive\\tlabor\\tmarket\\tfor\\ttalented\\nindividuals\\twith\\tautomotive\\tor\\ttechnology\\texperience,\\tor\\tany\\tnegative\\tpublicity\\trelated\\tto\\tus.\\tIn\\tregions\\twhere\\twe\\thave\\tor\\twill\\thave\\toperations,\\nparticularly\\tsignificant\\tengineering\\tand\\tmanufacturing\\tcenters,\\tthere\\tis\\tstrong\\tcompetition\\tfor\\tindividuals\\twith\\tskillsets\\tneeded\\tfor\\tour\\tbusiness,\\tincluding\\nspecialized\\tknowledge\\tof\\telectric\\tvehicles,\\tengineering\\tand\\telectrical\\tand\\tbuilding\\tconstruction\\texpertise.\\tWe\\talso\\tcompete\\twith\\tboth\\tmature\\tand\\nprosperous\\tcompanies\\tthat\\thave\\tfar\\tgreater\\tfinancial\\tresources\\tthan\\twe\\tdo\\tand\\tstart-ups\\tand\\temerging\\tcompanies\\tthat\\tpromise\\tshort-term\\tgrowth\\nopportunities.\\nFinally,\\tour\\tcompensation\\tphilosophy\\tfor\\tall\\tof\\tour\\tpersonnel\\treflects\\tour\\tstartup\\torigins,\\twith\\tan\\temphasis\\ton\\tequity-based\\tawards\\tand\\tbenefits\\tin\\norder\\tto\\tclosely\\talign\\ttheir\\tincentives\\twith\\tthe\\tlong-term\\tinterests\\tof\\tour\\tstockholders.\\tWe\\tperiodically\\tseek\\tand\\tobtain\\tapproval\\tfrom\\tour\\tstockholders\\tfor\\nfuture\\tincreases\\tto\\tthe\\tnumber\\tof\\tawards\\tavailable\\tunder\\tour\\tequity\\tincentive\\tand\\temployee\\tstock\\tpurchase\\tplans.\\tIf\\twe\\tare\\tunable\\tto\\tobtain\\tthe\\trequisite\\nstockholder\\tapprovals\\tfor\\tsuch\\tfuture\\tincreases,\\twe\\tmay\\thave\\tto\\texpend\\tadditional\\tcash\\tto\\tcompensate\\tour\\temployees\\tand\\tour\\tability\\tto\\tretain\\tand\\thire\\nqualified\\tpersonnel\\tmay\\tbe\\tharmed.\\n20\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 21,\n        \"lines\": {\n          \"from\": 30,\n          \"to\": 43\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Table\\tof\\tContents\\nWe\\tare\\thighly\\tdependent\\ton\\tthe\\tservices\\tof\\tElon\\tMusk,\\tTechnoking\\tof\\tTesla\\tand\\tour\\tChief\\tExecutive\\tOfficer.\\nWe\\tare\\thighly\\tdependent\\ton\\tthe\\tservices\\tof\\tElon\\tMusk,\\tTechnoking\\tof\\tTesla\\tand\\tour\\tChief\\tExecutive\\tOfficer.\\tAlthough\\tMr.\\tMusk\\tspends\\tsignificant\\ntime\\twith\\tTesla\\tand\\tis\\thighly\\tactive\\tin\\tour\\tmanagement,\\the\\tdoes\\tnot\\tdevote\\this\\tfull\\ttime\\tand\\tattention\\tto\\tTesla.\\tMr.\\tMusk\\talso\\tcurrently\\tserves\\tas\\tChief\\nExecutive\\tOfficer\\tand\\tChief\\tTechnical\\tOfficer\\tof\\tSpace\\tExploration\\tTechnologies\\tCorp.,\\ta\\tdeveloper\\tand\\tmanufacturer\\tof\\tspace\\tlaunch\\tvehicles,\\tChairman\\nand\\tChief\\tTechnical\\tOfficer\\tof\\tX\\tCorp.,\\ta\\tsocial\\tmedia\\tcompany,\\tand\\tis\\tinvolved\\tin\\tother\\temerging\\ttechnology\\tventures.\\nOur\\tinformation\\ttechnology\\tsystems\\tor\\tdata,\\tor\\tthose\\tof\\tour\\tservice\\tproviders\\tor\\tcustomers\\tor\\tusers\\tcould\\tbe\\tsubject\\tto\\tcyber-\\nattacks\\tor\\tother\\tsecurity\\tincidents,\\twhich\\tcould\\tresult\\tin\\tdata\\tbreaches,\\tintellectual\\tproperty\\ttheft,\\tclaims,\\tlitigation,\\tregulatory\\ninvestigations,\\tsignificant\\tliability,\\treputational\\tdamage\\tand\\tother\\tadverse\\tconsequences.\\nWe\\tcontinue\\tto\\texpand\\tour\\tinformation\\ttechnology\\tsystems\\tas\\tour\\toperations\\tgrow,\\tsuch\\tas\\tproduct\\tdata\\tmanagement,\\tprocurement,\\tinventory\\nmanagement,\\tproduction\\tplanning\\tand\\texecution,\\tsales,\\tservice\\tand\\tlogistics,\\tdealer\\tmanagement,\\tfinancial,\\ttax\\tand\\tregulatory\\tcompliance\\tsystems.\\tThis\\nincludes\\tthe\\timplementation\\tof\\tnew\\tinternally\\tdeveloped\\tsystems\\tand\\tthe\\tdeployment\\tof\\tsuch\\tsystems\\tin\\tthe\\tU.S.\\tand\\tabroad.\\tWhile,\\twe\\tmaintain\\ninformation\\ttechnology\\tmeasures\\tdesigned\\tto\\tprotect\\tus\\tagainst\\tintellectual\\tproperty\\ttheft,\\tdata\\tbreaches,\\tsabotage\\tand\\tother\\texternal\\tor\\tinternal\\tcyber-\\nattacks\\tor\\tmisappropriation,\\tour\\tsystems\\tand\\tthose\\tof\\tour\\tservice\\tproviders\\tare\\tpotentially\\tvulnerable\\tto\\tmalware,\\transomware,\\tviruses,\\tdenial-of-service\\nattacks,\\tphishing\\tattacks,\\tsocial\\tengineering,\\tcomputer\\thacking,\\tunauthorized\\taccess,\\texploitation\\tof\\tbugs,\\tdefects\\tand\\tvulnerabilities,\\tbreakdowns,\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 22,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 15\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"damage,\\tinterruptions,\\tsystem\\tmalfunctions,\\tpower\\toutages,\\tterrorism,\\tacts\\tof\\tvandalism,\\tsecurity\\tbreaches,\\tsecurity\\tincidents,\\tinadvertent\\tor\\tintentional\\nactions\\tby\\temployees\\tor\\tother\\tthird\\tparties,\\tand\\tother\\tcyber-attacks.\\nTo\\tthe\\textent\\tany\\tsecurity\\tincident\\tresults\\tin\\tunauthorized\\taccess\\tor\\tdamage\\tto\\tor\\tacquisition,\\tuse,\\tcorruption,\\tloss,\\tdestruction,\\talteration\\tor\\ndissemination\\tof\\tour\\tdata,\\tincluding\\tintellectual\\tproperty\\tand\\tpersonal\\tinformation,\\tor\\tour\\tproducts\\tor\\tvehicles,\\tor\\tfor\\tit\\tto\\tbe\\tbelieved\\tor\\treported\\tthat\\tany\\nof\\tthese\\toccurred,\\tit\\tcould\\tdisrupt\\tour\\tbusiness,\\tharm\\tour\\treputation,\\tcompel\\tus\\tto\\tcomply\\twith\\tapplicable\\tdata\\tbreach\\tnotification\\tlaws,\\tsubject\\tus\\tto\\ttime\\nconsuming,\\tdistracting\\tand\\texpensive\\tlitigation,\\tregulatory\\tinvestigation\\tand\\toversight,\\tmandatory\\tcorrective\\taction,\\trequire\\tus\\tto\\tverify\\tthe\\tcorrectness\\nof\\tdatabase\\tcontents,\\tor\\totherwise\\tsubject\\tus\\tto\\tliability\\tunder\\tlaws,\\tregulations\\tand\\tcontractual\\tobligations,\\tincluding\\tthose\\tthat\\tprotect\\tthe\\tprivacy\\tand\\nsecurity\\tof\\tpersonal\\tinformation.\\tThis\\tcould\\tresult\\tin\\tincreased\\tcosts\\tto\\tus\\tand\\tresult\\tin\\tsignificant\\tlegal\\tand\\tfinancial\\texposure\\tand/or\\treputational\\tharm.\\nWe\\talso\\trely\\ton\\tservice\\tproviders,\\tand\\tsimilar\\tincidents\\trelating\\tto\\ttheir\\tinformation\\ttechnology\\tsystems\\tcould\\talso\\thave\\ta\\tmaterial\\tadverse\\teffect\\ton\\nour\\tbusiness.\\tThere\\thave\\tbeen\\tand\\tmay\\tcontinue\\tto\\tbe\\tsignificant\\tsupply\\tchain\\tattacks.\\tOur\\tservice\\tproviders,\\tincluding\\tour\\tworkforce\\tmanagement\\nsoftware\\tprovider,\\thave\\tbeen\\tsubject\\tto\\transomware\\tand\\tother\\tsecurity\\tincidents,\\tand\\twe\\tcannot\\tguarantee\\tthat\\tour\\tor\\tour\\tservice\\tproviders’\\tsystems\\nhave\\tnot\\tbeen\\tbreached\\tor\\tthat\\tthey\\tdo\\tnot\\tcontain\\texploitable\\tdefects,\\tbugs,\\tor\\tvulnerabilities\\tthat\\tcould\\tresult\\tin\\ta\\tsecurity\\tincident,\\tor\\tother\\tdisruption\\nto,\\tour\\tor\\tour\\tservice\\tproviders’\\tsystems.\\tOur\\tability\\tto\\tmonitor\\tour\\tservice\\tproviders’\\tsecurity\\tmeasures\\tis\\tlimited,\\tand,\\tin\\tany\\tevent,\\tmalicious\\tthird\\nparties\\tmay\\tbe\\table\\tto\\tcircumvent\\tthose\\tsecurity\\tmeasures.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 22,\n        \"lines\": {\n          \"from\": 16,\n          \"to\": 29\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Further,\\tthe\\timplementation,\\tmaintenance,\\tsegregation\\tand\\timprovement\\tof\\tthese\\tsystems\\trequire\\tsignificant\\tmanagement\\ttime,\\tsupport\\tand\\tcost,\\nand\\tthere\\tare\\tinherent\\trisks\\tassociated\\twith\\tdeveloping,\\timproving\\tand\\texpanding\\tour\\tcore\\tsystems\\tas\\twell\\tas\\timplementing\\tnew\\tsystems\\tand\\tupdating\\ncurrent\\tsystems,\\tincluding\\tdisruptions\\tto\\tthe\\trelated\\tareas\\tof\\tbusiness\\toperation.\\tThese\\trisks\\tmay\\taffect\\tour\\tability\\tto\\tmanage\\tour\\tdata\\tand\\tinventory,\\nprocure\\tparts\\tor\\tsupplies\\tor\\tmanufacture,\\tsell,\\tdeliver\\tand\\tservice\\tproducts,\\tadequately\\tprotect\\tour\\tintellectual\\tproperty\\tor\\tachieve\\tand\\tmaintain\\ncompliance\\twith,\\tor\\trealize\\tavailable\\tbenefits\\tunder,\\ttax\\tlaws\\tand\\tother\\tapplicable\\tregulations.\\nMoreover,\\tif\\twe\\tdo\\tnot\\tsuccessfully\\timplement,\\tmaintain\\tor\\texpand\\tthese\\tsystems\\tas\\tplanned,\\tour\\toperations\\tmay\\tbe\\tdisrupted,\\tour\\tability\\tto\\naccurately\\tand/or\\ttimely\\treport\\tour\\tfinancial\\tresults\\tcould\\tbe\\timpaired\\tand\\tdeficiencies\\tmay\\tarise\\tin\\tour\\tinternal\\tcontrol\\tover\\tfinancial\\treporting,\\twhich\\nmay\\timpact\\tour\\tability\\tto\\tcertify\\tour\\tfinancial\\tresults.\\tMoreover,\\tour\\tproprietary\\tinformation,\\tincluding\\tintellectual\\tproperty\\tand\\tpersonal\\tinformation,\\ncould\\tbe\\tcompromised\\tor\\tmisappropriated\\tand\\tour\\treputation\\tmay\\tbe\\tadversely\\taffected.\\tIf\\tthese\\tsystems\\tor\\ttheir\\tfunctionality\\tdo\\tnot\\toperate\\tas\\twe\\nexpect\\tthem\\tto,\\twe\\tmay\\tbe\\trequired\\tto\\texpend\\tsignificant\\tresources\\tto\\tmake\\tcorrections\\tor\\tfind\\talternative\\tsources\\tfor\\tperforming\\tthese\\tfunctions.\\n21\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 22,\n        \"lines\": {\n          \"from\": 30,\n          \"to\": 40\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Table\\tof\\tContents\\nAny\\tunauthorized\\tcontrol\\tor\\tmanipulation\\tof\\tour\\tproducts’\\tsystems\\tcould\\tresult\\tin\\tloss\\tof\\tconfidence\\tin\\tus\\tand\\tour\\tproducts.\\nOur\\tproducts\\tcontain\\tcomplex\\tinformation\\ttechnology\\tsystems.\\tFor\\texample,\\tour\\tvehicles\\tand\\tenergy\\tstorage\\tproducts\\tare\\tdesigned\\twith\\tbuilt-in\\ndata\\tconnectivity\\tto\\taccept\\tand\\tinstall\\tperiodic\\tremote\\tupdates\\tfrom\\tus\\tto\\timprove\\tor\\tupdate\\ttheir\\tfunctionality.\\tWhile\\twe\\thave\\timplemented\\tsecurity\\nmeasures\\tintended\\tto\\tprevent\\tunauthorized\\taccess\\tto\\tour\\tinformation\\ttechnology\\tnetworks,\\tour\\tproducts\\tand\\ttheir\\tsystems,\\tmalicious\\tentities\\thave\\nreportedly\\tattempted,\\tand\\tmay\\tattempt\\tin\\tthe\\tfuture,\\tto\\tgain\\tunauthorized\\taccess\\tto\\tmodify,\\talter\\tand\\tuse\\tsuch\\tnetworks,\\tproducts\\tand\\tsystems\\tto\\tgain\\ncontrol\\tof,\\tor\\tto\\tchange,\\tour\\tproducts’\\tfunctionality,\\tuser\\tinterface\\tand\\tperformance\\tcharacteristics\\tor\\tto\\tgain\\taccess\\tto\\tdata\\tstored\\tin\\tor\\tgenerated\\tby\\tour\\nproducts.\\tWe\\tencourage\\treporting\\tof\\tpotential\\tvulnerabilities\\tin\\tthe\\tsecurity\\tof\\tour\\tproducts\\tthrough\\tour\\tsecurity\\tvulnerability\\treporting\\tpolicy,\\tand\\twe\\naim\\tto\\tremedy\\tany\\treported\\tand\\tverified\\tvulnerability.\\tHowever,\\tthere\\tcan\\tbe\\tno\\tassurance\\tthat\\tany\\tvulnerabilities\\twill\\tnot\\tbe\\texploited\\tbefore\\tthey\\tcan\\nbe\\tidentified,\\tor\\tthat\\tour\\tremediation\\tefforts\\tare\\tor\\twill\\tbe\\tsuccessful.\\nAny\\tunauthorized\\taccess\\tto\\tor\\tcontrol\\tof\\tour\\tproducts\\tor\\ttheir\\tsystems\\tor\\tany\\tloss\\tof\\tdata\\tcould\\tresult\\tin\\tlegal\\tclaims\\tor\\tgovernment\\tinvestigations.\\nIn\\taddition,\\tregardless\\tof\\ttheir\\tveracity,\\treports\\tof\\tunauthorized\\taccess\\tto\\tour\\tproducts,\\ttheir\\tsystems\\tor\\tdata,\\tas\\twell\\tas\\tother\\tfactors\\tthat\\tmay\\tresult\\tin\\nthe\\tperception\\tthat\\tour\\tproducts,\\ttheir\\tsystems\\tor\\tdata\\tare\\tcapable\\tof\\tbeing\\thacked,\\tmay\\tharm\\tour\\tbrand,\\tprospects\\tand\\toperating\\tresults.\\tWe\\thave\\tbeen\\nthe\\tsubject\\tof\\tsuch\\treports\\tin\\tthe\\tpast.\\nOur\\tbusiness\\tmay\\tbe\\tadversely\\taffected\\tby\\tany\\tdisruptions\\tcaused\\tby\\tunion\\tactivities.\\nIt\\tis\\tnot\\tuncommon\\tfor\\temployees\\tof\\tcertain\\ttrades\\tat\\tcompanies\\tsuch\\tas\\tours\\tto\\tbelong\\tto\\ta\\tunion,\\twhich\\tcan\\tresult\\tin\\thigher\\temployee\\tcosts\\tand\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 23,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 16\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"increased\\trisk\\tof\\twork\\tstoppages.\\tMoreover,\\tregulations\\tin\\tsome\\tjurisdictions\\toutside\\tof\\tthe\\tU.S.\\tmandate\\temployee\\tparticipation\\tin\\tindustrial\\tcollective\\nbargaining\\tagreements\\tand\\twork\\tcouncils\\twith\\tcertain\\tconsultation\\trights\\twith\\trespect\\tto\\tthe\\trelevant\\tcompanies’\\toperations.\\tAlthough\\twe\\twork\\tdiligently\\nto\\tprovide\\tthe\\tbest\\tpossible\\twork\\tenvironment\\tfor\\tour\\temployees,\\tthey\\tmay\\tstill\\tdecide\\tto\\tjoin\\tor\\tseek\\trecognition\\tto\\tform\\ta\\tlabor\\tunion,\\tor\\twe\\tmay\\tbe\\nrequired\\tto\\tbecome\\ta\\tunion\\tsignatory.\\tFrom\\ttime\\tto\\ttime,\\tlabor\\tunions\\thave\\tengaged\\tin\\tcampaigns\\tto\\torganize\\tcertain\\tof\\tour\\toperations,\\tas\\tpart\\tof\\twhich\\nsuch\\tunions\\thave\\tfiled\\tunfair\\tlabor\\tpractice\\tcharges\\tagainst\\tus\\twith\\tthe\\tNational\\tLabor\\tRelations\\tBoard\\t(the\\t“NLRB”),\\tand\\tthey\\tmay\\tdo\\tso\\tin\\tthe\\tfuture.\\nAny\\tunfavorable\\tultimate\\toutcome\\tfor\\tTesla\\tmay\\thave\\ta\\tnegative\\timpact\\ton\\tthe\\tperception\\tof\\tTesla’s\\ttreatment\\tof\\tour\\temployees.\\tFurthermore,\\twe\\tare\\ndirectly\\tor\\tindirectly\\tdependent\\tupon\\tcompanies\\twith\\tunionized\\twork\\tforces,\\tsuch\\tas\\tsuppliers\\tand\\ttrucking\\tand\\tfreight\\tcompanies.\\tAny\\twork\\tstoppages\\tor\\nstrikes\\torganized\\tby\\tsuch\\tunions\\tcould\\tdelay\\tthe\\tmanufacture\\tand\\tsale\\tof\\tour\\tproducts\\tand\\tmay\\tharm\\tour\\tbusiness\\tand\\toperating\\tresults.\\nWe\\tmay\\tchoose\\tto\\tor\\tbe\\tcompelled\\tto\\tundertake\\tproduct\\trecalls\\tor\\ttake\\tother\\tsimilar\\tactions.\\nAs\\ta\\tmanufacturing\\tcompany,\\twe\\tmust\\tmanage\\tthe\\trisk\\tof\\tproduct\\trecalls\\twith\\trespect\\tto\\tour\\tproducts.\\tRecalls\\tfor\\tour\\tvehicles\\thave\\tresulted\\tfrom\\nvarious\\thardware\\tand\\tsoftware-related\\tsafety\\tconcerns\\tor\\tnon-compliance\\tdeterminations.\\tIn\\taddition\\tto\\trecalls\\tinitiated\\tby\\tus\\tfor\\tvarious\\tcauses,\\ttesting\\nof\\tor\\tinvestigations\\tinto\\tour\\tproducts\\tby\\tgovernment\\tregulators\\tor\\tindustry\\tgroups\\tmay\\tcompel\\tus\\tto\\tinitiate\\tproduct\\trecalls\\tor\\tmay\\tresult\\tin\\tnegative\\npublic\\tperceptions\\tabout\\tthe\\tsafety\\tof\\tour\\tproducts,\\teven\\tif\\twe\\tdisagree\\twith\\tthe\\tdefect\\tdetermination\\tor\\thave\\tdata\\tthat\\tcontradicts\\tit.\\tIn\\tthe\\tfuture,\\twe\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 23,\n        \"lines\": {\n          \"from\": 17,\n          \"to\": 29\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"may\\tvoluntarily\\tor\\tinvoluntarily\\tinitiate\\trecalls\\tif\\tany\\tof\\tour\\tproducts\\tare\\tdetermined\\tby\\tus\\tor\\ta\\tregulator\\tto\\tcontain\\ta\\tsafety\\tdefect\\tor\\tbe\\tnoncompliant\\nwith\\tapplicable\\tlaws\\tand\\tregulations,\\tsuch\\tas\\tU.S.\\tFederal\\tMotor\\tVehicle\\tSafety\\tStandards.\\tSuch\\trecalls,\\twhether\\tvoluntary\\tor\\tinvoluntary\\tor\\tcaused\\tby\\nsystems\\tor\\tcomponents\\tengineered\\tor\\tmanufactured\\tby\\tus\\tor\\tour\\tsuppliers,\\tcould\\tresult\\tin\\tsignificant\\texpense,\\tsupply\\tchain\\tcomplications\\tand\\tservice\\nburdens,\\tand\\tmay\\tharm\\tour\\tbrand,\\tbusiness,\\tprospects,\\tfinancial\\tcondition\\tand\\toperating\\tresults.\\nOur\\tcurrent\\tand\\tfuture\\twarranty\\treserves\\tmay\\tbe\\tinsufficient\\tto\\tcover\\tfuture\\twarranty\\tclaims.\\nWe\\tprovide\\ta\\tmanufacturer’s\\twarranty\\ton\\tall\\tnew\\tand\\tused\\tTesla\\tvehicles\\twe\\tsell\\tdirectly\\tto\\tcustomers.\\tWe\\talso\\tprovide\\tcertain\\twarranties\\twith\\nrespect\\tto\\tthe\\tenergy\\tgeneration\\tand\\tstorage\\tsystems\\twe\\tsell,\\tincluding\\ton\\ttheir\\tinstallation\\tand\\tmaintenance.\\tFor\\tcomponents\\tnot\\tmanufactured\\tby\\tus,\\nwe\\tgenerally\\tpass\\tthrough\\tto\\tour\\tcustomers\\tthe\\tapplicable\\tmanufacturers’\\twarranties,\\tbut\\tmay\\tretain\\tsome\\twarranty\\tresponsibilities\\tfor\\tsome\\tor\\tall\\tof\\tthe\\nlife\\tof\\tsuch\\tcomponents.\\tAs\\tpart\\tof\\tour\\tenergy\\tgeneration\\tand\\tstorage\\tsystem\\tcontracts,\\twe\\tmay\\tprovide\\tthe\\tcustomer\\twith\\tperformance\\tguarantees\\tthat\\nguarantee\\tthat\\tthe\\tunderlying\\tsystem\\twill\\tmeet\\tor\\texceed\\tthe\\tminimum\\tenergy\\tgeneration\\tor\\tother\\tenergy\\tperformance\\trequirements\\tspecified\\tin\\tthe\\ncontract.\\tUnder\\tthese\\tperformance\\tguarantees,\\twe\\tgenerally\\tbear\\tthe\\trisk\\tof\\telectricity\\tproduction\\tor\\tother\\tperformance\\tshortfalls,\\tincluding\\tin\\tsome\\ncases\\tshortfalls\\tcaused\\tby\\tfailures\\tin\\tcomponents\\tfrom\\tthird\\tparty\\tmanufacturers.\\tThese\\trisks\\tare\\texacerbated\\tin\\tthe\\tevent\\tsuch\\tmanufacturers\\tcease\\noperations\\tor\\tfail\\tto\\thonor\\ttheir\\twarranties.\\n22\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 23,\n        \"lines\": {\n          \"from\": 30,\n          \"to\": 43\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Table\\tof\\tContents\\nIf\\tour\\twarranty\\treserves\\tare\\tinadequate\\tto\\tcover\\tfuture\\twarranty\\tclaims\\ton\\tour\\tproducts,\\tour\\tfinancial\\tcondition\\tand\\toperating\\tresults\\tmay\\tbe\\nharmed.\\tWarranty\\treserves\\tinclude\\tour\\tmanagement’s\\tbest\\testimates\\tof\\tthe\\tprojected\\tcosts\\tto\\trepair\\tor\\tto\\treplace\\titems\\tunder\\twarranty,\\twhich\\tare\\tbased\\non\\tactual\\tclaims\\tincurred\\tto\\tdate\\tand\\tan\\testimate\\tof\\tthe\\tnature,\\tfrequency\\tand\\tcosts\\tof\\tfuture\\tclaims.\\tSuch\\testimates\\tare\\tinherently\\tuncertain\\tand\\nchanges\\tto\\tour\\thistorical\\tor\\tprojected\\texperience,\\tespecially\\twith\\trespect\\tto\\tproducts\\tthat\\twe\\thave\\tintroduced\\trelatively\\trecently\\tand/or\\tthat\\twe\\texpect\\tto\\nproduce\\tat\\tsignificantly\\tgreater\\tvolumes\\tthan\\tour\\tpast\\tproducts,\\tmay\\tcause\\tmaterial\\tchanges\\tto\\tour\\twarranty\\treserves\\tin\\tthe\\tfuture.\\nOur\\tinsurance\\tcoverage\\tstrategy\\tmay\\tnot\\tbe\\tadequate\\tto\\tprotect\\tus\\tfrom\\tall\\tbusiness\\trisks.\\nWe\\tmay\\tbe\\tsubject,\\tin\\tthe\\tordinary\\tcourse\\tof\\tbusiness,\\tto\\tlosses\\tresulting\\tfrom\\tproducts\\tliability,\\taccidents,\\tacts\\tof\\tGod\\tand\\tother\\tclaims\\tagainst\\tus,\\nfor\\twhich\\twe\\tmay\\thave\\tno\\tinsurance\\tcoverage.\\tAs\\ta\\tgeneral\\tmatter,\\twe\\tdo\\tnot\\tmaintain\\tas\\tmuch\\tinsurance\\tcoverage\\tas\\tmany\\tother\\tcompanies\\tdo,\\tand\\tin\\nsome\\tcases,\\twe\\tdo\\tnot\\tmaintain\\tany\\tat\\tall.\\tAdditionally,\\tthe\\tpolicies\\tthat\\twe\\tdo\\thave\\tmay\\tinclude\\tsignificant\\tdeductibles\\tor\\tself-insured\\tretentions,\\tpolicy\\nlimitations\\tand\\texclusions,\\tand\\twe\\tcannot\\tbe\\tcertain\\tthat\\tour\\tinsurance\\tcoverage\\twill\\tbe\\tsufficient\\tto\\tcover\\tall\\tfuture\\tlosses\\tor\\tclaims\\tagainst\\tus.\\tA\\tloss\\nthat\\tis\\tuninsured\\tor\\twhich\\texceeds\\tpolicy\\tlimits\\tmay\\trequire\\tus\\tto\\tpay\\tsubstantial\\tamounts,\\twhich\\tmay\\tharm\\tour\\tfinancial\\tcondition\\tand\\toperating\\tresults.\\nOur\\tdebt\\tagreements\\tcontain\\tcovenant\\trestrictions\\tthat\\tmay\\tlimit\\tour\\tability\\tto\\toperate\\tour\\tbusiness.\\nThe\\tterms\\tof\\tcertain\\tof\\tour\\tdebt\\tfacilities\\tcontain,\\tand\\tany\\tof\\tour\\tother\\tfuture\\tdebt\\tagreements\\tmay\\tcontain,\\tcovenant\\trestrictions\\tthat\\tmay\\tlimit\\tour\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 24,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 14\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"ability\\tto\\toperate\\tour\\tbusiness,\\tincluding\\trestrictions\\ton\\tour\\tand/or\\tour\\tsubsidiaries’\\tability\\tto,\\tamong\\tother\\tthings,\\tincur\\tadditional\\tdebt\\tor\\tcreate\\tliens.\\tIn\\naddition,\\tunder\\tcertain\\tcircumstances\\twe\\tare\\trequired\\tto\\tmaintain\\ta\\tcertain\\tamount\\tof\\tliquidity.\\tAs\\ta\\tresult\\tof\\tthese\\tcovenants,\\tour\\tability\\tto\\trespond\\tto\\nchanges\\tin\\tbusiness\\tand\\teconomic\\tconditions\\tand\\tengage\\tin\\tbeneficial\\ttransactions,\\tincluding\\tto\\tobtain\\tadditional\\tfinancing\\tas\\tneeded,\\tmay\\tbe\\trestricted.\\nFurthermore,\\tour\\tfailure\\tto\\tcomply\\twith\\tour\\tdebt\\tcovenants\\tcould\\tresult\\tin\\ta\\tdefault\\tunder\\tour\\tdebt\\tagreements,\\twhich\\tcould\\tpermit\\tthe\\tholders\\tto\\naccelerate\\tour\\tobligation\\tto\\trepay\\tthe\\tdebt.\\tIf\\tany\\tof\\tour\\tdebt\\tis\\taccelerated,\\twe\\tmay\\tnot\\thave\\tsufficient\\tfunds\\tavailable\\tto\\trepay\\tit.\\nAdditional\\tfunds\\tmay\\tnot\\tbe\\tavailable\\tto\\tus\\twhen\\twe\\tneed\\tor\\twant\\tthem.\\nOur\\tbusiness\\tand\\tour\\tfuture\\tplans\\tfor\\texpansion\\tare\\tcapital-intensive,\\tand\\tthe\\tspecific\\ttiming\\tof\\tcash\\tinflows\\tand\\toutflows\\tmay\\tfluctuate\\nsubstantially\\tfrom\\tperiod\\tto\\tperiod.\\tWe\\tmay\\tneed\\tor\\twant\\tto\\traise\\tadditional\\tfunds\\tthrough\\tthe\\tissuance\\tof\\tequity,\\tequity-related\\tor\\tdebt\\tsecurities\\tor\\nthrough\\tobtaining\\tcredit\\tfrom\\tfinancial\\tinstitutions\\tto\\tfund,\\ttogether\\twith\\tour\\tprincipal\\tsources\\tof\\tliquidity,\\tthe\\tcosts\\tof\\tdeveloping\\tand\\tmanufacturing\\tour\\ncurrent\\tor\\tfuture\\tproducts,\\tto\\tpay\\tany\\tsignificant\\tunplanned\\tor\\taccelerated\\texpenses\\tor\\tfor\\tnew\\tsignificant\\tstrategic\\tinvestments,\\tor\\tto\\trefinance\\tour\\nsignificant\\tconsolidated\\tindebtedness,\\teven\\tif\\tnot\\trequired\\tto\\tdo\\tso\\tby\\tthe\\tterms\\tof\\tsuch\\tindebtedness.\\tWe\\tcannot\\tbe\\tcertain\\tthat\\tadditional\\tfunds\\twill\\tbe\\navailable\\tto\\tus\\ton\\tfavorable\\tterms\\twhen\\trequired,\\tor\\tat\\tall.\\tIf\\twe\\tcannot\\traise\\tadditional\\tfunds\\twhen\\twe\\tneed\\tthem,\\tour\\tfinancial\\tcondition,\\tresults\\tof\\noperations,\\tbusiness\\tand\\tprospects\\tcould\\tbe\\tmaterially\\tand\\tadversely\\taffected.\\nWe\\tmay\\tbe\\tnegatively\\timpacted\\tby\\tany\\tearly\\tobsolescence\\tof\\tour\\tmanufacturing\\tequipment.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 24,\n        \"lines\": {\n          \"from\": 15,\n          \"to\": 28\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"We\\tdepreciate\\tthe\\tcost\\tof\\tour\\tmanufacturing\\tequipment\\tover\\ttheir\\texpected\\tuseful\\tlives.\\tHowever,\\tproduct\\tcycles\\tor\\tmanufacturing\\ttechnology\\tmay\\nchange\\tperiodically,\\tand\\twe\\tmay\\tdecide\\tto\\tupdate\\tour\\tproducts\\tor\\tmanufacturing\\tprocesses\\tmore\\tquickly\\tthan\\texpected.\\tMoreover,\\timprovements\\tin\\nengineering\\tand\\tmanufacturing\\texpertise\\tand\\tefficiency\\tmay\\tresult\\tin\\tour\\tability\\tto\\tmanufacture\\tour\\tproducts\\tusing\\tless\\tof\\tour\\tcurrently\\tinstalled\\nequipment.\\tAlternatively,\\tas\\twe\\tramp\\tand\\tmature\\tthe\\tproduction\\tof\\tour\\tproducts\\tto\\thigher\\tlevels,\\twe\\tmay\\tdiscontinue\\tthe\\tuse\\tof\\talready\\tinstalled\\nequipment\\tin\\tfavor\\tof\\tdifferent\\tor\\tadditional\\tequipment.\\tThe\\tuseful\\tlife\\tof\\tany\\tequipment\\tthat\\twould\\tbe\\tretired\\tearly\\tas\\ta\\tresult\\twould\\tbe\\tshortened,\\ncausing\\tthe\\tdepreciation\\ton\\tsuch\\tequipment\\tto\\tbe\\taccelerated,\\tand\\tour\\tresults\\tof\\toperations\\tmay\\tbe\\tharmed.\\nThere\\tis\\tno\\tguarantee\\tthat\\twe\\twill\\thave\\tsufficient\\tcash\\tflow\\tfrom\\tour\\tbusiness\\tto\\tpay\\tour\\tindebtedness\\tor\\tthat\\twe\\twill\\tnot\\tincur\\nadditional\\tindebtedness.\\nAs\\tof\\tDecember\\t31,\\t2023,\\twe\\tand\\tour\\tsubsidiaries\\thad\\toutstanding\\t$4.68\\tbillion\\tin\\taggregate\\tprincipal\\tamount\\tof\\tindebtedness\\t(see\\tNote\\t11,\\tDebt,\\nto\\tthe\\tconsolidated\\tfinancial\\tstatements\\tincluded\\telsewhere\\tin\\tthis\\tAnnual\\tReport\\ton\\tForm\\t10-K).\\tOur\\tconsolidated\\tindebtedness\\tmay\\tincrease\\tour\\nvulnerability\\tto\\tany\\tgenerally\\tadverse\\teconomic\\tand\\tindustry\\tconditions.\\tWe\\tand\\tour\\tsubsidiaries\\tmay,\\tsubject\\tto\\tthe\\tlimitations\\tin\\tthe\\tterms\\tof\\tour\\nexisting\\tand\\tfuture\\tindebtedness,\\tincur\\tadditional\\tdebt,\\tsecure\\texisting\\tor\\tfuture\\tdebt\\tor\\trecapitalize\\tour\\tdebt.\\n23\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 24,\n        \"lines\": {\n          \"from\": 29,\n          \"to\": 41\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Table\\tof\\tContents\\nOur\\tability\\tto\\tmake\\tscheduled\\tpayments\\tof\\tthe\\tprincipal\\tand\\tinterest\\ton\\tour\\tindebtedness\\twhen\\tdue,\\tto\\tmake\\tpayments\\tupon\\tconversion\\tor\\nrepurchase\\tdemands\\twith\\trespect\\tto\\tour\\tconvertible\\tsenior\\tnotes\\tor\\tto\\trefinance\\tour\\tindebtedness\\tas\\twe\\tmay\\tneed\\tor\\tdesire,\\tdepends\\ton\\tour\\tfuture\\nperformance,\\twhich\\tis\\tsubject\\tto\\teconomic,\\tfinancial,\\tcompetitive\\tand\\tother\\tfactors\\tbeyond\\tour\\tcontrol.\\tOur\\tbusiness\\tmay\\tnot\\tcontinue\\tto\\tgenerate\\tcash\\nflow\\tfrom\\toperations\\tin\\tthe\\tfuture\\tsufficient\\tto\\tsatisfy\\tour\\tobligations\\tunder\\tour\\texisting\\tindebtedness\\tand\\tany\\tfuture\\tindebtedness\\twe\\tmay\\tincur,\\tand\\tto\\nmake\\tnecessary\\tcapital\\texpenditures.\\tIf\\twe\\tare\\tunable\\tto\\tgenerate\\tsuch\\tcash\\tflow,\\twe\\tmay\\tbe\\trequired\\tto\\tadopt\\tone\\tor\\tmore\\talternatives,\\tsuch\\tas\\nreducing\\tor\\tdelaying\\tinvestments\\tor\\tcapital\\texpenditures,\\tselling\\tassets,\\trefinancing\\tor\\tobtaining\\tadditional\\tequity\\tcapital\\ton\\tterms\\tthat\\tmay\\tbe\\tonerous\\nor\\thighly\\tdilutive.\\tOur\\tability\\tto\\trefinance\\texisting\\tor\\tfuture\\tindebtedness\\twill\\tdepend\\ton\\tthe\\tcapital\\tmarkets\\tand\\tour\\tfinancial\\tcondition\\tat\\tsuch\\ttime.\\tIn\\naddition,\\tour\\tability\\tto\\tmake\\tpayments\\tmay\\tbe\\tlimited\\tby\\tlaw,\\tby\\tregulatory\\tauthority\\tor\\tby\\tagreements\\tgoverning\\tour\\tfuture\\tindebtedness.\\tWe\\tmay\\tnot\\nbe\\table\\tto\\tengage\\tin\\tthese\\tactivities\\ton\\tdesirable\\tterms\\tor\\tat\\tall,\\twhich\\tmay\\tresult\\tin\\ta\\tdefault\\ton\\tour\\texisting\\tor\\tfuture\\tindebtedness\\tand\\tharm\\tour\\nfinancial\\tcondition\\tand\\toperating\\tresults.\\nWe\\tare\\texposed\\tto\\tfluctuations\\tin\\tcurrency\\texchange\\trates.\\nWe\\ttransact\\tbusiness\\tglobally\\tin\\tmultiple\\tcurrencies\\tand\\thave\\tforeign\\tcurrency\\trisks\\trelated\\tto\\tour\\trevenue,\\tcosts\\tof\\trevenue,\\toperating\\texpenses\\nand\\tlocalized\\tsubsidiary\\tdebt\\tdenominated\\tin\\tcurrencies\\tother\\tthan\\tthe\\tU.S.\\tdollar.\\tTo\\tthe\\textent\\twe\\thave\\tsignificant\\trevenues\\tdenominated\\tin\\tsuch\\nforeign\\tcurrencies,\\tany\\tstrengthening\\tof\\tthe\\tU.S.\\tdollar\\twould\\ttend\\tto\\treduce\\tour\\trevenues\\tas\\tmeasured\\tin\\tU.S.\\tdollars,\\tas\\twe\\thave\\thistorically\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 25,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 15\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"experienced,\\tand\\tare\\tcurrently\\texperiencing.\\tIn\\taddition,\\ta\\tportion\\tof\\tour\\tcosts\\tand\\texpenses\\thave\\tbeen,\\tand\\twe\\tanticipate\\twill\\tcontinue\\tto\\tbe,\\ndenominated\\tin\\tforeign\\tcurrencies.\\tIf\\twe\\tdo\\tnot\\thave\\tfully\\toffsetting\\trevenues\\tin\\tthese\\tcurrencies\\tand\\tif\\tthe\\tvalue\\tof\\tthe\\tU.S.\\tdollar\\tdepreciates\\nsignificantly\\tagainst\\tthese\\tcurrencies,\\tour\\tcosts\\tas\\tmeasured\\tin\\tU.S.\\tdollars\\tas\\ta\\tpercent\\tof\\tour\\trevenues\\twill\\tcorrespondingly\\tincrease\\tand\\tour\\tmargins\\nwill\\tsuffer.\\tAs\\ta\\tresult,\\tour\\toperating\\tresults\\tmay\\tbe\\tharmed.\\nWe\\tmay\\tnot\\tbe\\table\\tto\\tadequately\\tprotect\\tor\\tdefend\\tourselves\\tagainst\\tintellectual\\tproperty\\tinfringement\\tclaims,\\twhich\\tmay\\tbe\\ntime-consuming\\tand\\texpensive,\\tor\\taffect\\tthe\\tfreedom\\tto\\toperate\\tour\\tbusiness.\\nOur\\tcompetitors\\tor\\tother\\tthird\\tparties\\tmay\\thold\\tor\\tobtain\\tpatents,\\tcopyrights,\\ttrademarks\\tor\\tother\\tproprietary\\trights\\tthat\\tcould\\tprevent,\\tlimit\\tor\\ninterfere\\twith\\tour\\tability\\tto\\tmake,\\tuse,\\tdevelop,\\tsell\\tor\\tmarket\\tour\\tproducts\\tand\\tservices,\\twhich\\tcould\\tmake\\tit\\tmore\\tdifficult\\tfor\\tus\\tto\\toperate\\tour\\tbusiness.\\nFrom\\ttime\\tto\\ttime,\\tthe\\tholders\\tof\\tsuch\\tintellectual\\tproperty\\trights\\tmay\\tassert\\ttheir\\trights\\tand\\turge\\tus\\tto\\ttake\\tlicenses\\tand/or\\tmay\\tbring\\tsuits\\talleging\\ninfringement\\tor\\tmisappropriation\\tof\\tsuch\\trights,\\twhich\\tcould\\tresult\\tin\\tsubstantial\\tcosts,\\tnegative\\tpublicity\\tand\\tmanagement\\tattention,\\tregardless\\tof\\tmerit.\\nIn\\taddition,\\tthe\\teffective\\tprotection\\tfor\\tour\\tbrands,\\ttechnologies,\\tand\\tproprietary\\tinformation\\tmay\\tbe\\tlimited\\tor\\tunavailable\\tin\\tcertain\\tcountries,\\nmaking\\tit\\tdifficult\\tto\\tprotect\\tour\\tintellectual\\tproperty\\tfrom\\tmisappropriation\\tor\\tinfringement.\\tAlthough\\twe\\tmake\\treasonable\\tefforts\\tto\\tmaintain\\tthe\\nconfidentiality\\tof\\tour\\tproprietary\\tinformation,\\twe\\tcannot\\tguarantee\\tthat\\tthese\\tactions\\twill\\tdeter\\tor\\tprevent\\tmisappropriation\\tof\\tour\\tintellectual\\tproperty.\\nThe\\ttheft\\tor\\tunauthorized\\tuse\\tor\\tpublication\\tof\\tour\\ttrade\\tsecrets\\tand\\tconfidential\\tinformation\\tcould\\taffect\\tour\\tcompetitive\\tposition.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 25,\n        \"lines\": {\n          \"from\": 16,\n          \"to\": 29\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"While\\twe\\tendeavor\\tto\\tobtain\\tand\\tprotect\\tthe\\tintellectual\\tproperty\\trights\\tthat\\twe\\texpect\\twill\\tallow\\tus\\tto\\tretain\\tor\\tadvance\\tour\\tstrategic\\tinitiatives\\tin\\nthese\\tcircumstances,\\tthere\\tcan\\tbe\\tno\\tassurance\\tthat\\twe\\twill\\tbe\\table\\tto\\tadequately\\tidentify\\tand\\tprotect\\tthe\\tportions\\tof\\tintellectual\\tproperty\\tthat\\tare\\nstrategic\\tto\\tour\\tbusiness,\\tor\\tmitigate\\tthe\\trisk\\tof\\tpotential\\tsuits\\tor\\tother\\tlegal\\tdemands\\tby\\tthird\\tparties.\\tAccordingly,\\twe\\tmay\\tconsider\\tthe\\tentering\\tinto\\nlicensing\\tagreements\\twith\\trespect\\tto\\tsuch\\trights,\\talthough\\tno\\tassurance\\tcan\\tbe\\tgiven\\tthat\\tsuch\\tlicenses\\tcan\\tbe\\tobtained\\ton\\tacceptable\\tterms\\tor\\tthat\\nlitigation\\twill\\tnot\\toccur,\\tand\\tsuch\\tlicenses\\tand\\tassociated\\tlitigation\\tcould\\tsignificantly\\tincrease\\tour\\toperating\\texpenses.\\tFurther,\\tif\\twe\\tare\\tdetermined\\tto\\nhave\\tor\\tbelieve\\tthere\\tis\\ta\\thigh\\tlikelihood\\tthat\\twe\\thave\\tinfringed\\tupon\\ta\\tthird\\tparty’s\\tintellectual\\tproperty\\trights,\\twe\\tmay\\tbe\\trequired\\tto\\tcease\\tmaking,\\nselling\\tor\\tincorporating\\tcertain\\tcomponents\\tor\\tintellectual\\tproperty\\tinto\\tthe\\tgoods\\tand\\tservices\\twe\\toffer,\\tto\\tpay\\tsubstantial\\tdamages\\tand/or\\tlicense\\nroyalties,\\tto\\tredesign\\tour\\tproducts\\tand\\tservices\\tand/or\\tto\\testablish\\tand\\tmaintain\\talternative\\tbranding\\tfor\\tour\\tproducts\\tand\\tservices.\\tIn\\tthe\\tevent\\tthat\\twe\\nare\\trequired\\tto\\ttake\\tone\\tor\\tmore\\tsuch\\tactions,\\tour\\tbrand,\\tbusiness,\\tfinancial\\tcondition\\tand\\toperating\\tresults\\tmay\\tbe\\tharmed.\\nIncreased\\tscrutiny\\tand\\tchanging\\texpectations\\tfrom\\tstakeholders\\twith\\trespect\\tto\\tthe\\tCompany’s\\tESG\\tpractices\\tmay\\tresult\\tin\\nadditional\\tcosts\\tor\\trisks.\\nCompanies\\tacross\\tmany\\tindustries\\tare\\tfacing\\tincreasing\\tscrutiny\\trelated\\tto\\ttheir\\tenvironmental,\\tsocial\\tand\\tgovernance\\t(ESG)\\tpractices.\\tInvestor\\nadvocacy\\tgroups,\\tcertain\\tinstitutional\\tinvestors,\\tinvestment\\tfunds\\tand\\tother\\tinfluential\\tinvestors\\tare\\talso\\tincreasingly\\tfocused\\ton\\tESG\\tpractices\\tand\\tin\\nrecent\\tyears\\thave\\tplaced\\tincreasing\\timportance\\ton\\tthe\\tnon-financial\\timpacts\\tof\\ttheir\\tinvestments.\\tWhile\\tour\\tmission\\tis\\tto\\taccelerate\\tthe\\tworld’s\\ttransition\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 25,\n        \"lines\": {\n          \"from\": 30,\n          \"to\": 43\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"to\\tsustainable\\tenergy,\\tif\\tour\\tESG\\tpractices\\tdo\\tnot\\tmeet\\tinvestor\\tor\\tother\\tindustry\\tstakeholder\\texpectations,\\twhich\\tcontinue\\tto\\tevolve,\\twe\\tmay\\tincur\\nadditional\\tcosts\\tand\\tour\\tbrand,\\tability\\tto\\tattract\\tand\\tretain\\tqualified\\temployees\\tand\\tbusiness\\tmay\\tbe\\tharmed.\\n24\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 25,\n        \"lines\": {\n          \"from\": 44,\n          \"to\": 46\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Table\\tof\\tContents\\nOur\\toperations\\tcould\\tbe\\tadversely\\taffected\\tby\\tevents\\toutside\\tof\\tour\\tcontrol,\\tsuch\\tas\\tnatural\\tdisasters,\\twars\\tor\\thealth\\tepidemics.\\nWe\\tmay\\tbe\\timpacted\\tby\\tnatural\\tdisasters,\\twars,\\thealth\\tepidemics,\\tweather\\tconditions,\\tthe\\tlong-term\\teffects\\tof\\tclimate\\tchange,\\tpower\\toutages\\tor\\nother\\tevents\\toutside\\tof\\tour\\tcontrol.\\tFor\\texample,\\tour\\tFremont\\tFactory\\tand\\tGigafactory\\tNevada\\tare\\tlocated\\tin\\tseismically\\tactive\\tregions\\tin\\tNorthern\\nCalifornia\\tand\\tNevada,\\tand\\tour\\tGigafactory\\tShanghai\\tis\\tlocated\\tin\\ta\\tflood-prone\\tarea.\\tMoreover,\\tthe\\tarea\\tin\\twhich\\tour\\tGigafactory\\tTexas\\tis\\tlocated\\nexperienced\\tsevere\\twinter\\tstorms\\tin\\tthe\\tfirst\\tquarter\\tof\\t2021\\tthat\\thad\\ta\\twidespread\\timpact\\ton\\tutilities\\tand\\ttransportation.\\tIf\\tmajor\\tdisasters\\tsuch\\tas\\nearthquakes,\\tfloods\\tor\\tother\\tclimate-related\\tevents\\toccur,\\tor\\tour\\tinformation\\tsystem\\tor\\tcommunication\\tbreaks\\tdown\\tor\\toperates\\timproperly,\\tour\\nheadquarters\\tand\\tproduction\\tfacilities\\tmay\\tbe\\tseriously\\tdamaged,\\tor\\twe\\tmay\\thave\\tto\\tstop\\tor\\tdelay\\tproduction\\tand\\tshipment\\tof\\tour\\tproducts.\\tIn\\taddition,\\nthe\\tglobal\\tCOVID-19\\tpandemic\\thas\\timpacted\\teconomic\\tmarkets,\\tmanufacturing\\toperations,\\tsupply\\tchains,\\temployment\\tand\\tconsumer\\tbehavior\\tin\\tnearly\\nevery\\tgeographic\\tregion\\tand\\tindustry\\tacross\\tthe\\tworld,\\tand\\twe\\thave\\tbeen,\\tand\\tmay\\tin\\tthe\\tfuture\\tbe,\\tadversely\\taffected\\tas\\ta\\tresult.\\tAlso,\\tthe\\tbroader\\nconsequences\\tin\\tthe\\tcurrent\\tconflict\\tbetween\\tRussia\\tand\\tUkraine,\\twhich\\tmay\\tinclude\\tfurther\\tembargoes,\\tregional\\tinstability\\tand\\tgeopolitical\\tshifts;\\nairspace\\tbans\\trelating\\tto\\tcertain\\troutes,\\tor\\tstrategic\\tdecisions\\tto\\talter\\tcertain\\troutes;\\tand\\tpotential\\tretaliatory\\taction\\tby\\tthe\\tRussian\\tgovernment\\tagainst\\ncompanies,\\tand\\tthe\\textent\\tof\\tthe\\tconflict\\ton\\tour\\tbusiness\\tand\\toperating\\tresults\\tcannot\\tbe\\tpredicted.\\tWe\\tmay\\tincur\\texpenses\\tor\\tdelays\\trelating\\tto\\tsuch\\nevents\\toutside\\tof\\tour\\tcontrol,\\twhich\\tcould\\thave\\ta\\tmaterial\\tadverse\\timpact\\ton\\tour\\tbusiness,\\toperating\\tresults\\tand\\tfinancial\\tcondition.\\nRisks\\tRelated\\tto\\tGovernment\\tLaws\\tand\\tRegulations\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 26,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 15\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Risks\\tRelated\\tto\\tGovernment\\tLaws\\tand\\tRegulations\\nDemand\\tfor\\tour\\tproducts\\tand\\tservices\\tmay\\tbe\\timpacted\\tby\\tthe\\tstatus\\tof\\tgovernment\\tand\\teconomic\\tincentives\\tsupporting\\tthe\\ndevelopment\\tand\\tadoption\\tof\\tsuch\\tproducts.\\nGovernment\\tand\\teconomic\\tincentives\\tthat\\tsupport\\tthe\\tdevelopment\\tand\\tadoption\\tof\\telectric\\tvehicles\\tin\\tthe\\tU.S.\\tand\\tabroad,\\tincluding\\tcertain\\ttax\\nexemptions,\\ttax\\tcredits\\tand\\trebates,\\tmay\\tbe\\treduced,\\teliminated,\\tamended\\tor\\texhausted\\tfrom\\ttime\\tto\\ttime.\\tFor\\texample,\\tpreviously\\tavailable\\tincentives\\nfavoring\\telectric\\tvehicles\\tin\\tcertain\\tareas\\thave\\texpired\\tor\\twere\\tcancelled\\tor\\ttemporarily\\tunavailable,\\tand\\tin\\tsome\\tcases\\twere\\tnot\\teventually\\treplaced\\tor\\nreinstituted,\\twhich\\tmay\\thave\\tnegatively\\timpacted\\tsales.\\tIn\\taddition,\\tcertain\\tgovernment\\tand\\teconomic\\tincentives\\tmay\\talso\\tbe\\timplemented\\tor\\tamended\\nto\\tprovide\\tbenefits\\tto\\tmanufacturers\\twho\\tassemble\\tdomestically,\\thave\\tlocal\\tsuppliers\\tor\\thave\\tother\\tcharacteristics\\tthat\\tmay\\tnot\\tapply\\tto\\tTesla.\\tSuch\\ndevelopments\\tcould\\tnegatively\\timpact\\tdemand\\tfor\\tour\\tvehicles,\\tand\\twe\\tand\\tour\\tcustomers\\tmay\\thave\\tto\\tadjust\\tto\\tthem,\\tincluding\\tthrough\\tpricing\\nmodifications.\\nIn\\taddition,\\tcertain\\tgovernmental\\trebates,\\ttax\\tcredits\\tand\\tother\\tfinancial\\tincentives\\tthat\\tare\\tcurrently\\tavailable\\twith\\trespect\\tto\\tour\\tsolar\\tand\\tenergy\\nstorage\\tproduct\\tbusinesses\\tallow\\tus\\tto\\tlower\\tour\\tcosts\\tand\\tencourage\\tcustomers\\tto\\tbuy\\tour\\tproducts\\tand\\tinvestors\\tto\\tinvest\\tin\\tour\\tsolar\\tfinancing\\tfunds.\\nHowever,\\tthese\\tincentives\\tmay\\texpire\\twhen\\tthe\\tallocated\\tfunding\\tis\\texhausted,\\treduced\\tor\\tterminated\\tas\\trenewable\\tenergy\\tadoption\\trates\\tincrease,\\nsometimes\\twithout\\twarning.\\tLikewise,\\tin\\tjurisdictions\\twhere\\tnet\\tmetering\\tis\\tcurrently\\tavailable,\\tour\\tcustomers\\treceive\\tbill\\tcredits\\tfrom\\tutilities\\tfor\\tenergy\\nthat\\ttheir\\tsolar\\tenergy\\tsystems\\tgenerate\\tand\\texport\\tto\\tthe\\tgrid\\tin\\texcess\\tof\\tthe\\telectric\\tload\\tthey\\tuse.\\tThe\\tbenefit\\tavailable\\tunder\\tnet\\tmetering\\thas\\tbeen\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 26,\n        \"lines\": {\n          \"from\": 15,\n          \"to\": 29\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"or\\thas\\tbeen\\tproposed\\tto\\tbe\\treduced,\\taltered\\tor\\teliminated\\tin\\tseveral\\tjurisdictions,\\tand\\thas\\talso\\tbeen\\tcontested\\tand\\tmay\\tcontinue\\tto\\tbe\\tcontested\\tbefore\\nthe\\tFederal\\tEnergy\\tRegulatory\\tCommission.\\tAny\\treductions\\tor\\tterminations\\tof\\tsuch\\tincentives\\tmay\\tharm\\tour\\tbusiness,\\tprospects,\\tfinancial\\tcondition\\tand\\noperating\\tresults\\tby\\tmaking\\tour\\tproducts\\tless\\tcompetitive\\tfor\\tcustomers,\\tincreasing\\tour\\tcost\\tof\\tcapital\\tand\\tadversely\\timpacting\\tour\\tability\\tto\\tattract\\ninvestment\\tpartners\\tand\\tto\\tform\\tnew\\tfinancing\\tfunds\\tfor\\tour\\tsolar\\tand\\tenergy\\tstorage\\tassets.\\nFinally,\\twe\\tand\\tour\\tfund\\tinvestors\\tclaim\\tthese\\tU.S.\\tfederal\\ttax\\tcredits\\tand\\tcertain\\tstate\\tincentives\\tin\\tamounts\\tbased\\ton\\tindependently\\tappraised\\tfair\\nmarket\\tvalues\\tof\\tour\\tsolar\\tand\\tenergy\\tstorage\\tsystems.\\tSome\\tgovernmental\\tauthorities\\thave\\taudited\\tsuch\\tvalues\\tand\\tin\\tcertain\\tcases\\thave\\tdetermined\\nthat\\tthese\\tvalues\\tshould\\tbe\\tlower,\\tand\\tthey\\tmay\\tdo\\tso\\tagain\\tin\\tthe\\tfuture.\\tSuch\\tdeterminations\\tmay\\tresult\\tin\\tadverse\\ttax\\tconsequences\\tand/or\\tour\\nobligation\\tto\\tmake\\tindemnification\\tor\\tother\\tpayments\\tto\\tour\\tfunds\\tor\\tfund\\tinvestors.\\nWe\\tare\\tsubject\\tto\\tevolving\\tlaws\\tand\\tregulations\\tthat\\tcould\\timpose\\tsubstantial\\tcosts,\\tlegal\\tprohibitions\\tor\\tunfavorable\\tchanges\\nupon\\tour\\toperations\\tor\\tproducts.\\nAs\\twe\\tgrow\\tour\\tmanufacturing\\toperations\\tin\\tadditional\\tregions,\\twe\\tare\\tor\\twill\\tbe\\tsubject\\tto\\tcomplex\\tenvironmental,\\tmanufacturing,\\thealth\\tand\\nsafety\\tlaws\\tand\\tregulations\\tat\\tnumerous\\tjurisdictional\\tlevels\\tin\\tthe\\tU.S.,\\tChina,\\tGermany\\tand\\tother\\tlocations\\tabroad,\\tincluding\\tlaws\\trelating\\tto\\tthe\\tuse,\\nhandling,\\tstorage,\\trecycling,\\tdisposal\\tand/or\\thuman\\texposure\\tto\\thazardous\\tmaterials,\\tproduct\\tmaterial\\tinputs\\tand\\tpost-consumer\\tproducts\\tand\\twith\\nrespect\\tto\\tconstructing,\\texpanding\\tand\\tmaintaining\\tour\\tfacilities.\\tNew,\\tor\\tchanges\\tin,\\tenvironmental\\tand\\tclimate\\tchange\\tlaws,\\tregulations\\tor\\trules\\tcould\\nalso\\tlead\\tto\\tincreased\\tcosts\\tof\\tcompliance,\\tincluding\\tremediations\\tof\\tany\\tdiscovered\\tissues,\\tand\\tchanges\\tto\\tour\\toperations,\\twhich\\tmay\\tbe\\tsignificant,\\tand\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 26,\n        \"lines\": {\n          \"from\": 30,\n          \"to\": 44\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"any\\tfailures\\tto\\tcomply\\tcould\\tresult\\tin\\tsignificant\\texpenses,\\tdelays\\tor\\tfines.\\tIn\\taddition,\\tas\\twe\\thave\\n25\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 26,\n        \"lines\": {\n          \"from\": 45,\n          \"to\": 46\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Table\\tof\\tContents\\nincreased\\tour\\temployee\\theadcount\\tand\\toperations,\\twe\\tare\\tand\\tmay\\tcontinue\\tto\\tbe\\tsubject\\tto\\tincreased\\tscrutiny,\\tincluding\\tlitigation\\tand\\tgovernment\\ninvestigations,\\tthat\\twe\\twill\\tneed\\tto\\tdefend\\tagainst.\\tIf\\twe\\tare\\tunable\\tto\\tsuccessfully\\tdefend\\tourselves\\tin\\tsuch\\tlitigation\\tor\\tgovernment\\tinvestigations,\\tit\\nmay\\tharm\\tour\\tbrand,\\tability\\tto\\tattract\\tand\\tretain\\tqualified\\temployees,\\tbusiness\\tand\\tfinancial\\tcondition.\\tWe\\tare\\talso\\tsubject\\tto\\tlaws\\tand\\tregulations\\napplicable\\tto\\tthe\\tsupply,\\tmanufacture,\\timport,\\tsale,\\tservice\\tand\\tperformance\\tof\\tour\\tproducts\\tboth\\tdomestically\\tand\\tabroad.\\tFor\\texample,\\tin\\tcountries\\noutside\\tof\\tthe\\tU.S.,\\twe\\tare\\trequired\\tto\\tmeet\\tstandards\\trelating\\tto\\tvehicle\\tsafety,\\tfuel\\teconomy\\tand\\temissions\\tthat\\tare\\toften\\tmaterially\\tdifferent\\tfrom\\nequivalent\\trequirements\\tin\\tthe\\tU.S.,\\tthus\\tresulting\\tin\\tadditional\\tinvestment\\tinto\\tthe\\tvehicles\\tand\\tsystems\\tto\\tensure\\tregulatory\\tcompliance\\tin\\tall\\tcountries.\\nThis\\tprocess\\tmay\\tinclude\\tofficial\\treview\\tand\\tcertification\\tof\\tour\\tvehicles\\tby\\tforeign\\tregulatory\\tagencies\\tprior\\tto\\tmarket\\tentry,\\tas\\twell\\tas\\tcompliance\\twith\\nforeign\\treporting\\tand\\trecall\\tmanagement\\tsystems\\trequirements.\\nIn\\tparticular,\\twe\\toffer\\tin\\tour\\tvehicles\\tin\\tcertain\\tmarkets\\tAutopilot\\tand\\tFSD\\tCapability\\tfeatures\\tthat\\ttoday\\tassist\\tdrivers\\twith\\tcertain\\ttedious\\tand\\npotentially\\tdangerous\\taspects\\tof\\troad\\ttravel,\\tbut\\twhich\\tcurrently\\trequire\\tdrivers\\tto\\tremain\\tfully\\tengaged\\tin\\tthe\\tdriving\\toperation.\\tWe\\tare\\tcontinuing\\tto\\ndevelop\\tour\\tAutopilot\\tand\\tFSD\\tCapability\\ttechnology.\\tThere\\tare\\ta\\tvariety\\tof\\tinternational,\\tfederal\\tand\\tstate\\tregulations\\tthat\\tmay\\tapply\\tto,\\tand\\tmay\\nadversely\\taffect,\\tthe\\tdesign\\tand\\tperformance,\\tsale,\\tmarketing,\\tregistration\\tand\\toperation\\tof\\tAutopilot\\tand\\tFSD\\tCapability,\\tand\\tfuture\\tcapability,\\tincluding\\nfull\\tself-driving\\tvehicles\\tthat\\tmay\\tnot\\tbe\\toperated\\tby\\ta\\thuman\\tdriver.\\tThis\\tincludes\\tmany\\texisting\\tvehicle\\tstandards\\tthat\\twere\\tnot\\toriginally\\tintended\\tto\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 27,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 14\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"apply\\tto\\tvehicles\\tthat\\tmay\\tnot\\tbe\\toperated\\tby\\ta\\thuman\\tdriver.\\tSuch\\tregulations\\tcontinue\\tto\\trapidly\\tchange,\\twhich\\tincreases\\tthe\\tlikelihood\\tof\\ta\\tpatchwork\\nof\\tcomplex\\tor\\tconflicting\\tregulations,\\tor\\tmay\\tdelay,\\trestrict\\tor\\tprohibit\\tthe\\tavailability\\tof\\tcertain\\tfunctionalities\\tand\\tvehicle\\tdesigns,\\twhich\\tcould\\tadversely\\naffect\\tour\\tbusiness.\\nFinally,\\tas\\ta\\tmanufacturer,\\tinstaller\\tand\\tservice\\tprovider\\twith\\trespect\\tto\\tsolar\\tgeneration\\tand\\tenergy\\tstorage\\tsystems,\\ta\\tsupplier\\tof\\telectricity\\ngenerated\\tand\\tstored\\tby\\tcertain\\tof\\tthe\\tsolar\\tenergy\\tand\\tenergy\\tstorage\\tsystems\\twe\\tinstall\\tfor\\tcustomers,\\tand\\ta\\tprovider\\tof\\tgrid\\tservices\\tthrough\\tvirtual\\npower\\tplant\\tmodels,\\twe\\tare\\timpacted\\tby\\tfederal,\\tstate\\tand\\tlocal\\tregulations\\tand\\tpolicies\\tconcerning\\tthe\\timport\\tor\\texport\\tof\\tcomponents,\\telectricity\\npricing,\\tthe\\tinterconnection\\tof\\telectricity\\tgeneration\\tand\\tstorage\\tequipment\\twith\\tthe\\telectrical\\tgrid\\tand\\tthe\\tsale\\tof\\telectricity\\tgenerated\\tby\\tthird\\tparty-\\nowned\\tsystems.\\tIf\\tregulations\\tand\\tpolicies\\tare\\tintroduced\\tthat\\tadversely\\timpact\\tthe\\timport\\tor\\texport\\tof\\tcomponents,\\tor\\tthe\\tinterconnection,\\tmaintenance\\nor\\tuse\\tof\\tour\\tsolar\\tand\\tenergy\\tstorage\\tsystems,\\tthey\\tcould\\tdeter\\tpotential\\tcustomers\\tfrom\\tpurchasing\\tour\\tsolar\\tand\\tenergy\\tstorage\\tproducts\\tand\\nservices,\\tthreaten\\tthe\\teconomics\\tof\\tour\\texisting\\tcontracts\\tand\\tcause\\tus\\tto\\tcease\\tsolar\\tand\\tenergy\\tstorage\\tsystem\\tsales\\tand\\tservices\\tin\\tthe\\trelevant\\njurisdictions,\\twhich\\tmay\\tharm\\tour\\tbusiness,\\tfinancial\\tcondition\\tand\\toperating\\tresults.\\nAny\\tfailure\\tby\\tus\\tto\\tcomply\\twith\\ta\\tvariety\\tof\\tU.S.\\tand\\tinternational\\tprivacy\\tand\\tconsumer\\tprotection\\tlaws\\tmay\\tharm\\tus.\\nAny\\tfailure\\tby\\tus\\tor\\tour\\tvendors\\tor\\tother\\tbusiness\\tpartners\\tto\\tcomply\\twith\\tour\\tpublic\\tprivacy\\tnotice\\tor\\twith\\tfederal,\\tstate\\tor\\tinternational\\tprivacy,\\ndata\\tprotection\\tor\\tsecurity\\tlaws\\tor\\tregulations\\trelating\\tto\\tthe\\tprocessing,\\tcollection,\\tuse,\\tretention,\\tsecurity\\tand\\ttransfer\\tof\\tpersonally\\tidentifiable\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 27,\n        \"lines\": {\n          \"from\": 15,\n          \"to\": 28\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"information\\tcould\\tresult\\tin\\tregulatory\\tor\\tlitigation-related\\tactions\\tagainst\\tus,\\tlegal\\tliability,\\tfines,\\tdamages,\\tongoing\\taudit\\trequirements\\tand\\tother\\nsignificant\\tcosts.\\tSubstantial\\texpenses\\tand\\toperational\\tchanges\\tmay\\tbe\\trequired\\tin\\tconnection\\twith\\tmaintaining\\tcompliance\\twith\\tsuch\\tlaws,\\tand\\teven\\tan\\nunsuccessful\\tchallenge\\tby\\tcustomers\\tor\\tregulatory\\tauthorities\\tof\\tour\\tactivities\\tcould\\tresult\\tin\\tadverse\\tpublicity\\tand\\tcould\\trequire\\ta\\tcostly\\tresponse\\tfrom\\nand\\tdefense\\tby\\tus.\\tIn\\taddition,\\tcertain\\tprivacy\\tlaws\\tare\\tstill\\tsubject\\tto\\ta\\thigh\\tdegree\\tof\\tuncertainty\\tas\\tto\\ttheir\\tinterpretation,\\tapplication\\tand\\timpact,\\tand\\nmay\\trequire\\textensive\\tsystem\\tand\\toperational\\tchanges,\\tbe\\tdifficult\\tto\\timplement,\\tincrease\\tour\\toperating\\tcosts,\\tadversely\\timpact\\tthe\\tcost\\tor\\nattractiveness\\tof\\tthe\\tproducts\\tor\\tservices\\twe\\toffer,\\tor\\tresult\\tin\\tadverse\\tpublicity\\tand\\tharm\\tour\\treputation.\\tFor\\texample,\\tthe\\tGeneral\\tData\\tProtection\\nRegulation\\tapplies\\tto\\tthe\\tprocessing\\tof\\tpersonal\\tinformation\\tcollected\\tfrom\\tindividuals\\tlocated\\tin\\tthe\\tEuropean\\tUnion\\trequiring\\tcertain\\tdata\\tprotection\\nmeasures\\twhen\\thandling,\\twith\\ta\\tsignificant\\trisk\\tof\\tfines\\tfor\\tnoncompliance.\\tSimilarly,\\tour\\tNorth\\tAmerican\\toperations\\tare\\tsubject\\tto\\tcomplex\\tand\\tchanging\\nfederal\\tand\\tUS\\tstate-specific\\tdata\\tprivacy\\tlaws\\tand\\tregulations,\\tsuch\\tas\\tthe\\tCalifornia\\tConsumer\\tPrivacy\\tAct\\twhich\\timposes\\tcertain\\tlegal\\tobligations\\ton\\nour\\tuse\\tand\\tprocessing\\tof\\tpersonal\\tinformation\\trelated\\tto\\tCalifornia\\tresidents.\\tFinally,\\tadditional\\tprivacy\\tand\\tcybersecurity\\tlaws\\thave\\tcome\\tinto\\teffect\\tin\\nChina.\\nThese\\tlaws\\tcontinue\\tto\\tdevelop\\tand\\tmay\\tbe\\tinconsistent\\tfrom\\tjurisdiction\\tto\\tjurisdiction.\\tComplying\\twith\\temerging\\tand\\tchanging\\trequirements\\tmay\\ncause\\tus\\tto\\tincur\\tsubstantial\\tcosts\\tand\\tmake\\tenhancements\\tto\\trelevant\\tdata\\tpractices.\\tNoncompliance\\tcould\\tresult\\tin\\tsignificant\\tpenalties\\tor\\tlegal\\nliability.\\nIn\\taddition\\tto\\tthe\\trisks\\trelated\\tto\\tgeneral\\tprivacy\\tregulation,\\twe\\tmay\\talso\\tbe\\tsubject\\tto\\tspecific\\tvehicle\\tmanufacturer\\tobligations\\trelating\\tto\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 27,\n        \"lines\": {\n          \"from\": 29,\n          \"to\": 43\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"cybersecurity,\\tdata\\tprivacy\\tand\\tdata\\tlocalization\\trequirements\\twhich\\tplace\\tadditional\\trisks\\tto\\tour\\tinternational\\toperations.\\tRisks\\tand\\tpenalties\\tcould\\ninclude\\tongoing\\taudit\\trequirements,\\tdata\\tprotection\\n26\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 27,\n        \"lines\": {\n          \"from\": 44,\n          \"to\": 46\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Table\\tof\\tContents\\nauthority\\tinvestigations,\\tlegal\\tproceedings\\tby\\tinternational\\tgovernmental\\tentities\\tor\\tothers\\tresulting\\tin\\tmandated\\tdisclosure\\tof\\tsensitive\\tdata\\tor\\tother\\ncommercially\\tunfavorable\\tterms.\\tNotwithstanding\\tour\\tefforts\\tto\\tprotect\\tthe\\tsecurity\\tand\\tintegrity\\tof\\tour\\tcustomers’\\tpersonal\\tinformation,\\twe\\tmay\\tbe\\nrequired\\tto\\texpend\\tsignificant\\tresources\\tto\\tcomply\\twith\\tdata\\tbreach\\trequirements\\tif,\\tfor\\texample,\\tthird\\tparties\\timproperly\\tobtain\\tand\\tuse\\tthe\\tpersonal\\ninformation\\tof\\tour\\tcustomers\\tor\\twe\\totherwise\\texperience\\ta\\tdata\\tloss\\twith\\trespect\\tto\\tthe\\tpersonal\\tinformation\\twe\\tprocess\\tand\\thandle.\\tA\\tmajor\\tbreach\\tof\\nour\\tnetwork\\tsecurity\\tand\\tsystems\\tmay\\toccur\\tdespite\\tdefensive\\tmeasures,\\tand\\tmay\\tresult\\tin\\tfines,\\tpenalties\\tand\\tdamages\\tand\\tharm\\tour\\tbrand,\\tprospects\\nand\\toperating\\tresults.\\nWe\\tcould\\tbe\\tsubject\\tto\\tliability,\\tpenalties\\tand\\tother\\trestrictive\\tsanctions\\tand\\tadverse\\tconsequences\\tarising\\tout\\tof\\tcertain\\ngovernmental\\tinvestigations\\tand\\tproceedings.\\nWe\\tare\\tcooperating\\twith\\tcertain\\tgovernment\\tinvestigations\\tas\\tdiscussed\\tin\\tNote\\t15,\\tCommitments\\tand\\tContingencies,\\tto\\tthe\\tconsolidated\\tfinancial\\nstatements\\tincluded\\telsewhere\\tin\\tthis\\tAnnual\\tReport\\ton\\tForm\\t10-K.\\tTo\\tour\\tknowledge,\\tno\\tgovernment\\tagency\\tin\\tany\\tsuch\\tongoing\\tinvestigation\\thas\\nconcluded\\tthat\\tany\\twrongdoing\\toccurred.\\tHowever,\\twe\\tcannot\\tpredict\\tthe\\toutcome\\tor\\timpact\\tof\\tany\\tsuch\\tongoing\\tmatters,\\tand\\tthere\\texists\\tthe\\tpossibility\\nthat\\twe\\tcould\\tbe\\tsubject\\tto\\tliability,\\tpenalties\\tand\\tother\\trestrictive\\tsanctions\\tand\\tadverse\\tconsequences\\tif\\tthe\\tSEC,\\tthe\\tU.S.\\tDepartment\\tof\\tJustice\\tor\\tany\\nother\\tgovernment\\tagency\\twere\\tto\\tpursue\\tlegal\\taction\\tin\\tthe\\tfuture.\\tMoreover,\\twe\\texpect\\tto\\tincur\\tcosts\\tin\\tresponding\\tto\\trelated\\trequests\\tfor\\tinformation\\nand\\tsubpoenas,\\tand\\tif\\tinstituted,\\tin\\tdefending\\tagainst\\tany\\tgovernmental\\tproceedings.\\nWe\\tmay\\tface\\tregulatory\\tchallenges\\tto\\tor\\tlimitations\\ton\\tour\\tability\\tto\\tsell\\tvehicles\\tdirectly.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 28,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 16\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"While\\twe\\tintend\\tto\\tcontinue\\tto\\tleverage\\tour\\tmost\\teffective\\tsales\\tstrategies,\\tincluding\\tsales\\tthrough\\tour\\twebsite,\\twe\\tmay\\tnot\\tbe\\table\\tto\\tsell\\tour\\nvehicles\\tthrough\\tour\\town\\tstores\\tin\\tcertain\\tstates\\tin\\tthe\\tU.S.\\twith\\tlaws\\tthat\\tmay\\tbe\\tinterpreted\\tto\\timpose\\tlimitations\\ton\\tthis\\tdirect-to-consumer\\tsales\\nmodel.\\tIt\\thas\\talso\\tbeen\\tasserted\\tthat\\tthe\\tlaws\\tin\\tsome\\tstates\\tlimit\\tour\\tability\\tto\\tobtain\\tdealer\\tlicenses\\tfrom\\tstate\\tmotor\\tvehicle\\tregulators,\\tand\\tsuch\\nassertions\\tpersist.\\tIn\\tcertain\\tlocations,\\tdecisions\\tby\\tregulators\\tpermitting\\tus\\tto\\tsell\\tvehicles\\thave\\tbeen,\\tand\\tmay\\tbe,\\tchallenged\\tby\\tdealer\\tassociations\\nand\\tothers\\tas\\tto\\twhether\\tsuch\\tdecisions\\tcomply\\twith\\tapplicable\\tstate\\tmotor\\tvehicle\\tindustry\\tlaws.\\tWe\\thave\\tprevailed\\tin\\tmany\\tof\\tthese\\tlawsuits\\tand\\tsuch\\nresults\\thave\\treinforced\\tour\\tcontinuing\\tbelief\\tthat\\tstate\\tfranchise\\tlaws\\twere\\tnot\\tintended\\tto\\tapply\\tto\\ta\\tmanufacturer\\tthat\\tdoes\\tnot\\thave\\tfranchise\\tdealers\\nanywhere\\tin\\tthe\\tworld.\\tIn\\tsome\\tstates,\\tthere\\thave\\talso\\tbeen\\tregulatory\\tand\\tlegislative\\tefforts\\tby\\tdealer\\tassociations\\tto\\tpropose\\tlaws\\tthat,\\tif\\tenacted,\\nwould\\tprevent\\tus\\tfrom\\tobtaining\\tdealer\\tlicenses\\tin\\ttheir\\tstates\\tgiven\\tour\\tcurrent\\tsales\\tmodel.\\tA\\tfew\\tstates\\thave\\tpassed\\tlegislation\\tthat\\tclarifies\\tour\\tability\\nto\\toperate,\\tbut\\tat\\tthe\\tsame\\ttime\\tlimits\\tthe\\tnumber\\tof\\tdealer\\tlicenses\\twe\\tcan\\tobtain\\tor\\tstores\\tthat\\twe\\tcan\\toperate.\\tThe\\tapplication\\tof\\tstate\\tlaws\\tapplicable\\nto\\tour\\toperations\\tcontinues\\tto\\tbe\\tdifficult\\tto\\tpredict.\\nInternationally,\\tthere\\tmay\\tbe\\tlaws\\tin\\tjurisdictions\\twe\\thave\\tnot\\tyet\\tentered\\tor\\tlaws\\twe\\tare\\tunaware\\tof\\tin\\tjurisdictions\\twe\\thave\\tentered\\tthat\\tmay\\nrestrict\\tour\\tsales\\tor\\tother\\tbusiness\\tpractices.\\tEven\\tfor\\tthose\\tjurisdictions\\twe\\thave\\tanalyzed,\\tthe\\tlaws\\tin\\tthis\\tarea\\tcan\\tbe\\tcomplex,\\tdifficult\\tto\\tinterpret\\tand\\nmay\\tchange\\tover\\ttime.\\tContinued\\tregulatory\\tlimitations\\tand\\tother\\tobstacles\\tinterfering\\twith\\tour\\tability\\tto\\tsell\\tvehicles\\tdirectly\\tto\\tconsumers\\tmay\\tharm\\nour\\tfinancial\\tcondition\\tand\\toperating\\tresults.\\nRisks\\tRelated\\tto\\tthe\\tOwnership\\tof\\tOur\\tCommon\\tStock\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 28,\n        \"lines\": {\n          \"from\": 17,\n          \"to\": 31\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"The\\ttrading\\tprice\\tof\\tour\\tcommon\\tstock\\tis\\tlikely\\tto\\tcontinue\\tto\\tbe\\tvolatile.\\nThe\\ttrading\\tprice\\tof\\tour\\tcommon\\tstock\\thas\\tbeen\\thighly\\tvolatile\\tand\\tcould\\tcontinue\\tto\\tbe\\tsubject\\tto\\twide\\tfluctuations\\tin\\tresponse\\tto\\tvarious\\tfactors,\\nsome\\tof\\twhich\\tare\\tbeyond\\tour\\tcontrol.\\tOur\\tcommon\\tstock\\thas\\texperienced\\tover\\tthe\\tlast\\t52\\tweeks\\tan\\tintra-day\\ttrading\\thigh\\tof\\t$299.29\\tper\\tshare\\tand\\ta\\nlow\\tof\\t$152.37\\tper\\tshare.\\tThe\\tstock\\tmarket\\tin\\tgeneral,\\tand\\tthe\\tmarket\\tfor\\ttechnology\\tcompanies\\tin\\tparticular,\\thas\\texperienced\\textreme\\tprice\\tand\\tvolume\\nfluctuations\\tthat\\thave\\toften\\tbeen\\tunrelated\\tor\\tdisproportionate\\tto\\tthe\\toperating\\tperformance\\tof\\tthose\\tcompanies.\\tIn\\tparticular,\\ta\\tlarge\\tproportion\\tof\\tour\\ncommon\\tstock\\thas\\tbeen\\thistorically\\tand\\tmay\\tin\\tthe\\tfuture\\tbe\\ttraded\\tby\\tshort\\tsellers\\twhich\\tmay\\tput\\tpressure\\ton\\tthe\\tsupply\\tand\\tdemand\\tfor\\tour\\tcommon\\nstock,\\tfurther\\tinfluencing\\tvolatility\\tin\\tits\\tmarket\\tprice.\\tPublic\\tperception\\tof\\tour\\tcompany\\tor\\tmanagement\\tand\\tother\\tfactors\\toutside\\tof\\tour\\tcontrol\\tmay\\nadditionally\\timpact\\tthe\\tstock\\tprice\\tof\\tcompanies\\tlike\\tus\\tthat\\tgarner\\ta\\tdisproportionate\\tdegree\\tof\\tpublic\\tattention,\\tregardless\\tof\\tactual\\toperating\\nperformance.\\tIn\\taddition,\\tin\\tthe\\tpast,\\tfollowing\\tperiods\\tof\\tvolatility\\tin\\tthe\\toverall\\tmarket\\tor\\tthe\\tmarket\\tprice\\tof\\tour\\tshares,\\tsecurities\\tclass\\taction\\tlitigation\\nhas\\tbeen\\tfiled\\tagainst\\tus.\\tWhile\\twe\\tdefend\\tsuch\\tactions\\tvigorously,\\tany\\tjudgment\\tagainst\\tus\\tor\\tany\\tfuture\\tstockholder\\tlitigation\\tcould\\tresult\\tin\\tsubstantial\\ncosts\\tand\\ta\\tdiversion\\tof\\tour\\tmanagement’s\\tattention\\tand\\tresources.\\n27\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 28,\n        \"lines\": {\n          \"from\": 32,\n          \"to\": 43\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Table\\tof\\tContents\\nOur\\tfinancial\\tresults\\tmay\\tvary\\tsignificantly\\tfrom\\tperiod\\tto\\tperiod\\tdue\\tto\\tfluctuations\\tin\\tour\\toperating\\tcosts\\tand\\tother\\tfactors.\\nWe\\texpect\\tour\\tperiod-to-period\\tfinancial\\tresults\\tto\\tvary\\tbased\\ton\\tour\\toperating\\tcosts,\\twhich\\twe\\tanticipate\\twill\\tfluctuate\\tas\\tthe\\tpace\\tat\\twhich\\twe\\ncontinue\\tto\\tdesign,\\tdevelop\\tand\\tmanufacture\\tnew\\tproducts\\tand\\tincrease\\tproduction\\tcapacity\\tby\\texpanding\\tour\\tcurrent\\tmanufacturing\\tfacilities\\tand\\nadding\\tfuture\\tfacilities,\\tmay\\tnot\\tbe\\tconsistent\\tor\\tlinear\\tbetween\\tperiods.\\tAdditionally,\\tour\\trevenues\\tfrom\\tperiod\\tto\\tperiod\\tmay\\tfluctuate\\tas\\twe\\tintroduce\\nexisting\\tproducts\\tto\\tnew\\tmarkets\\tfor\\tthe\\tfirst\\ttime\\tand\\tas\\twe\\tdevelop\\tand\\tintroduce\\tnew\\tproducts.\\tAs\\ta\\tresult\\tof\\tthese\\tfactors,\\twe\\tbelieve\\tthat\\tquarter-to-\\nquarter\\tcomparisons\\tof\\tour\\tfinancial\\tresults,\\tespecially\\tin\\tthe\\tshort\\tterm,\\tare\\tnot\\tnecessarily\\tmeaningful\\tand\\tthat\\tthese\\tcomparisons\\tcannot\\tbe\\trelied\\nupon\\tas\\tindicators\\tof\\tfuture\\tperformance.\\tMoreover,\\tour\\tfinancial\\tresults\\tmay\\tnot\\tmeet\\texpectations\\tof\\tequity\\tresearch\\tanalysts,\\tratings\\tagencies\\tor\\ninvestors,\\twho\\tmay\\tbe\\tfocused\\tonly\\ton\\tshort-term\\tquarterly\\tfinancial\\tresults.\\tIf\\tany\\tof\\tthis\\toccurs,\\tthe\\ttrading\\tprice\\tof\\tour\\tstock\\tcould\\tfall\\tsubstantially,\\neither\\tsuddenly\\tor\\tover\\ttime.\\nWe\\tmay\\tfail\\tto\\tmeet\\tour\\tpublicly\\tannounced\\tguidance\\tor\\tother\\texpectations\\tabout\\tour\\tbusiness,\\twhich\\tcould\\tcause\\tour\\tstock\\tprice\\nto\\tdecline.\\nWe\\tprovide\\tfrom\\ttime\\tto\\ttime\\tguidance\\tregarding\\tour\\texpected\\tfinancial\\tand\\tbusiness\\tperformance.\\tCorrectly\\tidentifying\\tkey\\tfactors\\taffecting\\nbusiness\\tconditions\\tand\\tpredicting\\tfuture\\tevents\\tis\\tinherently\\tan\\tuncertain\\tprocess,\\tand\\tour\\tguidance\\tmay\\tnot\\tultimately\\tbe\\taccurate\\tand\\thas\\tin\\tthe\\tpast\\nbeen\\tinaccurate\\tin\\tcertain\\trespects,\\tsuch\\tas\\tthe\\ttiming\\tof\\tnew\\tproduct\\tmanufacturing\\tramps.\\tOur\\tguidance\\tis\\tbased\\ton\\tcertain\\tassumptions\\tsuch\\tas\\tthose\\nrelating\\tto\\tanticipated\\tproduction\\tand\\tsales\\tvolumes\\t(which\\tgenerally\\tare\\tnot\\tlinear\\tthroughout\\ta\\tgiven\\tperiod),\\taverage\\tsales\\tprices,\\tsupplier\\tand\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 29,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 16\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"commodity\\tcosts\\tand\\tplanned\\tcost\\treductions.\\tIf\\tour\\tguidance\\tvaries\\tfrom\\tactual\\tresults,\\tsuch\\tas\\tdue\\tto\\tour\\tassumptions\\tnot\\tbeing\\tmet\\tor\\tthe\\timpact\\ton\\nour\\tfinancial\\tperformance\\tthat\\tcould\\toccur\\tas\\ta\\tresult\\tof\\tvarious\\trisks\\tand\\tuncertainties,\\tthe\\tmarket\\tvalue\\tof\\tour\\tcommon\\tstock\\tcould\\tdecline\\tsignificantly.\\nIf\\tElon\\tMusk\\twere\\tforced\\tto\\tsell\\tshares\\tof\\tour\\tcommon\\tstock,\\teither\\tthat\\the\\thas\\tpledged\\tto\\tsecure\\tcertain\\tpersonal\\tloan\\tobligations,\\nor\\tin\\tsatisfaction\\tof\\tother\\tobligations,\\tsuch\\tsales\\tcould\\tcause\\tour\\tstock\\tprice\\tto\\tdecline.\\nCertain\\tbanking\\tinstitutions\\thave\\tmade\\textensions\\tof\\tcredit\\tto\\tElon\\tMusk,\\tour\\tChief\\tExecutive\\tOfficer,\\ta\\tportion\\tof\\twhich\\twas\\tused\\tto\\tpurchase\\nshares\\tof\\tcommon\\tstock\\tin\\tcertain\\tof\\tour\\tpublic\\tofferings\\tand\\tprivate\\tplacements\\tat\\tthe\\tsame\\tprices\\toffered\\tto\\tthird-party\\tparticipants\\tin\\tsuch\\tofferings\\nand\\tplacements.\\tWe\\tare\\tnot\\ta\\tparty\\tto\\tthese\\tloans,\\twhich\\tare\\tpartially\\tsecured\\tby\\tpledges\\tof\\ta\\tportion\\tof\\tthe\\tTesla\\tcommon\\tstock\\tcurrently\\towned\\tby\\tMr.\\nMusk.\\tIf\\tthe\\tprice\\tof\\tour\\tcommon\\tstock\\twere\\tto\\tdecline\\tsubstantially,\\tMr.\\tMusk\\tmay\\tbe\\tforced\\tby\\tone\\tor\\tmore\\tof\\tthe\\tbanking\\tinstitutions\\tto\\tsell\\tshares\\tof\\nTesla\\tcommon\\tstock\\tto\\tsatisfy\\this\\tloan\\tobligations\\tif\\the\\tcould\\tnot\\tdo\\tso\\tthrough\\tother\\tmeans.\\tAny\\tsuch\\tsales\\tcould\\tcause\\tthe\\tprice\\tof\\tour\\tcommon\\tstock\\nto\\tdecline\\tfurther.\\tFurther,\\tMr.\\tMusk\\tfrom\\ttime\\tto\\ttime\\tmay\\tcommit\\tto\\tinvesting\\tin\\tsignificant\\tbusiness\\tor\\tother\\tventures,\\tand\\tas\\ta\\tresult,\\tbe\\trequired\\tto\\nsell\\tshares\\tof\\tour\\tcommon\\tstock\\tin\\tsatisfaction\\tof\\tsuch\\tcommitments.\\nAnti-takeover\\tprovisions\\tcontained\\tin\\tour\\tgoverning\\tdocuments,\\tapplicable\\tlaws\\tand\\tour\\tconvertible\\tsenior\\tnotes\\tcould\\timpair\\ta\\ntakeover\\tattempt.\\nOur\\tcertificate\\tof\\tincorporation\\tand\\tbylaws\\tafford\\tcertain\\trights\\tand\\tpowers\\tto\\tour\\tboard\\tof\\tdirectors\\tthat\\tmay\\tfacilitate\\tthe\\tdelay\\tor\\tprevention\\tof\\tan\\nacquisition\\tthat\\tit\\tdeems\\tundesirable.\\tWe\\tare\\talso\\tsubject\\tto\\tSection\\t203\\tof\\tthe\\tDelaware\\tGeneral\\tCorporation\\tLaw\\tand\\tother\\tprovisions\\tof\\tDelaware\\tlaw\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 29,\n        \"lines\": {\n          \"from\": 17,\n          \"to\": 31\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"that\\tlimit\\tthe\\tability\\tof\\tstockholders\\tin\\tcertain\\tsituations\\tto\\teffect\\tcertain\\tbusiness\\tcombinations.\\tIn\\taddition,\\tthe\\tterms\\tof\\tour\\tconvertible\\tsenior\\tnotes\\tmay\\nrequire\\tus\\tto\\trepurchase\\tsuch\\tnotes\\tin\\tthe\\tevent\\tof\\ta\\tfundamental\\tchange,\\tincluding\\ta\\ttakeover\\tof\\tour\\tcompany.\\tAny\\tof\\tthe\\tforegoing\\tprovisions\\tand\\nterms\\tthat\\thas\\tthe\\teffect\\tof\\tdelaying\\tor\\tdeterring\\ta\\tchange\\tin\\tcontrol\\tcould\\tlimit\\tthe\\topportunity\\tfor\\tour\\tstockholders\\tto\\treceive\\ta\\tpremium\\tfor\\ttheir\\tshares\\nof\\tour\\tcommon\\tstock,\\tand\\tcould\\talso\\taffect\\tthe\\tprice\\tthat\\tsome\\tinvestors\\tare\\twilling\\tto\\tpay\\tfor\\tour\\tcommon\\tstock.\\nITEM\\t1B.\\tUNRESOLVED\\tSTAFF\\tCOMMENTS\\nNone.\\n28\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 29,\n        \"lines\": {\n          \"from\": 32,\n          \"to\": 38\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"ITEM\\t1C.\\tCYBERSECURITY\\nCybersecurity\\tRisk\\tManagement\\tand\\tStrategy\\nWe\\trecognize\\tthe\\timportance\\tof\\tassessing,\\tidentifying,\\tand\\tmanaging\\tmaterial\\trisks\\tassociated\\twith\\tcybersecurity\\tthreats,\\tas\\tsuch\\tterm\\tis\\tdefined\\tin\\nItem\\t106(a)\\tof\\tRegulation\\tS-K.\\tThese\\trisks\\tinclude,\\tamong\\tother\\tthings:\\toperational\\trisks,\\tintellectual\\tproperty\\ttheft,\\tfraud,\\textortion,\\tharm\\tto\\temployees\\nor\\tcustomers\\tand\\tviolation\\tof\\tdata\\tprivacy\\tor\\tsecurity\\tlaws.\\nIdentifying\\tand\\tassessing\\tcybersecurity\\trisk\\tis\\tintegrated\\tinto\\tour\\toverall\\trisk\\tmanagement\\tsystems\\tand\\tprocesses.\\tCybersecurity\\trisks\\trelated\\tto\\tour\\nbusiness,\\ttechnical\\toperations,\\tprivacy\\tand\\tcompliance\\tissues\\tare\\tidentified\\tand\\taddressed\\tthrough\\ta\\tmulti-faceted\\tapproach\\tincluding\\tthird\\tparty\\nassessments,\\tinternal\\tIT\\tAudit,\\tIT\\tsecurity,\\tgovernance,\\trisk\\tand\\tcompliance\\treviews.\\tTo\\tdefend,\\tdetect\\tand\\trespond\\tto\\tcybersecurity\\tincidents,\\twe,\\namong\\tother\\tthings:\\tconduct\\tproactive\\tprivacy\\tand\\tcybersecurity\\treviews\\tof\\tsystems\\tand\\tapplications,\\taudit\\tapplicable\\tdata\\tpolicies,\\tperform\\tpenetration\\ntesting\\tusing\\texternal\\tthird-party\\ttools\\tand\\ttechniques\\tto\\ttest\\tsecurity\\tcontrols,\\toperate\\ta\\tbug\\tbounty\\tprogram\\tto\\tencourage\\tproactive\\tvulnerability\\nreporting,\\tconduct\\temployee\\ttraining,\\tmonitor\\temerging\\tlaws\\tand\\tregulations\\trelated\\tto\\tdata\\tprotection\\tand\\tinformation\\tsecurity\\t(including\\tour\\tconsumer\\nproducts)\\tand\\timplement\\tappropriate\\tchanges.\\nWe\\thave\\timplemented\\tincident\\tresponse\\tand\\tbreach\\tmanagement\\tprocesses\\twhich\\thave\\tfour\\toverarching\\tand\\tinterconnected\\tstages:\\t1)\\npreparation\\tfor\\ta\\tcybersecurity\\tincident,\\t2)\\tdetection\\tand\\tanalysis\\tof\\ta\\tsecurity\\tincident,\\t3)\\tcontainment,\\teradication\\tand\\trecovery,\\tand\\t4)\\tpost-incident\\nanalysis.\\tSuch\\tincident\\tresponses\\tare\\toverseen\\tby\\tleaders\\tfrom\\tour\\tInformation\\tSecurity,\\tProduct\\tSecurity,\\tCompliance\\tand\\tLegal\\tteams\\tregarding\\nmatters\\tof\\tcybersecurity.\\nSecurity\\tevents\\tand\\tdata\\tincidents\\tare\\tevaluated,\\tranked\\tby\\tseverity\\tand\\tprioritized\\tfor\\tresponse\\tand\\tremediation.\\tIncidents\\tare\\tevaluated\\tto\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 30,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 17\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"determine\\tmateriality\\tas\\twell\\tas\\toperational\\tand\\tbusiness\\timpact,\\tand\\treviewed\\tfor\\tprivacy\\timpact.\\nWe\\talso\\tconduct\\ttabletop\\texercises\\tto\\tsimulate\\tresponses\\tto\\tcybersecurity\\tincidents.\\tOur\\tteam\\tof\\tcybersecurity\\tprofessionals\\tthen\\tcollaborate\\twith\\ntechnical\\tand\\tbusiness\\tstakeholders\\tacross\\tour\\tbusiness\\tunits\\tto\\tfurther\\tanalyze\\tthe\\trisk\\tto\\tthe\\tcompany,\\tand\\tform\\tdetection,\\tmitigation\\tand\\tremediation\\nstrategies.\\nAs\\tpart\\tof\\tthe\\tabove\\tprocesses,\\twe\\tregularly\\tengage\\texternal\\tauditors\\tand\\tconsultants\\tto\\tassess\\tour\\tinternal\\tcybersecurity\\tprograms\\tand\\ncompliance\\twith\\tapplicable\\tpractices\\tand\\tstandards.\\tAs\\tof\\t2023,\\tour\\tInformation\\tSecurity\\tManagement\\tSystem\\thas\\tbeen\\tcertified\\tto\\tconform\\tto\\tthe\\nrequirements\\tof\\tISO/IEC\\t27001:2013.\\nOur\\trisk\\tmanagement\\tprogram\\talso\\tassesses\\tthird\\tparty\\trisks,\\tand\\twe\\tperform\\tthird-party\\trisk\\tmanagement\\tto\\tidentify\\tand\\tmitigate\\trisks\\tfrom\\tthird\\nparties\\tsuch\\tas\\tvendors,\\tsuppliers,\\tand\\tother\\tbusiness\\tpartners\\tassociated\\twith\\tour\\tuse\\tof\\tthird-party\\tservice\\tproviders.\\tCybersecurity\\trisks\\tare\\tevaluated\\nwhen\\tdetermining\\tthe\\tselection\\tand\\toversight\\tof\\tapplicable\\tthird-party\\tservice\\tproviders\\tand\\tpotential\\tfourth-party\\trisks\\twhen\\thandling\\tand/or\\tprocessing\\nour\\temployee,\\tbusiness\\tor\\tcustomer\\tdata.\\tIn\\taddition\\tto\\tnew\\tvendor\\tonboarding,\\twe\\tperform\\trisk\\tmanagement\\tduring\\tthird-party\\tcybersecurity\\ncompromise\\tincidents\\tto\\tidentify\\tand\\tmitigate\\trisks\\tto\\tus\\tfrom\\tthird-party\\tincidents.\\nWe\\tdescribe\\twhether\\tand\\thow\\trisks\\tfrom\\tidentified\\tcybersecurity\\tthreats,\\tincluding\\tas\\ta\\tresult\\tof\\tany\\tprevious\\tcybersecurity\\tincidents,\\thave\\nmaterially\\taffected\\tor\\tare\\treasonably\\tlikely\\tto\\tmaterially\\taffect\\tus,\\tincluding\\tour\\tbusiness\\tstrategy,\\tresults\\tof\\toperations,\\tor\\tfinancial\\tcondition,\\tunder\\tthe\\nheading\\t“Our\\tinformation\\ttechnology\\tsystems\\tor\\tdata,\\tor\\tthose\\tof\\tour\\tservice\\tproviders\\tor\\tcustomers\\tor\\tusers\\tcould\\tbe\\tsubject\\tto\\tcyber-attacks\\tor\\tother\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 30,\n        \"lines\": {\n          \"from\": 18,\n          \"to\": 32\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"security\\tincidents,\\twhich\\tcould\\tresult\\tin\\tdata\\tbreaches,\\tintellectual\\tproperty\\ttheft,\\tclaims,\\tlitigation,\\tregulatory\\tinvestigations,\\tsignificant\\tliability,\\nreputational\\tdamage\\tand\\tother\\tadverse\\tconsequences”\\tincluded\\tas\\tpart\\tof\\tour\\trisk\\tfactor\\tdisclosures\\tat\\tItem\\t1A\\tof\\tthis\\tAnnual\\tReport\\ton\\tForm\\t10-K.\\nCybersecurity\\tGovernance\\nCybersecurity\\tis\\tan\\timportant\\tpart\\tof\\tour\\trisk\\tmanagement\\tprocesses\\tand\\tan\\tarea\\tof\\tfocus\\tfor\\tour\\tBoard\\tand\\tmanagement.\\tOur\\tAudit\\tCommittee\\tis\\nresponsible\\tfor\\tthe\\toversight\\tof\\trisks\\tfrom\\tcybersecurity\\tthreats.\\tMembers\\tof\\tthe\\tAudit\\tCommittee\\treceive\\tupdates\\ton\\ta\\tquarterly\\tbasis\\tfrom\\tsenior\\nmanagement,\\tincluding\\tleaders\\tfrom\\tour\\tInformation\\tSecurity,\\tProduct\\tSecurity,\\tCompliance\\tand\\tLegal\\tteams\\tregarding\\tmatters\\tof\\tcybersecurity.\\tThis\\nincludes\\texisting\\tand\\tnew\\tcybersecurity\\trisks,\\tstatus\\ton\\thow\\tmanagement\\tis\\taddressing\\tand/or\\tmitigating\\tthose\\trisks,\\tcybersecurity\\tand\\tdata\\tprivacy\\nincidents\\t(if\\tany)\\tand\\tstatus\\ton\\tkey\\tinformation\\tsecurity\\tinitiatives.\\tOur\\tBoard\\tmembers\\talso\\tengage\\tin\\tad\\thoc\\tconversations\\twith\\tmanagement\\ton\\ncybersecurity-related\\tnews\\tevents\\tand\\tdiscuss\\tany\\tupdates\\tto\\tour\\tcybersecurity\\trisk\\tmanagement\\tand\\tstrategy\\tprograms.\\n29\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 30,\n        \"lines\": {\n          \"from\": 33,\n          \"to\": 42\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Our\\tcybersecurity\\trisk\\tmanagement\\tand\\tstrategy\\tprocesses\\tare\\toverseen\\tby\\tleaders\\tfrom\\tour\\tInformation\\tSecurity,\\tProduct\\tSecurity,\\tCompliance\\nand\\tLegal\\tteams.\\tSuch\\tindividuals\\thave\\tan\\taverage\\tof\\tover\\t15\\tyears\\tof\\tprior\\twork\\texperience\\tin\\tvarious\\troles\\tinvolving\\tinformation\\ttechnology,\\tincluding\\nsecurity,\\tauditing,\\tcompliance,\\tsystems\\tand\\tprogramming.\\tThese\\tindividuals\\tare\\tinformed\\tabout,\\tand\\tmonitor\\tthe\\tprevention,\\tmitigation,\\tdetection\\tand\\nremediation\\tof\\tcybersecurity\\tincidents\\tthrough\\ttheir\\tmanagement\\tof,\\tand\\tparticipation\\tin,\\tthe\\tcybersecurity\\trisk\\tmanagement\\tand\\tstrategy\\tprocesses\\ndescribed\\tabove,\\tincluding\\tthe\\toperation\\tof\\tour\\tincident\\tresponse\\tplan,\\tand\\treport\\tto\\tthe\\tAudit\\tCommittee\\ton\\tany\\tappropriate\\titems.\\nITEM\\t2.\\tPROPERTIES\\nWe\\tare\\theadquartered\\tin\\tAustin,\\tTexas.\\tOur\\tprincipal\\tfacilities\\tinclude\\ta\\tlarge\\tnumber\\tof\\tproperties\\tin\\tNorth\\tAmerica,\\tEurope\\tand\\tAsia\\tutilized\\tfor\\nmanufacturing\\tand\\tassembly,\\twarehousing,\\tengineering,\\tretail\\tand\\tservice\\tlocations,\\tSupercharger\\tsites\\tand\\tadministrative\\tand\\tsales\\toffices.\\tOur\\tfacilities\\nare\\tused\\tto\\tsupport\\tboth\\tof\\tour\\treporting\\tsegments,\\tand\\tare\\tsuitable\\tand\\tadequate\\tfor\\tthe\\tconduct\\tof\\tour\\tbusiness.\\tWe\\tgenerally\\tlease\\tsuch\\tfacilities\\twith\\nthe\\tprimary\\texception\\tof\\tsome\\tmanufacturing\\tfacilities.\\tThe\\tfollowing\\ttable\\tsets\\tforth\\tthe\\tlocation\\tof\\tour\\tprimary\\towned\\tand\\tleased\\tmanufacturing\\nfacilities.\\nPrimary\\tManufacturing\\tFacilitiesLocationOwned\\tor\\tLeased\\nGigafactory\\tTexasAustin,\\tTexasOwned\\nFremont\\tFactoryFremont,\\tCaliforniaOwned\\nGigafactory\\tNevadaSparks,\\tNevadaOwned\\nGigafactory\\tBerlin-BrandenburgGrunheide,\\tGermanyOwned\\nGigafactory\\tShanghaiShanghai,\\tChina*\\nGigafactory\\tNew\\tYorkBuffalo,\\tNew\\tYorkLeased\\nMegafactoryLathrop,\\tCaliforniaLeased\\n*We\\town\\tthe\\tbuilding\\tand\\tthe\\tland\\tuse\\trights\\twith\\tan\\tinitial\\tterm\\tof\\t50\\tyears.\\tThe\\tland\\tuse\\trights\\tare\\ttreated\\tas\\toperating\\tlease\\tright-of-use\\tassets.\\nITEM\\t3.\\tLEGAL\\tPROCEEDINGS\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 31,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 21\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"ITEM\\t3.\\tLEGAL\\tPROCEEDINGS\\nFor\\ta\\tdescription\\tof\\tour\\tmaterial\\tpending\\tlegal\\tproceedings,\\tplease\\tsee\\tNote\\t15,\\tCommitments\\tand\\tContingencies,\\tto\\tthe\\tconsolidated\\tfinancial\\nstatements\\tincluded\\telsewhere\\tin\\tthis\\tAnnual\\tReport\\ton\\tForm\\t10-K.\\nIn\\taddition,\\teach\\tof\\tthe\\tmatters\\tbelow\\tis\\tbeing\\tdisclosed\\tpursuant\\tto\\tItem\\t103\\tof\\tRegulation\\tS-K\\tbecause\\tit\\trelates\\tto\\tenvironmental\\tregulations\\tand\\naggregate\\tcivil\\tpenalties\\tthat\\twe\\tcurrently\\tbelieve\\tcould\\tpotentially\\texceed\\t$1\\tmillion.\\tWe\\tbelieve\\tthat\\tany\\tproceeding\\tthat\\tis\\tmaterial\\tto\\tour\\tbusiness\\tor\\nfinancial\\tcondition\\tis\\tlikely\\tto\\thave\\tpotential\\tpenalties\\tfar\\tin\\texcess\\tof\\tsuch\\tamount.\\nDistrict\\tattorneys\\tin\\tcertain\\tCalifornia\\tcounties\\tconducted\\tan\\tinvestigation\\tinto\\tTesla’s\\twaste\\tsegregation\\tpractices\\tpursuant\\tto\\tCal.\\tHealth\\t&\\tSaf.\\nCode\\t§\\t25100\\tet\\tseq.\\tand\\tCal.\\tCivil\\tCode\\t§\\t1798.80.\\tTesla\\thas\\timplemented\\tvarious\\tremedial\\tmeasures,\\tincluding\\tconducting\\ttraining\\tand\\taudits,\\tand\\nenhancements\\tto\\tits\\tsite\\twaste\\tmanagement\\tprograms,\\tand\\tsettlement\\tdiscussions\\tare\\tongoing.\\tWhile\\tthe\\toutcome\\tof\\tthis\\tmatter\\tcannot\\tbe\\tdetermined\\nat\\tthis\\ttime,\\tit\\tis\\tnot\\tcurrently\\texpected\\tto\\thave\\ta\\tmaterial\\tadverse\\timpact\\ton\\tour\\tbusiness.\\nITEM\\t4.\\tMINE\\tSAFETY\\tDISCLOSURES\\nNot\\tapplicable.\\n30\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 31,\n        \"lines\": {\n          \"from\": 21,\n          \"to\": 33\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"PART\\tII\\nITEM\\t5.\\tMARKET\\tFOR\\tREGISTRANT’S\\tCOMMON\\tEQUITY,\\tRELATED\\tSTOCKHOLDER\\tMATTERS\\tAND\\tISSUER\\tPURCHASES\\tOF\\tEQUITY\\nSECURITIES\\nMarket\\tInformation\\nOur\\tcommon\\tstock\\thas\\ttraded\\ton\\tThe\\tNASDAQ\\tGlobal\\tSelect\\tMarket\\tunder\\tthe\\tsymbol\\t“TSLA”\\tsince\\tit\\tbegan\\ttrading\\ton\\tJune\\t29,\\t2010.\\tOur\\tinitial\\npublic\\toffering\\twas\\tpriced\\tat\\tapproximately\\t$1.13\\tper\\tshare\\ton\\tJune\\t28,\\t2010\\tas\\tadjusted\\tto\\tgive\\teffect\\tto\\tthe\\tthree-for-one\\tstock\\tsplit\\teffected\\tin\\tthe\\nform\\tof\\ta\\tstock\\tdividend\\tin\\tAugust\\t2022\\t(the\\t“2022\\tStock\\tSplit”)\\tand\\tthe\\tfive-for-one\\tstock\\tsplit\\teffected\\tin\\tthe\\tform\\tof\\ta\\tstock\\tdividend\\tin\\tAugust\\t2020\\n(the\\t“2020\\tStock\\tSplit”).\\nHolders\\nAs\\tof\\tJanuary\\t22,\\t2024,\\tthere\\twere\\t9,300\\tholders\\tof\\trecord\\tof\\tour\\tcommon\\tstock.\\tA\\tsubstantially\\tgreater\\tnumber\\tof\\tholders\\tof\\tour\\tcommon\\tstock\\tare\\n“street\\tname”\\tor\\tbeneficial\\tholders,\\twhose\\tshares\\tare\\theld\\tby\\tbanks,\\tbrokers\\tand\\tother\\tfinancial\\tinstitutions.\\nDividend\\tPolicy\\nWe\\thave\\tnever\\tdeclared\\tor\\tpaid\\tcash\\tdividends\\ton\\tour\\tcommon\\tstock.\\tWe\\tcurrently\\tdo\\tnot\\tanticipate\\tpaying\\tany\\tcash\\tdividends\\tin\\tthe\\tforeseeable\\nfuture.\\tAny\\tfuture\\tdetermination\\tto\\tdeclare\\tcash\\tdividends\\twill\\tbe\\tmade\\tat\\tthe\\tdiscretion\\tof\\tour\\tboard\\tof\\tdirectors,\\tsubject\\tto\\tapplicable\\tlaws,\\tand\\twill\\ndepend\\ton\\tour\\tfinancial\\tcondition,\\tresults\\tof\\toperations,\\tcapital\\trequirements,\\tgeneral\\tbusiness\\tconditions\\tand\\tother\\tfactors\\tthat\\tour\\tboard\\tof\\tdirectors\\nmay\\tdeem\\trelevant.\\nStock\\tPerformance\\tGraph\\nThis\\tperformance\\tgraph\\tshall\\tnot\\tbe\\tdeemed\\t“filed”\\tfor\\tpurposes\\tof\\tSection\\t18\\tof\\tthe\\tSecurities\\tExchange\\tAct\\tof\\t1934,\\tas\\tamended\\t(the\\t“Exchange\\nAct”),\\tor\\tincorporated\\tby\\treference\\tinto\\tany\\tfiling\\tof\\tTesla,\\tInc.\\tunder\\tthe\\tSecurities\\tAct\\tof\\t1933,\\tas\\tamended\\t(the\\t“Securities\\tAct”),\\tor\\tthe\\tExchange\\tAct,\\nexcept\\tas\\tshall\\tbe\\texpressly\\tset\\tforth\\tby\\tspecific\\treference\\tin\\tsuch\\tfiling.\\nThe\\tfollowing\\tgraph\\tshows\\ta\\tcomparison,\\tfrom\\tJanuary\\t1,\\t2019\\tthrough\\tDecember\\t31,\\t2023,\\tof\\tthe\\tcumulative\\ttotal\\treturn\\ton\\tour\\tcommon\\tstock,\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 32,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 21\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"The\\tNASDAQ\\tComposite\\tIndex\\tand\\ta\\tgroup\\tof\\tall\\tpublic\\tcompanies\\tsharing\\tthe\\tsame\\tSIC\\tcode\\tas\\tus,\\twhich\\tis\\tSIC\\tcode\\t3711,\\t“Motor\\tVehicles\\tand\\nPassenger\\tCar\\tBodies”\\t(Motor\\tVehicles\\tand\\tPassenger\\tCar\\tBodies\\tPublic\\tCompany\\tGroup).\\tSuch\\treturns\\tare\\tbased\\ton\\thistorical\\tresults\\tand\\tare\\tnot\\nintended\\tto\\tsuggest\\tfuture\\tperformance.\\tData\\tfor\\tThe\\tNASDAQ\\tComposite\\tIndex\\tand\\tthe\\tMotor\\tVehicles\\tand\\tPassenger\\tCar\\tBodies\\tPublic\\tCompany\\tGroup\\nassumes\\tan\\tinvestment\\tof\\t$100\\ton\\tJanuary\\t1,\\t2019\\tand\\treinvestment\\tof\\tdividends.\\tWe\\thave\\tnever\\tdeclared\\tor\\tpaid\\tcash\\tdividends\\ton\\tour\\tcommon\\tstock\\nnor\\tdo\\twe\\tanticipate\\tpaying\\tany\\tsuch\\tcash\\tdividends\\tin\\tthe\\tforeseeable\\tfuture.\\n31\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 32,\n        \"lines\": {\n          \"from\": 22,\n          \"to\": 27\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Unregistered\\tSales\\tof\\tEquity\\tSecurities\\tand\\tUse\\tof\\tProceeds\\nNone.\\nPurchases\\tof\\tEquity\\tSecurities\\tby\\tthe\\tIssuer\\tand\\tAffiliated\\tPurchasers\\nNone.\\nITEM\\t6.\\t[RESERVED]\\n32\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 33,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 6\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"ITEM\\t7.\\tMANAGEMENT’S\\tDISCUSSION\\tAND\\tANALYSIS\\tOF\\tFINANCIAL\\tCONDITION\\tAND\\tRESULTS\\tOF\\tOPERATIONS\\nThe\\tfollowing\\tdiscussion\\tand\\tanalysis\\tshould\\tbe\\tread\\tin\\tconjunction\\twith\\tthe\\tconsolidated\\tfinancial\\tstatements\\tand\\tthe\\trelated\\tnotes\\tincluded\\nelsewhere\\tin\\tthis\\tAnnual\\tReport\\ton\\tForm\\t10-K.\\tFor\\tfurther\\tdiscussion\\tof\\tour\\tproducts\\tand\\tservices,\\ttechnology\\tand\\tcompetitive\\tstrengths,\\trefer\\tto\\tItem\\t1-\\nBusiness.\\tFor\\tdiscussion\\trelated\\tto\\tchanges\\tin\\tfinancial\\tcondition\\tand\\tthe\\tresults\\tof\\toperations\\tfor\\tfiscal\\tyear\\t2022-related\\titems,\\trefer\\tto\\tPart\\tII,\\tItem\\t7.\\nManagement’s\\tDiscussion\\tand\\tAnalysis\\tof\\tFinancial\\tCondition\\tand\\tResults\\tof\\tOperations\\tin\\tour\\tAnnual\\tReport\\ton\\tForm\\t10-K\\tfor\\tfiscal\\tyear\\t2022,\\twhich\\twas\\nfiled\\twith\\tthe\\tSecurities\\tand\\tExchange\\tCommission\\ton\\tJanuary\\t31,\\t2023.\\nOverview\\tand\\t2023\\tHighlights\\nOur\\tmission\\tis\\tto\\taccelerate\\tthe\\tworld’s\\ttransition\\tto\\tsustainable\\tenergy.\\tWe\\tdesign,\\tdevelop,\\tmanufacture,\\tlease\\tand\\tsell\\thigh-performance\\tfully\\nelectric\\tvehicles,\\tsolar\\tenergy\\tgeneration\\tsystems\\tand\\tenergy\\tstorage\\tproducts.\\tWe\\talso\\toffer\\tmaintenance,\\tinstallation,\\toperation,\\tcharging,\\tinsurance,\\nfinancial\\tand\\tother\\tservices\\trelated\\tto\\tour\\tproducts.\\tAdditionally,\\twe\\tare\\tincreasingly\\tfocused\\ton\\tproducts\\tand\\tservices\\tbased\\ton\\tartificial\\tintelligence,\\nrobotics\\tand\\tautomation.\\nIn\\t2023,\\twe\\tproduced\\t1,845,985\\tconsumer\\tvehicles\\tand\\tdelivered\\t1,808,581\\tconsumer\\tvehicles.\\tWe\\tare\\tcurrently\\tfocused\\ton\\tincreasing\\tvehicle\\nproduction,\\tcapacity\\tand\\tdelivery\\tcapabilities,\\treducing\\tcosts,\\timproving\\tand\\tdeveloping\\tour\\tvehicles\\tand\\tbattery\\ttechnologies,\\tvertically\\tintegrating\\tand\\nlocalizing\\tour\\tsupply\\tchain,\\timproving\\tand\\tfurther\\tdeploying\\tour\\tFSD\\tcapabilities,\\tincreasing\\tthe\\taffordability\\tand\\tefficiency\\tof\\tour\\tvehicles,\\tbringing\\tnew\\nproducts\\tto\\tmarket\\tand\\texpanding\\tour\\tglobal\\tinfrastructure,\\tincluding\\tour\\tservice\\tand\\tcharging\\tinfrastructure.\\nIn\\t2023,\\twe\\tdeployed\\t14.72\\tGWh\\tof\\tenergy\\tstorage\\tproducts\\tand\\t223\\tmegawatts\\tof\\tsolar\\tenergy\\tsystems.\\tWe\\tare\\tcurrently\\tfocused\\ton\\tramping\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 34,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 16\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"production\\tof\\tenergy\\tstorage\\tproducts,\\timproving\\tour\\tSolar\\tRoof\\tinstallation\\tcapability\\tand\\tefficiency,\\tand\\tincreasing\\tmarket\\tshare\\tof\\tretrofit\\tsolar\\tenergy\\nsystems.\\nIn\\t2023,\\twe\\trecognized\\ttotal\\trevenues\\tof\\t$96.77\\tbillion,\\trepresenting\\tan\\tincrease\\tof\\t$15.31\\tbillion,\\tcompared\\tto\\tthe\\tprior\\tyear.\\tWe\\tcontinue\\tto\\tramp\\nproduction,\\tbuild\\tnew\\tmanufacturing\\tcapacity\\tand\\texpand\\tour\\toperations\\tto\\tenable\\tincreased\\tdeliveries\\tand\\tdeployments\\tof\\tour\\tproducts,\\tand\\tinvest\\tin\\nresearch\\tand\\tdevelopment\\tto\\taccelerate\\tour\\tAI,\\tsoftware\\tand\\tfleet-based\\tprofits\\tfor\\tfurther\\trevenue\\tgrowth.\\nIn\\t2023,\\tour\\tnet\\tincome\\tattributable\\tto\\tcommon\\tstockholders\\twas\\t$15.00\\tbillion,\\trepresenting\\ta\\tfavorable\\tchange\\tof\\t$2.44\\tbillion,\\tcompared\\tto\\tthe\\nprior\\tyear.\\tThis\\tincluded\\ta\\tone-time\\tnon-cash\\ttax\\tbenefit\\tof\\t$5.93\\tbillion\\tfor\\tthe\\trelease\\tof\\tvaluation\\tallowance\\ton\\tcertain\\tdeferred\\ttax\\tassets.\\tWe\\tcontinue\\nto\\tfocus\\ton\\tfurther\\tcost\\treductions\\tand\\toperational\\tefficiencies\\twhile\\tmaximizing\\tdelivery\\tvolumes.\\nWe\\tended\\t2023\\twith\\t$29.09\\tbillion\\tin\\tcash\\tand\\tcash\\tequivalents\\tand\\tinvestments,\\trepresenting\\tan\\tincrease\\tof\\t$6.91\\tbillion\\tfrom\\tthe\\tend\\tof\\t2022.\\nOur\\tcash\\tflows\\tprovided\\tby\\toperating\\tactivities\\tin\\t2023\\tand\\t2022\\twere\\t$13.26\\tbillion\\tand\\t$14.72\\tbillion,\\trespectively,\\trepresenting\\ta\\tdecrease\\tof\\t$1.47\\nbillion.\\tCapital\\texpenditures\\tamounted\\tto\\t$8.90\\tbillion\\tin\\t2023,\\tcompared\\tto\\t$7.16\\tbillion\\tin\\t2022,\\trepresenting\\tan\\tincrease\\tof\\t$1.74\\tbillion.\\tSustained\\ngrowth\\thas\\tallowed\\tour\\tbusiness\\tto\\tgenerally\\tfund\\titself,\\tand\\twe\\twill\\tcontinue\\tinvesting\\tin\\ta\\tnumber\\tof\\tcapital-intensive\\tprojects\\tand\\tresearch\\tand\\ndevelopment\\tin\\tupcoming\\tperiods.\\n33\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 34,\n        \"lines\": {\n          \"from\": 17,\n          \"to\": 30\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Management\\tOpportunities,\\tChallenges\\tand\\tUncertainties\\tand\\t2024\\tOutlook\\nAutomotive—Production\\nThe\\tfollowing\\tis\\ta\\tsummary\\tof\\tthe\\tstatus\\tof\\tproduction\\tof\\teach\\tof\\tour\\tannounced\\tvehicle\\tmodels\\tin\\tproduction\\tand\\tunder\\tdevelopment,\\tas\\tof\\tthe\\ndate\\tof\\tthis\\tAnnual\\tReport\\ton\\tForm\\t10-K:\\nProduction\\tLocationVehicle\\tModel(s)Production\\tStatus\\nFremont\\tFactoryModel\\tS\\t/\\tModel\\tXActive\\n\\tModel\\t3\\t/\\tModel\\tYActive\\nGigafactory\\tShanghaiModel\\t3\\t/\\tModel\\tYActive\\nGigafactory\\tBerlin-BrandenburgModel\\tYActive\\nGigafactory\\tTexasModel\\tYActive\\n\\tCybertruckActive\\nGigafactory\\tNevadaTesla\\tSemiPilot\\tproduction\\nVariousNext\\tGeneration\\tPlatformIn\\tdevelopment\\nTBDTesla\\tRoadsterIn\\tdevelopment\\nWe\\tare\\tfocused\\ton\\tgrowing\\tour\\tmanufacturing\\tcapacity,\\twhich\\tincludes\\tcapacity\\tfor\\tmanufacturing\\tnew\\tvehicle\\tmodels\\tsuch\\tas\\tour\\tCybertruck\\tand\\nnext\\tgeneration\\tplatform,\\tand\\tramping\\tall\\tof\\tour\\tproduction\\tvehicles\\tto\\ttheir\\tinstalled\\tproduction\\tcapacities\\tas\\twell\\tas\\tincreasing\\tproduction\\trate\\tand\\nefficiency\\tat\\tour\\tcurrent\\tfactories.\\tThe\\tnext\\tphase\\tof\\tproduction\\tgrowth\\twill\\tdepend\\ton\\tthe\\tcontinued\\tramp\\tat\\tour\\tfactories\\tand\\tthe\\tintroduction\\tof\\tour\\nnext\\tgeneration\\tplatform,\\tas\\twell\\tas\\tour\\tability\\tto\\tadd\\tto\\tour\\tavailable\\tsources\\tof\\tbattery\\tcell\\tsupply\\tby\\tmanufacturing\\tour\\town\\tcells\\tthat\\twe\\tare\\ndeveloping\\tto\\thave\\thigh-volume\\toutput,\\tlower\\tcapital\\tand\\tproduction\\tcosts\\tand\\tlonger\\trange.\\tOur\\tgoals\\tare\\tto\\timprove\\tvehicle\\tperformance,\\tdecrease\\nproduction\\tcosts\\tand\\tincrease\\taffordability\\tand\\tcustomer\\tawareness.\\nThese\\tplans\\tare\\tsubject\\tto\\tuncertainties\\tinherent\\tin\\testablishing\\tand\\tramping\\tmanufacturing\\toperations,\\twhich\\tmay\\tbe\\texacerbated\\tby\\tnew\\tproduct\\nand\\tmanufacturing\\ttechnologies\\twe\\tintroduce,\\tthe\\tnumber\\tof\\tconcurrent\\tinternational\\tprojects,\\tany\\tindustry-wide\\tcomponent\\tconstraints,\\tlabor\\tshortages\\nand\\tany\\tfuture\\timpact\\tfrom\\tevents\\toutside\\tof\\tour\\tcontrol.\\tFor\\texample,\\tduring\\tthe\\tthird\\tquarter\\tof\\t2023,\\twe\\texperienced\\ta\\tsequential\\tdecline\\tin\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 35,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 23\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"production\\tvolumes\\tdue\\tto\\tpre-planned\\tshutdowns\\tfor\\tupgrades\\tat\\tvarious\\tfactories.\\tMoreover,\\twe\\thave\\tset\\tambitious\\ttechnological\\ttargets\\twith\\tour\\nplans\\tfor\\tbattery\\tcells\\tas\\twell\\tas\\tfor\\titerative\\tmanufacturing\\tand\\tdesign\\timprovements\\tfor\\tour\\tvehicles\\twith\\teach\\tnew\\tfactory.\\nAutomotive—Demand,\\tSales,\\tDeliveries\\tand\\tInfrastructure\\nOur\\tcost\\treduction\\tefforts,\\tcost\\tinnovation\\tstrategies,\\tand\\tadditional\\tlocalized\\tprocurement\\tand\\tmanufacturing\\tare\\tkey\\tto\\tour\\tvehicles’\\taffordability\\nand\\thave\\tallowed\\tus\\tto\\tcompetitively\\tprice\\tour\\tvehicles.\\tWe\\twill\\talso\\tcontinue\\tto\\tgenerate\\tdemand\\tand\\tbrand\\tawareness\\tby\\timproving\\tour\\tvehicles’\\nperformance\\tand\\tfunctionality,\\tincluding\\tthrough\\tproducts\\tbased\\ton\\tartificial\\tintelligence\\tsuch\\tas\\tAutopilot,\\tFSD\\tCapability,\\tand\\tother\\tsoftware\\tfeatures\\nand\\tdelivering\\tnew\\tvehicles,\\tsuch\\tas\\tour\\tCybertruck.\\tMoreover,\\twe\\texpect\\tto\\tcontinue\\tto\\tbenefit\\tfrom\\tongoing\\telectrification\\tof\\tthe\\tautomotive\\tsector\\tand\\nincreasing\\tenvironmental\\tregulations\\tand\\tinitiatives.\\nHowever,\\twe\\toperate\\tin\\ta\\tcyclical\\tindustry\\tthat\\tis\\tsensitive\\tto\\tpolitical\\tand\\tregulatory\\tuncertainty,\\tincluding\\twith\\trespect\\tto\\ttrade\\tand\\tthe\\nenvironment,\\tall\\tof\\twhich\\tcan\\tbe\\tcompounded\\tby\\tinflationary\\tpressures,\\trising\\tenergy\\tprices,\\tinterest\\trate\\tfluctuations\\tand\\tthe\\tliquidity\\tof\\tenterprise\\ncustomers.\\tFor\\texample,\\tinflationary\\tpressures\\thave\\tincreased\\tacross\\tthe\\tmarkets\\tin\\twhich\\twe\\toperate.\\tIn\\tan\\teffort\\tto\\tcurb\\tthis\\ttrend,\\tcentral\\tbanks\\tin\\ndeveloped\\tcountries\\traised\\tinterest\\trates\\trapidly\\tand\\tsubstantially,\\timpacting\\tthe\\taffordability\\tof\\tvehicle\\tlease\\tand\\tfinance\\tarrangements.\\tFurther,\\tsales\\tof\\nvehicles\\tin\\tthe\\tautomotive\\tindustry\\talso\\ttend\\tto\\tbe\\tcyclical\\tin\\tmany\\tmarkets,\\twhich\\tmay\\texpose\\tus\\tto\\tincreased\\tvolatility\\tas\\twe\\texpand\\tand\\tadjust\\tour\\noperations.\\tMoreover,\\tas\\tadditional\\tcompetitors\\tenter\\tthe\\tmarketplace\\tand\\thelp\\tbring\\tthe\\tworld\\tcloser\\tto\\tsustainable\\ttransportation,\\twe\\twill\\thave\\tto\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 35,\n        \"lines\": {\n          \"from\": 24,\n          \"to\": 37\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"adjust\\tand\\tcontinue\\tto\\texecute\\twell\\tto\\tmaintain\\tour\\tmomentum.\\tAdditionally,\\tour\\tsuppliers’\\tliquidity\\tand\\tallocation\\tplans\\tmay\\tbe\\taffected\\tby\\tcurrent\\nchallenges\\tin\\tthe\\tNorth\\tAmerican\\tautomotive\\tindustry,\\twhich\\tcould\\treduce\\tour\\taccess\\tto\\tcomponents\\tor\\tresult\\tin\\tunfavorable\\tchanges\\tto\\tcost.\\tThese\\nmacroeconomic\\tand\\tindustry\\ttrends\\thave\\thad,\\tand\\twill\\tlikely\\tcontinue\\tto\\thave,\\tan\\timpact\\ton\\tthe\\tpricing\\tof,\\tand\\torder\\trate\\tfor\\tour\\tvehicles,\\tand\\tin\\tturn\\tour\\noperating\\tmargin.\\tChanges\\tin\\tgovernment\\tand\\teconomic\\tincentives\\tin\\trelation\\tto\\telectric\\tvehicles\\tmay\\talso\\timpact\\tour\\tsales.\\tWe\\twill\\tcontinue\\tto\\tadjust\\naccordingly\\tto\\tsuch\\tdevelopments,\\tand\\twe\\tbelieve\\tour\\tongoing\\tcost\\treduction,\\tincluding\\timproved\\tproduction\\tinnovation\\tand\\tefficiency\\tat\\tour\\tnewest\\nfactories\\tand\\tlower\\tlogistics\\tcosts,\\tand\\tfocus\\ton\\toperating\\tleverage\\twill\\tcontinue\\tto\\tbenefit\\tus\\tin\\trelation\\tto\\tour\\tcompetitors,\\twhile\\tour\\tnew\\tproducts\\twill\\nhelp\\tenable\\tfuture\\tgrowth.\\n34\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 35,\n        \"lines\": {\n          \"from\": 38,\n          \"to\": 45\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"As\\tour\\tproduction\\tincreases,\\twe\\tmust\\twork\\tconstantly\\tto\\tsimilarly\\tincrease\\tvehicle\\tdelivery\\tcapability\\tso\\tthat\\tit\\tdoes\\tnot\\tbecome\\ta\\tbottleneck\\ton\\tour\\ntotal\\tdeliveries.\\tWe\\tare\\talso\\tcommitted\\tto\\treducing\\tthe\\tpercentage\\tof\\tvehicles\\tdelivered\\tin\\tthe\\tthird\\tmonth\\tof\\teach\\tquarter,\\twhich\\twill\\thelp\\tto\\treduce\\tthe\\ncost\\tper\\tvehicle.\\tAs\\twe\\texpand\\tour\\tmanufacturing\\toperations\\tglobally,\\twe\\twill\\talso\\thave\\tto\\tcontinue\\tto\\tincrease\\tand\\tstaff\\tour\\tdelivery,\\tservicing\\tand\\ncharging\\tinfrastructure\\taccordingly,\\tmaintain\\tour\\tvehicle\\treliability\\tand\\toptimize\\tour\\tSupercharger\\tlocations\\tto\\tensure\\tcost\\teffectiveness\\tand\\tcustomer\\nsatisfaction.\\tIn\\tparticular,\\tas\\tother\\tautomotive\\tmanufacturers\\thave\\tannounced\\ttheir\\tadoption\\tof\\tthe\\tNorth\\tAmerican\\tCharging\\tStandard\\t(“NACS”)\\tand\\nagreements\\twith\\tus\\tto\\tutilize\\tour\\tSuperchargers,\\twe\\tmust\\tcorrespondingly\\texpand\\tour\\tnetwork\\tin\\torder\\tto\\tensure\\tadequate\\tavailability\\tto\\tmeet\\tcustomer\\ndemands.\\tWe\\talso\\tremain\\tfocused\\ton\\tcontinued\\tenhancements\\tof\\tthe\\tcapability\\tand\\tefficiency\\tof\\tour\\tservicing\\toperations.\\nEnergy\\tGeneration\\tand\\tStorage\\tDemand,\\tProduction\\tand\\tDeployment\\nThe\\tlong-term\\tsuccess\\tof\\tthis\\tbusiness\\tis\\tdependent\\tupon\\tincreasing\\tmargins\\tthrough\\tgreater\\tvolumes.\\tWe\\tcontinue\\tto\\tincrease\\tthe\\tproduction\\tof\\nour\\tenergy\\tstorage\\tproducts\\tto\\tmeet\\thigh\\tlevels\\tof\\tdemand,\\tincluding\\tthe\\tconstruction\\tof\\ta\\tnew\\tMegafactory\\tin\\tShanghai\\tand\\tthe\\tongoing\\tramp\\tat\\tour\\nMegafactory\\tin\\tLathrop,\\tCalifornia.\\tFor\\tMegapack,\\tenergy\\tstorage\\tdeployments\\tcan\\tvary\\tmeaningfully\\tquarter\\tto\\tquarter\\tdepending\\ton\\tthe\\ttiming\\tof\\nspecific\\tproject\\tmilestones.\\tWe\\tremain\\tcommitted\\tto\\tgrowing\\tour\\tretrofit\\tsolar\\tenergy\\tbusiness\\tby\\toffering\\ta\\tlow-cost\\tand\\tsimplified\\tonline\\tordering\\nexperience.\\tIn\\taddition,\\twe\\tcontinue\\tto\\tseek\\tto\\timprove\\tour\\tinstallation\\tcapabilities\\tand\\tprice\\tefficiencies\\tfor\\tSolar\\tRoof.\\tAs\\tthese\\tproduct\\tlines\\tgrow,\\twe\\nwill\\thave\\tto\\tmaintain\\tadequate\\tbattery\\tcell\\tsupply\\tfor\\tour\\tenergy\\tstorage\\tproducts\\tand\\tensure\\tthe\\tavailability\\tof\\tqualified\\tpersonnel,\\tparticularly\\tskilled\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 36,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 14\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"electricians,\\tto\\tsupport\\tthe\\tramp\\tof\\tSolar\\tRoof.\\nCash\\tFlow\\tand\\tCapital\\tExpenditure\\tTrends\\nOur\\tcapital\\texpenditures\\tare\\ttypically\\tdifficult\\tto\\tproject\\tbeyond\\tthe\\tshort-term\\tgiven\\tthe\\tnumber\\tand\\tbreadth\\tof\\tour\\tcore\\tprojects\\tat\\tany\\tgiven\\ttime,\\nand\\tmay\\tfurther\\tbe\\timpacted\\tby\\tuncertainties\\tin\\tfuture\\tglobal\\tmarket\\tconditions.\\tWe\\tare\\tsimultaneously\\tramping\\tnew\\tproducts,\\tbuilding\\tor\\tramping\\nmanufacturing\\tfacilities\\ton\\tthree\\tcontinents,\\tpiloting\\tthe\\tdevelopment\\tand\\tmanufacture\\tof\\tnew\\tbattery\\tcell\\ttechnologies,\\texpanding\\tour\\tSupercharger\\nnetwork\\tand\\tinvesting\\tin\\tautonomy\\tand\\tother\\tartificial\\tintelligence\\tenabled\\ttraining\\tand\\tproducts,\\tand\\tthe\\tpace\\tof\\tour\\tcapital\\tspend\\tmay\\tvary\\tdepending\\non\\toverall\\tpriority\\tamong\\tprojects,\\tthe\\tpace\\tat\\twhich\\twe\\tmeet\\tmilestones,\\tproduction\\tadjustments\\tto\\tand\\tamong\\tour\\tvarious\\tproducts,\\tincreased\\tcapital\\nefficiencies\\tand\\tthe\\taddition\\tof\\tnew\\tprojects.\\tOwing\\tand\\tsubject\\tto\\tthe\\tforegoing\\tas\\twell\\tas\\tthe\\tpipeline\\tof\\tannounced\\tprojects\\tunder\\tdevelopment,\\tall\\nother\\tcontinuing\\tinfrastructure\\tgrowth\\tand\\tvarying\\tlevels\\tof\\tinflation,\\twe\\tcurrently\\texpect\\tour\\tcapital\\texpenditures\\tto\\texceed\\t$10.00\\tbillion\\tin\\t2024\\tand\\tbe\\nbetween\\t$8.00\\tto\\t$10.00\\tbillion\\tin\\teach\\tof\\tthe\\tfollowing\\ttwo\\tfiscal\\tyears.\\nOur\\tbusiness\\thas\\tbeen\\tconsistently\\tgenerating\\tcash\\tflow\\tfrom\\toperations\\tin\\texcess\\tof\\tour\\tlevel\\tof\\tcapital\\tspend,\\tand\\twith\\tbetter\\tworking\\tcapital\\nmanagement\\tresulting\\tin\\tshorter\\tdays\\tsales\\toutstanding\\tthan\\tdays\\tpayable\\toutstanding,\\tour\\tsales\\tgrowth\\tis\\talso\\tgenerally\\tfacilitating\\tpositive\\tcash\\ngeneration.\\tWe\\thave\\tand\\twill\\tcontinue\\tto\\tutilize\\tsuch\\tcash\\tflows,\\tamong\\tother\\tthings,\\tto\\tdo\\tmore\\tvertical\\tintegration,\\texpand\\tour\\tproduct\\troadmap\\tand\\nprovide\\tfinancing\\toptions\\tto\\tour\\tcustomers.\\tAt\\tthe\\tsame\\ttime,\\twe\\tare\\tlikely\\tto\\tsee\\theightened\\tlevels\\tof\\tcapital\\texpenditures\\tduring\\tcertain\\tperiods\\ndepending\\ton\\tthe\\tspecific\\tpace\\tof\\tour\\tcapital-intensive\\tprojects\\tand\\tother\\tpotential\\tvariables\\tsuch\\tas\\trising\\tmaterial\\tprices\\tand\\tincreases\\tin\\tsupply\\tchain\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 36,\n        \"lines\": {\n          \"from\": 15,\n          \"to\": 29\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"and\\tlabor\\texpenses\\tresulting\\tfrom\\tchanges\\tin\\tglobal\\ttrade\\tconditions\\tand\\tlabor\\tavailability.\\tOverall,\\twe\\texpect\\tour\\tability\\tto\\tbe\\tself-funding\\tto\\tcontinue\\tas\\nlong\\tas\\tmacroeconomic\\tfactors\\tsupport\\tcurrent\\ttrends\\tin\\tour\\tsales.\\nCritical\\tAccounting\\tPolicies\\tand\\tEstimates\\nThe\\tconsolidated\\tfinancial\\tstatements\\tare\\tprepared\\tin\\taccordance\\twith\\taccounting\\tprinciples\\tgenerally\\taccepted\\tin\\tthe\\tU.S.\\t(“GAAP”).\\tThe\\npreparation\\tof\\tthe\\tconsolidated\\tfinancial\\tstatements\\trequires\\tus\\tto\\tmake\\testimates\\tand\\tassumptions\\tthat\\taffect\\tthe\\treported\\tamounts\\tof\\tassets,\\tliabilities,\\nrevenues,\\tcosts\\tand\\texpenses\\tand\\trelated\\tdisclosures.\\tWe\\tbase\\tour\\testimates\\ton\\thistorical\\texperience,\\tas\\tappropriate,\\tand\\ton\\tvarious\\tother\\tassumptions\\nthat\\twe\\tbelieve\\tto\\tbe\\treasonable\\tunder\\tthe\\tcircumstances.\\tChanges\\tin\\tthe\\taccounting\\testimates\\tare\\treasonably\\tlikely\\tto\\toccur\\tfrom\\tperiod\\tto\\tperiod.\\nAccordingly,\\tactual\\tresults\\tcould\\tdiffer\\tsignificantly\\tfrom\\tthe\\testimates\\tmade\\tby\\tour\\tmanagement.\\tWe\\tevaluate\\tour\\testimates\\tand\\tassumptions\\ton\\tan\\nongoing\\tbasis.\\tTo\\tthe\\textent\\tthat\\tthere\\tare\\tmaterial\\tdifferences\\tbetween\\tthese\\testimates\\tand\\tactual\\tresults,\\tour\\tfuture\\tfinancial\\tstatement\\tpresentation,\\nfinancial\\tcondition,\\tresults\\tof\\toperations\\tand\\tcash\\tflows\\tmay\\tbe\\taffected.\\n35\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 36,\n        \"lines\": {\n          \"from\": 30,\n          \"to\": 40\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"The\\testimates\\tused\\tfor,\\tbut\\tnot\\tlimited\\tto,\\tdetermining\\tsignificant\\teconomic\\tincentive\\tfor\\tresale\\tvalue\\tguarantee\\tarrangements,\\tsales\\treturn\\nreserves,\\tthe\\tcollectability\\tof\\taccounts\\tand\\tfinancing\\treceivables,\\tinventory\\tvaluation,\\twarranties,\\tfair\\tvalue\\tof\\tlong-lived\\tassets,\\tgoodwill,\\tfair\\tvalue\\tof\\nfinancial\\tinstruments,\\tfair\\tvalue\\tand\\tresidual\\tvalue\\tof\\toperating\\tlease\\tvehicles\\tand\\tsolar\\tenergy\\tsystems\\tsubject\\tto\\tleases\\tcould\\tbe\\timpacted.\\tWe\\thave\\nassessed\\tthe\\timpact\\tand\\tare\\tnot\\taware\\tof\\tany\\tspecific\\tevents\\tor\\tcircumstances\\tthat\\trequired\\tan\\tupdate\\tto\\tour\\testimates\\tand\\tassumptions\\tor\\tmaterially\\naffected\\tthe\\tcarrying\\tvalue\\tof\\tour\\tassets\\tor\\tliabilities\\tas\\tof\\tthe\\tdate\\tof\\tissuance\\tof\\tthis\\tAnnual\\tReport\\ton\\tForm\\t10-K.\\tThese\\testimates\\tmay\\tchange\\tas\\tnew\\nevents\\toccur\\tand\\tadditional\\tinformation\\tis\\tobtained.\\tActual\\tresults\\tcould\\tdiffer\\tmaterially\\tfrom\\tthese\\testimates\\tunder\\tdifferent\\tassumptions\\tor\\tconditions.\\nRevenue\\tRecognition\\nAutomotive\\tSales\\nAutomotive\\tsales\\trevenue\\tincludes\\trevenues\\trelated\\tto\\tcash\\tand\\tfinancing\\tdeliveries\\tof\\tnew\\tvehicles,\\tand\\tspecific\\tother\\tfeatures\\tand\\tservices\\tthat\\nmeet\\tthe\\tdefinition\\tof\\ta\\tperformance\\tobligation\\tunder\\tAccounting\\tStandards\\tCodification\\t(“ASC”)\\t606,\\tRevenue\\tfrom\\tContracts\\twith\\tCustomers\\t(“ASC\\n606”),\\tincluding\\taccess\\tto\\tour\\tFSD\\tCapability\\tfeatures\\tand\\ttheir\\tongoing\\tmaintenance,\\tinternet\\tconnectivity,\\tfree\\tSupercharging\\tprograms\\tand\\tover-the-\\nair\\tsoftware\\tupdates.\\tWe\\trecognize\\trevenue\\ton\\tautomotive\\tsales\\tupon\\tdelivery\\tto\\tthe\\tcustomer,\\twhich\\tis\\twhen\\tthe\\tcontrol\\tof\\ta\\tvehicle\\ttransfers.\\nPayments\\tare\\ttypically\\treceived\\tat\\tthe\\tpoint\\tcontrol\\ttransfers\\tor\\tin\\taccordance\\twith\\tpayment\\tterms\\tcustomary\\tto\\tthe\\tbusiness,\\texcept\\tsales\\twe\\tfinance\\tfor\\nwhich\\tpayments\\tare\\tcollected\\tover\\tthe\\tcontractual\\tloan\\tterm.\\tWe\\talso\\trecognize\\ta\\tsales\\treturn\\treserve\\tbased\\ton\\thistorical\\texperience\\tplus\\tconsideration\\nfor\\texpected\\tfuture\\tmarket\\tvalues,\\twhen\\twe\\toffer\\tresale\\tvalue\\tguarantees\\tor\\tsimilar\\tbuyback\\tterms.\\tOther\\tfeatures\\tand\\tservices\\tsuch\\tas\\taccess\\tto\\tour\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 37,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 15\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"internet\\tconnectivity,\\tunlimited\\tfree\\tSupercharging\\tand\\tover-the-air\\tsoftware\\tupdates\\tare\\tprovisioned\\tupon\\tcontrol\\ttransfer\\tof\\ta\\tvehicle\\tand\\trecognized\\nover\\ttime\\ton\\ta\\tstraight-line\\tbasis\\tas\\twe\\thave\\ta\\tstand-ready\\tobligation\\tto\\tdeliver\\tsuch\\tservices\\tto\\tthe\\tcustomer.\\tOther\\tlimited\\tfree\\tSupercharging\\nincentives\\tare\\trecognized\\tbased\\ton\\tactual\\tusage\\tor\\texpiration,\\twhichever\\tis\\tearlier.\\tWe\\trecognize\\trevenue\\trelated\\tto\\tthese\\tother\\tfeatures\\tand\\tservices\\nover\\tthe\\tperformance\\tperiod,\\twhich\\tis\\tgenerally\\tthe\\texpected\\townership\\tlife\\tof\\tthe\\tvehicle.\\tRevenue\\trelated\\tto\\tFSD\\tCapability\\tfeatures\\tis\\trecognized\\twhen\\nfunctionality\\tis\\tdelivered\\tto\\tthe\\tcustomer\\tand\\ttheir\\tongoing\\tmaintenance\\tis\\trecognized\\tover\\ttime.\\tFor\\tour\\tobligations\\trelated\\tto\\tautomotive\\tsales,\\twe\\nestimate\\tstandalone\\tselling\\tprice\\tby\\tconsidering\\tcosts\\tused\\tto\\tdevelop\\tand\\tdeliver\\tthe\\tservice,\\tthird-party\\tpricing\\tof\\tsimilar\\toptions\\tand\\tother\\tinformation\\nthat\\tmay\\tbe\\tavailable.\\nInventory\\tValuation\\nInventories\\tare\\tstated\\tat\\tthe\\tlower\\tof\\tcost\\tor\\tnet\\trealizable\\tvalue.\\tCost\\tis\\tcomputed\\tusing\\tstandard\\tcost\\tfor\\tvehicles\\tand\\tenergy\\tproducts,\\twhich\\napproximates\\tactual\\tcost\\ton\\ta\\tfirst-in,\\tfirst-out\\tbasis.\\tWe\\trecord\\tinventory\\twrite-downs\\tfor\\texcess\\tor\\tobsolete\\tinventories\\tbased\\tupon\\tassumptions\\tabout\\ncurrent\\tand\\tfuture\\tdemand\\tforecasts.\\tIf\\tour\\tinventory\\ton-hand\\tis\\tin\\texcess\\tof\\tour\\tfuture\\tdemand\\tforecast,\\tthe\\texcess\\tamounts\\tare\\twritten-off.\\nWe\\talso\\treview\\tour\\tinventory\\tto\\tdetermine\\twhether\\tits\\tcarrying\\tvalue\\texceeds\\tthe\\tnet\\tamount\\trealizable\\tupon\\tthe\\tultimate\\tsale\\tof\\tthe\\tinventory.\\nThis\\trequires\\tus\\tto\\tdetermine\\tthe\\testimated\\tselling\\tprice\\tof\\tour\\tvehicles\\tless\\tthe\\testimated\\tcost\\tto\\tconvert\\tthe\\tinventory\\ton-hand\\tinto\\ta\\tfinished\\tproduct.\\nOnce\\tinventory\\tis\\twritten-down,\\ta\\tnew,\\tlower\\tcost\\tbasis\\tfor\\tthat\\tinventory\\tis\\testablished\\tand\\tsubsequent\\tchanges\\tin\\tfacts\\tand\\tcircumstances\\tdo\\tnot\\tresult\\nin\\tthe\\trestoration\\tor\\tincrease\\tin\\tthat\\tnewly\\testablished\\tcost\\tbasis.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 37,\n        \"lines\": {\n          \"from\": 16,\n          \"to\": 30\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Should\\tour\\testimates\\tof\\tfuture\\tselling\\tprices\\tor\\tproduction\\tcosts\\tchange,\\tadditional\\tand\\tpotentially\\tmaterial\\twrite-downs\\tmay\\tbe\\trequired.\\tA\\tsmall\\nchange\\tin\\tour\\testimates\\tmay\\tresult\\tin\\ta\\tmaterial\\tcharge\\tto\\tour\\treported\\tfinancial\\tresults.\\n36\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 37,\n        \"lines\": {\n          \"from\": 31,\n          \"to\": 33\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Warranties\\nWe\\tprovide\\ta\\tmanufacturer’s\\twarranty\\ton\\tall\\tnew\\tand\\tused\\tvehicles\\tand\\ta\\twarranty\\ton\\tthe\\tinstallation\\tand\\tcomponents\\tof\\tthe\\tenergy\\tgeneration\\nand\\tstorage\\tsystems\\twe\\tsell\\tfor\\tperiods\\ttypically\\tbetween\\t10\\tto\\t25\\tyears.\\tWe\\taccrue\\ta\\twarranty\\treserve\\tfor\\tthe\\tproducts\\tsold\\tby\\tus,\\twhich\\tincludes\\tour\\nbest\\testimate\\tof\\tthe\\tprojected\\tcosts\\tto\\trepair\\tor\\treplace\\titems\\tunder\\twarranties\\tand\\trecalls\\tif\\tidentified.\\tThese\\testimates\\tare\\tbased\\ton\\tactual\\tclaims\\nincurred\\tto\\tdate\\tand\\tan\\testimate\\tof\\tthe\\tnature,\\tfrequency\\tand\\tcosts\\tof\\tfuture\\tclaims.\\tThese\\testimates\\tare\\tinherently\\tuncertain\\tand\\tchanges\\tto\\tour\\nhistorical\\tor\\tprojected\\twarranty\\texperience\\tmay\\tcause\\tmaterial\\tchanges\\tto\\tthe\\twarranty\\treserve\\tin\\tthe\\tfuture.\\tThe\\twarranty\\treserve\\tdoes\\tnot\\tinclude\\nprojected\\twarranty\\tcosts\\tassociated\\twith\\tour\\tvehicles\\tsubject\\tto\\toperating\\tlease\\taccounting\\tand\\tour\\tsolar\\tenergy\\tsystems\\tunder\\tlease\\tcontracts\\tor\\tPPAs,\\nas\\tthe\\tcosts\\tto\\trepair\\tthese\\twarranty\\tclaims\\tare\\texpensed\\tas\\tincurred.\\tThe\\tportion\\tof\\tthe\\twarranty\\treserve\\texpected\\tto\\tbe\\tincurred\\twithin\\tthe\\tnext\\t12\\nmonths\\tis\\tincluded\\twithin\\tAccrued\\tliabilities\\tand\\tother,\\twhile\\tthe\\tremaining\\tbalance\\tis\\tincluded\\twithin\\tOther\\tlong-term\\tliabilities\\ton\\tthe\\tconsolidated\\nbalance\\tsheets.\\tFor\\tliabilities\\tthat\\twe\\tare\\tentitled\\tto\\treceive\\tindemnification\\tfrom\\tour\\tsuppliers,\\twe\\trecord\\treceivables\\tfor\\tthe\\tcontractually\\tobligated\\namounts\\ton\\tthe\\tconsolidated\\tbalance\\tsheets\\tas\\ta\\tcomponent\\tof\\tPrepaid\\texpenses\\tand\\tother\\tcurrent\\tassets\\tfor\\tthe\\tcurrent\\tportion\\tand\\tas\\tOther\\tnon-\\ncurrent\\tassets\\tfor\\tthe\\tlong-term\\tportion.\\tWarranty\\texpense\\tis\\trecorded\\tas\\ta\\tcomponent\\tof\\tCost\\tof\\trevenues\\tin\\tthe\\tconsolidated\\tstatements\\tof\\toperations.\\nDue\\tto\\tthe\\tmagnitude\\tof\\tour\\tautomotive\\tbusiness,\\tour\\taccrued\\twarranty\\tbalance\\tis\\tprimarily\\trelated\\tto\\tour\\tautomotive\\tsegment.\\nStock-Based\\tCompensation\\nWe\\tuse\\tthe\\tfair\\tvalue\\tmethod\\tof\\taccounting\\tfor\\tour\\tstock\\toptions\\tand\\trestricted\\tstock\\tunits\\t(“RSUs”)\\tgranted\\tto\\temployees\\tand\\tfor\\tour\\temployee\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 38,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 15\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"stock\\tpurchase\\tplan\\t(the\\t“ESPP”)\\tto\\tmeasure\\tthe\\tcost\\tof\\temployee\\tservices\\treceived\\tin\\texchange\\tfor\\tthe\\tstock-based\\tawards.\\tThe\\tfair\\tvalue\\tof\\tstock\\noption\\tawards\\twith\\tonly\\tservice\\tand/or\\tperformance\\tconditions\\tis\\testimated\\ton\\tthe\\tgrant\\tor\\toffering\\tdate\\tusing\\tthe\\tBlack-Scholes\\toption-pricing\\tmodel.\\nThe\\tBlack-Scholes\\toption-pricing\\tmodel\\trequires\\tinputs\\tsuch\\tas\\tthe\\trisk-free\\tinterest\\trate,\\texpected\\tterm\\tand\\texpected\\tvolatility.\\tThese\\tinputs\\tare\\nsubjective\\tand\\tgenerally\\trequire\\tsignificant\\tjudgment.\\tThe\\tfair\\tvalue\\tof\\tRSUs\\tis\\tmeasured\\ton\\tthe\\tgrant\\tdate\\tbased\\ton\\tthe\\tclosing\\tfair\\tmarket\\tvalue\\tof\\tour\\ncommon\\tstock.\\tThe\\tresulting\\tcost\\tis\\trecognized\\tover\\tthe\\tperiod\\tduring\\twhich\\tan\\temployee\\tis\\trequired\\tto\\tprovide\\tservice\\tin\\texchange\\tfor\\tthe\\tawards,\\nusually\\tthe\\tvesting\\tperiod,\\twhich\\tis\\tgenerally\\tfour\\tyears\\tfor\\tstock\\toptions\\tand\\tRSUs\\tand\\tsix\\tmonths\\tfor\\tthe\\tESPP.\\tStock-based\\tcompensation\\texpense\\tis\\nrecognized\\ton\\ta\\tstraight-line\\tbasis,\\tnet\\tof\\tactual\\tforfeitures\\tin\\tthe\\tperiod.\\nFor\\tperformance-based\\tawards,\\tstock-based\\tcompensation\\texpense\\tis\\trecognized\\tover\\tthe\\texpected\\tperformance\\tachievement\\tperiod\\tof\\tindividual\\nperformance\\tmilestones\\twhen\\tthe\\tachievement\\tof\\teach\\tindividual\\tperformance\\tmilestone\\tbecomes\\tprobable.\\nAs\\twe\\taccumulate\\tadditional\\temployee\\tstock-based\\tawards\\tdata\\tover\\ttime\\tand\\tas\\twe\\tincorporate\\tmarket\\tdata\\trelated\\tto\\tour\\tcommon\\tstock,\\twe\\tmay\\ncalculate\\tsignificantly\\tdifferent\\tvolatilities\\tand\\texpected\\tlives,\\twhich\\tcould\\tmaterially\\timpact\\tthe\\tvaluation\\tof\\tour\\tstock-based\\tawards\\tand\\tthe\\tstock-based\\ncompensation\\texpense\\tthat\\twe\\twill\\trecognize\\tin\\tfuture\\tperiods.\\tStock-based\\tcompensation\\texpense\\tis\\trecorded\\tin\\tCost\\tof\\trevenues,\\tResearch\\tand\\ndevelopment\\texpense\\tand\\tSelling,\\tgeneral\\tand\\tadministrative\\texpense\\tin\\tthe\\tconsolidated\\tstatements\\tof\\toperations.\\nIncome\\tTaxes\\nWe\\tare\\tsubject\\tto\\tincome\\ttaxes\\tin\\tthe\\tU.S.\\tand\\tin\\tmany\\tforeign\\tjurisdictions.\\tSignificant\\tjudgment\\tis\\trequired\\tin\\tdetermining\\tour\\tprovision\\tfor\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 38,\n        \"lines\": {\n          \"from\": 16,\n          \"to\": 30\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"income\\ttaxes,\\tour\\tdeferred\\ttax\\tassets\\tand\\tliabilities\\tand\\tany\\tvaluation\\tallowance\\trecorded\\tagainst\\tour\\tnet\\tdeferred\\ttax\\tassets\\tthat\\tare\\tnot\\tmore\\tlikely\\nthan\\tnot\\tto\\tbe\\trealized.\\tWe\\tmonitor\\tthe\\trealizability\\tof\\tour\\tdeferred\\ttax\\tassets\\ttaking\\tinto\\taccount\\tall\\trelevant\\tfactors\\tat\\teach\\treporting\\tperiod.\\tIn\\ncompleting\\tour\\tassessment\\tof\\trealizability\\tof\\tour\\tdeferred\\ttax\\tassets,\\twe\\tconsider\\tour\\thistory\\tof\\tincome\\t(loss)\\tmeasured\\tat\\tpre-tax\\tincome\\t(loss)\\tadjusted\\nfor\\tpermanent\\tbook-tax\\tdifferences\\ton\\ta\\tjurisdictional\\tbasis,\\tvolatility\\tin\\tactual\\tearnings,\\texcess\\ttax\\tbenefits\\trelated\\tto\\tstock-based\\tcompensation\\tin\\nrecent\\tprior\\tyears,\\tand\\timpacts\\tof\\tthe\\ttiming\\tof\\treversal\\tof\\texisting\\ttemporary\\tdifferences.\\tWe\\talso\\trely\\ton\\tour\\tassessment\\tof\\tthe\\tCompany’s\\tprojected\\nfuture\\tresults\\tof\\tbusiness\\toperations,\\tincluding\\tuncertainty\\tin\\tfuture\\toperating\\tresults\\trelative\\tto\\thistorical\\tresults,\\tvolatility\\tin\\tthe\\tmarket\\tprice\\tof\\tour\\ncommon\\tstock\\tand\\tits\\tperformance\\tover\\ttime,\\tvariable\\tmacroeconomic\\tconditions\\timpacting\\tour\\tability\\tto\\tforecast\\tfuture\\ttaxable\\tincome,\\tand\\tchanges\\tin\\nbusiness\\tthat\\tmay\\taffect\\tthe\\texistence\\tand\\tmagnitude\\tof\\tfuture\\ttaxable\\tincome.\\tOur\\tvaluation\\tallowance\\tassessment\\tis\\tbased\\ton\\tour\\tbest\\testimate\\tof\\nfuture\\tresults\\tconsidering\\tall\\tavailable\\tinformation.\\n37\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 38,\n        \"lines\": {\n          \"from\": 31,\n          \"to\": 40\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Furthermore,\\tsignificant\\tjudgment\\tis\\trequired\\tin\\tevaluating\\tour\\ttax\\tpositions.\\tIn\\tthe\\tordinary\\tcourse\\tof\\tbusiness,\\tthere\\tare\\tmany\\ttransactions\\tand\\ncalculations\\tfor\\twhich\\tthe\\tultimate\\ttax\\tsettlement\\tis\\tuncertain.\\tAs\\ta\\tresult,\\twe\\trecognize\\tthe\\teffect\\tof\\tthis\\tuncertainty\\ton\\tour\\ttax\\tattributes\\tor\\ttaxes\\npayable\\tbased\\ton\\tour\\testimates\\tof\\tthe\\teventual\\toutcome.\\tThese\\teffects\\tare\\trecognized\\twhen,\\tdespite\\tour\\tbelief\\tthat\\tour\\ttax\\treturn\\tpositions\\tare\\nsupportable,\\twe\\tbelieve\\tthat\\tit\\tis\\tmore\\tlikely\\tthan\\tnot\\tthat\\tsome\\tof\\tthose\\tpositions\\tmay\\tnot\\tbe\\tfully\\tsustained\\tupon\\treview\\tby\\ttax\\tauthorities.\\tWe\\tare\\nrequired\\tto\\tfile\\tincome\\ttax\\treturns\\tin\\tthe\\tU.S.\\tand\\tvarious\\tforeign\\tjurisdictions,\\twhich\\trequires\\tus\\tto\\tinterpret\\tthe\\tapplicable\\ttax\\tlaws\\tand\\tregulations\\tin\\neffect\\tin\\tsuch\\tjurisdictions.\\tSuch\\treturns\\tare\\tsubject\\tto\\taudit\\tby\\tthe\\tvarious\\tfederal,\\tstate\\tand\\tforeign\\ttaxing\\tauthorities,\\twho\\tmay\\tdisagree\\twith\\trespect\\tto\\nour\\ttax\\tpositions.\\tWe\\tbelieve\\tthat\\tour\\tconsideration\\tis\\tadequate\\tfor\\tall\\topen\\taudit\\tyears\\tbased\\ton\\tour\\tassessment\\tof\\tmany\\tfactors,\\tincluding\\tpast\\nexperience\\tand\\tinterpretations\\tof\\ttax\\tlaw.\\tWe\\treview\\tand\\tupdate\\tour\\testimates\\tin\\tlight\\tof\\tchanging\\tfacts\\tand\\tcircumstances,\\tsuch\\tas\\tthe\\tclosing\\tof\\ta\\ttax\\naudit,\\tthe\\tlapse\\tof\\ta\\tstatute\\tof\\tlimitations\\tor\\ta\\tchange\\tin\\testimate.\\tTo\\tthe\\textent\\tthat\\tthe\\tfinal\\ttax\\toutcome\\tof\\tthese\\tmatters\\tdiffers\\tfrom\\tour\\texpectations,\\nsuch\\tdifferences\\tmay\\timpact\\tincome\\ttax\\texpense\\tin\\tthe\\tperiod\\tin\\twhich\\tsuch\\tdetermination\\tis\\tmade.\\nResults\\tof\\tOperations\\nRevenues\\n\\tYear\\tEnded\\tDecember\\t31,2023\\tvs.\\t2022\\tChange2022\\tvs.\\t2021\\tChange\\n(Dollars\\tin\\tmillions)202320222021$%$%\\nAutomotive\\tsales$78,509\\t$67,210\\t$44,125\\t$11,299\\t17\\t%$23,085\\t52\\t%\\nAutomotive\\tregulatory\\tcredits1,790\\t1,776\\t1,465\\t14\\t1\\t%311\\t21\\t%\\nAutomotive\\tleasing2,120\\t2,476\\t1,642\\t(356)(14)%834\\t51\\t%\\nTotal\\tautomotive\\trevenues82,419\\t71,462\\t47,232\\t10,957\\t15\\t%24,230\\t51\\t%\\nServices\\tand\\tother8,319\\t6,091\\t3,802\\t2,228\\t37\\t%2,289\\t60\\t%\\nTotal\\tautomotive\\t&\\tservices\\tand\\tother\\tsegment\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 39,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 20\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Total\\tautomotive\\t&\\tservices\\tand\\tother\\tsegment\\nrevenue90,738\\t77,553\\t51,034\\t13,185\\t17\\t%26,519\\t52\\t%\\nEnergy\\tgeneration\\tand\\tstorage\\tsegment\\trevenue6,035\\t3,909\\t2,789\\t2,126\\t54\\t%1,120\\t40\\t%\\nTotal\\trevenues\\n$96,773\\t$81,462\\t$53,823\\t$15,311\\t\\n19\\t%\\n$27,639\\t\\n51\\t%\\nAutomotive\\t&\\tServices\\tand\\tOther\\tSegment\\nAutomotive\\tsales\\trevenue\\tincludes\\trevenues\\trelated\\tto\\tcash\\tand\\tfinancing\\tdeliveries\\tof\\tnew\\tModel\\tS,\\tModel\\tX,\\tSemi,\\tModel\\t3,\\tModel\\tY,\\tand\\nCybertruck\\tvehicles,\\tincluding\\taccess\\tto\\tour\\tFSD\\tCapability\\tfeatures\\tand\\ttheir\\tongoing\\tmaintenance,\\tinternet\\tconnectivity,\\tfree\\tSupercharging\\tprograms\\nand\\tover-the-air\\tsoftware\\tupdates.\\tThese\\tdeliveries\\tare\\tvehicles\\tthat\\tare\\tnot\\tsubject\\tto\\tlease\\taccounting.\\nAutomotive\\tregulatory\\tcredits\\tincludes\\tsales\\tof\\tregulatory\\tcredits\\tto\\tother\\tautomotive\\tmanufacturers.\\tOur\\trevenue\\tfrom\\tautomotive\\tregulatory\\ncredits\\tis\\tdirectly\\trelated\\tto\\tour\\tnew\\tvehicle\\tproduction,\\tsales\\tand\\tpricing\\tnegotiated\\twith\\tour\\tcustomers.\\tWe\\tmonetize\\tthem\\tproactively\\tas\\tnew\\tvehicles\\nare\\tsold\\tbased\\ton\\tstanding\\tarrangements\\twith\\tbuyers\\tof\\tsuch\\tcredits,\\ttypically\\tas\\tclose\\tas\\tpossible\\tto\\tthe\\tproduction\\tand\\tdelivery\\tof\\tthe\\tvehicle\\tor\\nchanges\\tin\\tregulation\\timpacting\\tthe\\tcredits.\\nAutomotive\\tleasing\\trevenue\\tincludes\\tthe\\tamortization\\tof\\trevenue\\tfor\\tvehicles\\tunder\\tdirect\\toperating\\tlease\\tagreements.\\tAdditionally,\\tautomotive\\nleasing\\trevenue\\tincludes\\tdirect\\tsales-type\\tleasing\\tprograms\\twhere\\twe\\trecognize\\tall\\trevenue\\tassociated\\twith\\tthe\\tsales-type\\tlease\\tupon\\tdelivery\\tto\\tthe\\ncustomer.\\nServices\\tand\\tother\\trevenue\\tconsists\\tof\\tsales\\tof\\tused\\tvehicles,\\tnon-warranty\\tafter-sales\\tvehicle\\tservices,\\tbody\\tshop\\tand\\tparts,\\tpaid\\tSupercharging,\\nvehicle\\tinsurance\\trevenue\\tand\\tretail\\tmerchandise.\\n2023\\tcompared\\tto\\t2022\\nAutomotive\\tsales\\trevenue\\tincreased\\t$11.30\\tbillion,\\tor\\t17%,\\tin\\tthe\\tyear\\tended\\tDecember\\t31,\\t2023\\tas\\tcompared\\tto\\tthe\\tyear\\tended\\tDecember\\t31,\\n2022,\\tprimarily\\tdue\\tto\\tan\\tincrease\\tof\\t473,382\\tcombined\\tModel\\t3\\tand\\tModel\\tY\\tcash\\tdeliveries\\tfrom\\tproduction\\tramping\\tof\\tModel\\tY\\tglobally.\\tThe\\tincrease\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 39,\n        \"lines\": {\n          \"from\": 20,\n          \"to\": 43\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"was\\tpartially\\toffset\\tby\\ta\\tlower\\taverage\\tselling\\tprice\\ton\\tour\\tvehicles\\tdriven\\tby\\toverall\\tprice\\treductions\\tyear\\tover\\tyear,\\tsales\\tmix,\\tand\\ta\\tnegative\\timpact\\nfrom\\tthe\\tUnited\\tStates\\tdollar\\tstrengthening\\tagainst\\tother\\tforeign\\tcurrencies\\tin\\tthe\\tyear\\tended\\tDecember\\t31,\\t2023\\tcompared\\tto\\tthe\\tprior\\tyear.\\nAutomotive\\tregulatory\\tcredits\\trevenue\\tincreased\\t$14\\tmillion,\\tor\\t1%,\\tin\\tthe\\tyear\\tended\\tDecember\\t31,\\t2023\\tas\\tcompared\\tto\\tthe\\tyear\\tended\\nDecember\\t31,\\t2022.\\n38\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 39,\n        \"lines\": {\n          \"from\": 44,\n          \"to\": 48\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Automotive\\tleasing\\trevenue\\tdecreased\\t$356\\tmillion,\\tor\\t14%,\\tin\\tthe\\tyear\\tended\\tDecember\\t31,\\t2023\\tas\\tcompared\\tto\\tthe\\tyear\\tended\\tDecember\\t31,\\n2022.\\tThe\\tdecrease\\twas\\tprimarily\\tdue\\tto\\ta\\tdecrease\\tin\\tdirect\\tsales-type\\tleasing\\trevenue\\tdriven\\tby\\tlower\\tdeliveries\\tyear\\tover\\tyear,\\tpartially\\toffset\\tby\\tan\\nincrease\\tfrom\\tour\\tgrowing\\tdirect\\toperating\\tlease\\tportfolio.\\nServices\\tand\\tother\\trevenue\\tincreased\\t$2.23\\tbillion,\\tor\\t37%,\\tin\\tthe\\tyear\\tended\\tDecember\\t31,\\t2023\\tas\\tcompared\\tto\\tthe\\tyear\\tended\\tDecember\\t31,\\n2022.\\tThe\\tincrease\\twas\\tprimarily\\tdue\\tto\\thigher\\tused\\tvehicle\\trevenue\\tdriven\\tby\\tincreases\\tin\\tvolume,\\tbody\\tshop\\tand\\tpart\\tsales\\trevenue,\\tnon-warranty\\nmaintenance\\tservices\\trevenue,\\tpaid\\tSupercharging\\trevenue\\tand\\tinsurance\\tservices\\trevenue,\\tall\\tof\\twhich\\tare\\tprimarily\\tattributable\\tto\\tour\\tgrowing\\tfleet.\\nThe\\tincreases\\twere\\tpartially\\toffset\\tby\\ta\\tdecrease\\tin\\tthe\\taverage\\tselling\\tprice\\tof\\tused\\tvehicles.\\nEnergy\\tGeneration\\tand\\tStorage\\tSegment\\nEnergy\\tgeneration\\tand\\tstorage\\trevenue\\tincludes\\tsales\\tand\\tleasing\\tof\\tsolar\\tenergy\\tgeneration\\tand\\tenergy\\tstorage\\tproducts,\\tfinancing\\tof\\tsolar\\tenergy\\ngeneration\\tproducts,\\tservices\\trelated\\tto\\tsuch\\tproducts\\tand\\tsales\\tof\\tsolar\\tenergy\\tsystems\\tincentives.\\n2023\\tcompared\\tto\\t2022\\nEnergy\\tgeneration\\tand\\tstorage\\trevenue\\tincreased\\t$2.13\\tbillion,\\tor\\t54%,\\tin\\tthe\\tyear\\tended\\tDecember\\t31,\\t2023\\tas\\tcompared\\tto\\tthe\\tyear\\tended\\nDecember\\t31,\\t2022.\\tThe\\tincrease\\twas\\tprimarily\\tdue\\tto\\tan\\tincrease\\tin\\tdeployments\\tof\\tMegapack.\\nCost\\tof\\tRevenues\\tand\\tGross\\tMargin\\nYear\\tEnded\\tDecember\\t31,2023\\tvs.\\t2022\\tChange2022\\tvs.\\t2021\\tChange\\n(Dollars\\tin\\tmillions)202320222021$%$%\\nCost\\tof\\trevenues\\nAutomotive\\tsales$65,121\\t$49,599\\t$32,415\\t$15,522\\t31\\t%$17,184\\t53\\t%\\nAutomotive\\tleasing1,268\\t1,509\\t978\\t(241)(16)%531\\t54\\t%\\nTotal\\tautomotive\\tcost\\tof\\trevenues66,389\\t51,108\\t33,393\\t15,281\\t30\\t%17,715\\t53\\t%\\nServices\\tand\\tother7,830\\t5,880\\t3,906\\t1,950\\t33\\t%1,974\\t51\\t%\\nTotal\\tautomotive\\t&\\tservices\\tand\\tother\\tsegment\\ncost\\tof\\trevenues74,219\\t56,988\\t37,299\\t17,231\\t30\\t%19,689\\t53\\t%\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 40,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 23\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Energy\\tgeneration\\tand\\tstorage\\tsegment4,894\\t3,621\\t2,918\\t1,273\\t35\\t%703\\t24\\t%\\nTotal\\tcost\\tof\\trevenues\\n$79,113\\t$60,609\\t$40,217\\t$18,504\\t\\n31\\t%\\n$20,392\\t\\n51\\t%\\nGross\\tprofit\\ttotal\\tautomotive$16,030\\t$20,354\\t$13,839\\t\\nGross\\tmargin\\ttotal\\tautomotive19.4\\t%28.5\\t%29.3\\t%\\nGross\\tprofit\\ttotal\\tautomotive\\t&\\tservices\\tand\\tother\\nsegment$16,519\\t$20,565\\t$13,735\\t\\nGross\\tmargin\\ttotal\\tautomotive\\t&\\tservices\\tand\\tother\\nsegment18.2\\t%26.5\\t%26.9\\t%\\nGross\\tprofit\\tenergy\\tgeneration\\tand\\tstorage\\tsegment$1,141\\t$288\\t$(129)\\nGross\\tmargin\\tenergy\\tgeneration\\tand\\tstorage\\tsegment18.9\\t%7.4\\t%(4.6)%\\nTotal\\tgross\\tprofit$17,660\\t$20,853\\t$13,606\\t\\nTotal\\tgross\\tmargin18.2\\t%25.6\\t%25.3\\t%\\n39\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 40,\n        \"lines\": {\n          \"from\": 24,\n          \"to\": 40\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Automotive\\t&\\tServices\\tand\\tOther\\tSegment\\nCost\\tof\\tautomotive\\tsales\\trevenue\\tincludes\\tdirect\\tand\\tindirect\\tmaterials,\\tlabor\\tcosts,\\tmanufacturing\\toverhead,\\tincluding\\tdepreciation\\tcosts\\tof\\ttooling\\nand\\tmachinery,\\tshipping\\tand\\tlogistic\\tcosts,\\tvehicle\\tconnectivity\\tcosts,\\tFSD\\tongoing\\tmaintenance\\tcosts,\\tallocations\\tof\\telectricity\\tand\\tinfrastructure\\tcosts\\nrelated\\tto\\tour\\tSupercharger\\tnetwork\\tand\\treserves\\tfor\\testimated\\twarranty\\texpenses.\\tCost\\tof\\tautomotive\\tsales\\trevenues\\talso\\tincludes\\tadjustments\\tto\\nwarranty\\texpense\\tand\\tcharges\\tto\\twrite\\tdown\\tthe\\tcarrying\\tvalue\\tof\\tour\\tinventory\\twhen\\tit\\texceeds\\tits\\testimated\\tnet\\trealizable\\tvalue\\tand\\tto\\tprovide\\tfor\\nobsolete\\tand\\ton-hand\\tinventory\\tin\\texcess\\tof\\tforecasted\\tdemand.\\tAdditionally,\\tcost\\tof\\tautomotive\\tsales\\trevenue\\tbenefits\\tfrom\\tmanufacturing\\tcredits\\nearned.\\nCost\\tof\\tautomotive\\tleasing\\trevenue\\tincludes\\tthe\\tdepreciation\\tof\\toperating\\tlease\\tvehicles,\\tcost\\tof\\tgoods\\tsold\\tassociated\\twith\\tdirect\\tsales-type\\tleases\\nand\\twarranty\\texpense\\trelated\\tto\\tleased\\tvehicles.\\nCosts\\tof\\tservices\\tand\\tother\\trevenue\\tincludes\\tcost\\tof\\tused\\tvehicles\\tincluding\\trefurbishment\\tcosts,\\tcosts\\tassociated\\twith\\tproviding\\tnon-warranty\\nafter-sales\\tservices,\\tcosts\\tassociated\\twith\\tour\\tbody\\tshops\\tand\\tpart\\tsales,\\tcosts\\tof\\tpaid\\tSupercharging,\\tcosts\\tto\\tprovide\\tvehicle\\tinsurance\\tand\\tcosts\\tfor\\nretail\\tmerchandise.\\n2023\\tcompared\\tto\\t2022\\nCost\\tof\\tautomotive\\tsales\\trevenue\\tincreased\\t$15.52\\tbillion,\\tor\\t31%,\\tin\\tthe\\tyear\\tended\\tDecember\\t31,\\t2023\\tas\\tcompared\\tto\\tthe\\tyear\\tended\\nDecember\\t31,\\t2022.\\tCost\\tof\\tautomotive\\tsales\\trevenue\\tincreased\\tin\\tline\\twith\\tthe\\tchange\\tin\\tdeliveries\\tyear\\tover\\tyear,\\tas\\tdiscussed\\tabove.\\tThe\\tincrease\\nwas\\tpartially\\toffset\\tby\\ta\\tdecrease\\tin\\tthe\\taverage\\tcombined\\tcost\\tper\\tunit\\tof\\tour\\tvehicles\\tprimarily\\tdue\\tto\\tsales\\tmix,\\tlower\\tinbound\\tfreight,\\ta\\tdecrease\\tin\\nmaterial\\tcosts\\tand\\tlower\\tmanufacturing\\tcosts\\tfrom\\tbetter\\tfixed\\tcost\\tabsorption.\\tOur\\tcosts\\tof\\trevenue\\twere\\talso\\tpositively\\timpacted\\tby\\tthe\\tUnited\\tStates\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 41,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 17\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"dollar\\tstrengthening\\tagainst\\tour\\tforeign\\tcurrencies\\tas\\tcompared\\tto\\tthe\\tprior\\tperiods\\tand\\tby\\tthe\\tIRA\\tmanufacturing\\tcredits\\tearned\\tduring\\tthe\\tcurrent\\tyear.\\nCost\\tof\\tautomotive\\tleasing\\trevenue\\tdecreased\\t$241\\tmillion,\\tor\\t16%,\\tin\\tthe\\tyear\\tended\\tDecember\\t31,\\t2023\\tas\\tcompared\\tto\\tthe\\tyear\\tended\\nDecember\\t31,\\t2022.\\tThe\\tdecrease\\twas\\tprimarily\\tdue\\tto\\ta\\tdecrease\\tin\\tdirect\\tsales-type\\tleasing\\tcost\\tof\\trevenue\\tdriven\\tby\\tlower\\tdeliveries\\tyear\\tover\\tyear.\\nCost\\tof\\tservices\\tand\\tother\\trevenue\\tincreased\\t$1.95\\tbillion,\\tor\\t33%,\\tin\\tthe\\tyear\\tended\\tDecember\\t31,\\t2023\\tas\\tcompared\\tto\\tthe\\tyear\\tended\\nDecember\\t31,\\t2022.\\tThe\\tincrease\\twas\\tgenerally\\tin\\tline\\twith\\tthe\\tchanges\\tin\\tservices\\tand\\tother\\trevenue\\tas\\tdiscussed\\tabove.\\nGross\\tmargin\\tfor\\ttotal\\tautomotive\\tdecreased\\tfrom\\t28.5%\\tto\\t19.4%\\tin\\tthe\\tyear\\tended\\tDecember\\t31,\\t2023\\tas\\tcompared\\tto\\tthe\\tyear\\tended\\nDecember\\t31,\\t2022.\\tThe\\tdecrease\\twas\\tprimarily\\tdue\\tto\\ta\\tlower\\taverage\\tselling\\tprice\\ton\\tour\\tvehicles\\tpartially\\toffset\\tby\\tthe\\tfavorable\\tchange\\tin\\tour\\naverage\\tcombined\\tcost\\tper\\tunit\\tof\\tour\\tvehicles\\tand\\tIRA\\tmanufacturing\\tcredits\\tearned\\tas\\tdiscussed\\tabove.\\nGross\\tmargin\\tfor\\ttotal\\tautomotive\\t&\\tservices\\tand\\tother\\tsegment\\tdecreased\\tfrom\\t26.5%\\tto\\t18.2%\\tin\\tthe\\tyear\\tended\\tDecember\\t31,\\t2023\\tas\\ncompared\\tto\\tthe\\tyear\\tended\\tDecember\\t31,\\t2022,\\tprimarily\\tdue\\tto\\tthe\\tautomotive\\tgross\\tmargin\\tdecrease\\tdiscussed\\tabove.\\nEnergy\\tGeneration\\tand\\tStorage\\tSegment\\nCost\\tof\\tenergy\\tgeneration\\tand\\tstorage\\trevenue\\tincludes\\tdirect\\tand\\tindirect\\tmaterial\\tand\\tlabor\\tcosts,\\twarehouse\\trent,\\tfreight,\\twarranty\\texpense,\\nother\\toverhead\\tcosts\\tand\\tamortization\\tof\\tcertain\\tacquired\\tintangible\\tassets.\\tCost\\tof\\tenergy\\tgeneration\\tand\\tstorage\\trevenue\\talso\\tincludes\\tcharges\\tto\\twrite\\ndown\\tthe\\tcarrying\\tvalue\\tof\\tour\\tinventory\\twhen\\tit\\texceeds\\tits\\testimated\\tnet\\trealizable\\tvalue\\tand\\tto\\tprovide\\tfor\\tobsolete\\tand\\ton-hand\\tinventory\\tin\\texcess\\nof\\tforecasted\\tdemand.\\tAdditionally,\\tcost\\tof\\tenergy\\tgeneration\\tand\\tstorage\\trevenue\\tbenefits\\tfrom\\tmanufacturing\\tcredits\\tearned.\\tIn\\tagreements\\tfor\\tsolar\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 41,\n        \"lines\": {\n          \"from\": 18,\n          \"to\": 32\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"energy\\tsystems\\tand\\tPPAs\\twhere\\twe\\tare\\tthe\\tlessor,\\tthe\\tcost\\tof\\trevenue\\tis\\tprimarily\\tcomprised\\tof\\tdepreciation\\tof\\tthe\\tcost\\tof\\tleased\\tsolar\\tenergy\\tsystems,\\nmaintenance\\tcosts\\tassociated\\twith\\tthose\\tsystems\\tand\\tamortization\\tof\\tany\\tinitial\\tdirect\\tcosts.\\n2023\\tcompared\\tto\\t2022\\nCost\\tof\\tenergy\\tgeneration\\tand\\tstorage\\trevenue\\tincreased\\t$1.27\\tbillion,\\tor\\t35%,\\tin\\tthe\\tyear\\tended\\tDecember\\t31,\\t2023\\tas\\tcompared\\tto\\tthe\\tyear\\nended\\tDecember\\t31,\\t2022,\\tin\\tline\\twith\\tthe\\tincrease\\tin\\tMegapack\\tdeployments\\tyear\\tover\\tyear,\\tas\\tdiscussed\\tabove.\\tThis\\tincrease\\twas\\tpartially\\toffset\\tby\\tan\\nimprovement\\tin\\tproduction\\tramping\\tthat\\tdrove\\tdown\\tthe\\taverage\\tcost\\tper\\tMWh\\tof\\tMegapack\\tas\\twell\\tas\\tIRA\\tmanufacturing\\tcredits\\tearned\\tduring\\tthe\\ncurrent\\tyear.\\n40\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 41,\n        \"lines\": {\n          \"from\": 33,\n          \"to\": 40\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Gross\\tmargin\\tfor\\tenergy\\tgeneration\\tand\\tstorage\\tincreased\\tfrom\\t7.4%\\tto\\t18.9%\\tin\\tthe\\tyear\\tended\\tDecember\\t31,\\t2023\\tas\\tcompared\\tto\\tthe\\tyear\\nended\\tDecember\\t31,\\t2022.\\tThe\\tincrease\\twas\\tdriven\\tby\\tan\\timprovement\\tin\\tour\\tMegapack\\tgross\\tmargin\\tfrom\\tlower\\taverage\\tcost\\tper\\tMWh\\tand\\ta\\thigher\\nproportion\\tof\\tMegapack,\\twhich\\toperated\\tat\\ta\\thigher\\tgross\\tmargin,\\twithin\\tthe\\tsegment\\tas\\tcompared\\tto\\tthe\\tprior\\tyear\\tperiods.\\tAdditionally,\\tthere\\twas\\ta\\nmargin\\tbenefit\\tfrom\\tIRA\\tmanufacturing\\tcredits\\tearned.\\nResearch\\tand\\tDevelopment\\tExpense\\nYear\\tEnded\\tDecember\\t31,2023\\tvs.\\t2022\\tChange2022\\tvs.\\t2021\\tChange\\n(Dollars\\tin\\tmillions)202320222021$%$%\\nResearch\\tand\\tdevelopment\\n$3,969\\t$3,075\\t$2,593\\t$894\\t29\\t%$482\\t19\\t%\\nAs\\ta\\tpercentage\\tof\\trevenues4\\t%4\\t%5\\t%\\nResearch\\tand\\tdevelopment\\t(“R&D”)\\texpenses\\tconsist\\tprimarily\\tof\\tpersonnel\\tcosts\\tfor\\tour\\tteams\\tin\\tengineering\\tand\\tresearch,\\tmanufacturing\\nengineering\\tand\\tmanufacturing\\ttest\\torganizations,\\tprototyping\\texpense,\\tcontract\\tand\\tprofessional\\tservices\\tand\\tamortized\\tequipment\\texpense.\\nR&D\\texpenses\\tincreased\\t$894\\tmillion,\\tor\\t29%,\\tin\\tthe\\tyear\\tended\\tDecember\\t31,\\t2023\\tas\\tcompared\\tto\\tthe\\tyear\\tended\\tDecember\\t31,\\t2022.\\tThe\\noverall\\tincrease\\twas\\tprimarily\\tdriven\\tby\\tadditional\\tcosts\\tin\\tthe\\tcurrent\\tyear\\trelated\\tto\\tthe\\tpre-production\\tphase\\tfor\\tCybertruck,\\tAI\\tand\\tother\\tprograms.\\nR&D\\texpenses\\tas\\ta\\tpercentage\\tof\\trevenue\\tstayed\\tconsistent\\tat\\t4%\\tin\\tthe\\tyear\\tended\\tDecember\\t31,\\t2023\\tas\\tcompared\\tto\\tthe\\tyear\\tended\\nDecember\\t31,\\t2022.\\tOur\\tR&D\\texpenses\\thave\\tincreased\\tproportionately\\twith\\ttotal\\trevenues\\tas\\twe\\tcontinue\\tto\\texpand\\tour\\tproduct\\troadmap\\tand\\ntechnologies.\\nSelling,\\tGeneral\\tand\\tAdministrative\\tExpense\\nYear\\tEnded\\tDecember\\t31,2023\\tvs.\\t2022\\tChange2022\\tvs.\\t2021\\tChange\\n(Dollars\\tin\\tmillions)202320222021$%$%\\nSelling,\\tgeneral\\tand\\tadministrative\\n$4,800\\t$3,946\\t$4,517\\t$854\\t22\\t%$(571)(13)%\\nAs\\ta\\tpercentage\\tof\\trevenues5\\t%5\\t%8\\t%\\nSelling,\\tgeneral\\tand\\tadministrative\\t(“SG&A”)\\texpenses\\tgenerally\\tconsist\\tof\\tpersonnel\\tand\\tfacilities\\tcosts\\trelated\\tto\\tour\\tstores,\\tmarketing,\\tsales,\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 42,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 24\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"executive,\\tfinance,\\thuman\\tresources,\\tinformation\\ttechnology\\tand\\tlegal\\torganizations,\\tas\\twell\\tas\\tfees\\tfor\\tprofessional\\tand\\tcontract\\tservices\\tand\\tlitigation\\nsettlements.\\nSG&A\\texpenses\\tincreased\\t$854\\tmillion,\\tor\\t22%,\\tin\\tthe\\tyear\\tended\\tDecember\\t31,\\t2023\\tas\\tcompared\\tto\\tthe\\tyear\\tended\\tDecember\\t31,\\t2022.\\tThis\\twas\\ndriven\\tby\\ta\\t$447\\tmillion\\tincrease\\tin\\temployee\\tand\\tlabor\\tcosts\\tprimarily\\tfrom\\tincreased\\theadcount,\\tincluding\\tprofessional\\tservices\\tand\\ta\\t$363\\tmillion\\nincrease\\tin\\tfacilities\\trelated\\texpenses.\\nRestructuring\\tand\\tOther\\nYear\\tEnded\\tDecember\\t31,2023\\tvs.\\t2022\\tChange2022\\tvs.\\t2021\\tChange\\n(Dollars\\tin\\tmillions)202320222021$%$%\\nRestructuring\\tand\\tother\\n$—\\t$176\\t$(27)$(176)(100)%$203\\tNot\\tmeaningful\\nDuring\\tthe\\tyear\\tended\\tDecember\\t31,\\t2022,\\twe\\trecorded\\tan\\timpairment\\tloss\\tof\\t$204\\tmillion\\tas\\twell\\tas\\trealized\\tgains\\tof\\t$64\\tmillion\\tin\\tconnection\\nwith\\tconverting\\tour\\tholdings\\tof\\tdigital\\tassets\\tinto\\tfiat\\tcurrency.\\tWe\\talso\\trecorded\\tother\\texpenses\\tof\\t$36\\tmillion\\tduring\\tthe\\tsecond\\tquarter\\tof\\tthe\\tyear\\nended\\tDecember\\t31,\\t2022,\\trelated\\tto\\temployee\\tterminations.\\nInterest\\tIncome\\nYear\\tEnded\\tDecember\\t31,2023\\tvs.\\t2022\\tChange2022\\tvs.\\t2021\\tChange\\n(Dollars\\tin\\tmillions)202320222021$%$%\\nInterest\\tincome\\n$1,066\\t$297\\t$56\\t$769\\t259\\t%$241\\t430\\t%\\n41\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 42,\n        \"lines\": {\n          \"from\": 25,\n          \"to\": 43\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Interest\\tincome\\tincreased\\t$769\\tmillion,\\tor\\t259%,\\tin\\tthe\\tyear\\tended\\tDecember\\t31,\\t2023\\tas\\tcompared\\tto\\tthe\\tyear\\tended\\tDecember\\t31,\\t2022.\\tThis\\nincrease\\twas\\tprimarily\\tdue\\tto\\thigher\\tinterest\\tearned\\ton\\tour\\tcash\\tand\\tcash\\tequivalents\\tand\\tshort-term\\tinvestments\\tin\\tthe\\tyear\\tended\\tDecember\\t31,\\t2023\\nas\\tcompared\\tto\\tthe\\tprior\\tyear\\tdue\\tto\\trising\\tinterest\\trates\\tand\\tour\\tincreasing\\tportfolio\\tbalance.\\nOther\\tIncome\\t(Expense),\\tNet\\nYear\\tEnded\\tDecember\\t31,2023\\tvs.\\t2022\\tChange2022\\tvs.\\t2021\\tChange\\n(Dollars\\tin\\tmillions)202320222021$%$%\\nOther\\tincome\\t(expense),\\tnet$172\\t$(43)$135\\t$215\\tNot\\tmeaningful$(178)Not\\tmeaningful\\nOther\\tincome\\t(expense),\\tnet,\\tconsists\\tprimarily\\tof\\tforeign\\texchange\\tgains\\tand\\tlosses\\trelated\\tto\\tour\\tforeign\\tcurrency-denominated\\tmonetary\\tassets\\nand\\tliabilities.\\tWe\\texpect\\tour\\tforeign\\texchange\\tgains\\tand\\tlosses\\twill\\tvary\\tdepending\\tupon\\tmovements\\tin\\tthe\\tunderlying\\texchange\\trates.\\nOther\\tincome,\\tnet,\\tchanged\\tfavorably\\tby\\t$215\\tmillion\\tin\\tthe\\tyear\\tended\\tDecember\\t31,\\t2023\\tas\\tcompared\\tto\\tthe\\tyear\\tended\\tDecember\\t31,\\t2022.\\nThe\\tfavorable\\tchange\\twas\\tprimarily\\tdue\\tto\\tfluctuations\\tin\\tforeign\\tcurrency\\texchange\\trates\\ton\\tour\\tintercompany\\tbalances.\\n(Benefit\\tfrom)\\tProvision\\tfor\\tIncome\\tTaxes\\nYear\\tEnded\\tDecember\\t31,2023\\tvs.\\t2022\\tChange2022\\tvs.\\t2021\\tChange\\n(Dollars\\tin\\tmillions)202320222021$%$%\\n(Benefit\\tfrom)\\tprovision\\tfor\\tincome\\ttaxes\\n$(5,001)$1,132\\t$699\\t$(6,133)Not\\tmeaningful$433\\t62\\t%\\nEffective\\ttax\\trate(50)%8\\t%11\\t%\\nWe\\tmonitor\\tthe\\trealizability\\tof\\tour\\tdeferred\\ttax\\tassets\\ttaking\\tinto\\taccount\\tall\\trelevant\\tfactors\\tat\\teach\\treporting\\tperiod.\\tAs\\tof\\tDecember\\t31,\\t2023,\\nbased\\ton\\tthe\\trelevant\\tweight\\tof\\tpositive\\tand\\tnegative\\tevidence,\\tincluding\\tthe\\tamount\\tof\\tour\\ttaxable\\tincome\\tin\\trecent\\tyears\\twhich\\tis\\tobjective\\tand\\nverifiable,\\tand\\tconsideration\\tof\\tour\\texpected\\tfuture\\ttaxable\\tearnings,\\twe\\tconcluded\\tthat\\tit\\tis\\tmore\\tlikely\\tthan\\tnot\\tthat\\tour\\tU.S.\\tfederal\\tand\\tcertain\\tstate\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 43,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 20\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"deferred\\ttax\\tassets\\tare\\trealizable.\\tAs\\tsuch,\\twe\\treleased\\t$6.54\\tbillion\\tof\\tour\\tvaluation\\tallowance\\tassociated\\twith\\tthe\\tU.S.\\tfederal\\tand\\tstate\\tdeferred\\ttax\\nassets,\\twith\\tthe\\texception\\tof\\tour\\tCalifornia\\tdeferred\\ttax\\tassets.\\tApproximately\\t$5.93\\tbillion\\tof\\tthe\\ttotal\\tvaluation\\tallowance\\trelease\\twas\\trelated\\tto\\ndeferred\\ttax\\tassets\\tto\\tbe\\trealized\\tin\\tthe\\tfuture\\tyears\\tand\\tthe\\tremainder\\tbenefited\\tus\\tduring\\tthe\\tyear\\tended\\tDecember\\t31,\\t2023.\\tWe\\tcontinue\\tto\\tmaintain\\na\\tfull\\tvaluation\\tallowance\\tagainst\\tour\\tCalifornia\\tdeferred\\ttax\\tassets\\tas\\tof\\tDecember\\t31,\\t2023,\\tbecause\\twe\\tconcluded\\tthey\\tare\\tnot\\tmore\\tlikely\\tthan\\tnot\\tto\\nbe\\trealized\\tas\\twe\\texpect\\tour\\tCalifornia\\tdeferred\\ttax\\tassets\\tgeneration\\tin\\tfuture\\tyears\\tto\\texceed\\tour\\tability\\tto\\tuse\\tthese\\tdeferred\\ttax\\tassets.\\nOur\\t(benefit\\tfrom)\\tprovision\\tfor\\tincome\\ttaxes\\tchanged\\tby\\t$6.13\\tbillion\\tin\\tthe\\tyear\\tended\\tDecember\\t31,\\t2023\\tas\\tcompared\\tto\\tthe\\tyear\\tended\\nDecember\\t31,\\t2022,\\tprimarily\\tdue\\tto\\tthe\\trelease\\tof\\t$6.54\\tbillion\\tof\\tour\\tvaluation\\tallowance\\tassociated\\twith\\tthe\\tU.S.\\tfederal\\tand\\tcertain\\tstate\\tdeferred\\ttax\\nassets.\\nOur\\teffective\\ttax\\trate\\tchanged\\tfrom\\tan\\texpense\\tof\\t8%\\tto\\ta\\tbenefit\\tof\\t50%\\tin\\tthe\\tyear\\tended\\tDecember\\t31,\\t2023\\tas\\tcompared\\tto\\tthe\\tyear\\tended\\nDecember\\t31,\\t2022,\\tprimarily\\tdue\\tto\\tthe\\trelease\\tof\\tthe\\tvaluation\\tallowance\\tregarding\\tour\\tU.S.\\tfederal\\tand\\tcertain\\tstate\\tdeferred\\ttax\\tassets.\\nSee\\tNote\\t14,\\tIncome\\tTaxes,\\tto\\tthe\\tconsolidated\\tfinancial\\tstatements\\tincluded\\telsewhere\\tin\\tthis\\tAnnual\\tReport\\ton\\tForm\\t10-K\\tfor\\tfurther\\tdetails.\\nLiquidity\\tand\\tCapital\\tResources\\nWe\\texpect\\tto\\tcontinue\\tto\\tgenerate\\tnet\\tpositive\\toperating\\tcash\\tflow\\tas\\twe\\thave\\tdone\\tin\\tthe\\tlast\\tfive\\tfiscal\\tyears.\\tThe\\tcash\\twe\\tgenerate\\tfrom\\tour\\tcore\\noperations\\tenables\\tus\\tto\\tfund\\tongoing\\toperations\\tand\\tproduction,\\tour\\tresearch\\tand\\tdevelopment\\tprojects\\tfor\\tnew\\tproducts\\tand\\ttechnologies\\tincluding\\tour\\nproprietary\\tbattery\\tcells,\\tadditional\\tmanufacturing\\tramps\\tat\\texisting\\tmanufacturing\\tfacilities,\\tthe\\tconstruction\\tof\\tfuture\\tfactories,\\tand\\tthe\\tcontinued\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 43,\n        \"lines\": {\n          \"from\": 21,\n          \"to\": 35\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"expansion\\tof\\tour\\tretail\\tand\\tservice\\tlocations,\\tbody\\tshops,\\tMobile\\tService\\tfleet,\\tSupercharger,\\tincluding\\tto\\tsupport\\tNACS,\\tenergy\\tproduct\\tinstallation\\ncapabilities\\tand\\tautonomy\\tand\\tother\\tartificial\\tintelligence\\tenabled\\tproducts.\\n42\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 43,\n        \"lines\": {\n          \"from\": 36,\n          \"to\": 38\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"In\\taddition,\\tbecause\\ta\\tlarge\\tportion\\tof\\tour\\tfuture\\texpenditures\\twill\\tbe\\tto\\tfund\\tour\\tgrowth,\\twe\\texpect\\tthat\\tif\\tneeded\\twe\\twill\\tbe\\table\\tto\\tadjust\\tour\\ncapital\\tand\\toperating\\texpenditures\\tby\\toperating\\tsegment.\\tFor\\texample,\\tif\\tour\\tnear-term\\tmanufacturing\\toperations\\tdecrease\\tin\\tscale\\tor\\tramp\\tmore\\tslowly\\nthan\\texpected,\\tincluding\\tdue\\tto\\tglobal\\teconomic\\tor\\tbusiness\\tconditions,\\twe\\tmay\\tchoose\\tto\\tcorrespondingly\\tslow\\tthe\\tpace\\tof\\tour\\tcapital\\texpenditures.\\nFinally,\\twe\\tcontinually\\tevaluate\\tour\\tcash\\tneeds\\tand\\tmay\\tdecide\\tit\\tis\\tbest\\tto\\traise\\tadditional\\tcapital\\tor\\tseek\\talternative\\tfinancing\\tsources\\tto\\tfund\\tthe\\trapid\\ngrowth\\tof\\tour\\tbusiness,\\tincluding\\tthrough\\tdrawdowns\\ton\\texisting\\tor\\tnew\\tdebt\\tfacilities\\tor\\tfinancing\\tfunds.\\tConversely,\\twe\\tmay\\talso\\tfrom\\ttime\\tto\\ttime\\ndetermine\\tthat\\tit\\tis\\tin\\tour\\tbest\\tinterests\\tto\\tvoluntarily\\trepay\\tcertain\\tindebtedness\\tearly.\\nAccordingly,\\twe\\tbelieve\\tthat\\tour\\tcurrent\\tsources\\tof\\tfunds\\twill\\tprovide\\tus\\twith\\tadequate\\tliquidity\\tduring\\tthe\\t12-month\\tperiod\\tfollowing\\tDecember\\t31,\\n2023,\\tas\\twell\\tas\\tin\\tthe\\tlong-term.\\nSee\\tthe\\tsections\\tbelow\\tfor\\tmore\\tdetails\\tregarding\\tthe\\tmaterial\\trequirements\\tfor\\tcash\\tin\\tour\\tbusiness\\tand\\tour\\tsources\\tof\\tliquidity\\tto\\tmeet\\tsuch\\nneeds.\\nMaterial\\tCash\\tRequirements\\nFrom\\ttime\\tto\\ttime\\tin\\tthe\\tordinary\\tcourse\\tof\\tbusiness,\\twe\\tenter\\tinto\\tagreements\\twith\\tvendors\\tfor\\tthe\\tpurchase\\tof\\tcomponents\\tand\\traw\\tmaterials\\tto\\nbe\\tused\\tin\\tthe\\tmanufacture\\tof\\tour\\tproducts.\\tHowever,\\tdue\\tto\\tcontractual\\tterms,\\tvariability\\tin\\tthe\\tprecise\\tgrowth\\tcurves\\tof\\tour\\tdevelopment\\tand\\nproduction\\tramps,\\tand\\topportunities\\tto\\trenegotiate\\tpricing,\\twe\\tgenerally\\tdo\\tnot\\thave\\tbinding\\tand\\tenforceable\\tpurchase\\torders\\tunder\\tsuch\\tcontracts\\nbeyond\\tthe\\tshort-term,\\tand\\tthe\\ttiming\\tand\\tmagnitude\\tof\\tpurchase\\torders\\tbeyond\\tsuch\\tperiod\\tis\\tdifficult\\tto\\taccurately\\tproject.\\nAs\\tdiscussed\\tin\\tand\\tsubject\\tto\\tthe\\tconsiderations\\treferenced\\tin\\tPart\\tII,\\tItem\\t7,\\tManagement's\\tDiscussion\\tand\\tAnalysis\\tof\\tFinancial\\tCondition\\tand\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 44,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 16\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Results\\tof\\tOperations—Management\\tOpportunities,\\tChallenges\\tand\\tUncertainties\\tand\\t2023\\tOutlook—Cash\\tFlow\\tand\\tCapital\\tExpenditure\\tTrends\\tin\\tthis\\nAnnual\\tReport\\ton\\tForm\\t10-K,\\twe\\tcurrently\\texpect\\tour\\tcapital\\texpenditures\\tto\\tsupport\\tour\\tprojects\\tglobally\\tto\\texceed\\t$10.00\\tbillion\\tin\\t2024\\tand\\tbe\\nbetween\\t$8.00\\tto\\t$10.00\\tbillion\\tin\\teach\\tof\\tthe\\tfollowing\\ttwo\\tfiscal\\tyears.\\tIn\\tconnection\\twith\\tour\\toperations\\tat\\tGigafactory\\tNew\\tYork,\\twe\\thave\\tan\\nagreement\\tto\\tspend\\tor\\tincur\\t$5.00\\tbillion\\tin\\tcombined\\tcapital,\\toperational\\texpenses,\\tcosts\\tof\\tgoods\\tsold\\tand\\tother\\tcosts\\tin\\tthe\\tState\\tof\\tNew\\tYork\\tthrough\\nDecember\\t31,\\t2029\\t(pursuant\\tto\\ta\\tdeferral\\tof\\tour\\trequired\\ttimelines\\tto\\tmeet\\tsuch\\tobligations\\tthat\\twas\\tgranted\\tin\\tApril\\t2021,\\tand\\twhich\\twas\\tmemorialized\\nin\\tan\\tamendment\\tto\\tour\\tagreement\\twith\\tthe\\tSUNY\\tFoundation\\tin\\tAugust\\t2021).\\tFor\\tdetails\\tregarding\\tthese\\tobligations,\\trefer\\tto\\tNote\\t15,\\tCommitments\\nand\\tContingencies,\\tto\\tthe\\tconsolidated\\tfinancial\\tstatements\\tincluded\\telsewhere\\tin\\tthis\\tAnnual\\tReport\\ton\\tForm\\t10-K.\\nAs\\tof\\tDecember\\t31,\\t2023,\\twe\\tand\\tour\\tsubsidiaries\\thad\\toutstanding\\t$4.68\\tbillion\\tin\\taggregate\\tprincipal\\tamount\\tof\\tindebtedness,\\tof\\twhich\\t$1.98\\nbillion\\tis\\tscheduled\\tto\\tbecome\\tdue\\tin\\tthe\\tsucceeding\\t12\\tmonths.\\tAs\\tof\\tDecember\\t31,\\t2023,\\tour\\ttotal\\tminimum\\tlease\\tpayments\\twas\\t$5.96\\tbillion,\\tof\\twhich\\n$1.31\\tbillion\\tis\\tdue\\tin\\tthe\\tsucceeding\\t12\\tmonths.\\tFor\\tdetails\\tregarding\\tour\\tindebtedness\\tand\\tlease\\tobligations,\\trefer\\tto\\tNote\\t11,\\tDebt,\\tand\\tNote\\t12,\\nLeases,\\tto\\tthe\\tconsolidated\\tfinancial\\tstatements\\tincluded\\telsewhere\\tin\\tthis\\tAnnual\\tReport\\ton\\tForm\\t10-K.\\nSources\\tand\\tConditions\\tof\\tLiquidity\\nOur\\tsources\\tto\\tfund\\tour\\tmaterial\\tcash\\trequirements\\tare\\tpredominantly\\tfrom\\tour\\tdeliveries\\tand\\tservicing\\tof\\tnew\\tand\\tused\\tvehicles,\\tsales\\tand\\ninstallations\\tof\\tour\\tenergy\\tstorage\\tproducts\\tand\\tsolar\\tenergy\\tsystems,\\tproceeds\\tfrom\\tdebt\\tfacilities\\tand\\tproceeds\\tfrom\\tequity\\tofferings,\\twhen\\tapplicable.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 44,\n        \"lines\": {\n          \"from\": 17,\n          \"to\": 30\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"As\\tof\\tDecember\\t31,\\t2023,\\twe\\thad\\t$16.40\\tbillion\\tand\\t$12.70\\tbillion\\tof\\tcash\\tand\\tcash\\tequivalents\\tand\\tshort-term\\tinvestments,\\trespectively.\\tBalances\\nheld\\tin\\tforeign\\tcurrencies\\thad\\ta\\tU.S.\\tdollar\\tequivalent\\tof\\t$4.43\\tbillion\\tand\\tconsisted\\tprimarily\\tof\\tChinese\\tyuan\\tand\\teuros.\\tWe\\thad\\t$5.03\\tbillion\\tof\\tunused\\ncommitted\\tcredit\\tamounts\\tas\\tof\\tDecember\\t31,\\t2023.\\tFor\\tdetails\\tregarding\\tour\\tindebtedness,\\trefer\\tto\\tNote\\t11,\\tDebt,\\tto\\tthe\\tconsolidated\\tfinancial\\nstatements\\tincluded\\telsewhere\\tin\\tthis\\tAnnual\\tReport\\ton\\tForm\\t10-K.\\nWe\\tcontinue\\tadapting\\tour\\tstrategy\\tto\\tmeet\\tour\\tliquidity\\tand\\trisk\\tobjectives,\\tsuch\\tas\\tinvesting\\tin\\tU.S.\\tgovernment\\tsecurities\\tand\\tother\\tinvestments,\\nto\\tdo\\tmore\\tvertical\\tintegration,\\texpand\\tour\\tproduct\\troadmap\\tand\\tprovide\\tfinancing\\toptions\\tto\\tour\\tcustomers.\\n43\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 44,\n        \"lines\": {\n          \"from\": 31,\n          \"to\": 37\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Summary\\tof\\tCash\\tFlows\\n\\tYear\\tEnded\\tDecember\\t31,\\n(Dollars\\tin\\tmillions)202320222021\\nNet\\tcash\\tprovided\\tby\\toperating\\tactivities$13,256\\t$14,724\\t$11,497\\t\\nNet\\tcash\\tused\\tin\\tinvesting\\tactivities$(15,584)$(11,973)$(7,868)\\nNet\\tcash\\tprovided\\tby\\t(used\\tin)\\tfinancing\\tactivities$2,589\\t$(3,527)$(5,203)\\nCash\\tFlows\\tfrom\\tOperating\\tActivities\\nOur\\tcash\\tflows\\tfrom\\toperating\\tactivities\\tare\\tsignificantly\\taffected\\tby\\tour\\tcash\\tinvestments\\tto\\tsupport\\tthe\\tgrowth\\tof\\tour\\tbusiness\\tin\\tareas\\tsuch\\tas\\nresearch\\tand\\tdevelopment\\tand\\tselling,\\tgeneral\\tand\\tadministrative\\tand\\tworking\\tcapital.\\tOur\\toperating\\tcash\\tinflows\\tinclude\\tcash\\tfrom\\tvehicle\\tsales\\tand\\nrelated\\tservicing,\\tcustomer\\tlease\\tand\\tfinancing\\tpayments,\\tcustomer\\tdeposits,\\tcash\\tfrom\\tsales\\tof\\tregulatory\\tcredits\\tand\\tenergy\\tgeneration\\tand\\tstorage\\nproducts,\\tand\\tinterest\\tincome\\ton\\tour\\tcash\\tand\\tinvestments\\tportfolio.\\tThese\\tcash\\tinflows\\tare\\toffset\\tby\\tour\\tpayments\\tto\\tsuppliers\\tfor\\tproduction\\tmaterials\\nand\\tparts\\tused\\tin\\tour\\tmanufacturing\\tprocess,\\toperating\\texpenses,\\toperating\\tlease\\tpayments\\tand\\tinterest\\tpayments\\ton\\tour\\tfinancings.\\nNet\\tcash\\tprovided\\tby\\toperating\\tactivities\\tdecreased\\tby\\t$1.47\\tbillion\\tto\\t$13.26\\tbillion\\tduring\\tthe\\tyear\\tended\\tDecember\\t31,\\t2023\\tfrom\\t$14.72\\tbillion\\nduring\\tthe\\tyear\\tended\\tDecember\\t31,\\t2022.\\tThis\\tdecrease\\twas\\tprimarily\\tdue\\tto\\tthe\\tdecrease\\tin\\tnet\\tincome\\texcluding\\tnon-cash\\texpenses,\\tgains\\tand\\tlosses\\nof\\t$2.93\\tbillion,\\tpartially\\toffset\\tby\\tfavorable\\tchanges\\tin\\tnet\\toperating\\tassets\\tand\\tliabilities\\tof\\t$1.46\\tbillion.\\nCash\\tFlows\\tfrom\\tInvesting\\tActivities\\nCash\\tflows\\tfrom\\tinvesting\\tactivities\\tand\\ttheir\\tvariability\\tacross\\teach\\tperiod\\trelated\\tprimarily\\tto\\tcapital\\texpenditures,\\twhich\\twere\\t$8.90\\tbillion\\tfor\\tthe\\nyear\\tended\\tDecember\\t31,\\t2023\\tand\\t$7.16\\tbillion\\tfor\\tthe\\tyear\\tended\\tDecember\\t31,\\t2022,\\tmainly\\tfor\\tglobal\\tfactory\\texpansion\\tand\\tmachinery\\tand\\nequipment\\tas\\twe\\texpand\\tour\\tproduct\\troadmap.\\tWe\\talso\\tpurchased\\t$6.62\\tbillion\\tand\\t$5.81\\tbillion\\tof\\tinvestments,\\tnet\\tof\\tproceeds\\tfrom\\tmaturities\\tand\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 45,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 19\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"sales,\\tfor\\tthe\\tyear\\tended\\tDecember\\t31,\\t2023\\tand\\t2022,\\trespectively.\\tAdditionally,\\tproceeds\\tfrom\\tsales\\tof\\tdigital\\tassets\\twas\\t$936\\tmillion\\tin\\tthe\\tyear\\nended\\tDecember\\t31,\\t2022.\\nCash\\tFlows\\tfrom\\tFinancing\\tActivities\\nNet\\tcash\\tfrom\\tfinancing\\tactivities\\tchanged\\tby\\t$6.12\\tbillion\\tto\\t$2.59\\tbillion\\tnet\\tcash\\tprovided\\tby\\tfinancing\\tactivities\\tduring\\tthe\\tyear\\tended\\nDecember\\t31,\\t2023\\tfrom\\t$3.53\\tbillion\\tnet\\tcash\\tused\\tin\\tfinancing\\tactivities\\tduring\\tthe\\tyear\\tended\\tDecember\\t31,\\t2022.\\tThe\\tchange\\twas\\tprimarily\\tdue\\tto\\ta\\n$3.93\\tbillion\\tincrease\\tin\\tproceeds\\tfrom\\tissuances\\tof\\tdebt\\tand\\ta\\t$2.01\\tbillion\\tdecrease\\tin\\trepayments\\tof\\tdebt.\\tSee\\tNote\\t11,\\tDebt,\\tto\\tthe\\tconsolidated\\nfinancial\\tstatements\\tincluded\\telsewhere\\tin\\tthis\\tAnnual\\tReport\\ton\\tForm\\t10-K\\tfor\\tfurther\\tdetails\\tregarding\\tour\\tdebt\\tobligations.\\nRecent\\tAccounting\\tPronouncements\\nSee\\tNote\\t2,\\tSummary\\tof\\tSignificant\\tAccounting\\tPolicies,\\tto\\tthe\\tconsolidated\\tfinancial\\tstatements\\tincluded\\telsewhere\\tin\\tthis\\tAnnual\\tReport\\ton\\tForm\\n10-K.\\n44\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 45,\n        \"lines\": {\n          \"from\": 20,\n          \"to\": 30\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"ITEM\\t7A.\\tQUANTITATIVE\\tAND\\tQUALITATIVE\\tDISCLOSURES\\tABOUT\\tMARKET\\tRISK\\nForeign\\tCurrency\\tRisk\\nWe\\ttransact\\tbusiness\\tglobally\\tin\\tmultiple\\tcurrencies\\tand\\thence\\thave\\tforeign\\tcurrency\\trisks\\trelated\\tto\\tour\\trevenue,\\tcosts\\tof\\trevenue\\tand\\toperating\\nexpenses\\tdenominated\\tin\\tcurrencies\\tother\\tthan\\tthe\\tU.S.\\tdollar\\t(primarily\\tthe\\tChinese\\tyuan\\tand\\teuro\\tin\\trelation\\tto\\tour\\tcurrent\\tyear\\toperations).\\tIn\\tgeneral,\\nwe\\tare\\ta\\tnet\\treceiver\\tof\\tcurrencies\\tother\\tthan\\tthe\\tU.S.\\tdollar\\tfor\\tour\\tforeign\\tsubsidiaries.\\tAccordingly,\\tchanges\\tin\\texchange\\trates\\taffect\\tour\\toperating\\nresults\\tas\\texpressed\\tin\\tU.S.\\tdollars\\tas\\twe\\tdo\\tnot\\ttypically\\thedge\\tforeign\\tcurrency\\trisk.\\nWe\\thave\\talso\\texperienced,\\tand\\twill\\tcontinue\\tto\\texperience,\\tfluctuations\\tin\\tour\\tnet\\tincome\\tas\\ta\\tresult\\tof\\tgains\\t(losses)\\ton\\tthe\\tsettlement\\tand\\tthe\\tre-\\nmeasurement\\tof\\tmonetary\\tassets\\tand\\tliabilities\\tdenominated\\tin\\tcurrencies\\tthat\\tare\\tnot\\tthe\\tlocal\\tcurrency\\t(primarily\\tconsisting\\tof\\tour\\tintercompany\\tand\\ncash\\tand\\tcash\\tequivalents\\tbalances).\\nWe\\tconsidered\\tthe\\thistorical\\ttrends\\tin\\tforeign\\tcurrency\\texchange\\trates\\tand\\tdetermined\\tthat\\tit\\tis\\treasonably\\tpossible\\tthat\\tadverse\\tchanges\\tin\\tforeign\\ncurrency\\texchange\\trates\\tof\\t10%\\tfor\\tall\\tcurrencies\\tcould\\tbe\\texperienced\\tin\\tthe\\tnear-term.\\tThese\\tchanges\\twere\\tapplied\\tto\\tour\\ttotal\\tmonetary\\tassets\\tand\\nliabilities\\tdenominated\\tin\\tcurrencies\\tother\\tthan\\tour\\tlocal\\tcurrencies\\tat\\tthe\\tbalance\\tsheet\\tdate\\tto\\tcompute\\tthe\\timpact\\tthese\\tchanges\\twould\\thave\\thad\\ton\\nour\\tnet\\tincome\\tbefore\\tincome\\ttaxes.\\tThese\\tchanges\\twould\\thave\\tresulted\\tin\\ta\\tgain\\tor\\tloss\\tof\\t$1.01\\tbillion\\tat\\tDecember\\t31,\\t2023\\tand\\t$473\\tmillion\\tat\\nDecember\\t31,\\t2022,\\tassuming\\tno\\tforeign\\tcurrency\\thedging.\\n45\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 46,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 15\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"ITEM\\t8.\\tFINANCIAL\\tSTATEMENTS\\tAND\\tSUPPLEMENTARY\\tDATA\\nIndex\\tto\\tConsolidated\\tFinancial\\tStatements\\nPage\\nReport\\tof\\tIndependent\\tRegistered\\tPublic\\tAccounting\\tFirm\\t(PCAOB\\tID:\\t238)47\\nConsolidated\\tBalance\\tSheets49\\nConsolidated\\tStatements\\tof\\tOperations50\\nConsolidated\\tStatements\\tof\\tComprehensive\\tIncome51\\nConsolidated\\tStatements\\tof\\tRedeemable\\tNoncontrolling\\tInterests\\tand\\tEquity52\\nConsolidated\\tStatements\\tof\\tCash\\tFlows53\\nNotes\\tto\\tConsolidated\\tFinancial\\tStatements54\\n46\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 47,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 11\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Report\\tof\\tIndependent\\tRegistered\\tPublic\\tAccounting\\tFirm\\nTo\\tthe\\tBoard\\tof\\tDirectors\\tand\\tStockholders\\tof\\tTesla,\\tInc.\\nOpinions\\ton\\tthe\\tFinancial\\tStatements\\tand\\tInternal\\tControl\\tover\\tFinancial\\tReporting\\nWe\\thave\\taudited\\tthe\\taccompanying\\tconsolidated\\tbalance\\tsheets\\tof\\tTesla,\\tInc.\\tand\\tits\\tsubsidiaries\\t(the\\t“Company”)\\tas\\tof\\tDecember\\t31,\\t2023\\tand\\t2022,\\nand\\tthe\\trelated\\tconsolidated\\tstatements\\tof\\toperations,\\tof\\tcomprehensive\\tincome,\\tof\\tredeemable\\tnoncontrolling\\tinterests\\tand\\tequity\\tand\\tof\\tcash\\tflows\\tfor\\neach\\tof\\tthe\\tthree\\tyears\\tin\\tthe\\tperiod\\tended\\tDecember\\t31,\\t2023,\\tincluding\\tthe\\trelated\\tnotes\\t(collectively\\treferred\\tto\\tas\\tthe\\t“consolidated\\tfinancial\\nstatements”).\\tWe\\talso\\thave\\taudited\\tthe\\tCompany's\\tinternal\\tcontrol\\tover\\tfinancial\\treporting\\tas\\tof\\tDecember\\t31,\\t2023,\\tbased\\ton\\tcriteria\\testablished\\tin\\nInternal\\tControl\\t-\\tIntegrated\\tFramework\\t(2013)\\tissued\\tby\\tthe\\tCommittee\\tof\\tSponsoring\\tOrganizations\\tof\\tthe\\tTreadway\\tCommission\\t(COSO).\\nIn\\tour\\topinion,\\tthe\\tconsolidated\\tfinancial\\tstatements\\treferred\\tto\\tabove\\tpresent\\tfairly,\\tin\\tall\\tmaterial\\trespects,\\tthe\\tfinancial\\tposition\\tof\\tthe\\tCompany\\tas\\tof\\nDecember\\t31,\\t2023\\tand\\t2022,\\tand\\tthe\\tresults\\tof\\tits\\toperations\\tand\\tits\\tcash\\tflows\\tfor\\teach\\tof\\tthe\\tthree\\tyears\\tin\\tthe\\tperiod\\tended\\tDecember\\t31,\\t2023\\tin\\nconformity\\twith\\taccounting\\tprinciples\\tgenerally\\taccepted\\tin\\tthe\\tUnited\\tStates\\tof\\tAmerica.\\tAlso\\tin\\tour\\topinion,\\tthe\\tCompany\\tmaintained,\\tin\\tall\\tmaterial\\nrespects,\\teffective\\tinternal\\tcontrol\\tover\\tfinancial\\treporting\\tas\\tof\\tDecember\\t31,\\t2023,\\tbased\\ton\\tcriteria\\testablished\\tin\\tInternal\\tControl\\t-\\tIntegrated\\nFramework\\t(2013)\\tissued\\tby\\tthe\\tCOSO.\\nChanges\\tin\\tAccounting\\tPrinciples\\nAs\\tdiscussed\\tin\\tNote\\t2\\tto\\tthe\\tconsolidated\\tfinancial\\tstatements,\\tthe\\tCompany\\tchanged\\tthe\\tmanner\\tin\\twhich\\tit\\taccounts\\tfor\\tconvertible\\tdebt\\tin\\t2021.\\nBasis\\tfor\\tOpinions\\nThe\\tCompany's\\tmanagement\\tis\\tresponsible\\tfor\\tthese\\tconsolidated\\tfinancial\\tstatements,\\tfor\\tmaintaining\\teffective\\tinternal\\tcontrol\\tover\\tfinancial\\treporting,\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 48,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 17\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"and\\tfor\\tits\\tassessment\\tof\\tthe\\teffectiveness\\tof\\tinternal\\tcontrol\\tover\\tfinancial\\treporting,\\tincluded\\tin\\tManagement’s\\tReport\\ton\\tInternal\\tControl\\tover\\tFinancial\\nReporting\\tappearing\\tunder\\tItem\\t9A.\\tOur\\tresponsibility\\tis\\tto\\texpress\\topinions\\ton\\tthe\\tCompany’s\\tconsolidated\\tfinancial\\tstatements\\tand\\ton\\tthe\\tCompany's\\ninternal\\tcontrol\\tover\\tfinancial\\treporting\\tbased\\ton\\tour\\taudits.\\tWe\\tare\\ta\\tpublic\\taccounting\\tfirm\\tregistered\\twith\\tthe\\tPublic\\tCompany\\tAccounting\\tOversight\\nBoard\\t(United\\tStates)\\t(PCAOB)\\tand\\tare\\trequired\\tto\\tbe\\tindependent\\twith\\trespect\\tto\\tthe\\tCompany\\tin\\taccordance\\twith\\tthe\\tU.S.\\tfederal\\tsecurities\\tlaws\\tand\\nthe\\tapplicable\\trules\\tand\\tregulations\\tof\\tthe\\tSecurities\\tand\\tExchange\\tCommission\\tand\\tthe\\tPCAOB.\\nWe\\tconducted\\tour\\taudits\\tin\\taccordance\\twith\\tthe\\tstandards\\tof\\tthe\\tPCAOB.\\tThose\\tstandards\\trequire\\tthat\\twe\\tplan\\tand\\tperform\\tthe\\taudits\\tto\\tobtain\\nreasonable\\tassurance\\tabout\\twhether\\tthe\\tconsolidated\\tfinancial\\tstatements\\tare\\tfree\\tof\\tmaterial\\tmisstatement,\\twhether\\tdue\\tto\\terror\\tor\\tfraud,\\tand\\twhether\\neffective\\tinternal\\tcontrol\\tover\\tfinancial\\treporting\\twas\\tmaintained\\tin\\tall\\tmaterial\\trespects.\\nOur\\taudits\\tof\\tthe\\tconsolidated\\tfinancial\\tstatements\\tincluded\\tperforming\\tprocedures\\tto\\tassess\\tthe\\trisks\\tof\\tmaterial\\tmisstatement\\tof\\tthe\\tconsolidated\\nfinancial\\tstatements,\\twhether\\tdue\\tto\\terror\\tor\\tfraud,\\tand\\tperforming\\tprocedures\\tthat\\trespond\\tto\\tthose\\trisks.\\tSuch\\tprocedures\\tincluded\\texamining,\\ton\\ta\\ntest\\tbasis,\\tevidence\\tregarding\\tthe\\tamounts\\tand\\tdisclosures\\tin\\tthe\\tconsolidated\\tfinancial\\tstatements.\\tOur\\taudits\\talso\\tincluded\\tevaluating\\tthe\\taccounting\\nprinciples\\tused\\tand\\tsignificant\\testimates\\tmade\\tby\\tmanagement,\\tas\\twell\\tas\\tevaluating\\tthe\\toverall\\tpresentation\\tof\\tthe\\tconsolidated\\tfinancial\\tstatements.\\nOur\\taudit\\tof\\tinternal\\tcontrol\\tover\\tfinancial\\treporting\\tincluded\\tobtaining\\tan\\tunderstanding\\tof\\tinternal\\tcontrol\\tover\\tfinancial\\treporting,\\tassessing\\tthe\\trisk\\nthat\\ta\\tmaterial\\tweakness\\texists,\\tand\\ttesting\\tand\\tevaluating\\tthe\\tdesign\\tand\\toperating\\teffectiveness\\tof\\tinternal\\tcontrol\\tbased\\ton\\tthe\\tassessed\\trisk.\\tOur\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 48,\n        \"lines\": {\n          \"from\": 18,\n          \"to\": 31\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"audits\\talso\\tincluded\\tperforming\\tsuch\\tother\\tprocedures\\tas\\twe\\tconsidered\\tnecessary\\tin\\tthe\\tcircumstances.\\tWe\\tbelieve\\tthat\\tour\\taudits\\tprovide\\ta\\treasonable\\nbasis\\tfor\\tour\\topinions.\\n47\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 48,\n        \"lines\": {\n          \"from\": 32,\n          \"to\": 34\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Definition\\tand\\tLimitations\\tof\\tInternal\\tControl\\tover\\tFinancial\\tReporting\\nA\\tcompany’s\\tinternal\\tcontrol\\tover\\tfinancial\\treporting\\tis\\ta\\tprocess\\tdesigned\\tto\\tprovide\\treasonable\\tassurance\\tregarding\\tthe\\treliability\\tof\\tfinancial\\treporting\\nand\\tthe\\tpreparation\\tof\\tfinancial\\tstatements\\tfor\\texternal\\tpurposes\\tin\\taccordance\\twith\\tgenerally\\taccepted\\taccounting\\tprinciples.\\tA\\tcompany’s\\tinternal\\ncontrol\\tover\\tfinancial\\treporting\\tincludes\\tthose\\tpolicies\\tand\\tprocedures\\tthat\\t(i)\\tpertain\\tto\\tthe\\tmaintenance\\tof\\trecords\\tthat,\\tin\\treasonable\\tdetail,\\taccurately\\nand\\tfairly\\treflect\\tthe\\ttransactions\\tand\\tdispositions\\tof\\tthe\\tassets\\tof\\tthe\\tcompany;\\t(ii)\\tprovide\\treasonable\\tassurance\\tthat\\ttransactions\\tare\\trecorded\\tas\\nnecessary\\tto\\tpermit\\tpreparation\\tof\\tfinancial\\tstatements\\tin\\taccordance\\twith\\tgenerally\\taccepted\\taccounting\\tprinciples,\\tand\\tthat\\treceipts\\tand\\texpenditures\\nof\\tthe\\tcompany\\tare\\tbeing\\tmade\\tonly\\tin\\taccordance\\twith\\tauthorizations\\tof\\tmanagement\\tand\\tdirectors\\tof\\tthe\\tcompany;\\tand\\t(iii)\\tprovide\\treasonable\\nassurance\\tregarding\\tprevention\\tor\\ttimely\\tdetection\\tof\\tunauthorized\\tacquisition,\\tuse,\\tor\\tdisposition\\tof\\tthe\\tcompany’s\\tassets\\tthat\\tcould\\thave\\ta\\tmaterial\\neffect\\ton\\tthe\\tfinancial\\tstatements.\\nBecause\\tof\\tits\\tinherent\\tlimitations,\\tinternal\\tcontrol\\tover\\tfinancial\\treporting\\tmay\\tnot\\tprevent\\tor\\tdetect\\tmisstatements.\\tAlso,\\tprojections\\tof\\tany\\tevaluation\\nof\\teffectiveness\\tto\\tfuture\\tperiods\\tare\\tsubject\\tto\\tthe\\trisk\\tthat\\tcontrols\\tmay\\tbecome\\tinadequate\\tbecause\\tof\\tchanges\\tin\\tconditions,\\tor\\tthat\\tthe\\tdegree\\tof\\ncompliance\\twith\\tthe\\tpolicies\\tor\\tprocedures\\tmay\\tdeteriorate.\\nCritical\\tAudit\\tMatters\\nThe\\tcritical\\taudit\\tmatter\\tcommunicated\\tbelow\\tis\\ta\\tmatter\\tarising\\tfrom\\tthe\\tcurrent\\tperiod\\taudit\\tof\\tthe\\tconsolidated\\tfinancial\\tstatements\\tthat\\twas\\ncommunicated\\tor\\trequired\\tto\\tbe\\tcommunicated\\tto\\tthe\\taudit\\tcommittee\\tand\\tthat\\t(i)\\trelates\\tto\\taccounts\\tor\\tdisclosures\\tthat\\tare\\tmaterial\\tto\\tthe\\tconsolidated\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 49,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 15\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"financial\\tstatements\\tand\\t(ii)\\tinvolved\\tour\\tespecially\\tchallenging,\\tsubjective,\\tor\\tcomplex\\tjudgments.\\tThe\\tcommunication\\tof\\tcritical\\taudit\\tmatters\\tdoes\\tnot\\nalter\\tin\\tany\\tway\\tour\\topinion\\ton\\tthe\\tconsolidated\\tfinancial\\tstatements,\\ttaken\\tas\\ta\\twhole,\\tand\\twe\\tare\\tnot,\\tby\\tcommunicating\\tthe\\tcritical\\taudit\\tmatter\\tbelow,\\nproviding\\ta\\tseparate\\topinion\\ton\\tthe\\tcritical\\taudit\\tmatter\\tor\\ton\\tthe\\taccounts\\tor\\tdisclosures\\tto\\twhich\\tit\\trelates.\\nAutomotive\\tWarranty\\tReserve\\nAs\\tdescribed\\tin\\tNote\\t2\\tto\\tthe\\tconsolidated\\tfinancial\\tstatements,\\ttotal\\taccrued\\twarranty,\\twhich\\tprimarily\\trelates\\tto\\tthe\\tautomotive\\tsegment,\\twas\\t$5,152\\nmillion\\tas\\tof\\tDecember\\t31,\\t2023.\\tThe\\tCompany\\tprovides\\ta\\tmanufacturer’s\\twarranty\\ton\\tall\\tnew\\tand\\tused\\tTesla\\tvehicles.\\tA\\twarranty\\treserve\\tis\\taccrued\\tfor\\nthese\\tproducts\\tsold,\\twhich\\tincludes\\tmanagement’s\\tbest\\testimate\\tof\\tthe\\tprojected\\tcosts\\tto\\trepair\\tor\\treplace\\titems\\tunder\\twarranty\\tand\\trecalls\\tif\\tidentified.\\nThese\\testimates\\tare\\tbased\\ton\\tactual\\tclaims\\tincurred\\tto\\tdate\\tand\\tan\\testimate\\tof\\tthe\\tnature,\\tfrequency\\tand\\tcosts\\tof\\tfuture\\tclaims.\\nThe\\tprincipal\\tconsiderations\\tfor\\tour\\tdetermination\\tthat\\tperforming\\tprocedures\\trelating\\tto\\tthe\\tautomotive\\twarranty\\treserve\\tis\\ta\\tcritical\\taudit\\tmatter\\tare\\nthe\\tsignificant\\tjudgment\\tby\\tmanagement\\tin\\tdetermining\\tthe\\tautomotive\\twarranty\\treserve\\tfor\\tcertain\\tTesla\\tvehicle\\tmodels;\\tthis\\tin\\tturn\\tled\\tto\\tsignificant\\nauditor\\tjudgment,\\tsubjectivity,\\tand\\teffort\\tin\\tperforming\\tprocedures\\tto\\tevaluate\\tmanagement’s\\tsignificant\\tassumptions\\trelated\\tto\\tthe\\tnature,\\tfrequency\\nand\\tcosts\\tof\\tfuture\\tclaims\\tfor\\tcertain\\tTesla\\tvehicle\\tmodels,\\tand\\tthe\\taudit\\teffort\\tinvolved\\tthe\\tuse\\tof\\tprofessionals\\twith\\tspecialized\\tskill\\tand\\tknowledge.\\nAddressing\\tthe\\tmatter\\tinvolved\\tperforming\\tprocedures\\tand\\tevaluating\\taudit\\tevidence\\tin\\tconnection\\twith\\tforming\\tour\\toverall\\topinion\\ton\\tthe\\tconsolidated\\nfinancial\\tstatements.\\tThese\\tprocedures\\tincluded\\ttesting\\tthe\\teffectiveness\\tof\\tcontrols\\trelating\\tto\\tmanagement’s\\testimate\\tof\\tthe\\tautomotive\\twarranty\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 49,\n        \"lines\": {\n          \"from\": 16,\n          \"to\": 29\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"reserve\\tfor\\tcertain\\tTesla\\tvehicle\\tmodels,\\tincluding\\tcontrols\\tover\\tmanagement’s\\tsignificant\\tassumptions\\trelated\\tto\\tthe\\tnature,\\tfrequency\\tand\\tcosts\\tof\\nfuture\\tclaims\\tas\\twell\\tas\\tthe\\tcompleteness\\tand\\taccuracy\\tof\\tactual\\tclaims\\tincurred\\tto\\tdate.\\tThese\\tprocedures\\talso\\tincluded,\\tamong\\tothers,\\tperforming\\tone\\nof\\tthe\\tfollowing:\\t(i)\\ttesting\\tmanagement’s\\tprocess\\tfor\\tdetermining\\tthe\\tautomotive\\twarranty\\treserve\\tfor\\tcertain\\tTesla\\tvehicle\\tmodels\\tor\\t(ii)\\tdeveloping\\tan\\nindependent\\testimate\\tof\\tthe\\tautomotive\\twarranty\\treserve\\tfor\\tcertain\\tTesla\\tvehicle\\tmodels\\tand\\tcomparing\\tthe\\tindependent\\testimate\\tto\\tmanagement’s\\nestimate\\tto\\tevaluate\\tthe\\treasonableness\\tof\\tthe\\testimate.\\tTesting\\tmanagement’s\\tprocess\\tinvolved\\tevaluating\\tthe\\treasonableness\\tof\\tsignificant\\nassumptions\\trelated\\tto\\tthe\\tnature\\tand\\tfrequency\\tof\\tfuture\\tclaims\\tand\\tthe\\trelated\\tcosts\\tto\\trepair\\tor\\treplace\\titems\\tunder\\twarranty.\\tEvaluating\\tthe\\nassumptions\\trelated\\tto\\tthe\\tnature\\tand\\tfrequency\\tof\\tfuture\\tclaims\\tand\\tthe\\trelated\\tcosts\\tto\\trepair\\tor\\treplace\\titems\\tunder\\twarranty\\tinvolved\\tevaluating\\nwhether\\tthe\\tassumptions\\tused\\twere\\treasonable\\tby\\tperforming\\ta\\tlookback\\tanalysis\\tcomparing\\tprior\\tperiod\\tforecasted\\tclaims\\tto\\tactual\\tclaims\\tincurred.\\nDeveloping\\tthe\\tindependent\\testimate\\tinvolved\\ttesting\\tthe\\tcompleteness\\tand\\taccuracy\\tof\\thistorical\\tvehicle\\tclaims\\tprocessed\\tand\\ttesting\\tthat\\tsuch\\tclaims\\nwere\\tappropriately\\tused\\tby\\tmanagement\\tin\\tthe\\testimation\\tof\\tfuture\\tclaims.\\tProfessionals\\twith\\tspecialized\\tskill\\tand\\tknowledge\\twere\\tused\\tto\\tassist\\tin\\ndeveloping\\tan\\tindependent\\testimate\\tof\\tthe\\tautomotive\\twarranty\\treserve\\tfor\\tcertain\\tTesla\\tvehicle\\tmodels\\tand\\tin\\tevaluating\\tthe\\tappropriateness\\tof\\tcertain\\naspects\\tof\\tmanagement’s\\tsignificant\\tassumptions\\trelated\\tto\\tthe\\tnature\\tand\\tfrequency\\tof\\tfuture\\tclaims.\\n/s/\\tPricewaterhouseCoopers\\tLLP\\nSan\\tJose,\\tCalifornia\\nJanuary\\t26,\\t2024\\nWe\\thave\\tserved\\tas\\tthe\\tCompany’s\\tauditor\\tsince\\t2005.\\n48\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 49,\n        \"lines\": {\n          \"from\": 30,\n          \"to\": 46\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Tesla,\\tInc.\\nConsolidated\\tBalance\\tSheets\\n(in\\tmillions,\\texcept\\tper\\tshare\\tdata)\\nDecember\\t31,\\n2023\\nDecember\\t31,\\n2022\\nAssets\\nCurrent\\tassets\\nCash\\tand\\tcash\\tequivalents$16,398\\t$16,253\\t\\nShort-term\\tinvestments12,696\\t5,932\\t\\nAccounts\\treceivable,\\tnet3,508\\t2,952\\t\\nInventory13,626\\t12,839\\t\\nPrepaid\\texpenses\\tand\\tother\\tcurrent\\tassets3,388\\t2,941\\t\\nTotal\\tcurrent\\tassets49,616\\t40,917\\t\\nOperating\\tlease\\tvehicles,\\tnet5,989\\t5,035\\t\\nSolar\\tenergy\\tsystems,\\tnet5,229\\t5,489\\t\\nProperty,\\tplant\\tand\\tequipment,\\tnet29,725\\t23,548\\t\\nOperating\\tlease\\tright-of-use\\tassets4,180\\t2,563\\t\\nDigital\\tassets,\\tnet184\\t184\\t\\nIntangible\\tassets,\\tnet178\\t215\\t\\nGoodwill253\\t194\\t\\nDeferred\\ttax\\tassets6,733\\t328\\t\\nOther\\tnon-current\\tassets4,531\\t3,865\\t\\nTotal\\tassets\\n$106,618\\t$82,338\\t\\nLiabilities\\nCurrent\\tliabilities\\nAccounts\\tpayable$14,431\\t$15,255\\t\\nAccrued\\tliabilities\\tand\\tother9,080\\t8,205\\t\\nDeferred\\trevenue2,864\\t1,747\\t\\nCurrent\\tportion\\tof\\tdebt\\tand\\tfinance\\tleases2,373\\t1,502\\t\\nTotal\\tcurrent\\tliabilities28,748\\t26,709\\t\\nDebt\\tand\\tfinance\\tleases,\\tnet\\tof\\tcurrent\\tportion2,857\\t1,597\\t\\nDeferred\\trevenue,\\tnet\\tof\\tcurrent\\tportion3,251\\t2,804\\t\\nOther\\tlong-term\\tliabilities8,153\\t5,330\\t\\nTotal\\tliabilities43,009\\t36,440\\t\\nCommitments\\tand\\tcontingencies\\t(Note\\t15)\\nRedeemable\\tnoncontrolling\\tinterests\\tin\\tsubsidiaries242\\t409\\t\\nEquity\\nStockholders’\\tequity\\nPreferred\\tstock;\\t$0.001\\tpar\\tvalue;\\t100\\tshares\\tauthorized;\\tno\\tshares\\tissued\\tand\\toutstanding—\\t—\\t\\nCommon\\tstock;\\t$0.001\\tpar\\tvalue;\\t6,000\\tshares\\tauthorized;\\t3,185\\tand\\t3,164\\tshares\\tissued\\tand\\toutstanding\\tas\\tof\\nDecember\\t31,\\t2023\\tand\\t2022,\\trespectively3\\t3\\t\\nAdditional\\tpaid-in\\tcapital34,892\\t32,177\\t\\nAccumulated\\tother\\tcomprehensive\\tloss(143)(361)\\nRetained\\tearnings27,882\\t12,885\\t\\nTotal\\tstockholders’\\tequity62,634\\t44,704\\t\\nNoncontrolling\\tinterests\\tin\\tsubsidiaries733\\t785\\t\\nTotal\\tliabilities\\tand\\tequity\\n$106,618\\t$82,338\\t\\nThe\\taccompanying\\tnotes\\tare\\tan\\tintegral\\tpart\\tof\\tthese\\tconsolidated\\tfinancial\\tstatements.\\n49\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 50,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 53\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Tesla,\\tInc.\\nConsolidated\\tStatements\\tof\\tOperations\\n(in\\tmillions,\\texcept\\tper\\tshare\\tdata)\\nYear\\tEnded\\tDecember\\t31,\\n202320222021\\nRevenues\\nAutomotive\\tsales$78,509\\t$67,210\\t$44,125\\t\\nAutomotive\\tregulatory\\tcredits1,790\\t1,776\\t1,465\\t\\nAutomotive\\tleasing2,120\\t2,476\\t1,642\\t\\nTotal\\tautomotive\\trevenues\\n82,419\\t71,462\\t47,232\\t\\nEnergy\\tgeneration\\tand\\tstorage6,035\\t3,909\\t2,789\\t\\nServices\\tand\\tother8,319\\t6,091\\t3,802\\t\\nTotal\\trevenues\\n96,773\\t81,462\\t53,823\\t\\nCost\\tof\\trevenues\\nAutomotive\\tsales65,121\\t49,599\\t32,415\\t\\nAutomotive\\tleasing1,268\\t1,509\\t978\\t\\nTotal\\tautomotive\\tcost\\tof\\trevenues\\n66,389\\t51,108\\t33,393\\t\\nEnergy\\tgeneration\\tand\\tstorage4,894\\t3,621\\t2,918\\t\\nServices\\tand\\tother7,830\\t5,880\\t3,906\\t\\nTotal\\tcost\\tof\\trevenues\\n79,113\\t60,609\\t40,217\\t\\nGross\\tprofit\\n17,660\\t20,853\\t13,606\\t\\nOperating\\texpenses\\nResearch\\tand\\tdevelopment3,969\\t3,075\\t2,593\\t\\nSelling,\\tgeneral\\tand\\tadministrative4,800\\t3,946\\t4,517\\t\\nRestructuring\\tand\\tother—\\t176\\t(27)\\nTotal\\toperating\\texpenses\\n8,769\\t7,197\\t7,083\\t\\nIncome\\tfrom\\toperations8,891\\t13,656\\t6,523\\t\\nInterest\\tincome1,066\\t297\\t56\\t\\nInterest\\texpense(156)(191)(371)\\nOther\\tincome\\t(expense),\\tnet172\\t(43)135\\t\\nIncome\\tbefore\\tincome\\ttaxes9,973\\t13,719\\t6,343\\t\\n(Benefit\\tfrom)\\tprovision\\tfor\\tincome\\ttaxes(5,001)1,132\\t699\\t\\nNet\\tincome14,974\\t12,587\\t5,644\\t\\nNet\\t(loss)\\tincome\\tattributable\\tto\\tnoncontrolling\\tinterests\\tand\\tredeemable\\tnoncontrolling\\tinterests\\nin\\tsubsidiaries(23)31\\t125\\t\\nNet\\tincome\\tattributable\\tto\\tcommon\\tstockholders\\n$14,997\\t$12,556\\t$5,519\\t\\n\\t\\nNet\\tincome\\tper\\tshare\\tof\\tcommon\\tstock\\tattributable\\tto\\tcommon\\tstockholders\\nBasic$4.73\\t$4.02\\t$1.87\\t\\nDiluted\\n$4.30\\t$3.62\\t$1.63\\t\\nWeighted\\taverage\\tshares\\tused\\tin\\tcomputing\\tnet\\tincome\\tper\\tshare\\tof\\tcommon\\tstock\\nBasic3,1743,1302,959\\nDiluted\\n3,4853,4753,386\\nThe\\taccompanying\\tnotes\\tare\\tan\\tintegral\\tpart\\tof\\tthese\\tconsolidated\\tfinancial\\tstatements.\\n50\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 51,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 54\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Tesla,\\tInc.\\nConsolidated\\tStatements\\tof\\tComprehensive\\tIncome\\n(in\\tmillions)\\nYear\\tEnded\\tDecember\\t31,\\n202320222021\\nNet\\tincome$14,974\\t$12,587\\t$5,644\\t\\nOther\\tcomprehensive\\tincome\\t(loss):\\nForeign\\tcurrency\\ttranslation\\tadjustment198\\t(392)(308)\\nUnrealized\\tnet\\tgain\\t(loss)\\ton\\tinvestments16\\t(23)(1)\\nAdjustment\\tfor\\tnet\\tloss\\trealized\\tand\\tincluded\\tin\\tnet\\tincome\\t\\t\\t\\t4\\t—\\t—\\t\\nComprehensive\\tincome15,192\\t12,172\\t5,335\\t\\nLess:\\tComprehensive\\t(loss)\\tincome\\tattributable\\tto\\tnoncontrolling\\tinterests\\tand\\nredeemable\\tnoncontrolling\\tinterests\\tin\\tsubsidiaries(23)31\\t125\\t\\nComprehensive\\tincome\\tattributable\\tto\\tcommon\\tstockholders\\n$15,215\\t$12,141\\t$5,210\\t\\nThe\\taccompanying\\tnotes\\tare\\tan\\tintegral\\tpart\\tof\\tthese\\tconsolidated\\tfinancial\\tstatements.\\n51\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 52,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 17\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Tesla,\\tInc.\\nConsolidated\\tStatements\\tof\\tRedeemable\\tNoncontrolling\\tInterests\\tand\\tEquity\\n(in\\tmillions)\\nRedeemable\\nNoncontrolling\\nInterests\\nCommon\\tStock\\nAdditional\\nPaid-In\\nCapital\\nAccumulated\\nOther\\nComprehensive\\nIncome\\t(Loss)\\n(Accumulated\\nDeficit)\\nRetained\\nEarnings\\nTotal\\nStockholders’\\nEquity\\nNoncontrolling\\nInterests\\tin\\nSubsidiaries\\nTotal\\nEquitySharesAmount\\nBalance\\tas\\tof\\tDecember\\t31,\\t2020\\n$604\\t2,879$3\\t$27,260\\t$363\\t$(5,401)$22,225\\t$850\\t$23,075\\t\\nAdjustments\\tfor\\tprior\\tperiods\\tfrom\\tadopting\\tASU\\t2020-06—\\t——\\t(474)—\\t211\\t(263)—\\t(263)\\nExercises\\tof\\tconversion\\tfeature\\tof\\tconvertible\\tsenior\\tnotes—\\t2—\\t6\\t—\\t—\\t6\\t—\\t6\\t\\nSettlements\\tof\\twarrants—\\t112—\\t—\\t—\\t—\\t—\\t—\\t—\\t\\nIssuance\\tof\\tcommon\\tstock\\tfor\\tequity\\tincentive\\tawards—\\t107—\\t707\\t—\\t—\\t707\\t—\\t707\\t\\nStock-based\\tcompensation—\\t——\\t2,299\\t—\\t—\\t2,299\\t—\\t2,299\\t\\nContributions\\tfrom\\tnoncontrolling\\tinterests2\\t——\\t—\\t—\\t—\\t—\\t—\\t—\\t\\nDistributions\\tto\\tnoncontrolling\\tinterests(66)——\\t—\\t—\\t—\\t—\\t(106)(106)\\nBuy-outs\\tof\\tnoncontrolling\\tinterests(15)——\\t5\\t—\\t—\\t5\\t—\\t5\\t\\nNet\\tincome43\\t——\\t—\\t—\\t5,519\\t5,519\\t82\\t5,601\\t\\nOther\\tcomprehensive\\tloss—\\t——\\t—\\t(309)—\\t(309)—\\t(309)\\nBalance\\tas\\tof\\tDecember\\t31,\\t2021\\n$568\\t3,100$3\\t$29,803\\t$54\\t$329\\t$30,189\\t$826\\t$31,015\\t\\nSettlements\\tof\\twarrants—\\t37—\\t—\\t—\\t—\\t—\\t—\\t—\\t\\nIssuance\\tof\\tcommon\\tstock\\tfor\\tequity\\tincentive\\tawards—\\t27—\\t541\\t—\\t—\\t541\\t—\\t541\\t\\nStock-based\\tcompensation—\\t——\\t1,806\\t—\\t—\\t1,806\\t—\\t1,806\\t\\nDistributions\\tto\\tnoncontrolling\\tinterests(46)——\\t—\\t—\\t—\\t—\\t(113)(113)\\nBuy-outs\\tof\\tnoncontrolling\\tinterests(11)——\\t27\\t—\\t—\\t27\\t(61)(34)\\nNet\\t(loss)\\tincome(102)——\\t—\\t—\\t12,556\\t12,556\\t133\\t12,689\\t\\nOther\\tcomprehensive\\tloss—\\t——\\t—\\t(415)—\\t(415)—\\t(415)\\nBalance\\tas\\tof\\tDecember\\t31,\\t2022\\n$409\\t3,164$3\\t$32,177\\t$(361)$12,885\\t$44,704\\t$785\\t$45,489\\t\\nIssuance\\tof\\tcommon\\tstock\\tfor\\tequity\\tincentive\\tawards—\\t21—\\t700\\t—\\t—\\t700\\t—\\t700\\t\\nStock-based\\tcompensation—\\t——\\t2,013\\t—\\t—\\t2,013\\t—\\t2,013\\t\\nDistributions\\tto\\tnoncontrolling\\tinterests(32)——\\t—\\t—\\t—\\t—\\t(108)(108)\\nBuy-outs\\tof\\tnoncontrolling\\tinterests(39)——\\t2\\t—\\t—\\t2\\t(17)(15)\\nNet\\t(loss)\\tincome(96)——\\t—\\t—\\t14,997\\t14,997\\t73\\t15,070\\t\\nOther\\tcomprehensive\\tincome—\\t——\\t—\\t218\\t—\\t218\\t—\\t218\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 53,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 55\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Other\\tcomprehensive\\tincome—\\t——\\t—\\t218\\t—\\t218\\t—\\t218\\t\\nBalance\\tas\\tof\\tDecember\\t31,\\t2023\\n$242\\t3,185$3\\t$34,892\\t$(143)$27,882\\t$62,634\\t$733\\t$63,367\\t\\nThe\\taccompanying\\tnotes\\tare\\tan\\tintegral\\tpart\\tof\\tthese\\tconsolidated\\tfinancial\\tstatements.\\n52\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 53,\n        \"lines\": {\n          \"from\": 55,\n          \"to\": 59\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Tesla,\\tInc.\\nConsolidated\\tStatements\\tof\\tCash\\tFlows\\n(in\\tmillions)\\nYear\\tEnded\\tDecember\\t31,\\n202320222021\\nCash\\tFlows\\tfrom\\tOperating\\tActivities\\nNet\\tincome$14,974\\t$12,587\\t$5,644\\t\\nAdjustments\\tto\\treconcile\\tnet\\tincome\\tto\\tnet\\tcash\\tprovided\\tby\\toperating\\tactivities:\\nDepreciation,\\tamortization\\tand\\timpairment4,667\\t3,747\\t2,911\\t\\nStock-based\\tcompensation1,812\\t1,560\\t2,121\\t\\nInventory\\tand\\tpurchase\\tcommitments\\twrite-downs463\\t177\\t140\\t\\nForeign\\tcurrency\\ttransaction\\tnet\\tunrealized\\t(gain)\\tloss(144)81\\t(55)\\nDeferred\\tincome\\ttaxes(6,349)(196)(149)\\nNon-cash\\tinterest\\tand\\tother\\toperating\\tactivities81\\t340\\t245\\t\\nDigital\\tassets\\tloss\\t(gain),\\tnet—\\t140\\t(27)\\nChanges\\tin\\toperating\\tassets\\tand\\tliabilities:\\nAccounts\\treceivable(586)(1,124)(130)\\nInventory(1,195)(6,465)(1,709)\\nOperating\\tlease\\tvehicles(1,952)(1,570)(2,114)\\nPrepaid\\texpenses\\tand\\tother\\tassets(2,652)(3,713)(1,540)\\nAccounts\\tpayable,\\taccrued\\tand\\tother\\tliabilities2,605\\t8,029\\t5,367\\t\\nDeferred\\trevenue1,532\\t1,131\\t793\\t\\nNet\\tcash\\tprovided\\tby\\toperating\\tactivities\\n13,256\\t14,724\\t11,497\\t\\nCash\\tFlows\\tfrom\\tInvesting\\tActivities\\nPurchases\\tof\\tproperty\\tand\\tequipment\\texcluding\\tfinance\\tleases,\\tnet\\tof\\tsales(8,898)(7,158)(6,482)\\nPurchases\\tof\\tsolar\\tenergy\\tsystems,\\tnet\\tof\\tsales(1)(5)(32)\\nPurchases\\tof\\tdigital\\tassets—\\t—\\t(1,500)\\nProceeds\\tfrom\\tsales\\tof\\tdigital\\tassets—\\t936\\t272\\t\\nPurchase\\tof\\tintangible\\tassets—\\t(9)—\\t\\nPurchases\\tof\\tinvestments(19,112)(5,835)(132)\\nProceeds\\tfrom\\tmaturities\\tof\\tinvestments12,353\\t22\\t—\\t\\nProceeds\\tfrom\\tsales\\tof\\tinvestments138\\t—\\t—\\t\\nReceipt\\tof\\tgovernment\\tgrants—\\t76\\t6\\t\\nBusiness\\tcombinations,\\tnet\\tof\\tcash\\tacquired(64)—\\t—\\t\\nNet\\tcash\\tused\\tin\\tinvesting\\tactivities\\n(15,584)(11,973)(7,868)\\nCash\\tFlows\\tfrom\\tFinancing\\tActivities\\nProceeds\\tfrom\\tissuances\\tof\\tdebt3,931\\t—\\t8,883\\t\\nRepayments\\tof\\tdebt(1,351)(3,364)(14,167)\\nCollateralized\\tlease\\trepayments—\\t—\\t(9)\\nProceeds\\tfrom\\texercises\\tof\\tstock\\toptions\\tand\\tother\\tstock\\tissuances700\\t541\\t707\\t\\nPrincipal\\tpayments\\ton\\tfinance\\tleases(464)(502)(439)\\nDebt\\tissuance\\tcosts(29)—\\t(9)\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 54,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 44\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Debt\\tissuance\\tcosts(29)—\\t(9)\\nProceeds\\tfrom\\tinvestments\\tby\\tnoncontrolling\\tinterests\\tin\\tsubsidiaries—\\t—\\t2\\t\\nDistributions\\tpaid\\tto\\tnoncontrolling\\tinterests\\tin\\tsubsidiaries(144)(157)(161)\\nPayments\\tfor\\tbuy-outs\\tof\\tnoncontrolling\\tinterests\\tin\\tsubsidiaries(54)(45)(10)\\nNet\\tcash\\tprovided\\tby\\t(used\\tin)\\tfinancing\\tactivities\\n2,589\\t(3,527)(5,203)\\nEffect\\tof\\texchange\\trate\\tchanges\\ton\\tcash\\tand\\tcash\\tequivalents\\tand\\trestricted\\tcash\\n4\\t(444)(183)\\nNet\\tincrease\\t(decrease)\\tin\\tcash\\tand\\tcash\\tequivalents\\tand\\trestricted\\tcash\\n265\\t(1,220)(1,757)\\nCash\\tand\\tcash\\tequivalents\\tand\\trestricted\\tcash,\\tbeginning\\tof\\tperiod16,924\\t18,144\\t19,901\\t\\nCash\\tand\\tcash\\tequivalents\\tand\\trestricted\\tcash,\\tend\\tof\\tperiod$17,189\\t$16,924\\t$18,144\\t\\nSupplemental\\tNon-Cash\\tInvesting\\tand\\tFinancing\\tActivities\\nAcquisitions\\tof\\tproperty\\tand\\tequipment\\tincluded\\tin\\tliabilities$2,272\\t$2,148\\t$2,251\\t\\nSupplemental\\tDisclosures\\nCash\\tpaid\\tduring\\tthe\\tperiod\\tfor\\tinterest,\\tnet\\tof\\tamounts\\tcapitalized$126\\t$152\\t$266\\t\\nCash\\tpaid\\tduring\\tthe\\tperiod\\tfor\\tincome\\ttaxes,\\tnet\\tof\\trefunds$1,119\\t$1,203\\t$561\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 54,\n        \"lines\": {\n          \"from\": 44,\n          \"to\": 60\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"The\\taccompanying\\tnotes\\tare\\tan\\tintegral\\tpart\\tof\\tthese\\tconsolidated\\tfinancial\\tstatements.\\n53\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 55,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 2\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Tesla,\\tInc.\\nNotes\\tto\\tConsolidated\\tFinancial\\tStatements\\nNote\\t1\\t–\\tOverview\\nTesla,\\tInc.\\t(“Tesla”,\\tthe\\t“Company”,\\t“we”,\\t“us”\\tor\\t“our”)\\twas\\tincorporated\\tin\\tthe\\tState\\tof\\tDelaware\\ton\\tJuly\\t1,\\t2003.\\tWe\\tdesign,\\tdevelop,\\nmanufacture,\\tsell\\tand\\tlease\\thigh-performance\\tfully\\telectric\\tvehicles\\tand\\tenergy\\tgeneration\\tand\\tstorage\\tsystems,\\tand\\toffer\\tservices\\trelated\\tto\\tour\\nproducts.\\tOur\\tChief\\tExecutive\\tOfficer,\\tas\\tthe\\tchief\\toperating\\tdecision\\tmaker\\t(“CODM”),\\torganizes\\tour\\tcompany,\\tmanages\\tresource\\tallocations\\tand\\nmeasures\\tperformance\\tamong\\ttwo\\toperating\\tand\\treportable\\tsegments:\\t(i)\\tautomotive\\tand\\t(ii)\\tenergy\\tgeneration\\tand\\tstorage.\\nNote\\t2\\t–\\tSummary\\tof\\tSignificant\\tAccounting\\tPolicies\\nPrinciples\\tof\\tConsolidation\\nThe\\taccompanying\\tconsolidated\\tfinancial\\tstatements\\thave\\tbeen\\tprepared\\tin\\tconformity\\twith\\tGAAP\\tand\\treflect\\tour\\taccounts\\tand\\toperations\\tand\\nthose\\tof\\tour\\tsubsidiaries\\tin\\twhich\\twe\\thave\\ta\\tcontrolling\\tfinancial\\tinterest.\\tIn\\taccordance\\twith\\tthe\\tprovisions\\tof\\tASC\\t810,\\tConsolidation\\t(“ASC\\t810”),\\twe\\nconsolidate\\tany\\tvariable\\tinterest\\tentity\\t(“VIE”)\\tof\\twhich\\twe\\tare\\tthe\\tprimary\\tbeneficiary.\\tWe\\thave\\tformed\\tVIEs\\twith\\tfinancing\\tfund\\tinvestors\\tin\\tthe\\tordinary\\ncourse\\tof\\tbusiness\\tin\\torder\\tto\\tfacilitate\\tthe\\tfunding\\tand\\tmonetization\\tof\\tcertain\\tattributes\\tassociated\\twith\\tsolar\\tenergy\\tsystems\\tand\\tleases\\tunder\\tour\\ndirect\\tvehicle\\tleasing\\tprograms.\\tThe\\ttypical\\tcondition\\tfor\\ta\\tcontrolling\\tfinancial\\tinterest\\townership\\tis\\tholding\\ta\\tmajority\\tof\\tthe\\tvoting\\tinterests\\tof\\tan\\tentity;\\nhowever,\\ta\\tcontrolling\\tfinancial\\tinterest\\tmay\\talso\\texist\\tin\\tentities,\\tsuch\\tas\\tVIEs,\\tthrough\\tarrangements\\tthat\\tdo\\tnot\\tinvolve\\tcontrolling\\tvoting\\tinterests.\\tASC\\n810\\trequires\\ta\\tvariable\\tinterest\\tholder\\tto\\tconsolidate\\ta\\tVIE\\tif\\tthat\\tparty\\thas\\tthe\\tpower\\tto\\tdirect\\tthe\\tactivities\\tof\\tthe\\tVIE\\tthat\\tmost\\tsignificantly\\timpact\\tthe\\nVIE’s\\teconomic\\tperformance\\tand\\tthe\\tobligation\\tto\\tabsorb\\tlosses\\tof\\tthe\\tVIE\\tthat\\tcould\\tpotentially\\tbe\\tsignificant\\tto\\tthe\\tVIE\\tor\\tthe\\tright\\tto\\treceive\\tbenefits\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 56,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 17\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"from\\tthe\\tVIE\\tthat\\tcould\\tpotentially\\tbe\\tsignificant\\tto\\tthe\\tVIE.\\tWe\\tdo\\tnot\\tconsolidate\\ta\\tVIE\\tin\\twhich\\twe\\thave\\ta\\tmajority\\townership\\tinterest\\twhen\\twe\\tare\\tnot\\nconsidered\\tthe\\tprimary\\tbeneficiary.\\tWe\\thave\\tdetermined\\tthat\\twe\\tare\\tthe\\tprimary\\tbeneficiary\\tof\\tall\\tthe\\tVIEs\\t(see\\tNote\\t16,\\tVariable\\tInterest\\tEntity\\nArrangements).\\tWe\\tevaluate\\tour\\trelationships\\twith\\tall\\tthe\\tVIEs\\ton\\tan\\tongoing\\tbasis\\tto\\tensure\\tthat\\twe\\tcontinue\\tto\\tbe\\tthe\\tprimary\\tbeneficiary.\\tAll\\nintercompany\\ttransactions\\tand\\tbalances\\thave\\tbeen\\teliminated\\tupon\\tconsolidation.\\nUse\\tof\\tEstimates\\nThe\\tpreparation\\tof\\tfinancial\\tstatements\\tin\\tconformity\\twith\\tGAAP\\trequires\\tmanagement\\tto\\tmake\\testimates\\tand\\tassumptions\\tthat\\taffect\\tthe\\treported\\namounts\\tof\\tassets,\\tliabilities,\\trevenues,\\tcosts\\tand\\texpenses\\tand\\trelated\\tdisclosures\\tin\\tthe\\taccompanying\\tnotes.\\tThe\\testimates\\tused\\tfor,\\tbut\\tnot\\tlimited\\tto,\\ndetermining\\tsignificant\\teconomic\\tincentive\\tfor\\tresale\\tvalue\\tguarantee\\tarrangements,\\tsales\\treturn\\treserves,\\tincome\\ttaxes,\\tthe\\tcollectability\\tof\\taccounts\\nand\\tfinance\\treceivables,\\tinventory\\tvaluation,\\twarranties,\\tfair\\tvalue\\tof\\tlong-lived\\tassets,\\tgoodwill,\\tfair\\tvalue\\tof\\tfinancial\\tinstruments,\\tfair\\tvalue\\tand\\tresidual\\nvalue\\tof\\toperating\\tlease\\tvehicles\\tand\\tsolar\\tenergy\\tsystems\\tsubject\\tto\\tleases\\tcould\\tbe\\timpacted.\\tWe\\thave\\tassessed\\tthe\\timpact\\tand\\tare\\tnot\\taware\\tof\\tany\\nspecific\\tevents\\tor\\tcircumstances\\tthat\\trequired\\tan\\tupdate\\tto\\tour\\testimates\\tand\\tassumptions\\tor\\tmaterially\\taffected\\tthe\\tcarrying\\tvalue\\tof\\tour\\tassets\\tor\\nliabilities\\tas\\tof\\tthe\\tdate\\tof\\tissuance\\tof\\tthis\\tAnnual\\tReport\\ton\\tForm\\t10-K.\\tThese\\testimates\\tmay\\tchange\\tas\\tnew\\tevents\\toccur\\tand\\tadditional\\tinformation\\tis\\nobtained.\\tActual\\tresults\\tcould\\tdiffer\\tmaterially\\tfrom\\tthese\\testimates\\tunder\\tdifferent\\tassumptions\\tor\\tconditions.\\nReclassifications\\nCertain\\tprior\\tperiod\\tbalances\\thave\\tbeen\\treclassified\\tto\\tconform\\tto\\tthe\\tcurrent\\tperiod\\tpresentation\\tin\\tthe\\tconsolidated\\tfinancial\\tstatements\\tand\\tthe\\naccompanying\\tnotes.\\n54\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 56,\n        \"lines\": {\n          \"from\": 18,\n          \"to\": 34\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Revenue\\tRecognition\\nRevenue\\tby\\tsource\\nThe\\tfollowing\\ttable\\tdisaggregates\\tour\\trevenue\\tby\\tmajor\\tsource\\t(in\\tmillions):\\nYear\\tEnded\\tDecember\\t31,\\n202320222021\\nAutomotive\\tsales\\n$78,509\\t$67,210\\t$44,125\\t\\nAutomotive\\tregulatory\\tcredits1,790\\t1,776\\t1,465\\t\\nEnergy\\tgeneration\\tand\\tstorage\\tsales5,515\\t3,376\\t2,279\\t\\nServices\\tand\\tother8,319\\t6,091\\t3,802\\t\\nTotal\\trevenues\\tfrom\\tsales\\tand\\tservices\\n94,133\\t78,453\\t51,671\\t\\nAutomotive\\tleasing2,120\\t2,476\\t1,642\\t\\nEnergy\\tgeneration\\tand\\tstorage\\tleasing520\\t533\\t510\\t\\nTotal\\trevenues\\n$96,773\\t$81,462\\t$53,823\\t\\nAutomotive\\tSegment\\nAutomotive\\tSales\\nAutomotive\\tsales\\trevenue\\tincludes\\trevenues\\trelated\\tto\\tcash\\tand\\tfinancing\\tdeliveries\\tof\\tnew\\tvehicles,\\tand\\tspecific\\tother\\tfeatures\\tand\\tservices\\tthat\\nmeet\\tthe\\tdefinition\\tof\\ta\\tperformance\\tobligation\\tunder\\tASC\\t606,\\tincluding\\taccess\\tto\\tour\\tFSD\\tCapability\\tfeatures\\tand\\ttheir\\tongoing\\tmaintenance,\\tinternet\\nconnectivity,\\tfree\\tSupercharging\\tprograms\\tand\\tover-the-air\\tsoftware\\tupdates.\\tWe\\trecognize\\trevenue\\ton\\tautomotive\\tsales\\tupon\\tdelivery\\tto\\tthe\\tcustomer,\\nwhich\\tis\\twhen\\tthe\\tcontrol\\tof\\ta\\tvehicle\\ttransfers.\\tPayments\\tare\\ttypically\\treceived\\tat\\tthe\\tpoint\\tcontrol\\ttransfers\\tor\\tin\\taccordance\\twith\\tpayment\\tterms\\ncustomary\\tto\\tthe\\tbusiness,\\texcept\\tsales\\twe\\tfinance\\tfor\\twhich\\tpayments\\tare\\tcollected\\tover\\tthe\\tcontractual\\tloan\\tterm.\\tWe\\talso\\trecognize\\ta\\tsales\\treturn\\nreserve\\tbased\\ton\\thistorical\\texperience\\tplus\\tconsideration\\tfor\\texpected\\tfuture\\tmarket\\tvalues,\\twhen\\twe\\toffer\\tresale\\tvalue\\tguarantees\\tor\\tsimilar\\tbuyback\\nterms.\\tOther\\tfeatures\\tand\\tservices\\tsuch\\tas\\taccess\\tto\\tour\\tinternet\\tconnectivity,\\tunlimited\\tfree\\tSupercharging\\tand\\tover-the-air\\tsoftware\\tupdates\\tare\\nprovisioned\\tupon\\tcontrol\\ttransfer\\tof\\ta\\tvehicle\\tand\\trecognized\\tover\\ttime\\ton\\ta\\tstraight-line\\tbasis\\tas\\twe\\thave\\ta\\tstand-ready\\tobligation\\tto\\tdeliver\\tsuch\\nservices\\tto\\tthe\\tcustomer.\\tOther\\tlimited\\tfree\\tSupercharging\\tincentives\\tare\\trecognized\\tbased\\ton\\tactual\\tusage\\tor\\texpiration,\\twhichever\\tis\\tearlier.\\tWe\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 57,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 27\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"recognize\\trevenue\\trelated\\tto\\tthese\\tother\\tfeatures\\tand\\tservices\\tover\\tthe\\tperformance\\tperiod,\\twhich\\tis\\tgenerally\\tthe\\texpected\\townership\\tlife\\tof\\tthe\\tvehicle.\\nRevenue\\trelated\\tto\\tFSD\\tCapability\\tfeatures\\tis\\trecognized\\twhen\\tfunctionality\\tis\\tdelivered\\tto\\tthe\\tcustomer\\tand\\ttheir\\tongoing\\tmaintenance\\tis\\trecognized\\nover\\ttime.\\tFor\\tour\\tobligations\\trelated\\tto\\tautomotive\\tsales,\\twe\\testimate\\tstandalone\\tselling\\tprice\\tby\\tconsidering\\tcosts\\tused\\tto\\tdevelop\\tand\\tdeliver\\tthe\\nservice,\\tthird-party\\tpricing\\tof\\tsimilar\\toptions\\tand\\tother\\tinformation\\tthat\\tmay\\tbe\\tavailable.\\nAny\\tfees\\tthat\\tare\\tpaid\\tor\\tpayable\\tby\\tus\\tto\\ta\\tcustomer’s\\tlender\\twhen\\twe\\tarrange\\tthe\\tfinancing\\tare\\trecognized\\tas\\tan\\toffset\\tagainst\\tautomotive\\tsales\\nrevenue.\\tCosts\\tto\\tobtain\\ta\\tcontract\\tmainly\\trelate\\tto\\tcommissions\\tpaid\\tto\\tour\\tsales\\tpersonnel\\tfor\\tthe\\tsale\\tof\\tvehicles.\\tAs\\tour\\tcontract\\tcosts\\trelated\\tto\\nautomotive\\tsales\\tare\\ttypically\\tfulfilled\\twithin\\tone\\tyear,\\tthe\\tcosts\\tto\\tobtain\\ta\\tcontract\\tare\\texpensed\\tas\\tincurred.\\tAmounts\\tbilled\\tto\\tcustomers\\trelated\\tto\\nshipping\\tand\\thandling\\tare\\tclassified\\tas\\tautomotive\\tsales\\trevenue,\\tand\\twe\\thave\\telected\\tto\\trecognize\\tthe\\tcost\\tfor\\tfreight\\tand\\tshipping\\twhen\\tcontrol\\tover\\nvehicles,\\tparts\\tor\\taccessories\\thave\\ttransferred\\tto\\tthe\\tcustomer\\tas\\tan\\texpense\\tin\\tcost\\tof\\tautomotive\\tsales\\trevenue.\\tOur\\tpolicy\\tis\\tto\\texclude\\ttaxes\\ncollected\\tfrom\\ta\\tcustomer\\tfrom\\tthe\\ttransaction\\tprice\\tof\\tautomotive\\tcontracts.\\n55\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 57,\n        \"lines\": {\n          \"from\": 28,\n          \"to\": 38\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"We\\toffer\\tresale\\tvalue\\tguarantees\\tto\\tour\\tcommercial\\tbanking\\tpartners\\tin\\tconnection\\twith\\tcertain\\tvehicle\\tleasing\\tprograms.\\tUnder\\tthese\\tprograms,\\nwe\\toriginate\\tthe\\tlease\\twith\\tour\\tend\\tcustomer\\tand\\timmediately\\ttransfer\\tthe\\tlease\\tand\\tthe\\tunderlying\\tvehicle\\tto\\tour\\tcommercial\\tbanking\\tpartner,\\twith\\tthe\\ntransaction\\tbeing\\taccounted\\tfor\\tas\\ta\\tsale\\tunder\\tASC\\t606.\\tWe\\treceive\\tupfront\\tpayment\\tfor\\tthe\\tvehicle,\\tdo\\tnot\\tbear\\tcasualty\\tand\\tcredit\\trisks\\tduring\\tthe\\nlease\\tterm,\\tand\\twe\\tprovide\\ta\\tguarantee\\tcapped\\tto\\ta\\tlimit\\tif\\tthey\\tare\\tunable\\tto\\tsell\\tthe\\tvehicle\\tat\\tor\\tabove\\tthe\\tvehicle’s\\tcontract\\tresidual\\tvalue\\tat\\tthe\\tend\\nof\\tthe\\tlease\\tterm.\\tWe\\testimate\\ta\\tguarantee\\tliability\\tin\\taccordance\\twith\\tASC\\t460,\\tGuarantees\\tand\\trecord\\tit\\twithin\\tother\\tliabilities\\ton\\tour\\tconsolidated\\nbalance\\tsheet.\\tOn\\ta\\tquarterly\\tbasis,\\twe\\tassess\\tthe\\testimated\\tmarket\\tvalue\\tof\\tvehicles\\tsold\\tunder\\tthis\\tprogram\\tto\\tdetermine\\twhether\\tthere\\thave\\tbeen\\nchanges\\tto\\tthe\\tamount\\tof\\texpected\\tresale\\tvalue\\tguarantee\\tpayments.\\tAs\\twe\\taccumulate\\tmore\\tdata\\trelated\\tto\\tthe\\tresale\\tvalues\\tof\\tour\\tvehicles\\tor\\tas\\nmarket\\tconditions\\tchange,\\tthere\\tmay\\tbe\\tmaterial\\tchanges\\tto\\ttheir\\testimated\\tvalues.\\tThe\\ttotal\\tguarantee\\tliability\\ton\\tvehicles\\tsold\\tunder\\tthis\\tprogram\\twas\\nimmaterial\\tas\\tof\\tDecember\\t31,\\t2023.\\nDeferred\\trevenue\\trelated\\tto\\tthe\\taccess\\tto\\tour\\tFSD\\tCapability\\tfeatures\\tand\\ttheir\\tongoing\\tmaintenance,\\tinternet\\tconnectivity,\\tfree\\tSupercharging\\nprograms\\tand\\tover-the-air\\tsoftware\\tupdates\\tprimarily\\ton\\tautomotive\\tsales\\tconsisted\\tof\\tthe\\tfollowing\\t(in\\tmillions):\\nYear\\tEnded\\tDecember\\t31,\\n20232022\\nDeferred\\trevenue—\\tbeginning\\tof\\tperiod\\n$2,913\\t$2,382\\t\\nAdditions1,201\\t1,178\\t\\nNet\\tchanges\\tin\\tliability\\tfor\\tpre-existing\\tcontracts17\\t(67)\\nRevenue\\trecognized(595)(580)\\nDeferred\\trevenue—\\tend\\tof\\tperiod\\n$3,536\\t$2,913\\t\\nDeferred\\trevenue\\tis\\tequivalent\\tto\\tthe\\ttotal\\ttransaction\\tprice\\tallocated\\tto\\tthe\\tperformance\\tobligations\\tthat\\tare\\tunsatisfied,\\tor\\tpartially\\tunsatisfied,\\tas\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 58,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 21\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"of\\tthe\\tbalance\\tsheet\\tdate.\\tRevenue\\trecognized\\tfrom\\tthe\\tdeferred\\trevenue\\tbalance\\tas\\tof\\tDecember\\t31,\\t2022\\twas\\t$469\\tmillion\\tfor\\tthe\\tyear\\tended\\nDecember\\t31,\\t2023.\\tWe\\thad\\trecognized\\trevenue\\tof\\t$472\\tmillion\\tfrom\\tthe\\tdeferred\\trevenue\\tbalance\\tas\\tof\\tDecember\\t31,\\t2021,\\tfor\\tthe\\tyear\\tended\\nDecember\\t31,\\t2022,\\tprimarily\\trelated\\tto\\tthe\\tgeneral\\tFSD\\tCapability\\tfeature\\trelease\\tin\\tNorth\\tAmerica\\tin\\tthe\\tfourth\\tquarter\\tof\\t2022.\\tOf\\tthe\\ttotal\\tdeferred\\nrevenue\\tbalance\\tas\\tof\\tDecember\\t31,\\t2023,\\twe\\texpect\\tto\\trecognize\\t$926\\tmillion\\tof\\trevenue\\tin\\tthe\\tnext\\t12\\tmonths.\\tThe\\tremaining\\tbalance\\twill\\tbe\\nrecognized\\tat\\tthe\\ttime\\tof\\ttransfer\\tof\\tcontrol\\tof\\tthe\\tproduct\\tor\\tover\\tthe\\tperformance\\tperiod\\tas\\tdiscussed\\tabove\\tin\\tAutomotive\\tSales.\\nWe\\thave\\tbeen\\tproviding\\tloans\\tfor\\tfinancing\\tour\\tautomotive\\tdeliveries\\tin\\tvolume\\tsince\\tfiscal\\tyear\\t2022.\\tAs\\tof\\tDecember\\t31,\\t2023\\tand\\t2022,\\twe\\thave\\nrecorded\\tnet\\tfinancing\\treceivables\\ton\\tthe\\tconsolidated\\tbalance\\tsheets,\\tof\\twhich\\t$242\\tmillion\\tand\\t$128\\tmillion,\\trespectively,\\tis\\trecorded\\twithin\\tAccounts\\nreceivable,\\tnet,\\tfor\\tthe\\tcurrent\\tportion\\tand\\t$1.04\\tbillion\\tand\\t$665\\tmillion,\\trespectively,\\tis\\trecorded\\twithin\\tOther\\tnon-current\\tassets\\tfor\\tthe\\tlong-term\\nportion.\\nAutomotive\\tRegulatory\\tCredits\\nWe\\tearn\\ttradable\\tcredits\\tin\\tthe\\toperation\\tof\\tour\\tautomotive\\tbusiness\\tunder\\tvarious\\tregulations\\trelated\\tto\\tZEVs,\\tgreenhouse\\tgas,\\tfuel\\teconomy\\tand\\nclean\\tfuel.\\tWe\\tsell\\tthese\\tcredits\\tto\\tother\\tregulated\\tentities\\twho\\tcan\\tuse\\tthe\\tcredits\\tto\\tcomply\\twith\\temission\\tstandards\\tand\\tother\\tregulatory\\trequirements.\\nPayments\\tfor\\tautomotive\\tregulatory\\tcredits\\tare\\ttypically\\treceived\\tat\\tthe\\tpoint\\tcontrol\\ttransfers\\tto\\tthe\\tcustomer,\\tor\\tin\\taccordance\\twith\\tpayment\\nterms\\tcustomary\\tto\\tthe\\tbusiness.\\tWe\\trecognize\\trevenue\\ton\\tthe\\tsale\\tof\\tautomotive\\tregulatory\\tcredits,\\twhich\\thave\\tnegligible\\tincremental\\tcosts\\tassociated\\nwith\\tthem,\\tat\\tthe\\ttime\\tcontrol\\tof\\tthe\\tregulatory\\tcredits\\tis\\ttransferred\\tto\\tthe\\tpurchasing\\tparty.\\tDeferred\\trevenue\\trelated\\tto\\tsales\\tof\\tautomotive\\tregulatory\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 58,\n        \"lines\": {\n          \"from\": 22,\n          \"to\": 36\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"credits\\twas\\timmaterial\\tas\\tof\\tDecember\\t31,\\t2023\\tand\\t2022.\\tRevenue\\trecognized\\tfrom\\tthe\\tdeferred\\trevenue\\tbalance\\tas\\tof\\tDecember\\t31,\\t2022\\tand\\t2021\\nwas\\timmaterial\\tfor\\tthe\\tyears\\tended\\tDecember\\t31,\\t2023\\tand\\t2022.\\tDuring\\tthe\\tyear\\tended\\tDecember\\t31,\\t2022,\\twe\\thad\\talso\\trecognized\\t$288\\tmillion\\tin\\nrevenue\\tdue\\tto\\tchanges\\tin\\tregulation\\twhich\\tentitled\\tus\\tto\\tadditional\\tconsideration\\tfor\\tcredits\\tsold\\tpreviously.\\n56\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 58,\n        \"lines\": {\n          \"from\": 37,\n          \"to\": 40\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Automotive\\tLeasing\\tRevenue\\nDirect\\tVehicle\\tOperating\\tLeasing\\tProgram\\nWe\\thave\\toutstanding\\tleases\\tunder\\tour\\tdirect\\tvehicle\\toperating\\tleasing\\tprograms\\tin\\tthe\\tU.S.,\\tCanada\\tand\\tin\\tcertain\\tcountries\\tin\\tEurope.\\tQualifying\\ncustomers\\tare\\tpermitted\\tto\\tlease\\ta\\tvehicle\\tdirectly\\tfrom\\tTesla\\tfor\\tup\\tto\\t48\\tmonths.\\tAt\\tthe\\tend\\tof\\tthe\\tlease\\tterm,\\tcustomers\\tare\\tgenerally\\trequired\\tto\\nreturn\\tthe\\tvehicles\\tto\\tus.\\tWe\\taccount\\tfor\\tthese\\tleasing\\ttransactions\\tas\\toperating\\tleases.\\tWe\\trecord\\tleasing\\trevenues\\tto\\tautomotive\\tleasing\\trevenue\\ton\\ta\\nstraight-line\\tbasis\\tover\\tthe\\tcontractual\\tterm,\\tand\\twe\\trecord\\tthe\\tdepreciation\\tof\\tthese\\tvehicles\\tto\\tcost\\tof\\tautomotive\\tleasing\\trevenue.\\tFor\\tthe\\tyears\\tended\\nDecember\\t31,\\t2023,\\t2022\\tand\\t2021,\\twe\\trecognized\\t$1.86\\tbillion,\\t$1.75\\tbillion\\tand\\t$1.25\\tbillion\\tof\\tdirect\\tvehicle\\tleasing\\trevenue,\\trespectively.\\tAs\\tof\\nDecember\\t31,\\t2023\\tand\\t2022,\\twe\\thad\\tdeferred\\t$458\\tmillion\\tand\\t$407\\tmillion,\\trespectively,\\tof\\tlease-related\\tupfront\\tpayments,\\twhich\\twill\\tbe\\trecognized\\non\\ta\\tstraight-line\\tbasis\\tover\\tthe\\tcontractual\\tterms\\tof\\tthe\\tindividual\\tleases.\\nOur\\tpolicy\\tis\\tto\\texclude\\ttaxes\\tcollected\\tfrom\\ta\\tcustomer\\tfrom\\tthe\\ttransaction\\tprice\\tof\\tautomotive\\tcontracts.\\nDirect\\tSales-Type\\tLeasing\\tProgram\\nWe\\thave\\toutstanding\\tdirect\\tleases\\tand\\tvehicles\\tfinanced\\tby\\tus\\tunder\\tloan\\tarrangements\\taccounted\\tfor\\tas\\tsales-type\\tleases\\tunder\\tASC\\t842,\\tLeases\\n(“ASC\\t842”),\\tin\\tcertain\\tcountries\\tin\\tAsia\\tand\\tEurope.\\tDepending\\ton\\tthe\\tspecific\\tprogram,\\tcustomers\\tmay\\tor\\tmay\\tnot\\thave\\ta\\tright\\tto\\treturn\\tthe\\tvehicle\\tto\\nus\\tduring\\tor\\tat\\tthe\\tend\\tof\\tthe\\tlease\\tterm.\\tIf\\tthe\\tcustomer\\tdoes\\tnot\\thave\\ta\\tright\\tto\\treturn,\\tthe\\tcustomer\\twill\\ttake\\ttitle\\tto\\tthe\\tvehicle\\tat\\tthe\\tend\\tof\\tthe\\tlease\\nterm\\tafter\\tmaking\\tall\\tcontractual\\tpayments.\\tUnder\\tthe\\tprograms\\tfor\\twhich\\tthere\\tis\\ta\\tright\\tto\\treturn,\\tthe\\tpurchase\\toption\\tis\\treasonably\\tcertain\\tto\\tbe\\nexercised\\tby\\tthe\\tlessee\\tand\\twe\\ttherefore\\texpect\\tthe\\tcustomer\\tto\\ttake\\ttitle\\tto\\tthe\\tvehicle\\tat\\tthe\\tend\\tof\\tthe\\tlease\\tterm\\tafter\\tmaking\\tall\\tcontractual\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 59,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 16\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"payments.\\tOur\\tarrangements\\tunder\\tthese\\tprograms\\tcan\\thave\\tterms\\tfor\\tup\\tto\\t72\\tmonths.\\tWe\\trecognize\\tall\\trevenue\\tand\\tcosts\\tassociated\\twith\\tthe\\tsales-\\ntype\\tlease\\tas\\tautomotive\\tleasing\\trevenue\\tand\\tautomotive\\tleasing\\tcost\\tof\\trevenue,\\trespectively,\\tupon\\tdelivery\\tof\\tthe\\tvehicle\\tto\\tthe\\tcustomer.\\tInterest\\nincome\\tbased\\ton\\tthe\\timplicit\\trate\\tin\\tthe\\tlease\\tis\\trecorded\\tto\\tautomotive\\tleasing\\trevenue\\tover\\ttime\\tas\\tcustomers\\tare\\tinvoiced\\ton\\ta\\tmonthly\\tbasis.\\tFor\\tthe\\nyears\\tended\\tDecember\\t31,\\t2023,\\t2022\\tand\\t2021,\\twe\\trecognized\\t$215\\tmillion,\\t$683\\tmillion\\tand\\t$369\\tmillion,\\trespectively,\\tof\\tsales-type\\tleasing\\trevenue\\nand\\t$164\\tmillion,\\t$427\\tmillion\\tand\\t$234\\tmillion,\\trespectively,\\tof\\tsales-type\\tleasing\\tcost\\tof\\trevenue.\\nServices\\tand\\tOther\\tRevenue\\nServices\\tand\\tother\\trevenue\\tconsists\\tof\\tsales\\tof\\tused\\tvehicles,\\tnon-warranty\\tafter-sales\\tvehicle\\tservices,\\tbody\\tshop\\tand\\tparts,\\tpaid\\tSupercharging,\\nvehicle\\tinsurance\\trevenue\\tand\\tretail\\tmerchandise.\\nRevenues\\trelated\\tto\\trepair,\\tmaintenance\\tand\\tvehicle\\tinsurance\\tservices\\tare\\trecognized\\tover\\ttime\\tas\\tservices\\tare\\tprovided\\tand\\textended\\tservice\\nplans\\tare\\trecognized\\tover\\tthe\\tperformance\\tperiod\\tof\\tthe\\tservice\\tcontract\\tas\\tthe\\tobligation\\trepresents\\ta\\tstand-ready\\tobligation\\tto\\tthe\\tcustomer.\\tWe\\tsell\\nused\\tvehicles,\\tservices,\\tservice\\tplans,\\tvehicle\\tcomponents\\tand\\tmerchandise\\tseparately\\tand\\tthus\\tuse\\tstandalone\\tselling\\tprices\\tas\\tthe\\tbasis\\tfor\\trevenue\\nallocation\\tto\\tthe\\textent\\tthat\\tthese\\titems\\tare\\tsold\\tin\\ttransactions\\twith\\tother\\tperformance\\tobligations.\\tPayment\\tfor\\tused\\tvehicles,\\tservices,\\tvehicle\\ncomponents,\\tand\\tmerchandise\\tare\\ttypically\\treceived\\tat\\tthe\\tpoint\\twhen\\tcontrol\\ttransfers\\tto\\tthe\\tcustomer\\tor\\tin\\taccordance\\twith\\tpayment\\tterms\\tcustomary\\nto\\tthe\\tbusiness.\\tPayments\\treceived\\tfor\\tprepaid\\tplans\\tare\\trefundable\\tupon\\tcustomer\\tcancellation\\tof\\tthe\\trelated\\tcontracts\\tand\\tare\\tincluded\\twithin\\nCustomer\\tdeposits\\ton\\tthe\\tconsolidated\\tbalance\\tsheets.\\tWe\\trecord\\tin\\tDeferred\\trevenue\\tany\\tnon-refundable\\tprepayment\\tamounts\\tthat\\tare\\tcollected\\tfrom\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 59,\n        \"lines\": {\n          \"from\": 17,\n          \"to\": 31\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"customers\\tand\\tunearned\\tinsurance\\tpremiums,\\twhich\\tis\\trecognized\\tas\\trevenue\\tratably\\tover\\tthe\\trespective\\tcustomer\\tcontract\\tterm.\\tDeferred\\trevenue\\nexcluding\\tunearned\\tinsurance\\tpremiums\\twas\\timmaterial\\tas\\tof\\tDecember\\t31,\\t2023\\tand\\t2022.\\n57\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 59,\n        \"lines\": {\n          \"from\": 32,\n          \"to\": 34\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Energy\\tGeneration\\tand\\tStorage\\tSegment\\nEnergy\\tGeneration\\tand\\tStorage\\tSales\\nEnergy\\tgeneration\\tand\\tstorage\\tsales\\trevenue\\tconsists\\tof\\tthe\\tsale\\tof\\tsolar\\tenergy\\tsystems\\tand\\tenergy\\tstorage\\tsystems\\tto\\tresidential,\\tsmall\\ncommercial,\\tlarge\\tcommercial\\tand\\tutility\\tgrade\\tcustomers.\\tSales\\tof\\tsolar\\tenergy\\tsystems\\tto\\tresidential\\tand\\tsmall\\tscale\\tcommercial\\tcustomers\\tconsist\\tof\\nthe\\tengineering,\\tdesign\\tand\\tinstallation\\tof\\tthe\\tsystem.\\tResidential\\tand\\tsmall\\tscale\\tcommercial\\tcustomers\\tpay\\tthe\\tfull\\tpurchase\\tprice\\tof\\tthe\\tsolar\\tenergy\\nsystem\\tupfront.\\tRevenue\\tfor\\tthe\\tdesign\\tand\\tinstallation\\tobligation\\tis\\trecognized\\twhen\\tcontrol\\ttransfers,\\twhich\\tis\\twhen\\twe\\tinstall\\ta\\tsolar\\tenergy\\tsystem\\nand\\tthe\\tsystem\\tpasses\\tinspection\\tby\\tthe\\tutility\\tor\\tthe\\tauthority\\thaving\\tjurisdiction.\\tSales\\tof\\tenergy\\tstorage\\tsystems\\tto\\tresidential\\tand\\tsmall\\tscale\\ncommercial\\tcustomers\\tconsist\\tof\\tthe\\tinstallation\\tof\\tthe\\tenergy\\tstorage\\tsystem\\tand\\trevenue\\tis\\trecognized\\twhen\\tcontrol\\ttransfers,\\twhich\\tis\\twhen\\tthe\\nproduct\\thas\\tbeen\\tdelivered\\tor,\\tif\\twe\\tare\\tperforming\\tinstallation,\\twhen\\tinstalled\\tand\\tcommissioned.\\tPayment\\tfor\\tsuch\\tstorage\\tsystems\\tis\\tmade\\tupon\\ninvoice\\tor\\tin\\taccordance\\twith\\tpayment\\tterms\\tcustomary\\tto\\tthe\\tbusiness.\\nFor\\tlarge\\tcommercial\\tand\\tutility\\tgrade\\tenergy\\tstorage\\tsystem\\tsales\\twhich\\tconsist\\tof\\tthe\\tengineering,\\tdesign\\tand\\tinstallation\\tof\\tthe\\tsystem,\\ncustomers\\tmake\\tmilestone\\tpayments\\tthat\\tare\\tconsistent\\twith\\tcontract-specific\\tphases\\tof\\ta\\tproject.\\tRevenue\\tfrom\\tsuch\\tcontracts\\tis\\trecognized\\tover\\ttime\\nusing\\tthe\\tpercentage\\tof\\tcompletion\\tmethod\\tbased\\ton\\tcost\\tincurred\\tas\\ta\\tpercentage\\tof\\ttotal\\testimated\\tcontract\\tcosts\\tfor\\tenergy\\tstorage\\tsystem\\tsales.\\nIn\\tinstances\\twhere\\tthere\\tare\\tmultiple\\tperformance\\tobligations\\tin\\ta\\tsingle\\tcontract,\\twe\\tallocate\\tthe\\tconsideration\\tto\\tthe\\tvarious\\tobligations\\tin\\tthe\\ncontract\\tbased\\ton\\tthe\\trelative\\tstandalone\\tselling\\tprice\\tmethod.\\tStandalone\\tselling\\tprices\\tare\\testimated\\tbased\\ton\\testimated\\tcosts\\tplus\\tmargin\\tor\\tby\\tusing\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 60,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 15\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"market\\tdata\\tfor\\tcomparable\\tproducts.\\tCosts\\tto\\tobtain\\ta\\tcontract\\trelate\\tmainly\\tto\\tcommissions\\tpaid\\tto\\tour\\tsales\\tpersonnel\\trelated\\tto\\tthe\\tsale\\tof\\tenergy\\nstorage\\tsystems.\\tAs\\tour\\tcontract\\tcosts\\trelated\\tto\\tenergy\\tstorage\\tsystem\\tsales\\tare\\ttypically\\tfulfilled\\twithin\\tone\\tyear,\\tthe\\tcosts\\tto\\tobtain\\ta\\tcontract\\tare\\nexpensed\\tas\\tincurred.\\nAs\\tpart\\tof\\tour\\tenergy\\tstorage\\tsystem\\tcontracts,\\twe\\tmay\\tprovide\\tthe\\tcustomer\\twith\\tperformance\\tguarantees\\tthat\\twarrant\\tthat\\tthe\\tunderlying\\tsystem\\nwill\\tmeet\\tor\\texceed\\tthe\\tminimum\\tenergy\\tperformance\\trequirements\\tspecified\\tin\\tthe\\tcontract.\\tIf\\tan\\tenergy\\tstorage\\tsystem\\tdoes\\tnot\\tmeet\\tthe\\nperformance\\tguarantee\\trequirements,\\twe\\tmay\\tbe\\trequired\\tto\\tpay\\tliquidated\\tdamages.\\tOther\\tforms\\tof\\tvariable\\tconsideration\\trelated\\tto\\tour\\tlarge\\ncommercial\\tand\\tutility\\tgrade\\tenergy\\tstorage\\tsystem\\tcontracts\\tinclude\\tvariable\\tcustomer\\tpayments\\tthat\\twill\\tbe\\tmade\\tbased\\ton\\tour\\tenergy\\tmarket\\nparticipation\\tactivities.\\tSuch\\tguarantees\\tand\\tvariable\\tcustomer\\tpayments\\trepresent\\ta\\tform\\tof\\tvariable\\tconsideration\\tand\\tare\\testimated\\tat\\tcontract\\ninception\\tat\\ttheir\\tmost\\tlikely\\tamount\\tand\\tupdated\\tat\\tthe\\tend\\tof\\teach\\treporting\\tperiod\\tas\\tadditional\\tperformance\\tdata\\tbecomes\\tavailable.\\tSuch\\testimates\\nare\\tincluded\\tin\\tthe\\ttransaction\\tprice\\tonly\\tto\\tthe\\textent\\tthat\\tit\\tis\\tprobable\\ta\\tsignificant\\treversal\\tof\\trevenue\\twill\\tnot\\toccur.\\nWe\\trecord\\tas\\tdeferred\\trevenue\\tany\\tnon-refundable\\tamounts\\tthat\\tare\\tcollected\\tfrom\\tcustomers\\trelated\\tto\\tfees\\tcharged\\tfor\\tprepayments,\\twhich\\tis\\nrecognized\\tas\\trevenue\\tratably\\tover\\tthe\\trespective\\tcustomer\\tcontract\\tterm.\\tAs\\tof\\tDecember\\t31,\\t2023\\tand\\t2022,\\tdeferred\\trevenue\\trelated\\tto\\tsuch\\ncustomer\\tpayments\\tamounted\\tto\\t$1.60\\tbillion\\tand\\t$863\\tmillion,\\trespectively,\\tmainly\\tdue\\tto\\tcontractual\\tpayment\\tterms.\\tRevenue\\trecognized\\tfrom\\tthe\\ndeferred\\trevenue\\tbalance\\tas\\tof\\tDecember\\t31,\\t2022\\tand\\t2021\\twas\\t$571\\tmillion\\tand\\t$171\\tmillion\\tfor\\tthe\\tyears\\tended\\tDecember\\t31,\\t2023\\tand\\t2022,\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 60,\n        \"lines\": {\n          \"from\": 16,\n          \"to\": 29\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"respectively.\\tWe\\thave\\telected\\tthe\\tpractical\\texpedient\\tto\\tomit\\tdisclosure\\tof\\tthe\\tamount\\tof\\tthe\\ttransaction\\tprice\\tallocated\\tto\\tremaining\\tperformance\\nobligations\\tfor\\tenergy\\tgeneration\\tand\\tstorage\\tsales\\twith\\tan\\toriginal\\texpected\\tcontract\\tlength\\tof\\tone\\tyear\\tor\\tless\\tand\\tthe\\tamount\\tthat\\twe\\thave\\tthe\\tright\\tto\\ninvoice\\twhen\\tthat\\tamount\\tcorresponds\\tdirectly\\twith\\tthe\\tvalue\\tof\\tthe\\tperformance\\tto\\tdate.\\tAs\\tof\\tDecember\\t31,\\t2023,\\ttotal\\ttransaction\\tprice\\tallocated\\tto\\nperformance\\tobligations\\tthat\\twere\\tunsatisfied\\tor\\tpartially\\tunsatisfied\\tfor\\tcontracts\\twith\\tan\\toriginal\\texpected\\tlength\\tof\\tmore\\tthan\\tone\\tyear\\twas\\t$3.43\\nbillion.\\tOf\\tthis\\tamount,\\twe\\texpect\\tto\\trecognize\\t$1.05\\tbillion\\tin\\tthe\\tnext\\t12\\tmonths\\tand\\tthe\\trest\\tover\\tthe\\tremaining\\tperformance\\tobligation\\tperiod.\\nWe\\thave\\tbeen\\tproviding\\tloans\\tfor\\tfinancing\\tour\\tenergy\\tgeneration\\tproducts\\tin\\tvolume\\tsince\\tfiscal\\tyear\\t2022.\\tAs\\tof\\tDecember\\t31,\\t2023\\tand\\t2022,\\nwe\\thave\\trecorded\\tnet\\tfinancing\\treceivables\\ton\\tthe\\tconsolidated\\tbalance\\tsheets,\\tof\\twhich\\t$31\\tmillion\\tand\\t$24\\tmillion,\\trespectively,\\tis\\trecorded\\twithin\\nAccounts\\treceivable,\\tnet,\\tfor\\tthe\\tcurrent\\tportion\\tand\\t$578\\tmillion\\tand\\t$387\\tmillion,\\trespectively,\\tis\\trecorded\\twithin\\tOther\\tnon-current\\tassets\\tfor\\tthe\\tlong-\\nterm\\tportion.\\n58\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 60,\n        \"lines\": {\n          \"from\": 30,\n          \"to\": 39\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Energy\\tGeneration\\tand\\tStorage\\tLeasing\\nFor\\trevenue\\tarrangements\\twhere\\twe\\tare\\tthe\\tlessor\\tunder\\toperating\\tlease\\tagreements\\tfor\\tenergy\\tgeneration\\tand\\tstorage\\tproducts,\\twe\\trecord\\tlease\\nrevenue\\tfrom\\tminimum\\tlease\\tpayments,\\tincluding\\tupfront\\trebates\\tand\\tincentives\\tearned\\tfrom\\tsuch\\tsystems,\\ton\\ta\\tstraight-line\\tbasis\\tover\\tthe\\tlife\\tof\\tthe\\nlease\\tterm,\\tassuming\\tall\\tother\\trevenue\\trecognition\\tcriteria\\thave\\tbeen\\tmet.\\tThe\\tdifference\\tbetween\\tthe\\tpayments\\treceived\\tand\\tthe\\trevenue\\trecognized\\tis\\nrecorded\\tas\\tdeferred\\trevenue\\tor\\tdeferred\\tasset\\ton\\tthe\\tconsolidated\\tbalance\\tsheet.\\nFor\\tsolar\\tenergy\\tsystems\\twhere\\tcustomers\\tpurchase\\telectricity\\tfrom\\tus\\tunder\\tPPAs\\tprior\\tto\\tJanuary\\t1,\\t2019,\\twe\\thave\\tdetermined\\tthat\\tthese\\nagreements\\tshould\\tbe\\taccounted\\tfor\\tas\\toperating\\tleases\\tpursuant\\tto\\tASC\\t840,\\tLeases.\\tRevenue\\tis\\trecognized\\tbased\\ton\\tthe\\tamount\\tof\\telectricity\\ndelivered\\tat\\trates\\tspecified\\tunder\\tthe\\tcontracts,\\tassuming\\tall\\tother\\trevenue\\trecognition\\tcriteria\\tare\\tmet.\\nWe\\trecord\\tas\\tdeferred\\trevenue\\tany\\tamounts\\tthat\\tare\\tcollected\\tfrom\\tcustomers,\\tincluding\\tlease\\tprepayments,\\tin\\texcess\\tof\\trevenue\\trecognized,\\nwhich\\tis\\trecognized\\tas\\trevenue\\tratably\\tover\\tthe\\trespective\\tcustomer\\tcontract\\tterm.\\tAs\\tof\\tDecember\\t31,\\t2023\\tand\\t2022,\\tdeferred\\trevenue\\trelated\\tto\\tsuch\\ncustomer\\tpayments\\tamounted\\tto\\t$181\\tmillion\\tand\\t$191\\tmillion,\\trespectively.\\tDeferred\\trevenue\\talso\\tincludes\\tthe\\tportion\\tof\\trebates\\tand\\tincentives\\nreceived\\tfrom\\tutility\\tcompanies\\tand\\tvarious\\tlocal\\tand\\tstate\\tgovernment\\tagencies,\\twhich\\tis\\trecognized\\tas\\trevenue\\tover\\tthe\\tlease\\tterm.\\tAs\\tof\\nDecember\\t31,\\t2023\\tand\\t2022,\\tdeferred\\trevenue\\tfrom\\trebates\\tand\\tincentives\\twas\\timmaterial.\\nWe\\tcapitalize\\tinitial\\tdirect\\tcosts\\tfrom\\tthe\\texecution\\tof\\tagreements\\tfor\\tsolar\\tenergy\\tsystems\\tand\\tPPAs,\\twhich\\tinclude\\tthe\\treferral\\tfees\\tand\\tsales\\ncommissions,\\tas\\tan\\telement\\tof\\tsolar\\tenergy\\tsystems,\\tnet,\\tand\\tsubsequently\\tamortize\\tthese\\tcosts\\tover\\tthe\\tterm\\tof\\tthe\\trelated\\tagreements.\\nCost\\tof\\tRevenues\\nAutomotive\\tSegment\\nAutomotive\\tSales\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 61,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 18\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Automotive\\tSegment\\nAutomotive\\tSales\\nCost\\tof\\tautomotive\\tsales\\trevenue\\tincludes\\tdirect\\tand\\tindirect\\tmaterials,\\tlabor\\tcosts,\\tmanufacturing\\toverhead,\\tincluding\\tdepreciation\\tcosts\\tof\\ttooling\\nand\\tmachinery,\\tshipping\\tand\\tlogistic\\tcosts,\\tvehicle\\tconnectivity\\tcosts,\\tFSD\\tCapability\\tongoing\\tmaintenance\\tcosts,\\tallocations\\tof\\telectricity\\tand\\ninfrastructure\\tcosts\\trelated\\tto\\tour\\tSupercharger\\tnetwork\\tand\\treserves\\tfor\\testimated\\twarranty\\texpenses.\\tCost\\tof\\tautomotive\\tsales\\trevenues\\talso\\tincludes\\nadjustments\\tto\\twarranty\\texpense\\tand\\tcharges\\tto\\twrite\\tdown\\tthe\\tcarrying\\tvalue\\tof\\tour\\tinventory\\twhen\\tit\\texceeds\\tits\\testimated\\tnet\\trealizable\\tvalue\\tand\\tto\\nprovide\\tfor\\tobsolete\\tand\\ton-hand\\tinventory\\tin\\texcess\\tof\\tforecasted\\tdemand.\\tAdditionally,\\tcost\\tof\\tautomotive\\tsales\\trevenue\\tbenefits\\tfrom\\tmanufacturing\\ncredits\\tearned.\\nAutomotive\\tLeasing\\nCost\\tof\\tautomotive\\tleasing\\trevenue\\tincludes\\tthe\\tdepreciation\\tof\\toperating\\tlease\\tvehicles,\\tcost\\tof\\tgoods\\tsold\\tassociated\\twith\\tdirect\\tsales-type\\tleases\\nand\\twarranty\\texpense\\trelated\\tto\\tleased\\tvehicles.\\nServices\\tand\\tOther\\nCosts\\tof\\tservices\\tand\\tother\\trevenue\\tincludes\\tcost\\tof\\tused\\tvehicles\\tincluding\\trefurbishment\\tcosts,\\tcosts\\tassociated\\twith\\tproviding\\tnon-warranty\\nafter-sales\\tservices,\\tcosts\\tassociated\\twith\\tour\\tbody\\tshops\\tand\\tpart\\tsales,\\tcosts\\tof\\tpaid\\tSupercharging,\\tcosts\\tto\\tprovide\\tvehicle\\tinsurance\\tand\\tcosts\\tfor\\nretail\\tmerchandise.\\nEnergy\\tGeneration\\tand\\tStorage\\tSegment\\nEnergy\\tGeneration\\tand\\tStorage\\nCost\\tof\\tenergy\\tgeneration\\tand\\tstorage\\trevenue\\tincludes\\tdirect\\tand\\tindirect\\tmaterial\\tand\\tlabor\\tcosts,\\toverhead\\tcosts,\\tfreight,\\twarranty\\texpense,\\tand\\namortization\\tof\\tcertain\\tacquired\\tintangible\\tassets.\\tCost\\tof\\tenergy\\tgeneration\\tand\\tstorage\\trevenue\\talso\\tincludes\\tcharges\\tto\\twrite\\tdown\\tthe\\tcarrying\\tvalue\\nof\\tour\\tinventory\\twhen\\tit\\texceeds\\tits\\testimated\\tnet\\trealizable\\tvalue\\tand\\tto\\tprovide\\tfor\\tobsolete\\tand\\ton-hand\\tinventory\\tin\\texcess\\tof\\tforecasted\\tdemand.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 61,\n        \"lines\": {\n          \"from\": 17,\n          \"to\": 36\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Additionally,\\tcost\\tof\\tenergy\\tgeneration\\tand\\tstorage\\trevenue\\tbenefits\\tfrom\\tmanufacturing\\tcredits\\tearned.\\tIn\\tagreements\\tfor\\tsolar\\tenergy\\tsystems\\tand\\nPPAs\\twhere\\twe\\tare\\tthe\\tlessor,\\tthe\\tcost\\tof\\trevenue\\tis\\tprimarily\\tcomprised\\tof\\tdepreciation\\tof\\tthe\\tcost\\tof\\tleased\\tsolar\\tenergy\\tsystems,\\tmaintenance\\tcosts\\nassociated\\twith\\tthose\\tsystems\\tand\\tamortization\\tof\\tany\\tinitial\\tdirect\\tcosts.\\n59\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 61,\n        \"lines\": {\n          \"from\": 37,\n          \"to\": 40\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Research\\tand\\tDevelopment\\tCosts\\nResearch\\tand\\tdevelopment\\tcosts\\tare\\texpensed\\tas\\tincurred.\\nIncome\\tTaxes\\nWe\\tare\\tsubject\\tto\\tincome\\ttaxes\\tin\\tthe\\tU.S.\\tand\\tin\\tmany\\tforeign\\tjurisdictions.\\tIncome\\ttaxes\\tare\\tcomputed\\tusing\\tthe\\tasset\\tand\\tliability\\tmethod,\\tunder\\nwhich\\tdeferred\\ttax\\tassets\\tand\\tliabilities\\tare\\tdetermined\\tbased\\ton\\tthe\\tdifference\\tbetween\\tthe\\tfinancial\\tstatement\\tand\\ttax\\tbases\\tof\\tassets\\tand\\tliabilities\\nusing\\tenacted\\ttax\\trates\\tin\\teffect\\tfor\\tthe\\tyear\\tin\\twhich\\tthe\\tdifferences\\tare\\texpected\\tto\\taffect\\ttaxable\\tincome.\\tValuation\\tallowances\\tare\\testablished\\twhen\\nnecessary\\tto\\treduce\\tdeferred\\ttax\\tassets\\tto\\tthe\\tamount\\texpected\\tto\\tbe\\trealized.\\nWe\\tmonitor\\tthe\\trealizability\\tof\\tour\\tdeferred\\ttax\\tassets\\ttaking\\tinto\\taccount\\tall\\trelevant\\tfactors\\tat\\teach\\treporting\\tperiod.\\tSignificant\\tjudgment\\tis\\nrequired\\tin\\tdetermining\\tour\\tprovision\\tfor\\tincome\\ttaxes,\\tour\\tdeferred\\ttax\\tassets\\tand\\tliabilities\\tand\\tany\\tvaluation\\tallowance\\trecorded\\tagainst\\tour\\tnet\\ndeferred\\ttax\\tassets\\tthat\\tare\\tnot\\tmore\\tlikely\\tthan\\tnot\\tto\\tbe\\trealized.\\tIn\\tcompleting\\tour\\tassessment\\tof\\trealizability\\tof\\tour\\tdeferred\\ttax\\tassets,\\twe\\tconsider\\nour\\thistory\\tof\\tincome\\t(loss)\\tmeasured\\tat\\tpre-tax\\tincome\\t(loss)\\tadjusted\\tfor\\tpermanent\\tbook-tax\\tdifferences\\ton\\ta\\tjurisdictional\\tbasis,\\tvolatility\\tin\\tactual\\nearnings,\\texcess\\ttax\\tbenefits\\trelated\\tto\\tstock-based\\tcompensation\\tin\\trecent\\tprior\\tyears,\\tand\\timpacts\\tof\\tthe\\ttiming\\tof\\treversal\\tof\\texisting\\ttemporary\\ndifferences.\\tWe\\talso\\trely\\ton\\tour\\tassessment\\tof\\tthe\\tCompany’s\\tprojected\\tfuture\\tresults\\tof\\tbusiness\\toperations,\\tincluding\\tuncertainty\\tin\\tfuture\\toperating\\nresults\\trelative\\tto\\thistorical\\tresults,\\tvolatility\\tin\\tthe\\tmarket\\tprice\\tof\\tour\\tcommon\\tstock\\tand\\tits\\tperformance\\tover\\ttime,\\tvariable\\tmacroeconomic\\tconditions\\nimpacting\\tour\\tability\\tto\\tforecast\\tfuture\\ttaxable\\tincome,\\tand\\tchanges\\tin\\tbusiness\\tthat\\tmay\\taffect\\tthe\\texistence\\tand\\tmagnitude\\tof\\tfuture\\ttaxable\\tincome.\\nOur\\tvaluation\\tallowance\\tassessment\\tis\\tbased\\ton\\tour\\tbest\\testimate\\tof\\tfuture\\tresults\\tconsidering\\tall\\tavailable\\tinformation.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 62,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 16\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"We\\trecord\\tliabilities\\trelated\\tto\\tuncertain\\ttax\\tpositions\\twhen,\\tdespite\\tour\\tbelief\\tthat\\tour\\ttax\\treturn\\tpositions\\tare\\tsupportable,\\twe\\tbelieve\\tthat\\tit\\tis\\nmore\\tlikely\\tthan\\tnot\\tthat\\tthose\\tpositions\\tmay\\tnot\\tbe\\tfully\\tsustained\\tupon\\treview\\tby\\ttax\\tauthorities.\\tAccrued\\tinterest\\tand\\tpenalties\\trelated\\tto\\nunrecognized\\ttax\\tbenefits\\tare\\tclassified\\tas\\tincome\\ttax\\texpense.\\nThe\\tTax\\tCuts\\tand\\tJobs\\tAct\\tsubjects\\ta\\tU.S.\\tshareholder\\tto\\ttax\\ton\\tglobal\\tintangible\\tlow-taxed\\tincome\\t(“GILTI”)\\tearned\\tby\\tcertain\\tforeign\\tsubsidiaries.\\nUnder\\tGAAP,\\twe\\tcan\\tmake\\tan\\taccounting\\tpolicy\\telection\\tto\\teither\\ttreat\\ttaxes\\tdue\\ton\\tthe\\tGILTI\\tinclusion\\tas\\ta\\tcurrent\\tperiod\\texpense\\tor\\tfactor\\tsuch\\namounts\\tinto\\tour\\tmeasurement\\tof\\tdeferred\\ttaxes.\\tWe\\telected\\tthe\\tdeferred\\tmethod,\\tunder\\twhich\\twe\\trecorded\\tthe\\tcorresponding\\tdeferred\\ttax\\tassets\\tand\\nliabilities\\tin\\tour\\tconsolidated\\tbalance\\tsheets.\\nComprehensive\\tIncome\\nComprehensive\\tincome\\tis\\tcomprised\\tof\\tnet\\tincome\\tand\\tother\\tcomprehensive\\tincome\\t(loss).\\tOther\\tcomprehensive\\tincome\\t(loss)\\tconsists\\tof\\tforeign\\ncurrency\\ttranslation\\tadjustments\\tand\\tunrealized\\tnet\\tgains\\tand\\tlosses\\ton\\tinvestments\\tthat\\thave\\tbeen\\texcluded\\tfrom\\tthe\\tdetermination\\tof\\tnet\\tincome.\\nStock-Based\\tCompensation\\nWe\\tuse\\tthe\\tfair\\tvalue\\tmethod\\tof\\taccounting\\tfor\\tour\\tstock\\toptions\\tand\\tRSUs\\tgranted\\tto\\temployees\\tand\\tfor\\tour\\tESPP\\tto\\tmeasure\\tthe\\tcost\\tof\\temployee\\nservices\\treceived\\tin\\texchange\\tfor\\tthe\\tstock-based\\tawards.\\tThe\\tfair\\tvalue\\tof\\tstock\\toption\\tawards\\twith\\tonly\\tservice\\tand/or\\tperformance\\tconditions\\tis\\nestimated\\ton\\tthe\\tgrant\\tor\\toffering\\tdate\\tusing\\tthe\\tBlack-Scholes\\toption-pricing\\tmodel.\\tThe\\tBlack-Scholes\\toption-pricing\\tmodel\\trequires\\tinputs\\tsuch\\tas\\tthe\\nrisk-free\\tinterest\\trate,\\texpected\\tterm\\tand\\texpected\\tvolatility.\\tThese\\tinputs\\tare\\tsubjective\\tand\\tgenerally\\trequire\\tsignificant\\tjudgment.\\tThe\\tfair\\tvalue\\tof\\nRSUs\\tis\\tmeasured\\ton\\tthe\\tgrant\\tdate\\tbased\\ton\\tthe\\tclosing\\tfair\\tmarket\\tvalue\\tof\\tour\\tcommon\\tstock.\\tThe\\tresulting\\tcost\\tis\\trecognized\\tover\\tthe\\tperiod\\tduring\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 62,\n        \"lines\": {\n          \"from\": 17,\n          \"to\": 32\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"which\\tan\\temployee\\tis\\trequired\\tto\\tprovide\\tservice\\tin\\texchange\\tfor\\tthe\\tawards,\\tusually\\tthe\\tvesting\\tperiod,\\twhich\\tis\\tgenerally\\tfour\\tyears\\tfor\\tstock\\toptions\\nand\\tRSUs\\tand\\tsix\\tmonths\\tfor\\tthe\\tESPP.\\tStock-based\\tcompensation\\texpense\\tis\\trecognized\\ton\\ta\\tstraight-line\\tbasis,\\tnet\\tof\\tactual\\tforfeitures\\tin\\tthe\\tperiod.\\nFor\\tperformance-based\\tawards,\\tstock-based\\tcompensation\\texpense\\tis\\trecognized\\tover\\tthe\\texpected\\tperformance\\tachievement\\tperiod\\tof\\tindividual\\nperformance\\tmilestones\\twhen\\tthe\\tachievement\\tof\\teach\\tindividual\\tperformance\\tmilestone\\tbecomes\\tprobable.\\n60\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 62,\n        \"lines\": {\n          \"from\": 33,\n          \"to\": 37\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"As\\twe\\taccumulate\\tadditional\\temployee\\tstock-based\\tawards\\tdata\\tover\\ttime\\tand\\tas\\twe\\tincorporate\\tmarket\\tdata\\trelated\\tto\\tour\\tcommon\\tstock,\\twe\\tmay\\ncalculate\\tsignificantly\\tdifferent\\tvolatilities\\tand\\texpected\\tlives,\\twhich\\tcould\\tmaterially\\timpact\\tthe\\tvaluation\\tof\\tour\\tstock-based\\tawards\\tand\\tthe\\tstock-based\\ncompensation\\texpense\\tthat\\twe\\twill\\trecognize\\tin\\tfuture\\tperiods.\\tStock-based\\tcompensation\\texpense\\tis\\trecorded\\tin\\tCost\\tof\\trevenues,\\tResearch\\tand\\ndevelopment\\texpense\\tand\\tSelling,\\tgeneral\\tand\\tadministrative\\texpense\\tin\\tthe\\tconsolidated\\tstatements\\tof\\toperations.\\nNoncontrolling\\tInterests\\tand\\tRedeemable\\tNoncontrolling\\tInterests\\nNoncontrolling\\tinterests\\tand\\tredeemable\\tnoncontrolling\\tinterests\\trepresent\\tthird-party\\tinterests\\tin\\tthe\\tnet\\tassets\\tunder\\tcertain\\tfunding\\narrangements,\\tor\\tfunds,\\tthat\\twe\\thave\\tentered\\tinto\\tto\\tfinance\\tthe\\tcosts\\tof\\tsolar\\tenergy\\tsystems\\tand\\tvehicles\\tunder\\toperating\\tleases.\\tWe\\thave\\tdetermined\\nthat\\tthe\\tcontractual\\tprovisions\\tof\\tthe\\tfunds\\trepresent\\tsubstantive\\tprofit-sharing\\tarrangements.\\tWe\\thave\\tfurther\\tdetermined\\tthat\\tthe\\tmethodology\\tfor\\ncalculating\\tthe\\tnoncontrolling\\tinterest\\tand\\tredeemable\\tnoncontrolling\\tinterest\\tbalances\\tthat\\treflects\\tthe\\tsubstantive\\tprofit-sharing\\tarrangements\\tis\\ta\\nbalance\\tsheet\\tapproach\\tusing\\tthe\\thypothetical\\tliquidation\\tat\\tbook\\tvalue\\t(“HLBV”)\\tmethod.\\tWe,\\ttherefore,\\tdetermine\\tthe\\tamount\\tof\\tthe\\tnoncontrolling\\ninterests\\tand\\tredeemable\\tnoncontrolling\\tinterests\\tin\\tthe\\tnet\\tassets\\tof\\tthe\\tfunds\\tat\\teach\\tbalance\\tsheet\\tdate\\tusing\\tthe\\tHLBV\\tmethod,\\twhich\\tis\\tpresented\\ton\\nthe\\tconsolidated\\tbalance\\tsheet\\tas\\tnoncontrolling\\tinterests\\tin\\tsubsidiaries\\tand\\tredeemable\\tnoncontrolling\\tinterests\\tin\\tsubsidiaries.\\tUnder\\tthe\\tHLBV\\nmethod,\\tthe\\tamounts\\treported\\tas\\tnoncontrolling\\tinterests\\tand\\tredeemable\\tnoncontrolling\\tinterests\\tin\\tthe\\tconsolidated\\tbalance\\tsheet\\trepresent\\tthe\\namounts\\tthe\\tthird\\tparties\\twould\\thypothetically\\treceive\\tat\\teach\\tbalance\\tsheet\\tdate\\tunder\\tthe\\tliquidation\\tprovisions\\tof\\tthe\\tfunds,\\tassuming\\tthe\\tnet\\tassets\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 63,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 14\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"of\\tthe\\tfunds\\twere\\tliquidated\\tat\\ttheir\\trecorded\\tamounts\\tdetermined\\tin\\taccordance\\twith\\tGAAP\\tand\\twith\\ttax\\tlaws\\teffective\\tat\\tthe\\tbalance\\tsheet\\tdate\\tand\\ndistributed\\tto\\tthe\\tthird\\tparties.\\tThe\\tthird\\tparties’\\tinterests\\tin\\tthe\\tresults\\tof\\toperations\\tof\\tthe\\tfunds\\tare\\tdetermined\\tas\\tthe\\tdifference\\tin\\tthe\\tnoncontrolling\\ninterest\\tand\\tredeemable\\tnoncontrolling\\tinterest\\tbalances\\tin\\tthe\\tconsolidated\\tbalance\\tsheets\\tbetween\\tthe\\tstart\\tand\\tend\\tof\\teach\\treporting\\tperiod,\\tafter\\ntaking\\tinto\\taccount\\tany\\tcapital\\ttransactions\\tbetween\\tthe\\tfunds\\tand\\tthe\\tthird\\tparties.\\tHowever,\\tthe\\tredeemable\\tnoncontrolling\\tinterest\\tbalance\\tis\\tat\\tleast\\nequal\\tto\\tthe\\tredemption\\tamount.\\tThe\\tredeemable\\tnoncontrolling\\tinterest\\tbalance\\tis\\tpresented\\tas\\ttemporary\\tequity\\tin\\tthe\\tmezzanine\\tsection\\tof\\tthe\\nconsolidated\\tbalance\\tsheet\\tsince\\tthese\\tthird\\tparties\\thave\\tthe\\tright\\tto\\tredeem\\ttheir\\tinterests\\tin\\tthe\\tfunds\\tfor\\tcash\\tor\\tother\\tassets.\\tFor\\tcertain\\tfunds,\\tthere\\nhave\\tbeen\\tsignificant\\tfluctuations\\tin\\tnet\\t(loss)\\tincome\\tattributable\\tto\\tnoncontrolling\\tinterests\\tand\\tredeemable\\tnoncontrolling\\tinterests\\tin\\tsubsidiaries\\tdue\\nto\\tchanges\\tin\\tthe\\tliquidation\\tprovisions\\tas\\ttime-based\\tmilestones\\thave\\tbeen\\treached.\\nNet\\tIncome\\tper\\tShare\\tof\\tCommon\\tStock\\tAttributable\\tto\\tCommon\\tStockholders\\nBasic\\tnet\\tincome\\tper\\tshare\\tof\\tcommon\\tstock\\tattributable\\tto\\tcommon\\tstockholders\\tis\\tcalculated\\tby\\tdividing\\tnet\\tincome\\tattributable\\tto\\tcommon\\nstockholders\\tby\\tthe\\tweighted-average\\tshares\\tof\\tcommon\\tstock\\toutstanding\\tfor\\tthe\\tperiod.\\tPotentially\\tdilutive\\tshares,\\twhich\\tare\\tbased\\ton\\tthe\\tweighted-\\naverage\\tshares\\tof\\tcommon\\tstock\\tunderlying\\toutstanding\\tstock-based\\tawards,\\twarrants\\tand\\tconvertible\\tsenior\\tnotes\\tusing\\tthe\\ttreasury\\tstock\\tmethod\\tor\\nthe\\tif-converted\\tmethod,\\tas\\tapplicable,\\tare\\tincluded\\twhen\\tcalculating\\tdiluted\\tnet\\tincome\\tper\\tshare\\tof\\tcommon\\tstock\\tattributable\\tto\\tcommon\\tstockholders\\nwhen\\ttheir\\teffect\\tis\\tdilutive.\\nFurthermore,\\tin\\tconnection\\twith\\tthe\\tofferings\\tof\\tour\\tconvertible\\tsenior\\tnotes,\\twe\\tentered\\tinto\\tconvertible\\tnote\\thedges\\tand\\twarrants\\t(see\\tNote\\t11,\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 63,\n        \"lines\": {\n          \"from\": 15,\n          \"to\": 29\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Debt).\\tHowever,\\tour\\tconvertible\\tnote\\thedges\\tare\\tnot\\tincluded\\twhen\\tcalculating\\tpotentially\\tdilutive\\tshares\\tsince\\ttheir\\teffect\\tis\\talways\\tanti-dilutive.\\tThe\\nstrike\\tprice\\ton\\tthe\\twarrants\\twere\\tbelow\\tour\\taverage\\tshare\\tprice\\tduring\\tthe\\tperiod\\tand\\twere\\tincluded\\tin\\tthe\\ttables\\tbelow.\\tWarrants\\tare\\tincluded\\tin\\tthe\\nweighted-average\\tshares\\tused\\tin\\tcomputing\\tbasic\\tnet\\tincome\\tper\\tshare\\tof\\tcommon\\tstock\\tin\\tthe\\tperiod(s)\\tthey\\tare\\tsettled.\\nThe\\tfollowing\\ttable\\tpresents\\tthe\\treconciliation\\tof\\tnet\\tincome\\tattributable\\tto\\tcommon\\tstockholders\\tto\\tnet\\tincome\\tused\\tin\\tcomputing\\tbasic\\tand\\ndiluted\\tnet\\tincome\\tper\\tshare\\tof\\tcommon\\tstock\\t(in\\tmillions):\\nYear\\tEnded\\tDecember\\t31,\\n202320222021\\nNet\\tincome\\tattributable\\tto\\tcommon\\tstockholders$14,997\\t$12,556\\t$5,519\\t\\nLess:\\tBuy-out\\tof\\tnoncontrolling\\tinterest(2)(27)(5)\\nNet\\tincome\\tused\\tin\\tcomputing\\tbasic\\tnet\\tincome\\tper\\tshare\\tof\\tcommon\\tstock14,999\\t12,583\\t5,524\\t\\nLess:\\tDilutive\\tconvertible\\tdebt—\\t(1)(9)\\nNet\\tincome\\tused\\tin\\tcomputing\\tdiluted\\tnet\\tincome\\tper\\tshare\\tof\\tcommon\\tstock\\n$14,999\\t$12,584\\t$5,533\\t\\n61\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 63,\n        \"lines\": {\n          \"from\": 30,\n          \"to\": 43\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"The\\tfollowing\\ttable\\tpresents\\tthe\\treconciliation\\tof\\tbasic\\tto\\tdiluted\\tweighted\\taverage\\tshares\\tused\\tin\\tcomputing\\tnet\\tincome\\tper\\tshare\\tof\\tcommon\\nstock\\tattributable\\tto\\tcommon\\tstockholders\\t(in\\tmillions):\\nYear\\tEnded\\tDecember\\t31,\\n202320222021\\nWeighted\\taverage\\tshares\\tused\\tin\\tcomputing\\tnet\\tincome\\tper\\tshare\\tof\\tcommon\\tstock,\\nbasic3,1743,1302,959\\nAdd:\\nStock-based\\tawards298310292\\nConvertible\\tsenior\\tnotes2329\\nWarrants1132106\\nWeighted\\taverage\\tshares\\tused\\tin\\tcomputing\\tnet\\tincome\\tper\\tshare\\tof\\tcommon\\tstock,\\ndiluted\\n3,4853,4753,386\\nThe\\tfollowing\\ttable\\tpresents\\tthe\\tpotentially\\tdilutive\\tshares\\tthat\\twere\\texcluded\\tfrom\\tthe\\tcomputation\\tof\\tdiluted\\tnet\\tincome\\tper\\tshare\\tof\\tcommon\\nstock\\tattributable\\tto\\tcommon\\tstockholders,\\tbecause\\ttheir\\teffect\\twas\\tanti-dilutive\\t(in\\tmillions):\\nYear\\tEnded\\tDecember\\t31,\\n202320222021\\nStock-based\\tawards\\n1241\\nBusiness\\tCombinations\\nWe\\taccount\\tfor\\tbusiness\\tacquisitions\\tunder\\tASC\\t805,\\tBusiness\\tCombinations.\\tThe\\ttotal\\tpurchase\\tconsideration\\tfor\\tan\\tacquisition\\tis\\tmeasured\\tas\\tthe\\nfair\\tvalue\\tof\\tthe\\tassets\\tgiven,\\tequity\\tinstruments\\tissued\\tand\\tliabilities\\tassumed\\tat\\tthe\\tacquisition\\tdate.\\tCosts\\tthat\\tare\\tdirectly\\tattributable\\tto\\tthe\\nacquisition\\tare\\texpensed\\tas\\tincurred.\\tIdentifiable\\tassets\\t(including\\tintangible\\tassets),\\tliabilities\\tassumed\\t(including\\tcontingent\\tliabilities)\\tand\\nnoncontrolling\\tinterests\\tin\\tan\\tacquisition\\tare\\tmeasured\\tinitially\\tat\\ttheir\\tfair\\tvalues\\tat\\tthe\\tacquisition\\tdate.\\tWe\\trecognize\\tgoodwill\\tif\\tthe\\tfair\\tvalue\\tof\\tthe\\ntotal\\tpurchase\\tconsideration\\tand\\tany\\tnoncontrolling\\tinterests\\tis\\tin\\texcess\\tof\\tthe\\tnet\\tfair\\tvalue\\tof\\tthe\\tidentifiable\\tassets\\tacquired\\tand\\tthe\\tliabilities\\nassumed.\\tWe\\trecognize\\ta\\tbargain\\tpurchase\\tgain\\twithin\\tOther\\tincome\\t(expense),\\tnet,\\tin\\tthe\\tconsolidated\\tstatement\\tof\\toperations\\tif\\tthe\\tnet\\tfair\\tvalue\\tof\\nthe\\tidentifiable\\tassets\\tacquired\\tand\\tthe\\tliabilities\\tassumed\\tis\\tin\\texcess\\tof\\tthe\\tfair\\tvalue\\tof\\tthe\\ttotal\\tpurchase\\tconsideration\\tand\\tany\\tnoncontrolling\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 64,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 27\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"interests.\\tWe\\tinclude\\tthe\\tresults\\tof\\toperations\\tof\\tthe\\tacquired\\tbusiness\\tin\\tthe\\tconsolidated\\tfinancial\\tstatements\\tbeginning\\ton\\tthe\\tacquisition\\tdate.\\nCash\\tand\\tCash\\tEquivalents\\nAll\\thighly\\tliquid\\tinvestments\\twith\\tan\\toriginal\\tmaturity\\tof\\tthree\\tmonths\\tor\\tless\\tat\\tthe\\tdate\\tof\\tpurchase\\tare\\tconsidered\\tcash\\tequivalents.\\tOur\\tcash\\nequivalents\\tare\\tprimarily\\tcomprised\\tof\\tU.S.\\tgovernment\\tsecurities,\\tmoney\\tmarket\\tfunds\\tand\\tcommercial\\tpaper.\\nRestricted\\tCash\\nWe\\tmaintain\\tcertain\\tcash\\tbalances\\trestricted\\tas\\tto\\twithdrawal\\tor\\tuse.\\tOur\\trestricted\\tcash\\tis\\tcomprised\\tprimarily\\tof\\tcash\\theld\\tto\\tservice\\tcertain\\npayments\\tunder\\tvarious\\tsecured\\tdebt\\tfacilities.\\tIn\\taddition,\\trestricted\\tcash\\tincludes\\tcash\\theld\\tas\\tcollateral\\tfor\\tsales\\tto\\tlease\\tpartners\\twith\\ta\\tresale\\tvalue\\nguarantee,\\tletters\\tof\\tcredit,\\treal\\testate\\tleases\\tand\\tdeposits\\theld\\tfor\\tour\\tinsurance\\tservices.\\tWe\\trecord\\trestricted\\tcash\\tas\\tother\\tassets\\tin\\tthe\\tconsolidated\\nbalance\\tsheets\\tand\\tdetermine\\tcurrent\\tor\\tnon-current\\tclassification\\tbased\\ton\\tthe\\texpected\\tduration\\tof\\tthe\\trestriction.\\n62\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 64,\n        \"lines\": {\n          \"from\": 28,\n          \"to\": 37\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Our\\ttotal\\tcash\\tand\\tcash\\tequivalents\\tand\\trestricted\\tcash,\\tas\\tpresented\\tin\\tthe\\tconsolidated\\tstatements\\tof\\tcash\\tflows,\\twas\\tas\\tfollows\\t(in\\tmillions):\\nDecember\\t31,\\n2023\\nDecember\\t31,\\n2022\\nDecember\\t31,\\n2021\\nCash\\tand\\tcash\\tequivalents\\n$16,398\\t$16,253\\t$17,576\\t\\nRestricted\\tcash\\tincluded\\tin\\tprepaid\\texpenses\\tand\\tother\\tcurrent\\tassets543\\t294\\t345\\t\\nRestricted\\tcash\\tincluded\\tin\\tother\\tnon-current\\tassets248\\t377\\t223\\t\\nTotal\\tas\\tpresented\\tin\\tthe\\tconsolidated\\tstatements\\tof\\tcash\\tflows\\n$17,189\\t$16,924\\t$18,144\\t\\nInvestments\\nInvestments\\tmay\\tbe\\tcomprised\\tof\\ta\\tcombination\\tof\\tmarketable\\tsecurities,\\tincluding\\tU.S.\\tgovernment\\tsecurities,\\tcorporate\\tdebt\\tsecurities,\\ncommercial\\tpaper,\\ttime\\tdeposits,\\tand\\tcertain\\tcertificates\\tof\\tdeposit,\\twhich\\tare\\tall\\tdesignated\\tas\\tavailable-for-sale\\tand\\treported\\tat\\testimated\\tfair\\tvalue,\\nwith\\tunrealized\\tgains\\tand\\tlosses\\trecorded\\tin\\taccumulated\\tother\\tcomprehensive\\tincome\\twhich\\tis\\tincluded\\twithin\\tstockholders’\\tequity.\\tAvailable-for-sale\\nmarketable\\tsecurities\\twith\\tmaturities\\tgreater\\tthan\\tthree\\tmonths\\tat\\tthe\\tdate\\tof\\tpurchase\\tare\\tincluded\\tin\\tshort-term\\tinvestments\\tin\\tour\\tconsolidated\\nbalance\\tsheets.\\tInterest,\\tdividends,\\tamortization\\tand\\taccretion\\tof\\tpurchase\\tpremiums\\tand\\tdiscounts\\ton\\tthese\\tinvestments\\tare\\tincluded\\twithin\\tInterest\\nincome\\tin\\tour\\tconsolidated\\tstatements\\tof\\toperations.\\nThe\\tcost\\tof\\tavailable-for-sale\\tinvestments\\tsold\\tis\\tbased\\ton\\tthe\\tspecific\\tidentification\\tmethod.\\tRealized\\tgains\\tand\\tlosses\\ton\\tthe\\tsale\\tof\\tavailable-for-\\nsale\\tinvestments\\tare\\trecorded\\tin\\tOther\\tincome\\t(expense),\\tnet.\\nWe\\tregularly\\treview\\tall\\tof\\tour\\tinvestments\\tfor\\tdeclines\\tin\\tfair\\tvalue.\\tThe\\treview\\tincludes\\tbut\\tis\\tnot\\tlimited\\tto\\t(i)\\tthe\\tconsideration\\tof\\tthe\\tcause\\tof\\tthe\\ndecline,\\t(ii)\\tany\\tcurrently\\trecorded\\texpected\\tcredit\\tlosses\\tand\\t(iii)\\tthe\\tcreditworthiness\\tof\\tthe\\trespective\\tsecurity\\tissuers.\\tThe\\tamortized\\tcost\\tbasis\\tof\\tour\\ninvestments\\tapproximates\\tits\\tfair\\tvalue.\\nAccounts\\tReceivable\\tand\\tAllowance\\tfor\\tDoubtful\\tAccounts\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 65,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 26\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Accounts\\treceivable\\tprimarily\\tinclude\\tamounts\\trelated\\tto\\treceivables\\tfrom\\tfinancial\\tinstitutions\\tand\\tleasing\\tcompanies\\toffering\\tvarious\\tfinancing\\nproducts\\tto\\tour\\tcustomers,\\tsales\\tof\\tenergy\\tgeneration\\tand\\tstorage\\tproducts,\\tsales\\tof\\tregulatory\\tcredits\\tto\\tother\\tautomotive\\tmanufacturers\\tand\\ngovernment\\trebates\\talready\\tpassed\\tthrough\\tto\\tcustomers.\\tWe\\tprovide\\tan\\tallowance\\tagainst\\taccounts\\treceivable\\tfor\\tthe\\tamount\\twe\\texpect\\tto\\tbe\\nuncollectible.\\tWe\\twrite-off\\taccounts\\treceivable\\tagainst\\tthe\\tallowance\\twhen\\tthey\\tare\\tdeemed\\tuncollectible.\\nDepending\\ton\\tthe\\tday\\tof\\tthe\\tweek\\ton\\twhich\\tthe\\tend\\tof\\ta\\tfiscal\\tquarter\\tfalls,\\tour\\taccounts\\treceivable\\tbalance\\tmay\\tfluctuate\\tas\\twe\\tare\\twaiting\\tfor\\ncertain\\tcustomer\\tpayments\\tto\\tclear\\tthrough\\tour\\tbanking\\tinstitutions\\tand\\treceipts\\tof\\tpayments\\tfrom\\tour\\tfinancing\\tpartners,\\twhich\\tcan\\ttake\\tup\\tto\\napproximately\\ttwo\\tweeks\\tbased\\ton\\tthe\\tcontractual\\tpayment\\tterms\\twith\\tsuch\\tpartners.\\tOur\\taccounts\\treceivable\\tbalances\\tassociated\\twith\\tour\\tsales\\tof\\nregulatory\\tcredits\\tare\\tdependent\\ton\\tcontractual\\tpayment\\tterms.\\tAdditionally,\\tgovernment\\trebates\\tcan\\ttake\\tup\\tto\\ta\\tyear\\tor\\tmore\\tto\\tbe\\tcollected\\ndepending\\ton\\tthe\\tcustomary\\tprocessing\\ttimelines\\tof\\tthe\\tspecific\\tjurisdictions\\tissuing\\tthem.\\tThese\\tvarious\\tfactors\\tmay\\thave\\ta\\tsignificant\\timpact\\ton\\tour\\naccounts\\treceivable\\tbalance\\tfrom\\tperiod\\tto\\tperiod.\\tAs\\tof\\tDecember\\t31,\\t2023\\tand\\t2022,\\twe\\thad\\t$207\\tmillion\\tand\\t$753\\tmillion,\\trespectively,\\tof\\tlong-term\\ngovernment\\trebates\\treceivable\\tin\\tOther\\tnon-current\\tassets\\tin\\tour\\tconsolidated\\tbalance\\tsheets.\\nFinancing\\tReceivables\\nWe\\tprovide\\tfinancing\\toptions\\tto\\tour\\tcustomers\\tfor\\tour\\tautomotive\\tand\\tenergy\\tproducts.\\tFinancing\\treceivables\\tare\\tcarried\\tat\\tamortized\\tcost,\\tnet\\tof\\nallowance\\tfor\\tloan\\tlosses.\\tProvisions\\tfor\\tloan\\tlosses\\tare\\tcharged\\tto\\toperations\\tin\\tamounts\\tsufficient\\tto\\tmaintain\\tthe\\tallowance\\tfor\\tloan\\tlosses\\tat\\tlevels\\nconsidered\\tadequate\\tto\\tcover\\texpected\\tcredit\\tlosses\\ton\\tthe\\tfinancing\\treceivables.\\tIn\\tdetermining\\texpected\\tcredit\\tlosses,\\twe\\tconsider\\tour\\thistorical\\tlevel\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 65,\n        \"lines\": {\n          \"from\": 27,\n          \"to\": 41\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"of\\tcredit\\tlosses,\\tcurrent\\teconomic\\ttrends,\\tand\\treasonable\\tand\\tsupportable\\tforecasts\\tthat\\taffect\\tthe\\tcollectability\\tof\\tthe\\tfuture\\tcash\\tflows.\\nWhen\\toriginating\\tconsumer\\treceivables,\\twe\\treview\\tthe\\tcredit\\tapplication,\\tthe\\tproposed\\tcontract\\tterms,\\tcredit\\tbureau\\tinformation\\t(e.g.,\\tFICO\\tscore)\\nand\\tother\\tinformation.\\tOur\\tevaluation\\temphasizes\\tthe\\tapplicant’s\\tability\\tto\\tpay\\tand\\tcreditworthiness\\tfocusing\\ton\\tpayment,\\taffordability,\\tand\\tapplicant\\ncredit\\thistory\\tas\\tkey\\tconsiderations.\\tGenerally,\\tall\\tcustomers\\tin\\tthis\\tportfolio\\thave\\tstrong\\tcreditworthiness\\tat\\tloan\\torigination.\\n63\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 65,\n        \"lines\": {\n          \"from\": 42,\n          \"to\": 46\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"After\\torigination,\\twe\\treview\\tthe\\tcredit\\tquality\\tof\\tretail\\tfinancing\\tbased\\ton\\tcustomer\\tpayment\\tactivity\\tand\\taging\\tanalysis.\\tFor\\tall\\tfinancing\\nreceivables,\\twe\\tdefine\\t“past\\tdue”\\tas\\tany\\tpayment,\\tincluding\\tprincipal\\tand\\tinterest,\\twhich\\tis\\tat\\tleast\\t31\\tdays\\tpast\\tthe\\tcontractual\\tdue\\tdate.\\tAs\\tof\\nDecember\\t31,\\t2023\\tand\\t2022,\\tthe\\tvast\\tmajority\\tof\\tour\\tfinancing\\treceivables\\twere\\tat\\tcurrent\\tstatus\\twith\\tonly\\tan\\timmaterial\\tbalance\\tbeing\\tpast\\tdue.\\tAs\\tof\\nDecember\\t31,\\t2023,\\tthe\\tmajority\\tof\\tour\\tfinancing\\treceivables,\\texcluding\\tMyPower\\tnotes\\treceivable,\\twere\\toriginated\\tin\\t2023\\tand\\t2022,\\tand\\tas\\tof\\nDecember\\t31,\\t2022,\\tthe\\tmajority\\tof\\tour\\tfinancing\\treceivables,\\texcluding\\tMyPower\\tnotes\\treceivable,\\twere\\toriginated\\tin\\t2022.\\nWe\\thave\\tcustomer\\tnotes\\treceivable\\tunder\\tthe\\tlegacy\\tMyPower\\tloan\\tprogram,\\twhich\\tprovided\\tresidential\\tcustomers\\twith\\tthe\\toption\\tto\\tfinance\\tthe\\npurchase\\tof\\ta\\tsolar\\tenergy\\tsystem\\tthrough\\ta\\t30-year\\tloan\\tand\\twere\\tall\\toriginated\\tprior\\tto\\tyear\\t2018.\\tThe\\toutstanding\\tbalances,\\tnet\\tof\\tany\\tallowance\\tfor\\nexpected\\tcredit\\tlosses,\\tare\\tpresented\\ton\\tthe\\tconsolidated\\tbalance\\tsheets\\tas\\ta\\tcomponent\\tof\\tPrepaid\\texpenses\\tand\\tother\\tcurrent\\tassets\\tfor\\tthe\\tcurrent\\nportion\\tand\\tas\\tOther\\tnon-current\\tassets\\tfor\\tthe\\tlong-term\\tportion.\\tAs\\tof\\tDecember\\t31,\\t2023\\tand\\t2022,\\tthe\\ttotal\\toutstanding\\tbalance\\tof\\tMyPower\\ncustomer\\tnotes\\treceivable,\\tnet\\tof\\tallowance\\tfor\\texpected\\tcredit\\tlosses,\\twas\\t$266\\tmillion\\tand\\t$280\\tmillion,\\trespectively,\\tof\\twhich\\t$5\\tmillion\\tand\\t$7\\tmillion\\nwere\\tdue\\tin\\tthe\\tnext\\t12\\tmonths\\tas\\tof\\tDecember\\t31,\\t2023\\tand\\t2022,\\trespectively.\\tAs\\tof\\tDecember\\t31,\\t2023\\tand\\t2022,\\tthe\\tallowance\\tfor\\texpected\\tcredit\\nlosses\\twas\\t$36\\tmillion\\tand\\t$37\\tmillion,\\trespectively.\\nConcentration\\tof\\tRisk\\nCredit\\tRisk\\nFinancial\\tinstruments\\tthat\\tpotentially\\tsubject\\tus\\tto\\ta\\tconcentration\\tof\\tcredit\\trisk\\tconsist\\tof\\tcash,\\tcash\\tequivalents,\\tinvestments,\\trestricted\\tcash,\\naccounts\\treceivable\\tand\\tother\\tfinance\\treceivables.\\tOur\\tcash\\tand\\tinvestments\\tbalances\\tare\\tprimarily\\ton\\tdeposit\\tat\\thigh\\tcredit\\tquality\\tfinancial\\tinstitutions\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 66,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 16\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"or\\tinvested\\tin\\tmoney\\tmarket\\tfunds.\\tThese\\tdeposits\\tare\\ttypically\\tin\\texcess\\tof\\tinsured\\tlimits.\\tAs\\tof\\tDecember\\t31,\\t2023\\tand\\t2022,\\tno\\tentity\\trepresented\\n10%\\tor\\tmore\\tof\\tour\\ttotal\\treceivables\\tbalance.\\nSupply\\tRisk\\nWe\\tare\\tdependent\\ton\\tour\\tsuppliers,\\tincluding\\tsingle\\tsource\\tsuppliers,\\tand\\tthe\\tinability\\tof\\tthese\\tsuppliers\\tto\\tdeliver\\tnecessary\\tcomponents\\tof\\tour\\nproducts\\tin\\ta\\ttimely\\tmanner\\tat\\tprices,\\tquality\\tlevels\\tand\\tvolumes\\tacceptable\\tto\\tus,\\tor\\tour\\tinability\\tto\\tefficiently\\tmanage\\tthese\\tcomponents\\tfrom\\tthese\\nsuppliers,\\tcould\\thave\\ta\\tmaterial\\tadverse\\teffect\\ton\\tour\\tbusiness,\\tprospects,\\tfinancial\\tcondition\\tand\\toperating\\tresults.\\nInventory\\tValuation\\nInventories\\tare\\tstated\\tat\\tthe\\tlower\\tof\\tcost\\tor\\tnet\\trealizable\\tvalue.\\tCost\\tis\\tcomputed\\tusing\\tstandard\\tcost\\tfor\\tvehicles\\tand\\tenergy\\tproducts,\\twhich\\napproximates\\tactual\\tcost\\ton\\ta\\tfirst-in,\\tfirst-out\\tbasis.\\tWe\\trecord\\tinventory\\twrite-downs\\tfor\\texcess\\tor\\tobsolete\\tinventories\\tbased\\tupon\\tassumptions\\tabout\\ncurrent\\tand\\tfuture\\tdemand\\tforecasts.\\tIf\\tour\\tinventory\\ton-hand\\tis\\tin\\texcess\\tof\\tour\\tfuture\\tdemand\\tforecast,\\tthe\\texcess\\tamounts\\tare\\twritten-off.\\nWe\\talso\\treview\\tour\\tinventory\\tto\\tdetermine\\twhether\\tits\\tcarrying\\tvalue\\texceeds\\tthe\\tnet\\tamount\\trealizable\\tupon\\tthe\\tultimate\\tsale\\tof\\tthe\\tinventory.\\nThis\\trequires\\tus\\tto\\tdetermine\\tthe\\testimated\\tselling\\tprice\\tof\\tour\\tvehicles\\tless\\tthe\\testimated\\tcost\\tto\\tconvert\\tthe\\tinventory\\ton-hand\\tinto\\ta\\tfinished\\tproduct.\\nOnce\\tinventory\\tis\\twritten-down,\\ta\\tnew,\\tlower\\tcost\\tbasis\\tfor\\tthat\\tinventory\\tis\\testablished\\tand\\tsubsequent\\tchanges\\tin\\tfacts\\tand\\tcircumstances\\tdo\\tnot\\tresult\\nin\\tthe\\trestoration\\tor\\tincrease\\tin\\tthat\\tnewly\\testablished\\tcost\\tbasis.\\nShould\\tour\\testimates\\tof\\tfuture\\tselling\\tprices\\tor\\tproduction\\tcosts\\tchange,\\tadditional\\tand\\tpotentially\\tmaterial\\twrite-downs\\tmay\\tbe\\trequired.\\tA\\tsmall\\nchange\\tin\\tour\\testimates\\tmay\\tresult\\tin\\ta\\tmaterial\\tcharge\\tto\\tour\\treported\\tfinancial\\tresults.\\nOperating\\tLease\\tVehicles\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 66,\n        \"lines\": {\n          \"from\": 17,\n          \"to\": 33\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Operating\\tLease\\tVehicles\\nVehicles\\tthat\\tare\\tleased\\tas\\tpart\\tof\\tour\\tdirect\\tvehicle\\tleasing\\tprogram\\tare\\tclassified\\tas\\toperating\\tlease\\tvehicles\\tat\\tcost\\tless\\taccumulated\\ndepreciation.\\tWe\\tgenerally\\tdepreciate\\ttheir\\tcost,\\tless\\tresidual\\tvalue,\\tusing\\tthe\\tstraight-line-method\\tto\\tcost\\tof\\tautomotive\\tleasing\\trevenue\\tover\\tthe\\ncontractual\\tperiod.\\tThe\\tgross\\tcost\\tof\\toperating\\tlease\\tvehicles\\tas\\tof\\tDecember\\t31,\\t2023\\tand\\t2022\\twas\\t$7.36\\tbillion\\tand\\t$6.08\\tbillion,\\trespectively.\\nOperating\\tlease\\tvehicles\\ton\\tthe\\tconsolidated\\tbalance\\tsheets\\tare\\tpresented\\tnet\\tof\\taccumulated\\tdepreciation\\tof\\t$1.38\\tbillion\\tand\\t$1.04\\tbillion\\tas\\tof\\nDecember\\t31,\\t2023\\tand\\t2022,\\trespectively.\\n64\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 66,\n        \"lines\": {\n          \"from\": 33,\n          \"to\": 39\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Digital\\tAssets,\\tNet\\nWe\\tcurrently\\taccount\\tfor\\tall\\tdigital\\tassets\\theld\\tas\\tindefinite-lived\\tintangible\\tassets\\tin\\taccordance\\twith\\tASC\\t350,\\tIntangibles—Goodwill\\tand\\tOther.\\tWe\\nhave\\townership\\tof\\tand\\tcontrol\\tover\\tour\\tdigital\\tassets\\tand\\twe\\tmay\\tuse\\tthird-party\\tcustodial\\tservices\\tto\\tsecure\\tit.\\tThe\\tdigital\\tassets\\tare\\tinitially\\trecorded\\tat\\ncost\\tand\\tare\\tsubsequently\\tremeasured\\ton\\tthe\\tconsolidated\\tbalance\\tsheet\\tat\\tcost,\\tnet\\tof\\tany\\timpairment\\tlosses\\tincurred\\tsince\\tacquisition.\\nWe\\tdetermine\\tthe\\tfair\\tvalue\\tof\\tour\\tdigital\\tassets\\ton\\ta\\tnonrecurring\\tbasis\\tin\\taccordance\\twith\\tASC\\t820,\\tFair\\tValue\\tMeasurement\\t(“ASC\\t820”),\\tbased\\non\\tquoted\\tprices\\ton\\tthe\\tactive\\texchange(s)\\tthat\\twe\\thave\\tdetermined\\tis\\tthe\\tprincipal\\tmarket\\tfor\\tsuch\\tassets\\t(Level\\tI\\tinputs).\\tWe\\tperform\\tan\\tanalysis\\teach\\nquarter\\tto\\tidentify\\twhether\\tevents\\tor\\tchanges\\tin\\tcircumstances,\\tprincipally\\tdecreases\\tin\\tthe\\tquoted\\tprices\\ton\\tactive\\texchanges,\\tindicate\\tthat\\tit\\tis\\tmore\\nlikely\\tthan\\tnot\\tthat\\tour\\tdigital\\tassets\\tare\\timpaired.\\tIn\\tdetermining\\tif\\tan\\timpairment\\thas\\toccurred,\\twe\\tconsider\\tthe\\tlowest\\tmarket\\tprice\\tof\\tone\\tunit\\tof\\ndigital\\tasset\\tquoted\\ton\\tthe\\tactive\\texchange\\tsince\\tacquiring\\tthe\\tdigital\\tasset.\\tWhen\\tthe\\tthen\\tcurrent\\tcarrying\\tvalue\\tof\\ta\\tdigital\\tasset\\texceeds\\tthe\\tfair\\nvalue\\tdetermined\\teach\\tquarter,\\tan\\timpairment\\tloss\\thas\\toccurred\\twith\\trespect\\tto\\tthose\\tdigital\\tassets\\tin\\tthe\\tamount\\tequal\\tto\\tthe\\tdifference\\tbetween\\ttheir\\ncarrying\\tvalues\\tand\\tthe\\tprices\\tdetermined.\\nImpairment\\tlosses\\tare\\trecognized\\twithin\\tRestructuring\\tand\\tother\\tin\\tthe\\tconsolidated\\tstatements\\tof\\toperations\\tin\\tthe\\tperiod\\tin\\twhich\\tthe\\timpairment\\nis\\tidentified.\\tGains\\tare\\tnot\\trecorded\\tuntil\\trealized\\tupon\\tsale(s),\\tat\\twhich\\tpoint\\tthey\\tare\\tpresented\\tnet\\tof\\tany\\timpairment\\tlosses\\tfor\\tthe\\tsame\\tdigital\\tassets\\nheld\\twithin\\tRestructuring\\tand\\tother.\\tIn\\tdetermining\\tthe\\tgain\\tto\\tbe\\trecognized\\tupon\\tsale,\\twe\\tcalculate\\tthe\\tdifference\\tbetween\\tthe\\tsales\\tprice\\tand\\tcarrying\\nvalue\\tof\\tthe\\tdigital\\tassets\\tsold\\timmediately\\tprior\\tto\\tsale.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 67,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 15\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"See\\tNote\\t3,\\tDigital\\tAssets,\\tNet,\\tfor\\tfurther\\tinformation\\tregarding\\tdigital\\tassets.\\nSolar\\tEnergy\\tSystems,\\tNet\\nWe\\tare\\tthe\\tlessor\\tof\\tsolar\\tenergy\\tsystems.\\tSolar\\tenergy\\tsystems\\tare\\tstated\\tat\\tcost\\tless\\taccumulated\\tdepreciation.\\nDepreciation\\tand\\tamortization\\tis\\tcalculated\\tusing\\tthe\\tstraight-line\\tmethod\\tover\\tthe\\testimated\\tuseful\\tlives\\tof\\tthe\\trespective\\tassets,\\tas\\tfollows:\\nSolar\\tenergy\\tsystems\\tin\\tservice30\\tto\\t35\\tyears\\nInitial\\tdirect\\tcosts\\trelated\\tto\\tcustomer\\tsolar\\tenergy\\tsystem\\tlease\\tacquisition\\tcostsLease\\tterm\\t(up\\tto\\t25\\tyears)\\nSolar\\tenergy\\tsystems\\tpending\\tinterconnection\\twill\\tbe\\tdepreciated\\tas\\tsolar\\tenergy\\tsystems\\tin\\tservice\\twhen\\tthey\\thave\\tbeen\\tinterconnected\\tand\\nplaced\\tin-service.\\tSolar\\tenergy\\tsystems\\tunder\\tconstruction\\trepresents\\tsystems\\tthat\\tare\\tunder\\tinstallation,\\twhich\\twill\\tbe\\tdepreciated\\tas\\tsolar\\tenergy\\nsystems\\tin\\tservice\\twhen\\tthey\\tare\\tcompleted,\\tinterconnected\\tand\\tplaced\\tin\\tservice.\\tInitial\\tdirect\\tcosts\\trelated\\tto\\tcustomer\\tsolar\\tenergy\\tsystem\\tagreement\\nacquisition\\tcosts\\tare\\tcapitalized\\tand\\tamortized\\tover\\tthe\\tterm\\tof\\tthe\\trelated\\tcustomer\\tagreements.\\nProperty,\\tPlant\\tand\\tEquipment,\\tNet\\nProperty,\\tplant\\tand\\tequipment,\\tnet,\\tincluding\\tleasehold\\timprovements,\\tare\\trecognized\\tat\\tcost\\tless\\taccumulated\\tdepreciation.\\tDepreciation\\tis\\ngenerally\\tcomputed\\tusing\\tthe\\tstraight-line\\tmethod\\tover\\tthe\\testimated\\tuseful\\tlives\\tof\\tthe\\trespective\\tassets,\\tas\\tfollows:\\nMachinery,\\tequipment,\\tvehicles\\tand\\toffice\\tfurniture3\\tto\\t15\\tyears\\nTooling4\\tto\\t7\\tyears\\nBuilding\\tand\\tbuilding\\timprovements15\\tto\\t30\\tyears\\nComputer\\tequipment\\tand\\tsoftware3\\tto\\t10\\tyears\\nLeasehold\\timprovements\\tare\\tdepreciated\\ton\\ta\\tstraight-line\\tbasis\\tover\\tthe\\tshorter\\tof\\ttheir\\testimated\\tuseful\\tlives\\tor\\tthe\\tterms\\tof\\tthe\\trelated\\tleases.\\nUpon\\tthe\\tretirement\\tor\\tsale\\tof\\tour\\tproperty,\\tplant\\tand\\tequipment,\\tthe\\tcost\\tand\\tassociated\\taccumulated\\tdepreciation\\tare\\tremoved\\tfrom\\tthe\\nconsolidated\\tbalance\\tsheet,\\tand\\tthe\\tresulting\\tgain\\tor\\tloss\\tis\\treflected\\ton\\tthe\\tconsolidated\\tstatement\\tof\\toperations.\\tMaintenance\\tand\\trepair\\texpenditures\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 67,\n        \"lines\": {\n          \"from\": 16,\n          \"to\": 35\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"are\\texpensed\\tas\\tincurred\\twhile\\tmajor\\timprovements\\tthat\\tincrease\\tthe\\tfunctionality,\\toutput\\tor\\texpected\\tlife\\tof\\tan\\tasset\\tare\\tcapitalized\\tand\\tdepreciated\\nratably\\tover\\tthe\\tidentified\\tuseful\\tlife.\\n65\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 67,\n        \"lines\": {\n          \"from\": 36,\n          \"to\": 38\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Interest\\texpense\\ton\\toutstanding\\tdebt\\tis\\tcapitalized\\tduring\\tthe\\tperiod\\tof\\tsignificant\\tcapital\\tasset\\tconstruction.\\tCapitalized\\tinterest\\ton\\tconstruction\\tin\\nprogress\\tis\\tincluded\\twithin\\tProperty,\\tplant\\tand\\tequipment,\\tnet\\tand\\tis\\tamortized\\tover\\tthe\\tlife\\tof\\tthe\\trelated\\tassets.\\nLong-Lived\\tAssets\\tIncluding\\tAcquired\\tIntangible\\tAssets\\nWe\\treview\\tour\\tproperty,\\tplant\\tand\\tequipment,\\tsolar\\tenergy\\tsystems,\\tlong-term\\tprepayments\\tand\\tintangible\\tassets\\tfor\\timpairment\\twhenever\\tevents\\nor\\tchanges\\tin\\tcircumstances\\tindicate\\tthat\\tthe\\tcarrying\\tamount\\tof\\tan\\tasset\\t(or\\tasset\\tgroup)\\tmay\\tnot\\tbe\\trecoverable.\\tWe\\tmeasure\\trecoverability\\tby\\ncomparing\\tthe\\tcarrying\\tamount\\tto\\tthe\\tfuture\\tundiscounted\\tcash\\tflows\\tthat\\tthe\\tasset\\tis\\texpected\\tto\\tgenerate.\\tIf\\tthe\\tasset\\tis\\tnot\\trecoverable,\\tits\\tcarrying\\namount\\twould\\tbe\\tadjusted\\tdown\\tto\\tits\\tfair\\tvalue.\\tFor\\tthe\\tyears\\tended\\tDecember\\t31,\\t2023,\\t2022\\tand\\t2021,\\twe\\thave\\trecognized\\tno\\tmaterial\\timpairments\\nof\\tour\\tlong-lived\\tassets.\\nIntangible\\tassets\\twith\\tdefinite\\tlives\\tare\\tamortized\\ton\\ta\\tstraight-line\\tbasis\\tover\\ttheir\\testimated\\tuseful\\tlives,\\twhich\\trange\\tfrom\\tseven\\tto\\tthirty\\tyears.\\nGoodwill\\nWe\\tassess\\tgoodwill\\tfor\\timpairment\\tannually\\tin\\tthe\\tfourth\\tquarter,\\tor\\tmore\\tfrequently\\tif\\tevents\\tor\\tchanges\\tin\\tcircumstances\\tindicate\\tthat\\tit\\tmight\\tbe\\nimpaired,\\tby\\tcomparing\\tits\\tcarrying\\tvalue\\tto\\tthe\\treporting\\tunit’s\\tfair\\tvalue.\\tFor\\tthe\\tyears\\tended\\tDecember\\t31,\\t2023,\\t2022,\\tand\\t2021,\\twe\\tdid\\tnot\\nrecognize\\tany\\timpairment\\tof\\tgoodwill.\\nCapitalization\\tof\\tSoftware\\tCosts\\nWe\\tcapitalize\\tcosts\\tincurred\\tin\\tthe\\tdevelopment\\tof\\tinternal\\tuse\\tsoftware,\\tduring\\tthe\\tapplication\\tdevelopment\\tstage\\tto\\tProperty,\\tplant\\tand\\nequipment,\\tnet\\ton\\tthe\\tconsolidated\\tbalance\\tsheets.\\tCosts\\trelated\\tto\\tpreliminary\\tproject\\tactivities\\tand\\tpost-implementation\\tactivities\\tare\\texpensed\\tas\\nincurred.\\tSuch\\tcosts\\tare\\tamortized\\ton\\ta\\tstraight-line\\tbasis\\tover\\ttheir\\testimated\\tuseful\\tlife\\tof\\tthree\\tto\\tfive\\tyears.\\nSoftware\\tdevelopment\\tcosts\\tincurred\\tin\\tdevelopment\\tof\\tsoftware\\tto\\tbe\\tsold,\\tleased,\\tor\\totherwise\\tmarketed,\\tincurred\\tsubsequent\\tto\\tthe\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 68,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 18\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"establishment\\tof\\ttechnological\\tfeasibility\\tand\\tprior\\tto\\tthe\\tgeneral\\tavailability\\tof\\tthe\\tsoftware\\tare\\tcapitalized\\twhen\\tthey\\tare\\texpected\\tto\\tbecome\\nsignificant.\\tSuch\\tcosts\\tare\\tamortized\\tover\\tthe\\testimated\\tuseful\\tlife\\tof\\tthe\\tapplicable\\tsoftware\\tonce\\tit\\tis\\tmade\\tgenerally\\tavailable\\tto\\tour\\tcustomers.\\nWe\\tevaluate\\tthe\\tuseful\\tlives\\tof\\tthese\\tassets\\ton\\tan\\tannual\\tbasis,\\tand\\twe\\ttest\\tfor\\timpairment\\twhenever\\tevents\\tor\\tchanges\\tin\\tcircumstances\\toccur\\nthat\\tcould\\timpact\\tthe\\trecoverability\\tof\\tthese\\tassets.\\tFor\\tthe\\tyears\\tended\\tDecember\\t31,\\t2023,\\t2022,\\tand\\t2021,\\twe\\thave\\trecognized\\tno\\timpairments\\tof\\ncapitalized\\tsoftware\\tcosts.\\nForeign\\tCurrency\\nWe\\tdetermine\\tthe\\tfunctional\\tand\\treporting\\tcurrency\\tof\\teach\\tof\\tour\\tinternational\\tsubsidiaries\\tand\\ttheir\\toperating\\tdivisions\\tbased\\ton\\tthe\\tprimary\\ncurrency\\tin\\twhich\\tthey\\toperate.\\tIn\\tcases\\twhere\\tthe\\tfunctional\\tcurrency\\tis\\tnot\\tthe\\tU.S.\\tdollar,\\twe\\trecognize\\ta\\tcumulative\\ttranslation\\tadjustment\\tcreated\\tby\\nthe\\tdifferent\\trates\\twe\\tapply\\tto\\tcurrent\\tperiod\\tincome\\tor\\tloss\\tand\\tthe\\tbalance\\tsheet.\\tFor\\teach\\tsubsidiary,\\twe\\tapply\\tthe\\tmonthly\\taverage\\tfunctional\\nexchange\\trate\\tto\\tits\\tmonthly\\tincome\\tor\\tloss\\tand\\tthe\\tmonth-end\\tfunctional\\tcurrency\\trate\\tto\\ttranslate\\tthe\\tbalance\\tsheet.\\nForeign\\tcurrency\\ttransaction\\tgains\\tand\\tlosses\\tare\\ta\\tresult\\tof\\tthe\\teffect\\tof\\texchange\\trate\\tchanges\\ton\\ttransactions\\tdenominated\\tin\\tcurrencies\\tother\\nthan\\tthe\\tfunctional\\tcurrency\\tof\\tthe\\trespective\\tsubsidiary.\\tTransaction\\tgains\\tand\\tlosses\\tare\\trecognized\\tin\\tOther\\tincome\\t(expense),\\tnet,\\tin\\tthe\\tconsolidated\\nstatements\\tof\\toperations.\\tFor\\tthe\\tyears\\tended\\tDecember\\t31,\\t2023,\\t2022\\tand\\t2021,\\twe\\trecorded\\ta\\tnet\\tforeign\\tcurrency\\ttransaction\\tgain\\tof\\t$122\\tmillion,\\nloss\\tof\\t$89\\tmillion\\tand\\tgain\\tof\\t$97\\tmillion,\\trespectively.\\n66\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 68,\n        \"lines\": {\n          \"from\": 19,\n          \"to\": 33\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Warranties\\nWe\\tprovide\\ta\\tmanufacturer’s\\twarranty\\ton\\tall\\tnew\\tand\\tused\\tvehicles\\tand\\ta\\twarranty\\ton\\tthe\\tinstallation\\tand\\tcomponents\\tof\\tthe\\tenergy\\tgeneration\\nand\\tstorage\\tsystems\\twe\\tsell\\tfor\\tperiods\\ttypically\\tbetween\\t10\\tto\\t25\\tyears.\\tWe\\taccrue\\ta\\twarranty\\treserve\\tfor\\tthe\\tproducts\\tsold\\tby\\tus,\\twhich\\tincludes\\tour\\nbest\\testimate\\tof\\tthe\\tprojected\\tcosts\\tto\\trepair\\tor\\treplace\\titems\\tunder\\twarranties\\tand\\trecalls\\tif\\tidentified.\\tThese\\testimates\\tare\\tbased\\ton\\tactual\\tclaims\\nincurred\\tto\\tdate\\tand\\tan\\testimate\\tof\\tthe\\tnature,\\tfrequency\\tand\\tcosts\\tof\\tfuture\\tclaims.\\tThese\\testimates\\tare\\tinherently\\tuncertain\\tand\\tchanges\\tto\\tour\\nhistorical\\tor\\tprojected\\twarranty\\texperience\\tmay\\tcause\\tmaterial\\tchanges\\tto\\tthe\\twarranty\\treserve\\tin\\tthe\\tfuture.\\tThe\\twarranty\\treserve\\tdoes\\tnot\\tinclude\\nprojected\\twarranty\\tcosts\\tassociated\\twith\\tour\\tvehicles\\tsubject\\tto\\toperating\\tlease\\taccounting\\tand\\tour\\tsolar\\tenergy\\tsystems\\tunder\\tlease\\tcontracts\\tor\\tPPAs,\\nas\\tthe\\tcosts\\tto\\trepair\\tthese\\twarranty\\tclaims\\tare\\texpensed\\tas\\tincurred.\\tThe\\tportion\\tof\\tthe\\twarranty\\treserve\\texpected\\tto\\tbe\\tincurred\\twithin\\tthe\\tnext\\t12\\nmonths\\tis\\tincluded\\twithin\\tAccrued\\tliabilities\\tand\\tother,\\twhile\\tthe\\tremaining\\tbalance\\tis\\tincluded\\twithin\\tOther\\tlong-term\\tliabilities\\ton\\tthe\\tconsolidated\\nbalance\\tsheets.\\tFor\\tliabilities\\tthat\\twe\\tare\\tentitled\\tto\\treceive\\tindemnification\\tfrom\\tour\\tsuppliers,\\twe\\trecord\\treceivables\\tfor\\tthe\\tcontractually\\tobligated\\namounts\\ton\\tthe\\tconsolidated\\tbalance\\tsheets\\tas\\ta\\tcomponent\\tof\\tPrepaid\\texpenses\\tand\\tother\\tcurrent\\tassets\\tfor\\tthe\\tcurrent\\tportion\\tand\\tas\\tOther\\tnon-\\ncurrent\\tassets\\tfor\\tthe\\tlong-term\\tportion.\\tWarranty\\texpense\\tis\\trecorded\\tas\\ta\\tcomponent\\tof\\tCost\\tof\\trevenues\\tin\\tthe\\tconsolidated\\tstatements\\tof\\toperations.\\nDue\\tto\\tthe\\tmagnitude\\tof\\tour\\tautomotive\\tbusiness,\\tour\\taccrued\\twarranty\\tbalance\\tis\\tprimarily\\trelated\\tto\\tour\\tautomotive\\tsegment.\\tAccrued\\twarranty\\nactivity\\tconsisted\\tof\\tthe\\tfollowing\\t(in\\tmillions):\\nYear\\tEnded\\tDecember\\t31,\\n202320222021\\nAccrued\\twarranty—beginning\\tof\\tperiod\\n$3,505\\t$2,101\\t$1,468\\t\\nWarranty\\tcosts\\tincurred(1,225)(803)(525)\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 69,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 19\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Warranty\\tcosts\\tincurred(1,225)(803)(525)\\nNet\\tchanges\\tin\\tliability\\tfor\\tpre-existing\\twarranties,\\tincluding\\texpirations\\tand\\tforeign\\nexchange\\timpact539\\t522\\t102\\t\\nProvision\\tfor\\twarranty2,333\\t1,685\\t1,056\\t\\nAccrued\\twarranty—end\\tof\\tperiod\\n$5,152\\t$3,505\\t$2,101\\t\\nCustomer\\tDeposits\\nCustomer\\tdeposits\\tprimarily\\tconsist\\tof\\trefundable\\tcash\\tpayments\\tfrom\\tcustomers\\tat\\tthe\\ttime\\tthey\\tplace\\tan\\torder\\tor\\treservation\\tfor\\ta\\tvehicle\\tor\\tan\\nenergy\\tproduct\\tand\\tany\\tadditional\\tpayments\\tup\\tto\\tthe\\tpoint\\tof\\tdelivery\\tor\\tthe\\tcompletion\\tof\\tinstallation.\\tCustomer\\tdeposits\\talso\\tinclude\\tprepayments\\ton\\ncontracts\\tthat\\tcan\\tbe\\tcancelled\\twithout\\tsignificant\\tpenalties,\\tsuch\\tas\\tvehicle\\tmaintenance\\tplans.\\tCustomer\\tdeposits\\tare\\tincluded\\tin\\tAccrued\\tliabilities\\tand\\nother\\ton\\tthe\\tconsolidated\\tbalance\\tsheets\\tuntil\\trefunded,\\tforfeited\\tor\\tapplied\\ttowards\\tthe\\tcustomer’s\\tpurchase\\tbalance.\\nGovernment\\tAssistance\\tPrograms\\tand\\tIncentives\\nGlobally,\\tthe\\toperation\\tof\\tour\\tbusiness\\tis\\timpacted\\tby\\tvarious\\tgovernment\\tprograms,\\tincentives,\\tand\\tother\\tarrangements.\\tGovernment\\tincentives\\nare\\trecorded\\tin\\tour\\tconsolidated\\tfinancial\\tstatements\\tin\\taccordance\\twith\\ttheir\\tpurpose\\tas\\ta\\treduction\\tof\\texpense,\\tor\\tan\\toffset\\tto\\tthe\\trelated\\tcapital\\tasset.\\nThe\\tbenefit\\tis\\tgenerally\\trecorded\\twhen\\tall\\tconditions\\tattached\\tto\\tthe\\tincentive\\thave\\tbeen\\tmet\\tor\\tare\\texpected\\tto\\tbe\\tmet\\tand\\tthere\\tis\\treasonable\\nassurance\\tof\\ttheir\\treceipt.\\nThe\\tIRA\\tIncentives\\nOn\\tAugust\\t16,\\t2022,\\tthe\\tIRA\\twas\\tenacted\\tinto\\tlaw\\tand\\tis\\teffective\\tfor\\ttaxable\\tyears\\tbeginning\\tafter\\tDecember\\t31,\\t2022.\\tThe\\tIRA\\tincludes\\tmultiple\\nincentives\\tto\\tpromote\\tclean\\tenergy,\\telectric\\tvehicles,\\tbattery\\tand\\tenergy\\tstorage\\tmanufacture\\tor\\tpurchase,\\tin\\taddition\\tto\\ta\\tnew\\tcorporate\\talternative\\nminimum\\ttax\\tof\\t15%\\ton\\tadjusted\\tfinancial\\tstatement\\tincome\\tof\\tcorporations\\twith\\tprofits\\tgreater\\tthan\\t$1\\tbillion.\\tSome\\tof\\tthese\\tmeasures\\tare\\texpected\\tto\\nmaterially\\taffect\\tour\\tconsolidated\\tfinancial\\tstatements.\\tFor\\tthe\\tyear\\tended\\tDecember\\t31,\\t2023,\\tthe\\timpact\\tfrom\\tour\\tIRA\\tincentive\\twas\\tprimarily\\ta\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 69,\n        \"lines\": {\n          \"from\": 19,\n          \"to\": 39\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"reduction\\tof\\tour\\tmaterial\\tcosts\\tin\\tour\\tconsolidated\\tstatement\\tof\\toperations.\\tWe\\twill\\tcontinue\\tto\\tevaluate\\tthe\\teffects\\tof\\tthe\\tIRA\\tas\\tmore\\tguidance\\tis\\tissued\\nand\\tthe\\trelevant\\timplications\\tto\\tour\\tconsolidated\\tfinancial\\tstatements.\\n67\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 69,\n        \"lines\": {\n          \"from\": 40,\n          \"to\": 42\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Gigafactory\\tNew\\tYork—New\\tYork\\tState\\tInvestment\\tand\\tLease\\nWe\\thave\\ta\\tlease\\tthrough\\tthe\\tResearch\\tFoundation\\tfor\\tthe\\tSUNY\\tFoundation\\twith\\trespect\\tto\\tGigafactory\\tNew\\tYork.\\tUnder\\tthe\\tlease\\tand\\ta\\trelated\\nresearch\\tand\\tdevelopment\\tagreement,\\twe\\tare\\tcontinuing\\tto\\tdesignate\\tfurther\\tbuildouts\\tat\\tthe\\tfacility.\\tWe\\tare\\trequired\\tto\\tcomply\\twith\\tcertain\\tcovenants,\\nincluding\\thiring\\tand\\tcumulative\\tinvestment\\ttargets.\\tUnder\\tthe\\tterms\\tof\\tthe\\tarrangement,\\tthe\\tSUNY\\tFoundation\\tpaid\\tfor\\ta\\tmajority\\tof\\tthe\\tconstruction\\ncosts\\trelated\\tto\\tthe\\tmanufacturing\\tfacility\\tand\\tthe\\tacquisition\\tand\\tcommissioning\\tof\\tcertain\\tmanufacturing\\tequipment;\\tand\\twe\\tare\\tresponsible\\tfor\\tany\\nconstruction\\tor\\tequipment\\tcosts\\tin\\texcess\\tof\\tsuch\\tamount\\t(refer\\tto\\tNote\\t15,\\tCommitments\\tand\\tContingencies).\\tThis\\tincentive\\treduces\\tthe\\trelated\\tlease\\ncosts\\tof\\tthe\\tfacility\\twithin\\tthe\\tEnergy\\tgeneration\\tand\\tstorage\\tcost\\tof\\trevenues\\tand\\toperating\\texpense\\tline\\titems\\tin\\tour\\tconsolidated\\tstatements\\tof\\noperations.\\nGigafactory\\tShanghai—Land\\tUse\\tRights\\tand\\tEconomic\\tBenefits\\nWe\\thave\\tan\\tagreement\\twith\\tthe\\tlocal\\tgovernment\\tof\\tShanghai\\tfor\\tland\\tuse\\trights\\tat\\tGigafactory\\tShanghai.\\tUnder\\tthe\\tterms\\tof\\tthe\\tarrangement,\\twe\\nare\\trequired\\tto\\tmeet\\ta\\tcumulative\\tcapital\\texpenditure\\ttarget\\tand\\tan\\tannual\\ttax\\trevenue\\ttarget\\tstarting\\tat\\tthe\\tend\\tof\\t2023.\\tIn\\taddition,\\tthe\\tShanghai\\ngovernment\\thas\\tgranted\\tto\\tour\\tGigafactory\\tShanghai\\tsubsidiary\\tcertain\\tincentives\\tto\\tbe\\tused\\tin\\tconnection\\twith\\teligible\\tcapital\\tinvestments\\tat\\nGigafactory\\tShanghai\\t(refer\\tto\\tNote\\t15,\\tCommitments\\tand\\tContingencies).\\tFor\\tthe\\tyear\\tended\\tDecember\\t31,\\t2022,\\twe\\treceived\\tgrant\\tfunding\\tof\\t$76\\nmillion.\\tThese\\tincentives\\toffset\\tthe\\trelated\\tcosts\\tof\\tour\\tfacilities\\tand\\tare\\trecorded\\tas\\ta\\treduction\\tof\\tthe\\tcost\\tof\\tthe\\tcapital\\tinvestment\\twithin\\tthe\\tProperty,\\nplant\\tand\\tequipment,\\tnet\\tline\\titem\\tin\\tour\\tconsolidated\\tbalance\\tsheets.\\tThe\\tincentive\\ttherefore\\treduces\\tthe\\tdepreciation\\texpense\\tover\\tthe\\tuseful\\tlives\\tof\\nthe\\trelated\\tequipment.\\nNevada\\tTax\\tIncentives\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 70,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 17\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"the\\trelated\\tequipment.\\nNevada\\tTax\\tIncentives\\nIn\\tconnection\\twith\\tthe\\tconstruction\\tof\\tGigafactory\\tNevada,\\twe\\tentered\\tinto\\tagreements\\twith\\tthe\\tState\\tof\\tNevada\\tand\\tStorey\\tCounty\\tin\\tNevada\\tthat\\nprovide\\tabatements\\tfor\\tspecified\\ttaxes,\\tdiscounts\\tto\\tthe\\tbase\\ttariff\\tenergy\\trates\\tand\\ttransferable\\ttax\\tcredits\\tof\\tup\\tto\\t$195\\tmillion\\tin\\tconsideration\\tof\\ncapital\\tinvestment\\tand\\thiring\\ttargets\\tthat\\twere\\tmet\\tat\\tGigafactory\\tNevada.\\nGigafactory\\tTexas\\tTax\\tIncentives\\nIn\\tconnection\\twith\\tthe\\tconstruction\\tof\\tGigafactory\\tTexas,\\twe\\tentered\\tinto\\ta\\t20-year\\tagreement\\twith\\tTravis\\tCounty\\tin\\tTexas\\tpursuant\\tto\\twhich\\twe\\nwould\\treceive\\tgrant\\tfunding\\tequal\\tto\\t70-80%\\tof\\tproperty\\ttaxes\\tpaid\\tby\\tus\\tto\\tTravis\\tCounty\\tand\\ta\\tseparate\\t10-year\\tagreement\\twith\\tthe\\tDel\\tValle\\nIndependent\\tSchool\\tDistrict\\tin\\tTexas\\tpursuant\\tto\\twhich\\ta\\tportion\\tof\\tthe\\ttaxable\\tvalue\\tof\\tour\\tproperty\\twould\\tbe\\tcapped\\tat\\ta\\tspecified\\tamount,\\tin\\teach\\tcase\\nsubject\\tto\\tour\\tmeeting\\tcertain\\tminimum\\teconomic\\tdevelopment\\tmetrics\\tthrough\\tour\\tconstruction\\tand\\toperations\\tat\\tGigafactory\\tTexas.\\tThis\\tincentive\\tis\\nrecorded\\tas\\ta\\treduction\\tof\\tthe\\trelated\\texpenses\\twithin\\tthe\\tCost\\tof\\tautomotive\\trevenues\\tand\\toperating\\texpense\\tline\\titems\\tof\\tour\\tconsolidated\\tstatements\\nof\\toperations.\\tAs\\tof\\tDecember\\t31,\\t2023,\\tthe\\tgrant\\tfunding\\trelated\\tto\\tproperty\\ttaxes\\tpaid\\twere\\timmaterial.\\nDefined\\tContribution\\tPlan\\nWe\\thave\\ta\\t401(k)\\tsavings\\tplan\\tin\\tthe\\tU.S.\\tthat\\tis\\tintended\\tto\\tqualify\\tas\\ta\\tdeferred\\tsalary\\tarrangement\\tunder\\tSection\\t401(k)\\tof\\tthe\\tInternal\\tRevenue\\nCode\\tand\\ta\\tnumber\\tof\\tsavings\\tplans\\tinternationally.\\tUnder\\tthe\\t401(k)\\tsavings\\tplan,\\tparticipating\\temployees\\tmay\\telect\\tto\\tcontribute\\tup\\tto\\t90%\\tof\\ttheir\\neligible\\tcompensation,\\tsubject\\tto\\tcertain\\tlimitations.\\tBeginning\\tin\\tJanuary\\t2022,\\twe\\tbegan\\tto\\tmatch\\t50%\\tof\\teach\\temployee’s\\tcontributions\\tup\\tto\\ta\\nmaximum\\tof\\t6%\\t(capped\\tat\\t$3,000)\\tof\\tthe\\temployee’s\\teligible\\tcompensation,\\tvested\\tupon\\tone\\tyear\\tof\\tservice.\\tDuring\\tthe\\tyears\\tended\\tDecember\\t31,\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 70,\n        \"lines\": {\n          \"from\": 16,\n          \"to\": 32\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"2023\\tand\\t2022,\\twe\\trecognized\\t$99\\tmillion\\tand\\t$91\\tmillion,\\trespectively,\\tof\\texpenses\\trelated\\tto\\temployer\\tcontributions\\tfor\\tthe\\t401(k)\\tsavings\\tplan.\\n68\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 70,\n        \"lines\": {\n          \"from\": 33,\n          \"to\": 34\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Recent\\tAccounting\\tPronouncements\\nRecently\\tissued\\taccounting\\tpronouncements\\tnot\\tyet\\tadopted\\nIn\\tNovember\\t2023,\\tthe\\tFinancial\\tAccounting\\tStandards\\tBoard\\t(“FASB”)\\tissued\\tASU\\tNo.\\t2023-07,\\tImprovements\\tto\\tReportable\\tSegment\\tDisclosures\\n(Topic\\t280).\\tThis\\tASU\\tupdates\\treportable\\tsegment\\tdisclosure\\trequirements\\tby\\trequiring\\tdisclosures\\tof\\tsignificant\\treportable\\tsegment\\texpenses\\tthat\\tare\\nregularly\\tprovided\\tto\\tthe\\tChief\\tOperating\\tDecision\\tMaker\\t(“CODM”)\\tand\\tincluded\\twithin\\teach\\treported\\tmeasure\\tof\\ta\\tsegment's\\tprofit\\tor\\tloss.\\tThis\\tASU\\talso\\nrequires\\tdisclosure\\tof\\tthe\\ttitle\\tand\\tposition\\tof\\tthe\\tindividual\\tidentified\\tas\\tthe\\tCODM\\tand\\tan\\texplanation\\tof\\thow\\tthe\\tCODM\\tuses\\tthe\\treported\\tmeasures\\tof\\ta\\nsegment’s\\tprofit\\tor\\tloss\\tin\\tassessing\\tsegment\\tperformance\\tand\\tdeciding\\thow\\tto\\tallocate\\tresources.\\tThe\\tASU\\tis\\teffective\\tfor\\tannual\\tperiods\\tbeginning\\tafter\\nDecember\\t15,\\t2023,\\tand\\tinterim\\tperiods\\twithin\\tfiscal\\tyears\\tbeginning\\tafter\\tDecember\\t15,\\t2024.\\tAdoption\\tof\\tthe\\tASU\\tshould\\tbe\\tapplied\\tretrospectively\\tto\\nall\\tprior\\tperiods\\tpresented\\tin\\tthe\\tfinancial\\tstatements.\\tEarly\\tadoption\\tis\\talso\\tpermitted.\\tThis\\tASU\\twill\\tlikely\\tresult\\tin\\tus\\tincluding\\tthe\\tadditional\\trequired\\ndisclosures\\twhen\\tadopted.\\tWe\\tare\\tcurrently\\tevaluating\\tthe\\tprovisions\\tof\\tthis\\tASU\\tand\\texpect\\tto\\tadopt\\tthem\\tfor\\tthe\\tyear\\tending\\tDecember\\t31,\\t2024.\\nIn\\tDecember\\t2023,\\tthe\\tFASB\\tissued\\tASU\\tNo.\\t2023-08,\\tAccounting\\tfor\\tand\\tDisclosure\\tof\\tCrypto\\tAssets\\t(Subtopic\\t350-60).\\tThis\\tASU\\trequires\\tcertain\\ncrypto\\tassets\\tto\\tbe\\tmeasured\\tat\\tfair\\tvalue\\tseparately\\tin\\tthe\\tbalance\\tsheet\\tand\\tincome\\tstatement\\teach\\treporting\\tperiod.\\tThis\\tASU\\talso\\tenhances\\tthe\\tother\\nintangible\\tasset\\tdisclosure\\trequirements\\tby\\trequiring\\tthe\\tname,\\tcost\\tbasis,\\tfair\\tvalue,\\tand\\tnumber\\tof\\tunits\\tfor\\teach\\tsignificant\\tcrypto\\tholding.\\tThe\\tASU\\tis\\neffective\\tfor\\tannual\\tperiods\\tbeginning\\tafter\\tDecember\\t15,\\t2024,\\tincluding\\tinterim\\tperiods\\twithin\\tthose\\tfiscal\\tyears.\\tAdoption\\tof\\tthe\\tASU\\trequires\\ta\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 71,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 14\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"cumulative-effect\\tadjustment\\tto\\tthe\\topening\\tbalance\\tof\\tretained\\tearnings\\tas\\tof\\tthe\\tbeginning\\tof\\tthe\\tannual\\treporting\\tperiod\\tin\\twhich\\tan\\tentity\\tadopts\\tthe\\namendments.\\tEarly\\tadoption\\tis\\talso\\tpermitted,\\tincluding\\tadoption\\tin\\tan\\tinterim\\tperiod.\\tHowever,\\tif\\tthe\\tASU\\tis\\tearly\\tadopted\\tin\\tan\\tinterim\\tperiod,\\tan\\tentity\\nmust\\tadopt\\tthe\\tASU\\tas\\tof\\tthe\\tbeginning\\tof\\tthe\\tfiscal\\tyear\\tthat\\tincludes\\tthe\\tinterim\\tperiod.\\tThis\\tASU\\twill\\tresult\\tin\\tgains\\tand\\tlosses\\trecorded\\tin\\tthe\\nconsolidated\\tfinancial\\tstatements\\tof\\toperations\\tand\\tadditional\\tdisclosures\\twhen\\tadopted.\\tWe\\tare\\tcurrently\\tevaluating\\tthe\\tadoption\\tof\\tthis\\tASU\\tand\\tit\\twill\\naffect\\tthe\\tcarrying\\tvalue\\tof\\tour\\tcrypto\\tassets\\theld\\tand\\tthe\\tgains\\tand\\tlosses\\trelating\\tthereto,\\tonce\\tadopted.\\nIn\\tDecember\\t2023,\\tthe\\tFASB\\tissued\\tASU\\tNo.\\t2023-09,\\tImprovements\\tto\\tIncome\\tTax\\tDisclosures\\t(Topic\\t740).\\tThe\\tASU\\trequires\\tdisaggregated\\ninformation\\tabout\\ta\\treporting\\tentity’s\\teffective\\ttax\\trate\\treconciliation\\tas\\twell\\tas\\tadditional\\tinformation\\ton\\tincome\\ttaxes\\tpaid.\\tThe\\tASU\\tis\\teffective\\ton\\ta\\nprospective\\tbasis\\tfor\\tannual\\tperiods\\tbeginning\\tafter\\tDecember\\t15,\\t2024.\\tEarly\\tadoption\\tis\\talso\\tpermitted\\tfor\\tannual\\tfinancial\\tstatements\\tthat\\thave\\tnot\\nyet\\tbeen\\tissued\\tor\\tmade\\tavailable\\tfor\\tissuance.\\tThis\\tASU\\twill\\tresult\\tin\\tthe\\trequired\\tadditional\\tdisclosures\\tbeing\\tincluded\\tin\\tour\\tconsolidated\\tfinancial\\nstatements,\\tonce\\tadopted.\\nRecently\\tadopted\\taccounting\\tpronouncements\\nIn\\tOctober\\t2021,\\tthe\\tFASB\\tissued\\tASU\\tNo.\\t2021-08,\\tAccounting\\tfor\\tContract\\tAssets\\tand\\tContract\\tLiabilities\\tfrom\\tContracts\\twith\\tCustomers\\t(Topic\\n805).\\tThis\\tASU\\trequires\\tan\\tacquirer\\tin\\ta\\tbusiness\\tcombination\\tto\\trecognize\\tand\\tmeasure\\tcontract\\tassets\\tand\\tcontract\\tliabilities\\t(deferred\\trevenue)\\tfrom\\nacquired\\tcontracts\\tusing\\tthe\\trevenue\\trecognition\\tguidance\\tin\\tTopic\\t606.\\tAt\\tthe\\tacquisition\\tdate,\\tthe\\tacquirer\\tapplies\\tthe\\trevenue\\tmodel\\tas\\tif\\tit\\thad\\noriginated\\tthe\\tacquired\\tcontracts.\\tThe\\tASU\\tis\\teffective\\tfor\\tannual\\tperiods\\tbeginning\\tafter\\tDecember\\t15,\\t2022,\\tincluding\\tinterim\\tperiods\\twithin\\tthose\\tfiscal\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 71,\n        \"lines\": {\n          \"from\": 15,\n          \"to\": 29\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"years.\\tWe\\tadopted\\tthis\\tASU\\tprospectively\\ton\\tJanuary\\t1,\\t2023.\\tThis\\tASU\\thas\\tnot\\tand\\tis\\tcurrently\\tnot\\texpected\\tto\\thave\\ta\\tmaterial\\timpact\\ton\\tour\\nconsolidated\\tfinancial\\tstatements.\\nIn\\tMarch\\t2022,\\tthe\\tFASB\\tissued\\tASU\\t2022-02,\\tTroubled\\tDebt\\tRestructurings\\tand\\tVintage\\tDisclosures.\\tThis\\tASU\\teliminates\\tthe\\taccounting\\tguidance\\nfor\\ttroubled\\tdebt\\trestructurings\\tby\\tcreditors\\tthat\\thave\\tadopted\\tASU\\t2016-13,\\tMeasurement\\tof\\tCredit\\tLosses\\ton\\tFinancial\\tInstruments,\\twhich\\twe\\tadopted\\non\\tJanuary\\t1,\\t2020.\\tThis\\tASU\\talso\\tenhances\\tthe\\tdisclosure\\trequirements\\tfor\\tcertain\\tloan\\trefinancing\\tand\\trestructurings\\tby\\tcreditors\\twhen\\ta\\tborrower\\tis\\nexperiencing\\tfinancial\\tdifficulty.\\tIn\\taddition,\\tthe\\tASU\\tamends\\tthe\\tguidance\\ton\\tvintage\\tdisclosures\\tto\\trequire\\tentities\\tto\\tdisclose\\tcurrent\\tperiod\\tgross\\twrite-\\noffs\\tby\\tyear\\tof\\torigination\\tfor\\tfinancing\\treceivables\\tand\\tnet\\tinvestments\\tin\\tleases\\twithin\\tthe\\tscope\\tof\\tASC\\t326-20.\\tThe\\tASU\\tis\\teffective\\tfor\\tannual\\tperiods\\nbeginning\\tafter\\tDecember\\t15,\\t2022,\\tincluding\\tinterim\\tperiods\\twithin\\tthose\\tfiscal\\tyears.\\tWe\\tadopted\\tthe\\tASU\\tprospectively\\ton\\tJanuary\\t1,\\t2023.\\tThis\\tASU\\nhas\\tnot\\tand\\tis\\tcurrently\\tnot\\texpected\\tto\\thave\\ta\\tmaterial\\timpact\\ton\\tour\\tconsolidated\\tfinancial\\tstatements.\\n69\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 71,\n        \"lines\": {\n          \"from\": 30,\n          \"to\": 39\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"ASU\\t2020-06\\nIn\\tAugust\\t2020,\\tthe\\tFASB\\tissued\\tASU\\t2020-06,\\tAccounting\\tfor\\tConvertible\\tInstruments\\tand\\tContracts\\tin\\tan\\tEntity’s\\tOwn\\tEquity.\\tThe\\tASU\\tsimplifies\\nthe\\taccounting\\tfor\\tconvertible\\tinstruments\\tby\\tremoving\\tcertain\\tseparation\\tmodels\\tin\\tASC\\t470-20,\\tDebt—Debt\\twith\\tConversion\\tand\\tOther\\tOptions,\\tfor\\nconvertible\\tinstruments.\\tThe\\tASU\\tupdates\\tthe\\tguidance\\ton\\tcertain\\tembedded\\tconversion\\tfeatures\\tthat\\tare\\tnot\\trequired\\tto\\tbe\\taccounted\\tfor\\tas\\tderivatives\\nunder\\tTopic\\t815,\\tDerivatives\\tand\\tHedging,\\tor\\tthat\\tdo\\tnot\\tresult\\tin\\tsubstantial\\tpremiums\\taccounted\\tfor\\tas\\tpaid-in\\tcapital,\\tsuch\\tthat\\tthose\\tfeatures\\tare\\tno\\nlonger\\trequired\\tto\\tbe\\tseparated\\tfrom\\tthe\\thost\\tcontract.\\tThe\\tconvertible\\tdebt\\tinstruments\\twill\\tbe\\taccounted\\tfor\\tas\\ta\\tsingle\\tliability\\tmeasured\\tat\\tamortized\\ncost.\\tThis\\twill\\talso\\tresult\\tin\\tthe\\tinterest\\texpense\\trecognized\\tfor\\tconvertible\\tdebt\\tinstruments\\tto\\tbe\\ttypically\\tcloser\\tto\\tthe\\tcoupon\\tinterest\\trate\\twhen\\napplying\\tthe\\tguidance\\tin\\tTopic\\t835,\\tInterest.\\tFurther,\\tthe\\tASU\\tmade\\tamendments\\tto\\tthe\\tEPS\\tguidance\\tin\\tTopic\\t260\\tfor\\tconvertible\\tdebt\\tinstruments,\\tthe\\nmost\\tsignificant\\timpact\\tof\\twhich\\tis\\trequiring\\tthe\\tuse\\tof\\tthe\\tif-converted\\tmethod\\tfor\\tdiluted\\tEPS\\tcalculation,\\tand\\tno\\tlonger\\tallowing\\tthe\\tnet\\tshare\\nsettlement\\tmethod.\\tThe\\tASU\\talso\\tmade\\trevisions\\tto\\tTopic\\t815-40,\\twhich\\tprovides\\tguidance\\ton\\thow\\tan\\tentity\\tmust\\tdetermine\\twhether\\ta\\tcontract\\tqualifies\\nfor\\ta\\tscope\\texception\\tfrom\\tderivative\\taccounting.\\tThe\\tamendments\\tto\\tTopic\\t815-40\\tchange\\tthe\\tscope\\tof\\tcontracts\\tthat\\tare\\trecognized\\tas\\tassets\\tor\\nliabilities.\\nOn\\tJanuary\\t1,\\t2021,\\twe\\tadopted\\tthe\\tASU\\tusing\\tthe\\tmodified\\tretrospective\\tmethod.\\tWe\\trecognized\\ta\\tfavorable\\t$211\\tmillion\\tcumulative\\teffect\\tof\\ninitially\\tapplying\\tthe\\tASU\\tas\\tan\\tadjustment\\tto\\tthe\\tJanuary\\t1,\\t2021\\topening\\tbalance\\tof\\taccumulated\\tdeficit.\\tDue\\tto\\tthe\\trecombination\\tof\\tthe\\tequity\\nconversion\\tcomponent\\tof\\tour\\tconvertible\\tdebt\\tremaining\\toutstanding,\\tadditional\\tpaid\\tin\\tcapital\\twas\\treduced\\tby\\t$474\\tmillion\\tand\\tconvertible\\tsenior\\tnotes\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 72,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 15\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"(mezzanine\\tequity)\\twas\\treduced\\tby\\t$51\\tmillion.\\tThe\\tremoval\\tof\\tthe\\tremaining\\tdebt\\tdiscounts\\trecorded\\tfor\\tthis\\tprevious\\tseparation\\thad\\tthe\\teffect\\tof\\nincreasing\\tour\\tnet\\tdebt\\tbalance\\tby\\t$269\\tmillion\\tand\\twe\\treduced\\tproperty,\\tplant\\tand\\tequipment\\tby\\t$45\\tmillion\\trelated\\tto\\tpreviously\\tcapitalized\\tinterest.\\nThe\\tprior\\tperiod\\tconsolidated\\tfinancial\\tstatements\\thave\\tnot\\tbeen\\tretrospectively\\tadjusted\\tand\\tcontinue\\tto\\tbe\\treported\\tunder\\tthe\\taccounting\\tstandards\\tin\\neffect\\tfor\\tthose\\tperiods.\\nNote\\t3\\t–\\tDigital\\tAssets,\\tNet\\nDuring\\tthe\\tyears\\tended\\tDecember\\t31,\\t2023\\tand\\t2022,\\twe\\tpurchased\\tand/or\\treceived\\timmaterial\\tamounts\\tof\\tdigital\\tassets.\\tDuring\\tthe\\tyear\\tended\\nDecember\\t31,\\t2023,\\twe\\trecorded\\tan\\timmaterial\\tamount\\tof\\timpairment\\tlosses\\ton\\tdigital\\tassets.\\tDuring\\tthe\\tyear\\tended\\tDecember\\t31,\\t2022,\\twe\\trecorded\\n$204\\tmillion\\tof\\timpairment\\tlosses\\ton\\tdigital\\tassets\\tand\\trealized\\tgains\\tof\\t$64\\tmillion\\tin\\tconnection\\twith\\tconverting\\tour\\tholdings\\tof\\tdigital\\tassets\\tinto\\tfiat\\ncurrency.\\tThe\\tgains\\tare\\tpresented\\tnet\\tof\\timpairment\\tlosses\\tin\\tRestructuring\\tand\\tother\\tin\\tthe\\tconsolidated\\tstatements\\tof\\toperations.\\tAs\\tof\\tDecember\\t31,\\n2023\\tand\\t2022,\\tthe\\tcarrying\\tvalue\\tof\\tour\\tdigital\\tassets\\theld\\treflects\\tcumulative\\timpairment\\tof\\t$204\\tmillion.\\nNote\\t4\\t–\\tGoodwill\\tand\\tIntangible\\tAssets\\nGoodwill\\tincreased\\t$59\\tmillion\\twithin\\tthe\\tautomotive\\tsegment\\tfrom\\t$194\\tmillion\\tas\\tof\\tDecember\\t31,\\t2022\\tto\\t$253\\tmillion\\tas\\tof\\tDecember\\t31,\\t2023\\nprimarily\\tfrom\\ta\\tbusiness\\tcombination,\\tnet\\tof\\tthe\\timpact\\tof\\ta\\tdivestiture.\\tThere\\twere\\tno\\taccumulated\\timpairment\\tlosses\\tas\\tof\\tDecember\\t31,\\t2023\\tand\\n2022.\\nThe\\tnet\\tcarrying\\tvalue\\tof\\tour\\tintangible\\tassets\\tdecreased\\tfrom\\t$215\\tmillion\\tas\\tof\\tDecember\\t31,\\t2022\\tto\\t$178\\tmillion\\tas\\tof\\tDecember\\t31,\\t2023\\nmainly\\tfrom\\tamortization.\\nNote\\t5\\t–\\tFair\\tValue\\tof\\tFinancial\\tInstruments\\nASC\\t820,\\tFair\\tValue\\tMeasurements\\t(“ASC\\t820”)\\tstates\\tthat\\tfair\\tvalue\\tis\\tan\\texit\\tprice,\\trepresenting\\tthe\\tamount\\tthat\\twould\\tbe\\treceived\\tto\\tsell\\tan\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 72,\n        \"lines\": {\n          \"from\": 16,\n          \"to\": 33\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"asset\\tor\\tpaid\\tto\\ttransfer\\ta\\tliability\\tin\\tan\\torderly\\ttransaction\\tbetween\\tmarket\\tparticipants.\\tAs\\tsuch,\\tfair\\tvalue\\tis\\ta\\tmarket-based\\tmeasurement\\tthat\\tshould\\nbe\\tdetermined\\tbased\\ton\\tassumptions\\tthat\\tmarket\\tparticipants\\twould\\tuse\\tin\\tpricing\\tan\\tasset\\tor\\ta\\tliability.\\tThe\\tthree-tiered\\tfair\\tvalue\\thierarchy,\\twhich\\nprioritizes\\twhich\\tinputs\\tshould\\tbe\\tused\\tin\\tmeasuring\\tfair\\tvalue,\\tis\\tcomprised\\tof:\\t(Level\\tI)\\tobservable\\tinputs\\tsuch\\tas\\tquoted\\tprices\\tin\\tactive\\tmarkets;\\t(Level\\nII)\\tinputs\\tother\\tthan\\tquoted\\tprices\\tin\\tactive\\tmarkets\\tthat\\tare\\tobservable\\teither\\tdirectly\\tor\\tindirectly\\tand\\t(Level\\tIII)\\tunobservable\\tinputs\\tfor\\twhich\\tthere\\tis\\nlittle\\tor\\tno\\tmarket\\tdata.\\tThe\\tfair\\tvalue\\thierarchy\\trequires\\tthe\\tuse\\tof\\tobservable\\tmarket\\tdata\\twhen\\tavailable\\tin\\tdetermining\\tfair\\tvalue.\\tOur\\tassets\\tand\\nliabilities\\tthat\\twere\\tmeasured\\tat\\tfair\\tvalue\\ton\\ta\\trecurring\\tbasis\\twere\\tas\\tfollows\\t(in\\tmillions):\\n70\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 72,\n        \"lines\": {\n          \"from\": 34,\n          \"to\": 40\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"December\\t31,\\t2023December\\t31,\\t2022\\n\\tFair\\tValueLevel\\tILevel\\tIILevel\\tIIIFair\\tValueLevel\\tILevel\\tIILevel\\tIII\\nMoney\\tmarket\\tfunds$109\\t$109\\t$—\\t$—\\t$2,188\\t$2,188\\t$—\\t$—\\t\\nU.S.\\tgovernment\\tsecurities5,136\\t—\\t5,136\\t—\\t894\\t—\\t894\\t—\\t\\nCorporate\\tdebt\\tsecurities480\\t—\\t480\\t—\\t885\\t—\\t885\\t—\\t\\nCertificates\\tof\\tdeposit\\tand\\ttime\\ndeposits6,996\\t—\\t6,996\\t—\\t4,253\\t—\\t4,253\\t—\\t\\nCommercial\\tpaper470\\t—\\t470\\t—\\t—\\t—\\t—\\t—\\t\\nTotal\\n$13,191\\t$109\\t$13,082\\t$—\\t$8,220\\t$2,188\\t$6,032\\t$—\\t\\nAll\\tof\\tour\\tmoney\\tmarket\\tfunds\\twere\\tclassified\\twithin\\tLevel\\tI\\tof\\tthe\\tfair\\tvalue\\thierarchy\\tbecause\\tthey\\twere\\tvalued\\tusing\\tquoted\\tprices\\tin\\tactive\\nmarkets.\\tOur\\tU.S.\\tgovernment\\tsecurities,\\tcertificates\\tof\\tdeposit,\\tcommercial\\tpaper,\\ttime\\tdeposits\\tand\\tcorporate\\tdebt\\tsecurities\\tare\\tclassified\\twithin\\tLevel\\nII\\tof\\tthe\\tfair\\tvalue\\thierarchy\\tand\\tthe\\tmarket\\tapproach\\twas\\tused\\tto\\tdetermine\\tfair\\tvalue\\tof\\tthese\\tinvestments.\\nOur\\tcash,\\tcash\\tequivalents\\tand\\tinvestments\\tclassified\\tby\\tsecurity\\ttype\\tas\\tof\\tDecember\\t31,\\t2023\\tand\\t2022\\tconsisted\\tof\\tthe\\tfollowing\\t(in\\tmillions):\\n\\tDecember\\t31,\\t2023\\n\\tAdjusted\\tCost\\nGross\\nUnrealized\\nGains\\nGross\\nUnrealized\\nLossesFair\\tValue\\nCash\\tand\\tCash\\nEquivalents\\nShort-Term\\nInvestments\\nCash$15,903\\t$—\\t$—\\t$15,903\\t$15,903\\t$—\\t\\nMoney\\tmarket\\tfunds109\\t—\\t—\\t109\\t109\\t—\\t\\nU.S.\\tgovernment\\tsecurities5,136\\t1\\t(1)5,136\\t277\\t4,859\\t\\nCorporate\\tdebt\\tsecurities485\\t1\\t(6)480\\t—\\t480\\t\\nCertificates\\tof\\tdeposit\\tand\\ttime\\tdeposits6,995\\t1\\t—\\t6,996\\t—\\t6,996\\t\\nCommercial\\tpaper470\\t—\\t—\\t470\\t109\\t361\\t\\nTotal\\tcash,\\tcash\\tequivalents\\tand\\tshort-term\\ninvestments\\n$29,098\\t$3\\t$(7)$29,094\\t$16,398\\t$12,696\\t\\n\\tDecember\\t31,\\t2022\\n\\tAdjusted\\tCost\\nGross\\nUnrealized\\nGains\\nGross\\nUnrealized\\nLossesFair\\tValue\\nCash\\tand\\tCash\\nEquivalents\\nShort-Term\\nInvestments\\nCash$13,965\\t$—\\t$—\\t$13,965\\t$13,965\\t$—\\t\\nMoney\\tmarket\\tfunds2,188\\t—\\t—\\t2,188\\t2,188\\t—\\t\\nU.S.\\tgovernment\\tsecurities897\\t—\\t(3)894\\t—\\t894\\t\\nCorporate\\tdebt\\tsecurities907\\t—\\t(22)885\\t—\\t885\\t\\nCertificates\\tof\\tdeposit\\tand\\ttime\\tdeposits4,252\\t1\\t—\\t4,253\\t100\\t4,153\\t\\nTotal\\tcash,\\tcash\\tequivalents\\tand\\tshort-term\\ninvestments\\n$22,209\\t$1\\t$(25)$22,185\\t$16,253\\t$5,932\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 73,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 55\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"$22,209\\t$1\\t$(25)$22,185\\t$16,253\\t$5,932\\t\\nWe\\trecord\\tgross\\trealized\\tgains,\\tlosses\\tand\\tcredit\\tlosses\\tas\\ta\\tcomponent\\tof\\tOther\\tincome\\t(expense),\\tnet\\tin\\tthe\\tconsolidated\\tstatements\\tof\\noperations.\\tFor\\tthe\\tyears\\tended\\tDecember\\t31,\\t2023\\tand\\t2022,\\twe\\tdid\\tnot\\trecognize\\tany\\tmaterial\\tgross\\trealized\\tgains,\\tlosses\\tor\\tcredit\\tlosses.\\tThe\\tending\\nallowance\\tbalances\\tfor\\tcredit\\tlosses\\twere\\timmaterial\\tas\\tof\\tDecember\\t31,\\t2023\\tand\\t2022.\\tWe\\thave\\tdetermined\\tthat\\tthe\\tgross\\tunrealized\\tlosses\\ton\\tour\\ninvestments\\tas\\tof\\tDecember\\t31,\\t2023\\tand\\t2022\\twere\\ttemporary\\tin\\tnature.\\n71\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 73,\n        \"lines\": {\n          \"from\": 55,\n          \"to\": 60\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"The\\tfollowing\\ttable\\tsummarizes\\tthe\\tfair\\tvalue\\tof\\tour\\tinvestments\\tby\\tstated\\tcontractual\\tmaturities\\tas\\tof\\tDecember\\t31,\\t2023\\t(in\\tmillions):\\nDue\\tin\\t1\\tyear\\tor\\tless$12,374\\t\\nDue\\tin\\t1\\tyear\\tthrough\\t5\\tyears297\\t\\nDue\\tin\\t5\\tyears\\tthrough\\t10\\tyears25\\t\\nTotal\\n$12,696\\t\\nDisclosure\\tof\\tFair\\tValues\\nOur\\tfinancial\\tinstruments\\tthat\\tare\\tnot\\tre-measured\\tat\\tfair\\tvalue\\tinclude\\taccounts\\treceivable,\\tfinancing\\treceivables,\\tother\\treceivables,\\tdigital\\tassets,\\naccounts\\tpayable,\\taccrued\\tliabilities,\\tcustomer\\tdeposits\\tand\\tdebt.\\tThe\\tcarrying\\tvalues\\tof\\tthese\\tfinancial\\tinstruments\\tmaterially\\tapproximate\\ttheir\\tfair\\nvalues,\\tother\\tthan\\tour\\t2.00%\\tConvertible\\tSenior\\tNotes\\tdue\\tin\\t2024\\t(“2024\\tNotes”)\\tand\\tdigital\\tassets.\\nWe\\testimate\\tthe\\tfair\\tvalue\\tof\\tthe\\t2024\\tNotes\\tusing\\tcommonly\\taccepted\\tvaluation\\tmethodologies\\tand\\tmarket-based\\trisk\\tmeasurements\\tthat\\tare\\nindirectly\\tobservable,\\tsuch\\tas\\tcredit\\trisk\\t(Level\\tII).\\tIn\\taddition,\\twe\\testimate\\tthe\\tfair\\tvalues\\tof\\tour\\tdigital\\tassets\\tbased\\ton\\tquoted\\tprices\\tin\\tactive\\tmarkets\\n(Level\\tI).\\tThe\\tfollowing\\ttable\\tpresents\\tthe\\testimated\\tfair\\tvalues\\tand\\tthe\\tcarrying\\tvalues\\t(in\\tmillions):\\n\\tDecember\\t31,\\t2023December\\t31,\\t2022\\n\\tCarrying\\tValueFair\\tValueCarrying\\tValueFair\\tValue\\n2024\\tNotes$37\\t$443\\t$37\\t$223\\t\\nDigital\\tassets,\\tnet$184\\t$487\\t$184\\t$191\\t\\nNote\\t6\\t–\\tInventory\\nOur\\tinventory\\tconsisted\\tof\\tthe\\tfollowing\\t(in\\tmillions):\\n\\t\\nDecember\\t31,\\n2023\\nDecember\\t31,\\n2022\\nRaw\\tmaterials$5,390\\t$6,137\\t\\nWork\\tin\\tprocess2,016\\t2,385\\t\\nFinished\\tgoods\\t(1)5,049\\t3,475\\t\\nService\\tparts1,171\\t842\\t\\nTotal\\n$13,626\\t$12,839\\t\\n(1)Finished\\tgoods\\tinventory\\tincludes\\tproducts\\tin\\ttransit\\tto\\tfulfill\\tcustomer\\torders,\\tnew\\tvehicles\\tavailable\\tfor\\tsale,\\tused\\tvehicles\\tand\\tenergy\\tproducts\\navailable\\tfor\\tsale.\\nWe\\twrite-down\\tinventory\\tfor\\tany\\texcess\\tor\\tobsolete\\tinventories\\tor\\twhen\\twe\\tbelieve\\tthat\\tthe\\tnet\\trealizable\\tvalue\\tof\\tinventories\\tis\\tless\\tthan\\tthe\\ncarrying\\tvalue.\\tDuring\\tthe\\tyears\\tended\\tDecember\\t31,\\t2023,\\t2022\\tand\\t2021\\twe\\trecorded\\twrite-downs\\tof\\t$233\\tmillion,\\t$144\\tmillion\\tand\\t$106\\tmillion,\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 74,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 34\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"respectively,\\tin\\tCost\\tof\\trevenues\\tin\\tthe\\tconsolidated\\tstatements\\tof\\toperations.\\n72\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 74,\n        \"lines\": {\n          \"from\": 35,\n          \"to\": 36\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Note\\t7\\t–\\tSolar\\tEnergy\\tSystems,\\tNet\\nOur\\tsolar\\tenergy\\tsystems,\\tnet,\\tconsisted\\tof\\tthe\\tfollowing\\t(in\\tmillions):\\nDecember\\t31,\\n2023\\nDecember\\t31,\\n2022\\nSolar\\tenergy\\tsystems\\tin\\tservice\\n$6,755\\t$6,785\\t\\nInitial\\tdirect\\tcosts\\trelated\\tto\\tcustomer\\tsolar\\tenergy\\tsystem\\tlease\\tacquisition\\tcosts104\\t104\\t\\n6,859\\t6,889\\t\\nLess:\\taccumulated\\tdepreciation\\tand\\tamortization\\t(1)(1,643)(1,418)\\n5,216\\t5,471\\t\\nSolar\\tenergy\\tsystems\\tunder\\tconstruction1\\t2\\t\\nSolar\\tenergy\\tsystems\\tpending\\tinterconnection12\\t16\\t\\nSolar\\tenergy\\tsystems,\\tnet\\t(2)\\n$5,229\\t$5,489\\t\\n(1)Depreciation\\tand\\tamortization\\texpense\\tduring\\tthe\\tyears\\tended\\tDecember\\t31,\\t2023,\\t2022\\tand\\t2021\\twas\\t$235\\tmillion,\\t$235\\tmillion\\tand\\t$236\\nmillion,\\trespectively.\\n(2)As\\tof\\tDecember\\t31,\\t2023\\tand\\t2022,\\tthere\\twere\\t$740\\tmillion\\tand\\t$802\\tmillion,\\trespectively,\\tof\\tgross\\tsolar\\tenergy\\tsystems\\tunder\\tlease\\tpass-through\\nfund\\tarrangements\\twith\\taccumulated\\tdepreciation\\tof\\t$157\\tmillion\\tand\\t$148\\tmillion,\\trespectively.\\nNote\\t8\\t–\\tProperty,\\tPlant\\tand\\tEquipment,\\tNet\\nOur\\tproperty,\\tplant\\tand\\tequipment,\\tnet,\\tconsisted\\tof\\tthe\\tfollowing\\t(in\\tmillions):\\nDecember\\t31,\\n2023\\nDecember\\t31,\\n2022\\nMachinery,\\tequipment,\\tvehicles\\tand\\toffice\\tfurniture$16,372\\t$13,558\\t\\nTooling3,147\\t2,579\\t\\nLeasehold\\timprovements3,168\\t2,366\\t\\nLand\\tand\\tbuildings9,505\\t7,751\\t\\nComputer\\tequipment,\\thardware\\tand\\tsoftware3,799\\t2,072\\t\\nConstruction\\tin\\tprogress5,791\\t4,263\\t\\n\\t41,782\\t32,589\\t\\nLess:\\tAccumulated\\tdepreciation(12,057)(9,041)\\nTotal\\n$29,725\\t$23,548\\t\\nConstruction\\tin\\tprogress\\tis\\tprimarily\\tcomprised\\tof\\tongoing\\tconstruction\\tand\\texpansion\\tof\\tour\\tfacilities,\\tand\\tequipment\\tand\\ttooling\\trelated\\tto\\tthe\\nmanufacturing\\tof\\tour\\tproducts.\\tCompleted\\tassets\\tare\\ttransferred\\tto\\ttheir\\trespective\\tasset\\tclasses\\tand\\tdepreciation\\tbegins\\twhen\\tan\\tasset\\tis\\tready\\tfor\\tits\\nintended\\tuse.\\nDepreciation\\texpense\\tduring\\tthe\\tyears\\tended\\tDecember\\t31,\\t2023,\\t2022\\tand\\t2021\\twas\\t$3.33\\tbillion,\\t$2.42\\tbillion\\tand\\t$1.91\\tbillion,\\trespectively.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 75,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 40\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Panasonic\\thas\\tpartnered\\twith\\tus\\ton\\tGigafactory\\tNevada\\twith\\tinvestments\\tin\\tthe\\tproduction\\tequipment\\tthat\\tit\\tuses\\tto\\tmanufacture\\tand\\tsupply\\tus\\nwith\\tbattery\\tcells.\\tUnder\\tour\\tarrangement\\twith\\tPanasonic,\\twe\\tplan\\tto\\tpurchase\\tthe\\tfull\\toutput\\tfrom\\ttheir\\tproduction\\tequipment\\tat\\tnegotiated\\tprices.\\tAs\\nthe\\tterms\\tof\\tthe\\tarrangement\\tconvey\\ta\\tfinance\\tlease\\tunder\\tASC\\t842,\\twe\\taccount\\tfor\\ttheir\\tproduction\\tequipment\\tas\\tleased\\tassets\\twhen\\tproduction\\ncommences.\\tWe\\taccount\\tfor\\teach\\tlease\\tand\\tany\\tnon-lease\\tcomponents\\tassociated\\twith\\tthat\\tlease\\tas\\ta\\tsingle\\tlease\\tcomponent\\tfor\\tall\\tasset\\tclasses,\\nexcept\\tproduction\\tequipment\\tclasses\\tembedded\\tin\\tsupply\\tagreements.\\tThis\\tresults\\tin\\tus\\trecording\\tthe\\tcost\\tof\\ttheir\\tproduction\\tequipment\\twithin\\tProperty,\\nplant\\tand\\tequipment,\\tnet,\\ton\\tthe\\tconsolidated\\tbalance\\tsheets\\twith\\ta\\tcorresponding\\tliability\\trecorded\\tto\\tdebt\\tand\\tfinance\\tleases.\\tDepreciation\\ton\\nPanasonic\\tproduction\\tequipment\\tis\\tcomputed\\tusing\\tthe\\tunits-of-production\\tmethod\\twhereby\\tcapitalized\\tcosts\\tare\\tamortized\\tover\\tthe\\ttotal\\testimated\\nproductive\\tlife\\tof\\tthe\\trespective\\tassets.\\tAs\\tof\\tDecember\\t31,\\t2023\\tand\\t2022,\\twe\\thad\\tcumulatively\\tcapitalized\\tgross\\tcosts\\tof\\t$2.02\\tbillion\\tand\\t$2.01\\tbillion,\\nrespectively,\\ton\\tthe\\tconsolidated\\tbalance\\tsheets\\tin\\trelation\\tto\\tthe\\tproduction\\tequipment\\tunder\\tour\\tPanasonic\\tarrangement.\\n73\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 75,\n        \"lines\": {\n          \"from\": 41,\n          \"to\": 50\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Note\\t9\\t–\\tAccrued\\tLiabilities\\tand\\tOther\\nOur\\taccrued\\tliabilities\\tand\\tother\\tcurrent\\tliabilities\\tconsisted\\tof\\tthe\\tfollowing\\t(in\\tmillions):\\nDecember\\t31,\\n2023\\nDecember\\t31,\\n2022\\nAccrued\\tpurchases\\t(1)$2,721\\t$2,747\\t\\nAccrued\\twarranty\\treserve,\\tcurrent\\tportion1,546\\t1,025\\t\\nPayroll\\tand\\trelated\\tcosts1,325\\t1,026\\t\\nTaxes\\tpayable\\t(2)1,204\\t1,235\\t\\nCustomer\\tdeposits876\\t1,063\\t\\nOperating\\tlease\\tliabilities,\\tcurrent\\tportion672\\t485\\t\\nSales\\treturn\\treserve,\\tcurrent\\tportion219\\t270\\t\\nOther\\tcurrent\\tliabilities517\\t354\\t\\nTotal\\n$9,080\\t$8,205\\t\\n(1)Accrued\\tpurchases\\tprimarily\\treflects\\treceipts\\tof\\tgoods\\tand\\tservices\\tfor\\twhich\\twe\\thad\\tnot\\tyet\\tbeen\\tinvoiced.\\tAs\\twe\\tare\\tinvoiced\\tfor\\tthese\\tgoods\\tand\\nservices,\\tthis\\tbalance\\twill\\treduce\\tand\\taccounts\\tpayable\\twill\\tincrease.\\n(2)Taxes\\tpayable\\tincludes\\tvalue\\tadded\\ttax,\\tincome\\ttax,\\tsales\\ttax,\\tproperty\\ttax\\tand\\tuse\\ttax\\tpayables.\\nNote\\t10\\t–\\tOther\\tLong-Term\\tLiabilities\\nOur\\tother\\tlong-term\\tliabilities\\tconsisted\\tof\\tthe\\tfollowing\\t(in\\tmillions):\\nDecember\\t31,\\n2023\\nDecember\\t31,\\n2022\\nOperating\\tlease\\tliabilities$3,671\\t$2,164\\t\\nAccrued\\twarranty\\treserve3,606\\t2,480\\t\\nOther\\tnon-current\\tliabilities876\\t686\\t\\nTotal\\tother\\tlong-term\\tliabilities\\n$8,153\\t$5,330\\t\\nNote\\t11\\t–\\tDebt\\nThe\\tfollowing\\tis\\ta\\tsummary\\tof\\tour\\tdebt\\tand\\tfinance\\tleases\\tas\\tof\\tDecember\\t31,\\t2023\\t(in\\tmillions):\\n\\tNet\\tCarrying\\tValueUnpaid\\nPrincipal\\nBalance\\nUnused\\nCommitted\\nAmount\\t(1)\\nContractual\\nInterest\\tRates\\nContractual\\nMaturity\\tDate\\tCurrentLong-Term\\nRecourse\\tdebt:\\t\\t\\t\\n2024\\tNotes$37\\t$—\\t$37\\t$—\\t2.00\\t%May\\t2024\\nRCF\\tCredit\\tAgreement—\\t—\\t—\\t5,000\\tNot\\tapplicableJanuary\\t2028\\nSolar\\tBonds—\\t7\\t7\\t—\\t4.70-5.75%March\\t2025\\t-\\tJanuary\\t2031\\nOther—\\t—\\t—\\t28\\tNot\\tapplicableDecember\\t2026\\nTotal\\trecourse\\tdebt37\\t7\\t44\\t5,028\\t\\nNon-recourse\\tdebt:\\nAutomotive\\tAsset-backed\\tNotes1,906\\t2,337\\t4,259\\t—\\t0.60-6.57%July\\t2024-May\\t2031\\nSolar\\tAsset-backed\\tNotes4\\t8\\t13\\t—\\t4.80\\t%December\\t2026\\nCash\\tEquity\\tDebt28\\t330\\t367\\t—\\t5.25-5.81%July\\t2033-January\\t2035\\nTotal\\tnon-recourse\\tdebt1,938\\t2,675\\t4,639\\t—\\t\\nTotal\\tdebt1,975\\t2,682\\t\\n$4,683\\t$5,028\\t\\nFinance\\tleases398\\t175\\t\\nTotal\\tdebt\\tand\\tfinance\\tleases\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 76,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 57\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Total\\tdebt\\tand\\tfinance\\tleases\\n$2,373\\t$2,857\\t\\n74\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 76,\n        \"lines\": {\n          \"from\": 57,\n          \"to\": 59\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"The\\tfollowing\\tis\\ta\\tsummary\\tof\\tour\\tdebt\\tand\\tfinance\\tleases\\tas\\tof\\tDecember\\t31,\\t2022\\t(in\\tmillions):\\nNet\\tCarrying\\tValueUnpaid\\nPrincipal\\nBalance\\nUnused\\nCommitted\\nAmount\\t(2)\\nContractual\\nInterest\\tRates\\nContractual\\nMaturity\\tDateCurrentLong-Term\\nRecourse\\tdebt:\\t\\t\\t\\n2024\\tNotes$—\\t$37\\t$37\\t$—\\t2.00\\t%May\\t2024\\nCredit\\tAgreement—\\t—\\t—\\t2,266\\tNot\\tapplicableJuly\\t2023\\nSolar\\tBonds—\\t7\\t7\\t—\\t4.70-5.75%March\\t2025\\t-\\tJanuary\\t2031\\nTotal\\trecourse\\tdebt—\\t44\\t44\\t2,266\\t\\nNon-recourse\\tdebt:\\nAutomotive\\tAsset-backed\\tNotes984\\t613\\t1,603\\t—\\t0.36-4.64%December\\t2023-September\\t2025\\nSolar\\tAsset-backed\\tNotes4\\t13\\t17\\t—\\t4.80\\t%December\\t2026\\nCash\\tEquity\\tDebt28\\t359\\t397\\t—\\t5.25-5.81%July\\t2033-January\\t2035\\nAutomotive\\tLease-backed\\tCredit\\tFacilities—\\t—\\t—\\t151\\tNot\\tapplicableSeptember\\t2024\\nTotal\\tnon-recourse\\tdebt1,016\\t985\\t2,017\\t151\\t\\nTotal\\tdebt1,016\\t1,029\\t\\n$2,061\\t$2,417\\t\\nFinance\\tleases486\\t568\\t\\nTotal\\tdebt\\tand\\tfinance\\tleases\\n$1,502\\t$1,597\\t\\n(1)There\\tare\\tno\\trestrictions\\ton\\tdraw-down\\tor\\tuse\\tfor\\tgeneral\\tcorporate\\tpurposes\\twith\\trespect\\tto\\tany\\tavailable\\tcommitted\\tfunds\\tunder\\tour\\tRCF\\tCredit\\nAgreement,\\texcept\\tcertain\\tspecified\\tconditions\\tprior\\tto\\tdraw-down.\\tRefer\\tto\\tthe\\tsection\\tbelow\\tfor\\tthe\\tterms\\tof\\tthe\\tfacility.\\n(2)There\\twere\\tno\\trestrictions\\ton\\tdraw-down\\tor\\tuse\\tfor\\tgeneral\\tcorporate\\tpurposes\\twith\\trespect\\tto\\tany\\tavailable\\tcommitted\\tfunds\\tunder\\tour\\tcredit\\nfacilities,\\texcept\\tcertain\\tspecified\\tconditions\\tprior\\tto\\tdraw-down,\\tincluding\\tpledging\\tto\\tour\\tlenders\\tsufficient\\tamounts\\tof\\tqualified\\treceivables,\\ninventories,\\tleased\\tvehicles\\tand\\tour\\tinterests\\tin\\tthose\\tleases\\tor\\tvarious\\tother\\tassets\\tas\\tdescribed\\tbelow.\\nRecourse\\tdebt\\trefers\\tto\\tdebt\\tthat\\tis\\trecourse\\tto\\tour\\tgeneral\\tassets.\\tNon-recourse\\tdebt\\trefers\\tto\\tdebt\\tthat\\tis\\trecourse\\tto\\tonly\\tassets\\tof\\tour\\nsubsidiaries.\\tThe\\tdifferences\\tbetween\\tthe\\tunpaid\\tprincipal\\tbalances\\tand\\tthe\\tnet\\tcarrying\\tvalues\\tare\\tdue\\tto\\tdebt\\tdiscounts\\tor\\tdeferred\\tissuance\\tcosts.\\tAs\\nof\\tDecember\\t31,\\t2023,\\twe\\twere\\tin\\tmaterial\\tcompliance\\twith\\tall\\tfinancial\\tdebt\\tcovenants.\\n2024\\tNotes\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 77,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 36\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"2024\\tNotes\\nThe\\tclosing\\tprice\\tof\\tour\\tcommon\\tstock\\tcontinued\\tto\\texceed\\t130%\\tof\\tthe\\tapplicable\\tconversion\\tprice\\tof\\tour\\t2024\\tNotes\\ton\\tat\\tleast\\t20\\tof\\tthe\\tlast\\t30\\nconsecutive\\ttrading\\tdays\\tof\\teach\\tquarter\\tin\\t2023,\\tcausing\\tthe\\t2024\\tNotes\\tto\\tbe\\tconvertible\\tby\\ttheir\\tholders\\tin\\tthe\\tsubsequent\\tquarter.\\tAs\\tof\\tDecember\\n31,\\t2023,\\tthe\\tif-converted\\tvalue\\tof\\tthe\\tnotes\\texceeds\\tthe\\toutstanding\\tprincipal\\tamount\\tby\\t$406\\tmillion.\\tUpon\\tconversion,\\tthe\\t2024\\tNotes\\twill\\tbe\\tsettled\\nin\\tcash,\\tshares\\tof\\tour\\tcommon\\tstock\\tor\\ta\\tcombination\\tthereof,\\tat\\tour\\telection.\\nCredit\\tAgreement\\nIn\\tJune\\t2015,\\twe\\tentered\\tinto\\ta\\tsenior\\tasset-based\\trevolving\\tcredit\\tagreement\\t(as\\tamended\\tfrom\\ttime\\tto\\ttime,\\tthe\\t“Credit\\tAgreement”)\\twith\\ta\\nsyndicate\\tof\\tbanks.\\tBorrowed\\tfunds\\tbear\\tinterest,\\tat\\tour\\toption,\\tat\\tan\\tannual\\trate\\tof\\t(a)\\t1%\\tplus\\tLIBOR\\tor\\t(b)\\tthe\\thighest\\tof\\t(i)\\tthe\\tfederal\\tfunds\\trate\\tplus\\n0.50%,\\t(ii)\\tthe\\tlenders’\\t“prime\\trate”\\tor\\t(iii)\\t1%\\tplus\\tLIBOR.\\tThe\\tfee\\tfor\\tundrawn\\tamounts\\tis\\t0.25%\\tper\\tannum.\\tThe\\tCredit\\tAgreement\\tis\\tsecured\\tby\\tcertain\\nof\\tour\\taccounts\\treceivable,\\tinventory\\tand\\tequipment.\\tAvailability\\tunder\\tthe\\tCredit\\tAgreement\\tis\\tbased\\ton\\tthe\\tvalue\\tof\\tsuch\\tassets,\\tas\\treduced\\tby\\tcertain\\nreserves.\\nIn\\tJanuary\\t2023,\\twe\\tentered\\tinto\\ta\\t5-year\\tsenior\\tunsecured\\trevolving\\tcredit\\tfacility\\t(the\\t“RCF\\tCredit\\tAgreement”)\\twith\\ta\\tsyndicate\\tof\\tbanks\\tto\\nreplace\\tthe\\texisting\\tCredit\\tAgreement,\\twhich\\twas\\tterminated.\\tThe\\tRCF\\tCredit\\tAgreement\\tcontains\\ttwo\\toptional\\tone-year\\textensions\\tand\\thas\\ta\\ttotal\\ncommitment\\tof\\tup\\tto\\t$5.00\\tbillion,\\twhich\\tcould\\tbe\\tincreased\\tup\\tto\\t$7.00\\tbillion\\tunder\\tcertain\\tcircumstances.\\tThe\\tunderlying\\tborrowings\\tmay\\tbe\\tused\\tfor\\ngeneral\\tcorporate\\tpurposes.\\tBorrowed\\tfunds\\taccrue\\tinterest\\tat\\ta\\tvariable\\trate\\tequal\\tto:\\t(i)\\tfor\\tdollar-denominated\\tloans,\\tat\\tour\\telection,\\t(a)\\tTerm\\tSOFR\\n(the\\tforward-looking\\tsecured\\tovernight\\tfinancing\\trate)\\tplus\\t0.10%,\\tor\\t(b)\\tan\\talternate\\tbase\\trate;\\t(ii)\\tfor\\tloans\\tdenominated\\tin\\tpounds\\tsterling,\\tSONIA\\t(the\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 77,\n        \"lines\": {\n          \"from\": 36,\n          \"to\": 51\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"sterling\\tovernight\\tindex\\taverage\\treference\\trate);\\tor\\t(iii)\\tfor\\tloans\\tdenominated\\tin\\teuros,\\tan\\tadjusted\\tEURIBOR\\t(euro\\tinterbank\\toffered\\trate);\\tin\\teach\\tcase,\\nplus\\tan\\tapplicable\\tmargin.\\tThe\\tapplicable\\tmargin\\twill\\tbe\\tbased\\ton\\tthe\\trating\\tassigned\\tto\\tour\\tsenior,\\tunsecured\\tlong-term\\tindebtedness\\t(the\\t“Credit\\nRating”)\\tfrom\\ttime\\tto\\ttime.\\tThe\\tfee\\tfor\\tundrawn\\tamounts\\tis\\tvariable\\tbased\\ton\\tthe\\tCredit\\tRating\\tand\\tis\\tcurrently\\t0.125%\\tper\\tannum.\\n75\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 77,\n        \"lines\": {\n          \"from\": 52,\n          \"to\": 55\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Automotive\\tAsset-backed\\tNotes\\nFrom\\ttime\\tto\\ttime,\\twe\\ttransfer\\treceivables\\tand/or\\tbeneficial\\tinterests\\trelated\\tto\\tcertain\\tvehicles\\t(either\\tleased\\tor\\tfinanced)\\tinto\\tspecial\\tpurpose\\nentities\\t(“SPEs”)\\tand\\tissue\\tAutomotive\\tAsset-backed\\tNotes,\\tbacked\\tby\\tthese\\tautomotive\\tassets\\tto\\tinvestors.\\tThe\\tSPEs\\tare\\tconsolidated\\tin\\tthe\\tfinancial\\nstatements.\\tThe\\tcash\\tflows\\tgenerated\\tby\\tthese\\tautomotive\\tassets\\tare\\tused\\tto\\tservice\\tthe\\tprincipal\\tand\\tinterest\\tpayments\\ton\\tthe\\tAutomotive\\tAsset-\\nbacked\\tNotes\\tand\\tsatisfy\\tthe\\tSPEs’\\texpenses,\\tand\\tany\\tremaining\\tcash\\tis\\tdistributed\\tto\\tthe\\towners\\tof\\tthe\\tSPEs.\\tWe\\trecognize\\trevenue\\tearned\\tfrom\\tthe\\nassociated\\tcustomer\\tlease\\tor\\tfinancing\\tcontracts\\tin\\taccordance\\twith\\tour\\trevenue\\trecognition\\tpolicy.\\tThe\\tSPEs’\\tassets\\tand\\tcash\\tflows\\tare\\tnot\\tavailable\\tto\\nour\\tother\\tcreditors,\\tand\\tthe\\tcreditors\\tof\\tthe\\tSPEs,\\tincluding\\tthe\\tAutomotive\\tAsset-backed\\tNote\\tholders,\\thave\\tno\\trecourse\\tto\\tour\\tother\\tassets.\\nIn\\t2023,\\twe\\ttransferred\\tbeneficial\\tinterests\\trelated\\tto\\tcertain\\tleased\\tvehicles\\tand\\tfinancing\\treceivables\\tinto\\tSPEs\\tand\\tissued\\t$3.93\\tbillion\\tin\\naggregate\\tprincipal\\tamount\\tof\\tAutomotive\\tAsset-backed\\tNotes,\\twith\\tterms\\tsimilar\\tto\\tour\\tother\\tpreviously\\tissued\\tAutomotive\\tAsset-backed\\tNotes.\\tThe\\nproceeds\\tfrom\\tthe\\tissuance,\\tnet\\tof\\tdebt\\tissuance\\tcosts,\\twere\\t$3.92\\tbillion.\\nCash\\tEquity\\tDebt\\nIn\\tconnection\\twith\\tthe\\tcash\\tequity\\tfinancing\\tdeals\\tclosed\\tin\\t2016,\\tour\\tsubsidiaries\\tissued\\t$502\\tmillion\\tin\\taggregate\\tprincipal\\tamount\\tof\\tdebt\\tthat\\nbears\\tinterest\\tat\\tfixed\\trates.\\tThis\\tdebt\\tis\\tsecured\\tby,\\tamong\\tother\\tthings,\\tour\\tinterests\\tin\\tcertain\\tfinancing\\tfunds\\tand\\tis\\tnon-recourse\\tto\\tour\\tother\\tassets.\\nAutomotive\\tLease-backed\\tCredit\\tFacilities\\nIn\\tthe\\tthird\\tquarter\\tof\\t2023,\\twe\\tterminated\\tour\\tAutomotive\\tLease-backed\\tCredit\\tFacilities\\tand\\tthe\\tpreviously\\tcommitted\\tfunds\\tare\\tno\\tlonger\\navailable\\tfor\\tfuture\\tborrowings.\\nPledged\\tAssets\\nAs\\tof\\tDecember\\t31,\\t2023\\tand\\t2022,\\twe\\thad\\tpledged\\tor\\trestricted\\t$4.64\\tbillion\\tand\\t$2.02\\tbillion\\tof\\tour\\tassets\\t(consisting\\tprincipally\\tof\\toperating\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 78,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 18\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"lease\\tvehicles,\\tfinancing\\treceivables,\\trestricted\\tcash,\\tand\\tequity\\tinterests\\tin\\tcertain\\tSPEs)\\tas\\tcollateral\\tfor\\tour\\toutstanding\\tdebt.\\nSchedule\\tof\\tPrincipal\\tMaturities\\tof\\tDebt\\nThe\\tfuture\\tscheduled\\tprincipal\\tmaturities\\tof\\tdebt\\tas\\tof\\tDecember\\t31,\\t2023\\twere\\tas\\tfollows\\t(in\\tmillions):\\nRecourse\\tdebtNon-recourse\\tdebtTotal\\n2024\\n$37\\t$1,941\\t$1,978\\t\\n20254\\t1,663\\t1,667\\t\\n2026—\\t494\\t494\\t\\n2027—\\t276\\t276\\t\\n2028—\\t44\\t44\\t\\nThereafter3\\t221\\t224\\t\\nTotal\\n$44\\t$4,639\\t$4,683\\t\\nNote\\t12\\t–\\tLeases\\nWe\\thave\\tentered\\tinto\\tvarious\\toperating\\tand\\tfinance\\tlease\\tagreements\\tfor\\tcertain\\tof\\tour\\toffices,\\tmanufacturing\\tand\\twarehouse\\tfacilities,\\tretail\\tand\\nservice\\tlocations,\\tdata\\tcenters,\\tequipment,\\tvehicles,\\tand\\tsolar\\tenergy\\tsystems,\\tworldwide.\\tWe\\tdetermine\\tif\\tan\\tarrangement\\tis\\ta\\tlease,\\tor\\tcontains\\ta\\nlease,\\tat\\tinception\\tand\\trecord\\tthe\\tleases\\tin\\tour\\tfinancial\\tstatements\\tupon\\tlease\\tcommencement,\\twhich\\tis\\tthe\\tdate\\twhen\\tthe\\tunderlying\\tasset\\tis\\tmade\\navailable\\tfor\\tuse\\tby\\tthe\\tlessor.\\nWe\\thave\\tlease\\tagreements\\twith\\tlease\\tand\\tnon-lease\\tcomponents,\\tand\\thave\\telected\\tto\\tutilize\\tthe\\tpractical\\texpedient\\tto\\taccount\\tfor\\tlease\\tand\\tnon-\\nlease\\tcomponents\\ttogether\\tas\\ta\\tsingle\\tcombined\\tlease\\tcomponent,\\tfrom\\tboth\\ta\\tlessee\\tand\\tlessor\\tperspective\\twith\\tthe\\texception\\tof\\tdirect\\tsales-type\\nleases\\tand\\tproduction\\tequipment\\tclasses\\tembedded\\tin\\tsupply\\tagreements.\\tFrom\\ta\\tlessor\\tperspective,\\tthe\\ttiming\\tand\\tpattern\\tof\\ttransfer\\tare\\tthe\\tsame\\tfor\\nthe\\tnon-lease\\tcomponents\\tand\\tassociated\\tlease\\tcomponent\\tand,\\tthe\\tlease\\tcomponent,\\tif\\taccounted\\tfor\\tseparately,\\twould\\tbe\\tclassified\\tas\\tan\\toperating\\nlease.\\n76\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 78,\n        \"lines\": {\n          \"from\": 19,\n          \"to\": 42\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"We\\thave\\telected\\tnot\\tto\\tpresent\\tshort-term\\tleases\\ton\\tthe\\tconsolidated\\tbalance\\tsheet\\tas\\tthese\\tleases\\thave\\ta\\tlease\\tterm\\tof\\t12\\tmonths\\tor\\tless\\tat\\tlease\\ninception\\tand\\tdo\\tnot\\tcontain\\tpurchase\\toptions\\tor\\trenewal\\tterms\\tthat\\twe\\tare\\treasonably\\tcertain\\tto\\texercise.\\tAll\\tother\\tlease\\tassets\\tand\\tlease\\tliabilities\\tare\\nrecognized\\tbased\\ton\\tthe\\tpresent\\tvalue\\tof\\tlease\\tpayments\\tover\\tthe\\tlease\\tterm\\tat\\tcommencement\\tdate.\\tBecause\\tmost\\tof\\tour\\tleases\\tdo\\tnot\\tprovide\\tan\\nimplicit\\trate\\tof\\treturn,\\twe\\tused\\tour\\tincremental\\tborrowing\\trate\\tbased\\ton\\tthe\\tinformation\\tavailable\\tat\\tlease\\tcommencement\\tdate\\tin\\tdetermining\\tthe\\npresent\\tvalue\\tof\\tlease\\tpayments.\\nOur\\tleases,\\twhere\\twe\\tare\\tthe\\tlessee,\\toften\\tinclude\\toptions\\tto\\textend\\tthe\\tlease\\tterm\\tfor\\tup\\tto\\t10\\tyears.\\tSome\\tof\\tour\\tleases\\talso\\tinclude\\toptions\\tto\\nterminate\\tthe\\tlease\\tprior\\tto\\tthe\\tend\\tof\\tthe\\tagreed\\tupon\\tlease\\tterm.\\tFor\\tpurposes\\tof\\tcalculating\\tlease\\tliabilities,\\tlease\\tterms\\tinclude\\toptions\\tto\\textend\\tor\\nterminate\\tthe\\tlease\\twhen\\tit\\tis\\treasonably\\tcertain\\tthat\\twe\\twill\\texercise\\tsuch\\toptions.\\nLease\\texpense\\tfor\\toperating\\tleases\\tis\\trecognized\\ton\\ta\\tstraight-line\\tbasis\\tover\\tthe\\tlease\\tterm\\tas\\tcost\\tof\\trevenues\\tor\\toperating\\texpenses\\tdepending\\non\\tthe\\tnature\\tof\\tthe\\tleased\\tasset.\\tCertain\\toperating\\tleases\\tprovide\\tfor\\tannual\\tincreases\\tto\\tlease\\tpayments\\tbased\\ton\\tan\\tindex\\tor\\trate.\\tWe\\tcalculate\\tthe\\npresent\\tvalue\\tof\\tfuture\\tlease\\tpayments\\tbased\\ton\\tthe\\tindex\\tor\\trate\\tat\\tthe\\tlease\\tcommencement\\tdate\\tfor\\tnew\\tleases.\\tDifferences\\tbetween\\tthe\\tcalculated\\nlease\\tpayment\\tand\\tactual\\tpayment\\tare\\texpensed\\tas\\tincurred.\\tAmortization\\tof\\tfinance\\tlease\\tassets\\tis\\trecognized\\tover\\tthe\\tlease\\tterm\\tas\\tcost\\tof\\trevenues\\nor\\toperating\\texpenses\\tdepending\\ton\\tthe\\tnature\\tof\\tthe\\tleased\\tasset.\\tInterest\\texpense\\ton\\tfinance\\tlease\\tliabilities\\tis\\trecognized\\tover\\tthe\\tlease\\tterm\\twithin\\nInterest\\texpense\\tin\\tthe\\tconsolidated\\tstatements\\tof\\toperations.\\nThe\\tbalances\\tfor\\tthe\\toperating\\tand\\tfinance\\tleases\\twhere\\twe\\tare\\tthe\\tlessee\\tare\\tpresented\\tas\\tfollows\\t(in\\tmillions)\\twithin\\tour\\tconsolidated\\tbalance\\nsheets:\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 79,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 16\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"sheets:\\nDecember\\t31,\\t2023December\\t31,\\t2022\\nOperating\\tleases:\\n\\t\\t\\nOperating\\tlease\\tright-of-use\\tassets$4,180\\t$2,563\\t\\n\\t\\nAccrued\\tliabilities\\tand\\tother$672\\t$485\\t\\nOther\\tlong-term\\tliabilities3,671\\t2,164\\t\\nTotal\\toperating\\tlease\\tliabilities\\n$4,343\\t$2,649\\t\\n\\t\\nFinance\\tleases:\\t\\t\\nSolar\\tenergy\\tsystems,\\tnet$23\\t$25\\t\\nProperty,\\tplant\\tand\\tequipment,\\tnet601\\t1,094\\t\\nTotal\\tfinance\\tlease\\tassets\\n$624\\t$1,119\\t\\n\\t\\nCurrent\\tportion\\tof\\tlong-term\\tdebt\\tand\\tfinance\\tleases$398\\t$486\\t\\nLong-term\\tdebt\\tand\\tfinance\\tleases,\\tnet\\tof\\tcurrent\\tportion175\\t568\\t\\nTotal\\tfinance\\tlease\\tliabilities\\n$573\\t$1,054\\t\\n77\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 79,\n        \"lines\": {\n          \"from\": 16,\n          \"to\": 37\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"The\\tcomponents\\tof\\tlease\\texpense\\tare\\tas\\tfollows\\t(in\\tmillions)\\twithin\\tour\\tconsolidated\\tstatements\\tof\\toperations:\\nYear\\tEnded\\tDecember\\t31,\\n202320222021\\nOperating\\tlease\\texpense:\\t\\t\\t\\nOperating\\tlease\\texpense\\t(1)$1,153\\t$798\\t$627\\t\\n\\t\\nFinance\\tlease\\texpense:\\nAmortization\\tof\\tleased\\tassets$506\\t$493\\t$415\\t\\nInterest\\ton\\tlease\\tliabilities45\\t72\\t89\\t\\nTotal\\tfinance\\tlease\\texpense$551\\t$565\\t$504\\t\\n\\t\\nTotal\\tlease\\texpense\\n$1,704\\t$1,363\\t$1,131\\t\\n(1)Includes\\tshort-term\\tleases\\tand\\tvariable\\tlease\\tcosts,\\twhich\\tare\\timmaterial.\\nOther\\tinformation\\trelated\\tto\\tleases\\twhere\\twe\\tare\\tthe\\tlessee\\tis\\tas\\tfollows:\\nDecember\\t31,\\t2023December\\t31,\\t2022\\nWeighted-average\\tremaining\\tlease\\tterm:\\nOperating\\tleases7.4\\tyears6.4\\tyears\\nFinance\\tleases2.3\\tyears3.1\\tyears\\n\\t\\nWeighted-average\\tdiscount\\trate:\\nOperating\\tleases5.6\\t%5.3\\t%\\nFinance\\tleases5.5\\t%5.7\\t%\\nSupplemental\\tcash\\tflow\\tinformation\\trelated\\tto\\tleases\\twhere\\twe\\tare\\tthe\\tlessee\\tis\\tas\\tfollows\\t(in\\tmillions):\\nYear\\tEnded\\tDecember\\t31,\\n202320222021\\nCash\\tpaid\\tfor\\tamounts\\tincluded\\tin\\tthe\\tmeasurement\\tof\\tlease\\tliabilities:\\nOperating\\tcash\\toutflows\\tfrom\\toperating\\tleases$1,084\\t$754\\t$616\\t\\nOperating\\tcash\\toutflows\\tfrom\\tfinance\\tleases\\t(interest\\tpayments)$47\\t$75\\t$89\\t\\nLeased\\tassets\\tobtained\\tin\\texchange\\tfor\\tfinance\\tlease\\tliabilities$10\\t$58\\t$486\\t\\nLeased\\tassets\\tobtained\\tin\\texchange\\tfor\\toperating\\tlease\\tliabilities$2,170\\t$1,059\\t$818\\t\\n78\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 80,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 32\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"As\\tof\\tDecember\\t31,\\t2023,\\tthe\\tmaturities\\tof\\tour\\toperating\\tand\\tfinance\\tlease\\tliabilities\\t(excluding\\tshort-term\\tleases)\\tare\\tas\\tfollows\\t(in\\tmillions):\\n\\t\\nOperating\\nLeases\\nFinance\\nLeases\\n2024\\n$892\\t$418\\t\\n2025831\\t81\\t\\n2026706\\t57\\t\\n2027603\\t38\\t\\n2028508\\t2\\t\\nThereafter1,820\\t4\\t\\nTotal\\tminimum\\tlease\\tpayments\\n5,360\\t600\\t\\nLess:\\tInterest1,017\\t27\\t\\nPresent\\tvalue\\tof\\tlease\\tobligations\\n4,343\\t573\\t\\nLess:\\tCurrent\\tportion672\\t398\\t\\nLong-term\\tportion\\tof\\tlease\\tobligations\\n$3,671\\t$175\\t\\nAs\\tof\\tDecember\\t31,\\t2023,\\twe\\thave\\texcluded\\tfrom\\tthe\\ttable\\tabove\\tadditional\\toperating\\tleases\\tthat\\thave\\tnot\\tyet\\tcommenced\\twith\\taggregate\\trent\\npayments\\tof\\t$1.53\\tbillion.\\tThese\\toperating\\tleases\\twill\\tcommence\\tbetween\\tfiscal\\tyear\\t2024\\tand\\t2025\\twith\\tlease\\tterms\\tof\\t2\\tyears\\tto\\t20\\tyears.\\nOperating\\tLease\\tand\\tSales-type\\tLease\\tReceivables\\nWe\\tare\\tthe\\tlessor\\tof\\tcertain\\tvehicle\\tand\\tsolar\\tenergy\\tsystem\\tarrangements\\tas\\tdescribed\\tin\\tNote\\t2,\\tSummary\\tof\\tSignificant\\tAccounting\\tPolicies.\\tAs\\tof\\nDecember\\t31,\\t2023,\\tmaturities\\tof\\tour\\toperating\\tlease\\tand\\tsales-type\\tlease\\treceivables\\tfrom\\tcustomers\\tfor\\teach\\tof\\tthe\\tnext\\tfive\\tyears\\tand\\tthereafter\\twere\\nas\\tfollows\\t(in\\tmillions):\\nOperating\\nLeases\\nSales-type\\nLeases\\n2024\\n$1,405\\t$227\\t\\n2025960\\t214\\t\\n2026461\\t210\\t\\n2027227\\t102\\t\\n2028197\\t25\\t\\nThereafter1,492\\t2\\t\\nGross\\tlease\\treceivables\\n$4,742\\t$780\\t\\nThe\\tabove\\ttable\\tdoes\\tnot\\tinclude\\tvehicle\\tsales\\tto\\tcustomers\\tor\\tleasing\\tpartners\\twith\\ta\\tresale\\tvalue\\tguarantee\\tas\\tthe\\tcash\\tpayments\\twere\\treceived\\nupfront.\\tFor\\tour\\tsolar\\tPPA\\tarrangements,\\tcustomers\\tare\\tcharged\\tsolely\\tbased\\ton\\tactual\\tpower\\tproduced\\tby\\tthe\\tinstalled\\tsolar\\tenergy\\tsystem\\tat\\ta\\npredefined\\trate\\tper\\tkilowatt-hour\\tof\\tpower\\tproduced.\\tThe\\tfuture\\tpayments\\tfrom\\tsuch\\tarrangements\\tare\\tnot\\tincluded\\tin\\tthe\\tabove\\ttable\\tas\\tthey\\tare\\ta\\nfunction\\tof\\tthe\\tpower\\tgenerated\\tby\\tthe\\trelated\\tsolar\\tenergy\\tsystems\\tin\\tthe\\tfuture.\\n79\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 81,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 45\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Net\\tInvestment\\tin\\tSales-type\\tLeases\\nNet\\tinvestment\\tin\\tsales-type\\tleases,\\twhich\\tis\\tthe\\tsum\\tof\\tthe\\tpresent\\tvalue\\tof\\tthe\\tfuture\\tcontractual\\tlease\\tpayments,\\tis\\tpresented\\ton\\tthe\\nconsolidated\\tbalance\\tsheets\\tas\\ta\\tcomponent\\tof\\tPrepaid\\texpenses\\tand\\tother\\tcurrent\\tassets\\tfor\\tthe\\tcurrent\\tportion\\tand\\tas\\tOther\\tnon-current\\tassets\\tfor\\tthe\\nlong-term\\tportion.\\tLease\\treceivables\\trelating\\tto\\tsales-type\\tleases\\tare\\tpresented\\ton\\tthe\\tconsolidated\\tbalance\\tsheets\\tas\\tfollows\\t(in\\tmillions):\\nDecember\\t31,\\t2023December\\t31,\\t2022\\nGross\\tlease\\treceivables\\n$780\\t$837\\t\\nUnearned\\tinterest\\tincome(78)(95)\\nAllowance\\tfor\\texpected\\tcredit\\tlosses(6)(4)\\nNet\\tinvestment\\tin\\tsales-type\\tleases\\n$696\\t$738\\t\\n\\t\\nReported\\tas:\\nPrepaid\\texpenses\\tand\\tother\\tcurrent\\tassets$189\\t$164\\t\\nOther\\tnon-current\\tassets507\\t574\\t\\nNet\\tinvestment\\tin\\tsales-type\\tleases\\n$696\\t$738\\t\\nLease\\tPass-Through\\tFinancing\\tObligation\\nAs\\tof\\tDecember\\t31,\\t2023,\\twe\\thave\\tfive\\ttransactions\\treferred\\tto\\tas\\t“lease\\tpass-through\\tfund\\tarrangements.”\\tUnder\\tthese\\tarrangements,\\tour\\twholly\\nowned\\tsubsidiaries\\tfinance\\tthe\\tcost\\tof\\tsolar\\tenergy\\tsystems\\twith\\tinvestors\\tthrough\\tarrangements\\tcontractually\\tstructured\\tas\\tmaster\\tleases\\tfor\\tan\\tinitial\\nterm\\tranging\\tbetween\\t10\\tand\\t25\\tyears.\\tThese\\tsolar\\tenergy\\tsystems\\tare\\tsubject\\tto\\tlease\\tor\\tPPAs\\twith\\tcustomers\\twith\\tan\\tinitial\\tterm\\tnot\\texceeding\\t25\\nyears.\\nUnder\\ta\\tlease\\tpass-through\\tfund\\tarrangement,\\tthe\\tinvestor\\tmakes\\ta\\tlarge\\tupfront\\tpayment\\tto\\tthe\\tlessor,\\twhich\\tis\\tone\\tof\\tour\\tsubsidiaries,\\tand\\tin\\nsome\\tcases,\\tsubsequent\\tperiodic\\tpayments.\\tAs\\tof\\tDecember\\t31,\\t2023,\\tthe\\tfuture\\tminimum\\tmaster\\tlease\\tpayments\\tto\\tbe\\treceived\\tfrom\\tinvestors,\\tfor\\neach\\tof\\tthe\\tnext\\tfive\\tyears\\tand\\tthereafter,\\twere\\tas\\tfollows\\t(in\\tmillions):\\n2024$18\\t\\n202527\\t\\n202628\\t\\n202729\\t\\n202829\\t\\nThereafter337\\t\\nTotal\\n$468\\t\\nNote\\t13\\t–\\tEquity\\tIncentive\\tPlans\\nIn\\tJune\\t2019,\\twe\\tadopted\\tthe\\t2019\\tEquity\\tIncentive\\tPlan\\t(the\\t“2019\\tPlan”).\\tThe\\t2019\\tPlan\\tprovides\\tfor\\tthe\\tgrant\\tof\\tstock\\toptions,\\trestricted\\tstock,\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 82,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 35\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"RSUs,\\tstock\\tappreciation\\trights,\\tperformance\\tunits\\tand\\tperformance\\tshares\\tto\\tour\\temployees,\\tdirectors\\tand\\tconsultants.\\tStock\\toptions\\tgranted\\tunder\\tthe\\n2019\\tPlan\\tmay\\tbe\\teither\\tincentive\\tstock\\toptions\\tor\\tnonstatutory\\tstock\\toptions.\\tIncentive\\tstock\\toptions\\tmay\\tonly\\tbe\\tgranted\\tto\\tour\\temployees.\\nNonstatutory\\tstock\\toptions\\tmay\\tbe\\tgranted\\tto\\tour\\temployees,\\tdirectors\\tand\\tconsultants.\\tGenerally,\\tour\\tstock\\toptions\\tand\\tRSUs\\tvest\\tover\\tfour\\tyears\\tand\\nour\\tstock\\toptions\\tare\\texercisable\\tover\\ta\\tmaximum\\tperiod\\tof\\t10\\tyears\\tfrom\\ttheir\\tgrant\\tdates.\\tVesting\\ttypically\\tterminates\\twhen\\tthe\\temployment\\tor\\nconsulting\\trelationship\\tends.\\nAs\\tof\\tDecember\\t31,\\t2023,\\t131.1\\tmillion\\tshares\\twere\\treserved\\tand\\tavailable\\tfor\\tissuance\\tunder\\tthe\\t2019\\tPlan.\\n80\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 82,\n        \"lines\": {\n          \"from\": 36,\n          \"to\": 42\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"The\\tfollowing\\ttable\\tsummarizes\\tour\\tstock\\toption\\tand\\tRSU\\tactivity\\tfor\\tthe\\tyear\\tended\\tDecember\\t31,\\t2023:\\nStock\\tOptionsRSUs\\nNumber\\tof\\nOptions\\n(in\\tthousands)\\nWeighted-\\nAverage\\nExercise\\nPrice\\nWeighted-\\nAverage\\nRemaining\\nContractual\\nLife\\t(years)\\nAggregate\\nIntrinsic\\nValue\\n(in\\tbillions)\\nNumber\\nof\\tRSUs\\n(in\\tthousands)\\nWeighted-\\nAverage\\nGrant\\nDate\\tFair\\nValue\\nBeginning\\tof\\tperiod\\n343,564$30.65\\t21,333$162.32\\t\\nGranted9,521$226.50\\t11,743$228.33\\t\\nExercised\\tor\\treleased(7,626)$43.07\\t(11,085)$116.47\\t\\nCancelled(1,438)$194.23\\t(2,903)$192.22\\t\\nEnd\\tof\\tperiod\\n344,021\\n$35.11\\t4.31$73.57\\t\\n19,088\\n$225.01\\t\\nVested\\tand\\texpected\\tto\\tvest,\\tDecember\\t31,\\t2023\\n340,884$33.38\\t4.27$73.45\\t18,446$225.76\\t\\nExercisable\\tand\\tvested,\\tDecember\\t31,\\t2023329,124$27.07\\t4.11$72.90\\t\\nThe\\tweighted-average\\tgrant\\tdate\\tfair\\tvalue\\tof\\tRSUs\\tgranted\\tin\\tthe\\tyears\\tended\\tDecember\\t31,\\t2023,\\t2022\\tand\\t2021\\twas\\t$228.33,\\t$239.85\\tand\\n$261.33,\\trespectively.\\tThe\\taggregate\\trelease\\tdate\\tfair\\tvalue\\tof\\tRSUs\\tin\\tthe\\tyears\\tended\\tDecember\\t31,\\t2023,\\t2022\\tand\\t2021\\twas\\t$2.50\\tbillion,\\t$4.32\\nbillion\\tand\\t$5.70\\tbillion,\\trespectively.\\nThe\\taggregate\\tintrinsic\\tvalue\\tof\\toptions\\texercised\\tin\\tthe\\tyears\\tended\\tDecember\\t31,\\t2023,\\t2022,\\tand\\t2021\\twas\\t$1.33\\tbillion,\\t$1.90\\tbillion\\tand\\n$26.88\\tbillion,\\trespectively.\\tDuring\\tthe\\tyear\\tended\\tDecember\\t31,\\t2021,\\tour\\tCEO\\texercised\\tall\\tof\\tthe\\tremaining\\tvested\\toptions\\tfrom\\tthe\\t2012\\tCEO\\nPerformance\\tAward,\\twhich\\tamounted\\tto\\tan\\tintrinsic\\tvalue\\tof\\t$23.45\\tbillion.\\nESPP\\nOur\\temployees\\tare\\teligible\\tto\\tpurchase\\tour\\tcommon\\tstock\\tthrough\\tpayroll\\tdeductions\\tof\\tup\\tto\\t15%\\tof\\ttheir\\teligible\\tcompensation,\\tsubject\\tto\\tany\\nplan\\tlimitations.\\tThe\\tpurchase\\tprice\\twould\\tbe\\t85%\\tof\\tthe\\tlower\\tof\\tthe\\tfair\\tmarket\\tvalue\\ton\\tthe\\tfirst\\tand\\tlast\\ttrading\\tdays\\tof\\teach\\tsix-month\\toffering\\nperiod.\\tDuring\\tthe\\tyears\\tended\\tDecember\\t31,\\t2023,\\t2022\\tand\\t2021,\\tunder\\tthe\\tESPP\\twe\\tissued\\t2.1\\tmillion,\\t1.4\\tmillion\\tand\\t1.5\\tmillion\\tshares,\\trespectively.\\nAs\\tof\\tDecember\\t31,\\t2023,\\tthere\\twere\\t97.8\\tmillion\\tshares\\tavailable\\tfor\\tissuance\\tunder\\tthe\\tESPP.\\nFair\\tValue\\tAssumptions\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 83,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 51\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Fair\\tValue\\tAssumptions\\nWe\\tuse\\tthe\\tfair\\tvalue\\tmethod\\tin\\trecognizing\\tstock-based\\tcompensation\\texpense.\\tUnder\\tthe\\tfair\\tvalue\\tmethod,\\twe\\testimate\\tthe\\tfair\\tvalue\\tof\\teach\\nstock\\toption\\taward\\twith\\tservice\\tor\\tservice\\tand\\tperformance\\tconditions\\tand\\tthe\\tESPP\\ton\\tthe\\tgrant\\tdate\\tgenerally\\tusing\\tthe\\tBlack-Scholes\\toption\\tpricing\\nmodel.\\tThe\\tweighted-average\\tassumptions\\tused\\tin\\tthe\\tBlack-Scholes\\tmodel\\tfor\\tstock\\toptions\\tare\\tas\\tfollows:\\nYear\\tEnded\\tDecember\\t31,\\n202320222021\\nRisk-free\\tinterest\\trate\\n3.90\\t%3.11\\t%0.66\\t%\\nExpected\\tterm\\t(in\\tyears)4.54.14.3\\nExpected\\tvolatility63\\t%63\\t%59\\t%\\nDividend\\tyield0.0\\t%0.0\\t%0.0\\t%\\nGrant\\tdate\\tfair\\tvalue\\tper\\tshare$121.62\\t$114.51\\t$128.02\\t\\nThe\\tfair\\tvalue\\tof\\tRSUs\\twith\\tservice\\tor\\tservice\\tand\\tperformance\\tconditions\\tis\\tmeasured\\ton\\tthe\\tgrant\\tdate\\tbased\\ton\\tthe\\tclosing\\tfair\\tmarket\\tvalue\\tof\\nour\\tcommon\\tstock.\\tThe\\trisk-free\\tinterest\\trate\\tis\\tbased\\ton\\tthe\\tU.S.\\tTreasury\\tyield\\tfor\\tzero-coupon\\tU.S.\\tTreasury\\tnotes\\twith\\tmaturities\\tapproximating\\teach\\ngrant’s\\texpected\\tlife.\\tWe\\tuse\\tour\\thistorical\\tdata\\tin\\testimating\\tthe\\texpected\\tterm\\tof\\tour\\temployee\\tgrants.\\tThe\\texpected\\tvolatility\\tis\\tbased\\ton\\tthe\\taverage\\nof\\tthe\\timplied\\tvolatility\\tof\\tpublicly\\ttraded\\toptions\\tfor\\tour\\tcommon\\tstock\\tand\\tthe\\thistorical\\tvolatility\\tof\\tour\\tcommon\\tstock.\\n81\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 83,\n        \"lines\": {\n          \"from\": 51,\n          \"to\": 67\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"2018\\tCEO\\tPerformance\\tAward\\nIn\\tMarch\\t2018,\\tour\\tstockholders\\tapproved\\tthe\\tBoard\\tof\\tDirectors’\\tgrant\\tof\\t304.0\\tmillion\\tstock\\toption\\tawards,\\tas\\tadjusted\\tto\\tgive\\teffect\\tto\\tthe\\t2020\\nStock\\tSplit\\tand\\tthe\\t2022\\tStock\\tSplit,\\tto\\tour\\tCEO\\t(the\\t“2018\\tCEO\\tPerformance\\tAward”).\\tThe\\t2018\\tCEO\\tPerformance\\tAward\\tconsisted\\tof\\t12\\tvesting\\ntranches\\twith\\ta\\tvesting\\tschedule\\tbased\\tentirely\\ton\\tthe\\tattainment\\tof\\tboth\\toperational\\tmilestones\\t(performance\\tconditions)\\tand\\tmarket\\tconditions,\\nassuming\\tcontinued\\temployment\\teither\\tas\\tthe\\tCEO\\tor\\tas\\tboth\\tExecutive\\tChairman\\tand\\tChief\\tProduct\\tOfficer\\tand\\tservice\\tthrough\\teach\\tvesting\\tdate.\\tEach\\nof\\tthe\\t12\\tvesting\\ttranches\\tof\\tthe\\t2018\\tCEO\\tPerformance\\tAward\\tvested\\tupon\\tcertification\\tby\\tthe\\tBoard\\tof\\tDirectors\\tthat\\tboth\\t(i)\\tthe\\tmarket\\tcapitalization\\nmilestone\\tfor\\tsuch\\ttranche,\\twhich\\tbegan\\tat\\t$100.0\\tbillion\\tfor\\tthe\\tfirst\\ttranche\\tand\\tincreases\\tby\\tincrements\\tof\\t$50.0\\tbillion\\tthereafter\\t(based\\ton\\tboth\\ta\\tsix\\ncalendar\\tmonth\\ttrailing\\taverage\\tand\\ta\\t30\\tcalendar\\tday\\ttrailing\\taverage,\\tcounting\\tonly\\ttrading\\tdays),\\thad\\tbeen\\tachieved,\\tand\\t(ii)\\tany\\tone\\tof\\tthe\\tfollowing\\neight\\toperational\\tmilestones\\tfocused\\ton\\ttotal\\trevenue\\tor\\tany\\tone\\tof\\tthe\\teight\\toperational\\tmilestones\\tfocused\\ton\\tAdjusted\\tEBITDA\\thad\\tbeen\\tachieved\\tfor\\nthe\\tfour\\tconsecutive\\tfiscal\\tquarters\\ton\\tan\\tannualized\\tbasis\\tand\\tsubsequently\\treported\\tby\\tus\\tin\\tour\\tconsolidated\\tfinancial\\tstatements\\tfiled\\twith\\tour\\tForms\\n10-Q\\tand/or\\t10-K.\\tAdjusted\\tEBITDA\\twas\\tdefined\\tas\\tnet\\tincome\\t(loss)\\tattributable\\tto\\tcommon\\tstockholders\\tbefore\\tinterest\\texpense,\\tprovision\\t(benefit)\\tfor\\nincome\\ttaxes,\\tdepreciation\\tand\\tamortization\\tand\\tstock-based\\tcompensation.\\tUpon\\tvesting\\tand\\texercise,\\tincluding\\tthe\\tpayment\\tof\\tthe\\texercise\\tprice\\tof\\n$23.34\\tper\\tshare\\tas\\tadjusted\\tto\\tgive\\teffect\\tto\\tthe\\t2020\\tStock\\tSplit\\tand\\tthe\\t2022\\tStock\\tSplit,\\tour\\tCEO\\tmust\\thold\\tshares\\tthat\\the\\tacquires\\tfor\\tfive\\tyears\\npost-exercise,\\tother\\tthan\\ta\\tcashless\\texercise\\twhere\\tshares\\tare\\tsimultaneously\\tsold\\tto\\tpay\\tfor\\tthe\\texercise\\tprice\\tand\\tany\\trequired\\ttax\\twithholding.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 84,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 14\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"The\\tachievement\\tstatus\\tof\\tthe\\toperational\\tmilestones\\tas\\tof\\tDecember\\t31,\\t2023\\tis\\tprovided\\tbelow.\\nTotal\\tAnnualized\\tRevenueAnnualized\\tAdjusted\\tEBITDA\\nMilestone\\n(in\\tbillions)Achievement\\tStatus\\nMilestone\\n(in\\tbillions)Achievement\\tStatus\\n$20.0\\tAchieved$1.5\\tAchieved\\n$35.0\\tAchieved$3.0\\tAchieved\\n$55.0\\tAchieved$4.5\\tAchieved\\n$75.0\\tAchieved$6.0\\tAchieved\\n$100.0\\t-$8.0\\tAchieved\\n$125.0\\t-$10.0\\tAchieved\\n$150.0\\t-$12.0\\tAchieved\\n$175.0\\t-$14.0\\tAchieved\\nStock-based\\tcompensation\\tunder\\tthe\\t2018\\tCEO\\tPerformance\\tAward\\trepresented\\ta\\tnon-cash\\texpense\\tand\\twas\\trecorded\\tas\\ta\\tSelling,\\tgeneral,\\tand\\nadministrative\\toperating\\texpense\\tin\\tour\\tconsolidated\\tstatements\\tof\\toperations.\\tIn\\teach\\tquarter\\tsince\\tthe\\tgrant\\tof\\tthe\\t2018\\tCEO\\tPerformance\\tAward,\\twe\\nhad\\trecognized\\texpense,\\tgenerally\\ton\\ta\\tpro-rated\\tbasis,\\tfor\\tonly\\tthe\\tnumber\\tof\\ttranches\\t(up\\tto\\tthe\\tmaximum\\tof\\t12\\ttranches)\\tthat\\tcorresponded\\tto\\tthe\\nnumber\\tof\\toperational\\tmilestones\\tthat\\thad\\tbeen\\tachieved\\tor\\thad\\tbeen\\tdetermined\\tprobable\\tof\\tbeing\\tachieved\\tin\\tthe\\tfuture,\\tin\\taccordance\\twith\\tthe\\nfollowing\\tprinciples.\\nOn\\tthe\\tgrant\\tdate,\\ta\\tMonte\\tCarlo\\tsimulation\\twas\\tused\\tto\\tdetermine\\tfor\\teach\\ttranche\\t(i)\\ta\\tfixed\\tamount\\tof\\texpense\\tfor\\tsuch\\ttranche\\tand\\t(ii)\\tthe\\nfuture\\ttime\\twhen\\tthe\\tmarket\\tcapitalization\\tmilestone\\tfor\\tsuch\\ttranche\\twas\\texpected\\tto\\tbe\\tachieved,\\tor\\tits\\t“expected\\tmarket\\tcapitalization\\tmilestone\\nachievement\\ttime.”\\tSeparately,\\tbased\\ton\\ta\\tsubjective\\tassessment\\tof\\tour\\tfuture\\tfinancial\\tperformance\\teach\\tquarter,\\twe\\tdetermined\\twhether\\tit\\twas\\nprobable\\tthat\\twe\\twould\\tachieve\\teach\\toperational\\tmilestone\\tthat\\thad\\tnot\\tpreviously\\tbeen\\tachieved\\tor\\tdeemed\\tprobable\\tof\\tachievement\\tand\\tif\\tso,\\tthe\\nfuture\\ttime\\twhen\\twe\\texpected\\tto\\tachieve\\tthat\\toperational\\tmilestone,\\tor\\tits\\t“expected\\toperational\\tmilestone\\tachievement\\ttime.”\\nAs\\tof\\tDecember\\t31,\\t2022,\\tall\\tremaining\\tunrecognized\\tstock-based\\tcompensation\\texpense\\tunder\\tthe\\t2018\\tCEO\\tPerformance\\tAward\\thad\\tbeen\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 84,\n        \"lines\": {\n          \"from\": 15,\n          \"to\": 39\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"recognized.\\tFor\\tthe\\tyears\\tended\\tDecember\\t31,\\t2022\\tand\\t2021,\\twe\\trecorded\\tstock-based\\tcompensation\\texpense\\tof\\t$66\\tmillion\\tand\\t$910\\tmillion,\\nrespectively,\\trelated\\tto\\tthe\\t2018\\tCEO\\tPerformance\\tAward.\\n82\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 84,\n        \"lines\": {\n          \"from\": 40,\n          \"to\": 42\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Other\\tPerformance-Based\\tGrants\\nFrom\\ttime\\tto\\ttime,\\tthe\\tCompensation\\tCommittee\\tof\\tour\\tBoard\\tof\\tDirectors\\tgrants\\tcertain\\temployees\\tperformance-based\\tRSUs\\tand\\tstock\\toptions.\\nAs\\tof\\tDecember\\t31,\\t2023,\\twe\\thad\\tunrecognized\\tstock-based\\tcompensation\\texpense\\tof\\t$655\\tmillion\\tunder\\tthese\\tgrants\\tto\\tpurchase\\tor\\treceive\\tan\\naggregate\\t5.3\\tmillion\\tshares\\tof\\tour\\tcommon\\tstock.\\tFor\\tawards\\tprobable\\tof\\tachievement,\\twe\\testimate\\tthe\\tunrecognized\\tstock-based\\tcompensation\\nexpense\\tof\\t$110\\tmillion\\twill\\tbe\\trecognized\\tover\\ta\\tweighted-average\\tperiod\\tof\\t4.0\\tyears.\\nFor\\tthe\\tyears\\tended\\tDecember\\t31,\\t2023\\tand\\t2022,\\twe\\trecorded\\t$57\\tmillion\\tand\\t$159\\tmillion,\\trespectively,\\tof\\tstock-based\\tcompensation\\texpense\\nrelated\\tto\\tthese\\tgrants,\\tnet\\tof\\tforfeitures.\\nSummary\\tStock-Based\\tCompensation\\tInformation\\nThe\\tfollowing\\ttable\\tsummarizes\\tour\\tstock-based\\tcompensation\\texpense\\tby\\tline\\titem\\tin\\tthe\\tconsolidated\\tstatements\\tof\\toperations\\t(in\\tmillions):\\nYear\\tEnded\\tDecember\\t31,\\n202320222021\\nCost\\tof\\trevenues\\n$741\\t$594\\t$421\\t\\nResearch\\tand\\tdevelopment689\\t536\\t448\\t\\nSelling,\\tgeneral\\tand\\tadministrative382\\t430\\t1,252\\t\\nTotal\\n$1,812\\t$1,560\\t$2,121\\t\\nOur\\tincome\\ttax\\tbenefits\\trecognized\\tfrom\\tstock-based\\tcompensation\\tarrangements\\twere\\timmaterial\\twhile\\twe\\twere\\tunder\\tfull\\tvaluation\\tallowances\\non\\tour\\tU.S.\\tdeferred\\ttax\\tassets\\tduring\\tthe\\tyears\\tended\\tDecember\\t31,\\t2022\\tand\\t2021.\\tWith\\tthe\\trelease\\tof\\tthe\\tvaluation\\tallowance\\tassociated\\twith\\tour\\nfederal\\tand\\tcertain\\tstate\\tdeferred\\ttax\\tassets\\tin\\t2023,\\tincome\\ttax\\tbenefits\\trecognized\\tfrom\\tstock-based\\tcompensation\\texpense\\twere\\t$326\\tmillion\\tduring\\nthe\\tyear\\tended\\tDecember\\t31,\\t2023.\\tDuring\\tthe\\tyears\\tended\\tDecember\\t31,\\t2023,\\t2022\\tand\\t2021,\\tstock-based\\tcompensation\\texpense\\tcapitalized\\tto\\tour\\nconsolidated\\tbalance\\tsheets\\twas\\t$199\\tmillion,\\t$245\\tmillion\\tand\\t$182\\tmillion,\\trespectively.\\tAs\\tof\\tDecember\\t31,\\t2023,\\twe\\thad\\t$4.82\\tbillion\\tof\\ttotal\\nunrecognized\\tstock-based\\tcompensation\\texpense\\trelated\\tto\\tnon-performance\\tawards,\\twhich\\twill\\tbe\\trecognized\\tover\\ta\\tweighted-average\\tperiod\\tof\\t2.8\\nyears.\\nNote\\t14\\t–\\tIncome\\tTaxes\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 85,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 25\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"years.\\nNote\\t14\\t–\\tIncome\\tTaxes\\nOur\\tincome\\tbefore\\t(benefit\\tfrom)\\tprovision\\tfor\\tincome\\ttaxes\\tfor\\tthe\\tyears\\tended\\tDecember\\t31,\\t2023,\\t2022\\tand\\t2021\\twas\\tas\\tfollows\\t(in\\tmillions):\\nYear\\tEnded\\tDecember\\t31,\\n202320222021\\nDomestic\\n$3,196\\t$5,524\\t$(130)\\nNoncontrolling\\tinterest\\tand\\tredeemable\\tnoncontrolling\\tinterest(23)31\\t125\\t\\nForeign6,800\\t8,164\\t6,348\\t\\nIncome\\tbefore\\tincome\\ttaxes\\n$9,973\\t$13,719\\t$6,343\\t\\n83\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 85,\n        \"lines\": {\n          \"from\": 24,\n          \"to\": 35\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"A\\t(benefit\\tfrom)\\tprovision\\tfor\\tincome\\ttaxes\\tof\\t$(5.00)\\tbillion,\\t$1.13\\tbillion\\tand\\t$699\\tmillion\\thas\\tbeen\\trecognized\\tfor\\tthe\\tyears\\tended\\tDecember\\t31,\\n2023,\\t2022\\tand\\t2021,\\trespectively.\\tThe\\tcomponents\\tof\\tthe\\t(benefit\\tfrom)\\tprovision\\tfor\\tincome\\ttaxes\\tfor\\tthe\\tyears\\tended\\tDecember\\t31,\\t2023,\\t2022\\tand\\n2021\\tconsisted\\tof\\tthe\\tfollowing\\t(in\\tmillions):\\nYear\\tEnded\\tDecember\\t31,\\n202320222021\\nCurrent:\\nFederal$48\\t$—\\t$—\\t\\nState57\\t62\\t9\\t\\nForeign1,243\\t1,266\\t839\\t\\nTotal\\tcurrent\\n1,348\\t1,328\\t848\\t\\nDeferred:\\nFederal(5,246)26\\t—\\t\\nState(653)1\\t—\\t\\nForeign(450)(223)(149)\\nTotal\\tdeferred\\n(6,349)(196)(149)\\nTotal\\t(Benefit\\tfrom)\\tprovision\\tfor\\tincome\\ttaxes\\n$(5,001)$1,132\\t$699\\t\\nThe\\treconciliation\\tof\\ttaxes\\tat\\tthe\\tfederal\\tstatutory\\trate\\tto\\tour\\t(benefit\\tfrom)\\tprovision\\tfor\\tincome\\ttaxes\\tfor\\tthe\\tyears\\tended\\tDecember\\t31,\\t2023,\\n2022\\tand\\t2021\\twas\\tas\\tfollows\\t(in\\tmillions):\\nYear\\tEnded\\tDecember\\t31,\\n202320222021\\nTax\\tat\\tstatutory\\tfederal\\trate\\n$2,094\\t$2,881\\t$1,332\\t\\nState\\ttax,\\tnet\\tof\\tfederal\\tbenefit(372)51\\t6\\t\\nNondeductible\\texecutive\\tcompensation23\\t14\\t201\\t\\nExcess\\ttax\\tbenefits\\trelated\\tto\\tstock-based\\tcompensation(288)(745)(7,123)\\nNontaxable\\tmanufacturing\\tcredit(101)—\\t—\\t\\nForeign\\tincome\\trate\\tdifferential(816)(923)(668)\\nU.S.\\ttax\\tcredits(593)(276)(328)\\nGILTI\\tinclusion670\\t1,279\\t1,008\\t\\nUnrecognized\\ttax\\tbenefits183\\t252\\t28\\t\\nChange\\tin\\tvaluation\\tallowance(5,962)(1,532)6,165\\t\\nOther161\\t131\\t78\\t\\n(Benefit\\tfrom)\\tprovision\\tfor\\tincome\\ttaxes\\n$(5,001)$1,132\\t$699\\t\\nWe\\tmonitor\\tthe\\trealizability\\tof\\tour\\tdeferred\\ttax\\tassets\\ttaking\\tinto\\taccount\\tall\\trelevant\\tfactors\\tat\\teach\\treporting\\tperiod.\\tAs\\tof\\tDecember\\t31,\\t2023,\\nbased\\ton\\tthe\\trelevant\\tweight\\tof\\tpositive\\tand\\tnegative\\tevidence,\\tincluding\\tthe\\tamount\\tof\\tour\\ttaxable\\tincome\\tin\\trecent\\tyears\\twhich\\tis\\tobjective\\tand\\nverifiable,\\tand\\tconsideration\\tof\\tour\\texpected\\tfuture\\ttaxable\\tearnings,\\twe\\tconcluded\\tthat\\tit\\tis\\tmore\\tlikely\\tthan\\tnot\\tthat\\tour\\tU.S.\\tfederal\\tand\\tcertain\\tstate\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 86,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 40\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"deferred\\ttax\\tassets\\tare\\trealizable.\\tAs\\tsuch,\\twe\\treleased\\t$6.54\\tbillion\\tof\\tour\\tvaluation\\tallowance\\tassociated\\twith\\tthe\\tU.S.\\tfederal\\tand\\tstate\\tdeferred\\ttax\\nassets,\\twith\\tthe\\texception\\tof\\tour\\tCalifornia\\tdeferred\\ttax\\tassets.\\tWe\\tcontinue\\tto\\tmaintain\\ta\\tfull\\tvaluation\\tallowance\\tagainst\\tour\\tCalifornia\\tdeferred\\ttax\\nassets\\tas\\tof\\tDecember\\t31,\\t2023,\\tbecause\\twe\\tconcluded\\tthey\\tare\\tnot\\tmore\\tlikely\\tthan\\tnot\\tto\\tbe\\trealized\\tas\\twe\\texpect\\tour\\tCalifornia\\tdeferred\\ttax\\tassets\\ngeneration\\tin\\tfuture\\tyears\\tto\\texceed\\tour\\tability\\tto\\tuse\\tthese\\tdeferred\\ttax\\tassets.\\n84\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 86,\n        \"lines\": {\n          \"from\": 41,\n          \"to\": 45\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Deferred\\ttax\\tassets\\t(liabilities)\\tas\\tof\\tDecember\\t31,\\t2023\\tand\\t2022\\tconsisted\\tof\\tthe\\tfollowing\\t(in\\tmillions):\\nDecember\\t31,\\n2023\\nDecember\\t31,\\n2022\\nDeferred\\ttax\\tassets:\\nNet\\toperating\\tloss\\tcarry-forwards$2,826\\t$4,486\\t\\nResearch\\tand\\tdevelopment\\tcredits1,358\\t1,184\\t\\nOther\\ttax\\tcredits\\tand\\tattributes827\\t217\\t\\nDeferred\\trevenue1,035\\t751\\t\\nInventory\\tand\\twarranty\\treserves1,258\\t819\\t\\nStock-based\\tcompensation230\\t185\\t\\nOperating\\tlease\\tright-of-use\\tliabilities930\\t554\\t\\nCapitalized\\tresearch\\tand\\tdevelopment\\tcosts1,344\\t693\\t\\nDeferred\\tGILTI\\ttax\\tassets760\\t466\\t\\nAccruals\\tand\\tothers206\\t178\\t\\nTotal\\tdeferred\\ttax\\tassets\\n10,774\\t9,533\\t\\nValuation\\tallowance(892)(7,349)\\nDeferred\\ttax\\tassets,\\tnet\\tof\\tvaluation\\tallowance\\n9,882\\t2,184\\t\\nDeferred\\ttax\\tliabilities:\\nDepreciation\\tand\\tamortization(2,122)(1,178)\\nInvestment\\tin\\tcertain\\tfinancing\\tfunds(133)(238)\\nOperating\\tlease\\tright-of-use\\tassets(859)(506)\\nOther(116)(15)\\nTotal\\tdeferred\\ttax\\tliabilities\\n(3,230)(1,937)\\nDeferred\\ttax\\tassets\\t(liabilities),\\tnet\\tof\\tvaluation\\tallowance\\n$6,652\\t$247\\t\\nAs\\tof\\tDecember\\t31,\\t2023,\\twe\\tmaintained\\tvaluation\\tallowances\\tof\\t$892\\tmillion\\tfor\\tdeferred\\ttax\\tassets\\tthat\\tare\\tnot\\tmore\\tlikely\\tthan\\tnot\\tto\\tbe\\nrealized,\\twhich\\tprimarily\\tincluded\\tdeferred\\ttax\\tassets\\tin\\tthe\\tstate\\tof\\tCalifornia\\tand\\tcertain\\tforeign\\toperating\\tlosses.\\tThe\\tvaluation\\tallowance\\ton\\tour\\tnet\\ndeferred\\ttax\\tassets\\tdecreased\\tby\\t$6.46\\tbillion\\tand\\t$1.73\\tbillion\\tduring\\tthe\\tyears\\tended\\tDecember\\t31,\\t2023\\tand\\t2022,\\trespectively,\\tand\\tincreased\\tby\\n$6.14\\tbillion\\tduring\\tthe\\tyear\\tended\\tDecember\\t31,\\t2021.\\tThe\\tvaluation\\tallowance\\tdecrease\\tduring\\tthe\\tyear\\tended\\tDecember\\t31,\\t2023\\twas\\tprimarily\\tdue\\nto\\tthe\\trelease\\tof\\tour\\tvaluation\\tallowance\\twith\\trespect\\tto\\tour\\tU.S.\\tfederal\\tand\\tcertain\\tstate\\tdeferred\\ttax\\tassets.\\tThe\\tchanges\\tin\\tvaluation\\tallowances\\nduring\\tthe\\tyears\\tended\\tDecember\\t31,\\t2022\\tand\\t2021\\twere\\tprimarily\\tdue\\tto\\tchanges\\tin\\tour\\tU.S.\\tdeferred\\ttax\\tassets\\tand\\tliabilities\\tin\\tthe\\trespective\\tyear.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 87,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 36\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Among\\tour\\tdeferred\\ttax\\tassets\\tin\\tforeign\\tjurisdictions,\\twe\\trecorded\\ta\\tvaluation\\tallowance\\ton\\tcertain\\tforeign\\tnet\\toperating\\tlosses\\tthat\\tare\\tnot\\tmore\\tlikely\\nthan\\tnot\\tto\\tbe\\trealized.\\tThe\\tremainder\\tof\\tour\\tforeign\\tdeferred\\ttax\\tassets\\tare\\tmore\\tlikely\\tthan\\tnot\\tto\\tbe\\trealized\\tgiven\\tthe\\texpectation\\tof\\tfuture\\tearnings\\nin\\tthese\\tjurisdictions.\\nAs\\tof\\tDecember\\t31,\\t2023,\\twe\\thad\\t$10.31\\tbillion\\tof\\tfederal\\tand\\t$10.36\\tbillion\\tof\\tstate\\tnet\\toperating\\tloss\\tcarry-forwards\\tavailable\\tto\\toffset\\tfuture\\ntaxable\\tincome,\\tsome\\tof\\twhich,\\tif\\tnot\\tutilized,\\twill\\tbegin\\tto\\texpire\\tin\\t2024\\tfor\\tfederal\\tand\\tstate\\tpurposes.\\tFederal\\tand\\tstate\\tlaws\\tcan\\timpose\\tsubstantial\\nrestrictions\\ton\\tthe\\tutilization\\tof\\tnet\\toperating\\tloss\\tand\\ttax\\tcredit\\tcarry-forwards\\tin\\tthe\\tevent\\tof\\tan\\t“ownership\\tchange,”\\tas\\tdefined\\tin\\tSection\\t382\\tof\\tthe\\nInternal\\tRevenue\\tCode.\\tWe\\thave\\tdetermined\\tthat\\tno\\tsignificant\\tlimitation\\twould\\tbe\\tplaced\\ton\\tthe\\tutilization\\tof\\tour\\tnet\\toperating\\tloss\\tand\\ttax\\tcredit\\tcarry-\\nforwards\\tdue\\tto\\tprior\\townership\\tchanges\\tor\\texpirations.\\nAs\\tof\\tDecember\\t31,\\t2023,\\twe\\thad\\tfederal\\tresearch\\tand\\tdevelopment\\ttax\\tcredits\\tof\\t$1.10\\tbillion,\\tfederal\\trenewable\\tenergy\\ttax\\tcredits\\tof\\n$605\\tmillion,\\tand\\tstate\\tresearch\\tand\\tdevelopment\\ttax\\tcredits\\tof\\t$923\\tmillion.\\tMost\\tof\\tour\\tstate\\tresearch\\tand\\tdevelopment\\ttax\\tcredits\\twere\\tin\\tthe\\tstate\\tof\\nCalifornia.\\tIf\\tnot\\tutilized,\\tsome\\tof\\tthe\\tfederal\\ttax\\tcredits\\tmay\\texpire\\tin\\tvarious\\tamounts\\tbeginning\\tin\\t2036.\\tHowever,\\tCalifornia\\tresearch\\tand\\tdevelopment\\ntax\\tcredits\\tcan\\tbe\\tcarried\\tforward\\tindefinitely.\\n85\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 87,\n        \"lines\": {\n          \"from\": 37,\n          \"to\": 49\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"The\\tlocal\\tgovernment\\tof\\tShanghai\\tgranted\\ta\\tbeneficial\\tcorporate\\tincome\\ttax\\trate\\tof\\t15%\\tto\\tcertain\\teligible\\tenterprises,\\tcompared\\tto\\tthe\\t25%\\nstatutory\\tcorporate\\tincome\\ttax\\trate\\tin\\tChina.\\tOur\\tGigafactory\\tShanghai\\tsubsidiary\\twas\\tgranted\\tthis\\tbeneficial\\tincome\\ttax\\trate\\tof\\t15%\\tfor\\t2019\\tthrough\\n2023.\\tStarting\\tin\\t2024,\\tGigafactory\\tShanghai\\tis\\tsubject\\tto\\t25%\\tstatutory\\tcorporate\\tincome\\ttax\\trate\\tin\\tChina.\\nAs\\tof\\tDecember\\t31,\\t2023,\\twe\\tintend\\tto\\tindefinitely\\treinvest\\tour\\tforeign\\tearnings\\tand\\tcash\\tunless\\tsuch\\trepatriation\\tresults\\tin\\tno\\tor\\tminimal\\ttax\\tcosts.\\nWe\\thave\\trecorded\\tthe\\ttaxes\\tassociated\\twith\\tthe\\tforeign\\tearnings\\twe\\tintend\\tto\\trepatriate\\tin\\tthe\\tfuture.\\tFor\\tthe\\tearnings\\twe\\tintend\\tto\\tindefinitely\\treinvest,\\nno\\tdeferred\\ttax\\tliabilities\\tfor\\tforeign\\twithholding\\tor\\tother\\ttaxes\\thave\\tbeen\\trecorded.\\tThe\\testimated\\tamount\\tof\\tsuch\\tunrecognized\\twithholding\\ttax\\tliability\\nassociated\\twith\\tthe\\tindefinitely\\treinvested\\tearnings\\tis\\tapproximately\\t$245\\tmillion.\\nUncertain\\tTax\\tPositions\\nThe\\tchanges\\tto\\tour\\tgross\\tunrecognized\\ttax\\tbenefits\\twere\\tas\\tfollows\\t(in\\tmillions):\\nDecember\\t31,\\t2020$380\\t\\nIncreases\\tin\\tbalances\\trelated\\tto\\tprior\\tyear\\ttax\\tpositions117\\t\\nDecreases\\tin\\tbalances\\trelated\\tto\\tprior\\tyear\\ttax\\tpositions(90)\\nIncreases\\tin\\tbalances\\trelated\\tto\\tcurrent\\tyear\\ttax\\tpositions124\\t\\nDecember\\t31,\\t2021\\n531\\t\\nIncreases\\tin\\tbalances\\trelated\\tto\\tprior\\tyear\\ttax\\tpositions136\\t\\nDecreases\\tin\\tbalances\\trelated\\tto\\tprior\\tyear\\ttax\\tpositions(12)\\nIncreases\\tin\\tbalances\\trelated\\tto\\tcurrent\\tyear\\ttax\\tpositions222\\t\\nDecreases\\tin\\tbalances\\trelated\\tto\\texpiration\\tof\\tthe\\tstatute\\tof\\tlimitations(7)\\nDecember\\t31,\\t2022\\n870\\t\\nIncreases\\tin\\tbalances\\trelated\\tto\\tprior\\tyear\\ttax\\tpositions59\\t\\nDecreases\\trelated\\tto\\tsettlement\\twith\\ttax\\tauthorities(6)\\nIncreases\\tin\\tbalances\\trelated\\tto\\tcurrent\\tyear\\ttax\\tpositions255\\t\\nDecreases\\tin\\tbalances\\trelated\\tto\\texpiration\\tof\\tthe\\tstatute\\tof\\tlimitations(4)\\nDecember\\t31,\\t2023\\n$1,174\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 88,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 27\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"December\\t31,\\t2023\\n$1,174\\t\\nWe\\tinclude\\tinterest\\tand\\tpenalties\\trelated\\tto\\tunrecognized\\ttax\\tbenefits\\tin\\tincome\\ttax\\texpense.\\tWe\\trecognized\\tnet\\tinterest\\tand\\tpenalties\\trelated\\tto\\nunrecognized\\ttax\\tbenefits\\tin\\tprovision\\tfor\\tincome\\ttaxes\\tline\\tof\\tour\\tconsolidated\\tstatements\\tof\\toperations\\tof\\t$17\\tmillion,\\t$27\\tmillion\\tand\\t$4\\tmillion\\tfor\\tthe\\nyears\\tended\\tDecember\\t31,\\t2023,\\t2022\\tand\\t2021,\\trespectively.\\tAs\\tof\\tDecember\\t31,\\t2023,\\tand\\t2022,\\twe\\thave\\taccrued\\t$47\\tmillion\\tand\\t$31\\tmillion,\\nrespectively,\\trelated\\tto\\tinterest\\tand\\tpenalties\\ton\\tour\\tunrecognized\\ttax\\tbenefits.\\tUnrecognized\\ttax\\tbenefits\\tof\\t$901\\tmillion,\\tif\\trecognized,\\twould\\taffect\\tour\\neffective\\ttax\\trate.\\nWe\\tfile\\tincome\\ttax\\treturns\\tin\\tthe\\tU.S.\\tand\\tvarious\\tstate\\tand\\tforeign\\tjurisdictions.\\tWe\\tare\\tcurrently\\tunder\\texamination\\tby\\tthe\\tInternal\\tRevenue\\nService\\t(“IRS”)\\tfor\\tthe\\tyears\\t2015\\tto\\t2018.\\tAdditional\\ttax\\tyears\\twithin\\tthe\\tperiods\\t2004\\tto\\t2014\\tand\\t2019\\tto\\t2022\\tremain\\tsubject\\tto\\texamination\\tfor\\nfederal\\tincome\\ttax\\tpurposes.\\tAll\\tnet\\toperating\\tlosses\\tand\\ttax\\tcredits\\tgenerated\\tto\\tdate\\tare\\tsubject\\tto\\tadjustment\\tfor\\tU.S.\\tfederal\\tand\\tstate\\tincome\\ttax\\npurposes.\\tOur\\treturns\\tfor\\t2004\\tand\\tsubsequent\\ttax\\tyears\\tremain\\tsubject\\tto\\texamination\\tin\\tU.S.\\tstate\\tand\\tforeign\\tjurisdictions.\\nGiven\\tthe\\tuncertainty\\tin\\ttiming\\tand\\toutcome\\tof\\tour\\ttax\\texaminations,\\tan\\testimate\\tof\\tthe\\trange\\tof\\tthe\\treasonably\\tpossible\\tchange\\tin\\tgross\\nunrecognized\\ttax\\tbenefits\\twithin\\ttwelve\\tmonths\\tcannot\\tbe\\tmade\\tat\\tthis\\ttime.\\nNote\\t15\\t–\\tCommitments\\tand\\tContingencies\\nOperating\\tLease\\tArrangement\\tin\\tBuffalo,\\tNew\\tYork\\nWe\\thave\\tan\\toperating\\tlease\\tarrangement\\tthrough\\tthe\\tResearch\\tFoundation\\tfor\\tthe\\tSUNY\\tFoundation\\twith\\trespect\\tto\\tGigafactory\\tNew\\tYork.\\tUnder\\nthe\\tlease\\tand\\ta\\trelated\\tresearch\\tand\\tdevelopment\\tagreement,\\twe\\tare\\tcontinuing\\tto\\tfurther\\tdevelop\\tthe\\tfacility.\\n86\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 88,\n        \"lines\": {\n          \"from\": 26,\n          \"to\": 43\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Under\\tthis\\tagreement,\\twe\\tare\\tobligated\\tto,\\tamong\\tother\\tthings,\\tmeet\\temployment\\ttargets\\tas\\twell\\tas\\tspecified\\tminimum\\tnumbers\\tof\\tpersonnel\\tin\\nthe\\tState\\tof\\tNew\\tYork\\tand\\tin\\tBuffalo,\\tNew\\tYork\\tand\\tspend\\tor\\tincur\\t$5.00\\tbillion\\tin\\tcombined\\tcapital,\\toperational\\texpenses,\\tcosts\\tof\\tgoods\\tsold\\tand\\tother\\ncosts\\tin\\tthe\\tState\\tof\\tNew\\tYork\\tduring\\tthe\\t10-year\\tperiod\\tbeginning\\tApril\\t30,\\t2018.\\tOn\\tan\\tannual\\tbasis\\tduring\\tthe\\tinitial\\tlease\\tterm,\\tas\\tmeasured\\ton\\teach\\nanniversary\\tof\\tsuch\\tdate,\\tif\\twe\\tfail\\tto\\tmeet\\tthese\\tspecified\\tinvestment\\tand\\tjob\\tcreation\\trequirements,\\tthen\\twe\\twould\\tbe\\tobligated\\tto\\tpay\\ta\\t$41\\tmillion\\n“program\\tpayment”\\tto\\tthe\\tSUNY\\tFoundation\\tfor\\teach\\tyear\\tthat\\twe\\tfail\\tto\\tmeet\\tthese\\trequirements.\\tFurthermore,\\tif\\tthe\\tarrangement\\tis\\tterminated\\tdue\\tto\\na\\tmaterial\\tbreach\\tby\\tus,\\tthen\\tadditional\\tamounts\\tmay\\tbecome\\tpayable\\tby\\tus.\\nIn\\t2021,\\tan\\tamendment\\twas\\texecuted\\tto\\textend\\tour\\toverall\\tagreement\\tto\\tspend\\tor\\tincur\\t$5.00\\tbillion\\tin\\tcombined\\tcapital,\\toperational\\texpenses,\\ncosts\\tof\\tgoods\\tsold\\tand\\tother\\tcosts\\tin\\tthe\\tState\\tof\\tNew\\tYork\\tthrough\\tDecember\\t31,\\t2029.\\tOn\\tFebruary\\t1,\\t2022,\\twe\\treported\\tto\\tthe\\tState\\tof\\tNew\\tYork\\tthat\\nwe\\thad\\tmet\\tand\\texceeded\\tour\\tannual\\trequirements\\tfor\\tjobs\\tand\\tinvestment\\tin\\tBuffalo\\tand\\tNew\\tYork\\tState.\\tAs\\tof\\tDecember\\t31,\\t2023,\\twe\\thave\\tmet\\tand\\nexpect\\tto\\tmeet\\tthe\\trequirements\\tunder\\tthis\\tarrangement\\tbased\\ton\\tour\\tcurrent\\tand\\tanticipated\\tlevel\\tof\\toperations.\\tHowever,\\tif\\tour\\texpectations\\tas\\tto\\tthe\\ncosts\\tand\\ttimelines\\tof\\tour\\tinvestment\\tand\\toperations\\tat\\tBuffalo\\tprove\\tincorrect,\\twe\\tmay\\tincur\\tadditional\\texpenses\\tor\\tbe\\trequired\\tto\\tmake\\tsubstantial\\npayments\\tto\\tthe\\tSUNY\\tFoundation.\\nOperating\\tLease\\tArrangement\\tin\\tShanghai,\\tChina\\nWe\\thave\\tan\\toperating\\tlease\\tarrangement\\tfor\\tan\\tinitial\\tterm\\tof\\t50\\tyears\\twith\\tthe\\tlocal\\tgovernment\\tof\\tShanghai\\tfor\\tland\\tuse\\trights\\twhere\\twe\\thave\\nbeen\\tconstructing\\tGigafactory\\tShanghai.\\tUnder\\tthe\\tterms\\tof\\tthe\\tarrangement,\\twe\\tare\\trequired\\tto\\tspend\\tRMB\\t14.08\\tbillion\\tin\\tcapital\\texpenditures\\tby\\tthe\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 89,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 15\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"end\\tof\\t2023,\\twhich\\thas\\tbeen\\tachieved\\tin\\t2023,\\tand\\tto\\tgenerate\\tRMB\\t2.23\\tbillion\\tof\\tannual\\ttax\\trevenues\\tstarting\\tat\\tthe\\tend\\tof\\t2023.\\tAs\\tof\\tDecember\\t31,\\n2023,\\twe\\thave\\tmet\\tand\\texpect\\tto\\tmeet\\tthe\\ttax\\trevenue\\trequirements\\tbased\\ton\\tour\\tcurrent\\tlevel\\tof\\tspend\\tand\\tsales.\\nLegal\\tProceedings\\nLitigation\\tRelating\\tto\\t2018\\tCEO\\tPerformance\\tAward\\nOn\\tJune\\t4,\\t2018,\\ta\\tpurported\\tTesla\\tstockholder\\tfiled\\ta\\tputative\\tclass\\tand\\tderivative\\taction\\tin\\tthe\\tDelaware\\tCourt\\tof\\tChancery\\tagainst\\tElon\\tMusk\\tand\\nthe\\tmembers\\tof\\tTesla’s\\tboard\\tof\\tdirectors\\tas\\tthen\\tconstituted,\\talleging\\tcorporate\\twaste,\\tunjust\\tenrichment\\tand\\tthat\\tsuch\\tboard\\tmembers\\tbreached\\ttheir\\nfiduciary\\tduties\\tby\\tapproving\\tthe\\tstock-based\\tcompensation\\tplan\\tawarded\\tto\\tElon\\tMusk\\tin\\t2018.\\tTrial\\twas\\theld\\tNovember\\t14-18,\\t2022.\\tPost-trial\\tbriefing\\nand\\targument\\tare\\tnow\\tcomplete.\\nLitigation\\tRelated\\tto\\tDirectors’\\tCompensation\\nOn\\tJune\\t17,\\t2020,\\ta\\tpurported\\tTesla\\tstockholder\\tfiled\\ta\\tderivative\\taction\\tin\\tthe\\tDelaware\\tCourt\\tof\\tChancery,\\tpurportedly\\ton\\tbehalf\\tof\\tTesla,\\tagainst\\ncertain\\tof\\tTesla’s\\tcurrent\\tand\\tformer\\tdirectors\\tregarding\\tcompensation\\tawards\\tgranted\\tto\\tTesla’s\\tdirectors,\\tother\\tthan\\tElon\\tMusk,\\tbetween\\t2017\\tand\\n2020.\\tThe\\tsuit\\tasserts\\tclaims\\tfor\\tbreach\\tof\\tfiduciary\\tduty\\tand\\tunjust\\tenrichment\\tand\\tseeks\\tdeclaratory\\tand\\tinjunctive\\trelief,\\tunspecified\\tdamages\\tand\\nother\\trelief.\\tDefendants\\tfiled\\ttheir\\tanswer\\ton\\tSeptember\\t17,\\t2020.\\nOn\\tJuly\\t14,\\t2023,\\tthe\\tparties\\tfiled\\ta\\tStipulation\\tand\\tAgreement\\tof\\tCompromise\\tand\\tSettlement,\\twhich\\tdoes\\tnot\\tinvolve\\tan\\tadmission\\tof\\tany\\nwrongdoing\\tby\\tany\\tparty.\\tIf\\tthe\\tsettlement\\tis\\tapproved\\tby\\tthe\\tCourt,\\tthis\\taction\\twill\\tbe\\tfully\\tsettled\\tand\\tdismissed\\twith\\tprejudice.\\tPursuant\\tto\\tthe\\tterms\\tof\\nthe\\tagreement,\\tTesla\\tprovided\\tnotice\\tof\\tthe\\tproposed\\tsettlement\\tto\\tstockholders\\tof\\trecord\\tas\\tof\\tJuly\\t14,\\t2023.\\tThe\\tCourt\\theld\\ta\\thearing\\tregarding\\tthe\\nsettlement\\ton\\tOctober\\t13,\\t2023,\\tafter\\twhich\\tit\\ttook\\tthe\\tsettlement\\tand\\tplaintiff\\tcounsels’\\tfee\\trequest\\tunder\\tadvisement.\\tThe\\tsettlement\\tis\\tnot\\texpected\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 89,\n        \"lines\": {\n          \"from\": 16,\n          \"to\": 32\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"to\\thave\\tan\\tadverse\\timpact\\ton\\tour\\tresults\\tof\\toperations,\\tcash\\tflows\\tor\\tfinancial\\tposition.\\nLitigation\\tRelating\\tto\\tPotential\\tGoing\\tPrivate\\tTransaction\\nBetween\\tAugust\\t10,\\t2018\\tand\\tSeptember\\t6,\\t2018,\\tnine\\tpurported\\tstockholder\\tclass\\tactions\\twere\\tfiled\\tagainst\\tTesla\\tand\\tElon\\tMusk\\tin\\tconnection\\nwith\\tMr.\\tMusk’s\\tAugust\\t7,\\t2018\\tTwitter\\tpost\\tthat\\the\\twas\\tconsidering\\ttaking\\tTesla\\tprivate.\\tOn\\tJanuary\\t16,\\t2019,\\tPlaintiffs\\tfiled\\ttheir\\tconsolidated\\tcomplaint\\nin\\tthe\\tUnited\\tStates\\tDistrict\\tCourt\\tfor\\tthe\\tNorthern\\tDistrict\\tof\\tCalifornia\\tand\\tadded\\tas\\tdefendants\\tthe\\tmembers\\tof\\tTesla’s\\tboard\\tof\\tdirectors.\\tThe\\nconsolidated\\tcomplaint\\tasserts\\tclaims\\tfor\\tviolations\\tof\\tthe\\tfederal\\tsecurities\\tlaws\\tand\\tseeks\\tunspecified\\tdamages\\tand\\tother\\trelief.\\tThe\\tparties\\tstipulated\\nto\\tcertification\\tof\\ta\\tclass\\tof\\tstockholders,\\twhich\\tthe\\tcourt\\tgranted\\ton\\tNovember\\t25,\\t2020.\\tTrial\\tstarted\\ton\\tJanuary\\t17,\\t2023,\\tand\\ton\\tFebruary\\t3,\\t2023,\\ta\\njury\\trendered\\ta\\tverdict\\tin\\tfavor\\tof\\tthe\\tdefendants\\ton\\tall\\tcounts.\\tAfter\\ttrial,\\tplaintiffs\\tfiled\\ta\\tmotion\\tfor\\tjudgment\\tas\\ta\\tmatter\\tof\\tlaw\\tand\\ta\\tmotion\\tfor\\tnew\\ntrial,\\twhich\\tthe\\tCourt\\tdenied\\tand\\tjudgement\\twas\\tentered\\tin\\tfavor\\tof\\tdefendants\\ton\\tJuly\\t11,\\t2023.\\tOn\\tJuly\\t14,\\t2023,\\tplaintiffs\\tfiled\\ta\\tnotice\\tof\\tappeal.\\n87\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 89,\n        \"lines\": {\n          \"from\": 33,\n          \"to\": 42\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Between\\tOctober\\t17,\\t2018\\tand\\tMarch\\t8,\\t2021,\\tseven\\tderivative\\tlawsuits\\twere\\tfiled\\tin\\tthe\\tDelaware\\tCourt\\tof\\tChancery,\\tpurportedly\\ton\\tbehalf\\tof\\nTesla,\\tagainst\\tMr.\\tMusk\\tand\\tthe\\tmembers\\tof\\tTesla’s\\tboard\\tof\\tdirectors,\\tas\\tconstituted\\tat\\trelevant\\ttimes,\\tin\\trelation\\tto\\tstatements\\tmade\\tand\\tactions\\nconnected\\tto\\ta\\tpotential\\tgoing\\tprivate\\ttransaction,\\twith\\tcertain\\tof\\tthe\\tlawsuits\\tchallenging\\tadditional\\tTwitter\\tposts\\tby\\tMr.\\tMusk,\\tamong\\tother\\tthings.\\tFive\\nof\\tthose\\tactions\\twere\\tconsolidated,\\tand\\tall\\tseven\\tactions\\thave\\tbeen\\tstayed\\tpending\\tresolution\\tof\\tthe\\tappeal\\tin\\tthe\\tabove-referenced\\tconsolidated\\npurported\\tstockholder\\tclass\\taction.\\tIn\\taddition\\tto\\tthese\\tcases,\\ttwo\\tderivative\\tlawsuits\\twere\\tfiled\\ton\\tOctober\\t25,\\t2018\\tand\\tFebruary\\t11,\\t2019\\tin\\tthe\\tU.S.\\nDistrict\\tCourt\\tfor\\tthe\\tDistrict\\tof\\tDelaware,\\tpurportedly\\ton\\tbehalf\\tof\\tTesla,\\tagainst\\tMr.\\tMusk\\tand\\tthe\\tmembers\\tof\\tthe\\tTesla\\tboard\\tof\\tdirectors\\tas\\tthen\\nconstituted.\\tThose\\tcases\\thave\\talso\\tbeen\\tconsolidated\\tand\\tstayed\\tpending\\tresolution\\tof\\tthe\\tappeal\\tin\\tthe\\tabove-referenced\\tconsolidated\\tpurported\\nstockholder\\tclass\\taction.\\nOn\\tOctober\\t21,\\t2022,\\ta\\tlawsuit\\twas\\tfiled\\tin\\tthe\\tDelaware\\tCourt\\tof\\tChancery\\tby\\ta\\tpurported\\tshareholder\\tof\\tTesla\\talleging,\\tamong\\tother\\tthings,\\tthat\\nboard\\tmembers\\tbreached\\ttheir\\tfiduciary\\tduties\\tin\\tconnection\\twith\\ttheir\\toversight\\tof\\tthe\\tCompany’s\\t2018\\tsettlement\\twith\\tthe\\tSEC,\\tas\\tamended.\\tAmong\\nother\\tthings,\\tthe\\tplaintiff\\tseeks\\treforms\\tto\\tthe\\tCompany’s\\tcorporate\\tgovernance\\tand\\tinternal\\tprocedures,\\tunspecified\\tdamages,\\tand\\tattorneys’\\tfees.\\tThe\\nparties\\treached\\tan\\tagreement\\tto\\tstay\\tthe\\tcase\\tuntil\\tMarch\\t5,\\t2024.\\nOn\\tNovember\\t15,\\t2021,\\tJPMorgan\\tChase\\tBank\\t(“JP\\tMorgan”)\\tfiled\\ta\\tlawsuit\\tagainst\\tTesla\\tin\\tthe\\tSouthern\\tDistrict\\tof\\tNew\\tYork\\talleging\\tbreach\\tof\\ta\\nstock\\twarrant\\tagreement\\tthat\\twas\\tentered\\tinto\\tas\\tpart\\tof\\ta\\tconvertible\\tnotes\\toffering\\tin\\t2014.\\tIn\\t2018,\\tJP\\tMorgan\\tinformed\\tTesla\\tthat\\tit\\thad\\tadjusted\\tthe\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 90,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 14\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"strike\\tprice\\tbased\\tupon\\tMr.\\tMusk’s\\tAugust\\t7,\\t2018\\tTwitter\\tpost\\tthat\\the\\twas\\tconsidering\\ttaking\\tTesla\\tprivate.\\tTesla\\tdisputed\\tJP\\tMorgan’s\\tadjustment\\tas\\ta\\nviolation\\tof\\tthe\\tparties’\\tagreement.\\tIn\\t2021,\\tTesla\\tdelivered\\tshares\\tto\\tJP\\tMorgan\\tper\\tthe\\tagreement,\\twhich\\tthey\\tduly\\taccepted.\\tJP\\tMorgan\\tnow\\talleges\\nthat\\tit\\tis\\towed\\tapproximately\\t$162\\tmillion\\tas\\tthe\\tvalue\\tof\\tadditional\\tshares\\tthat\\tit\\tclaims\\tshould\\thave\\tbeen\\tdelivered\\tas\\ta\\tresult\\tof\\tthe\\tadjustment\\tto\\tthe\\nstrike\\tprice\\tin\\t2018.\\tOn\\tJanuary\\t24,\\t2022,\\tTesla\\tfiled\\tmultiple\\tcounterclaims\\tas\\tpart\\tof\\tits\\tanswer\\tto\\tthe\\tunderlying\\tlawsuit,\\tasserting\\tamong\\tother\\tpoints\\nthat\\tJP\\tMorgan\\tshould\\thave\\tterminated\\tthe\\tstock\\twarrant\\tagreement\\tin\\t2018\\trather\\tthan\\tmake\\tan\\tadjustment\\tto\\tthe\\tstrike\\tprice\\tthat\\tit\\tshould\\thave\\nknown\\twould\\tlead\\tto\\ta\\tcommercially\\tunreasonable\\tresult.\\tTesla\\tbelieves\\tthat\\tthe\\tadjustments\\tmade\\tby\\tJP\\tMorgan\\twere\\tneither\\tproper\\tnor\\tcommercially\\nreasonable,\\tas\\trequired\\tunder\\tthe\\tstock\\twarrant\\tagreements.\\tJP\\tMorgan\\tfiled\\ta\\tmotion\\tfor\\tjudgment\\ton\\tthe\\tpleadings,\\twhich\\tTesla\\topposed,\\tand\\tthat\\nmotion\\tis\\tcurrently\\tpending\\tbefore\\tthe\\tCourt.\\nLitigation\\tand\\tInvestigations\\tRelating\\tto\\tAlleged\\tDiscrimination\\tand\\tHarassment\\nOn\\tOctober\\t4,\\t2021,\\tin\\ta\\tcase\\tcaptioned\\tDiaz\\tv.\\tTesla,\\ta\\tjury\\tin\\tthe\\tNorthern\\tDistrict\\tof\\tCalifornia\\treturned\\ta\\tverdict\\tagainst\\tTesla\\ton\\tclaims\\tby\\ta\\nformer\\tcontingent\\tworker\\tthat\\the\\twas\\tsubjected\\tto\\trace\\tdiscrimination\\twhile\\tassigned\\tto\\twork\\tat\\tTesla’s\\tFremont\\tFactory\\tfrom\\t2015-2016.\\tA\\tretrial\\twas\\nheld\\tstarting\\ton\\tMarch\\t27,\\t2023,\\tafter\\twhich\\ta\\tjury\\treturned\\ta\\tverdict\\tof\\t$3,175,000.\\tAs\\ta\\tresult,\\tthe\\tdamages\\tawarded\\tagainst\\tTesla\\twere\\treduced\\tfrom\\nan\\tinitial\\t$136.9\\tmillion\\t(October\\t4,\\t2021)\\tdown\\tto\\t$15\\tmillion\\t(April\\t13,\\t2022),\\tand\\tthen\\tfurther\\tdown\\tto\\t$3.175\\tmillion\\t(April\\t3,\\t2023).\\tOn\\tNovember\\t2,\\n2023,\\tthe\\tplaintiff\\tfiled\\ta\\tnotice\\tof\\tappeal,\\tand\\ton\\tNovember\\t16,\\t2023,\\tTesla\\tfiled\\ta\\tnotice\\tof\\tcross\\tappeal.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 90,\n        \"lines\": {\n          \"from\": 15,\n          \"to\": 28\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"On\\tFebruary\\t9,\\t2022,\\tshortly\\tafter\\tthe\\tfirst\\tDiaz\\tjury\\tverdict,\\tthe\\tCalifornia\\tCivil\\tRights\\tDepartment\\t(“CRD,”\\tformerly\\t“DFEH”)\\tfiled\\ta\\tcivil\\tcomplaint\\nagainst\\tTesla\\tin\\tAlameda\\tCounty,\\tCalifornia\\tSuperior\\tCourt,\\talleging\\tsystemic\\trace\\tdiscrimination,\\thostile\\twork\\tenvironment\\tand\\tpay\\tequity\\tclaims,\\tamong\\nothers.\\tCRD’s\\tamended\\tcomplaint\\tseeks\\tmonetary\\tdamages\\tand\\tinjunctive\\trelief.\\tOn\\tSeptember\\t22,\\t2022,\\tTesla\\tfiled\\ta\\tcross\\tcomplaint\\tagainst\\tCRD,\\nalleging\\tthat\\tit\\tviolated\\tthe\\tAdministrative\\tProcedures\\tAct\\tby\\tfailing\\tto\\tfollow\\tstatutory\\tpre-requisites\\tprior\\tto\\tfiling\\tsuit\\tand\\tthat\\tcross\\tcomplaint\\twas\\nsubject\\tto\\ta\\tsustained\\tdemurrer,\\twhich\\tTesla\\tlater\\tamended\\tand\\trefiled.\\tThe\\tcase\\tis\\tcurrently\\tin\\tdiscovery.\\nAdditionally,\\ton\\tJune\\t1,\\t2022\\tthe\\tEqual\\tEmployment\\tOpportunity\\tCommission\\t(“EEOC”)\\tissued\\ta\\tcause\\tfinding\\tagainst\\tTesla\\tthat\\tclosely\\tparallels\\tthe\\nCRD’s\\tallegations.\\tOn\\tSeptember\\t28,\\t2023,\\tthe\\tEEOC\\tfiled\\ta\\tcivil\\tcomplaint\\tagainst\\tTesla\\tin\\tthe\\tUnited\\tStates\\tDistrict\\tCourt\\tfor\\tthe\\tNorthern\\tDistrict\\tof\\nCalifornia\\tasserting\\tclaims\\tfor\\trace\\tharassment\\tand\\tretaliation\\tand\\tseeking,\\tamong\\tother\\tthings,\\tmonetary\\tand\\tinjunctive\\trelief.\\tOn\\tDecember\\t18,\\t2023,\\nTesla\\tfiled\\ta\\tmotion\\tto\\tstay\\tthe\\tcase.\\tSeparately,\\ton\\tDecember\\t26,\\t2023,\\tTesla\\tfiled\\ta\\tmotion\\tto\\tdismiss\\tthe\\tcase.\\nOn\\tJune\\t16,\\t2022,\\ttwo\\tTesla\\tstockholders\\tfiled\\tseparate\\tderivative\\tactions\\tin\\tthe\\tU.S.\\tDistrict\\tCourt\\tfor\\tthe\\tWestern\\tDistrict\\tof\\tTexas,\\tpurportedly\\ton\\nbehalf\\tof\\tTesla,\\tagainst\\tcertain\\tof\\tTesla’s\\tcurrent\\tand\\tformer\\tdirectors.\\tBoth\\tsuits\\tassert\\tclaims\\tfor\\tbreach\\tof\\tfiduciary\\tduty,\\tunjust\\tenrichment,\\tand\\nviolation\\tof\\tthe\\tfederal\\tsecurities\\tlaws\\tin\\tconnection\\twith\\talleged\\trace\\tand\\tgender\\tdiscrimination\\tand\\tsexual\\tharassment.\\tAmong\\tother\\tthings,\\tplaintiffs\\nseek\\tdeclaratory\\tand\\tinjunctive\\trelief,\\tunspecified\\tdamages\\tpayable\\tto\\tTesla,\\tand\\tattorneys’\\tfees.\\tOn\\tJuly\\t22,\\t2022,\\tthe\\tCourt\\tconsolidated\\tthe\\ttwo\\tcases\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 90,\n        \"lines\": {\n          \"from\": 29,\n          \"to\": 41\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"and\\ton\\tSeptember\\t6,\\t2022,\\tplaintiffs\\tfiled\\ta\\tconsolidated\\tcomplaint.\\tOn\\tNovember\\t7,\\t2022,\\tthe\\tdefendants\\tfiled\\ta\\tmotion\\tto\\tdismiss\\tthe\\tcase\\tand\\ton\\nSeptember\\t15,\\t2023,\\tthe\\tCourt\\tdismissed\\tthe\\taction\\tbut\\tgranted\\tplaintiffs\\tleave\\tto\\tfile\\tan\\tamended\\tcomplaint.\\tOn\\tNovember\\t2,\\t2023,\\tplaintiff\\tfiled\\tan\\namended\\tcomplaint\\tpurportedly\\ton\\tbehalf\\tof\\tTesla,\\tagainst\\tElon\\tMusk.\\tOn\\tDecember\\t19,\\t2023,\\tthe\\tdefendants\\tmoved\\tto\\tdismiss\\tthe\\tamended\\tcomplaint.\\n88\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 90,\n        \"lines\": {\n          \"from\": 42,\n          \"to\": 45\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Other\\tLitigation\\tRelated\\tto\\tOur\\tProducts\\tand\\tServices\\nWe\\tare\\talso\\tsubject\\tto\\tvarious\\tlawsuits\\tthat\\tseek\\tmonetary\\tand\\tother\\tinjunctive\\trelief.\\tThese\\tlawsuits\\tinclude\\tproposed\\tclass\\tactions\\tand\\tother\\nconsumer\\tclaims\\tthat\\tallege,\\tamong\\tother\\tthings,\\tpurported\\tdefects\\tand\\tmisrepresentations\\trelated\\tto\\tour\\tproducts\\tand\\tservices.\\tFor\\texample,\\ton\\nSeptember\\t14,\\t2022,\\ta\\tproposed\\tclass\\taction\\twas\\tfiled\\tagainst\\tTesla,\\tInc.\\tand\\trelated\\tentities\\tin\\tthe\\tU.S.\\tDistrict\\tCourt\\tfor\\tthe\\tNorthern\\tDistrict\\tof\\nCalifornia,\\talleging\\tvarious\\tclaims\\tabout\\tthe\\tCompany’s\\tdriver\\tassistance\\ttechnology\\tsystems\\tunder\\tstate\\tand\\tfederal\\tlaw.\\tThis\\tcase\\twas\\tlater\\nconsolidated\\twith\\tseveral\\tother\\tproposed\\tclass\\tactions,\\tand\\ta\\tConsolidated\\tAmended\\tComplaint\\twas\\tfiled\\ton\\tOctober\\t28,\\t2022,\\twhich\\tseeks\\tdamages\\tand\\nother\\trelief\\ton\\tbehalf\\tof\\tall\\tpersons\\twho\\tpurchased\\tor\\tleased\\tfrom\\tTesla\\tbetween\\tJanuary\\t1,\\t2016\\tto\\tthe\\tpresent.\\tOn\\tOctober\\t5,\\t2022\\ta\\tproposed\\tclass\\naction\\tcomplaint\\twas\\tfiled\\tin\\tthe\\tU.S.\\tDistrict\\tCourt\\tfor\\tthe\\tEastern\\tDistrict\\tof\\tNew\\tYork\\tasserting\\tsimilar\\tstate\\tand\\tfederal\\tlaw\\tclaims\\tagainst\\tthe\\tsame\\ndefendants.\\tOn\\tSeptember\\t30,\\t2023,\\tthe\\tCourt\\tdismissed\\tthis\\taction\\twith\\tleave\\tto\\tamend\\tthe\\tcomplaint.\\tOn\\tNovember\\t20,\\t2023,\\tthe\\tplaintiff\\tmoved\\tto\\namend\\tthe\\tcomplaint,\\twhich\\tTesla\\topposed.\\tOn\\tMarch\\t22,\\t2023,\\tthe\\tplaintiffs\\tin\\tthe\\tNorthern\\tDistrict\\tof\\tCalifornia\\tconsolidated\\taction\\tfiled\\ta\\tmotion\\tfor\\ta\\npreliminary\\tinjunction\\tto\\torder\\tTesla\\tto\\t(1)\\tcease\\tusing\\tthe\\tterm\\t“Full\\tSelf-Driving\\tCapability”\\t(FSD\\tCapability),\\t(2)\\tcease\\tthe\\tsale\\tand\\tactivation\\tof\\tFSD\\nCapability\\tand\\tdeactivate\\tFSD\\tCapability\\ton\\tTesla\\tvehicles,\\tand\\t(3)\\tprovide\\tcertain\\tnotices\\tto\\tconsumers\\tabout\\tproposed\\tcourt-findings\\tabout\\tthe\\naccuracy\\tof\\tthe\\tuse\\tof\\tthe\\tterms\\tAutopilot\\tand\\tFSD\\tCapability.\\tTesla\\topposed\\tthe\\tmotion.\\tOn\\tSeptember\\t30,\\t2023,\\tthe\\tCourt\\tdenied\\tthe\\trequest\\tfor\\ta\\npreliminary\\tinjunction,\\tcompelled\\tfour\\tof\\tfive\\tplaintiffs\\tto\\tarbitration,\\tand\\tdismissed\\tthe\\tclaims\\tof\\tthe\\tfifth\\tplaintiff\\twith\\tleave\\tto\\tamend\\tthe\\tcomplaint.\\tOn\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 91,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 14\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"October\\t31,\\t2023,\\tthe\\tremaining\\tplaintiff\\tin\\tthe\\tNorthern\\tDistrict\\tof\\tCalifornia\\taction\\tfiled\\tan\\tamended\\tcomplaint,\\twhich\\tTesla\\thas\\tmoved\\tto\\tdismiss.\\tOn\\nOctober\\t2,\\t2023,\\ta\\tsimilar\\tproposed\\tclass\\taction\\twas\\tfiled\\tin\\tSan\\tDiego\\tCounty\\tSuperior\\tCourt\\tin\\tCalifornia.\\tTesla\\tsubsequently\\tremoved\\tthe\\tSan\\tDiego\\nCounty\\tcase\\tto\\tfederal\\tcourt\\tand\\ton\\tJanuary\\t8,\\t2024,\\tthe\\tfederal\\tcourt\\tgranted\\tTesla’s\\tmotion\\tto\\ttransfer\\tthe\\tcase\\tto\\tthe\\tU.S.\\tDistrict\\tCourt\\tfor\\tthe\\nNorthern\\tDistrict\\tof\\tCalifornia.\\nOn\\tFebruary\\t27,\\t2023,\\ta\\tproposed\\tclass\\taction\\twas\\tfiled\\tin\\tthe\\tU.S.\\tDistrict\\tCourt\\tfor\\tthe\\tNorthern\\tDistrict\\tof\\tCalifornia\\tagainst\\tTesla,\\tInc.,\\tElon\\tMusk\\nand\\tcertain\\tcurrent\\tand\\tformer\\tCompany\\texecutives.\\tThe\\tcomplaint\\talleges\\tthat\\tthe\\tdefendants\\tmade\\tmaterial\\tmisrepresentations\\tand\\tomissions\\tabout\\nthe\\tCompany’s\\tAutopilot\\tand\\tFSD\\tCapability\\ttechnologies\\tand\\tseeks\\tmoney\\tdamages\\tand\\tother\\trelief\\ton\\tbehalf\\tof\\tpersons\\twho\\tpurchased\\tTesla\\tstock\\nbetween\\tFebruary\\t19,\\t2019\\tand\\tFebruary\\t17,\\t2023.\\tAn\\tamended\\tcomplaint\\twas\\tfiled\\ton\\tSeptember\\t5,\\t2023,\\tnaming\\tonly\\tTesla,\\tInc.\\tand\\tElon\\tMusk\\tas\\ndefendants.\\tOn\\tNovember\\t6,\\t2023,\\tTesla\\tmoved\\tto\\tdismiss\\tthe\\tamended\\tcomplaint.\\nOn\\tMarch\\t14,\\t2023,\\ta\\tproposed\\tclass\\taction\\twas\\tfiled\\tagainst\\tTesla,\\tInc.\\tin\\tthe\\tU.S.\\tDistrict\\tCourt\\tfor\\tthe\\tNorthern\\tDistrict\\tof\\tCalifornia.\\tSeveral\\nsimilar\\tcomplaints\\thave\\talso\\tbeen\\tfiled\\tin\\tthe\\tsame\\tcourt\\tand\\tthese\\tcases\\thave\\tnow\\tall\\tbeen\\tconsolidated.\\tThese\\tcomplaints\\tallege\\tthat\\tTesla\\tviolates\\nfederal\\tantitrust\\tand\\twarranty\\tlaws\\tthrough\\tits\\trepair,\\tservice,\\tand\\tmaintenance\\tpractices\\tand\\tseeks,\\tamong\\tother\\trelief,\\tdamages\\tfor\\tpersons\\twho\\tpaid\\nTesla\\tfor\\trepairs\\tservices\\tor\\tTesla\\tcompatible\\treplacement\\tparts\\tfrom\\tMarch\\t2019\\tto\\tMarch\\t2023.\\tOn\\tJuly\\t17,\\t2023,\\tthese\\tplaintiffs\\tfiled\\ta\\tconsolidated\\namended\\tcomplaint.\\tOn\\tSeptember\\t27,\\t2023,\\tthe\\tcourt\\tgranted\\tTesla’s\\tmotion\\tto\\tcompel\\tarbitration\\tas\\tto\\tthree\\tof\\tthe\\tplaintiffs,\\tand\\ton\\tNovember\\t17,\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 91,\n        \"lines\": {\n          \"from\": 15,\n          \"to\": 28\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"2023,\\tthe\\tcourt\\tgranted\\tTesla’s\\tmotion\\tto\\tdismiss\\twithout\\tprejudice.\\tThe\\tplaintiffs\\tfiled\\ta\\tConsolidated\\tSecond\\tAmended\\tComplaint\\ton\\tDecember\\t12,\\n2023,\\twhich\\tTesla\\thas\\tmoved\\tto\\tdismiss.\\tPlaintiffs\\thave\\talso\\tappealed\\tthe\\tcourt’s\\tarbitration\\torder.\\tTrial\\tis\\tcurrently\\tset\\tfor\\tJuly\\t7,\\t2025.\\nThe\\tCompany\\tintends\\tto\\tvigorously\\tdefend\\titself\\tin\\tthese\\tmatters;\\thowever,\\twe\\tcannot\\tpredict\\tthe\\toutcome\\tor\\timpact.\\tWe\\tare\\tunable\\tto\\treasonably\\nestimate\\tthe\\tpossible\\tloss\\tor\\trange\\tof\\tloss,\\tif\\tany,\\tassociated\\twith\\tthese\\tclaims,\\tunless\\tnoted.\\nCertain\\tInvestigations\\tand\\tOther\\tMatters\\nWe\\tregularly\\treceive\\trequests\\tfor\\tinformation,\\tincluding\\tsubpoenas,\\tfrom\\tregulators\\tand\\tgovernmental\\tauthorities\\tsuch\\tas\\tthe\\tNational\\tHighway\\nTraffic\\tSafety\\tAdministration,\\tthe\\tNational\\tTransportation\\tSafety\\tBoard,\\tthe\\tSecurities\\tand\\tExchange\\tCommission\\t(“SEC”),\\tthe\\tDepartment\\tof\\tJustice\\n(“DOJ”),\\tand\\tvarious\\tlocal,\\tstate,\\tfederal,\\tand\\tinternational\\tagencies.\\tThe\\tongoing\\trequests\\tfor\\tinformation\\tinclude\\ttopics\\tsuch\\tas\\toperations,\\ttechnology\\n(e.g.,\\tvehicle\\tfunctionality,\\tAutopilot\\tand\\tFSD\\tCapability),\\tcompliance,\\tfinance,\\tdata\\tprivacy,\\tand\\tother\\tmatters\\trelated\\tto\\tTesla’s\\tbusiness,\\tits\\tpersonnel,\\nand\\trelated\\tparties.\\tWe\\troutinely\\tcooperate\\twith\\tsuch\\tformal\\tand\\tinformal\\trequests\\tfor\\tinformation,\\tinvestigations,\\tand\\tother\\tinquiries.\\tTo\\tour\\tknowledge\\nno\\tgovernment\\tagency\\tin\\tany\\tongoing\\tinvestigation\\thas\\tconcluded\\tthat\\tany\\twrongdoing\\toccurred.\\tWe\\tcannot\\tpredict\\tthe\\toutcome\\tor\\timpact\\tof\\tany\\nongoing\\tmatters.\\tShould\\tthe\\tgovernment\\tdecide\\tto\\tpursue\\tan\\tenforcement\\taction,\\tthere\\texists\\tthe\\tpossibility\\tof\\ta\\tmaterial\\tadverse\\timpact\\ton\\tour\\nbusiness,\\tresults\\tof\\toperation,\\tprospects,\\tcash\\tflows,\\tfinancial\\tposition\\tor\\tbrand.\\n89\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 91,\n        \"lines\": {\n          \"from\": 29,\n          \"to\": 42\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"We\\tare\\talso\\tsubject\\tto\\tvarious\\tother\\tlegal\\tproceedings,\\trisks\\tand\\tclaims\\tthat\\tarise\\tfrom\\tthe\\tnormal\\tcourse\\tof\\tbusiness\\tactivities.\\tFor\\texample,\\tduring\\nthe\\tsecond\\tquarter\\tof\\t2023,\\ta\\tforeign\\tnews\\toutlet\\treported\\tthat\\tit\\tobtained\\tcertain\\tmisappropriated\\tdata\\tincluding,\\tpurportedly\\tnon-public\\tTesla\\tbusiness\\nand\\tpersonal\\tinformation.\\tTesla\\thas\\tmade\\tnotifications\\tto\\tpotentially\\taffected\\tindividuals\\t(current\\tand\\tformer\\temployees)\\tand\\tregulatory\\tauthorities\\tand\\nwe\\tare\\tworking\\twith\\tcertain\\tlaw\\tenforcement\\tand\\tother\\tauthorities.\\tOn\\tAugust\\t5,\\t2023,\\ta\\tputative\\tclass\\taction\\twas\\tfiled\\tin\\tthe\\tUnited\\tStates\\tDistrict\\tCourt\\nfor\\tthe\\tNorthern\\tDistrict\\tof\\tCalifornia,\\tpurportedly\\ton\\tbehalf\\tof\\tall\\tU.S.\\tindividuals\\timpacted\\tby\\tthe\\tdata\\tincident,\\tfollowed\\tby\\tseveral\\tadditional\\tlawsuits,\\nthat\\teach\\tassert\\tclaims\\tunder\\tvarious\\tstate\\tlaws\\tand\\tseeks\\tmonetary\\tdamages\\tand\\tother\\trelief.\\tIf\\tan\\tunfavorable\\truling\\tor\\tdevelopment\\twere\\tto\\toccur\\tin\\nthese\\tor\\tother\\tpossible\\tlegal\\tproceedings,\\trisks\\tand\\tclaims,\\tthere\\texists\\tthe\\tpossibility\\tof\\ta\\tmaterial\\tadverse\\timpact\\ton\\tour\\tbusiness,\\tresults\\tof\\toperations,\\nprospects,\\tcash\\tflows,\\tfinancial\\tposition\\tor\\tbrand.\\nLetters\\tof\\tCredit\\nAs\\tof\\tDecember\\t31,\\t2023,\\twe\\thad\\t$525\\tmillion\\tof\\tunused\\tletters\\tof\\tcredit\\toutstanding.\\nNote\\t16\\t–\\tVariable\\tInterest\\tEntity\\tArrangements\\nWe\\thave\\tentered\\tinto\\tvarious\\tarrangements\\twith\\tinvestors\\tto\\tfacilitate\\tthe\\tfunding\\tand\\tmonetization\\tof\\tour\\tsolar\\tenergy\\tsystems\\tand\\tvehicles.\\tIn\\nparticular,\\tour\\twholly\\towned\\tsubsidiaries\\tand\\tfund\\tinvestors\\thave\\tformed\\tand\\tcontributed\\tcash\\tand\\tassets\\tinto\\tvarious\\tfinancing\\tfunds\\tand\\tentered\\tinto\\nrelated\\tagreements.\\tWe\\thave\\tdetermined\\tthat\\tthe\\tfunds\\tare\\tVIEs\\tand\\twe\\tare\\tthe\\tprimary\\tbeneficiary\\tof\\tthese\\tVIEs\\tby\\treference\\tto\\tthe\\tpower\\tand\\tbenefits\\ncriterion\\tunder\\tASC\\t810.\\tWe\\thave\\tconsidered\\tthe\\tprovisions\\twithin\\tthe\\tagreements,\\twhich\\tgrant\\tus\\tthe\\tpower\\tto\\tmanage\\tand\\tmake\\tdecisions\\tthat\\taffect\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 92,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 15\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"the\\toperation\\tof\\tthese\\tVIEs,\\tincluding\\tdetermining\\tthe\\tsolar\\tenergy\\tsystems\\tand\\tthe\\tassociated\\tcustomer\\tcontracts\\tto\\tbe\\tsold\\tor\\tcontributed\\tto\\tthese\\nVIEs,\\tredeploying\\tsolar\\tenergy\\tsystems\\tand\\tmanaging\\tcustomer\\treceivables.\\tWe\\tconsider\\tthat\\tthe\\trights\\tgranted\\tto\\tthe\\tfund\\tinvestors\\tunder\\tthe\\nagreements\\tare\\tmore\\tprotective\\tin\\tnature\\trather\\tthan\\tparticipating.\\nAs\\tthe\\tprimary\\tbeneficiary\\tof\\tthese\\tVIEs,\\twe\\tconsolidate\\tin\\tthe\\tfinancial\\tstatements\\tthe\\tfinancial\\tposition,\\tresults\\tof\\toperations\\tand\\tcash\\tflows\\tof\\nthese\\tVIEs,\\tand\\tall\\tintercompany\\tbalances\\tand\\ttransactions\\tbetween\\tus\\tand\\tthese\\tVIEs\\tare\\teliminated\\tin\\tthe\\tconsolidated\\tfinancial\\tstatements.\\tCash\\ndistributions\\tof\\tincome\\tand\\tother\\treceipts\\tby\\ta\\tfund,\\tnet\\tof\\tagreed\\tupon\\texpenses,\\testimated\\texpenses,\\ttax\\tbenefits\\tand\\tdetriments\\tof\\tincome\\tand\\tloss\\nand\\ttax\\tcredits,\\tare\\tallocated\\tto\\tthe\\tfund\\tinvestor\\tand\\tour\\tsubsidiary\\tas\\tspecified\\tin\\tthe\\tagreements.\\nGenerally,\\tour\\tsubsidiary\\thas\\tthe\\toption\\tto\\tacquire\\tthe\\tfund\\tinvestor’s\\tinterest\\tin\\tthe\\tfund\\tfor\\tan\\tamount\\tbased\\ton\\tthe\\tmarket\\tvalue\\tof\\tthe\\tfund\\tor\\nthe\\tformula\\tspecified\\tin\\tthe\\tagreements.\\nUpon\\tthe\\tsale\\tor\\tliquidation\\tof\\ta\\tfund,\\tdistributions\\twould\\toccur\\tin\\tthe\\torder\\tand\\tpriority\\tspecified\\tin\\tthe\\tagreements.\\nPursuant\\tto\\tmanagement\\tservices,\\tmaintenance\\tand\\twarranty\\tarrangements,\\twe\\thave\\tbeen\\tcontracted\\tto\\tprovide\\tservices\\tto\\tthe\\tfunds,\\tsuch\\tas\\noperations\\tand\\tmaintenance\\tsupport,\\taccounting,\\tlease\\tservicing\\tand\\tperformance\\treporting.\\tIn\\tsome\\tinstances,\\twe\\thave\\tguaranteed\\tpayments\\tto\\tthe\\nfund\\tinvestors\\tas\\tspecified\\tin\\tthe\\tagreements.\\tA\\tfund’s\\tcreditors\\thave\\tno\\trecourse\\tto\\tour\\tgeneral\\tcredit\\tor\\tto\\tthat\\tof\\tother\\tfunds.\\tCertain\\tassets\\tof\\tthe\\nfunds\\thave\\tbeen\\tpledged\\tas\\tcollateral\\tfor\\ttheir\\tobligations.\\n90\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 92,\n        \"lines\": {\n          \"from\": 16,\n          \"to\": 30\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"The\\taggregate\\tcarrying\\tvalues\\tof\\tthe\\tVIEs’\\tassets\\tand\\tliabilities,\\tafter\\telimination\\tof\\tany\\tintercompany\\ttransactions\\tand\\tbalances,\\tin\\tthe\\nconsolidated\\tbalance\\tsheets\\twere\\tas\\tfollows\\t(in\\tmillions):\\nDecember\\t31,\\n2023\\nDecember\\t31,\\n2022\\nAssets\\t\\t\\nCurrent\\tassets\\t\\t\\nCash\\tand\\tcash\\tequivalents$66\\t$68\\t\\nAccounts\\treceivable,\\tnet13\\t22\\t\\nPrepaid\\texpenses\\tand\\tother\\tcurrent\\tassets361\\t274\\t\\nTotal\\tcurrent\\tassets440\\t364\\t\\nSolar\\tenergy\\tsystems,\\tnet3,278\\t4,060\\t\\nOther\\tnon-current\\tassets369\\t404\\t\\nTotal\\tassets\\n$4,087\\t$4,828\\t\\nLiabilities\\t\\t\\nCurrent\\tliabilities\\t\\t\\nAccrued\\tliabilities\\tand\\tother$67\\t$69\\t\\nDeferred\\trevenue6\\t10\\t\\nCurrent\\tportion\\tof\\tdebt\\tand\\tfinance\\tleases1,564\\t1,013\\t\\nTotal\\tcurrent\\tliabilities1,637\\t1,092\\t\\nDeferred\\trevenue,\\tnet\\tof\\tcurrent\\tportion99\\t149\\t\\nDebt\\tand\\tfinance\\tleases,\\tnet\\tof\\tcurrent\\tportion2,041\\t971\\t\\nOther\\tlong-term\\tliabilities—\\t3\\t\\nTotal\\tliabilities\\n$3,777\\t$2,215\\t\\nNote\\t17\\t–\\tRelated\\tParty\\tTransactions\\nIn\\trelation\\tto\\tour\\tCEO’s\\texercise\\tof\\tstock\\toptions\\tand\\tsale\\tof\\tcommon\\tstock\\tfrom\\tthe\\t2012\\tCEO\\tPerformance\\tAward,\\tTesla\\twithheld\\tthe\\tappropriate\\namount\\tof\\ttaxes.\\tHowever,\\tgiven\\tthe\\tsignificant\\tamounts\\tinvolved,\\tour\\tCEO\\tentered\\tinto\\tan\\tindemnification\\tagreement\\twith\\tus\\tin\\tNovember\\t2021\\tfor\\nadditional\\ttaxes\\towed,\\tif\\tany.\\nTesla\\tperiodically\\tdoes\\tbusiness\\twith\\tcertain\\tentities\\twith\\twhich\\tits\\tCEO\\tand\\tdirectors\\tare\\taffiliated,\\tsuch\\tas\\tSpaceX\\tand\\tX\\tCorp.,\\tin\\taccordance\\twith\\nour\\tRelated\\tPerson\\tTransactions\\tPolicy.\\tSuch\\ttransactions\\thave\\tnot\\thad\\tto\\tdate,\\tand\\tare\\tnot\\tcurrently\\texpected\\tto\\thave,\\ta\\tmaterial\\timpact\\ton\\tour\\nconsolidated\\tfinancial\\tstatements.\\n91\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 93,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 35\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Note\\t18\\t–\\tSegment\\tReporting\\tand\\tInformation\\tabout\\tGeographic\\tAreas\\nWe\\thave\\ttwo\\toperating\\tand\\treportable\\tsegments:\\t(i)\\tautomotive\\tand\\t(ii)\\tenergy\\tgeneration\\tand\\tstorage.\\tThe\\tautomotive\\tsegment\\tincludes\\tthe\\ndesign,\\tdevelopment,\\tmanufacturing,\\tsales\\tand\\tleasing\\tof\\telectric\\tvehicles\\tas\\twell\\tas\\tsales\\tof\\tautomotive\\tregulatory\\tcredits.\\tAdditionally,\\tthe\\tautomotive\\nsegment\\tis\\talso\\tcomprised\\tof\\tservices\\tand\\tother,\\twhich\\tincludes\\tsales\\tof\\tused\\tvehicles,\\tnon-warranty\\tafter-sales\\tvehicle\\tservices,\\tbody\\tshop\\tand\\tparts,\\npaid\\tSupercharging,\\tvehicle\\tinsurance\\trevenue\\tand\\tretail\\tmerchandise.\\tThe\\tenergy\\tgeneration\\tand\\tstorage\\tsegment\\tincludes\\tthe\\tdesign,\\tmanufacture,\\ninstallation,\\tsales\\tand\\tleasing\\tof\\tsolar\\tenergy\\tgeneration\\tand\\tenergy\\tstorage\\tproducts\\tand\\trelated\\tservices\\tand\\tsales\\tof\\tsolar\\tenergy\\tsystems\\tincentives.\\nOur\\tCODM\\tdoes\\tnot\\tevaluate\\toperating\\tsegments\\tusing\\tasset\\tor\\tliability\\tinformation.\\tThe\\tfollowing\\ttable\\tpresents\\trevenues\\tand\\tgross\\tprofit\\tby\\treportable\\nsegment\\t(in\\tmillions):\\nYear\\tEnded\\tDecember\\t31,\\n202320222021\\nAutomotive\\tsegment\\t\\t\\nRevenues$90,738\\t$77,553\\t$51,034\\t\\nGross\\tprofit$16,519\\t$20,565\\t$13,735\\t\\nEnergy\\tgeneration\\tand\\tstorage\\tsegment\\t\\t\\nRevenues$6,035\\t$3,909\\t$2,789\\t\\nGross\\tprofit$1,141\\t$288\\t$(129)\\nThe\\tfollowing\\ttable\\tpresents\\trevenues\\tby\\tgeographic\\tarea\\tbased\\ton\\tthe\\tsales\\tlocation\\tof\\tour\\tproducts\\t(in\\tmillions):\\nYear\\tEnded\\tDecember\\t31,\\n202320222021\\nUnited\\tStates$45,235\\t$40,553\\t$23,973\\t\\nChina21,745\\t18,145\\t13,844\\t\\nOther\\tinternational29,793\\t22,764\\t16,006\\t\\nTotal\\n$96,773\\t$81,462\\t$53,823\\t\\nThe\\tfollowing\\ttable\\tpresents\\tlong-lived\\tassets\\tby\\tgeographic\\tarea\\t(in\\tmillions):\\nDecember\\t31,\\n2023\\nDecember\\t31,\\n2022\\nUnited\\tStates$26,629\\t$21,667\\t\\nGermany4,258\\t3,547\\t\\nChina2,820\\t2,978\\t\\nOther\\tinternational1,247\\t845\\t\\nTotal\\n$34,954\\t$29,037\\t\\nThe\\tfollowing\\ttable\\tpresents\\tinventory\\tby\\treportable\\tsegment\\t(in\\tmillions):\\nDecember\\t31,\\n2023\\nDecember\\t31,\\n2022\\nAutomotive$11,139\\t$10,996\\t\\nEnergy\\tgeneration\\tand\\tstorage2,487\\t1,843\\t\\nTotal\\n$13,626\\t$12,839\\t\\nNote\\t19\\t–\\tRestructuring\\tand\\tOther\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 94,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 45\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Note\\t19\\t–\\tRestructuring\\tand\\tOther\\nDuring\\tthe\\tyears\\tended\\tDecember\\t31,\\t2022\\tand\\t2021,\\twe\\trecorded\\t$204\\tmillion\\tand\\t$101\\tmillion,\\trespectively,\\tof\\timpairment\\tlosses\\ton\\tdigital\\nassets.\\tDuring\\tthe\\tyears\\tended\\tDecember\\t31,\\t2022\\tand\\t2021\\twe\\talso\\trealized\\tgains\\tof\\t$64\\tmillion\\tand\\t$128\\tmillion,\\trespectively,\\tin\\tconnection\\twith\\nconverting\\tour\\tholdings\\tof\\tdigital\\tassets\\tinto\\tfiat\\tcurrency.\\tWe\\talso\\trecorded\\tother\\texpenses\\tof\\t$36\\tmillion\\tduring\\tthe\\tsecond\\tquarter\\tof\\tthe\\tyear\\tended\\nDecember\\t31,\\t2022,\\trelated\\tto\\temployee\\tterminations.\\n92\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 94,\n        \"lines\": {\n          \"from\": 45,\n          \"to\": 50\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"ITEM\\t9.\\tCHANGES\\tIN\\tAND\\tDISAGREEMENTS\\tWITH\\tACCOUNTANTS\\tON\\tACCOUNTING\\tAND\\tFINANCIAL\\tDISCLOSURE\\nNone.\\nITEM\\t9A.\\tCONTROLS\\tAND\\tPROCEDURES\\nEvaluation\\tof\\tDisclosure\\tControls\\tand\\tProcedures\\nOur\\tmanagement,\\twith\\tthe\\tparticipation\\tof\\tour\\tChief\\tExecutive\\tOfficer\\tand\\tour\\tChief\\tFinancial\\tOfficer,\\tevaluated\\tthe\\teffectiveness\\tof\\tour\\tdisclosure\\ncontrols\\tand\\tprocedures\\tpursuant\\tto\\tRule\\t13a-15\\tunder\\tthe\\tSecurities\\tExchange\\tAct\\tof\\t1934,\\tas\\tamended\\t(the\\t“Exchange\\tAct”).\\tIn\\tdesigning\\tand\\nevaluating\\tthe\\tdisclosure\\tcontrols\\tand\\tprocedures,\\tour\\tmanagement\\trecognizes\\tthat\\tany\\tcontrols\\tand\\tprocedures,\\tno\\tmatter\\thow\\twell\\tdesigned\\tand\\noperated,\\tcan\\tprovide\\tonly\\treasonable\\tassurance\\tof\\tachieving\\tthe\\tdesired\\tcontrol\\tobjectives.\\tIn\\taddition,\\tthe\\tdesign\\tof\\tdisclosure\\tcontrols\\tand\\tprocedures\\nmust\\treflect\\tthe\\tfact\\tthat\\tthere\\tare\\tresource\\tconstraints\\tand\\tthat\\tour\\tmanagement\\tis\\trequired\\tto\\tapply\\tits\\tjudgment\\tin\\tevaluating\\tthe\\tbenefits\\tof\\tpossible\\ncontrols\\tand\\tprocedures\\trelative\\tto\\ttheir\\tcosts.\\nBased\\ton\\tthis\\tevaluation,\\tour\\tChief\\tExecutive\\tOfficer\\tand\\tour\\tChief\\tFinancial\\tOfficer\\tconcluded\\tthat,\\tas\\tof\\tDecember\\t31,\\t2023,\\tour\\tdisclosure\\ncontrols\\tand\\tprocedures\\twere\\tdesigned\\tat\\ta\\treasonable\\tassurance\\tlevel\\tand\\twere\\teffective\\tto\\tprovide\\treasonable\\tassurance\\tthat\\tthe\\tinformation\\twe\\tare\\nrequired\\tto\\tdisclose\\tin\\treports\\tthat\\twe\\tfile\\tor\\tsubmit\\tunder\\tthe\\tExchange\\tAct\\tis\\trecorded,\\tprocessed,\\tsummarized\\tand\\treported\\twithin\\tthe\\ttime\\tperiods\\nspecified\\tin\\tthe\\tSEC\\trules\\tand\\tforms,\\tand\\tthat\\tsuch\\tinformation\\tis\\taccumulated\\tand\\tcommunicated\\tto\\tour\\tmanagement,\\tincluding\\tour\\tChief\\tExecutive\\nOfficer\\tand\\tour\\tChief\\tFinancial\\tOfficer,\\tas\\tappropriate,\\tto\\tallow\\ttimely\\tdecisions\\tregarding\\trequired\\tdisclosures.\\nManagement’s\\tReport\\ton\\tInternal\\tControl\\tover\\tFinancial\\tReporting\\nOur\\tmanagement\\tis\\tresponsible\\tfor\\testablishing\\tand\\tmaintaining\\tadequate\\tinternal\\tcontrol\\tover\\tfinancial\\treporting.\\tInternal\\tcontrol\\tover\\tfinancial\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 95,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 17\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"reporting\\tis\\ta\\tprocess\\tdesigned\\tby,\\tor\\tunder\\tthe\\tsupervision\\tof,\\tour\\tChief\\tExecutive\\tOfficer\\tand\\tChief\\tFinancial\\tOfficer\\tto\\tprovide\\treasonable\\tassurance\\nregarding\\tthe\\treliability\\tof\\tfinancial\\treporting\\tand\\tthe\\tpreparation\\tof\\tfinancial\\tstatements\\tfor\\texternal\\tpurposes\\tin\\taccordance\\twith\\tgenerally\\taccepted\\naccounting\\tprinciples\\tand\\tincludes\\tthose\\tpolicies\\tand\\tprocedures\\tthat\\t(1)\\tpertain\\tto\\tthe\\tmaintenance\\tof\\trecords\\tthat\\tin\\treasonable\\tdetail\\taccurately\\tand\\nfairly\\treflect\\tthe\\ttransactions\\tand\\tdispositions\\tof\\tour\\tassets;\\t(2)\\tprovide\\treasonable\\tassurance\\tthat\\ttransactions\\tare\\trecorded\\tas\\tnecessary\\tto\\tpermit\\npreparation\\tof\\tfinancial\\tstatements\\tin\\taccordance\\twith\\tgenerally\\taccepted\\taccounting\\tprinciples,\\tand\\tthat\\tour\\treceipts\\tand\\texpenditures\\tare\\tbeing\\tmade\\nonly\\tin\\taccordance\\twith\\tauthorizations\\tof\\tour\\tmanagement\\tand\\tdirectors\\tand\\t(3)\\tprovide\\treasonable\\tassurance\\tregarding\\tprevention\\tor\\ttimely\\tdetection\\nof\\tunauthorized\\tacquisition,\\tuse\\tor\\tdisposition\\tof\\tour\\tassets\\tthat\\tcould\\thave\\ta\\tmaterial\\teffect\\ton\\tthe\\tfinancial\\tstatements.\\nUnder\\tthe\\tsupervision\\tand\\twith\\tthe\\tparticipation\\tof\\tour\\tmanagement,\\tincluding\\tour\\tChief\\tExecutive\\tOfficer\\tand\\tChief\\tFinancial\\tOfficer,\\twe\\tconducted\\nan\\tevaluation\\tof\\tthe\\teffectiveness\\tof\\tour\\tinternal\\tcontrol\\tover\\tfinancial\\treporting\\tbased\\ton\\tcriteria\\testablished\\tin\\tInternal\\tControl\\t–\\tIntegrated\\tFramework\\n(2013)\\tissued\\tby\\tthe\\tCommittee\\tof\\tSponsoring\\tOrganizations\\tof\\tthe\\tTreadway\\tCommission\\t(“COSO”).\\tOur\\tmanagement\\tconcluded\\tthat\\tour\\tinternal\\ncontrol\\tover\\tfinancial\\treporting\\twas\\teffective\\tas\\tof\\tDecember\\t31,\\t2023.\\nOur\\tindependent\\tregistered\\tpublic\\taccounting\\tfirm,\\tPricewaterhouseCoopers\\tLLP,\\thas\\taudited\\tthe\\teffectiveness\\tof\\tour\\tinternal\\tcontrol\\tover\\tfinancial\\nreporting\\tas\\tof\\tDecember\\t31,\\t2023,\\tas\\tstated\\tin\\ttheir\\treport\\twhich\\tis\\tincluded\\therein.\\nLimitations\\ton\\tthe\\tEffectiveness\\tof\\tControls\\nBecause\\tof\\tinherent\\tlimitations,\\tinternal\\tcontrol\\tover\\tfinancial\\treporting\\tmay\\tnot\\tprevent\\tor\\tdetect\\tmisstatements\\tand\\tprojections\\tof\\tany\\tevaluation\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 95,\n        \"lines\": {\n          \"from\": 18,\n          \"to\": 32\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"of\\teffectiveness\\tto\\tfuture\\tperiods\\tare\\tsubject\\tto\\tthe\\trisk\\tthat\\tcontrols\\tmay\\tbecome\\tinadequate\\tbecause\\tof\\tchanges\\tin\\tconditions,\\tor\\tthat\\tthe\\tdegree\\tof\\ncompliance\\twith\\tthe\\tpolicies\\tor\\tprocedures\\tmay\\tdeteriorate.\\nChanges\\tin\\tInternal\\tControl\\tover\\tFinancial\\tReporting\\nThere\\twas\\tno\\tchange\\tin\\tour\\tinternal\\tcontrol\\tover\\tfinancial\\treporting\\tthat\\toccurred\\tduring\\tthe\\tquarter\\tended\\tDecember\\t31,\\t2023,\\twhich\\thas\\nmaterially\\taffected,\\tor\\tis\\treasonably\\tlikely\\tto\\tmaterially\\taffect,\\tour\\tinternal\\tcontrol\\tover\\tfinancial\\treporting.\\n93\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 95,\n        \"lines\": {\n          \"from\": 33,\n          \"to\": 38\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"ITEM\\t9B.\\tOTHER\\tINFORMATION\\nNone\\tof\\tthe\\tCompany’s\\tdirectors\\tor\\tofficers\\tadopted,\\tmodified\\tor\\tterminated\\ta\\tRule\\t10b5-1\\ttrading\\tarrangement\\tor\\ta\\tnon-Rule\\t10b5-1\\ttrading\\narrangement\\tduring\\tthe\\tCompany’s\\tfiscal\\tquarter\\tended\\tDecember\\t31,\\t2023,\\tas\\tsuch\\tterms\\tare\\tdefined\\tunder\\tItem\\t408(a)\\tof\\tRegulation\\tS-K,\\texcept\\tas\\nfollows:\\nOn\\tOctober\\t23,\\t2023,\\tRobyn\\tDenholm,\\tone\\tof\\tour\\tdirectors,\\tadopted\\ta\\tRule\\t10b5-1\\ttrading\\tarrangement\\tfor\\tthe\\tpotential\\tsale\\tof\\tup\\tto\\t281,116\\nshares\\tof\\tour\\tcommon\\tstock,\\tsubject\\tto\\tcertain\\tconditions.\\tThe\\ttrading\\tarrangement\\tcovers\\tstock\\toptions\\tthat\\texpire\\tin\\tAugust\\t2024.\\tThe\\tarrangement's\\nexpiration\\tdate\\tis\\tAugust\\t16,\\t2024.\\nOn\\tNovember\\t13,\\t2023,\\tAndrew\\tBaglino,\\tSenior\\tVice\\tPresident,\\tPowertrain\\tand\\tEnergy\\tEngineering,\\tadopted\\ta\\tRule\\t10b5-1\\ttrading\\tarrangement\\tfor\\nthe\\tpotential\\tsale\\tof\\tup\\tto\\t115,500\\tshares\\tof\\tour\\tcommon\\tstock,\\tsubject\\tto\\tcertain\\tconditions.\\tThe\\tarrangement's\\texpiration\\tdate\\tis\\tDecember\\t31,\\t2024.\\nITEM\\t9C.\\tDISCLOSURE\\tREGARDING\\tFOREIGN\\tJURISDICTIONS\\tTHAT\\tPREVENT\\tINSPECTIONS\\nNot\\tapplicable.\\n94\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 96,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 12\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"PART\\tIII\\nITEM\\t10.\\tDIRECTORS,\\tEXECUTIVE\\tOFFICERS\\tAND\\tCORPORATE\\tGOVERNANCE\\nThe\\tinformation\\trequired\\tby\\tthis\\tItem\\t10\\tof\\tForm\\t10-K\\twill\\tbe\\tincluded\\tin\\tour\\t2024\\tProxy\\tStatement\\tto\\tbe\\tfiled\\twith\\tthe\\tSecurities\\tand\\tExchange\\nCommission\\tin\\tconnection\\twith\\tthe\\tsolicitation\\tof\\tproxies\\tfor\\tour\\t2024\\tAnnual\\tMeeting\\tof\\tStockholders\\tand\\tis\\tincorporated\\therein\\tby\\treference.\\tThe\\t2024\\nProxy\\tStatement\\twill\\tbe\\tfiled\\twith\\tthe\\tSecurities\\tand\\tExchange\\tCommission\\twithin\\t120\\tdays\\tafter\\tthe\\tend\\tof\\tthe\\tfiscal\\tyear\\tto\\twhich\\tthis\\treport\\trelates.\\nITEM\\t11.\\tEXECUTIVE\\tCOMPENSATION\\nThe\\tinformation\\trequired\\tby\\tthis\\tItem\\t11\\tof\\tForm\\t10-K\\twill\\tbe\\tincluded\\tin\\tour\\t2024\\tProxy\\tStatement\\tand\\tis\\tincorporated\\therein\\tby\\treference.\\nITEM\\t12.\\tSECURITY\\tOWNERSHIP\\tOF\\tCERTAIN\\tBENEFICIAL\\tOWNERS\\tAND\\tMANAGEMENT\\tAND\\tRELATED\\tSTOCKHOLDER\\tMATTERS\\nThe\\tinformation\\trequired\\tby\\tthis\\tItem\\t12\\tof\\tForm\\t10-K\\twill\\tbe\\tincluded\\tin\\tour\\t2024\\tProxy\\tStatement\\tand\\tis\\tincorporated\\therein\\tby\\treference.\\nITEM\\t13.\\tCERTAIN\\tRELATIONSHIPS\\tAND\\tRELATED\\tTRANSACTIONS\\tAND\\tDIRECTOR\\tINDEPENDENCE\\nThe\\tinformation\\trequired\\tby\\tthis\\tItem\\t13\\tof\\tForm\\t10-K\\twill\\tbe\\tincluded\\tin\\tour\\t2024\\tProxy\\tStatement\\tand\\tis\\tincorporated\\therein\\tby\\treference.\\nITEM\\t14.\\tPRINCIPAL\\tACCOUNTANT\\tFEES\\tAND\\tSERVICES\\nThe\\tinformation\\trequired\\tby\\tthis\\tItem\\t14\\tof\\tForm\\t10-K\\twill\\tbe\\tincluded\\tin\\tour\\t2024\\tProxy\\tStatement\\tand\\tis\\tincorporated\\therein\\tby\\treference.\\n95\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 97,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 14\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"PART\\tIV\\nITEM\\t15.\\tEXHIBITS\\tAND\\tFINANCIAL\\tSTATEMENT\\tSCHEDULES\\n1.Financial\\tstatements\\t(see\\tIndex\\tto\\tConsolidated\\tFinancial\\tStatements\\tin\\tPart\\tII,\\tItem\\t8\\tof\\tthis\\treport)\\n2.All\\tfinancial\\tstatement\\tschedules\\thave\\tbeen\\tomitted\\tsince\\tthe\\trequired\\tinformation\\twas\\tnot\\tapplicable\\tor\\twas\\tnot\\tpresent\\tin\\tamounts\\tsufficient\\tto\\nrequire\\tsubmission\\tof\\tthe\\tschedules,\\tor\\tbecause\\tthe\\tinformation\\trequired\\tis\\tincluded\\tin\\tthe\\tconsolidated\\tfinancial\\tstatements\\tor\\tthe\\taccompanying\\nnotes\\n3.The\\texhibits\\tlisted\\tin\\tthe\\tfollowing\\tIndex\\tto\\tExhibits\\tare\\tfiled\\tor\\tincorporated\\tby\\treference\\tas\\tpart\\tof\\tthis\\treport\\nINDEX\\tTO\\tEXHIBITS\\nExhibit\\nNumber\\nIncorporated\\tby\\tReference\\nFiled\\nHerewithExhibit\\tDescriptionFormFile\\tNo.ExhibitFiling\\tDate\\n3.1Amended\\tand\\tRestated\\tCertificate\\tof\\nIncorporation\\tof\\tthe\\tRegistrant.\\n10-K001-347563.1March\\t1,\\t2017\\n3.2Certificate\\tof\\tAmendment\\tto\\tthe\\tAmended\\tand\\nRestated\\tCertificate\\tof\\tIncorporation\\tof\\tthe\\nRegistrant.\\n10-K001-347563.2March\\t1,\\t2017\\n3.3Amended\\tand\\tRestated\\tBylaws\\tof\\tthe\\tRegistrant.8-K001-347563.1April\\t5,\\t2023\\n4.1Specimen\\tcommon\\tstock\\tcertificate\\tof\\tthe\\nRegistrant.\\n10-K001-347564.1March\\t1,\\t2017\\n4.2Fifth\\tAmended\\tand\\tRestated\\tInvestors’\\tRights\\nAgreement,\\tdated\\tas\\tof\\tAugust\\t31,\\t2009,\\tbetween\\nRegistrant\\tand\\tcertain\\tholders\\tof\\tthe\\tRegistrant’s\\ncapital\\tstock\\tnamed\\ttherein.\\nS-1333-1645934.2January\\t29,\\t2010\\n4.3Amendment\\tto\\tFifth\\tAmended\\tand\\tRestated\\nInvestors’\\tRights\\tAgreement,\\tdated\\tas\\tof\\tMay\\t20,\\n2010,\\tbetween\\tRegistrant\\tand\\tcertain\\tholders\\tof\\nthe\\tRegistrant’s\\tcapital\\tstock\\tnamed\\ttherein.\\nS-1/A333-1645934.2AMay\\t27,\\t2010\\n4.4Amendment\\tto\\tFifth\\tAmended\\tand\\tRestated\\nInvestors’\\tRights\\tAgreement\\tbetween\\tRegistrant,\\nToyota\\tMotor\\tCorporation\\tand\\tcertain\\tholders\\tof\\nthe\\tRegistrant’s\\tcapital\\tstock\\tnamed\\ttherein.\\nS-1/A333-1645934.2BMay\\t27,\\t2010\\n4.5Amendment\\tto\\tFifth\\tAmended\\tand\\tRestated\\nInvestor’s\\tRights\\tAgreement,\\tdated\\tas\\tof\\tJune\\t14,\\n2010,\\tbetween\\tRegistrant\\tand\\tcertain\\tholders\\tof\\nthe\\tRegistrant’s\\tcapital\\tstock\\tnamed\\ttherein.\\nS-1/A333-1645934.2CJune\\t15,\\t2010\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 98,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 44\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"S-1/A333-1645934.2CJune\\t15,\\t2010\\n4.6Amendment\\tto\\tFifth\\tAmended\\tand\\tRestated\\nInvestor’s\\tRights\\tAgreement,\\tdated\\tas\\tof\\nNovember\\t2,\\t2010,\\tbetween\\tRegistrant\\tand\\ncertain\\tholders\\tof\\tthe\\tRegistrant’s\\tcapital\\tstock\\nnamed\\ttherein.\\n8-K001-347564.1November\\t4,\\t2010\\n96\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 98,\n        \"lines\": {\n          \"from\": 44,\n          \"to\": 51\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Exhibit\\nNumber\\nIncorporated\\tby\\tReference\\nFiled\\nHerewithExhibit\\tDescriptionFormFile\\tNo.ExhibitFiling\\tDate\\n4.7Waiver\\tto\\tFifth\\tAmended\\tand\\tRestated\\tInvestor’s\\nRights\\tAgreement,\\tdated\\tas\\tof\\tMay\\t22,\\t2011,\\nbetween\\tRegistrant\\tand\\tcertain\\tholders\\tof\\tthe\\nRegistrant’s\\tcapital\\tstock\\tnamed\\ttherein.\\nS-1/A333-1744664.2EJune\\t2,\\t2011\\n4.8Amendment\\tto\\tFifth\\tAmended\\tand\\tRestated\\nInvestor’s\\tRights\\tAgreement,\\tdated\\tas\\tof\\tMay\\t30,\\n2011,\\tbetween\\tRegistrant\\tand\\tcertain\\tholders\\tof\\nthe\\tRegistrant’s\\tcapital\\tstock\\tnamed\\ttherein.\\n8-K001-347564.1June\\t1,\\t2011\\n4.9Sixth\\tAmendment\\tto\\tFifth\\tAmended\\tand\\tRestated\\nInvestors’\\tRights\\tAgreement,\\tdated\\tas\\tof\\tMay\\t15,\\n2013\\tamong\\tthe\\tRegistrant,\\tthe\\tElon\\tMusk\\nRevocable\\tTrust\\tdated\\tJuly\\t22,\\t2003\\tand\\tcertain\\nother\\tholders\\tof\\tthe\\tcapital\\tstock\\tof\\tthe\\tRegistrant\\nnamed\\ttherein.\\n8-K001-347564.1May\\t20,\\t2013\\n4.10Waiver\\tto\\tFifth\\tAmended\\tand\\tRestated\\tInvestor’s\\nRights\\tAgreement,\\tdated\\tas\\tof\\tMay\\t14,\\t2013,\\nbetween\\tthe\\tRegistrant\\tand\\tcertain\\tholders\\tof\\tthe\\ncapital\\tstock\\tof\\tthe\\tRegistrant\\tnamed\\ttherein.\\n8-K001-347564.2May\\t20,\\t2013\\n4.11Waiver\\tto\\tFifth\\tAmended\\tand\\tRestated\\tInvestor’s\\nRights\\tAgreement,\\tdated\\tas\\tof\\tAugust\\t13,\\t2015,\\nbetween\\tthe\\tRegistrant\\tand\\tcertain\\tholders\\tof\\tthe\\ncapital\\tstock\\tof\\tthe\\tRegistrant\\tnamed\\ttherein.\\n8-K001-347564.1August\\t19,\\t2015\\n4.12Waiver\\tto\\tFifth\\tAmended\\tand\\tRestated\\tInvestors’\\nRights\\tAgreement,\\tdated\\tas\\tof\\tMay\\t18,\\t2016,\\nbetween\\tthe\\tRegistrant\\tand\\tcertain\\tholders\\tof\\tthe\\ncapital\\tstock\\tof\\tthe\\tRegistrant\\tnamed\\ttherein.\\n8-K001-347564.1May\\t24,\\t2016\\n4.13Waiver\\tto\\tFifth\\tAmended\\tand\\tRestated\\tInvestors’\\nRights\\tAgreement,\\tdated\\tas\\tof\\tMarch\\t15,\\t2017,\\nbetween\\tthe\\tRegistrant\\tand\\tcertain\\tholders\\tof\\tthe\\ncapital\\tstock\\tof\\tthe\\tRegistrant\\tnamed\\ttherein.\\n8-K001-347564.1March\\t17,\\t2017\\n4.14Waiver\\tto\\tFifth\\tAmended\\tand\\tRestated\\tInvestors’\\nRights\\tAgreement,\\tdated\\tas\\tof\\tMay\\t1,\\t2019,\\nbetween\\tthe\\tRegistrant\\tand\\tcertain\\tholders\\tof\\tthe\\ncapital\\tstock\\tof\\tthe\\tRegistrant\\tnamed\\ttherein.\\n8-K001-347564.1May\\t3,\\t2019\\n4.15Indenture,\\tdated\\tas\\tof\\tMay\\t22,\\t2013,\\tby\\tand\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 99,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 48\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"4.15Indenture,\\tdated\\tas\\tof\\tMay\\t22,\\t2013,\\tby\\tand\\nbetween\\tthe\\tRegistrant\\tand\\tU.S.\\tBank\\tNational\\nAssociation.\\n8-K001-347564.1May\\t22,\\t2013\\n97\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 99,\n        \"lines\": {\n          \"from\": 48,\n          \"to\": 52\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Exhibit\\nNumber\\nIncorporated\\tby\\tReference\\nFiled\\nHerewithExhibit\\tDescriptionFormFile\\tNo.ExhibitFiling\\tDate\\n4.16Fifth\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\tMay\\t7,\\n2019,\\tby\\tand\\tbetween\\tRegistrant\\tand\\tU.S.\\tBank\\nNational\\tAssociation,\\trelated\\tto\\t2.00%\\tConvertible\\nSenior\\tNotes\\tdue\\tMay\\t15,\\t2024.\\n8-K001-347564.2May\\t8,\\t2019\\n4.17Form\\tof\\t2.00%\\tConvertible\\tSenior\\tNotes\\tdue\\tMay\\n15,\\t2024\\t(included\\tin\\tExhibit\\t4.16).\\n8-K001-347564.2May\\t8,\\t2019\\n4.18Indenture,\\tdated\\tas\\tof\\tOctober\\t15,\\t2014,\\tbetween\\nSolarCity\\tand\\tU.S.\\tBank\\tNational\\tAssociation,\\tas\\ntrustee.\\nS-3ASR(1)333-1993214.1October\\t15,\\t2014\\n4.19Tenth\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\tMarch\\n9,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t5.00%\\tSolar\\tBonds,\\nSeries\\t2015/6-10.\\n8-K(1)001-357584.3March\\t9,\\t2015\\n4.20Eleventh\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nMarch\\t9,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t5.75%\\tSolar\\tBonds,\\nSeries\\t2015/7-15.\\n8-K(1)001-357584.4March\\t9,\\t2015\\n4.21Fifteenth\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nMarch\\t19,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\nthe\\tTrustee,\\trelated\\tto\\tSolarCity’s\\t4.70%\\tSolar\\nBonds,\\tSeries\\t2015/C4-10.\\n8-K(1)001-357584.5March\\t19,\\t2015\\n4.22Sixteenth\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nMarch\\t19,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\nthe\\tTrustee,\\trelated\\tto\\tSolarCity’s\\t5.45%\\tSolar\\nBonds,\\tSeries\\t2015/C5-15.\\n8-K(1)001-357584.6March\\t19,\\t2015\\n4.23Twentieth\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nMarch\\t26,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\nthe\\tTrustee,\\trelated\\tto\\tSolarCity’s\\t4.70%\\tSolar\\nBonds,\\tSeries\\t2015/C9-10.\\n8-K(1)001-357584.5March\\t26,\\t2015\\n4.24Twenty-First\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nMarch\\t26,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\nthe\\tTrustee,\\trelated\\tto\\tSolarCity’s\\t5.45%\\tSolar\\nBonds,\\tSeries\\t2015/C10-15.\\n8-K(1)001-357584.6March\\t26,\\t2015\\n4.25Twenty-Sixth\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nApril\\t2,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t4.70%\\tSolar\\tBonds,\\nSeries\\t2015/C14-10.\\n8-K(1)001-357584.5April\\t2,\\t2015\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 100,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 52\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"8-K(1)001-357584.5April\\t2,\\t2015\\n4.26Thirtieth\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nApril\\t9,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t4.70%\\tSolar\\tBonds,\\nSeries\\t2015/C19-10.\\n8-K(1)001-357584.5April\\t9,\\t2015\\n98\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 100,\n        \"lines\": {\n          \"from\": 52,\n          \"to\": 58\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Exhibit\\nNumber\\nIncorporated\\tby\\tReference\\nFiled\\nHerewithExhibit\\tDescriptionFormFile\\tNo.ExhibitFiling\\tDate\\n4.27Thirty-First\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nApril\\t9,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t5.45%\\tSolar\\tBonds,\\nSeries\\t2015/C20-15.\\n8-K(1)001-357584.6April\\t9,\\t2015\\n4.28Thirty-Fifth\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nApril\\t14,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t4.70%\\tSolar\\tBonds,\\nSeries\\t2015/C24-10.\\n8-K(1)001-357584.5April\\t14,\\t2015\\n4.29Thirty-Sixth\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nApril\\t14,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t5.45%\\tSolar\\tBonds,\\nSeries\\t2015/C25-15.\\n8-K(1)001-357584.6April\\t14,\\t2015\\n4.30Thirty-Eighth\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nApril\\t21,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t4.70%\\tSolar\\tBonds,\\nSeries\\t2015/C27-10.\\n8-K(1)001-357584.3April\\t21,\\t2015\\n4.31Thirty-Ninth\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nApril\\t21,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t5.45%\\tSolar\\tBonds,\\nSeries\\t2015/C28-15.\\n8-K(1)001-357584.4April\\t21,\\t2015\\n4.32Forty-Third\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nApril\\t27,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t4.70%\\tSolar\\tBonds,\\nSeries\\t2015/C32-10.\\n8-K(1)001-357584.5April\\t27,\\t2015\\n4.33Forty-Fourth\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nApril\\t27,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t5.45%\\tSolar\\tBonds,\\nSeries\\t2015/C33-15.\\n8-K(1)001-357584.6April\\t27,\\t2015\\n4.34Forty-Eighth\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nMay\\t1,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t5.00%\\tSolar\\tBonds,\\nSeries\\t2015/12-10.\\n8-K(1)001-357584.5May\\t1,\\t2015\\n4.35Forty-Ninth\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nMay\\t1,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t5.75%\\tSolar\\tBonds,\\nSeries\\t2015/13-15.\\n8-K(1)001-357584.6May\\t1,\\t2015\\n4.36Fifty-Second\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 101,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 51\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"May\\t11,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t4.70%\\tSolar\\tBonds,\\nSeries\\t2015/C36-10.\\n8-K(1)001-357584.4May\\t11,\\t2015\\n99\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 101,\n        \"lines\": {\n          \"from\": 52,\n          \"to\": 56\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Exhibit\\nNumber\\nIncorporated\\tby\\tReference\\nFiled\\nHerewithExhibit\\tDescriptionFormFile\\tNo.ExhibitFiling\\tDate\\n4.37Fifty-Third\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nMay\\t11,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t5.45%\\tSolar\\tBonds,\\nSeries\\t2015/C37-15.\\n8-K(1)001-357584.5May\\t11,\\t2015\\n4.38Fifty-Seventh\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nMay\\t18,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t4.70%\\tSolar\\tBonds,\\nSeries\\t2015/C40-10.\\n8-K(1)001-357584.4May\\t18,\\t2015\\n4.39Fifty-Eighth\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nMay\\t18,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t5.45%\\tSolar\\tBonds,\\nSeries\\t2015/C41-15.\\n8-K(1)001-357584.5May\\t18,\\t2015\\n4.40Sixty-First\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nMay\\t26,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t4.70%\\tSolar\\tBonds,\\nSeries\\t2015/C44-10.\\n8-K(1)001-357584.4May\\t26,\\t2015\\n4.41Sixty-Second\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nMay\\t26,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t5.45%\\tSolar\\tBonds,\\nSeries\\t2015/C45-15.\\n8-K(1)001-357584.5May\\t26,\\t2015\\n4.42Seventieth\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nJune\\t16,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t4.70%\\tSolar\\tBonds,\\nSeries\\t2015/C52-10.\\n8-K(1)001-357584.4June\\t16,\\t2015\\n4.43Seventy-First\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nJune\\t16,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t5.45%\\tSolar\\tBonds,\\nSeries\\t2015/C53-15.\\n8-K(1)001-357584.5June\\t16,\\t2015\\n4.44Seventy-Fourth\\tSupplemental\\tIndenture,\\tdated\\tas\\nof\\tJune\\t22,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\nthe\\tTrustee,\\trelated\\tto\\tSolarCity’s\\t4.70%\\tSolar\\nBonds,\\tSeries\\t2015/C56-10.\\n8-K(1)001-357584.4June\\t23,\\t2015\\n4.45Seventy-Fifth\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nJune\\t22,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t5.45%\\tSolar\\tBonds,\\nSeries\\t2015/C57-15.\\n8-K(1)001-357584.5June\\t23,\\t2015\\n4.46Eightieth\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 102,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 51\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"4.46Eightieth\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nJune\\t29,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t4.70%\\tSolar\\tBonds,\\nSeries\\t2015/C61-10.\\n8-K(1)001-357584.5June\\t29,\\t2015\\n100\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 102,\n        \"lines\": {\n          \"from\": 51,\n          \"to\": 56\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Exhibit\\nNumber\\nIncorporated\\tby\\tReference\\nFiled\\nHerewithExhibit\\tDescriptionFormFile\\tNo.ExhibitFiling\\tDate\\n4.47Eighty-First\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nJune\\t29,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t5.45%\\tSolar\\tBonds,\\nSeries\\t2015/C62-15.\\n8-K(1)001-357584.6June\\t29,\\t2015\\n4.48Ninetieth\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\tJuly\\n20,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t4.70%\\tSolar\\tBonds,\\nSeries\\t2015/C71-10.\\n8-K(1)001-357584.5July\\t21,\\t2015\\n4.49Ninety-First\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nJuly\\t20,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t5.45%\\tSolar\\tBonds,\\nSeries\\t2015/C72-15.\\n8-K(1)001-357584.6July\\t21,\\t2015\\n4.50Ninety-Fifth\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nJuly\\t31,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t5.00%\\tSolar\\tBonds,\\nSeries\\t2015/20-10.\\n8-K(1)001-357584.5July\\t31,\\t2015\\n4.51Ninety-Sixth\\tSupplemental\\tIndenture,\\tdated\\tas\\tof\\nJuly\\t31,\\t2015,\\tby\\tand\\tbetween\\tSolarCity\\tand\\tthe\\nTrustee,\\trelated\\tto\\tSolarCity’s\\t5.75%\\tSolar\\tBonds,\\nSeries\\t2015/21-15.\\n8-K(1)001-357584.6July\\t31,\\t2015\\n4.52One\\tHundred-and-Fifth\\tSupplemental\\tIndenture,\\ndated\\tas\\tof\\tAugust\\t10,\\t2015,\\tby\\tand\\tbetween\\nSolarCity\\tand\\tthe\\tTrustee,\\trelated\\tto\\tSolarCity’s\\n4.70%\\tSolar\\tBonds,\\tSeries\\t2015/C81-10.\\n8-K(1)001-357584.5August\\t10,\\t2015\\n4.53One\\tHundred-and-Eleventh\\tSupplemental\\nIndenture,\\tdated\\tas\\tof\\tAugust\\t17,\\t2015,\\tby\\tand\\nbetween\\tSolarCity\\tand\\tthe\\tTrustee,\\trelated\\tto\\nSolarCity’s\\t5.45%\\tSolar\\tBonds,\\tSeries\\t2015/C87-\\n15.\\n8-K(1)001-357584.6August\\t17,\\t2015\\n4.54One\\tHundred-and-Sixteenth\\tSupplemental\\nIndenture,\\tdated\\tas\\tof\\tAugust\\t24,\\t2015,\\tby\\tand\\nbetween\\tSolarCity\\tand\\tthe\\tTrustee,\\trelated\\tto\\nSolarCity’s\\t5.45%\\tSolar\\tBonds,\\tSeries\\t2015/C92-\\n15.\\n8-K(1)001-357584.6August\\t24,\\t2015\\n4.55One\\tHundred-and-Twenty-First\\tSupplemental\\nIndenture,\\tdated\\tas\\tof\\tAugust\\t31,\\t2015,\\tby\\tand\\nbetween\\tSolarCity\\tand\\tthe\\tTrustee,\\trelated\\tto\\nSolarCity’s\\t5.45%\\tSolar\\tBonds,\\tSeries\\t2015/C97-\\n15.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 103,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 52\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"15.\\n8-K(1)001-357584.6August\\t31,\\t2015\\n4.56One\\tHundred-and-Twenty-Eighth\\tSupplemental\\nIndenture,\\tdated\\tas\\tof\\tSeptember\\t14,\\t2015,\\tby\\nand\\tbetween\\tSolarCity\\tand\\tthe\\tTrustee,\\trelated\\tto\\nSolarCity’s\\t4.70%\\tSolar\\tBonds,\\tSeries\\t2015/C101-\\n10.\\n8-K(1)001-357584.5September\\t15,\\t2015\\n101\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 103,\n        \"lines\": {\n          \"from\": 52,\n          \"to\": 60\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Exhibit\\nNumber\\nIncorporated\\tby\\tReference\\nFiled\\nHerewithExhibit\\tDescriptionFormFile\\tNo.ExhibitFiling\\tDate\\n4.57One\\tHundred-and-Twenty-Ninth\\tSupplemental\\nIndenture,\\tdated\\tas\\tof\\tSeptember\\t14,\\t2015,\\tby\\nand\\tbetween\\tSolarCity\\tand\\tthe\\tTrustee,\\trelated\\tto\\nSolarCity’s\\t5.45%\\tSolar\\tBonds,\\tSeries\\t2015/C102-\\n15.\\n8-K(1)001-357584.6September\\t15,\\t2015\\n4.58One\\tHundred-and-Thirty-Third\\tSupplemental\\nIndenture,\\tdated\\tas\\tof\\tSeptember\\t28,\\t2015,\\tby\\nand\\tbetween\\tSolarCity\\tand\\tthe\\tTrustee,\\trelated\\tto\\nSolarCity’s\\t4.70%\\tSolar\\tBonds,\\tSeries\\t2015/C106-\\n10.\\n8-K(1)001-357584.5September\\t29,\\t2015\\n4.59One\\tHundred-and-Thirty-Fourth\\tSupplemental\\nIndenture,\\tdated\\tas\\tof\\tSeptember\\t28,\\t2015,\\tby\\nand\\tbetween\\tSolarCity\\tand\\tthe\\tTrustee,\\trelated\\tto\\nSolarCity’s\\t5.45%\\tSolar\\tBonds,\\tSeries\\t2015/C107-\\n15.\\n8-K(1)001-357584.6September\\t29,\\t2015\\n4.60One\\tHundred-and-Thirty-Eighth\\tSupplemental\\nIndenture,\\tdated\\tas\\tof\\tOctober\\t13,\\t2015,\\tby\\tand\\nbetween\\tSolarCity\\tand\\tthe\\tTrustee,\\trelated\\tto\\nSolarCity’s\\t4.70%\\tSolar\\tBonds,\\tSeries\\t2015/C111-\\n10.\\n8-K(1)001-357584.5October\\t13,\\t2015\\n4.61One\\tHundred-and-Forty-Third\\tSupplemental\\nIndenture,\\tdated\\tas\\tof\\tOctober\\t30,\\t2015,\\tby\\tand\\nbetween\\tSolarCity\\tand\\tthe\\tTrustee,\\trelated\\tto\\nSolarCity’s\\t5.00%\\tSolar\\tBonds,\\tSeries\\t2015/25-10.\\n8-K(1)001-357584.5October\\t30,\\t2015\\n4.62One\\tHundred-and-Forty-Fourth\\tSupplemental\\nIndenture,\\tdated\\tas\\tof\\tOctober\\t30,\\t2015,\\tby\\tand\\nbetween\\tSolarCity\\tand\\tthe\\tTrustee,\\trelated\\tto\\nSolarCity’s\\t5.75%\\tSolar\\tBonds,\\tSeries\\t2015/26-15.\\n8-K(1)001-357584.6October\\t30,\\t2015\\n4.63One\\tHundred-and-Forty-Eighth\\tSupplemental\\nIndenture,\\tdated\\tas\\tof\\tNovember\\t4,\\t2015,\\tby\\tand\\nbetween\\tSolarCity\\tand\\tthe\\tTrustee,\\trelated\\tto\\nSolarCity’s\\t4.70%\\tSolar\\tBonds,\\tSeries\\t2015/C116-\\n10.\\n8-K(1)001-357584.5November\\t4,\\t2015\\n4.64One\\tHundred-and-Fifty-Third\\tSupplemental\\nIndenture,\\tdated\\tas\\tof\\tNovember\\t16,\\t2015,\\tby\\nand\\tbetween\\tSolarCity\\tand\\tthe\\tTrustee,\\trelated\\tto\\nSolarCity’s\\t4.70%\\tSolar\\tBonds,\\tSeries\\t2015/C121-\\n10.\\n8-K(1)001-357584.5November\\t17,\\t2015\\n4.65One\\tHundred-and-Fifty-Fourth\\tSupplemental\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 104,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 52\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"4.65One\\tHundred-and-Fifty-Fourth\\tSupplemental\\nIndenture,\\tdated\\tas\\tof\\tNovember\\t16,\\t2015,\\tby\\nand\\tbetween\\tSolarCity\\tand\\tthe\\tTrustee,\\trelated\\tto\\nSolarCity’s\\t5.45%\\tSolar\\tBonds,\\tSeries\\t2015/C122-\\n15.\\n8-K(1)001-357584.6November\\t17,\\t2015\\n102\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 104,\n        \"lines\": {\n          \"from\": 52,\n          \"to\": 58\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Exhibit\\nNumber\\nIncorporated\\tby\\tReference\\nFiled\\nHerewithExhibit\\tDescriptionFormFile\\tNo.ExhibitFiling\\tDate\\n4.66One\\tHundred-and-Fifty-Eighth\\tSupplemental\\nIndenture,\\tdated\\tas\\tof\\tNovember\\t30,\\t2015,\\tby\\nand\\tbetween\\tSolarCity\\tand\\tthe\\tTrustee,\\trelated\\tto\\nSolarCity’s\\t4.70%\\tSolar\\tBonds,\\tSeries\\t2015/C126-\\n10.\\n8-K(1)001-357584.5November\\t30,\\t2015\\n4.67One\\tHundred-and-Fifty-Ninth\\tSupplemental\\nIndenture,\\tdated\\tas\\tof\\tNovember\\t30,\\t2015,\\tby\\nand\\tbetween\\tSolarCity\\tand\\tthe\\tTrustee,\\trelated\\tto\\nSolarCity’s\\t5.45%\\tSolar\\tBonds,\\tSeries\\t2015/C127-\\n15.\\n8-K(1)001-357584.6November\\t30,\\t2015\\n4.68One\\tHundred-and-Sixty-Third\\tSupplemental\\nIndenture,\\tdated\\tas\\tof\\tDecember\\t14,\\t2015,\\tby\\tand\\nbetween\\tSolarCity\\tand\\tthe\\tTrustee,\\trelated\\tto\\nSolarCity’s\\t4.70%\\tSolar\\tBonds,\\tSeries\\t2015/C131-\\n10.\\n8-K(1)001-357584.5December\\t14,\\t2015\\n4.69One\\tHundred-and-Sixty-Fourth\\tSupplemental\\nIndenture,\\tdated\\tas\\tof\\tDecember\\t14,\\t2015,\\tby\\tand\\nbetween\\tSolarCity\\tand\\tthe\\tTrustee,\\trelated\\tto\\nSolarCity’s\\t5.45%\\tSolar\\tBonds,\\tSeries\\t2015/C132-\\n15.\\n8-K(1)001-357584.6December\\t14,\\t2015\\n4.70One\\tHundred-and-Sixty-Eighth\\tSupplemental\\nIndenture,\\tdated\\tas\\tof\\tDecember\\t28,\\t2015,\\tby\\tand\\nbetween\\tSolarCity\\tand\\tthe\\tTrustee,\\trelated\\tto\\nSolarCity’s\\t4.70%\\tSolar\\tBonds,\\tSeries\\t2015/C136-\\n10.\\n8-K(1)001-357584.5December\\t28,\\t2015\\n4.71One\\tHundred-and-Sixty-Ninth\\tSupplemental\\nIndenture,\\tdated\\tas\\tof\\tDecember\\t28,\\t2015,\\tby\\tand\\nbetween\\tSolarCity\\tand\\tthe\\tTrustee,\\trelated\\tto\\nSolarCity’s\\t5.45%\\tSolar\\tBonds,\\tSeries\\t2015/C137-\\n15.\\n8-K(1)001-357584.6December\\t28,\\t2015\\n4.72One\\tHundred-and-Seventy-Third\\tSupplemental\\nIndenture,\\tdated\\tas\\tof\\tJanuary\\t29,\\t2016,\\tby\\tand\\nbetween\\tSolarCity\\tand\\tthe\\tTrustee,\\trelated\\tto\\nSolarCity’s\\t5.00%\\tSolar\\tBonds,\\tSeries\\t2016/4-10.\\n8-K(1)001-357584.5January\\t29,\\t2016\\n4.73One\\tHundred-and-Seventy-Fourth\\tSupplemental\\nIndenture,\\tdated\\tas\\tof\\tJanuary\\t29,\\t2016,\\tby\\tand\\nbetween\\tSolarCity\\tand\\tthe\\tTrustee,\\trelated\\tto\\nSolarCity’s\\t5.75%\\tSolar\\tBonds,\\tSeries\\t2016/5-15.\\n8-K(1)001-357584.6January\\t29,\\t2016\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 105,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 51\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"8-K(1)001-357584.6January\\t29,\\t2016\\n4.74Description\\tof\\tRegistrant’s\\tSecurities10-K001-347564.119February\\t13,\\t2020\\n10.1**Form\\tof\\tIndemnification\\tAgreement\\tbetween\\tthe\\nRegistrant\\tand\\tits\\tdirectors\\tand\\tofficers.\\nS-1/A333-16459310.1June\\t15,\\t2010\\n10.2**2003\\tEquity\\tIncentive\\tPlan.S-1/A333-16459310.2May\\t27,\\t2010\\n103\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 105,\n        \"lines\": {\n          \"from\": 51,\n          \"to\": 57\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Exhibit\\nNumber\\nIncorporated\\tby\\tReference\\nFiled\\nHerewithExhibit\\tDescriptionFormFile\\tNo.ExhibitFiling\\tDate\\n10.3**Form\\tof\\tStock\\tOption\\tAgreement\\tunder\\t2003\\nEquity\\tIncentive\\tPlan.\\nS-1333-16459310.3January\\t29,\\t2010\\n10.4**Amended\\tand\\tRestated\\t2010\\tEquity\\tIncentive\\nPlan.\\n10-K001-3475610.4February\\t23,\\t2018\\n10.5**Form\\tof\\tStock\\tOption\\tAgreement\\tunder\\t2010\\nEquity\\tIncentive\\tPlan.\\n10-K001-3475610.6March\\t1,\\t2017\\n10.6**Form\\tof\\tRestricted\\tStock\\tUnit\\tAward\\tAgreement\\nunder\\t2010\\tEquity\\tIncentive\\tPlan.\\n10-K001-3475610.7March\\t1,\\t2017\\n10.7**Amended\\tand\\tRestated\\t2010\\tEmployee\\tStock\\nPurchase\\tPlan,\\teffective\\tas\\tof\\tFebruary\\t1,\\t2017.\\n10-K001-3475610.8March\\t1,\\t2017\\n10.8**2019\\tEquity\\tIncentive\\tPlan.S-8333-2320794.2June\\t12,\\t2019\\n10.9**Form\\tof\\tStock\\tOption\\tAgreement\\tunder\\t2019\\nEquity\\tIncentive\\tPlan.\\nS-8333-2320794.3June\\t12,\\t2019\\n10.10**Form\\tof\\tRestricted\\tStock\\tUnit\\tAward\\tAgreement\\nunder\\t2019\\tEquity\\tIncentive\\tPlan.\\nS-8333-2320794.4June\\t12,\\t2019\\n10.11**Employee\\tStock\\tPurchase\\tPlan,\\teffective\\tas\\tof\\nJune\\t12,\\t2019.\\nS-8333-2320794.5June\\t12,\\t2019\\n10.12**2007\\tSolarCity\\tStock\\tPlan\\tand\\tform\\tof\\tagreements\\nused\\tthereunder.\\nS-1(1)333-18431710.2October\\t5,\\t2012\\n10.13**2012\\tSolarCity\\tEquity\\tIncentive\\tPlan\\tand\\tform\\tof\\nagreements\\tused\\tthereunder.\\nS-1(1)333-18431710.3October\\t5,\\t2012\\n10.14**2010\\tZep\\tSolar,\\tInc.\\tEquity\\tIncentive\\tPlan\\tand\\nform\\tof\\tagreements\\tused\\tthereunder.\\nS-8(1)333-1929964.5December\\t20,\\t2013\\n10.15**Offer\\tLetter\\tbetween\\tthe\\tRegistrant\\tand\\tElon\\nMusk\\tdated\\tOctober\\t13,\\t2008.\\nS-1333-16459310.9January\\t29,\\t2010\\n10.16**Performance\\tStock\\tOption\\tAgreement\\tbetween\\nthe\\tRegistrant\\tand\\tElon\\tMusk\\tdated\\tJanuary\\t21,\\n2018.\\nDEF\\t14A001-34756Appendix\\tAFebruary\\t8,\\t2018\\n10.17**Maxwell\\tTechnologies,\\tInc.\\t2005\\tOmnibus\\tEquity\\nIncentive\\tPlan,\\tas\\tamended\\tthrough\\tMay\\t6,\\t2010\\n8-K(2)001-1547710.1May\\t10,\\t2010\\n10.18**Maxwell\\tTechnologies,\\tInc.\\t2013\\tOmnibus\\tEquity\\nIncentive\\tPlan\\nDEF\\t14A(2)001-15477Appendix\\tAJune\\t2,\\t2017\\n10.19Indemnification\\tAgreement,\\teffective\\tas\\tof\\tJune\\n23,\\t2020,\\tbetween\\tRegistrant\\tand\\tElon\\tR.\\tMusk.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 106,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 54\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"23,\\t2020,\\tbetween\\tRegistrant\\tand\\tElon\\tR.\\tMusk.\\n10-Q001-3475610.4July\\t28,\\t2020\\n104\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 106,\n        \"lines\": {\n          \"from\": 54,\n          \"to\": 56\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Exhibit\\nNumber\\nIncorporated\\tby\\tReference\\nFiled\\nHerewithExhibit\\tDescriptionFormFile\\tNo.ExhibitFiling\\tDate\\n10.20Indemnification\\tAgreement,\\tdated\\tas\\tof\\tFebruary\\n27,\\t2014,\\tby\\tand\\tbetween\\tthe\\tRegistrant\\tand\\tJ.P.\\nMorgan\\tSecurities\\tLLC.\\n8-K001-3475610.1March\\t5,\\t2014\\n10.21Form\\tof\\tCall\\tOption\\tConfirmation\\trelating\\tto\\n1.25%\\tConvertible\\tSenior\\tNotes\\tDue\\tMarch\\t1,\\n2021.\\n8-K001-3475610.3March\\t5,\\t2014\\n10.22Form\\tof\\tWarrant\\tConfirmation\\trelating\\tto\\t1.25%\\nConvertible\\tSenior\\tNotes\\tDue\\tMarch\\t1,\\t2021.\\n8-K001-3475610.5March\\t5,\\t2014\\n10.23Form\\tof\\tCall\\tOption\\tConfirmation\\trelating\\tto\\n2.00%\\tConvertible\\tSenior\\tNotes\\tdue\\tMay\\t15,\\n2024.\\n8-K001-3475610.1May\\t3,\\t2019\\n10.24Form\\tof\\tWarrant\\tConfirmation\\trelating\\tto\\t2.00%\\nConvertible\\tSenior\\tNotes\\tdue\\tMay\\t15,\\t2024.\\n8-K001-3475610.2May\\t3,\\t2019\\n10.25†Supply\\tAgreement\\tbetween\\tPanasonic\\nCorporation\\tand\\tthe\\tRegistrant\\tdated\\tOctober\\t5,\\n2011.\\n10-K001-3475610.50February\\t27,\\t2012\\n10.26†Amendment\\tNo.\\t1\\tto\\tSupply\\tAgreement\\tbetween\\nPanasonic\\tCorporation\\tand\\tthe\\tRegistrant\\tdated\\nOctober\\t29,\\t2013.\\n10-K001-3475610.35AFebruary\\t26,\\t2014\\n10.27Agreement\\tbetween\\tPanasonic\\tCorporation\\tand\\nthe\\tRegistrant\\tdated\\tJuly\\t31,\\t2014.\\n10-Q001-3475610.1November\\t7,\\t2014\\n10.28†General\\tTerms\\tand\\tConditions\\tbetween\\tPanasonic\\nCorporation\\tand\\tthe\\tRegistrant\\tdated\\tOctober\\t1,\\n2014.\\n8-K001-3475610.2October\\t11,\\t2016\\n10.29Letter\\tAgreement,\\tdated\\tas\\tof\\tFebruary\\t24,\\t2015,\\nregarding\\taddition\\tof\\tco-party\\tto\\tGeneral\\tTerms\\nand\\tConditions,\\tProduction\\tPricing\\tAgreement\\tand\\nInvestment\\tLetter\\tAgreement\\tbetween\\tPanasonic\\nCorporation\\tand\\tthe\\tRegistrant.\\n10-K001-3475610.25AFebruary\\t24,\\t2016\\n10.30†Amendment\\tto\\tGigafactory\\tGeneral\\tTerms,\\tdated\\nMarch\\t1,\\t2016,\\tby\\tand\\tamong\\tthe\\tRegistrant,\\nPanasonic\\tCorporation\\tand\\tPanasonic\\tEnergy\\nCorporation\\tof\\tNorth\\tAmerica.\\n8-K001-3475610.1October\\t11,\\t2016\\n10.31††Amended\\tand\\tRestated\\tGeneral\\tTerms\\tand\\nConditions\\tfor\\tGigafactory,\\tentered\\tinto\\ton\\tJune\\n10,\\t2020,\\tby\\tand\\tamong\\tRegistrant,\\tTesla\\tMotors\\nNetherlands\\tB.V.,\\tPanasonic\\tCorporation\\tand\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 107,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 53\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Netherlands\\tB.V.,\\tPanasonic\\tCorporation\\tand\\nPanasonic\\tCorporation\\tof\\tNorth\\tAmerica.\\n10-Q001-3475610.2July\\t28,\\t2020\\n10.32†Production\\tPricing\\tAgreement\\tbetween\\tPanasonic\\nCorporation\\tand\\tthe\\tRegistrant\\tdated\\tOctober\\t1,\\n2014.\\n10-Q001-3475610.3November\\t7,\\t2014\\n105\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 107,\n        \"lines\": {\n          \"from\": 53,\n          \"to\": 60\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Exhibit\\nNumber\\nIncorporated\\tby\\tReference\\nFiled\\nHerewithExhibit\\tDescriptionFormFile\\tNo.ExhibitFiling\\tDate\\n10.33†Investment\\tLetter\\tAgreement\\tbetween\\tPanasonic\\nCorporation\\tand\\tthe\\tRegistrant\\tdated\\tOctober\\t1,\\n2014.\\n10-Q001-3475610.4November\\t7,\\t2014\\n10.34Amendment\\tto\\tGigafactory\\tDocuments,\\tdated\\nApril\\t5,\\t2016,\\tby\\tand\\tamong\\tthe\\tRegistrant,\\nPanasonic\\tCorporation,\\tPanasonic\\tCorporation\\tof\\nNorth\\tAmerica\\tand\\tPanasonic\\tEnergy\\tCorporation\\nof\\tNorth\\tAmerica.\\n10-Q001-3475610.2May\\t10,\\t2016\\n10.35††2019\\tPricing\\tAgreement\\t(Japan\\tCells)\\twith\\trespect\\nto\\t2011\\tSupply\\tAgreement,\\texecuted\\tSeptember\\n20,\\t2019,\\tby\\tand\\tamong\\tthe\\tRegistrant,\\tTesla\\nMotors\\tNetherlands\\tB.V.,\\tPanasonic\\tCorporation\\nand\\tSANYO\\tElectric\\tCo.,\\tLtd.\\n10-Q001-3475610.6October\\t29,\\t2019\\n10.36††2020\\tPricing\\tAgreement\\t(Gigafactory\\t2170\\tCells),\\nentered\\tinto\\ton\\tJune\\t9,\\t2020,\\tby\\tand\\tamong\\nRegistrant,\\tTesla\\tMotors\\tNetherlands\\tB.V.,\\nPanasonic\\tCorporation\\tand\\tPanasonic\\tCorporation\\nof\\tNorth\\tAmerica.\\n10-Q001-3475610.3July\\t28,\\t2020\\n10.37††2021\\tPricing\\tAgreement\\t(Japan\\tCells)\\twith\\trespect\\nto\\t2011\\tSupply\\tAgreement,\\texecuted\\tDecember\\n29,\\t2020,\\tby\\tand\\tamong\\tthe\\tRegistrant,\\tTesla\\nMotors\\tNetherlands\\tB.V.,\\tPanasonic\\tCorporation\\tof\\nNorth\\tAmerica\\tand\\tSANYO\\tElectric\\tCo.,\\tLtd.\\n10-K001-3475610.39February\\t8,\\t2021\\n10.38††Amended\\tand\\tRestated\\tFactory\\tLease,\\texecuted\\nas\\tof\\tMarch\\t26,\\t2019,\\tby\\tand\\tbetween\\tthe\\nRegistrant\\tand\\tPanasonic\\tEnergy\\tNorth\\tAmerica,\\ta\\ndivision\\tof\\tPanasonic\\tCorporation\\tof\\tNorth\\nAmerica,\\tas\\ttenant.\\n10-Q001-3475610.3July\\t29,\\t2019\\n10.39††Lease\\tAmendment,\\texecuted\\tSeptember\\t20,\\n2019,\\tby\\tand\\tamong\\tthe\\tRegistrant,\\tPanasonic\\nCorporation\\tof\\tNorth\\tAmerica,\\ton\\tbehalf\\tof\\tits\\ndivision\\tPanasonic\\tEnergy\\tof\\tNorth\\tAmerica,\\twith\\nrespect\\tto\\tthe\\tAmended\\tand\\tRestated\\tFactory\\nLease,\\texecuted\\tas\\tof\\tMarch\\t26,\\t2019.\\n10-Q001-3475610.7October\\t29,\\t2019\\n10.40††Second\\tLease\\tAmendment,\\tentered\\tinto\\ton\\tJune\\n9,\\t2020,\\tby\\tand\\tbetween\\tthe\\tRegistrant\\tand\\nPanasonic\\tEnergy\\tof\\tNorth\\tAmerica,\\ta\\tdivision\\tof\\nPanasonic\\tCorporation\\tof\\tNorth\\tAmerica,\\twith\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 108,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 50\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Panasonic\\tCorporation\\tof\\tNorth\\tAmerica,\\twith\\nrespect\\tto\\tthe\\tAmended\\tand\\tRestated\\tFactory\\nLease\\tdated\\tJanuary\\t1,\\t2017.\\n10-Q001-3475610.1July\\t28,\\t2020\\n106\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 108,\n        \"lines\": {\n          \"from\": 50,\n          \"to\": 54\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Exhibit\\nNumber\\nIncorporated\\tby\\tReference\\nFiled\\nHerewithExhibit\\tDescriptionFormFile\\tNo.ExhibitFiling\\tDate\\n10.41Amendment\\tand\\tRestatement\\tin\\trespect\\tof\\tABL\\nCredit\\tAgreement,\\tdated\\tas\\tof\\tMarch\\t6,\\t2019,\\tby\\nand\\tamong\\tcertain\\tof\\tthe\\tRegistrant’s\\tand\\tTesla\\nMotors\\tNetherlands\\tB.V.’s\\tdirect\\tor\\tindirect\\nsubsidiaries\\tfrom\\ttime\\tto\\ttime\\tparty\\tthereto,\\tas\\nborrowers,\\tWells\\tFargo\\tBank,\\tNational\\nAssociation,\\tas\\tdocumentation\\tagent,\\tJPMorgan\\nChase\\tBank,\\tN.A.,\\tGoldman\\tSachs\\tBank\\tUSA,\\nMorgan\\tStanley\\tSenior\\tFunding\\tInc.\\tand\\tBank\\tof\\nAmerica,\\tN.A.,\\tas\\tsyndication\\tagents,\\tthe\\tlenders\\nfrom\\ttime\\tto\\ttime\\tparty\\tthereto,\\tand\\tDeutsche\\nBank\\tAG\\tNew\\tYork\\tBranch,\\tas\\tadministrative\\nagent\\tand\\tcollateral\\tagent.\\nS-4/A333-22974910.68April\\t3,\\t2019\\n10.42First\\tAmendment\\tto\\tAmended\\tand\\tRestated\\tABL\\nCredit\\tAgreement,\\tdated\\tas\\tof\\tDecember\\t23,\\n2020,\\tin\\trespect\\tof\\tthe\\tAmended\\tand\\tRestated\\nABL\\tCredit\\tAgreement,\\tdated\\tas\\tof\\tMarch\\t6,\\t2019,\\nby\\tand\\tamong\\tcertain\\tof\\tthe\\tRegistrant’s\\tand\\nTesla\\tMotors\\tNetherlands\\tB.V.’s\\tdirect\\tor\\tindirect\\nsubsidiaries\\tfrom\\ttime\\tto\\ttime\\tparty\\tthereto,\\tas\\nborrowers,\\tWells\\tFargo\\tBank,\\tNational\\nAssociation,\\tas\\tdocumentation\\tagent,\\tJPMorgan\\nChase\\tBank,\\tN.A.,\\tGoldman\\tSachs\\tBank\\tUSA,\\nMorgan\\tStanley\\tSenior\\tFunding\\tInc.\\tand\\tBank\\tof\\nAmerica,\\tN.A.,\\tas\\tsyndication\\tagents,\\tthe\\tlenders\\nfrom\\ttime\\tto\\ttime\\tparty\\tthereto,\\tand\\tDeutsche\\nBank\\tAG\\tNew\\tYork\\tBranch,\\tas\\tadministrative\\nagent\\tand\\tcollateral\\tagent.\\n10-K001-3475610.44February\\t8,\\t2021\\n10.43†Agreement\\tfor\\tTax\\tAbatement\\tand\\tIncentives,\\ndated\\tas\\tof\\tMay\\t7,\\t2015,\\tby\\tand\\tbetween\\tTesla\\nMotors,\\tInc.\\tand\\tthe\\tState\\tof\\tNevada,\\tacting\\tby\\nand\\tthrough\\tthe\\tNevada\\tGovernor’s\\tOffice\\tof\\nEconomic\\tDevelopment.\\n10-Q001-3475610.1August\\t7,\\t2015\\n10.44Purchase\\tAgreement,\\tdated\\tas\\tof\\tAugust\\t11,\\n2017,\\tby\\tand\\tamong\\tthe\\tRegistrant,\\tSolarCity\\tand\\nGoldman\\tSachs\\t&\\tCo.\\tLLC\\tand\\tMorgan\\tStanley\\t&\\nCo.\\tLLC\\tas\\trepresentatives\\tof\\tthe\\tseveral\\tinitial\\npurchasers\\tnamed\\ttherein.\\n8-K001-3475610.1August\\t23,\\t2017\\n10.45Amended\\tand\\tRestated\\tAgreement\\tFor\\tResearch\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 109,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 48\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"10.45Amended\\tand\\tRestated\\tAgreement\\tFor\\tResearch\\n&\\tDevelopment\\tAlliance\\ton\\tTriex\\tModule\\nTechnology,\\teffective\\tas\\tof\\tSeptember\\t2,\\t2014,\\tby\\nand\\tbetween\\tThe\\tResearch\\tFoundation\\tFor\\tThe\\nState\\tUniversity\\tof\\tNew\\tYork,\\ton\\tbehalf\\tof\\tthe\\nCollege\\tof\\tNanoscale\\tScience\\tand\\tEngineering\\tof\\nthe\\tState\\tUniversity\\tof\\tNew\\tYork,\\tand\\tSilevo,\\tInc.\\n10-Q(1)001-3575810.16November\\t6,\\t2014\\n107\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 109,\n        \"lines\": {\n          \"from\": 48,\n          \"to\": 56\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Exhibit\\nNumber\\nIncorporated\\tby\\tReference\\nFiled\\nHerewithExhibit\\tDescriptionFormFile\\tNo.ExhibitFiling\\tDate\\n10.46First\\tAmendment\\tto\\tAmended\\tand\\tRestated\\nAgreement\\tFor\\tResearch\\t&\\tDevelopment\\tAlliance\\non\\tTriex\\tModule\\tTechnology,\\teffective\\tas\\tof\\nOctober\\t31,\\t2014,\\tby\\tand\\tbetween\\tThe\\tResearch\\nFoundation\\tFor\\tThe\\tState\\tUniversity\\tof\\tNew\\tYork,\\non\\tbehalf\\tof\\tthe\\tCollege\\tof\\tNanoscale\\tScience\\tand\\nEngineering\\tof\\tthe\\tState\\tUniversity\\tof\\tNew\\tYork,\\nand\\tSilevo,\\tInc.\\n10-K(1)001-3575810.16aFebruary\\t24,\\t2015\\n10.47Second\\tAmendment\\tto\\tAmended\\tand\\tRestated\\nAgreement\\tFor\\tResearch\\t&\\tDevelopment\\tAlliance\\non\\tTriex\\tModule\\tTechnology,\\teffective\\tas\\tof\\nDecember\\t15,\\t2014,\\tby\\tand\\tbetween\\tThe\\nResearch\\tFoundation\\tFor\\tThe\\tState\\tUniversity\\tof\\nNew\\tYork,\\ton\\tbehalf\\tof\\tthe\\tCollege\\tof\\tNanoscale\\nScience\\tand\\tEngineering\\tof\\tthe\\tState\\tUniversity\\tof\\nNew\\tYork,\\tand\\tSilevo,\\tInc.\\n10-K(1)001-3575810.16bFebruary\\t24,\\t2015\\n10.48Third\\tAmendment\\tto\\tAmended\\tand\\tRestated\\nAgreement\\tFor\\tResearch\\t&\\tDevelopment\\tAlliance\\non\\tTriex\\tModule\\tTechnology,\\teffective\\tas\\tof\\nFebruary\\t12,\\t2015,\\tby\\tand\\tbetween\\tThe\\tResearch\\nFoundation\\tFor\\tThe\\tState\\tUniversity\\tof\\tNew\\tYork,\\non\\tbehalf\\tof\\tthe\\tCollege\\tof\\tNanoscale\\tScience\\tand\\nEngineering\\tof\\tthe\\tState\\tUniversity\\tof\\tNew\\tYork,\\nand\\tSilevo,\\tInc.\\n10-Q(1)001-3575810.16cMay\\t6,\\t2015\\n10.49Fourth\\tAmendment\\tto\\tAmended\\tand\\tRestated\\nAgreement\\tFor\\tResearch\\t&\\tDevelopment\\tAlliance\\non\\tTriex\\tModule\\tTechnology,\\teffective\\tas\\tof\\tMarch\\n30,\\t2015,\\tby\\tand\\tbetween\\tThe\\tResearch\\nFoundation\\tFor\\tThe\\tState\\tUniversity\\tof\\tNew\\tYork,\\non\\tbehalf\\tof\\tthe\\tCollege\\tof\\tNanoscale\\tScience\\tand\\nEngineering\\tof\\tthe\\tState\\tUniversity\\tof\\tNew\\tYork,\\nand\\tSilevo,\\tInc.\\n10-Q(1)001-3575810.16dMay\\t6,\\t2015\\n10.50Fifth\\tAmendment\\tto\\tAmended\\tand\\tRestated\\nAgreement\\tFor\\tResearch\\t&\\tDevelopment\\tAlliance\\non\\tTriex\\tModule\\tTechnology,\\teffective\\tas\\tof\\tJune\\n30,\\t2015,\\tby\\tand\\tbetween\\tThe\\tResearch\\nFoundation\\tFor\\tThe\\tState\\tUniversity\\tof\\tNew\\tYork,\\non\\tbehalf\\tof\\tthe\\tCollege\\tof\\tNanoscale\\tScience\\tand\\nEngineering\\tof\\tthe\\tState\\tUniversity\\tof\\tNew\\tYork,\\nand\\tSilevo,\\tLLC.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 110,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 49\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"and\\tSilevo,\\tLLC.\\n10-Q(1)001-3575810.16eJuly\\t30,\\t2015\\n10.51Sixth\\tAmendment\\tto\\tAmended\\tand\\tRestated\\nAgreement\\tFor\\tResearch\\t&\\tDevelopment\\tAlliance\\non\\tTriex\\tModule\\tTechnology,\\teffective\\tas\\tof\\nSeptember\\t1,\\t2015,\\tby\\tand\\tbetween\\tThe\\nResearch\\tFoundation\\tFor\\tThe\\tState\\tUniversity\\tof\\nNew\\tYork,\\ton\\tbehalf\\tof\\tthe\\tCollege\\tof\\tNanoscale\\nScience\\tand\\tEngineering\\tof\\tthe\\tState\\tUniversity\\tof\\nNew\\tYork,\\tand\\tSilevo,\\tLLC.\\n10-Q(1)001-3575810.16fOctober\\t30,\\t2015\\n108\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 110,\n        \"lines\": {\n          \"from\": 49,\n          \"to\": 60\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Exhibit\\nNumber\\nIncorporated\\tby\\tReference\\nFiled\\nHerewithExhibit\\tDescriptionFormFile\\tNo.ExhibitFiling\\tDate\\n10.52Seventh\\tAmendment\\tto\\tAmended\\tand\\tRestated\\nAgreement\\tFor\\tResearch\\t&\\tDevelopment\\tAlliance\\non\\tTriex\\tModule\\tTechnology,\\teffective\\tas\\tof\\nOctober\\t9,\\t2015,\\tby\\tand\\tbetween\\tThe\\tResearch\\nFoundation\\tFor\\tThe\\tState\\tUniversity\\tof\\tNew\\tYork,\\non\\tbehalf\\tof\\tthe\\tCollege\\tof\\tNanoscale\\tScience\\tand\\nEngineering\\tof\\tthe\\tState\\tUniversity\\tof\\tNew\\tYork,\\nand\\tSilevo,\\tLLC.\\n10-Q(1)001-3575810.16gOctober\\t30,\\t2015\\n10.53Eighth\\tAmendment\\tto\\tAmended\\tand\\tRestated\\nAgreement\\tFor\\tResearch\\t&\\tDevelopment\\tAlliance\\non\\tTriex\\tModule\\tTechnology,\\teffective\\tas\\tof\\nOctober\\t26,\\t2015,\\tby\\tand\\tbetween\\tThe\\tResearch\\nFoundation\\tFor\\tThe\\tState\\tUniversity\\tof\\tNew\\tYork,\\non\\tbehalf\\tof\\tthe\\tCollege\\tof\\tNanoscale\\tScience\\tand\\nEngineering\\tof\\tthe\\tState\\tUniversity\\tof\\tNew\\tYork,\\nand\\tSilevo,\\tLLC.\\n10-Q(1)001-3575810.16hOctober\\t30,\\t2015\\n10.54Ninth\\tAmendment\\tto\\tAmended\\tand\\tRestated\\nAgreement\\tFor\\tResearch\\t&\\tDevelopment\\tAlliance\\non\\tTriex\\tModule\\tTechnology,\\teffective\\tas\\tof\\nDecember\\t9,\\t2015,\\tby\\tand\\tbetween\\tThe\\tResearch\\nFoundation\\tFor\\tThe\\tState\\tUniversity\\tof\\tNew\\tYork,\\non\\tbehalf\\tof\\tthe\\tCollege\\tof\\tNanoscale\\tScience\\tand\\nEngineering\\tof\\tthe\\tState\\tUniversity\\tof\\tNew\\tYork,\\nand\\tSilevo,\\tLLC.\\n10-K(1)001-3575810.16iFebruary\\t10,\\t2016\\n10.55Tenth\\tAmendment\\tto\\tAmended\\tand\\tRestated\\nAgreement\\tFor\\tResearch\\t&\\tDevelopment\\tAlliance\\non\\tTriex\\tModule\\tTechnology,\\teffective\\tas\\tof\\tMarch\\n31,\\t2017,\\tby\\tand\\tbetween\\tThe\\tResearch\\nFoundation\\tFor\\tThe\\tState\\tUniversity\\tof\\tNew\\tYork,\\non\\tbehalf\\tof\\tthe\\tColleges\\tof\\tNanoscale\\tScience\\nand\\tEngineering\\tof\\tthe\\tState\\tUniversity\\tof\\tNew\\nYork,\\tand\\tSilevo,\\tLLC.\\n10-Q001-3475610.8May\\t10,\\t2017\\n10.56Eleventh\\tAmendment\\tto\\tAmended\\tand\\tRestated\\nAgreement\\tfor\\tResearch\\t&\\tDevelopment\\tAlliance\\non\\tTriex\\tModule\\tTechnology,\\teffective\\tas\\tof\\tJuly\\n22,\\t2020,\\tamong\\tthe\\tResearch\\tFoundation\\tfor\\tthe\\nState\\tUniversity\\tof\\tNew\\tYork,\\tSilevo,\\tLLC\\tand\\nTesla\\tEnergy\\tOperations,\\tInc.\\n10-Q001-3475610.6July\\t28,\\t2020\\n10.57Twelfth\\tAmendment\\tto\\tAmended\\tand\\tRestated\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 111,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 49\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"10.57Twelfth\\tAmendment\\tto\\tAmended\\tand\\tRestated\\nAgreement\\tfor\\tResearch\\t&\\tDevelopment\\tAlliance\\non\\tTriex\\tModule\\tTechnology,\\teffective\\tas\\tof\\tMay\\n1,\\t2021,\\tamong\\tthe\\tResearch\\tFoundation\\tfor\\tthe\\nState\\tUniversity\\tof\\tNew\\tYork,\\tSilevo,\\tLLC\\tand\\nTesla\\tEnergy\\tOperations,\\tInc.\\n10-Q001-3475610.1October\\t25,\\t2021\\n109\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 111,\n        \"lines\": {\n          \"from\": 49,\n          \"to\": 56\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Exhibit\\nNumber\\nIncorporated\\tby\\tReference\\nFiled\\nHerewithExhibit\\tDescriptionFormFile\\tNo.ExhibitFiling\\tDate\\n10.58††Grant\\tContract\\tfor\\tState-Owned\\tConstruction\\tLand\\nUse\\tRight,\\tdated\\tas\\tof\\tOctober\\t17,\\t2018,\\tby\\tand\\nbetween\\tShanghai\\tPlanning\\tand\\tLand\\tResource\\nAdministration\\tBureau,\\tas\\tgrantor,\\tand\\tTesla\\n(Shanghai)\\tCo.,\\tLtd.,\\tas\\tgrantee\\t(English\\ntranslation).\\n10-Q001-3475610.2July\\t29,\\t2019\\n10.59Credit\\tAgreement,\\tdated\\tas\\tof\\tJanuary\\t20,\\t2023,\\namong\\tTesla,\\tInc.,\\tthe\\tLenders\\tand\\tIssuing\\tBanks\\nfrom\\ttime\\tto\\ttime\\tparty\\tthereto,\\tCitibank,\\tN.A.,\\tas\\nAdministrative\\tAgent\\tand\\tDeutsche\\tBank\\nSecurities,\\tInc.,\\tas\\tSyndication\\tAgent\\n10-K001-3475610.59January\\t31,\\t2023\\n21.1List\\tof\\tSubsidiaries\\tof\\tthe\\tRegistrant————X\\n23.1Consent\\tof\\tPricewaterhouseCoopers\\tLLP,\\nIndependent\\tRegistered\\tPublic\\tAccounting\\tFirm\\n————X\\n31.1Rule\\t13a-14(a)\\t/\\t15(d)-14(a)\\tCertification\\tof\\nPrincipal\\tExecutive\\tOfficer\\n————X\\n31.2Rule\\t13a-14(a)\\t/\\t15(d)-14(a)\\tCertification\\tof\\nPrincipal\\tFinancial\\tOfficer\\n————X\\n32.1*Section\\t1350\\tCertifications————X\\n97Tesla,\\tInc.\\tClawback\\tPolicy————X\\n101.INSInline\\tXBRL\\tInstance\\tDocument————X\\n101.SCHInline\\tXBRL\\tTaxonomy\\tExtension\\tSchema\\nDocument\\n————X\\n101.CALInline\\tXBRL\\tTaxonomy\\tExtension\\tCalculation\\nLinkbase\\tDocument.\\n————X\\n101.DEFInline\\tXBRL\\tTaxonomy\\tExtension\\tDefinition\\nLinkbase\\tDocument\\n————X\\n101.LABInline\\tXBRL\\tTaxonomy\\tExtension\\tLabel\\tLinkbase\\nDocument\\n————X\\n101.PREInline\\tXBRL\\tTaxonomy\\tExtension\\tPresentation\\nLinkbase\\tDocument\\n————X\\n104Cover\\tPage\\tInteractive\\tData\\tFile\\t(formatted\\tas\\ninline\\tXBRL\\twith\\tapplicable\\ttaxonomy\\textension\\ninformation\\tcontained\\tin\\tExhibits\\t101)\\n*Furnished\\therewith\\n**Indicates\\ta\\tmanagement\\tcontract\\tor\\tcompensatory\\tplan\\tor\\tarrangement\\n†Confidential\\ttreatment\\thas\\tbeen\\trequested\\tfor\\tportions\\tof\\tthis\\texhibit\\n††Portions\\tof\\tthis\\texhibit\\thave\\tbeen\\tredacted\\tin\\tcompliance\\twith\\tRegulation\\tS-K\\tItem\\t601(b)(10).\\n110\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 112,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 54\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"(1)Indicates\\ta\\tfiling\\tof\\tSolarCity\\n(2)Indicates\\ta\\tfiling\\tof\\tMaxwell\\tTechnologies,\\tInc.\\nITEM\\t16.\\tSUMMARY\\nNone.\\n111\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 113,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 5\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"SIGNATURES\\nPursuant\\tto\\tthe\\trequirements\\tof\\tSection\\t13\\tor\\t15(d)\\tthe\\tSecurities\\tExchange\\tAct\\tof\\t1934,\\tthe\\tregistrant\\thas\\tduly\\tcaused\\tthis\\treport\\tto\\tbe\\tsigned\\ton\\nits\\tbehalf\\tby\\tthe\\tundersigned,\\tthereunto\\tduly\\tauthorized.\\nTesla,\\tInc.\\n\\t\\nDate:\\tJanuary\\t26,\\t2024/s/\\tElon\\tMusk\\nElon\\tMusk\\nChief\\tExecutive\\tOfficer\\n(Principal\\tExecutive\\tOfficer)\\nPursuant\\tto\\tthe\\trequirements\\tof\\tthe\\tSecurities\\tExchange\\tAct\\tof\\t1934,\\tthis\\treport\\thas\\tbeen\\tsigned\\tbelow\\tby\\tthe\\tfollowing\\tpersons\\ton\\tbehalf\\tof\\tthe\\nregistrant\\tand\\tin\\tthe\\tcapacities\\tand\\ton\\tthe\\tdates\\tindicated.\\nSignatureTitleDate\\n\\t\\t\\t\\n/s/\\tElon\\tMuskChief\\tExecutive\\tOfficer\\tand\\tDirector\\t(Principal\\tExecutive\\tOfficer)January\\t26,\\t2024\\nElon\\tMusk\\n\\t\\n/s/\\tVaibhav\\tTaneja\\nChief\\tFinancial\\tOfficer\\t(Principal\\tFinancial\\tOfficer\\tand\\tPrincipal\\nAccounting\\tOfficer\\t)January\\t26,\\t2024\\nVaibhav\\tTaneja\\t\\t\\n\\t\\t\\t\\n/s/\\tRobyn\\tDenholmDirectorJanuary\\t26,\\t2024\\nRobyn\\tDenholm\\t\\t\\n\\t\\t\\t\\n/s/\\tIra\\tEhrenpreisDirectorJanuary\\t26,\\t2024\\nIra\\tEhrenpreis\\t\\t\\n\\t\\t\\t\\n/s/\\tJoseph\\tGebbiaDirectorJanuary\\t26,\\t2024\\nJoseph\\tGebbia\\t\\t\\n\\t\\t\\t\\n/s/\\tJames\\tMurdochDirectorJanuary\\t26,\\t2024\\nJames\\tMurdoch\\n/s/\\tKimbal\\tMuskDirectorJanuary\\t26,\\t2024\\nKimbal\\tMusk\\n\\t\\t\\t\\n/s/\\tJB\\tStraubelDirectorJanuary\\t26,\\t2024\\nJB\\tStraubel\\t\\t\\n\\t\\t\\t\\n/s/\\tKathleen\\tWilson-ThompsonDirectorJanuary\\t26,\\t2024\\nKathleen\\tWilson-Thompson\\t\\t\\nExhibit\\t21.1\\nSUBSIDIARIES\\tOF\\tTESLA,\\tINC.\\n112\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 114,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 43\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Name\\tof\\tSubsidiary\\nJurisdiction\\tof\\nIncorporation\\tor\\tOrganization\\nAlabama\\tService\\tLLCDelaware\\nAll\\tEV\\tHoldings,\\tLLCDelaware\\nAllegheny\\tSolar\\t1,\\tLLCDelaware\\nAllegheny\\tSolar\\tManager\\t1,\\tLLCDelaware\\nAlset\\tTransport\\tGmbHGermany\\nAlset\\tWarehouse\\tGmbHGermany\\nAncon\\tHoldings\\tII,\\tLLCDelaware\\nAncon\\tHoldings\\tIII,\\tLLCDelaware\\nAncon\\tHoldings,\\tLLCDelaware\\nAncon\\tSolar\\tCorporationDelaware\\nAncon\\tSolar\\tI,\\tLLCDelaware\\nAncon\\tSolar\\tII\\tLessee\\tManager,\\tLLCDelaware\\nAncon\\tSolar\\tII\\tLessee,\\tLLCDelaware\\nAncon\\tSolar\\tII\\tLessor,\\tLLCDelaware\\nAncon\\tSolar\\tIII\\tLessee\\tManager,\\tLLCDelaware\\nAncon\\tSolar\\tIII\\tLessee,\\tLLCDelaware\\nAncon\\tSolar\\tIII\\tLessor,\\tLLCDelaware\\nAncon\\tSolar\\tManaging\\tMember\\tI,\\tLLCDelaware\\nArpad\\tSolar\\tBorrower,\\tLLCDelaware\\nArpad\\tSolar\\tI,\\tLLCDelaware\\nArpad\\tSolar\\tManager\\tI,\\tLLCDelaware\\nAU\\tSolar\\t1,\\tLLCDelaware\\nAU\\tSolar\\t2,\\tLLCDelaware\\nBanyan\\tSolarCity\\tManager\\t2010,\\tLLCDelaware\\nBanyan\\tSolarCity\\tOwner\\t2010,\\tLLCDelaware\\nBasking\\tSolar\\tI,\\tLLCDelaware\\nBasking\\tSolar\\tII,\\tLLCDelaware\\nBasking\\tSolar\\tManager\\tII,\\tLLCDelaware\\nBeatrix\\tSolar\\tI,\\tLLCDelaware\\nBernese\\tSolar\\tManager\\tI,\\tLLCDelaware\\nBlue\\tSkies\\tSolar\\tI,\\tLLCDelaware\\nBlue\\tSkies\\tSolar\\tII,\\tLLCDelaware\\nBT\\tConnolly\\tStorage,\\tLLCTexas\\nCaballero\\tSolar\\tManaging\\tMember\\tI,\\tLLCDelaware\\nCaballero\\tSolar\\tManaging\\tMember\\tII,\\tLLCDelaware\\nCaballero\\tSolar\\tManaging\\tMember\\tIII,\\tLLCDelaware\\nCardinal\\tBlue\\tSolar,\\tLLCDelaware\\nCastello\\tSolar\\tI,\\tLLCDelaware\\nCastello\\tSolar\\tII,\\tLLCDelaware\\nCastello\\tSolar\\tIII,\\tLLCDelaware\\nChaparral\\tSREC\\tBorrower,\\tLLCDelaware\\nChaparral\\tSREC\\tHoldings,\\tLLCDelaware\\nChompie\\tSolar\\tI,\\tLLCDelaware\\nChompie\\tSolar\\tII,\\tLLCDelaware\\nChompie\\tSolar\\tManager\\tI,\\tLLCDelaware\\nChompie\\tSolar\\tManager\\tII,\\tLLCDelaware\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 115,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 49\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Clydesdale\\tSC\\tSolar\\tI,\\tLLCDelaware\\nColorado\\tRiver\\tProject,\\tLLCDelaware\\nCommunity\\tSolar\\tPartners,\\tLLCDelaware\\nConnecticut\\tAuto\\tRepair\\tand\\tService\\tLLCDelaware\\nCompass\\tAutomation\\tIncorporatedIllinois\\nDom\\tSolar\\tGeneral\\tPartner\\tI,\\tLLCDelaware\\nDom\\tSolar\\tLessor\\tI,\\tLPCayman\\tIslands\\nDomino\\tSolar\\tLtd.Cayman\\tIslands\\nDom\\tSolar\\tLimited\\tPartner\\tI,\\tLLCDelaware\\nEl\\tRey\\tEV,\\tLLCDelaware\\nFalconer\\tSolar\\tManager\\tI,\\tLLCDelaware\\nFirehorn\\tSolar\\tI,\\tLLCCayman\\tIslands\\nFirehorn\\tSolar\\tManager\\tI,\\tLLCDelaware\\nFocalPoint\\tSolar\\tBorrower,\\tLLCDelaware\\nFocalPoint\\tSolar\\tI,\\tLLCDelaware\\nFocalPoint\\tSolar\\tManager\\tI,\\tLLCDelaware\\nFontane\\tSolar\\tI,\\tLLCDelaware\\nFotovoltaica\\tGI\\t4,\\tS.\\tde\\tR.L.\\tde\\tC.V.Mexico\\nFotovoltaica\\tGI\\t5,\\tS.\\tde\\tR.L.\\tde\\tC.V.Mexico\\nFP\\tSystem\\tOwner,\\tLLCDelaware\\nGiga\\tInsurance\\tTexas,\\tInc.Texas\\nGiga\\tTexas\\tEnergy,\\tLLCDelaware\\nGrohmann\\tEngineering\\tTrading\\t(Shanghai)\\tCo.\\tLtd.China\\nGrohmann\\tUSA,\\tInc.Delaware\\nGuilder\\tSolar,\\tLLCDelaware\\nHamilton\\tSolar,\\tLLCDelaware\\nHarborfields\\tLLCDelaware\\nHangzhou\\tSilevo\\tElectric\\tPower\\tCo.,\\tLtd.China\\nHarpoon\\tSolar\\tI,\\tLLCDelaware\\nHarpoon\\tSolar\\tManager\\tI,\\tLLCDelaware\\nHaymarket\\tHoldings,\\tLLCDelaware\\nHaymarket\\tManager\\t1,\\tLLCDelaware\\nHaymarket\\tSolar\\t1,\\tLLCDelaware\\nHibar\\tSystems\\tEurope\\tGmbHGermany\\nHive\\tBattery\\tInc.Delaware\\nIkehu\\tManager\\tI,\\tLLCDelaware\\nIL\\tBuono\\tSolar\\tI,\\tLLCDelaware\\nIliosson,\\tS.A.\\tde\\tC.V.Mexico\\nIndustrial\\tMaintenance\\tTechnologies,\\tInc.California\\nKansas\\tRepair\\tLLCDelaware\\nKlamath\\tFalls\\tSolar\\t1,\\tLLCDelaware\\nKnight\\tSolar\\tManaging\\tMember\\tI,\\tLLCDelaware\\nKnight\\tSolar\\tManaging\\tMember\\tII,\\tLLCDelaware\\nKnight\\tSolar\\tManaging\\tMember\\tIII,\\tLLCDelaware\\nLandlord\\t2008-A,\\tLLCDelaware\\nLincoln\\tAuto\\tRepair\\tand\\tService\\tLLCDelaware\\nLouis\\tSolar\\tII,\\tLLCDelaware\\nLouis\\tSolar\\tIII,\\tLLCDelaware\\nLouis\\tSolar\\tManager\\tII,\\tLLCDelaware\\nLouis\\tSolar\\tManager\\tIII,\\tLLCDelaware\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 116,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 50\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Louis\\tSolar\\tMaster\\tTenant\\tI,\\tLLCDelaware\\nLouis\\tSolar\\tMT\\tManager\\tI,\\tLLCDelaware\\nLouis\\tSolar\\tOwner\\tI,\\tLLCDelaware\\nLouis\\tSolar\\tOwner\\tManager\\tI,\\tLLCDelaware\\nMaster\\tTenant\\t2008-A,\\tLLCDelaware\\nMatterhorn\\tSolar\\tI,\\tLLCDelaware\\nMaxwell\\tTechnologies,\\tInc.Delaware\\nMegalodon\\tSolar,\\tLLCDelaware\\nMonte\\tRosa\\tSolar\\tI,\\tLLCDelaware\\nMound\\tSolar\\tManager\\tV,\\tLLCDelaware\\nMound\\tSolar\\tManager\\tVI,\\tLLCDelaware\\nMound\\tSolar\\tManager\\tX,\\tLLCDelaware\\nMound\\tSolar\\tManager\\tXI,\\tLLCDelaware\\nMound\\tSolar\\tManager\\tXII,\\tLLCDelaware\\nMound\\tSolar\\tMaster\\tTenant\\tIX,\\tLLCDelaware\\nMound\\tSolar\\tMaster\\tTenant\\tV,\\tLLCCalifornia\\nMound\\tSolar\\tMaster\\tTenant\\tVI,\\tLLCDelaware\\nMound\\tSolar\\tMaster\\tTenant\\tVII,\\tLLCDelaware\\nMound\\tSolar\\tMaster\\tTenant\\tVIII,\\tLLCDelaware\\nMound\\tSolar\\tMT\\tManager\\tIX,\\tLLCDelaware\\nMound\\tSolar\\tMT\\tManager\\tVII,\\tLLCDelaware\\nMound\\tSolar\\tMT\\tManager\\tVIII,\\tLLCDelaware\\nMound\\tSolar\\tOwner\\tIX,\\tLLCDelaware\\nMound\\tSolar\\tOwner\\tManager\\tIX,\\tLLCDelaware\\nMound\\tSolar\\tOwner\\tManager\\tVII,\\tLLCDelaware\\nMound\\tSolar\\tOwner\\tManager\\tVIII,\\tLLCDelaware\\nMound\\tSolar\\tOwner\\tV,\\tLLCCalifornia\\nMound\\tSolar\\tOwner\\tVI,\\tLLCDelaware\\nMound\\tSolar\\tOwner\\tVII,\\tLLCDelaware\\nMound\\tSolar\\tOwner\\tVIII,\\tLLCDelaware\\nMound\\tSolar\\tPartnership\\tX,\\tLLCDelaware\\nMound\\tSolar\\tPartnership\\tXI,\\tLLCDelaware\\nMound\\tSolar\\tPartnership\\tXII,\\tLLCDelaware\\nMS\\tSolarCity\\t2008,\\tLLCDelaware\\nMS\\tSolarCity\\tCommercial\\t2008,\\tLLCDelaware\\nMS\\tSolarCity\\tResidential\\t2008,\\tLLCDelaware\\nNew\\tMexico\\tSales\\tand\\tVehicle\\tService\\tLLCDelaware\\nNBA\\tSolarCity\\tAFB,\\tLLCCalifornia\\nNBA\\tSolarCity\\tCommercial\\tI,\\tLLCCalifornia\\nNBA\\tSolarCity\\tSolar\\tPhoenix,\\tLLCCalifornia\\nNorthern\\tNevada\\tResearch\\tCo.,\\tLLCNevada\\nOranje\\tSolar\\tI,\\tLLCDelaware\\nOranje\\tSolar\\tManager\\tI,\\tLLCDelaware\\nPalmetto\\tAuto\\tRepair\\tand\\tService\\tLLCDelaware\\nParamount\\tEnergy\\tFund\\tI\\tLessee,\\tLLCDelaware\\nParamount\\tEnergy\\tFund\\tI\\tLessor,\\tLLCDelaware\\nPEF\\tI\\tMM,\\tLLCDelaware\\nPerbix\\tMachine\\tCompany,\\tInc.Minnesota\\nPresidio\\tSolar\\tI,\\tLLCDelaware\\nPresidio\\tSolar\\tII,\\tLLCDelaware\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 117,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 50\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Presidio\\tSolar\\tIII,\\tLLCDelaware\\nPukana\\tLa\\tSolar\\tI,\\tLLCDelaware\\nR9\\tSolar\\t1,\\tLLCDelaware\\nRoadster\\tAutomobile\\tSales\\tand\\tService\\t(Beijing)\\tCo.,\\tLtd.China\\nRoadster\\tFinland\\tOyFinland\\nSA\\tVPP\\tHolding\\tTrustAustralia\\nSA\\tVPP\\tProject\\tTrustAustralia\\nSequoia\\tPacific\\tHoldings,\\tLLCDelaware\\nSequoia\\tPacific\\tManager\\tI,\\tLLCDelaware\\nSequoia\\tPacific\\tSolar\\tI,\\tLLCDelaware\\nSequoia\\tSolarCity\\tOwner\\tI,\\tLLCDelaware\\nSierra\\tSolar\\tPower\\t(Hong\\tKong)\\tLimitedHong\\tKong\\nSiiLion,\\tInc.Delaware\\nSilevo,\\tLLCDelaware\\nSolar\\tAquarium\\tHoldings,\\tLLCDelaware\\nSolar\\tEnergy\\tof\\tAmerica\\t1,\\tLLCDelaware\\nSolar\\tEnergy\\tof\\tAmerica\\tManager\\t1,\\tLLCDelaware\\nSolar\\tExplorer,\\tLLCDelaware\\nSolar\\tGezellig\\tHoldings,\\tLLCDelaware\\nSolar\\tHouse\\tI,\\tLLCDelaware\\nSolar\\tHouse\\tII,\\tLLCDelaware\\nSolar\\tHouse\\tIII,\\tLLCDelaware\\nSolar\\tHouse\\tIV,\\tLLCDelaware\\nSolar\\tIntegrated\\tFund\\tI,\\tLLCDelaware\\nSolar\\tIntegrated\\tFund\\tII,\\tLLCDelaware\\nSolar\\tIntegrated\\tFund\\tIII,\\tLLCDelaware\\nSolar\\tIntegrated\\tFund\\tIV-A,\\tLLCDelaware\\nSolar\\tIntegrated\\tFund\\tV,\\tLLCDelaware\\nSolar\\tIntegrated\\tFund\\tVI,\\tLLCDelaware\\nSolar\\tIntegrated\\tManager\\tI,\\tLLCDelaware\\nSolar\\tIntegrated\\tManager\\tII,\\tLLCDelaware\\nSolar\\tIntegrated\\tManager\\tIII,\\tLLCDelaware\\nSolar\\tIntegrated\\tManager\\tIV-A,\\tLLCDelaware\\nSolar\\tIntegrated\\tManager\\tV,\\tLLCDelaware\\nSolar\\tIntegrated\\tManager\\tVI,\\tLLCDelaware\\nSolar\\tServices\\tCompany,\\tLLCDelaware\\nSolar\\tUlysses\\tManager\\tI,\\tLLCDelaware\\nSolar\\tUlysses\\tManager\\tII,\\tLLCDelaware\\nSolar\\tVoyager,\\tLLCDelaware\\nSolar\\tWarehouse\\tManager\\tI,\\tLLCDelaware\\nSolar\\tWarehouse\\tManager\\tII,\\tLLCDelaware\\nSolar\\tWarehouse\\tManager\\tIII,\\tLLCDelaware\\nSolar\\tWarehouse\\tManager\\tIV,\\tLLCDelaware\\nSolarCity\\tAlpine\\tHoldings,\\tLLCDelaware\\nSolarCity\\tAmphitheatre\\tHoldings,\\tLLCDelaware\\nSolarCity\\tArbor\\tHoldings,\\tLLCDelaware\\nSolarCity\\tArches\\tHoldings,\\tLLCDelaware\\nSolarCity\\tAU\\tHoldings,\\tLLCDelaware\\nSolarCity\\tCruyff\\tHoldings,\\tLLCDelaware\\nSolarCity\\tElectrical,\\tLLCDelaware\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 118,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 50\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"SolarCity\\tElectrical\\tNew\\tYork\\tCorporationDelaware\\nSolarCity\\tFinance\\tCompany,\\tLLCDelaware\\nSolarCity\\tFinance\\tHoldings,\\tLLCDelaware\\nSolarCity\\tFoxborough\\tHoldings,\\tLLCDelaware\\nSolarCity\\tFTE\\tSeries\\t1,\\tLLCDelaware\\nSolarCity\\tFTE\\tSeries\\t2,\\tLLCDelaware\\nSolarCity\\tFund\\tHoldings,\\tLLCDelaware\\nSolarCity\\tGrand\\tCanyon\\tHoldings,\\tLLCDelaware\\nSolarCity\\tHoldings\\t2008,\\tLLCDelaware\\nSolarCity\\tInternational,\\tInc.Delaware\\nSolarCity\\tLeviathan\\tHoldings,\\tLLCDelaware\\nSolarCity\\tLMC\\tSeries\\tI,\\tLLCDelaware\\nSolarCity\\tLMC\\tSeries\\tII,\\tLLCDelaware\\nSolarCity\\tLMC\\tSeries\\tIII,\\tLLCDelaware\\nSolarCity\\tLMC\\tSeries\\tIV,\\tLLCDelaware\\nSolarCity\\tLMC\\tSeries\\tV,\\tLLCDelaware\\nSolarCity\\tMid-Atlantic\\tHoldings,\\tLLCDelaware\\nSolarCity\\tNitro\\tHoldings,\\tLLCDelaware\\nSolarCity\\tOrange\\tHoldings,\\tLLCDelaware\\nSolarCity\\tSeries\\tHoldings\\tI,\\tLLCDelaware\\nSolarCity\\tSeries\\tHoldings\\tII,\\tLLCDelaware\\nSolarCity\\tSeries\\tHoldings\\tIV,\\tLLCDelaware\\nSolarCity\\tSteep\\tHoldings,\\tLLCDelaware\\nSolarCity\\tUlu\\tHoldings,\\tLLCDelaware\\nSolarCity\\tVillage\\tHoldings,\\tLLCDelaware\\nSolarRock,\\tLLCDelaware\\nSolarStrong,\\tLLCDelaware\\nSparrowhawk\\tSolar\\tI,\\tLLCDelaware\\nSREC\\tHoldings,\\tLLCDelaware\\nTALT\\tHoldings,\\tLLCDelaware\\nTALT\\tTBM\\tHoldings,\\tLLCDelaware\\nTBM\\tPartnership\\tII,\\tLLCDelaware\\nTEO\\tEngineering,\\tInc.California\\nTES\\t2017-1,\\tLLCDelaware\\nTES\\t2017-2,\\tLLCDelaware\\nTES\\tHoldings\\t2017-1,\\tLLCDelaware\\nTesla\\t2014\\tWarehouse\\tSPV\\tLLCDelaware\\nTesla\\tAuto\\tLease\\tTrust\\t2021-ADelaware\\nTesla\\tAuto\\tLease\\tTrust\\t2021-BDelaware\\nTesla\\tAuto\\tLease\\tTrust\\t2022-ADelaware\\nTesla\\tAuto\\tLease\\tTrust\\t2023-ADelaware\\nTesla\\tAuto\\tLease\\tTrust\\t2023-BDelaware\\nTesla\\tElectric\\tVehicle\\tTrust\\t2023-1Delaware\\nTesla\\tAutobidder\\tInternational\\tB.V.Netherlands\\nTesla\\tAutomation\\tGmbHGermany\\nTesla\\tAutomobile\\tInformation\\tService\\t(Dalian)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tManagement\\tand\\tService\\t(Haikou)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Beijing)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Changchun)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Changsha)\\tCo.,\\tLtd.China\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 119,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 50\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Tesla\\tAutomobile\\tSales\\tand\\tService\\t(Chengdu)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Chongqing)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Dalian)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Fuzhou)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Guangzhou)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Guiyang)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Haerbin)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Hangzhou)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Hefei)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Hohhot)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Jinan)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Kunming)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Lanzhou)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Nanchang)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Nanjing)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Nanning)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Ningbo)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Qingdao)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Shanghai)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Shenyang)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Shijiazhuang)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Suzhou)\\tCo.\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Taiyuan)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Tianjin)\\tCo.\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Urumqi)\\tCo.\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Wenzhou)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Wuhan)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Wuxi)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Xi'an)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Xiamen)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Xining)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Yinchuan)\\tCo.,\\tLtd.China\\nTesla\\tAutomobile\\tSales\\tand\\tService\\t(Zhengzhou)\\tCo.\\tLtd.China\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 120,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 33\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Tesla\\tAutomobiles\\tSales\\tand\\tService\\tMexico,\\tS.\\tde\\tR.L.\\tde\\tC.V.Mexico\\nTesla\\t(Beijing)\\tNew\\tEnergy\\tR&D\\tCo.,\\tLtd.China\\nTesla\\tBelgium\\tBVBelgium\\nTesla\\tCanada\\tFinance\\tULCCanada\\nTesla\\tCanada\\tGP\\tInc.Canada\\nTesla\\tCanada\\tLPCanada\\nTesla\\tCharging,\\tLLCDelaware\\nTesla\\tChile\\tSpAChile\\nTesla\\tConstruction\\t(Shanghai)\\tCo.,\\tLtd.China\\nTesla\\tCzech\\tRepublic\\ts.r.o.Czech\\tRepublic\\nTesla\\tEnergia\\tMacau\\tLimitadaMacau\\nTesla\\tEngineering\\tGermany\\tGmbHGermany\\nTesla\\tEnergy\\td.o.o.Slovenia\\nTesla\\tEnergy\\tManagement\\tLLCDelaware\\nTesla\\tEnergy\\tOperations,\\tInc.Delaware\\nTesla\\tEnergy\\tVentures\\tAustralia\\tPty\\tLtdAustralia\\nTesla\\tEnergy\\tVentures\\tLimitedUnited\\tKingdom\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 120,\n        \"lines\": {\n          \"from\": 34,\n          \"to\": 50\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Tesla\\tEnergy\\tVentures\\tHoldings\\tB.V.Netherlands\\nTesla\\tFinance\\tLLCDelaware\\nTesla\\tFinancial\\tLeasing\\t(China)\\tCo.,\\tLtd.China\\nTesla\\tFinancial\\tServices\\tGmbHGermany\\nTesla\\tFinancial\\tServices\\tHoldings\\tB.V.Netherlands\\nTesla\\tFinancial\\tServices\\tLimitedUnited\\tKingdom\\nTesla\\tFrance\\tS.à\\tr.l.France\\nTesla\\tGermany\\tGmbHGermany\\nTesla\\tGeneral\\tInsurance,\\tInc.Arizona\\nTesla\\tGreece\\tSingle\\tMember\\tP.C.Greece\\nTesla\\tHrvatska\\td.o.o.Croatia\\nTesla\\tHungary\\tKft.Hungary\\nTesla\\tIndia\\tMotors\\tand\\tEnergy\\tPrivate\\tLimitedIndia\\nTesla\\tInsurance\\tBrokers\\tCo.,\\tLtd.China\\nTesla\\tInsurance\\tHoldings,\\tLLCDelaware\\nTesla\\tInsurance,\\tInc.Delaware\\nTesla\\tInsurance\\tLtd.Malta\\nTesla\\tInsurance\\tCompanyCalifornia\\nTesla\\tInsurance\\tServices,\\tInc.California\\nTesla\\tInsurance\\tServices\\tof\\tTexas,\\tInc.Texas\\nTesla\\tInternational\\tB.V.Netherlands\\nTesla\\tInvestments\\tLLCDelaware\\nTesla\\tItaly\\tS.r.l.Italy\\nTesla\\tJordan\\tCar\\tTrading\\tLLCJordan\\nTesla\\tKorea\\tLimitedRepublic\\tof\\tKorea\\nTesla\\tLease\\tTrustDelaware\\nTesla\\tLLCDelaware\\nTesla\\tManufacturing\\tBrandenburg\\tSEGermany\\nTesla\\tManufacturing\\tMexico,\\tS.\\tde\\tR.L.\\tde\\tC.V.Mexico\\nTesla\\tManufacturing\\tMexico\\tHolding,\\tS.\\tde\\tR.L.\\tde\\tC.V.Mexico\\nTesla\\tMichigan,\\tInc.Michigan\\nTesla\\tMississippi\\tLLCDelaware\\nTesla\\tMotors\\tAustralia,\\tPty\\tLtdAustralia\\nTesla\\tMotors\\tAustria\\tGmbHAustria\\nTesla\\tMotors\\t(Beijing)\\tCo.,\\tLtd.China\\nTesla\\tMotors\\tCanada\\tULCCanada\\nTesla\\tMotors\\tColombia\\tS.A.SColombia\\nTesla\\tMotors\\tHolding\\tB.V.Netherlands\\nTesla\\tMotors\\tDenmark\\tApSDenmark\\nTesla\\tMotors\\tFL,\\tInc.Florida\\nTesla\\tMotors\\tHK\\tLimitedHong\\tKong\\nTesla\\tMotors\\tIceland\\tehf.Iceland\\nTesla\\tMotors\\tIreland\\tLimitedIreland\\nTesla\\tMotors\\tIsrael\\tLtd.Israel\\nTesla\\tMotors\\tJapan\\tGKJapan\\nTesla\\tMotors\\tLimitedUnited\\tKingdom\\nTesla\\tMotors\\tLuxembourg\\tS.à\\tr.l.Luxembourg\\nTesla\\tMotors\\tMA,\\tInc.Massachusetts\\nTesla\\tMotors\\tNetherlands\\tB.V.Netherlands\\nTesla\\tMotors\\tNew\\tYork\\tLLCNew\\tYork\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 121,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 50\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Tesla\\tMotors\\tNL\\tLLCDelaware\\nTesla\\tMotors\\tNV,\\tInc.Nevada\\nTesla\\tMotors\\tPA,\\tInc.Pennsylvania\\nTesla\\tMotors\\tRomania\\tS.R.L.Romania\\nTesla\\tMotors\\tSales\\tand\\tService\\tLLCTurkey\\nTesla\\tMotors\\tSingapore\\tHoldings\\tPte.\\tLtd.Singapore\\nTesla\\tMotors\\tSingapore\\tPrivate\\tLimitedSingapore\\nTesla\\tMotors\\tStichtingNetherlands\\nTesla\\tMotors\\tTaiwan\\tLimitedTaiwan\\nTesla\\tMotors\\tTN,\\tInc.Tennessee\\nTesla\\tMotors\\tTX,\\tInc.Texas\\nTesla\\tMotors\\tUT,\\tInc.Utah\\nTesla\\tNambe\\tLLCDelaware\\nTesla\\tNew\\tZealand\\tULCNew\\tZealand\\nTesla\\tNorway\\tASNorway\\nTesla\\tPoland\\tsp.\\tz\\to.o.Poland\\nTesla\\tProperty\\t&Casualty,\\tInc.California\\nTesla\\tPortugal,\\tSociedade\\tUnipessoal\\tLDAPortugal\\nTesla\\tPuerto\\tRico\\tLLCPuerto\\tRico\\nTesla\\tQatar\\tLLCQatar\\nTesla\\tSales,\\tInc.Delaware\\nTesla\\tSdn.\\tBhd.Malaysia\\nTesla\\tShanghai\\tCo.,\\tLtdChina\\nTesla\\t(Shanghai)\\tNew\\tEnergy\\tCo.,\\tLTD.China\\nTesla\\tSpain,\\tS.L.\\tUnipersonalSpain\\nTesla\\tSwitzerland\\tGmbHSwitzerland\\nTesla\\t(Thailand)\\tLtd.Thailand\\nTesla\\tTH1\\tLLCDelaware\\nTesla\\tTH2\\tLLCDelaware\\nTelsa\\tToronto\\tAutomation\\tULCCanada\\nTesla\\tToronto\\tInternational\\tHoldings\\tULCCanada\\nTesla\\tTransport\\tB.V.Netherlands\\nThe\\tBig\\tGreen\\tSolar\\tI,\\tLLCDelaware\\nThe\\tBig\\tGreen\\tSolar\\tManager\\tI,\\tLLCDelaware\\nThree\\tRivers\\tSolar\\t1,\\tLLCDelaware\\nThree\\tRivers\\tSolar\\t2,\\tLLCDelaware\\nThree\\tRivers\\tSolar\\t3,\\tLLCDelaware\\nThree\\tRivers\\tSolar\\tManager\\t1,\\tLLCDelaware\\nThree\\tRivers\\tSolar\\tManager\\t2,\\tLLCDelaware\\nThree\\tRivers\\tSolar\\tManager\\t3,\\tLLCDelaware\\nTM\\tInternational\\tC.V.Netherlands\\nTM\\tSweden\\tABSweden\\nUSB\\tSolarCity\\tManager\\tIV,\\tLLCDelaware\\nUSB\\tSolarCity\\tMaster\\tTenant\\tIV,\\tLLCCalifornia\\nUSB\\tSolarCity\\tOwner\\tIV,\\tLLCCalifornia\\nVisigoth\\tSolar\\t1,\\tLLCDelaware\\nVisigoth\\tSolar\\tHoldings,\\tLLCDelaware\\nVisigoth\\tSolar\\tManaging\\tMember\\t1,\\tLLCDelaware\\nVPP\\tProject\\t1\\t(SA)\\tPty\\tLtd.Australia\\nWeisshorn\\tSolar\\tI,\\tLLCCayman\\tIslands\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 122,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 50\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Weisshorn\\tSolar\\tManager\\tI,\\tLLCDelaware\\nZep\\tSolar\\tLLCCalifornia\\nExhibit\\t23.1\\nCONSENT\\tOF\\tINDEPENDENT\\tREGISTERED\\tPUBLIC\\tACCOUNTING\\tFIRM\\nWe\\thereby\\tconsent\\tto\\tthe\\tincorporation\\tby\\treference\\tin\\tthe\\tRegistration\\tStatements\\ton\\tForm\\tS-8\\t(Nos.\\t333-232079,\\t333-223169,\\t333-216376,\\t333-\\n209696,\\t333-198002,\\t333-187113,\\t333-183033,\\tand\\t333-167874)\\tof\\tTesla,\\tInc.\\tof\\tour\\treport\\tdated\\tJanuary\\t26,\\t2024\\trelating\\tto\\tthe\\tfinancial\\tstatements\\nand\\tthe\\teffectiveness\\tof\\tinternal\\tcontrol\\tover\\tfinancial\\treporting,\\twhich\\tappears\\tin\\tthis\\tForm\\t10-K.\\n/s/\\tPricewaterhouseCoopers\\tLLP\\nSan\\tJose,\\tCalifornia\\nJanuary\\t26,\\t2024\\nExhibit\\t31.1\\nCERTIFICATIONS\\nI,\\tElon\\tMusk,\\tcertify\\tthat:\\n1.I\\thave\\treviewed\\tthis\\tAnnual\\tReport\\ton\\tForm\\t10-K\\tof\\tTesla,\\tInc.;\\n2.Based\\ton\\tmy\\tknowledge,\\tthis\\treport\\tdoes\\tnot\\tcontain\\tany\\tuntrue\\tstatement\\tof\\ta\\tmaterial\\tfact\\tor\\tomit\\tto\\tstate\\ta\\tmaterial\\tfact\\tnecessary\\tto\\tmake\\tthe\\nstatements\\tmade,\\tin\\tlight\\tof\\tthe\\tcircumstances\\tunder\\twhich\\tsuch\\tstatements\\twere\\tmade,\\tnot\\tmisleading\\twith\\trespect\\tto\\tthe\\tperiod\\tcovered\\tby\\tthis\\nreport;\\n3.Based\\ton\\tmy\\tknowledge,\\tthe\\tfinancial\\tstatements,\\tand\\tother\\tfinancial\\tinformation\\tincluded\\tin\\tthis\\treport,\\tfairly\\tpresent\\tin\\tall\\tmaterial\\trespects\\tthe\\nfinancial\\tcondition,\\tresults\\tof\\toperations\\tand\\tcash\\tflows\\tof\\tthe\\tregistrant\\tas\\tof,\\tand\\tfor,\\tthe\\tperiods\\tpresented\\tin\\tthis\\treport;\\n4.The\\tregistrant’s\\tother\\tcertifying\\tofficer\\tand\\tI\\tare\\tresponsible\\tfor\\testablishing\\tand\\tmaintaining\\tdisclosure\\tcontrols\\tand\\tprocedures\\t(as\\tdefined\\tin\\nExchange\\tAct\\tRules\\t13a-15(e)\\tand\\t15d-15(e))\\tand\\tinternal\\tcontrol\\tover\\tfinancial\\treporting\\t(as\\tdefined\\tin\\tExchange\\tAct\\tRules\\t13a-15(f)\\tand\\t15d-\\n15(f))\\tfor\\tthe\\tregistrant\\tand\\thave:\\n(a)Designed\\tsuch\\tdisclosure\\tcontrols\\tand\\tprocedures,\\tor\\tcaused\\tsuch\\tdisclosure\\tcontrols\\tand\\tprocedures\\tto\\tbe\\tdesigned\\tunder\\tour\\nsupervision,\\tto\\tensure\\tthat\\tmaterial\\tinformation\\trelating\\tto\\tthe\\tregistrant,\\tincluding\\tits\\tconsolidated\\tsubsidiaries,\\tis\\tmade\\tknown\\tto\\tus\\nby\\tothers\\twithin\\tthose\\tentities,\\tparticularly\\tduring\\tthe\\tperiod\\tin\\twhich\\tthis\\treport\\tis\\tbeing\\tprepared;\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 123,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 25\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"(b)Designed\\tsuch\\tinternal\\tcontrol\\tover\\tfinancial\\treporting,\\tor\\tcaused\\tsuch\\tinternal\\tcontrol\\tover\\tfinancial\\treporting\\tto\\tbe\\tdesigned\\tunder\\nour\\tsupervision,\\tto\\tprovide\\treasonable\\tassurance\\tregarding\\tthe\\treliability\\tof\\tfinancial\\treporting\\tand\\tthe\\tpreparation\\tof\\tfinancial\\nstatements\\tfor\\texternal\\tpurposes\\tin\\taccordance\\twith\\tgenerally\\taccepted\\taccounting\\tprinciples;\\n(c)Evaluated\\tthe\\teffectiveness\\tof\\tthe\\tregistrant’s\\tdisclosure\\tcontrols\\tand\\tprocedures\\tand\\tpresented\\tin\\tthis\\treport\\tour\\tconclusions\\tabout\\nthe\\teffectiveness\\tof\\tthe\\tdisclosure\\tcontrols\\tand\\tprocedures,\\tas\\tof\\tthe\\tend\\tof\\tthe\\tperiod\\tcovered\\tby\\tthis\\treport\\tbased\\ton\\tsuch\\tevaluation;\\nand\\n(d)Disclosed\\tin\\tthis\\treport\\tany\\tchange\\tin\\tthe\\tregistrant’s\\tinternal\\tcontrol\\tover\\tfinancial\\treporting\\tthat\\toccurred\\tduring\\tthe\\tregistrant’s\\nmost\\trecent\\tfiscal\\tquarter\\t(the\\tregistrant’s\\tfourth\\tfiscal\\tquarter\\tin\\tthe\\tcase\\tof\\tan\\tannual\\treport)\\tthat\\thas\\tmaterially\\taffected,\\tor\\tis\\nreasonably\\tlikely\\tto\\tmaterially\\taffect,\\tthe\\tregistrant’s\\tinternal\\tcontrol\\tover\\tfinancial\\treporting;\\tand\\n5.The\\tregistrant’s\\tother\\tcertifying\\tofficer\\tand\\tI\\thave\\tdisclosed,\\tbased\\ton\\tour\\tmost\\trecent\\tevaluation\\tof\\tinternal\\tcontrol\\tover\\tfinancial\\treporting,\\tto\\tthe\\nregistrant’s\\tauditors\\tand\\tthe\\taudit\\tcommittee\\tof\\tthe\\tregistrant’s\\tBoard\\tof\\tDirectors\\t(or\\tpersons\\tperforming\\tthe\\tequivalent\\tfunctions):\\n(a)All\\tsignificant\\tdeficiencies\\tand\\tmaterial\\tweaknesses\\tin\\tthe\\tdesign\\tor\\toperation\\tof\\tinternal\\tcontrol\\tover\\tfinancial\\treporting\\twhich\\tare\\nreasonably\\tlikely\\tto\\tadversely\\taffect\\tthe\\tregistrant’s\\tability\\tto\\trecord,\\tprocess,\\tsummarize\\tand\\treport\\tfinancial\\tinformation;\\tand\\n(b)Any\\tfraud,\\twhether\\tor\\tnot\\tmaterial,\\tthat\\tinvolves\\tmanagement\\tor\\tother\\temployees\\twho\\thave\\ta\\tsignificant\\trole\\tin\\tthe\\tregistrant’s\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 123,\n        \"lines\": {\n          \"from\": 26,\n          \"to\": 39\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"internal\\tcontrol\\tover\\tfinancial\\treporting.\\nDate:\\tJanuary\\t26,\\t2024/s/\\tElon\\tMusk\\n\\t\\nElon\\tMusk\\n\\tChief\\tExecutive\\tOfficer\\n\\t(Principal\\tExecutive\\tOfficer)\\nExhibit\\t31.2\\nCERTIFICATIONS\\nI,\\tVaibhav\\tTaneja,\\tcertify\\tthat:\\n1.I\\thave\\treviewed\\tthis\\tAnnual\\tReport\\ton\\tForm\\t10-K\\tof\\tTesla,\\tInc.;\\n2.Based\\ton\\tmy\\tknowledge,\\tthis\\treport\\tdoes\\tnot\\tcontain\\tany\\tuntrue\\tstatement\\tof\\ta\\tmaterial\\tfact\\tor\\tomit\\tto\\tstate\\ta\\tmaterial\\tfact\\tnecessary\\tto\\tmake\\tthe\\nstatements\\tmade,\\tin\\tlight\\tof\\tthe\\tcircumstances\\tunder\\twhich\\tsuch\\tstatements\\twere\\tmade,\\tnot\\tmisleading\\twith\\trespect\\tto\\tthe\\tperiod\\tcovered\\tby\\tthis\\nreport;\\n3.Based\\ton\\tmy\\tknowledge,\\tthe\\tfinancial\\tstatements,\\tand\\tother\\tfinancial\\tinformation\\tincluded\\tin\\tthis\\treport,\\tfairly\\tpresent\\tin\\tall\\tmaterial\\trespects\\tthe\\nfinancial\\tcondition,\\tresults\\tof\\toperations\\tand\\tcash\\tflows\\tof\\tthe\\tregistrant\\tas\\tof,\\tand\\tfor,\\tthe\\tperiods\\tpresented\\tin\\tthis\\treport;\\n4.The\\tregistrant’s\\tother\\tcertifying\\tofficer\\tand\\tI\\tare\\tresponsible\\tfor\\testablishing\\tand\\tmaintaining\\tdisclosure\\tcontrols\\tand\\tprocedures\\t(as\\tdefined\\tin\\nExchange\\tAct\\tRules\\t13a-15(e)\\tand\\t15d-15(e))\\tand\\tinternal\\tcontrol\\tover\\tfinancial\\treporting\\t(as\\tdefined\\tin\\tExchange\\tAct\\tRules\\t13a-15(f)\\tand\\t15d-\\n15(f))\\tfor\\tthe\\tregistrant\\tand\\thave:\\n(a)Designed\\tsuch\\tdisclosure\\tcontrols\\tand\\tprocedures,\\tor\\tcaused\\tsuch\\tdisclosure\\tcontrols\\tand\\tprocedures\\tto\\tbe\\tdesigned\\tunder\\tour\\nsupervision,\\tto\\tensure\\tthat\\tmaterial\\tinformation\\trelating\\tto\\tthe\\tregistrant,\\tincluding\\tits\\tconsolidated\\tsubsidiaries,\\tis\\tmade\\tknown\\tto\\tus\\nby\\tothers\\twithin\\tthose\\tentities,\\tparticularly\\tduring\\tthe\\tperiod\\tin\\twhich\\tthis\\treport\\tis\\tbeing\\tprepared;\\n(b)Designed\\tsuch\\tinternal\\tcontrol\\tover\\tfinancial\\treporting,\\tor\\tcaused\\tsuch\\tinternal\\tcontrol\\tover\\tfinancial\\treporting\\tto\\tbe\\tdesigned\\tunder\\nour\\tsupervision,\\tto\\tprovide\\treasonable\\tassurance\\tregarding\\tthe\\treliability\\tof\\tfinancial\\treporting\\tand\\tthe\\tpreparation\\tof\\tfinancial\\nstatements\\tfor\\texternal\\tpurposes\\tin\\taccordance\\twith\\tgenerally\\taccepted\\taccounting\\tprinciples;\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 124,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 24\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"(c)Evaluated\\tthe\\teffectiveness\\tof\\tthe\\tregistrant’s\\tdisclosure\\tcontrols\\tand\\tprocedures\\tand\\tpresented\\tin\\tthis\\treport\\tour\\tconclusions\\tabout\\nthe\\teffectiveness\\tof\\tthe\\tdisclosure\\tcontrols\\tand\\tprocedures,\\tas\\tof\\tthe\\tend\\tof\\tthe\\tperiod\\tcovered\\tby\\tthis\\treport\\tbased\\ton\\tsuch\\tevaluation;\\nand\\n(d)Disclosed\\tin\\tthis\\treport\\tany\\tchange\\tin\\tthe\\tregistrant’s\\tinternal\\tcontrol\\tover\\tfinancial\\treporting\\tthat\\toccurred\\tduring\\tthe\\tregistrant’s\\nmost\\trecent\\tfiscal\\tquarter\\t(the\\tregistrant’s\\tfourth\\tfiscal\\tquarter\\tin\\tthe\\tcase\\tof\\tan\\tannual\\treport)\\tthat\\thas\\tmaterially\\taffected,\\tor\\tis\\nreasonably\\tlikely\\tto\\tmaterially\\taffect,\\tthe\\tregistrant’s\\tinternal\\tcontrol\\tover\\tfinancial\\treporting;\\tand\\n5.The\\tregistrant’s\\tother\\tcertifying\\tofficer\\tand\\tI\\thave\\tdisclosed,\\tbased\\ton\\tour\\tmost\\trecent\\tevaluation\\tof\\tinternal\\tcontrol\\tover\\tfinancial\\treporting,\\tto\\tthe\\nregistrant’s\\tauditors\\tand\\tthe\\taudit\\tcommittee\\tof\\tthe\\tregistrant’s\\tBoard\\tof\\tDirectors\\t(or\\tpersons\\tperforming\\tthe\\tequivalent\\tfunctions):\\n(a)All\\tsignificant\\tdeficiencies\\tand\\tmaterial\\tweaknesses\\tin\\tthe\\tdesign\\tor\\toperation\\tof\\tinternal\\tcontrol\\tover\\tfinancial\\treporting\\twhich\\tare\\nreasonably\\tlikely\\tto\\tadversely\\taffect\\tthe\\tregistrant’s\\tability\\tto\\trecord,\\tprocess,\\tsummarize\\tand\\treport\\tfinancial\\tinformation;\\tand\\n(b)Any\\tfraud,\\twhether\\tor\\tnot\\tmaterial,\\tthat\\tinvolves\\tmanagement\\tor\\tother\\temployees\\twho\\thave\\ta\\tsignificant\\trole\\tin\\tthe\\tregistrant’s\\ninternal\\tcontrol\\tover\\tfinancial\\treporting.\\nDate:\\tJanuary\\t26,\\t2024/s/\\tVaibhav\\tTaneja\\n\\t\\nVaibhav\\tTaneja\\n\\tChief\\tFinancial\\tOfficer\\n\\t(Principal\\tFinancial\\tOfficer\\tand\\t\\nPrincipal\\tAccounting\\tOfficer)\\nExhibit\\t32.1\\nSECTION\\t1350\\tCERTIFICATIONS\\nI,\\tElon\\tMusk,\\tcertify,\\tpursuant\\tto\\t18\\tU.S.C.\\tSection\\t1350,\\tthat,\\tto\\tmy\\tknowledge,\\tthe\\tAnnual\\tReport\\tof\\tTesla,\\tInc.\\ton\\tForm\\t10-K\\tfor\\tthe\\tannual\\tperiod\\tended\\nDecember\\t31,\\t2023,\\t(i)\\tfully\\tcomplies\\twith\\tthe\\trequirements\\tof\\tSection\\t13(a)\\tor\\t15(d)\\tof\\tthe\\tSecurities\\tExchange\\tAct\\tof\\t1934\\tand\\t(ii)\\tthat\\tthe\\tinformation\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 124,\n        \"lines\": {\n          \"from\": 25,\n          \"to\": 46\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"contained\\tin\\tsuch\\tForm\\t10-K\\tfairly\\tpresents,\\tin\\tall\\tmaterial\\trespects,\\tthe\\tfinancial\\tcondition\\tand\\tresults\\tof\\toperations\\tof\\tTesla,\\tInc.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 124,\n        \"lines\": {\n          \"from\": 47,\n          \"to\": 47\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Date:\\tJanuary\\t26,\\t2024/s/\\tElon\\tMusk\\n\\t\\nElon\\tMusk\\n\\tChief\\tExecutive\\tOfficer\\n\\t(Principal\\tExecutive\\tOfficer)\\nI,\\tVaibhav\\tTaneja,\\tcertify,\\tpursuant\\tto\\t18\\tU.S.C.\\tSection\\t1350,\\tthat,\\tto\\tmy\\tknowledge,\\tthe\\tAnnual\\tReport\\tof\\tTesla,\\tInc.\\ton\\tForm\\t10-K\\tfor\\tthe\\tannual\\tperiod\\nended\\tDecember\\t31,\\t2023,\\t(i)\\tfully\\tcomplies\\twith\\tthe\\trequirements\\tof\\tSection\\t13(a)\\tor\\t15(d)\\tof\\tthe\\tSecurities\\tExchange\\tAct\\tof\\t1934\\tand\\t(ii)\\tthat\\tthe\\ninformation\\tcontained\\tin\\tsuch\\tForm\\t10-K\\tfairly\\tpresents,\\tin\\tall\\tmaterial\\trespects,\\tthe\\tfinancial\\tcondition\\tand\\tresults\\tof\\toperations\\tof\\tTesla,\\tInc.\\nDate:\\tJanuary\\t26,\\t2024/s/\\tVaibhav\\tTaneja\\n\\t\\nVaibhav\\tTaneja\\n\\tChief\\tFinancial\\tOfficer\\n\\t(Principal\\tFinancial\\tOfficer\\tand\\n\\tPrincipal\\tAccounting\\tOfficer)\\nExhibit\\t97\\nTesla,\\tInc.\\nCLAWBACK\\tPOLICY\\nThe\\tCompensation\\tCommittee\\t(the\\t“Committee”)\\tof\\tthe\\tBoard\\tof\\tDirectors\\t(the\\t“Board”)\\tof\\tTesla,\\tInc.\\t(the\\t“Company”)\\nbelieves\\tthat\\tit\\tis\\tappropriate\\tfor\\tthe\\tCompany\\tto\\tadopt\\tthis\\tClawback\\tPolicy\\t(this\\t“Policy”)\\tto\\tbe\\tapplied\\tto\\tthe\\tcertain\\nexecutive\\tofficers\\tof\\tthe\\tCompany\\tand\\tadopts\\tthis\\tPolicy\\tto\\tbe\\teffective\\tas\\tof\\tthe\\tEffective\\tDate.\\n1.Definitions\\nFor\\tpurposes\\tof\\tthis\\tPolicy,\\tthe\\tfollowing\\tdefinitions\\tshall\\tapply:\\na)“Company\\tGroup”\\tmeans\\tthe\\tCompany\\tand\\teach\\tof\\tits\\tSubsidiaries,\\tas\\tapplicable.\\nb)“Covered\\tCompensation”\\tmeans\\tany\\tIncentive-Based\\tCompensation\\tReceived\\tby\\ta\\tperson\\twho\\tserved\\tas\\tan\\nExecutive\\tOfficer\\tat\\tany\\ttime\\tduring\\tthe\\tperformance\\tperiod\\tfor\\tsuch\\tIncentive-Based\\tCompensation\\tand\\tthat\\twas\\nReceived\\t(i)\\ton\\tor\\tafter\\tOctober\\t2,\\t2023\\tand\\t(ii)\\tafter\\tthe\\tperson\\tbecame\\tan\\tExecutive\\tOfficer.\\nc)“Effective\\tDate”\\tmeans\\tNovember\\t15,\\t2023.\\nd)“Erroneously\\tAwarded\\tCompensation”\\tmeans\\tthe\\tamount\\tof\\tCovered\\tCompensation\\tReceived\\tby\\ta\\tperson\\tduring\\nthe\\tfiscal\\tperiod\\twhen\\tthe\\tapplicable\\tFinancial\\tReporting\\tMeasure\\trelating\\tto\\tsuch\\tCovered\\tCompensation\\twas\\nattained\\tthat\\texceeds\\tthe\\tamount\\tof\\tCovered\\tCompensation\\tthat\\totherwise\\twould\\thave\\tbeen\\tReceived\\tby\\tsuch\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 125,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 30\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"person\\thad\\tsuch\\tamount\\tbeen\\tdetermined\\tbased\\ton\\tthe\\tapplicable\\tRestatement,\\tcomputed\\twithout\\tregard\\tto\\tany\\ntaxes\\tpaid\\t(i.e.,\\ton\\ta\\tpre-tax\\tbasis).\\tFor\\tCovered\\tCompensation\\tbased\\ton\\tstock\\tprice\\tor\\ttotal\\tshareholder\\treturn,\\nwhere\\tthe\\tamount\\tof\\tErroneously\\tAwarded\\tCompensation\\tis\\tnot\\tsubject\\tto\\tmathematical\\trecalculation\\tdirectly\\nfrom\\tthe\\tinformation\\tin\\ta\\tRestatement,\\tthe\\tCommittee\\twill\\tdetermine\\tthe\\tamount\\tof\\tsuch\\tCovered\\tCompensation\\nthat\\tconstitutes\\tErroneously\\tAwarded\\tCompensation,\\tif\\tany,\\tbased\\ton\\ta\\treasonable\\testimate\\tof\\tthe\\teffect\\tof\\tthe\\nRestatement\\ton\\tthe\\tstock\\tprice\\tor\\ttotal\\tshareholder\\treturn\\tupon\\twhich\\tthe\\tCovered\\tCompensation\\twas\\tgranted,\\nvested\\tor\\tpaid\\tand\\tthe\\tCommittee\\tshall\\tmaintain\\tdocumentation\\tof\\tsuch\\tdetermination\\tand\\tprovide\\tsuch\\ndocumentation\\tto\\tNasdaq.\\ne)“Exchange\\tAct”\\tmeans\\tthe\\tU.S.\\tSecurities\\tExchange\\tAct\\tof\\t1934,\\tas\\tamended.\\nf)“Executive\\tOfficer”\\tmeans\\teach\\t“executive\\tofficer”\\tof\\tthe\\tCompany\\t(as\\tdefined\\tin\\tRule\\t10D-1(d)\\tunder\\tthe\\nExchange\\tAct),\\twhich\\tshall\\tbe\\tdeemed\\tto\\tinclude\\tany\\tindividuals\\tidentified\\tby\\tthe\\tCompany\\tas\\texecutive\\tofficers\\npursuant\\tto\\tItem\\t401(b)\\tof\\tRegulation\\tS-K\\tunder\\tthe\\tExchange\\tAct.\\tBoth\\tcurrent\\tand\\tformer\\tExecutive\\tOfficers\\nare\\tsubject\\tto\\tthe\\tPolicy\\tin\\taccordance\\twith\\tits\\tterms.\\n1\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 125,\n        \"lines\": {\n          \"from\": 31,\n          \"to\": 44\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"g)“Financial\\tReporting\\tMeasure”\\tmeans\\t(i)\\tany\\tmeasure\\tthat\\tis\\tdetermined\\tand\\tpresented\\tin\\taccordance\\twith\\tthe\\naccounting\\tprinciples\\tused\\tin\\tpreparing\\tthe\\tCompany’s\\tfinancial\\tstatements,\\tand\\tany\\tmeasures\\tderived\\twholly\\tor\\nin\\tpart\\tfrom\\tsuch\\tmeasures\\tand\\tmay\\tconsist\\tof\\tGAAP\\tor\\tnon-GAAP\\tfinancial\\tmeasures\\t(as\\tdefined\\tunder\\nRegulation\\tG\\tof\\tthe\\tExchange\\tAct\\tand\\tItem\\t10\\tof\\tRegulation\\tS-K\\tunder\\tthe\\tExchange\\tAct),\\t(ii)\\tstock\\tprice\\tor\\t(iii)\\ntotal\\tshareholder\\treturn.\\tFinancial\\tReporting\\tMeasures\\tmay\\tor\\tmay\\tnot\\tbe\\tfiled\\twith\\tthe\\tSEC\\tand\\tmay\\tbe\\npresented\\toutside\\tthe\\tCompany’s\\tfinancial\\tstatements,\\tsuch\\tas\\tin\\tManagements’\\tDiscussion\\tand\\tAnalysis\\tof\\nFinancial\\tConditions\\tand\\tResult\\tof\\tOperations\\tor\\tin\\tthe\\tperformance\\tgraph\\trequired\\tunder\\tItem\\t201(e)\\tof\\nRegulation\\tS-K\\tunder\\tthe\\tExchange\\tAct.\\nh)“Incentive-Based\\tCompensation”\\tmeans\\tany\\tcompensation\\tthat\\tis\\tgranted,\\tearned\\tor\\tvested\\tbased\\twholly\\tor\\tin\\npart\\tupon\\tthe\\tattainment\\tof\\ta\\tFinancial\\tReporting\\tMeasure.\\ni)“Lookback\\tPeriod”\\tmeans\\tthe\\tthree\\tcompleted\\tfiscal\\tyears\\t(plus\\tany\\ttransition\\tperiod\\tof\\tless\\tthan\\tnine\\tmonths\\nthat\\tis\\twithin\\tor\\timmediately\\tfollowing\\tthe\\tthree\\tcompleted\\tfiscal\\tyears\\tand\\tthat\\tresults\\tfrom\\ta\\tchange\\tin\\tthe\\nCompany’s\\tfiscal\\tyear)\\timmediately\\tpreceding\\tthe\\tdate\\ton\\twhich\\tthe\\tCompany\\tis\\trequired\\tto\\tprepare\\ta\\nRestatement\\tfor\\ta\\tgiven\\treporting\\tperiod,\\twith\\tsuch\\tdate\\tbeing\\tthe\\tearlier\\tof:\\t(i)\\tthe\\tdate\\tthe\\tBoard,\\ta\\tcommittee\\nof\\tthe\\tBoard,\\tor\\tthe\\tofficer\\tor\\tofficers\\tof\\tthe\\tCompany\\tauthorized\\tto\\ttake\\tsuch\\taction\\tif\\tBoard\\taction\\tis\\tnot\\nrequired,\\tconcludes,\\tor\\treasonably\\tshould\\thave\\tconcluded,\\tthat\\tthe\\tCompany\\tis\\trequired\\tto\\tprepare\\ta\\nRestatement,\\tor\\t(ii)\\tthe\\tdate\\ta\\tcourt,\\tregulator\\tor\\tother\\tlegally\\tauthorized\\tbody\\tdirects\\tthe\\tCompany\\tto\\tprepare\\ta\\nRestatement.\\tRecovery\\tof\\tany\\tErroneously\\tAwarded\\tCompensation\\tunder\\tthe\\tPolicy\\tis\\tnot\\tdependent\\ton\\tif\\tor\\nwhen\\tthe\\tRestatement\\tis\\tactually\\tfiled.\\nj)“Nasdaq”\\tmeans\\tthe\\tNasdaq\\tStock\\tMarket.\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 126,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 20\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"j)“Nasdaq”\\tmeans\\tthe\\tNasdaq\\tStock\\tMarket.\\nk)“Received”:\\tIncentive-Based\\tCompensation\\tis\\tdeemed\\t“Received”\\tin\\tthe\\tCompany’s\\tfiscal\\tperiod\\tduring\\twhich\\nthe\\tFinancial\\tReporting\\tMeasure\\tspecified\\tin\\tor\\totherwise\\trelating\\tto\\tthe\\tIncentive-Based\\tCompensation\\taward\\tis\\nattained,\\teven\\tif\\tthe\\tgrant,\\tcertification\\tof\\tachievement,\\tvesting\\tor\\tpayment\\tof\\tthe\\tIncentive-Based\\tCompensation\\noccurs\\tafter\\tthe\\tend\\tof\\tthat\\tperiod.\\nl)“Restatement”\\tmeans\\tan\\taccounting\\trestatement\\trequired\\tdue\\tto\\tthe\\tmaterial\\tnoncompliance\\tby\\tthe\\tCompany\\nwith\\tany\\tfinancial\\treporting\\trequirement\\tunder\\tthe\\tsecurities\\tlaws,\\tincluding\\t(i)\\tto\\tcorrect\\tan\\terror\\tin\\tpreviously\\nissued\\tfinancial\\tstatements\\tthat\\tis\\tmaterial\\tto\\tthe\\tpreviously\\tissued\\tfinancial\\tstatements\\t(commonly\\treferred\\tto\\nas\\ta\\t“Big\\tR”\\trestatement)\\tor\\t(ii)\\tto\\tcorrect\\tan\\terror\\tin\\tpreviously\\tissued\\tfinancial\\tstatements\\tthat\\tis\\tnot\\tmaterial\\nto\\tthe\\tpreviously\\tissued\\tfinancial\\tstatements\\tbut\\tthat\\twould\\tresult\\tin\\ta\\tmaterial\\tmisstatement\\tif\\tthe\\terror\\twere\\ncorrected\\tin\\tthe\\tcurrent\\tperiod\\tor\\tleft\\tuncorrected\\tin\\tthe\\tcurrent\\tperiod\\t(commonly\\treferred\\tto\\tas\\ta\\t“little\\tr”\\nrestatement).\\tChanges\\tto\\tthe\\tCompany’s\\tfinancial\\tstatements\\tthat\\tdo\\tnot\\trepresent\\terror\\tcorrections\\tunder\\tthe\\nthen-current\\trelevant\\taccounting\\tstandards\\twill\\tnot\\tconstitute\\tRestatements.\\n2\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 126,\n        \"lines\": {\n          \"from\": 20,\n          \"to\": 33\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"m)“SEC”\\tmeans\\tthe\\tU.S.\\tSecurities\\tand\\tExchange\\tCommission.\\nn)“Subsidiary”\\tmeans\\tany\\tdomestic\\tor\\tforeign\\tcorporation,\\tpartnership,\\tassociation,\\tjoint\\tstock\\tcompany,\\tjoint\\nventure,\\ttrust\\tor\\tunincorporated\\torganization\\t“affiliated”\\twith\\tthe\\tCompany,\\tthat\\tis,\\tdirectly\\tor\\tindirectly,\\tthrough\\none\\tor\\tmore\\tintermediaries,\\t“controlling”,\\t“controlled\\tby”\\tor\\t“under\\tcommon\\tcontrol\\twith”,\\tthe\\tCompany.\\n“Control”\\tfor\\tthis\\tpurpose\\tmeans\\tthe\\tpossession,\\tdirect\\tor\\tindirect,\\tof\\tthe\\tpower\\tto\\tdirect\\tor\\tcause\\tthe\\tdirection\\tof\\nthe\\tmanagement\\tand\\tpolicies\\tof\\tsuch\\tperson,\\twhether\\tthrough\\tthe\\townership\\tof\\tvoting\\tsecurities,\\tcontract\\tor\\notherwise.\\n2.Recoupment\\tof\\tErroneously\\tAwarded\\tCompensation\\nIn\\tthe\\tevent\\tof\\ta\\tRestatement,\\tany\\tErroneously\\tAwarded\\tCompensation\\tReceived\\tduring\\tthe\\tLookback\\tPeriod\\tthat\\t(a)\\tis\\nthen-outstanding\\tbut\\thas\\tnot\\tyet\\tbeen\\tpaid\\tshall\\tbe\\tautomatically\\tand\\timmediately\\tforfeited\\tor\\t(b)\\thas\\tbeen\\tpaid\\tto\\tany\\nperson\\tshall\\tbe\\tsubject\\tto\\treasonably\\tprompt\\trepayment\\tto\\tthe\\tCompany\\tGroup\\tin\\taccordance\\twith\\tSection\\t3\\tof\\tthis\\tPolicy.\\nThe\\tCommittee\\tmust\\tpursue\\t(and\\tshall\\tnot\\thave\\tthe\\tdiscretion\\tto\\twaive)\\tthe\\tforfeiture\\tand/or\\trepayment\\tof\\tsuch\\nErroneously\\tAwarded\\tCompensation\\tin\\taccordance\\twith\\tSection\\t3\\tof\\tthis\\tPolicy,\\texcept\\tas\\tprovided\\tbelow.\\tRecovery\\tof\\tany\\nErroneously\\tAwarded\\tCompensation\\tunder\\tthe\\tPolicy\\tis\\tnot\\tdependent\\ton\\tfraud\\tor\\tmisconduct\\tby\\tany\\tperson\\tin\\tconnection\\nwith\\tthe\\tRestatement.\\nNotwithstanding\\tthe\\tforegoing,\\tthe\\tCommittee\\t(or,\\tif\\tthe\\tCommittee\\tis\\tnot\\ta\\tcommittee\\tof\\tthe\\tBoard\\tresponsible\\tfor\\tthe\\nCompany’s\\texecutive\\tcompensation\\tdecisions\\tand\\tcomposed\\tentirely\\tof\\tindependent\\tdirectors,\\ta\\tmajority\\tof\\tthe\\nindependent\\tdirectors\\tserving\\ton\\tthe\\tBoard)\\tmay\\tdetermine\\tnot\\tto\\tpursue\\tthe\\tforfeiture\\tand/or\\trecovery\\tof\\tErroneously\\nAwarded\\tCompensation\\tfrom\\tany\\tperson\\tif\\tthe\\tCommittee\\tdetermines\\tthat\\tsuch\\tforfeiture\\tand/or\\trecovery\\twould\\tbe\\nimpracticable\\tdue\\tto\\tany\\tof\\tthe\\tfollowing\\tcircumstances:\\t(i)\\tthe\\tdirect\\texpense\\tpaid\\tto\\ta\\tthird\\tparty\\t(for\\texample,\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 127,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 20\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"reasonable\\tlegal\\texpenses\\tand\\tconsulting\\tfees)\\tto\\tassist\\tin\\tenforcing\\tthe\\tPolicy\\twould\\texceed\\tthe\\tamount\\tto\\tbe\\trecovered\\n(following\\treasonable\\tattempts\\tby\\tthe\\tCompany\\tGroup\\tto\\trecover\\tsuch\\tErroneously\\tAwarded\\tCompensation,\\tthe\\ndocumentation\\tof\\tsuch\\tattempts,\\tand\\tthe\\tprovision\\tof\\tsuch\\tdocumentation\\tto\\tthe\\tNasdaq)\\tor\\t(ii)\\trecovery\\twould\\tlikely\\ncause\\tany\\totherwise\\ttax-qualified\\tretirement\\tplan,\\tunder\\twhich\\tbenefits\\tare\\tbroadly\\tavailable\\tto\\temployees\\tof\\tCompany\\nGroup,\\tto\\tfail\\tto\\tmeet\\tthe\\trequirements\\tof\\t26\\tU.S.C.\\n401(a)(13)\\tor\\t26\\tU.S.C.\\t411(a)\\tand\\tregulations\\tthereunder.\\n3.Means\\tof\\tRepayment\\nIn\\tthe\\tevent\\tthat\\tthe\\tCommittee\\tdetermines\\tthat\\tany\\tperson\\tshall\\trepay\\tany\\tErroneously\\tAwarded\\tCompensation,\\tthe\\nCommittee\\tshall\\tprovide\\twritten\\tnotice\\tto\\tsuch\\tperson\\tby\\temail\\tor\\tcertified\\tmail\\tto\\tthe\\tphysical\\taddress\\ton\\tfile\\twith\\tthe\\nCompany\\tGroup\\tfor\\tsuch\\tperson,\\tand\\tthe\\tperson\\tshall\\tsatisfy\\tsuch\\trepayment\\tin\\ta\\tmanner\\tand\\ton\\tsuch\\tterms\\tas\\trequired\\nby\\tthe\\tCommittee,\\tand\\tthe\\tCompany\\tGroup\\tshall\\tbe\\tentitled\\tto\\tset\\toff\\tthe\\trepayment\\tamount\\tagainst\\tany\\tamount\\towed\\tto\\nthe\\tperson\\tby\\tthe\\tCompany\\tGroup,\\tto\\trequire\\tthe\\tforfeiture\\tof\\tany\\taward\\tgranted\\tby\\tthe\\tCompany\\tGroup\\tto\\tthe\\tperson,\\tor\\nto\\ttake\\tany\\tand\\tall\\tnecessary\\tactions\\tto\\treasonably\\tpromptly\\trecoup\\tthe\\trepayment\\tamount\\tfrom\\tthe\\tperson,\\tin\\teach\\tcase,\\nto\\tthe\\tfullest\\textent\\tpermitted\\tunder\\tapplicable\\tlaw,\\tincluding\\twithout\\tlimitation,\\tSection\\t409A\\tof\\tthe\\tU.S.\\n3\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 127,\n        \"lines\": {\n          \"from\": 21,\n          \"to\": 35\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Internal\\tRevenue\\tCode\\tand\\tthe\\tregulations\\tand\\tguidance\\tthereunder.\\tIf\\tthe\\tCommittee\\tdoes\\tnot\\tspecify\\ta\\trepayment\\ntiming\\tin\\tthe\\twritten\\tnotice\\tdescribed\\tabove,\\tthe\\tapplicable\\tperson\\tshall\\tbe\\trequired\\tto\\trepay\\tthe\\tErroneously\\tAwarded\\nCompensation\\tto\\tthe\\tCompany\\tGroup\\tby\\twire,\\tcash\\tor\\tcashier’s\\tcheck\\tno\\tlater\\tthan\\tthirty\\t(30)\\tdays\\tafter\\treceipt\\tof\\tsuch\\nnotice.\\n4.No\\tIndemnification\\nNo\\tperson\\tshall\\tbe\\tindemnified,\\tinsured\\tor\\treimbursed\\tby\\tthe\\tCompany\\tGroup\\tin\\trespect\\tof\\tany\\tloss\\tof\\tcompensation\\tby\\nsuch\\tperson\\tin\\taccordance\\twith\\tthis\\tPolicy,\\tnor\\tshall\\tany\\tperson\\treceive\\tany\\tadvancement\\tof\\texpenses\\tfor\\tdisputes\\trelated\\nto\\tany\\tloss\\tof\\tcompensation\\tby\\tsuch\\tperson\\tin\\taccordance\\twith\\tthis\\tPolicy,\\tand\\tno\\tperson\\tshall\\tbe\\tpaid\\tor\\treimbursed\\tby\\nthe\\tCompany\\tGroup\\tfor\\tany\\tpremiums\\tpaid\\tby\\tsuch\\tperson\\tfor\\tany\\tthird-party\\tinsurance\\tpolicy\\tcovering\\tpotential\\trecovery\\nobligations\\tunder\\tthis\\tPolicy.\\n5.Miscellaneous\\nThis\\tPolicy\\tgenerally\\twill\\tbe\\tadministered\\tand\\tinterpreted\\tby\\tthe\\tCommittee,\\tprovided\\tthat\\tthe\\tBoard\\tmay,\\tfrom\\ttime\\tto\\ntime,\\texercise\\tdiscretion\\tto\\tadminister\\tand\\tinterpret\\tthis\\tPolicy,\\tin\\twhich\\tcase,\\tall\\treferences\\therein\\tto\\t“Committee”\\tshall\\tbe\\ndeemed\\tto\\trefer\\tto\\tthe\\tBoard.\\tAny\\tdetermination\\tby\\tthe\\tCommittee\\twith\\trespect\\tto\\tthis\\tPolicy\\tshall\\tbe\\tfinal,\\tconclusive\\tand\\nbinding\\ton\\tall\\tinterested\\tparties.\\tAny\\tdiscretionary\\tdeterminations\\tof\\tthe\\tCommittee\\tunder\\tthis\\tPolicy,\\tif\\tany,\\tneed\\tnot\\tbe\\nuniform\\twith\\trespect\\tto\\tall\\tpersons,\\tand\\tmay\\tbe\\tmade\\tselectively\\tamongst\\tpersons,\\twhether\\tor\\tnot\\tsuch\\tpersons\\tare\\nsimilarly\\tsituated.\\nThis\\tPolicy\\tis\\tintended\\tto\\tsatisfy\\tthe\\trequirements\\tof\\tSection\\t954\\tof\\tthe\\tDodd-Frank\\tWall\\tStreet\\tReform\\tand\\tConsumer\\nProtection\\tAct,\\tas\\tit\\tmay\\tbe\\tamended\\tfrom\\ttime\\tto\\ttime,\\tRule\\t10D-\\t1\\tunder\\tthe\\tExchange\\tAct,\\tand\\tany\\trelated\\trules\\tor\\nregulations\\tpromulgated\\tby\\tthe\\tSEC\\tor\\tthe\\tNasdaq,\\tincluding\\tany\\tadditional\\tor\\tnew\\trequirements\\tthat\\tbecome\\teffective\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 128,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 20\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"after\\tthe\\tEffective\\tDate\\twhich\\tupon\\teffectiveness\\tshall\\tbe\\tdeemed\\tto\\tautomatically\\tamend\\tthis\\tPolicy\\tto\\tthe\\textent\\nnecessary\\tto\\tcomply\\twith\\tsuch\\tadditional\\tor\\tnew\\trequirements.\\nThe\\tprovisions\\tin\\tthis\\tPolicy\\tare\\tintended\\tto\\tbe\\tapplied\\tto\\tthe\\tfullest\\textent\\tof\\tthe\\tlaw.\\tTo\\tthe\\textent\\tthat\\tany\\tprovision\\nof\\tthis\\tPolicy\\tis\\tfound\\tto\\tbe\\tunenforceable\\tor\\tinvalid\\tunder\\tany\\tapplicable\\tlaw,\\tsuch\\tprovision\\twill\\tbe\\tapplied\\tto\\tthe\\nmaximum\\textent\\tpermitted\\tand\\tshall\\tautomatically\\tbe\\tdeemed\\tamended\\tin\\ta\\tmanner\\tconsistent\\twith\\tits\\tobjectives\\tto\\tthe\\nextent\\tnecessary\\tto\\tconform\\tto\\tapplicable\\tlaw.\\tThe\\tinvalidity\\tor\\tunenforceability\\tof\\tany\\tprovision\\tof\\tthis\\tPolicy\\tshall\\tnot\\naffect\\tthe\\tvalidity\\tor\\tenforceability\\tof\\tany\\tother\\tprovision\\tof\\tthis\\tPolicy.\\tRecoupment\\tof\\tErroneously\\tAwarded\\tCompensation\\nunder\\tthis\\tPolicy\\tis\\tnot\\tdependent\\tupon\\tthe\\tCompany\\tGroup\\tsatisfying\\tany\\tconditions\\tin\\tthis\\tPolicy,\\tincluding\\tany\\nrequirements\\tto\\tprovide\\tapplicable\\tdocumentation\\tto\\tthe\\tNasdaq.\\nThe\\trights\\tof\\tthe\\tCompany\\tGroup\\tunder\\tthis\\tPolicy\\tto\\tseek\\tforfeiture\\tor\\treimbursement\\tare\\tin\\taddition\\tto,\\tand\\tnot\\tin\\nlieu\\tof,\\tany\\trights\\tof\\trecoupment,\\tor\\tremedies\\tor\\trights\\tother\\tthan\\trecoupment,\\tthat\\tmay\\tbe\\tavailable\\tto\\tthe\\tCompany\\nGroup\\tpursuant\\tto\\tthe\\tterms\\tof\\tany\\tlaw,\\tgovernment\\tregulation\\tor\\tstock\\texchange\\tlisting\\trequirement\\tor\\tany\\tother\\tpolicy,\\ncode\\tof\\n4\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 128,\n        \"lines\": {\n          \"from\": 21,\n          \"to\": 34\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"conduct,\\temployee\\thandbook,\\temployment\\tagreement,\\tequity\\taward\\tagreement,\\tor\\tother\\tplan\\tor\\tagreement\\tof\\tthe\\nCompany\\tGroup.\\n6.Amendment\\tand\\tTermination\\nTo\\tthe\\textent\\tpermitted\\tby,\\tand\\tin\\ta\\tmanner\\tconsistent\\twith\\tapplicable\\tlaw,\\tincluding\\tSEC\\tand\\tNasdaq\\trules,\\tthe\\nCommittee\\tmay\\tterminate,\\tsuspend\\tor\\tamend\\tthis\\tPolicy\\tat\\tany\\ttime\\tin\\tits\\tdiscretion.\\n7.Successors\\nThis\\tPolicy\\tshall\\tbe\\tbinding\\tand\\tenforceable\\tagainst\\tall\\tpersons\\tand\\ttheir\\trespective\\tbeneficiaries,\\theirs,\\texecutors,\\nadministrators\\tor\\tother\\tlegal\\trepresentatives\\twith\\trespect\\tto\\tany\\tCovered\\tCompensation\\tgranted,\\tvested\\tor\\tpaid\\tto\\tor\\nadministered\\tby\\tsuch\\tpersons\\tor\\tentities.\\n8.Agreement\\tto\\tArbitrate;\\tGoverning\\tLaw;\\tVenue\\nThis\\tPolicy\\tand\\tall\\trights\\tand\\tobligations\\thereunder\\twill\\tbe\\tgoverned\\tby\\tand\\tinterpreted\\tin\\taccordance\\twith\\tTexas\\tlaw.\\t\\nAny\\tdispute\\tarising\\tfrom\\tor\\trelating\\tto\\tthis\\tPolicy\\tshall\\tbe\\tsubject\\tto\\tbinding\\tarbitration\\tin\\taccordance\\twith\\tthe\\tthen-current\\nStreamlined\\tArbitration\\tRules\\tof\\tthe\\tJudicial\\tArbitration\\tand\\tMediation\\tServices\\t(“JAMS”).\\t\\tThe\\texistence,\\tcontent\\tand\\tresult\\nof\\tthe\\tarbitration\\tshall\\tbe\\theld\\tin\\tconfidence\\tby\\tthe\\tparties,\\ttheir\\trepresentatives,\\tany\\tother\\tparticipants\\tand\\tthe\\tarbitrator.\\t\\nThe\\tarbitration\\twill\\tbe\\tconducted\\tby\\ta\\tsingle\\tarbitrator\\tselected\\tby\\tagreement\\tof\\tthe\\tparties\\tor,\\tfailing\\tsuch\\tagreement,\\nappointed\\tin\\taccordance\\twith\\tthe\\tJAMS\\trules.\\t\\tThe\\tarbitration\\tshall\\tbe\\tconducted\\tin\\tEnglish\\tand\\tin\\tAustin,\\tTexas.\\t\\tEach\\nparty\\twill\\tbear\\tits\\town\\texpenses\\tin\\tthe\\tarbitration\\tand\\twill\\tshare\\tequally\\tthe\\tcosts\\tof\\tthe\\tarbitration;\\tprovided,\\thowever,\\nthat\\tthe\\tarbitrator\\tmay,\\tin\\tits\\tdiscretion,\\taward\\treasonable\\tcosts\\tand\\tfees\\tto\\tthe\\tprevailing\\tparty.\\t\\tJudgment\\tupon\\tthe\\naward\\trendered\\tin\\tthe\\tarbitration\\tmay\\tbe\\tentered\\tin\\tany\\tcourt\\tof\\tcompetent\\tjurisdiction.\\t\\tIf\\tany\\tdispute\\tin\\tarbitration\\tunder\\nthis\\tPolicy\\tis\\tsubstantially\\tthe\\tsame\\tor\\tinvolves\\tcommon\\tissues\\tof\\tlaw\\tor\\tfact,\\teither\\tparty\\tshall\\tbe\\tentitled\\tto\\trequire\\tthat\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 129,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 20\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"any\\tsuch\\tdispute\\tbe\\tconsolidated\\twith\\tthe\\trelevant\\tarbitration\\tpursuant\\thereto,\\tand\\tthe\\tother\\tparty\\tshall\\tpermit,\\tand\\tco-\\noperate\\tin,\\tsuch\\tconsolidation.\\t\\t\\n5\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 129,\n        \"lines\": {\n          \"from\": 21,\n          \"to\": 23\n        }\n      }\n    }\n  },\n  {\n    \"pageContent\": \"Tesla,\\tInc.\\nCLAWBACK\\tPOLICY\\nACKNOWLEDGMENT,\\tCONSENT\\tAND\\tAGREEMENT\\nI\\tacknowledge\\tthat\\tI\\thave\\treceived\\tand\\treviewed\\ta\\tcopy\\tof\\tthe\\tTesla,\\tInc.\\tClawback\\tPolicy\\t(as\\tmay\\tbe\\tamended\\tfrom\\ntime\\tto\\ttime,\\tthe\\t“Policy”)\\tand\\tI\\thave\\tbeen\\tgiven\\tan\\topportunity\\tto\\task\\tquestions\\tabout\\tthe\\tPolicy\\tand\\treview\\tit\\twith\\tmy\\ncounsel.\\tI\\tknowingly,\\tvoluntarily\\tand\\tirrevocably\\tconsent\\tto\\tand\\tagree\\tto\\tbe\\tbound\\tby\\tand\\tsubject\\tto\\tthe\\tPolicy’s\\tterms\\tand\\nconditions,\\tincluding\\tthat\\tI\\twill\\treturn\\tany\\tErroneously\\tAwarded\\tCompensation\\tthat\\tis\\trequired\\tto\\tbe\\trepaid\\tin\\taccordance\\nwith\\tthe\\tPolicy.\\tI\\tfurther\\tacknowledge,\\tunderstand\\tand\\tagree\\tthat\\t(i)\\tthe\\tcompensation\\tthat\\tI\\treceive,\\thave\\treceived\\tor\\tmay\\nbecome\\tentitled\\tto\\treceive\\tfrom\\tthe\\tCompany\\tGroup\\tis\\tsubject\\tto\\tthe\\tPolicy,\\tand\\tthe\\tPolicy\\tmay\\taffect\\tsuch\\tcompensation\\nand\\t(ii)\\tI\\thave\\tno\\tright\\tto\\tindemnification,\\tinsurance\\tpayments\\tor\\tother\\treimbursement\\tby\\tor\\tfrom\\tthe\\tCompany\\tGroup\\tfor\\nany\\tcompensation\\tthat\\tis\\tsubject\\tto\\trecoupment\\tand/or\\tforfeiture\\tunder\\tthe\\tPolicy.\\nCapitalized\\tterms\\tused\\tbut\\tnot\\tdefined\\therein\\thave\\tthe\\tmeanings\\tset\\tforth\\tin\\tthe\\tPolicy.\\nSigned:\\nPrint\\tName:\\nDate:\",\n    \"metadata\": {\n      \"source\": \"./test_docs/test-tsla-10k-2023.pdf\",\n      \"pdf\": {\n        \"version\": \"1.10.100\",\n        \"info\": {\n          \"PDFFormatVersion\": \"1.4\",\n          \"IsAcroFormPresent\": false,\n          \"IsXFAPresent\": false,\n          \"Title\": \"\",\n          \"Creator\": \"wkhtmltopdf 0.12.6\",\n          \"Producer\": \"Qt 5.15.2\",\n          \"CreationDate\": \"D:20240129111114Z\"\n        },\n        \"metadata\": null,\n        \"totalPages\": 130\n      },\n      \"loc\": {\n        \"pageNumber\": 130,\n        \"lines\": {\n          \"from\": 1,\n          \"to\": 15\n        }\n      }\n    }\n  }\n]"
  },
  {
    "path": "backend/src/shared/configuration.ts",
    "content": "/**\n * Define the configurable parameters for the agent.\n */\n\nimport { Annotation } from '@langchain/langgraph';\nimport { RunnableConfig } from '@langchain/core/runnables';\n\n/**\n * typeof ConfigurationAnnotation.State class for indexing and retrieval operations.\n *\n * This annotation defines the parameters needed for configuring the indexing and\n * retrieval processes, including user identification, embedding model selection,\n * retriever provider choice, and search parameters.\n */\nexport const BaseConfigurationAnnotation = Annotation.Root({\n  /**\n   * The vector store provider to use for retrieval.\n   * Options are 'supabase', but you can add more providers here and create their own retriever functions\n   */\n  retrieverProvider: Annotation<'supabase'>,\n\n  /**\n   * Additional keyword arguments to pass to the search function of the retriever for filtering.\n   */\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  filterKwargs: Annotation<Record<string, any>>,\n\n  /**\n   * The number of documents to retrieve.\n   */\n  k: Annotation<number>,\n});\n\n/**\n * Create an typeof BaseConfigurationAnnotation.State instance from a RunnableConfig object.\n *\n * @param config - The configuration object to use.\n * @returns An instance of typeof BaseConfigurationAnnotation.State with the specified configuration.\n */\nexport function ensureBaseConfiguration(\n  config: RunnableConfig,\n): typeof BaseConfigurationAnnotation.State {\n  const configurable = (config?.configurable || {}) as Partial<\n    typeof BaseConfigurationAnnotation.State\n  >;\n  return {\n    retrieverProvider: configurable.retrieverProvider || 'supabase',\n    filterKwargs: configurable.filterKwargs || {},\n    k: configurable.k || 5,\n  };\n}\n"
  },
  {
    "path": "backend/src/shared/retrieval.ts",
    "content": "import { VectorStoreRetriever } from '@langchain/core/vectorstores';\nimport { OpenAIEmbeddings } from '@langchain/openai';\nimport { SupabaseVectorStore } from '@langchain/community/vectorstores/supabase';\nimport { createClient } from '@supabase/supabase-js';\nimport { RunnableConfig } from '@langchain/core/runnables';\nimport {\n  BaseConfigurationAnnotation,\n  ensureBaseConfiguration,\n} from './configuration.js';\n\nexport async function makeSupabaseRetriever(\n  configuration: typeof BaseConfigurationAnnotation.State,\n): Promise<VectorStoreRetriever> {\n  if (!process.env.SUPABASE_URL || !process.env.SUPABASE_SERVICE_ROLE_KEY) {\n    throw new Error(\n      'SUPABASE_URL or SUPABASE_SERVICE_ROLE_KEY environment variables are not defined',\n    );\n  }\n  const embeddings = new OpenAIEmbeddings({\n    model: 'text-embedding-3-small',\n  });\n  const supabaseClient = createClient(\n    process.env.SUPABASE_URL ?? '',\n    process.env.SUPABASE_SERVICE_ROLE_KEY ?? '',\n  );\n  const vectorStore = new SupabaseVectorStore(embeddings, {\n    client: supabaseClient,\n    tableName: 'documents',\n    queryName: 'match_documents',\n  });\n  return vectorStore.asRetriever({\n    k: configuration.k,\n    filter: configuration.filterKwargs,\n  });\n}\n\nexport async function makeRetriever(\n  config: RunnableConfig,\n): Promise<VectorStoreRetriever> {\n  const configuration = ensureBaseConfiguration(config);\n  switch (configuration.retrieverProvider) {\n    case 'supabase':\n      return makeSupabaseRetriever(configuration);\n    default:\n      throw new Error(\n        `Unsupported retriever provider: ${configuration.retrieverProvider}`,\n      );\n  }\n}\n"
  },
  {
    "path": "backend/src/shared/state.ts",
    "content": "import { Document } from '@langchain/core/documents';\nimport { v4 as uuidv4 } from 'uuid';\n\n/**\n * Reduces the document array based on the provided new documents or actions.\n *\n * @param existing - The existing array of documents.\n * @param newDocs - The new documents or actions to apply.\n * @returns The updated array of documents.\n */\nexport function reduceDocs(\n  existing?: Document[],\n  newDocs?:\n    | Document[]\n    | { [key: string]: any }[]\n    | string[]\n    | string\n    | 'delete',\n): Document[] {\n  if (newDocs === 'delete') {\n    return [];\n  }\n\n  const existingList = existing || [];\n  const existingIds = new Set(existingList.map((doc) => doc.metadata?.uuid));\n\n  if (typeof newDocs === 'string') {\n    const docId = uuidv4();\n    return [\n      ...existingList,\n      { pageContent: newDocs, metadata: { uuid: docId } },\n    ];\n  }\n\n  const newList: Document[] = [];\n  if (Array.isArray(newDocs)) {\n    for (const item of newDocs) {\n      if (typeof item === 'string') {\n        const itemId = uuidv4();\n        newList.push({ pageContent: item, metadata: { uuid: itemId } });\n        existingIds.add(itemId);\n      } else if (typeof item === 'object') {\n        const metadata = (item as Document).metadata ?? {};\n        let itemId = metadata.uuid ?? uuidv4();\n\n        if (!existingIds.has(itemId)) {\n          if ('pageContent' in item) {\n            // It's a Document-like object\n            newList.push({\n              ...(item as Document),\n              metadata: { ...metadata, uuid: itemId },\n            });\n          } else {\n            // It's a generic object, treat it as metadata\n            newList.push({\n              pageContent: '',\n              metadata: { ...(item as { [key: string]: any }), uuid: itemId },\n            });\n          }\n          existingIds.add(itemId);\n        }\n      }\n    }\n  }\n\n  return [...existingList, ...newList];\n}\n"
  },
  {
    "path": "backend/src/shared/utils.ts",
    "content": "import { BaseChatModel } from '@langchain/core/language_models/chat_models';\nimport { initChatModel } from 'langchain/chat_models/universal';\n\nconst SUPPORTED_PROVIDERS = [\n  'openai',\n  'anthropic',\n  'azure_openai',\n  'cohere',\n  'google-vertexai',\n  'google-vertexai-web',\n  'google-genai',\n  'ollama',\n  'together',\n  'fireworks',\n  'mistralai',\n  'groq',\n  'bedrock',\n  'cerebras',\n  'deepseek',\n  'xai',\n] as const;\n/**\n * Load a chat model from a fully specified name.\n * @param fullySpecifiedName - String in the format 'provider/model' or 'provider/account/provider/model'.\n * @returns A Promise that resolves to a BaseChatModel instance.\n */\nexport async function loadChatModel(\n  fullySpecifiedName: string,\n  temperature: number = 0.2,\n): Promise<BaseChatModel> {\n  const index = fullySpecifiedName.indexOf('/');\n  if (index === -1) {\n    // If there's no \"/\", assume it's just the model\n    if (\n      !SUPPORTED_PROVIDERS.includes(\n        fullySpecifiedName as (typeof SUPPORTED_PROVIDERS)[number],\n      )\n    ) {\n      throw new Error(`Unsupported model: ${fullySpecifiedName}`);\n    }\n    return await initChatModel(fullySpecifiedName, {\n      temperature: temperature,\n    });\n  } else {\n    const provider = fullySpecifiedName.slice(0, index);\n    const model = fullySpecifiedName.slice(index + 1);\n    if (\n      !SUPPORTED_PROVIDERS.includes(\n        provider as (typeof SUPPORTED_PROVIDERS)[number],\n      )\n    ) {\n      throw new Error(`Unsupported provider: ${provider}`);\n    }\n    return await initChatModel(model, {\n      modelProvider: provider,\n      temperature: temperature,\n    });\n  }\n}\n"
  },
  {
    "path": "backend/tsconfig.json",
    "content": "{\n  \"extends\": \"@tsconfig/recommended\",\n  \"compilerOptions\": {\n    \"target\": \"ES2021\",\n    \"lib\": [\"ES2021\", \"ES2022.Object\", \"DOM\"],\n    \"module\": \"NodeNext\",\n    \"moduleResolution\": \"nodenext\",\n    \"esModuleInterop\": true,\n    \"noImplicitReturns\": true,\n    \"declaration\": true,\n    \"noFallthroughCasesInSwitch\": true,\n    \"noUnusedLocals\": true,\n    \"noUnusedParameters\": true,\n    \"useDefineForClassFields\": true,\n    \"strictPropertyInitialization\": false,\n    \"allowJs\": true,\n    \"strict\": true,\n    \"strictFunctionTypes\": false,\n    \"outDir\": \"dist\",\n    \"types\": [\"jest\", \"node\"],\n    \"resolveJsonModule\": true\n  },\n  \"include\": [\"**/*.ts\", \"**/*.js\", \"jest.setup.cjs\"],\n  \"exclude\": [\"node_modules\", \"dist\"]\n}\n"
  },
  {
    "path": "frontend/.gitignore",
    "content": "# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.\n\n# dependencies\n/node_modules\n\n# next.js\n/.next/\n/out/\n\n# production\n/build\n\n# debug\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\n.pnpm-debug.log*\n\n# env files\n.env\n.env.local\n\n# vercel\n.vercel\n\n# typescript\n*.tsbuildinfo\nnext-env.d.ts"
  },
  {
    "path": "frontend/__tests__/api/ingest/route.integration.test.ts",
    "content": "import { POST } from '../../../app/api/ingest/route'; // Import the actual route handler\nimport { NextRequest } from 'next/server';\nimport fs from 'fs';\nimport path from 'path';\nimport fetch from 'node-fetch';\nimport FormData from 'form-data';\nimport { processPDF } from '@/lib/pdf';\nimport { langGraphServerClient } from '@/lib/langgraph-server';\n\n// Mock the processPDF function\njest.mock('@/lib/pdf', () => ({\n  processPDF: jest.fn().mockImplementation((file: File) => {\n    return Promise.resolve([\n      {\n        pageContent: 'Test content',\n        metadata: { filename: file.name },\n      },\n    ]);\n  }),\n}));\n\n// Mock the langGraphServerClient\njest.mock('@/lib/langgraph-server', () => {\n  return {\n    langGraphServerClient: {\n      createThread: jest\n        .fn()\n        .mockResolvedValue({ thread_id: 'test-thread-id' }),\n      client: {\n        runs: {\n          stream: jest.fn().mockImplementation(async function* () {\n            yield { data: 'test' };\n          }),\n        },\n      },\n    },\n  };\n});\ndescribe('PDF Ingest Route (node-fetch)', () => {\n  const baseUrl = 'http://localhost:3000'; // Replace with your dev server URL\n  const ingestUrl = `${baseUrl}/api/ingest`;\n  const pdfFilePath = path.join(__dirname, 'test.pdf');\n\n  beforeAll(() => {\n    // Create a dummy PDF file for testing\n    const minimalPDF = `%PDF-1.7\n1 0 obj<</Type/Catalog/Pages 2 0 R>>endobj\n2 0 obj<</Type/Pages/Kids[3 0 R]/Count 1>>endobj\n3 0 obj<</Type/Page/MediaBox[0 0 612 792]/Parent 2 0 R/Resources<<>>/Contents 4 0 R>>endobj\n4 0 obj<</Length 21>>stream\nBT /F1 12 Tf (Test) Tj ET\nendstream\nendobj\nxref\n0 5\n0000000000 65535 f\n0000000009 00000 n\n0000000056 00000 n\n0000000107 00000 n\n0000000200 00000 n\ntrailer<</Size 5/Root 1 0 R>>\nstartxref\n271\n%%EOF`;\n    fs.writeFileSync(pdfFilePath, minimalPDF);\n  });\n\n  afterAll(() => {\n    // Clean up the dummy PDF file\n    fs.unlinkSync(pdfFilePath);\n  });\n\n  it.skip('should reject empty requests', async () => {\n    const formData = new FormData();\n    const response = await fetch(ingestUrl, {\n      method: 'POST',\n      body: formData,\n    });\n\n    expect(response.status).toBe(400);\n    const data = await response.json();\n    expect(data.error).toBe('No files provided');\n  });\n\n  it('should reject non-PDF files', async () => {\n    const formData = new FormData();\n    formData.append('files', fs.createReadStream('jest.config.js'), 'test.txt'); // Attach a non-PDF file\n\n    const response = await fetch(ingestUrl, {\n      method: 'POST',\n      body: formData,\n    });\n\n    expect(response.status).toBe(400);\n    const data = await response.json();\n    expect(data.error).toContain('Only PDF files are allowed');\n  });\n\n  it('should accept PDF files', async () => {\n    const formData = new FormData();\n    formData.append('files', fs.createReadStream(pdfFilePath), 'test.pdf'); // Attach the PDF file\n\n    const response = await fetch(ingestUrl, {\n      method: 'POST',\n      body: formData,\n    });\n\n    expect(response.status).toBe(200);\n    const data = await response.json();\n    expect(data.message).toContain('');\n    expect(data.threadId).toMatch(\n      /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,\n    );\n  });\n\n  it('should handle multiple PDFs', async () => {\n    const formData = new FormData();\n    formData.append('files', fs.createReadStream(pdfFilePath), 'test1.pdf');\n    formData.append('files', fs.createReadStream(pdfFilePath), 'test2.pdf');\n\n    const response = await fetch(ingestUrl, {\n      method: 'POST',\n      body: formData,\n    });\n\n    expect(response.status).toBe(200);\n    const data = await response.json();\n    expect(data.message).toBe('Documents ingested successfully');\n    expect(data.threadId).toMatch(\n      /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,\n    );\n  });\n\n  it.skip('should correctly parse PDF files using PDFLoader', async () => {\n    const formData = new FormData();\n    formData.append('files', fs.createReadStream(pdfFilePath), 'test.pdf');\n\n    await fetch(ingestUrl, {\n      method: 'POST',\n      body: formData,\n    });\n\n    expect(processPDF).toHaveBeenCalled();\n  });\n\n  it.skip('should call the ingestion graph with the correct data', async () => {\n    const formData = new FormData();\n    formData.append('files', fs.createReadStream(pdfFilePath), 'test.pdf');\n\n    await fetch(ingestUrl, {\n      method: 'POST',\n      body: formData,\n    });\n\n    expect(langGraphServerClient.createThread).toHaveBeenCalled();\n    expect(langGraphServerClient.client.runs.stream).toHaveBeenCalledWith(\n      'test-thread-id',\n      'ingestion_graph',\n      {\n        input: {\n          docs: [\n            { pageContent: 'Test content', metadata: { filename: 'test.pdf' } },\n          ],\n        },\n      },\n    );\n  });\n});\n"
  },
  {
    "path": "frontend/app/api/chat/route.ts",
    "content": "import { NextResponse } from 'next/server';\nimport { createServerClient } from '@/lib/langgraph-server';\nimport { retrievalAssistantStreamConfig } from '@/constants/graphConfigs';\n\nexport const runtime = 'edge';\n\nexport async function POST(req: Request) {\n  try {\n    const { message, threadId } = await req.json();\n\n    if (!message) {\n      return new NextResponse(\n        JSON.stringify({ error: 'Message is required' }),\n        {\n          status: 400,\n          headers: { 'Content-Type': 'application/json' },\n        },\n      );\n    }\n\n    if (!threadId) {\n      return new NextResponse(\n        JSON.stringify({ error: 'Thread ID is required' }),\n        {\n          status: 400,\n          headers: { 'Content-Type': 'application/json' },\n        },\n      );\n    }\n\n    if (!process.env.LANGGRAPH_RETRIEVAL_ASSISTANT_ID) {\n      return new NextResponse(\n        JSON.stringify({\n          error: 'LANGGRAPH_RETRIEVAL_ASSISTANT_ID is not set',\n        }),\n        { status: 500, headers: { 'Content-Type': 'application/json' } },\n      );\n    }\n\n    try {\n      const assistantId = process.env.LANGGRAPH_RETRIEVAL_ASSISTANT_ID;\n      const serverClient = createServerClient();\n\n      const stream = await serverClient.client.runs.stream(\n        threadId,\n        assistantId,\n        {\n          input: { query: message },\n          streamMode: ['messages', 'updates'],\n          config: {\n            configurable: {\n              ...retrievalAssistantStreamConfig,\n            },\n          },\n        },\n      );\n\n      // Set up response as a stream\n      const encoder = new TextEncoder();\n      const customReadable = new ReadableStream({\n        async start(controller) {\n          try {\n            // Forward each chunk from the graph to the client\n            for await (const chunk of stream) {\n              // Only send relevant chunks\n              controller.enqueue(\n                encoder.encode(`data: ${JSON.stringify(chunk)}\\n\\n`),\n              );\n            }\n          } catch (error) {\n            console.error('Streaming error:', error);\n            controller.enqueue(\n              encoder.encode(\n                `data: ${JSON.stringify({ error: 'Streaming error occurred' })}\\n\\n`,\n              ),\n            );\n          } finally {\n            controller.close();\n          }\n        },\n      });\n\n      // Return the stream with appropriate headers\n      return new Response(customReadable, {\n        headers: {\n          'Content-Type': 'text/event-stream',\n          'Cache-Control': 'no-cache',\n          Connection: 'keep-alive',\n        },\n      });\n    } catch (error) {\n      // Handle streamRun errors\n      console.error('Stream initialization error:', error);\n      return new NextResponse(\n        JSON.stringify({ error: 'Internal server error' }),\n        {\n          status: 500,\n          headers: { 'Content-Type': 'application/json' },\n        },\n      );\n    }\n  } catch (error) {\n    // Handle JSON parsing errors\n    console.error('Route error:', error);\n    return new NextResponse(\n      JSON.stringify({ error: 'Internal server error' }),\n      {\n        status: 500,\n        headers: { 'Content-Type': 'application/json' },\n      },\n    );\n  }\n}\n"
  },
  {
    "path": "frontend/app/api/ingest/route.ts",
    "content": "// app/api/ingest/route.ts\nimport { indexConfig } from '@/constants/graphConfigs';\nimport { langGraphServerClient } from '@/lib/langgraph-server';\nimport { processPDF } from '@/lib/pdf';\nimport { Document } from '@langchain/core/documents';\nimport { NextRequest, NextResponse } from 'next/server';\n\n// Configuration constants\nconst MAX_FILE_SIZE = 10 * 1024 * 1024; // 10MB\nconst ALLOWED_FILE_TYPES = ['application/pdf'];\n\nexport async function POST(request: NextRequest) {\n  try {\n    if (!process.env.LANGGRAPH_INGESTION_ASSISTANT_ID) {\n      return NextResponse.json(\n        {\n          error:\n            'LANGGRAPH_INGESTION_ASSISTANT_ID is not set in your environment variables',\n        },\n        { status: 500 },\n      );\n    }\n\n    const formData = await request.formData();\n    const files: File[] = [];\n\n    for (const [key, value] of formData.entries()) {\n      if (key === 'files' && value instanceof File) {\n        files.push(value);\n      }\n    }\n\n    if (!files || files.length === 0) {\n      return NextResponse.json({ error: 'No files provided' }, { status: 400 });\n    }\n\n    // Validate file count\n    if (files.length > 5) {\n      return NextResponse.json(\n        { error: 'Too many files. Maximum 5 files allowed.' },\n        { status: 400 },\n      );\n    }\n\n    // Validate file types and sizes\n    const invalidFiles = files.filter((file) => {\n      return (\n        !ALLOWED_FILE_TYPES.includes(file.type) || file.size > MAX_FILE_SIZE\n      );\n    });\n\n    if (invalidFiles.length > 0) {\n      return NextResponse.json(\n        {\n          error:\n            'Only PDF files are allowed and file size must be less than 10MB',\n        },\n        { status: 400 },\n      );\n    }\n\n    // Process all PDFs into Documents\n    const allDocs: Document[] = [];\n    for (const file of files) {\n      try {\n        const docs = await processPDF(file);\n        allDocs.push(...docs);\n      } catch (error: any) {\n        console.error(`Error processing file ${file.name}:`, error);\n        // Continue processing other files; errors are logged\n      }\n    }\n\n    if (!allDocs.length) {\n      return NextResponse.json(\n        { error: 'No valid documents extracted from uploaded files' },\n        { status: 500 },\n      );\n    }\n\n    // Run the ingestion graph\n    const thread = await langGraphServerClient.createThread();\n    const ingestionRun = await langGraphServerClient.client.runs.wait(\n      thread.thread_id,\n      'ingestion_graph',\n      {\n        input: {\n          docs: allDocs,\n        },\n        config: {\n          configurable: {\n            ...indexConfig,\n          },\n        },\n      },\n    );\n\n    return NextResponse.json({\n      message: 'Documents ingested successfully',\n      threadId: thread.thread_id,\n    });\n  } catch (error: any) {\n    console.error('Error processing files:', error);\n    return NextResponse.json(\n      { error: 'Failed to process files', details: error.message },\n      { status: 500 },\n    );\n  }\n}\n"
  },
  {
    "path": "frontend/app/globals.css",
    "content": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n\n@layer base {\n  :root {\n    --background: 0 0% 100%;\n    --foreground: 0 0% 3.9%;\n\n    --card: 0 0% 100%;\n    --card-foreground: 0 0% 3.9%;\n\n    --popover: 0 0% 100%;\n    --popover-foreground: 0 0% 3.9%;\n\n    --primary: 0 0% 9%;\n    --primary-foreground: 0 0% 98%;\n\n    --secondary: 0 0% 96.1%;\n    --secondary-foreground: 0 0% 9%;\n\n    --muted: 0 0% 96.1%;\n    --muted-foreground: 0 0% 45.1%;\n\n    --accent: 0 0% 96.1%;\n    --accent-foreground: 0 0% 9%;\n\n    --destructive: 0 84.2% 60.2%;\n    --destructive-foreground: 0 0% 98%;\n\n    --border: 0 0% 89.8%;\n    --input: 0 0% 89.8%;\n    --ring: 0 0% 3.9%;\n\n    --radius: 0.5rem;\n  }\n\n  .dark {\n    --background: 0 0% 3.9%;\n    --foreground: 0 0% 98%;\n\n    --card: 0 0% 3.9%;\n    --card-foreground: 0 0% 98%;\n\n    --popover: 0 0% 3.9%;\n    --popover-foreground: 0 0% 98%;\n\n    --primary: 0 0% 98%;\n    --primary-foreground: 0 0% 9%;\n\n    --secondary: 0 0% 14.9%;\n    --secondary-foreground: 0 0% 98%;\n\n    --muted: 0 0% 14.9%;\n    --muted-foreground: 0 0% 63.9%;\n\n    --accent: 0 0% 14.9%;\n    --accent-foreground: 0 0% 98%;\n\n    --destructive: 0 62.8% 30.6%;\n    --destructive-foreground: 0 0% 98%;\n\n    --border: 0 0% 14.9%;\n    --input: 0 0% 14.9%;\n    --ring: 0 0% 83.1%;\n  }\n}\n\n@layer base {\n  * {\n    @apply border-border;\n  }\n  body {\n    @apply bg-background text-foreground;\n  }\n}\n\n"
  },
  {
    "path": "frontend/app/layout.tsx",
    "content": "import type React from \"react\"\nimport type { Metadata } from \"next\"\nimport { GeistSans } from \"geist/font/sans\"\nimport { Toaster } from \"@/components/ui/toaster\"\n\nimport \"./globals.css\"\n\nexport const metadata: Metadata = {\n  title: \"Learning LangChain Book Chatbot Demo\",\n  description: \"A chatbot demo based on Learning LangChain (O'Reilly)\",\n}\n\nexport default function RootLayout({\n  children,\n}: {\n  children: React.ReactNode\n}) {\n  return (\n    <html lang=\"en\">\n      <body className={GeistSans.className}>\n        {children}\n        <Toaster />\n      </body>\n    </html>\n  )\n}\n\n\n\nimport './globals.css'"
  },
  {
    "path": "frontend/app/page.tsx",
    "content": "'use client';\n\nimport type React from 'react';\n\nimport { useToast } from '@/hooks/use-toast';\nimport { useRef, useState, useEffect } from 'react';\nimport { Button } from '@/components/ui/button';\nimport { Input } from '@/components/ui/input';\nimport { Paperclip, ArrowUp, Loader2 } from 'lucide-react';\nimport { ExamplePrompts } from '@/components/example-prompts';\nimport { ChatMessage } from '@/components/chat-message';\nimport { FilePreview } from '@/components/file-preview';\nimport { client } from '@/lib/langgraph-client';\nimport {\n  AgentState,\n  documentType,\n  PDFDocument,\n  RetrieveDocumentsNodeUpdates,\n} from '@/types/graphTypes';\nimport { Card, CardContent } from '@/components/ui/card';\nexport default function Home() {\n  const { toast } = useToast(); // Add this hook\n  const [messages, setMessages] = useState<\n    Array<{\n      role: 'user' | 'assistant';\n      content: string;\n      sources?: PDFDocument[];\n    }>\n  >([]);\n  const [input, setInput] = useState('');\n  const [files, setFiles] = useState<File[]>([]);\n  const [isUploading, setIsUploading] = useState(false);\n  const [isLoading, setIsLoading] = useState(false);\n  const [threadId, setThreadId] = useState<string | null>(null);\n  const fileInputRef = useRef<HTMLInputElement>(null);\n  const abortControllerRef = useRef<AbortController | null>(null); // Track the AbortController\n  const messagesEndRef = useRef<HTMLDivElement>(null); // Add this ref\n  const lastRetrievedDocsRef = useRef<PDFDocument[]>([]); // useRef to store the last retrieved documents\n\n  useEffect(() => {\n    // Create a thread when the component mounts\n    const initThread = async () => {\n      // Skip if we already have a thread\n      if (threadId) return;\n\n      try {\n        const thread = await client.createThread();\n\n        setThreadId(thread.thread_id);\n      } catch (error) {\n        console.error('Error creating thread:', error);\n        toast({\n          title: 'Error',\n          description:\n            'Error creating thread. Please make sure you have set the LANGGRAPH_API_URL environment variable correctly. ' +\n            error,\n          variant: 'destructive',\n        });\n      }\n    };\n    initThread();\n  }, []);\n\n  useEffect(() => {\n    messagesEndRef.current?.scrollIntoView({ behavior: 'smooth' });\n  }, [messages]);\n\n  const handleSubmit = async (e: React.FormEvent) => {\n    e.preventDefault();\n    if (!input.trim() || !threadId || isLoading) return;\n\n    if (abortControllerRef.current) {\n      abortControllerRef.current.abort();\n    }\n\n    const userMessage = input.trim();\n    setMessages((prev) => [\n      ...prev,\n      { role: 'user', content: userMessage, sources: undefined }, // Clear sources for new user message\n      { role: 'assistant', content: '', sources: undefined }, // Clear sources for new assistant message\n    ]);\n    setInput('');\n    setIsLoading(true);\n\n    const abortController = new AbortController();\n    abortControllerRef.current = abortController;\n\n    lastRetrievedDocsRef.current = []; // Clear the last retrieved documents\n\n    try {\n      const response = await fetch('/api/chat', {\n        method: 'POST',\n        headers: {\n          'Content-Type': 'application/json',\n        },\n        body: JSON.stringify({\n          message: userMessage,\n          threadId,\n        }),\n        signal: abortController.signal,\n      });\n\n      if (!response.ok) {\n        throw new Error(`HTTP error! status: ${response.status}`);\n      }\n\n      const reader = response.body?.getReader();\n      if (!reader) throw new Error('No reader available');\n\n      const decoder = new TextDecoder();\n\n      while (true) {\n        const { done, value } = await reader.read();\n        if (done) break;\n\n        const chunkStr = decoder.decode(value);\n        const lines = chunkStr.split('\\n').filter(Boolean);\n\n        for (const line of lines) {\n          if (!line.startsWith('data: ')) continue;\n\n          const sseString = line.slice('data: '.length);\n          let sseEvent: any;\n          try {\n            sseEvent = JSON.parse(sseString);\n          } catch (err) {\n            console.error('Error parsing SSE line:', err, line);\n            continue;\n          }\n\n          const { event, data } = sseEvent;\n\n          if (event === 'messages/partial') {\n            if (Array.isArray(data)) {\n              const lastObj = data[data.length - 1];\n              if (lastObj?.type === 'ai') {\n                const partialContent = lastObj.content ?? '';\n\n                // Only display if content is a string message\n                if (\n                  typeof partialContent === 'string' &&\n                  !partialContent.startsWith('{')\n                ) {\n                  setMessages((prev) => {\n                    const newArr = [...prev];\n                    if (\n                      newArr.length > 0 &&\n                      newArr[newArr.length - 1].role === 'assistant'\n                    ) {\n                      newArr[newArr.length - 1].content = partialContent;\n                      newArr[newArr.length - 1].sources =\n                        lastRetrievedDocsRef.current;\n                    }\n\n                    return newArr;\n                  });\n                }\n              }\n            }\n          } else if (event === 'updates' && data) {\n            if (\n              data &&\n              typeof data === 'object' &&\n              'retrieveDocuments' in data &&\n              data.retrieveDocuments &&\n              Array.isArray(data.retrieveDocuments.documents)\n            ) {\n              const retrievedDocs = (data as RetrieveDocumentsNodeUpdates)\n                .retrieveDocuments.documents as PDFDocument[];\n\n              // // Handle documents here\n              lastRetrievedDocsRef.current = retrievedDocs;\n              console.log('Retrieved documents:', retrievedDocs);\n            } else {\n              // Clear the last retrieved documents if it's a direct answer\n              lastRetrievedDocsRef.current = [];\n            }\n          } else {\n            console.log('Unknown SSE event:', event, data);\n          }\n        }\n      }\n    } catch (error) {\n      console.error('Error sending message:', error);\n      toast({\n        title: 'Error',\n        description:\n          'Failed to send message. Please try again.\\n' +\n          (error instanceof Error ? error.message : 'Unknown error'),\n        variant: 'destructive',\n      });\n      setMessages((prev) => {\n        const newArr = [...prev];\n        newArr[newArr.length - 1].content =\n          'Sorry, there was an error processing your message.';\n        return newArr;\n      });\n    } finally {\n      setIsLoading(false);\n      abortControllerRef.current = null;\n    }\n  };\n\n  const handleFileUpload = async (e: React.ChangeEvent<HTMLInputElement>) => {\n    const selectedFiles = Array.from(e.target.files || []);\n    if (selectedFiles.length === 0) return;\n\n    const nonPdfFiles = selectedFiles.filter(\n      (file) => file.type !== 'application/pdf',\n    );\n    if (nonPdfFiles.length > 0) {\n      toast({\n        title: 'Invalid file type',\n        description: 'Please upload PDF files only',\n        variant: 'destructive',\n      });\n      return;\n    }\n\n    setIsUploading(true);\n    try {\n      const formData = new FormData();\n      selectedFiles.forEach((file) => {\n        formData.append('files', file);\n      });\n\n      const response = await fetch('/api/ingest', {\n        method: 'POST',\n        body: formData,\n      });\n\n      if (!response.ok) {\n        const data = await response.json();\n        throw new Error(data.error || 'Failed to upload files');\n      }\n\n      setFiles((prev) => [...prev, ...selectedFiles]);\n      toast({\n        title: 'Success',\n        description: `${selectedFiles.length} file${selectedFiles.length > 1 ? 's' : ''} uploaded successfully`,\n        variant: 'default',\n      });\n    } catch (error) {\n      console.error('Error uploading files:', error);\n      toast({\n        title: 'Upload failed',\n        description:\n          'Failed to upload files. Please try again.\\n' +\n          (error instanceof Error ? error.message : 'Unknown error'),\n        variant: 'destructive',\n      });\n    } finally {\n      setIsUploading(false);\n      if (fileInputRef.current) {\n        fileInputRef.current.value = '';\n      }\n    }\n  };\n\n  const handleRemoveFile = (fileToRemove: File) => {\n    setFiles(files.filter((file) => file !== fileToRemove));\n    toast({\n      title: 'File removed',\n      description: `${fileToRemove.name} has been removed`,\n      variant: 'default',\n    });\n  };\n\n  return (\n    <main className=\"flex min-h-screen flex-col items-center p-4 md:p-24 max-w-5xl mx-auto w-full\">\n      {messages.length === 0 ? (\n        <>\n          <div className=\"flex-1 flex items-center justify-center\">\n            <div className=\"text-center\">\n              <p className=\"font-medium text-muted-foreground max-w-md mx-auto\">\n                This ai chatbot is an example template to accompany the book:{' '}\n                <a\n                  href=\"https://www.oreilly.com/library/view/learning-langchain/9781098167271/\"\n                  className=\"underline hover:text-foreground\"\n                >\n                  Learning LangChain (O'Reilly): Building AI and LLM\n                  applications with LangChain and LangGraph\n                </a>\n              </p>\n            </div>\n          </div>\n          <ExamplePrompts onPromptSelect={setInput} />\n        </>\n      ) : (\n        <div className=\"w-full space-y-4 mb-20\">\n          {messages.map((message, i) => (\n            <ChatMessage key={i} message={message} />\n          ))}\n          <div ref={messagesEndRef} />\n        </div>\n      )}\n\n      <div className=\"fixed bottom-0 left-0 right-0 p-4 bg-background\">\n        <div className=\"max-w-5xl mx-auto space-y-4\">\n          {files.length > 0 && (\n            <div className=\"grid grid-cols-3 gap-2\">\n              {files.map((file, index) => (\n                <FilePreview\n                  key={`${file.name}-${index}`}\n                  file={file}\n                  onRemove={() => handleRemoveFile(file)}\n                />\n              ))}\n            </div>\n          )}\n\n          <form onSubmit={handleSubmit} className=\"relative\">\n            <div className=\"flex gap-2 border rounded-md overflow-hidden bg-gray-50\">\n              <input\n                type=\"file\"\n                ref={fileInputRef}\n                onChange={handleFileUpload}\n                accept=\".pdf\"\n                multiple\n                className=\"hidden\"\n              />\n              <Button\n                type=\"button\"\n                variant=\"ghost\"\n                size=\"icon\"\n                className=\"rounded-none h-12\"\n                onClick={() => fileInputRef.current?.click()}\n                disabled={isUploading}\n              >\n                {isUploading ? (\n                  <div className=\"flex items-center gap-2\">\n                    <Loader2 className=\"h-4 w-4 animate-spin\" />\n                  </div>\n                ) : (\n                  <Paperclip className=\"h-4 w-4\" />\n                )}\n              </Button>\n              <Input\n                value={input}\n                onChange={(e) => setInput(e.target.value)}\n                placeholder={\n                  isUploading ? 'Uploading PDF...' : 'Send a message...'\n                }\n                className=\"border-0 focus-visible:ring-0 focus-visible:ring-offset-0 h-12 bg-transparent\"\n                disabled={isUploading || isLoading || !threadId}\n              />\n              <Button\n                type=\"submit\"\n                size=\"icon\"\n                className=\"rounded-none h-12\"\n                disabled={\n                  !input.trim() || isUploading || isLoading || !threadId\n                }\n              >\n                {isLoading ? (\n                  <Loader2 className=\"h-4 w-4 animate-spin\" />\n                ) : (\n                  <ArrowUp className=\"h-4 w-4\" />\n                )}\n              </Button>\n            </div>\n          </form>\n        </div>\n      </div>\n    </main>\n  );\n}\n"
  },
  {
    "path": "frontend/components/chat-message.tsx",
    "content": "import { Copy } from 'lucide-react';\nimport { Button } from '@/components/ui/button';\nimport { Card, CardContent } from '@/components/ui/card';\nimport { useState } from 'react';\nimport { PDFDocument } from '@/types/graphTypes';\nimport {\n  Accordion,\n  AccordionContent,\n  AccordionItem,\n  AccordionTrigger,\n} from '@/components/ui/accordion';\n\ninterface ChatMessageProps {\n  message: {\n    role: 'user' | 'assistant';\n    content: string;\n    sources?: PDFDocument[];\n  };\n}\n\nexport function ChatMessage({ message }: ChatMessageProps) {\n  const isUser = message.role === 'user';\n  const [copied, setCopied] = useState(false);\n  const isLoading = message.role === 'assistant' && message.content === '';\n\n  const handleCopy = async () => {\n    try {\n      await navigator.clipboard.writeText(message.content);\n      setCopied(true);\n      setTimeout(() => setCopied(false), 2000);\n    } catch (err) {\n      console.error('Failed to copy text:', err);\n    }\n  };\n\n  const showSources =\n    message.role === 'assistant' &&\n    message.sources &&\n    message.sources.length > 0;\n\n  return (\n    <div className={`flex ${isUser ? 'justify-end' : 'justify-start'}`}>\n      <div\n        className={`max-w-[85%] ${isUser ? 'bg-black text-white' : 'bg-muted'} rounded-2xl px-4 py-2`}\n      >\n        {isLoading ? (\n          <div className=\"flex space-x-1 h-6 items-center\">\n            <div className=\"w-1.5 h-1.5 bg-current rounded-full animate-[loading_1s_ease-in-out_infinite]\" />\n            <div className=\"w-1.5 h-1.5 bg-current rounded-full animate-[loading_1s_ease-in-out_0.2s_infinite]\" />\n            <div className=\"w-1.5 h-1.5 bg-current rounded-full animate-[loading_1s_ease-in-out_0.4s_infinite]\" />\n          </div>\n        ) : (\n          <>\n            <p className=\"whitespace-pre-wrap\">{message.content}</p>\n            {!isUser && (\n              <div className=\"flex gap-2 mt-2\">\n                <Button\n                  variant=\"ghost\"\n                  size=\"icon\"\n                  className=\"h-8 w-8\"\n                  onClick={handleCopy}\n                  title={copied ? 'Copied!' : 'Copy to clipboard'}\n                >\n                  <Copy\n                    className={`h-4 w-4 ${copied ? 'text-green-500' : ''}`}\n                  />\n                </Button>\n              </div>\n            )}\n            {showSources && message.sources && (\n              <Accordion type=\"single\" collapsible className=\"w-full mt-2\">\n                <AccordionItem value=\"sources\" className=\"border-b-0\">\n                  <AccordionTrigger className=\"text-sm py-2 justify-start gap-2 hover:no-underline\">\n                    View Sources ({message.sources.length})\n                  </AccordionTrigger>\n                  <AccordionContent>\n                    <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-2\">\n                      {message.sources?.map((source, index) => (\n                        <Card\n                          key={index}\n                          className=\"bg-background/50 transition-all duration-200 hover:bg-background hover:shadow-md hover:scale-[1.02] cursor-pointer\"\n                        >\n                          <CardContent className=\"p-3\">\n                            <p className=\"text-sm font-medium truncate\">\n                              {source.metadata?.source ||\n                                source.metadata?.filename ||\n                                'N/A'}\n                            </p>\n                            <p className=\"text-sm text-muted-foreground\">\n                              Page {source.metadata?.loc?.pageNumber || 'N/A'}\n                            </p>\n                          </CardContent>\n                        </Card>\n                      ))}\n                    </div>\n                  </AccordionContent>\n                </AccordionItem>\n              </Accordion>\n            )}\n          </>\n        )}\n      </div>\n    </div>\n  );\n}\n"
  },
  {
    "path": "frontend/components/example-prompts.tsx",
    "content": "import { Card } from \"@/components/ui/card\"\n\ninterface ExamplePromptsProps {\n  onPromptSelect: (prompt: string) => void\n}\n\nconst EXAMPLE_PROMPTS = [\n  {\n    title: \"What is this document about?\",\n  },\n  {\n    title: \"What is music?\",\n  },\n]\n\nexport function ExamplePrompts({ onPromptSelect }: ExamplePromptsProps) {\n  return (\n    <div className=\"grid grid-cols-1 md:grid-cols-2 gap-4 w-full max-w-2xl\">\n      {EXAMPLE_PROMPTS.map((prompt, i) => (\n        <Card \n          key={i} \n          className=\"p-4 cursor-pointer hover:bg-muted/50 transition-colors\"\n          onClick={() => onPromptSelect(prompt.title)}\n        >\n          <p className=\"text-sm text-center font-medium\">{prompt.title}</p>\n        </Card>\n      ))}\n    </div>\n  )\n}\n\n"
  },
  {
    "path": "frontend/components/file-preview.tsx",
    "content": "import { FileIcon, X } from \"lucide-react\"\nimport { Button } from \"@/components/ui/button\"\n\ninterface FilePreviewProps {\n  file: File\n  onRemove: () => void\n}\n\nexport function FilePreview({ file, onRemove }: FilePreviewProps) {\n  return (\n    <div className=\"flex items-center gap-2 bg-white rounded-lg p-2 shadow-sm\">\n      <div className=\"w-10 h-10 bg-pink-500 rounded-lg flex items-center justify-center\">\n        <FileIcon className=\"w-6 h-6 text-white\" />\n      </div>\n      <div className=\"flex-1 min-w-0\">\n        <p className=\"text-sm font-medium truncate text-gray-700\">{file.name}</p>\n        <p className=\"text-xs text-gray-500\">PDF</p>\n      </div>\n      <Button\n        variant=\"ghost\"\n        size=\"icon\"\n        className=\"h-8 w-8 text-gray-500 hover:text-gray-900\"\n        onClick={onRemove}\n      >\n        <X className=\"h-4 w-4\" />\n      </Button>\n    </div>\n  )\n}\n\n"
  },
  {
    "path": "frontend/components/theme-provider.tsx",
    "content": "'use client'\n\nimport * as React from 'react'\nimport {\n  ThemeProvider as NextThemesProvider,\n  type ThemeProviderProps,\n} from 'next-themes'\n\nexport function ThemeProvider({ children, ...props }: ThemeProviderProps) {\n  return <NextThemesProvider {...props}>{children}</NextThemesProvider>\n}\n"
  },
  {
    "path": "frontend/components/ui/accordion.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as AccordionPrimitive from \"@radix-ui/react-accordion\"\nimport { ChevronDown } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Accordion = AccordionPrimitive.Root\n\nconst AccordionItem = React.forwardRef<\n  React.ElementRef<typeof AccordionPrimitive.Item>,\n  React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>\n>(({ className, ...props }, ref) => (\n  <AccordionPrimitive.Item\n    ref={ref}\n    className={cn(\"border-b\", className)}\n    {...props}\n  />\n))\nAccordionItem.displayName = \"AccordionItem\"\n\nconst AccordionTrigger = React.forwardRef<\n  React.ElementRef<typeof AccordionPrimitive.Trigger>,\n  React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n  <AccordionPrimitive.Header className=\"flex\">\n    <AccordionPrimitive.Trigger\n      ref={ref}\n      className={cn(\n        \"flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180\",\n        className\n      )}\n      {...props}\n    >\n      {children}\n      <ChevronDown className=\"h-4 w-4 shrink-0 transition-transform duration-200\" />\n    </AccordionPrimitive.Trigger>\n  </AccordionPrimitive.Header>\n))\nAccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName\n\nconst AccordionContent = React.forwardRef<\n  React.ElementRef<typeof AccordionPrimitive.Content>,\n  React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n  <AccordionPrimitive.Content\n    ref={ref}\n    className=\"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down\"\n    {...props}\n  >\n    <div className={cn(\"pb-4 pt-0\", className)}>{children}</div>\n  </AccordionPrimitive.Content>\n))\n\nAccordionContent.displayName = AccordionPrimitive.Content.displayName\n\nexport { Accordion, AccordionItem, AccordionTrigger, AccordionContent }\n"
  },
  {
    "path": "frontend/components/ui/alert-dialog.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\"\n\nimport { cn } from \"@/lib/utils\"\nimport { buttonVariants } from \"@/components/ui/button\"\n\nconst AlertDialog = AlertDialogPrimitive.Root\n\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger\n\nconst AlertDialogPortal = AlertDialogPrimitive.Portal\n\nconst AlertDialogOverlay = React.forwardRef<\n  React.ElementRef<typeof AlertDialogPrimitive.Overlay>,\n  React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n  <AlertDialogPrimitive.Overlay\n    className={cn(\n      \"fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n      className\n    )}\n    {...props}\n    ref={ref}\n  />\n))\nAlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName\n\nconst AlertDialogContent = React.forwardRef<\n  React.ElementRef<typeof AlertDialogPrimitive.Content>,\n  React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>\n>(({ className, ...props }, ref) => (\n  <AlertDialogPortal>\n    <AlertDialogOverlay />\n    <AlertDialogPrimitive.Content\n      ref={ref}\n      className={cn(\n        \"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg\",\n        className\n      )}\n      {...props}\n    />\n  </AlertDialogPortal>\n))\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName\n\nconst AlertDialogHeader = ({\n  className,\n  ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n  <div\n    className={cn(\n      \"flex flex-col space-y-2 text-center sm:text-left\",\n      className\n    )}\n    {...props}\n  />\n)\nAlertDialogHeader.displayName = \"AlertDialogHeader\"\n\nconst AlertDialogFooter = ({\n  className,\n  ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n  <div\n    className={cn(\n      \"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\",\n      className\n    )}\n    {...props}\n  />\n)\nAlertDialogFooter.displayName = \"AlertDialogFooter\"\n\nconst AlertDialogTitle = React.forwardRef<\n  React.ElementRef<typeof AlertDialogPrimitive.Title>,\n  React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n  <AlertDialogPrimitive.Title\n    ref={ref}\n    className={cn(\"text-lg font-semibold\", className)}\n    {...props}\n  />\n))\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName\n\nconst AlertDialogDescription = React.forwardRef<\n  React.ElementRef<typeof AlertDialogPrimitive.Description>,\n  React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n  <AlertDialogPrimitive.Description\n    ref={ref}\n    className={cn(\"text-sm text-muted-foreground\", className)}\n    {...props}\n  />\n))\nAlertDialogDescription.displayName =\n  AlertDialogPrimitive.Description.displayName\n\nconst AlertDialogAction = React.forwardRef<\n  React.ElementRef<typeof AlertDialogPrimitive.Action>,\n  React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>\n>(({ className, ...props }, ref) => (\n  <AlertDialogPrimitive.Action\n    ref={ref}\n    className={cn(buttonVariants(), className)}\n    {...props}\n  />\n))\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName\n\nconst AlertDialogCancel = React.forwardRef<\n  React.ElementRef<typeof AlertDialogPrimitive.Cancel>,\n  React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>\n>(({ className, ...props }, ref) => (\n  <AlertDialogPrimitive.Cancel\n    ref={ref}\n    className={cn(\n      buttonVariants({ variant: \"outline\" }),\n      \"mt-2 sm:mt-0\",\n      className\n    )}\n    {...props}\n  />\n))\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName\n\nexport {\n  AlertDialog,\n  AlertDialogPortal,\n  AlertDialogOverlay,\n  AlertDialogTrigger,\n  AlertDialogContent,\n  AlertDialogHeader,\n  AlertDialogFooter,\n  AlertDialogTitle,\n  AlertDialogDescription,\n  AlertDialogAction,\n  AlertDialogCancel,\n}\n"
  },
  {
    "path": "frontend/components/ui/alert.tsx",
    "content": "import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst alertVariants = cva(\n  \"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-background text-foreground\",\n        destructive:\n          \"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n    },\n  }\n)\n\nconst Alert = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>\n>(({ className, variant, ...props }, ref) => (\n  <div\n    ref={ref}\n    role=\"alert\"\n    className={cn(alertVariants({ variant }), className)}\n    {...props}\n  />\n))\nAlert.displayName = \"Alert\"\n\nconst AlertTitle = React.forwardRef<\n  HTMLParagraphElement,\n  React.HTMLAttributes<HTMLHeadingElement>\n>(({ className, ...props }, ref) => (\n  <h5\n    ref={ref}\n    className={cn(\"mb-1 font-medium leading-none tracking-tight\", className)}\n    {...props}\n  />\n))\nAlertTitle.displayName = \"AlertTitle\"\n\nconst AlertDescription = React.forwardRef<\n  HTMLParagraphElement,\n  React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\"text-sm [&_p]:leading-relaxed\", className)}\n    {...props}\n  />\n))\nAlertDescription.displayName = \"AlertDescription\"\n\nexport { Alert, AlertTitle, AlertDescription }\n"
  },
  {
    "path": "frontend/components/ui/aspect-ratio.tsx",
    "content": "\"use client\"\n\nimport * as AspectRatioPrimitive from \"@radix-ui/react-aspect-ratio\"\n\nconst AspectRatio = AspectRatioPrimitive.Root\n\nexport { AspectRatio }\n"
  },
  {
    "path": "frontend/components/ui/avatar.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as AvatarPrimitive from \"@radix-ui/react-avatar\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Avatar = React.forwardRef<\n  React.ElementRef<typeof AvatarPrimitive.Root>,\n  React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>\n>(({ className, ...props }, ref) => (\n  <AvatarPrimitive.Root\n    ref={ref}\n    className={cn(\n      \"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full\",\n      className\n    )}\n    {...props}\n  />\n))\nAvatar.displayName = AvatarPrimitive.Root.displayName\n\nconst AvatarImage = React.forwardRef<\n  React.ElementRef<typeof AvatarPrimitive.Image>,\n  React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>\n>(({ className, ...props }, ref) => (\n  <AvatarPrimitive.Image\n    ref={ref}\n    className={cn(\"aspect-square h-full w-full\", className)}\n    {...props}\n  />\n))\nAvatarImage.displayName = AvatarPrimitive.Image.displayName\n\nconst AvatarFallback = React.forwardRef<\n  React.ElementRef<typeof AvatarPrimitive.Fallback>,\n  React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>\n>(({ className, ...props }, ref) => (\n  <AvatarPrimitive.Fallback\n    ref={ref}\n    className={cn(\n      \"flex h-full w-full items-center justify-center rounded-full bg-muted\",\n      className\n    )}\n    {...props}\n  />\n))\nAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName\n\nexport { Avatar, AvatarImage, AvatarFallback }\n"
  },
  {
    "path": "frontend/components/ui/badge.tsx",
    "content": "import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst badgeVariants = cva(\n  \"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2\",\n  {\n    variants: {\n      variant: {\n        default:\n          \"border-transparent bg-primary text-primary-foreground hover:bg-primary/80\",\n        secondary:\n          \"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n        destructive:\n          \"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80\",\n        outline: \"text-foreground\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n    },\n  }\n)\n\nexport interface BadgeProps\n  extends React.HTMLAttributes<HTMLDivElement>,\n    VariantProps<typeof badgeVariants> {}\n\nfunction Badge({ className, variant, ...props }: BadgeProps) {\n  return (\n    <div className={cn(badgeVariants({ variant }), className)} {...props} />\n  )\n}\n\nexport { Badge, badgeVariants }\n"
  },
  {
    "path": "frontend/components/ui/breadcrumb.tsx",
    "content": "import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { ChevronRight, MoreHorizontal } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Breadcrumb = React.forwardRef<\n  HTMLElement,\n  React.ComponentPropsWithoutRef<\"nav\"> & {\n    separator?: React.ReactNode\n  }\n>(({ ...props }, ref) => <nav ref={ref} aria-label=\"breadcrumb\" {...props} />)\nBreadcrumb.displayName = \"Breadcrumb\"\n\nconst BreadcrumbList = React.forwardRef<\n  HTMLOListElement,\n  React.ComponentPropsWithoutRef<\"ol\">\n>(({ className, ...props }, ref) => (\n  <ol\n    ref={ref}\n    className={cn(\n      \"flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5\",\n      className\n    )}\n    {...props}\n  />\n))\nBreadcrumbList.displayName = \"BreadcrumbList\"\n\nconst BreadcrumbItem = React.forwardRef<\n  HTMLLIElement,\n  React.ComponentPropsWithoutRef<\"li\">\n>(({ className, ...props }, ref) => (\n  <li\n    ref={ref}\n    className={cn(\"inline-flex items-center gap-1.5\", className)}\n    {...props}\n  />\n))\nBreadcrumbItem.displayName = \"BreadcrumbItem\"\n\nconst BreadcrumbLink = React.forwardRef<\n  HTMLAnchorElement,\n  React.ComponentPropsWithoutRef<\"a\"> & {\n    asChild?: boolean\n  }\n>(({ asChild, className, ...props }, ref) => {\n  const Comp = asChild ? Slot : \"a\"\n\n  return (\n    <Comp\n      ref={ref}\n      className={cn(\"transition-colors hover:text-foreground\", className)}\n      {...props}\n    />\n  )\n})\nBreadcrumbLink.displayName = \"BreadcrumbLink\"\n\nconst BreadcrumbPage = React.forwardRef<\n  HTMLSpanElement,\n  React.ComponentPropsWithoutRef<\"span\">\n>(({ className, ...props }, ref) => (\n  <span\n    ref={ref}\n    role=\"link\"\n    aria-disabled=\"true\"\n    aria-current=\"page\"\n    className={cn(\"font-normal text-foreground\", className)}\n    {...props}\n  />\n))\nBreadcrumbPage.displayName = \"BreadcrumbPage\"\n\nconst BreadcrumbSeparator = ({\n  children,\n  className,\n  ...props\n}: React.ComponentProps<\"li\">) => (\n  <li\n    role=\"presentation\"\n    aria-hidden=\"true\"\n    className={cn(\"[&>svg]:w-3.5 [&>svg]:h-3.5\", className)}\n    {...props}\n  >\n    {children ?? <ChevronRight />}\n  </li>\n)\nBreadcrumbSeparator.displayName = \"BreadcrumbSeparator\"\n\nconst BreadcrumbEllipsis = ({\n  className,\n  ...props\n}: React.ComponentProps<\"span\">) => (\n  <span\n    role=\"presentation\"\n    aria-hidden=\"true\"\n    className={cn(\"flex h-9 w-9 items-center justify-center\", className)}\n    {...props}\n  >\n    <MoreHorizontal className=\"h-4 w-4\" />\n    <span className=\"sr-only\">More</span>\n  </span>\n)\nBreadcrumbEllipsis.displayName = \"BreadcrumbElipssis\"\n\nexport {\n  Breadcrumb,\n  BreadcrumbList,\n  BreadcrumbItem,\n  BreadcrumbLink,\n  BreadcrumbPage,\n  BreadcrumbSeparator,\n  BreadcrumbEllipsis,\n}\n"
  },
  {
    "path": "frontend/components/ui/button.tsx",
    "content": "import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst buttonVariants = cva(\n  \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-primary text-primary-foreground hover:bg-primary/90\",\n        destructive:\n          \"bg-destructive text-destructive-foreground hover:bg-destructive/90\",\n        outline:\n          \"border border-input bg-background hover:bg-accent hover:text-accent-foreground\",\n        secondary:\n          \"bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n        ghost: \"hover:bg-accent hover:text-accent-foreground\",\n        link: \"text-primary underline-offset-4 hover:underline\",\n      },\n      size: {\n        default: \"h-10 px-4 py-2\",\n        sm: \"h-9 rounded-md px-3\",\n        lg: \"h-11 rounded-md px-8\",\n        icon: \"h-10 w-10\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n      size: \"default\",\n    },\n  }\n)\n\nexport interface ButtonProps\n  extends React.ButtonHTMLAttributes<HTMLButtonElement>,\n    VariantProps<typeof buttonVariants> {\n  asChild?: boolean\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n  ({ className, variant, size, asChild = false, ...props }, ref) => {\n    const Comp = asChild ? Slot : \"button\"\n    return (\n      <Comp\n        className={cn(buttonVariants({ variant, size, className }))}\n        ref={ref}\n        {...props}\n      />\n    )\n  }\n)\nButton.displayName = \"Button\"\n\nexport { Button, buttonVariants }\n"
  },
  {
    "path": "frontend/components/ui/calendar.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { ChevronLeft, ChevronRight } from \"lucide-react\"\nimport { DayPicker } from \"react-day-picker\"\n\nimport { cn } from \"@/lib/utils\"\nimport { buttonVariants } from \"@/components/ui/button\"\n\nexport type CalendarProps = React.ComponentProps<typeof DayPicker>\n\nfunction Calendar({\n  className,\n  classNames,\n  showOutsideDays = true,\n  ...props\n}: CalendarProps) {\n  return (\n    <DayPicker\n      showOutsideDays={showOutsideDays}\n      className={cn(\"p-3\", className)}\n      classNames={{\n        months: \"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0\",\n        month: \"space-y-4\",\n        caption: \"flex justify-center pt-1 relative items-center\",\n        caption_label: \"text-sm font-medium\",\n        nav: \"space-x-1 flex items-center\",\n        nav_button: cn(\n          buttonVariants({ variant: \"outline\" }),\n          \"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100\"\n        ),\n        nav_button_previous: \"absolute left-1\",\n        nav_button_next: \"absolute right-1\",\n        table: \"w-full border-collapse space-y-1\",\n        head_row: \"flex\",\n        head_cell:\n          \"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]\",\n        row: \"flex w-full mt-2\",\n        cell: \"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20\",\n        day: cn(\n          buttonVariants({ variant: \"ghost\" }),\n          \"h-9 w-9 p-0 font-normal aria-selected:opacity-100\"\n        ),\n        day_range_end: \"day-range-end\",\n        day_selected:\n          \"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground\",\n        day_today: \"bg-accent text-accent-foreground\",\n        day_outside:\n          \"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground\",\n        day_disabled: \"text-muted-foreground opacity-50\",\n        day_range_middle:\n          \"aria-selected:bg-accent aria-selected:text-accent-foreground\",\n        day_hidden: \"invisible\",\n        ...classNames,\n      }}\n      components={{\n        IconLeft: ({ ...props }) => <ChevronLeft className=\"h-4 w-4\" />,\n        IconRight: ({ ...props }) => <ChevronRight className=\"h-4 w-4\" />,\n      }}\n      {...props}\n    />\n  )\n}\nCalendar.displayName = \"Calendar\"\n\nexport { Calendar }\n"
  },
  {
    "path": "frontend/components/ui/card.tsx",
    "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Card = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\n      \"rounded-lg border bg-card text-card-foreground shadow-sm\",\n      className\n    )}\n    {...props}\n  />\n))\nCard.displayName = \"Card\"\n\nconst CardHeader = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\"flex flex-col space-y-1.5 p-6\", className)}\n    {...props}\n  />\n))\nCardHeader.displayName = \"CardHeader\"\n\nconst CardTitle = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\n      \"font-semibold leading-none tracking-tight\",\n      className\n    )}\n    {...props}\n  />\n))\nCardTitle.displayName = \"CardTitle\"\n\nconst CardDescription = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\"text-sm text-muted-foreground\", className)}\n    {...props}\n  />\n))\nCardDescription.displayName = \"CardDescription\"\n\nconst CardContent = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n  <div ref={ref} className={cn(\"p-6 pt-0\", className)} {...props} />\n))\nCardContent.displayName = \"CardContent\"\n\nconst CardFooter = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\"flex items-center p-6 pt-0\", className)}\n    {...props}\n  />\n))\nCardFooter.displayName = \"CardFooter\"\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }\n"
  },
  {
    "path": "frontend/components/ui/carousel.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport useEmblaCarousel, {\n  type UseEmblaCarouselType,\n} from \"embla-carousel-react\"\nimport { ArrowLeft, ArrowRight } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Button } from \"@/components/ui/button\"\n\ntype CarouselApi = UseEmblaCarouselType[1]\ntype UseCarouselParameters = Parameters<typeof useEmblaCarousel>\ntype CarouselOptions = UseCarouselParameters[0]\ntype CarouselPlugin = UseCarouselParameters[1]\n\ntype CarouselProps = {\n  opts?: CarouselOptions\n  plugins?: CarouselPlugin\n  orientation?: \"horizontal\" | \"vertical\"\n  setApi?: (api: CarouselApi) => void\n}\n\ntype CarouselContextProps = {\n  carouselRef: ReturnType<typeof useEmblaCarousel>[0]\n  api: ReturnType<typeof useEmblaCarousel>[1]\n  scrollPrev: () => void\n  scrollNext: () => void\n  canScrollPrev: boolean\n  canScrollNext: boolean\n} & CarouselProps\n\nconst CarouselContext = React.createContext<CarouselContextProps | null>(null)\n\nfunction useCarousel() {\n  const context = React.useContext(CarouselContext)\n\n  if (!context) {\n    throw new Error(\"useCarousel must be used within a <Carousel />\")\n  }\n\n  return context\n}\n\nconst Carousel = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement> & CarouselProps\n>(\n  (\n    {\n      orientation = \"horizontal\",\n      opts,\n      setApi,\n      plugins,\n      className,\n      children,\n      ...props\n    },\n    ref\n  ) => {\n    const [carouselRef, api] = useEmblaCarousel(\n      {\n        ...opts,\n        axis: orientation === \"horizontal\" ? \"x\" : \"y\",\n      },\n      plugins\n    )\n    const [canScrollPrev, setCanScrollPrev] = React.useState(false)\n    const [canScrollNext, setCanScrollNext] = React.useState(false)\n\n    const onSelect = React.useCallback((api: CarouselApi) => {\n      if (!api) {\n        return\n      }\n\n      setCanScrollPrev(api.canScrollPrev())\n      setCanScrollNext(api.canScrollNext())\n    }, [])\n\n    const scrollPrev = React.useCallback(() => {\n      api?.scrollPrev()\n    }, [api])\n\n    const scrollNext = React.useCallback(() => {\n      api?.scrollNext()\n    }, [api])\n\n    const handleKeyDown = React.useCallback(\n      (event: React.KeyboardEvent<HTMLDivElement>) => {\n        if (event.key === \"ArrowLeft\") {\n          event.preventDefault()\n          scrollPrev()\n        } else if (event.key === \"ArrowRight\") {\n          event.preventDefault()\n          scrollNext()\n        }\n      },\n      [scrollPrev, scrollNext]\n    )\n\n    React.useEffect(() => {\n      if (!api || !setApi) {\n        return\n      }\n\n      setApi(api)\n    }, [api, setApi])\n\n    React.useEffect(() => {\n      if (!api) {\n        return\n      }\n\n      onSelect(api)\n      api.on(\"reInit\", onSelect)\n      api.on(\"select\", onSelect)\n\n      return () => {\n        api?.off(\"select\", onSelect)\n      }\n    }, [api, onSelect])\n\n    return (\n      <CarouselContext.Provider\n        value={{\n          carouselRef,\n          api: api,\n          opts,\n          orientation:\n            orientation || (opts?.axis === \"y\" ? \"vertical\" : \"horizontal\"),\n          scrollPrev,\n          scrollNext,\n          canScrollPrev,\n          canScrollNext,\n        }}\n      >\n        <div\n          ref={ref}\n          onKeyDownCapture={handleKeyDown}\n          className={cn(\"relative\", className)}\n          role=\"region\"\n          aria-roledescription=\"carousel\"\n          {...props}\n        >\n          {children}\n        </div>\n      </CarouselContext.Provider>\n    )\n  }\n)\nCarousel.displayName = \"Carousel\"\n\nconst CarouselContent = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => {\n  const { carouselRef, orientation } = useCarousel()\n\n  return (\n    <div ref={carouselRef} className=\"overflow-hidden\">\n      <div\n        ref={ref}\n        className={cn(\n          \"flex\",\n          orientation === \"horizontal\" ? \"-ml-4\" : \"-mt-4 flex-col\",\n          className\n        )}\n        {...props}\n      />\n    </div>\n  )\n})\nCarouselContent.displayName = \"CarouselContent\"\n\nconst CarouselItem = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => {\n  const { orientation } = useCarousel()\n\n  return (\n    <div\n      ref={ref}\n      role=\"group\"\n      aria-roledescription=\"slide\"\n      className={cn(\n        \"min-w-0 shrink-0 grow-0 basis-full\",\n        orientation === \"horizontal\" ? \"pl-4\" : \"pt-4\",\n        className\n      )}\n      {...props}\n    />\n  )\n})\nCarouselItem.displayName = \"CarouselItem\"\n\nconst CarouselPrevious = React.forwardRef<\n  HTMLButtonElement,\n  React.ComponentProps<typeof Button>\n>(({ className, variant = \"outline\", size = \"icon\", ...props }, ref) => {\n  const { orientation, scrollPrev, canScrollPrev } = useCarousel()\n\n  return (\n    <Button\n      ref={ref}\n      variant={variant}\n      size={size}\n      className={cn(\n        \"absolute  h-8 w-8 rounded-full\",\n        orientation === \"horizontal\"\n          ? \"-left-12 top-1/2 -translate-y-1/2\"\n          : \"-top-12 left-1/2 -translate-x-1/2 rotate-90\",\n        className\n      )}\n      disabled={!canScrollPrev}\n      onClick={scrollPrev}\n      {...props}\n    >\n      <ArrowLeft className=\"h-4 w-4\" />\n      <span className=\"sr-only\">Previous slide</span>\n    </Button>\n  )\n})\nCarouselPrevious.displayName = \"CarouselPrevious\"\n\nconst CarouselNext = React.forwardRef<\n  HTMLButtonElement,\n  React.ComponentProps<typeof Button>\n>(({ className, variant = \"outline\", size = \"icon\", ...props }, ref) => {\n  const { orientation, scrollNext, canScrollNext } = useCarousel()\n\n  return (\n    <Button\n      ref={ref}\n      variant={variant}\n      size={size}\n      className={cn(\n        \"absolute h-8 w-8 rounded-full\",\n        orientation === \"horizontal\"\n          ? \"-right-12 top-1/2 -translate-y-1/2\"\n          : \"-bottom-12 left-1/2 -translate-x-1/2 rotate-90\",\n        className\n      )}\n      disabled={!canScrollNext}\n      onClick={scrollNext}\n      {...props}\n    >\n      <ArrowRight className=\"h-4 w-4\" />\n      <span className=\"sr-only\">Next slide</span>\n    </Button>\n  )\n})\nCarouselNext.displayName = \"CarouselNext\"\n\nexport {\n  type CarouselApi,\n  Carousel,\n  CarouselContent,\n  CarouselItem,\n  CarouselPrevious,\n  CarouselNext,\n}\n"
  },
  {
    "path": "frontend/components/ui/chart.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as RechartsPrimitive from \"recharts\"\n\nimport { cn } from \"@/lib/utils\"\n\n// Format: { THEME_NAME: CSS_SELECTOR }\nconst THEMES = { light: \"\", dark: \".dark\" } as const\n\nexport type ChartConfig = {\n  [k in string]: {\n    label?: React.ReactNode\n    icon?: React.ComponentType\n  } & (\n    | { color?: string; theme?: never }\n    | { color?: never; theme: Record<keyof typeof THEMES, string> }\n  )\n}\n\ntype ChartContextProps = {\n  config: ChartConfig\n}\n\nconst ChartContext = React.createContext<ChartContextProps | null>(null)\n\nfunction useChart() {\n  const context = React.useContext(ChartContext)\n\n  if (!context) {\n    throw new Error(\"useChart must be used within a <ChartContainer />\")\n  }\n\n  return context\n}\n\nconst ChartContainer = React.forwardRef<\n  HTMLDivElement,\n  React.ComponentProps<\"div\"> & {\n    config: ChartConfig\n    children: React.ComponentProps<\n      typeof RechartsPrimitive.ResponsiveContainer\n    >[\"children\"]\n  }\n>(({ id, className, children, config, ...props }, ref) => {\n  const uniqueId = React.useId()\n  const chartId = `chart-${id || uniqueId.replace(/:/g, \"\")}`\n\n  return (\n    <ChartContext.Provider value={{ config }}>\n      <div\n        data-chart={chartId}\n        ref={ref}\n        className={cn(\n          \"flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none\",\n          className\n        )}\n        {...props}\n      >\n        <ChartStyle id={chartId} config={config} />\n        <RechartsPrimitive.ResponsiveContainer>\n          {children}\n        </RechartsPrimitive.ResponsiveContainer>\n      </div>\n    </ChartContext.Provider>\n  )\n})\nChartContainer.displayName = \"Chart\"\n\nconst ChartStyle = ({ id, config }: { id: string; config: ChartConfig }) => {\n  const colorConfig = Object.entries(config).filter(\n    ([_, config]) => config.theme || config.color\n  )\n\n  if (!colorConfig.length) {\n    return null\n  }\n\n  return (\n    <style\n      dangerouslySetInnerHTML={{\n        __html: Object.entries(THEMES)\n          .map(\n            ([theme, prefix]) => `\n${prefix} [data-chart=${id}] {\n${colorConfig\n  .map(([key, itemConfig]) => {\n    const color =\n      itemConfig.theme?.[theme as keyof typeof itemConfig.theme] ||\n      itemConfig.color\n    return color ? `  --color-${key}: ${color};` : null\n  })\n  .join(\"\\n\")}\n}\n`\n          )\n          .join(\"\\n\"),\n      }}\n    />\n  )\n}\n\nconst ChartTooltip = RechartsPrimitive.Tooltip\n\nconst ChartTooltipContent = React.forwardRef<\n  HTMLDivElement,\n  React.ComponentProps<typeof RechartsPrimitive.Tooltip> &\n    React.ComponentProps<\"div\"> & {\n      hideLabel?: boolean\n      hideIndicator?: boolean\n      indicator?: \"line\" | \"dot\" | \"dashed\"\n      nameKey?: string\n      labelKey?: string\n    }\n>(\n  (\n    {\n      active,\n      payload,\n      className,\n      indicator = \"dot\",\n      hideLabel = false,\n      hideIndicator = false,\n      label,\n      labelFormatter,\n      labelClassName,\n      formatter,\n      color,\n      nameKey,\n      labelKey,\n    },\n    ref\n  ) => {\n    const { config } = useChart()\n\n    const tooltipLabel = React.useMemo(() => {\n      if (hideLabel || !payload?.length) {\n        return null\n      }\n\n      const [item] = payload\n      const key = `${labelKey || item.dataKey || item.name || \"value\"}`\n      const itemConfig = getPayloadConfigFromPayload(config, item, key)\n      const value =\n        !labelKey && typeof label === \"string\"\n          ? config[label as keyof typeof config]?.label || label\n          : itemConfig?.label\n\n      if (labelFormatter) {\n        return (\n          <div className={cn(\"font-medium\", labelClassName)}>\n            {labelFormatter(value, payload)}\n          </div>\n        )\n      }\n\n      if (!value) {\n        return null\n      }\n\n      return <div className={cn(\"font-medium\", labelClassName)}>{value}</div>\n    }, [\n      label,\n      labelFormatter,\n      payload,\n      hideLabel,\n      labelClassName,\n      config,\n      labelKey,\n    ])\n\n    if (!active || !payload?.length) {\n      return null\n    }\n\n    const nestLabel = payload.length === 1 && indicator !== \"dot\"\n\n    return (\n      <div\n        ref={ref}\n        className={cn(\n          \"grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl\",\n          className\n        )}\n      >\n        {!nestLabel ? tooltipLabel : null}\n        <div className=\"grid gap-1.5\">\n          {payload.map((item, index) => {\n            const key = `${nameKey || item.name || item.dataKey || \"value\"}`\n            const itemConfig = getPayloadConfigFromPayload(config, item, key)\n            const indicatorColor = color || item.payload.fill || item.color\n\n            return (\n              <div\n                key={item.dataKey}\n                className={cn(\n                  \"flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground\",\n                  indicator === \"dot\" && \"items-center\"\n                )}\n              >\n                {formatter && item?.value !== undefined && item.name ? (\n                  formatter(item.value, item.name, item, index, item.payload)\n                ) : (\n                  <>\n                    {itemConfig?.icon ? (\n                      <itemConfig.icon />\n                    ) : (\n                      !hideIndicator && (\n                        <div\n                          className={cn(\n                            \"shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]\",\n                            {\n                              \"h-2.5 w-2.5\": indicator === \"dot\",\n                              \"w-1\": indicator === \"line\",\n                              \"w-0 border-[1.5px] border-dashed bg-transparent\":\n                                indicator === \"dashed\",\n                              \"my-0.5\": nestLabel && indicator === \"dashed\",\n                            }\n                          )}\n                          style={\n                            {\n                              \"--color-bg\": indicatorColor,\n                              \"--color-border\": indicatorColor,\n                            } as React.CSSProperties\n                          }\n                        />\n                      )\n                    )}\n                    <div\n                      className={cn(\n                        \"flex flex-1 justify-between leading-none\",\n                        nestLabel ? \"items-end\" : \"items-center\"\n                      )}\n                    >\n                      <div className=\"grid gap-1.5\">\n                        {nestLabel ? tooltipLabel : null}\n                        <span className=\"text-muted-foreground\">\n                          {itemConfig?.label || item.name}\n                        </span>\n                      </div>\n                      {item.value && (\n                        <span className=\"font-mono font-medium tabular-nums text-foreground\">\n                          {item.value.toLocaleString()}\n                        </span>\n                      )}\n                    </div>\n                  </>\n                )}\n              </div>\n            )\n          })}\n        </div>\n      </div>\n    )\n  }\n)\nChartTooltipContent.displayName = \"ChartTooltip\"\n\nconst ChartLegend = RechartsPrimitive.Legend\n\nconst ChartLegendContent = React.forwardRef<\n  HTMLDivElement,\n  React.ComponentProps<\"div\"> &\n    Pick<RechartsPrimitive.LegendProps, \"payload\" | \"verticalAlign\"> & {\n      hideIcon?: boolean\n      nameKey?: string\n    }\n>(\n  (\n    { className, hideIcon = false, payload, verticalAlign = \"bottom\", nameKey },\n    ref\n  ) => {\n    const { config } = useChart()\n\n    if (!payload?.length) {\n      return null\n    }\n\n    return (\n      <div\n        ref={ref}\n        className={cn(\n          \"flex items-center justify-center gap-4\",\n          verticalAlign === \"top\" ? \"pb-3\" : \"pt-3\",\n          className\n        )}\n      >\n        {payload.map((item) => {\n          const key = `${nameKey || item.dataKey || \"value\"}`\n          const itemConfig = getPayloadConfigFromPayload(config, item, key)\n\n          return (\n            <div\n              key={item.value}\n              className={cn(\n                \"flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground\"\n              )}\n            >\n              {itemConfig?.icon && !hideIcon ? (\n                <itemConfig.icon />\n              ) : (\n                <div\n                  className=\"h-2 w-2 shrink-0 rounded-[2px]\"\n                  style={{\n                    backgroundColor: item.color,\n                  }}\n                />\n              )}\n              {itemConfig?.label}\n            </div>\n          )\n        })}\n      </div>\n    )\n  }\n)\nChartLegendContent.displayName = \"ChartLegend\"\n\n// Helper to extract item config from a payload.\nfunction getPayloadConfigFromPayload(\n  config: ChartConfig,\n  payload: unknown,\n  key: string\n) {\n  if (typeof payload !== \"object\" || payload === null) {\n    return undefined\n  }\n\n  const payloadPayload =\n    \"payload\" in payload &&\n    typeof payload.payload === \"object\" &&\n    payload.payload !== null\n      ? payload.payload\n      : undefined\n\n  let configLabelKey: string = key\n\n  if (\n    key in payload &&\n    typeof payload[key as keyof typeof payload] === \"string\"\n  ) {\n    configLabelKey = payload[key as keyof typeof payload] as string\n  } else if (\n    payloadPayload &&\n    key in payloadPayload &&\n    typeof payloadPayload[key as keyof typeof payloadPayload] === \"string\"\n  ) {\n    configLabelKey = payloadPayload[\n      key as keyof typeof payloadPayload\n    ] as string\n  }\n\n  return configLabelKey in config\n    ? config[configLabelKey]\n    : config[key as keyof typeof config]\n}\n\nexport {\n  ChartContainer,\n  ChartTooltip,\n  ChartTooltipContent,\n  ChartLegend,\n  ChartLegendContent,\n  ChartStyle,\n}\n"
  },
  {
    "path": "frontend/components/ui/checkbox.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as CheckboxPrimitive from \"@radix-ui/react-checkbox\"\nimport { Check } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Checkbox = React.forwardRef<\n  React.ElementRef<typeof CheckboxPrimitive.Root>,\n  React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>\n>(({ className, ...props }, ref) => (\n  <CheckboxPrimitive.Root\n    ref={ref}\n    className={cn(\n      \"peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground\",\n      className\n    )}\n    {...props}\n  >\n    <CheckboxPrimitive.Indicator\n      className={cn(\"flex items-center justify-center text-current\")}\n    >\n      <Check className=\"h-4 w-4\" />\n    </CheckboxPrimitive.Indicator>\n  </CheckboxPrimitive.Root>\n))\nCheckbox.displayName = CheckboxPrimitive.Root.displayName\n\nexport { Checkbox }\n"
  },
  {
    "path": "frontend/components/ui/collapsible.tsx",
    "content": "\"use client\"\n\nimport * as CollapsiblePrimitive from \"@radix-ui/react-collapsible\"\n\nconst Collapsible = CollapsiblePrimitive.Root\n\nconst CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger\n\nconst CollapsibleContent = CollapsiblePrimitive.CollapsibleContent\n\nexport { Collapsible, CollapsibleTrigger, CollapsibleContent }\n"
  },
  {
    "path": "frontend/components/ui/command.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { type DialogProps } from \"@radix-ui/react-dialog\"\nimport { Command as CommandPrimitive } from \"cmdk\"\nimport { Search } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Dialog, DialogContent } from \"@/components/ui/dialog\"\n\nconst Command = React.forwardRef<\n  React.ElementRef<typeof CommandPrimitive>,\n  React.ComponentPropsWithoutRef<typeof CommandPrimitive>\n>(({ className, ...props }, ref) => (\n  <CommandPrimitive\n    ref={ref}\n    className={cn(\n      \"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground\",\n      className\n    )}\n    {...props}\n  />\n))\nCommand.displayName = CommandPrimitive.displayName\n\nconst CommandDialog = ({ children, ...props }: DialogProps) => {\n  return (\n    <Dialog {...props}>\n      <DialogContent className=\"overflow-hidden p-0 shadow-lg\">\n        <Command className=\"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5\">\n          {children}\n        </Command>\n      </DialogContent>\n    </Dialog>\n  )\n}\n\nconst CommandInput = React.forwardRef<\n  React.ElementRef<typeof CommandPrimitive.Input>,\n  React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>\n>(({ className, ...props }, ref) => (\n  <div className=\"flex items-center border-b px-3\" cmdk-input-wrapper=\"\">\n    <Search className=\"mr-2 h-4 w-4 shrink-0 opacity-50\" />\n    <CommandPrimitive.Input\n      ref={ref}\n      className={cn(\n        \"flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50\",\n        className\n      )}\n      {...props}\n    />\n  </div>\n))\n\nCommandInput.displayName = CommandPrimitive.Input.displayName\n\nconst CommandList = React.forwardRef<\n  React.ElementRef<typeof CommandPrimitive.List>,\n  React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>\n>(({ className, ...props }, ref) => (\n  <CommandPrimitive.List\n    ref={ref}\n    className={cn(\"max-h-[300px] overflow-y-auto overflow-x-hidden\", className)}\n    {...props}\n  />\n))\n\nCommandList.displayName = CommandPrimitive.List.displayName\n\nconst CommandEmpty = React.forwardRef<\n  React.ElementRef<typeof CommandPrimitive.Empty>,\n  React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>\n>((props, ref) => (\n  <CommandPrimitive.Empty\n    ref={ref}\n    className=\"py-6 text-center text-sm\"\n    {...props}\n  />\n))\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName\n\nconst CommandGroup = React.forwardRef<\n  React.ElementRef<typeof CommandPrimitive.Group>,\n  React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>\n>(({ className, ...props }, ref) => (\n  <CommandPrimitive.Group\n    ref={ref}\n    className={cn(\n      \"overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground\",\n      className\n    )}\n    {...props}\n  />\n))\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName\n\nconst CommandSeparator = React.forwardRef<\n  React.ElementRef<typeof CommandPrimitive.Separator>,\n  React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n  <CommandPrimitive.Separator\n    ref={ref}\n    className={cn(\"-mx-1 h-px bg-border\", className)}\n    {...props}\n  />\n))\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName\n\nconst CommandItem = React.forwardRef<\n  React.ElementRef<typeof CommandPrimitive.Item>,\n  React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>\n>(({ className, ...props }, ref) => (\n  <CommandPrimitive.Item\n    ref={ref}\n    className={cn(\n      \"relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0\",\n      className\n    )}\n    {...props}\n  />\n))\n\nCommandItem.displayName = CommandPrimitive.Item.displayName\n\nconst CommandShortcut = ({\n  className,\n  ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n  return (\n    <span\n      className={cn(\n        \"ml-auto text-xs tracking-widest text-muted-foreground\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\nCommandShortcut.displayName = \"CommandShortcut\"\n\nexport {\n  Command,\n  CommandDialog,\n  CommandInput,\n  CommandList,\n  CommandEmpty,\n  CommandGroup,\n  CommandItem,\n  CommandShortcut,\n  CommandSeparator,\n}\n"
  },
  {
    "path": "frontend/components/ui/context-menu.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as ContextMenuPrimitive from \"@radix-ui/react-context-menu\"\nimport { Check, ChevronRight, Circle } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst ContextMenu = ContextMenuPrimitive.Root\n\nconst ContextMenuTrigger = ContextMenuPrimitive.Trigger\n\nconst ContextMenuGroup = ContextMenuPrimitive.Group\n\nconst ContextMenuPortal = ContextMenuPrimitive.Portal\n\nconst ContextMenuSub = ContextMenuPrimitive.Sub\n\nconst ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup\n\nconst ContextMenuSubTrigger = React.forwardRef<\n  React.ElementRef<typeof ContextMenuPrimitive.SubTrigger>,\n  React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubTrigger> & {\n    inset?: boolean\n  }\n>(({ className, inset, children, ...props }, ref) => (\n  <ContextMenuPrimitive.SubTrigger\n    ref={ref}\n    className={cn(\n      \"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground\",\n      inset && \"pl-8\",\n      className\n    )}\n    {...props}\n  >\n    {children}\n    <ChevronRight className=\"ml-auto h-4 w-4\" />\n  </ContextMenuPrimitive.SubTrigger>\n))\nContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName\n\nconst ContextMenuSubContent = React.forwardRef<\n  React.ElementRef<typeof ContextMenuPrimitive.SubContent>,\n  React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n  <ContextMenuPrimitive.SubContent\n    ref={ref}\n    className={cn(\n      \"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n      className\n    )}\n    {...props}\n  />\n))\nContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName\n\nconst ContextMenuContent = React.forwardRef<\n  React.ElementRef<typeof ContextMenuPrimitive.Content>,\n  React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Content>\n>(({ className, ...props }, ref) => (\n  <ContextMenuPrimitive.Portal>\n    <ContextMenuPrimitive.Content\n      ref={ref}\n      className={cn(\n        \"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n        className\n      )}\n      {...props}\n    />\n  </ContextMenuPrimitive.Portal>\n))\nContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName\n\nconst ContextMenuItem = React.forwardRef<\n  React.ElementRef<typeof ContextMenuPrimitive.Item>,\n  React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item> & {\n    inset?: boolean\n  }\n>(({ className, inset, ...props }, ref) => (\n  <ContextMenuPrimitive.Item\n    ref={ref}\n    className={cn(\n      \"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n      inset && \"pl-8\",\n      className\n    )}\n    {...props}\n  />\n))\nContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName\n\nconst ContextMenuCheckboxItem = React.forwardRef<\n  React.ElementRef<typeof ContextMenuPrimitive.CheckboxItem>,\n  React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n  <ContextMenuPrimitive.CheckboxItem\n    ref={ref}\n    className={cn(\n      \"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n      className\n    )}\n    checked={checked}\n    {...props}\n  >\n    <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n      <ContextMenuPrimitive.ItemIndicator>\n        <Check className=\"h-4 w-4\" />\n      </ContextMenuPrimitive.ItemIndicator>\n    </span>\n    {children}\n  </ContextMenuPrimitive.CheckboxItem>\n))\nContextMenuCheckboxItem.displayName =\n  ContextMenuPrimitive.CheckboxItem.displayName\n\nconst ContextMenuRadioItem = React.forwardRef<\n  React.ElementRef<typeof ContextMenuPrimitive.RadioItem>,\n  React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n  <ContextMenuPrimitive.RadioItem\n    ref={ref}\n    className={cn(\n      \"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n      className\n    )}\n    {...props}\n  >\n    <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n      <ContextMenuPrimitive.ItemIndicator>\n        <Circle className=\"h-2 w-2 fill-current\" />\n      </ContextMenuPrimitive.ItemIndicator>\n    </span>\n    {children}\n  </ContextMenuPrimitive.RadioItem>\n))\nContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName\n\nconst ContextMenuLabel = React.forwardRef<\n  React.ElementRef<typeof ContextMenuPrimitive.Label>,\n  React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Label> & {\n    inset?: boolean\n  }\n>(({ className, inset, ...props }, ref) => (\n  <ContextMenuPrimitive.Label\n    ref={ref}\n    className={cn(\n      \"px-2 py-1.5 text-sm font-semibold text-foreground\",\n      inset && \"pl-8\",\n      className\n    )}\n    {...props}\n  />\n))\nContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName\n\nconst ContextMenuSeparator = React.forwardRef<\n  React.ElementRef<typeof ContextMenuPrimitive.Separator>,\n  React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n  <ContextMenuPrimitive.Separator\n    ref={ref}\n    className={cn(\"-mx-1 my-1 h-px bg-border\", className)}\n    {...props}\n  />\n))\nContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName\n\nconst ContextMenuShortcut = ({\n  className,\n  ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n  return (\n    <span\n      className={cn(\n        \"ml-auto text-xs tracking-widest text-muted-foreground\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\nContextMenuShortcut.displayName = \"ContextMenuShortcut\"\n\nexport {\n  ContextMenu,\n  ContextMenuTrigger,\n  ContextMenuContent,\n  ContextMenuItem,\n  ContextMenuCheckboxItem,\n  ContextMenuRadioItem,\n  ContextMenuLabel,\n  ContextMenuSeparator,\n  ContextMenuShortcut,\n  ContextMenuGroup,\n  ContextMenuPortal,\n  ContextMenuSub,\n  ContextMenuSubContent,\n  ContextMenuSubTrigger,\n  ContextMenuRadioGroup,\n}\n"
  },
  {
    "path": "frontend/components/ui/dialog.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\"\nimport { X } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Dialog = DialogPrimitive.Root\n\nconst DialogTrigger = DialogPrimitive.Trigger\n\nconst DialogPortal = DialogPrimitive.Portal\n\nconst DialogClose = DialogPrimitive.Close\n\nconst DialogOverlay = React.forwardRef<\n  React.ElementRef<typeof DialogPrimitive.Overlay>,\n  React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n  <DialogPrimitive.Overlay\n    ref={ref}\n    className={cn(\n      \"fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n      className\n    )}\n    {...props}\n  />\n))\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName\n\nconst DialogContent = React.forwardRef<\n  React.ElementRef<typeof DialogPrimitive.Content>,\n  React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n  <DialogPortal>\n    <DialogOverlay />\n    <DialogPrimitive.Content\n      ref={ref}\n      className={cn(\n        \"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg\",\n        className\n      )}\n      {...props}\n    >\n      {children}\n      <DialogPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground\">\n        <X className=\"h-4 w-4\" />\n        <span className=\"sr-only\">Close</span>\n      </DialogPrimitive.Close>\n    </DialogPrimitive.Content>\n  </DialogPortal>\n))\nDialogContent.displayName = DialogPrimitive.Content.displayName\n\nconst DialogHeader = ({\n  className,\n  ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n  <div\n    className={cn(\n      \"flex flex-col space-y-1.5 text-center sm:text-left\",\n      className\n    )}\n    {...props}\n  />\n)\nDialogHeader.displayName = \"DialogHeader\"\n\nconst DialogFooter = ({\n  className,\n  ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n  <div\n    className={cn(\n      \"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\",\n      className\n    )}\n    {...props}\n  />\n)\nDialogFooter.displayName = \"DialogFooter\"\n\nconst DialogTitle = React.forwardRef<\n  React.ElementRef<typeof DialogPrimitive.Title>,\n  React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n  <DialogPrimitive.Title\n    ref={ref}\n    className={cn(\n      \"text-lg font-semibold leading-none tracking-tight\",\n      className\n    )}\n    {...props}\n  />\n))\nDialogTitle.displayName = DialogPrimitive.Title.displayName\n\nconst DialogDescription = React.forwardRef<\n  React.ElementRef<typeof DialogPrimitive.Description>,\n  React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n  <DialogPrimitive.Description\n    ref={ref}\n    className={cn(\"text-sm text-muted-foreground\", className)}\n    {...props}\n  />\n))\nDialogDescription.displayName = DialogPrimitive.Description.displayName\n\nexport {\n  Dialog,\n  DialogPortal,\n  DialogOverlay,\n  DialogClose,\n  DialogTrigger,\n  DialogContent,\n  DialogHeader,\n  DialogFooter,\n  DialogTitle,\n  DialogDescription,\n}\n"
  },
  {
    "path": "frontend/components/ui/drawer.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Drawer as DrawerPrimitive } from \"vaul\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Drawer = ({\n  shouldScaleBackground = true,\n  ...props\n}: React.ComponentProps<typeof DrawerPrimitive.Root>) => (\n  <DrawerPrimitive.Root\n    shouldScaleBackground={shouldScaleBackground}\n    {...props}\n  />\n)\nDrawer.displayName = \"Drawer\"\n\nconst DrawerTrigger = DrawerPrimitive.Trigger\n\nconst DrawerPortal = DrawerPrimitive.Portal\n\nconst DrawerClose = DrawerPrimitive.Close\n\nconst DrawerOverlay = React.forwardRef<\n  React.ElementRef<typeof DrawerPrimitive.Overlay>,\n  React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n  <DrawerPrimitive.Overlay\n    ref={ref}\n    className={cn(\"fixed inset-0 z-50 bg-black/80\", className)}\n    {...props}\n  />\n))\nDrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName\n\nconst DrawerContent = React.forwardRef<\n  React.ElementRef<typeof DrawerPrimitive.Content>,\n  React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n  <DrawerPortal>\n    <DrawerOverlay />\n    <DrawerPrimitive.Content\n      ref={ref}\n      className={cn(\n        \"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background\",\n        className\n      )}\n      {...props}\n    >\n      <div className=\"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted\" />\n      {children}\n    </DrawerPrimitive.Content>\n  </DrawerPortal>\n))\nDrawerContent.displayName = \"DrawerContent\"\n\nconst DrawerHeader = ({\n  className,\n  ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n  <div\n    className={cn(\"grid gap-1.5 p-4 text-center sm:text-left\", className)}\n    {...props}\n  />\n)\nDrawerHeader.displayName = \"DrawerHeader\"\n\nconst DrawerFooter = ({\n  className,\n  ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n  <div\n    className={cn(\"mt-auto flex flex-col gap-2 p-4\", className)}\n    {...props}\n  />\n)\nDrawerFooter.displayName = \"DrawerFooter\"\n\nconst DrawerTitle = React.forwardRef<\n  React.ElementRef<typeof DrawerPrimitive.Title>,\n  React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title>\n>(({ className, ...props }, ref) => (\n  <DrawerPrimitive.Title\n    ref={ref}\n    className={cn(\n      \"text-lg font-semibold leading-none tracking-tight\",\n      className\n    )}\n    {...props}\n  />\n))\nDrawerTitle.displayName = DrawerPrimitive.Title.displayName\n\nconst DrawerDescription = React.forwardRef<\n  React.ElementRef<typeof DrawerPrimitive.Description>,\n  React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description>\n>(({ className, ...props }, ref) => (\n  <DrawerPrimitive.Description\n    ref={ref}\n    className={cn(\"text-sm text-muted-foreground\", className)}\n    {...props}\n  />\n))\nDrawerDescription.displayName = DrawerPrimitive.Description.displayName\n\nexport {\n  Drawer,\n  DrawerPortal,\n  DrawerOverlay,\n  DrawerTrigger,\n  DrawerClose,\n  DrawerContent,\n  DrawerHeader,\n  DrawerFooter,\n  DrawerTitle,\n  DrawerDescription,\n}\n"
  },
  {
    "path": "frontend/components/ui/dropdown-menu.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\"\nimport { Check, ChevronRight, Circle } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst DropdownMenu = DropdownMenuPrimitive.Root\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n  React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n  React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {\n    inset?: boolean\n  }\n>(({ className, inset, children, ...props }, ref) => (\n  <DropdownMenuPrimitive.SubTrigger\n    ref={ref}\n    className={cn(\n      \"flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0\",\n      inset && \"pl-8\",\n      className\n    )}\n    {...props}\n  >\n    {children}\n    <ChevronRight className=\"ml-auto\" />\n  </DropdownMenuPrimitive.SubTrigger>\n))\nDropdownMenuSubTrigger.displayName =\n  DropdownMenuPrimitive.SubTrigger.displayName\n\nconst DropdownMenuSubContent = React.forwardRef<\n  React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n  React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n  <DropdownMenuPrimitive.SubContent\n    ref={ref}\n    className={cn(\n      \"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n      className\n    )}\n    {...props}\n  />\n))\nDropdownMenuSubContent.displayName =\n  DropdownMenuPrimitive.SubContent.displayName\n\nconst DropdownMenuContent = React.forwardRef<\n  React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n  React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n  <DropdownMenuPrimitive.Portal>\n    <DropdownMenuPrimitive.Content\n      ref={ref}\n      sideOffset={sideOffset}\n      className={cn(\n        \"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n        className\n      )}\n      {...props}\n    />\n  </DropdownMenuPrimitive.Portal>\n))\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName\n\nconst DropdownMenuItem = React.forwardRef<\n  React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n  React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {\n    inset?: boolean\n  }\n>(({ className, inset, ...props }, ref) => (\n  <DropdownMenuPrimitive.Item\n    ref={ref}\n    className={cn(\n      \"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0\",\n      inset && \"pl-8\",\n      className\n    )}\n    {...props}\n  />\n))\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n  React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n  React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n  <DropdownMenuPrimitive.CheckboxItem\n    ref={ref}\n    className={cn(\n      \"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n      className\n    )}\n    checked={checked}\n    {...props}\n  >\n    <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n      <DropdownMenuPrimitive.ItemIndicator>\n        <Check className=\"h-4 w-4\" />\n      </DropdownMenuPrimitive.ItemIndicator>\n    </span>\n    {children}\n  </DropdownMenuPrimitive.CheckboxItem>\n))\nDropdownMenuCheckboxItem.displayName =\n  DropdownMenuPrimitive.CheckboxItem.displayName\n\nconst DropdownMenuRadioItem = React.forwardRef<\n  React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n  React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n  <DropdownMenuPrimitive.RadioItem\n    ref={ref}\n    className={cn(\n      \"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n      className\n    )}\n    {...props}\n  >\n    <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n      <DropdownMenuPrimitive.ItemIndicator>\n        <Circle className=\"h-2 w-2 fill-current\" />\n      </DropdownMenuPrimitive.ItemIndicator>\n    </span>\n    {children}\n  </DropdownMenuPrimitive.RadioItem>\n))\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName\n\nconst DropdownMenuLabel = React.forwardRef<\n  React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n  React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {\n    inset?: boolean\n  }\n>(({ className, inset, ...props }, ref) => (\n  <DropdownMenuPrimitive.Label\n    ref={ref}\n    className={cn(\n      \"px-2 py-1.5 text-sm font-semibold\",\n      inset && \"pl-8\",\n      className\n    )}\n    {...props}\n  />\n))\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName\n\nconst DropdownMenuSeparator = React.forwardRef<\n  React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n  React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n  <DropdownMenuPrimitive.Separator\n    ref={ref}\n    className={cn(\"-mx-1 my-1 h-px bg-muted\", className)}\n    {...props}\n  />\n))\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName\n\nconst DropdownMenuShortcut = ({\n  className,\n  ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n  return (\n    <span\n      className={cn(\"ml-auto text-xs tracking-widest opacity-60\", className)}\n      {...props}\n    />\n  )\n}\nDropdownMenuShortcut.displayName = \"DropdownMenuShortcut\"\n\nexport {\n  DropdownMenu,\n  DropdownMenuTrigger,\n  DropdownMenuContent,\n  DropdownMenuItem,\n  DropdownMenuCheckboxItem,\n  DropdownMenuRadioItem,\n  DropdownMenuLabel,\n  DropdownMenuSeparator,\n  DropdownMenuShortcut,\n  DropdownMenuGroup,\n  DropdownMenuPortal,\n  DropdownMenuSub,\n  DropdownMenuSubContent,\n  DropdownMenuSubTrigger,\n  DropdownMenuRadioGroup,\n}\n"
  },
  {
    "path": "frontend/components/ui/form.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as LabelPrimitive from \"@radix-ui/react-label\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport {\n  Controller,\n  ControllerProps,\n  FieldPath,\n  FieldValues,\n  FormProvider,\n  useFormContext,\n} from \"react-hook-form\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Label } from \"@/components/ui/label\"\n\nconst Form = FormProvider\n\ntype FormFieldContextValue<\n  TFieldValues extends FieldValues = FieldValues,\n  TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n> = {\n  name: TName\n}\n\nconst FormFieldContext = React.createContext<FormFieldContextValue>(\n  {} as FormFieldContextValue\n)\n\nconst FormField = <\n  TFieldValues extends FieldValues = FieldValues,\n  TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n>({\n  ...props\n}: ControllerProps<TFieldValues, TName>) => {\n  return (\n    <FormFieldContext.Provider value={{ name: props.name }}>\n      <Controller {...props} />\n    </FormFieldContext.Provider>\n  )\n}\n\nconst useFormField = () => {\n  const fieldContext = React.useContext(FormFieldContext)\n  const itemContext = React.useContext(FormItemContext)\n  const { getFieldState, formState } = useFormContext()\n\n  const fieldState = getFieldState(fieldContext.name, formState)\n\n  if (!fieldContext) {\n    throw new Error(\"useFormField should be used within <FormField>\")\n  }\n\n  const { id } = itemContext\n\n  return {\n    id,\n    name: fieldContext.name,\n    formItemId: `${id}-form-item`,\n    formDescriptionId: `${id}-form-item-description`,\n    formMessageId: `${id}-form-item-message`,\n    ...fieldState,\n  }\n}\n\ntype FormItemContextValue = {\n  id: string\n}\n\nconst FormItemContext = React.createContext<FormItemContextValue>(\n  {} as FormItemContextValue\n)\n\nconst FormItem = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => {\n  const id = React.useId()\n\n  return (\n    <FormItemContext.Provider value={{ id }}>\n      <div ref={ref} className={cn(\"space-y-2\", className)} {...props} />\n    </FormItemContext.Provider>\n  )\n})\nFormItem.displayName = \"FormItem\"\n\nconst FormLabel = React.forwardRef<\n  React.ElementRef<typeof LabelPrimitive.Root>,\n  React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>\n>(({ className, ...props }, ref) => {\n  const { error, formItemId } = useFormField()\n\n  return (\n    <Label\n      ref={ref}\n      className={cn(error && \"text-destructive\", className)}\n      htmlFor={formItemId}\n      {...props}\n    />\n  )\n})\nFormLabel.displayName = \"FormLabel\"\n\nconst FormControl = React.forwardRef<\n  React.ElementRef<typeof Slot>,\n  React.ComponentPropsWithoutRef<typeof Slot>\n>(({ ...props }, ref) => {\n  const { error, formItemId, formDescriptionId, formMessageId } = useFormField()\n\n  return (\n    <Slot\n      ref={ref}\n      id={formItemId}\n      aria-describedby={\n        !error\n          ? `${formDescriptionId}`\n          : `${formDescriptionId} ${formMessageId}`\n      }\n      aria-invalid={!!error}\n      {...props}\n    />\n  )\n})\nFormControl.displayName = \"FormControl\"\n\nconst FormDescription = React.forwardRef<\n  HTMLParagraphElement,\n  React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => {\n  const { formDescriptionId } = useFormField()\n\n  return (\n    <p\n      ref={ref}\n      id={formDescriptionId}\n      className={cn(\"text-sm text-muted-foreground\", className)}\n      {...props}\n    />\n  )\n})\nFormDescription.displayName = \"FormDescription\"\n\nconst FormMessage = React.forwardRef<\n  HTMLParagraphElement,\n  React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, children, ...props }, ref) => {\n  const { error, formMessageId } = useFormField()\n  const body = error ? String(error?.message) : children\n\n  if (!body) {\n    return null\n  }\n\n  return (\n    <p\n      ref={ref}\n      id={formMessageId}\n      className={cn(\"text-sm font-medium text-destructive\", className)}\n      {...props}\n    >\n      {body}\n    </p>\n  )\n})\nFormMessage.displayName = \"FormMessage\"\n\nexport {\n  useFormField,\n  Form,\n  FormItem,\n  FormLabel,\n  FormControl,\n  FormDescription,\n  FormMessage,\n  FormField,\n}\n"
  },
  {
    "path": "frontend/components/ui/hover-card.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as HoverCardPrimitive from \"@radix-ui/react-hover-card\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst HoverCard = HoverCardPrimitive.Root\n\nconst HoverCardTrigger = HoverCardPrimitive.Trigger\n\nconst HoverCardContent = React.forwardRef<\n  React.ElementRef<typeof HoverCardPrimitive.Content>,\n  React.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n  <HoverCardPrimitive.Content\n    ref={ref}\n    align={align}\n    sideOffset={sideOffset}\n    className={cn(\n      \"z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n      className\n    )}\n    {...props}\n  />\n))\nHoverCardContent.displayName = HoverCardPrimitive.Content.displayName\n\nexport { HoverCard, HoverCardTrigger, HoverCardContent }\n"
  },
  {
    "path": "frontend/components/ui/input-otp.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { OTPInput, OTPInputContext } from \"input-otp\"\nimport { Dot } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst InputOTP = React.forwardRef<\n  React.ElementRef<typeof OTPInput>,\n  React.ComponentPropsWithoutRef<typeof OTPInput>\n>(({ className, containerClassName, ...props }, ref) => (\n  <OTPInput\n    ref={ref}\n    containerClassName={cn(\n      \"flex items-center gap-2 has-[:disabled]:opacity-50\",\n      containerClassName\n    )}\n    className={cn(\"disabled:cursor-not-allowed\", className)}\n    {...props}\n  />\n))\nInputOTP.displayName = \"InputOTP\"\n\nconst InputOTPGroup = React.forwardRef<\n  React.ElementRef<\"div\">,\n  React.ComponentPropsWithoutRef<\"div\">\n>(({ className, ...props }, ref) => (\n  <div ref={ref} className={cn(\"flex items-center\", className)} {...props} />\n))\nInputOTPGroup.displayName = \"InputOTPGroup\"\n\nconst InputOTPSlot = React.forwardRef<\n  React.ElementRef<\"div\">,\n  React.ComponentPropsWithoutRef<\"div\"> & { index: number }\n>(({ index, className, ...props }, ref) => {\n  const inputOTPContext = React.useContext(OTPInputContext)\n  const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index]\n\n  return (\n    <div\n      ref={ref}\n      className={cn(\n        \"relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md\",\n        isActive && \"z-10 ring-2 ring-ring ring-offset-background\",\n        className\n      )}\n      {...props}\n    >\n      {char}\n      {hasFakeCaret && (\n        <div className=\"pointer-events-none absolute inset-0 flex items-center justify-center\">\n          <div className=\"h-4 w-px animate-caret-blink bg-foreground duration-1000\" />\n        </div>\n      )}\n    </div>\n  )\n})\nInputOTPSlot.displayName = \"InputOTPSlot\"\n\nconst InputOTPSeparator = React.forwardRef<\n  React.ElementRef<\"div\">,\n  React.ComponentPropsWithoutRef<\"div\">\n>(({ ...props }, ref) => (\n  <div ref={ref} role=\"separator\" {...props}>\n    <Dot />\n  </div>\n))\nInputOTPSeparator.displayName = \"InputOTPSeparator\"\n\nexport { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator }\n"
  },
  {
    "path": "frontend/components/ui/input.tsx",
    "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Input = React.forwardRef<HTMLInputElement, React.ComponentProps<\"input\">>(\n  ({ className, type, ...props }, ref) => {\n    return (\n      <input\n        type={type}\n        className={cn(\n          \"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n          className\n        )}\n        ref={ref}\n        {...props}\n      />\n    )\n  }\n)\nInput.displayName = \"Input\"\n\nexport { Input }\n"
  },
  {
    "path": "frontend/components/ui/label.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as LabelPrimitive from \"@radix-ui/react-label\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst labelVariants = cva(\n  \"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70\"\n)\n\nconst Label = React.forwardRef<\n  React.ElementRef<typeof LabelPrimitive.Root>,\n  React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &\n    VariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n  <LabelPrimitive.Root\n    ref={ref}\n    className={cn(labelVariants(), className)}\n    {...props}\n  />\n))\nLabel.displayName = LabelPrimitive.Root.displayName\n\nexport { Label }\n"
  },
  {
    "path": "frontend/components/ui/menubar.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as MenubarPrimitive from \"@radix-ui/react-menubar\"\nimport { Check, ChevronRight, Circle } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst MenubarMenu = MenubarPrimitive.Menu\n\nconst MenubarGroup = MenubarPrimitive.Group\n\nconst MenubarPortal = MenubarPrimitive.Portal\n\nconst MenubarSub = MenubarPrimitive.Sub\n\nconst MenubarRadioGroup = MenubarPrimitive.RadioGroup\n\nconst Menubar = React.forwardRef<\n  React.ElementRef<typeof MenubarPrimitive.Root>,\n  React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Root>\n>(({ className, ...props }, ref) => (\n  <MenubarPrimitive.Root\n    ref={ref}\n    className={cn(\n      \"flex h-10 items-center space-x-1 rounded-md border bg-background p-1\",\n      className\n    )}\n    {...props}\n  />\n))\nMenubar.displayName = MenubarPrimitive.Root.displayName\n\nconst MenubarTrigger = React.forwardRef<\n  React.ElementRef<typeof MenubarPrimitive.Trigger>,\n  React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Trigger>\n>(({ className, ...props }, ref) => (\n  <MenubarPrimitive.Trigger\n    ref={ref}\n    className={cn(\n      \"flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground\",\n      className\n    )}\n    {...props}\n  />\n))\nMenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName\n\nconst MenubarSubTrigger = React.forwardRef<\n  React.ElementRef<typeof MenubarPrimitive.SubTrigger>,\n  React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubTrigger> & {\n    inset?: boolean\n  }\n>(({ className, inset, children, ...props }, ref) => (\n  <MenubarPrimitive.SubTrigger\n    ref={ref}\n    className={cn(\n      \"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground\",\n      inset && \"pl-8\",\n      className\n    )}\n    {...props}\n  >\n    {children}\n    <ChevronRight className=\"ml-auto h-4 w-4\" />\n  </MenubarPrimitive.SubTrigger>\n))\nMenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName\n\nconst MenubarSubContent = React.forwardRef<\n  React.ElementRef<typeof MenubarPrimitive.SubContent>,\n  React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n  <MenubarPrimitive.SubContent\n    ref={ref}\n    className={cn(\n      \"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n      className\n    )}\n    {...props}\n  />\n))\nMenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName\n\nconst MenubarContent = React.forwardRef<\n  React.ElementRef<typeof MenubarPrimitive.Content>,\n  React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Content>\n>(\n  (\n    { className, align = \"start\", alignOffset = -4, sideOffset = 8, ...props },\n    ref\n  ) => (\n    <MenubarPrimitive.Portal>\n      <MenubarPrimitive.Content\n        ref={ref}\n        align={align}\n        alignOffset={alignOffset}\n        sideOffset={sideOffset}\n        className={cn(\n          \"z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n          className\n        )}\n        {...props}\n      />\n    </MenubarPrimitive.Portal>\n  )\n)\nMenubarContent.displayName = MenubarPrimitive.Content.displayName\n\nconst MenubarItem = React.forwardRef<\n  React.ElementRef<typeof MenubarPrimitive.Item>,\n  React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Item> & {\n    inset?: boolean\n  }\n>(({ className, inset, ...props }, ref) => (\n  <MenubarPrimitive.Item\n    ref={ref}\n    className={cn(\n      \"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n      inset && \"pl-8\",\n      className\n    )}\n    {...props}\n  />\n))\nMenubarItem.displayName = MenubarPrimitive.Item.displayName\n\nconst MenubarCheckboxItem = React.forwardRef<\n  React.ElementRef<typeof MenubarPrimitive.CheckboxItem>,\n  React.ComponentPropsWithoutRef<typeof MenubarPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n  <MenubarPrimitive.CheckboxItem\n    ref={ref}\n    className={cn(\n      \"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n      className\n    )}\n    checked={checked}\n    {...props}\n  >\n    <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n      <MenubarPrimitive.ItemIndicator>\n        <Check className=\"h-4 w-4\" />\n      </MenubarPrimitive.ItemIndicator>\n    </span>\n    {children}\n  </MenubarPrimitive.CheckboxItem>\n))\nMenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName\n\nconst MenubarRadioItem = React.forwardRef<\n  React.ElementRef<typeof MenubarPrimitive.RadioItem>,\n  React.ComponentPropsWithoutRef<typeof MenubarPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n  <MenubarPrimitive.RadioItem\n    ref={ref}\n    className={cn(\n      \"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n      className\n    )}\n    {...props}\n  >\n    <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n      <MenubarPrimitive.ItemIndicator>\n        <Circle className=\"h-2 w-2 fill-current\" />\n      </MenubarPrimitive.ItemIndicator>\n    </span>\n    {children}\n  </MenubarPrimitive.RadioItem>\n))\nMenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName\n\nconst MenubarLabel = React.forwardRef<\n  React.ElementRef<typeof MenubarPrimitive.Label>,\n  React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Label> & {\n    inset?: boolean\n  }\n>(({ className, inset, ...props }, ref) => (\n  <MenubarPrimitive.Label\n    ref={ref}\n    className={cn(\n      \"px-2 py-1.5 text-sm font-semibold\",\n      inset && \"pl-8\",\n      className\n    )}\n    {...props}\n  />\n))\nMenubarLabel.displayName = MenubarPrimitive.Label.displayName\n\nconst MenubarSeparator = React.forwardRef<\n  React.ElementRef<typeof MenubarPrimitive.Separator>,\n  React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n  <MenubarPrimitive.Separator\n    ref={ref}\n    className={cn(\"-mx-1 my-1 h-px bg-muted\", className)}\n    {...props}\n  />\n))\nMenubarSeparator.displayName = MenubarPrimitive.Separator.displayName\n\nconst MenubarShortcut = ({\n  className,\n  ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n  return (\n    <span\n      className={cn(\n        \"ml-auto text-xs tracking-widest text-muted-foreground\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\nMenubarShortcut.displayname = \"MenubarShortcut\"\n\nexport {\n  Menubar,\n  MenubarMenu,\n  MenubarTrigger,\n  MenubarContent,\n  MenubarItem,\n  MenubarSeparator,\n  MenubarLabel,\n  MenubarCheckboxItem,\n  MenubarRadioGroup,\n  MenubarRadioItem,\n  MenubarPortal,\n  MenubarSubContent,\n  MenubarSubTrigger,\n  MenubarGroup,\n  MenubarSub,\n  MenubarShortcut,\n}\n"
  },
  {
    "path": "frontend/components/ui/navigation-menu.tsx",
    "content": "import * as React from \"react\"\nimport * as NavigationMenuPrimitive from \"@radix-ui/react-navigation-menu\"\nimport { cva } from \"class-variance-authority\"\nimport { ChevronDown } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst NavigationMenu = React.forwardRef<\n  React.ElementRef<typeof NavigationMenuPrimitive.Root>,\n  React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root>\n>(({ className, children, ...props }, ref) => (\n  <NavigationMenuPrimitive.Root\n    ref={ref}\n    className={cn(\n      \"relative z-10 flex max-w-max flex-1 items-center justify-center\",\n      className\n    )}\n    {...props}\n  >\n    {children}\n    <NavigationMenuViewport />\n  </NavigationMenuPrimitive.Root>\n))\nNavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName\n\nconst NavigationMenuList = React.forwardRef<\n  React.ElementRef<typeof NavigationMenuPrimitive.List>,\n  React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List>\n>(({ className, ...props }, ref) => (\n  <NavigationMenuPrimitive.List\n    ref={ref}\n    className={cn(\n      \"group flex flex-1 list-none items-center justify-center space-x-1\",\n      className\n    )}\n    {...props}\n  />\n))\nNavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName\n\nconst NavigationMenuItem = NavigationMenuPrimitive.Item\n\nconst navigationMenuTriggerStyle = cva(\n  \"group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50\"\n)\n\nconst NavigationMenuTrigger = React.forwardRef<\n  React.ElementRef<typeof NavigationMenuPrimitive.Trigger>,\n  React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n  <NavigationMenuPrimitive.Trigger\n    ref={ref}\n    className={cn(navigationMenuTriggerStyle(), \"group\", className)}\n    {...props}\n  >\n    {children}{\" \"}\n    <ChevronDown\n      className=\"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180\"\n      aria-hidden=\"true\"\n    />\n  </NavigationMenuPrimitive.Trigger>\n))\nNavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName\n\nconst NavigationMenuContent = React.forwardRef<\n  React.ElementRef<typeof NavigationMenuPrimitive.Content>,\n  React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content>\n>(({ className, ...props }, ref) => (\n  <NavigationMenuPrimitive.Content\n    ref={ref}\n    className={cn(\n      \"left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto \",\n      className\n    )}\n    {...props}\n  />\n))\nNavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName\n\nconst NavigationMenuLink = NavigationMenuPrimitive.Link\n\nconst NavigationMenuViewport = React.forwardRef<\n  React.ElementRef<typeof NavigationMenuPrimitive.Viewport>,\n  React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport>\n>(({ className, ...props }, ref) => (\n  <div className={cn(\"absolute left-0 top-full flex justify-center\")}>\n    <NavigationMenuPrimitive.Viewport\n      className={cn(\n        \"origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]\",\n        className\n      )}\n      ref={ref}\n      {...props}\n    />\n  </div>\n))\nNavigationMenuViewport.displayName =\n  NavigationMenuPrimitive.Viewport.displayName\n\nconst NavigationMenuIndicator = React.forwardRef<\n  React.ElementRef<typeof NavigationMenuPrimitive.Indicator>,\n  React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator>\n>(({ className, ...props }, ref) => (\n  <NavigationMenuPrimitive.Indicator\n    ref={ref}\n    className={cn(\n      \"top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in\",\n      className\n    )}\n    {...props}\n  >\n    <div className=\"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md\" />\n  </NavigationMenuPrimitive.Indicator>\n))\nNavigationMenuIndicator.displayName =\n  NavigationMenuPrimitive.Indicator.displayName\n\nexport {\n  navigationMenuTriggerStyle,\n  NavigationMenu,\n  NavigationMenuList,\n  NavigationMenuItem,\n  NavigationMenuContent,\n  NavigationMenuTrigger,\n  NavigationMenuLink,\n  NavigationMenuIndicator,\n  NavigationMenuViewport,\n}\n"
  },
  {
    "path": "frontend/components/ui/pagination.tsx",
    "content": "import * as React from \"react\"\nimport { ChevronLeft, ChevronRight, MoreHorizontal } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\nimport { ButtonProps, buttonVariants } from \"@/components/ui/button\"\n\nconst Pagination = ({ className, ...props }: React.ComponentProps<\"nav\">) => (\n  <nav\n    role=\"navigation\"\n    aria-label=\"pagination\"\n    className={cn(\"mx-auto flex w-full justify-center\", className)}\n    {...props}\n  />\n)\nPagination.displayName = \"Pagination\"\n\nconst PaginationContent = React.forwardRef<\n  HTMLUListElement,\n  React.ComponentProps<\"ul\">\n>(({ className, ...props }, ref) => (\n  <ul\n    ref={ref}\n    className={cn(\"flex flex-row items-center gap-1\", className)}\n    {...props}\n  />\n))\nPaginationContent.displayName = \"PaginationContent\"\n\nconst PaginationItem = React.forwardRef<\n  HTMLLIElement,\n  React.ComponentProps<\"li\">\n>(({ className, ...props }, ref) => (\n  <li ref={ref} className={cn(\"\", className)} {...props} />\n))\nPaginationItem.displayName = \"PaginationItem\"\n\ntype PaginationLinkProps = {\n  isActive?: boolean\n} & Pick<ButtonProps, \"size\"> &\n  React.ComponentProps<\"a\">\n\nconst PaginationLink = ({\n  className,\n  isActive,\n  size = \"icon\",\n  ...props\n}: PaginationLinkProps) => (\n  <a\n    aria-current={isActive ? \"page\" : undefined}\n    className={cn(\n      buttonVariants({\n        variant: isActive ? \"outline\" : \"ghost\",\n        size,\n      }),\n      className\n    )}\n    {...props}\n  />\n)\nPaginationLink.displayName = \"PaginationLink\"\n\nconst PaginationPrevious = ({\n  className,\n  ...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n  <PaginationLink\n    aria-label=\"Go to previous page\"\n    size=\"default\"\n    className={cn(\"gap-1 pl-2.5\", className)}\n    {...props}\n  >\n    <ChevronLeft className=\"h-4 w-4\" />\n    <span>Previous</span>\n  </PaginationLink>\n)\nPaginationPrevious.displayName = \"PaginationPrevious\"\n\nconst PaginationNext = ({\n  className,\n  ...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n  <PaginationLink\n    aria-label=\"Go to next page\"\n    size=\"default\"\n    className={cn(\"gap-1 pr-2.5\", className)}\n    {...props}\n  >\n    <span>Next</span>\n    <ChevronRight className=\"h-4 w-4\" />\n  </PaginationLink>\n)\nPaginationNext.displayName = \"PaginationNext\"\n\nconst PaginationEllipsis = ({\n  className,\n  ...props\n}: React.ComponentProps<\"span\">) => (\n  <span\n    aria-hidden\n    className={cn(\"flex h-9 w-9 items-center justify-center\", className)}\n    {...props}\n  >\n    <MoreHorizontal className=\"h-4 w-4\" />\n    <span className=\"sr-only\">More pages</span>\n  </span>\n)\nPaginationEllipsis.displayName = \"PaginationEllipsis\"\n\nexport {\n  Pagination,\n  PaginationContent,\n  PaginationEllipsis,\n  PaginationItem,\n  PaginationLink,\n  PaginationNext,\n  PaginationPrevious,\n}\n"
  },
  {
    "path": "frontend/components/ui/popover.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Popover = PopoverPrimitive.Root\n\nconst PopoverTrigger = PopoverPrimitive.Trigger\n\nconst PopoverContent = React.forwardRef<\n  React.ElementRef<typeof PopoverPrimitive.Content>,\n  React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n  <PopoverPrimitive.Portal>\n    <PopoverPrimitive.Content\n      ref={ref}\n      align={align}\n      sideOffset={sideOffset}\n      className={cn(\n        \"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n        className\n      )}\n      {...props}\n    />\n  </PopoverPrimitive.Portal>\n))\nPopoverContent.displayName = PopoverPrimitive.Content.displayName\n\nexport { Popover, PopoverTrigger, PopoverContent }\n"
  },
  {
    "path": "frontend/components/ui/progress.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as ProgressPrimitive from \"@radix-ui/react-progress\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Progress = React.forwardRef<\n  React.ElementRef<typeof ProgressPrimitive.Root>,\n  React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>\n>(({ className, value, ...props }, ref) => (\n  <ProgressPrimitive.Root\n    ref={ref}\n    className={cn(\n      \"relative h-4 w-full overflow-hidden rounded-full bg-secondary\",\n      className\n    )}\n    {...props}\n  >\n    <ProgressPrimitive.Indicator\n      className=\"h-full w-full flex-1 bg-primary transition-all\"\n      style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n    />\n  </ProgressPrimitive.Root>\n))\nProgress.displayName = ProgressPrimitive.Root.displayName\n\nexport { Progress }\n"
  },
  {
    "path": "frontend/components/ui/radio-group.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as RadioGroupPrimitive from \"@radix-ui/react-radio-group\"\nimport { Circle } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst RadioGroup = React.forwardRef<\n  React.ElementRef<typeof RadioGroupPrimitive.Root>,\n  React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>\n>(({ className, ...props }, ref) => {\n  return (\n    <RadioGroupPrimitive.Root\n      className={cn(\"grid gap-2\", className)}\n      {...props}\n      ref={ref}\n    />\n  )\n})\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName\n\nconst RadioGroupItem = React.forwardRef<\n  React.ElementRef<typeof RadioGroupPrimitive.Item>,\n  React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>\n>(({ className, ...props }, ref) => {\n  return (\n    <RadioGroupPrimitive.Item\n      ref={ref}\n      className={cn(\n        \"aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50\",\n        className\n      )}\n      {...props}\n    >\n      <RadioGroupPrimitive.Indicator className=\"flex items-center justify-center\">\n        <Circle className=\"h-2.5 w-2.5 fill-current text-current\" />\n      </RadioGroupPrimitive.Indicator>\n    </RadioGroupPrimitive.Item>\n  )\n})\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName\n\nexport { RadioGroup, RadioGroupItem }\n"
  },
  {
    "path": "frontend/components/ui/resizable.tsx",
    "content": "\"use client\"\n\nimport { GripVertical } from \"lucide-react\"\nimport * as ResizablePrimitive from \"react-resizable-panels\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst ResizablePanelGroup = ({\n  className,\n  ...props\n}: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => (\n  <ResizablePrimitive.PanelGroup\n    className={cn(\n      \"flex h-full w-full data-[panel-group-direction=vertical]:flex-col\",\n      className\n    )}\n    {...props}\n  />\n)\n\nconst ResizablePanel = ResizablePrimitive.Panel\n\nconst ResizableHandle = ({\n  withHandle,\n  className,\n  ...props\n}: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {\n  withHandle?: boolean\n}) => (\n  <ResizablePrimitive.PanelResizeHandle\n    className={cn(\n      \"relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90\",\n      className\n    )}\n    {...props}\n  >\n    {withHandle && (\n      <div className=\"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border\">\n        <GripVertical className=\"h-2.5 w-2.5\" />\n      </div>\n    )}\n  </ResizablePrimitive.PanelResizeHandle>\n)\n\nexport { ResizablePanelGroup, ResizablePanel, ResizableHandle }\n"
  },
  {
    "path": "frontend/components/ui/scroll-area.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as ScrollAreaPrimitive from \"@radix-ui/react-scroll-area\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst ScrollArea = React.forwardRef<\n  React.ElementRef<typeof ScrollAreaPrimitive.Root>,\n  React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>\n>(({ className, children, ...props }, ref) => (\n  <ScrollAreaPrimitive.Root\n    ref={ref}\n    className={cn(\"relative overflow-hidden\", className)}\n    {...props}\n  >\n    <ScrollAreaPrimitive.Viewport className=\"h-full w-full rounded-[inherit]\">\n      {children}\n    </ScrollAreaPrimitive.Viewport>\n    <ScrollBar />\n    <ScrollAreaPrimitive.Corner />\n  </ScrollAreaPrimitive.Root>\n))\nScrollArea.displayName = ScrollAreaPrimitive.Root.displayName\n\nconst ScrollBar = React.forwardRef<\n  React.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,\n  React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>\n>(({ className, orientation = \"vertical\", ...props }, ref) => (\n  <ScrollAreaPrimitive.ScrollAreaScrollbar\n    ref={ref}\n    orientation={orientation}\n    className={cn(\n      \"flex touch-none select-none transition-colors\",\n      orientation === \"vertical\" &&\n        \"h-full w-2.5 border-l border-l-transparent p-[1px]\",\n      orientation === \"horizontal\" &&\n        \"h-2.5 flex-col border-t border-t-transparent p-[1px]\",\n      className\n    )}\n    {...props}\n  >\n    <ScrollAreaPrimitive.ScrollAreaThumb className=\"relative flex-1 rounded-full bg-border\" />\n  </ScrollAreaPrimitive.ScrollAreaScrollbar>\n))\nScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName\n\nexport { ScrollArea, ScrollBar }\n"
  },
  {
    "path": "frontend/components/ui/select.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as SelectPrimitive from \"@radix-ui/react-select\"\nimport { Check, ChevronDown, ChevronUp } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Select = SelectPrimitive.Root\n\nconst SelectGroup = SelectPrimitive.Group\n\nconst SelectValue = SelectPrimitive.Value\n\nconst SelectTrigger = React.forwardRef<\n  React.ElementRef<typeof SelectPrimitive.Trigger>,\n  React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n  <SelectPrimitive.Trigger\n    ref={ref}\n    className={cn(\n      \"flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1\",\n      className\n    )}\n    {...props}\n  >\n    {children}\n    <SelectPrimitive.Icon asChild>\n      <ChevronDown className=\"h-4 w-4 opacity-50\" />\n    </SelectPrimitive.Icon>\n  </SelectPrimitive.Trigger>\n))\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName\n\nconst SelectScrollUpButton = React.forwardRef<\n  React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,\n  React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(({ className, ...props }, ref) => (\n  <SelectPrimitive.ScrollUpButton\n    ref={ref}\n    className={cn(\n      \"flex cursor-default items-center justify-center py-1\",\n      className\n    )}\n    {...props}\n  >\n    <ChevronUp className=\"h-4 w-4\" />\n  </SelectPrimitive.ScrollUpButton>\n))\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName\n\nconst SelectScrollDownButton = React.forwardRef<\n  React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,\n  React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(({ className, ...props }, ref) => (\n  <SelectPrimitive.ScrollDownButton\n    ref={ref}\n    className={cn(\n      \"flex cursor-default items-center justify-center py-1\",\n      className\n    )}\n    {...props}\n  >\n    <ChevronDown className=\"h-4 w-4\" />\n  </SelectPrimitive.ScrollDownButton>\n))\nSelectScrollDownButton.displayName =\n  SelectPrimitive.ScrollDownButton.displayName\n\nconst SelectContent = React.forwardRef<\n  React.ElementRef<typeof SelectPrimitive.Content>,\n  React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = \"popper\", ...props }, ref) => (\n  <SelectPrimitive.Portal>\n    <SelectPrimitive.Content\n      ref={ref}\n      className={cn(\n        \"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n        position === \"popper\" &&\n          \"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\",\n        className\n      )}\n      position={position}\n      {...props}\n    >\n      <SelectScrollUpButton />\n      <SelectPrimitive.Viewport\n        className={cn(\n          \"p-1\",\n          position === \"popper\" &&\n            \"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]\"\n        )}\n      >\n        {children}\n      </SelectPrimitive.Viewport>\n      <SelectScrollDownButton />\n    </SelectPrimitive.Content>\n  </SelectPrimitive.Portal>\n))\nSelectContent.displayName = SelectPrimitive.Content.displayName\n\nconst SelectLabel = React.forwardRef<\n  React.ElementRef<typeof SelectPrimitive.Label>,\n  React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n  <SelectPrimitive.Label\n    ref={ref}\n    className={cn(\"py-1.5 pl-8 pr-2 text-sm font-semibold\", className)}\n    {...props}\n  />\n))\nSelectLabel.displayName = SelectPrimitive.Label.displayName\n\nconst SelectItem = React.forwardRef<\n  React.ElementRef<typeof SelectPrimitive.Item>,\n  React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>\n>(({ className, children, ...props }, ref) => (\n  <SelectPrimitive.Item\n    ref={ref}\n    className={cn(\n      \"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n      className\n    )}\n    {...props}\n  >\n    <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n      <SelectPrimitive.ItemIndicator>\n        <Check className=\"h-4 w-4\" />\n      </SelectPrimitive.ItemIndicator>\n    </span>\n\n    <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n  </SelectPrimitive.Item>\n))\nSelectItem.displayName = SelectPrimitive.Item.displayName\n\nconst SelectSeparator = React.forwardRef<\n  React.ElementRef<typeof SelectPrimitive.Separator>,\n  React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n  <SelectPrimitive.Separator\n    ref={ref}\n    className={cn(\"-mx-1 my-1 h-px bg-muted\", className)}\n    {...props}\n  />\n))\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName\n\nexport {\n  Select,\n  SelectGroup,\n  SelectValue,\n  SelectTrigger,\n  SelectContent,\n  SelectLabel,\n  SelectItem,\n  SelectSeparator,\n  SelectScrollUpButton,\n  SelectScrollDownButton,\n}\n"
  },
  {
    "path": "frontend/components/ui/separator.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as SeparatorPrimitive from \"@radix-ui/react-separator\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Separator = React.forwardRef<\n  React.ElementRef<typeof SeparatorPrimitive.Root>,\n  React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>\n>(\n  (\n    { className, orientation = \"horizontal\", decorative = true, ...props },\n    ref\n  ) => (\n    <SeparatorPrimitive.Root\n      ref={ref}\n      decorative={decorative}\n      orientation={orientation}\n      className={cn(\n        \"shrink-0 bg-border\",\n        orientation === \"horizontal\" ? \"h-[1px] w-full\" : \"h-full w-[1px]\",\n        className\n      )}\n      {...props}\n    />\n  )\n)\nSeparator.displayName = SeparatorPrimitive.Root.displayName\n\nexport { Separator }\n"
  },
  {
    "path": "frontend/components/ui/sheet.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as SheetPrimitive from \"@radix-ui/react-dialog\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { X } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Sheet = SheetPrimitive.Root\n\nconst SheetTrigger = SheetPrimitive.Trigger\n\nconst SheetClose = SheetPrimitive.Close\n\nconst SheetPortal = SheetPrimitive.Portal\n\nconst SheetOverlay = React.forwardRef<\n  React.ElementRef<typeof SheetPrimitive.Overlay>,\n  React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n  <SheetPrimitive.Overlay\n    className={cn(\n      \"fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n      className\n    )}\n    {...props}\n    ref={ref}\n  />\n))\nSheetOverlay.displayName = SheetPrimitive.Overlay.displayName\n\nconst sheetVariants = cva(\n  \"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500\",\n  {\n    variants: {\n      side: {\n        top: \"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top\",\n        bottom:\n          \"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom\",\n        left: \"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm\",\n        right:\n          \"inset-y-0 right-0 h-full w-3/4  border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm\",\n      },\n    },\n    defaultVariants: {\n      side: \"right\",\n    },\n  }\n)\n\ninterface SheetContentProps\n  extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,\n    VariantProps<typeof sheetVariants> {}\n\nconst SheetContent = React.forwardRef<\n  React.ElementRef<typeof SheetPrimitive.Content>,\n  SheetContentProps\n>(({ side = \"right\", className, children, ...props }, ref) => (\n  <SheetPortal>\n    <SheetOverlay />\n    <SheetPrimitive.Content\n      ref={ref}\n      className={cn(sheetVariants({ side }), className)}\n      {...props}\n    >\n      {children}\n      <SheetPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary\">\n        <X className=\"h-4 w-4\" />\n        <span className=\"sr-only\">Close</span>\n      </SheetPrimitive.Close>\n    </SheetPrimitive.Content>\n  </SheetPortal>\n))\nSheetContent.displayName = SheetPrimitive.Content.displayName\n\nconst SheetHeader = ({\n  className,\n  ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n  <div\n    className={cn(\n      \"flex flex-col space-y-2 text-center sm:text-left\",\n      className\n    )}\n    {...props}\n  />\n)\nSheetHeader.displayName = \"SheetHeader\"\n\nconst SheetFooter = ({\n  className,\n  ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n  <div\n    className={cn(\n      \"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\",\n      className\n    )}\n    {...props}\n  />\n)\nSheetFooter.displayName = \"SheetFooter\"\n\nconst SheetTitle = React.forwardRef<\n  React.ElementRef<typeof SheetPrimitive.Title>,\n  React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>\n>(({ className, ...props }, ref) => (\n  <SheetPrimitive.Title\n    ref={ref}\n    className={cn(\"text-lg font-semibold text-foreground\", className)}\n    {...props}\n  />\n))\nSheetTitle.displayName = SheetPrimitive.Title.displayName\n\nconst SheetDescription = React.forwardRef<\n  React.ElementRef<typeof SheetPrimitive.Description>,\n  React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>\n>(({ className, ...props }, ref) => (\n  <SheetPrimitive.Description\n    ref={ref}\n    className={cn(\"text-sm text-muted-foreground\", className)}\n    {...props}\n  />\n))\nSheetDescription.displayName = SheetPrimitive.Description.displayName\n\nexport {\n  Sheet,\n  SheetPortal,\n  SheetOverlay,\n  SheetTrigger,\n  SheetClose,\n  SheetContent,\n  SheetHeader,\n  SheetFooter,\n  SheetTitle,\n  SheetDescription,\n}\n"
  },
  {
    "path": "frontend/components/ui/sidebar.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { VariantProps, cva } from \"class-variance-authority\"\nimport { PanelLeft } from \"lucide-react\"\n\nimport { useIsMobile } from \"@/hooks/use-mobile\"\nimport { cn } from \"@/lib/utils\"\nimport { Button } from \"@/components/ui/button\"\nimport { Input } from \"@/components/ui/input\"\nimport { Separator } from \"@/components/ui/separator\"\nimport { Sheet, SheetContent } from \"@/components/ui/sheet\"\nimport { Skeleton } from \"@/components/ui/skeleton\"\nimport {\n  Tooltip,\n  TooltipContent,\n  TooltipProvider,\n  TooltipTrigger,\n} from \"@/components/ui/tooltip\"\n\nconst SIDEBAR_COOKIE_NAME = \"sidebar:state\"\nconst SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7\nconst SIDEBAR_WIDTH = \"16rem\"\nconst SIDEBAR_WIDTH_MOBILE = \"18rem\"\nconst SIDEBAR_WIDTH_ICON = \"3rem\"\nconst SIDEBAR_KEYBOARD_SHORTCUT = \"b\"\n\ntype SidebarContext = {\n  state: \"expanded\" | \"collapsed\"\n  open: boolean\n  setOpen: (open: boolean) => void\n  openMobile: boolean\n  setOpenMobile: (open: boolean) => void\n  isMobile: boolean\n  toggleSidebar: () => void\n}\n\nconst SidebarContext = React.createContext<SidebarContext | null>(null)\n\nfunction useSidebar() {\n  const context = React.useContext(SidebarContext)\n  if (!context) {\n    throw new Error(\"useSidebar must be used within a SidebarProvider.\")\n  }\n\n  return context\n}\n\nconst SidebarProvider = React.forwardRef<\n  HTMLDivElement,\n  React.ComponentProps<\"div\"> & {\n    defaultOpen?: boolean\n    open?: boolean\n    onOpenChange?: (open: boolean) => void\n  }\n>(\n  (\n    {\n      defaultOpen = true,\n      open: openProp,\n      onOpenChange: setOpenProp,\n      className,\n      style,\n      children,\n      ...props\n    },\n    ref\n  ) => {\n    const isMobile = useIsMobile()\n    const [openMobile, setOpenMobile] = React.useState(false)\n\n    // This is the internal state of the sidebar.\n    // We use openProp and setOpenProp for control from outside the component.\n    const [_open, _setOpen] = React.useState(defaultOpen)\n    const open = openProp ?? _open\n    const setOpen = React.useCallback(\n      (value: boolean | ((value: boolean) => boolean)) => {\n        const openState = typeof value === \"function\" ? value(open) : value\n        if (setOpenProp) {\n          setOpenProp(openState)\n        } else {\n          _setOpen(openState)\n        }\n\n        // This sets the cookie to keep the sidebar state.\n        document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`\n      },\n      [setOpenProp, open]\n    )\n\n    // Helper to toggle the sidebar.\n    const toggleSidebar = React.useCallback(() => {\n      return isMobile\n        ? setOpenMobile((open) => !open)\n        : setOpen((open) => !open)\n    }, [isMobile, setOpen, setOpenMobile])\n\n    // Adds a keyboard shortcut to toggle the sidebar.\n    React.useEffect(() => {\n      const handleKeyDown = (event: KeyboardEvent) => {\n        if (\n          event.key === SIDEBAR_KEYBOARD_SHORTCUT &&\n          (event.metaKey || event.ctrlKey)\n        ) {\n          event.preventDefault()\n          toggleSidebar()\n        }\n      }\n\n      window.addEventListener(\"keydown\", handleKeyDown)\n      return () => window.removeEventListener(\"keydown\", handleKeyDown)\n    }, [toggleSidebar])\n\n    // We add a state so that we can do data-state=\"expanded\" or \"collapsed\".\n    // This makes it easier to style the sidebar with Tailwind classes.\n    const state = open ? \"expanded\" : \"collapsed\"\n\n    const contextValue = React.useMemo<SidebarContext>(\n      () => ({\n        state,\n        open,\n        setOpen,\n        isMobile,\n        openMobile,\n        setOpenMobile,\n        toggleSidebar,\n      }),\n      [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]\n    )\n\n    return (\n      <SidebarContext.Provider value={contextValue}>\n        <TooltipProvider delayDuration={0}>\n          <div\n            style={\n              {\n                \"--sidebar-width\": SIDEBAR_WIDTH,\n                \"--sidebar-width-icon\": SIDEBAR_WIDTH_ICON,\n                ...style,\n              } as React.CSSProperties\n            }\n            className={cn(\n              \"group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar\",\n              className\n            )}\n            ref={ref}\n            {...props}\n          >\n            {children}\n          </div>\n        </TooltipProvider>\n      </SidebarContext.Provider>\n    )\n  }\n)\nSidebarProvider.displayName = \"SidebarProvider\"\n\nconst Sidebar = React.forwardRef<\n  HTMLDivElement,\n  React.ComponentProps<\"div\"> & {\n    side?: \"left\" | \"right\"\n    variant?: \"sidebar\" | \"floating\" | \"inset\"\n    collapsible?: \"offcanvas\" | \"icon\" | \"none\"\n  }\n>(\n  (\n    {\n      side = \"left\",\n      variant = \"sidebar\",\n      collapsible = \"offcanvas\",\n      className,\n      children,\n      ...props\n    },\n    ref\n  ) => {\n    const { isMobile, state, openMobile, setOpenMobile } = useSidebar()\n\n    if (collapsible === \"none\") {\n      return (\n        <div\n          className={cn(\n            \"flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground\",\n            className\n          )}\n          ref={ref}\n          {...props}\n        >\n          {children}\n        </div>\n      )\n    }\n\n    if (isMobile) {\n      return (\n        <Sheet open={openMobile} onOpenChange={setOpenMobile} {...props}>\n          <SheetContent\n            data-sidebar=\"sidebar\"\n            data-mobile=\"true\"\n            className=\"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden\"\n            style={\n              {\n                \"--sidebar-width\": SIDEBAR_WIDTH_MOBILE,\n              } as React.CSSProperties\n            }\n            side={side}\n          >\n            <div className=\"flex h-full w-full flex-col\">{children}</div>\n          </SheetContent>\n        </Sheet>\n      )\n    }\n\n    return (\n      <div\n        ref={ref}\n        className=\"group peer hidden md:block text-sidebar-foreground\"\n        data-state={state}\n        data-collapsible={state === \"collapsed\" ? collapsible : \"\"}\n        data-variant={variant}\n        data-side={side}\n      >\n        {/* This is what handles the sidebar gap on desktop */}\n        <div\n          className={cn(\n            \"duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear\",\n            \"group-data-[collapsible=offcanvas]:w-0\",\n            \"group-data-[side=right]:rotate-180\",\n            variant === \"floating\" || variant === \"inset\"\n              ? \"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]\"\n              : \"group-data-[collapsible=icon]:w-[--sidebar-width-icon]\"\n          )}\n        />\n        <div\n          className={cn(\n            \"duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex\",\n            side === \"left\"\n              ? \"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]\"\n              : \"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]\",\n            // Adjust the padding for floating and inset variants.\n            variant === \"floating\" || variant === \"inset\"\n              ? \"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]\"\n              : \"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l\",\n            className\n          )}\n          {...props}\n        >\n          <div\n            data-sidebar=\"sidebar\"\n            className=\"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow\"\n          >\n            {children}\n          </div>\n        </div>\n      </div>\n    )\n  }\n)\nSidebar.displayName = \"Sidebar\"\n\nconst SidebarTrigger = React.forwardRef<\n  React.ElementRef<typeof Button>,\n  React.ComponentProps<typeof Button>\n>(({ className, onClick, ...props }, ref) => {\n  const { toggleSidebar } = useSidebar()\n\n  return (\n    <Button\n      ref={ref}\n      data-sidebar=\"trigger\"\n      variant=\"ghost\"\n      size=\"icon\"\n      className={cn(\"h-7 w-7\", className)}\n      onClick={(event) => {\n        onClick?.(event)\n        toggleSidebar()\n      }}\n      {...props}\n    >\n      <PanelLeft />\n      <span className=\"sr-only\">Toggle Sidebar</span>\n    </Button>\n  )\n})\nSidebarTrigger.displayName = \"SidebarTrigger\"\n\nconst SidebarRail = React.forwardRef<\n  HTMLButtonElement,\n  React.ComponentProps<\"button\">\n>(({ className, ...props }, ref) => {\n  const { toggleSidebar } = useSidebar()\n\n  return (\n    <button\n      ref={ref}\n      data-sidebar=\"rail\"\n      aria-label=\"Toggle Sidebar\"\n      tabIndex={-1}\n      onClick={toggleSidebar}\n      title=\"Toggle Sidebar\"\n      className={cn(\n        \"absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex\",\n        \"[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize\",\n        \"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize\",\n        \"group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar\",\n        \"[[data-side=left][data-collapsible=offcanvas]_&]:-right-2\",\n        \"[[data-side=right][data-collapsible=offcanvas]_&]:-left-2\",\n        className\n      )}\n      {...props}\n    />\n  )\n})\nSidebarRail.displayName = \"SidebarRail\"\n\nconst SidebarInset = React.forwardRef<\n  HTMLDivElement,\n  React.ComponentProps<\"main\">\n>(({ className, ...props }, ref) => {\n  return (\n    <main\n      ref={ref}\n      className={cn(\n        \"relative flex min-h-svh flex-1 flex-col bg-background\",\n        \"peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow\",\n        className\n      )}\n      {...props}\n    />\n  )\n})\nSidebarInset.displayName = \"SidebarInset\"\n\nconst SidebarInput = React.forwardRef<\n  React.ElementRef<typeof Input>,\n  React.ComponentProps<typeof Input>\n>(({ className, ...props }, ref) => {\n  return (\n    <Input\n      ref={ref}\n      data-sidebar=\"input\"\n      className={cn(\n        \"h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring\",\n        className\n      )}\n      {...props}\n    />\n  )\n})\nSidebarInput.displayName = \"SidebarInput\"\n\nconst SidebarHeader = React.forwardRef<\n  HTMLDivElement,\n  React.ComponentProps<\"div\">\n>(({ className, ...props }, ref) => {\n  return (\n    <div\n      ref={ref}\n      data-sidebar=\"header\"\n      className={cn(\"flex flex-col gap-2 p-2\", className)}\n      {...props}\n    />\n  )\n})\nSidebarHeader.displayName = \"SidebarHeader\"\n\nconst SidebarFooter = React.forwardRef<\n  HTMLDivElement,\n  React.ComponentProps<\"div\">\n>(({ className, ...props }, ref) => {\n  return (\n    <div\n      ref={ref}\n      data-sidebar=\"footer\"\n      className={cn(\"flex flex-col gap-2 p-2\", className)}\n      {...props}\n    />\n  )\n})\nSidebarFooter.displayName = \"SidebarFooter\"\n\nconst SidebarSeparator = React.forwardRef<\n  React.ElementRef<typeof Separator>,\n  React.ComponentProps<typeof Separator>\n>(({ className, ...props }, ref) => {\n  return (\n    <Separator\n      ref={ref}\n      data-sidebar=\"separator\"\n      className={cn(\"mx-2 w-auto bg-sidebar-border\", className)}\n      {...props}\n    />\n  )\n})\nSidebarSeparator.displayName = \"SidebarSeparator\"\n\nconst SidebarContent = React.forwardRef<\n  HTMLDivElement,\n  React.ComponentProps<\"div\">\n>(({ className, ...props }, ref) => {\n  return (\n    <div\n      ref={ref}\n      data-sidebar=\"content\"\n      className={cn(\n        \"flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden\",\n        className\n      )}\n      {...props}\n    />\n  )\n})\nSidebarContent.displayName = \"SidebarContent\"\n\nconst SidebarGroup = React.forwardRef<\n  HTMLDivElement,\n  React.ComponentProps<\"div\">\n>(({ className, ...props }, ref) => {\n  return (\n    <div\n      ref={ref}\n      data-sidebar=\"group\"\n      className={cn(\"relative flex w-full min-w-0 flex-col p-2\", className)}\n      {...props}\n    />\n  )\n})\nSidebarGroup.displayName = \"SidebarGroup\"\n\nconst SidebarGroupLabel = React.forwardRef<\n  HTMLDivElement,\n  React.ComponentProps<\"div\"> & { asChild?: boolean }\n>(({ className, asChild = false, ...props }, ref) => {\n  const Comp = asChild ? Slot : \"div\"\n\n  return (\n    <Comp\n      ref={ref}\n      data-sidebar=\"group-label\"\n      className={cn(\n        \"duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0\",\n        \"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0\",\n        className\n      )}\n      {...props}\n    />\n  )\n})\nSidebarGroupLabel.displayName = \"SidebarGroupLabel\"\n\nconst SidebarGroupAction = React.forwardRef<\n  HTMLButtonElement,\n  React.ComponentProps<\"button\"> & { asChild?: boolean }\n>(({ className, asChild = false, ...props }, ref) => {\n  const Comp = asChild ? Slot : \"button\"\n\n  return (\n    <Comp\n      ref={ref}\n      data-sidebar=\"group-action\"\n      className={cn(\n        \"absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0\",\n        // Increases the hit area of the button on mobile.\n        \"after:absolute after:-inset-2 after:md:hidden\",\n        \"group-data-[collapsible=icon]:hidden\",\n        className\n      )}\n      {...props}\n    />\n  )\n})\nSidebarGroupAction.displayName = \"SidebarGroupAction\"\n\nconst SidebarGroupContent = React.forwardRef<\n  HTMLDivElement,\n  React.ComponentProps<\"div\">\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    data-sidebar=\"group-content\"\n    className={cn(\"w-full text-sm\", className)}\n    {...props}\n  />\n))\nSidebarGroupContent.displayName = \"SidebarGroupContent\"\n\nconst SidebarMenu = React.forwardRef<\n  HTMLUListElement,\n  React.ComponentProps<\"ul\">\n>(({ className, ...props }, ref) => (\n  <ul\n    ref={ref}\n    data-sidebar=\"menu\"\n    className={cn(\"flex w-full min-w-0 flex-col gap-1\", className)}\n    {...props}\n  />\n))\nSidebarMenu.displayName = \"SidebarMenu\"\n\nconst SidebarMenuItem = React.forwardRef<\n  HTMLLIElement,\n  React.ComponentProps<\"li\">\n>(({ className, ...props }, ref) => (\n  <li\n    ref={ref}\n    data-sidebar=\"menu-item\"\n    className={cn(\"group/menu-item relative\", className)}\n    {...props}\n  />\n))\nSidebarMenuItem.displayName = \"SidebarMenuItem\"\n\nconst sidebarMenuButtonVariants = cva(\n  \"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0\",\n  {\n    variants: {\n      variant: {\n        default: \"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground\",\n        outline:\n          \"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]\",\n      },\n      size: {\n        default: \"h-8 text-sm\",\n        sm: \"h-7 text-xs\",\n        lg: \"h-12 text-sm group-data-[collapsible=icon]:!p-0\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n      size: \"default\",\n    },\n  }\n)\n\nconst SidebarMenuButton = React.forwardRef<\n  HTMLButtonElement,\n  React.ComponentProps<\"button\"> & {\n    asChild?: boolean\n    isActive?: boolean\n    tooltip?: string | React.ComponentProps<typeof TooltipContent>\n  } & VariantProps<typeof sidebarMenuButtonVariants>\n>(\n  (\n    {\n      asChild = false,\n      isActive = false,\n      variant = \"default\",\n      size = \"default\",\n      tooltip,\n      className,\n      ...props\n    },\n    ref\n  ) => {\n    const Comp = asChild ? Slot : \"button\"\n    const { isMobile, state } = useSidebar()\n\n    const button = (\n      <Comp\n        ref={ref}\n        data-sidebar=\"menu-button\"\n        data-size={size}\n        data-active={isActive}\n        className={cn(sidebarMenuButtonVariants({ variant, size }), className)}\n        {...props}\n      />\n    )\n\n    if (!tooltip) {\n      return button\n    }\n\n    if (typeof tooltip === \"string\") {\n      tooltip = {\n        children: tooltip,\n      }\n    }\n\n    return (\n      <Tooltip>\n        <TooltipTrigger asChild>{button}</TooltipTrigger>\n        <TooltipContent\n          side=\"right\"\n          align=\"center\"\n          hidden={state !== \"collapsed\" || isMobile}\n          {...tooltip}\n        />\n      </Tooltip>\n    )\n  }\n)\nSidebarMenuButton.displayName = \"SidebarMenuButton\"\n\nconst SidebarMenuAction = React.forwardRef<\n  HTMLButtonElement,\n  React.ComponentProps<\"button\"> & {\n    asChild?: boolean\n    showOnHover?: boolean\n  }\n>(({ className, asChild = false, showOnHover = false, ...props }, ref) => {\n  const Comp = asChild ? Slot : \"button\"\n\n  return (\n    <Comp\n      ref={ref}\n      data-sidebar=\"menu-action\"\n      className={cn(\n        \"absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0\",\n        // Increases the hit area of the button on mobile.\n        \"after:absolute after:-inset-2 after:md:hidden\",\n        \"peer-data-[size=sm]/menu-button:top-1\",\n        \"peer-data-[size=default]/menu-button:top-1.5\",\n        \"peer-data-[size=lg]/menu-button:top-2.5\",\n        \"group-data-[collapsible=icon]:hidden\",\n        showOnHover &&\n          \"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0\",\n        className\n      )}\n      {...props}\n    />\n  )\n})\nSidebarMenuAction.displayName = \"SidebarMenuAction\"\n\nconst SidebarMenuBadge = React.forwardRef<\n  HTMLDivElement,\n  React.ComponentProps<\"div\">\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    data-sidebar=\"menu-badge\"\n    className={cn(\n      \"absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none\",\n      \"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground\",\n      \"peer-data-[size=sm]/menu-button:top-1\",\n      \"peer-data-[size=default]/menu-button:top-1.5\",\n      \"peer-data-[size=lg]/menu-button:top-2.5\",\n      \"group-data-[collapsible=icon]:hidden\",\n      className\n    )}\n    {...props}\n  />\n))\nSidebarMenuBadge.displayName = \"SidebarMenuBadge\"\n\nconst SidebarMenuSkeleton = React.forwardRef<\n  HTMLDivElement,\n  React.ComponentProps<\"div\"> & {\n    showIcon?: boolean\n  }\n>(({ className, showIcon = false, ...props }, ref) => {\n  // Random width between 50 to 90%.\n  const width = React.useMemo(() => {\n    return `${Math.floor(Math.random() * 40) + 50}%`\n  }, [])\n\n  return (\n    <div\n      ref={ref}\n      data-sidebar=\"menu-skeleton\"\n      className={cn(\"rounded-md h-8 flex gap-2 px-2 items-center\", className)}\n      {...props}\n    >\n      {showIcon && (\n        <Skeleton\n          className=\"size-4 rounded-md\"\n          data-sidebar=\"menu-skeleton-icon\"\n        />\n      )}\n      <Skeleton\n        className=\"h-4 flex-1 max-w-[--skeleton-width]\"\n        data-sidebar=\"menu-skeleton-text\"\n        style={\n          {\n            \"--skeleton-width\": width,\n          } as React.CSSProperties\n        }\n      />\n    </div>\n  )\n})\nSidebarMenuSkeleton.displayName = \"SidebarMenuSkeleton\"\n\nconst SidebarMenuSub = React.forwardRef<\n  HTMLUListElement,\n  React.ComponentProps<\"ul\">\n>(({ className, ...props }, ref) => (\n  <ul\n    ref={ref}\n    data-sidebar=\"menu-sub\"\n    className={cn(\n      \"mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5\",\n      \"group-data-[collapsible=icon]:hidden\",\n      className\n    )}\n    {...props}\n  />\n))\nSidebarMenuSub.displayName = \"SidebarMenuSub\"\n\nconst SidebarMenuSubItem = React.forwardRef<\n  HTMLLIElement,\n  React.ComponentProps<\"li\">\n>(({ ...props }, ref) => <li ref={ref} {...props} />)\nSidebarMenuSubItem.displayName = \"SidebarMenuSubItem\"\n\nconst SidebarMenuSubButton = React.forwardRef<\n  HTMLAnchorElement,\n  React.ComponentProps<\"a\"> & {\n    asChild?: boolean\n    size?: \"sm\" | \"md\"\n    isActive?: boolean\n  }\n>(({ asChild = false, size = \"md\", isActive, className, ...props }, ref) => {\n  const Comp = asChild ? Slot : \"a\"\n\n  return (\n    <Comp\n      ref={ref}\n      data-sidebar=\"menu-sub-button\"\n      data-size={size}\n      data-active={isActive}\n      className={cn(\n        \"flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground\",\n        \"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground\",\n        size === \"sm\" && \"text-xs\",\n        size === \"md\" && \"text-sm\",\n        \"group-data-[collapsible=icon]:hidden\",\n        className\n      )}\n      {...props}\n    />\n  )\n})\nSidebarMenuSubButton.displayName = \"SidebarMenuSubButton\"\n\nexport {\n  Sidebar,\n  SidebarContent,\n  SidebarFooter,\n  SidebarGroup,\n  SidebarGroupAction,\n  SidebarGroupContent,\n  SidebarGroupLabel,\n  SidebarHeader,\n  SidebarInput,\n  SidebarInset,\n  SidebarMenu,\n  SidebarMenuAction,\n  SidebarMenuBadge,\n  SidebarMenuButton,\n  SidebarMenuItem,\n  SidebarMenuSkeleton,\n  SidebarMenuSub,\n  SidebarMenuSubButton,\n  SidebarMenuSubItem,\n  SidebarProvider,\n  SidebarRail,\n  SidebarSeparator,\n  SidebarTrigger,\n  useSidebar,\n}\n"
  },
  {
    "path": "frontend/components/ui/skeleton.tsx",
    "content": "import { cn } from \"@/lib/utils\"\n\nfunction Skeleton({\n  className,\n  ...props\n}: React.HTMLAttributes<HTMLDivElement>) {\n  return (\n    <div\n      className={cn(\"animate-pulse rounded-md bg-muted\", className)}\n      {...props}\n    />\n  )\n}\n\nexport { Skeleton }\n"
  },
  {
    "path": "frontend/components/ui/slider.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as SliderPrimitive from \"@radix-ui/react-slider\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Slider = React.forwardRef<\n  React.ElementRef<typeof SliderPrimitive.Root>,\n  React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>\n>(({ className, ...props }, ref) => (\n  <SliderPrimitive.Root\n    ref={ref}\n    className={cn(\n      \"relative flex w-full touch-none select-none items-center\",\n      className\n    )}\n    {...props}\n  >\n    <SliderPrimitive.Track className=\"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary\">\n      <SliderPrimitive.Range className=\"absolute h-full bg-primary\" />\n    </SliderPrimitive.Track>\n    <SliderPrimitive.Thumb className=\"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50\" />\n  </SliderPrimitive.Root>\n))\nSlider.displayName = SliderPrimitive.Root.displayName\n\nexport { Slider }\n"
  },
  {
    "path": "frontend/components/ui/sonner.tsx",
    "content": "\"use client\"\n\nimport { useTheme } from \"next-themes\"\nimport { Toaster as Sonner } from \"sonner\"\n\ntype ToasterProps = React.ComponentProps<typeof Sonner>\n\nconst Toaster = ({ ...props }: ToasterProps) => {\n  const { theme = \"system\" } = useTheme()\n\n  return (\n    <Sonner\n      theme={theme as ToasterProps[\"theme\"]}\n      className=\"toaster group\"\n      toastOptions={{\n        classNames: {\n          toast:\n            \"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg\",\n          description: \"group-[.toast]:text-muted-foreground\",\n          actionButton:\n            \"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground\",\n          cancelButton:\n            \"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground\",\n        },\n      }}\n      {...props}\n    />\n  )\n}\n\nexport { Toaster }\n"
  },
  {
    "path": "frontend/components/ui/switch.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as SwitchPrimitives from \"@radix-ui/react-switch\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Switch = React.forwardRef<\n  React.ElementRef<typeof SwitchPrimitives.Root>,\n  React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>\n>(({ className, ...props }, ref) => (\n  <SwitchPrimitives.Root\n    className={cn(\n      \"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input\",\n      className\n    )}\n    {...props}\n    ref={ref}\n  >\n    <SwitchPrimitives.Thumb\n      className={cn(\n        \"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0\"\n      )}\n    />\n  </SwitchPrimitives.Root>\n))\nSwitch.displayName = SwitchPrimitives.Root.displayName\n\nexport { Switch }\n"
  },
  {
    "path": "frontend/components/ui/table.tsx",
    "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Table = React.forwardRef<\n  HTMLTableElement,\n  React.HTMLAttributes<HTMLTableElement>\n>(({ className, ...props }, ref) => (\n  <div className=\"relative w-full overflow-auto\">\n    <table\n      ref={ref}\n      className={cn(\"w-full caption-bottom text-sm\", className)}\n      {...props}\n    />\n  </div>\n))\nTable.displayName = \"Table\"\n\nconst TableHeader = React.forwardRef<\n  HTMLTableSectionElement,\n  React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n  <thead ref={ref} className={cn(\"[&_tr]:border-b\", className)} {...props} />\n))\nTableHeader.displayName = \"TableHeader\"\n\nconst TableBody = React.forwardRef<\n  HTMLTableSectionElement,\n  React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n  <tbody\n    ref={ref}\n    className={cn(\"[&_tr:last-child]:border-0\", className)}\n    {...props}\n  />\n))\nTableBody.displayName = \"TableBody\"\n\nconst TableFooter = React.forwardRef<\n  HTMLTableSectionElement,\n  React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n  <tfoot\n    ref={ref}\n    className={cn(\n      \"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0\",\n      className\n    )}\n    {...props}\n  />\n))\nTableFooter.displayName = \"TableFooter\"\n\nconst TableRow = React.forwardRef<\n  HTMLTableRowElement,\n  React.HTMLAttributes<HTMLTableRowElement>\n>(({ className, ...props }, ref) => (\n  <tr\n    ref={ref}\n    className={cn(\n      \"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted\",\n      className\n    )}\n    {...props}\n  />\n))\nTableRow.displayName = \"TableRow\"\n\nconst TableHead = React.forwardRef<\n  HTMLTableCellElement,\n  React.ThHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n  <th\n    ref={ref}\n    className={cn(\n      \"h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0\",\n      className\n    )}\n    {...props}\n  />\n))\nTableHead.displayName = \"TableHead\"\n\nconst TableCell = React.forwardRef<\n  HTMLTableCellElement,\n  React.TdHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n  <td\n    ref={ref}\n    className={cn(\"p-4 align-middle [&:has([role=checkbox])]:pr-0\", className)}\n    {...props}\n  />\n))\nTableCell.displayName = \"TableCell\"\n\nconst TableCaption = React.forwardRef<\n  HTMLTableCaptionElement,\n  React.HTMLAttributes<HTMLTableCaptionElement>\n>(({ className, ...props }, ref) => (\n  <caption\n    ref={ref}\n    className={cn(\"mt-4 text-sm text-muted-foreground\", className)}\n    {...props}\n  />\n))\nTableCaption.displayName = \"TableCaption\"\n\nexport {\n  Table,\n  TableHeader,\n  TableBody,\n  TableFooter,\n  TableHead,\n  TableRow,\n  TableCell,\n  TableCaption,\n}\n"
  },
  {
    "path": "frontend/components/ui/tabs.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as TabsPrimitive from \"@radix-ui/react-tabs\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Tabs = TabsPrimitive.Root\n\nconst TabsList = React.forwardRef<\n  React.ElementRef<typeof TabsPrimitive.List>,\n  React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>\n>(({ className, ...props }, ref) => (\n  <TabsPrimitive.List\n    ref={ref}\n    className={cn(\n      \"inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground\",\n      className\n    )}\n    {...props}\n  />\n))\nTabsList.displayName = TabsPrimitive.List.displayName\n\nconst TabsTrigger = React.forwardRef<\n  React.ElementRef<typeof TabsPrimitive.Trigger>,\n  React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\n>(({ className, ...props }, ref) => (\n  <TabsPrimitive.Trigger\n    ref={ref}\n    className={cn(\n      \"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm\",\n      className\n    )}\n    {...props}\n  />\n))\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName\n\nconst TabsContent = React.forwardRef<\n  React.ElementRef<typeof TabsPrimitive.Content>,\n  React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\n>(({ className, ...props }, ref) => (\n  <TabsPrimitive.Content\n    ref={ref}\n    className={cn(\n      \"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\",\n      className\n    )}\n    {...props}\n  />\n))\nTabsContent.displayName = TabsPrimitive.Content.displayName\n\nexport { Tabs, TabsList, TabsTrigger, TabsContent }\n"
  },
  {
    "path": "frontend/components/ui/textarea.tsx",
    "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Textarea = React.forwardRef<\n  HTMLTextAreaElement,\n  React.ComponentProps<\"textarea\">\n>(({ className, ...props }, ref) => {\n  return (\n    <textarea\n      className={cn(\n        \"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n        className\n      )}\n      ref={ref}\n      {...props}\n    />\n  )\n})\nTextarea.displayName = \"Textarea\"\n\nexport { Textarea }\n"
  },
  {
    "path": "frontend/components/ui/toast.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as ToastPrimitives from \"@radix-ui/react-toast\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { X } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst ToastProvider = ToastPrimitives.Provider\n\nconst ToastViewport = React.forwardRef<\n  React.ElementRef<typeof ToastPrimitives.Viewport>,\n  React.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport>\n>(({ className, ...props }, ref) => (\n  <ToastPrimitives.Viewport\n    ref={ref}\n    className={cn(\n      \"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]\",\n      className\n    )}\n    {...props}\n  />\n))\nToastViewport.displayName = ToastPrimitives.Viewport.displayName\n\nconst toastVariants = cva(\n  \"group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full\",\n  {\n    variants: {\n      variant: {\n        default: \"border bg-background text-foreground\",\n        destructive:\n          \"destructive group border-destructive bg-destructive text-destructive-foreground\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n    },\n  }\n)\n\nconst Toast = React.forwardRef<\n  React.ElementRef<typeof ToastPrimitives.Root>,\n  React.ComponentPropsWithoutRef<typeof ToastPrimitives.Root> &\n    VariantProps<typeof toastVariants>\n>(({ className, variant, ...props }, ref) => {\n  return (\n    <ToastPrimitives.Root\n      ref={ref}\n      className={cn(toastVariants({ variant }), className)}\n      {...props}\n    />\n  )\n})\nToast.displayName = ToastPrimitives.Root.displayName\n\nconst ToastAction = React.forwardRef<\n  React.ElementRef<typeof ToastPrimitives.Action>,\n  React.ComponentPropsWithoutRef<typeof ToastPrimitives.Action>\n>(({ className, ...props }, ref) => (\n  <ToastPrimitives.Action\n    ref={ref}\n    className={cn(\n      \"inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive\",\n      className\n    )}\n    {...props}\n  />\n))\nToastAction.displayName = ToastPrimitives.Action.displayName\n\nconst ToastClose = React.forwardRef<\n  React.ElementRef<typeof ToastPrimitives.Close>,\n  React.ComponentPropsWithoutRef<typeof ToastPrimitives.Close>\n>(({ className, ...props }, ref) => (\n  <ToastPrimitives.Close\n    ref={ref}\n    className={cn(\n      \"absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600\",\n      className\n    )}\n    toast-close=\"\"\n    {...props}\n  >\n    <X className=\"h-4 w-4\" />\n  </ToastPrimitives.Close>\n))\nToastClose.displayName = ToastPrimitives.Close.displayName\n\nconst ToastTitle = React.forwardRef<\n  React.ElementRef<typeof ToastPrimitives.Title>,\n  React.ComponentPropsWithoutRef<typeof ToastPrimitives.Title>\n>(({ className, ...props }, ref) => (\n  <ToastPrimitives.Title\n    ref={ref}\n    className={cn(\"text-sm font-semibold\", className)}\n    {...props}\n  />\n))\nToastTitle.displayName = ToastPrimitives.Title.displayName\n\nconst ToastDescription = React.forwardRef<\n  React.ElementRef<typeof ToastPrimitives.Description>,\n  React.ComponentPropsWithoutRef<typeof ToastPrimitives.Description>\n>(({ className, ...props }, ref) => (\n  <ToastPrimitives.Description\n    ref={ref}\n    className={cn(\"text-sm opacity-90\", className)}\n    {...props}\n  />\n))\nToastDescription.displayName = ToastPrimitives.Description.displayName\n\ntype ToastProps = React.ComponentPropsWithoutRef<typeof Toast>\n\ntype ToastActionElement = React.ReactElement<typeof ToastAction>\n\nexport {\n  type ToastProps,\n  type ToastActionElement,\n  ToastProvider,\n  ToastViewport,\n  Toast,\n  ToastTitle,\n  ToastDescription,\n  ToastClose,\n  ToastAction,\n}\n"
  },
  {
    "path": "frontend/components/ui/toaster.tsx",
    "content": "'use client';\n\nimport { useToast } from '@/hooks/use-toast';\nimport {\n  Toast,\n  ToastClose,\n  ToastDescription,\n  ToastProvider,\n  ToastTitle,\n  ToastViewport,\n} from '@/components/ui/toast';\n\nexport function Toaster() {\n  const { toasts } = useToast();\n\n  return (\n    <ToastProvider>\n      {toasts.map(function ({ id, title, description, action, ...props }) {\n        return (\n          <Toast key={id} {...props}>\n            <div className=\"grid gap-1\">\n              {title && <ToastTitle>{title}</ToastTitle>}\n              {description && (\n                <ToastDescription>{description}</ToastDescription>\n              )}\n            </div>\n            {action}\n            <ToastClose />\n          </Toast>\n        );\n      })}\n      <ToastViewport />\n    </ToastProvider>\n  );\n}\n"
  },
  {
    "path": "frontend/components/ui/toggle-group.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as ToggleGroupPrimitive from \"@radix-ui/react-toggle-group\"\nimport { type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\nimport { toggleVariants } from \"@/components/ui/toggle\"\n\nconst ToggleGroupContext = React.createContext<\n  VariantProps<typeof toggleVariants>\n>({\n  size: \"default\",\n  variant: \"default\",\n})\n\nconst ToggleGroup = React.forwardRef<\n  React.ElementRef<typeof ToggleGroupPrimitive.Root>,\n  React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> &\n    VariantProps<typeof toggleVariants>\n>(({ className, variant, size, children, ...props }, ref) => (\n  <ToggleGroupPrimitive.Root\n    ref={ref}\n    className={cn(\"flex items-center justify-center gap-1\", className)}\n    {...props}\n  >\n    <ToggleGroupContext.Provider value={{ variant, size }}>\n      {children}\n    </ToggleGroupContext.Provider>\n  </ToggleGroupPrimitive.Root>\n))\n\nToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName\n\nconst ToggleGroupItem = React.forwardRef<\n  React.ElementRef<typeof ToggleGroupPrimitive.Item>,\n  React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item> &\n    VariantProps<typeof toggleVariants>\n>(({ className, children, variant, size, ...props }, ref) => {\n  const context = React.useContext(ToggleGroupContext)\n\n  return (\n    <ToggleGroupPrimitive.Item\n      ref={ref}\n      className={cn(\n        toggleVariants({\n          variant: context.variant || variant,\n          size: context.size || size,\n        }),\n        className\n      )}\n      {...props}\n    >\n      {children}\n    </ToggleGroupPrimitive.Item>\n  )\n})\n\nToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName\n\nexport { ToggleGroup, ToggleGroupItem }\n"
  },
  {
    "path": "frontend/components/ui/toggle.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as TogglePrimitive from \"@radix-ui/react-toggle\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst toggleVariants = cva(\n  \"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-transparent\",\n        outline:\n          \"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground\",\n      },\n      size: {\n        default: \"h-10 px-3 min-w-10\",\n        sm: \"h-9 px-2.5 min-w-9\",\n        lg: \"h-11 px-5 min-w-11\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n      size: \"default\",\n    },\n  }\n)\n\nconst Toggle = React.forwardRef<\n  React.ElementRef<typeof TogglePrimitive.Root>,\n  React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root> &\n    VariantProps<typeof toggleVariants>\n>(({ className, variant, size, ...props }, ref) => (\n  <TogglePrimitive.Root\n    ref={ref}\n    className={cn(toggleVariants({ variant, size, className }))}\n    {...props}\n  />\n))\n\nToggle.displayName = TogglePrimitive.Root.displayName\n\nexport { Toggle, toggleVariants }\n"
  },
  {
    "path": "frontend/components/ui/tooltip.tsx",
    "content": "\"use client\"\n\nimport * as React from \"react\"\nimport * as TooltipPrimitive from \"@radix-ui/react-tooltip\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst TooltipProvider = TooltipPrimitive.Provider\n\nconst Tooltip = TooltipPrimitive.Root\n\nconst TooltipTrigger = TooltipPrimitive.Trigger\n\nconst TooltipContent = React.forwardRef<\n  React.ElementRef<typeof TooltipPrimitive.Content>,\n  React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n  <TooltipPrimitive.Content\n    ref={ref}\n    sideOffset={sideOffset}\n    className={cn(\n      \"z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n      className\n    )}\n    {...props}\n  />\n))\nTooltipContent.displayName = TooltipPrimitive.Content.displayName\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }\n"
  },
  {
    "path": "frontend/components/ui/use-mobile.tsx",
    "content": "import * as React from \"react\"\n\nconst MOBILE_BREAKPOINT = 768\n\nexport function useIsMobile() {\n  const [isMobile, setIsMobile] = React.useState<boolean | undefined>(undefined)\n\n  React.useEffect(() => {\n    const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`)\n    const onChange = () => {\n      setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)\n    }\n    mql.addEventListener(\"change\", onChange)\n    setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)\n    return () => mql.removeEventListener(\"change\", onChange)\n  }, [])\n\n  return !!isMobile\n}\n"
  },
  {
    "path": "frontend/components.json",
    "content": "{\n  \"$schema\": \"https://ui.shadcn.com/schema.json\",\n  \"style\": \"default\",\n  \"rsc\": true,\n  \"tsx\": true,\n  \"tailwind\": {\n    \"config\": \"tailwind.config.ts\",\n    \"css\": \"app/globals.css\",\n    \"baseColor\": \"neutral\",\n    \"cssVariables\": true,\n    \"prefix\": \"\"\n  },\n  \"aliases\": {\n    \"components\": \"@/components\",\n    \"utils\": \"@/lib/utils\",\n    \"ui\": \"@/components/ui\",\n    \"lib\": \"@/lib\",\n    \"hooks\": \"@/hooks\"\n  },\n  \"iconLibrary\": \"lucide\"\n}"
  },
  {
    "path": "frontend/constants/graphConfigs.ts",
    "content": "import { AgentConfiguration, IndexConfiguration } from '@/types/graphTypes';\n\ntype StreamConfigurables = AgentConfiguration;\ntype IndexConfigurables = IndexConfiguration;\n\nexport const retrievalAssistantStreamConfig: StreamConfigurables = {\n  queryModel: 'openai/gpt-4o-mini',\n  retrieverProvider: 'supabase',\n  k: 5,\n};\n\n/**\n * The configuration for the indexing/ingestion process.\n */\nexport const indexConfig: IndexConfigurables = {\n  useSampleDocs: false,\n  retrieverProvider: 'supabase',\n};\n"
  },
  {
    "path": "frontend/hooks/use-mobile.tsx",
    "content": "import * as React from \"react\"\n\nconst MOBILE_BREAKPOINT = 768\n\nexport function useIsMobile() {\n  const [isMobile, setIsMobile] = React.useState<boolean | undefined>(undefined)\n\n  React.useEffect(() => {\n    const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`)\n    const onChange = () => {\n      setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)\n    }\n    mql.addEventListener(\"change\", onChange)\n    setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)\n    return () => mql.removeEventListener(\"change\", onChange)\n  }, [])\n\n  return !!isMobile\n}\n"
  },
  {
    "path": "frontend/hooks/use-toast.ts",
    "content": "'use client';\n\n// Inspired by react-hot-toast library\nimport * as React from 'react';\n\nimport type { ToastActionElement, ToastProps } from '@/components/ui/toast';\n\nconst TOAST_LIMIT = 1;\nconst TOAST_REMOVE_DELAY = 5000; // 5 seconds - standard duration for toast notifications\n\ntype ToasterToast = ToastProps & {\n  id: string;\n  title?: React.ReactNode;\n  description?: React.ReactNode;\n  action?: ToastActionElement;\n};\n\nconst actionTypes = {\n  ADD_TOAST: 'ADD_TOAST',\n  UPDATE_TOAST: 'UPDATE_TOAST',\n  DISMISS_TOAST: 'DISMISS_TOAST',\n  REMOVE_TOAST: 'REMOVE_TOAST',\n} as const;\n\nlet count = 0;\n\nfunction genId() {\n  count = (count + 1) % Number.MAX_SAFE_INTEGER;\n  return count.toString();\n}\n\ntype ActionType = typeof actionTypes;\n\ntype Action =\n  | {\n      type: ActionType['ADD_TOAST'];\n      toast: ToasterToast;\n    }\n  | {\n      type: ActionType['UPDATE_TOAST'];\n      toast: Partial<ToasterToast>;\n    }\n  | {\n      type: ActionType['DISMISS_TOAST'];\n      toastId?: ToasterToast['id'];\n    }\n  | {\n      type: ActionType['REMOVE_TOAST'];\n      toastId?: ToasterToast['id'];\n    };\n\ninterface State {\n  toasts: ToasterToast[];\n}\n\nconst toastTimeouts = new Map<string, ReturnType<typeof setTimeout>>();\n\nconst addToRemoveQueue = (toastId: string) => {\n  if (toastTimeouts.has(toastId)) {\n    return;\n  }\n\n  const timeout = setTimeout(() => {\n    toastTimeouts.delete(toastId);\n    dispatch({\n      type: 'REMOVE_TOAST',\n      toastId: toastId,\n    });\n  }, TOAST_REMOVE_DELAY);\n\n  toastTimeouts.set(toastId, timeout);\n};\n\nexport const reducer = (state: State, action: Action): State => {\n  console.log('Toast reducer:', action.type, action);\n  switch (action.type) {\n    case 'ADD_TOAST':\n      return {\n        ...state,\n        toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT),\n      };\n\n    case 'UPDATE_TOAST':\n      return {\n        ...state,\n        toasts: state.toasts.map((t) =>\n          t.id === action.toast.id ? { ...t, ...action.toast } : t,\n        ),\n      };\n\n    case 'DISMISS_TOAST': {\n      const { toastId } = action;\n\n      // ! Side effects ! - This could be extracted into a dismissToast() action,\n      // but I'll keep it here for simplicity\n      if (toastId) {\n        addToRemoveQueue(toastId);\n      } else {\n        state.toasts.forEach((toast) => {\n          addToRemoveQueue(toast.id);\n        });\n      }\n\n      return {\n        ...state,\n        toasts: state.toasts.map((t) =>\n          t.id === toastId || toastId === undefined\n            ? {\n                ...t,\n                open: false,\n              }\n            : t,\n        ),\n      };\n    }\n    case 'REMOVE_TOAST':\n      if (action.toastId === undefined) {\n        return {\n          ...state,\n          toasts: [],\n        };\n      }\n      return {\n        ...state,\n        toasts: state.toasts.filter((t) => t.id !== action.toastId),\n      };\n  }\n};\n\nconst listeners: Array<(state: State) => void> = [];\n\nlet memoryState: State = { toasts: [] };\n\nfunction dispatch(action: Action) {\n  memoryState = reducer(memoryState, action);\n  listeners.forEach((listener) => {\n    listener(memoryState);\n  });\n}\n\ntype Toast = Omit<ToasterToast, 'id'>;\n\nfunction toast({ ...props }: Toast) {\n  const id = genId();\n\n  const update = (props: ToasterToast) =>\n    dispatch({\n      type: 'UPDATE_TOAST',\n      toast: { ...props, id },\n    });\n  const dismiss = () => dispatch({ type: 'DISMISS_TOAST', toastId: id });\n\n  dispatch({\n    type: 'ADD_TOAST',\n    toast: {\n      ...props,\n      id,\n      open: true,\n      onOpenChange: (open) => {\n        if (!open) dismiss();\n      },\n    },\n  });\n\n  return {\n    id: id,\n    dismiss,\n    update,\n  };\n}\n\nfunction useToast() {\n  const [state, setState] = React.useState<State>(memoryState);\n\n  React.useEffect(() => {\n    listeners.push(setState);\n\n    return () => {\n      const index = listeners.indexOf(setState);\n      if (index > -1) {\n        listeners.splice(index, 1);\n      }\n    };\n  }, [state]);\n\n  return {\n    ...state,\n    toast,\n    dismiss: (toastId?: string) => dispatch({ type: 'DISMISS_TOAST', toastId }),\n  };\n}\n\nexport { useToast, toast };\n"
  },
  {
    "path": "frontend/jest.config.js",
    "content": "const nextJest = require('next/jest');\n\nconst createJestConfig = nextJest({\n  // Provide the path to your Next.js app to load next.config.js and .env files in your test environment\n  dir: './',\n});\n\n// Add any custom config to be passed to Jest\nconst customJestConfig = {\n  setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],\n  testEnvironment: 'jest-environment-jsdom',\n  preset: 'ts-jest',\n  moduleNameMapper: {\n    '^@/(.*)$': '<rootDir>/$1',\n  },\n};\n\n// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async\nmodule.exports = createJestConfig(customJestConfig);\n"
  },
  {
    "path": "frontend/jest.setup.js",
    "content": "// Learn more: https://github.com/testing-library/jest-dom\nimport '@testing-library/jest-dom';\nimport fetch, { Request, Response } from 'node-fetch';\nimport { ReadableStream, TransformStream } from 'node:stream/web';\nimport { TextEncoder, TextDecoder } from 'util';\n\n// Polyfill web streams and encoding APIs\nglobal.ReadableStream = ReadableStream;\nglobal.TransformStream = TransformStream;\nglobal.TextEncoder = TextEncoder;\nglobal.TextDecoder = TextDecoder;\n\n// Polyfill fetch API\nglobal.fetch = fetch;\nglobal.Request = Request;\nglobal.Response = Response;\n\n// Mock environment variables\nprocess.env.NEXT_PUBLIC_LANGGRAPH_API_URL = 'http://localhost:2024';\nprocess.env.LANGCHAIN_API_KEY = 'test-key';\n\n// Mock the performance API\nglobal.performance = {\n  getEntriesByName: () => [], // Provide a mock implementation\n};\n\n// Mock NextResponse.json\nglobal.Response.json = (data, init) => {\n  const response = new Response(JSON.stringify(data), init);\n  response.json = async () => data; // Mock the json() method\n  return response;\n};\n"
  },
  {
    "path": "frontend/lib/langgraph-base.ts",
    "content": "import {\n  Client,\n  DefaultValues,\n  Thread,\n  ThreadState,\n} from '@langchain/langgraph-sdk';\n\nexport class LangGraphBase {\n  client: Client;\n\n  constructor(client: Client) {\n    this.client = client;\n  }\n\n  /**\n   * Creates a new thread with optional metadata\n   */\n  async createThread(metadata?: Record<string, any>) {\n    return this.client.threads.create({ metadata });\n  }\n\n  /**\n   * Gets a thread by ID\n   */\n  async getThread(threadId: string): Promise<Thread> {\n    return this.client.threads.get(threadId);\n  }\n\n  /**\n   * Searches for threads with optional metadata filters\n   */\n  async searchThreads(params: {\n    metadata?: Record<string, any>;\n    limit?: number;\n    offset?: number;\n  }): Promise<Thread[]> {\n    return this.client.threads.search({\n      metadata: params.metadata,\n      limit: params.limit || 10,\n      offset: params.offset || 0,\n    });\n  }\n\n  /**\n   * Gets the current state of a thread\n   */\n  async getThreadState<T extends Record<string, any> = Record<string, any>>(\n    threadId: string,\n  ): Promise<ThreadState<T>> {\n    return this.client.threads.getState(threadId);\n  }\n\n  /**\n   * Updates the state of a thread\n   */\n  async updateThreadState(\n    threadId: string,\n    values: Record<string, any>,\n    asNode?: string,\n  ) {\n    return this.client.threads.updateState(threadId, {\n      values,\n      asNode,\n    });\n  }\n\n  /**\n   * Deletes a thread by ID\n   */\n  async deleteThread(threadId: string) {\n    return this.client.threads.delete(threadId);\n  }\n\n  /**\n   * Gets the history of a thread's states\n   */\n  async getThreadHistory(threadId: string, limit: number = 10) {\n    return this.client.threads.getHistory(threadId, { limit });\n  }\n\n  /**\n   * Utility function to check if a thread is interrupted\n   */\n  isThreadInterrupted(thread: Thread): boolean {\n    return !!(thread.interrupts && Object.keys(thread.interrupts).length > 0);\n  }\n\n  /**\n   * Utility function to get interrupts from a thread\n   */\n  getThreadInterrupts(thread: Thread): any[] | undefined {\n    if (!thread.interrupts) return undefined;\n\n    return Object.values(thread.interrupts).flatMap((interrupt) => {\n      if (Array.isArray(interrupt[0])) {\n        return interrupt[0][1]?.value;\n      }\n      return interrupt.map((i) => i.value);\n    });\n  }\n\n  /**\n   * Utility function to resume an interrupted thread\n   */\n  async resumeThread(\n    threadId: string,\n    assistantId: string,\n    resumeValue: any,\n    config?: {\n      configurable?: { [key: string]: unknown };\n    },\n  ) {\n    return this.client.runs.stream(threadId, assistantId, {\n      command: { resume: resumeValue },\n      config: {\n        configurable: config?.configurable,\n      },\n    });\n  }\n}\n"
  },
  {
    "path": "frontend/lib/langgraph-client.ts",
    "content": "import { Client } from '@langchain/langgraph-sdk';\nimport { LangGraphBase } from './langgraph-base';\n\n// Frontend client singleton instance\nlet clientInstance: LangGraphBase | null = null;\n\n/**\n * Creates or returns a singleton instance of the LangGraph client for frontend use\n * @returns LangGraph Client instance\n */\nexport const createClient = () => {\n  if (clientInstance) {\n    return clientInstance;\n  }\n\n  if (!process.env.NEXT_PUBLIC_LANGGRAPH_API_URL) {\n    throw new Error('NEXT_PUBLIC_LANGGRAPH_API_URL is not set');\n  }\n\n  const client = new Client({\n    apiUrl: process.env.NEXT_PUBLIC_LANGGRAPH_API_URL,\n  });\n\n  clientInstance = new LangGraphBase(client);\n  return clientInstance;\n};\n\nexport const client = createClient();\n"
  },
  {
    "path": "frontend/lib/langgraph-server.ts",
    "content": "import { Client } from '@langchain/langgraph-sdk';\nimport { LangGraphBase } from './langgraph-base';\n\n// Server client singleton instance\nlet clientInstance: LangGraphBase | null = null;\n\n/**\n * Creates or returns a singleton instance of the LangGraph client for server-side use\n * @returns LangGraph Client instance\n */\nexport const createServerClient = () => {\n  if (clientInstance) {\n    return clientInstance;\n  }\n\n  if (!process.env.NEXT_PUBLIC_LANGGRAPH_API_URL) {\n    throw new Error('NEXT_PUBLIC_LANGGRAPH_API_URL is not set');\n  }\n\n  if (!process.env.LANGCHAIN_API_KEY) {\n    throw new Error('LANGCHAIN_API_KEY is not set');\n  }\n\n  const client = new Client({\n    apiUrl: process.env.NEXT_PUBLIC_LANGGRAPH_API_URL,\n    defaultHeaders: {\n      'Content-Type': 'application/json',\n      'X-Api-Key': process.env.LANGCHAIN_API_KEY,\n    },\n  });\n\n  clientInstance = new LangGraphBase(client);\n  return clientInstance;\n};\n\n// Export all methods from the base class instance\nexport const langGraphServerClient = createServerClient();\n"
  },
  {
    "path": "frontend/lib/pdf.ts",
    "content": "import { PDFLoader } from '@langchain/community/document_loaders/fs/pdf';\nimport { Document } from '@langchain/core/documents';\nimport fs from 'fs/promises';\nimport os from 'os';\nimport path from 'path';\n\n/**\n * Processes a PDF file by parsing it into Document objects.\n * @param file - The PDF file to process.\n * @returns An array of Document objects extracted from the PDF.\n */\nexport async function processPDF(file: File): Promise<Document[]> {\n  const buffer = await bufferFile(file);\n  const tempDir = await fs.mkdtemp(path.join(os.tmpdir(), 'pdf-'));\n  const tempFilePath = path.join(tempDir, file.name);\n\n  try {\n    await fs.writeFile(tempFilePath, buffer);\n    const loader = new PDFLoader(tempFilePath);\n    const docs = await loader.load();\n\n    // Add filename to metadata for each document\n    docs.forEach((doc) => {\n      doc.metadata.filename = file.name;\n    });\n\n    return docs;\n  } finally {\n    // Clean up temporary files\n    await fs\n      .unlink(tempFilePath)\n      .catch((err) => console.error('Error deleting temp file:', err));\n    await fs\n      .rmdir(tempDir)\n      .catch((err) => console.error('Error deleting temp dir:', err));\n  }\n}\n\n/**\n * Converts a File object to a Buffer.\n * @param file - The uploaded file.\n * @returns A Buffer containing the file content.\n */\nasync function bufferFile(file: File): Promise<Buffer> {\n  try {\n    const arrayBuffer = await file.arrayBuffer();\n    const buffer = Buffer.from(arrayBuffer);\n    return buffer;\n  } catch (error) {\n    console.error('Error buffering file:', error);\n    throw new Error('Failed to read file content.');\n  }\n}\n"
  },
  {
    "path": "frontend/lib/utils.ts",
    "content": "import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs));\n}\n"
  },
  {
    "path": "frontend/next.config.mjs",
    "content": "let userConfig = undefined\ntry {\n  userConfig = await import('./v0-user-next.config')\n} catch (e) {\n  // ignore error\n}\n\n/** @type {import('next').NextConfig} */\nconst nextConfig = {\n  eslint: {\n    ignoreDuringBuilds: true,\n  },\n  typescript: {\n    ignoreBuildErrors: true,\n  },\n  images: {\n    unoptimized: true,\n  },\n  experimental: {\n    webpackBuildWorker: true,\n    parallelServerBuildTraces: true,\n    parallelServerCompiles: true,\n  },\n}\n\nmergeConfig(nextConfig, userConfig)\n\nfunction mergeConfig(nextConfig, userConfig) {\n  if (!userConfig) {\n    return\n  }\n\n  for (const key in userConfig) {\n    if (\n      typeof nextConfig[key] === 'object' &&\n      !Array.isArray(nextConfig[key])\n    ) {\n      nextConfig[key] = {\n        ...nextConfig[key],\n        ...userConfig[key],\n      }\n    } else {\n      nextConfig[key] = userConfig[key]\n    }\n  }\n}\n\nexport default nextConfig\n"
  },
  {
    "path": "frontend/package.json",
    "content": "{\n  \"name\": \"frontend\",\n  \"version\": \"0.1.0\",\n  \"description\": \"Frontend for the AI chatbot based on the book Learning LangChain\",\n  \"private\": true,\n  \"scripts\": {\n    \"dev\": \"next dev\",\n    \"build\": \"next build\",\n    \"start\": \"next start\",\n    \"lint\": \"next lint\",\n    \"test\": \"jest\",\n    \"test:watch\": \"jest --watch\"\n  },\n  \"dependencies\": {\n    \"@hookform/resolvers\": \"^3.9.1\",\n    \"@langchain/community\": \"^0.3.31\",\n    \"@langchain/core\": \"^0.3.40\",\n    \"@langchain/langgraph-sdk\": \"^0.0.42\",\n    \"@radix-ui/react-accordion\": \"^1.2.2\",\n    \"@radix-ui/react-alert-dialog\": \"^1.1.4\",\n    \"@radix-ui/react-aspect-ratio\": \"^1.1.1\",\n    \"@radix-ui/react-avatar\": \"^1.1.2\",\n    \"@radix-ui/react-checkbox\": \"^1.1.3\",\n    \"@radix-ui/react-collapsible\": \"^1.1.2\",\n    \"@radix-ui/react-context-menu\": \"^2.2.4\",\n    \"@radix-ui/react-dialog\": \"^1.1.4\",\n    \"@radix-ui/react-dropdown-menu\": \"^2.1.4\",\n    \"@radix-ui/react-hover-card\": \"^1.1.4\",\n    \"@radix-ui/react-label\": \"^2.1.1\",\n    \"@radix-ui/react-menubar\": \"^1.1.4\",\n    \"@radix-ui/react-navigation-menu\": \"^1.2.3\",\n    \"@radix-ui/react-popover\": \"^1.1.4\",\n    \"@radix-ui/react-progress\": \"^1.1.1\",\n    \"@radix-ui/react-radio-group\": \"^1.2.2\",\n    \"@radix-ui/react-scroll-area\": \"^1.2.2\",\n    \"@radix-ui/react-select\": \"^2.1.4\",\n    \"@radix-ui/react-separator\": \"^1.1.1\",\n    \"@radix-ui/react-slider\": \"^1.2.2\",\n    \"@radix-ui/react-slot\": \"^1.1.1\",\n    \"@radix-ui/react-switch\": \"^1.1.2\",\n    \"@radix-ui/react-tabs\": \"^1.1.2\",\n    \"@radix-ui/react-toast\": \"^1.2.4\",\n    \"@radix-ui/react-toggle\": \"^1.1.1\",\n    \"@radix-ui/react-toggle-group\": \"^1.1.1\",\n    \"@radix-ui/react-tooltip\": \"^1.1.6\",\n    \"@tailwindcss/typography\": \"latest\",\n    \"autoprefixer\": \"^10.4.20\",\n    \"class-variance-authority\": \"^0.7.1\",\n    \"clsx\": \"^2.1.1\",\n    \"cmdk\": \"1.0.4\",\n    \"date-fns\": \"^3.0.0\",\n    \"embla-carousel-react\": \"8.5.1\",\n    \"formidable\": \"^3.5.2\",\n    \"geist\": \"latest\",\n    \"input-otp\": \"1.4.1\",\n    \"lucide-react\": \"^0.454.0\",\n    \"next\": \"14.2.16\",\n    \"next-themes\": \"^0.4.4\",\n    \"pdf-parse\": \"^1.1.1\",\n    \"react\": \"^18\",\n    \"react-day-picker\": \"8.10.1\",\n    \"react-dom\": \"^18\",\n    \"react-hook-form\": \"^7.54.1\",\n    \"react-resizable-panels\": \"^2.1.7\",\n    \"recharts\": \"2.15.0\",\n    \"sonner\": \"^1.7.1\",\n    \"tailwind-merge\": \"^2.5.5\",\n    \"tailwindcss\": \"latest\",\n    \"tailwindcss-animate\": \"^1.0.7\",\n    \"vaul\": \"^0.9.6\",\n    \"zod\": \"^3.24.1\"\n  },\n  \"devDependencies\": {\n    \"@testing-library/jest-dom\": \"^6.6.3\",\n    \"@testing-library/react\": \"^16.2.0\",\n    \"@types/formidable\": \"^3.4.5\",\n    \"@types/jest\": \"^29.5.14\",\n    \"@types/node\": \"^22\",\n    \"@types/node-fetch\": \"^2.6.12\",\n    \"@types/pdfkit\": \"^0.13.9\",\n    \"@types/react\": \"^18\",\n    \"@types/react-dom\": \"^18\",\n    \"@types/supertest\": \"^6.0.2\",\n    \"jest\": \"^29.7.0\",\n    \"jest-environment-jsdom\": \"^29.7.0\",\n    \"node-fetch\": \"^2.7.0\",\n    \"pdfkit\": \"^0.16.0\",\n    \"postcss\": \"^8\",\n    \"supertest\": \"^7.0.0\",\n    \"tailwindcss\": \"^3.4.17\",\n    \"ts-jest\": \"^29.2.5\",\n    \"typescript\": \"^5\"\n  },\n  \"license\": \"MIT\"\n}\n"
  },
  {
    "path": "frontend/postcss.config.mjs",
    "content": "/** @type {import('postcss-load-config').Config} */\nconst config = {\n  plugins: {\n    tailwindcss: {},\n  },\n};\n\nexport default config;\n"
  },
  {
    "path": "frontend/styles/globals.css",
    "content": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n\nbody {\n  font-family: Arial, Helvetica, sans-serif;\n}\n\n@layer utilities {\n  .text-balance {\n    text-wrap: balance;\n  }\n}\n\n@layer base {\n  :root {\n    --background: 0 0% 100%;\n    --foreground: 0 0% 3.9%;\n    --card: 0 0% 100%;\n    --card-foreground: 0 0% 3.9%;\n    --popover: 0 0% 100%;\n    --popover-foreground: 0 0% 3.9%;\n    --primary: 0 0% 9%;\n    --primary-foreground: 0 0% 98%;\n    --secondary: 0 0% 96.1%;\n    --secondary-foreground: 0 0% 9%;\n    --muted: 0 0% 96.1%;\n    --muted-foreground: 0 0% 45.1%;\n    --accent: 0 0% 96.1%;\n    --accent-foreground: 0 0% 9%;\n    --destructive: 0 84.2% 60.2%;\n    --destructive-foreground: 0 0% 98%;\n    --border: 0 0% 89.8%;\n    --input: 0 0% 89.8%;\n    --ring: 0 0% 3.9%;\n    --chart-1: 12 76% 61%;\n    --chart-2: 173 58% 39%;\n    --chart-3: 197 37% 24%;\n    --chart-4: 43 74% 66%;\n    --chart-5: 27 87% 67%;\n    --radius: 0.5rem;\n    --sidebar-background: 0 0% 98%;\n    --sidebar-foreground: 240 5.3% 26.1%;\n    --sidebar-primary: 240 5.9% 10%;\n    --sidebar-primary-foreground: 0 0% 98%;\n    --sidebar-accent: 240 4.8% 95.9%;\n    --sidebar-accent-foreground: 240 5.9% 10%;\n    --sidebar-border: 220 13% 91%;\n    --sidebar-ring: 217.2 91.2% 59.8%;\n  }\n  .dark {\n    --background: 0 0% 3.9%;\n    --foreground: 0 0% 98%;\n    --card: 0 0% 3.9%;\n    --card-foreground: 0 0% 98%;\n    --popover: 0 0% 3.9%;\n    --popover-foreground: 0 0% 98%;\n    --primary: 0 0% 98%;\n    --primary-foreground: 0 0% 9%;\n    --secondary: 0 0% 14.9%;\n    --secondary-foreground: 0 0% 98%;\n    --muted: 0 0% 14.9%;\n    --muted-foreground: 0 0% 63.9%;\n    --accent: 0 0% 14.9%;\n    --accent-foreground: 0 0% 98%;\n    --destructive: 0 62.8% 30.6%;\n    --destructive-foreground: 0 0% 98%;\n    --border: 0 0% 14.9%;\n    --input: 0 0% 14.9%;\n    --ring: 0 0% 83.1%;\n    --chart-1: 220 70% 50%;\n    --chart-2: 160 60% 45%;\n    --chart-3: 30 80% 55%;\n    --chart-4: 280 65% 60%;\n    --chart-5: 340 75% 55%;\n    --sidebar-background: 240 5.9% 10%;\n    --sidebar-foreground: 240 4.8% 95.9%;\n    --sidebar-primary: 224.3 76.3% 48%;\n    --sidebar-primary-foreground: 0 0% 100%;\n    --sidebar-accent: 240 3.7% 15.9%;\n    --sidebar-accent-foreground: 240 4.8% 95.9%;\n    --sidebar-border: 240 3.7% 15.9%;\n    --sidebar-ring: 217.2 91.2% 59.8%;\n  }\n}\n\n@layer base {\n  * {\n    @apply border-border;\n  }\n  body {\n    @apply bg-background text-foreground;\n  }\n}\n"
  },
  {
    "path": "frontend/tailwind.config.ts",
    "content": "import type { Config } from 'tailwindcss';\n\nconst config = {\n  darkMode: ['class'],\n  content: [\n    './pages/**/*.{ts,tsx}',\n    './components/**/*.{ts,tsx}',\n    './app/**/*.{ts,tsx}',\n    './src/**/*.{ts,tsx}',\n    '*.{js,ts,jsx,tsx,mdx}',\n  ],\n  prefix: '',\n  theme: {\n    container: {\n      center: true,\n      padding: '2rem',\n      screens: {\n        '2xl': '1400px',\n      },\n    },\n    extend: {\n      keyframes: {\n        loading: {\n          '0%': { opacity: '.2' },\n          '20%': { opacity: '1' },\n          '100%': { opacity: '.2' },\n        },\n      },\n      animation: {\n        loading: 'loading 1s ease-in-out infinite',\n      },\n      colors: {\n        border: 'hsl(var(--border))',\n        input: 'hsl(var(--input))',\n        ring: 'hsl(var(--ring))',\n        background: 'hsl(var(--background))',\n        foreground: 'hsl(var(--foreground))',\n        primary: {\n          DEFAULT: 'hsl(var(--primary))',\n          foreground: 'hsl(var(--primary-foreground))',\n        },\n        secondary: {\n          DEFAULT: 'hsl(var(--secondary))',\n          foreground: 'hsl(var(--secondary-foreground))',\n        },\n        destructive: {\n          DEFAULT: 'hsl(var(--destructive))',\n          foreground: 'hsl(var(--destructive-foreground))',\n        },\n        muted: {\n          DEFAULT: 'hsl(var(--muted))',\n          foreground: 'hsl(var(--muted-foreground))',\n        },\n        accent: {\n          DEFAULT: 'hsl(var(--accent))',\n          foreground: 'hsl(var(--accent-foreground))',\n        },\n        popover: {\n          DEFAULT: 'hsl(var(--popover))',\n          foreground: 'hsl(var(--popover-foreground))',\n        },\n        card: {\n          DEFAULT: 'hsl(var(--card))',\n          foreground: 'hsl(var(--card-foreground))',\n        },\n      },\n      borderRadius: {\n        lg: 'var(--radius)',\n        md: 'calc(var(--radius) - 2px)',\n        sm: 'calc(var(--radius) - 4px)',\n      },\n    },\n  },\n  plugins: [require('tailwindcss-animate'), require('@tailwindcss/typography')],\n} satisfies Config;\n\nexport default config;\n"
  },
  {
    "path": "frontend/tsconfig.json",
    "content": "{\n  \"compilerOptions\": {\n    \"lib\": [\"dom\", \"dom.iterable\", \"esnext\"],\n    \"allowJs\": true,\n    \"target\": \"ES6\",\n    \"skipLibCheck\": true,\n    \"strict\": true,\n    \"noEmit\": true,\n    \"esModuleInterop\": true,\n    \"module\": \"esnext\",\n    \"moduleResolution\": \"bundler\",\n    \"resolveJsonModule\": true,\n    \"isolatedModules\": true,\n    \"jsx\": \"preserve\",\n    \"incremental\": true,\n    \"plugins\": [\n      {\n        \"name\": \"next\"\n      }\n    ],\n    \"paths\": {\n      \"@/*\": [\"./*\"]\n    }\n  },\n  \"include\": [\"next-env.d.ts\", \"**/*.ts\", \"**/*.tsx\", \".next/types/**/*.ts\"],\n  \"exclude\": [\"node_modules\"]\n}\n"
  },
  {
    "path": "frontend/types/graphTypes.ts",
    "content": "import { Document } from '@langchain/core/documents';\n\n/**\n * Represents the state of the retrieval graph / agent.\n */\nexport type documentType =\n  | PDFDocument[]\n  | { [key: string]: any }[]\n  | string[]\n  | string\n  | 'delete';\nexport interface AgentState {\n  query?: string;\n  route?: string;\n  messages: Array<{\n    content: string;\n    additional_kwargs: Record<string, any>;\n    response_metadata: Record<string, any>;\n    id: string;\n    type: 'human' | 'assistant';\n  }>;\n  documents: documentType;\n}\n\nexport interface RetrieveDocumentsNodeUpdates {\n  retrieveDocuments: {\n    documents: documentType;\n  };\n}\n\nexport type PDFDocument = Document & {\n  metadata?: {\n    loc?: {\n      lines?: {\n        from: number;\n        to: number;\n      };\n      pageNumber?: number;\n    };\n    pdf?: {\n      info?: {\n        Title?: string;\n        Creator?: string;\n        Producer?: string;\n        CreationDate?: string;\n        IsXFAPresent?: boolean;\n        PDFFormatVersion?: string;\n        IsAcroFormPresent?: boolean;\n      };\n      version?: string;\n      metadata?: any;\n      totalPages?: number;\n    };\n    uuid?: string;\n    source?: string;\n  };\n};\n\nexport interface BaseConfiguration {\n  /**\n   * The vector store provider to use for retrieval.\n   * @default 'supabase'\n   */\n  retrieverProvider?: 'supabase';\n\n  /**\n   * Additional keyword arguments to pass to the search function of the retriever for filtering.\n   * @default {}\n   */\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  filterKwargs?: Record<string, any>;\n\n  /**\n   * The number of documents to retrieve.\n   * @default 5\n   */\n  k?: number;\n}\n\nexport interface AgentConfiguration extends BaseConfiguration {\n  // models\n  /**\n   * The language model used for processing and refining queries.\n   * Should be in the form: provider/model-name.\n   */\n  queryModel?: string;\n}\n\nexport interface IndexConfiguration extends BaseConfiguration {\n  /**\n   * Path to a JSON file containing default documents to index.\n   */\n  docsFile?: string;\n\n  /**\n   * Whether to use sample documents for indexing.\n   */\n  useSampleDocs?: boolean;\n}\n"
  },
  {
    "path": "package.json",
    "content": "{\n    \"name\": \"ai-pdf-chatbot-langchain\",\n    \"description\": \"AI PDF chatbot template based on the book Learning LangChain (O'Reilly)\",\n    \"private\": true,\n    \"version\": \"0.0.1\",\n    \"author\": \"Mayo Oshin\",\n    \"license\": \"MIT\",\n    \"workspaces\": [\n      \"backend\",\n      \"frontend\"\n    ],\n    \"scripts\": {\n      \"build\": \"yarn run turbo:command build\",\n      \"turbo:command\": \"yarn turbo\",\n      \"lint\": \"yarn run turbo:command lint\",\n      \"lint:fix\": \"yarn run turbo:command lint:fix\", \n      \"format\": \"yarn run turbo:command format\",\n      \"format:check\": \"yarn run turbo:command format:check\"\n    },\n    \"devDependencies\": {\n      \"turbo\": \"latest\"\n    }\n  }"
  },
  {
    "path": "scripts/checkLanggraphPaths.js",
    "content": "import fs from \"fs\";\nimport path from \"path\";\nimport { fileURLToPath } from \"url\";\n\n// Function to check if a file exists\nfunction fileExists(filePath) {\n  return fs.existsSync(filePath);\n}\n\n// Function to check if an object is exported from a file\nfunction isObjectExported(filePath, objectName) {\n  try {\n    const fileContent = fs.readFileSync(filePath, \"utf8\");\n    const exportRegex = new RegExp(\n      `export\\\\s+(?:const|let|var)\\\\s+${objectName}\\\\s*=|export\\\\s+\\\\{[^}]*\\\\b${objectName}\\\\b[^}]*\\\\}`,\n    );\n    return exportRegex.test(fileContent);\n  } catch (error) {\n    console.error(`Error reading file ${filePath}: ${error.message}`);\n    return false;\n  }\n}\n\n// Main function to check langgraph.json\nfunction checkLanggraphPaths() {\n  const __filename = fileURLToPath(import.meta.url);\n  const __dirname = path.dirname(__filename);\n  const langgraphPath = path.join(__dirname, \"..\", \"langgraph.json\");\n\n  if (!fileExists(langgraphPath)) {\n    console.error(\"langgraph.json not found in the root directory\");\n    process.exit(1);\n  }\n\n  try {\n    const langgraphContent = JSON.parse(fs.readFileSync(langgraphPath, \"utf8\"));\n    const graphs = langgraphContent.graphs;\n\n    if (!graphs || typeof graphs !== \"object\") {\n      console.error('Invalid or missing \"graphs\" object in langgraph.json');\n      process.exit(1);\n    }\n\n    let hasError = false;\n\n    for (const [key, value] of Object.entries(graphs)) {\n      const [filePath, objectName] = value.split(\":\");\n      const fullPath = path.join(__dirname, \"..\", filePath);\n\n      if (!fileExists(fullPath)) {\n        console.error(`File not found: ${fullPath}`);\n        hasError = true;\n        continue;\n      }\n\n      if (!isObjectExported(fullPath, objectName)) {\n        console.error(\n          `Object \"${objectName}\" is not exported from ${fullPath}`,\n        );\n        hasError = true;\n      }\n    }\n\n    if (hasError) {\n      process.exit(1);\n    } else {\n      console.log(\n        \"All paths in langgraph.json are valid and objects are exported correctly.\",\n      );\n    }\n  } catch (error) {\n    console.error(`Error parsing langgraph.json: ${error.message}`);\n    process.exit(1);\n  }\n}\n\ncheckLanggraphPaths();\n"
  },
  {
    "path": "turbo.json",
    "content": "{\n    \"$schema\": \"https://turbo.build/schema.json\",\n    \"globalDependencies\": [\"**/.env\"],\n    \"tasks\": {\n      \"build\": {\n        \"dependsOn\": [\"^build\"],\n        \"outputs\": [\"**/dist/**\"]\n      },\n      \"lint\": {\n        \"dependsOn\": [\"^lint\"]\n      },\n      \"format\": {\n        \"dependsOn\": [\"^format\"]\n      }\n    }\n  }"
  }
]