Connect, collaborate, and grow with a community of TypeScript developers
adds solution runner (#1009)
Dimitri Mitropoulos84894947d6a7
diff --git a/challenges/blank/tsconfig.json b/challenges/blank/tsconfig.jsonindex 875cb600..d8de5a26 100644--- a/challenges/blank/tsconfig.json+++ b/challenges/blank/tsconfig.json@@ -1,3 +1,7 @@{- "compilerOptions": {}+ "compilerOptions": {+ "strict": true,+ "exactOptionalPropertyTypes": true,+ "noUncheckedIndexedAccess": true+ }}diff --git a/challenges/default-generic-arguments/tests.ts b/challenges/default-generic-arguments/tests.tsindex f2acebf6..77e70737 100644--- a/challenges/default-generic-arguments/tests.ts+++ b/challenges/default-generic-arguments/tests.ts@@ -29,5 +29,3 @@ type test_TSConfig_boolean = Expect<Equal<TSConfig<{ strict: boolean }>,{ strict: boolean }>>;--diff --git a/challenges/default-generic-arguments/tsconfig.json b/challenges/default-generic-arguments/tsconfig.jsonindex 875cb600..d8de5a26 100644--- a/challenges/default-generic-arguments/tsconfig.json+++ b/challenges/default-generic-arguments/tsconfig.json@@ -1,3 +1,7 @@{- "compilerOptions": {}+ "compilerOptions": {+ "strict": true,+ "exactOptionalPropertyTypes": true,+ "noUncheckedIndexedAccess": true+ }}diff --git a/challenges/generic-function-arguments/tsconfig.json b/challenges/generic-function-arguments/tsconfig.jsonindex 875cb600..d8de5a26 100644--- a/challenges/generic-function-arguments/tsconfig.json+++ b/challenges/generic-function-arguments/tsconfig.json@@ -1,3 +1,7 @@{- "compilerOptions": {}+ "compilerOptions": {+ "strict": true,+ "exactOptionalPropertyTypes": true,+ "noUncheckedIndexedAccess": true+ }}diff --git a/challenges/generic-type-arguments/solutions/1.ts b/challenges/generic-type-arguments/solutions/1.tsindex 13d20d5e..e62a894b 100644--- a/challenges/generic-type-arguments/solutions/1.ts+++ b/challenges/generic-type-arguments/solutions/1.ts@@ -1,6 +1,12 @@-type CapreseSalad = GroceryItem<'Caprese Salad', 14.99, true>;-type GroceryStore<Name, City> = {name: Name;city: City;};++type GroceryItem<Name, Price, InStock> = {+ name: Name;+ price: Price;+ inStock: InStock;+};++type CapreseSalad = GroceryItem<'Caprese Salad', 14.99, true>;diff --git a/challenges/generic-type-arguments/tsconfig.json b/challenges/generic-type-arguments/tsconfig.jsonindex 875cb600..d8de5a26 100644--- a/challenges/generic-type-arguments/tsconfig.json+++ b/challenges/generic-type-arguments/tsconfig.json@@ -1,3 +1,7 @@{- "compilerOptions": {}+ "compilerOptions": {+ "strict": true,+ "exactOptionalPropertyTypes": true,+ "noUncheckedIndexedAccess": true+ }}diff --git a/challenges/generic-type-arguments/user.ts b/challenges/generic-type-arguments/user.tsindex 245354f2..ca3ecc81 100644--- a/challenges/generic-type-arguments/user.ts+++ b/challenges/generic-type-arguments/user.ts@@ -1,3 +1,5 @@-type CapreseSalad = unknown;-type GroceryStore = unknown;++type GroceryItem = unknown;++type CapreseSalad = unknown;diff --git a/challenges/generic-type-constraints/tsconfig.json b/challenges/generic-type-constraints/tsconfig.jsonindex 875cb600..d8de5a26 100644--- a/challenges/generic-type-constraints/tsconfig.json+++ b/challenges/generic-type-constraints/tsconfig.json@@ -1,3 +1,7 @@{- "compilerOptions": {}+ "compilerOptions": {+ "strict": true,+ "exactOptionalPropertyTypes": true,+ "noUncheckedIndexedAccess": true+ }}diff --git a/challenges/index-signatures/tsconfig.json b/challenges/index-signatures/tsconfig.jsonindex 875cb600..d8de5a26 100644--- a/challenges/index-signatures/tsconfig.json+++ b/challenges/index-signatures/tsconfig.json@@ -1,3 +1,7 @@{- "compilerOptions": {}+ "compilerOptions": {+ "strict": true,+ "exactOptionalPropertyTypes": true,+ "noUncheckedIndexedAccess": true+ }}diff --git a/challenges/indexed-types/solutions/1.ts b/challenges/indexed-types/solutions/1.tsindex a02e7634..88ca8dff 100644--- a/challenges/indexed-types/solutions/1.ts+++ b/challenges/indexed-types/solutions/1.ts@@ -1,2 +1,2 @@-type TheCoolestCarEverMade = Cars[5];+type TheCoolestCarEverMade = Cars[4];type TruckDriverBonusGiver = Donations['Taylor Swift'];diff --git a/challenges/indexed-types/tsconfig.json b/challenges/indexed-types/tsconfig.jsonindex 875cb600..d8de5a26 100644--- a/challenges/indexed-types/tsconfig.json+++ b/challenges/indexed-types/tsconfig.json@@ -1,3 +1,7 @@{- "compilerOptions": {}+ "compilerOptions": {+ "strict": true,+ "exactOptionalPropertyTypes": true,+ "noUncheckedIndexedAccess": true+ }}diff --git a/challenges/keyof/tsconfig.json b/challenges/keyof/tsconfig.jsonindex 875cb600..d8de5a26 100644--- a/challenges/keyof/tsconfig.json+++ b/challenges/keyof/tsconfig.json@@ -1,3 +1,7 @@{- "compilerOptions": {}+ "compilerOptions": {+ "strict": true,+ "exactOptionalPropertyTypes": true,+ "noUncheckedIndexedAccess": true+ }}diff --git a/challenges/literal-types/tests.ts b/challenges/literal-types/tests.tsindex 4eaf7b94..36a0b330 100644--- a/challenges/literal-types/tests.ts+++ b/challenges/literal-types/tests.ts@@ -52,10 +52,10 @@ type test_almostPi = Expect<Equal<type test_literalObject = Expect<Equal<typeof literalObject,{- origin: "far across the omniverse",- command: "fetch",- item: "the universe's ultimate cup of coffee (black)",- time: "five Earth minutes"+ origin: string,+ command: string,+ item: string,+ time: string}>>;diff --git a/challenges/literal-types/tsconfig.json b/challenges/literal-types/tsconfig.jsonindex 875cb600..d8de5a26 100644--- a/challenges/literal-types/tsconfig.json+++ b/challenges/literal-types/tsconfig.json@@ -1,3 +1,7 @@{- "compilerOptions": {}+ "compilerOptions": {+ "strict": true,+ "exactOptionalPropertyTypes": true,+ "noUncheckedIndexedAccess": true+ }}diff --git a/challenges/mapped-object-types/tests.ts b/challenges/mapped-object-types/tests.tsindex 88555bf7..a09f5474 100644--- a/challenges/mapped-object-types/tests.ts+++ b/challenges/mapped-object-types/tests.ts@@ -12,53 +12,101 @@ type MoviesByGenre = {thriller: 'The Silence of the Lambs';};-type test_MoviesInfoByGenre = Expect<Equal<+const test_MoviesInfoByGenre: MovieInfoByGenre<MoviesByGenre> = {+ action: {+ name: 'Die Hard',+ year: 1988,+ director: 'John McTiernan',+ },+ comedy: {+ name: 'Groundhog Day',+ year: 1993,+ director: 'Harold Ramis',+ },+ sciFi: {+ name: 'Blade Runner',+ year: 1982,+ director: 'Ridley Scott',+ },+ fantasy: {+ name: 'The Lord of the Rings: The Fellowship of the Ring',+ year: 2001,+ director: 'Peter Jackson',+ },+ drama: {+ name: 'The Shawshank Redemption',+ year: 1994,+ director: 'Frank Darabont',+ },+ horror: {+ name: 'The Shining',+ year: 1980,+ director: 'Stanley Kubrick',+ },+ romance: {+ name: 'Titanic',+ year: 1997,+ director: 'James Cameron',+ },+ animation: {+ name: 'Toy Story',+ year: 1995,+ director: 'John Lasseter',+ },+ thriller: {+ name: 'The Silence of the Lambs',+ year: 1991,+ director: 'Jonathan Demme',+ },+};++type test_MovieInfoByGenre = Expect<Equal<+ MovieInfoByGenre<MoviesByGenre>,{action: {- name: 'Die Hard',- year: 1988,- director: 'John McTiernan',- },+ name: string;+ year: number;+ director: string;+ };comedy: {- name: 'Groundhog Day',- year: 1993,- director: 'Harold Ramis',- },+ name: string;+ year: number;+ director: string;+ };sciFi: {- name: 'Blade Runner',- year: 1982,- director: 'Ridley Scott',- },+ name: string;+ year: number;+ director: string;+ };fantasy: {- name: 'The Lord of the Rings: The Fellowship of the Ring',- year: 2001,- director: 'Peter Jackson',- },+ name: string;+ year: number;+ director: string;+ };drama: {- name: 'The Shawshank Redemption',- year: 1994,- director: 'Frank Darabont',- },+ name: string;+ year: number;+ director: string;+ };horror: {- name: 'The Shining',- year: 1980,- director: 'Stanley Kubrick',- },+ name: string;+ year: number;+ director: string;+ };romance: {- name: 'Titanic',- year: 1997,- director: 'James Cameron',- },+ name: string;+ year: number;+ director: string;+ };animation: {- name: 'Toy Story',- year: 1995,- director: 'John Lasseter',- },+ name: string;+ year: number;+ director: string;+ };thriller: {- name: 'The Silence of the Lambs',- year: 1991,- director: 'Jonathan Demme',- },- },- MovieInfoByGenre<MoviesByGenre>->>+ name: string;+ year: number;+ director: string;+ };+ }+>>;diff --git a/challenges/mapped-object-types/tsconfig.json b/challenges/mapped-object-types/tsconfig.jsonindex 875cb600..d8de5a26 100644--- a/challenges/mapped-object-types/tsconfig.json+++ b/challenges/mapped-object-types/tsconfig.json@@ -1,3 +1,7 @@{- "compilerOptions": {}+ "compilerOptions": {+ "strict": true,+ "exactOptionalPropertyTypes": true,+ "noUncheckedIndexedAccess": true+ }}diff --git a/challenges/pick/solutions/1.ts b/challenges/pick/solutions/1.tsindex fb92be39..ee0a7c5d 100644--- a/challenges/pick/solutions/1.ts+++ b/challenges/pick/solutions/1.ts@@ -3,6 +3,6 @@** This solution is verbatim from the ES5 builtins.*/-type Pick<T, K extends keyof T> = {+type MyPick<T, K extends keyof T> = {[P in K]: T[P];};diff --git a/challenges/pick/tsconfig.json b/challenges/pick/tsconfig.jsonindex 875cb600..d8de5a26 100644--- a/challenges/pick/tsconfig.json+++ b/challenges/pick/tsconfig.json@@ -1,3 +1,7 @@{- "compilerOptions": {}+ "compilerOptions": {+ "strict": true,+ "exactOptionalPropertyTypes": true,+ "noUncheckedIndexedAccess": true+ }}diff --git a/challenges/primitive-data-types/solutions/1.ts b/challenges/primitive-data-types/solutions/1.tsindex e0fd97e9..d9967af4 100644--- a/challenges/primitive-data-types/solutions/1.ts+++ b/challenges/primitive-data-types/solutions/1.ts@@ -1,23 +1,23 @@-const playSong = (name: string, year: number) => {- return `${name} was released in the year ${year}`;+const playSong = (artistName: string, year: number) => {+ return `${artistName} was released in the year ${year}`;};-const name: string = 'Frank Zappa';+const artistName: string = 'Frank Zappa';const age: number = 52;interface Musician {- name: string;+ artistName: string;age: number;deceased: boolean;}-const musicianInfo = ({ name, age, deceased }: Musician) => {- return `${name}, age ${age}${deceased ? ' (deceased)' : ''}`;+const musicianInfo = ({ artistName, age, deceased }: Musician) => {+ return `${artistName}, age ${age}${deceased ? ' (deceased)' : ''}`;};musicianInfo({- name,+ artistName,age,deceased: true,});diff --git a/challenges/primitive-data-types/tests.ts b/challenges/primitive-data-types/tests.tsindex 99c21e3d..eb03e4bb 100644--- a/challenges/primitive-data-types/tests.ts+++ b/challenges/primitive-data-types/tests.ts@@ -1,8 +1,58 @@-type test_age = Expect<NotLiteral<number, typeof age>>;-type test_artistName = Expect<NotLiteral<string, typeof artistName>>;--/** this is just a helper type to sus out literals */-type NotLiteral<T, U> =- 1 extends (T extends U ? U extends T ? 1 : 2 : 3)- ? true- : false+import { Expect, Equal, Extends } from 'type-testing';++/*/////++Don't worry if you don't quite understand how these types work.++Just do your best to add type annotations wherever you can.++And if nothing else, there's no shame in looking at the solutions at this point. You're just getting warmed up!++/////*/++// this is correct! :)+playSong('Demiurge', 2012);++// @ts-expect-error this is incorrect because the first argument should not be a number+playSong(8675309, 1982);++// @ts-expect-error this is incorrect because the second argument should not be a string+playSong('Blood and Thunder', '2006');++type test_playSong_Parameters = Expect<Equal<+ Parameters<typeof playSong>,+ [string, number]+>>;++type test_playSong_ReturnType = Expect<Equal<+ ReturnType<typeof playSong>,+ string+>>;++type test_age = Expect<Extends<number, typeof age>>;+type test_artistName = Expect<Extends<string, typeof artistName>>;++type test_Musician_artistName = Expect<Equal<+ Musician['artistName'],+ string+>>;++type test_Musician_age = Expect<Equal<+ Musician['age'],+ number+>>;++type test_Musician_deceased = Expect<Equal<+ Musician['deceased'],+ boolean+>>;++type test_musicianInfo_Parameters = Expect<Equal<+ Parameters<typeof musicianInfo>[0],+ Musician+>>;++type test_musicianInfo_ReturnType = Expect<Equal<+ ReturnType<typeof musicianInfo>,+ string+>>;\ No newline at end of filediff --git a/challenges/primitive-data-types/tsconfig.json b/challenges/primitive-data-types/tsconfig.jsonindex 875cb600..d8de5a26 100644--- a/challenges/primitive-data-types/tsconfig.json+++ b/challenges/primitive-data-types/tsconfig.json@@ -1,3 +1,7 @@{- "compilerOptions": {}+ "compilerOptions": {+ "strict": true,+ "exactOptionalPropertyTypes": true,+ "noUncheckedIndexedAccess": true+ }}diff --git a/challenges/primitive-data-types/user.ts b/challenges/primitive-data-types/user.tsindex f1ade208..f479cb10 100644--- a/challenges/primitive-data-types/user.ts+++ b/challenges/primitive-data-types/user.ts@@ -1,5 +1,5 @@-const playSong = (name, year) => {- return `${name} was released in the year ${year}`;+const playSong = (artistName, year) => {+ return `${artistName} was released in the year ${year}`;};const artistName = 'Frank Zappa';@@ -7,16 +7,17 @@ const artistName = 'Frank Zappa';const age = 52;interface Musician {- name: string;- age: number;- deceased: boolean;+ artistName: string;++ // add the rest}-const musicianInfo = ({ name, age, deceased }: Musician) => {- return `${name}, age ${age}${deceased ? ' (deceased)' : ''}`;+const musicianInfo = ({ artistName, age, deceased }) => {+ return `${artistName}, age ${age}${deceased ? ' (deceased)' : ''}`;};musicianInfo({- name: artistName,+ artistName,age,+ deceased: true,});diff --git a/challenges/type-aliases/tests.ts b/challenges/type-aliases/tests.tsindex dee4867d..11ecf51b 100644--- a/challenges/type-aliases/tests.ts+++ b/challenges/type-aliases/tests.ts@@ -1,3 +1,5 @@+import { Expect, Equal } from 'type-testing';+type test_Name = Expect<Equal<Name, string>>;type test_Year = Expect<Equal<Year, number>>;type test_Count = Expect<Equal<Count, number>>;diff --git a/challenges/type-aliases/tsconfig.json b/challenges/type-aliases/tsconfig.jsonindex 875cb600..d8de5a26 100644--- a/challenges/type-aliases/tsconfig.json+++ b/challenges/type-aliases/tsconfig.json@@ -1,3 +1,7 @@{- "compilerOptions": {}+ "compilerOptions": {+ "strict": true,+ "exactOptionalPropertyTypes": true,+ "noUncheckedIndexedAccess": true+ }}diff --git a/challenges/type-unions/tests.ts b/challenges/type-unions/tests.tsindex d044a076..8c517625 100644--- a/challenges/type-unions/tests.ts+++ b/challenges/type-unions/tests.ts@@ -1,63 +1,67 @@-// import { Expect } from 'type-testing';-// import { expect } from 'jest';-//-// const getDistanceInMeters = (distance: Distance) => {-// switch (distance.unit) {-// case 'miles':-// return {-// unit: 'meters',-// value: distance.value / 1609.34,-// } satisfies Meters;-//-// case 'meters':-// return {-// unit: 'meters',-// value: distance.value,-// } satisfies Meters;-//-// case 'feet':-// return {-// unit: 'meters',-// value: distance.value * 3.28084,-// } satisfies Meters;-//-// default:-// // @ts-expect-error (in production codebases, we'd assert an unreachable case here but that's beyond the scope of this lesson)-// throw new Error(`unrecognized unit: ${distance.unit}`)-// }-// }-//-// const lowMarsOrbit = {-// unit: 'meters',-// value: 300_000-// } satisfies Meters;-//-// const mediumMarsOrbit = {-// unit: 'meters',-// value: 2_000_000-// } satisfies Meters;-//-// const highMarsOrbit = {-// unit: 'meters',-// value: 5_000_000-// } satisfies Meters;-//-//-// expect(getDistanceInMeters({-// unit: 'miles',-// value: 186.41182099494205,-// })).toEqual(lowMarsOrbit);-//-// expect(getDistanceInMeters({-// unit: 'meters',-// value: 2_000_000,-// })).toEqual(mediumMarsOrbit);-//-// expect(getDistanceInMeters({-// unit: 'feet',-// value: 1523999.9512320017,-// })).toEqual(highMarsOrbit);-//+import { Expect, Extends } from 'type-testing';++/** temporary */+const expect = <T>(a: T) => ({+ toEqual: (b: T) => a === b+});++const getDistanceInMeters = (distance: Distance) => {+ switch (distance.unit) {+ case 'miles':+ return {+ unit: 'meters',+ value: distance.value / 1609.34,+ } satisfies Meters;++ case 'meters':+ return {+ unit: 'meters',+ value: distance.value,+ } satisfies Meters;++ case 'feet':+ return {+ unit: 'meters',+ value: distance.value * 3.28084,+ } satisfies Meters;++ default:+ // @ts-expect-error (in production codebases, we'd assert an unreachable case here but that's beyond the scope of this lesson)+ throw new Error(`unrecognized unit: ${distance.unit}`)+ }+}++const lowMarsOrbit = {+ unit: 'meters',+ value: 300_000+} satisfies Meters;++const mediumMarsOrbit = {+ unit: 'meters',+ value: 2_000_000+} satisfies Meters;++const highMarsOrbit = {+ unit: 'meters',+ value: 5_000_000+} satisfies Meters;+++expect(getDistanceInMeters({+ unit: 'miles',+ value: 186.41182099494205,+})).toEqual(lowMarsOrbit);++expect(getDistanceInMeters({+ unit: 'meters',+ value: 2_000_000,+})).toEqual(mediumMarsOrbit);++expect(getDistanceInMeters({+ unit: 'feet',+ value: 1523999.9512320017,+})).toEqual(highMarsOrbit);+/////////////////////////////////////////////////// Part 2@@ -103,8 +107,6 @@ const positionElement = (position: Position): AbsolutePosition => {}}-type Extends<T, U> = T extends U ? true : false;-type test_topLeft = Expect<Extends<'topLeft', Position>>;type test_top = Expect<Extends<'top', Position>>;type test_topRight = Expect<Extends<'topRight', Position>>;diff --git a/challenges/type-unions/tsconfig.json b/challenges/type-unions/tsconfig.jsonindex 875cb600..d8de5a26 100644--- a/challenges/type-unions/tsconfig.json+++ b/challenges/type-unions/tsconfig.json@@ -1,3 +1,7 @@{- "compilerOptions": {}+ "compilerOptions": {+ "strict": true,+ "exactOptionalPropertyTypes": true,+ "noUncheckedIndexedAccess": true+ }}diff --git a/challenges/typeof/tests.ts b/challenges/typeof/tests.tsindex 6cb9c027..9de59207 100644--- a/challenges/typeof/tests.ts+++ b/challenges/typeof/tests.ts@@ -5,7 +5,7 @@ const width = 700;type test_Width = Expect<Equal<Width,- number+ 700>>;const margin = {@@ -17,7 +17,7 @@ const margin = {type test_Margin = Expect<Equal<Margin,- { top: 20, right: 30, bottom: 40, left: 50 }+ { top: number, right: number, bottom: number, left: number }>>;const d3ChartConfig = {@@ -33,12 +33,12 @@ const d3ChartConfig = {],xScale: {type: 'band',- domain: data => data.map(d => d.category),+ domain: [0, 100],range: [0, width - margin.right - margin.left],},yScale: {type: 'linear',- domain: [0, (data: number[]) => Math.max(data.length, data[0])],+ domain: [0, 100],range: [height - margin.bottom, margin.top],},xAxis: {@@ -63,8 +63,8 @@ type test_YScale = Expect<Equal<YScale,{type: string;- domain: (number | ((data: number[]) => number))[],- range: number[],+ domain: number[];+ range: number[];}>>;@@ -72,18 +72,18 @@ type test_d3ChartConfig = Expect<Equal<D3ChartConfig,{width: number;- height: Width;+ height: number;margin: Margin;data: Data;xScale: {type: string;- domain: string[];- range: [number, number];+ domain: number[];+ range: number[];};yScale: {type: string;- domain: [number, number];- range: [number, number];+ domain: number[];+ range: number[];};xAxis: {label: string;@@ -95,7 +95,6 @@ type test_d3ChartConfig = Expect<Equal<};bar: {fill: string;- width: number;};}>>;diff --git a/challenges/typeof/tsconfig.json b/challenges/typeof/tsconfig.jsonindex 875cb600..d8de5a26 100644--- a/challenges/typeof/tsconfig.json+++ b/challenges/typeof/tsconfig.json@@ -1,3 +1,7 @@{- "compilerOptions": {}+ "compilerOptions": {+ "strict": true,+ "exactOptionalPropertyTypes": true,+ "noUncheckedIndexedAccess": true+ }}diff --git a/challenges/validate.ts b/challenges/validate.tsindex 1653d557..4ab5c103 100644--- a/challenges/validate.ts+++ b/challenges/validate.ts@@ -1,30 +1,87 @@import { readdirSync, readFileSync, statSync } from 'fs';import { join } from 'path';import Ajv from 'ajv';+import {+ CompilerHost,+ CompilerOptions,+ createProgram,+ createSourceFile,+ flattenDiagnosticMessageText,+ formatDiagnosticsWithColorAndContext,+ getPreEmitDiagnostics,+ readConfigFile,+ ResolvedModuleWithFailedLookupLocations,+ resolveModuleName,+ ScriptKind,+ ScriptTarget,+ sys,+} from 'typescript';++import picocolors from 'picocolors';++type LogLevel = 'silent' | 'error' | 'info' | 'trace' | 'debug';+const LOG_LEVEL = 'info';+const shouldLog = (level: LogLevel) => {+ const levels: Record<LogLevel, number> = {+ silent: 0,+ error: 4,+ info: 7,+ trace: 8,+ debug: 9,+ };+ const currentLevel = levels[LOG_LEVEL];+ const requestedLevel = levels[level];+ return currentLevel >= requestedLevel;+};+const log = (level: LogLevel) => (shouldLog(level) ? console.log : () => {});+const error = log('error');+const info = log('info');+const debug = log('debug');+const trace = log('trace');++/** you can add challenge ids here to focus them in the test output */+const focusTests: string[] = [+ // "default-generic-arguments",+ // "typeof",+];++const isFocused = (id: string) => {+ if (focusTests.length === 0) {+ // no tests are included in the `focusTests`, so return true because then, in a sense, all tests are focused+ return true;+ }+ return focusTests.includes(id);+};/*this script does a few checks:1. makes sure each directory has a metadata.json file+1. makes sure each directory has a tsconfig.json file+1. makes sure each directory has a solutions directory with at least one solution file1. runs JSONSchema validation on all metadata.json files1. make sure the directory name matches the id contained within it's metadata.json file- (bonus: this ensures that the id is unique since you can't have two sibling directories with the same name)1. make sure the prerequisites are valid ids1. make sure the prerequisites don't contain the current++Finally, as an almost entirely different task: this script runs each solution and tests pair (for each challenge) through an in-memory TypeScript compiler.*/-const dir = __dirname;+const repoRoot = join(__dirname, '..');+const challengesDir = `${repoRoot}/challenges/`;-const getChallengeIds = () => {- return readdirSync(dir)- .filter((entry) => entry !== 'blank')- .filter((entry) => statSync(join(dir, entry)).isDirectory())- .filter((entry) => statSync(join(dir, entry, 'metadata.json')).isFile());+export const getChallengeIds = () => {+ return readdirSync(challengesDir)+ .filter((id) => id !== 'blank')+ .filter((id) => statSync(join(challengesDir, id)).isDirectory())+ .filter((id) => statSync(join(challengesDir, id, 'metadata.json')).isFile())+ .filter((id) => statSync(join(challengesDir, id, 'tsconfig.json')).isFile());};const getMetadata = (id: string) => {- const metadataFilePath = join(dir, id, 'metadata.json');- const metadataFile = readFileSync(metadataFilePath).toString();+ const metadataFilePath = join(challengesDir, id, 'metadata.json');+ const metadataFile = readFileSync(metadataFilePath, 'utf8');const metadata = JSON.parse(metadataFile) as {id: string;prerequisites: string[];@@ -38,7 +95,7 @@ const getMetadata = (id: string) => {const validateMetadataSchema = (ids: string[]) => {const ajv = new Ajv();- const schema = JSON.parse(readFileSync(join(dir, 'metadata.schema.json')).toString());+ const schema = JSON.parse(readFileSync(join(challengesDir, 'metadata.schema.json'), 'utf8'));const validate = ajv.compile(schema);@@ -91,4 +148,142 @@ const validateMetadataFiles = () => {challengeIds.forEach(validatePrerequisiteIds);};-validateMetadataFiles();+const validateTests = () => {+ getChallengeIds()+ .filter((id) => {+ const path = join(challengesDir, id, 'solutions');+ statSync(path).isDirectory();+ readdirSync(path).forEach((file) => {+ if (!/^\d+\.ts$/.test(file)) {+ throw new Error(+ `the solution file name: ${join(path, file)} is invalid: it must only be numeric.`,+ );+ }+ });+ return true;+ })+ .forEach((id) => {+ if (!isFocused(id)) {+ return;+ }++ const compilerOptions = readConfigFile(join(challengesDir, id, 'tsconfig.json'), sys.readFile)+ .config.compilerOptions as CompilerOptions;++ const testsSource = readFileSync(join(challengesDir, id, 'tests.ts'), 'utf8');++ readdirSync(join(challengesDir, id, 'solutions')).forEach((file) => {+ const solutionPath = join(challengesDir, id, 'solutions', file);+ const solutionSource = readFileSync(solutionPath, 'utf8');++ // our challenge test file+ const sourceFile = createSourceFile(+ `${repoRoot}/in-memory/${file}`,+ // note: putting the `solutionSource` first avoids "Block-scoped variable used before its declaration" errors at the expense of the imports (which are in `testsSource`) not being at the top of the file. There's no technical reason this is a problem at this moment, but just something to be aware of because it's a little weird.+ `${solutionSource}\n${testsSource}\n`,+ ScriptTarget.Latest,+ );++ const fileExists = (fileName: string) => {+ const answer = sys.fileExists(fileName);+ debug(`fileExists: ${answer}`, fileName);+ return answer;+ };++ const readFile = (fileName: string) => {+ const answer = sys.readFile(fileName);+ debug(`readFile`, fileName, answer);+ return answer;+ };++ const getNewLine = () => '\n';+ const getCurrentDirectory = () => '/';++ const compilerHost = {+ fileExists,+ readFile,+ resolveModuleNameLiterals: (+ moduleNames,+ containingFile,+ redirectedReference,+ options,+ containingSourceFile,+ reusedNames,+ ) => {+ trace(+ 'rMNL',+ moduleNames.map((moduleName) => moduleName.text),+ containingFile,+ );++ return moduleNames.map((moduleName): ResolvedModuleWithFailedLookupLocations => {+ // try to use standard resolution+ const result = resolveModuleName(moduleName.text, containingFile, compilerOptions, {+ fileExists,+ readFile,+ });+ if (result.resolvedModule) {+ trace('rMNL resolving normally', result.resolvedModule);+ return result;+ } else {+ trace('rMNL failed to resolve normally', result);+ }++ trace('rMNL failed to resolve', { moduleName });+ throw new Error('failed');+ });+ },+ getSourceFile: (fileName) => {+ debug('getSourceFile', fileName);++ if (fileName.endsWith(sourceFile.fileName)) {+ // we are reading from our in-memory file that doesn't actually exist so in this case we need to fake it+ return sourceFile;+ }++ const standardTypeDefs = readFileSync(`${fileName}`, 'utf8');+ return createSourceFile(+ fileName,+ standardTypeDefs,+ ScriptTarget.ESNext,+ true,+ ScriptKind.TS,+ );+ },++ getDefaultLibFileName: () => `${repoRoot}/node_modules/typescript/lib/lib.d.ts`,+ writeFile: () => {+ throw new Error('Not implemented');+ },+ getCurrentDirectory,+ getCanonicalFileName: (fileName) => fileName.toLowerCase(),+ getNewLine,+ useCaseSensitiveFileNames: () => false,+ } satisfies CompilerHost;++ const program = createProgram([sourceFile.fileName], compilerOptions, compilerHost);++ const errors = getPreEmitDiagnostics(program, sourceFile);+ const formattedErrors = formatDiagnosticsWithColorAndContext(errors, {+ getCanonicalFileName: () => sourceFile.fileName,+ getNewLine,+ getCurrentDirectory,+ });++ const logLine = `challenges/${id}/solutions/${file}`;+ if (errors.length > 0) {+ info(picocolors.red(`✗ ${logLine}`));+ info(formattedErrors);+ } else {+ info(picocolors.green(`✓ ${logLine}`));+ }+ });+ });+};++const validate = () => {+ validateMetadataFiles();+ validateTests();+};++validate();diff --git a/cspell.json b/cspell.jsonindex fef3803f..ac5a31cc 100644--- a/cspell.json+++ b/cspell.json@@ -13,6 +13,7 @@"doomscrolling","Ferarri","footgun",+ "importscripts","Jolie","keyof","Lambo",@@ -24,6 +25,7 @@"multicursor","Odinson","omniverse",+ "picocolors","Pikachu","prolly","Radiohead",diff --git a/package.json b/package.jsonindex cdb72e4b..f548d7c6 100644--- a/package.json+++ b/package.json@@ -7,6 +7,7 @@"checks": "turbo format lint typecheck --continue","checks:fix": "turbo format:fix lint:fix typecheck --continue --force","clean": "turbo clean && rm -rf node_modules && rm -rf .turbo",+ "check:solutions": "tsx ./challenges/validate.ts","db:push": "turbo db:push","db:reset": "turbo db:reset","db:seed": "turbo db:seed",@@ -32,10 +33,14 @@"ajv": "^8.12.0","cspell": "^7.3.8","markdownlint-cli2": "^0.10.0",+ "picocolors": "^1.0.0","prettier": "^3.0.2","prettier-plugin-tailwindcss": "^0.4.1","turbo": "^1.10.16",- "typescript": "^5.1.6"+ "tsx": "^3.14.0",+ "type-testing": "0.2.0",+ "typescript": "^5.1.6",+ "vitest": "^0.34.6"},"packageManager": "[email protected]","pnpm": {diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 5372e0da..5819195d 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -31,18 +31,30 @@ importers:markdownlint-cli2:specifier: ^0.10.0version: 0.10.0+ picocolors:+ specifier: ^1.0.0+ version: 1.0.0prettier:specifier: ^3.0.2version: 3.0.2prettier-plugin-tailwindcss:specifier: ^0.4.1version: 0.4.1([email protected])+ tsx:+ specifier: ^3.14.0+ version: 3.14.0turbo:specifier: ^1.10.16version: 1.10.16+ type-testing:+ specifier: 0.2.0+ version: 0.2.0typescript:specifier: ^5.1.6version: 5.1.6+ vitest:+ specifier: ^0.34.6+ version: 0.34.6apps/admin:dependencies:@@ -1474,6 +1486,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [android]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-rZzb7r22m20S1S7ufIc6DC6W659yxoOrl7sKP1nCYhuvUlnCFHVSbATG4keGUtV8rDz11sRRDbWkvQZpzPaHiw==}engines: {node: '>=12'}@@ -1492,6 +1513,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==}+ engines: {node: '>=12'}+ cpu: [arm]+ os: [android]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-MW+B2O++BkcOfMWmuHXB15/l1i7wXhJFqbJhp82IBOais8RBEQv2vQz/jHrDEHaY2X0QY7Wfw86SBL2PbVOr0g==}engines: {node: '>=12'}@@ -1510,6 +1540,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [android]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-a28X1O//aOfxwJVZVs7ZfM8Tyih2Za4nKJrBwW5Wm4yKsnwBy9aiS/xwpxiiTRttw3EaTg4Srerhcm6z0bu9Wg==}engines: {node: '>=12'}@@ -1528,6 +1567,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [darwin]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-e3doCr6Ecfwd7VzlaQqEPrnbvvPjE9uoTpxG5pyLzr2rI2NMjDHmvY1E5EO81O/e9TUOLLkXA5m6T8lfjK9yAA==}engines: {node: '>=12'}@@ -1546,6 +1594,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [darwin]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-Oup3G/QxBgvvqnXWrBed7xxkFNwAwJVHZcklWyQt7YCAL5bfUkaa6FVWnR78rNQiM8MqqLiT6ZTZSdUFuVIg1w==}engines: {node: '>=12'}@@ -1564,6 +1621,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [freebsd]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-vAP+eYOxlN/Bpo/TZmzEQapNS8W1njECrqkTpNgvXskkkJC2AwOXwZWai/Kc2vEFZUXQttx6UJbj9grqjD/+9Q==}engines: {node: '>=12'}@@ -1582,6 +1648,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [freebsd]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-2zXoBhv4r5pZiyjBKrOdFP4CXOChxXiYD50LRUU+65DkdS5niPFHbboKZd/c81l0ezpw7AQnHeoCy5hFrzzs4g==}engines: {node: '>=12'}@@ -1600,6 +1675,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [linux]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-A47ZmtpIPyERxkSvIv+zLd6kNIOtJH03XA0Hy7jaceRDdQaQVGSDt4mZqpWqJYgDk9rg96aglbF6kCRvPGDSUA==}engines: {node: '>=12'}@@ -1618,6 +1702,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==}+ engines: {node: '>=12'}+ cpu: [arm]+ os: [linux]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-uxdSrpe9wFhz4yBwt2kl2TxS/NWEINYBUFIxQtaEVtglm1eECvsj1vEKI0KX2k2wCe17zDdQ3v+jVxfwVfvvjw==}engines: {node: '>=12'}@@ -1636,6 +1729,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==}+ engines: {node: '>=12'}+ cpu: [ia32]+ os: [linux]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-bZBrLAIX1kpWelV0XemxBZllyRmM6vgFQQG2GdNb+r3Fkp0FOh1NJSvekXDs7jq70k4euu1cryLMfU+mTXlEpw==}engines: {node: '>=12'}@@ -1663,6 +1765,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==}+ engines: {node: '>=12'}+ cpu: [loong64]+ os: [linux]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-sD9EEUoGtVhFjjsauWjflZklTNr57KdQ6xfloO4yH1u7vNQlOfAlhEzbyBKfgbJlW7rwXYBdl5/NcZ+Mg2XhQA==}engines: {node: '>=12'}@@ -1681,6 +1792,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==}+ engines: {node: '>=12'}+ cpu: [mips64el]+ os: [linux]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-X1HSqHUX9D+d0l6/nIh4ZZJ94eQky8d8z6yxAptpZE3FxCWYWvTDd9X9ST84MGZEJx04VYUD/AGgciddwO0b8g==}engines: {node: '>=12'}@@ -1699,6 +1819,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==}+ engines: {node: '>=12'}+ cpu: [ppc64]+ os: [linux]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-97ANpzyNp0GTXCt6SRdIx1ngwncpkV/z453ZuxbnBROCJ5p/55UjhbaG23UdHj88fGWLKPFtMoU4CBacz4j9FA==}engines: {node: '>=12'}@@ -1717,6 +1846,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==}+ engines: {node: '>=12'}+ cpu: [riscv64]+ os: [linux]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-pUvPQLPmbEeJRPjP0DYTC1vjHyhrnCklQmCGYbipkep+oyfTn7GTBJXoPodR7ZS5upmEyc8lzAkn2o29wD786A==}engines: {node: '>=12'}@@ -1735,6 +1873,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==}+ engines: {node: '>=12'}+ cpu: [s390x]+ os: [linux]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-N55Q0mJs3Sl8+utPRPBrL6NLYZKBCLLx0bme/+RbjvMforTGGzFvsRl4xLTZMUBFC1poDzBEPTEu5nxizQ9Nlw==}engines: {node: '>=12'}@@ -1753,6 +1900,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [linux]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-LHSJLit8jCObEQNYkgsDYBh2JrJT53oJO2HVdkSYLa6+zuLJh0lAr06brXIkljrlI+N7NNW1IAXGn/6IZPi3YQ==}engines: {node: '>=12'}@@ -1771,6 +1927,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [netbsd]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-nLgdc6tWEhcCFg/WVFaUxHcPK3AP/bh+KEwKtl69Ay5IBqUwKDaq/6Xk0E+fh/FGjnLwqFSsarsbPHeKM8t8Sw==}engines: {node: '>=12'}@@ -1789,6 +1954,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [openbsd]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-08SluG24GjPO3tXKk95/85n9kpyZtXCVwURR2i4myhrOfi3jspClV0xQQ0W0PYWHioJj+LejFMt41q+PG3mlAQ==}engines: {node: '>=12'}@@ -1807,6 +1981,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [sunos]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-yYiRDQcqLYQSvNQcBKN7XogbrSvBE45FEQdH8fuXPl7cngzkCvpsG2H9Uey39IjQ6gqqc+Q4VXYHsQcKW0OMjQ==}engines: {node: '>=12'}@@ -1825,6 +2008,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [win32]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-5rabnGIqexekYkh9zXG5waotq8mrdlRoBqAktjx2W3kb0zsI83mdCwrcAeKYirnUaTGztR5TxXcXmQrEzny83w==}engines: {node: '>=12'}@@ -1843,6 +2035,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==}+ engines: {node: '>=12'}+ cpu: [ia32]+ os: [win32]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-sN/I8FMPtmtT2Yw+Dly8Ur5vQ5a/RmC8hW7jO9PtPSQUPkowxWpcUZnqOggU7VwyT3Xkj6vcXWd3V/qTXwultQ==}engines: {node: '>=12'}@@ -1861,6 +2062,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [win32]+ requiresBuild: true+ dev: true+ optional: true+/@eslint-community/[email protected]([email protected]):resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}@@ -1962,6 +2172,13 @@ packages:/@humanwhocodes/[email protected]:resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==}+ /@jest/[email protected]:+ resolution: {integrity: sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==}+ engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}+ dependencies:+ '@sinclair/typebox': 0.27.8+ dev: true+/@jridgewell/[email protected]:resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==}engines: {node: '>=6.0.0'}@@ -4252,6 +4469,10 @@ packages:string.prototype.codepointat: 0.2.1dev: false+ /@sinclair/[email protected]:+ resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==}+ dev: true+/@swc/[email protected]:resolution: {integrity: sha512-E4KcWTpoLHqwPHLxidpOqQbcrZVgi0rsmmZXUle1jXmJfuIf/UWpczUJ7MZZ5tlxytgJXyp0w4PGkkeLiuIdZw==}dependencies:@@ -4483,6 +4704,16 @@ packages:resolution: {integrity: sha512-wJsiX1tosQ+J5+bY5LrSahHxr2wT+uME5UDwdN1kg4frt40euqA+wzECkmq4t5QbveHiJepfdThgQrPw6KiSlg==}dev: true+ /@types/[email protected]:+ resolution: {integrity: sha512-CCWNXrJYSUIojZ1149ksLl3AN9cmZ5djf+yUoVVV+NuYrtydItQVlL2ZDqyC6M6O9LWRnVf8yYDxbXHO2TfQZg==}+ dependencies:+ '@types/chai': 4.3.9+ dev: true++ /@types/[email protected]:+ resolution: {integrity: sha512-69TtiDzu0bcmKQv3yg1Zx409/Kd7r0b5F1PfpYJfSHzLGtB53547V4u+9iqKYsTu/O2ai6KTb0TInNpvuQ3qmg==}+ dev: true+/@types/[email protected]:resolution: {integrity: sha512-/vPO1EPOs306Cvhwv7KfVfYvOJqA/S/AXjaHQiJboCZzcNDb+TIJFN9/2C9DZ//ijSKWioNyUxD792QmDJ+HKQ==}dependencies:@@ -4954,6 +5185,44 @@ packages:dev: falsepatched: true+ /@vitest/[email protected]:+ resolution: {integrity: sha512-QUzKpUQRc1qC7qdGo7rMK3AkETI7w18gTCUrsNnyjjJKYiuUB9+TQK3QnR1unhCnWRC0AbKv2omLGQDF/mIjOw==}+ dependencies:+ '@vitest/spy': 0.34.6+ '@vitest/utils': 0.34.6+ chai: 4.3.10+ dev: true++ /@vitest/[email protected]:+ resolution: {integrity: sha512-1CUQgtJSLF47NnhN+F9X2ycxUP0kLHQ/JWvNHbeBfwW8CzEGgeskzNnHDyv1ieKTltuR6sdIHV+nmR6kPxQqzQ==}+ dependencies:+ '@vitest/utils': 0.34.6+ p-limit: 4.0.0+ pathe: 1.1.1+ dev: true++ /@vitest/[email protected]:+ resolution: {integrity: sha512-B3OZqYn6k4VaN011D+ve+AA4whM4QkcwcrwaKwAbyyvS/NB1hCWjFIBQxAQQSQir9/RtyAAGuq+4RJmbn2dH4w==}+ dependencies:+ magic-string: 0.30.5+ pathe: 1.1.1+ pretty-format: 29.7.0+ dev: true++ /@vitest/[email protected]:+ resolution: {integrity: sha512-xaCvneSaeBw/cz8ySmF7ZwGvL0lBjfvqc1LpQ/vcdHEvpLn3Ff1vAvjw+CoGn0802l++5L/pxb7whwcWAw+DUQ==}+ dependencies:+ tinyspy: 2.2.0+ dev: true++ /@vitest/[email protected]:+ resolution: {integrity: sha512-IG5aDD8S6zlvloDsnzHw0Ut5xczlF+kv2BOTo+iXfPr54Yhi5qbVOgGB1hZaVq4iJ4C/MZ2J0y15IlsV/ZcI0A==}+ dependencies:+ diff-sequences: 29.6.3+ loupe: 2.3.7+ pretty-format: 29.7.0+ dev: true+/@webassemblyjs/[email protected]:resolution: {integrity: sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==}dependencies:@@ -5085,7 +5354,6 @@ packages:resolution: {integrity: sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==}engines: {node: '>=0.4.0'}- dev: falseresolution: {integrity: sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==}@@ -5160,6 +5428,11 @@ packages:dependencies:color-convert: 2.0.1+ resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==}+ engines: {node: '>=10'}+ dev: true+resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==}@@ -5256,6 +5529,10 @@ packages:is-array-buffer: 3.0.2is-shared-array-buffer: 1.0.2+ resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==}+ dev: true+resolution: {integrity: sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==}@@ -5503,6 +5780,19 @@ packages:resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==}dev: false+ resolution: {integrity: sha512-0UXG04VuVbruMUYbJ6JctvH0YnC/4q3/AkT18q4NaITo91CUm0liMS9VqzT9vZhVQ/1eqPanMWjBM+Juhfb/9g==}+ engines: {node: '>=4'}+ 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.7+ pathval: 1.1.1+ type-detect: 4.0.8+ dev: true+resolution: {integrity: sha512-75kWfWt6MEKNC8xYXIdRpDehRYY/tNSgwKaJq+dbbDcxORuVrrQ+SEHoWsniVn9XPYfP4gmdWIeDk/4YNp1rNQ==}dependencies:@@ -5572,6 +5862,12 @@ packages:resolution: {integrity: sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==}dev: false+ resolution: {integrity: sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==}+ dependencies:+ get-func-name: 2.0.2+ dev: true+resolution: {integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==}engines: {node: '>= 8.10.0'}@@ -6023,6 +6319,13 @@ packages:character-entities: 2.0.2dev: false+ resolution: {integrity: sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==}+ engines: {node: '>=6'}+ dependencies:+ type-detect: 4.0.8+ dev: true+resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}@@ -6113,6 +6416,11 @@ packages:resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==}+ resolution: {integrity: sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==}+ engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}+ dev: true+resolution: {integrity: sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==}engines: {node: '>=0.3.1'}@@ -6646,6 +6954,36 @@ packages:'@esbuild/win32-x64': 0.17.19dev: true+ resolution: {integrity: sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==}+ engines: {node: '>=12'}+ hasBin: true+ requiresBuild: true+ optionalDependencies:+ '@esbuild/android-arm': 0.18.20+ '@esbuild/android-arm64': 0.18.20+ '@esbuild/android-x64': 0.18.20+ '@esbuild/darwin-arm64': 0.18.20+ '@esbuild/darwin-x64': 0.18.20+ '@esbuild/freebsd-arm64': 0.18.20+ '@esbuild/freebsd-x64': 0.18.20+ '@esbuild/linux-arm': 0.18.20+ '@esbuild/linux-arm64': 0.18.20+ '@esbuild/linux-ia32': 0.18.20+ '@esbuild/linux-loong64': 0.18.20+ '@esbuild/linux-mips64el': 0.18.20+ '@esbuild/linux-ppc64': 0.18.20+ '@esbuild/linux-riscv64': 0.18.20+ '@esbuild/linux-s390x': 0.18.20+ '@esbuild/linux-x64': 0.18.20+ '@esbuild/netbsd-x64': 0.18.20+ '@esbuild/openbsd-x64': 0.18.20+ '@esbuild/sunos-x64': 0.18.20+ '@esbuild/win32-arm64': 0.18.20+ '@esbuild/win32-ia32': 0.18.20+ '@esbuild/win32-x64': 0.18.20+ dev: true+resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==}engines: {node: '>=6'}@@ -7448,6 +7786,14 @@ packages:requiresBuild: trueoptional: true+ resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}+ engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}+ os: [darwin]+ requiresBuild: true+ dev: true+ optional: true+resolution: {integrity: sha512-WvJ193OHa0GHPEL+AycEJgxvBEwyfRkN1vhjca23OaPVMCaLCXTd5qAu82AjTcgP1UJmytkOKb63Ypde7raDIg==}engines: {node: '>=0.6'}@@ -7483,6 +7829,10 @@ packages:engines: {node: '>=6.9.0'}dev: false+ resolution: {integrity: sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==}+ dev: true+resolution: {integrity: sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==}dependencies:@@ -7522,6 +7872,12 @@ packages:dependencies:resolve-pkg-maps: 1.0.0+ resolution: {integrity: sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A==}+ dependencies:+ resolve-pkg-maps: 1.0.0+ dev: true+resolution: {integrity: sha512-LF8VeHeR7v+wAbXqfgRlTSX/1BJR9Q1vEMR8JAz1cEg6GX07+zyj3sAdDvYjj/xnlIfVuGgj4qBei1K3hKH+PA==}dev: false@@ -8351,6 +8707,10 @@ packages:engines: {node: '>=6'}hasBin: true+ resolution: {integrity: sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==}+ dev: true+resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==}optionalDependencies:@@ -8477,6 +8837,11 @@ packages:json5: 2.2.3dev: true+ resolution: {integrity: sha512-SFppqq5p42fe2qcZQqqEOiVRXl+WCP1MdT6k7BDEW1j++sp5fIY+/fdRQitvKgB5BrBcmrs5m/L0v2FrU5MY1g==}+ engines: {node: '>=14'}+ dev: true+resolution: {integrity: sha512-14/H1aX7hzBBmmh7sGPd+AOMkkIrHM3Z1PAyGgZigA1H1p5O5ANnMyWzvpAETtG68/dC4pC0ncy3+PPGzXZHPg==}dependencies:@@ -8535,6 +8900,12 @@ packages:dependencies:js-tokens: 4.0.0+ resolution: {integrity: sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==}+ dependencies:+ get-func-name: 2.0.2+ dev: true+resolution: {integrity: sha512-8Ktj+prEb1RoCPkEOrPMYUN/nCggB7qAWe3a7OpMjWQkh3l2RD5wKRQ+o8Q8YuI9RG/xs95waaI/E6ym/7NsTw==}dependencies:@@ -8583,6 +8954,13 @@ packages:'@jridgewell/sourcemap-codec': 1.4.15dev: false+ resolution: {integrity: sha512-7xlpfBaQaP/T6Vh8MO/EqXSW5En6INHEvEXQiuff7Gku0PWjU3uf6w/j9o7O+SpB5fOAkrI5HeoNgwjEO0pFsA==}+ engines: {node: '>=12'}+ dependencies:+ '@jridgewell/sourcemap-codec': 1.4.15+ dev: true+resolution: {integrity: sha512-lTlxriVoy2criHP0JKRhO2VDG9c2ypWCsT237eDiLqi09rmbKoUetyGHq2uOIRoRS//kfoJckS0eUzzkDR+k2Q==}hasBin: true@@ -9110,6 +9488,15 @@ packages:minimist: 1.2.8dev: false+ resolution: {integrity: sha512-i/Ykufi2t1EZ6NaPLdfnZk2AX8cs0d+mTzVKuPfqPKPatxLApaBoxJQ9x1/uckXtrS/U5oisPMDkNs0yQTaBRg==}+ dependencies:+ acorn: 8.10.0+ pathe: 1.1.1+ pkg-types: 1.0.3+ ufo: 1.3.1+ dev: true+/[email protected](patch_hash=j3oqxjoadtct3pc6tokddngzsm):resolution: {integrity: sha512-+CsW0+Mvx2+eitkXS7OpUXIu57qXlqAL8oVkYhkPCEZ/c6+6gOp/IcG7w+Lb33YiZuTyvJ891+czkeJRPIEwVA==}peerDependencies:@@ -9685,6 +10072,14 @@ packages:resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==}engines: {node: '>=8'}+ resolution: {integrity: sha512-d+RQGp0MAYTIaDBIMmOfMwz3E+LOZnxx1HZd5R18mmCZY0QBlK0LDZfPc8FW8Ed2DlvsuE6PRjroDY+wg4+j/Q==}+ dev: true++ resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==}+ dev: true+resolution: {integrity: sha512-YYEs+eauIjDH5nUEGi18EohWE0nV2QbGTqmxQcqgZ/0g+laPCQmuIqq7EBLVi9uim9zMgfJv0QBZEnQ3uHw/Tw==}dev: false@@ -9709,6 +10104,14 @@ packages:resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==}engines: {node: '>= 6'}+ resolution: {integrity: sha512-nN7pYi0AQqJnoLPC9eHFQ8AcyaixBUOwvqc5TDnIKCMEE6I0y8P7OKA7fPexsXGCGxQDl/cmrLAp26LhcwxZ4A==}+ dependencies:+ jsonc-parser: 3.2.0+ mlly: 1.4.2+ pathe: 1.1.1+ dev: true+resolution: {integrity: sha512-f8z1y8J9zvmHoEhKgspmCvOExF2XdcxMW8jNRuX4vkQFrzV4MlZ55iwb5QeyiFQgOFCUolXiRHgpjSEnqvO48g==}engines: {node: '>=16'}@@ -9884,7 +10287,6 @@ packages:nanoid: 3.3.6picocolors: 1.0.0source-map-js: 1.0.2- dev: falseresolution: {integrity: sha512-JyhErpYOvBV1hEPwIxc/fHWXPfnEGdRKxc8gFdAZ7XV4tlzyzG847XAyEZqoDnynP88akM4eaHcSOzNcLWFguw==}@@ -9981,6 +10383,15 @@ packages:engines: {node: '>=6'}dev: false+ resolution: {integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==}+ engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}+ dependencies:+ '@jest/schemas': 29.6.3+ ansi-styles: 5.2.0+ react-is: 18.2.0+ dev: true+resolution: {integrity: sha512-WuxUnVtlWL1OfZFQFuqvnvs6MiAGk9UNsBostyBOB0Is9wb5uRESevA6rnl/rkksXaGX3GzZhPup5d6Vp1nFew==}dev: false@@ -10196,7 +10607,6 @@ packages:resolution: {integrity: sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==}- dev: falseresolution: {integrity: sha512-bvWbzG4MtOU62XqBx3Xx+zB2raaFFsq4mYiAzfjXJMEz2sixgeAfraA3tvzULF02ZdOMUOKTBFFaZJDDrq+BJQ==}@@ -10706,7 +11116,6 @@ packages:hasBin: trueoptionalDependencies:fsevents: 2.3.2- dev: falseresolution: {integrity: sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==}@@ -10844,6 +11253,10 @@ packages:get-intrinsic: 1.2.1object-inspect: 1.12.3+ resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==}+ dev: true+resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}@@ -10948,6 +11361,10 @@ packages:resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==}dev: false+ resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==}+ dev: true+resolution: {integrity: sha512-KJP1OCML99+8fhOHxwwzyWrlUuVX5GQ0ZpJTd1DFXhdkrvg1szxfHhawXUZ3g9TkXORQd4/WG68jMlQZ2p8wlg==}engines: {node: '>=6'}@@ -10959,6 +11376,10 @@ packages:resolution: {integrity: sha512-HTEHMNieakEnoe33shBYcZ7NX83ACUjCu8c40iOGEZsngj9zRnkqS9j1pqQPXwobB0ZcVTk27REb7COQ0UR59w==}dev: false+ resolution: {integrity: sha512-f9aPhy8fYBuMN+sNfakZV18U39PbalgjXG3lLB9WkaYTxijru61wb57V9wxxNthXM5Sd88ETBWi29qLAsHO52Q==}+ dev: true+resolution: {integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==}engines: {node: '>=10.0.0'}@@ -11062,6 +11483,12 @@ packages:engines: {node: '>=14.16'}dev: true+ resolution: {integrity: sha512-PugKzOsyXpArk0yWmUwqOZecSO0GH0bPoctLcqNDH9J04pVW3lflYE0ujElBGTloevcxF5MofAOZ7C5l2b+wLg==}+ dependencies:+ acorn: 8.10.0+ dev: true+resolution: {integrity: sha512-zKI5gN/zb7LS/Vm0eUwjmjrXWw8IMtyA8aPBJZdYiQTXj4+wQ3IucOLIOnF7zCHxvW8UhIGh/uZh/t9zEHXNTQ==}dependencies:@@ -11291,6 +11718,20 @@ packages:dependencies:any-promise: 1.3.0+ resolution: {integrity: sha512-65NKvSuAVDP/n4CqH+a9w2kTlLReS9vhsAP06MWx+/89nMinJyB2icyl58RIcqCmIggpojIGeuJGhjU1aGMBSg==}+ dev: true++ resolution: {integrity: sha512-zSYNUlYSMhJ6Zdou4cJwo/p7w5nmAH17GRfU/ui3ctvjXFErXXkruT4MWW6poDeXgCaIBlGLrfU6TbTXxyGMww==}+ engines: {node: '>=14.0.0'}+ dev: true++ resolution: {integrity: sha512-d2eda04AN/cPOR89F7Xv5bK/jrQEhmcLFe6HFldoeO9AJtps+fqEnh486vnT/8y4bw38pSyxDcTCAq+Ks2aJTg==}+ engines: {node: '>=14.0.0'}+ dev: true+resolution: {integrity: sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ==}engines: {node: '>=12'}@@ -11407,6 +11848,17 @@ packages:fsevents: 2.3.2dev: true+ resolution: {integrity: sha512-xHtFaKtHxM9LOklMmJdI3BEnQq/D5F73Of2E1GDrITi9sgoVkvIsrQUTY1G8FlmGtA+awCI4EBlTRRYxkL2sRg==}+ hasBin: true+ dependencies:+ esbuild: 0.18.20+ get-tsconfig: 4.7.2+ source-map-support: 0.5.21+ optionalDependencies:+ fsevents: 2.3.3+ dev: true+resolution: {integrity: sha512-+Jk91FNcp9e9NCLYlvDDlp2HwEDp14F9N42IoW3dmHI5ZkGSXzalbhVcrx3DOox3QfiNUHxzWg4d7CnVNCuuMg==}cpu: [x64]@@ -11484,6 +11936,11 @@ packages:dependencies:prelude-ls: 1.2.1+ resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==}+ engines: {node: '>=4'}+ dev: true+resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==}engines: {node: '>=10'}@@ -11513,6 +11970,11 @@ packages:engines: {node: '>=14.16'}dev: false+ resolution: {integrity: sha512-HAf4o9LjUAh9xEIXZTNm+ak2tjTgK64QhTlT/D8UNedII2/eagdEbtbaVK6920K7+QBrwfvxpjPGlfWVKZ+MZQ==}+ engines: {node: '>= 20.x'}+ dev: true+resolution: {integrity: sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==}engines: {node: '>= 0.4'}@@ -11562,6 +12024,10 @@ packages:resolution: {integrity: sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==}dev: true+ resolution: {integrity: sha512-uY/99gMLIOlJPwATcMVYfqDSxUR9//AUcgZMzwfSTJPDKzA1S8mX4VLqa+fiAtveraQUBCz4FFcwVZBGbwBXIw==}+ dev: true+resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==}dependencies:@@ -11835,6 +12301,129 @@ packages:vfile-message: 3.1.4dev: false+ /[email protected](@types/[email protected]):+ resolution: {integrity: sha512-nlBMJ9x6n7/Amaz6F3zJ97EBwR2FkzhBRxF5e+jE6LA3yi6Wtc2lyTij1OnDMIr34v5g/tVQtsVAzhT0jc5ygA==}+ engines: {node: '>=v14.18.0'}+ hasBin: true+ dependencies:+ cac: 6.7.14+ debug: 4.3.4+ mlly: 1.4.2+ pathe: 1.1.1+ picocolors: 1.0.0+ vite: 4.5.0(@types/[email protected])+ transitivePeerDependencies:+ - '@types/node'+ - less+ - lightningcss+ - sass+ - stylus+ - sugarss+ - supports-color+ - terser+ dev: true++ /[email protected](@types/[email protected]):+ resolution: {integrity: sha512-ulr8rNLA6rkyFAlVWw2q5YJ91v098AFQ2R0PRFwPzREXOUJQPtFUG0t+/ZikhaOCDqFoDhN6/v8Sq0o4araFAw==}+ engines: {node: ^14.18.0 || >=16.0.0}+ hasBin: true+ peerDependencies:+ '@types/node': '>= 14'+ 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+ dependencies:+ '@types/node': 20.4.2+ esbuild: 0.18.20+ postcss: 8.4.31+ rollup: 3.28.1+ optionalDependencies:+ fsevents: 2.3.2+ dev: true++ resolution: {integrity: sha512-+5CALsOvbNKnS+ZHMXtuUC7nL8/7F1F2DnHGjSsszX8zCjWSSviphCb/NuS9Nzf4Q03KyyDRBAXhF/8lffME4Q==}+ engines: {node: '>=v14.18.0'}+ hasBin: true+ peerDependencies:+ '@edge-runtime/vm': '*'+ '@vitest/browser': '*'+ '@vitest/ui': '*'+ happy-dom: '*'+ jsdom: '*'+ playwright: '*'+ safaridriver: '*'+ webdriverio: '*'+ peerDependenciesMeta:+ '@edge-runtime/vm':+ optional: true+ '@vitest/browser':+ optional: true+ '@vitest/ui':+ optional: true+ happy-dom:+ optional: true+ jsdom:+ optional: true+ playwright:+ optional: true+ safaridriver:+ optional: true+ webdriverio:+ optional: true+ dependencies:+ '@types/chai': 4.3.9+ '@types/chai-subset': 1.3.4+ '@types/node': 20.4.2+ '@vitest/expect': 0.34.6+ '@vitest/runner': 0.34.6+ '@vitest/snapshot': 0.34.6+ '@vitest/spy': 0.34.6+ '@vitest/utils': 0.34.6+ acorn: 8.10.0+ acorn-walk: 8.2.0+ cac: 6.7.14+ chai: 4.3.10+ debug: 4.3.4+ local-pkg: 0.4.3+ magic-string: 0.30.5+ pathe: 1.1.1+ picocolors: 1.0.0+ std-env: 3.4.3+ strip-literal: 1.3.0+ tinybench: 2.5.1+ tinypool: 0.7.0+ vite: 4.5.0(@types/[email protected])+ vite-node: 0.34.6(@types/[email protected])+ why-is-node-running: 2.2.2+ transitivePeerDependencies:+ - less+ - lightningcss+ - sass+ - stylus+ - sugarss+ - supports-color+ - terser+ dev: true+resolution: {integrity: sha512-X+8T3GoiwTVlJbicx/sIAF+yuJAqz8VvwJyoMVhwEMoEKE/fkDmrqUgDMyBECcM2A2frVZIUj5HI/ErRXCfOeA==}dev: true@@ -11967,6 +12556,15 @@ packages:dependencies:isexe: 2.0.0+ resolution: {integrity: sha512-6tSwToZxTOcotxHeA+qGCq1mVzKR3CwcJGmVcY+QE8SHy6TnpFnh8PAvPNHYr7EcuVeG0QSMxtYCuO1ta/G/oA==}+ engines: {node: '>=8'}+ hasBin: true+ dependencies:+ siginfo: 2.0.0+ stackback: 0.0.2+ dev: true+resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}