diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..137acbf --- /dev/null +++ b/.eslintignore @@ -0,0 +1,3 @@ +jest.config.js +.eslintrc.js +dist/* \ No newline at end of file diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..5271b63 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,28 @@ +module.exports = { + root: true, + parser: '@typescript-eslint/parser', + plugins: ['@typescript-eslint', 'node', 'eslint-plugin-tsdoc', 'prettier'], + parserOptions: { + tsconfigRootDir: __dirname, + project: ['./tsconfig.json'], + }, + extends: [ + 'eslint:recommended', + 'plugin:node/recommended', + 'plugin:@typescript-eslint/eslint-recommended', + 'plugin:@typescript-eslint/recommended', + 'plugin:@typescript-eslint/recommended-requiring-type-checking', + 'plugin:prettier/recommended', + ], + rules: { + 'prettier/prettier': 'warn', + 'node/no-missing-import': 'off', + 'node/no-unsupported-features/es-syntax': 'off', + 'node/no-empty-function': 'off', + 'node/shebang': 'off', + quotes: ['warn', 'single', { avoidEscape: true }], + 'node/no-unpublished-import': 'off', + '@typescript-eslint/ban-ts-comment': 'off', + 'tsdoc/syntax': 'warn', + }, +}; diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..7c3f9f4 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Set the repository to show as TypeScript rather than JS in GitHub +*.js linguist-detectable=false \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..5230e4a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,78 @@ +name: Bug report +description: Create a report to help us improve +labels: ["bug"] +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to fill out this bug report! + - type: checkboxes + attributes: + label: Confirm this is a new bug report + description: > + Select the checkboxes that apply to this bug report. If you're not sure about any of these, don't worry! We'll help you figure it out. + options: + - label: Possible new bug in VideoDB Python Client + required: false + - label: Potential new bug in VideoDB API + required: false + - label: I've checked the current issues, and there's no record of this bug + required: true + - type: textarea + attributes: + label: Current Behavior + description: > + A clear and concise description of what the bug is. + placeholder: > + I intended to perform action X, but unexpectedly encountered outcome Y. + validations: + required: true + - type: textarea + attributes: + label: Expected Behavior + description: > + A clear and concise description of what you expected to happen. + placeholder: > + I expected outcome Y to occur. + validations: + required: true + - type: textarea + attributes: + label: Steps to Reproduce + description: > + Steps to reproduce the behavior: + placeholder: | + 1. Fetch a '...' + 2. Update the '....' + 3. See error + validations: + required: true + - type: textarea + attributes: + label: Relevant Logs and/or Screenshots + description: > + If applicable, add logs and/or screenshots to help explain your problem. + validations: + required: false + - type: textarea + attributes: + label: Environment + description: | + Please complete the following information: + eg: + - OS: Ubuntu 20.04 + - nodejs: 20.11.0 + - Videodb: 0.0.1 + value: | + - OS: + - Python: + - Videodb: + validations: + required: false + - type: textarea + attributes: + label: Additional Context + description: > + Add any other context about the problem here. + validations: + required: false diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 0000000..3a217cc --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,48 @@ +name: Feature +description: Submit a proposal/request for a new feature +labels: ['enhancement'] +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to fill out this feature request! + - type: checkboxes + attributes: + label: Confirm this is a new feature request + description: > + Select the checkboxes that apply to this feature request. If you're not sure about any of these, don't worry! We'll help you figure it out. + options: + - label: Possible new feature in VideoDB Python Client + required: false + - label: Potential new feature in VideoDB API + required: false + - label: I've checked the current issues, and there's no record of this feature request + required: true + - type: textarea + attributes: + label: Describe the feature + description: > + A clear and concise description of what the feature is and why it's needed. + validations: + required: true + - type: textarea + attributes: + label: Describe the solution you'd like + description: | + A clear and concise description of what you want to happen. + validations: + required: true + - type: textarea + attributes: + label: Describe alternatives you've considered + description: > + A clear and concise description of any alternative solutions or features you've considered. + validations: + required: false + - type: textarea + attributes: + label: Additional Context + description: > + Add any other context about the feature request here. + validations: + required: false diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..f913b20 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,24 @@ +## Pull Request + +**Description:** +Describe the purpose of this pull request. + +**Changes:** +- [ ] Feature A +- [ ] Bugfix B + +**Related Issues:** +- Closes #123 +- Addresses #456 + +**Testing:** +Describe any testing steps that have been taken or are necessary. +Make sure to take in account any existing code change that require some feature to be re-tested. + + +**Checklist:** +- [ ] Code follows project coding standards +- [ ] Tests have been added or updated +- [ ] Code Review +- [ ] Manual test after merge +- [ ] All checks passed \ No newline at end of file diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml new file mode 100644 index 0000000..2198949 --- /dev/null +++ b/.github/workflows/release-package.yml @@ -0,0 +1,34 @@ +name: videoDB-node + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: 20 + - run: npm ci + - run: npm test + + publish-gpr: + needs: build + runs-on: ubuntu-latest + permissions: + packages: write + contents: read + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: 20 + registry-url: https://registry.npmjs.org/ + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5a19e8a --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +node_modules +dist +coverage \ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 0000000..610c2a5 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +npm test diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..35060a8 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +@Spext:registry=https://npm.pkg.github.com \ No newline at end of file diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..016efd8 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v20.10.0 \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..f9a3443 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,6 @@ +{ + "singleQuote": true, + "trailingComma": "es5", + "arrowParens": "avoid", + "printWidth": 80 +} \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..c61b663 --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..c3ca1e3 --- /dev/null +++ b/Readme.md @@ -0,0 +1,328 @@ +<!-- PROJECT SHIELDS --> +<!-- +*** Reference links are enclosed in brackets [ ] instead of parentheses ( ). +*** https://www.markdownguide.org/basic-syntax/#reference-style-links +--> +[![Npm Version][npm-shield]][npm-url] +[![Stargazers][stars-shield]][stars-url] +[![Issues][issues-shield]][issues-url] +[![Website][website-shield]][website-url] + +<!-- PROJECT LOGO --> +<br /> +<p align="center"> + <a href="https://videodb.io/"> + <img src="https://codaio.imgix.net/docs/_s5lUnUCIU/blobs/bl-RgjcFrrJjj/d3cbc44f8584ecd42f2a97d981a144dce6a66d83ddd5864f723b7808c7d1dfbc25034f2f25e1b2188e78f78f37bcb79d3c34ca937cbb08ca8b3da1526c29da9a897ab38eb39d084fd715028b7cc60eb595c68ecfa6fa0bb125ec2b09da65664a4f172c2f" alt="Logo" width="300" height=""> + </a> + + <h3 align="center">VideoDB Node.js SDK</h3> + + <p align="center"> + Video Database for your AI Applications + <br /> + <a href="https://docs.videodb.io"><strong>Explore the docs »</strong></a> + <br /> + <br /> + <a href="https://github.com/video-db/videodb-node/issues">Report Bug</a> + · + <a href="https://github.com/video-db/videodb-node/issues">Request Feature</a> + </p> +</p> + +<!-- ABOUT THE PROJECT --> + +# VideoDB Node.js SDK + +VideoDB Node.js SDK allows you to interact with the VideoDB serverless database. Manage videos as intelligent data, not files. It's scalable, cost efficient & optimized for AI applications and LLM integration. + +<!-- Installation --> + +## Installation + +To install the package, run the following command in your terminal: + +``` +npm install videodb +``` + +<!-- USAGE EXAMPLES --> + +## Quick Start + +#### Creating a Connection + +Get an API key from the [VideoDB console](https://console.videodb.io). Free for first 50 uploads (No credit card required). + +```ts +import { connect } from 'videodb'; + +// create a connection to the VideoDB API +const conn = connect('YOUR_API_KEY'); +``` + +#### Getting a Collection + +A default collection is created when you create your first connection. Use the `getCollection` method on the established database connection to get the `Collection` object. + +```ts +// get the default collection +const coll = await conn.getCollection(); +``` + +## Working with a single video + +#### ⬆️ Uploading a Video + +Now that you have established a connection to VideoDB, you can upload your videos using `coll.uploadURL()` or `coll.uploadFile()`. +You can directly upload from `youtube`, `any public url`, `S3 bucket` or a `local file path`. A default collection is created when you create your first connection. + +```ts +// upload to the default collection using the local file path or a url which returns an upload job +const uploadJob = await coll.uploadURL({ + url: 'https://www.youtube.com/watch?v=WDv4AWk0J3U', +}); + +let video; + +// Attach optional event listeners +uploadJob.on('success', uploadedVideo => { + console.log("Video Uploaded with ID ", uploadedVideo.meta.id) +}); +uploadJob.on('error', err => { + console.error(err); +}); + +// Call the start function to commence the upload +uploadJob.start(); +``` + +### 📺 View your Video + +Once uploaded, your video is immediately available for viewing in 720p resolution. ⚡️ + +Generate a streamable url for the video using `video.generateStream()` +Get a browser playable link using `video.play()` + +```ts +const video = await coll.getVideo("VIDEO_ID") +const playerUrl = await video.play(); +console.log(playerUrl); +``` + +### ⛓️ Stream Sections of videos + +You can easily clip specific sections of a video by passing a timeline of the start and end timestamps (in seconds) as a parameter. +For example, this will generate a streaming URL for a compilation of the fist `10 seconds`, and the part between the `120th` and the `140th` second. + +```ts +let streamUrl; +streamUrl = await video.generateStream({ + timeline: [ + [0, 10], + [120, 140], + ], +}); +console.log(playStream(streamUrl)); +``` + +### 🔍 Searching inside a video + +To search bits inside a video, you have to `index` the video first. This can be done by a simple command. +_P.S. Indexing may take some time for longer videos._ + +```ts +const indexJob = video.index(); +indexJob.on('success', async () => { + const results = await video.search('Morning Sunlight'); + const resultsUrl = await results.play(); + console.log(resultsUrl); +}); +indexJob.start(); +``` + +`Videodb` is launching more indexing options in upcoming versions. As of now you can try the `semantic` index - Index by spoken words. + +In the future you'll be able to index videos using: + +1. **Scene** - Visual concepts and events. +2. **Faces**. +3. **Specific domain Index** like Football, Baseball, Drone footage, Cricket etc. + +### Viewing Search Results : + +`video.search()` will return a `SearchResult` object, which contains the sections or as we call them, `shots` of videos which semantically match your search query. + +- `result.shots` Returns a list of `Shot`(s) that matched the search query. You can call `generateStream()` on each shot to get the corresponding streaming URL. +- `result.play()` Compiles and returns a playable url for the compiled shots (similar to `video.play()`). You can open this link in the browser, or embed it into your website using an iframe. + +--- + +## RAG: Search inside Multiple Videos + +`VideoDB` can store and search inside multiple videos with ease. By default, videos are uploaded to your default collection. + +### 🔄 Using Collection to Upload Multiple Videos + +```ts +# Upload Videos to a collection + +const uploadJobHandler = (video) => { + console.log(`Video uploaded :${video.meta.name}`); +}; + +const job1 = await coll.uploadURL({ + url: "https://www.youtube.com/watch?v=lsODSDmY4CY", +}); +if (job1) { + job1.on("success", uploadJobHandler); + job1.start(); +} + +const job2 = await coll.uploadURL({ + url: "https://www.youtube.com/watch?v=vZ4kOr38JhY", +}); +if (job2) { + job2.on("success", uploadJobHandler); + job2.start(); +} + +const job3 = await coll.uploadURL({ + url: "https://www.youtube.com/watch?v=uak_dXHh6s4", +}); +if (job3) { + job3.on("success", uploadJobHandler); + job3.start(); +} +``` + +### 📂 Search Inside Collection + +**Index All Videos** + +You can simply Index all the videos in a collection and use the search method to find relevant results. Here we are indexing the spoken content of a collection and performing semantic search. + +```ts +const indexJobHandler = res => { + console.log(`Video Indexed`, res); +}; + +const videos = await coll.getVideos(); +console.log('Total videos', videos.length); + +for (let video of videos) { + const indexJob = await video.index(); + indexJob.on('success', indexJobHandler); + indexJob.start(); +} +``` + +**Search Inside Collection** + +```ts +const searchRes = await coll.search('What is dopamine'); +const resultsUrl = await searchRes.play(); + +console.log(resultsUrl); +``` + +The result here has all the matching bits in a single stream from your collection. You can use these results in your application right away. + +### 🌟 More on `Video` object + +There are multiple useful functions available on a `Video` Object: + +#### Get the video's transcript + +```ts +const transcriptJob = video.getTranscript(); +transcriptJob.on('success', transcript => { + console.log(transcript); +}); +transcriptJob.start(); +``` + +#### Get the video's thumbnail + +```ts +// Get thumbnail of the video +const thumbnail = await video.generateThumbnail(); +console.log(thumbnail); +``` + +#### Overlay Subtitle on video + +```ts +const subtitle = await video.addSubtitle(); +const playerUrl = await playStream(subtitle); +console.log(playerUrl); +``` + +#### Delete the video + +```ts +// Delete the video from the collection +await video.delete(); +``` + +### 🌟 More on `Collection` object + +#### Get all videos + +```ts +const allVideos = coll.getVideo(); +``` + +#### Get a video given videoId + +```ts +const myVideo = coll.getVideo(id); +``` + +#### Delete a video + +```ts +await coll.deleteVideo(); +``` + +--- + +<!-- ROADMAP --> + +## Roadmap + +- Adding More Indexes : `Face`, `Scene`, `Security`, `Events`, and `Sports` +- Give prompt support to generate thumbnails using GenAI. +- Give prompt support to access content. +- Give prompt support to edit videos. +- See the [open issues](https://github.com/video-db/videodb-node/issues) for a list of proposed features (and known issues). + +--- + +<!-- CONTRIBUTING --> + +## Contributing + +Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**. + +1. Fork the Project +2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`) +3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`) +4. Push to the Branch (`git push origin feature/AmazingFeature`) +5. Open a Pull Request + +--- + +<!-- LICENSE --> + +## License +<!-- MARKDOWN LINKS & IMAGES --> +<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --> + +[npm-shield]: https://img.shields.io/npm/v/videodb?style=for-the-badge +[npm-url]: https://www.npmjs.com/package/videodb +[stars-shield]: https://img.shields.io/github/stars/video-db/videodb-node.svg?style=for-the-badge +[stars-url]: https://github.com/video-db/videodb-node/stargazers +[issues-shield]: https://img.shields.io/github/issues/video-db/videodb-node.svg?style=for-the-badge +[issues-url]: https://github.com/video-db/videodb-node/issues +[website-shield]: https://img.shields.io/website?url=https%3A%2F%2Fvideodb.io%2F&style=for-the-badge&label=videodb.io +[website-url]: https://videodb.io/ \ No newline at end of file diff --git a/docs/.nojekyll b/docs/.nojekyll new file mode 100644 index 0000000..e2ac661 --- /dev/null +++ b/docs/.nojekyll @@ -0,0 +1 @@ +TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false. \ No newline at end of file diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000..6110d62 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,330 @@ +videodb / [Exports](modules.md) + +<!-- PROJECT SHIELDS --> +<!-- +*** Reference links are enclosed in brackets [ ] instead of parentheses ( ). +*** https://www.markdownguide.org/basic-syntax/#reference-style-links +--> +[![Npm Version][npm-shield]][npm-url] +[![Stargazers][stars-shield]][stars-url] +[![Issues][issues-shield]][issues-url] +[![Website][website-shield]][website-url] + +<!-- PROJECT LOGO --> +<br /> +<p align="center"> + <a href="https://videodb.io/"> + <img src="https://codaio.imgix.net/docs/_s5lUnUCIU/blobs/bl-RgjcFrrJjj/d3cbc44f8584ecd42f2a97d981a144dce6a66d83ddd5864f723b7808c7d1dfbc25034f2f25e1b2188e78f78f37bcb79d3c34ca937cbb08ca8b3da1526c29da9a897ab38eb39d084fd715028b7cc60eb595c68ecfa6fa0bb125ec2b09da65664a4f172c2f" alt="Logo" width="300" height=""> + </a> + + <h3 align="center">VideoDB Node.js SDK</h3> + + <p align="center"> + Video Database for your AI Applications + <br /> + <a href="https://docs.videodb.io"><strong>Explore the docs »</strong></a> + <br /> + <br /> + <a href="https://github.com/video-db/videodb-node/issues">Report Bug</a> + · + <a href="https://github.com/video-db/videodb-node/issues">Request Feature</a> + </p> +</p> + +<!-- ABOUT THE PROJECT --> + +# VideoDB Node.js SDK + +VideoDB Node.js SDK allows you to interact with the VideoDB serverless database. Manage videos as intelligent data, not files. It's scalable, cost efficient & optimized for AI applications and LLM integration. + +<!-- Installation --> + +## Installation + +To install the package, run the following command in your terminal: + +``` +npm install videodb +``` + +<!-- USAGE EXAMPLES --> + +## Quick Start + +#### Creating a Connection + +Get an API key from the [VideoDB console](https://console.videodb.io). Free for first 50 uploads (No credit card required). + +```ts +import { connect } from 'videodb'; + +// create a connection to the VideoDB API +const conn = connect('YOUR_API_KEY'); +``` + +#### Getting a Collection + +A default collection is created when you create your first connection. Use the `getCollection` method on the established database connection to get the `Collection` object. + +```ts +// get the default collection +const coll = await conn.getCollection(); +``` + +## Working with a single video + +#### ⬆️ Uploading a Video + +Now that you have established a connection to VideoDB, you can upload your videos using `coll.uploadURL()` or `coll.uploadFile()`. +You can directly upload from `youtube`, `any public url`, `S3 bucket` or a `local file path`. A default collection is created when you create your first connection. + +```ts +// upload to the default collection using the local file path or a url which returns an upload job +const uploadJob = await coll.uploadURL({ + url: 'https://www.youtube.com/watch?v=WDv4AWk0J3U', +}); + +let video; + +// Attach optional event listeners +uploadJob.on('success', uploadedVideo => { + console.log("Video Uploaded with ID ", uploadedVideo.meta.id) +}); +uploadJob.on('error', err => { + console.error(err); +}); + +// Call the start function to commence the upload +uploadJob.start(); +``` + +### 📺 View your Video + +Once uploaded, your video is immediately available for viewing in 720p resolution. ⚡️ + +Generate a streamable url for the video using `video.generateStream()` +Get a browser playable link using `video.play()` + +```ts +const video = await coll.getVideo("VIDEO_ID") +const playerUrl = await video.play(); +console.log(playerUrl); +``` + +### ⛓️ Stream Sections of videos + +You can easily clip specific sections of a video by passing a timeline of the start and end timestamps (in seconds) as a parameter. +For example, this will generate a streaming URL for a compilation of the fist `10 seconds`, and the part between the `120th` and the `140th` second. + +```ts +let streamUrl; +streamUrl = await video.generateStream({ + timeline: [ + [0, 10], + [120, 140], + ], +}); +console.log(playStream(streamUrl)); +``` + +### 🔍 Searching inside a video + +To search bits inside a video, you have to `index` the video first. This can be done by a simple command. +_P.S. Indexing may take some time for longer videos._ + +```ts +const indexJob = video.index(); +indexJob.on('success', async () => { + const results = await video.search('Morning Sunlight'); + const resultsUrl = await results.play(); + console.log(resultsUrl); +}); +indexJob.start(); +``` + +`Videodb` is launching more indexing options in upcoming versions. As of now you can try the `semantic` index - Index by spoken words. + +In the future you'll be able to index videos using: + +1. **Scene** - Visual concepts and events. +2. **Faces**. +3. **Specific domain Index** like Football, Baseball, Drone footage, Cricket etc. + +### Viewing Search Results : + +`video.search()` will return a `SearchResult` object, which contains the sections or as we call them, `shots` of videos which semantically match your search query. + +- `result.shots` Returns a list of `Shot`(s) that matched the search query. You can call `generateStream()` on each shot to get the corresponding streaming URL. +- `result.play()` Compiles and returns a playable url for the compiled shots (similar to `video.play()`). You can open this link in the browser, or embed it into your website using an iframe. + +--- + +## RAG: Search inside Multiple Videos + +`VideoDB` can store and search inside multiple videos with ease. By default, videos are uploaded to your default collection. + +### 🔄 Using Collection to Upload Multiple Videos + +```ts +# Upload Videos to a collection + +const uploadJobHandler = (video) => { + console.log(`Video uploaded :${video.meta.name}`); +}; + +const job1 = await coll.uploadURL({ + url: "https://www.youtube.com/watch?v=lsODSDmY4CY", +}); +if (job1) { + job1.on("success", uploadJobHandler); + job1.start(); +} + +const job2 = await coll.uploadURL({ + url: "https://www.youtube.com/watch?v=vZ4kOr38JhY", +}); +if (job2) { + job2.on("success", uploadJobHandler); + job2.start(); +} + +const job3 = await coll.uploadURL({ + url: "https://www.youtube.com/watch?v=uak_dXHh6s4", +}); +if (job3) { + job3.on("success", uploadJobHandler); + job3.start(); +} +``` + +### 📂 Search Inside Collection + +**Index All Videos** + +You can simply Index all the videos in a collection and use the search method to find relevant results. Here we are indexing the spoken content of a collection and performing semantic search. + +```ts +const indexJobHandler = res => { + console.log(`Video Indexed`, res); +}; + +const videos = await coll.getVideos(); +console.log('Total videos', videos.length); + +for (let video of videos) { + const indexJob = await video.index(); + indexJob.on('success', indexJobHandler); + indexJob.start(); +} +``` + +**Search Inside Collection** + +```ts +const searchRes = await coll.search('What is dopamine'); +const resultsUrl = await searchRes.play(); + +console.log(resultsUrl); +``` + +The result here has all the matching bits in a single stream from your collection. You can use these results in your application right away. + +### 🌟 More on `Video` object + +There are multiple useful functions available on a `Video` Object: + +#### Get the video's transcript + +```ts +const transcriptJob = video.getTranscript(); +transcriptJob.on('success', transcript => { + console.log(transcript); +}); +transcriptJob.start(); +``` + +#### Get the video's thumbnail + +```ts +// Get thumbnail of the video +const thumbnail = await video.generateThumbnail(); +console.log(thumbnail); +``` + +#### Overlay Subtitle on video + +```ts +const subtitle = await video.addSubtitle(); +const playerUrl = await playStream(subtitle); +console.log(playerUrl); +``` + +#### Delete the video + +```ts +// Delete the video from the collection +await video.delete(); +``` + +### 🌟 More on `Collection` object + +#### Get all videos + +```ts +const allVideos = coll.getVideo(); +``` + +#### Get a video given videoId + +```ts +const myVideo = coll.getVideo(id); +``` + +#### Delete a video + +```ts +await coll.deleteVideo(); +``` + +--- + +<!-- ROADMAP --> + +## Roadmap + +- Adding More Indexes : `Face`, `Scene`, `Security`, `Events`, and `Sports` +- Give prompt support to generate thumbnails using GenAI. +- Give prompt support to access content. +- Give prompt support to edit videos. +- See the [open issues](https://github.com/video-db/videodb-node/issues) for a list of proposed features (and known issues). + +--- + +<!-- CONTRIBUTING --> + +## Contributing + +Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**. + +1. Fork the Project +2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`) +3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`) +4. Push to the Branch (`git push origin feature/AmazingFeature`) +5. Open a Pull Request + +--- + +<!-- LICENSE --> + +## License +<!-- MARKDOWN LINKS & IMAGES --> +<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --> + +[npm-shield]: https://img.shields.io/npm/v/videodb?style=for-the-badge +[npm-url]: https://www.npmjs.com/package/videodb +[stars-shield]: https://img.shields.io/github/stars/video-db/videodb-node.svg?style=for-the-badge +[stars-url]: https://github.com/video-db/videodb-node/stargazers +[issues-shield]: https://img.shields.io/github/issues/video-db/videodb-node.svg?style=for-the-badge +[issues-url]: https://github.com/video-db/videodb-node/issues +[website-shield]: https://img.shields.io/website?url=https%3A%2F%2Fvideodb.io%2F&style=for-the-badge&label=videodb.io +[website-url]: https://videodb.io/ diff --git a/docs/classes/core_collection.Collection.md b/docs/classes/core_collection.Collection.md new file mode 100644 index 0000000..21b7ace --- /dev/null +++ b/docs/classes/core_collection.Collection.md @@ -0,0 +1,242 @@ +[videodb](../README.md) / [Exports](../modules.md) / [core/collection](../modules/core_collection.md) / Collection + +# Class: Collection + +[core/collection](../modules/core_collection.md).Collection + +The base VideoDB class + +**`Remarks`** + +The base class through which all videodb actions are possible + +## Implements + +- [`ICollection`](../interfaces/interfaces_core.ICollection.md) + +## Table of contents + +### Constructors + +- [constructor](core_collection.Collection.md#constructor) + +### Properties + +- [meta](core_collection.Collection.md#meta) + +### Methods + +- [deleteVideo](core_collection.Collection.md#deletevideo) +- [getVideo](core_collection.Collection.md#getvideo) +- [getVideos](core_collection.Collection.md#getvideos) +- [search](core_collection.Collection.md#search) +- [uploadFile](core_collection.Collection.md#uploadfile) +- [uploadURL](core_collection.Collection.md#uploadurl) + +## Constructors + +### constructor + +• **new Collection**(`http`, `data`): [`Collection`](core_collection.Collection.md) + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `http` | [`HttpClient`](utils_httpClient.HttpClient.md) | +| `data` | [`CollectionBase`](../interfaces/interfaces_core.CollectionBase.md) | + +#### Returns + +[`Collection`](core_collection.Collection.md) + +#### Defined in + +src/core/collection.ts:23 + +## Properties + +### meta + +• **meta**: [`CollectionBase`](../interfaces/interfaces_core.CollectionBase.md) + +#### Implementation of + +[ICollection](../interfaces/interfaces_core.ICollection.md).[meta](../interfaces/interfaces_core.ICollection.md#meta) + +#### Defined in + +src/core/collection.ts:20 + +## Methods + +### deleteVideo + +▸ **deleteVideo**(`videoId`): `Promise`\<[`ResponseOf`](../modules/types_response.md#responseof)\<`Record`\<`string`, `never`\>\>\> + +#### Parameters + +| Name | Type | Description | +| :------ | :------ | :------ | +| `videoId` | `string` | Id of the video to be deleted | + +#### Returns + +`Promise`\<[`ResponseOf`](../modules/types_response.md#responseof)\<`Record`\<`string`, `never`\>\>\> + +A promise that resolves when delete is successful + +**`Throws`** + +an error if the request fails + +#### Implementation of + +[ICollection](../interfaces/interfaces_core.ICollection.md).[deleteVideo](../interfaces/interfaces_core.ICollection.md#deletevideo) + +#### Defined in + +src/core/collection.ts:60 + +___ + +### getVideo + +▸ **getVideo**(`videoId`): `Promise`\<[`Video`](core_video.Video.md)\> + +Get all the information for a specific video + +#### Parameters + +| Name | Type | Description | +| :------ | :------ | :------ | +| `videoId` | `string` | Unique ID of the video. | + +#### Returns + +`Promise`\<[`Video`](core_video.Video.md)\> + +An object of the Video class + +**`Throws`** + +an error if the request fails + +#### Implementation of + +[ICollection](../interfaces/interfaces_core.ICollection.md).[getVideo](../interfaces/interfaces_core.ICollection.md#getvideo) + +#### Defined in + +src/core/collection.ts:48 + +___ + +### getVideos + +▸ **getVideos**(): `Promise`\<[`Video`](core_video.Video.md)[]\> + +Get all videos from the collection + +#### Returns + +`Promise`\<[`Video`](core_video.Video.md)[]\> + +A list of objects of the Video class + +**`Throws`** + +an error if the request fails + +#### Implementation of + +[ICollection](../interfaces/interfaces_core.ICollection.md).[getVideos](../interfaces/interfaces_core.ICollection.md#getvideos) + +#### Defined in + +src/core/collection.ts:33 + +___ + +### search + +▸ **search**(`query`, `type?`, `resultThreshold?`, `scoreThreshold?`): `Promise`\<[`SearchResult`](core_search_searchResult.SearchResult.md)\> + +#### Parameters + +| Name | Type | Description | +| :------ | :------ | :------ | +| `query` | `string` | Search query | +| `type?` | ``"semantic"`` | [optional] Type of search to be performed | +| `resultThreshold?` | `number` | [optional] Result Threshold | +| `scoreThreshold?` | `number` | [optional] Score Threshold | + +#### Returns + +`Promise`\<[`SearchResult`](core_search_searchResult.SearchResult.md)\> + +#### Implementation of + +[ICollection](../interfaces/interfaces_core.ICollection.md).[search](../interfaces/interfaces_core.ICollection.md#search) + +#### Defined in + +src/core/collection.ts:98 + +___ + +### uploadFile + +▸ **uploadFile**(`data`): `Promise`\<`undefined` \| [`UploadJob`](utils_job.UploadJob.md)\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `data` | [`FileUploadConfig`](../interfaces/types_collection.FileUploadConfig.md) | + +#### Returns + +`Promise`\<`undefined` \| [`UploadJob`](utils_job.UploadJob.md)\> + +**`See`** + +Providing a callbackUrl will return undefined and not providing one +will return a Job object (TODO: Implement proper type for this condition) + +#### Implementation of + +[ICollection](../interfaces/interfaces_core.ICollection.md).[uploadFile](../interfaces/interfaces_core.ICollection.md#uploadfile) + +#### Defined in + +src/core/collection.ts:74 + +___ + +### uploadURL + +▸ **uploadURL**(`data`): `Promise`\<`undefined` \| [`UploadJob`](utils_job.UploadJob.md)\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `data` | [`URLUploadConfig`](../interfaces/types_collection.URLUploadConfig.md) | + +#### Returns + +`Promise`\<`undefined` \| [`UploadJob`](utils_job.UploadJob.md)\> + +**`See`** + +Providing a callbackUrl will return undefined and not providing one +will return a Job object (TODO: Implement proper type for this condition) + +#### Implementation of + +[ICollection](../interfaces/interfaces_core.ICollection.md).[uploadURL](../interfaces/interfaces_core.ICollection.md#uploadurl) + +#### Defined in + +src/core/collection.ts:88 diff --git a/docs/classes/core_connection.Connection.md b/docs/classes/core_connection.Connection.md new file mode 100644 index 0000000..17713ba --- /dev/null +++ b/docs/classes/core_connection.Connection.md @@ -0,0 +1,119 @@ +[videodb](../README.md) / [Exports](../modules.md) / [core/connection](../modules/core_connection.md) / Connection + +# Class: Connection + +[core/connection](../modules/core_connection.md).Connection + +Initalizon precedes connection +establishment. Is used to get the +primary collection. + +## Table of contents + +### Constructors + +- [constructor](core_connection.Connection.md#constructor) + +### Methods + +- [getCollection](core_connection.Connection.md#getcollection) +- [uploadFile](core_connection.Connection.md#uploadfile) +- [uploadURL](core_connection.Connection.md#uploadurl) + +## Constructors + +### constructor + +• **new Connection**(`baseURL`, `ApiKey`): [`Connection`](core_connection.Connection.md) + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `baseURL` | `string` | +| `ApiKey` | `string` | + +#### Returns + +[`Connection`](core_connection.Connection.md) + +#### Defined in + +src/core/connection.ts:22 + +## Methods + +### getCollection + +▸ **getCollection**(`id?`): `Promise`\<[`Collection`](core_collection.Collection.md)\> + +Get an instance of the Collection class + +#### Parameters + +| Name | Type | Default value | Description | +| :------ | :------ | :------ | :------ | +| `id` | `string` | `'default'` | [Optional] ID of the collection | + +#### Returns + +`Promise`\<[`Collection`](core_collection.Collection.md)\> + +If ID is provided, returns the corresponding collection, +else returns the default collection. + +#### Defined in + +src/core/connection.ts:33 + +___ + +### uploadFile + +▸ **uploadFile**(`collectionId?`, `data`): `Promise`\<`undefined` \| [`UploadJob`](utils_job.UploadJob.md)\> + +#### Parameters + +| Name | Type | Default value | +| :------ | :------ | :------ | +| `collectionId` | `string` | `'default'` | +| `data` | [`FileUploadConfig`](../interfaces/types_collection.FileUploadConfig.md) | `undefined` | + +#### Returns + +`Promise`\<`undefined` \| [`UploadJob`](utils_job.UploadJob.md)\> + +**`See`** + +Providing a callbackUrl will return undefined and not providing one +will return a Job object (TODO: Implement proper type for this condition) + +#### Defined in + +src/core/connection.ts:50 + +___ + +### uploadURL + +▸ **uploadURL**(`collectionId?`, `data`): `Promise`\<`undefined` \| [`UploadJob`](utils_job.UploadJob.md)\> + +#### Parameters + +| Name | Type | Default value | +| :------ | :------ | :------ | +| `collectionId` | `string` | `'default'` | +| `data` | [`URLUploadConfig`](../interfaces/types_collection.URLUploadConfig.md) | `undefined` | + +#### Returns + +`Promise`\<`undefined` \| [`UploadJob`](utils_job.UploadJob.md)\> + +**`See`** + +Providing a callbackUrl will return undefined and not providing one +will return a Job object (TODO: Implement proper type for this condition) + +#### Defined in + +src/core/connection.ts:67 diff --git a/docs/classes/core_search.SearchFactory.md b/docs/classes/core_search.SearchFactory.md new file mode 100644 index 0000000..09f9fea --- /dev/null +++ b/docs/classes/core_search.SearchFactory.md @@ -0,0 +1,55 @@ +[videodb](../README.md) / [Exports](../modules.md) / [core/search](../modules/core_search.md) / SearchFactory + +# Class: SearchFactory + +[core/search](../modules/core_search.md).SearchFactory + +## Table of contents + +### Constructors + +- [constructor](core_search.SearchFactory.md#constructor) + +### Methods + +- [getSearch](core_search.SearchFactory.md#getsearch) + +## Constructors + +### constructor + +• **new SearchFactory**(`http`): [`SearchFactory`](core_search.SearchFactory.md) + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `http` | [`HttpClient`](utils_httpClient.HttpClient.md) | + +#### Returns + +[`SearchFactory`](core_search.SearchFactory.md) + +#### Defined in + +src/core/search/index.ts:64 + +## Methods + +### getSearch + +▸ **getSearch**(`type`): `SemanticSearch` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `type` | ``"semantic"`` | + +#### Returns + +`SemanticSearch` + +#### Defined in + +src/core/search/index.ts:67 diff --git a/docs/classes/core_search_searchResult.SearchResult.md b/docs/classes/core_search_searchResult.SearchResult.md new file mode 100644 index 0000000..02874af --- /dev/null +++ b/docs/classes/core_search_searchResult.SearchResult.md @@ -0,0 +1,112 @@ +[videodb](../README.md) / [Exports](../modules.md) / [core/search/searchResult](../modules/core_search_searchResult.md) / SearchResult + +# Class: SearchResult + +[core/search/searchResult](../modules/core_search_searchResult.md).SearchResult + +## Table of contents + +### Constructors + +- [constructor](core_search_searchResult.SearchResult.md#constructor) + +### Properties + +- [collectionId](core_search_searchResult.SearchResult.md#collectionid) +- [playerUrl](core_search_searchResult.SearchResult.md#playerurl) +- [shots](core_search_searchResult.SearchResult.md#shots) +- [streamUrl](core_search_searchResult.SearchResult.md#streamurl) + +### Methods + +- [compile](core_search_searchResult.SearchResult.md#compile) +- [play](core_search_searchResult.SearchResult.md#play) + +## Constructors + +### constructor + +• **new SearchResult**(`http`, `searchResponse`): [`SearchResult`](core_search_searchResult.SearchResult.md) + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `http` | [`HttpClient`](utils_httpClient.HttpClient.md) | +| `searchResponse` | [`SearchResponse`](../modules/types_response.md#searchresponse) | + +#### Returns + +[`SearchResult`](core_search_searchResult.SearchResult.md) + +#### Defined in + +src/core/search/searchResult.ts:15 + +## Properties + +### collectionId + +• **collectionId**: `string` = `'default'` + +#### Defined in + +src/core/search/searchResult.ts:13 + +___ + +### playerUrl + +• `Optional` **playerUrl**: `string` + +#### Defined in + +src/core/search/searchResult.ts:12 + +___ + +### shots + +• **shots**: [`Shot`](core_shot.Shot.md)[] + +#### Defined in + +src/core/search/searchResult.ts:10 + +___ + +### streamUrl + +• `Optional` **streamUrl**: `string` + +#### Defined in + +src/core/search/searchResult.ts:11 + +## Methods + +### compile + +▸ **compile**(): `Promise`\<`string`\> + +#### Returns + +`Promise`\<`string`\> + +#### Defined in + +src/core/search/searchResult.ts:41 + +___ + +### play + +▸ **play**(): `Promise`\<`string`\> + +#### Returns + +`Promise`\<`string`\> + +#### Defined in + +src/core/search/searchResult.ts:63 diff --git a/docs/classes/core_shot.Shot.md b/docs/classes/core_shot.Shot.md new file mode 100644 index 0000000..0252618 --- /dev/null +++ b/docs/classes/core_shot.Shot.md @@ -0,0 +1,82 @@ +[videodb](../README.md) / [Exports](../modules.md) / [core/shot](../modules/core_shot.md) / Shot + +# Class: Shot + +[core/shot](../modules/core_shot.md).Shot + +A shot is a clip of a specific video + +## Implements + +- [`IShot`](../interfaces/interfaces_core.IShot.md) + +## Table of contents + +### Constructors + +- [constructor](core_shot.Shot.md#constructor) + +### Properties + +- [meta](core_shot.Shot.md#meta) + +### Methods + +- [generateStream](core_shot.Shot.md#generatestream) + +## Constructors + +### constructor + +• **new Shot**(`http`, `meta`): [`Shot`](core_shot.Shot.md) + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `http` | [`HttpClient`](utils_httpClient.HttpClient.md) | +| `meta` | [`ShotBase`](../interfaces/interfaces_core.ShotBase.md) | + +#### Returns + +[`Shot`](core_shot.Shot.md) + +#### Defined in + +src/core/shot.ts:15 + +## Properties + +### meta + +• **meta**: [`ShotBase`](../interfaces/interfaces_core.ShotBase.md) + +#### Implementation of + +[IShot](../interfaces/interfaces_core.IShot.md).[meta](../interfaces/interfaces_core.IShot.md#meta) + +#### Defined in + +src/core/shot.ts:13 + +## Methods + +### generateStream + +▸ **generateStream**(): `Promise`\<`string`\> + +Get the streaming URL for the shot + +#### Returns + +`Promise`\<`string`\> + +A streaming URL for the shot + +#### Implementation of + +[IShot](../interfaces/interfaces_core.IShot.md).[generateStream](../interfaces/interfaces_core.IShot.md#generatestream) + +#### Defined in + +src/core/shot.ts:24 diff --git a/docs/classes/core_video.Video.md b/docs/classes/core_video.Video.md new file mode 100644 index 0000000..8695eca --- /dev/null +++ b/docs/classes/core_video.Video.md @@ -0,0 +1,292 @@ +[videodb](../README.md) / [Exports](../modules.md) / [core/video](../modules/core_video.md) / Video + +# Class: Video + +[core/video](../modules/core_video.md).Video + +The base Video class + +**`Remarks`** + +Use this to initialize a video stored in videoDB + +## Implements + +- [`IVideo`](../interfaces/interfaces_core.IVideo.md) + +## Table of contents + +### Constructors + +- [constructor](core_video.Video.md#constructor) + +### Properties + +- [meta](core_video.Video.md#meta) +- [transcript](core_video.Video.md#transcript) + +### Methods + +- [addSubtitle](core_video.Video.md#addsubtitle) +- [delete](core_video.Video.md#delete) +- [generateStream](core_video.Video.md#generatestream) +- [generateThumbnail](core_video.Video.md#generatethumbnail) +- [getTranscript](core_video.Video.md#gettranscript) +- [index](core_video.Video.md#index) +- [play](core_video.Video.md#play) +- [search](core_video.Video.md#search) + +## Constructors + +### constructor + +• **new Video**(`http`, `data`): [`Video`](core_video.Video.md) + +Initializes a videoDB Instance + +#### Parameters + +| Name | Type | Description | +| :------ | :------ | :------ | +| `http` | [`HttpClient`](utils_httpClient.HttpClient.md) | HttpClient object | +| `data` | [`VideoBase`](../interfaces/interfaces_core.VideoBase.md) | Data needed to initialize a video instance | + +#### Returns + +[`Video`](core_video.Video.md) + +#### Defined in + +src/core/video.ts:33 + +## Properties + +### meta + +• **meta**: [`VideoBase`](../interfaces/interfaces_core.VideoBase.md) + +#### Implementation of + +[IVideo](../interfaces/interfaces_core.IVideo.md).[meta](../interfaces/interfaces_core.IVideo.md#meta) + +#### Defined in + +src/core/video.ts:24 + +___ + +### transcript + +• `Optional` **transcript**: [`Transcript`](../modules/types_video.md#transcript) + +#### Implementation of + +[IVideo](../interfaces/interfaces_core.IVideo.md).[transcript](../interfaces/interfaces_core.IVideo.md#transcript) + +#### Defined in + +src/core/video.ts:25 + +## Methods + +### addSubtitle + +▸ **addSubtitle**(): `Promise`\<`string`\> + +Overlays subtitles on top of a video + +#### Returns + +`Promise`\<`string`\> + +an awaited stream url for subtitled overlayed video + +#### Implementation of + +[IVideo](../interfaces/interfaces_core.IVideo.md).[addSubtitle](../interfaces/interfaces_core.IVideo.md#addsubtitle) + +#### Defined in + +src/core/video.ts:145 + +___ + +### delete + +▸ **delete**(): `Promise`\<[`ResponseOf`](../modules/types_response.md#responseof)\<`Record`\<`string`, `never`\>\>\> + +Returns an empty promise that resolves when the video is deleted + +#### Returns + +`Promise`\<[`ResponseOf`](../modules/types_response.md#responseof)\<`Record`\<`string`, `never`\>\>\> + +A promise that resolves when delete is successful + +**`Throws`** + +an InvalidRequestError if the request fails + +#### Defined in + +src/core/video.ts:66 + +___ + +### generateStream + +▸ **generateStream**(`timeline?`): `Promise`\<`string`\> + +Generates a new streaming URL with the given timeline. + +#### Parameters + +| Name | Type | Description | +| :------ | :------ | :------ | +| `timeline?` | [`Timeline`](../modules/types_video.md#timeline) | Of the format [[start, end], [start, end]...] | + +#### Returns + +`Promise`\<`string`\> + +a streaming URL + +#### Implementation of + +[IVideo](../interfaces/interfaces_core.IVideo.md).[generateStream](../interfaces/interfaces_core.IVideo.md#generatestream) + +#### Defined in + +src/core/video.ts:78 + +___ + +### generateThumbnail + +▸ **generateThumbnail**(): `Promise`\<`string`\> + +Gets the thumbnail of the video or generates one if it doesn't exist. + +#### Returns + +`Promise`\<`string`\> + +An awaited URL to the video's thumbnail + +#### Implementation of + +[IVideo](../interfaces/interfaces_core.IVideo.md).[generateThumbnail](../interfaces/interfaces_core.IVideo.md#generatethumbnail) + +#### Defined in + +src/core/video.ts:100 + +___ + +### getTranscript + +▸ **getTranscript**(`forceCreate?`): [`Transcript`](../modules/types_video.md#transcript) \| [`TranscriptJob`](utils_job.TranscriptJob.md) + +Fetches the transcript of the video if it exists, generates one +if it doesn't. + +#### Parameters + +| Name | Type | Default value | Description | +| :------ | :------ | :------ | :------ | +| `forceCreate` | `boolean` | `false` | Forces transcript generation even if it exists | + +#### Returns + +[`Transcript`](../modules/types_video.md#transcript) \| [`TranscriptJob`](utils_job.TranscriptJob.md) + +A promise of - +- If the transcript exists, an object of the type Transcript +- If it doesn't, an instance of TranscriptJob which can be used + to start transcript generation. + +#### Implementation of + +[IVideo](../interfaces/interfaces_core.IVideo.md).[getTranscript](../interfaces/interfaces_core.IVideo.md#gettranscript) + +#### Defined in + +src/core/video.ts:120 + +___ + +### index + +▸ **index**(`indexType?`): [`IndexJob`](utils_job.IndexJob.md) + +Indexs the video with the given indexType + +#### Parameters + +| Name | Type | Description | +| :------ | :------ | :------ | +| `indexType?` | ``"semantic"`` | The type used to index the video | + +#### Returns + +[`IndexJob`](utils_job.IndexJob.md) + +an awaited boolean signifying whether the process +was successful or not + +#### Implementation of + +[IVideo](../interfaces/interfaces_core.IVideo.md).[index](../interfaces/interfaces_core.IVideo.md#index) + +#### Defined in + +src/core/video.ts:132 + +___ + +### play + +▸ **play**(): `string` + +Generates a new playable stream URL with the given timeline. + +#### Returns + +`string` + +a URL that can be opened in browser + +#### Implementation of + +[IVideo](../interfaces/interfaces_core.IVideo.md).[play](../interfaces/interfaces_core.IVideo.md#play) + +#### Defined in + +src/core/video.ts:159 + +___ + +### search + +▸ **search**(`query`, `type?`, `resultThreshold?`, `scoreThreshold?`): `Promise`\<[`SearchResult`](core_search_searchResult.SearchResult.md)\> + +#### Parameters + +| Name | Type | Description | +| :------ | :------ | :------ | +| `query` | `string` | Search query | +| `type?` | ``"semantic"`` | [optional] Type of search to be performed | +| `resultThreshold?` | `number` | [optional] Result Threshold | +| `scoreThreshold?` | `number` | [optional] Score Threshold | + +#### Returns + +`Promise`\<[`SearchResult`](core_search_searchResult.SearchResult.md)\> + +#### Implementation of + +[IVideo](../interfaces/interfaces_core.IVideo.md).[search](../interfaces/interfaces_core.IVideo.md#search) + +#### Defined in + +src/core/video.ts:44 diff --git a/docs/classes/utils_error.AuthenticationError.md b/docs/classes/utils_error.AuthenticationError.md new file mode 100644 index 0000000..f24edef --- /dev/null +++ b/docs/classes/utils_error.AuthenticationError.md @@ -0,0 +1,198 @@ +[videodb](../README.md) / [Exports](../modules.md) / [utils/error](../modules/utils_error.md) / AuthenticationError + +# Class: AuthenticationError\<T\> + +[utils/error](../modules/utils_error.md).AuthenticationError + +## Type parameters + +| Name | Type | +| :------ | :------ | +| `T` | `unknown` | + +## Hierarchy + +- [`VdbBaseError`](utils_error.VdbBaseError.md) + + ↳ **`AuthenticationError`** + +## Table of contents + +### Constructors + +- [constructor](utils_error.AuthenticationError.md#constructor) + +### Properties + +- [cause](utils_error.AuthenticationError.md#cause) +- [message](utils_error.AuthenticationError.md#message) +- [name](utils_error.AuthenticationError.md#name) +- [stack](utils_error.AuthenticationError.md#stack) +- [prepareStackTrace](utils_error.AuthenticationError.md#preparestacktrace) +- [stackTraceLimit](utils_error.AuthenticationError.md#stacktracelimit) + +### Methods + +- [captureStackTrace](utils_error.AuthenticationError.md#capturestacktrace) + +## Constructors + +### constructor + +• **new AuthenticationError**\<`T`\>(`cause?`): [`AuthenticationError`](utils_error.AuthenticationError.md)\<`T`\> + +#### Type parameters + +| Name | Type | +| :------ | :------ | +| `T` | `unknown` | + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `cause?` | `T` | + +#### Returns + +[`AuthenticationError`](utils_error.AuthenticationError.md)\<`T`\> + +#### Overrides + +[VdbBaseError](utils_error.VdbBaseError.md).[constructor](utils_error.VdbBaseError.md#constructor) + +#### Defined in + +src/utils/error.ts:12 + +## Properties + +### cause + +• `Optional` **cause**: `unknown` + +#### Inherited from + +[VdbBaseError](utils_error.VdbBaseError.md).[cause](utils_error.VdbBaseError.md#cause) + +#### Defined in + +node_modules/typescript/lib/lib.es2022.error.d.ts:24 + +___ + +### message + +• **message**: `string` + +#### Inherited from + +[VdbBaseError](utils_error.VdbBaseError.md).[message](utils_error.VdbBaseError.md#message) + +#### Defined in + +node_modules/typescript/lib/lib.es5.d.ts:1076 + +___ + +### name + +• **name**: `string` + +#### Inherited from + +[VdbBaseError](utils_error.VdbBaseError.md).[name](utils_error.VdbBaseError.md#name) + +#### Defined in + +node_modules/typescript/lib/lib.es5.d.ts:1075 + +___ + +### stack + +• `Optional` **stack**: `string` + +#### Inherited from + +[VdbBaseError](utils_error.VdbBaseError.md).[stack](utils_error.VdbBaseError.md#stack) + +#### Defined in + +node_modules/typescript/lib/lib.es5.d.ts:1077 + +___ + +### prepareStackTrace + +▪ `Static` `Optional` **prepareStackTrace**: (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any` + +#### Type declaration + +▸ (`err`, `stackTraces`): `any` + +Optional override for formatting stack traces + +##### Parameters + +| Name | Type | +| :------ | :------ | +| `err` | `Error` | +| `stackTraces` | `CallSite`[] | + +##### Returns + +`any` + +**`See`** + +https://v8.dev/docs/stack-trace-api#customizing-stack-traces + +#### Inherited from + +[VdbBaseError](utils_error.VdbBaseError.md).[prepareStackTrace](utils_error.VdbBaseError.md#preparestacktrace) + +#### Defined in + +node_modules/@types/node/globals.d.ts:28 + +___ + +### stackTraceLimit + +▪ `Static` **stackTraceLimit**: `number` + +#### Inherited from + +[VdbBaseError](utils_error.VdbBaseError.md).[stackTraceLimit](utils_error.VdbBaseError.md#stacktracelimit) + +#### Defined in + +node_modules/@types/node/globals.d.ts:30 + +## Methods + +### captureStackTrace + +▸ **captureStackTrace**(`targetObject`, `constructorOpt?`): `void` + +Create .stack property on a target object + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `targetObject` | `object` | +| `constructorOpt?` | `Function` | + +#### Returns + +`void` + +#### Inherited from + +[VdbBaseError](utils_error.VdbBaseError.md).[captureStackTrace](utils_error.VdbBaseError.md#capturestacktrace) + +#### Defined in + +node_modules/@types/node/globals.d.ts:21 diff --git a/docs/classes/utils_error.InvalidRequestError.md b/docs/classes/utils_error.InvalidRequestError.md new file mode 100644 index 0000000..a8d786c --- /dev/null +++ b/docs/classes/utils_error.InvalidRequestError.md @@ -0,0 +1,210 @@ +[videodb](../README.md) / [Exports](../modules.md) / [utils/error](../modules/utils_error.md) / InvalidRequestError + +# Class: InvalidRequestError\<C\> + +[utils/error](../modules/utils_error.md).InvalidRequestError + +## Type parameters + +| Name | Type | +| :------ | :------ | +| `C` | `unknown` | + +## Hierarchy + +- [`VdbBaseError`](utils_error.VdbBaseError.md) + + ↳ **`InvalidRequestError`** + +## Table of contents + +### Constructors + +- [constructor](utils_error.InvalidRequestError.md#constructor) + +### Properties + +- [cause](utils_error.InvalidRequestError.md#cause) +- [message](utils_error.InvalidRequestError.md#message) +- [name](utils_error.InvalidRequestError.md#name) +- [response](utils_error.InvalidRequestError.md#response) +- [stack](utils_error.InvalidRequestError.md#stack) +- [prepareStackTrace](utils_error.InvalidRequestError.md#preparestacktrace) +- [stackTraceLimit](utils_error.InvalidRequestError.md#stacktracelimit) + +### Methods + +- [captureStackTrace](utils_error.InvalidRequestError.md#capturestacktrace) + +## Constructors + +### constructor + +• **new InvalidRequestError**\<`C`\>(`response`, `cause?`): [`InvalidRequestError`](utils_error.InvalidRequestError.md)\<`C`\> + +#### Type parameters + +| Name | Type | +| :------ | :------ | +| `C` | `unknown` | + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `response` | `AxiosResponse`\<`any`, `any`\> | +| `cause?` | `C` | + +#### Returns + +[`InvalidRequestError`](utils_error.InvalidRequestError.md)\<`C`\> + +#### Overrides + +[VdbBaseError](utils_error.VdbBaseError.md).[constructor](utils_error.VdbBaseError.md#constructor) + +#### Defined in + +src/utils/error.ts:19 + +## Properties + +### cause + +• `Optional` **cause**: `unknown` + +#### Inherited from + +[VdbBaseError](utils_error.VdbBaseError.md).[cause](utils_error.VdbBaseError.md#cause) + +#### Defined in + +node_modules/typescript/lib/lib.es2022.error.d.ts:24 + +___ + +### message + +• **message**: `string` + +#### Inherited from + +[VdbBaseError](utils_error.VdbBaseError.md).[message](utils_error.VdbBaseError.md#message) + +#### Defined in + +node_modules/typescript/lib/lib.es5.d.ts:1076 + +___ + +### name + +• **name**: `string` + +#### Inherited from + +[VdbBaseError](utils_error.VdbBaseError.md).[name](utils_error.VdbBaseError.md#name) + +#### Defined in + +node_modules/typescript/lib/lib.es5.d.ts:1075 + +___ + +### response + +• **response**: `AxiosResponse`\<`any`, `any`\> + +#### Defined in + +src/utils/error.ts:18 + +___ + +### stack + +• `Optional` **stack**: `string` + +#### Inherited from + +[VdbBaseError](utils_error.VdbBaseError.md).[stack](utils_error.VdbBaseError.md#stack) + +#### Defined in + +node_modules/typescript/lib/lib.es5.d.ts:1077 + +___ + +### prepareStackTrace + +▪ `Static` `Optional` **prepareStackTrace**: (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any` + +#### Type declaration + +▸ (`err`, `stackTraces`): `any` + +Optional override for formatting stack traces + +##### Parameters + +| Name | Type | +| :------ | :------ | +| `err` | `Error` | +| `stackTraces` | `CallSite`[] | + +##### Returns + +`any` + +**`See`** + +https://v8.dev/docs/stack-trace-api#customizing-stack-traces + +#### Inherited from + +[VdbBaseError](utils_error.VdbBaseError.md).[prepareStackTrace](utils_error.VdbBaseError.md#preparestacktrace) + +#### Defined in + +node_modules/@types/node/globals.d.ts:28 + +___ + +### stackTraceLimit + +▪ `Static` **stackTraceLimit**: `number` + +#### Inherited from + +[VdbBaseError](utils_error.VdbBaseError.md).[stackTraceLimit](utils_error.VdbBaseError.md#stacktracelimit) + +#### Defined in + +node_modules/@types/node/globals.d.ts:30 + +## Methods + +### captureStackTrace + +▸ **captureStackTrace**(`targetObject`, `constructorOpt?`): `void` + +Create .stack property on a target object + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `targetObject` | `object` | +| `constructorOpt?` | `Function` | + +#### Returns + +`void` + +#### Inherited from + +[VdbBaseError](utils_error.VdbBaseError.md).[captureStackTrace](utils_error.VdbBaseError.md#capturestacktrace) + +#### Defined in + +node_modules/@types/node/globals.d.ts:21 diff --git a/docs/classes/utils_error.VdbBaseError.md b/docs/classes/utils_error.VdbBaseError.md new file mode 100644 index 0000000..7fea2c3 --- /dev/null +++ b/docs/classes/utils_error.VdbBaseError.md @@ -0,0 +1,213 @@ +[videodb](../README.md) / [Exports](../modules.md) / [utils/error](../modules/utils_error.md) / VdbBaseError + +# Class: VdbBaseError + +[utils/error](../modules/utils_error.md).VdbBaseError + +## Hierarchy + +- `Error` + + ↳ **`VdbBaseError`** + + ↳↳ [`VideodbError`](utils_error.VideodbError.md) + + ↳↳ [`AuthenticationError`](utils_error.AuthenticationError.md) + + ↳↳ [`InvalidRequestError`](utils_error.InvalidRequestError.md) + +## Table of contents + +### Constructors + +- [constructor](utils_error.VdbBaseError.md#constructor) + +### Properties + +- [cause](utils_error.VdbBaseError.md#cause) +- [message](utils_error.VdbBaseError.md#message) +- [name](utils_error.VdbBaseError.md#name) +- [stack](utils_error.VdbBaseError.md#stack) +- [prepareStackTrace](utils_error.VdbBaseError.md#preparestacktrace) +- [stackTraceLimit](utils_error.VdbBaseError.md#stacktracelimit) + +### Methods + +- [captureStackTrace](utils_error.VdbBaseError.md#capturestacktrace) + +## Constructors + +### constructor + +• **new VdbBaseError**(`message?`): [`VdbBaseError`](utils_error.VdbBaseError.md) + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `message?` | `string` | + +#### Returns + +[`VdbBaseError`](utils_error.VdbBaseError.md) + +#### Inherited from + +Error.constructor + +#### Defined in + +node_modules/typescript/lib/lib.es5.d.ts:1081 + +• **new VdbBaseError**(`message?`, `options?`): [`VdbBaseError`](utils_error.VdbBaseError.md) + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `message?` | `string` | +| `options?` | `ErrorOptions` | + +#### Returns + +[`VdbBaseError`](utils_error.VdbBaseError.md) + +#### Inherited from + +Error.constructor + +#### Defined in + +node_modules/typescript/lib/lib.es2022.error.d.ts:28 + +## Properties + +### cause + +• `Optional` **cause**: `unknown` + +#### Inherited from + +Error.cause + +#### Defined in + +node_modules/typescript/lib/lib.es2022.error.d.ts:24 + +___ + +### message + +• **message**: `string` + +#### Inherited from + +Error.message + +#### Defined in + +node_modules/typescript/lib/lib.es5.d.ts:1076 + +___ + +### name + +• **name**: `string` + +#### Inherited from + +Error.name + +#### Defined in + +node_modules/typescript/lib/lib.es5.d.ts:1075 + +___ + +### stack + +• `Optional` **stack**: `string` + +#### Inherited from + +Error.stack + +#### Defined in + +node_modules/typescript/lib/lib.es5.d.ts:1077 + +___ + +### prepareStackTrace + +▪ `Static` `Optional` **prepareStackTrace**: (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any` + +#### Type declaration + +▸ (`err`, `stackTraces`): `any` + +Optional override for formatting stack traces + +##### Parameters + +| Name | Type | +| :------ | :------ | +| `err` | `Error` | +| `stackTraces` | `CallSite`[] | + +##### Returns + +`any` + +**`See`** + +https://v8.dev/docs/stack-trace-api#customizing-stack-traces + +#### Inherited from + +Error.prepareStackTrace + +#### Defined in + +node_modules/@types/node/globals.d.ts:28 + +___ + +### stackTraceLimit + +▪ `Static` **stackTraceLimit**: `number` + +#### Inherited from + +Error.stackTraceLimit + +#### Defined in + +node_modules/@types/node/globals.d.ts:30 + +## Methods + +### captureStackTrace + +▸ **captureStackTrace**(`targetObject`, `constructorOpt?`): `void` + +Create .stack property on a target object + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `targetObject` | `object` | +| `constructorOpt?` | `Function` | + +#### Returns + +`void` + +#### Inherited from + +Error.captureStackTrace + +#### Defined in + +node_modules/@types/node/globals.d.ts:21 diff --git a/docs/classes/utils_error.VideodbError.md b/docs/classes/utils_error.VideodbError.md new file mode 100644 index 0000000..122db96 --- /dev/null +++ b/docs/classes/utils_error.VideodbError.md @@ -0,0 +1,199 @@ +[videodb](../README.md) / [Exports](../modules.md) / [utils/error](../modules/utils_error.md) / VideodbError + +# Class: VideodbError\<T\> + +[utils/error](../modules/utils_error.md).VideodbError + +## Type parameters + +| Name | Type | +| :------ | :------ | +| `T` | `undefined` | + +## Hierarchy + +- [`VdbBaseError`](utils_error.VdbBaseError.md) + + ↳ **`VideodbError`** + +## Table of contents + +### Constructors + +- [constructor](utils_error.VideodbError.md#constructor) + +### Properties + +- [cause](utils_error.VideodbError.md#cause) +- [message](utils_error.VideodbError.md#message) +- [name](utils_error.VideodbError.md#name) +- [stack](utils_error.VideodbError.md#stack) +- [prepareStackTrace](utils_error.VideodbError.md#preparestacktrace) +- [stackTraceLimit](utils_error.VideodbError.md#stacktracelimit) + +### Methods + +- [captureStackTrace](utils_error.VideodbError.md#capturestacktrace) + +## Constructors + +### constructor + +• **new VideodbError**\<`T`\>(`message?`, `cause?`): [`VideodbError`](utils_error.VideodbError.md)\<`T`\> + +#### Type parameters + +| Name | Type | +| :------ | :------ | +| `T` | `undefined` | + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `message?` | `string` | +| `cause?` | `T` | + +#### Returns + +[`VideodbError`](utils_error.VideodbError.md)\<`T`\> + +#### Overrides + +[VdbBaseError](utils_error.VdbBaseError.md).[constructor](utils_error.VdbBaseError.md#constructor) + +#### Defined in + +src/utils/error.ts:6 + +## Properties + +### cause + +• `Optional` **cause**: `unknown` + +#### Inherited from + +[VdbBaseError](utils_error.VdbBaseError.md).[cause](utils_error.VdbBaseError.md#cause) + +#### Defined in + +node_modules/typescript/lib/lib.es2022.error.d.ts:24 + +___ + +### message + +• **message**: `string` + +#### Inherited from + +[VdbBaseError](utils_error.VdbBaseError.md).[message](utils_error.VdbBaseError.md#message) + +#### Defined in + +node_modules/typescript/lib/lib.es5.d.ts:1076 + +___ + +### name + +• **name**: `string` + +#### Inherited from + +[VdbBaseError](utils_error.VdbBaseError.md).[name](utils_error.VdbBaseError.md#name) + +#### Defined in + +node_modules/typescript/lib/lib.es5.d.ts:1075 + +___ + +### stack + +• `Optional` **stack**: `string` + +#### Inherited from + +[VdbBaseError](utils_error.VdbBaseError.md).[stack](utils_error.VdbBaseError.md#stack) + +#### Defined in + +node_modules/typescript/lib/lib.es5.d.ts:1077 + +___ + +### prepareStackTrace + +▪ `Static` `Optional` **prepareStackTrace**: (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any` + +#### Type declaration + +▸ (`err`, `stackTraces`): `any` + +Optional override for formatting stack traces + +##### Parameters + +| Name | Type | +| :------ | :------ | +| `err` | `Error` | +| `stackTraces` | `CallSite`[] | + +##### Returns + +`any` + +**`See`** + +https://v8.dev/docs/stack-trace-api#customizing-stack-traces + +#### Inherited from + +[VdbBaseError](utils_error.VdbBaseError.md).[prepareStackTrace](utils_error.VdbBaseError.md#preparestacktrace) + +#### Defined in + +node_modules/@types/node/globals.d.ts:28 + +___ + +### stackTraceLimit + +▪ `Static` **stackTraceLimit**: `number` + +#### Inherited from + +[VdbBaseError](utils_error.VdbBaseError.md).[stackTraceLimit](utils_error.VdbBaseError.md#stacktracelimit) + +#### Defined in + +node_modules/@types/node/globals.d.ts:30 + +## Methods + +### captureStackTrace + +▸ **captureStackTrace**(`targetObject`, `constructorOpt?`): `void` + +Create .stack property on a target object + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `targetObject` | `object` | +| `constructorOpt?` | `Function` | + +#### Returns + +`void` + +#### Inherited from + +[VdbBaseError](utils_error.VdbBaseError.md).[captureStackTrace](utils_error.VdbBaseError.md#capturestacktrace) + +#### Defined in + +node_modules/@types/node/globals.d.ts:21 diff --git a/docs/classes/utils_httpClient.HttpClient.md b/docs/classes/utils_httpClient.HttpClient.md new file mode 100644 index 0000000..c680fc3 --- /dev/null +++ b/docs/classes/utils_httpClient.HttpClient.md @@ -0,0 +1,185 @@ +[videodb](../README.md) / [Exports](../modules.md) / [utils/httpClient](../modules/utils_httpClient.md) / HttpClient + +# Class: HttpClient + +[utils/httpClient](../modules/utils_httpClient.md).HttpClient + +Api initialization to make axios config +options available to all child classes +internally. + +## Table of contents + +### Constructors + +- [constructor](utils_httpClient.HttpClient.md#constructor) + +### Methods + +- [delete](utils_httpClient.HttpClient.md#delete) +- [get](utils_httpClient.HttpClient.md#get) +- [patch](utils_httpClient.HttpClient.md#patch) +- [post](utils_httpClient.HttpClient.md#post) +- [put](utils_httpClient.HttpClient.md#put) + +## Constructors + +### constructor + +• **new HttpClient**(`baseURL`, `apiKey`): [`HttpClient`](utils_httpClient.HttpClient.md) + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `baseURL` | `string` | +| `apiKey` | `string` | + +#### Returns + +[`HttpClient`](utils_httpClient.HttpClient.md) + +#### Defined in + +src/utils/httpClient.ts:27 + +## Methods + +### delete + +▸ **delete**\<`R`\>(`urlSeries`, `options?`): `Promise`\<[`ResponseOf`](../modules/types_response.md#responseof)\<`R`\>\> + +#### Type parameters + +| Name | +| :------ | +| `R` | + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `urlSeries` | `string`[] | +| `options?` | `AxiosRequestConfig`\<`undefined`\> | + +#### Returns + +`Promise`\<[`ResponseOf`](../modules/types_response.md#responseof)\<`R`\>\> + +#### Defined in + +src/utils/httpClient.ts:95 + +___ + +### get + +▸ **get**\<`R`\>(`urlSeries`, `options?`): `Promise`\<[`ResponseOf`](../modules/types_response.md#responseof)\<`R`\>\> + +#### Type parameters + +| Name | +| :------ | +| `R` | + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `urlSeries` | `string`[] | +| `options?` | `AxiosRequestConfig`\<`undefined`\> | + +#### Returns + +`Promise`\<[`ResponseOf`](../modules/types_response.md#responseof)\<`R`\>\> + +#### Defined in + +src/utils/httpClient.ts:84 + +___ + +### patch + +▸ **patch**\<`R`, `D`\>(`urlSeries`, `data?`, `options?`): `Promise`\<[`ResponseOf`](../modules/types_response.md#responseof)\<`R`\>\> + +#### Type parameters + +| Name | Type | +| :------ | :------ | +| `R` | `R` | +| `D` | `undefined` | + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `urlSeries` | `string`[] | +| `data?` | `D` | +| `options?` | `AxiosRequestConfig`\<`D`\> | + +#### Returns + +`Promise`\<[`ResponseOf`](../modules/types_response.md#responseof)\<`R`\>\> + +#### Defined in + +src/utils/httpClient.ts:140 + +___ + +### post + +▸ **post**\<`R`, `D`\>(`urlSeries`, `data?`, `options?`): `Promise`\<[`ResponseOf`](../modules/types_response.md#responseof)\<`R`\>\> + +#### Type parameters + +| Name | Type | +| :------ | :------ | +| `R` | `R` | +| `D` | `undefined` | + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `urlSeries` | `string`[] | +| `data?` | `D` | +| `options?` | `AxiosRequestConfig`\<`D`\> | + +#### Returns + +`Promise`\<[`ResponseOf`](../modules/types_response.md#responseof)\<`R`\>\> + +#### Defined in + +src/utils/httpClient.ts:106 + +___ + +### put + +▸ **put**\<`R`, `D`\>(`urlSeries`, `data?`, `options?`): `Promise`\<[`ResponseOf`](../modules/types_response.md#responseof)\<`R`\>\> + +#### Type parameters + +| Name | Type | +| :------ | :------ | +| `R` | `R` | +| `D` | `undefined` | + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `urlSeries` | `string`[] | +| `data?` | `D` | +| `options?` | `AxiosRequestConfig`\<`D`\> | + +#### Returns + +`Promise`\<[`ResponseOf`](../modules/types_response.md#responseof)\<`R`\>\> + +#### Defined in + +src/utils/httpClient.ts:123 diff --git a/docs/classes/utils_job.IndexJob.md b/docs/classes/utils_job.IndexJob.md new file mode 100644 index 0000000..39d623a --- /dev/null +++ b/docs/classes/utils_job.IndexJob.md @@ -0,0 +1,303 @@ +[videodb](../README.md) / [Exports](../modules.md) / [utils/job](../modules/utils_job.md) / IndexJob + +# Class: IndexJob + +[utils/job](../modules/utils_job.md).IndexJob + +Base Job class used to create different kinds of jobs + +**`Remarks`** + +Jobs are used for long running tasks where a simple +async call would take too long causing a timeout. + +**`See`** + +This class accepts 3 type params +- ApiResponse: The response recieved from the API on calling + +## Hierarchy + +- [`Job`](utils_job.Job.md)\<[`NoDataResponse`](../modules/types_response.md#nodataresponse), [`NoDataResponse`](../modules/types_response.md#nodataresponse)\> + + ↳ **`IndexJob`** + +## Table of contents + +### Constructors + +- [constructor](utils_job.IndexJob.md#constructor) + +### Properties + +- [convertResponseToCamelCase](utils_job.IndexJob.md#convertresponsetocamelcase) +- [indexConfig](utils_job.IndexJob.md#indexconfig) +- [jobTitle](utils_job.IndexJob.md#jobtitle) +- [vhttp](utils_job.IndexJob.md#vhttp) +- [videoId](utils_job.IndexJob.md#videoid) + +### Methods + +- [\_handleError](utils_job.IndexJob.md#_handleerror) +- [\_handleSuccess](utils_job.IndexJob.md#_handlesuccess) +- [\_initiateBackoff](utils_job.IndexJob.md#_initiatebackoff) +- [beforeSuccess](utils_job.IndexJob.md#beforesuccess) +- [on](utils_job.IndexJob.md#on) +- [start](utils_job.IndexJob.md#start) + +## Constructors + +### constructor + +• **new IndexJob**(`http`, `videoId`, `indexType`): [`IndexJob`](utils_job.IndexJob.md) + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `http` | [`HttpClient`](utils_httpClient.HttpClient.md) | +| `videoId` | `string` | +| `indexType` | ``"semantic"`` | + +#### Returns + +[`IndexJob`](utils_job.IndexJob.md) + +#### Overrides + +[Job](utils_job.Job.md).[constructor](utils_job.Job.md#constructor) + +#### Defined in + +src/utils/job.ts:236 + +## Properties + +### convertResponseToCamelCase + +• `Protected` **convertResponseToCamelCase**: `boolean` = `true` + +#### Inherited from + +[Job](utils_job.Job.md).[convertResponseToCamelCase](utils_job.Job.md#convertresponsetocamelcase) + +#### Defined in + +src/utils/job.ts:48 + +___ + +### indexConfig + +• **indexConfig**: [`IndexConfig`](../modules/types.md#indexconfig) + +#### Defined in + +src/utils/job.ts:234 + +___ + +### jobTitle + +• `Protected` **jobTitle**: `string` + +#### Inherited from + +[Job](utils_job.Job.md).[jobTitle](utils_job.Job.md#jobtitle) + +#### Defined in + +src/utils/job.ts:49 + +___ + +### vhttp + +• `Protected` **vhttp**: [`HttpClient`](utils_httpClient.HttpClient.md) + +#### Inherited from + +[Job](utils_job.Job.md).[vhttp](utils_job.Job.md#vhttp) + +#### Defined in + +src/utils/job.ts:47 + +___ + +### videoId + +• **videoId**: `string` + +#### Defined in + +src/utils/job.ts:233 + +## Methods + +### \_handleError + +▸ **_handleError**(`err`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `err` | `unknown` | + +#### Returns + +`void` + +#### Inherited from + +[Job](utils_job.Job.md).[_handleError](utils_job.Job.md#_handleerror) + +#### Defined in + +src/utils/job.ts:78 + +___ + +### \_handleSuccess + +▸ **_handleSuccess**(`data`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `data` | `ApiResponse` | + +#### Returns + +`void` + +#### Inherited from + +[Job](utils_job.Job.md).[_handleSuccess](utils_job.Job.md#_handlesuccess) + +#### Defined in + +src/utils/job.ts:94 + +___ + +### \_initiateBackoff + +▸ **_initiateBackoff**(`callbackUrl`): `Promise`\<`void`\> + +Initiates a backoff-like system where we check the status +of the job in an exponentially increasing interval. + +#### Parameters + +| Name | Type | Description | +| :------ | :------ | :------ | +| `callbackUrl` | `string` | URL sent by the server to check status | + +#### Returns + +`Promise`\<`void`\> + +NOTHING. Do not await this function. This will call the +success or error listener depending on the status. + +#### Inherited from + +[Job](utils_job.Job.md).[_initiateBackoff](utils_job.Job.md#_initiatebackoff) + +#### Defined in + +src/utils/job.ts:116 + +___ + +### beforeSuccess + +▸ **beforeSuccess**(`data`): \{ `message?`: `undefined` = data.message; `success`: ``true`` = data.success } \| \{ `message`: `undefined` \| `string` = data.message; `success`: `undefined` \| ``false`` = data.success } + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `data` | [`NoDataResponse`](../modules/types_response.md#nodataresponse) | + +#### Returns + +\{ `message?`: `undefined` = data.message; `success`: ``true`` = data.success } \| \{ `message`: `undefined` \| `string` = data.message; `success`: `undefined` \| ``false`` = data.success } + +#### Overrides + +Job.beforeSuccess + +#### Defined in + +src/utils/job.ts:264 + +___ + +### on + +▸ **on**(`option`, `method`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `option` | ``"success"`` | +| `method` | [`JobSuccessCallback`](../modules/types_utils.md#jobsuccesscallback)\<[`NoDataResponse`](../modules/types_response.md#nodataresponse)\> | + +#### Returns + +`void` + +#### Inherited from + +[Job](utils_job.Job.md).[on](utils_job.Job.md#on) + +#### Defined in + +src/utils/job.ts:61 + +▸ **on**(`option`, `method`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `option` | ``"error"`` | +| `method` | [`JobErrorCallback`](../modules/types_utils.md#joberrorcallback) | + +#### Returns + +`void` + +#### Inherited from + +[Job](utils_job.Job.md).[on](utils_job.Job.md#on) + +#### Defined in + +src/utils/job.ts:62 + +___ + +### start + +▸ **start**(): `Promise`\<`void`\> + +Initiates a Transcript Job. +On sucess, it calls the index endpoint + +#### Returns + +`Promise`\<`void`\> + +#### Overrides + +Job.start + +#### Defined in + +src/utils/job.ts:249 diff --git a/docs/classes/utils_job.Job.md b/docs/classes/utils_job.Job.md new file mode 100644 index 0000000..ea8a803 --- /dev/null +++ b/docs/classes/utils_job.Job.md @@ -0,0 +1,260 @@ +[videodb](../README.md) / [Exports](../modules.md) / [utils/job](../modules/utils_job.md) / Job + +# Class: Job\<ApiResponse, SdkBase, FinalReturn\> + +[utils/job](../modules/utils_job.md).Job + +Base Job class used to create different kinds of jobs + +**`Remarks`** + +Jobs are used for long running tasks where a simple +async call would take too long causing a timeout. + +**`See`** + +This class accepts 3 type params +- ApiResponse: The response recieved from the API on calling + +## Type parameters + +| Name | Type | +| :------ | :------ | +| `ApiResponse` | extends `object` | +| `SdkBase` | `SdkBase` | +| `FinalReturn` | `SdkBase` | + +## Hierarchy + +- **`Job`** + + ↳ [`TranscriptJob`](utils_job.TranscriptJob.md) + + ↳ [`UploadJob`](utils_job.UploadJob.md) + + ↳ [`IndexJob`](utils_job.IndexJob.md) + +## Table of contents + +### Constructors + +- [constructor](utils_job.Job.md#constructor) + +### Properties + +- [beforeSuccess](utils_job.Job.md#beforesuccess) +- [convertResponseToCamelCase](utils_job.Job.md#convertresponsetocamelcase) +- [jobTitle](utils_job.Job.md#jobtitle) +- [start](utils_job.Job.md#start) +- [vhttp](utils_job.Job.md#vhttp) + +### Methods + +- [\_handleError](utils_job.Job.md#_handleerror) +- [\_handleSuccess](utils_job.Job.md#_handlesuccess) +- [\_initiateBackoff](utils_job.Job.md#_initiatebackoff) +- [on](utils_job.Job.md#on) + +## Constructors + +### constructor + +• **new Job**\<`ApiResponse`, `SdkBase`, `FinalReturn`\>(`http`): [`Job`](utils_job.Job.md)\<`ApiResponse`, `SdkBase`, `FinalReturn`\> + +#### Type parameters + +| Name | Type | +| :------ | :------ | +| `ApiResponse` | extends `object` | +| `SdkBase` | `SdkBase` | +| `FinalReturn` | `SdkBase` | + +#### Parameters + +| Name | Type | Description | +| :------ | :------ | :------ | +| `http` | [`HttpClient`](utils_httpClient.HttpClient.md) | HttpClient object | + +#### Returns + +[`Job`](utils_job.Job.md)\<`ApiResponse`, `SdkBase`, `FinalReturn`\> + +#### Defined in + +src/utils/job.ts:54 + +## Properties + +### beforeSuccess + +• `Protected` `Abstract` **beforeSuccess**: (`data`: `SdkBase`) => `FinalReturn` + +#### Type declaration + +▸ (`data`): `FinalReturn` + +##### Parameters + +| Name | Type | +| :------ | :------ | +| `data` | `SdkBase` | + +##### Returns + +`FinalReturn` + +#### Defined in + +src/utils/job.ts:58 + +___ + +### convertResponseToCamelCase + +• `Protected` **convertResponseToCamelCase**: `boolean` = `true` + +#### Defined in + +src/utils/job.ts:48 + +___ + +### jobTitle + +• `Protected` **jobTitle**: `string` + +#### Defined in + +src/utils/job.ts:49 + +___ + +### start + +• `Abstract` **start**: () => `Promise`\<`void`\> + +#### Type declaration + +▸ (): `Promise`\<`void`\> + +##### Returns + +`Promise`\<`void`\> + +#### Defined in + +src/utils/job.ts:59 + +___ + +### vhttp + +• `Protected` **vhttp**: [`HttpClient`](utils_httpClient.HttpClient.md) + +#### Defined in + +src/utils/job.ts:47 + +## Methods + +### \_handleError + +▸ **_handleError**(`err`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `err` | `unknown` | + +#### Returns + +`void` + +#### Defined in + +src/utils/job.ts:78 + +___ + +### \_handleSuccess + +▸ **_handleSuccess**(`data`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `data` | `ApiResponse` | + +#### Returns + +`void` + +#### Defined in + +src/utils/job.ts:94 + +___ + +### \_initiateBackoff + +▸ **_initiateBackoff**(`callbackUrl`): `Promise`\<`void`\> + +Initiates a backoff-like system where we check the status +of the job in an exponentially increasing interval. + +#### Parameters + +| Name | Type | Description | +| :------ | :------ | :------ | +| `callbackUrl` | `string` | URL sent by the server to check status | + +#### Returns + +`Promise`\<`void`\> + +NOTHING. Do not await this function. This will call the +success or error listener depending on the status. + +#### Defined in + +src/utils/job.ts:116 + +___ + +### on + +▸ **on**(`option`, `method`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `option` | ``"success"`` | +| `method` | [`JobSuccessCallback`](../modules/types_utils.md#jobsuccesscallback)\<`FinalReturn`\> | + +#### Returns + +`void` + +#### Defined in + +src/utils/job.ts:61 + +▸ **on**(`option`, `method`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `option` | ``"error"`` | +| `method` | [`JobErrorCallback`](../modules/types_utils.md#joberrorcallback) | + +#### Returns + +`void` + +#### Defined in + +src/utils/job.ts:62 diff --git a/docs/classes/utils_job.TranscriptJob.md b/docs/classes/utils_job.TranscriptJob.md new file mode 100644 index 0000000..a4f44f6 --- /dev/null +++ b/docs/classes/utils_job.TranscriptJob.md @@ -0,0 +1,298 @@ +[videodb](../README.md) / [Exports](../modules.md) / [utils/job](../modules/utils_job.md) / TranscriptJob + +# Class: TranscriptJob + +[utils/job](../modules/utils_job.md).TranscriptJob + +TranscriptJob is used to initalize a new trancsript generation call. + +**`Remarks`** + +Uses the base Job class to implement a backoff to get the transcript + +## Hierarchy + +- [`Job`](utils_job.Job.md)\<[`TranscriptResponse`](../modules/types_response.md#transcriptresponse), [`Transcript`](../modules/types_video.md#transcript)\> + + ↳ **`TranscriptJob`** + +## Table of contents + +### Constructors + +- [constructor](utils_job.TranscriptJob.md#constructor) + +### Properties + +- [convertResponseToCamelCase](utils_job.TranscriptJob.md#convertresponsetocamelcase) +- [force](utils_job.TranscriptJob.md#force) +- [jobTitle](utils_job.TranscriptJob.md#jobtitle) +- [vhttp](utils_job.TranscriptJob.md#vhttp) +- [videoId](utils_job.TranscriptJob.md#videoid) + +### Methods + +- [\_handleError](utils_job.TranscriptJob.md#_handleerror) +- [\_handleSuccess](utils_job.TranscriptJob.md#_handlesuccess) +- [\_initiateBackoff](utils_job.TranscriptJob.md#_initiatebackoff) +- [beforeSuccess](utils_job.TranscriptJob.md#beforesuccess) +- [on](utils_job.TranscriptJob.md#on) +- [start](utils_job.TranscriptJob.md#start) + +## Constructors + +### constructor + +• **new TranscriptJob**(`http`, `videoId`, `force?`): [`TranscriptJob`](utils_job.TranscriptJob.md) + +#### Parameters + +| Name | Type | Default value | +| :------ | :------ | :------ | +| `http` | [`HttpClient`](utils_httpClient.HttpClient.md) | `undefined` | +| `videoId` | `string` | `undefined` | +| `force` | `boolean` | `false` | + +#### Returns + +[`TranscriptJob`](utils_job.TranscriptJob.md) + +#### Overrides + +[Job](utils_job.Job.md).[constructor](utils_job.Job.md#constructor) + +#### Defined in + +src/utils/job.ts:156 + +## Properties + +### convertResponseToCamelCase + +• `Protected` **convertResponseToCamelCase**: `boolean` = `true` + +#### Inherited from + +[Job](utils_job.Job.md).[convertResponseToCamelCase](utils_job.Job.md#convertresponsetocamelcase) + +#### Defined in + +src/utils/job.ts:48 + +___ + +### force + +• **force**: `boolean` + +#### Defined in + +src/utils/job.ts:155 + +___ + +### jobTitle + +• `Protected` **jobTitle**: `string` + +#### Inherited from + +[Job](utils_job.Job.md).[jobTitle](utils_job.Job.md#jobtitle) + +#### Defined in + +src/utils/job.ts:49 + +___ + +### vhttp + +• `Protected` **vhttp**: [`HttpClient`](utils_httpClient.HttpClient.md) + +#### Inherited from + +[Job](utils_job.Job.md).[vhttp](utils_job.Job.md#vhttp) + +#### Defined in + +src/utils/job.ts:47 + +___ + +### videoId + +• **videoId**: `string` + +#### Defined in + +src/utils/job.ts:154 + +## Methods + +### \_handleError + +▸ **_handleError**(`err`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `err` | `unknown` | + +#### Returns + +`void` + +#### Inherited from + +[Job](utils_job.Job.md).[_handleError](utils_job.Job.md#_handleerror) + +#### Defined in + +src/utils/job.ts:78 + +___ + +### \_handleSuccess + +▸ **_handleSuccess**(`data`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `data` | `ApiResponse` | + +#### Returns + +`void` + +#### Inherited from + +[Job](utils_job.Job.md).[_handleSuccess](utils_job.Job.md#_handlesuccess) + +#### Defined in + +src/utils/job.ts:94 + +___ + +### \_initiateBackoff + +▸ **_initiateBackoff**(`callbackUrl`): `Promise`\<`void`\> + +Initiates a backoff-like system where we check the status +of the job in an exponentially increasing interval. + +#### Parameters + +| Name | Type | Description | +| :------ | :------ | :------ | +| `callbackUrl` | `string` | URL sent by the server to check status | + +#### Returns + +`Promise`\<`void`\> + +NOTHING. Do not await this function. This will call the +success or error listener depending on the status. + +#### Inherited from + +[Job](utils_job.Job.md).[_initiateBackoff](utils_job.Job.md#_initiatebackoff) + +#### Defined in + +src/utils/job.ts:116 + +___ + +### beforeSuccess + +▸ **beforeSuccess**(`data`): [`Transcript`](../modules/types_video.md#transcript) + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `data` | [`Transcript`](../modules/types_video.md#transcript) | + +#### Returns + +[`Transcript`](../modules/types_video.md#transcript) + +#### Overrides + +Job.beforeSuccess + +#### Defined in + +src/utils/job.ts:187 + +___ + +### on + +▸ **on**(`option`, `method`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `option` | ``"success"`` | +| `method` | [`JobSuccessCallback`](../modules/types_utils.md#jobsuccesscallback)\<[`Transcript`](../modules/types_video.md#transcript)\> | + +#### Returns + +`void` + +#### Inherited from + +[Job](utils_job.Job.md).[on](utils_job.Job.md#on) + +#### Defined in + +src/utils/job.ts:61 + +▸ **on**(`option`, `method`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `option` | ``"error"`` | +| `method` | [`JobErrorCallback`](../modules/types_utils.md#joberrorcallback) | + +#### Returns + +`void` + +#### Inherited from + +[Job](utils_job.Job.md).[on](utils_job.Job.md#on) + +#### Defined in + +src/utils/job.ts:62 + +___ + +### start + +▸ **start**(): `Promise`\<`void`\> + +If the transcript exists, it immediately calls +the success listener. If it doesn't exist, it +initiates a backoff. + +#### Returns + +`Promise`\<`void`\> + +#### Overrides + +Job.start + +#### Defined in + +src/utils/job.ts:167 diff --git a/docs/classes/utils_job.UploadJob.md b/docs/classes/utils_job.UploadJob.md new file mode 100644 index 0000000..354704c --- /dev/null +++ b/docs/classes/utils_job.UploadJob.md @@ -0,0 +1,300 @@ +[videodb](../README.md) / [Exports](../modules.md) / [utils/job](../modules/utils_job.md) / UploadJob + +# Class: UploadJob + +[utils/job](../modules/utils_job.md).UploadJob + +UploadJob is used to initalize a new video upload. + +**`Remarks`** + +Uses the base Job class to implement a backoff to get the uploaded video data. + +## Hierarchy + +- [`Job`](utils_job.Job.md)\<[`VideoResponse`](../modules/types_response.md#videoresponse), [`VideoBase`](../interfaces/interfaces_core.VideoBase.md), [`Video`](core_video.Video.md)\> + + ↳ **`UploadJob`** + +## Table of contents + +### Constructors + +- [constructor](utils_job.UploadJob.md#constructor) + +### Properties + +- [collectionId](utils_job.UploadJob.md#collectionid) +- [convertResponseToCamelCase](utils_job.UploadJob.md#convertresponsetocamelcase) +- [jobTitle](utils_job.UploadJob.md#jobtitle) +- [uploadData](utils_job.UploadJob.md#uploaddata) +- [vhttp](utils_job.UploadJob.md#vhttp) + +### Methods + +- [\_handleError](utils_job.UploadJob.md#_handleerror) +- [\_handleSuccess](utils_job.UploadJob.md#_handlesuccess) +- [\_initiateBackoff](utils_job.UploadJob.md#_initiatebackoff) +- [beforeSuccess](utils_job.UploadJob.md#beforesuccess) +- [on](utils_job.UploadJob.md#on) +- [start](utils_job.UploadJob.md#start) + +## Constructors + +### constructor + +• **new UploadJob**(`data`, `collectionId`, `http`): [`UploadJob`](utils_job.UploadJob.md) + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `data` | [`SyncUploadConfig`](../modules/types_collection.md#syncuploadconfig) | +| `collectionId` | `string` | +| `http` | [`HttpClient`](utils_httpClient.HttpClient.md) | + +#### Returns + +[`UploadJob`](utils_job.UploadJob.md) + +#### Overrides + +[Job](utils_job.Job.md).[constructor](utils_job.Job.md#constructor) + +#### Defined in + +src/utils/job.ts:199 + +## Properties + +### collectionId + +• **collectionId**: `string` + +#### Defined in + +src/utils/job.ts:198 + +___ + +### convertResponseToCamelCase + +• `Protected` **convertResponseToCamelCase**: `boolean` = `true` + +#### Inherited from + +[Job](utils_job.Job.md).[convertResponseToCamelCase](utils_job.Job.md#convertresponsetocamelcase) + +#### Defined in + +src/utils/job.ts:48 + +___ + +### jobTitle + +• `Protected` **jobTitle**: `string` + +#### Inherited from + +[Job](utils_job.Job.md).[jobTitle](utils_job.Job.md#jobtitle) + +#### Defined in + +src/utils/job.ts:49 + +___ + +### uploadData + +• **uploadData**: [`SyncUploadConfig`](../modules/types_collection.md#syncuploadconfig) + +#### Defined in + +src/utils/job.ts:197 + +___ + +### vhttp + +• `Protected` **vhttp**: [`HttpClient`](utils_httpClient.HttpClient.md) + +#### Inherited from + +[Job](utils_job.Job.md).[vhttp](utils_job.Job.md#vhttp) + +#### Defined in + +src/utils/job.ts:47 + +## Methods + +### \_handleError + +▸ **_handleError**(`err`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `err` | `unknown` | + +#### Returns + +`void` + +#### Inherited from + +[Job](utils_job.Job.md).[_handleError](utils_job.Job.md#_handleerror) + +#### Defined in + +src/utils/job.ts:78 + +___ + +### \_handleSuccess + +▸ **_handleSuccess**(`data`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `data` | `ApiResponse` | + +#### Returns + +`void` + +#### Inherited from + +[Job](utils_job.Job.md).[_handleSuccess](utils_job.Job.md#_handlesuccess) + +#### Defined in + +src/utils/job.ts:94 + +___ + +### \_initiateBackoff + +▸ **_initiateBackoff**(`callbackUrl`): `Promise`\<`void`\> + +Initiates a backoff-like system where we check the status +of the job in an exponentially increasing interval. + +#### Parameters + +| Name | Type | Description | +| :------ | :------ | :------ | +| `callbackUrl` | `string` | URL sent by the server to check status | + +#### Returns + +`Promise`\<`void`\> + +NOTHING. Do not await this function. This will call the +success or error listener depending on the status. + +#### Inherited from + +[Job](utils_job.Job.md).[_initiateBackoff](utils_job.Job.md#_initiatebackoff) + +#### Defined in + +src/utils/job.ts:116 + +___ + +### beforeSuccess + +▸ **beforeSuccess**(`data`): [`Video`](core_video.Video.md) + +Initializes a new video object with the returned data + +#### Parameters + +| Name | Type | Description | +| :------ | :------ | :------ | +| `data` | [`VideoBase`](../interfaces/interfaces_core.VideoBase.md) | Video data returned from the API and converted to camelCase | + +#### Returns + +[`Video`](core_video.Video.md) + +a new Video object + +#### Overrides + +Job.beforeSuccess + +#### Defined in + +src/utils/job.ts:227 + +___ + +### on + +▸ **on**(`option`, `method`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `option` | ``"success"`` | +| `method` | [`JobSuccessCallback`](../modules/types_utils.md#jobsuccesscallback)\<[`Video`](core_video.Video.md)\> | + +#### Returns + +`void` + +#### Inherited from + +[Job](utils_job.Job.md).[on](utils_job.Job.md#on) + +#### Defined in + +src/utils/job.ts:61 + +▸ **on**(`option`, `method`): `void` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `option` | ``"error"`` | +| `method` | [`JobErrorCallback`](../modules/types_utils.md#joberrorcallback) | + +#### Returns + +`void` + +#### Inherited from + +[Job](utils_job.Job.md).[on](utils_job.Job.md#on) + +#### Defined in + +src/utils/job.ts:62 + +___ + +### start + +▸ **start**(): `Promise`\<`void`\> + +Fetches the callbackURL from the server and initiates a backoff + +#### Returns + +`Promise`\<`void`\> + +#### Overrides + +Job.start + +#### Defined in + +src/utils/job.ts:209 diff --git a/docs/enums/types.IndexTypeValues.md b/docs/enums/types.IndexTypeValues.md new file mode 100644 index 0000000..6788816 --- /dev/null +++ b/docs/enums/types.IndexTypeValues.md @@ -0,0 +1,21 @@ +[videodb](../README.md) / [Exports](../modules.md) / [types](../modules/types.md) / IndexTypeValues + +# Enumeration: IndexTypeValues + +[types](../modules/types.md).IndexTypeValues + +## Table of contents + +### Enumeration Members + +- [semantic](types.IndexTypeValues.md#semantic) + +## Enumeration Members + +### semantic + +• **semantic** = ``0`` + +#### Defined in + +src/types/index.ts:7 diff --git a/docs/enums/types.SearchTypeValues.md b/docs/enums/types.SearchTypeValues.md new file mode 100644 index 0000000..dc3677e --- /dev/null +++ b/docs/enums/types.SearchTypeValues.md @@ -0,0 +1,21 @@ +[videodb](../README.md) / [Exports](../modules.md) / [types](../modules/types.md) / SearchTypeValues + +# Enumeration: SearchTypeValues + +[types](../modules/types.md).SearchTypeValues + +## Table of contents + +### Enumeration Members + +- [semantic](types.SearchTypeValues.md#semantic) + +## Enumeration Members + +### semantic + +• **semantic** = ``0`` + +#### Defined in + +src/types/index.ts:2 diff --git a/docs/interfaces/interfaces_core.CollectionBase.md b/docs/interfaces/interfaces_core.CollectionBase.md new file mode 100644 index 0000000..e01123b --- /dev/null +++ b/docs/interfaces/interfaces_core.CollectionBase.md @@ -0,0 +1,45 @@ +[videodb](../README.md) / [Exports](../modules.md) / [interfaces/core](../modules/interfaces_core.md) / CollectionBase + +# Interface: CollectionBase + +[interfaces/core](../modules/interfaces_core.md).CollectionBase + +Base type for all collection objects + +## Table of contents + +### Properties + +- [description](interfaces_core.CollectionBase.md#description) +- [id](interfaces_core.CollectionBase.md#id) +- [name](interfaces_core.CollectionBase.md#name) + +## Properties + +### description + +• `Optional` **description**: `string` + +#### Defined in + +src/interfaces/core.ts:14 + +___ + +### id + +• **id**: `string` + +#### Defined in + +src/interfaces/core.ts:12 + +___ + +### name + +• `Optional` **name**: `string` + +#### Defined in + +src/interfaces/core.ts:13 diff --git a/docs/interfaces/interfaces_core.ICollection.md b/docs/interfaces/interfaces_core.ICollection.md new file mode 100644 index 0000000..577231c --- /dev/null +++ b/docs/interfaces/interfaces_core.ICollection.md @@ -0,0 +1,172 @@ +[videodb](../README.md) / [Exports](../modules.md) / [interfaces/core](../modules/interfaces_core.md) / ICollection + +# Interface: ICollection + +[interfaces/core](../modules/interfaces_core.md).ICollection + +Collection class interface for reference + +## Implemented by + +- [`Collection`](../classes/core_collection.Collection.md) + +## Table of contents + +### Properties + +- [deleteVideo](interfaces_core.ICollection.md#deletevideo) +- [getVideo](interfaces_core.ICollection.md#getvideo) +- [getVideos](interfaces_core.ICollection.md#getvideos) +- [meta](interfaces_core.ICollection.md#meta) +- [search](interfaces_core.ICollection.md#search) +- [uploadFile](interfaces_core.ICollection.md#uploadfile) +- [uploadURL](interfaces_core.ICollection.md#uploadurl) + +## Properties + +### deleteVideo + +• **deleteVideo**: (`videoId`: `string`) => `Promise`\<`object`\> + +#### Type declaration + +▸ (`videoId`): `Promise`\<`object`\> + +##### Parameters + +| Name | Type | +| :------ | :------ | +| `videoId` | `string` | + +##### Returns + +`Promise`\<`object`\> + +#### Defined in + +src/interfaces/core.ts:23 + +___ + +### getVideo + +• **getVideo**: (`videoId`: `string`) => `Promise`\<[`Video`](../classes/core_video.Video.md)\> + +#### Type declaration + +▸ (`videoId`): `Promise`\<[`Video`](../classes/core_video.Video.md)\> + +##### Parameters + +| Name | Type | +| :------ | :------ | +| `videoId` | `string` | + +##### Returns + +`Promise`\<[`Video`](../classes/core_video.Video.md)\> + +#### Defined in + +src/interfaces/core.ts:22 + +___ + +### getVideos + +• **getVideos**: () => `Promise`\<[`Video`](../classes/core_video.Video.md)[]\> + +#### Type declaration + +▸ (): `Promise`\<[`Video`](../classes/core_video.Video.md)[]\> + +##### Returns + +`Promise`\<[`Video`](../classes/core_video.Video.md)[]\> + +#### Defined in + +src/interfaces/core.ts:21 + +___ + +### meta + +• **meta**: [`CollectionBase`](interfaces_core.CollectionBase.md) + +#### Defined in + +src/interfaces/core.ts:20 + +___ + +### search + +• **search**: (`query`: `string`, `type?`: ``"semantic"``) => `Promise`\<[`SearchResult`](../classes/core_search_searchResult.SearchResult.md)\> + +#### Type declaration + +▸ (`query`, `type?`): `Promise`\<[`SearchResult`](../classes/core_search_searchResult.SearchResult.md)\> + +##### Parameters + +| Name | Type | +| :------ | :------ | +| `query` | `string` | +| `type?` | ``"semantic"`` | + +##### Returns + +`Promise`\<[`SearchResult`](../classes/core_search_searchResult.SearchResult.md)\> + +#### Defined in + +src/interfaces/core.ts:26 + +___ + +### uploadFile + +• **uploadFile**: (`data`: [`FileUploadConfig`](types_collection.FileUploadConfig.md)) => `Promise`\<`void` \| [`UploadJob`](../classes/utils_job.UploadJob.md)\> + +#### Type declaration + +▸ (`data`): `Promise`\<`void` \| [`UploadJob`](../classes/utils_job.UploadJob.md)\> + +##### Parameters + +| Name | Type | +| :------ | :------ | +| `data` | [`FileUploadConfig`](types_collection.FileUploadConfig.md) | + +##### Returns + +`Promise`\<`void` \| [`UploadJob`](../classes/utils_job.UploadJob.md)\> + +#### Defined in + +src/interfaces/core.ts:24 + +___ + +### uploadURL + +• **uploadURL**: (`data`: [`URLUploadConfig`](types_collection.URLUploadConfig.md)) => `Promise`\<`void` \| [`UploadJob`](../classes/utils_job.UploadJob.md)\> + +#### Type declaration + +▸ (`data`): `Promise`\<`void` \| [`UploadJob`](../classes/utils_job.UploadJob.md)\> + +##### Parameters + +| Name | Type | +| :------ | :------ | +| `data` | [`URLUploadConfig`](types_collection.URLUploadConfig.md) | + +##### Returns + +`Promise`\<`void` \| [`UploadJob`](../classes/utils_job.UploadJob.md)\> + +#### Defined in + +src/interfaces/core.ts:25 diff --git a/docs/interfaces/interfaces_core.IShot.md b/docs/interfaces/interfaces_core.IShot.md new file mode 100644 index 0000000..dd5aae8 --- /dev/null +++ b/docs/interfaces/interfaces_core.IShot.md @@ -0,0 +1,50 @@ +[videodb](../README.md) / [Exports](../modules.md) / [interfaces/core](../modules/interfaces_core.md) / IShot + +# Interface: IShot + +[interfaces/core](../modules/interfaces_core.md).IShot + +Shot class interface for reference + +## Implemented by + +- [`Shot`](../classes/core_shot.Shot.md) + +## Table of contents + +### Properties + +- [generateStream](interfaces_core.IShot.md#generatestream) +- [meta](interfaces_core.IShot.md#meta) + +## Properties + +### generateStream + +• **generateStream**: () => `Promise`\<`string`\> + +#### Type declaration + +▸ (): `Promise`\<`string`\> + +Fetches the streaming Url of the shot + +##### Returns + +`Promise`\<`string`\> + +An awaited streaming URL + +#### Defined in + +src/interfaces/core.ts:82 + +___ + +### meta + +• **meta**: [`ShotBase`](interfaces_core.ShotBase.md) + +#### Defined in + +src/interfaces/core.ts:77 diff --git a/docs/interfaces/interfaces_core.IVideo.md b/docs/interfaces/interfaces_core.IVideo.md new file mode 100644 index 0000000..a20aea1 --- /dev/null +++ b/docs/interfaces/interfaces_core.IVideo.md @@ -0,0 +1,196 @@ +[videodb](../README.md) / [Exports](../modules.md) / [interfaces/core](../modules/interfaces_core.md) / IVideo + +# Interface: IVideo + +[interfaces/core](../modules/interfaces_core.md).IVideo + +Video class interface for reference + +## Implemented by + +- [`Video`](../classes/core_video.Video.md) + +## Table of contents + +### Properties + +- [addSubtitle](interfaces_core.IVideo.md#addsubtitle) +- [generateStream](interfaces_core.IVideo.md#generatestream) +- [generateThumbnail](interfaces_core.IVideo.md#generatethumbnail) +- [getTranscript](interfaces_core.IVideo.md#gettranscript) +- [index](interfaces_core.IVideo.md#index) +- [meta](interfaces_core.IVideo.md#meta) +- [play](interfaces_core.IVideo.md#play) +- [search](interfaces_core.IVideo.md#search) +- [transcript](interfaces_core.IVideo.md#transcript) + +## Properties + +### addSubtitle + +• **addSubtitle**: () => `Promise`\<`string`\> + +#### Type declaration + +▸ (): `Promise`\<`string`\> + +##### Returns + +`Promise`\<`string`\> + +#### Defined in + +src/interfaces/core.ts:56 + +___ + +### generateStream + +• **generateStream**: (`timeline`: [`Timeline`](../modules/types_video.md#timeline)) => `Promise`\<`string`\> + +#### Type declaration + +▸ (`timeline`): `Promise`\<`string`\> + +##### Parameters + +| Name | Type | +| :------ | :------ | +| `timeline` | [`Timeline`](../modules/types_video.md#timeline) | + +##### Returns + +`Promise`\<`string`\> + +#### Defined in + +src/interfaces/core.ts:50 + +___ + +### generateThumbnail + +• **generateThumbnail**: () => `Promise`\<`string`\> + +#### Type declaration + +▸ (): `Promise`\<`string`\> + +##### Returns + +`Promise`\<`string`\> + +#### Defined in + +src/interfaces/core.ts:55 + +___ + +### getTranscript + +• **getTranscript**: (`forceCreate?`: `boolean`) => [`Transcript`](../modules/types_video.md#transcript) \| [`TranscriptJob`](../classes/utils_job.TranscriptJob.md) + +#### Type declaration + +▸ (`forceCreate?`): [`Transcript`](../modules/types_video.md#transcript) \| [`TranscriptJob`](../classes/utils_job.TranscriptJob.md) + +##### Parameters + +| Name | Type | +| :------ | :------ | +| `forceCreate?` | `boolean` | + +##### Returns + +[`Transcript`](../modules/types_video.md#transcript) \| [`TranscriptJob`](../classes/utils_job.TranscriptJob.md) + +#### Defined in + +src/interfaces/core.ts:52 + +___ + +### index + +• **index**: (`indexType`: ``"semantic"``) => [`IndexJob`](../classes/utils_job.IndexJob.md) + +#### Type declaration + +▸ (`indexType`): [`IndexJob`](../classes/utils_job.IndexJob.md) + +##### Parameters + +| Name | Type | +| :------ | :------ | +| `indexType` | ``"semantic"`` | + +##### Returns + +[`IndexJob`](../classes/utils_job.IndexJob.md) + +#### Defined in + +src/interfaces/core.ts:53 + +___ + +### meta + +• **meta**: [`VideoBase`](interfaces_core.VideoBase.md) + +#### Defined in + +src/interfaces/core.ts:48 + +___ + +### play + +• **play**: () => `string` + +#### Type declaration + +▸ (): `string` + +##### Returns + +`string` + +#### Defined in + +src/interfaces/core.ts:51 + +___ + +### search + +• **search**: (`query`: `string`, `type?`: ``"semantic"``) => `Promise`\<[`SearchResult`](../classes/core_search_searchResult.SearchResult.md)\> + +#### Type declaration + +▸ (`query`, `type?`): `Promise`\<[`SearchResult`](../classes/core_search_searchResult.SearchResult.md)\> + +##### Parameters + +| Name | Type | +| :------ | :------ | +| `query` | `string` | +| `type?` | ``"semantic"`` | + +##### Returns + +`Promise`\<[`SearchResult`](../classes/core_search_searchResult.SearchResult.md)\> + +#### Defined in + +src/interfaces/core.ts:54 + +___ + +### transcript + +• `Optional` **transcript**: [`Transcript`](../modules/types_video.md#transcript) + +#### Defined in + +src/interfaces/core.ts:49 diff --git a/docs/interfaces/interfaces_core.Search.md b/docs/interfaces/interfaces_core.Search.md new file mode 100644 index 0000000..f4c3d25 --- /dev/null +++ b/docs/interfaces/interfaces_core.Search.md @@ -0,0 +1,70 @@ +[videodb](../README.md) / [Exports](../modules.md) / [interfaces/core](../modules/interfaces_core.md) / Search + +# Interface: Search\<V, C\> + +[interfaces/core](../modules/interfaces_core.md).Search + +Search class interface for implementations of different +search types + +## Type parameters + +| Name | +| :------ | +| `V` | +| `C` | + +## Table of contents + +### Properties + +- [searchInsideCollection](interfaces_core.Search.md#searchinsidecollection) +- [searchInsideVideo](interfaces_core.Search.md#searchinsidevideo) + +## Properties + +### searchInsideCollection + +• **searchInsideCollection**: (`data`: `C`) => `Promise`\<[`SearchResult`](../classes/core_search_searchResult.SearchResult.md)\> + +#### Type declaration + +▸ (`data`): `Promise`\<[`SearchResult`](../classes/core_search_searchResult.SearchResult.md)\> + +##### Parameters + +| Name | Type | +| :------ | :------ | +| `data` | `C` | + +##### Returns + +`Promise`\<[`SearchResult`](../classes/core_search_searchResult.SearchResult.md)\> + +#### Defined in + +src/interfaces/core.ts:91 + +___ + +### searchInsideVideo + +• **searchInsideVideo**: (`data`: `V`) => `Promise`\<[`SearchResult`](../classes/core_search_searchResult.SearchResult.md)\> + +#### Type declaration + +▸ (`data`): `Promise`\<[`SearchResult`](../classes/core_search_searchResult.SearchResult.md)\> + +##### Parameters + +| Name | Type | +| :------ | :------ | +| `data` | `V` | + +##### Returns + +`Promise`\<[`SearchResult`](../classes/core_search_searchResult.SearchResult.md)\> + +#### Defined in + +src/interfaces/core.ts:90 diff --git a/docs/interfaces/interfaces_core.ShotBase.md b/docs/interfaces/interfaces_core.ShotBase.md new file mode 100644 index 0000000..f4b1297 --- /dev/null +++ b/docs/interfaces/interfaces_core.ShotBase.md @@ -0,0 +1,100 @@ +[videodb](../README.md) / [Exports](../modules.md) / [interfaces/core](../modules/interfaces_core.md) / ShotBase + +# Interface: ShotBase + +[interfaces/core](../modules/interfaces_core.md).ShotBase + +Base type for all Shot objects + +## Table of contents + +### Properties + +- [end](interfaces_core.ShotBase.md#end) +- [searchScore](interfaces_core.ShotBase.md#searchscore) +- [start](interfaces_core.ShotBase.md#start) +- [streamUrl](interfaces_core.ShotBase.md#streamurl) +- [text](interfaces_core.ShotBase.md#text) +- [videoId](interfaces_core.ShotBase.md#videoid) +- [videoLength](interfaces_core.ShotBase.md#videolength) +- [videoTitle](interfaces_core.ShotBase.md#videotitle) + +## Properties + +### end + +• **end**: `number` + +#### Defined in + +src/interfaces/core.ts:67 + +___ + +### searchScore + +• `Optional` **searchScore**: `number` + +#### Defined in + +src/interfaces/core.ts:69 + +___ + +### start + +• **start**: `number` + +#### Defined in + +src/interfaces/core.ts:66 + +___ + +### streamUrl + +• `Optional` **streamUrl**: `string` + +#### Defined in + +src/interfaces/core.ts:70 + +___ + +### text + +• `Optional` **text**: `string` + +#### Defined in + +src/interfaces/core.ts:68 + +___ + +### videoId + +• **videoId**: `string` + +#### Defined in + +src/interfaces/core.ts:63 + +___ + +### videoLength + +• **videoLength**: `number` + +#### Defined in + +src/interfaces/core.ts:64 + +___ + +### videoTitle + +• **videoTitle**: `string` + +#### Defined in + +src/interfaces/core.ts:65 diff --git a/docs/interfaces/interfaces_core.VideoBase.md b/docs/interfaces/interfaces_core.VideoBase.md new file mode 100644 index 0000000..540a297 --- /dev/null +++ b/docs/interfaces/interfaces_core.VideoBase.md @@ -0,0 +1,111 @@ +[videodb](../README.md) / [Exports](../modules.md) / [interfaces/core](../modules/interfaces_core.md) / VideoBase + +# Interface: VideoBase + +[interfaces/core](../modules/interfaces_core.md).VideoBase + +Base type for all video objects + +## Table of contents + +### Properties + +- [collectionId](interfaces_core.VideoBase.md#collectionid) +- [id](interfaces_core.VideoBase.md#id) +- [length](interfaces_core.VideoBase.md#length) +- [name](interfaces_core.VideoBase.md#name) +- [playerUrl](interfaces_core.VideoBase.md#playerurl) +- [size](interfaces_core.VideoBase.md#size) +- [streamUrl](interfaces_core.VideoBase.md#streamurl) +- [thumbnail](interfaces_core.VideoBase.md#thumbnail) +- [userId](interfaces_core.VideoBase.md#userid) + +## Properties + +### collectionId + +• **collectionId**: `string` + +#### Defined in + +src/interfaces/core.ts:33 + +___ + +### id + +• **id**: `string` + +#### Defined in + +src/interfaces/core.ts:34 + +___ + +### length + +• **length**: `string` + +#### Defined in + +src/interfaces/core.ts:35 + +___ + +### name + +• **name**: `string` + +#### Defined in + +src/interfaces/core.ts:36 + +___ + +### playerUrl + +• **playerUrl**: `string` + +#### Defined in + +src/interfaces/core.ts:40 + +___ + +### size + +• **size**: `string` + +#### Defined in + +src/interfaces/core.ts:37 + +___ + +### streamUrl + +• **streamUrl**: `string` + +#### Defined in + +src/interfaces/core.ts:38 + +___ + +### thumbnail + +• `Optional` **thumbnail**: `string` + +#### Defined in + +src/interfaces/core.ts:41 + +___ + +### userId + +• **userId**: `string` + +#### Defined in + +src/interfaces/core.ts:39 diff --git a/docs/interfaces/types_collection.CommonUploadConfig.md b/docs/interfaces/types_collection.CommonUploadConfig.md new file mode 100644 index 0000000..c8d3be0 --- /dev/null +++ b/docs/interfaces/types_collection.CommonUploadConfig.md @@ -0,0 +1,51 @@ +[videodb](../README.md) / [Exports](../modules.md) / [types/collection](../modules/types_collection.md) / CommonUploadConfig + +# Interface: CommonUploadConfig + +[types/collection](../modules/types_collection.md).CommonUploadConfig + +## Hierarchy + +- **`CommonUploadConfig`** + + ↳ [`FileUploadConfig`](types_collection.FileUploadConfig.md) + + ↳ [`URLUploadConfig`](types_collection.URLUploadConfig.md) + +## Table of contents + +### Properties + +- [callbackUrl](types_collection.CommonUploadConfig.md#callbackurl) +- [description](types_collection.CommonUploadConfig.md#description) +- [name](types_collection.CommonUploadConfig.md#name) + +## Properties + +### callbackUrl + +• `Optional` **callbackUrl**: `string` + +#### Defined in + +src/types/collection.ts:4 + +___ + +### description + +• `Optional` **description**: `string` + +#### Defined in + +src/types/collection.ts:3 + +___ + +### name + +• `Optional` **name**: `string` + +#### Defined in + +src/types/collection.ts:2 diff --git a/docs/interfaces/types_collection.FileUploadConfig.md b/docs/interfaces/types_collection.FileUploadConfig.md new file mode 100644 index 0000000..5356f43 --- /dev/null +++ b/docs/interfaces/types_collection.FileUploadConfig.md @@ -0,0 +1,72 @@ +[videodb](../README.md) / [Exports](../modules.md) / [types/collection](../modules/types_collection.md) / FileUploadConfig + +# Interface: FileUploadConfig + +[types/collection](../modules/types_collection.md).FileUploadConfig + +## Hierarchy + +- [`CommonUploadConfig`](types_collection.CommonUploadConfig.md) + + ↳ **`FileUploadConfig`** + +## Table of contents + +### Properties + +- [callbackUrl](types_collection.FileUploadConfig.md#callbackurl) +- [description](types_collection.FileUploadConfig.md#description) +- [filePath](types_collection.FileUploadConfig.md#filepath) +- [name](types_collection.FileUploadConfig.md#name) + +## Properties + +### callbackUrl + +• `Optional` **callbackUrl**: `string` + +#### Inherited from + +[CommonUploadConfig](types_collection.CommonUploadConfig.md).[callbackUrl](types_collection.CommonUploadConfig.md#callbackurl) + +#### Defined in + +src/types/collection.ts:4 + +___ + +### description + +• `Optional` **description**: `string` + +#### Inherited from + +[CommonUploadConfig](types_collection.CommonUploadConfig.md).[description](types_collection.CommonUploadConfig.md#description) + +#### Defined in + +src/types/collection.ts:3 + +___ + +### filePath + +• **filePath**: `string` + +#### Defined in + +src/types/collection.ts:8 + +___ + +### name + +• `Optional` **name**: `string` + +#### Inherited from + +[CommonUploadConfig](types_collection.CommonUploadConfig.md).[name](types_collection.CommonUploadConfig.md#name) + +#### Defined in + +src/types/collection.ts:2 diff --git a/docs/interfaces/types_collection.URLUploadConfig.md b/docs/interfaces/types_collection.URLUploadConfig.md new file mode 100644 index 0000000..587c373 --- /dev/null +++ b/docs/interfaces/types_collection.URLUploadConfig.md @@ -0,0 +1,72 @@ +[videodb](../README.md) / [Exports](../modules.md) / [types/collection](../modules/types_collection.md) / URLUploadConfig + +# Interface: URLUploadConfig + +[types/collection](../modules/types_collection.md).URLUploadConfig + +## Hierarchy + +- [`CommonUploadConfig`](types_collection.CommonUploadConfig.md) + + ↳ **`URLUploadConfig`** + +## Table of contents + +### Properties + +- [callbackUrl](types_collection.URLUploadConfig.md#callbackurl) +- [description](types_collection.URLUploadConfig.md#description) +- [name](types_collection.URLUploadConfig.md#name) +- [url](types_collection.URLUploadConfig.md#url) + +## Properties + +### callbackUrl + +• `Optional` **callbackUrl**: `string` + +#### Inherited from + +[CommonUploadConfig](types_collection.CommonUploadConfig.md).[callbackUrl](types_collection.CommonUploadConfig.md#callbackurl) + +#### Defined in + +src/types/collection.ts:4 + +___ + +### description + +• `Optional` **description**: `string` + +#### Inherited from + +[CommonUploadConfig](types_collection.CommonUploadConfig.md).[description](types_collection.CommonUploadConfig.md#description) + +#### Defined in + +src/types/collection.ts:3 + +___ + +### name + +• `Optional` **name**: `string` + +#### Inherited from + +[CommonUploadConfig](types_collection.CommonUploadConfig.md).[name](types_collection.CommonUploadConfig.md#name) + +#### Defined in + +src/types/collection.ts:2 + +___ + +### url + +• **url**: `string` + +#### Defined in + +src/types/collection.ts:12 diff --git a/docs/modules.md b/docs/modules.md new file mode 100644 index 0000000..a165340 --- /dev/null +++ b/docs/modules.md @@ -0,0 +1,27 @@ +[videodb](README.md) / Exports + +# videodb + +## Table of contents + +### Modules + +- [constants](modules/constants.md) +- [core/collection](modules/core_collection.md) +- [core/connection](modules/core_connection.md) +- [core/search](modules/core_search.md) +- [core/search/searchResult](modules/core_search_searchResult.md) +- [core/shot](modules/core_shot.md) +- [core/video](modules/core_video.md) +- [index](modules/index.md) +- [interfaces/core](modules/interfaces_core.md) +- [types](modules/types.md) +- [types/collection](modules/types_collection.md) +- [types/response](modules/types_response.md) +- [types/utils](modules/types_utils.md) +- [types/video](modules/types_video.md) +- [utils](modules/utils.md) +- [utils/error](modules/utils_error.md) +- [utils/httpClient](modules/utils_httpClient.md) +- [utils/job](modules/utils_job.md) +- [utils/upload](modules/utils_upload.md) diff --git a/docs/modules/constants.md b/docs/modules/constants.md new file mode 100644 index 0000000..a6297c9 --- /dev/null +++ b/docs/modules/constants.md @@ -0,0 +1,153 @@ +[videodb](../README.md) / [Exports](../modules.md) / constants + +# Module: constants + +## Table of contents + +### Variables + +- [ApiPath](constants.md#apipath) +- [DefaultIndexType](constants.md#defaultindextype) +- [DefaultSearchType](constants.md#defaultsearchtype) +- [HttpClientDefaultValues](constants.md#httpclientdefaultvalues) +- [PLAYER\_URL](constants.md#player_url) +- [ResponseStatus](constants.md#responsestatus) +- [SemanticSearchDefaultValues](constants.md#semanticsearchdefaultvalues) +- [VIDEO\_DB\_API](constants.md#video_db_api) +- [Workflows](constants.md#workflows) + +## Variables + +### ApiPath + +• `Const` **ApiPath**: `Object` + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `collection` | ``"collection"`` | +| `compile` | ``"compile"`` | +| `index` | ``"index"`` | +| `search` | ``"search"`` | +| `stream` | ``"stream"`` | +| `thumbnail` | ``"thumbnail"`` | +| `transcription` | ``"transcription"`` | +| `upload` | ``"upload"`` | +| `upload_url` | ``"upload_url"`` | +| `video` | ``"video"`` | +| `workflow` | ``"workflow"`` | + +#### Defined in + +src/constants.ts:15 + +___ + +### DefaultIndexType + +• `Const` **DefaultIndexType**: ``"semantic"`` + +#### Defined in + +src/constants.ts:2 + +___ + +### DefaultSearchType + +• `Const` **DefaultSearchType**: ``"semantic"`` + +#### Defined in + +src/constants.ts:1 + +___ + +### HttpClientDefaultValues + +• `Const` **HttpClientDefaultValues**: `Object` + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `backoff_factor` | ``0.1`` | +| `max_retries` | ``3`` | +| `timeout` | `number` | + +#### Defined in + +src/constants.ts:34 + +___ + +### PLAYER\_URL + +• `Const` **PLAYER\_URL**: ``"https://console.videodb.io/player"`` + +#### Defined in + +src/constants.ts:41 + +___ + +### ResponseStatus + +• `Const` **ResponseStatus**: `Object` + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `in_progress` | ``"in progress"`` | +| `processing` | ``"processing"`` | + +#### Defined in + +src/constants.ts:29 + +___ + +### SemanticSearchDefaultValues + +• `Const` **SemanticSearchDefaultValues**: `Object` + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `dynamicScorePercentage` | ``30`` | +| `namespace` | ``"dev"`` | +| `resultThreshold` | ``50`` | +| `scoreThreshold` | ``0.2`` | + +#### Defined in + +src/constants.ts:4 + +___ + +### VIDEO\_DB\_API + +• `Const` **VIDEO\_DB\_API**: ``"https://api.videodb.io"`` + +#### Defined in + +src/constants.ts:40 + +___ + +### Workflows + +• `Const` **Workflows**: `Object` + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `addSubtitles` | `string` | + +#### Defined in + +src/constants.ts:11 diff --git a/docs/modules/core_collection.md b/docs/modules/core_collection.md new file mode 100644 index 0000000..d57239d --- /dev/null +++ b/docs/modules/core_collection.md @@ -0,0 +1,9 @@ +[videodb](../README.md) / [Exports](../modules.md) / core/collection + +# Module: core/collection + +## Table of contents + +### Classes + +- [Collection](../classes/core_collection.Collection.md) diff --git a/docs/modules/core_connection.md b/docs/modules/core_connection.md new file mode 100644 index 0000000..133f16d --- /dev/null +++ b/docs/modules/core_connection.md @@ -0,0 +1,9 @@ +[videodb](../README.md) / [Exports](../modules.md) / core/connection + +# Module: core/connection + +## Table of contents + +### Classes + +- [Connection](../classes/core_connection.Connection.md) diff --git a/docs/modules/core_search.md b/docs/modules/core_search.md new file mode 100644 index 0000000..e1a498b --- /dev/null +++ b/docs/modules/core_search.md @@ -0,0 +1,9 @@ +[videodb](../README.md) / [Exports](../modules.md) / core/search + +# Module: core/search + +## Table of contents + +### Classes + +- [SearchFactory](../classes/core_search.SearchFactory.md) diff --git a/docs/modules/core_search_searchResult.md b/docs/modules/core_search_searchResult.md new file mode 100644 index 0000000..a4feeac --- /dev/null +++ b/docs/modules/core_search_searchResult.md @@ -0,0 +1,9 @@ +[videodb](../README.md) / [Exports](../modules.md) / core/search/searchResult + +# Module: core/search/searchResult + +## Table of contents + +### Classes + +- [SearchResult](../classes/core_search_searchResult.SearchResult.md) diff --git a/docs/modules/core_shot.md b/docs/modules/core_shot.md new file mode 100644 index 0000000..173e99b --- /dev/null +++ b/docs/modules/core_shot.md @@ -0,0 +1,9 @@ +[videodb](../README.md) / [Exports](../modules.md) / core/shot + +# Module: core/shot + +## Table of contents + +### Classes + +- [Shot](../classes/core_shot.Shot.md) diff --git a/docs/modules/core_video.md b/docs/modules/core_video.md new file mode 100644 index 0000000..4e948d6 --- /dev/null +++ b/docs/modules/core_video.md @@ -0,0 +1,9 @@ +[videodb](../README.md) / [Exports](../modules.md) / core/video + +# Module: core/video + +## Table of contents + +### Classes + +- [Video](../classes/core_video.Video.md) diff --git a/docs/modules/index.md b/docs/modules/index.md new file mode 100644 index 0000000..75b9b51 --- /dev/null +++ b/docs/modules/index.md @@ -0,0 +1,93 @@ +[videodb](../README.md) / [Exports](../modules.md) / index + +# Module: index + +## Table of contents + +### References + +- [Collection](index.md#collection) +- [IndexJob](index.md#indexjob) +- [Shot](index.md#shot) +- [TranscriptJob](index.md#transcriptjob) +- [UploadJob](index.md#uploadjob) +- [Video](index.md#video) +- [playStream](index.md#playstream) +- [waitForJob](index.md#waitforjob) + +### Functions + +- [connect](index.md#connect) + +## References + +### Collection + +Re-exports [Collection](../classes/core_collection.Collection.md) + +___ + +### IndexJob + +Re-exports [IndexJob](../classes/utils_job.IndexJob.md) + +___ + +### Shot + +Re-exports [Shot](../classes/core_shot.Shot.md) + +___ + +### TranscriptJob + +Re-exports [TranscriptJob](../classes/utils_job.TranscriptJob.md) + +___ + +### UploadJob + +Re-exports [UploadJob](../classes/utils_job.UploadJob.md) + +___ + +### Video + +Re-exports [Video](../classes/core_video.Video.md) + +___ + +### playStream + +Re-exports [playStream](utils.md#playstream) + +___ + +### waitForJob + +Re-exports [waitForJob](utils.md#waitforjob) + +## Functions + +### connect + +▸ **connect**(`apiKey?`, `baseURL?`): [`Connection`](../classes/core_connection.Connection.md) + +Entry function for the VideoDB SDK + +#### Parameters + +| Name | Type | Default value | Description | +| :------ | :------ | :------ | :------ | +| `apiKey?` | `string` | `undefined` | Your personal API Key. If you don't have one, get one from our [Console](https://console.videodb.io) | +| `baseURL` | `string` | `VIDEO_DB_API` | Server base URL. If you're not sure what this is, skip it. We'll default to our own baseURL | + +#### Returns + +[`Connection`](../classes/core_connection.Connection.md) + +A Connection instance that can be used to fetch any collection + +#### Defined in + +src/index.ts:11 diff --git a/docs/modules/interfaces_core.md b/docs/modules/interfaces_core.md new file mode 100644 index 0000000..5408df1 --- /dev/null +++ b/docs/modules/interfaces_core.md @@ -0,0 +1,15 @@ +[videodb](../README.md) / [Exports](../modules.md) / interfaces/core + +# Module: interfaces/core + +## Table of contents + +### Interfaces + +- [CollectionBase](../interfaces/interfaces_core.CollectionBase.md) +- [ICollection](../interfaces/interfaces_core.ICollection.md) +- [IShot](../interfaces/interfaces_core.IShot.md) +- [IVideo](../interfaces/interfaces_core.IVideo.md) +- [Search](../interfaces/interfaces_core.Search.md) +- [ShotBase](../interfaces/interfaces_core.ShotBase.md) +- [VideoBase](../interfaces/interfaces_core.VideoBase.md) diff --git a/docs/modules/types.md b/docs/modules/types.md new file mode 100644 index 0000000..3612c82 --- /dev/null +++ b/docs/modules/types.md @@ -0,0 +1,72 @@ +[videodb](../README.md) / [Exports](../modules.md) / types + +# Module: types + +## Table of contents + +### Enumerations + +- [IndexTypeValues](../enums/types.IndexTypeValues.md) +- [SearchTypeValues](../enums/types.SearchTypeValues.md) + +### Type Aliases + +- [IndexConfig](types.md#indexconfig) +- [IndexType](types.md#indextype) +- [SearchConfig](types.md#searchconfig) +- [SearchType](types.md#searchtype) + +## Type Aliases + +### IndexConfig + +Ƭ **IndexConfig**: `Object` + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `index_type` | [`IndexType`](types.md#indextype) | + +#### Defined in + +src/types/index.ts:18 + +___ + +### IndexType + +Ƭ **IndexType**: keyof typeof [`IndexTypeValues`](../enums/types.IndexTypeValues.md) + +#### Defined in + +src/types/index.ts:9 + +___ + +### SearchConfig + +Ƭ **SearchConfig**: `Object` + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `query` | `string` | +| `resultThreshold?` | `number` | +| `scoreThreshold?` | `number` | +| `type?` | [`SearchType`](types.md#searchtype) | + +#### Defined in + +src/types/index.ts:11 + +___ + +### SearchType + +Ƭ **SearchType**: keyof typeof [`SearchTypeValues`](../enums/types.SearchTypeValues.md) + +#### Defined in + +src/types/index.ts:4 diff --git a/docs/modules/types_collection.md b/docs/modules/types_collection.md new file mode 100644 index 0000000..06d4169 --- /dev/null +++ b/docs/modules/types_collection.md @@ -0,0 +1,36 @@ +[videodb](../README.md) / [Exports](../modules.md) / types/collection + +# Module: types/collection + +## Table of contents + +### Interfaces + +- [CommonUploadConfig](../interfaces/types_collection.CommonUploadConfig.md) +- [FileUploadConfig](../interfaces/types_collection.FileUploadConfig.md) +- [URLUploadConfig](../interfaces/types_collection.URLUploadConfig.md) + +### Type Aliases + +- [SyncUploadConfig](types_collection.md#syncuploadconfig) +- [UploadConfig](types_collection.md#uploadconfig) + +## Type Aliases + +### SyncUploadConfig + +Ƭ **SyncUploadConfig**: `Omit`\<[`URLUploadConfig`](../interfaces/types_collection.URLUploadConfig.md), ``"callbackUrl"``\> + +#### Defined in + +src/types/collection.ts:17 + +___ + +### UploadConfig + +Ƭ **UploadConfig**: [`FileUploadConfig`](../interfaces/types_collection.FileUploadConfig.md) \| [`URLUploadConfig`](../interfaces/types_collection.URLUploadConfig.md) + +#### Defined in + +src/types/collection.ts:15 diff --git a/docs/modules/types_response.md b/docs/modules/types_response.md new file mode 100644 index 0000000..7a55943 --- /dev/null +++ b/docs/modules/types_response.md @@ -0,0 +1,260 @@ +[videodb](../README.md) / [Exports](../modules.md) / types/response + +# Module: types/response + +## Table of contents + +### Type Aliases + +- [CollectionResponse](types_response.md#collectionresponse) +- [ErrorResponse](types_response.md#errorresponse) +- [GenerateStreamResponse](types_response.md#generatestreamresponse) +- [GetUploadUrl](types_response.md#getuploadurl) +- [GetVideos](types_response.md#getvideos) +- [NoDataResponse](types_response.md#nodataresponse) +- [ResponseOf](types_response.md#responseof) +- [SearchResponse](types_response.md#searchresponse) +- [SyncJobResponse](types_response.md#syncjobresponse) +- [TranscriptResponse](types_response.md#transcriptresponse) +- [TranscriptionResponse](types_response.md#transcriptionresponse) +- [UpdateResponse](types_response.md#updateresponse) +- [VideoResponse](types_response.md#videoresponse) + +## Type Aliases + +### CollectionResponse + +Ƭ **CollectionResponse**: `Object` + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `description` | `string` | +| `id` | `string` | +| `name` | `string` | + +#### Defined in + +src/types/response.ts:56 + +___ + +### ErrorResponse + +Ƭ **ErrorResponse**: `Object` + +All error responses sent by the server are of this type + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `message` | `string` | +| `status?` | `string` | +| `success?` | `boolean` | + +#### Defined in + +src/types/response.ts:13 + +___ + +### GenerateStreamResponse + +Ƭ **GenerateStreamResponse**: `Object` + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `player_url` | `string` | +| `stream_url` | `string` | + +#### Defined in + +src/types/response.ts:78 + +___ + +### GetUploadUrl + +Ƭ **GetUploadUrl**: `Object` + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `upload_url` | `string` | + +#### Defined in + +src/types/response.ts:70 + +___ + +### GetVideos + +Ƭ **GetVideos**: `Object` + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `videos` | [`VideoResponse`](types_response.md#videoresponse)[] | + +#### Defined in + +src/types/response.ts:74 + +___ + +### NoDataResponse + +Ƭ **NoDataResponse**: `Object` + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `message?` | `string` | +| `success?` | `boolean` | + +#### Defined in + +src/types/response.ts:40 + +___ + +### ResponseOf + +Ƭ **ResponseOf**\<`D`\>: `Object` + +All sucessfull responses are wrapped by this type + +#### Type parameters + +| Name | Description | +| :------ | :------ | +| `D` | Type of the response data TODO: Fix this type after server update | + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `data` | `D` | +| `message?` | `string` | +| `request_type?` | ``"sync"`` \| ``"async"`` | +| `response?` | [`ResponseOf`](types_response.md#responseof)\<`D`\> | +| `status?` | typeof [`ResponseStatus`](constants.md#responsestatus)[keyof typeof [`ResponseStatus`](constants.md#responsestatus)] | +| `success?` | `boolean` | + +#### Defined in + +src/types/response.ts:25 + +___ + +### SearchResponse + +Ƭ **SearchResponse**: `Object` + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `results` | \{ `collection_id`: `string` ; `docs`: \{ `end`: `number` ; `score`: `number` ; `start`: `number` ; `stream_url`: `string` ; `text`: `string` }[] ; `length`: `string` ; `max_score`: `number` ; `platform`: `string` ; `stream_url`: [`StreamableURL`](types_video.md#streamableurl) ; `thumbnail`: `string` ; `title`: `string` ; `video_id`: `string` }[] | + +#### Defined in + +src/types/response.ts:92 + +___ + +### SyncJobResponse + +Ƭ **SyncJobResponse**: `Object` + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `output_url` | `string` | + +#### Defined in + +src/types/response.ts:66 + +___ + +### TranscriptResponse + +Ƭ **TranscriptResponse**: `Object` + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `text` | `string` | +| `word_timestamps` | \{ `end`: `string` ; `start`: `string` ; `word`: `string` }[] | + +#### Defined in + +src/types/response.ts:83 + +___ + +### TranscriptionResponse + +Ƭ **TranscriptionResponse**: `Object` + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `output_url` | `string` | + +#### Defined in + +src/types/response.ts:62 + +___ + +### UpdateResponse + +Ƭ **UpdateResponse**: `Object` + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `message` | `string` | +| `response` | `unknown` | +| `status` | `number` | + +#### Defined in + +src/types/response.ts:34 + +___ + +### VideoResponse + +Ƭ **VideoResponse**: `Object` + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `collection_id` | `string` | +| `id` | `string` | +| `length` | `string` | +| `name` | `string` | +| `player_url` | `string` | +| `size` | `string` | +| `stream_url` | `string` | +| `user_id` | `string` | + +#### Defined in + +src/types/response.ts:45 diff --git a/docs/modules/types_utils.md b/docs/modules/types_utils.md new file mode 100644 index 0000000..b79d932 --- /dev/null +++ b/docs/modules/types_utils.md @@ -0,0 +1,127 @@ +[videodb](../README.md) / [Exports](../modules.md) / types/utils + +# Module: types/utils + +## Table of contents + +### Type Aliases + +- [JobErrorCallback](types_utils.md#joberrorcallback) +- [JobSuccessCallback](types_utils.md#jobsuccesscallback) +- [JobType](types_utils.md#jobtype) +- [SemanticCollectionSearch](types_utils.md#semanticcollectionsearch) +- [SemanticSearchBase](types_utils.md#semanticsearchbase) +- [SemanticVideoSearch](types_utils.md#semanticvideosearch) +- [URLSeries](types_utils.md#urlseries) + +## Type Aliases + +### JobErrorCallback + +Ƭ **JobErrorCallback**: (`err`: [`VideodbError`](../classes/utils_error.VideodbError.md) \| [`AuthenticationError`](../classes/utils_error.AuthenticationError.md) \| [`InvalidRequestError`](../classes/utils_error.InvalidRequestError.md)) => `unknown` + +#### Type declaration + +▸ (`err`): `unknown` + +##### Parameters + +| Name | Type | +| :------ | :------ | +| `err` | [`VideodbError`](../classes/utils_error.VideodbError.md) \| [`AuthenticationError`](../classes/utils_error.AuthenticationError.md) \| [`InvalidRequestError`](../classes/utils_error.InvalidRequestError.md) | + +##### Returns + +`unknown` + +#### Defined in + +src/types/utils.ts:10 + +___ + +### JobSuccessCallback + +Ƭ **JobSuccessCallback**\<`D`\>: (`data`: `D`) => `unknown` + +#### Type parameters + +| Name | +| :------ | +| `D` | + +#### Type declaration + +▸ (`data`): `unknown` + +##### Parameters + +| Name | Type | +| :------ | :------ | +| `data` | `D` | + +##### Returns + +`unknown` + +#### Defined in + +src/types/utils.ts:9 + +___ + +### JobType + +Ƭ **JobType**: ``"async"`` \| ``"sync"`` + +#### Defined in + +src/types/utils.ts:7 + +___ + +### SemanticCollectionSearch + +Ƭ **SemanticCollectionSearch**: \{ `collectionId`: `string` } & [`SemanticSearchBase`](types_utils.md#semanticsearchbase) + +#### Defined in + +src/types/utils.ts:26 + +___ + +### SemanticSearchBase + +Ƭ **SemanticSearchBase**: `Object` + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `query` | `string` | +| `resultThreshold?` | `number` | +| `scoreThreshold?` | `number` | + +#### Defined in + +src/types/utils.ts:16 + +___ + +### SemanticVideoSearch + +Ƭ **SemanticVideoSearch**: \{ `videoId`: `string` } & [`SemanticSearchBase`](types_utils.md#semanticsearchbase) + +#### Defined in + +src/types/utils.ts:22 + +___ + +### URLSeries + +Ƭ **URLSeries**: `string`[] + +#### Defined in + +src/types/utils.ts:14 diff --git a/docs/modules/types_video.md b/docs/modules/types_video.md new file mode 100644 index 0000000..66ff938 --- /dev/null +++ b/docs/modules/types_video.md @@ -0,0 +1,59 @@ +[videodb](../README.md) / [Exports](../modules.md) / types/video + +# Module: types/video + +## Table of contents + +### Type Aliases + +- [StreamableURL](types_video.md#streamableurl) +- [Timeline](types_video.md#timeline) +- [TimelineTuple](types_video.md#timelinetuple) +- [Transcript](types_video.md#transcript) + +## Type Aliases + +### StreamableURL + +Ƭ **StreamableURL**: `string` + +#### Defined in + +src/types/video.ts:11 + +___ + +### Timeline + +Ƭ **Timeline**: [`TimelineTuple`](types_video.md#timelinetuple)[] + +#### Defined in + +src/types/video.ts:2 + +___ + +### TimelineTuple + +Ƭ **TimelineTuple**: [`number`, `number`] + +#### Defined in + +src/types/video.ts:1 + +___ + +### Transcript + +Ƭ **Transcript**: `Object` + +#### Type declaration + +| Name | Type | +| :------ | :------ | +| `text` | `string` | +| `wordTimestamps` | \{ `end`: `number` ; `start`: `number` ; `word`: `string` }[] | + +#### Defined in + +src/types/video.ts:3 diff --git a/docs/modules/utils.md b/docs/modules/utils.md new file mode 100644 index 0000000..27935f0 --- /dev/null +++ b/docs/modules/utils.md @@ -0,0 +1,130 @@ +[videodb](../README.md) / [Exports](../modules.md) / utils + +# Module: utils + +## Table of contents + +### Type Aliases + +- [SnakeKeysToCamelCase](utils.md#snakekeystocamelcase) +- [SnakeToCamelCase](utils.md#snaketocamelcase) + +### Functions + +- [fromSnakeToCamel](utils.md#fromsnaketocamel) +- [playStream](utils.md#playstream) +- [waitForJob](utils.md#waitforjob) + +## Type Aliases + +### SnakeKeysToCamelCase + +Ƭ **SnakeKeysToCamelCase**\<`T`\>: \{ [K in keyof T as SnakeToCamelCase\<K & string\>]: T[K] extends (infer U)[] ? SnakeKeysToCamelCase\<U\>[] : T[K] extends object ? SnakeKeysToCamelCase\<T[K]\> : T[K] } + +Return type for function fromSnakeToCamel +- T = Type of the input object + +#### Type parameters + +| Name | +| :------ | +| `T` | + +#### Defined in + +src/utils/index.ts:17 + +___ + +### SnakeToCamelCase + +Ƭ **SnakeToCamelCase**\<`S`\>: `S` extends \`$\{infer T}\_$\{infer U}\` ? \`$\{T}$\{Capitalize\<SnakeToCamelCase\<U\>\>}\` : `S` + +TS Interpretation of snake_case to camelCase conversion for better readability + +#### Type parameters + +| Name | Type | +| :------ | :------ | +| `S` | extends `string` | + +#### Defined in + +src/utils/index.ts:8 + +## Functions + +### fromSnakeToCamel + +▸ **fromSnakeToCamel**\<`O`\>(`data`): [`SnakeKeysToCamelCase`](utils.md#snakekeystocamelcase)\<`O`\> + +Converts the provided snake_case object into camelCase + +#### Type parameters + +| Name | Type | +| :------ | :------ | +| `O` | extends `object` | + +#### Parameters + +| Name | Type | Description | +| :------ | :------ | :------ | +| `data` | `O` | The object that needs to be converted | + +#### Returns + +[`SnakeKeysToCamelCase`](utils.md#snakekeystocamelcase)\<`O`\> + +The provided object with all the keys converted into camelCase + +TODO: Implement this safely at the HttpClient level to avoid rewrites throughout the codebase + +**`Remarks`** + +Performs an in-depth conversion. Be careful before passing +large objects with a lot of values. + +#### Defined in + +src/utils/index.ts:36 + +___ + +### playStream + +▸ **playStream**(`url`): `string` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `url` | `string` | + +#### Returns + +`string` + +#### Defined in + +src/utils/index.ts:54 + +___ + +### waitForJob + +▸ **waitForJob**(`job`): `Promise`\<`any`\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `job` | [`Job`](../classes/utils_job.Job.md)\<`any`, `any`, `any`\> | + +#### Returns + +`Promise`\<`any`\> + +#### Defined in + +src/utils/index.ts:56 diff --git a/docs/modules/utils_error.md b/docs/modules/utils_error.md new file mode 100644 index 0000000..e111b6b --- /dev/null +++ b/docs/modules/utils_error.md @@ -0,0 +1,12 @@ +[videodb](../README.md) / [Exports](../modules.md) / utils/error + +# Module: utils/error + +## Table of contents + +### Classes + +- [AuthenticationError](../classes/utils_error.AuthenticationError.md) +- [InvalidRequestError](../classes/utils_error.InvalidRequestError.md) +- [VdbBaseError](../classes/utils_error.VdbBaseError.md) +- [VideodbError](../classes/utils_error.VideodbError.md) diff --git a/docs/modules/utils_httpClient.md b/docs/modules/utils_httpClient.md new file mode 100644 index 0000000..ab2f1fc --- /dev/null +++ b/docs/modules/utils_httpClient.md @@ -0,0 +1,9 @@ +[videodb](../README.md) / [Exports](../modules.md) / utils/httpClient + +# Module: utils/httpClient + +## Table of contents + +### Classes + +- [HttpClient](../classes/utils_httpClient.HttpClient.md) diff --git a/docs/modules/utils_job.md b/docs/modules/utils_job.md new file mode 100644 index 0000000..cc36a31 --- /dev/null +++ b/docs/modules/utils_job.md @@ -0,0 +1,12 @@ +[videodb](../README.md) / [Exports](../modules.md) / utils/job + +# Module: utils/job + +## Table of contents + +### Classes + +- [IndexJob](../classes/utils_job.IndexJob.md) +- [Job](../classes/utils_job.Job.md) +- [TranscriptJob](../classes/utils_job.TranscriptJob.md) +- [UploadJob](../classes/utils_job.UploadJob.md) diff --git a/docs/modules/utils_upload.md b/docs/modules/utils_upload.md new file mode 100644 index 0000000..9ce0838 --- /dev/null +++ b/docs/modules/utils_upload.md @@ -0,0 +1,65 @@ +[videodb](../README.md) / [Exports](../modules.md) / utils/upload + +# Module: utils/upload + +## Table of contents + +### Functions + +- [getUploadUrl](utils_upload.md#getuploadurl) +- [uploadToServer](utils_upload.md#uploadtoserver) + +## Functions + +### getUploadUrl + +▸ **getUploadUrl**(`http`, `collectionId`): `Promise`\<`string`\> + +Get an upload URL. Use this to upload your video to +VideoDB's storage. + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `http` | [`HttpClient`](../classes/utils_httpClient.HttpClient.md) | +| `collectionId` | `string` | + +#### Returns + +`Promise`\<`string`\> + +A URL that can be used to upload a video. +The uploaded video will be available on the same URL + +**`See`** + +This won't save directly save your +video to the database. Call uploadVideoByUrl once +with the returned URL for the video to be saved. + +#### Defined in + +src/utils/upload.ts:21 + +___ + +### uploadToServer + +▸ **uploadToServer**(`http`, `collectionId`, `data`): `Promise`\<`undefined` \| [`UploadJob`](../classes/utils_job.UploadJob.md)\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `http` | [`HttpClient`](../classes/utils_httpClient.HttpClient.md) | +| `collectionId` | `string` | +| `data` | [`UploadConfig`](types_collection.md#uploadconfig) | + +#### Returns + +`Promise`\<`undefined` \| [`UploadJob`](../classes/utils_job.UploadJob.md)\> + +#### Defined in + +src/utils/upload.ts:38 diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 0000000..04ad6ea --- /dev/null +++ b/jest.config.js @@ -0,0 +1,18 @@ +module.exports = { + testEnvironment: 'node', + testMatch: ['**/test/**/*.spec.ts'], + collectCoverageFrom: [ + '<rootDir>/src/**/*.ts', + '!<rootDir>/src/types/**/*.ts', + ], + coverageReporters: ['text', 'text-summary'], + transform: { + '^.+\\.[tj]sx?$': [ + 'ts-jest', + { + diagnostics: false, + isolatedModules: true, + }, + ], + }, +}; diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..f19681b --- /dev/null +++ b/package-lock.json @@ -0,0 +1,5933 @@ +{ + "name": "@spext/videodb", + "version": "0.0.9", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@spext/videodb", + "version": "0.0.9", + "license": "Apache-2.0", + "dependencies": { + "axios": "^1.6.2", + "form-data": "^4.0.0", + "lodash": "^4.17.21" + }, + "devDependencies": { + "@types/jest": "^29.5.11", + "@types/lodash": "^4.14.202", + "@types/node": "^20.10.3", + "@typescript-eslint/eslint-plugin": "^6.13.2", + "@typescript-eslint/parser": "^6.13.2", + "eslint": "^8.55.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-node": "^11.1.0", + "eslint-plugin-prettier": "^5.0.1", + "eslint-plugin-tsdoc": "^0.2.17", + "husky": "^8.0.3", + "jest": "^29.7.0", + "prettier": "^3.1.0", + "ts-jest": "^29.1.1", + "ts-node": "^10.9.1", + "tsc-alias": "^1.8.8", + "tsconfig-paths": "^4.2.0", + "typedoc": "^0.25.4", + "typedoc-plugin-markdown": "^3.17.1", + "typescript": "^5.3.2" + } + }, + "node_modules/@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", + "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", + "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.23.4", + "chalk": "^2.4.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/code-frame/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/code-frame/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/code-frame/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/code-frame/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "node_modules/@babel/code-frame/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@babel/code-frame/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/code-frame/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.5.tgz", + "integrity": "sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.5.tgz", + "integrity": "sha512-Cwc2XjUrG4ilcfOw4wBAK+enbdgwAcAJCfGUItPBKR7Mjw4aEfAFYrLxeRp4jWgtNIKn3n2AlBOfwwafl+42/g==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.23.5", + "@babel/generator": "^7.23.5", + "@babel/helper-compilation-targets": "^7.22.15", + "@babel/helper-module-transforms": "^7.23.3", + "@babel/helpers": "^7.23.5", + "@babel/parser": "^7.23.5", + "@babel/template": "^7.22.15", + "@babel/traverse": "^7.23.5", + "@babel/types": "^7.23.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/generator": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.5.tgz", + "integrity": "sha512-BPssCHrBD+0YrxviOa3QzpqwhNIXKEtOa2jQrm4FlmkC2apYgRnQcmPWiGZDlGxiNtltnUFolMe8497Esry+jA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.23.5", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz", + "integrity": "sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.22.9", + "@babel/helper-validator-option": "^7.22.15", + "browserslist": "^4.21.9", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", + "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", + "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", + "dev": true, + "dependencies": { + "@babel/template": "^7.22.15", + "@babel/types": "^7.23.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", + "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz", + "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-module-imports": "^7.22.15", + "@babel/helper-simple-access": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/helper-validator-identifier": "^7.22.20" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", + "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", + "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", + "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz", + "integrity": "sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", + "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", + "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.5.tgz", + "integrity": "sha512-oO7us8FzTEsG3U6ag9MfdF1iA/7Z6dz+MtFhifZk8C8o453rGJFFWUP1t+ULM9TUIAzC9uxXEiXjOiVMyd7QPg==", + "dev": true, + "dependencies": { + "@babel/template": "^7.22.15", + "@babel/traverse": "^7.23.5", + "@babel/types": "^7.23.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.23.4.tgz", + "integrity": "sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.22.20", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/highlight/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "node_modules/@babel/highlight/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@babel/highlight/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/parser": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.5.tgz", + "integrity": "sha512-hOOqoiNXrmGdFbhgCzu6GiURxUgM27Xwd/aPuu8RfHEZPBzL1Z54okAHAQjXfcQNwvrlkAmAp4SlRTZ45vlthQ==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.23.3.tgz", + "integrity": "sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.23.3.tgz", + "integrity": "sha512-9EiNjVJOMwCO+43TqoTrgQ8jMwcAd0sWyXi9RPfIsLTj4R2MADDDQXELhffaUx/uJv2AYcxBgPwH6j4TIA4ytQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", + "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.22.13", + "@babel/parser": "^7.22.15", + "@babel/types": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.5.tgz", + "integrity": "sha512-czx7Xy5a6sapWWRx61m1Ke1Ra4vczu1mCTtJam5zRTBOonfdJ+S/B6HYmGYu3fJtr8GGET3si6IhgWVBhJ/m8w==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.23.5", + "@babel/generator": "^7.23.5", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/parser": "^7.23.5", + "@babel/types": "^7.23.5", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse/node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/types": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.5.tgz", + "integrity": "sha512-ON5kSOJwVO6xXVRTvOI0eOnWe7VdUcIpsovGo9U/Br4Ie4UVFQTboO2cYnDhAGU6Fp+UxSiT+pMft0SMHfuq6w==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.23.4", + "@babel/helper-validator-identifier": "^7.22.20", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", + "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/js": { + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.55.0.tgz", + "integrity": "sha512-qQfo2mxH5yVom1kacMtZZJFVdW+E70mqHMJvVg6WTLo+VBuQJ4TojZlfWBjK0ve5BdEeNAVxOsl/nvNMpJOaJA==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.13", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.13.tgz", + "integrity": "sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ==", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^2.0.1", + "debug": "^4.1.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz", + "integrity": "sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==", + "dev": true + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", + "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/core": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", + "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/reporters": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.7.0", + "jest-config": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-resolve-dependencies": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "jest-watcher": "^29.7.0", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/environment": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", + "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", + "dev": true, + "dependencies": { + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", + "dev": true, + "dependencies": { + "expect": "^29.7.0", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", + "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", + "dev": true, + "dependencies": { + "jest-get-type": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/globals": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", + "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/types": "^29.6.3", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/reporters": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", + "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", + "dev": true, + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^6.0.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/schemas": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dev": true, + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", + "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.18", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", + "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", + "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", + "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/types": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", + "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.20", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz", + "integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@microsoft/tsdoc": { + "version": "0.14.2", + "resolved": "https://registry.npmjs.org/@microsoft/tsdoc/-/tsdoc-0.14.2.tgz", + "integrity": "sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==", + "dev": true + }, + "node_modules/@microsoft/tsdoc-config": { + "version": "0.16.2", + "resolved": "https://registry.npmjs.org/@microsoft/tsdoc-config/-/tsdoc-config-0.16.2.tgz", + "integrity": "sha512-OGiIzzoBLgWWR0UdRJX98oYO+XKGf7tiK4Zk6tQ/E4IJqGCe7dvkTvgDZV5cFJUzLGDOjeAXrnZoA6QkVySuxw==", + "dev": true, + "dependencies": { + "@microsoft/tsdoc": "0.14.2", + "ajv": "~6.12.6", + "jju": "~1.4.0", + "resolve": "~1.19.0" + } + }, + "node_modules/@microsoft/tsdoc-config/node_modules/resolve": { + "version": "1.19.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.19.0.tgz", + "integrity": "sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==", + "dev": true, + "dependencies": { + "is-core-module": "^2.1.0", + "path-parse": "^1.0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@pkgr/utils": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/@pkgr/utils/-/utils-2.4.2.tgz", + "integrity": "sha512-POgTXhjrTfbTV63DiFXav4lBHiICLKKwDeaKn9Nphwj7WH6m0hMMCaJkMyRWjgtPFyRKRVoMXXjczsTQRDEhYw==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "fast-glob": "^3.3.0", + "is-glob": "^4.0.3", + "open": "^9.1.0", + "picocolors": "^1.0.0", + "tslib": "^2.6.0" + }, + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", + "dev": true + }, + "node_modules/@sinonjs/commons": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.0.tgz", + "integrity": "sha512-jXBtWAF4vmdNmZgD5FoKsVLv3rPgDnLgPbU84LIJ3otV44vJlDRokVng5v8NFJdCf/da9legHcKaRuZs4L7faA==", + "dev": true, + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^3.0.0" + } + }, + "node_modules/@tsconfig/node10": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", + "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", + "dev": true + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "dev": true + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "dev": true + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", + "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", + "dev": true + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.6.7", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.7.tgz", + "integrity": "sha512-6Sfsq+EaaLrw4RmdFWE9Onp63TOUue71AWb4Gpa6JxzgTYtimbM086WnYTy2U67AofR++QKCo08ZP6pwx8YFHQ==", + "dev": true, + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.20.4", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.4.tgz", + "integrity": "sha512-mSM/iKUk5fDDrEV/e83qY+Cr3I1+Q3qqTuEn++HAWYjEa1+NxZr6CNrcJGf2ZTnq4HoFGC3zaTPZTobCzCFukA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.20.7" + } + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.9", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", + "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "29.5.11", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.11.tgz", + "integrity": "sha512-S2mHmYIVe13vrm6q4kN6fLYYAka15ALQki/vgDC3mIukEOx8WJlv0kQPM+d4w8Gp6u0uSdKND04IlTXBv0rwnQ==", + "dev": true, + "dependencies": { + "expect": "^29.0.0", + "pretty-format": "^29.0.0" + } + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true + }, + "node_modules/@types/lodash": { + "version": "4.14.202", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.202.tgz", + "integrity": "sha512-OvlIYQK9tNneDlS0VN54LLd5uiPCBOp7gS5Z0f1mjoJYBrtStzgmJBxONW3U6OZqdtNzZPmn9BS/7WI7BFFcFQ==", + "dev": true + }, + "node_modules/@types/node": { + "version": "20.10.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.3.tgz", + "integrity": "sha512-XJavIpZqiXID5Yxnxv3RUDKTN5b81ddNC3ecsA0SoFXz/QU8OGBwZGMomiq0zw+uuqbL/krztv/DINAQ/EV4gg==", + "dev": true, + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "node_modules/@types/semver": { + "version": "7.5.6", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.6.tgz", + "integrity": "sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==", + "dev": true + }, + "node_modules/@types/stack-utils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "dev": true + }, + "node_modules/@types/yargs": { + "version": "17.0.32", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz", + "integrity": "sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==", + "dev": true, + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "6.13.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.13.2.tgz", + "integrity": "sha512-3+9OGAWHhk4O1LlcwLBONbdXsAhLjyCFogJY/cWy2lxdVJ2JrcTF2pTGMaLl2AE7U1l31n8Py4a8bx5DLf/0dQ==", + "dev": true, + "dependencies": { + "@eslint-community/regexpp": "^4.5.1", + "@typescript-eslint/scope-manager": "6.13.2", + "@typescript-eslint/type-utils": "6.13.2", + "@typescript-eslint/utils": "6.13.2", + "@typescript-eslint/visitor-keys": "6.13.2", + "debug": "^4.3.4", + "graphemer": "^1.4.0", + "ignore": "^5.2.4", + "natural-compare": "^1.4.0", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^6.0.0 || ^6.0.0-alpha", + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "6.13.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.13.2.tgz", + "integrity": "sha512-MUkcC+7Wt/QOGeVlM8aGGJZy1XV5YKjTpq9jK6r6/iLsGXhBVaGP5N0UYvFsu9BFlSpwY9kMretzdBH01rkRXg==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "6.13.2", + "@typescript-eslint/types": "6.13.2", + "@typescript-eslint/typescript-estree": "6.13.2", + "@typescript-eslint/visitor-keys": "6.13.2", + "debug": "^4.3.4" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "6.13.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.13.2.tgz", + "integrity": "sha512-CXQA0xo7z6x13FeDYCgBkjWzNqzBn8RXaE3QVQVIUm74fWJLkJkaHmHdKStrxQllGh6Q4eUGyNpMe0b1hMkXFA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.13.2", + "@typescript-eslint/visitor-keys": "6.13.2" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "6.13.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.13.2.tgz", + "integrity": "sha512-Qr6ssS1GFongzH2qfnWKkAQmMUyZSyOr0W54nZNU1MDfo+U4Mv3XveeLZzadc/yq8iYhQZHYT+eoXJqnACM1tw==", + "dev": true, + "dependencies": { + "@typescript-eslint/typescript-estree": "6.13.2", + "@typescript-eslint/utils": "6.13.2", + "debug": "^4.3.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "6.13.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.13.2.tgz", + "integrity": "sha512-7sxbQ+EMRubQc3wTfTsycgYpSujyVbI1xw+3UMRUcrhSy+pN09y/lWzeKDbvhoqcRbHdc+APLs/PWYi/cisLPg==", + "dev": true, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "6.13.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.13.2.tgz", + "integrity": "sha512-SuD8YLQv6WHnOEtKv8D6HZUzOub855cfPnPMKvdM/Bh1plv1f7Q/0iFUDLKKlxHcEstQnaUU4QZskgQq74t+3w==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.13.2", + "@typescript-eslint/visitor-keys": "6.13.2", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "6.13.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.13.2.tgz", + "integrity": "sha512-b9Ptq4eAZUym4idijCRzl61oPCwwREcfDI8xGk751Vhzig5fFZR9CyzDz4Sp/nxSLBYxUPyh4QdIDqWykFhNmQ==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@types/json-schema": "^7.0.12", + "@types/semver": "^7.5.0", + "@typescript-eslint/scope-manager": "6.13.2", + "@typescript-eslint/types": "6.13.2", + "@typescript-eslint/typescript-estree": "6.13.2", + "semver": "^7.5.4" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "6.13.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.13.2.tgz", + "integrity": "sha512-OGznFs0eAQXJsp+xSd6k/O1UbFi/K/L7WjqeRoFE7vadjAF9y0uppXhYNQNEqygjou782maGClOoZwPqF0Drlw==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.13.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "dev": true + }, + "node_modules/acorn": { + "version": "8.11.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz", + "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.3.1", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.1.tgz", + "integrity": "sha512-TgUZgYvqZprrl7YldZNoa9OciCAyZR+Ejm9eXzKCmjsF5IKp/wgQ7Z/ZpjpGTIUPwrHQIcYeI8qDh4PsEwxMbw==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-escapes/node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-sequence-parser": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ansi-sequence-parser/-/ansi-sequence-parser-1.1.1.tgz", + "integrity": "sha512-vJXt3yiaUL4UU546s3rPXlsry/RnM730G1+HkpKE012AN0sx1eOrxSu95oKDIonskeLTijMgqWZ3uDEe3NFvyg==", + "dev": true + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "node_modules/axios": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.2.tgz", + "integrity": "sha512-7i24Ri4pmDRfJTR7LDBhsOTtcm+9kjX5WiY1X3wIisx6G9So3pfMkEiU7emUBe46oceVImccTEM3k6C5dbVW8A==", + "dependencies": { + "follow-redirects": "^1.15.0", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/babel-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", + "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", + "dev": true, + "dependencies": { + "@jest/transform": "^29.7.0", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.6.3", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", + "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", + "dev": true, + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", + "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", + "dev": true, + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-top-level-await": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-jest": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", + "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", + "dev": true, + "dependencies": { + "babel-plugin-jest-hoist": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/big-integer": { + "version": "1.6.52", + "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.52.tgz", + "integrity": "sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==", + "dev": true, + "engines": { + "node": ">=0.6" + } + }, + "node_modules/binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/bplist-parser": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.2.0.tgz", + "integrity": "sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw==", + "dev": true, + "dependencies": { + "big-integer": "^1.6.44" + }, + "engines": { + "node": ">= 5.10.0" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.22.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.2.tgz", + "integrity": "sha512-0UgcrvQmBDvZHFGdYUehrCNIazki7/lUP3kkoi/r3YB2amZbFM9J43ZRkJTXBUZK4gmx56+Sqk9+Vs9mwZx9+A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001565", + "electron-to-chromium": "^1.4.601", + "node-releases": "^2.0.14", + "update-browserslist-db": "^1.0.13" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bs-logger": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "dependencies": { + "fast-json-stable-stringify": "2.x" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "node_modules/bundle-name": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-3.0.0.tgz", + "integrity": "sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw==", + "dev": true, + "dependencies": { + "run-applescript": "^5.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001566", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001566.tgz", + "integrity": "sha512-ggIhCsTxmITBAMmK8yZjEhCO5/47jKXPu6Dha/wuCS4JePVL+3uiDEBuhu2aIoT+bqTOR8L76Ip1ARL9xYsEJA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chokidar/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/ci-info": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "engines": { + "node": ">=8" + } + }, + "node_modules/cjs-module-lexer": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz", + "integrity": "sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==", + "dev": true + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true, + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", + "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", + "dev": true + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", + "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", + "dev": true, + "engines": { + "node": "^12.20.0 || >=14" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + }, + "node_modules/create-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", + "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "prompts": "^2.0.1" + }, + "bin": { + "create-jest": "bin/create-jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/dedent": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.1.tgz", + "integrity": "sha512-+LxW+KLWxu3HW3M2w2ympwtqPrqYRzU8fqi6Fhd18fBALe15blJPI/I4+UHveMVG6lJqB4JNd4UG0S5cnVHwIg==", + "dev": true, + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/default-browser": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-4.0.0.tgz", + "integrity": "sha512-wX5pXO1+BrhMkSbROFsyxUm0i/cJEScyNhA4PPxc41ICuv05ZZB/MX28s8aZx6xjmatvebIapF6hLEKEcpneUA==", + "dev": true, + "dependencies": { + "bundle-name": "^3.0.0", + "default-browser-id": "^3.0.0", + "execa": "^7.1.1", + "titleize": "^3.0.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser-id": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-3.0.0.tgz", + "integrity": "sha512-OZ1y3y0SqSICtE8DE4S8YOE9UZOJ8wO16fKWVP5J1Qz42kV9jcnMVFrEE/noXb/ss3Q4pZIH79kxofzyNNtUNA==", + "dev": true, + "dependencies": { + "bplist-parser": "^0.2.0", + "untildify": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser/node_modules/execa": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-7.2.0.tgz", + "integrity": "sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.1", + "human-signals": "^4.3.0", + "is-stream": "^3.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^5.1.0", + "onetime": "^6.0.0", + "signal-exit": "^3.0.7", + "strip-final-newline": "^3.0.0" + }, + "engines": { + "node": "^14.18.0 || ^16.14.0 || >=18.0.0" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/default-browser/node_modules/human-signals": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz", + "integrity": "sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==", + "dev": true, + "engines": { + "node": ">=14.18.0" + } + }, + "node_modules/default-browser/node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser/node_modules/mimic-fn": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", + "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser/node_modules/npm-run-path": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz", + "integrity": "sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==", + "dev": true, + "dependencies": { + "path-key": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser/node_modules/onetime": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", + "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", + "dev": true, + "dependencies": { + "mimic-fn": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser/node_modules/path-key": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser/node_modules/strip-final-newline": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", + "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/define-lazy-prop": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", + "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/diff-sequences": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.4.605", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.605.tgz", + "integrity": "sha512-V52j+P5z6cdRqTjPR/bYNxx7ETCHIkm5VIGuyCy3CMrfSnbEpIlLnk5oHmZo7gYvDfh2TfHeanB6rawyQ23ktg==", + "dev": true + }, + "node_modules/emittery": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "8.55.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.55.0.tgz", + "integrity": "sha512-iyUUAM0PCKj5QpwGfmCAG9XXbZCWsqP/eWAWrG/W0umvjuLRBECwSFdt+rCntju0xEH7teIABPwXpahftIaTdA==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.55.0", + "@humanwhocodes/config-array": "^0.11.13", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-config-prettier": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", + "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==", + "dev": true, + "bin": { + "eslint-config-prettier": "bin/cli.js" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, + "node_modules/eslint-plugin-es": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-es/-/eslint-plugin-es-3.0.1.tgz", + "integrity": "sha512-GUmAsJaN4Fc7Gbtl8uOBlayo2DqhwWvEzykMHSCZHU3XdJ+NSzzZcVhXh3VxX5icqQ+oQdIEawXX8xkR3mIFmQ==", + "dev": true, + "dependencies": { + "eslint-utils": "^2.0.0", + "regexpp": "^3.0.0" + }, + "engines": { + "node": ">=8.10.0" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + }, + "peerDependencies": { + "eslint": ">=4.19.1" + } + }, + "node_modules/eslint-plugin-node": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-11.1.0.tgz", + "integrity": "sha512-oUwtPJ1W0SKD0Tr+wqu92c5xuCeQqB3hSCHasn/ZgjFdA9iDGNkNf2Zi9ztY7X+hNuMib23LNGRm6+uN+KLE3g==", + "dev": true, + "dependencies": { + "eslint-plugin-es": "^3.0.0", + "eslint-utils": "^2.0.0", + "ignore": "^5.1.1", + "minimatch": "^3.0.4", + "resolve": "^1.10.1", + "semver": "^6.1.0" + }, + "engines": { + "node": ">=8.10.0" + }, + "peerDependencies": { + "eslint": ">=5.16.0" + } + }, + "node_modules/eslint-plugin-node/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-plugin-prettier": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.0.1.tgz", + "integrity": "sha512-m3u5RnR56asrwV/lDC4GHorlW75DsFfmUcjfCYylTUs85dBRnB7VM6xG8eCMJdeDRnppzmxZVf1GEPJvl1JmNg==", + "dev": true, + "dependencies": { + "prettier-linter-helpers": "^1.0.0", + "synckit": "^0.8.5" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/prettier" + }, + "peerDependencies": { + "@types/eslint": ">=8.0.0", + "eslint": ">=8.0.0", + "prettier": ">=3.0.0" + }, + "peerDependenciesMeta": { + "@types/eslint": { + "optional": true + }, + "eslint-config-prettier": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-tsdoc": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/eslint-plugin-tsdoc/-/eslint-plugin-tsdoc-0.2.17.tgz", + "integrity": "sha512-xRmVi7Zx44lOBuYqG8vzTXuL6IdGOeF9nHX17bjJ8+VE6fsxpdGem0/SBTmAwgYMKYB1WBkqRJVQ+n8GK041pA==", + "dev": true, + "dependencies": { + "@microsoft/tsdoc": "0.14.2", + "@microsoft/tsdoc-config": "0.16.2" + } + }, + "node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", + "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^1.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + } + }, + "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", + "dev": true, + "dependencies": { + "@jest/expect-utils": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-diff": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", + "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", + "dev": true + }, + "node_modules/fast-glob": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", + "dev": true, + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz", + "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==", + "dev": true + }, + "node_modules/follow-redirects": { + "version": "1.15.3", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz", + "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/globals": { + "version": "13.23.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.23.0.tgz", + "integrity": "sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, + "node_modules/handlebars": { + "version": "4.7.8", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz", + "integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==", + "dev": true, + "dependencies": { + "minimist": "^1.2.5", + "neo-async": "^2.6.2", + "source-map": "^0.6.1", + "wordwrap": "^1.0.0" + }, + "bin": { + "handlebars": "bin/handlebars" + }, + "engines": { + "node": ">=0.4.7" + }, + "optionalDependencies": { + "uglify-js": "^3.1.4" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/hasown": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", + "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/husky": { + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", + "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", + "dev": true, + "bin": { + "husky": "lib/bin.js" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/typicode" + } + }, + "node_modules/ignore": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.0.tgz", + "integrity": "sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-local": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "dev": true, + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-core-module": { + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", + "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", + "dev": true, + "dependencies": { + "hasown": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-docker": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", + "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", + "dev": true, + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-inside-container": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", + "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", + "dev": true, + "dependencies": { + "is-docker": "^3.0.0" + }, + "bin": { + "is-inside-container": "cli.js" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-wsl/node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "dev": true, + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.1.tgz", + "integrity": "sha512-EAMEJBsYuyyztxMxW3g7ugGPkrZsV57v0Hmv3mm1uQsmB+QnZuepg731CRaIgeUVSdmsTngOkSnauNF8p7FIhA==", + "dev": true, + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", + "dev": true, + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.6.tgz", + "integrity": "sha512-TLgnMkKg3iTDsQ9PbPTdpfAK2DzjF9mqUG7RMgcQl8oFjad8ob4laGxv5XV5U9MAfx8D6tSJiUyuAwzLicaxlg==", + "dev": true, + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", + "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", + "dev": true, + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/types": "^29.6.3", + "import-local": "^3.0.2", + "jest-cli": "^29.7.0" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", + "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", + "dev": true, + "dependencies": { + "execa": "^5.0.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", + "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^1.0.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.7.0", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0", + "pretty-format": "^29.7.0", + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-cli": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", + "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", + "dev": true, + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "create-jest": "^29.7.0", + "exit": "^0.1.2", + "import-local": "^3.0.2", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "yargs": "^17.3.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-config": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", + "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-jest": "^29.7.0", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@types/node": "*", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-diff": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", + "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.6.3", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-docblock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", + "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", + "dev": true, + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", + "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "jest-util": "^29.7.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-environment-node": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", + "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", + "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", + "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-leak-detector": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", + "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", + "dev": true, + "dependencies": { + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", + "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", + "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-mock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", + "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", + "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", + "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", + "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", + "dev": true, + "dependencies": { + "jest-regex-util": "^29.6.3", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runner": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", + "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/environment": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-leak-detector": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-resolve": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-util": "^29.7.0", + "jest-watcher": "^29.7.0", + "jest-worker": "^29.7.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runtime": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", + "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/globals": "^29.7.0", + "@jest/source-map": "^29.6.3", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", + "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "natural-compare": "^1.4.0", + "pretty-format": "^29.7.0", + "semver": "^7.5.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", + "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", + "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "leven": "^3.1.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-watcher": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", + "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "jest-util": "^29.7.0", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", + "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", + "dev": true, + "dependencies": { + "@types/node": "*", + "jest-util": "^29.7.0", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/jju": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/jju/-/jju-1.4.0.tgz", + "integrity": "sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==", + "dev": true + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonc-parser": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.0.tgz", + "integrity": "sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==", + "dev": true + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "node_modules/lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", + "dev": true + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/lunr": { + "version": "2.3.9", + "resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz", + "integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==", + "dev": true + }, + "node_modules/make-dir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/marked": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz", + "integrity": "sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==", + "dev": true, + "bin": { + "marked": "bin/marked.js" + }, + "engines": { + "node": ">= 12" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/mylas": { + "version": "2.1.13", + "resolved": "https://registry.npmjs.org/mylas/-/mylas-2.1.13.tgz", + "integrity": "sha512-+MrqnJRtxdF+xngFfUUkIMQrUUL0KsxbADUkn23Z/4ibGg192Q+z+CQyiYwvWTsYjJygmMR8+w3ZDa98Zh6ESg==", + "dev": true, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/raouldeheer" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true + }, + "node_modules/node-releases": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", + "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==", + "dev": true + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/open": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/open/-/open-9.1.0.tgz", + "integrity": "sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg==", + "dev": true, + "dependencies": { + "default-browser": "^4.0.0", + "define-lazy-prop": "^3.0.0", + "is-inside-container": "^1.0.0", + "is-wsl": "^2.2.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/optionator": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", + "dev": true, + "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pirates": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pkg-dir/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/plimit-lit": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/plimit-lit/-/plimit-lit-1.6.1.tgz", + "integrity": "sha512-B7+VDyb8Tl6oMJT9oSO2CW8XC/T4UcJGrwOVoNGwOQsQYhlpfajmrMj5xeejqaASq3V/EqThyOeATEOMuSEXiA==", + "dev": true, + "dependencies": { + "queue-lit": "^1.5.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.0.tgz", + "integrity": "sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==", + "dev": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/prettier-linter-helpers": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", + "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", + "dev": true, + "dependencies": { + "fast-diff": "^1.1.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/pretty-format": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/pure-rand": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.0.4.tgz", + "integrity": "sha512-LA0Y9kxMYv47GIPJy6MI84fqTd2HmYZI83W/kM/SkKfDlajnZYfmXFTxkbY+xSBPkLJxltMa9hIkmdc29eguMA==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ] + }, + "node_modules/queue-lit": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/queue-lit/-/queue-lit-1.5.2.tgz", + "integrity": "sha512-tLc36IOPeMAubu8BkW8YDBV+WyIgKlYU7zUNs0J5Vk9skSZ4JfGlPOqplP0aHdfv7HL0B2Pg6nwiq60Qc6M2Hw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/regexpp": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", + "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.8", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", + "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "dev": true, + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-cwd/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/resolve.exports": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", + "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/run-applescript": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-5.0.0.tgz", + "integrity": "sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==", + "dev": true, + "dependencies": { + "execa": "^5.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/shiki": { + "version": "0.14.7", + "resolved": "https://registry.npmjs.org/shiki/-/shiki-0.14.7.tgz", + "integrity": "sha512-dNPAPrxSc87ua2sKJ3H5dQ/6ZaY8RNnaAqK+t0eG7p0Soi2ydiqbGOTaZCqaYvA/uZYfS1LJnemt3Q+mSfcPCg==", + "dev": true, + "dependencies": { + "ansi-sequence-parser": "^1.1.0", + "jsonc-parser": "^3.2.0", + "vscode-oniguruma": "^1.7.0", + "vscode-textmate": "^8.0.0" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/stack-utils/node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/synckit": { + "version": "0.8.6", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.6.tgz", + "integrity": "sha512-laHF2savN6sMeHCjLRkheIU4wo3Zg9Ln5YOjOo7sZ5dVQW8yF5pPE5SIw1dsPhq3TRp1jisKRCdPhfs/1WMqDA==", + "dev": true, + "dependencies": { + "@pkgr/utils": "^2.4.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true + }, + "node_modules/titleize": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/titleize/-/titleize-3.0.0.tgz", + "integrity": "sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/ts-api-utils": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.3.tgz", + "integrity": "sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==", + "dev": true, + "engines": { + "node": ">=16.13.0" + }, + "peerDependencies": { + "typescript": ">=4.2.0" + } + }, + "node_modules/ts-jest": { + "version": "29.1.1", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.1.tgz", + "integrity": "sha512-D6xjnnbP17cC85nliwGiL+tpoKN0StpgE0TeOjXQTU6MVCfsB4v7aW05CgQ/1OywGb0x/oy9hHFnN+sczTiRaA==", + "dev": true, + "dependencies": { + "bs-logger": "0.x", + "fast-json-stable-stringify": "2.x", + "jest-util": "^29.0.0", + "json5": "^2.2.3", + "lodash.memoize": "4.x", + "make-error": "1.x", + "semver": "^7.5.3", + "yargs-parser": "^21.0.1" + }, + "bin": { + "ts-jest": "cli.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": ">=7.0.0-beta.0 <8", + "@jest/types": "^29.0.0", + "babel-jest": "^29.0.0", + "jest": "^29.0.0", + "typescript": ">=4.3 <6" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "@jest/types": { + "optional": true + }, + "babel-jest": { + "optional": true + }, + "esbuild": { + "optional": true + } + } + }, + "node_modules/ts-node": { + "version": "10.9.1", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", + "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", + "dev": true, + "dependencies": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, + "node_modules/tsc-alias": { + "version": "1.8.8", + "resolved": "https://registry.npmjs.org/tsc-alias/-/tsc-alias-1.8.8.tgz", + "integrity": "sha512-OYUOd2wl0H858NvABWr/BoSKNERw3N9GTi3rHPK8Iv4O1UyUXIrTTOAZNHsjlVpXFOhpJBVARI1s+rzwLivN3Q==", + "dev": true, + "dependencies": { + "chokidar": "^3.5.3", + "commander": "^9.0.0", + "globby": "^11.0.4", + "mylas": "^2.1.9", + "normalize-path": "^3.0.0", + "plimit-lit": "^1.2.6" + }, + "bin": { + "tsc-alias": "dist/bin/index.js" + } + }, + "node_modules/tsconfig-paths": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-4.2.0.tgz", + "integrity": "sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==", + "dev": true, + "dependencies": { + "json5": "^2.2.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tsconfig-paths/node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/tslib": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", + "dev": true + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typedoc": { + "version": "0.25.4", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.25.4.tgz", + "integrity": "sha512-Du9ImmpBCw54bX275yJrxPVnjdIyJO/84co0/L9mwe0R3G4FSR6rQ09AlXVRvZEGMUg09+z/usc8mgygQ1aidA==", + "dev": true, + "dependencies": { + "lunr": "^2.3.9", + "marked": "^4.3.0", + "minimatch": "^9.0.3", + "shiki": "^0.14.1" + }, + "bin": { + "typedoc": "bin/typedoc" + }, + "engines": { + "node": ">= 16" + }, + "peerDependencies": { + "typescript": "4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x || 5.1.x || 5.2.x || 5.3.x" + } + }, + "node_modules/typedoc-plugin-markdown": { + "version": "3.17.1", + "resolved": "https://registry.npmjs.org/typedoc-plugin-markdown/-/typedoc-plugin-markdown-3.17.1.tgz", + "integrity": "sha512-QzdU3fj0Kzw2XSdoL15ExLASt2WPqD7FbLeaqwT70+XjKyTshBnUlQA5nNREO1C2P8Uen0CDjsBLMsCQ+zd0lw==", + "dev": true, + "dependencies": { + "handlebars": "^4.7.7" + }, + "peerDependencies": { + "typedoc": ">=0.24.0" + } + }, + "node_modules/typedoc/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/typedoc/node_modules/minimatch": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/typescript": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.2.tgz", + "integrity": "sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/uglify-js": { + "version": "3.17.4", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz", + "integrity": "sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==", + "dev": true, + "optional": true, + "bin": { + "uglifyjs": "bin/uglifyjs" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, + "node_modules/untildify": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", + "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.0.13", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", + "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "dev": true + }, + "node_modules/v8-to-istanbul": { + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.2.0.tgz", + "integrity": "sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^2.0.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/vscode-oniguruma": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/vscode-oniguruma/-/vscode-oniguruma-1.7.0.tgz", + "integrity": "sha512-L9WMGRfrjOhgHSdOYgCt/yRMsXzLDJSL7BPrOZt73gU0iWO4mpqzqQzOz5srxqTvMBaR0XZTSrVWo4j55Rc6cA==", + "dev": true + }, + "node_modules/vscode-textmate": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/vscode-textmate/-/vscode-textmate-8.0.0.tgz", + "integrity": "sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg==", + "dev": true + }, + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", + "dev": true + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "node_modules/write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..83a4294 --- /dev/null +++ b/package.json @@ -0,0 +1,69 @@ +{ + "name": "videodb", + "version": "0.0.2", + "description": "A NodeJS wrapper for VideoDB's API written in TypeScript", + "main": "dist/index.js", + "types": "dist/index.d.ts", + "files": [ + "dist" + ], + "scripts": { + "build": "tsc --project tsconfig.build.json && tsc-alias -p tsconfig.build.json", + "clean": "rm -rf ./dist/", + "lint": "eslint ./src/ --fix", + "prepare": "husky install", + "test:watch": "jest --watch", + "test": "jest --coverage", + "typecheck": "tsc --noEmit", + "once": "ts-node -r tsconfig-paths/register src/index.ts", + "docs:gen": "npm run docs:del && typedoc --plugin typedoc-plugin-markdown", + "docs:del": "rm -rf ./docs", + "prepublishOnly": "npm run build" + }, + "publishConfig": { + "@Spext:registry": "https://npm.pkg.github.com" + }, + "repository": { + "type": "git", + "url": "https://github.com/video-db/videodb-node.git" + }, + "keywords": [ + "videodb", + "video-db", + "video_db", + "videodb-node" + ], + "author": "VideoDB", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/video-db/videodb-node/issues" + }, + "homepage": "https://github.com/video-db/videodb-node#readme", + "devDependencies": { + "@types/jest": "^29.5.11", + "@types/lodash": "^4.14.202", + "@types/node": "^20.10.3", + "@typescript-eslint/eslint-plugin": "^6.13.2", + "@typescript-eslint/parser": "^6.13.2", + "eslint": "^8.55.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-node": "^11.1.0", + "eslint-plugin-prettier": "^5.0.1", + "eslint-plugin-tsdoc": "^0.2.17", + "husky": "^8.0.3", + "jest": "^29.7.0", + "prettier": "^3.1.0", + "ts-jest": "^29.1.1", + "ts-node": "^10.9.1", + "tsc-alias": "^1.8.8", + "tsconfig-paths": "^4.2.0", + "typedoc": "^0.25.4", + "typedoc-plugin-markdown": "^3.17.1", + "typescript": "^5.3.2" + }, + "dependencies": { + "axios": "^1.6.2", + "form-data": "^4.0.0", + "lodash": "^4.17.21" + } +} \ No newline at end of file diff --git a/src/constants.ts b/src/constants.ts new file mode 100644 index 0000000..878f14a --- /dev/null +++ b/src/constants.ts @@ -0,0 +1,41 @@ +export const DefaultSearchType = 'semantic'; +export const DefaultIndexType = 'semantic'; + +export const SemanticSearchDefaultValues = { + resultThreshold: 50, + scoreThreshold: 0.2, + dynamicScorePercentage: 30, + namespace: 'dev', +} as const; + +export const Workflows = { + addSubtitles: 'add_subtitles', +}; + +export const ApiPath = { + collection: 'collection', + upload: 'upload', + video: 'video', + stream: 'stream', + thumbnail: 'thumbnail', + upload_url: 'upload_url', + transcription: 'transcription', + index: 'index', + search: 'search', + compile: 'compile', + workflow: 'workflow', +} as const; + +export const ResponseStatus = { + processing: 'processing', + in_progress: 'in progress', +} as const; + +export const HttpClientDefaultValues = { + max_retries: 3, + timeout: 30 * 1000, + backoff_factor: 0.1, +} as const; + +export const VIDEO_DB_API = 'https://api.videodb.io'; +export const PLAYER_URL = 'https://console.videodb.io/player'; diff --git a/src/core/collection.ts b/src/core/collection.ts new file mode 100644 index 0000000..5764dd1 --- /dev/null +++ b/src/core/collection.ts @@ -0,0 +1,115 @@ +import { ApiPath, DefaultSearchType } from '@/constants'; +import type { CollectionBase, ICollection, VideoBase } from '@/interfaces/core'; +import { SearchType } from '@/types'; +import type { FileUploadConfig, URLUploadConfig } from '@/types/collection'; +import type { GetVideos, VideoResponse } from '@/types/response'; +import { fromSnakeToCamel } from '@/utils'; +import { HttpClient } from '@/utils/httpClient'; +import { uploadToServer } from '@/utils/upload'; +import { SearchFactory } from './search'; +import { Video } from './video'; + +const { video } = ApiPath; + +/** + * The base VideoDB class + * @remarks + * The base class through which all videodb actions are possible + */ +export class Collection implements ICollection { + public meta: CollectionBase; + #vhttp: HttpClient; + + constructor(http: HttpClient, data: CollectionBase) { + this.meta = data; + this.#vhttp = http; + } + + /** + * Get all videos from the collection + * @returns A list of objects of the Video class + * @throws an error if the request fails + */ + public getVideos = async () => { + const res = await this.#vhttp.get<GetVideos>([video]); + const videos = res.data.videos; + return videos.map(vid => { + const data = fromSnakeToCamel(vid) as VideoBase; + return new Video(this.#vhttp, data); + }); + }; + + /** + * Get all the information for a specific video + * @param videoId - Unique ID of the video. + * @returns An object of the Video class + * @throws an error if the request fails + */ + public getVideo = async (videoId: string) => { + const res = await this.#vhttp.get<VideoResponse>([video, videoId]); + const data = fromSnakeToCamel(res.data) as VideoBase; + return new Video(this.#vhttp, data); + }; + + /** + * + * @param videoId - Id of the video to be deleted + * @returns A promise that resolves when delete is successful + * @throws an error if the request fails + */ + public deleteVideo = async (videoId: string) => { + return await this.#vhttp.delete<Record<string, never>>([video, videoId]); + }; + + /** + * @param filePath - absolute path to a file + * @param callbackUrl- [optional] A url that will be called once upload is finished + * @param name - [optional] Name of the file + * @param description - [optional] Description of the file + * + * @see + * Providing a callbackUrl will return undefined and not providing one + * will return a Job object (TODO: Implement proper type for this condition) + */ + public uploadFile = async (data: FileUploadConfig) => { + return uploadToServer(this.#vhttp, this.meta.id, data); + }; + + /** + * @param URL - URL of the hosted file + * @param callbackUrl- [optional] A url that will be called once upload is finished + * @param name - [optional] Name of the file + * @param description - [optional] Description of the file + * + * @see + * Providing a callbackUrl will return undefined and not providing one + * will return a Job object (TODO: Implement proper type for this condition) + */ + public uploadURL = async (data: URLUploadConfig) => { + return uploadToServer(this.#vhttp, this.meta.id, data); + }; + + /** + * @param query - Search query + * @param type - [optional] Type of search to be performed + * @param resultThreshold - [optional] Result Threshold + * @param scoreThreshold - [optional] Score Threshold + */ + public search = async ( + query: string, + type?: SearchType, + resultThreshold?: number, + scoreThreshold?: number + ) => { + const s = new SearchFactory(this.#vhttp); + const searchFunc = s.getSearch(type ?? DefaultSearchType); + + const results = await searchFunc.searchInsideCollection({ + collectionId: this.meta.id, + query: query, + resultThreshold: resultThreshold, + scoreThreshold: scoreThreshold, + }); + return results; + }; +} diff --git a/src/core/connection.ts b/src/core/connection.ts new file mode 100644 index 0000000..15c4800 --- /dev/null +++ b/src/core/connection.ts @@ -0,0 +1,73 @@ +import { Collection } from '@/core/collection'; +import type { CollectionBase } from '@/interfaces/core'; +import type { FileUploadConfig, URLUploadConfig } from '@/types/collection'; +import type { CollectionResponse } from '@/types/response'; +import { fromSnakeToCamel } from '@/utils'; +import { HttpClient } from '@/utils/httpClient'; +import { uploadToServer } from '@/utils/upload'; + +class VdbHttpClient extends HttpClient { + constructor(baseURL: string, apiKey: string) { + super(baseURL, apiKey); + } +} + +/** + * Initalizon precedes connection + * establishment. Is used to get the + * primary collection. + */ +export class Connection { + #vhttp: HttpClient; + constructor(baseURL: string, ApiKey: string) { + this.#vhttp = new VdbHttpClient(baseURL, ApiKey); + } + + /** + * Get an instance of the Collection class + * @param id - [Optional] ID of the collection + * @returns + * If ID is provided, returns the corresponding collection, + * else returns the default collection. + */ + public async getCollection(id = 'default'): Promise<Collection> { + const res = await this.#vhttp.get<CollectionResponse>(['collection', id]); + const convertedData = fromSnakeToCamel(res.data) as CollectionBase; + const collection = new Collection(this.#vhttp, convertedData); + return collection; + } + + /** + * @param filePath - absolute path to a file + * @param callbackUrl- [optional] A url that will be called once upload is finished + * @param name - [optional] Name of the file + * @param description - [optional] Description of the file + * + * @see + * Providing a callbackUrl will return undefined and not providing one + * will return a Job object (TODO: Implement proper type for this condition) + */ + public uploadFile = async ( + collectionId: string = 'default', + data: FileUploadConfig + ) => { + return uploadToServer(this.#vhttp, collectionId, data); + }; + + /** + * @param URL - URL of the hosted file + * @param callbackUrl- [optional] A url that will be called once upload is finished + * @param name - [optional] Name of the file + * @param description - [optional] Description of the file + * + * @see + * Providing a callbackUrl will return undefined and not providing one + * will return a Job object (TODO: Implement proper type for this condition) + */ + public uploadURL = async ( + collectionId: string = 'default', + data: URLUploadConfig + ) => { + return uploadToServer(this.#vhttp, collectionId, data); + }; +} diff --git a/src/core/search/index.ts b/src/core/search/index.ts new file mode 100644 index 0000000..a74a922 --- /dev/null +++ b/src/core/search/index.ts @@ -0,0 +1,70 @@ +import { + ApiPath, + DefaultSearchType, + SemanticSearchDefaultValues, +} from '@/constants'; +import type { Search } from '@/interfaces/core'; +import type { SearchType } from '@/types/index'; +import type { SearchResponse } from '@/types/response'; +import type { + SemanticCollectionSearch, + SemanticVideoSearch, +} from '@/types/utils'; +import { HttpClient } from '@/utils/httpClient'; +import { SearchResult } from './searchResult'; + +const { video, search, collection } = ApiPath; + +class SemanticSearch + implements Search<SemanticVideoSearch, SemanticCollectionSearch> +{ + #vhttp: HttpClient; + constructor(http: HttpClient) { + this.#vhttp = http; + } + + private getRequestData = ( + data: SemanticVideoSearch | SemanticCollectionSearch + ) => { + return { + type: DefaultSearchType, + query: data.query, + score_threshold: + data.scoreThreshold ?? SemanticSearchDefaultValues.scoreThreshold, + result_threshold: + data.resultThreshold ?? SemanticSearchDefaultValues.resultThreshold, + }; + }; + + searchInsideVideo = async (data: SemanticVideoSearch) => { + const reqData = this.getRequestData(data); + const res = await this.#vhttp.post<SearchResponse, typeof reqData>( + [video, data.videoId, search], + reqData + ); + return new SearchResult(this.#vhttp, res.data); + }; + + searchInsideCollection = async (data: SemanticCollectionSearch) => { + const reqData = this.getRequestData(data); + const res = await this.#vhttp.post<SearchResponse, typeof reqData>( + [collection, data.collectionId, search], + reqData + ); + return new SearchResult(this.#vhttp, res.data); + }; +} + +const searchType = { + semantic: SemanticSearch, +}; + +export class SearchFactory { + private vhttp: HttpClient; + constructor(http: HttpClient) { + this.vhttp = http; + } + getSearch(type: SearchType) { + return new searchType[type](this.vhttp); + } +} diff --git a/src/core/search/searchResult.ts b/src/core/search/searchResult.ts new file mode 100644 index 0000000..8b4f1db --- /dev/null +++ b/src/core/search/searchResult.ts @@ -0,0 +1,69 @@ +import { Shot } from '@/core/shot'; +import type { GenerateStreamResponse, SearchResponse } from '@/types/response'; +import { playStream } from '@/utils'; +import { VideodbError } from '@/utils/error'; +import { HttpClient } from '@/utils/httpClient'; + +export class SearchResult { + #vhttp: HttpClient; + #searchResponse: SearchResponse; + public shots: Shot[]; + public streamUrl?: string; + public playerUrl?: string; + public collectionId: string = 'default'; + + constructor(http: HttpClient, searchResponse: SearchResponse) { + this.#vhttp = http; + this.#searchResponse = searchResponse; + this.shots = []; + this.#formatResults(); + } + + #formatResults = () => { + for (const result of this.#searchResponse.results) { + if (result.collection_id) this.collectionId = result.collection_id; + for (const doc of result.docs) { + this.shots.push( + new Shot(this.#vhttp, { + end: doc.end, + start: doc.start, + text: doc.text, + searchScore: doc.score, + videoId: result.video_id, + videoTitle: result.title, + videoLength: parseFloat(result.length), + }) + ); + } + } + }; + + compile = async () => { + if (this.streamUrl) return this.streamUrl; + else if (this.shots.length) { + const reqData = this.shots.map(shot => { + return { + video_id: shot.meta.videoId, + collection_id: this.collectionId, + shots: [[shot.meta.start, shot.meta.end]], + }; + }); + const res = await this.#vhttp.post< + GenerateStreamResponse, + typeof reqData + >(['compile'], reqData); + this.streamUrl = res.data.stream_url; + this.playerUrl = res.data.player_url; + return this.streamUrl; + } else { + throw new VideodbError('No shots found in the search result to compile'); + } + }; + + play = async () => { + if (!this.streamUrl) { + this.streamUrl = await this.compile(); + } + return playStream(this.streamUrl); + }; +} diff --git a/src/core/shot.ts b/src/core/shot.ts new file mode 100644 index 0000000..d00f5d7 --- /dev/null +++ b/src/core/shot.ts @@ -0,0 +1,37 @@ +import { ApiPath } from '@/constants'; +import type { IShot, ShotBase } from '@/interfaces/core'; +import type { GenerateStreamResponse } from '@/types/response'; +import type { Timeline } from '@/types/video'; +import { HttpClient } from '@/utils/httpClient'; + +const { video, stream } = ApiPath; + +/** + * A shot is a clip of a specific video + */ +export class Shot implements IShot { + meta: ShotBase; + #vhttp: HttpClient; + constructor(http: HttpClient, meta: ShotBase) { + this.meta = meta; + this.#vhttp = http; + } + + /** + * Get the streaming URL for the shot + * @returns A streaming URL for the shot + */ + generateStream = async () => { + const body = { + length: this.meta.videoLength, + timeline: [[this.meta.start, this.meta.end]] as Timeline, + }; + + const res = await this.#vhttp.post<GenerateStreamResponse, typeof body>( + [video, this.meta.videoId, stream], + body + ); + + return res.data.stream_url; + }; +} diff --git a/src/core/video.ts b/src/core/video.ts new file mode 100644 index 0000000..42b6c0a --- /dev/null +++ b/src/core/video.ts @@ -0,0 +1,162 @@ +import { + ApiPath, + DefaultIndexType, + DefaultSearchType, + Workflows, +} from '@/constants'; +import type { IVideo, VideoBase } from '@/interfaces/core'; +import { IndexType, SearchType } from '@/types'; +import type { GenerateStreamResponse } from '@/types/response'; +import type { Timeline, Transcript } from '@/types/video'; +import { playStream } from '@/utils'; +import { HttpClient } from '@/utils/httpClient'; +import { IndexJob, TranscriptJob } from '@/utils/job'; +import { SearchFactory } from './search'; + +const { video, stream, thumbnail, workflow } = ApiPath; + +/** + * The base Video class + * @remarks + * Use this to initialize a video stored in videoDB + */ +export class Video implements IVideo { + public meta: VideoBase; + public transcript?: Transcript; + #vhttp: HttpClient; + + /** + * Initializes a videoDB Instance + * @param http - HttpClient object + * @param data - Data needed to initialize a video instance + */ + constructor(http: HttpClient, data: VideoBase) { + this.meta = data; + this.#vhttp = http; + } + + /** + * @param query - Search query + * @param type - [optional] Type of search to be performed + * @param resultThreshold - [optional] Result Threshold + * @param scoreThreshold - [optional] Score Threshold + */ + public search = async ( + query: string, + type?: SearchType, + resultThreshold?: number, + scoreThreshold?: number + ) => { + const s = new SearchFactory(this.#vhttp); + const searchFunc = s.getSearch(type ?? DefaultSearchType); + const results = await searchFunc.searchInsideVideo({ + videoId: this.meta.id, + query: query, + resultThreshold: resultThreshold, + scoreThreshold: scoreThreshold, + }); + return results; + }; + + /** + * Returns an empty promise that resolves when the video is deleted + * @returns A promise that resolves when delete is successful + * @throws an InvalidRequestError if the request fails + */ + public delete = async () => { + return await this.#vhttp.delete<Record<string, never>>([ + video, + this.meta.id, + ]); + }; + + /** + * Generates a new streaming URL with the given timeline. + * @param timeline - Of the format [[start, end], [start, end]...] + * @returns a streaming URL + */ + public generateStream = async (timeline?: Timeline) => { + if (!timeline && this.meta.streamUrl) { + return this.meta.streamUrl; + } + + const body: { length: number; timeline?: Timeline } = { + length: Number(this.meta.length), + }; + if (timeline) body.timeline = timeline; + + const res = await this.#vhttp.post<GenerateStreamResponse, typeof body>( + [video, this.meta.id, stream], + body + ); + + return res.data.stream_url; + }; + + /** + * Gets the thumbnail of the video or generates one if it doesn't exist. + * @returns An awaited URL to the video's thumbnail + */ + public generateThumbnail = async () => { + if (this.meta.thumbnail) return this.meta.thumbnail; + const res = await this.#vhttp.get<{ thumbnail: string }>([ + video, + this.meta.id, + thumbnail, + ]); + this.meta.thumbnail = res.data.thumbnail; + return res.data.thumbnail; + }; + + /** + * Fetches the transcript of the video if it exists, generates one + * if it doesn't. + * @param forceCreate - Forces transcript generation even if it exists + * @returns A promise of - + * - If the transcript exists, an object of the type Transcript + * - If it doesn't, an instance of TranscriptJob which can be used + * to start transcript generation. + */ + public getTranscript = (forceCreate = false) => { + if (this.transcript && !forceCreate) return this.transcript; + const job = new TranscriptJob(this.#vhttp, this.meta.id, forceCreate); + return job; + }; + + /** + * Indexs the video with the given indexType + * @param indexType - The type used to index the video + * @returns an awaited boolean signifying whether the process + * was successful or not + */ + public index = (indexType?: IndexType) => { + const indexJob = new IndexJob( + this.#vhttp, + this.meta.id, + indexType ?? DefaultIndexType + ); + return indexJob; + }; + + /** + * Overlays subtitles on top of a video + * @returns an awaited stream url for subtitled overlayed video + */ + public addSubtitle = async () => { + const res = await this.#vhttp.post<GenerateStreamResponse, object>( + [video, this.meta.id, workflow], + { + type: Workflows.addSubtitles, + } + ); + return res.data.stream_url; + }; + + /** + * Generates a new playable stream URL with the given timeline. + * @returns a URL that can be opened in browser + */ + public play = () => { + return playStream(this.meta.streamUrl); + }; +} diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..e6aa2af --- /dev/null +++ b/src/index.ts @@ -0,0 +1,27 @@ +import { Connection } from '@/core/connection'; +import { AuthenticationError } from '@/utils/error'; +import { VIDEO_DB_API } from './constants'; + +/** + * Entry function for the VideoDB SDK + * @param apiKey - Your personal API Key. If you don't have one, get one from our {@link https://console.videodb.io | Console} + * @param baseURL - Server base URL. If you're not sure what this is, skip it. We'll default to our own baseURL + * @returns A Connection instance that can be used to fetch any collection + */ +function connect(apiKey?: string, baseURL = VIDEO_DB_API) { + apiKey = apiKey || process.env.VIDEO_DB_API_KEY; + if (!apiKey) { + throw new AuthenticationError( + 'No API key provided. Set an API key either as an environment variable (VIDEO_DB_API_KEY) or pass it as an argument.' + ); + } + return new Connection(baseURL, apiKey); +} + +export { Collection } from './core/collection'; +export { Video } from './core/video'; +export { Shot } from './core/shot'; +export { IndexJob, UploadJob, TranscriptJob } from './utils/job'; + +export { playStream, waitForJob } from './utils/index'; +export { connect }; diff --git a/src/interfaces/core.ts b/src/interfaces/core.ts new file mode 100644 index 0000000..abc57a4 --- /dev/null +++ b/src/interfaces/core.ts @@ -0,0 +1,92 @@ +import { SearchResult } from '@/core/search/searchResult'; +import { Video } from '@/core/video'; +import type { IndexType, SearchType } from '@/types'; +import type { FileUploadConfig, URLUploadConfig } from '@/types/collection'; +import type { StreamableURL, Timeline, Transcript } from '@/types/video'; +import { IndexJob, TranscriptJob, UploadJob } from '@/utils/job'; + +/** + * Base type for all collection objects + */ +export interface CollectionBase { + id: string; + name?: string; + description?: string; +} +/** + * Collection class interface for reference + */ +export interface ICollection { + meta: CollectionBase; + getVideos: () => Promise<Video[]>; + getVideo: (videoId: string) => Promise<Video>; + deleteVideo: (videoId: string) => Promise<object>; + uploadFile: (data: FileUploadConfig) => Promise<void | UploadJob>; + uploadURL: (data: URLUploadConfig) => Promise<void | UploadJob>; + search: (query: string, type?: SearchType) => Promise<SearchResult>; +} + +/** + * Base type for all video objects + */ +export interface VideoBase { + collectionId: string; + id: string; + length: string; + name: string; + size: string; + streamUrl: StreamableURL; + userId: string; + playerUrl: StreamableURL; + thumbnail?: string; +} + +/** + * Video class interface for reference + */ +export interface IVideo { + meta: VideoBase; + transcript?: Transcript; + generateStream: (timeline: Timeline) => Promise<string>; + play: () => string; + getTranscript: (forceCreate?: boolean) => Transcript | TranscriptJob; + index: (indexType: IndexType) => IndexJob; + search: (query: string, type?: SearchType) => Promise<SearchResult>; + generateThumbnail: () => Promise<string>; + addSubtitle: () => Promise<string>; +} + +/** + * Base type for all Shot objects + */ +export interface ShotBase { + videoId: string; + videoLength: number; + videoTitle: string; + start: number; + end: number; + text?: string; + searchScore?: number; + streamUrl?: StreamableURL; +} + +/** + * Shot class interface for reference + */ +export interface IShot { + meta: ShotBase; + /** + * Fetches the streaming Url of the shot + * @returns An awaited streaming URL + */ + generateStream: () => Promise<StreamableURL>; +} + +/** + * Search class interface for implementations of different + * search types + */ +export interface Search<V, C> { + searchInsideVideo: (data: V) => Promise<SearchResult>; + searchInsideCollection: (data: C) => Promise<SearchResult>; +} diff --git a/src/types/collection.ts b/src/types/collection.ts new file mode 100644 index 0000000..4d19113 --- /dev/null +++ b/src/types/collection.ts @@ -0,0 +1,17 @@ +export interface CommonUploadConfig { + name?: string; + description?: string; + callbackUrl?: string; +} + +export interface FileUploadConfig extends CommonUploadConfig { + filePath: string; +} + +export interface URLUploadConfig extends CommonUploadConfig { + url: string; +} + +export type UploadConfig = FileUploadConfig | URLUploadConfig; + +export type SyncUploadConfig = Omit<URLUploadConfig, 'callbackUrl'>; diff --git a/src/types/index.ts b/src/types/index.ts new file mode 100644 index 0000000..4a09efb --- /dev/null +++ b/src/types/index.ts @@ -0,0 +1,20 @@ +export enum SearchTypeValues { + semantic, +} +export type SearchType = keyof typeof SearchTypeValues; + +export enum IndexTypeValues { + semantic, +} +export type IndexType = keyof typeof IndexTypeValues; + +export type SearchConfig = { + query: string; + type?: SearchType; + resultThreshold?: number; + scoreThreshold?: number; +}; + +export type IndexConfig = { + index_type: IndexType; +}; diff --git a/src/types/response.ts b/src/types/response.ts new file mode 100644 index 0000000..03d4eb4 --- /dev/null +++ b/src/types/response.ts @@ -0,0 +1,110 @@ +/** + * All types for API responses (The API is written in + * python and sends data in snake_case and the NodeJS + * lib uses camelCase so a separation is necessary) + */ + +import { ResponseStatus } from '@/constants'; +import type { StreamableURL } from './video'; + +/** + * All error responses sent by the server are of this type + */ +export type ErrorResponse = { + message: string; + success?: boolean; + status?: string; +}; + +/** + * All sucessfull responses are wrapped by this type + * @param D - Type of the response data + * + * TODO: Fix this type after server update + */ +export type ResponseOf<D> = { + data: D; + success?: boolean; + message?: string; + status?: (typeof ResponseStatus)[keyof typeof ResponseStatus]; + request_type?: 'sync' | 'async'; + response?: ResponseOf<D>; +}; + +export type UpdateResponse = { + status: number; + message: string; + response: unknown; +}; + +export type NoDataResponse = { + message?: string; + success?: boolean; +}; + +export type VideoResponse = { + collection_id: string; + id: string; + length: string; + name: string; + size: string; + stream_url: string; + user_id: string; + player_url: string; +}; + +export type CollectionResponse = { + id: string; + name: string; + description: string; +}; + +export type TranscriptionResponse = { + output_url: string; +}; + +export type SyncJobResponse = { + output_url: string; +}; + +export type GetUploadUrl = { + upload_url: string; +}; + +export type GetVideos = { + videos: VideoResponse[]; +}; + +export type GenerateStreamResponse = { + player_url: string; + stream_url: string; +}; + +export type TranscriptResponse = { + text: string; + word_timestamps: { + end: string; + start: string; + word: string; + }[]; +}; + +export type SearchResponse = { + results: { + collection_id: string; + docs: { + end: number; + score: number; + start: number; + stream_url: string; + text: string; + }[]; + length: string; + max_score: number; + platform: string; + stream_url: StreamableURL; + thumbnail: string; + title: string; + video_id: string; + }[]; +}; diff --git a/src/types/utils.ts b/src/types/utils.ts new file mode 100644 index 0000000..0ebcc3c --- /dev/null +++ b/src/types/utils.ts @@ -0,0 +1,28 @@ +import { + AuthenticationError, + InvalidRequestError, + VideodbError, +} from '@/utils/error'; + +export type JobType = 'async' | 'sync'; + +export type JobSuccessCallback<D> = (data: D) => unknown; +export type JobErrorCallback = ( + err: VideodbError | AuthenticationError | InvalidRequestError +) => unknown; + +export type URLSeries = string[]; + +export type SemanticSearchBase = { + query: string; + resultThreshold?: number; + scoreThreshold?: number; +}; + +export type SemanticVideoSearch = { + videoId: string; +} & SemanticSearchBase; + +export type SemanticCollectionSearch = { + collectionId: string; +} & SemanticSearchBase; diff --git a/src/types/video.ts b/src/types/video.ts new file mode 100644 index 0000000..95101f2 --- /dev/null +++ b/src/types/video.ts @@ -0,0 +1,11 @@ +export type TimelineTuple = [number, number]; +export type Timeline = TimelineTuple[]; +export type Transcript = { + text: string; + wordTimestamps: { + end: number; + start: number; + word: string; + }[]; +}; +export type StreamableURL = string; diff --git a/src/utils/error.ts b/src/utils/error.ts new file mode 100644 index 0000000..4d9baf9 --- /dev/null +++ b/src/utils/error.ts @@ -0,0 +1,23 @@ +import { AxiosResponse } from 'axios'; + +export abstract class VdbBaseError extends Error {} + +export class VideodbError<T = undefined> extends VdbBaseError { + constructor(message?: string, cause?: T) { + super(`VideoDB Error: ${message}`, { cause: cause }); + } +} + +export class AuthenticationError<T = unknown> extends VdbBaseError { + constructor(cause?: T) { + super('Authentication Error: ', { cause: cause || 'Invalid API Key' }); + } +} + +export class InvalidRequestError<C = unknown> extends VdbBaseError { + public response: AxiosResponse; + constructor(response: AxiosResponse, cause?: C) { + super(`Error ${response.status}: ${response.statusText}`, { cause }); + this.response = response; + } +} diff --git a/src/utils/httpClient.ts b/src/utils/httpClient.ts new file mode 100644 index 0000000..74f34f6 --- /dev/null +++ b/src/utils/httpClient.ts @@ -0,0 +1,156 @@ +import { HttpClientDefaultValues } from '@/constants'; +import type { ErrorResponse, ResponseOf } from '@/types/response'; +import { + AuthenticationError, + InvalidRequestError, + VideodbError, +} from '@/utils/error'; +import axios, { + AxiosError, + AxiosHeaders, + AxiosInstance, + AxiosRequestConfig, + AxiosResponse, + HttpStatusCode, +} from 'axios'; + +/** + * Api initialization to make axios config + * options available to all child classes + * internally. + */ +export class HttpClient { + #db: AxiosInstance; + #baseURL: string; + #apiKey: string; + + protected constructor(baseURL: string, apiKey: string) { + this.#db = axios.create({ + baseURL, + headers: { + 'x-access-token': apiKey, + }, + timeout: HttpClientDefaultValues.timeout, + }); + this.#baseURL = baseURL; + this.#apiKey = apiKey; + } + + #makeRequest = async <R, D = undefined>( + options: AxiosRequestConfig<D> + ): Promise<ResponseOf<R>> => { + return this.#db + .request<ResponseOf<R>, AxiosResponse<ResponseOf<R>, D>, D>(options) + .then(successResponse => { + return successResponse.data; + }) + .catch( + ( + error: AxiosError<ErrorResponse | undefined, AxiosRequestConfig<D>> + ) => { + throw this.#getPlausibleError(error); + } + ); + }; + + /** + * Used for getting a human readble and usable error type + * @param error - The error recieved from the axios request + * @returns An error class instance from one of the Videodb Error types + */ + #getPlausibleError = <D>( + error: AxiosError<ErrorResponse | undefined, AxiosRequestConfig<D>> + ) => { + if (error.response) { + const errData = error.response.data; + if (error.status === HttpStatusCode.Unauthorized) { + // For now, the only reason for getting a 401 is an invalid API Key + return new AuthenticationError(); + } + return new InvalidRequestError(error.response, { + cause: errData?.message || error.message || 'Unknown cause', + }); + } else if (error.request) { + return new VideodbError('Request failed', { + cause: error.message, + }); + } else { + return new VideodbError('Unidentified Error', { + cause: error, + }); + } + }; + + public get = async <R>( + urlSeries: string[], + options?: AxiosRequestConfig<undefined> + ) => { + return await this.#makeRequest<R>({ + method: 'GET', + url: urlSeries.join('/') + '/', + ...options, + }); + }; + + public delete = async <R>( + urlSeries: string[], + options?: AxiosRequestConfig<undefined> + ) => { + return await this.#makeRequest<R>({ + method: 'DELETE', + url: urlSeries.join('/') + '/', + ...options, + }); + }; + + public post = async <R, D = undefined>( + urlSeries: string[], + data?: D, + options?: AxiosRequestConfig<D> + ) => { + return await this.#makeRequest<R, D>({ + method: 'POST', + url: urlSeries.join('/') + '/', + data, + headers: new AxiosHeaders({ + 'Content-Type': 'application/json', + ...options?.headers, + }), + ...options, + }); + }; + + public put = async <R, D = undefined>( + urlSeries: string[], + data?: D, + options?: AxiosRequestConfig<D> + ) => { + return await this.#makeRequest<R, D>({ + method: 'PUT', + url: urlSeries.join('/') + '/', + data, + headers: new AxiosHeaders({ + 'Content-Type': 'application/json', + ...options?.headers, + }), + ...options, + }); + }; + + public patch = async <R, D = undefined>( + urlSeries: string[], + data?: D, + options?: AxiosRequestConfig<D> + ) => { + return await this.#makeRequest<R, D>({ + method: 'PATCH', + url: urlSeries.join('/') + '/', + data, + headers: new AxiosHeaders({ + 'Content-Type': 'application/json', + ...options?.headers, + }), + ...options, + }); + }; +} diff --git a/src/utils/index.ts b/src/utils/index.ts new file mode 100644 index 0000000..637cd11 --- /dev/null +++ b/src/utils/index.ts @@ -0,0 +1,74 @@ +import { PLAYER_URL } from '@/constants'; +import _ from 'lodash'; +import { Job } from './job'; + +/** + * TS Interpretation of snake_case to camelCase conversion for better readability + */ +export type SnakeToCamelCase<S extends string> = + S extends `${infer T}_${infer U}` + ? `${T}${Capitalize<SnakeToCamelCase<U>>}` + : S; + +/** + * Return type for function fromSnakeToCamel + * - T = Type of the input object + */ +export type SnakeKeysToCamelCase<T> = { + [K in keyof T as SnakeToCamelCase<K & string>]: T[K] extends Array<infer U> + ? SnakeKeysToCamelCase<U>[] + : T[K] extends object + ? SnakeKeysToCamelCase<T[K]> + : T[K]; +}; + +/** + * Converts the provided snake_case object into camelCase + * @remarks + * Performs an in-depth conversion. Be careful before passing + * large objects with a lot of values. + * + * @param data - The object that needs to be converted + * @returns The provided object with all the keys converted into camelCase + * + * TODO: Implement this safely at the HttpClient level to avoid rewrites throughout the codebase + */ +export const fromSnakeToCamel = <O extends object>( + data: O +): SnakeKeysToCamelCase<O> => { + const finalData = _(data) + .mapKeys((__, k) => _.camelCase(k)) + .mapValues(v => { + if (_.isArray(v)) { + return v.map(item => fromSnakeToCamel(item)); + } else if (_.isObject(v)) { + return fromSnakeToCamel(v); + } else { + return v; + } + }) + .value() as SnakeKeysToCamelCase<O>; + return finalData; +}; + +export const playStream = (url: string) => `${PLAYER_URL}?url=${url}`; + +export const waitForJob = async (job: Job<any, any>): Promise<any> => { + return new Promise((resolve, reject) => { + job.on('success', async (data: any) => { + resolve(data); + }); + job.on('error', async (err: any) => { + reject(err); + }); + job + .start() + .then(() => { + console.log('Job started'); + }) + .catch(err => { + console.log('Job Failed'); + reject(err); + }); + }); +}; diff --git a/src/utils/job.ts b/src/utils/job.ts new file mode 100644 index 0000000..47b61d6 --- /dev/null +++ b/src/utils/job.ts @@ -0,0 +1,276 @@ +import { ApiPath, ResponseStatus } from '@/constants'; +import { Video } from '@/core/video'; +import type { VideoBase } from '@/interfaces/core'; +import type { SyncUploadConfig } from '@/types/collection'; +import type { IndexConfig, IndexType } from '@/types/index'; +import type { + NoDataResponse, + SyncJobResponse, + TranscriptResponse, + VideoResponse, +} from '@/types/response'; +import type { JobErrorCallback, JobSuccessCallback } from '@/types/utils'; +import type { Transcript } from '@/types/video'; +import { fromSnakeToCamel } from '.'; +import { + AuthenticationError, + InvalidRequestError, + VideodbError, +} from './error'; +import { HttpClient } from './httpClient'; + +const { in_progress, processing } = ResponseStatus; +const { video, transcription, collection, upload, index } = ApiPath; + +/** + * Base Job class used to create different kinds of jobs + * @remarks + * Jobs are used for long running tasks where a simple + * async call would take too long causing a timeout. + * + * @see + * This class accepts 3 type params + * - ApiResponse: The response recieved from the API on calling + */ +export abstract class Job< + ApiResponse extends object, + SdkBase, + FinalReturn = SdkBase, +> { + private _on: { + success?: JobSuccessCallback<FinalReturn>; + error?: JobErrorCallback; + } = {}; + private readonly _delayMultiplier = 2; + private readonly _maxDelay = 500000; + private currentDelaySeconds = 2000; + protected vhttp: HttpClient; + protected convertResponseToCamelCase = true; + protected jobTitle: string; + + /** + * @param http - HttpClient object + */ + constructor(http: HttpClient) { + this.vhttp = http; + this.jobTitle = 'Job'; + } + protected abstract beforeSuccess: (data: SdkBase) => FinalReturn; + public abstract start: () => Promise<void>; + + public on(option: 'success', method: JobSuccessCallback<FinalReturn>): void; + public on(option: 'error', method: JobErrorCallback): void; + public on( + option: 'success' | 'error', + method: JobSuccessCallback<FinalReturn> | JobErrorCallback + ): void { + if (option === 'success') { + this._on[option] = method as JobSuccessCallback<FinalReturn>; + } else if (option === 'error') { + this._on[option] = method as JobErrorCallback; + } + } + + private _incrementDelay(): void { + this.currentDelaySeconds = this._delayMultiplier * this.currentDelaySeconds; + } + + protected _handleError = (err: unknown) => { + if (this._on.error) { + if ( + err instanceof AuthenticationError || + err instanceof InvalidRequestError || + err instanceof VideodbError + ) + this._on.error(err); + else { + this._on.error(new VideodbError('Unknown Error', err)); + } + } else { + console.error('Unregistered Job Error', err); + } + }; + + protected _handleSuccess = (data: ApiResponse) => { + const transformedResponse = fromSnakeToCamel(data) as SdkBase; + const finalData = this.beforeSuccess(transformedResponse); + if (this._on.success) { + this._on.success(finalData); + } else { + console.log( + `${this.jobTitle} Completed but success listener wasn't registered`, + data + ); + } + }; + + /** + * Initiates a backoff-like system where we check the status + * of the job in an exponentially increasing interval. + * @param http - HttpClient instance + * @param callbackUrl - URL sent by the server to check status + * + * @returns NOTHING. Do not await this function. This will call the + * success or error listener depending on the status. + */ + protected _initiateBackoff = async (callbackUrl: string) => { + try { + const res = await this.vhttp.get<ApiResponse>([callbackUrl]); + if (res.status === in_progress || res.status === processing) { + // Job's not done + console.log( + `Backoff ${this.jobTitle}; Current delay: ${this.currentDelaySeconds}/${this._maxDelay}` + ); + if (this.currentDelaySeconds >= this._maxDelay) { + throw new VideodbError('Job timed out'); + } + setTimeout(() => { + void this._initiateBackoff(callbackUrl); + this._incrementDelay(); + }, this.currentDelaySeconds); + } else { + // If an error hasn't been thrown unitl now, the job has succeeded + // TODO: remove the ignore comment after server update + // @ts-ignore + if ('response' in res && res.response) { + this._handleSuccess(res.response.data); + } else { + this._handleSuccess(res.data); + } + } + } catch (err) { + this._handleError(err); + } + }; +} + +/** + * TranscriptJob is used to initalize a new trancsript generation call. + * + * @remarks + * Uses the base Job class to implement a backoff to get the transcript + */ +export class TranscriptJob extends Job<TranscriptResponse, Transcript> { + videoId: string; + force: boolean; + constructor(http: HttpClient, videoId: string, force = false) { + super(http); + this.videoId = videoId; + this.force = force; + this.jobTitle = 'Transcript Job'; + } + /** + * If the transcript exists, it immediately calls + * the success listener. If it doesn't exist, it + * initiates a backoff. + */ + public start = async () => { + try { + const res = await this.vhttp.get<SyncJobResponse | TranscriptResponse>([ + video, + this.videoId, + transcription, + `?force=${String(this.force)}`, + ]); + + if ('output_url' in res.data) { + void this._initiateBackoff(res.data.output_url); + } else { + this._handleSuccess(res.data); + } + } catch (err) { + this._handleError(err); + } + }; + + // Transcript job doesn't need a beforeSuccess call so simply returns the same data + protected beforeSuccess = (data: Transcript) => data; +} + +/** + * UploadJob is used to initalize a new video upload. + * + * @remarks + * Uses the base Job class to implement a backoff to get the uploaded video data. + */ +export class UploadJob extends Job<VideoResponse, VideoBase, Video> { + public uploadData: SyncUploadConfig; + public collectionId: string; + constructor(data: SyncUploadConfig, collectionId: string, http: HttpClient) { + super(http); + this.uploadData = data; + this.collectionId = collectionId; + this.jobTitle = 'Upload Job'; + } + + /** + * Fetches the callbackURL from the server and initiates a backoff + */ + public start = async () => { + try { + const res = await this.vhttp.post<SyncJobResponse, SyncUploadConfig>( + [collection, this.collectionId, upload], + this.uploadData + ); + + void this._initiateBackoff(res.data.output_url); + } catch (err) { + this._handleError(err); + } + }; + + /** + * Initializes a new video object with the returned data + * @param data - Video data returned from the API and converted to camelCase + * @returns a new Video object + */ + protected beforeSuccess = (data: VideoBase) => { + return new Video(this.vhttp, data); + }; +} + +export class IndexJob extends Job<NoDataResponse, NoDataResponse> { + videoId: string; + indexConfig: IndexConfig; + + constructor(http: HttpClient, videoId: string, indexType: IndexType) { + super(http); + this.videoId = videoId; + this.indexConfig = { + index_type: indexType, + }; + this.jobTitle = 'Index Job'; + } + + /** + * Initiates a Transcript Job. + * On sucess, it calls the index endpoint + */ + public start = async () => { + const transcriptJob = new TranscriptJob(this.vhttp, this.videoId); + transcriptJob.on('success', async () => { + const res = await this.vhttp.post<NoDataResponse, IndexConfig>( + [video, this.videoId, index], + this.indexConfig + ); + this._handleSuccess(res); + }); + transcriptJob.on('error', err => { + this._handleError(err); + }); + await transcriptJob.start(); + }; + + protected beforeSuccess = (data: NoDataResponse) => { + if (data.success) { + return { + success: data.success, + }; + } else { + return { + success: data.success, + message: data.message, + }; + } + }; +} diff --git a/src/utils/upload.ts b/src/utils/upload.ts new file mode 100644 index 0000000..ee7eeca --- /dev/null +++ b/src/utils/upload.ts @@ -0,0 +1,76 @@ +import { ApiPath } from '@/constants'; +import type { UploadConfig } from '@/types/collection'; +import type { GetUploadUrl } from '@/types/response'; +import { VideodbError } from '@/utils/error'; +import { UploadJob } from '@/utils/job'; +import FormData from 'form-data'; +import { createReadStream } from 'fs'; +import { HttpClient } from './httpClient'; + +const { upload_url, collection, upload } = ApiPath; + +/** + * Get an upload URL. Use this to upload your video to + * VideoDB's storage. + * @returns A URL that can be used to upload a video. + * The uploaded video will be available on the same URL + * @see This won't save directly save your + * video to the database. Call uploadVideoByUrl once + * with the returned URL for the video to be saved. + */ +export const getUploadUrl = async (http: HttpClient, collectionId: string) => { + const res = await http.get<GetUploadUrl>([ + collection, + collectionId, + upload_url, + ]); + const { data } = res; + return data.upload_url; +}; + +/** + * @param filePath - absolute path to a file + * @param url - a url to a pre-uploaded file + * @param callbackUrl- A url that will be called once upload is finished + * @param name - Name of the file + * @param description - Description of the file + */ +export const uploadToServer = async ( + http: HttpClient, + collectionId: string, + data: UploadConfig +) => { + let urlToUpload = ''; + if ('filePath' in data) { + const uploadUrl = await getUploadUrl(http, collectionId); + try { + const fileStream = createReadStream(data.filePath); + const formData = new FormData(); + formData.append('file', fileStream); + await http.post<unknown, FormData>([uploadUrl], formData, { + headers: formData.getHeaders(), + }); + } catch (err) { + throw new VideodbError('Upload failed, reason: ', err); + } + urlToUpload = uploadUrl; + } else { + urlToUpload = data.url; + } + + const finalData = { + url: urlToUpload, + name: data.name, + description: data.description, + callback_url: data.callbackUrl, + }; + + if (finalData.callback_url) { + await http.post<Record<string, never>, typeof finalData>( + [collection, collectionId, upload], + finalData + ); + } else { + return new UploadJob(finalData, collectionId, http); + } +}; diff --git a/test/index.spec.ts b/test/index.spec.ts new file mode 100644 index 0000000..f99f46d --- /dev/null +++ b/test/index.spec.ts @@ -0,0 +1,10 @@ +// TODO: write tests +describe('index', () => { + describe('connect', () => { + it('should return an instance of the Connection class', () => { + const message = 'Hello'; + + expect('Hello world').toMatch(message); + }); + }); +}); diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 0000000..27e9ce9 --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,6 @@ +{ + "extends": "./tsconfig.json", + "exclude": [ + "test/**/*.spec.ts", + ] +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..e451ba8 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,81 @@ +{ + "compilerOptions": { + /* Visit https://aka.ms/tsconfig.json to read more about this file */ + + /* Basic Options */ + // "incremental": true, /* Enable incremental compilation */ + "target": "ES2022", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */ + "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */ + // "lib": [], /* Specify library files to be included in the compilation. */ + // "allowJs": true, /* Allow javascript files to be compiled. */ + // "checkJs": true, /* Report errors in .js files. */ + // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */ + "declaration": true, /* Generates corresponding '.d.ts' file. */ + // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ + // "sourceMap": true, /* Generates corresponding '.map' file. */ + // "outFile": "./", /* Concatenate and emit output to single file. */ + "outDir": "dist", /* Redirect output structure to the directory. */ + // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ + // "composite": true, /* Enable project compilation */ + // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */ + // "removeComments": true, /* Do not emit comments to output. */ + // "noEmit": true, /* Do not emit outputs. */ + // "importHelpers": true, /* Import emit helpers from 'tslib'. */ + // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ + // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ + // "emitDeclarationOnly": false, + /* Strict Type-Checking Options */ + "strict": true, /* Enable all strict type-checking options. */ + "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ + "strictNullChecks": true, /* Enable strict null checks. */ + "strictFunctionTypes": true, /* Enable strict checking of function types. */ + "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */ + "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ + "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ + "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ + + /* Additional Checks */ + // "noUnusedLocals": true, /* Report errors on unused locals. */ + // "noUnusedParameters": true, /* Report errors on unused parameters. */ + // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ + // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ + // "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */ + // "noPropertyAccessFromIndexSignature": true, /* Require undeclared properties from index signatures to use element accesses. */ + + /* Module Resolution Options */ + "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ + // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ + // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ + // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ + // "typeRoots": [], /* List of folders to include type definitions from. */ + // "types": [], /* Type declaration files to be included in compilation. */ + // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ + "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ + // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ + // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ + + /* Source Map Options */ + // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ + // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ + // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ + // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ + + /* Experimental Options */ + // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ + // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ + + /* Advanced Options */ + "skipLibCheck": true, /* Skip type checking of declaration files. */ + "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */, + "paths": { + "@/*": ["./src/*"] + } + }, + "include": ["src/**/*.ts", "test/**/*.ts"], + "typedocOptions": { + "entryPoints": ["./src/"], + "entryPointStrategy": "expand", + "out": "docs", + "excludePrivate": true + } +} \ No newline at end of file