@daysnap/utils 0.0.93 → 0.0.94

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 (887) hide show
  1. package/docs/interfaces/StorageManager.md +4 -4
  2. package/docs/interfaces/Trap.md +5 -5
  3. package/docs/modules.md +146 -122
  4. package/es/{ato.d.ts → ato.d.mts} +4 -2
  5. package/es/ato.mjs +6 -0
  6. package/es/base64ToBlob.d.mts +8 -0
  7. package/es/base64ToBlob.mjs +6 -0
  8. package/es/blobToBase64.d.mts +6 -0
  9. package/es/blobToBase64.mjs +6 -0
  10. package/es/cached.d.mts +7 -0
  11. package/es/cached.mjs +6 -0
  12. package/es/camelCase.d.mts +7 -0
  13. package/es/camelCase.mjs +6 -0
  14. package/es/canvasToBlob.d.mts +6 -0
  15. package/es/canvasToBlob.mjs +6 -0
  16. package/es/capitalize.d.mts +7 -0
  17. package/es/capitalize.mjs +6 -0
  18. package/es/chunk-2BCJGKPK.mjs +52 -0
  19. package/es/chunk-2YCUJDBN.mjs +55 -0
  20. package/es/chunk-2ZSYVROU.mjs +12 -0
  21. package/es/chunk-36BFA7SH.mjs +10 -0
  22. package/es/chunk-47AYSPDB.mjs +37 -0
  23. package/es/chunk-4FSOO7WE.mjs +8 -0
  24. package/es/chunk-4HDKZDZI.mjs +16 -0
  25. package/es/chunk-55VPNRDX.mjs +45 -0
  26. package/es/chunk-5FZDYL3X.mjs +14 -0
  27. package/es/chunk-67UQVOZK.mjs +22 -0
  28. package/es/chunk-6UG5VG67.mjs +8 -0
  29. package/es/chunk-7EYJRHPH.mjs +12 -0
  30. package/es/chunk-7K7LDQU5.mjs +8 -0
  31. package/es/chunk-AA7WCD7R.mjs +20 -0
  32. package/es/chunk-ACFNEWIA.mjs +17 -0
  33. package/es/chunk-ALUR2G5E.mjs +7 -0
  34. package/es/chunk-AQXI5M6E.mjs +8 -0
  35. package/es/chunk-AVYLSD4Y.mjs +12 -0
  36. package/es/chunk-B2QDZGN6.mjs +12 -0
  37. package/es/chunk-BI6NG2XY.mjs +8 -0
  38. package/es/chunk-BND7NHHZ.mjs +23 -0
  39. package/es/chunk-BZIKQDNP.mjs +25 -0
  40. package/es/chunk-C3VMHKA2.mjs +32 -0
  41. package/es/chunk-CH54B2NW.mjs +19 -0
  42. package/es/chunk-CIIM7WK6.mjs +12 -0
  43. package/es/chunk-DF4FZM53.mjs +8 -0
  44. package/es/chunk-DFNNXFNH.mjs +22 -0
  45. package/es/chunk-DKP76RFK.mjs +8 -0
  46. package/es/chunk-DPJQZSCQ.mjs +22 -0
  47. package/es/chunk-E3D4KBHK.mjs +11 -0
  48. package/es/chunk-EH5U26GD.mjs +8 -0
  49. package/es/chunk-EHZGMWKM.mjs +8 -0
  50. package/es/chunk-EJPQYVUM.mjs +8 -0
  51. package/es/chunk-FAZP7TZ2.mjs +8 -0
  52. package/es/chunk-FUPB76YN.mjs +8 -0
  53. package/es/chunk-GBEWSYLC.mjs +11 -0
  54. package/es/chunk-GGV2QLUA.mjs +17 -0
  55. package/es/chunk-GLR6PUBW.mjs +14 -0
  56. package/es/chunk-GSEIW3MZ.mjs +8 -0
  57. package/es/chunk-H4Q2L2Z7.mjs +8 -0
  58. package/es/chunk-H625225L.mjs +11 -0
  59. package/es/chunk-HMTKJUIX.mjs +22 -0
  60. package/es/chunk-HX6BTERO.mjs +8 -0
  61. package/es/chunk-IBD2BGUZ.mjs +17 -0
  62. package/es/chunk-IGSBQ6WF.mjs +15 -0
  63. package/es/chunk-IIW4U5AP.mjs +16 -0
  64. package/es/chunk-IQFJ5CYB.mjs +29 -0
  65. package/es/chunk-J3CV6URY.mjs +8 -0
  66. package/es/chunk-JHC77OJC.mjs +12 -0
  67. package/es/chunk-JNYC6ERK.mjs +21 -0
  68. package/es/chunk-KCWWH5WQ.mjs +30 -0
  69. package/es/chunk-KH4FBZOK.mjs +8 -0
  70. package/es/chunk-KH7NPF6I.mjs +15 -0
  71. package/es/chunk-KLSJ3VZG.mjs +10 -0
  72. package/es/chunk-KRWQWZSN.mjs +8 -0
  73. package/es/chunk-KZ3JDS2O.mjs +14 -0
  74. package/es/chunk-L7X3A3OQ.mjs +8 -0
  75. package/es/chunk-LXLIFUBR.mjs +43 -0
  76. package/es/chunk-MPSJ4FMD.mjs +16 -0
  77. package/es/chunk-MRUDDQHD.mjs +23 -0
  78. package/es/chunk-N4OGI2R3.mjs +19 -0
  79. package/es/chunk-N6IG3JYY.mjs +12 -0
  80. package/es/chunk-NPK3BLV3.mjs +30 -0
  81. package/es/chunk-NS4LR37B.mjs +8 -0
  82. package/es/chunk-NSD6JAKL.mjs +19 -0
  83. package/es/chunk-O6RUKPNP.mjs +9 -0
  84. package/es/chunk-ODB7KGAC.mjs +23 -0
  85. package/es/chunk-OG7NHU5G.mjs +42 -0
  86. package/es/chunk-OHCFFQNC.mjs +17 -0
  87. package/es/chunk-OL5ADAY4.mjs +57 -0
  88. package/es/chunk-OMH5TZIZ.mjs +13 -0
  89. package/es/chunk-OQG6GEL2.mjs +13 -0
  90. package/es/chunk-PGVJ5IPJ.mjs +8 -0
  91. package/es/chunk-PMNXLTUL.mjs +8 -0
  92. package/es/chunk-PUHUSCOJ.mjs +8 -0
  93. package/es/chunk-QI5FH522.mjs +11 -0
  94. package/es/chunk-QIYJY2OJ.mjs +8 -0
  95. package/es/chunk-REX225J2.mjs +10 -0
  96. package/es/chunk-RNR7ZEZT.mjs +12 -0
  97. package/es/chunk-SJCOWTEU.mjs +13 -0
  98. package/es/chunk-SLCAL4QM.mjs +8 -0
  99. package/es/chunk-SOAUJN2U.mjs +8 -0
  100. package/es/chunk-SWZD5EEJ.mjs +55 -0
  101. package/es/chunk-T2D2S2FY.mjs +8 -0
  102. package/es/chunk-T3MNPQVN.mjs +12 -0
  103. package/es/chunk-T53J6Z3W.mjs +8 -0
  104. package/es/chunk-TP4LCGUV.mjs +42 -0
  105. package/es/chunk-TZUHPRZ4.mjs +8 -0
  106. package/es/chunk-TZYPEK5T.mjs +34 -0
  107. package/es/chunk-UCRMI3XM.mjs +11 -0
  108. package/es/chunk-UCXP6JO2.mjs +14 -0
  109. package/es/chunk-UKTPML4E.mjs +14 -0
  110. package/es/chunk-USYDW5X4.mjs +8 -0
  111. package/es/chunk-UZ44S2T3.mjs +8 -0
  112. package/es/chunk-VLHC3FS7.mjs +20 -0
  113. package/es/chunk-VUU242QS.mjs +15 -0
  114. package/es/chunk-W56MFMAJ.mjs +16 -0
  115. package/es/chunk-W6L2LW6U.mjs +13 -0
  116. package/es/chunk-W72QWFLR.mjs +27 -0
  117. package/es/chunk-WLGNQDOA.mjs +8 -0
  118. package/es/chunk-WQFMRPXU.mjs +19 -0
  119. package/es/chunk-WTILX3PP.mjs +8 -0
  120. package/es/chunk-XJT6W4OH.mjs +15 -0
  121. package/es/chunk-XY5KATPF.mjs +12 -0
  122. package/es/chunk-Y2L4VRHX.mjs +10 -0
  123. package/es/chunk-Y6WZSPBK.mjs +13 -0
  124. package/es/chunk-YBK27UNT.mjs +24 -0
  125. package/es/chunk-YJKAHUCK.mjs +8 -0
  126. package/es/chunk-YMKK5EMJ.mjs +8 -0
  127. package/es/chunk-YO3WEMCZ.mjs +8 -0
  128. package/es/chunk-YWA5IBEK.mjs +8 -0
  129. package/es/chunk-YY5FUU2J.mjs +8 -0
  130. package/es/chunk-ZDX7R4RH.mjs +19 -0
  131. package/es/chunk-ZHLRSVIE.mjs +8 -0
  132. package/es/{clamp.d.ts → clamp.d.mts} +3 -1
  133. package/es/clamp.mjs +6 -0
  134. package/es/clone.d.mts +7 -0
  135. package/es/clone.mjs +8 -0
  136. package/es/{cloneSimple.d.ts → cloneSimple.d.mts} +3 -1
  137. package/es/cloneSimple.mjs +6 -0
  138. package/es/{compareVersion.d.ts → compareVersion.d.mts} +3 -1
  139. package/es/compareVersion.mjs +6 -0
  140. package/es/compressImage.d.mts +6 -0
  141. package/es/compressImage.mjs +7 -0
  142. package/es/createHexColorByHash.d.mts +6 -0
  143. package/es/createHexColorByHash.mjs +6 -0
  144. package/es/{createLinearFunction.d.ts → createLinearFunction.d.mts} +3 -1
  145. package/es/createLinearFunction.mjs +6 -0
  146. package/es/{createWithLoading.d.ts → createWithLoading.d.mts} +4 -2
  147. package/es/createWithLoading.mjs +6 -0
  148. package/es/debounce.d.mts +7 -0
  149. package/es/debounce.mjs +6 -0
  150. package/es/decode.d.mts +4 -0
  151. package/es/decode.mjs +8 -0
  152. package/es/downloadFile.d.mts +8 -0
  153. package/es/downloadFile.mjs +6 -0
  154. package/es/each.d.mts +7 -0
  155. package/es/each.mjs +6 -0
  156. package/es/{exitFullscreen.d.ts → exitFullscreen.d.mts} +3 -1
  157. package/es/exitFullscreen.mjs +6 -0
  158. package/es/filterBankCardNo.d.mts +6 -0
  159. package/es/filterBankCardNo.mjs +6 -0
  160. package/es/filterCRLF.d.mts +6 -0
  161. package/es/filterCRLF.mjs +6 -0
  162. package/es/filterEmoji.d.mts +6 -0
  163. package/es/filterEmoji.mjs +6 -0
  164. package/es/{filterEmptyValue.d.ts → filterEmptyValue.d.mts} +3 -1
  165. package/es/filterEmptyValue.mjs +14 -0
  166. package/es/filterIdCard.d.mts +7 -0
  167. package/es/filterIdCard.mjs +6 -0
  168. package/es/filterName.d.mts +6 -0
  169. package/es/filterName.mjs +6 -0
  170. package/es/{filterPhone.d.ts → filterPhone.d.mts} +3 -1
  171. package/es/filterPhone.mjs +6 -0
  172. package/es/filterString.d.mts +8 -0
  173. package/es/filterString.mjs +6 -0
  174. package/es/formartDateToZN.d.mts +3 -0
  175. package/es/formartDateToZN.mjs +119 -0
  176. package/es/formatAmount.d.mts +6 -0
  177. package/es/formatAmount.mjs +6 -0
  178. package/es/formatDate.d.mts +7 -0
  179. package/es/formatDate.mjs +8 -0
  180. package/es/{formatDateStr.d.ts → formatDateStr.d.mts} +3 -1
  181. package/es/formatDateStr.mjs +6 -0
  182. package/es/formatFileSize.d.mts +6 -0
  183. package/es/formatFileSize.mjs +6 -0
  184. package/es/{formatMessage.d.ts → formatMessage.d.mts} +3 -1
  185. package/es/formatMessage.mjs +10 -0
  186. package/es/{formatPathParams.d.ts → formatPathParams.d.mts} +3 -1
  187. package/es/formatPathParams.mjs +6 -0
  188. package/es/getBlobByUrl.d.mts +6 -0
  189. package/es/getBlobByUrl.mjs +6 -0
  190. package/es/getDayMillisecond.d.mts +6 -0
  191. package/es/getDayMillisecond.mjs +6 -0
  192. package/es/getImageInfo.d.mts +6 -0
  193. package/es/getImageInfo.mjs +6 -0
  194. package/es/{getRandom.d.ts → getRandom.d.mts} +3 -1
  195. package/es/getRandom.mjs +7 -0
  196. package/es/getRandomColor.d.mts +6 -0
  197. package/es/getRandomColor.mjs +6 -0
  198. package/es/{getRandomNumber.d.ts → getRandomNumber.d.mts} +3 -1
  199. package/es/getRandomNumber.mjs +8 -0
  200. package/es/getScrollTop.d.mts +6 -0
  201. package/es/getScrollTop.mjs +6 -0
  202. package/es/getVideoInfo.d.mts +6 -0
  203. package/es/getVideoInfo.mjs +6 -0
  204. package/es/inBrowser.d.mts +6 -0
  205. package/es/inBrowser.mjs +6 -0
  206. package/es/index.d.mts +115 -0
  207. package/es/index.mjs +470 -0
  208. package/es/insertLink.d.mts +7 -0
  209. package/es/insertLink.mjs +6 -0
  210. package/es/insertScript.d.mts +7 -0
  211. package/es/insertScript.mjs +6 -0
  212. package/es/insertStyle.d.mts +6 -0
  213. package/es/insertStyle.mjs +6 -0
  214. package/es/{isAmount.d.ts → isAmount.d.mts} +3 -1
  215. package/es/isAmount.mjs +6 -0
  216. package/es/isAndroid.d.mts +6 -0
  217. package/es/isAndroid.mjs +6 -0
  218. package/es/{isArray.d.ts → isArray.d.mts} +3 -1
  219. package/es/isArray.mjs +6 -0
  220. package/es/isBoolean.d.mts +7 -0
  221. package/es/isBoolean.mjs +6 -0
  222. package/es/isChinese.d.mts +6 -0
  223. package/es/isChinese.mjs +6 -0
  224. package/es/isDate.d.mts +6 -0
  225. package/es/isDate.mjs +6 -0
  226. package/es/isEmail.d.mts +6 -0
  227. package/es/isEmail.mjs +6 -0
  228. package/es/isEmpty.d.mts +6 -0
  229. package/es/isEmpty.mjs +8 -0
  230. package/es/isEmptyArray.d.mts +6 -0
  231. package/es/isEmptyArray.mjs +7 -0
  232. package/es/isEmptyObject.d.mts +7 -0
  233. package/es/isEmptyObject.mjs +6 -0
  234. package/es/isError.d.mts +6 -0
  235. package/es/isError.mjs +6 -0
  236. package/es/isFunction.d.mts +6 -0
  237. package/es/isFunction.mjs +6 -0
  238. package/es/{isIE.d.ts → isIE.d.mts} +3 -1
  239. package/es/isIE.mjs +6 -0
  240. package/es/isIOS.d.mts +6 -0
  241. package/es/isIOS.mjs +6 -0
  242. package/es/isIdCard.d.mts +6 -0
  243. package/es/isIdCard.mjs +6 -0
  244. package/es/isJSONString.d.mts +7 -0
  245. package/es/isJSONString.mjs +7 -0
  246. package/es/{isLan.d.ts → isLan.d.mts} +3 -1
  247. package/es/isLan.mjs +6 -0
  248. package/es/isLicenseCode.d.mts +7 -0
  249. package/es/isLicenseCode.mjs +6 -0
  250. package/es/isMobile.d.mts +6 -0
  251. package/es/isMobile.mjs +6 -0
  252. package/es/{isNativeFunction.d.ts → isNativeFunction.d.mts} +3 -1
  253. package/es/isNativeFunction.mjs +7 -0
  254. package/es/isNull.d.mts +6 -0
  255. package/es/isNull.mjs +6 -0
  256. package/es/isNumber.d.mts +7 -0
  257. package/es/isNumber.mjs +6 -0
  258. package/es/isObject.d.mts +6 -0
  259. package/es/isObject.mjs +6 -0
  260. package/es/isPhone.d.mts +6 -0
  261. package/es/isPhone.mjs +6 -0
  262. package/es/isPromise.d.mts +6 -0
  263. package/es/isPromise.mjs +6 -0
  264. package/es/isRegExp.d.mts +6 -0
  265. package/es/isRegExp.mjs +6 -0
  266. package/es/isString.d.mts +6 -0
  267. package/es/isString.mjs +6 -0
  268. package/es/isUndefined.d.mts +6 -0
  269. package/es/isUndefined.mjs +6 -0
  270. package/es/isUrl.d.mts +6 -0
  271. package/es/isUrl.mjs +6 -0
  272. package/es/{isWeChat.d.ts → isWeChat.d.mts} +4 -2
  273. package/es/isWeChat.mjs +8 -0
  274. package/es/{isWeChatMiniProgram.d.ts → isWeChatMiniProgram.d.mts} +3 -1
  275. package/es/isWeChatMiniProgram.mjs +6 -0
  276. package/es/isWindow.d.mts +7 -0
  277. package/es/isWindow.mjs +6 -0
  278. package/es/kebabCase.d.mts +7 -0
  279. package/es/kebabCase.mjs +6 -0
  280. package/es/listGenerator.d.mts +7 -0
  281. package/es/listGenerator.mjs +6 -0
  282. package/es/{mousewheel.d.ts → mousewheel.d.mts} +3 -2
  283. package/es/mousewheel.mjs +6 -0
  284. package/es/nf.d.mts +6 -0
  285. package/es/nf.mjs +6 -0
  286. package/es/normalizePath.d.mts +6 -0
  287. package/es/normalizePath.mjs +6 -0
  288. package/es/omit.d.mts +6 -0
  289. package/es/omit.mjs +6 -0
  290. package/es/{padding.d.ts → padding.d.mts} +3 -1
  291. package/es/padding.mjs +6 -0
  292. package/es/parseDate.d.mts +6 -0
  293. package/es/parseDate.mjs +6 -0
  294. package/es/parseError.d.mts +6 -0
  295. package/es/parseError.mjs +10 -0
  296. package/es/parseObject.d.mts +7 -0
  297. package/es/parseObject.mjs +6 -0
  298. package/es/parsePath.d.mts +6 -0
  299. package/es/parsePath.mjs +7 -0
  300. package/es/parseQuery.d.mts +8 -0
  301. package/es/parseQuery.mjs +8 -0
  302. package/es/parseQueryString.d.mts +8 -0
  303. package/es/parseQueryString.mjs +6 -0
  304. package/es/{pascalCase.d.ts → pascalCase.d.mts} +3 -1
  305. package/es/pascalCase.mjs +8 -0
  306. package/es/pick.d.mts +6 -0
  307. package/es/pick.mjs +6 -0
  308. package/es/replaceCrlf.d.mts +6 -0
  309. package/es/replaceCrlf.mjs +6 -0
  310. package/es/{requestFullScreen.d.ts → requestFullScreen.d.mts} +3 -1
  311. package/es/requestFullScreen.mjs +6 -0
  312. package/es/{reserve.d.ts → reserve.d.mts} +3 -1
  313. package/es/reserve.mjs +9 -0
  314. package/es/rgbToHex.d.mts +6 -0
  315. package/es/rgbToHex.mjs +6 -0
  316. package/es/{round.d.ts → round.d.mts} +3 -1
  317. package/es/round.mjs +6 -0
  318. package/es/scrollToTop.d.mts +6 -0
  319. package/es/scrollToTop.mjs +6 -0
  320. package/es/setScrollTop.d.mts +6 -0
  321. package/es/setScrollTop.mjs +6 -0
  322. package/es/{sleep.d.ts → sleep.d.mts} +3 -1
  323. package/es/sleep.mjs +6 -0
  324. package/es/splitArray.d.mts +6 -0
  325. package/es/splitArray.mjs +6 -0
  326. package/es/storage/{factory.d.ts → factory.d.mts} +4 -2
  327. package/es/storage/factory.mjs +8 -0
  328. package/es/storage/{index.d.ts → index.d.mts} +6 -3
  329. package/es/storage/index.mjs +14 -0
  330. package/es/{stringTrim.d.ts → stringTrim.d.mts} +3 -1
  331. package/es/stringTrim.mjs +6 -0
  332. package/es/stringifyQuery.d.mts +6 -0
  333. package/es/stringifyQuery.mjs +8 -0
  334. package/es/stringifyQueryString.d.mts +8 -0
  335. package/es/stringifyQueryString.mjs +6 -0
  336. package/es/throttle.d.mts +17 -0
  337. package/es/throttle.mjs +10 -0
  338. package/es/toCDB.d.mts +6 -0
  339. package/es/toCDB.mjs +6 -0
  340. package/es/toDBC.d.mts +6 -0
  341. package/es/toDBC.mjs +6 -0
  342. package/es/{trap.d.ts → trap.d.mts} +5 -3
  343. package/es/trap.mjs +9 -0
  344. package/es/{typeOf.d.ts → typeOf.d.mts} +3 -1
  345. package/es/typeOf.mjs +6 -0
  346. package/es/withPreventConsecutiveClicks.d.mts +6 -0
  347. package/es/withPreventConsecutiveClicks.mjs +6 -0
  348. package/lib/ato.d.ts +4 -2
  349. package/lib/ato.js +6 -10
  350. package/lib/base64ToBlob.d.ts +3 -1
  351. package/lib/base64ToBlob.js +6 -25
  352. package/lib/blobToBase64.d.ts +3 -1
  353. package/lib/blobToBase64.js +6 -18
  354. package/lib/cached.d.ts +3 -1
  355. package/lib/cached.js +6 -16
  356. package/lib/camelCase.d.ts +3 -1
  357. package/lib/camelCase.js +6 -11
  358. package/lib/canvasToBlob.d.ts +3 -1
  359. package/lib/canvasToBlob.js +6 -12
  360. package/lib/capitalize.d.ts +3 -1
  361. package/lib/capitalize.js +6 -11
  362. package/lib/chunk-2ZSZ4GDI.js +14 -0
  363. package/lib/chunk-3HR2GZUU.js +8 -0
  364. package/lib/chunk-3KRJNCKB.js +8 -0
  365. package/lib/chunk-3MBFDHEW.js +8 -0
  366. package/lib/chunk-3OUQEOSR.js +8 -0
  367. package/lib/chunk-3ZZPPKM3.js +17 -0
  368. package/lib/chunk-4BFL6RXS.js +45 -0
  369. package/lib/chunk-4N33UIAB.js +12 -0
  370. package/lib/chunk-4QMOXXPL.js +22 -0
  371. package/lib/chunk-53VI5KBY.js +17 -0
  372. package/lib/chunk-576ZRCUO.js +10 -0
  373. package/lib/chunk-5BVFSCCX.js +8 -0
  374. package/lib/chunk-5Z3KN6O2.js +8 -0
  375. package/lib/chunk-6EBFQIMY.js +14 -0
  376. package/lib/chunk-6GTFQZL4.js +12 -0
  377. package/lib/chunk-6UGTRW2S.js +8 -0
  378. package/lib/chunk-A4YRDVZ4.js +8 -0
  379. package/lib/chunk-ADGGLX7E.js +55 -0
  380. package/lib/chunk-ASYHV5B7.js +32 -0
  381. package/lib/chunk-AZFTV4OE.js +43 -0
  382. package/lib/chunk-BNF4U7EJ.js +12 -0
  383. package/lib/chunk-BULTIEJG.js +8 -0
  384. package/lib/chunk-CCZL3GEW.js +8 -0
  385. package/lib/chunk-CMP4T3ZH.js +8 -0
  386. package/lib/chunk-CNCI66H4.js +19 -0
  387. package/lib/chunk-CSZ7G34M.js +8 -0
  388. package/lib/chunk-D5O4LXN3.js +8 -0
  389. package/lib/chunk-D7OBO7J6.js +8 -0
  390. package/lib/chunk-DHYITZTI.js +13 -0
  391. package/lib/chunk-DOXFJNJO.js +16 -0
  392. package/lib/chunk-DWT2WM6H.js +11 -0
  393. package/lib/chunk-E2KNR3UG.js +20 -0
  394. package/lib/chunk-EFDRCKKS.js +8 -0
  395. package/lib/chunk-EJMUWNXI.js +30 -0
  396. package/lib/chunk-ELR2DZ56.js +12 -0
  397. package/lib/chunk-F4QMON2N.js +8 -0
  398. package/lib/chunk-FBJWICWM.js +14 -0
  399. package/lib/chunk-FIHEVMN6.js +23 -0
  400. package/lib/chunk-FY3PSILS.js +11 -0
  401. package/lib/chunk-GDCXWM7X.js +24 -0
  402. package/lib/chunk-GNGSV7F7.js +8 -0
  403. package/lib/chunk-GV4IJGB2.js +13 -0
  404. package/lib/chunk-GVPHHNDY.js +55 -0
  405. package/lib/chunk-GVYBTJDA.js +8 -0
  406. package/lib/chunk-HNVHVI6P.js +42 -0
  407. package/lib/chunk-HU5DI7IU.js +8 -0
  408. package/lib/chunk-IF7JMIDO.js +19 -0
  409. package/lib/chunk-IIIHPNUB.js +17 -0
  410. package/lib/chunk-IJCLLBSR.js +21 -0
  411. package/lib/chunk-IJD4RHXI.js +8 -0
  412. package/lib/chunk-IPAT3N4P.js +12 -0
  413. package/lib/chunk-IPIA4Z65.js +9 -0
  414. package/lib/chunk-J2Y5ZZA3.js +19 -0
  415. package/lib/chunk-JG33SHAK.js +17 -0
  416. package/lib/chunk-JKCLDPOC.js +10 -0
  417. package/lib/chunk-JMUWQLHE.js +8 -0
  418. package/lib/chunk-K4SQME6B.js +16 -0
  419. package/lib/chunk-KDND6GRD.js +22 -0
  420. package/lib/chunk-KEADPNJL.js +11 -0
  421. package/lib/chunk-KH7MPMQF.js +15 -0
  422. package/lib/chunk-KJX7IWF5.js +13 -0
  423. package/lib/chunk-KOOGLWJ5.js +8 -0
  424. package/lib/chunk-KYLBUCGC.js +8 -0
  425. package/lib/chunk-KZJIPHQB.js +11 -0
  426. package/lib/chunk-L52JSZDZ.js +16 -0
  427. package/lib/chunk-LJ4CEJ5C.js +8 -0
  428. package/lib/chunk-LOPD7SSH.js +52 -0
  429. package/lib/chunk-M3NXNABN.js +14 -0
  430. package/lib/chunk-M6B3UGFI.js +57 -0
  431. package/lib/chunk-MQDWCBXD.js +13 -0
  432. package/lib/chunk-MTF3ACKC.js +8 -0
  433. package/lib/chunk-NCFA5IXM.js +8 -0
  434. package/lib/chunk-OAVK23A3.js +16 -0
  435. package/lib/chunk-OC64NXZ2.js +22 -0
  436. package/lib/chunk-ONTP5SDE.js +19 -0
  437. package/lib/chunk-P7QW362C.js +12 -0
  438. package/lib/chunk-PAERS3SW.js +7 -0
  439. package/lib/chunk-PQE4SACQ.js +20 -0
  440. package/lib/chunk-QTKWJHHW.js +22 -0
  441. package/lib/chunk-QYCMY2T4.js +8 -0
  442. package/lib/chunk-S2FOFDX4.js +8 -0
  443. package/lib/chunk-S6UH3LMW.js +25 -0
  444. package/lib/chunk-S7PUCGCQ.js +15 -0
  445. package/lib/chunk-SCEONZUJ.js +23 -0
  446. package/lib/chunk-SN35EJZF.js +30 -0
  447. package/lib/chunk-SQ3L6IQW.js +8 -0
  448. package/lib/chunk-SWLGSN5X.js +8 -0
  449. package/lib/chunk-SZ7IZE42.js +12 -0
  450. package/lib/chunk-TNIIDDN4.js +10 -0
  451. package/lib/chunk-TSD6OV4A.js +8 -0
  452. package/lib/chunk-TSFGLHCP.js +11 -0
  453. package/lib/chunk-TT6AI5JN.js +37 -0
  454. package/lib/chunk-TXWIC3L7.js +12 -0
  455. package/lib/chunk-UCDNFQ3U.js +12 -0
  456. package/lib/chunk-UMUYJJ3M.js +15 -0
  457. package/lib/chunk-UXSZFM5G.js +10 -0
  458. package/lib/chunk-VMJHCN3P.js +19 -0
  459. package/lib/chunk-VTSGSUL2.js +29 -0
  460. package/lib/chunk-W52BRMSD.js +14 -0
  461. package/lib/chunk-WCZPEH7E.js +8 -0
  462. package/lib/chunk-WEWAC6GL.js +13 -0
  463. package/lib/chunk-WFPQI6HC.js +27 -0
  464. package/lib/chunk-WXXFRKUS.js +23 -0
  465. package/lib/chunk-XCSSSEK2.js +8 -0
  466. package/lib/chunk-XOQU757U.js +8 -0
  467. package/lib/chunk-XR4BSWOV.js +42 -0
  468. package/lib/chunk-Y4V5R7XA.js +8 -0
  469. package/lib/chunk-YBAHLKXR.js +34 -0
  470. package/lib/chunk-YGV2UKBN.js +15 -0
  471. package/lib/chunk-YGYLI2DC.js +12 -0
  472. package/lib/chunk-YKTD7CLE.js +8 -0
  473. package/lib/chunk-ZDRIUWKX.js +8 -0
  474. package/lib/chunk-ZGN3KUXE.js +8 -0
  475. package/lib/chunk-ZWXX326Y.js +8 -0
  476. package/lib/clamp.d.ts +3 -1
  477. package/lib/clamp.js +6 -20
  478. package/lib/clone.d.ts +3 -1
  479. package/lib/clone.js +8 -23
  480. package/lib/cloneSimple.d.ts +3 -1
  481. package/lib/cloneSimple.js +6 -13
  482. package/lib/compareVersion.d.ts +3 -1
  483. package/lib/compareVersion.js +6 -43
  484. package/lib/compressImage.d.ts +3 -1
  485. package/lib/compressImage.js +7 -20
  486. package/lib/createHexColorByHash.d.ts +3 -1
  487. package/lib/createHexColorByHash.js +6 -67
  488. package/lib/createLinearFunction.d.ts +3 -1
  489. package/lib/createLinearFunction.js +6 -24
  490. package/lib/createWithLoading.d.ts +4 -2
  491. package/lib/createWithLoading.js +6 -39
  492. package/lib/debounce.d.ts +3 -1
  493. package/lib/debounce.js +6 -18
  494. package/lib/decode.d.ts +4 -2
  495. package/lib/decode.js +8 -52
  496. package/lib/downloadFile.d.ts +3 -1
  497. package/lib/downloadFile.js +6 -15
  498. package/lib/each.d.ts +4 -2
  499. package/lib/each.js +6 -17
  500. package/lib/exitFullscreen.d.ts +3 -1
  501. package/lib/exitFullscreen.js +6 -31
  502. package/lib/filterBankCardNo.d.ts +3 -1
  503. package/lib/filterBankCardNo.js +6 -12
  504. package/lib/filterCRLF.d.ts +3 -1
  505. package/lib/filterCRLF.js +6 -10
  506. package/lib/filterEmoji.d.ts +3 -1
  507. package/lib/filterEmoji.js +6 -21
  508. package/lib/filterEmptyValue.d.ts +3 -1
  509. package/lib/filterEmptyValue.js +14 -35
  510. package/lib/filterIdCard.d.ts +3 -1
  511. package/lib/filterIdCard.js +6 -11
  512. package/lib/filterName.d.ts +3 -1
  513. package/lib/filterName.js +6 -20
  514. package/lib/filterPhone.d.ts +3 -1
  515. package/lib/filterPhone.js +6 -12
  516. package/lib/filterString.d.ts +3 -1
  517. package/lib/filterString.js +6 -20
  518. package/lib/formartDateToZN.d.ts +3 -1
  519. package/lib/formartDateToZN.js +119 -34
  520. package/lib/formatAmount.d.ts +3 -1
  521. package/lib/formatAmount.js +6 -25
  522. package/lib/formatDate.d.ts +3 -1
  523. package/lib/formatDate.js +8 -39
  524. package/lib/formatDateStr.d.ts +3 -1
  525. package/lib/formatDateStr.js +6 -11
  526. package/lib/formatFileSize.d.ts +6 -0
  527. package/lib/formatFileSize.js +6 -0
  528. package/lib/formatMessage.d.ts +3 -1
  529. package/lib/formatMessage.js +10 -29
  530. package/lib/formatPathParams.d.ts +3 -1
  531. package/lib/formatPathParams.js +6 -23
  532. package/lib/getBlobByUrl.d.ts +3 -1
  533. package/lib/getBlobByUrl.js +6 -25
  534. package/lib/getDayMillisecond.d.ts +3 -1
  535. package/lib/getDayMillisecond.js +6 -10
  536. package/lib/getImageInfo.d.ts +3 -1
  537. package/lib/getImageInfo.js +6 -18
  538. package/lib/getRandom.d.ts +3 -1
  539. package/lib/getRandom.js +7 -13
  540. package/lib/getRandomColor.d.ts +3 -1
  541. package/lib/getRandomColor.js +6 -10
  542. package/lib/getRandomNumber.d.ts +3 -1
  543. package/lib/getRandomNumber.js +8 -12
  544. package/lib/getScrollTop.d.ts +3 -1
  545. package/lib/getScrollTop.js +6 -10
  546. package/lib/getVideoInfo.d.ts +3 -1
  547. package/lib/getVideoInfo.js +6 -19
  548. package/lib/inBrowser.d.ts +3 -1
  549. package/lib/inBrowser.js +6 -10
  550. package/lib/index.d.ts +115 -112
  551. package/lib/index.js +470 -129
  552. package/lib/insertLink.d.ts +4 -2
  553. package/lib/insertLink.js +6 -19
  554. package/lib/insertScript.d.ts +4 -2
  555. package/lib/insertScript.js +6 -19
  556. package/lib/insertStyle.d.ts +3 -1
  557. package/lib/insertStyle.js +6 -13
  558. package/lib/isAmount.d.ts +3 -1
  559. package/lib/isAmount.js +6 -17
  560. package/lib/isAndroid.d.ts +3 -1
  561. package/lib/isAndroid.js +6 -10
  562. package/lib/isArray.d.ts +3 -1
  563. package/lib/isArray.js +6 -12
  564. package/lib/isBoolean.d.ts +3 -1
  565. package/lib/isBoolean.js +6 -11
  566. package/lib/isChinese.d.ts +3 -1
  567. package/lib/isChinese.js +6 -10
  568. package/lib/isDate.d.ts +3 -1
  569. package/lib/isDate.js +6 -10
  570. package/lib/isEmail.d.ts +3 -1
  571. package/lib/isEmail.js +6 -10
  572. package/lib/isEmpty.d.ts +3 -1
  573. package/lib/isEmpty.js +8 -12
  574. package/lib/isEmptyArray.d.ts +3 -1
  575. package/lib/isEmptyArray.js +7 -11
  576. package/lib/isEmptyObject.d.ts +3 -1
  577. package/lib/isEmptyObject.js +6 -11
  578. package/lib/isError.d.ts +3 -1
  579. package/lib/isError.js +6 -10
  580. package/lib/isFunction.d.ts +3 -1
  581. package/lib/isFunction.js +6 -10
  582. package/lib/isIE.d.ts +3 -1
  583. package/lib/isIE.js +6 -31
  584. package/lib/isIOS.d.ts +3 -1
  585. package/lib/isIOS.js +6 -10
  586. package/lib/isIdCard.d.ts +3 -1
  587. package/lib/isIdCard.js +6 -10
  588. package/lib/isJSONString.d.ts +3 -1
  589. package/lib/isJSONString.js +7 -18
  590. package/lib/isLan.d.ts +3 -1
  591. package/lib/isLan.js +6 -40
  592. package/lib/isLicenseCode.d.ts +3 -1
  593. package/lib/isLicenseCode.js +6 -11
  594. package/lib/isMobile.d.ts +3 -1
  595. package/lib/isMobile.js +6 -15
  596. package/lib/isNativeFunction.d.ts +3 -1
  597. package/lib/isNativeFunction.js +7 -12
  598. package/lib/isNull.d.ts +3 -1
  599. package/lib/isNull.js +6 -10
  600. package/lib/isNumber.d.ts +3 -1
  601. package/lib/isNumber.js +6 -11
  602. package/lib/isObject.d.ts +3 -1
  603. package/lib/isObject.js +6 -10
  604. package/lib/isPhone.d.ts +3 -1
  605. package/lib/isPhone.js +6 -10
  606. package/lib/isPromise.d.ts +3 -1
  607. package/lib/isPromise.js +6 -10
  608. package/lib/isRegExp.d.ts +3 -1
  609. package/lib/isRegExp.js +6 -10
  610. package/lib/isString.d.ts +3 -1
  611. package/lib/isString.js +6 -10
  612. package/lib/isUndefined.d.ts +3 -1
  613. package/lib/isUndefined.js +6 -10
  614. package/lib/isUrl.d.ts +3 -1
  615. package/lib/isUrl.js +6 -10
  616. package/lib/isWeChat.d.ts +4 -2
  617. package/lib/isWeChat.js +8 -18
  618. package/lib/isWeChatMiniProgram.d.ts +3 -1
  619. package/lib/isWeChatMiniProgram.js +6 -12
  620. package/lib/isWindow.d.ts +3 -1
  621. package/lib/isWindow.js +6 -11
  622. package/lib/kebabCase.d.ts +3 -1
  623. package/lib/kebabCase.js +6 -12
  624. package/lib/listGenerator.d.ts +3 -1
  625. package/lib/listGenerator.js +6 -11
  626. package/lib/mousewheel.d.ts +3 -2
  627. package/lib/mousewheel.js +6 -65
  628. package/lib/nf.d.ts +3 -1
  629. package/lib/nf.js +6 -10
  630. package/lib/normalizePath.d.ts +3 -1
  631. package/lib/normalizePath.js +6 -10
  632. package/lib/omit.d.ts +3 -1
  633. package/lib/omit.js +6 -14
  634. package/lib/padding.d.ts +3 -1
  635. package/lib/padding.js +6 -15
  636. package/lib/parseDate.d.ts +3 -1
  637. package/lib/parseDate.js +6 -15
  638. package/lib/parseError.d.ts +3 -1
  639. package/lib/parseError.js +10 -26
  640. package/lib/parseObject.d.ts +3 -1
  641. package/lib/parseObject.js +6 -17
  642. package/lib/parsePath.d.ts +3 -1
  643. package/lib/parsePath.js +7 -18
  644. package/lib/parseQuery.d.ts +3 -1
  645. package/lib/parseQuery.js +8 -31
  646. package/lib/parseQueryString.d.ts +3 -1
  647. package/lib/parseQueryString.js +6 -18
  648. package/lib/pascalCase.d.ts +3 -1
  649. package/lib/pascalCase.js +8 -13
  650. package/lib/pick.d.ts +3 -1
  651. package/lib/pick.js +6 -14
  652. package/lib/replaceCrlf.d.ts +3 -1
  653. package/lib/replaceCrlf.js +6 -10
  654. package/lib/requestFullScreen.d.ts +3 -1
  655. package/lib/requestFullScreen.js +6 -31
  656. package/lib/reserve.d.ts +3 -1
  657. package/lib/reserve.js +9 -14
  658. package/lib/rgbToHex.d.ts +3 -1
  659. package/lib/rgbToHex.js +6 -16
  660. package/lib/round.d.ts +3 -1
  661. package/lib/round.js +6 -51
  662. package/lib/scrollToTop.d.ts +3 -1
  663. package/lib/scrollToTop.js +6 -14
  664. package/lib/setScrollTop.d.ts +3 -1
  665. package/lib/setScrollTop.js +6 -10
  666. package/lib/sleep.d.ts +3 -1
  667. package/lib/sleep.js +6 -14
  668. package/lib/splitArray.d.ts +3 -1
  669. package/lib/splitArray.js +6 -14
  670. package/lib/storage/factory.d.ts +4 -2
  671. package/lib/storage/factory.js +8 -59
  672. package/lib/storage/index.d.ts +6 -3
  673. package/lib/storage/index.js +14 -30
  674. package/lib/stringTrim.d.ts +3 -1
  675. package/lib/stringTrim.js +6 -23
  676. package/lib/stringifyQuery.d.ts +3 -1
  677. package/lib/stringifyQuery.js +8 -20
  678. package/lib/stringifyQueryString.d.ts +3 -1
  679. package/lib/stringifyQueryString.js +6 -17
  680. package/lib/throttle.d.ts +5 -3
  681. package/lib/throttle.js +10 -45
  682. package/lib/toCDB.d.ts +3 -1
  683. package/lib/toCDB.js +6 -23
  684. package/lib/toDBC.d.ts +3 -1
  685. package/lib/toDBC.js +6 -23
  686. package/lib/trap.d.ts +5 -3
  687. package/lib/trap.js +9 -47
  688. package/lib/typeOf.d.ts +3 -1
  689. package/lib/typeOf.js +6 -12
  690. package/lib/withPreventConsecutiveClicks.d.ts +3 -1
  691. package/lib/withPreventConsecutiveClicks.js +6 -42
  692. package/package.json +16 -6
  693. package/es/ato.js +0 -6
  694. package/es/base64ToBlob.d.ts +0 -6
  695. package/es/base64ToBlob.js +0 -21
  696. package/es/blobToBase64.d.ts +0 -4
  697. package/es/blobToBase64.js +0 -14
  698. package/es/cached.d.ts +0 -5
  699. package/es/cached.js +0 -12
  700. package/es/camelCase.d.ts +0 -5
  701. package/es/camelCase.js +0 -7
  702. package/es/canvasToBlob.d.ts +0 -4
  703. package/es/canvasToBlob.js +0 -8
  704. package/es/capitalize.d.ts +0 -5
  705. package/es/capitalize.js +0 -7
  706. package/es/clamp.js +0 -16
  707. package/es/clone.d.ts +0 -5
  708. package/es/clone.js +0 -19
  709. package/es/cloneSimple.js +0 -9
  710. package/es/compareVersion.js +0 -39
  711. package/es/compressImage.d.ts +0 -4
  712. package/es/compressImage.js +0 -16
  713. package/es/createHexColorByHash.d.ts +0 -4
  714. package/es/createHexColorByHash.js +0 -63
  715. package/es/createLinearFunction.js +0 -20
  716. package/es/createWithLoading.js +0 -35
  717. package/es/debounce.d.ts +0 -5
  718. package/es/debounce.js +0 -14
  719. package/es/decode.d.ts +0 -2
  720. package/es/decode.js +0 -47
  721. package/es/downloadFile.d.ts +0 -6
  722. package/es/downloadFile.js +0 -11
  723. package/es/each.d.ts +0 -5
  724. package/es/each.js +0 -13
  725. package/es/exitFullscreen.js +0 -27
  726. package/es/filterBankCardNo.d.ts +0 -4
  727. package/es/filterBankCardNo.js +0 -8
  728. package/es/filterCRLF.d.ts +0 -4
  729. package/es/filterCRLF.js +0 -6
  730. package/es/filterEmoji.d.ts +0 -4
  731. package/es/filterEmoji.js +0 -17
  732. package/es/filterEmptyValue.js +0 -31
  733. package/es/filterIdCard.d.ts +0 -5
  734. package/es/filterIdCard.js +0 -7
  735. package/es/filterName.d.ts +0 -4
  736. package/es/filterName.js +0 -16
  737. package/es/filterPhone.js +0 -8
  738. package/es/filterString.d.ts +0 -6
  739. package/es/filterString.js +0 -16
  740. package/es/formartDateToZN.d.ts +0 -1
  741. package/es/formartDateToZN.js +0 -30
  742. package/es/formatAmount.d.ts +0 -4
  743. package/es/formatAmount.js +0 -21
  744. package/es/formatDate.d.ts +0 -5
  745. package/es/formatDate.js +0 -35
  746. package/es/formatDateStr.js +0 -7
  747. package/es/formatMessage.js +0 -25
  748. package/es/formatPathParams.js +0 -19
  749. package/es/getBlobByUrl.d.ts +0 -4
  750. package/es/getBlobByUrl.js +0 -21
  751. package/es/getDayMillisecond.d.ts +0 -4
  752. package/es/getDayMillisecond.js +0 -6
  753. package/es/getImageInfo.d.ts +0 -4
  754. package/es/getImageInfo.js +0 -14
  755. package/es/getRandom.js +0 -9
  756. package/es/getRandomColor.d.ts +0 -4
  757. package/es/getRandomColor.js +0 -6
  758. package/es/getRandomNumber.js +0 -8
  759. package/es/getScrollTop.d.ts +0 -4
  760. package/es/getScrollTop.js +0 -6
  761. package/es/getVideoInfo.d.ts +0 -4
  762. package/es/getVideoInfo.js +0 -15
  763. package/es/inBrowser.d.ts +0 -4
  764. package/es/inBrowser.js +0 -6
  765. package/es/index.d.ts +0 -112
  766. package/es/index.js +0 -113
  767. package/es/insertLink.d.ts +0 -5
  768. package/es/insertLink.js +0 -15
  769. package/es/insertScript.d.ts +0 -5
  770. package/es/insertScript.js +0 -15
  771. package/es/insertStyle.d.ts +0 -4
  772. package/es/insertStyle.js +0 -9
  773. package/es/isAmount.js +0 -13
  774. package/es/isAndroid.d.ts +0 -4
  775. package/es/isAndroid.js +0 -6
  776. package/es/isArray.js +0 -8
  777. package/es/isBoolean.d.ts +0 -5
  778. package/es/isBoolean.js +0 -7
  779. package/es/isChinese.d.ts +0 -4
  780. package/es/isChinese.js +0 -6
  781. package/es/isDate.d.ts +0 -4
  782. package/es/isDate.js +0 -6
  783. package/es/isEmail.d.ts +0 -4
  784. package/es/isEmail.js +0 -6
  785. package/es/isEmpty.d.ts +0 -4
  786. package/es/isEmpty.js +0 -8
  787. package/es/isEmptyArray.d.ts +0 -4
  788. package/es/isEmptyArray.js +0 -7
  789. package/es/isEmptyObject.d.ts +0 -5
  790. package/es/isEmptyObject.js +0 -7
  791. package/es/isError.d.ts +0 -4
  792. package/es/isError.js +0 -6
  793. package/es/isFunction.d.ts +0 -4
  794. package/es/isFunction.js +0 -6
  795. package/es/isIE.js +0 -27
  796. package/es/isIOS.d.ts +0 -4
  797. package/es/isIOS.js +0 -6
  798. package/es/isIdCard.d.ts +0 -4
  799. package/es/isIdCard.js +0 -6
  800. package/es/isJSONString.d.ts +0 -5
  801. package/es/isJSONString.js +0 -14
  802. package/es/isLan.js +0 -36
  803. package/es/isLicenseCode.d.ts +0 -5
  804. package/es/isLicenseCode.js +0 -7
  805. package/es/isMobile.d.ts +0 -4
  806. package/es/isMobile.js +0 -11
  807. package/es/isNativeFunction.js +0 -8
  808. package/es/isNull.d.ts +0 -4
  809. package/es/isNull.js +0 -6
  810. package/es/isNumber.d.ts +0 -5
  811. package/es/isNumber.js +0 -7
  812. package/es/isObject.d.ts +0 -4
  813. package/es/isObject.js +0 -6
  814. package/es/isPhone.d.ts +0 -4
  815. package/es/isPhone.js +0 -6
  816. package/es/isPromise.d.ts +0 -4
  817. package/es/isPromise.js +0 -6
  818. package/es/isRegExp.d.ts +0 -4
  819. package/es/isRegExp.js +0 -6
  820. package/es/isString.d.ts +0 -4
  821. package/es/isString.js +0 -6
  822. package/es/isUndefined.d.ts +0 -4
  823. package/es/isUndefined.js +0 -6
  824. package/es/isUrl.d.ts +0 -4
  825. package/es/isUrl.js +0 -6
  826. package/es/isWeChat.js +0 -13
  827. package/es/isWeChatMiniProgram.js +0 -8
  828. package/es/isWindow.d.ts +0 -5
  829. package/es/isWindow.js +0 -7
  830. package/es/kebabCase.d.ts +0 -5
  831. package/es/kebabCase.js +0 -8
  832. package/es/listGenerator.d.ts +0 -5
  833. package/es/listGenerator.js +0 -7
  834. package/es/mousewheel.js +0 -61
  835. package/es/nf.d.ts +0 -4
  836. package/es/nf.js +0 -6
  837. package/es/normalizePath.d.ts +0 -4
  838. package/es/normalizePath.js +0 -6
  839. package/es/omit.d.ts +0 -4
  840. package/es/omit.js +0 -10
  841. package/es/padding.js +0 -11
  842. package/es/parseDate.d.ts +0 -4
  843. package/es/parseDate.js +0 -11
  844. package/es/parseError.d.ts +0 -4
  845. package/es/parseError.js +0 -22
  846. package/es/parseObject.d.ts +0 -5
  847. package/es/parseObject.js +0 -13
  848. package/es/parsePath.d.ts +0 -4
  849. package/es/parsePath.js +0 -14
  850. package/es/parseQuery.d.ts +0 -6
  851. package/es/parseQuery.js +0 -27
  852. package/es/parseQueryString.d.ts +0 -6
  853. package/es/parseQueryString.js +0 -14
  854. package/es/pascalCase.js +0 -9
  855. package/es/pick.d.ts +0 -4
  856. package/es/pick.js +0 -10
  857. package/es/replaceCrlf.d.ts +0 -4
  858. package/es/replaceCrlf.js +0 -6
  859. package/es/requestFullScreen.js +0 -27
  860. package/es/reserve.js +0 -10
  861. package/es/rgbToHex.d.ts +0 -4
  862. package/es/rgbToHex.js +0 -12
  863. package/es/round.js +0 -47
  864. package/es/scrollToTop.d.ts +0 -4
  865. package/es/scrollToTop.js +0 -10
  866. package/es/setScrollTop.d.ts +0 -4
  867. package/es/setScrollTop.js +0 -6
  868. package/es/sleep.js +0 -10
  869. package/es/splitArray.d.ts +0 -4
  870. package/es/splitArray.js +0 -10
  871. package/es/storage/factory.js +0 -55
  872. package/es/storage/index.js +0 -13
  873. package/es/stringTrim.js +0 -19
  874. package/es/stringifyQuery.d.ts +0 -4
  875. package/es/stringifyQuery.js +0 -16
  876. package/es/stringifyQueryString.d.ts +0 -6
  877. package/es/stringifyQueryString.js +0 -13
  878. package/es/throttle.d.ts +0 -15
  879. package/es/throttle.js +0 -39
  880. package/es/toCDB.d.ts +0 -4
  881. package/es/toCDB.js +0 -19
  882. package/es/toDBC.d.ts +0 -4
  883. package/es/toDBC.js +0 -19
  884. package/es/trap.js +0 -43
  885. package/es/typeOf.js +0 -8
  886. package/es/withPreventConsecutiveClicks.d.ts +0 -4
  887. package/es/withPreventConsecutiveClicks.js +0 -38
@@ -0,0 +1,42 @@
1
+ // src/decode.ts
2
+ var b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
3
+ var b64re = (
4
+ // eslint-disable-next-line no-useless-escape
5
+ /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/
6
+ );
7
+ var btoa = function(string) {
8
+ string = String(string);
9
+ let bitmap, a, b, c, result = "", i = 0, rest = string.length % 3;
10
+ for (; i < string.length; ) {
11
+ if ((a = string.charCodeAt(i++)) > 255 || (b = string.charCodeAt(i++)) > 255 || (c = string.charCodeAt(i++)) > 255)
12
+ throw new TypeError(
13
+ "Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range."
14
+ );
15
+ bitmap = a << 16 | b << 8 | c;
16
+ result += b64.charAt(bitmap >> 18 & 63) + b64.charAt(bitmap >> 12 & 63) + b64.charAt(bitmap >> 6 & 63) + b64.charAt(bitmap & 63);
17
+ }
18
+ return rest ? result.slice(0, rest - 3) + "===".substring(rest) : result;
19
+ };
20
+ var atob = function(string) {
21
+ string = String(string).replace(/[\t\n\f\r ]+/g, "");
22
+ if (!b64re.test(string))
23
+ throw new TypeError(
24
+ "Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded."
25
+ );
26
+ string += "==".slice(2 - (string.length & 3));
27
+ let bitmap, result = "", r1, r2, i = 0;
28
+ for (; i < string.length; ) {
29
+ bitmap = b64.indexOf(string.charAt(i++)) << 18 | b64.indexOf(string.charAt(i++)) << 12 | (r1 = b64.indexOf(string.charAt(i++))) << 6 | (r2 = b64.indexOf(string.charAt(i++)));
30
+ result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) : r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) : String.fromCharCode(
31
+ bitmap >> 16 & 255,
32
+ bitmap >> 8 & 255,
33
+ bitmap & 255
34
+ );
35
+ }
36
+ return result;
37
+ };
38
+
39
+ export {
40
+ btoa,
41
+ atob
42
+ };
@@ -0,0 +1,17 @@
1
+ // src/getVideoInfo.ts
2
+ function getVideoInfo(src) {
3
+ return new Promise((resolve, reject) => {
4
+ const video = document.createElement("video");
5
+ video.preload = "metadata";
6
+ video.muted = true;
7
+ video.onerror = reject;
8
+ video.onloadedmetadata = () => {
9
+ resolve(video);
10
+ };
11
+ video.src = src;
12
+ });
13
+ }
14
+
15
+ export {
16
+ getVideoInfo
17
+ };
@@ -0,0 +1,57 @@
1
+ import {
2
+ isArray
3
+ } from "./chunk-UZ44S2T3.mjs";
4
+ import {
5
+ isObject
6
+ } from "./chunk-H4Q2L2Z7.mjs";
7
+
8
+ // src/storage/factory.ts
9
+ function factory(type) {
10
+ const fn = window[type];
11
+ const setItem = (key, val) => {
12
+ fn.setItem(key, JSON.stringify(val));
13
+ return val;
14
+ };
15
+ const getItem = (key, defaultVal = null) => {
16
+ const val = fn.getItem(key);
17
+ if (val === null) {
18
+ return defaultVal;
19
+ }
20
+ return JSON.parse(val);
21
+ };
22
+ const removeItem = (key) => {
23
+ fn.removeItem(key);
24
+ };
25
+ const updateItem = (key, val) => {
26
+ const prev = getItem(key);
27
+ if (isArray(val)) {
28
+ val = [...prev || [], ...val];
29
+ } else if (isObject(val)) {
30
+ val = { ...prev, ...val };
31
+ }
32
+ return setItem(key, val);
33
+ };
34
+ const clear = () => {
35
+ fn.clear();
36
+ };
37
+ const generate = (key) => {
38
+ return {
39
+ setItem: (val) => setItem(key, val),
40
+ getItem: (defaultVal) => getItem(key, defaultVal),
41
+ removeItem: () => removeItem(key),
42
+ updateItem: (val) => updateItem(key, val)
43
+ };
44
+ };
45
+ return {
46
+ setItem,
47
+ getItem,
48
+ removeItem,
49
+ updateItem,
50
+ clear,
51
+ generate
52
+ };
53
+ }
54
+
55
+ export {
56
+ factory
57
+ };
@@ -0,0 +1,13 @@
1
+ // src/downloadFile.ts
2
+ function downloadFile(data, options) {
3
+ const a = document.createElement("a");
4
+ a.href = typeof data === "string" ? data : URL.createObjectURL(data);
5
+ if (options?.fileName) {
6
+ a.download = options.fileName;
7
+ }
8
+ a.click();
9
+ }
10
+
11
+ export {
12
+ downloadFile
13
+ };
@@ -0,0 +1,13 @@
1
+ // src/cached.ts
2
+ function cached(fn) {
3
+ const cache = /* @__PURE__ */ Object.create(null);
4
+ return function cachedFn(...args) {
5
+ const key = JSON.stringify(args);
6
+ const hit = cache[key];
7
+ return hit || (cache[key] = fn(...args));
8
+ };
9
+ }
10
+
11
+ export {
12
+ cached
13
+ };
@@ -0,0 +1,8 @@
1
+ // src/setScrollTop.ts
2
+ function setScrollTop(scrollTop = 0) {
3
+ document.documentElement.scrollTop = document.body.scrollTop = scrollTop;
4
+ }
5
+
6
+ export {
7
+ setScrollTop
8
+ };
@@ -0,0 +1,8 @@
1
+ // src/isUndefined.ts
2
+ function isUndefined(val) {
3
+ return typeof val === "undefined";
4
+ }
5
+
6
+ export {
7
+ isUndefined
8
+ };
@@ -0,0 +1,8 @@
1
+ // src/isChinese.ts
2
+ function isChinese(val) {
3
+ return /[^\u4e00-\u9fa5]/.test(val);
4
+ }
5
+
6
+ export {
7
+ isChinese
8
+ };
@@ -0,0 +1,11 @@
1
+ // src/rgbToHex.ts
2
+ function rgbToHex(r, g, b) {
3
+ return "#" + [r, g, b].map((x) => {
4
+ const hex = x.toString(16);
5
+ return hex.length === 1 ? "0" + hex : hex;
6
+ }).join("");
7
+ }
8
+
9
+ export {
10
+ rgbToHex
11
+ };
@@ -0,0 +1,8 @@
1
+ // src/isRegExp.ts
2
+ function isRegExp(val) {
3
+ return val instanceof RegExp;
4
+ }
5
+
6
+ export {
7
+ isRegExp
8
+ };
@@ -0,0 +1,10 @@
1
+ // src/isLicenseCode.ts
2
+ function isLicenseCode(v) {
3
+ return /(^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-Z0-9]{4,5}[A-Z0-9挂学警港澳]{1}$)/.test(
4
+ v
5
+ );
6
+ }
7
+
8
+ export {
9
+ isLicenseCode
10
+ };
@@ -0,0 +1,12 @@
1
+ // src/isWeChat.ts
2
+ function isWeChat() {
3
+ return /MicroMessenger/gi.test(window.navigator.userAgent);
4
+ }
5
+ function isWeixin() {
6
+ return isWeChat();
7
+ }
8
+
9
+ export {
10
+ isWeChat,
11
+ isWeixin
12
+ };
@@ -0,0 +1,13 @@
1
+ // src/filterString.ts
2
+ function filterString(val, sep = "*", start = 0, end) {
3
+ return val.split("").map((s, index) => {
4
+ if (index >= start && index < (end ?? val.length)) {
5
+ return sep;
6
+ }
7
+ return s;
8
+ }).join("");
9
+ }
10
+
11
+ export {
12
+ filterString
13
+ };
@@ -0,0 +1,8 @@
1
+ // src/replaceCrlf.ts
2
+ function replaceCrlf(val, replaceVal) {
3
+ return val ? val.replace(/\\r|\\n/gi, replaceVal) : "";
4
+ }
5
+
6
+ export {
7
+ replaceCrlf
8
+ };
@@ -0,0 +1,8 @@
1
+ // src/isUrl.ts
2
+ function isUrl(val) {
3
+ return /^((https|http|ftp|rtsp|mms)?:\/\/)[^\s]+/.test(val);
4
+ }
5
+
6
+ export {
7
+ isUrl
8
+ };
@@ -0,0 +1,55 @@
1
+ // src/createHexColorByHash.ts
2
+ var colorGenByHash = (str) => {
3
+ const lsL = [0.35, 0.5, 0.65];
4
+ const lsS = [0.35, 0.5, 0.65];
5
+ const seed = 131;
6
+ const seed2 = 137;
7
+ let hash = 0;
8
+ str += "x";
9
+ const MAX_SAFE_INTEGER = parseInt((9007199254740991 / seed2).toString(), 10);
10
+ for (let i = 0; i < str.length; i++) {
11
+ if (hash > MAX_SAFE_INTEGER) {
12
+ hash = parseInt((hash / seed2).toString(), 10);
13
+ }
14
+ hash = hash * seed + str.charCodeAt(i);
15
+ }
16
+ let H;
17
+ H = hash % 359;
18
+ hash = parseInt((hash / 360).toString(), 10);
19
+ const S = lsS[hash % lsS.length];
20
+ hash = parseInt((hash / lsS.length).toString(), 10);
21
+ const L = lsL[hash % lsL.length];
22
+ H /= 360;
23
+ const q = L < 0.5 ? L * (1 + S) : L + S - L * S;
24
+ const p = 2 * L - q;
25
+ const RGBArray = [H + 1 / 3, H, H - 1 / 3].map((color) => {
26
+ if (color < 0) {
27
+ color++;
28
+ }
29
+ if (color > 1) {
30
+ color--;
31
+ }
32
+ if (color < 1 / 6) {
33
+ color = p + (q - p) * 6 * color;
34
+ } else if (color < 0.5) {
35
+ color = q;
36
+ } else if (color < 2 / 3) {
37
+ color = p + (q - p) * 6 * (2 / 3 - color);
38
+ } else {
39
+ color = p;
40
+ }
41
+ return Math.round(color * 255);
42
+ });
43
+ let hex = "#";
44
+ RGBArray.forEach((value) => {
45
+ if (value < 16) {
46
+ hex += 0;
47
+ }
48
+ hex += value.toString(16);
49
+ });
50
+ return hex;
51
+ };
52
+
53
+ export {
54
+ colorGenByHash
55
+ };
@@ -0,0 +1,8 @@
1
+ // src/isEmail.ts
2
+ function isEmail(val) {
3
+ return /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(val);
4
+ }
5
+
6
+ export {
7
+ isEmail
8
+ };
@@ -0,0 +1,12 @@
1
+ // src/splitArray.ts
2
+ function splitArray(source, size) {
3
+ const result = [];
4
+ for (let i = 0, len = source.length; i < len; i += size) {
5
+ result.push(source.slice(i, i + size));
6
+ }
7
+ return result;
8
+ }
9
+
10
+ export {
11
+ splitArray
12
+ };
@@ -0,0 +1,8 @@
1
+ // src/isNull.ts
2
+ function isNull(val) {
3
+ return val === null;
4
+ }
5
+
6
+ export {
7
+ isNull
8
+ };
@@ -0,0 +1,42 @@
1
+ import {
2
+ isEmptyArray
3
+ } from "./chunk-7EYJRHPH.mjs";
4
+ import {
5
+ isEmptyObject
6
+ } from "./chunk-GSEIW3MZ.mjs";
7
+ import {
8
+ isFunction
9
+ } from "./chunk-4FSOO7WE.mjs";
10
+ import {
11
+ isEmpty
12
+ } from "./chunk-XJT6W4OH.mjs";
13
+ import {
14
+ isObject
15
+ } from "./chunk-H4Q2L2Z7.mjs";
16
+
17
+ // src/filterEmptyValue.ts
18
+ function filterEmptyValue(obj, expand = false) {
19
+ return Object.entries(obj).reduce(
20
+ (res, [key, value]) => {
21
+ if (isFunction(expand) && expand(key, value)) {
22
+ res[key] = value;
23
+ } else {
24
+ if (!isEmpty(value)) {
25
+ if (expand) {
26
+ if (!isEmptyArray(value) && !(isObject(value) && isEmptyObject(value))) {
27
+ res[key] = value;
28
+ }
29
+ } else {
30
+ res[key] = value;
31
+ }
32
+ }
33
+ }
34
+ return res;
35
+ },
36
+ {}
37
+ );
38
+ }
39
+
40
+ export {
41
+ filterEmptyValue
42
+ };
@@ -0,0 +1,8 @@
1
+ // src/isWeChatMiniProgram.ts
2
+ function isWeChatMiniProgram() {
3
+ return window.navigator.userAgent.toLocaleLowerCase().includes("miniprogram");
4
+ }
5
+
6
+ export {
7
+ isWeChatMiniProgram
8
+ };
@@ -0,0 +1,34 @@
1
+ import {
2
+ parsePath
3
+ } from "./chunk-WQFMRPXU.mjs";
4
+ import {
5
+ isUndefined
6
+ } from "./chunk-PMNXLTUL.mjs";
7
+ import {
8
+ isNull
9
+ } from "./chunk-T53J6Z3W.mjs";
10
+ import {
11
+ isObject
12
+ } from "./chunk-H4Q2L2Z7.mjs";
13
+
14
+ // src/formatMessage.ts
15
+ function formatMessage(message, keys = ["message", "msg", "errMsg", "errorMsg"]) {
16
+ if (isNull(message) || isUndefined(message)) {
17
+ return "";
18
+ }
19
+ if (!isObject(message)) {
20
+ return `${message}`;
21
+ }
22
+ for (let i = 0, len = keys.length; i < len; i++) {
23
+ const key = keys[i];
24
+ const val = parsePath(message, key);
25
+ if (!isUndefined(val)) {
26
+ return `${val}`;
27
+ }
28
+ }
29
+ return JSON.stringify(message);
30
+ }
31
+
32
+ export {
33
+ formatMessage
34
+ };
@@ -0,0 +1,11 @@
1
+ // src/ato.ts
2
+ function ato(options, labelKey, valueKey) {
3
+ return options.reduce((res, item) => {
4
+ res[item[labelKey]] = valueKey ? item[valueKey] : item;
5
+ return res;
6
+ }, {});
7
+ }
8
+
9
+ export {
10
+ ato
11
+ };
@@ -0,0 +1,14 @@
1
+ // src/parseObject.ts
2
+ function parseObject(path, value) {
3
+ const result = {};
4
+ const segments = path ? path.split(".") : [];
5
+ segments.reduce((res, key, index, arr) => {
6
+ res[key] = index === arr.length - 1 ? value : {};
7
+ return res[key];
8
+ }, result);
9
+ return result;
10
+ }
11
+
12
+ export {
13
+ parseObject
14
+ };
@@ -0,0 +1,14 @@
1
+ // src/debounce.ts
2
+ function debounce(fn, ms) {
3
+ let timer = null;
4
+ return function(...args) {
5
+ clearTimeout(timer);
6
+ timer = setTimeout(() => {
7
+ fn.apply(this, args);
8
+ }, ms);
9
+ };
10
+ }
11
+
12
+ export {
13
+ debounce
14
+ };
@@ -0,0 +1,8 @@
1
+ // src/cloneSimple.ts
2
+ function cloneSimple(source) {
3
+ return JSON.parse(JSON.stringify(source));
4
+ }
5
+
6
+ export {
7
+ cloneSimple
8
+ };
@@ -0,0 +1,8 @@
1
+ // src/isArray.ts
2
+ function isArray(val) {
3
+ return Array.isArray(val);
4
+ }
5
+
6
+ export {
7
+ isArray
8
+ };
@@ -0,0 +1,20 @@
1
+ // src/filterName.ts
2
+ function filterName(val) {
3
+ if (!val) {
4
+ return "";
5
+ }
6
+ const len = val.length;
7
+ if (len === 1) {
8
+ return val;
9
+ }
10
+ if (len === 2) {
11
+ return `${val.substring(0, 1)}*`;
12
+ }
13
+ return `${val.substring(0, 1)}${new Array(len - 1).join("*")}${val.substr(
14
+ -1
15
+ )}`;
16
+ }
17
+
18
+ export {
19
+ filterName
20
+ };
@@ -0,0 +1,15 @@
1
+ import {
2
+ camelCase
3
+ } from "./chunk-HX6BTERO.mjs";
4
+ import {
5
+ capitalize
6
+ } from "./chunk-EJPQYVUM.mjs";
7
+
8
+ // src/pascalCase.ts
9
+ function pascalCase(str) {
10
+ return capitalize(camelCase(str));
11
+ }
12
+
13
+ export {
14
+ pascalCase
15
+ };
@@ -0,0 +1,16 @@
1
+ // src/each.ts
2
+ function each(data, callback) {
3
+ if (Array.isArray(data)) {
4
+ for (let index = 0, { length } = data; index < length; index++) {
5
+ callback.call(data[index], data[index], index);
6
+ }
7
+ } else {
8
+ Object.keys(data).forEach((key) => {
9
+ callback.call(data[key], data[key], key);
10
+ });
11
+ }
12
+ }
13
+
14
+ export {
15
+ each
16
+ };
@@ -0,0 +1,13 @@
1
+ // src/requestFullScreen.ts
2
+ async function requestFullScreen(ele = window.document.documentElement) {
3
+ const element = ele;
4
+ const fullScreen = element.requestFullscreen || element.mozRequestFullScreen || element.msRequestFullscreen || element.webkitRequestFullscreen;
5
+ if (fullScreen) {
6
+ return await fullScreen.call(element);
7
+ }
8
+ return Promise.reject();
9
+ }
10
+
11
+ export {
12
+ requestFullScreen
13
+ };
@@ -0,0 +1,27 @@
1
+ import {
2
+ isJSONString
3
+ } from "./chunk-GGV2QLUA.mjs";
4
+
5
+ // src/parseQuery.ts
6
+ function parseQuery(v, k) {
7
+ let searchStr = "";
8
+ if (!v) {
9
+ searchStr = window.location.search;
10
+ } else {
11
+ const url = new URL(v);
12
+ searchStr = url.search;
13
+ }
14
+ const query = new URLSearchParams(decodeURIComponent(searchStr));
15
+ if (k) {
16
+ return query.get(k);
17
+ }
18
+ const res = {};
19
+ for (const [key, value] of query.entries()) {
20
+ res[key] = isJSONString(value) ? JSON.parse(value) : value;
21
+ }
22
+ return res;
23
+ }
24
+
25
+ export {
26
+ parseQuery
27
+ };
@@ -0,0 +1,8 @@
1
+ // src/formatDateStr.ts
2
+ function formatDateStr(v) {
3
+ return new Date(v.replace(/-/g, "/"));
4
+ }
5
+
6
+ export {
7
+ formatDateStr
8
+ };
@@ -0,0 +1,19 @@
1
+ import {
2
+ isObject
3
+ } from "./chunk-H4Q2L2Z7.mjs";
4
+
5
+ // src/parsePath.ts
6
+ function parsePath(obj, path) {
7
+ const segments = path ? path.split(".") : [];
8
+ for (let i = 0, len = segments.length; i < len; i++) {
9
+ obj = obj[segments[i]];
10
+ if (!isObject(obj)) {
11
+ break;
12
+ }
13
+ }
14
+ return obj;
15
+ }
16
+
17
+ export {
18
+ parsePath
19
+ };
@@ -0,0 +1,8 @@
1
+ // src/getDayMillisecond.ts
2
+ function getDayMillisecond(day = 1) {
3
+ return day * 24 * 60 * 60 * 1e3;
4
+ }
5
+
6
+ export {
7
+ getDayMillisecond
8
+ };
@@ -0,0 +1,15 @@
1
+ import {
2
+ isUndefined
3
+ } from "./chunk-PMNXLTUL.mjs";
4
+ import {
5
+ isNull
6
+ } from "./chunk-T53J6Z3W.mjs";
7
+
8
+ // src/isEmpty.ts
9
+ function isEmpty(val) {
10
+ return val === "" || isNull(val) || isUndefined(val);
11
+ }
12
+
13
+ export {
14
+ isEmpty
15
+ };
@@ -0,0 +1,12 @@
1
+ // src/omit.ts
2
+ function omit(obj, fields = []) {
3
+ const clone = { ...obj };
4
+ fields.forEach((key) => {
5
+ delete clone[key];
6
+ });
7
+ return clone;
8
+ }
9
+
10
+ export {
11
+ omit
12
+ };
@@ -0,0 +1,10 @@
1
+ // src/isIdCard.ts
2
+ function isIdCard(val) {
3
+ return /^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/.test(
4
+ val
5
+ );
6
+ }
7
+
8
+ export {
9
+ isIdCard
10
+ };