@unicom-cloud/utils 0.1.39 → 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 +573 -592
- 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/{src/api.js → api.js} +2 -2
- package/cookie/{src/assign.js → assign.js} +2 -2
- package/cookie/{src/converter.js → converter.js} +2 -2
- package/cookie/index.d.ts +1 -1
- package/cookie/index.js +2 -2
- 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 +2 -2
- package/dom-helpers/remove.js +1 -1
- package/dom-helpers/removeClass.js +1 -1
- package/dom-helpers/removeEventListener.js +1 -1
- package/dom-helpers/scrollLeft.js +1 -1
- package/dom-helpers/scrollParent.js +1 -1
- package/dom-helpers/scrollTo.js +1 -1
- package/dom-helpers/scrollTop.js +1 -1
- package/dom-helpers/scrollbarSize.js +1 -1
- package/dom-helpers/siblings.js +1 -1
- package/dom-helpers/text.js +1 -1
- package/dom-helpers/toggleClass.js +1 -1
- package/dom-helpers/transitionEnd.js +1 -1
- package/dom-helpers/triggerEvent.js +1 -1
- package/dom-helpers/types.js +1 -1
- package/dom-helpers/width.js +1 -1
- package/emitter/index.d.ts +75 -2
- package/emitter/index.js +68 -3
- 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/LICENSE +26 -0
- package/filesize/constants.js +101 -0
- package/filesize/{src/filesize.d.ts → filesize.d.ts} +8 -7
- package/filesize/filesize.js +50 -0
- package/filesize/{src/helpers.d.ts → helpers.d.ts} +7 -4
- package/filesize/helpers.js +70 -0
- package/filesize/index.d.ts +2 -0
- package/filesize/index.js +4 -0
- 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 -10
- package/is/index.d.ts +42 -18
- package/is/index.js +23 -17
- 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 +6 -12
- 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.d.ts +2 -2
- 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.d.ts +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 +8 -7
- 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 +78 -78
- 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.d.ts +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.d.ts +5 -5
- package/lodash/lodash.default.js +11 -11
- package/lodash/lodash.js +79 -79
- 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.d.ts +9 -0
- 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 +21 -21
- package/lodash/seq.js +11 -11
- 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.d.ts +4 -0
- package/lodash/template.js +34 -29
- package/lodash/templateSettings.d.ts +4 -0
- 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 +11 -11
- package/lodash/util.js +7 -7
- 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/{src/core.js → core.js} +2 -2
- package/pinyin/index.js +2 -3
- package/pinyin/simplified.d.ts +4 -1
- package/pinyin/simplified.js +7 -3
- package/pinyin/{src/simplified_dict.js → simplified_dict.js} +4 -2
- package/pinyin/traditional.d.ts +4 -1
- package/pinyin/traditional.js +7 -3
- package/pinyin/{src/traditional_dict.js → traditional_dict.js} +4 -2
- package/query-string/base.d.ts +7 -7
- package/query-string/base.js +135 -134
- package/query-string/index.d.ts +1 -1
- package/query-string/index.js +2 -2
- package/query-string/splitOnFirst.js +2 -2
- 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/{src/api → api}/preCache.js +2 -2
- package/snapdom/{src/api → api}/snapdom.js +85 -104
- package/snapdom/{src/core → core}/cache.d.ts +1 -0
- package/snapdom/{src/core → core}/cache.js +3 -2
- package/snapdom/core/capture.js +180 -0
- package/snapdom/{src/core → core}/clone.js +76 -6
- package/snapdom/{src/core → core}/context.d.ts +9 -0
- package/snapdom/{src/core → core}/context.js +5 -3
- package/snapdom/{src/core → core}/plugins.js +6 -3
- package/snapdom/{src/core → core}/prepare.js +44 -30
- package/snapdom/exporters/download.js +53 -0
- package/snapdom/{src/exporters → exporters}/toBlob.js +2 -2
- package/snapdom/{src/exporters → exporters}/toCanvas.js +2 -2
- package/snapdom/{src/exporters → exporters}/toImg.js +3 -3
- package/snapdom/index.browser.js +7 -0
- package/snapdom/index.d.ts +2 -1
- package/snapdom/index.js +3 -4
- package/snapdom/{src/modules → modules}/CSSVar.js +15 -9
- package/snapdom/{src/modules → modules}/background.js +3 -3
- package/snapdom/{src/modules → modules}/changeCSS.js +2 -2
- package/snapdom/{src/modules → modules}/counter.js +26 -7
- package/snapdom/{src/modules → modules}/fonts.js +101 -92
- package/snapdom/{src/modules → modules}/iconFonts.js +28 -25
- package/snapdom/{src/modules → modules}/images.js +2 -2
- package/snapdom/{src/modules → modules}/lineClamp.js +2 -2
- package/snapdom/modules/pictureResolver.d.ts +42 -0
- package/snapdom/modules/pictureResolver.js +131 -0
- package/snapdom/{src/modules → modules}/pseudo.js +4 -4
- package/snapdom/{src/modules → modules}/rasterize.js +2 -2
- package/snapdom/{src/modules → modules}/snapFetch.js +2 -2
- package/snapdom/{src/modules → modules}/styles.js +50 -41
- package/snapdom/{src/modules → modules}/svgDefs.js +2 -2
- package/snapdom/{src/utils → utils}/browser.js +2 -2
- package/snapdom/{src/utils → utils}/capture.helpers.js +2 -2
- package/snapdom/{src/utils → utils}/clone.helpers.js +21 -17
- package/snapdom/{src/utils → utils}/css.js +4 -3
- package/snapdom/{src/utils → utils}/debug.js +2 -2
- package/snapdom/{src/utils → utils}/helpers.js +2 -2
- package/snapdom/{src/utils → utils}/image.js +2 -2
- package/snapdom/{src/utils → utils}/index.js +1 -1
- package/snapdom/utils/prepare.helpers.d.ts +18 -0
- package/snapdom/utils/prepare.helpers.js +35 -0
- package/snapdom/{src/utils → utils}/transforms.helpers.js +44 -22
- package/string/chars.js +1 -1
- package/string/index.js +7 -7
- package/tinycolor/{src/conversion.js → conversion.js} +2 -2
- package/tinycolor/{src/css-color-names.js → css-color-names.js} +2 -2
- package/tinycolor/{src/format-input.js → format-input.js} +2 -2
- package/tinycolor/{src/from-ratio.js → from-ratio.js} +3 -3
- package/tinycolor/index.d.ts +216 -2
- package/tinycolor/index.js +271 -12
- package/tinycolor/interfaces.js +2 -0
- package/tinycolor/public_api.js +12 -0
- package/tinycolor/{src/random.js → random.js} +3 -3
- package/tinycolor/{src/readability.js → readability.js} +2 -2
- package/tinycolor/{src/to-ms-filter.js → to-ms-filter.js} +2 -2
- package/tinycolor/umd_api.js +25 -0
- package/tinycolor/{src/utils.js → utils.js} +2 -2
- package/tree/index.d.ts +7 -7
- package/tree/index.js +3 -3
- package/tree/{search/index.js → searchTree.js} +3 -3
- package/tween/{src/easing.js → easing.js} +4 -4
- package/tween/index.d.ts +4 -1
- package/tween/index.js +7 -5
- package/tween/{src/tween.js → tween.js} +3 -3
- package/ui-color/compareColorByRange.d.ts +1 -1
- package/ui-color/compareColorByRange.js +2 -2
- package/ui-color/index.d.ts +145 -195
- package/ui-color/index.js +57 -52
- package/url-toolkit/index.d.ts +18 -2
- package/url-toolkit/index.js +61 -3
- package/validate/index.d.ts +37 -3
- package/validate/index.js +79 -12
- package/validate/interface.js +2 -0
- package/validate/{src/locale → locale}/en-US.js +2 -2
- package/validate/{src/locale → locale}/index.js +2 -2
- package/validate/{src/locale → locale}/zh-CN.js +2 -2
- package/validate/{src/rules → rules}/array.js +3 -3
- package/validate/{src/rules → rules}/base.js +3 -3
- package/validate/{src/rules → rules}/boolean.js +3 -3
- package/validate/{src/rules → rules}/custom.js +2 -2
- package/validate/{src/rules → rules}/number.js +3 -3
- package/validate/{src/rules → rules}/object.js +3 -3
- package/validate/{src/rules → rules}/string.js +3 -3
- package/validate/{src/rules → rules}/type.js +15 -15
- 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/canvas-roundrect-polyfill/LICENSE +0 -21
- package/canvas-roundrect-polyfill/index.d.ts +0 -0
- package/canvas-roundrect-polyfill/index.js +0 -78
- package/emitter/src/index.d.ts +0 -75
- package/emitter/src/index.js +0 -69
- package/filesize/benchmarks/basic-performance.d.ts +0 -1
- package/filesize/benchmarks/index.d.ts +0 -2
- package/filesize/benchmarks/options-benchmark.d.ts +0 -1
- package/filesize/benchmarks/partial-benchmark.d.ts +0 -1
- package/filesize/benchmarks/stress-test.d.ts +0 -1
- package/pinyin/src/simplified.d.ts +0 -4
- package/pinyin/src/simplified.js +0 -8
- package/pinyin/src/traditional.d.ts +0 -4
- package/pinyin/src/traditional.js +0 -8
- package/promise-pool/LICENSE +0 -19
- package/promise-pool/index.js +0 -89
- package/snapdom/src/core/capture.js +0 -162
- package/snapdom/src/exporters/download.js +0 -47
- package/snapdom/src/index.d.ts +0 -2
- package/snapdom/src/index.js +0 -4
- package/snapdom/src/utils/prepare.helpers.d.ts +0 -9
- package/snapdom/src/utils/prepare.helpers.js +0 -9
- package/tinycolor/src/index.d.ts +0 -214
- package/tinycolor/src/index.js +0 -267
- package/tinycolor/src/public_api.js +0 -11
- package/tween/src/index.d.ts +0 -3
- package/tween/src/index.js +0 -4
- package/url-toolkit/src/url-toolkit.d.ts +0 -18
- package/url-toolkit/src/url-toolkit.js +0 -62
- package/validate/src/index.d.ts +0 -37
- package/validate/src/index.js +0 -80
- /package/cookie/{src/api.d.mts → api.d.ts} +0 -0
- /package/cookie/{src/assign.d.mts → assign.d.ts} +0 -0
- /package/cookie/{src/converter.d.mts → converter.d.ts} +0 -0
- /package/filesize/{src/constants.d.ts → constants.d.ts} +0 -0
- /package/pinyin/{src/core.d.ts → core.d.ts} +0 -0
- /package/pinyin/{src/simplified_dict.d.ts → simplified_dict.d.ts} +0 -0
- /package/pinyin/{src/traditional_dict.d.ts → traditional_dict.d.ts} +0 -0
- /package/snapdom/{src/api → api}/preCache.d.ts +0 -0
- /package/snapdom/{src/api → api}/snapdom.d.ts +0 -0
- /package/snapdom/{src/core → core}/capture.d.ts +0 -0
- /package/snapdom/{src/core → core}/clone.d.ts +0 -0
- /package/snapdom/{src/core → core}/exporters.d.ts +0 -0
- /package/snapdom/{src/core → core}/plugins.d.ts +0 -0
- /package/snapdom/{src/core → core}/prepare.d.ts +0 -0
- /package/snapdom/{src/exporters → exporters}/download.d.ts +0 -0
- /package/snapdom/{src/exporters → exporters}/toBlob.d.ts +0 -0
- /package/snapdom/{src/exporters → exporters}/toCanvas.d.ts +0 -0
- /package/snapdom/{src/exporters → exporters}/toImg.d.ts +0 -0
- /package/snapdom/{src/exporters → exporters}/toJpg.d.ts +0 -0
- /package/snapdom/{src/exporters → exporters}/toPng.d.ts +0 -0
- /package/snapdom/{src/exporters → exporters}/toSvg.d.ts +0 -0
- /package/snapdom/{src/exporters → exporters}/toWebp.d.ts +0 -0
- /package/snapdom/{src/index.browser.d.ts → index.browser.d.ts} +0 -0
- /package/snapdom/{src/modules → modules}/CSSVar.d.ts +0 -0
- /package/snapdom/{src/modules → modules}/background.d.ts +0 -0
- /package/snapdom/{src/modules → modules}/changeCSS.d.ts +0 -0
- /package/snapdom/{src/modules → modules}/counter.d.ts +0 -0
- /package/snapdom/{src/modules → modules}/fonts.d.ts +0 -0
- /package/snapdom/{src/modules → modules}/iconFonts.d.ts +0 -0
- /package/snapdom/{src/modules → modules}/images.d.ts +0 -0
- /package/snapdom/{src/modules → modules}/lineClamp.d.ts +0 -0
- /package/snapdom/{src/modules → modules}/pseudo.d.ts +0 -0
- /package/snapdom/{src/modules → modules}/rasterize.d.ts +0 -0
- /package/snapdom/{src/modules → modules}/snapFetch.d.ts +0 -0
- /package/snapdom/{src/modules → modules}/styles.d.ts +0 -0
- /package/snapdom/{src/modules → modules}/svgDefs.d.ts +0 -0
- /package/snapdom/{src/utils → utils}/browser.d.ts +0 -0
- /package/snapdom/{src/utils → utils}/capture.helpers.d.ts +0 -0
- /package/snapdom/{src/utils → utils}/clone.helpers.d.ts +0 -0
- /package/snapdom/{src/utils → utils}/css.d.ts +0 -0
- /package/snapdom/{src/utils → utils}/debug.d.ts +0 -0
- /package/snapdom/{src/utils → utils}/helpers.d.ts +0 -0
- /package/snapdom/{src/utils → utils}/image.d.ts +0 -0
- /package/snapdom/{src/utils → utils}/index.d.ts +0 -0
- /package/snapdom/{src/utils → utils}/transforms.helpers.d.ts +0 -0
- /package/tinycolor/{src/conversion.d.ts → conversion.d.ts} +0 -0
- /package/tinycolor/{src/css-color-names.d.ts → css-color-names.d.ts} +0 -0
- /package/tinycolor/{src/format-input.d.ts → format-input.d.ts} +0 -0
- /package/tinycolor/{src/from-ratio.d.ts → from-ratio.d.ts} +0 -0
- /package/tinycolor/{src/interfaces.d.ts → interfaces.d.ts} +0 -0
- /package/tinycolor/{src/public_api.d.ts → public_api.d.ts} +0 -0
- /package/tinycolor/{src/random.d.ts → random.d.ts} +0 -0
- /package/tinycolor/{src/readability.d.ts → readability.d.ts} +0 -0
- /package/tinycolor/{src/to-ms-filter.d.ts → to-ms-filter.d.ts} +0 -0
- /package/tinycolor/{src/umd_api.d.ts → umd_api.d.ts} +0 -0
- /package/tinycolor/{src/utils.d.ts → utils.d.ts} +0 -0
- /package/tree/{search/index.d.ts → searchTree.d.ts} +0 -0
- /package/tween/{src/easing.d.ts → easing.d.ts} +0 -0
- /package/tween/{src/tween.d.ts → tween.d.ts} +0 -0
- /package/validate/{src/interface.d.ts → interface.d.ts} +0 -0
- /package/validate/{src/locale → locale}/en-US.d.ts +0 -0
- /package/validate/{src/locale → locale}/index.d.ts +0 -0
- /package/validate/{src/locale → locale}/zh-CN.d.ts +0 -0
- /package/validate/{src/rules → rules}/array.d.ts +0 -0
- /package/validate/{src/rules → rules}/base.d.ts +0 -0
- /package/validate/{src/rules → rules}/boolean.d.ts +0 -0
- /package/validate/{src/rules → rules}/custom.d.ts +0 -0
- /package/validate/{src/rules → rules}/number.d.ts +0 -0
- /package/validate/{src/rules → rules}/object.d.ts +0 -0
- /package/validate/{src/rules → rules}/string.d.ts +0 -0
- /package/validate/{src/rules → rules}/type.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-04-14 16:53:57 星期二 */
|
|
2
2
|
import { EvictingMap as e, applyCachePolicy as t, cache as n } from "../core/cache.js";
|
|
3
3
|
import { isSafari as r } from "../utils/browser.js";
|
|
4
4
|
import { getStyle as i, precacheCommonTags as a } from "../utils/css.js";
|
|
@@ -7,7 +7,7 @@ import { inlineSingleBackgroundEntry as s } from "../utils/image.js";
|
|
|
7
7
|
import "../utils/index.js";
|
|
8
8
|
import { inlineBackgroundImages as c } from "../modules/background.js";
|
|
9
9
|
import { collectUsedCodepoints as l, collectUsedFontVariants as u, embedCustomFonts as d, ensureFontsReady as f } from "../modules/fonts.js";
|
|
10
|
-
//#region utils/snapdom/
|
|
10
|
+
//#region utils/snapdom/api/preCache.js
|
|
11
11
|
async function p(p = document, m = {}) {
|
|
12
12
|
let { embedFonts: h = !0, useProxy: g = "" } = m;
|
|
13
13
|
t(m.cache ?? m.cacheOpt ?? "full");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-04-14 16:53:57 星期二 */
|
|
2
2
|
import { isSafari as e } from "../utils/browser.js";
|
|
3
3
|
import { debugWarn as t } from "../utils/debug.js";
|
|
4
4
|
import { extendIconFonts as n } from "../modules/iconFonts.js";
|
|
@@ -7,91 +7,72 @@ import "./preCache.js";
|
|
|
7
7
|
import { attachSessionPlugins as a, registerPlugins as o, runAll as s, runHook as c } from "../core/plugins.js";
|
|
8
8
|
import { captureDOM as l } from "../core/capture.js";
|
|
9
9
|
import { createContext as u } from "../core/context.js";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
import { toCanvas as d } from "../exporters/toCanvas.js";
|
|
11
|
+
import { toBlob as f } from "../exporters/toBlob.js";
|
|
12
|
+
import { download as p } from "../exporters/download.js";
|
|
13
|
+
import { rasterize as m } from "../modules/rasterize.js";
|
|
14
|
+
import { toImg as h } from "../exporters/toImg.js";
|
|
15
|
+
//#region utils/snapdom/api/snapdom.js
|
|
16
|
+
function g(...e) {
|
|
17
|
+
return o(...e), _;
|
|
13
18
|
}
|
|
14
|
-
var
|
|
15
|
-
async function
|
|
19
|
+
var _ = Object.assign(x, { plugins: g }), v = Symbol("snapdom.internal"), y = Symbol("snapdom.internal.silent"), b = !1;
|
|
20
|
+
async function x(t, o) {
|
|
16
21
|
if (!t) throw Error("Element cannot be null or undefined");
|
|
17
22
|
let s = u(o);
|
|
18
|
-
if (a(s, o && o.plugins), e() && (s.embedFonts === !0 ||
|
|
23
|
+
if (a(s, o && o.plugins), e() && (s.embedFonts === !0 || C(t))) {
|
|
19
24
|
if (s.embedFonts) try {
|
|
20
25
|
let e = r(t);
|
|
21
26
|
await i(new Set([...e].map((e) => String(e).split("__")[0]).filter(Boolean)), 1);
|
|
22
27
|
} catch {}
|
|
23
28
|
let e = s.safariWarmupAttempts ?? 3;
|
|
24
29
|
for (let n = 0; n < e; n++) try {
|
|
25
|
-
await
|
|
30
|
+
await S(t, o);
|
|
26
31
|
} catch {}
|
|
27
32
|
}
|
|
28
33
|
return s.iconFonts && s.iconFonts.length > 0 && n(s.iconFonts), s.snap ||= {
|
|
29
|
-
toPng: (e, t) =>
|
|
30
|
-
toSvg: (e, t) =>
|
|
31
|
-
},
|
|
34
|
+
toPng: (e, t) => _.toPng(e, t),
|
|
35
|
+
toSvg: (e, t) => _.toSvg(e, t)
|
|
36
|
+
}, _.capture(t, s, v);
|
|
32
37
|
}
|
|
33
|
-
|
|
34
|
-
if (n !==
|
|
38
|
+
_.capture = async (e, t, n) => {
|
|
39
|
+
if (n !== v) throw Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
|
|
35
40
|
let r = await l(e, t), i = {
|
|
36
|
-
img: async (e, t) => {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
},
|
|
72
|
-
jpeg: async (e, t) => {
|
|
73
|
-
let { rasterize: n } = await import("../modules/rasterize.js");
|
|
74
|
-
return n(r, {
|
|
75
|
-
...e,
|
|
76
|
-
...t || {},
|
|
77
|
-
format: "jpeg"
|
|
78
|
-
});
|
|
79
|
-
},
|
|
80
|
-
webp: async (e, t) => {
|
|
81
|
-
let { rasterize: n } = await import("../modules/rasterize.js");
|
|
82
|
-
return n(r, {
|
|
83
|
-
...e,
|
|
84
|
-
...t || {},
|
|
85
|
-
format: "webp"
|
|
86
|
-
});
|
|
87
|
-
},
|
|
88
|
-
download: async (e, t) => {
|
|
89
|
-
let { download: n } = await import("../exporters/download.js");
|
|
90
|
-
return n(r, {
|
|
91
|
-
...e,
|
|
92
|
-
...t || {}
|
|
93
|
-
});
|
|
94
|
-
}
|
|
41
|
+
img: async (e, t) => h(r, {
|
|
42
|
+
...e,
|
|
43
|
+
...t || {}
|
|
44
|
+
}),
|
|
45
|
+
svg: async (e, t) => h(r, {
|
|
46
|
+
...e,
|
|
47
|
+
...t || {}
|
|
48
|
+
}),
|
|
49
|
+
canvas: async (e, t) => d(r, {
|
|
50
|
+
...e,
|
|
51
|
+
...t || {}
|
|
52
|
+
}),
|
|
53
|
+
blob: async (e, t) => f(r, {
|
|
54
|
+
...e,
|
|
55
|
+
...t || {}
|
|
56
|
+
}),
|
|
57
|
+
png: async (e, t) => m(r, {
|
|
58
|
+
...e,
|
|
59
|
+
...t || {},
|
|
60
|
+
format: "png"
|
|
61
|
+
}),
|
|
62
|
+
jpeg: async (e, t) => m(r, {
|
|
63
|
+
...e,
|
|
64
|
+
...t || {},
|
|
65
|
+
format: "jpeg"
|
|
66
|
+
}),
|
|
67
|
+
webp: async (e, t) => m(r, {
|
|
68
|
+
...e,
|
|
69
|
+
...t || {},
|
|
70
|
+
format: "webp"
|
|
71
|
+
}),
|
|
72
|
+
download: async (e, t) => p(r, {
|
|
73
|
+
...e,
|
|
74
|
+
...t || {}
|
|
75
|
+
})
|
|
95
76
|
}, a = {};
|
|
96
77
|
for (let e of [
|
|
97
78
|
"img",
|
|
@@ -103,31 +84,31 @@ f.capture = async (e, t, n) => {
|
|
|
103
84
|
"webp"
|
|
104
85
|
]) a[e] = async (n) => i[e](t, {
|
|
105
86
|
...n || {},
|
|
106
|
-
[
|
|
87
|
+
[y]: !0
|
|
107
88
|
});
|
|
108
89
|
a.jpg = a.jpeg;
|
|
109
90
|
let o = await s("defineExports", {
|
|
110
91
|
...t,
|
|
111
92
|
export: { url: r },
|
|
112
93
|
exports: a
|
|
113
|
-
}), u = Object.assign({}, ...o.filter((e) => e && typeof e == "object")),
|
|
94
|
+
}), u = Object.assign({}, ...o.filter((e) => e && typeof e == "object")), g = {
|
|
114
95
|
...i,
|
|
115
96
|
...u
|
|
116
97
|
};
|
|
117
|
-
|
|
118
|
-
function
|
|
98
|
+
g.jpeg && !g.jpg && (g.jpg = (e, t) => g.jpeg(e, t));
|
|
99
|
+
function _(e, n) {
|
|
119
100
|
let r = {
|
|
120
101
|
...t,
|
|
121
102
|
...n || {}
|
|
122
103
|
};
|
|
123
104
|
return (e === "jpeg" || e === "jpg") && (r.backgroundColor == null || r.backgroundColor === "transparent") && (r.backgroundColor = "#ffffff"), r;
|
|
124
105
|
}
|
|
125
|
-
let
|
|
126
|
-
async function
|
|
127
|
-
return
|
|
128
|
-
let i =
|
|
106
|
+
let b = !1, x = Promise.resolve();
|
|
107
|
+
async function S(e, n) {
|
|
108
|
+
return x = x.then(async () => {
|
|
109
|
+
let i = g[e];
|
|
129
110
|
if (!i) throw Error(`[snapdom] Unknown export type: ${e}`);
|
|
130
|
-
let a =
|
|
111
|
+
let a = _(e, n), o = {
|
|
131
112
|
...t,
|
|
132
113
|
export: {
|
|
133
114
|
type: e,
|
|
@@ -137,39 +118,39 @@ f.capture = async (e, t, n) => {
|
|
|
137
118
|
};
|
|
138
119
|
await c("beforeExport", o);
|
|
139
120
|
let s = await i(o, a);
|
|
140
|
-
return await c("afterExport", o, s),
|
|
121
|
+
return await c("afterExport", o, s), b || (b = !0, await c("afterSnap", t)), s;
|
|
141
122
|
});
|
|
142
123
|
}
|
|
143
|
-
let
|
|
124
|
+
let C = {
|
|
144
125
|
url: r,
|
|
145
126
|
toRaw: () => r,
|
|
146
|
-
to: (e, t) =>
|
|
147
|
-
toImg: (e) =>
|
|
148
|
-
toSvg: (e) =>
|
|
149
|
-
toCanvas: (e) =>
|
|
150
|
-
toBlob: (e) =>
|
|
151
|
-
toPng: (e) =>
|
|
152
|
-
toJpg: (e) =>
|
|
153
|
-
toWebp: (e) =>
|
|
154
|
-
download: (e) =>
|
|
127
|
+
to: (e, t) => S(e, t),
|
|
128
|
+
toImg: (e) => S("img", e),
|
|
129
|
+
toSvg: (e) => S("svg", e),
|
|
130
|
+
toCanvas: (e) => S("canvas", e),
|
|
131
|
+
toBlob: (e) => S("blob", e),
|
|
132
|
+
toPng: (e) => S("png", e),
|
|
133
|
+
toJpg: (e) => S("jpg", e),
|
|
134
|
+
toWebp: (e) => S("webp", e),
|
|
135
|
+
download: (e) => S("download", e)
|
|
155
136
|
};
|
|
156
|
-
for (let e of Object.keys(
|
|
137
|
+
for (let e of Object.keys(g)) {
|
|
157
138
|
let t = "to" + e.charAt(0).toUpperCase() + e.slice(1);
|
|
158
|
-
|
|
139
|
+
C[t] || (C[t] = (t) => S(e, t));
|
|
159
140
|
}
|
|
160
|
-
return
|
|
161
|
-
},
|
|
141
|
+
return C;
|
|
142
|
+
}, _.toRaw = (e, t) => _(e, t).then((e) => e.toRaw()), _.toImg = (e, t) => _(e, t).then((e) => e.toImg()), _.toSvg = (e, t) => _(e, t).then((e) => e.toSvg()), _.toCanvas = (e, t) => _(e, t).then((e) => e.toCanvas()), _.toBlob = (e, t) => _(e, t).then((e) => e.toBlob()), _.toPng = (e, t) => _(e, {
|
|
162
143
|
...t,
|
|
163
144
|
format: "png"
|
|
164
|
-
}).then((e) => e.toPng()),
|
|
145
|
+
}).then((e) => e.toPng()), _.toJpg = (e, t) => _(e, {
|
|
165
146
|
...t,
|
|
166
147
|
format: "jpeg"
|
|
167
|
-
}).then((e) => e.toJpg()),
|
|
148
|
+
}).then((e) => e.toJpg()), _.toWebp = (e, t) => _(e, {
|
|
168
149
|
...t,
|
|
169
150
|
format: "webp"
|
|
170
|
-
}).then((e) => e.toWebp()),
|
|
171
|
-
async function
|
|
172
|
-
if (
|
|
151
|
+
}).then((e) => e.toWebp()), _.download = (e, t) => _(e, t).then((e) => e.download());
|
|
152
|
+
async function S(e, n) {
|
|
153
|
+
if (b) return;
|
|
173
154
|
let r = {
|
|
174
155
|
...n,
|
|
175
156
|
fast: !0,
|
|
@@ -218,9 +199,9 @@ async function _(e, n) {
|
|
|
218
199
|
} catch (e) {
|
|
219
200
|
t(n, "safariWarmup canvas poke failed", e);
|
|
220
201
|
}
|
|
221
|
-
}),
|
|
202
|
+
}), b = !0;
|
|
222
203
|
}
|
|
223
|
-
function
|
|
204
|
+
function C(e) {
|
|
224
205
|
let t = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT);
|
|
225
206
|
for (; t.nextNode();) {
|
|
226
207
|
let e = t.currentNode, n = getComputedStyle(e), r = n.backgroundImage && n.backgroundImage !== "none", i = n.maskImage && n.maskImage !== "none" || n.webkitMaskImage && n.webkitMaskImage !== "none";
|
|
@@ -229,5 +210,5 @@ function v(e) {
|
|
|
229
210
|
return !1;
|
|
230
211
|
}
|
|
231
212
|
//#endregion
|
|
232
|
-
export {
|
|
213
|
+
export { _ as default };
|
|
233
214
|
/* 独立思考,明辨是非 */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
2
|
-
//#region utils/snapdom/
|
|
1
|
+
/* 潘启宝 2026-04-14 16:53:57 星期二 */
|
|
2
|
+
//#region utils/snapdom/core/cache.js
|
|
3
3
|
var e = 100, t = 100, n = 150, r = 50, i = 30, a = class extends Map {
|
|
4
4
|
constructor(e = 100, ...t) {
|
|
5
5
|
super(...t), this._maxSize = e;
|
|
@@ -18,6 +18,7 @@ var e = 100, t = 100, n = 150, r = 50, i = 30, a = class extends Map {
|
|
|
18
18
|
defaultStyle: new a(i),
|
|
19
19
|
baseStyle: new a(r),
|
|
20
20
|
computedStyle: /* @__PURE__ */ new WeakMap(),
|
|
21
|
+
measureHints: /* @__PURE__ */ new WeakMap(),
|
|
21
22
|
font: /* @__PURE__ */ new Set(),
|
|
22
23
|
session: {
|
|
23
24
|
styleMap: /* @__PURE__ */ new Map(),
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/* 潘启宝 2026-04-14 16:53:57 星期二 */
|
|
2
|
+
import { applyCachePolicy as e, cache as t } from "./cache.js";
|
|
3
|
+
import { idle as n, isSafari as r } from "../utils/browser.js";
|
|
4
|
+
import { collectUsedTagNames as i, generateDedupedBaseCSS as a, getStyle as o } from "../utils/css.js";
|
|
5
|
+
import "../utils/index.js";
|
|
6
|
+
import { inlineBackgroundImages as s } from "../modules/background.js";
|
|
7
|
+
import { ligatureIconToImage as c } from "../modules/iconFonts.js";
|
|
8
|
+
import { collectUsedCodepoints as l, collectUsedFontVariants as u, embedCustomFonts as d, ensureFontsReady as f } from "../modules/fonts.js";
|
|
9
|
+
import { inlineImages as p } from "../modules/images.js";
|
|
10
|
+
import { lineClampTree as m } from "../modules/lineClamp.js";
|
|
11
|
+
import { runPictureResolverBeforeClone as h } from "../modules/pictureResolver.js";
|
|
12
|
+
import { collectScrollbarCSS as g, estimateKeptHeight as _, limitDecimals as v, sanitizeCloneForXHTML as y, shrinkAutoSizeBoxes as b, stripRootShadows as x } from "../utils/capture.helpers.js";
|
|
13
|
+
import { bboxWithOriginFull as S, hasBBoxAffectingTransform as C, normalizeRootTransforms as w, parseBoxShadow as T, parseFilterBlur as ee, parseFilterDropShadows as te, parseOutline as ne, parseTransformOriginPx as re, readIndividualTransforms as ie, readTotalTransformMatrix as ae } from "../utils/transforms.helpers.js";
|
|
14
|
+
import { getGlobalPlugins as E, normalizePlugin as D, runHook as O } from "./plugins.js";
|
|
15
|
+
import { prepareClone as k } from "./prepare.js";
|
|
16
|
+
//#region utils/snapdom/core/capture.js
|
|
17
|
+
function A(e) {
|
|
18
|
+
if (Array.isArray(e.plugins)) {
|
|
19
|
+
for (let t of e.plugins) if (D(t)?.name === "picture-resolver") return !0;
|
|
20
|
+
}
|
|
21
|
+
return E().some((e) => e?.name === "picture-resolver");
|
|
22
|
+
}
|
|
23
|
+
async function j(C, E) {
|
|
24
|
+
if (!C) throw Error("Element cannot be null or undefined");
|
|
25
|
+
e(E.cache);
|
|
26
|
+
let D = E.fast, j = E.outerTransforms !== !1, N = !!E.outerShadows, P = {
|
|
27
|
+
element: C,
|
|
28
|
+
options: E,
|
|
29
|
+
plugins: E.plugins
|
|
30
|
+
}, F, I, L, R = "", z = "", B, V, H = null;
|
|
31
|
+
await O("beforeSnap", P);
|
|
32
|
+
let U = null;
|
|
33
|
+
E.resolvePicturePlaceholders !== !1 && !A(E) && (U = await h(P.element, P.options)), await O("beforeClone", P);
|
|
34
|
+
let W = m(P.element);
|
|
35
|
+
try {
|
|
36
|
+
({clone: F, classCSS: I, styleCache: L} = await k(P.element, P.options)), !j && F && (H = w(P.element, F)), !N && F && x(P.element, F, P.options);
|
|
37
|
+
} finally {
|
|
38
|
+
W();
|
|
39
|
+
}
|
|
40
|
+
if (P = {
|
|
41
|
+
clone: F,
|
|
42
|
+
classCSS: I,
|
|
43
|
+
styleCache: L,
|
|
44
|
+
...P
|
|
45
|
+
}, await O("afterClone", P), U && await U(), y(P.clone), P.options?.excludeMode === "remove") try {
|
|
46
|
+
b(P.element, P.clone, P.styleCache);
|
|
47
|
+
} catch (e) {
|
|
48
|
+
console.warn("[snapdom] shrink pass failed:", e);
|
|
49
|
+
}
|
|
50
|
+
try {
|
|
51
|
+
await c(P.clone, P.element);
|
|
52
|
+
} catch {}
|
|
53
|
+
await new Promise((e) => {
|
|
54
|
+
n(async () => {
|
|
55
|
+
await p(P.clone, P.options), e();
|
|
56
|
+
}, { fast: D });
|
|
57
|
+
}), await new Promise((e) => {
|
|
58
|
+
n(async () => {
|
|
59
|
+
await s(P.element, P.clone, P.styleCache, P.options), e();
|
|
60
|
+
}, { fast: D });
|
|
61
|
+
}), E.embedFonts && await new Promise((e) => {
|
|
62
|
+
n(async () => {
|
|
63
|
+
let t = u(P.element), n = l(P.element);
|
|
64
|
+
r() && await f(new Set(Array.from(t).map((e) => String(e).split("__")[0]).filter(Boolean)), 1), R = await d({
|
|
65
|
+
required: t,
|
|
66
|
+
usedCodepoints: n,
|
|
67
|
+
preCached: !1,
|
|
68
|
+
exclude: P.options.excludeFonts,
|
|
69
|
+
useProxy: P.options.useProxy,
|
|
70
|
+
fontStylesheetDomains: P.options.fontStylesheetDomains
|
|
71
|
+
}), e();
|
|
72
|
+
}, { fast: D });
|
|
73
|
+
});
|
|
74
|
+
let G = i(P.clone).sort(), K = G.join(",");
|
|
75
|
+
t.baseStyle.has(K) ? z = t.baseStyle.get(K) : await new Promise((e) => {
|
|
76
|
+
n(() => {
|
|
77
|
+
z = a(G), t.baseStyle.set(K, z), e();
|
|
78
|
+
}, { fast: D });
|
|
79
|
+
});
|
|
80
|
+
let q = g(P.element?.ownerDocument || document);
|
|
81
|
+
P = {
|
|
82
|
+
fontsCSS: R,
|
|
83
|
+
baseCSS: z,
|
|
84
|
+
scrollbarCSS: q,
|
|
85
|
+
...P
|
|
86
|
+
}, await O("beforeRender", P), await new Promise((e) => {
|
|
87
|
+
n(() => {
|
|
88
|
+
let n = o(P.element), i = P.element.getBoundingClientRect(), a = Math.max(1, v(P.element.offsetWidth || parseFloat(n.width) || i.width || 1)), s = Math.max(1, v(P.element.offsetHeight || parseFloat(n.height) || i.height || 1)), c = P.element.ownerDocument || document;
|
|
89
|
+
if (P.element === c.body || P.element === c.documentElement) {
|
|
90
|
+
let e = Math.max(P.element.scrollHeight || 0, c.documentElement?.scrollHeight || 0, c.body?.scrollHeight || 0), n = Math.max(P.element.scrollWidth || 0, c.documentElement?.scrollWidth || 0, c.body?.scrollWidth || 0);
|
|
91
|
+
e > 0 && (s = Math.max(s, v(e))), n > 0 && (a = Math.max(a, v(n)));
|
|
92
|
+
try {
|
|
93
|
+
let e = (P.scrollbarCSS || "").length + (P.baseCSS || "").length + (P.fontsCSS || "").length + (P.classCSS || "").length, n = t.measureHints.get(P.element);
|
|
94
|
+
if (n && n.cssLen === e && n.w0 === a) n.csh > 0 && (s = Math.max(s, v(n.csh))), n.csw > 0 && (a = Math.max(a, v(n.csw)));
|
|
95
|
+
else {
|
|
96
|
+
let n = c.createElement("div");
|
|
97
|
+
n.style.cssText = "position:absolute!important;left:-9999px!important;top:0!important;width:" + a + "px!important;overflow:visible!important;visibility:hidden!important;";
|
|
98
|
+
let r = c.createElement("style");
|
|
99
|
+
r.textContent = (P.scrollbarCSS || "") + P.baseCSS + P.fontsCSS + "svg{overflow:visible;} foreignObject{overflow:visible;}" + P.classCSS, n.appendChild(r), n.appendChild(P.clone.cloneNode(!0)), c.body.appendChild(n);
|
|
100
|
+
let i = n.scrollHeight, o = n.scrollWidth;
|
|
101
|
+
c.body.removeChild(n), t.measureHints.set(P.element, {
|
|
102
|
+
cssLen: e,
|
|
103
|
+
w0: a,
|
|
104
|
+
csh: i,
|
|
105
|
+
csw: o
|
|
106
|
+
}), i > 0 && (s = Math.max(s, v(i))), o > 0 && (a = Math.max(a, v(o)));
|
|
107
|
+
}
|
|
108
|
+
} catch {}
|
|
109
|
+
}
|
|
110
|
+
if (P.options?.excludeMode === "remove") {
|
|
111
|
+
let e = _(P.element, P.options);
|
|
112
|
+
Number.isFinite(e) && e > 0 && (s = Math.max(1, Math.min(s, v(e + 1))));
|
|
113
|
+
}
|
|
114
|
+
let l = (e, t = NaN) => {
|
|
115
|
+
let n = typeof e == "string" ? parseFloat(e) : e;
|
|
116
|
+
return Number.isFinite(n) ? n : t;
|
|
117
|
+
}, u = l(P.options.width), d = l(P.options.height), f = a, p = s, m = Number.isFinite(u), h = Number.isFinite(d), g = s > 0 ? a / s : 1;
|
|
118
|
+
m && h ? (f = Math.max(1, v(u)), p = Math.max(1, v(d))) : m ? (f = Math.max(1, v(u)), p = Math.max(1, v(f / (g || 1)))) : h ? (p = Math.max(1, v(d)), f = Math.max(1, v(p * (g || 1)))) : (f = a, p = s);
|
|
119
|
+
let y = 0, b = 0, x = a, C = s;
|
|
120
|
+
if (!j && H && Number.isFinite(H.a)) {
|
|
121
|
+
let e = {
|
|
122
|
+
a: H.a,
|
|
123
|
+
b: H.b || 0,
|
|
124
|
+
c: H.c || 0,
|
|
125
|
+
d: H.d || 1,
|
|
126
|
+
e: 0,
|
|
127
|
+
f: 0
|
|
128
|
+
}, t = S(a, s, e, 0, 0);
|
|
129
|
+
y = v(t.minX), b = v(t.minY), x = v(t.maxX), C = v(t.maxY);
|
|
130
|
+
} else if (j && M(P.element)) {
|
|
131
|
+
let e = n.transform && n.transform !== "none" ? n.transform : "", t = ie(P.element), r = ae({
|
|
132
|
+
baseTransform: e,
|
|
133
|
+
rotate: t.rotate || "0deg",
|
|
134
|
+
scale: t.scale,
|
|
135
|
+
translate: t.translate
|
|
136
|
+
}), { ox: i, oy: o } = re(n, a, s), c = r.is2D ? r : new DOMMatrix(r.toString()), l = S(a, s, c, i, o);
|
|
137
|
+
y = v(l.minX), b = v(l.minY), x = v(l.maxX), C = v(l.maxY);
|
|
138
|
+
}
|
|
139
|
+
let w = T(n), D = ee(n), O = ne(n), k = te(n), A = N ? {
|
|
140
|
+
top: v(w.top + D.top + O.top + k.bleed.top),
|
|
141
|
+
right: v(w.right + D.right + O.right + k.bleed.right),
|
|
142
|
+
bottom: v(w.bottom + D.bottom + O.bottom + k.bleed.bottom),
|
|
143
|
+
left: v(w.left + D.left + O.left + k.bleed.left)
|
|
144
|
+
} : {
|
|
145
|
+
top: 0,
|
|
146
|
+
right: 0,
|
|
147
|
+
bottom: 0,
|
|
148
|
+
left: 0
|
|
149
|
+
};
|
|
150
|
+
y = v(y - A.left), b = v(b - A.top), x = v(x + A.right), C = v(C + A.bottom);
|
|
151
|
+
let F = Math.max(1, v(x - y)), I = Math.max(1, v(C - b)), L = m || h ? v(f / a) : 1, R = h || m ? v(p / s) : 1, z = Math.max(1, v(F * L)), U = Math.max(1, v(I * R)), W = "http://www.w3.org/2000/svg", G = v((r() && M(P.element) ? 1 : 0) + +!j), K = document.createElementNS(W, "foreignObject"), q = v(y), J = v(b);
|
|
152
|
+
K.setAttribute("x", String(v(-(q - G)))), K.setAttribute("y", String(v(-(J - G)))), K.setAttribute("width", String(v(a + G * 2))), K.setAttribute("height", String(v(s + G * 2))), K.style.overflow = "visible";
|
|
153
|
+
let Y = document.createElement("style");
|
|
154
|
+
Y.textContent = (P.scrollbarCSS || "") + P.baseCSS + P.fontsCSS + "svg{overflow:visible;} foreignObject{overflow:visible;} foreignObject *{min-width:0;} foreignObject pre,foreignObject [style*=\"white-space\"]{white-space:inherit;}" + P.classCSS, K.appendChild(Y);
|
|
155
|
+
let X = document.createElement("div");
|
|
156
|
+
X.setAttribute("xmlns", "http://www.w3.org/1999/xhtml"), X.style.cssText = `all:initial;box-sizing:border-box;display:block;overflow:visible;width:${v(a)}px;height:${v(s)}px`, X.appendChild(P.clone), K.appendChild(X);
|
|
157
|
+
let oe = new XMLSerializer().serializeToString(K), Z = v(F + G * 2), Q = v(I + G * 2), $ = m || h;
|
|
158
|
+
E.meta = {
|
|
159
|
+
w0: a,
|
|
160
|
+
h0: s,
|
|
161
|
+
vbW: Z,
|
|
162
|
+
vbH: Q,
|
|
163
|
+
targetW: f,
|
|
164
|
+
targetH: p
|
|
165
|
+
}, V = `<svg xmlns="${W}" width="${r() && $ ? Z : v(z + G * 2)}" height="${r() && $ ? Q : v(U + G * 2)}" viewBox="0 0 ${Z} ${Q}" font-size="${parseFloat(o(c.documentElement)?.fontSize) || 16}px">` + oe + "</svg>", B = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(V)}`, P = {
|
|
166
|
+
svgString: V,
|
|
167
|
+
dataURL: B,
|
|
168
|
+
...P
|
|
169
|
+
}, e();
|
|
170
|
+
}, { fast: D });
|
|
171
|
+
}), await O("afterRender", P);
|
|
172
|
+
let J = document.getElementById("snapdom-sandbox");
|
|
173
|
+
return J && J.style.position === "absolute" && J.remove(), P.dataURL;
|
|
174
|
+
}
|
|
175
|
+
function M(e) {
|
|
176
|
+
return C(e);
|
|
177
|
+
}
|
|
178
|
+
//#endregion
|
|
179
|
+
export { j as captureDOM };
|
|
180
|
+
/* 独立思考,明辨是非 */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-04-14 16:53:57 星期二 */
|
|
2
2
|
import { isFirefox as e } from "../utils/browser.js";
|
|
3
3
|
import { NO_CAPTURE_TAGS as t } from "../utils/css.js";
|
|
4
4
|
import { debugWarn as n } from "../utils/debug.js";
|
|
@@ -6,13 +6,14 @@ import "../utils/index.js";
|
|
|
6
6
|
import { inlineAllStyles as r } from "../modules/styles.js";
|
|
7
7
|
import { buildSeedCustomPropsRule as i, collectCustomPropsFromCSS as a, createCheckboxRadioReplacement as o, extractShadowCSS as s, freezeImgSrcset as c, getUnscaledDimensions as l, idleCallback as u, injectScopedStyle as d, markSlottedSubtree as f, nextShadowScopeId as p, rasterizeIframe as m, rewriteShadowCSS as h } from "../utils/clone.helpers.js";
|
|
8
8
|
import { resolveCSSVars as g } from "../modules/CSSVar.js";
|
|
9
|
-
//#region utils/snapdom/
|
|
9
|
+
//#region utils/snapdom/core/clone.js
|
|
10
10
|
async function _(v, y, b) {
|
|
11
11
|
if (!v) throw Error("Invalid node");
|
|
12
12
|
let x = /* @__PURE__ */ new Set(), S = null, C = null;
|
|
13
13
|
if (v.nodeType === Node.ELEMENT_NODE) {
|
|
14
14
|
let e = (v.localName || v.tagName || "").toLowerCase();
|
|
15
15
|
if (v.id === "snapdom-sandbox" || v.hasAttribute("data-snapdom-sandbox") || t.has(e)) return null;
|
|
16
|
+
if (e === "foreignobject" && v.parentElement?.closest?.("foreignObject")) return n(y, "Nested <foreignObject> skipped (SVG spec limitation — not rendered by browsers)"), null;
|
|
16
17
|
}
|
|
17
18
|
if (v.nodeType === Node.TEXT_NODE || v.nodeType !== Node.ELEMENT_NODE) return v.cloneNode(!0);
|
|
18
19
|
if (v.getAttribute("data-capture") === "exclude") {
|
|
@@ -53,7 +54,7 @@ async function _(v, y, b) {
|
|
|
53
54
|
} catch (e) {
|
|
54
55
|
console.warn("[SnapDOM] iframe rasterization failed, fallback:", e);
|
|
55
56
|
}
|
|
56
|
-
if (b.placeholders) {
|
|
57
|
+
if (e || console.warn("[snapdom] cross-origin <iframe> skipped (cannot access content). Use options.placeholders to show a placeholder instead.", v), b.placeholders) {
|
|
57
58
|
let { width: e, height: t } = l(v), n = document.createElement("div");
|
|
58
59
|
return n.style.cssText = `width:${e}px;height:${t}px;background-image:repeating-linear-gradient(45deg,#ddd,#ddd 5px,#f9f9f9 5px,#f9f9f9 10px);display:flex;align-items:center;justify-content:center;font-size:12px;color:#555;border:1px solid #aaa;`, r(v, n, y, b), n;
|
|
59
60
|
} else {
|
|
@@ -98,9 +99,30 @@ async function _(v, y, b) {
|
|
|
98
99
|
let { width: i, height: a } = l(v);
|
|
99
100
|
return i > 0 && (t.style.width = `${i}px`), a > 0 && (t.style.height = `${a}px`), y.nodeMap.set(t, v), r(v, t, y, b), t;
|
|
100
101
|
}
|
|
102
|
+
if (v.tagName === "VIDEO") {
|
|
103
|
+
let e = "";
|
|
104
|
+
try {
|
|
105
|
+
let t = document.createElement("canvas");
|
|
106
|
+
t.width = v.videoWidth || v.offsetWidth || 320, t.height = v.videoHeight || v.offsetHeight || 240;
|
|
107
|
+
let n = t.getContext("2d");
|
|
108
|
+
n && (n.drawImage(v, 0, 0, t.width, t.height), e = t.toDataURL("image/png"), (!e || e === "data:,") && (e = ""));
|
|
109
|
+
} catch (e) {
|
|
110
|
+
n(y, "Video frame capture failed, using poster fallback", e);
|
|
111
|
+
}
|
|
112
|
+
let t = document.createElement("img");
|
|
113
|
+
try {
|
|
114
|
+
t.decoding = "sync", t.loading = "eager";
|
|
115
|
+
} catch {}
|
|
116
|
+
e ? t.src = e : v.poster && (t.src = v.poster), t.width = v.videoWidth || v.offsetWidth || 0, t.height = v.videoHeight || v.offsetHeight || 0;
|
|
117
|
+
let { width: i, height: a } = l(v);
|
|
118
|
+
return i > 0 && (t.style.width = `${i}px`), a > 0 && (t.style.height = `${a}px`), t.style.objectFit = "contain", y.nodeMap.set(t, v), r(v, t, y, b), t;
|
|
119
|
+
}
|
|
101
120
|
let w;
|
|
102
121
|
try {
|
|
103
|
-
if (w = v.cloneNode(!1),
|
|
122
|
+
if (w = v.cloneNode(!1), w.attributes?.length) try {
|
|
123
|
+
for (let e of w.attributes) /[\x00-\x08\x0B\x0C\x0E-\x1F\uFFFE\uFFFF]/.test(e.value) && w.setAttribute(e.name, e.value.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\uFFFE\uFFFF]/g, ""));
|
|
124
|
+
} catch {}
|
|
125
|
+
if (g(v, w), y.nodeMap.set(w, v), v.tagName === "IMG") {
|
|
104
126
|
c(v, w);
|
|
105
127
|
try {
|
|
106
128
|
let { width: e, height: t } = l(v), n = Math.round(e || 0), r = Math.round(t || 0);
|
|
@@ -113,7 +135,9 @@ async function _(v, y, b) {
|
|
|
113
135
|
let r = e.match(RegExp(`${n}\\s*:\\s*([^;]+)`, "i")), i = r ? r[1].trim() : t.getPropertyValue(n);
|
|
114
136
|
return /%|auto/i.test(String(i || ""));
|
|
115
137
|
}, r = parseInt(w.dataset.snapdomWidth || "0", 10), i = parseInt(w.dataset.snapdomHeight || "0", 10), a = n("width") || !r, o = n("height") || !i;
|
|
116
|
-
a && r && (w.style.width = `${r}px`), o && i && (w.style.height = `${i}px`)
|
|
138
|
+
a && r && (w.style.width = `${r}px`), o && i && (w.style.height = `${i}px`);
|
|
139
|
+
let s = t.getPropertyValue("object-fit"), c = t.getPropertyValue("object-position");
|
|
140
|
+
s && s !== "fill" ? (w.style.objectFit = s, c && (w.style.objectPosition = c)) : (r && (w.style.minWidth = `${r}px`), i && (w.style.minHeight = `${i}px`));
|
|
117
141
|
} catch (e) {
|
|
118
142
|
n(y, "IMG dimension freeze failed", e);
|
|
119
143
|
}
|
|
@@ -133,7 +157,53 @@ async function _(v, y, b) {
|
|
|
133
157
|
y.nodeMap.set(e, v), T = t, w = e;
|
|
134
158
|
} else w.value = v.value, w.setAttribute("value", v.value), v.checked !== void 0 && (w.checked = v.checked, v.checked && w.setAttribute("checked", ""), v.indeterminate && (w.indeterminate = v.indeterminate));
|
|
135
159
|
}
|
|
136
|
-
if (v instanceof
|
|
160
|
+
if ((v instanceof HTMLInputElement || v instanceof HTMLTextAreaElement) && !v.value && v.placeholder) try {
|
|
161
|
+
let e = window.getComputedStyle(v, "::placeholder"), t = e && e.color;
|
|
162
|
+
if (t && t !== "rgba(0, 0, 0, 0)") {
|
|
163
|
+
let n = "snapdom-ph-" + (Math.random() * 1e6 | 0);
|
|
164
|
+
w.classList.add(n);
|
|
165
|
+
let r = document.createElement("style");
|
|
166
|
+
r.textContent = `.${n}::placeholder{color:${t}!important;opacity:${e.opacity || "1"}!important;}`, w.prepend(r);
|
|
167
|
+
}
|
|
168
|
+
} catch {}
|
|
169
|
+
if (v instanceof HTMLSelectElement && (S = v.value), v instanceof HTMLTextAreaElement && (C = v.value), v instanceof HTMLInputElement || v instanceof HTMLTextAreaElement || v instanceof HTMLSelectElement) {
|
|
170
|
+
v.disabled && w.setAttribute("disabled", ""), v.required && w.setAttribute("required", ""), v.readOnly && w.setAttribute("readonly", "");
|
|
171
|
+
let e = v;
|
|
172
|
+
e.min !== void 0 && e.min !== "" && w.setAttribute("min", e.min), e.max !== void 0 && e.max !== "" && w.setAttribute("max", e.max), e.pattern !== void 0 && e.pattern !== "" && w.setAttribute("pattern", e.pattern);
|
|
173
|
+
let t = v.getAttribute("aria-invalid");
|
|
174
|
+
t !== null && w.setAttribute("aria-invalid", t);
|
|
175
|
+
}
|
|
176
|
+
if (r(v, w, y, b), T && T(), v instanceof SVGElement) {
|
|
177
|
+
let e = [
|
|
178
|
+
"fill",
|
|
179
|
+
"stroke",
|
|
180
|
+
"stroke-width",
|
|
181
|
+
"stroke-dasharray",
|
|
182
|
+
"stroke-dashoffset",
|
|
183
|
+
"stroke-linecap",
|
|
184
|
+
"stroke-linejoin",
|
|
185
|
+
"stroke-miterlimit",
|
|
186
|
+
"opacity",
|
|
187
|
+
"fill-opacity",
|
|
188
|
+
"stroke-opacity",
|
|
189
|
+
"fill-rule",
|
|
190
|
+
"clip-rule",
|
|
191
|
+
"marker",
|
|
192
|
+
"marker-start",
|
|
193
|
+
"marker-mid",
|
|
194
|
+
"marker-end",
|
|
195
|
+
"visibility",
|
|
196
|
+
"display"
|
|
197
|
+
];
|
|
198
|
+
try {
|
|
199
|
+
let t = window.getComputedStyle(v);
|
|
200
|
+
for (let n of e) {
|
|
201
|
+
let e = t.getPropertyValue(n);
|
|
202
|
+
e && w.style.setProperty(n, e);
|
|
203
|
+
}
|
|
204
|
+
} catch {}
|
|
205
|
+
}
|
|
206
|
+
if (v.shadowRoot) {
|
|
137
207
|
try {
|
|
138
208
|
let e = v.shadowRoot.querySelectorAll("slot");
|
|
139
209
|
for (let t of e) {
|
|
@@ -27,6 +27,8 @@
|
|
|
27
27
|
* @param {boolean} [options.outerTransforms] // NEW
|
|
28
28
|
* @param {boolean} [options.outerShadows] // NEW
|
|
29
29
|
* @param {RegExp|((prop: string) => boolean)} [options.excludeStyleProps] - Skip props when snapshotting (#348). e.g. /^--/ to exclude CSS vars
|
|
30
|
+
* @param {boolean} [options.resolvePicturePlaceholders] - Resolve <picture> placeholders / lazy data-src before clone (default true)
|
|
31
|
+
* @param {{ timeout?: number, concurrency?: number, resolveLazySrc?: boolean, silent?: boolean }} [options.pictureResolver] - Fine-tune built-in picture resolver
|
|
30
32
|
* @returns {Object}
|
|
31
33
|
*/
|
|
32
34
|
export function createContext(options?: {
|
|
@@ -56,5 +58,12 @@ export function createContext(options?: {
|
|
|
56
58
|
outerTransforms?: boolean | undefined;
|
|
57
59
|
outerShadows?: boolean | undefined;
|
|
58
60
|
excludeStyleProps?: RegExp | ((prop: string) => boolean) | undefined;
|
|
61
|
+
resolvePicturePlaceholders?: boolean | undefined;
|
|
62
|
+
pictureResolver?: {
|
|
63
|
+
timeout?: number;
|
|
64
|
+
concurrency?: number;
|
|
65
|
+
resolveLazySrc?: boolean;
|
|
66
|
+
silent?: boolean;
|
|
67
|
+
} | undefined;
|
|
59
68
|
}): Object;
|
|
60
69
|
export type CachePolicy = "disabled" | "full" | "auto" | "soft";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/* 潘启宝 2026-
|
|
1
|
+
/* 潘启宝 2026-04-14 16:53:57 星期二 */
|
|
2
2
|
import { normalizeCachePolicy as e } from "./cache.js";
|
|
3
|
-
//#region utils/snapdom/
|
|
3
|
+
//#region utils/snapdom/core/context.js
|
|
4
4
|
function t(t = {}) {
|
|
5
5
|
let n = t.format ?? "png";
|
|
6
6
|
n === "jpg" && (n = "jpeg");
|
|
@@ -33,7 +33,9 @@ function t(t = {}) {
|
|
|
33
33
|
outerTransforms: t.outerTransforms ?? !0,
|
|
34
34
|
outerShadows: t.outerShadows ?? !1,
|
|
35
35
|
safariWarmupAttempts: Math.min(3, Math.max(1, (t.safariWarmupAttempts ?? 3) | 0)),
|
|
36
|
-
excludeStyleProps: t.excludeStyleProps ?? null
|
|
36
|
+
excludeStyleProps: t.excludeStyleProps ?? null,
|
|
37
|
+
resolvePicturePlaceholders: t.resolvePicturePlaceholders !== !1,
|
|
38
|
+
pictureResolver: t.pictureResolver && typeof t.pictureResolver == "object" ? t.pictureResolver : {}
|
|
37
39
|
};
|
|
38
40
|
}
|
|
39
41
|
//#endregion
|