@unicom-cloud/utils 0.1.40 → 0.1.41
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/.vite/manifest.json +17 -8
- 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/address.js +1 -1
- package/constant/chineseCharacters.js +1 -1
- package/constant/constellations.js +1 -1
- package/constant/domain.js +1 -1
- package/constant/identity.js +1 -1
- package/constant/index.js +1 -1
- package/constant/isMobile.js +1 -1
- package/constant/keyboardCode.js +1 -1
- package/constant/licensePlate.js +1 -1
- package/constant/name.js +1 -1
- package/constant/platform.js +1 -1
- package/constant/protocol.js +1 -1
- package/constant/string.js +1 -1
- package/constant/ui.js +1 -1
- 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/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/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.js +1 -1
- 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/file/fileRead.js +1 -1
- package/file/fileToDataURL.js +1 -1
- package/file/index.js +1 -1
- package/file/saveAs.js +1 -1
- package/filesize/constants.js +1 -1
- package/filesize/filesize.js +1 -1
- package/filesize/helpers.js +1 -1
- package/filesize/index.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 +10 -9
- package/is/index.d.ts +41 -18
- package/is/index.js +10 -4
- package/is/lib/isAscii.js +1 -1
- package/is/lib/isBase64.js +1 -1
- package/is/lib/isChinese.js +1 -1
- package/is/lib/isDataURI.js +1 -1
- package/is/lib/isEmail.js +1 -1
- package/is/lib/isFQDN.js +1 -1
- package/is/lib/isFullWidth.js +1 -1
- package/is/lib/isHSL.js +1 -1
- package/is/lib/isHalfWidth.js +1 -1
- package/is/lib/isHash.js +1 -1
- package/is/lib/isHexColor.js +1 -1
- package/is/lib/isIMEI.js +1 -1
- package/is/lib/isIP.js +1 -1
- package/is/lib/isIPRange.js +1 -1
- package/is/lib/isIdentityCard.js +1 -1
- package/is/lib/isJWT.js +1 -1
- package/is/lib/isMACAddress.js +1 -1
- package/is/lib/isMD5.js +1 -1
- package/is/lib/isMimeType.js +1 -1
- package/is/lib/isMobilePhone.js +1 -1
- package/is/lib/isPort.js +1 -1
- package/is/lib/isRgbColor.js +1 -1
- package/is/lib/isSemVer.js +1 -1
- package/is/lib/isSlug.js +1 -1
- package/is/lib/isStrongPassword.js +1 -1
- package/is/lib/isURL.js +1 -1
- package/is/lib/isUUID.js +1 -1
- package/is/lib/isVariableWidth.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/lodash/_assignValue.js +1 -1
- package/lodash/_assocIndexOf.js +1 -1
- package/lodash/_baseAggregator.js +1 -1
- package/lodash/_baseAssign.js +1 -1
- 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 +1 -1
- package/lodash/_baseConforms.js +1 -1
- package/lodash/_baseConformsTo.js +1 -1
- package/lodash/_baseCreate.js +1 -1
- package/lodash/_baseDelay.js +1 -1
- package/lodash/_baseDifference.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/lodash/_baseMergeDeep.js +1 -1
- package/lodash/_baseNth.js +1 -1
- package/lodash/_baseOrderBy.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/lodash/_baseRest.js +1 -1
- package/lodash/_baseSample.js +1 -1
- package/lodash/_baseSampleSize.js +1 -1
- package/lodash/_baseSet.js +1 -1
- package/lodash/_baseSetData.js +1 -1
- package/lodash/_baseSetToString.js +1 -1
- package/lodash/_baseShuffle.js +1 -1
- 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 +1 -1
- package/lodash/_baseTrim.js +1 -1
- package/lodash/_baseUnary.js +1 -1
- package/lodash/_baseUniq.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/lodash/_cloneRegExp.js +1 -1
- package/lodash/_cloneSet.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/lodash/_createFind.js +1 -1
- package/lodash/_createFlow.js +1 -1
- package/lodash/_createHybrid.js +1 -1
- package/lodash/_createInverter.js +1 -1
- package/lodash/_createMathOperation.js +1 -1
- package/lodash/_createOver.js +1 -1
- package/lodash/_createPadding.js +1 -1
- package/lodash/_createPartial.js +1 -1
- package/lodash/_createRange.js +1 -1
- package/lodash/_createRecurry.js +1 -1
- package/lodash/_createRelationalOperation.js +1 -1
- package/lodash/_createRound.js +1 -1
- package/lodash/_createSet.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/lodash/_getTag.js +1 -1
- package/lodash/_getValue.js +1 -1
- package/lodash/_getView.js +1 -1
- package/lodash/_getWrapDetails.js +1 -1
- package/lodash/_hasPath.js +1 -1
- package/lodash/_hasUnicode.js +1 -1
- package/lodash/_hasUnicodeWord.js +1 -1
- package/lodash/_hashClear.js +1 -1
- package/lodash/_hashDelete.js +2 -2
- package/lodash/_hashGet.js +1 -1
- package/lodash/_hashHas.js +1 -1
- package/lodash/_hashSet.js +2 -2
- 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 +1 -1
- package/lodash/_isIndex.js +1 -1
- package/lodash/_isIterateeCall.js +1 -1
- package/lodash/_isKey.js +1 -1
- 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 +2 -2
- 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 +1 -1
- package/lodash/_replaceHolders.js +1 -1
- package/lodash/_root.js +1 -1
- package/lodash/_safeGet.js +1 -1
- package/lodash/_setCacheAdd.js +1 -1
- package/lodash/_setCacheHas.js +1 -1
- package/lodash/_setData.js +1 -1
- package/lodash/_setToArray.js +1 -1
- package/lodash/_setToPairs.js +1 -1
- package/lodash/_setToString.js +1 -1
- package/lodash/_setWrapToString.js +1 -1
- package/lodash/_shortOut.js +1 -1
- 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 +1 -1
- package/lodash/_stringToArray.js +1 -1
- 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 +1 -1
- package/lodash/array.js +1 -1
- package/lodash/ary.js +1 -1
- package/lodash/assign.js +1 -1
- package/lodash/assignIn.js +1 -1
- package/lodash/assignInWith.js +1 -1
- package/lodash/assignWith.js +1 -1
- package/lodash/at.js +1 -1
- package/lodash/attempt.js +1 -1
- package/lodash/before.js +1 -1
- package/lodash/bind.js +1 -1
- package/lodash/bindAll.js +1 -1
- package/lodash/bindKey.js +1 -1
- package/lodash/camelCase.js +1 -1
- 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 +1 -1
- package/lodash/clamp.js +1 -1
- 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 +1 -1
- package/lodash/cond.js +1 -1
- 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 +1 -1
- package/lodash/defaultsDeep.js +1 -1
- package/lodash/defer.js +1 -1
- package/lodash/delay.js +1 -1
- package/lodash/difference.js +1 -1
- package/lodash/differenceBy.js +1 -1
- package/lodash/differenceWith.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/lodash/extend.js +1 -1
- package/lodash/extendWith.js +1 -1
- package/lodash/fill.js +1 -1
- package/lodash/filter.js +1 -1
- package/lodash/find.js +1 -1
- package/lodash/findIndex.js +1 -1
- package/lodash/findKey.js +1 -1
- package/lodash/findLast.js +1 -1
- package/lodash/findLastIndex.js +1 -1
- package/lodash/findLastKey.js +1 -1
- 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 +1 -1
- package/lodash/forEachRight.js +1 -1
- package/lodash/forIn.js +1 -1
- package/lodash/forInRight.js +1 -1
- package/lodash/forOwn.js +1 -1
- package/lodash/forOwnRight.js +1 -1
- package/lodash/fromPairs.js +1 -1
- package/lodash/function.default.js +1 -1
- package/lodash/function.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/lodash/index.js +1 -1
- package/lodash/indexOf.js +1 -1
- package/lodash/initial.js +1 -1
- package/lodash/intersection.js +1 -1
- package/lodash/intersectionBy.js +1 -1
- package/lodash/intersectionWith.js +1 -1
- package/lodash/invert.js +1 -1
- package/lodash/invertBy.js +1 -1
- package/lodash/invoke.js +1 -1
- package/lodash/invokeMap.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/lodash/keysIn.js +1 -1
- package/lodash/lang.default.js +1 -1
- package/lodash/lang.js +1 -1
- package/lodash/last.js +1 -1
- package/lodash/lastIndexOf.js +1 -1
- package/lodash/lodash.default.js +1 -1
- package/lodash/lodash.js +1 -1
- package/lodash/lowerCase.js +1 -1
- package/lodash/lowerFirst.js +1 -1
- package/lodash/lt.js +1 -1
- package/lodash/lte.js +1 -1
- package/lodash/map.js +1 -1
- package/lodash/mapKeys.js +1 -1
- package/lodash/mapValues.js +1 -1
- 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 +1 -1
- package/lodash/maxBy.js +1 -1
- package/lodash/mean.js +1 -1
- package/lodash/meanBy.js +1 -1
- package/lodash/memoize.js +1 -1
- package/lodash/merge.js +1 -1
- package/lodash/mergeWith.js +1 -1
- package/lodash/method.js +1 -1
- package/lodash/methodOf.js +1 -1
- package/lodash/min.js +1 -1
- package/lodash/minBy.js +1 -1
- package/lodash/mixin.js +1 -1
- package/lodash/multiply.js +1 -1
- package/lodash/negate.js +1 -1
- 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 +1 -1
- package/lodash/number.default.js +1 -1
- package/lodash/number.js +1 -1
- package/lodash/object.default.js +1 -1
- package/lodash/object.js +1 -1
- package/lodash/omit.js +1 -1
- 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 +1 -1
- package/lodash/overEvery.js +1 -1
- package/lodash/overSome.js +1 -1
- package/lodash/pad.js +1 -1
- package/lodash/padEnd.js +1 -1
- package/lodash/padStart.js +1 -1
- package/lodash/parseInt.js +1 -1
- package/lodash/partial.js +1 -1
- package/lodash/partialRight.js +1 -1
- package/lodash/partition.js +2 -2
- package/lodash/pick.js +1 -1
- package/lodash/pickBy.js +1 -1
- package/lodash/plant.js +1 -1
- package/lodash/property.js +1 -1
- 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 +1 -1
- package/lodash/random.js +1 -1
- package/lodash/range.js +1 -1
- package/lodash/rangeRight.js +1 -1
- package/lodash/rearg.js +1 -1
- package/lodash/reduce.js +1 -1
- package/lodash/reduceRight.js +1 -1
- package/lodash/reject.js +1 -1
- package/lodash/remove.js +1 -1
- package/lodash/repeat.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/lodash/slice.js +1 -1
- package/lodash/snakeCase.js +1 -1
- package/lodash/some.js +1 -1
- package/lodash/sortBy.js +1 -1
- 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 +1 -1
- package/lodash/spread.js +1 -1
- package/lodash/startCase.js +1 -1
- package/lodash/startsWith.js +1 -1
- package/lodash/string.default.js +1 -1
- package/lodash/string.js +1 -1
- 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 +1 -1
- package/lodash/templateSettings.js +1 -1
- package/lodash/throttle.js +1 -1
- package/lodash/thru.js +1 -1
- package/lodash/times.js +1 -1
- package/lodash/toArray.js +1 -1
- 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 +1 -1
- package/lodash/toLower.js +1 -1
- package/lodash/toNumber.js +1 -1
- package/lodash/toPairs.js +1 -1
- package/lodash/toPairsIn.js +1 -1
- package/lodash/toPath.js +1 -1
- package/lodash/toPlainObject.js +1 -1
- package/lodash/toSafeInteger.js +1 -1
- package/lodash/toString.js +1 -1
- package/lodash/toUpper.js +1 -1
- package/lodash/transform.js +1 -1
- package/lodash/trim.js +1 -1
- package/lodash/trimEnd.js +1 -1
- package/lodash/trimStart.js +1 -1
- package/lodash/truncate.js +1 -1
- package/lodash/unary.js +1 -1
- package/lodash/unescape.js +1 -1
- package/lodash/union.js +1 -1
- package/lodash/unionBy.js +1 -1
- package/lodash/unionWith.js +1 -1
- 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 +1 -1
- package/lodash/unzipWith.js +1 -1
- package/lodash/update.js +1 -1
- package/lodash/updateWith.js +1 -1
- package/lodash/upperCase.js +1 -1
- package/lodash/upperFirst.js +1 -1
- package/lodash/util.default.js +1 -1
- package/lodash/util.js +1 -1
- 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 +1 -1
- package/lodash/words.js +1 -1
- package/lodash/wrap.js +1 -1
- package/lodash/wrapperAt.js +2 -2
- package/lodash/wrapperChain.js +1 -1
- package/lodash/wrapperLodash.js +1 -1
- package/lodash/wrapperReverse.js +1 -1
- package/lodash/wrapperValue.js +1 -1
- package/lodash/xor.js +1 -1
- package/lodash/xorBy.js +1 -1
- package/lodash/xorWith.js +1 -1
- package/lodash/zip.js +1 -1
- package/lodash/zipObject.js +1 -1
- package/lodash/zipObjectDeep.js +1 -1
- 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/normalize-wheel/ExecutionEnvironment.js +1 -1
- 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/core.js +1 -1
- package/pinyin/index.js +1 -1
- package/pinyin/simplified.js +1 -1
- package/pinyin/simplified_dict.js +1 -1
- package/pinyin/traditional.js +1 -1
- package/pinyin/traditional_dict.js +1 -1
- package/query-string/base.js +134 -133
- package/query-string/index.js +1 -1
- package/query-string/splitOnFirst.js +1 -1
- package/random/address.js +1 -1
- package/random/constellation.js +1 -1
- package/random/image.js +1 -1
- package/random/index.js +1 -1
- package/random/licensePlate.js +1 -1
- package/random/name.js +1 -1
- package/random/number.js +1 -1
- package/random/text.js +32 -32
- package/random/time.js +1 -1
- package/random/web.js +1 -1
- package/sanitize-url/index.js +1 -1
- package/screenfull/index.js +1 -1
- package/sleep/index.js +1 -1
- package/snapdom/api/preCache.js +1 -1
- package/snapdom/api/snapdom.js +84 -103
- package/snapdom/core/cache.js +1 -1
- package/snapdom/core/capture.js +74 -65
- package/snapdom/core/clone.js +1 -1
- package/snapdom/core/context.d.ts +9 -0
- package/snapdom/core/context.js +4 -2
- package/snapdom/core/plugins.js +5 -2
- package/snapdom/core/prepare.js +1 -1
- package/snapdom/exporters/download.js +1 -1
- package/snapdom/exporters/toBlob.js +1 -1
- package/snapdom/exporters/toCanvas.js +1 -1
- package/snapdom/exporters/toImg.js +2 -2
- package/snapdom/index.browser.js +1 -1
- package/snapdom/index.js +1 -1
- package/snapdom/modules/CSSVar.js +1 -1
- package/snapdom/modules/background.js +1 -1
- package/snapdom/modules/changeCSS.js +1 -1
- package/snapdom/modules/counter.js +1 -1
- package/snapdom/modules/fonts.js +1 -1
- package/snapdom/modules/iconFonts.js +27 -24
- package/snapdom/modules/images.js +1 -1
- package/snapdom/modules/lineClamp.js +1 -1
- package/snapdom/modules/pictureResolver.d.ts +42 -0
- package/snapdom/modules/pictureResolver.js +131 -0
- package/snapdom/modules/pseudo.js +1 -1
- package/snapdom/modules/rasterize.js +1 -1
- package/snapdom/modules/snapFetch.js +1 -1
- package/snapdom/modules/styles.js +2 -2
- package/snapdom/modules/svgDefs.js +1 -1
- package/snapdom/utils/browser.js +1 -1
- package/snapdom/utils/capture.helpers.js +1 -1
- package/snapdom/utils/clone.helpers.js +1 -1
- package/snapdom/utils/css.js +1 -1
- package/snapdom/utils/debug.js +1 -1
- package/snapdom/utils/helpers.js +1 -1
- package/snapdom/utils/image.js +1 -1
- package/snapdom/utils/index.js +1 -1
- package/snapdom/utils/prepare.helpers.js +1 -1
- package/snapdom/utils/transforms.helpers.js +1 -1
- package/string/chars.js +1 -1
- package/string/index.js +7 -7
- 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 +1 -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 +1 -1
- package/validate/interface.js +1 -1
- package/validate/locale/en-US.js +1 -1
- package/validate/locale/index.js +1 -1
- package/validate/locale/zh-CN.js +1 -1
- package/validate/rules/array.js +1 -1
- package/validate/rules/base.js +1 -1
- 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 +1 -1
- package/version/index.js +1 -1
- package/xlsx/crc32.js +1 -1
- package/xlsx/index.js +1 -1
- package/xlsx/xlsx.js +25 -25
package/snapdom/modules/fonts.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-04-
|
|
1
|
+
/* 潘启宝 2026-04-14 16:53:57 星期二 */
|
|
2
2
|
//#region utils/snapdom/modules/iconFonts.js
|
|
3
3
|
var e = [
|
|
4
4
|
/font\s*awesome/i,
|
|
@@ -18,32 +18,35 @@ var e = [
|
|
|
18
18
|
materialIconsSharp: "https://fonts.gstatic.com/s/materialiconssharp/v110/oPWQ_lt5nv4pWNJpghLP75WiFR4kLh3kvmvRImcycg.woff2"
|
|
19
19
|
}, typeof window < "u" && window.__SNAPDOM_ICON_FONTS__ || {}), n = [];
|
|
20
20
|
function r(e) {
|
|
21
|
+
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
22
|
+
}
|
|
23
|
+
function i(e) {
|
|
21
24
|
let t = Array.isArray(e) ? e : [e];
|
|
22
|
-
for (let e of t) e instanceof RegExp ? n.push(e) : typeof e == "string" ? n.push(new RegExp(e, "i")) : console.warn("[snapdom] Ignored invalid iconFont value:", e);
|
|
25
|
+
for (let e of t) e instanceof RegExp ? n.push(e) : typeof e == "string" ? n.push(new RegExp(r(e), "i")) : console.warn("[snapdom] Ignored invalid iconFont value:", e);
|
|
23
26
|
}
|
|
24
|
-
function
|
|
27
|
+
function a(t) {
|
|
25
28
|
let r = typeof t == "string" ? t : "", i = [...e, ...n];
|
|
26
29
|
for (let e of i) if (e instanceof RegExp && e.test(r)) return !0;
|
|
27
30
|
return !!(/icon/i.test(r) || /glyph/i.test(r) || /symbols/i.test(r) || /feather/i.test(r) || /fontawesome/i.test(r));
|
|
28
31
|
}
|
|
29
|
-
function
|
|
32
|
+
function o(e = "") {
|
|
30
33
|
let t = String(e).toLowerCase();
|
|
31
34
|
return /\bmaterial\s*icons\b/.test(t) || /\bmaterial\s*symbols\b/.test(t);
|
|
32
35
|
}
|
|
33
|
-
var
|
|
34
|
-
function
|
|
36
|
+
var s = /* @__PURE__ */ new Map();
|
|
37
|
+
function c(e = "") {
|
|
35
38
|
let t = Object.create(null), n = String(e || ""), r = /['"]?\s*([A-Za-z]{3,4})\s*['"]?\s*([+-]?\d+(?:\.\d+)?)\s*/g, i;
|
|
36
39
|
for (; i = r.exec(n);) t[i[1].toUpperCase()] = Number(i[2]);
|
|
37
40
|
return t;
|
|
38
41
|
}
|
|
39
|
-
async function
|
|
40
|
-
let i = String(e || ""), a = i.toLowerCase(),
|
|
42
|
+
async function l(e, n, r) {
|
|
43
|
+
let i = String(e || ""), a = i.toLowerCase(), o = String(n || "").toLowerCase();
|
|
41
44
|
if (/\bmaterial\s*icons\b/.test(a) && !/\bsymbols\b/.test(a) || !/\bmaterial\s*symbols\b/.test(a)) return {
|
|
42
45
|
familyForMeasure: i,
|
|
43
46
|
familyForCanvas: i
|
|
44
47
|
};
|
|
45
48
|
let c = r && (r.FILL ?? r.fill), l = "outlined";
|
|
46
|
-
/\brounded\b/.test(
|
|
49
|
+
/\brounded\b/.test(o) || /\bround\b/.test(o) ? l = "rounded" : /\bsharp\b/.test(o) ? l = "sharp" : /\boutlined\b/.test(o) && (l = "outlined");
|
|
47
50
|
let u = c === 1, d = null;
|
|
48
51
|
if (u && (l === "outlined" && t.materialIconsFilled ? d = {
|
|
49
52
|
url: t.materialIconsFilled,
|
|
@@ -58,12 +61,12 @@ async function c(e, n, r) {
|
|
|
58
61
|
familyForMeasure: i,
|
|
59
62
|
familyForCanvas: i
|
|
60
63
|
};
|
|
61
|
-
if (!
|
|
64
|
+
if (!s.has(d.alias)) try {
|
|
62
65
|
let e = new FontFace(d.alias, `url(${d.url})`, {
|
|
63
66
|
style: "normal",
|
|
64
67
|
weight: "400"
|
|
65
68
|
});
|
|
66
|
-
document.fonts.add(e), await e.load(),
|
|
69
|
+
document.fonts.add(e), await e.load(), s.set(d.alias, !0);
|
|
67
70
|
} catch {
|
|
68
71
|
return {
|
|
69
72
|
familyForMeasure: i,
|
|
@@ -76,20 +79,20 @@ async function c(e, n, r) {
|
|
|
76
79
|
familyForCanvas: f
|
|
77
80
|
};
|
|
78
81
|
}
|
|
79
|
-
async function
|
|
82
|
+
async function u(e = "Material Icons", t = 24) {
|
|
80
83
|
try {
|
|
81
84
|
await Promise.all([document.fonts.load(`400 ${t}px "${String(e).replace(/["']/g, "")}"`), document.fonts.ready]);
|
|
82
85
|
} catch {}
|
|
83
86
|
}
|
|
84
|
-
function
|
|
87
|
+
function d(e) {
|
|
85
88
|
let t = e.getPropertyValue("-webkit-text-fill-color")?.trim() || "", n = /^transparent$/i.test(t) || /rgba?\(\s*0\s*,\s*0\s*,\s*0\s*,\s*0\s*\)/i.test(t);
|
|
86
89
|
if (t && !n && t.toLowerCase() !== "currentcolor") return t;
|
|
87
90
|
let r = e.color?.trim();
|
|
88
91
|
return r && r !== "inherit" ? r : "#000";
|
|
89
92
|
}
|
|
90
|
-
async function
|
|
91
|
-
let
|
|
92
|
-
await
|
|
93
|
+
async function f(e, { family: t = "Material Icons", weight: n = "normal", fontSize: r = 32, color: i = "#000", variation: a = "", className: o = "" } = {}) {
|
|
94
|
+
let s = String(t || "").replace(/^['"]+|['"]+$/g, ""), d = window.devicePixelRatio || 1, { familyForMeasure: f, familyForCanvas: p } = await l(s, o, c(a));
|
|
95
|
+
await u(p.replace(/^["']+|["']+$/g, ""), r);
|
|
93
96
|
let m = document.createElement("span");
|
|
94
97
|
m.textContent = e, m.style.position = "absolute", m.style.visibility = "hidden", m.style.left = "-99999px", m.style.whiteSpace = "nowrap", m.style.fontFamily = f, m.style.fontWeight = String(n || "normal"), m.style.fontSize = `${r}px`, m.style.lineHeight = "1", m.style.margin = "0", m.style.padding = "0", m.style.fontFeatureSettings = "'liga' 1", m.style.fontVariantLigatures = "normal", m.style.color = i, document.body.appendChild(m);
|
|
95
98
|
let h = m.getBoundingClientRect(), g = Math.max(1, Math.ceil(h.width)), _ = Math.max(1, Math.ceil(h.height));
|
|
@@ -107,33 +110,33 @@ async function d(e, { family: t = "Material Icons", weight: n = "normal", fontSi
|
|
|
107
110
|
height: _
|
|
108
111
|
};
|
|
109
112
|
}
|
|
110
|
-
async function
|
|
113
|
+
async function p(e, t) {
|
|
111
114
|
if (!(e instanceof Element)) return 0;
|
|
112
115
|
let n = ".material-icons, [class*=\"material-symbols\"]", r = Array.from(e.querySelectorAll(n)).filter((e) => e && e.textContent && e.textContent.trim());
|
|
113
116
|
if (r.length === 0) return 0;
|
|
114
|
-
let i = t instanceof Element ? Array.from(t.querySelectorAll(n)).filter((e) => e && e.textContent && e.textContent.trim()) : [],
|
|
117
|
+
let i = t instanceof Element ? Array.from(t.querySelectorAll(n)).filter((e) => e && e.textContent && e.textContent.trim()) : [], a = 0;
|
|
115
118
|
for (let e = 0; e < r.length; e++) {
|
|
116
119
|
let t = r[e], n = i[e] || null;
|
|
117
120
|
try {
|
|
118
121
|
let e = getComputedStyle(n || t), r = e.fontFamily || "Material Icons";
|
|
119
|
-
if (!
|
|
122
|
+
if (!o(r)) continue;
|
|
120
123
|
let i = (n || t).textContent.trim();
|
|
121
124
|
if (!i) continue;
|
|
122
|
-
let s = parseInt(e.fontSize, 10) || 24, { dataUrl: c, width: l, height:
|
|
125
|
+
let s = parseInt(e.fontSize, 10) || 24, { dataUrl: c, width: l, height: u } = await f(i, {
|
|
123
126
|
family: r,
|
|
124
127
|
weight: e.fontWeight && e.fontWeight !== "normal" ? e.fontWeight : "normal",
|
|
125
128
|
fontSize: s,
|
|
126
|
-
color:
|
|
129
|
+
color: d(e),
|
|
127
130
|
variation: e.fontVariationSettings && e.fontVariationSettings !== "normal" ? e.fontVariationSettings : "",
|
|
128
131
|
className: (n || t).className || ""
|
|
129
132
|
});
|
|
130
133
|
t.textContent = "";
|
|
131
134
|
let p = t.ownerDocument.createElement("img");
|
|
132
|
-
p.src = c, p.alt = i, p.style.height = `${s}px`, p.style.width = `${Math.max(1, Math.round(l /
|
|
135
|
+
p.src = c, p.alt = i, p.style.height = `${s}px`, p.style.width = `${Math.max(1, Math.round(l / u * s))}px`, p.style.objectFit = "contain", p.style.verticalAlign = getComputedStyle(t).verticalAlign || "baseline", t.appendChild(p), a++;
|
|
133
136
|
} catch {}
|
|
134
137
|
}
|
|
135
|
-
return
|
|
138
|
+
return a;
|
|
136
139
|
}
|
|
137
140
|
//#endregion
|
|
138
|
-
export {
|
|
141
|
+
export { i as extendIconFonts, a as isIconFont, p as ligatureIconToImage };
|
|
139
142
|
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core picture / lazy-img resolution for high-fidelity capture.
|
|
3
|
+
* Mirrors the official picture-resolver plugin; runs from captureDOM when enabled.
|
|
4
|
+
*
|
|
5
|
+
* Fast path: {@link quickProbeMayNeedPictureResolver} avoids scanning when no
|
|
6
|
+
* `<picture>` and (if enabled) no lazy `data-*` hints exist in the subtree.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @param {string} src
|
|
10
|
+
* @returns {boolean}
|
|
11
|
+
*/
|
|
12
|
+
export function isPlaceholderSrc(src: string): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Cheap hint: might we need picture/lazy resolution? Avoids full scans when false.
|
|
15
|
+
* @param {Element|null|undefined} root
|
|
16
|
+
* @param {boolean} resolveLazySrc
|
|
17
|
+
*/
|
|
18
|
+
export function quickProbeMayNeedPictureResolver(root: Element | null | undefined, resolveLazySrc: boolean): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* @param {HTMLImageElement} img
|
|
21
|
+
* @param {HTMLPictureElement} picture
|
|
22
|
+
* @returns {string|null}
|
|
23
|
+
*/
|
|
24
|
+
export function findRealUrlForPicture(img: HTMLImageElement, picture: HTMLPictureElement): string | null;
|
|
25
|
+
/**
|
|
26
|
+
* @param {HTMLImageElement} img
|
|
27
|
+
* @returns {string|null}
|
|
28
|
+
*/
|
|
29
|
+
export function findLazySrcAttr(img: HTMLImageElement): string | null;
|
|
30
|
+
/**
|
|
31
|
+
* Run resolution on live DOM before clone. Returns an async undo, or null if nothing to do.
|
|
32
|
+
* @param {Element} root
|
|
33
|
+
* @param {object} options
|
|
34
|
+
* @returns {Promise<(() => Promise<void>)|null>}
|
|
35
|
+
*/
|
|
36
|
+
export function runPictureResolverBeforeClone(root: Element, options?: object): Promise<(() => Promise<void>) | null>;
|
|
37
|
+
/**
|
|
38
|
+
* Back-compat plugin factory (same API as @zumer/snapdom-plugins/picture-resolver).
|
|
39
|
+
* @param {object} [pluginOptions]
|
|
40
|
+
* @returns {import('../core/plugins.js').Plugin}
|
|
41
|
+
*/
|
|
42
|
+
export function pictureResolver(pluginOptions?: object): import("../core/plugins.js").Plugin;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/* 潘启宝 2026-04-14 16:53:57 星期二 */
|
|
2
|
+
//#region utils/snapdom/modules/pictureResolver.js
|
|
3
|
+
function e(e) {
|
|
4
|
+
return !!(!e || e.startsWith("data:") || e.startsWith("blob:") || /^data:image\/(gif|png|svg)/.test(e) && e.length < 200);
|
|
5
|
+
}
|
|
6
|
+
function t(e, t) {
|
|
7
|
+
return !e || !(e instanceof Element) ? !1 : e.querySelector("picture") ? !0 : t ? !!e.querySelector("img[data-src], img[data-lazy-src], img[data-original], img[data-hi-res-src], img[data-srcset], img[data-lazy-srcset]") : !1;
|
|
8
|
+
}
|
|
9
|
+
function n(t, n) {
|
|
10
|
+
let r = t.currentSrc || "";
|
|
11
|
+
if (r && !e(r)) return r;
|
|
12
|
+
let i = n.querySelectorAll("source[srcset]"), a = null;
|
|
13
|
+
for (let t of i) {
|
|
14
|
+
let n = t.getAttribute("srcset");
|
|
15
|
+
if (!n || e(n)) continue;
|
|
16
|
+
let r = t.getAttribute("media");
|
|
17
|
+
if (r) try {
|
|
18
|
+
if (window.matchMedia(r).matches) return n.split(",")[0].trim().split(/\s+/)[0];
|
|
19
|
+
} catch {}
|
|
20
|
+
a ||= n.split(",")[0].trim().split(/\s+/)[0];
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
}
|
|
24
|
+
function r(t) {
|
|
25
|
+
let n = [
|
|
26
|
+
t.getAttribute("data-src"),
|
|
27
|
+
t.getAttribute("data-lazy-src"),
|
|
28
|
+
t.getAttribute("data-original"),
|
|
29
|
+
t.getAttribute("data-hi-res-src")
|
|
30
|
+
];
|
|
31
|
+
for (let t of n) if (t && !e(t)) return t;
|
|
32
|
+
let r = t.getAttribute("data-srcset") || t.getAttribute("data-lazy-srcset");
|
|
33
|
+
if (r) {
|
|
34
|
+
let t = r.split(",")[0].trim().split(/\s+/)[0];
|
|
35
|
+
if (t && !e(t)) return t;
|
|
36
|
+
}
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
function i(e = {}) {
|
|
40
|
+
let t = e.pictureResolver && typeof e.pictureResolver == "object" ? e.pictureResolver : {};
|
|
41
|
+
return {
|
|
42
|
+
timeout: t.timeout ?? 5e3,
|
|
43
|
+
concurrency: t.concurrency ?? 4,
|
|
44
|
+
resolveLazySrc: t.resolveLazySrc !== !1,
|
|
45
|
+
silent: t.silent ?? !1,
|
|
46
|
+
useProxy: typeof e.useProxy == "string" ? e.useProxy : ""
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
async function a(a, o = {}) {
|
|
50
|
+
if (!a || !(a instanceof Element) || o.resolvePicturePlaceholders === !1) return null;
|
|
51
|
+
let { timeout: s, concurrency: c, resolveLazySrc: l, silent: u, useProxy: d } = i(o);
|
|
52
|
+
if (!t(a, l)) return null;
|
|
53
|
+
let f = [], p = [];
|
|
54
|
+
async function m(e) {
|
|
55
|
+
let t = new AbortController(), n = setTimeout(() => t.abort(), s);
|
|
56
|
+
try {
|
|
57
|
+
let n = await fetch(e, {
|
|
58
|
+
credentials: "include",
|
|
59
|
+
signal: t.signal
|
|
60
|
+
});
|
|
61
|
+
if (!n.ok && d) {
|
|
62
|
+
let r = d.includes("{url}") ? d.replace("{url}", encodeURIComponent(e)) : d.endsWith("?") ? `${d}${encodeURIComponent(e)}` : `${d}${d.includes("?") ? "&" : "?"}url=${encodeURIComponent(e)}`;
|
|
63
|
+
n = await fetch(r, { signal: t.signal });
|
|
64
|
+
}
|
|
65
|
+
if (!n.ok) return null;
|
|
66
|
+
let r = await n.blob();
|
|
67
|
+
return await new Promise((e, t) => {
|
|
68
|
+
let n = new FileReader();
|
|
69
|
+
n.onload = () => e(n.result), n.onerror = t, n.readAsDataURL(r);
|
|
70
|
+
});
|
|
71
|
+
} catch {
|
|
72
|
+
return null;
|
|
73
|
+
} finally {
|
|
74
|
+
clearTimeout(n);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
async function h(e) {
|
|
78
|
+
for (let t = 0; t < e.length; t += c) {
|
|
79
|
+
let n = e.slice(t, t + c);
|
|
80
|
+
await Promise.allSettled(n.map((e) => e()));
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
let g = a.querySelectorAll("picture");
|
|
84
|
+
for (let t of g) {
|
|
85
|
+
let r = t.querySelector("img");
|
|
86
|
+
if (!r || !e(r.getAttribute("src") || "")) continue;
|
|
87
|
+
let i = n(r, t);
|
|
88
|
+
i && p.push(async () => {
|
|
89
|
+
let e = await m(i);
|
|
90
|
+
if (!e) {
|
|
91
|
+
u || console.warn(`[snapdom:picture-resolver] Failed to fetch: ${i.slice(0, 60)}`);
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
let n = r.getAttribute("src"), a = r.getAttribute("srcset"), o = r.getAttribute("sizes"), s = [];
|
|
95
|
+
r.src = e, r.setAttribute("src", e), r.removeAttribute("srcset"), r.removeAttribute("sizes");
|
|
96
|
+
let c = t.querySelectorAll("source");
|
|
97
|
+
for (let e of c) s.push({
|
|
98
|
+
el: e,
|
|
99
|
+
parent: e.parentElement,
|
|
100
|
+
next: e.nextSibling
|
|
101
|
+
}), e.remove();
|
|
102
|
+
f.push(() => {
|
|
103
|
+
n === null ? r.removeAttribute("src") : r.setAttribute("src", n), a !== null && r.setAttribute("srcset", a), o !== null && r.setAttribute("sizes", o);
|
|
104
|
+
for (let { el: e, parent: t, next: n } of s) t && t.insertBefore(e, n);
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
if (l) {
|
|
109
|
+
let t = a.querySelectorAll("img");
|
|
110
|
+
for (let n of t) {
|
|
111
|
+
if (n.closest("picture") && e(n.getAttribute("src") || "")) continue;
|
|
112
|
+
let t = n.getAttribute("src") || "", i = r(n);
|
|
113
|
+
i && e(t) && p.push(async () => {
|
|
114
|
+
let e = await m(i);
|
|
115
|
+
if (!e) return;
|
|
116
|
+
let t = n.getAttribute("src");
|
|
117
|
+
n.src = e, n.setAttribute("src", e), n.removeAttribute("srcset"), n.removeAttribute("sizes"), f.push(() => {
|
|
118
|
+
t === null ? n.removeAttribute("src") : n.setAttribute("src", t);
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return p.length === 0 ? null : (await h(p), async function() {
|
|
124
|
+
for (let e of f) try {
|
|
125
|
+
e();
|
|
126
|
+
} catch {}
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
//#endregion
|
|
130
|
+
export { a as runPictureResolverBeforeClone };
|
|
131
|
+
/* 独立思考,明辨是非 */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-04-
|
|
1
|
+
/* 潘启宝 2026-04-14 16:53:57 星期二 */
|
|
2
2
|
import { cache as e } from "../core/cache.js";
|
|
3
3
|
import { getStyle as t, getStyleKey as n, snapshotComputedStyle as r, splitBackgroundImage as i } from "../utils/css.js";
|
|
4
4
|
import { debugWarn as a } from "../utils/debug.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-04-
|
|
1
|
+
/* 潘启宝 2026-04-14 16:53:57 星期二 */
|
|
2
2
|
import { cache as e } from "../core/cache.js";
|
|
3
3
|
import { getStyleKey as t, shouldIgnoreProp as n } from "../utils/css.js";
|
|
4
4
|
import "../utils/index.js";
|
|
@@ -89,7 +89,7 @@ function u(e, t = {}) {
|
|
|
89
89
|
var d = /* @__PURE__ */ new WeakMap();
|
|
90
90
|
function f(e) {
|
|
91
91
|
let t = d.get(e);
|
|
92
|
-
return t || (t = Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : e[0] > t[0]
|
|
92
|
+
return t || (t = Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : +(e[0] > t[0])).map(([e, t]) => `${e}:${t}`).join(";"), d.set(e, t), t);
|
|
93
93
|
}
|
|
94
94
|
function p(e, t = null, n = {}) {
|
|
95
95
|
let i = r.get(e);
|
package/snapdom/utils/browser.js
CHANGED
package/snapdom/utils/css.js
CHANGED
package/snapdom/utils/debug.js
CHANGED
package/snapdom/utils/helpers.js
CHANGED
package/snapdom/utils/image.js
CHANGED
package/snapdom/utils/index.js
CHANGED
package/string/chars.js
CHANGED
package/string/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/* 潘启宝 2026-04-
|
|
2
|
-
import { isEmptyArray as e, isNil as t, isString as n } from "../is/index.js";
|
|
3
|
-
import { HYPHEN as
|
|
1
|
+
/* 潘启宝 2026-04-14 16:53:57 星期二 */
|
|
2
|
+
import { isEmptyArray as e, isNil as t, isString as n, isUndefined as r } from "../is/index.js";
|
|
3
|
+
import { HYPHEN as i } from "../constant/string.js";
|
|
4
4
|
//#region utils/string/index.js
|
|
5
|
-
function
|
|
6
|
-
return t < 0 && (t = Math.max(0, e.length + t)), n
|
|
5
|
+
function a(e, t, n) {
|
|
6
|
+
return t < 0 && (t = Math.max(0, e.length + t)), r(n) ? e.substring(t) : e.substring(t, t + n);
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function o(r) {
|
|
9
9
|
return n(r) || t(r) ? `${r ?? ""}`.trim() || "-" : e(r) ? "-" : r;
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
|
-
export {
|
|
12
|
+
export { i as HYPHEN, a as convertSubstrToSubstring, o as replaceEmptyWithHyphen };
|
|
13
13
|
/* 独立思考,明辨是非 */
|
package/tinycolor/conversion.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-04-
|
|
1
|
+
/* 潘启宝 2026-04-14 16:53:57 星期二 */
|
|
2
2
|
import { boundAlpha as e, convertToPercentage as t } from "./utils.js";
|
|
3
3
|
import { cmykToRgb as n, convertHexToDecimal as r, hslToRgb as i, hsvToRgb as a, parseIntFromHex as o, rgbToRgb as s } from "./conversion.js";
|
|
4
4
|
import { names as c } from "./css-color-names.js";
|
package/tinycolor/from-ratio.js
CHANGED
package/tinycolor/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-04-
|
|
1
|
+
/* 潘启宝 2026-04-14 16:53:57 星期二 */
|
|
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/interfaces.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 潘启宝 2026-04-
|
|
1
|
+
/* 潘启宝 2026-04-14 16:53:57 星期二 */
|
|
2
2
|
/* 独立思考,明辨是非 */
|
package/tinycolor/public_api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-04-
|
|
1
|
+
/* 潘启宝 2026-04-14 16:53:57 星期二 */
|
|
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
package/tinycolor/readability.js
CHANGED
package/tinycolor/umd_api.js
CHANGED
package/tinycolor/utils.js
CHANGED
package/tree/index.js
CHANGED
package/tree/searchTree.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-04-
|
|
1
|
+
/* 潘启宝 2026-04-14 16:53:57 星期二 */
|
|
2
2
|
import { isArray as e, isFunction as t, isNil as n, isNumber as r, isObjectLike as i, isRegExp as a, isString as o } from "../is/index.js";
|
|
3
3
|
//#region utils/tree/searchTree.ts
|
|
4
4
|
function s(e, t, n, r) {
|
package/tween/easing.js
CHANGED
package/tween/index.js
CHANGED