@unicom-cloud/utils 0.1.53 → 0.1.55
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/_rolldown/runtime.js +1 -1
- package/array/index.js +1 -1
- package/assert/index.js +1 -1
- package/case-name/index.js +1 -1
- package/class-name/index.js +1 -1
- package/clipboard-copy/index.js +1 -1
- package/{constant → constants}/address.js +2 -2
- package/{constant → constants}/chineseCharacters.js +2 -2
- package/{constant → constants}/constellations.js +2 -2
- package/{constant → constants}/domain.js +2 -2
- package/{constant → constants}/identity.js +2 -2
- package/{constant → constants}/index.js +2 -2
- package/{constant → constants}/keyboardCode.js +2 -2
- package/{constant → constants}/licensePlate.js +2 -2
- package/{constant → constants}/name.js +2 -2
- package/{constant → constants}/platform.js +2 -2
- package/{constant → constants}/protocol.js +2 -2
- package/{constant → constants}/string.js +2 -2
- package/{constant → constants}/ui.js +2 -2
- package/content-disposition/index.js +1 -1
- package/cookie/api.js +1 -1
- package/cookie/assign.js +1 -1
- package/cookie/converter.js +1 -1
- package/cookie/index.js +1 -1
- package/css/cssSupported.js +1 -1
- package/css/index.js +1 -1
- package/date/convertTime.js +1 -1
- package/date/convertToDuration.js +1 -1
- package/date/index.js +1 -1
- package/decimal/decimal.js +2 -2
- package/decimal/index.js +1 -1
- package/document/index.d.ts +1 -0
- package/document/index.js +11 -0
- package/dom-helpers/activeElement.js +1 -1
- package/dom-helpers/addClass.js +1 -1
- package/dom-helpers/addEventListener.js +1 -1
- package/dom-helpers/animate.js +1 -1
- package/dom-helpers/animationFrame.js +1 -1
- package/dom-helpers/attribute.js +1 -1
- package/dom-helpers/camelize.js +1 -1
- package/dom-helpers/camelizeStyle.js +1 -1
- package/dom-helpers/canUseDOM.js +1 -1
- package/dom-helpers/childElements.js +1 -1
- package/dom-helpers/childNodes.js +1 -1
- package/dom-helpers/clear.js +1 -1
- package/dom-helpers/closest.js +1 -1
- package/dom-helpers/collectElements.js +1 -1
- package/dom-helpers/collectSiblings.js +1 -1
- package/dom-helpers/contains.js +1 -1
- package/dom-helpers/css.js +1 -1
- package/dom-helpers/filterEventHandler.js +1 -1
- package/dom-helpers/getComputedStyle.js +1 -1
- package/dom-helpers/getElementCoordinates.js +1 -1
- package/dom-helpers/getScrollAccessor.js +1 -1
- package/dom-helpers/hasClass.js +1 -1
- package/dom-helpers/height.js +1 -1
- package/dom-helpers/hyphenate.js +1 -1
- package/dom-helpers/hyphenateStyle.js +1 -1
- package/dom-helpers/index.js +1 -1
- package/dom-helpers/insertAfter.js +1 -1
- package/dom-helpers/isDocument.js +1 -1
- package/dom-helpers/isInput.js +1 -1
- package/dom-helpers/isTransform.js +1 -1
- package/dom-helpers/isVisible.js +1 -1
- package/dom-helpers/isWindow.js +1 -1
- package/dom-helpers/listen.js +1 -1
- package/dom-helpers/matches.js +1 -1
- package/dom-helpers/nextUntil.js +1 -1
- package/dom-helpers/offset.js +1 -1
- package/dom-helpers/offsetParent.js +1 -1
- package/dom-helpers/ownerDocument.js +1 -1
- package/dom-helpers/ownerWindow.js +1 -1
- package/dom-helpers/parents.js +1 -1
- package/dom-helpers/position.js +1 -1
- package/dom-helpers/prepend.js +1 -1
- package/dom-helpers/querySelectorAll.js +1 -1
- package/dom-helpers/reflow.js +1 -1
- package/dom-helpers/remove.js +1 -1
- package/dom-helpers/removeClass.js +1 -1
- package/dom-helpers/removeEventListener.js +1 -1
- package/dom-helpers/scrollLeft.js +1 -1
- package/dom-helpers/scrollParent.js +1 -1
- package/dom-helpers/scrollTo.js +1 -1
- package/dom-helpers/scrollTop.js +1 -1
- package/dom-helpers/scrollbarSize.js +1 -1
- package/dom-helpers/siblings.js +1 -1
- package/dom-helpers/text.js +1 -1
- package/dom-helpers/toggleClass.js +1 -1
- package/dom-helpers/transitionEnd.js +1 -1
- package/dom-helpers/triggerEvent.js +1 -1
- package/dom-helpers/types.js +1 -1
- package/dom-helpers/width.js +1 -1
- package/emitter/index.d.ts +2 -2
- package/emitter/index.js +16 -11
- package/emoji/emoji.js +1 -1
- package/emoji/emojis.js +1 -1
- package/emoji/index.js +1 -1
- package/escape/index.js +1 -1
- package/fflate/index.js +1 -1
- package/fflate/src/index.js +132 -14
- package/fflate/src/worker.js +2 -1
- package/file/fileRead.js +1 -1
- package/file/fileToDataURL.js +1 -1
- package/file/img.js +1 -1
- package/file/index.js +1 -1
- package/file/saveAs.js +1 -1
- package/filesize/index.js +1 -1
- package/filesize/src/constants.js +1 -1
- package/filesize/src/filesize.js +1 -1
- package/filesize/src/helpers.js +1 -1
- package/function/index.js +1 -1
- package/idb/async-iterators.js +1 -1
- package/idb/database-extras.js +1 -1
- package/idb/entry.js +1 -1
- package/idb/index-.js +1 -1
- package/idb/index.js +1 -1
- package/idb/util.js +1 -1
- package/idb/wrap-idb-value.js +1 -1
- package/index.js +1 -1
- package/invariant/index.js +1 -1
- package/is/index.d.ts +27 -27
- package/is/index.js +28 -28
- package/is/{lib → libs}/isAscii.js +2 -2
- package/is/{lib → libs}/isBase64.js +2 -2
- package/is/{lib → libs}/isChinese.js +2 -2
- package/is/{lib → libs}/isDataURI.js +2 -2
- package/is/{lib → libs}/isEmail.js +2 -2
- package/is/{lib → libs}/isFQDN.js +2 -2
- package/is/{lib → libs}/isFullWidth.js +2 -2
- package/is/{lib → libs}/isHSL.js +2 -2
- package/is/{lib → libs}/isHalfWidth.js +2 -2
- package/is/{lib → libs}/isHash.js +2 -2
- package/is/{lib → libs}/isHexColor.js +2 -2
- package/is/{lib → libs}/isIMEI.js +2 -2
- package/is/{lib → libs}/isIP.js +2 -2
- package/is/{lib → libs}/isIPRange.js +2 -2
- package/is/{lib → libs}/isIdentityCard.js +2 -2
- package/is/{lib → libs}/isJWT.js +2 -2
- package/is/{lib → libs}/isMACAddress.js +2 -2
- package/is/{lib → libs}/isMD5.js +2 -2
- package/is/{lib → libs}/isMimeType.js +2 -2
- package/is/{lib → libs}/isMobilePhone.js +2 -2
- package/is/libs/isPort.js +8 -0
- package/is/{lib → libs}/isRgbColor.js +2 -2
- package/is/{lib → libs}/isSemVer.js +2 -2
- package/is/{lib → libs}/isSlug.js +2 -2
- package/is/{lib → libs}/isStrongPassword.js +2 -2
- package/is/{lib → libs}/isURL.js +2 -2
- package/is/{lib → libs}/isUUID.js +2 -2
- package/is/{lib → libs}/isVariableWidth.js +2 -2
- package/lodash/_DataView.js +1 -1
- package/lodash/_Hash.js +1 -1
- package/lodash/_LazyWrapper.js +1 -1
- package/lodash/_ListCache.js +1 -1
- package/lodash/_LodashWrapper.js +1 -1
- package/lodash/_Map.js +1 -1
- package/lodash/_MapCache.js +1 -1
- package/lodash/_Promise.js +1 -1
- package/lodash/_Set.js +1 -1
- package/lodash/_SetCache.js +1 -1
- package/lodash/_Stack.js +1 -1
- package/lodash/_Symbol.js +1 -1
- package/lodash/_Uint8Array.js +1 -1
- package/lodash/_WeakMap.js +1 -1
- package/lodash/_addMapEntry.js +1 -1
- package/lodash/_addSetEntry.js +1 -1
- package/lodash/_apply.js +1 -1
- package/lodash/_arrayAggregator.js +1 -1
- package/lodash/_arrayEach.js +1 -1
- package/lodash/_arrayEachRight.js +1 -1
- package/lodash/_arrayEvery.js +1 -1
- package/lodash/_arrayFilter.js +1 -1
- package/lodash/_arrayIncludes.js +1 -1
- package/lodash/_arrayIncludesWith.js +1 -1
- package/lodash/_arrayLikeKeys.js +8 -8
- package/lodash/_arrayMap.js +1 -1
- package/lodash/_arrayPush.js +1 -1
- package/lodash/_arrayReduce.js +1 -1
- package/lodash/_arrayReduceRight.js +1 -1
- package/lodash/_arraySample.js +1 -1
- package/lodash/_arraySampleSize.js +4 -4
- package/lodash/_arrayShuffle.js +1 -1
- package/lodash/_arraySome.js +1 -1
- package/lodash/_asciiSize.js +1 -1
- package/lodash/_asciiToArray.js +1 -1
- package/lodash/_asciiWords.js +1 -1
- package/lodash/_assignMergeValue.js +4 -4
- package/lodash/_assignValue.js +4 -4
- package/lodash/_assocIndexOf.js +1 -1
- package/lodash/_baseAggregator.js +1 -1
- package/lodash/_baseAssign.js +4 -4
- package/lodash/_baseAssignIn.js +1 -1
- package/lodash/_baseAssignValue.js +1 -1
- package/lodash/_baseAt.js +1 -1
- package/lodash/_baseClamp.js +1 -1
- package/lodash/_baseClone.js +20 -20
- package/lodash/_baseConforms.js +1 -1
- package/lodash/_baseConformsTo.js +1 -1
- package/lodash/_baseCreate.js +1 -1
- package/lodash/_baseDelay.js +5 -8
- package/lodash/_baseDifference.js +7 -7
- package/lodash/_baseEach.js +1 -1
- package/lodash/_baseEachRight.js +1 -1
- package/lodash/_baseEvery.js +1 -1
- package/lodash/_baseExtremum.js +1 -1
- package/lodash/_baseFill.js +1 -1
- package/lodash/_baseFilter.js +1 -1
- package/lodash/_baseFindIndex.js +1 -1
- package/lodash/_baseFindKey.js +1 -1
- package/lodash/_baseFlatten.js +1 -1
- package/lodash/_baseFor.js +1 -1
- package/lodash/_baseForOwn.js +4 -4
- package/lodash/_baseForOwnRight.js +1 -1
- package/lodash/_baseForRight.js +1 -1
- package/lodash/_baseFunctions.js +1 -1
- package/lodash/_baseGet.js +1 -1
- package/lodash/_baseGetAllKeys.js +1 -1
- package/lodash/_baseGetTag.js +1 -1
- package/lodash/_baseGt.js +1 -1
- package/lodash/_baseHas.js +1 -1
- package/lodash/_baseHasIn.js +1 -1
- package/lodash/_baseInRange.js +1 -1
- package/lodash/_baseIndexOf.js +1 -1
- package/lodash/_baseIndexOfWith.js +1 -1
- package/lodash/_baseIntersection.js +10 -10
- package/lodash/_baseInverter.js +1 -1
- package/lodash/_baseInvoke.js +1 -1
- package/lodash/_baseIsArguments.js +1 -1
- package/lodash/_baseIsArrayBuffer.js +1 -1
- package/lodash/_baseIsDate.js +1 -1
- package/lodash/_baseIsEqual.js +1 -1
- package/lodash/_baseIsEqualDeep.js +11 -11
- package/lodash/_baseIsMap.js +1 -1
- package/lodash/_baseIsMatch.js +1 -1
- package/lodash/_baseIsNaN.js +1 -1
- package/lodash/_baseIsNative.js +1 -1
- package/lodash/_baseIsRegExp.js +1 -1
- package/lodash/_baseIsSet.js +1 -1
- package/lodash/_baseIsTypedArray.js +1 -1
- package/lodash/_baseIteratee.js +5 -5
- package/lodash/_baseKeys.js +1 -1
- package/lodash/_baseKeysIn.js +1 -1
- package/lodash/_baseLodash.js +1 -1
- package/lodash/_baseLt.js +1 -1
- package/lodash/_baseMap.js +1 -1
- package/lodash/_baseMatches.js +1 -1
- package/lodash/_baseMatchesProperty.js +1 -1
- package/lodash/_baseMean.js +1 -1
- package/lodash/_baseMerge.js +9 -9
- package/lodash/_baseMergeDeep.js +15 -15
- package/lodash/_baseNth.js +1 -1
- package/lodash/_baseOrderBy.js +15 -15
- package/lodash/_basePick.js +1 -1
- package/lodash/_basePickBy.js +1 -1
- package/lodash/_baseProperty.js +1 -1
- package/lodash/_basePropertyDeep.js +1 -1
- package/lodash/_basePropertyOf.js +1 -1
- package/lodash/_basePullAll.js +7 -7
- package/lodash/_basePullAt.js +1 -1
- package/lodash/_baseRandom.js +1 -1
- package/lodash/_baseRange.js +1 -1
- package/lodash/_baseReduce.js +1 -1
- package/lodash/_baseRepeat.js +9 -9
- package/lodash/_baseRest.js +4 -4
- package/lodash/_baseSample.js +4 -4
- package/lodash/_baseSampleSize.js +5 -5
- package/lodash/_baseSet.js +1 -1
- package/lodash/_baseSetData.js +1 -1
- package/lodash/_baseSetToString.js +8 -8
- package/lodash/_baseShuffle.js +4 -4
- package/lodash/_baseSlice.js +1 -1
- package/lodash/_baseSome.js +1 -1
- package/lodash/_baseSortBy.js +1 -1
- package/lodash/_baseSortedIndex.js +1 -1
- package/lodash/_baseSortedIndexBy.js +1 -1
- package/lodash/_baseSortedUniq.js +1 -1
- package/lodash/_baseSum.js +1 -1
- package/lodash/_baseTimes.js +1 -1
- package/lodash/_baseToNumber.js +1 -1
- package/lodash/_baseToPairs.js +1 -1
- package/lodash/_baseToString.js +5 -5
- package/lodash/_baseTrim.js +1 -1
- package/lodash/_baseUnary.js +1 -1
- package/lodash/_baseUniq.js +10 -10
- package/lodash/_baseUnset.js +1 -1
- package/lodash/_baseUpdate.js +1 -1
- package/lodash/_baseValues.js +1 -1
- package/lodash/_baseWhile.js +1 -1
- package/lodash/_baseWrapperValue.js +1 -1
- package/lodash/_baseXor.js +5 -5
- package/lodash/_baseZipObject.js +1 -1
- package/lodash/_cacheHas.js +1 -1
- package/lodash/_castArrayLikeObject.js +1 -1
- package/lodash/_castFunction.js +1 -1
- package/lodash/_castPath.js +1 -1
- package/lodash/_castRest.js +1 -1
- package/lodash/_castSlice.js +1 -1
- package/lodash/_charsEndIndex.js +1 -1
- package/lodash/_charsStartIndex.js +1 -1
- package/lodash/_cloneArrayBuffer.js +1 -1
- package/lodash/_cloneBuffer.js +1 -1
- package/lodash/_cloneDataView.js +1 -1
- package/lodash/_cloneMap.js +5 -5
- package/lodash/_cloneRegExp.js +1 -1
- package/lodash/_cloneSet.js +5 -5
- package/lodash/_cloneSymbol.js +1 -1
- package/lodash/_cloneTypedArray.js +1 -1
- package/lodash/_compareAscending.js +1 -1
- package/lodash/_compareMultiple.js +1 -1
- package/lodash/_composeArgs.js +1 -1
- package/lodash/_composeArgsRight.js +1 -1
- package/lodash/_copyArray.js +1 -1
- package/lodash/_copyObject.js +1 -1
- package/lodash/_copySymbols.js +1 -1
- package/lodash/_copySymbolsIn.js +1 -1
- package/lodash/_coreJsData.js +1 -1
- package/lodash/_countHolders.js +1 -1
- package/lodash/_createAggregator.js +7 -7
- package/lodash/_createAssigner.js +1 -1
- package/lodash/_createBaseEach.js +1 -1
- package/lodash/_createBaseFor.js +1 -1
- package/lodash/_createBind.js +1 -1
- package/lodash/_createCaseFirst.js +1 -1
- package/lodash/_createCompounder.js +1 -1
- package/lodash/_createCtor.js +1 -1
- package/lodash/_createCurry.js +7 -7
- package/lodash/_createFind.js +1 -1
- package/lodash/_createFlow.js +12 -12
- package/lodash/_createHybrid.js +9 -9
- package/lodash/_createInverter.js +1 -1
- package/lodash/_createMathOperation.js +4 -4
- package/lodash/_createOver.js +11 -11
- package/lodash/_createPadding.js +9 -9
- package/lodash/_createPartial.js +7 -7
- package/lodash/_createRange.js +4 -4
- package/lodash/_createRecurry.js +1 -1
- package/lodash/_createRelationalOperation.js +1 -1
- package/lodash/_createRound.js +7 -7
- package/lodash/_createSet.js +7 -7
- package/lodash/_createToPairs.js +1 -1
- package/lodash/_createWrap.js +1 -1
- package/lodash/_customDefaultsAssignIn.js +1 -1
- package/lodash/_customDefaultsMerge.js +1 -1
- package/lodash/_customOmitClone.js +1 -1
- package/lodash/_deburrLetter.js +1 -1
- package/lodash/_defineProperty.js +1 -1
- package/lodash/_equalArrays.js +1 -1
- package/lodash/_equalByTag.js +1 -1
- package/lodash/_equalObjects.js +1 -1
- package/lodash/_escapeHtmlChar.js +1 -1
- package/lodash/_escapeStringChar.js +1 -1
- package/lodash/_flatRest.js +4 -4
- package/lodash/_freeGlobal.js +1 -1
- package/lodash/_getAllKeys.js +1 -1
- package/lodash/_getAllKeysIn.js +1 -1
- package/lodash/_getData.js +1 -1
- package/lodash/_getFuncName.js +1 -1
- package/lodash/_getHolder.js +1 -1
- package/lodash/_getMapData.js +1 -1
- package/lodash/_getMatchData.js +1 -1
- package/lodash/_getNative.js +1 -1
- package/lodash/_getPrototype.js +1 -1
- package/lodash/_getRawTag.js +1 -1
- package/lodash/_getSymbols.js +1 -1
- package/lodash/_getSymbolsIn.js +7 -7
- package/lodash/_getTag.js +7 -7
- package/lodash/_getValue.js +1 -1
- package/lodash/_getView.js +1 -1
- package/lodash/_getWrapDetails.js +1 -1
- package/lodash/_hasPath.js +6 -6
- package/lodash/_hasUnicode.js +1 -1
- package/lodash/_hasUnicodeWord.js +1 -1
- package/lodash/_hashClear.js +1 -1
- package/lodash/_hashDelete.js +1 -1
- package/lodash/_hashGet.js +1 -1
- package/lodash/_hashHas.js +1 -1
- package/lodash/_hashSet.js +1 -1
- package/lodash/_initCloneArray.js +1 -1
- package/lodash/_initCloneByTag.js +1 -1
- package/lodash/_initCloneObject.js +1 -1
- package/lodash/_insertWrapDetails.js +1 -1
- package/lodash/_isFlattenable.js +4 -4
- package/lodash/_isIndex.js +6 -6
- package/lodash/_isIterateeCall.js +4 -4
- package/lodash/_isKey.js +5 -5
- package/lodash/_isKeyable.js +1 -1
- package/lodash/_isLaziable.js +1 -1
- package/lodash/_isMaskable.js +1 -1
- package/lodash/_isMasked.js +1 -1
- package/lodash/_isPrototype.js +1 -1
- package/lodash/_isStrictComparable.js +1 -1
- package/lodash/_iteratorToArray.js +1 -1
- package/lodash/_lazyClone.js +1 -1
- package/lodash/_lazyReverse.js +1 -1
- package/lodash/_lazyValue.js +1 -1
- package/lodash/_listCacheClear.js +1 -1
- package/lodash/_listCacheDelete.js +1 -1
- package/lodash/_listCacheGet.js +1 -1
- package/lodash/_listCacheHas.js +1 -1
- package/lodash/_listCacheSet.js +1 -1
- package/lodash/_mapCacheClear.js +1 -1
- package/lodash/_mapCacheDelete.js +1 -1
- package/lodash/_mapCacheGet.js +1 -1
- package/lodash/_mapCacheHas.js +1 -1
- package/lodash/_mapCacheSet.js +1 -1
- package/lodash/_mapToArray.js +1 -1
- package/lodash/_matchesStrictComparable.js +1 -1
- package/lodash/_memoizeCapped.js +1 -1
- package/lodash/_mergeData.js +1 -1
- package/lodash/_metaMap.js +1 -1
- package/lodash/_nativeCreate.js +1 -1
- package/lodash/_nativeKeys.js +1 -1
- package/lodash/_nativeKeysIn.js +1 -1
- package/lodash/_nodeUtil.js +1 -1
- package/lodash/_objectToString.js +1 -1
- package/lodash/_overArg.js +1 -1
- package/lodash/_overRest.js +1 -1
- package/lodash/_parent.js +1 -1
- package/lodash/_reEscape.js +1 -1
- package/lodash/_reEvaluate.js +1 -1
- package/lodash/_reInterpolate.js +1 -1
- package/lodash/_realNames.js +1 -1
- package/lodash/_reorder.js +5 -5
- package/lodash/_replaceHolders.js +1 -1
- package/lodash/_root.js +1 -1
- package/lodash/_safeGet.js +1 -1
- package/lodash/_setCacheAdd.js +3 -6
- package/lodash/_setCacheHas.js +1 -1
- package/lodash/_setData.js +4 -4
- package/lodash/_setToArray.js +1 -1
- package/lodash/_setToPairs.js +1 -1
- package/lodash/_setToString.js +4 -4
- package/lodash/_setWrapToString.js +5 -5
- package/lodash/_shortOut.js +10 -10
- package/lodash/_shuffleSelf.js +1 -1
- package/lodash/_stackClear.js +1 -1
- package/lodash/_stackDelete.js +1 -1
- package/lodash/_stackGet.js +1 -1
- package/lodash/_stackHas.js +1 -1
- package/lodash/_stackSet.js +1 -1
- package/lodash/_strictIndexOf.js +1 -1
- package/lodash/_strictLastIndexOf.js +1 -1
- package/lodash/_stringSize.js +4 -4
- package/lodash/_stringToArray.js +4 -4
- package/lodash/_stringToPath.js +1 -1
- package/lodash/_toKey.js +1 -1
- package/lodash/_toSource.js +1 -1
- package/lodash/_trimmedEndIndex.js +1 -1
- package/lodash/_unescapeHtmlChar.js +1 -1
- package/lodash/_unicodeSize.js +1 -1
- package/lodash/_unicodeToArray.js +1 -1
- package/lodash/_unicodeWords.js +1 -1
- package/lodash/_updateWrapDetails.js +1 -1
- package/lodash/_wrapperClone.js +1 -1
- package/lodash/add.js +1 -1
- package/lodash/after.js +1 -1
- package/lodash/array.default.js +13 -13
- package/lodash/array.js +8 -8
- package/lodash/ary.js +1 -1
- package/lodash/assign.js +9 -9
- package/lodash/assignIn.js +5 -5
- package/lodash/assignInWith.js +5 -5
- package/lodash/assignWith.js +6 -6
- package/lodash/at.js +1 -1
- package/lodash/attempt.js +1 -1
- package/lodash/before.js +1 -1
- package/lodash/bind.js +8 -8
- package/lodash/bindAll.js +1 -1
- package/lodash/bindKey.js +8 -8
- package/lodash/camelCase.js +5 -5
- package/lodash/capitalize.js +1 -1
- package/lodash/castArray.js +1 -1
- package/lodash/ceil.js +1 -1
- package/lodash/chain.js +1 -1
- package/lodash/chunk.js +5 -5
- package/lodash/clamp.js +4 -4
- package/lodash/clone.js +1 -1
- package/lodash/cloneDeep.js +1 -1
- package/lodash/cloneDeepWith.js +1 -1
- package/lodash/cloneWith.js +1 -1
- package/lodash/collection.default.js +1 -1
- package/lodash/collection.js +1 -1
- package/lodash/commit.js +1 -1
- package/lodash/compact.js +1 -1
- package/lodash/concat.js +4 -4
- package/lodash/cond.js +9 -9
- package/lodash/conforms.js +1 -1
- package/lodash/conformsTo.js +1 -1
- package/lodash/constant.js +1 -1
- package/lodash/countBy.js +1 -1
- package/lodash/create.js +1 -1
- package/lodash/curry.js +1 -1
- package/lodash/curryRight.js +1 -1
- package/lodash/date.default.js +1 -1
- package/lodash/date.js +1 -1
- package/lodash/debounce.js +1 -1
- package/lodash/deburr.js +1 -1
- package/lodash/defaultTo.js +1 -1
- package/lodash/defaults.js +10 -10
- package/lodash/defaultsDeep.js +1 -1
- package/lodash/defer.js +5 -5
- package/lodash/delay.js +6 -6
- package/lodash/difference.js +5 -5
- package/lodash/differenceBy.js +9 -9
- package/lodash/differenceWith.js +8 -8
- package/lodash/divide.js +1 -1
- package/lodash/drop.js +1 -1
- package/lodash/dropRight.js +1 -1
- package/lodash/dropRightWhile.js +1 -1
- package/lodash/dropWhile.js +1 -1
- package/lodash/each.js +1 -1
- package/lodash/eachRight.js +1 -1
- package/lodash/endsWith.js +6 -6
- package/lodash/entries.js +1 -1
- package/lodash/entriesIn.js +1 -1
- package/lodash/eq.js +1 -1
- package/lodash/escape.js +1 -1
- package/lodash/escapeRegExp.js +1 -1
- package/lodash/every.js +8 -8
- package/lodash/extend.js +1 -1
- package/lodash/extendWith.js +1 -1
- package/lodash/fill.js +4 -4
- package/lodash/filter.js +6 -6
- package/lodash/find.js +1 -1
- package/lodash/findIndex.js +5 -5
- package/lodash/findKey.js +5 -5
- package/lodash/findLast.js +1 -1
- package/lodash/findLastIndex.js +4 -4
- package/lodash/findLastKey.js +5 -5
- package/lodash/first.js +1 -1
- package/lodash/flatMap.js +1 -1
- package/lodash/flatMapDeep.js +1 -1
- package/lodash/flatMapDepth.js +1 -1
- package/lodash/flatten.js +1 -1
- package/lodash/flattenDeep.js +1 -1
- package/lodash/flattenDepth.js +1 -1
- package/lodash/flip.js +1 -1
- package/lodash/floor.js +1 -1
- package/lodash/flow.js +1 -1
- package/lodash/flowRight.js +1 -1
- package/lodash/forEach.js +4 -4
- package/lodash/forEachRight.js +6 -6
- package/lodash/forIn.js +4 -4
- package/lodash/forInRight.js +4 -4
- package/lodash/forOwn.js +1 -1
- package/lodash/forOwnRight.js +4 -4
- package/lodash/fromPairs.js +1 -1
- package/lodash/function.default.js +21 -21
- package/lodash/function.js +12 -12
- package/lodash/functions.js +1 -1
- package/lodash/functionsIn.js +1 -1
- package/lodash/get.js +1 -1
- package/lodash/groupBy.js +1 -1
- package/lodash/gt.js +1 -1
- package/lodash/gte.js +1 -1
- package/lodash/has.js +4 -4
- package/lodash/hasIn.js +1 -1
- package/lodash/head.js +1 -1
- package/lodash/identity.js +1 -1
- package/lodash/inRange.js +1 -1
- package/lodash/includes.js +8 -8
- package/lodash/index.js +226 -226
- package/lodash/indexOf.js +5 -5
- package/lodash/initial.js +1 -1
- package/lodash/intersection.js +6 -6
- package/lodash/intersectionBy.js +8 -8
- package/lodash/intersectionWith.js +6 -6
- package/lodash/invert.js +1 -1
- package/lodash/invertBy.js +1 -1
- package/lodash/invoke.js +4 -4
- package/lodash/invokeMap.js +9 -9
- package/lodash/isArguments.js +1 -1
- package/lodash/isArray.js +1 -1
- package/lodash/isArrayBuffer.js +1 -1
- package/lodash/isArrayLike.js +1 -1
- package/lodash/isArrayLikeObject.js +1 -1
- package/lodash/isBoolean.js +1 -1
- package/lodash/isBuffer.js +1 -1
- package/lodash/isDate.js +1 -1
- package/lodash/isElement.js +1 -1
- package/lodash/isEmpty.js +10 -10
- package/lodash/isEqual.js +1 -1
- package/lodash/isEqualWith.js +1 -1
- package/lodash/isError.js +1 -1
- package/lodash/isFinite.js +1 -1
- package/lodash/isFunction.js +1 -1
- package/lodash/isInteger.js +1 -1
- package/lodash/isLength.js +3 -6
- package/lodash/isMap.js +1 -1
- package/lodash/isMatch.js +1 -1
- package/lodash/isMatchWith.js +1 -1
- package/lodash/isNaN.js +1 -1
- package/lodash/isNative.js +1 -1
- package/lodash/isNil.js +1 -1
- package/lodash/isNull.js +1 -1
- package/lodash/isNumber.js +1 -1
- package/lodash/isObject.js +1 -1
- package/lodash/isObjectLike.js +1 -1
- package/lodash/isPlainObject.js +1 -1
- package/lodash/isPromise.js +1 -1
- package/lodash/isRegExp.js +1 -1
- package/lodash/isSafeInteger.js +1 -1
- package/lodash/isSet.js +1 -1
- package/lodash/isString.js +1 -1
- package/lodash/isSymbol.js +1 -1
- package/lodash/isTypedArray.js +1 -1
- package/lodash/isUndefined.js +1 -1
- package/lodash/isWeakMap.js +1 -1
- package/lodash/isWeakSet.js +1 -1
- package/lodash/iteratee.js +1 -1
- package/lodash/join.js +1 -1
- package/lodash/kebabCase.js +1 -1
- package/lodash/keyBy.js +1 -1
- package/lodash/keys.js +5 -5
- package/lodash/keysIn.js +4 -4
- package/lodash/lang.default.js +63 -63
- package/lodash/lang.js +33 -33
- package/lodash/last.js +1 -1
- package/lodash/lastIndexOf.js +5 -5
- package/lodash/lodash.default.js +89 -89
- package/lodash/lodash.js +226 -226
- package/lodash/lowerCase.js +1 -1
- package/lodash/lowerFirst.js +1 -1
- package/lodash/lt.js +4 -4
- package/lodash/lte.js +1 -1
- package/lodash/map.js +4 -4
- package/lodash/mapKeys.js +4 -4
- package/lodash/mapValues.js +4 -4
- package/lodash/matches.js +1 -1
- package/lodash/matchesProperty.js +1 -1
- package/lodash/math.default.js +1 -1
- package/lodash/math.js +1 -1
- package/lodash/max.js +4 -4
- package/lodash/maxBy.js +4 -4
- package/lodash/mean.js +1 -1
- package/lodash/meanBy.js +1 -1
- package/lodash/memoize.js +1 -1
- package/lodash/merge.js +5 -5
- package/lodash/mergeWith.js +5 -5
- package/lodash/method.js +5 -5
- package/lodash/methodOf.js +5 -5
- package/lodash/min.js +5 -5
- package/lodash/minBy.js +5 -5
- package/lodash/mixin.js +11 -11
- package/lodash/multiply.js +1 -1
- package/lodash/negate.js +10 -13
- package/lodash/next.js +1 -1
- package/lodash/noop.js +1 -1
- package/lodash/now.js +1 -1
- package/lodash/nth.js +1 -1
- package/lodash/nthArg.js +5 -5
- package/lodash/number.default.js +1 -1
- package/lodash/number.js +1 -1
- package/lodash/object.default.js +53 -53
- package/lodash/object.js +26 -26
- package/lodash/omit.js +10 -10
- package/lodash/omitBy.js +1 -1
- package/lodash/once.js +1 -1
- package/lodash/orderBy.js +1 -1
- package/lodash/over.js +1 -1
- package/lodash/overArgs.js +11 -11
- package/lodash/overEvery.js +1 -1
- package/lodash/overSome.js +1 -1
- package/lodash/pad.js +4 -4
- package/lodash/padEnd.js +4 -4
- package/lodash/padStart.js +4 -4
- package/lodash/parseInt.js +1 -1
- package/lodash/partial.js +7 -7
- package/lodash/partialRight.js +7 -7
- package/lodash/partition.js +1 -1
- package/lodash/pick.js +5 -5
- package/lodash/pickBy.js +1 -1
- package/lodash/plant.js +1 -1
- package/lodash/property.js +5 -5
- package/lodash/propertyOf.js +1 -1
- package/lodash/pull.js +1 -1
- package/lodash/pullAll.js +1 -1
- package/lodash/pullAllBy.js +1 -1
- package/lodash/pullAllWith.js +1 -1
- package/lodash/pullAt.js +10 -10
- package/lodash/random.js +6 -6
- package/lodash/range.js +1 -1
- package/lodash/rangeRight.js +1 -1
- package/lodash/rearg.js +5 -5
- package/lodash/reduce.js +4 -4
- package/lodash/reduceRight.js +6 -6
- package/lodash/reject.js +6 -6
- package/lodash/remove.js +1 -1
- package/lodash/repeat.js +6 -6
- package/lodash/replace.js +1 -1
- package/lodash/rest.js +1 -1
- package/lodash/result.js +1 -1
- package/lodash/reverse.js +1 -1
- package/lodash/round.js +1 -1
- package/lodash/sample.js +1 -1
- package/lodash/sampleSize.js +6 -6
- package/lodash/seq.default.js +1 -1
- package/lodash/seq.js +1 -1
- package/lodash/set.js +1 -1
- package/lodash/setWith.js +1 -1
- package/lodash/shuffle.js +1 -1
- package/lodash/size.js +7 -7
- package/lodash/slice.js +4 -4
- package/lodash/snakeCase.js +1 -1
- package/lodash/some.js +7 -7
- package/lodash/sortBy.js +8 -8
- package/lodash/sortedIndex.js +1 -1
- package/lodash/sortedIndexBy.js +1 -1
- package/lodash/sortedIndexOf.js +1 -1
- package/lodash/sortedLastIndex.js +1 -1
- package/lodash/sortedLastIndexBy.js +1 -1
- package/lodash/sortedLastIndexOf.js +1 -1
- package/lodash/sortedUniq.js +1 -1
- package/lodash/sortedUniqBy.js +1 -1
- package/lodash/split.js +5 -5
- package/lodash/spread.js +8 -8
- package/lodash/startCase.js +5 -5
- package/lodash/startsWith.js +5 -5
- package/lodash/string.default.js +9 -9
- package/lodash/string.js +6 -6
- package/lodash/stubArray.js +1 -1
- package/lodash/stubFalse.js +1 -1
- package/lodash/stubObject.js +1 -1
- package/lodash/stubString.js +1 -1
- package/lodash/stubTrue.js +1 -1
- package/lodash/subtract.js +1 -1
- package/lodash/sum.js +1 -1
- package/lodash/sumBy.js +1 -1
- package/lodash/tail.js +1 -1
- package/lodash/take.js +1 -1
- package/lodash/takeRight.js +1 -1
- package/lodash/takeRightWhile.js +1 -1
- package/lodash/takeWhile.js +1 -1
- package/lodash/tap.js +1 -1
- package/lodash/template.js +17 -17
- package/lodash/templateSettings.js +9 -9
- package/lodash/throttle.js +1 -1
- package/lodash/thru.js +1 -1
- package/lodash/times.js +5 -5
- package/lodash/toArray.js +12 -12
- package/lodash/toFinite.js +1 -1
- package/lodash/toInteger.js +1 -1
- package/lodash/toIterator.js +1 -1
- package/lodash/toJSON.js +1 -1
- package/lodash/toLength.js +4 -4
- package/lodash/toLower.js +1 -1
- package/lodash/toNumber.js +8 -8
- package/lodash/toPairs.js +1 -1
- package/lodash/toPairsIn.js +1 -1
- package/lodash/toPath.js +5 -5
- package/lodash/toPlainObject.js +1 -1
- package/lodash/toSafeInteger.js +4 -4
- package/lodash/toString.js +1 -1
- package/lodash/toUpper.js +1 -1
- package/lodash/transform.js +13 -13
- package/lodash/trim.js +9 -9
- package/lodash/trimEnd.js +8 -8
- package/lodash/trimStart.js +5 -5
- package/lodash/truncate.js +14 -14
- package/lodash/unary.js +1 -1
- package/lodash/unescape.js +1 -1
- package/lodash/union.js +6 -6
- package/lodash/unionBy.js +7 -7
- package/lodash/unionWith.js +7 -7
- package/lodash/uniq.js +1 -1
- package/lodash/uniqBy.js +1 -1
- package/lodash/uniqWith.js +1 -1
- package/lodash/uniqueId.js +1 -1
- package/lodash/unset.js +1 -1
- package/lodash/unzip.js +6 -6
- package/lodash/unzipWith.js +5 -5
- package/lodash/update.js +4 -4
- package/lodash/updateWith.js +4 -4
- package/lodash/upperCase.js +1 -1
- package/lodash/upperFirst.js +1 -1
- package/lodash/util.default.js +17 -17
- package/lodash/util.js +10 -10
- package/lodash/value.js +1 -1
- package/lodash/valueOf.js +1 -1
- package/lodash/values.js +1 -1
- package/lodash/valuesIn.js +1 -1
- package/lodash/without.js +5 -5
- package/lodash/words.js +4 -4
- package/lodash/wrap.js +1 -1
- package/lodash/wrapperAt.js +1 -1
- package/lodash/wrapperChain.js +1 -1
- package/lodash/wrapperLodash.js +12 -12
- package/lodash/wrapperReverse.js +1 -1
- package/lodash/wrapperValue.js +1 -1
- package/lodash/xor.js +6 -6
- package/lodash/xorBy.js +7 -7
- package/lodash/xorWith.js +7 -7
- package/lodash/zip.js +1 -1
- package/lodash/zipObject.js +1 -1
- package/lodash/zipObjectDeep.js +4 -4
- package/lodash/zipWith.js +1 -1
- package/math/index.js +1 -1
- package/md5/index.js +1 -1
- package/mock/MockWebSocket.js +1 -1
- package/mock/MockXMLHttpRequest.js +1 -1
- package/mock/index.js +1 -1
- package/mousetrap/index.js +1 -1
- package/mousetrap/plugins/bind-dictionary/index.js +1 -1
- package/mousetrap/plugins/global-bind/index.js +1 -1
- package/mousetrap/plugins/index.js +1 -1
- package/mousetrap/plugins/pause/index.js +1 -1
- package/mousetrap/plugins/record/index.js +1 -1
- package/normalize-wheel/ExecutionEnvironment.js +2 -2
- package/normalize-wheel/UserAgent_DEPRECATED.js +1 -1
- package/normalize-wheel/index.js +1 -1
- package/normalize-wheel/isEventSupported.js +1 -1
- package/number-to-chinese/index.js +1 -1
- package/nzh/cn.js +1 -1
- package/nzh/hk.js +1 -1
- package/nzh/index.js +1 -1
- package/nzh/nzh.js +1 -1
- package/nzh/src/autoGet.js +1 -1
- package/nzh/src/index.js +1 -1
- package/nzh/src/langs/cn_b.js +1 -1
- package/nzh/src/langs/cn_s.js +1 -1
- package/nzh/src/langs/hk_b.js +1 -1
- package/nzh/src/langs/hk_s.js +1 -1
- package/nzh/src/utils.js +1 -1
- package/object/index.js +1 -1
- package/package.json +1 -1
- package/pinyin/index.js +1 -1
- package/pinyin/lib/common/constant.js +1 -1
- package/pinyin/lib/common/segmentit/AC.js +5 -2
- package/pinyin/lib/common/segmentit/TrieNode.js +7 -1
- package/pinyin/lib/common/segmentit/index.js +1 -1
- package/pinyin/lib/common/segmentit/max-probability.js +1 -1
- package/pinyin/lib/common/segmentit/min-tokenization.js +1 -1
- package/pinyin/lib/common/segmentit/reverse-max-match.js +1 -1
- package/pinyin/lib/common/utils.js +3 -1
- package/pinyin/lib/core/convert/index.js +1 -1
- package/pinyin/lib/core/custom/index.js +1 -1
- package/pinyin/lib/core/dict/index.js +1 -1
- package/pinyin/lib/core/html/index.js +1 -1
- package/pinyin/lib/core/match/index.js +1 -1
- package/pinyin/lib/core/pinyin/handle.js +1 -1
- package/pinyin/lib/core/pinyin/index.js +1 -1
- package/pinyin/lib/core/pinyin/middlewares.js +1 -1
- package/pinyin/lib/core/polyphonic/index.js +1 -1
- package/pinyin/lib/core/segment/index.js +1 -1
- package/pinyin/lib/core/segment/middlewares.js +14 -14
- package/pinyin/lib/core/traditional/index.js +1 -1
- package/pinyin/lib/data/dict1.js +1 -1
- package/pinyin/lib/data/dict2.js +1 -1
- package/pinyin/lib/data/dict3.js +1 -1
- package/pinyin/lib/data/dict4.js +1 -1
- package/pinyin/lib/data/dict5.js +1 -1
- package/pinyin/lib/data/special.js +1 -1
- package/pinyin/lib/data/surname.js +1 -1
- package/pinyin/lib/index.js +1 -1
- package/query-string/index.js +1 -1
- package/random/address.js +2 -2
- package/random/constellation.js +2 -2
- package/random/image.js +1 -1
- package/random/index.js +1 -1
- package/random/licensePlate.js +2 -2
- package/random/name.js +2 -2
- package/random/number.js +1 -1
- package/random/text.js +2 -2
- package/random/time.js +1 -1
- package/random/web.js +3 -3
- package/request/apiReplaceSegment.js +1 -1
- package/request/index.js +1 -1
- package/sanitize-url/index.js +1 -1
- package/screenfull/index.js +2 -2
- package/sleep/index.js +1 -1
- package/snapdom/index.browser.js +1 -1
- package/snapdom/index.js +1 -1
- package/snapdom/src/api/preCache.d.ts +1 -1
- package/snapdom/src/api/preCache.js +1 -1
- package/snapdom/src/api/snapdom.js +10 -3
- package/snapdom/src/core/cache.js +1 -1
- package/snapdom/src/core/capture.d.ts +2 -0
- package/snapdom/src/core/capture.js +110 -105
- package/snapdom/src/core/clone.js +1 -1
- package/snapdom/src/core/context.d.ts +2 -0
- package/snapdom/src/core/context.js +2 -1
- package/snapdom/src/core/plugins.js +1 -1
- package/snapdom/src/core/prepare.js +1 -1
- package/snapdom/src/exporters/download.js +2 -2
- package/snapdom/src/exporters/toBlob.js +1 -1
- package/snapdom/src/exporters/toCanvas.js +1 -1
- package/snapdom/src/exporters/toImg.js +1 -1
- package/snapdom/src/index.browser.js +1 -1
- package/snapdom/src/index.js +1 -1
- package/snapdom/src/modules/CSSVar.js +2 -2
- package/snapdom/src/modules/background.js +45 -36
- package/snapdom/src/modules/changeCSS.js +1 -1
- package/snapdom/src/modules/compress.d.ts +53 -0
- package/snapdom/src/modules/compress.js +118 -0
- package/snapdom/src/modules/counter.js +1 -1
- package/snapdom/src/modules/fonts.js +3 -3
- package/snapdom/src/modules/iconFonts.js +1 -1
- package/snapdom/src/modules/images.js +53 -47
- package/snapdom/src/modules/lineClamp.js +1 -1
- package/snapdom/src/modules/pictureResolver.js +1 -1
- package/snapdom/src/modules/pseudo.js +1 -1
- package/snapdom/src/modules/rasterize.js +1 -1
- package/snapdom/src/modules/snapFetch.js +1 -1
- package/snapdom/src/modules/styles.js +57 -50
- package/snapdom/src/modules/svgDefs.js +1 -1
- package/snapdom/src/utils/browser.js +1 -1
- package/snapdom/src/utils/capture.helpers.js +3 -3
- package/snapdom/src/utils/clone.helpers.js +1 -1
- package/snapdom/src/utils/css.d.ts +13 -1
- package/snapdom/src/utils/css.js +84 -49
- package/snapdom/src/utils/debug.js +1 -1
- package/snapdom/src/utils/helpers.js +1 -1
- package/snapdom/src/utils/image.js +1 -1
- package/snapdom/src/utils/index.d.ts +1 -1
- package/snapdom/src/utils/index.js +1 -1
- package/snapdom/src/utils/prepare.helpers.js +1 -1
- package/snapdom/src/utils/transforms.helpers.js +1 -1
- package/string/chars.js +1 -1
- package/string/index.d.ts +1 -1
- package/string/index.js +2 -2
- package/tinycolor/conversion.js +1 -1
- package/tinycolor/css-color-names.js +1 -1
- package/tinycolor/format-input.js +1 -1
- package/tinycolor/from-ratio.js +1 -1
- package/tinycolor/index.js +10 -1
- package/tinycolor/interfaces.js +1 -1
- package/tinycolor/public_api.js +1 -1
- package/tinycolor/random.js +1 -1
- package/tinycolor/readability.js +1 -1
- package/tinycolor/to-ms-filter.js +1 -1
- package/tinycolor/umd_api.js +1 -1
- package/tinycolor/utils.js +1 -1
- package/tree/index.js +1 -1
- package/tree/searchTree.js +1 -1
- package/tween/easing.js +1 -1
- package/tween/index.js +1 -1
- package/tween/tween.js +1 -1
- package/ui-color/compareColorByRange.js +1 -1
- package/ui-color/index.js +1 -1
- package/url-toolkit/index.js +1 -1
- package/validate/index.js +10 -1
- package/validate/interface.js +1 -1
- package/validate/locale/en-US.js +12 -12
- package/validate/locale/index.js +1 -1
- package/validate/locale/zh-CN.js +12 -12
- package/validate/rules/array.js +1 -1
- package/validate/rules/base.js +34 -25
- package/validate/rules/boolean.js +1 -1
- package/validate/rules/custom.js +1 -1
- package/validate/rules/number.js +1 -1
- package/validate/rules/object.js +1 -1
- package/validate/rules/string.js +1 -1
- package/validate/rules/type.js +14 -14
- package/version/index.js +1 -1
- package/xlsx/crc32.js +2 -2
- package/xlsx/index.js +1 -1
- package/xlsx/xlsx.js +16 -16
- package/.vite/license.md +0 -3
- package/.vite/manifest.json +0 -10603
- package/dom-align/LICENSE.md +0 -20
- package/dom-align/adjustForViewport.d.ts +0 -2
- package/dom-align/adjustForViewport.js +0 -13
- package/dom-align/align/align.d.ts +0 -15
- package/dom-align/align/align.js +0 -88
- package/dom-align/align/alignElement.d.ts +0 -16
- package/dom-align/align/alignElement.js +0 -18
- package/dom-align/align/alignPoint.d.ts +0 -14
- package/dom-align/align/alignPoint.js +0 -21
- package/dom-align/getAlignOffset.d.ts +0 -8
- package/dom-align/getAlignOffset.js +0 -12
- package/dom-align/getElFuturePos.d.ts +0 -5
- package/dom-align/getElFuturePos.js +0 -13
- package/dom-align/getOffsetParent.d.ts +0 -2
- package/dom-align/getOffsetParent.js +0 -14
- package/dom-align/getRegion.d.ts +0 -5
- package/dom-align/getRegion.js +0 -18
- package/dom-align/getVisibleRectForElement.d.ts +0 -10
- package/dom-align/getVisibleRectForElement.js +0 -34
- package/dom-align/index.d.ts +0 -4
- package/dom-align/index.js +0 -8
- package/dom-align/isAncestorFixed.d.ts +0 -1
- package/dom-align/isAncestorFixed.js +0 -13
- package/dom-align/propertyUtils.d.ts +0 -8
- package/dom-align/propertyUtils.js +0 -57
- package/dom-align/utils.d.ts +0 -28
- package/dom-align/utils.js +0 -220
- package/is/lib/isPort.js +0 -8
- package/snapdom/src/core/exporters.d.ts +0 -33
- /package/{constant → constants}/address.d.ts +0 -0
- /package/{constant → constants}/chineseCharacters.d.ts +0 -0
- /package/{constant → constants}/constellations.d.ts +0 -0
- /package/{constant → constants}/domain.d.ts +0 -0
- /package/{constant → constants}/identity.d.ts +0 -0
- /package/{constant → constants}/index.d.ts +0 -0
- /package/{constant → constants}/keyboardCode.d.ts +0 -0
- /package/{constant → constants}/licensePlate.d.ts +0 -0
- /package/{constant → constants}/name.d.ts +0 -0
- /package/{constant → constants}/platform.d.ts +0 -0
- /package/{constant → constants}/protocol.d.ts +0 -0
- /package/{constant → constants}/string.d.ts +0 -0
- /package/{constant → constants}/ui.d.ts +0 -0
- /package/is/{lib → libs}/isAscii.d.ts +0 -0
- /package/is/{lib → libs}/isBase64.d.ts +0 -0
- /package/is/{lib → libs}/isChinese.d.ts +0 -0
- /package/is/{lib → libs}/isDataURI.d.ts +0 -0
- /package/is/{lib → libs}/isEmail.d.ts +0 -0
- /package/is/{lib → libs}/isFQDN.d.ts +0 -0
- /package/is/{lib → libs}/isFullWidth.d.ts +0 -0
- /package/is/{lib → libs}/isHSL.d.ts +0 -0
- /package/is/{lib → libs}/isHalfWidth.d.ts +0 -0
- /package/is/{lib → libs}/isHash.d.ts +0 -0
- /package/is/{lib → libs}/isHexColor.d.ts +0 -0
- /package/is/{lib → libs}/isIMEI.d.ts +0 -0
- /package/is/{lib → libs}/isIP.d.ts +0 -0
- /package/is/{lib → libs}/isIPRange.d.ts +0 -0
- /package/is/{lib → libs}/isIdentityCard.d.ts +0 -0
- /package/is/{lib → libs}/isJWT.d.ts +0 -0
- /package/is/{lib → libs}/isMACAddress.d.ts +0 -0
- /package/is/{lib → libs}/isMD5.d.ts +0 -0
- /package/is/{lib → libs}/isMimeType.d.ts +0 -0
- /package/is/{lib → libs}/isMobilePhone.d.ts +0 -0
- /package/is/{lib → libs}/isOctal.d.ts +0 -0
- /package/is/{lib → libs}/isPort.d.ts +0 -0
- /package/is/{lib → libs}/isRgbColor.d.ts +0 -0
- /package/is/{lib → libs}/isSemVer.d.ts +0 -0
- /package/is/{lib → libs}/isSlug.d.ts +0 -0
- /package/is/{lib → libs}/isStrongPassword.d.ts +0 -0
- /package/is/{lib → libs}/isURL.d.ts +0 -0
- /package/is/{lib → libs}/isUUID.d.ts +0 -0
- /package/is/{lib → libs}/isVariableWidth.d.ts +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-26 17:14:46 星期五 山东省济南市 */
|
|
2
2
|
import { cache as e } from "../core/cache.js";
|
|
3
|
-
import { getStyle as t, getStyleKey as n, shouldIgnoreProp as r } from "../utils/css.js";
|
|
3
|
+
import { getStyle as t, getStyleKey as n, shouldIgnoreProp as r, softensWidth as i } from "../utils/css.js";
|
|
4
4
|
import "../utils/index.js";
|
|
5
5
|
//#region utils/snapdom/src/modules/styles.js
|
|
6
|
-
var
|
|
7
|
-
function
|
|
8
|
-
|
|
6
|
+
var a = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new Map(), s = 2e3, c = 0;
|
|
7
|
+
function l() {
|
|
8
|
+
c++, o.size > s && o.clear();
|
|
9
9
|
}
|
|
10
|
-
var
|
|
11
|
-
function
|
|
12
|
-
if (!
|
|
13
|
-
|
|
10
|
+
var u = !1;
|
|
11
|
+
function d(e = document.documentElement) {
|
|
12
|
+
if (!u) {
|
|
13
|
+
u = !0;
|
|
14
14
|
try {
|
|
15
|
-
new MutationObserver(() =>
|
|
15
|
+
new MutationObserver(() => l()).observe(e, {
|
|
16
16
|
subtree: !0,
|
|
17
17
|
childList: !0,
|
|
18
18
|
characterData: !0,
|
|
@@ -20,7 +20,7 @@ function u(e = document.documentElement) {
|
|
|
20
20
|
});
|
|
21
21
|
} catch {}
|
|
22
22
|
try {
|
|
23
|
-
new MutationObserver(() =>
|
|
23
|
+
new MutationObserver(() => l()).observe(document.head, {
|
|
24
24
|
subtree: !0,
|
|
25
25
|
childList: !0,
|
|
26
26
|
characterData: !0,
|
|
@@ -29,11 +29,11 @@ function u(e = document.documentElement) {
|
|
|
29
29
|
} catch {}
|
|
30
30
|
try {
|
|
31
31
|
let e = document.fonts;
|
|
32
|
-
e && (e.addEventListener?.("loadingdone",
|
|
32
|
+
e && (e.addEventListener?.("loadingdone", l), e.ready?.then(() => l()).catch(() => {}));
|
|
33
33
|
} catch {}
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function f(e, t = {}) {
|
|
37
37
|
let n = {}, i = e.getPropertyValue("visibility"), a = t.excludeStyleProps;
|
|
38
38
|
for (let t = 0; t < e.length; t++) {
|
|
39
39
|
let i = e[t];
|
|
@@ -86,27 +86,32 @@ function d(e, t = {}) {
|
|
|
86
86
|
}
|
|
87
87
|
return n;
|
|
88
88
|
}
|
|
89
|
-
var f = /* @__PURE__ */ new WeakMap();
|
|
90
89
|
function p(e) {
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
if (e.firstElementChild) return !0;
|
|
91
|
+
for (let t = e.firstChild; t; t = t.nextSibling) if (t.nodeType === 3 && /\S/.test(t.nodeValue || "")) return !0;
|
|
92
|
+
return !1;
|
|
93
93
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
94
|
+
var m = /* @__PURE__ */ new WeakMap();
|
|
95
|
+
function h(e) {
|
|
96
|
+
let t = m.get(e);
|
|
97
|
+
return t || (t = Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : +(e[0] > t[0])).map(([e, t]) => `${e}:${t}`).join(";"), m.set(e, t), t);
|
|
98
|
+
}
|
|
99
|
+
function g(e, t = null, n = {}) {
|
|
100
|
+
let r = a.get(e), i = !!(n && n.embedFonts), o = n && n.excludeStyleProps || null;
|
|
101
|
+
if (r && r.epoch === c && r.embedFonts === i && r.excludeStyleProps === o) return r.snapshot;
|
|
102
|
+
let s = t || getComputedStyle(e), l = f(s, n);
|
|
103
|
+
return w(e, s, l), a.set(e, {
|
|
104
|
+
epoch: c,
|
|
100
105
|
snapshot: l,
|
|
101
|
-
embedFonts:
|
|
106
|
+
embedFonts: i,
|
|
102
107
|
excludeStyleProps: o
|
|
103
108
|
}), l;
|
|
104
109
|
}
|
|
105
|
-
function
|
|
110
|
+
function _(t, n) {
|
|
106
111
|
return t && t.session && t.persist ? t : t && (t.styleMap || t.styleCache || t.nodeMap) ? {
|
|
107
112
|
session: t,
|
|
108
113
|
persist: {
|
|
109
|
-
snapshotKeyCache:
|
|
114
|
+
snapshotKeyCache: o,
|
|
110
115
|
defaultStyle: e.defaultStyle,
|
|
111
116
|
baseStyle: e.baseStyle,
|
|
112
117
|
image: e.image,
|
|
@@ -118,7 +123,7 @@ function h(t, n) {
|
|
|
118
123
|
} : {
|
|
119
124
|
session: e.session,
|
|
120
125
|
persist: {
|
|
121
|
-
snapshotKeyCache:
|
|
126
|
+
snapshotKeyCache: o,
|
|
122
127
|
defaultStyle: e.defaultStyle,
|
|
123
128
|
baseStyle: e.baseStyle,
|
|
124
129
|
image: e.image,
|
|
@@ -129,54 +134,56 @@ function h(t, n) {
|
|
|
129
134
|
options: t || n || {}
|
|
130
135
|
};
|
|
131
136
|
}
|
|
132
|
-
function
|
|
137
|
+
function v(e, t, n) {
|
|
133
138
|
if (!(!e.style || e.style.length === 0)) for (let r = 0; r < e.style.length; r++) {
|
|
134
139
|
let i = e.style[r], a = n.getPropertyValue(i);
|
|
135
140
|
a && t.style.setProperty(i, a);
|
|
136
141
|
}
|
|
137
142
|
}
|
|
138
|
-
async function
|
|
143
|
+
async function y(e, t, r, a) {
|
|
139
144
|
if (e.tagName === "STYLE") return;
|
|
140
|
-
let
|
|
141
|
-
|
|
142
|
-
let { session:
|
|
143
|
-
if (!
|
|
145
|
+
let s = _(r, a), c = s.options && s.options.cache || "auto";
|
|
146
|
+
c !== "disabled" && d(document.documentElement), c === "disabled" && !s.session.__bumpedForDisabled && (l(), o.clear(), s.session.__bumpedForDisabled = !0);
|
|
147
|
+
let { session: u, persist: f } = s;
|
|
148
|
+
if (!u.styleCache.has(e)) {
|
|
144
149
|
let t = null;
|
|
145
150
|
try {
|
|
146
151
|
t = getComputedStyle(e);
|
|
147
152
|
} catch {}
|
|
148
|
-
|
|
153
|
+
u.styleCache.set(e, t || getComputedStyle(document.documentElement));
|
|
149
154
|
}
|
|
150
|
-
let
|
|
151
|
-
e.getAttribute?.("style") &&
|
|
152
|
-
let
|
|
153
|
-
if (b
|
|
154
|
-
let e =
|
|
155
|
-
(!e || e === "auto" || e === "0px") && (
|
|
155
|
+
let m = u.styleCache.get(e);
|
|
156
|
+
e.getAttribute?.("style") && v(e, t, m);
|
|
157
|
+
let y = g(e, m, s.options), b = S(e);
|
|
158
|
+
if (b) {
|
|
159
|
+
let e = m.getPropertyValue("min-width");
|
|
160
|
+
(!e || e === "auto" || e === "0px") && (y["min-width"] = "0px");
|
|
156
161
|
}
|
|
157
|
-
let
|
|
158
|
-
y || (
|
|
162
|
+
let x = e.tagName?.toLowerCase() || "div", C = h(y), w = !0;
|
|
163
|
+
i(x, (y.display || "").toLowerCase()) && (w = p(e), C = `${C}|${x}${w ? "|c" : ""}${b ? "|f" : ""}`);
|
|
164
|
+
let T = f.snapshotKeyCache.get(C);
|
|
165
|
+
T === void 0 && (T = n(y, x, w, b), f.snapshotKeyCache.set(C, T)), u.styleMap.set(t, T);
|
|
159
166
|
}
|
|
160
|
-
function
|
|
167
|
+
function b(e) {
|
|
161
168
|
return e instanceof HTMLImageElement || e instanceof HTMLCanvasElement || e instanceof HTMLVideoElement || e instanceof HTMLIFrameElement || e instanceof SVGElement || e instanceof HTMLObjectElement || e instanceof HTMLEmbedElement;
|
|
162
169
|
}
|
|
163
|
-
function
|
|
170
|
+
function x(e) {
|
|
164
171
|
return e.backgroundImage && e.backgroundImage !== "none" || e.backgroundColor && e.backgroundColor !== "rgba(0, 0, 0, 0)" && e.backgroundColor !== "transparent" || (parseFloat(e.borderTopWidth) || 0) > 0 || (parseFloat(e.borderBottomWidth) || 0) > 0 || (parseFloat(e.paddingTop) || 0) > 0 || (parseFloat(e.paddingBottom) || 0) > 0 ? !0 : (e.overflowBlock || e.overflowY || "visible") !== "visible";
|
|
165
172
|
}
|
|
166
|
-
function
|
|
173
|
+
function S(e) {
|
|
167
174
|
let n = e.parentElement;
|
|
168
175
|
if (!n) return !1;
|
|
169
176
|
let r = t(n).display || "";
|
|
170
177
|
return r.includes("flex") || r.includes("grid");
|
|
171
178
|
}
|
|
172
|
-
function
|
|
179
|
+
function C(e, t) {
|
|
173
180
|
if (e.textContent && /\S/.test(e.textContent)) return !0;
|
|
174
181
|
let n = e.firstElementChild, r = e.lastElementChild;
|
|
175
182
|
if (n && n.tagName === "BR" || r && r.tagName === "BR") return !0;
|
|
176
183
|
let i = e.scrollHeight;
|
|
177
184
|
return i === 0 ? !1 : i > (parseFloat(t.paddingTop) || 0) + (parseFloat(t.paddingBottom) || 0);
|
|
178
185
|
}
|
|
179
|
-
function
|
|
186
|
+
function w(e, t, n) {
|
|
180
187
|
if (e instanceof HTMLElement && e.style && e.style.height) return;
|
|
181
188
|
let r = e.tagName && e.tagName.toLowerCase();
|
|
182
189
|
if (!r || ![
|
|
@@ -192,14 +199,14 @@ function S(e, t, n) {
|
|
|
192
199
|
let i = parseFloat(t.height);
|
|
193
200
|
if (Number.isFinite(i) && e.scrollHeight > 0 && Math.abs(i - e.scrollHeight) > 2 || t.aspectRatio && t.aspectRatio !== "none" && t.aspectRatio !== "auto") return;
|
|
194
201
|
let a = t.display || "";
|
|
195
|
-
if (a.includes("flex") || a.includes("grid") ||
|
|
202
|
+
if (a.includes("flex") || a.includes("grid") || b(e)) return;
|
|
196
203
|
let o = t.position;
|
|
197
|
-
if (o === "absolute" || o === "fixed" || o === "sticky" || t.transform !== "none" ||
|
|
204
|
+
if (o === "absolute" || o === "fixed" || o === "sticky" || t.transform !== "none" || x(t) || S(e)) return;
|
|
198
205
|
let s = t.overflowX || t.overflow || "visible", c = t.overflowY || t.overflow || "visible";
|
|
199
206
|
if (s !== "visible" || c !== "visible") return;
|
|
200
207
|
let l = t.clip;
|
|
201
|
-
l && l !== "auto" && l !== "rect(auto, auto, auto, auto)" || t.visibility === "hidden" || t.opacity === "0" ||
|
|
208
|
+
l && l !== "auto" && l !== "rect(auto, auto, auto, auto)" || t.visibility === "hidden" || t.opacity === "0" || C(e, t) && (delete n.height, delete n["block-size"]);
|
|
202
209
|
}
|
|
203
210
|
//#endregion
|
|
204
|
-
export {
|
|
211
|
+
export { y as inlineAllStyles };
|
|
205
212
|
/* 独立思考,明辨是非 */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-26 17:14:46 星期五 山东省济南市 */
|
|
2
2
|
import { debugWarn as e } from "./debug.js";
|
|
3
3
|
import "./index.js";
|
|
4
4
|
//#region utils/snapdom/src/utils/capture.helpers.js
|
|
@@ -68,7 +68,7 @@ function a(e) {
|
|
|
68
68
|
for (let e of n) e.remove();
|
|
69
69
|
}
|
|
70
70
|
function o(e, t = {}) {
|
|
71
|
-
let { stripFrameworkDirectives: n = !0 } = t, r = new Set(["xml", "xlink"]), i = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT);
|
|
71
|
+
let { stripFrameworkDirectives: n = !0 } = t, r = /* @__PURE__ */ new Set(["xml", "xlink"]), i = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT);
|
|
72
72
|
for (; i.nextNode();) {
|
|
73
73
|
let e = i.currentNode;
|
|
74
74
|
for (let t of Array.from(e.attributes)) {
|
|
@@ -91,7 +91,7 @@ function o(e, t = {}) {
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
var s = /[\x00-\x08\x0B\x0C\x0E-\x1F
|
|
94
|
+
var s = /[\x00-\x08\x0B\x0C\x0E-\x1F\uFFFE\uFFFF]/g;
|
|
95
95
|
function c(e) {
|
|
96
96
|
if (!e) return;
|
|
97
97
|
let t = (e) => {
|
|
@@ -9,12 +9,24 @@ export function getDefaultStyleForTag(tagName: any): any;
|
|
|
9
9
|
* @returns {boolean}
|
|
10
10
|
*/
|
|
11
11
|
export function shouldIgnoreProp(prop: string): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Whether getStyleKey softens the width for this tag/display (inline-sized text tags, the table
|
|
14
|
+
* box tree, or any real inline box; never replaced elements). Exposed so the caller can skip the
|
|
15
|
+
* per-node content/flex bookkeeping for the vast majority of nodes that aren't affected.
|
|
16
|
+
* @param {string} tagName
|
|
17
|
+
* @param {string} display computed display (lowercase)
|
|
18
|
+
*/
|
|
19
|
+
export function softensWidth(tagName: string, display: string): boolean;
|
|
12
20
|
/**
|
|
13
21
|
* Builds a style key from a snapshot; returns "" for tags in NO_DEFAULTS_TAGS.
|
|
14
22
|
* @param {Record<string,string>} snapshot
|
|
15
23
|
* @param {string} tagName
|
|
24
|
+
* @param {boolean} [sizedByContent=true] whether the element is sized by its own content
|
|
25
|
+
* (text / child elements). Empty boxes sized by a CSS class keep their width verbatim.
|
|
26
|
+
* @param {boolean} [isFlexItem=false] whether the element is a flex/grid item — those must keep
|
|
27
|
+
* their natural ability to shrink (#406), so we never give them a synthesized min-width floor.
|
|
16
28
|
*/
|
|
17
|
-
export function getStyleKey(snapshot: Record<string, string>, tagName: string): string;
|
|
29
|
+
export function getStyleKey(snapshot: Record<string, string>, tagName: string, sizedByContent?: boolean, isFlexItem?: boolean): string;
|
|
18
30
|
/**
|
|
19
31
|
* Collects all unique tag names used in the DOM tree rooted at the given node.
|
|
20
32
|
*
|
package/snapdom/src/utils/css.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-26 17:14:46 星期五 山东省济南市 */
|
|
2
2
|
import { cache as e } from "../core/cache.js";
|
|
3
3
|
//#region utils/snapdom/src/utils/css.js
|
|
4
|
-
var t = new Set([
|
|
4
|
+
var t = /* @__PURE__ */ new Set([
|
|
5
5
|
"meta",
|
|
6
6
|
"script",
|
|
7
7
|
"noscript",
|
|
8
8
|
"title",
|
|
9
9
|
"link",
|
|
10
10
|
"template"
|
|
11
|
-
]), n = new Set([
|
|
11
|
+
]), n = /* @__PURE__ */ new Set([
|
|
12
12
|
"meta",
|
|
13
13
|
"link",
|
|
14
14
|
"style",
|
|
@@ -52,10 +52,10 @@ function a(t) {
|
|
|
52
52
|
let i = document.createElement(t);
|
|
53
53
|
i.style.all = "initial", r.appendChild(i);
|
|
54
54
|
let a = getComputedStyle(i), o = {};
|
|
55
|
-
for (let e of a)
|
|
55
|
+
for (let e of a) u(e) || (o[e] = a.getPropertyValue(e));
|
|
56
56
|
return r.removeChild(i), e.defaultStyle.set(t, o), o;
|
|
57
57
|
}
|
|
58
|
-
var o = /(?:^|-)(animation|transition)(?:-|$)/i, s = /^(--.+|view-timeline|scroll-timeline|animation-trigger|offset-|position-try|app-region|interactivity|overlay|view-transition|-webkit-locale|-webkit-user-(?:drag|modify)|-webkit-tap-highlight-color|-webkit-text-security)$/i, c = new Set([
|
|
58
|
+
var o = /(?:^|-)(animation|transition)(?:-|$)/i, s = /^(--.+|view-timeline|scroll-timeline|animation-trigger|offset-|position-try|app-region|interactivity|overlay|view-transition|-webkit-locale|-webkit-user-(?:drag|modify)|-webkit-tap-highlight-color|-webkit-text-security)$/i, c = /* @__PURE__ */ new Set([
|
|
59
59
|
"cursor",
|
|
60
60
|
"pointer-events",
|
|
61
61
|
"touch-action",
|
|
@@ -70,48 +70,83 @@ var o = /(?:^|-)(animation|transition)(?:-|$)/i, s = /^(--.+|view-timeline|scrol
|
|
|
70
70
|
"container-type",
|
|
71
71
|
"timeline-scope",
|
|
72
72
|
"zoom"
|
|
73
|
-
]);
|
|
74
|
-
function
|
|
75
|
-
let t =
|
|
76
|
-
|
|
73
|
+
]), l = /* @__PURE__ */ new Map();
|
|
74
|
+
function u(e) {
|
|
75
|
+
let t = l.get(e);
|
|
76
|
+
if (t === void 0) {
|
|
77
|
+
let n = String(e).toLowerCase();
|
|
78
|
+
t = c.has(n) || s.test(n) || o.test(n), l.set(e, t);
|
|
79
|
+
}
|
|
80
|
+
return t;
|
|
77
81
|
}
|
|
78
|
-
|
|
82
|
+
var d = /* @__PURE__ */ new Set([
|
|
83
|
+
"span",
|
|
84
|
+
"small",
|
|
85
|
+
"em",
|
|
86
|
+
"strong",
|
|
87
|
+
"b",
|
|
88
|
+
"i",
|
|
89
|
+
"u",
|
|
90
|
+
"s",
|
|
91
|
+
"code",
|
|
92
|
+
"cite",
|
|
93
|
+
"mark",
|
|
94
|
+
"sub",
|
|
95
|
+
"sup"
|
|
96
|
+
]), f = /* @__PURE__ */ new Set([
|
|
97
|
+
"table",
|
|
98
|
+
"thead",
|
|
99
|
+
"tbody",
|
|
100
|
+
"tfoot",
|
|
101
|
+
"tr",
|
|
102
|
+
"td",
|
|
103
|
+
"th"
|
|
104
|
+
]), p = /* @__PURE__ */ new Set([
|
|
105
|
+
"img",
|
|
106
|
+
"video",
|
|
107
|
+
"canvas",
|
|
108
|
+
"svg",
|
|
109
|
+
"iframe",
|
|
110
|
+
"embed",
|
|
111
|
+
"object",
|
|
112
|
+
"input",
|
|
113
|
+
"textarea",
|
|
114
|
+
"select"
|
|
115
|
+
]), m = /* @__PURE__ */ new Set([
|
|
116
|
+
"width",
|
|
117
|
+
"max-width",
|
|
118
|
+
"inline-size",
|
|
119
|
+
"max-inline-size"
|
|
120
|
+
]), h = /* @__PURE__ */ new Set(["min-width", "min-inline-size"]);
|
|
121
|
+
function g(e, t) {
|
|
122
|
+
return !p.has(e) && (t === "inline" || d.has(e) || f.has(e));
|
|
123
|
+
}
|
|
124
|
+
function _(e, t, r = !0, i = !1) {
|
|
79
125
|
if (t = String(t || "").toLowerCase(), n.has(t)) return "";
|
|
80
|
-
let
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
"sub",
|
|
93
|
-
"sup"
|
|
94
|
-
]), c = new Set([
|
|
95
|
-
"table",
|
|
96
|
-
"thead",
|
|
97
|
-
"tbody",
|
|
98
|
-
"tfoot",
|
|
99
|
-
"tr",
|
|
100
|
-
"td",
|
|
101
|
-
"th"
|
|
102
|
-
]), u = o || s.has(t) || c.has(t), d = (e) => e === "width" || e === "min-width" || e === "max-width" || e === "inline-size" || e === "min-inline-size" || e === "max-inline-size";
|
|
103
|
-
for (let [t, n] of Object.entries(e)) {
|
|
104
|
-
if (l(t) || u && d(t)) continue;
|
|
105
|
-
let e = i[t];
|
|
106
|
-
n && n !== e && r.push(`${t}:${n}`);
|
|
126
|
+
let o = [], s = a(t), c = (e.display || "").toLowerCase(), l = c === "inline", d = g(t, c) && r, f = !1;
|
|
127
|
+
for (let t in e) {
|
|
128
|
+
if (u(t)) continue;
|
|
129
|
+
let n = e[t];
|
|
130
|
+
if (d) {
|
|
131
|
+
if (m.has(t)) continue;
|
|
132
|
+
if (h.has(t)) {
|
|
133
|
+
n && n !== s[t] && (o.push(`${t}:${n}`), n !== "auto" && (f = !0));
|
|
134
|
+
continue;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
n && n !== s[t] && o.push(`${t}:${n}`);
|
|
107
138
|
}
|
|
108
|
-
|
|
139
|
+
if (d && !l && !i && !f) {
|
|
140
|
+
let t = e.width;
|
|
141
|
+
t && t !== "auto" && t !== s.width && o.push(`min-width:${t}`);
|
|
142
|
+
}
|
|
143
|
+
return o.sort(), o.join(";");
|
|
109
144
|
}
|
|
110
|
-
function
|
|
145
|
+
function v(e) {
|
|
111
146
|
let t = /* @__PURE__ */ new Set();
|
|
112
147
|
return e.nodeType !== Node.ELEMENT_NODE && e.nodeType !== Node.DOCUMENT_FRAGMENT_NODE ? [] : (e.tagName && t.add(e.tagName.toLowerCase()), typeof e.querySelectorAll == "function" && e.querySelectorAll("*").forEach((e) => t.add(e.tagName.toLowerCase())), Array.from(t));
|
|
113
148
|
}
|
|
114
|
-
function
|
|
149
|
+
function y(t) {
|
|
115
150
|
let n = /* @__PURE__ */ new Map();
|
|
116
151
|
for (let r of t) {
|
|
117
152
|
let t = e.defaultStyle.get(r);
|
|
@@ -123,12 +158,12 @@ function f(t) {
|
|
|
123
158
|
for (let [e, t] of n.entries()) r += `${t.join(",")} { ${e} }\n`;
|
|
124
159
|
return r;
|
|
125
160
|
}
|
|
126
|
-
function
|
|
161
|
+
function b(e) {
|
|
127
162
|
let t = Array.from(new Set(e.values())).filter(Boolean).sort(), n = /* @__PURE__ */ new Map(), r = 1;
|
|
128
163
|
for (let e of t) n.set(e, `c${r++}`);
|
|
129
164
|
return n;
|
|
130
165
|
}
|
|
131
|
-
function
|
|
166
|
+
function x(e) {
|
|
132
167
|
try {
|
|
133
168
|
let t = e?.ownerDocument;
|
|
134
169
|
if (!t) return typeof window < "u" ? window : null;
|
|
@@ -140,7 +175,7 @@ function m(e) {
|
|
|
140
175
|
} catch {}
|
|
141
176
|
return typeof window < "u" ? window : null;
|
|
142
177
|
}
|
|
143
|
-
function
|
|
178
|
+
function S(t, n = null) {
|
|
144
179
|
let r = () => {
|
|
145
180
|
let e = {
|
|
146
181
|
length: 0,
|
|
@@ -162,7 +197,7 @@ function h(t, n = null) {
|
|
|
162
197
|
i || (i = /* @__PURE__ */ new Map(), e.computedStyle.set(t, i));
|
|
163
198
|
let a = i.get(n);
|
|
164
199
|
if (!a) {
|
|
165
|
-
let e =
|
|
200
|
+
let e = x(t), o = null;
|
|
166
201
|
try {
|
|
167
202
|
o = e && typeof e.getComputedStyle == "function" ? e.getComputedStyle(t, n) : null;
|
|
168
203
|
} catch {}
|
|
@@ -173,22 +208,22 @@ function h(t, n = null) {
|
|
|
173
208
|
}
|
|
174
209
|
return a;
|
|
175
210
|
}
|
|
176
|
-
var
|
|
211
|
+
var C = [
|
|
177
212
|
"top",
|
|
178
213
|
"right",
|
|
179
214
|
"bottom",
|
|
180
215
|
"left"
|
|
181
216
|
];
|
|
182
|
-
function
|
|
217
|
+
function w(e) {
|
|
183
218
|
let t = {};
|
|
184
219
|
for (let n of e) t[n] = e.getPropertyValue(n);
|
|
185
|
-
for (let e of
|
|
220
|
+
for (let e of C) {
|
|
186
221
|
let n = t[`border-${e}-style`];
|
|
187
222
|
(n === "none" || n === "hidden" || t[`border-${e}-width`] === "0px") && (delete t[`border-${e}-style`], delete t[`border-${e}-width`], delete t[`border-${e}-color`]);
|
|
188
223
|
}
|
|
189
224
|
return t;
|
|
190
225
|
}
|
|
191
|
-
function
|
|
226
|
+
function T(e) {
|
|
192
227
|
let t = [], n = 0, r = 0;
|
|
193
228
|
for (let i = 0; i < e.length; i++) {
|
|
194
229
|
let a = e[i];
|
|
@@ -197,5 +232,5 @@ function v(e) {
|
|
|
197
232
|
return t.push(e.slice(r).trim()), t;
|
|
198
233
|
}
|
|
199
234
|
//#endregion
|
|
200
|
-
export { t as NO_CAPTURE_TAGS, n as NO_DEFAULTS_TAGS,
|
|
235
|
+
export { t as NO_CAPTURE_TAGS, n as NO_DEFAULTS_TAGS, v as collectUsedTagNames, b as generateCSSClasses, y as generateDedupedBaseCSS, a as getDefaultStyleForTag, S as getStyle, _ as getStyleKey, i as precacheCommonTags, u as shouldIgnoreProp, w as snapshotComputedStyle, g as softensWidth, T as splitBackgroundImage };
|
|
201
236
|
/* 独立思考,明辨是非 */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-26 17:14:46 星期五 山东省济南市 */
|
|
2
2
|
import { cache as e } from "../core/cache.js";
|
|
3
3
|
import { extractURL as t, resolveURL as n, safeEncodeURI as r } from "./helpers.js";
|
|
4
4
|
import { snapFetch as i } from "../modules/snapFetch.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { debugWarn } from "./debug.js";
|
|
2
2
|
export { inlineSingleBackgroundEntry } from "./image.js";
|
|
3
3
|
export { idle, isIOS, isSafari } from "./browser.js";
|
|
4
|
-
export { collectUsedTagNames, generateCSSClasses, generateDedupedBaseCSS, getDefaultStyleForTag, getStyle, getStyleKey, NO_CAPTURE_TAGS, NO_DEFAULTS_TAGS, parseContent, precacheCommonTags, shouldIgnoreProp, snapshotComputedStyle, splitBackgroundImage } from "./css.js";
|
|
4
|
+
export { collectUsedTagNames, generateCSSClasses, generateDedupedBaseCSS, getDefaultStyleForTag, getStyle, getStyleKey, NO_CAPTURE_TAGS, NO_DEFAULTS_TAGS, parseContent, precacheCommonTags, shouldIgnoreProp, snapshotComputedStyle, softensWidth, splitBackgroundImage } from "./css.js";
|
|
5
5
|
export { extractURL, isIconFont, resolveURL, safeEncodeURI, stripTranslate } from "./helpers.js";
|
package/string/chars.js
CHANGED
package/string/index.d.ts
CHANGED
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
* @returns {string}
|
|
7
7
|
*/
|
|
8
8
|
export function convertSubstrToSubstring(str: string, start: number, length: number): string;
|
|
9
|
-
import { HYPHEN } from '../
|
|
9
|
+
import { HYPHEN } from '../constants/string.js';
|
|
10
10
|
export function replaceEmptyWithHyphen(params: any): any;
|
|
11
11
|
export { HYPHEN };
|
package/string/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-26 17:14:46 星期五 山东省济南市 */
|
|
2
2
|
import { isEmptyArray as e, isNil as t, isString as n, isUndefined as r } from "../is/index.js";
|
|
3
|
-
import { HYPHEN as i } from "../
|
|
3
|
+
import { HYPHEN as i } from "../constants/string.js";
|
|
4
4
|
//#region utils/string/index.js
|
|
5
5
|
function a(e, t, n) {
|
|
6
6
|
return t < 0 && (t = Math.max(0, e.length + t)), r(n) ? e.substring(t) : e.substring(t, t + n);
|
package/tinycolor/conversion.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-26 17:14:46 星期五 山东省济南市 */
|
|
2
2
|
import { hasOwn as e } from "../object/index.js";
|
|
3
3
|
import { boundAlpha as t, convertToPercentage as n } from "./utils.js";
|
|
4
4
|
import { cmykToRgb as r, convertHexToDecimal as i, hslToRgb as a, hsvToRgb as o, parseIntFromHex as s, rgbToRgb as c } from "./conversion.js";
|
package/tinycolor/from-ratio.js
CHANGED
package/tinycolor/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-26 17:14:46 星期五 山东省济南市 */
|
|
2
2
|
import { bound01 as e, boundAlpha as t, clamp01 as n, convertToPercentage as r, isOnePointZero as i, isPercentage as a, pad2 as o } from "./utils.js";
|
|
3
3
|
import { cmykToRgb as s, convertDecimalToHex as c, convertHexToDecimal as l, hslToRgb as u, hsvToRgb as d, numberInputToObject as f, parseIntFromHex as p, rgbToCmyk as m, rgbToHex as h, rgbToHsl as g, rgbToHsv as _, rgbToRgb as v, rgbaToArgbHex as y, rgbaToHex as b } from "./conversion.js";
|
|
4
4
|
import { names as x } from "./css-color-names.js";
|
|
@@ -10,6 +10,15 @@ import "./public_api.js";
|
|
|
10
10
|
import { fromRatio as j, legacyRandom as M } from "./from-ratio.js";
|
|
11
11
|
//#region utils/tinycolor/index.ts
|
|
12
12
|
var N = class r {
|
|
13
|
+
r;
|
|
14
|
+
g;
|
|
15
|
+
b;
|
|
16
|
+
a;
|
|
17
|
+
format;
|
|
18
|
+
originalInput;
|
|
19
|
+
isValid;
|
|
20
|
+
gradientType;
|
|
21
|
+
roundA;
|
|
13
22
|
constructor(e = "", t = {}) {
|
|
14
23
|
if (e instanceof r) return e;
|
|
15
24
|
typeof e == "number" && (e = f(e)), this.originalInput = e;
|
package/tinycolor/interfaces.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-26 17:14:46 星期五 山东省济南市 */
|
|
2
2
|
/* 独立思考,明辨是非 */
|
package/tinycolor/public_api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-06-17
|
|
1
|
+
/* 潘启宝 2026-06-26 17:14:46 星期五 山东省济南市 */
|
|
2
2
|
import { bound01 as e, boundAlpha as t, clamp01 as n, convertToPercentage as r, isOnePointZero as i, isPercentage as a, pad2 as o } from "./utils.js";
|
|
3
3
|
import { cmykToRgb as s, convertDecimalToHex as c, convertHexToDecimal as l, hslToRgb as u, hsvToRgb as d, numberInputToObject as f, parseIntFromHex as p, rgbToCmyk as m, rgbToHex as h, rgbToHsl as g, rgbToHsv as _, rgbToRgb as v, rgbaToArgbHex as y, rgbaToHex as b } from "./conversion.js";
|
|
4
4
|
import { names as x } from "./css-color-names.js";
|
package/tinycolor/random.js
CHANGED