@unicom-cloud/utils 0.1.23 → 0.1.25
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/case-name/index.js +8 -7
- package/caseName.js +8 -7
- package/class-name/index.js +1 -0
- package/className.js +1 -0
- package/clipboard-copy/index.js +8 -8
- package/clipboardCopy.js +3 -3
- package/constant/address.js +1 -0
- package/constant/chineseCharacters.js +1 -0
- package/constant/constellations.js +1 -0
- package/constant/domain.js +1 -0
- package/constant/emoji.js +1 -0
- package/constant/identity.js +1 -0
- package/constant/index.js +1 -0
- package/constant/keyboardCode.js +1 -0
- package/constant/licensePlate.js +1 -0
- package/constant/name.js +1 -0
- package/constant/platform.js +12 -11
- package/constant/protocol.js +1 -0
- package/constant/ui.js +1 -0
- package/constant.js +1 -0
- package/content-disposition/index.js +3 -3
- package/contentDisposition.js +6 -6
- package/cookie/index.js +1 -0
- package/cookie/src/index.js +1 -0
- package/cookie.js +1 -0
- package/date/convertTime.js +1 -0
- package/date/convertToDuration.js +18 -0
- package/date/index.js +10 -19
- package/date.js +8 -6
- package/decimal/decimal.js +24 -23
- package/decimal/index.js +1 -0
- package/decimal.js +1 -0
- package/dom-helpers/activeElement.js +13 -0
- package/dom-helpers/addClass.js +11 -0
- package/dom-helpers/addEventListener.js +34 -0
- package/dom-helpers/animate.js +51 -0
- package/dom-helpers/animationFrame.js +21 -0
- package/dom-helpers/attribute.js +11 -0
- package/dom-helpers/camelize.js +8 -0
- package/dom-helpers/camelizeStyle.js +9 -0
- package/dom-helpers/canUseDOM.js +5 -0
- package/dom-helpers/childElements.js +7 -0
- package/dom-helpers/childNodes.js +8 -0
- package/dom-helpers/clear.js +12 -0
- package/dom-helpers/closest.js +14 -0
- package/dom-helpers/collectElements.js +11 -0
- package/dom-helpers/collectSiblings.js +15 -0
- package/dom-helpers/contains.js +9 -0
- package/dom-helpers/css.js +16 -0
- package/dom-helpers/filterEventHandler.js +12 -0
- package/dom-helpers/getComputedStyle.js +8 -0
- package/dom-helpers/getScrollAccessor.js +15 -0
- package/dom-helpers/hasClass.js +9 -0
- package/dom-helpers/height.js +10 -0
- package/dom-helpers/hyphenate.js +8 -0
- package/dom-helpers/hyphenateStyle.js +9 -0
- package/dom-helpers/index.js +140 -0
- package/dom-helpers/insertAfter.js +7 -0
- package/dom-helpers/isDocument.js +7 -0
- package/dom-helpers/isInput.js +8 -0
- package/dom-helpers/isTransform.js +8 -0
- package/dom-helpers/isVisible.js +7 -0
- package/dom-helpers/isWindow.js +8 -0
- package/dom-helpers/listen.js +11 -0
- package/dom-helpers/matches.js +12 -0
- package/dom-helpers/nextUntil.js +8 -0
- package/dom-helpers/offset.js +19 -0
- package/dom-helpers/offsetParent.js +14 -0
- package/dom-helpers/ownerDocument.js +7 -0
- package/dom-helpers/ownerWindow.js +9 -0
- package/dom-helpers/parents.js +8 -0
- package/dom-helpers/position.js +29 -0
- package/dom-helpers/prepend.js +7 -0
- package/dom-helpers/querySelectorAll.js +8 -0
- package/dom-helpers/reflow.js +26 -0
- package/dom-helpers/remove.js +7 -0
- package/dom-helpers/removeClass.js +19 -0
- package/dom-helpers/removeEventListener.js +8 -0
- package/dom-helpers/scrollLeft.js +6 -0
- package/dom-helpers/scrollParent.js +17 -0
- package/dom-helpers/scrollTo.js +27 -0
- package/dom-helpers/scrollTop.js +6 -0
- package/dom-helpers/scrollbarSize.js +13 -0
- package/dom-helpers/siblings.js +11 -0
- package/dom-helpers/text.js +9 -0
- package/dom-helpers/toggleClass.js +10 -0
- package/dom-helpers/transitionEnd.js +34 -0
- package/dom-helpers/triggerEvent.js +10 -0
- package/dom-helpers/types.js +5 -0
- package/dom-helpers/width.js +10 -0
- package/domHelpers.js +94 -0
- package/emitter/index.js +1 -0
- package/emitter/src/index.js +1 -0
- package/emitter.js +1 -0
- package/file/fileToURL.js +11 -11
- package/file/index.js +1 -0
- package/file/saveAs.js +1 -0
- package/file.js +1 -0
- package/filesize/types/constants.d.ts +30 -0
- package/filesize/types/helpers.d.ts +130 -0
- package/idb/index.js +103 -0
- package/idb.js +5 -0
- package/index.js +1 -0
- package/invariant/index.js +1 -0
- package/invariant.js +1 -0
- package/is/index.js +119 -119
- package/is.js +38 -37
- package/js-cookie/index.js +1 -0
- package/js-cookie/src/api.js +1 -0
- package/js-cookie/src/assign.js +1 -0
- package/js-cookie/src/converter.js +1 -0
- package/jsCookie.js +1 -0
- package/lunar/index.js +1 -0
- package/lunar/lib/Holiday.js +1 -0
- package/lunar/lib/HolidayUtil.js +1 -0
- package/lunar/lib/I18n.js +1 -0
- package/lunar/lib/JieQi.js +1 -0
- package/lunar/lib/Lunar.js +1 -0
- package/lunar/lib/LunarMonth.js +1 -0
- package/lunar/lib/LunarTime.js +1 -0
- package/lunar/lib/LunarUtil.js +1 -0
- package/lunar/lib/LunarYear.js +1 -0
- package/lunar/lib/ShouXingUtil.js +1 -0
- package/lunar/lib/Solar.js +1 -0
- package/lunar/lib/SolarHalfYear.js +1 -0
- package/lunar/lib/SolarMonth.js +1 -0
- package/lunar/lib/SolarSeason.js +1 -0
- package/lunar/lib/SolarUtil.js +1 -0
- package/lunar/lib/SolarWeek.js +1 -0
- package/lunar/lib/SolarYear.js +1 -0
- package/lunar/lib/index.js +1 -0
- package/lunar.js +1 -0
- package/math/index.js +1 -0
- package/math.js +1 -0
- package/md5/index.js +1 -0
- package/md5.js +1 -0
- package/mock/MockWebSocket.js +1 -1
- package/mock/MockXMLHttpRequest.js +1 -1
- package/mock/index.js +1 -0
- package/mock.js +1 -0
- package/normalize-wheel/ExecutionEnvironment.js +4 -2
- package/normalize-wheel/UserAgent_DEPRECATED.js +1 -0
- package/normalize-wheel/index.js +1 -0
- package/normalize-wheel/isEventSupported.js +10 -13
- package/normalizeWheel.js +1 -0
- package/number-to-chinese/index.js +1 -0
- package/numberToChinese.js +1 -0
- package/nzh/cn.js +1 -0
- package/nzh/hk.js +1 -0
- package/nzh/index.js +1 -0
- package/nzh/nzh.js +1 -0
- package/nzh/src/autoGet.js +1 -0
- package/nzh/src/index.js +1 -0
- package/nzh/src/langs/cn_b.js +1 -0
- package/nzh/src/langs/cn_s.js +1 -0
- package/nzh/src/langs/hk_b.js +1 -0
- package/nzh/src/langs/hk_s.js +1 -0
- package/nzh/src/utils.js +1 -0
- package/nzh.js +1 -0
- package/object-keys-sort/index.js +1 -0
- package/objectKeysSort.js +1 -0
- package/package.json +1 -1
- package/pinyin/index.js +1 -0
- package/pinyin/simplified.js +1 -0
- package/pinyin/src/core.js +44 -42
- package/pinyin/src/simplified.js +6 -5
- package/pinyin/src/simplified_dict.js +3 -3
- package/pinyin/src/traditional.js +4 -3
- package/pinyin/src/traditional_dict.js +3 -3
- package/pinyin/traditional.js +1 -0
- package/pinyin.js +1 -0
- package/query-string/base.d.ts +102 -12
- package/query-string/base.js +76 -67
- package/query-string/index.js +1 -0
- package/query-string/splitOnFirst.js +1 -0
- package/queryString.js +1 -0
- package/random/address.js +1 -0
- package/random/constellation.js +1 -0
- package/random/image.js +1 -0
- package/random/index.js +6 -5
- package/random/licensePlate.js +1 -0
- package/random/name.js +1 -0
- package/random/number.js +1 -0
- package/random/text.js +1 -0
- package/random/time.js +1 -0
- package/random/web.js +1 -0
- package/random.js +1 -0
- package/screenfull/index.js +47 -117
- package/screenfull.js +1 -0
- package/sleep/index.js +7 -0
- package/sleep.js +5 -0
- package/snapdom/index.js +1 -0
- package/snapdom/src/api/preCache.js +70 -40
- package/snapdom/src/api/snapdom.js +189 -107
- package/snapdom/src/core/cache.js +28 -5
- package/snapdom/src/core/capture.js +358 -70
- package/snapdom/src/core/clone.js +330 -96
- package/snapdom/src/core/context.js +59 -0
- package/snapdom/src/core/plugins.js +69 -0
- package/snapdom/src/core/prepare.js +125 -126
- package/snapdom/src/exporters/download.js +16 -0
- package/snapdom/src/exporters/toBlob.js +21 -0
- package/snapdom/src/exporters/toCanvas.js +106 -0
- package/snapdom/src/exporters/toImg.js +36 -0
- package/snapdom/src/modules/CSSVar.js +87 -0
- package/snapdom/src/modules/background.js +67 -28
- package/snapdom/src/modules/changeCSS.js +61 -0
- package/snapdom/src/modules/counter.js +179 -0
- package/snapdom/src/modules/fonts.js +640 -179
- package/snapdom/src/modules/iconFonts.js +98 -13
- package/snapdom/src/modules/images.js +48 -13
- package/snapdom/src/modules/lineClamp.js +42 -0
- package/snapdom/src/modules/pseudo.js +205 -64
- package/snapdom/src/modules/rasterize.js +10 -0
- package/snapdom/src/modules/snapFetch.js +263 -0
- package/snapdom/src/modules/styles.js +144 -23
- package/snapdom/src/modules/svgDefs.js +86 -38
- package/snapdom/src/utils/browser.js +13 -0
- package/snapdom/src/utils/css.js +191 -0
- package/snapdom/src/utils/helpers.js +25 -234
- package/snapdom/src/utils/image.js +39 -0
- package/snapdom/types/snapdom.d.ts +353 -92
- package/snapdom.js +1 -0
- package/tinycolor/index.js +2 -1
- package/tinycolor/src/conversion.js +2 -1
- package/tinycolor/src/css-color-names.js +1 -0
- package/tinycolor/src/format-input.js +2 -1
- package/tinycolor/src/from-ratio.js +2 -1
- package/tinycolor/src/index.js +2 -1
- package/tinycolor/src/random.js +1 -0
- package/tinycolor/src/readability.js +1 -0
- package/tinycolor/src/to-ms-filter.js +1 -0
- package/tinycolor/src/{util.js → utils.js} +1 -0
- package/tinycolor.js +2 -1
- package/tree/index.js +69 -65
- package/tree/search/index.js +50 -57
- package/tree.js +11 -7
- package/tween/index.js +8 -0
- package/tween/src/easing.js +62 -0
- package/tween/src/tween.js +46 -0
- package/tween.js +8 -0
- package/types/date/convertToDuration.d.ts +2 -0
- package/types/date/index.d.ts +2 -2
- package/types/dom-helpers/activeElement.d.ts +6 -0
- package/types/dom-helpers/addClass.d.ts +7 -0
- package/types/dom-helpers/addEventListener.d.ts +16 -0
- package/types/dom-helpers/animate.d.ts +19 -0
- package/types/dom-helpers/animationFrame.d.ts +2 -0
- package/types/dom-helpers/attribute.d.ts +8 -0
- package/types/dom-helpers/camelize.d.ts +1 -0
- package/types/dom-helpers/camelizeStyle.d.ts +2 -0
- package/types/dom-helpers/canUseDOM.d.ts +2 -0
- package/types/dom-helpers/childElements.d.ts +6 -0
- package/types/dom-helpers/childNodes.d.ts +6 -0
- package/types/dom-helpers/clear.d.ts +6 -0
- package/types/dom-helpers/closest.d.ts +8 -0
- package/types/dom-helpers/collectElements.d.ts +3 -0
- package/types/dom-helpers/collectSiblings.d.ts +1 -0
- package/types/dom-helpers/contains.d.ts +7 -0
- package/types/dom-helpers/css.d.ts +3 -0
- package/types/dom-helpers/filterEventHandler.d.ts +2 -0
- package/types/dom-helpers/getComputedStyle.d.ts +7 -0
- package/types/dom-helpers/getScrollAccessor.d.ts +1 -0
- package/types/dom-helpers/hasClass.d.ts +7 -0
- package/types/dom-helpers/height.d.ts +7 -0
- package/types/dom-helpers/hyphenate.d.ts +1 -0
- package/types/dom-helpers/hyphenateStyle.d.ts +7 -0
- package/types/dom-helpers/index.d.ts +93 -0
- package/types/dom-helpers/insertAfter.d.ts +7 -0
- package/types/dom-helpers/isDocument.d.ts +1 -0
- package/types/dom-helpers/isInput.d.ts +6 -0
- package/types/dom-helpers/isTransform.d.ts +2 -0
- package/types/dom-helpers/isVisible.d.ts +6 -0
- package/types/dom-helpers/isWindow.d.ts +1 -0
- package/types/dom-helpers/listen.d.ts +3 -0
- package/types/dom-helpers/matches.d.ts +7 -0
- package/types/dom-helpers/nextUntil.d.ts +7 -0
- package/types/dom-helpers/offset.d.ts +11 -0
- package/types/dom-helpers/offsetParent.d.ts +1 -0
- package/types/dom-helpers/ownerDocument.d.ts +6 -0
- package/types/dom-helpers/ownerWindow.d.ts +6 -0
- package/types/dom-helpers/parents.d.ts +6 -0
- package/types/dom-helpers/position.d.ts +23 -0
- package/types/dom-helpers/prepend.d.ts +7 -0
- package/types/dom-helpers/querySelectorAll.d.ts +7 -0
- package/types/dom-helpers/reflow.d.ts +2 -0
- package/types/dom-helpers/remove.d.ts +6 -0
- package/types/dom-helpers/removeClass.d.ts +7 -0
- package/types/dom-helpers/removeEventListener.d.ts +11 -0
- package/types/dom-helpers/scrollLeft.d.ts +8 -0
- package/types/dom-helpers/scrollParent.d.ts +7 -0
- package/types/dom-helpers/scrollTo.d.ts +1 -0
- package/types/dom-helpers/scrollTop.d.ts +8 -0
- package/types/dom-helpers/scrollbarSize.d.ts +1 -0
- package/types/dom-helpers/siblings.d.ts +6 -0
- package/types/dom-helpers/text.d.ts +8 -0
- package/types/dom-helpers/toggleClass.d.ts +7 -0
- package/types/dom-helpers/transitionEnd.d.ts +2 -0
- package/types/dom-helpers/triggerEvent.d.ts +9 -0
- package/types/dom-helpers/types.d.ts +6 -0
- package/types/dom-helpers/width.d.ts +7 -0
- package/types/filesize/benchmarks/basic-performance.d.ts +1 -0
- package/types/filesize/benchmarks/index.d.ts +2 -0
- package/types/filesize/benchmarks/options-benchmark.d.ts +1 -0
- package/types/filesize/benchmarks/partial-benchmark.d.ts +1 -0
- package/types/filesize/benchmarks/stress-test.d.ts +1 -0
- package/types/filesize/src/constants.d.ts +5 -0
- package/types/filesize/src/helpers.d.ts +55 -0
- package/types/idb/index.d.ts +21 -0
- package/types/index.d.ts +1 -1
- package/types/is/index.d.ts +37 -37
- package/types/lodash/_DataView.d.ts +2 -0
- package/types/lodash/_Hash.d.ts +29 -0
- package/types/lodash/_LazyWrapper.d.ts +26 -0
- package/types/lodash/_ListCache.d.ts +29 -0
- package/types/lodash/_LodashWrapper.d.ts +24 -0
- package/types/lodash/_Map.d.ts +2 -0
- package/types/lodash/_MapCache.d.ts +29 -0
- package/types/lodash/_Promise.d.ts +2 -0
- package/types/lodash/_Set.d.ts +2 -0
- package/types/lodash/_SetCache.d.ts +28 -0
- package/types/lodash/_Stack.d.ts +32 -0
- package/types/lodash/_Symbol.d.ts +3 -0
- package/types/lodash/_Uint8Array.d.ts +3 -0
- package/types/lodash/_WeakMap.d.ts +2 -0
- package/types/lodash/_addMapEntry.d.ts +10 -0
- package/types/lodash/_addSetEntry.d.ts +10 -0
- package/types/lodash/_apply.d.ts +12 -0
- package/types/lodash/_arrayAggregator.d.ts +12 -0
- package/types/lodash/_arrayEach.d.ts +11 -0
- package/types/lodash/_arrayEachRight.d.ts +11 -0
- package/types/lodash/_arrayEvery.d.ts +12 -0
- package/types/lodash/_arrayFilter.d.ts +11 -0
- package/types/lodash/_arrayIncludes.d.ts +11 -0
- package/types/lodash/_arrayIncludesWith.d.ts +11 -0
- package/types/lodash/_arrayLikeKeys.d.ts +10 -0
- package/types/lodash/_arrayMap.d.ts +11 -0
- package/types/lodash/_arrayPush.d.ts +10 -0
- package/types/lodash/_arrayReduce.d.ts +14 -0
- package/types/lodash/_arrayReduceRight.d.ts +14 -0
- package/types/lodash/_arraySample.d.ts +9 -0
- package/types/lodash/_arraySampleSize.d.ts +10 -0
- package/types/lodash/_arrayShuffle.d.ts +9 -0
- package/types/lodash/_arraySome.d.ts +12 -0
- package/types/lodash/_asciiSize.d.ts +9 -0
- package/types/lodash/_asciiToArray.d.ts +9 -0
- package/types/lodash/_asciiWords.d.ts +9 -0
- package/types/lodash/_assignMergeValue.d.ts +11 -0
- package/types/lodash/_assignValue.d.ts +12 -0
- package/types/lodash/_assocIndexOf.d.ts +10 -0
- package/types/lodash/_baseAggregator.d.ts +13 -0
- package/types/lodash/_baseAssign.d.ts +11 -0
- package/types/lodash/_baseAssignIn.d.ts +11 -0
- package/types/lodash/_baseAssignValue.d.ts +11 -0
- package/types/lodash/_baseAt.d.ts +10 -0
- package/types/lodash/_baseClamp.d.ts +11 -0
- package/types/lodash/_baseClone.d.ts +18 -0
- package/types/lodash/_baseConforms.d.ts +9 -0
- package/types/lodash/_baseConformsTo.d.ts +10 -0
- package/types/lodash/_baseCreate.d.ts +2 -0
- package/types/lodash/_baseDelay.d.ts +12 -0
- package/types/lodash/_baseDifference.d.ts +13 -0
- package/types/lodash/_baseEach.d.ts +10 -0
- package/types/lodash/_baseEachRight.d.ts +10 -0
- package/types/lodash/_baseEvery.d.ts +11 -0
- package/types/lodash/_baseExtremum.d.ts +12 -0
- package/types/lodash/_baseFill.d.ts +12 -0
- package/types/lodash/_baseFilter.d.ts +10 -0
- package/types/lodash/_baseFindIndex.d.ts +13 -0
- package/types/lodash/_baseFindKey.d.ts +13 -0
- package/types/lodash/_baseFlatten.d.ts +13 -0
- package/types/lodash/_baseFor.d.ts +13 -0
- package/types/lodash/_baseForOwn.d.ts +10 -0
- package/types/lodash/_baseForOwnRight.d.ts +10 -0
- package/types/lodash/_baseForRight.d.ts +12 -0
- package/types/lodash/_baseFunctions.d.ts +11 -0
- package/types/lodash/_baseGet.d.ts +10 -0
- package/types/lodash/_baseGetAllKeys.d.ts +13 -0
- package/types/lodash/_baseGetTag.d.ts +9 -0
- package/types/lodash/_baseGt.d.ts +11 -0
- package/types/lodash/_baseHas.d.ts +10 -0
- package/types/lodash/_baseHasIn.d.ts +10 -0
- package/types/lodash/_baseInRange.d.ts +11 -0
- package/types/lodash/_baseIndexOf.d.ts +11 -0
- package/types/lodash/_baseIndexOfWith.d.ts +12 -0
- package/types/lodash/_baseIntersection.d.ts +12 -0
- package/types/lodash/_baseInverter.d.ts +13 -0
- package/types/lodash/_baseInvoke.d.ts +12 -0
- package/types/lodash/_baseIsArguments.d.ts +9 -0
- package/types/lodash/_baseIsArrayBuffer.d.ts +9 -0
- package/types/lodash/_baseIsDate.d.ts +9 -0
- package/types/lodash/_baseIsEqual.d.ts +16 -0
- package/types/lodash/_baseIsEqualDeep.d.ts +16 -0
- package/types/lodash/_baseIsMap.d.ts +9 -0
- package/types/lodash/_baseIsMatch.d.ts +12 -0
- package/types/lodash/_baseIsNaN.d.ts +9 -0
- package/types/lodash/_baseIsNative.d.ts +10 -0
- package/types/lodash/_baseIsRegExp.d.ts +9 -0
- package/types/lodash/_baseIsSet.d.ts +9 -0
- package/types/lodash/_baseIsTypedArray.d.ts +9 -0
- package/types/lodash/_baseIteratee.d.ts +9 -0
- package/types/lodash/_baseKeys.d.ts +9 -0
- package/types/lodash/_baseKeysIn.d.ts +9 -0
- package/types/lodash/_baseLodash.d.ts +7 -0
- package/types/lodash/_baseLt.d.ts +11 -0
- package/types/lodash/_baseMap.d.ts +10 -0
- package/types/lodash/_baseMatches.d.ts +9 -0
- package/types/lodash/_baseMatchesProperty.d.ts +10 -0
- package/types/lodash/_baseMean.d.ts +11 -0
- package/types/lodash/_baseMerge.d.ts +13 -0
- package/types/lodash/_baseMergeDeep.d.ts +17 -0
- package/types/lodash/_baseNth.d.ts +10 -0
- package/types/lodash/_baseOrderBy.d.ts +11 -0
- package/types/lodash/_basePick.d.ts +11 -0
- package/types/lodash/_basePickBy.d.ts +11 -0
- package/types/lodash/_baseProperty.d.ts +9 -0
- package/types/lodash/_basePropertyDeep.d.ts +9 -0
- package/types/lodash/_basePropertyOf.d.ts +9 -0
- package/types/lodash/_basePullAll.d.ts +13 -0
- package/types/lodash/_basePullAt.d.ts +11 -0
- package/types/lodash/_baseRandom.d.ts +11 -0
- package/types/lodash/_baseRange.d.ts +13 -0
- package/types/lodash/_baseReduce.d.ts +15 -0
- package/types/lodash/_baseRepeat.d.ts +10 -0
- package/types/lodash/_baseRest.d.ts +10 -0
- package/types/lodash/_baseSample.d.ts +9 -0
- package/types/lodash/_baseSampleSize.d.ts +10 -0
- package/types/lodash/_baseSet.d.ts +12 -0
- package/types/lodash/_baseSetData.d.ts +2 -0
- package/types/lodash/_baseSetToString.d.ts +2 -0
- package/types/lodash/_baseShuffle.d.ts +9 -0
- package/types/lodash/_baseSlice.d.ts +11 -0
- package/types/lodash/_baseSome.d.ts +11 -0
- package/types/lodash/_baseSortBy.d.ts +12 -0
- package/types/lodash/_baseSortedIndex.d.ts +14 -0
- package/types/lodash/_baseSortedIndexBy.d.ts +15 -0
- package/types/lodash/_baseSortedUniq.d.ts +11 -0
- package/types/lodash/_baseSum.d.ts +11 -0
- package/types/lodash/_baseTimes.d.ts +11 -0
- package/types/lodash/_baseToNumber.d.ts +10 -0
- package/types/lodash/_baseToPairs.d.ts +11 -0
- package/types/lodash/_baseToString.d.ts +10 -0
- package/types/lodash/_baseTrim.d.ts +9 -0
- package/types/lodash/_baseUnary.d.ts +9 -0
- package/types/lodash/_baseUniq.d.ts +11 -0
- package/types/lodash/_baseUnset.d.ts +10 -0
- package/types/lodash/_baseUpdate.d.ts +12 -0
- package/types/lodash/_baseValues.d.ts +12 -0
- package/types/lodash/_baseWhile.d.ts +13 -0
- package/types/lodash/_baseWrapperValue.d.ts +12 -0
- package/types/lodash/_baseXor.d.ts +12 -0
- package/types/lodash/_baseZipObject.d.ts +11 -0
- package/types/lodash/_cacheHas.d.ts +10 -0
- package/types/lodash/_castArrayLikeObject.d.ts +9 -0
- package/types/lodash/_castFunction.d.ts +9 -0
- package/types/lodash/_castPath.d.ts +10 -0
- package/types/lodash/_castRest.d.ts +11 -0
- package/types/lodash/_castSlice.d.ts +11 -0
- package/types/lodash/_charsEndIndex.d.ts +11 -0
- package/types/lodash/_charsStartIndex.d.ts +11 -0
- package/types/lodash/_cloneArrayBuffer.d.ts +9 -0
- package/types/lodash/_cloneBuffer.d.ts +10 -0
- package/types/lodash/_cloneDataView.d.ts +10 -0
- package/types/lodash/_cloneMap.d.ts +11 -0
- package/types/lodash/_cloneRegExp.d.ts +9 -0
- package/types/lodash/_cloneSet.d.ts +11 -0
- package/types/lodash/_cloneSymbol.d.ts +9 -0
- package/types/lodash/_cloneTypedArray.d.ts +10 -0
- package/types/lodash/_compareAscending.d.ts +10 -0
- package/types/lodash/_compareMultiple.d.ts +16 -0
- package/types/lodash/_composeArgs.d.ts +13 -0
- package/types/lodash/_composeArgsRight.d.ts +13 -0
- package/types/lodash/_copyArray.d.ts +10 -0
- package/types/lodash/_copyObject.d.ts +12 -0
- package/types/lodash/_copySymbols.d.ts +10 -0
- package/types/lodash/_copySymbolsIn.d.ts +10 -0
- package/types/lodash/_coreJsData.d.ts +3 -0
- package/types/lodash/_countHolders.d.ts +10 -0
- package/types/lodash/_createAggregator.d.ts +10 -0
- package/types/lodash/_createAssigner.d.ts +9 -0
- package/types/lodash/_createBaseEach.d.ts +10 -0
- package/types/lodash/_createBaseFor.d.ts +9 -0
- package/types/lodash/_createBind.d.ts +12 -0
- package/types/lodash/_createCaseFirst.d.ts +9 -0
- package/types/lodash/_createCompounder.d.ts +9 -0
- package/types/lodash/_createCtor.d.ts +10 -0
- package/types/lodash/_createCurry.d.ts +11 -0
- package/types/lodash/_createFind.d.ts +9 -0
- package/types/lodash/_createFlow.d.ts +9 -0
- package/types/lodash/_createHybrid.d.ts +21 -0
- package/types/lodash/_createInverter.d.ts +10 -0
- package/types/lodash/_createMathOperation.d.ts +10 -0
- package/types/lodash/_createOver.d.ts +9 -0
- package/types/lodash/_createPadding.d.ts +11 -0
- package/types/lodash/_createPartial.d.ts +14 -0
- package/types/lodash/_createRange.d.ts +9 -0
- package/types/lodash/_createRecurry.d.ts +19 -0
- package/types/lodash/_createRelationalOperation.d.ts +9 -0
- package/types/lodash/_createRound.d.ts +9 -0
- package/types/lodash/_createSet.d.ts +2 -0
- package/types/lodash/_createToPairs.d.ts +9 -0
- package/types/lodash/_createWrap.d.ts +27 -0
- package/types/lodash/_customDefaultsAssignIn.d.ts +14 -0
- package/types/lodash/_customDefaultsMerge.d.ts +16 -0
- package/types/lodash/_customOmitClone.d.ts +11 -0
- package/types/lodash/_deburrLetter.d.ts +10 -0
- package/types/lodash/_defineProperty.d.ts +2 -0
- package/types/lodash/_equalArrays.d.ts +15 -0
- package/types/lodash/_equalByTag.d.ts +19 -0
- package/types/lodash/_equalObjects.d.ts +15 -0
- package/types/lodash/_escapeHtmlChar.d.ts +9 -0
- package/types/lodash/_escapeStringChar.d.ts +9 -0
- package/types/lodash/_flatRest.d.ts +9 -0
- package/types/lodash/_freeGlobal.d.ts +3 -0
- package/types/lodash/_getAllKeys.d.ts +9 -0
- package/types/lodash/_getAllKeysIn.d.ts +10 -0
- package/types/lodash/_getData.d.ts +2 -0
- package/types/lodash/_getFuncName.d.ts +9 -0
- package/types/lodash/_getHolder.d.ts +9 -0
- package/types/lodash/_getMapData.d.ts +10 -0
- package/types/lodash/_getMatchData.d.ts +9 -0
- package/types/lodash/_getNative.d.ts +10 -0
- package/types/lodash/_getPrototype.d.ts +3 -0
- package/types/lodash/_getRawTag.d.ts +9 -0
- package/types/lodash/_getSymbols.d.ts +2 -0
- package/types/lodash/_getSymbolsIn.d.ts +2 -0
- package/types/lodash/_getTag.d.ts +10 -0
- package/types/lodash/_getValue.d.ts +10 -0
- package/types/lodash/_getView.d.ts +12 -0
- package/types/lodash/_getWrapDetails.d.ts +9 -0
- package/types/lodash/_hasPath.d.ts +11 -0
- package/types/lodash/_hasUnicode.d.ts +9 -0
- package/types/lodash/_hasUnicodeWord.d.ts +9 -0
- package/types/lodash/_hashClear.d.ts +13 -0
- package/types/lodash/_hashDelete.d.ts +12 -0
- package/types/lodash/_hashGet.d.ts +11 -0
- package/types/lodash/_hashHas.d.ts +11 -0
- package/types/lodash/_hashSet.d.ts +12 -0
- package/types/lodash/_initCloneArray.d.ts +9 -0
- package/types/lodash/_initCloneByTag.d.ts +14 -0
- package/types/lodash/_initCloneObject.d.ts +9 -0
- package/types/lodash/_insertWrapDetails.d.ts +10 -0
- package/types/lodash/_isFlattenable.d.ts +9 -0
- package/types/lodash/_isIndex.d.ts +10 -0
- package/types/lodash/_isIterateeCall.d.ts +12 -0
- package/types/lodash/_isKey.d.ts +10 -0
- package/types/lodash/_isKeyable.d.ts +9 -0
- package/types/lodash/_isLaziable.d.ts +10 -0
- package/types/lodash/_isMaskable.d.ts +10 -0
- package/types/lodash/_isMasked.d.ts +9 -0
- package/types/lodash/_isPrototype.d.ts +9 -0
- package/types/lodash/_isStrictComparable.d.ts +10 -0
- package/types/lodash/_iteratorToArray.d.ts +9 -0
- package/types/lodash/_lazyClone.d.ts +10 -0
- package/types/lodash/_lazyReverse.d.ts +10 -0
- package/types/lodash/_lazyValue.d.ts +10 -0
- package/types/lodash/_listCacheClear.d.ts +13 -0
- package/types/lodash/_listCacheDelete.d.ts +11 -0
- package/types/lodash/_listCacheGet.d.ts +11 -0
- package/types/lodash/_listCacheHas.d.ts +11 -0
- package/types/lodash/_listCacheSet.d.ts +12 -0
- package/types/lodash/_mapCacheClear.d.ts +18 -0
- package/types/lodash/_mapCacheDelete.d.ts +11 -0
- package/types/lodash/_mapCacheGet.d.ts +11 -0
- package/types/lodash/_mapCacheHas.d.ts +11 -0
- package/types/lodash/_mapCacheSet.d.ts +12 -0
- package/types/lodash/_mapToArray.d.ts +9 -0
- package/types/lodash/_matchesStrictComparable.d.ts +11 -0
- package/types/lodash/_memoizeCapped.d.ts +10 -0
- package/types/lodash/_mergeData.d.ts +18 -0
- package/types/lodash/_metaMap.d.ts +3 -0
- package/types/lodash/_nativeCreate.d.ts +2 -0
- package/types/lodash/_nativeKeys.d.ts +2 -0
- package/types/lodash/_nativeKeysIn.d.ts +11 -0
- package/types/lodash/_nodeUtil.d.ts +3 -0
- package/types/lodash/_objectToString.d.ts +9 -0
- package/types/lodash/_overArg.d.ts +10 -0
- package/types/lodash/_overRest.d.ts +11 -0
- package/types/lodash/_parent.d.ts +10 -0
- package/types/lodash/_reEscape.d.ts +3 -0
- package/types/lodash/_reEvaluate.d.ts +3 -0
- package/types/lodash/_reInterpolate.d.ts +3 -0
- package/types/lodash/_realNames.d.ts +3 -0
- package/types/lodash/_reorder.d.ts +12 -0
- package/types/lodash/_replaceHolders.d.ts +11 -0
- package/types/lodash/_root.d.ts +3 -0
- package/types/lodash/_safeGet.d.ts +10 -0
- package/types/lodash/_setCacheAdd.d.ts +12 -0
- package/types/lodash/_setCacheHas.d.ts +11 -0
- package/types/lodash/_setData.d.ts +16 -0
- package/types/lodash/_setToArray.d.ts +9 -0
- package/types/lodash/_setToPairs.d.ts +9 -0
- package/types/lodash/_setToString.d.ts +10 -0
- package/types/lodash/_setWrapToString.d.ts +12 -0
- package/types/lodash/_shortOut.d.ts +11 -0
- package/types/lodash/_shuffleSelf.d.ts +10 -0
- package/types/lodash/_stackClear.d.ts +14 -0
- package/types/lodash/_stackDelete.d.ts +24 -0
- package/types/lodash/_stackGet.d.ts +11 -0
- package/types/lodash/_stackHas.d.ts +11 -0
- package/types/lodash/_stackSet.d.ts +28 -0
- package/types/lodash/_strictIndexOf.d.ts +12 -0
- package/types/lodash/_strictLastIndexOf.d.ts +12 -0
- package/types/lodash/_stringSize.d.ts +9 -0
- package/types/lodash/_stringToArray.d.ts +9 -0
- package/types/lodash/_stringToPath.d.ts +9 -0
- package/types/lodash/_toKey.d.ts +9 -0
- package/types/lodash/_toSource.d.ts +9 -0
- package/types/lodash/_trimmedEndIndex.d.ts +10 -0
- package/types/lodash/_unescapeHtmlChar.d.ts +9 -0
- package/types/lodash/_unicodeSize.d.ts +9 -0
- package/types/lodash/_unicodeToArray.d.ts +9 -0
- package/types/lodash/_unicodeWords.d.ts +9 -0
- package/types/lodash/_updateWrapDetails.d.ts +10 -0
- package/types/lodash/_wrapperClone.d.ts +9 -0
- package/types/lodash/add.d.ts +17 -0
- package/types/lodash/after.d.ts +26 -0
- package/types/lodash/array.d.ts +66 -0
- package/types/lodash/array.default.d.ts +133 -0
- package/types/lodash/ary.d.ts +19 -0
- package/types/lodash/assign.d.ts +34 -0
- package/types/lodash/assignIn.d.ts +33 -0
- package/types/lodash/assignInWith.d.ts +31 -0
- package/types/lodash/assignWith.d.ts +30 -0
- package/types/lodash/at.d.ts +19 -0
- package/types/lodash/attempt.d.ts +24 -0
- package/types/lodash/before.d.ts +19 -0
- package/types/lodash/bind.d.ts +37 -0
- package/types/lodash/bindAll.d.ts +28 -0
- package/types/lodash/bindKey.d.ts +47 -0
- package/types/lodash/camelCase.d.ts +22 -0
- package/types/lodash/capitalize.d.ts +17 -0
- package/types/lodash/castArray.d.ts +35 -0
- package/types/lodash/ceil.d.ts +23 -0
- package/types/lodash/chain.d.ts +31 -0
- package/types/lodash/chunk.d.ts +23 -0
- package/types/lodash/clamp.d.ts +21 -0
- package/types/lodash/clone.d.ts +28 -0
- package/types/lodash/cloneDeep.d.ts +20 -0
- package/types/lodash/cloneDeepWith.d.ts +30 -0
- package/types/lodash/cloneWith.d.ts +33 -0
- package/types/lodash/collection.d.ts +29 -0
- package/types/lodash/collection.default.d.ts +59 -0
- package/types/lodash/commit.d.ts +28 -0
- package/types/lodash/compact.d.ts +17 -0
- package/types/lodash/concat.d.ts +24 -0
- package/types/lodash/cond.d.ts +31 -0
- package/types/lodash/conforms.d.ts +26 -0
- package/types/lodash/conformsTo.d.ts +26 -0
- package/types/lodash/constant.d.ts +21 -0
- package/types/lodash/countBy.d.ts +24 -0
- package/types/lodash/create.d.ts +36 -0
- package/types/lodash/curry.d.ts +46 -0
- package/types/lodash/curryRight.d.ts +43 -0
- package/types/lodash/date.d.ts +2 -0
- package/types/lodash/date.default.d.ts +5 -0
- package/types/lodash/debounce.d.ts +60 -0
- package/types/lodash/deburr.d.ts +20 -0
- package/types/lodash/defaultTo.d.ts +22 -0
- package/types/lodash/defaults.d.ts +23 -0
- package/types/lodash/defaultsDeep.d.ts +21 -0
- package/types/lodash/defer.d.ts +20 -0
- package/types/lodash/delay.d.ts +21 -0
- package/types/lodash/difference.d.ts +23 -0
- package/types/lodash/differenceBy.d.ts +28 -0
- package/types/lodash/differenceWith.d.ts +25 -0
- package/types/lodash/divide.d.ts +17 -0
- package/types/lodash/drop.d.ts +27 -0
- package/types/lodash/dropRight.d.ts +27 -0
- package/types/lodash/dropRightWhile.d.ts +37 -0
- package/types/lodash/dropWhile.d.ts +37 -0
- package/types/lodash/each.d.ts +1 -0
- package/types/lodash/eachRight.d.ts +1 -0
- package/types/lodash/endsWith.d.ts +25 -0
- package/types/lodash/entries.d.ts +1 -0
- package/types/lodash/entriesIn.d.ts +1 -0
- package/types/lodash/eq.d.ts +34 -0
- package/types/lodash/escape.d.ts +30 -0
- package/types/lodash/escapeRegExp.d.ts +17 -0
- package/types/lodash/every.d.ts +43 -0
- package/types/lodash/extend.d.ts +1 -0
- package/types/lodash/extendWith.d.ts +1 -0
- package/types/lodash/fill.d.ts +31 -0
- package/types/lodash/filter.d.ts +43 -0
- package/types/lodash/find.d.ts +38 -0
- package/types/lodash/findIndex.d.ts +37 -0
- package/types/lodash/findKey.d.ts +37 -0
- package/types/lodash/findLast.d.ts +21 -0
- package/types/lodash/findLastIndex.d.ts +37 -0
- package/types/lodash/findLastKey.d.ts +37 -0
- package/types/lodash/first.d.ts +1 -0
- package/types/lodash/flatMap.d.ts +23 -0
- package/types/lodash/flatMapDeep.d.ts +22 -0
- package/types/lodash/flatMapDepth.d.ts +23 -0
- package/types/lodash/flatten.d.ts +16 -0
- package/types/lodash/flattenDeep.d.ts +16 -0
- package/types/lodash/flattenDepth.d.ts +22 -0
- package/types/lodash/flip.d.ts +20 -0
- package/types/lodash/floor.d.ts +23 -0
- package/types/lodash/flow.d.ts +24 -0
- package/types/lodash/flowRight.d.ts +23 -0
- package/types/lodash/forEach.d.ts +32 -0
- package/types/lodash/forEachRight.d.ts +22 -0
- package/types/lodash/forIn.d.ts +30 -0
- package/types/lodash/forInRight.d.ts +28 -0
- package/types/lodash/forOwn.d.ts +30 -0
- package/types/lodash/forOwnRight.d.ts +28 -0
- package/types/lodash/fromPairs.d.ts +17 -0
- package/types/lodash/function.d.ts +24 -0
- package/types/lodash/function.default.d.ts +49 -0
- package/types/lodash/functions.d.ts +25 -0
- package/types/lodash/functionsIn.d.ts +25 -0
- package/types/lodash/get.d.ts +27 -0
- package/types/lodash/groupBy.d.ts +25 -0
- package/types/lodash/gt.d.ts +25 -0
- package/types/lodash/gte.d.ts +25 -0
- package/types/lodash/has.d.ts +29 -0
- package/types/lodash/hasIn.d.ts +28 -0
- package/types/lodash/head.d.ts +20 -0
- package/types/lodash/identity.d.ts +18 -0
- package/types/lodash/inRange.d.ts +40 -0
- package/types/lodash/includes.d.ts +32 -0
- package/types/lodash/index.d.ts +3 -0
- package/types/lodash/indexOf.d.ts +25 -0
- package/types/lodash/initial.d.ts +16 -0
- package/types/lodash/intersection.d.ts +19 -0
- package/types/lodash/intersectionBy.d.ts +25 -0
- package/types/lodash/intersectionWith.d.ts +23 -0
- package/types/lodash/invert.d.ts +20 -0
- package/types/lodash/invertBy.d.ts +28 -0
- package/types/lodash/invoke.d.ts +20 -0
- package/types/lodash/invokeMap.d.ts +25 -0
- package/types/lodash/isArguments.d.ts +2 -0
- package/types/lodash/isArray.d.ts +25 -0
- package/types/lodash/isArrayBuffer.d.ts +19 -0
- package/types/lodash/isArrayLike.d.ts +27 -0
- package/types/lodash/isArrayLikeObject.d.ts +27 -0
- package/types/lodash/isBoolean.d.ts +19 -0
- package/types/lodash/isBuffer.d.ts +19 -0
- package/types/lodash/isDate.d.ts +19 -0
- package/types/lodash/isElement.d.ts +19 -0
- package/types/lodash/isEmpty.d.ts +35 -0
- package/types/lodash/isEqual.d.ts +30 -0
- package/types/lodash/isEqualWith.d.ts +34 -0
- package/types/lodash/isError.d.ts +20 -0
- package/types/lodash/isFinite.d.ts +28 -0
- package/types/lodash/isFunction.d.ts +19 -0
- package/types/lodash/isInteger.d.ts +28 -0
- package/types/lodash/isLength.d.ts +28 -0
- package/types/lodash/isMap.d.ts +19 -0
- package/types/lodash/isMatch.d.ts +30 -0
- package/types/lodash/isMatchWith.d.ts +34 -0
- package/types/lodash/isNaN.d.ts +30 -0
- package/types/lodash/isNative.d.ts +28 -0
- package/types/lodash/isNil.d.ts +22 -0
- package/types/lodash/isNull.d.ts +19 -0
- package/types/lodash/isNumber.d.ts +28 -0
- package/types/lodash/isObject.d.ts +27 -0
- package/types/lodash/isObjectLike.d.ts +26 -0
- package/types/lodash/isPlainObject.d.ts +30 -0
- package/types/lodash/isPromise.d.ts +2 -0
- package/types/lodash/isRegExp.d.ts +19 -0
- package/types/lodash/isSafeInteger.d.ts +29 -0
- package/types/lodash/isSet.d.ts +19 -0
- package/types/lodash/isString.d.ts +19 -0
- package/types/lodash/isSymbol.d.ts +19 -0
- package/types/lodash/isTypedArray.d.ts +19 -0
- package/types/lodash/isUndefined.d.ts +19 -0
- package/types/lodash/isWeakMap.d.ts +19 -0
- package/types/lodash/isWeakSet.d.ts +19 -0
- package/types/lodash/iteratee.d.ts +44 -0
- package/types/lodash/join.d.ts +17 -0
- package/types/lodash/kebabCase.d.ts +23 -0
- package/types/lodash/keyBy.d.ts +30 -0
- package/types/lodash/keys.d.ts +30 -0
- package/types/lodash/keysIn.d.ts +25 -0
- package/types/lodash/lang.d.ts +57 -0
- package/types/lodash/lang.default.d.ts +115 -0
- package/types/lodash/last.d.ts +16 -0
- package/types/lodash/lastIndexOf.d.ts +23 -0
- package/types/lodash/lodash.d.ts +317 -0
- package/types/lodash/lodash.default.d.ts +2 -0
- package/types/lodash/lowerCase.d.ts +22 -0
- package/types/lodash/lowerFirst.d.ts +19 -0
- package/types/lodash/lt.d.ts +25 -0
- package/types/lodash/lte.d.ts +25 -0
- package/types/lodash/map.d.ts +44 -0
- package/types/lodash/mapKeys.d.ts +23 -0
- package/types/lodash/mapValues.d.ts +30 -0
- package/types/lodash/matches.d.ts +37 -0
- package/types/lodash/matchesProperty.d.ts +35 -0
- package/types/lodash/math.d.ts +16 -0
- package/types/lodash/math.default.d.ts +33 -0
- package/types/lodash/max.d.ts +20 -0
- package/types/lodash/maxBy.d.ts +25 -0
- package/types/lodash/mean.d.ts +16 -0
- package/types/lodash/meanBy.d.ts +25 -0
- package/types/lodash/memoize.d.ts +50 -0
- package/types/lodash/merge.d.ts +33 -0
- package/types/lodash/mergeWith.d.ts +33 -0
- package/types/lodash/method.d.ts +26 -0
- package/types/lodash/methodOf.d.ts +25 -0
- package/types/lodash/min.d.ts +20 -0
- package/types/lodash/minBy.d.ts +25 -0
- package/types/lodash/mixin.d.ts +40 -0
- package/types/lodash/multiply.d.ts +17 -0
- package/types/lodash/negate.d.ts +22 -0
- package/types/lodash/next.d.ts +27 -0
- package/types/lodash/noop.d.ts +14 -0
- package/types/lodash/now.d.ts +18 -0
- package/types/lodash/nth.d.ts +23 -0
- package/types/lodash/nthArg.d.ts +22 -0
- package/types/lodash/number.d.ts +4 -0
- package/types/lodash/number.default.d.ts +9 -0
- package/types/lodash/object.d.ts +48 -0
- package/types/lodash/object.default.d.ts +97 -0
- package/types/lodash/omit.d.ts +22 -0
- package/types/lodash/omitBy.d.ts +22 -0
- package/types/lodash/once.d.ts +20 -0
- package/types/lodash/orderBy.d.ts +31 -0
- package/types/lodash/over.d.ts +20 -0
- package/types/lodash/overArgs.d.ts +33 -0
- package/types/lodash/overEvery.d.ts +30 -0
- package/types/lodash/overSome.d.ts +33 -0
- package/types/lodash/pad.d.ts +25 -0
- package/types/lodash/padEnd.d.ts +25 -0
- package/types/lodash/padStart.d.ts +25 -0
- package/types/lodash/parseInt.d.ts +26 -0
- package/types/lodash/partial.d.ts +35 -0
- package/types/lodash/partialRight.d.ts +34 -0
- package/types/lodash/partition.d.ts +38 -0
- package/types/lodash/pick.d.ts +19 -0
- package/types/lodash/pickBy.d.ts +20 -0
- package/types/lodash/plant.d.ts +26 -0
- package/types/lodash/property.d.ts +24 -0
- package/types/lodash/propertyOf.d.ts +23 -0
- package/types/lodash/pull.d.ts +25 -0
- package/types/lodash/pullAll.d.ts +22 -0
- package/types/lodash/pullAllBy.d.ts +25 -0
- package/types/lodash/pullAllWith.d.ts +25 -0
- package/types/lodash/pullAt.d.ts +26 -0
- package/types/lodash/random.d.ts +33 -0
- package/types/lodash/range.d.ts +43 -0
- package/types/lodash/rangeRight.d.ts +38 -0
- package/types/lodash/rearg.d.ts +24 -0
- package/types/lodash/reduce.d.ts +39 -0
- package/types/lodash/reduceRight.d.ts +24 -0
- package/types/lodash/reject.d.ts +36 -0
- package/types/lodash/remove.d.ts +30 -0
- package/types/lodash/repeat.d.ts +24 -0
- package/types/lodash/replace.d.ts +21 -0
- package/types/lodash/rest.d.ts +27 -0
- package/types/lodash/result.d.ts +31 -0
- package/types/lodash/reverse.d.ts +25 -0
- package/types/lodash/round.d.ts +23 -0
- package/types/lodash/sample.d.ts +16 -0
- package/types/lodash/sampleSize.d.ts +22 -0
- package/types/lodash/seq.d.ts +15 -0
- package/types/lodash/seq.default.d.ts +31 -0
- package/types/lodash/set.d.ts +30 -0
- package/types/lodash/setWith.d.ts +26 -0
- package/types/lodash/shuffle.d.ts +17 -0
- package/types/lodash/size.d.ts +23 -0
- package/types/lodash/slice.d.ts +18 -0
- package/types/lodash/snakeCase.d.ts +23 -0
- package/types/lodash/some.d.ts +38 -0
- package/types/lodash/sortBy.d.ts +31 -0
- package/types/lodash/sortedIndex.d.ts +19 -0
- package/types/lodash/sortedIndexBy.d.ts +27 -0
- package/types/lodash/sortedIndexOf.d.ts +18 -0
- package/types/lodash/sortedLastIndex.d.ts +20 -0
- package/types/lodash/sortedLastIndexBy.d.ts +27 -0
- package/types/lodash/sortedLastIndexOf.d.ts +18 -0
- package/types/lodash/sortedUniq.d.ts +17 -0
- package/types/lodash/sortedUniqBy.d.ts +18 -0
- package/types/lodash/split.d.ts +21 -0
- package/types/lodash/spread.d.ts +36 -0
- package/types/lodash/startCase.d.ts +23 -0
- package/types/lodash/startsWith.d.ts +25 -0
- package/types/lodash/string.d.ts +32 -0
- package/types/lodash/string.default.d.ts +65 -0
- package/types/lodash/stubArray.d.ts +20 -0
- package/types/lodash/stubFalse.d.ts +15 -0
- package/types/lodash/stubObject.d.ts +20 -0
- package/types/lodash/stubString.d.ts +15 -0
- package/types/lodash/stubTrue.d.ts +15 -0
- package/types/lodash/subtract.d.ts +17 -0
- package/types/lodash/sum.d.ts +16 -0
- package/types/lodash/sumBy.d.ts +25 -0
- package/types/lodash/tail.d.ts +16 -0
- package/types/lodash/take.d.ts +27 -0
- package/types/lodash/takeRight.d.ts +27 -0
- package/types/lodash/takeRightWhile.d.ts +37 -0
- package/types/lodash/takeWhile.d.ts +37 -0
- package/types/lodash/tap.d.ts +25 -0
- package/types/lodash/template.d.ts +113 -0
- package/types/lodash/templateSettings.d.ts +11 -0
- package/types/lodash/throttle.d.ts +49 -0
- package/types/lodash/thru.d.ts +25 -0
- package/types/lodash/times.d.ts +21 -0
- package/types/lodash/toArray.d.ts +25 -0
- package/types/lodash/toFinite.d.ts +25 -0
- package/types/lodash/toInteger.d.ts +28 -0
- package/types/lodash/toIterator.d.ts +20 -0
- package/types/lodash/toJSON.d.ts +1 -0
- package/types/lodash/toLength.d.ts +29 -0
- package/types/lodash/toLower.d.ts +23 -0
- package/types/lodash/toNumber.d.ts +25 -0
- package/types/lodash/toPairs.d.ts +26 -0
- package/types/lodash/toPairsIn.d.ts +26 -0
- package/types/lodash/toPath.d.ts +19 -0
- package/types/lodash/toPlainObject.d.ts +26 -0
- package/types/lodash/toSafeInteger.d.ts +26 -0
- package/types/lodash/toString.d.ts +23 -0
- package/types/lodash/toUpper.d.ts +23 -0
- package/types/lodash/transform.d.ts +32 -0
- package/types/lodash/trim.d.ts +24 -0
- package/types/lodash/trimEnd.d.ts +21 -0
- package/types/lodash/trimStart.d.ts +21 -0
- package/types/lodash/truncate.d.ts +43 -0
- package/types/lodash/unary.d.ts +17 -0
- package/types/lodash/unescape.d.ts +21 -0
- package/types/lodash/union.d.ts +18 -0
- package/types/lodash/unionBy.d.ts +25 -0
- package/types/lodash/unionWith.d.ts +23 -0
- package/types/lodash/uniq.d.ts +20 -0
- package/types/lodash/uniqBy.d.ts +25 -0
- package/types/lodash/uniqWith.d.ts +22 -0
- package/types/lodash/uniqueId.d.ts +19 -0
- package/types/lodash/unset.d.ts +29 -0
- package/types/lodash/unzip.d.ts +21 -0
- package/types/lodash/unzipWith.d.ts +23 -0
- package/types/lodash/update.d.ts +29 -0
- package/types/lodash/updateWith.d.ts +26 -0
- package/types/lodash/upperCase.d.ts +22 -0
- package/types/lodash/upperFirst.d.ts +19 -0
- package/types/lodash/util.d.ts +33 -0
- package/types/lodash/util.default.d.ts +67 -0
- package/types/lodash/value.d.ts +1 -0
- package/types/lodash/valueOf.d.ts +1 -0
- package/types/lodash/values.d.ts +28 -0
- package/types/lodash/valuesIn.d.ts +26 -0
- package/types/lodash/without.d.ts +22 -0
- package/types/lodash/words.d.ts +21 -0
- package/types/lodash/wrap.d.ts +24 -0
- package/types/lodash/wrapperAt.d.ts +18 -0
- package/types/lodash/wrapperChain.d.ts +29 -0
- package/types/lodash/wrapperLodash.d.ts +239 -0
- package/types/lodash/wrapperReverse.d.ts +22 -0
- package/types/lodash/wrapperValue.d.ts +16 -0
- package/types/lodash/xor.d.ts +20 -0
- package/types/lodash/xorBy.d.ts +25 -0
- package/types/lodash/xorWith.d.ts +23 -0
- package/types/lodash/zip.d.ts +18 -0
- package/types/lodash/zipObject.d.ts +18 -0
- package/types/lodash/zipObjectDeep.d.ts +17 -0
- package/types/lodash/zipWith.d.ts +22 -0
- package/types/normalize-wheel/index.d.ts +1 -1
- package/types/random/index.d.ts +4 -4
- package/types/screenfull/index.d.ts +1 -7
- package/types/sleep/index.d.ts +2 -0
- package/types/snapdom/src/api/preCache.d.ts +26 -3
- package/types/snapdom/src/api/snapdom.d.ts +89 -20
- package/types/snapdom/src/core/cache.d.ts +27 -12
- package/types/snapdom/src/core/capture.d.ts +4 -2
- package/types/snapdom/src/core/clone.d.ts +1 -10
- package/types/snapdom/src/core/context.d.ts +67 -0
- package/types/snapdom/src/core/exporters.d.ts +33 -0
- package/types/snapdom/src/core/plugins.d.ts +59 -0
- package/types/snapdom/src/core/prepare.d.ts +1 -2
- package/types/snapdom/src/exporters/download.d.ts +16 -0
- package/types/snapdom/src/exporters/toBlob.d.ts +14 -0
- package/types/snapdom/src/exporters/toCanvas.d.ts +14 -0
- package/types/snapdom/src/exporters/toImg.d.ts +11 -0
- package/types/snapdom/src/modules/CSSVar.d.ts +5 -0
- package/types/snapdom/src/modules/background.d.ts +6 -1
- package/types/snapdom/src/modules/changeCSS.d.ts +14 -0
- package/types/snapdom/src/modules/counter.d.ts +72 -0
- package/types/snapdom/src/modules/fonts.d.ts +67 -11
- package/types/snapdom/src/modules/iconFonts.d.ts +34 -0
- package/types/snapdom/src/modules/images.d.ts +10 -4
- package/types/snapdom/src/modules/lineClamp.d.ts +13 -0
- package/types/snapdom/src/modules/pseudo.d.ts +4 -4
- package/types/snapdom/src/modules/rasterize.d.ts +16 -0
- package/types/snapdom/src/modules/snapFetch.d.ts +93 -0
- package/types/snapdom/src/modules/styles.d.ts +2 -1
- package/types/snapdom/src/modules/svgDefs.d.ts +9 -15
- package/types/snapdom/src/utils/browser.d.ts +12 -0
- package/types/snapdom/src/utils/css.d.ts +68 -0
- package/types/snapdom/src/utils/helpers.d.ts +0 -61
- package/types/snapdom/src/utils/image.d.ts +21 -0
- package/types/snapdom/src/utils/index.d.ts +4 -0
- package/types/tinycolor/src/public_api.d.ts +1 -1
- package/types/tree/index.d.ts +6 -6
- package/types/tween/index.d.ts +1 -0
- package/types/tween/src/easing.d.ts +22 -0
- package/types/tween/src/index.d.ts +3 -0
- package/types/tween/src/tween.d.ts +22 -0
- package/types/validate/index.d.ts +3 -0
- package/types/validate/src/index.d.ts +39 -0
- package/types/validate/src/interface.d.ts +53 -0
- package/types/validate/src/locale/en-US.d.ts +47 -0
- package/types/validate/src/locale/zh-CN.d.ts +47 -0
- package/types/validate/src/message.d.ts +2 -0
- package/types/validate/src/rules/array.d.ts +12 -0
- package/types/validate/src/rules/base.d.ts +25 -0
- package/types/validate/src/rules/boolean.d.ts +8 -0
- package/types/validate/src/rules/custom.d.ts +7 -0
- package/types/validate/src/rules/number.d.ts +12 -0
- package/types/validate/src/rules/object.d.ts +9 -0
- package/types/validate/src/rules/string.d.ts +12 -0
- package/types/validate/src/rules/type.d.ts +9 -0
- package/types/validate/src/utils.d.ts +3 -0
- package/ui-color/compareColorByRange.js +1 -0
- package/ui-color/index.js +1 -0
- package/uiColor.js +1 -0
- package/url-toolkit/index.js +1 -0
- package/url-toolkit/src/url-toolkit.js +1 -0
- package/urlToolkit.js +1 -0
- package/validate/index.js +28 -0
- package/validate/src/index.js +106 -0
- package/validate/src/locale/en-US.js +50 -0
- package/validate/src/locale/zh-CN.js +50 -0
- package/validate/src/message.js +5 -0
- package/validate/src/rules/array.js +73 -0
- package/validate/src/rules/base.js +69 -0
- package/validate/src/rules/boolean.js +29 -0
- package/validate/src/rules/custom.js +26 -0
- package/validate/src/rules/number.js +54 -0
- package/validate/src/rules/object.js +39 -0
- package/validate/src/rules/string.js +54 -0
- package/validate/src/rules/type.js +35 -0
- package/validate/src/utils.js +8 -0
- package/validate.js +28 -0
- package/version/index.js +1 -0
- package/version.js +1 -0
- package/filesize/index.js +0 -8
- package/filesize/src/constants.js +0 -71
- package/filesize/src/filesize.js +0 -87
- package/filesize.js +0 -8
- package/snapdom/src/utils/cssTools.js +0 -118
- package/turbo-stream/index.js +0 -6
- package/turbo-stream/src/decode.js +0 -284
- package/turbo-stream/src/encode.js +0 -357
- package/turbo-stream/src/shared.js +0 -267
- package/turboStream.js +0 -6
- package/types/filesize/index.d.ts +0 -2
- package/types/snapdom/src/utils/cssTools.d.ts +0 -29
- package/types/turbo-stream/index.d.ts +0 -1
- package/types/turbo-stream/src/decode.d.ts +0 -7
- package/types/turbo-stream/src/encode.d.ts +0 -27
- package/types/turbo-stream/src/shared.d.ts +0 -107
- package/types/turbo-stream/src/turbo-stream.d.ts +0 -4
- /package/types/tinycolor/src/{util.d.ts → utils.d.ts} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/* 2025-11-03 10:27:31 */
|
|
2
|
+
var S = [
|
|
2
3
|
// /uicons/i,
|
|
3
4
|
/font\s*awesome/i,
|
|
4
5
|
/material\s*icons/i,
|
|
@@ -10,19 +11,103 @@ var s = [
|
|
|
10
11
|
/heroicons/i,
|
|
11
12
|
/layui/i,
|
|
12
13
|
/lucide/i
|
|
13
|
-
],
|
|
14
|
-
function
|
|
15
|
-
const
|
|
16
|
-
for (const
|
|
17
|
-
|
|
14
|
+
], d = [];
|
|
15
|
+
function M(n) {
|
|
16
|
+
const t = Array.isArray(n) ? n : [n];
|
|
17
|
+
for (const o of t)
|
|
18
|
+
o instanceof RegExp ? d.push(o) : typeof o == "string" ? d.push(new RegExp(o, "i")) : console.warn("[snapdom] Ignored invalid iconFont value:", o);
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
-
const
|
|
21
|
-
for (const
|
|
22
|
-
if (
|
|
23
|
-
return !!(/icon/i.test(
|
|
20
|
+
function $(n) {
|
|
21
|
+
const t = typeof n == "string" ? n : "", o = [...S, ...d];
|
|
22
|
+
for (const s of o)
|
|
23
|
+
if (s instanceof RegExp && s.test(t)) return !0;
|
|
24
|
+
return !!(/icon/i.test(t) || /glyph/i.test(t) || /symbols/i.test(t) || /feather/i.test(t) || /fontawesome/i.test(t));
|
|
25
|
+
}
|
|
26
|
+
function b(n = "") {
|
|
27
|
+
const t = String(n).toLowerCase();
|
|
28
|
+
return /\bmaterial\s*icons\b/.test(t) || /\bmaterial\s*symbols\b/.test(t);
|
|
29
|
+
}
|
|
30
|
+
async function I(n = "Material Icons", t = 24) {
|
|
31
|
+
try {
|
|
32
|
+
await Promise.all([
|
|
33
|
+
document.fonts.load(`400 ${t}px "${n.replace(/["']/g, "")}"`),
|
|
34
|
+
document.fonts.ready
|
|
35
|
+
]);
|
|
36
|
+
} catch {
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
function v(n) {
|
|
40
|
+
let t = n.getPropertyValue("-webkit-text-fill-color")?.trim() || "";
|
|
41
|
+
const o = /rgba?\(\s*0\s*,\s*0\s*,\s*0\s*,\s*0\s*\)/i.test(t);
|
|
42
|
+
if (t && !o && t.toLowerCase() !== "currentcolor")
|
|
43
|
+
return t;
|
|
44
|
+
const s = n.color?.trim();
|
|
45
|
+
return s && s !== "inherit" ? s : "#000";
|
|
46
|
+
}
|
|
47
|
+
async function F(n, {
|
|
48
|
+
family: t = "Material Icons",
|
|
49
|
+
weight: o = "normal",
|
|
50
|
+
fontSize: s = 32,
|
|
51
|
+
color: u = "#000",
|
|
52
|
+
variation: y = ""
|
|
53
|
+
} = {}) {
|
|
54
|
+
const i = String(t || "").replace(/^['"]+|['"]+$/g, ""), r = window.devicePixelRatio || 1;
|
|
55
|
+
await I(i, s);
|
|
56
|
+
const e = document.createElement("span");
|
|
57
|
+
e.textContent = n, e.style.position = "absolute", e.style.visibility = "hidden", e.style.left = "-99999px", e.style.whiteSpace = "nowrap", e.style.fontFamily = `"${i}"`, e.style.fontWeight = String(o || "normal"), e.style.fontSize = `${s}px`, e.style.lineHeight = "1", e.style.margin = "0", e.style.padding = "0", e.style.fontFeatureSettings = "'liga' 1", e.style.fontVariantLigatures = "normal", y && (e.style.fontVariationSettings = y), e.style.color = u, document.body.appendChild(e);
|
|
58
|
+
const a = e.getBoundingClientRect(), g = Math.max(1, Math.ceil(a.width)), m = Math.max(1, Math.ceil(a.height));
|
|
59
|
+
document.body.removeChild(e);
|
|
60
|
+
const c = document.createElement("canvas");
|
|
61
|
+
c.width = g * r, c.height = m * r;
|
|
62
|
+
const l = c.getContext("2d");
|
|
63
|
+
l.scale(r, r), l.font = `${o ? `${o} ` : ""}${s}px "${i}"`, l.textAlign = "left", l.textBaseline = "top", l.fillStyle = u;
|
|
64
|
+
try {
|
|
65
|
+
l.fontKerning = "normal";
|
|
66
|
+
} catch {
|
|
67
|
+
}
|
|
68
|
+
return l.fillText(n, 0, 0), {
|
|
69
|
+
dataUrl: c.toDataURL(),
|
|
70
|
+
width: g,
|
|
71
|
+
height: m
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
async function A(n, t) {
|
|
75
|
+
if (!(n instanceof Element)) return 0;
|
|
76
|
+
const o = '.material-icons, [class*="material-symbols"]', s = Array.from(n.querySelectorAll(o)).filter(
|
|
77
|
+
(i) => i && i.textContent && i.textContent.trim()
|
|
78
|
+
);
|
|
79
|
+
if (s.length === 0) return 0;
|
|
80
|
+
const u = t instanceof Element ? Array.from(t.querySelectorAll(o)).filter(
|
|
81
|
+
(i) => i && i.textContent && i.textContent.trim()
|
|
82
|
+
) : [];
|
|
83
|
+
let y = 0;
|
|
84
|
+
for (let i = 0; i < s.length; i++) {
|
|
85
|
+
const r = s[i], e = u[i] || null;
|
|
86
|
+
try {
|
|
87
|
+
const a = getComputedStyle(e || r), g = a.fontFamily || "Material Icons";
|
|
88
|
+
if (!b(g)) continue;
|
|
89
|
+
const m = (e || r).textContent.trim();
|
|
90
|
+
if (!m) continue;
|
|
91
|
+
const c = parseInt(a.fontSize, 10) || 24, l = a.fontWeight && a.fontWeight !== "normal" ? a.fontWeight : "normal", h = v(a), p = a.fontVariationSettings && a.fontVariationSettings !== "normal" ? a.fontVariationSettings : "", { dataUrl: x, width: w, height: C } = await F(m, {
|
|
92
|
+
family: g,
|
|
93
|
+
weight: l,
|
|
94
|
+
fontSize: c,
|
|
95
|
+
color: h,
|
|
96
|
+
variation: p
|
|
97
|
+
});
|
|
98
|
+
r.textContent = "";
|
|
99
|
+
const f = r.ownerDocument.createElement("img");
|
|
100
|
+
f.src = x, f.alt = m, f.style.height = `${c}px`, f.style.width = `${Math.max(1, Math.round(w / C * c))}px`, f.style.objectFit = "contain", f.style.verticalAlign = getComputedStyle(r).verticalAlign || "baseline", r.appendChild(f), y++;
|
|
101
|
+
} catch {
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
return y;
|
|
24
105
|
}
|
|
25
106
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
107
|
+
I as ensureMaterialFontsReady,
|
|
108
|
+
M as extendIconFonts,
|
|
109
|
+
$ as isIconFont,
|
|
110
|
+
b as isMaterialFamily,
|
|
111
|
+
A as ligatureIconToImage,
|
|
112
|
+
F as materialIconToImage
|
|
28
113
|
};
|
|
@@ -1,25 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/* 2025-11-03 10:27:31 */
|
|
2
|
+
import { snapFetch as f } from "./snapFetch.js";
|
|
3
|
+
async function H(u, s = {}) {
|
|
4
|
+
const i = Array.from(u.querySelectorAll("img")), p = async (t) => {
|
|
4
5
|
if (!t.getAttribute("src")) {
|
|
5
6
|
const e = t.currentSrc || t.src || "";
|
|
6
7
|
e && t.setAttribute("src", e);
|
|
7
8
|
}
|
|
8
9
|
t.removeAttribute("srcset"), t.removeAttribute("sizes");
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
const a = t.src || "";
|
|
11
|
+
if (!a) return;
|
|
12
|
+
const r = await f(a, {
|
|
13
|
+
as: "dataURL",
|
|
14
|
+
useProxy: s.useProxy
|
|
15
|
+
});
|
|
16
|
+
if (r.ok && typeof r.data == "string" && r.data.startsWith("data:")) {
|
|
17
|
+
t.src = r.data, t.width || (t.width = t.naturalWidth || 100), t.height || (t.height = t.naturalHeight || 100);
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const { fallbackURL: n } = s || {};
|
|
21
|
+
if (n)
|
|
22
|
+
try {
|
|
23
|
+
const e = parseInt(t.dataset?.snapdomWidth || "", 10) || 0, y = parseInt(t.dataset?.snapdomHeight || "", 10) || 0, w = parseInt(t.getAttribute("width") || "", 10) || 0, b = parseInt(t.getAttribute("height") || "", 10) || 0, x = parseFloat(t.style?.width || "") || 0, W = parseFloat(t.style?.height || "") || 0, h = e || x || w || t.width || void 0, l = y || W || b || t.height || void 0, d = typeof n == "function" ? await n({ width: h, height: l, src: a, element: t }) : n;
|
|
24
|
+
if (d) {
|
|
25
|
+
const k = await f(d, {
|
|
26
|
+
as: "dataURL",
|
|
27
|
+
useProxy: s.useProxy
|
|
28
|
+
});
|
|
29
|
+
t.src = k.data, !t.width && h && (t.width = h), !t.height && l && (t.height = l), t.width || (t.width = t.naturalWidth || 100), t.height || (t.height = t.naturalHeight || 100);
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
} catch {
|
|
33
|
+
}
|
|
34
|
+
const o = t.width || t.naturalWidth || 100, c = t.height || t.naturalHeight || 100;
|
|
35
|
+
if (s.placeholders !== !1) {
|
|
36
|
+
const e = document.createElement("div");
|
|
37
|
+
e.style.cssText = [
|
|
38
|
+
`width:${o}px`,
|
|
39
|
+
`height:${c}px`,
|
|
40
|
+
"background:#ccc",
|
|
41
|
+
"display:inline-block",
|
|
42
|
+
"text-align:center",
|
|
43
|
+
`line-height:${c}px`,
|
|
44
|
+
"color:#666",
|
|
45
|
+
"font-size:12px",
|
|
46
|
+
"overflow:hidden"
|
|
47
|
+
].join(";"), e.textContent = "img", t.replaceWith(e);
|
|
48
|
+
} else {
|
|
14
49
|
const e = document.createElement("div");
|
|
15
|
-
e.style = `
|
|
50
|
+
e.style.cssText = `display:inline-block;width:${o}px;height:${c}px;visibility:hidden;`, t.replaceWith(e);
|
|
16
51
|
}
|
|
17
52
|
};
|
|
18
|
-
for (let t = 0; t <
|
|
19
|
-
const
|
|
20
|
-
await Promise.allSettled(
|
|
53
|
+
for (let t = 0; t < i.length; t += 4) {
|
|
54
|
+
const a = i.slice(t, t + 4).map(p);
|
|
55
|
+
await Promise.allSettled(a);
|
|
21
56
|
}
|
|
22
57
|
}
|
|
23
58
|
export {
|
|
24
|
-
|
|
59
|
+
H as inlineImages
|
|
25
60
|
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* 2025-11-03 10:27:31 */
|
|
2
|
+
function h(t) {
|
|
3
|
+
if (!t) return () => {
|
|
4
|
+
};
|
|
5
|
+
const e = c(t);
|
|
6
|
+
if (e <= 0) return () => {
|
|
7
|
+
};
|
|
8
|
+
if (!f(t)) return () => {
|
|
9
|
+
};
|
|
10
|
+
const n = getComputedStyle(t), r = Math.round(d(n) * e + p(n)), o = t.textContent ?? "", l = o;
|
|
11
|
+
if (t.scrollHeight <= r + 0.5)
|
|
12
|
+
return () => {
|
|
13
|
+
};
|
|
14
|
+
let a = 0, s = o.length, u = -1;
|
|
15
|
+
for (; a <= s; ) {
|
|
16
|
+
const i = a + s >> 1;
|
|
17
|
+
t.textContent = o.slice(0, i) + "…", t.scrollHeight <= r + 0.5 ? (u = i, a = i + 1) : s = i - 1;
|
|
18
|
+
}
|
|
19
|
+
return t.textContent = (u >= 0 ? o.slice(0, u) : "") + "…", () => {
|
|
20
|
+
t.textContent = l;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function c(t) {
|
|
24
|
+
const e = getComputedStyle(t);
|
|
25
|
+
let n = e.getPropertyValue("-webkit-line-clamp") || e.getPropertyValue("line-clamp");
|
|
26
|
+
n = (n || "").trim();
|
|
27
|
+
const r = parseInt(n, 10);
|
|
28
|
+
return Number.isFinite(r) && r > 0 ? r : 0;
|
|
29
|
+
}
|
|
30
|
+
function d(t) {
|
|
31
|
+
const e = (t.lineHeight || "").trim(), n = parseFloat(t.fontSize) || 16;
|
|
32
|
+
return !e || e === "normal" ? Math.round(n * 1.2) : e.endsWith("px") ? parseFloat(e) : /^\d+(\.\d+)?$/.test(e) ? Math.round(parseFloat(e) * n) : e.endsWith("%") ? Math.round(parseFloat(e) / 100 * n) : Math.round(n * 1.2);
|
|
33
|
+
}
|
|
34
|
+
function p(t) {
|
|
35
|
+
return (parseFloat(t.paddingTop) || 0) + (parseFloat(t.paddingBottom) || 0);
|
|
36
|
+
}
|
|
37
|
+
function f(t) {
|
|
38
|
+
return t.childElementCount > 0 ? !1 : Array.from(t.childNodes).some((e) => e.nodeType === Node.TEXT_NODE);
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
h as lineClamp
|
|
42
|
+
};
|
|
@@ -1,83 +1,224 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
/* 2025-11-03 10:27:31 */
|
|
2
|
+
import { cache as J } from "../core/cache.js";
|
|
3
|
+
import { buildCounterContext as Q, hasCounters as Z, resolveCountersInContent as tt } from "./counter.js";
|
|
4
|
+
import { iconToImage as nt } from "./fonts.js";
|
|
5
|
+
import { isIconFont as et } from "./iconFonts.js";
|
|
6
|
+
import { getStyle as ot, snapshotComputedStyle as T, getStyleKey as U, splitBackgroundImage as rt } from "../utils/css.js";
|
|
7
|
+
import { extractURL as st, safeEncodeURI as it } from "../utils/helpers.js";
|
|
8
|
+
import { inlineSingleBackgroundEntry as at } from "../utils/image.js";
|
|
9
|
+
import { snapFetch as ct } from "./snapFetch.js";
|
|
10
|
+
var k = /* @__PURE__ */ new WeakMap(), L = -1;
|
|
11
|
+
function lt(n) {
|
|
12
|
+
return (n || "").replace(/"([^"]*)"/g, "$1");
|
|
13
|
+
}
|
|
14
|
+
function dt(n) {
|
|
15
|
+
if (!n) return "";
|
|
16
|
+
const r = [], a = /"([^"]*)"/g;
|
|
17
|
+
let c;
|
|
18
|
+
for (; c = a.exec(n); ) r.push(c[1]);
|
|
19
|
+
return r.length ? r.join("") : lt(n);
|
|
20
|
+
}
|
|
21
|
+
function v(n, r) {
|
|
22
|
+
const a = n.parentElement, c = a ? k.get(a) : null;
|
|
23
|
+
return c ? {
|
|
24
|
+
get(l, f) {
|
|
25
|
+
const d = r.get(l, f), g = c.get(f);
|
|
26
|
+
return typeof g == "number" ? Math.max(d, g) : d;
|
|
27
|
+
},
|
|
28
|
+
getStack(l, f) {
|
|
29
|
+
const d = r.getStack(l, f);
|
|
30
|
+
if (!d.length) return d;
|
|
31
|
+
const g = c.get(f);
|
|
32
|
+
if (typeof g == "number") {
|
|
33
|
+
const e = d.slice();
|
|
34
|
+
return e[e.length - 1] = Math.max(e[e.length - 1], g), e;
|
|
35
|
+
}
|
|
36
|
+
return d;
|
|
37
|
+
}
|
|
38
|
+
} : r;
|
|
39
|
+
}
|
|
40
|
+
function F(n, r, a) {
|
|
41
|
+
const c = /* @__PURE__ */ new Map();
|
|
42
|
+
function l(e) {
|
|
43
|
+
const t = [];
|
|
44
|
+
if (!e || e === "none") return t;
|
|
45
|
+
for (const h of String(e).split(",")) {
|
|
46
|
+
const b = h.trim().split(/\s+/), s = b[0], y = Number.isFinite(Number(b[1])) ? Number(b[1]) : void 0;
|
|
47
|
+
s && t.push({ name: s, num: y });
|
|
48
|
+
}
|
|
49
|
+
return t;
|
|
50
|
+
}
|
|
51
|
+
const f = l(r?.counterReset), d = l(r?.counterIncrement);
|
|
52
|
+
function g(e) {
|
|
53
|
+
if (c.has(e)) return c.get(e).slice();
|
|
54
|
+
let t = a.getStack(n, e);
|
|
55
|
+
t = t.length ? t.slice() : [];
|
|
56
|
+
const h = f.find((s) => s.name === e);
|
|
57
|
+
if (h) {
|
|
58
|
+
const s = Number.isFinite(h.num) ? h.num : 0;
|
|
59
|
+
t = t.length ? [...t, s] : [s];
|
|
60
|
+
}
|
|
61
|
+
const b = d.find((s) => s.name === e);
|
|
62
|
+
if (b) {
|
|
63
|
+
const s = Number.isFinite(b.num) ? b.num : 1;
|
|
64
|
+
t.length === 0 && (t = [0]), t[t.length - 1] += s;
|
|
65
|
+
}
|
|
66
|
+
return c.set(e, t.slice()), t;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
get(e, t) {
|
|
70
|
+
const h = g(t);
|
|
71
|
+
return h.length ? h[h.length - 1] : 0;
|
|
72
|
+
},
|
|
73
|
+
getStack(e, t) {
|
|
74
|
+
return g(t);
|
|
75
|
+
},
|
|
76
|
+
/** expone increments del pseudo para que el caller pueda propagar a hermanos */
|
|
77
|
+
__incs: d
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function ut(n, r, a) {
|
|
81
|
+
let c;
|
|
82
|
+
try {
|
|
83
|
+
c = getComputedStyle(n, r);
|
|
84
|
+
} catch {
|
|
85
|
+
}
|
|
86
|
+
const l = c?.content;
|
|
87
|
+
if (!l || l === "none" || l === "normal") return { text: "", incs: [] };
|
|
88
|
+
const f = v(n, a), d = F(n, c, f);
|
|
89
|
+
let g = Z(l) ? tt(l, n, d) : l;
|
|
90
|
+
return { text: dt(g), incs: d.__incs || [] };
|
|
91
|
+
}
|
|
92
|
+
async function ft(n, r, a, c) {
|
|
93
|
+
if (!(n instanceof Element) || !(r instanceof Element)) return;
|
|
94
|
+
const l = J?.session?.__counterEpoch ?? 0;
|
|
95
|
+
if (L !== l && (k = /* @__PURE__ */ new WeakMap(), a && (a.__counterCtx = null), L = l), !a.__counterCtx)
|
|
8
96
|
try {
|
|
9
|
-
|
|
97
|
+
a.__counterCtx = Q(
|
|
98
|
+
n.ownerDocument || document
|
|
99
|
+
);
|
|
100
|
+
} catch {
|
|
101
|
+
}
|
|
102
|
+
const f = a.__counterCtx;
|
|
103
|
+
for (const e of ["::before", "::after", "::first-letter"])
|
|
104
|
+
try {
|
|
105
|
+
const t = ot(n, e);
|
|
10
106
|
if (!t || typeof t[Symbol.iterator] != "function" || t.content === "none" && t.backgroundImage === "none" && t.backgroundColor === "transparent" && (t.borderStyle === "none" || parseFloat(t.borderWidth) === 0) && (!t.transform || t.transform === "none") && t.display === "inline") continue;
|
|
11
|
-
if (
|
|
12
|
-
const
|
|
13
|
-
if (!(t.color !==
|
|
14
|
-
const
|
|
15
|
-
(
|
|
107
|
+
if (e === "::first-letter") {
|
|
108
|
+
const i = getComputedStyle(n);
|
|
109
|
+
if (!(t.color !== i.color || t.fontSize !== i.fontSize || t.fontWeight !== i.fontWeight)) continue;
|
|
110
|
+
const m = Array.from(r.childNodes).find(
|
|
111
|
+
(z) => z.nodeType === Node.TEXT_NODE && z.textContent?.trim().length > 0
|
|
16
112
|
);
|
|
17
|
-
if (!
|
|
18
|
-
const
|
|
19
|
-
if (!
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
r.replaceChild(
|
|
113
|
+
if (!m) continue;
|
|
114
|
+
const p = m.textContent, E = p.match(/^([^\p{L}\p{N}\s]*[\p{L}\p{N}](?:['’])?)/u)?.[0], H = p.slice(E?.length || 0);
|
|
115
|
+
if (!E || /[\uD800-\uDFFF]/.test(E)) continue;
|
|
116
|
+
const w = document.createElement("span");
|
|
117
|
+
w.textContent = E, w.dataset.snapdomPseudo = "::first-letter";
|
|
118
|
+
const K = T(t), G = U(K, "span");
|
|
119
|
+
a.styleMap.set(w, G);
|
|
120
|
+
const $ = document.createTextNode(H);
|
|
121
|
+
r.replaceChild($, m), r.insertBefore(w, $);
|
|
122
|
+
continue;
|
|
123
|
+
}
|
|
124
|
+
const b = t.content, { text: s, incs: y } = ut(
|
|
125
|
+
n,
|
|
126
|
+
e,
|
|
127
|
+
f
|
|
128
|
+
), _ = t.backgroundImage, C = t.backgroundColor, M = t.fontFamily, x = parseInt(t.fontSize) || 32, j = parseInt(t.fontWeight) || !1, O = t.color || "#000", N = t.borderStyle, X = parseFloat(t.borderWidth), W = t.transform, B = et(M), R = b !== "none" && s !== "", P = _ && _ !== "none", I = C && C !== "transparent" && C !== "rgba(0, 0, 0, 0)", A = N && N !== "none" && X > 0, D = W && W !== "none";
|
|
129
|
+
if (!(R || P || I || A || D)) {
|
|
130
|
+
if (y && y.length && n.parentElement) {
|
|
131
|
+
const i = k.get(n.parentElement) || /* @__PURE__ */ new Map();
|
|
132
|
+
for (const { name: u } of y) {
|
|
133
|
+
if (!u) continue;
|
|
134
|
+
const m = v(n, f), S = F(
|
|
135
|
+
n,
|
|
136
|
+
getComputedStyle(n, e),
|
|
137
|
+
m
|
|
138
|
+
).get(n, u);
|
|
139
|
+
i.set(u, S);
|
|
140
|
+
}
|
|
141
|
+
k.set(n.parentElement, i);
|
|
142
|
+
}
|
|
26
143
|
continue;
|
|
27
144
|
}
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
145
|
+
const o = document.createElement("span");
|
|
146
|
+
o.dataset.snapdomPseudo = e, o.style.display = "inline", o.style.verticalAlign = "baseline", o.style.pointerEvents = "none";
|
|
147
|
+
const V = T(t), Y = U(V, "span");
|
|
148
|
+
if (a.styleMap.set(o, Y), B && s && s.length === 1) {
|
|
149
|
+
const {
|
|
150
|
+
dataUrl: i,
|
|
151
|
+
width: u,
|
|
152
|
+
height: m
|
|
153
|
+
} = await nt(
|
|
154
|
+
s,
|
|
155
|
+
M,
|
|
156
|
+
j,
|
|
157
|
+
x,
|
|
158
|
+
O
|
|
159
|
+
), p = document.createElement("img");
|
|
160
|
+
p.src = i, p.style = `height:${x}px;width:${u / m * x}px;object-fit:contain;`, o.appendChild(p), r.dataset.snapdomHasIcon = "true";
|
|
161
|
+
} else if (s && s.startsWith("url(")) {
|
|
162
|
+
const i = st(s);
|
|
163
|
+
if (i?.trim())
|
|
45
164
|
try {
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
165
|
+
const u = document.createElement("img"), m = await ct(it(i), {
|
|
166
|
+
as: "dataURL",
|
|
167
|
+
useProxy: c.useProxy
|
|
168
|
+
});
|
|
169
|
+
u.src = m.data, u.style = `width:${x}px;height:auto;object-fit:contain;`, o.appendChild(u);
|
|
170
|
+
} catch (u) {
|
|
171
|
+
console.error(`[snapdom] Error in pseudo ${e} for`, n, u);
|
|
50
172
|
}
|
|
51
|
-
} else !
|
|
52
|
-
|
|
173
|
+
} else !B && R && (o.textContent = s);
|
|
174
|
+
o.style.backgroundImage = "none", "maskImage" in o.style && (o.style.maskImage = "none"), "webkitMaskImage" in o.style && (o.style.webkitMaskImage = "none");
|
|
175
|
+
try {
|
|
176
|
+
o.style.backgroundRepeat = t.backgroundRepeat, o.style.backgroundSize = t.backgroundSize, t.backgroundPositionX && t.backgroundPositionY ? (o.style.backgroundPositionX = t.backgroundPositionX, o.style.backgroundPositionY = t.backgroundPositionY) : o.style.backgroundPosition = t.backgroundPosition, o.style.backgroundOrigin = t.backgroundOrigin, o.style.backgroundClip = t.backgroundClip, o.style.backgroundAttachment = t.backgroundAttachment, o.style.backgroundBlendMode = t.backgroundBlendMode;
|
|
177
|
+
} catch {
|
|
178
|
+
}
|
|
179
|
+
if (P)
|
|
53
180
|
try {
|
|
54
|
-
const
|
|
55
|
-
|
|
181
|
+
const i = rt(_), u = await Promise.all(
|
|
182
|
+
i.map(at)
|
|
56
183
|
);
|
|
57
|
-
|
|
58
|
-
} catch (
|
|
184
|
+
o.style.backgroundImage = u.join(", ");
|
|
185
|
+
} catch (i) {
|
|
59
186
|
console.warn(
|
|
60
|
-
`[snapdom] Failed to inline background-image for ${
|
|
61
|
-
|
|
187
|
+
`[snapdom] Failed to inline background-image for ${e}`,
|
|
188
|
+
i
|
|
62
189
|
);
|
|
63
190
|
}
|
|
64
|
-
|
|
65
|
-
|
|
191
|
+
I && (o.style.backgroundColor = C);
|
|
192
|
+
const q = o.childNodes.length > 0 || o.textContent?.trim() !== "" || P || I || A || D;
|
|
193
|
+
if (y && y.length && n.parentElement) {
|
|
194
|
+
const i = k.get(n.parentElement) || /* @__PURE__ */ new Map(), u = v(n, f), m = F(
|
|
195
|
+
n,
|
|
196
|
+
getComputedStyle(n, e),
|
|
197
|
+
u
|
|
198
|
+
);
|
|
199
|
+
for (const { name: p } of y) {
|
|
200
|
+
if (!p) continue;
|
|
201
|
+
const S = m.get(n, p);
|
|
202
|
+
i.set(p, S);
|
|
203
|
+
}
|
|
204
|
+
k.set(n.parentElement, i);
|
|
205
|
+
}
|
|
206
|
+
if (!q) continue;
|
|
207
|
+
e === "::before" ? r.insertBefore(o, r.firstChild) : r.appendChild(o);
|
|
66
208
|
} catch (t) {
|
|
67
|
-
console.warn(`[snapdom] Failed to capture ${
|
|
209
|
+
console.warn(`[snapdom] Failed to capture ${e} for`, n, t);
|
|
68
210
|
}
|
|
69
|
-
const
|
|
70
|
-
(
|
|
211
|
+
const d = Array.from(n.children), g = Array.from(r.children).filter(
|
|
212
|
+
(e) => !e.dataset.snapdomPseudo
|
|
71
213
|
);
|
|
72
|
-
for (let
|
|
73
|
-
await
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
d
|
|
214
|
+
for (let e = 0; e < Math.min(d.length, g.length); e++)
|
|
215
|
+
await ft(
|
|
216
|
+
d[e],
|
|
217
|
+
g[e],
|
|
218
|
+
a,
|
|
219
|
+
c
|
|
79
220
|
);
|
|
80
221
|
}
|
|
81
222
|
export {
|
|
82
|
-
|
|
223
|
+
ft as inlinePseudoElements
|
|
83
224
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* 2025-11-03 10:27:31 */
|
|
2
|
+
import { toCanvas as d } from "../exporters/toCanvas.js";
|
|
3
|
+
import { createBackground as n } from "../utils/image.js";
|
|
4
|
+
async function m(c, a) {
|
|
5
|
+
const e = await d(c, a), t = a.backgroundColor ? n(e, a.backgroundColor) : e, r = new Image();
|
|
6
|
+
return r.src = t.toDataURL(`image/${a.format}`, a.quality), await r.decode(), r.style.width = `${t.width / a.dpr}px`, r.style.height = `${t.height / a.dpr}px`, r;
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
m as rasterize
|
|
10
|
+
};
|