├── .github └── workflows │ └── ci.yaml ├── .gitignore ├── .vscode └── settings.json ├── LICENSE ├── README.md ├── package-lock.json ├── package.json ├── src ├── compute-text-density.test.ts ├── compute-text-density.ts ├── extract-content.ts ├── extract-head.ts ├── extract-link.ts ├── extract-text.ts ├── lib.test.ts ├── lib.ts └── strip-non-content-tags.ts ├── tsconfig.json └── tsup.config.ts /.github/workflows/ci.yaml: -------------------------------------------------------------------------------- 1 | name: "test" 2 | 3 | on: 4 | push: 5 | pull_request: 6 | 7 | env: 8 | NODE_VERSION: lts/* 9 | 10 | jobs: 11 | test: 12 | runs-on: ubuntu-latest 13 | 14 | steps: 15 | - uses: actions/checkout@v4 16 | - uses: actions/setup-node@v4 17 | with: 18 | node-version: ${{ env.NODE_VERSION }} 19 | - run: npm i --frozen-lockfile 20 | - run: npm run test 21 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # node 2 | node_modules/ 3 | 4 | # build 5 | build/ 6 | dist/ 7 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "[typescript]": { 3 | "editor.tabSize": 2, 4 | "editor.defaultFormatter": "esbenp.prettier-vscode" 5 | }, 6 | "[html]": { 7 | "editor.tabSize": 2, 8 | "editor.defaultFormatter": "esbenp.prettier-vscode" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2025 Wrtn Technologies 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # web-content-extractor 2 | 3 | A small and fast library for extracting content from HTML. 4 | 5 | It is an one of implementation of the paper [DOM Based Content Extraction via Text Density](https://ofey.me/assets/pdf/cetd-sigir11.pdf). 6 | 7 | ## Installation 8 | 9 | To install via NPM: 10 | 11 | ```bash 12 | npm i @wrtnlabs/web-content-extractor 13 | ``` 14 | 15 | ## Usage 16 | 17 | ```ts 18 | import { extractContent } from "@wrtnlabs/web-content-extractor"; 19 | 20 | const { title, description, content, contentHtmls, links } = 21 | extractContent(html); 22 | 23 | console.log("title", title); 24 | console.log("description", description); 25 | 26 | console.log("content", content); // The content of the page; string 27 | 28 | for (const fragment of contentHtmls) { 29 | console.log("fragment", fragment); // The fragment of the content; string 30 | } 31 | 32 | for (const link of links) { 33 | console.log("url", link.url); // The URL of the link 34 | console.log("content", link.content); // The content of the link 35 | } 36 | ``` 37 | 38 | ## Note 39 | 40 | It strips some tags that can be considered as non-content tags, including: 41 | 42 | - `script` 43 | - `noscript` 44 | - `style` 45 | - `nav` 46 | - `header` 47 | - `footer` 48 | - `img` 49 | - `svg` 50 | - `video` 51 | - `audio` 52 | - `form` 53 | - `label` 54 | - `input` 55 | - `select` 56 | - `option` 57 | - `button` 58 | - `object` 59 | - `embed` 60 | - `iframe` 61 | - `canvas` 62 | - `map` 63 | - `area` 64 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@wrtnlabs/web-content-extractor", 3 | "version": "3.2.4", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "@wrtnlabs/web-content-extractor", 9 | "version": "3.2.4", 10 | "license": "MIT", 11 | "dependencies": { 12 | "cheerio": "^1.0.0", 13 | "domelementtype": "^2.3.0", 14 | "domhandler": "^5.0.3" 15 | }, 16 | "devDependencies": { 17 | "@types/node": "^22.13.2", 18 | "tsup": "^8.3.6", 19 | "typescript": "^5.7.3", 20 | "vitest": "^3.0.5" 21 | }, 22 | "engines": { 23 | "node": ">=18.0.0" 24 | } 25 | }, 26 | "node_modules/@esbuild/aix-ppc64": { 27 | "version": "0.24.2", 28 | "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.24.2.tgz", 29 | "integrity": "sha512-thpVCb/rhxE/BnMLQ7GReQLLN8q9qbHmI55F4489/ByVg2aQaQ6kbcLb6FHkocZzQhxc4gx0sCk0tJkKBFzDhA==", 30 | "cpu": [ 31 | "ppc64" 32 | ], 33 | "dev": true, 34 | "license": "MIT", 35 | "optional": true, 36 | "os": [ 37 | "aix" 38 | ], 39 | "engines": { 40 | "node": ">=18" 41 | } 42 | }, 43 | "node_modules/@esbuild/android-arm": { 44 | "version": "0.24.2", 45 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.24.2.tgz", 46 | "integrity": "sha512-tmwl4hJkCfNHwFB3nBa8z1Uy3ypZpxqxfTQOcHX+xRByyYgunVbZ9MzUUfb0RxaHIMnbHagwAxuTL+tnNM+1/Q==", 47 | "cpu": [ 48 | "arm" 49 | ], 50 | "dev": true, 51 | "license": "MIT", 52 | "optional": true, 53 | "os": [ 54 | "android" 55 | ], 56 | "engines": { 57 | "node": ">=18" 58 | } 59 | }, 60 | "node_modules/@esbuild/android-arm64": { 61 | "version": "0.24.2", 62 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.24.2.tgz", 63 | "integrity": "sha512-cNLgeqCqV8WxfcTIOeL4OAtSmL8JjcN6m09XIgro1Wi7cF4t/THaWEa7eL5CMoMBdjoHOTh/vwTO/o2TRXIyzg==", 64 | "cpu": [ 65 | "arm64" 66 | ], 67 | "dev": true, 68 | "license": "MIT", 69 | "optional": true, 70 | "os": [ 71 | "android" 72 | ], 73 | "engines": { 74 | "node": ">=18" 75 | } 76 | }, 77 | "node_modules/@esbuild/android-x64": { 78 | "version": "0.24.2", 79 | "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.24.2.tgz", 80 | "integrity": "sha512-B6Q0YQDqMx9D7rvIcsXfmJfvUYLoP722bgfBlO5cGvNVb5V/+Y7nhBE3mHV9OpxBf4eAS2S68KZztiPaWq4XYw==", 81 | "cpu": [ 82 | "x64" 83 | ], 84 | "dev": true, 85 | "license": "MIT", 86 | "optional": true, 87 | "os": [ 88 | "android" 89 | ], 90 | "engines": { 91 | "node": ">=18" 92 | } 93 | }, 94 | "node_modules/@esbuild/darwin-arm64": { 95 | "version": "0.24.2", 96 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.24.2.tgz", 97 | "integrity": "sha512-kj3AnYWc+CekmZnS5IPu9D+HWtUI49hbnyqk0FLEJDbzCIQt7hg7ucF1SQAilhtYpIujfaHr6O0UHlzzSPdOeA==", 98 | "cpu": [ 99 | "arm64" 100 | ], 101 | "dev": true, 102 | "license": "MIT", 103 | "optional": true, 104 | "os": [ 105 | "darwin" 106 | ], 107 | "engines": { 108 | "node": ">=18" 109 | } 110 | }, 111 | "node_modules/@esbuild/darwin-x64": { 112 | "version": "0.24.2", 113 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.24.2.tgz", 114 | "integrity": "sha512-WeSrmwwHaPkNR5H3yYfowhZcbriGqooyu3zI/3GGpF8AyUdsrrP0X6KumITGA9WOyiJavnGZUwPGvxvwfWPHIA==", 115 | "cpu": [ 116 | "x64" 117 | ], 118 | "dev": true, 119 | "license": "MIT", 120 | "optional": true, 121 | "os": [ 122 | "darwin" 123 | ], 124 | "engines": { 125 | "node": ">=18" 126 | } 127 | }, 128 | "node_modules/@esbuild/freebsd-arm64": { 129 | "version": "0.24.2", 130 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.24.2.tgz", 131 | "integrity": "sha512-UN8HXjtJ0k/Mj6a9+5u6+2eZ2ERD7Edt1Q9IZiB5UZAIdPnVKDoG7mdTVGhHJIeEml60JteamR3qhsr1r8gXvg==", 132 | "cpu": [ 133 | "arm64" 134 | ], 135 | "dev": true, 136 | "license": "MIT", 137 | "optional": true, 138 | "os": [ 139 | "freebsd" 140 | ], 141 | "engines": { 142 | "node": ">=18" 143 | } 144 | }, 145 | "node_modules/@esbuild/freebsd-x64": { 146 | "version": "0.24.2", 147 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.24.2.tgz", 148 | "integrity": "sha512-TvW7wE/89PYW+IevEJXZ5sF6gJRDY/14hyIGFXdIucxCsbRmLUcjseQu1SyTko+2idmCw94TgyaEZi9HUSOe3Q==", 149 | "cpu": [ 150 | "x64" 151 | ], 152 | "dev": true, 153 | "license": "MIT", 154 | "optional": true, 155 | "os": [ 156 | "freebsd" 157 | ], 158 | "engines": { 159 | "node": ">=18" 160 | } 161 | }, 162 | "node_modules/@esbuild/linux-arm": { 163 | "version": "0.24.2", 164 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.24.2.tgz", 165 | "integrity": "sha512-n0WRM/gWIdU29J57hJyUdIsk0WarGd6To0s+Y+LwvlC55wt+GT/OgkwoXCXvIue1i1sSNWblHEig00GBWiJgfA==", 166 | "cpu": [ 167 | "arm" 168 | ], 169 | "dev": true, 170 | "license": "MIT", 171 | "optional": true, 172 | "os": [ 173 | "linux" 174 | ], 175 | "engines": { 176 | "node": ">=18" 177 | } 178 | }, 179 | "node_modules/@esbuild/linux-arm64": { 180 | "version": "0.24.2", 181 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.24.2.tgz", 182 | "integrity": "sha512-7HnAD6074BW43YvvUmE/35Id9/NB7BeX5EoNkK9obndmZBUk8xmJJeU7DwmUeN7tkysslb2eSl6CTrYz6oEMQg==", 183 | "cpu": [ 184 | "arm64" 185 | ], 186 | "dev": true, 187 | "license": "MIT", 188 | "optional": true, 189 | "os": [ 190 | "linux" 191 | ], 192 | "engines": { 193 | "node": ">=18" 194 | } 195 | }, 196 | "node_modules/@esbuild/linux-ia32": { 197 | "version": "0.24.2", 198 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.24.2.tgz", 199 | "integrity": "sha512-sfv0tGPQhcZOgTKO3oBE9xpHuUqguHvSo4jl+wjnKwFpapx+vUDcawbwPNuBIAYdRAvIDBfZVvXprIj3HA+Ugw==", 200 | "cpu": [ 201 | "ia32" 202 | ], 203 | "dev": true, 204 | "license": "MIT", 205 | "optional": true, 206 | "os": [ 207 | "linux" 208 | ], 209 | "engines": { 210 | "node": ">=18" 211 | } 212 | }, 213 | "node_modules/@esbuild/linux-loong64": { 214 | "version": "0.24.2", 215 | "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.24.2.tgz", 216 | "integrity": "sha512-CN9AZr8kEndGooS35ntToZLTQLHEjtVB5n7dl8ZcTZMonJ7CCfStrYhrzF97eAecqVbVJ7APOEe18RPI4KLhwQ==", 217 | "cpu": [ 218 | "loong64" 219 | ], 220 | "dev": true, 221 | "license": "MIT", 222 | "optional": true, 223 | "os": [ 224 | "linux" 225 | ], 226 | "engines": { 227 | "node": ">=18" 228 | } 229 | }, 230 | "node_modules/@esbuild/linux-mips64el": { 231 | "version": "0.24.2", 232 | "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.24.2.tgz", 233 | "integrity": "sha512-iMkk7qr/wl3exJATwkISxI7kTcmHKE+BlymIAbHO8xanq/TjHaaVThFF6ipWzPHryoFsesNQJPE/3wFJw4+huw==", 234 | "cpu": [ 235 | "mips64el" 236 | ], 237 | "dev": true, 238 | "license": "MIT", 239 | "optional": true, 240 | "os": [ 241 | "linux" 242 | ], 243 | "engines": { 244 | "node": ">=18" 245 | } 246 | }, 247 | "node_modules/@esbuild/linux-ppc64": { 248 | "version": "0.24.2", 249 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.24.2.tgz", 250 | "integrity": "sha512-shsVrgCZ57Vr2L8mm39kO5PPIb+843FStGt7sGGoqiiWYconSxwTiuswC1VJZLCjNiMLAMh34jg4VSEQb+iEbw==", 251 | "cpu": [ 252 | "ppc64" 253 | ], 254 | "dev": true, 255 | "license": "MIT", 256 | "optional": true, 257 | "os": [ 258 | "linux" 259 | ], 260 | "engines": { 261 | "node": ">=18" 262 | } 263 | }, 264 | "node_modules/@esbuild/linux-riscv64": { 265 | "version": "0.24.2", 266 | "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.24.2.tgz", 267 | "integrity": "sha512-4eSFWnU9Hhd68fW16GD0TINewo1L6dRrB+oLNNbYyMUAeOD2yCK5KXGK1GH4qD/kT+bTEXjsyTCiJGHPZ3eM9Q==", 268 | "cpu": [ 269 | "riscv64" 270 | ], 271 | "dev": true, 272 | "license": "MIT", 273 | "optional": true, 274 | "os": [ 275 | "linux" 276 | ], 277 | "engines": { 278 | "node": ">=18" 279 | } 280 | }, 281 | "node_modules/@esbuild/linux-s390x": { 282 | "version": "0.24.2", 283 | "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.24.2.tgz", 284 | "integrity": "sha512-S0Bh0A53b0YHL2XEXC20bHLuGMOhFDO6GN4b3YjRLK//Ep3ql3erpNcPlEFed93hsQAjAQDNsvcK+hV90FubSw==", 285 | "cpu": [ 286 | "s390x" 287 | ], 288 | "dev": true, 289 | "license": "MIT", 290 | "optional": true, 291 | "os": [ 292 | "linux" 293 | ], 294 | "engines": { 295 | "node": ">=18" 296 | } 297 | }, 298 | "node_modules/@esbuild/linux-x64": { 299 | "version": "0.24.2", 300 | "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.24.2.tgz", 301 | "integrity": "sha512-8Qi4nQcCTbLnK9WoMjdC9NiTG6/E38RNICU6sUNqK0QFxCYgoARqVqxdFmWkdonVsvGqWhmm7MO0jyTqLqwj0Q==", 302 | "cpu": [ 303 | "x64" 304 | ], 305 | "dev": true, 306 | "license": "MIT", 307 | "optional": true, 308 | "os": [ 309 | "linux" 310 | ], 311 | "engines": { 312 | "node": ">=18" 313 | } 314 | }, 315 | "node_modules/@esbuild/netbsd-arm64": { 316 | "version": "0.24.2", 317 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.24.2.tgz", 318 | "integrity": "sha512-wuLK/VztRRpMt9zyHSazyCVdCXlpHkKm34WUyinD2lzK07FAHTq0KQvZZlXikNWkDGoT6x3TD51jKQ7gMVpopw==", 319 | "cpu": [ 320 | "arm64" 321 | ], 322 | "dev": true, 323 | "license": "MIT", 324 | "optional": true, 325 | "os": [ 326 | "netbsd" 327 | ], 328 | "engines": { 329 | "node": ">=18" 330 | } 331 | }, 332 | "node_modules/@esbuild/netbsd-x64": { 333 | "version": "0.24.2", 334 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.24.2.tgz", 335 | "integrity": "sha512-VefFaQUc4FMmJuAxmIHgUmfNiLXY438XrL4GDNV1Y1H/RW3qow68xTwjZKfj/+Plp9NANmzbH5R40Meudu8mmw==", 336 | "cpu": [ 337 | "x64" 338 | ], 339 | "dev": true, 340 | "license": "MIT", 341 | "optional": true, 342 | "os": [ 343 | "netbsd" 344 | ], 345 | "engines": { 346 | "node": ">=18" 347 | } 348 | }, 349 | "node_modules/@esbuild/openbsd-arm64": { 350 | "version": "0.24.2", 351 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.24.2.tgz", 352 | "integrity": "sha512-YQbi46SBct6iKnszhSvdluqDmxCJA+Pu280Av9WICNwQmMxV7nLRHZfjQzwbPs3jeWnuAhE9Jy0NrnJ12Oz+0A==", 353 | "cpu": [ 354 | "arm64" 355 | ], 356 | "dev": true, 357 | "license": "MIT", 358 | "optional": true, 359 | "os": [ 360 | "openbsd" 361 | ], 362 | "engines": { 363 | "node": ">=18" 364 | } 365 | }, 366 | "node_modules/@esbuild/openbsd-x64": { 367 | "version": "0.24.2", 368 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.24.2.tgz", 369 | "integrity": "sha512-+iDS6zpNM6EnJyWv0bMGLWSWeXGN/HTaF/LXHXHwejGsVi+ooqDfMCCTerNFxEkM3wYVcExkeGXNqshc9iMaOA==", 370 | "cpu": [ 371 | "x64" 372 | ], 373 | "dev": true, 374 | "license": "MIT", 375 | "optional": true, 376 | "os": [ 377 | "openbsd" 378 | ], 379 | "engines": { 380 | "node": ">=18" 381 | } 382 | }, 383 | "node_modules/@esbuild/sunos-x64": { 384 | "version": "0.24.2", 385 | "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.24.2.tgz", 386 | "integrity": "sha512-hTdsW27jcktEvpwNHJU4ZwWFGkz2zRJUz8pvddmXPtXDzVKTTINmlmga3ZzwcuMpUvLw7JkLy9QLKyGpD2Yxig==", 387 | "cpu": [ 388 | "x64" 389 | ], 390 | "dev": true, 391 | "license": "MIT", 392 | "optional": true, 393 | "os": [ 394 | "sunos" 395 | ], 396 | "engines": { 397 | "node": ">=18" 398 | } 399 | }, 400 | "node_modules/@esbuild/win32-arm64": { 401 | "version": "0.24.2", 402 | "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.24.2.tgz", 403 | "integrity": "sha512-LihEQ2BBKVFLOC9ZItT9iFprsE9tqjDjnbulhHoFxYQtQfai7qfluVODIYxt1PgdoyQkz23+01rzwNwYfutxUQ==", 404 | "cpu": [ 405 | "arm64" 406 | ], 407 | "dev": true, 408 | "license": "MIT", 409 | "optional": true, 410 | "os": [ 411 | "win32" 412 | ], 413 | "engines": { 414 | "node": ">=18" 415 | } 416 | }, 417 | "node_modules/@esbuild/win32-ia32": { 418 | "version": "0.24.2", 419 | "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.24.2.tgz", 420 | "integrity": "sha512-q+iGUwfs8tncmFC9pcnD5IvRHAzmbwQ3GPS5/ceCyHdjXubwQWI12MKWSNSMYLJMq23/IUCvJMS76PDqXe1fxA==", 421 | "cpu": [ 422 | "ia32" 423 | ], 424 | "dev": true, 425 | "license": "MIT", 426 | "optional": true, 427 | "os": [ 428 | "win32" 429 | ], 430 | "engines": { 431 | "node": ">=18" 432 | } 433 | }, 434 | "node_modules/@esbuild/win32-x64": { 435 | "version": "0.24.2", 436 | "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.24.2.tgz", 437 | "integrity": "sha512-7VTgWzgMGvup6aSqDPLiW5zHaxYJGTO4OokMjIlrCtf+VpEL+cXKtCvg723iguPYI5oaUNdS+/V7OU2gvXVWEg==", 438 | "cpu": [ 439 | "x64" 440 | ], 441 | "dev": true, 442 | "license": "MIT", 443 | "optional": true, 444 | "os": [ 445 | "win32" 446 | ], 447 | "engines": { 448 | "node": ">=18" 449 | } 450 | }, 451 | "node_modules/@isaacs/cliui": { 452 | "version": "8.0.2", 453 | "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", 454 | "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", 455 | "dev": true, 456 | "license": "ISC", 457 | "dependencies": { 458 | "string-width": "^5.1.2", 459 | "string-width-cjs": "npm:string-width@^4.2.0", 460 | "strip-ansi": "^7.0.1", 461 | "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", 462 | "wrap-ansi": "^8.1.0", 463 | "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" 464 | }, 465 | "engines": { 466 | "node": ">=12" 467 | } 468 | }, 469 | "node_modules/@jridgewell/gen-mapping": { 470 | "version": "0.3.8", 471 | "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz", 472 | "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==", 473 | "dev": true, 474 | "license": "MIT", 475 | "dependencies": { 476 | "@jridgewell/set-array": "^1.2.1", 477 | "@jridgewell/sourcemap-codec": "^1.4.10", 478 | "@jridgewell/trace-mapping": "^0.3.24" 479 | }, 480 | "engines": { 481 | "node": ">=6.0.0" 482 | } 483 | }, 484 | "node_modules/@jridgewell/resolve-uri": { 485 | "version": "3.1.2", 486 | "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", 487 | "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", 488 | "dev": true, 489 | "license": "MIT", 490 | "engines": { 491 | "node": ">=6.0.0" 492 | } 493 | }, 494 | "node_modules/@jridgewell/set-array": { 495 | "version": "1.2.1", 496 | "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", 497 | "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", 498 | "dev": true, 499 | "license": "MIT", 500 | "engines": { 501 | "node": ">=6.0.0" 502 | } 503 | }, 504 | "node_modules/@jridgewell/sourcemap-codec": { 505 | "version": "1.5.0", 506 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", 507 | "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", 508 | "dev": true, 509 | "license": "MIT" 510 | }, 511 | "node_modules/@jridgewell/trace-mapping": { 512 | "version": "0.3.25", 513 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", 514 | "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", 515 | "dev": true, 516 | "license": "MIT", 517 | "dependencies": { 518 | "@jridgewell/resolve-uri": "^3.1.0", 519 | "@jridgewell/sourcemap-codec": "^1.4.14" 520 | } 521 | }, 522 | "node_modules/@pkgjs/parseargs": { 523 | "version": "0.11.0", 524 | "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", 525 | "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", 526 | "dev": true, 527 | "license": "MIT", 528 | "optional": true, 529 | "engines": { 530 | "node": ">=14" 531 | } 532 | }, 533 | "node_modules/@rollup/rollup-android-arm-eabi": { 534 | "version": "4.34.6", 535 | "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.34.6.tgz", 536 | "integrity": "sha512-+GcCXtOQoWuC7hhX1P00LqjjIiS/iOouHXhMdiDSnq/1DGTox4SpUvO52Xm+div6+106r+TcvOeo/cxvyEyTgg==", 537 | "cpu": [ 538 | "arm" 539 | ], 540 | "dev": true, 541 | "license": "MIT", 542 | "optional": true, 543 | "os": [ 544 | "android" 545 | ] 546 | }, 547 | "node_modules/@rollup/rollup-android-arm64": { 548 | "version": "4.34.6", 549 | "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.34.6.tgz", 550 | "integrity": "sha512-E8+2qCIjciYUnCa1AiVF1BkRgqIGW9KzJeesQqVfyRITGQN+dFuoivO0hnro1DjT74wXLRZ7QF8MIbz+luGaJA==", 551 | "cpu": [ 552 | "arm64" 553 | ], 554 | "dev": true, 555 | "license": "MIT", 556 | "optional": true, 557 | "os": [ 558 | "android" 559 | ] 560 | }, 561 | "node_modules/@rollup/rollup-darwin-arm64": { 562 | "version": "4.34.6", 563 | "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.34.6.tgz", 564 | "integrity": "sha512-z9Ib+OzqN3DZEjX7PDQMHEhtF+t6Mi2z/ueChQPLS/qUMKY7Ybn5A2ggFoKRNRh1q1T03YTQfBTQCJZiepESAg==", 565 | "cpu": [ 566 | "arm64" 567 | ], 568 | "dev": true, 569 | "license": "MIT", 570 | "optional": true, 571 | "os": [ 572 | "darwin" 573 | ] 574 | }, 575 | "node_modules/@rollup/rollup-darwin-x64": { 576 | "version": "4.34.6", 577 | "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.34.6.tgz", 578 | "integrity": "sha512-PShKVY4u0FDAR7jskyFIYVyHEPCPnIQY8s5OcXkdU8mz3Y7eXDJPdyM/ZWjkYdR2m0izD9HHWA8sGcXn+Qrsyg==", 579 | "cpu": [ 580 | "x64" 581 | ], 582 | "dev": true, 583 | "license": "MIT", 584 | "optional": true, 585 | "os": [ 586 | "darwin" 587 | ] 588 | }, 589 | "node_modules/@rollup/rollup-freebsd-arm64": { 590 | "version": "4.34.6", 591 | "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.34.6.tgz", 592 | "integrity": "sha512-YSwyOqlDAdKqs0iKuqvRHLN4SrD2TiswfoLfvYXseKbL47ht1grQpq46MSiQAx6rQEN8o8URtpXARCpqabqxGQ==", 593 | "cpu": [ 594 | "arm64" 595 | ], 596 | "dev": true, 597 | "license": "MIT", 598 | "optional": true, 599 | "os": [ 600 | "freebsd" 601 | ] 602 | }, 603 | "node_modules/@rollup/rollup-freebsd-x64": { 604 | "version": "4.34.6", 605 | "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.34.6.tgz", 606 | "integrity": "sha512-HEP4CgPAY1RxXwwL5sPFv6BBM3tVeLnshF03HMhJYCNc6kvSqBgTMmsEjb72RkZBAWIqiPUyF1JpEBv5XT9wKQ==", 607 | "cpu": [ 608 | "x64" 609 | ], 610 | "dev": true, 611 | "license": "MIT", 612 | "optional": true, 613 | "os": [ 614 | "freebsd" 615 | ] 616 | }, 617 | "node_modules/@rollup/rollup-linux-arm-gnueabihf": { 618 | "version": "4.34.6", 619 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.34.6.tgz", 620 | "integrity": "sha512-88fSzjC5xeH9S2Vg3rPgXJULkHcLYMkh8faix8DX4h4TIAL65ekwuQMA/g2CXq8W+NJC43V6fUpYZNjaX3+IIg==", 621 | "cpu": [ 622 | "arm" 623 | ], 624 | "dev": true, 625 | "license": "MIT", 626 | "optional": true, 627 | "os": [ 628 | "linux" 629 | ] 630 | }, 631 | "node_modules/@rollup/rollup-linux-arm-musleabihf": { 632 | "version": "4.34.6", 633 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.34.6.tgz", 634 | "integrity": "sha512-wM4ztnutBqYFyvNeR7Av+reWI/enK9tDOTKNF+6Kk2Q96k9bwhDDOlnCUNRPvromlVXo04riSliMBs/Z7RteEg==", 635 | "cpu": [ 636 | "arm" 637 | ], 638 | "dev": true, 639 | "license": "MIT", 640 | "optional": true, 641 | "os": [ 642 | "linux" 643 | ] 644 | }, 645 | "node_modules/@rollup/rollup-linux-arm64-gnu": { 646 | "version": "4.34.6", 647 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.34.6.tgz", 648 | "integrity": "sha512-9RyprECbRa9zEjXLtvvshhw4CMrRa3K+0wcp3KME0zmBe1ILmvcVHnypZ/aIDXpRyfhSYSuN4EPdCCj5Du8FIA==", 649 | "cpu": [ 650 | "arm64" 651 | ], 652 | "dev": true, 653 | "license": "MIT", 654 | "optional": true, 655 | "os": [ 656 | "linux" 657 | ] 658 | }, 659 | "node_modules/@rollup/rollup-linux-arm64-musl": { 660 | "version": "4.34.6", 661 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.34.6.tgz", 662 | "integrity": "sha512-qTmklhCTyaJSB05S+iSovfo++EwnIEZxHkzv5dep4qoszUMX5Ca4WM4zAVUMbfdviLgCSQOu5oU8YoGk1s6M9Q==", 663 | "cpu": [ 664 | "arm64" 665 | ], 666 | "dev": true, 667 | "license": "MIT", 668 | "optional": true, 669 | "os": [ 670 | "linux" 671 | ] 672 | }, 673 | "node_modules/@rollup/rollup-linux-loongarch64-gnu": { 674 | "version": "4.34.6", 675 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.34.6.tgz", 676 | "integrity": "sha512-4Qmkaps9yqmpjY5pvpkfOerYgKNUGzQpFxV6rnS7c/JfYbDSU0y6WpbbredB5cCpLFGJEqYX40WUmxMkwhWCjw==", 677 | "cpu": [ 678 | "loong64" 679 | ], 680 | "dev": true, 681 | "license": "MIT", 682 | "optional": true, 683 | "os": [ 684 | "linux" 685 | ] 686 | }, 687 | "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { 688 | "version": "4.34.6", 689 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.34.6.tgz", 690 | "integrity": "sha512-Zsrtux3PuaxuBTX/zHdLaFmcofWGzaWW1scwLU3ZbW/X+hSsFbz9wDIp6XvnT7pzYRl9MezWqEqKy7ssmDEnuQ==", 691 | "cpu": [ 692 | "ppc64" 693 | ], 694 | "dev": true, 695 | "license": "MIT", 696 | "optional": true, 697 | "os": [ 698 | "linux" 699 | ] 700 | }, 701 | "node_modules/@rollup/rollup-linux-riscv64-gnu": { 702 | "version": "4.34.6", 703 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.34.6.tgz", 704 | "integrity": "sha512-aK+Zp+CRM55iPrlyKiU3/zyhgzWBxLVrw2mwiQSYJRobCURb781+XstzvA8Gkjg/hbdQFuDw44aUOxVQFycrAg==", 705 | "cpu": [ 706 | "riscv64" 707 | ], 708 | "dev": true, 709 | "license": "MIT", 710 | "optional": true, 711 | "os": [ 712 | "linux" 713 | ] 714 | }, 715 | "node_modules/@rollup/rollup-linux-s390x-gnu": { 716 | "version": "4.34.6", 717 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.34.6.tgz", 718 | "integrity": "sha512-WoKLVrY9ogmaYPXwTH326+ErlCIgMmsoRSx6bO+l68YgJnlOXhygDYSZe/qbUJCSiCiZAQ+tKm88NcWuUXqOzw==", 719 | "cpu": [ 720 | "s390x" 721 | ], 722 | "dev": true, 723 | "license": "MIT", 724 | "optional": true, 725 | "os": [ 726 | "linux" 727 | ] 728 | }, 729 | "node_modules/@rollup/rollup-linux-x64-gnu": { 730 | "version": "4.34.6", 731 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.34.6.tgz", 732 | "integrity": "sha512-Sht4aFvmA4ToHd2vFzwMFaQCiYm2lDFho5rPcvPBT5pCdC+GwHG6CMch4GQfmWTQ1SwRKS0dhDYb54khSrjDWw==", 733 | "cpu": [ 734 | "x64" 735 | ], 736 | "dev": true, 737 | "license": "MIT", 738 | "optional": true, 739 | "os": [ 740 | "linux" 741 | ] 742 | }, 743 | "node_modules/@rollup/rollup-linux-x64-musl": { 744 | "version": "4.34.6", 745 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.34.6.tgz", 746 | "integrity": "sha512-zmmpOQh8vXc2QITsnCiODCDGXFC8LMi64+/oPpPx5qz3pqv0s6x46ps4xoycfUiVZps5PFn1gksZzo4RGTKT+A==", 747 | "cpu": [ 748 | "x64" 749 | ], 750 | "dev": true, 751 | "license": "MIT", 752 | "optional": true, 753 | "os": [ 754 | "linux" 755 | ] 756 | }, 757 | "node_modules/@rollup/rollup-win32-arm64-msvc": { 758 | "version": "4.34.6", 759 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.34.6.tgz", 760 | "integrity": "sha512-3/q1qUsO/tLqGBaD4uXsB6coVGB3usxw3qyeVb59aArCgedSF66MPdgRStUd7vbZOsko/CgVaY5fo2vkvPLWiA==", 761 | "cpu": [ 762 | "arm64" 763 | ], 764 | "dev": true, 765 | "license": "MIT", 766 | "optional": true, 767 | "os": [ 768 | "win32" 769 | ] 770 | }, 771 | "node_modules/@rollup/rollup-win32-ia32-msvc": { 772 | "version": "4.34.6", 773 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.34.6.tgz", 774 | "integrity": "sha512-oLHxuyywc6efdKVTxvc0135zPrRdtYVjtVD5GUm55I3ODxhU/PwkQFD97z16Xzxa1Fz0AEe4W/2hzRtd+IfpOA==", 775 | "cpu": [ 776 | "ia32" 777 | ], 778 | "dev": true, 779 | "license": "MIT", 780 | "optional": true, 781 | "os": [ 782 | "win32" 783 | ] 784 | }, 785 | "node_modules/@rollup/rollup-win32-x64-msvc": { 786 | "version": "4.34.6", 787 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.34.6.tgz", 788 | "integrity": "sha512-0PVwmgzZ8+TZ9oGBmdZoQVXflbvuwzN/HRclujpl4N/q3i+y0lqLw8n1bXA8ru3sApDjlmONaNAuYr38y1Kr9w==", 789 | "cpu": [ 790 | "x64" 791 | ], 792 | "dev": true, 793 | "license": "MIT", 794 | "optional": true, 795 | "os": [ 796 | "win32" 797 | ] 798 | }, 799 | "node_modules/@types/estree": { 800 | "version": "1.0.6", 801 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", 802 | "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", 803 | "dev": true, 804 | "license": "MIT" 805 | }, 806 | "node_modules/@types/node": { 807 | "version": "22.13.2", 808 | "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.2.tgz", 809 | "integrity": "sha512-Z+r8y3XL9ZpI2EY52YYygAFmo2/oWfNSj4BCpAXE2McAexDk8VcnBMGC9Djn9gTKt4d2T/hhXqmPzo4hfIXtTg==", 810 | "dev": true, 811 | "license": "MIT", 812 | "dependencies": { 813 | "undici-types": "~6.20.0" 814 | } 815 | }, 816 | "node_modules/@vitest/expect": { 817 | "version": "3.0.5", 818 | "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-3.0.5.tgz", 819 | "integrity": "sha512-nNIOqupgZ4v5jWuQx2DSlHLEs7Q4Oh/7AYwNyE+k0UQzG7tSmjPXShUikn1mpNGzYEN2jJbTvLejwShMitovBA==", 820 | "dev": true, 821 | "license": "MIT", 822 | "dependencies": { 823 | "@vitest/spy": "3.0.5", 824 | "@vitest/utils": "3.0.5", 825 | "chai": "^5.1.2", 826 | "tinyrainbow": "^2.0.0" 827 | }, 828 | "funding": { 829 | "url": "https://opencollective.com/vitest" 830 | } 831 | }, 832 | "node_modules/@vitest/mocker": { 833 | "version": "3.0.5", 834 | "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-3.0.5.tgz", 835 | "integrity": "sha512-CLPNBFBIE7x6aEGbIjaQAX03ZZlBMaWwAjBdMkIf/cAn6xzLTiM3zYqO/WAbieEjsAZir6tO71mzeHZoodThvw==", 836 | "dev": true, 837 | "license": "MIT", 838 | "dependencies": { 839 | "@vitest/spy": "3.0.5", 840 | "estree-walker": "^3.0.3", 841 | "magic-string": "^0.30.17" 842 | }, 843 | "funding": { 844 | "url": "https://opencollective.com/vitest" 845 | }, 846 | "peerDependencies": { 847 | "msw": "^2.4.9", 848 | "vite": "^5.0.0 || ^6.0.0" 849 | }, 850 | "peerDependenciesMeta": { 851 | "msw": { 852 | "optional": true 853 | }, 854 | "vite": { 855 | "optional": true 856 | } 857 | } 858 | }, 859 | "node_modules/@vitest/pretty-format": { 860 | "version": "3.0.5", 861 | "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.0.5.tgz", 862 | "integrity": "sha512-CjUtdmpOcm4RVtB+up8r2vVDLR16Mgm/bYdkGFe3Yj/scRfCpbSi2W/BDSDcFK7ohw8UXvjMbOp9H4fByd/cOA==", 863 | "dev": true, 864 | "license": "MIT", 865 | "dependencies": { 866 | "tinyrainbow": "^2.0.0" 867 | }, 868 | "funding": { 869 | "url": "https://opencollective.com/vitest" 870 | } 871 | }, 872 | "node_modules/@vitest/runner": { 873 | "version": "3.0.5", 874 | "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-3.0.5.tgz", 875 | "integrity": "sha512-BAiZFityFexZQi2yN4OX3OkJC6scwRo8EhRB0Z5HIGGgd2q+Nq29LgHU/+ovCtd0fOfXj5ZI6pwdlUmC5bpi8A==", 876 | "dev": true, 877 | "license": "MIT", 878 | "dependencies": { 879 | "@vitest/utils": "3.0.5", 880 | "pathe": "^2.0.2" 881 | }, 882 | "funding": { 883 | "url": "https://opencollective.com/vitest" 884 | } 885 | }, 886 | "node_modules/@vitest/snapshot": { 887 | "version": "3.0.5", 888 | "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-3.0.5.tgz", 889 | "integrity": "sha512-GJPZYcd7v8QNUJ7vRvLDmRwl+a1fGg4T/54lZXe+UOGy47F9yUfE18hRCtXL5aHN/AONu29NGzIXSVFh9K0feA==", 890 | "dev": true, 891 | "license": "MIT", 892 | "dependencies": { 893 | "@vitest/pretty-format": "3.0.5", 894 | "magic-string": "^0.30.17", 895 | "pathe": "^2.0.2" 896 | }, 897 | "funding": { 898 | "url": "https://opencollective.com/vitest" 899 | } 900 | }, 901 | "node_modules/@vitest/spy": { 902 | "version": "3.0.5", 903 | "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-3.0.5.tgz", 904 | "integrity": "sha512-5fOzHj0WbUNqPK6blI/8VzZdkBlQLnT25knX0r4dbZI9qoZDf3qAdjoMmDcLG5A83W6oUUFJgUd0EYBc2P5xqg==", 905 | "dev": true, 906 | "license": "MIT", 907 | "dependencies": { 908 | "tinyspy": "^3.0.2" 909 | }, 910 | "funding": { 911 | "url": "https://opencollective.com/vitest" 912 | } 913 | }, 914 | "node_modules/@vitest/utils": { 915 | "version": "3.0.5", 916 | "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-3.0.5.tgz", 917 | "integrity": "sha512-N9AX0NUoUtVwKwy21JtwzaqR5L5R5A99GAbrHfCCXK1lp593i/3AZAXhSP43wRQuxYsflrdzEfXZFo1reR1Nkg==", 918 | "dev": true, 919 | "license": "MIT", 920 | "dependencies": { 921 | "@vitest/pretty-format": "3.0.5", 922 | "loupe": "^3.1.2", 923 | "tinyrainbow": "^2.0.0" 924 | }, 925 | "funding": { 926 | "url": "https://opencollective.com/vitest" 927 | } 928 | }, 929 | "node_modules/ansi-regex": { 930 | "version": "6.1.0", 931 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", 932 | "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", 933 | "dev": true, 934 | "license": "MIT", 935 | "engines": { 936 | "node": ">=12" 937 | }, 938 | "funding": { 939 | "url": "https://github.com/chalk/ansi-regex?sponsor=1" 940 | } 941 | }, 942 | "node_modules/ansi-styles": { 943 | "version": "6.2.1", 944 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", 945 | "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", 946 | "dev": true, 947 | "license": "MIT", 948 | "engines": { 949 | "node": ">=12" 950 | }, 951 | "funding": { 952 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 953 | } 954 | }, 955 | "node_modules/any-promise": { 956 | "version": "1.3.0", 957 | "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", 958 | "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", 959 | "dev": true, 960 | "license": "MIT" 961 | }, 962 | "node_modules/assertion-error": { 963 | "version": "2.0.1", 964 | "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", 965 | "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", 966 | "dev": true, 967 | "license": "MIT", 968 | "engines": { 969 | "node": ">=12" 970 | } 971 | }, 972 | "node_modules/balanced-match": { 973 | "version": "1.0.2", 974 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 975 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 976 | "dev": true, 977 | "license": "MIT" 978 | }, 979 | "node_modules/boolbase": { 980 | "version": "1.0.0", 981 | "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", 982 | "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", 983 | "license": "ISC" 984 | }, 985 | "node_modules/brace-expansion": { 986 | "version": "2.0.1", 987 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", 988 | "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", 989 | "dev": true, 990 | "license": "MIT", 991 | "dependencies": { 992 | "balanced-match": "^1.0.0" 993 | } 994 | }, 995 | "node_modules/bundle-require": { 996 | "version": "5.1.0", 997 | "resolved": "https://registry.npmjs.org/bundle-require/-/bundle-require-5.1.0.tgz", 998 | "integrity": "sha512-3WrrOuZiyaaZPWiEt4G3+IffISVC9HYlWueJEBWED4ZH4aIAC2PnkdnuRrR94M+w6yGWn4AglWtJtBI8YqvgoA==", 999 | "dev": true, 1000 | "license": "MIT", 1001 | "dependencies": { 1002 | "load-tsconfig": "^0.2.3" 1003 | }, 1004 | "engines": { 1005 | "node": "^12.20.0 || ^14.13.1 || >=16.0.0" 1006 | }, 1007 | "peerDependencies": { 1008 | "esbuild": ">=0.18" 1009 | } 1010 | }, 1011 | "node_modules/cac": { 1012 | "version": "6.7.14", 1013 | "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", 1014 | "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", 1015 | "dev": true, 1016 | "license": "MIT", 1017 | "engines": { 1018 | "node": ">=8" 1019 | } 1020 | }, 1021 | "node_modules/chai": { 1022 | "version": "5.1.2", 1023 | "resolved": "https://registry.npmjs.org/chai/-/chai-5.1.2.tgz", 1024 | "integrity": "sha512-aGtmf24DW6MLHHG5gCx4zaI3uBq3KRtxeVs0DjFH6Z0rDNbsvTxFASFvdj79pxjxZ8/5u3PIiN3IwEIQkiiuPw==", 1025 | "dev": true, 1026 | "license": "MIT", 1027 | "dependencies": { 1028 | "assertion-error": "^2.0.1", 1029 | "check-error": "^2.1.1", 1030 | "deep-eql": "^5.0.1", 1031 | "loupe": "^3.1.0", 1032 | "pathval": "^2.0.0" 1033 | }, 1034 | "engines": { 1035 | "node": ">=12" 1036 | } 1037 | }, 1038 | "node_modules/check-error": { 1039 | "version": "2.1.1", 1040 | "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.1.tgz", 1041 | "integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==", 1042 | "dev": true, 1043 | "license": "MIT", 1044 | "engines": { 1045 | "node": ">= 16" 1046 | } 1047 | }, 1048 | "node_modules/cheerio": { 1049 | "version": "1.0.0", 1050 | "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0.tgz", 1051 | "integrity": "sha512-quS9HgjQpdaXOvsZz82Oz7uxtXiy6UIsIQcpBj7HRw2M63Skasm9qlDocAM7jNuaxdhpPU7c4kJN+gA5MCu4ww==", 1052 | "license": "MIT", 1053 | "dependencies": { 1054 | "cheerio-select": "^2.1.0", 1055 | "dom-serializer": "^2.0.0", 1056 | "domhandler": "^5.0.3", 1057 | "domutils": "^3.1.0", 1058 | "encoding-sniffer": "^0.2.0", 1059 | "htmlparser2": "^9.1.0", 1060 | "parse5": "^7.1.2", 1061 | "parse5-htmlparser2-tree-adapter": "^7.0.0", 1062 | "parse5-parser-stream": "^7.1.2", 1063 | "undici": "^6.19.5", 1064 | "whatwg-mimetype": "^4.0.0" 1065 | }, 1066 | "engines": { 1067 | "node": ">=18.17" 1068 | }, 1069 | "funding": { 1070 | "url": "https://github.com/cheeriojs/cheerio?sponsor=1" 1071 | } 1072 | }, 1073 | "node_modules/cheerio-select": { 1074 | "version": "2.1.0", 1075 | "resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-2.1.0.tgz", 1076 | "integrity": "sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==", 1077 | "license": "BSD-2-Clause", 1078 | "dependencies": { 1079 | "boolbase": "^1.0.0", 1080 | "css-select": "^5.1.0", 1081 | "css-what": "^6.1.0", 1082 | "domelementtype": "^2.3.0", 1083 | "domhandler": "^5.0.3", 1084 | "domutils": "^3.0.1" 1085 | }, 1086 | "funding": { 1087 | "url": "https://github.com/sponsors/fb55" 1088 | } 1089 | }, 1090 | "node_modules/chokidar": { 1091 | "version": "4.0.3", 1092 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", 1093 | "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", 1094 | "dev": true, 1095 | "license": "MIT", 1096 | "dependencies": { 1097 | "readdirp": "^4.0.1" 1098 | }, 1099 | "engines": { 1100 | "node": ">= 14.16.0" 1101 | }, 1102 | "funding": { 1103 | "url": "https://paulmillr.com/funding/" 1104 | } 1105 | }, 1106 | "node_modules/color-convert": { 1107 | "version": "2.0.1", 1108 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 1109 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 1110 | "dev": true, 1111 | "license": "MIT", 1112 | "dependencies": { 1113 | "color-name": "~1.1.4" 1114 | }, 1115 | "engines": { 1116 | "node": ">=7.0.0" 1117 | } 1118 | }, 1119 | "node_modules/color-name": { 1120 | "version": "1.1.4", 1121 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 1122 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 1123 | "dev": true, 1124 | "license": "MIT" 1125 | }, 1126 | "node_modules/commander": { 1127 | "version": "4.1.1", 1128 | "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", 1129 | "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", 1130 | "dev": true, 1131 | "license": "MIT", 1132 | "engines": { 1133 | "node": ">= 6" 1134 | } 1135 | }, 1136 | "node_modules/consola": { 1137 | "version": "3.4.0", 1138 | "resolved": "https://registry.npmjs.org/consola/-/consola-3.4.0.tgz", 1139 | "integrity": "sha512-EiPU8G6dQG0GFHNR8ljnZFki/8a+cQwEQ+7wpxdChl02Q8HXlwEZWD5lqAF8vC2sEC3Tehr8hy7vErz88LHyUA==", 1140 | "dev": true, 1141 | "license": "MIT", 1142 | "engines": { 1143 | "node": "^14.18.0 || >=16.10.0" 1144 | } 1145 | }, 1146 | "node_modules/cross-spawn": { 1147 | "version": "7.0.6", 1148 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", 1149 | "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", 1150 | "dev": true, 1151 | "license": "MIT", 1152 | "dependencies": { 1153 | "path-key": "^3.1.0", 1154 | "shebang-command": "^2.0.0", 1155 | "which": "^2.0.1" 1156 | }, 1157 | "engines": { 1158 | "node": ">= 8" 1159 | } 1160 | }, 1161 | "node_modules/css-select": { 1162 | "version": "5.1.0", 1163 | "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz", 1164 | "integrity": "sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==", 1165 | "license": "BSD-2-Clause", 1166 | "dependencies": { 1167 | "boolbase": "^1.0.0", 1168 | "css-what": "^6.1.0", 1169 | "domhandler": "^5.0.2", 1170 | "domutils": "^3.0.1", 1171 | "nth-check": "^2.0.1" 1172 | }, 1173 | "funding": { 1174 | "url": "https://github.com/sponsors/fb55" 1175 | } 1176 | }, 1177 | "node_modules/css-what": { 1178 | "version": "6.1.0", 1179 | "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", 1180 | "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==", 1181 | "license": "BSD-2-Clause", 1182 | "engines": { 1183 | "node": ">= 6" 1184 | }, 1185 | "funding": { 1186 | "url": "https://github.com/sponsors/fb55" 1187 | } 1188 | }, 1189 | "node_modules/debug": { 1190 | "version": "4.4.0", 1191 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", 1192 | "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", 1193 | "dev": true, 1194 | "license": "MIT", 1195 | "dependencies": { 1196 | "ms": "^2.1.3" 1197 | }, 1198 | "engines": { 1199 | "node": ">=6.0" 1200 | }, 1201 | "peerDependenciesMeta": { 1202 | "supports-color": { 1203 | "optional": true 1204 | } 1205 | } 1206 | }, 1207 | "node_modules/deep-eql": { 1208 | "version": "5.0.2", 1209 | "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz", 1210 | "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==", 1211 | "dev": true, 1212 | "license": "MIT", 1213 | "engines": { 1214 | "node": ">=6" 1215 | } 1216 | }, 1217 | "node_modules/dom-serializer": { 1218 | "version": "2.0.0", 1219 | "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", 1220 | "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", 1221 | "license": "MIT", 1222 | "dependencies": { 1223 | "domelementtype": "^2.3.0", 1224 | "domhandler": "^5.0.2", 1225 | "entities": "^4.2.0" 1226 | }, 1227 | "funding": { 1228 | "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" 1229 | } 1230 | }, 1231 | "node_modules/domelementtype": { 1232 | "version": "2.3.0", 1233 | "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", 1234 | "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", 1235 | "funding": [ 1236 | { 1237 | "type": "github", 1238 | "url": "https://github.com/sponsors/fb55" 1239 | } 1240 | ], 1241 | "license": "BSD-2-Clause" 1242 | }, 1243 | "node_modules/domhandler": { 1244 | "version": "5.0.3", 1245 | "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", 1246 | "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", 1247 | "license": "BSD-2-Clause", 1248 | "dependencies": { 1249 | "domelementtype": "^2.3.0" 1250 | }, 1251 | "engines": { 1252 | "node": ">= 4" 1253 | }, 1254 | "funding": { 1255 | "url": "https://github.com/fb55/domhandler?sponsor=1" 1256 | } 1257 | }, 1258 | "node_modules/domutils": { 1259 | "version": "3.2.2", 1260 | "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.2.2.tgz", 1261 | "integrity": "sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==", 1262 | "license": "BSD-2-Clause", 1263 | "dependencies": { 1264 | "dom-serializer": "^2.0.0", 1265 | "domelementtype": "^2.3.0", 1266 | "domhandler": "^5.0.3" 1267 | }, 1268 | "funding": { 1269 | "url": "https://github.com/fb55/domutils?sponsor=1" 1270 | } 1271 | }, 1272 | "node_modules/eastasianwidth": { 1273 | "version": "0.2.0", 1274 | "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", 1275 | "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", 1276 | "dev": true, 1277 | "license": "MIT" 1278 | }, 1279 | "node_modules/emoji-regex": { 1280 | "version": "9.2.2", 1281 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", 1282 | "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", 1283 | "dev": true, 1284 | "license": "MIT" 1285 | }, 1286 | "node_modules/encoding-sniffer": { 1287 | "version": "0.2.0", 1288 | "resolved": "https://registry.npmjs.org/encoding-sniffer/-/encoding-sniffer-0.2.0.tgz", 1289 | "integrity": "sha512-ju7Wq1kg04I3HtiYIOrUrdfdDvkyO9s5XM8QAj/bN61Yo/Vb4vgJxy5vi4Yxk01gWHbrofpPtpxM8bKger9jhg==", 1290 | "license": "MIT", 1291 | "dependencies": { 1292 | "iconv-lite": "^0.6.3", 1293 | "whatwg-encoding": "^3.1.1" 1294 | }, 1295 | "funding": { 1296 | "url": "https://github.com/fb55/encoding-sniffer?sponsor=1" 1297 | } 1298 | }, 1299 | "node_modules/entities": { 1300 | "version": "4.5.0", 1301 | "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", 1302 | "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", 1303 | "license": "BSD-2-Clause", 1304 | "engines": { 1305 | "node": ">=0.12" 1306 | }, 1307 | "funding": { 1308 | "url": "https://github.com/fb55/entities?sponsor=1" 1309 | } 1310 | }, 1311 | "node_modules/es-module-lexer": { 1312 | "version": "1.6.0", 1313 | "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.6.0.tgz", 1314 | "integrity": "sha512-qqnD1yMU6tk/jnaMosogGySTZP8YtUgAffA9nMN+E/rjxcfRQ6IEk7IiozUjgxKoFHBGjTLnrHB/YC45r/59EQ==", 1315 | "dev": true, 1316 | "license": "MIT" 1317 | }, 1318 | "node_modules/esbuild": { 1319 | "version": "0.24.2", 1320 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.24.2.tgz", 1321 | "integrity": "sha512-+9egpBW8I3CD5XPe0n6BfT5fxLzxrlDzqydF3aviG+9ni1lDC/OvMHcxqEFV0+LANZG5R1bFMWfUrjVsdwxJvA==", 1322 | "dev": true, 1323 | "hasInstallScript": true, 1324 | "license": "MIT", 1325 | "bin": { 1326 | "esbuild": "bin/esbuild" 1327 | }, 1328 | "engines": { 1329 | "node": ">=18" 1330 | }, 1331 | "optionalDependencies": { 1332 | "@esbuild/aix-ppc64": "0.24.2", 1333 | "@esbuild/android-arm": "0.24.2", 1334 | "@esbuild/android-arm64": "0.24.2", 1335 | "@esbuild/android-x64": "0.24.2", 1336 | "@esbuild/darwin-arm64": "0.24.2", 1337 | "@esbuild/darwin-x64": "0.24.2", 1338 | "@esbuild/freebsd-arm64": "0.24.2", 1339 | "@esbuild/freebsd-x64": "0.24.2", 1340 | "@esbuild/linux-arm": "0.24.2", 1341 | "@esbuild/linux-arm64": "0.24.2", 1342 | "@esbuild/linux-ia32": "0.24.2", 1343 | "@esbuild/linux-loong64": "0.24.2", 1344 | "@esbuild/linux-mips64el": "0.24.2", 1345 | "@esbuild/linux-ppc64": "0.24.2", 1346 | "@esbuild/linux-riscv64": "0.24.2", 1347 | "@esbuild/linux-s390x": "0.24.2", 1348 | "@esbuild/linux-x64": "0.24.2", 1349 | "@esbuild/netbsd-arm64": "0.24.2", 1350 | "@esbuild/netbsd-x64": "0.24.2", 1351 | "@esbuild/openbsd-arm64": "0.24.2", 1352 | "@esbuild/openbsd-x64": "0.24.2", 1353 | "@esbuild/sunos-x64": "0.24.2", 1354 | "@esbuild/win32-arm64": "0.24.2", 1355 | "@esbuild/win32-ia32": "0.24.2", 1356 | "@esbuild/win32-x64": "0.24.2" 1357 | } 1358 | }, 1359 | "node_modules/estree-walker": { 1360 | "version": "3.0.3", 1361 | "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", 1362 | "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", 1363 | "dev": true, 1364 | "license": "MIT", 1365 | "dependencies": { 1366 | "@types/estree": "^1.0.0" 1367 | } 1368 | }, 1369 | "node_modules/expect-type": { 1370 | "version": "1.1.0", 1371 | "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.1.0.tgz", 1372 | "integrity": "sha512-bFi65yM+xZgk+u/KRIpekdSYkTB5W1pEf0Lt8Q8Msh7b+eQ7LXVtIB1Bkm4fvclDEL1b2CZkMhv2mOeF8tMdkA==", 1373 | "dev": true, 1374 | "license": "Apache-2.0", 1375 | "engines": { 1376 | "node": ">=12.0.0" 1377 | } 1378 | }, 1379 | "node_modules/fdir": { 1380 | "version": "6.4.3", 1381 | "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.3.tgz", 1382 | "integrity": "sha512-PMXmW2y1hDDfTSRc9gaXIuCCRpuoz3Kaz8cUelp3smouvfT632ozg2vrT6lJsHKKOF59YLbOGfAWGUcKEfRMQw==", 1383 | "dev": true, 1384 | "license": "MIT", 1385 | "peerDependencies": { 1386 | "picomatch": "^3 || ^4" 1387 | }, 1388 | "peerDependenciesMeta": { 1389 | "picomatch": { 1390 | "optional": true 1391 | } 1392 | } 1393 | }, 1394 | "node_modules/foreground-child": { 1395 | "version": "3.3.0", 1396 | "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz", 1397 | "integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==", 1398 | "dev": true, 1399 | "license": "ISC", 1400 | "dependencies": { 1401 | "cross-spawn": "^7.0.0", 1402 | "signal-exit": "^4.0.1" 1403 | }, 1404 | "engines": { 1405 | "node": ">=14" 1406 | }, 1407 | "funding": { 1408 | "url": "https://github.com/sponsors/isaacs" 1409 | } 1410 | }, 1411 | "node_modules/fsevents": { 1412 | "version": "2.3.3", 1413 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", 1414 | "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", 1415 | "dev": true, 1416 | "hasInstallScript": true, 1417 | "license": "MIT", 1418 | "optional": true, 1419 | "os": [ 1420 | "darwin" 1421 | ], 1422 | "engines": { 1423 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 1424 | } 1425 | }, 1426 | "node_modules/htmlparser2": { 1427 | "version": "9.1.0", 1428 | "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-9.1.0.tgz", 1429 | "integrity": "sha512-5zfg6mHUoaer/97TxnGpxmbR7zJtPwIYFMZ/H5ucTlPZhKvtum05yiPK3Mgai3a0DyVxv7qYqoweaEd2nrYQzQ==", 1430 | "funding": [ 1431 | "https://github.com/fb55/htmlparser2?sponsor=1", 1432 | { 1433 | "type": "github", 1434 | "url": "https://github.com/sponsors/fb55" 1435 | } 1436 | ], 1437 | "license": "MIT", 1438 | "dependencies": { 1439 | "domelementtype": "^2.3.0", 1440 | "domhandler": "^5.0.3", 1441 | "domutils": "^3.1.0", 1442 | "entities": "^4.5.0" 1443 | } 1444 | }, 1445 | "node_modules/iconv-lite": { 1446 | "version": "0.6.3", 1447 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", 1448 | "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", 1449 | "license": "MIT", 1450 | "dependencies": { 1451 | "safer-buffer": ">= 2.1.2 < 3.0.0" 1452 | }, 1453 | "engines": { 1454 | "node": ">=0.10.0" 1455 | } 1456 | }, 1457 | "node_modules/is-fullwidth-code-point": { 1458 | "version": "3.0.0", 1459 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 1460 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 1461 | "dev": true, 1462 | "license": "MIT", 1463 | "engines": { 1464 | "node": ">=8" 1465 | } 1466 | }, 1467 | "node_modules/isexe": { 1468 | "version": "2.0.0", 1469 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1470 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 1471 | "dev": true, 1472 | "license": "ISC" 1473 | }, 1474 | "node_modules/joycon": { 1475 | "version": "3.1.1", 1476 | "resolved": "https://registry.npmjs.org/joycon/-/joycon-3.1.1.tgz", 1477 | "integrity": "sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==", 1478 | "dev": true, 1479 | "license": "MIT", 1480 | "engines": { 1481 | "node": ">=10" 1482 | } 1483 | }, 1484 | "node_modules/lilconfig": { 1485 | "version": "3.1.3", 1486 | "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz", 1487 | "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==", 1488 | "dev": true, 1489 | "license": "MIT", 1490 | "engines": { 1491 | "node": ">=14" 1492 | }, 1493 | "funding": { 1494 | "url": "https://github.com/sponsors/antonk52" 1495 | } 1496 | }, 1497 | "node_modules/lines-and-columns": { 1498 | "version": "1.2.4", 1499 | "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", 1500 | "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", 1501 | "dev": true, 1502 | "license": "MIT" 1503 | }, 1504 | "node_modules/load-tsconfig": { 1505 | "version": "0.2.5", 1506 | "resolved": "https://registry.npmjs.org/load-tsconfig/-/load-tsconfig-0.2.5.tgz", 1507 | "integrity": "sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==", 1508 | "dev": true, 1509 | "license": "MIT", 1510 | "engines": { 1511 | "node": "^12.20.0 || ^14.13.1 || >=16.0.0" 1512 | } 1513 | }, 1514 | "node_modules/lodash.sortby": { 1515 | "version": "4.7.0", 1516 | "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", 1517 | "integrity": "sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==", 1518 | "dev": true, 1519 | "license": "MIT" 1520 | }, 1521 | "node_modules/loupe": { 1522 | "version": "3.1.3", 1523 | "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.1.3.tgz", 1524 | "integrity": "sha512-kkIp7XSkP78ZxJEsSxW3712C6teJVoeHHwgo9zJ380de7IYyJ2ISlxojcH2pC5OFLewESmnRi/+XCDIEEVyoug==", 1525 | "dev": true, 1526 | "license": "MIT" 1527 | }, 1528 | "node_modules/magic-string": { 1529 | "version": "0.30.17", 1530 | "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz", 1531 | "integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==", 1532 | "dev": true, 1533 | "license": "MIT", 1534 | "dependencies": { 1535 | "@jridgewell/sourcemap-codec": "^1.5.0" 1536 | } 1537 | }, 1538 | "node_modules/minipass": { 1539 | "version": "7.1.2", 1540 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", 1541 | "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", 1542 | "dev": true, 1543 | "license": "ISC", 1544 | "engines": { 1545 | "node": ">=16 || 14 >=14.17" 1546 | } 1547 | }, 1548 | "node_modules/ms": { 1549 | "version": "2.1.3", 1550 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1551 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 1552 | "dev": true, 1553 | "license": "MIT" 1554 | }, 1555 | "node_modules/mz": { 1556 | "version": "2.7.0", 1557 | "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", 1558 | "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", 1559 | "dev": true, 1560 | "license": "MIT", 1561 | "dependencies": { 1562 | "any-promise": "^1.0.0", 1563 | "object-assign": "^4.0.1", 1564 | "thenify-all": "^1.0.0" 1565 | } 1566 | }, 1567 | "node_modules/nanoid": { 1568 | "version": "3.3.8", 1569 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz", 1570 | "integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==", 1571 | "dev": true, 1572 | "funding": [ 1573 | { 1574 | "type": "github", 1575 | "url": "https://github.com/sponsors/ai" 1576 | } 1577 | ], 1578 | "license": "MIT", 1579 | "bin": { 1580 | "nanoid": "bin/nanoid.cjs" 1581 | }, 1582 | "engines": { 1583 | "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" 1584 | } 1585 | }, 1586 | "node_modules/nth-check": { 1587 | "version": "2.1.1", 1588 | "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", 1589 | "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", 1590 | "license": "BSD-2-Clause", 1591 | "dependencies": { 1592 | "boolbase": "^1.0.0" 1593 | }, 1594 | "funding": { 1595 | "url": "https://github.com/fb55/nth-check?sponsor=1" 1596 | } 1597 | }, 1598 | "node_modules/object-assign": { 1599 | "version": "4.1.1", 1600 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 1601 | "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", 1602 | "dev": true, 1603 | "license": "MIT", 1604 | "engines": { 1605 | "node": ">=0.10.0" 1606 | } 1607 | }, 1608 | "node_modules/package-json-from-dist": { 1609 | "version": "1.0.1", 1610 | "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", 1611 | "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", 1612 | "dev": true, 1613 | "license": "BlueOak-1.0.0" 1614 | }, 1615 | "node_modules/parse5": { 1616 | "version": "7.2.1", 1617 | "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.2.1.tgz", 1618 | "integrity": "sha512-BuBYQYlv1ckiPdQi/ohiivi9Sagc9JG+Ozs0r7b/0iK3sKmrb0b9FdWdBbOdx6hBCM/F9Ir82ofnBhtZOjCRPQ==", 1619 | "license": "MIT", 1620 | "dependencies": { 1621 | "entities": "^4.5.0" 1622 | }, 1623 | "funding": { 1624 | "url": "https://github.com/inikulin/parse5?sponsor=1" 1625 | } 1626 | }, 1627 | "node_modules/parse5-htmlparser2-tree-adapter": { 1628 | "version": "7.1.0", 1629 | "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-7.1.0.tgz", 1630 | "integrity": "sha512-ruw5xyKs6lrpo9x9rCZqZZnIUntICjQAd0Wsmp396Ul9lN/h+ifgVV1x1gZHi8euej6wTfpqX8j+BFQxF0NS/g==", 1631 | "license": "MIT", 1632 | "dependencies": { 1633 | "domhandler": "^5.0.3", 1634 | "parse5": "^7.0.0" 1635 | }, 1636 | "funding": { 1637 | "url": "https://github.com/inikulin/parse5?sponsor=1" 1638 | } 1639 | }, 1640 | "node_modules/parse5-parser-stream": { 1641 | "version": "7.1.2", 1642 | "resolved": "https://registry.npmjs.org/parse5-parser-stream/-/parse5-parser-stream-7.1.2.tgz", 1643 | "integrity": "sha512-JyeQc9iwFLn5TbvvqACIF/VXG6abODeB3Fwmv/TGdLk2LfbWkaySGY72at4+Ty7EkPZj854u4CrICqNk2qIbow==", 1644 | "license": "MIT", 1645 | "dependencies": { 1646 | "parse5": "^7.0.0" 1647 | }, 1648 | "funding": { 1649 | "url": "https://github.com/inikulin/parse5?sponsor=1" 1650 | } 1651 | }, 1652 | "node_modules/path-key": { 1653 | "version": "3.1.1", 1654 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 1655 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 1656 | "dev": true, 1657 | "license": "MIT", 1658 | "engines": { 1659 | "node": ">=8" 1660 | } 1661 | }, 1662 | "node_modules/pathe": { 1663 | "version": "2.0.3", 1664 | "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", 1665 | "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", 1666 | "dev": true, 1667 | "license": "MIT" 1668 | }, 1669 | "node_modules/pathval": { 1670 | "version": "2.0.0", 1671 | "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.0.tgz", 1672 | "integrity": "sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==", 1673 | "dev": true, 1674 | "license": "MIT", 1675 | "engines": { 1676 | "node": ">= 14.16" 1677 | } 1678 | }, 1679 | "node_modules/picocolors": { 1680 | "version": "1.1.1", 1681 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", 1682 | "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", 1683 | "dev": true, 1684 | "license": "ISC" 1685 | }, 1686 | "node_modules/picomatch": { 1687 | "version": "4.0.2", 1688 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", 1689 | "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", 1690 | "dev": true, 1691 | "license": "MIT", 1692 | "engines": { 1693 | "node": ">=12" 1694 | }, 1695 | "funding": { 1696 | "url": "https://github.com/sponsors/jonschlinkert" 1697 | } 1698 | }, 1699 | "node_modules/pirates": { 1700 | "version": "4.0.6", 1701 | "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", 1702 | "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", 1703 | "dev": true, 1704 | "license": "MIT", 1705 | "engines": { 1706 | "node": ">= 6" 1707 | } 1708 | }, 1709 | "node_modules/postcss": { 1710 | "version": "8.5.2", 1711 | "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.2.tgz", 1712 | "integrity": "sha512-MjOadfU3Ys9KYoX0AdkBlFEF1Vx37uCCeN4ZHnmwm9FfpbsGWMZeBLMmmpY+6Ocqod7mkdZ0DT31OlbsFrLlkA==", 1713 | "dev": true, 1714 | "funding": [ 1715 | { 1716 | "type": "opencollective", 1717 | "url": "https://opencollective.com/postcss/" 1718 | }, 1719 | { 1720 | "type": "tidelift", 1721 | "url": "https://tidelift.com/funding/github/npm/postcss" 1722 | }, 1723 | { 1724 | "type": "github", 1725 | "url": "https://github.com/sponsors/ai" 1726 | } 1727 | ], 1728 | "license": "MIT", 1729 | "dependencies": { 1730 | "nanoid": "^3.3.8", 1731 | "picocolors": "^1.1.1", 1732 | "source-map-js": "^1.2.1" 1733 | }, 1734 | "engines": { 1735 | "node": "^10 || ^12 || >=14" 1736 | } 1737 | }, 1738 | "node_modules/postcss-load-config": { 1739 | "version": "6.0.1", 1740 | "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-6.0.1.tgz", 1741 | "integrity": "sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==", 1742 | "dev": true, 1743 | "funding": [ 1744 | { 1745 | "type": "opencollective", 1746 | "url": "https://opencollective.com/postcss/" 1747 | }, 1748 | { 1749 | "type": "github", 1750 | "url": "https://github.com/sponsors/ai" 1751 | } 1752 | ], 1753 | "license": "MIT", 1754 | "dependencies": { 1755 | "lilconfig": "^3.1.1" 1756 | }, 1757 | "engines": { 1758 | "node": ">= 18" 1759 | }, 1760 | "peerDependencies": { 1761 | "jiti": ">=1.21.0", 1762 | "postcss": ">=8.0.9", 1763 | "tsx": "^4.8.1", 1764 | "yaml": "^2.4.2" 1765 | }, 1766 | "peerDependenciesMeta": { 1767 | "jiti": { 1768 | "optional": true 1769 | }, 1770 | "postcss": { 1771 | "optional": true 1772 | }, 1773 | "tsx": { 1774 | "optional": true 1775 | }, 1776 | "yaml": { 1777 | "optional": true 1778 | } 1779 | } 1780 | }, 1781 | "node_modules/punycode": { 1782 | "version": "2.3.1", 1783 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", 1784 | "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", 1785 | "dev": true, 1786 | "license": "MIT", 1787 | "engines": { 1788 | "node": ">=6" 1789 | } 1790 | }, 1791 | "node_modules/readdirp": { 1792 | "version": "4.1.1", 1793 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.1.tgz", 1794 | "integrity": "sha512-h80JrZu/MHUZCyHu5ciuoI0+WxsCxzxJTILn6Fs8rxSnFPh+UVHYfeIxK1nVGugMqkfC4vJcBOYbkfkwYK0+gw==", 1795 | "dev": true, 1796 | "license": "MIT", 1797 | "engines": { 1798 | "node": ">= 14.18.0" 1799 | }, 1800 | "funding": { 1801 | "type": "individual", 1802 | "url": "https://paulmillr.com/funding/" 1803 | } 1804 | }, 1805 | "node_modules/resolve-from": { 1806 | "version": "5.0.0", 1807 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", 1808 | "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", 1809 | "dev": true, 1810 | "license": "MIT", 1811 | "engines": { 1812 | "node": ">=8" 1813 | } 1814 | }, 1815 | "node_modules/rollup": { 1816 | "version": "4.34.6", 1817 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.34.6.tgz", 1818 | "integrity": "sha512-wc2cBWqJgkU3Iz5oztRkQbfVkbxoz5EhnCGOrnJvnLnQ7O0WhQUYyv18qQI79O8L7DdHrrlJNeCHd4VGpnaXKQ==", 1819 | "dev": true, 1820 | "license": "MIT", 1821 | "dependencies": { 1822 | "@types/estree": "1.0.6" 1823 | }, 1824 | "bin": { 1825 | "rollup": "dist/bin/rollup" 1826 | }, 1827 | "engines": { 1828 | "node": ">=18.0.0", 1829 | "npm": ">=8.0.0" 1830 | }, 1831 | "optionalDependencies": { 1832 | "@rollup/rollup-android-arm-eabi": "4.34.6", 1833 | "@rollup/rollup-android-arm64": "4.34.6", 1834 | "@rollup/rollup-darwin-arm64": "4.34.6", 1835 | "@rollup/rollup-darwin-x64": "4.34.6", 1836 | "@rollup/rollup-freebsd-arm64": "4.34.6", 1837 | "@rollup/rollup-freebsd-x64": "4.34.6", 1838 | "@rollup/rollup-linux-arm-gnueabihf": "4.34.6", 1839 | "@rollup/rollup-linux-arm-musleabihf": "4.34.6", 1840 | "@rollup/rollup-linux-arm64-gnu": "4.34.6", 1841 | "@rollup/rollup-linux-arm64-musl": "4.34.6", 1842 | "@rollup/rollup-linux-loongarch64-gnu": "4.34.6", 1843 | "@rollup/rollup-linux-powerpc64le-gnu": "4.34.6", 1844 | "@rollup/rollup-linux-riscv64-gnu": "4.34.6", 1845 | "@rollup/rollup-linux-s390x-gnu": "4.34.6", 1846 | "@rollup/rollup-linux-x64-gnu": "4.34.6", 1847 | "@rollup/rollup-linux-x64-musl": "4.34.6", 1848 | "@rollup/rollup-win32-arm64-msvc": "4.34.6", 1849 | "@rollup/rollup-win32-ia32-msvc": "4.34.6", 1850 | "@rollup/rollup-win32-x64-msvc": "4.34.6", 1851 | "fsevents": "~2.3.2" 1852 | } 1853 | }, 1854 | "node_modules/safer-buffer": { 1855 | "version": "2.1.2", 1856 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 1857 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", 1858 | "license": "MIT" 1859 | }, 1860 | "node_modules/shebang-command": { 1861 | "version": "2.0.0", 1862 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 1863 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 1864 | "dev": true, 1865 | "license": "MIT", 1866 | "dependencies": { 1867 | "shebang-regex": "^3.0.0" 1868 | }, 1869 | "engines": { 1870 | "node": ">=8" 1871 | } 1872 | }, 1873 | "node_modules/shebang-regex": { 1874 | "version": "3.0.0", 1875 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 1876 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 1877 | "dev": true, 1878 | "license": "MIT", 1879 | "engines": { 1880 | "node": ">=8" 1881 | } 1882 | }, 1883 | "node_modules/siginfo": { 1884 | "version": "2.0.0", 1885 | "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", 1886 | "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", 1887 | "dev": true, 1888 | "license": "ISC" 1889 | }, 1890 | "node_modules/signal-exit": { 1891 | "version": "4.1.0", 1892 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", 1893 | "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", 1894 | "dev": true, 1895 | "license": "ISC", 1896 | "engines": { 1897 | "node": ">=14" 1898 | }, 1899 | "funding": { 1900 | "url": "https://github.com/sponsors/isaacs" 1901 | } 1902 | }, 1903 | "node_modules/source-map": { 1904 | "version": "0.8.0-beta.0", 1905 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz", 1906 | "integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==", 1907 | "dev": true, 1908 | "license": "BSD-3-Clause", 1909 | "dependencies": { 1910 | "whatwg-url": "^7.0.0" 1911 | }, 1912 | "engines": { 1913 | "node": ">= 8" 1914 | } 1915 | }, 1916 | "node_modules/source-map-js": { 1917 | "version": "1.2.1", 1918 | "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", 1919 | "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", 1920 | "dev": true, 1921 | "license": "BSD-3-Clause", 1922 | "engines": { 1923 | "node": ">=0.10.0" 1924 | } 1925 | }, 1926 | "node_modules/stackback": { 1927 | "version": "0.0.2", 1928 | "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", 1929 | "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", 1930 | "dev": true, 1931 | "license": "MIT" 1932 | }, 1933 | "node_modules/std-env": { 1934 | "version": "3.8.0", 1935 | "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.8.0.tgz", 1936 | "integrity": "sha512-Bc3YwwCB+OzldMxOXJIIvC6cPRWr/LxOp48CdQTOkPyk/t4JWWJbrilwBd7RJzKV8QW7tJkcgAmeuLLJugl5/w==", 1937 | "dev": true, 1938 | "license": "MIT" 1939 | }, 1940 | "node_modules/string-width": { 1941 | "version": "5.1.2", 1942 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", 1943 | "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", 1944 | "dev": true, 1945 | "license": "MIT", 1946 | "dependencies": { 1947 | "eastasianwidth": "^0.2.0", 1948 | "emoji-regex": "^9.2.2", 1949 | "strip-ansi": "^7.0.1" 1950 | }, 1951 | "engines": { 1952 | "node": ">=12" 1953 | }, 1954 | "funding": { 1955 | "url": "https://github.com/sponsors/sindresorhus" 1956 | } 1957 | }, 1958 | "node_modules/string-width-cjs": { 1959 | "name": "string-width", 1960 | "version": "4.2.3", 1961 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 1962 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 1963 | "dev": true, 1964 | "license": "MIT", 1965 | "dependencies": { 1966 | "emoji-regex": "^8.0.0", 1967 | "is-fullwidth-code-point": "^3.0.0", 1968 | "strip-ansi": "^6.0.1" 1969 | }, 1970 | "engines": { 1971 | "node": ">=8" 1972 | } 1973 | }, 1974 | "node_modules/string-width-cjs/node_modules/ansi-regex": { 1975 | "version": "5.0.1", 1976 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 1977 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 1978 | "dev": true, 1979 | "license": "MIT", 1980 | "engines": { 1981 | "node": ">=8" 1982 | } 1983 | }, 1984 | "node_modules/string-width-cjs/node_modules/emoji-regex": { 1985 | "version": "8.0.0", 1986 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 1987 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 1988 | "dev": true, 1989 | "license": "MIT" 1990 | }, 1991 | "node_modules/string-width-cjs/node_modules/strip-ansi": { 1992 | "version": "6.0.1", 1993 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 1994 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 1995 | "dev": true, 1996 | "license": "MIT", 1997 | "dependencies": { 1998 | "ansi-regex": "^5.0.1" 1999 | }, 2000 | "engines": { 2001 | "node": ">=8" 2002 | } 2003 | }, 2004 | "node_modules/strip-ansi": { 2005 | "version": "7.1.0", 2006 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", 2007 | "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", 2008 | "dev": true, 2009 | "license": "MIT", 2010 | "dependencies": { 2011 | "ansi-regex": "^6.0.1" 2012 | }, 2013 | "engines": { 2014 | "node": ">=12" 2015 | }, 2016 | "funding": { 2017 | "url": "https://github.com/chalk/strip-ansi?sponsor=1" 2018 | } 2019 | }, 2020 | "node_modules/strip-ansi-cjs": { 2021 | "name": "strip-ansi", 2022 | "version": "6.0.1", 2023 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 2024 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 2025 | "dev": true, 2026 | "license": "MIT", 2027 | "dependencies": { 2028 | "ansi-regex": "^5.0.1" 2029 | }, 2030 | "engines": { 2031 | "node": ">=8" 2032 | } 2033 | }, 2034 | "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { 2035 | "version": "5.0.1", 2036 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 2037 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 2038 | "dev": true, 2039 | "license": "MIT", 2040 | "engines": { 2041 | "node": ">=8" 2042 | } 2043 | }, 2044 | "node_modules/sucrase": { 2045 | "version": "3.35.0", 2046 | "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.0.tgz", 2047 | "integrity": "sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==", 2048 | "dev": true, 2049 | "license": "MIT", 2050 | "dependencies": { 2051 | "@jridgewell/gen-mapping": "^0.3.2", 2052 | "commander": "^4.0.0", 2053 | "glob": "^10.3.10", 2054 | "lines-and-columns": "^1.1.6", 2055 | "mz": "^2.7.0", 2056 | "pirates": "^4.0.1", 2057 | "ts-interface-checker": "^0.1.9" 2058 | }, 2059 | "bin": { 2060 | "sucrase": "bin/sucrase", 2061 | "sucrase-node": "bin/sucrase-node" 2062 | }, 2063 | "engines": { 2064 | "node": ">=16 || 14 >=14.17" 2065 | } 2066 | }, 2067 | "node_modules/sucrase/node_modules/glob": { 2068 | "version": "10.4.5", 2069 | "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", 2070 | "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", 2071 | "dev": true, 2072 | "license": "ISC", 2073 | "dependencies": { 2074 | "foreground-child": "^3.1.0", 2075 | "jackspeak": "^3.1.2", 2076 | "minimatch": "^9.0.4", 2077 | "minipass": "^7.1.2", 2078 | "package-json-from-dist": "^1.0.0", 2079 | "path-scurry": "^1.11.1" 2080 | }, 2081 | "bin": { 2082 | "glob": "dist/esm/bin.mjs" 2083 | }, 2084 | "funding": { 2085 | "url": "https://github.com/sponsors/isaacs" 2086 | } 2087 | }, 2088 | "node_modules/sucrase/node_modules/jackspeak": { 2089 | "version": "3.4.3", 2090 | "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", 2091 | "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", 2092 | "dev": true, 2093 | "license": "BlueOak-1.0.0", 2094 | "dependencies": { 2095 | "@isaacs/cliui": "^8.0.2" 2096 | }, 2097 | "funding": { 2098 | "url": "https://github.com/sponsors/isaacs" 2099 | }, 2100 | "optionalDependencies": { 2101 | "@pkgjs/parseargs": "^0.11.0" 2102 | } 2103 | }, 2104 | "node_modules/sucrase/node_modules/lru-cache": { 2105 | "version": "10.4.3", 2106 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", 2107 | "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", 2108 | "dev": true, 2109 | "license": "ISC" 2110 | }, 2111 | "node_modules/sucrase/node_modules/minimatch": { 2112 | "version": "9.0.5", 2113 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", 2114 | "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", 2115 | "dev": true, 2116 | "license": "ISC", 2117 | "dependencies": { 2118 | "brace-expansion": "^2.0.1" 2119 | }, 2120 | "engines": { 2121 | "node": ">=16 || 14 >=14.17" 2122 | }, 2123 | "funding": { 2124 | "url": "https://github.com/sponsors/isaacs" 2125 | } 2126 | }, 2127 | "node_modules/sucrase/node_modules/path-scurry": { 2128 | "version": "1.11.1", 2129 | "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", 2130 | "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", 2131 | "dev": true, 2132 | "license": "BlueOak-1.0.0", 2133 | "dependencies": { 2134 | "lru-cache": "^10.2.0", 2135 | "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" 2136 | }, 2137 | "engines": { 2138 | "node": ">=16 || 14 >=14.18" 2139 | }, 2140 | "funding": { 2141 | "url": "https://github.com/sponsors/isaacs" 2142 | } 2143 | }, 2144 | "node_modules/thenify": { 2145 | "version": "3.3.1", 2146 | "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", 2147 | "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", 2148 | "dev": true, 2149 | "license": "MIT", 2150 | "dependencies": { 2151 | "any-promise": "^1.0.0" 2152 | } 2153 | }, 2154 | "node_modules/thenify-all": { 2155 | "version": "1.6.0", 2156 | "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", 2157 | "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", 2158 | "dev": true, 2159 | "license": "MIT", 2160 | "dependencies": { 2161 | "thenify": ">= 3.1.0 < 4" 2162 | }, 2163 | "engines": { 2164 | "node": ">=0.8" 2165 | } 2166 | }, 2167 | "node_modules/tinybench": { 2168 | "version": "2.9.0", 2169 | "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz", 2170 | "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==", 2171 | "dev": true, 2172 | "license": "MIT" 2173 | }, 2174 | "node_modules/tinyexec": { 2175 | "version": "0.3.2", 2176 | "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz", 2177 | "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==", 2178 | "dev": true, 2179 | "license": "MIT" 2180 | }, 2181 | "node_modules/tinyglobby": { 2182 | "version": "0.2.10", 2183 | "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.10.tgz", 2184 | "integrity": "sha512-Zc+8eJlFMvgatPZTl6A9L/yht8QqdmUNtURHaKZLmKBE12hNPSrqNkUp2cs3M/UKmNVVAMFQYSjYIVHDjW5zew==", 2185 | "dev": true, 2186 | "license": "MIT", 2187 | "dependencies": { 2188 | "fdir": "^6.4.2", 2189 | "picomatch": "^4.0.2" 2190 | }, 2191 | "engines": { 2192 | "node": ">=12.0.0" 2193 | } 2194 | }, 2195 | "node_modules/tinypool": { 2196 | "version": "1.0.2", 2197 | "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.0.2.tgz", 2198 | "integrity": "sha512-al6n+QEANGFOMf/dmUMsuS5/r9B06uwlyNjZZql/zv8J7ybHCgoihBNORZCY2mzUuAnomQa2JdhyHKzZxPCrFA==", 2199 | "dev": true, 2200 | "license": "MIT", 2201 | "engines": { 2202 | "node": "^18.0.0 || >=20.0.0" 2203 | } 2204 | }, 2205 | "node_modules/tinyrainbow": { 2206 | "version": "2.0.0", 2207 | "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-2.0.0.tgz", 2208 | "integrity": "sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==", 2209 | "dev": true, 2210 | "license": "MIT", 2211 | "engines": { 2212 | "node": ">=14.0.0" 2213 | } 2214 | }, 2215 | "node_modules/tinyspy": { 2216 | "version": "3.0.2", 2217 | "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-3.0.2.tgz", 2218 | "integrity": "sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==", 2219 | "dev": true, 2220 | "license": "MIT", 2221 | "engines": { 2222 | "node": ">=14.0.0" 2223 | } 2224 | }, 2225 | "node_modules/tr46": { 2226 | "version": "1.0.1", 2227 | "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", 2228 | "integrity": "sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==", 2229 | "dev": true, 2230 | "license": "MIT", 2231 | "dependencies": { 2232 | "punycode": "^2.1.0" 2233 | } 2234 | }, 2235 | "node_modules/tree-kill": { 2236 | "version": "1.2.2", 2237 | "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", 2238 | "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", 2239 | "dev": true, 2240 | "license": "MIT", 2241 | "bin": { 2242 | "tree-kill": "cli.js" 2243 | } 2244 | }, 2245 | "node_modules/ts-interface-checker": { 2246 | "version": "0.1.13", 2247 | "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", 2248 | "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", 2249 | "dev": true, 2250 | "license": "Apache-2.0" 2251 | }, 2252 | "node_modules/tsup": { 2253 | "version": "8.3.6", 2254 | "resolved": "https://registry.npmjs.org/tsup/-/tsup-8.3.6.tgz", 2255 | "integrity": "sha512-XkVtlDV/58S9Ye0JxUUTcrQk4S+EqlOHKzg6Roa62rdjL1nGWNUstG0xgI4vanHdfIpjP448J8vlN0oK6XOJ5g==", 2256 | "dev": true, 2257 | "license": "MIT", 2258 | "dependencies": { 2259 | "bundle-require": "^5.0.0", 2260 | "cac": "^6.7.14", 2261 | "chokidar": "^4.0.1", 2262 | "consola": "^3.2.3", 2263 | "debug": "^4.3.7", 2264 | "esbuild": "^0.24.0", 2265 | "joycon": "^3.1.1", 2266 | "picocolors": "^1.1.1", 2267 | "postcss-load-config": "^6.0.1", 2268 | "resolve-from": "^5.0.0", 2269 | "rollup": "^4.24.0", 2270 | "source-map": "0.8.0-beta.0", 2271 | "sucrase": "^3.35.0", 2272 | "tinyexec": "^0.3.1", 2273 | "tinyglobby": "^0.2.9", 2274 | "tree-kill": "^1.2.2" 2275 | }, 2276 | "bin": { 2277 | "tsup": "dist/cli-default.js", 2278 | "tsup-node": "dist/cli-node.js" 2279 | }, 2280 | "engines": { 2281 | "node": ">=18" 2282 | }, 2283 | "peerDependencies": { 2284 | "@microsoft/api-extractor": "^7.36.0", 2285 | "@swc/core": "^1", 2286 | "postcss": "^8.4.12", 2287 | "typescript": ">=4.5.0" 2288 | }, 2289 | "peerDependenciesMeta": { 2290 | "@microsoft/api-extractor": { 2291 | "optional": true 2292 | }, 2293 | "@swc/core": { 2294 | "optional": true 2295 | }, 2296 | "postcss": { 2297 | "optional": true 2298 | }, 2299 | "typescript": { 2300 | "optional": true 2301 | } 2302 | } 2303 | }, 2304 | "node_modules/typescript": { 2305 | "version": "5.7.3", 2306 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz", 2307 | "integrity": "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==", 2308 | "dev": true, 2309 | "license": "Apache-2.0", 2310 | "bin": { 2311 | "tsc": "bin/tsc", 2312 | "tsserver": "bin/tsserver" 2313 | }, 2314 | "engines": { 2315 | "node": ">=14.17" 2316 | } 2317 | }, 2318 | "node_modules/undici": { 2319 | "version": "6.21.1", 2320 | "resolved": "https://registry.npmjs.org/undici/-/undici-6.21.1.tgz", 2321 | "integrity": "sha512-q/1rj5D0/zayJB2FraXdaWxbhWiNKDvu8naDT2dl1yTlvJp4BLtOcp2a5BvgGNQpYYJzau7tf1WgKv3b+7mqpQ==", 2322 | "license": "MIT", 2323 | "engines": { 2324 | "node": ">=18.17" 2325 | } 2326 | }, 2327 | "node_modules/undici-types": { 2328 | "version": "6.20.0", 2329 | "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", 2330 | "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", 2331 | "dev": true, 2332 | "license": "MIT" 2333 | }, 2334 | "node_modules/vite": { 2335 | "version": "6.1.0", 2336 | "resolved": "https://registry.npmjs.org/vite/-/vite-6.1.0.tgz", 2337 | "integrity": "sha512-RjjMipCKVoR4hVfPY6GQTgveinjNuyLw+qruksLDvA5ktI1150VmcMBKmQaEWJhg/j6Uaf6dNCNA0AfdzUb/hQ==", 2338 | "dev": true, 2339 | "license": "MIT", 2340 | "dependencies": { 2341 | "esbuild": "^0.24.2", 2342 | "postcss": "^8.5.1", 2343 | "rollup": "^4.30.1" 2344 | }, 2345 | "bin": { 2346 | "vite": "bin/vite.js" 2347 | }, 2348 | "engines": { 2349 | "node": "^18.0.0 || ^20.0.0 || >=22.0.0" 2350 | }, 2351 | "funding": { 2352 | "url": "https://github.com/vitejs/vite?sponsor=1" 2353 | }, 2354 | "optionalDependencies": { 2355 | "fsevents": "~2.3.3" 2356 | }, 2357 | "peerDependencies": { 2358 | "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", 2359 | "jiti": ">=1.21.0", 2360 | "less": "*", 2361 | "lightningcss": "^1.21.0", 2362 | "sass": "*", 2363 | "sass-embedded": "*", 2364 | "stylus": "*", 2365 | "sugarss": "*", 2366 | "terser": "^5.16.0", 2367 | "tsx": "^4.8.1", 2368 | "yaml": "^2.4.2" 2369 | }, 2370 | "peerDependenciesMeta": { 2371 | "@types/node": { 2372 | "optional": true 2373 | }, 2374 | "jiti": { 2375 | "optional": true 2376 | }, 2377 | "less": { 2378 | "optional": true 2379 | }, 2380 | "lightningcss": { 2381 | "optional": true 2382 | }, 2383 | "sass": { 2384 | "optional": true 2385 | }, 2386 | "sass-embedded": { 2387 | "optional": true 2388 | }, 2389 | "stylus": { 2390 | "optional": true 2391 | }, 2392 | "sugarss": { 2393 | "optional": true 2394 | }, 2395 | "terser": { 2396 | "optional": true 2397 | }, 2398 | "tsx": { 2399 | "optional": true 2400 | }, 2401 | "yaml": { 2402 | "optional": true 2403 | } 2404 | } 2405 | }, 2406 | "node_modules/vite-node": { 2407 | "version": "3.0.5", 2408 | "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-3.0.5.tgz", 2409 | "integrity": "sha512-02JEJl7SbtwSDJdYS537nU6l+ktdvcREfLksk/NDAqtdKWGqHl+joXzEubHROmS3E6pip+Xgu2tFezMu75jH7A==", 2410 | "dev": true, 2411 | "license": "MIT", 2412 | "dependencies": { 2413 | "cac": "^6.7.14", 2414 | "debug": "^4.4.0", 2415 | "es-module-lexer": "^1.6.0", 2416 | "pathe": "^2.0.2", 2417 | "vite": "^5.0.0 || ^6.0.0" 2418 | }, 2419 | "bin": { 2420 | "vite-node": "vite-node.mjs" 2421 | }, 2422 | "engines": { 2423 | "node": "^18.0.0 || ^20.0.0 || >=22.0.0" 2424 | }, 2425 | "funding": { 2426 | "url": "https://opencollective.com/vitest" 2427 | } 2428 | }, 2429 | "node_modules/vitest": { 2430 | "version": "3.0.5", 2431 | "resolved": "https://registry.npmjs.org/vitest/-/vitest-3.0.5.tgz", 2432 | "integrity": "sha512-4dof+HvqONw9bvsYxtkfUp2uHsTN9bV2CZIi1pWgoFpL1Lld8LA1ka9q/ONSsoScAKG7NVGf2stJTI7XRkXb2Q==", 2433 | "dev": true, 2434 | "license": "MIT", 2435 | "dependencies": { 2436 | "@vitest/expect": "3.0.5", 2437 | "@vitest/mocker": "3.0.5", 2438 | "@vitest/pretty-format": "^3.0.5", 2439 | "@vitest/runner": "3.0.5", 2440 | "@vitest/snapshot": "3.0.5", 2441 | "@vitest/spy": "3.0.5", 2442 | "@vitest/utils": "3.0.5", 2443 | "chai": "^5.1.2", 2444 | "debug": "^4.4.0", 2445 | "expect-type": "^1.1.0", 2446 | "magic-string": "^0.30.17", 2447 | "pathe": "^2.0.2", 2448 | "std-env": "^3.8.0", 2449 | "tinybench": "^2.9.0", 2450 | "tinyexec": "^0.3.2", 2451 | "tinypool": "^1.0.2", 2452 | "tinyrainbow": "^2.0.0", 2453 | "vite": "^5.0.0 || ^6.0.0", 2454 | "vite-node": "3.0.5", 2455 | "why-is-node-running": "^2.3.0" 2456 | }, 2457 | "bin": { 2458 | "vitest": "vitest.mjs" 2459 | }, 2460 | "engines": { 2461 | "node": "^18.0.0 || ^20.0.0 || >=22.0.0" 2462 | }, 2463 | "funding": { 2464 | "url": "https://opencollective.com/vitest" 2465 | }, 2466 | "peerDependencies": { 2467 | "@edge-runtime/vm": "*", 2468 | "@types/debug": "^4.1.12", 2469 | "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", 2470 | "@vitest/browser": "3.0.5", 2471 | "@vitest/ui": "3.0.5", 2472 | "happy-dom": "*", 2473 | "jsdom": "*" 2474 | }, 2475 | "peerDependenciesMeta": { 2476 | "@edge-runtime/vm": { 2477 | "optional": true 2478 | }, 2479 | "@types/debug": { 2480 | "optional": true 2481 | }, 2482 | "@types/node": { 2483 | "optional": true 2484 | }, 2485 | "@vitest/browser": { 2486 | "optional": true 2487 | }, 2488 | "@vitest/ui": { 2489 | "optional": true 2490 | }, 2491 | "happy-dom": { 2492 | "optional": true 2493 | }, 2494 | "jsdom": { 2495 | "optional": true 2496 | } 2497 | } 2498 | }, 2499 | "node_modules/webidl-conversions": { 2500 | "version": "4.0.2", 2501 | "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", 2502 | "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==", 2503 | "dev": true, 2504 | "license": "BSD-2-Clause" 2505 | }, 2506 | "node_modules/whatwg-encoding": { 2507 | "version": "3.1.1", 2508 | "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-3.1.1.tgz", 2509 | "integrity": "sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==", 2510 | "license": "MIT", 2511 | "dependencies": { 2512 | "iconv-lite": "0.6.3" 2513 | }, 2514 | "engines": { 2515 | "node": ">=18" 2516 | } 2517 | }, 2518 | "node_modules/whatwg-mimetype": { 2519 | "version": "4.0.0", 2520 | "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz", 2521 | "integrity": "sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==", 2522 | "license": "MIT", 2523 | "engines": { 2524 | "node": ">=18" 2525 | } 2526 | }, 2527 | "node_modules/whatwg-url": { 2528 | "version": "7.1.0", 2529 | "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz", 2530 | "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==", 2531 | "dev": true, 2532 | "license": "MIT", 2533 | "dependencies": { 2534 | "lodash.sortby": "^4.7.0", 2535 | "tr46": "^1.0.1", 2536 | "webidl-conversions": "^4.0.2" 2537 | } 2538 | }, 2539 | "node_modules/which": { 2540 | "version": "2.0.2", 2541 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 2542 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 2543 | "dev": true, 2544 | "license": "ISC", 2545 | "dependencies": { 2546 | "isexe": "^2.0.0" 2547 | }, 2548 | "bin": { 2549 | "node-which": "bin/node-which" 2550 | }, 2551 | "engines": { 2552 | "node": ">= 8" 2553 | } 2554 | }, 2555 | "node_modules/why-is-node-running": { 2556 | "version": "2.3.0", 2557 | "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", 2558 | "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==", 2559 | "dev": true, 2560 | "license": "MIT", 2561 | "dependencies": { 2562 | "siginfo": "^2.0.0", 2563 | "stackback": "0.0.2" 2564 | }, 2565 | "bin": { 2566 | "why-is-node-running": "cli.js" 2567 | }, 2568 | "engines": { 2569 | "node": ">=8" 2570 | } 2571 | }, 2572 | "node_modules/wrap-ansi": { 2573 | "version": "8.1.0", 2574 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", 2575 | "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", 2576 | "dev": true, 2577 | "license": "MIT", 2578 | "dependencies": { 2579 | "ansi-styles": "^6.1.0", 2580 | "string-width": "^5.0.1", 2581 | "strip-ansi": "^7.0.1" 2582 | }, 2583 | "engines": { 2584 | "node": ">=12" 2585 | }, 2586 | "funding": { 2587 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 2588 | } 2589 | }, 2590 | "node_modules/wrap-ansi-cjs": { 2591 | "name": "wrap-ansi", 2592 | "version": "7.0.0", 2593 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", 2594 | "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", 2595 | "dev": true, 2596 | "license": "MIT", 2597 | "dependencies": { 2598 | "ansi-styles": "^4.0.0", 2599 | "string-width": "^4.1.0", 2600 | "strip-ansi": "^6.0.0" 2601 | }, 2602 | "engines": { 2603 | "node": ">=10" 2604 | }, 2605 | "funding": { 2606 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 2607 | } 2608 | }, 2609 | "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { 2610 | "version": "5.0.1", 2611 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 2612 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 2613 | "dev": true, 2614 | "license": "MIT", 2615 | "engines": { 2616 | "node": ">=8" 2617 | } 2618 | }, 2619 | "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { 2620 | "version": "4.3.0", 2621 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 2622 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 2623 | "dev": true, 2624 | "license": "MIT", 2625 | "dependencies": { 2626 | "color-convert": "^2.0.1" 2627 | }, 2628 | "engines": { 2629 | "node": ">=8" 2630 | }, 2631 | "funding": { 2632 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 2633 | } 2634 | }, 2635 | "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { 2636 | "version": "8.0.0", 2637 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 2638 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 2639 | "dev": true, 2640 | "license": "MIT" 2641 | }, 2642 | "node_modules/wrap-ansi-cjs/node_modules/string-width": { 2643 | "version": "4.2.3", 2644 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 2645 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 2646 | "dev": true, 2647 | "license": "MIT", 2648 | "dependencies": { 2649 | "emoji-regex": "^8.0.0", 2650 | "is-fullwidth-code-point": "^3.0.0", 2651 | "strip-ansi": "^6.0.1" 2652 | }, 2653 | "engines": { 2654 | "node": ">=8" 2655 | } 2656 | }, 2657 | "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { 2658 | "version": "6.0.1", 2659 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 2660 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 2661 | "dev": true, 2662 | "license": "MIT", 2663 | "dependencies": { 2664 | "ansi-regex": "^5.0.1" 2665 | }, 2666 | "engines": { 2667 | "node": ">=8" 2668 | } 2669 | } 2670 | } 2671 | } 2672 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@wrtnlabs/web-content-extractor", 3 | "version": "3.2.4", 4 | "description": "library for extracting content from HTML strings", 5 | "type": "module", 6 | "main": "./dist/lib.cjs", 7 | "module": "./dist/lib.js", 8 | "types": "./dist/lib.d.ts", 9 | "files": [ 10 | "dist" 11 | ], 12 | "engines": { 13 | "node": ">=18.0.0" 14 | }, 15 | "scripts": { 16 | "test": "vitest", 17 | "build": "tsup" 18 | }, 19 | "repository": { 20 | "type": "git", 21 | "url": "git+https://github.com/wrtnlabs/web-content-extractor.git" 22 | }, 23 | "keywords": [ 24 | "web" 25 | ], 26 | "author": "Shrimp ", 27 | "license": "MIT", 28 | "bugs": { 29 | "url": "https://github.com/wrtnlabs/web-content-extractor/issues" 30 | }, 31 | "homepage": "https://github.com/wrtnlabs/web-content-extractor#readme", 32 | "devDependencies": { 33 | "@types/node": "^22.13.2", 34 | "tsup": "^8.3.6", 35 | "typescript": "^5.7.3", 36 | "vitest": "^3.0.5" 37 | }, 38 | "dependencies": { 39 | "cheerio": "^1.0.0", 40 | "domelementtype": "^2.3.0", 41 | "domhandler": "^5.0.3" 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/compute-text-density.test.ts: -------------------------------------------------------------------------------- 1 | import * as cheerio from "cheerio"; 2 | import { expect, test } from "vitest"; 3 | import { computeTextDensity } from "./compute-text-density.js"; 4 | 5 | test("density computation should correct", () => { 6 | const html = `
12345

67890

`; 7 | const $ = cheerio.load(html); 8 | 9 | const body = $("body")[0]; 10 | const div = $("div")[0]; 11 | const p = $("p")[0]; 12 | const stats = computeTextDensity(body); 13 | 14 | expect(stats.get(body)!.density).toBe(5); 15 | expect(stats.get(div)!.density).toBe(10); 16 | expect(stats.get(p)!.density).toBe(5); 17 | }); 18 | -------------------------------------------------------------------------------- /src/compute-text-density.ts: -------------------------------------------------------------------------------- 1 | import { ElementType } from "domelementtype"; 2 | import * as domhandler from "domhandler"; 3 | 4 | export interface TextDensityStat { 5 | order: number; 6 | element: domhandler.AnyNode; 7 | density: number; 8 | densitySum: number; 9 | /** 10 | * The number of **child** tags. 11 | */ 12 | tagCount: number; 13 | /** 14 | * The total text length of the node including all descendants. 15 | */ 16 | textLength: number; 17 | /** 18 | * The number of **child** link tags. 19 | */ 20 | linkTagCount: number; 21 | /** 22 | * The total link text length of the node including all descendants. 23 | */ 24 | linkTextLength: number; 25 | } 26 | 27 | export function computeTextDensity( 28 | root: domhandler.AnyNode 29 | ): Map { 30 | const stats = collectStats(root); 31 | 32 | if (stats.size === 0) { 33 | return stats; 34 | } 35 | 36 | const rootTextLength = stats.get(root)!.textLength; 37 | const rootLinkTextLength = stats.get(root)!.linkTextLength; 38 | const rootLinkTextRatio = rootLinkTextLength / Math.max(1, rootTextLength); 39 | 40 | for (const stat of stats.values()) { 41 | stat.density = computeTextDensityOfNode(stat, rootLinkTextRatio); 42 | 43 | const parent = stat.element.parent; 44 | 45 | if (parent == null) { 46 | continue; 47 | } 48 | 49 | const parentStat = stats.get(parent); 50 | 51 | if (parentStat == null) { 52 | continue; 53 | } 54 | 55 | parentStat.densitySum += stat.density; 56 | } 57 | 58 | return stats; 59 | } 60 | 61 | function computeTextDensityOfNode( 62 | stat: TextDensityStat, 63 | rootLinkTextRatio: number 64 | ): number { 65 | if (stat.element.type === ElementType.Tag && stat.element.name === "a") { 66 | return computeLinkTextDensityOfNode(stat, rootLinkTextRatio); 67 | } 68 | 69 | return computeNormalTextDensityOfNode(stat); 70 | } 71 | 72 | function computeNormalTextDensityOfNode(stat: TextDensityStat): number { 73 | const tagCount = Math.max(1, stat.tagCount); 74 | const textLength = stat.textLength; 75 | return textLength / tagCount; 76 | } 77 | 78 | function computeLinkTextDensityOfNode( 79 | stat: TextDensityStat, 80 | rootLinkTextRatio: number 81 | ): number { 82 | const tagCount = Math.max(1, stat.tagCount); 83 | const textLength = stat.textLength; 84 | const linkTagCount = Math.max(1, stat.linkTagCount); 85 | const linkTextLength = stat.linkTextLength; 86 | 87 | const textDensity = textLength / tagCount; 88 | const logBase = Math.log( 89 | (textLength / Math.max(1, textLength - linkTextLength)) * linkTextLength + 90 | rootLinkTextRatio * textLength + 91 | 1e-3 92 | ); 93 | const logArg = 94 | ((textLength / Math.max(1, linkTextLength)) * tagCount) / linkTagCount; 95 | 96 | function logWithBase(x: number, base: number): number { 97 | return Math.log(x) / Math.log(base); 98 | } 99 | 100 | return textDensity * logWithBase(Math.max(1, logArg), Math.max(2, logBase)); 101 | } 102 | 103 | function collectStats( 104 | root: domhandler.AnyNode 105 | ): Map { 106 | const stats = new Map(); 107 | 108 | if (root != null) { 109 | augmentStats(root, stats); 110 | } 111 | 112 | return stats; 113 | } 114 | 115 | function augmentStats( 116 | node: domhandler.AnyNode, 117 | stats: Map 118 | ) { 119 | if (node.type !== ElementType.Tag) { 120 | return; 121 | } 122 | 123 | const textLength = computeTextLengthOfNode(node); 124 | const isLink = node.type === ElementType.Tag && node.name === "a"; 125 | 126 | stats.set(node, { 127 | order: stats.size, 128 | element: node, 129 | density: 0, 130 | densitySum: 0, 131 | tagCount: 0, 132 | textLength, 133 | linkTagCount: 0, 134 | linkTextLength: isLink ? textLength : 0, 135 | }); 136 | 137 | let parent = node.parent; 138 | 139 | while (parent != null && parent.type === ElementType.Tag) { 140 | const stat = stats.get(parent); 141 | 142 | if (stat == null) { 143 | break; 144 | } 145 | 146 | stat.tagCount += 1; 147 | stat.textLength += textLength; 148 | 149 | if (isLink) { 150 | stat.linkTagCount += 1; 151 | stat.linkTextLength += textLength; 152 | } 153 | 154 | parent = parent.parent; 155 | } 156 | 157 | for (const child of node.children) { 158 | augmentStats(child, stats); 159 | } 160 | } 161 | 162 | function computeTextLengthOfNode(node: domhandler.Element): number { 163 | let length = 0; 164 | 165 | for (const child of node.children) { 166 | if (child.type !== ElementType.Text) { 167 | continue; 168 | } 169 | 170 | const textLength = child.data.trim().length; 171 | 172 | if (textLength === 0) { 173 | continue; 174 | } 175 | 176 | if (length !== 0) { 177 | length += 1; 178 | } 179 | 180 | length += textLength; 181 | } 182 | 183 | return length; 184 | } 185 | -------------------------------------------------------------------------------- /src/extract-content.ts: -------------------------------------------------------------------------------- 1 | import { ElementType } from "domelementtype"; 2 | import * as domhandler from "domhandler"; 3 | import { TextDensityStat } from "./compute-text-density.js"; 4 | 5 | export function extractContentFromTextDensityMap( 6 | root: domhandler.AnyNode, 7 | map: Map 8 | ): domhandler.AnyNode[] { 9 | if (map.size === 0) { 10 | return []; 11 | } 12 | 13 | const threshold = computeThreshold(map); 14 | const contents: domhandler.AnyNode[] = []; 15 | 16 | function markAsContent(node: domhandler.AnyNode): void { 17 | // Ignore the node if one of its parent is already in the contents 18 | for (const content of contents) { 19 | if (content === node) { 20 | return; 21 | } 22 | 23 | if (isParentOf(content, node)) { 24 | return; 25 | } 26 | } 27 | 28 | // Collect all the indices of the children of the node in the contents 29 | const childIndices: number[] = []; 30 | 31 | for (let i = 0; i < contents.length; ++i) { 32 | if (isParentOf(node, contents[i])) { 33 | childIndices.push(i); 34 | } 35 | } 36 | 37 | // Remove the children from the contents 38 | for (let index = childIndices.length - 1; 0 <= index; --index) { 39 | contents.splice(childIndices[index], 1); 40 | } 41 | 42 | // Add the node to the contents 43 | contents.push(node); 44 | } 45 | 46 | extractContentFromNode(root, map, threshold, markAsContent); 47 | 48 | return contents; 49 | } 50 | 51 | function computeThreshold( 52 | map: Map 53 | ): number { 54 | const maximumDensitySumStat = Array.from(map.values()).reduce( 55 | (prev, current) => (prev.densitySum < current.densitySum ? current : prev) 56 | ); 57 | 58 | let candidateStats: TextDensityStat[] = [maximumDensitySumStat]; 59 | let parent = maximumDensitySumStat.element.parent; 60 | 61 | while (parent != null && parent.type === ElementType.Tag) { 62 | const stat = map.get(parent); 63 | 64 | if (stat == null) { 65 | break; 66 | } 67 | 68 | candidateStats.push(stat); 69 | parent = parent.parent; 70 | } 71 | 72 | const minimumDensityStatInCandidateStats = candidateStats.reduce( 73 | (prev, current) => (prev.density < current.density ? prev : current) 74 | ); 75 | 76 | return minimumDensityStatInCandidateStats.density; 77 | } 78 | 79 | function extractContentFromNode( 80 | node: domhandler.AnyNode, 81 | map: Map, 82 | threshold: number, 83 | markAsContent: (node: domhandler.AnyNode) => void 84 | ): void { 85 | if (node.type !== ElementType.Tag) { 86 | return; 87 | } 88 | 89 | const stat = map.get(node); 90 | 91 | if (stat == null) { 92 | return; 93 | } 94 | 95 | if (stat.density < threshold) { 96 | return; 97 | } 98 | 99 | const maxDensitySumDescendant = findMaxDensitySumInDescendants(node, map); 100 | 101 | if (maxDensitySumDescendant == null) { 102 | return; 103 | } 104 | 105 | if (maxDensitySumDescendant.type !== ElementType.Tag) { 106 | return; 107 | } 108 | 109 | markAsContent(maxDensitySumDescendant); 110 | 111 | for (const child of node.children) { 112 | extractContentFromNode(child, map, threshold, markAsContent); 113 | } 114 | } 115 | 116 | function findMaxDensitySumInDescendants( 117 | node: domhandler.AnyNode, 118 | map: Map 119 | ): domhandler.AnyNode | null { 120 | const stat = map.get(node)!; 121 | const element = stat.element; 122 | 123 | if (element.type !== ElementType.Tag) { 124 | return null; 125 | } 126 | 127 | let maxDensitySum = stat.densitySum; 128 | let maxDensitySumDescendant = node; 129 | 130 | for (const child of element.children) { 131 | if (child.type !== ElementType.Tag) { 132 | continue; 133 | } 134 | 135 | const descendant = findMaxDensitySumInDescendants(child, map); 136 | 137 | if (descendant == null) { 138 | continue; 139 | } 140 | 141 | const stat = map.get(descendant)!; 142 | 143 | if (maxDensitySum < stat.densitySum) { 144 | maxDensitySum = stat.densitySum; 145 | maxDensitySumDescendant = descendant; 146 | } 147 | } 148 | 149 | return maxDensitySumDescendant; 150 | } 151 | 152 | function isParentOf( 153 | parent: domhandler.AnyNode, 154 | child: domhandler.AnyNode 155 | ): boolean { 156 | let childParent = child.parent; 157 | 158 | while (childParent != null) { 159 | if (childParent === parent) { 160 | return true; 161 | } 162 | 163 | childParent = childParent.parent; 164 | } 165 | 166 | return false; 167 | } 168 | -------------------------------------------------------------------------------- /src/extract-head.ts: -------------------------------------------------------------------------------- 1 | import * as cheerio from "cheerio"; 2 | 3 | export function extractTitle($: cheerio.CheerioAPI): string | undefined { 4 | const title = $("title").first().text(); 5 | 6 | return title.trim().length > 0 ? title : undefined; 7 | } 8 | 9 | export function extractDescription($: cheerio.CheerioAPI): string | undefined { 10 | const description = $("meta[name='description']").first().attr("content"); 11 | 12 | if (description == null) { 13 | return undefined; 14 | } 15 | 16 | return description.trim().length > 0 ? description : undefined; 17 | } 18 | -------------------------------------------------------------------------------- /src/extract-link.ts: -------------------------------------------------------------------------------- 1 | import { ElementType } from "domelementtype"; 2 | import * as domhandler from "domhandler"; 3 | import { extractText } from "./extract-text.js"; 4 | 5 | /** 6 | * Represents a link. 7 | */ 8 | export interface Link { 9 | /** 10 | * The URL of the link. 11 | */ 12 | url: string; 13 | 14 | /** 15 | * The content of the link. 16 | */ 17 | content: string; 18 | } 19 | 20 | /** 21 | * Extracts links from the contents. 22 | * 23 | * @param contents - The contents to extract links from 24 | * 25 | * @returns The extracted links 26 | */ 27 | export function extractLink(contents: domhandler.AnyNode[]): Link[] { 28 | const links: Link[] = []; 29 | 30 | for (const content of contents) { 31 | extractLinkFromNode(content, links); 32 | } 33 | 34 | return links; 35 | } 36 | 37 | function extractLinkFromNode(node: domhandler.AnyNode, links: Link[]): void { 38 | if (node.type !== ElementType.Tag) { 39 | return; 40 | } 41 | 42 | if (node.name !== "a") { 43 | for (const child of node.children) { 44 | extractLinkFromNode(child, links); 45 | } 46 | 47 | return; 48 | } 49 | 50 | const url = node.attribs?.href?.trim(); 51 | 52 | if (url == null || url.length === 0) { 53 | return; 54 | } 55 | 56 | const content = extractText(node); 57 | 58 | if (content.length === 0) { 59 | return; 60 | } 61 | 62 | links.push({ url, content }); 63 | } 64 | -------------------------------------------------------------------------------- /src/extract-text.ts: -------------------------------------------------------------------------------- 1 | import { ElementType } from "domelementtype"; 2 | import * as domhandler from "domhandler"; 3 | 4 | export function extractText(node: domhandler.AnyNode): string { 5 | if (node.type === ElementType.Text) { 6 | return node.data; 7 | } 8 | 9 | if (node.type !== ElementType.Tag) { 10 | return ""; 11 | } 12 | 13 | let fragments: string[] = []; 14 | 15 | for (const child of node.children) { 16 | fragments.push(extractText(child)); 17 | } 18 | 19 | return fragments 20 | .map((str) => str.trim()) 21 | .filter((str) => str.length !== 0) 22 | .join(" "); 23 | } 24 | -------------------------------------------------------------------------------- /src/lib.test.ts: -------------------------------------------------------------------------------- 1 | import { expect, test } from "vitest"; 2 | import { extractContent } from "./lib.js"; 3 | 4 | test("content should be extracted correctly #1", () => { 5 | const html = `

Hello, world!

`; 6 | const text = extractContent(html); 7 | 8 | expect(text).toStrictEqual({ 9 | title: undefined, 10 | description: undefined, 11 | content: "Hello, world!", 12 | contentHtmls: ["

Hello, world!

"], 13 | links: [], 14 | }); 15 | }); 16 | 17 | test("content should be extracted correctly #2", () => { 18 | const html = `

Hello, world!

This is a test.

`; 19 | const text = extractContent(html); 20 | 21 | expect(text).toStrictEqual({ 22 | title: undefined, 23 | description: undefined, 24 | content: "Hello, world! This is a test.", 25 | contentHtmls: ["

Hello, world!

This is a test.

"], 26 | links: [], 27 | }); 28 | }); 29 | 30 | test("content should be extracted correctly #2", () => { 31 | const html = `

Hello, world!

This is a test.

And here is my blog: My Blog Link

`; 32 | const text = extractContent(html); 33 | 34 | expect(text).toStrictEqual({ 35 | title: undefined, 36 | description: undefined, 37 | content: "Hello, world! This is a test. And here is my blog: My Blog Link", 38 | contentHtmls: [ 39 | '

Hello, world!

This is a test.

And here is my blog: My Blog Link

', 40 | ], 41 | links: [{ url: "https://example.com", content: "My Blog Link" }], 42 | }); 43 | }); 44 | -------------------------------------------------------------------------------- /src/lib.ts: -------------------------------------------------------------------------------- 1 | import * as cheerio from "cheerio"; 2 | import { computeTextDensity } from "./compute-text-density.js"; 3 | import { extractContentFromTextDensityMap } from "./extract-content.js"; 4 | import { extractDescription, extractTitle } from "./extract-head.js"; 5 | import { extractLink, Link } from "./extract-link.js"; 6 | import { extractText } from "./extract-text.js"; 7 | import { stripNonContentTags } from "./strip-non-content-tags.js"; 8 | 9 | /** 10 | * The extracted content. 11 | */ 12 | export interface ExtractedContent { 13 | /** 14 | * The title of the page. 15 | */ 16 | title?: string; 17 | 18 | /** 19 | * The description of the page. 20 | */ 21 | description?: string; 22 | 23 | /** 24 | * The content of the page. 25 | */ 26 | content: string; 27 | 28 | /** 29 | * The list of content HTMLs. 30 | * 31 | * Each element is the fragment (HTML subtree) serialized as a string that is 32 | * part of the `content`. 33 | * 34 | * It is useful if you need to access to the original HTML of the content 35 | * you extracted. 36 | */ 37 | contentHtmls: string[]; 38 | 39 | /** 40 | * The links in the page. 41 | */ 42 | links: Link[]; 43 | } 44 | 45 | /** 46 | * Extracts content from an HTML string. 47 | * 48 | * @param html - The HTML string to extract content from 49 | * 50 | * @returns The extracted content 51 | */ 52 | export function extractContent(html: string): ExtractedContent { 53 | const $ = cheerio.load(html); 54 | 55 | stripNonContentTags($); 56 | 57 | const root = $.root().children().find("body"); 58 | const rootNode = root.get(0); 59 | 60 | if (rootNode == null) { 61 | throw new Error("no body tag found"); 62 | } 63 | 64 | const map = computeTextDensity(rootNode); 65 | const contents = extractContentFromTextDensityMap(rootNode, map); 66 | 67 | const text = contents 68 | .sort((a, b) => map.get(a)!.order - map.get(b)!.order) 69 | .map((node) => extractText(node)) 70 | .filter((str) => str.length !== 0) 71 | .join(" "); 72 | 73 | const content = text.trim(); 74 | 75 | const contentHtmls = contents.map((node) => 76 | cheerio.load(node, null, false).html() 77 | ); 78 | const links = extractLink(contents); 79 | 80 | const title = extractTitle($); 81 | const description = extractDescription($); 82 | 83 | return { title, description, content, contentHtmls, links }; 84 | } 85 | -------------------------------------------------------------------------------- /src/strip-non-content-tags.ts: -------------------------------------------------------------------------------- 1 | import * as cheerio from "cheerio"; 2 | import { ElementType } from "domelementtype"; 3 | import * as domhandler from "domhandler"; 4 | 5 | /** 6 | * List of tags that are not content tags. 7 | */ 8 | const NON_CONTENT_TAGS = [ 9 | "script", 10 | "noscript", 11 | "style", 12 | "nav", 13 | "header", 14 | "footer", 15 | "img", 16 | "svg", 17 | "video", 18 | "audio", 19 | "form", 20 | "label", 21 | "input", 22 | "select", 23 | "option", 24 | "button", 25 | "object", 26 | "embed", 27 | "iframe", 28 | "canvas", 29 | "map", 30 | "area", 31 | "picture", 32 | "source", 33 | "track", 34 | "wbr", 35 | "slot", 36 | "template", 37 | "datalist", 38 | ]; 39 | 40 | /** 41 | * Strips non-content tags from the HTML. 42 | * 43 | * It mutates the original HTML. 44 | * 45 | * @param $ - The cheerio instance 46 | */ 47 | export function stripNonContentTags($: cheerio.CheerioAPI) { 48 | for (const tag of NON_CONTENT_TAGS) { 49 | $(tag).remove(); 50 | } 51 | 52 | $("*") 53 | .contents() 54 | .filter(function () { 55 | return this.type === ElementType.Comment; 56 | }) 57 | .remove(); 58 | } 59 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | /* Visit https://aka.ms/tsconfig to read more about this file */ 4 | 5 | /* Projects */ 6 | // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */ 7 | // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ 8 | // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */ 9 | // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */ 10 | // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ 11 | // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ 12 | 13 | /* Language and Environment */ 14 | "target": "ESNext" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */, 15 | // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ 16 | // "jsx": "preserve", /* Specify what JSX code is generated. */ 17 | // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */ 18 | // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */ 19 | // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */ 20 | // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */ 21 | // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */ 22 | // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */ 23 | // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ 24 | // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ 25 | // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ 26 | 27 | /* Modules */ 28 | "module": "NodeNext" /* Specify what module code is generated. */, 29 | // "rootDir": "./", /* Specify the root folder within your source files. */ 30 | "moduleResolution": "nodenext" /* Specify how TypeScript looks up a file from a given module specifier. */, 31 | // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ 32 | // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ 33 | // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ 34 | // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */ 35 | // "types": [], /* Specify type package names to be included without being referenced in a source file. */ 36 | // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ 37 | // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */ 38 | // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */ 39 | // "rewriteRelativeImportExtensions": true, /* Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files. */ 40 | // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */ 41 | // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */ 42 | // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */ 43 | // "noUncheckedSideEffectImports": true, /* Check side effect imports. */ 44 | // "resolveJsonModule": true, /* Enable importing .json files. */ 45 | // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ 46 | // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ 47 | 48 | /* JavaScript Support */ 49 | // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ 50 | // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ 51 | // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ 52 | 53 | /* Emit */ 54 | "declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */, 55 | "declarationMap": true /* Create sourcemaps for d.ts files. */, 56 | // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ 57 | "sourceMap": true /* Create source map files for emitted JavaScript files. */, 58 | // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ 59 | // "noEmit": true, /* Disable emitting files from a compilation. */ 60 | // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */ 61 | "outDir": "./build" /* Specify an output folder for all emitted files. */, 62 | // "removeComments": true, /* Disable emitting comments. */ 63 | // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ 64 | // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */ 65 | // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */ 66 | // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ 67 | // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */ 68 | // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */ 69 | // "newLine": "crlf", /* Set the newline character for emitting files. */ 70 | // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */ 71 | // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */ 72 | // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */ 73 | // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */ 74 | // "declarationDir": "./", /* Specify the output directory for generated declaration files. */ 75 | 76 | /* Interop Constraints */ 77 | // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ 78 | // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */ 79 | // "isolatedDeclarations": true, /* Require sufficient annotation on exports so other tools can trivially generate declaration files. */ 80 | // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ 81 | "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */, 82 | // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ 83 | "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */, 84 | 85 | /* Type Checking */ 86 | "strict": true /* Enable all strict type-checking options. */, 87 | // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */ 88 | // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */ 89 | // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */ 90 | // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */ 91 | // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */ 92 | // "strictBuiltinIteratorReturn": true, /* Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'. */ 93 | // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */ 94 | // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */ 95 | // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */ 96 | // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */ 97 | // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */ 98 | // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */ 99 | // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */ 100 | // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */ 101 | // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */ 102 | // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */ 103 | // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */ 104 | // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */ 105 | // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */ 106 | 107 | /* Completeness */ 108 | // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ 109 | "skipLibCheck": true /* Skip type checking all .d.ts files. */ 110 | } 111 | } 112 | -------------------------------------------------------------------------------- /tsup.config.ts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "tsup"; 2 | 3 | export default defineConfig({ 4 | entry: ["src/lib.ts"], 5 | format: ["cjs", "esm"], 6 | dts: true, 7 | splitting: false, 8 | sourcemap: true, 9 | clean: true, 10 | }); 11 | --------------------------------------------------------------------------------