@unicom-cloud/utils 0.1.48 → 0.1.49
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 +143 -24
- 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/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/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 +1 -1
- package/decimal/index.js +1 -1
- package/dom-align/LICENSE.md +9 -0
- package/dom-align/adjustForViewport.d.ts +2 -0
- package/dom-align/adjustForViewport.js +13 -0
- package/dom-align/align/align.d.ts +15 -0
- package/dom-align/align/align.js +88 -0
- package/dom-align/align/alignElement.d.ts +16 -0
- package/dom-align/align/alignElement.js +18 -0
- package/dom-align/align/alignPoint.d.ts +14 -0
- package/dom-align/align/alignPoint.js +21 -0
- package/dom-align/getAlignOffset.d.ts +8 -0
- package/dom-align/getAlignOffset.js +12 -0
- package/dom-align/getElFuturePos.d.ts +5 -0
- package/dom-align/getElFuturePos.js +13 -0
- package/dom-align/getOffsetParent.d.ts +2 -0
- package/dom-align/getOffsetParent.js +14 -0
- package/dom-align/getRegion.d.ts +5 -0
- package/dom-align/getRegion.js +18 -0
- package/dom-align/getVisibleRectForElement.d.ts +10 -0
- package/dom-align/getVisibleRectForElement.js +34 -0
- package/dom-align/index.d.ts +4 -0
- package/dom-align/index.js +8 -0
- package/dom-align/isAncestorFixed.d.ts +1 -0
- package/dom-align/isAncestorFixed.js +13 -0
- package/dom-align/propertyUtils.d.ts +8 -0
- package/dom-align/propertyUtils.js +57 -0
- package/dom-align/utils.d.ts +28 -0
- package/dom-align/utils.js +220 -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.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/fflate/index.js +1 -1
- package/fflate/src/index.js +6 -6
- package/fflate/src/worker.js +1 -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 +5 -2
- package/is/index.js +11 -2
- 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 +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 +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 +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 +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 +1 -1
- 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 +1 -1
- 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/mousetrap/Mousetrap.d.ts +115 -0
- package/mousetrap/Mousetrap.js +261 -0
- package/mousetrap/index.d.ts +3 -0
- package/mousetrap/index.js +7 -0
- package/mousetrap/plugins/bind-dictionary/index.d.ts +1 -0
- package/mousetrap/plugins/global-bind/index.d.ts +1 -0
- package/mousetrap/plugins/pause/index.d.ts +1 -0
- package/mousetrap/plugins/record/index.d.ts +1 -0
- 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/index.js +1 -1
- package/pinyin/lib/common/constant.js +1 -1
- package/pinyin/lib/common/segmentit/AC.js +1 -1
- package/pinyin/lib/common/segmentit/TrieNode.js +1 -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 +1 -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 +1 -1
- 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.d.ts +55 -2
- package/query-string/index.js +264 -4
- 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 +1 -1
- 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/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 +6 -2
- package/snapdom/src/core/cache.js +2 -2
- package/snapdom/src/core/capture.js +1 -1
- package/snapdom/src/core/clone.js +119 -116
- package/snapdom/src/core/context.js +1 -1
- package/snapdom/src/core/plugins.d.ts +0 -5
- package/snapdom/src/core/plugins.js +2 -2
- package/snapdom/src/core/prepare.js +7 -7
- package/snapdom/src/exporters/download.js +1 -1
- 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 +1 -1
- package/snapdom/src/modules/background.js +5 -5
- package/snapdom/src/modules/changeCSS.js +1 -1
- package/snapdom/src/modules/counter.d.ts +2 -34
- package/snapdom/src/modules/counter.js +1 -1
- package/snapdom/src/modules/fonts.js +34 -29
- package/snapdom/src/modules/iconFonts.js +49 -48
- package/snapdom/src/modules/images.js +1 -1
- package/snapdom/src/modules/lineClamp.js +1 -1
- package/snapdom/src/modules/pictureResolver.js +1 -1
- package/snapdom/src/modules/pseudo.d.ts +1 -1
- package/snapdom/src/modules/pseudo.js +59 -41
- package/snapdom/src/modules/rasterize.js +1 -1
- package/snapdom/src/modules/snapFetch.js +1 -1
- package/snapdom/src/modules/styles.js +75 -73
- package/snapdom/src/modules/svgDefs.js +1 -1
- package/snapdom/src/utils/browser.js +1 -1
- package/snapdom/src/utils/capture.helpers.js +1 -1
- package/snapdom/src/utils/clone.helpers.js +1 -1
- package/snapdom/src/utils/css.js +1 -1
- package/snapdom/src/utils/debug.js +1 -1
- package/snapdom/src/utils/helpers.js +1 -1
- package/snapdom/src/utils/image.js +6 -6
- package/snapdom/src/utils/index.js +1 -1
- package/snapdom/src/utils/prepare.helpers.js +1 -1
- package/snapdom/src/utils/transforms.helpers.js +68 -45
- package/string/chars.js +1 -1
- package/string/index.js +1 -1
- package/tinycolor/conversion.js +1 -1
- package/tinycolor/css-color-names.js +4 -3
- 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 +1 -1
- package/query-string/LICENSE +0 -20
- package/query-string/base.d.ts +0 -11
- package/query-string/base.js +0 -255
- package/query-string/splitOnFirst.d.ts +0 -1
- package/query-string/splitOnFirst.js +0 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-06-02 15:43:04 星期二 山东省济南市 */
|
|
2
2
|
import { cache as e } from "../core/cache.js";
|
|
3
3
|
import { extractURL as t } from "../utils/helpers.js";
|
|
4
4
|
import { snapFetch as n } from "./snapFetch.js";
|
|
@@ -370,30 +370,31 @@ async function N({ required: t, usedCodepoints: i, exclude: a = void 0, localFon
|
|
|
370
370
|
for (let e of t) {
|
|
371
371
|
let [t, n, r, i] = String(e).split("__");
|
|
372
372
|
if (!t) continue;
|
|
373
|
-
let a = d.get(
|
|
374
|
-
|
|
373
|
+
let a = t.toLowerCase(), o = d.get(a) || [];
|
|
374
|
+
o.push({
|
|
375
375
|
w: parseInt(n, 10),
|
|
376
376
|
s: r,
|
|
377
377
|
st: parseInt(i, 10)
|
|
378
|
-
}), d.set(
|
|
378
|
+
}), d.set(a, o);
|
|
379
379
|
}
|
|
380
380
|
function h(e, t, n, r) {
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
381
|
+
let i = String(e).toLowerCase();
|
|
382
|
+
if (!d.has(i)) return !1;
|
|
383
|
+
let a = d.get(i), o = f(n), s = p(t), c = m(r), l = o.min !== o.max, h = o.min, g = (e) => s.kind === "normal" && e === "normal" || s.kind !== "normal" && (e === "italic" || e === "oblique"), _ = !1;
|
|
384
|
+
for (let e of a) {
|
|
385
|
+
let t = l ? e.w >= o.min && e.w <= o.max : e.w === h, n = g(u(e.s)), r = e.st >= c.min && e.st <= c.max;
|
|
385
386
|
if (t && n && r) {
|
|
386
|
-
|
|
387
|
+
_ = !0;
|
|
387
388
|
break;
|
|
388
389
|
}
|
|
389
390
|
}
|
|
390
|
-
if (
|
|
391
|
-
if (!
|
|
392
|
-
let t =
|
|
393
|
-
if (Math.abs(
|
|
391
|
+
if (_) return !0;
|
|
392
|
+
if (!l) for (let e of a) {
|
|
393
|
+
let t = g(u(e.s)), n = e.st >= c.min && e.st <= c.max;
|
|
394
|
+
if (Math.abs(h - e.w) <= 300 && t && n) return !0;
|
|
394
395
|
}
|
|
395
|
-
if (!
|
|
396
|
-
let t = Math.abs(
|
|
396
|
+
if (!l && s.kind === "normal" && a.some((e) => u(e.s) !== "normal")) for (let e of a) {
|
|
397
|
+
let t = Math.abs(h - e.w) <= 300, n = e.st >= c.min && e.st <= c.max;
|
|
397
398
|
if (t && n) return !0;
|
|
398
399
|
}
|
|
399
400
|
return !1;
|
|
@@ -408,13 +409,17 @@ async function N({ required: t, usedCodepoints: i, exclude: a = void 0, localFon
|
|
|
408
409
|
!t || r(t) || document.querySelector(`link[rel="stylesheet"][href="${t}"]`) || O.push(t);
|
|
409
410
|
}
|
|
410
411
|
}
|
|
412
|
+
let P = [];
|
|
411
413
|
O.length && await Promise.all(O.map((e) => new Promise((t) => {
|
|
412
414
|
if (document.querySelector(`link[rel="stylesheet"][href="${e}"]`)) return t(null);
|
|
413
415
|
let n = document.createElement("link");
|
|
414
|
-
n.rel = "stylesheet", n.href = e, n.setAttribute("data-snapdom", "injected-import"), n.onload = () => t(n), n.onerror = () => t(null), document.head.appendChild(n);
|
|
416
|
+
n.rel = "stylesheet", n.href = e, n.setAttribute("data-snapdom", "injected-import"), n.onload = () => t(n), n.onerror = () => t(null), document.head.appendChild(n), P.push(n);
|
|
415
417
|
})));
|
|
416
|
-
let
|
|
417
|
-
for (let e of
|
|
418
|
+
let F = "", I = Array.from(document.querySelectorAll("link[rel=\"stylesheet\"]")).filter((e) => !!e.href);
|
|
419
|
+
for (let e of P) try {
|
|
420
|
+
e.remove();
|
|
421
|
+
} catch {}
|
|
422
|
+
for (let e of I) try {
|
|
418
423
|
if (r(e.href)) continue;
|
|
419
424
|
let t = "", o = !1;
|
|
420
425
|
try {
|
|
@@ -461,11 +466,11 @@ async function N({ required: t, usedCodepoints: i, exclude: a = void 0, localFon
|
|
|
461
466
|
let y = /url\(/i.test(p) ? await D(n, e.href, c) : n;
|
|
462
467
|
u += y;
|
|
463
468
|
}
|
|
464
|
-
u.trim() && (
|
|
469
|
+
u.trim() && (F += u);
|
|
465
470
|
} catch {
|
|
466
471
|
console.warn("[snapDOM] Failed to process stylesheet:", e.href);
|
|
467
472
|
}
|
|
468
|
-
let
|
|
473
|
+
let L = {
|
|
469
474
|
requiredIndex: d,
|
|
470
475
|
usedCodepoints: i,
|
|
471
476
|
faceMatchesRequired: h,
|
|
@@ -474,17 +479,17 @@ async function N({ required: t, usedCodepoints: i, exclude: a = void 0, localFon
|
|
|
474
479
|
visitedSheets: /* @__PURE__ */ new Set(),
|
|
475
480
|
depth: 0
|
|
476
481
|
};
|
|
477
|
-
for (let e of document.styleSheets) if (!(e.href &&
|
|
482
|
+
for (let e of document.styleSheets) if (!(e.href && I.some((t) => t.href === e.href))) try {
|
|
478
483
|
let t = e.href || location.origin + "/";
|
|
479
|
-
t &&
|
|
480
|
-
|
|
481
|
-
},
|
|
484
|
+
t && L.visitedSheets.add(t), await M(e, t, async (e) => {
|
|
485
|
+
F += e;
|
|
486
|
+
}, L);
|
|
482
487
|
} catch {}
|
|
483
488
|
try {
|
|
484
489
|
for (let t of document.fonts || []) {
|
|
485
490
|
if (!t || !t.family || t.status !== "loaded" || !t._snapdomSrc) continue;
|
|
486
491
|
let i = String(t.family).replace(/^['"]+|['"]+$/g, "");
|
|
487
|
-
if (r(i) || !d.has(i) || a?.families && a.families.some((e) => String(e).toLowerCase() === i.toLowerCase())) continue;
|
|
492
|
+
if (r(i) || !d.has(i.toLowerCase()) || a?.families && a.families.some((e) => String(e).toLowerCase() === i.toLowerCase())) continue;
|
|
488
493
|
let o = t._snapdomSrc;
|
|
489
494
|
if (!String(o).startsWith("data:")) {
|
|
490
495
|
if (e.resource?.has(t._snapdomSrc)) o = e.resource.get(t._snapdomSrc), e.font?.add(t._snapdomSrc);
|
|
@@ -501,13 +506,13 @@ async function N({ required: t, usedCodepoints: i, exclude: a = void 0, localFon
|
|
|
501
506
|
continue;
|
|
502
507
|
}
|
|
503
508
|
}
|
|
504
|
-
|
|
509
|
+
F += `@font-face{font-family:'${i}';src:url(${o});font-style:${t.style || "normal"};font-weight:${t.weight || "normal"};}`;
|
|
505
510
|
}
|
|
506
511
|
} catch {}
|
|
507
512
|
for (let t of o) {
|
|
508
513
|
if (!t || typeof t != "object") continue;
|
|
509
514
|
let i = String(t.family || "").replace(/^['"]+|['"]+$/g, "");
|
|
510
|
-
if (!i || r(i) || !d.has(i) || a?.families && a.families.some((e) => String(e).toLowerCase() === i.toLowerCase())) continue;
|
|
515
|
+
if (!i || r(i) || !d.has(i.toLowerCase()) || a?.families && a.families.some((e) => String(e).toLowerCase() === i.toLowerCase())) continue;
|
|
511
516
|
let o = t.weight == null ? "normal" : String(t.weight), s = t.style == null ? "normal" : String(t.style), l = t.stretchPct == null ? "100%" : `${t.stretchPct}%`, u = String(t.src || ""), f = u;
|
|
512
517
|
if (!f.startsWith("data:")) {
|
|
513
518
|
if (e.resource?.has(u)) f = e.resource.get(u), e.font?.add(u);
|
|
@@ -524,9 +529,9 @@ async function N({ required: t, usedCodepoints: i, exclude: a = void 0, localFon
|
|
|
524
529
|
continue;
|
|
525
530
|
}
|
|
526
531
|
}
|
|
527
|
-
|
|
532
|
+
F += `@font-face{font-family:'${i}';src:url(${f});font-style:${s};font-weight:${o};font-stretch:${l};}`;
|
|
528
533
|
}
|
|
529
|
-
return
|
|
534
|
+
return F && (F = A(F), e.resource?.set(b, F)), F;
|
|
530
535
|
}
|
|
531
536
|
function P(e) {
|
|
532
537
|
let t = /* @__PURE__ */ new Set();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-06-02 15:43:04 星期二 山东省济南市 */
|
|
2
|
+
import { cache as e } from "../core/cache.js";
|
|
2
3
|
//#region utils/snapdom/src/modules/iconFonts.js
|
|
3
|
-
var
|
|
4
|
+
var t = [
|
|
4
5
|
/font\s*awesome/i,
|
|
5
6
|
/material\s*icons/i,
|
|
6
7
|
/ionicons/i,
|
|
@@ -11,62 +12,62 @@ var e = [
|
|
|
11
12
|
/heroicons/i,
|
|
12
13
|
/layui/i,
|
|
13
14
|
/lucide/i
|
|
14
|
-
],
|
|
15
|
+
], n = Object.assign({
|
|
15
16
|
materialIconsFilled: "https://fonts.gstatic.com/s/materialicons/v48/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2",
|
|
16
17
|
materialIconsOutlined: "https://fonts.gstatic.com/s/materialiconsoutlined/v110/gok-H7zzDkdnRel8-DQ6KAXJ69wP1tGnf4ZGhUcel5euIg.woff2",
|
|
17
18
|
materialIconsRound: "https://fonts.gstatic.com/s/materialiconsround/v109/LDItaoyNOAY6Uewc665JcIzCKsKc_M9flwmPq_HTTw.woff2",
|
|
18
19
|
materialIconsSharp: "https://fonts.gstatic.com/s/materialiconssharp/v110/oPWQ_lt5nv4pWNJpghLP75WiFR4kLh3kvmvRImcycg.woff2"
|
|
19
|
-
}, typeof window < "u" && window.__SNAPDOM_ICON_FONTS__ || {}),
|
|
20
|
-
function
|
|
20
|
+
}, typeof window < "u" && window.__SNAPDOM_ICON_FONTS__ || {}), r = [];
|
|
21
|
+
function i(e) {
|
|
21
22
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
22
23
|
}
|
|
23
|
-
function
|
|
24
|
+
function a(e) {
|
|
24
25
|
let t = Array.isArray(e) ? e : [e];
|
|
25
|
-
for (let e of t) e instanceof RegExp ?
|
|
26
|
+
for (let e of t) e instanceof RegExp ? r.push(e) : typeof e == "string" ? r.push(new RegExp(i(e), "i")) : console.warn("[snapdom] Ignored invalid iconFont value:", e);
|
|
26
27
|
}
|
|
27
|
-
function
|
|
28
|
-
let
|
|
29
|
-
for (let e of i) if (e instanceof RegExp && e.test(
|
|
30
|
-
return !!(/icon/i.test(
|
|
28
|
+
function o(e) {
|
|
29
|
+
let n = typeof e == "string" ? e : "", i = [...t, ...r];
|
|
30
|
+
for (let e of i) if (e instanceof RegExp && e.test(n)) return !0;
|
|
31
|
+
return !!(/icon/i.test(n) || /glyph/i.test(n) || /symbols/i.test(n) || /feather/i.test(n) || /fontawesome/i.test(n));
|
|
31
32
|
}
|
|
32
|
-
function
|
|
33
|
+
function s(e = "") {
|
|
33
34
|
let t = String(e).toLowerCase();
|
|
34
35
|
return /\bmaterial\s*icons\b/.test(t) || /\bmaterial\s*symbols\b/.test(t);
|
|
35
36
|
}
|
|
36
|
-
var
|
|
37
|
-
function
|
|
37
|
+
var c = /* @__PURE__ */ new Map();
|
|
38
|
+
function l(e = "") {
|
|
38
39
|
let t = Object.create(null), n = String(e || ""), r = /['"]?\s*([A-Za-z]{3,4})\s*['"]?\s*([+-]?\d+(?:\.\d+)?)\s*/g, i;
|
|
39
40
|
for (; i = r.exec(n);) t[i[1].toUpperCase()] = Number(i[2]);
|
|
40
41
|
return t;
|
|
41
42
|
}
|
|
42
|
-
async function
|
|
43
|
-
let i = String(e || ""), a = i.toLowerCase(), o = String(
|
|
43
|
+
async function u(e, t, r) {
|
|
44
|
+
let i = String(e || ""), a = i.toLowerCase(), o = String(t || "").toLowerCase();
|
|
44
45
|
if (/\bmaterial\s*icons\b/.test(a) && !/\bsymbols\b/.test(a) || !/\bmaterial\s*symbols\b/.test(a)) return {
|
|
45
46
|
familyForMeasure: i,
|
|
46
47
|
familyForCanvas: i
|
|
47
48
|
};
|
|
48
|
-
let
|
|
49
|
+
let s = r && (r.FILL ?? r.fill), l = "outlined";
|
|
49
50
|
/\brounded\b/.test(o) || /\bround\b/.test(o) ? l = "rounded" : /\bsharp\b/.test(o) ? l = "sharp" : /\boutlined\b/.test(o) && (l = "outlined");
|
|
50
|
-
let u =
|
|
51
|
-
if (u && (l === "outlined" &&
|
|
52
|
-
url:
|
|
51
|
+
let u = s === 1, d = null;
|
|
52
|
+
if (u && (l === "outlined" && n.materialIconsFilled ? d = {
|
|
53
|
+
url: n.materialIconsFilled,
|
|
53
54
|
alias: "snapdom-mi-filled"
|
|
54
|
-
} : l === "rounded" &&
|
|
55
|
-
url:
|
|
55
|
+
} : l === "rounded" && n.materialIconsRound ? d = {
|
|
56
|
+
url: n.materialIconsRound,
|
|
56
57
|
alias: "snapdom-mi-round"
|
|
57
|
-
} : l === "sharp" &&
|
|
58
|
-
url:
|
|
58
|
+
} : l === "sharp" && n.materialIconsSharp && (d = {
|
|
59
|
+
url: n.materialIconsSharp,
|
|
59
60
|
alias: "snapdom-mi-sharp"
|
|
60
61
|
})), !d) return {
|
|
61
62
|
familyForMeasure: i,
|
|
62
63
|
familyForCanvas: i
|
|
63
64
|
};
|
|
64
|
-
if (!
|
|
65
|
+
if (!c.has(d.alias)) try {
|
|
65
66
|
let e = new FontFace(d.alias, `url(${d.url})`, {
|
|
66
67
|
style: "normal",
|
|
67
68
|
weight: "400"
|
|
68
69
|
});
|
|
69
|
-
document.fonts.add(e), await e.load(),
|
|
70
|
+
document.fonts.add(e), await e.load(), c.set(d.alias, !0);
|
|
70
71
|
} catch {
|
|
71
72
|
return {
|
|
72
73
|
familyForMeasure: i,
|
|
@@ -79,28 +80,28 @@ async function l(e, n, r) {
|
|
|
79
80
|
familyForCanvas: f
|
|
80
81
|
};
|
|
81
82
|
}
|
|
82
|
-
async function
|
|
83
|
+
async function d(e = "Material Icons", t = 24) {
|
|
83
84
|
try {
|
|
84
85
|
await Promise.all([document.fonts.load(`400 ${t}px "${String(e).replace(/["']/g, "")}"`), document.fonts.ready]);
|
|
85
86
|
} catch {}
|
|
86
87
|
}
|
|
87
|
-
function
|
|
88
|
+
function f(e) {
|
|
88
89
|
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);
|
|
89
90
|
if (t && !n && t.toLowerCase() !== "currentcolor") return t;
|
|
90
91
|
let r = e.color?.trim();
|
|
91
92
|
return r && r !== "inherit" ? r : "#000";
|
|
92
93
|
}
|
|
93
|
-
async function
|
|
94
|
-
let s = String(t || "").replace(/^['"]+|['"]+$/g, ""),
|
|
95
|
-
await
|
|
94
|
+
async function p(e, { family: t = "Material Icons", weight: n = "normal", fontSize: r = 32, color: i = "#000", variation: a = "", className: o = "" } = {}) {
|
|
95
|
+
let s = String(t || "").replace(/^['"]+|['"]+$/g, ""), c = window.devicePixelRatio || 1, { familyForMeasure: f, familyForCanvas: p } = await u(s, o, l(a));
|
|
96
|
+
await d(p.replace(/^["']+|["']+$/g, ""), r);
|
|
96
97
|
let m = document.createElement("span");
|
|
97
98
|
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);
|
|
98
99
|
let h = m.getBoundingClientRect(), g = Math.max(1, Math.ceil(h.width)), _ = Math.max(1, Math.ceil(h.height));
|
|
99
100
|
document.body.removeChild(m);
|
|
100
101
|
let v = document.createElement("canvas");
|
|
101
|
-
v.width = g *
|
|
102
|
+
v.width = g * c, v.height = _ * c;
|
|
102
103
|
let y = v.getContext("2d");
|
|
103
|
-
y.scale(
|
|
104
|
+
y.scale(c, c), y.font = `${n ? `${n} ` : ""}${r}px ${p}`, y.textAlign = "left", y.textBaseline = "top", y.fillStyle = i;
|
|
104
105
|
try {
|
|
105
106
|
y.fontKerning = "normal";
|
|
106
107
|
} catch {}
|
|
@@ -110,33 +111,33 @@ async function f(e, { family: t = "Material Icons", weight: n = "normal", fontSi
|
|
|
110
111
|
height: _
|
|
111
112
|
};
|
|
112
113
|
}
|
|
113
|
-
async function
|
|
114
|
-
if (!(
|
|
115
|
-
let
|
|
116
|
-
if (
|
|
117
|
-
let
|
|
118
|
-
for (let e = 0; e <
|
|
119
|
-
let t =
|
|
114
|
+
async function m(t, n) {
|
|
115
|
+
if (!(t instanceof Element)) return 0;
|
|
116
|
+
let r = ".material-icons, [class*=\"material-symbols\"]", i = Array.from(t.querySelectorAll(r)).filter((e) => e && e.textContent && e.textContent.trim());
|
|
117
|
+
if (i.length === 0) return 0;
|
|
118
|
+
let a = e.session.nodeMap, o = n instanceof Element ? Array.from(n.querySelectorAll(r)).filter((e) => e && e.textContent && e.textContent.trim()) : [], c = 0;
|
|
119
|
+
for (let e = 0; e < i.length; e++) {
|
|
120
|
+
let t = i[e], n = a && a.get(t) || o[e] || null;
|
|
120
121
|
try {
|
|
121
122
|
let e = getComputedStyle(n || t), r = e.fontFamily || "Material Icons";
|
|
122
|
-
if (!
|
|
123
|
+
if (!s(r)) continue;
|
|
123
124
|
let i = (n || t).textContent.trim();
|
|
124
125
|
if (!i) continue;
|
|
125
|
-
let
|
|
126
|
+
let a = parseInt(e.fontSize, 10) || 24, { dataUrl: o, width: l, height: u } = await p(i, {
|
|
126
127
|
family: r,
|
|
127
128
|
weight: e.fontWeight && e.fontWeight !== "normal" ? e.fontWeight : "normal",
|
|
128
|
-
fontSize:
|
|
129
|
-
color:
|
|
129
|
+
fontSize: a,
|
|
130
|
+
color: f(e),
|
|
130
131
|
variation: e.fontVariationSettings && e.fontVariationSettings !== "normal" ? e.fontVariationSettings : "",
|
|
131
132
|
className: (n || t).className || ""
|
|
132
133
|
});
|
|
133
134
|
t.textContent = "";
|
|
134
|
-
let
|
|
135
|
-
|
|
135
|
+
let d = t.ownerDocument.createElement("img");
|
|
136
|
+
d.src = o, d.alt = i, d.style.height = `${a}px`, d.style.width = `${Math.max(1, Math.round(l / u * a))}px`, d.style.objectFit = "contain", d.style.verticalAlign = getComputedStyle(t).verticalAlign || "baseline", t.appendChild(d), c++;
|
|
136
137
|
} catch {}
|
|
137
138
|
}
|
|
138
|
-
return
|
|
139
|
+
return c;
|
|
139
140
|
}
|
|
140
141
|
//#endregion
|
|
141
|
-
export {
|
|
142
|
+
export { a as extendIconFonts, o as isIconFont, m as ligatureIconToImage };
|
|
142
143
|
/* 独立思考,明辨是非 */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-06-02 15:43:04 星期二 山东省济南市 */
|
|
2
2
|
//#region utils/snapdom/src/modules/pictureResolver.js
|
|
3
3
|
function e(e) {
|
|
4
4
|
return !!(!e || e.startsWith("data:") || e.startsWith("blob:") || /^data:image\/(gif|png|svg)/.test(e) && e.length < 200);
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* @param {Document} doc
|
|
16
16
|
* @returns {boolean}
|
|
17
17
|
*/
|
|
18
|
-
export function shouldProcessPseudos(doc?: Document): boolean;
|
|
18
|
+
export function shouldProcessPseudos(doc?: Document, fp?: string): boolean;
|
|
19
19
|
/**
|
|
20
20
|
* Creates elements to represent ::before, ::after, and ::first-letter pseudo-elements, inlining their styles and content.
|
|
21
21
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-06-02 15:43:04 星期二 山东省济南市 */
|
|
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";
|
|
@@ -13,7 +13,7 @@ import { buildCounterContext as f, hasCounters as p, resolveCountersInContent as
|
|
|
13
13
|
var h = /* @__PURE__ */ new WeakMap(), g = 1e3;
|
|
14
14
|
function _(e, t) {
|
|
15
15
|
let n = y(e);
|
|
16
|
-
return t ? (t.__pseudoPreflightFp !== n && (t.__pseudoPreflight = x(e), t.__pseudoPreflightFp = n), !!t.__pseudoPreflight) : x(e);
|
|
16
|
+
return t ? (t.__pseudoPreflightFp !== n && (t.__pseudoPreflight = x(e, n), t.__pseudoPreflightFp = n), !!t.__pseudoPreflight) : x(e, n);
|
|
17
17
|
}
|
|
18
18
|
function v(e) {
|
|
19
19
|
try {
|
|
@@ -58,8 +58,8 @@ function b(e, t, n) {
|
|
|
58
58
|
}
|
|
59
59
|
return !1;
|
|
60
60
|
}
|
|
61
|
-
function x(e = document) {
|
|
62
|
-
let
|
|
61
|
+
function x(e = document, t = y(e)) {
|
|
62
|
+
let n = h.get(e);
|
|
63
63
|
if (n && n.fingerprint === t) return n.result;
|
|
64
64
|
let r = [
|
|
65
65
|
"::before",
|
|
@@ -108,8 +108,21 @@ function x(e = document) {
|
|
|
108
108
|
result: !1
|
|
109
109
|
}), !1);
|
|
110
110
|
}
|
|
111
|
-
var S = /* @__PURE__ */ new WeakMap()
|
|
112
|
-
function
|
|
111
|
+
var S = /* @__PURE__ */ new WeakMap();
|
|
112
|
+
function C(e) {
|
|
113
|
+
for (let t of [
|
|
114
|
+
"Top",
|
|
115
|
+
"Right",
|
|
116
|
+
"Bottom",
|
|
117
|
+
"Left"
|
|
118
|
+
]) {
|
|
119
|
+
let n = parseFloat(e[`border${t}Width`]) || 0, r = e[`border${t}Style`];
|
|
120
|
+
if (n > 0 && r && r !== "none" && r !== "hidden") return !0;
|
|
121
|
+
}
|
|
122
|
+
return !1;
|
|
123
|
+
}
|
|
124
|
+
var w = -1;
|
|
125
|
+
function T(e) {
|
|
113
126
|
if (!e) return "";
|
|
114
127
|
let t = [], n = /"([^"]*)"/g, r = 0, i;
|
|
115
128
|
for (; i = n.exec(e);) {
|
|
@@ -119,7 +132,7 @@ function w(e) {
|
|
|
119
132
|
let a = e.slice(r).trim();
|
|
120
133
|
return a && t.push(a), t.join("");
|
|
121
134
|
}
|
|
122
|
-
function
|
|
135
|
+
function E(e, t) {
|
|
123
136
|
let n = e.parentElement, r = n ? S.get(n) : null;
|
|
124
137
|
return r ? {
|
|
125
138
|
get(e, n) {
|
|
@@ -138,7 +151,7 @@ function T(e, t) {
|
|
|
138
151
|
}
|
|
139
152
|
} : t;
|
|
140
153
|
}
|
|
141
|
-
function
|
|
154
|
+
function D(e, t, n) {
|
|
142
155
|
let r = /* @__PURE__ */ new Map();
|
|
143
156
|
function i(e) {
|
|
144
157
|
let t = [];
|
|
@@ -152,35 +165,40 @@ function E(e, t, n) {
|
|
|
152
165
|
}
|
|
153
166
|
return t;
|
|
154
167
|
}
|
|
155
|
-
let a = i(t?.counterReset), o = i(t?.counterIncrement);
|
|
156
|
-
function
|
|
168
|
+
let a = i(t?.counterReset), o = i(t?.counterSet), s = i(t?.counterIncrement);
|
|
169
|
+
function c(t) {
|
|
157
170
|
if (r.has(t)) return r.get(t).slice();
|
|
158
171
|
let i = n.getStack(e, t);
|
|
159
172
|
i = i.length ? i.slice() : [];
|
|
160
|
-
let
|
|
161
|
-
if (
|
|
162
|
-
let e = Number.isFinite(
|
|
173
|
+
let c = a.find((e) => e.name === t);
|
|
174
|
+
if (c) {
|
|
175
|
+
let e = Number.isFinite(c.num) ? c.num : 0;
|
|
163
176
|
i = i.length ? [...i, e] : [e];
|
|
164
177
|
}
|
|
165
|
-
let
|
|
166
|
-
if (
|
|
167
|
-
let e = Number.isFinite(
|
|
178
|
+
let l = o.find((e) => e.name === t);
|
|
179
|
+
if (l) {
|
|
180
|
+
let e = Number.isFinite(l.num) ? l.num : 0;
|
|
181
|
+
i.length === 0 && (i = [0]), i[i.length - 1] = e;
|
|
182
|
+
}
|
|
183
|
+
let u = s.find((e) => e.name === t);
|
|
184
|
+
if (u) {
|
|
185
|
+
let e = Number.isFinite(u.num) ? u.num : 1;
|
|
168
186
|
i.length === 0 && (i = [0]), i[i.length - 1] += e;
|
|
169
187
|
}
|
|
170
188
|
return r.set(t, i.slice()), i;
|
|
171
189
|
}
|
|
172
190
|
return {
|
|
173
191
|
get(e, t) {
|
|
174
|
-
let n =
|
|
192
|
+
let n = c(t);
|
|
175
193
|
return n.length ? n[n.length - 1] : 0;
|
|
176
194
|
},
|
|
177
195
|
getStack(e, t) {
|
|
178
|
-
return
|
|
196
|
+
return c(t);
|
|
179
197
|
},
|
|
180
|
-
__incs:
|
|
198
|
+
__incs: s
|
|
181
199
|
};
|
|
182
200
|
}
|
|
183
|
-
function
|
|
201
|
+
function O(e, n, r) {
|
|
184
202
|
let i;
|
|
185
203
|
try {
|
|
186
204
|
i = t(e, n);
|
|
@@ -190,16 +208,16 @@ function D(e, n, r) {
|
|
|
190
208
|
text: "",
|
|
191
209
|
incs: []
|
|
192
210
|
};
|
|
193
|
-
let o =
|
|
211
|
+
let o = E(e, r), s = D(e, i, o);
|
|
194
212
|
return {
|
|
195
|
-
text:
|
|
213
|
+
text: T(p(a) ? m(a, e, s) : a),
|
|
196
214
|
incs: s.__incs || []
|
|
197
215
|
};
|
|
198
216
|
}
|
|
199
|
-
async function
|
|
217
|
+
async function k(p, m, h, g) {
|
|
200
218
|
if (!(p instanceof Element) || !(m instanceof Element) || !_(p.ownerDocument || document, h)) return;
|
|
201
219
|
let v = e?.session?.__counterEpoch ?? 0;
|
|
202
|
-
if (
|
|
220
|
+
if (w !== v && (S = /* @__PURE__ */ new WeakMap(), h && (h.__counterCtx = null), w = v), !h.__counterCtx) try {
|
|
203
221
|
h.__counterCtx = f(p.ownerDocument || document);
|
|
204
222
|
} catch (e) {
|
|
205
223
|
a(h, "buildCounterContext failed", e);
|
|
@@ -211,7 +229,7 @@ async function O(p, m, h, g) {
|
|
|
211
229
|
"::first-letter"
|
|
212
230
|
]) try {
|
|
213
231
|
let a = t(p, e);
|
|
214
|
-
if (!a || a.content === "none" && a.backgroundImage === "none" && a.backgroundColor === "transparent" && (a
|
|
232
|
+
if (!a || a.content === "none" && a.backgroundImage === "none" && a.backgroundColor === "transparent" && !C(a) && (!a.transform || a.transform === "none") && a.display === "inline") continue;
|
|
215
233
|
if (e === "::first-letter") {
|
|
216
234
|
let e = t(p), i = (e?.display || "").toLowerCase();
|
|
217
235
|
if (i.includes("flex") || i.includes("grid") || !(a.color !== e.color || a.fontSize !== e.fontSize || a.fontWeight !== e.fontWeight || a.fontFamily !== e.fontFamily || a.fontStyle !== e.fontStyle || a.textTransform !== e.textTransform || a.float !== e.float || a.paddingTop !== e.paddingTop || a.paddingRight !== e.paddingRight || a.paddingBottom !== e.paddingBottom || a.paddingLeft !== e.paddingLeft || a.marginTop !== e.marginTop || a.marginRight !== e.marginRight || a.marginBottom !== e.marginBottom || a.marginLeft !== e.marginLeft)) continue;
|
|
@@ -227,13 +245,13 @@ async function O(p, m, h, g) {
|
|
|
227
245
|
m.replaceChild(f, o), m.insertBefore(u, f);
|
|
228
246
|
continue;
|
|
229
247
|
}
|
|
230
|
-
let f = a.content ?? "", _ = f === "" || f === "none" || f === "normal", { text: v, incs: b } =
|
|
231
|
-
if (!(F || I || L || R || z)) {
|
|
248
|
+
let f = a.content ?? "", _ = f === "" || f === "none" || f === "normal", { text: v, incs: b } = O(p, e, y), x = a.backgroundImage, w = a.backgroundColor, T = a.fontFamily, k = parseInt(a.fontSize) || 32, A = parseInt(a.fontWeight) || !1, j = a.color || "#000", M = a.transform, N = u(T), P = !_ && v !== "", F = x && x !== "none", I = w && w !== "transparent" && w !== "rgba(0, 0, 0, 0)", L = C(a), R = M && M !== "none", z = f !== "none" && f !== "normal" && ((parseFloat(a.width) || 0) > 0 || (parseFloat(a.height) || 0) > 0);
|
|
249
|
+
if (!(P || F || I || L || R || z)) {
|
|
232
250
|
if (b && b.length && p.parentElement) {
|
|
233
251
|
let n = S.get(p.parentElement) || /* @__PURE__ */ new Map();
|
|
234
252
|
for (let { name: r } of b) {
|
|
235
253
|
if (!r) continue;
|
|
236
|
-
let i =
|
|
254
|
+
let i = E(p, y), a = D(p, t(p, e), i).get(p, r);
|
|
237
255
|
n.set(r, a);
|
|
238
256
|
}
|
|
239
257
|
S.set(p.parentElement, n);
|
|
@@ -241,16 +259,16 @@ async function O(p, m, h, g) {
|
|
|
241
259
|
continue;
|
|
242
260
|
}
|
|
243
261
|
let B = !1;
|
|
244
|
-
if (
|
|
262
|
+
if (P && !N && v.length > 1 && !v.startsWith("url(")) {
|
|
245
263
|
let e = t(p), n = parseFloat(e.fontSize) || 16, r = parseFloat(e.lineHeight);
|
|
246
264
|
Number.isFinite(r) || (r = n * 1.5), p.getBoundingClientRect().height < r * 1.6 && (m.style.whiteSpace = "nowrap", B = !0);
|
|
247
265
|
}
|
|
248
266
|
let V = document.createElement("span");
|
|
249
267
|
V.dataset.snapdomPseudo = e, V.style.pointerEvents = "none", B && (V.style.whiteSpace = "nowrap");
|
|
250
268
|
let H = n(r(a), "span");
|
|
251
|
-
if (h.styleMap.set(V, H),
|
|
252
|
-
let { dataUrl: e, width: t, height: n } = await d(v,
|
|
253
|
-
r.src = e, r.style = `height:${
|
|
269
|
+
if (h.styleMap.set(V, H), N && v && v.length === 1) {
|
|
270
|
+
let { dataUrl: e, width: t, height: n } = await d(v, T, A, k, j), r = document.createElement("img");
|
|
271
|
+
r.src = e, r.style = `height:${k}px;width:${t / n * k}px;object-fit:contain;`, V.appendChild(r), m.dataset.snapdomHasIcon = "true";
|
|
254
272
|
} else if (v && v.startsWith("url(")) {
|
|
255
273
|
let t = o(v);
|
|
256
274
|
if (t?.trim()) try {
|
|
@@ -260,26 +278,26 @@ async function O(p, m, h, g) {
|
|
|
260
278
|
});
|
|
261
279
|
if (e?.ok && typeof e.data == "string") {
|
|
262
280
|
let t = document.createElement("img");
|
|
263
|
-
t.src = e.data, t.style = `width:${
|
|
281
|
+
t.src = e.data, t.style = `width:${k}px;height:auto;object-fit:contain;`, V.appendChild(t);
|
|
264
282
|
}
|
|
265
283
|
} catch (t) {
|
|
266
284
|
console.error(`[snapdom] Error in pseudo ${e} for`, p, t);
|
|
267
285
|
}
|
|
268
|
-
} else !
|
|
286
|
+
} else !N && P && (V.textContent = v);
|
|
269
287
|
V.style.backgroundImage = "none", "maskImage" in V.style && (V.style.maskImage = "none"), "webkitMaskImage" in V.style && (V.style.webkitMaskImage = "none");
|
|
270
288
|
try {
|
|
271
289
|
V.style.backgroundRepeat = a.backgroundRepeat, V.style.backgroundSize = a.backgroundSize, a.backgroundPositionX && a.backgroundPositionY ? (V.style.backgroundPositionX = a.backgroundPositionX, V.style.backgroundPositionY = a.backgroundPositionY) : V.style.backgroundPosition = a.backgroundPosition, V.style.backgroundOrigin = a.backgroundOrigin, V.style.backgroundClip = a.backgroundClip, V.style.backgroundAttachment = a.backgroundAttachment, V.style.backgroundBlendMode = a.backgroundBlendMode;
|
|
272
290
|
} catch {}
|
|
273
|
-
if (
|
|
291
|
+
if (F) try {
|
|
274
292
|
let e = i(x), t = await Promise.all(e.map(l));
|
|
275
293
|
V.style.backgroundImage = t.join(", ");
|
|
276
294
|
} catch (t) {
|
|
277
295
|
console.warn(`[snapdom] Failed to inline background-image for ${e}`, t);
|
|
278
296
|
}
|
|
279
|
-
|
|
280
|
-
let U = V.childNodes.length > 0 || V.textContent?.trim() !== "" || I || L || R || z;
|
|
297
|
+
I && (V.style.backgroundColor = w);
|
|
298
|
+
let U = V.childNodes.length > 0 || V.textContent?.trim() !== "" || F || I || L || R || z;
|
|
281
299
|
if (b && b.length && p.parentElement) {
|
|
282
|
-
let n = S.get(p.parentElement) || /* @__PURE__ */ new Map(), r =
|
|
300
|
+
let n = S.get(p.parentElement) || /* @__PURE__ */ new Map(), r = E(p, y), i = D(p, t(p, e), r);
|
|
283
301
|
for (let { name: e } of b) {
|
|
284
302
|
if (!e) continue;
|
|
285
303
|
let t = i.get(p, e);
|
|
@@ -295,13 +313,13 @@ async function O(p, m, h, g) {
|
|
|
295
313
|
let b = Array.from(m.children).filter((e) => !e.dataset.snapdomPseudo);
|
|
296
314
|
if (h.nodeMap) for (let e of b) {
|
|
297
315
|
let t = h.nodeMap.get(e);
|
|
298
|
-
t instanceof Element && await
|
|
316
|
+
t instanceof Element && await k(t, e, h, g);
|
|
299
317
|
}
|
|
300
318
|
else {
|
|
301
319
|
let e = Array.from(p.children);
|
|
302
|
-
for (let t = 0; t < Math.min(e.length, b.length); t++) await
|
|
320
|
+
for (let t = 0; t < Math.min(e.length, b.length); t++) await k(e[t], b[t], h, g);
|
|
303
321
|
}
|
|
304
322
|
}
|
|
305
323
|
//#endregion
|
|
306
|
-
export {
|
|
324
|
+
export { k as inlinePseudoElements };
|
|
307
325
|
/* 独立思考,明辨是非 */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-06-02 15:43:04 星期二 山东省济南市 */
|
|
2
2
|
import { safeEncodeURI as e } from "../utils/helpers.js";
|
|
3
3
|
//#region utils/snapdom/src/modules/snapFetch.js
|
|
4
4
|
function t(e = "[snapDOM]", { ttlMs: t = 5 * 6e4, maxEntries: n = 12 } = {}) {
|