@unicom-cloud/utils 0.1.51 → 0.1.52

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.
Files changed (980) hide show
  1. package/.virtual/_rolldown/runtime.js +1 -1
  2. package/.vite/manifest.json +1 -0
  3. package/array/index.js +1 -1
  4. package/assert/index.js +1 -1
  5. package/case-name/index.js +1 -1
  6. package/class-name/index.js +1 -1
  7. package/clipboard-copy/index.js +1 -1
  8. package/constant/address.js +1 -1
  9. package/constant/chineseCharacters.js +1 -1
  10. package/constant/constellations.js +1 -1
  11. package/constant/domain.js +1 -1
  12. package/constant/identity.js +1 -1
  13. package/constant/index.js +1 -1
  14. package/constant/keyboardCode.js +1 -1
  15. package/constant/licensePlate.js +1 -1
  16. package/constant/name.js +1 -1
  17. package/constant/platform.js +1 -1
  18. package/constant/protocol.js +1 -1
  19. package/constant/string.js +1 -1
  20. package/constant/ui.d.ts +5 -4
  21. package/constant/ui.js +10 -9
  22. package/content-disposition/index.js +1 -1
  23. package/cookie/api.js +1 -1
  24. package/cookie/assign.js +1 -1
  25. package/cookie/converter.js +1 -1
  26. package/cookie/index.js +1 -1
  27. package/css/cssSupported.js +1 -1
  28. package/css/index.js +1 -1
  29. package/date/convertTime.js +1 -1
  30. package/date/convertToDuration.js +1 -1
  31. package/date/index.js +1 -1
  32. package/decimal/decimal.js +1 -1
  33. package/decimal/index.js +1 -1
  34. package/dom-align/LICENSE.md +20 -9
  35. package/dom-align/adjustForViewport.js +1 -1
  36. package/dom-align/align/align.js +1 -1
  37. package/dom-align/align/alignElement.js +1 -1
  38. package/dom-align/align/alignPoint.js +1 -1
  39. package/dom-align/getAlignOffset.js +1 -1
  40. package/dom-align/getElFuturePos.js +1 -1
  41. package/dom-align/getOffsetParent.js +1 -1
  42. package/dom-align/getRegion.js +1 -1
  43. package/dom-align/getVisibleRectForElement.js +1 -1
  44. package/dom-align/index.js +1 -1
  45. package/dom-align/isAncestorFixed.js +1 -1
  46. package/dom-align/propertyUtils.js +1 -1
  47. package/dom-align/utils.js +1 -1
  48. package/dom-helpers/activeElement.js +1 -1
  49. package/dom-helpers/addClass.js +1 -1
  50. package/dom-helpers/addEventListener.js +1 -1
  51. package/dom-helpers/animate.js +1 -1
  52. package/dom-helpers/animationFrame.js +1 -1
  53. package/dom-helpers/attribute.js +1 -1
  54. package/dom-helpers/camelize.js +1 -1
  55. package/dom-helpers/camelizeStyle.js +1 -1
  56. package/dom-helpers/canUseDOM.js +1 -1
  57. package/dom-helpers/childElements.js +1 -1
  58. package/dom-helpers/childNodes.js +1 -1
  59. package/dom-helpers/clear.js +1 -1
  60. package/dom-helpers/closest.js +1 -1
  61. package/dom-helpers/collectElements.js +1 -1
  62. package/dom-helpers/collectSiblings.js +1 -1
  63. package/dom-helpers/contains.js +1 -1
  64. package/dom-helpers/css.js +1 -1
  65. package/dom-helpers/filterEventHandler.js +1 -1
  66. package/dom-helpers/getComputedStyle.js +1 -1
  67. package/dom-helpers/getElementCoordinates.js +1 -1
  68. package/dom-helpers/getScrollAccessor.js +1 -1
  69. package/dom-helpers/hasClass.js +1 -1
  70. package/dom-helpers/height.js +1 -1
  71. package/dom-helpers/hyphenate.js +1 -1
  72. package/dom-helpers/hyphenateStyle.js +1 -1
  73. package/dom-helpers/index.js +1 -1
  74. package/dom-helpers/insertAfter.js +1 -1
  75. package/dom-helpers/isDocument.js +1 -1
  76. package/dom-helpers/isInput.js +1 -1
  77. package/dom-helpers/isTransform.js +1 -1
  78. package/dom-helpers/isVisible.js +1 -1
  79. package/dom-helpers/isWindow.js +1 -1
  80. package/dom-helpers/listen.js +1 -1
  81. package/dom-helpers/matches.js +1 -1
  82. package/dom-helpers/nextUntil.js +1 -1
  83. package/dom-helpers/offset.js +1 -1
  84. package/dom-helpers/offsetParent.js +1 -1
  85. package/dom-helpers/ownerDocument.js +1 -1
  86. package/dom-helpers/ownerWindow.js +1 -1
  87. package/dom-helpers/parents.js +1 -1
  88. package/dom-helpers/position.js +1 -1
  89. package/dom-helpers/prepend.js +1 -1
  90. package/dom-helpers/querySelectorAll.js +1 -1
  91. package/dom-helpers/reflow.js +1 -1
  92. package/dom-helpers/remove.js +1 -1
  93. package/dom-helpers/removeClass.js +1 -1
  94. package/dom-helpers/removeEventListener.js +1 -1
  95. package/dom-helpers/scrollLeft.js +1 -1
  96. package/dom-helpers/scrollParent.js +1 -1
  97. package/dom-helpers/scrollTo.js +1 -1
  98. package/dom-helpers/scrollTop.js +1 -1
  99. package/dom-helpers/scrollbarSize.js +1 -1
  100. package/dom-helpers/siblings.js +1 -1
  101. package/dom-helpers/text.js +1 -1
  102. package/dom-helpers/toggleClass.js +1 -1
  103. package/dom-helpers/transitionEnd.js +1 -1
  104. package/dom-helpers/triggerEvent.js +1 -1
  105. package/dom-helpers/types.js +1 -1
  106. package/dom-helpers/width.js +1 -1
  107. package/emitter/index.js +1 -1
  108. package/emoji/emoji.js +1 -1
  109. package/emoji/emojis.js +1 -1
  110. package/emoji/index.js +1 -1
  111. package/escape/index.js +1 -1
  112. package/fflate/index.js +1 -1
  113. package/fflate/src/index.js +1 -1
  114. package/fflate/src/worker.js +1 -1
  115. package/file/fileRead.js +1 -1
  116. package/file/fileToDataURL.js +1 -1
  117. package/file/img.js +1 -1
  118. package/file/index.js +1 -1
  119. package/file/saveAs.js +1 -1
  120. package/filesize/index.js +1 -1
  121. package/filesize/src/constants.js +1 -1
  122. package/filesize/src/filesize.js +1 -1
  123. package/filesize/src/helpers.js +1 -1
  124. package/function/index.js +1 -1
  125. package/idb/async-iterators.js +1 -1
  126. package/idb/database-extras.js +1 -1
  127. package/idb/entry.js +1 -1
  128. package/idb/index-.js +1 -1
  129. package/idb/index.js +1 -1
  130. package/idb/util.js +1 -1
  131. package/idb/wrap-idb-value.js +1 -1
  132. package/index.js +1 -1
  133. package/invariant/index.js +1 -1
  134. package/is/index.js +92 -92
  135. package/is/lib/isAscii.js +1 -1
  136. package/is/lib/isBase64.js +1 -1
  137. package/is/lib/isChinese.js +1 -1
  138. package/is/lib/isDataURI.js +1 -1
  139. package/is/lib/isEmail.d.ts +1 -1
  140. package/is/lib/isEmail.js +1 -1
  141. package/is/lib/isFQDN.js +1 -1
  142. package/is/lib/isFullWidth.js +1 -1
  143. package/is/lib/isHSL.js +1 -1
  144. package/is/lib/isHalfWidth.js +1 -1
  145. package/is/lib/isHash.js +1 -1
  146. package/is/lib/isHexColor.js +1 -1
  147. package/is/lib/isIMEI.js +1 -1
  148. package/is/lib/isIP.js +1 -1
  149. package/is/lib/isIPRange.js +1 -1
  150. package/is/lib/isIdentityCard.js +1 -1
  151. package/is/lib/isJWT.js +1 -1
  152. package/is/lib/isMACAddress.d.ts +1 -1
  153. package/is/lib/isMACAddress.js +1 -1
  154. package/is/lib/isMD5.js +1 -1
  155. package/is/lib/isMimeType.js +1 -1
  156. package/is/lib/isMobilePhone.d.ts +1 -1
  157. package/is/lib/isMobilePhone.js +1 -1
  158. package/is/lib/isPort.js +1 -1
  159. package/is/lib/isRgbColor.js +1 -1
  160. package/is/lib/isSemVer.js +1 -1
  161. package/is/lib/isSlug.js +1 -1
  162. package/is/lib/isStrongPassword.d.ts +1 -1
  163. package/is/lib/isStrongPassword.js +3 -3
  164. package/is/lib/isURL.d.ts +1 -1
  165. package/is/lib/isURL.js +1 -1
  166. package/is/lib/isUUID.js +1 -1
  167. package/is/lib/isVariableWidth.js +1 -1
  168. package/lodash/_DataView.js +1 -1
  169. package/lodash/_Hash.js +1 -1
  170. package/lodash/_LazyWrapper.js +1 -1
  171. package/lodash/_ListCache.js +1 -1
  172. package/lodash/_LodashWrapper.js +1 -1
  173. package/lodash/_Map.js +1 -1
  174. package/lodash/_MapCache.js +1 -1
  175. package/lodash/_Promise.js +1 -1
  176. package/lodash/_Set.js +1 -1
  177. package/lodash/_SetCache.js +1 -1
  178. package/lodash/_Stack.js +1 -1
  179. package/lodash/_Symbol.js +1 -1
  180. package/lodash/_Uint8Array.js +1 -1
  181. package/lodash/_WeakMap.js +1 -1
  182. package/lodash/_addMapEntry.js +1 -1
  183. package/lodash/_addSetEntry.js +1 -1
  184. package/lodash/_apply.js +1 -1
  185. package/lodash/_arrayAggregator.js +1 -1
  186. package/lodash/_arrayEach.js +1 -1
  187. package/lodash/_arrayEachRight.js +1 -1
  188. package/lodash/_arrayEvery.js +1 -1
  189. package/lodash/_arrayFilter.js +1 -1
  190. package/lodash/_arrayIncludes.js +1 -1
  191. package/lodash/_arrayIncludesWith.js +1 -1
  192. package/lodash/_arrayLikeKeys.js +1 -1
  193. package/lodash/_arrayMap.js +1 -1
  194. package/lodash/_arrayPush.js +1 -1
  195. package/lodash/_arrayReduce.js +1 -1
  196. package/lodash/_arrayReduceRight.js +1 -1
  197. package/lodash/_arraySample.js +1 -1
  198. package/lodash/_arraySampleSize.js +1 -1
  199. package/lodash/_arrayShuffle.js +1 -1
  200. package/lodash/_arraySome.js +1 -1
  201. package/lodash/_asciiSize.js +1 -1
  202. package/lodash/_asciiToArray.js +1 -1
  203. package/lodash/_asciiWords.js +1 -1
  204. package/lodash/_assignMergeValue.js +1 -1
  205. package/lodash/_assignValue.js +1 -1
  206. package/lodash/_assocIndexOf.js +1 -1
  207. package/lodash/_baseAggregator.js +1 -1
  208. package/lodash/_baseAssign.js +1 -1
  209. package/lodash/_baseAssignIn.js +1 -1
  210. package/lodash/_baseAssignValue.js +1 -1
  211. package/lodash/_baseAt.js +1 -1
  212. package/lodash/_baseClamp.js +1 -1
  213. package/lodash/_baseClone.js +1 -1
  214. package/lodash/_baseConforms.js +1 -1
  215. package/lodash/_baseConformsTo.js +1 -1
  216. package/lodash/_baseCreate.js +1 -1
  217. package/lodash/_baseDelay.js +1 -1
  218. package/lodash/_baseDifference.js +1 -1
  219. package/lodash/_baseEach.js +1 -1
  220. package/lodash/_baseEachRight.js +1 -1
  221. package/lodash/_baseEvery.js +1 -1
  222. package/lodash/_baseExtremum.js +1 -1
  223. package/lodash/_baseFill.js +1 -1
  224. package/lodash/_baseFilter.js +1 -1
  225. package/lodash/_baseFindIndex.js +1 -1
  226. package/lodash/_baseFindKey.js +1 -1
  227. package/lodash/_baseFlatten.js +1 -1
  228. package/lodash/_baseFor.js +1 -1
  229. package/lodash/_baseForOwn.js +1 -1
  230. package/lodash/_baseForOwnRight.js +1 -1
  231. package/lodash/_baseForRight.js +1 -1
  232. package/lodash/_baseFunctions.js +1 -1
  233. package/lodash/_baseGet.js +1 -1
  234. package/lodash/_baseGetAllKeys.js +1 -1
  235. package/lodash/_baseGetTag.js +1 -1
  236. package/lodash/_baseGt.js +1 -1
  237. package/lodash/_baseHas.js +1 -1
  238. package/lodash/_baseHasIn.js +1 -1
  239. package/lodash/_baseInRange.js +1 -1
  240. package/lodash/_baseIndexOf.js +1 -1
  241. package/lodash/_baseIndexOfWith.js +1 -1
  242. package/lodash/_baseIntersection.js +1 -1
  243. package/lodash/_baseInverter.js +1 -1
  244. package/lodash/_baseInvoke.js +1 -1
  245. package/lodash/_baseIsArguments.js +1 -1
  246. package/lodash/_baseIsArrayBuffer.js +1 -1
  247. package/lodash/_baseIsDate.js +1 -1
  248. package/lodash/_baseIsEqual.js +1 -1
  249. package/lodash/_baseIsEqualDeep.js +1 -1
  250. package/lodash/_baseIsMap.js +1 -1
  251. package/lodash/_baseIsMatch.js +1 -1
  252. package/lodash/_baseIsNaN.js +1 -1
  253. package/lodash/_baseIsNative.js +1 -1
  254. package/lodash/_baseIsRegExp.js +1 -1
  255. package/lodash/_baseIsSet.js +1 -1
  256. package/lodash/_baseIsTypedArray.js +1 -1
  257. package/lodash/_baseIteratee.js +1 -1
  258. package/lodash/_baseKeys.js +1 -1
  259. package/lodash/_baseKeysIn.js +1 -1
  260. package/lodash/_baseLodash.js +1 -1
  261. package/lodash/_baseLt.js +1 -1
  262. package/lodash/_baseMap.js +1 -1
  263. package/lodash/_baseMatches.js +1 -1
  264. package/lodash/_baseMatchesProperty.js +1 -1
  265. package/lodash/_baseMean.js +1 -1
  266. package/lodash/_baseMerge.js +1 -1
  267. package/lodash/_baseMergeDeep.js +1 -1
  268. package/lodash/_baseNth.js +1 -1
  269. package/lodash/_baseOrderBy.js +1 -1
  270. package/lodash/_basePick.js +1 -1
  271. package/lodash/_basePickBy.js +1 -1
  272. package/lodash/_baseProperty.js +1 -1
  273. package/lodash/_basePropertyDeep.js +1 -1
  274. package/lodash/_basePropertyOf.js +1 -1
  275. package/lodash/_basePullAll.js +1 -1
  276. package/lodash/_basePullAt.js +1 -1
  277. package/lodash/_baseRandom.js +1 -1
  278. package/lodash/_baseRange.js +1 -1
  279. package/lodash/_baseReduce.js +1 -1
  280. package/lodash/_baseRepeat.js +1 -1
  281. package/lodash/_baseRest.js +1 -1
  282. package/lodash/_baseSample.js +1 -1
  283. package/lodash/_baseSampleSize.js +1 -1
  284. package/lodash/_baseSet.js +1 -1
  285. package/lodash/_baseSetData.js +1 -1
  286. package/lodash/_baseSetToString.js +1 -1
  287. package/lodash/_baseShuffle.js +1 -1
  288. package/lodash/_baseSlice.js +1 -1
  289. package/lodash/_baseSome.js +1 -1
  290. package/lodash/_baseSortBy.js +1 -1
  291. package/lodash/_baseSortedIndex.js +1 -1
  292. package/lodash/_baseSortedIndexBy.js +1 -1
  293. package/lodash/_baseSortedUniq.js +1 -1
  294. package/lodash/_baseSum.js +1 -1
  295. package/lodash/_baseTimes.js +1 -1
  296. package/lodash/_baseToNumber.js +1 -1
  297. package/lodash/_baseToPairs.js +1 -1
  298. package/lodash/_baseToString.js +1 -1
  299. package/lodash/_baseTrim.js +1 -1
  300. package/lodash/_baseUnary.js +1 -1
  301. package/lodash/_baseUniq.js +1 -1
  302. package/lodash/_baseUnset.js +1 -1
  303. package/lodash/_baseUpdate.js +1 -1
  304. package/lodash/_baseValues.js +1 -1
  305. package/lodash/_baseWhile.js +1 -1
  306. package/lodash/_baseWrapperValue.js +1 -1
  307. package/lodash/_baseXor.js +1 -1
  308. package/lodash/_baseZipObject.js +1 -1
  309. package/lodash/_cacheHas.js +1 -1
  310. package/lodash/_castArrayLikeObject.js +1 -1
  311. package/lodash/_castFunction.js +1 -1
  312. package/lodash/_castPath.js +1 -1
  313. package/lodash/_castRest.js +1 -1
  314. package/lodash/_castSlice.js +1 -1
  315. package/lodash/_charsEndIndex.js +1 -1
  316. package/lodash/_charsStartIndex.js +1 -1
  317. package/lodash/_cloneArrayBuffer.js +1 -1
  318. package/lodash/_cloneBuffer.js +1 -1
  319. package/lodash/_cloneDataView.js +1 -1
  320. package/lodash/_cloneMap.js +1 -1
  321. package/lodash/_cloneRegExp.js +1 -1
  322. package/lodash/_cloneSet.js +1 -1
  323. package/lodash/_cloneSymbol.js +1 -1
  324. package/lodash/_cloneTypedArray.js +1 -1
  325. package/lodash/_compareAscending.js +1 -1
  326. package/lodash/_compareMultiple.js +1 -1
  327. package/lodash/_composeArgs.js +1 -1
  328. package/lodash/_composeArgsRight.js +1 -1
  329. package/lodash/_copyArray.js +1 -1
  330. package/lodash/_copyObject.js +1 -1
  331. package/lodash/_copySymbols.js +1 -1
  332. package/lodash/_copySymbolsIn.js +1 -1
  333. package/lodash/_coreJsData.js +1 -1
  334. package/lodash/_countHolders.js +1 -1
  335. package/lodash/_createAggregator.js +1 -1
  336. package/lodash/_createAssigner.js +1 -1
  337. package/lodash/_createBaseEach.js +1 -1
  338. package/lodash/_createBaseFor.js +1 -1
  339. package/lodash/_createBind.js +1 -1
  340. package/lodash/_createCaseFirst.js +1 -1
  341. package/lodash/_createCompounder.js +1 -1
  342. package/lodash/_createCtor.js +1 -1
  343. package/lodash/_createCurry.js +1 -1
  344. package/lodash/_createFind.js +1 -1
  345. package/lodash/_createFlow.js +1 -1
  346. package/lodash/_createHybrid.js +1 -1
  347. package/lodash/_createInverter.js +1 -1
  348. package/lodash/_createMathOperation.js +1 -1
  349. package/lodash/_createOver.js +1 -1
  350. package/lodash/_createPadding.js +1 -1
  351. package/lodash/_createPartial.js +1 -1
  352. package/lodash/_createRange.js +1 -1
  353. package/lodash/_createRecurry.js +1 -1
  354. package/lodash/_createRelationalOperation.js +1 -1
  355. package/lodash/_createRound.js +1 -1
  356. package/lodash/_createSet.js +1 -1
  357. package/lodash/_createToPairs.js +1 -1
  358. package/lodash/_createWrap.js +1 -1
  359. package/lodash/_customDefaultsAssignIn.js +1 -1
  360. package/lodash/_customDefaultsMerge.js +1 -1
  361. package/lodash/_customOmitClone.js +1 -1
  362. package/lodash/_deburrLetter.js +1 -1
  363. package/lodash/_defineProperty.js +1 -1
  364. package/lodash/_equalArrays.js +1 -1
  365. package/lodash/_equalByTag.js +1 -1
  366. package/lodash/_equalObjects.js +1 -1
  367. package/lodash/_escapeHtmlChar.js +1 -1
  368. package/lodash/_escapeStringChar.js +1 -1
  369. package/lodash/_flatRest.js +1 -1
  370. package/lodash/_freeGlobal.js +1 -1
  371. package/lodash/_getAllKeys.js +1 -1
  372. package/lodash/_getAllKeysIn.js +1 -1
  373. package/lodash/_getData.js +1 -1
  374. package/lodash/_getFuncName.js +1 -1
  375. package/lodash/_getHolder.js +1 -1
  376. package/lodash/_getMapData.js +1 -1
  377. package/lodash/_getMatchData.js +1 -1
  378. package/lodash/_getNative.js +1 -1
  379. package/lodash/_getPrototype.js +1 -1
  380. package/lodash/_getRawTag.js +1 -1
  381. package/lodash/_getSymbols.js +1 -1
  382. package/lodash/_getSymbolsIn.js +1 -1
  383. package/lodash/_getTag.js +1 -1
  384. package/lodash/_getValue.js +1 -1
  385. package/lodash/_getView.js +1 -1
  386. package/lodash/_getWrapDetails.js +1 -1
  387. package/lodash/_hasPath.js +1 -1
  388. package/lodash/_hasUnicode.js +1 -1
  389. package/lodash/_hasUnicodeWord.js +1 -1
  390. package/lodash/_hashClear.js +1 -1
  391. package/lodash/_hashDelete.js +1 -1
  392. package/lodash/_hashGet.js +1 -1
  393. package/lodash/_hashHas.js +1 -1
  394. package/lodash/_hashSet.js +1 -1
  395. package/lodash/_initCloneArray.js +1 -1
  396. package/lodash/_initCloneByTag.js +1 -1
  397. package/lodash/_initCloneObject.js +1 -1
  398. package/lodash/_insertWrapDetails.js +1 -1
  399. package/lodash/_isFlattenable.js +1 -1
  400. package/lodash/_isIndex.js +1 -1
  401. package/lodash/_isIterateeCall.js +1 -1
  402. package/lodash/_isKey.js +1 -1
  403. package/lodash/_isKeyable.js +1 -1
  404. package/lodash/_isLaziable.js +1 -1
  405. package/lodash/_isMaskable.js +1 -1
  406. package/lodash/_isMasked.js +1 -1
  407. package/lodash/_isPrototype.js +1 -1
  408. package/lodash/_isStrictComparable.js +1 -1
  409. package/lodash/_iteratorToArray.js +1 -1
  410. package/lodash/_lazyClone.js +1 -1
  411. package/lodash/_lazyReverse.js +1 -1
  412. package/lodash/_lazyValue.js +1 -1
  413. package/lodash/_listCacheClear.js +1 -1
  414. package/lodash/_listCacheDelete.js +1 -1
  415. package/lodash/_listCacheGet.js +1 -1
  416. package/lodash/_listCacheHas.js +1 -1
  417. package/lodash/_listCacheSet.js +1 -1
  418. package/lodash/_mapCacheClear.js +1 -1
  419. package/lodash/_mapCacheDelete.js +1 -1
  420. package/lodash/_mapCacheGet.js +1 -1
  421. package/lodash/_mapCacheHas.js +1 -1
  422. package/lodash/_mapCacheSet.js +1 -1
  423. package/lodash/_mapToArray.js +1 -1
  424. package/lodash/_matchesStrictComparable.js +1 -1
  425. package/lodash/_memoizeCapped.js +1 -1
  426. package/lodash/_mergeData.js +1 -1
  427. package/lodash/_metaMap.js +1 -1
  428. package/lodash/_nativeCreate.js +1 -1
  429. package/lodash/_nativeKeys.js +1 -1
  430. package/lodash/_nativeKeysIn.js +1 -1
  431. package/lodash/_nodeUtil.js +1 -1
  432. package/lodash/_objectToString.js +1 -1
  433. package/lodash/_overArg.js +1 -1
  434. package/lodash/_overRest.js +1 -1
  435. package/lodash/_parent.js +1 -1
  436. package/lodash/_reEscape.js +1 -1
  437. package/lodash/_reEvaluate.js +1 -1
  438. package/lodash/_reInterpolate.js +1 -1
  439. package/lodash/_realNames.js +1 -1
  440. package/lodash/_reorder.js +1 -1
  441. package/lodash/_replaceHolders.js +1 -1
  442. package/lodash/_root.js +1 -1
  443. package/lodash/_safeGet.js +1 -1
  444. package/lodash/_setCacheAdd.js +1 -1
  445. package/lodash/_setCacheHas.js +1 -1
  446. package/lodash/_setData.js +1 -1
  447. package/lodash/_setToArray.js +1 -1
  448. package/lodash/_setToPairs.js +1 -1
  449. package/lodash/_setToString.js +1 -1
  450. package/lodash/_setWrapToString.js +1 -1
  451. package/lodash/_shortOut.js +1 -1
  452. package/lodash/_shuffleSelf.js +1 -1
  453. package/lodash/_stackClear.js +1 -1
  454. package/lodash/_stackDelete.js +1 -1
  455. package/lodash/_stackGet.js +1 -1
  456. package/lodash/_stackHas.js +1 -1
  457. package/lodash/_stackSet.js +1 -1
  458. package/lodash/_strictIndexOf.js +1 -1
  459. package/lodash/_strictLastIndexOf.js +1 -1
  460. package/lodash/_stringSize.js +1 -1
  461. package/lodash/_stringToArray.js +1 -1
  462. package/lodash/_stringToPath.js +1 -1
  463. package/lodash/_toKey.js +1 -1
  464. package/lodash/_toSource.js +1 -1
  465. package/lodash/_trimmedEndIndex.js +1 -1
  466. package/lodash/_unescapeHtmlChar.js +1 -1
  467. package/lodash/_unicodeSize.js +1 -1
  468. package/lodash/_unicodeToArray.js +1 -1
  469. package/lodash/_unicodeWords.js +1 -1
  470. package/lodash/_updateWrapDetails.js +1 -1
  471. package/lodash/_wrapperClone.js +1 -1
  472. package/lodash/add.js +1 -1
  473. package/lodash/after.js +1 -1
  474. package/lodash/array.default.js +1 -1
  475. package/lodash/array.js +1 -1
  476. package/lodash/ary.js +1 -1
  477. package/lodash/assign.js +1 -1
  478. package/lodash/assignIn.js +1 -1
  479. package/lodash/assignInWith.js +1 -1
  480. package/lodash/assignWith.js +1 -1
  481. package/lodash/at.js +1 -1
  482. package/lodash/attempt.js +1 -1
  483. package/lodash/before.js +1 -1
  484. package/lodash/bind.js +1 -1
  485. package/lodash/bindAll.js +1 -1
  486. package/lodash/bindKey.js +1 -1
  487. package/lodash/camelCase.js +1 -1
  488. package/lodash/capitalize.js +1 -1
  489. package/lodash/castArray.js +1 -1
  490. package/lodash/ceil.js +1 -1
  491. package/lodash/chain.js +1 -1
  492. package/lodash/chunk.js +1 -1
  493. package/lodash/clamp.js +1 -1
  494. package/lodash/clone.js +1 -1
  495. package/lodash/cloneDeep.js +1 -1
  496. package/lodash/cloneDeepWith.js +1 -1
  497. package/lodash/cloneWith.js +1 -1
  498. package/lodash/collection.default.js +1 -1
  499. package/lodash/collection.js +1 -1
  500. package/lodash/commit.js +1 -1
  501. package/lodash/compact.js +1 -1
  502. package/lodash/concat.js +1 -1
  503. package/lodash/cond.js +1 -1
  504. package/lodash/conforms.js +1 -1
  505. package/lodash/conformsTo.js +1 -1
  506. package/lodash/constant.js +1 -1
  507. package/lodash/countBy.js +1 -1
  508. package/lodash/create.js +1 -1
  509. package/lodash/curry.js +1 -1
  510. package/lodash/curryRight.js +1 -1
  511. package/lodash/date.default.js +1 -1
  512. package/lodash/date.js +1 -1
  513. package/lodash/debounce.js +1 -1
  514. package/lodash/deburr.js +1 -1
  515. package/lodash/defaultTo.js +1 -1
  516. package/lodash/defaults.js +1 -1
  517. package/lodash/defaultsDeep.js +1 -1
  518. package/lodash/defer.js +1 -1
  519. package/lodash/delay.js +1 -1
  520. package/lodash/difference.js +1 -1
  521. package/lodash/differenceBy.js +1 -1
  522. package/lodash/differenceWith.js +1 -1
  523. package/lodash/divide.js +1 -1
  524. package/lodash/drop.js +1 -1
  525. package/lodash/dropRight.js +1 -1
  526. package/lodash/dropRightWhile.js +1 -1
  527. package/lodash/dropWhile.js +1 -1
  528. package/lodash/each.js +1 -1
  529. package/lodash/eachRight.js +1 -1
  530. package/lodash/endsWith.js +1 -1
  531. package/lodash/entries.js +1 -1
  532. package/lodash/entriesIn.js +1 -1
  533. package/lodash/eq.js +1 -1
  534. package/lodash/escape.js +1 -1
  535. package/lodash/escapeRegExp.js +1 -1
  536. package/lodash/every.js +1 -1
  537. package/lodash/extend.js +1 -1
  538. package/lodash/extendWith.js +1 -1
  539. package/lodash/fill.js +1 -1
  540. package/lodash/filter.js +1 -1
  541. package/lodash/find.js +1 -1
  542. package/lodash/findIndex.js +1 -1
  543. package/lodash/findKey.js +1 -1
  544. package/lodash/findLast.js +1 -1
  545. package/lodash/findLastIndex.js +1 -1
  546. package/lodash/findLastKey.js +1 -1
  547. package/lodash/first.js +1 -1
  548. package/lodash/flatMap.js +1 -1
  549. package/lodash/flatMapDeep.js +1 -1
  550. package/lodash/flatMapDepth.js +1 -1
  551. package/lodash/flatten.js +1 -1
  552. package/lodash/flattenDeep.js +1 -1
  553. package/lodash/flattenDepth.js +1 -1
  554. package/lodash/flip.js +1 -1
  555. package/lodash/floor.js +1 -1
  556. package/lodash/flow.js +1 -1
  557. package/lodash/flowRight.js +1 -1
  558. package/lodash/forEach.js +1 -1
  559. package/lodash/forEachRight.js +1 -1
  560. package/lodash/forIn.js +1 -1
  561. package/lodash/forInRight.js +1 -1
  562. package/lodash/forOwn.js +1 -1
  563. package/lodash/forOwnRight.js +1 -1
  564. package/lodash/fromPairs.js +1 -1
  565. package/lodash/function.default.js +1 -1
  566. package/lodash/function.js +1 -1
  567. package/lodash/functions.js +1 -1
  568. package/lodash/functionsIn.js +1 -1
  569. package/lodash/get.js +1 -1
  570. package/lodash/groupBy.js +1 -1
  571. package/lodash/gt.js +1 -1
  572. package/lodash/gte.js +1 -1
  573. package/lodash/has.js +1 -1
  574. package/lodash/hasIn.js +1 -1
  575. package/lodash/head.js +1 -1
  576. package/lodash/identity.js +1 -1
  577. package/lodash/inRange.js +1 -1
  578. package/lodash/includes.js +1 -1
  579. package/lodash/index.js +1 -1
  580. package/lodash/indexOf.js +1 -1
  581. package/lodash/initial.js +1 -1
  582. package/lodash/intersection.js +1 -1
  583. package/lodash/intersectionBy.js +1 -1
  584. package/lodash/intersectionWith.js +1 -1
  585. package/lodash/invert.js +1 -1
  586. package/lodash/invertBy.js +1 -1
  587. package/lodash/invoke.js +1 -1
  588. package/lodash/invokeMap.js +1 -1
  589. package/lodash/isArguments.js +1 -1
  590. package/lodash/isArray.js +1 -1
  591. package/lodash/isArrayBuffer.js +1 -1
  592. package/lodash/isArrayLike.js +1 -1
  593. package/lodash/isArrayLikeObject.js +1 -1
  594. package/lodash/isBoolean.js +1 -1
  595. package/lodash/isBuffer.js +1 -1
  596. package/lodash/isDate.js +1 -1
  597. package/lodash/isElement.js +1 -1
  598. package/lodash/isEmpty.js +1 -1
  599. package/lodash/isEqual.js +1 -1
  600. package/lodash/isEqualWith.js +1 -1
  601. package/lodash/isError.js +1 -1
  602. package/lodash/isFinite.js +1 -1
  603. package/lodash/isFunction.js +1 -1
  604. package/lodash/isInteger.js +1 -1
  605. package/lodash/isLength.js +1 -1
  606. package/lodash/isMap.js +1 -1
  607. package/lodash/isMatch.js +1 -1
  608. package/lodash/isMatchWith.js +1 -1
  609. package/lodash/isNaN.js +1 -1
  610. package/lodash/isNative.js +1 -1
  611. package/lodash/isNil.js +1 -1
  612. package/lodash/isNull.js +1 -1
  613. package/lodash/isNumber.js +1 -1
  614. package/lodash/isObject.js +1 -1
  615. package/lodash/isObjectLike.js +1 -1
  616. package/lodash/isPlainObject.js +1 -1
  617. package/lodash/isPromise.js +1 -1
  618. package/lodash/isRegExp.js +1 -1
  619. package/lodash/isSafeInteger.js +1 -1
  620. package/lodash/isSet.js +1 -1
  621. package/lodash/isString.js +1 -1
  622. package/lodash/isSymbol.js +1 -1
  623. package/lodash/isTypedArray.js +1 -1
  624. package/lodash/isUndefined.js +1 -1
  625. package/lodash/isWeakMap.js +1 -1
  626. package/lodash/isWeakSet.js +1 -1
  627. package/lodash/iteratee.js +1 -1
  628. package/lodash/join.js +1 -1
  629. package/lodash/kebabCase.js +1 -1
  630. package/lodash/keyBy.js +1 -1
  631. package/lodash/keys.js +1 -1
  632. package/lodash/keysIn.js +1 -1
  633. package/lodash/lang.default.js +1 -1
  634. package/lodash/lang.js +1 -1
  635. package/lodash/last.js +1 -1
  636. package/lodash/lastIndexOf.js +1 -1
  637. package/lodash/lodash.default.js +1 -1
  638. package/lodash/lodash.js +1 -1
  639. package/lodash/lowerCase.js +1 -1
  640. package/lodash/lowerFirst.js +1 -1
  641. package/lodash/lt.js +1 -1
  642. package/lodash/lte.js +1 -1
  643. package/lodash/map.js +1 -1
  644. package/lodash/mapKeys.js +1 -1
  645. package/lodash/mapValues.js +1 -1
  646. package/lodash/matches.js +1 -1
  647. package/lodash/matchesProperty.js +1 -1
  648. package/lodash/math.default.js +1 -1
  649. package/lodash/math.js +1 -1
  650. package/lodash/max.js +1 -1
  651. package/lodash/maxBy.js +1 -1
  652. package/lodash/mean.js +1 -1
  653. package/lodash/meanBy.js +1 -1
  654. package/lodash/memoize.js +1 -1
  655. package/lodash/merge.js +1 -1
  656. package/lodash/mergeWith.js +1 -1
  657. package/lodash/method.js +1 -1
  658. package/lodash/methodOf.js +1 -1
  659. package/lodash/min.js +1 -1
  660. package/lodash/minBy.js +1 -1
  661. package/lodash/mixin.js +1 -1
  662. package/lodash/multiply.js +1 -1
  663. package/lodash/negate.js +1 -1
  664. package/lodash/next.js +1 -1
  665. package/lodash/noop.js +1 -1
  666. package/lodash/now.js +1 -1
  667. package/lodash/nth.js +1 -1
  668. package/lodash/nthArg.js +1 -1
  669. package/lodash/number.default.js +1 -1
  670. package/lodash/number.js +1 -1
  671. package/lodash/object.default.js +1 -1
  672. package/lodash/object.js +1 -1
  673. package/lodash/omit.js +1 -1
  674. package/lodash/omitBy.js +1 -1
  675. package/lodash/once.js +1 -1
  676. package/lodash/orderBy.js +1 -1
  677. package/lodash/over.js +1 -1
  678. package/lodash/overArgs.js +1 -1
  679. package/lodash/overEvery.js +1 -1
  680. package/lodash/overSome.js +1 -1
  681. package/lodash/pad.js +1 -1
  682. package/lodash/padEnd.js +1 -1
  683. package/lodash/padStart.js +1 -1
  684. package/lodash/parseInt.js +1 -1
  685. package/lodash/partial.js +1 -1
  686. package/lodash/partialRight.js +1 -1
  687. package/lodash/partition.js +1 -1
  688. package/lodash/pick.js +1 -1
  689. package/lodash/pickBy.js +1 -1
  690. package/lodash/plant.js +1 -1
  691. package/lodash/property.js +1 -1
  692. package/lodash/propertyOf.js +1 -1
  693. package/lodash/pull.js +1 -1
  694. package/lodash/pullAll.js +1 -1
  695. package/lodash/pullAllBy.js +1 -1
  696. package/lodash/pullAllWith.js +1 -1
  697. package/lodash/pullAt.js +1 -1
  698. package/lodash/random.js +1 -1
  699. package/lodash/range.js +1 -1
  700. package/lodash/rangeRight.js +1 -1
  701. package/lodash/rearg.js +1 -1
  702. package/lodash/reduce.js +1 -1
  703. package/lodash/reduceRight.js +1 -1
  704. package/lodash/reject.js +1 -1
  705. package/lodash/remove.js +1 -1
  706. package/lodash/repeat.js +1 -1
  707. package/lodash/replace.js +1 -1
  708. package/lodash/rest.js +1 -1
  709. package/lodash/result.js +1 -1
  710. package/lodash/reverse.js +1 -1
  711. package/lodash/round.js +1 -1
  712. package/lodash/sample.js +1 -1
  713. package/lodash/sampleSize.js +1 -1
  714. package/lodash/seq.default.js +1 -1
  715. package/lodash/seq.js +1 -1
  716. package/lodash/set.js +1 -1
  717. package/lodash/setWith.js +1 -1
  718. package/lodash/shuffle.js +1 -1
  719. package/lodash/size.js +1 -1
  720. package/lodash/slice.js +1 -1
  721. package/lodash/snakeCase.js +1 -1
  722. package/lodash/some.js +1 -1
  723. package/lodash/sortBy.js +1 -1
  724. package/lodash/sortedIndex.js +1 -1
  725. package/lodash/sortedIndexBy.js +1 -1
  726. package/lodash/sortedIndexOf.js +1 -1
  727. package/lodash/sortedLastIndex.js +1 -1
  728. package/lodash/sortedLastIndexBy.js +1 -1
  729. package/lodash/sortedLastIndexOf.js +1 -1
  730. package/lodash/sortedUniq.js +1 -1
  731. package/lodash/sortedUniqBy.js +1 -1
  732. package/lodash/split.js +1 -1
  733. package/lodash/spread.js +1 -1
  734. package/lodash/startCase.js +1 -1
  735. package/lodash/startsWith.js +1 -1
  736. package/lodash/string.default.js +1 -1
  737. package/lodash/string.js +1 -1
  738. package/lodash/stubArray.js +1 -1
  739. package/lodash/stubFalse.js +1 -1
  740. package/lodash/stubObject.js +1 -1
  741. package/lodash/stubString.js +1 -1
  742. package/lodash/stubTrue.js +1 -1
  743. package/lodash/subtract.js +1 -1
  744. package/lodash/sum.js +1 -1
  745. package/lodash/sumBy.js +1 -1
  746. package/lodash/tail.js +1 -1
  747. package/lodash/take.js +1 -1
  748. package/lodash/takeRight.js +1 -1
  749. package/lodash/takeRightWhile.js +1 -1
  750. package/lodash/takeWhile.js +1 -1
  751. package/lodash/tap.js +1 -1
  752. package/lodash/template.js +1 -1
  753. package/lodash/templateSettings.js +1 -1
  754. package/lodash/throttle.js +1 -1
  755. package/lodash/thru.js +1 -1
  756. package/lodash/times.js +1 -1
  757. package/lodash/toArray.js +1 -1
  758. package/lodash/toFinite.js +1 -1
  759. package/lodash/toInteger.js +1 -1
  760. package/lodash/toIterator.js +1 -1
  761. package/lodash/toJSON.js +1 -1
  762. package/lodash/toLength.js +1 -1
  763. package/lodash/toLower.js +1 -1
  764. package/lodash/toNumber.js +1 -1
  765. package/lodash/toPairs.js +1 -1
  766. package/lodash/toPairsIn.js +1 -1
  767. package/lodash/toPath.js +1 -1
  768. package/lodash/toPlainObject.js +1 -1
  769. package/lodash/toSafeInteger.js +1 -1
  770. package/lodash/toString.js +1 -1
  771. package/lodash/toUpper.js +1 -1
  772. package/lodash/transform.js +1 -1
  773. package/lodash/trim.js +1 -1
  774. package/lodash/trimEnd.js +1 -1
  775. package/lodash/trimStart.js +1 -1
  776. package/lodash/truncate.js +1 -1
  777. package/lodash/unary.js +1 -1
  778. package/lodash/unescape.js +1 -1
  779. package/lodash/union.js +1 -1
  780. package/lodash/unionBy.js +1 -1
  781. package/lodash/unionWith.js +1 -1
  782. package/lodash/uniq.js +1 -1
  783. package/lodash/uniqBy.js +1 -1
  784. package/lodash/uniqWith.js +1 -1
  785. package/lodash/uniqueId.js +1 -1
  786. package/lodash/unset.js +1 -1
  787. package/lodash/unzip.js +1 -1
  788. package/lodash/unzipWith.js +1 -1
  789. package/lodash/update.js +1 -1
  790. package/lodash/updateWith.js +1 -1
  791. package/lodash/upperCase.js +1 -1
  792. package/lodash/upperFirst.js +1 -1
  793. package/lodash/util.default.js +1 -1
  794. package/lodash/util.js +1 -1
  795. package/lodash/value.js +1 -1
  796. package/lodash/valueOf.js +1 -1
  797. package/lodash/values.js +1 -1
  798. package/lodash/valuesIn.js +1 -1
  799. package/lodash/without.js +1 -1
  800. package/lodash/words.js +1 -1
  801. package/lodash/wrap.js +1 -1
  802. package/lodash/wrapperAt.js +1 -1
  803. package/lodash/wrapperChain.js +1 -1
  804. package/lodash/wrapperLodash.js +1 -1
  805. package/lodash/wrapperReverse.js +1 -1
  806. package/lodash/wrapperValue.js +1 -1
  807. package/lodash/xor.js +1 -1
  808. package/lodash/xorBy.js +1 -1
  809. package/lodash/xorWith.js +1 -1
  810. package/lodash/zip.js +1 -1
  811. package/lodash/zipObject.js +1 -1
  812. package/lodash/zipObjectDeep.js +1 -1
  813. package/lodash/zipWith.js +1 -1
  814. package/math/index.js +1 -1
  815. package/md5/index.js +1 -1
  816. package/mock/MockWebSocket.js +1 -1
  817. package/mock/MockXMLHttpRequest.js +1 -1
  818. package/mock/index.js +1 -1
  819. package/mousetrap/index.js +1 -1
  820. package/mousetrap/plugins/bind-dictionary/index.js +1 -1
  821. package/mousetrap/plugins/global-bind/index.js +1 -1
  822. package/mousetrap/plugins/index.js +1 -1
  823. package/mousetrap/plugins/pause/index.js +1 -1
  824. package/mousetrap/plugins/record/index.js +1 -1
  825. package/normalize-wheel/ExecutionEnvironment.js +1 -1
  826. package/normalize-wheel/UserAgent_DEPRECATED.js +1 -1
  827. package/normalize-wheel/index.js +1 -1
  828. package/normalize-wheel/isEventSupported.js +1 -1
  829. package/number-to-chinese/index.js +1 -1
  830. package/nzh/cn.js +1 -1
  831. package/nzh/hk.js +1 -1
  832. package/nzh/index.js +1 -1
  833. package/nzh/nzh.js +1 -1
  834. package/nzh/src/autoGet.js +1 -1
  835. package/nzh/src/index.js +1 -1
  836. package/nzh/src/langs/cn_b.js +1 -1
  837. package/nzh/src/langs/cn_s.js +1 -1
  838. package/nzh/src/langs/hk_b.js +1 -1
  839. package/nzh/src/langs/hk_s.js +1 -1
  840. package/nzh/src/utils.js +1 -1
  841. package/object/index.js +1 -1
  842. package/package.json +1 -1
  843. package/pinyin/index.js +1 -1
  844. package/pinyin/lib/common/constant.js +1 -1
  845. package/pinyin/lib/common/segmentit/AC.d.ts +1 -1
  846. package/pinyin/lib/common/segmentit/AC.js +6 -6
  847. package/pinyin/lib/common/segmentit/TrieNode.d.ts +3 -1
  848. package/pinyin/lib/common/segmentit/TrieNode.js +2 -2
  849. package/pinyin/lib/common/segmentit/index.js +1 -1
  850. package/pinyin/lib/common/segmentit/max-probability.js +1 -1
  851. package/pinyin/lib/common/segmentit/min-tokenization.js +1 -1
  852. package/pinyin/lib/common/segmentit/reverse-max-match.js +1 -1
  853. package/pinyin/lib/common/utils.js +1 -1
  854. package/pinyin/lib/core/convert/index.js +1 -1
  855. package/pinyin/lib/core/custom/index.d.ts +1 -1
  856. package/pinyin/lib/core/custom/index.js +9 -5
  857. package/pinyin/lib/core/dict/index.js +1 -1
  858. package/pinyin/lib/core/html/index.js +1 -1
  859. package/pinyin/lib/core/match/index.js +1 -1
  860. package/pinyin/lib/core/pinyin/handle.js +2 -2
  861. package/pinyin/lib/core/pinyin/index.js +1 -1
  862. package/pinyin/lib/core/pinyin/middlewares.js +1 -1
  863. package/pinyin/lib/core/polyphonic/index.js +47 -34
  864. package/pinyin/lib/core/segment/index.js +1 -1
  865. package/pinyin/lib/core/segment/middlewares.js +1 -1
  866. package/pinyin/lib/core/traditional/index.js +1 -1
  867. package/pinyin/lib/data/dict1.js +1 -1
  868. package/pinyin/lib/data/dict2.js +1 -1
  869. package/pinyin/lib/data/dict3.js +1 -1
  870. package/pinyin/lib/data/dict4.js +1 -1
  871. package/pinyin/lib/data/dict5.js +1 -1
  872. package/pinyin/lib/data/special.js +1 -1
  873. package/pinyin/lib/data/surname.js +1 -1
  874. package/pinyin/lib/index.js +1 -1
  875. package/query-string/index.js +1 -1
  876. package/random/address.js +1 -1
  877. package/random/constellation.js +1 -1
  878. package/random/image.js +1 -1
  879. package/random/index.js +1 -1
  880. package/random/licensePlate.js +1 -1
  881. package/random/name.js +1 -1
  882. package/random/number.js +1 -1
  883. package/random/text.js +1 -1
  884. package/random/time.js +1 -1
  885. package/random/web.js +1 -1
  886. package/request/apiReplaceSegment.js +1 -1
  887. package/request/index.js +1 -1
  888. package/sanitize-url/index.js +1 -1
  889. package/screenfull/index.js +1 -1
  890. package/sleep/index.js +1 -1
  891. package/snapdom/index.browser.js +1 -1
  892. package/snapdom/index.js +1 -1
  893. package/snapdom/src/api/preCache.js +1 -1
  894. package/snapdom/src/api/snapdom.js +1 -1
  895. package/snapdom/src/core/cache.js +1 -1
  896. package/snapdom/src/core/capture.js +98 -97
  897. package/snapdom/src/core/clone.js +1 -1
  898. package/snapdom/src/core/context.js +1 -1
  899. package/snapdom/src/core/plugins.js +1 -1
  900. package/snapdom/src/core/prepare.js +1 -1
  901. package/snapdom/src/exporters/download.js +1 -1
  902. package/snapdom/src/exporters/toBlob.js +1 -1
  903. package/snapdom/src/exporters/toCanvas.js +62 -44
  904. package/snapdom/src/exporters/toImg.js +1 -1
  905. package/snapdom/src/index.browser.js +1 -1
  906. package/snapdom/src/index.js +1 -1
  907. package/snapdom/src/modules/CSSVar.js +1 -1
  908. package/snapdom/src/modules/background.js +1 -1
  909. package/snapdom/src/modules/changeCSS.js +1 -1
  910. package/snapdom/src/modules/counter.js +1 -1
  911. package/snapdom/src/modules/fonts.js +1 -1
  912. package/snapdom/src/modules/iconFonts.js +1 -1
  913. package/snapdom/src/modules/images.js +1 -1
  914. package/snapdom/src/modules/lineClamp.js +1 -1
  915. package/snapdom/src/modules/pictureResolver.js +1 -1
  916. package/snapdom/src/modules/pseudo.js +1 -1
  917. package/snapdom/src/modules/rasterize.js +1 -1
  918. package/snapdom/src/modules/snapFetch.js +1 -1
  919. package/snapdom/src/modules/styles.js +1 -1
  920. package/snapdom/src/modules/svgDefs.js +1 -1
  921. package/snapdom/src/utils/browser.js +1 -1
  922. package/snapdom/src/utils/capture.helpers.d.ts +25 -0
  923. package/snapdom/src/utils/capture.helpers.js +81 -26
  924. package/snapdom/src/utils/clone.helpers.js +1 -1
  925. package/snapdom/src/utils/css.js +12 -4
  926. package/snapdom/src/utils/debug.js +1 -1
  927. package/snapdom/src/utils/helpers.js +1 -1
  928. package/snapdom/src/utils/image.js +1 -1
  929. package/snapdom/src/utils/index.js +1 -1
  930. package/snapdom/src/utils/prepare.helpers.js +1 -1
  931. package/snapdom/src/utils/transforms.helpers.js +1 -1
  932. package/string/chars.js +1 -1
  933. package/string/index.js +1 -1
  934. package/tinycolor/conversion.js +1 -1
  935. package/tinycolor/css-color-names.js +1 -1
  936. package/tinycolor/format-input.js +1 -1
  937. package/tinycolor/from-ratio.js +1 -1
  938. package/tinycolor/index.js +1 -1
  939. package/tinycolor/interfaces.js +1 -1
  940. package/tinycolor/public_api.js +1 -1
  941. package/tinycolor/random.js +1 -1
  942. package/tinycolor/readability.js +1 -1
  943. package/tinycolor/to-ms-filter.js +1 -1
  944. package/tinycolor/umd_api.js +1 -1
  945. package/tinycolor/utils.js +1 -1
  946. package/tree/index.js +4 -4
  947. package/tree/searchTree.js +1 -1
  948. package/tween/easing.js +1 -1
  949. package/tween/index.js +1 -1
  950. package/tween/tween.js +1 -1
  951. package/ui-color/compareColorByRange.js +1 -1
  952. package/ui-color/index.js +1 -1
  953. package/url-toolkit/index.js +1 -1
  954. package/validate/index.d.ts +9 -9
  955. package/validate/index.js +12 -6
  956. package/validate/interface.d.ts +12 -12
  957. package/validate/interface.js +1 -1
  958. package/validate/locale/en-US.js +1 -1
  959. package/validate/locale/index.js +1 -1
  960. package/validate/locale/zh-CN.js +1 -1
  961. package/validate/rules/array.d.ts +4 -4
  962. package/validate/rules/array.js +1 -1
  963. package/validate/rules/base.d.ts +5 -5
  964. package/validate/rules/base.js +26 -22
  965. package/validate/rules/boolean.d.ts +4 -4
  966. package/validate/rules/boolean.js +1 -1
  967. package/validate/rules/custom.d.ts +5 -5
  968. package/validate/rules/custom.js +14 -10
  969. package/validate/rules/number.d.ts +6 -6
  970. package/validate/rules/number.js +1 -1
  971. package/validate/rules/object.d.ts +4 -4
  972. package/validate/rules/object.js +1 -1
  973. package/validate/rules/string.d.ts +6 -6
  974. package/validate/rules/string.js +1 -1
  975. package/validate/rules/type.d.ts +4 -4
  976. package/validate/rules/type.js +1 -1
  977. package/version/index.js +1 -1
  978. package/xlsx/crc32.js +1 -1
  979. package/xlsx/index.js +1 -1
  980. package/xlsx/xlsx.js +1 -1
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-04 15:24:21 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
2
2
  import { isBrowser as e } from "../constant/platform.js";
3
3
  //#region utils/screenfull/index.js
4
4
  var t = "requestFullscreen", n = "exitFullscreen", r = "fullscreenElement", i = "fullscreenEnabled", a = "fullscreenchange", o = "fullscreenerror", s = { isEnabled: !1 };
package/sleep/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-04 15:24:21 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
2
2
  //#region utils/sleep/index.js
3
3
  async function e(e) {
4
4
  return new Promise((t) => {
@@ -1,3 +1,3 @@
1
- /* 潘启宝 2026-06-04 15:24:21 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
2
2
  import "./src/index.browser.js";
3
3
  /* 独立思考,明辨是非 */
package/snapdom/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-04 15:24:21 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
2
2
  import { preCache as e } from "./src/api/preCache.js";
3
3
  import t from "./src/api/snapdom.js";
4
4
  import "./src/index.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-04 15:24:21 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
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";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-04 15:24:21 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
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";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-04 15:24:21 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
2
2
  //#region utils/snapdom/src/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) {
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-04 15:24:21 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
2
2
  import { applyCachePolicy as e, cache as t } from "./cache.js";
3
3
  import { idle as n, isSafari as r } from "../utils/browser.js";
4
4
  import { collectUsedTagNames as i, generateDedupedBaseCSS as a, getStyle as o } from "../utils/css.js";
@@ -9,172 +9,173 @@ import { collectUsedCodepoints as l, collectUsedFontVariants as u, embedCustomFo
9
9
  import { inlineImages as p } from "../modules/images.js";
10
10
  import { lineClampTree as m } from "../modules/lineClamp.js";
11
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";
12
+ import { collectScrollbarCSS as g, estimateKeptHeight as ee, limitDecimals as _, neutralizeRootMarginCollapse 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 te, parseFilterBlur as ne, parseFilterDropShadows as re, parseOutline as T, parseTransformOriginPx as E, readIndividualTransforms as ie, readTotalTransformMatrix as ae } from "../utils/transforms.helpers.js";
14
+ import { getGlobalPlugins as D, normalizePlugin as O, runHook as k } from "./plugins.js";
15
+ import { prepareClone as A } from "./prepare.js";
16
16
  //#region utils/snapdom/src/core/capture.js
17
- function A(e) {
17
+ function j(e) {
18
18
  if (Array.isArray(e.plugins)) {
19
- for (let t of e.plugins) if (D(t)?.name === "picture-resolver") return !0;
19
+ for (let t of e.plugins) if (O(t)?.name === "picture-resolver") return !0;
20
20
  }
21
- return E().some((e) => e?.name === "picture-resolver");
21
+ return D().some((e) => e?.name === "picture-resolver");
22
22
  }
23
- async function j(C, E) {
23
+ async function M(C, D) {
24
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 = {
25
+ e(D.cache);
26
+ let O = D.fast, M = D.outerTransforms !== !1, P = !!D.outerShadows, F = {
27
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);
28
+ options: D,
29
+ plugins: D.plugins
30
+ }, I, L, R, z = "", B = "", V, H, U = null;
31
+ await k("beforeSnap", F);
32
+ let W = null;
33
+ D.resolvePicturePlaceholders !== !1 && !j(D) && (W = await h(F.element, F.options)), await k("beforeClone", F);
34
+ let G = m(F.element);
35
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);
36
+ ({clone: I, classCSS: L, styleCache: R} = await A(F.element, F.options)), !M && I && (U = w(F.element, I)), !P && I && x(F.element, I, F.options), I && v(F.element, I);
37
37
  } finally {
38
- W();
38
+ G();
39
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);
40
+ if (F = {
41
+ clone: I,
42
+ classCSS: L,
43
+ styleCache: R,
44
+ ...F
45
+ }, await k("afterClone", F), W && await W(), y(F.clone), F.options?.excludeMode === "remove") try {
46
+ b(F.element, F.clone, F.styleCache);
47
47
  } catch (e) {
48
48
  console.warn("[snapdom] shrink pass failed:", e);
49
49
  }
50
50
  try {
51
- await c(P.clone, P.element);
51
+ await c(F.clone, F.element);
52
52
  } catch {}
53
53
  await new Promise((e) => {
54
54
  n(async () => {
55
- await p(P.clone, P.options), e();
56
- }, { fast: D });
55
+ await p(F.clone, F.options), e();
56
+ }, { fast: O });
57
57
  }), await new Promise((e) => {
58
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) => {
59
+ await s(F.element, F.clone, F.styleCache, F.options), e();
60
+ }, { fast: O });
61
+ }), D.embedFonts && await new Promise((e) => {
62
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({
63
+ let t = u(F.element), n = l(F.element);
64
+ r() && await f(new Set(Array.from(t).map((e) => String(e).split("__")[0]).filter(Boolean)), 1), z = await d({
65
65
  required: t,
66
66
  usedCodepoints: n,
67
67
  preCached: !1,
68
- exclude: P.options.excludeFonts,
69
- useProxy: P.options.useProxy,
70
- fontStylesheetDomains: P.options.fontStylesheetDomains
68
+ exclude: F.options.excludeFonts,
69
+ localFonts: F.options.localFonts,
70
+ useProxy: F.options.useProxy,
71
+ fontStylesheetDomains: F.options.fontStylesheetDomains
71
72
  }), e();
72
- }, { fast: D });
73
+ }, { fast: O });
73
74
  });
74
- let G = i(P.clone).sort(), K = G.join(",");
75
- t.baseStyle.has(K) ? z = t.baseStyle.get(K) : await new Promise((e) => {
75
+ let K = i(F.clone).sort(), q = K.join(",");
76
+ t.baseStyle.has(q) ? B = t.baseStyle.get(q) : await new Promise((e) => {
76
77
  n(() => {
77
- z = a(G), t.baseStyle.set(K, z), e();
78
- }, { fast: D });
78
+ B = a(K), t.baseStyle.set(q, B), e();
79
+ }, { fast: O });
79
80
  });
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) => {
81
+ let J = g(F.element?.ownerDocument || document);
82
+ F = {
83
+ fontsCSS: z,
84
+ baseCSS: B,
85
+ scrollbarCSS: J,
86
+ ...F
87
+ }, await k("beforeRender", F), await new Promise((e) => {
87
88
  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)));
89
+ let n = o(F.element), i = F.element.getBoundingClientRect(), a = Math.max(1, _(F.element.offsetWidth || parseFloat(n.width) || i.width || 1)), s = Math.max(1, _(F.element.offsetHeight || parseFloat(n.height) || i.height || 1)), c = F.element.ownerDocument || document;
90
+ if (F.element === c.body || F.element === c.documentElement) {
91
+ let e = Math.max(F.element.scrollHeight || 0, c.documentElement?.scrollHeight || 0, c.body?.scrollHeight || 0), n = Math.max(F.element.scrollWidth || 0, c.documentElement?.scrollWidth || 0, c.body?.scrollWidth || 0);
92
+ e > 0 && (s = Math.max(s, _(e))), n > 0 && (a = Math.max(a, _(n)));
92
93
  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)));
94
+ let e = (F.scrollbarCSS || "").length + (F.baseCSS || "").length + (F.fontsCSS || "").length + (F.classCSS || "").length, n = t.measureHints.get(F.element);
95
+ if (n && n.cssLen === e && n.w0 === a) n.csh > 0 && (s = Math.max(s, _(n.csh))), n.csw > 0 && (a = Math.max(a, _(n.csw)));
95
96
  else {
96
97
  let n = c.createElement("div");
97
98
  n.style.cssText = "position:absolute!important;left:-9999px!important;top:0!important;width:" + a + "px!important;overflow:visible!important;visibility:hidden!important;";
98
99
  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
+ r.textContent = (F.scrollbarCSS || "") + F.baseCSS + F.fontsCSS + "svg{overflow:visible;} foreignObject{overflow:visible;}" + F.classCSS, n.appendChild(r), n.appendChild(F.clone.cloneNode(!0)), c.body.appendChild(n);
100
101
  let i = n.scrollHeight, o = n.scrollWidth;
101
- c.body.removeChild(n), t.measureHints.set(P.element, {
102
+ c.body.removeChild(n), t.measureHints.set(F.element, {
102
103
  cssLen: e,
103
104
  w0: a,
104
105
  csh: i,
105
106
  csw: o
106
- }), i > 0 && (s = Math.max(s, v(i))), o > 0 && (a = Math.max(a, v(o)));
107
+ }), i > 0 && (s = Math.max(s, _(i))), o > 0 && (a = Math.max(a, _(o)));
107
108
  }
108
109
  } catch {}
109
110
  }
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))));
111
+ if (F.options?.excludeMode === "remove") {
112
+ let e = ee(F.element, F.options);
113
+ Number.isFinite(e) && e > 0 && (s = Math.max(1, Math.min(s, _(e + 1))));
113
114
  }
114
115
  let l = (e, t = NaN) => {
115
116
  let n = typeof e == "string" ? parseFloat(e) : e;
116
117
  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)) {
118
+ }, u = l(F.options.width), d = l(F.options.height), f = a, p = s, m = Number.isFinite(u), h = Number.isFinite(d), g = s > 0 ? a / s : 1;
119
+ m && h ? (f = Math.max(1, _(u)), p = Math.max(1, _(d))) : m ? (f = Math.max(1, _(u)), p = Math.max(1, _(f / (g || 1)))) : h ? (p = Math.max(1, _(d)), f = Math.max(1, _(p * (g || 1)))) : (f = a, p = s);
120
+ let v = 0, y = 0, b = a, x = s;
121
+ if (!M && U && Number.isFinite(U.a)) {
121
122
  let e = {
122
- a: H.a,
123
- b: H.b || 0,
124
- c: H.c || 0,
125
- d: H.d || 1,
123
+ a: U.a,
124
+ b: U.b || 0,
125
+ c: U.c || 0,
126
+ d: U.d || 1,
126
127
  e: 0,
127
128
  f: 0
128
129
  }, 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({
130
+ v = _(t.minX), y = _(t.minY), b = _(t.maxX), x = _(t.maxY);
131
+ } else if (M && N(F.element)) {
132
+ let e = n.transform && n.transform !== "none" ? n.transform : "", t = ie(F.element), r = ae({
132
133
  baseTransform: e,
133
134
  rotate: t.rotate || "0deg",
134
135
  scale: t.scale,
135
136
  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);
137
+ }), { ox: i, oy: o } = E(n, a, s), c = r.is2D ? r : new DOMMatrix(r.toString()), l = S(a, s, c, i, o);
138
+ v = _(l.minX), y = _(l.minY), b = _(l.maxX), x = _(l.maxY);
138
139
  }
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)
140
+ let C = te(n), w = ne(n), O = T(n), k = re(n), A = P ? {
141
+ top: _(C.top + w.top + O.top + k.bleed.top),
142
+ right: _(C.right + w.right + O.right + k.bleed.right),
143
+ bottom: _(C.bottom + w.bottom + O.bottom + k.bleed.bottom),
144
+ left: _(C.left + w.left + O.left + k.bleed.left)
144
145
  } : {
145
146
  top: 0,
146
147
  right: 0,
147
148
  bottom: 0,
148
149
  left: 0
149
150
  };
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";
151
+ v = _(v - A.left), y = _(y - A.top), b = _(b + A.right), x = _(x + A.bottom);
152
+ let j = Math.max(1, _(b - v)), I = Math.max(1, _(x - y)), L = m || h ? _(f / a) : 1, R = h || m ? _(p / s) : 1, z = Math.max(1, _(j * L)), B = Math.max(1, _(I * R)), W = "http://www.w3.org/2000/svg", G = _((r() && N(F.element) ? 1 : 0) + +!M), K = document.createElementNS(W, "foreignObject"), q = _(v), J = _(y);
153
+ K.setAttribute("x", String(_(-(q - G)))), K.setAttribute("y", String(_(-(J - G)))), K.setAttribute("width", String(_(a + G * 2))), K.setAttribute("height", String(_(s + G * 2))), K.style.overflow = "visible";
153
154
  let Y = document.createElement("style");
154
- Y.textContent = (P.scrollbarCSS || "") + P.baseCSS + P.fontsCSS + "svg{overflow:visible;} foreignObject{overflow:visible;} foreignObject>div{-webkit-text-size-adjust:100%!important;text-size-adjust:100%!important;}" + P.classCSS, K.appendChild(Y);
155
+ Y.textContent = (F.scrollbarCSS || "") + F.baseCSS + F.fontsCSS + "svg{overflow:visible;} foreignObject{overflow:visible;} foreignObject>div{-webkit-text-size-adjust:100%!important;text-size-adjust:100%!important;}" + F.classCSS, K.appendChild(Y);
155
156
  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 = {
157
+ X.setAttribute("xmlns", "http://www.w3.org/1999/xhtml"), X.style.cssText = `all:initial;box-sizing:border-box;display:block;overflow:visible;width:${_(a)}px;height:${_(s)}px`, X.appendChild(F.clone), K.appendChild(X);
158
+ let oe = new XMLSerializer().serializeToString(K), Z = _(j + G * 2), Q = _(I + G * 2), $ = m || h;
159
+ D.meta = {
159
160
  w0: a,
160
161
  h0: s,
161
162
  vbW: Z,
162
163
  vbH: Q,
163
164
  targetW: f,
164
165
  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
166
+ }, H = `<svg xmlns="${W}" width="${r() && $ ? Z : _(z + G * 2)}" height="${r() && $ ? Q : _(B + G * 2)}" viewBox="0 0 ${Z} ${Q}" font-size="${parseFloat(o(c.documentElement)?.fontSize) || 16}px">` + oe + "</svg>", V = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(H)}`, F = {
167
+ svgString: H,
168
+ dataURL: V,
169
+ ...F
169
170
  }, 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;
171
+ }, { fast: O });
172
+ }), await k("afterRender", F);
173
+ let Y = document.getElementById("snapdom-sandbox");
174
+ return Y && Y.style.position === "absolute" && Y.remove(), F.dataURL;
174
175
  }
175
- function M(e) {
176
+ function N(e) {
176
177
  return C(e);
177
178
  }
178
179
  //#endregion
179
- export { j as captureDOM };
180
+ export { M as captureDOM };
180
181
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-04 15:24:21 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
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";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-04 15:24:21 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
2
2
  import { normalizeCachePolicy as e } from "./cache.js";
3
3
  //#region utils/snapdom/src/core/context.js
4
4
  function t(t = {}) {
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-04 15:24:21 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
2
2
  //#region utils/snapdom/src/core/plugins.js
3
3
  var e = [];
4
4
  function t(e) {
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-04 15:24:21 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
2
2
  import { cache as e } from "./cache.js";
3
3
  import { generateCSSClasses as t, getStyle as n } from "../utils/css.js";
4
4
  import { debugWarn as r } from "../utils/debug.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-04 15:24:21 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
2
2
  import { isIOS as e } from "../utils/browser.js";
3
3
  import { toCanvas as t } from "./toCanvas.js";
4
4
  import { toBlob as n } from "./toBlob.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-04 15:24:21 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
2
2
  import { toCanvas as e } from "./toCanvas.js";
3
3
  //#region utils/snapdom/src/exporters/toBlob.js
4
4
  async function t(t, n) {
@@ -1,17 +1,33 @@
1
- /* 潘启宝 2026-06-04 15:24:21 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
2
2
  import { isSafari as e } from "../utils/browser.js";
3
3
  //#region utils/snapdom/src/exporters/toCanvas.js
4
- function t(e) {
4
+ var t = 16384, n = 16384 * 16384;
5
+ function r(e) {
6
+ if (!i(e)) return e;
7
+ try {
8
+ let r = a(e), i = r.match(/<svg\b[^>]*>/i);
9
+ if (!i) return e;
10
+ let s = i[0], c = parseFloat((s.match(/\bwidth="([\d.]+)/i) || [])[1]), l = parseFloat((s.match(/\bheight="([\d.]+)/i) || [])[1]);
11
+ if (!Number.isFinite(c) || !Number.isFinite(l) || c <= 0 || l <= 0) return e;
12
+ let u = Math.min(1, t / c, t / l, Math.sqrt(n / (c * l)));
13
+ if (u >= 1) return e;
14
+ let d = Math.max(1, Math.floor(c * u)), f = Math.max(1, Math.floor(l * u));
15
+ return console.warn(`[snapDOM] Capture ${Math.round(c)}×${Math.round(l)}px exceeds the browser image-decode limit (${t}px/side); downscaling to ${d}×${f}px. Lower \`scale\` or set \`width\`/\`height\` to control output size.`), o(r.replace(s, s.replace(/(\bwidth=")[\d.]+/i, `$1${d}`).replace(/(\bheight=")[\d.]+/i, `$1${f}`)));
16
+ } catch {
17
+ return e;
18
+ }
19
+ }
20
+ function i(e) {
5
21
  return typeof e == "string" && /^data:image\/svg\+xml/i.test(e);
6
22
  }
7
- function n(e) {
23
+ function a(e) {
8
24
  let t = e.indexOf(",");
9
25
  return t >= 0 ? decodeURIComponent(e.slice(t + 1)) : "";
10
26
  }
11
- function r(e) {
27
+ function o(e) {
12
28
  return `data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`;
13
29
  }
14
- function i(e) {
30
+ function s(e) {
15
31
  let t = [], n = "", r = 0;
16
32
  for (let i = 0; i < e.length; i++) {
17
33
  let a = e[i];
@@ -19,7 +35,7 @@ function i(e) {
19
35
  }
20
36
  return n.trim() && t.push(n), t.map((e) => e.trim()).filter(Boolean);
21
37
  }
22
- function a(e) {
38
+ function c(e) {
23
39
  let t = [], n = "", r = 0;
24
40
  for (let i = 0; i < e.length; i++) {
25
41
  let a = e[i];
@@ -34,64 +50,66 @@ function a(e) {
34
50
  }
35
51
  return i.join(" ");
36
52
  }
37
- function o(e) {
38
- let t = i(e), n = null, r = null, o = null, s = [];
53
+ function l(e) {
54
+ let t = s(e), n = null, r = null, i = null, a = [];
39
55
  for (let e of t) {
40
56
  let t = e.indexOf(":");
41
57
  if (t < 0) continue;
42
- let i = e.slice(0, t).trim().toLowerCase(), a = e.slice(t + 1).trim();
43
- i === "box-shadow" ? o = a : i === "filter" ? n = a : i === "-webkit-filter" ? r = a : s.push([i, a]);
58
+ let o = e.slice(0, t).trim().toLowerCase(), s = e.slice(t + 1).trim();
59
+ o === "box-shadow" ? i = s : o === "filter" ? n = s : o === "-webkit-filter" ? r = s : a.push([o, s]);
44
60
  }
45
- if (o) {
46
- let e = a(o);
61
+ if (i) {
62
+ let e = c(i);
47
63
  e && (n = n ? `${n} ${e}` : e, r = r ? `${r} ${e}` : e);
48
64
  }
49
- let c = [...s];
50
- return n && c.push(["filter", n]), r && c.push(["-webkit-filter", r]), c.map(([e, t]) => `${e}:${t}`).join(";");
65
+ let o = [...a];
66
+ return n && o.push(["filter", n]), r && o.push(["-webkit-filter", r]), o.map(([e, t]) => `${e}:${t}`).join(";");
51
67
  }
52
- function s(e) {
53
- return e.replace(/([^{}]+)\{([^}]*)\}/g, (e, t, n) => `${t}{${o(n)}}`);
68
+ function u(e) {
69
+ return e.replace(/([^{}]+)\{([^}]*)\}/g, (e, t, n) => `${t}{${l(n)}}`);
54
70
  }
55
- function c(e) {
56
- return e = e.replace(/<style[^>]*>([\s\S]*?)<\/style>/gi, (e, t) => e.replace(t, s(t))), e = e.replace(/style=(['"])([\s\S]*?)\1/gi, (e, t, n) => `style=${t}${o(n)}${t}`), e;
71
+ function d(e) {
72
+ return e = e.replace(/<style[^>]*>([\s\S]*?)<\/style>/gi, (e, t) => e.replace(t, u(t))), e = e.replace(/style=(['"])([\s\S]*?)\1/gi, (e, t, n) => `style=${t}${l(n)}${t}`), e;
57
73
  }
58
- function l(i) {
59
- if (!e() || !t(i)) return i;
74
+ function f(t) {
75
+ if (!e() || !i(t)) return t;
60
76
  try {
61
- return r(c(n(i)));
77
+ return o(d(a(t)));
62
78
  } catch {
63
- return i;
79
+ return t;
64
80
  }
65
81
  }
66
- async function u(t, n) {
67
- let { width: r, height: i, scale: a = 1, dpr: o = 1, meta: s = {}, backgroundColor: c } = n;
68
- t = l(t);
69
- let u = new Image();
70
- if (u.loading = "eager", u.decoding = "sync", u.crossOrigin = "anonymous", u.src = t, await u.decode(), e()) {
71
- u.style.cssText = "position:fixed;left:-99999px;top:-99999px;pointer-events:none", document.body.appendChild(u);
82
+ async function p(i, a) {
83
+ let { width: o, height: s, scale: c = 1, dpr: l = 1, meta: u = {}, backgroundColor: d } = a;
84
+ i = f(i), i = r(i);
85
+ let p = new Image();
86
+ if (p.loading = "eager", p.decoding = "sync", p.crossOrigin = "anonymous", p.src = i, await p.decode(), e()) {
87
+ p.style.cssText = "position:fixed;left:-99999px;top:-99999px;pointer-events:none", document.body.appendChild(p);
72
88
  try {
73
89
  await new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(e)));
74
90
  } finally {
75
91
  try {
76
- u.remove();
92
+ p.remove();
77
93
  } catch {}
78
94
  }
79
95
  }
80
- let d = u.naturalWidth, f = u.naturalHeight, p = Number.isFinite(s.w0) ? s.w0 : d, m = Number.isFinite(s.h0) ? s.h0 : f, h, g, _ = Number.isFinite(r), v = Number.isFinite(i);
81
- if (_ && v) h = Math.max(1, r), g = Math.max(1, i);
82
- else if (_) {
83
- let e = r / Math.max(1, p);
84
- h = r, g = m * e;
85
- } else if (v) {
86
- let e = i / Math.max(1, m);
87
- g = i, h = p * e;
88
- } else h = d, g = f;
89
- h *= a, g *= a;
90
- let y = document.createElement("canvas");
91
- y.width = h * o, y.height = g * o, y.style.width = `${h}px`, y.style.height = `${g}px`;
92
- let b = y.getContext("2d");
93
- return o !== 1 && b.scale(o, o), c && (b.save(), b.fillStyle = c, b.fillRect(0, 0, h, g), b.restore()), b.drawImage(u, 0, 0, h, g), y;
96
+ let m = p.naturalWidth, h = p.naturalHeight, g = Number.isFinite(u.w0) ? u.w0 : m, _ = Number.isFinite(u.h0) ? u.h0 : h, v, y, b = Number.isFinite(o), x = Number.isFinite(s);
97
+ if (b && x) v = Math.max(1, o), y = Math.max(1, s);
98
+ else if (b) {
99
+ let e = o / Math.max(1, g);
100
+ v = o, y = _ * e;
101
+ } else if (x) {
102
+ let e = s / Math.max(1, _);
103
+ y = s, v = g * e;
104
+ } else v = m, y = h;
105
+ v *= c, y *= c;
106
+ let S = v * l, C = y * l, w = Math.max(S / t, C / t, Math.sqrt(S * C / n));
107
+ w > 1 && (console.warn(`[snapDOM] Output ${Math.round(S)}×${Math.round(C)}px exceeds the browser canvas limit (${t}px/side); downscaling. Lower \`scale\`/\`dpr\` or set \`width\`/\`height\`.`), v /= w, y /= w);
108
+ let T = document.createElement("canvas");
109
+ T.width = v * l, T.height = y * l, T.style.width = `${v}px`, T.style.height = `${y}px`;
110
+ let E = T.getContext("2d");
111
+ return l !== 1 && E.scale(l, l), d && (E.save(), E.fillStyle = d, E.fillRect(0, 0, v, y), E.restore()), E.drawImage(p, 0, 0, v, y), T;
94
112
  }
95
113
  //#endregion
96
- export { u as toCanvas };
114
+ export { p as toCanvas };
97
115
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-04 15:24:21 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
2
2
  import { isSafari as e } from "../utils/browser.js";
3
3
  import { debugWarn as t } from "../utils/debug.js";
4
4
  import "../utils/index.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-04 15:24:21 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
2
2
  import { preCache as e } from "./api/preCache.js";
3
3
  import t from "./api/snapdom.js";
4
4
  //#region utils/snapdom/src/index.browser.js
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-04 15:24:21 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
2
2
  import "./api/preCache.js";
3
3
  import "./api/snapdom.js";
4
4
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-04 15:24:21 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
2
2
  //#region utils/snapdom/src/modules/CSSVar.js
3
3
  var e = [
4
4
  "fill",
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-04 15:24:21 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
2
2
  import { getStyle as e, splitBackgroundImage as t } from "../utils/css.js";
3
3
  import { inlineSingleBackgroundEntry as n } from "../utils/image.js";
4
4
  import "../utils/index.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-04 15:24:21 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
2
2
  //#region utils/snapdom/src/modules/changeCSS.js
3
3
  function e(e, i) {
4
4
  if (!e || !i) return;
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-04 15:24:21 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
2
2
  import { cache as e } from "../core/cache.js";
3
3
  //#region utils/snapdom/src/modules/counter.js
4
4
  function t(e) {
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-04 15:24:21 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
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";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-04 15:24:21 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
2
2
  import { cache as e } from "../core/cache.js";
3
3
  //#region utils/snapdom/src/modules/iconFonts.js
4
4
  var t = [
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-04 15:24:21 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
2
2
  import { snapFetch as e } from "./snapFetch.js";
3
3
  //#region utils/snapdom/src/modules/images.js
4
4
  var t = "http://www.w3.org/1999/xlink";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-04 15:24:21 星期四 山东省济南市 */
1
+ /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
2
2
  //#region utils/snapdom/src/modules/lineClamp.js
3
3
  function e(e) {
4
4
  if (!e) return () => {};