@unicom-cloud/utils 0.1.32 → 0.1.34

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 (358) hide show
  1. package/case-name/index.js +1 -1
  2. package/caseName.js +1 -1
  3. package/class-name/index.js +1 -1
  4. package/className.js +1 -1
  5. package/clipboard-copy/index.js +7 -7
  6. package/clipboardCopy.js +1 -1
  7. package/constant/address.js +1 -1
  8. package/constant/chineseCharacters.js +1 -1
  9. package/constant/constellations.js +1 -1
  10. package/constant/domain.js +1 -1
  11. package/constant/emoji.js +1 -1
  12. package/constant/identity.js +1 -1
  13. package/constant/index.js +1 -1
  14. package/constant/isMobile.js +1 -1
  15. package/constant/keyboardCode.js +1 -1
  16. package/constant/licensePlate.js +1 -1
  17. package/constant/name.js +1 -1
  18. package/constant/platform.js +1 -1
  19. package/constant/protocol.js +1 -1
  20. package/constant/string.js +1 -1
  21. package/constant/ui.js +1 -1
  22. package/constant.js +1 -1
  23. package/content-disposition/index.js +1 -1
  24. package/contentDisposition.js +1 -1
  25. package/cookie/index.js +1 -1
  26. package/cookie/src/api.js +1 -1
  27. package/cookie/src/assign.js +1 -1
  28. package/cookie/src/converter.js +1 -1
  29. package/cookie.js +1 -1
  30. package/date/convertTime.js +1 -1
  31. package/date/convertToDuration.js +1 -1
  32. package/date/index.js +5 -5
  33. package/date.js +5 -5
  34. package/decimal/decimal.js +1 -1
  35. package/decimal/index.js +1 -1
  36. package/decimal.js +1 -1
  37. package/dom-helpers/activeElement.js +1 -1
  38. package/dom-helpers/addClass.js +1 -1
  39. package/dom-helpers/addEventListener.js +1 -1
  40. package/dom-helpers/animate.js +1 -1
  41. package/dom-helpers/animationFrame.js +1 -1
  42. package/dom-helpers/attribute.js +1 -1
  43. package/dom-helpers/camelize.js +1 -1
  44. package/dom-helpers/camelizeStyle.js +1 -1
  45. package/dom-helpers/canUseDOM.js +1 -1
  46. package/dom-helpers/childElements.js +1 -1
  47. package/dom-helpers/childNodes.js +1 -1
  48. package/dom-helpers/clear.js +1 -1
  49. package/dom-helpers/closest.js +1 -1
  50. package/dom-helpers/collectElements.js +1 -1
  51. package/dom-helpers/collectSiblings.js +1 -1
  52. package/dom-helpers/contains.js +1 -1
  53. package/dom-helpers/css.js +1 -1
  54. package/dom-helpers/filterEventHandler.js +1 -1
  55. package/dom-helpers/getComputedStyle.js +1 -1
  56. package/dom-helpers/getElementCoordinates.js +46 -0
  57. package/dom-helpers/getScrollAccessor.js +1 -1
  58. package/dom-helpers/hasClass.js +1 -1
  59. package/dom-helpers/height.js +1 -1
  60. package/dom-helpers/hyphenate.js +1 -1
  61. package/dom-helpers/hyphenateStyle.js +1 -1
  62. package/dom-helpers/index.js +87 -84
  63. package/dom-helpers/insertAfter.js +1 -1
  64. package/dom-helpers/isDocument.js +1 -1
  65. package/dom-helpers/isInput.js +1 -1
  66. package/dom-helpers/isTransform.js +1 -1
  67. package/dom-helpers/isVisible.js +1 -1
  68. package/dom-helpers/isWindow.js +1 -1
  69. package/dom-helpers/listen.js +1 -1
  70. package/dom-helpers/matches.js +1 -1
  71. package/dom-helpers/nextUntil.js +1 -1
  72. package/dom-helpers/offset.js +1 -1
  73. package/dom-helpers/offsetParent.js +1 -1
  74. package/dom-helpers/ownerDocument.js +1 -1
  75. package/dom-helpers/ownerWindow.js +1 -1
  76. package/dom-helpers/parents.js +1 -1
  77. package/dom-helpers/position.js +1 -1
  78. package/dom-helpers/prepend.js +1 -1
  79. package/dom-helpers/querySelectorAll.js +1 -1
  80. package/dom-helpers/reflow.js +1 -1
  81. package/dom-helpers/remove.js +1 -1
  82. package/dom-helpers/removeClass.js +1 -1
  83. package/dom-helpers/removeEventListener.js +1 -1
  84. package/dom-helpers/scrollLeft.js +1 -1
  85. package/dom-helpers/scrollParent.js +1 -1
  86. package/dom-helpers/scrollTo.js +1 -1
  87. package/dom-helpers/scrollTop.js +1 -1
  88. package/dom-helpers/scrollbarSize.js +1 -1
  89. package/dom-helpers/siblings.js +1 -1
  90. package/dom-helpers/text.js +1 -1
  91. package/dom-helpers/toggleClass.js +1 -1
  92. package/dom-helpers/transitionEnd.js +2 -2
  93. package/dom-helpers/triggerEvent.js +1 -1
  94. package/dom-helpers/types.js +1 -1
  95. package/dom-helpers/width.js +1 -1
  96. package/domHelpers.js +65 -63
  97. package/emitter/index.js +1 -1
  98. package/emitter/src/index.js +1 -1
  99. package/emitter.js +1 -1
  100. package/escape/index.js +11 -0
  101. package/escape.js +6 -0
  102. package/file/fileToURL.js +14 -21
  103. package/file/index.js +1 -1
  104. package/file/saveAs.js +28 -31
  105. package/file.js +1 -1
  106. package/function/index.js +50 -0
  107. package/function.js +48 -0
  108. package/idb/index.js +1 -1
  109. package/idb.js +1 -1
  110. package/index.js +1 -1
  111. package/invariant/index.js +1 -1
  112. package/invariant.js +1 -1
  113. package/is/index.js +196 -141
  114. package/is/lib/isAscii.js +9 -0
  115. package/is/lib/isBase64.js +13 -0
  116. package/is/lib/isChinese.js +19 -0
  117. package/is/lib/isDataURI.js +25 -0
  118. package/is/lib/isEmail.js +72 -0
  119. package/is/lib/isFQDN.js +27 -0
  120. package/is/lib/isFullWidth.js +10 -0
  121. package/is/lib/isHSL.js +11 -0
  122. package/is/lib/isHalfWidth.js +10 -0
  123. package/is/lib/isHash.js +23 -0
  124. package/is/lib/isHexColor.js +12 -0
  125. package/is/lib/isIMEI.js +20 -0
  126. package/is/lib/isIP.js +21 -0
  127. package/is/lib/isIPRange.js +25 -0
  128. package/is/lib/isIdentityCard.js +190 -0
  129. package/is/lib/isJWT.js +14 -0
  130. package/is/lib/isMACAddress.js +9 -0
  131. package/is/lib/isMD5.js +9 -0
  132. package/is/lib/isMimeType.js +9 -0
  133. package/is/lib/isMobilePhone.js +192 -0
  134. package/is/lib/isPort.js +7 -0
  135. package/is/lib/isRgbColor.js +18 -0
  136. package/is/lib/isSemVer.js +20 -0
  137. package/is/lib/isSlug.js +9 -0
  138. package/is/lib/isStrongPassword.js +48 -0
  139. package/is/lib/isURL.js +78 -0
  140. package/is/lib/isUUID.js +24 -0
  141. package/is/lib/isVariableWidth.js +10 -0
  142. package/is/lib/util/assertString.js +12 -0
  143. package/is.js +122 -66
  144. package/lunar/index.js +1 -1
  145. package/lunar/lib/Holiday.js +1 -1
  146. package/lunar/lib/HolidayUtil.js +1 -1
  147. package/lunar/lib/I18n.js +1 -1
  148. package/lunar/lib/JieQi.js +1 -1
  149. package/lunar/lib/Lunar.js +1 -1
  150. package/lunar/lib/LunarMonth.js +1 -1
  151. package/lunar/lib/LunarTime.js +1 -1
  152. package/lunar/lib/LunarUtil.js +1 -1
  153. package/lunar/lib/LunarYear.js +1 -1
  154. package/lunar/lib/ShouXingUtil.js +1 -1
  155. package/lunar/lib/Solar.js +1 -1
  156. package/lunar/lib/SolarHalfYear.js +1 -1
  157. package/lunar/lib/SolarMonth.js +1 -1
  158. package/lunar/lib/SolarSeason.js +1 -1
  159. package/lunar/lib/SolarUtil.js +1 -1
  160. package/lunar/lib/SolarWeek.js +1 -1
  161. package/lunar/lib/SolarYear.js +1 -1
  162. package/lunar/lib/index.js +1 -1
  163. package/lunar.js +1 -1
  164. package/math/index.js +1 -1
  165. package/math.js +1 -1
  166. package/md5/index.js +1 -1
  167. package/md5.js +1 -1
  168. package/mock/MockWebSocket.js +1 -1
  169. package/mock/MockXMLHttpRequest.js +1 -1
  170. package/mock/index.js +1 -1
  171. package/mock.js +1 -1
  172. package/normalize-wheel/ExecutionEnvironment.js +1 -1
  173. package/normalize-wheel/UserAgent_DEPRECATED.js +1 -1
  174. package/normalize-wheel/index.js +1 -1
  175. package/normalize-wheel/isEventSupported.js +1 -1
  176. package/normalizeWheel.js +1 -1
  177. package/number-to-chinese/index.js +1 -1
  178. package/numberToChinese.js +1 -1
  179. package/nzh/cn.js +1 -1
  180. package/nzh/hk.js +1 -1
  181. package/nzh/index.js +1 -1
  182. package/nzh/nzh.js +1 -1
  183. package/nzh/src/autoGet.js +1 -1
  184. package/nzh/src/index.js +1 -1
  185. package/nzh/src/langs/cn_b.js +1 -1
  186. package/nzh/src/langs/cn_s.js +1 -1
  187. package/nzh/src/langs/hk_b.js +1 -1
  188. package/nzh/src/langs/hk_s.js +1 -1
  189. package/nzh/src/utils.js +1 -1
  190. package/nzh.js +1 -1
  191. package/object-keys-sort/index.js +1 -1
  192. package/object-prototype-to-string-call/index.js +2 -2
  193. package/objectKeysSort.js +1 -1
  194. package/objectPrototypeToStringCall.js +1 -1
  195. package/package.json +1 -1
  196. package/pinyin/index.js +1 -1
  197. package/pinyin/simplified.js +1 -1
  198. package/pinyin/src/core.js +1 -1
  199. package/pinyin/src/simplified.js +6 -6
  200. package/pinyin/src/simplified_dict.js +5 -4
  201. package/pinyin/src/traditional.js +4 -4
  202. package/pinyin/src/traditional_dict.js +4 -3
  203. package/pinyin/traditional.js +1 -1
  204. package/pinyin.js +1 -1
  205. package/query-string/base.js +1 -1
  206. package/query-string/index.js +1 -1
  207. package/query-string/splitOnFirst.js +1 -1
  208. package/queryString.js +1 -1
  209. package/random/address.js +1 -1
  210. package/random/constellation.js +1 -1
  211. package/random/image.js +1 -1
  212. package/random/index.js +1 -1
  213. package/random/licensePlate.js +1 -1
  214. package/random/name.js +1 -1
  215. package/random/number.js +1 -1
  216. package/random/text.js +1 -1
  217. package/random/time.js +1 -1
  218. package/random/web.js +1 -1
  219. package/random.js +1 -1
  220. package/screenfull/index.js +1 -1
  221. package/screenfull.js +1 -1
  222. package/sleep/index.js +1 -1
  223. package/sleep.js +1 -1
  224. package/snapdom/index.js +1 -1
  225. package/snapdom/src/api/preCache.js +1 -1
  226. package/snapdom/src/api/snapdom.js +2 -2
  227. package/snapdom/src/core/cache.js +1 -1
  228. package/snapdom/src/core/capture.js +1 -1
  229. package/snapdom/src/core/clone.js +1 -1
  230. package/snapdom/src/core/context.js +1 -1
  231. package/snapdom/src/core/plugins.js +1 -1
  232. package/snapdom/src/core/prepare.js +1 -1
  233. package/snapdom/src/exporters/download.js +14 -9
  234. package/snapdom/src/exporters/toBlob.js +1 -1
  235. package/snapdom/src/exporters/toCanvas.js +1 -1
  236. package/snapdom/src/exporters/toImg.js +1 -1
  237. package/snapdom/src/modules/CSSVar.js +1 -1
  238. package/snapdom/src/modules/background.js +1 -1
  239. package/snapdom/src/modules/changeCSS.js +1 -1
  240. package/snapdom/src/modules/counter.js +1 -1
  241. package/snapdom/src/modules/fonts.js +1 -1
  242. package/snapdom/src/modules/iconFonts.js +1 -1
  243. package/snapdom/src/modules/images.js +1 -1
  244. package/snapdom/src/modules/lineClamp.js +1 -1
  245. package/snapdom/src/modules/pseudo.js +1 -1
  246. package/snapdom/src/modules/rasterize.js +1 -1
  247. package/snapdom/src/modules/snapFetch.js +1 -1
  248. package/snapdom/src/modules/styles.js +2 -2
  249. package/snapdom/src/modules/svgDefs.js +1 -1
  250. package/snapdom/src/utils/browser.js +1 -1
  251. package/snapdom/src/utils/capture.helpers.js +1 -1
  252. package/snapdom/src/utils/clone.helpers.js +1 -1
  253. package/snapdom/src/utils/css.js +1 -1
  254. package/snapdom/src/utils/helpers.js +1 -1
  255. package/snapdom/src/utils/image.js +1 -1
  256. package/snapdom/src/utils/prepare.helpers.js +1 -1
  257. package/snapdom/src/utils/transforms.helpers.js +1 -1
  258. package/snapdom.js +1 -1
  259. package/string/index.js +1 -1
  260. package/string.js +1 -1
  261. package/tinycolor/index.js +1 -1
  262. package/tinycolor/src/conversion.js +1 -1
  263. package/tinycolor/src/css-color-names.js +1 -1
  264. package/tinycolor/src/format-input.js +1 -1
  265. package/tinycolor/src/from-ratio.js +12 -11
  266. package/tinycolor/src/index.js +1 -1
  267. package/tinycolor/src/random.js +30 -29
  268. package/tinycolor/src/readability.js +1 -1
  269. package/tinycolor/src/to-ms-filter.js +1 -1
  270. package/tinycolor/src/utils.js +1 -1
  271. package/tinycolor.js +1 -1
  272. package/tree/index.js +54 -75
  273. package/tree/search/index.js +1 -1
  274. package/tree.js +9 -11
  275. package/tween/index.js +1 -1
  276. package/tween/src/easing.js +1 -1
  277. package/tween/src/tween.js +15 -14
  278. package/tween.js +1 -1
  279. package/types/clipboard-copy/index.d.ts +1 -1
  280. package/types/date/index.d.ts +3 -3
  281. package/types/dom-helpers/getElementCoordinates.d.ts +40 -0
  282. package/types/dom-helpers/index.d.ts +3 -1
  283. package/types/escape/index.d.ts +2 -0
  284. package/types/file/fileToURL.d.ts +1 -1
  285. package/types/function/index.d.ts +2 -0
  286. package/types/is/index.d.ts +28 -1
  287. package/types/is/lib/isAscii.d.ts +1 -0
  288. package/types/is/lib/isBase64.d.ts +1 -0
  289. package/types/is/lib/isChinese.d.ts +4 -0
  290. package/types/is/lib/isDataURI.d.ts +1 -0
  291. package/types/is/lib/isEmail.d.ts +1 -0
  292. package/types/is/lib/isFQDN.d.ts +1 -0
  293. package/types/is/lib/isFullWidth.d.ts +2 -0
  294. package/types/is/lib/isHSL.d.ts +1 -0
  295. package/types/is/lib/isHalfWidth.d.ts +2 -0
  296. package/types/is/lib/isHash.d.ts +1 -0
  297. package/types/is/lib/isHexColor.d.ts +1 -0
  298. package/types/is/lib/isIMEI.d.ts +1 -0
  299. package/types/is/lib/isIP.d.ts +3 -0
  300. package/types/is/lib/isIPRange.d.ts +1 -0
  301. package/types/is/lib/isIdentityCard.d.ts +1 -0
  302. package/types/is/lib/isJWT.d.ts +1 -0
  303. package/types/is/lib/isMACAddress.d.ts +1 -0
  304. package/types/is/lib/isMD5.d.ts +1 -0
  305. package/types/is/lib/isMimeType.d.ts +1 -0
  306. package/types/is/lib/isMobilePhone.d.ts +2 -0
  307. package/types/is/lib/isOctal.d.ts +1 -0
  308. package/types/is/lib/isPort.d.ts +1 -0
  309. package/types/is/lib/isRgbColor.d.ts +1 -0
  310. package/types/is/lib/isSemVer.d.ts +1 -0
  311. package/types/is/lib/isSlug.d.ts +1 -0
  312. package/types/is/lib/isStrongPassword.d.ts +1 -0
  313. package/types/is/lib/isURL.d.ts +1 -0
  314. package/types/is/lib/isUUID.d.ts +1 -0
  315. package/types/is/lib/isVariableWidth.d.ts +1 -0
  316. package/types/is/lib/util/assertString.d.ts +1 -0
  317. package/types/pinyin/es/main.d.ts +4 -0
  318. package/types/pinyin/es/traditional.d.ts +4 -0
  319. package/types/snapdom/src/api/snapdom.d.ts +1 -0
  320. package/types/tree/index.d.ts +3 -4
  321. package/types/validate/src/index.d.ts +23 -25
  322. package/types/validate/src/interface.d.ts +5 -3
  323. package/types/validate/src/locale/en-US.d.ts +12 -2
  324. package/types/validate/src/locale/index.d.ts +171 -0
  325. package/types/validate/src/locale/zh-CN.d.ts +12 -2
  326. package/types/validate/src/rules/base.d.ts +3 -1
  327. package/types/validate/src/rules/custom.d.ts +1 -1
  328. package/types/validate/src/rules/type.d.ts +10 -0
  329. package/ui-color/compareColorByRange.js +1 -1
  330. package/ui-color/index.js +8 -7
  331. package/uiColor.js +25 -24
  332. package/url-toolkit/index.js +1 -1
  333. package/url-toolkit/src/url-toolkit.js +1 -1
  334. package/urlToolkit.js +1 -1
  335. package/validate/index.js +23 -25
  336. package/validate/src/index.js +116 -73
  337. package/validate/src/locale/en-US.js +12 -2
  338. package/validate/src/locale/index.js +11 -0
  339. package/validate/src/locale/zh-CN.js +12 -2
  340. package/validate/src/rules/array.js +2 -2
  341. package/validate/src/rules/base.js +35 -31
  342. package/validate/src/rules/boolean.js +1 -1
  343. package/validate/src/rules/custom.js +2 -2
  344. package/validate/src/rules/number.js +1 -1
  345. package/validate/src/rules/object.js +1 -1
  346. package/validate/src/rules/string.js +6 -5
  347. package/validate/src/rules/type.js +84 -14
  348. package/validate.js +23 -25
  349. package/version/index.js +1 -1
  350. package/version.js +1 -1
  351. package/xlsx/index.d.ts +4 -8
  352. package/xlsx/index.js +1 -1
  353. package/xlsx/xlsx.js +2 -2
  354. package/xlsx.js +1 -1
  355. package/types/validate/src/message.d.ts +0 -2
  356. package/types/validate/src/utils.d.ts +0 -3
  357. package/validate/src/message.js +0 -5
  358. package/validate/src/utils.js +0 -8
@@ -0,0 +1,192 @@
1
+ /* 2025-12-19 15:35:18 */
2
+ import t from "./util/assertString.js";
3
+ const d = {
4
+ "am-AM": /^(\+?374|0)(33|4[134]|55|77|88|9[13-689])\d{6}$/,
5
+ "ar-AE": /^((\+?971)|0)?5[024568]\d{7}$/,
6
+ "ar-BH": /^(\+?973)?(3|6)\d{7}$/,
7
+ "ar-DZ": /^(\+?213|0)(5|6|7)\d{8}$/,
8
+ "ar-LB": /^(\+?961)?((3|81)\d{6}|7\d{7})$/,
9
+ "ar-EG": /^((\+?20)|0)?1[0125]\d{8}$/,
10
+ "ar-IQ": /^(\+?964|0)?7[0-9]\d{8}$/,
11
+ "ar-JO": /^(\+?962|0)?7[789]\d{7}$/,
12
+ "ar-KW": /^(\+?965)([569]\d{7}|41\d{6})$/,
13
+ "ar-LY": /^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,
14
+ "ar-MA": /^(?:(?:\+|00)212|0)[5-7]\d{8}$/,
15
+ "ar-OM": /^((\+|00)968)?([79][1-9])\d{6}$/,
16
+ "ar-PS": /^(\+?970|0)5[6|9](\d{7})$/,
17
+ "ar-SA": /^(!?(\+?966)|0)?5\d{8}$/,
18
+ "ar-SD": /^((\+?249)|0)?(9[012369]|1[012])\d{7}$/,
19
+ "ar-SY": /^(!?(\+?963)|0)?9\d{8}$/,
20
+ "ar-TN": /^(\+?216)?[2459]\d{7}$/,
21
+ "az-AZ": /^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/,
22
+ "ar-QA": /^(\+?974|0)?([3567]\d{7})$/,
23
+ "bs-BA": /^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,
24
+ "be-BY": /^(\+?375)?(24|25|29|33|44)\d{7}$/,
25
+ "bg-BG": /^(\+?359|0)?8[789]\d{7}$/,
26
+ "bn-BD": /^(\+?880|0)1[13456789][0-9]{8}$/,
27
+ "ca-AD": /^(\+376)?[346]\d{5}$/,
28
+ "cs-CZ": /^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,
29
+ "da-DK": /^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,
30
+ "de-DE": /^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,
31
+ "de-AT": /^(\+43|0)\d{1,4}\d{3,12}$/,
32
+ "de-CH": /^(\+41|0)([1-9])\d{1,9}$/,
33
+ "de-LU": /^(\+352)?((6\d1)\d{6})$/,
34
+ "dv-MV": /^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,
35
+ "el-GR": /^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,
36
+ "el-CY": /^(\+?357?)?(9(9|7|6|5|4)\d{6})$/,
37
+ "en-AI": /^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/,
38
+ "en-AU": /^(\+?61|0)4\d{8}$/,
39
+ "en-AG": /^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,
40
+ "en-BM": /^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,
41
+ "en-BS": /^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,
42
+ "en-GB": /^(\+?44|0)7[1-9]\d{8}$/,
43
+ "en-GG": /^(\+?44|0)1481\d{6}$/,
44
+ "en-GH": /^(\+233|0)(20|50|24|54|27|57|26|56|23|53|28|55|59)\d{7}$/,
45
+ "en-GY": /^(\+592|0)6\d{6}$/,
46
+ "en-HK": /^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,
47
+ "en-MO": /^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,
48
+ "en-IE": /^(\+?353|0)8[356789]\d{7}$/,
49
+ "en-IN": /^(\+?91|0)?[6789]\d{9}$/,
50
+ "en-JM": /^(\+?876)?\d{7}$/,
51
+ "en-KE": /^(\+?254|0)(7|1)\d{8}$/,
52
+ "fr-CF": /^(\+?236| ?)(70|75|77|72|21|22)\d{6}$/,
53
+ "en-SS": /^(\+?211|0)(9[1257])\d{7}$/,
54
+ "en-KI": /^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,
55
+ "en-KN": /^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/,
56
+ "en-LS": /^(\+?266)(22|28|57|58|59|27|52)\d{6}$/,
57
+ "en-MT": /^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,
58
+ "en-MU": /^(\+?230|0)?\d{8}$/,
59
+ "en-MW": /^(\+?265|0)(((77|88|31|99|98|21)\d{7})|(((111)|1)\d{6})|(32000\d{4}))$/,
60
+ "en-NA": /^(\+?264|0)(6|8)\d{7}$/,
61
+ "en-NG": /^(\+?234|0)?[789]\d{9}$/,
62
+ "en-NZ": /^(\+?64|0)[28]\d{7,9}$/,
63
+ "en-PG": /^(\+?675|0)?(7\d|8[18])\d{6}$/,
64
+ "en-PK": /^((00|\+)?92|0)3[0-6]\d{8}$/,
65
+ "en-PH": /^(09|\+639)\d{9}$/,
66
+ "en-RW": /^(\+?250|0)?[7]\d{8}$/,
67
+ "en-SG": /^(\+65)?[3689]\d{7}$/,
68
+ "en-SL": /^(\+?232|0)\d{8}$/,
69
+ "en-TZ": /^(\+?255|0)?[67]\d{8}$/,
70
+ "en-UG": /^(\+?256|0)?[7]\d{8}$/,
71
+ "en-US": /^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,
72
+ "en-ZA": /^(\+?27|0)\d{9}$/,
73
+ "en-ZM": /^(\+?26)?0[79][567]\d{7}$/,
74
+ "en-ZW": /^(\+263)[0-9]{9}$/,
75
+ "en-BW": /^(\+?267)?(7[1-8]{1})\d{6}$/,
76
+ "es-AR": /^\+?549(11|[2368]\d)\d{8}$/,
77
+ "es-BO": /^(\+?591)?(6|7)\d{7}$/,
78
+ "es-CO": /^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,
79
+ "es-CL": /^(\+?56|0)[2-9]\d{1}\d{7}$/,
80
+ "es-CR": /^(\+506)?[2-8]\d{7}$/,
81
+ "es-CU": /^(\+53|0053)?5\d{7}$/,
82
+ "es-DO": /^(\+?1)?8[024]9\d{7}$/,
83
+ "es-HN": /^(\+?504)?[9|8|3|2]\d{7}$/,
84
+ "es-EC": /^(\+?593|0)([2-7]|9[2-9])\d{7}$/,
85
+ "es-ES": /^(\+?34)?[6|7]\d{8}$/,
86
+ "es-GT": /^(\+?502)?[2|6|7]\d{7}$/,
87
+ "es-PE": /^(\+?51)?9\d{8}$/,
88
+ "es-MX": /^(\+?52)?(1|01)?\d{10,11}$/,
89
+ "es-NI": /^(\+?505)\d{7,8}$/,
90
+ "es-PA": /^(\+?507)\d{7,8}$/,
91
+ "es-PY": /^(\+?595|0)9[9876]\d{7}$/,
92
+ "es-SV": /^(\+?503)?[67]\d{7}$/,
93
+ "es-UY": /^(\+598|0)9[1-9][\d]{6}$/,
94
+ "es-VE": /^(\+?58)?(2|4)\d{9}$/,
95
+ "et-EE": /^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,
96
+ "fa-IR": /^(\+?98[-\s]?|0)9[0-39]\d[-\s]?\d{3}[-\s]?\d{4}$/,
97
+ "fi-FI": /^(\+?358|0)\s?(4[0-6]|50)\s?(\d\s?){4,8}$/,
98
+ "fj-FJ": /^(\+?679)?\s?\d{3}\s?\d{4}$/,
99
+ "fo-FO": /^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,
100
+ "fr-BF": /^(\+226|0)[67]\d{7}$/,
101
+ "fr-BJ": /^(\+229)\d{8}$/,
102
+ "fr-CD": /^(\+?243|0)?(8|9)\d{8}$/,
103
+ "fr-CM": /^(\+?237)6[0-9]{8}$/,
104
+ "fr-FR": /^(\+?33|0)[67]\d{8}$/,
105
+ "fr-GF": /^(\+?594|0|00594)[67]\d{8}$/,
106
+ "fr-GP": /^(\+?590|0|00590)[67]\d{8}$/,
107
+ "fr-MQ": /^(\+?596|0|00596)[67]\d{8}$/,
108
+ "fr-PF": /^(\+?689)?8[789]\d{6}$/,
109
+ "fr-RE": /^(\+?262|0|00262)[67]\d{8}$/,
110
+ "fr-WF": /^(\+681)?\d{6}$/,
111
+ "he-IL": /^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,
112
+ "hu-HU": /^(\+?36|06)(20|30|31|50|70)\d{7}$/,
113
+ "id-ID": /^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,
114
+ "ir-IR": /^(\+98|0)?9\d{9}$/,
115
+ "it-IT": /^(\+?39)?\s?3\d{2} ?\d{6,7}$/,
116
+ "it-SM": /^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,
117
+ "ja-JP": /^(\+81[ -]?(\(0\))?|0)[6789]0[ -]?\d{4}[ -]?\d{4}$/,
118
+ "ka-GE": /^(\+?995)?(79\d{7}|5\d{8})$/,
119
+ "kk-KZ": /^(\+?7|8)?7\d{9}$/,
120
+ "kl-GL": /^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,
121
+ "ko-KR": /^((\+?82)[ -]?)?0?1([0|1|6|7|8|9]{1})[ -]?\d{3,4}[ -]?\d{4}$/,
122
+ "ky-KG": /^(\+996\s?)?(22[0-9]|50[0-9]|55[0-9]|70[0-9]|75[0-9]|77[0-9]|880|990|995|996|997|998)\s?\d{3}\s?\d{3}$/,
123
+ "lt-LT": /^(\+370|8)\d{8}$/,
124
+ "lv-LV": /^(\+?371)2\d{7}$/,
125
+ "mg-MG": /^((\+?261|0)(2|3)\d)?\d{7}$/,
126
+ "mn-MN": /^(\+|00|011)?976(77|81|88|91|94|95|96|99)\d{6}$/,
127
+ "my-MM": /^(\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,
128
+ "ms-MY": /^(\+?60|0)1(([0145](-|\s)?\d{7,8})|([236-9](-|\s)?\d{7}))$/,
129
+ "mz-MZ": /^(\+?258)?8[234567]\d{7}$/,
130
+ "nb-NO": /^(\+?47)?[49]\d{7}$/,
131
+ "ne-NP": /^(\+?977)?9[78]\d{8}$/,
132
+ "nl-BE": /^(\+?32|0)4\d{8}$/,
133
+ "nl-NL": /^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,
134
+ "nl-AW": /^(\+)?297(56|59|64|73|74|99)\d{5}$/,
135
+ "nn-NO": /^(\+?47)?[49]\d{7}$/,
136
+ "pl-PL": /^(\+?48)? ?([5-8]\d|45) ?\d{3} ?\d{2} ?\d{2}$/,
137
+ "pt-BR": /^((\+?55 ?[1-9]{2} ?)|(\+?55 ?\([1-9]{2}\) ?)|(0[1-9]{2} ?)|(\([1-9]{2}\) ?)|([1-9]{2} ?))((\d{4}-?\d{4})|(9[1-9]{1}\d{3}-?\d{4}))$/,
138
+ "pt-PT": /^(\+?351)?9[1236]\d{7}$/,
139
+ "pt-AO": /^(\+?244)?9\d{8}$/,
140
+ "ro-MD": /^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\d{6}$/,
141
+ "ro-RO": /^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,
142
+ "ru-RU": /^(\+?7|8)?9\d{9}$/,
143
+ "si-LK": /^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,
144
+ "sl-SI": /^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,
145
+ "sk-SK": /^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,
146
+ "so-SO": /^(\+?252|0)((6[0-9])\d{7}|(7[1-9])\d{7})$/,
147
+ "sq-AL": /^(\+355|0)6[2-9]\d{7}$/,
148
+ "sr-RS": /^(\+3816|06)[- \d]{5,9}$/,
149
+ "sv-SE": /^(\+?46|0)[\s-]?7[\s-]?[02369]([\s-]?\d){7}$/,
150
+ "tg-TJ": /^(\+?992)?[5][5]\d{7}$/,
151
+ "th-TH": /^(\+66|66|0)\d{9}$/,
152
+ "tr-TR": /^(\+?90|0)?5\d{9}$/,
153
+ "tk-TM": /^(\+993|993|8)\d{8}$/,
154
+ "uk-UA": /^(\+?38)?0(50|6[36-8]|7[357]|9[1-9])\d{7}$/,
155
+ "uz-UZ": /^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,
156
+ "vi-VN": /^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,
157
+ "zh-CN": /^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,
158
+ "zh-TW": /^(\+?886-?|0)?9\d{8}$/,
159
+ "dz-BT": /^(\+?975|0)?(17|16|77|02)\d{6}$/,
160
+ "ar-YE": /^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/,
161
+ "ar-EH": /^(\+?212|0)[\s-]?(5288|5289)[\s-]?\d{5}$/,
162
+ "fa-AF": /^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/,
163
+ "mk-MK": /^(\+?389|0)?((?:2[2-9]\d{6}|(?:3[1-4]|4[2-8])\d{6}|500\d{5}|5[2-9]\d{6}|7[0-9][2-9]\d{5}|8[1-9]\d{6}|800\d{5}|8009\d{4}))$/
164
+ };
165
+ d["en-CA"] = d["en-US"];
166
+ d["fr-CA"] = d["en-CA"];
167
+ d["fr-BE"] = d["nl-BE"];
168
+ d["zh-HK"] = d["en-HK"];
169
+ d["zh-MO"] = d["en-MO"];
170
+ d["ga-IE"] = d["en-IE"];
171
+ d["fr-CH"] = d["de-CH"];
172
+ d["it-CH"] = d["fr-CH"];
173
+ function f(e, $, n) {
174
+ if (t(e), n && n.strictMode && !e.startsWith("+"))
175
+ return !1;
176
+ if (Array.isArray($))
177
+ return $.some((s) => !!(Object.prototype.hasOwnProperty.call(d, s) && d[s].test(e)));
178
+ if ($ in d)
179
+ return d[$].test(e);
180
+ if (!$ || $ === "any") {
181
+ for (const s in d)
182
+ if (Object.prototype.hasOwnProperty.call(d, s) && d[s].test(e))
183
+ return !0;
184
+ return !1;
185
+ }
186
+ throw new Error(`Invalid locale '${$}'`);
187
+ }
188
+ const M = Object.keys(d);
189
+ export {
190
+ f as default,
191
+ M as locales
192
+ };
@@ -0,0 +1,7 @@
1
+ /* 2025-12-19 15:35:18 */
2
+ function n(e) {
3
+ return Number.isInteger(e) && e >= 0 && e <= 65535;
4
+ }
5
+ export {
6
+ n as default
7
+ };
@@ -0,0 +1,18 @@
1
+ /* 2025-12-19 15:35:18 */
2
+ import s from "lodash/isObject";
3
+ import a from "lodash/isUndefined";
4
+ import o from "./util/assertString.js";
5
+ const n = /^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/, c = /^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d\d?|1(\.0)?|0(\.0)?)\)$/, g = /^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/, i = /^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d\d?|1(\.0)?|0(\.0)?)\)$/, u = /^rgba?/;
6
+ function m(e, t) {
7
+ o(e);
8
+ let l = !1, r = !0;
9
+ if (s(t) ? (l = a(t.allowSpaces) ? l : t.allowSpaces, r = a(t.includePercentValues) ? r : t.includePercentValues) : arguments.length >= 2 && (r = arguments[1]), l) {
10
+ if (!u.test(e))
11
+ return !1;
12
+ e = e.replace(/\s/g, "");
13
+ }
14
+ return r ? n.test(e) || c.test(e) || g.test(e) || i.test(e) : n.test(e) || c.test(e);
15
+ }
16
+ export {
17
+ m as default
18
+ };
@@ -0,0 +1,20 @@
1
+ /* 2025-12-19 15:35:18 */
2
+ import i from "./util/assertString.js";
3
+ const r = a(
4
+ [
5
+ "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)",
6
+ "(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))",
7
+ "?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"
8
+ ],
9
+ "i"
10
+ );
11
+ function a(e, n) {
12
+ const t = e.join("");
13
+ return new RegExp(t, n);
14
+ }
15
+ function s(e) {
16
+ return i(e), r.test(e);
17
+ }
18
+ export {
19
+ s as default
20
+ };
@@ -0,0 +1,9 @@
1
+ /* 2025-12-19 15:35:18 */
2
+ import s from "./util/assertString.js";
3
+ const e = /^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;
4
+ function a(t) {
5
+ return s(t), e.test(t);
6
+ }
7
+ export {
8
+ a as default
9
+ };
@@ -0,0 +1,48 @@
1
+ /* 2025-12-19 15:35:18 */
2
+ import r from "lodash/defaults";
3
+ import u from "./util/assertString.js";
4
+ const s = /^[A-Z]$/, i = /^[a-z]$/, m = /^[0-9]$/, l = /^[-#!$@£%^&*()_+|~=`{}[\]:";'<>?,./\\ ]$/, C = {
5
+ minLength: 8,
6
+ minLowercase: 1,
7
+ minUppercase: 1,
8
+ minNumbers: 1,
9
+ minSymbols: 1,
10
+ returnScore: !1,
11
+ pointsPerUnique: 1,
12
+ pointsPerRepeat: 0.5,
13
+ pointsForContainingLower: 10,
14
+ pointsForContainingUpper: 10,
15
+ pointsForContainingNumber: 10,
16
+ pointsForContainingSymbol: 10
17
+ };
18
+ function a(t) {
19
+ const e = {};
20
+ return Array.from(t).forEach((n) => {
21
+ e[n] ? e[n] += 1 : e[n] = 1;
22
+ }), e;
23
+ }
24
+ function p(t) {
25
+ const e = a(t), n = {
26
+ length: t.length,
27
+ uniqueChars: Object.keys(e).length,
28
+ uppercaseCount: 0,
29
+ lowercaseCount: 0,
30
+ numberCount: 0,
31
+ symbolCount: 0
32
+ };
33
+ return Object.keys(e).forEach((o) => {
34
+ s.test(o) ? n.uppercaseCount += e[o] : i.test(o) ? n.lowercaseCount += e[o] : m.test(o) ? n.numberCount += e[o] : l.test(o) && (n.symbolCount += e[o]);
35
+ }), n;
36
+ }
37
+ function c(t, e) {
38
+ let n = 0;
39
+ return n += t.uniqueChars * e.pointsPerUnique, n += (t.length - t.uniqueChars) * e.pointsPerRepeat, t.lowercaseCount > 0 && (n += e.pointsForContainingLower), t.uppercaseCount > 0 && (n += e.pointsForContainingUpper), t.numberCount > 0 && (n += e.pointsForContainingNumber), t.symbolCount > 0 && (n += e.pointsForContainingSymbol), n;
40
+ }
41
+ function g(t, e = null) {
42
+ u(t);
43
+ const n = p(t);
44
+ return e = r(e || {}, C), e.returnScore ? c(n, e) : n.length >= e.minLength && n.lowercaseCount >= e.minLowercase && n.uppercaseCount >= e.minUppercase && n.numberCount >= e.minNumbers && n.symbolCount >= e.minSymbols;
45
+ }
46
+ export {
47
+ g as default
48
+ };
@@ -0,0 +1,78 @@
1
+ /* 2025-12-19 15:35:18 */
2
+ import k from "lodash/defaults";
3
+ import z from "./isFQDN.js";
4
+ import v from "./isIP.js";
5
+ import O from "./util/assertString.js";
6
+ const $ = {
7
+ protocols: ["http", "https", "ftp"],
8
+ require_tld: !0,
9
+ require_protocol: !1,
10
+ require_host: !0,
11
+ require_port: !1,
12
+ require_valid_protocol: !0,
13
+ allow_underscores: !1,
14
+ allow_trailing_dot: !1,
15
+ allow_protocol_relative_urls: !1,
16
+ allow_fragments: !0,
17
+ allow_query_components: !0,
18
+ validate_length: !0,
19
+ max_allowed_length: 2084
20
+ }, j = /^\[([^\]]+)\](?::([0-9]+))?$/;
21
+ function U(e, t) {
22
+ if (O(e), !e || /[\s<>]/.test(e) || e.indexOf("mailto:") === 0 || (t = k(t, $), t.validate_length && e.length > t.max_allowed_length) || !t.allow_fragments && e.includes("#") || !t.allow_query_components && (e.includes("?") || e.includes("&")))
23
+ return !1;
24
+ let d, f, r, _, c, l, s, o;
25
+ s = e.split("#"), e = s.shift(), s = e.split("?"), e = s.shift();
26
+ const n = e.match(/^([a-z][a-z0-9+\-.]*):/i);
27
+ let g = !1;
28
+ const u = (i) => (g = !0, d = i.toLowerCase(), t.require_valid_protocol && !t.protocols.includes(d) ? !1 : e.substring(n[0].length));
29
+ if (n) {
30
+ const i = n[1], a = e.substring(n[0].length);
31
+ if (a.slice(0, 2) === "//") {
32
+ if (e = u(i), e === !1)
33
+ return !1;
34
+ } else {
35
+ const m = a.indexOf("/"), w = m === -1 ? a : a.substring(0, m), q = w.indexOf("@");
36
+ if (q !== -1) {
37
+ const p = w.substring(0, q), x = /^[a-zA-Z0-9\-_.%:]*$/.test(p), b = /%[0-9a-fA-F]{2}/.test(p);
38
+ if (x && !b) {
39
+ if (t.require_protocol)
40
+ return !1;
41
+ } else if (e = u(i), e === !1)
42
+ return !1;
43
+ } else if (/^[0-9]/.test(a)) {
44
+ if (t.require_protocol)
45
+ return !1;
46
+ } else if (e = u(i), e === !1)
47
+ return !1;
48
+ }
49
+ } else if (t.require_protocol)
50
+ return !1;
51
+ if (e.slice(0, 2) === "//") {
52
+ if (!g && !t.allow_protocol_relative_urls)
53
+ return !1;
54
+ e = e.slice(2);
55
+ }
56
+ if (e === "")
57
+ return !1;
58
+ if (s = e.split("/"), e = s.shift(), e === "" && !t.require_host)
59
+ return !0;
60
+ if (s = e.split("@"), s.length > 1) {
61
+ if (t.disallow_auth || s[0] === "" || (f = s.shift(), f.includes(":") && f.split(":").length > 2))
62
+ return !1;
63
+ const [i, a] = f.split(":");
64
+ if (i === "" && a === "")
65
+ return !1;
66
+ }
67
+ _ = s.join("@"), l = null, o = null;
68
+ const h = _.match(j);
69
+ if (h ? (r = "", o = h[1], l = h[2] || null) : (s = _.split(":"), r = s.shift(), s.length && (l = s.join(":"))), l !== null && l.length > 0) {
70
+ if (c = parseInt(l, 10), !/^[0-9]+$/.test(l) || c <= 0 || c > 65535)
71
+ return !1;
72
+ } else if (t.require_port)
73
+ return !1;
74
+ return r === "" && !t.require_host ? !0 : !v(r) && !z(r, t) && (!o || !v(o, 6)) ? !1 : (r = r || o, !0);
75
+ }
76
+ export {
77
+ U as default
78
+ };
@@ -0,0 +1,24 @@
1
+ /* 2025-12-19 15:35:18 */
2
+ import i from "lodash/isNil";
3
+ import a from "./util/assertString.js";
4
+ const F = {
5
+ 1: /^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
6
+ 2: /^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
7
+ 3: /^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
8
+ 4: /^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
9
+ 5: /^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
10
+ 6: /^[0-9A-F]{8}-[0-9A-F]{4}-6[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
11
+ 7: /^[0-9A-F]{8}-[0-9A-F]{4}-7[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
12
+ 8: /^[0-9A-F]{8}-[0-9A-F]{4}-8[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
13
+ nil: /^00000000-0000-0000-0000-000000000000$/i,
14
+ max: /^ffffffff-ffff-ffff-ffff-ffffffffffff$/i,
15
+ loose: /^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,
16
+ // From https://github.com/uuidjs/uuid/blob/main/src/regex.js
17
+ all: /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i
18
+ };
19
+ function l(A, f) {
20
+ return a(A), i(f) && (f = "all"), f in F ? F[f].test(A) : !1;
21
+ }
22
+ export {
23
+ l as default
24
+ };
@@ -0,0 +1,10 @@
1
+ /* 2025-12-19 15:35:18 */
2
+ import { fullWidth as i } from "./isFullWidth.js";
3
+ import { halfWidth as r } from "./isHalfWidth.js";
4
+ import o from "./util/assertString.js";
5
+ function m(t) {
6
+ return o(t), i.test(t) && r.test(t);
7
+ }
8
+ export {
9
+ m as default
10
+ };
@@ -0,0 +1,12 @@
1
+ /* 2025-12-19 15:35:18 */
2
+ import t from "lodash/isNil";
3
+ const o = "预期为字符串,但收到";
4
+ function n(r) {
5
+ if (t(r))
6
+ throw new TypeError(`${o}${r}`);
7
+ if (r.constructor.name !== "String")
8
+ throw new TypeError(`${o}${r.constructor.name}`);
9
+ }
10
+ export {
11
+ n as default
12
+ };
package/is.js CHANGED
@@ -1,95 +1,151 @@
1
- /* 2025-11-27 12:11:03 */
2
- import { default as a } from "lodash/isArguments.js";
1
+ /* 2025-12-19 15:35:18 */
2
+ import { default as t } from "lodash/isArguments.js";
3
3
  import { default as o } from "lodash/isArray.js";
4
4
  import { default as i } from "lodash/isArrayBuffer.js";
5
- import { default as m } from "lodash/isArrayLike.js";
6
- import { default as p } from "lodash/isArrayLikeObject.js";
5
+ import { default as d } from "lodash/isArrayLike.js";
6
+ import { default as u } from "lodash/isArrayLikeObject.js";
7
7
  import { default as x } from "lodash/isBoolean.js";
8
8
  import { default as y } from "lodash/isBuffer.js";
9
- import { default as b } from "lodash/isDate.js";
9
+ import { default as h } from "lodash/isDate.js";
10
10
  import { default as S } from "lodash/isElement.js";
11
- import { default as g } from "lodash/isEmpty.js";
12
- import { default as A } from "lodash/isEqual.js";
13
- import { default as j } from "lodash/isEqualWith.js";
14
- import { default as B } from "lodash/isError.js";
15
- import { default as L } from "lodash/isFinite.js";
16
- import { default as F } from "lodash/isFunction.js";
17
- import { default as q } from "lodash/isInteger.js";
18
- import { default as C } from "lodash/isLength.js";
19
- import { default as J } from "lodash/isMap.js";
20
- import { default as R } from "lodash/isMatch.js";
21
- import { default as U } from "lodash/isMatchWith.js";
22
- import { default as w } from "lodash/isNaN.js";
23
- import { default as z } from "lodash/isNative.js";
24
- import { default as H } from "lodash/isNil.js";
11
+ import { default as c } from "lodash/isEmpty.js";
12
+ import { default as M } from "lodash/isEqual.js";
13
+ import { default as N } from "lodash/isEqualWith.js";
14
+ import { default as C } from "lodash/isError.js";
15
+ import { default as P } from "lodash/isFinite.js";
16
+ import { default as B } from "lodash/isFunction.js";
17
+ import { default as U } from "lodash/isInteger.js";
18
+ import { default as k } from "lodash/isLength.js";
19
+ import { default as D } from "lodash/isMap.js";
20
+ import { default as H } from "lodash/isMatch.js";
21
+ import { default as J } from "lodash/isMatchWith.js";
22
+ import { default as v } from "lodash/isNaN.js";
23
+ import { default as _ } from "lodash/isNative.js";
24
+ import { default as G } from "lodash/isNil.js";
25
25
  import { default as Q } from "lodash/isNull.js";
26
26
  import { default as Y } from "lodash/isNumber.js";
27
27
  import { default as $ } from "lodash/isObject.js";
28
- import { default as te } from "lodash/isObjectLike.js";
29
- import { default as ae } from "lodash/isPlainObject.js";
28
+ import { default as ae } from "lodash/isObjectLike.js";
29
+ import { default as te } from "lodash/isPlainObject.js";
30
30
  import { default as oe } from "lodash/isRegExp.js";
31
31
  import { default as ie } from "lodash/isSafeInteger.js";
32
- import { default as me } from "lodash/isSet.js";
33
- import { default as pe } from "lodash/isString.js";
32
+ import { default as de } from "lodash/isSet.js";
33
+ import { default as ue } from "lodash/isString.js";
34
34
  import { default as xe } from "lodash/isSymbol.js";
35
35
  import { default as ye } from "lodash/isTypedArray.js";
36
- import { default as be } from "lodash/isUndefined.js";
36
+ import { default as he } from "lodash/isUndefined.js";
37
37
  import { default as Se } from "lodash/isWeakMap.js";
38
- import { default as ge } from "lodash/isWeakSet.js";
38
+ import { default as ce } from "lodash/isWeakSet.js";
39
+ import { default as Me } from "./is/lib/isAscii.js";
40
+ import { default as Ne } from "./is/lib/isBase64.js";
41
+ import { isAllChinese as Ce, default as Oe } from "./is/lib/isChinese.js";
42
+ import { default as Le } from "./is/lib/isDataURI.js";
43
+ import { default as Re } from "./is/lib/isEmail.js";
44
+ import { default as je } from "./is/lib/isFullWidth.js";
45
+ import { default as Ve } from "./is/lib/isHalfWidth.js";
46
+ import { default as Fe } from "./is/lib/isHash.js";
47
+ import { default as Te } from "./is/lib/isHexColor.js";
48
+ import { default as qe } from "./is/lib/isHSL.js";
49
+ import { default as we } from "./is/lib/isIdentityCard.js";
50
+ import { default as ze } from "./is/lib/isIMEI.js";
51
+ import { default as Ke } from "./is/lib/isIP.js";
52
+ import { default as Xe } from "./is/lib/isIPRange.js";
53
+ import { default as Ze } from "./is/lib/isJWT.js";
54
+ import { default as ea } from "./is/lib/isMACAddress.js";
55
+ import { default as ra } from "./is/lib/isMD5.js";
56
+ import { default as sa } from "./is/lib/isMimeType.js";
57
+ import { default as fa, locales as ia } from "./is/lib/isMobilePhone.js";
58
+ import { default as da } from "./is/lib/isPort.js";
59
+ import { default as ua } from "./is/lib/isRgbColor.js";
60
+ import { default as xa } from "./is/lib/isSemVer.js";
61
+ import { default as ya } from "./is/lib/isSlug.js";
62
+ import { default as ha } from "./is/lib/isStrongPassword.js";
63
+ import { default as Sa } from "./is/lib/isURL.js";
64
+ import { default as ca } from "./is/lib/isUUID.js";
65
+ import { default as Ma } from "./is/lib/isVariableWidth.js";
39
66
  import "./object-prototype-to-string-call/index.js";
40
- import { is32Bit as Ae, isBlob as he, isColorValue as je, isColorValue_ as ke, isEmptyArray as Be, isEmptyObject as We, isEmptyValue as Le, isEventTarget as Me, isExist as Fe, isFile as Ve, isJSON as qe, isJSON_String as ve, isNullOrUndefined as Ce, isPromise as Ie, isReadableStream as Je, isWindow as Pe } from "./is/index.js";
67
+ import { is32Bit as Na, isBlob as Wa, isColorValue as Ca, isColorValue_ as Oa, isEmptyArray as Pa, isEmptyObject as La, isEmptyValue as Ba, isEventTarget as Ra, isExist as Ua, isFile as ja, isJSON as ka, isJSON_String as Va, isNullOrUndefined as Da, isPromise as Fa, isReadableStream as Ha, isWindow as Ta } from "./is/index.js";
41
68
  export {
42
- Ae as is32Bit,
43
- a as isArguments,
69
+ Na as is32Bit,
70
+ Ce as isAllChinese,
71
+ t as isArguments,
44
72
  o as isArray,
45
73
  i as isArrayBuffer,
46
- m as isArrayLike,
47
- p as isArrayLikeObject,
48
- he as isBlob,
74
+ d as isArrayLike,
75
+ u as isArrayLikeObject,
76
+ Me as isAscii,
77
+ Ne as isBase64,
78
+ Wa as isBlob,
49
79
  x as isBoolean,
50
80
  y as isBuffer,
51
- je as isColorValue,
52
- ke as isColorValue_,
53
- b as isDate,
81
+ Oe as isChinese,
82
+ Ca as isColorValue,
83
+ Oa as isColorValue_,
84
+ Le as isDataURI,
85
+ h as isDate,
54
86
  S as isElement,
55
- g as isEmpty,
56
- Be as isEmptyArray,
57
- We as isEmptyObject,
58
- Le as isEmptyValue,
59
- A as isEqual,
60
- j as isEqualWith,
61
- B as isError,
62
- Me as isEventTarget,
63
- Fe as isExist,
64
- Ve as isFile,
65
- L as isFinite,
66
- F as isFunction,
67
- q as isInteger,
68
- qe as isJSON,
69
- ve as isJSON_String,
70
- C as isLength,
71
- J as isMap,
72
- R as isMatch,
73
- U as isMatchWith,
74
- w as isNaN,
75
- z as isNative,
76
- H as isNil,
87
+ Re as isEmail,
88
+ c as isEmpty,
89
+ Pa as isEmptyArray,
90
+ La as isEmptyObject,
91
+ Ba as isEmptyValue,
92
+ M as isEqual,
93
+ N as isEqualWith,
94
+ C as isError,
95
+ Ra as isEventTarget,
96
+ Ua as isExist,
97
+ ja as isFile,
98
+ P as isFinite,
99
+ je as isFullWidth,
100
+ B as isFunction,
101
+ qe as isHSL,
102
+ Ve as isHalfWidth,
103
+ Fe as isHash,
104
+ Te as isHexColor,
105
+ ze as isIMEI,
106
+ Ke as isIP,
107
+ Xe as isIPRange,
108
+ we as isIdentityCard,
109
+ U as isInteger,
110
+ ka as isJSON,
111
+ Va as isJSON_String,
112
+ Ze as isJWT,
113
+ k as isLength,
114
+ ea as isMACAddress,
115
+ ra as isMD5,
116
+ D as isMap,
117
+ H as isMatch,
118
+ J as isMatchWith,
119
+ sa as isMimeType,
120
+ fa as isMobilePhone,
121
+ ia as isMobilePhoneLocales,
122
+ v as isNaN,
123
+ _ as isNative,
124
+ G as isNil,
77
125
  Q as isNull,
78
- Ce as isNullOrUndefined,
126
+ Da as isNullOrUndefined,
79
127
  Y as isNumber,
80
128
  $ as isObject,
81
- te as isObjectLike,
82
- ae as isPlainObject,
83
- Ie as isPromise,
84
- Je as isReadableStream,
129
+ ae as isObjectLike,
130
+ te as isPlainObject,
131
+ da as isPort,
132
+ Fa as isPromise,
133
+ Ha as isReadableStream,
85
134
  oe as isRegExp,
135
+ ua as isRgbColor,
86
136
  ie as isSafeInteger,
87
- me as isSet,
88
- pe as isString,
137
+ xa as isSemVer,
138
+ de as isSet,
139
+ ya as isSlug,
140
+ ue as isString,
141
+ ha as isStrongPassword,
89
142
  xe as isSymbol,
90
143
  ye as isTypedArray,
91
- be as isUndefined,
144
+ Sa as isURL,
145
+ ca as isUUID,
146
+ he as isUndefined,
147
+ Ma as isVariableWidth,
92
148
  Se as isWeakMap,
93
- ge as isWeakSet,
94
- Pe as isWindow
149
+ ce as isWeakSet,
150
+ Ta as isWindow
95
151
  };
package/lunar/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-27 12:11:03 */
1
+ /* 2025-12-19 15:35:18 */
2
2
  import * as r from "./lib/index.js";
3
3
  import { Holiday as t } from "./lib/Holiday.js";
4
4
  import { HolidayUtil as f } from "./lib/HolidayUtil.js";