├── .editorconfig ├── .eslintignore ├── .eslintrc ├── .github └── workflows │ └── tests.yaml ├── .gitignore ├── .npmignore ├── .prettierrc ├── LICENSE ├── README.md ├── cli ├── .editorconfig ├── .eslintignore ├── .eslintrc ├── .prettierrc ├── .tool-versions ├── package-lock.json ├── package.json ├── src │ ├── commands │ │ ├── add.ts │ │ └── list.ts │ ├── hooks.ts │ ├── main.ts │ ├── state.ts │ └── util │ │ ├── filter.test.ts │ │ ├── filter.ts │ │ ├── format.ts │ │ └── indexedItem.ts └── tsconfig.json ├── example ├── .gitignore ├── index.html ├── package-lock.json ├── package.json ├── src │ ├── App.svelte │ ├── app.css │ ├── main.ts │ └── vite-env.d.ts ├── svelte.config.js ├── tsconfig.json ├── tsconfig.node.json └── vite.config.ts ├── package-lock.json ├── package.json ├── src ├── Item.body.test.ts ├── Item.complete.test.ts ├── Item.completed.test.ts ├── Item.contexts.test.ts ├── Item.created.test.ts ├── Item.extensions.test.ts ├── Item.inputs.test.ts ├── Item.outputs.test.ts ├── Item.priority.test.ts ├── Item.projects.test.ts ├── Item.ts ├── List.add.test.ts ├── List.filter.test.ts ├── List.inputs.test.ts ├── List.outputs.test.ts ├── List.ts └── index.ts └── tsconfig.json /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | end_of_line = lf 5 | insert_final_newline = true 6 | trim_trailing_whitespace = true 7 | charset = utf-8 8 | indent_style = tab 9 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | lib 3 | cli 4 | 5 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | "parser": "@typescript-eslint/parser", 4 | "plugins": [ 5 | "@typescript-eslint", 6 | "ava" 7 | ], 8 | "extends": [ 9 | "eslint:recommended", 10 | "plugin:@typescript-eslint/eslint-recommended", 11 | "plugin:@typescript-eslint/recommended", 12 | "plugin:ava/recommended" 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /.github/workflows/tests.yaml: -------------------------------------------------------------------------------- 1 | name: Code Quality 2 | on: [push, pull_request] 3 | jobs: 4 | lint: 5 | runs-on: ubuntu-latest 6 | steps: 7 | - uses: actions/checkout@v3 8 | - run: npm install 9 | - run: npm run lint 10 | test: 11 | runs-on: ubuntu-latest 12 | steps: 13 | - uses: actions/checkout@v3 14 | - run: npm install 15 | - run: npm test 16 | - uses: codecov/codecov-action@v3 17 | with: 18 | verbose: true 19 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | lib/ 2 | coverage/ 3 | docs/ 4 | 5 | # Created by https://www.gitignore.io/api/osx,node,grunt,vim,linux 6 | 7 | ### OSX ### 8 | *.DS_Store 9 | .AppleDouble 10 | .LSOverride 11 | 12 | # Icon must end with two \r 13 | Icon 14 | 15 | 16 | # Thumbnails 17 | ._* 18 | 19 | # Files that might appear in the root of a volume 20 | .DocumentRevisions-V100 21 | .fseventsd 22 | .Spotlight-V100 23 | .TemporaryItems 24 | .Trashes 25 | .VolumeIcon.icns 26 | .com.apple.timemachine.donotpresent 27 | 28 | # Directories potentially created on remote AFP share 29 | .AppleDB 30 | .AppleDesktop 31 | Network Trash Folder 32 | Temporary Items 33 | .apdisk 34 | 35 | 36 | ### Node ### 37 | # Logs 38 | logs 39 | *.log 40 | npm-debug.log* 41 | 42 | # Runtime data 43 | pids 44 | *.pid 45 | *.seed 46 | 47 | # Directory for instrumented libs generated by jscoverage/JSCover 48 | lib-cov 49 | 50 | # Coverage directory used by tools like istanbul 51 | coverage 52 | 53 | # nyc test coverage 54 | .nyc_output 55 | 56 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 57 | .grunt 58 | 59 | # node-waf configuration 60 | .lock-wscript 61 | 62 | # Compiled binary addons (http://nodejs.org/api/addons.html) 63 | build/Release 64 | 65 | # Dependency directories 66 | node_modules 67 | jspm_packages 68 | 69 | # Optional npm cache directory 70 | .npm 71 | 72 | # Optional REPL history 73 | .node_repl_history 74 | 75 | 76 | ### grunt ### 77 | # Grunt usually compiles files inside this directory 78 | dist/ 79 | 80 | # Grunt usually preprocesses files such as coffeescript, compass... inside the .tmp directory 81 | .tmp/ 82 | 83 | 84 | ### Vim ### 85 | # swap 86 | [._]*.s[a-w][a-z] 87 | [._]s[a-w][a-z] 88 | # session 89 | Session.vim 90 | # temporary 91 | .netrwhist 92 | *~ 93 | # auto-generated tag files 94 | tags 95 | 96 | 97 | ### Linux ### 98 | *~ 99 | 100 | # temporary files which can be created if a process still has a handle open of a deleted file 101 | .fuse_hidden* 102 | 103 | # KDE directory preferences 104 | .directory 105 | 106 | # Linux trash folder which might appear on any partition or disk 107 | .Trash-* 108 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | .editorconfig 2 | example.html 3 | .eslintrc 4 | .github/ 5 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "printWidth": 100, 3 | "tabWidth": 2, 4 | "bracketSpacing": true, 5 | "trailingComma": "es5", 6 | "singleQuote": true 7 | } 8 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011 John Hobbs 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![Build Status](https://github.com/jmhobbs/jsTodoTxt/actions/workflows/tests.yaml/badge.svg?branch=next)](https://github.com/jmhobbs/jsTodoTxt/actions/workflows/tests.yaml?query=branch%3Anext) 2 | [![codecov](https://codecov.io/github/jmhobbs/jsTodoTxt/branch/next/graph/badge.svg?token=AmKRu6IcEq)](https://codecov.io/github/jmhobbs/jsTodoTxt) 3 | [![Netlify Status](https://api.netlify.com/api/v1/badges/be149c65-9c1b-45e9-a9b4-31e79d8e898c/deploy-status?branch=next)](https://app.netlify.com/sites/grand-bunny-8f4598/deploys) 4 | 5 | 6 | # jsTodoTxt 7 | 8 | jsTodoTxt is a library for working with todo.txt formatted files in JavaScript. 9 | 10 | ## 🚨 This Will Be Version 1.0.0 🚨 11 | 12 | This branch contains a major rewrite of jsTodoTxt. It is currently in alpha on NPM, you can install it with `npm install jstodotxt@next` 13 | 14 | If you are looking for the current `latest` code, that is available on the [`0.10.x`](https://github.com/jmhobbs/jsTodoTxt/tree/0.10.x) branch. 15 | 16 | # Format 17 | 18 | jsTodoTxt attempts to match the [todo.txt format](https://github.com/ginatrapani/todo.txt-cli/wiki/The-Todo.txt-Format) exactly. 19 | 20 | To do so, this library relies heavily on tests and strives for 100% coverage. 21 | 22 | # Usage 23 | 24 | The core of jsTodoTxt is the `Item` class. 25 | 26 | An `Item` breaks a single todo.txt line into two logical parts and treats them independently, what we call the header and the body. 27 | 28 | There are accessors and mutators for all parts of the item. API documentation is [available online](https://jstodotxt.velvetcache.org/) and the package ships with type definition files. 29 | 30 | ```text 31 | Header Body 32 | .-----------------------. .----------------------------------------------------. 33 | ' ' ' ' 34 | x (A) 2016-05-20 2016-04-30 measure space for +chapelShelving @chapel due:2016-05-30 35 | | | '----.---' '----.---' '------.------' '--.--' '------.-----' 36 | | | completed created project context extension 37 | | | 38 | | ' priority 39 | | 40 | ' completed 41 | ``` 42 | 43 | ## Example 44 | 45 | ```javascript 46 | const item = new Item('Paint the kitchen @home +reno due:2022-12-01'); 47 | 48 | console.log(item.contexts()); 49 | // ['home'] 50 | 51 | item.setExtension('color', 'red'); 52 | console.log(item.extensions()); 53 | // [{key: 'due', value: '2022-12-01'}, {key: 'color', value: 'red'}] 54 | 55 | item.setCreated('2022-10-19'); 56 | console.log(item.toString()); 57 | // 2022-10-19 Paint the kitchen @home +reno due:2022-12-01 color:red 58 | 59 | item.setBody('Paint the kitchen color:red @home +reno due:2022-12-01') 60 | console.log(item.toString()); 61 | // 2022-10-19 Paint the kitchen color:red @home +reno due:2022-12-01 62 | ``` 63 | 64 | # Testing 65 | 66 | Run `npm test` to run the suite. 67 | 68 | jsTodoTxt is tested with [ava](https://github.com/avajs/ava) 69 | 70 | # About todo.txt 71 | 72 | todo.txt is a format for storing todo lists in a future-proof format. 73 | 74 | http://todotxt.com/ 75 | -------------------------------------------------------------------------------- /cli/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | end_of_line = lf 5 | insert_final_newline = true 6 | trim_trailing_whitespace = true 7 | charset = utf-8 8 | indent_style = tab 9 | -------------------------------------------------------------------------------- /cli/.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | -------------------------------------------------------------------------------- /cli/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | "parser": "@typescript-eslint/parser", 4 | "plugins": [ 5 | "@typescript-eslint", 6 | "ava" 7 | ], 8 | "extends": [ 9 | "eslint:recommended", 10 | "plugin:@typescript-eslint/eslint-recommended", 11 | "plugin:@typescript-eslint/recommended", 12 | "plugin:ava/recommended" 13 | ], 14 | "rules": { 15 | "no-mixed-spaces-and-tabs": [ 16 | "error", 17 | "smart-tabs" 18 | ] 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /cli/.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "printWidth": 100, 3 | "tabWidth": 2, 4 | "bracketSpacing": true, 5 | "trailingComma": "es5", 6 | "singleQuote": true 7 | } 8 | -------------------------------------------------------------------------------- /cli/.tool-versions: -------------------------------------------------------------------------------- 1 | nodejs 22.13.0 2 | -------------------------------------------------------------------------------- /cli/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@jstodotxt/cli", 3 | "version": "0.0.1", 4 | "description": "A simple CLI for todo.txt. Compatible with todo.sh", 5 | "keywords": [ 6 | "todo.txt", 7 | "todo" 8 | ], 9 | "author": "John Hobbs ", 10 | "license": "MIT", 11 | "repository": { 12 | "type": "git", 13 | "url": "https://github.com/jmhobbs/jsTodoTxt.git", 14 | "directory": "cli" 15 | }, 16 | "main": "./dist/main.js", 17 | "files": [ 18 | "./dist", 19 | "!**/*.test.{js,d.ts}{,.map}" 20 | ], 21 | "bin": { 22 | "todo": "dist/main.js" 23 | }, 24 | "scripts": { 25 | "clean": "rimraf dist", 26 | "build": "tsc", 27 | "lint": "run-s lint:*", 28 | "lint:eslint": "eslint . --ext .ts", 29 | "lint:format": "prettier --check 'src/**/*.ts'", 30 | "prepare": "run-s test lint clean build", 31 | "test": "c8 --reporter=lcov --reporter=text ava", 32 | "dev:test": "ava --watch", 33 | "todo": "tsx src/main.ts" 34 | }, 35 | "devDependencies": { 36 | "@types/node": "^22.10.7", 37 | "ava": "^5.0.1", 38 | "c8": "^7.12.0", 39 | "eslint": "^8.26.0", 40 | "eslint-plugin-ava": "^13.2.0", 41 | "jstodotxt": "file:..", 42 | "prettier": "^2.7.1", 43 | "rimraf": "^3.0.2", 44 | "tsx": "^3.11.0", 45 | "typescript": "^4.8.4" 46 | }, 47 | "dependencies": { 48 | "chalk": "^4.1.2", 49 | "commander": "^9.4.1" 50 | }, 51 | "ava": { 52 | "files": [ 53 | "./src/**/*.test.ts" 54 | ], 55 | "extensions": [ 56 | "ts" 57 | ], 58 | "require": [ 59 | "@esbuild-kit/cjs-loader" 60 | ] 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /cli/src/commands/add.ts: -------------------------------------------------------------------------------- 1 | import state from '../state'; 2 | import Format from '../util/format'; 3 | 4 | export default function Add(item: string): void { 5 | const listItem = state.todo.add(item); 6 | state.sink.writeLine(Format(state.chalk, listItem)); 7 | state.sink.writeLine(`TODO: ${listItem.index} added.`); 8 | } 9 | -------------------------------------------------------------------------------- /cli/src/commands/list.ts: -------------------------------------------------------------------------------- 1 | import state from '../state'; 2 | import Format from '../util/format'; 3 | import { IndexedItem, IndexItems } from '../util/indexedItem'; 4 | import Filter from '../util/filter'; 5 | 6 | export default function List(andFilters: string | string[]): void { 7 | let indexedItems = IndexItems(state.todo.items()); 8 | const count = indexedItems.length; 9 | 10 | if (typeof andFilters === 'string') { 11 | andFilters = [andFilters]; 12 | } 13 | 14 | andFilters.map((filter: string) => (indexedItems = Filter(filter, indexedItems))); 15 | 16 | indexedItems 17 | .sort((a: IndexedItem, b: IndexedItem): number => { 18 | const aPrio = a.item.priority() || '['; 19 | const bPrio = b.item.priority() || '['; 20 | if (aPrio === bPrio) { 21 | return a.item.body() > b.item.body() ? 1 : -1; 22 | } 23 | return aPrio > bPrio ? 1 : -1; 24 | }) 25 | .forEach((line: IndexedItem) => { 26 | state.sink.writeLine(Format(state.chalk, line)); 27 | }); 28 | 29 | state.sink.writeLine('--'); 30 | state.sink.writeLine(`TODO: ${indexedItems.length} of ${count} tasks shown`); 31 | } 32 | -------------------------------------------------------------------------------- /cli/src/hooks.ts: -------------------------------------------------------------------------------- 1 | import chalk from 'chalk'; 2 | import { Command } from 'commander'; 3 | import { readFileSync, writeFileSync } from 'node:fs'; 4 | import { homedir } from 'node:os'; 5 | import path from 'node:path'; 6 | 7 | import { List } from 'jstodotxt'; 8 | 9 | import state from './state'; 10 | 11 | export function setup(program: Command) { 12 | state.chalk = new chalk.Instance({ level: program.opts()['p'] ? 0 : 3 }); 13 | state.todo = loadList('todo.txt'); 14 | state.done = loadList('done.txt'); 15 | } 16 | 17 | function loadList(list: string): List { 18 | const txt = readFileSync(path.join(homedir(), '.todo', list)); 19 | return new List(txt.toString('utf8')); 20 | } 21 | 22 | export function shutdown() { 23 | writeFileSync(path.join(homedir(), '.todo', 'todo.txt'), state.todo.toString()); 24 | writeFileSync(path.join(homedir(), '.todo', 'done.txt'), state.done.toString()); 25 | } 26 | -------------------------------------------------------------------------------- /cli/src/main.ts: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | import { Command } from 'commander'; 4 | 5 | import { setup, shutdown } from './hooks'; 6 | 7 | import Add from './commands/add'; 8 | import List from './commands/list'; 9 | 10 | const program = new Command(); 11 | 12 | program 13 | .name('todo') 14 | .description('todo.txt tool') 15 | .version('1.0.0') 16 | .enablePositionalOptions() 17 | .option('-p', 'Plain mode turns off colors', false) 18 | .hook('preAction', setup) 19 | .hook('postAction', shutdown); 20 | 21 | program 22 | .command('add') 23 | .alias('a') 24 | .description('Add a task to todo.txt') 25 | .argument('', 'Task to add') 26 | .action(Add); 27 | 28 | program 29 | .command('list') 30 | .alias('ls') 31 | .passThroughOptions() 32 | .description('List tasks') 33 | .argument('[term...]', 'Filter by project, context or string', '') 34 | .action(List); 35 | 36 | program.parse(); 37 | -------------------------------------------------------------------------------- /cli/src/state.ts: -------------------------------------------------------------------------------- 1 | import { List } from 'jstodotxt'; 2 | 3 | import chalk from 'chalk'; 4 | import { Writable } from 'node:stream'; 5 | 6 | export interface Sink { 7 | write(str: string): void; 8 | writeLine(str: string): void; 9 | } 10 | 11 | class WritableSink { 12 | #drain: Writable; 13 | 14 | constructor(drain: Writable) { 15 | this.#drain = drain; 16 | } 17 | 18 | write(str: string): void { 19 | this.#drain.write(str); 20 | } 21 | 22 | writeLine(str: string): void { 23 | this.#drain.write(str); 24 | this.#drain.write('\n'); 25 | } 26 | } 27 | 28 | interface State { 29 | todo: List; 30 | done: List; 31 | chalk: chalk.Chalk; 32 | sink: Sink; 33 | } 34 | 35 | const state: State = { 36 | todo: new List([]), 37 | done: new List([]), 38 | chalk, 39 | sink: new WritableSink(process.stdout), 40 | }; 41 | 42 | export default state; 43 | -------------------------------------------------------------------------------- /cli/src/util/filter.test.ts: -------------------------------------------------------------------------------- 1 | import test from 'ava'; 2 | import { List } from 'jstodotxt'; 3 | 4 | import Filter from './filter'; 5 | import { IndexItems } from './indexedItem'; 6 | 7 | const BIRD = 'This has a bird'; 8 | const FISH = 'This has a fish'; 9 | const BOTH = 'This has a bird and a fish'; 10 | const NEITHER = 'This has neither'; 11 | 12 | const indexedItems = IndexItems(new List([BIRD, FISH, BOTH, NEITHER]).items()); 13 | 14 | test('applies single positive filters', (t) => { 15 | const filtered = Filter('bird', indexedItems); 16 | t.deepEqual( 17 | filtered.map((idxItm) => idxItm.item.body()), 18 | [BIRD, BOTH] 19 | ); 20 | }); 21 | 22 | test('applies single negative filters', (t) => { 23 | const filtered = Filter('-bird', indexedItems); 24 | t.deepEqual( 25 | filtered.map((idxItm) => idxItm.item.body()), 26 | [FISH, NEITHER] 27 | ); 28 | }); 29 | 30 | test('applies multiple positive filters', (t) => { 31 | const filtered = Filter('bird|fish', indexedItems); 32 | t.deepEqual( 33 | filtered.map((idxItm) => idxItm.item.body()), 34 | [BIRD, FISH, BOTH] 35 | ); 36 | }); 37 | 38 | test('applies multiple negative filters', (t) => { 39 | const filtered = Filter('-bird|-fish', indexedItems); 40 | t.deepEqual( 41 | filtered.map((idxItm) => idxItm.item.body()), 42 | [NEITHER] 43 | ); 44 | }); 45 | 46 | test('applies positive and negative filters', (t) => { 47 | const filtered = Filter('bird|-fish', indexedItems); 48 | t.deepEqual( 49 | filtered.map((idxItm) => idxItm.item.body()), 50 | [BIRD, BOTH, NEITHER] 51 | ); 52 | }); 53 | -------------------------------------------------------------------------------- /cli/src/util/filter.ts: -------------------------------------------------------------------------------- 1 | import { IndexedItem } from './indexedItem'; 2 | 3 | /** 4 | * Applies a filter string to a list of items, returning the items which satisfy the filter. 5 | * 6 | * @param filter A string of terms to match, or not match if prefixed with `-`. Filters with multiple terms separated by `|` are satisfied when any terms match. 7 | * @param indexedItems An array of items to filter. 8 | * 9 | * @returns An arrya of filtered items. 10 | */ 11 | export default function Filter(filter: string, indexedItems: IndexedItem[]): IndexedItem[] { 12 | const filters = filter.split('|').map((filter: string) => filter.toLowerCase()); 13 | if (filters.length === 0) { 14 | return indexedItems; 15 | } 16 | 17 | const positiveFilters = filters.filter((filter: string) => filter[0] !== '-'); 18 | const negativeFilters = filters 19 | .filter((filter: string) => filter[0] === '-') 20 | .map((filter: string) => filter.slice(1)); 21 | 22 | let filtered: IndexedItem[] = []; 23 | 24 | if (positiveFilters.length > 0) { 25 | filtered = indexedItems.filter((line: IndexedItem) => { 26 | return ( 27 | positiveFilters.filter((filter: string) => line.body.indexOf(filter) !== -1).length > 0 28 | ); 29 | }); 30 | } 31 | 32 | if (negativeFilters.length > 0) { 33 | filtered = [ 34 | ...filtered, 35 | ...indexedItems.filter((line: IndexedItem) => { 36 | return ( 37 | negativeFilters.filter((filter: string) => line.body.indexOf(filter) !== -1).length === 0 38 | ); 39 | }), 40 | ]; 41 | } 42 | 43 | return [...new Set(filtered)]; 44 | } 45 | -------------------------------------------------------------------------------- /cli/src/util/format.ts: -------------------------------------------------------------------------------- 1 | import chalk from 'chalk'; 2 | import { ListItem } from 'jstodotxt'; 3 | 4 | export default function Format(chalk: chalk.Chalk, listItem: ListItem): string { 5 | let lineStr = `${listItem.index + 1} ${listItem.item.toString()}`; 6 | if (listItem.item.priority() !== null) { 7 | switch (listItem.item.priority()) { 8 | case 'A': 9 | lineStr = chalk.bold.yellow(lineStr); 10 | break; 11 | case 'B': 12 | lineStr = chalk.green(lineStr); 13 | break; 14 | case 'C': 15 | lineStr = chalk.bold.blue(lineStr); 16 | break; 17 | default: 18 | lineStr = chalk.bold.white(lineStr); 19 | break; 20 | } 21 | } 22 | return lineStr; 23 | } 24 | -------------------------------------------------------------------------------- /cli/src/util/indexedItem.ts: -------------------------------------------------------------------------------- 1 | import { Item, ListItem } from 'jstodotxt'; 2 | 3 | export interface IndexedItem { 4 | item: Item; 5 | index: number; 6 | body: string; 7 | } 8 | 9 | export function IndexItems(listItems: ListItem[]): IndexedItem[] { 10 | return listItems.map(({ item, index }): IndexedItem => { 11 | return { item, index, body: item.body().toLowerCase() }; 12 | }); 13 | } 14 | -------------------------------------------------------------------------------- /cli/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "strict": true, 4 | "incremental": true, 5 | "target": "ESNext", 6 | "module": "commonjs", 7 | "moduleResolution": "node", 8 | "sourceMap": true, 9 | "esModuleInterop": true, 10 | "declaration": false, 11 | "declarationMap": false, 12 | "outDir": "dist" 13 | }, 14 | "include": [ 15 | "src/**/*" 16 | ], 17 | "ts-node": { 18 | "transpileOnly": true 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | pnpm-debug.log* 8 | lerna-debug.log* 9 | 10 | node_modules 11 | dist 12 | dist-ssr 13 | *.local 14 | 15 | # Editor directories and files 16 | .vscode/* 17 | !.vscode/extensions.json 18 | .idea 19 | .DS_Store 20 | *.suo 21 | *.ntvs* 22 | *.njsproj 23 | *.sln 24 | *.sw? 25 | -------------------------------------------------------------------------------- /example/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | todo.txt 7 | 8 | 9 |
10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /example/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example", 3 | "version": "0.0.0", 4 | "lockfileVersion": 2, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "example", 9 | "version": "0.0.0", 10 | "devDependencies": { 11 | "@sveltejs/vite-plugin-svelte": "^5.0.3", 12 | "@tsconfig/svelte": "^3.0.0", 13 | "jstodotxt": "file:..", 14 | "svelte": "^3.49.0", 15 | "svelte-check": "^2.8.1", 16 | "svelte-preprocess": "^4.10.7", 17 | "tslib": "^2.4.0", 18 | "typescript": "^4.6.4", 19 | "vite": "^6.3.4" 20 | } 21 | }, 22 | "..": { 23 | "name": "jstodotxt", 24 | "version": "1.0.0-alpha.4", 25 | "dev": true, 26 | "license": "MIT", 27 | "devDependencies": { 28 | "@typescript-eslint/eslint-plugin": "^5.40.1", 29 | "@typescript-eslint/parser": "^5.40.1", 30 | "ava": "^4.3.3", 31 | "c8": "^7.12.0", 32 | "eslint": "^8.26.0", 33 | "eslint-plugin-ava": "^13.2.0", 34 | "jsdoc": "^4.0.4", 35 | "jsdoc-plugin-typescript": "^2.2.0", 36 | "npm-run-all": "^4.1.5", 37 | "prettier": "^2.7.1", 38 | "rimraf": "^3.0.2", 39 | "tsx": "^3.11.0", 40 | "typedoc": "^0.23.17", 41 | "typescript": "^4.8.4" 42 | } 43 | }, 44 | "node_modules/@esbuild/aix-ppc64": { 45 | "version": "0.25.2", 46 | "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.2.tgz", 47 | "integrity": "sha512-wCIboOL2yXZym2cgm6mlA742s9QeJ8DjGVaL39dLN4rRwrOgOyYSnOaFPhKZGLb2ngj4EyfAFjsNJwPXZvseag==", 48 | "cpu": [ 49 | "ppc64" 50 | ], 51 | "dev": true, 52 | "license": "MIT", 53 | "optional": true, 54 | "os": [ 55 | "aix" 56 | ], 57 | "engines": { 58 | "node": ">=18" 59 | } 60 | }, 61 | "node_modules/@esbuild/android-arm": { 62 | "version": "0.25.2", 63 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.2.tgz", 64 | "integrity": "sha512-NQhH7jFstVY5x8CKbcfa166GoV0EFkaPkCKBQkdPJFvo5u+nGXLEH/ooniLb3QI8Fk58YAx7nsPLozUWfCBOJA==", 65 | "cpu": [ 66 | "arm" 67 | ], 68 | "dev": true, 69 | "license": "MIT", 70 | "optional": true, 71 | "os": [ 72 | "android" 73 | ], 74 | "engines": { 75 | "node": ">=18" 76 | } 77 | }, 78 | "node_modules/@esbuild/android-arm64": { 79 | "version": "0.25.2", 80 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.2.tgz", 81 | "integrity": "sha512-5ZAX5xOmTligeBaeNEPnPaeEuah53Id2tX4c2CVP3JaROTH+j4fnfHCkr1PjXMd78hMst+TlkfKcW/DlTq0i4w==", 82 | "cpu": [ 83 | "arm64" 84 | ], 85 | "dev": true, 86 | "license": "MIT", 87 | "optional": true, 88 | "os": [ 89 | "android" 90 | ], 91 | "engines": { 92 | "node": ">=18" 93 | } 94 | }, 95 | "node_modules/@esbuild/android-x64": { 96 | "version": "0.25.2", 97 | "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.2.tgz", 98 | "integrity": "sha512-Ffcx+nnma8Sge4jzddPHCZVRvIfQ0kMsUsCMcJRHkGJ1cDmhe4SsrYIjLUKn1xpHZybmOqCWwB0zQvsjdEHtkg==", 99 | "cpu": [ 100 | "x64" 101 | ], 102 | "dev": true, 103 | "license": "MIT", 104 | "optional": true, 105 | "os": [ 106 | "android" 107 | ], 108 | "engines": { 109 | "node": ">=18" 110 | } 111 | }, 112 | "node_modules/@esbuild/darwin-arm64": { 113 | "version": "0.25.2", 114 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.2.tgz", 115 | "integrity": "sha512-MpM6LUVTXAzOvN4KbjzU/q5smzryuoNjlriAIx+06RpecwCkL9JpenNzpKd2YMzLJFOdPqBpuub6eVRP5IgiSA==", 116 | "cpu": [ 117 | "arm64" 118 | ], 119 | "dev": true, 120 | "license": "MIT", 121 | "optional": true, 122 | "os": [ 123 | "darwin" 124 | ], 125 | "engines": { 126 | "node": ">=18" 127 | } 128 | }, 129 | "node_modules/@esbuild/darwin-x64": { 130 | "version": "0.25.2", 131 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.2.tgz", 132 | "integrity": "sha512-5eRPrTX7wFyuWe8FqEFPG2cU0+butQQVNcT4sVipqjLYQjjh8a8+vUTfgBKM88ObB85ahsnTwF7PSIt6PG+QkA==", 133 | "cpu": [ 134 | "x64" 135 | ], 136 | "dev": true, 137 | "license": "MIT", 138 | "optional": true, 139 | "os": [ 140 | "darwin" 141 | ], 142 | "engines": { 143 | "node": ">=18" 144 | } 145 | }, 146 | "node_modules/@esbuild/freebsd-arm64": { 147 | "version": "0.25.2", 148 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.2.tgz", 149 | "integrity": "sha512-mLwm4vXKiQ2UTSX4+ImyiPdiHjiZhIaE9QvC7sw0tZ6HoNMjYAqQpGyui5VRIi5sGd+uWq940gdCbY3VLvsO1w==", 150 | "cpu": [ 151 | "arm64" 152 | ], 153 | "dev": true, 154 | "license": "MIT", 155 | "optional": true, 156 | "os": [ 157 | "freebsd" 158 | ], 159 | "engines": { 160 | "node": ">=18" 161 | } 162 | }, 163 | "node_modules/@esbuild/freebsd-x64": { 164 | "version": "0.25.2", 165 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.2.tgz", 166 | "integrity": "sha512-6qyyn6TjayJSwGpm8J9QYYGQcRgc90nmfdUb0O7pp1s4lTY+9D0H9O02v5JqGApUyiHOtkz6+1hZNvNtEhbwRQ==", 167 | "cpu": [ 168 | "x64" 169 | ], 170 | "dev": true, 171 | "license": "MIT", 172 | "optional": true, 173 | "os": [ 174 | "freebsd" 175 | ], 176 | "engines": { 177 | "node": ">=18" 178 | } 179 | }, 180 | "node_modules/@esbuild/linux-arm": { 181 | "version": "0.25.2", 182 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.2.tgz", 183 | "integrity": "sha512-UHBRgJcmjJv5oeQF8EpTRZs/1knq6loLxTsjc3nxO9eXAPDLcWW55flrMVc97qFPbmZP31ta1AZVUKQzKTzb0g==", 184 | "cpu": [ 185 | "arm" 186 | ], 187 | "dev": true, 188 | "license": "MIT", 189 | "optional": true, 190 | "os": [ 191 | "linux" 192 | ], 193 | "engines": { 194 | "node": ">=18" 195 | } 196 | }, 197 | "node_modules/@esbuild/linux-arm64": { 198 | "version": "0.25.2", 199 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.2.tgz", 200 | "integrity": "sha512-gq/sjLsOyMT19I8obBISvhoYiZIAaGF8JpeXu1u8yPv8BE5HlWYobmlsfijFIZ9hIVGYkbdFhEqC0NvM4kNO0g==", 201 | "cpu": [ 202 | "arm64" 203 | ], 204 | "dev": true, 205 | "license": "MIT", 206 | "optional": true, 207 | "os": [ 208 | "linux" 209 | ], 210 | "engines": { 211 | "node": ">=18" 212 | } 213 | }, 214 | "node_modules/@esbuild/linux-ia32": { 215 | "version": "0.25.2", 216 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.2.tgz", 217 | "integrity": "sha512-bBYCv9obgW2cBP+2ZWfjYTU+f5cxRoGGQ5SeDbYdFCAZpYWrfjjfYwvUpP8MlKbP0nwZ5gyOU/0aUzZ5HWPuvQ==", 218 | "cpu": [ 219 | "ia32" 220 | ], 221 | "dev": true, 222 | "license": "MIT", 223 | "optional": true, 224 | "os": [ 225 | "linux" 226 | ], 227 | "engines": { 228 | "node": ">=18" 229 | } 230 | }, 231 | "node_modules/@esbuild/linux-loong64": { 232 | "version": "0.25.2", 233 | "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.2.tgz", 234 | "integrity": "sha512-SHNGiKtvnU2dBlM5D8CXRFdd+6etgZ9dXfaPCeJtz+37PIUlixvlIhI23L5khKXs3DIzAn9V8v+qb1TRKrgT5w==", 235 | "cpu": [ 236 | "loong64" 237 | ], 238 | "dev": true, 239 | "license": "MIT", 240 | "optional": true, 241 | "os": [ 242 | "linux" 243 | ], 244 | "engines": { 245 | "node": ">=18" 246 | } 247 | }, 248 | "node_modules/@esbuild/linux-mips64el": { 249 | "version": "0.25.2", 250 | "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.2.tgz", 251 | "integrity": "sha512-hDDRlzE6rPeoj+5fsADqdUZl1OzqDYow4TB4Y/3PlKBD0ph1e6uPHzIQcv2Z65u2K0kpeByIyAjCmjn1hJgG0Q==", 252 | "cpu": [ 253 | "mips64el" 254 | ], 255 | "dev": true, 256 | "license": "MIT", 257 | "optional": true, 258 | "os": [ 259 | "linux" 260 | ], 261 | "engines": { 262 | "node": ">=18" 263 | } 264 | }, 265 | "node_modules/@esbuild/linux-ppc64": { 266 | "version": "0.25.2", 267 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.2.tgz", 268 | "integrity": "sha512-tsHu2RRSWzipmUi9UBDEzc0nLc4HtpZEI5Ba+Omms5456x5WaNuiG3u7xh5AO6sipnJ9r4cRWQB2tUjPyIkc6g==", 269 | "cpu": [ 270 | "ppc64" 271 | ], 272 | "dev": true, 273 | "license": "MIT", 274 | "optional": true, 275 | "os": [ 276 | "linux" 277 | ], 278 | "engines": { 279 | "node": ">=18" 280 | } 281 | }, 282 | "node_modules/@esbuild/linux-riscv64": { 283 | "version": "0.25.2", 284 | "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.2.tgz", 285 | "integrity": "sha512-k4LtpgV7NJQOml/10uPU0s4SAXGnowi5qBSjaLWMojNCUICNu7TshqHLAEbkBdAszL5TabfvQ48kK84hyFzjnw==", 286 | "cpu": [ 287 | "riscv64" 288 | ], 289 | "dev": true, 290 | "license": "MIT", 291 | "optional": true, 292 | "os": [ 293 | "linux" 294 | ], 295 | "engines": { 296 | "node": ">=18" 297 | } 298 | }, 299 | "node_modules/@esbuild/linux-s390x": { 300 | "version": "0.25.2", 301 | "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.2.tgz", 302 | "integrity": "sha512-GRa4IshOdvKY7M/rDpRR3gkiTNp34M0eLTaC1a08gNrh4u488aPhuZOCpkF6+2wl3zAN7L7XIpOFBhnaE3/Q8Q==", 303 | "cpu": [ 304 | "s390x" 305 | ], 306 | "dev": true, 307 | "license": "MIT", 308 | "optional": true, 309 | "os": [ 310 | "linux" 311 | ], 312 | "engines": { 313 | "node": ">=18" 314 | } 315 | }, 316 | "node_modules/@esbuild/linux-x64": { 317 | "version": "0.25.2", 318 | "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.2.tgz", 319 | "integrity": "sha512-QInHERlqpTTZ4FRB0fROQWXcYRD64lAoiegezDunLpalZMjcUcld3YzZmVJ2H/Cp0wJRZ8Xtjtj0cEHhYc/uUg==", 320 | "cpu": [ 321 | "x64" 322 | ], 323 | "dev": true, 324 | "license": "MIT", 325 | "optional": true, 326 | "os": [ 327 | "linux" 328 | ], 329 | "engines": { 330 | "node": ">=18" 331 | } 332 | }, 333 | "node_modules/@esbuild/netbsd-arm64": { 334 | "version": "0.25.2", 335 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.2.tgz", 336 | "integrity": "sha512-talAIBoY5M8vHc6EeI2WW9d/CkiO9MQJ0IOWX8hrLhxGbro/vBXJvaQXefW2cP0z0nQVTdQ/eNyGFV1GSKrxfw==", 337 | "cpu": [ 338 | "arm64" 339 | ], 340 | "dev": true, 341 | "license": "MIT", 342 | "optional": true, 343 | "os": [ 344 | "netbsd" 345 | ], 346 | "engines": { 347 | "node": ">=18" 348 | } 349 | }, 350 | "node_modules/@esbuild/netbsd-x64": { 351 | "version": "0.25.2", 352 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.2.tgz", 353 | "integrity": "sha512-voZT9Z+tpOxrvfKFyfDYPc4DO4rk06qamv1a/fkuzHpiVBMOhpjK+vBmWM8J1eiB3OLSMFYNaOaBNLXGChf5tg==", 354 | "cpu": [ 355 | "x64" 356 | ], 357 | "dev": true, 358 | "license": "MIT", 359 | "optional": true, 360 | "os": [ 361 | "netbsd" 362 | ], 363 | "engines": { 364 | "node": ">=18" 365 | } 366 | }, 367 | "node_modules/@esbuild/openbsd-arm64": { 368 | "version": "0.25.2", 369 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.2.tgz", 370 | "integrity": "sha512-dcXYOC6NXOqcykeDlwId9kB6OkPUxOEqU+rkrYVqJbK2hagWOMrsTGsMr8+rW02M+d5Op5NNlgMmjzecaRf7Tg==", 371 | "cpu": [ 372 | "arm64" 373 | ], 374 | "dev": true, 375 | "license": "MIT", 376 | "optional": true, 377 | "os": [ 378 | "openbsd" 379 | ], 380 | "engines": { 381 | "node": ">=18" 382 | } 383 | }, 384 | "node_modules/@esbuild/openbsd-x64": { 385 | "version": "0.25.2", 386 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.2.tgz", 387 | "integrity": "sha512-t/TkWwahkH0Tsgoq1Ju7QfgGhArkGLkF1uYz8nQS/PPFlXbP5YgRpqQR3ARRiC2iXoLTWFxc6DJMSK10dVXluw==", 388 | "cpu": [ 389 | "x64" 390 | ], 391 | "dev": true, 392 | "license": "MIT", 393 | "optional": true, 394 | "os": [ 395 | "openbsd" 396 | ], 397 | "engines": { 398 | "node": ">=18" 399 | } 400 | }, 401 | "node_modules/@esbuild/sunos-x64": { 402 | "version": "0.25.2", 403 | "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.2.tgz", 404 | "integrity": "sha512-cfZH1co2+imVdWCjd+D1gf9NjkchVhhdpgb1q5y6Hcv9TP6Zi9ZG/beI3ig8TvwT9lH9dlxLq5MQBBgwuj4xvA==", 405 | "cpu": [ 406 | "x64" 407 | ], 408 | "dev": true, 409 | "license": "MIT", 410 | "optional": true, 411 | "os": [ 412 | "sunos" 413 | ], 414 | "engines": { 415 | "node": ">=18" 416 | } 417 | }, 418 | "node_modules/@esbuild/win32-arm64": { 419 | "version": "0.25.2", 420 | "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.2.tgz", 421 | "integrity": "sha512-7Loyjh+D/Nx/sOTzV8vfbB3GJuHdOQyrOryFdZvPHLf42Tk9ivBU5Aedi7iyX+x6rbn2Mh68T4qq1SDqJBQO5Q==", 422 | "cpu": [ 423 | "arm64" 424 | ], 425 | "dev": true, 426 | "license": "MIT", 427 | "optional": true, 428 | "os": [ 429 | "win32" 430 | ], 431 | "engines": { 432 | "node": ">=18" 433 | } 434 | }, 435 | "node_modules/@esbuild/win32-ia32": { 436 | "version": "0.25.2", 437 | "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.2.tgz", 438 | "integrity": "sha512-WRJgsz9un0nqZJ4MfhabxaD9Ft8KioqU3JMinOTvobbX6MOSUigSBlogP8QB3uxpJDsFS6yN+3FDBdqE5lg9kg==", 439 | "cpu": [ 440 | "ia32" 441 | ], 442 | "dev": true, 443 | "license": "MIT", 444 | "optional": true, 445 | "os": [ 446 | "win32" 447 | ], 448 | "engines": { 449 | "node": ">=18" 450 | } 451 | }, 452 | "node_modules/@esbuild/win32-x64": { 453 | "version": "0.25.2", 454 | "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.2.tgz", 455 | "integrity": "sha512-kM3HKb16VIXZyIeVrM1ygYmZBKybX8N4p754bw390wGO3Tf2j4L2/WYL+4suWujpgf6GBYs3jv7TyUivdd05JA==", 456 | "cpu": [ 457 | "x64" 458 | ], 459 | "dev": true, 460 | "license": "MIT", 461 | "optional": true, 462 | "os": [ 463 | "win32" 464 | ], 465 | "engines": { 466 | "node": ">=18" 467 | } 468 | }, 469 | "node_modules/@jridgewell/resolve-uri": { 470 | "version": "3.1.0", 471 | "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", 472 | "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", 473 | "dev": true, 474 | "engines": { 475 | "node": ">=6.0.0" 476 | } 477 | }, 478 | "node_modules/@jridgewell/sourcemap-codec": { 479 | "version": "1.4.14", 480 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", 481 | "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", 482 | "dev": true 483 | }, 484 | "node_modules/@jridgewell/trace-mapping": { 485 | "version": "0.3.17", 486 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz", 487 | "integrity": "sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g==", 488 | "dev": true, 489 | "dependencies": { 490 | "@jridgewell/resolve-uri": "3.1.0", 491 | "@jridgewell/sourcemap-codec": "1.4.14" 492 | } 493 | }, 494 | "node_modules/@nodelib/fs.scandir": { 495 | "version": "2.1.5", 496 | "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", 497 | "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", 498 | "dev": true, 499 | "dependencies": { 500 | "@nodelib/fs.stat": "2.0.5", 501 | "run-parallel": "^1.1.9" 502 | }, 503 | "engines": { 504 | "node": ">= 8" 505 | } 506 | }, 507 | "node_modules/@nodelib/fs.stat": { 508 | "version": "2.0.5", 509 | "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", 510 | "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", 511 | "dev": true, 512 | "engines": { 513 | "node": ">= 8" 514 | } 515 | }, 516 | "node_modules/@nodelib/fs.walk": { 517 | "version": "1.2.8", 518 | "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", 519 | "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", 520 | "dev": true, 521 | "dependencies": { 522 | "@nodelib/fs.scandir": "2.1.5", 523 | "fastq": "^1.6.0" 524 | }, 525 | "engines": { 526 | "node": ">= 8" 527 | } 528 | }, 529 | "node_modules/@rollup/rollup-android-arm-eabi": { 530 | "version": "4.39.0", 531 | "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.39.0.tgz", 532 | "integrity": "sha512-lGVys55Qb00Wvh8DMAocp5kIcaNzEFTmGhfFd88LfaogYTRKrdxgtlO5H6S49v2Nd8R2C6wLOal0qv6/kCkOwA==", 533 | "cpu": [ 534 | "arm" 535 | ], 536 | "dev": true, 537 | "license": "MIT", 538 | "optional": true, 539 | "os": [ 540 | "android" 541 | ] 542 | }, 543 | "node_modules/@rollup/rollup-android-arm64": { 544 | "version": "4.39.0", 545 | "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.39.0.tgz", 546 | "integrity": "sha512-It9+M1zE31KWfqh/0cJLrrsCPiF72PoJjIChLX+rEcujVRCb4NLQ5QzFkzIZW8Kn8FTbvGQBY5TkKBau3S8cCQ==", 547 | "cpu": [ 548 | "arm64" 549 | ], 550 | "dev": true, 551 | "license": "MIT", 552 | "optional": true, 553 | "os": [ 554 | "android" 555 | ] 556 | }, 557 | "node_modules/@rollup/rollup-darwin-arm64": { 558 | "version": "4.39.0", 559 | "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.39.0.tgz", 560 | "integrity": "sha512-lXQnhpFDOKDXiGxsU9/l8UEGGM65comrQuZ+lDcGUx+9YQ9dKpF3rSEGepyeR5AHZ0b5RgiligsBhWZfSSQh8Q==", 561 | "cpu": [ 562 | "arm64" 563 | ], 564 | "dev": true, 565 | "license": "MIT", 566 | "optional": true, 567 | "os": [ 568 | "darwin" 569 | ] 570 | }, 571 | "node_modules/@rollup/rollup-darwin-x64": { 572 | "version": "4.39.0", 573 | "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.39.0.tgz", 574 | "integrity": "sha512-mKXpNZLvtEbgu6WCkNij7CGycdw9cJi2k9v0noMb++Vab12GZjFgUXD69ilAbBh034Zwn95c2PNSz9xM7KYEAQ==", 575 | "cpu": [ 576 | "x64" 577 | ], 578 | "dev": true, 579 | "license": "MIT", 580 | "optional": true, 581 | "os": [ 582 | "darwin" 583 | ] 584 | }, 585 | "node_modules/@rollup/rollup-freebsd-arm64": { 586 | "version": "4.39.0", 587 | "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.39.0.tgz", 588 | "integrity": "sha512-jivRRlh2Lod/KvDZx2zUR+I4iBfHcu2V/BA2vasUtdtTN2Uk3jfcZczLa81ESHZHPHy4ih3T/W5rPFZ/hX7RtQ==", 589 | "cpu": [ 590 | "arm64" 591 | ], 592 | "dev": true, 593 | "license": "MIT", 594 | "optional": true, 595 | "os": [ 596 | "freebsd" 597 | ] 598 | }, 599 | "node_modules/@rollup/rollup-freebsd-x64": { 600 | "version": "4.39.0", 601 | "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.39.0.tgz", 602 | "integrity": "sha512-8RXIWvYIRK9nO+bhVz8DwLBepcptw633gv/QT4015CpJ0Ht8punmoHU/DuEd3iw9Hr8UwUV+t+VNNuZIWYeY7Q==", 603 | "cpu": [ 604 | "x64" 605 | ], 606 | "dev": true, 607 | "license": "MIT", 608 | "optional": true, 609 | "os": [ 610 | "freebsd" 611 | ] 612 | }, 613 | "node_modules/@rollup/rollup-linux-arm-gnueabihf": { 614 | "version": "4.39.0", 615 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.39.0.tgz", 616 | "integrity": "sha512-mz5POx5Zu58f2xAG5RaRRhp3IZDK7zXGk5sdEDj4o96HeaXhlUwmLFzNlc4hCQi5sGdR12VDgEUqVSHer0lI9g==", 617 | "cpu": [ 618 | "arm" 619 | ], 620 | "dev": true, 621 | "license": "MIT", 622 | "optional": true, 623 | "os": [ 624 | "linux" 625 | ] 626 | }, 627 | "node_modules/@rollup/rollup-linux-arm-musleabihf": { 628 | "version": "4.39.0", 629 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.39.0.tgz", 630 | "integrity": "sha512-+YDwhM6gUAyakl0CD+bMFpdmwIoRDzZYaTWV3SDRBGkMU/VpIBYXXEvkEcTagw/7VVkL2vA29zU4UVy1mP0/Yw==", 631 | "cpu": [ 632 | "arm" 633 | ], 634 | "dev": true, 635 | "license": "MIT", 636 | "optional": true, 637 | "os": [ 638 | "linux" 639 | ] 640 | }, 641 | "node_modules/@rollup/rollup-linux-arm64-gnu": { 642 | "version": "4.39.0", 643 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.39.0.tgz", 644 | "integrity": "sha512-EKf7iF7aK36eEChvlgxGnk7pdJfzfQbNvGV/+l98iiMwU23MwvmV0Ty3pJ0p5WQfm3JRHOytSIqD9LB7Bq7xdQ==", 645 | "cpu": [ 646 | "arm64" 647 | ], 648 | "dev": true, 649 | "license": "MIT", 650 | "optional": true, 651 | "os": [ 652 | "linux" 653 | ] 654 | }, 655 | "node_modules/@rollup/rollup-linux-arm64-musl": { 656 | "version": "4.39.0", 657 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.39.0.tgz", 658 | "integrity": "sha512-vYanR6MtqC7Z2SNr8gzVnzUul09Wi1kZqJaek3KcIlI/wq5Xtq4ZPIZ0Mr/st/sv/NnaPwy/D4yXg5x0B3aUUA==", 659 | "cpu": [ 660 | "arm64" 661 | ], 662 | "dev": true, 663 | "license": "MIT", 664 | "optional": true, 665 | "os": [ 666 | "linux" 667 | ] 668 | }, 669 | "node_modules/@rollup/rollup-linux-loongarch64-gnu": { 670 | "version": "4.39.0", 671 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.39.0.tgz", 672 | "integrity": "sha512-NMRUT40+h0FBa5fb+cpxtZoGAggRem16ocVKIv5gDB5uLDgBIwrIsXlGqYbLwW8YyO3WVTk1FkFDjMETYlDqiw==", 673 | "cpu": [ 674 | "loong64" 675 | ], 676 | "dev": true, 677 | "license": "MIT", 678 | "optional": true, 679 | "os": [ 680 | "linux" 681 | ] 682 | }, 683 | "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { 684 | "version": "4.39.0", 685 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.39.0.tgz", 686 | "integrity": "sha512-0pCNnmxgduJ3YRt+D+kJ6Ai/r+TaePu9ZLENl+ZDV/CdVczXl95CbIiwwswu4L+K7uOIGf6tMo2vm8uadRaICQ==", 687 | "cpu": [ 688 | "ppc64" 689 | ], 690 | "dev": true, 691 | "license": "MIT", 692 | "optional": true, 693 | "os": [ 694 | "linux" 695 | ] 696 | }, 697 | "node_modules/@rollup/rollup-linux-riscv64-gnu": { 698 | "version": "4.39.0", 699 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.39.0.tgz", 700 | "integrity": "sha512-t7j5Zhr7S4bBtksT73bO6c3Qa2AV/HqiGlj9+KB3gNF5upcVkx+HLgxTm8DK4OkzsOYqbdqbLKwvGMhylJCPhQ==", 701 | "cpu": [ 702 | "riscv64" 703 | ], 704 | "dev": true, 705 | "license": "MIT", 706 | "optional": true, 707 | "os": [ 708 | "linux" 709 | ] 710 | }, 711 | "node_modules/@rollup/rollup-linux-riscv64-musl": { 712 | "version": "4.39.0", 713 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.39.0.tgz", 714 | "integrity": "sha512-m6cwI86IvQ7M93MQ2RF5SP8tUjD39Y7rjb1qjHgYh28uAPVU8+k/xYWvxRO3/tBN2pZkSMa5RjnPuUIbrwVxeA==", 715 | "cpu": [ 716 | "riscv64" 717 | ], 718 | "dev": true, 719 | "license": "MIT", 720 | "optional": true, 721 | "os": [ 722 | "linux" 723 | ] 724 | }, 725 | "node_modules/@rollup/rollup-linux-s390x-gnu": { 726 | "version": "4.39.0", 727 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.39.0.tgz", 728 | "integrity": "sha512-iRDJd2ebMunnk2rsSBYlsptCyuINvxUfGwOUldjv5M4tpa93K8tFMeYGpNk2+Nxl+OBJnBzy2/JCscGeO507kA==", 729 | "cpu": [ 730 | "s390x" 731 | ], 732 | "dev": true, 733 | "license": "MIT", 734 | "optional": true, 735 | "os": [ 736 | "linux" 737 | ] 738 | }, 739 | "node_modules/@rollup/rollup-linux-x64-gnu": { 740 | "version": "4.39.0", 741 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.39.0.tgz", 742 | "integrity": "sha512-t9jqYw27R6Lx0XKfEFe5vUeEJ5pF3SGIM6gTfONSMb7DuG6z6wfj2yjcoZxHg129veTqU7+wOhY6GX8wmf90dA==", 743 | "cpu": [ 744 | "x64" 745 | ], 746 | "dev": true, 747 | "license": "MIT", 748 | "optional": true, 749 | "os": [ 750 | "linux" 751 | ] 752 | }, 753 | "node_modules/@rollup/rollup-linux-x64-musl": { 754 | "version": "4.39.0", 755 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.39.0.tgz", 756 | "integrity": "sha512-ThFdkrFDP55AIsIZDKSBWEt/JcWlCzydbZHinZ0F/r1h83qbGeenCt/G/wG2O0reuENDD2tawfAj2s8VK7Bugg==", 757 | "cpu": [ 758 | "x64" 759 | ], 760 | "dev": true, 761 | "license": "MIT", 762 | "optional": true, 763 | "os": [ 764 | "linux" 765 | ] 766 | }, 767 | "node_modules/@rollup/rollup-win32-arm64-msvc": { 768 | "version": "4.39.0", 769 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.39.0.tgz", 770 | "integrity": "sha512-jDrLm6yUtbOg2TYB3sBF3acUnAwsIksEYjLeHL+TJv9jg+TmTwdyjnDex27jqEMakNKf3RwwPahDIt7QXCSqRQ==", 771 | "cpu": [ 772 | "arm64" 773 | ], 774 | "dev": true, 775 | "license": "MIT", 776 | "optional": true, 777 | "os": [ 778 | "win32" 779 | ] 780 | }, 781 | "node_modules/@rollup/rollup-win32-ia32-msvc": { 782 | "version": "4.39.0", 783 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.39.0.tgz", 784 | "integrity": "sha512-6w9uMuza+LbLCVoNKL5FSLE7yvYkq9laSd09bwS0tMjkwXrmib/4KmoJcrKhLWHvw19mwU+33ndC69T7weNNjQ==", 785 | "cpu": [ 786 | "ia32" 787 | ], 788 | "dev": true, 789 | "license": "MIT", 790 | "optional": true, 791 | "os": [ 792 | "win32" 793 | ] 794 | }, 795 | "node_modules/@rollup/rollup-win32-x64-msvc": { 796 | "version": "4.39.0", 797 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.39.0.tgz", 798 | "integrity": "sha512-yAkUOkIKZlK5dl7u6dg897doBgLXmUHhIINM2c+sND3DZwnrdQkkSiDh7N75Ll4mM4dxSkYfXqU9fW3lLkMFug==", 799 | "cpu": [ 800 | "x64" 801 | ], 802 | "dev": true, 803 | "license": "MIT", 804 | "optional": true, 805 | "os": [ 806 | "win32" 807 | ] 808 | }, 809 | "node_modules/@sveltejs/vite-plugin-svelte": { 810 | "version": "5.0.3", 811 | "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-5.0.3.tgz", 812 | "integrity": "sha512-MCFS6CrQDu1yGwspm4qtli0e63vaPCehf6V7pIMP15AsWgMKrqDGCPFF/0kn4SP0ii4aySu4Pa62+fIRGFMjgw==", 813 | "dev": true, 814 | "license": "MIT", 815 | "dependencies": { 816 | "@sveltejs/vite-plugin-svelte-inspector": "^4.0.1", 817 | "debug": "^4.4.0", 818 | "deepmerge": "^4.3.1", 819 | "kleur": "^4.1.5", 820 | "magic-string": "^0.30.15", 821 | "vitefu": "^1.0.4" 822 | }, 823 | "engines": { 824 | "node": "^18.0.0 || ^20.0.0 || >=22" 825 | }, 826 | "peerDependencies": { 827 | "svelte": "^5.0.0", 828 | "vite": "^6.0.0" 829 | } 830 | }, 831 | "node_modules/@sveltejs/vite-plugin-svelte/node_modules/@sveltejs/vite-plugin-svelte-inspector": { 832 | "version": "4.0.1", 833 | "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte-inspector/-/vite-plugin-svelte-inspector-4.0.1.tgz", 834 | "integrity": "sha512-J/Nmb2Q2y7mck2hyCX4ckVHcR5tu2J+MtBEQqpDrrgELZ2uvraQcK/ioCV61AqkdXFgriksOKIceDcQmqnGhVw==", 835 | "dev": true, 836 | "license": "MIT", 837 | "dependencies": { 838 | "debug": "^4.3.7" 839 | }, 840 | "engines": { 841 | "node": "^18.0.0 || ^20.0.0 || >=22" 842 | }, 843 | "peerDependencies": { 844 | "@sveltejs/vite-plugin-svelte": "^5.0.0", 845 | "svelte": "^5.0.0", 846 | "vite": "^6.0.0" 847 | } 848 | }, 849 | "node_modules/@tsconfig/svelte": { 850 | "version": "3.0.0", 851 | "resolved": "https://registry.npmjs.org/@tsconfig/svelte/-/svelte-3.0.0.tgz", 852 | "integrity": "sha512-pYrtLtOwku/7r1i9AMONsJMVYAtk3hzOfiGNekhtq5tYBGA7unMve8RvUclKLMT3PrihvJqUmzsRGh0RP84hKg==", 853 | "dev": true 854 | }, 855 | "node_modules/@types/estree": { 856 | "version": "1.0.7", 857 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.7.tgz", 858 | "integrity": "sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==", 859 | "dev": true, 860 | "license": "MIT" 861 | }, 862 | "node_modules/@types/node": { 863 | "version": "18.11.4", 864 | "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.4.tgz", 865 | "integrity": "sha512-BxcJpBu8D3kv/GZkx/gSMz6VnTJREBj/4lbzYOQueUOELkt8WrO6zAcSPmp9uRPEW/d+lUO8QK0W2xnS1hEU0A==", 866 | "dev": true 867 | }, 868 | "node_modules/@types/pug": { 869 | "version": "2.0.6", 870 | "resolved": "https://registry.npmjs.org/@types/pug/-/pug-2.0.6.tgz", 871 | "integrity": "sha512-SnHmG9wN1UVmagJOnyo/qkk0Z7gejYxOYYmaAwr5u2yFYfsupN3sg10kyzN8Hep/2zbHxCnsumxOoRIRMBwKCg==", 872 | "dev": true 873 | }, 874 | "node_modules/@types/sass": { 875 | "version": "1.43.1", 876 | "resolved": "https://registry.npmjs.org/@types/sass/-/sass-1.43.1.tgz", 877 | "integrity": "sha512-BPdoIt1lfJ6B7rw35ncdwBZrAssjcwzI5LByIrYs+tpXlj/CAkuVdRsgZDdP4lq5EjyWzwxZCqAoFyHKFwp32g==", 878 | "dev": true, 879 | "dependencies": { 880 | "@types/node": "*" 881 | } 882 | }, 883 | "node_modules/anymatch": { 884 | "version": "3.1.2", 885 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", 886 | "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", 887 | "dev": true, 888 | "dependencies": { 889 | "normalize-path": "^3.0.0", 890 | "picomatch": "^2.0.4" 891 | }, 892 | "engines": { 893 | "node": ">= 8" 894 | } 895 | }, 896 | "node_modules/balanced-match": { 897 | "version": "1.0.2", 898 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 899 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 900 | "dev": true 901 | }, 902 | "node_modules/binary-extensions": { 903 | "version": "2.2.0", 904 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", 905 | "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", 906 | "dev": true, 907 | "engines": { 908 | "node": ">=8" 909 | } 910 | }, 911 | "node_modules/brace-expansion": { 912 | "version": "1.1.11", 913 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 914 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 915 | "dev": true, 916 | "dependencies": { 917 | "balanced-match": "^1.0.0", 918 | "concat-map": "0.0.1" 919 | } 920 | }, 921 | "node_modules/braces": { 922 | "version": "3.0.3", 923 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", 924 | "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", 925 | "dev": true, 926 | "dependencies": { 927 | "fill-range": "^7.1.1" 928 | }, 929 | "engines": { 930 | "node": ">=8" 931 | } 932 | }, 933 | "node_modules/buffer-crc32": { 934 | "version": "0.2.13", 935 | "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", 936 | "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", 937 | "dev": true, 938 | "engines": { 939 | "node": "*" 940 | } 941 | }, 942 | "node_modules/callsites": { 943 | "version": "3.1.0", 944 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", 945 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", 946 | "dev": true, 947 | "engines": { 948 | "node": ">=6" 949 | } 950 | }, 951 | "node_modules/chokidar": { 952 | "version": "3.5.3", 953 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", 954 | "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", 955 | "dev": true, 956 | "funding": [ 957 | { 958 | "type": "individual", 959 | "url": "https://paulmillr.com/funding/" 960 | } 961 | ], 962 | "dependencies": { 963 | "anymatch": "~3.1.2", 964 | "braces": "~3.0.2", 965 | "glob-parent": "~5.1.2", 966 | "is-binary-path": "~2.1.0", 967 | "is-glob": "~4.0.1", 968 | "normalize-path": "~3.0.0", 969 | "readdirp": "~3.6.0" 970 | }, 971 | "engines": { 972 | "node": ">= 8.10.0" 973 | }, 974 | "optionalDependencies": { 975 | "fsevents": "~2.3.2" 976 | } 977 | }, 978 | "node_modules/concat-map": { 979 | "version": "0.0.1", 980 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 981 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 982 | "dev": true 983 | }, 984 | "node_modules/debug": { 985 | "version": "4.4.0", 986 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", 987 | "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", 988 | "dev": true, 989 | "license": "MIT", 990 | "dependencies": { 991 | "ms": "^2.1.3" 992 | }, 993 | "engines": { 994 | "node": ">=6.0" 995 | }, 996 | "peerDependenciesMeta": { 997 | "supports-color": { 998 | "optional": true 999 | } 1000 | } 1001 | }, 1002 | "node_modules/deepmerge": { 1003 | "version": "4.3.1", 1004 | "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", 1005 | "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", 1006 | "dev": true, 1007 | "license": "MIT", 1008 | "engines": { 1009 | "node": ">=0.10.0" 1010 | } 1011 | }, 1012 | "node_modules/detect-indent": { 1013 | "version": "6.1.0", 1014 | "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-6.1.0.tgz", 1015 | "integrity": "sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==", 1016 | "dev": true, 1017 | "engines": { 1018 | "node": ">=8" 1019 | } 1020 | }, 1021 | "node_modules/es6-promise": { 1022 | "version": "3.3.1", 1023 | "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-3.3.1.tgz", 1024 | "integrity": "sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg==", 1025 | "dev": true 1026 | }, 1027 | "node_modules/esbuild": { 1028 | "version": "0.25.2", 1029 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.2.tgz", 1030 | "integrity": "sha512-16854zccKPnC+toMywC+uKNeYSv+/eXkevRAfwRD/G9Cleq66m8XFIrigkbvauLLlCfDL45Q2cWegSg53gGBnQ==", 1031 | "dev": true, 1032 | "hasInstallScript": true, 1033 | "license": "MIT", 1034 | "bin": { 1035 | "esbuild": "bin/esbuild" 1036 | }, 1037 | "engines": { 1038 | "node": ">=18" 1039 | }, 1040 | "optionalDependencies": { 1041 | "@esbuild/aix-ppc64": "0.25.2", 1042 | "@esbuild/android-arm": "0.25.2", 1043 | "@esbuild/android-arm64": "0.25.2", 1044 | "@esbuild/android-x64": "0.25.2", 1045 | "@esbuild/darwin-arm64": "0.25.2", 1046 | "@esbuild/darwin-x64": "0.25.2", 1047 | "@esbuild/freebsd-arm64": "0.25.2", 1048 | "@esbuild/freebsd-x64": "0.25.2", 1049 | "@esbuild/linux-arm": "0.25.2", 1050 | "@esbuild/linux-arm64": "0.25.2", 1051 | "@esbuild/linux-ia32": "0.25.2", 1052 | "@esbuild/linux-loong64": "0.25.2", 1053 | "@esbuild/linux-mips64el": "0.25.2", 1054 | "@esbuild/linux-ppc64": "0.25.2", 1055 | "@esbuild/linux-riscv64": "0.25.2", 1056 | "@esbuild/linux-s390x": "0.25.2", 1057 | "@esbuild/linux-x64": "0.25.2", 1058 | "@esbuild/netbsd-arm64": "0.25.2", 1059 | "@esbuild/netbsd-x64": "0.25.2", 1060 | "@esbuild/openbsd-arm64": "0.25.2", 1061 | "@esbuild/openbsd-x64": "0.25.2", 1062 | "@esbuild/sunos-x64": "0.25.2", 1063 | "@esbuild/win32-arm64": "0.25.2", 1064 | "@esbuild/win32-ia32": "0.25.2", 1065 | "@esbuild/win32-x64": "0.25.2" 1066 | } 1067 | }, 1068 | "node_modules/fast-glob": { 1069 | "version": "3.2.12", 1070 | "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", 1071 | "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", 1072 | "dev": true, 1073 | "dependencies": { 1074 | "@nodelib/fs.stat": "^2.0.2", 1075 | "@nodelib/fs.walk": "^1.2.3", 1076 | "glob-parent": "^5.1.2", 1077 | "merge2": "^1.3.0", 1078 | "micromatch": "^4.0.4" 1079 | }, 1080 | "engines": { 1081 | "node": ">=8.6.0" 1082 | } 1083 | }, 1084 | "node_modules/fastq": { 1085 | "version": "1.13.0", 1086 | "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", 1087 | "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", 1088 | "dev": true, 1089 | "dependencies": { 1090 | "reusify": "^1.0.4" 1091 | } 1092 | }, 1093 | "node_modules/fill-range": { 1094 | "version": "7.1.1", 1095 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", 1096 | "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", 1097 | "dev": true, 1098 | "dependencies": { 1099 | "to-regex-range": "^5.0.1" 1100 | }, 1101 | "engines": { 1102 | "node": ">=8" 1103 | } 1104 | }, 1105 | "node_modules/fs.realpath": { 1106 | "version": "1.0.0", 1107 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 1108 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", 1109 | "dev": true 1110 | }, 1111 | "node_modules/fsevents": { 1112 | "version": "2.3.3", 1113 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", 1114 | "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", 1115 | "dev": true, 1116 | "hasInstallScript": true, 1117 | "license": "MIT", 1118 | "optional": true, 1119 | "os": [ 1120 | "darwin" 1121 | ], 1122 | "engines": { 1123 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 1124 | } 1125 | }, 1126 | "node_modules/glob": { 1127 | "version": "7.2.3", 1128 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", 1129 | "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", 1130 | "dev": true, 1131 | "dependencies": { 1132 | "fs.realpath": "^1.0.0", 1133 | "inflight": "^1.0.4", 1134 | "inherits": "2", 1135 | "minimatch": "^3.1.1", 1136 | "once": "^1.3.0", 1137 | "path-is-absolute": "^1.0.0" 1138 | }, 1139 | "engines": { 1140 | "node": "*" 1141 | }, 1142 | "funding": { 1143 | "url": "https://github.com/sponsors/isaacs" 1144 | } 1145 | }, 1146 | "node_modules/glob-parent": { 1147 | "version": "5.1.2", 1148 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 1149 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 1150 | "dev": true, 1151 | "dependencies": { 1152 | "is-glob": "^4.0.1" 1153 | }, 1154 | "engines": { 1155 | "node": ">= 6" 1156 | } 1157 | }, 1158 | "node_modules/graceful-fs": { 1159 | "version": "4.2.10", 1160 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", 1161 | "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", 1162 | "dev": true 1163 | }, 1164 | "node_modules/import-fresh": { 1165 | "version": "3.3.0", 1166 | "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", 1167 | "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", 1168 | "dev": true, 1169 | "dependencies": { 1170 | "parent-module": "^1.0.0", 1171 | "resolve-from": "^4.0.0" 1172 | }, 1173 | "engines": { 1174 | "node": ">=6" 1175 | }, 1176 | "funding": { 1177 | "url": "https://github.com/sponsors/sindresorhus" 1178 | } 1179 | }, 1180 | "node_modules/inflight": { 1181 | "version": "1.0.6", 1182 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1183 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", 1184 | "dev": true, 1185 | "dependencies": { 1186 | "once": "^1.3.0", 1187 | "wrappy": "1" 1188 | } 1189 | }, 1190 | "node_modules/inherits": { 1191 | "version": "2.0.4", 1192 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1193 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 1194 | "dev": true 1195 | }, 1196 | "node_modules/is-binary-path": { 1197 | "version": "2.1.0", 1198 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 1199 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 1200 | "dev": true, 1201 | "dependencies": { 1202 | "binary-extensions": "^2.0.0" 1203 | }, 1204 | "engines": { 1205 | "node": ">=8" 1206 | } 1207 | }, 1208 | "node_modules/is-extglob": { 1209 | "version": "2.1.1", 1210 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 1211 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 1212 | "dev": true, 1213 | "engines": { 1214 | "node": ">=0.10.0" 1215 | } 1216 | }, 1217 | "node_modules/is-glob": { 1218 | "version": "4.0.3", 1219 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 1220 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 1221 | "dev": true, 1222 | "dependencies": { 1223 | "is-extglob": "^2.1.1" 1224 | }, 1225 | "engines": { 1226 | "node": ">=0.10.0" 1227 | } 1228 | }, 1229 | "node_modules/is-number": { 1230 | "version": "7.0.0", 1231 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 1232 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 1233 | "dev": true, 1234 | "engines": { 1235 | "node": ">=0.12.0" 1236 | } 1237 | }, 1238 | "node_modules/jstodotxt": { 1239 | "resolved": "..", 1240 | "link": true 1241 | }, 1242 | "node_modules/kleur": { 1243 | "version": "4.1.5", 1244 | "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", 1245 | "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", 1246 | "dev": true, 1247 | "engines": { 1248 | "node": ">=6" 1249 | } 1250 | }, 1251 | "node_modules/magic-string": { 1252 | "version": "0.30.17", 1253 | "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz", 1254 | "integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==", 1255 | "dev": true, 1256 | "license": "MIT", 1257 | "dependencies": { 1258 | "@jridgewell/sourcemap-codec": "^1.5.0" 1259 | } 1260 | }, 1261 | "node_modules/magic-string/node_modules/@jridgewell/sourcemap-codec": { 1262 | "version": "1.5.0", 1263 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", 1264 | "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", 1265 | "dev": true, 1266 | "license": "MIT" 1267 | }, 1268 | "node_modules/merge2": { 1269 | "version": "1.4.1", 1270 | "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", 1271 | "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", 1272 | "dev": true, 1273 | "engines": { 1274 | "node": ">= 8" 1275 | } 1276 | }, 1277 | "node_modules/micromatch": { 1278 | "version": "4.0.5", 1279 | "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", 1280 | "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", 1281 | "dev": true, 1282 | "dependencies": { 1283 | "braces": "^3.0.2", 1284 | "picomatch": "^2.3.1" 1285 | }, 1286 | "engines": { 1287 | "node": ">=8.6" 1288 | } 1289 | }, 1290 | "node_modules/min-indent": { 1291 | "version": "1.0.1", 1292 | "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", 1293 | "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", 1294 | "dev": true, 1295 | "engines": { 1296 | "node": ">=4" 1297 | } 1298 | }, 1299 | "node_modules/minimatch": { 1300 | "version": "3.1.2", 1301 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 1302 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 1303 | "dev": true, 1304 | "dependencies": { 1305 | "brace-expansion": "^1.1.7" 1306 | }, 1307 | "engines": { 1308 | "node": "*" 1309 | } 1310 | }, 1311 | "node_modules/minimist": { 1312 | "version": "1.2.7", 1313 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz", 1314 | "integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==", 1315 | "dev": true, 1316 | "funding": { 1317 | "url": "https://github.com/sponsors/ljharb" 1318 | } 1319 | }, 1320 | "node_modules/mkdirp": { 1321 | "version": "0.5.6", 1322 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", 1323 | "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", 1324 | "dev": true, 1325 | "dependencies": { 1326 | "minimist": "^1.2.6" 1327 | }, 1328 | "bin": { 1329 | "mkdirp": "bin/cmd.js" 1330 | } 1331 | }, 1332 | "node_modules/mri": { 1333 | "version": "1.2.0", 1334 | "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", 1335 | "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==", 1336 | "dev": true, 1337 | "engines": { 1338 | "node": ">=4" 1339 | } 1340 | }, 1341 | "node_modules/ms": { 1342 | "version": "2.1.3", 1343 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1344 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 1345 | "dev": true, 1346 | "license": "MIT" 1347 | }, 1348 | "node_modules/nanoid": { 1349 | "version": "3.3.11", 1350 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", 1351 | "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", 1352 | "dev": true, 1353 | "funding": [ 1354 | { 1355 | "type": "github", 1356 | "url": "https://github.com/sponsors/ai" 1357 | } 1358 | ], 1359 | "license": "MIT", 1360 | "bin": { 1361 | "nanoid": "bin/nanoid.cjs" 1362 | }, 1363 | "engines": { 1364 | "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" 1365 | } 1366 | }, 1367 | "node_modules/normalize-path": { 1368 | "version": "3.0.0", 1369 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 1370 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 1371 | "dev": true, 1372 | "engines": { 1373 | "node": ">=0.10.0" 1374 | } 1375 | }, 1376 | "node_modules/once": { 1377 | "version": "1.4.0", 1378 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1379 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 1380 | "dev": true, 1381 | "dependencies": { 1382 | "wrappy": "1" 1383 | } 1384 | }, 1385 | "node_modules/parent-module": { 1386 | "version": "1.0.1", 1387 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", 1388 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", 1389 | "dev": true, 1390 | "dependencies": { 1391 | "callsites": "^3.0.0" 1392 | }, 1393 | "engines": { 1394 | "node": ">=6" 1395 | } 1396 | }, 1397 | "node_modules/path-is-absolute": { 1398 | "version": "1.0.1", 1399 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1400 | "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", 1401 | "dev": true, 1402 | "engines": { 1403 | "node": ">=0.10.0" 1404 | } 1405 | }, 1406 | "node_modules/picocolors": { 1407 | "version": "1.1.1", 1408 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", 1409 | "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", 1410 | "dev": true, 1411 | "license": "ISC" 1412 | }, 1413 | "node_modules/picomatch": { 1414 | "version": "2.3.1", 1415 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 1416 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 1417 | "dev": true, 1418 | "engines": { 1419 | "node": ">=8.6" 1420 | }, 1421 | "funding": { 1422 | "url": "https://github.com/sponsors/jonschlinkert" 1423 | } 1424 | }, 1425 | "node_modules/postcss": { 1426 | "version": "8.5.3", 1427 | "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.3.tgz", 1428 | "integrity": "sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==", 1429 | "dev": true, 1430 | "funding": [ 1431 | { 1432 | "type": "opencollective", 1433 | "url": "https://opencollective.com/postcss/" 1434 | }, 1435 | { 1436 | "type": "tidelift", 1437 | "url": "https://tidelift.com/funding/github/npm/postcss" 1438 | }, 1439 | { 1440 | "type": "github", 1441 | "url": "https://github.com/sponsors/ai" 1442 | } 1443 | ], 1444 | "license": "MIT", 1445 | "dependencies": { 1446 | "nanoid": "^3.3.8", 1447 | "picocolors": "^1.1.1", 1448 | "source-map-js": "^1.2.1" 1449 | }, 1450 | "engines": { 1451 | "node": "^10 || ^12 || >=14" 1452 | } 1453 | }, 1454 | "node_modules/queue-microtask": { 1455 | "version": "1.2.3", 1456 | "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", 1457 | "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", 1458 | "dev": true, 1459 | "funding": [ 1460 | { 1461 | "type": "github", 1462 | "url": "https://github.com/sponsors/feross" 1463 | }, 1464 | { 1465 | "type": "patreon", 1466 | "url": "https://www.patreon.com/feross" 1467 | }, 1468 | { 1469 | "type": "consulting", 1470 | "url": "https://feross.org/support" 1471 | } 1472 | ] 1473 | }, 1474 | "node_modules/readdirp": { 1475 | "version": "3.6.0", 1476 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 1477 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 1478 | "dev": true, 1479 | "dependencies": { 1480 | "picomatch": "^2.2.1" 1481 | }, 1482 | "engines": { 1483 | "node": ">=8.10.0" 1484 | } 1485 | }, 1486 | "node_modules/resolve-from": { 1487 | "version": "4.0.0", 1488 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", 1489 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", 1490 | "dev": true, 1491 | "engines": { 1492 | "node": ">=4" 1493 | } 1494 | }, 1495 | "node_modules/reusify": { 1496 | "version": "1.0.4", 1497 | "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", 1498 | "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", 1499 | "dev": true, 1500 | "engines": { 1501 | "iojs": ">=1.0.0", 1502 | "node": ">=0.10.0" 1503 | } 1504 | }, 1505 | "node_modules/rimraf": { 1506 | "version": "2.7.1", 1507 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", 1508 | "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", 1509 | "dev": true, 1510 | "dependencies": { 1511 | "glob": "^7.1.3" 1512 | }, 1513 | "bin": { 1514 | "rimraf": "bin.js" 1515 | } 1516 | }, 1517 | "node_modules/rollup": { 1518 | "version": "4.39.0", 1519 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.39.0.tgz", 1520 | "integrity": "sha512-thI8kNc02yNvnmJp8dr3fNWJ9tCONDhp6TV35X6HkKGGs9E6q7YWCHbe5vKiTa7TAiNcFEmXKj3X/pG2b3ci0g==", 1521 | "dev": true, 1522 | "license": "MIT", 1523 | "dependencies": { 1524 | "@types/estree": "1.0.7" 1525 | }, 1526 | "bin": { 1527 | "rollup": "dist/bin/rollup" 1528 | }, 1529 | "engines": { 1530 | "node": ">=18.0.0", 1531 | "npm": ">=8.0.0" 1532 | }, 1533 | "optionalDependencies": { 1534 | "@rollup/rollup-android-arm-eabi": "4.39.0", 1535 | "@rollup/rollup-android-arm64": "4.39.0", 1536 | "@rollup/rollup-darwin-arm64": "4.39.0", 1537 | "@rollup/rollup-darwin-x64": "4.39.0", 1538 | "@rollup/rollup-freebsd-arm64": "4.39.0", 1539 | "@rollup/rollup-freebsd-x64": "4.39.0", 1540 | "@rollup/rollup-linux-arm-gnueabihf": "4.39.0", 1541 | "@rollup/rollup-linux-arm-musleabihf": "4.39.0", 1542 | "@rollup/rollup-linux-arm64-gnu": "4.39.0", 1543 | "@rollup/rollup-linux-arm64-musl": "4.39.0", 1544 | "@rollup/rollup-linux-loongarch64-gnu": "4.39.0", 1545 | "@rollup/rollup-linux-powerpc64le-gnu": "4.39.0", 1546 | "@rollup/rollup-linux-riscv64-gnu": "4.39.0", 1547 | "@rollup/rollup-linux-riscv64-musl": "4.39.0", 1548 | "@rollup/rollup-linux-s390x-gnu": "4.39.0", 1549 | "@rollup/rollup-linux-x64-gnu": "4.39.0", 1550 | "@rollup/rollup-linux-x64-musl": "4.39.0", 1551 | "@rollup/rollup-win32-arm64-msvc": "4.39.0", 1552 | "@rollup/rollup-win32-ia32-msvc": "4.39.0", 1553 | "@rollup/rollup-win32-x64-msvc": "4.39.0", 1554 | "fsevents": "~2.3.2" 1555 | } 1556 | }, 1557 | "node_modules/run-parallel": { 1558 | "version": "1.2.0", 1559 | "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", 1560 | "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", 1561 | "dev": true, 1562 | "funding": [ 1563 | { 1564 | "type": "github", 1565 | "url": "https://github.com/sponsors/feross" 1566 | }, 1567 | { 1568 | "type": "patreon", 1569 | "url": "https://www.patreon.com/feross" 1570 | }, 1571 | { 1572 | "type": "consulting", 1573 | "url": "https://feross.org/support" 1574 | } 1575 | ], 1576 | "dependencies": { 1577 | "queue-microtask": "^1.2.2" 1578 | } 1579 | }, 1580 | "node_modules/sade": { 1581 | "version": "1.8.1", 1582 | "resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz", 1583 | "integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==", 1584 | "dev": true, 1585 | "dependencies": { 1586 | "mri": "^1.1.0" 1587 | }, 1588 | "engines": { 1589 | "node": ">=6" 1590 | } 1591 | }, 1592 | "node_modules/sander": { 1593 | "version": "0.5.1", 1594 | "resolved": "https://registry.npmjs.org/sander/-/sander-0.5.1.tgz", 1595 | "integrity": "sha512-3lVqBir7WuKDHGrKRDn/1Ye3kwpXaDOMsiRP1wd6wpZW56gJhsbp5RqQpA6JG/P+pkXizygnr1dKR8vzWaVsfA==", 1596 | "dev": true, 1597 | "dependencies": { 1598 | "es6-promise": "^3.1.2", 1599 | "graceful-fs": "^4.1.3", 1600 | "mkdirp": "^0.5.1", 1601 | "rimraf": "^2.5.2" 1602 | } 1603 | }, 1604 | "node_modules/sorcery": { 1605 | "version": "0.10.0", 1606 | "resolved": "https://registry.npmjs.org/sorcery/-/sorcery-0.10.0.tgz", 1607 | "integrity": "sha512-R5ocFmKZQFfSTstfOtHjJuAwbpGyf9qjQa1egyhvXSbM7emjrtLXtGdZsDJDABC85YBfVvrOiGWKSYXPKdvP1g==", 1608 | "dev": true, 1609 | "dependencies": { 1610 | "buffer-crc32": "^0.2.5", 1611 | "minimist": "^1.2.0", 1612 | "sander": "^0.5.0", 1613 | "sourcemap-codec": "^1.3.0" 1614 | }, 1615 | "bin": { 1616 | "sorcery": "bin/index.js" 1617 | } 1618 | }, 1619 | "node_modules/source-map-js": { 1620 | "version": "1.2.1", 1621 | "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", 1622 | "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", 1623 | "dev": true, 1624 | "license": "BSD-3-Clause", 1625 | "engines": { 1626 | "node": ">=0.10.0" 1627 | } 1628 | }, 1629 | "node_modules/sourcemap-codec": { 1630 | "version": "1.4.8", 1631 | "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", 1632 | "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", 1633 | "dev": true 1634 | }, 1635 | "node_modules/strip-indent": { 1636 | "version": "3.0.0", 1637 | "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", 1638 | "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", 1639 | "dev": true, 1640 | "dependencies": { 1641 | "min-indent": "^1.0.0" 1642 | }, 1643 | "engines": { 1644 | "node": ">=8" 1645 | } 1646 | }, 1647 | "node_modules/svelte": { 1648 | "version": "3.52.0", 1649 | "resolved": "https://registry.npmjs.org/svelte/-/svelte-3.52.0.tgz", 1650 | "integrity": "sha512-FxcnEUOAVfr10vDU5dVgJN19IvqeHQCS1zfe8vayTfis9A2t5Fhx+JDe5uv/C3j//bB1umpLJ6quhgs9xyUbCQ==", 1651 | "dev": true, 1652 | "engines": { 1653 | "node": ">= 8" 1654 | } 1655 | }, 1656 | "node_modules/svelte-check": { 1657 | "version": "2.9.2", 1658 | "resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-2.9.2.tgz", 1659 | "integrity": "sha512-DRi8HhnCiqiGR2YF9ervPGvtoYrheE09cXieCTEqeTPOTJzfoa54Py8rovIBv4bH4n5HgZYIyTQ3DDLHQLl2uQ==", 1660 | "dev": true, 1661 | "dependencies": { 1662 | "@jridgewell/trace-mapping": "^0.3.9", 1663 | "chokidar": "^3.4.1", 1664 | "fast-glob": "^3.2.7", 1665 | "import-fresh": "^3.2.1", 1666 | "picocolors": "^1.0.0", 1667 | "sade": "^1.7.4", 1668 | "svelte-preprocess": "^4.0.0", 1669 | "typescript": "*" 1670 | }, 1671 | "bin": { 1672 | "svelte-check": "bin/svelte-check" 1673 | }, 1674 | "peerDependencies": { 1675 | "svelte": "^3.24.0" 1676 | } 1677 | }, 1678 | "node_modules/svelte-preprocess": { 1679 | "version": "4.10.7", 1680 | "resolved": "https://registry.npmjs.org/svelte-preprocess/-/svelte-preprocess-4.10.7.tgz", 1681 | "integrity": "sha512-sNPBnqYD6FnmdBrUmBCaqS00RyCsCpj2BG58A1JBswNF7b0OKviwxqVrOL/CKyJrLSClrSeqQv5BXNg2RUbPOw==", 1682 | "dev": true, 1683 | "hasInstallScript": true, 1684 | "dependencies": { 1685 | "@types/pug": "^2.0.4", 1686 | "@types/sass": "^1.16.0", 1687 | "detect-indent": "^6.0.0", 1688 | "magic-string": "^0.25.7", 1689 | "sorcery": "^0.10.0", 1690 | "strip-indent": "^3.0.0" 1691 | }, 1692 | "engines": { 1693 | "node": ">= 9.11.2" 1694 | }, 1695 | "peerDependencies": { 1696 | "@babel/core": "^7.10.2", 1697 | "coffeescript": "^2.5.1", 1698 | "less": "^3.11.3 || ^4.0.0", 1699 | "postcss": "^7 || ^8", 1700 | "postcss-load-config": "^2.1.0 || ^3.0.0 || ^4.0.0", 1701 | "pug": "^3.0.0", 1702 | "sass": "^1.26.8", 1703 | "stylus": "^0.55.0", 1704 | "sugarss": "^2.0.0", 1705 | "svelte": "^3.23.0", 1706 | "typescript": "^3.9.5 || ^4.0.0" 1707 | }, 1708 | "peerDependenciesMeta": { 1709 | "@babel/core": { 1710 | "optional": true 1711 | }, 1712 | "coffeescript": { 1713 | "optional": true 1714 | }, 1715 | "less": { 1716 | "optional": true 1717 | }, 1718 | "node-sass": { 1719 | "optional": true 1720 | }, 1721 | "postcss": { 1722 | "optional": true 1723 | }, 1724 | "postcss-load-config": { 1725 | "optional": true 1726 | }, 1727 | "pug": { 1728 | "optional": true 1729 | }, 1730 | "sass": { 1731 | "optional": true 1732 | }, 1733 | "stylus": { 1734 | "optional": true 1735 | }, 1736 | "sugarss": { 1737 | "optional": true 1738 | }, 1739 | "typescript": { 1740 | "optional": true 1741 | } 1742 | } 1743 | }, 1744 | "node_modules/svelte-preprocess/node_modules/magic-string": { 1745 | "version": "0.25.9", 1746 | "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", 1747 | "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", 1748 | "dev": true, 1749 | "dependencies": { 1750 | "sourcemap-codec": "^1.4.8" 1751 | } 1752 | }, 1753 | "node_modules/tinyglobby": { 1754 | "version": "0.2.13", 1755 | "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.13.tgz", 1756 | "integrity": "sha512-mEwzpUgrLySlveBwEVDMKk5B57bhLPYovRfPAXD5gA/98Opn0rCDj3GtLwFvCvH5RK9uPCExUROW5NjDwvqkxw==", 1757 | "dev": true, 1758 | "license": "MIT", 1759 | "dependencies": { 1760 | "fdir": "^6.4.4", 1761 | "picomatch": "^4.0.2" 1762 | }, 1763 | "engines": { 1764 | "node": ">=12.0.0" 1765 | }, 1766 | "funding": { 1767 | "url": "https://github.com/sponsors/SuperchupuDev" 1768 | } 1769 | }, 1770 | "node_modules/tinyglobby/node_modules/fdir": { 1771 | "version": "6.4.4", 1772 | "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.4.tgz", 1773 | "integrity": "sha512-1NZP+GK4GfuAv3PqKvxQRDMjdSRZjnkq7KfhlNrCNNlZ0ygQFpebfrnfnq/W7fpUnAv9aGWmY1zKx7FYL3gwhg==", 1774 | "dev": true, 1775 | "license": "MIT", 1776 | "peerDependencies": { 1777 | "picomatch": "^3 || ^4" 1778 | }, 1779 | "peerDependenciesMeta": { 1780 | "picomatch": { 1781 | "optional": true 1782 | } 1783 | } 1784 | }, 1785 | "node_modules/tinyglobby/node_modules/picomatch": { 1786 | "version": "4.0.2", 1787 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", 1788 | "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", 1789 | "dev": true, 1790 | "license": "MIT", 1791 | "engines": { 1792 | "node": ">=12" 1793 | }, 1794 | "funding": { 1795 | "url": "https://github.com/sponsors/jonschlinkert" 1796 | } 1797 | }, 1798 | "node_modules/to-regex-range": { 1799 | "version": "5.0.1", 1800 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 1801 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 1802 | "dev": true, 1803 | "dependencies": { 1804 | "is-number": "^7.0.0" 1805 | }, 1806 | "engines": { 1807 | "node": ">=8.0" 1808 | } 1809 | }, 1810 | "node_modules/tslib": { 1811 | "version": "2.4.0", 1812 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", 1813 | "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==", 1814 | "dev": true 1815 | }, 1816 | "node_modules/typescript": { 1817 | "version": "4.8.4", 1818 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", 1819 | "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", 1820 | "dev": true, 1821 | "bin": { 1822 | "tsc": "bin/tsc", 1823 | "tsserver": "bin/tsserver" 1824 | }, 1825 | "engines": { 1826 | "node": ">=4.2.0" 1827 | } 1828 | }, 1829 | "node_modules/vite": { 1830 | "version": "6.3.4", 1831 | "resolved": "https://registry.npmjs.org/vite/-/vite-6.3.4.tgz", 1832 | "integrity": "sha512-BiReIiMS2fyFqbqNT/Qqt4CVITDU9M9vE+DKcVAsB+ZV0wvTKd+3hMbkpxz1b+NmEDMegpVbisKiAZOnvO92Sw==", 1833 | "dev": true, 1834 | "license": "MIT", 1835 | "dependencies": { 1836 | "esbuild": "^0.25.0", 1837 | "fdir": "^6.4.4", 1838 | "picomatch": "^4.0.2", 1839 | "postcss": "^8.5.3", 1840 | "rollup": "^4.34.9", 1841 | "tinyglobby": "^0.2.13" 1842 | }, 1843 | "bin": { 1844 | "vite": "bin/vite.js" 1845 | }, 1846 | "engines": { 1847 | "node": "^18.0.0 || ^20.0.0 || >=22.0.0" 1848 | }, 1849 | "funding": { 1850 | "url": "https://github.com/vitejs/vite?sponsor=1" 1851 | }, 1852 | "optionalDependencies": { 1853 | "fsevents": "~2.3.3" 1854 | }, 1855 | "peerDependencies": { 1856 | "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", 1857 | "jiti": ">=1.21.0", 1858 | "less": "*", 1859 | "lightningcss": "^1.21.0", 1860 | "sass": "*", 1861 | "sass-embedded": "*", 1862 | "stylus": "*", 1863 | "sugarss": "*", 1864 | "terser": "^5.16.0", 1865 | "tsx": "^4.8.1", 1866 | "yaml": "^2.4.2" 1867 | }, 1868 | "peerDependenciesMeta": { 1869 | "@types/node": { 1870 | "optional": true 1871 | }, 1872 | "jiti": { 1873 | "optional": true 1874 | }, 1875 | "less": { 1876 | "optional": true 1877 | }, 1878 | "lightningcss": { 1879 | "optional": true 1880 | }, 1881 | "sass": { 1882 | "optional": true 1883 | }, 1884 | "sass-embedded": { 1885 | "optional": true 1886 | }, 1887 | "stylus": { 1888 | "optional": true 1889 | }, 1890 | "sugarss": { 1891 | "optional": true 1892 | }, 1893 | "terser": { 1894 | "optional": true 1895 | }, 1896 | "tsx": { 1897 | "optional": true 1898 | }, 1899 | "yaml": { 1900 | "optional": true 1901 | } 1902 | } 1903 | }, 1904 | "node_modules/vite/node_modules/fdir": { 1905 | "version": "6.4.4", 1906 | "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.4.tgz", 1907 | "integrity": "sha512-1NZP+GK4GfuAv3PqKvxQRDMjdSRZjnkq7KfhlNrCNNlZ0ygQFpebfrnfnq/W7fpUnAv9aGWmY1zKx7FYL3gwhg==", 1908 | "dev": true, 1909 | "license": "MIT", 1910 | "peerDependencies": { 1911 | "picomatch": "^3 || ^4" 1912 | }, 1913 | "peerDependenciesMeta": { 1914 | "picomatch": { 1915 | "optional": true 1916 | } 1917 | } 1918 | }, 1919 | "node_modules/vite/node_modules/picomatch": { 1920 | "version": "4.0.2", 1921 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", 1922 | "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", 1923 | "dev": true, 1924 | "license": "MIT", 1925 | "engines": { 1926 | "node": ">=12" 1927 | }, 1928 | "funding": { 1929 | "url": "https://github.com/sponsors/jonschlinkert" 1930 | } 1931 | }, 1932 | "node_modules/vitefu": { 1933 | "version": "1.0.6", 1934 | "resolved": "https://registry.npmjs.org/vitefu/-/vitefu-1.0.6.tgz", 1935 | "integrity": "sha512-+Rex1GlappUyNN6UfwbVZne/9cYC4+R2XDk9xkNXBKMw6HQagdX9PgZ8V2v1WUSK1wfBLp7qbI1+XSNIlB1xmA==", 1936 | "dev": true, 1937 | "license": "MIT", 1938 | "workspaces": [ 1939 | "tests/deps/*", 1940 | "tests/projects/*" 1941 | ], 1942 | "peerDependencies": { 1943 | "vite": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0" 1944 | }, 1945 | "peerDependenciesMeta": { 1946 | "vite": { 1947 | "optional": true 1948 | } 1949 | } 1950 | }, 1951 | "node_modules/wrappy": { 1952 | "version": "1.0.2", 1953 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1954 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", 1955 | "dev": true 1956 | } 1957 | }, 1958 | "dependencies": { 1959 | "@esbuild/aix-ppc64": { 1960 | "version": "0.25.2", 1961 | "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.2.tgz", 1962 | "integrity": "sha512-wCIboOL2yXZym2cgm6mlA742s9QeJ8DjGVaL39dLN4rRwrOgOyYSnOaFPhKZGLb2ngj4EyfAFjsNJwPXZvseag==", 1963 | "dev": true, 1964 | "optional": true 1965 | }, 1966 | "@esbuild/android-arm": { 1967 | "version": "0.25.2", 1968 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.2.tgz", 1969 | "integrity": "sha512-NQhH7jFstVY5x8CKbcfa166GoV0EFkaPkCKBQkdPJFvo5u+nGXLEH/ooniLb3QI8Fk58YAx7nsPLozUWfCBOJA==", 1970 | "dev": true, 1971 | "optional": true 1972 | }, 1973 | "@esbuild/android-arm64": { 1974 | "version": "0.25.2", 1975 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.2.tgz", 1976 | "integrity": "sha512-5ZAX5xOmTligeBaeNEPnPaeEuah53Id2tX4c2CVP3JaROTH+j4fnfHCkr1PjXMd78hMst+TlkfKcW/DlTq0i4w==", 1977 | "dev": true, 1978 | "optional": true 1979 | }, 1980 | "@esbuild/android-x64": { 1981 | "version": "0.25.2", 1982 | "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.2.tgz", 1983 | "integrity": "sha512-Ffcx+nnma8Sge4jzddPHCZVRvIfQ0kMsUsCMcJRHkGJ1cDmhe4SsrYIjLUKn1xpHZybmOqCWwB0zQvsjdEHtkg==", 1984 | "dev": true, 1985 | "optional": true 1986 | }, 1987 | "@esbuild/darwin-arm64": { 1988 | "version": "0.25.2", 1989 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.2.tgz", 1990 | "integrity": "sha512-MpM6LUVTXAzOvN4KbjzU/q5smzryuoNjlriAIx+06RpecwCkL9JpenNzpKd2YMzLJFOdPqBpuub6eVRP5IgiSA==", 1991 | "dev": true, 1992 | "optional": true 1993 | }, 1994 | "@esbuild/darwin-x64": { 1995 | "version": "0.25.2", 1996 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.2.tgz", 1997 | "integrity": "sha512-5eRPrTX7wFyuWe8FqEFPG2cU0+butQQVNcT4sVipqjLYQjjh8a8+vUTfgBKM88ObB85ahsnTwF7PSIt6PG+QkA==", 1998 | "dev": true, 1999 | "optional": true 2000 | }, 2001 | "@esbuild/freebsd-arm64": { 2002 | "version": "0.25.2", 2003 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.2.tgz", 2004 | "integrity": "sha512-mLwm4vXKiQ2UTSX4+ImyiPdiHjiZhIaE9QvC7sw0tZ6HoNMjYAqQpGyui5VRIi5sGd+uWq940gdCbY3VLvsO1w==", 2005 | "dev": true, 2006 | "optional": true 2007 | }, 2008 | "@esbuild/freebsd-x64": { 2009 | "version": "0.25.2", 2010 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.2.tgz", 2011 | "integrity": "sha512-6qyyn6TjayJSwGpm8J9QYYGQcRgc90nmfdUb0O7pp1s4lTY+9D0H9O02v5JqGApUyiHOtkz6+1hZNvNtEhbwRQ==", 2012 | "dev": true, 2013 | "optional": true 2014 | }, 2015 | "@esbuild/linux-arm": { 2016 | "version": "0.25.2", 2017 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.2.tgz", 2018 | "integrity": "sha512-UHBRgJcmjJv5oeQF8EpTRZs/1knq6loLxTsjc3nxO9eXAPDLcWW55flrMVc97qFPbmZP31ta1AZVUKQzKTzb0g==", 2019 | "dev": true, 2020 | "optional": true 2021 | }, 2022 | "@esbuild/linux-arm64": { 2023 | "version": "0.25.2", 2024 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.2.tgz", 2025 | "integrity": "sha512-gq/sjLsOyMT19I8obBISvhoYiZIAaGF8JpeXu1u8yPv8BE5HlWYobmlsfijFIZ9hIVGYkbdFhEqC0NvM4kNO0g==", 2026 | "dev": true, 2027 | "optional": true 2028 | }, 2029 | "@esbuild/linux-ia32": { 2030 | "version": "0.25.2", 2031 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.2.tgz", 2032 | "integrity": "sha512-bBYCv9obgW2cBP+2ZWfjYTU+f5cxRoGGQ5SeDbYdFCAZpYWrfjjfYwvUpP8MlKbP0nwZ5gyOU/0aUzZ5HWPuvQ==", 2033 | "dev": true, 2034 | "optional": true 2035 | }, 2036 | "@esbuild/linux-loong64": { 2037 | "version": "0.25.2", 2038 | "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.2.tgz", 2039 | "integrity": "sha512-SHNGiKtvnU2dBlM5D8CXRFdd+6etgZ9dXfaPCeJtz+37PIUlixvlIhI23L5khKXs3DIzAn9V8v+qb1TRKrgT5w==", 2040 | "dev": true, 2041 | "optional": true 2042 | }, 2043 | "@esbuild/linux-mips64el": { 2044 | "version": "0.25.2", 2045 | "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.2.tgz", 2046 | "integrity": "sha512-hDDRlzE6rPeoj+5fsADqdUZl1OzqDYow4TB4Y/3PlKBD0ph1e6uPHzIQcv2Z65u2K0kpeByIyAjCmjn1hJgG0Q==", 2047 | "dev": true, 2048 | "optional": true 2049 | }, 2050 | "@esbuild/linux-ppc64": { 2051 | "version": "0.25.2", 2052 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.2.tgz", 2053 | "integrity": "sha512-tsHu2RRSWzipmUi9UBDEzc0nLc4HtpZEI5Ba+Omms5456x5WaNuiG3u7xh5AO6sipnJ9r4cRWQB2tUjPyIkc6g==", 2054 | "dev": true, 2055 | "optional": true 2056 | }, 2057 | "@esbuild/linux-riscv64": { 2058 | "version": "0.25.2", 2059 | "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.2.tgz", 2060 | "integrity": "sha512-k4LtpgV7NJQOml/10uPU0s4SAXGnowi5qBSjaLWMojNCUICNu7TshqHLAEbkBdAszL5TabfvQ48kK84hyFzjnw==", 2061 | "dev": true, 2062 | "optional": true 2063 | }, 2064 | "@esbuild/linux-s390x": { 2065 | "version": "0.25.2", 2066 | "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.2.tgz", 2067 | "integrity": "sha512-GRa4IshOdvKY7M/rDpRR3gkiTNp34M0eLTaC1a08gNrh4u488aPhuZOCpkF6+2wl3zAN7L7XIpOFBhnaE3/Q8Q==", 2068 | "dev": true, 2069 | "optional": true 2070 | }, 2071 | "@esbuild/linux-x64": { 2072 | "version": "0.25.2", 2073 | "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.2.tgz", 2074 | "integrity": "sha512-QInHERlqpTTZ4FRB0fROQWXcYRD64lAoiegezDunLpalZMjcUcld3YzZmVJ2H/Cp0wJRZ8Xtjtj0cEHhYc/uUg==", 2075 | "dev": true, 2076 | "optional": true 2077 | }, 2078 | "@esbuild/netbsd-arm64": { 2079 | "version": "0.25.2", 2080 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.2.tgz", 2081 | "integrity": "sha512-talAIBoY5M8vHc6EeI2WW9d/CkiO9MQJ0IOWX8hrLhxGbro/vBXJvaQXefW2cP0z0nQVTdQ/eNyGFV1GSKrxfw==", 2082 | "dev": true, 2083 | "optional": true 2084 | }, 2085 | "@esbuild/netbsd-x64": { 2086 | "version": "0.25.2", 2087 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.2.tgz", 2088 | "integrity": "sha512-voZT9Z+tpOxrvfKFyfDYPc4DO4rk06qamv1a/fkuzHpiVBMOhpjK+vBmWM8J1eiB3OLSMFYNaOaBNLXGChf5tg==", 2089 | "dev": true, 2090 | "optional": true 2091 | }, 2092 | "@esbuild/openbsd-arm64": { 2093 | "version": "0.25.2", 2094 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.2.tgz", 2095 | "integrity": "sha512-dcXYOC6NXOqcykeDlwId9kB6OkPUxOEqU+rkrYVqJbK2hagWOMrsTGsMr8+rW02M+d5Op5NNlgMmjzecaRf7Tg==", 2096 | "dev": true, 2097 | "optional": true 2098 | }, 2099 | "@esbuild/openbsd-x64": { 2100 | "version": "0.25.2", 2101 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.2.tgz", 2102 | "integrity": "sha512-t/TkWwahkH0Tsgoq1Ju7QfgGhArkGLkF1uYz8nQS/PPFlXbP5YgRpqQR3ARRiC2iXoLTWFxc6DJMSK10dVXluw==", 2103 | "dev": true, 2104 | "optional": true 2105 | }, 2106 | "@esbuild/sunos-x64": { 2107 | "version": "0.25.2", 2108 | "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.2.tgz", 2109 | "integrity": "sha512-cfZH1co2+imVdWCjd+D1gf9NjkchVhhdpgb1q5y6Hcv9TP6Zi9ZG/beI3ig8TvwT9lH9dlxLq5MQBBgwuj4xvA==", 2110 | "dev": true, 2111 | "optional": true 2112 | }, 2113 | "@esbuild/win32-arm64": { 2114 | "version": "0.25.2", 2115 | "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.2.tgz", 2116 | "integrity": "sha512-7Loyjh+D/Nx/sOTzV8vfbB3GJuHdOQyrOryFdZvPHLf42Tk9ivBU5Aedi7iyX+x6rbn2Mh68T4qq1SDqJBQO5Q==", 2117 | "dev": true, 2118 | "optional": true 2119 | }, 2120 | "@esbuild/win32-ia32": { 2121 | "version": "0.25.2", 2122 | "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.2.tgz", 2123 | "integrity": "sha512-WRJgsz9un0nqZJ4MfhabxaD9Ft8KioqU3JMinOTvobbX6MOSUigSBlogP8QB3uxpJDsFS6yN+3FDBdqE5lg9kg==", 2124 | "dev": true, 2125 | "optional": true 2126 | }, 2127 | "@esbuild/win32-x64": { 2128 | "version": "0.25.2", 2129 | "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.2.tgz", 2130 | "integrity": "sha512-kM3HKb16VIXZyIeVrM1ygYmZBKybX8N4p754bw390wGO3Tf2j4L2/WYL+4suWujpgf6GBYs3jv7TyUivdd05JA==", 2131 | "dev": true, 2132 | "optional": true 2133 | }, 2134 | "@jridgewell/resolve-uri": { 2135 | "version": "3.1.0", 2136 | "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", 2137 | "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", 2138 | "dev": true 2139 | }, 2140 | "@jridgewell/sourcemap-codec": { 2141 | "version": "1.4.14", 2142 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", 2143 | "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", 2144 | "dev": true 2145 | }, 2146 | "@jridgewell/trace-mapping": { 2147 | "version": "0.3.17", 2148 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz", 2149 | "integrity": "sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g==", 2150 | "dev": true, 2151 | "requires": { 2152 | "@jridgewell/resolve-uri": "3.1.0", 2153 | "@jridgewell/sourcemap-codec": "1.4.14" 2154 | } 2155 | }, 2156 | "@nodelib/fs.scandir": { 2157 | "version": "2.1.5", 2158 | "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", 2159 | "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", 2160 | "dev": true, 2161 | "requires": { 2162 | "@nodelib/fs.stat": "2.0.5", 2163 | "run-parallel": "^1.1.9" 2164 | } 2165 | }, 2166 | "@nodelib/fs.stat": { 2167 | "version": "2.0.5", 2168 | "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", 2169 | "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", 2170 | "dev": true 2171 | }, 2172 | "@nodelib/fs.walk": { 2173 | "version": "1.2.8", 2174 | "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", 2175 | "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", 2176 | "dev": true, 2177 | "requires": { 2178 | "@nodelib/fs.scandir": "2.1.5", 2179 | "fastq": "^1.6.0" 2180 | } 2181 | }, 2182 | "@rollup/rollup-android-arm-eabi": { 2183 | "version": "4.39.0", 2184 | "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.39.0.tgz", 2185 | "integrity": "sha512-lGVys55Qb00Wvh8DMAocp5kIcaNzEFTmGhfFd88LfaogYTRKrdxgtlO5H6S49v2Nd8R2C6wLOal0qv6/kCkOwA==", 2186 | "dev": true, 2187 | "optional": true 2188 | }, 2189 | "@rollup/rollup-android-arm64": { 2190 | "version": "4.39.0", 2191 | "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.39.0.tgz", 2192 | "integrity": "sha512-It9+M1zE31KWfqh/0cJLrrsCPiF72PoJjIChLX+rEcujVRCb4NLQ5QzFkzIZW8Kn8FTbvGQBY5TkKBau3S8cCQ==", 2193 | "dev": true, 2194 | "optional": true 2195 | }, 2196 | "@rollup/rollup-darwin-arm64": { 2197 | "version": "4.39.0", 2198 | "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.39.0.tgz", 2199 | "integrity": "sha512-lXQnhpFDOKDXiGxsU9/l8UEGGM65comrQuZ+lDcGUx+9YQ9dKpF3rSEGepyeR5AHZ0b5RgiligsBhWZfSSQh8Q==", 2200 | "dev": true, 2201 | "optional": true 2202 | }, 2203 | "@rollup/rollup-darwin-x64": { 2204 | "version": "4.39.0", 2205 | "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.39.0.tgz", 2206 | "integrity": "sha512-mKXpNZLvtEbgu6WCkNij7CGycdw9cJi2k9v0noMb++Vab12GZjFgUXD69ilAbBh034Zwn95c2PNSz9xM7KYEAQ==", 2207 | "dev": true, 2208 | "optional": true 2209 | }, 2210 | "@rollup/rollup-freebsd-arm64": { 2211 | "version": "4.39.0", 2212 | "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.39.0.tgz", 2213 | "integrity": "sha512-jivRRlh2Lod/KvDZx2zUR+I4iBfHcu2V/BA2vasUtdtTN2Uk3jfcZczLa81ESHZHPHy4ih3T/W5rPFZ/hX7RtQ==", 2214 | "dev": true, 2215 | "optional": true 2216 | }, 2217 | "@rollup/rollup-freebsd-x64": { 2218 | "version": "4.39.0", 2219 | "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.39.0.tgz", 2220 | "integrity": "sha512-8RXIWvYIRK9nO+bhVz8DwLBepcptw633gv/QT4015CpJ0Ht8punmoHU/DuEd3iw9Hr8UwUV+t+VNNuZIWYeY7Q==", 2221 | "dev": true, 2222 | "optional": true 2223 | }, 2224 | "@rollup/rollup-linux-arm-gnueabihf": { 2225 | "version": "4.39.0", 2226 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.39.0.tgz", 2227 | "integrity": "sha512-mz5POx5Zu58f2xAG5RaRRhp3IZDK7zXGk5sdEDj4o96HeaXhlUwmLFzNlc4hCQi5sGdR12VDgEUqVSHer0lI9g==", 2228 | "dev": true, 2229 | "optional": true 2230 | }, 2231 | "@rollup/rollup-linux-arm-musleabihf": { 2232 | "version": "4.39.0", 2233 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.39.0.tgz", 2234 | "integrity": "sha512-+YDwhM6gUAyakl0CD+bMFpdmwIoRDzZYaTWV3SDRBGkMU/VpIBYXXEvkEcTagw/7VVkL2vA29zU4UVy1mP0/Yw==", 2235 | "dev": true, 2236 | "optional": true 2237 | }, 2238 | "@rollup/rollup-linux-arm64-gnu": { 2239 | "version": "4.39.0", 2240 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.39.0.tgz", 2241 | "integrity": "sha512-EKf7iF7aK36eEChvlgxGnk7pdJfzfQbNvGV/+l98iiMwU23MwvmV0Ty3pJ0p5WQfm3JRHOytSIqD9LB7Bq7xdQ==", 2242 | "dev": true, 2243 | "optional": true 2244 | }, 2245 | "@rollup/rollup-linux-arm64-musl": { 2246 | "version": "4.39.0", 2247 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.39.0.tgz", 2248 | "integrity": "sha512-vYanR6MtqC7Z2SNr8gzVnzUul09Wi1kZqJaek3KcIlI/wq5Xtq4ZPIZ0Mr/st/sv/NnaPwy/D4yXg5x0B3aUUA==", 2249 | "dev": true, 2250 | "optional": true 2251 | }, 2252 | "@rollup/rollup-linux-loongarch64-gnu": { 2253 | "version": "4.39.0", 2254 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.39.0.tgz", 2255 | "integrity": "sha512-NMRUT40+h0FBa5fb+cpxtZoGAggRem16ocVKIv5gDB5uLDgBIwrIsXlGqYbLwW8YyO3WVTk1FkFDjMETYlDqiw==", 2256 | "dev": true, 2257 | "optional": true 2258 | }, 2259 | "@rollup/rollup-linux-powerpc64le-gnu": { 2260 | "version": "4.39.0", 2261 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.39.0.tgz", 2262 | "integrity": "sha512-0pCNnmxgduJ3YRt+D+kJ6Ai/r+TaePu9ZLENl+ZDV/CdVczXl95CbIiwwswu4L+K7uOIGf6tMo2vm8uadRaICQ==", 2263 | "dev": true, 2264 | "optional": true 2265 | }, 2266 | "@rollup/rollup-linux-riscv64-gnu": { 2267 | "version": "4.39.0", 2268 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.39.0.tgz", 2269 | "integrity": "sha512-t7j5Zhr7S4bBtksT73bO6c3Qa2AV/HqiGlj9+KB3gNF5upcVkx+HLgxTm8DK4OkzsOYqbdqbLKwvGMhylJCPhQ==", 2270 | "dev": true, 2271 | "optional": true 2272 | }, 2273 | "@rollup/rollup-linux-riscv64-musl": { 2274 | "version": "4.39.0", 2275 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.39.0.tgz", 2276 | "integrity": "sha512-m6cwI86IvQ7M93MQ2RF5SP8tUjD39Y7rjb1qjHgYh28uAPVU8+k/xYWvxRO3/tBN2pZkSMa5RjnPuUIbrwVxeA==", 2277 | "dev": true, 2278 | "optional": true 2279 | }, 2280 | "@rollup/rollup-linux-s390x-gnu": { 2281 | "version": "4.39.0", 2282 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.39.0.tgz", 2283 | "integrity": "sha512-iRDJd2ebMunnk2rsSBYlsptCyuINvxUfGwOUldjv5M4tpa93K8tFMeYGpNk2+Nxl+OBJnBzy2/JCscGeO507kA==", 2284 | "dev": true, 2285 | "optional": true 2286 | }, 2287 | "@rollup/rollup-linux-x64-gnu": { 2288 | "version": "4.39.0", 2289 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.39.0.tgz", 2290 | "integrity": "sha512-t9jqYw27R6Lx0XKfEFe5vUeEJ5pF3SGIM6gTfONSMb7DuG6z6wfj2yjcoZxHg129veTqU7+wOhY6GX8wmf90dA==", 2291 | "dev": true, 2292 | "optional": true 2293 | }, 2294 | "@rollup/rollup-linux-x64-musl": { 2295 | "version": "4.39.0", 2296 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.39.0.tgz", 2297 | "integrity": "sha512-ThFdkrFDP55AIsIZDKSBWEt/JcWlCzydbZHinZ0F/r1h83qbGeenCt/G/wG2O0reuENDD2tawfAj2s8VK7Bugg==", 2298 | "dev": true, 2299 | "optional": true 2300 | }, 2301 | "@rollup/rollup-win32-arm64-msvc": { 2302 | "version": "4.39.0", 2303 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.39.0.tgz", 2304 | "integrity": "sha512-jDrLm6yUtbOg2TYB3sBF3acUnAwsIksEYjLeHL+TJv9jg+TmTwdyjnDex27jqEMakNKf3RwwPahDIt7QXCSqRQ==", 2305 | "dev": true, 2306 | "optional": true 2307 | }, 2308 | "@rollup/rollup-win32-ia32-msvc": { 2309 | "version": "4.39.0", 2310 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.39.0.tgz", 2311 | "integrity": "sha512-6w9uMuza+LbLCVoNKL5FSLE7yvYkq9laSd09bwS0tMjkwXrmib/4KmoJcrKhLWHvw19mwU+33ndC69T7weNNjQ==", 2312 | "dev": true, 2313 | "optional": true 2314 | }, 2315 | "@rollup/rollup-win32-x64-msvc": { 2316 | "version": "4.39.0", 2317 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.39.0.tgz", 2318 | "integrity": "sha512-yAkUOkIKZlK5dl7u6dg897doBgLXmUHhIINM2c+sND3DZwnrdQkkSiDh7N75Ll4mM4dxSkYfXqU9fW3lLkMFug==", 2319 | "dev": true, 2320 | "optional": true 2321 | }, 2322 | "@sveltejs/vite-plugin-svelte": { 2323 | "version": "5.0.3", 2324 | "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-5.0.3.tgz", 2325 | "integrity": "sha512-MCFS6CrQDu1yGwspm4qtli0e63vaPCehf6V7pIMP15AsWgMKrqDGCPFF/0kn4SP0ii4aySu4Pa62+fIRGFMjgw==", 2326 | "dev": true, 2327 | "requires": { 2328 | "@sveltejs/vite-plugin-svelte-inspector": "^4.0.1", 2329 | "debug": "^4.4.0", 2330 | "deepmerge": "^4.3.1", 2331 | "kleur": "^4.1.5", 2332 | "magic-string": "^0.30.15", 2333 | "vitefu": "^1.0.4" 2334 | }, 2335 | "dependencies": { 2336 | "@sveltejs/vite-plugin-svelte-inspector": { 2337 | "version": "4.0.1", 2338 | "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte-inspector/-/vite-plugin-svelte-inspector-4.0.1.tgz", 2339 | "integrity": "sha512-J/Nmb2Q2y7mck2hyCX4ckVHcR5tu2J+MtBEQqpDrrgELZ2uvraQcK/ioCV61AqkdXFgriksOKIceDcQmqnGhVw==", 2340 | "dev": true, 2341 | "requires": { 2342 | "debug": "^4.3.7" 2343 | } 2344 | } 2345 | } 2346 | }, 2347 | "@tsconfig/svelte": { 2348 | "version": "3.0.0", 2349 | "resolved": "https://registry.npmjs.org/@tsconfig/svelte/-/svelte-3.0.0.tgz", 2350 | "integrity": "sha512-pYrtLtOwku/7r1i9AMONsJMVYAtk3hzOfiGNekhtq5tYBGA7unMve8RvUclKLMT3PrihvJqUmzsRGh0RP84hKg==", 2351 | "dev": true 2352 | }, 2353 | "@types/estree": { 2354 | "version": "1.0.7", 2355 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.7.tgz", 2356 | "integrity": "sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==", 2357 | "dev": true 2358 | }, 2359 | "@types/node": { 2360 | "version": "18.11.4", 2361 | "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.4.tgz", 2362 | "integrity": "sha512-BxcJpBu8D3kv/GZkx/gSMz6VnTJREBj/4lbzYOQueUOELkt8WrO6zAcSPmp9uRPEW/d+lUO8QK0W2xnS1hEU0A==", 2363 | "dev": true 2364 | }, 2365 | "@types/pug": { 2366 | "version": "2.0.6", 2367 | "resolved": "https://registry.npmjs.org/@types/pug/-/pug-2.0.6.tgz", 2368 | "integrity": "sha512-SnHmG9wN1UVmagJOnyo/qkk0Z7gejYxOYYmaAwr5u2yFYfsupN3sg10kyzN8Hep/2zbHxCnsumxOoRIRMBwKCg==", 2369 | "dev": true 2370 | }, 2371 | "@types/sass": { 2372 | "version": "1.43.1", 2373 | "resolved": "https://registry.npmjs.org/@types/sass/-/sass-1.43.1.tgz", 2374 | "integrity": "sha512-BPdoIt1lfJ6B7rw35ncdwBZrAssjcwzI5LByIrYs+tpXlj/CAkuVdRsgZDdP4lq5EjyWzwxZCqAoFyHKFwp32g==", 2375 | "dev": true, 2376 | "requires": { 2377 | "@types/node": "*" 2378 | } 2379 | }, 2380 | "anymatch": { 2381 | "version": "3.1.2", 2382 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", 2383 | "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", 2384 | "dev": true, 2385 | "requires": { 2386 | "normalize-path": "^3.0.0", 2387 | "picomatch": "^2.0.4" 2388 | } 2389 | }, 2390 | "balanced-match": { 2391 | "version": "1.0.2", 2392 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 2393 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 2394 | "dev": true 2395 | }, 2396 | "binary-extensions": { 2397 | "version": "2.2.0", 2398 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", 2399 | "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", 2400 | "dev": true 2401 | }, 2402 | "brace-expansion": { 2403 | "version": "1.1.11", 2404 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 2405 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 2406 | "dev": true, 2407 | "requires": { 2408 | "balanced-match": "^1.0.0", 2409 | "concat-map": "0.0.1" 2410 | } 2411 | }, 2412 | "braces": { 2413 | "version": "3.0.3", 2414 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", 2415 | "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", 2416 | "dev": true, 2417 | "requires": { 2418 | "fill-range": "^7.1.1" 2419 | } 2420 | }, 2421 | "buffer-crc32": { 2422 | "version": "0.2.13", 2423 | "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", 2424 | "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", 2425 | "dev": true 2426 | }, 2427 | "callsites": { 2428 | "version": "3.1.0", 2429 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", 2430 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", 2431 | "dev": true 2432 | }, 2433 | "chokidar": { 2434 | "version": "3.5.3", 2435 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", 2436 | "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", 2437 | "dev": true, 2438 | "requires": { 2439 | "anymatch": "~3.1.2", 2440 | "braces": "~3.0.2", 2441 | "fsevents": "~2.3.2", 2442 | "glob-parent": "~5.1.2", 2443 | "is-binary-path": "~2.1.0", 2444 | "is-glob": "~4.0.1", 2445 | "normalize-path": "~3.0.0", 2446 | "readdirp": "~3.6.0" 2447 | } 2448 | }, 2449 | "concat-map": { 2450 | "version": "0.0.1", 2451 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 2452 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 2453 | "dev": true 2454 | }, 2455 | "debug": { 2456 | "version": "4.4.0", 2457 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", 2458 | "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", 2459 | "dev": true, 2460 | "requires": { 2461 | "ms": "^2.1.3" 2462 | } 2463 | }, 2464 | "deepmerge": { 2465 | "version": "4.3.1", 2466 | "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", 2467 | "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", 2468 | "dev": true 2469 | }, 2470 | "detect-indent": { 2471 | "version": "6.1.0", 2472 | "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-6.1.0.tgz", 2473 | "integrity": "sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==", 2474 | "dev": true 2475 | }, 2476 | "es6-promise": { 2477 | "version": "3.3.1", 2478 | "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-3.3.1.tgz", 2479 | "integrity": "sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg==", 2480 | "dev": true 2481 | }, 2482 | "esbuild": { 2483 | "version": "0.25.2", 2484 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.2.tgz", 2485 | "integrity": "sha512-16854zccKPnC+toMywC+uKNeYSv+/eXkevRAfwRD/G9Cleq66m8XFIrigkbvauLLlCfDL45Q2cWegSg53gGBnQ==", 2486 | "dev": true, 2487 | "requires": { 2488 | "@esbuild/aix-ppc64": "0.25.2", 2489 | "@esbuild/android-arm": "0.25.2", 2490 | "@esbuild/android-arm64": "0.25.2", 2491 | "@esbuild/android-x64": "0.25.2", 2492 | "@esbuild/darwin-arm64": "0.25.2", 2493 | "@esbuild/darwin-x64": "0.25.2", 2494 | "@esbuild/freebsd-arm64": "0.25.2", 2495 | "@esbuild/freebsd-x64": "0.25.2", 2496 | "@esbuild/linux-arm": "0.25.2", 2497 | "@esbuild/linux-arm64": "0.25.2", 2498 | "@esbuild/linux-ia32": "0.25.2", 2499 | "@esbuild/linux-loong64": "0.25.2", 2500 | "@esbuild/linux-mips64el": "0.25.2", 2501 | "@esbuild/linux-ppc64": "0.25.2", 2502 | "@esbuild/linux-riscv64": "0.25.2", 2503 | "@esbuild/linux-s390x": "0.25.2", 2504 | "@esbuild/linux-x64": "0.25.2", 2505 | "@esbuild/netbsd-arm64": "0.25.2", 2506 | "@esbuild/netbsd-x64": "0.25.2", 2507 | "@esbuild/openbsd-arm64": "0.25.2", 2508 | "@esbuild/openbsd-x64": "0.25.2", 2509 | "@esbuild/sunos-x64": "0.25.2", 2510 | "@esbuild/win32-arm64": "0.25.2", 2511 | "@esbuild/win32-ia32": "0.25.2", 2512 | "@esbuild/win32-x64": "0.25.2" 2513 | } 2514 | }, 2515 | "fast-glob": { 2516 | "version": "3.2.12", 2517 | "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", 2518 | "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", 2519 | "dev": true, 2520 | "requires": { 2521 | "@nodelib/fs.stat": "^2.0.2", 2522 | "@nodelib/fs.walk": "^1.2.3", 2523 | "glob-parent": "^5.1.2", 2524 | "merge2": "^1.3.0", 2525 | "micromatch": "^4.0.4" 2526 | } 2527 | }, 2528 | "fastq": { 2529 | "version": "1.13.0", 2530 | "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", 2531 | "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", 2532 | "dev": true, 2533 | "requires": { 2534 | "reusify": "^1.0.4" 2535 | } 2536 | }, 2537 | "fill-range": { 2538 | "version": "7.1.1", 2539 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", 2540 | "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", 2541 | "dev": true, 2542 | "requires": { 2543 | "to-regex-range": "^5.0.1" 2544 | } 2545 | }, 2546 | "fs.realpath": { 2547 | "version": "1.0.0", 2548 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 2549 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", 2550 | "dev": true 2551 | }, 2552 | "fsevents": { 2553 | "version": "2.3.3", 2554 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", 2555 | "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", 2556 | "dev": true, 2557 | "optional": true 2558 | }, 2559 | "glob": { 2560 | "version": "7.2.3", 2561 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", 2562 | "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", 2563 | "dev": true, 2564 | "requires": { 2565 | "fs.realpath": "^1.0.0", 2566 | "inflight": "^1.0.4", 2567 | "inherits": "2", 2568 | "minimatch": "^3.1.1", 2569 | "once": "^1.3.0", 2570 | "path-is-absolute": "^1.0.0" 2571 | } 2572 | }, 2573 | "glob-parent": { 2574 | "version": "5.1.2", 2575 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 2576 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 2577 | "dev": true, 2578 | "requires": { 2579 | "is-glob": "^4.0.1" 2580 | } 2581 | }, 2582 | "graceful-fs": { 2583 | "version": "4.2.10", 2584 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", 2585 | "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", 2586 | "dev": true 2587 | }, 2588 | "import-fresh": { 2589 | "version": "3.3.0", 2590 | "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", 2591 | "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", 2592 | "dev": true, 2593 | "requires": { 2594 | "parent-module": "^1.0.0", 2595 | "resolve-from": "^4.0.0" 2596 | } 2597 | }, 2598 | "inflight": { 2599 | "version": "1.0.6", 2600 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 2601 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", 2602 | "dev": true, 2603 | "requires": { 2604 | "once": "^1.3.0", 2605 | "wrappy": "1" 2606 | } 2607 | }, 2608 | "inherits": { 2609 | "version": "2.0.4", 2610 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 2611 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 2612 | "dev": true 2613 | }, 2614 | "is-binary-path": { 2615 | "version": "2.1.0", 2616 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 2617 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 2618 | "dev": true, 2619 | "requires": { 2620 | "binary-extensions": "^2.0.0" 2621 | } 2622 | }, 2623 | "is-extglob": { 2624 | "version": "2.1.1", 2625 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 2626 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 2627 | "dev": true 2628 | }, 2629 | "is-glob": { 2630 | "version": "4.0.3", 2631 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 2632 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 2633 | "dev": true, 2634 | "requires": { 2635 | "is-extglob": "^2.1.1" 2636 | } 2637 | }, 2638 | "is-number": { 2639 | "version": "7.0.0", 2640 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 2641 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 2642 | "dev": true 2643 | }, 2644 | "jstodotxt": { 2645 | "version": "file:..", 2646 | "requires": { 2647 | "@typescript-eslint/eslint-plugin": "^5.40.1", 2648 | "@typescript-eslint/parser": "^5.40.1", 2649 | "ava": "^4.3.3", 2650 | "c8": "^7.12.0", 2651 | "eslint": "^8.26.0", 2652 | "eslint-plugin-ava": "^13.2.0", 2653 | "jsdoc": "^4.0.4", 2654 | "jsdoc-plugin-typescript": "^2.2.0", 2655 | "npm-run-all": "^4.1.5", 2656 | "prettier": "^2.7.1", 2657 | "rimraf": "^3.0.2", 2658 | "tsx": "^3.11.0", 2659 | "typedoc": "^0.23.17", 2660 | "typescript": "^4.8.4" 2661 | } 2662 | }, 2663 | "kleur": { 2664 | "version": "4.1.5", 2665 | "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", 2666 | "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", 2667 | "dev": true 2668 | }, 2669 | "magic-string": { 2670 | "version": "0.30.17", 2671 | "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz", 2672 | "integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==", 2673 | "dev": true, 2674 | "requires": { 2675 | "@jridgewell/sourcemap-codec": "^1.5.0" 2676 | }, 2677 | "dependencies": { 2678 | "@jridgewell/sourcemap-codec": { 2679 | "version": "1.5.0", 2680 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", 2681 | "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", 2682 | "dev": true 2683 | } 2684 | } 2685 | }, 2686 | "merge2": { 2687 | "version": "1.4.1", 2688 | "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", 2689 | "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", 2690 | "dev": true 2691 | }, 2692 | "micromatch": { 2693 | "version": "4.0.5", 2694 | "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", 2695 | "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", 2696 | "dev": true, 2697 | "requires": { 2698 | "braces": "^3.0.2", 2699 | "picomatch": "^2.3.1" 2700 | } 2701 | }, 2702 | "min-indent": { 2703 | "version": "1.0.1", 2704 | "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", 2705 | "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", 2706 | "dev": true 2707 | }, 2708 | "minimatch": { 2709 | "version": "3.1.2", 2710 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 2711 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 2712 | "dev": true, 2713 | "requires": { 2714 | "brace-expansion": "^1.1.7" 2715 | } 2716 | }, 2717 | "minimist": { 2718 | "version": "1.2.7", 2719 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz", 2720 | "integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==", 2721 | "dev": true 2722 | }, 2723 | "mkdirp": { 2724 | "version": "0.5.6", 2725 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", 2726 | "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", 2727 | "dev": true, 2728 | "requires": { 2729 | "minimist": "^1.2.6" 2730 | } 2731 | }, 2732 | "mri": { 2733 | "version": "1.2.0", 2734 | "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", 2735 | "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==", 2736 | "dev": true 2737 | }, 2738 | "ms": { 2739 | "version": "2.1.3", 2740 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 2741 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 2742 | "dev": true 2743 | }, 2744 | "nanoid": { 2745 | "version": "3.3.11", 2746 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", 2747 | "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", 2748 | "dev": true 2749 | }, 2750 | "normalize-path": { 2751 | "version": "3.0.0", 2752 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 2753 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 2754 | "dev": true 2755 | }, 2756 | "once": { 2757 | "version": "1.4.0", 2758 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 2759 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 2760 | "dev": true, 2761 | "requires": { 2762 | "wrappy": "1" 2763 | } 2764 | }, 2765 | "parent-module": { 2766 | "version": "1.0.1", 2767 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", 2768 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", 2769 | "dev": true, 2770 | "requires": { 2771 | "callsites": "^3.0.0" 2772 | } 2773 | }, 2774 | "path-is-absolute": { 2775 | "version": "1.0.1", 2776 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 2777 | "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", 2778 | "dev": true 2779 | }, 2780 | "picocolors": { 2781 | "version": "1.1.1", 2782 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", 2783 | "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", 2784 | "dev": true 2785 | }, 2786 | "picomatch": { 2787 | "version": "2.3.1", 2788 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 2789 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 2790 | "dev": true 2791 | }, 2792 | "postcss": { 2793 | "version": "8.5.3", 2794 | "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.3.tgz", 2795 | "integrity": "sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==", 2796 | "dev": true, 2797 | "requires": { 2798 | "nanoid": "^3.3.8", 2799 | "picocolors": "^1.1.1", 2800 | "source-map-js": "^1.2.1" 2801 | } 2802 | }, 2803 | "queue-microtask": { 2804 | "version": "1.2.3", 2805 | "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", 2806 | "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", 2807 | "dev": true 2808 | }, 2809 | "readdirp": { 2810 | "version": "3.6.0", 2811 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 2812 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 2813 | "dev": true, 2814 | "requires": { 2815 | "picomatch": "^2.2.1" 2816 | } 2817 | }, 2818 | "resolve-from": { 2819 | "version": "4.0.0", 2820 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", 2821 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", 2822 | "dev": true 2823 | }, 2824 | "reusify": { 2825 | "version": "1.0.4", 2826 | "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", 2827 | "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", 2828 | "dev": true 2829 | }, 2830 | "rimraf": { 2831 | "version": "2.7.1", 2832 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", 2833 | "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", 2834 | "dev": true, 2835 | "requires": { 2836 | "glob": "^7.1.3" 2837 | } 2838 | }, 2839 | "rollup": { 2840 | "version": "4.39.0", 2841 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.39.0.tgz", 2842 | "integrity": "sha512-thI8kNc02yNvnmJp8dr3fNWJ9tCONDhp6TV35X6HkKGGs9E6q7YWCHbe5vKiTa7TAiNcFEmXKj3X/pG2b3ci0g==", 2843 | "dev": true, 2844 | "requires": { 2845 | "@rollup/rollup-android-arm-eabi": "4.39.0", 2846 | "@rollup/rollup-android-arm64": "4.39.0", 2847 | "@rollup/rollup-darwin-arm64": "4.39.0", 2848 | "@rollup/rollup-darwin-x64": "4.39.0", 2849 | "@rollup/rollup-freebsd-arm64": "4.39.0", 2850 | "@rollup/rollup-freebsd-x64": "4.39.0", 2851 | "@rollup/rollup-linux-arm-gnueabihf": "4.39.0", 2852 | "@rollup/rollup-linux-arm-musleabihf": "4.39.0", 2853 | "@rollup/rollup-linux-arm64-gnu": "4.39.0", 2854 | "@rollup/rollup-linux-arm64-musl": "4.39.0", 2855 | "@rollup/rollup-linux-loongarch64-gnu": "4.39.0", 2856 | "@rollup/rollup-linux-powerpc64le-gnu": "4.39.0", 2857 | "@rollup/rollup-linux-riscv64-gnu": "4.39.0", 2858 | "@rollup/rollup-linux-riscv64-musl": "4.39.0", 2859 | "@rollup/rollup-linux-s390x-gnu": "4.39.0", 2860 | "@rollup/rollup-linux-x64-gnu": "4.39.0", 2861 | "@rollup/rollup-linux-x64-musl": "4.39.0", 2862 | "@rollup/rollup-win32-arm64-msvc": "4.39.0", 2863 | "@rollup/rollup-win32-ia32-msvc": "4.39.0", 2864 | "@rollup/rollup-win32-x64-msvc": "4.39.0", 2865 | "@types/estree": "1.0.7", 2866 | "fsevents": "~2.3.2" 2867 | } 2868 | }, 2869 | "run-parallel": { 2870 | "version": "1.2.0", 2871 | "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", 2872 | "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", 2873 | "dev": true, 2874 | "requires": { 2875 | "queue-microtask": "^1.2.2" 2876 | } 2877 | }, 2878 | "sade": { 2879 | "version": "1.8.1", 2880 | "resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz", 2881 | "integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==", 2882 | "dev": true, 2883 | "requires": { 2884 | "mri": "^1.1.0" 2885 | } 2886 | }, 2887 | "sander": { 2888 | "version": "0.5.1", 2889 | "resolved": "https://registry.npmjs.org/sander/-/sander-0.5.1.tgz", 2890 | "integrity": "sha512-3lVqBir7WuKDHGrKRDn/1Ye3kwpXaDOMsiRP1wd6wpZW56gJhsbp5RqQpA6JG/P+pkXizygnr1dKR8vzWaVsfA==", 2891 | "dev": true, 2892 | "requires": { 2893 | "es6-promise": "^3.1.2", 2894 | "graceful-fs": "^4.1.3", 2895 | "mkdirp": "^0.5.1", 2896 | "rimraf": "^2.5.2" 2897 | } 2898 | }, 2899 | "sorcery": { 2900 | "version": "0.10.0", 2901 | "resolved": "https://registry.npmjs.org/sorcery/-/sorcery-0.10.0.tgz", 2902 | "integrity": "sha512-R5ocFmKZQFfSTstfOtHjJuAwbpGyf9qjQa1egyhvXSbM7emjrtLXtGdZsDJDABC85YBfVvrOiGWKSYXPKdvP1g==", 2903 | "dev": true, 2904 | "requires": { 2905 | "buffer-crc32": "^0.2.5", 2906 | "minimist": "^1.2.0", 2907 | "sander": "^0.5.0", 2908 | "sourcemap-codec": "^1.3.0" 2909 | } 2910 | }, 2911 | "source-map-js": { 2912 | "version": "1.2.1", 2913 | "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", 2914 | "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", 2915 | "dev": true 2916 | }, 2917 | "sourcemap-codec": { 2918 | "version": "1.4.8", 2919 | "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", 2920 | "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", 2921 | "dev": true 2922 | }, 2923 | "strip-indent": { 2924 | "version": "3.0.0", 2925 | "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", 2926 | "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", 2927 | "dev": true, 2928 | "requires": { 2929 | "min-indent": "^1.0.0" 2930 | } 2931 | }, 2932 | "svelte": { 2933 | "version": "3.52.0", 2934 | "resolved": "https://registry.npmjs.org/svelte/-/svelte-3.52.0.tgz", 2935 | "integrity": "sha512-FxcnEUOAVfr10vDU5dVgJN19IvqeHQCS1zfe8vayTfis9A2t5Fhx+JDe5uv/C3j//bB1umpLJ6quhgs9xyUbCQ==", 2936 | "dev": true 2937 | }, 2938 | "svelte-check": { 2939 | "version": "2.9.2", 2940 | "resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-2.9.2.tgz", 2941 | "integrity": "sha512-DRi8HhnCiqiGR2YF9ervPGvtoYrheE09cXieCTEqeTPOTJzfoa54Py8rovIBv4bH4n5HgZYIyTQ3DDLHQLl2uQ==", 2942 | "dev": true, 2943 | "requires": { 2944 | "@jridgewell/trace-mapping": "^0.3.9", 2945 | "chokidar": "^3.4.1", 2946 | "fast-glob": "^3.2.7", 2947 | "import-fresh": "^3.2.1", 2948 | "picocolors": "^1.0.0", 2949 | "sade": "^1.7.4", 2950 | "svelte-preprocess": "^4.0.0", 2951 | "typescript": "*" 2952 | } 2953 | }, 2954 | "svelte-preprocess": { 2955 | "version": "4.10.7", 2956 | "resolved": "https://registry.npmjs.org/svelte-preprocess/-/svelte-preprocess-4.10.7.tgz", 2957 | "integrity": "sha512-sNPBnqYD6FnmdBrUmBCaqS00RyCsCpj2BG58A1JBswNF7b0OKviwxqVrOL/CKyJrLSClrSeqQv5BXNg2RUbPOw==", 2958 | "dev": true, 2959 | "requires": { 2960 | "@types/pug": "^2.0.4", 2961 | "@types/sass": "^1.16.0", 2962 | "detect-indent": "^6.0.0", 2963 | "magic-string": "^0.25.7", 2964 | "sorcery": "^0.10.0", 2965 | "strip-indent": "^3.0.0" 2966 | }, 2967 | "dependencies": { 2968 | "magic-string": { 2969 | "version": "0.25.9", 2970 | "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", 2971 | "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", 2972 | "dev": true, 2973 | "requires": { 2974 | "sourcemap-codec": "^1.4.8" 2975 | } 2976 | } 2977 | } 2978 | }, 2979 | "tinyglobby": { 2980 | "version": "0.2.13", 2981 | "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.13.tgz", 2982 | "integrity": "sha512-mEwzpUgrLySlveBwEVDMKk5B57bhLPYovRfPAXD5gA/98Opn0rCDj3GtLwFvCvH5RK9uPCExUROW5NjDwvqkxw==", 2983 | "dev": true, 2984 | "requires": { 2985 | "fdir": "^6.4.4", 2986 | "picomatch": "^4.0.2" 2987 | }, 2988 | "dependencies": { 2989 | "fdir": { 2990 | "version": "6.4.4", 2991 | "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.4.tgz", 2992 | "integrity": "sha512-1NZP+GK4GfuAv3PqKvxQRDMjdSRZjnkq7KfhlNrCNNlZ0ygQFpebfrnfnq/W7fpUnAv9aGWmY1zKx7FYL3gwhg==", 2993 | "dev": true, 2994 | "requires": {} 2995 | }, 2996 | "picomatch": { 2997 | "version": "4.0.2", 2998 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", 2999 | "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", 3000 | "dev": true 3001 | } 3002 | } 3003 | }, 3004 | "to-regex-range": { 3005 | "version": "5.0.1", 3006 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 3007 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 3008 | "dev": true, 3009 | "requires": { 3010 | "is-number": "^7.0.0" 3011 | } 3012 | }, 3013 | "tslib": { 3014 | "version": "2.4.0", 3015 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", 3016 | "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==", 3017 | "dev": true 3018 | }, 3019 | "typescript": { 3020 | "version": "4.8.4", 3021 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", 3022 | "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", 3023 | "dev": true 3024 | }, 3025 | "vite": { 3026 | "version": "6.3.4", 3027 | "resolved": "https://registry.npmjs.org/vite/-/vite-6.3.4.tgz", 3028 | "integrity": "sha512-BiReIiMS2fyFqbqNT/Qqt4CVITDU9M9vE+DKcVAsB+ZV0wvTKd+3hMbkpxz1b+NmEDMegpVbisKiAZOnvO92Sw==", 3029 | "dev": true, 3030 | "requires": { 3031 | "esbuild": "^0.25.0", 3032 | "fdir": "^6.4.4", 3033 | "fsevents": "~2.3.3", 3034 | "picomatch": "^4.0.2", 3035 | "postcss": "^8.5.3", 3036 | "rollup": "^4.34.9", 3037 | "tinyglobby": "^0.2.13" 3038 | }, 3039 | "dependencies": { 3040 | "fdir": { 3041 | "version": "6.4.4", 3042 | "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.4.tgz", 3043 | "integrity": "sha512-1NZP+GK4GfuAv3PqKvxQRDMjdSRZjnkq7KfhlNrCNNlZ0ygQFpebfrnfnq/W7fpUnAv9aGWmY1zKx7FYL3gwhg==", 3044 | "dev": true, 3045 | "requires": {} 3046 | }, 3047 | "picomatch": { 3048 | "version": "4.0.2", 3049 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", 3050 | "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", 3051 | "dev": true 3052 | } 3053 | } 3054 | }, 3055 | "vitefu": { 3056 | "version": "1.0.6", 3057 | "resolved": "https://registry.npmjs.org/vitefu/-/vitefu-1.0.6.tgz", 3058 | "integrity": "sha512-+Rex1GlappUyNN6UfwbVZne/9cYC4+R2XDk9xkNXBKMw6HQagdX9PgZ8V2v1WUSK1wfBLp7qbI1+XSNIlB1xmA==", 3059 | "dev": true, 3060 | "requires": {} 3061 | }, 3062 | "wrappy": { 3063 | "version": "1.0.2", 3064 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 3065 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", 3066 | "dev": true 3067 | } 3068 | } 3069 | } 3070 | -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example", 3 | "private": true, 4 | "version": "0.0.0", 5 | "type": "module", 6 | "scripts": { 7 | "dev": "vite", 8 | "build": "vite build", 9 | "preview": "vite preview", 10 | "check": "svelte-check --tsconfig ./tsconfig.json" 11 | }, 12 | "devDependencies": { 13 | "@sveltejs/vite-plugin-svelte": "^5.0.3", 14 | "@tsconfig/svelte": "^3.0.0", 15 | "jstodotxt": "file:..", 16 | "svelte": "^3.49.0", 17 | "svelte-check": "^2.8.1", 18 | "svelte-preprocess": "^4.10.7", 19 | "tslib": "^2.4.0", 20 | "typescript": "^4.6.4", 21 | "vite": "^6.3.4" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /example/src/App.svelte: -------------------------------------------------------------------------------- 1 | 36 | 37 |
38 |

todo.txt

39 | 40 |
41 | 50 | 59 |
60 | 61 | 62 |
63 | 64 | 72 | -------------------------------------------------------------------------------- /example/src/app.css: -------------------------------------------------------------------------------- 1 | :root { 2 | font-family: Inter, Avenir, Helvetica, Arial, sans-serif; 3 | font-size: 16px; 4 | line-height: 24px; 5 | font-weight: 400; 6 | 7 | color-scheme: light dark; 8 | color: rgba(255, 255, 255, 0.87); 9 | background-color: #242424; 10 | 11 | font-synthesis: none; 12 | text-rendering: optimizeLegibility; 13 | -webkit-font-smoothing: antialiased; 14 | -moz-osx-font-smoothing: grayscale; 15 | -webkit-text-size-adjust: 100%; 16 | } 17 | 18 | body { 19 | margin: 2rem 1rem; 20 | } 21 | -------------------------------------------------------------------------------- /example/src/main.ts: -------------------------------------------------------------------------------- 1 | import './app.css' 2 | import App from './App.svelte' 3 | 4 | const app = new App({ 5 | target: document.getElementById('app') 6 | }) 7 | 8 | export default app 9 | -------------------------------------------------------------------------------- /example/src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | -------------------------------------------------------------------------------- /example/svelte.config.js: -------------------------------------------------------------------------------- 1 | import sveltePreprocess from 'svelte-preprocess' 2 | 3 | export default { 4 | // Consult https://github.com/sveltejs/svelte-preprocess 5 | // for more information about preprocessors 6 | preprocess: sveltePreprocess() 7 | } 8 | -------------------------------------------------------------------------------- /example/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@tsconfig/svelte/tsconfig.json", 3 | "compilerOptions": { 4 | "target": "ESNext", 5 | "useDefineForClassFields": true, 6 | "module": "ESNext", 7 | "resolveJsonModule": true, 8 | "baseUrl": ".", 9 | /** 10 | * Typecheck JS in `.svelte` and `.js` files by default. 11 | * Disable checkJs if you'd like to use dynamic types in JS. 12 | * Note that setting allowJs false does not prevent the use 13 | * of JS in `.svelte` files. 14 | */ 15 | "allowJs": true, 16 | "checkJs": true, 17 | "isolatedModules": true 18 | }, 19 | "include": ["src/**/*.d.ts", "src/**/*.ts", "src/**/*.js", "src/**/*.svelte"], 20 | "references": [{ "path": "./tsconfig.node.json" }] 21 | } 22 | -------------------------------------------------------------------------------- /example/tsconfig.node.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "composite": true, 4 | "module": "ESNext", 5 | "moduleResolution": "Node" 6 | }, 7 | "include": ["vite.config.ts"] 8 | } 9 | -------------------------------------------------------------------------------- /example/vite.config.ts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vite' 2 | import { svelte } from '@sveltejs/vite-plugin-svelte' 3 | 4 | // https://vitejs.dev/config/ 5 | export default defineConfig({ 6 | plugins: [svelte()] 7 | }) 8 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jstodotxt", 3 | "version": "1.0.0-alpha.4", 4 | "author": "John Hobbs ", 5 | "description": "a library for working with todo.txt formatted files", 6 | "license": "MIT", 7 | "contributors": [ 8 | { 9 | "name": "bartlibert", 10 | "url": "https://github.com/bartlibert" 11 | }, 12 | { 13 | "name": "Ryan Gaus", 14 | "url": "https://github.com/1egoman" 15 | }, 16 | { 17 | "name": "Davide Ferrero", 18 | "url": "https://github.com/davideferre" 19 | }, 20 | { 21 | "name": "Kirill Goncharov", 22 | "url": "https://github.com/xuhcc" 23 | }, 24 | { 25 | "name": "Alexandre Rousseau", 26 | "url": "https://github.com/madeindjs" 27 | } 28 | ], 29 | "repository": { 30 | "type": "git", 31 | "url": "https://github.com/jmhobbs/jsTodoTxt.git" 32 | }, 33 | "files": [ 34 | "./lib", 35 | "!**/*.test.{js,d.ts}{,.map}" 36 | ], 37 | "main": "./lib/index.js", 38 | "types": "./lib/index.d.ts", 39 | "scripts": { 40 | "clean": "rimraf lib", 41 | "build": "tsc", 42 | "docs": "typedoc ./src/index.ts", 43 | "lint": "run-s lint:*", 44 | "lint:eslint": "eslint . --ext .ts", 45 | "lint:format": "prettier --check 'src/**/*.ts'", 46 | "test": "c8 --reporter=lcov --reporter=text ava", 47 | "dev:test": "ava --watch", 48 | "dev:docs": "typedoc --watch ./src/index.ts", 49 | "prepare": "run-s lint test clean build" 50 | }, 51 | "devDependencies": { 52 | "@typescript-eslint/eslint-plugin": "^5.40.1", 53 | "@typescript-eslint/parser": "^5.40.1", 54 | "ava": "^4.3.3", 55 | "c8": "^7.12.0", 56 | "eslint": "^8.26.0", 57 | "eslint-plugin-ava": "^13.2.0", 58 | "jsdoc": "^4.0.4", 59 | "jsdoc-plugin-typescript": "^2.2.0", 60 | "npm-run-all": "^4.1.5", 61 | "prettier": "^2.7.1", 62 | "rimraf": "^3.0.2", 63 | "tsx": "^3.11.0", 64 | "typedoc": "^0.23.17", 65 | "typescript": "^4.8.4" 66 | }, 67 | "ava": { 68 | "files": [ 69 | "./src/**/*.test.ts" 70 | ], 71 | "extensions": [ 72 | "ts" 73 | ], 74 | "require": [ 75 | "@esbuild-kit/cjs-loader" 76 | ] 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /src/Item.body.test.ts: -------------------------------------------------------------------------------- 1 | import test from 'ava'; 2 | import { Item } from './Item'; 3 | 4 | test('setBody › Updates contexts, projects and extensions', (t) => { 5 | const item = new Item('This is @before and +willDelete these tags:all'); 6 | const newBody = 'A new @world with +newTags and extension:values'; 7 | item.setBody(newBody); 8 | t.deepEqual(item.contexts(), ['world']); 9 | t.deepEqual(item.projects(), ['newTags']); 10 | t.deepEqual(item.extensions(), [{ key: 'extension', value: 'values' }]); 11 | t.is(item.body(), newBody); 12 | }); 13 | -------------------------------------------------------------------------------- /src/Item.complete.test.ts: -------------------------------------------------------------------------------- 1 | import test from 'ava'; 2 | import { Item } from './Item'; 3 | 4 | test('setComplete › Works marking complete', (t) => { 5 | const item = new Item('I have to do this.'); 6 | t.false(item.complete()); 7 | item.setComplete(true); 8 | t.true(item.complete()); 9 | t.is(item.toString(), 'x I have to do this.'); 10 | }); 11 | 12 | test('setComplete › Works marking incomplete', (t) => { 13 | const item = new Item('x I have to do this.'); 14 | t.true(item.complete()); 15 | item.setComplete(false); 16 | t.false(item.complete()); 17 | t.is(item.toString(), 'I have to do this.'); 18 | }); 19 | -------------------------------------------------------------------------------- /src/Item.completed.test.ts: -------------------------------------------------------------------------------- 1 | import test from 'ava'; 2 | import { Item } from './Item'; 3 | 4 | test('setCompleted › Adding with Date', (t) => { 5 | const item = new Item('2022-06-29 I have to do this.'); 6 | const due = new Date(2022, 6, 1); 7 | item.setCompleted(due); 8 | t.deepEqual(item.completed(), due); 9 | t.true(item.complete()); 10 | t.is(item.createdToString(), '2022-06-29'); 11 | t.is(item.toString(), 'x 2022-07-01 2022-06-29 I have to do this.'); 12 | }); 13 | 14 | test('setCompleted › Set a task completed without a creating date ', (t) => { 15 | const item = new Item('I have to do this.'); 16 | const due = new Date(2022, 6, 1); 17 | item.setCompleted(due); 18 | t.deepEqual(item.completed(), due); 19 | t.true(item.complete()); 20 | t.is(item.created(), null); 21 | t.is(item.toString(), 'x 2022-07-01 I have to do this.'); 22 | }); 23 | 24 | test('setCompleted › Adding with string', (t) => { 25 | const item = new Item('2022-06-29 I have to do this.'); 26 | const due = new Date(2022, 6, 1); 27 | item.setCompleted('2022-07-01'); 28 | t.deepEqual(item.completed(), due); 29 | t.true(item.complete()); 30 | t.is(item.toString(), 'x 2022-07-01 2022-06-29 I have to do this.'); 31 | }); 32 | 33 | test('setCompleted › Updating with Date', (t) => { 34 | const item = new Item('1999-04-12 I have to do this.'); 35 | const due = new Date(2022, 6, 1); 36 | item.setCompleted(due); 37 | t.deepEqual(item.completed(), due); 38 | t.true(item.complete()); 39 | t.is(item.toString(), 'x 2022-07-01 1999-04-12 I have to do this.'); 40 | }); 41 | 42 | test('setCompleted › Updating with string', (t) => { 43 | const item = new Item('1999-04-12 I have to do this.'); 44 | item.setCompleted('2022-07-01'); 45 | t.deepEqual(item.completed(), new Date(2022, 6, 1)); 46 | t.true(item.complete()); 47 | t.is(item.toString(), 'x 2022-07-01 1999-04-12 I have to do this.'); 48 | }); 49 | 50 | test('setCompleted › Removing', (t) => { 51 | const item = new Item('x 2022-06-01 1999-04-12 I have to do this.'); 52 | item.setCompleted(); 53 | t.is(item.completed(), null); 54 | t.is(item.toString(), 'x 1999-04-12 I have to do this.'); 55 | }); 56 | 57 | test('setCompleted › Throws an exception for invalid input', (t) => { 58 | const item = new Item('x I have to do this.'); 59 | t.throws(() => item.setCompleted('20220102')); 60 | }); 61 | 62 | test('clearCompleted › Removes the completed date', (t) => { 63 | const item = new Item('x 2022-06-01 1999-04-12 I have to do this.'); 64 | item.clearCompleted(); 65 | t.is(item.completed(), null); 66 | t.is(item.toString(), 'x 1999-04-12 I have to do this.'); 67 | }); 68 | -------------------------------------------------------------------------------- /src/Item.contexts.test.ts: -------------------------------------------------------------------------------- 1 | import test from 'ava'; 2 | import { Item } from './Item'; 3 | 4 | const sampleCompleted = 5 | 'x (Z) 2022-10-17 We should keep +todoItems in their @place when rendering out due:2022-10-22'; 6 | 7 | test('contexts › Deduplicated', (t) => { 8 | const item = new Item('Hello @home and @work with +projects and @work extensions:todo'); 9 | t.deepEqual(item.contexts(), ['home', 'work']); 10 | }); 11 | 12 | test('contexts › Does not parse email as context', (t) => { 13 | const item = new Item('My email is me@example.com it is not a context'); 14 | t.deepEqual(item.contexts(), []); 15 | }); 16 | 17 | test('contexts › Parses context at start of line', (t) => { 18 | const item = new Item('@home wash the dishes'); 19 | t.deepEqual(item.contexts(), ['home']); 20 | }); 21 | 22 | test('addContext › Adds new contexts', (t) => { 23 | const item = new Item(sampleCompleted); 24 | item.addContext('computer'); 25 | t.deepEqual(item.contexts(), ['place', 'computer']); 26 | }); 27 | 28 | test('addContext › Does not add contexts which already exist', (t) => { 29 | const item = new Item(sampleCompleted); 30 | item.addContext('place'); 31 | t.deepEqual(item.contexts(), ['place']); 32 | }); 33 | 34 | test('addContext › Updates the body', (t) => { 35 | const item = new Item('Hello'); 36 | item.addContext('world'); 37 | t.is(item.body(), 'Hello @world'); 38 | }); 39 | 40 | test('removeContext › Removes contexts', (t) => { 41 | const item = new Item('Hello @home and @work with +projects and @work extensions:todo'); 42 | item.removeContext('work'); 43 | t.deepEqual(item.contexts(), ['home']); 44 | }); 45 | 46 | test('removeContext › Removes contexts (none present)', (t) => { 47 | const item = new Item('Hello @home and @work with +projects and @work extensions:todo'); 48 | item.removeContext('nowhere'); 49 | t.deepEqual(item.contexts(), ['home', 'work']); 50 | }); 51 | 52 | test('removeContext › Updates the body', (t) => { 53 | const item = new Item('Hello @home and @work with +projects and @work extensions:todo'); 54 | item.removeContext('work'); 55 | t.is(item.body(), 'Hello @home and with +projects and extensions:todo'); 56 | }); 57 | 58 | test('contexts › Does not parse email addresses', (t) => { 59 | const item = new Item( 60 | 'me@example.com Hello @home and name@example.com with +projects extensions:todo' 61 | ); 62 | t.deepEqual(item.contexts(), ['home']); 63 | }); 64 | -------------------------------------------------------------------------------- /src/Item.created.test.ts: -------------------------------------------------------------------------------- 1 | import test from 'ava'; 2 | import { Item } from './Item'; 3 | 4 | test('setCreated › Adding with Date', (t) => { 5 | const item = new Item('I have to do this.'); 6 | const due = new Date(2022, 7, 1); 7 | item.setCreated(due); 8 | t.deepEqual(item.created(), due); 9 | }); 10 | 11 | test('setCreated › Adding with string', (t) => { 12 | const item = new Item('I have to do this.'); 13 | const due = new Date(2022, 6, 1); 14 | item.setCreated('2022-07-01'); 15 | t.deepEqual(item.created(), due); 16 | }); 17 | 18 | test('setCreated › Updating with Date', (t) => { 19 | const item = new Item('1999-04-12 I have to do this.'); 20 | const due = new Date(2022, 7, 1); 21 | item.setCreated(due); 22 | t.deepEqual(item.created(), due); 23 | }); 24 | 25 | test('setCreated › Updating with string', (t) => { 26 | const item = new Item('1999-04-12 I have to do this.'); 27 | item.setCreated('2022-07-01'); 28 | t.deepEqual(item.created(), new Date(2022, 6, 1)); 29 | }); 30 | 31 | test('setCreated › Removing works', (t) => { 32 | const item = new Item('1999-04-12 I have to do this.'); 33 | item.setCreated(); 34 | t.is(item.created(), null); 35 | }); 36 | 37 | test('setCreated › Removing also removes completed date', (t) => { 38 | const item = new Item('x 2022-05-23 1999-04-12 I have to do this.'); 39 | item.setCreated(); 40 | t.is(item.created(), null); 41 | t.is(item.completed(), null); 42 | }); 43 | 44 | test('setCreated › Throws an exception for invalid input', (t) => { 45 | const item = new Item('I have to do this.'); 46 | t.throws(() => item.setCreated('20220102')); 47 | }); 48 | -------------------------------------------------------------------------------- /src/Item.extensions.test.ts: -------------------------------------------------------------------------------- 1 | import test from 'ava'; 2 | import { Item } from './Item'; 3 | 4 | test('extensions › Reads extensions', (t) => { 5 | const item = new Item('due:today Hello there extensions:todo and color:red'); 6 | t.deepEqual(item.extensions(), [ 7 | { key: 'due', value: 'today' }, 8 | { key: 'extensions', value: 'todo' }, 9 | { key: 'color', value: 'red' }, 10 | ]); 11 | }); 12 | 13 | test('setExtension › Overwrites existing values', (t) => { 14 | const item = new Item('Party like its due:2022-10-22'); 15 | item.setExtension('due', '1999-12-31'); 16 | t.deepEqual(item.extensions(), [{ key: 'due', value: '1999-12-31' }]); 17 | t.is(item.body(), 'Party like its due:1999-12-31'); 18 | }); 19 | 20 | test('setExtension › Removes additional values', (t) => { 21 | const item = new Item('My wall is painted the color:blue color:yellow @home for +housePainting'); 22 | item.setExtension('color', 'red'); 23 | t.deepEqual(item.extensions(), [{ key: 'color', value: 'red' }]); 24 | t.is(item.body(), 'My wall is painted the color:red @home for +housePainting'); 25 | }); 26 | 27 | test('setExtension › Not found', (t) => { 28 | const item = new Item('My wall is painted the color:blue @home for +housePainting'); 29 | item.setExtension('finish', 'matte'); 30 | t.deepEqual(item.extensions(), [ 31 | { key: 'color', value: 'blue' }, 32 | { key: 'finish', value: 'matte' }, 33 | ]); 34 | t.is(item.body(), 'My wall is painted the color:blue @home for +housePainting finish:matte'); 35 | }); 36 | 37 | test('addExtension › Allows for multiple of the same key', (t) => { 38 | const item = new Item('My wall is painted the color:blue'); 39 | item.addExtension('color', 'red'); 40 | t.deepEqual(item.extensions(), [ 41 | { key: 'color', value: 'blue' }, 42 | { key: 'color', value: 'red' }, 43 | ]); 44 | t.is(item.body(), 'My wall is painted the color:blue color:red'); 45 | }); 46 | 47 | test('removeExtension › Removes the extension by key', (t) => { 48 | const item = new Item('My room:kitchen wall is painted color:blue and color:red'); 49 | item.removeExtension('color'); 50 | t.deepEqual(item.extensions(), [{ key: 'room', value: 'kitchen' }]); 51 | t.is(item.body(), 'My room:kitchen wall is painted and'); 52 | }); 53 | 54 | test('removeExtension › Removes the extension by key and value', (t) => { 55 | const item = new Item('My room:kitchen wall is painted color:blue and color:red'); 56 | item.removeExtension('color', 'blue'); 57 | t.deepEqual(item.extensions(), [ 58 | { key: 'room', value: 'kitchen' }, 59 | { key: 'color', value: 'red' }, 60 | ]); 61 | t.is(item.body(), 'My room:kitchen wall is painted and color:red'); 62 | }); 63 | -------------------------------------------------------------------------------- /src/Item.inputs.test.ts: -------------------------------------------------------------------------------- 1 | import test, { ExecutionContext } from 'ava'; 2 | import { Item } from './Item'; 3 | 4 | interface Extension { 5 | key: string; 6 | value: string; 7 | } 8 | 9 | function compare( 10 | t: ExecutionContext, 11 | item: Item, 12 | complete: boolean, 13 | priority: string | null, 14 | created: Date | null, 15 | completed: Date | null, 16 | body: string, 17 | contexts: string[], 18 | projects: string[], 19 | extensions: Extension[] 20 | ) { 21 | t.is(item.complete(), complete); 22 | t.is(item.priority(), priority); 23 | t.deepEqual(item.created(), created); 24 | t.deepEqual(item.completed(), completed); 25 | t.is(item.body(), body); 26 | t.deepEqual(item.projects(), projects); 27 | t.deepEqual(item.contexts(), contexts); 28 | t.deepEqual(item.extensions(), extensions); 29 | } 30 | 31 | function constructAndCompare( 32 | t: ExecutionContext, 33 | input: string, 34 | complete: boolean, 35 | priority: string | null, 36 | created: Date | null, 37 | completed: Date | null, 38 | body: string, 39 | contexts: string[], 40 | projects: string[], 41 | extensions: Extension[] 42 | ) { 43 | const item = new Item(input); 44 | compare(t, item, complete, priority, created, completed, body, contexts, projects, extensions); 45 | } 46 | 47 | test( 48 | 'Constructor › Basic', 49 | constructAndCompare, 50 | 'Just the body.', 51 | false, 52 | null, 53 | null, 54 | null, 55 | 'Just the body.', 56 | [], 57 | [], 58 | [] 59 | ); 60 | 61 | test( 62 | 'Constructor › Complete', 63 | constructAndCompare, 64 | 'x (A) 2016-01-03 2016-01-02 measure space for +chapelShelving @chapel due:2016-01-04', 65 | true, 66 | 'A', 67 | new Date(2016, 0, 2), 68 | new Date(2016, 0, 3), 69 | 'measure space for +chapelShelving @chapel due:2016-01-04', 70 | ['chapel'], 71 | ['chapelShelving'], 72 | [{ key: 'due', value: '2016-01-04' }] 73 | ); 74 | 75 | test('parse › Resets everything', (t) => { 76 | const item = new Item( 77 | 'x (A) 2016-01-03 2016-01-02 measure space for +chapelShelving @chapel due:2016-01-04' 78 | ); 79 | item.parse('Hello'); 80 | compare(t, item, false, null, null, null, 'Hello', [], [], []); 81 | }); 82 | -------------------------------------------------------------------------------- /src/Item.outputs.test.ts: -------------------------------------------------------------------------------- 1 | import test from 'ava'; 2 | import { Item } from './Item'; 3 | 4 | const sampleCompleted = 5 | 'x (Z) 2022-10-17 2022-09-03 We should keep +todoItems in their @place when rendering out due:2022-10-22'; 6 | 7 | test('toString › Keeps positioning of tags', (t) => { 8 | const item = new Item(sampleCompleted); 9 | t.is(item.toString(), sampleCompleted); 10 | }); 11 | 12 | test('toString › Appends new tags to the end', (t) => { 13 | const item = new Item(sampleCompleted); 14 | item.addProject('rewrite'); 15 | item.addContext('computer'); 16 | item.addExtension('h', '1'); 17 | t.is(item.toString(), `${sampleCompleted} +rewrite @computer h:1`); 18 | }); 19 | 20 | test('toAnnotatedString › Returns the correct string', (t) => { 21 | const itemStr = '(B) 2022-01-04 My @wall is +painted the color:blue'; 22 | const item = new Item(itemStr); 23 | const annotated = item.toAnnotatedString(); 24 | t.is(annotated.string, itemStr); 25 | }); 26 | 27 | test('toAnnotatedString › Returns the correct ranges', (t) => { 28 | const itemStr = '(B) 2022-01-04 My @wall is +painted the color:blue'; 29 | const item = new Item(itemStr); 30 | const annotated = item.toAnnotatedString(); 31 | t.deepEqual( 32 | annotated.contexts.map((ctx) => ctx.string), 33 | ['@wall'] 34 | ); 35 | t.deepEqual( 36 | annotated.projects.map((prj) => prj.string), 37 | ['+painted'] 38 | ); 39 | t.deepEqual( 40 | annotated.extensions.map((ext) => ext.string), 41 | ['color:blue'] 42 | ); 43 | annotated.contexts.forEach((ctx) => { 44 | t.is(annotated.string.slice(ctx.span.start, ctx.span.end), ctx.string); 45 | }); 46 | annotated.projects.forEach((prj) => { 47 | t.is(annotated.string.slice(prj.span.start, prj.span.end), prj.string); 48 | }); 49 | annotated.extensions.forEach((ext) => { 50 | t.is(annotated.string.slice(ext.span.start, ext.span.end), ext.string); 51 | }); 52 | }); 53 | -------------------------------------------------------------------------------- /src/Item.priority.test.ts: -------------------------------------------------------------------------------- 1 | import test from 'ava'; 2 | import { Item } from './Item'; 3 | 4 | test('setPriority › Adding', (t) => { 5 | const item = new Item('I have to do this.'); 6 | item.setPriority('T'); 7 | t.is(item.priority(), 'T'); 8 | t.is(item.toString(), '(T) I have to do this.'); 9 | }); 10 | 11 | test('setPriority › Updating', (t) => { 12 | const item = new Item('(Z) I have to do this.'); 13 | item.setPriority('T'); 14 | t.is(item.priority(), 'T'); 15 | t.is(item.toString(), '(T) I have to do this.'); 16 | }); 17 | 18 | test('setPriority › Removing', (t) => { 19 | const item = new Item('(L) I have to do this.'); 20 | item.setPriority(); 21 | t.is(item.priority(), null); 22 | t.is(item.toString(), 'I have to do this.'); 23 | }); 24 | 25 | test('setPriority › Throws an exception when provided invalid input', (t) => { 26 | const item = new Item('(L) I have to do this.'); 27 | t.throws(() => item.setPriority('6')); 28 | }); 29 | 30 | test('clearPriority › Clears the priority from a task', (t) => { 31 | const item = new Item('(L) I have to do this.'); 32 | item.clearPriority(); 33 | t.is(item.priority(), null); 34 | }); 35 | -------------------------------------------------------------------------------- /src/Item.projects.test.ts: -------------------------------------------------------------------------------- 1 | import test from 'ava'; 2 | import { Item } from './Item'; 3 | 4 | const sampleCompleted = 5 | 'x (Z) 2022-10-17 We should keep +todoItems in their @place when rendering out due:2022-10-22'; 6 | 7 | test('projects › Deduplicates', (t) => { 8 | const item = new Item('Hello @home with +goals and +projects and +goals extensions:todo'); 9 | t.deepEqual(item.projects(), ['goals', 'projects']); 10 | }); 11 | 12 | test('projects › Does not parse context without a space', (t) => { 13 | const item = new Item('A small computation: 1+1 = 2'); 14 | t.deepEqual(item.projects(), []); 15 | }); 16 | 17 | test('projects › Parses context at start of line', (t) => { 18 | const item = new Item('+goals Do the thing'); 19 | t.deepEqual(item.projects(), ['goals']); 20 | }); 21 | 22 | test('addProject › Adds new projects', (t) => { 23 | const item = new Item(sampleCompleted); 24 | item.addProject('rewrite'); 25 | t.deepEqual(item.projects(), ['todoItems', 'rewrite']); 26 | }); 27 | 28 | test('addProject › Does not add projects which already exist', (t) => { 29 | const item = new Item(sampleCompleted); 30 | item.addProject('todoItems'); 31 | t.deepEqual(item.projects(), ['todoItems']); 32 | }); 33 | 34 | test('addProject › Updates the body', (t) => { 35 | const item = new Item('Hello'); 36 | item.addProject('world'); 37 | t.is(item.body(), 'Hello +world'); 38 | }); 39 | 40 | test('removeProject › Removes projects', (t) => { 41 | const item = new Item('Hello @home with +goals and +projects and +goals extensions:todo'); 42 | item.removeProject('goals'); 43 | t.deepEqual(item.projects(), ['projects']); 44 | }); 45 | 46 | test('removeProject › Removes projects (none present)', (t) => { 47 | const item = new Item('Hello @home with +goals and +projects and +goals extensions:todo'); 48 | item.removeProject('nothing'); 49 | t.deepEqual(item.projects(), ['goals', 'projects']); 50 | }); 51 | 52 | test('removeProject › Updates the body', (t) => { 53 | const item = new Item('Hello @home with +goals and +projects and +goals extensions:todo'); 54 | item.removeProject('goals'); 55 | t.is(item.body(), 'Hello @home with and +projects and extensions:todo'); 56 | }); 57 | -------------------------------------------------------------------------------- /src/Item.ts: -------------------------------------------------------------------------------- 1 | const rTodo = 2 | /^((x) )?(\(([A-Z])\) )?(((\d{4}-\d{2}-\d{2}) (\d{4}-\d{2}-\d{2})|(\d{4}-\d{2}-\d{2})) )?(.*)$/; 3 | 4 | // A regex to match all tags (context, priority or extensions) 5 | const rTags = /(^|\s)([^\s:]+:[^\s:]+|[+@]\S+)/g; 6 | 7 | // A regex to match dates valid in the todo.txt spec 8 | const rDate = /^\d{4}-\d{2}-\d{2}$/; 9 | 10 | // External types 11 | 12 | interface Span { 13 | start: number; 14 | end: number; 15 | } 16 | 17 | interface Tag { 18 | string: string; 19 | span: Span; 20 | } 21 | 22 | interface Extension { 23 | string: string; 24 | parsed: { 25 | key: string; 26 | value: string; 27 | }; 28 | span: Span; 29 | } 30 | 31 | export type Context = Tag; 32 | export type Project = Tag; 33 | export type Priority = string | null; 34 | 35 | export type AnnotatedItem = { 36 | readonly string: string; 37 | // todo: date, priority, etc 38 | readonly contexts: Context[]; 39 | readonly projects: Project[]; 40 | readonly extensions: Extension[]; 41 | }; 42 | 43 | // Internal types 44 | 45 | interface TrackedTag { 46 | tag: string; 47 | start: number; 48 | } 49 | 50 | interface TrackedExtension { 51 | key: string; 52 | value: string; 53 | start: number; 54 | } 55 | 56 | type TrackedContext = TrackedTag; 57 | type TrackedProject = TrackedTag; 58 | 59 | function parseBody(body: string) { 60 | let start = 0; 61 | const tags = (body.match(rTags) || []) 62 | .map((tag) => tag.trimStart()) 63 | .map<[string, number]>((tag) => { 64 | const tagStart = body.indexOf(tag, start); 65 | if (tagStart != -1) { 66 | start = tagStart + tag.length; 67 | } 68 | return [tag, tagStart]; 69 | }); 70 | 71 | const contexts: TrackedContext[] = []; 72 | const projects: TrackedProject[] = []; 73 | const extensions: TrackedExtension[] = []; 74 | 75 | tags.forEach(([tag, start]) => { 76 | if (tag[0] == '@') { 77 | contexts.push({ tag: tag.slice(1), start }); 78 | } else if (tag[0] == '+') { 79 | projects.push({ tag: tag.slice(1), start }); 80 | } else { 81 | const split = tag.split(':', 2); 82 | extensions.push({ key: split[0], value: split[1], start }); 83 | } 84 | }); 85 | 86 | return { contexts, projects, extensions }; 87 | } 88 | 89 | function dateFromString(input: string): Date { 90 | if (null === rDate.exec(input)) { 91 | throw new Error('Invalid Date Format'); 92 | } 93 | return new Date( 94 | parseInt(input.slice(0, 4), 10), 95 | parseInt(input.slice(5, 7), 10) - 1, // months are zero indexed 96 | parseInt(input.slice(8), 10) 97 | ); 98 | } 99 | 100 | /** 101 | * Represents a single line in a todo.txt file. 102 | */ 103 | export class Item { 104 | #complete = false; 105 | #priority: Priority = null; 106 | #created: Date | null = null; 107 | #completed: Date | null = null; 108 | #body = ''; 109 | #contexts: TrackedContext[] = []; 110 | #projects: TrackedProject[] = []; 111 | #extensions: TrackedExtension[] = []; 112 | 113 | constructor(line: string) { 114 | this.parse(line); 115 | } 116 | 117 | /** 118 | * Parse in a full todo.txt line, replacing and resetting all fields. 119 | * 120 | * @param line A full todo.txt task line 121 | */ 122 | parse(line: string) { 123 | // reset all fields 124 | this.#complete = false; 125 | this.#priority = null; 126 | this.#created = null; 127 | this.#completed = null; 128 | this.#body = ''; 129 | this.#contexts = []; 130 | this.#projects = []; 131 | this.#extensions = []; 132 | 133 | // this can't _not_ match due to the .* at the end 134 | const match = rTodo.exec(line); 135 | 136 | this.#complete = match[2] === 'x'; 137 | this.#priority = match[4] || null; 138 | 139 | if (typeof match[9] !== 'undefined') { 140 | this.#created = dateFromString(match[9]); 141 | } else if (typeof match[7] !== 'undefined') { 142 | this.#completed = dateFromString(match[7]); 143 | this.#created = dateFromString(match[8]); 144 | } 145 | 146 | this.setBody(match[10]); 147 | } 148 | 149 | /** 150 | * Generate a full todo.txt line out of this Item. 151 | */ 152 | toString(): string { 153 | const parts = [ 154 | this.#complete ? 'x' : '', 155 | this.#priority ? `(${this.#priority})` : '', 156 | this.completedToString(), 157 | this.createdToString(), 158 | this.#body, 159 | ]; 160 | 161 | return parts.filter((v) => v !== null && v !== '').join(' '); 162 | } 163 | 164 | /** 165 | * Generate the full todo.txt line of this Item, as well as spans describing the 166 | * location of all of it's component parts. 167 | */ 168 | toAnnotatedString(): AnnotatedItem { 169 | const str = this.toString(); 170 | const headerLength = str.length - this.#body.length; 171 | 172 | function tagRemap(prefix: string) { 173 | return function (tag: TrackedTag): Tag { 174 | const fullTag = [prefix, tag.tag].join(''); 175 | return { 176 | string: fullTag, 177 | span: { 178 | start: tag.start + headerLength, 179 | end: tag.start + headerLength + fullTag.length, 180 | }, 181 | }; 182 | }; 183 | } 184 | 185 | function extensionsRemap(ext: TrackedExtension): Extension { 186 | const tag = `${ext.key}:${ext.value}`; 187 | return { 188 | string: tag, 189 | parsed: { 190 | key: ext.key, 191 | value: ext.value, 192 | }, 193 | span: { 194 | start: ext.start + headerLength, 195 | end: ext.start + headerLength + tag.length, 196 | }, 197 | }; 198 | } 199 | 200 | return { 201 | string: str, 202 | contexts: this.#contexts.map(tagRemap('@')), 203 | projects: this.#projects.map(tagRemap('+')), 204 | extensions: this.#extensions.map(extensionsRemap), 205 | }; 206 | } 207 | 208 | /** 209 | * Is this task complete? 210 | */ 211 | complete(): boolean { 212 | return this.#complete; 213 | } 214 | 215 | /** 216 | * Set if this task is complete. 217 | * 218 | * **Side Effect** 219 | * 220 | * Setting this to false will clear the completed date. 221 | * 222 | * @param complete True if the task is complete. 223 | */ 224 | setComplete(complete: boolean) { 225 | this.#complete = complete; 226 | if (!complete) { 227 | this.clearCompleted(); 228 | } 229 | } 230 | 231 | /** 232 | * Get the priority of this Item, or null if not present. 233 | */ 234 | priority(): string | null { 235 | return this.#priority; 236 | } 237 | 238 | /** 239 | * Set the priority of the task. Passing `null` or no argument clears priority. 240 | * 241 | * @param priority A priority from A-Z or null to clear priority. 242 | * @throws An Error when the input is invalid. 243 | */ 244 | setPriority(priority: Priority = null) { 245 | if (priority) { 246 | const char = priority.charCodeAt(0); 247 | if (priority.length !== 1 || char < 65 || char > 90) { 248 | throw new Error('Invalid Priority'); 249 | } 250 | } 251 | this.#priority = priority; 252 | } 253 | 254 | /** 255 | * Remove the priority from this task. 256 | */ 257 | clearPriority() { 258 | this.#priority = null; 259 | } 260 | 261 | /** 262 | * Get the creation date of this task. 263 | * 264 | * @returns The creation date, or null if not set. 265 | */ 266 | created(): Date | null { 267 | return this.#created; 268 | } 269 | 270 | /** 271 | * Get the creation date as string, or an empty string if not set. 272 | * 273 | * @returns The creation date as a string formatted for todo.txt (YYYY-MM-DD) 274 | */ 275 | createdToString(): string { 276 | return dateString(this.#created); 277 | } 278 | 279 | /** 280 | * Set the created date for the task. Passing `null` or no argument clears the created date. 281 | * 282 | * **Side Effect** 283 | * 284 | * Clearing the created date will also unset the completed date. 285 | * 286 | * @param date 287 | * @throws An Error when the date is provided as a string and is invalid. 288 | */ 289 | setCreated(date: Date | string | null = null) { 290 | if (date === null) { 291 | this.clearCreated(); 292 | } else if (date instanceof Date) { 293 | this.#created = date; 294 | } else { 295 | this.#created = dateFromString(date); 296 | } 297 | } 298 | 299 | /** 300 | * Remove the created date from the task. 301 | * 302 | * **Side Effect** 303 | * 304 | * Clearing the created date will also unset the completed date. 305 | */ 306 | clearCreated() { 307 | this.#created = null; 308 | this.#completed = null; 309 | } 310 | 311 | /** 312 | * Get the completed date of this task. 313 | * 314 | * @returns The completed date, or null if not set. 315 | */ 316 | completed(): Date | null { 317 | return this.#completed; 318 | } 319 | 320 | /** 321 | * Get the completed date as string, or an empty string if not set. 322 | * 323 | * @returns The completed date as a string formatted for todo.txt (YYYY-MM-DD) 324 | */ 325 | completedToString(): string { 326 | return dateString(this.#completed); 327 | } 328 | 329 | /** 330 | * Set the completed date for the task. Passing `null` or no argument clears the completed date. 331 | * 332 | * **Side Effect** 333 | * 334 | * Setting completed will set complete to true. 335 | * 336 | * @param date 337 | * @throws An Error when the date is provided as a string and is invalid. 338 | */ 339 | setCompleted(date: Date | string | null = null) { 340 | if (date === null) { 341 | this.clearCompleted(); 342 | } else { 343 | if (date instanceof Date) { 344 | this.#completed = date; 345 | } else { 346 | this.#completed = dateFromString(date); 347 | } 348 | this.#complete = true; 349 | } 350 | } 351 | 352 | /** 353 | * Remove the completed date from the task. 354 | */ 355 | clearCompleted() { 356 | this.#completed = null; 357 | } 358 | 359 | /** 360 | * Get the body of the task. 361 | * @returns The body portion of the task. 362 | */ 363 | body(): string { 364 | return this.#body; 365 | } 366 | 367 | /** 368 | * Parse and set the body and body elements. 369 | * 370 | * **Side Effect** 371 | * 372 | * This will clear and re-load contexts, projects and extensions. 373 | * 374 | * @param body A todo.txt description string. 375 | */ 376 | setBody(body: string) { 377 | const { contexts, projects, extensions } = parseBody(body); 378 | this.#body = body; 379 | this.#contexts = contexts; 380 | this.#projects = projects; 381 | this.#extensions = extensions; 382 | } 383 | 384 | /** 385 | * Get all of the context tags on the task. 386 | * 387 | * @returns Context tags, without the `@` 388 | */ 389 | contexts(): string[] { 390 | return [...new Set(this.#contexts.map(({ tag }) => tag))]; 391 | } 392 | 393 | /** 394 | * Add a new context to the task. Will append to the end. 395 | * If the context is already present, it will not be added. 396 | * 397 | * @param tag A valid context, without the `@` 398 | */ 399 | addContext(tag: string) { 400 | if (!this.#contexts.some((v) => tag === v.tag)) { 401 | this.#contexts.push({ tag, start: this.#body.length }); 402 | this.#body = [this.#body, `@${tag}`].join(' '); 403 | } 404 | } 405 | 406 | /** 407 | * Remove a context from the task, if present. 408 | * 409 | * @param tag A valid context, without the `@` 410 | */ 411 | removeContext(tag: string) { 412 | const body = removeTag(this.#body, this.#contexts, tag); 413 | if (body !== null) { 414 | this.#body = body; 415 | 416 | const { contexts, projects, extensions } = parseBody(this.#body); 417 | this.#contexts = contexts; 418 | this.#projects = projects; 419 | this.#extensions = extensions; 420 | } 421 | } 422 | 423 | /** 424 | * Get all of the project tags on the task. 425 | * 426 | * @returns Project tags, without the `+` 427 | */ 428 | projects(): string[] { 429 | return [...new Set(this.#projects.map(({ tag }) => tag))]; 430 | } 431 | 432 | /** 433 | * Add a new project to the task. Will append to the end. 434 | * If the project is already present, it will not be added. 435 | * 436 | * @param tag A valid project, without the `+` 437 | */ 438 | addProject(tag: string) { 439 | if (!this.#projects.some((v) => tag === v.tag)) { 440 | this.#projects.push({ tag, start: this.#body.length }); 441 | this.#body = [this.#body, `+${tag}`].join(' '); 442 | } 443 | } 444 | 445 | /** 446 | * Remove a project from the task, if present. 447 | * 448 | * @param tag A valid project, without the `+` 449 | */ 450 | removeProject(tag: string) { 451 | const body = removeTag(this.#body, this.#projects, tag); 452 | if (body !== null) { 453 | this.#body = body; 454 | 455 | const { contexts, projects, extensions } = parseBody(this.#body); 456 | this.#contexts = contexts; 457 | this.#projects = projects; 458 | this.#extensions = extensions; 459 | } 460 | } 461 | 462 | /** 463 | * Get all of the project tags on the task. 464 | * 465 | * @returns Project tags, without the `+` 466 | */ 467 | extensions() { 468 | return this.#extensions.map(({ key, value }) => { 469 | return { key, value }; 470 | }); 471 | } 472 | 473 | setExtension(key: string, value: string) { 474 | let found = false; 475 | 476 | this.#extensions.forEach((ext) => { 477 | if (ext.key === key) { 478 | const prefix = this.#body.slice(0, ext.start); 479 | const suffix = this.#body.slice(ext.start + ext.key.length + ext.value.length + 1); 480 | if (found) { 481 | this.#body = [ 482 | prefix.slice(0, prefix.length - 1), // take the extra space off the end of prefix 483 | suffix, 484 | ].join(''); 485 | } else { 486 | this.#body = [prefix, `${key}:${value}`, suffix].join(''); 487 | } 488 | found = true; 489 | } 490 | }); 491 | 492 | if (found) { 493 | const { contexts, projects, extensions } = parseBody(this.#body); 494 | this.#contexts = contexts; 495 | this.#projects = projects; 496 | this.#extensions = extensions; 497 | } else { 498 | this.addExtension(key, value); 499 | } 500 | } 501 | 502 | addExtension(key: string, value: string) { 503 | this.#extensions.push({ key, value, start: this.#body.length }); 504 | this.#body = [this.#body, `${key}:${value}`].join(' '); 505 | } 506 | 507 | removeExtension(key: string, value: string | null = null) { 508 | const spans = this.#extensions 509 | .filter((ext) => { 510 | return ext.key === key && (value === null || ext.value === value); 511 | }) 512 | .map((ext) => { 513 | return { start: ext.start, end: ext.start + ext.key.length + ext.value.length + 1 }; 514 | }) 515 | .sort((a, b) => (a.start < b.start ? 1 : -1)); 516 | 517 | if (spans.length > 0) { 518 | this.#body = cutOutSpans(this.#body, spans); 519 | 520 | const { contexts, projects, extensions } = parseBody(this.#body); 521 | this.#contexts = contexts; 522 | this.#projects = projects; 523 | this.#extensions = extensions; 524 | } 525 | } 526 | } 527 | 528 | function dateString(date: Date | null): string { 529 | if (date !== null) { 530 | return ( 531 | date.getFullYear() + 532 | '-' + 533 | (date.getMonth() + 1 < 10 ? '0' : '') + 534 | (date.getMonth() + 1) + 535 | '-' + 536 | (date.getDate() < 10 ? '0' : '') + 537 | date.getDate() 538 | ); 539 | } 540 | return ''; 541 | } 542 | 543 | function cutOutSpans(body: string, spans: Span[]): string { 544 | spans.forEach(({ start, end }) => { 545 | body = [body.slice(0, start - 1), body.slice(end)].join(''); 546 | }); 547 | 548 | return body; 549 | } 550 | 551 | function removeTag(body: string, tags: TrackedTag[], tag: string): string | null { 552 | const spans = tags 553 | .filter((ctx) => ctx.tag === tag) 554 | .map((ctx) => { 555 | return { start: ctx.start, end: ctx.start + ctx.tag.length + 1 }; 556 | }) 557 | .sort((a, b) => (a.start < b.start ? 1 : -1)); 558 | 559 | if (spans.length === 0) { 560 | return null; 561 | } 562 | 563 | return cutOutSpans(body, spans); 564 | } 565 | -------------------------------------------------------------------------------- /src/List.add.test.ts: -------------------------------------------------------------------------------- 1 | import test from 'ava'; 2 | import { List } from './List'; 3 | import { Item } from './Item'; 4 | 5 | test('add › string', (t) => { 6 | const list = new List(['first item', 'second item', 'third item']); 7 | const listItem = list.add('fourth item'); 8 | t.is(listItem.index, 3); 9 | t.is(listItem.item.toString(), 'fourth item'); 10 | }); 11 | 12 | test('add › Item', (t) => { 13 | const list = new List(['first item', 'second item', 'third item']); 14 | const listItem = list.add(new Item('fourth item')); 15 | t.is(listItem.index, 3); 16 | t.is(listItem.item.toString(), 'fourth item'); 17 | }); 18 | -------------------------------------------------------------------------------- /src/List.filter.test.ts: -------------------------------------------------------------------------------- 1 | import test, { ExecutionContext } from 'ava'; 2 | import { List, ListFilter } from './List'; 3 | 4 | const NOT_COMPLETE = 'not complete'; 5 | const COMPLETE = 'x complete'; 6 | const PRIORITY = '(A) Priority'; 7 | const EVERYTHING = 'x (B) 2020-06-22 2020-05-17 Everything @everywhere +allAtOnce due:2022-02-01'; 8 | const CREATED_MARCH = '2021-03-01 Created in March'; 9 | const CREATED_JULY = '2021-07-01 Created in July'; 10 | const COMPLETED_AUGUST = 'x 2020-08-01 2020-07-01 Completed in August'; 11 | const COMPLETED_DECEMBER = 'x 2020-12-01 2020-10-01 Completed in December'; 12 | const CONTEXT_HOME = 'Close windows @home'; 13 | const CONTEXT_COMPUTER = 'Check email @computer'; 14 | const CONTEXTS = 'Work on @computer when @home'; 15 | const PROJECT_REPORT = 'Create an outline for my +report'; 16 | const PROJECT_SHED = 'Put siding on the +shed'; 17 | const PROJECTS = 'Gather dimensions for my +report on my +shed build'; 18 | const EXTENSION_BLUE = 'Paint room color:blue'; 19 | const EXTENSION_RED = 'Paint room color:red'; 20 | 21 | const lines = [ 22 | NOT_COMPLETE, 23 | COMPLETE, 24 | PRIORITY, 25 | EVERYTHING, 26 | CREATED_MARCH, 27 | CREATED_JULY, 28 | COMPLETED_AUGUST, 29 | COMPLETED_DECEMBER, 30 | CONTEXT_HOME, 31 | CONTEXT_COMPUTER, 32 | CONTEXTS, 33 | PROJECT_REPORT, 34 | PROJECT_SHED, 35 | PROJECTS, 36 | EXTENSION_BLUE, 37 | EXTENSION_RED, 38 | ]; 39 | 40 | const linesIndex = Object.fromEntries(lines.map((v, i) => [v, i])); 41 | 42 | const list = new List(lines); 43 | 44 | function compare( 45 | t: ExecutionContext, 46 | filter: ListFilter, 47 | included: string[] | null, 48 | excluded: string[] | null = null 49 | ) { 50 | const filtered = list.filter(filter); 51 | let expected: string[] = []; 52 | if (included !== null) { 53 | t.is(filtered.length, included.length); 54 | expected = included; 55 | } else if (excluded !== null) { 56 | t.is(filtered.length, lines.length - excluded.length); 57 | expected = lines.filter((line) => excluded.indexOf(line) === -1); 58 | } 59 | expected.forEach((line: string, index: number) => { 60 | t.is( 61 | filtered[index].item.toString(), 62 | line, 63 | `expected line "${line}", got "${filtered[index].item.toString()}"` 64 | ); 65 | t.is(filtered[index].index, linesIndex[line], `index does not match for ${line}`); 66 | }); 67 | } 68 | 69 | test( 70 | 'filter › all', 71 | compare, 72 | { 73 | complete: true, 74 | priority: 'B', 75 | created: { start: new Date(2020, 4, 1), end: new Date(2020, 5, 1) }, 76 | completed: { start: new Date(2020, 5, 1), end: new Date(2020, 6, 1) }, 77 | body: /^Everything/, 78 | }, 79 | [EVERYTHING] 80 | ); 81 | 82 | test('filter › complete', compare, { complete: true }, [ 83 | COMPLETE, 84 | EVERYTHING, 85 | COMPLETED_AUGUST, 86 | COMPLETED_DECEMBER, 87 | ]); 88 | 89 | test('filter › ! complete', compare, { complete: false }, null, [ 90 | COMPLETE, 91 | EVERYTHING, 92 | COMPLETED_AUGUST, 93 | COMPLETED_DECEMBER, 94 | ]); 95 | 96 | test('filter › priority', compare, { priority: 'A' }, [PRIORITY]); 97 | 98 | test('filter › priority (no match)', compare, { priority: 'Z' }, []); 99 | 100 | test('filter › ! priority', compare, { priority: null }, null, [PRIORITY, EVERYTHING]); 101 | 102 | test('filter › created › after start', compare, { created: { start: new Date(2021, 0, 1) } }, [ 103 | CREATED_MARCH, 104 | CREATED_JULY, 105 | ]); 106 | 107 | test('filter › created › before end', compare, { created: { end: new Date(2021, 5, 1) } }, [ 108 | EVERYTHING, 109 | CREATED_MARCH, 110 | COMPLETED_AUGUST, 111 | COMPLETED_DECEMBER, 112 | ]); 113 | 114 | test( 115 | 'filter › created › between', 116 | compare, 117 | { created: { start: new Date(2021, 0, 1), end: new Date(2021, 5, 1) } }, 118 | [CREATED_MARCH] 119 | ); 120 | 121 | test('filter › ! created', compare, { created: null }, null, [ 122 | EVERYTHING, 123 | CREATED_MARCH, 124 | CREATED_JULY, 125 | COMPLETED_AUGUST, 126 | COMPLETED_DECEMBER, 127 | ]); 128 | 129 | test('filter › completed › after start', compare, { completed: { start: new Date(2020, 6, 1) } }, [ 130 | COMPLETED_AUGUST, 131 | COMPLETED_DECEMBER, 132 | ]); 133 | 134 | test('filter › completed › before end', compare, { completed: { end: new Date(2020, 11, 30) } }, [ 135 | EVERYTHING, 136 | COMPLETED_AUGUST, 137 | COMPLETED_DECEMBER, 138 | ]); 139 | 140 | test( 141 | 'filter › completed › between', 142 | compare, 143 | { completed: { start: new Date(2020, 10, 1), end: new Date(2021, 0, 1) } }, 144 | [COMPLETED_DECEMBER] 145 | ); 146 | 147 | test('filter › ! completed', compare, { completed: null }, null, [ 148 | EVERYTHING, 149 | COMPLETED_AUGUST, 150 | COMPLETED_DECEMBER, 151 | ]); 152 | 153 | test('filter › body › regex', compare, { body: /^Created in/ }, [CREATED_MARCH, CREATED_JULY]); 154 | 155 | test('filter › body › string', compare, { body: 'complete' }, [COMPLETE]); 156 | 157 | test('filter › contexts › and › single', compare, { contextsAnd: ['home'] }, [ 158 | CONTEXT_HOME, 159 | CONTEXTS, 160 | ]); 161 | 162 | test('filter › contexts › and › multiple', compare, { contextsAnd: ['home', 'computer'] }, [ 163 | CONTEXTS, 164 | ]); 165 | 166 | test('filter › contexts › or › single', compare, { contextsOr: ['home'] }, [ 167 | CONTEXT_HOME, 168 | CONTEXTS, 169 | ]); 170 | 171 | test('filter › contexts › or › multiple', compare, { contextsOr: ['home', 'computer'] }, [ 172 | CONTEXT_HOME, 173 | CONTEXT_COMPUTER, 174 | CONTEXTS, 175 | ]); 176 | 177 | test('filter › contexts › not', compare, { contextsNot: ['everywhere'] }, null, [EVERYTHING]); 178 | 179 | test( 180 | 'filter › contexts › or + not', 181 | compare, 182 | { contextsOr: ['home', 'computer'], contextsNot: ['home'] }, 183 | [CONTEXT_COMPUTER] 184 | ); 185 | 186 | test('filter › projects › and › single', compare, { projectsAnd: ['shed'] }, [ 187 | PROJECT_SHED, 188 | PROJECTS, 189 | ]); 190 | 191 | test('filter › projects › and › multiple', compare, { projectsAnd: ['shed', 'report'] }, [ 192 | PROJECTS, 193 | ]); 194 | 195 | test('filter › projects › or › single', compare, { projectsOr: ['shed'] }, [ 196 | PROJECT_SHED, 197 | PROJECTS, 198 | ]); 199 | 200 | test('filter › projects › or › multiple', compare, { projectsOr: ['shed', 'report'] }, [ 201 | PROJECT_REPORT, 202 | PROJECT_SHED, 203 | PROJECTS, 204 | ]); 205 | 206 | test('filter › projects › not', compare, { projectsNot: ['allAtOnce'] }, null, [EVERYTHING]); 207 | 208 | test( 209 | 'filter › projects › or + not', 210 | compare, 211 | { projectsOr: ['shed', 'report'], projectsNot: ['shed'] }, 212 | [PROJECT_REPORT] 213 | ); 214 | 215 | test( 216 | 'filter › extensions › by key', 217 | compare, 218 | { 219 | extensions: ['color'], 220 | }, 221 | [EXTENSION_BLUE, EXTENSION_RED] 222 | ); 223 | 224 | test( 225 | 'filter › extensions › by function', 226 | compare, 227 | { 228 | extensions: (extensions: { key: string; value: string }[]): boolean => { 229 | return extensions.filter(({ key, value }) => key === 'color' && value === 'blue').length > 0; 230 | }, 231 | }, 232 | [EXTENSION_BLUE] 233 | ); 234 | -------------------------------------------------------------------------------- /src/List.inputs.test.ts: -------------------------------------------------------------------------------- 1 | import test from 'ava'; 2 | import { List } from './List'; 3 | 4 | test('constructor › string', (t) => { 5 | const list = new List('first item\nsecond item'); 6 | t.is(list.items().length, 2); 7 | }); 8 | 9 | test('constructor › string › strips blank lines', (t) => { 10 | const list = new List('first item\nsecond item\n\nthird item\n\n'); 11 | t.is(list.items().length, 3); 12 | }); 13 | 14 | test('constructor › array', (t) => { 15 | const list = new List(['first item', 'second item', 'third item']); 16 | t.is(list.items().length, 3); 17 | }); 18 | 19 | test('constructor › array › strips blank lines', (t) => { 20 | const list = new List(['first item', '', 'second item', ' ', '\t', 'third item']); 21 | t.is(list.items().length, 3); 22 | }); 23 | -------------------------------------------------------------------------------- /src/List.outputs.test.ts: -------------------------------------------------------------------------------- 1 | import test from 'ava'; 2 | import { List } from './List'; 3 | 4 | test('toString', (t) => { 5 | const list = new List(['first item', 'second item', 'third item']); 6 | t.is(list.toString(), 'first item\nsecond item\nthird item'); 7 | }); 8 | 9 | test('projects', (t) => { 10 | const list = new List(['first +item', 'second +item', 'third +task']); 11 | t.deepEqual(list.projects(), ['item', 'task']); 12 | }); 13 | 14 | test('contexts', (t) => { 15 | const list = new List(['first @item', 'second @task', 'third @item']); 16 | t.deepEqual(list.contexts(), ['item', 'task']); 17 | }); 18 | 19 | test('extensions', (t) => { 20 | const list = new List(['first item is due:2022-01-05', 'second item h:1', 'third h:0']); 21 | t.deepEqual(list.extensions(), { due: ['2022-01-05'], h: ['1', '0'] }); 22 | }); 23 | -------------------------------------------------------------------------------- /src/List.ts: -------------------------------------------------------------------------------- 1 | import { Item, Priority } from './Item'; 2 | 3 | export interface DateRange { 4 | start?: Date; 5 | end?: Date; 6 | } 7 | 8 | export type ExtensionFilterFunction = (extensions: { key: string; value: string }[]) => boolean; 9 | 10 | export interface ListFilter { 11 | complete?: boolean; 12 | priority?: Priority; 13 | created?: DateRange | null; 14 | completed?: DateRange | null; 15 | body?: RegExp | string; 16 | contextsAnd?: string[]; 17 | contextsOr?: string[]; 18 | contextsNot?: string[]; 19 | projectsAnd?: string[]; 20 | projectsOr?: string[]; 21 | projectsNot?: string[]; 22 | extensions?: ExtensionFilterFunction | string[]; 23 | } 24 | 25 | export interface ListItem { 26 | index: number; 27 | item: Item; 28 | } 29 | 30 | interface KeysForExtensions { 31 | [key: string]: string[]; 32 | } 33 | 34 | export class List { 35 | #items: Item[] = []; 36 | 37 | constructor(input: string | string[]) { 38 | let lines: string[]; 39 | if (typeof input === 'string') { 40 | lines = input.split('\n'); 41 | } else { 42 | lines = input; 43 | } 44 | 45 | this.#items = lines 46 | .map((line) => line.trimEnd()) 47 | .filter((line) => line.length > 0) 48 | .map((line) => new Item(line.trimEnd())); 49 | } 50 | 51 | toString(): string { 52 | return this.#items.map((item) => item.toString()).join('\n'); 53 | } 54 | 55 | items(): ListItem[] { 56 | return this.#items.map((item: Item, index: number): ListItem => { 57 | return { 58 | index, 59 | item, 60 | }; 61 | }); 62 | } 63 | 64 | projects(): string[] { 65 | return [ 66 | ...new Set(this.#items.map((item) => item.projects()).reduce((p, n) => [...p, ...n], [])), 67 | ]; 68 | } 69 | 70 | contexts(): string[] { 71 | return [ 72 | ...new Set(this.#items.map((item) => item.contexts()).reduce((p, n) => [...p, ...n], [])), 73 | ]; 74 | } 75 | 76 | extensions(): KeysForExtensions { 77 | const ret: KeysForExtensions = {}; 78 | 79 | this.#items.forEach((item) => { 80 | item.extensions().forEach((ext) => { 81 | const values = ret[ext.key] || []; 82 | values.push(ext.value); 83 | ret[ext.key] = [...new Set(values)]; 84 | }); 85 | }); 86 | 87 | return ret; 88 | } 89 | 90 | filter(input: ListFilter): ListItem[] { 91 | return this.items().filter(({ item }): boolean => { 92 | if (input.complete !== undefined && input.complete !== item.complete()) { 93 | return false; 94 | } 95 | 96 | if (input.priority !== undefined && input.priority !== item.priority()) { 97 | return false; 98 | } 99 | 100 | if (input.created !== undefined) { 101 | if (!filterDateRange(item.created(), input.created)) { 102 | return false; 103 | } 104 | } 105 | 106 | if (input.completed !== undefined) { 107 | if (!filterDateRange(item.completed(), input.completed)) { 108 | return false; 109 | } 110 | } 111 | 112 | if (input.body !== undefined) { 113 | if (input.body instanceof RegExp) { 114 | if (null === input.body.exec(item.body())) { 115 | return false; 116 | } 117 | } else { 118 | if (input.body !== item.body()) { 119 | return false; 120 | } 121 | } 122 | } 123 | 124 | const contexts = item.contexts(); 125 | if (input.contextsAnd !== undefined) { 126 | if (input.contextsAnd.some((context) => !contexts.includes(context))) { 127 | return false; 128 | } 129 | } 130 | 131 | if (input.contextsOr !== undefined) { 132 | if (!input.contextsOr.some((context) => contexts.includes(context))) { 133 | return false; 134 | } 135 | } 136 | 137 | if (input.contextsNot !== undefined) { 138 | if (input.contextsNot.some((context) => contexts.includes(context))) { 139 | return false; 140 | } 141 | } 142 | 143 | const projects = item.projects(); 144 | if (input.projectsAnd !== undefined) { 145 | if (input.projectsAnd.some((context) => !projects.includes(context))) { 146 | return false; 147 | } 148 | } 149 | 150 | if (input.projectsOr !== undefined) { 151 | if (!input.projectsOr.some((context) => projects.includes(context))) { 152 | return false; 153 | } 154 | } 155 | 156 | if (input.projectsNot !== undefined) { 157 | if (input.projectsNot.some((context) => projects.includes(context))) { 158 | return false; 159 | } 160 | } 161 | 162 | if (input.extensions !== undefined) { 163 | if (typeof input.extensions === 'function') { 164 | if (!input.extensions(item.extensions())) { 165 | return false; 166 | } 167 | } else if ( 168 | !item.extensions().some(({ key }) => (input.extensions).includes(key)) 169 | ) { 170 | return false; 171 | } 172 | } 173 | 174 | return true; 175 | }); 176 | } 177 | 178 | /** 179 | * Add a new Item to the end of the List 180 | */ 181 | add(item: Item | string): ListItem { 182 | if (typeof item === 'string') { 183 | this.#items.push(new Item(item)); 184 | } else { 185 | this.#items.push(item); 186 | } 187 | return { item: this.#items[this.#items.length - 1], index: this.#items.length - 1 }; 188 | } 189 | } 190 | 191 | function filterDateRange(date: Date | null, range: DateRange | null): boolean { 192 | if (range === null) { 193 | if (date !== null) { 194 | return false; 195 | } 196 | } else { 197 | if (date === null) { 198 | return false; 199 | } else { 200 | if (range.start !== undefined && date < range.start) { 201 | return false; 202 | } 203 | if (range.end !== undefined && date > range.end) { 204 | return false; 205 | } 206 | } 207 | } 208 | return true; 209 | } 210 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './Item'; 2 | export * from './List'; 3 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "strict": true, 4 | "incremental": true, 5 | "target": "es2019", 6 | "module": "commonjs", 7 | "moduleResolution": "node", 8 | "sourceMap": true, 9 | "esModuleInterop": true, 10 | "declaration": true, 11 | "declarationMap": true, 12 | "outDir": "lib", 13 | "declarationDir": "./lib" 14 | }, 15 | "include": [ 16 | "src/**/*" 17 | ], 18 | "ts-node": { 19 | "transpileOnly": true 20 | } 21 | } 22 | --------------------------------------------------------------------------------