From 1e8a672218b7e6d88bdfc148acf9535da318877d Mon Sep 17 00:00:00 2001 From: MURANGWA Pacifique Date: Tue, 16 Jan 2024 16:34:00 +0200 Subject: [PATCH 01/16] chore: change structure of loops in kin --- grammar.bnf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grammar.bnf b/grammar.bnf index bafeb6a..f582b3e 100644 --- a/grammar.bnf +++ b/grammar.bnf @@ -30,7 +30,7 @@ ::= "&&" | "||" | "==" | "!=" | "<" | "<=" | ">" | ">=" | "!" - ::= "niba" "(" ")" "subiramo" "{" * "}" + ::= "subiramo" "{" * "}" niba "(" ")" ::= From 096ae0054666a5f1b94a422cde857621cb062d34 Mon Sep 17 00:00:00 2001 From: MURANGWA Pacifique Date: Tue, 16 Jan 2024 16:34:42 +0200 Subject: [PATCH 02/16] defined utility functions for parser --- src/parser.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/parser.h b/src/parser.h index c1c0bb8..a5e6a6f 100644 --- a/src/parser.h +++ b/src/parser.h @@ -11,5 +11,10 @@ #include "lexer.h" void parser(); +Token expect(TokenType type, char* error); +Token paser_consume(TokenType type); +Token current_token(); +Token previous_token(); +Token next_token(); #endif From 683cb4684a56f5d1093603cf0edf2e0204055752 Mon Sep 17 00:00:00 2001 From: MURANGWA Pacifique Date: Tue, 16 Jan 2024 16:42:09 +0200 Subject: [PATCH 03/16] avoid high coupling between modules --- src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.c b/src/main.c index 0609ae7..1de5b90 100644 --- a/src/main.c +++ b/src/main.c @@ -83,6 +83,7 @@ static char* readFile(char const *fileLocation) { static void runFile(char const *file_location) { char *source_code_buffer = readFile(file_location); /*defined in common*/ + initLexersSource(); // initLexersSource defined in lexer.h parser(); /* parser Input */ } From 3dd3917aaaaa06958ee7bfd3b9f10a8cfaf8f571 Mon Sep 17 00:00:00 2001 From: MURANGWA Pacifique Date: Tue, 16 Jan 2024 16:42:44 +0200 Subject: [PATCH 04/16] ft: defined AST structures and their helper functions --- src/ast.h | 151 +++++++++++++++++++++++++++++++++++++++++++++++++++ src/parser.c | 3 +- 2 files changed, 152 insertions(+), 2 deletions(-) create mode 100644 src/ast.h diff --git a/src/ast.h b/src/ast.h new file mode 100644 index 0000000..8729efc --- /dev/null +++ b/src/ast.h @@ -0,0 +1,151 @@ +/* + Copyright (c) MURANGWA Pacifique. and affiliates. + This source code is licensed under the Apache License 2.0 found in the + LICENSE file in the root directory of this source tree. +*/ + + +#include +#include +#include +#include "parser.h" +#include "lexer.h" + +#ifndef KIN_AST +#define KIN_AST + +// AST node types +typedef enum { + // Statements + AST_PROGRAM, + AST_VARIABLE_DECLARATION, + AST_FUNCTION_DECLARATION, + AST_IF_STATEMENT, + AST_LOOP_STATEMENT, + + // Expressions + AST_ASSIGNMENT_EXPRESSION, + AST_CALL_EXPRESSION, + AST_BINARY_EXPRESSION, + AST_UNARY_EXPRESSION, + AST_MEMBER_EXPRESSION, + + // Literals + AST_INTEGER_LITERAL, + AST_FLOAT_LITERAL, + AST_STRING_LITERAL, + AST_LIST_LITERAL, + AST_STRUCTURE, +} ASTNodeType; + + +// AST Nodes + +/** Statements won't result in a value at runtime */ +typedef struct Stmt { + ASTNodeType kind; +} Stmt; + +/** Expressions will result in a value at runtime unlike Statements */ +typedef struct Expr { + ASTNodeType kind; +} Expr; + +typedef struct Program { + ASTNodeType kind; + Stmt* statements; +} Program; + +typedef struct VariableDeclaration { + ASTNodeType kind; + bool constant; + char* identifier; + Expr* value; +} VariableDeclaration; + +typedef struct IfStatement { + ASTNodeType kind; + Expr test; + Stmt* body; + Stmt* alternate; +} IfStatement; + +typedef struct LoopStatement { + ASTNodeType kind; + Stmt test; + Stmt* body; +} LoopStatement; + +typedef struct FunctionDeclaration { + ASTNodeType kind; + char* parameters; + char* name; + Stmt* body; +} FunctionDeclaration; + +typedef struct BinaryExpression { + ASTNodeType kind; + Expr left; + Expr right; + Token operator; +} BinaryExpression; + +typedef struct UnaryExpression { + ASTNodeType kind; + Expr argument; + Token operator; +} UnaryExpression; + +typedef struct CallExpression { + ASTNodeType kind; + Expr callee; + Expr* arguments; +} CallExpression; + +typedef struct MemberExpression { + ASTNodeType kind; + Expr structure; + Expr property; + bool computed; +} MemberExpression; + +typedef struct AssignmentExpression { + ASTNodeType kind; + Expr left; + Expr right; +} AssignmentExpression; + +typedef struct Identifier { + ASTNodeType kind; + char* name; +} Identifier; + +typedef struct IntegerLiteral { + ASTNodeType kind; + int value; +} IntegerLiteral; + +typedef struct FloatLiteral { + ASTNodeType kind; + float value; +} FloatLiteral; + +typedef struct StringLiteral { + ASTNodeType kind; + char* value; +} StringLiteral; + +typedef struct ListLiteral { + ASTNodeType kind; + Expr* elements; +} ListLiteral; + +typedef struct Structure { + ASTNodeType kind; + char* name; + Expr* properties; +} Structure; + + + +#endif \ No newline at end of file diff --git a/src/parser.c b/src/parser.c index fa97e04..a00efe4 100644 --- a/src/parser.c +++ b/src/parser.c @@ -17,8 +17,7 @@ /* entry point of Kin's parser. */ void parser() { - - initLexersSource(); + for (;;) { Token token = scanToken(); if (token.type == TOKEN_EOF) break; From c690569c6b4d735ade378b9bcc6568b4c8beb994 Mon Sep 17 00:00:00 2001 From: MURANGWA Pacifique Date: Wed, 17 Jan 2024 08:27:19 +0200 Subject: [PATCH 05/16] refactor: renamed kin.h -> error-codes.h --- src/{kin.h => error-codes.h} | 0 src/errors.c | 2 +- src/errors.h | 2 +- src/lexer.c | 2 +- src/lexer.h | 1 - src/main.c | 2 +- 6 files changed, 4 insertions(+), 5 deletions(-) rename src/{kin.h => error-codes.h} (100%) diff --git a/src/kin.h b/src/error-codes.h similarity index 100% rename from src/kin.h rename to src/error-codes.h diff --git a/src/errors.c b/src/errors.c index 63da45e..f759758 100644 --- a/src/errors.c +++ b/src/errors.c @@ -10,7 +10,7 @@ #include "errors.h" -#include "kin.h" +#include "error-codes.h" diff --git a/src/errors.h b/src/errors.h index bdc03e1..aa78da5 100644 --- a/src/errors.h +++ b/src/errors.h @@ -5,7 +5,7 @@ */ -#include "kin.h" +#include "error-codes.h" #ifndef KIN_ERRORS #define KIN_ERRORS diff --git a/src/lexer.c b/src/lexer.c index 0947f75..8c0708e 100644 --- a/src/lexer.c +++ b/src/lexer.c @@ -13,7 +13,7 @@ #include "common.h" #include "lexer.h" -#include "kin.h" +#include "error-codes.h" #include "errors.h" diff --git a/src/lexer.h b/src/lexer.h index 397d8f9..6ae42e9 100644 --- a/src/lexer.h +++ b/src/lexer.h @@ -38,7 +38,6 @@ TOKEN_EOF } TokenType; - /* Token structure */ typedef struct { TokenType type; diff --git a/src/main.c b/src/main.c index 1de5b90..221e8cf 100644 --- a/src/main.c +++ b/src/main.c @@ -11,7 +11,7 @@ /* .h files imports */ #include "common.h" -#include "kin.h" +#include "error-codes.h" #include "lexer.h" #include "parser.h" #include "errors.h" From c2422214f711d6b9658a7f49fd35b4cae564478b Mon Sep 17 00:00:00 2001 From: MURANGWA Pacifique Date: Wed, 17 Jan 2024 09:25:28 +0200 Subject: [PATCH 06/16] feat: utility functions for the parser --- src/lexer.c | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++ src/lexer.h | 1 + src/parser.c | 64 +++++++++++++++++++++++++++++++++++++++++++-- src/parser.h | 4 +-- 4 files changed, 139 insertions(+), 4 deletions(-) diff --git a/src/lexer.c b/src/lexer.c index 8c0708e..5279bff 100644 --- a/src/lexer.c +++ b/src/lexer.c @@ -270,4 +270,78 @@ Token scanToken() { syntaxError(ERROR_UNEXPECTED_CHARACTER, c, line); } } +} + +// getting lexeme from TokenType +char* tokenTypeToString(TokenType type) { + switch (type) { + /* One-character tokens */ + case TOKEN_MINUS: return "minus"; + case TOKEN_PLUS: return "plus"; + case TOKEN_STAR: return "star"; + case TOKEN_DIVISION: return "division"; + case TOKEN_POWER: return "power"; + case TOKEN_MODULO: return "modulo"; + case TOKEN_AMPERSAND: return "ampersand"; + case TOKEN_NEGATION: return "negation"; + case TOKEN_END_OF_LINE: return "semicolon"; + case TOKEN_CLOSE_BRACKET: return "closing bracket"; + case TOKEN_OPEN_BRACKET: return "open bracket"; + case TOKEN_OPEN_PARANTHESES: return "open parentheses"; + case TOKEN_CLOSE_PARANTHESES: return "close parentheses"; + case TOKEN_OPEN_CURLY_BRACES: return "open curly braces"; + case TOKEN_CLOSE_CURLY_BRACES: return "close curly braces"; + case TOKEN_SINGLE_QUOTATION: return "single quotation"; + case TOKEN_DOUBLE_QUOTATION: return "double quotation"; + case TOKEN_COLON: return "colon"; + case TOKEN_GREATER_THAN: return "greater than"; + case TOKEN_LESS_THAN: return "less than"; + case TOKEN_PERIOD: return "period"; + case TOKEN_COMMA: return "comma"; + case TOKEN_DOLLA_SIGN: return "dollar sign"; + case TOKEN_ASSIGNMENT: return "assignment"; + + /* Literals */ + case TOKEN_IDENTIFIER: return "identifier"; + case TOKEN_STRING: return "string"; + case TOKEN_INTEGER: return "integer"; + case TOKEN_FLOAT: return "float"; + + /* Two or more characters tokens */ + case TOKEN_NOT_EQUAL: return "not equal"; + case TOKEN_EQUALITY: return "equality"; + case TOKEN_INCREMENT: return "increment"; + case TOKEN_DECREMENT: return "decrement"; + case TOKEN_AND: return "logical and"; + case TOKEN_OR: return "logical or"; + case TOKEN_GREATER_THAN_OR_EQUAL: return "greater than or equal"; + case TOKEN_LESS_THAN_OR_EQUAL: return "less than or equal"; + + /* Keywords */ + case TOKEN_UBUSA: return "ubusa"; + case TOKEN_NIBA: return "niba"; + case TOKEN_NIBYO: return "nibyo"; + case TOKEN_SIBYO: return "sibyo"; + case TOKEN_NANONE_NIBA: return "nanone niba"; + case TOKEN_UMUBARE: return "umubare"; + case TOKEN_UMUBARE_WIBICE: return "umubare wibice"; + case TOKEN_NIBA_BYANZE: return "niba byanze"; + case TOKEN_SUBIRAMO: return "subiramo"; + case TOKEN_TANGA: return "tanga"; + case TOKEN_POROGARAMU_NTOYA: return "porogaramu ntoya"; + case TOKEN_TANGAZA_AMAKURU: return "tangaza amakuru"; + case TOKEN_INJIZA_AMAKURU: return "injiza amakuru"; + case TOKEN_KOMEZA: return "komeza"; + case TOKEN_HAGARARA: return "hagarara"; + case TOKEN_UBWOKO: return "ubwoko"; + case TOKEN_ERROR: return "error"; + case TOKEN_KIN_HAGARARA: return "kin hagarara"; + case TOKEN_REKA: return "reka"; + case TOKEN_SOMA_INYANDIKO: return "soma inyandiko"; + case TOKEN_ANDIKA_INYANDIKO: return "andika inyandiko"; + case TOKEN_KUVUGURURA_INYANDIKO: return "kuvugurura inyandiko"; + case TOKEN_SISITEMU: return "sisitemu"; + case TOKEN_IJAMBO: return "ijambo"; + case TOKEN_EOF: return "end of file"; + } } \ No newline at end of file diff --git a/src/lexer.h b/src/lexer.h index 6ae42e9..c7c1f7e 100644 --- a/src/lexer.h +++ b/src/lexer.h @@ -47,4 +47,5 @@ Token scanToken(); void initLexersSource(); + char* tokenTypeToString(TokenType type); #endif \ No newline at end of file diff --git a/src/parser.c b/src/parser.c index a00efe4..3be772c 100644 --- a/src/parser.c +++ b/src/parser.c @@ -15,11 +15,71 @@ #include "common.h" #include "errors.h" +#include +#include +#include "parser.h" +#include "lexer.h" + +/* Token array to store all tokens */ +Token* tokens = NULL; +int currentTokenIndex = 0; +int tokensArraySize = 0; + +/* Function to check if parser got the expected token*/ +Token expect(TokenType type) { + Token prev = previous_token(); + if (prev.type != type) { + fprintf(stderr, "Error: Unexpected token. Expected %s, but got %s.\n", + tokenTypeToString(type), prev.lexeme); + exit(EXIT_FAILURE); + } + + return prev; +} + +/* Function to get the current token */ +Token current_token() { + return tokens[currentTokenIndex]; +} + +/* Function to get the previous token */ +Token previous_token() { + return tokens[currentTokenIndex - 1]; +} + +/* Function to get the next token */ +Token next_token() { + return tokens[currentTokenIndex + 1]; +} + +/* Function to get the eat a token */ +Token eat_token() { + return tokens[currentTokenIndex++]; +} + +/* Function to tokenize the entire input and return an array of tokens */ +Token* tokenize() { + int currentTokenizerIndex = 0; + + Token token; + do { + if (currentTokenizerIndex >= tokensArraySize) { + tokensArraySize += 10; + tokens = realloc(tokens, sizeof(Token) * tokensArraySize); + } + + token = scanToken(); + tokens[currentTokenizerIndex++] = token; + } while (token.type != TOKEN_EOF); + + return tokens; +} + /* entry point of Kin's parser. */ void parser() { - + tokenize(); for (;;) { - Token token = scanToken(); + Token token = eat_token(); if (token.type == TOKEN_EOF) break; printf("Line: %d\t Token: %s\n", token.line, token.lexeme); } diff --git a/src/parser.h b/src/parser.h index a5e6a6f..4ae1638 100644 --- a/src/parser.h +++ b/src/parser.h @@ -11,8 +11,8 @@ #include "lexer.h" void parser(); -Token expect(TokenType type, char* error); -Token paser_consume(TokenType type); +Token* tokenize(); +Token expect(TokenType type); Token current_token(); Token previous_token(); Token next_token(); From dfe5d3f6339d2becc693f639cb515221f0b0c930 Mon Sep 17 00:00:00 2001 From: MURANGWA Pacifique Date: Wed, 17 Jan 2024 10:50:59 +0200 Subject: [PATCH 07/16] using unions to represent structure of the same kind --- src/ast.h | 94 ++++++++++++++++++++++++++++++------------------------- 1 file changed, 51 insertions(+), 43 deletions(-) diff --git a/src/ast.h b/src/ast.h index 8729efc..a2049db 100644 --- a/src/ast.h +++ b/src/ast.h @@ -1,10 +1,9 @@ -/* +/* Copyright (c) MURANGWA Pacifique. and affiliates. This source code is licensed under the Apache License 2.0 found in the LICENSE file in the root directory of this source tree. */ - #include #include #include @@ -38,29 +37,22 @@ typedef enum { AST_STRUCTURE, } ASTNodeType; +// Forward declarations +typedef struct Stmt Stmt; +typedef struct Expr Expr; // AST Nodes - -/** Statements won't result in a value at runtime */ -typedef struct Stmt { - ASTNodeType kind; -} Stmt; - -/** Expressions will result in a value at runtime unlike Statements */ -typedef struct Expr { - ASTNodeType kind; -} Expr; - typedef struct Program { ASTNodeType kind; Stmt* statements; + int stmt_count; } Program; typedef struct VariableDeclaration { ASTNodeType kind; bool constant; char* identifier; - Expr* value; + Expr value; } VariableDeclaration; typedef struct IfStatement { @@ -120,32 +112,48 @@ typedef struct Identifier { char* name; } Identifier; -typedef struct IntegerLiteral { - ASTNodeType kind; - int value; -} IntegerLiteral; - -typedef struct FloatLiteral { - ASTNodeType kind; - float value; -} FloatLiteral; - -typedef struct StringLiteral { - ASTNodeType kind; - char* value; -} StringLiteral; - -typedef struct ListLiteral { - ASTNodeType kind; - Expr* elements; -} ListLiteral; - -typedef struct Structure { - ASTNodeType kind; - char* name; - Expr* properties; -} Structure; - - - -#endif \ No newline at end of file +// Union to represent different literal types +typedef union { + int int_value; + float float_value; + char* string_value; + Expr* list_elements; +} LiteralValue; + +typedef struct Literal { + ASTNodeType kind; + LiteralValue value; +} Literal; + +// Union to represent different expression types +typedef union { + BinaryExpression binary_expr; + UnaryExpression unary_expr; + CallExpression call_expr; + MemberExpression member_expr; + AssignmentExpression assign_expr; + Literal literal_expr; +} Expression; + +// Union to represent different statement types +typedef union { + Program program_stmt; + VariableDeclaration var_decl_stmt; + IfStatement if_stmt; + LoopStatement loop_stmt; + FunctionDeclaration func_decl_stmt; +} Statement; + +// Structure representing an expression +struct Expr { + ASTNodeType kind; + Expression expr; +}; + +// Structure representing a statement +struct Stmt { + ASTNodeType kind; + Statement stmt; +}; + +#endif From b9bf259be65de37d03974f92218490529c9523b8 Mon Sep 17 00:00:00 2001 From: MURANGWA Pacifique Date: Mon, 29 Jan 2024 11:00:08 +0200 Subject: [PATCH 08/16] chore: configured git hooks --- .husky/pre-commit | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .husky/pre-commit diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 0000000..14a8ccb --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,3 @@ +npm run format +npm run lint +npm run test \ No newline at end of file From 523a41e1033d3827710d5e430f74708f9c97ef7e Mon Sep 17 00:00:00 2001 From: MURANGWA Pacifique Date: Mon, 29 Jan 2024 11:01:16 +0200 Subject: [PATCH 09/16] feat: fully functioning lexer --- src/lexer/lexer.ts | 335 ++++++++++++++++++++++++++++++++++++++++++++ src/lexer/tokens.ts | 76 ++++++++++ 2 files changed, 411 insertions(+) create mode 100644 src/lexer/lexer.ts create mode 100644 src/lexer/tokens.ts diff --git a/src/lexer/lexer.ts b/src/lexer/lexer.ts new file mode 100644 index 0000000..c08a4ec --- /dev/null +++ b/src/lexer/lexer.ts @@ -0,0 +1,335 @@ +/****************************************** + * Lexer * + * Produce tokens from the source * + ******************************************/ + +import TokenType from './tokens'; + +/* Token structure */ +interface Token { + type: TokenType; + lexeme: string; + line: number; +} + +class Lexer { + private sourceCodes: string; + private currentPos: number = 0; + private currentLine: number = 1; + + constructor(sourceCodes: string) { + this.sourceCodes = sourceCodes; + } + + /* Function to advance the current position */ + private advance(): void { + this.currentPos++; + } + + /* Function to get current character without advancing */ + private peek(): string { + return this.sourceCodes[this.currentPos]; + } + + /*Function to get current character and advance*/ + private consume(): string { + const char: string = this.peek(); + this.advance(); + return char; + } + + /* Function to create a new token with a lexeme */ + private makeTokenWithLexeme(type: TokenType, lexeme: string): Token { + return { + line: this.currentLine, + type, + lexeme, + }; + } + + /* check if a given string represents a single alphabetical character*/ + private isSingleAlphaCharacter(s: string): boolean { + return /^[a-zA-Z]$/.test(s); + } + + /* check if a given string represents a single digit*/ + private isDigit(s: string): boolean { + return /^[0-9]$/.test(s); + } + + /* check if a given string represent a digit or an alphabetical character */ + private alphaNumeric(s: string): boolean { + return this.isDigit(s) || this.isSingleAlphaCharacter(s); + } + + /* Ignore comments and whitespaces */ + private skipWhitespaceAndComments(): void { + while (true) { + const c: string = this.peek(); + if (c === ' ' || c === '\t' || c === '\r') { + this.advance(); + } else if (c === '\n') { + /* Newline character */ + this.advance(); + this.currentLine++; + } else if (c === '#') { + /* Comment, skip until the end of the line */ + while (this.peek() !== '\n' && this.peek() !== '\0') { + this.advance(); + } + } else { + break; + } + } + } + + /* Function to scan a number */ + private scanNumber(): Token { + const start: number = this.currentPos; + while (this.isDigit(this.peek())) { + this.advance(); + } + if ( + this.peek() == '.' && + this.isDigit(this.sourceCodes[this.currentPos + 1]) + ) { + this.advance(); + while (this.isDigit(this.peek())) { + this.advance(); + } + return this.makeTokenWithLexeme( + TokenType.FLOAT, + this.sourceCodes.slice(start, this.currentPos), + ); + } + + return this.makeTokenWithLexeme( + TokenType.INTEGER, + this.sourceCodes.slice(start, this.currentPos), + ); + } + + /* Function to scan a string litelar */ + private scanStringLiteral(): Token { + const start: number = this.currentPos; + const quote: string = this.consume(); + while (this.peek() !== quote) { + if (this.peek() === '\n' || this.peek() === '\0') { + throw new Error( + `Unterminated string literal at line ${this.currentLine}`, + ); + } + this.advance(); + } + + this.advance(); + return this.makeTokenWithLexeme( + TokenType.STRING, + this.sourceCodes.slice(start + 1, this.currentPos - 1), + ); + } + + /* Function to scan an identifier or a keyword */ + private scanIdentifierOrKeywork(): Token { + const start: number = this.currentPos; + while (this.alphaNumeric(this.peek()) || this.peek() === '_') { + this.advance(); + } + + const lexeme: string = this.sourceCodes.slice(start, this.currentPos); + + /* Check if lexeme is a keywork */ + if (lexeme === 'ubusa') + return this.makeTokenWithLexeme(TokenType.UBUSA, lexeme); + if (lexeme === 'niba') + return this.makeTokenWithLexeme(TokenType.NIBA, lexeme); + if (lexeme === 'nibyo') + return this.makeTokenWithLexeme(TokenType.NIBYO, lexeme); + if (lexeme === 'sibyo') + return this.makeTokenWithLexeme(TokenType.SIBYO, lexeme); + if (lexeme === 'nanone_niba') + return this.makeTokenWithLexeme(TokenType.NANONE_NIBA, lexeme); + if (lexeme === 'umubare') + return this.makeTokenWithLexeme(TokenType.UMUBARE, lexeme); + if (lexeme === 'umubare_wibice') + return this.makeTokenWithLexeme(TokenType.UMUBARE_WIBICE, lexeme); + if (lexeme === 'ijambo') + return this.makeTokenWithLexeme(TokenType.IJAMBO, lexeme); + if (lexeme === 'niba_byanze') + return this.makeTokenWithLexeme(TokenType.NIBA_BYANZE, lexeme); + if (lexeme === 'subiramo_NIBA') + return this.makeTokenWithLexeme(TokenType.SUBIRAMO_NIBA, lexeme); + if (lexeme === 'tanga') + return this.makeTokenWithLexeme(TokenType.TANGA, lexeme); + if (lexeme === 'porogaramu_ntoya') + return this.makeTokenWithLexeme(TokenType.POROGARAMU_NTOYA, lexeme); + if (lexeme === 'tangaza_amakuru') + return this.makeTokenWithLexeme(TokenType.TANGAZA_AMAKURU, lexeme); + if (lexeme === 'injiza_amakuru') + return this.makeTokenWithLexeme(TokenType.INJIZA_AMAKURU, lexeme); + if (lexeme === 'komeza') + return this.makeTokenWithLexeme(TokenType.KOMEZA, lexeme); + if (lexeme === 'hagarara') + return this.makeTokenWithLexeme(TokenType.HAGARARA, lexeme); + if (lexeme === 'ubwoko') + return this.makeTokenWithLexeme(TokenType.UBWOKO, lexeme); + if (lexeme === 'reka') + return this.makeTokenWithLexeme(TokenType.REKA, lexeme); + if (lexeme === 'ntahinduka') + return this.makeTokenWithLexeme(TokenType.NTAHINDUKA, lexeme); + if (lexeme === 'soma_inyandiko') + return this.makeTokenWithLexeme(TokenType.SOMA_INYANDIKO, lexeme); + if (lexeme === 'andika_inyandiko') + return this.makeTokenWithLexeme(TokenType.ANDIKA_INYANDIKO, lexeme); + if (lexeme === 'vugurura_inyandiko') + return this.makeTokenWithLexeme(TokenType.KUVUGURURA_INYANDIKO, lexeme); + if (lexeme === 'kin_hagarara') + return this.makeTokenWithLexeme(TokenType.KIN_HAGARARA, lexeme); + if (lexeme === 'sisitemu') + return this.makeTokenWithLexeme(TokenType.SISITEMU, lexeme); + + /* Not a keywork, it's an identifier */ + return this.makeTokenWithLexeme(TokenType.IDENTIFIER, lexeme); + } + + /* Function to scan the next token */ + private scanToken(): Token { + this.skipWhitespaceAndComments(); // skip whitespace and comments + + /* Check End Of Source Codes */ + if (this.currentPos == this.sourceCodes.length) { + return this.makeTokenWithLexeme(TokenType.EOF, 'EOF'); + } + + const char = this.peek(); + + switch (char) { + /* One-Character tokens */ + case '-': + this.advance(); + if (this.peek() == '-') { + this.advance(); + return this.makeTokenWithLexeme(TokenType.DECREMENT, '--'); + } + return this.makeTokenWithLexeme(TokenType.MINUS, '-'); + case '+': + this.advance(); + if (this.peek() == '+') { + this.advance(); + return this.makeTokenWithLexeme(TokenType.INCREMENT, '++'); + } + return this.makeTokenWithLexeme(TokenType.PLUS, '+'); + case '*': + this.advance(); + return this.makeTokenWithLexeme(TokenType.STAR, '*'); + case '=': + this.advance(); + if (this.peek() == '=') { + this.advance(); + return this.makeTokenWithLexeme(TokenType.EQUALITY, '=='); + } + return this.makeTokenWithLexeme(TokenType.ASSIGNMENT, '='); + case '/': + this.advance(); + return this.makeTokenWithLexeme(TokenType.DIVISION, '/'); + case '^': + this.advance(); + return this.makeTokenWithLexeme(TokenType.EXPONENT, '^'); + case '%': + this.advance(); + return this.makeTokenWithLexeme(TokenType.MODULO, '%'); + case '&': + this.advance(); + if (this.peek() == '&') { + this.advance(); + return this.makeTokenWithLexeme(TokenType.AND, '&&'); + } + return this.makeTokenWithLexeme(TokenType.AMPERSAND, '&'); + case '!': + this.advance(); + if (this.peek() == '=') { + this.advance(); + return this.makeTokenWithLexeme(TokenType.NOT_EQUAL, '!='); + } + return this.makeTokenWithLexeme(TokenType.NEGATION, '!'); + case '|': + this.advance(); + if (this.peek() == '|') { + this.advance(); + return this.makeTokenWithLexeme(TokenType.OR, '||'); + } + case ';': + this.advance(); + return this.makeTokenWithLexeme(TokenType.END_OF_LINE, ';'); + case ']': + this.advance(); + return this.makeTokenWithLexeme(TokenType.CLOSE_BRACKET, ']'); + case '[': + this.advance(); + return this.makeTokenWithLexeme(TokenType.OPEN_BRACKET, '['); + case '(': + this.advance(); + return this.makeTokenWithLexeme(TokenType.OPEN_PARANTHESES, '('); + case ')': + this.advance(); + return this.makeTokenWithLexeme(TokenType.CLOSE_PARANTHESES, ')'); + case '{': + this.advance(); + return this.makeTokenWithLexeme(TokenType.OPEN_CURLY_BRACES, '{'); + case '}': + this.advance(); + return this.makeTokenWithLexeme(TokenType.CLOSE_CURLY_BRACES, '}'); + case "'": + return this.scanStringLiteral(); + case '"': + return this.scanStringLiteral(); + case ':': + this.advance(); + return this.makeTokenWithLexeme(TokenType.COLON, ':'); + case '>': + this.advance(); + if (this.peek() == '=') { + this.advance(); + return this.makeTokenWithLexeme( + TokenType.GREATER_THAN_OR_EQUAL, + '>=', + ); + } + return this.makeTokenWithLexeme(TokenType.GREATER_THAN, '>'); + case '<': + this.advance(); + if (this.peek() == '=') { + this.advance(); + return this.makeTokenWithLexeme(TokenType.LESS_THAN_OR_EQUAL, '<='); + } + return this.makeTokenWithLexeme(TokenType.LESS_THAN, '<'); + case ',': + this.advance(); + return this.makeTokenWithLexeme(TokenType.COMMA, ','); + default: + if (!Number.isNaN(Number(char))) { + return this.scanNumber(); + } else if (this.isSingleAlphaCharacter(char) || char === '_') { + return this.scanIdentifierOrKeywork(); + } else { + throw new Error( + `Unexpected character '${char}' at line ${this.currentLine}`, + ); + } + } + } + + // generate tokens from the source. + public tokenize(): Token[] { + const tokens: Token[] = new Array(); + /* Loop through source codes, scanning tokens */ + for (;;) { + const token: Token = this.scanToken(); + tokens.push(token); + if (token.type === TokenType.EOF) break; + } + return tokens; + } +} + +export default Lexer; diff --git a/src/lexer/tokens.ts b/src/lexer/tokens.ts new file mode 100644 index 0000000..1d3727b --- /dev/null +++ b/src/lexer/tokens.ts @@ -0,0 +1,76 @@ +/*************************************** + * Tokens * + * Valid Tokens in Kin * + **************************************/ + +enum TokenType { + /* One-character tokens */ + MINUS, + PLUS, + STAR, + DIVISION, + EXPONENT, + MODULO, + AMPERSAND, + NEGATION, + END_OF_LINE, + OPEN_PARANTHESES, + CLOSE_PARANTHESES, + OPEN_BRACKET, + CLOSE_BRACKET, + OPEN_CURLY_BRACES, + CLOSE_CURLY_BRACES, + SINGLE_QUOTATION, + DOUBLE_QUOTATION, + COLON, + GREATER_THAN, + LESS_THAN, + COMMA, + ASSIGNMENT, + + /* Literals */ + IDENTIFIER, + STRING, + INTEGER, + FLOAT, + + /* Two or more characters tokens */ + NOT_EQUAL, + EQUALITY, + INCREMENT, + DECREMENT, + AND, + OR, + GREATER_THAN_OR_EQUAL, + LESS_THAN_OR_EQUAL, + + /* Keywords */ + UBUSA, + NIBA, + NIBYO, + SIBYO, + NTAHINDUKA, + NANONE_NIBA, + UMUBARE, + UMUBARE_WIBICE, + NIBA_BYANZE, + SUBIRAMO_NIBA, + TANGA, + POROGARAMU_NTOYA, + TANGAZA_AMAKURU, + INJIZA_AMAKURU, + KOMEZA, + HAGARARA, + UBWOKO, + ERROR, + KIN_HAGARARA, + REKA, + SOMA_INYANDIKO, + ANDIKA_INYANDIKO, + KUVUGURURA_INYANDIKO, + SISITEMU, + IJAMBO, + EOF, +} + +export default TokenType; From 4144a3cb053def9b125e8a3be6afc43a7b022a9b Mon Sep 17 00:00:00 2001 From: MURANGWA Pacifique Date: Mon, 29 Jan 2024 11:01:56 +0200 Subject: [PATCH 10/16] tests for lexer --- tests/.gitkeep | 0 tests/lexer.test.ts | 75 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) delete mode 100644 tests/.gitkeep create mode 100644 tests/lexer.test.ts diff --git a/tests/.gitkeep b/tests/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/tests/lexer.test.ts b/tests/lexer.test.ts new file mode 100644 index 0000000..dd96e42 --- /dev/null +++ b/tests/lexer.test.ts @@ -0,0 +1,75 @@ +import { describe, test, expect } from 'vitest'; +import TokenType from '../src/lexer/tokens'; +import Lexer from '../src/lexer/lexer'; + +describe('Lexer', () => { + test('should tokenize arithmetic expressions correctly', () => { + const lexer = new Lexer('1 + 2 * 3 / (4 - 2)'); + const tokens = lexer.tokenize(); + const expectedTokens = [ + { line: 1, type: TokenType.INTEGER, lexeme: '1' }, + { line: 1, type: TokenType.PLUS, lexeme: '+' }, + { line: 1, type: TokenType.INTEGER, lexeme: '2' }, + { line: 1, type: TokenType.STAR, lexeme: '*' }, + { line: 1, type: TokenType.INTEGER, lexeme: '3' }, + { line: 1, type: TokenType.DIVISION, lexeme: '/' }, + { line: 1, type: TokenType.OPEN_PARANTHESES, lexeme: '(' }, + { line: 1, type: TokenType.INTEGER, lexeme: '4' }, + { line: 1, type: TokenType.MINUS, lexeme: '-' }, + { line: 1, type: TokenType.INTEGER, lexeme: '2' }, + { line: 1, type: TokenType.CLOSE_PARANTHESES, lexeme: ')' }, + { line: 1, type: TokenType.EOF, lexeme: 'EOF' }, + ]; + expect(tokens).toEqual(expectedTokens); + }); + + test('should tokenize variable assignment correctly', () => { + const lexer = new Lexer('reka x = 42;'); + const tokens = lexer.tokenize(); + + const expectedTokens = [ + { line: 1, type: TokenType.REKA, lexeme: 'reka' }, + { line: 1, type: TokenType.IDENTIFIER, lexeme: 'x' }, + { line: 1, type: TokenType.ASSIGNMENT, lexeme: '=' }, + { line: 1, type: TokenType.INTEGER, lexeme: '42' }, + { line: 1, type: TokenType.END_OF_LINE, lexeme: ';' }, + { line: 1, type: TokenType.EOF, lexeme: 'EOF' }, + ]; + expect(tokens).toEqual(expectedTokens); + }); + + test('should tokenize string literals correctly', () => { + const lexer = new Lexer('"Hello, world!"'); + const tokens = lexer.tokenize(); + const expectedTokens = [ + { type: TokenType.STRING, lexeme: 'Hello, world!', line: 1 }, + { type: TokenType.EOF, lexeme: 'EOF', line: 1 }, + ]; + expect(tokens).toEqual(expectedTokens); + }); + + test('should tokenize comments and ignore whitespace', () => { + const lexer = new Lexer(` + # This is a comment + reka a = 10; # Another comment + `); + const tokens = lexer.tokenize(); + + const expectedTokens = [ + { line: 3, type: TokenType.REKA, lexeme: 'reka' }, + { line: 3, type: TokenType.IDENTIFIER, lexeme: 'a' }, + { line: 3, type: TokenType.ASSIGNMENT, lexeme: '=' }, + { line: 3, type: TokenType.INTEGER, lexeme: '10' }, + { line: 3, type: TokenType.END_OF_LINE, lexeme: ';' }, + { line: 4, type: TokenType.EOF, lexeme: 'EOF' }, + ]; + expect(tokens).toEqual(expectedTokens); + }); + + test('should handle errors for unexpected characters', () => { + const lexer = new Lexer('let x = ~;'); + expect(() => lexer.tokenize()).toThrowError( + "Unexpected character '~' at line 1", + ); + }); +}); From f42a24ef659b28ad7c1f91f0de88cbaf12741278 Mon Sep 17 00:00:00 2001 From: MURANGWA Pacifique Date: Mon, 29 Jan 2024 11:02:48 +0200 Subject: [PATCH 11/16] feat: coding style inforcement --- .eslintrc | 22 ++++++++++++++++++++++ .prettierignore | 4 ++++ .prettierrc | 5 +++++ 3 files changed, 31 insertions(+) create mode 100644 .eslintrc create mode 100644 .prettierignore create mode 100644 .prettierrc diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..e08ccf0 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,22 @@ +{ + "parser": "@typescript-eslint/parser", + "parserOptions": { + "project": "tsconfig.json", + "tsconfigRootDir": ".", + "sourceType": "module" + }, + "plugins": ["@typescript-eslint/eslint-plugin", "vitest"], + "extends": ["plugin:@typescript-eslint/recommended", "plugin:prettier/recommended", "plugin:vitest/recommended"], + "root": true, + "env": { + "node": true, + "jest": true + }, + "ignorePatterns": [".eslintrc"], + "rules": { + "@typescript-eslint/interface-name-prefix": "off", + "@typescript-eslint/explicit-function-return-type": "off", + "@typescript-eslint/explicit-module-boundary-types": "off", + "@typescript-eslint/no-explicit-any": "error" + } +} diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..3dfbfcd --- /dev/null +++ b/.prettierignore @@ -0,0 +1,4 @@ +build/ +dist/ +node_modules/ +coverage/ \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..61b37ef --- /dev/null +++ b/.prettierrc @@ -0,0 +1,5 @@ +{ + "singleQuote": true, + "trailingComma": "all", + "tabWidth": 2 +} \ No newline at end of file From 7942c3578e827aedb4c171af66518f40b9dce71e Mon Sep 17 00:00:00 2001 From: MURANGWA Pacifique Date: Mon, 29 Jan 2024 11:03:31 +0200 Subject: [PATCH 12/16] feat: entery point for interpreter --- src/ast.h | 159 --------------------- src/common.c | 12 -- src/common.h | 24 ---- src/error-codes.h | 28 ---- src/errors.c | 69 --------- src/errors.h | 21 --- src/lexer.c | 347 ---------------------------------------------- src/lexer.h | 51 ------- src/main.c | 102 -------------- src/main.ts | 54 ++++++++ src/parser.c | 87 ------------ src/parser.h | 20 --- src/utils/log.ts | 12 ++ 13 files changed, 66 insertions(+), 920 deletions(-) delete mode 100644 src/ast.h delete mode 100644 src/common.c delete mode 100644 src/common.h delete mode 100644 src/error-codes.h delete mode 100644 src/errors.c delete mode 100644 src/errors.h delete mode 100644 src/lexer.c delete mode 100644 src/lexer.h delete mode 100644 src/main.c create mode 100644 src/main.ts delete mode 100644 src/parser.c delete mode 100644 src/parser.h create mode 100644 src/utils/log.ts diff --git a/src/ast.h b/src/ast.h deleted file mode 100644 index a2049db..0000000 --- a/src/ast.h +++ /dev/null @@ -1,159 +0,0 @@ -/* - Copyright (c) MURANGWA Pacifique. and affiliates. - This source code is licensed under the Apache License 2.0 found in the - LICENSE file in the root directory of this source tree. -*/ - -#include -#include -#include -#include "parser.h" -#include "lexer.h" - -#ifndef KIN_AST -#define KIN_AST - -// AST node types -typedef enum { - // Statements - AST_PROGRAM, - AST_VARIABLE_DECLARATION, - AST_FUNCTION_DECLARATION, - AST_IF_STATEMENT, - AST_LOOP_STATEMENT, - - // Expressions - AST_ASSIGNMENT_EXPRESSION, - AST_CALL_EXPRESSION, - AST_BINARY_EXPRESSION, - AST_UNARY_EXPRESSION, - AST_MEMBER_EXPRESSION, - - // Literals - AST_INTEGER_LITERAL, - AST_FLOAT_LITERAL, - AST_STRING_LITERAL, - AST_LIST_LITERAL, - AST_STRUCTURE, -} ASTNodeType; - -// Forward declarations -typedef struct Stmt Stmt; -typedef struct Expr Expr; - -// AST Nodes -typedef struct Program { - ASTNodeType kind; - Stmt* statements; - int stmt_count; -} Program; - -typedef struct VariableDeclaration { - ASTNodeType kind; - bool constant; - char* identifier; - Expr value; -} VariableDeclaration; - -typedef struct IfStatement { - ASTNodeType kind; - Expr test; - Stmt* body; - Stmt* alternate; -} IfStatement; - -typedef struct LoopStatement { - ASTNodeType kind; - Stmt test; - Stmt* body; -} LoopStatement; - -typedef struct FunctionDeclaration { - ASTNodeType kind; - char* parameters; - char* name; - Stmt* body; -} FunctionDeclaration; - -typedef struct BinaryExpression { - ASTNodeType kind; - Expr left; - Expr right; - Token operator; -} BinaryExpression; - -typedef struct UnaryExpression { - ASTNodeType kind; - Expr argument; - Token operator; -} UnaryExpression; - -typedef struct CallExpression { - ASTNodeType kind; - Expr callee; - Expr* arguments; -} CallExpression; - -typedef struct MemberExpression { - ASTNodeType kind; - Expr structure; - Expr property; - bool computed; -} MemberExpression; - -typedef struct AssignmentExpression { - ASTNodeType kind; - Expr left; - Expr right; -} AssignmentExpression; - -typedef struct Identifier { - ASTNodeType kind; - char* name; -} Identifier; - -// Union to represent different literal types -typedef union { - int int_value; - float float_value; - char* string_value; - Expr* list_elements; -} LiteralValue; - -typedef struct Literal { - ASTNodeType kind; - LiteralValue value; -} Literal; - -// Union to represent different expression types -typedef union { - BinaryExpression binary_expr; - UnaryExpression unary_expr; - CallExpression call_expr; - MemberExpression member_expr; - AssignmentExpression assign_expr; - Literal literal_expr; -} Expression; - -// Union to represent different statement types -typedef union { - Program program_stmt; - VariableDeclaration var_decl_stmt; - IfStatement if_stmt; - LoopStatement loop_stmt; - FunctionDeclaration func_decl_stmt; -} Statement; - -// Structure representing an expression -struct Expr { - ASTNodeType kind; - Expression expr; -}; - -// Structure representing a statement -struct Stmt { - ASTNodeType kind; - Statement stmt; -}; - -#endif diff --git a/src/common.c b/src/common.c deleted file mode 100644 index 0677464..0000000 --- a/src/common.c +++ /dev/null @@ -1,12 +0,0 @@ -/* - Copyright (c) MURANGWA Pacifique. and affiliates. - This source code is licensed under the Apache License 2.0 found in the - LICENSE file in the root directory of this source tree. -*/ - - -#include "common.h" - -void advance(int *position) { - *position += 1; -} \ No newline at end of file diff --git a/src/common.h b/src/common.h deleted file mode 100644 index 09027a0..0000000 --- a/src/common.h +++ /dev/null @@ -1,24 +0,0 @@ -/* - Copyright (c) MURANGWA Pacifique. and affiliates. - This source code is licensed under the Apache License 2.0 found in the - LICENSE file in the root directory of this source tree. -*/ - - -#ifndef _KIN_COMMON_H -#define _KIN_COMMON_H - -#include - - -typedef struct { - char* buffer; - size_t size; -}SOURCE_CODE_INFO; - -extern SOURCE_CODE_INFO source_code_info; - -/* Common Functions */ -void advance(int *position); - -#endif /*_KIN_COMMON_H */ diff --git a/src/error-codes.h b/src/error-codes.h deleted file mode 100644 index bfdead8..0000000 --- a/src/error-codes.h +++ /dev/null @@ -1,28 +0,0 @@ -/* - Copyright (c) MURANGWA Pacifique. and affiliates. - This source code is licensed under the Apache License 2.0 found in the - LICENSE file in the root directory of this source tree. -*/ - - -#ifndef KIN_INTERPRETER_UTILS_H -#define KIN_INTERPRETER_UTILS_H - -#define EXIT_SUCCESS 0 -#define EXIT_FAILURE 1 -#define EXIT_SYNTAX_ERROR 2 -#define EXIT_RUNTIME_ERROR 3 -#define EXIT_INVALID_ARGUMENTS 4 -#define EXIT_FILE_NOT_FOUND 5 -#define EXIT_UNABLE_TO_READ_FILE 6 -#define EXIT_NO_ENOUGH_MEMORY 7 -#define EXIT_GENERIC_ERROR 8 - -typedef enum { - ERROR_UNEXPECTED_CHARACTER, ERROR_UNTERMINATED_STRING_LITERAL, - ERROR_FILE_NOT_FOUND, ERROR_NO_ENOUGH_MEMORY_TO_RUN_A_FILE, - ERROR_FAILED_TO_READ_FILE, ERROR_INVALID_TERMINAL_ARGUMENTS, - ERROR_INSUFFICIENT_MEMORY -} ErrorCodes; - -#endif \ No newline at end of file diff --git a/src/errors.c b/src/errors.c deleted file mode 100644 index f759758..0000000 --- a/src/errors.c +++ /dev/null @@ -1,69 +0,0 @@ -/* - Copyright (c) MURANGWA Pacifique. and affiliates. - This source code is licensed under the Apache License 2.0 found in the - LICENSE file in the root directory of this source tree. -*/ - - -#include -#include - - -#include "errors.h" -#include "error-codes.h" - - - -void syntaxError(ErrorCodes reason, char character , int line) { - switch (reason) { - case ERROR_UNEXPECTED_CHARACTER: - fprintf(stderr, "SyntaxError: Unexpected character '%c' on line %d\n", character, line); - exit(EXIT_FAILURE); - break; - case ERROR_UNTERMINATED_STRING_LITERAL: - fprintf(stderr, "SyntaxError: Unterminated string literal on line %d\n", line); - exit(EXIT_FAILURE); - default: - break; - } -} - -/* report File Operation Error */ -void fileOperationError(ErrorCodes reason, const char* fileLocation) { - switch (reason) { - case ERROR_FAILED_TO_READ_FILE: - fprintf(stderr, "File Operation Error: No enough memory to read \'%s\' \n", fileLocation); - exit(EXIT_UNABLE_TO_READ_FILE); - case ERROR_FILE_NOT_FOUND: - fprintf(stderr, "File Operation Error: File \" %s \" not found. \n", fileLocation); - exit(EXIT_FILE_NOT_FOUND); - case ERROR_NO_ENOUGH_MEMORY_TO_RUN_A_FILE: - fprintf(stderr, "File Operation Error: no enough memory to read \"%s\" \n", fileLocation); - exit(EXIT_NO_ENOUGH_MEMORY); - default: - break; - } -} - -void argumentsError(ErrorCodes reason) { - switch (reason) { - case ERROR_INVALID_TERMINAL_ARGUMENTS: - fprintf(stderr, "Invalid Arguments Error: Please enter reply or provide a file \n"); - exit(EXIT_INVALID_ARGUMENTS); - break; - default: - break; - } -} - - -void memoryError(ErrorCodes reason, char* message) { - switch (reason) { - case ERROR_INSUFFICIENT_MEMORY: - fprintf(stderr, "%s", message); - exit(EXIT_NO_ENOUGH_MEMORY); - break; - default: - break; - } -} \ No newline at end of file diff --git a/src/errors.h b/src/errors.h deleted file mode 100644 index aa78da5..0000000 --- a/src/errors.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - Copyright (c) MURANGWA Pacifique. and affiliates. - This source code is licensed under the Apache License 2.0 found in the - LICENSE file in the root directory of this source tree. -*/ - - -#include "error-codes.h" - -#ifndef KIN_ERRORS -#define KIN_ERRORS - - - -void syntaxError(ErrorCodes reason, char character , int line); -void fileOperationError(ErrorCodes reason, const char* fileLocation); -void argumentsError(ErrorCodes reason); - -void memoryError(ErrorCodes reason, char* message); - -#endif \ No newline at end of file diff --git a/src/lexer.c b/src/lexer.c deleted file mode 100644 index 5279bff..0000000 --- a/src/lexer.c +++ /dev/null @@ -1,347 +0,0 @@ -/* - Copyright (c) MURANGWA Pacifique. and affiliates. - This source code is licensed under the Apache License 2.0 found in the - LICENSE file in the root directory of this source tree. -*/ - - -#include -#include -#include -#include -#include - -#include "common.h" -#include "lexer.h" -#include "error-codes.h" -#include "errors.h" - - - -char* source; /* Source code */ -int currentPos = 0; /* Current position in source */ -int line = 1; /* Current line number */ - -/* Function to initialize the source code */ -void initLexersSource() { - source = source_code_info.buffer; -} - -/* Function to create a new token with a lexeme */ -Token makeTokenWithLexeme(TokenType type, char* lexeme) { - Token token; - token.type = type; - token.lexeme = lexeme; - token.line = line; - return token; -} - -/* Function to get the current character */ -char getCurrentChar() { - return source[currentPos]; -} - -/*Function to get current character and advance*/ -char consume() { - char c = getCurrentChar(); - advance(¤tPos); - return c; -} - -/* Function to scan an identifier or keyword */ -Token scanIdentifierOrKeyword() { - int start = currentPos; - - while (isalnum(getCurrentChar()) || getCurrentChar() == '_') { - advance(¤tPos); - } - - char* lexeme = strndup(&source[start], currentPos - start); - - /* Check if it's a keyword */ - if (strcmp(lexeme, "ubusa") == 0) return makeTokenWithLexeme(TOKEN_UBUSA, lexeme); - if (strcmp(lexeme, "niba") == 0) return makeTokenWithLexeme(TOKEN_NIBA, lexeme); - if (strcmp(lexeme, "nibyo") == 0) return makeTokenWithLexeme(TOKEN_NIBYO, lexeme); - if (strcmp(lexeme, "sibyo") == 0) return makeTokenWithLexeme(TOKEN_SIBYO, lexeme); - if (strcmp(lexeme, "nanone_niba") == 0) return makeTokenWithLexeme(TOKEN_NANONE_NIBA, lexeme); - if (strcmp(lexeme, "umubare") == 0) return makeTokenWithLexeme(TOKEN_UMUBARE, lexeme); - if (strcmp(lexeme, "umubare_wibice") == 0) return makeTokenWithLexeme(TOKEN_UMUBARE_WIBICE, lexeme); - if (strcmp(lexeme, "ijambo") == 0) return makeTokenWithLexeme(TOKEN_IJAMBO, lexeme); - if (strcmp(lexeme, "niba_byanze") == 0) return makeTokenWithLexeme(TOKEN_NIBA_BYANZE, lexeme); - if (strcmp(lexeme, "subiramo") == 0) return makeTokenWithLexeme(TOKEN_SUBIRAMO, lexeme); - if (strcmp(lexeme, "tanga") == 0) return makeTokenWithLexeme(TOKEN_TANGA, lexeme); - if (strcmp(lexeme, "porogaramu_ntoya") == 0) return makeTokenWithLexeme(TOKEN_POROGARAMU_NTOYA, lexeme); - if (strcmp(lexeme, "tangaza_amakuru") == 0) return makeTokenWithLexeme(TOKEN_TANGAZA_AMAKURU, lexeme); - if (strcmp(lexeme, "injiza_amakuru") == 0) return makeTokenWithLexeme(TOKEN_INJIZA_AMAKURU, lexeme); - if (strcmp(lexeme, "komeza") == 0) return makeTokenWithLexeme(TOKEN_KOMEZA, lexeme); - if (strcmp(lexeme, "hagarara") == 0) return makeTokenWithLexeme(TOKEN_HAGARARA, lexeme); - if (strcmp(lexeme, "ubwoko") == 0) return makeTokenWithLexeme(TOKEN_UBWOKO, lexeme); - if (strcmp(lexeme, "reka") == 0) return makeTokenWithLexeme(TOKEN_REKA, lexeme); - if (strcmp(lexeme, "soma_inyandiko") ==0 ) return makeTokenWithLexeme(TOKEN_SOMA_INYANDIKO, lexeme); - if (strcmp(lexeme, "andika_inyandiko") == 0) return makeTokenWithLexeme(TOKEN_ANDIKA_INYANDIKO, lexeme); - if (strcmp(lexeme, "vugurura_inyandiko") == 0) return makeTokenWithLexeme(TOKEN_KUVUGURURA_INYANDIKO, lexeme); - if (strcmp(lexeme, "kin_hagarara") == 0) return makeTokenWithLexeme(TOKEN_KIN_HAGARARA, lexeme); - if (strcmp(lexeme, "sisitemu") == 0) return makeTokenWithLexeme(TOKEN_SISITEMU, lexeme); - - /* Not a keyword, it's an identifier */ - return makeTokenWithLexeme(TOKEN_IDENTIFIER, lexeme); -} - -/* Function to scan a string literal */ -Token scanStringLiteral() { - char delimiter = consume(); /* Single or double quote */ - int start = currentPos ; /* get position where we have delimeter */ - - while (getCurrentChar() != delimiter) { - if (getCurrentChar() == '\0' || getCurrentChar() == '\n') { - syntaxError(ERROR_UNTERMINATED_STRING_LITERAL, '\n', line); - } - advance(¤tPos); - } - - char* lexeme = strndup(&source[start], currentPos - start); - advance(¤tPos); /* escape closing delimiter for string litelar. */ - return makeTokenWithLexeme(TOKEN_STRING, lexeme); -} - - -/* Function to scan a number */ -Token scanNumber() { - int start = currentPos; - - while (isdigit(getCurrentChar())) { - advance(¤tPos); - } - - if (getCurrentChar() == '.' && isdigit(source[currentPos + 1])) { - advance(¤tPos); - while (isdigit(getCurrentChar())) { - advance(¤tPos); - } - return makeTokenWithLexeme(TOKEN_FLOAT, strndup(&source[start], currentPos - start)); - } - - return makeTokenWithLexeme(TOKEN_INTEGER, strndup(&source[start], currentPos - start)); -} - -/* Function to skip whitespace and comments */ -void skipWhitespaceAndComments() { - while (true) { - char c = getCurrentChar(); - if (c == ' ' || c == '\t' || c == '\r') { - advance(¤tPos); - } else if (c == '\n') { - /* Newline character */ - advance(¤tPos); - line++; - } else if (c == '#') { - /* Comment, skip until the end of the line */ - while (getCurrentChar() != '\n' && getCurrentChar() != '\0') { - advance(¤tPos); - } - } else { - break; - } - } -} - -/* Function to scan the next token */ -Token scanToken() { - skipWhitespaceAndComments(); - char c = getCurrentChar(); - - if (c == '\0') { - /* End of file */ - return makeTokenWithLexeme(TOKEN_EOF, "EOF"); - } - - switch (c) { - /* One-character tokens */ - case '-': - advance(¤tPos); - if (getCurrentChar() == '-') { - advance(¤tPos); - return makeTokenWithLexeme(TOKEN_DECREMENT, "decrement"); - } - return makeTokenWithLexeme(TOKEN_MINUS, "minus"); - case '+': - advance(¤tPos); - if ( getCurrentChar() == '+') { - advance(¤tPos); - return makeTokenWithLexeme(TOKEN_INCREMENT, "increment"); - } - return makeTokenWithLexeme(TOKEN_PLUS, "plus"); - case '*': - advance(¤tPos); - return makeTokenWithLexeme(TOKEN_STAR, "star"); - case '=': - advance(¤tPos); - if(getCurrentChar() == '='){ - advance(¤tPos); - return makeTokenWithLexeme(TOKEN_EQUALITY, "equality"); - } - return makeTokenWithLexeme(TOKEN_ASSIGNMENT, "assignment"); - case '/': - advance(¤tPos); - return makeTokenWithLexeme(TOKEN_DIVISION, "division"); - case '^': - advance(¤tPos); - return makeTokenWithLexeme(TOKEN_POWER, "power"); - case '%': - advance(¤tPos); - return makeTokenWithLexeme(TOKEN_MODULO, "modulo"); - case '&': - advance(¤tPos); - if (getCurrentChar() == '&') { - advance(¤tPos); - return makeTokenWithLexeme(TOKEN_AND, "and"); - } - return makeTokenWithLexeme(TOKEN_AMPERSAND, "ampersand"); - case '|': - advance(¤tPos); - if (getCurrentChar() == '|') { - advance(¤tPos); - return makeTokenWithLexeme(TOKEN_OR, "or"); - } - case '!': - advance(¤tPos); - if (getCurrentChar() == '=') { - advance(¤tPos); - return makeTokenWithLexeme(TOKEN_NOT_EQUAL, "not_equal"); - } - return makeTokenWithLexeme(TOKEN_NEGATION, "negation"); - case ';': - advance(¤tPos); - return makeTokenWithLexeme(TOKEN_END_OF_LINE, "end-of-line"); - case ']': - advance(¤tPos); - return makeTokenWithLexeme(TOKEN_CLOSE_BRACKET, "close-bracket"); - case '[': - advance(¤tPos); - return makeTokenWithLexeme(TOKEN_OPEN_BRACKET, "open-bracket"); - case '(': - advance(¤tPos); - return makeTokenWithLexeme(TOKEN_OPEN_PARANTHESES, "open-parantheses"); - case ')': - advance(¤tPos); - return makeTokenWithLexeme(TOKEN_CLOSE_PARANTHESES, "close-parantheses"); - case '{': - advance(¤tPos); - return makeTokenWithLexeme(TOKEN_OPEN_CURLY_BRACES, "open-curly-braces"); - case '}': - advance(¤tPos); - return makeTokenWithLexeme(TOKEN_CLOSE_CURLY_BRACES, "close-curly-braces"); - case '\'': - return scanStringLiteral(); - case '"': - return scanStringLiteral(); - case ':': - advance(¤tPos); - return makeTokenWithLexeme(TOKEN_COLON, "colon"); - case '>': - advance(¤tPos); - if (getCurrentChar() == '=') { - advance(¤tPos); - return makeTokenWithLexeme(TOKEN_GREATER_THAN_OR_EQUAL, "greater-than-or-equal"); - } - return makeTokenWithLexeme(TOKEN_GREATER_THAN, "greater-than"); - case '<': - advance(¤tPos); - if (getCurrentChar() == '=') { - advance(¤tPos); - return makeTokenWithLexeme(TOKEN_LESS_THAN_OR_EQUAL, "less-than-or-equal"); - } - return makeTokenWithLexeme(TOKEN_LESS_THAN, "less-than"); - case '.': - advance(¤tPos); - return makeTokenWithLexeme(TOKEN_PERIOD, "period"); - case ',': - advance(¤tPos); - return makeTokenWithLexeme(TOKEN_COMMA, "comma"); - case '$': - advance(¤tPos); - return makeTokenWithLexeme(TOKEN_DOLLA_SIGN, "dolla-sign"); - default: - if (isdigit(c)) { - return scanNumber(); - } else if (isalpha(c) || c == '_') { - return scanIdentifierOrKeyword(); - } else { - syntaxError(ERROR_UNEXPECTED_CHARACTER, c, line); - } - } -} - -// getting lexeme from TokenType -char* tokenTypeToString(TokenType type) { - switch (type) { - /* One-character tokens */ - case TOKEN_MINUS: return "minus"; - case TOKEN_PLUS: return "plus"; - case TOKEN_STAR: return "star"; - case TOKEN_DIVISION: return "division"; - case TOKEN_POWER: return "power"; - case TOKEN_MODULO: return "modulo"; - case TOKEN_AMPERSAND: return "ampersand"; - case TOKEN_NEGATION: return "negation"; - case TOKEN_END_OF_LINE: return "semicolon"; - case TOKEN_CLOSE_BRACKET: return "closing bracket"; - case TOKEN_OPEN_BRACKET: return "open bracket"; - case TOKEN_OPEN_PARANTHESES: return "open parentheses"; - case TOKEN_CLOSE_PARANTHESES: return "close parentheses"; - case TOKEN_OPEN_CURLY_BRACES: return "open curly braces"; - case TOKEN_CLOSE_CURLY_BRACES: return "close curly braces"; - case TOKEN_SINGLE_QUOTATION: return "single quotation"; - case TOKEN_DOUBLE_QUOTATION: return "double quotation"; - case TOKEN_COLON: return "colon"; - case TOKEN_GREATER_THAN: return "greater than"; - case TOKEN_LESS_THAN: return "less than"; - case TOKEN_PERIOD: return "period"; - case TOKEN_COMMA: return "comma"; - case TOKEN_DOLLA_SIGN: return "dollar sign"; - case TOKEN_ASSIGNMENT: return "assignment"; - - /* Literals */ - case TOKEN_IDENTIFIER: return "identifier"; - case TOKEN_STRING: return "string"; - case TOKEN_INTEGER: return "integer"; - case TOKEN_FLOAT: return "float"; - - /* Two or more characters tokens */ - case TOKEN_NOT_EQUAL: return "not equal"; - case TOKEN_EQUALITY: return "equality"; - case TOKEN_INCREMENT: return "increment"; - case TOKEN_DECREMENT: return "decrement"; - case TOKEN_AND: return "logical and"; - case TOKEN_OR: return "logical or"; - case TOKEN_GREATER_THAN_OR_EQUAL: return "greater than or equal"; - case TOKEN_LESS_THAN_OR_EQUAL: return "less than or equal"; - - /* Keywords */ - case TOKEN_UBUSA: return "ubusa"; - case TOKEN_NIBA: return "niba"; - case TOKEN_NIBYO: return "nibyo"; - case TOKEN_SIBYO: return "sibyo"; - case TOKEN_NANONE_NIBA: return "nanone niba"; - case TOKEN_UMUBARE: return "umubare"; - case TOKEN_UMUBARE_WIBICE: return "umubare wibice"; - case TOKEN_NIBA_BYANZE: return "niba byanze"; - case TOKEN_SUBIRAMO: return "subiramo"; - case TOKEN_TANGA: return "tanga"; - case TOKEN_POROGARAMU_NTOYA: return "porogaramu ntoya"; - case TOKEN_TANGAZA_AMAKURU: return "tangaza amakuru"; - case TOKEN_INJIZA_AMAKURU: return "injiza amakuru"; - case TOKEN_KOMEZA: return "komeza"; - case TOKEN_HAGARARA: return "hagarara"; - case TOKEN_UBWOKO: return "ubwoko"; - case TOKEN_ERROR: return "error"; - case TOKEN_KIN_HAGARARA: return "kin hagarara"; - case TOKEN_REKA: return "reka"; - case TOKEN_SOMA_INYANDIKO: return "soma inyandiko"; - case TOKEN_ANDIKA_INYANDIKO: return "andika inyandiko"; - case TOKEN_KUVUGURURA_INYANDIKO: return "kuvugurura inyandiko"; - case TOKEN_SISITEMU: return "sisitemu"; - case TOKEN_IJAMBO: return "ijambo"; - case TOKEN_EOF: return "end of file"; - } -} \ No newline at end of file diff --git a/src/lexer.h b/src/lexer.h deleted file mode 100644 index c7c1f7e..0000000 --- a/src/lexer.h +++ /dev/null @@ -1,51 +0,0 @@ - /* - Copyright (c) MURANGWA Pacifique. and affiliates. - This source code is licensed under the Apache License 2.0 found in the - LICENSE file in the root directory of this source tree. - */ - - - #ifndef KIN_LEXER_H - #define KIN_LEXER_H - - typedef enum { - /* One-character tokens */ - TOKEN_MINUS, TOKEN_PLUS, TOKEN_STAR, - TOKEN_DIVISION, TOKEN_POWER, TOKEN_MODULO, TOKEN_AMPERSAND, - TOKEN_NEGATION, TOKEN_END_OF_LINE, TOKEN_CLOSE_BRACKET, TOKEN_OPEN_BRACKET, - TOKEN_OPEN_PARANTHESES, TOKEN_CLOSE_PARANTHESES, - TOKEN_OPEN_CURLY_BRACES, TOKEN_CLOSE_CURLY_BRACES, - TOKEN_SINGLE_QUOTATION, TOKEN_DOUBLE_QUOTATION, - TOKEN_COLON, - TOKEN_GREATER_THAN, TOKEN_LESS_THAN, TOKEN_PERIOD, TOKEN_COMMA, - TOKEN_DOLLA_SIGN, TOKEN_ASSIGNMENT, - - /* Literals */ - TOKEN_IDENTIFIER, TOKEN_STRING, TOKEN_INTEGER, TOKEN_FLOAT, - - /* Two or more characters tokens */ - TOKEN_NOT_EQUAL, TOKEN_EQUALITY, TOKEN_INCREMENT, TOKEN_DECREMENT, - TOKEN_AND, TOKEN_OR, TOKEN_GREATER_THAN_OR_EQUAL, TOKEN_LESS_THAN_OR_EQUAL, - - /* Keywords */ - TOKEN_UBUSA, TOKEN_NIBA, TOKEN_NIBYO, TOKEN_SIBYO, - TOKEN_NANONE_NIBA, TOKEN_UMUBARE, TOKEN_UMUBARE_WIBICE, - TOKEN_NIBA_BYANZE, TOKEN_SUBIRAMO, TOKEN_TANGA, TOKEN_POROGARAMU_NTOYA, - TOKEN_TANGAZA_AMAKURU, TOKEN_INJIZA_AMAKURU, TOKEN_KOMEZA, TOKEN_HAGARARA, - TOKEN_UBWOKO, TOKEN_ERROR, TOKEN_KIN_HAGARARA, TOKEN_REKA, - TOKEN_SOMA_INYANDIKO, TOKEN_ANDIKA_INYANDIKO, TOKEN_KUVUGURURA_INYANDIKO, - TOKEN_SISITEMU, TOKEN_IJAMBO, - TOKEN_EOF - } TokenType; - - /* Token structure */ - typedef struct { - TokenType type; - char* lexeme; - int line; - } Token; - - Token scanToken(); - void initLexersSource(); - char* tokenTypeToString(TokenType type); - #endif \ No newline at end of file diff --git a/src/main.c b/src/main.c deleted file mode 100644 index 221e8cf..0000000 --- a/src/main.c +++ /dev/null @@ -1,102 +0,0 @@ -/* - Copyright (c) MURANGWA Pacifique. and affiliates. - This source code is licensed under the Apache License 2.0 found in the - LICENSE file in the root directory of this source tree. -*/ - - -#include -#include -#include - -/* .h files imports */ -#include "common.h" -#include "error-codes.h" -#include "lexer.h" -#include "parser.h" -#include "errors.h" - - -/* constants */ -#define OL 0 - -/* Global variables */ -SOURCE_CODE_INFO source_code_info; - - -/* Our Kin-lang REPL. */ -static void repl() { - char line[1024]; /* storing megabyte -> 1024 characters */ - while (true) { - printf("kin >> "); - - if (!fgets(line, sizeof(line), stdin)) { - printf("\n"); - break; - } - - /* interpret(line); */ - printf("%s", line); - } -} - -/* readFile Content */ -static char* readFile(char const *fileLocation) { - FILE *source_file = fopen (fileLocation,"r+b" ); - - /* no file */ - if(source_file == NULL) { - fileOperationError(ERROR_FILE_NOT_FOUND, fileLocation); - } - - /* file size */ - fseek(source_file, OL, SEEK_END); - size_t file_size = ftell(source_file); - rewind(source_file); - - - char* buffer = (char*)malloc(file_size + 1); - - /* no buffer */ - if( buffer == NULL) { - fileOperationError(ERROR_NO_ENOUGH_MEMORY_TO_RUN_A_FILE, fileLocation); - } - - size_t bytes_read = fread(buffer, sizeof(char), file_size ,source_file); - - /* failed to read file */ - if( bytes_read < file_size ){ - fileOperationError(ERROR_FAILED_TO_READ_FILE, fileLocation); - } - - buffer[bytes_read] = '\0'; - - fclose(source_file); - - /* Update source code info globally */ - source_code_info.buffer = buffer; - source_code_info.size = file_size; - /* Update source code info globally */ - - return buffer; -} - -static void runFile(char const *file_location) { - char *source_code_buffer = readFile(file_location); /*defined in common*/ - initLexersSource(); // initLexersSource defined in lexer.h - parser(); /* parser Input */ -} - -int main(int argc, char const *argv[]){ - /* entry point of our interpreter */ - - if (argc == 1) { - repl(); /* enter our repl */ - }else if(argc == 2) { - runFile(argv[1]); /* run codes that are in provided file location */ - }else { - argumentsError(ERROR_INVALID_TERMINAL_ARGUMENTS); - } - - return 0; -} \ No newline at end of file diff --git a/src/main.ts b/src/main.ts new file mode 100644 index 0000000..a09e3aa --- /dev/null +++ b/src/main.ts @@ -0,0 +1,54 @@ +/********************************************** + * Kin Programming Language * + * * + * Author: Copyright (c) MURANGWA Pacifique * + * and affiliates. * + * Description: Write computer programs in * + * Kinyarwanda. * + * License: Apache License 2.0 * + *********************************************/ +import Lexer from './lexer/lexer'; +import { LogError, LogMessage } from './utils/log'; + +import * as readline from 'readline/promises'; +import { readFileSync } from 'fs'; + +const rl = readline.createInterface({ + input: process.stdin, + output: process.stdout, +}); + +const file = process.argv[2]; + +if (file) { + run(file); +} else { + repl(); +} + +async function run(filename: string): Promise { + const input: string = readFileSync(filename, 'utf-8'); + const lexer = new Lexer(input); + LogMessage(lexer.tokenize()); +} + +async function repl() { + LogMessage('Kin Repl v0.0'); + + while (true) { + const input = await rl.question('> '); + + // check for no user input or exit keyword. + if (input === '.exit' || input === '.quit' || input === '.q') { + process.exit(1); + } + + try { + const lexer = new Lexer(input); + LogMessage(lexer.tokenize()); + } catch (error: unknown) { + const err = error as Error; + LogError(err.message); + } + } +} diff --git a/src/parser.c b/src/parser.c deleted file mode 100644 index 3be772c..0000000 --- a/src/parser.c +++ /dev/null @@ -1,87 +0,0 @@ -/* - Copyright (c) MURANGWA Pacifique. and affiliates. - This source code is licensed under the Apache License 2.0 found in the - LICENSE file in the root directory of this source tree. -*/ - - -/* core libraries */ -#include -#include - -/* custom headers */ -#include "parser.h" -#include "lexer.h" -#include "common.h" -#include "errors.h" - -#include -#include -#include "parser.h" -#include "lexer.h" - -/* Token array to store all tokens */ -Token* tokens = NULL; -int currentTokenIndex = 0; -int tokensArraySize = 0; - -/* Function to check if parser got the expected token*/ -Token expect(TokenType type) { - Token prev = previous_token(); - if (prev.type != type) { - fprintf(stderr, "Error: Unexpected token. Expected %s, but got %s.\n", - tokenTypeToString(type), prev.lexeme); - exit(EXIT_FAILURE); - } - - return prev; -} - -/* Function to get the current token */ -Token current_token() { - return tokens[currentTokenIndex]; -} - -/* Function to get the previous token */ -Token previous_token() { - return tokens[currentTokenIndex - 1]; -} - -/* Function to get the next token */ -Token next_token() { - return tokens[currentTokenIndex + 1]; -} - -/* Function to get the eat a token */ -Token eat_token() { - return tokens[currentTokenIndex++]; -} - -/* Function to tokenize the entire input and return an array of tokens */ -Token* tokenize() { - int currentTokenizerIndex = 0; - - Token token; - do { - if (currentTokenizerIndex >= tokensArraySize) { - tokensArraySize += 10; - tokens = realloc(tokens, sizeof(Token) * tokensArraySize); - } - - token = scanToken(); - tokens[currentTokenizerIndex++] = token; - } while (token.type != TOKEN_EOF); - - return tokens; -} - -/* entry point of Kin's parser. */ -void parser() { - tokenize(); - for (;;) { - Token token = eat_token(); - if (token.type == TOKEN_EOF) break; - printf("Line: %d\t Token: %s\n", token.line, token.lexeme); - } - -} diff --git a/src/parser.h b/src/parser.h deleted file mode 100644 index 4ae1638..0000000 --- a/src/parser.h +++ /dev/null @@ -1,20 +0,0 @@ -/* - Copyright (c) MURANGWA Pacifique. and affiliates. - This source code is licensed under the Apache License 2.0 found in the - LICENSE file in the root directory of this source tree. -*/ - - -#ifndef KIN_PARSER -#define kIN_PARSER - -#include "lexer.h" - -void parser(); -Token* tokenize(); -Token expect(TokenType type); -Token current_token(); -Token previous_token(); -Token next_token(); - -#endif diff --git a/src/utils/log.ts b/src/utils/log.ts new file mode 100644 index 0000000..551d317 --- /dev/null +++ b/src/utils/log.ts @@ -0,0 +1,12 @@ +/********************************************** + * Kin Programming Language * + * * + * Author: Copyright (c) MURANGWA Pacifique * + * and affiliates. * + * Description: Write computer programs in * + * Kinyarwanda. * + * License: Apache License 2.0 * + *********************************************/ + +export const LogMessage = console.log; +export const LogError = console.error; From 0c7b0f7e6cb3f427230cf5de23934a5b9f52977e Mon Sep 17 00:00:00 2001 From: MURANGWA Pacifique Date: Mon, 29 Jan 2024 11:04:01 +0200 Subject: [PATCH 13/16] chore: migrated from C to TypeScript --- .github/pr-test.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/pr-test.yml diff --git a/.github/pr-test.yml b/.github/pr-test.yml new file mode 100644 index 0000000..20f9ce6 --- /dev/null +++ b/.github/pr-test.yml @@ -0,0 +1,25 @@ +name: Test Pull Request + +on: + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + + - name: Install dependencies + run: npm install + + - name: Run tests + run: npm run test From 96073fa0181f9fdc55cbdacafe9e2bec2d58a76b Mon Sep 17 00:00:00 2001 From: MURANGWA Pacifique Date: Mon, 29 Jan 2024 11:04:25 +0200 Subject: [PATCH 14/16] chore: migrated from C to TypeScript --- .gitignore | 108 +- Makefile | 20 - package-lock.json | 3444 ++++++++++++++++++++++++++++++++++++++++++ package.json | 46 + reserved_keywords.md | 30 - tsconfig.json | 15 + 6 files changed, 3541 insertions(+), 122 deletions(-) delete mode 100644 Makefile create mode 100644 package-lock.json create mode 100644 package.json delete mode 100644 reserved_keywords.md create mode 100644 tsconfig.json diff --git a/.gitignore b/.gitignore index 2eb7cd6..858afed 100644 --- a/.gitignore +++ b/.gitignore @@ -1,78 +1,42 @@ -# Build Artifacts -*.S -*.o -*.exe -*.ll -# CCache -.cache -# CMake -**/bld -**/bld-* -**/build -**/win -**/win-* -**/winbld -**/winbuild -**/mswin* -**/lnx -**/lin -**/lin-* -**/linbld -**/linbuild -**/lnx -**/lnxbld -**/lnxbuild -**/linux -**/linuxbld -**/linuxbuild -**/dbg -**/debug -**/rls -**/release -/out -/.idea -/tst/out.txt -*.dot - -# Language Server -**/compile_commands.json -.Random.seed -.clang-format - -# Disallow files starting with some symbols -**/_* - -# Testing -Testing/ - -.vscode - - -# CMake build artifacts -/build/ -/CMakeFiles/ -/CMakeScripts/ -/CMakeCache.txt -/CMakeSettings.json - -# Visual Studio Code specific files (if using VSCode) +# Node.js +node_modules/ + +# Compiled files +dist/ +build/ +*.js +*.d.ts +*.js.map + +# Dependency directories +lib/ +typings/ + +# Logs +*.log +logs/ +log-debug/ +log-error/ + +# Editor-specific files .vscode/ +.idea/ +*.sublime-project +*.sublime-workspace -# CMake-generated files -compile_commands.json +# OS generated files +.DS_Store +Thumbs.db -# Generated Makefiles or project files (if using Make or other build systems) -*.make -*.cbp -*.workspace -*.project -*.sln +# Environment variables +.env -# Ignore CMake user-specific files (optional) -CMakeUserPresets.json -CMakeUserPresets.json.backup +# Visual Studio Code settings +.vscode/settings.json +# Jest coverage output +coverage/ -/bin -*.cmake -*.out \ No newline at end of file +# npm +*.npm-debug.log +npm-debug.log diff --git a/Makefile b/Makefile deleted file mode 100644 index 3cd341d..0000000 --- a/Makefile +++ /dev/null @@ -1,20 +0,0 @@ -exec = kin.out -sources = $(wildcard src/*.c) -objects = $(sources:.c=.o) -flags = -g - - -$(exec): $(objects) - gcc $(objects) $(flags) -o $(exec) - -%.o: %.c ./%.h - gcc -c $(flags) $< -o $@ - -install: - make - cp ./kin.out /usr/local/bin/kin - -clean: - -rm *.out - -rm *.o - -rm src/*.o diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..84bfafd --- /dev/null +++ b/package-lock.json @@ -0,0 +1,3444 @@ +{ + "name": "@kin-lang/core", + "version": "0.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@kin-lang/core", + "version": "0.0.0", + "license": "Apache-2.0", + "devDependencies": { + "@types/node": "^20.11.9", + "@typescript-eslint/eslint-plugin": "^6.19.1", + "@typescript-eslint/parser": "^6.19.1", + "@vitest/coverage-v8": "^1.2.2", + "eslint": "^8.56.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-prettier": "^5.1.3", + "eslint-plugin-vitest": "^0.3.20", + "husky": "^9.0.6", + "prettier": "^3.2.4", + "typescript": "^5.3.3", + "vitest": "^1.2.2", + "why-is-node-running": "^2.2.2" + } + }, + "node_modules/@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", + "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz", + "integrity": "sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", + "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.23.9", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.9.tgz", + "integrity": "sha512-9tcKgqKbs3xGJ+NtKF2ndOBBLVwPjl1SHxPQkd36r3Dlirw3xWUeGaTbqr7uGZcTaxkVNwc+03SVP7aCdWrTlA==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/types": { + "version": "7.23.9", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.9.tgz", + "integrity": "sha512-dQjSq/7HaSjRM43FFGnv5keM2HsxpmyV1PfaSVm0nzzjwwTmjOe6J4bC8e3+pTEIgHaHj+1ZlLThRJ2auc/w1Q==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.23.4", + "@babel/helper-validator-identifier": "^7.22.20", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.19.12.tgz", + "integrity": "sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.12.tgz", + "integrity": "sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.12.tgz", + "integrity": "sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.12.tgz", + "integrity": "sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.12.tgz", + "integrity": "sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.12.tgz", + "integrity": "sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.12.tgz", + "integrity": "sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.12.tgz", + "integrity": "sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.12.tgz", + "integrity": "sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.12.tgz", + "integrity": "sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.12.tgz", + "integrity": "sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.12.tgz", + "integrity": "sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.12.tgz", + "integrity": "sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.12.tgz", + "integrity": "sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.12.tgz", + "integrity": "sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.12.tgz", + "integrity": "sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.12.tgz", + "integrity": "sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.12.tgz", + "integrity": "sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.12.tgz", + "integrity": "sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.12.tgz", + "integrity": "sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.12.tgz", + "integrity": "sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.12.tgz", + "integrity": "sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.12.tgz", + "integrity": "sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", + "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/js": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.56.0.tgz", + "integrity": "sha512-gMsVel9D7f2HLkBma9VbtzZRehRogVRfbr++f06nL2vnCGCNlzOD+/MUov/F4p8myyAHspEhVobgjpX64q5m6A==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.14", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", + "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^2.0.2", + "debug": "^4.3.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz", + "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==", + "dev": true + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/schemas": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dev": true, + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", + "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.22", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.22.tgz", + "integrity": "sha512-Wf963MzWtA2sjrNt+g18IAln9lKnlRp+K2eH4jjIoF1wYeq3aMREpG09xhlhdzS0EjwU7qmUJYangWa+151vZw==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@pkgr/core": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.1.1.tgz", + "integrity": "sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.9.6.tgz", + "integrity": "sha512-MVNXSSYN6QXOulbHpLMKYi60ppyO13W9my1qogeiAqtjb2yR4LSmfU2+POvDkLzhjYLXz9Rf9+9a3zFHW1Lecg==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.9.6.tgz", + "integrity": "sha512-T14aNLpqJ5wzKNf5jEDpv5zgyIqcpn1MlwCrUXLrwoADr2RkWA0vOWP4XxbO9aiO3dvMCQICZdKeDrFl7UMClw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.9.6.tgz", + "integrity": "sha512-CqNNAyhRkTbo8VVZ5R85X73H3R5NX9ONnKbXuHisGWC0qRbTTxnF1U4V9NafzJbgGM0sHZpdO83pLPzq8uOZFw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.9.6.tgz", + "integrity": "sha512-zRDtdJuRvA1dc9Mp6BWYqAsU5oeLixdfUvkTHuiYOHwqYuQ4YgSmi6+/lPvSsqc/I0Omw3DdICx4Tfacdzmhog==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.9.6.tgz", + "integrity": "sha512-oNk8YXDDnNyG4qlNb6is1ojTOGL/tRhbbKeE/YuccItzerEZT68Z9gHrY3ROh7axDc974+zYAPxK5SH0j/G+QQ==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.9.6.tgz", + "integrity": "sha512-Z3O60yxPtuCYobrtzjo0wlmvDdx2qZfeAWTyfOjEDqd08kthDKexLpV97KfAeUXPosENKd8uyJMRDfFMxcYkDQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.9.6.tgz", + "integrity": "sha512-gpiG0qQJNdYEVad+1iAsGAbgAnZ8j07FapmnIAQgODKcOTjLEWM9sRb+MbQyVsYCnA0Im6M6QIq6ax7liws6eQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.9.6.tgz", + "integrity": "sha512-+uCOcvVmFUYvVDr27aiyun9WgZk0tXe7ThuzoUTAukZJOwS5MrGbmSlNOhx1j80GdpqbOty05XqSl5w4dQvcOA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.9.6.tgz", + "integrity": "sha512-HUNqM32dGzfBKuaDUBqFB7tP6VMN74eLZ33Q9Y1TBqRDn+qDonkAUyKWwF9BR9unV7QUzffLnz9GrnKvMqC/fw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.9.6.tgz", + "integrity": "sha512-ch7M+9Tr5R4FK40FHQk8VnML0Szi2KRujUgHXd/HjuH9ifH72GUmw6lStZBo3c3GB82vHa0ZoUfjfcM7JiiMrQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.9.6.tgz", + "integrity": "sha512-VD6qnR99dhmTQ1mJhIzXsRcTBvTjbfbGGwKAHcu+52cVl15AC/kplkhxzW/uT0Xl62Y/meBKDZvoJSJN+vTeGA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.9.6.tgz", + "integrity": "sha512-J9AFDq/xiRI58eR2NIDfyVmTYGyIZmRcvcAoJ48oDld/NTR8wyiPUu2X/v1navJ+N/FGg68LEbX3Ejd6l8B7MQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.9.6.tgz", + "integrity": "sha512-jqzNLhNDvIZOrt69Ce4UjGRpXJBzhUBzawMwnaDAwyHriki3XollsewxWzOzz+4yOFDkuJHtTsZFwMxhYJWmLQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", + "dev": true + }, + "node_modules/@types/estree": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", + "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", + "dev": true + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true + }, + "node_modules/@types/node": { + "version": "20.11.9", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.9.tgz", + "integrity": "sha512-CQXNuMoS/VcoAMISe5pm4JnEd1Br5jildbQEToEMQvutmv+EaQr90ry9raiudgpyDuqFiV9e4rnjSfLNq12M5w==", + "dev": true, + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "node_modules/@types/semver": { + "version": "7.5.6", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.6.tgz", + "integrity": "sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==", + "dev": true + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.19.1.tgz", + "integrity": "sha512-roQScUGFruWod9CEyoV5KlCYrubC/fvG8/1zXuT0WTcxX87GnMMmnksMwSg99lo1xiKrBzw2icsJPMAw1OtKxg==", + "dev": true, + "dependencies": { + "@eslint-community/regexpp": "^4.5.1", + "@typescript-eslint/scope-manager": "6.19.1", + "@typescript-eslint/type-utils": "6.19.1", + "@typescript-eslint/utils": "6.19.1", + "@typescript-eslint/visitor-keys": "6.19.1", + "debug": "^4.3.4", + "graphemer": "^1.4.0", + "ignore": "^5.2.4", + "natural-compare": "^1.4.0", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^6.0.0 || ^6.0.0-alpha", + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.19.1.tgz", + "integrity": "sha512-WEfX22ziAh6pRE9jnbkkLGp/4RhTpffr2ZK5bJ18M8mIfA8A+k97U9ZyaXCEJRlmMHh7R9MJZWXp/r73DzINVQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "6.19.1", + "@typescript-eslint/types": "6.19.1", + "@typescript-eslint/typescript-estree": "6.19.1", + "@typescript-eslint/visitor-keys": "6.19.1", + "debug": "^4.3.4" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.19.1.tgz", + "integrity": "sha512-4CdXYjKf6/6aKNMSly/BP4iCSOpvMmqtDzRtqFyyAae3z5kkqEjKndR5vDHL8rSuMIIWP8u4Mw4VxLyxZW6D5w==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.19.1", + "@typescript-eslint/visitor-keys": "6.19.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.19.1.tgz", + "integrity": "sha512-0vdyld3ecfxJuddDjACUvlAeYNrHP/pDeQk2pWBR2ESeEzQhg52DF53AbI9QCBkYE23lgkhLCZNkHn2hEXXYIg==", + "dev": true, + "dependencies": { + "@typescript-eslint/typescript-estree": "6.19.1", + "@typescript-eslint/utils": "6.19.1", + "debug": "^4.3.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.19.1.tgz", + "integrity": "sha512-6+bk6FEtBhvfYvpHsDgAL3uo4BfvnTnoge5LrrCj2eJN8g3IJdLTD4B/jK3Q6vo4Ql/Hoip9I8aB6fF+6RfDqg==", + "dev": true, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.19.1.tgz", + "integrity": "sha512-aFdAxuhzBFRWhy+H20nYu19+Km+gFfwNO4TEqyszkMcgBDYQjmPJ61erHxuT2ESJXhlhrO7I5EFIlZ+qGR8oVA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.19.1", + "@typescript-eslint/visitor-keys": "6.19.1", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "minimatch": "9.0.3", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.19.1.tgz", + "integrity": "sha512-JvjfEZuP5WoMqwh9SPAPDSHSg9FBHHGhjPugSRxu5jMfjvBpq5/sGTD+9M9aQ5sh6iJ8AY/Kk/oUYVEMAPwi7w==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@types/json-schema": "^7.0.12", + "@types/semver": "^7.5.0", + "@typescript-eslint/scope-manager": "6.19.1", + "@typescript-eslint/types": "6.19.1", + "@typescript-eslint/typescript-estree": "6.19.1", + "semver": "^7.5.4" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.19.1.tgz", + "integrity": "sha512-gkdtIO+xSO/SmI0W68DBg4u1KElmIUo3vXzgHyGPs6cxgB0sa3TlptRAAE0hUY1hM6FcDKEv7aIwiTGm76cXfQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.19.1", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "dev": true + }, + "node_modules/@vitest/coverage-v8": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@vitest/coverage-v8/-/coverage-v8-1.2.2.tgz", + "integrity": "sha512-IHyKnDz18SFclIEEAHb9Y4Uxx0sPKC2VO1kdDCs1BF6Ip4S8rQprs971zIsooLUn7Afs71GRxWMWpkCGZpRMhw==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.2.1", + "@bcoe/v8-coverage": "^0.2.3", + "debug": "^4.3.4", + "istanbul-lib-coverage": "^3.2.2", + "istanbul-lib-report": "^3.0.1", + "istanbul-lib-source-maps": "^4.0.1", + "istanbul-reports": "^3.1.6", + "magic-string": "^0.30.5", + "magicast": "^0.3.3", + "picocolors": "^1.0.0", + "std-env": "^3.5.0", + "test-exclude": "^6.0.0", + "v8-to-istanbul": "^9.2.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "vitest": "^1.0.0" + } + }, + "node_modules/@vitest/expect": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-1.2.2.tgz", + "integrity": "sha512-3jpcdPAD7LwHUUiT2pZTj2U82I2Tcgg2oVPvKxhn6mDI2On6tfvPQTjAI4628GUGDZrCm4Zna9iQHm5cEexOAg==", + "dev": true, + "dependencies": { + "@vitest/spy": "1.2.2", + "@vitest/utils": "1.2.2", + "chai": "^4.3.10" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/runner": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-1.2.2.tgz", + "integrity": "sha512-JctG7QZ4LSDXr5CsUweFgcpEvrcxOV1Gft7uHrvkQ+fsAVylmWQvnaAr/HDp3LAH1fztGMQZugIheTWjaGzYIg==", + "dev": true, + "dependencies": { + "@vitest/utils": "1.2.2", + "p-limit": "^5.0.0", + "pathe": "^1.1.1" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/runner/node_modules/p-limit": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-5.0.0.tgz", + "integrity": "sha512-/Eaoq+QyLSiXQ4lyYV23f14mZRQcXnxfHrN0vCai+ak9G0pp9iEQukIIZq5NccEvwRB8PUnZT0KsOoDCINS1qQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^1.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@vitest/runner/node_modules/yocto-queue": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.0.0.tgz", + "integrity": "sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==", + "dev": true, + "engines": { + "node": ">=12.20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@vitest/snapshot": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-1.2.2.tgz", + "integrity": "sha512-SmGY4saEw1+bwE1th6S/cZmPxz/Q4JWsl7LvbQIky2tKE35US4gd0Mjzqfr84/4OD0tikGWaWdMja/nWL5NIPA==", + "dev": true, + "dependencies": { + "magic-string": "^0.30.5", + "pathe": "^1.1.1", + "pretty-format": "^29.7.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/spy": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-1.2.2.tgz", + "integrity": "sha512-k9Gcahssw8d7X3pSLq3e3XEu/0L78mUkCjivUqCQeXJm9clfXR/Td8+AP+VC1O6fKPIDLcHDTAmBOINVuv6+7g==", + "dev": true, + "dependencies": { + "tinyspy": "^2.2.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/utils": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-1.2.2.tgz", + "integrity": "sha512-WKITBHLsBHlpjnDQahr+XK6RE7MiAsgrIkr0pGhQ9ygoxBfUeG0lUG5iLlzqjmKSlBv3+j5EGsriBzh+C3Tq9g==", + "dev": true, + "dependencies": { + "diff-sequences": "^29.6.3", + "estree-walker": "^3.0.3", + "loupe": "^2.3.7", + "pretty-format": "^29.7.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/acorn": { + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.2.tgz", + "integrity": "sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/assertion-error": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", + "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cac": { + "version": "6.7.14", + "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", + "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/chai": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/chai/-/chai-4.4.1.tgz", + "integrity": "sha512-13sOfMv2+DWduEU+/xbun3LScLoqN17nBeTLUsmDfKdoiC1fr0n9PU4guu4AhRcOVFk/sW8LyZWHuhWtQZiF+g==", + "dev": true, + "dependencies": { + "assertion-error": "^1.1.0", + "check-error": "^1.0.3", + "deep-eql": "^4.1.3", + "get-func-name": "^2.0.2", + "loupe": "^2.3.6", + "pathval": "^1.1.1", + "type-detect": "^4.0.8" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/check-error": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz", + "integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==", + "dev": true, + "dependencies": { + "get-func-name": "^2.0.2" + }, + "engines": { + "node": "*" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-eql": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.3.tgz", + "integrity": "sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==", + "dev": true, + "dependencies": { + "type-detect": "^4.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/diff-sequences": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/esbuild": { + "version": "0.19.12", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.12.tgz", + "integrity": "sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.19.12", + "@esbuild/android-arm": "0.19.12", + "@esbuild/android-arm64": "0.19.12", + "@esbuild/android-x64": "0.19.12", + "@esbuild/darwin-arm64": "0.19.12", + "@esbuild/darwin-x64": "0.19.12", + "@esbuild/freebsd-arm64": "0.19.12", + "@esbuild/freebsd-x64": "0.19.12", + "@esbuild/linux-arm": "0.19.12", + "@esbuild/linux-arm64": "0.19.12", + "@esbuild/linux-ia32": "0.19.12", + "@esbuild/linux-loong64": "0.19.12", + "@esbuild/linux-mips64el": "0.19.12", + "@esbuild/linux-ppc64": "0.19.12", + "@esbuild/linux-riscv64": "0.19.12", + "@esbuild/linux-s390x": "0.19.12", + "@esbuild/linux-x64": "0.19.12", + "@esbuild/netbsd-x64": "0.19.12", + "@esbuild/openbsd-x64": "0.19.12", + "@esbuild/sunos-x64": "0.19.12", + "@esbuild/win32-arm64": "0.19.12", + "@esbuild/win32-ia32": "0.19.12", + "@esbuild/win32-x64": "0.19.12" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.56.0.tgz", + "integrity": "sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.56.0", + "@humanwhocodes/config-array": "^0.11.13", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-config-prettier": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", + "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==", + "dev": true, + "bin": { + "eslint-config-prettier": "bin/cli.js" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, + "node_modules/eslint-plugin-prettier": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.1.3.tgz", + "integrity": "sha512-C9GCVAs4Eq7ZC/XFQHITLiHJxQngdtraXaM+LoUFoFp/lHNl2Zn8f3WQbe9HvTBBQ9YnKFB0/2Ajdqwo5D1EAw==", + "dev": true, + "dependencies": { + "prettier-linter-helpers": "^1.0.0", + "synckit": "^0.8.6" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint-plugin-prettier" + }, + "peerDependencies": { + "@types/eslint": ">=8.0.0", + "eslint": ">=8.0.0", + "eslint-config-prettier": "*", + "prettier": ">=3.0.0" + }, + "peerDependenciesMeta": { + "@types/eslint": { + "optional": true + }, + "eslint-config-prettier": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-vitest": { + "version": "0.3.20", + "resolved": "https://registry.npmjs.org/eslint-plugin-vitest/-/eslint-plugin-vitest-0.3.20.tgz", + "integrity": "sha512-O05k4j9TGMOkkghj9dRgpeLDyOSiVIxQWgNDPfhYPm5ioJsehcYV/zkRLekQs+c8+RBCVXucSED3fYOyy2EoWA==", + "dev": true, + "dependencies": { + "@typescript-eslint/utils": "^6.15.0" + }, + "engines": { + "node": "^18.0.0 || >= 20.0.0" + }, + "peerDependencies": { + "eslint": ">=8.0.0", + "vitest": "*" + }, + "peerDependenciesMeta": { + "@typescript-eslint/eslint-plugin": { + "optional": true + }, + "vitest": { + "optional": true + } + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esquery/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estree-walker": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", + "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", + "dev": true, + "dependencies": { + "@types/estree": "^1.0.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/execa": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz", + "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^8.0.1", + "human-signals": "^5.0.0", + "is-stream": "^3.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^5.1.0", + "onetime": "^6.0.0", + "signal-exit": "^4.1.0", + "strip-final-newline": "^3.0.0" + }, + "engines": { + "node": ">=16.17" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-diff": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", + "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", + "dev": true + }, + "node_modules/fast-glob": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fastq": { + "version": "1.17.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.0.tgz", + "integrity": "sha512-zGygtijUMT7jnk3h26kUms3BkSDp4IfIKjmnqI2tvx6nuBfiF1UqOxbnLfzdv+apBy+53oaImsKtMw/xYbW+1w==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", + "dev": true, + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz", + "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==", + "dev": true + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/get-func-name": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", + "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/get-stream": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz", + "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==", + "dev": true, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "node_modules/human-signals": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz", + "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==", + "dev": true, + "engines": { + "node": ">=16.17.0" + } + }, + "node_modules/husky": { + "version": "9.0.6", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.6.tgz", + "integrity": "sha512-EEuw/rfTiMjOfuL7pGO/i9otg1u36TXxqjIA6D9qxVjd/UXoDOsLor/BSFf5hTK50shwzCU3aVVwdXDp/lp7RA==", + "dev": true, + "bin": { + "husky": "bin.js" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/typicode" + } + }, + "node_modules/ignore": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.0.tgz", + "integrity": "sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", + "dev": true, + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.6.tgz", + "integrity": "sha512-TLgnMkKg3iTDsQ9PbPTdpfAK2DzjF9mqUG7RMgcQl8oFjad8ob4laGxv5XV5U9MAfx8D6tSJiUyuAwzLicaxlg==", + "dev": true, + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "node_modules/jsonc-parser": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.1.tgz", + "integrity": "sha512-AilxAyFOAcK5wA1+LeaySVBrHsGQvUFCDWXKpZjzaL0PqW+xfBOttn8GNtWKFWqneyMZj41MWF9Kl6iPWLwgOA==", + "dev": true + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/local-pkg": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-0.5.0.tgz", + "integrity": "sha512-ok6z3qlYyCDS4ZEU27HaU6x/xZa9Whf8jD4ptH5UZTQYZVYeb9bnZ3ojVhiJNLiXK1Hfc0GNbLXcmZ5plLDDBg==", + "dev": true, + "dependencies": { + "mlly": "^1.4.2", + "pkg-types": "^1.0.3" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/loupe": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz", + "integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==", + "dev": true, + "dependencies": { + "get-func-name": "^2.0.1" + } + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/magic-string": { + "version": "0.30.5", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.5.tgz", + "integrity": "sha512-7xlpfBaQaP/T6Vh8MO/EqXSW5En6INHEvEXQiuff7Gku0PWjU3uf6w/j9o7O+SpB5fOAkrI5HeoNgwjEO0pFsA==", + "dev": true, + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.4.15" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/magicast": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/magicast/-/magicast-0.3.3.tgz", + "integrity": "sha512-ZbrP1Qxnpoes8sz47AM0z08U+jW6TyRgZzcWy3Ma3vDhJttwMwAFDMMQFobwdBxByBD46JYmxRzeF7w2+wJEuw==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.23.6", + "@babel/types": "^7.23.6", + "source-map-js": "^1.0.2" + } + }, + "node_modules/make-dir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mimic-fn": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", + "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/mlly": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.5.0.tgz", + "integrity": "sha512-NPVQvAY1xr1QoVeG0cy8yUYC7FQcOx6evl/RjT1wL5FvzPnzOysoqB/jmx/DhssT2dYa8nxECLAaFI/+gVLhDQ==", + "dev": true, + "dependencies": { + "acorn": "^8.11.3", + "pathe": "^1.1.2", + "pkg-types": "^1.0.3", + "ufo": "^1.3.2" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/nanoid": { + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", + "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/npm-run-path": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.2.0.tgz", + "integrity": "sha512-W4/tgAXFqFA0iL7fk0+uQ3g7wkL8xJmx3XdK0VGb4cHW//eZTtKGvFBBoRKVTpY7n6ze4NL9ly7rgXcHufqXKg==", + "dev": true, + "dependencies": { + "path-key": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm-run-path/node_modules/path-key": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", + "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", + "dev": true, + "dependencies": { + "mimic-fn": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/optionator": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", + "dev": true, + "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/pathe": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz", + "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==", + "dev": true + }, + "node_modules/pathval": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", + "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pkg-types": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.0.3.tgz", + "integrity": "sha512-nN7pYi0AQqJnoLPC9eHFQ8AcyaixBUOwvqc5TDnIKCMEE6I0y8P7OKA7fPexsXGCGxQDl/cmrLAp26LhcwxZ4A==", + "dev": true, + "dependencies": { + "jsonc-parser": "^3.2.0", + "mlly": "^1.2.0", + "pathe": "^1.1.0" + } + }, + "node_modules/postcss": { + "version": "8.4.33", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.33.tgz", + "integrity": "sha512-Kkpbhhdjw2qQs2O2DGX+8m5OVqEcbB9HRBvuYM9pgrjEFUg30A9LmXNlTAUj4S9kgtGyrMbTzVjH7E+s5Re2yg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "nanoid": "^3.3.7", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.4.tgz", + "integrity": "sha512-FWu1oLHKCrtpO1ypU6J0SbK2d9Ckwysq6bHj/uaCP26DxrPpppCLQRGVuqAxSTvhF00AcvDRyYrLNW7ocBhFFQ==", + "dev": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/prettier-linter-helpers": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", + "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", + "dev": true, + "dependencies": { + "fast-diff": "^1.1.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/pretty-format": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rollup": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.9.6.tgz", + "integrity": "sha512-05lzkCS2uASX0CiLFybYfVkwNbKZG5NFQ6Go0VWyogFTXXbR039UVsegViTntkk4OglHBdF54ccApXRRuXRbsg==", + "dev": true, + "dependencies": { + "@types/estree": "1.0.5" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.9.6", + "@rollup/rollup-android-arm64": "4.9.6", + "@rollup/rollup-darwin-arm64": "4.9.6", + "@rollup/rollup-darwin-x64": "4.9.6", + "@rollup/rollup-linux-arm-gnueabihf": "4.9.6", + "@rollup/rollup-linux-arm64-gnu": "4.9.6", + "@rollup/rollup-linux-arm64-musl": "4.9.6", + "@rollup/rollup-linux-riscv64-gnu": "4.9.6", + "@rollup/rollup-linux-x64-gnu": "4.9.6", + "@rollup/rollup-linux-x64-musl": "4.9.6", + "@rollup/rollup-win32-arm64-msvc": "4.9.6", + "@rollup/rollup-win32-ia32-msvc": "4.9.6", + "@rollup/rollup-win32-x64-msvc": "4.9.6", + "fsevents": "~2.3.2" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/siginfo": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", + "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", + "dev": true + }, + "node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/stackback": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", + "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", + "dev": true + }, + "node_modules/std-env": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.7.0.tgz", + "integrity": "sha512-JPbdCEQLj1w5GilpiHAx3qJvFndqybBysA3qUOnznweH4QbNYUsW/ea8QzSrnh0vNsezMMw5bcVool8lM0gwzg==", + "dev": true + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-final-newline": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", + "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/strip-literal": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-1.3.0.tgz", + "integrity": "sha512-PugKzOsyXpArk0yWmUwqOZecSO0GH0bPoctLcqNDH9J04pVW3lflYE0ujElBGTloevcxF5MofAOZ7C5l2b+wLg==", + "dev": true, + "dependencies": { + "acorn": "^8.10.0" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/synckit": { + "version": "0.8.8", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.8.tgz", + "integrity": "sha512-HwOKAP7Wc5aRGYdKH+dw0PRRpbO841v2DENBtjnR5HFWoiNByAl7vrx3p0G/rCyYXQsrxqtX48TImFtPcIHSpQ==", + "dev": true, + "dependencies": { + "@pkgr/core": "^0.1.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true + }, + "node_modules/tinybench": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.6.0.tgz", + "integrity": "sha512-N8hW3PG/3aOoZAN5V/NSAEDz0ZixDSSt5b/a05iqtpgfLWMSVuCo7w0k2vVvEjdrIoeGqZzweX2WlyioNIHchA==", + "dev": true + }, + "node_modules/tinypool": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-0.8.2.tgz", + "integrity": "sha512-SUszKYe5wgsxnNOVlBYO6IC+8VGWdVGZWAqUxp3UErNBtptZvWbwyUOyzNL59zigz2rCA92QiL3wvG+JDSdJdQ==", + "dev": true, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/tinyspy": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-2.2.0.tgz", + "integrity": "sha512-d2eda04AN/cPOR89F7Xv5bK/jrQEhmcLFe6HFldoeO9AJtps+fqEnh486vnT/8y4bw38pSyxDcTCAq+Ks2aJTg==", + "dev": true, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/ts-api-utils": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.3.tgz", + "integrity": "sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==", + "dev": true, + "engines": { + "node": ">=16.13.0" + }, + "peerDependencies": { + "typescript": ">=4.2.0" + } + }, + "node_modules/tslib": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", + "dev": true + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typescript": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", + "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/ufo": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.3.2.tgz", + "integrity": "sha512-o+ORpgGwaYQXgqGDwd+hkS4PuZ3QnmqMMxRuajK/a38L6fTpcE5GPIfrf+L/KemFzfUpeUQc1rRS1iDBozvnFA==", + "dev": true + }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/v8-to-istanbul": { + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.2.0.tgz", + "integrity": "sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^2.0.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/vite": { + "version": "5.0.12", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.0.12.tgz", + "integrity": "sha512-4hsnEkG3q0N4Tzf1+t6NdN9dg/L3BM+q8SWgbSPnJvrgH2kgdyzfVJwbR1ic69/4uMJJ/3dqDZZE5/WwqW8U1w==", + "dev": true, + "dependencies": { + "esbuild": "^0.19.3", + "postcss": "^8.4.32", + "rollup": "^4.2.0" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || >=20.0.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } + } + }, + "node_modules/vite-node": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-1.2.2.tgz", + "integrity": "sha512-1as4rDTgVWJO3n1uHmUYqq7nsFgINQ9u+mRcXpjeOMJUmviqNKjcZB7UfRZrlM7MjYXMKpuWp5oGkjaFLnjawg==", + "dev": true, + "dependencies": { + "cac": "^6.7.14", + "debug": "^4.3.4", + "pathe": "^1.1.1", + "picocolors": "^1.0.0", + "vite": "^5.0.0" + }, + "bin": { + "vite-node": "vite-node.mjs" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/vitest": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-1.2.2.tgz", + "integrity": "sha512-d5Ouvrnms3GD9USIK36KG8OZ5bEvKEkITFtnGv56HFaSlbItJuYr7hv2Lkn903+AvRAgSixiamozUVfORUekjw==", + "dev": true, + "dependencies": { + "@vitest/expect": "1.2.2", + "@vitest/runner": "1.2.2", + "@vitest/snapshot": "1.2.2", + "@vitest/spy": "1.2.2", + "@vitest/utils": "1.2.2", + "acorn-walk": "^8.3.2", + "cac": "^6.7.14", + "chai": "^4.3.10", + "debug": "^4.3.4", + "execa": "^8.0.1", + "local-pkg": "^0.5.0", + "magic-string": "^0.30.5", + "pathe": "^1.1.1", + "picocolors": "^1.0.0", + "std-env": "^3.5.0", + "strip-literal": "^1.3.0", + "tinybench": "^2.5.1", + "tinypool": "^0.8.2", + "vite": "^5.0.0", + "vite-node": "1.2.2", + "why-is-node-running": "^2.2.2" + }, + "bin": { + "vitest": "vitest.mjs" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "@edge-runtime/vm": "*", + "@types/node": "^18.0.0 || >=20.0.0", + "@vitest/browser": "^1.0.0", + "@vitest/ui": "^1.0.0", + "happy-dom": "*", + "jsdom": "*" + }, + "peerDependenciesMeta": { + "@edge-runtime/vm": { + "optional": true + }, + "@types/node": { + "optional": true + }, + "@vitest/browser": { + "optional": true + }, + "@vitest/ui": { + "optional": true + }, + "happy-dom": { + "optional": true + }, + "jsdom": { + "optional": true + } + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/why-is-node-running": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.2.2.tgz", + "integrity": "sha512-6tSwToZxTOcotxHeA+qGCq1mVzKR3CwcJGmVcY+QE8SHy6TnpFnh8PAvPNHYr7EcuVeG0QSMxtYCuO1ta/G/oA==", + "dev": true, + "dependencies": { + "siginfo": "^2.0.0", + "stackback": "0.0.2" + }, + "bin": { + "why-is-node-running": "cli.js" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..2c0d7f1 --- /dev/null +++ b/package.json @@ -0,0 +1,46 @@ +{ + "name": "@kin-lang/core", + "version": "0.0.0", + "description": "Kin Programming Language: write computer programs in Kinyarwanda.", + "main": "/src/index.ts", + "author": "MURANGWA Pacifique", + "license": "Apache-2.0", + "homepage": "https://github.com/kin-lang/kin#readme", + "repository": { + "type": "git", + "url": "git+https://github.com/kin-lang/kin.git" + }, + "bugs": { + "url": "https://github.com/kin-lang/kin/issues" + }, + "scripts": { + "format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"", + "lint": "eslint \"{src,test}/**/*.ts\" --fix", + "build": "tsc", + "test": "vitest --no-watch", + "test:watch": "vitest --watch", + "test:cov": "vitest --coverage", + "prepare": "husky" + }, + "keywords": [ + "kin", + "language", + "kinyarwanda", + "interpreter" + ], + "devDependencies": { + "@types/node": "^20.11.9", + "@typescript-eslint/eslint-plugin": "^6.19.1", + "@typescript-eslint/parser": "^6.19.1", + "@vitest/coverage-v8": "^1.2.2", + "eslint": "^8.56.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-prettier": "^5.1.3", + "eslint-plugin-vitest": "^0.3.20", + "husky": "^9.0.6", + "prettier": "^3.2.4", + "typescript": "^5.3.3", + "vitest": "^1.2.2", + "why-is-node-running": "^2.2.2" + } +} diff --git a/reserved_keywords.md b/reserved_keywords.md deleted file mode 100644 index abcc324..0000000 --- a/reserved_keywords.md +++ /dev/null @@ -1,30 +0,0 @@ -# Kin - -Kin is a DSL (Domain Specific Language), Dynamically Typed and high-level programming language.
-`It is designed to allow people write computer programs in Kinyarwanda (Native language for Rwandans).`
- -## List of reserved keywords in Kin - -- ubusa (null) -- niba (if) -- nibyo (true) -- sibyo (false) -- nanone_niba (else if) -- umubare (number) -- umubare_wibice (float) -- ijambo (string) -- niba_byanze (else) -- subiramo (repeat) -- tanga (return) -- porogaramu_ntoya (function) -- tangaza_amakuru (print) -- injiza_amakuru (read data from user) -- komeza (continue) -- hagarara (break) -- ubwoko (type) -- reka (let) -- soma_inyandiko (soma_inyandiko: open a file) -- andika_inyandiko (andika_inyandiko: write to a file) -- vugurura_inyandiko (vugurura_inyandiko: append data to file) -- kin_hagarara (kin_hagarara: exiting kin program) -- sisitemu (system : executing system's commands) diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..bba49b6 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,15 @@ + +{ + "compilerOptions": { + "target": "ESNext", + "module": "NodeNext", + "moduleResolution": "NodeNext", + "declaration": true, + "outDir": "dist", + "rootDir": "src", + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "strict": true, + "skipLibCheck": true + } +} \ No newline at end of file From 9c341dc362b09e1a0c1060c48428eb4d664a94d8 Mon Sep 17 00:00:00 2001 From: MURANGWA Pacifique Date: Mon, 29 Jan 2024 11:05:52 +0200 Subject: [PATCH 15/16] ft: testing codes on PR workflow --- .github/{pr-test.yml => test-pr.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{pr-test.yml => test-pr.yml} (100%) diff --git a/.github/pr-test.yml b/.github/test-pr.yml similarity index 100% rename from .github/pr-test.yml rename to .github/test-pr.yml From f254ba34043e01a033ea2615a1e4197ab061190a Mon Sep 17 00:00:00 2001 From: MURANGWA Pacifique Date: Mon, 29 Jan 2024 11:06:42 +0200 Subject: [PATCH 16/16] fix: coding style violation errors --- SECURITY.md | 3 +-- tsconfig.json | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/SECURITY.md b/SECURITY.md index 62492cf..b2700c7 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -7,8 +7,7 @@ If you believe you've found a security vulnerability in our programming language ### How to Report a Vulnerability -Please report security vulnerabilities to us via email at: pacifiquemurangwa001@gmail.com - +Please report security vulnerabilities to us via email at: When reporting security issues, kindly provide the following information: diff --git a/tsconfig.json b/tsconfig.json index bba49b6..89fc597 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,4 +1,3 @@ - { "compilerOptions": { "target": "ESNext",