@gsc-basic/utils 1.0.0 → 1.0.1
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/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/node_modules/crypto-js/CONTRIBUTING.md +28 -0
- package/node_modules/crypto-js/LICENSE +24 -0
- package/node_modules/crypto-js/README.md +275 -0
- package/node_modules/crypto-js/aes.js +234 -0
- package/node_modules/crypto-js/blowfish.js +471 -0
- package/node_modules/crypto-js/bower.json +39 -0
- package/node_modules/crypto-js/cipher-core.js +895 -0
- package/node_modules/crypto-js/core.js +807 -0
- package/node_modules/crypto-js/crypto-js.js +6657 -0
- package/node_modules/crypto-js/docs/QuickStartGuide.wiki +470 -0
- package/node_modules/crypto-js/enc-base64.js +136 -0
- package/node_modules/crypto-js/enc-base64url.js +148 -0
- package/node_modules/crypto-js/enc-hex.js +18 -0
- package/node_modules/crypto-js/enc-latin1.js +18 -0
- package/node_modules/crypto-js/enc-utf16.js +149 -0
- package/node_modules/crypto-js/enc-utf8.js +18 -0
- package/node_modules/crypto-js/evpkdf.js +134 -0
- package/node_modules/crypto-js/format-hex.js +66 -0
- package/node_modules/crypto-js/format-openssl.js +18 -0
- package/node_modules/crypto-js/hmac-md5.js +18 -0
- package/node_modules/crypto-js/hmac-ripemd160.js +18 -0
- package/node_modules/crypto-js/hmac-sha1.js +18 -0
- package/node_modules/crypto-js/hmac-sha224.js +18 -0
- package/node_modules/crypto-js/hmac-sha256.js +18 -0
- package/node_modules/crypto-js/hmac-sha3.js +18 -0
- package/node_modules/crypto-js/hmac-sha384.js +18 -0
- package/node_modules/crypto-js/hmac-sha512.js +18 -0
- package/node_modules/crypto-js/hmac.js +143 -0
- package/node_modules/crypto-js/index.js +18 -0
- package/node_modules/crypto-js/lib-typedarrays.js +76 -0
- package/node_modules/crypto-js/md5.js +268 -0
- package/node_modules/crypto-js/mode-cfb.js +80 -0
- package/node_modules/crypto-js/mode-ctr-gladman.js +116 -0
- package/node_modules/crypto-js/mode-ctr.js +58 -0
- package/node_modules/crypto-js/mode-ecb.js +40 -0
- package/node_modules/crypto-js/mode-ofb.js +54 -0
- package/node_modules/crypto-js/package.json +42 -0
- package/node_modules/crypto-js/pad-ansix923.js +49 -0
- package/node_modules/crypto-js/pad-iso10126.js +44 -0
- package/node_modules/crypto-js/pad-iso97971.js +40 -0
- package/node_modules/crypto-js/pad-nopadding.js +30 -0
- package/node_modules/crypto-js/pad-pkcs7.js +18 -0
- package/node_modules/crypto-js/pad-zeropadding.js +47 -0
- package/node_modules/crypto-js/pbkdf2.js +145 -0
- package/node_modules/crypto-js/rabbit-legacy.js +190 -0
- package/node_modules/crypto-js/rabbit.js +192 -0
- package/node_modules/crypto-js/rc4.js +139 -0
- package/node_modules/crypto-js/ripemd160.js +267 -0
- package/node_modules/crypto-js/sha1.js +150 -0
- package/node_modules/crypto-js/sha224.js +80 -0
- package/node_modules/crypto-js/sha256.js +199 -0
- package/node_modules/crypto-js/sha3.js +326 -0
- package/node_modules/crypto-js/sha384.js +83 -0
- package/node_modules/crypto-js/sha512.js +326 -0
- package/node_modules/crypto-js/tripledes.js +779 -0
- package/node_modules/crypto-js/x64-core.js +304 -0
- package/node_modules/lodash-es/LICENSE +47 -0
- package/node_modules/lodash-es/README.md +10 -0
- package/node_modules/lodash-es/_DataView.js +7 -0
- package/node_modules/lodash-es/_Hash.js +32 -0
- package/node_modules/lodash-es/_LazyWrapper.js +28 -0
- package/node_modules/lodash-es/_ListCache.js +32 -0
- package/node_modules/lodash-es/_LodashWrapper.js +22 -0
- package/node_modules/lodash-es/_Map.js +7 -0
- package/node_modules/lodash-es/_MapCache.js +32 -0
- package/node_modules/lodash-es/_Promise.js +7 -0
- package/node_modules/lodash-es/_Set.js +7 -0
- package/node_modules/lodash-es/_SetCache.js +27 -0
- package/node_modules/lodash-es/_Stack.js +27 -0
- package/node_modules/lodash-es/_Symbol.js +6 -0
- package/node_modules/lodash-es/_Uint8Array.js +6 -0
- package/node_modules/lodash-es/_WeakMap.js +7 -0
- package/node_modules/lodash-es/_addMapEntry.js +15 -0
- package/node_modules/lodash-es/_addSetEntry.js +15 -0
- package/node_modules/lodash-es/_apply.js +21 -0
- package/node_modules/lodash-es/_arrayAggregator.js +22 -0
- package/node_modules/lodash-es/_arrayEach.js +22 -0
- package/node_modules/lodash-es/_arrayEachRight.js +21 -0
- package/node_modules/lodash-es/_arrayEvery.js +23 -0
- package/node_modules/lodash-es/_arrayFilter.js +25 -0
- package/node_modules/lodash-es/_arrayIncludes.js +17 -0
- package/node_modules/lodash-es/_arrayIncludesWith.js +22 -0
- package/node_modules/lodash-es/_arrayLikeKeys.js +49 -0
- package/node_modules/lodash-es/_arrayMap.js +21 -0
- package/node_modules/lodash-es/_arrayPush.js +20 -0
- package/node_modules/lodash-es/_arrayReduce.js +26 -0
- package/node_modules/lodash-es/_arrayReduceRight.js +24 -0
- package/node_modules/lodash-es/_arraySample.js +15 -0
- package/node_modules/lodash-es/_arraySampleSize.js +17 -0
- package/node_modules/lodash-es/_arrayShuffle.js +15 -0
- package/node_modules/lodash-es/_arraySome.js +23 -0
- package/node_modules/lodash-es/_asciiSize.js +12 -0
- package/node_modules/lodash-es/_asciiToArray.js +12 -0
- package/node_modules/lodash-es/_asciiWords.js +15 -0
- package/node_modules/lodash-es/_assignMergeValue.js +20 -0
- package/node_modules/lodash-es/_assignValue.js +28 -0
- package/node_modules/lodash-es/_assocIndexOf.js +21 -0
- package/node_modules/lodash-es/_baseAggregator.js +21 -0
- package/node_modules/lodash-es/_baseAssign.js +17 -0
- package/node_modules/lodash-es/_baseAssignIn.js +17 -0
- package/node_modules/lodash-es/_baseAssignValue.js +25 -0
- package/node_modules/lodash-es/_baseAt.js +23 -0
- package/node_modules/lodash-es/_baseClamp.js +22 -0
- package/node_modules/lodash-es/_baseClone.js +166 -0
- package/node_modules/lodash-es/_baseConforms.js +18 -0
- package/node_modules/lodash-es/_baseConformsTo.js +27 -0
- package/node_modules/lodash-es/_baseCreate.js +30 -0
- package/node_modules/lodash-es/_baseDelay.js +21 -0
- package/node_modules/lodash-es/_baseDifference.js +67 -0
- package/node_modules/lodash-es/_baseEach.js +14 -0
- package/node_modules/lodash-es/_baseEachRight.js +14 -0
- package/node_modules/lodash-es/_baseEvery.js +21 -0
- package/node_modules/lodash-es/_baseExtremum.js +32 -0
- package/node_modules/lodash-es/_baseFill.js +32 -0
- package/node_modules/lodash-es/_baseFilter.js +21 -0
- package/node_modules/lodash-es/_baseFindIndex.js +24 -0
- package/node_modules/lodash-es/_baseFindKey.js +23 -0
- package/node_modules/lodash-es/_baseFlatten.js +38 -0
- package/node_modules/lodash-es/_baseFor.js +16 -0
- package/node_modules/lodash-es/_baseForOwn.js +16 -0
- package/node_modules/lodash-es/_baseForOwnRight.js +16 -0
- package/node_modules/lodash-es/_baseForRight.js +15 -0
- package/node_modules/lodash-es/_baseFunctions.js +19 -0
- package/node_modules/lodash-es/_baseGet.js +24 -0
- package/node_modules/lodash-es/_baseGetAllKeys.js +20 -0
- package/node_modules/lodash-es/_baseGetTag.js +28 -0
- package/node_modules/lodash-es/_baseGt.js +14 -0
- package/node_modules/lodash-es/_baseHas.js +19 -0
- package/node_modules/lodash-es/_baseHasIn.js +13 -0
- package/node_modules/lodash-es/_baseInRange.js +18 -0
- package/node_modules/lodash-es/_baseIndexOf.js +20 -0
- package/node_modules/lodash-es/_baseIndexOfWith.js +23 -0
- package/node_modules/lodash-es/_baseIntersection.js +74 -0
- package/node_modules/lodash-es/_baseInverter.js +21 -0
- package/node_modules/lodash-es/_baseInvoke.js +24 -0
- package/node_modules/lodash-es/_baseIsArguments.js +18 -0
- package/node_modules/lodash-es/_baseIsArrayBuffer.js +17 -0
- package/node_modules/lodash-es/_baseIsDate.js +18 -0
- package/node_modules/lodash-es/_baseIsEqual.js +28 -0
- package/node_modules/lodash-es/_baseIsEqualDeep.js +83 -0
- package/node_modules/lodash-es/_baseIsMap.js +18 -0
- package/node_modules/lodash-es/_baseIsMatch.js +62 -0
- package/node_modules/lodash-es/_baseIsNaN.js +12 -0
- package/node_modules/lodash-es/_baseIsNative.js +47 -0
- package/node_modules/lodash-es/_baseIsRegExp.js +18 -0
- package/node_modules/lodash-es/_baseIsSet.js +18 -0
- package/node_modules/lodash-es/_baseIsTypedArray.js +60 -0
- package/node_modules/lodash-es/_baseIteratee.js +31 -0
- package/node_modules/lodash-es/_baseKeys.js +30 -0
- package/node_modules/lodash-es/_baseKeysIn.js +33 -0
- package/node_modules/lodash-es/_baseLodash.js +10 -0
- package/node_modules/lodash-es/_baseLt.js +14 -0
- package/node_modules/lodash-es/_baseMap.js +22 -0
- package/node_modules/lodash-es/_baseMatches.js +22 -0
- package/node_modules/lodash-es/_baseMatchesProperty.js +33 -0
- package/node_modules/lodash-es/_baseMean.js +20 -0
- package/node_modules/lodash-es/_baseMerge.js +42 -0
- package/node_modules/lodash-es/_baseMergeDeep.js +94 -0
- package/node_modules/lodash-es/_baseNth.js +20 -0
- package/node_modules/lodash-es/_baseOrderBy.js +49 -0
- package/node_modules/lodash-es/_basePick.js +19 -0
- package/node_modules/lodash-es/_basePickBy.js +30 -0
- package/node_modules/lodash-es/_baseProperty.js +14 -0
- package/node_modules/lodash-es/_basePropertyDeep.js +16 -0
- package/node_modules/lodash-es/_basePropertyOf.js +14 -0
- package/node_modules/lodash-es/_basePullAll.js +51 -0
- package/node_modules/lodash-es/_basePullAt.js +37 -0
- package/node_modules/lodash-es/_baseRandom.js +18 -0
- package/node_modules/lodash-es/_baseRange.js +28 -0
- package/node_modules/lodash-es/_baseReduce.js +23 -0
- package/node_modules/lodash-es/_baseRepeat.js +35 -0
- package/node_modules/lodash-es/_baseRest.js +17 -0
- package/node_modules/lodash-es/_baseSample.js +15 -0
- package/node_modules/lodash-es/_baseSampleSize.js +18 -0
- package/node_modules/lodash-es/_baseSet.js +51 -0
- package/node_modules/lodash-es/_baseSetData.js +17 -0
- package/node_modules/lodash-es/_baseSetToString.js +22 -0
- package/node_modules/lodash-es/_baseShuffle.js +15 -0
- package/node_modules/lodash-es/_baseSlice.js +31 -0
- package/node_modules/lodash-es/_baseSome.js +22 -0
- package/node_modules/lodash-es/_baseSortBy.js +21 -0
- package/node_modules/lodash-es/_baseSortedIndex.js +42 -0
- package/node_modules/lodash-es/_baseSortedIndexBy.js +67 -0
- package/node_modules/lodash-es/_baseSortedUniq.js +30 -0
- package/node_modules/lodash-es/_baseSum.js +24 -0
- package/node_modules/lodash-es/_baseTimes.js +20 -0
- package/node_modules/lodash-es/_baseToNumber.js +24 -0
- package/node_modules/lodash-es/_baseToPairs.js +18 -0
- package/node_modules/lodash-es/_baseToString.js +37 -0
- package/node_modules/lodash-es/_baseTrim.js +19 -0
- package/node_modules/lodash-es/_baseUnary.js +14 -0
- package/node_modules/lodash-es/_baseUniq.js +72 -0
- package/node_modules/lodash-es/_baseUnset.js +20 -0
- package/node_modules/lodash-es/_baseUpdate.js +18 -0
- package/node_modules/lodash-es/_baseValues.js +19 -0
- package/node_modules/lodash-es/_baseWhile.js +26 -0
- package/node_modules/lodash-es/_baseWrapperValue.js +25 -0
- package/node_modules/lodash-es/_baseXor.js +36 -0
- package/node_modules/lodash-es/_baseZipObject.js +23 -0
- package/node_modules/lodash-es/_cacheHas.js +13 -0
- package/node_modules/lodash-es/_castArrayLikeObject.js +14 -0
- package/node_modules/lodash-es/_castFunction.js +14 -0
- package/node_modules/lodash-es/_castPath.js +21 -0
- package/node_modules/lodash-es/_castRest.js +14 -0
- package/node_modules/lodash-es/_castSlice.js +18 -0
- package/node_modules/lodash-es/_charsEndIndex.js +19 -0
- package/node_modules/lodash-es/_charsStartIndex.js +20 -0
- package/node_modules/lodash-es/_cloneArrayBuffer.js +16 -0
- package/node_modules/lodash-es/_cloneBuffer.js +35 -0
- package/node_modules/lodash-es/_cloneDataView.js +16 -0
- package/node_modules/lodash-es/_cloneMap.js +22 -0
- package/node_modules/lodash-es/_cloneRegExp.js +17 -0
- package/node_modules/lodash-es/_cloneSet.js +22 -0
- package/node_modules/lodash-es/_cloneSymbol.js +18 -0
- package/node_modules/lodash-es/_cloneTypedArray.js +16 -0
- package/node_modules/lodash-es/_compareAscending.js +41 -0
- package/node_modules/lodash-es/_compareMultiple.js +44 -0
- package/node_modules/lodash-es/_composeArgs.js +39 -0
- package/node_modules/lodash-es/_composeArgsRight.js +41 -0
- package/node_modules/lodash-es/_copyArray.js +20 -0
- package/node_modules/lodash-es/_copyObject.js +40 -0
- package/node_modules/lodash-es/_copySymbols.js +16 -0
- package/node_modules/lodash-es/_copySymbolsIn.js +16 -0
- package/node_modules/lodash-es/_coreJsData.js +6 -0
- package/node_modules/lodash-es/_countHolders.js +21 -0
- package/node_modules/lodash-es/_createAggregator.js +23 -0
- package/node_modules/lodash-es/_createAssigner.js +37 -0
- package/node_modules/lodash-es/_createBaseEach.js +32 -0
- package/node_modules/lodash-es/_createBaseFor.js +25 -0
- package/node_modules/lodash-es/_createBind.js +28 -0
- package/node_modules/lodash-es/_createCaseFirst.js +33 -0
- package/node_modules/lodash-es/_createCompounder.js +24 -0
- package/node_modules/lodash-es/_createCtor.js +37 -0
- package/node_modules/lodash-es/_createCurry.js +46 -0
- package/node_modules/lodash-es/_createFind.js +25 -0
- package/node_modules/lodash-es/_createFlow.js +78 -0
- package/node_modules/lodash-es/_createHybrid.js +92 -0
- package/node_modules/lodash-es/_createInverter.js +17 -0
- package/node_modules/lodash-es/_createMathOperation.js +38 -0
- package/node_modules/lodash-es/_createOver.js +27 -0
- package/node_modules/lodash-es/_createPadding.js +33 -0
- package/node_modules/lodash-es/_createPartial.js +43 -0
- package/node_modules/lodash-es/_createRange.js +30 -0
- package/node_modules/lodash-es/_createRecurry.js +56 -0
- package/node_modules/lodash-es/_createRelationalOperation.js +20 -0
- package/node_modules/lodash-es/_createRound.js +35 -0
- package/node_modules/lodash-es/_createSet.js +19 -0
- package/node_modules/lodash-es/_createToPairs.js +30 -0
- package/node_modules/lodash-es/_createWrap.js +106 -0
- package/node_modules/lodash-es/_customDefaultsAssignIn.js +29 -0
- package/node_modules/lodash-es/_customDefaultsMerge.js +28 -0
- package/node_modules/lodash-es/_customOmitClone.js +16 -0
- package/node_modules/lodash-es/_deburrLetter.js +71 -0
- package/node_modules/lodash-es/_defineProperty.js +11 -0
- package/node_modules/lodash-es/_equalArrays.js +84 -0
- package/node_modules/lodash-es/_equalByTag.js +112 -0
- package/node_modules/lodash-es/_equalObjects.js +90 -0
- package/node_modules/lodash-es/_escapeHtmlChar.js +21 -0
- package/node_modules/lodash-es/_escapeStringChar.js +22 -0
- package/node_modules/lodash-es/_flatRest.js +16 -0
- package/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/node_modules/lodash-es/_getAllKeys.js +16 -0
- package/node_modules/lodash-es/_getAllKeysIn.js +17 -0
- package/node_modules/lodash-es/_getData.js +15 -0
- package/node_modules/lodash-es/_getFuncName.js +31 -0
- package/node_modules/lodash-es/_getHolder.js +13 -0
- package/node_modules/lodash-es/_getMapData.js +18 -0
- package/node_modules/lodash-es/_getMatchData.js +24 -0
- package/node_modules/lodash-es/_getNative.js +17 -0
- package/node_modules/lodash-es/_getPrototype.js +6 -0
- package/node_modules/lodash-es/_getRawTag.js +46 -0
- package/node_modules/lodash-es/_getSymbols.js +30 -0
- package/node_modules/lodash-es/_getSymbolsIn.js +25 -0
- package/node_modules/lodash-es/_getTag.js +58 -0
- package/node_modules/lodash-es/_getValue.js +13 -0
- package/node_modules/lodash-es/_getView.js +33 -0
- package/node_modules/lodash-es/_getWrapDetails.js +17 -0
- package/node_modules/lodash-es/_hasPath.js +39 -0
- package/node_modules/lodash-es/_hasUnicode.js +26 -0
- package/node_modules/lodash-es/_hasUnicodeWord.js +15 -0
- package/node_modules/lodash-es/_hashClear.js +15 -0
- package/node_modules/lodash-es/_hashDelete.js +17 -0
- package/node_modules/lodash-es/_hashGet.js +30 -0
- package/node_modules/lodash-es/_hashHas.js +23 -0
- package/node_modules/lodash-es/_hashSet.js +23 -0
- package/node_modules/lodash-es/_initCloneArray.js +26 -0
- package/node_modules/lodash-es/_initCloneByTag.js +77 -0
- package/node_modules/lodash-es/_initCloneObject.js +18 -0
- package/node_modules/lodash-es/_insertWrapDetails.js +23 -0
- package/node_modules/lodash-es/_isFlattenable.js +20 -0
- package/node_modules/lodash-es/_isIndex.js +25 -0
- package/node_modules/lodash-es/_isIterateeCall.js +30 -0
- package/node_modules/lodash-es/_isKey.js +29 -0
- package/node_modules/lodash-es/_isKeyable.js +15 -0
- package/node_modules/lodash-es/_isLaziable.js +28 -0
- package/node_modules/lodash-es/_isMaskable.js +14 -0
- package/node_modules/lodash-es/_isMasked.js +20 -0
- package/node_modules/lodash-es/_isPrototype.js +18 -0
- package/node_modules/lodash-es/_isStrictComparable.js +15 -0
- package/node_modules/lodash-es/_iteratorToArray.js +18 -0
- package/node_modules/lodash-es/_lazyClone.js +23 -0
- package/node_modules/lodash-es/_lazyReverse.js +23 -0
- package/node_modules/lodash-es/_lazyValue.js +69 -0
- package/node_modules/lodash-es/_listCacheClear.js +13 -0
- package/node_modules/lodash-es/_listCacheDelete.js +35 -0
- package/node_modules/lodash-es/_listCacheGet.js +19 -0
- package/node_modules/lodash-es/_listCacheHas.js +16 -0
- package/node_modules/lodash-es/_listCacheSet.js +26 -0
- package/node_modules/lodash-es/_mapCacheClear.js +21 -0
- package/node_modules/lodash-es/_mapCacheDelete.js +18 -0
- package/node_modules/lodash-es/_mapCacheGet.js +16 -0
- package/node_modules/lodash-es/_mapCacheHas.js +16 -0
- package/node_modules/lodash-es/_mapCacheSet.js +22 -0
- package/node_modules/lodash-es/_mapToArray.js +18 -0
- package/node_modules/lodash-es/_matchesStrictComparable.js +20 -0
- package/node_modules/lodash-es/_memoizeCapped.js +26 -0
- package/node_modules/lodash-es/_mergeData.js +90 -0
- package/node_modules/lodash-es/_metaMap.js +6 -0
- package/node_modules/lodash-es/_nativeCreate.js +6 -0
- package/node_modules/lodash-es/_nativeKeys.js +6 -0
- package/node_modules/lodash-es/_nativeKeysIn.js +20 -0
- package/node_modules/lodash-es/_nodeUtil.js +30 -0
- package/node_modules/lodash-es/_objectToString.js +22 -0
- package/node_modules/lodash-es/_overArg.js +15 -0
- package/node_modules/lodash-es/_overRest.js +36 -0
- package/node_modules/lodash-es/_parent.js +16 -0
- package/node_modules/lodash-es/_reEscape.js +4 -0
- package/node_modules/lodash-es/_reEvaluate.js +4 -0
- package/node_modules/lodash-es/_reInterpolate.js +4 -0
- package/node_modules/lodash-es/_realNames.js +4 -0
- package/node_modules/lodash-es/_reorder.js +29 -0
- package/node_modules/lodash-es/_replaceHolders.js +29 -0
- package/node_modules/lodash-es/_root.js +9 -0
- package/node_modules/lodash-es/_safeGet.js +21 -0
- package/node_modules/lodash-es/_setCacheAdd.js +19 -0
- package/node_modules/lodash-es/_setCacheHas.js +14 -0
- package/node_modules/lodash-es/_setData.js +20 -0
- package/node_modules/lodash-es/_setToArray.js +18 -0
- package/node_modules/lodash-es/_setToPairs.js +18 -0
- package/node_modules/lodash-es/_setToString.js +14 -0
- package/node_modules/lodash-es/_setWrapToString.js +21 -0
- package/node_modules/lodash-es/_shortOut.js +37 -0
- package/node_modules/lodash-es/_shuffleSelf.js +28 -0
- package/node_modules/lodash-es/_stackClear.js +15 -0
- package/node_modules/lodash-es/_stackDelete.js +18 -0
- package/node_modules/lodash-es/_stackGet.js +14 -0
- package/node_modules/lodash-es/_stackHas.js +14 -0
- package/node_modules/lodash-es/_stackSet.js +34 -0
- package/node_modules/lodash-es/_strictIndexOf.js +23 -0
- package/node_modules/lodash-es/_strictLastIndexOf.js +21 -0
- package/node_modules/lodash-es/_stringSize.js +18 -0
- package/node_modules/lodash-es/_stringToArray.js +18 -0
- package/node_modules/lodash-es/_stringToPath.js +27 -0
- package/node_modules/lodash-es/_toKey.js +21 -0
- package/node_modules/lodash-es/_toSource.js +26 -0
- package/node_modules/lodash-es/_trimmedEndIndex.js +19 -0
- package/node_modules/lodash-es/_unescapeHtmlChar.js +21 -0
- package/node_modules/lodash-es/_unicodeSize.js +44 -0
- package/node_modules/lodash-es/_unicodeToArray.js +40 -0
- package/node_modules/lodash-es/_unicodeWords.js +69 -0
- package/node_modules/lodash-es/_updateWrapDetails.js +46 -0
- package/node_modules/lodash-es/_wrapperClone.js +23 -0
- package/node_modules/lodash-es/add.js +22 -0
- package/node_modules/lodash-es/after.js +42 -0
- package/node_modules/lodash-es/array.default.js +81 -0
- package/node_modules/lodash-es/array.js +66 -0
- package/node_modules/lodash-es/ary.js +29 -0
- package/node_modules/lodash-es/assign.js +58 -0
- package/node_modules/lodash-es/assignIn.js +40 -0
- package/node_modules/lodash-es/assignInWith.js +38 -0
- package/node_modules/lodash-es/assignWith.js +37 -0
- package/node_modules/lodash-es/at.js +23 -0
- package/node_modules/lodash-es/attempt.js +35 -0
- package/node_modules/lodash-es/before.js +40 -0
- package/node_modules/lodash-es/bind.js +57 -0
- package/node_modules/lodash-es/bindAll.js +41 -0
- package/node_modules/lodash-es/bindKey.js +68 -0
- package/node_modules/lodash-es/camelCase.js +29 -0
- package/node_modules/lodash-es/capitalize.js +23 -0
- package/node_modules/lodash-es/castArray.js +44 -0
- package/node_modules/lodash-es/ceil.js +26 -0
- package/node_modules/lodash-es/chain.js +38 -0
- package/node_modules/lodash-es/chunk.js +50 -0
- package/node_modules/lodash-es/clamp.js +39 -0
- package/node_modules/lodash-es/clone.js +36 -0
- package/node_modules/lodash-es/cloneDeep.js +29 -0
- package/node_modules/lodash-es/cloneDeepWith.js +40 -0
- package/node_modules/lodash-es/cloneWith.js +42 -0
- package/node_modules/lodash-es/collection.default.js +37 -0
- package/node_modules/lodash-es/collection.js +29 -0
- package/node_modules/lodash-es/commit.js +33 -0
- package/node_modules/lodash-es/compact.js +31 -0
- package/node_modules/lodash-es/concat.js +43 -0
- package/node_modules/lodash-es/cond.js +60 -0
- package/node_modules/lodash-es/conforms.js +35 -0
- package/node_modules/lodash-es/conformsTo.js +32 -0
- package/node_modules/lodash-es/constant.js +26 -0
- package/node_modules/lodash-es/countBy.js +40 -0
- package/node_modules/lodash-es/create.js +43 -0
- package/node_modules/lodash-es/curry.js +57 -0
- package/node_modules/lodash-es/curryRight.js +54 -0
- package/node_modules/lodash-es/date.default.js +5 -0
- package/node_modules/lodash-es/date.js +2 -0
- package/node_modules/lodash-es/debounce.js +191 -0
- package/node_modules/lodash-es/deburr.js +45 -0
- package/node_modules/lodash-es/defaultTo.js +25 -0
- package/node_modules/lodash-es/defaults.js +64 -0
- package/node_modules/lodash-es/defaultsDeep.js +30 -0
- package/node_modules/lodash-es/defer.js +26 -0
- package/node_modules/lodash-es/delay.js +28 -0
- package/node_modules/lodash-es/difference.js +33 -0
- package/node_modules/lodash-es/differenceBy.js +44 -0
- package/node_modules/lodash-es/differenceWith.js +40 -0
- package/node_modules/lodash-es/divide.js +22 -0
- package/node_modules/lodash-es/drop.js +38 -0
- package/node_modules/lodash-es/dropRight.js +39 -0
- package/node_modules/lodash-es/dropRightWhile.js +45 -0
- package/node_modules/lodash-es/dropWhile.js +45 -0
- package/node_modules/lodash-es/each.js +1 -0
- package/node_modules/lodash-es/eachRight.js +1 -0
- package/node_modules/lodash-es/endsWith.js +43 -0
- package/node_modules/lodash-es/entries.js +1 -0
- package/node_modules/lodash-es/entriesIn.js +1 -0
- package/node_modules/lodash-es/eq.js +37 -0
- package/node_modules/lodash-es/escape.js +43 -0
- package/node_modules/lodash-es/escapeRegExp.js +32 -0
- package/node_modules/lodash-es/every.js +56 -0
- package/node_modules/lodash-es/extend.js +1 -0
- package/node_modules/lodash-es/extendWith.js +1 -0
- package/node_modules/lodash-es/fill.js +45 -0
- package/node_modules/lodash-es/filter.js +52 -0
- package/node_modules/lodash-es/find.js +42 -0
- package/node_modules/lodash-es/findIndex.js +55 -0
- package/node_modules/lodash-es/findKey.js +44 -0
- package/node_modules/lodash-es/findLast.js +25 -0
- package/node_modules/lodash-es/findLastIndex.js +59 -0
- package/node_modules/lodash-es/findLastKey.js +44 -0
- package/node_modules/lodash-es/first.js +1 -0
- package/node_modules/lodash-es/flake.lock +40 -0
- package/node_modules/lodash-es/flake.nix +20 -0
- package/node_modules/lodash-es/flatMap.js +29 -0
- package/node_modules/lodash-es/flatMapDeep.js +31 -0
- package/node_modules/lodash-es/flatMapDepth.js +31 -0
- package/node_modules/lodash-es/flatten.js +22 -0
- package/node_modules/lodash-es/flattenDeep.js +25 -0
- package/node_modules/lodash-es/flattenDepth.js +33 -0
- package/node_modules/lodash-es/flip.js +28 -0
- package/node_modules/lodash-es/floor.js +26 -0
- package/node_modules/lodash-es/flow.js +27 -0
- package/node_modules/lodash-es/flowRight.js +26 -0
- package/node_modules/lodash-es/forEach.js +41 -0
- package/node_modules/lodash-es/forEachRight.js +31 -0
- package/node_modules/lodash-es/forIn.js +39 -0
- package/node_modules/lodash-es/forInRight.js +37 -0
- package/node_modules/lodash-es/forOwn.js +36 -0
- package/node_modules/lodash-es/forOwnRight.js +34 -0
- package/node_modules/lodash-es/fromPairs.js +28 -0
- package/node_modules/lodash-es/function.default.js +31 -0
- package/node_modules/lodash-es/function.js +24 -0
- package/node_modules/lodash-es/functions.js +31 -0
- package/node_modules/lodash-es/functionsIn.js +31 -0
- package/node_modules/lodash-es/get.js +33 -0
- package/node_modules/lodash-es/groupBy.js +41 -0
- package/node_modules/lodash-es/gt.js +29 -0
- package/node_modules/lodash-es/gte.js +30 -0
- package/node_modules/lodash-es/has.js +35 -0
- package/node_modules/lodash-es/hasIn.js +34 -0
- package/node_modules/lodash-es/head.js +23 -0
- package/node_modules/lodash-es/identity.js +21 -0
- package/node_modules/lodash-es/inRange.js +55 -0
- package/node_modules/lodash-es/includes.js +53 -0
- package/node_modules/lodash-es/indexOf.js +42 -0
- package/node_modules/lodash-es/initial.js +22 -0
- package/node_modules/lodash-es/intersection.js +30 -0
- package/node_modules/lodash-es/intersectionBy.js +45 -0
- package/node_modules/lodash-es/intersectionWith.js +41 -0
- package/node_modules/lodash-es/invert.js +42 -0
- package/node_modules/lodash-es/invertBy.js +56 -0
- package/node_modules/lodash-es/invoke.js +24 -0
- package/node_modules/lodash-es/invokeMap.js +41 -0
- package/node_modules/lodash-es/isArguments.js +36 -0
- package/node_modules/lodash-es/isArray.js +26 -0
- package/node_modules/lodash-es/isArrayBuffer.js +27 -0
- package/node_modules/lodash-es/isArrayLike.js +33 -0
- package/node_modules/lodash-es/isArrayLikeObject.js +33 -0
- package/node_modules/lodash-es/isBoolean.js +29 -0
- package/node_modules/lodash-es/isBuffer.js +38 -0
- package/node_modules/lodash-es/isDate.js +27 -0
- package/node_modules/lodash-es/isElement.js +25 -0
- package/node_modules/lodash-es/isEmpty.js +77 -0
- package/node_modules/lodash-es/isEqual.js +35 -0
- package/node_modules/lodash-es/isEqualWith.js +41 -0
- package/node_modules/lodash-es/isError.js +36 -0
- package/node_modules/lodash-es/isFinite.js +36 -0
- package/node_modules/lodash-es/isFunction.js +37 -0
- package/node_modules/lodash-es/isInteger.js +33 -0
- package/node_modules/lodash-es/isLength.js +35 -0
- package/node_modules/lodash-es/isMap.js +27 -0
- package/node_modules/lodash-es/isMatch.js +36 -0
- package/node_modules/lodash-es/isMatchWith.js +41 -0
- package/node_modules/lodash-es/isNaN.js +38 -0
- package/node_modules/lodash-es/isNative.js +40 -0
- package/node_modules/lodash-es/isNil.js +25 -0
- package/node_modules/lodash-es/isNull.js +22 -0
- package/node_modules/lodash-es/isNumber.js +38 -0
- package/node_modules/lodash-es/isObject.js +31 -0
- package/node_modules/lodash-es/isObjectLike.js +29 -0
- package/node_modules/lodash-es/isPlainObject.js +62 -0
- package/node_modules/lodash-es/isRegExp.js +27 -0
- package/node_modules/lodash-es/isSafeInteger.js +37 -0
- package/node_modules/lodash-es/isSet.js +27 -0
- package/node_modules/lodash-es/isString.js +30 -0
- package/node_modules/lodash-es/isSymbol.js +29 -0
- package/node_modules/lodash-es/isTypedArray.js +27 -0
- package/node_modules/lodash-es/isUndefined.js +22 -0
- package/node_modules/lodash-es/isWeakMap.js +28 -0
- package/node_modules/lodash-es/isWeakSet.js +28 -0
- package/node_modules/lodash-es/iteratee.js +53 -0
- package/node_modules/lodash-es/join.js +26 -0
- package/node_modules/lodash-es/kebabCase.js +28 -0
- package/node_modules/lodash-es/keyBy.js +36 -0
- package/node_modules/lodash-es/keys.js +37 -0
- package/node_modules/lodash-es/keysIn.js +32 -0
- package/node_modules/lodash-es/lang.default.js +71 -0
- package/node_modules/lodash-es/lang.js +57 -0
- package/node_modules/lodash-es/last.js +20 -0
- package/node_modules/lodash-es/lastIndexOf.js +46 -0
- package/node_modules/lodash-es/lodash.default.js +643 -0
- package/node_modules/lodash-es/lodash.js +331 -0
- package/node_modules/lodash-es/lowerCase.js +27 -0
- package/node_modules/lodash-es/lowerFirst.js +22 -0
- package/node_modules/lodash-es/lt.js +29 -0
- package/node_modules/lodash-es/lte.js +30 -0
- package/node_modules/lodash-es/map.js +53 -0
- package/node_modules/lodash-es/mapKeys.js +36 -0
- package/node_modules/lodash-es/mapValues.js +43 -0
- package/node_modules/lodash-es/matches.js +46 -0
- package/node_modules/lodash-es/matchesProperty.js +44 -0
- package/node_modules/lodash-es/math.default.js +21 -0
- package/node_modules/lodash-es/math.js +16 -0
- package/node_modules/lodash-es/max.js +29 -0
- package/node_modules/lodash-es/maxBy.js +34 -0
- package/node_modules/lodash-es/mean.js +22 -0
- package/node_modules/lodash-es/meanBy.js +31 -0
- package/node_modules/lodash-es/memoize.js +73 -0
- package/node_modules/lodash-es/merge.js +39 -0
- package/node_modules/lodash-es/mergeWith.js +39 -0
- package/node_modules/lodash-es/method.js +34 -0
- package/node_modules/lodash-es/methodOf.js +33 -0
- package/node_modules/lodash-es/min.js +29 -0
- package/node_modules/lodash-es/minBy.js +34 -0
- package/node_modules/lodash-es/mixin.js +74 -0
- package/node_modules/lodash-es/multiply.js +22 -0
- package/node_modules/lodash-es/negate.js +40 -0
- package/node_modules/lodash-es/next.js +35 -0
- package/node_modules/lodash-es/noop.js +17 -0
- package/node_modules/lodash-es/now.js +23 -0
- package/node_modules/lodash-es/nth.js +29 -0
- package/node_modules/lodash-es/nthArg.js +32 -0
- package/node_modules/lodash-es/number.default.js +7 -0
- package/node_modules/lodash-es/number.js +4 -0
- package/node_modules/lodash-es/object.default.js +60 -0
- package/node_modules/lodash-es/object.js +48 -0
- package/node_modules/lodash-es/omit.js +57 -0
- package/node_modules/lodash-es/omitBy.js +29 -0
- package/node_modules/lodash-es/once.js +25 -0
- package/node_modules/lodash-es/orderBy.js +47 -0
- package/node_modules/lodash-es/over.js +24 -0
- package/node_modules/lodash-es/overArgs.js +61 -0
- package/node_modules/lodash-es/overEvery.js +34 -0
- package/node_modules/lodash-es/overSome.js +37 -0
- package/node_modules/lodash-es/package.json +21 -0
- package/node_modules/lodash-es/pad.js +49 -0
- package/node_modules/lodash-es/padEnd.js +39 -0
- package/node_modules/lodash-es/padStart.js +39 -0
- package/node_modules/lodash-es/parseInt.js +43 -0
- package/node_modules/lodash-es/partial.js +50 -0
- package/node_modules/lodash-es/partialRight.js +49 -0
- package/node_modules/lodash-es/partition.js +43 -0
- package/node_modules/lodash-es/pick.js +25 -0
- package/node_modules/lodash-es/pickBy.js +37 -0
- package/node_modules/lodash-es/plant.js +48 -0
- package/node_modules/lodash-es/property.js +32 -0
- package/node_modules/lodash-es/propertyOf.js +30 -0
- package/node_modules/lodash-es/pull.js +29 -0
- package/node_modules/lodash-es/pullAll.js +29 -0
- package/node_modules/lodash-es/pullAllBy.js +33 -0
- package/node_modules/lodash-es/pullAllWith.js +32 -0
- package/node_modules/lodash-es/pullAt.js +43 -0
- package/node_modules/lodash-es/random.js +82 -0
- package/node_modules/lodash-es/range.js +46 -0
- package/node_modules/lodash-es/rangeRight.js +41 -0
- package/node_modules/lodash-es/rearg.js +33 -0
- package/node_modules/lodash-es/reduce.js +51 -0
- package/node_modules/lodash-es/reduceRight.js +36 -0
- package/node_modules/lodash-es/reject.js +46 -0
- package/node_modules/lodash-es/release.md +48 -0
- package/node_modules/lodash-es/remove.js +53 -0
- package/node_modules/lodash-es/repeat.js +37 -0
- package/node_modules/lodash-es/replace.js +29 -0
- package/node_modules/lodash-es/rest.js +40 -0
- package/node_modules/lodash-es/result.js +56 -0
- package/node_modules/lodash-es/reverse.js +34 -0
- package/node_modules/lodash-es/round.js +26 -0
- package/node_modules/lodash-es/sample.js +24 -0
- package/node_modules/lodash-es/sampleSize.js +37 -0
- package/node_modules/lodash-es/seq.default.js +20 -0
- package/node_modules/lodash-es/seq.js +15 -0
- package/node_modules/lodash-es/set.js +35 -0
- package/node_modules/lodash-es/setWith.js +32 -0
- package/node_modules/lodash-es/shuffle.js +25 -0
- package/node_modules/lodash-es/size.js +46 -0
- package/node_modules/lodash-es/slice.js +37 -0
- package/node_modules/lodash-es/snakeCase.js +28 -0
- package/node_modules/lodash-es/some.js +51 -0
- package/node_modules/lodash-es/sortBy.js +48 -0
- package/node_modules/lodash-es/sortedIndex.js +24 -0
- package/node_modules/lodash-es/sortedIndexBy.js +33 -0
- package/node_modules/lodash-es/sortedIndexOf.js +31 -0
- package/node_modules/lodash-es/sortedLastIndex.js +25 -0
- package/node_modules/lodash-es/sortedLastIndexBy.js +33 -0
- package/node_modules/lodash-es/sortedLastIndexOf.js +31 -0
- package/node_modules/lodash-es/sortedUniq.js +24 -0
- package/node_modules/lodash-es/sortedUniqBy.js +26 -0
- package/node_modules/lodash-es/split.js +52 -0
- package/node_modules/lodash-es/spread.js +63 -0
- package/node_modules/lodash-es/startCase.js +29 -0
- package/node_modules/lodash-es/startsWith.js +39 -0
- package/node_modules/lodash-es/string.default.js +41 -0
- package/node_modules/lodash-es/string.js +32 -0
- package/node_modules/lodash-es/stubArray.js +23 -0
- package/node_modules/lodash-es/stubFalse.js +18 -0
- package/node_modules/lodash-es/stubObject.js +23 -0
- package/node_modules/lodash-es/stubString.js +18 -0
- package/node_modules/lodash-es/stubTrue.js +18 -0
- package/node_modules/lodash-es/subtract.js +22 -0
- package/node_modules/lodash-es/sum.js +24 -0
- package/node_modules/lodash-es/sumBy.js +33 -0
- package/node_modules/lodash-es/tail.js +22 -0
- package/node_modules/lodash-es/take.js +37 -0
- package/node_modules/lodash-es/takeRight.js +39 -0
- package/node_modules/lodash-es/takeRightWhile.js +45 -0
- package/node_modules/lodash-es/takeWhile.js +45 -0
- package/node_modules/lodash-es/tap.js +29 -0
- package/node_modules/lodash-es/template.js +272 -0
- package/node_modules/lodash-es/templateSettings.js +67 -0
- package/node_modules/lodash-es/throttle.js +69 -0
- package/node_modules/lodash-es/thru.js +28 -0
- package/node_modules/lodash-es/times.js +51 -0
- package/node_modules/lodash-es/toArray.js +58 -0
- package/node_modules/lodash-es/toFinite.js +42 -0
- package/node_modules/lodash-es/toInteger.js +36 -0
- package/node_modules/lodash-es/toIterator.js +23 -0
- package/node_modules/lodash-es/toJSON.js +1 -0
- package/node_modules/lodash-es/toLength.js +38 -0
- package/node_modules/lodash-es/toLower.js +28 -0
- package/node_modules/lodash-es/toNumber.js +64 -0
- package/node_modules/lodash-es/toPairs.js +30 -0
- package/node_modules/lodash-es/toPairsIn.js +30 -0
- package/node_modules/lodash-es/toPath.js +33 -0
- package/node_modules/lodash-es/toPlainObject.js +32 -0
- package/node_modules/lodash-es/toSafeInteger.js +37 -0
- package/node_modules/lodash-es/toString.js +28 -0
- package/node_modules/lodash-es/toUpper.js +28 -0
- package/node_modules/lodash-es/transform.js +65 -0
- package/node_modules/lodash-es/trim.js +47 -0
- package/node_modules/lodash-es/trimEnd.js +41 -0
- package/node_modules/lodash-es/trimStart.js +43 -0
- package/node_modules/lodash-es/truncate.js +111 -0
- package/node_modules/lodash-es/unary.js +22 -0
- package/node_modules/lodash-es/unescape.js +34 -0
- package/node_modules/lodash-es/union.js +26 -0
- package/node_modules/lodash-es/unionBy.js +39 -0
- package/node_modules/lodash-es/unionWith.js +34 -0
- package/node_modules/lodash-es/uniq.js +25 -0
- package/node_modules/lodash-es/uniqBy.js +31 -0
- package/node_modules/lodash-es/uniqWith.js +28 -0
- package/node_modules/lodash-es/uniqueId.js +28 -0
- package/node_modules/lodash-es/unset.js +34 -0
- package/node_modules/lodash-es/unzip.js +45 -0
- package/node_modules/lodash-es/unzipWith.js +39 -0
- package/node_modules/lodash-es/update.js +35 -0
- package/node_modules/lodash-es/updateWith.js +33 -0
- package/node_modules/lodash-es/upperCase.js +27 -0
- package/node_modules/lodash-es/upperFirst.js +22 -0
- package/node_modules/lodash-es/util.default.js +42 -0
- package/node_modules/lodash-es/util.js +33 -0
- package/node_modules/lodash-es/value.js +1 -0
- package/node_modules/lodash-es/valueOf.js +1 -0
- package/node_modules/lodash-es/values.js +34 -0
- package/node_modules/lodash-es/valuesIn.js +32 -0
- package/node_modules/lodash-es/without.js +31 -0
- package/node_modules/lodash-es/words.js +35 -0
- package/node_modules/lodash-es/wrap.js +30 -0
- package/node_modules/lodash-es/wrapperAt.js +48 -0
- package/node_modules/lodash-es/wrapperChain.js +34 -0
- package/node_modules/lodash-es/wrapperLodash.js +147 -0
- package/node_modules/lodash-es/wrapperReverse.js +44 -0
- package/node_modules/lodash-es/wrapperValue.js +21 -0
- package/node_modules/lodash-es/xor.js +28 -0
- package/node_modules/lodash-es/xorBy.js +39 -0
- package/node_modules/lodash-es/xorWith.js +34 -0
- package/node_modules/lodash-es/zip.js +22 -0
- package/node_modules/lodash-es/zipObject.js +24 -0
- package/node_modules/lodash-es/zipObjectDeep.js +23 -0
- package/node_modules/lodash-es/zipWith.js +32 -0
- package/node_modules/resize-observer-polyfill/LICENSE +21 -0
- package/node_modules/resize-observer-polyfill/README.md +112 -0
- package/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +928 -0
- package/node_modules/resize-observer-polyfill/dist/ResizeObserver.global.js +1034 -0
- package/node_modules/resize-observer-polyfill/dist/ResizeObserver.js +936 -0
- package/node_modules/resize-observer-polyfill/dist/ResizeObserver.js.flow +32 -0
- package/node_modules/resize-observer-polyfill/package.json +64 -0
- package/node_modules/resize-observer-polyfill/src/ResizeObservation.js +76 -0
- package/node_modules/resize-observer-polyfill/src/ResizeObserver.js +47 -0
- package/node_modules/resize-observer-polyfill/src/ResizeObserverController.js +238 -0
- package/node_modules/resize-observer-polyfill/src/ResizeObserverEntry.js +40 -0
- package/node_modules/resize-observer-polyfill/src/ResizeObserverSPI.js +203 -0
- package/node_modules/resize-observer-polyfill/src/index.d.ts +40 -0
- package/node_modules/resize-observer-polyfill/src/index.js +11 -0
- package/node_modules/resize-observer-polyfill/src/index.js.flow +32 -0
- package/node_modules/resize-observer-polyfill/src/shims/es6-collections.js +115 -0
- package/node_modules/resize-observer-polyfill/src/shims/global.js +17 -0
- package/node_modules/resize-observer-polyfill/src/shims/requestAnimationFrame.js +18 -0
- package/node_modules/resize-observer-polyfill/src/utils/defineConfigurable.js +19 -0
- package/node_modules/resize-observer-polyfill/src/utils/geometry.js +233 -0
- package/node_modules/resize-observer-polyfill/src/utils/getWindowOf.js +18 -0
- package/node_modules/resize-observer-polyfill/src/utils/isBrowser.js +4 -0
- package/node_modules/resize-observer-polyfill/src/utils/throttle.js +78 -0
- package/node_modules/uuid/CHANGELOG.md +335 -0
- package/node_modules/uuid/CONTRIBUTING.md +18 -0
- package/node_modules/uuid/LICENSE.md +9 -0
- package/node_modules/uuid/README.md +497 -0
- package/node_modules/uuid/dist/cjs/index.d.ts +15 -0
- package/node_modules/uuid/dist/cjs/index.js +31 -0
- package/node_modules/uuid/dist/cjs/max.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/max.js +3 -0
- package/node_modules/uuid/dist/cjs/md5.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/md5.js +13 -0
- package/node_modules/uuid/dist/cjs/native.d.ts +5 -0
- package/node_modules/uuid/dist/cjs/native.js +4 -0
- package/node_modules/uuid/dist/cjs/nil.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/nil.js +3 -0
- package/node_modules/uuid/dist/cjs/package.json +1 -0
- package/node_modules/uuid/dist/cjs/parse.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/parse.js +11 -0
- package/node_modules/uuid/dist/cjs/regex.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/regex.js +3 -0
- package/node_modules/uuid/dist/cjs/rng.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/rng.js +13 -0
- package/node_modules/uuid/dist/cjs/sha1.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/sha1.js +13 -0
- package/node_modules/uuid/dist/cjs/stringify.d.ts +3 -0
- package/node_modules/uuid/dist/cjs/stringify.js +38 -0
- package/node_modules/uuid/dist/cjs/test/parse.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/parse.test.js +50 -0
- package/node_modules/uuid/dist/cjs/test/rng.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/rng.test.js +14 -0
- package/node_modules/uuid/dist/cjs/test/stringify.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/stringify.test.js +23 -0
- package/node_modules/uuid/dist/cjs/test/test_constants.d.ts +33 -0
- package/node_modules/uuid/dist/cjs/test/test_constants.js +91 -0
- package/node_modules/uuid/dist/cjs/test/v1.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/v1.test.js +127 -0
- package/node_modules/uuid/dist/cjs/test/v35.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/v35.test.js +143 -0
- package/node_modules/uuid/dist/cjs/test/v4.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/v4.test.js +60 -0
- package/node_modules/uuid/dist/cjs/test/v6.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/v6.test.js +56 -0
- package/node_modules/uuid/dist/cjs/test/v7.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/v7.test.js +194 -0
- package/node_modules/uuid/dist/cjs/test/validate.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/validate.test.js +13 -0
- package/node_modules/uuid/dist/cjs/test/version.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/test/version.test.js +20 -0
- package/node_modules/uuid/dist/cjs/types.d.ts +21 -0
- package/node_modules/uuid/dist/cjs/types.js +2 -0
- package/node_modules/uuid/dist/cjs/uuid-bin.d.ts +1 -0
- package/node_modules/uuid/dist/cjs/uuid-bin.js +72 -0
- package/node_modules/uuid/dist/cjs/v1.d.ts +11 -0
- package/node_modules/uuid/dist/cjs/v1.js +78 -0
- package/node_modules/uuid/dist/cjs/v1ToV6.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/v1ToV6.js +13 -0
- package/node_modules/uuid/dist/cjs/v3.d.ts +9 -0
- package/node_modules/uuid/dist/cjs/v3.js +14 -0
- package/node_modules/uuid/dist/cjs/v35.d.ts +7 -0
- package/node_modules/uuid/dist/cjs/v35.js +41 -0
- package/node_modules/uuid/dist/cjs/v4.d.ts +4 -0
- package/node_modules/uuid/dist/cjs/v4.js +23 -0
- package/node_modules/uuid/dist/cjs/v5.d.ts +9 -0
- package/node_modules/uuid/dist/cjs/v5.js +14 -0
- package/node_modules/uuid/dist/cjs/v6.d.ts +4 -0
- package/node_modules/uuid/dist/cjs/v6.js +19 -0
- package/node_modules/uuid/dist/cjs/v6ToV1.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/v6ToV1.js +13 -0
- package/node_modules/uuid/dist/cjs/v7.d.ts +9 -0
- package/node_modules/uuid/dist/cjs/v7.js +60 -0
- package/node_modules/uuid/dist/cjs/validate.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/validate.js +7 -0
- package/node_modules/uuid/dist/cjs/version.d.ts +2 -0
- package/node_modules/uuid/dist/cjs/version.js +10 -0
- package/node_modules/uuid/dist/cjs-browser/index.d.ts +15 -0
- package/node_modules/uuid/dist/cjs-browser/index.js +31 -0
- package/node_modules/uuid/dist/cjs-browser/max.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/max.js +3 -0
- package/node_modules/uuid/dist/cjs-browser/md5.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/md5.js +137 -0
- package/node_modules/uuid/dist/cjs-browser/native.d.ts +4 -0
- package/node_modules/uuid/dist/cjs-browser/native.js +4 -0
- package/node_modules/uuid/dist/cjs-browser/nil.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/nil.js +3 -0
- package/node_modules/uuid/dist/cjs-browser/package.json +1 -0
- package/node_modules/uuid/dist/cjs-browser/parse.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/parse.js +11 -0
- package/node_modules/uuid/dist/cjs-browser/regex.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/regex.js +3 -0
- package/node_modules/uuid/dist/cjs-browser/rng.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/rng.js +14 -0
- package/node_modules/uuid/dist/cjs-browser/sha1.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/sha1.js +72 -0
- package/node_modules/uuid/dist/cjs-browser/stringify.d.ts +3 -0
- package/node_modules/uuid/dist/cjs-browser/stringify.js +38 -0
- package/node_modules/uuid/dist/cjs-browser/test/parse.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/parse.test.js +50 -0
- package/node_modules/uuid/dist/cjs-browser/test/rng.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/rng.test.js +14 -0
- package/node_modules/uuid/dist/cjs-browser/test/stringify.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/stringify.test.js +23 -0
- package/node_modules/uuid/dist/cjs-browser/test/test_constants.d.ts +33 -0
- package/node_modules/uuid/dist/cjs-browser/test/test_constants.js +91 -0
- package/node_modules/uuid/dist/cjs-browser/test/v1.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/v1.test.js +127 -0
- package/node_modules/uuid/dist/cjs-browser/test/v35.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/v35.test.js +143 -0
- package/node_modules/uuid/dist/cjs-browser/test/v4.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/v4.test.js +60 -0
- package/node_modules/uuid/dist/cjs-browser/test/v6.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/v6.test.js +56 -0
- package/node_modules/uuid/dist/cjs-browser/test/v7.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/v7.test.js +194 -0
- package/node_modules/uuid/dist/cjs-browser/test/validate.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/validate.test.js +13 -0
- package/node_modules/uuid/dist/cjs-browser/test/version.test.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/test/version.test.js +20 -0
- package/node_modules/uuid/dist/cjs-browser/types.d.ts +21 -0
- package/node_modules/uuid/dist/cjs-browser/types.js +2 -0
- package/node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts +1 -0
- package/node_modules/uuid/dist/cjs-browser/uuid-bin.js +72 -0
- package/node_modules/uuid/dist/cjs-browser/v1.d.ts +11 -0
- package/node_modules/uuid/dist/cjs-browser/v1.js +78 -0
- package/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/v1ToV6.js +13 -0
- package/node_modules/uuid/dist/cjs-browser/v3.d.ts +9 -0
- package/node_modules/uuid/dist/cjs-browser/v3.js +14 -0
- package/node_modules/uuid/dist/cjs-browser/v35.d.ts +7 -0
- package/node_modules/uuid/dist/cjs-browser/v35.js +41 -0
- package/node_modules/uuid/dist/cjs-browser/v4.d.ts +4 -0
- package/node_modules/uuid/dist/cjs-browser/v4.js +23 -0
- package/node_modules/uuid/dist/cjs-browser/v5.d.ts +9 -0
- package/node_modules/uuid/dist/cjs-browser/v5.js +14 -0
- package/node_modules/uuid/dist/cjs-browser/v6.d.ts +4 -0
- package/node_modules/uuid/dist/cjs-browser/v6.js +19 -0
- package/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/v6ToV1.js +13 -0
- package/node_modules/uuid/dist/cjs-browser/v7.d.ts +9 -0
- package/node_modules/uuid/dist/cjs-browser/v7.js +60 -0
- package/node_modules/uuid/dist/cjs-browser/validate.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/validate.js +7 -0
- package/node_modules/uuid/dist/cjs-browser/version.d.ts +2 -0
- package/node_modules/uuid/dist/cjs-browser/version.js +10 -0
- package/node_modules/uuid/dist/esm/bin/uuid +2 -0
- package/node_modules/uuid/dist/esm/index.d.ts +15 -0
- package/node_modules/uuid/dist/esm/index.js +14 -0
- package/node_modules/uuid/dist/esm/max.d.ts +2 -0
- package/node_modules/uuid/dist/esm/max.js +1 -0
- package/node_modules/uuid/dist/esm/md5.d.ts +2 -0
- package/node_modules/uuid/dist/esm/md5.js +11 -0
- package/node_modules/uuid/dist/esm/native.d.ts +5 -0
- package/node_modules/uuid/dist/esm/native.js +2 -0
- package/node_modules/uuid/dist/esm/nil.d.ts +2 -0
- package/node_modules/uuid/dist/esm/nil.js +1 -0
- package/node_modules/uuid/dist/esm/parse.d.ts +2 -0
- package/node_modules/uuid/dist/esm/parse.js +9 -0
- package/node_modules/uuid/dist/esm/regex.d.ts +2 -0
- package/node_modules/uuid/dist/esm/regex.js +1 -0
- package/node_modules/uuid/dist/esm/rng.d.ts +1 -0
- package/node_modules/uuid/dist/esm/rng.js +10 -0
- package/node_modules/uuid/dist/esm/sha1.d.ts +2 -0
- package/node_modules/uuid/dist/esm/sha1.js +11 -0
- package/node_modules/uuid/dist/esm/stringify.d.ts +3 -0
- package/node_modules/uuid/dist/esm/stringify.js +35 -0
- package/node_modules/uuid/dist/esm/test/parse.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/parse.test.js +48 -0
- package/node_modules/uuid/dist/esm/test/rng.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/rng.test.js +12 -0
- package/node_modules/uuid/dist/esm/test/stringify.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/stringify.test.js +21 -0
- package/node_modules/uuid/dist/esm/test/test_constants.d.ts +33 -0
- package/node_modules/uuid/dist/esm/test/test_constants.js +88 -0
- package/node_modules/uuid/dist/esm/test/v1.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/v1.test.js +125 -0
- package/node_modules/uuid/dist/esm/test/v35.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/v35.test.js +141 -0
- package/node_modules/uuid/dist/esm/test/v4.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/v4.test.js +58 -0
- package/node_modules/uuid/dist/esm/test/v6.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/v6.test.js +54 -0
- package/node_modules/uuid/dist/esm/test/v7.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/v7.test.js +192 -0
- package/node_modules/uuid/dist/esm/test/validate.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/validate.test.js +11 -0
- package/node_modules/uuid/dist/esm/test/version.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm/test/version.test.js +18 -0
- package/node_modules/uuid/dist/esm/types.d.ts +21 -0
- package/node_modules/uuid/dist/esm/types.js +1 -0
- package/node_modules/uuid/dist/esm/uuid-bin.d.ts +1 -0
- package/node_modules/uuid/dist/esm/uuid-bin.js +70 -0
- package/node_modules/uuid/dist/esm/v1.d.ts +11 -0
- package/node_modules/uuid/dist/esm/v1.js +75 -0
- package/node_modules/uuid/dist/esm/v1ToV6.d.ts +2 -0
- package/node_modules/uuid/dist/esm/v1ToV6.js +10 -0
- package/node_modules/uuid/dist/esm/v3.d.ts +9 -0
- package/node_modules/uuid/dist/esm/v3.js +9 -0
- package/node_modules/uuid/dist/esm/v35.d.ts +7 -0
- package/node_modules/uuid/dist/esm/v35.js +36 -0
- package/node_modules/uuid/dist/esm/v4.d.ts +4 -0
- package/node_modules/uuid/dist/esm/v4.js +21 -0
- package/node_modules/uuid/dist/esm/v5.d.ts +9 -0
- package/node_modules/uuid/dist/esm/v5.js +9 -0
- package/node_modules/uuid/dist/esm/v6.d.ts +4 -0
- package/node_modules/uuid/dist/esm/v6.js +17 -0
- package/node_modules/uuid/dist/esm/v6ToV1.d.ts +2 -0
- package/node_modules/uuid/dist/esm/v6ToV1.js +10 -0
- package/node_modules/uuid/dist/esm/v7.d.ts +9 -0
- package/node_modules/uuid/dist/esm/v7.js +57 -0
- package/node_modules/uuid/dist/esm/validate.d.ts +2 -0
- package/node_modules/uuid/dist/esm/validate.js +5 -0
- package/node_modules/uuid/dist/esm/version.d.ts +2 -0
- package/node_modules/uuid/dist/esm/version.js +8 -0
- package/node_modules/uuid/dist/esm-browser/index.d.ts +15 -0
- package/node_modules/uuid/dist/esm-browser/index.js +14 -0
- package/node_modules/uuid/dist/esm-browser/max.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/max.js +1 -0
- package/node_modules/uuid/dist/esm-browser/md5.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/md5.js +135 -0
- package/node_modules/uuid/dist/esm-browser/native.d.ts +4 -0
- package/node_modules/uuid/dist/esm-browser/native.js +2 -0
- package/node_modules/uuid/dist/esm-browser/nil.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/nil.js +1 -0
- package/node_modules/uuid/dist/esm-browser/parse.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/parse.js +9 -0
- package/node_modules/uuid/dist/esm-browser/regex.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/regex.js +1 -0
- package/node_modules/uuid/dist/esm-browser/rng.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/rng.js +11 -0
- package/node_modules/uuid/dist/esm-browser/sha1.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/sha1.js +70 -0
- package/node_modules/uuid/dist/esm-browser/stringify.d.ts +3 -0
- package/node_modules/uuid/dist/esm-browser/stringify.js +35 -0
- package/node_modules/uuid/dist/esm-browser/test/parse.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/parse.test.js +48 -0
- package/node_modules/uuid/dist/esm-browser/test/rng.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/rng.test.js +12 -0
- package/node_modules/uuid/dist/esm-browser/test/stringify.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/stringify.test.js +21 -0
- package/node_modules/uuid/dist/esm-browser/test/test_constants.d.ts +33 -0
- package/node_modules/uuid/dist/esm-browser/test/test_constants.js +88 -0
- package/node_modules/uuid/dist/esm-browser/test/v1.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/v1.test.js +125 -0
- package/node_modules/uuid/dist/esm-browser/test/v35.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/v35.test.js +141 -0
- package/node_modules/uuid/dist/esm-browser/test/v4.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/v4.test.js +58 -0
- package/node_modules/uuid/dist/esm-browser/test/v6.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/v6.test.js +54 -0
- package/node_modules/uuid/dist/esm-browser/test/v7.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/v7.test.js +192 -0
- package/node_modules/uuid/dist/esm-browser/test/validate.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/validate.test.js +11 -0
- package/node_modules/uuid/dist/esm-browser/test/version.test.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/test/version.test.js +18 -0
- package/node_modules/uuid/dist/esm-browser/types.d.ts +21 -0
- package/node_modules/uuid/dist/esm-browser/types.js +1 -0
- package/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +1 -0
- package/node_modules/uuid/dist/esm-browser/uuid-bin.js +70 -0
- package/node_modules/uuid/dist/esm-browser/v1.d.ts +11 -0
- package/node_modules/uuid/dist/esm-browser/v1.js +75 -0
- package/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/v1ToV6.js +10 -0
- package/node_modules/uuid/dist/esm-browser/v3.d.ts +9 -0
- package/node_modules/uuid/dist/esm-browser/v3.js +9 -0
- package/node_modules/uuid/dist/esm-browser/v35.d.ts +7 -0
- package/node_modules/uuid/dist/esm-browser/v35.js +36 -0
- package/node_modules/uuid/dist/esm-browser/v4.d.ts +4 -0
- package/node_modules/uuid/dist/esm-browser/v4.js +21 -0
- package/node_modules/uuid/dist/esm-browser/v5.d.ts +9 -0
- package/node_modules/uuid/dist/esm-browser/v5.js +9 -0
- package/node_modules/uuid/dist/esm-browser/v6.d.ts +4 -0
- package/node_modules/uuid/dist/esm-browser/v6.js +17 -0
- package/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/v6ToV1.js +10 -0
- package/node_modules/uuid/dist/esm-browser/v7.d.ts +9 -0
- package/node_modules/uuid/dist/esm-browser/v7.js +57 -0
- package/node_modules/uuid/dist/esm-browser/validate.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/validate.js +5 -0
- package/node_modules/uuid/dist/esm-browser/version.d.ts +2 -0
- package/node_modules/uuid/dist/esm-browser/version.js +8 -0
- package/node_modules/uuid/package.json +134 -0
- package/node_modules/worker-timers/LICENSE +21 -0
- package/node_modules/worker-timers/README.md +71 -0
- package/node_modules/worker-timers/build/es2019/factories/load-or-return-broker.d.ts +2 -0
- package/node_modules/worker-timers/build/es2019/factories/load-or-return-broker.d.ts.map +1 -0
- package/node_modules/worker-timers/build/es2019/factories/load-or-return-broker.js +15 -0
- package/node_modules/worker-timers/build/es2019/factories/load-or-return-broker.js.map +1 -0
- package/node_modules/worker-timers/build/es2019/module.d.ts +6 -0
- package/node_modules/worker-timers/build/es2019/module.d.ts.map +1 -0
- package/node_modules/worker-timers/build/es2019/module.js +9 -0
- package/node_modules/worker-timers/build/es2019/module.js.map +1 -0
- package/node_modules/worker-timers/build/es2019/worker/worker.d.ts +2 -0
- package/node_modules/worker-timers/build/es2019/worker/worker.d.ts.map +1 -0
- package/node_modules/worker-timers/build/es2019/worker/worker.js +3 -0
- package/node_modules/worker-timers/build/es2019/worker/worker.js.map +1 -0
- package/node_modules/worker-timers/build/es5/bundle.js +50 -0
- package/node_modules/worker-timers/package.json +106 -0
- package/node_modules/worker-timers/src/factories/load-or-return-broker.ts +19 -0
- package/node_modules/worker-timers/src/module.ts +13 -0
- package/node_modules/worker-timers/src/tsconfig.json +6 -0
- package/node_modules/worker-timers/src/worker/worker.ts +2 -0
- package/package.json +9 -2
|
@@ -0,0 +1,895 @@
|
|
|
1
|
+
;(function (root, factory, undef) {
|
|
2
|
+
if (typeof exports === "object") {
|
|
3
|
+
// CommonJS
|
|
4
|
+
module.exports = exports = factory(require("./core"), require("./evpkdf"));
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
// AMD
|
|
8
|
+
define(["./core", "./evpkdf"], factory);
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
// Global (browser)
|
|
12
|
+
factory(root.CryptoJS);
|
|
13
|
+
}
|
|
14
|
+
}(this, function (CryptoJS) {
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Cipher core components.
|
|
18
|
+
*/
|
|
19
|
+
CryptoJS.lib.Cipher || (function (undefined) {
|
|
20
|
+
// Shortcuts
|
|
21
|
+
var C = CryptoJS;
|
|
22
|
+
var C_lib = C.lib;
|
|
23
|
+
var Base = C_lib.Base;
|
|
24
|
+
var WordArray = C_lib.WordArray;
|
|
25
|
+
var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm;
|
|
26
|
+
var C_enc = C.enc;
|
|
27
|
+
var Utf8 = C_enc.Utf8;
|
|
28
|
+
var Base64 = C_enc.Base64;
|
|
29
|
+
var C_algo = C.algo;
|
|
30
|
+
var EvpKDF = C_algo.EvpKDF;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Abstract base cipher template.
|
|
34
|
+
*
|
|
35
|
+
* @property {number} keySize This cipher's key size. Default: 4 (128 bits)
|
|
36
|
+
* @property {number} ivSize This cipher's IV size. Default: 4 (128 bits)
|
|
37
|
+
* @property {number} _ENC_XFORM_MODE A constant representing encryption mode.
|
|
38
|
+
* @property {number} _DEC_XFORM_MODE A constant representing decryption mode.
|
|
39
|
+
*/
|
|
40
|
+
var Cipher = C_lib.Cipher = BufferedBlockAlgorithm.extend({
|
|
41
|
+
/**
|
|
42
|
+
* Configuration options.
|
|
43
|
+
*
|
|
44
|
+
* @property {WordArray} iv The IV to use for this operation.
|
|
45
|
+
*/
|
|
46
|
+
cfg: Base.extend(),
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Creates this cipher in encryption mode.
|
|
50
|
+
*
|
|
51
|
+
* @param {WordArray} key The key.
|
|
52
|
+
* @param {Object} cfg (Optional) The configuration options to use for this operation.
|
|
53
|
+
*
|
|
54
|
+
* @return {Cipher} A cipher instance.
|
|
55
|
+
*
|
|
56
|
+
* @static
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
*
|
|
60
|
+
* var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });
|
|
61
|
+
*/
|
|
62
|
+
createEncryptor: function (key, cfg) {
|
|
63
|
+
return this.create(this._ENC_XFORM_MODE, key, cfg);
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Creates this cipher in decryption mode.
|
|
68
|
+
*
|
|
69
|
+
* @param {WordArray} key The key.
|
|
70
|
+
* @param {Object} cfg (Optional) The configuration options to use for this operation.
|
|
71
|
+
*
|
|
72
|
+
* @return {Cipher} A cipher instance.
|
|
73
|
+
*
|
|
74
|
+
* @static
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
*
|
|
78
|
+
* var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });
|
|
79
|
+
*/
|
|
80
|
+
createDecryptor: function (key, cfg) {
|
|
81
|
+
return this.create(this._DEC_XFORM_MODE, key, cfg);
|
|
82
|
+
},
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Initializes a newly created cipher.
|
|
86
|
+
*
|
|
87
|
+
* @param {number} xformMode Either the encryption or decryption transormation mode constant.
|
|
88
|
+
* @param {WordArray} key The key.
|
|
89
|
+
* @param {Object} cfg (Optional) The configuration options to use for this operation.
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
*
|
|
93
|
+
* var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
|
|
94
|
+
*/
|
|
95
|
+
init: function (xformMode, key, cfg) {
|
|
96
|
+
// Apply config defaults
|
|
97
|
+
this.cfg = this.cfg.extend(cfg);
|
|
98
|
+
|
|
99
|
+
// Store transform mode and key
|
|
100
|
+
this._xformMode = xformMode;
|
|
101
|
+
this._key = key;
|
|
102
|
+
|
|
103
|
+
// Set initial values
|
|
104
|
+
this.reset();
|
|
105
|
+
},
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Resets this cipher to its initial state.
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
*
|
|
112
|
+
* cipher.reset();
|
|
113
|
+
*/
|
|
114
|
+
reset: function () {
|
|
115
|
+
// Reset data buffer
|
|
116
|
+
BufferedBlockAlgorithm.reset.call(this);
|
|
117
|
+
|
|
118
|
+
// Perform concrete-cipher logic
|
|
119
|
+
this._doReset();
|
|
120
|
+
},
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Adds data to be encrypted or decrypted.
|
|
124
|
+
*
|
|
125
|
+
* @param {WordArray|string} dataUpdate The data to encrypt or decrypt.
|
|
126
|
+
*
|
|
127
|
+
* @return {WordArray} The data after processing.
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
*
|
|
131
|
+
* var encrypted = cipher.process('data');
|
|
132
|
+
* var encrypted = cipher.process(wordArray);
|
|
133
|
+
*/
|
|
134
|
+
process: function (dataUpdate) {
|
|
135
|
+
// Append
|
|
136
|
+
this._append(dataUpdate);
|
|
137
|
+
|
|
138
|
+
// Process available blocks
|
|
139
|
+
return this._process();
|
|
140
|
+
},
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Finalizes the encryption or decryption process.
|
|
144
|
+
* Note that the finalize operation is effectively a destructive, read-once operation.
|
|
145
|
+
*
|
|
146
|
+
* @param {WordArray|string} dataUpdate The final data to encrypt or decrypt.
|
|
147
|
+
*
|
|
148
|
+
* @return {WordArray} The data after final processing.
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
*
|
|
152
|
+
* var encrypted = cipher.finalize();
|
|
153
|
+
* var encrypted = cipher.finalize('data');
|
|
154
|
+
* var encrypted = cipher.finalize(wordArray);
|
|
155
|
+
*/
|
|
156
|
+
finalize: function (dataUpdate) {
|
|
157
|
+
// Final data update
|
|
158
|
+
if (dataUpdate) {
|
|
159
|
+
this._append(dataUpdate);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// Perform concrete-cipher logic
|
|
163
|
+
var finalProcessedData = this._doFinalize();
|
|
164
|
+
|
|
165
|
+
return finalProcessedData;
|
|
166
|
+
},
|
|
167
|
+
|
|
168
|
+
keySize: 128/32,
|
|
169
|
+
|
|
170
|
+
ivSize: 128/32,
|
|
171
|
+
|
|
172
|
+
_ENC_XFORM_MODE: 1,
|
|
173
|
+
|
|
174
|
+
_DEC_XFORM_MODE: 2,
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Creates shortcut functions to a cipher's object interface.
|
|
178
|
+
*
|
|
179
|
+
* @param {Cipher} cipher The cipher to create a helper for.
|
|
180
|
+
*
|
|
181
|
+
* @return {Object} An object with encrypt and decrypt shortcut functions.
|
|
182
|
+
*
|
|
183
|
+
* @static
|
|
184
|
+
*
|
|
185
|
+
* @example
|
|
186
|
+
*
|
|
187
|
+
* var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
|
|
188
|
+
*/
|
|
189
|
+
_createHelper: (function () {
|
|
190
|
+
function selectCipherStrategy(key) {
|
|
191
|
+
if (typeof key == 'string') {
|
|
192
|
+
return PasswordBasedCipher;
|
|
193
|
+
} else {
|
|
194
|
+
return SerializableCipher;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
return function (cipher) {
|
|
199
|
+
return {
|
|
200
|
+
encrypt: function (message, key, cfg) {
|
|
201
|
+
return selectCipherStrategy(key).encrypt(cipher, message, key, cfg);
|
|
202
|
+
},
|
|
203
|
+
|
|
204
|
+
decrypt: function (ciphertext, key, cfg) {
|
|
205
|
+
return selectCipherStrategy(key).decrypt(cipher, ciphertext, key, cfg);
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
}())
|
|
210
|
+
});
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Abstract base stream cipher template.
|
|
214
|
+
*
|
|
215
|
+
* @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 1 (32 bits)
|
|
216
|
+
*/
|
|
217
|
+
var StreamCipher = C_lib.StreamCipher = Cipher.extend({
|
|
218
|
+
_doFinalize: function () {
|
|
219
|
+
// Process partial blocks
|
|
220
|
+
var finalProcessedBlocks = this._process(!!'flush');
|
|
221
|
+
|
|
222
|
+
return finalProcessedBlocks;
|
|
223
|
+
},
|
|
224
|
+
|
|
225
|
+
blockSize: 1
|
|
226
|
+
});
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Mode namespace.
|
|
230
|
+
*/
|
|
231
|
+
var C_mode = C.mode = {};
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Abstract base block cipher mode template.
|
|
235
|
+
*/
|
|
236
|
+
var BlockCipherMode = C_lib.BlockCipherMode = Base.extend({
|
|
237
|
+
/**
|
|
238
|
+
* Creates this mode for encryption.
|
|
239
|
+
*
|
|
240
|
+
* @param {Cipher} cipher A block cipher instance.
|
|
241
|
+
* @param {Array} iv The IV words.
|
|
242
|
+
*
|
|
243
|
+
* @static
|
|
244
|
+
*
|
|
245
|
+
* @example
|
|
246
|
+
*
|
|
247
|
+
* var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);
|
|
248
|
+
*/
|
|
249
|
+
createEncryptor: function (cipher, iv) {
|
|
250
|
+
return this.Encryptor.create(cipher, iv);
|
|
251
|
+
},
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Creates this mode for decryption.
|
|
255
|
+
*
|
|
256
|
+
* @param {Cipher} cipher A block cipher instance.
|
|
257
|
+
* @param {Array} iv The IV words.
|
|
258
|
+
*
|
|
259
|
+
* @static
|
|
260
|
+
*
|
|
261
|
+
* @example
|
|
262
|
+
*
|
|
263
|
+
* var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);
|
|
264
|
+
*/
|
|
265
|
+
createDecryptor: function (cipher, iv) {
|
|
266
|
+
return this.Decryptor.create(cipher, iv);
|
|
267
|
+
},
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Initializes a newly created mode.
|
|
271
|
+
*
|
|
272
|
+
* @param {Cipher} cipher A block cipher instance.
|
|
273
|
+
* @param {Array} iv The IV words.
|
|
274
|
+
*
|
|
275
|
+
* @example
|
|
276
|
+
*
|
|
277
|
+
* var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);
|
|
278
|
+
*/
|
|
279
|
+
init: function (cipher, iv) {
|
|
280
|
+
this._cipher = cipher;
|
|
281
|
+
this._iv = iv;
|
|
282
|
+
}
|
|
283
|
+
});
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Cipher Block Chaining mode.
|
|
287
|
+
*/
|
|
288
|
+
var CBC = C_mode.CBC = (function () {
|
|
289
|
+
/**
|
|
290
|
+
* Abstract base CBC mode.
|
|
291
|
+
*/
|
|
292
|
+
var CBC = BlockCipherMode.extend();
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* CBC encryptor.
|
|
296
|
+
*/
|
|
297
|
+
CBC.Encryptor = CBC.extend({
|
|
298
|
+
/**
|
|
299
|
+
* Processes the data block at offset.
|
|
300
|
+
*
|
|
301
|
+
* @param {Array} words The data words to operate on.
|
|
302
|
+
* @param {number} offset The offset where the block starts.
|
|
303
|
+
*
|
|
304
|
+
* @example
|
|
305
|
+
*
|
|
306
|
+
* mode.processBlock(data.words, offset);
|
|
307
|
+
*/
|
|
308
|
+
processBlock: function (words, offset) {
|
|
309
|
+
// Shortcuts
|
|
310
|
+
var cipher = this._cipher;
|
|
311
|
+
var blockSize = cipher.blockSize;
|
|
312
|
+
|
|
313
|
+
// XOR and encrypt
|
|
314
|
+
xorBlock.call(this, words, offset, blockSize);
|
|
315
|
+
cipher.encryptBlock(words, offset);
|
|
316
|
+
|
|
317
|
+
// Remember this block to use with next block
|
|
318
|
+
this._prevBlock = words.slice(offset, offset + blockSize);
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* CBC decryptor.
|
|
324
|
+
*/
|
|
325
|
+
CBC.Decryptor = CBC.extend({
|
|
326
|
+
/**
|
|
327
|
+
* Processes the data block at offset.
|
|
328
|
+
*
|
|
329
|
+
* @param {Array} words The data words to operate on.
|
|
330
|
+
* @param {number} offset The offset where the block starts.
|
|
331
|
+
*
|
|
332
|
+
* @example
|
|
333
|
+
*
|
|
334
|
+
* mode.processBlock(data.words, offset);
|
|
335
|
+
*/
|
|
336
|
+
processBlock: function (words, offset) {
|
|
337
|
+
// Shortcuts
|
|
338
|
+
var cipher = this._cipher;
|
|
339
|
+
var blockSize = cipher.blockSize;
|
|
340
|
+
|
|
341
|
+
// Remember this block to use with next block
|
|
342
|
+
var thisBlock = words.slice(offset, offset + blockSize);
|
|
343
|
+
|
|
344
|
+
// Decrypt and XOR
|
|
345
|
+
cipher.decryptBlock(words, offset);
|
|
346
|
+
xorBlock.call(this, words, offset, blockSize);
|
|
347
|
+
|
|
348
|
+
// This block becomes the previous block
|
|
349
|
+
this._prevBlock = thisBlock;
|
|
350
|
+
}
|
|
351
|
+
});
|
|
352
|
+
|
|
353
|
+
function xorBlock(words, offset, blockSize) {
|
|
354
|
+
var block;
|
|
355
|
+
|
|
356
|
+
// Shortcut
|
|
357
|
+
var iv = this._iv;
|
|
358
|
+
|
|
359
|
+
// Choose mixing block
|
|
360
|
+
if (iv) {
|
|
361
|
+
block = iv;
|
|
362
|
+
|
|
363
|
+
// Remove IV for subsequent blocks
|
|
364
|
+
this._iv = undefined;
|
|
365
|
+
} else {
|
|
366
|
+
block = this._prevBlock;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
// XOR blocks
|
|
370
|
+
for (var i = 0; i < blockSize; i++) {
|
|
371
|
+
words[offset + i] ^= block[i];
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
return CBC;
|
|
376
|
+
}());
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Padding namespace.
|
|
380
|
+
*/
|
|
381
|
+
var C_pad = C.pad = {};
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* PKCS #5/7 padding strategy.
|
|
385
|
+
*/
|
|
386
|
+
var Pkcs7 = C_pad.Pkcs7 = {
|
|
387
|
+
/**
|
|
388
|
+
* Pads data using the algorithm defined in PKCS #5/7.
|
|
389
|
+
*
|
|
390
|
+
* @param {WordArray} data The data to pad.
|
|
391
|
+
* @param {number} blockSize The multiple that the data should be padded to.
|
|
392
|
+
*
|
|
393
|
+
* @static
|
|
394
|
+
*
|
|
395
|
+
* @example
|
|
396
|
+
*
|
|
397
|
+
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
398
|
+
*/
|
|
399
|
+
pad: function (data, blockSize) {
|
|
400
|
+
// Shortcut
|
|
401
|
+
var blockSizeBytes = blockSize * 4;
|
|
402
|
+
|
|
403
|
+
// Count padding bytes
|
|
404
|
+
var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes;
|
|
405
|
+
|
|
406
|
+
// Create padding word
|
|
407
|
+
var paddingWord = (nPaddingBytes << 24) | (nPaddingBytes << 16) | (nPaddingBytes << 8) | nPaddingBytes;
|
|
408
|
+
|
|
409
|
+
// Create padding
|
|
410
|
+
var paddingWords = [];
|
|
411
|
+
for (var i = 0; i < nPaddingBytes; i += 4) {
|
|
412
|
+
paddingWords.push(paddingWord);
|
|
413
|
+
}
|
|
414
|
+
var padding = WordArray.create(paddingWords, nPaddingBytes);
|
|
415
|
+
|
|
416
|
+
// Add padding
|
|
417
|
+
data.concat(padding);
|
|
418
|
+
},
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* Unpads data that had been padded using the algorithm defined in PKCS #5/7.
|
|
422
|
+
*
|
|
423
|
+
* @param {WordArray} data The data to unpad.
|
|
424
|
+
*
|
|
425
|
+
* @static
|
|
426
|
+
*
|
|
427
|
+
* @example
|
|
428
|
+
*
|
|
429
|
+
* CryptoJS.pad.Pkcs7.unpad(wordArray);
|
|
430
|
+
*/
|
|
431
|
+
unpad: function (data) {
|
|
432
|
+
// Get number of padding bytes from last byte
|
|
433
|
+
var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff;
|
|
434
|
+
|
|
435
|
+
// Remove padding
|
|
436
|
+
data.sigBytes -= nPaddingBytes;
|
|
437
|
+
}
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* Abstract base block cipher template.
|
|
442
|
+
*
|
|
443
|
+
* @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 4 (128 bits)
|
|
444
|
+
*/
|
|
445
|
+
var BlockCipher = C_lib.BlockCipher = Cipher.extend({
|
|
446
|
+
/**
|
|
447
|
+
* Configuration options.
|
|
448
|
+
*
|
|
449
|
+
* @property {Mode} mode The block mode to use. Default: CBC
|
|
450
|
+
* @property {Padding} padding The padding strategy to use. Default: Pkcs7
|
|
451
|
+
*/
|
|
452
|
+
cfg: Cipher.cfg.extend({
|
|
453
|
+
mode: CBC,
|
|
454
|
+
padding: Pkcs7
|
|
455
|
+
}),
|
|
456
|
+
|
|
457
|
+
reset: function () {
|
|
458
|
+
var modeCreator;
|
|
459
|
+
|
|
460
|
+
// Reset cipher
|
|
461
|
+
Cipher.reset.call(this);
|
|
462
|
+
|
|
463
|
+
// Shortcuts
|
|
464
|
+
var cfg = this.cfg;
|
|
465
|
+
var iv = cfg.iv;
|
|
466
|
+
var mode = cfg.mode;
|
|
467
|
+
|
|
468
|
+
// Reset block mode
|
|
469
|
+
if (this._xformMode == this._ENC_XFORM_MODE) {
|
|
470
|
+
modeCreator = mode.createEncryptor;
|
|
471
|
+
} else /* if (this._xformMode == this._DEC_XFORM_MODE) */ {
|
|
472
|
+
modeCreator = mode.createDecryptor;
|
|
473
|
+
// Keep at least one block in the buffer for unpadding
|
|
474
|
+
this._minBufferSize = 1;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
if (this._mode && this._mode.__creator == modeCreator) {
|
|
478
|
+
this._mode.init(this, iv && iv.words);
|
|
479
|
+
} else {
|
|
480
|
+
this._mode = modeCreator.call(mode, this, iv && iv.words);
|
|
481
|
+
this._mode.__creator = modeCreator;
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
|
|
485
|
+
_doProcessBlock: function (words, offset) {
|
|
486
|
+
this._mode.processBlock(words, offset);
|
|
487
|
+
},
|
|
488
|
+
|
|
489
|
+
_doFinalize: function () {
|
|
490
|
+
var finalProcessedBlocks;
|
|
491
|
+
|
|
492
|
+
// Shortcut
|
|
493
|
+
var padding = this.cfg.padding;
|
|
494
|
+
|
|
495
|
+
// Finalize
|
|
496
|
+
if (this._xformMode == this._ENC_XFORM_MODE) {
|
|
497
|
+
// Pad data
|
|
498
|
+
padding.pad(this._data, this.blockSize);
|
|
499
|
+
|
|
500
|
+
// Process final blocks
|
|
501
|
+
finalProcessedBlocks = this._process(!!'flush');
|
|
502
|
+
} else /* if (this._xformMode == this._DEC_XFORM_MODE) */ {
|
|
503
|
+
// Process final blocks
|
|
504
|
+
finalProcessedBlocks = this._process(!!'flush');
|
|
505
|
+
|
|
506
|
+
// Unpad data
|
|
507
|
+
padding.unpad(finalProcessedBlocks);
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
return finalProcessedBlocks;
|
|
511
|
+
},
|
|
512
|
+
|
|
513
|
+
blockSize: 128/32
|
|
514
|
+
});
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* A collection of cipher parameters.
|
|
518
|
+
*
|
|
519
|
+
* @property {WordArray} ciphertext The raw ciphertext.
|
|
520
|
+
* @property {WordArray} key The key to this ciphertext.
|
|
521
|
+
* @property {WordArray} iv The IV used in the ciphering operation.
|
|
522
|
+
* @property {WordArray} salt The salt used with a key derivation function.
|
|
523
|
+
* @property {Cipher} algorithm The cipher algorithm.
|
|
524
|
+
* @property {Mode} mode The block mode used in the ciphering operation.
|
|
525
|
+
* @property {Padding} padding The padding scheme used in the ciphering operation.
|
|
526
|
+
* @property {number} blockSize The block size of the cipher.
|
|
527
|
+
* @property {Format} formatter The default formatting strategy to convert this cipher params object to a string.
|
|
528
|
+
*/
|
|
529
|
+
var CipherParams = C_lib.CipherParams = Base.extend({
|
|
530
|
+
/**
|
|
531
|
+
* Initializes a newly created cipher params object.
|
|
532
|
+
*
|
|
533
|
+
* @param {Object} cipherParams An object with any of the possible cipher parameters.
|
|
534
|
+
*
|
|
535
|
+
* @example
|
|
536
|
+
*
|
|
537
|
+
* var cipherParams = CryptoJS.lib.CipherParams.create({
|
|
538
|
+
* ciphertext: ciphertextWordArray,
|
|
539
|
+
* key: keyWordArray,
|
|
540
|
+
* iv: ivWordArray,
|
|
541
|
+
* salt: saltWordArray,
|
|
542
|
+
* algorithm: CryptoJS.algo.AES,
|
|
543
|
+
* mode: CryptoJS.mode.CBC,
|
|
544
|
+
* padding: CryptoJS.pad.PKCS7,
|
|
545
|
+
* blockSize: 4,
|
|
546
|
+
* formatter: CryptoJS.format.OpenSSL
|
|
547
|
+
* });
|
|
548
|
+
*/
|
|
549
|
+
init: function (cipherParams) {
|
|
550
|
+
this.mixIn(cipherParams);
|
|
551
|
+
},
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* Converts this cipher params object to a string.
|
|
555
|
+
*
|
|
556
|
+
* @param {Format} formatter (Optional) The formatting strategy to use.
|
|
557
|
+
*
|
|
558
|
+
* @return {string} The stringified cipher params.
|
|
559
|
+
*
|
|
560
|
+
* @throws Error If neither the formatter nor the default formatter is set.
|
|
561
|
+
*
|
|
562
|
+
* @example
|
|
563
|
+
*
|
|
564
|
+
* var string = cipherParams + '';
|
|
565
|
+
* var string = cipherParams.toString();
|
|
566
|
+
* var string = cipherParams.toString(CryptoJS.format.OpenSSL);
|
|
567
|
+
*/
|
|
568
|
+
toString: function (formatter) {
|
|
569
|
+
return (formatter || this.formatter).stringify(this);
|
|
570
|
+
}
|
|
571
|
+
});
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Format namespace.
|
|
575
|
+
*/
|
|
576
|
+
var C_format = C.format = {};
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* OpenSSL formatting strategy.
|
|
580
|
+
*/
|
|
581
|
+
var OpenSSLFormatter = C_format.OpenSSL = {
|
|
582
|
+
/**
|
|
583
|
+
* Converts a cipher params object to an OpenSSL-compatible string.
|
|
584
|
+
*
|
|
585
|
+
* @param {CipherParams} cipherParams The cipher params object.
|
|
586
|
+
*
|
|
587
|
+
* @return {string} The OpenSSL-compatible string.
|
|
588
|
+
*
|
|
589
|
+
* @static
|
|
590
|
+
*
|
|
591
|
+
* @example
|
|
592
|
+
*
|
|
593
|
+
* var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
|
|
594
|
+
*/
|
|
595
|
+
stringify: function (cipherParams) {
|
|
596
|
+
var wordArray;
|
|
597
|
+
|
|
598
|
+
// Shortcuts
|
|
599
|
+
var ciphertext = cipherParams.ciphertext;
|
|
600
|
+
var salt = cipherParams.salt;
|
|
601
|
+
|
|
602
|
+
// Format
|
|
603
|
+
if (salt) {
|
|
604
|
+
wordArray = WordArray.create([0x53616c74, 0x65645f5f]).concat(salt).concat(ciphertext);
|
|
605
|
+
} else {
|
|
606
|
+
wordArray = ciphertext;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
return wordArray.toString(Base64);
|
|
610
|
+
},
|
|
611
|
+
|
|
612
|
+
/**
|
|
613
|
+
* Converts an OpenSSL-compatible string to a cipher params object.
|
|
614
|
+
*
|
|
615
|
+
* @param {string} openSSLStr The OpenSSL-compatible string.
|
|
616
|
+
*
|
|
617
|
+
* @return {CipherParams} The cipher params object.
|
|
618
|
+
*
|
|
619
|
+
* @static
|
|
620
|
+
*
|
|
621
|
+
* @example
|
|
622
|
+
*
|
|
623
|
+
* var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
|
|
624
|
+
*/
|
|
625
|
+
parse: function (openSSLStr) {
|
|
626
|
+
var salt;
|
|
627
|
+
|
|
628
|
+
// Parse base64
|
|
629
|
+
var ciphertext = Base64.parse(openSSLStr);
|
|
630
|
+
|
|
631
|
+
// Shortcut
|
|
632
|
+
var ciphertextWords = ciphertext.words;
|
|
633
|
+
|
|
634
|
+
// Test for salt
|
|
635
|
+
if (ciphertextWords[0] == 0x53616c74 && ciphertextWords[1] == 0x65645f5f) {
|
|
636
|
+
// Extract salt
|
|
637
|
+
salt = WordArray.create(ciphertextWords.slice(2, 4));
|
|
638
|
+
|
|
639
|
+
// Remove salt from ciphertext
|
|
640
|
+
ciphertextWords.splice(0, 4);
|
|
641
|
+
ciphertext.sigBytes -= 16;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
return CipherParams.create({ ciphertext: ciphertext, salt: salt });
|
|
645
|
+
}
|
|
646
|
+
};
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* A cipher wrapper that returns ciphertext as a serializable cipher params object.
|
|
650
|
+
*/
|
|
651
|
+
var SerializableCipher = C_lib.SerializableCipher = Base.extend({
|
|
652
|
+
/**
|
|
653
|
+
* Configuration options.
|
|
654
|
+
*
|
|
655
|
+
* @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL
|
|
656
|
+
*/
|
|
657
|
+
cfg: Base.extend({
|
|
658
|
+
format: OpenSSLFormatter
|
|
659
|
+
}),
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* Encrypts a message.
|
|
663
|
+
*
|
|
664
|
+
* @param {Cipher} cipher The cipher algorithm to use.
|
|
665
|
+
* @param {WordArray|string} message The message to encrypt.
|
|
666
|
+
* @param {WordArray} key The key.
|
|
667
|
+
* @param {Object} cfg (Optional) The configuration options to use for this operation.
|
|
668
|
+
*
|
|
669
|
+
* @return {CipherParams} A cipher params object.
|
|
670
|
+
*
|
|
671
|
+
* @static
|
|
672
|
+
*
|
|
673
|
+
* @example
|
|
674
|
+
*
|
|
675
|
+
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key);
|
|
676
|
+
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
|
|
677
|
+
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
678
|
+
*/
|
|
679
|
+
encrypt: function (cipher, message, key, cfg) {
|
|
680
|
+
// Apply config defaults
|
|
681
|
+
cfg = this.cfg.extend(cfg);
|
|
682
|
+
|
|
683
|
+
// Encrypt
|
|
684
|
+
var encryptor = cipher.createEncryptor(key, cfg);
|
|
685
|
+
var ciphertext = encryptor.finalize(message);
|
|
686
|
+
|
|
687
|
+
// Shortcut
|
|
688
|
+
var cipherCfg = encryptor.cfg;
|
|
689
|
+
|
|
690
|
+
// Create and return serializable cipher params
|
|
691
|
+
return CipherParams.create({
|
|
692
|
+
ciphertext: ciphertext,
|
|
693
|
+
key: key,
|
|
694
|
+
iv: cipherCfg.iv,
|
|
695
|
+
algorithm: cipher,
|
|
696
|
+
mode: cipherCfg.mode,
|
|
697
|
+
padding: cipherCfg.padding,
|
|
698
|
+
blockSize: cipher.blockSize,
|
|
699
|
+
formatter: cfg.format
|
|
700
|
+
});
|
|
701
|
+
},
|
|
702
|
+
|
|
703
|
+
/**
|
|
704
|
+
* Decrypts serialized ciphertext.
|
|
705
|
+
*
|
|
706
|
+
* @param {Cipher} cipher The cipher algorithm to use.
|
|
707
|
+
* @param {CipherParams|string} ciphertext The ciphertext to decrypt.
|
|
708
|
+
* @param {WordArray} key The key.
|
|
709
|
+
* @param {Object} cfg (Optional) The configuration options to use for this operation.
|
|
710
|
+
*
|
|
711
|
+
* @return {WordArray} The plaintext.
|
|
712
|
+
*
|
|
713
|
+
* @static
|
|
714
|
+
*
|
|
715
|
+
* @example
|
|
716
|
+
*
|
|
717
|
+
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
718
|
+
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
719
|
+
*/
|
|
720
|
+
decrypt: function (cipher, ciphertext, key, cfg) {
|
|
721
|
+
// Apply config defaults
|
|
722
|
+
cfg = this.cfg.extend(cfg);
|
|
723
|
+
|
|
724
|
+
// Convert string to CipherParams
|
|
725
|
+
ciphertext = this._parse(ciphertext, cfg.format);
|
|
726
|
+
|
|
727
|
+
// Decrypt
|
|
728
|
+
var plaintext = cipher.createDecryptor(key, cfg).finalize(ciphertext.ciphertext);
|
|
729
|
+
|
|
730
|
+
return plaintext;
|
|
731
|
+
},
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* Converts serialized ciphertext to CipherParams,
|
|
735
|
+
* else assumed CipherParams already and returns ciphertext unchanged.
|
|
736
|
+
*
|
|
737
|
+
* @param {CipherParams|string} ciphertext The ciphertext.
|
|
738
|
+
* @param {Formatter} format The formatting strategy to use to parse serialized ciphertext.
|
|
739
|
+
*
|
|
740
|
+
* @return {CipherParams} The unserialized ciphertext.
|
|
741
|
+
*
|
|
742
|
+
* @static
|
|
743
|
+
*
|
|
744
|
+
* @example
|
|
745
|
+
*
|
|
746
|
+
* var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);
|
|
747
|
+
*/
|
|
748
|
+
_parse: function (ciphertext, format) {
|
|
749
|
+
if (typeof ciphertext == 'string') {
|
|
750
|
+
return format.parse(ciphertext, this);
|
|
751
|
+
} else {
|
|
752
|
+
return ciphertext;
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
});
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* Key derivation function namespace.
|
|
759
|
+
*/
|
|
760
|
+
var C_kdf = C.kdf = {};
|
|
761
|
+
|
|
762
|
+
/**
|
|
763
|
+
* OpenSSL key derivation function.
|
|
764
|
+
*/
|
|
765
|
+
var OpenSSLKdf = C_kdf.OpenSSL = {
|
|
766
|
+
/**
|
|
767
|
+
* Derives a key and IV from a password.
|
|
768
|
+
*
|
|
769
|
+
* @param {string} password The password to derive from.
|
|
770
|
+
* @param {number} keySize The size in words of the key to generate.
|
|
771
|
+
* @param {number} ivSize The size in words of the IV to generate.
|
|
772
|
+
* @param {WordArray|string} salt (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly.
|
|
773
|
+
*
|
|
774
|
+
* @return {CipherParams} A cipher params object with the key, IV, and salt.
|
|
775
|
+
*
|
|
776
|
+
* @static
|
|
777
|
+
*
|
|
778
|
+
* @example
|
|
779
|
+
*
|
|
780
|
+
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
781
|
+
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
782
|
+
*/
|
|
783
|
+
execute: function (password, keySize, ivSize, salt, hasher) {
|
|
784
|
+
// Generate random salt
|
|
785
|
+
if (!salt) {
|
|
786
|
+
salt = WordArray.random(64/8);
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
// Derive key and IV
|
|
790
|
+
if (!hasher) {
|
|
791
|
+
var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);
|
|
792
|
+
} else {
|
|
793
|
+
var key = EvpKDF.create({ keySize: keySize + ivSize, hasher: hasher }).compute(password, salt);
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
// Separate key and IV
|
|
798
|
+
var iv = WordArray.create(key.words.slice(keySize), ivSize * 4);
|
|
799
|
+
key.sigBytes = keySize * 4;
|
|
800
|
+
|
|
801
|
+
// Return params
|
|
802
|
+
return CipherParams.create({ key: key, iv: iv, salt: salt });
|
|
803
|
+
}
|
|
804
|
+
};
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* A serializable cipher wrapper that derives the key from a password,
|
|
808
|
+
* and returns ciphertext as a serializable cipher params object.
|
|
809
|
+
*/
|
|
810
|
+
var PasswordBasedCipher = C_lib.PasswordBasedCipher = SerializableCipher.extend({
|
|
811
|
+
/**
|
|
812
|
+
* Configuration options.
|
|
813
|
+
*
|
|
814
|
+
* @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL
|
|
815
|
+
*/
|
|
816
|
+
cfg: SerializableCipher.cfg.extend({
|
|
817
|
+
kdf: OpenSSLKdf
|
|
818
|
+
}),
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* Encrypts a message using a password.
|
|
822
|
+
*
|
|
823
|
+
* @param {Cipher} cipher The cipher algorithm to use.
|
|
824
|
+
* @param {WordArray|string} message The message to encrypt.
|
|
825
|
+
* @param {string} password The password.
|
|
826
|
+
* @param {Object} cfg (Optional) The configuration options to use for this operation.
|
|
827
|
+
*
|
|
828
|
+
* @return {CipherParams} A cipher params object.
|
|
829
|
+
*
|
|
830
|
+
* @static
|
|
831
|
+
*
|
|
832
|
+
* @example
|
|
833
|
+
*
|
|
834
|
+
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
|
|
835
|
+
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
|
|
836
|
+
*/
|
|
837
|
+
encrypt: function (cipher, message, password, cfg) {
|
|
838
|
+
// Apply config defaults
|
|
839
|
+
cfg = this.cfg.extend(cfg);
|
|
840
|
+
|
|
841
|
+
// Derive key and other params
|
|
842
|
+
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, cfg.salt, cfg.hasher);
|
|
843
|
+
|
|
844
|
+
// Add IV to config
|
|
845
|
+
cfg.iv = derivedParams.iv;
|
|
846
|
+
|
|
847
|
+
// Encrypt
|
|
848
|
+
var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg);
|
|
849
|
+
|
|
850
|
+
// Mix in derived params
|
|
851
|
+
ciphertext.mixIn(derivedParams);
|
|
852
|
+
|
|
853
|
+
return ciphertext;
|
|
854
|
+
},
|
|
855
|
+
|
|
856
|
+
/**
|
|
857
|
+
* Decrypts serialized ciphertext using a password.
|
|
858
|
+
*
|
|
859
|
+
* @param {Cipher} cipher The cipher algorithm to use.
|
|
860
|
+
* @param {CipherParams|string} ciphertext The ciphertext to decrypt.
|
|
861
|
+
* @param {string} password The password.
|
|
862
|
+
* @param {Object} cfg (Optional) The configuration options to use for this operation.
|
|
863
|
+
*
|
|
864
|
+
* @return {WordArray} The plaintext.
|
|
865
|
+
*
|
|
866
|
+
* @static
|
|
867
|
+
*
|
|
868
|
+
* @example
|
|
869
|
+
*
|
|
870
|
+
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
|
|
871
|
+
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
|
|
872
|
+
*/
|
|
873
|
+
decrypt: function (cipher, ciphertext, password, cfg) {
|
|
874
|
+
// Apply config defaults
|
|
875
|
+
cfg = this.cfg.extend(cfg);
|
|
876
|
+
|
|
877
|
+
// Convert string to CipherParams
|
|
878
|
+
ciphertext = this._parse(ciphertext, cfg.format);
|
|
879
|
+
|
|
880
|
+
// Derive key and other params
|
|
881
|
+
var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt, cfg.hasher);
|
|
882
|
+
|
|
883
|
+
// Add IV to config
|
|
884
|
+
cfg.iv = derivedParams.iv;
|
|
885
|
+
|
|
886
|
+
// Decrypt
|
|
887
|
+
var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg);
|
|
888
|
+
|
|
889
|
+
return plaintext;
|
|
890
|
+
}
|
|
891
|
+
});
|
|
892
|
+
}());
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
}));
|