@lifesg/react-design-system 3.6.0-canary.3 → 3.6.0-canary.4
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/_virtual/customParseFormat.js +1 -1
- package/_virtual/customParseFormat2.js +2 -0
- package/_virtual/customParseFormat2.js.map +1 -0
- package/_virtual/dayjs.min.js +1 -1
- package/_virtual/dayjs.min2.js +2 -0
- package/_virtual/dayjs.min2.js.map +1 -0
- package/_virtual/debounce.js +2 -0
- package/_virtual/debounce.js.map +1 -0
- package/_virtual/find.js +2 -0
- package/_virtual/find.js.map +1 -0
- package/_virtual/findIndex.js +2 -0
- package/_virtual/findIndex.js.map +1 -0
- package/_virtual/get.js +2 -0
- package/_virtual/get.js.map +1 -0
- package/_virtual/index.js +1 -1
- package/_virtual/index.umd.js +1 -1
- package/_virtual/index.umd2.js +2 -0
- package/_virtual/index.umd2.js.map +1 -0
- package/_virtual/index2.js +1 -1
- package/_virtual/index3.js +1 -1
- package/_virtual/index4.js +1 -1
- package/_virtual/index5.js +2 -0
- package/_virtual/index5.js.map +1 -0
- package/_virtual/index6.js +2 -0
- package/_virtual/index6.js.map +1 -0
- package/_virtual/index7.js +2 -0
- package/_virtual/index7.js.map +1 -0
- package/_virtual/index8.js +2 -0
- package/_virtual/index8.js.map +1 -0
- package/_virtual/isBetween.js +1 -1
- package/_virtual/isBetween2.js +2 -0
- package/_virtual/isBetween2.js.map +1 -0
- package/_virtual/isEmpty.js +2 -0
- package/_virtual/isEmpty.js.map +1 -0
- package/_virtual/isEqual.js +2 -0
- package/_virtual/isEqual.js.map +1 -0
- package/_virtual/isNil.js +2 -0
- package/_virtual/isNil.js.map +1 -0
- package/_virtual/isSameOrAfter.js +1 -1
- package/_virtual/isSameOrAfter2.js +2 -0
- package/_virtual/isSameOrAfter2.js.map +1 -0
- package/_virtual/isSameOrBefore.js +1 -1
- package/_virtual/isSameOrBefore2.js +2 -0
- package/_virtual/isSameOrBefore2.js.map +1 -0
- package/_virtual/kebabCase.js +2 -0
- package/_virtual/kebabCase.js.map +1 -0
- package/_virtual/lodash.js +1 -1
- package/_virtual/lodash2.js +2 -0
- package/_virtual/lodash2.js.map +1 -0
- package/_virtual/maxBy.js +2 -0
- package/_virtual/maxBy.js.map +1 -0
- package/_virtual/minBy.js +2 -0
- package/_virtual/minBy.js.map +1 -0
- package/_virtual/react-responsive.js +1 -1
- package/_virtual/react-responsive2.js +2 -0
- package/_virtual/react-responsive2.js.map +1 -0
- package/_virtual/reduce.js +2 -0
- package/_virtual/reduce.js.map +1 -0
- package/_virtual/throttle.js +2 -0
- package/_virtual/throttle.js.map +1 -0
- package/_virtual/timezone.js +1 -1
- package/_virtual/timezone2.js +2 -0
- package/_virtual/timezone2.js.map +1 -0
- package/animations/loading-dots/lottie-animation.js +1 -1
- package/animations/loading-dots/lottie-animation.js.map +1 -1
- package/animations/loading-dots-spinner/lottie-animation.js +1 -1
- package/animations/loading-dots-spinner/lottie-animation.js.map +1 -1
- package/animations/loading-spinner/lottie-animation.js +1 -1
- package/animations/loading-spinner/lottie-animation.js.map +1 -1
- package/box-container/box-container.js +1 -1
- package/box-container/box-container.js.map +1 -1
- package/cjs/_virtual/customParseFormat.js +1 -1
- package/cjs/_virtual/customParseFormat2.js +2 -0
- package/cjs/_virtual/customParseFormat2.js.map +1 -0
- package/cjs/_virtual/dayjs.min.js +1 -1
- package/cjs/_virtual/dayjs.min2.js +2 -0
- package/cjs/_virtual/dayjs.min2.js.map +1 -0
- package/cjs/_virtual/debounce.js +2 -0
- package/cjs/_virtual/debounce.js.map +1 -0
- package/cjs/_virtual/find.js +2 -0
- package/cjs/_virtual/find.js.map +1 -0
- package/cjs/_virtual/findIndex.js +2 -0
- package/cjs/_virtual/findIndex.js.map +1 -0
- package/cjs/_virtual/get.js +2 -0
- package/cjs/_virtual/get.js.map +1 -0
- package/cjs/_virtual/index.js +1 -1
- package/cjs/_virtual/index.umd.js +1 -1
- package/cjs/_virtual/index.umd2.js +2 -0
- package/cjs/_virtual/index.umd2.js.map +1 -0
- package/cjs/_virtual/index2.js +1 -1
- package/cjs/_virtual/index3.js +1 -1
- package/cjs/_virtual/index4.js +1 -1
- package/cjs/_virtual/index5.js +2 -0
- package/cjs/_virtual/index5.js.map +1 -0
- package/cjs/_virtual/index6.js +2 -0
- package/cjs/_virtual/index6.js.map +1 -0
- package/cjs/_virtual/index7.js +2 -0
- package/cjs/_virtual/index7.js.map +1 -0
- package/cjs/_virtual/index8.js +2 -0
- package/cjs/_virtual/index8.js.map +1 -0
- package/cjs/_virtual/isBetween.js +1 -1
- package/cjs/_virtual/isBetween2.js +2 -0
- package/cjs/_virtual/isBetween2.js.map +1 -0
- package/cjs/_virtual/isEmpty.js +2 -0
- package/cjs/_virtual/isEmpty.js.map +1 -0
- package/cjs/_virtual/isEqual.js +2 -0
- package/cjs/_virtual/isEqual.js.map +1 -0
- package/cjs/_virtual/isNil.js +2 -0
- package/cjs/_virtual/isNil.js.map +1 -0
- package/cjs/_virtual/isSameOrAfter.js +1 -1
- package/cjs/_virtual/isSameOrAfter2.js +2 -0
- package/cjs/_virtual/isSameOrAfter2.js.map +1 -0
- package/cjs/_virtual/isSameOrBefore.js +1 -1
- package/cjs/_virtual/isSameOrBefore2.js +2 -0
- package/cjs/_virtual/isSameOrBefore2.js.map +1 -0
- package/cjs/_virtual/kebabCase.js +2 -0
- package/cjs/_virtual/kebabCase.js.map +1 -0
- package/cjs/_virtual/lodash.js +1 -1
- package/cjs/_virtual/lodash2.js +2 -0
- package/cjs/_virtual/lodash2.js.map +1 -0
- package/cjs/_virtual/maxBy.js +2 -0
- package/cjs/_virtual/maxBy.js.map +1 -0
- package/cjs/_virtual/minBy.js +2 -0
- package/cjs/_virtual/minBy.js.map +1 -0
- package/cjs/_virtual/react-responsive.js +1 -1
- package/cjs/_virtual/react-responsive2.js +2 -0
- package/cjs/_virtual/react-responsive2.js.map +1 -0
- package/cjs/_virtual/reduce.js +2 -0
- package/cjs/_virtual/reduce.js.map +1 -0
- package/cjs/_virtual/throttle.js +2 -0
- package/cjs/_virtual/throttle.js.map +1 -0
- package/cjs/_virtual/timezone.js +1 -1
- package/cjs/_virtual/timezone2.js +2 -0
- package/cjs/_virtual/timezone2.js.map +1 -0
- package/cjs/animations/loading-dots/lottie-animation.js +1 -1
- package/cjs/animations/loading-dots/lottie-animation.js.map +1 -1
- package/cjs/animations/loading-dots-spinner/lottie-animation.js +1 -1
- package/cjs/animations/loading-dots-spinner/lottie-animation.js.map +1 -1
- package/cjs/animations/loading-spinner/lottie-animation.js +1 -1
- package/cjs/animations/loading-spinner/lottie-animation.js.map +1 -1
- package/cjs/box-container/box-container.js +1 -1
- package/cjs/box-container/box-container.js.map +1 -1
- package/cjs/countdown-timer/countdown-timer.js +1 -1
- package/cjs/countdown-timer/countdown-timer.js.map +1 -1
- package/cjs/date-input/date-input.js +1 -1
- package/cjs/date-input/date-input.js.map +1 -1
- package/cjs/date-navigator/date-navigator.js +1 -1
- package/cjs/date-navigator/date-navigator.js.map +1 -1
- package/cjs/date-range-input/date-range-input.js +1 -1
- package/cjs/date-range-input/date-range-input.js.map +1 -1
- package/cjs/e-signature/e-signature.js +1 -1
- package/cjs/e-signature/e-signature.js.map +1 -1
- package/cjs/external/attr-accept/dist/es/index.js +1 -1
- package/cjs/external/attr-accept/dist/es/index.js.map +1 -1
- package/cjs/external/dayjs/dayjs.min.js +1 -1
- package/cjs/external/dayjs/dayjs.min.js.map +1 -1
- package/cjs/external/dayjs/plugin/customParseFormat.js +1 -1
- package/cjs/external/dayjs/plugin/customParseFormat.js.map +1 -1
- package/cjs/external/dayjs/plugin/isBetween.js +1 -1
- package/cjs/external/dayjs/plugin/isBetween.js.map +1 -1
- package/cjs/external/dayjs/plugin/isSameOrAfter.js +1 -1
- package/cjs/external/dayjs/plugin/isSameOrAfter.js.map +1 -1
- package/cjs/external/dayjs/plugin/isSameOrBefore.js +1 -1
- package/cjs/external/dayjs/plugin/isSameOrBefore.js.map +1 -1
- package/cjs/external/dayjs/plugin/timezone.js +1 -1
- package/cjs/external/dayjs/plugin/timezone.js.map +1 -1
- package/cjs/external/lodash/_DataView.js +1 -1
- package/cjs/external/lodash/_DataView.js.map +1 -1
- package/cjs/external/lodash/_Hash.js +1 -1
- package/cjs/external/lodash/_Hash.js.map +1 -1
- package/cjs/external/lodash/_ListCache.js +1 -1
- package/cjs/external/lodash/_ListCache.js.map +1 -1
- package/cjs/external/lodash/_Map.js +1 -1
- package/cjs/external/lodash/_Map.js.map +1 -1
- package/cjs/external/lodash/_MapCache.js +1 -1
- package/cjs/external/lodash/_MapCache.js.map +1 -1
- package/cjs/external/lodash/_Promise.js +1 -1
- package/cjs/external/lodash/_Promise.js.map +1 -1
- package/cjs/external/lodash/_Set.js +1 -1
- package/cjs/external/lodash/_Set.js.map +1 -1
- package/cjs/external/lodash/_SetCache.js +1 -1
- package/cjs/external/lodash/_SetCache.js.map +1 -1
- package/cjs/external/lodash/_Stack.js +1 -1
- package/cjs/external/lodash/_Stack.js.map +1 -1
- package/cjs/external/lodash/_Symbol.js +1 -1
- package/cjs/external/lodash/_Symbol.js.map +1 -1
- package/cjs/external/lodash/_Uint8Array.js +1 -1
- package/cjs/external/lodash/_Uint8Array.js.map +1 -1
- package/cjs/external/lodash/_WeakMap.js +1 -1
- package/cjs/external/lodash/_WeakMap.js.map +1 -1
- package/cjs/external/lodash/_arrayFilter.js +1 -1
- package/cjs/external/lodash/_arrayFilter.js.map +1 -1
- package/cjs/external/lodash/_arrayLikeKeys.js +1 -1
- package/cjs/external/lodash/_arrayLikeKeys.js.map +1 -1
- package/cjs/external/lodash/_arrayMap.js +1 -1
- package/cjs/external/lodash/_arrayMap.js.map +1 -1
- package/cjs/external/lodash/_arrayPush.js +1 -1
- package/cjs/external/lodash/_arrayPush.js.map +1 -1
- package/cjs/external/lodash/_arrayReduce.js +1 -1
- package/cjs/external/lodash/_arrayReduce.js.map +1 -1
- package/cjs/external/lodash/_arraySome.js +1 -1
- package/cjs/external/lodash/_arraySome.js.map +1 -1
- package/cjs/external/lodash/_asciiWords.js +1 -1
- package/cjs/external/lodash/_asciiWords.js.map +1 -1
- package/cjs/external/lodash/_assocIndexOf.js +1 -1
- package/cjs/external/lodash/_assocIndexOf.js.map +1 -1
- package/cjs/external/lodash/_baseEach.js +1 -1
- package/cjs/external/lodash/_baseEach.js.map +1 -1
- package/cjs/external/lodash/_baseExtremum.js +1 -1
- package/cjs/external/lodash/_baseExtremum.js.map +1 -1
- package/cjs/external/lodash/_baseFindIndex.js +1 -1
- package/cjs/external/lodash/_baseFindIndex.js.map +1 -1
- package/cjs/external/lodash/_baseFor.js +1 -1
- package/cjs/external/lodash/_baseFor.js.map +1 -1
- package/cjs/external/lodash/_baseForOwn.js +1 -1
- package/cjs/external/lodash/_baseForOwn.js.map +1 -1
- package/cjs/external/lodash/_baseGet.js +1 -1
- package/cjs/external/lodash/_baseGet.js.map +1 -1
- package/cjs/external/lodash/_baseGetAllKeys.js +1 -1
- package/cjs/external/lodash/_baseGetAllKeys.js.map +1 -1
- package/cjs/external/lodash/_baseGetTag.js +1 -1
- package/cjs/external/lodash/_baseGetTag.js.map +1 -1
- package/cjs/external/lodash/_baseGt.js +1 -1
- package/cjs/external/lodash/_baseGt.js.map +1 -1
- package/cjs/external/lodash/_baseHasIn.js +1 -1
- package/cjs/external/lodash/_baseHasIn.js.map +1 -1
- package/cjs/external/lodash/_baseIsArguments.js +1 -1
- package/cjs/external/lodash/_baseIsArguments.js.map +1 -1
- package/cjs/external/lodash/_baseIsEqual.js +1 -1
- package/cjs/external/lodash/_baseIsEqual.js.map +1 -1
- package/cjs/external/lodash/_baseIsEqualDeep.js +1 -1
- package/cjs/external/lodash/_baseIsEqualDeep.js.map +1 -1
- package/cjs/external/lodash/_baseIsMatch.js +1 -1
- package/cjs/external/lodash/_baseIsMatch.js.map +1 -1
- package/cjs/external/lodash/_baseIsNative.js +1 -1
- package/cjs/external/lodash/_baseIsNative.js.map +1 -1
- package/cjs/external/lodash/_baseIsTypedArray.js +1 -1
- package/cjs/external/lodash/_baseIsTypedArray.js.map +1 -1
- package/cjs/external/lodash/_baseIteratee.js +1 -1
- package/cjs/external/lodash/_baseIteratee.js.map +1 -1
- package/cjs/external/lodash/_baseKeys.js +1 -1
- package/cjs/external/lodash/_baseKeys.js.map +1 -1
- package/cjs/external/lodash/_baseLt.js +1 -1
- package/cjs/external/lodash/_baseLt.js.map +1 -1
- package/cjs/external/lodash/_baseMatches.js +1 -1
- package/cjs/external/lodash/_baseMatches.js.map +1 -1
- package/cjs/external/lodash/_baseMatchesProperty.js +1 -1
- package/cjs/external/lodash/_baseMatchesProperty.js.map +1 -1
- package/cjs/external/lodash/_baseProperty.js +1 -1
- package/cjs/external/lodash/_baseProperty.js.map +1 -1
- package/cjs/external/lodash/_basePropertyDeep.js +1 -1
- package/cjs/external/lodash/_basePropertyDeep.js.map +1 -1
- package/cjs/external/lodash/_basePropertyOf.js +1 -1
- package/cjs/external/lodash/_basePropertyOf.js.map +1 -1
- package/cjs/external/lodash/_baseReduce.js +1 -1
- package/cjs/external/lodash/_baseReduce.js.map +1 -1
- package/cjs/external/lodash/_baseTimes.js +1 -1
- package/cjs/external/lodash/_baseTimes.js.map +1 -1
- package/cjs/external/lodash/_baseToString.js +1 -1
- package/cjs/external/lodash/_baseToString.js.map +1 -1
- package/cjs/external/lodash/_baseTrim.js +1 -1
- package/cjs/external/lodash/_baseTrim.js.map +1 -1
- package/cjs/external/lodash/_baseUnary.js +1 -1
- package/cjs/external/lodash/_baseUnary.js.map +1 -1
- package/cjs/external/lodash/_cacheHas.js +1 -1
- package/cjs/external/lodash/_cacheHas.js.map +1 -1
- package/cjs/external/lodash/_castPath.js +1 -1
- package/cjs/external/lodash/_castPath.js.map +1 -1
- package/cjs/external/lodash/_coreJsData.js +1 -1
- package/cjs/external/lodash/_coreJsData.js.map +1 -1
- package/cjs/external/lodash/_createBaseEach.js +1 -1
- package/cjs/external/lodash/_createBaseEach.js.map +1 -1
- package/cjs/external/lodash/_createBaseFor.js +1 -1
- package/cjs/external/lodash/_createBaseFor.js.map +1 -1
- package/cjs/external/lodash/_createCompounder.js +1 -1
- package/cjs/external/lodash/_createCompounder.js.map +1 -1
- package/cjs/external/lodash/_createFind.js +1 -1
- package/cjs/external/lodash/_createFind.js.map +1 -1
- package/cjs/external/lodash/_deburrLetter.js +1 -1
- package/cjs/external/lodash/_deburrLetter.js.map +1 -1
- package/cjs/external/lodash/_equalArrays.js +1 -1
- package/cjs/external/lodash/_equalArrays.js.map +1 -1
- package/cjs/external/lodash/_equalByTag.js +1 -1
- package/cjs/external/lodash/_equalByTag.js.map +1 -1
- package/cjs/external/lodash/_equalObjects.js +1 -1
- package/cjs/external/lodash/_equalObjects.js.map +1 -1
- package/cjs/external/lodash/_freeGlobal.js +1 -1
- package/cjs/external/lodash/_freeGlobal.js.map +1 -1
- package/cjs/external/lodash/_getAllKeys.js +1 -1
- package/cjs/external/lodash/_getAllKeys.js.map +1 -1
- package/cjs/external/lodash/_getMapData.js +1 -1
- package/cjs/external/lodash/_getMapData.js.map +1 -1
- package/cjs/external/lodash/_getMatchData.js +1 -1
- package/cjs/external/lodash/_getMatchData.js.map +1 -1
- package/cjs/external/lodash/_getNative.js +1 -1
- package/cjs/external/lodash/_getNative.js.map +1 -1
- package/cjs/external/lodash/_getRawTag.js +1 -1
- package/cjs/external/lodash/_getRawTag.js.map +1 -1
- package/cjs/external/lodash/_getSymbols.js +1 -1
- package/cjs/external/lodash/_getSymbols.js.map +1 -1
- package/cjs/external/lodash/_getTag.js +1 -1
- package/cjs/external/lodash/_getTag.js.map +1 -1
- package/cjs/external/lodash/_getValue.js +1 -1
- package/cjs/external/lodash/_getValue.js.map +1 -1
- package/cjs/external/lodash/_hasPath.js +1 -1
- package/cjs/external/lodash/_hasPath.js.map +1 -1
- package/cjs/external/lodash/_hasUnicodeWord.js +1 -1
- package/cjs/external/lodash/_hasUnicodeWord.js.map +1 -1
- package/cjs/external/lodash/_hashClear.js +1 -1
- package/cjs/external/lodash/_hashClear.js.map +1 -1
- package/cjs/external/lodash/_hashDelete.js +1 -1
- package/cjs/external/lodash/_hashDelete.js.map +1 -1
- package/cjs/external/lodash/_hashGet.js +1 -1
- package/cjs/external/lodash/_hashGet.js.map +1 -1
- package/cjs/external/lodash/_hashHas.js +1 -1
- package/cjs/external/lodash/_hashHas.js.map +1 -1
- package/cjs/external/lodash/_hashSet.js +1 -1
- package/cjs/external/lodash/_hashSet.js.map +1 -1
- package/cjs/external/lodash/_isIndex.js +1 -1
- package/cjs/external/lodash/_isIndex.js.map +1 -1
- package/cjs/external/lodash/_isKey.js +1 -1
- package/cjs/external/lodash/_isKey.js.map +1 -1
- package/cjs/external/lodash/_isKeyable.js +1 -1
- package/cjs/external/lodash/_isKeyable.js.map +1 -1
- package/cjs/external/lodash/_isMasked.js +1 -1
- package/cjs/external/lodash/_isMasked.js.map +1 -1
- package/cjs/external/lodash/_isPrototype.js +1 -1
- package/cjs/external/lodash/_isPrototype.js.map +1 -1
- package/cjs/external/lodash/_isStrictComparable.js +1 -1
- package/cjs/external/lodash/_isStrictComparable.js.map +1 -1
- package/cjs/external/lodash/_listCacheClear.js +1 -1
- package/cjs/external/lodash/_listCacheClear.js.map +1 -1
- package/cjs/external/lodash/_listCacheDelete.js +1 -1
- package/cjs/external/lodash/_listCacheDelete.js.map +1 -1
- package/cjs/external/lodash/_listCacheGet.js +1 -1
- package/cjs/external/lodash/_listCacheGet.js.map +1 -1
- package/cjs/external/lodash/_listCacheHas.js +1 -1
- package/cjs/external/lodash/_listCacheHas.js.map +1 -1
- package/cjs/external/lodash/_listCacheSet.js +1 -1
- package/cjs/external/lodash/_listCacheSet.js.map +1 -1
- package/cjs/external/lodash/_mapCacheClear.js +1 -1
- package/cjs/external/lodash/_mapCacheClear.js.map +1 -1
- package/cjs/external/lodash/_mapCacheDelete.js +1 -1
- package/cjs/external/lodash/_mapCacheDelete.js.map +1 -1
- package/cjs/external/lodash/_mapCacheGet.js +1 -1
- package/cjs/external/lodash/_mapCacheGet.js.map +1 -1
- package/cjs/external/lodash/_mapCacheHas.js +1 -1
- package/cjs/external/lodash/_mapCacheHas.js.map +1 -1
- package/cjs/external/lodash/_mapCacheSet.js +1 -1
- package/cjs/external/lodash/_mapCacheSet.js.map +1 -1
- package/cjs/external/lodash/_mapToArray.js +1 -1
- package/cjs/external/lodash/_mapToArray.js.map +1 -1
- package/cjs/external/lodash/_matchesStrictComparable.js +1 -1
- package/cjs/external/lodash/_matchesStrictComparable.js.map +1 -1
- package/cjs/external/lodash/_memoizeCapped.js +1 -1
- package/cjs/external/lodash/_memoizeCapped.js.map +1 -1
- package/cjs/external/lodash/_nativeCreate.js +1 -1
- package/cjs/external/lodash/_nativeCreate.js.map +1 -1
- package/cjs/external/lodash/_nativeKeys.js +1 -1
- package/cjs/external/lodash/_nativeKeys.js.map +1 -1
- package/cjs/external/lodash/_nodeUtil.js +1 -1
- package/cjs/external/lodash/_nodeUtil.js.map +1 -1
- package/cjs/external/lodash/_objectToString.js +1 -1
- package/cjs/external/lodash/_objectToString.js.map +1 -1
- package/cjs/external/lodash/_overArg.js +1 -1
- package/cjs/external/lodash/_overArg.js.map +1 -1
- package/cjs/external/lodash/_root.js +1 -1
- package/cjs/external/lodash/_root.js.map +1 -1
- package/cjs/external/lodash/_setCacheAdd.js +1 -1
- package/cjs/external/lodash/_setCacheAdd.js.map +1 -1
- package/cjs/external/lodash/_setCacheHas.js +1 -1
- package/cjs/external/lodash/_setCacheHas.js.map +1 -1
- package/cjs/external/lodash/_setToArray.js +1 -1
- package/cjs/external/lodash/_setToArray.js.map +1 -1
- package/cjs/external/lodash/_stackClear.js +1 -1
- package/cjs/external/lodash/_stackClear.js.map +1 -1
- package/cjs/external/lodash/_stackDelete.js +1 -1
- package/cjs/external/lodash/_stackDelete.js.map +1 -1
- package/cjs/external/lodash/_stackGet.js +1 -1
- package/cjs/external/lodash/_stackGet.js.map +1 -1
- package/cjs/external/lodash/_stackHas.js +1 -1
- package/cjs/external/lodash/_stackHas.js.map +1 -1
- package/cjs/external/lodash/_stackSet.js +1 -1
- package/cjs/external/lodash/_stackSet.js.map +1 -1
- package/cjs/external/lodash/_stringToPath.js +1 -1
- package/cjs/external/lodash/_stringToPath.js.map +1 -1
- package/cjs/external/lodash/_toKey.js +1 -1
- package/cjs/external/lodash/_toKey.js.map +1 -1
- package/cjs/external/lodash/_toSource.js +1 -1
- package/cjs/external/lodash/_toSource.js.map +1 -1
- package/cjs/external/lodash/_trimmedEndIndex.js +1 -1
- package/cjs/external/lodash/_trimmedEndIndex.js.map +1 -1
- package/cjs/external/lodash/_unicodeWords.js +1 -1
- package/cjs/external/lodash/_unicodeWords.js.map +1 -1
- package/cjs/external/lodash/debounce.js +1 -1
- package/cjs/external/lodash/debounce.js.map +1 -1
- package/cjs/external/lodash/deburr.js +1 -1
- package/cjs/external/lodash/deburr.js.map +1 -1
- package/cjs/external/lodash/eq.js +1 -1
- package/cjs/external/lodash/eq.js.map +1 -1
- package/cjs/external/lodash/find.js +1 -1
- package/cjs/external/lodash/find.js.map +1 -1
- package/cjs/external/lodash/findIndex.js +1 -1
- package/cjs/external/lodash/findIndex.js.map +1 -1
- package/cjs/external/lodash/get.js +1 -1
- package/cjs/external/lodash/get.js.map +1 -1
- package/cjs/external/lodash/hasIn.js +1 -1
- package/cjs/external/lodash/hasIn.js.map +1 -1
- package/cjs/external/lodash/identity.js +1 -1
- package/cjs/external/lodash/identity.js.map +1 -1
- package/cjs/external/lodash/isArguments.js +1 -1
- package/cjs/external/lodash/isArguments.js.map +1 -1
- package/cjs/external/lodash/isArray.js +1 -1
- package/cjs/external/lodash/isArray.js.map +1 -1
- package/cjs/external/lodash/isArrayLike.js +1 -1
- package/cjs/external/lodash/isArrayLike.js.map +1 -1
- package/cjs/external/lodash/isBuffer.js +1 -1
- package/cjs/external/lodash/isBuffer.js.map +1 -1
- package/cjs/external/lodash/isEmpty.js +1 -1
- package/cjs/external/lodash/isEmpty.js.map +1 -1
- package/cjs/external/lodash/isEqual.js +1 -1
- package/cjs/external/lodash/isEqual.js.map +1 -1
- package/cjs/external/lodash/isFunction.js +1 -1
- package/cjs/external/lodash/isFunction.js.map +1 -1
- package/cjs/external/lodash/isLength.js +1 -1
- package/cjs/external/lodash/isLength.js.map +1 -1
- package/cjs/external/lodash/isNil.js +1 -1
- package/cjs/external/lodash/isNil.js.map +1 -1
- package/cjs/external/lodash/isObject.js +1 -1
- package/cjs/external/lodash/isObject.js.map +1 -1
- package/cjs/external/lodash/isObjectLike.js +1 -1
- package/cjs/external/lodash/isObjectLike.js.map +1 -1
- package/cjs/external/lodash/isSymbol.js +1 -1
- package/cjs/external/lodash/isSymbol.js.map +1 -1
- package/cjs/external/lodash/isTypedArray.js +1 -1
- package/cjs/external/lodash/isTypedArray.js.map +1 -1
- package/cjs/external/lodash/kebabCase.js +1 -1
- package/cjs/external/lodash/kebabCase.js.map +1 -1
- package/cjs/external/lodash/keys.js +1 -1
- package/cjs/external/lodash/keys.js.map +1 -1
- package/cjs/external/lodash/lodash.js +1 -10
- package/cjs/external/lodash/lodash.js.map +1 -1
- package/cjs/external/lodash/maxBy.js +1 -1
- package/cjs/external/lodash/maxBy.js.map +1 -1
- package/cjs/external/lodash/memoize.js +1 -1
- package/cjs/external/lodash/memoize.js.map +1 -1
- package/cjs/external/lodash/minBy.js +1 -1
- package/cjs/external/lodash/minBy.js.map +1 -1
- package/cjs/external/lodash/now.js +1 -1
- package/cjs/external/lodash/now.js.map +1 -1
- package/cjs/external/lodash/property.js +1 -1
- package/cjs/external/lodash/property.js.map +1 -1
- package/cjs/external/lodash/reduce.js +1 -1
- package/cjs/external/lodash/reduce.js.map +1 -1
- package/cjs/external/lodash/stubArray.js +1 -1
- package/cjs/external/lodash/stubArray.js.map +1 -1
- package/cjs/external/lodash/stubFalse.js +1 -1
- package/cjs/external/lodash/stubFalse.js.map +1 -1
- package/cjs/external/lodash/throttle.js +1 -1
- package/cjs/external/lodash/throttle.js.map +1 -1
- package/cjs/external/lodash/toFinite.js +1 -1
- package/cjs/external/lodash/toFinite.js.map +1 -1
- package/cjs/external/lodash/toInteger.js +1 -1
- package/cjs/external/lodash/toInteger.js.map +1 -1
- package/cjs/external/lodash/toNumber.js +1 -1
- package/cjs/external/lodash/toNumber.js.map +1 -1
- package/cjs/external/lodash/toString.js +1 -1
- package/cjs/external/lodash/toString.js.map +1 -1
- package/cjs/external/lodash/words.js +1 -1
- package/cjs/external/lodash/words.js.map +1 -1
- package/cjs/external/lodash.clonedeep/index.js +1 -1
- package/cjs/external/lodash.clonedeep/index.js.map +1 -1
- package/cjs/external/lottie-colorify/lib/index.js +1 -1
- package/cjs/external/lottie-colorify/lib/index.js.map +1 -1
- package/cjs/external/lottie-react/build/index.umd.js +2 -2
- package/cjs/external/lottie-react/build/index.umd.js.map +1 -1
- package/cjs/external/lottie-web/build/player/lottie.js +1 -1
- package/cjs/external/lottie-web/build/player/lottie.js.map +1 -1
- package/cjs/external/prop-types/external/react-is/index.js +1 -1
- package/cjs/external/prop-types/index.js +1 -1
- package/cjs/external/prop-types/index.js.map +1 -1
- package/cjs/external/react-dropzone/dist/es/index.js +1 -1
- package/cjs/external/react-dropzone/dist/es/index.js.map +1 -1
- package/cjs/external/react-dropzone/dist/es/utils/index.js +1 -1
- package/cjs/external/react-dropzone/dist/es/utils/index.js.map +1 -1
- package/cjs/external/react-resize-detector/build/index.esm.js +1 -1
- package/cjs/external/react-resize-detector/build/index.esm.js.map +1 -1
- package/cjs/external/react-responsive/dist/react-responsive.js +44 -44
- package/cjs/external/react-responsive/dist/react-responsive.js.map +1 -1
- package/cjs/file-download/file-list-card/file-list-card.js +1 -1
- package/cjs/file-download/file-list-card/file-list-card.js.map +1 -1
- package/cjs/file-upload/file-list.js +1 -1
- package/cjs/file-upload/file-list.js.map +1 -1
- package/cjs/filter/filter-item.js +1 -1
- package/cjs/filter/filter-item.js.map +1 -1
- package/cjs/filter/filter.js +1 -1
- package/cjs/filter/filter.js.map +1 -1
- package/cjs/footer/footer-helper.js +1 -1
- package/cjs/footer/footer-helper.js.map +1 -1
- package/cjs/input-group/input-group-list-addon.js +1 -1
- package/cjs/input-group/input-group-list-addon.js.map +1 -1
- package/cjs/input-group/input-group-list-addon.style.js +7 -7
- package/cjs/input-group/input-group-list-addon.style.js.map +1 -1
- package/cjs/input-multi-select/input-multi-select.js +1 -1
- package/cjs/input-multi-select/input-multi-select.js.map +1 -1
- package/cjs/input-nested-multi-select/helpers.js +1 -1
- package/cjs/input-nested-multi-select/helpers.js.map +1 -1
- package/cjs/input-nested-multi-select/input-nested-multi-select.js +1 -1
- package/cjs/input-nested-multi-select/input-nested-multi-select.js.map +1 -1
- package/cjs/input-nested-select/input-nested-select.js +1 -1
- package/cjs/input-nested-select/input-nested-select.js.map +1 -1
- package/cjs/input-range-select/input-range-select.js +1 -1
- package/cjs/input-range-select/input-range-select.js.map +1 -1
- package/cjs/input-select/input-select.js +1 -1
- package/cjs/input-select/input-select.js.map +1 -1
- package/cjs/language-switcher/dropdown-variant.style.js +9 -9
- package/cjs/language-switcher/dropdown-variant.style.js.map +1 -1
- package/cjs/masked-input/masked-input.js +1 -1
- package/cjs/masked-input/masked-input.js.map +1 -1
- package/cjs/navbar/drawer.js +1 -1
- package/cjs/navbar/drawer.js.map +1 -1
- package/cjs/navbar/drawer.styles.js +12 -7
- package/cjs/navbar/drawer.styles.js.map +1 -1
- package/cjs/navbar/navbar-action-buttons.js +1 -1
- package/cjs/navbar/navbar-action-buttons.js.map +1 -1
- package/cjs/navbar/navbar.js +1 -1
- package/cjs/navbar/navbar.js.map +1 -1
- package/cjs/navbar/navbar.styles.js +16 -11
- package/cjs/navbar/navbar.styles.js.map +1 -1
- package/cjs/notification-banner/notification-banner-hoc.js +1 -1
- package/cjs/notification-banner/notification-banner-hoc.js.map +1 -1
- package/cjs/otp-verification/verification-section.js +1 -1
- package/cjs/otp-verification/verification-section.js.map +1 -1
- package/cjs/pagination/pagination.js +1 -1
- package/cjs/pagination/pagination.js.map +1 -1
- package/cjs/phone-number-input/phone-number-input-helper.js +1 -1
- package/cjs/phone-number-input/phone-number-input-helper.js.map +1 -1
- package/cjs/popover/popover-hoc.js +1 -1
- package/cjs/popover/popover-hoc.js.map +1 -1
- package/cjs/popover/popover.js +1 -1
- package/cjs/popover/popover.js.map +1 -1
- package/cjs/popover-v2/popover-trigger.js +1 -1
- package/cjs/popover-v2/popover-trigger.js.map +1 -1
- package/cjs/popover-v2/popover.js +1 -1
- package/cjs/popover-v2/popover.js.map +1 -1
- package/cjs/predictive-text-input/predictive-text-input.js +1 -1
- package/cjs/predictive-text-input/predictive-text-input.js.map +1 -1
- package/cjs/progress-indicator/progress-indicator.js +1 -1
- package/cjs/progress-indicator/progress-indicator.js.map +1 -1
- package/cjs/radio-button/radio-button.styles.js +1 -0
- package/cjs/radio-button/radio-button.styles.js.map +1 -1
- package/cjs/schedule/schedule-week-view/schedule-week-view.js +1 -1
- package/cjs/schedule/schedule-week-view/schedule-week-view.js.map +1 -1
- package/cjs/schedule/schedule.js +1 -1
- package/cjs/schedule/schedule.js.map +1 -1
- package/cjs/schedule/shared/utils.js +1 -1
- package/cjs/schedule/shared/utils.js.map +1 -1
- package/cjs/select-histogram/select-histogram.js +1 -1
- package/cjs/select-histogram/select-histogram.js.map +1 -1
- package/cjs/shared/dropdown-list/dropdown-list.js +1 -1
- package/cjs/shared/dropdown-list/dropdown-list.js.map +1 -1
- package/cjs/shared/dropdown-list/nested-dropdown-list-helpers.js +1 -1
- package/cjs/shared/dropdown-list/nested-dropdown-list-helpers.js.map +1 -1
- package/cjs/shared/fade-wrapper/fade-wrapper.js +1 -1
- package/cjs/shared/fade-wrapper/fade-wrapper.js.map +1 -1
- package/cjs/shared/internal-calendar/calendar-manager.js +1 -1
- package/cjs/shared/internal-calendar/calendar-manager.js.map +1 -1
- package/cjs/shared/internal-calendar/day-cell/day-cell.js +1 -1
- package/cjs/shared/internal-calendar/day-cell/day-cell.js.map +1 -1
- package/cjs/shared/internal-calendar/fixed-range/fixed-range-calendar-day-view.js +1 -1
- package/cjs/shared/internal-calendar/fixed-range/fixed-range-calendar-day-view.js.map +1 -1
- package/cjs/shared/internal-calendar/fixed-range/fixed-range-cell.js +1 -1
- package/cjs/shared/internal-calendar/fixed-range/fixed-range-cell.js.map +1 -1
- package/cjs/shared/internal-calendar/internal-calendar-month.js +1 -1
- package/cjs/shared/internal-calendar/internal-calendar-month.js.map +1 -1
- package/cjs/shared/internal-calendar/internal-calendar-year.js +1 -1
- package/cjs/shared/internal-calendar/internal-calendar-year.js.map +1 -1
- package/cjs/shared/internal-calendar/multi/multi-calendar-day-view.js +1 -1
- package/cjs/shared/internal-calendar/multi/multi-calendar-day-view.js.map +1 -1
- package/cjs/shared/internal-calendar/multi/multi-cell.js +1 -1
- package/cjs/shared/internal-calendar/multi/multi-cell.js.map +1 -1
- package/cjs/shared/internal-calendar/single/single-calendar-day-view.js +1 -1
- package/cjs/shared/internal-calendar/single/single-calendar-day-view.js.map +1 -1
- package/cjs/shared/internal-calendar/single/single-cell.js +1 -1
- package/cjs/shared/internal-calendar/single/single-cell.js.map +1 -1
- package/cjs/shared/internal-calendar/standard/standard-calendar-day-view.js +1 -1
- package/cjs/shared/internal-calendar/standard/standard-calendar-day-view.js.map +1 -1
- package/cjs/shared/internal-calendar/standard/standard-cell.js +1 -1
- package/cjs/shared/internal-calendar/standard/standard-cell.js.map +1 -1
- package/cjs/shared/internal-calendar/week/week-calendar-day-view.js +1 -1
- package/cjs/shared/internal-calendar/week/week-calendar-day-view.js.map +1 -1
- package/cjs/shared/internal-calendar/week/week-day-cell.js +1 -1
- package/cjs/shared/internal-calendar/week/week-day-cell.js.map +1 -1
- package/cjs/shared/standalone-date-input/standalone-date-input.js +1 -1
- package/cjs/shared/standalone-date-input/standalone-date-input.js.map +1 -1
- package/cjs/sidenav/sidenav-drawer-item.styles.js +3 -2
- package/cjs/sidenav/sidenav-drawer-item.styles.js.map +1 -1
- package/cjs/sidenav/sidenav-drawer-subitem.styles.js +1 -0
- package/cjs/sidenav/sidenav-drawer-subitem.styles.js.map +1 -1
- package/cjs/tab/tab-link-chain.js +1 -1
- package/cjs/tab/tab-link-chain.js.map +1 -1
- package/cjs/theme/helpers.js +1 -1
- package/cjs/theme/helpers.js.map +1 -1
- package/cjs/time-range-picker/combobox-picker/combobox-picker.js +1 -1
- package/cjs/time-range-picker/combobox-picker/combobox-picker.js.map +1 -1
- package/cjs/time-slot-bar/helper.js +1 -1
- package/cjs/time-slot-bar/helper.js.map +1 -1
- package/cjs/time-slot-bar/time-slot-bar.js +1 -1
- package/cjs/time-slot-bar/time-slot-bar.js.map +1 -1
- package/cjs/time-slot-bar-week/time-slot-bar-week-days.js +1 -1
- package/cjs/time-slot-bar-week/time-slot-bar-week-days.js.map +1 -1
- package/cjs/time-slot-bar-week/time-slot-bar-week.js +1 -1
- package/cjs/time-slot-bar-week/time-slot-bar-week.js.map +1 -1
- package/cjs/time-slot-week-view/time-slot-week-days.js +1 -1
- package/cjs/time-slot-week-view/time-slot-week-days.js.map +1 -1
- package/cjs/time-slot-week-view/time-slot-week-view.js +1 -1
- package/cjs/time-slot-week-view/time-slot-week-view.js.map +1 -1
- package/cjs/timetable/timetable-row/row-bar.js +1 -1
- package/cjs/timetable/timetable-row/row-bar.js.map +1 -1
- package/cjs/timetable/timetable-row/row-cell.js +1 -1
- package/cjs/timetable/timetable-row/row-cell.js.map +1 -1
- package/cjs/timetable/timetable.js +1 -1
- package/cjs/timetable/timetable.js.map +1 -1
- package/cjs/toast/toast.js +1 -1
- package/cjs/toast/toast.js.map +1 -1
- package/cjs/tooltip/tooltip.js +1 -1
- package/cjs/tooltip/tooltip.js.map +1 -1
- package/cjs/util/calendar-helper.js +1 -1
- package/cjs/util/calendar-helper.js.map +1 -1
- package/cjs/util/date-helper.js +1 -1
- package/cjs/util/date-helper.js.map +1 -1
- package/cjs/util/date-input-helper.js +1 -1
- package/cjs/util/date-input-helper.js.map +1 -1
- package/cjs/util/time-helper.js +1 -1
- package/cjs/util/time-helper.js.map +1 -1
- package/cjs/v2_theme/helper.js +1 -1
- package/cjs/v2_theme/helper.js.map +1 -1
- package/codemods/run-codemod.js +871 -785
- package/codemods/run-codemod.js.map +1 -1
- package/countdown-timer/countdown-timer.js +1 -1
- package/countdown-timer/countdown-timer.js.map +1 -1
- package/date-input/date-input.js +1 -1
- package/date-input/date-input.js.map +1 -1
- package/date-navigator/date-navigator.js +1 -1
- package/date-navigator/date-navigator.js.map +1 -1
- package/date-range-input/date-range-input.js +1 -1
- package/date-range-input/date-range-input.js.map +1 -1
- package/e-signature/e-signature.js +1 -1
- package/e-signature/e-signature.js.map +1 -1
- package/external/attr-accept/dist/es/index.js +1 -1
- package/external/attr-accept/dist/es/index.js.map +1 -1
- package/external/dayjs/dayjs.min.js +1 -1
- package/external/dayjs/dayjs.min.js.map +1 -1
- package/external/dayjs/plugin/customParseFormat.js +1 -1
- package/external/dayjs/plugin/customParseFormat.js.map +1 -1
- package/external/dayjs/plugin/isBetween.js +1 -1
- package/external/dayjs/plugin/isBetween.js.map +1 -1
- package/external/dayjs/plugin/isSameOrAfter.js +1 -1
- package/external/dayjs/plugin/isSameOrAfter.js.map +1 -1
- package/external/dayjs/plugin/isSameOrBefore.js +1 -1
- package/external/dayjs/plugin/isSameOrBefore.js.map +1 -1
- package/external/dayjs/plugin/timezone.js +1 -1
- package/external/dayjs/plugin/timezone.js.map +1 -1
- package/external/lodash/_DataView.js +1 -1
- package/external/lodash/_DataView.js.map +1 -1
- package/external/lodash/_Hash.js +1 -1
- package/external/lodash/_Hash.js.map +1 -1
- package/external/lodash/_ListCache.js +1 -1
- package/external/lodash/_ListCache.js.map +1 -1
- package/external/lodash/_Map.js +1 -1
- package/external/lodash/_Map.js.map +1 -1
- package/external/lodash/_MapCache.js +1 -1
- package/external/lodash/_MapCache.js.map +1 -1
- package/external/lodash/_Promise.js +1 -1
- package/external/lodash/_Promise.js.map +1 -1
- package/external/lodash/_Set.js +1 -1
- package/external/lodash/_Set.js.map +1 -1
- package/external/lodash/_SetCache.js +1 -1
- package/external/lodash/_SetCache.js.map +1 -1
- package/external/lodash/_Stack.js +1 -1
- package/external/lodash/_Stack.js.map +1 -1
- package/external/lodash/_Symbol.js +1 -1
- package/external/lodash/_Symbol.js.map +1 -1
- package/external/lodash/_Uint8Array.js +1 -1
- package/external/lodash/_Uint8Array.js.map +1 -1
- package/external/lodash/_WeakMap.js +1 -1
- package/external/lodash/_WeakMap.js.map +1 -1
- package/external/lodash/_arrayFilter.js +1 -1
- package/external/lodash/_arrayFilter.js.map +1 -1
- package/external/lodash/_arrayLikeKeys.js +1 -1
- package/external/lodash/_arrayLikeKeys.js.map +1 -1
- package/external/lodash/_arrayMap.js +1 -1
- package/external/lodash/_arrayMap.js.map +1 -1
- package/external/lodash/_arrayPush.js +1 -1
- package/external/lodash/_arrayPush.js.map +1 -1
- package/external/lodash/_arrayReduce.js +1 -1
- package/external/lodash/_arrayReduce.js.map +1 -1
- package/external/lodash/_arraySome.js +1 -1
- package/external/lodash/_arraySome.js.map +1 -1
- package/external/lodash/_asciiWords.js +1 -1
- package/external/lodash/_asciiWords.js.map +1 -1
- package/external/lodash/_assocIndexOf.js +1 -1
- package/external/lodash/_assocIndexOf.js.map +1 -1
- package/external/lodash/_baseEach.js +1 -1
- package/external/lodash/_baseEach.js.map +1 -1
- package/external/lodash/_baseExtremum.js +1 -1
- package/external/lodash/_baseExtremum.js.map +1 -1
- package/external/lodash/_baseFindIndex.js +1 -1
- package/external/lodash/_baseFindIndex.js.map +1 -1
- package/external/lodash/_baseFor.js +1 -1
- package/external/lodash/_baseFor.js.map +1 -1
- package/external/lodash/_baseForOwn.js +1 -1
- package/external/lodash/_baseForOwn.js.map +1 -1
- package/external/lodash/_baseGet.js +1 -1
- package/external/lodash/_baseGet.js.map +1 -1
- package/external/lodash/_baseGetAllKeys.js +1 -1
- package/external/lodash/_baseGetAllKeys.js.map +1 -1
- package/external/lodash/_baseGetTag.js +1 -1
- package/external/lodash/_baseGetTag.js.map +1 -1
- package/external/lodash/_baseGt.js +1 -1
- package/external/lodash/_baseGt.js.map +1 -1
- package/external/lodash/_baseHasIn.js +1 -1
- package/external/lodash/_baseHasIn.js.map +1 -1
- package/external/lodash/_baseIsArguments.js +1 -1
- package/external/lodash/_baseIsArguments.js.map +1 -1
- package/external/lodash/_baseIsEqual.js +1 -1
- package/external/lodash/_baseIsEqual.js.map +1 -1
- package/external/lodash/_baseIsEqualDeep.js +1 -1
- package/external/lodash/_baseIsEqualDeep.js.map +1 -1
- package/external/lodash/_baseIsMatch.js +1 -1
- package/external/lodash/_baseIsMatch.js.map +1 -1
- package/external/lodash/_baseIsNative.js +1 -1
- package/external/lodash/_baseIsNative.js.map +1 -1
- package/external/lodash/_baseIsTypedArray.js +1 -1
- package/external/lodash/_baseIsTypedArray.js.map +1 -1
- package/external/lodash/_baseIteratee.js +1 -1
- package/external/lodash/_baseIteratee.js.map +1 -1
- package/external/lodash/_baseKeys.js +1 -1
- package/external/lodash/_baseKeys.js.map +1 -1
- package/external/lodash/_baseLt.js +1 -1
- package/external/lodash/_baseLt.js.map +1 -1
- package/external/lodash/_baseMatches.js +1 -1
- package/external/lodash/_baseMatches.js.map +1 -1
- package/external/lodash/_baseMatchesProperty.js +1 -1
- package/external/lodash/_baseMatchesProperty.js.map +1 -1
- package/external/lodash/_baseProperty.js +1 -1
- package/external/lodash/_baseProperty.js.map +1 -1
- package/external/lodash/_basePropertyDeep.js +1 -1
- package/external/lodash/_basePropertyDeep.js.map +1 -1
- package/external/lodash/_basePropertyOf.js +1 -1
- package/external/lodash/_basePropertyOf.js.map +1 -1
- package/external/lodash/_baseReduce.js +1 -1
- package/external/lodash/_baseReduce.js.map +1 -1
- package/external/lodash/_baseTimes.js +1 -1
- package/external/lodash/_baseTimes.js.map +1 -1
- package/external/lodash/_baseToString.js +1 -1
- package/external/lodash/_baseToString.js.map +1 -1
- package/external/lodash/_baseTrim.js +1 -1
- package/external/lodash/_baseTrim.js.map +1 -1
- package/external/lodash/_baseUnary.js +1 -1
- package/external/lodash/_baseUnary.js.map +1 -1
- package/external/lodash/_cacheHas.js +1 -1
- package/external/lodash/_cacheHas.js.map +1 -1
- package/external/lodash/_castPath.js +1 -1
- package/external/lodash/_castPath.js.map +1 -1
- package/external/lodash/_coreJsData.js +1 -1
- package/external/lodash/_coreJsData.js.map +1 -1
- package/external/lodash/_createBaseEach.js +1 -1
- package/external/lodash/_createBaseEach.js.map +1 -1
- package/external/lodash/_createBaseFor.js +1 -1
- package/external/lodash/_createBaseFor.js.map +1 -1
- package/external/lodash/_createCompounder.js +1 -1
- package/external/lodash/_createCompounder.js.map +1 -1
- package/external/lodash/_createFind.js +1 -1
- package/external/lodash/_createFind.js.map +1 -1
- package/external/lodash/_deburrLetter.js +1 -1
- package/external/lodash/_deburrLetter.js.map +1 -1
- package/external/lodash/_equalArrays.js +1 -1
- package/external/lodash/_equalArrays.js.map +1 -1
- package/external/lodash/_equalByTag.js +1 -1
- package/external/lodash/_equalByTag.js.map +1 -1
- package/external/lodash/_equalObjects.js +1 -1
- package/external/lodash/_equalObjects.js.map +1 -1
- package/external/lodash/_freeGlobal.js +1 -1
- package/external/lodash/_freeGlobal.js.map +1 -1
- package/external/lodash/_getAllKeys.js +1 -1
- package/external/lodash/_getAllKeys.js.map +1 -1
- package/external/lodash/_getMapData.js +1 -1
- package/external/lodash/_getMapData.js.map +1 -1
- package/external/lodash/_getMatchData.js +1 -1
- package/external/lodash/_getMatchData.js.map +1 -1
- package/external/lodash/_getNative.js +1 -1
- package/external/lodash/_getNative.js.map +1 -1
- package/external/lodash/_getRawTag.js +1 -1
- package/external/lodash/_getRawTag.js.map +1 -1
- package/external/lodash/_getSymbols.js +1 -1
- package/external/lodash/_getSymbols.js.map +1 -1
- package/external/lodash/_getTag.js +1 -1
- package/external/lodash/_getTag.js.map +1 -1
- package/external/lodash/_getValue.js +1 -1
- package/external/lodash/_getValue.js.map +1 -1
- package/external/lodash/_hasPath.js +1 -1
- package/external/lodash/_hasPath.js.map +1 -1
- package/external/lodash/_hasUnicodeWord.js +1 -1
- package/external/lodash/_hasUnicodeWord.js.map +1 -1
- package/external/lodash/_hashClear.js +1 -1
- package/external/lodash/_hashClear.js.map +1 -1
- package/external/lodash/_hashDelete.js +1 -1
- package/external/lodash/_hashDelete.js.map +1 -1
- package/external/lodash/_hashGet.js +1 -1
- package/external/lodash/_hashGet.js.map +1 -1
- package/external/lodash/_hashHas.js +1 -1
- package/external/lodash/_hashHas.js.map +1 -1
- package/external/lodash/_hashSet.js +1 -1
- package/external/lodash/_hashSet.js.map +1 -1
- package/external/lodash/_isIndex.js +1 -1
- package/external/lodash/_isIndex.js.map +1 -1
- package/external/lodash/_isKey.js +1 -1
- package/external/lodash/_isKey.js.map +1 -1
- package/external/lodash/_isKeyable.js +1 -1
- package/external/lodash/_isKeyable.js.map +1 -1
- package/external/lodash/_isMasked.js +1 -1
- package/external/lodash/_isMasked.js.map +1 -1
- package/external/lodash/_isPrototype.js +1 -1
- package/external/lodash/_isPrototype.js.map +1 -1
- package/external/lodash/_isStrictComparable.js +1 -1
- package/external/lodash/_isStrictComparable.js.map +1 -1
- package/external/lodash/_listCacheClear.js +1 -1
- package/external/lodash/_listCacheClear.js.map +1 -1
- package/external/lodash/_listCacheDelete.js +1 -1
- package/external/lodash/_listCacheDelete.js.map +1 -1
- package/external/lodash/_listCacheGet.js +1 -1
- package/external/lodash/_listCacheGet.js.map +1 -1
- package/external/lodash/_listCacheHas.js +1 -1
- package/external/lodash/_listCacheHas.js.map +1 -1
- package/external/lodash/_listCacheSet.js +1 -1
- package/external/lodash/_listCacheSet.js.map +1 -1
- package/external/lodash/_mapCacheClear.js +1 -1
- package/external/lodash/_mapCacheClear.js.map +1 -1
- package/external/lodash/_mapCacheDelete.js +1 -1
- package/external/lodash/_mapCacheDelete.js.map +1 -1
- package/external/lodash/_mapCacheGet.js +1 -1
- package/external/lodash/_mapCacheGet.js.map +1 -1
- package/external/lodash/_mapCacheHas.js +1 -1
- package/external/lodash/_mapCacheHas.js.map +1 -1
- package/external/lodash/_mapCacheSet.js +1 -1
- package/external/lodash/_mapCacheSet.js.map +1 -1
- package/external/lodash/_mapToArray.js +1 -1
- package/external/lodash/_mapToArray.js.map +1 -1
- package/external/lodash/_matchesStrictComparable.js +1 -1
- package/external/lodash/_matchesStrictComparable.js.map +1 -1
- package/external/lodash/_memoizeCapped.js +1 -1
- package/external/lodash/_memoizeCapped.js.map +1 -1
- package/external/lodash/_nativeCreate.js +1 -1
- package/external/lodash/_nativeCreate.js.map +1 -1
- package/external/lodash/_nativeKeys.js +1 -1
- package/external/lodash/_nativeKeys.js.map +1 -1
- package/external/lodash/_nodeUtil.js +1 -1
- package/external/lodash/_nodeUtil.js.map +1 -1
- package/external/lodash/_objectToString.js +1 -1
- package/external/lodash/_objectToString.js.map +1 -1
- package/external/lodash/_overArg.js +1 -1
- package/external/lodash/_overArg.js.map +1 -1
- package/external/lodash/_root.js +1 -1
- package/external/lodash/_root.js.map +1 -1
- package/external/lodash/_setCacheAdd.js +1 -1
- package/external/lodash/_setCacheAdd.js.map +1 -1
- package/external/lodash/_setCacheHas.js +1 -1
- package/external/lodash/_setCacheHas.js.map +1 -1
- package/external/lodash/_setToArray.js +1 -1
- package/external/lodash/_setToArray.js.map +1 -1
- package/external/lodash/_stackClear.js +1 -1
- package/external/lodash/_stackClear.js.map +1 -1
- package/external/lodash/_stackDelete.js +1 -1
- package/external/lodash/_stackDelete.js.map +1 -1
- package/external/lodash/_stackGet.js +1 -1
- package/external/lodash/_stackGet.js.map +1 -1
- package/external/lodash/_stackHas.js +1 -1
- package/external/lodash/_stackHas.js.map +1 -1
- package/external/lodash/_stackSet.js +1 -1
- package/external/lodash/_stackSet.js.map +1 -1
- package/external/lodash/_stringToPath.js +1 -1
- package/external/lodash/_stringToPath.js.map +1 -1
- package/external/lodash/_toKey.js +1 -1
- package/external/lodash/_toKey.js.map +1 -1
- package/external/lodash/_toSource.js +1 -1
- package/external/lodash/_toSource.js.map +1 -1
- package/external/lodash/_trimmedEndIndex.js +1 -1
- package/external/lodash/_trimmedEndIndex.js.map +1 -1
- package/external/lodash/_unicodeWords.js +1 -1
- package/external/lodash/_unicodeWords.js.map +1 -1
- package/external/lodash/debounce.js +1 -1
- package/external/lodash/debounce.js.map +1 -1
- package/external/lodash/deburr.js +1 -1
- package/external/lodash/deburr.js.map +1 -1
- package/external/lodash/eq.js +1 -1
- package/external/lodash/eq.js.map +1 -1
- package/external/lodash/find.js +1 -1
- package/external/lodash/find.js.map +1 -1
- package/external/lodash/findIndex.js +1 -1
- package/external/lodash/findIndex.js.map +1 -1
- package/external/lodash/get.js +1 -1
- package/external/lodash/get.js.map +1 -1
- package/external/lodash/hasIn.js +1 -1
- package/external/lodash/hasIn.js.map +1 -1
- package/external/lodash/identity.js +1 -1
- package/external/lodash/identity.js.map +1 -1
- package/external/lodash/isArguments.js +1 -1
- package/external/lodash/isArguments.js.map +1 -1
- package/external/lodash/isArray.js +1 -1
- package/external/lodash/isArray.js.map +1 -1
- package/external/lodash/isArrayLike.js +1 -1
- package/external/lodash/isArrayLike.js.map +1 -1
- package/external/lodash/isBuffer.js +1 -1
- package/external/lodash/isBuffer.js.map +1 -1
- package/external/lodash/isEmpty.js +1 -1
- package/external/lodash/isEmpty.js.map +1 -1
- package/external/lodash/isEqual.js +1 -1
- package/external/lodash/isEqual.js.map +1 -1
- package/external/lodash/isFunction.js +1 -1
- package/external/lodash/isFunction.js.map +1 -1
- package/external/lodash/isLength.js +1 -1
- package/external/lodash/isLength.js.map +1 -1
- package/external/lodash/isNil.js +1 -1
- package/external/lodash/isNil.js.map +1 -1
- package/external/lodash/isObject.js +1 -1
- package/external/lodash/isObject.js.map +1 -1
- package/external/lodash/isObjectLike.js +1 -1
- package/external/lodash/isObjectLike.js.map +1 -1
- package/external/lodash/isSymbol.js +1 -1
- package/external/lodash/isSymbol.js.map +1 -1
- package/external/lodash/isTypedArray.js +1 -1
- package/external/lodash/isTypedArray.js.map +1 -1
- package/external/lodash/kebabCase.js +1 -1
- package/external/lodash/kebabCase.js.map +1 -1
- package/external/lodash/keys.js +1 -1
- package/external/lodash/keys.js.map +1 -1
- package/external/lodash/lodash.js +2 -2
- package/external/lodash/lodash.js.map +1 -1
- package/external/lodash/maxBy.js +1 -1
- package/external/lodash/maxBy.js.map +1 -1
- package/external/lodash/memoize.js +1 -1
- package/external/lodash/memoize.js.map +1 -1
- package/external/lodash/minBy.js +1 -1
- package/external/lodash/minBy.js.map +1 -1
- package/external/lodash/now.js +1 -1
- package/external/lodash/now.js.map +1 -1
- package/external/lodash/property.js +1 -1
- package/external/lodash/property.js.map +1 -1
- package/external/lodash/reduce.js +1 -1
- package/external/lodash/reduce.js.map +1 -1
- package/external/lodash/stubArray.js +1 -1
- package/external/lodash/stubArray.js.map +1 -1
- package/external/lodash/stubFalse.js +1 -1
- package/external/lodash/stubFalse.js.map +1 -1
- package/external/lodash/throttle.js +1 -1
- package/external/lodash/throttle.js.map +1 -1
- package/external/lodash/toFinite.js +1 -1
- package/external/lodash/toFinite.js.map +1 -1
- package/external/lodash/toInteger.js +1 -1
- package/external/lodash/toInteger.js.map +1 -1
- package/external/lodash/toNumber.js +1 -1
- package/external/lodash/toNumber.js.map +1 -1
- package/external/lodash/toString.js +1 -1
- package/external/lodash/toString.js.map +1 -1
- package/external/lodash/words.js +1 -1
- package/external/lodash/words.js.map +1 -1
- package/external/lodash.clonedeep/index.js +1 -1
- package/external/lodash.clonedeep/index.js.map +1 -1
- package/external/lottie-colorify/lib/index.js +1 -1
- package/external/lottie-colorify/lib/index.js.map +1 -1
- package/external/lottie-react/build/index.umd.js +2 -2
- package/external/lottie-react/build/index.umd.js.map +1 -1
- package/external/lottie-web/build/player/lottie.js +1 -1
- package/external/lottie-web/build/player/lottie.js.map +1 -1
- package/external/prop-types/external/react-is/index.js +1 -1
- package/external/prop-types/index.js +1 -1
- package/external/prop-types/index.js.map +1 -1
- package/external/react-dropzone/dist/es/index.js +1 -1
- package/external/react-dropzone/dist/es/index.js.map +1 -1
- package/external/react-dropzone/dist/es/utils/index.js +1 -1
- package/external/react-dropzone/dist/es/utils/index.js.map +1 -1
- package/external/react-resize-detector/build/index.esm.js +1 -1
- package/external/react-resize-detector/build/index.esm.js.map +1 -1
- package/external/react-responsive/dist/react-responsive.js +43 -43
- package/external/react-responsive/dist/react-responsive.js.map +1 -1
- package/file-download/file-list-card/file-list-card.js +1 -1
- package/file-download/file-list-card/file-list-card.js.map +1 -1
- package/file-upload/file-list.js +1 -1
- package/file-upload/file-list.js.map +1 -1
- package/file-upload/types.d.ts +15 -0
- package/filter/filter-item.js +1 -1
- package/filter/filter-item.js.map +1 -1
- package/filter/filter.js +1 -1
- package/filter/filter.js.map +1 -1
- package/footer/footer-helper.js +1 -1
- package/footer/footer-helper.js.map +1 -1
- package/input-group/input-group-list-addon.js +1 -1
- package/input-group/input-group-list-addon.js.map +1 -1
- package/input-group/input-group-list-addon.style.js +22 -22
- package/input-group/input-group-list-addon.style.js.map +1 -1
- package/input-multi-select/input-multi-select.js +1 -1
- package/input-multi-select/input-multi-select.js.map +1 -1
- package/input-nested-multi-select/helpers.js +1 -1
- package/input-nested-multi-select/helpers.js.map +1 -1
- package/input-nested-multi-select/input-nested-multi-select.js +1 -1
- package/input-nested-multi-select/input-nested-multi-select.js.map +1 -1
- package/input-nested-select/input-nested-select.js +1 -1
- package/input-nested-select/input-nested-select.js.map +1 -1
- package/input-range-select/input-range-select.js +1 -1
- package/input-range-select/input-range-select.js.map +1 -1
- package/input-select/input-select.js +1 -1
- package/input-select/input-select.js.map +1 -1
- package/language-switcher/dropdown-variant.style.js +14 -14
- package/language-switcher/dropdown-variant.style.js.map +1 -1
- package/masked-input/masked-input.js +1 -1
- package/masked-input/masked-input.js.map +1 -1
- package/navbar/drawer.js +1 -1
- package/navbar/drawer.js.map +1 -1
- package/navbar/drawer.styles.d.ts +1 -0
- package/navbar/drawer.styles.js +16 -11
- package/navbar/drawer.styles.js.map +1 -1
- package/navbar/navbar-action-buttons.js +1 -1
- package/navbar/navbar-action-buttons.js.map +1 -1
- package/navbar/navbar.js +1 -1
- package/navbar/navbar.js.map +1 -1
- package/navbar/navbar.styles.d.ts +1 -0
- package/navbar/navbar.styles.js +8 -3
- package/navbar/navbar.styles.js.map +1 -1
- package/navbar/types.d.ts +13 -0
- package/notification-banner/notification-banner-hoc.js +1 -1
- package/notification-banner/notification-banner-hoc.js.map +1 -1
- package/otp-verification/verification-section.js +1 -1
- package/otp-verification/verification-section.js.map +1 -1
- package/package.json +1 -1
- package/pagination/pagination.js +1 -1
- package/pagination/pagination.js.map +1 -1
- package/phone-number-input/phone-number-input-helper.js +1 -1
- package/phone-number-input/phone-number-input-helper.js.map +1 -1
- package/popover/popover-hoc.js +1 -1
- package/popover/popover-hoc.js.map +1 -1
- package/popover/popover.js +1 -1
- package/popover/popover.js.map +1 -1
- package/popover-v2/popover-trigger.js +1 -1
- package/popover-v2/popover-trigger.js.map +1 -1
- package/popover-v2/popover.js +1 -1
- package/popover-v2/popover.js.map +1 -1
- package/predictive-text-input/predictive-text-input.js +1 -1
- package/predictive-text-input/predictive-text-input.js.map +1 -1
- package/progress-indicator/progress-indicator.js +1 -1
- package/progress-indicator/progress-indicator.js.map +1 -1
- package/radio-button/radio-button.styles.js +1 -0
- package/radio-button/radio-button.styles.js.map +1 -1
- package/schedule/schedule-week-view/schedule-week-view.js +1 -1
- package/schedule/schedule-week-view/schedule-week-view.js.map +1 -1
- package/schedule/schedule.js +1 -1
- package/schedule/schedule.js.map +1 -1
- package/schedule/shared/utils.js +1 -1
- package/schedule/shared/utils.js.map +1 -1
- package/select-histogram/select-histogram.js +1 -1
- package/select-histogram/select-histogram.js.map +1 -1
- package/shared/dropdown-list/dropdown-list.js +1 -1
- package/shared/dropdown-list/dropdown-list.js.map +1 -1
- package/shared/dropdown-list/nested-dropdown-list-helpers.js +1 -1
- package/shared/dropdown-list/nested-dropdown-list-helpers.js.map +1 -1
- package/shared/fade-wrapper/fade-wrapper.js +1 -1
- package/shared/fade-wrapper/fade-wrapper.js.map +1 -1
- package/shared/internal-calendar/calendar-manager.js +1 -1
- package/shared/internal-calendar/calendar-manager.js.map +1 -1
- package/shared/internal-calendar/day-cell/day-cell.js +1 -1
- package/shared/internal-calendar/day-cell/day-cell.js.map +1 -1
- package/shared/internal-calendar/fixed-range/fixed-range-calendar-day-view.js +1 -1
- package/shared/internal-calendar/fixed-range/fixed-range-calendar-day-view.js.map +1 -1
- package/shared/internal-calendar/fixed-range/fixed-range-cell.js +1 -1
- package/shared/internal-calendar/fixed-range/fixed-range-cell.js.map +1 -1
- package/shared/internal-calendar/internal-calendar-month.js +1 -1
- package/shared/internal-calendar/internal-calendar-month.js.map +1 -1
- package/shared/internal-calendar/internal-calendar-year.js +1 -1
- package/shared/internal-calendar/internal-calendar-year.js.map +1 -1
- package/shared/internal-calendar/multi/multi-calendar-day-view.js +1 -1
- package/shared/internal-calendar/multi/multi-calendar-day-view.js.map +1 -1
- package/shared/internal-calendar/multi/multi-cell.js +1 -1
- package/shared/internal-calendar/multi/multi-cell.js.map +1 -1
- package/shared/internal-calendar/single/single-calendar-day-view.js +1 -1
- package/shared/internal-calendar/single/single-calendar-day-view.js.map +1 -1
- package/shared/internal-calendar/single/single-cell.js +1 -1
- package/shared/internal-calendar/single/single-cell.js.map +1 -1
- package/shared/internal-calendar/standard/standard-calendar-day-view.js +1 -1
- package/shared/internal-calendar/standard/standard-calendar-day-view.js.map +1 -1
- package/shared/internal-calendar/standard/standard-cell.js +1 -1
- package/shared/internal-calendar/standard/standard-cell.js.map +1 -1
- package/shared/internal-calendar/week/week-calendar-day-view.js +1 -1
- package/shared/internal-calendar/week/week-calendar-day-view.js.map +1 -1
- package/shared/internal-calendar/week/week-day-cell.js +1 -1
- package/shared/internal-calendar/week/week-day-cell.js.map +1 -1
- package/shared/standalone-date-input/standalone-date-input.js +1 -1
- package/shared/standalone-date-input/standalone-date-input.js.map +1 -1
- package/sidenav/sidenav-drawer-item.styles.js +4 -3
- package/sidenav/sidenav-drawer-item.styles.js.map +1 -1
- package/sidenav/sidenav-drawer-subitem.styles.js +4 -3
- package/sidenav/sidenav-drawer-subitem.styles.js.map +1 -1
- package/tab/tab-link-chain.js +1 -1
- package/tab/tab-link-chain.js.map +1 -1
- package/theme/helpers.js +1 -1
- package/theme/helpers.js.map +1 -1
- package/time-range-picker/combobox-picker/combobox-picker.js +1 -1
- package/time-range-picker/combobox-picker/combobox-picker.js.map +1 -1
- package/time-slot-bar/helper.js +1 -1
- package/time-slot-bar/helper.js.map +1 -1
- package/time-slot-bar/time-slot-bar.js +1 -1
- package/time-slot-bar/time-slot-bar.js.map +1 -1
- package/time-slot-bar-week/time-slot-bar-week-days.js +1 -1
- package/time-slot-bar-week/time-slot-bar-week-days.js.map +1 -1
- package/time-slot-bar-week/time-slot-bar-week.js +1 -1
- package/time-slot-bar-week/time-slot-bar-week.js.map +1 -1
- package/time-slot-week-view/time-slot-week-days.js +1 -1
- package/time-slot-week-view/time-slot-week-days.js.map +1 -1
- package/time-slot-week-view/time-slot-week-view.js +1 -1
- package/time-slot-week-view/time-slot-week-view.js.map +1 -1
- package/timetable/timetable-row/row-bar.js +1 -1
- package/timetable/timetable-row/row-bar.js.map +1 -1
- package/timetable/timetable-row/row-cell.js +1 -1
- package/timetable/timetable-row/row-cell.js.map +1 -1
- package/timetable/timetable.js +1 -1
- package/timetable/timetable.js.map +1 -1
- package/toast/toast.js +1 -1
- package/toast/toast.js.map +1 -1
- package/tooltip/tooltip.js +1 -1
- package/tooltip/tooltip.js.map +1 -1
- package/util/calendar-helper.js +1 -1
- package/util/calendar-helper.js.map +1 -1
- package/util/date-helper.js +1 -1
- package/util/date-helper.js.map +1 -1
- package/util/date-input-helper.js +1 -1
- package/util/date-input-helper.js.map +1 -1
- package/util/time-helper.js +1 -1
- package/util/time-helper.js.map +1 -1
- package/v2_theme/helper.js +1 -1
- package/v2_theme/helper.js.map +1 -1
package/codemods/run-codemod.js
CHANGED
|
@@ -249,101 +249,110 @@ function getDefaultExportFromCjs (x) {
|
|
|
249
249
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
252
|
+
var yoctocolorsCjs;
|
|
253
|
+
var hasRequiredYoctocolorsCjs;
|
|
254
|
+
|
|
255
|
+
function requireYoctocolorsCjs () {
|
|
256
|
+
if (hasRequiredYoctocolorsCjs) return yoctocolorsCjs;
|
|
257
|
+
hasRequiredYoctocolorsCjs = 1;
|
|
258
|
+
const tty = require$$0;
|
|
259
|
+
|
|
260
|
+
// eslint-disable-next-line no-warning-comments
|
|
261
|
+
// TODO: Use a better method when it's added to Node.js (https://github.com/nodejs/node/pull/40240)
|
|
262
|
+
// Lots of optionals here to support Deno.
|
|
263
|
+
const hasColors = tty?.WriteStream?.prototype?.hasColors?.() ?? false;
|
|
264
|
+
|
|
265
|
+
const format = (open, close) => {
|
|
266
|
+
if (!hasColors) {
|
|
267
|
+
return input => input;
|
|
268
|
+
}
|
|
263
269
|
|
|
264
|
-
|
|
265
|
-
|
|
270
|
+
const openCode = `\u001B[${open}m`;
|
|
271
|
+
const closeCode = `\u001B[${close}m`;
|
|
266
272
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
273
|
+
return input => {
|
|
274
|
+
const string = input + ''; // eslint-disable-line no-implicit-coercion -- This is faster.
|
|
275
|
+
let index = string.indexOf(closeCode);
|
|
270
276
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
277
|
+
if (index === -1) {
|
|
278
|
+
// Note: Intentionally not using string interpolation for performance reasons.
|
|
279
|
+
return openCode + string + closeCode;
|
|
280
|
+
}
|
|
275
281
|
|
|
276
|
-
|
|
282
|
+
// Handle nested colors.
|
|
277
283
|
|
|
278
|
-
|
|
279
|
-
|
|
284
|
+
// We could have done this, but it's too slow (as of Node.js 22).
|
|
285
|
+
// return openCode + string.replaceAll(closeCode, openCode) + closeCode;
|
|
280
286
|
|
|
281
|
-
|
|
282
|
-
|
|
287
|
+
let result = openCode;
|
|
288
|
+
let lastIndex = 0;
|
|
283
289
|
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
290
|
+
while (index !== -1) {
|
|
291
|
+
result += string.slice(lastIndex, index) + openCode;
|
|
292
|
+
lastIndex = index + closeCode.length;
|
|
293
|
+
index = string.indexOf(closeCode, lastIndex);
|
|
294
|
+
}
|
|
289
295
|
|
|
290
|
-
|
|
296
|
+
result += string.slice(lastIndex) + closeCode;
|
|
291
297
|
|
|
292
|
-
|
|
298
|
+
return result;
|
|
299
|
+
};
|
|
293
300
|
};
|
|
294
|
-
};
|
|
295
301
|
|
|
296
|
-
const colors = {};
|
|
297
|
-
|
|
298
|
-
colors.reset = format(0, 0);
|
|
299
|
-
colors.bold = format(1, 22);
|
|
300
|
-
colors.dim = format(2, 22);
|
|
301
|
-
colors.italic = format(3, 23);
|
|
302
|
-
colors.underline = format(4, 24);
|
|
303
|
-
colors.overline = format(53, 55);
|
|
304
|
-
colors.inverse = format(7, 27);
|
|
305
|
-
colors.hidden = format(8, 28);
|
|
306
|
-
colors.strikethrough = format(9, 29);
|
|
307
|
-
|
|
308
|
-
colors.black = format(30, 39);
|
|
309
|
-
colors.red = format(31, 39);
|
|
310
|
-
colors.green = format(32, 39);
|
|
311
|
-
colors.yellow = format(33, 39);
|
|
312
|
-
colors.blue = format(34, 39);
|
|
313
|
-
colors.magenta = format(35, 39);
|
|
314
|
-
colors.cyan = format(36, 39);
|
|
315
|
-
colors.white = format(37, 39);
|
|
316
|
-
colors.gray = format(90, 39);
|
|
317
|
-
|
|
318
|
-
colors.bgBlack = format(40, 49);
|
|
319
|
-
colors.bgRed = format(41, 49);
|
|
320
|
-
colors.bgGreen = format(42, 49);
|
|
321
|
-
colors.bgYellow = format(43, 49);
|
|
322
|
-
colors.bgBlue = format(44, 49);
|
|
323
|
-
colors.bgMagenta = format(45, 49);
|
|
324
|
-
colors.bgCyan = format(46, 49);
|
|
325
|
-
colors.bgWhite = format(47, 49);
|
|
326
|
-
colors.bgGray = format(100, 49);
|
|
327
|
-
|
|
328
|
-
colors.redBright = format(91, 39);
|
|
329
|
-
colors.greenBright = format(92, 39);
|
|
330
|
-
colors.yellowBright = format(93, 39);
|
|
331
|
-
colors.blueBright = format(94, 39);
|
|
332
|
-
colors.magentaBright = format(95, 39);
|
|
333
|
-
colors.cyanBright = format(96, 39);
|
|
334
|
-
colors.whiteBright = format(97, 39);
|
|
335
|
-
|
|
336
|
-
colors.bgRedBright = format(101, 49);
|
|
337
|
-
colors.bgGreenBright = format(102, 49);
|
|
338
|
-
colors.bgYellowBright = format(103, 49);
|
|
339
|
-
colors.bgBlueBright = format(104, 49);
|
|
340
|
-
colors.bgMagentaBright = format(105, 49);
|
|
341
|
-
colors.bgCyanBright = format(106, 49);
|
|
342
|
-
colors.bgWhiteBright = format(107, 49);
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
302
|
+
const colors = {};
|
|
303
|
+
|
|
304
|
+
colors.reset = format(0, 0);
|
|
305
|
+
colors.bold = format(1, 22);
|
|
306
|
+
colors.dim = format(2, 22);
|
|
307
|
+
colors.italic = format(3, 23);
|
|
308
|
+
colors.underline = format(4, 24);
|
|
309
|
+
colors.overline = format(53, 55);
|
|
310
|
+
colors.inverse = format(7, 27);
|
|
311
|
+
colors.hidden = format(8, 28);
|
|
312
|
+
colors.strikethrough = format(9, 29);
|
|
313
|
+
|
|
314
|
+
colors.black = format(30, 39);
|
|
315
|
+
colors.red = format(31, 39);
|
|
316
|
+
colors.green = format(32, 39);
|
|
317
|
+
colors.yellow = format(33, 39);
|
|
318
|
+
colors.blue = format(34, 39);
|
|
319
|
+
colors.magenta = format(35, 39);
|
|
320
|
+
colors.cyan = format(36, 39);
|
|
321
|
+
colors.white = format(37, 39);
|
|
322
|
+
colors.gray = format(90, 39);
|
|
323
|
+
|
|
324
|
+
colors.bgBlack = format(40, 49);
|
|
325
|
+
colors.bgRed = format(41, 49);
|
|
326
|
+
colors.bgGreen = format(42, 49);
|
|
327
|
+
colors.bgYellow = format(43, 49);
|
|
328
|
+
colors.bgBlue = format(44, 49);
|
|
329
|
+
colors.bgMagenta = format(45, 49);
|
|
330
|
+
colors.bgCyan = format(46, 49);
|
|
331
|
+
colors.bgWhite = format(47, 49);
|
|
332
|
+
colors.bgGray = format(100, 49);
|
|
333
|
+
|
|
334
|
+
colors.redBright = format(91, 39);
|
|
335
|
+
colors.greenBright = format(92, 39);
|
|
336
|
+
colors.yellowBright = format(93, 39);
|
|
337
|
+
colors.blueBright = format(94, 39);
|
|
338
|
+
colors.magentaBright = format(95, 39);
|
|
339
|
+
colors.cyanBright = format(96, 39);
|
|
340
|
+
colors.whiteBright = format(97, 39);
|
|
341
|
+
|
|
342
|
+
colors.bgRedBright = format(101, 49);
|
|
343
|
+
colors.bgGreenBright = format(102, 49);
|
|
344
|
+
colors.bgYellowBright = format(103, 49);
|
|
345
|
+
colors.bgBlueBright = format(104, 49);
|
|
346
|
+
colors.bgMagentaBright = format(105, 49);
|
|
347
|
+
colors.bgCyanBright = format(106, 49);
|
|
348
|
+
colors.bgWhiteBright = format(107, 49);
|
|
349
|
+
|
|
350
|
+
yoctocolorsCjs = colors;
|
|
351
|
+
return yoctocolorsCjs;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
var yoctocolorsCjsExports = /*@__PURE__*/ requireYoctocolorsCjs();
|
|
355
|
+
var colors = /*@__PURE__*/getDefaultExportFromCjs(yoctocolorsCjsExports);
|
|
347
356
|
|
|
348
357
|
// process.env dot-notation access prints:
|
|
349
358
|
// Property 'TERM' comes from an index signature, so it must be accessed with ['TERM'].ts(4111)
|
|
@@ -641,22 +650,22 @@ const figures = shouldUseMain ? mainSymbols : fallbackSymbols;
|
|
|
641
650
|
|
|
642
651
|
const defaultTheme = {
|
|
643
652
|
prefix: {
|
|
644
|
-
idle: colors
|
|
653
|
+
idle: colors.blue('?'),
|
|
645
654
|
// TODO: use figure
|
|
646
|
-
done: colors
|
|
655
|
+
done: colors.green(figures.tick),
|
|
647
656
|
},
|
|
648
657
|
spinner: {
|
|
649
658
|
interval: 80,
|
|
650
|
-
frames: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'].map((frame) => colors
|
|
659
|
+
frames: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'].map((frame) => colors.yellow(frame)),
|
|
651
660
|
},
|
|
652
661
|
style: {
|
|
653
|
-
answer: colors
|
|
654
|
-
message: colors
|
|
655
|
-
error: (text) => colors
|
|
656
|
-
defaultAnswer: (text) => colors
|
|
657
|
-
help: colors
|
|
658
|
-
highlight: colors
|
|
659
|
-
key: (text) => colors
|
|
662
|
+
answer: colors.cyan,
|
|
663
|
+
message: colors.bold,
|
|
664
|
+
error: (text) => colors.red(`> ${text}`),
|
|
665
|
+
defaultAnswer: (text) => colors.dim(`(${text})`),
|
|
666
|
+
help: colors.dim,
|
|
667
|
+
highlight: colors.cyan,
|
|
668
|
+
key: (text) => colors.cyan(colors.bold(`<${text}>`)),
|
|
660
669
|
},
|
|
661
670
|
};
|
|
662
671
|
|
|
@@ -759,180 +768,227 @@ function useKeypress(userHandler) {
|
|
|
759
768
|
}, []);
|
|
760
769
|
}
|
|
761
770
|
|
|
762
|
-
var cliWidth_1
|
|
771
|
+
var cliWidth_1;
|
|
772
|
+
var hasRequiredCliWidth;
|
|
763
773
|
|
|
764
|
-
function
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
output: process.stdout,
|
|
768
|
-
tty: require$$0$1,
|
|
769
|
-
};
|
|
774
|
+
function requireCliWidth () {
|
|
775
|
+
if (hasRequiredCliWidth) return cliWidth_1;
|
|
776
|
+
hasRequiredCliWidth = 1;
|
|
770
777
|
|
|
771
|
-
|
|
772
|
-
return defaultOpts;
|
|
773
|
-
}
|
|
778
|
+
cliWidth_1 = cliWidth;
|
|
774
779
|
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
+
function normalizeOpts(options) {
|
|
781
|
+
const defaultOpts = {
|
|
782
|
+
defaultWidth: 0,
|
|
783
|
+
output: process.stdout,
|
|
784
|
+
tty: require$$0$1,
|
|
785
|
+
};
|
|
780
786
|
|
|
781
|
-
|
|
782
|
-
|
|
787
|
+
if (!options) {
|
|
788
|
+
return defaultOpts;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
Object.keys(defaultOpts).forEach(function (key) {
|
|
792
|
+
if (!options[key]) {
|
|
793
|
+
options[key] = defaultOpts[key];
|
|
794
|
+
}
|
|
795
|
+
});
|
|
783
796
|
|
|
784
|
-
|
|
785
|
-
|
|
797
|
+
return options;
|
|
798
|
+
}
|
|
786
799
|
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
}
|
|
800
|
+
function cliWidth(options) {
|
|
801
|
+
const opts = normalizeOpts(options);
|
|
790
802
|
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
803
|
+
if (opts.output.getWindowSize) {
|
|
804
|
+
return opts.output.getWindowSize()[0] || opts.defaultWidth;
|
|
805
|
+
}
|
|
794
806
|
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
807
|
+
if (opts.tty.getWindowSize) {
|
|
808
|
+
return opts.tty.getWindowSize()[1] || opts.defaultWidth;
|
|
809
|
+
}
|
|
798
810
|
|
|
799
|
-
|
|
800
|
-
|
|
811
|
+
if (opts.output.columns) {
|
|
812
|
+
return opts.output.columns;
|
|
813
|
+
}
|
|
801
814
|
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
}
|
|
805
|
-
}
|
|
815
|
+
if (process.env.CLI_WIDTH) {
|
|
816
|
+
const width = parseInt(process.env.CLI_WIDTH, 10);
|
|
806
817
|
|
|
807
|
-
|
|
818
|
+
if (!isNaN(width) && width !== 0) {
|
|
819
|
+
return width;
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
return opts.defaultWidth;
|
|
824
|
+
}
|
|
825
|
+
return cliWidth_1;
|
|
808
826
|
}
|
|
809
827
|
|
|
810
|
-
var
|
|
828
|
+
var cliWidthExports = requireCliWidth();
|
|
829
|
+
var cliWidth = /*@__PURE__*/getDefaultExportFromCjs(cliWidthExports);
|
|
811
830
|
|
|
812
|
-
var stringWidth
|
|
831
|
+
var stringWidth = {exports: {}};
|
|
813
832
|
|
|
814
|
-
var ansiRegex
|
|
815
|
-
|
|
816
|
-
'[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
|
|
817
|
-
'(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
|
|
818
|
-
].join('|');
|
|
833
|
+
var ansiRegex;
|
|
834
|
+
var hasRequiredAnsiRegex;
|
|
819
835
|
|
|
820
|
-
|
|
821
|
-
|
|
836
|
+
function requireAnsiRegex () {
|
|
837
|
+
if (hasRequiredAnsiRegex) return ansiRegex;
|
|
838
|
+
hasRequiredAnsiRegex = 1;
|
|
822
839
|
|
|
823
|
-
|
|
840
|
+
ansiRegex = ({onlyFirst = false} = {}) => {
|
|
841
|
+
const pattern = [
|
|
842
|
+
'[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
|
|
843
|
+
'(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
|
|
844
|
+
].join('|');
|
|
824
845
|
|
|
825
|
-
|
|
846
|
+
return new RegExp(pattern, onlyFirst ? undefined : 'g');
|
|
847
|
+
};
|
|
848
|
+
return ansiRegex;
|
|
849
|
+
}
|
|
826
850
|
|
|
827
|
-
var
|
|
851
|
+
var stripAnsi;
|
|
852
|
+
var hasRequiredStripAnsi;
|
|
828
853
|
|
|
829
|
-
|
|
854
|
+
function requireStripAnsi () {
|
|
855
|
+
if (hasRequiredStripAnsi) return stripAnsi;
|
|
856
|
+
hasRequiredStripAnsi = 1;
|
|
857
|
+
const ansiRegex = requireAnsiRegex();
|
|
830
858
|
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
}
|
|
859
|
+
stripAnsi = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;
|
|
860
|
+
return stripAnsi;
|
|
861
|
+
}
|
|
835
862
|
|
|
836
|
-
|
|
837
|
-
// http://www.unix.org/Public/UNIDATA/EastAsianWidth.txt
|
|
838
|
-
if (
|
|
839
|
-
codePoint >= 0x1100 && (
|
|
840
|
-
codePoint <= 0x115F || // Hangul Jamo
|
|
841
|
-
codePoint === 0x2329 || // LEFT-POINTING ANGLE BRACKET
|
|
842
|
-
codePoint === 0x232A || // RIGHT-POINTING ANGLE BRACKET
|
|
843
|
-
// CJK Radicals Supplement .. Enclosed CJK Letters and Months
|
|
844
|
-
(0x2E80 <= codePoint && codePoint <= 0x3247 && codePoint !== 0x303F) ||
|
|
845
|
-
// Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
|
|
846
|
-
(0x3250 <= codePoint && codePoint <= 0x4DBF) ||
|
|
847
|
-
// CJK Unified Ideographs .. Yi Radicals
|
|
848
|
-
(0x4E00 <= codePoint && codePoint <= 0xA4C6) ||
|
|
849
|
-
// Hangul Jamo Extended-A
|
|
850
|
-
(0xA960 <= codePoint && codePoint <= 0xA97C) ||
|
|
851
|
-
// Hangul Syllables
|
|
852
|
-
(0xAC00 <= codePoint && codePoint <= 0xD7A3) ||
|
|
853
|
-
// CJK Compatibility Ideographs
|
|
854
|
-
(0xF900 <= codePoint && codePoint <= 0xFAFF) ||
|
|
855
|
-
// Vertical Forms
|
|
856
|
-
(0xFE10 <= codePoint && codePoint <= 0xFE19) ||
|
|
857
|
-
// CJK Compatibility Forms .. Small Form Variants
|
|
858
|
-
(0xFE30 <= codePoint && codePoint <= 0xFE6B) ||
|
|
859
|
-
// Halfwidth and Fullwidth Forms
|
|
860
|
-
(0xFF01 <= codePoint && codePoint <= 0xFF60) ||
|
|
861
|
-
(0xFFE0 <= codePoint && codePoint <= 0xFFE6) ||
|
|
862
|
-
// Kana Supplement
|
|
863
|
-
(0x1B000 <= codePoint && codePoint <= 0x1B001) ||
|
|
864
|
-
// Enclosed Ideographic Supplement
|
|
865
|
-
(0x1F200 <= codePoint && codePoint <= 0x1F251) ||
|
|
866
|
-
// CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
|
|
867
|
-
(0x20000 <= codePoint && codePoint <= 0x3FFFD)
|
|
868
|
-
)
|
|
869
|
-
) {
|
|
870
|
-
return true;
|
|
871
|
-
}
|
|
863
|
+
var isFullwidthCodePoint = {exports: {}};
|
|
872
864
|
|
|
873
|
-
|
|
874
|
-
};
|
|
865
|
+
/* eslint-disable yoda */
|
|
875
866
|
|
|
876
|
-
|
|
877
|
-
isFullwidthCodePoint$2.exports.default = isFullwidthCodePoint$1;
|
|
867
|
+
var hasRequiredIsFullwidthCodePoint;
|
|
878
868
|
|
|
879
|
-
|
|
869
|
+
function requireIsFullwidthCodePoint () {
|
|
870
|
+
if (hasRequiredIsFullwidthCodePoint) return isFullwidthCodePoint.exports;
|
|
871
|
+
hasRequiredIsFullwidthCodePoint = 1;
|
|
880
872
|
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
|
|
884
|
-
}
|
|
873
|
+
const isFullwidthCodePoint$1 = codePoint => {
|
|
874
|
+
if (Number.isNaN(codePoint)) {
|
|
875
|
+
return false;
|
|
876
|
+
}
|
|
885
877
|
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
878
|
+
// Code points are derived from:
|
|
879
|
+
// http://www.unix.org/Public/UNIDATA/EastAsianWidth.txt
|
|
880
|
+
if (
|
|
881
|
+
codePoint >= 0x1100 && (
|
|
882
|
+
codePoint <= 0x115F || // Hangul Jamo
|
|
883
|
+
codePoint === 0x2329 || // LEFT-POINTING ANGLE BRACKET
|
|
884
|
+
codePoint === 0x232A || // RIGHT-POINTING ANGLE BRACKET
|
|
885
|
+
// CJK Radicals Supplement .. Enclosed CJK Letters and Months
|
|
886
|
+
(0x2E80 <= codePoint && codePoint <= 0x3247 && codePoint !== 0x303F) ||
|
|
887
|
+
// Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
|
|
888
|
+
(0x3250 <= codePoint && codePoint <= 0x4DBF) ||
|
|
889
|
+
// CJK Unified Ideographs .. Yi Radicals
|
|
890
|
+
(0x4E00 <= codePoint && codePoint <= 0xA4C6) ||
|
|
891
|
+
// Hangul Jamo Extended-A
|
|
892
|
+
(0xA960 <= codePoint && codePoint <= 0xA97C) ||
|
|
893
|
+
// Hangul Syllables
|
|
894
|
+
(0xAC00 <= codePoint && codePoint <= 0xD7A3) ||
|
|
895
|
+
// CJK Compatibility Ideographs
|
|
896
|
+
(0xF900 <= codePoint && codePoint <= 0xFAFF) ||
|
|
897
|
+
// Vertical Forms
|
|
898
|
+
(0xFE10 <= codePoint && codePoint <= 0xFE19) ||
|
|
899
|
+
// CJK Compatibility Forms .. Small Form Variants
|
|
900
|
+
(0xFE30 <= codePoint && codePoint <= 0xFE6B) ||
|
|
901
|
+
// Halfwidth and Fullwidth Forms
|
|
902
|
+
(0xFF01 <= codePoint && codePoint <= 0xFF60) ||
|
|
903
|
+
(0xFFE0 <= codePoint && codePoint <= 0xFFE6) ||
|
|
904
|
+
// Kana Supplement
|
|
905
|
+
(0x1B000 <= codePoint && codePoint <= 0x1B001) ||
|
|
906
|
+
// Enclosed Ideographic Supplement
|
|
907
|
+
(0x1F200 <= codePoint && codePoint <= 0x1F251) ||
|
|
908
|
+
// CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
|
|
909
|
+
(0x20000 <= codePoint && codePoint <= 0x3FFFD)
|
|
910
|
+
)
|
|
911
|
+
) {
|
|
912
|
+
return true;
|
|
913
|
+
}
|
|
889
914
|
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
915
|
+
return false;
|
|
916
|
+
};
|
|
917
|
+
|
|
918
|
+
isFullwidthCodePoint.exports = isFullwidthCodePoint$1;
|
|
919
|
+
isFullwidthCodePoint.exports.default = isFullwidthCodePoint$1;
|
|
920
|
+
return isFullwidthCodePoint.exports;
|
|
921
|
+
}
|
|
894
922
|
|
|
895
|
-
|
|
923
|
+
var emojiRegex;
|
|
924
|
+
var hasRequiredEmojiRegex;
|
|
896
925
|
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
926
|
+
function requireEmojiRegex () {
|
|
927
|
+
if (hasRequiredEmojiRegex) return emojiRegex;
|
|
928
|
+
hasRequiredEmojiRegex = 1;
|
|
900
929
|
|
|
901
|
-
|
|
930
|
+
emojiRegex = function () {
|
|
931
|
+
// https://mths.be/emoji
|
|
932
|
+
return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
|
|
933
|
+
};
|
|
934
|
+
return emojiRegex;
|
|
935
|
+
}
|
|
902
936
|
|
|
903
|
-
|
|
937
|
+
var hasRequiredStringWidth;
|
|
904
938
|
|
|
905
|
-
|
|
906
|
-
|
|
939
|
+
function requireStringWidth () {
|
|
940
|
+
if (hasRequiredStringWidth) return stringWidth.exports;
|
|
941
|
+
hasRequiredStringWidth = 1;
|
|
942
|
+
const stripAnsi = requireStripAnsi();
|
|
943
|
+
const isFullwidthCodePoint = requireIsFullwidthCodePoint();
|
|
944
|
+
const emojiRegex = requireEmojiRegex();
|
|
907
945
|
|
|
908
|
-
|
|
909
|
-
if (
|
|
910
|
-
|
|
946
|
+
const stringWidth$1 = string => {
|
|
947
|
+
if (typeof string !== 'string' || string.length === 0) {
|
|
948
|
+
return 0;
|
|
911
949
|
}
|
|
912
950
|
|
|
913
|
-
|
|
914
|
-
if (code >= 0x300 && code <= 0x36F) {
|
|
915
|
-
continue;
|
|
916
|
-
}
|
|
951
|
+
string = stripAnsi(string);
|
|
917
952
|
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
i++;
|
|
953
|
+
if (string.length === 0) {
|
|
954
|
+
return 0;
|
|
921
955
|
}
|
|
922
956
|
|
|
923
|
-
|
|
924
|
-
}
|
|
957
|
+
string = string.replace(emojiRegex(), ' ');
|
|
925
958
|
|
|
926
|
-
|
|
927
|
-
};
|
|
959
|
+
let width = 0;
|
|
928
960
|
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
stringWidth$2.exports.default = stringWidth$1;
|
|
961
|
+
for (let i = 0; i < string.length; i++) {
|
|
962
|
+
const code = string.codePointAt(i);
|
|
932
963
|
|
|
933
|
-
|
|
964
|
+
// Ignore control characters
|
|
965
|
+
if (code <= 0x1F || (code >= 0x7F && code <= 0x9F)) {
|
|
966
|
+
continue;
|
|
967
|
+
}
|
|
934
968
|
|
|
935
|
-
|
|
969
|
+
// Ignore combining characters
|
|
970
|
+
if (code >= 0x300 && code <= 0x36F) {
|
|
971
|
+
continue;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
// Surrogates
|
|
975
|
+
if (code > 0xFFFF) {
|
|
976
|
+
i++;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
width += isFullwidthCodePoint(code) ? 2 : 1;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
return width;
|
|
983
|
+
};
|
|
984
|
+
|
|
985
|
+
stringWidth.exports = stringWidth$1;
|
|
986
|
+
// TODO: remove this in the next major version
|
|
987
|
+
stringWidth.exports.default = stringWidth$1;
|
|
988
|
+
return stringWidth.exports;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
var ansiStyles = {exports: {}};
|
|
936
992
|
|
|
937
993
|
var colorName;
|
|
938
994
|
var hasRequiredColorName;
|
|
@@ -2138,362 +2194,376 @@ function requireColorConvert () {
|
|
|
2138
2194
|
return colorConvert;
|
|
2139
2195
|
}
|
|
2140
2196
|
|
|
2141
|
-
ansiStyles
|
|
2197
|
+
ansiStyles.exports;
|
|
2142
2198
|
|
|
2143
|
-
|
|
2199
|
+
var hasRequiredAnsiStyles;
|
|
2144
2200
|
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2201
|
+
function requireAnsiStyles () {
|
|
2202
|
+
if (hasRequiredAnsiStyles) return ansiStyles.exports;
|
|
2203
|
+
hasRequiredAnsiStyles = 1;
|
|
2204
|
+
(function (module) {
|
|
2149
2205
|
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
const wrapAnsi16m = (fn, offset) => (...args) => {
|
|
2156
|
-
const rgb = fn(...args);
|
|
2157
|
-
return `\u001B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
|
|
2158
|
-
};
|
|
2206
|
+
const wrapAnsi16 = (fn, offset) => (...args) => {
|
|
2207
|
+
const code = fn(...args);
|
|
2208
|
+
return `\u001B[${code + offset}m`;
|
|
2209
|
+
};
|
|
2159
2210
|
|
|
2160
|
-
|
|
2161
|
-
|
|
2211
|
+
const wrapAnsi256 = (fn, offset) => (...args) => {
|
|
2212
|
+
const code = fn(...args);
|
|
2213
|
+
return `\u001B[${38 + offset};5;${code}m`;
|
|
2214
|
+
};
|
|
2162
2215
|
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2216
|
+
const wrapAnsi16m = (fn, offset) => (...args) => {
|
|
2217
|
+
const rgb = fn(...args);
|
|
2218
|
+
return `\u001B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
|
|
2219
|
+
};
|
|
2167
2220
|
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
enumerable: true,
|
|
2171
|
-
configurable: true
|
|
2172
|
-
});
|
|
2221
|
+
const ansi2ansi = n => n;
|
|
2222
|
+
const rgb2rgb = (r, g, b) => [r, g, b];
|
|
2173
2223
|
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
});
|
|
2179
|
-
};
|
|
2224
|
+
const setLazyProperty = (object, property, get) => {
|
|
2225
|
+
Object.defineProperty(object, property, {
|
|
2226
|
+
get: () => {
|
|
2227
|
+
const value = get();
|
|
2180
2228
|
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
}
|
|
2229
|
+
Object.defineProperty(object, property, {
|
|
2230
|
+
value,
|
|
2231
|
+
enumerable: true,
|
|
2232
|
+
configurable: true
|
|
2233
|
+
});
|
|
2187
2234
|
|
|
2188
|
-
|
|
2189
|
-
|
|
2235
|
+
return value;
|
|
2236
|
+
},
|
|
2237
|
+
enumerable: true,
|
|
2238
|
+
configurable: true
|
|
2239
|
+
});
|
|
2240
|
+
};
|
|
2190
2241
|
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
styles[name] = wrap(suite[targetSpace], offset);
|
|
2242
|
+
/** @type {typeof import('color-convert')} */
|
|
2243
|
+
let colorConvert;
|
|
2244
|
+
const makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
|
|
2245
|
+
if (colorConvert === undefined) {
|
|
2246
|
+
colorConvert = requireColorConvert();
|
|
2197
2247
|
}
|
|
2198
|
-
}
|
|
2199
2248
|
|
|
2200
|
-
|
|
2201
|
-
|
|
2249
|
+
const offset = isBackground ? 10 : 0;
|
|
2250
|
+
const styles = {};
|
|
2202
2251
|
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
dim: [2, 22],
|
|
2211
|
-
italic: [3, 23],
|
|
2212
|
-
underline: [4, 24],
|
|
2213
|
-
inverse: [7, 27],
|
|
2214
|
-
hidden: [8, 28],
|
|
2215
|
-
strikethrough: [9, 29]
|
|
2216
|
-
},
|
|
2217
|
-
color: {
|
|
2218
|
-
black: [30, 39],
|
|
2219
|
-
red: [31, 39],
|
|
2220
|
-
green: [32, 39],
|
|
2221
|
-
yellow: [33, 39],
|
|
2222
|
-
blue: [34, 39],
|
|
2223
|
-
magenta: [35, 39],
|
|
2224
|
-
cyan: [36, 39],
|
|
2225
|
-
white: [37, 39],
|
|
2226
|
-
|
|
2227
|
-
// Bright color
|
|
2228
|
-
blackBright: [90, 39],
|
|
2229
|
-
redBright: [91, 39],
|
|
2230
|
-
greenBright: [92, 39],
|
|
2231
|
-
yellowBright: [93, 39],
|
|
2232
|
-
blueBright: [94, 39],
|
|
2233
|
-
magentaBright: [95, 39],
|
|
2234
|
-
cyanBright: [96, 39],
|
|
2235
|
-
whiteBright: [97, 39]
|
|
2236
|
-
},
|
|
2237
|
-
bgColor: {
|
|
2238
|
-
bgBlack: [40, 49],
|
|
2239
|
-
bgRed: [41, 49],
|
|
2240
|
-
bgGreen: [42, 49],
|
|
2241
|
-
bgYellow: [43, 49],
|
|
2242
|
-
bgBlue: [44, 49],
|
|
2243
|
-
bgMagenta: [45, 49],
|
|
2244
|
-
bgCyan: [46, 49],
|
|
2245
|
-
bgWhite: [47, 49],
|
|
2246
|
-
|
|
2247
|
-
// Bright color
|
|
2248
|
-
bgBlackBright: [100, 49],
|
|
2249
|
-
bgRedBright: [101, 49],
|
|
2250
|
-
bgGreenBright: [102, 49],
|
|
2251
|
-
bgYellowBright: [103, 49],
|
|
2252
|
-
bgBlueBright: [104, 49],
|
|
2253
|
-
bgMagentaBright: [105, 49],
|
|
2254
|
-
bgCyanBright: [106, 49],
|
|
2255
|
-
bgWhiteBright: [107, 49]
|
|
2252
|
+
for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
|
|
2253
|
+
const name = sourceSpace === 'ansi16' ? 'ansi' : sourceSpace;
|
|
2254
|
+
if (sourceSpace === targetSpace) {
|
|
2255
|
+
styles[name] = wrap(identity, offset);
|
|
2256
|
+
} else if (typeof suite === 'object') {
|
|
2257
|
+
styles[name] = wrap(suite[targetSpace], offset);
|
|
2258
|
+
}
|
|
2256
2259
|
}
|
|
2260
|
+
|
|
2261
|
+
return styles;
|
|
2257
2262
|
};
|
|
2258
2263
|
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
+
function assembleStyles() {
|
|
2265
|
+
const codes = new Map();
|
|
2266
|
+
const styles = {
|
|
2267
|
+
modifier: {
|
|
2268
|
+
reset: [0, 0],
|
|
2269
|
+
// 21 isn't widely supported and 22 does the same thing
|
|
2270
|
+
bold: [1, 22],
|
|
2271
|
+
dim: [2, 22],
|
|
2272
|
+
italic: [3, 23],
|
|
2273
|
+
underline: [4, 24],
|
|
2274
|
+
inverse: [7, 27],
|
|
2275
|
+
hidden: [8, 28],
|
|
2276
|
+
strikethrough: [9, 29]
|
|
2277
|
+
},
|
|
2278
|
+
color: {
|
|
2279
|
+
black: [30, 39],
|
|
2280
|
+
red: [31, 39],
|
|
2281
|
+
green: [32, 39],
|
|
2282
|
+
yellow: [33, 39],
|
|
2283
|
+
blue: [34, 39],
|
|
2284
|
+
magenta: [35, 39],
|
|
2285
|
+
cyan: [36, 39],
|
|
2286
|
+
white: [37, 39],
|
|
2287
|
+
|
|
2288
|
+
// Bright color
|
|
2289
|
+
blackBright: [90, 39],
|
|
2290
|
+
redBright: [91, 39],
|
|
2291
|
+
greenBright: [92, 39],
|
|
2292
|
+
yellowBright: [93, 39],
|
|
2293
|
+
blueBright: [94, 39],
|
|
2294
|
+
magentaBright: [95, 39],
|
|
2295
|
+
cyanBright: [96, 39],
|
|
2296
|
+
whiteBright: [97, 39]
|
|
2297
|
+
},
|
|
2298
|
+
bgColor: {
|
|
2299
|
+
bgBlack: [40, 49],
|
|
2300
|
+
bgRed: [41, 49],
|
|
2301
|
+
bgGreen: [42, 49],
|
|
2302
|
+
bgYellow: [43, 49],
|
|
2303
|
+
bgBlue: [44, 49],
|
|
2304
|
+
bgMagenta: [45, 49],
|
|
2305
|
+
bgCyan: [46, 49],
|
|
2306
|
+
bgWhite: [47, 49],
|
|
2307
|
+
|
|
2308
|
+
// Bright color
|
|
2309
|
+
bgBlackBright: [100, 49],
|
|
2310
|
+
bgRedBright: [101, 49],
|
|
2311
|
+
bgGreenBright: [102, 49],
|
|
2312
|
+
bgYellowBright: [103, 49],
|
|
2313
|
+
bgBlueBright: [104, 49],
|
|
2314
|
+
bgMagentaBright: [105, 49],
|
|
2315
|
+
bgCyanBright: [106, 49],
|
|
2316
|
+
bgWhiteBright: [107, 49]
|
|
2317
|
+
}
|
|
2318
|
+
};
|
|
2319
|
+
|
|
2320
|
+
// Alias bright black as gray (and grey)
|
|
2321
|
+
styles.color.gray = styles.color.blackBright;
|
|
2322
|
+
styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
|
|
2323
|
+
styles.color.grey = styles.color.blackBright;
|
|
2324
|
+
styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
|
|
2264
2325
|
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2326
|
+
for (const [groupName, group] of Object.entries(styles)) {
|
|
2327
|
+
for (const [styleName, style] of Object.entries(group)) {
|
|
2328
|
+
styles[styleName] = {
|
|
2329
|
+
open: `\u001B[${style[0]}m`,
|
|
2330
|
+
close: `\u001B[${style[1]}m`
|
|
2331
|
+
};
|
|
2271
2332
|
|
|
2272
|
-
|
|
2333
|
+
group[styleName] = styles[styleName];
|
|
2273
2334
|
|
|
2274
|
-
|
|
2335
|
+
codes.set(style[0], style[1]);
|
|
2336
|
+
}
|
|
2337
|
+
|
|
2338
|
+
Object.defineProperty(styles, groupName, {
|
|
2339
|
+
value: group,
|
|
2340
|
+
enumerable: false
|
|
2341
|
+
});
|
|
2275
2342
|
}
|
|
2276
2343
|
|
|
2277
|
-
Object.defineProperty(styles,
|
|
2278
|
-
value:
|
|
2344
|
+
Object.defineProperty(styles, 'codes', {
|
|
2345
|
+
value: codes,
|
|
2279
2346
|
enumerable: false
|
|
2280
2347
|
});
|
|
2348
|
+
|
|
2349
|
+
styles.color.close = '\u001B[39m';
|
|
2350
|
+
styles.bgColor.close = '\u001B[49m';
|
|
2351
|
+
|
|
2352
|
+
setLazyProperty(styles.color, 'ansi', () => makeDynamicStyles(wrapAnsi16, 'ansi16', ansi2ansi, false));
|
|
2353
|
+
setLazyProperty(styles.color, 'ansi256', () => makeDynamicStyles(wrapAnsi256, 'ansi256', ansi2ansi, false));
|
|
2354
|
+
setLazyProperty(styles.color, 'ansi16m', () => makeDynamicStyles(wrapAnsi16m, 'rgb', rgb2rgb, false));
|
|
2355
|
+
setLazyProperty(styles.bgColor, 'ansi', () => makeDynamicStyles(wrapAnsi16, 'ansi16', ansi2ansi, true));
|
|
2356
|
+
setLazyProperty(styles.bgColor, 'ansi256', () => makeDynamicStyles(wrapAnsi256, 'ansi256', ansi2ansi, true));
|
|
2357
|
+
setLazyProperty(styles.bgColor, 'ansi16m', () => makeDynamicStyles(wrapAnsi16m, 'rgb', rgb2rgb, true));
|
|
2358
|
+
|
|
2359
|
+
return styles;
|
|
2281
2360
|
}
|
|
2282
2361
|
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
enumerable:
|
|
2286
|
-
|
|
2362
|
+
// Make the export immutable
|
|
2363
|
+
Object.defineProperty(module, 'exports', {
|
|
2364
|
+
enumerable: true,
|
|
2365
|
+
get: assembleStyles
|
|
2366
|
+
});
|
|
2367
|
+
} (ansiStyles));
|
|
2368
|
+
return ansiStyles.exports;
|
|
2369
|
+
}
|
|
2287
2370
|
|
|
2288
|
-
|
|
2289
|
-
|
|
2371
|
+
var wrapAnsi_1;
|
|
2372
|
+
var hasRequiredWrapAnsi;
|
|
2290
2373
|
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2374
|
+
function requireWrapAnsi () {
|
|
2375
|
+
if (hasRequiredWrapAnsi) return wrapAnsi_1;
|
|
2376
|
+
hasRequiredWrapAnsi = 1;
|
|
2377
|
+
const stringWidth = requireStringWidth();
|
|
2378
|
+
const stripAnsi = requireStripAnsi();
|
|
2379
|
+
const ansiStyles = requireAnsiStyles();
|
|
2297
2380
|
|
|
2298
|
-
|
|
2299
|
-
|
|
2381
|
+
const ESCAPES = new Set([
|
|
2382
|
+
'\u001B',
|
|
2383
|
+
'\u009B'
|
|
2384
|
+
]);
|
|
2300
2385
|
|
|
2301
|
-
|
|
2302
|
-
Object.defineProperty(module, 'exports', {
|
|
2303
|
-
enumerable: true,
|
|
2304
|
-
get: assembleStyles
|
|
2305
|
-
});
|
|
2306
|
-
} (ansiStyles$1));
|
|
2386
|
+
const END_CODE = 39;
|
|
2307
2387
|
|
|
2308
|
-
|
|
2388
|
+
const wrapAnsi = code => `${ESCAPES.values().next().value}[${code}m`;
|
|
2309
2389
|
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
const
|
|
2390
|
+
// Calculate the length of words split on ' ', ignoring
|
|
2391
|
+
// the extra characters added by ansi escape codes
|
|
2392
|
+
const wordLengths = string => string.split(' ').map(character => stringWidth(character));
|
|
2313
2393
|
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
]
|
|
2394
|
+
// Wrap a long word across multiple rows
|
|
2395
|
+
// Ansi escape codes do not count towards length
|
|
2396
|
+
const wrapWord = (rows, word, columns) => {
|
|
2397
|
+
const characters = [...word];
|
|
2318
2398
|
|
|
2319
|
-
|
|
2399
|
+
let isInsideEscape = false;
|
|
2400
|
+
let visible = stringWidth(stripAnsi(rows[rows.length - 1]));
|
|
2320
2401
|
|
|
2321
|
-
const
|
|
2402
|
+
for (const [index, character] of characters.entries()) {
|
|
2403
|
+
const characterLength = stringWidth(character);
|
|
2322
2404
|
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2405
|
+
if (visible + characterLength <= columns) {
|
|
2406
|
+
rows[rows.length - 1] += character;
|
|
2407
|
+
} else {
|
|
2408
|
+
rows.push(character);
|
|
2409
|
+
visible = 0;
|
|
2410
|
+
}
|
|
2326
2411
|
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2412
|
+
if (ESCAPES.has(character)) {
|
|
2413
|
+
isInsideEscape = true;
|
|
2414
|
+
} else if (isInsideEscape && character === 'm') {
|
|
2415
|
+
isInsideEscape = false;
|
|
2416
|
+
continue;
|
|
2417
|
+
}
|
|
2331
2418
|
|
|
2332
|
-
|
|
2333
|
-
|
|
2419
|
+
if (isInsideEscape) {
|
|
2420
|
+
continue;
|
|
2421
|
+
}
|
|
2334
2422
|
|
|
2335
|
-
|
|
2336
|
-
const characterLength = stringWidth(character);
|
|
2423
|
+
visible += characterLength;
|
|
2337
2424
|
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
visible = 0;
|
|
2425
|
+
if (visible === columns && index < characters.length - 1) {
|
|
2426
|
+
rows.push('');
|
|
2427
|
+
visible = 0;
|
|
2428
|
+
}
|
|
2343
2429
|
}
|
|
2344
2430
|
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
continue;
|
|
2431
|
+
// It's possible that the last row we copy over is only
|
|
2432
|
+
// ansi escape characters, handle this edge-case
|
|
2433
|
+
if (!visible && rows[rows.length - 1].length > 0 && rows.length > 1) {
|
|
2434
|
+
rows[rows.length - 2] += rows.pop();
|
|
2350
2435
|
}
|
|
2436
|
+
};
|
|
2351
2437
|
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2438
|
+
// Trims spaces from a string ignoring invisible sequences
|
|
2439
|
+
const stringVisibleTrimSpacesRight = str => {
|
|
2440
|
+
const words = str.split(' ');
|
|
2441
|
+
let last = words.length;
|
|
2355
2442
|
|
|
2356
|
-
|
|
2443
|
+
while (last > 0) {
|
|
2444
|
+
if (stringWidth(words[last - 1]) > 0) {
|
|
2445
|
+
break;
|
|
2446
|
+
}
|
|
2357
2447
|
|
|
2358
|
-
|
|
2359
|
-
rows.push('');
|
|
2360
|
-
visible = 0;
|
|
2448
|
+
last--;
|
|
2361
2449
|
}
|
|
2362
|
-
}
|
|
2363
2450
|
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
rows[rows.length - 2] += rows.pop();
|
|
2368
|
-
}
|
|
2369
|
-
};
|
|
2451
|
+
if (last === words.length) {
|
|
2452
|
+
return str;
|
|
2453
|
+
}
|
|
2370
2454
|
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
const words = str.split(' ');
|
|
2374
|
-
let last = words.length;
|
|
2455
|
+
return words.slice(0, last).join(' ') + words.slice(last).join('');
|
|
2456
|
+
};
|
|
2375
2457
|
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2458
|
+
// The wrap-ansi module can be invoked in either 'hard' or 'soft' wrap mode
|
|
2459
|
+
//
|
|
2460
|
+
// 'hard' will never allow a string to take up more than columns characters
|
|
2461
|
+
//
|
|
2462
|
+
// 'soft' allows long words to expand past the column length
|
|
2463
|
+
const exec = (string, columns, options = {}) => {
|
|
2464
|
+
if (options.trim !== false && string.trim() === '') {
|
|
2465
|
+
return '';
|
|
2379
2466
|
}
|
|
2380
2467
|
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
if (last === words.length) {
|
|
2385
|
-
return str;
|
|
2386
|
-
}
|
|
2468
|
+
let pre = '';
|
|
2469
|
+
let ret = '';
|
|
2470
|
+
let escapeCode;
|
|
2387
2471
|
|
|
2388
|
-
|
|
2389
|
-
|
|
2472
|
+
const lengths = wordLengths(string);
|
|
2473
|
+
let rows = [''];
|
|
2390
2474
|
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
// 'soft' allows long words to expand past the column length
|
|
2396
|
-
const exec = (string, columns, options = {}) => {
|
|
2397
|
-
if (options.trim !== false && string.trim() === '') {
|
|
2398
|
-
return '';
|
|
2399
|
-
}
|
|
2475
|
+
for (const [index, word] of string.split(' ').entries()) {
|
|
2476
|
+
if (options.trim !== false) {
|
|
2477
|
+
rows[rows.length - 1] = rows[rows.length - 1].trimLeft();
|
|
2478
|
+
}
|
|
2400
2479
|
|
|
2401
|
-
|
|
2402
|
-
let ret = '';
|
|
2403
|
-
let escapeCode;
|
|
2480
|
+
let rowLength = stringWidth(rows[rows.length - 1]);
|
|
2404
2481
|
|
|
2405
|
-
|
|
2406
|
-
|
|
2482
|
+
if (index !== 0) {
|
|
2483
|
+
if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
|
|
2484
|
+
// If we start with a new word but the current row length equals the length of the columns, add a new row
|
|
2485
|
+
rows.push('');
|
|
2486
|
+
rowLength = 0;
|
|
2487
|
+
}
|
|
2407
2488
|
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2489
|
+
if (rowLength > 0 || options.trim === false) {
|
|
2490
|
+
rows[rows.length - 1] += ' ';
|
|
2491
|
+
rowLength++;
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2412
2494
|
|
|
2413
|
-
|
|
2495
|
+
// In 'hard' wrap mode, the length of a line is never allowed to extend past 'columns'
|
|
2496
|
+
if (options.hard && lengths[index] > columns) {
|
|
2497
|
+
const remainingColumns = (columns - rowLength);
|
|
2498
|
+
const breaksStartingThisLine = 1 + Math.floor((lengths[index] - remainingColumns - 1) / columns);
|
|
2499
|
+
const breaksStartingNextLine = Math.floor((lengths[index] - 1) / columns);
|
|
2500
|
+
if (breaksStartingNextLine < breaksStartingThisLine) {
|
|
2501
|
+
rows.push('');
|
|
2502
|
+
}
|
|
2414
2503
|
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
// If we start with a new word but the current row length equals the length of the columns, add a new row
|
|
2418
|
-
rows.push('');
|
|
2419
|
-
rowLength = 0;
|
|
2504
|
+
wrapWord(rows, word, columns);
|
|
2505
|
+
continue;
|
|
2420
2506
|
}
|
|
2421
2507
|
|
|
2422
|
-
if (rowLength > 0
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2508
|
+
if (rowLength + lengths[index] > columns && rowLength > 0 && lengths[index] > 0) {
|
|
2509
|
+
if (options.wordWrap === false && rowLength < columns) {
|
|
2510
|
+
wrapWord(rows, word, columns);
|
|
2511
|
+
continue;
|
|
2512
|
+
}
|
|
2427
2513
|
|
|
2428
|
-
// In 'hard' wrap mode, the length of a line is never allowed to extend past 'columns'
|
|
2429
|
-
if (options.hard && lengths[index] > columns) {
|
|
2430
|
-
const remainingColumns = (columns - rowLength);
|
|
2431
|
-
const breaksStartingThisLine = 1 + Math.floor((lengths[index] - remainingColumns - 1) / columns);
|
|
2432
|
-
const breaksStartingNextLine = Math.floor((lengths[index] - 1) / columns);
|
|
2433
|
-
if (breaksStartingNextLine < breaksStartingThisLine) {
|
|
2434
2514
|
rows.push('');
|
|
2435
2515
|
}
|
|
2436
2516
|
|
|
2437
|
-
|
|
2438
|
-
continue;
|
|
2439
|
-
}
|
|
2440
|
-
|
|
2441
|
-
if (rowLength + lengths[index] > columns && rowLength > 0 && lengths[index] > 0) {
|
|
2442
|
-
if (options.wordWrap === false && rowLength < columns) {
|
|
2517
|
+
if (rowLength + lengths[index] > columns && options.wordWrap === false) {
|
|
2443
2518
|
wrapWord(rows, word, columns);
|
|
2444
2519
|
continue;
|
|
2445
2520
|
}
|
|
2446
2521
|
|
|
2447
|
-
rows.
|
|
2522
|
+
rows[rows.length - 1] += word;
|
|
2448
2523
|
}
|
|
2449
2524
|
|
|
2450
|
-
if (
|
|
2451
|
-
|
|
2452
|
-
continue;
|
|
2525
|
+
if (options.trim !== false) {
|
|
2526
|
+
rows = rows.map(stringVisibleTrimSpacesRight);
|
|
2453
2527
|
}
|
|
2454
2528
|
|
|
2455
|
-
rows
|
|
2456
|
-
}
|
|
2457
|
-
|
|
2458
|
-
if (options.trim !== false) {
|
|
2459
|
-
rows = rows.map(stringVisibleTrimSpacesRight);
|
|
2460
|
-
}
|
|
2461
|
-
|
|
2462
|
-
pre = rows.join('\n');
|
|
2529
|
+
pre = rows.join('\n');
|
|
2463
2530
|
|
|
2464
|
-
|
|
2465
|
-
|
|
2531
|
+
for (const [index, character] of [...pre].entries()) {
|
|
2532
|
+
ret += character;
|
|
2466
2533
|
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2534
|
+
if (ESCAPES.has(character)) {
|
|
2535
|
+
const code = parseFloat(/\d[^m]*/.exec(pre.slice(index, index + 4)));
|
|
2536
|
+
escapeCode = code === END_CODE ? null : code;
|
|
2537
|
+
}
|
|
2471
2538
|
|
|
2472
|
-
|
|
2539
|
+
const code = ansiStyles.codes.get(Number(escapeCode));
|
|
2473
2540
|
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2541
|
+
if (escapeCode && code) {
|
|
2542
|
+
if (pre[index + 1] === '\n') {
|
|
2543
|
+
ret += wrapAnsi(code);
|
|
2544
|
+
} else if (character === '\n') {
|
|
2545
|
+
ret += wrapAnsi(escapeCode);
|
|
2546
|
+
}
|
|
2479
2547
|
}
|
|
2480
2548
|
}
|
|
2481
|
-
}
|
|
2482
2549
|
|
|
2483
|
-
|
|
2484
|
-
};
|
|
2550
|
+
return ret;
|
|
2551
|
+
};
|
|
2485
2552
|
|
|
2486
|
-
// For each newline, invoke the method separately
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
};
|
|
2553
|
+
// For each newline, invoke the method separately
|
|
2554
|
+
wrapAnsi_1 = (string, columns, options) => {
|
|
2555
|
+
return String(string)
|
|
2556
|
+
.normalize()
|
|
2557
|
+
.replace(/\r\n/g, '\n')
|
|
2558
|
+
.split('\n')
|
|
2559
|
+
.map(line => exec(line, columns, options))
|
|
2560
|
+
.join('\n');
|
|
2561
|
+
};
|
|
2562
|
+
return wrapAnsi_1;
|
|
2563
|
+
}
|
|
2495
2564
|
|
|
2496
|
-
var
|
|
2565
|
+
var wrapAnsiExports = requireWrapAnsi();
|
|
2566
|
+
var wrapAnsi = /*@__PURE__*/getDefaultExportFromCjs(wrapAnsiExports);
|
|
2497
2567
|
|
|
2498
2568
|
/**
|
|
2499
2569
|
* Force line returns at specific width. This function is ANSI code friendly and it'll
|
|
@@ -2505,7 +2575,7 @@ var wrapAnsi$1 = /*@__PURE__*/getDefaultExportFromCjs(wrapAnsi_1);
|
|
|
2505
2575
|
function breakLines(content, width) {
|
|
2506
2576
|
return content
|
|
2507
2577
|
.split('\n')
|
|
2508
|
-
.flatMap((line) => wrapAnsi
|
|
2578
|
+
.flatMap((line) => wrapAnsi(line, width, { trim: false, hard: true })
|
|
2509
2579
|
.split('\n')
|
|
2510
2580
|
.map((str) => str.trimEnd()))
|
|
2511
2581
|
.join('\n');
|
|
@@ -2515,7 +2585,7 @@ function breakLines(content, width) {
|
|
|
2515
2585
|
* @returns {number}
|
|
2516
2586
|
*/
|
|
2517
2587
|
function readlineWidth() {
|
|
2518
|
-
return cliWidth
|
|
2588
|
+
return cliWidth({ defaultWidth: 80, output: readline().output });
|
|
2519
2589
|
}
|
|
2520
2590
|
|
|
2521
2591
|
function usePointerPosition({ active, renderedItems, pageSize, loop, }) {
|
|
@@ -2638,150 +2708,159 @@ function usePagination({ items, active, renderItem, pageSize, loop = true, }) {
|
|
|
2638
2708
|
return pageBuffer.filter((line) => typeof line === 'string').join('\n');
|
|
2639
2709
|
}
|
|
2640
2710
|
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2711
|
+
var lib;
|
|
2712
|
+
var hasRequiredLib;
|
|
2713
|
+
|
|
2714
|
+
function requireLib () {
|
|
2715
|
+
if (hasRequiredLib) return lib;
|
|
2716
|
+
hasRequiredLib = 1;
|
|
2717
|
+
const Stream = require$$0$2;
|
|
2718
|
+
|
|
2719
|
+
class MuteStream extends Stream {
|
|
2720
|
+
#isTTY = null
|
|
2721
|
+
|
|
2722
|
+
constructor (opts = {}) {
|
|
2723
|
+
super(opts);
|
|
2724
|
+
this.writable = this.readable = true;
|
|
2725
|
+
this.muted = false;
|
|
2726
|
+
this.on('pipe', this._onpipe);
|
|
2727
|
+
this.replace = opts.replace;
|
|
2728
|
+
|
|
2729
|
+
// For readline-type situations
|
|
2730
|
+
// This much at the start of a line being redrawn after a ctrl char
|
|
2731
|
+
// is seen (such as backspace) won't be redrawn as the replacement
|
|
2732
|
+
this._prompt = opts.prompt || null;
|
|
2733
|
+
this._hadControl = false;
|
|
2734
|
+
}
|
|
2735
|
+
|
|
2736
|
+
#destSrc (key, def) {
|
|
2737
|
+
if (this._dest) {
|
|
2738
|
+
return this._dest[key]
|
|
2739
|
+
}
|
|
2740
|
+
if (this._src) {
|
|
2741
|
+
return this._src[key]
|
|
2742
|
+
}
|
|
2743
|
+
return def
|
|
2744
|
+
}
|
|
2745
|
+
|
|
2746
|
+
#proxy (method, ...args) {
|
|
2747
|
+
if (typeof this._dest?.[method] === 'function') {
|
|
2748
|
+
this._dest[method](...args);
|
|
2749
|
+
}
|
|
2750
|
+
if (typeof this._src?.[method] === 'function') {
|
|
2751
|
+
this._src[method](...args);
|
|
2752
|
+
}
|
|
2753
|
+
}
|
|
2754
|
+
|
|
2755
|
+
get isTTY () {
|
|
2756
|
+
if (this.#isTTY !== null) {
|
|
2757
|
+
return this.#isTTY
|
|
2758
|
+
}
|
|
2759
|
+
return this.#destSrc('isTTY', false)
|
|
2760
|
+
}
|
|
2761
|
+
|
|
2762
|
+
// basically just get replace the getter/setter with a regular value
|
|
2763
|
+
set isTTY (val) {
|
|
2764
|
+
this.#isTTY = val;
|
|
2765
|
+
}
|
|
2766
|
+
|
|
2767
|
+
get rows () {
|
|
2768
|
+
return this.#destSrc('rows')
|
|
2769
|
+
}
|
|
2770
|
+
|
|
2771
|
+
get columns () {
|
|
2772
|
+
return this.#destSrc('columns')
|
|
2773
|
+
}
|
|
2774
|
+
|
|
2775
|
+
mute () {
|
|
2776
|
+
this.muted = true;
|
|
2777
|
+
}
|
|
2778
|
+
|
|
2779
|
+
unmute () {
|
|
2780
|
+
this.muted = false;
|
|
2781
|
+
}
|
|
2782
|
+
|
|
2783
|
+
_onpipe (src) {
|
|
2784
|
+
this._src = src;
|
|
2785
|
+
}
|
|
2786
|
+
|
|
2787
|
+
pipe (dest, options) {
|
|
2788
|
+
this._dest = dest;
|
|
2789
|
+
return super.pipe(dest, options)
|
|
2790
|
+
}
|
|
2791
|
+
|
|
2792
|
+
pause () {
|
|
2793
|
+
if (this._src) {
|
|
2794
|
+
return this._src.pause()
|
|
2795
|
+
}
|
|
2796
|
+
}
|
|
2797
|
+
|
|
2798
|
+
resume () {
|
|
2799
|
+
if (this._src) {
|
|
2800
|
+
return this._src.resume()
|
|
2801
|
+
}
|
|
2802
|
+
}
|
|
2803
|
+
|
|
2804
|
+
write (c) {
|
|
2805
|
+
if (this.muted) {
|
|
2806
|
+
if (!this.replace) {
|
|
2807
|
+
return true
|
|
2808
|
+
}
|
|
2809
|
+
// eslint-disable-next-line no-control-regex
|
|
2810
|
+
if (c.match(/^\u001b/)) {
|
|
2811
|
+
if (c.indexOf(this._prompt) === 0) {
|
|
2812
|
+
c = c.slice(this._prompt.length);
|
|
2813
|
+
c = c.replace(/./g, this.replace);
|
|
2814
|
+
c = this._prompt + c;
|
|
2815
|
+
}
|
|
2816
|
+
this._hadControl = true;
|
|
2817
|
+
return this.emit('data', c)
|
|
2818
|
+
} else {
|
|
2819
|
+
if (this._prompt && this._hadControl &&
|
|
2820
|
+
c.indexOf(this._prompt) === 0) {
|
|
2821
|
+
this._hadControl = false;
|
|
2822
|
+
this.emit('data', this._prompt);
|
|
2823
|
+
c = c.slice(this._prompt.length);
|
|
2824
|
+
}
|
|
2825
|
+
c = c.toString().replace(/./g, this.replace);
|
|
2826
|
+
}
|
|
2827
|
+
}
|
|
2828
|
+
this.emit('data', c);
|
|
2829
|
+
}
|
|
2830
|
+
|
|
2831
|
+
end (c) {
|
|
2832
|
+
if (this.muted) {
|
|
2833
|
+
if (c && this.replace) {
|
|
2834
|
+
c = c.toString().replace(/./g, this.replace);
|
|
2835
|
+
} else {
|
|
2836
|
+
c = null;
|
|
2837
|
+
}
|
|
2838
|
+
}
|
|
2839
|
+
if (c) {
|
|
2840
|
+
this.emit('data', c);
|
|
2841
|
+
}
|
|
2842
|
+
this.emit('end');
|
|
2843
|
+
}
|
|
2844
|
+
|
|
2845
|
+
destroy (...args) {
|
|
2846
|
+
return this.#proxy('destroy', ...args)
|
|
2847
|
+
}
|
|
2848
|
+
|
|
2849
|
+
destroySoon (...args) {
|
|
2850
|
+
return this.#proxy('destroySoon', ...args)
|
|
2851
|
+
}
|
|
2852
|
+
|
|
2853
|
+
close (...args) {
|
|
2854
|
+
return this.#proxy('close', ...args)
|
|
2855
|
+
}
|
|
2856
|
+
}
|
|
2776
2857
|
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
}
|
|
2858
|
+
lib = MuteStream;
|
|
2859
|
+
return lib;
|
|
2780
2860
|
}
|
|
2781
2861
|
|
|
2782
|
-
var
|
|
2783
|
-
|
|
2784
|
-
var MuteStream$1 = /*@__PURE__*/getDefaultExportFromCjs(lib);
|
|
2862
|
+
var libExports = requireLib();
|
|
2863
|
+
var MuteStream = /*@__PURE__*/getDefaultExportFromCjs(libExports);
|
|
2785
2864
|
|
|
2786
2865
|
/**
|
|
2787
2866
|
* This is not the set of all possible signals.
|
|
@@ -3081,166 +3160,173 @@ onExit} = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new
|
|
|
3081
3160
|
|
|
3082
3161
|
var ansiEscapes$1 = {exports: {}};
|
|
3083
3162
|
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
return ESC + (y + 1) + ';' + (x + 1) + 'H';
|
|
3105
|
-
};
|
|
3106
|
-
|
|
3107
|
-
ansiEscapes.cursorMove = (x, y) => {
|
|
3108
|
-
if (typeof x !== 'number') {
|
|
3109
|
-
throw new TypeError('The `x` argument is required');
|
|
3110
|
-
}
|
|
3163
|
+
var hasRequiredAnsiEscapes;
|
|
3164
|
+
|
|
3165
|
+
function requireAnsiEscapes () {
|
|
3166
|
+
if (hasRequiredAnsiEscapes) return ansiEscapes$1.exports;
|
|
3167
|
+
hasRequiredAnsiEscapes = 1;
|
|
3168
|
+
(function (module) {
|
|
3169
|
+
const ansiEscapes = module.exports;
|
|
3170
|
+
// TODO: remove this in the next major version
|
|
3171
|
+
module.exports.default = ansiEscapes;
|
|
3172
|
+
|
|
3173
|
+
const ESC = '\u001B[';
|
|
3174
|
+
const OSC = '\u001B]';
|
|
3175
|
+
const BEL = '\u0007';
|
|
3176
|
+
const SEP = ';';
|
|
3177
|
+
const isTerminalApp = process.env.TERM_PROGRAM === 'Apple_Terminal';
|
|
3178
|
+
|
|
3179
|
+
ansiEscapes.cursorTo = (x, y) => {
|
|
3180
|
+
if (typeof x !== 'number') {
|
|
3181
|
+
throw new TypeError('The `x` argument is required');
|
|
3182
|
+
}
|
|
3111
3183
|
|
|
3112
|
-
|
|
3184
|
+
if (typeof y !== 'number') {
|
|
3185
|
+
return ESC + (x + 1) + 'G';
|
|
3186
|
+
}
|
|
3113
3187
|
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
} else if (x > 0) {
|
|
3117
|
-
ret += ESC + x + 'C';
|
|
3118
|
-
}
|
|
3188
|
+
return ESC + (y + 1) + ';' + (x + 1) + 'H';
|
|
3189
|
+
};
|
|
3119
3190
|
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
}
|
|
3191
|
+
ansiEscapes.cursorMove = (x, y) => {
|
|
3192
|
+
if (typeof x !== 'number') {
|
|
3193
|
+
throw new TypeError('The `x` argument is required');
|
|
3194
|
+
}
|
|
3125
3195
|
|
|
3126
|
-
|
|
3127
|
-
};
|
|
3196
|
+
let ret = '';
|
|
3128
3197
|
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
ansiEscapes.cursorLeft = ESC + 'G';
|
|
3135
|
-
ansiEscapes.cursorSavePosition = isTerminalApp ? '\u001B7' : ESC + 's';
|
|
3136
|
-
ansiEscapes.cursorRestorePosition = isTerminalApp ? '\u001B8' : ESC + 'u';
|
|
3137
|
-
ansiEscapes.cursorGetPosition = ESC + '6n';
|
|
3138
|
-
ansiEscapes.cursorNextLine = ESC + 'E';
|
|
3139
|
-
ansiEscapes.cursorPrevLine = ESC + 'F';
|
|
3140
|
-
ansiEscapes.cursorHide = ESC + '?25l';
|
|
3141
|
-
ansiEscapes.cursorShow = ESC + '?25h';
|
|
3142
|
-
|
|
3143
|
-
ansiEscapes.eraseLines = count => {
|
|
3144
|
-
let clear = '';
|
|
3145
|
-
|
|
3146
|
-
for (let i = 0; i < count; i++) {
|
|
3147
|
-
clear += ansiEscapes.eraseLine + (i < count - 1 ? ansiEscapes.cursorUp() : '');
|
|
3148
|
-
}
|
|
3198
|
+
if (x < 0) {
|
|
3199
|
+
ret += ESC + (-x) + 'D';
|
|
3200
|
+
} else if (x > 0) {
|
|
3201
|
+
ret += ESC + x + 'C';
|
|
3202
|
+
}
|
|
3149
3203
|
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3204
|
+
if (y < 0) {
|
|
3205
|
+
ret += ESC + (-y) + 'A';
|
|
3206
|
+
} else if (y > 0) {
|
|
3207
|
+
ret += ESC + y + 'B';
|
|
3208
|
+
}
|
|
3153
3209
|
|
|
3154
|
-
|
|
3155
|
-
|
|
3210
|
+
return ret;
|
|
3211
|
+
};
|
|
3156
3212
|
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3213
|
+
ansiEscapes.cursorUp = (count = 1) => ESC + count + 'A';
|
|
3214
|
+
ansiEscapes.cursorDown = (count = 1) => ESC + count + 'B';
|
|
3215
|
+
ansiEscapes.cursorForward = (count = 1) => ESC + count + 'C';
|
|
3216
|
+
ansiEscapes.cursorBackward = (count = 1) => ESC + count + 'D';
|
|
3217
|
+
|
|
3218
|
+
ansiEscapes.cursorLeft = ESC + 'G';
|
|
3219
|
+
ansiEscapes.cursorSavePosition = isTerminalApp ? '\u001B7' : ESC + 's';
|
|
3220
|
+
ansiEscapes.cursorRestorePosition = isTerminalApp ? '\u001B8' : ESC + 'u';
|
|
3221
|
+
ansiEscapes.cursorGetPosition = ESC + '6n';
|
|
3222
|
+
ansiEscapes.cursorNextLine = ESC + 'E';
|
|
3223
|
+
ansiEscapes.cursorPrevLine = ESC + 'F';
|
|
3224
|
+
ansiEscapes.cursorHide = ESC + '?25l';
|
|
3225
|
+
ansiEscapes.cursorShow = ESC + '?25h';
|
|
3226
|
+
|
|
3227
|
+
ansiEscapes.eraseLines = count => {
|
|
3228
|
+
let clear = '';
|
|
3229
|
+
|
|
3230
|
+
for (let i = 0; i < count; i++) {
|
|
3231
|
+
clear += ansiEscapes.eraseLine + (i < count - 1 ? ansiEscapes.cursorUp() : '');
|
|
3232
|
+
}
|
|
3165
3233
|
|
|
3166
|
-
|
|
3234
|
+
if (count) {
|
|
3235
|
+
clear += ansiEscapes.cursorLeft;
|
|
3236
|
+
}
|
|
3167
3237
|
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
// 1. Erases the screen (Only done in case `2` is not supported)
|
|
3171
|
-
// 2. Erases the whole screen including scrollback buffer
|
|
3172
|
-
// 3. Moves cursor to the top-left position
|
|
3173
|
-
// More info: https://www.real-world-systems.com/docs/ANSIcode.html
|
|
3174
|
-
`${ansiEscapes.eraseScreen}${ESC}3J${ESC}H`;
|
|
3238
|
+
return clear;
|
|
3239
|
+
};
|
|
3175
3240
|
|
|
3176
|
-
|
|
3241
|
+
ansiEscapes.eraseEndLine = ESC + 'K';
|
|
3242
|
+
ansiEscapes.eraseStartLine = ESC + '1K';
|
|
3243
|
+
ansiEscapes.eraseLine = ESC + '2K';
|
|
3244
|
+
ansiEscapes.eraseDown = ESC + 'J';
|
|
3245
|
+
ansiEscapes.eraseUp = ESC + '1J';
|
|
3246
|
+
ansiEscapes.eraseScreen = ESC + '2J';
|
|
3247
|
+
ansiEscapes.scrollUp = ESC + 'S';
|
|
3248
|
+
ansiEscapes.scrollDown = ESC + 'T';
|
|
3249
|
+
|
|
3250
|
+
ansiEscapes.clearScreen = '\u001Bc';
|
|
3251
|
+
|
|
3252
|
+
ansiEscapes.clearTerminal = process.platform === 'win32' ?
|
|
3253
|
+
`${ansiEscapes.eraseScreen}${ESC}0f` :
|
|
3254
|
+
// 1. Erases the screen (Only done in case `2` is not supported)
|
|
3255
|
+
// 2. Erases the whole screen including scrollback buffer
|
|
3256
|
+
// 3. Moves cursor to the top-left position
|
|
3257
|
+
// More info: https://www.real-world-systems.com/docs/ANSIcode.html
|
|
3258
|
+
`${ansiEscapes.eraseScreen}${ESC}3J${ESC}H`;
|
|
3259
|
+
|
|
3260
|
+
ansiEscapes.beep = BEL;
|
|
3261
|
+
|
|
3262
|
+
ansiEscapes.link = (text, url) => {
|
|
3263
|
+
return [
|
|
3264
|
+
OSC,
|
|
3265
|
+
'8',
|
|
3266
|
+
SEP,
|
|
3267
|
+
SEP,
|
|
3268
|
+
url,
|
|
3269
|
+
BEL,
|
|
3270
|
+
text,
|
|
3271
|
+
OSC,
|
|
3272
|
+
'8',
|
|
3273
|
+
SEP,
|
|
3274
|
+
SEP,
|
|
3275
|
+
BEL
|
|
3276
|
+
].join('');
|
|
3277
|
+
};
|
|
3177
3278
|
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
OSC,
|
|
3181
|
-
'8',
|
|
3182
|
-
SEP,
|
|
3183
|
-
SEP,
|
|
3184
|
-
url,
|
|
3185
|
-
BEL,
|
|
3186
|
-
text,
|
|
3187
|
-
OSC,
|
|
3188
|
-
'8',
|
|
3189
|
-
SEP,
|
|
3190
|
-
SEP,
|
|
3191
|
-
BEL
|
|
3192
|
-
].join('');
|
|
3193
|
-
};
|
|
3279
|
+
ansiEscapes.image = (buffer, options = {}) => {
|
|
3280
|
+
let ret = `${OSC}1337;File=inline=1`;
|
|
3194
3281
|
|
|
3195
|
-
|
|
3196
|
-
|
|
3282
|
+
if (options.width) {
|
|
3283
|
+
ret += `;width=${options.width}`;
|
|
3284
|
+
}
|
|
3197
3285
|
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3286
|
+
if (options.height) {
|
|
3287
|
+
ret += `;height=${options.height}`;
|
|
3288
|
+
}
|
|
3201
3289
|
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3290
|
+
if (options.preserveAspectRatio === false) {
|
|
3291
|
+
ret += ';preserveAspectRatio=0';
|
|
3292
|
+
}
|
|
3205
3293
|
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
}
|
|
3294
|
+
return ret + ':' + buffer.toString('base64') + BEL;
|
|
3295
|
+
};
|
|
3209
3296
|
|
|
3210
|
-
|
|
3211
|
-
|
|
3297
|
+
ansiEscapes.iTerm = {
|
|
3298
|
+
setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
|
|
3212
3299
|
|
|
3213
|
-
|
|
3214
|
-
|
|
3300
|
+
annotation: (message, options = {}) => {
|
|
3301
|
+
let ret = `${OSC}1337;`;
|
|
3215
3302
|
|
|
3216
|
-
|
|
3217
|
-
|
|
3303
|
+
const hasX = typeof options.x !== 'undefined';
|
|
3304
|
+
const hasY = typeof options.y !== 'undefined';
|
|
3305
|
+
if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== 'undefined')) {
|
|
3306
|
+
throw new Error('`x`, `y` and `length` must be defined when `x` or `y` is defined');
|
|
3307
|
+
}
|
|
3218
3308
|
|
|
3219
|
-
|
|
3220
|
-
const hasY = typeof options.y !== 'undefined';
|
|
3221
|
-
if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== 'undefined')) {
|
|
3222
|
-
throw new Error('`x`, `y` and `length` must be defined when `x` or `y` is defined');
|
|
3223
|
-
}
|
|
3309
|
+
message = message.replace(/\|/g, '');
|
|
3224
3310
|
|
|
3225
|
-
|
|
3311
|
+
ret += options.isHidden ? 'AddHiddenAnnotation=' : 'AddAnnotation=';
|
|
3226
3312
|
|
|
3227
|
-
|
|
3313
|
+
if (options.length > 0) {
|
|
3314
|
+
ret +=
|
|
3315
|
+
(hasX ?
|
|
3316
|
+
[message, options.length, options.x, options.y] :
|
|
3317
|
+
[options.length, message]).join('|');
|
|
3318
|
+
} else {
|
|
3319
|
+
ret += message;
|
|
3320
|
+
}
|
|
3228
3321
|
|
|
3229
|
-
|
|
3230
|
-
ret +=
|
|
3231
|
-
(hasX ?
|
|
3232
|
-
[message, options.length, options.x, options.y] :
|
|
3233
|
-
[options.length, message]).join('|');
|
|
3234
|
-
} else {
|
|
3235
|
-
ret += message;
|
|
3322
|
+
return ret + BEL;
|
|
3236
3323
|
}
|
|
3324
|
+
};
|
|
3325
|
+
} (ansiEscapes$1));
|
|
3326
|
+
return ansiEscapes$1.exports;
|
|
3327
|
+
}
|
|
3237
3328
|
|
|
3238
|
-
|
|
3239
|
-
}
|
|
3240
|
-
};
|
|
3241
|
-
} (ansiEscapes$1));
|
|
3242
|
-
|
|
3243
|
-
var ansiEscapesExports = ansiEscapes$1.exports;
|
|
3329
|
+
var ansiEscapesExports = requireAnsiEscapes();
|
|
3244
3330
|
var ansiEscapes = /*@__PURE__*/getDefaultExportFromCjs(ansiEscapesExports);
|
|
3245
3331
|
|
|
3246
3332
|
const height = (content) => content.split('\n').length;
|
|
@@ -3368,7 +3454,7 @@ function createPrompt(view) {
|
|
|
3368
3454
|
const { input = process.stdin, signal } = context;
|
|
3369
3455
|
const cleanups = new Set();
|
|
3370
3456
|
// Add mute capabilities to the output
|
|
3371
|
-
const output = new MuteStream
|
|
3457
|
+
const output = new MuteStream();
|
|
3372
3458
|
output.pipe(context.output ?? process.stdout);
|
|
3373
3459
|
const rl = readline__namespace.createInterface({
|
|
3374
3460
|
terminal: true,
|
|
@@ -3455,7 +3541,7 @@ function createPrompt(view) {
|
|
|
3455
3541
|
* Used to space/separate choices group
|
|
3456
3542
|
*/
|
|
3457
3543
|
class Separator {
|
|
3458
|
-
separator = colors
|
|
3544
|
+
separator = colors.dim(Array.from({ length: 15 }).join(figures.line));
|
|
3459
3545
|
type = 'separator';
|
|
3460
3546
|
constructor(separator) {
|
|
3461
3547
|
if (separator) {
|
|
@@ -3472,14 +3558,14 @@ class Separator {
|
|
|
3472
3558
|
|
|
3473
3559
|
const checkboxTheme = {
|
|
3474
3560
|
icon: {
|
|
3475
|
-
checked: colors
|
|
3561
|
+
checked: colors.green(figures.circleFilled),
|
|
3476
3562
|
unchecked: figures.circle,
|
|
3477
3563
|
cursor: figures.pointer,
|
|
3478
3564
|
},
|
|
3479
3565
|
style: {
|
|
3480
|
-
disabledChoice: (text) => colors
|
|
3566
|
+
disabledChoice: (text) => colors.dim(`- ${text}`),
|
|
3481
3567
|
renderSelectedChoices: (selectedChoices) => selectedChoices.map((choice) => choice.short).join(', '),
|
|
3482
|
-
description: (text) => colors
|
|
3568
|
+
description: (text) => colors.cyan(text),
|
|
3483
3569
|
},
|
|
3484
3570
|
helpMode: 'auto',
|
|
3485
3571
|
};
|
|
@@ -3757,8 +3843,8 @@ var input = createPrompt((config, done) => {
|
|
|
3757
3843
|
const selectTheme = {
|
|
3758
3844
|
icon: { cursor: figures.pointer },
|
|
3759
3845
|
style: {
|
|
3760
|
-
disabled: (text) => colors
|
|
3761
|
-
description: (text) => colors
|
|
3846
|
+
disabled: (text) => colors.dim(`- ${text}`),
|
|
3847
|
+
description: (text) => colors.cyan(text),
|
|
3762
3848
|
},
|
|
3763
3849
|
helpMode: 'auto',
|
|
3764
3850
|
};
|