@everyonesoftware/common 12.0.0 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/outputs/sources/ANSIStyles.d.ts +10 -0
- package/outputs/sources/ANSIStyles.d.ts.map +1 -0
- package/outputs/sources/ANSIStyles.js +23 -0
- package/outputs/sources/ANSIStyles.js.map +1 -0
- package/outputs/sources/CharacterTable.d.ts +11 -0
- package/outputs/sources/CharacterTable.d.ts.map +1 -0
- package/outputs/sources/CharacterTable.js +28 -0
- package/outputs/sources/CharacterTable.js.map +1 -0
- package/outputs/sources/Clock.d.ts +12 -0
- package/outputs/sources/Clock.d.ts.map +1 -0
- package/outputs/sources/Clock.js +10 -0
- package/outputs/sources/Clock.js.map +1 -0
- package/outputs/sources/FetchError.d.ts +7 -0
- package/outputs/sources/FetchError.d.ts.map +1 -0
- package/outputs/sources/FetchError.js +20 -0
- package/outputs/sources/FetchError.js.map +1 -0
- package/outputs/sources/HttpRequestHandler.d.ts +8 -0
- package/outputs/sources/HttpRequestHandler.d.ts.map +1 -0
- package/outputs/sources/HttpRequestHandler.js +2 -0
- package/outputs/sources/HttpRequestHandler.js.map +1 -0
- package/outputs/sources/IndentedCharacterWriteStream.d.ts +21 -0
- package/outputs/sources/IndentedCharacterWriteStream.d.ts.map +1 -0
- package/outputs/sources/IndentedCharacterWriteStream.js +110 -0
- package/outputs/sources/IndentedCharacterWriteStream.js.map +1 -0
- package/outputs/sources/Indexable.d.ts +51 -0
- package/outputs/sources/Indexable.d.ts.map +1 -0
- package/outputs/sources/Indexable.js +122 -0
- package/outputs/sources/Indexable.js.map +1 -0
- package/outputs/sources/MutableIndexable.d.ts +51 -0
- package/outputs/sources/MutableIndexable.d.ts.map +1 -0
- package/outputs/sources/MutableIndexable.js +96 -0
- package/outputs/sources/MutableIndexable.js.map +1 -0
- package/outputs/sources/NodeJSHttpOutgoingResponse.d.ts +25 -0
- package/outputs/sources/NodeJSHttpOutgoingResponse.d.ts.map +1 -0
- package/outputs/sources/NodeJSHttpOutgoingResponse.js +77 -0
- package/outputs/sources/NodeJSHttpOutgoingResponse.js.map +1 -0
- package/outputs/sources/RealClock.d.ts +11 -0
- package/outputs/sources/RealClock.d.ts.map +1 -0
- package/outputs/sources/RealClock.js +15 -0
- package/outputs/sources/RealClock.js.map +1 -0
- package/outputs/sources/Token.d.ts +31 -0
- package/outputs/sources/Token.d.ts.map +1 -0
- package/outputs/sources/Token.js +80 -0
- package/outputs/sources/Token.js.map +1 -0
- package/outputs/sources/TokenType.d.ts +19 -0
- package/outputs/sources/TokenType.d.ts.map +1 -0
- package/outputs/sources/TokenType.js +27 -0
- package/outputs/sources/TokenType.js.map +1 -0
- package/outputs/sources/Tokenizer.d.ts +37 -0
- package/outputs/sources/Tokenizer.d.ts.map +1 -0
- package/outputs/sources/Tokenizer.js +163 -0
- package/outputs/sources/Tokenizer.js.map +1 -0
- package/outputs/sources/assertMessageParameters.d.ts +22 -0
- package/outputs/sources/assertMessageParameters.d.ts.map +1 -0
- package/outputs/sources/assertMessageParameters.js +2 -0
- package/outputs/sources/assertMessageParameters.js.map +1 -0
- package/outputs/sources/asyncIterator.d.ts +155 -0
- package/outputs/sources/asyncIterator.d.ts.map +1 -0
- package/outputs/sources/asyncIterator.js +303 -0
- package/outputs/sources/asyncIterator.js.map +1 -0
- package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.d.ts +13 -0
- package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.d.ts.map +1 -0
- package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.js +34 -0
- package/outputs/sources/asyncIteratorToJavascriptAsyncIteratorAdapter.js.map +1 -0
- package/outputs/sources/asyncResult.d.ts +73 -0
- package/outputs/sources/asyncResult.d.ts.map +1 -0
- package/outputs/sources/asyncResult.js +33 -0
- package/outputs/sources/asyncResult.js.map +1 -0
- package/outputs/sources/basicDisposable.d.ts +21 -0
- package/outputs/sources/basicDisposable.d.ts.map +1 -0
- package/outputs/sources/basicDisposable.js +42 -0
- package/outputs/sources/basicDisposable.js.map +1 -0
- package/outputs/sources/byteList.d.ts +43 -0
- package/outputs/sources/byteList.d.ts.map +1 -0
- package/outputs/sources/byteList.js +128 -0
- package/outputs/sources/byteList.js.map +1 -0
- package/outputs/sources/byteListStream.d.ts +20 -0
- package/outputs/sources/byteListStream.d.ts.map +1 -0
- package/outputs/sources/byteListStream.js +84 -0
- package/outputs/sources/byteListStream.js.map +1 -0
- package/outputs/sources/byteReadStream.d.ts +23 -0
- package/outputs/sources/byteReadStream.d.ts.map +1 -0
- package/outputs/sources/byteReadStream.js +6 -0
- package/outputs/sources/byteReadStream.js.map +1 -0
- package/outputs/sources/byteWriteStream.d.ts +15 -0
- package/outputs/sources/byteWriteStream.d.ts.map +1 -0
- package/outputs/sources/byteWriteStream.js +6 -0
- package/outputs/sources/byteWriteStream.js.map +1 -0
- package/outputs/sources/bytes.d.ts +20 -0
- package/outputs/sources/bytes.d.ts.map +1 -0
- package/outputs/sources/bytes.js +22 -0
- package/outputs/sources/bytes.js.map +1 -0
- package/outputs/sources/characterList.d.ts +39 -0
- package/outputs/sources/characterList.d.ts.map +1 -0
- package/outputs/sources/characterList.js +122 -0
- package/outputs/sources/characterList.js.map +1 -0
- package/outputs/sources/characterListStream.d.ts +27 -0
- package/outputs/sources/characterListStream.d.ts.map +1 -0
- package/outputs/sources/characterListStream.js +103 -0
- package/outputs/sources/characterListStream.js.map +1 -0
- package/outputs/sources/characterReadStream.d.ts +25 -0
- package/outputs/sources/characterReadStream.d.ts.map +1 -0
- package/outputs/sources/characterReadStream.js +57 -0
- package/outputs/sources/characterReadStream.js.map +1 -0
- package/outputs/sources/characterReadStreamIterator.d.ts +31 -0
- package/outputs/sources/characterReadStreamIterator.d.ts.map +1 -0
- package/outputs/sources/characterReadStreamIterator.js +79 -0
- package/outputs/sources/characterReadStreamIterator.js.map +1 -0
- package/outputs/sources/characterWriteStream.d.ts +18 -0
- package/outputs/sources/characterWriteStream.d.ts.map +1 -0
- package/outputs/sources/characterWriteStream.js +27 -0
- package/outputs/sources/characterWriteStream.js.map +1 -0
- package/outputs/sources/commandLineParameter.d.ts +30 -0
- package/outputs/sources/commandLineParameter.d.ts.map +1 -0
- package/outputs/sources/commandLineParameter.js +73 -0
- package/outputs/sources/commandLineParameter.js.map +1 -0
- package/outputs/sources/commandLineParameters.d.ts +23 -0
- package/outputs/sources/commandLineParameters.d.ts.map +1 -0
- package/outputs/sources/commandLineParameters.js +82 -0
- package/outputs/sources/commandLineParameters.js.map +1 -0
- package/outputs/sources/comparable.d.ts +79 -0
- package/outputs/sources/comparable.d.ts.map +1 -0
- package/outputs/sources/comparable.js +106 -0
- package/outputs/sources/comparable.js.map +1 -0
- package/outputs/sources/comparer.d.ts +62 -0
- package/outputs/sources/comparer.d.ts.map +1 -0
- package/outputs/sources/comparer.js +102 -0
- package/outputs/sources/comparer.js.map +1 -0
- package/outputs/sources/comparison.d.ts +18 -0
- package/outputs/sources/comparison.d.ts.map +1 -0
- package/outputs/sources/comparison.js +19 -0
- package/outputs/sources/comparison.js.map +1 -0
- package/outputs/sources/concatenateIterable.d.ts +28 -0
- package/outputs/sources/concatenateIterable.d.ts.map +1 -0
- package/outputs/sources/concatenateIterable.js +74 -0
- package/outputs/sources/concatenateIterable.js.map +1 -0
- package/outputs/sources/concatenateIterator.d.ts +30 -0
- package/outputs/sources/concatenateIterator.d.ts.map +1 -0
- package/outputs/sources/concatenateIterator.js +104 -0
- package/outputs/sources/concatenateIterator.js.map +1 -0
- package/outputs/sources/condition.d.ts +248 -0
- package/outputs/sources/condition.d.ts.map +1 -0
- package/outputs/sources/condition.js +166 -0
- package/outputs/sources/condition.js.map +1 -0
- package/outputs/sources/currentProcess.d.ts +31 -0
- package/outputs/sources/currentProcess.d.ts.map +1 -0
- package/outputs/sources/currentProcess.js +106 -0
- package/outputs/sources/currentProcess.js.map +1 -0
- package/outputs/sources/dateTime.d.ts +44 -0
- package/outputs/sources/dateTime.d.ts.map +1 -0
- package/outputs/sources/dateTime.js +76 -0
- package/outputs/sources/dateTime.js.map +1 -0
- package/outputs/sources/depthFirstSearch.d.ts +9 -0
- package/outputs/sources/depthFirstSearch.d.ts.map +1 -0
- package/outputs/sources/depthFirstSearch.js +148 -0
- package/outputs/sources/depthFirstSearch.js.map +1 -0
- package/outputs/sources/disposable.d.ts +25 -0
- package/outputs/sources/disposable.d.ts.map +1 -0
- package/outputs/sources/disposable.js +16 -0
- package/outputs/sources/disposable.js.map +1 -0
- package/outputs/sources/emptyError.d.ts +7 -0
- package/outputs/sources/emptyError.d.ts.map +1 -0
- package/outputs/sources/emptyError.js +9 -0
- package/outputs/sources/emptyError.js.map +1 -0
- package/outputs/sources/english.d.ts +4 -0
- package/outputs/sources/english.d.ts.map +1 -0
- package/outputs/sources/english.js +33 -0
- package/outputs/sources/english.js.map +1 -0
- package/outputs/sources/equalFunctions.d.ts +18 -0
- package/outputs/sources/equalFunctions.d.ts.map +1 -0
- package/outputs/sources/equalFunctions.js +88 -0
- package/outputs/sources/equalFunctions.js.map +1 -0
- package/outputs/sources/fetchHttpClient.d.ts +16 -0
- package/outputs/sources/fetchHttpClient.d.ts.map +1 -0
- package/outputs/sources/fetchHttpClient.js +86 -0
- package/outputs/sources/fetchHttpClient.js.map +1 -0
- package/outputs/sources/fetchHttpResponse.d.ts +19 -0
- package/outputs/sources/fetchHttpResponse.d.ts.map +1 -0
- package/outputs/sources/fetchHttpResponse.js +72 -0
- package/outputs/sources/fetchHttpResponse.js.map +1 -0
- package/outputs/sources/flatMapIterable.d.ts +29 -0
- package/outputs/sources/flatMapIterable.d.ts.map +1 -0
- package/outputs/sources/flatMapIterable.js +61 -0
- package/outputs/sources/flatMapIterable.js.map +1 -0
- package/outputs/sources/flatMapIterator.d.ts +33 -0
- package/outputs/sources/flatMapIterator.d.ts.map +1 -0
- package/outputs/sources/flatMapIterator.js +95 -0
- package/outputs/sources/flatMapIterator.js.map +1 -0
- package/outputs/sources/generator.d.ts +55 -0
- package/outputs/sources/generator.d.ts.map +1 -0
- package/outputs/sources/generator.js +139 -0
- package/outputs/sources/generator.js.map +1 -0
- package/outputs/sources/httpClient.d.ts +21 -0
- package/outputs/sources/httpClient.d.ts.map +1 -0
- package/outputs/sources/httpClient.js +22 -0
- package/outputs/sources/httpClient.js.map +1 -0
- package/outputs/sources/httpHeader.d.ts +10 -0
- package/outputs/sources/httpHeader.d.ts.map +1 -0
- package/outputs/sources/httpHeader.js +25 -0
- package/outputs/sources/httpHeader.js.map +1 -0
- package/outputs/sources/httpHeaders.d.ts +68 -0
- package/outputs/sources/httpHeaders.d.ts.map +1 -0
- package/outputs/sources/httpHeaders.js +122 -0
- package/outputs/sources/httpHeaders.js.map +1 -0
- package/outputs/sources/httpIncomingRequest.d.ts +40 -0
- package/outputs/sources/httpIncomingRequest.d.ts.map +1 -0
- package/outputs/sources/httpIncomingRequest.js +6 -0
- package/outputs/sources/httpIncomingRequest.js.map +1 -0
- package/outputs/sources/httpIncomingResponse.d.ts +28 -0
- package/outputs/sources/httpIncomingResponse.d.ts.map +1 -0
- package/outputs/sources/httpIncomingResponse.js +6 -0
- package/outputs/sources/httpIncomingResponse.js.map +1 -0
- package/outputs/sources/httpMethod.d.ts +62 -0
- package/outputs/sources/httpMethod.d.ts.map +1 -0
- package/outputs/sources/httpMethod.js +136 -0
- package/outputs/sources/httpMethod.js.map +1 -0
- package/outputs/sources/httpOutgoingRequest.d.ts +50 -0
- package/outputs/sources/httpOutgoingRequest.d.ts.map +1 -0
- package/outputs/sources/httpOutgoingRequest.js +84 -0
- package/outputs/sources/httpOutgoingRequest.js.map +1 -0
- package/outputs/sources/httpOutgoingResponse.d.ts +46 -0
- package/outputs/sources/httpOutgoingResponse.d.ts.map +1 -0
- package/outputs/sources/httpOutgoingResponse.js +6 -0
- package/outputs/sources/httpOutgoingResponse.js.map +1 -0
- package/outputs/sources/httpServer.d.ts +29 -0
- package/outputs/sources/httpServer.d.ts.map +1 -0
- package/outputs/sources/httpServer.js +3 -0
- package/outputs/sources/httpServer.js.map +1 -0
- package/outputs/sources/inMemoryCharacterWriteStream.d.ts +15 -0
- package/outputs/sources/inMemoryCharacterWriteStream.d.ts.map +1 -0
- package/outputs/sources/inMemoryCharacterWriteStream.js +52 -0
- package/outputs/sources/inMemoryCharacterWriteStream.js.map +1 -0
- package/outputs/sources/index.d.ts +111 -0
- package/outputs/sources/index.d.ts.map +1 -0
- package/outputs/sources/index.js +111 -0
- package/outputs/sources/index.js.map +1 -0
- package/outputs/sources/iterable.d.ts +132 -0
- package/outputs/sources/iterable.d.ts.map +1 -0
- package/outputs/sources/iterable.js +251 -0
- package/outputs/sources/iterable.js.map +1 -0
- package/outputs/sources/iterator.d.ts +163 -0
- package/outputs/sources/iterator.d.ts.map +1 -0
- package/outputs/sources/iterator.js +332 -0
- package/outputs/sources/iterator.js.map +1 -0
- package/outputs/sources/iteratorToJavascriptIteratorAdapter.d.ts +13 -0
- package/outputs/sources/iteratorToJavascriptIteratorAdapter.d.ts.map +1 -0
- package/outputs/sources/iteratorToJavascriptIteratorAdapter.js +34 -0
- package/outputs/sources/iteratorToJavascriptIteratorAdapter.js.map +1 -0
- package/outputs/sources/javascript.d.ts +51 -0
- package/outputs/sources/javascript.d.ts.map +1 -0
- package/outputs/sources/javascript.js +8 -0
- package/outputs/sources/javascript.js.map +1 -0
- package/outputs/sources/javascriptArrayList.d.ts +39 -0
- package/outputs/sources/javascriptArrayList.d.ts.map +1 -0
- package/outputs/sources/javascriptArrayList.js +104 -0
- package/outputs/sources/javascriptArrayList.js.map +1 -0
- package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.d.ts +29 -0
- package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.d.ts.map +1 -0
- package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.js +77 -0
- package/outputs/sources/javascriptAsyncIteratorToAsyncIteratorAdapter.js.map +1 -0
- package/outputs/sources/javascriptIteratorToIteratorAdapter.d.ts +31 -0
- package/outputs/sources/javascriptIteratorToIteratorAdapter.d.ts.map +1 -0
- package/outputs/sources/javascriptIteratorToIteratorAdapter.js +83 -0
- package/outputs/sources/javascriptIteratorToIteratorAdapter.js.map +1 -0
- package/outputs/sources/javascriptMapMap.d.ts +37 -0
- package/outputs/sources/javascriptMapMap.d.ts.map +1 -0
- package/outputs/sources/javascriptMapMap.js +88 -0
- package/outputs/sources/javascriptMapMap.js.map +1 -0
- package/outputs/sources/javascriptSetSet.d.ts +33 -0
- package/outputs/sources/javascriptSetSet.d.ts.map +1 -0
- package/outputs/sources/javascriptSetSet.js +84 -0
- package/outputs/sources/javascriptSetSet.js.map +1 -0
- package/outputs/sources/list.d.ts +106 -0
- package/outputs/sources/list.d.ts.map +1 -0
- package/outputs/sources/list.js +211 -0
- package/outputs/sources/list.js.map +1 -0
- package/outputs/sources/listQueue.d.ts +16 -0
- package/outputs/sources/listQueue.d.ts.map +1 -0
- package/outputs/sources/listQueue.js +39 -0
- package/outputs/sources/listQueue.js.map +1 -0
- package/outputs/sources/listStack.d.ts +17 -0
- package/outputs/sources/listStack.d.ts.map +1 -0
- package/outputs/sources/listStack.js +42 -0
- package/outputs/sources/listStack.js.map +1 -0
- package/outputs/sources/luxonDateTime.d.ts +26 -0
- package/outputs/sources/luxonDateTime.d.ts.map +1 -0
- package/outputs/sources/luxonDateTime.js +70 -0
- package/outputs/sources/luxonDateTime.js.map +1 -0
- package/outputs/sources/map.d.ts +105 -0
- package/outputs/sources/map.d.ts.map +1 -0
- package/outputs/sources/map.js +185 -0
- package/outputs/sources/map.js.map +1 -0
- package/outputs/sources/mapAsyncIterator.d.ts +34 -0
- package/outputs/sources/mapAsyncIterator.d.ts.map +1 -0
- package/outputs/sources/mapAsyncIterator.js +91 -0
- package/outputs/sources/mapAsyncIterator.js.map +1 -0
- package/outputs/sources/mapIterable.d.ts +31 -0
- package/outputs/sources/mapIterable.d.ts.map +1 -0
- package/outputs/sources/mapIterable.js +64 -0
- package/outputs/sources/mapIterable.js.map +1 -0
- package/outputs/sources/mapIterator.d.ts +35 -0
- package/outputs/sources/mapIterator.d.ts.map +1 -0
- package/outputs/sources/mapIterator.js +93 -0
- package/outputs/sources/mapIterator.js.map +1 -0
- package/outputs/sources/mutableCondition.d.ts +99 -0
- package/outputs/sources/mutableCondition.d.ts.map +1 -0
- package/outputs/sources/mutableCondition.js +334 -0
- package/outputs/sources/mutableCondition.js.map +1 -0
- package/outputs/sources/mutableHttpHeaders.d.ts +44 -0
- package/outputs/sources/mutableHttpHeaders.d.ts.map +1 -0
- package/outputs/sources/mutableHttpHeaders.js +125 -0
- package/outputs/sources/mutableHttpHeaders.js.map +1 -0
- package/outputs/sources/mutableMap.d.ts +125 -0
- package/outputs/sources/mutableMap.d.ts.map +1 -0
- package/outputs/sources/mutableMap.js +179 -0
- package/outputs/sources/mutableMap.js.map +1 -0
- package/outputs/sources/network.d.ts +16 -0
- package/outputs/sources/network.d.ts.map +1 -0
- package/outputs/sources/network.js +6 -0
- package/outputs/sources/network.js.map +1 -0
- package/outputs/sources/node.d.ts +11 -0
- package/outputs/sources/node.d.ts.map +1 -0
- package/outputs/sources/node.js +24 -0
- package/outputs/sources/node.js.map +1 -0
- package/outputs/sources/nodeJSCharacterWriteStream.d.ts +9 -0
- package/outputs/sources/nodeJSCharacterWriteStream.d.ts.map +1 -0
- package/outputs/sources/nodeJSCharacterWriteStream.js +28 -0
- package/outputs/sources/nodeJSCharacterWriteStream.js.map +1 -0
- package/outputs/sources/nodeJSHttpIncomingRequest.d.ts +21 -0
- package/outputs/sources/nodeJSHttpIncomingRequest.d.ts.map +1 -0
- package/outputs/sources/nodeJSHttpIncomingRequest.js +88 -0
- package/outputs/sources/nodeJSHttpIncomingRequest.js.map +1 -0
- package/outputs/sources/nodeJSHttpServer.d.ts +21 -0
- package/outputs/sources/nodeJSHttpServer.d.ts.map +1 -0
- package/outputs/sources/nodeJSHttpServer.js +83 -0
- package/outputs/sources/nodeJSHttpServer.js.map +1 -0
- package/outputs/sources/notFoundError.d.ts +7 -0
- package/outputs/sources/notFoundError.d.ts.map +1 -0
- package/outputs/sources/notFoundError.js +10 -0
- package/outputs/sources/notFoundError.js.map +1 -0
- package/outputs/sources/postCondition.d.ts +186 -0
- package/outputs/sources/postCondition.d.ts.map +1 -0
- package/outputs/sources/postCondition.js +224 -0
- package/outputs/sources/postCondition.js.map +1 -0
- package/outputs/sources/postConditionError.d.ts +7 -0
- package/outputs/sources/postConditionError.d.ts.map +1 -0
- package/outputs/sources/postConditionError.js +10 -0
- package/outputs/sources/postConditionError.js.map +1 -0
- package/outputs/sources/preCondition.d.ts +186 -0
- package/outputs/sources/preCondition.d.ts.map +1 -0
- package/outputs/sources/preCondition.js +224 -0
- package/outputs/sources/preCondition.js.map +1 -0
- package/outputs/sources/preConditionError.d.ts +7 -0
- package/outputs/sources/preConditionError.d.ts.map +1 -0
- package/outputs/sources/preConditionError.js +10 -0
- package/outputs/sources/preConditionError.js.map +1 -0
- package/outputs/sources/promiseAsyncResult.d.ts +22 -0
- package/outputs/sources/promiseAsyncResult.d.ts.map +1 -0
- package/outputs/sources/promiseAsyncResult.js +131 -0
- package/outputs/sources/promiseAsyncResult.js.map +1 -0
- package/outputs/sources/property.d.ts +15 -0
- package/outputs/sources/property.d.ts.map +1 -0
- package/outputs/sources/property.js +44 -0
- package/outputs/sources/property.js.map +1 -0
- package/outputs/sources/queue.d.ts +39 -0
- package/outputs/sources/queue.d.ts.map +1 -0
- package/outputs/sources/queue.js +14 -0
- package/outputs/sources/queue.js.map +1 -0
- package/outputs/sources/realNetwork.d.ts +10 -0
- package/outputs/sources/realNetwork.d.ts.map +1 -0
- package/outputs/sources/realNetwork.js +18 -0
- package/outputs/sources/realNetwork.js.map +1 -0
- package/outputs/sources/recreationDotGovClient.d.ts +79 -0
- package/outputs/sources/recreationDotGovClient.d.ts.map +1 -0
- package/outputs/sources/recreationDotGovClient.js +130 -0
- package/outputs/sources/recreationDotGovClient.js.map +1 -0
- package/outputs/sources/searchControl.d.ts +36 -0
- package/outputs/sources/searchControl.d.ts.map +1 -0
- package/outputs/sources/searchControl.js +6 -0
- package/outputs/sources/searchControl.js.map +1 -0
- package/outputs/sources/set.d.ts +62 -0
- package/outputs/sources/set.d.ts.map +1 -0
- package/outputs/sources/set.js +145 -0
- package/outputs/sources/set.js.map +1 -0
- package/outputs/sources/skipAsyncIterator.d.ts +34 -0
- package/outputs/sources/skipAsyncIterator.d.ts.map +1 -0
- package/outputs/sources/skipAsyncIterator.js +94 -0
- package/outputs/sources/skipAsyncIterator.js.map +1 -0
- package/outputs/sources/skipIterator.d.ts +36 -0
- package/outputs/sources/skipIterator.d.ts.map +1 -0
- package/outputs/sources/skipIterator.js +100 -0
- package/outputs/sources/skipIterator.js.map +1 -0
- package/outputs/sources/stack.d.ts +43 -0
- package/outputs/sources/stack.d.ts.map +1 -0
- package/outputs/sources/stack.js +14 -0
- package/outputs/sources/stack.js.map +1 -0
- package/outputs/sources/stringComparer.d.ts +12 -0
- package/outputs/sources/stringComparer.d.ts.map +1 -0
- package/outputs/sources/stringComparer.js +24 -0
- package/outputs/sources/stringComparer.js.map +1 -0
- package/outputs/sources/stringIterator.d.ts +36 -0
- package/outputs/sources/stringIterator.d.ts.map +1 -0
- package/outputs/sources/stringIterator.js +94 -0
- package/outputs/sources/stringIterator.js.map +1 -0
- package/outputs/sources/strings.d.ts +78 -0
- package/outputs/sources/strings.d.ts.map +1 -0
- package/outputs/sources/strings.js +218 -0
- package/outputs/sources/strings.js.map +1 -0
- package/outputs/sources/syncResult.d.ts +32 -0
- package/outputs/sources/syncResult.d.ts.map +1 -0
- package/outputs/sources/syncResult.js +200 -0
- package/outputs/sources/syncResult.js.map +1 -0
- package/outputs/sources/takeAsyncIterator.d.ts +34 -0
- package/outputs/sources/takeAsyncIterator.d.ts.map +1 -0
- package/outputs/sources/takeAsyncIterator.js +92 -0
- package/outputs/sources/takeAsyncIterator.js.map +1 -0
- package/outputs/sources/takeIterator.d.ts +36 -0
- package/outputs/sources/takeIterator.d.ts.map +1 -0
- package/outputs/sources/takeIterator.js +98 -0
- package/outputs/sources/takeIterator.js.map +1 -0
- package/outputs/sources/toStringFunctions.d.ts +21 -0
- package/outputs/sources/toStringFunctions.d.ts.map +1 -0
- package/outputs/sources/toStringFunctions.js +130 -0
- package/outputs/sources/toStringFunctions.js.map +1 -0
- package/outputs/sources/types.d.ts +194 -0
- package/outputs/sources/types.d.ts.map +1 -0
- package/outputs/sources/types.js +277 -0
- package/outputs/sources/types.js.map +1 -0
- package/outputs/sources/whereAsyncIterator.d.ts +33 -0
- package/outputs/sources/whereAsyncIterator.d.ts.map +1 -0
- package/outputs/sources/whereAsyncIterator.js +91 -0
- package/outputs/sources/whereAsyncIterator.js.map +1 -0
- package/outputs/sources/whereIterable.d.ts +32 -0
- package/outputs/sources/whereIterable.d.ts.map +1 -0
- package/outputs/sources/whereIterable.js +65 -0
- package/outputs/sources/whereIterable.js.map +1 -0
- package/outputs/sources/whereIterator.d.ts +35 -0
- package/outputs/sources/whereIterator.d.ts.map +1 -0
- package/outputs/sources/whereIterator.js +102 -0
- package/outputs/sources/whereIterator.js.map +1 -0
- package/outputs/sources/wonderlandTrailClient.d.ts +202 -0
- package/outputs/sources/wonderlandTrailClient.d.ts.map +1 -0
- package/outputs/sources/wonderlandTrailClient.js +1094 -0
- package/outputs/sources/wonderlandTrailClient.js.map +1 -0
- package/outputs/tests/AssertTestCreator.d.ts +11 -0
- package/outputs/tests/AssertTestCreator.d.ts.map +1 -0
- package/outputs/tests/AssertTestCreator.js +15 -0
- package/outputs/tests/AssertTestCreator.js.map +1 -0
- package/outputs/tests/BasicTestError.d.ts +14 -0
- package/outputs/tests/BasicTestError.d.ts.map +1 -0
- package/outputs/tests/BasicTestError.js +94 -0
- package/outputs/tests/BasicTestError.js.map +1 -0
- package/outputs/tests/BasicTestErrorCreator.d.ts +11 -0
- package/outputs/tests/BasicTestErrorCreator.d.ts.map +1 -0
- package/outputs/tests/BasicTestErrorCreator.js +15 -0
- package/outputs/tests/BasicTestErrorCreator.js.map +1 -0
- package/outputs/tests/BasicTestErrorTests.d.ts +3 -0
- package/outputs/tests/BasicTestErrorTests.d.ts.map +1 -0
- package/outputs/tests/BasicTestErrorTests.js +236 -0
- package/outputs/tests/BasicTestErrorTests.js.map +1 -0
- package/outputs/tests/CharacterTableTests.d.ts +3 -0
- package/outputs/tests/CharacterTableTests.d.ts.map +1 -0
- package/outputs/tests/CharacterTableTests.js +24 -0
- package/outputs/tests/CharacterTableTests.js.map +1 -0
- package/outputs/tests/ClockTests.d.ts +5 -0
- package/outputs/tests/ClockTests.d.ts.map +1 -0
- package/outputs/tests/ClockTests.js +23 -0
- package/outputs/tests/ClockTests.js.map +1 -0
- package/outputs/tests/CommandLineParametersTests.d.ts +3 -0
- package/outputs/tests/CommandLineParametersTests.d.ts.map +1 -0
- package/outputs/tests/CommandLineParametersTests.js +58 -0
- package/outputs/tests/CommandLineParametersTests.js.map +1 -0
- package/outputs/tests/ConsoleTestRunnerUI.d.ts +49 -0
- package/outputs/tests/ConsoleTestRunnerUI.d.ts.map +1 -0
- package/outputs/tests/ConsoleTestRunnerUI.js +213 -0
- package/outputs/tests/ConsoleTestRunnerUI.js.map +1 -0
- package/outputs/tests/ConsoleTestRunnerUITests.d.ts +5 -0
- package/outputs/tests/ConsoleTestRunnerUITests.d.ts.map +1 -0
- package/outputs/tests/ConsoleTestRunnerUITests.js +26 -0
- package/outputs/tests/ConsoleTestRunnerUITests.js.map +1 -0
- package/outputs/tests/FakeClock.d.ts +16 -0
- package/outputs/tests/FakeClock.d.ts.map +1 -0
- package/outputs/tests/FakeClock.js +27 -0
- package/outputs/tests/FakeClock.js.map +1 -0
- package/outputs/tests/IndentedCharacterWriteStreamTests.d.ts +3 -0
- package/outputs/tests/IndentedCharacterWriteStreamTests.d.ts.map +1 -0
- package/outputs/tests/IndentedCharacterWriteStreamTests.js +269 -0
- package/outputs/tests/IndentedCharacterWriteStreamTests.js.map +1 -0
- package/outputs/tests/IndexableTests.d.ts +5 -0
- package/outputs/tests/IndexableTests.d.ts.map +1 -0
- package/outputs/tests/IndexableTests.js +46 -0
- package/outputs/tests/IndexableTests.js.map +1 -0
- package/outputs/tests/MutableIndexableTests.d.ts +5 -0
- package/outputs/tests/MutableIndexableTests.d.ts.map +1 -0
- package/outputs/tests/MutableIndexableTests.js +33 -0
- package/outputs/tests/MutableIndexableTests.js.map +1 -0
- package/outputs/tests/TestCreator.d.ts +15 -0
- package/outputs/tests/TestCreator.d.ts.map +1 -0
- package/outputs/tests/TestCreator.js +13 -0
- package/outputs/tests/TestCreator.js.map +1 -0
- package/outputs/tests/TestError.d.ts +31 -0
- package/outputs/tests/TestError.d.ts.map +1 -0
- package/outputs/tests/TestError.js +5 -0
- package/outputs/tests/TestError.js.map +1 -0
- package/outputs/tests/TestErrorCreator.d.ts +6 -0
- package/outputs/tests/TestErrorCreator.d.ts.map +1 -0
- package/outputs/tests/TestErrorCreator.js +7 -0
- package/outputs/tests/TestErrorCreator.js.map +1 -0
- package/outputs/tests/TokenizerTests.d.ts +3 -0
- package/outputs/tests/TokenizerTests.d.ts.map +1 -0
- package/outputs/tests/TokenizerTests.js +100 -0
- package/outputs/tests/TokenizerTests.js.map +1 -0
- package/outputs/tests/assertTest.d.ts +32 -0
- package/outputs/tests/assertTest.d.ts.map +1 -0
- package/outputs/tests/assertTest.js +75 -0
- package/outputs/tests/assertTest.js.map +1 -0
- package/outputs/tests/assertTestTests.d.ts +3 -0
- package/outputs/tests/assertTestTests.d.ts.map +1 -0
- package/outputs/tests/assertTestTests.js +49 -0
- package/outputs/tests/assertTestTests.js.map +1 -0
- package/outputs/tests/basicTestSkip.d.ts +20 -0
- package/outputs/tests/basicTestSkip.d.ts.map +1 -0
- package/outputs/tests/basicTestSkip.js +36 -0
- package/outputs/tests/basicTestSkip.js.map +1 -0
- package/outputs/tests/byteListStreamTests.d.ts +3 -0
- package/outputs/tests/byteListStreamTests.d.ts.map +1 -0
- package/outputs/tests/byteListStreamTests.js +247 -0
- package/outputs/tests/byteListStreamTests.js.map +1 -0
- package/outputs/tests/byteListTests.d.ts +3 -0
- package/outputs/tests/byteListTests.d.ts.map +1 -0
- package/outputs/tests/byteListTests.js +5 -0
- package/outputs/tests/byteListTests.js.map +1 -0
- package/outputs/tests/bytesTests.d.ts +3 -0
- package/outputs/tests/bytesTests.d.ts.map +1 -0
- package/outputs/tests/bytesTests.js +30 -0
- package/outputs/tests/bytesTests.js.map +1 -0
- package/outputs/tests/characterListStreamTests.d.ts +3 -0
- package/outputs/tests/characterListStreamTests.d.ts.map +1 -0
- package/outputs/tests/characterListStreamTests.js +247 -0
- package/outputs/tests/characterListStreamTests.js.map +1 -0
- package/outputs/tests/characterListTests.d.ts +3 -0
- package/outputs/tests/characterListTests.d.ts.map +1 -0
- package/outputs/tests/characterListTests.js +159 -0
- package/outputs/tests/characterListTests.js.map +1 -0
- package/outputs/tests/characterWriteStreamTests.d.ts +4 -0
- package/outputs/tests/characterWriteStreamTests.d.ts.map +1 -0
- package/outputs/tests/characterWriteStreamTests.js +7 -0
- package/outputs/tests/characterWriteStreamTests.js.map +1 -0
- package/outputs/tests/comparerTests.d.ts +3 -0
- package/outputs/tests/comparerTests.d.ts.map +1 -0
- package/outputs/tests/comparerTests.js +67 -0
- package/outputs/tests/comparerTests.js.map +1 -0
- package/outputs/tests/conditionTests.d.ts +3 -0
- package/outputs/tests/conditionTests.d.ts.map +1 -0
- package/outputs/tests/conditionTests.js +602 -0
- package/outputs/tests/conditionTests.js.map +1 -0
- package/outputs/tests/consoleTestRunner.d.ts +95 -0
- package/outputs/tests/consoleTestRunner.d.ts.map +1 -0
- package/outputs/tests/consoleTestRunner.js +351 -0
- package/outputs/tests/consoleTestRunner.js.map +1 -0
- package/outputs/tests/consoleTestRunnerTests.d.ts +3 -0
- package/outputs/tests/consoleTestRunnerTests.d.ts.map +1 -0
- package/outputs/tests/consoleTestRunnerTests.js +537 -0
- package/outputs/tests/consoleTestRunnerTests.js.map +1 -0
- package/outputs/tests/dateTimeTests.d.ts +3 -0
- package/outputs/tests/dateTimeTests.d.ts.map +1 -0
- package/outputs/tests/dateTimeTests.js +24 -0
- package/outputs/tests/dateTimeTests.js.map +1 -0
- package/outputs/tests/depthFirstSearchTests.d.ts +3 -0
- package/outputs/tests/depthFirstSearchTests.d.ts.map +1 -0
- package/outputs/tests/depthFirstSearchTests.js +61 -0
- package/outputs/tests/depthFirstSearchTests.js.map +1 -0
- package/outputs/tests/disposableTests.d.ts +3 -0
- package/outputs/tests/disposableTests.d.ts.map +1 -0
- package/outputs/tests/disposableTests.js +81 -0
- package/outputs/tests/disposableTests.js.map +1 -0
- package/outputs/tests/englishTests.d.ts +3 -0
- package/outputs/tests/englishTests.d.ts.map +1 -0
- package/outputs/tests/englishTests.js +68 -0
- package/outputs/tests/englishTests.js.map +1 -0
- package/outputs/tests/equalFunctionsTests.d.ts +3 -0
- package/outputs/tests/equalFunctionsTests.d.ts.map +1 -0
- package/outputs/tests/equalFunctionsTests.js +187 -0
- package/outputs/tests/equalFunctionsTests.js.map +1 -0
- package/outputs/tests/failedTest.d.ts +11 -0
- package/outputs/tests/failedTest.d.ts.map +1 -0
- package/outputs/tests/failedTest.js +21 -0
- package/outputs/tests/failedTest.js.map +1 -0
- package/outputs/tests/fetchHttpClientTests.d.ts +3 -0
- package/outputs/tests/fetchHttpClientTests.d.ts.map +1 -0
- package/outputs/tests/fetchHttpClientTests.js +21 -0
- package/outputs/tests/fetchHttpClientTests.js.map +1 -0
- package/outputs/tests/generatorTests.d.ts +3 -0
- package/outputs/tests/generatorTests.d.ts.map +1 -0
- package/outputs/tests/generatorTests.js +55 -0
- package/outputs/tests/generatorTests.js.map +1 -0
- package/outputs/tests/httpClientTests.d.ts +3 -0
- package/outputs/tests/httpClientTests.d.ts.map +1 -0
- package/outputs/tests/httpClientTests.js +12 -0
- package/outputs/tests/httpClientTests.js.map +1 -0
- package/outputs/tests/inMemoryCharacterWriteStreamTests.d.ts +3 -0
- package/outputs/tests/inMemoryCharacterWriteStreamTests.d.ts.map +1 -0
- package/outputs/tests/inMemoryCharacterWriteStreamTests.js +84 -0
- package/outputs/tests/inMemoryCharacterWriteStreamTests.js.map +1 -0
- package/outputs/tests/index.d.ts +12 -0
- package/outputs/tests/index.d.ts.map +1 -0
- package/outputs/tests/index.js +12 -0
- package/outputs/tests/index.js.map +1 -0
- package/outputs/tests/iterableTests.d.ts +5 -0
- package/outputs/tests/iterableTests.d.ts.map +1 -0
- package/outputs/tests/iterableTests.js +155 -0
- package/outputs/tests/iterableTests.js.map +1 -0
- package/outputs/tests/iteratorTests.d.ts +5 -0
- package/outputs/tests/iteratorTests.d.ts.map +1 -0
- package/outputs/tests/iteratorTests.js +728 -0
- package/outputs/tests/iteratorTests.js.map +1 -0
- package/outputs/tests/javascriptMapMapTests.d.ts +3 -0
- package/outputs/tests/javascriptMapMapTests.d.ts.map +1 -0
- package/outputs/tests/javascriptMapMapTests.js +14 -0
- package/outputs/tests/javascriptMapMapTests.js.map +1 -0
- package/outputs/tests/listTests.d.ts +3 -0
- package/outputs/tests/listTests.d.ts.map +1 -0
- package/outputs/tests/listTests.js +202 -0
- package/outputs/tests/listTests.js.map +1 -0
- package/outputs/tests/mapIteratorTests.d.ts +3 -0
- package/outputs/tests/mapIteratorTests.d.ts.map +1 -0
- package/outputs/tests/mapIteratorTests.js +27 -0
- package/outputs/tests/mapIteratorTests.js.map +1 -0
- package/outputs/tests/mapTests.d.ts +5 -0
- package/outputs/tests/mapTests.d.ts.map +1 -0
- package/outputs/tests/mapTests.js +64 -0
- package/outputs/tests/mapTests.js.map +1 -0
- package/outputs/tests/mutableConditionTests.d.ts +3 -0
- package/outputs/tests/mutableConditionTests.d.ts.map +1 -0
- package/outputs/tests/mutableConditionTests.js +174 -0
- package/outputs/tests/mutableConditionTests.js.map +1 -0
- package/outputs/tests/mutableMapTests.d.ts +5 -0
- package/outputs/tests/mutableMapTests.d.ts.map +1 -0
- package/outputs/tests/mutableMapTests.js +102 -0
- package/outputs/tests/mutableMapTests.js.map +1 -0
- package/outputs/tests/nodeJSHttpServerTests.d.ts +3 -0
- package/outputs/tests/nodeJSHttpServerTests.d.ts.map +1 -0
- package/outputs/tests/nodeJSHttpServerTests.js +50 -0
- package/outputs/tests/nodeJSHttpServerTests.js.map +1 -0
- package/outputs/tests/notFoundErrorTests.d.ts +3 -0
- package/outputs/tests/notFoundErrorTests.d.ts.map +1 -0
- package/outputs/tests/notFoundErrorTests.js +17 -0
- package/outputs/tests/notFoundErrorTests.js.map +1 -0
- package/outputs/tests/postConditionErrorTests.d.ts +3 -0
- package/outputs/tests/postConditionErrorTests.d.ts.map +1 -0
- package/outputs/tests/postConditionErrorTests.js +17 -0
- package/outputs/tests/postConditionErrorTests.js.map +1 -0
- package/outputs/tests/preConditionErrorTests.d.ts +3 -0
- package/outputs/tests/preConditionErrorTests.d.ts.map +1 -0
- package/outputs/tests/preConditionErrorTests.js +17 -0
- package/outputs/tests/preConditionErrorTests.js.map +1 -0
- package/outputs/tests/promiseAsyncResultTests.d.ts +3 -0
- package/outputs/tests/promiseAsyncResultTests.d.ts.map +1 -0
- package/outputs/tests/promiseAsyncResultTests.js +487 -0
- package/outputs/tests/promiseAsyncResultTests.js.map +1 -0
- package/outputs/tests/propertyTests.d.ts +3 -0
- package/outputs/tests/propertyTests.d.ts.map +1 -0
- package/outputs/tests/propertyTests.js +41 -0
- package/outputs/tests/propertyTests.js.map +1 -0
- package/outputs/tests/queueTests.d.ts +3 -0
- package/outputs/tests/queueTests.d.ts.map +1 -0
- package/outputs/tests/queueTests.js +20 -0
- package/outputs/tests/queueTests.js.map +1 -0
- package/outputs/tests/recreationDotGovClientTests.d.ts +3 -0
- package/outputs/tests/recreationDotGovClientTests.d.ts.map +1 -0
- package/outputs/tests/recreationDotGovClientTests.js +111 -0
- package/outputs/tests/recreationDotGovClientTests.js.map +1 -0
- package/outputs/tests/setTests.d.ts +3 -0
- package/outputs/tests/setTests.d.ts.map +1 -0
- package/outputs/tests/setTests.js +92 -0
- package/outputs/tests/setTests.js.map +1 -0
- package/outputs/tests/skippedTest.d.ts +11 -0
- package/outputs/tests/skippedTest.d.ts.map +1 -0
- package/outputs/tests/skippedTest.js +21 -0
- package/outputs/tests/skippedTest.js.map +1 -0
- package/outputs/tests/stackTests.d.ts +3 -0
- package/outputs/tests/stackTests.d.ts.map +1 -0
- package/outputs/tests/stackTests.js +45 -0
- package/outputs/tests/stackTests.js.map +1 -0
- package/outputs/tests/stringComparerTests.d.ts +3 -0
- package/outputs/tests/stringComparerTests.d.ts.map +1 -0
- package/outputs/tests/stringComparerTests.js +47 -0
- package/outputs/tests/stringComparerTests.js.map +1 -0
- package/outputs/tests/stringIteratorTests.d.ts +3 -0
- package/outputs/tests/stringIteratorTests.d.ts.map +1 -0
- package/outputs/tests/stringIteratorTests.js +81 -0
- package/outputs/tests/stringIteratorTests.js.map +1 -0
- package/outputs/tests/stringsTests.d.ts +3 -0
- package/outputs/tests/stringsTests.d.ts.map +1 -0
- package/outputs/tests/stringsTests.js +384 -0
- package/outputs/tests/stringsTests.js.map +1 -0
- package/outputs/tests/syncResultTests.d.ts +3 -0
- package/outputs/tests/syncResultTests.d.ts.map +1 -0
- package/outputs/tests/syncResultTests.js +900 -0
- package/outputs/tests/syncResultTests.js.map +1 -0
- package/outputs/tests/test.d.ts +144 -0
- package/outputs/tests/test.d.ts.map +1 -0
- package/outputs/tests/test.js +145 -0
- package/outputs/tests/test.js.map +1 -0
- package/outputs/tests/testAction.d.ts +22 -0
- package/outputs/tests/testAction.d.ts.map +1 -0
- package/outputs/tests/testAction.js +56 -0
- package/outputs/tests/testAction.js.map +1 -0
- package/outputs/tests/testActionTests.d.ts +3 -0
- package/outputs/tests/testActionTests.d.ts.map +1 -0
- package/outputs/tests/testActionTests.js +56 -0
- package/outputs/tests/testActionTests.js.map +1 -0
- package/outputs/tests/testFailureTests.d.ts +3 -0
- package/outputs/tests/testFailureTests.d.ts.map +1 -0
- package/outputs/tests/testFailureTests.js +7 -0
- package/outputs/tests/testFailureTests.js.map +1 -0
- package/outputs/tests/testRunner.d.ts +107 -0
- package/outputs/tests/testRunner.d.ts.map +1 -0
- package/outputs/tests/testRunner.js +63 -0
- package/outputs/tests/testRunner.js.map +1 -0
- package/outputs/tests/testRunnerTests.d.ts +4 -0
- package/outputs/tests/testRunnerTests.d.ts.map +1 -0
- package/outputs/tests/testRunnerTests.js +258 -0
- package/outputs/tests/testRunnerTests.js.map +1 -0
- package/outputs/tests/testSkip.d.ts +24 -0
- package/outputs/tests/testSkip.d.ts.map +1 -0
- package/outputs/tests/testSkip.js +19 -0
- package/outputs/tests/testSkip.js.map +1 -0
- package/outputs/tests/tests.d.ts +2 -0
- package/outputs/tests/tests.d.ts.map +1 -0
- package/outputs/tests/tests.js +115 -0
- package/outputs/tests/tests.js.map +1 -0
- package/outputs/tests/toStringFunctionsTests.d.ts +3 -0
- package/outputs/tests/toStringFunctionsTests.d.ts.map +1 -0
- package/outputs/tests/toStringFunctionsTests.js +43 -0
- package/outputs/tests/toStringFunctionsTests.js.map +1 -0
- package/outputs/tests/typesTests.d.ts +3 -0
- package/outputs/tests/typesTests.d.ts.map +1 -0
- package/outputs/tests/typesTests.js +194 -0
- package/outputs/tests/typesTests.js.map +1 -0
- package/outputs/tests/whereIteratorTests.d.ts +3 -0
- package/outputs/tests/whereIteratorTests.d.ts.map +1 -0
- package/outputs/tests/whereIteratorTests.js +30 -0
- package/outputs/tests/whereIteratorTests.js.map +1 -0
- package/outputs/tests/wonderlandTrailClientTests.d.ts +3 -0
- package/outputs/tests/wonderlandTrailClientTests.d.ts.map +1 -0
- package/outputs/tests/wonderlandTrailClientTests.js +272 -0
- package/outputs/tests/wonderlandTrailClientTests.js.map +1 -0
- package/package.json +48 -48
- package/outputs/characterWriteStream-CzPcNOCD.d.cts +0 -845
- package/outputs/characterWriteStream-CzPcNOCD.d.ts +0 -845
- package/outputs/chunk-FZ3WRQ7B.js +0 -1199
- package/outputs/chunk-FZ3WRQ7B.js.map +0 -1
- package/outputs/chunk-MHMLVX2O.js +0 -9590
- package/outputs/chunk-MHMLVX2O.js.map +0 -1
- package/outputs/sourceIndex.cjs +0 -9790
- package/outputs/sourceIndex.cjs.map +0 -1
- package/outputs/sourceIndex.d.cts +0 -3532
- package/outputs/sourceIndex.d.ts +0 -3532
- package/outputs/sourceIndex.js +0 -349
- package/outputs/sourceIndex.js.map +0 -1
- package/outputs/testIndex.cjs +0 -7046
- package/outputs/testIndex.cjs.map +0 -1
- package/outputs/testIndex.d.cts +0 -544
- package/outputs/testIndex.d.ts +0 -544
- package/outputs/testIndex.js +0 -55
- package/outputs/testIndex.js.map +0 -1
- package/outputs/tests.cjs +0 -19372
- package/outputs/tests.cjs.map +0 -1
- package/outputs/tests.d.cts +0 -3
- package/outputs/tests.d.ts +0 -3
- package/outputs/tests.js +0 -10017
- package/outputs/tests.js.map +0 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as luxon from "luxon";
|
|
2
|
+
import { DateTime } from "./dateTime.js";
|
|
3
|
+
const pctTimeZone = "America/Los_Angeles";
|
|
4
|
+
export class LuxonDateTime {
|
|
5
|
+
dateTime;
|
|
6
|
+
constructor(dateTime) {
|
|
7
|
+
this.dateTime = dateTime;
|
|
8
|
+
}
|
|
9
|
+
static create(dateTime) {
|
|
10
|
+
return new LuxonDateTime(dateTime);
|
|
11
|
+
}
|
|
12
|
+
static parse(text) {
|
|
13
|
+
return LuxonDateTime.create(luxon.DateTime.fromISO(text, { zone: pctTimeZone }));
|
|
14
|
+
}
|
|
15
|
+
static now() {
|
|
16
|
+
return LuxonDateTime.create(luxon.DateTime.now().setZone(pctTimeZone));
|
|
17
|
+
}
|
|
18
|
+
getYear() {
|
|
19
|
+
return this.dateTime.year;
|
|
20
|
+
}
|
|
21
|
+
getMonth() {
|
|
22
|
+
return this.dateTime.month;
|
|
23
|
+
}
|
|
24
|
+
getDay() {
|
|
25
|
+
return this.dateTime.day;
|
|
26
|
+
}
|
|
27
|
+
getHour() {
|
|
28
|
+
return this.dateTime.hour;
|
|
29
|
+
}
|
|
30
|
+
getMinute() {
|
|
31
|
+
return this.dateTime.minute;
|
|
32
|
+
}
|
|
33
|
+
getSecond() {
|
|
34
|
+
return this.dateTime.second;
|
|
35
|
+
}
|
|
36
|
+
addDays(days) {
|
|
37
|
+
return LuxonDateTime.create(this.dateTime.plus({ days: days }));
|
|
38
|
+
}
|
|
39
|
+
toString() {
|
|
40
|
+
return this.dateTime.toISO();
|
|
41
|
+
}
|
|
42
|
+
toDateString() {
|
|
43
|
+
return this.dateTime.toISODate();
|
|
44
|
+
}
|
|
45
|
+
toShortDateString() {
|
|
46
|
+
return `${this.dateTime.monthShort} ${this.dateTime.day}`;
|
|
47
|
+
}
|
|
48
|
+
compareTo(dateTime, compareTimes) {
|
|
49
|
+
return DateTime.compareTo(this, dateTime, compareTimes);
|
|
50
|
+
}
|
|
51
|
+
lessThan(dateTime, compareTimes) {
|
|
52
|
+
return DateTime.lessThan(this, dateTime, compareTimes);
|
|
53
|
+
}
|
|
54
|
+
lessThanOrEqualTo(dateTime, compareTimes) {
|
|
55
|
+
return DateTime.lessThanOrEqualTo(this, dateTime, compareTimes);
|
|
56
|
+
}
|
|
57
|
+
equals(dateTime, compareTimes) {
|
|
58
|
+
return DateTime.equals(this, dateTime, compareTimes);
|
|
59
|
+
}
|
|
60
|
+
greaterThanOrEqualTo(dateTime, compareTimes) {
|
|
61
|
+
return DateTime.greaterThanOrEqualTo(this, dateTime, compareTimes);
|
|
62
|
+
}
|
|
63
|
+
greaterThan(dateTime, compareTimes) {
|
|
64
|
+
return DateTime.greaterThan(this, dateTime, compareTimes);
|
|
65
|
+
}
|
|
66
|
+
get debug() {
|
|
67
|
+
return DateTime.debug(this);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=luxonDateTime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"luxonDateTime.js","sourceRoot":"","sources":["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CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC;CACJ"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { EqualFunctions } from "./equalFunctions.js";
|
|
2
|
+
import { Iterable } from "./iterable.js";
|
|
3
|
+
import { Iterator } from "./iterator.js";
|
|
4
|
+
import { JavascriptIterable, JavascriptIterator } from "./javascript.js";
|
|
5
|
+
import { MutableMap } from "./mutableMap.js";
|
|
6
|
+
import { SyncResult } from "./syncResult.js";
|
|
7
|
+
import { ToStringFunctions } from "./toStringFunctions.js";
|
|
8
|
+
import { Type } from "./types.js";
|
|
9
|
+
/**
|
|
10
|
+
* Get whether the provided value is {@link Map}.
|
|
11
|
+
* @param value The value to check.
|
|
12
|
+
*/
|
|
13
|
+
export declare function isMap(value: unknown): value is Map<unknown, unknown>;
|
|
14
|
+
/**
|
|
15
|
+
* An entry within a {@link Map}.
|
|
16
|
+
*/
|
|
17
|
+
export interface MapEntry<TKey, TValue> {
|
|
18
|
+
/**
|
|
19
|
+
* The key of the {@link MapEntry}.
|
|
20
|
+
*/
|
|
21
|
+
readonly key: TKey;
|
|
22
|
+
/**
|
|
23
|
+
* The value of the {@link MapEntry}.
|
|
24
|
+
*/
|
|
25
|
+
readonly value: TValue;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A type that maps {@link TKey} values to {@link TValue} values.
|
|
29
|
+
*/
|
|
30
|
+
export declare abstract class Map<TKey, TValue> implements Iterable<MapEntry<TKey, TValue>> {
|
|
31
|
+
/**
|
|
32
|
+
* Create a new instance of the default {@link MutableMap} implementation.
|
|
33
|
+
*/
|
|
34
|
+
static create<TKey, TValue>(): MutableMap<TKey, TValue>;
|
|
35
|
+
/**
|
|
36
|
+
* Iterate over the entries in this {@link Map}.
|
|
37
|
+
*/
|
|
38
|
+
abstract iterate(): Iterator<MapEntry<TKey, TValue>>;
|
|
39
|
+
any(): SyncResult<boolean>;
|
|
40
|
+
static any<TKey, TValue>(map: Map<TKey, TValue>): SyncResult<boolean>;
|
|
41
|
+
toArray(): SyncResult<MapEntry<TKey, TValue>[]>;
|
|
42
|
+
static toArray<TKey, TValue>(map: Map<TKey, TValue>): SyncResult<MapEntry<TKey, TValue>[]>;
|
|
43
|
+
equals(right: Iterable<MapEntry<TKey, TValue>>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
44
|
+
static equals<TKey, TValue>(left: Map<TKey, TValue>, right: Iterable<MapEntry<TKey, TValue>>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
45
|
+
/**
|
|
46
|
+
* Get the {@link String} representation of this {@link Map}.
|
|
47
|
+
*/
|
|
48
|
+
toString(toStringFunctions?: ToStringFunctions): string;
|
|
49
|
+
/**
|
|
50
|
+
* Get the {@link String} representation of the provided {@link Map}.
|
|
51
|
+
*/
|
|
52
|
+
static toString<TKey, TValue>(map: Map<TKey, TValue>, toStringFunctions?: ToStringFunctions): string;
|
|
53
|
+
concatenate(...toConcatenate: JavascriptIterable<MapEntry<TKey, TValue>>[]): Iterable<MapEntry<TKey, TValue>>;
|
|
54
|
+
static concatenate<TKey, TValue>(map: Map<TKey, TValue>, ...toConcatenate: JavascriptIterable<MapEntry<TKey, TValue>>[]): Iterable<MapEntry<TKey, TValue>>;
|
|
55
|
+
map<TOutput>(mapping: (value: MapEntry<TKey, TValue>) => (TOutput | SyncResult<TOutput>)): Iterable<TOutput>;
|
|
56
|
+
static map<TKey, TValue, TOutput>(map: Map<TKey, TValue>, mapping: (value: MapEntry<TKey, TValue>) => (TOutput | SyncResult<TOutput>)): Iterable<TOutput>;
|
|
57
|
+
flatMap<TOutput>(mapping: (value: MapEntry<TKey, TValue>) => JavascriptIterable<TOutput>): Iterable<TOutput>;
|
|
58
|
+
static flatMap<TKey, TValue, TOutput>(map: Map<TKey, TValue>, mapping: (value: MapEntry<TKey, TValue>) => JavascriptIterable<TOutput>): Iterable<TOutput>;
|
|
59
|
+
where(condition: (value: MapEntry<TKey, TValue>) => (boolean | SyncResult<boolean>)): Iterable<MapEntry<TKey, TValue>>;
|
|
60
|
+
static where<TKey, TValue>(map: Map<TKey, TValue>, condition: (value: MapEntry<TKey, TValue>) => (boolean | SyncResult<boolean>)): Iterable<MapEntry<TKey, TValue>>;
|
|
61
|
+
instanceOf<T extends MapEntry<TKey, TValue>>(typeOrTypeCheck: Type<T> | ((value: MapEntry<TKey, TValue>) => value is T)): Iterable<T>;
|
|
62
|
+
static instanceOf<TKey, TValue, T extends MapEntry<TKey, TValue>>(map: Map<TKey, TValue>, typeOrTypeCheck: Type<T> | ((value: MapEntry<TKey, TValue>) => value is T)): Iterable<T>;
|
|
63
|
+
[Symbol.iterator](): JavascriptIterator<MapEntry<TKey, TValue>>;
|
|
64
|
+
static [Symbol.iterator]<TKey, TValue>(map: Map<TKey, TValue>): JavascriptIterator<MapEntry<TKey, TValue>>;
|
|
65
|
+
/**
|
|
66
|
+
* Get the number of entries in this {@link Map}.
|
|
67
|
+
*/
|
|
68
|
+
getCount(): SyncResult<number>;
|
|
69
|
+
static getCount<TKey, TValue>(map: Map<TKey, TValue>): SyncResult<number>;
|
|
70
|
+
first(condition?: (entry: MapEntry<TKey, TValue>) => (boolean | SyncResult<boolean>)): SyncResult<MapEntry<TKey, TValue>>;
|
|
71
|
+
static first<TKey, TValue>(map: Map<TKey, TValue>, condition?: (entry: MapEntry<TKey, TValue>) => (boolean | SyncResult<boolean>)): SyncResult<MapEntry<TKey, TValue>>;
|
|
72
|
+
last(condition?: (entry: MapEntry<TKey, TValue>) => (boolean | SyncResult<boolean>)): SyncResult<MapEntry<TKey, TValue>>;
|
|
73
|
+
static last<TKey, TValue>(map: Map<TKey, TValue>, condition?: (entry: MapEntry<TKey, TValue>) => (boolean | SyncResult<boolean>)): SyncResult<MapEntry<TKey, TValue>>;
|
|
74
|
+
/**
|
|
75
|
+
* Get whether this {@link Map} contains the provided key.
|
|
76
|
+
* @param key The key to look for.
|
|
77
|
+
*/
|
|
78
|
+
abstract containsKey(key: TKey): SyncResult<boolean>;
|
|
79
|
+
/**
|
|
80
|
+
* Get the value associated with the provided key.
|
|
81
|
+
* @param key The key of the value to get.
|
|
82
|
+
*/
|
|
83
|
+
abstract get(key: TKey): SyncResult<TValue>;
|
|
84
|
+
/**
|
|
85
|
+
* Iterate over the keys in this {@link Map}.
|
|
86
|
+
*/
|
|
87
|
+
iterateKeys(): Iterator<TKey>;
|
|
88
|
+
/**
|
|
89
|
+
* Iterate over the keys in the {@link Map}.
|
|
90
|
+
* @param map The map to iterate over.
|
|
91
|
+
*/
|
|
92
|
+
static iterateKeys<TKey, TValue>(map: Map<TKey, TValue>): Iterator<TKey>;
|
|
93
|
+
/**
|
|
94
|
+
* Iterate over the values in this {@link Map}.
|
|
95
|
+
*/
|
|
96
|
+
iterateValues(): Iterator<TValue>;
|
|
97
|
+
/**
|
|
98
|
+
* Iterate over the keys in the {@link Map}.
|
|
99
|
+
* @param map The map to iterate over.
|
|
100
|
+
*/
|
|
101
|
+
static iterateValues<TKey, TValue>(map: Map<TKey, TValue>): Iterator<TValue>;
|
|
102
|
+
contains(value: MapEntry<TKey, TValue>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
103
|
+
static contains<TKey, TValue>(map: Map<TKey, TValue>, value: MapEntry<TKey, TValue>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=map.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../sources/map.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;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ACI,aAAa,IAAI,QAAQ,CAAC,MAAM,CAAC,CAGvC;IAED;;;OAGG;IACH,OAAc,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,CAKlF;IAEM,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,EAAC,MAAM,CAAC,EAAE,cAAc,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,CAGlG;IAED,OAAc,QAAQ,CAAC,IAAI,EAAC,MAAM,EAAE,GAAG,EAAE,GAAG,CAAC,IAAI,EAAC,MAAM,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,IAAI,EAAC,MAAM,CAAC,EAAE,cAAc,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,CAc7I;CACJ"}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { Comparer } from "./comparer.js";
|
|
2
|
+
import { EqualFunctions } from "./equalFunctions.js";
|
|
3
|
+
import { Iterable } from "./iterable.js";
|
|
4
|
+
import { MutableMap } from "./mutableMap.js";
|
|
5
|
+
import { NotFoundError } from "./notFoundError.js";
|
|
6
|
+
import { PreCondition } from "./preCondition.js";
|
|
7
|
+
import { join } from "./strings.js";
|
|
8
|
+
import { SyncResult } from "./syncResult.js";
|
|
9
|
+
import { ToStringFunctions } from "./toStringFunctions.js";
|
|
10
|
+
import { hasFunction, isUndefinedOrNull } from "./types.js";
|
|
11
|
+
/**
|
|
12
|
+
* Get whether the provided value is {@link Map}.
|
|
13
|
+
* @param value The value to check.
|
|
14
|
+
*/
|
|
15
|
+
export function isMap(value) {
|
|
16
|
+
return value instanceof Map ||
|
|
17
|
+
(hasFunction(value, "containsKey", 1) &&
|
|
18
|
+
hasFunction(value, "get", 1) &&
|
|
19
|
+
hasFunction(value, "set", 2) &&
|
|
20
|
+
hasFunction(value, "iterateKeys", 0) &&
|
|
21
|
+
hasFunction(value, "iterateValues", 0));
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* A type that maps {@link TKey} values to {@link TValue} values.
|
|
25
|
+
*/
|
|
26
|
+
export class Map {
|
|
27
|
+
/**
|
|
28
|
+
* Create a new instance of the default {@link MutableMap} implementation.
|
|
29
|
+
*/
|
|
30
|
+
static create() {
|
|
31
|
+
return MutableMap.create();
|
|
32
|
+
}
|
|
33
|
+
any() {
|
|
34
|
+
return Map.any(this);
|
|
35
|
+
}
|
|
36
|
+
static any(map) {
|
|
37
|
+
return Iterable.any(map);
|
|
38
|
+
}
|
|
39
|
+
toArray() {
|
|
40
|
+
return Map.toArray(this);
|
|
41
|
+
}
|
|
42
|
+
static toArray(map) {
|
|
43
|
+
return Iterable.toArray(map);
|
|
44
|
+
}
|
|
45
|
+
equals(right, equalFunctions) {
|
|
46
|
+
return Map.equals(this, right, equalFunctions);
|
|
47
|
+
}
|
|
48
|
+
static equals(left, right, equalFunctions) {
|
|
49
|
+
return SyncResult.create(() => {
|
|
50
|
+
if (isUndefinedOrNull(equalFunctions)) {
|
|
51
|
+
equalFunctions = EqualFunctions.create();
|
|
52
|
+
}
|
|
53
|
+
let result = Comparer.equalSameUndefinedNull(left, right);
|
|
54
|
+
if (result === undefined) {
|
|
55
|
+
result = true;
|
|
56
|
+
for (const entry of right) {
|
|
57
|
+
result = left.get(entry.key)
|
|
58
|
+
.then((value) => equalFunctions.areEqual(value, entry.value).await())
|
|
59
|
+
.catch(() => false)
|
|
60
|
+
.await();
|
|
61
|
+
if (result === false) {
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return result;
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Get the {@link String} representation of this {@link Map}.
|
|
71
|
+
*/
|
|
72
|
+
toString(toStringFunctions) {
|
|
73
|
+
return Map.toString(this, toStringFunctions);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Get the {@link String} representation of the provided {@link Map}.
|
|
77
|
+
*/
|
|
78
|
+
static toString(map, toStringFunctions) {
|
|
79
|
+
PreCondition.assertNotUndefinedAndNotNull(map, "iterable");
|
|
80
|
+
if (!toStringFunctions) {
|
|
81
|
+
toStringFunctions = ToStringFunctions.create();
|
|
82
|
+
}
|
|
83
|
+
return `{${join(",", map.map((entry) => `${toStringFunctions.toString(entry.key)}:${toStringFunctions.toString(entry.value)}`))}}`;
|
|
84
|
+
}
|
|
85
|
+
concatenate(...toConcatenate) {
|
|
86
|
+
return Map.concatenate(this, ...toConcatenate);
|
|
87
|
+
}
|
|
88
|
+
static concatenate(map, ...toConcatenate) {
|
|
89
|
+
return Iterable.concatenate(map, ...toConcatenate);
|
|
90
|
+
}
|
|
91
|
+
map(mapping) {
|
|
92
|
+
return Map.map(this, mapping);
|
|
93
|
+
}
|
|
94
|
+
static map(map, mapping) {
|
|
95
|
+
return Iterable.map(map, mapping);
|
|
96
|
+
}
|
|
97
|
+
flatMap(mapping) {
|
|
98
|
+
return Map.flatMap(this, mapping);
|
|
99
|
+
}
|
|
100
|
+
static flatMap(map, mapping) {
|
|
101
|
+
return Iterable.flatMap(map, mapping);
|
|
102
|
+
}
|
|
103
|
+
where(condition) {
|
|
104
|
+
return Map.where(this, condition);
|
|
105
|
+
}
|
|
106
|
+
static where(map, condition) {
|
|
107
|
+
return Iterable.where(map, condition);
|
|
108
|
+
}
|
|
109
|
+
instanceOf(typeOrTypeCheck) {
|
|
110
|
+
return Map.instanceOf(this, typeOrTypeCheck);
|
|
111
|
+
}
|
|
112
|
+
static instanceOf(map, typeOrTypeCheck) {
|
|
113
|
+
return Iterable.instanceOf(map, typeOrTypeCheck);
|
|
114
|
+
}
|
|
115
|
+
[Symbol.iterator]() {
|
|
116
|
+
return Map[Symbol.iterator](this);
|
|
117
|
+
}
|
|
118
|
+
static [Symbol.iterator](map) {
|
|
119
|
+
return Iterable[Symbol.iterator](map);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Get the number of entries in this {@link Map}.
|
|
123
|
+
*/
|
|
124
|
+
getCount() {
|
|
125
|
+
return Map.getCount(this);
|
|
126
|
+
}
|
|
127
|
+
static getCount(map) {
|
|
128
|
+
return Iterable.getCount(map);
|
|
129
|
+
}
|
|
130
|
+
first(condition) {
|
|
131
|
+
return Map.first(this, condition);
|
|
132
|
+
}
|
|
133
|
+
static first(map, condition) {
|
|
134
|
+
return Iterable.first(map, condition);
|
|
135
|
+
}
|
|
136
|
+
last(condition) {
|
|
137
|
+
return Map.last(this, condition);
|
|
138
|
+
}
|
|
139
|
+
static last(map, condition) {
|
|
140
|
+
return Iterable.last(map, condition);
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Iterate over the keys in this {@link Map}.
|
|
144
|
+
*/
|
|
145
|
+
iterateKeys() {
|
|
146
|
+
return Map.iterateKeys(this);
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Iterate over the keys in the {@link Map}.
|
|
150
|
+
* @param map The map to iterate over.
|
|
151
|
+
*/
|
|
152
|
+
static iterateKeys(map) {
|
|
153
|
+
PreCondition.assertNotUndefinedAndNotNull(map, "map");
|
|
154
|
+
return map.iterate().map((entry) => entry.key);
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Iterate over the values in this {@link Map}.
|
|
158
|
+
*/
|
|
159
|
+
iterateValues() {
|
|
160
|
+
return Map.iterateValues(this);
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Iterate over the keys in the {@link Map}.
|
|
164
|
+
* @param map The map to iterate over.
|
|
165
|
+
*/
|
|
166
|
+
static iterateValues(map) {
|
|
167
|
+
PreCondition.assertNotUndefinedAndNotNull(map, "map");
|
|
168
|
+
return map.iterate().map((entry) => entry.value);
|
|
169
|
+
}
|
|
170
|
+
contains(value, equalFunctions) {
|
|
171
|
+
return Map.contains(this, value, equalFunctions);
|
|
172
|
+
}
|
|
173
|
+
static contains(map, value, equalFunctions) {
|
|
174
|
+
return SyncResult.create(() => {
|
|
175
|
+
if (!equalFunctions) {
|
|
176
|
+
equalFunctions = EqualFunctions.create();
|
|
177
|
+
}
|
|
178
|
+
return map.get(value.key)
|
|
179
|
+
.then(entryValue => equalFunctions.areEqual(entryValue, value.value).await())
|
|
180
|
+
.catch(NotFoundError, () => false)
|
|
181
|
+
.await();
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
//# sourceMappingURL=map.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map.js","sourceRoot":"","sources":["../../sources/map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAQ,MAAM,YAAY,CAAC;AAElE;;;GAGG;AACH,MAAM,UAAU,KAAK,CAAC,KAAc;IAEhC,OAAO,KAAK,YAAY,GAAG;QACvB,CACI,WAAW,CAAC,KAAK,EAAE,aAAa,EAAE,CAAC,CAAC;YACpC,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;YAC5B,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;YAC5B,WAAW,CAAC,KAAK,EAAE,aAAa,EAAE,CAA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,KAA6B,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC7E,CAAC;IAEM,QAAQ,CAAC,KAA4B,EAAE,cAA+B;QAEzE,OAAO,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC;IACrD,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAc,GAAqB,EAAE,KAA4B,EAAE,cAA+B;QAEpH,OAAO,UAAU,CAAC,MAAM,CAAC,GAAG,EAAE;YAE1B,IAAI,CAAC,cAAc,EACnB,CAAC;gBACG,cAAc,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC;YAC7C,CAAC;YAED,OAAO,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC;iBACpB,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,cAAe,CAAC,QAAQ,CAAC,UAAU,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,CAAC;iBAC7E,KAAK,CAAC,aAAa,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC;iBACjC,KAAK,EAAE,CAAC;QACjB,CAAC,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Type } from "./types.js";
|
|
2
|
+
import { AsyncIterator } from "./asyncIterator.js";
|
|
3
|
+
import { PromiseAsyncResult } from "./promiseAsyncResult.js";
|
|
4
|
+
import { JavascriptAsyncIterator } from "./javascript.js";
|
|
5
|
+
/**
|
|
6
|
+
* An {@link AsyncIterator} that maps {@link TInput} values to {@link TOutput} values.
|
|
7
|
+
*/
|
|
8
|
+
export declare class MapAsyncIterator<TInput, TOutput> implements AsyncIterator<TOutput> {
|
|
9
|
+
private readonly inputIterator;
|
|
10
|
+
private readonly mapping;
|
|
11
|
+
private current;
|
|
12
|
+
private started;
|
|
13
|
+
protected constructor(inputIterator: AsyncIterator<TInput>, mapping: (value: TInput) => (TOutput | PromiseLike<TOutput>));
|
|
14
|
+
static create<TInput, TOutput>(inputIterator: AsyncIterator<TInput>, mapping: (value: TInput) => (TOutput | PromiseLike<TOutput>)): MapAsyncIterator<TInput, TOutput>;
|
|
15
|
+
next(): PromiseAsyncResult<boolean>;
|
|
16
|
+
hasStarted(): boolean;
|
|
17
|
+
hasCurrent(): boolean;
|
|
18
|
+
getCurrent(): TOutput;
|
|
19
|
+
start(): PromiseAsyncResult<this>;
|
|
20
|
+
takeCurrent(): PromiseAsyncResult<TOutput>;
|
|
21
|
+
any(): PromiseAsyncResult<boolean>;
|
|
22
|
+
getCount(): PromiseAsyncResult<number>;
|
|
23
|
+
toArray(): PromiseAsyncResult<TOutput[]>;
|
|
24
|
+
map<TOutput2>(mapping: (value: TOutput) => (TOutput2 | PromiseLike<TOutput2>)): AsyncIterator<TOutput2>;
|
|
25
|
+
[Symbol.asyncIterator](): JavascriptAsyncIterator<TOutput>;
|
|
26
|
+
first(condition?: (value: TOutput) => boolean): PromiseAsyncResult<TOutput>;
|
|
27
|
+
last(): PromiseAsyncResult<TOutput>;
|
|
28
|
+
where(condition: (value: TOutput) => (boolean | PromiseLike<boolean>)): AsyncIterator<TOutput>;
|
|
29
|
+
whereInstanceOf<U extends TOutput>(typeCheck: (value: TOutput) => value is U): AsyncIterator<U>;
|
|
30
|
+
whereInstanceOfType<U extends TOutput>(type: Type<U>): AsyncIterator<U>;
|
|
31
|
+
take(maximumToTake: number): AsyncIterator<TOutput>;
|
|
32
|
+
skip(maximumToSkip: number): AsyncIterator<TOutput>;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=mapAsyncIterator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapAsyncIterator.d.ts","sourceRoot":"","sources":["../../sources/mapAsyncIterator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,k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AAW,CAAC,QAAQ,CAAC,CAAC,GAAG,aAAa,CAAC,QAAQ,CAAC,CAG7G;IAEM,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,uBAAuB,CAAC,OAAO,CAAC,CAGhE;IAEM,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAGjF;IAEM,IAAI,IAAI,kBAAkB,CAAC,OAAO,CAAC,CAGzC;IAEM,KAAK,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,GAAG,aAAa,CAAC,OAAO,CAAC,CAGpG;IAEM,eAAe,CAAC,CAAC,SAAS,OAAO,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,KAAK,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAGrG;IAEM,mBAAmB,CAAC,CAAC,SAAS,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAG7E;IAEM,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,aAAa,CAAC,OAAO,CAAC,CAGzD;IAEM,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,aAAa,CAAC,OAAO,CAAC,CAGzD;CACJ"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { PreCondition } from "./preCondition.js";
|
|
2
|
+
import { AsyncIterator } from "./asyncIterator.js";
|
|
3
|
+
import { PromiseAsyncResult } from "./promiseAsyncResult.js";
|
|
4
|
+
/**
|
|
5
|
+
* An {@link AsyncIterator} that maps {@link TInput} values to {@link TOutput} values.
|
|
6
|
+
*/
|
|
7
|
+
export class MapAsyncIterator {
|
|
8
|
+
inputIterator;
|
|
9
|
+
mapping;
|
|
10
|
+
current;
|
|
11
|
+
started;
|
|
12
|
+
constructor(inputIterator, mapping) {
|
|
13
|
+
PreCondition.assertNotUndefinedAndNotNull(inputIterator, "inputIterator");
|
|
14
|
+
PreCondition.assertNotUndefinedAndNotNull(mapping, "mapping");
|
|
15
|
+
this.inputIterator = inputIterator;
|
|
16
|
+
this.mapping = mapping;
|
|
17
|
+
this.started = false;
|
|
18
|
+
}
|
|
19
|
+
static create(inputIterator, mapping) {
|
|
20
|
+
return new MapAsyncIterator(inputIterator, mapping);
|
|
21
|
+
}
|
|
22
|
+
next() {
|
|
23
|
+
return PromiseAsyncResult.create(async () => {
|
|
24
|
+
if (!this.hasStarted()) {
|
|
25
|
+
this.started = true;
|
|
26
|
+
await this.inputIterator.start();
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
await this.inputIterator.next();
|
|
30
|
+
}
|
|
31
|
+
const result = this.inputIterator.hasCurrent();
|
|
32
|
+
this.current = result
|
|
33
|
+
? await this.mapping(this.inputIterator.getCurrent())
|
|
34
|
+
: undefined;
|
|
35
|
+
return result;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
hasStarted() {
|
|
39
|
+
return this.started;
|
|
40
|
+
}
|
|
41
|
+
hasCurrent() {
|
|
42
|
+
return this.hasStarted() && this.inputIterator.hasCurrent();
|
|
43
|
+
}
|
|
44
|
+
getCurrent() {
|
|
45
|
+
PreCondition.assertTrue(this.hasCurrent(), "this.hasCurrent()");
|
|
46
|
+
return this.current;
|
|
47
|
+
}
|
|
48
|
+
start() {
|
|
49
|
+
return AsyncIterator.start(this);
|
|
50
|
+
}
|
|
51
|
+
takeCurrent() {
|
|
52
|
+
return AsyncIterator.takeCurrent(this);
|
|
53
|
+
}
|
|
54
|
+
any() {
|
|
55
|
+
return AsyncIterator.any(this);
|
|
56
|
+
}
|
|
57
|
+
getCount() {
|
|
58
|
+
return AsyncIterator.getCount(this);
|
|
59
|
+
}
|
|
60
|
+
toArray() {
|
|
61
|
+
return AsyncIterator.toArray(this);
|
|
62
|
+
}
|
|
63
|
+
map(mapping) {
|
|
64
|
+
return AsyncIterator.map(this, mapping);
|
|
65
|
+
}
|
|
66
|
+
[Symbol.asyncIterator]() {
|
|
67
|
+
return AsyncIterator[Symbol.asyncIterator](this);
|
|
68
|
+
}
|
|
69
|
+
first(condition) {
|
|
70
|
+
return AsyncIterator.first(this, condition);
|
|
71
|
+
}
|
|
72
|
+
last() {
|
|
73
|
+
return AsyncIterator.last(this);
|
|
74
|
+
}
|
|
75
|
+
where(condition) {
|
|
76
|
+
return AsyncIterator.where(this, condition);
|
|
77
|
+
}
|
|
78
|
+
whereInstanceOf(typeCheck) {
|
|
79
|
+
return AsyncIterator.whereInstanceOf(this, typeCheck);
|
|
80
|
+
}
|
|
81
|
+
whereInstanceOfType(type) {
|
|
82
|
+
return AsyncIterator.whereInstanceOfType(this, type);
|
|
83
|
+
}
|
|
84
|
+
take(maximumToTake) {
|
|
85
|
+
return AsyncIterator.take(this, maximumToTake);
|
|
86
|
+
}
|
|
87
|
+
skip(maximumToSkip) {
|
|
88
|
+
return AsyncIterator.skip(this, maximumToSkip);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=mapAsyncIterator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapAsyncIterator.js","sourceRoot":"","sources":["../../sources/mapAsyncIterator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAG7D;;GAEG;AACH,MAAM,OAAO,gBAAgB;IAER,aAAa,CAAwB;IACrC,OAAO,CAAsD;IACtE,OAAO,CAAsB;IAC7B,OAAO,CAAU;IAEzB,YAAsB,aAAoC,EAAE,OAA4D;QAEpH,YAAY,CAAC,4BAA4B,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC;QAC1E,YAAY,CAAC,4BAA4B,CAAC,OA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AAO,aAAa,CAAC,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IACnD,CAAC;CACJ"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { EqualFunctions } from "./equalFunctions.js";
|
|
2
|
+
import { Iterable } from "./iterable.js";
|
|
3
|
+
import { Iterator } from "./iterator.js";
|
|
4
|
+
import { JavascriptIterable, JavascriptIterator } from "./javascript.js";
|
|
5
|
+
import { SyncResult } from "./syncResult.js";
|
|
6
|
+
import { Type } from "./types.js";
|
|
7
|
+
/**
|
|
8
|
+
* An {@link Iterable} that converts {@link TInput} values to {@link TOutput} values.
|
|
9
|
+
*/
|
|
10
|
+
export declare class MapIterable<TInput, TOutput> implements Iterable<TOutput> {
|
|
11
|
+
private readonly innerIterable;
|
|
12
|
+
private readonly mapping;
|
|
13
|
+
protected constructor(innerIterable: Iterable<TInput>, mapping: (value: TInput) => (TOutput | SyncResult<TOutput>));
|
|
14
|
+
static create<TInput, TOutput>(innerIterable: Iterable<TInput>, mapping: (value: TInput) => (TOutput | SyncResult<TOutput>)): MapIterable<TInput, TOutput>;
|
|
15
|
+
iterate(): Iterator<TOutput>;
|
|
16
|
+
toArray(): SyncResult<TOutput[]>;
|
|
17
|
+
equals(right: Iterable<TOutput>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
18
|
+
toString(): string;
|
|
19
|
+
concatenate(...toConcatenate: JavascriptIterable<TOutput>[]): Iterable<TOutput>;
|
|
20
|
+
map<TOutput2>(mapping: (value: TOutput) => (TOutput2 | SyncResult<TOutput2>)): Iterable<TOutput2>;
|
|
21
|
+
flatMap<TOutput2>(mapping: (value: TOutput) => JavascriptIterable<TOutput2>): Iterable<TOutput2>;
|
|
22
|
+
where(condition: (value: TOutput) => boolean): Iterable<TOutput>;
|
|
23
|
+
instanceOf<TOutput2 extends TOutput>(typeOrTypeCheck: Type<TOutput2> | ((value: TOutput) => value is TOutput2)): Iterable<TOutput2>;
|
|
24
|
+
[Symbol.iterator](): JavascriptIterator<TOutput>;
|
|
25
|
+
any(): SyncResult<boolean>;
|
|
26
|
+
getCount(): SyncResult<number>;
|
|
27
|
+
first(): SyncResult<TOutput>;
|
|
28
|
+
last(): SyncResult<TOutput>;
|
|
29
|
+
contains(value: TOutput, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=mapIterable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapIterable.d.ts","sourceRoot":"","sources":["../../sources/mapIterable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEzE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC;;GAEG;AACH,qBAAa,WAAW,CAAC,MAAM,EAAC,OAAO,CAAE,YAAW,QAAQ,CAAC,OAAO,CAAC;IAEjE,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAmB;IACjD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAqD;IAE7E,SAAS,aAAa,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAOjH;IAED,OAAc,MAAM,CAAC,MAAM,EAAC,OAAO,EAAE,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,GAAG,WAAW,CAAC,MAAM,EAA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AAU,CAAC,OAAO,CAAC,CAGjC;IAEM,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,cAAc,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,CAGpF;CACJ"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Iterable } from "./iterable.js";
|
|
2
|
+
import { PreCondition } from "./preCondition.js";
|
|
3
|
+
/**
|
|
4
|
+
* An {@link Iterable} that converts {@link TInput} values to {@link TOutput} values.
|
|
5
|
+
*/
|
|
6
|
+
export class MapIterable {
|
|
7
|
+
innerIterable;
|
|
8
|
+
mapping;
|
|
9
|
+
constructor(innerIterable, mapping) {
|
|
10
|
+
PreCondition.assertNotUndefinedAndNotNull(innerIterable, "innerIterable");
|
|
11
|
+
PreCondition.assertNotUndefinedAndNotNull(mapping, "mapping");
|
|
12
|
+
this.innerIterable = innerIterable;
|
|
13
|
+
this.mapping = mapping;
|
|
14
|
+
}
|
|
15
|
+
static create(innerIterable, mapping) {
|
|
16
|
+
return new MapIterable(innerIterable, mapping);
|
|
17
|
+
}
|
|
18
|
+
iterate() {
|
|
19
|
+
return this.innerIterable.iterate().map(this.mapping);
|
|
20
|
+
}
|
|
21
|
+
toArray() {
|
|
22
|
+
return Iterable.toArray(this);
|
|
23
|
+
}
|
|
24
|
+
equals(right, equalFunctions) {
|
|
25
|
+
return Iterable.equals(this, right, equalFunctions);
|
|
26
|
+
}
|
|
27
|
+
toString() {
|
|
28
|
+
return Iterable.toString(this);
|
|
29
|
+
}
|
|
30
|
+
concatenate(...toConcatenate) {
|
|
31
|
+
return Iterable.concatenate(this, ...toConcatenate);
|
|
32
|
+
}
|
|
33
|
+
map(mapping) {
|
|
34
|
+
return Iterable.map(this, mapping);
|
|
35
|
+
}
|
|
36
|
+
flatMap(mapping) {
|
|
37
|
+
return Iterable.flatMap(this, mapping);
|
|
38
|
+
}
|
|
39
|
+
where(condition) {
|
|
40
|
+
return Iterable.where(this, condition);
|
|
41
|
+
}
|
|
42
|
+
instanceOf(typeOrTypeCheck) {
|
|
43
|
+
return Iterable.instanceOf(this, typeOrTypeCheck);
|
|
44
|
+
}
|
|
45
|
+
[Symbol.iterator]() {
|
|
46
|
+
return Iterable[Symbol.iterator](this);
|
|
47
|
+
}
|
|
48
|
+
any() {
|
|
49
|
+
return this.innerIterable.any();
|
|
50
|
+
}
|
|
51
|
+
getCount() {
|
|
52
|
+
return this.innerIterable.getCount();
|
|
53
|
+
}
|
|
54
|
+
first() {
|
|
55
|
+
return Iterable.first(this);
|
|
56
|
+
}
|
|
57
|
+
last() {
|
|
58
|
+
return Iterable.last(this);
|
|
59
|
+
}
|
|
60
|
+
contains(value, equalFunctions) {
|
|
61
|
+
return Iterable.contains(this, value, equalFunctions);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=mapIterable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapIterable.js","sourceRoot":"","sources":["../../sources/mapIterable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAIjD;;GAEG;AACH,MAAM,OAAO,WAAW;IAEH,aAAa,CAAmB;IAChC,OAAO,CAAqD;IAE7E,YAAsB,aAA+B,EAAE,OAA2D;QAE9G,YAAY,CAAC,4BAA4B,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC;QAC1E,YAAY,CAAC,4BAA4B,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QAE9D,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAEM,MAAM,CAAC,MAAM,CAAiB,aAA+B,EAAE,OAA2D;QAE7H,OAAO,IAAI,WAAW,CAAiB,aAAa,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAEM,OAAO;QAEV,OAAO,IAAI,CAA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