@gsc-basic/utils 1.0.1 → 1.0.3
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/package.json +9 -12
- package/node_modules/crypto-js/CONTRIBUTING.md +0 -28
- package/node_modules/crypto-js/LICENSE +0 -24
- package/node_modules/crypto-js/README.md +0 -275
- package/node_modules/crypto-js/aes.js +0 -234
- package/node_modules/crypto-js/blowfish.js +0 -471
- package/node_modules/crypto-js/bower.json +0 -39
- package/node_modules/crypto-js/cipher-core.js +0 -895
- package/node_modules/crypto-js/core.js +0 -807
- package/node_modules/crypto-js/crypto-js.js +0 -6657
- package/node_modules/crypto-js/docs/QuickStartGuide.wiki +0 -470
- package/node_modules/crypto-js/enc-base64.js +0 -136
- package/node_modules/crypto-js/enc-base64url.js +0 -148
- package/node_modules/crypto-js/enc-hex.js +0 -18
- package/node_modules/crypto-js/enc-latin1.js +0 -18
- package/node_modules/crypto-js/enc-utf16.js +0 -149
- package/node_modules/crypto-js/enc-utf8.js +0 -18
- package/node_modules/crypto-js/evpkdf.js +0 -134
- package/node_modules/crypto-js/format-hex.js +0 -66
- package/node_modules/crypto-js/format-openssl.js +0 -18
- package/node_modules/crypto-js/hmac-md5.js +0 -18
- package/node_modules/crypto-js/hmac-ripemd160.js +0 -18
- package/node_modules/crypto-js/hmac-sha1.js +0 -18
- package/node_modules/crypto-js/hmac-sha224.js +0 -18
- package/node_modules/crypto-js/hmac-sha256.js +0 -18
- package/node_modules/crypto-js/hmac-sha3.js +0 -18
- package/node_modules/crypto-js/hmac-sha384.js +0 -18
- package/node_modules/crypto-js/hmac-sha512.js +0 -18
- package/node_modules/crypto-js/hmac.js +0 -143
- package/node_modules/crypto-js/index.js +0 -18
- package/node_modules/crypto-js/lib-typedarrays.js +0 -76
- package/node_modules/crypto-js/md5.js +0 -268
- package/node_modules/crypto-js/mode-cfb.js +0 -80
- package/node_modules/crypto-js/mode-ctr-gladman.js +0 -116
- package/node_modules/crypto-js/mode-ctr.js +0 -58
- package/node_modules/crypto-js/mode-ecb.js +0 -40
- package/node_modules/crypto-js/mode-ofb.js +0 -54
- package/node_modules/crypto-js/package.json +0 -42
- package/node_modules/crypto-js/pad-ansix923.js +0 -49
- package/node_modules/crypto-js/pad-iso10126.js +0 -44
- package/node_modules/crypto-js/pad-iso97971.js +0 -40
- package/node_modules/crypto-js/pad-nopadding.js +0 -30
- package/node_modules/crypto-js/pad-pkcs7.js +0 -18
- package/node_modules/crypto-js/pad-zeropadding.js +0 -47
- package/node_modules/crypto-js/pbkdf2.js +0 -145
- package/node_modules/crypto-js/rabbit-legacy.js +0 -190
- package/node_modules/crypto-js/rabbit.js +0 -192
- package/node_modules/crypto-js/rc4.js +0 -139
- package/node_modules/crypto-js/ripemd160.js +0 -267
- package/node_modules/crypto-js/sha1.js +0 -150
- package/node_modules/crypto-js/sha224.js +0 -80
- package/node_modules/crypto-js/sha256.js +0 -199
- package/node_modules/crypto-js/sha3.js +0 -326
- package/node_modules/crypto-js/sha384.js +0 -83
- package/node_modules/crypto-js/sha512.js +0 -326
- package/node_modules/crypto-js/tripledes.js +0 -779
- package/node_modules/crypto-js/x64-core.js +0 -304
- package/node_modules/lodash-es/LICENSE +0 -47
- package/node_modules/lodash-es/README.md +0 -10
- package/node_modules/lodash-es/_DataView.js +0 -7
- package/node_modules/lodash-es/_Hash.js +0 -32
- package/node_modules/lodash-es/_LazyWrapper.js +0 -28
- package/node_modules/lodash-es/_ListCache.js +0 -32
- package/node_modules/lodash-es/_LodashWrapper.js +0 -22
- package/node_modules/lodash-es/_Map.js +0 -7
- package/node_modules/lodash-es/_MapCache.js +0 -32
- package/node_modules/lodash-es/_Promise.js +0 -7
- package/node_modules/lodash-es/_Set.js +0 -7
- package/node_modules/lodash-es/_SetCache.js +0 -27
- package/node_modules/lodash-es/_Stack.js +0 -27
- package/node_modules/lodash-es/_Symbol.js +0 -6
- package/node_modules/lodash-es/_Uint8Array.js +0 -6
- package/node_modules/lodash-es/_WeakMap.js +0 -7
- package/node_modules/lodash-es/_addMapEntry.js +0 -15
- package/node_modules/lodash-es/_addSetEntry.js +0 -15
- package/node_modules/lodash-es/_apply.js +0 -21
- package/node_modules/lodash-es/_arrayAggregator.js +0 -22
- package/node_modules/lodash-es/_arrayEach.js +0 -22
- package/node_modules/lodash-es/_arrayEachRight.js +0 -21
- package/node_modules/lodash-es/_arrayEvery.js +0 -23
- package/node_modules/lodash-es/_arrayFilter.js +0 -25
- package/node_modules/lodash-es/_arrayIncludes.js +0 -17
- package/node_modules/lodash-es/_arrayIncludesWith.js +0 -22
- package/node_modules/lodash-es/_arrayLikeKeys.js +0 -49
- package/node_modules/lodash-es/_arrayMap.js +0 -21
- package/node_modules/lodash-es/_arrayPush.js +0 -20
- package/node_modules/lodash-es/_arrayReduce.js +0 -26
- package/node_modules/lodash-es/_arrayReduceRight.js +0 -24
- package/node_modules/lodash-es/_arraySample.js +0 -15
- package/node_modules/lodash-es/_arraySampleSize.js +0 -17
- package/node_modules/lodash-es/_arrayShuffle.js +0 -15
- package/node_modules/lodash-es/_arraySome.js +0 -23
- package/node_modules/lodash-es/_asciiSize.js +0 -12
- package/node_modules/lodash-es/_asciiToArray.js +0 -12
- package/node_modules/lodash-es/_asciiWords.js +0 -15
- package/node_modules/lodash-es/_assignMergeValue.js +0 -20
- package/node_modules/lodash-es/_assignValue.js +0 -28
- package/node_modules/lodash-es/_assocIndexOf.js +0 -21
- package/node_modules/lodash-es/_baseAggregator.js +0 -21
- package/node_modules/lodash-es/_baseAssign.js +0 -17
- package/node_modules/lodash-es/_baseAssignIn.js +0 -17
- package/node_modules/lodash-es/_baseAssignValue.js +0 -25
- package/node_modules/lodash-es/_baseAt.js +0 -23
- package/node_modules/lodash-es/_baseClamp.js +0 -22
- package/node_modules/lodash-es/_baseClone.js +0 -166
- package/node_modules/lodash-es/_baseConforms.js +0 -18
- package/node_modules/lodash-es/_baseConformsTo.js +0 -27
- package/node_modules/lodash-es/_baseCreate.js +0 -30
- package/node_modules/lodash-es/_baseDelay.js +0 -21
- package/node_modules/lodash-es/_baseDifference.js +0 -67
- package/node_modules/lodash-es/_baseEach.js +0 -14
- package/node_modules/lodash-es/_baseEachRight.js +0 -14
- package/node_modules/lodash-es/_baseEvery.js +0 -21
- package/node_modules/lodash-es/_baseExtremum.js +0 -32
- package/node_modules/lodash-es/_baseFill.js +0 -32
- package/node_modules/lodash-es/_baseFilter.js +0 -21
- package/node_modules/lodash-es/_baseFindIndex.js +0 -24
- package/node_modules/lodash-es/_baseFindKey.js +0 -23
- package/node_modules/lodash-es/_baseFlatten.js +0 -38
- package/node_modules/lodash-es/_baseFor.js +0 -16
- package/node_modules/lodash-es/_baseForOwn.js +0 -16
- package/node_modules/lodash-es/_baseForOwnRight.js +0 -16
- package/node_modules/lodash-es/_baseForRight.js +0 -15
- package/node_modules/lodash-es/_baseFunctions.js +0 -19
- package/node_modules/lodash-es/_baseGet.js +0 -24
- package/node_modules/lodash-es/_baseGetAllKeys.js +0 -20
- package/node_modules/lodash-es/_baseGetTag.js +0 -28
- package/node_modules/lodash-es/_baseGt.js +0 -14
- package/node_modules/lodash-es/_baseHas.js +0 -19
- package/node_modules/lodash-es/_baseHasIn.js +0 -13
- package/node_modules/lodash-es/_baseInRange.js +0 -18
- package/node_modules/lodash-es/_baseIndexOf.js +0 -20
- package/node_modules/lodash-es/_baseIndexOfWith.js +0 -23
- package/node_modules/lodash-es/_baseIntersection.js +0 -74
- package/node_modules/lodash-es/_baseInverter.js +0 -21
- package/node_modules/lodash-es/_baseInvoke.js +0 -24
- package/node_modules/lodash-es/_baseIsArguments.js +0 -18
- package/node_modules/lodash-es/_baseIsArrayBuffer.js +0 -17
- package/node_modules/lodash-es/_baseIsDate.js +0 -18
- package/node_modules/lodash-es/_baseIsEqual.js +0 -28
- package/node_modules/lodash-es/_baseIsEqualDeep.js +0 -83
- package/node_modules/lodash-es/_baseIsMap.js +0 -18
- package/node_modules/lodash-es/_baseIsMatch.js +0 -62
- package/node_modules/lodash-es/_baseIsNaN.js +0 -12
- package/node_modules/lodash-es/_baseIsNative.js +0 -47
- package/node_modules/lodash-es/_baseIsRegExp.js +0 -18
- package/node_modules/lodash-es/_baseIsSet.js +0 -18
- package/node_modules/lodash-es/_baseIsTypedArray.js +0 -60
- package/node_modules/lodash-es/_baseIteratee.js +0 -31
- package/node_modules/lodash-es/_baseKeys.js +0 -30
- package/node_modules/lodash-es/_baseKeysIn.js +0 -33
- package/node_modules/lodash-es/_baseLodash.js +0 -10
- package/node_modules/lodash-es/_baseLt.js +0 -14
- package/node_modules/lodash-es/_baseMap.js +0 -22
- package/node_modules/lodash-es/_baseMatches.js +0 -22
- package/node_modules/lodash-es/_baseMatchesProperty.js +0 -33
- package/node_modules/lodash-es/_baseMean.js +0 -20
- package/node_modules/lodash-es/_baseMerge.js +0 -42
- package/node_modules/lodash-es/_baseMergeDeep.js +0 -94
- package/node_modules/lodash-es/_baseNth.js +0 -20
- package/node_modules/lodash-es/_baseOrderBy.js +0 -49
- package/node_modules/lodash-es/_basePick.js +0 -19
- package/node_modules/lodash-es/_basePickBy.js +0 -30
- package/node_modules/lodash-es/_baseProperty.js +0 -14
- package/node_modules/lodash-es/_basePropertyDeep.js +0 -16
- package/node_modules/lodash-es/_basePropertyOf.js +0 -14
- package/node_modules/lodash-es/_basePullAll.js +0 -51
- package/node_modules/lodash-es/_basePullAt.js +0 -37
- package/node_modules/lodash-es/_baseRandom.js +0 -18
- package/node_modules/lodash-es/_baseRange.js +0 -28
- package/node_modules/lodash-es/_baseReduce.js +0 -23
- package/node_modules/lodash-es/_baseRepeat.js +0 -35
- package/node_modules/lodash-es/_baseRest.js +0 -17
- package/node_modules/lodash-es/_baseSample.js +0 -15
- package/node_modules/lodash-es/_baseSampleSize.js +0 -18
- package/node_modules/lodash-es/_baseSet.js +0 -51
- package/node_modules/lodash-es/_baseSetData.js +0 -17
- package/node_modules/lodash-es/_baseSetToString.js +0 -22
- package/node_modules/lodash-es/_baseShuffle.js +0 -15
- package/node_modules/lodash-es/_baseSlice.js +0 -31
- package/node_modules/lodash-es/_baseSome.js +0 -22
- package/node_modules/lodash-es/_baseSortBy.js +0 -21
- package/node_modules/lodash-es/_baseSortedIndex.js +0 -42
- package/node_modules/lodash-es/_baseSortedIndexBy.js +0 -67
- package/node_modules/lodash-es/_baseSortedUniq.js +0 -30
- package/node_modules/lodash-es/_baseSum.js +0 -24
- package/node_modules/lodash-es/_baseTimes.js +0 -20
- package/node_modules/lodash-es/_baseToNumber.js +0 -24
- package/node_modules/lodash-es/_baseToPairs.js +0 -18
- package/node_modules/lodash-es/_baseToString.js +0 -37
- package/node_modules/lodash-es/_baseTrim.js +0 -19
- package/node_modules/lodash-es/_baseUnary.js +0 -14
- package/node_modules/lodash-es/_baseUniq.js +0 -72
- package/node_modules/lodash-es/_baseUnset.js +0 -20
- package/node_modules/lodash-es/_baseUpdate.js +0 -18
- package/node_modules/lodash-es/_baseValues.js +0 -19
- package/node_modules/lodash-es/_baseWhile.js +0 -26
- package/node_modules/lodash-es/_baseWrapperValue.js +0 -25
- package/node_modules/lodash-es/_baseXor.js +0 -36
- package/node_modules/lodash-es/_baseZipObject.js +0 -23
- package/node_modules/lodash-es/_cacheHas.js +0 -13
- package/node_modules/lodash-es/_castArrayLikeObject.js +0 -14
- package/node_modules/lodash-es/_castFunction.js +0 -14
- package/node_modules/lodash-es/_castPath.js +0 -21
- package/node_modules/lodash-es/_castRest.js +0 -14
- package/node_modules/lodash-es/_castSlice.js +0 -18
- package/node_modules/lodash-es/_charsEndIndex.js +0 -19
- package/node_modules/lodash-es/_charsStartIndex.js +0 -20
- package/node_modules/lodash-es/_cloneArrayBuffer.js +0 -16
- package/node_modules/lodash-es/_cloneBuffer.js +0 -35
- package/node_modules/lodash-es/_cloneDataView.js +0 -16
- package/node_modules/lodash-es/_cloneMap.js +0 -22
- package/node_modules/lodash-es/_cloneRegExp.js +0 -17
- package/node_modules/lodash-es/_cloneSet.js +0 -22
- package/node_modules/lodash-es/_cloneSymbol.js +0 -18
- package/node_modules/lodash-es/_cloneTypedArray.js +0 -16
- package/node_modules/lodash-es/_compareAscending.js +0 -41
- package/node_modules/lodash-es/_compareMultiple.js +0 -44
- package/node_modules/lodash-es/_composeArgs.js +0 -39
- package/node_modules/lodash-es/_composeArgsRight.js +0 -41
- package/node_modules/lodash-es/_copyArray.js +0 -20
- package/node_modules/lodash-es/_copyObject.js +0 -40
- package/node_modules/lodash-es/_copySymbols.js +0 -16
- package/node_modules/lodash-es/_copySymbolsIn.js +0 -16
- package/node_modules/lodash-es/_coreJsData.js +0 -6
- package/node_modules/lodash-es/_countHolders.js +0 -21
- package/node_modules/lodash-es/_createAggregator.js +0 -23
- package/node_modules/lodash-es/_createAssigner.js +0 -37
- package/node_modules/lodash-es/_createBaseEach.js +0 -32
- package/node_modules/lodash-es/_createBaseFor.js +0 -25
- package/node_modules/lodash-es/_createBind.js +0 -28
- package/node_modules/lodash-es/_createCaseFirst.js +0 -33
- package/node_modules/lodash-es/_createCompounder.js +0 -24
- package/node_modules/lodash-es/_createCtor.js +0 -37
- package/node_modules/lodash-es/_createCurry.js +0 -46
- package/node_modules/lodash-es/_createFind.js +0 -25
- package/node_modules/lodash-es/_createFlow.js +0 -78
- package/node_modules/lodash-es/_createHybrid.js +0 -92
- package/node_modules/lodash-es/_createInverter.js +0 -17
- package/node_modules/lodash-es/_createMathOperation.js +0 -38
- package/node_modules/lodash-es/_createOver.js +0 -27
- package/node_modules/lodash-es/_createPadding.js +0 -33
- package/node_modules/lodash-es/_createPartial.js +0 -43
- package/node_modules/lodash-es/_createRange.js +0 -30
- package/node_modules/lodash-es/_createRecurry.js +0 -56
- package/node_modules/lodash-es/_createRelationalOperation.js +0 -20
- package/node_modules/lodash-es/_createRound.js +0 -35
- package/node_modules/lodash-es/_createSet.js +0 -19
- package/node_modules/lodash-es/_createToPairs.js +0 -30
- package/node_modules/lodash-es/_createWrap.js +0 -106
- package/node_modules/lodash-es/_customDefaultsAssignIn.js +0 -29
- package/node_modules/lodash-es/_customDefaultsMerge.js +0 -28
- package/node_modules/lodash-es/_customOmitClone.js +0 -16
- package/node_modules/lodash-es/_deburrLetter.js +0 -71
- package/node_modules/lodash-es/_defineProperty.js +0 -11
- package/node_modules/lodash-es/_equalArrays.js +0 -84
- package/node_modules/lodash-es/_equalByTag.js +0 -112
- package/node_modules/lodash-es/_equalObjects.js +0 -90
- package/node_modules/lodash-es/_escapeHtmlChar.js +0 -21
- package/node_modules/lodash-es/_escapeStringChar.js +0 -22
- package/node_modules/lodash-es/_flatRest.js +0 -16
- package/node_modules/lodash-es/_freeGlobal.js +0 -4
- package/node_modules/lodash-es/_getAllKeys.js +0 -16
- package/node_modules/lodash-es/_getAllKeysIn.js +0 -17
- package/node_modules/lodash-es/_getData.js +0 -15
- package/node_modules/lodash-es/_getFuncName.js +0 -31
- package/node_modules/lodash-es/_getHolder.js +0 -13
- package/node_modules/lodash-es/_getMapData.js +0 -18
- package/node_modules/lodash-es/_getMatchData.js +0 -24
- package/node_modules/lodash-es/_getNative.js +0 -17
- package/node_modules/lodash-es/_getPrototype.js +0 -6
- package/node_modules/lodash-es/_getRawTag.js +0 -46
- package/node_modules/lodash-es/_getSymbols.js +0 -30
- package/node_modules/lodash-es/_getSymbolsIn.js +0 -25
- package/node_modules/lodash-es/_getTag.js +0 -58
- package/node_modules/lodash-es/_getValue.js +0 -13
- package/node_modules/lodash-es/_getView.js +0 -33
- package/node_modules/lodash-es/_getWrapDetails.js +0 -17
- package/node_modules/lodash-es/_hasPath.js +0 -39
- package/node_modules/lodash-es/_hasUnicode.js +0 -26
- package/node_modules/lodash-es/_hasUnicodeWord.js +0 -15
- package/node_modules/lodash-es/_hashClear.js +0 -15
- package/node_modules/lodash-es/_hashDelete.js +0 -17
- package/node_modules/lodash-es/_hashGet.js +0 -30
- package/node_modules/lodash-es/_hashHas.js +0 -23
- package/node_modules/lodash-es/_hashSet.js +0 -23
- package/node_modules/lodash-es/_initCloneArray.js +0 -26
- package/node_modules/lodash-es/_initCloneByTag.js +0 -77
- package/node_modules/lodash-es/_initCloneObject.js +0 -18
- package/node_modules/lodash-es/_insertWrapDetails.js +0 -23
- package/node_modules/lodash-es/_isFlattenable.js +0 -20
- package/node_modules/lodash-es/_isIndex.js +0 -25
- package/node_modules/lodash-es/_isIterateeCall.js +0 -30
- package/node_modules/lodash-es/_isKey.js +0 -29
- package/node_modules/lodash-es/_isKeyable.js +0 -15
- package/node_modules/lodash-es/_isLaziable.js +0 -28
- package/node_modules/lodash-es/_isMaskable.js +0 -14
- package/node_modules/lodash-es/_isMasked.js +0 -20
- package/node_modules/lodash-es/_isPrototype.js +0 -18
- package/node_modules/lodash-es/_isStrictComparable.js +0 -15
- package/node_modules/lodash-es/_iteratorToArray.js +0 -18
- package/node_modules/lodash-es/_lazyClone.js +0 -23
- package/node_modules/lodash-es/_lazyReverse.js +0 -23
- package/node_modules/lodash-es/_lazyValue.js +0 -69
- package/node_modules/lodash-es/_listCacheClear.js +0 -13
- package/node_modules/lodash-es/_listCacheDelete.js +0 -35
- package/node_modules/lodash-es/_listCacheGet.js +0 -19
- package/node_modules/lodash-es/_listCacheHas.js +0 -16
- package/node_modules/lodash-es/_listCacheSet.js +0 -26
- package/node_modules/lodash-es/_mapCacheClear.js +0 -21
- package/node_modules/lodash-es/_mapCacheDelete.js +0 -18
- package/node_modules/lodash-es/_mapCacheGet.js +0 -16
- package/node_modules/lodash-es/_mapCacheHas.js +0 -16
- package/node_modules/lodash-es/_mapCacheSet.js +0 -22
- package/node_modules/lodash-es/_mapToArray.js +0 -18
- package/node_modules/lodash-es/_matchesStrictComparable.js +0 -20
- package/node_modules/lodash-es/_memoizeCapped.js +0 -26
- package/node_modules/lodash-es/_mergeData.js +0 -90
- package/node_modules/lodash-es/_metaMap.js +0 -6
- package/node_modules/lodash-es/_nativeCreate.js +0 -6
- package/node_modules/lodash-es/_nativeKeys.js +0 -6
- package/node_modules/lodash-es/_nativeKeysIn.js +0 -20
- package/node_modules/lodash-es/_nodeUtil.js +0 -30
- package/node_modules/lodash-es/_objectToString.js +0 -22
- package/node_modules/lodash-es/_overArg.js +0 -15
- package/node_modules/lodash-es/_overRest.js +0 -36
- package/node_modules/lodash-es/_parent.js +0 -16
- package/node_modules/lodash-es/_reEscape.js +0 -4
- package/node_modules/lodash-es/_reEvaluate.js +0 -4
- package/node_modules/lodash-es/_reInterpolate.js +0 -4
- package/node_modules/lodash-es/_realNames.js +0 -4
- package/node_modules/lodash-es/_reorder.js +0 -29
- package/node_modules/lodash-es/_replaceHolders.js +0 -29
- package/node_modules/lodash-es/_root.js +0 -9
- package/node_modules/lodash-es/_safeGet.js +0 -21
- package/node_modules/lodash-es/_setCacheAdd.js +0 -19
- package/node_modules/lodash-es/_setCacheHas.js +0 -14
- package/node_modules/lodash-es/_setData.js +0 -20
- package/node_modules/lodash-es/_setToArray.js +0 -18
- package/node_modules/lodash-es/_setToPairs.js +0 -18
- package/node_modules/lodash-es/_setToString.js +0 -14
- package/node_modules/lodash-es/_setWrapToString.js +0 -21
- package/node_modules/lodash-es/_shortOut.js +0 -37
- package/node_modules/lodash-es/_shuffleSelf.js +0 -28
- package/node_modules/lodash-es/_stackClear.js +0 -15
- package/node_modules/lodash-es/_stackDelete.js +0 -18
- package/node_modules/lodash-es/_stackGet.js +0 -14
- package/node_modules/lodash-es/_stackHas.js +0 -14
- package/node_modules/lodash-es/_stackSet.js +0 -34
- package/node_modules/lodash-es/_strictIndexOf.js +0 -23
- package/node_modules/lodash-es/_strictLastIndexOf.js +0 -21
- package/node_modules/lodash-es/_stringSize.js +0 -18
- package/node_modules/lodash-es/_stringToArray.js +0 -18
- package/node_modules/lodash-es/_stringToPath.js +0 -27
- package/node_modules/lodash-es/_toKey.js +0 -21
- package/node_modules/lodash-es/_toSource.js +0 -26
- package/node_modules/lodash-es/_trimmedEndIndex.js +0 -19
- package/node_modules/lodash-es/_unescapeHtmlChar.js +0 -21
- package/node_modules/lodash-es/_unicodeSize.js +0 -44
- package/node_modules/lodash-es/_unicodeToArray.js +0 -40
- package/node_modules/lodash-es/_unicodeWords.js +0 -69
- package/node_modules/lodash-es/_updateWrapDetails.js +0 -46
- package/node_modules/lodash-es/_wrapperClone.js +0 -23
- package/node_modules/lodash-es/add.js +0 -22
- package/node_modules/lodash-es/after.js +0 -42
- package/node_modules/lodash-es/array.default.js +0 -81
- package/node_modules/lodash-es/array.js +0 -66
- package/node_modules/lodash-es/ary.js +0 -29
- package/node_modules/lodash-es/assign.js +0 -58
- package/node_modules/lodash-es/assignIn.js +0 -40
- package/node_modules/lodash-es/assignInWith.js +0 -38
- package/node_modules/lodash-es/assignWith.js +0 -37
- package/node_modules/lodash-es/at.js +0 -23
- package/node_modules/lodash-es/attempt.js +0 -35
- package/node_modules/lodash-es/before.js +0 -40
- package/node_modules/lodash-es/bind.js +0 -57
- package/node_modules/lodash-es/bindAll.js +0 -41
- package/node_modules/lodash-es/bindKey.js +0 -68
- package/node_modules/lodash-es/camelCase.js +0 -29
- package/node_modules/lodash-es/capitalize.js +0 -23
- package/node_modules/lodash-es/castArray.js +0 -44
- package/node_modules/lodash-es/ceil.js +0 -26
- package/node_modules/lodash-es/chain.js +0 -38
- package/node_modules/lodash-es/chunk.js +0 -50
- package/node_modules/lodash-es/clamp.js +0 -39
- package/node_modules/lodash-es/clone.js +0 -36
- package/node_modules/lodash-es/cloneDeep.js +0 -29
- package/node_modules/lodash-es/cloneDeepWith.js +0 -40
- package/node_modules/lodash-es/cloneWith.js +0 -42
- package/node_modules/lodash-es/collection.default.js +0 -37
- package/node_modules/lodash-es/collection.js +0 -29
- package/node_modules/lodash-es/commit.js +0 -33
- package/node_modules/lodash-es/compact.js +0 -31
- package/node_modules/lodash-es/concat.js +0 -43
- package/node_modules/lodash-es/cond.js +0 -60
- package/node_modules/lodash-es/conforms.js +0 -35
- package/node_modules/lodash-es/conformsTo.js +0 -32
- package/node_modules/lodash-es/constant.js +0 -26
- package/node_modules/lodash-es/countBy.js +0 -40
- package/node_modules/lodash-es/create.js +0 -43
- package/node_modules/lodash-es/curry.js +0 -57
- package/node_modules/lodash-es/curryRight.js +0 -54
- package/node_modules/lodash-es/date.default.js +0 -5
- package/node_modules/lodash-es/date.js +0 -2
- package/node_modules/lodash-es/debounce.js +0 -191
- package/node_modules/lodash-es/deburr.js +0 -45
- package/node_modules/lodash-es/defaultTo.js +0 -25
- package/node_modules/lodash-es/defaults.js +0 -64
- package/node_modules/lodash-es/defaultsDeep.js +0 -30
- package/node_modules/lodash-es/defer.js +0 -26
- package/node_modules/lodash-es/delay.js +0 -28
- package/node_modules/lodash-es/difference.js +0 -33
- package/node_modules/lodash-es/differenceBy.js +0 -44
- package/node_modules/lodash-es/differenceWith.js +0 -40
- package/node_modules/lodash-es/divide.js +0 -22
- package/node_modules/lodash-es/drop.js +0 -38
- package/node_modules/lodash-es/dropRight.js +0 -39
- package/node_modules/lodash-es/dropRightWhile.js +0 -45
- package/node_modules/lodash-es/dropWhile.js +0 -45
- package/node_modules/lodash-es/each.js +0 -1
- package/node_modules/lodash-es/eachRight.js +0 -1
- package/node_modules/lodash-es/endsWith.js +0 -43
- package/node_modules/lodash-es/entries.js +0 -1
- package/node_modules/lodash-es/entriesIn.js +0 -1
- package/node_modules/lodash-es/eq.js +0 -37
- package/node_modules/lodash-es/escape.js +0 -43
- package/node_modules/lodash-es/escapeRegExp.js +0 -32
- package/node_modules/lodash-es/every.js +0 -56
- package/node_modules/lodash-es/extend.js +0 -1
- package/node_modules/lodash-es/extendWith.js +0 -1
- package/node_modules/lodash-es/fill.js +0 -45
- package/node_modules/lodash-es/filter.js +0 -52
- package/node_modules/lodash-es/find.js +0 -42
- package/node_modules/lodash-es/findIndex.js +0 -55
- package/node_modules/lodash-es/findKey.js +0 -44
- package/node_modules/lodash-es/findLast.js +0 -25
- package/node_modules/lodash-es/findLastIndex.js +0 -59
- package/node_modules/lodash-es/findLastKey.js +0 -44
- package/node_modules/lodash-es/first.js +0 -1
- package/node_modules/lodash-es/flake.lock +0 -40
- package/node_modules/lodash-es/flake.nix +0 -20
- package/node_modules/lodash-es/flatMap.js +0 -29
- package/node_modules/lodash-es/flatMapDeep.js +0 -31
- package/node_modules/lodash-es/flatMapDepth.js +0 -31
- package/node_modules/lodash-es/flatten.js +0 -22
- package/node_modules/lodash-es/flattenDeep.js +0 -25
- package/node_modules/lodash-es/flattenDepth.js +0 -33
- package/node_modules/lodash-es/flip.js +0 -28
- package/node_modules/lodash-es/floor.js +0 -26
- package/node_modules/lodash-es/flow.js +0 -27
- package/node_modules/lodash-es/flowRight.js +0 -26
- package/node_modules/lodash-es/forEach.js +0 -41
- package/node_modules/lodash-es/forEachRight.js +0 -31
- package/node_modules/lodash-es/forIn.js +0 -39
- package/node_modules/lodash-es/forInRight.js +0 -37
- package/node_modules/lodash-es/forOwn.js +0 -36
- package/node_modules/lodash-es/forOwnRight.js +0 -34
- package/node_modules/lodash-es/fromPairs.js +0 -28
- package/node_modules/lodash-es/function.default.js +0 -31
- package/node_modules/lodash-es/function.js +0 -24
- package/node_modules/lodash-es/functions.js +0 -31
- package/node_modules/lodash-es/functionsIn.js +0 -31
- package/node_modules/lodash-es/get.js +0 -33
- package/node_modules/lodash-es/groupBy.js +0 -41
- package/node_modules/lodash-es/gt.js +0 -29
- package/node_modules/lodash-es/gte.js +0 -30
- package/node_modules/lodash-es/has.js +0 -35
- package/node_modules/lodash-es/hasIn.js +0 -34
- package/node_modules/lodash-es/head.js +0 -23
- package/node_modules/lodash-es/identity.js +0 -21
- package/node_modules/lodash-es/inRange.js +0 -55
- package/node_modules/lodash-es/includes.js +0 -53
- package/node_modules/lodash-es/indexOf.js +0 -42
- package/node_modules/lodash-es/initial.js +0 -22
- package/node_modules/lodash-es/intersection.js +0 -30
- package/node_modules/lodash-es/intersectionBy.js +0 -45
- package/node_modules/lodash-es/intersectionWith.js +0 -41
- package/node_modules/lodash-es/invert.js +0 -42
- package/node_modules/lodash-es/invertBy.js +0 -56
- package/node_modules/lodash-es/invoke.js +0 -24
- package/node_modules/lodash-es/invokeMap.js +0 -41
- package/node_modules/lodash-es/isArguments.js +0 -36
- package/node_modules/lodash-es/isArray.js +0 -26
- package/node_modules/lodash-es/isArrayBuffer.js +0 -27
- package/node_modules/lodash-es/isArrayLike.js +0 -33
- package/node_modules/lodash-es/isArrayLikeObject.js +0 -33
- package/node_modules/lodash-es/isBoolean.js +0 -29
- package/node_modules/lodash-es/isBuffer.js +0 -38
- package/node_modules/lodash-es/isDate.js +0 -27
- package/node_modules/lodash-es/isElement.js +0 -25
- package/node_modules/lodash-es/isEmpty.js +0 -77
- package/node_modules/lodash-es/isEqual.js +0 -35
- package/node_modules/lodash-es/isEqualWith.js +0 -41
- package/node_modules/lodash-es/isError.js +0 -36
- package/node_modules/lodash-es/isFinite.js +0 -36
- package/node_modules/lodash-es/isFunction.js +0 -37
- package/node_modules/lodash-es/isInteger.js +0 -33
- package/node_modules/lodash-es/isLength.js +0 -35
- package/node_modules/lodash-es/isMap.js +0 -27
- package/node_modules/lodash-es/isMatch.js +0 -36
- package/node_modules/lodash-es/isMatchWith.js +0 -41
- package/node_modules/lodash-es/isNaN.js +0 -38
- package/node_modules/lodash-es/isNative.js +0 -40
- package/node_modules/lodash-es/isNil.js +0 -25
- package/node_modules/lodash-es/isNull.js +0 -22
- package/node_modules/lodash-es/isNumber.js +0 -38
- package/node_modules/lodash-es/isObject.js +0 -31
- package/node_modules/lodash-es/isObjectLike.js +0 -29
- package/node_modules/lodash-es/isPlainObject.js +0 -62
- package/node_modules/lodash-es/isRegExp.js +0 -27
- package/node_modules/lodash-es/isSafeInteger.js +0 -37
- package/node_modules/lodash-es/isSet.js +0 -27
- package/node_modules/lodash-es/isString.js +0 -30
- package/node_modules/lodash-es/isSymbol.js +0 -29
- package/node_modules/lodash-es/isTypedArray.js +0 -27
- package/node_modules/lodash-es/isUndefined.js +0 -22
- package/node_modules/lodash-es/isWeakMap.js +0 -28
- package/node_modules/lodash-es/isWeakSet.js +0 -28
- package/node_modules/lodash-es/iteratee.js +0 -53
- package/node_modules/lodash-es/join.js +0 -26
- package/node_modules/lodash-es/kebabCase.js +0 -28
- package/node_modules/lodash-es/keyBy.js +0 -36
- package/node_modules/lodash-es/keys.js +0 -37
- package/node_modules/lodash-es/keysIn.js +0 -32
- package/node_modules/lodash-es/lang.default.js +0 -71
- package/node_modules/lodash-es/lang.js +0 -57
- package/node_modules/lodash-es/last.js +0 -20
- package/node_modules/lodash-es/lastIndexOf.js +0 -46
- package/node_modules/lodash-es/lodash.default.js +0 -643
- package/node_modules/lodash-es/lodash.js +0 -331
- package/node_modules/lodash-es/lowerCase.js +0 -27
- package/node_modules/lodash-es/lowerFirst.js +0 -22
- package/node_modules/lodash-es/lt.js +0 -29
- package/node_modules/lodash-es/lte.js +0 -30
- package/node_modules/lodash-es/map.js +0 -53
- package/node_modules/lodash-es/mapKeys.js +0 -36
- package/node_modules/lodash-es/mapValues.js +0 -43
- package/node_modules/lodash-es/matches.js +0 -46
- package/node_modules/lodash-es/matchesProperty.js +0 -44
- package/node_modules/lodash-es/math.default.js +0 -21
- package/node_modules/lodash-es/math.js +0 -16
- package/node_modules/lodash-es/max.js +0 -29
- package/node_modules/lodash-es/maxBy.js +0 -34
- package/node_modules/lodash-es/mean.js +0 -22
- package/node_modules/lodash-es/meanBy.js +0 -31
- package/node_modules/lodash-es/memoize.js +0 -73
- package/node_modules/lodash-es/merge.js +0 -39
- package/node_modules/lodash-es/mergeWith.js +0 -39
- package/node_modules/lodash-es/method.js +0 -34
- package/node_modules/lodash-es/methodOf.js +0 -33
- package/node_modules/lodash-es/min.js +0 -29
- package/node_modules/lodash-es/minBy.js +0 -34
- package/node_modules/lodash-es/mixin.js +0 -74
- package/node_modules/lodash-es/multiply.js +0 -22
- package/node_modules/lodash-es/negate.js +0 -40
- package/node_modules/lodash-es/next.js +0 -35
- package/node_modules/lodash-es/noop.js +0 -17
- package/node_modules/lodash-es/now.js +0 -23
- package/node_modules/lodash-es/nth.js +0 -29
- package/node_modules/lodash-es/nthArg.js +0 -32
- package/node_modules/lodash-es/number.default.js +0 -7
- package/node_modules/lodash-es/number.js +0 -4
- package/node_modules/lodash-es/object.default.js +0 -60
- package/node_modules/lodash-es/object.js +0 -48
- package/node_modules/lodash-es/omit.js +0 -57
- package/node_modules/lodash-es/omitBy.js +0 -29
- package/node_modules/lodash-es/once.js +0 -25
- package/node_modules/lodash-es/orderBy.js +0 -47
- package/node_modules/lodash-es/over.js +0 -24
- package/node_modules/lodash-es/overArgs.js +0 -61
- package/node_modules/lodash-es/overEvery.js +0 -34
- package/node_modules/lodash-es/overSome.js +0 -37
- package/node_modules/lodash-es/package.json +0 -21
- package/node_modules/lodash-es/pad.js +0 -49
- package/node_modules/lodash-es/padEnd.js +0 -39
- package/node_modules/lodash-es/padStart.js +0 -39
- package/node_modules/lodash-es/parseInt.js +0 -43
- package/node_modules/lodash-es/partial.js +0 -50
- package/node_modules/lodash-es/partialRight.js +0 -49
- package/node_modules/lodash-es/partition.js +0 -43
- package/node_modules/lodash-es/pick.js +0 -25
- package/node_modules/lodash-es/pickBy.js +0 -37
- package/node_modules/lodash-es/plant.js +0 -48
- package/node_modules/lodash-es/property.js +0 -32
- package/node_modules/lodash-es/propertyOf.js +0 -30
- package/node_modules/lodash-es/pull.js +0 -29
- package/node_modules/lodash-es/pullAll.js +0 -29
- package/node_modules/lodash-es/pullAllBy.js +0 -33
- package/node_modules/lodash-es/pullAllWith.js +0 -32
- package/node_modules/lodash-es/pullAt.js +0 -43
- package/node_modules/lodash-es/random.js +0 -82
- package/node_modules/lodash-es/range.js +0 -46
- package/node_modules/lodash-es/rangeRight.js +0 -41
- package/node_modules/lodash-es/rearg.js +0 -33
- package/node_modules/lodash-es/reduce.js +0 -51
- package/node_modules/lodash-es/reduceRight.js +0 -36
- package/node_modules/lodash-es/reject.js +0 -46
- package/node_modules/lodash-es/release.md +0 -48
- package/node_modules/lodash-es/remove.js +0 -53
- package/node_modules/lodash-es/repeat.js +0 -37
- package/node_modules/lodash-es/replace.js +0 -29
- package/node_modules/lodash-es/rest.js +0 -40
- package/node_modules/lodash-es/result.js +0 -56
- package/node_modules/lodash-es/reverse.js +0 -34
- package/node_modules/lodash-es/round.js +0 -26
- package/node_modules/lodash-es/sample.js +0 -24
- package/node_modules/lodash-es/sampleSize.js +0 -37
- package/node_modules/lodash-es/seq.default.js +0 -20
- package/node_modules/lodash-es/seq.js +0 -15
- package/node_modules/lodash-es/set.js +0 -35
- package/node_modules/lodash-es/setWith.js +0 -32
- package/node_modules/lodash-es/shuffle.js +0 -25
- package/node_modules/lodash-es/size.js +0 -46
- package/node_modules/lodash-es/slice.js +0 -37
- package/node_modules/lodash-es/snakeCase.js +0 -28
- package/node_modules/lodash-es/some.js +0 -51
- package/node_modules/lodash-es/sortBy.js +0 -48
- package/node_modules/lodash-es/sortedIndex.js +0 -24
- package/node_modules/lodash-es/sortedIndexBy.js +0 -33
- package/node_modules/lodash-es/sortedIndexOf.js +0 -31
- package/node_modules/lodash-es/sortedLastIndex.js +0 -25
- package/node_modules/lodash-es/sortedLastIndexBy.js +0 -33
- package/node_modules/lodash-es/sortedLastIndexOf.js +0 -31
- package/node_modules/lodash-es/sortedUniq.js +0 -24
- package/node_modules/lodash-es/sortedUniqBy.js +0 -26
- package/node_modules/lodash-es/split.js +0 -52
- package/node_modules/lodash-es/spread.js +0 -63
- package/node_modules/lodash-es/startCase.js +0 -29
- package/node_modules/lodash-es/startsWith.js +0 -39
- package/node_modules/lodash-es/string.default.js +0 -41
- package/node_modules/lodash-es/string.js +0 -32
- package/node_modules/lodash-es/stubArray.js +0 -23
- package/node_modules/lodash-es/stubFalse.js +0 -18
- package/node_modules/lodash-es/stubObject.js +0 -23
- package/node_modules/lodash-es/stubString.js +0 -18
- package/node_modules/lodash-es/stubTrue.js +0 -18
- package/node_modules/lodash-es/subtract.js +0 -22
- package/node_modules/lodash-es/sum.js +0 -24
- package/node_modules/lodash-es/sumBy.js +0 -33
- package/node_modules/lodash-es/tail.js +0 -22
- package/node_modules/lodash-es/take.js +0 -37
- package/node_modules/lodash-es/takeRight.js +0 -39
- package/node_modules/lodash-es/takeRightWhile.js +0 -45
- package/node_modules/lodash-es/takeWhile.js +0 -45
- package/node_modules/lodash-es/tap.js +0 -29
- package/node_modules/lodash-es/template.js +0 -272
- package/node_modules/lodash-es/templateSettings.js +0 -67
- package/node_modules/lodash-es/throttle.js +0 -69
- package/node_modules/lodash-es/thru.js +0 -28
- package/node_modules/lodash-es/times.js +0 -51
- package/node_modules/lodash-es/toArray.js +0 -58
- package/node_modules/lodash-es/toFinite.js +0 -42
- package/node_modules/lodash-es/toInteger.js +0 -36
- package/node_modules/lodash-es/toIterator.js +0 -23
- package/node_modules/lodash-es/toJSON.js +0 -1
- package/node_modules/lodash-es/toLength.js +0 -38
- package/node_modules/lodash-es/toLower.js +0 -28
- package/node_modules/lodash-es/toNumber.js +0 -64
- package/node_modules/lodash-es/toPairs.js +0 -30
- package/node_modules/lodash-es/toPairsIn.js +0 -30
- package/node_modules/lodash-es/toPath.js +0 -33
- package/node_modules/lodash-es/toPlainObject.js +0 -32
- package/node_modules/lodash-es/toSafeInteger.js +0 -37
- package/node_modules/lodash-es/toString.js +0 -28
- package/node_modules/lodash-es/toUpper.js +0 -28
- package/node_modules/lodash-es/transform.js +0 -65
- package/node_modules/lodash-es/trim.js +0 -47
- package/node_modules/lodash-es/trimEnd.js +0 -41
- package/node_modules/lodash-es/trimStart.js +0 -43
- package/node_modules/lodash-es/truncate.js +0 -111
- package/node_modules/lodash-es/unary.js +0 -22
- package/node_modules/lodash-es/unescape.js +0 -34
- package/node_modules/lodash-es/union.js +0 -26
- package/node_modules/lodash-es/unionBy.js +0 -39
- package/node_modules/lodash-es/unionWith.js +0 -34
- package/node_modules/lodash-es/uniq.js +0 -25
- package/node_modules/lodash-es/uniqBy.js +0 -31
- package/node_modules/lodash-es/uniqWith.js +0 -28
- package/node_modules/lodash-es/uniqueId.js +0 -28
- package/node_modules/lodash-es/unset.js +0 -34
- package/node_modules/lodash-es/unzip.js +0 -45
- package/node_modules/lodash-es/unzipWith.js +0 -39
- package/node_modules/lodash-es/update.js +0 -35
- package/node_modules/lodash-es/updateWith.js +0 -33
- package/node_modules/lodash-es/upperCase.js +0 -27
- package/node_modules/lodash-es/upperFirst.js +0 -22
- package/node_modules/lodash-es/util.default.js +0 -42
- package/node_modules/lodash-es/util.js +0 -33
- package/node_modules/lodash-es/value.js +0 -1
- package/node_modules/lodash-es/valueOf.js +0 -1
- package/node_modules/lodash-es/values.js +0 -34
- package/node_modules/lodash-es/valuesIn.js +0 -32
- package/node_modules/lodash-es/without.js +0 -31
- package/node_modules/lodash-es/words.js +0 -35
- package/node_modules/lodash-es/wrap.js +0 -30
- package/node_modules/lodash-es/wrapperAt.js +0 -48
- package/node_modules/lodash-es/wrapperChain.js +0 -34
- package/node_modules/lodash-es/wrapperLodash.js +0 -147
- package/node_modules/lodash-es/wrapperReverse.js +0 -44
- package/node_modules/lodash-es/wrapperValue.js +0 -21
- package/node_modules/lodash-es/xor.js +0 -28
- package/node_modules/lodash-es/xorBy.js +0 -39
- package/node_modules/lodash-es/xorWith.js +0 -34
- package/node_modules/lodash-es/zip.js +0 -22
- package/node_modules/lodash-es/zipObject.js +0 -24
- package/node_modules/lodash-es/zipObjectDeep.js +0 -23
- package/node_modules/lodash-es/zipWith.js +0 -32
- package/node_modules/resize-observer-polyfill/LICENSE +0 -21
- package/node_modules/resize-observer-polyfill/README.md +0 -112
- package/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +0 -928
- package/node_modules/resize-observer-polyfill/dist/ResizeObserver.global.js +0 -1034
- package/node_modules/resize-observer-polyfill/dist/ResizeObserver.js +0 -936
- package/node_modules/resize-observer-polyfill/dist/ResizeObserver.js.flow +0 -32
- package/node_modules/resize-observer-polyfill/package.json +0 -64
- package/node_modules/resize-observer-polyfill/src/ResizeObservation.js +0 -76
- package/node_modules/resize-observer-polyfill/src/ResizeObserver.js +0 -47
- package/node_modules/resize-observer-polyfill/src/ResizeObserverController.js +0 -238
- package/node_modules/resize-observer-polyfill/src/ResizeObserverEntry.js +0 -40
- package/node_modules/resize-observer-polyfill/src/ResizeObserverSPI.js +0 -203
- package/node_modules/resize-observer-polyfill/src/index.d.ts +0 -40
- package/node_modules/resize-observer-polyfill/src/index.js +0 -11
- package/node_modules/resize-observer-polyfill/src/index.js.flow +0 -32
- package/node_modules/resize-observer-polyfill/src/shims/es6-collections.js +0 -115
- package/node_modules/resize-observer-polyfill/src/shims/global.js +0 -17
- package/node_modules/resize-observer-polyfill/src/shims/requestAnimationFrame.js +0 -18
- package/node_modules/resize-observer-polyfill/src/utils/defineConfigurable.js +0 -19
- package/node_modules/resize-observer-polyfill/src/utils/geometry.js +0 -233
- package/node_modules/resize-observer-polyfill/src/utils/getWindowOf.js +0 -18
- package/node_modules/resize-observer-polyfill/src/utils/isBrowser.js +0 -4
- package/node_modules/resize-observer-polyfill/src/utils/throttle.js +0 -78
- package/node_modules/uuid/CHANGELOG.md +0 -335
- package/node_modules/uuid/CONTRIBUTING.md +0 -18
- package/node_modules/uuid/LICENSE.md +0 -9
- package/node_modules/uuid/README.md +0 -497
- package/node_modules/uuid/dist/cjs/index.d.ts +0 -15
- package/node_modules/uuid/dist/cjs/index.js +0 -31
- package/node_modules/uuid/dist/cjs/max.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/max.js +0 -3
- package/node_modules/uuid/dist/cjs/md5.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/md5.js +0 -13
- package/node_modules/uuid/dist/cjs/native.d.ts +0 -5
- package/node_modules/uuid/dist/cjs/native.js +0 -4
- package/node_modules/uuid/dist/cjs/nil.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/nil.js +0 -3
- package/node_modules/uuid/dist/cjs/package.json +0 -1
- package/node_modules/uuid/dist/cjs/parse.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/parse.js +0 -11
- package/node_modules/uuid/dist/cjs/regex.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/regex.js +0 -3
- package/node_modules/uuid/dist/cjs/rng.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/rng.js +0 -13
- package/node_modules/uuid/dist/cjs/sha1.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/sha1.js +0 -13
- package/node_modules/uuid/dist/cjs/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/cjs/stringify.js +0 -38
- package/node_modules/uuid/dist/cjs/test/parse.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/test/parse.test.js +0 -50
- package/node_modules/uuid/dist/cjs/test/rng.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/test/rng.test.js +0 -14
- package/node_modules/uuid/dist/cjs/test/stringify.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/test/stringify.test.js +0 -23
- package/node_modules/uuid/dist/cjs/test/test_constants.d.ts +0 -33
- package/node_modules/uuid/dist/cjs/test/test_constants.js +0 -91
- package/node_modules/uuid/dist/cjs/test/v1.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/test/v1.test.js +0 -127
- package/node_modules/uuid/dist/cjs/test/v35.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/test/v35.test.js +0 -143
- package/node_modules/uuid/dist/cjs/test/v4.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/test/v4.test.js +0 -60
- package/node_modules/uuid/dist/cjs/test/v6.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/test/v6.test.js +0 -56
- package/node_modules/uuid/dist/cjs/test/v7.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/test/v7.test.js +0 -194
- package/node_modules/uuid/dist/cjs/test/validate.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/test/validate.test.js +0 -13
- package/node_modules/uuid/dist/cjs/test/version.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/test/version.test.js +0 -20
- package/node_modules/uuid/dist/cjs/types.d.ts +0 -21
- package/node_modules/uuid/dist/cjs/types.js +0 -2
- package/node_modules/uuid/dist/cjs/uuid-bin.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/uuid-bin.js +0 -72
- package/node_modules/uuid/dist/cjs/v1.d.ts +0 -11
- package/node_modules/uuid/dist/cjs/v1.js +0 -78
- package/node_modules/uuid/dist/cjs/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/v1ToV6.js +0 -13
- package/node_modules/uuid/dist/cjs/v3.d.ts +0 -9
- package/node_modules/uuid/dist/cjs/v3.js +0 -14
- package/node_modules/uuid/dist/cjs/v35.d.ts +0 -7
- package/node_modules/uuid/dist/cjs/v35.js +0 -41
- package/node_modules/uuid/dist/cjs/v4.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/v4.js +0 -23
- package/node_modules/uuid/dist/cjs/v5.d.ts +0 -9
- package/node_modules/uuid/dist/cjs/v5.js +0 -14
- package/node_modules/uuid/dist/cjs/v6.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/v6.js +0 -19
- package/node_modules/uuid/dist/cjs/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/v6ToV1.js +0 -13
- package/node_modules/uuid/dist/cjs/v7.d.ts +0 -9
- package/node_modules/uuid/dist/cjs/v7.js +0 -60
- package/node_modules/uuid/dist/cjs/validate.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/validate.js +0 -7
- package/node_modules/uuid/dist/cjs/version.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/version.js +0 -10
- package/node_modules/uuid/dist/cjs-browser/index.d.ts +0 -15
- package/node_modules/uuid/dist/cjs-browser/index.js +0 -31
- package/node_modules/uuid/dist/cjs-browser/max.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/max.js +0 -3
- package/node_modules/uuid/dist/cjs-browser/md5.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/md5.js +0 -137
- package/node_modules/uuid/dist/cjs-browser/native.d.ts +0 -4
- package/node_modules/uuid/dist/cjs-browser/native.js +0 -4
- package/node_modules/uuid/dist/cjs-browser/nil.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/nil.js +0 -3
- package/node_modules/uuid/dist/cjs-browser/package.json +0 -1
- package/node_modules/uuid/dist/cjs-browser/parse.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/parse.js +0 -11
- package/node_modules/uuid/dist/cjs-browser/regex.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/regex.js +0 -3
- package/node_modules/uuid/dist/cjs-browser/rng.d.ts +0 -1
- package/node_modules/uuid/dist/cjs-browser/rng.js +0 -14
- package/node_modules/uuid/dist/cjs-browser/sha1.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/sha1.js +0 -72
- package/node_modules/uuid/dist/cjs-browser/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/cjs-browser/stringify.js +0 -38
- package/node_modules/uuid/dist/cjs-browser/test/parse.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs-browser/test/parse.test.js +0 -50
- package/node_modules/uuid/dist/cjs-browser/test/rng.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs-browser/test/rng.test.js +0 -14
- package/node_modules/uuid/dist/cjs-browser/test/stringify.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs-browser/test/stringify.test.js +0 -23
- package/node_modules/uuid/dist/cjs-browser/test/test_constants.d.ts +0 -33
- package/node_modules/uuid/dist/cjs-browser/test/test_constants.js +0 -91
- package/node_modules/uuid/dist/cjs-browser/test/v1.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs-browser/test/v1.test.js +0 -127
- package/node_modules/uuid/dist/cjs-browser/test/v35.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs-browser/test/v35.test.js +0 -143
- package/node_modules/uuid/dist/cjs-browser/test/v4.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs-browser/test/v4.test.js +0 -60
- package/node_modules/uuid/dist/cjs-browser/test/v6.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs-browser/test/v6.test.js +0 -56
- package/node_modules/uuid/dist/cjs-browser/test/v7.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs-browser/test/v7.test.js +0 -194
- package/node_modules/uuid/dist/cjs-browser/test/validate.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs-browser/test/validate.test.js +0 -13
- package/node_modules/uuid/dist/cjs-browser/test/version.test.d.ts +0 -1
- package/node_modules/uuid/dist/cjs-browser/test/version.test.js +0 -20
- package/node_modules/uuid/dist/cjs-browser/types.d.ts +0 -21
- package/node_modules/uuid/dist/cjs-browser/types.js +0 -2
- package/node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts +0 -1
- package/node_modules/uuid/dist/cjs-browser/uuid-bin.js +0 -72
- package/node_modules/uuid/dist/cjs-browser/v1.d.ts +0 -11
- package/node_modules/uuid/dist/cjs-browser/v1.js +0 -78
- package/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/v1ToV6.js +0 -13
- package/node_modules/uuid/dist/cjs-browser/v3.d.ts +0 -9
- package/node_modules/uuid/dist/cjs-browser/v3.js +0 -14
- package/node_modules/uuid/dist/cjs-browser/v35.d.ts +0 -7
- package/node_modules/uuid/dist/cjs-browser/v35.js +0 -41
- package/node_modules/uuid/dist/cjs-browser/v4.d.ts +0 -4
- package/node_modules/uuid/dist/cjs-browser/v4.js +0 -23
- package/node_modules/uuid/dist/cjs-browser/v5.d.ts +0 -9
- package/node_modules/uuid/dist/cjs-browser/v5.js +0 -14
- package/node_modules/uuid/dist/cjs-browser/v6.d.ts +0 -4
- package/node_modules/uuid/dist/cjs-browser/v6.js +0 -19
- package/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/v6ToV1.js +0 -13
- package/node_modules/uuid/dist/cjs-browser/v7.d.ts +0 -9
- package/node_modules/uuid/dist/cjs-browser/v7.js +0 -60
- package/node_modules/uuid/dist/cjs-browser/validate.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/validate.js +0 -7
- package/node_modules/uuid/dist/cjs-browser/version.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/version.js +0 -10
- package/node_modules/uuid/dist/esm/bin/uuid +0 -2
- package/node_modules/uuid/dist/esm/index.d.ts +0 -15
- package/node_modules/uuid/dist/esm/index.js +0 -14
- package/node_modules/uuid/dist/esm/max.d.ts +0 -2
- package/node_modules/uuid/dist/esm/max.js +0 -1
- package/node_modules/uuid/dist/esm/md5.d.ts +0 -2
- package/node_modules/uuid/dist/esm/md5.js +0 -11
- package/node_modules/uuid/dist/esm/native.d.ts +0 -5
- package/node_modules/uuid/dist/esm/native.js +0 -2
- package/node_modules/uuid/dist/esm/nil.d.ts +0 -2
- package/node_modules/uuid/dist/esm/nil.js +0 -1
- package/node_modules/uuid/dist/esm/parse.d.ts +0 -2
- package/node_modules/uuid/dist/esm/parse.js +0 -9
- package/node_modules/uuid/dist/esm/regex.d.ts +0 -2
- package/node_modules/uuid/dist/esm/regex.js +0 -1
- package/node_modules/uuid/dist/esm/rng.d.ts +0 -1
- package/node_modules/uuid/dist/esm/rng.js +0 -10
- package/node_modules/uuid/dist/esm/sha1.d.ts +0 -2
- package/node_modules/uuid/dist/esm/sha1.js +0 -11
- package/node_modules/uuid/dist/esm/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/esm/stringify.js +0 -35
- package/node_modules/uuid/dist/esm/test/parse.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm/test/parse.test.js +0 -48
- package/node_modules/uuid/dist/esm/test/rng.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm/test/rng.test.js +0 -12
- package/node_modules/uuid/dist/esm/test/stringify.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm/test/stringify.test.js +0 -21
- package/node_modules/uuid/dist/esm/test/test_constants.d.ts +0 -33
- package/node_modules/uuid/dist/esm/test/test_constants.js +0 -88
- package/node_modules/uuid/dist/esm/test/v1.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm/test/v1.test.js +0 -125
- package/node_modules/uuid/dist/esm/test/v35.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm/test/v35.test.js +0 -141
- package/node_modules/uuid/dist/esm/test/v4.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm/test/v4.test.js +0 -58
- package/node_modules/uuid/dist/esm/test/v6.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm/test/v6.test.js +0 -54
- package/node_modules/uuid/dist/esm/test/v7.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm/test/v7.test.js +0 -192
- package/node_modules/uuid/dist/esm/test/validate.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm/test/validate.test.js +0 -11
- package/node_modules/uuid/dist/esm/test/version.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm/test/version.test.js +0 -18
- package/node_modules/uuid/dist/esm/types.d.ts +0 -21
- package/node_modules/uuid/dist/esm/types.js +0 -1
- package/node_modules/uuid/dist/esm/uuid-bin.d.ts +0 -1
- package/node_modules/uuid/dist/esm/uuid-bin.js +0 -70
- package/node_modules/uuid/dist/esm/v1.d.ts +0 -11
- package/node_modules/uuid/dist/esm/v1.js +0 -75
- package/node_modules/uuid/dist/esm/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/esm/v1ToV6.js +0 -10
- package/node_modules/uuid/dist/esm/v3.d.ts +0 -9
- package/node_modules/uuid/dist/esm/v3.js +0 -9
- package/node_modules/uuid/dist/esm/v35.d.ts +0 -7
- package/node_modules/uuid/dist/esm/v35.js +0 -36
- package/node_modules/uuid/dist/esm/v4.d.ts +0 -4
- package/node_modules/uuid/dist/esm/v4.js +0 -21
- package/node_modules/uuid/dist/esm/v5.d.ts +0 -9
- package/node_modules/uuid/dist/esm/v5.js +0 -9
- package/node_modules/uuid/dist/esm/v6.d.ts +0 -4
- package/node_modules/uuid/dist/esm/v6.js +0 -17
- package/node_modules/uuid/dist/esm/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/esm/v6ToV1.js +0 -10
- package/node_modules/uuid/dist/esm/v7.d.ts +0 -9
- package/node_modules/uuid/dist/esm/v7.js +0 -57
- package/node_modules/uuid/dist/esm/validate.d.ts +0 -2
- package/node_modules/uuid/dist/esm/validate.js +0 -5
- package/node_modules/uuid/dist/esm/version.d.ts +0 -2
- package/node_modules/uuid/dist/esm/version.js +0 -8
- package/node_modules/uuid/dist/esm-browser/index.d.ts +0 -15
- package/node_modules/uuid/dist/esm-browser/index.js +0 -14
- package/node_modules/uuid/dist/esm-browser/max.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/max.js +0 -1
- package/node_modules/uuid/dist/esm-browser/md5.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/md5.js +0 -135
- package/node_modules/uuid/dist/esm-browser/native.d.ts +0 -4
- package/node_modules/uuid/dist/esm-browser/native.js +0 -2
- package/node_modules/uuid/dist/esm-browser/nil.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/nil.js +0 -1
- package/node_modules/uuid/dist/esm-browser/parse.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/parse.js +0 -9
- package/node_modules/uuid/dist/esm-browser/regex.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/regex.js +0 -1
- package/node_modules/uuid/dist/esm-browser/rng.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/rng.js +0 -11
- package/node_modules/uuid/dist/esm-browser/sha1.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/sha1.js +0 -70
- package/node_modules/uuid/dist/esm-browser/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/esm-browser/stringify.js +0 -35
- package/node_modules/uuid/dist/esm-browser/test/parse.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/test/parse.test.js +0 -48
- package/node_modules/uuid/dist/esm-browser/test/rng.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/test/rng.test.js +0 -12
- package/node_modules/uuid/dist/esm-browser/test/stringify.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/test/stringify.test.js +0 -21
- package/node_modules/uuid/dist/esm-browser/test/test_constants.d.ts +0 -33
- package/node_modules/uuid/dist/esm-browser/test/test_constants.js +0 -88
- package/node_modules/uuid/dist/esm-browser/test/v1.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/test/v1.test.js +0 -125
- package/node_modules/uuid/dist/esm-browser/test/v35.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/test/v35.test.js +0 -141
- package/node_modules/uuid/dist/esm-browser/test/v4.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/test/v4.test.js +0 -58
- package/node_modules/uuid/dist/esm-browser/test/v6.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/test/v6.test.js +0 -54
- package/node_modules/uuid/dist/esm-browser/test/v7.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/test/v7.test.js +0 -192
- package/node_modules/uuid/dist/esm-browser/test/validate.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/test/validate.test.js +0 -11
- package/node_modules/uuid/dist/esm-browser/test/version.test.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/test/version.test.js +0 -18
- package/node_modules/uuid/dist/esm-browser/types.d.ts +0 -21
- package/node_modules/uuid/dist/esm-browser/types.js +0 -1
- package/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/uuid-bin.js +0 -70
- package/node_modules/uuid/dist/esm-browser/v1.d.ts +0 -11
- package/node_modules/uuid/dist/esm-browser/v1.js +0 -75
- package/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/v1ToV6.js +0 -10
- package/node_modules/uuid/dist/esm-browser/v3.d.ts +0 -9
- package/node_modules/uuid/dist/esm-browser/v3.js +0 -9
- package/node_modules/uuid/dist/esm-browser/v35.d.ts +0 -7
- package/node_modules/uuid/dist/esm-browser/v35.js +0 -36
- package/node_modules/uuid/dist/esm-browser/v4.d.ts +0 -4
- package/node_modules/uuid/dist/esm-browser/v4.js +0 -21
- package/node_modules/uuid/dist/esm-browser/v5.d.ts +0 -9
- package/node_modules/uuid/dist/esm-browser/v5.js +0 -9
- package/node_modules/uuid/dist/esm-browser/v6.d.ts +0 -4
- package/node_modules/uuid/dist/esm-browser/v6.js +0 -17
- package/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/v6ToV1.js +0 -10
- package/node_modules/uuid/dist/esm-browser/v7.d.ts +0 -9
- package/node_modules/uuid/dist/esm-browser/v7.js +0 -57
- package/node_modules/uuid/dist/esm-browser/validate.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/validate.js +0 -5
- package/node_modules/uuid/dist/esm-browser/version.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/version.js +0 -8
- package/node_modules/uuid/package.json +0 -134
- package/node_modules/worker-timers/LICENSE +0 -21
- package/node_modules/worker-timers/README.md +0 -71
- package/node_modules/worker-timers/build/es2019/factories/load-or-return-broker.d.ts +0 -2
- package/node_modules/worker-timers/build/es2019/factories/load-or-return-broker.d.ts.map +0 -1
- package/node_modules/worker-timers/build/es2019/factories/load-or-return-broker.js +0 -15
- package/node_modules/worker-timers/build/es2019/factories/load-or-return-broker.js.map +0 -1
- package/node_modules/worker-timers/build/es2019/module.d.ts +0 -6
- package/node_modules/worker-timers/build/es2019/module.d.ts.map +0 -1
- package/node_modules/worker-timers/build/es2019/module.js +0 -9
- package/node_modules/worker-timers/build/es2019/module.js.map +0 -1
- package/node_modules/worker-timers/build/es2019/worker/worker.d.ts +0 -2
- package/node_modules/worker-timers/build/es2019/worker/worker.d.ts.map +0 -1
- package/node_modules/worker-timers/build/es2019/worker/worker.js +0 -3
- package/node_modules/worker-timers/build/es2019/worker/worker.js.map +0 -1
- package/node_modules/worker-timers/build/es5/bundle.js +0 -50
- package/node_modules/worker-timers/package.json +0 -106
- package/node_modules/worker-timers/src/factories/load-or-return-broker.ts +0 -19
- package/node_modules/worker-timers/src/module.ts +0 -13
- package/node_modules/worker-timers/src/tsconfig.json +0 -6
- package/node_modules/worker-timers/src/worker/worker.ts +0 -2
|
@@ -1,895 +0,0 @@
|
|
|
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
|
-
}));
|