@rzl-zone/utils-js 3.8.0 → 3.9.0

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 (122) hide show
  1. package/README.md +5 -1
  2. package/dist/assertions/index.cjs +11 -11
  3. package/dist/assertions/index.d.ts +168 -57
  4. package/dist/assertions/index.js +5 -5
  5. package/dist/{chunk-EK7FSI7F.cjs → chunk-2XGQQZ6A.cjs} +3 -3
  6. package/dist/{chunk-YS27V6LS.js → chunk-3LE6NX57.js} +5 -176
  7. package/dist/{chunk-PZQC3FZY.js → chunk-44X74C26.js} +4 -4
  8. package/dist/{chunk-4ACKNPL5.js → chunk-5KDVIEVO.js} +2 -2
  9. package/dist/{chunk-JY4HLZ4W.js → chunk-5O66AUEC.js} +2 -2
  10. package/dist/{chunk-SLP24LUV.js → chunk-5Y6JL47L.js} +3 -3
  11. package/dist/{chunk-ZW3VYES4.cjs → chunk-62FS7WMB.cjs} +31 -31
  12. package/dist/{chunk-VJVCXEH7.cjs → chunk-6AMDHVS2.cjs} +9 -181
  13. package/dist/{chunk-5IKZ3JDV.js → chunk-6WVOUVWD.js} +9 -9
  14. package/dist/{chunk-BYUT376O.cjs → chunk-76ATVDCR.cjs} +3 -3
  15. package/dist/{chunk-F3WBQKRI.cjs → chunk-7C7TQC5J.cjs} +29 -7
  16. package/dist/{chunk-I3IXLEEG.js → chunk-7EIFPHV3.js} +8 -8
  17. package/dist/{chunk-6RFNZ2ZZ.cjs → chunk-7NXFGJJE.cjs} +14 -14
  18. package/dist/{chunk-TFDXRT6D.cjs → chunk-ALRISPTL.cjs} +3 -3
  19. package/dist/chunk-BAV5T2E3.cjs +1 -1
  20. package/dist/{chunk-4ZOXSUXB.js → chunk-C7GC2PFX.js} +3 -3
  21. package/dist/chunk-DVMHRLKP.cjs +1 -1
  22. package/dist/{chunk-KVZ3HL2B.js → chunk-DXPM4NOU.js} +4 -4
  23. package/dist/{chunk-DPLL67OT.js → chunk-EJV5AF4L.js} +2 -2
  24. package/dist/{chunk-NREACG6M.cjs → chunk-FWWPEL7J.cjs} +3 -3
  25. package/dist/{chunk-LEX4TQW2.js → chunk-GHU356XQ.js} +4 -6
  26. package/dist/chunk-GKDSBOYE.js +209 -0
  27. package/dist/{chunk-YC7AK3KX.cjs → chunk-H44QVAZL.cjs} +31 -31
  28. package/dist/{chunk-AKKM6MOX.cjs → chunk-I33PB44Q.cjs} +15 -15
  29. package/dist/{chunk-LIU4S3JA.cjs → chunk-IX6PF5ZP.cjs} +4 -4
  30. package/dist/{chunk-3KTD3QDI.js → chunk-J4TT33ZX.js} +29 -7
  31. package/dist/{chunk-SZJ7OI4S.js → chunk-J6VLFVIL.js} +3 -3
  32. package/dist/{chunk-3JD53UUH.cjs → chunk-JI57K7D4.cjs} +161 -161
  33. package/dist/{chunk-OFBFGFVH.js → chunk-JYOCB6OV.js} +2 -2
  34. package/dist/chunk-KHO2SBNA.cjs +1 -1
  35. package/dist/{chunk-6NORJBI6.cjs → chunk-KUVRZ2JW.cjs} +50 -50
  36. package/dist/chunk-L5RDAVVH.js +1 -1
  37. package/dist/{chunk-VCVND6CH.js → chunk-M5QB2GM5.js} +2 -2
  38. package/dist/{chunk-RRJIRXHS.js → chunk-MBFVTGYS.js} +4 -4
  39. package/dist/{chunk-UKAUXY2U.cjs → chunk-MMRHKYT6.cjs} +12 -12
  40. package/dist/{chunk-U5VR4TJN.js → chunk-MS2KSKD7.js} +9 -9
  41. package/dist/{chunk-7ZNEUWYP.js → chunk-MZ3T6L7Z.js} +2 -2
  42. package/dist/{chunk-ATLFMKAF.cjs → chunk-NAOVH4OH.cjs} +7 -7
  43. package/dist/{chunk-HKJZ7K2K.cjs → chunk-NJ24M6ZH.cjs} +37 -37
  44. package/dist/chunk-OCTHWEZK.cjs +249 -0
  45. package/dist/chunk-ONZFBJVW.js +1 -1
  46. package/dist/{chunk-FI76UZRF.js → chunk-OSSFLQDD.js} +3 -4
  47. package/dist/{chunk-7WBMA2VE.cjs → chunk-OYFUBKEG.cjs} +4 -5
  48. package/dist/{chunk-B4SDEBN7.cjs → chunk-PWKOFPAH.cjs} +3 -3
  49. package/dist/{chunk-RJYWBVGD.cjs → chunk-QGTFQ7RO.cjs} +6 -6
  50. package/dist/chunk-QNKGP5DY.js +1 -1
  51. package/dist/chunk-QXTJVDWE.js +676 -0
  52. package/dist/{chunk-B6UIKBHR.cjs → chunk-QZI5PVCI.cjs} +4 -4
  53. package/dist/{chunk-PW2VMJLT.js → chunk-R2DR7SPJ.js} +99 -25
  54. package/dist/{chunk-TDYGYHSH.js → chunk-SN5HAK3Y.js} +4 -4
  55. package/dist/{chunk-P3ST4UZA.js → chunk-SRWL4YCP.js} +7 -7
  56. package/dist/{chunk-7QQV66RX.cjs → chunk-TJ5OY6MC.cjs} +10 -10
  57. package/dist/{chunk-6WMB5AJR.js → chunk-TXOVQZPU.js} +3 -4
  58. package/dist/chunk-UDA26MCU.cjs +1 -1
  59. package/dist/{chunk-LVFTN6DK.cjs → chunk-UFYMRRJH.cjs} +61 -61
  60. package/dist/{chunk-5NN4ZDE2.cjs → chunk-UV5BKAYW.cjs} +6 -8
  61. package/dist/{chunk-GAJBF6DR.js → chunk-UXT4XSUK.js} +2 -2
  62. package/dist/{chunk-6VA4F6VR.js → chunk-VBSLIIDB.js} +10 -10
  63. package/dist/chunk-VCYXNIZ2.cjs +678 -0
  64. package/dist/chunk-VJDDGRIK.cjs +1 -1
  65. package/dist/{chunk-JIROTDOU.js → chunk-WB3FT62A.js} +3 -3
  66. package/dist/{chunk-K63WO3XA.cjs → chunk-WKM6UVMG.cjs} +4 -5
  67. package/dist/{chunk-5PF7KRCP.cjs → chunk-WLEZ2KSG.cjs} +126 -126
  68. package/dist/{chunk-ZN53RM3R.js → chunk-WRGN6UBK.js} +2 -2
  69. package/dist/chunk-WVSPXFTY.js +1 -1
  70. package/dist/{chunk-2VO2CBTU.js → chunk-X6ULJZ3X.js} +2 -2
  71. package/dist/{chunk-CKUEZF4R.cjs → chunk-XYWC4EQ3.cjs} +71 -71
  72. package/dist/{chunk-A3YI6Y2P.js → chunk-YHFRCVTN.js} +3 -3
  73. package/dist/{chunk-A4H7474O.cjs → chunk-YQHJB7KR.cjs} +26 -26
  74. package/dist/{chunk-YGB2BQPB.cjs → chunk-YVRUY4EW.cjs} +8 -8
  75. package/dist/chunk-YWHHVDT4.js +1 -1
  76. package/dist/chunk-ZTHJQJ5F.cjs +211 -0
  77. package/dist/conversions/index.cjs +34 -34
  78. package/dist/conversions/index.d.ts +1 -1
  79. package/dist/conversions/index.js +15 -15
  80. package/dist/events/index.cjs +8 -8
  81. package/dist/events/index.d.ts +1 -1
  82. package/dist/events/index.js +4 -4
  83. package/dist/formatters/index.cjs +19 -19
  84. package/dist/formatters/index.d.ts +1 -1
  85. package/dist/formatters/index.js +9 -9
  86. package/dist/generators/index.cjs +9 -9
  87. package/dist/generators/index.d.ts +1 -1
  88. package/dist/generators/index.js +4 -4
  89. package/dist/index.d.ts +1 -1
  90. package/dist/isPlainObject-BTPjv6zB.d.ts +1 -1
  91. package/dist/next/index.cjs +37 -36
  92. package/dist/next/index.d.ts +1 -1
  93. package/dist/next/index.js +9 -8
  94. package/dist/next/server/index.cjs +4 -4
  95. package/dist/next/server/index.d.ts +1 -1
  96. package/dist/next/server/index.js +2 -2
  97. package/dist/operations/index.cjs +11 -11
  98. package/dist/operations/index.d.ts +1 -1
  99. package/dist/operations/index.js +8 -8
  100. package/dist/parsers/index.cjs +6 -4
  101. package/dist/parsers/index.d.ts +224 -32
  102. package/dist/parsers/index.js +5 -3
  103. package/dist/predicates/index.cjs +77 -76
  104. package/dist/predicates/index.d.ts +1 -1
  105. package/dist/predicates/index.js +14 -13
  106. package/dist/promises/index.cjs +6 -6
  107. package/dist/promises/index.d.ts +2 -3
  108. package/dist/promises/index.js +4 -4
  109. package/dist/rzl-utils.global.js +2 -2
  110. package/dist/strings/index.cjs +23 -23
  111. package/dist/strings/index.d.ts +1 -1
  112. package/dist/strings/index.js +7 -7
  113. package/dist/tailwind/index.cjs +13 -13
  114. package/dist/tailwind/index.d.ts +1 -1
  115. package/dist/tailwind/index.js +5 -5
  116. package/dist/urls/index.cjs +23 -21
  117. package/dist/urls/index.d.ts +182 -114
  118. package/dist/urls/index.js +16 -14
  119. package/package.json +1 -1
  120. package/dist/chunk-KPCDDYTZ.js +0 -417
  121. package/dist/chunk-QAPYHLHC.cjs +0 -419
  122. package/dist/chunk-SGCN4ED4.cjs +0 -175
@@ -2,12 +2,12 @@
2
2
  * ====================================================
3
3
  * Rzl Utils-JS.
4
4
  * ----------------------------------------------------
5
- * Version: 3.8.0.
5
+ * Version: 3.9.0.
6
6
  * Author: Rizalvin Dwiky.
7
7
  * Repository: https://github.com/rzl-zone/utils-js.
8
8
  * ====================================================
9
9
  */
10
- import { isNonEmptyString, isPlainObject } from './chunk-3KTD3QDI.js';
10
+ import { isNonEmptyString, isPlainObject } from './chunk-J4TT33ZX.js';
11
11
 
12
12
  var normalizeSpaces = (value, options = {
13
13
  withTrim: true,
@@ -2,7 +2,7 @@
2
2
  * ====================================================
3
3
  * Rzl Utils-JS.
4
4
  * ----------------------------------------------------
5
- * Version: 3.8.0.
5
+ * Version: 3.9.0.
6
6
  * Author: Rizalvin Dwiky.
7
7
  * Repository: https://github.com/rzl-zone/utils-js.
8
8
  * ====================================================
@@ -2,28 +2,28 @@
2
2
  * ====================================================
3
3
  * Rzl Utils-JS.
4
4
  * ----------------------------------------------------
5
- * Version: 3.8.0.
5
+ * Version: 3.9.0.
6
6
  * Author: Rizalvin Dwiky.
7
7
  * Repository: https://github.com/rzl-zone/utils-js.
8
8
  * ====================================================
9
9
  */
10
10
  'use strict';
11
11
 
12
- var chunkATLFMKAF_cjs = require('./chunk-ATLFMKAF.cjs');
12
+ var chunkNAOVH4OH_cjs = require('./chunk-NAOVH4OH.cjs');
13
13
  var chunkBAV5T2E3_cjs = require('./chunk-BAV5T2E3.cjs');
14
- var chunkYC7AK3KX_cjs = require('./chunk-YC7AK3KX.cjs');
15
- var chunkF3WBQKRI_cjs = require('./chunk-F3WBQKRI.cjs');
14
+ var chunkH44QVAZL_cjs = require('./chunk-H44QVAZL.cjs');
15
+ var chunk7C7TQC5J_cjs = require('./chunk-7C7TQC5J.cjs');
16
16
 
17
17
  var parseCustomDate = (dateString, format) => {
18
- if (!chunkF3WBQKRI_cjs.isNonEmptyString(dateString) || !chunkF3WBQKRI_cjs.isNonEmptyString(format)) {
18
+ if (!chunk7C7TQC5J_cjs.isNonEmptyString(dateString) || !chunk7C7TQC5J_cjs.isNonEmptyString(format)) {
19
19
  throw new TypeError(
20
- `Parameter \`dateString\` and \`format\` must be of type \`string\` and not empty-string, but received: "['dateString': \`${chunkF3WBQKRI_cjs.getPreciseType(
20
+ `Parameter \`dateString\` and \`format\` must be of type \`string\` and not empty-string, but received: "['dateString': \`${chunk7C7TQC5J_cjs.getPreciseType(
21
21
  dateString
22
- )}\` - (current value: \`${chunkYC7AK3KX_cjs.safeStableStringify(dateString, {
22
+ )}\` - (current value: \`${chunkH44QVAZL_cjs.safeStableStringify(dateString, {
23
23
  keepUndefined: true
24
- })}\`), 'format': \`${chunkF3WBQKRI_cjs.getPreciseType(
24
+ })}\`), 'format': \`${chunk7C7TQC5J_cjs.getPreciseType(
25
25
  format
26
- )}\` - (current value: \`${chunkYC7AK3KX_cjs.safeStableStringify(format, {
26
+ )}\` - (current value: \`${chunkH44QVAZL_cjs.safeStableStringify(format, {
27
27
  keepUndefined: true
28
28
  })}\`)]".`
29
29
  );
@@ -47,45 +47,45 @@ var parseCustomDate = (dateString, format) => {
47
47
  };
48
48
 
49
49
  var validateJsonParsingOptions = (optionsValue = {}) => {
50
- chunkF3WBQKRI_cjs.assertIsPlainObject(optionsValue, {
50
+ chunk7C7TQC5J_cjs.assertIsPlainObject(optionsValue, {
51
51
  message: ({ currentType, validType }) => `Second parameter (\`options\`) must be of type \`${validType}\`, but received: \`${currentType}\`.`
52
52
  });
53
- const convertBooleans = chunkF3WBQKRI_cjs.hasOwnProp(optionsValue, "convertBooleans") ? optionsValue.convertBooleans : false;
54
- const convertDates = chunkF3WBQKRI_cjs.hasOwnProp(optionsValue, "convertDates") ? optionsValue.convertDates : false;
55
- const convertNumbers = chunkF3WBQKRI_cjs.hasOwnProp(optionsValue, "convertNumbers") ? optionsValue.convertNumbers : false;
56
- const loggingOnFail = chunkF3WBQKRI_cjs.hasOwnProp(optionsValue, "loggingOnFail") ? optionsValue.loggingOnFail : false;
57
- const removeEmptyArrays = chunkF3WBQKRI_cjs.hasOwnProp(optionsValue, "removeEmptyArrays") ? optionsValue.removeEmptyArrays : false;
58
- const removeEmptyObjects = chunkF3WBQKRI_cjs.hasOwnProp(optionsValue, "removeEmptyObjects") ? optionsValue.removeEmptyObjects : false;
59
- const removeNulls = chunkF3WBQKRI_cjs.hasOwnProp(optionsValue, "removeNulls") ? optionsValue.removeNulls : false;
60
- const removeUndefined = chunkF3WBQKRI_cjs.hasOwnProp(optionsValue, "removeUndefined") ? optionsValue.removeUndefined : false;
61
- const strictMode = chunkF3WBQKRI_cjs.hasOwnProp(optionsValue, "strictMode") ? optionsValue.strictMode : false;
62
- const checkSymbols = chunkF3WBQKRI_cjs.hasOwnProp(optionsValue, "checkSymbols") ? optionsValue.checkSymbols : false;
63
- const convertNaN = chunkF3WBQKRI_cjs.hasOwnProp(optionsValue, "convertNaN") ? optionsValue.convertNaN : false;
64
- const customDateFormats = chunkF3WBQKRI_cjs.hasOwnProp(optionsValue, "customDateFormats") ? optionsValue.customDateFormats : [];
65
- const onError = chunkF3WBQKRI_cjs.hasOwnProp(optionsValue, "onError") ? optionsValue.onError : chunkBAV5T2E3_cjs.noop;
66
- if (!(chunkF3WBQKRI_cjs.isBoolean(convertBooleans) && chunkF3WBQKRI_cjs.isBoolean(convertDates) && chunkF3WBQKRI_cjs.isBoolean(convertNumbers) && chunkF3WBQKRI_cjs.isBoolean(convertNaN) && chunkF3WBQKRI_cjs.isBoolean(checkSymbols) && chunkF3WBQKRI_cjs.isBoolean(loggingOnFail) && chunkF3WBQKRI_cjs.isBoolean(removeEmptyArrays) && chunkF3WBQKRI_cjs.isBoolean(removeEmptyObjects) && chunkF3WBQKRI_cjs.isBoolean(removeNulls) && chunkF3WBQKRI_cjs.isBoolean(removeUndefined) && chunkF3WBQKRI_cjs.isBoolean(strictMode) && chunkF3WBQKRI_cjs.isArray(customDateFormats) && chunkF3WBQKRI_cjs.isFunction(onError))) {
53
+ const convertBooleans = chunk7C7TQC5J_cjs.hasOwnProp(optionsValue, "convertBooleans") ? optionsValue.convertBooleans : false;
54
+ const convertDates = chunk7C7TQC5J_cjs.hasOwnProp(optionsValue, "convertDates") ? optionsValue.convertDates : false;
55
+ const convertNumbers = chunk7C7TQC5J_cjs.hasOwnProp(optionsValue, "convertNumbers") ? optionsValue.convertNumbers : false;
56
+ const loggingOnFail = chunk7C7TQC5J_cjs.hasOwnProp(optionsValue, "loggingOnFail") ? optionsValue.loggingOnFail : false;
57
+ const removeEmptyArrays = chunk7C7TQC5J_cjs.hasOwnProp(optionsValue, "removeEmptyArrays") ? optionsValue.removeEmptyArrays : false;
58
+ const removeEmptyObjects = chunk7C7TQC5J_cjs.hasOwnProp(optionsValue, "removeEmptyObjects") ? optionsValue.removeEmptyObjects : false;
59
+ const removeNulls = chunk7C7TQC5J_cjs.hasOwnProp(optionsValue, "removeNulls") ? optionsValue.removeNulls : false;
60
+ const removeUndefined = chunk7C7TQC5J_cjs.hasOwnProp(optionsValue, "removeUndefined") ? optionsValue.removeUndefined : false;
61
+ const strictMode = chunk7C7TQC5J_cjs.hasOwnProp(optionsValue, "strictMode") ? optionsValue.strictMode : false;
62
+ const checkSymbols = chunk7C7TQC5J_cjs.hasOwnProp(optionsValue, "checkSymbols") ? optionsValue.checkSymbols : false;
63
+ const convertNaN = chunk7C7TQC5J_cjs.hasOwnProp(optionsValue, "convertNaN") ? optionsValue.convertNaN : false;
64
+ const customDateFormats = chunk7C7TQC5J_cjs.hasOwnProp(optionsValue, "customDateFormats") ? optionsValue.customDateFormats : [];
65
+ const onError = chunk7C7TQC5J_cjs.hasOwnProp(optionsValue, "onError") ? optionsValue.onError : chunkBAV5T2E3_cjs.noop;
66
+ if (!(chunk7C7TQC5J_cjs.isBoolean(convertBooleans) && chunk7C7TQC5J_cjs.isBoolean(convertDates) && chunk7C7TQC5J_cjs.isBoolean(convertNumbers) && chunk7C7TQC5J_cjs.isBoolean(convertNaN) && chunk7C7TQC5J_cjs.isBoolean(checkSymbols) && chunk7C7TQC5J_cjs.isBoolean(loggingOnFail) && chunk7C7TQC5J_cjs.isBoolean(removeEmptyArrays) && chunk7C7TQC5J_cjs.isBoolean(removeEmptyObjects) && chunk7C7TQC5J_cjs.isBoolean(removeNulls) && chunk7C7TQC5J_cjs.isBoolean(removeUndefined) && chunk7C7TQC5J_cjs.isBoolean(strictMode) && chunk7C7TQC5J_cjs.isArray(customDateFormats) && chunk7C7TQC5J_cjs.isFunction(onError))) {
67
67
  throw new TypeError(
68
- `Invalid \`options\` parameter (second argument): \`convertBooleans\`, \`convertDates\`, \`convertNumbers\`, \`loggingOnFail\`, \`removeEmptyArrays\`, \`removeEmptyObjects\`, \`removeNulls\`, \`removeUndefined\`, \`strictMode\` expected to be a \`boolean\` type, \`customDateFormats\` expected to be a \`array\` type and \`onError\` expected to be a \`void function\` type. But received: ['convertBooleans': \`${chunkF3WBQKRI_cjs.getPreciseType(
68
+ `Invalid \`options\` parameter (second argument): \`convertBooleans\`, \`convertDates\`, \`convertNumbers\`, \`loggingOnFail\`, \`removeEmptyArrays\`, \`removeEmptyObjects\`, \`removeNulls\`, \`removeUndefined\`, \`strictMode\` expected to be a \`boolean\` type, \`customDateFormats\` expected to be a \`array\` type and \`onError\` expected to be a \`void function\` type. But received: ['convertBooleans': \`${chunk7C7TQC5J_cjs.getPreciseType(
69
69
  convertBooleans
70
- )}\`, 'convertDates': \`${chunkF3WBQKRI_cjs.getPreciseType(
70
+ )}\`, 'convertDates': \`${chunk7C7TQC5J_cjs.getPreciseType(
71
71
  convertDates
72
- )}\`, 'convertNumbers': \`${chunkF3WBQKRI_cjs.getPreciseType(
72
+ )}\`, 'convertNumbers': \`${chunk7C7TQC5J_cjs.getPreciseType(
73
73
  convertNumbers
74
- )}\`, 'loggingOnFail': \`${chunkF3WBQKRI_cjs.getPreciseType(
74
+ )}\`, 'loggingOnFail': \`${chunk7C7TQC5J_cjs.getPreciseType(
75
75
  loggingOnFail
76
- )}\`, 'removeEmptyArrays': \`${chunkF3WBQKRI_cjs.getPreciseType(
76
+ )}\`, 'removeEmptyArrays': \`${chunk7C7TQC5J_cjs.getPreciseType(
77
77
  removeEmptyArrays
78
- )}\`, 'removeEmptyObjects': \`${chunkF3WBQKRI_cjs.getPreciseType(
78
+ )}\`, 'removeEmptyObjects': \`${chunk7C7TQC5J_cjs.getPreciseType(
79
79
  removeEmptyObjects
80
- )}\`, 'removeNulls': \`${chunkF3WBQKRI_cjs.getPreciseType(
80
+ )}\`, 'removeNulls': \`${chunk7C7TQC5J_cjs.getPreciseType(
81
81
  removeNulls
82
- )}\`, 'removeUndefined': \`${chunkF3WBQKRI_cjs.getPreciseType(
82
+ )}\`, 'removeUndefined': \`${chunk7C7TQC5J_cjs.getPreciseType(
83
83
  removeUndefined
84
- )}\`, 'strictMode': \`${chunkF3WBQKRI_cjs.getPreciseType(
84
+ )}\`, 'strictMode': \`${chunk7C7TQC5J_cjs.getPreciseType(
85
85
  strictMode
86
- )}\`, 'customDateFormats': \`${chunkF3WBQKRI_cjs.getPreciseType(
86
+ )}\`, 'customDateFormats': \`${chunk7C7TQC5J_cjs.getPreciseType(
87
87
  customDateFormats
88
- )}\`, 'onError': \`${chunkF3WBQKRI_cjs.getPreciseType(onError)}\`].`
88
+ )}\`, 'onError': \`${chunk7C7TQC5J_cjs.getPreciseType(onError)}\`].`
89
89
  );
90
90
  }
91
91
  return {
@@ -107,9 +107,9 @@ var validateJsonParsingOptions = (optionsValue = {}) => {
107
107
 
108
108
  var cleanParsedData = (data, options = {}) => {
109
109
  const validOptions = validateJsonParsingOptions(options);
110
- if (chunkF3WBQKRI_cjs.isNull(data)) return validOptions.removeNulls ? void 0 : null;
111
- if (chunkF3WBQKRI_cjs.isUndefined(data)) return validOptions.removeUndefined ? void 0 : void 0;
112
- if (chunkF3WBQKRI_cjs.isString(data)) {
110
+ if (chunk7C7TQC5J_cjs.isNull(data)) return validOptions.removeNulls ? void 0 : null;
111
+ if (chunk7C7TQC5J_cjs.isUndefined(data)) return validOptions.removeUndefined ? void 0 : void 0;
112
+ if (chunk7C7TQC5J_cjs.isString(data)) {
113
113
  const trimmed = data.trim();
114
114
  if (validOptions.convertNaN && trimmed === "NaN") return NaN;
115
115
  if (validOptions.convertNumbers && !isNaN(Number(trimmed))) {
@@ -132,27 +132,27 @@ var cleanParsedData = (data, options = {}) => {
132
132
  }
133
133
  return validOptions.strictMode ? void 0 : trimmed;
134
134
  }
135
- if (chunkF3WBQKRI_cjs.isArray(data)) {
136
- const cleanedArray = data.map((item) => cleanParsedData(item, validOptions)).filter((item) => !chunkF3WBQKRI_cjs.isUndefined(item));
137
- return validOptions.removeEmptyArrays && chunkATLFMKAF_cjs.isEmptyArray(cleanedArray) ? void 0 : cleanedArray;
135
+ if (chunk7C7TQC5J_cjs.isArray(data)) {
136
+ const cleanedArray = data.map((item) => cleanParsedData(item, validOptions)).filter((item) => !chunk7C7TQC5J_cjs.isUndefined(item));
137
+ return validOptions.removeEmptyArrays && chunkNAOVH4OH_cjs.isEmptyArray(cleanedArray) ? void 0 : cleanedArray;
138
138
  }
139
- if (chunkF3WBQKRI_cjs.isObject(data)) {
139
+ if (chunk7C7TQC5J_cjs.isObject(data)) {
140
140
  const cleanedObject = {};
141
141
  for (const key in data) {
142
142
  if (Object.prototype.hasOwnProperty.call(data, key)) {
143
143
  const cleanedValue = cleanParsedData(data[key], validOptions);
144
- if (!chunkF3WBQKRI_cjs.isUndefined(cleanedValue)) {
144
+ if (!chunk7C7TQC5J_cjs.isUndefined(cleanedValue)) {
145
145
  cleanedObject[key] = cleanedValue;
146
146
  }
147
147
  }
148
148
  }
149
- return validOptions.removeEmptyObjects && chunkATLFMKAF_cjs.isEmptyObject(cleanedObject, { checkSymbols: validOptions.checkSymbols }) ? void 0 : cleanedObject;
149
+ return validOptions.removeEmptyObjects && chunkNAOVH4OH_cjs.isEmptyObject(cleanedObject, { checkSymbols: validOptions.checkSymbols }) ? void 0 : cleanedObject;
150
150
  }
151
151
  return validOptions.strictMode ? void 0 : data;
152
152
  };
153
153
 
154
154
  var extractDigits = (value) => {
155
- if (!chunkF3WBQKRI_cjs.isString(value) && !chunkF3WBQKRI_cjs.isNumber(value)) return 0;
155
+ if (!chunk7C7TQC5J_cjs.isString(value) && !chunk7C7TQC5J_cjs.isNumber(value)) return 0;
156
156
  const cleaned = String(value).trim().replace(/[^0-9]/g, "");
157
157
  return Number(cleaned) || 0;
158
158
  };
@@ -228,15 +228,15 @@ function fixSingleQuotesEscapeBackslash(input) {
228
228
  }
229
229
 
230
230
  function safeJsonParse(value, options = {}) {
231
- if (chunkF3WBQKRI_cjs.isNull(value)) return null;
231
+ if (chunk7C7TQC5J_cjs.isNull(value)) return null;
232
232
  const validOptions = validateJsonParsingOptions(options);
233
- if (validOptions.convertNaN && (chunkF3WBQKRI_cjs.isNaN(value) || chunkF3WBQKRI_cjs.isNonEmptyString(value) && value === "NaN")) {
233
+ if (validOptions.convertNaN && (chunk7C7TQC5J_cjs.isNaN(value) || chunk7C7TQC5J_cjs.isNonEmptyString(value) && value === "NaN")) {
234
234
  return NaN;
235
235
  }
236
- if (validOptions.convertNumbers && !chunkF3WBQKRI_cjs.isNaN(Number(value)) && chunkF3WBQKRI_cjs.isNumber(extractDigits(value))) {
236
+ if (validOptions.convertNumbers && !chunk7C7TQC5J_cjs.isNaN(Number(value)) && chunk7C7TQC5J_cjs.isNumber(extractDigits(value))) {
237
237
  return Number(value);
238
238
  }
239
- if (!chunkF3WBQKRI_cjs.isString(value)) return void 0;
239
+ if (!chunk7C7TQC5J_cjs.isString(value)) return void 0;
240
240
  try {
241
241
  let normalized = fixSingleQuotesEscapeBackslash(value);
242
242
  if (validOptions.removeUndefined) {
@@ -257,7 +257,7 @@ function safeJsonParse(value, options = {}) {
257
257
  console.error("Failed to parsing at `safeJsonParse`:", error);
258
258
  }
259
259
  validOptions.onError(
260
- chunkF3WBQKRI_cjs.isError(error) ? new Error(error.message.replace(/^JSON\.parse:/, "Failed to parsing")) : new Error(String(error))
260
+ chunk7C7TQC5J_cjs.isError(error) ? new Error(error.message.replace(/^JSON\.parse:/, "Failed to parsing")) : new Error(String(error))
261
261
  );
262
262
  return void 0;
263
263
  }
@@ -2,7 +2,7 @@
2
2
  * ====================================================
3
3
  * Rzl Utils-JS.
4
4
  * ----------------------------------------------------
5
- * Version: 3.8.0.
5
+ * Version: 3.9.0.
6
6
  * Author: Rizalvin Dwiky.
7
7
  * Repository: https://github.com/rzl-zone/utils-js.
8
8
  * ====================================================
@@ -2,12 +2,12 @@
2
2
  * ====================================================
3
3
  * Rzl Utils-JS.
4
4
  * ----------------------------------------------------
5
- * Version: 3.8.0.
5
+ * Version: 3.9.0.
6
6
  * Author: Rizalvin Dwiky.
7
7
  * Repository: https://github.com/rzl-zone/utils-js.
8
8
  * ====================================================
9
9
  */
10
- import { isArray, isObject, assertIsPlainObject, hasOwnProp, assertIsBoolean } from './chunk-3KTD3QDI.js';
10
+ import { isArray, isObject, assertIsPlainObject, hasOwnProp, assertIsBoolean } from './chunk-J4TT33ZX.js';
11
11
 
12
12
  var isEmptyArray = (value) => {
13
13
  if (!isArray(value)) return true;
@@ -2,14 +2,14 @@
2
2
  * ====================================================
3
3
  * Rzl Utils-JS.
4
4
  * ----------------------------------------------------
5
- * Version: 3.8.0.
5
+ * Version: 3.9.0.
6
6
  * Author: Rizalvin Dwiky.
7
7
  * Repository: https://github.com/rzl-zone/utils-js.
8
8
  * ====================================================
9
9
  */
10
- import { isEmptyString } from './chunk-JY4HLZ4W.js';
11
- import { assertIsArray } from './chunk-6WMB5AJR.js';
12
- import { isPlainObject, isNumber, isNonEmptyString, isFunction, hasOwnProp, isNonEmptyArray, getPreciseType, isString, isObjectOrArray, isStringObject, isNumberObject, isBooleanObject, isArray } from './chunk-3KTD3QDI.js';
10
+ import { isEmptyString } from './chunk-5O66AUEC.js';
11
+ import { assertIsArray } from './chunk-TXOVQZPU.js';
12
+ import { isPlainObject, isNumber, isNonEmptyString, isFunction, hasOwnProp, isNonEmptyArray, getPreciseType, isString, isObjectOrArray, isStringObject, isNumberObject, isBooleanObject, isArray } from './chunk-J4TT33ZX.js';
13
13
  import { getDefaultConfig, extendTailwindMerge } from 'tailwind-merge-v3';
14
14
  import { getDefaultConfig as getDefaultConfig$1, extendTailwindMerge as extendTailwindMerge$1 } from 'tailwind-merge-v4';
15
15
 
@@ -2,30 +2,30 @@
2
2
  * ====================================================
3
3
  * Rzl Utils-JS.
4
4
  * ----------------------------------------------------
5
- * Version: 3.8.0.
5
+ * Version: 3.9.0.
6
6
  * Author: Rizalvin Dwiky.
7
7
  * Repository: https://github.com/rzl-zone/utils-js.
8
8
  * ====================================================
9
9
  */
10
10
  'use strict';
11
11
 
12
- var chunkNREACG6M_cjs = require('./chunk-NREACG6M.cjs');
13
- var chunkATLFMKAF_cjs = require('./chunk-ATLFMKAF.cjs');
14
- var chunkF3WBQKRI_cjs = require('./chunk-F3WBQKRI.cjs');
12
+ var chunkFWWPEL7J_cjs = require('./chunk-FWWPEL7J.cjs');
13
+ var chunkNAOVH4OH_cjs = require('./chunk-NAOVH4OH.cjs');
14
+ var chunk7C7TQC5J_cjs = require('./chunk-7C7TQC5J.cjs');
15
15
 
16
16
  var isEmptyValue = (value, options = {}) => {
17
- chunkF3WBQKRI_cjs.assertIsPlainObject(options, {
17
+ chunk7C7TQC5J_cjs.assertIsPlainObject(options, {
18
18
  message: ({ currentType, validType }) => `Second parameter (\`options\`) must be of type \`${validType}\`, but received: \`${currentType}\`.`
19
19
  });
20
- const checkSymbols = chunkF3WBQKRI_cjs.hasOwnProp(options, "checkSymbols") ? options.checkSymbols : false;
21
- chunkF3WBQKRI_cjs.assertIsBoolean(checkSymbols, {
20
+ const checkSymbols = chunk7C7TQC5J_cjs.hasOwnProp(options, "checkSymbols") ? options.checkSymbols : false;
21
+ chunk7C7TQC5J_cjs.assertIsBoolean(checkSymbols, {
22
22
  message: ({ currentType, validType }) => `Parameter \`checkSymbols\` property of the \`options\` (second parameter) must be of type \`${validType}\`, but received: \`${currentType}\`.`
23
23
  });
24
- if (chunkF3WBQKRI_cjs.isNil(value) || value === false || chunkF3WBQKRI_cjs.isNaN(value)) return true;
25
- if (chunkF3WBQKRI_cjs.isString(value)) return chunkNREACG6M_cjs.isEmptyString(value);
26
- if (chunkF3WBQKRI_cjs.isArray(value)) return chunkATLFMKAF_cjs.isEmptyArray(value);
27
- if (chunkF3WBQKRI_cjs.isObject(value)) {
28
- return chunkATLFMKAF_cjs.isEmptyObject(value, { checkSymbols });
24
+ if (chunk7C7TQC5J_cjs.isNil(value) || value === false || chunk7C7TQC5J_cjs.isNaN(value)) return true;
25
+ if (chunk7C7TQC5J_cjs.isString(value)) return chunkFWWPEL7J_cjs.isEmptyString(value);
26
+ if (chunk7C7TQC5J_cjs.isArray(value)) return chunkNAOVH4OH_cjs.isEmptyArray(value);
27
+ if (chunk7C7TQC5J_cjs.isObject(value)) {
28
+ return chunkNAOVH4OH_cjs.isEmptyObject(value, { checkSymbols });
29
29
  }
30
30
  return false;
31
31
  };
@@ -2,20 +2,20 @@
2
2
  * ====================================================
3
3
  * Rzl Utils-JS.
4
4
  * ----------------------------------------------------
5
- * Version: 3.8.0.
5
+ * Version: 3.9.0.
6
6
  * Author: Rizalvin Dwiky.
7
7
  * Repository: https://github.com/rzl-zone/utils-js.
8
8
  * ====================================================
9
9
  */
10
10
  import { isURL } from './chunk-ONZFBJVW.js';
11
- import { isTypedArray } from './chunk-ZN53RM3R.js';
12
- import { parseCurrencyString } from './chunk-DPLL67OT.js';
13
- import { isEmptyString } from './chunk-JY4HLZ4W.js';
14
- import { assertIsString } from './chunk-FI76UZRF.js';
15
- import { isEqual, isRegExp, baseDeepEqual } from './chunk-SZJ7OI4S.js';
16
- import { isEmptyArray } from './chunk-VCVND6CH.js';
17
- import { safeStableStringify, isDate, isMap } from './chunk-2VO2CBTU.js';
18
- import { isArray, getPreciseType, assertIsBoolean, isNonEmptyString, assertIsPlainObject, isObjectOrArray, isFunction, isString, isNumber, isSymbol, isSet, isPlainObject, isNil, isBoolean, isBuffer, isNaN, isUndefined, isObject, isNull } from './chunk-3KTD3QDI.js';
11
+ import { isTypedArray } from './chunk-WRGN6UBK.js';
12
+ import { parseCurrencyString } from './chunk-EJV5AF4L.js';
13
+ import { isEmptyString } from './chunk-5O66AUEC.js';
14
+ import { assertIsString } from './chunk-OSSFLQDD.js';
15
+ import { isEqual, isRegExp, baseDeepEqual } from './chunk-J6VLFVIL.js';
16
+ import { isEmptyArray } from './chunk-M5QB2GM5.js';
17
+ import { safeStableStringify, isDate, isMap } from './chunk-X6ULJZ3X.js';
18
+ import { isArray, getPreciseType, assertIsBoolean, isNonEmptyString, assertIsPlainObject, isObjectOrArray, isFunction, isString, isNumber, isSymbol, isSet, isPlainObject, isNil, isBoolean, isBuffer, isNaN, isUndefined, isObject, isNull } from './chunk-J4TT33ZX.js';
19
19
 
20
20
  var areArraysEqual = (array1, array2, ignoreOrder = false) => {
21
21
  if (!(isArray(array1) && isArray(array2))) {
@@ -2,12 +2,12 @@
2
2
  * ====================================================
3
3
  * Rzl Utils-JS.
4
4
  * ----------------------------------------------------
5
- * Version: 3.8.0.
5
+ * Version: 3.9.0.
6
6
  * Author: Rizalvin Dwiky.
7
7
  * Repository: https://github.com/rzl-zone/utils-js.
8
8
  * ====================================================
9
9
  */
10
- import { isNumber } from './chunk-3KTD3QDI.js';
10
+ import { isNumber } from './chunk-J4TT33ZX.js';
11
11
 
12
12
  function isFinite(value) {
13
13
  return isNumber(value) && Number.isFinite(value);
@@ -2,29 +2,29 @@
2
2
  * ====================================================
3
3
  * Rzl Utils-JS.
4
4
  * ----------------------------------------------------
5
- * Version: 3.8.0.
5
+ * Version: 3.9.0.
6
6
  * Author: Rizalvin Dwiky.
7
7
  * Repository: https://github.com/rzl-zone/utils-js.
8
8
  * ====================================================
9
9
  */
10
10
  'use strict';
11
11
 
12
- var chunkF3WBQKRI_cjs = require('./chunk-F3WBQKRI.cjs');
12
+ var chunk7C7TQC5J_cjs = require('./chunk-7C7TQC5J.cjs');
13
13
 
14
14
  var isEmptyArray = (value) => {
15
- if (!chunkF3WBQKRI_cjs.isArray(value)) return true;
15
+ if (!chunk7C7TQC5J_cjs.isArray(value)) return true;
16
16
  return value.length === 0;
17
17
  };
18
18
 
19
19
  function isEmptyObject(value, options = {}) {
20
- if (!chunkF3WBQKRI_cjs.isObject(value)) {
20
+ if (!chunk7C7TQC5J_cjs.isObject(value)) {
21
21
  return true;
22
22
  }
23
- chunkF3WBQKRI_cjs.assertIsPlainObject(options, {
23
+ chunk7C7TQC5J_cjs.assertIsPlainObject(options, {
24
24
  message: ({ currentType, validType }) => `Second parameter (\`options\`) must be of type \`${validType}\`, but received: \`${currentType}\`.`
25
25
  });
26
- const checkSymbols = chunkF3WBQKRI_cjs.hasOwnProp(options, "checkSymbols") ? options.checkSymbols : false;
27
- chunkF3WBQKRI_cjs.assertIsBoolean(checkSymbols, {
26
+ const checkSymbols = chunk7C7TQC5J_cjs.hasOwnProp(options, "checkSymbols") ? options.checkSymbols : false;
27
+ chunk7C7TQC5J_cjs.assertIsBoolean(checkSymbols, {
28
28
  message: ({ currentType, validType }) => `Parameter \`checkSymbols\` property of the \`options\` (second parameter) must be of type \`${validType}\`, but received: \`${currentType}\`.`
29
29
  });
30
30
  const hasNoKeys = Object.keys(value).length === 0;
@@ -2,7 +2,7 @@
2
2
  * ====================================================
3
3
  * Rzl Utils-JS.
4
4
  * ----------------------------------------------------
5
- * Version: 3.8.0.
5
+ * Version: 3.9.0.
6
6
  * Author: Rizalvin Dwiky.
7
7
  * Repository: https://github.com/rzl-zone/utils-js.
8
8
  * ====================================================
@@ -10,11 +10,11 @@
10
10
  'use strict';
11
11
 
12
12
  var chunkDVMHRLKP_cjs = require('./chunk-DVMHRLKP.cjs');
13
- var chunkYC7AK3KX_cjs = require('./chunk-YC7AK3KX.cjs');
14
- var chunkF3WBQKRI_cjs = require('./chunk-F3WBQKRI.cjs');
13
+ var chunkH44QVAZL_cjs = require('./chunk-H44QVAZL.cjs');
14
+ var chunk7C7TQC5J_cjs = require('./chunk-7C7TQC5J.cjs');
15
15
 
16
16
  function getRandomItem(array) {
17
- if (!chunkF3WBQKRI_cjs.isNonEmptyArray(array)) return void 0;
17
+ if (!chunk7C7TQC5J_cjs.isNonEmptyArray(array)) return void 0;
18
18
  const randomIndex = Math.floor(Math.random() * (array.length || 0));
19
19
  return array[randomIndex];
20
20
  }
@@ -25,11 +25,11 @@ var randomInt = (min, max) => {
25
25
  `First parameter (\`min\`) and second parameter (\`max\`) must be of type \`integer-number\`${minValueNote(
26
26
  min,
27
27
  max
28
- )}value, but received: ['min': \`${chunkF3WBQKRI_cjs.getPreciseType(
28
+ )}value, but received: ['min': \`${chunk7C7TQC5J_cjs.getPreciseType(
29
29
  min
30
- )}\` - (with value: \`${chunkYC7AK3KX_cjs.safeStableStringify(min, {
30
+ )}\` - (with value: \`${chunkH44QVAZL_cjs.safeStableStringify(min, {
31
31
  keepUndefined: true
32
- })})\`, 'max': \`${chunkF3WBQKRI_cjs.getPreciseType(max)}\` - (with value: \`${chunkYC7AK3KX_cjs.safeStableStringify(
32
+ })})\`, 'max': \`${chunk7C7TQC5J_cjs.getPreciseType(max)}\` - (with value: \`${chunkH44QVAZL_cjs.safeStableStringify(
33
33
  max,
34
34
  {
35
35
  keepUndefined: true
@@ -41,9 +41,9 @@ var randomInt = (min, max) => {
41
41
  throw new RangeError(
42
42
  `First parameter (\`min\`) must be less than or equal to second parameter (\`max\`), but received: ['min': ${formatValue(
43
43
  min
44
- )} - (with value: \`${chunkYC7AK3KX_cjs.safeStableStringify(min, {
44
+ )} - (with value: \`${chunkH44QVAZL_cjs.safeStableStringify(min, {
45
45
  keepUndefined: true
46
- })})\`, 'max': ${formatValue(max)} - (with value: \`${chunkYC7AK3KX_cjs.safeStableStringify(max, {
46
+ })})\`, 'max': ${formatValue(max)} - (with value: \`${chunkH44QVAZL_cjs.safeStableStringify(max, {
47
47
  keepUndefined: true
48
48
  })})\`].`
49
49
  );
@@ -53,31 +53,31 @@ var randomInt = (min, max) => {
53
53
  return Math.floor(Math.random() * (max - min + 1)) + min;
54
54
  };
55
55
  var formatValue = (value) => {
56
- return chunkF3WBQKRI_cjs.isNumber(value, { includeNaN: true }) ? value === Number.MIN_VALUE ? "`Number.MIN_VALUE`" : `${value}` : `\`${chunkF3WBQKRI_cjs.getPreciseType(value)}\``;
56
+ return chunk7C7TQC5J_cjs.isNumber(value, { includeNaN: true }) ? value === Number.MIN_VALUE ? "`Number.MIN_VALUE`" : `${value}` : `\`${chunk7C7TQC5J_cjs.getPreciseType(value)}\``;
57
57
  };
58
58
  var minValueNote = (...values) => {
59
- return values.some((v) => chunkF3WBQKRI_cjs.isNumber(v, { includeNaN: true }) && v === Number.MIN_VALUE) ? " and can't be `Number.MIN_VALUE` " : " ";
59
+ return values.some((v) => chunk7C7TQC5J_cjs.isNumber(v, { includeNaN: true }) && v === Number.MIN_VALUE) ? " and can't be `Number.MIN_VALUE` " : " ";
60
60
  };
61
61
 
62
62
  var randomIntByLength = (options) => {
63
- if (!chunkF3WBQKRI_cjs.isPlainObject(options)) {
63
+ if (!chunk7C7TQC5J_cjs.isPlainObject(options)) {
64
64
  options = {};
65
65
  }
66
66
  const { minLength = 1, maxLength = 16, avoidZero = false } = options;
67
- chunkF3WBQKRI_cjs.assertIsBoolean(avoidZero, {
67
+ chunk7C7TQC5J_cjs.assertIsBoolean(avoidZero, {
68
68
  message({ currentType, validType }) {
69
69
  return `Parameters \`avoidZero\` must be of type \`${validType}\`, but received: \`${currentType}\`.`;
70
70
  }
71
71
  });
72
72
  if (!chunkDVMHRLKP_cjs.isInteger(minLength) || !chunkDVMHRLKP_cjs.isInteger(maxLength)) {
73
73
  throw new TypeError(
74
- `Parameters \`minLength\` and \`maxLength\` must be of type \`integer-number\`, but received: ['minLength': \`${chunkF3WBQKRI_cjs.getPreciseType(
74
+ `Parameters \`minLength\` and \`maxLength\` must be of type \`integer-number\`, but received: ['minLength': \`${chunk7C7TQC5J_cjs.getPreciseType(
75
75
  minLength
76
- )}\` - (with value: ${chunkYC7AK3KX_cjs.safeStableStringify(minLength, {
76
+ )}\` - (with value: ${chunkH44QVAZL_cjs.safeStableStringify(minLength, {
77
77
  keepUndefined: true
78
- })}), 'maxLength': \`${chunkF3WBQKRI_cjs.getPreciseType(
78
+ })}), 'maxLength': \`${chunk7C7TQC5J_cjs.getPreciseType(
79
79
  maxLength
80
- )}\` - (with value: ${chunkYC7AK3KX_cjs.safeStableStringify(maxLength, {
80
+ )}\` - (with value: ${chunkH44QVAZL_cjs.safeStableStringify(maxLength, {
81
81
  keepUndefined: true
82
82
  })})].`
83
83
  );
@@ -98,7 +98,7 @@ var randomIntByLength = (options) => {
98
98
  };
99
99
 
100
100
  var randomStr = (options) => {
101
- if (!chunkF3WBQKRI_cjs.isPlainObject(options)) {
101
+ if (!chunk7C7TQC5J_cjs.isPlainObject(options)) {
102
102
  options = {};
103
103
  }
104
104
  const {
@@ -107,20 +107,20 @@ var randomStr = (options) => {
107
107
  type = "string",
108
108
  avoidWhiteSpace = true
109
109
  } = options;
110
- chunkF3WBQKRI_cjs.assertIsBoolean(avoidWhiteSpace, {
110
+ chunk7C7TQC5J_cjs.assertIsBoolean(avoidWhiteSpace, {
111
111
  message({ currentType, validType }) {
112
112
  return `Parameters \`avoidWhiteSpace\` property of the \`options\` (first-parameter) must be of type \`${validType}\`, but received: \`${currentType}\`.`;
113
113
  }
114
114
  });
115
115
  if (!chunkDVMHRLKP_cjs.isInteger(minLength) || !chunkDVMHRLKP_cjs.isInteger(maxLength)) {
116
116
  throw new TypeError(
117
- `Parameters \`minLength\` and \`maxLength\` must be of type \`integer-number\`, but received: ['minLength': \`${chunkF3WBQKRI_cjs.getPreciseType(
117
+ `Parameters \`minLength\` and \`maxLength\` must be of type \`integer-number\`, but received: ['minLength': \`${chunk7C7TQC5J_cjs.getPreciseType(
118
118
  minLength
119
- )}\` - (with value: ${chunkYC7AK3KX_cjs.safeStableStringify(minLength, {
119
+ )}\` - (with value: ${chunkH44QVAZL_cjs.safeStableStringify(minLength, {
120
120
  keepUndefined: true
121
- })}), 'maxLength': \`${chunkF3WBQKRI_cjs.getPreciseType(
121
+ })}), 'maxLength': \`${chunk7C7TQC5J_cjs.getPreciseType(
122
122
  maxLength
123
- )}\` - (with value: ${chunkYC7AK3KX_cjs.safeStableStringify(maxLength, {
123
+ )}\` - (with value: ${chunkH44QVAZL_cjs.safeStableStringify(maxLength, {
124
124
  keepUndefined: true
125
125
  })})].`
126
126
  );
@@ -132,9 +132,9 @@ var randomStr = (options) => {
132
132
  }
133
133
  if (type !== "string" && type !== "number") {
134
134
  throw new TypeError(
135
- `Parameter \`type\` must be of type \`string\` with value one of "string" | "number", but received: \`${chunkF3WBQKRI_cjs.getPreciseType(
135
+ `Parameter \`type\` must be of type \`string\` with value one of "string" | "number", but received: \`${chunk7C7TQC5J_cjs.getPreciseType(
136
136
  type
137
- )}\`, with value: ${chunkYC7AK3KX_cjs.safeStableStringify(type, {
137
+ )}\`, with value: ${chunkH44QVAZL_cjs.safeStableStringify(type, {
138
138
  keepUndefined: true
139
139
  })}.`
140
140
  );
@@ -145,7 +145,7 @@ var randomStr = (options) => {
145
145
  };
146
146
  const defaultNumberSet = "0123456789";
147
147
  const defaultStringSet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
148
- const baseCharSet = type === "number" ? (!chunkF3WBQKRI_cjs.isNaN(Number(options.replaceGenInt)) ? options.replaceGenInt : void 0) ?? defaultNumberSet : (options.replaceGenStr ? options.replaceGenStr : void 0) ?? defaultStringSet;
148
+ const baseCharSet = type === "number" ? (!chunk7C7TQC5J_cjs.isNaN(Number(options.replaceGenInt)) ? options.replaceGenInt : void 0) ?? defaultNumberSet : (options.replaceGenStr ? options.replaceGenStr : void 0) ?? defaultStringSet;
149
149
  const characterSet = cleanCharacters(baseCharSet) + (options.addChar || "");
150
150
  if (!characterSet.length) {
151
151
  const errCharSet = () => {
@@ -167,24 +167,24 @@ var randomStr = (options) => {
167
167
  };
168
168
 
169
169
  function randomUUID(options = {}) {
170
- if (!chunkF3WBQKRI_cjs.isPlainObject(options)) {
170
+ if (!chunk7C7TQC5J_cjs.isPlainObject(options)) {
171
171
  throw new TypeError(
172
- `First parameter (\`options\`) must be a plain object with optional properties \`version\` and \`monotonic\`, but received: \`${chunkF3WBQKRI_cjs.getPreciseType(
172
+ `First parameter (\`options\`) must be a plain object with optional properties \`version\` and \`monotonic\`, but received: \`${chunk7C7TQC5J_cjs.getPreciseType(
173
173
  options
174
- )}\` - (with value: \`${chunkYC7AK3KX_cjs.safeStableStringify(options, { keepUndefined: true })}\`).`
174
+ )}\` - (with value: \`${chunkH44QVAZL_cjs.safeStableStringify(options, { keepUndefined: true })}\`).`
175
175
  );
176
176
  }
177
177
  const { version = "v4", monotonic = false } = options;
178
- if (!chunkF3WBQKRI_cjs.isNonEmptyString(version)) {
178
+ if (!chunk7C7TQC5J_cjs.isNonEmptyString(version)) {
179
179
  throw new TypeError(
180
- `Parameter \`version\` property of the \`options\` (first parameter) must be a \`string\` of either "v4" or "v7", but received type: \`${chunkF3WBQKRI_cjs.getPreciseType(
180
+ `Parameter \`version\` property of the \`options\` (first parameter) must be a \`string\` of either "v4" or "v7", but received type: \`${chunk7C7TQC5J_cjs.getPreciseType(
181
181
  version
182
- )}\` - (with value: \`${chunkYC7AK3KX_cjs.safeStableStringify(version, { keepUndefined: true })}\`).`
182
+ )}\` - (with value: \`${chunkH44QVAZL_cjs.safeStableStringify(version, { keepUndefined: true })}\`).`
183
183
  );
184
184
  }
185
185
  if (version !== "v4" && version !== "v7") {
186
186
  throw new RangeError(
187
- `Unsupported UUID version. Allowed values are "v4" or "v7". (received: \`${chunkYC7AK3KX_cjs.safeStableStringify(
187
+ `Unsupported UUID version. Allowed values are "v4" or "v7". (received: \`${chunkH44QVAZL_cjs.safeStableStringify(
188
188
  version,
189
189
  {
190
190
  keepUndefined: true
@@ -192,18 +192,18 @@ function randomUUID(options = {}) {
192
192
  )}\`).`
193
193
  );
194
194
  }
195
- if (!chunkF3WBQKRI_cjs.isBoolean(monotonic)) {
195
+ if (!chunk7C7TQC5J_cjs.isBoolean(monotonic)) {
196
196
  throw new TypeError(
197
- `Parameter \`monotonic\` property of the \`options\` (first parameter) must be a \`boolean\` when provided, but received type: \`${chunkF3WBQKRI_cjs.getPreciseType(
197
+ `Parameter \`monotonic\` property of the \`options\` (first parameter) must be a \`boolean\` when provided, but received type: \`${chunk7C7TQC5J_cjs.getPreciseType(
198
198
  monotonic
199
- )}\` - (with value: \`${chunkYC7AK3KX_cjs.safeStableStringify(monotonic, {
199
+ )}\` - (with value: \`${chunkH44QVAZL_cjs.safeStableStringify(monotonic, {
200
200
  keepUndefined: true
201
201
  })}\`).`
202
202
  );
203
203
  }
204
204
  if (monotonic && version !== "v7") {
205
205
  throw new TypeError(
206
- `Parameter \`monotonic\` property of the \`options\` (first parameter) is only supported for version "v7". Received: version=${chunkYC7AK3KX_cjs.safeStableStringify(
206
+ `Parameter \`monotonic\` property of the \`options\` (first parameter) is only supported for version "v7". Received: version=${chunkH44QVAZL_cjs.safeStableStringify(
207
207
  version,
208
208
  { keepUndefined: true }
209
209
  )}.`