@unicom-cloud/utils 0.1.32 → 0.1.33

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 (353) 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 +1 -1
  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 +1 -1
  103. package/file/index.js +1 -1
  104. package/file/saveAs.js +1 -1
  105. package/file.js +1 -1
  106. package/idb/index.js +1 -1
  107. package/idb.js +1 -1
  108. package/index.js +1 -1
  109. package/invariant/index.js +1 -1
  110. package/invariant.js +1 -1
  111. package/is/index.js +196 -141
  112. package/is/lib/isAscii.js +9 -0
  113. package/is/lib/isBase64.js +13 -0
  114. package/is/lib/isChinese.js +19 -0
  115. package/is/lib/isDataURI.js +25 -0
  116. package/is/lib/isEmail.js +72 -0
  117. package/is/lib/isFQDN.js +21 -0
  118. package/is/lib/isFullWidth.js +10 -0
  119. package/is/lib/isHSL.js +11 -0
  120. package/is/lib/isHalfWidth.js +10 -0
  121. package/is/lib/isHash.js +23 -0
  122. package/is/lib/isHexColor.js +12 -0
  123. package/is/lib/isIMEI.js +19 -0
  124. package/is/lib/isIP.js +21 -0
  125. package/is/lib/isIPRange.js +25 -0
  126. package/is/lib/isIdentityCard.js +190 -0
  127. package/is/lib/isJWT.js +14 -0
  128. package/is/lib/isMACAddress.js +9 -0
  129. package/is/lib/isMD5.js +9 -0
  130. package/is/lib/isMimeType.js +9 -0
  131. package/is/lib/isMobilePhone.js +192 -0
  132. package/is/lib/isPort.js +7 -0
  133. package/is/lib/isRgbColor.js +18 -0
  134. package/is/lib/isSemVer.js +20 -0
  135. package/is/lib/isSlug.js +9 -0
  136. package/is/lib/isStrongPassword.js +48 -0
  137. package/is/lib/isURL.js +78 -0
  138. package/is/lib/isUUID.js +24 -0
  139. package/is/lib/isVariableWidth.js +10 -0
  140. package/is/lib/util/assertString.js +12 -0
  141. package/is.js +122 -66
  142. package/lunar/index.js +1 -1
  143. package/lunar/lib/Holiday.js +1 -1
  144. package/lunar/lib/HolidayUtil.js +1 -1
  145. package/lunar/lib/I18n.js +1 -1
  146. package/lunar/lib/JieQi.js +1 -1
  147. package/lunar/lib/Lunar.js +1 -1
  148. package/lunar/lib/LunarMonth.js +1 -1
  149. package/lunar/lib/LunarTime.js +1 -1
  150. package/lunar/lib/LunarUtil.js +1 -1
  151. package/lunar/lib/LunarYear.js +1 -1
  152. package/lunar/lib/ShouXingUtil.js +1 -1
  153. package/lunar/lib/Solar.js +1 -1
  154. package/lunar/lib/SolarHalfYear.js +1 -1
  155. package/lunar/lib/SolarMonth.js +1 -1
  156. package/lunar/lib/SolarSeason.js +1 -1
  157. package/lunar/lib/SolarUtil.js +1 -1
  158. package/lunar/lib/SolarWeek.js +1 -1
  159. package/lunar/lib/SolarYear.js +1 -1
  160. package/lunar/lib/index.js +1 -1
  161. package/lunar.js +1 -1
  162. package/math/index.js +1 -1
  163. package/math.js +1 -1
  164. package/md5/index.js +1 -1
  165. package/md5.js +1 -1
  166. package/mock/MockWebSocket.js +1 -1
  167. package/mock/MockXMLHttpRequest.js +1 -1
  168. package/mock/index.js +1 -1
  169. package/mock.js +1 -1
  170. package/normalize-wheel/ExecutionEnvironment.js +1 -1
  171. package/normalize-wheel/UserAgent_DEPRECATED.js +1 -1
  172. package/normalize-wheel/index.js +1 -1
  173. package/normalize-wheel/isEventSupported.js +1 -1
  174. package/normalizeWheel.js +1 -1
  175. package/number-to-chinese/index.js +1 -1
  176. package/numberToChinese.js +1 -1
  177. package/nzh/cn.js +1 -1
  178. package/nzh/hk.js +1 -1
  179. package/nzh/index.js +1 -1
  180. package/nzh/nzh.js +1 -1
  181. package/nzh/src/autoGet.js +1 -1
  182. package/nzh/src/index.js +1 -1
  183. package/nzh/src/langs/cn_b.js +1 -1
  184. package/nzh/src/langs/cn_s.js +1 -1
  185. package/nzh/src/langs/hk_b.js +1 -1
  186. package/nzh/src/langs/hk_s.js +1 -1
  187. package/nzh/src/utils.js +1 -1
  188. package/nzh.js +1 -1
  189. package/object-keys-sort/index.js +1 -1
  190. package/object-prototype-to-string-call/index.js +2 -2
  191. package/objectKeysSort.js +1 -1
  192. package/objectPrototypeToStringCall.js +1 -1
  193. package/package.json +1 -1
  194. package/pinyin/index.js +1 -1
  195. package/pinyin/simplified.js +1 -1
  196. package/pinyin/src/core.js +1 -1
  197. package/pinyin/src/simplified.js +6 -6
  198. package/pinyin/src/simplified_dict.js +5 -4
  199. package/pinyin/src/traditional.js +4 -4
  200. package/pinyin/src/traditional_dict.js +4 -3
  201. package/pinyin/traditional.js +1 -1
  202. package/pinyin.js +1 -1
  203. package/query-string/base.js +1 -1
  204. package/query-string/index.js +1 -1
  205. package/query-string/splitOnFirst.js +1 -1
  206. package/queryString.js +1 -1
  207. package/random/address.js +1 -1
  208. package/random/constellation.js +1 -1
  209. package/random/image.js +1 -1
  210. package/random/index.js +1 -1
  211. package/random/licensePlate.js +1 -1
  212. package/random/name.js +1 -1
  213. package/random/number.js +1 -1
  214. package/random/text.js +1 -1
  215. package/random/time.js +1 -1
  216. package/random/web.js +1 -1
  217. package/random.js +1 -1
  218. package/screenfull/index.js +1 -1
  219. package/screenfull.js +1 -1
  220. package/sleep/index.js +1 -1
  221. package/sleep.js +1 -1
  222. package/snapdom/index.js +1 -1
  223. package/snapdom/src/api/preCache.js +1 -1
  224. package/snapdom/src/api/snapdom.js +2 -2
  225. package/snapdom/src/core/cache.js +1 -1
  226. package/snapdom/src/core/capture.js +1 -1
  227. package/snapdom/src/core/clone.js +1 -1
  228. package/snapdom/src/core/context.js +1 -1
  229. package/snapdom/src/core/plugins.js +1 -1
  230. package/snapdom/src/core/prepare.js +1 -1
  231. package/snapdom/src/exporters/download.js +14 -9
  232. package/snapdom/src/exporters/toBlob.js +1 -1
  233. package/snapdom/src/exporters/toCanvas.js +1 -1
  234. package/snapdom/src/exporters/toImg.js +1 -1
  235. package/snapdom/src/modules/CSSVar.js +1 -1
  236. package/snapdom/src/modules/background.js +1 -1
  237. package/snapdom/src/modules/changeCSS.js +1 -1
  238. package/snapdom/src/modules/counter.js +1 -1
  239. package/snapdom/src/modules/fonts.js +1 -1
  240. package/snapdom/src/modules/iconFonts.js +1 -1
  241. package/snapdom/src/modules/images.js +1 -1
  242. package/snapdom/src/modules/lineClamp.js +1 -1
  243. package/snapdom/src/modules/pseudo.js +1 -1
  244. package/snapdom/src/modules/rasterize.js +1 -1
  245. package/snapdom/src/modules/snapFetch.js +1 -1
  246. package/snapdom/src/modules/styles.js +2 -2
  247. package/snapdom/src/modules/svgDefs.js +1 -1
  248. package/snapdom/src/utils/browser.js +1 -1
  249. package/snapdom/src/utils/capture.helpers.js +1 -1
  250. package/snapdom/src/utils/clone.helpers.js +1 -1
  251. package/snapdom/src/utils/css.js +1 -1
  252. package/snapdom/src/utils/helpers.js +1 -1
  253. package/snapdom/src/utils/image.js +1 -1
  254. package/snapdom/src/utils/prepare.helpers.js +1 -1
  255. package/snapdom/src/utils/transforms.helpers.js +1 -1
  256. package/snapdom.js +1 -1
  257. package/string/index.js +1 -1
  258. package/string.js +1 -1
  259. package/tinycolor/index.js +1 -1
  260. package/tinycolor/src/conversion.js +1 -1
  261. package/tinycolor/src/css-color-names.js +1 -1
  262. package/tinycolor/src/format-input.js +1 -1
  263. package/tinycolor/src/from-ratio.js +12 -11
  264. package/tinycolor/src/index.js +1 -1
  265. package/tinycolor/src/random.js +30 -29
  266. package/tinycolor/src/readability.js +1 -1
  267. package/tinycolor/src/to-ms-filter.js +1 -1
  268. package/tinycolor/src/utils.js +1 -1
  269. package/tinycolor.js +1 -1
  270. package/tree/index.js +54 -75
  271. package/tree/search/index.js +1 -1
  272. package/tree.js +9 -11
  273. package/tween/index.js +1 -1
  274. package/tween/src/easing.js +1 -1
  275. package/tween/src/tween.js +15 -14
  276. package/tween.js +1 -1
  277. package/types/date/index.d.ts +3 -3
  278. package/types/dom-helpers/getElementCoordinates.d.ts +40 -0
  279. package/types/dom-helpers/index.d.ts +3 -1
  280. package/types/escape/index.d.ts +2 -0
  281. package/types/is/index.d.ts +28 -1
  282. package/types/is/lib/isAscii.d.ts +1 -0
  283. package/types/is/lib/isBase64.d.ts +1 -0
  284. package/types/is/lib/isChinese.d.ts +4 -0
  285. package/types/is/lib/isDataURI.d.ts +1 -0
  286. package/types/is/lib/isEmail.d.ts +1 -0
  287. package/types/is/lib/isFQDN.d.ts +1 -0
  288. package/types/is/lib/isFullWidth.d.ts +2 -0
  289. package/types/is/lib/isHSL.d.ts +1 -0
  290. package/types/is/lib/isHalfWidth.d.ts +2 -0
  291. package/types/is/lib/isHash.d.ts +1 -0
  292. package/types/is/lib/isHexColor.d.ts +1 -0
  293. package/types/is/lib/isIMEI.d.ts +1 -0
  294. package/types/is/lib/isIP.d.ts +1 -0
  295. package/types/is/lib/isIPRange.d.ts +1 -0
  296. package/types/is/lib/isIdentityCard.d.ts +1 -0
  297. package/types/is/lib/isJWT.d.ts +1 -0
  298. package/types/is/lib/isMACAddress.d.ts +1 -0
  299. package/types/is/lib/isMD5.d.ts +1 -0
  300. package/types/is/lib/isMimeType.d.ts +1 -0
  301. package/types/is/lib/isMobilePhone.d.ts +2 -0
  302. package/types/is/lib/isOctal.d.ts +1 -0
  303. package/types/is/lib/isPort.d.ts +1 -0
  304. package/types/is/lib/isRgbColor.d.ts +1 -0
  305. package/types/is/lib/isSemVer.d.ts +1 -0
  306. package/types/is/lib/isSlug.d.ts +1 -0
  307. package/types/is/lib/isStrongPassword.d.ts +1 -0
  308. package/types/is/lib/isURL.d.ts +1 -0
  309. package/types/is/lib/isUUID.d.ts +1 -0
  310. package/types/is/lib/isVariableWidth.d.ts +1 -0
  311. package/types/is/lib/util/assertString.d.ts +1 -0
  312. package/types/pinyin/es/main.d.ts +4 -0
  313. package/types/pinyin/es/traditional.d.ts +4 -0
  314. package/types/snapdom/src/api/snapdom.d.ts +1 -0
  315. package/types/tree/index.d.ts +3 -4
  316. package/types/validate/src/index.d.ts +23 -25
  317. package/types/validate/src/interface.d.ts +5 -3
  318. package/types/validate/src/locale/en-US.d.ts +12 -2
  319. package/types/validate/src/locale/index.d.ts +171 -0
  320. package/types/validate/src/locale/zh-CN.d.ts +12 -2
  321. package/types/validate/src/rules/base.d.ts +3 -1
  322. package/types/validate/src/rules/custom.d.ts +1 -1
  323. package/types/validate/src/rules/type.d.ts +10 -0
  324. package/ui-color/compareColorByRange.js +1 -1
  325. package/ui-color/index.js +8 -7
  326. package/uiColor.js +25 -24
  327. package/url-toolkit/index.js +1 -1
  328. package/url-toolkit/src/url-toolkit.js +1 -1
  329. package/urlToolkit.js +1 -1
  330. package/validate/index.js +23 -25
  331. package/validate/src/index.js +116 -73
  332. package/validate/src/locale/en-US.js +12 -2
  333. package/validate/src/locale/index.js +11 -0
  334. package/validate/src/locale/zh-CN.js +12 -2
  335. package/validate/src/rules/array.js +2 -2
  336. package/validate/src/rules/base.js +35 -31
  337. package/validate/src/rules/boolean.js +1 -1
  338. package/validate/src/rules/custom.js +2 -2
  339. package/validate/src/rules/number.js +1 -1
  340. package/validate/src/rules/object.js +1 -1
  341. package/validate/src/rules/string.js +6 -5
  342. package/validate/src/rules/type.js +84 -14
  343. package/validate.js +23 -25
  344. package/version/index.js +1 -1
  345. package/version.js +1 -1
  346. package/xlsx/index.d.ts +4 -8
  347. package/xlsx/index.js +1 -1
  348. package/xlsx/xlsx.js +2 -2
  349. package/xlsx.js +1 -1
  350. package/types/validate/src/message.d.ts +0 -2
  351. package/types/validate/src/utils.d.ts +0 -3
  352. package/validate/src/message.js +0 -5
  353. package/validate/src/utils.js +0 -8
@@ -0,0 +1,11 @@
1
+ /* 2025-12-17 18:26:57 */
2
+ function p(e) {
3
+ return e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\//g, "&#x2F;").replace(/\\/g, "&#x5C;").replace(/`/g, "&#96;");
4
+ }
5
+ function r(e) {
6
+ return e.replace(/&quot;/g, '"').replace(/&#x27;/g, "'").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&#x2F;/g, "/").replace(/&#x5C;/g, "\\").replace(/&#96;/g, "`").replace(/&amp;/g, "&");
7
+ }
8
+ export {
9
+ p as escape,
10
+ r as unescape
11
+ };
package/escape.js ADDED
@@ -0,0 +1,6 @@
1
+ /* 2025-12-17 18:26:57 */
2
+ import { escape as a, unescape as c } from "./escape/index.js";
3
+ export {
4
+ a as escape,
5
+ c as unescape
6
+ };
package/file/fileToURL.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-27 12:11:03 */
1
+ /* 2025-12-17 18:26:57 */
2
2
  import i from "lodash/isString";
3
3
  function u(r) {
4
4
  return new Promise((n, e) => {
package/file/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-27 12:11:03 */
1
+ /* 2025-12-17 18:26:57 */
2
2
  import { fileToURL as r } from "./fileToURL.js";
3
3
  import { saveAs as m } from "./saveAs.js";
4
4
  export {
package/file/saveAs.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-27 12:11:03 */
1
+ /* 2025-12-17 18:26:57 */
2
2
  import { isFile as i, isBlob as s } from "../is/index.js";
3
3
  import { fileToURL as l } from "./fileToURL.js";
4
4
  import c from "lodash/isPlainObject.js";
package/file.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-27 12:11:03 */
1
+ /* 2025-12-17 18:26:57 */
2
2
  import { fileToURL as r } from "./file/fileToURL.js";
3
3
  import { saveAs as m } from "./file/saveAs.js";
4
4
  export {
package/idb/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-27 12:11:03 */
1
+ /* 2025-12-17 18:26:57 */
2
2
  function o(n) {
3
3
  return new Promise((t, e) => {
4
4
  (n instanceof IDBOpenDBRequest || n instanceof IDBRequest) && (n.onsuccess = (r) => {
package/idb.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-27 12:11:03 */
1
+ /* 2025-12-17 18:26:57 */
2
2
  import { default as o } from "./idb/index.js";
3
3
  export {
4
4
  o as default
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-27 12:11:03 */
1
+ /* 2025-12-17 18:26:57 */
2
2
  import { VERSION as e } from "./version/index.js";
3
3
  export {
4
4
  e as version
@@ -1,4 +1,4 @@
1
- /* 2025-11-27 12:11:03 */
1
+ /* 2025-12-17 18:26:57 */
2
2
  function t(n, r, ...i) {
3
3
  if (process.env.NODE_ENV !== "production" && r === void 0)
4
4
  throw new Error("invariant requires an error message argument");
package/invariant.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-27 12:11:03 */
1
+ /* 2025-12-17 18:26:57 */
2
2
  import { default as o } from "./invariant/index.js";
3
3
  export {
4
4
  o as default
package/is/index.js CHANGED
@@ -1,161 +1,216 @@
1
- /* 2025-11-27 12:11:03 */
2
- import { default as q } from "lodash/isArguments.js";
3
- import a from "lodash/isArray.js";
4
- import { default as _ } from "lodash/isArray.js";
5
- import { default as z } from "lodash/isArrayBuffer.js";
6
- import { default as H } from "lodash/isArrayLike.js";
1
+ /* 2025-12-17 18:26:57 */
2
+ import { default as D } from "lodash/isArguments.js";
3
+ import n from "lodash/isArray.js";
4
+ import { default as J } from "lodash/isArray.js";
5
+ import { default as _ } from "lodash/isArrayBuffer.js";
6
+ import { default as G } from "lodash/isArrayLike.js";
7
7
  import { default as Q } from "lodash/isArrayLikeObject.js";
8
8
  import { default as Y } from "lodash/isBoolean.js";
9
- import { default as tt } from "lodash/isBuffer.js";
10
- import { default as rt } from "lodash/isDate.js";
11
- import { default as it } from "lodash/isElement.js";
12
- import i from "lodash/isEmpty.js";
13
- import { default as ft } from "lodash/isEmpty.js";
14
- import { default as ut } from "lodash/isEqual.js";
15
- import { default as lt } from "lodash/isEqualWith.js";
16
- import { default as mt } from "lodash/isError.js";
17
- import { default as xt } from "lodash/isFinite.js";
18
- import o from "lodash/isFunction.js";
19
- import { default as bt } from "lodash/isFunction.js";
20
- import { default as ht } from "lodash/isInteger.js";
21
- import { default as Et } from "lodash/isLength.js";
22
- import { default as Nt } from "lodash/isMap.js";
23
- import { default as At } from "lodash/isMatch.js";
24
- import { default as jt } from "lodash/isMatchWith.js";
25
- import { default as Bt } from "lodash/isNaN.js";
26
- import { default as kt } from "lodash/isNative.js";
27
- import l from "lodash/isNil.js";
28
- import { default as vt } from "lodash/isNil.js";
29
- import { default as Tt } from "lodash/isNull.js";
30
- import { default as Mt } from "lodash/isNumber.js";
31
- import d from "lodash/isObject.js";
32
- import { default as Ct } from "lodash/isObject.js";
9
+ import { default as ee } from "lodash/isBuffer.js";
10
+ import { default as oe } from "lodash/isDate.js";
11
+ import { default as se } from "lodash/isElement.js";
12
+ import s from "lodash/isEmpty.js";
13
+ import { default as ie } from "lodash/isEmpty.js";
14
+ import { default as le } from "lodash/isEqual.js";
15
+ import { default as ne } from "lodash/isEqualWith.js";
16
+ import { default as me } from "lodash/isError.js";
17
+ import { default as pe } from "lodash/isFinite.js";
18
+ import r from "lodash/isFunction.js";
19
+ import { default as be } from "lodash/isFunction.js";
20
+ import { default as ye } from "lodash/isInteger.js";
21
+ import { default as Se } from "lodash/isLength.js";
22
+ import { default as Ae } from "lodash/isMap.js";
23
+ import { default as Ne } from "lodash/isMatch.js";
24
+ import { default as Me } from "lodash/isMatchWith.js";
25
+ import { default as Ie } from "lodash/isNaN.js";
26
+ import { default as je } from "lodash/isNative.js";
27
+ import d from "lodash/isNil.js";
28
+ import { default as Be } from "lodash/isNil.js";
29
+ import { default as Le } from "lodash/isNull.js";
30
+ import { default as Te } from "lodash/isNumber.js";
31
+ import f from "lodash/isObject.js";
32
+ import { default as ke } from "lodash/isObject.js";
33
33
  import m from "lodash/isObjectLike.js";
34
- import { default as Ut } from "lodash/isObjectLike.js";
35
- import { default as qt } from "lodash/isPlainObject.js";
36
- import { default as _t } from "lodash/isRegExp.js";
37
- import { default as zt } from "lodash/isSafeInteger.js";
38
- import { default as Ht } from "lodash/isSet.js";
39
- import c from "lodash/isString.js";
40
- import { default as Qt } from "lodash/isString.js";
41
- import { default as Yt } from "lodash/isSymbol.js";
42
- import { default as te } from "lodash/isTypedArray.js";
43
- import x from "lodash/isUndefined.js";
44
- import { default as re } from "lodash/isUndefined.js";
45
- import { default as ie } from "lodash/isWeakMap.js";
46
- import { default as fe } from "lodash/isWeakSet.js";
47
- import r from "../object-prototype-to-string-call/index.js";
48
- function j(t) {
49
- return r(t, "Promise") || t instanceof Promise || d(t) && o(t.then) && o(t.catch) && o(t.finally);
50
- }
51
- function w(t) {
52
- return r(t, "File") || t instanceof File;
53
- }
54
- function B(t) {
55
- return r(t, "Blob") || t instanceof Blob;
56
- }
57
- function F(t) {
58
- return r(t, "ReadableStream") || t instanceof ReadableStream;
59
- }
60
- function k(t) {
61
- return r(t, "EventTarget") || t instanceof EventTarget;
62
- }
63
- function p(t) {
64
- if (!(t && c(t))) return !1;
65
- const e = t.trim();
66
- if (e.startsWith("{") && e.endsWith("}") || e.startsWith("[") && e.endsWith("]"))
67
- try {
68
- return JSON.parse(t), !0;
69
- } catch {
70
- return !1;
71
- }
34
+ import { default as Ve } from "lodash/isObjectLike.js";
35
+ import { default as De } from "lodash/isPlainObject.js";
36
+ import { default as Je } from "lodash/isRegExp.js";
37
+ import { default as _e } from "lodash/isSafeInteger.js";
38
+ import { default as Ge } from "lodash/isSet.js";
39
+ import x from "lodash/isString.js";
40
+ import { default as Qe } from "lodash/isString.js";
41
+ import { default as Ye } from "lodash/isSymbol.js";
42
+ import { default as et } from "lodash/isTypedArray.js";
43
+ import p from "lodash/isUndefined.js";
44
+ import { default as ot } from "lodash/isUndefined.js";
45
+ import { default as st } from "lodash/isWeakMap.js";
46
+ import { default as it } from "lodash/isWeakSet.js";
47
+ import { default as lt } from "./lib/isAscii.js";
48
+ import { default as nt } from "./lib/isBase64.js";
49
+ import { isAllChinese as mt, default as xt } from "./lib/isChinese.js";
50
+ import { default as ct } from "./lib/isDataURI.js";
51
+ import { default as ht } from "./lib/isEmail.js";
52
+ import { default as gt } from "./lib/isFullWidth.js";
53
+ import { default as Et } from "./lib/isHalfWidth.js";
54
+ import { default as Pt } from "./lib/isHash.js";
55
+ import { default as Ot } from "./lib/isHexColor.js";
56
+ import { default as Ct } from "./lib/isHSL.js";
57
+ import { default as Wt } from "./lib/isIdentityCard.js";
58
+ import { default as wt } from "./lib/isIMEI.js";
59
+ import { default as Ft } from "./lib/isIP.js";
60
+ import { default as Rt } from "./lib/isIPRange.js";
61
+ import { default as Ut } from "./lib/isJWT.js";
62
+ import { default as vt } from "./lib/isMACAddress.js";
63
+ import { default as $t } from "./lib/isMD5.js";
64
+ import { default as Ht } from "./lib/isMimeType.js";
65
+ import { default as qt, locales as _t } from "./lib/isMobilePhone.js";
66
+ import { default as Gt } from "./lib/isPort.js";
67
+ import { default as Qt } from "./lib/isRgbColor.js";
68
+ import { default as Yt } from "./lib/isSemVer.js";
69
+ import { default as eo } from "./lib/isSlug.js";
70
+ import { default as oo } from "./lib/isStrongPassword.js";
71
+ import { default as so } from "./lib/isURL.js";
72
+ import { default as io } from "./lib/isUUID.js";
73
+ import { default as lo } from "./lib/isVariableWidth.js";
74
+ import o from "../object-prototype-to-string-call/index.js";
75
+ function M(e) {
76
+ return o(e, "Promise") || e instanceof Promise || f(e) && r(e.then) && r(e.catch) && r(e.finally);
77
+ }
78
+ function C(e) {
79
+ return o(e, "File") || e instanceof File;
80
+ }
81
+ function I(e) {
82
+ return o(e, "Blob") || e instanceof Blob;
83
+ }
84
+ function W(e) {
85
+ return o(e, "ReadableStream") || e instanceof ReadableStream;
86
+ }
87
+ function j(e) {
88
+ return o(e, "EventTarget") || e instanceof EventTarget;
89
+ }
90
+ function c(e) {
91
+ if (!(e && x(e))) return !1;
92
+ try {
93
+ const t = JSON.parse(e);
94
+ return [null, !1, !0].includes(t) || !!t && f(t);
95
+ } catch (t) {
96
+ console.error(t);
97
+ }
72
98
  return !1;
73
99
  }
74
- function P(t) {
75
- return p(t);
100
+ function w(e) {
101
+ return c(e);
76
102
  }
77
- function b(t) {
78
- return l(t);
103
+ function b(e) {
104
+ return d(e);
79
105
  }
80
- function v(t) {
81
- return a(t) && i(t);
106
+ function B(e) {
107
+ return n(e) && s(e);
82
108
  }
83
- function L(t) {
84
- return m(t) && i(t);
109
+ function F(e) {
110
+ return m(e) && s(e);
85
111
  }
86
- function T(t) {
87
- return b(t) || t === "";
112
+ function L(e) {
113
+ return b(e) || e === "";
88
114
  }
89
- function $(t) {
90
- const e = /^#(?:[0-9a-fA-F]{3}){1,2}$/, s = /^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/, f = /^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(1|0|0?\.\d+)\)$/, n = /^hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)$/, u = /^hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*(1|0|0?\.\d+)\)$/;
91
- return e.test(t) || s.test(t) || f.test(t) || n.test(t) || u.test(t);
115
+ function R(e) {
116
+ const t = /^#(?:[0-9a-fA-F]{3}){1,2}$/, i = /^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/, a = /^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(1|0|0?\.\d+)\)$/, l = /^hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)$/, u = /^hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*(1|0|0?\.\d+)\)$/;
117
+ return t.test(e) || i.test(e) || a.test(e) || l.test(e) || u.test(e);
92
118
  }
93
- function M(t) {
94
- const e = document.createElement("div");
95
- return e.style.color = t, e.style.color !== "";
119
+ function T(e) {
120
+ const t = document.createElement("div");
121
+ return t.style.color = e, t.style.color !== "";
96
122
  }
97
- function R(t) {
98
- const e = t.codePointAt(0);
99
- return e && e > 65535;
123
+ function U(e) {
124
+ const t = e.codePointAt(0);
125
+ return t && t > 65535;
100
126
  }
101
- function C(t) {
102
- return t || t === 0;
127
+ function k(e) {
128
+ return e || e === 0;
103
129
  }
104
- function J(t) {
105
- return !x(t) && t === window && "window" in t && t.window === t;
130
+ function v(e) {
131
+ return !p(e) && e === window && "window" in e && e.window === e;
106
132
  }
107
133
  export {
108
- R as is32Bit,
109
- q as isArguments,
110
- _ as isArray,
111
- z as isArrayBuffer,
112
- H as isArrayLike,
134
+ U as is32Bit,
135
+ mt as isAllChinese,
136
+ D as isArguments,
137
+ J as isArray,
138
+ _ as isArrayBuffer,
139
+ G as isArrayLike,
113
140
  Q as isArrayLikeObject,
114
- B as isBlob,
141
+ lt as isAscii,
142
+ nt as isBase64,
143
+ I as isBlob,
115
144
  Y as isBoolean,
116
- tt as isBuffer,
117
- $ as isColorValue,
118
- M as isColorValue_,
119
- rt as isDate,
120
- it as isElement,
121
- ft as isEmpty,
122
- v as isEmptyArray,
123
- L as isEmptyObject,
124
- T as isEmptyValue,
125
- ut as isEqual,
126
- lt as isEqualWith,
127
- mt as isError,
128
- k as isEventTarget,
129
- C as isExist,
130
- w as isFile,
131
- xt as isFinite,
132
- bt as isFunction,
133
- ht as isInteger,
134
- p as isJSON,
135
- P as isJSON_String,
136
- Et as isLength,
137
- Nt as isMap,
138
- At as isMatch,
139
- jt as isMatchWith,
140
- Bt as isNaN,
141
- kt as isNative,
142
- vt as isNil,
143
- Tt as isNull,
145
+ ee as isBuffer,
146
+ xt as isChinese,
147
+ R as isColorValue,
148
+ T as isColorValue_,
149
+ ct as isDataURI,
150
+ oe as isDate,
151
+ se as isElement,
152
+ ht as isEmail,
153
+ ie as isEmpty,
154
+ B as isEmptyArray,
155
+ F as isEmptyObject,
156
+ L as isEmptyValue,
157
+ le as isEqual,
158
+ ne as isEqualWith,
159
+ me as isError,
160
+ j as isEventTarget,
161
+ k as isExist,
162
+ C as isFile,
163
+ pe as isFinite,
164
+ gt as isFullWidth,
165
+ be as isFunction,
166
+ Ct as isHSL,
167
+ Et as isHalfWidth,
168
+ Pt as isHash,
169
+ Ot as isHexColor,
170
+ wt as isIMEI,
171
+ Ft as isIP,
172
+ Rt as isIPRange,
173
+ Wt as isIdentityCard,
174
+ ye as isInteger,
175
+ c as isJSON,
176
+ w as isJSON_String,
177
+ Ut as isJWT,
178
+ Se as isLength,
179
+ vt as isMACAddress,
180
+ $t as isMD5,
181
+ Ae as isMap,
182
+ Ne as isMatch,
183
+ Me as isMatchWith,
184
+ Ht as isMimeType,
185
+ qt as isMobilePhone,
186
+ _t as isMobilePhoneLocales,
187
+ Ie as isNaN,
188
+ je as isNative,
189
+ Be as isNil,
190
+ Le as isNull,
144
191
  b as isNullOrUndefined,
145
- Mt as isNumber,
146
- Ct as isObject,
147
- Ut as isObjectLike,
148
- qt as isPlainObject,
149
- j as isPromise,
150
- F as isReadableStream,
151
- _t as isRegExp,
152
- zt as isSafeInteger,
153
- Ht as isSet,
154
- Qt as isString,
155
- Yt as isSymbol,
156
- te as isTypedArray,
157
- re as isUndefined,
158
- ie as isWeakMap,
159
- fe as isWeakSet,
160
- J as isWindow
192
+ Te as isNumber,
193
+ ke as isObject,
194
+ Ve as isObjectLike,
195
+ De as isPlainObject,
196
+ Gt as isPort,
197
+ M as isPromise,
198
+ W as isReadableStream,
199
+ Je as isRegExp,
200
+ Qt as isRgbColor,
201
+ _e as isSafeInteger,
202
+ Yt as isSemVer,
203
+ Ge as isSet,
204
+ eo as isSlug,
205
+ Qe as isString,
206
+ oo as isStrongPassword,
207
+ Ye as isSymbol,
208
+ et as isTypedArray,
209
+ so as isURL,
210
+ io as isUUID,
211
+ ot as isUndefined,
212
+ lo as isVariableWidth,
213
+ st as isWeakMap,
214
+ it as isWeakSet,
215
+ v as isWindow
161
216
  };
@@ -0,0 +1,9 @@
1
+ /* 2025-12-17 18:26:57 */
2
+ import i from "./util/assertString.js";
3
+ const s = /^[\x00-\x7F]+$/;
4
+ function e(t) {
5
+ return i(t), s.test(t);
6
+ }
7
+ export {
8
+ e as default
9
+ };
@@ -0,0 +1,13 @@
1
+ /* 2025-12-17 18:26:57 */
2
+ import r from "lodash/defaults";
3
+ import t from "./util/assertString.js";
4
+ const i = /^[A-Za-z0-9+/]+={0,2}$/, n = /^[A-Za-z0-9+/]+$/, f = /^[A-Za-z0-9_-]+={0,2}$/, g = /^[A-Za-z0-9_-]+$/;
5
+ function s(e, a) {
6
+ if (t(e), a = r(a, { urlSafe: !1, padding: !a?.urlSafe }), e === "") return !0;
7
+ if (a.padding && e.length % 4 !== 0) return !1;
8
+ let d;
9
+ return a.urlSafe ? d = a.padding ? f : g : d = a.padding ? i : n, (!a.padding || e.length % 4 === 0) && d.test(e);
10
+ }
11
+ export {
12
+ s as default
13
+ };
@@ -0,0 +1,19 @@
1
+ /* 2025-12-17 18:26:57 */
2
+ function u(t) {
3
+ try {
4
+ return /\p{Script=Han}/u.test(t);
5
+ } catch {
6
+ return /[\u4e00-\u9fa5]/.test(t);
7
+ }
8
+ }
9
+ function n(t) {
10
+ try {
11
+ return /^\p{Script=Han}+$/u.test(t);
12
+ } catch {
13
+ return /^[\u4e00-\u9fa5]+$/.test(t);
14
+ }
15
+ }
16
+ export {
17
+ u as default,
18
+ n as isAllChinese
19
+ };
@@ -0,0 +1,25 @@
1
+ /* 2025-12-17 18:26:57 */
2
+ import n from "./util/assertString.js";
3
+ const l = /^[a-z]+\/[a-z0-9\-+._]+$/i, f = /^[a-z-]+=[a-z0-9-]+$/i, o = /^[a-z0-9!$&'()*+,;=\-._~:@/?%\s]*$/i;
4
+ function u(i) {
5
+ n(i);
6
+ const a = i.split(",");
7
+ if (a.length < 2)
8
+ return !1;
9
+ const e = a.shift().trim().split(";"), s = e.shift();
10
+ if (s.slice(0, 5) !== "data:")
11
+ return !1;
12
+ const r = s.slice(5);
13
+ if (r !== "" && !l.test(r))
14
+ return !1;
15
+ for (let t = 0; t < e.length; t++)
16
+ if (!(t === e.length - 1 && e[t].toLowerCase() === "base64") && !f.test(e[t]))
17
+ return !1;
18
+ for (let t = 0; t < a.length; t++)
19
+ if (!o.test(a[t]))
20
+ return !1;
21
+ return !0;
22
+ }
23
+ export {
24
+ u as default
25
+ };
@@ -0,0 +1,72 @@
1
+ /* 2025-12-17 18:26:57 */
2
+ import x from "lodash/defaults";
3
+ import m from "lodash/isObject";
4
+ import d from "lodash/isUndefined";
5
+ import o from "./isFQDN.js";
6
+ import u from "./isIP.js";
7
+ import _ from "./util/assertString.js";
8
+ const F = {
9
+ allow_display_name: !1,
10
+ allow_underscores: !1,
11
+ require_display_name: !1,
12
+ allow_utf8_local_part: !0,
13
+ require_tld: !0,
14
+ blacklisted_chars: "",
15
+ ignore_max_length: !1
16
+ }, g = /^([^\x00-\x1F\x7F-\x9F\cX]+)</i, h = /^[a-z\d!#$%&'*+\-/=?^_`{|}~]+$/i, p = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i, w = /^[a-z\d!#$%&'*+\-/=?^_`{|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i, b = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i, D = 254;
17
+ function $(a) {
18
+ const e = a.replace(/^"(.+)"$/, "$1");
19
+ return !(!e.trim() || /[.";<>]/.test(e) && (e === a || !(e.split('"').length === e.split('\\"').length)));
20
+ }
21
+ function f(a, e) {
22
+ _(a);
23
+ let i, t;
24
+ m(e) ? (i = e.min || 0, t = e.max) : (i = arguments[1], t = arguments[2]);
25
+ const l = encodeURI(a).split(/%..|./).length - 1;
26
+ return l >= i && (d(t) || l <= t);
27
+ }
28
+ function C(a, e) {
29
+ if (_(a), e = x(e, F), e.require_display_name || e.allow_display_name) {
30
+ const r = a.match(g);
31
+ if (r) {
32
+ let s = r[1];
33
+ if (a = a.replace(s, "").replace(/(^<|>$)/g, ""), s.endsWith(" ") && (s = s.slice(0, -1)), !$(s))
34
+ return !1;
35
+ } else if (e.require_display_name)
36
+ return !1;
37
+ }
38
+ if (!e.ignore_max_length && a.length > D)
39
+ return !1;
40
+ const i = a.split("@"), t = i.pop();
41
+ t.toLowerCase();
42
+ let l = i.join("@");
43
+ if (e.ignore_max_length === !1 && (!f(l, { max: 64 }) || !f(t, { max: 254 })))
44
+ return !1;
45
+ if (!o(t, {
46
+ require_tld: e.require_tld,
47
+ ignore_max_length: e.ignore_max_length,
48
+ allow_underscores: e.allow_underscores
49
+ })) {
50
+ if (!e.allow_ip_domain)
51
+ return !1;
52
+ if (!u(t)) {
53
+ if (!t.startsWith("[") || !t.endsWith("]"))
54
+ return !1;
55
+ const r = t.slice(1, -1);
56
+ if (r.length === 0 || !u(r))
57
+ return !1;
58
+ }
59
+ }
60
+ if (e.blacklisted_chars && l.search(new RegExp(`[${e.blacklisted_chars}]+`, "g")) !== -1)
61
+ return !1;
62
+ if (l[0] === '"' && l[l.length - 1] === '"')
63
+ return l = l.slice(1, l.length - 1), e.allow_utf8_local_part ? b.test(l) : p.test(l);
64
+ const c = e.allow_utf8_local_part ? w : h, n = l.split(".");
65
+ for (let r = 0; r < n.length; r++)
66
+ if (!c.test(n[r]))
67
+ return !1;
68
+ return !0;
69
+ }
70
+ export {
71
+ C as default
72
+ };
@@ -0,0 +1,21 @@
1
+ /* 2025-12-17 18:26:57 */
2
+ import u from "lodash/defaults";
3
+ import a from "./util/assertString.js";
4
+ const n = {
5
+ require_tld: !0,
6
+ allow_underscores: !1,
7
+ allow_trailing_dot: !1,
8
+ allow_numeric_tld: !1,
9
+ allow_wildcard: !1,
10
+ ignore_max_length: !1
11
+ };
12
+ function _(e, l) {
13
+ a(e), l = u(l, n), l.allow_trailing_dot && e[e.length - 1] === "." && (e = e.substring(0, e.length - 1)), l.allow_wildcard === !0 && e.indexOf("*.") === 0 && (e = e.substring(2));
14
+ const t = e.split("."), r = t[t.length - 1];
15
+ return l.require_tld && (t.length < 2 || !l.allow_numeric_tld && !/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(
16
+ r
17
+ ) || /\s/.test(r)) || !l.allow_numeric_tld && /^\d+$/.test(r) ? !1 : t.every((f) => !(f.length > 63 && !l.ignore_max_length || !/^[a-z_\u00a1-\uffff0-9-]+$/i.test(f) || /[\uff01-\uff5e]/.test(f) || /^-|-$/.test(f) || !l.allow_underscores && /_/.test(f)));
18
+ }
19
+ export {
20
+ _ as default
21
+ };
@@ -0,0 +1,10 @@
1
+ /* 2025-12-17 18:26:57 */
2
+ import u from "./util/assertString.js";
3
+ const t = /[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;
4
+ function r(F) {
5
+ return u(F), t.test(F);
6
+ }
7
+ export {
8
+ r as default,
9
+ t as fullWidth
10
+ };
@@ -0,0 +1,11 @@
1
+ /* 2025-12-17 18:26:57 */
2
+ import r from "./util/assertString.js";
3
+ const t = /^hsla?\(((\+|-)?([0-9]+(\.[0-9]+)?(e(\+|-)?[0-9]+)?|\.[0-9]+(e(\+|-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|-)?([0-9]+(\.[0-9]+)?(e(\+|-)?[0-9]+)?|\.[0-9]+(e(\+|-)?[0-9]+)?)%){2}(,((\+|-)?([0-9]+(\.[0-9]+)?(e(\+|-)?[0-9]+)?|\.[0-9]+(e(\+|-)?[0-9]+)?)%?))?\)$/i, a = /^hsla?\(((\+|-)?([0-9]+(\.[0-9]+)?(e(\+|-)?[0-9]+)?|\.[0-9]+(e(\+|-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|-)?([0-9]+(\.[0-9]+)?(e(\+|-)?[0-9]+)?|\.[0-9]+(e(\+|-)?[0-9]+)?)%){2}\s?(\/\s((\+|-)?([0-9]+(\.[0-9]+)?(e(\+|-)?[0-9]+)?|\.[0-9]+(e(\+|-)?[0-9]+)?)%?)\s?)?\)$/i;
4
+ function i(s) {
5
+ r(s);
6
+ const e = s.replace(/\s+/g, " ").replace(/\s?(hsla?\(|\)|,)\s?/gi, "$1");
7
+ return e.includes(",") ? t.test(e) : a.test(e);
8
+ }
9
+ export {
10
+ i as default
11
+ };
@@ -0,0 +1,10 @@
1
+ /* 2025-12-17 18:26:57 */
2
+ import t from "./util/assertString.js";
3
+ const u = /[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;
4
+ function i(F) {
5
+ return t(F), u.test(F);
6
+ }
7
+ export {
8
+ i as default,
9
+ u as halfWidth
10
+ };