@rzl-zone/utils-js 3.0.2-beta.2 → 3.1.0-beta.2

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 (152) hide show
  1. package/dist/assertions/index.cjs +1 -1
  2. package/dist/assertions/index.d.ts +96 -116
  3. package/dist/assertions/index.js +1 -1
  4. package/dist/chunk-25G6B35W.js +1 -0
  5. package/dist/chunk-2AUUPGMN.js +1 -0
  6. package/dist/chunk-2JQQQ625.js +1 -0
  7. package/dist/chunk-445TAVT4.cjs +1 -0
  8. package/dist/chunk-467VEMJH.js +1 -0
  9. package/dist/chunk-6Q4I2RPC.cjs +1 -0
  10. package/dist/chunk-6SMJMZ7G.cjs +1 -0
  11. package/dist/chunk-BLCANGFS.js +1 -0
  12. package/dist/chunk-CK3BZGEU.js +1 -0
  13. package/dist/{chunk-JWHM3WZQ.cjs → chunk-D43GV6EF.cjs} +1 -1
  14. package/dist/chunk-DFSTVQFI.cjs +1 -0
  15. package/dist/chunk-DYRDBYPF.cjs +1 -0
  16. package/dist/chunk-EXXLUO7L.cjs +1 -0
  17. package/dist/chunk-G72VSVGO.js +1 -0
  18. package/dist/chunk-GAJTFCUA.js +1 -0
  19. package/dist/chunk-GOJNH55O.cjs +1 -0
  20. package/dist/chunk-HXST7RJB.js +1 -0
  21. package/dist/{chunk-BYZAD3XN.cjs → chunk-HXTACM3O.cjs} +1 -1
  22. package/dist/chunk-IJTZWWRJ.cjs +1 -0
  23. package/dist/chunk-ISJ33O2J.cjs +1 -0
  24. package/dist/chunk-JISH2VGG.js +1 -0
  25. package/dist/{chunk-FF76ISQ2.js → chunk-JQZUWBIX.js} +1 -1
  26. package/dist/{chunk-XH6MCRLP.js → chunk-K4PLGD7C.js} +1 -1
  27. package/dist/chunk-KZQB7H4E.cjs +1 -0
  28. package/dist/chunk-LUVV5KSD.cjs +2 -0
  29. package/dist/chunk-LVUSFXQS.cjs +1 -0
  30. package/dist/chunk-ME5OV5HN.js +1 -0
  31. package/dist/chunk-MF5Y5K4N.cjs +1 -0
  32. package/dist/chunk-MJAW5RAK.js +1 -0
  33. package/dist/chunk-MWLEM7ED.js +1 -0
  34. package/dist/chunk-NSVLG7NY.js +4 -0
  35. package/dist/chunk-NUHOOAUN.cjs +1 -0
  36. package/dist/chunk-NUVGETPD.js +2 -0
  37. package/dist/chunk-O5VXBNUQ.cjs +4 -0
  38. package/dist/chunk-O7SJR4CY.cjs +1 -0
  39. package/dist/chunk-OX6RLS2F.cjs +1 -0
  40. package/dist/chunk-PFLNHD4B.cjs +1 -0
  41. package/dist/chunk-PSWITZK5.js +1 -0
  42. package/dist/chunk-PYUVKHUF.cjs +1 -0
  43. package/dist/chunk-REFMEB4A.js +1 -0
  44. package/dist/chunk-RHE3M2NJ.cjs +1 -0
  45. package/dist/chunk-RHIBYOFQ.js +1 -0
  46. package/dist/chunk-S7GMG4TB.js +1 -0
  47. package/dist/chunk-TQMZ2LPI.js +1 -0
  48. package/dist/{chunk-RN3TP3S3.js → chunk-U4TZO7WV.js} +1 -1
  49. package/dist/chunk-UUMKL74S.js +1 -0
  50. package/dist/{chunk-EXZ47NOW.js → chunk-VQLAPEL3.js} +1 -1
  51. package/dist/chunk-VTR75UID.cjs +1 -0
  52. package/dist/chunk-XFCJDSB2.cjs +1 -0
  53. package/dist/chunk-XOYX4PLZ.cjs +1 -0
  54. package/dist/chunk-Z6FLCEN6.js +1 -0
  55. package/dist/chunk-ZO5364A6.cjs +1 -0
  56. package/dist/conversions/index.cjs +1 -1
  57. package/dist/conversions/index.d.ts +396 -593
  58. package/dist/conversions/index.js +1 -1
  59. package/dist/env/index.d.ts +5 -8
  60. package/dist/events/index.cjs +1 -1
  61. package/dist/events/index.d.ts +80 -77
  62. package/dist/events/index.js +1 -1
  63. package/dist/{array-CIZRbqTF.d.ts → extends-Bk_SBGdT.d.ts} +145 -1
  64. package/dist/formatting/index.cjs +1 -1
  65. package/dist/formatting/index.d.ts +478 -440
  66. package/dist/formatting/index.js +1 -1
  67. package/dist/generator/index.cjs +1 -1
  68. package/dist/generator/index.d.ts +135 -112
  69. package/dist/generator/index.js +1 -1
  70. package/dist/index.cjs +1 -1
  71. package/dist/index.d.ts +1 -1
  72. package/dist/index.js +1 -1
  73. package/dist/{is-array-Ckm_47hw.d.ts → is-array--YjXV-Wx.d.ts} +2 -352
  74. package/dist/{isPlainObject-BKYaI6a8.d.ts → isPlainObject-BVhBAPHX.d.ts} +49 -62
  75. package/dist/next/index.cjs +6 -6
  76. package/dist/next/index.d.ts +125 -105
  77. package/dist/next/index.js +5 -5
  78. package/dist/next/server/index.cjs +1 -1
  79. package/dist/next/server/index.d.ts +8 -22
  80. package/dist/next/server/index.js +1 -1
  81. package/dist/operations/index.cjs +1 -1
  82. package/dist/operations/index.d.ts +72 -127
  83. package/dist/operations/index.js +1 -1
  84. package/dist/parsers/index.cjs +1 -1
  85. package/dist/parsers/index.d.ts +26 -27
  86. package/dist/parsers/index.js +1 -1
  87. package/dist/predicates/index.cjs +1 -1
  88. package/dist/predicates/index.d.ts +686 -660
  89. package/dist/predicates/index.js +1 -1
  90. package/dist/promise/index.cjs +1 -1
  91. package/dist/promise/index.d.ts +14 -23
  92. package/dist/promise/index.js +1 -1
  93. package/dist/rzl-utils.global.js +3 -3
  94. package/dist/string-XA-til3C.d.ts +351 -0
  95. package/dist/strings/index.cjs +1 -1
  96. package/dist/strings/index.d.ts +301 -376
  97. package/dist/strings/index.js +1 -1
  98. package/dist/stylings/index.cjs +1 -1
  99. package/dist/stylings/index.d.ts +15 -23
  100. package/dist/stylings/index.js +1 -1
  101. package/dist/types/index.d.ts +1 -1
  102. package/dist/urls/index.cjs +1 -1
  103. package/dist/urls/index.d.ts +276 -301
  104. package/dist/urls/index.js +1 -1
  105. package/package.json +53 -11
  106. package/dist/chunk-2TRAPBZ7.cjs +0 -1
  107. package/dist/chunk-3D74QO5D.cjs +0 -1
  108. package/dist/chunk-4DK3RCC4.js +0 -2
  109. package/dist/chunk-4JOQ45HL.js +0 -1
  110. package/dist/chunk-55CZALRS.js +0 -1
  111. package/dist/chunk-5JFV3GDE.cjs +0 -4
  112. package/dist/chunk-62HX5Z45.cjs +0 -1
  113. package/dist/chunk-7NA6DUHR.cjs +0 -2
  114. package/dist/chunk-BVPMMWDL.cjs +0 -1
  115. package/dist/chunk-CEFYHEM4.cjs +0 -1
  116. package/dist/chunk-CN53M4QZ.cjs +0 -1
  117. package/dist/chunk-D47MHBSD.cjs +0 -1
  118. package/dist/chunk-DGH75GJD.js +0 -1
  119. package/dist/chunk-E5NUI7PN.js +0 -1
  120. package/dist/chunk-FDITZ5C6.cjs +0 -1
  121. package/dist/chunk-FSSV24W7.cjs +0 -1
  122. package/dist/chunk-GCGU2WB7.js +0 -1
  123. package/dist/chunk-GECI2YBP.js +0 -1
  124. package/dist/chunk-GQE4OVHC.cjs +0 -1
  125. package/dist/chunk-GRVZXQXL.cjs +0 -1
  126. package/dist/chunk-I4AVNHPA.cjs +0 -1
  127. package/dist/chunk-JFRL7NKU.js +0 -4
  128. package/dist/chunk-KCQDDZJE.cjs +0 -1
  129. package/dist/chunk-L54ZPSYJ.js +0 -1
  130. package/dist/chunk-LVKAYEZ4.js +0 -1
  131. package/dist/chunk-MBDWTK54.cjs +0 -1
  132. package/dist/chunk-MNGGDB2G.js +0 -1
  133. package/dist/chunk-MY7BA4GI.cjs +0 -1
  134. package/dist/chunk-N2IJPIND.cjs +0 -1
  135. package/dist/chunk-NIMNTEGV.js +0 -1
  136. package/dist/chunk-PVJF2JHM.js +0 -1
  137. package/dist/chunk-QCFXEUKL.js +0 -1
  138. package/dist/chunk-QFCGBBSY.js +0 -1
  139. package/dist/chunk-QQYAUPSK.cjs +0 -1
  140. package/dist/chunk-TC4VBE4Y.cjs +0 -1
  141. package/dist/chunk-TUXDINHF.cjs +0 -1
  142. package/dist/chunk-U5Y2FXMN.cjs +0 -1
  143. package/dist/chunk-UUPQI6ND.cjs +0 -1
  144. package/dist/chunk-VYCGZ2S6.js +0 -1
  145. package/dist/chunk-W5EDKJK3.js +0 -1
  146. package/dist/chunk-WHAVUFEU.js +0 -1
  147. package/dist/chunk-XCFIOTCV.js +0 -1
  148. package/dist/chunk-XE27XPJR.js +0 -1
  149. package/dist/chunk-XVB3ZZEB.js +0 -1
  150. package/dist/chunk-ZBSIGJFO.cjs +0 -1
  151. package/dist/chunk-ZYAML74V.js +0 -1
  152. package/dist/extends-Mp81Hq9-.d.ts +0 -145
@@ -1 +1 @@
1
- 'use strict';var chunkI4AVNHPA_cjs=require('../chunk-I4AVNHPA.cjs'),chunk62HX5Z45_cjs=require('../chunk-62HX5Z45.cjs'),chunkBVPMMWDL_cjs=require('../chunk-BVPMMWDL.cjs');require('../chunk-7YWAQOA4.cjs');var chunkCN53M4QZ_cjs=require('../chunk-CN53M4QZ.cjs');Object.defineProperty(exports,"assertIsBigInt",{enumerable:true,get:function(){return chunkI4AVNHPA_cjs.a}});Object.defineProperty(exports,"assertIsNumber",{enumerable:true,get:function(){return chunkI4AVNHPA_cjs.b}});Object.defineProperty(exports,"assertIsArray",{enumerable:true,get:function(){return chunk62HX5Z45_cjs.a}});Object.defineProperty(exports,"assertIsString",{enumerable:true,get:function(){return chunkBVPMMWDL_cjs.a}});Object.defineProperty(exports,"assertIsBoolean",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.G}});Object.defineProperty(exports,"assertIsPlainObject",{enumerable:true,get:function(){return chunkCN53M4QZ_cjs.m}});
1
+ 'use strict';var chunkDFSTVQFI_cjs=require('../chunk-DFSTVQFI.cjs'),chunkISJ33O2J_cjs=require('../chunk-ISJ33O2J.cjs'),chunkDYRDBYPF_cjs=require('../chunk-DYRDBYPF.cjs');require('../chunk-7YWAQOA4.cjs');var chunkLVUSFXQS_cjs=require('../chunk-LVUSFXQS.cjs');Object.defineProperty(exports,"assertIsBigInt",{enumerable:true,get:function(){return chunkDFSTVQFI_cjs.a}});Object.defineProperty(exports,"assertIsNumber",{enumerable:true,get:function(){return chunkDFSTVQFI_cjs.b}});Object.defineProperty(exports,"assertIsArray",{enumerable:true,get:function(){return chunkISJ33O2J_cjs.a}});Object.defineProperty(exports,"assertIsString",{enumerable:true,get:function(){return chunkDYRDBYPF_cjs.a}});Object.defineProperty(exports,"assertIsBoolean",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.G}});Object.defineProperty(exports,"assertIsPlainObject",{enumerable:true,get:function(){return chunkLVUSFXQS_cjs.j}});
@@ -1,4 +1,4 @@
1
- import{G as GetPreciseTypeOptions,I as IsNumberOptions,a as IsPlainObjectResult}from'../isPlainObject-BKYaI6a8.js';import'../type-data-DDs-u2kq.js';
1
+ import{G as GetPreciseTypeOptions,I as IsNumberOptions,a as IsPlainObjectResult}from'../isPlainObject-BVhBAPHX.js';import'../type-data-DDs-u2kq.js';
2
2
  /** -------------------------------------------------------
3
3
  * * ***Shape of the object passed to custom error message functions.***
4
4
  * -------------------------------------------------------
@@ -27,8 +27,11 @@ currentType:string;
27
27
  * - Example: `"boolean"`, `"string"`, `"big-int"`, `"plain-object"`, (will force format to `kebab-case`).
28
28
  */
29
29
  validType:string;};type AssertIsOptions={
30
- /** Custom error message for assertion failures.
30
+ /** -------------------------------------------------------
31
+ * * ***Custom error message for assertion failures.***
32
+ * -------------------------------------------------------
31
33
  *
34
+ * @description
32
35
  * This option allows overriding the **default error message** when a value
33
36
  * does not match the required type.
34
37
  *
@@ -57,26 +60,22 @@ validType:string;};type AssertIsOptions={
57
60
  */
58
61
  message?:string|(({currentType,validType}:AssertIsOptionsMessageFunction)=>string);}& GetPreciseTypeOptions;
59
62
  /** -------------------------------------------------------
60
- * * ***Asserts that a value is of type `boolean`.***
63
+ * * ***Type guard assertion: `assertIsBoolean`.***
61
64
  * -------------------------------------------------------
62
- * Validates that the given `value` is a **boolean**.
63
- *
64
- * - If `value` is a boolean execution continues normally.
65
- * - ❌ If `value` is not a boolean → throws a `TypeError` with either:
66
- * - A custom error message (`options.message`), or
67
- * - A default message including the actual type.
68
- *
69
- * This function is an **assertion function**.
70
- * After it returns successfully, TypeScript narrows the type of `value` to `boolean`.
71
- *
72
- * @param value - The value to validate.
73
- * @param options - Optional configuration:
74
- * - `message`: A custom error message (string or function).
65
+ * **This function is an **assertion function**.**
66
+ * - Validates that the given `value` is a **boolean**.
67
+ * - After it returns successfully, TypeScript narrows the type of `value` to `boolean`.
68
+ * - **Behavior:**
69
+ * - If `value` is a `boolean` ➔ execution continues normally.
70
+ * - If `value` is not a `boolean` ➔ throws a `TypeError` with either:
71
+ * - A custom error message (`options.message`), or
72
+ * - A default message including the actual type.
73
+ * @param {*} value - The value to validate.
74
+ * @param {AssertIsOptions|undefined} options - Optional configuration:
75
+ * - `message`: A custom error message (`string` or `function`).
75
76
  * - `formatCase`: Controls type formatting (from `GetPreciseTypeOptions`).
76
- *
77
- * @returns {asserts value is boolean} Narrows `value` to `boolean` if no error is thrown.
77
+ * @returns {boolean} Narrows `value` to `boolean` if no error is thrown.
78
78
  * @throws {TypeError} If the value is not a boolean.
79
- *
80
79
  * @example
81
80
  * ```ts
82
81
  * // ✅ Simple usage
@@ -99,12 +98,10 @@ message?:string|(({currentType,validType}:AssertIsOptionsMessageFunction)=>strin
99
98
  * });
100
99
  * // ➔ TypeError: "Expected boolean but got (big-int)."
101
100
  * ```
102
- *
103
101
  * -------------------------------------------------------
104
102
  * ✅ ***Real-world usage example***:
105
103
  * ```ts
106
104
  * type User = { name: string; email: string };
107
- *
108
105
  * const mixedValue: string | User | boolean | number | undefined = getUserInput();
109
106
  *
110
107
  * // ❌ Throws if not boolean
@@ -117,31 +114,25 @@ message?:string|(({currentType,validType}:AssertIsOptionsMessageFunction)=>strin
117
114
  */
118
115
  declare const assertIsBoolean:(value:unknown,options?:AssertIsOptions)=>asserts value is boolean;
119
116
  /** -------------------------------------------------------
120
- * * ***Asserts that a value is of type `bigint`.***
117
+ * * ***Type guard assertion: `assertIsBigInt`.***
121
118
  * -------------------------------------------------------
122
- * Validates that the given `value` is a **bigint**.
123
- *
124
- * - If `value` is a bigint execution continues normally.
125
- * - ❌ If `value` is not a bigint → throws a `TypeError` with either:
126
- * - A custom error message (`options.message`), or
127
- * - A default message including the actual type.
128
- *
129
- * This function is an **assertion function**.
130
- * After it returns successfully, TypeScript narrows the type of `value` to `bigint`.
131
- *
132
- * ℹ️ Note:
133
- * - A `bigint` refers strictly to the JavaScript `bigint` primitive type
134
- * (e.g., `123n`, `0n`, `-999999999999999999999n`).
135
- * - This excludes `BigInt` objects created with `Object(BigInt(123))`.
136
- *
137
- * @param value - The value to validate.
138
- * @param options - Optional configuration:
139
- * - `message`: A custom error message (string or function).
119
+ * **This function is an **assertion function**.**
120
+ * - Validates that the given `value` is a **bigint**.
121
+ * - After it returns successfully, TypeScript narrows the type of `value` to `bigint`.
122
+ * - **Behavior:**
123
+ * - If `value` is a `bigint` ➔ execution continues normally.
124
+ * - If `value` is not a `bigint` ➔ throws a `TypeError` with either:
125
+ * - A custom error message (`options.message`), or
126
+ * - A default message including the actual type.
127
+ * - **ℹ️ Note:**
128
+ * - A `bigint` refers strictly to the JavaScript `bigint` primitive type (e.g., `123n`, `0n`, `-999999999999999999999n`).
129
+ * - This excludes `BigInt` objects created with `Object(BigInt(123))`.
130
+ * @param {*} value - The value to validate.
131
+ * @param {AssertIsOptions|undefined} options - Optional configuration:
132
+ * - `message`: A custom error message (`string` or `function`).
140
133
  * - `formatCase`: Controls type formatting (from `GetPreciseTypeOptions`).
141
- *
142
- * @returns {asserts value is bigint} Narrows `value` to `bigint` if no error is thrown.
134
+ * @returns {boolean} Narrows `value` to `bigint` if no error is thrown.
143
135
  * @throws {TypeError} If the value is not a bigint.
144
- *
145
136
  * @example
146
137
  * ```ts
147
138
  * // ✅ Simple usage
@@ -164,7 +155,6 @@ declare const assertIsBoolean:(value:unknown,options?:AssertIsOptions)=>asserts
164
155
  * });
165
156
  * // ➔ TypeError: "Expected bigint but got (number)."
166
157
  * ```
167
- *
168
158
  * -------------------------------------------------------
169
159
  * ✅ ***Real-world usage example***:
170
160
  * ```ts
@@ -181,34 +171,27 @@ declare const assertIsBoolean:(value:unknown,options?:AssertIsOptions)=>asserts
181
171
  */
182
172
  declare const assertIsBigInt:(value:unknown,options?:AssertIsOptions)=>asserts value is bigint;type AssertIsNumberOptions=AssertIsOptions & IsNumberOptions;
183
173
  /** -------------------------------------------------------
184
- * * ***Asserts that a value is of type `number`.***
174
+ * * ***Type guard assertion: `assertIsNumber`.***
185
175
  * -------------------------------------------------------
186
- * Validates that the given `value` is a **number**.
187
- *
188
- * - If `value` is a number execution continues normally.
189
- * - ❌ If `value` is not a number → throws a `TypeError` with either:
190
- * - A custom error message (`options.message`), or
191
- * - A default message including the actual type.
192
- *
193
- * This function is an **assertion function**.
194
- * After it returns successfully, TypeScript narrows the type of `value` to `number`.
195
- *
196
- * ℹ️ Notes:
197
- * - A `number` refers strictly to the JavaScript `number` primitive type
198
- * (e.g., `42`, `3.14`, `-1`, `0`).
199
- * - This excludes `Number` objects created with `new Number(123)`.
200
- * - By default, `NaN` is **not considered** valid.
201
- * You can allow it with `{ includeNaN: true }`.
202
- *
203
- * @param value - The value to validate.
204
- * @param options - Optional configuration:
205
- * - `message`: A custom error message (string or function).
176
+ * **This function is an **assertion function**.**
177
+ * - Validates that the given `value` is a **number**.
178
+ * - After it returns successfully, TypeScript narrows the type of `value` to `number`.
179
+ * - **Behavior:**
180
+ * - If `value` is a `number` ➔ execution continues normally.
181
+ * - If `value` is not a `number` ➔ throws a `TypeError` with either:
182
+ * - A custom error message (`options.message`), or
183
+ * - A default message including the actual type.
184
+ * - **ℹ️ Note:**
185
+ * - A `number` refers strictly to the JavaScript `number` primitive type (e.g., `42`, `3.14`, `-1`, `0`).
186
+ * - This excludes `Number` objects created with `new Number(123)`.
187
+ * - By default, `NaN` is **not considered** valid, you can allow it with `{ includeNaN: true }`.
188
+ * @param {*} value - The value to validate.
189
+ * @param {AssertIsNumberOptions|undefined} options - Optional configuration:
190
+ * - `message`: A custom error message (`string` or `function`).
206
191
  * - `formatCase`: Controls type formatting (from `GetPreciseTypeOptions`).
207
192
  * - `includeNaN`: Whether to treat `NaN` as valid.
208
- *
209
- * @returns {asserts value is number} Narrows `value` to `number` if no error is thrown.
193
+ * @returns {boolean} Narrows `value` to `number` if no error is thrown.
210
194
  * @throws {TypeError} If the value is not a number (or is `NaN` when `includeNaN` is `false`).
211
- *
212
195
  * @example
213
196
  * ```ts
214
197
  * // ✅ Simple usage
@@ -256,29 +239,23 @@ declare const assertIsBigInt:(value:unknown,options?:AssertIsOptions)=>asserts v
256
239
  */
257
240
  declare const assertIsNumber:(value:unknown,options?:AssertIsNumberOptions)=>asserts value is number;
258
241
  /** -------------------------------------------------------
259
- * * ***Asserts that a value is of type `array`.***
242
+ * * ***Type guard assertion: `assertIsArray`.***
260
243
  * -------------------------------------------------------
261
- * Validates that the given `value` is an **array**.
262
- *
263
- * - If `value` is an array execution continues normally.
264
- * - ❌ If `value` is not an array → throws a `TypeError` with either:
265
- * - A custom error message (`options.message`), or
266
- * - A default message including the actual type.
267
- *
268
- * This function is an **assertion function**.
269
- * After it returns successfully, TypeScript narrows the type of `value`
270
- * to `AssertIsArrayResult<T>`.
271
- *
244
+ * **This function is an **assertion function**.**
245
+ * - Validates that the given `value` is a **array**.
246
+ * - After it returns successfully, TypeScript narrows the type of `value` to `array` **(generic support)**.
247
+ * - **Behavior:**
248
+ * - If `value` is an `array` ➔ execution continues normally.
249
+ * - If `value` is not an `array` ➔ throws a `TypeError` with either:
250
+ * - A custom error message (`options.message`), or
251
+ * - A default message including the actual type.
272
252
  * @template T - The input type being asserted.
273
- *
274
- * @param value - The value to validate.
275
- * @param options - Optional configuration:
276
- * - `message`: A custom error message (string or function).
253
+ * @param {*} value - The value to validate.
254
+ * @param {AssertIsOptions|undefined} options - Optional configuration:
255
+ * - `message`: A custom error message (`string` or `function`).
277
256
  * - `formatCase`: Controls type formatting (from `GetPreciseTypeOptions`).
278
- *
279
- * @returns {asserts value is AssertIsArrayResult<T>} Narrows `value` to an array if no error is thrown.
257
+ * @returns {boolean} Narrows `value` to an `array` **(generic support)** if no error is thrown.
280
258
  * @throws {TypeError} If the value is not an array.
281
- *
282
259
  * @example
283
260
  * ```ts
284
261
  * // ✅ Simple usage
@@ -318,21 +295,23 @@ declare const assertIsNumber:(value:unknown,options?:AssertIsNumberOptions)=>ass
318
295
  */
319
296
  declare function assertIsArray<T extends unknown[]>(value:T,options?:AssertIsOptions):value is Extract<T,unknown[]>;declare function assertIsArray<T extends readonly unknown[]>(value:T,options?:AssertIsOptions):value is Extract<T,readonly unknown[]>;declare function assertIsArray(value:unknown,options?:AssertIsOptions):value is unknown[];
320
297
  /** -------------------------------------------------------
321
- * * ***Asserts that a value is a plain object.***
298
+ * * ***Type guard assertion: `assertIsPlainObject`.***
322
299
  * -------------------------------------------------------
323
- * Ensures that the given `value` is a **plain object**.
324
- * - Throws a `TypeError` if the value is **not a plain object**.
325
- *
300
+ * **This function is an **assertion function**.**
301
+ * - Validates that the given `value` is a **plain-object**.
302
+ * - After it returns successfully, TypeScript narrows the type of `value` to `plain-object` **(generic support)**.
303
+ * - **Behavior:**
304
+ * - ✅ If `value` is a `plain-object` ➔ execution continues normally.
305
+ * - ❌ If `value` is not a `plain-object` ➔ throws a `TypeError` with either:
306
+ * - A custom error message (`options.message`), or
307
+ * - A default message including the actual type.
326
308
  * @template T - The input type being asserted.
327
- * After assertion, TypeScript will refine `value` to `IsPlainObjectResult<T>`.
328
- *
329
- * @param {T} value - The value to check.
330
- * @param {AssertIsOptions} [options] - Optional configuration, such as:
331
- * - Custom error message (`string` or `(info) => string`)
332
- * - Message formatting (`formatCase`)
333
- * - Expected `validType` description override
334
- * @throws {TypeError} If `value` is not a plain object (with either a default or custom message).
335
- *
309
+ * @param {*} value - The value to validate.
310
+ * @param {AssertIsOptions|undefined} options - Optional configuration:
311
+ * - `message`: A custom error message (`string` or `function`).
312
+ * - `formatCase`: Controls type formatting (from `GetPreciseTypeOptions`).
313
+ * @returns {boolean} Narrows `value` to a `plain-object` **(generic support)** if no error is thrown.
314
+ * @throws {TypeError} If `value` is not a `plain-object`.
336
315
  * @example
337
316
  * ```ts
338
317
  * // ✅ Simple usage
@@ -359,7 +338,6 @@ declare function assertIsArray<T extends unknown[]>(value:T,options?:AssertIsOpt
359
338
  * ✅ ***Real-world usage with generic narrowing***:
360
339
  * ```ts
361
340
  * type User = { name: string; email: string };
362
- *
363
341
  * const mixedValue: string | User | boolean | number | undefined = getUserInput();
364
342
  *
365
343
  * // Throws TypeError if not plain object
@@ -372,22 +350,25 @@ declare function assertIsArray<T extends unknown[]>(value:T,options?:AssertIsOpt
372
350
  */
373
351
  declare function assertIsPlainObject<T>(value:T,options?:AssertIsOptions):asserts value is IsPlainObjectResult<T>;
374
352
  /** -------------------------------------------------------
375
- * * ***Asserts that a value is a string.***
353
+ * * ***Type guard assertion: `assertIsString`.***
376
354
  * -------------------------------------------------------
377
- * Ensures that the given value is a **primitive string**.
378
- * - Throws a `TypeError` if the value is **not a string**.
379
- *
380
- * ℹ️ Note:
381
- * - A "string" refers strictly to a JavaScript primitive string type
382
- * (e.g., `"hello"`, `""`, `"123"`).
383
- * - This function excludes `String` objects created with `new String()`.
384
- *
385
- * @param {unknown} value - The value to check.
386
- * @param {AssertIsOptions} [options] - Optional configuration including custom error message and formatting.
387
- * @returns {asserts value is string}
388
- * After this call, `value` is guaranteed to be a **primitive string**.
355
+ * **This function is an **assertion function**.**
356
+ * - Validates that the given `value` is a **primitive-string**.
357
+ * - After it returns successfully, TypeScript narrows the type of `value` to `primitive-string`.
358
+ * - **Behavior:**
359
+ * - If `value` is a `primitive-string` ➔ execution continues normally.
360
+ * - ❌ If `value` is not a `primitive-string` ➔ throws a `TypeError` with either:
361
+ * - A custom error message (`options.message`), or
362
+ * - A default message including the actual type.
363
+ * - **ℹ️ Note:**
364
+ * - A "string" refers strictly to a JavaScript `primitive-string` type (e.g., `"hello"`, `""`, `"123"`).
365
+ * - This function excludes `String` objects created with `new String()`.
366
+ * @param {*} value - The value to validate.
367
+ * @param {AssertIsOptions|undefined} options - Optional configuration:
368
+ * - `message`: A custom error message (`string` or `function`).
369
+ * - `formatCase`: Controls type formatting (from `GetPreciseTypeOptions`).
370
+ * @returns {boolean} Narrows `value` to `string` if no error is thrown.
389
371
  * @throws {TypeError} If the value is not a string.
390
- *
391
372
  * @example
392
373
  * ```ts
393
374
  * // ✅ Simple usage
@@ -413,7 +394,6 @@ declare function assertIsPlainObject<T>(value:T,options?:AssertIsOptions):assert
413
394
  * ✅ ***Real-world usage with generic narrowing***:
414
395
  * ```ts
415
396
  * type User = { name: string; email: string };
416
- *
417
397
  * const mixedValue: string | User | undefined = getUserInput();
418
398
  *
419
399
  * // Throws TypeError if the value is not string
@@ -1 +1 @@
1
- export{a as assertIsBigInt,b as assertIsNumber}from'../chunk-55CZALRS.js';export{a as assertIsArray}from'../chunk-QFCGBBSY.js';export{a as assertIsString}from'../chunk-XVB3ZZEB.js';import'../chunk-5SZUSNGZ.js';export{G as assertIsBoolean,m as assertIsPlainObject}from'../chunk-XCFIOTCV.js';
1
+ export{a as assertIsBigInt,b as assertIsNumber}from'../chunk-2AUUPGMN.js';export{a as assertIsArray}from'../chunk-2JQQQ625.js';export{a as assertIsString}from'../chunk-JISH2VGG.js';import'../chunk-5SZUSNGZ.js';export{G as assertIsBoolean,j as assertIsPlainObject}from'../chunk-MJAW5RAK.js';
@@ -0,0 +1 @@
1
+ import {a as a$3}from'./chunk-K4PLGD7C.js';import {a}from'./chunk-GAJTFCUA.js';import {a as a$6}from'./chunk-HXST7RJB.js';import {a as a$5}from'./chunk-Z6FLCEN6.js';import {a as a$4}from'./chunk-JISH2VGG.js';import {a as a$2}from'./chunk-ELDDNERR.js';import {c}from'./chunk-467VEMJH.js';import {g,E,j,o,a as a$1,f,h,m,b,G,c as c$1,k,p}from'./chunk-MJAW5RAK.js';import {id,enUS}from'date-fns/locale';import {isDate,parse,format}from'date-fns';var pe=(r,e={})=>{if(!g(r)&&!a(r))throw new TypeError(`First parameter (\`value\`) must be of type \`string\` or \`primitive-number\`, but received: \`${E(r)}\`, with value: \`${c(r)}\`.`);j(e,{message:({currentType:u,validType:D})=>`Second parameter (\`options\`) must be of type \`${D}\`, but received: \`${u}\`.`});let n=o(e,"decimal")?e.decimal:false,t=o(e,"totalDecimal")?e.totalDecimal:2,i=o(e,"endDecimal")?e.endDecimal:true,f$1=o(e,"indianFormat")?e.indianFormat:false,m$1=o(e,"suffixCurrency")?e.suffixCurrency:"",c$1=o(e,"suffixDecimal")?e.suffixDecimal:"",s=o(e,"roundedDecimal")?e.roundedDecimal:"round",o$1=o(e,"negativeFormat")?e.negativeFormat:"dash",a$5=o(e,"separatorDecimals")?e.separatorDecimals:",",h$1=o(e,"separator")?e.separator:".";if(!g(h$1)||!g(a$5)||!g(m$1)||!g(c$1))throw new TypeError(`Parameter \`separator\`, \`separatorDecimals\`, \`suffixCurrency\` and \`suffixDecimal\` property of the \`options\` (second parameter) must be of type \`string\`, but received: ['separator': \`${E(h$1)}\`, 'separatorDecimals': \`${E(a$5)}\`, 'suffixCurrency': \`${E(m$1)}\`, 'suffixDecimal': \`${E(c$1)}\`].`);if(!a$1(n)||!a$1(i)||!a$1(f$1))throw new TypeError(`Parameter \`decimal\`, \`endDecimal\` and \`indianFormat\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['decimal': \`${E(n)}\`, 'endDecimal': \`${E(i)}\`, 'indianFormat': \`${E(f$1)}\`].`);if(!a$2(t))throw new TypeError(`Parameter \`totalDecimal\` property of the \`options\` (second parameter) must be of type \`integer-number\`, but received: \`${E(t)}\`, with value: \`${c(length)}\`.`);if(!(s===false||s==="round"||s==="ceil"||s==="floor"))throw new TypeError(`Parameter \`roundedDecimal\` property of the \`options\` (second parameter) must be of type \`false\` or \`string\` must be one of "round" | "ceil" | "floor", but received: \`${E(s)}\`, with value: \`${c(s)}\`.`);if(!(o$1==="abs"||o$1==="brackets"||o$1==="dash"||f(o$1)))throw new TypeError(`Parameter \`negativeFormat\` property of the \`options\` (second parameter) must be of type \`string\` must be one of "abs" | "brackets" | "dash" or \`plain-object\` type, but received: \`${E(o$1)}\`, with value: \`${c(o$1)}\`.`);let S=g(r)?a$3(r):r;if(h(S))throw new TypeError("First parameter (`value`) could not be parsed into a valid `number`.");let b$1="",y="",$=Math.abs(S),P=Math.pow(10,t);if(s){let u=$*P;switch(s){case "round":$=Math.round(u)/P;break;case "ceil":$=Math.ceil(u)/P;break;case "floor":$=Math.floor(u)/P;break}}if(s)[b$1,y]=$.toFixed(t).split("."),y=y??"".padEnd(t,"0");else {let u=String($).split(".");b$1=u[0],y=(u[1]||"").slice(0,t).padEnd(t,"0");}let g$1;if(f$1?(h$1=",",a$5=".",g$1=(m$1.trim().length?m$1:"")+H(b$1,h$1)):g$1=(m$1.trim().length?m$1:"")+b$1.replace(/\B(?=(\d{3})+(?!\d))/g,h$1),n&&!m(y)&&t>0){let u=a$5+y;i&&(u+=c$1),g$1+=u;}if(S<0){if(o$1==="dash")g$1="-"+g$1;else if(o$1==="brackets")g$1="("+g$1+")";else if(o$1!=="abs"){if(f(o$1))if(o(o$1,"custom")){let u=o$1.custom;if(!b(u))throw new TypeError(`Parameter \`negativeFormat.custom\` property of the \`options\` (second parameter) must be of type function: \`(formatted: string) => string\`, but received: \`${E(u)}\`.`);let D=u(g$1);a$4(D,{message:({currentType:V,validType:j})=>`Parameter \`negativeFormat.custom\` property of the \`options\` (second parameter) expected return a \`${j}\` type value, but received: \`${V}\`.`}),g$1=D;}else {let u=o$1.style||"dash",D=m(o$1.space)?false:o$1.space;if(G(D,{message:({currentType:V,validType:j})=>`Parameter \`negativeFormat.space\` property of the \`options\` (second parameter) must be of type \`${j} or undefined\`, but received: \`${V}\`.`}),!(u==="abs"||u==="brackets"||u==="dash"))throw new TypeError(`Parameter \`negativeFormat.style\` property of the \`options\` (second parameter) must be of type \`string\` must be of type "abs" | "brackets" | "dash", but received: \`${E(u)}\`, with value: \`${c(u)}\`.`);switch(u){case "dash":g$1="-"+(D?" ":"")+g$1;break;case "brackets":g$1=D?`( ${g$1} )`:`(${g$1})`;break;}}}}return g$1},H=(r,e)=>{let n=r.slice(-3),t=r.slice(0,-3);return t?t.replace(/\B(?=(\d{2})+(?!\d))/g,e)+e+n:n};var he=(r,e=",")=>{if(!g(r)&&!a(r))throw new TypeError(`First parameter (\`value\`) must be of type \`string\` or \`primitive number\`, but received: \`${E(r)}\`.`);if(!g(e))throw new TypeError(`Second parameter (\`separator\`) must be of type \`string\` or empty as \`undefined\`, but received: \`${E(e)}\`.`);e=g(e)?e:",";let n=e==="."?",":".",t=r.toString().trim(),i=t.lastIndexOf("."),f=t.lastIndexOf(","),m="";i>f?m=".":f>i&&(m=",");let c=t,s="";if(m){let a=t.split(m);c=a.slice(0,-1).join(m),s=a.slice(-1)[0];}c=c.replace(/[^\d]/g,"");let o=c.replace(/\B(?=(\d{3})+(?!\d))/g,e);return s?`${o}${n}${s}`:o};function Fe(r,e={}){if(c$1(r))return "";if(!g(r)&&!k(r))throw new TypeError(`First parameter (\`value\`) must be of type \`string\`, \`number\`, \`null\` or \`undefined\`, but received: \`${E(r)}\`.`);j(e,{message:({currentType:u,validType:D})=>`Second parameter (\`options\`) must be of type \`${D}\`, but received: \`${u}\`.`});let n=o(e,"separator")?e.separator:" ",t=o(e,"takeNumberOnly")?e.takeNumberOnly:false,i=o(e,"checkValidOnly")?e.checkValidOnly:false,f=o(e,"plusNumberCountry")?e.plusNumberCountry:"",m=o(e,"openingNumberCountry")?e.openingNumberCountry:"",c=o(e,"closingNumberCountry")?e.closingNumberCountry:"";if(!a$1(t)||!a$1(i))throw new TypeError(`Parameter \`takeNumberOnly\` and \`checkValidOnly\` property of the \`options\` (second parameter) must be of type \`boolean\` or unset as \`undefined\` value, but received: ['takeNumberOnly': \`${E(t)}\`, 'checkValidOnly': \`${E(i)}\`].`);if(!g(n)||!g(f)||!g(m)||!g(c))throw new TypeError(`Parameter \`separator\`, \`plusNumberCountry\`, \`openingNumberCountry\` and \`closingNumberCountry\` property of the \`options\` (second parameter) must be of type \`string\` or unset as \`undefined\` value, but received: ['separator': \`${E(n)}\`, 'plusNumberCountry': \`${E(f)}\`, 'openingNumberCountry': \`${E(m)}\`, 'closingNumberCountry': \`${E(c)}\`].`);if(g(r)||(r=String(r)),t)return r.replace(/\D/g,"");if(i)return /^(\+)?[0-9\s().-]+$/.test(r)&&r.replace(/\D/g,"").length<24;r=r.replace(/\D/g,"");let s=f.trim().replace(/\s+/g,"").replace(/[^\d+]/g,"");/^\+/.test(s)&&(s="+"+s.replace(/^\++/,""));let o$1="",a="",h={7:"Russia, Kazakhstan",27:"South Africa",31:"Netherlands",32:"Belgium",33:"France",34:"Spain",36:"Hungary",39:"Italy, San Marino, Vatican",44:"United Kingdom",46:"Sweden",47:"Norway",48:"Poland",49:"Germany",52:"Mexico",54:"Argentina",55:"Brazil",56:"Chile",61:"Australia",62:"Indonesia",64:"New Zealand",81:"Japan",82:"South Korea",86:"China",90:"Turkey",91:"India",92:"Pakistan",351:"Portugal",352:"Luxembourg",971:"UAE"},S=s.replace(/^\+/,"").replace(/[^\d]/g,"");h[S]&&r.startsWith("0")?(o$1=r.slice(1,4),a=r.slice(4)):(o$1=r.slice(0,4),a=r.slice(4));let b=s.trim(),y=m.trim(),$=c.trim(),P="";b?y&&$?P=`${y}${b}${$} ${o$1}`:y&&!$?P=`${y}${b} ${o$1}`:!y&&$?P=`${b}${$} ${o$1}`:P=`${b} ${o$1}`:P=`${o$1}`;let g$1={0:n,4:n,8:n,12:n,16:n,20:n,24:n};for(let u=0;u<a.length;u++){let D=u+o$1.length;P+=(g$1[D]||"")+a[u];}return P}var Be=(r,e)=>{if(c$1(e)&&(e="YYYY-MM-DD hh:mm:ss"),!g(e)||c$1(r)||!(isDate(r)||p(r)))return null;try{let n=new Date(r);if(h(n.getTime()))return null;let t=m=>m.toString().padStart(2,"0"),i={YYYY:n.getFullYear().toString(),MM:t(n.getMonth()+1),DD:t(n.getDate()),hh:t(n.getHours()),mm:t(n.getMinutes()),ss:t(n.getSeconds())},f=Object.entries(i).reduce((m,[c,s])=>m.split(c).join(s),e);return f.includes("NaN")?null:f}catch{return null}},Ve=(r,e)=>{if(c$1(r)||!(isDate(r)||p(r)))return null;let n=new Date(r);if(h(n.getTime()))return null;f(e)||(e={});let{locale:t="en-US",...i}=e;try{return new Intl.DateTimeFormat(p(t)?t.trim():"en-US",i).format(n)}catch{return null}},je=(r,e={})=>{if(c$1(r)||!(isDate(r)||p(r)))return null;f(e)||(e={});let{inputFormat:n,locale:t="en",inputLocale:i="en",...f$1}=e,m=o(e,"format")&&p(e.format)?e.format:"dd MMM yyyy - HH:mm:ss",c;try{if(p(r)&&n&&i){let o=p(i)?i==="id"?id:enUS:i;c=parse(r,n,new Date,{locale:o});}else c=new Date(r);if(h(c.getTime()))return null;let s=p(t)?t==="id"?id:enUS:t;return format(c,m,{...f$1,locale:s})}catch{return null}},ze=r=>{try{if(c$1(r)||g(r)&&a$5(r))r=new Date;else if(!(isDate(r)||p(r)))return "0";let e=new Date(r);if(h(e.getTime()))return "0";let n=f=>f.toString().padStart(2,"0"),t=e.getTimezoneOffset(),i=t<0?"+":"-";return t=Math.abs(t),`${i}${n(Math.floor(t/60))}${n(t%60)}`}catch{return "0"}};var Ke=(r,e={})=>{if(!p(r))return "";j(e,{message:({currentType:P,validType:g})=>`Second parameter (\`options\`) must be of type \`${g}\`, but received: \`${P}\`.`});let n=o(e,"mode")?e.mode:"fixed";if(n!=="random"&&n!=="fixed")throw new TypeError(`Parameter \`mode\` property of the \`options\` (second parameter) must be one of "fixed" or "random", but received: \`${E(n)}\`, with value: \`${c(n)}\`.`);if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(r))return "";let[i,f]=r.split("@"),m=f.split(".");if(m.length<2)return "";let[c$1,...s]=m,o$1=s.join("."),a=_(n,r),h=i.length<4?1:2,S=c$1.length<4?1:2,b=z(i,h,.6,a),y=z(c$1,S,.5,a),$=o$1.length<=2?o$1:z(o$1,1,.4,a);return `${b}@${y}.${$}`},_=(r,e)=>r==="fixed"?(()=>{let t=0;for(let i=0;i<e.length;i++)t=(t<<5)-t+e.charCodeAt(i),t|=0;return Math.abs(t)})():void 0,z=(r,e,n,t)=>{if(r.length<=e)return "*".repeat(r.length);let i=r.split(""),f=Math.max(e,Math.ceil(r.length*n)),m$1=new Set,c=0;for(;m$1.size<f;){let s=m(t)?Math.floor(Math.random()*r.length):(t+r.length+c*31)%r.length;m$1.add(s),c++;}for(let s of m$1)i[s]="*";return i.join("")};function nr(r,e,n={}){if(c$1(r)||e<=0)return r;if(a$4(r,{message:({currentType:o,validType:a})=>`First parameter (\`subject\`) must be of type \`${a}\`, but received: \`${o}\`.`}),!a$2(e))throw new TypeError(`Second parameter (\`limiter\`) must be of type \`integer-number\`, but received: \`${E(e)}\`, with value: \`${c(e)}\`.`);j(n,{message:({currentType:o,validType:a})=>`Third parameter (\`options\`) must be of type \`${a}\`, but received: \`${o}\`.`});let t=o(n,"separator")?n.separator:" ",i=o(n,"reCountAfterSpace")?n.reCountAfterSpace:false;if(a$4(t,{message:({currentType:o,validType:a})=>`Parameter \`separator\` property of the \`options\` (third parameter) must be of type \`${a}\`, but received: \`${o}\`.`}),G(i,{message:({currentType:o,validType:a})=>`Parameter \`reCountAfterSpace\` property of the \`options\` (third parameter) must be of type \`${a}\`, but received: \`${o}\`.`}),r=a$6(r),!i){let o="",a=0;for(let h=0;h<r.length;h++){let S=r[h];a===e&&(o+=t,a=0),o+=S,a++;}return o}let f=r.split(" "),m=[],c$2=[],s=0;for(let o=0;o<f.length;o++){let a=f[o],h="",S=0;for(let b=0;b<a.length;b++)h+=a[b],S++,S===e&&b<a.length-1&&(h+=t,S=0);c$2.push(h),s++,(s===e||o===f.length-1)&&(m.push(c$2.join(t)),c$2=[],s=0);}return m.join(" ")}var gr=(r,e={})=>{if(!p(r))return "";j(e,{message:({currentType:o,validType:a})=>`Seconds parameter (\`options\`) must be of type \`${a}\`, but received: \`${o}\`.`});let n=o(e,"trim")?e.trim:true,t=o(e,"length")?e.length:10,i=o(e,"ending")?e.ending:"...";if(!a$2(t))throw new TypeError(`Parameter \`length\` property of the \`options\` (second parameter) must be of type \`integer-number\`, but received: \`${E(t)}\`, with value: \`${c(t)}\`.`);if(t<1)return "";a$4(i,{message:({currentType:o,validType:a})=>`Parameter \`ending\` property of the \`options\` (second parameter) must be of type \`${a}\`, but received: \`${o}\`.`}),G(n,{message:({currentType:o,validType:a})=>`Parameter \`trim\` property of the \`options\` (second parameter) must be of type \`${a}\`, but received: \`${o}\`.`}),a$5(i)?i="...":i=i.trim();let f=n?r.trim():r;if(f.length<=t)return f;let c$1=f.slice(0,t);return (n?c$1:c$1.trimEnd())+i};export{pe as a,he as b,Fe as c,Be as d,Ve as e,je as f,ze as g,Ke as h,nr as i,gr as j};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-5SZUSNGZ.js';import {F,o,k}from'./chunk-MJAW5RAK.js';var I=(r,s={})=>{if(a(r))return;let o=F({value:r,options:s,requiredValidType:"big int"});throw new TypeError(o)};var O=(r,s={})=>{let o$1=o(s,"includeNaN")?s.includeNaN:void 0;if(k(r,{includeNaN:o$1}))return;let p=F({value:r,options:s,requiredValidType:"number"});throw new TypeError(p)};export{I as a,O as b};
@@ -0,0 +1 @@
1
+ import {d,F}from'./chunk-MJAW5RAK.js';function u(r,e){if(d(r))return;let t=F({value:r,options:e,requiredValidType:"array"});throw new TypeError(t)}export{u as a};
@@ -0,0 +1 @@
1
+ 'use strict';var chunk6Q4I2RPC_cjs=require('./chunk-6Q4I2RPC.cjs'),chunkLVUSFXQS_cjs=require('./chunk-LVUSFXQS.cjs');var a=(r,t={withTrim:true,trimOnly:false})=>{if(!chunkLVUSFXQS_cjs.p(r))return "";chunkLVUSFXQS_cjs.f(t)||(t={});let{trimOnly:n=false,withTrim:o=true}=t;return n?r.trim():(o&&(r=r.trim()),r.replace(/\s+/g," "))},g=r=>chunkLVUSFXQS_cjs.p(r)?r.trim():"",d=(r,t={trimOnly:false})=>{if(!chunkLVUSFXQS_cjs.p(r))return "";chunkLVUSFXQS_cjs.f(t)||(t={});let{trimOnly:n=false}=t;return n?r.trim():r.replace(/\s+/g,"")};function u(r){return chunkLVUSFXQS_cjs.g(r)?chunk6Q4I2RPC_cjs.a(r)?"":r.replace(/<\/?[a-zA-Z][^<>]*\/?>/g," ").trim().replace(/\s+/g," ").trim():void 0}exports.a=a;exports.b=g;exports.c=d;exports.d=u;
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-5SZUSNGZ.js';import {h,j,o,a,E,b,l,m,n,q,d,i,k,e}from'./chunk-MJAW5RAK.js';function I(o){return Object.prototype.toString.call(o)==="[object Map]"||o instanceof Map}var $=o=>o instanceof Date&&!h(o.getTime());var v=(o$1,i$1={})=>{j(i$1,{message:({currentType:r,validType:m})=>`Second parameter (\`options\`) must be of type \`${m}\`, but received: \`${r}\`.`});let y=o(i$1,"pretty")?i$1.pretty:false,b$1=o(i$1,"sortKeys")?i$1.sortKeys:true,S=o(i$1,"sortArray")?i$1.sortArray:false;if(!a(b$1)||!a(S)||!a(y))throw new TypeError(`Parameters \`sortKeys\`, \`sortArray\` and \`pretty\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: "['sortKeys': \`${E(b$1)}\`, 'sortArray': \`${E(S)}\`, 'pretty': \`${E(y)}\`]".`);let N=new WeakSet,B=r=>i(r)||!n(r)&&!b(r),f=r=>{if(r instanceof Number)return Number(r);if(r instanceof String)return String(r);if(r instanceof Boolean)return !!r;if(!(b(r)||l(r))){if(a$1(r))return r.toString();if(m(r)||h(r)||r===1/0||r===-1/0)return null;if(n(r)){if(N.has(r))return "[Circular]";if(N.add(r),$(r))return r.toISOString();if(I(r))return {map:Array.from(r.entries()).map(([e,t])=>[e,f(t)])};if(q(r))return {set:Array.from(r.values()).map(f)};if(d(r)){let e=r.map(f);if(S){let t=[],u=[];for(let n of e)B(n)?t.push(n):u.push(n);return t.sort((n,w)=>k(n)&&k(w)?n-w:String(n).localeCompare(String(w))),[...t,...u]}return e}let m$1=Object.keys(r);b$1&&m$1.sort((e,t)=>{let u=Number(e),n=Number(t);return !h(u)&&!h(n)?u-n:e.localeCompare(t)});let O={};if(e(r))for(let e of m$1){let t=f(r[e]);m(t)||(O[e]=t);}return O}return r}};try{return JSON.stringify(f(o$1),null,y?2:0)}catch(r){return console.warn("Error in safeStableStringify:",r),"{}"}};export{I as a,$ as b,v as c};
@@ -0,0 +1 @@
1
+ 'use strict';var chunkLVUSFXQS_cjs=require('./chunk-LVUSFXQS.cjs');var r=(n,o={})=>!chunkLVUSFXQS_cjs.p(n,o);exports.a=r;
@@ -0,0 +1 @@
1
+ 'use strict';var chunkPFLNHD4B_cjs=require('./chunk-PFLNHD4B.cjs'),chunk6Q4I2RPC_cjs=require('./chunk-6Q4I2RPC.cjs'),chunkLVUSFXQS_cjs=require('./chunk-LVUSFXQS.cjs');var P=(r,t={})=>{chunkLVUSFXQS_cjs.j(t,{message:({currentType:o,validType:e})=>`Second parameter (\`options\`) must be of type \`${e}\`, but received: \`${o}\`.`});let m=chunkLVUSFXQS_cjs.o(t,"checkSymbols")?t.checkSymbols:false;return chunkLVUSFXQS_cjs.G(m,{message:({currentType:o,validType:e})=>`Parameter \`checkSymbols\` property of the \`options\` (second parameter) must be of type \`${e}\`, but received: \`${o}\`.`}),chunkLVUSFXQS_cjs.c(r)||r===false||chunkLVUSFXQS_cjs.h(r)?true:chunkLVUSFXQS_cjs.g(r)?chunk6Q4I2RPC_cjs.a(r):chunkLVUSFXQS_cjs.d(r)?chunkPFLNHD4B_cjs.e(r):chunkLVUSFXQS_cjs.e(r)?chunkPFLNHD4B_cjs.f(r,{checkSymbols:m}):false};exports.a=P;
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-ELDDNERR.js';import {c}from'./chunk-467VEMJH.js';import {E,i}from'./chunk-MJAW5RAK.js';var v=(r=1e3,e)=>{if(!a(r)||r<=0)throw new TypeError(`First parameter (\`milliSeconds\`) must be of type \`number\` and value must be a \`non-zero\`, \`non-NaN\`, \`non-negative\`, and \`integer-number\`, but received: \`${E(r)}\`, with value: \`${c(r)}\`.`);if(i(e)||e&&!(e instanceof AbortSignal))throw new TypeError("Second parameter (`signal`) must be an `instance of AbortSignal` if provided.");return new Promise((b,f)=>{let u=setTimeout(()=>{o(),b();},r),o=()=>{clearTimeout(u),e&&e.removeEventListener("abort",t);},t=()=>{o(),f(new DOMException("Function `delay` aborted","AbortError"));};e&&(e.aborted?t():e.addEventListener("abort",t,{once:true}));})};export{v as a};
@@ -0,0 +1 @@
1
+ import {a}from'./chunk-ELDDNERR.js';import {c}from'./chunk-467VEMJH.js';import {r,E as E$1,k,f,G,h}from'./chunk-MJAW5RAK.js';function E(e){if(!r(e))return;let n=Math.floor(Math.random()*(e.length||0));return e[n]}var d=(e,n)=>{if(!a(e)||!a(n))throw new TypeError(`First parameter (\`min\`) and second parameter (\`max\`) must be of type \`integer-number\`${N(e,n)}value, but received: ['min': \`${E$1(e)}\` - (with value: \`${c(e)})\`, 'max': \`${E$1(n)}\` - (with value: \`${c(n)}\`)].`);if(e>n)throw new RangeError(`First parameter (\`min\`) must be less than or equal to second parameter (\`max\`), but received: ['min': ${I(e)}, 'max': ${I(n)}].`);return e=Math.max(1,e),n=Math.min(Number.MAX_SAFE_INTEGER,n),Math.floor(Math.random()*(n-e+1))+e},I=e=>k(e,{includeNaN:true})?e===Number.MIN_VALUE?"`Number.MIN_VALUE`":`${e}`:`\`${E$1(e)}\``,N=(...e)=>e.some(n=>k(n,{includeNaN:true})&&n===Number.MIN_VALUE)?" and can't be `Number.MIN_VALUE` ":" ";var _=e=>{f(e)||(e={});let{minLength:n=1,maxLength:r=16,avoidZero:o=false}=e;if(G(o,{message({currentType:y,validType:c}){return `Parameters \`avoidZero\` must be of type \`${c}\`, but received: \`${y}\`.`}}),!a(n)||!a(r))throw new TypeError(`Parameters \`minLength\` and \`maxLength\` must be of type \`integer-number\`, but received: ['minLength': \`${E$1(n)}\` - (with value: ${c(n)}), 'maxLength': \`${E$1(r)}\` - (with value: ${c(r)})].`);if(n<1||r>16||n>r)throw new RangeError(`Invalid range at parameters \`minLength\` must be \u2265 1, \`maxLength\` must be \u2264 16, and \`minLength\` \u2264 \`maxLength\`, but received: ['minLength': \`${n}\`, 'maxLength': \`${r}\`].`);let u=n===r?n:d(n,r),s=10**(u-1),l=10**u-1,f$1=d(s,l);return o&&f$1===0&&(f$1=s),f$1};var Y=e=>{f(e)||(e={});let{minLength:n=40,maxLength:r=40,type:o="string",avoidWhiteSpace:u=true}=e;if(G(u,{message({currentType:m,validType:L}){return `Parameters \`avoidWhiteSpace\` property of the \`options\` (first-parameter) must be of type \`${L}\`, but received: \`${m}\`.`}}),!a(n)||!a(r))throw new TypeError(`Parameters \`minLength\` and \`maxLength\` must be of type \`integer-number\`, but received: ['minLength': \`${E$1(n)}\` - (with value: ${c(n)}), 'maxLength': \`${E$1(r)}\` - (with value: ${c(r)})].`);if(n<1||r>5e3||n>r)throw new RangeError(`Invalid range at parameters \`minLength\` must be \u2265 1, \`maxLength\` must be \u2264 5000, and \`minLength\` \u2264 \`maxLength\`, but received: ['minLength': \`${n}\`, 'maxLength': \`${r}\`].`);if(o!=="string"&&o!=="number")throw new TypeError(`Parameter \`type\` must be of type \`string\` with value one of "string" | "number", but received: \`${E$1(o)}\`, with value: ${c(o)}.`);let s=d(n,r),l=m=>u?m.replace(/\s|\n|\t/g,""):m,c$1=o==="number"?(h(Number(e.replaceGenInt))?void 0:e.replaceGenInt)??"0123456789":(e.replaceGenStr?e.replaceGenStr:void 0)??"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",g=l(c$1)+(e.addChar||"");if(!g.length){let m=()=>o==="number"?u?"If `avoidWhiteSpace` is true, and `replaceGenInt` cant be empty-string value, ensure `replaceGenInt` has valid characters and non-nan string number.":"Ensure `replaceGenInt` has valid characters and not a NaN number string while convert to number.":"Ensure `replaceGenStr` has valid characters and non empty string.";throw new Error(`Character set is empty. ${m()}`)}let x="";for(let m=0;m<s;m++)x+=g.charAt(Math.floor(Math.random()*g.length));return x};export{E as a,d as b,_ as c,Y as d};
@@ -1 +1 @@
1
- 'use strict';var chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var h=i=>{if(!chunkCN53M4QZ_cjs.p(i))return 0;let l=i.trim().replace(/\u00A0/g,"").replace(/\u202F/g,""),s=false;/^\(.*\)$/.test(l)&&(s=true,l=l.slice(1,-1).trim()),l=l.replace(/^[-\s]+/,a=>a.includes("-")?"-":"").replace(/[\s.,-]+$/,""),s=s||/^-/.test(l)||/^[^\d]*-/.test(l);let e=l.replace(/[^0-9.,'\s]/g,"").replace(/[\s']/g,""),o=e.match(/,\d{2}/g);if(o&&o.length>1)e=e.replace(/,/g,"");else {let a=(e.match(/\./g)||[]).length,p=(e.match(/,/g)||[]).length;if(a>1&&p===0)e=e.replace(/\./g,"");else if(p>1&&a===0)e=e.replace(/,/g,"");else {let t=e.lastIndexOf(","),c=e.lastIndexOf(".");if(t>c)e=e.replace(/\./g,"").replace(",",".");else if(c>t)e=e.replace(/,/g,"");else if(t>c){let r=e.slice(0,t).replace(/,/g,"").replace(/\./g,""),n=e.slice(t+1);e=r+"."+n;}else if(c>t){let r=e.slice(0,c).replace(/\./g,"").replace(/,/g,""),n=e.slice(c+1);e=r+"."+n;}else t!==-1?e=e.replace(/,/g,""):c!==-1&&(e=e.replace(/\./g,""));}}let g=parseFloat(e)||0;return s?-g:g};exports.a=h;
1
+ 'use strict';var chunkLVUSFXQS_cjs=require('./chunk-LVUSFXQS.cjs');var h=i=>{if(!chunkLVUSFXQS_cjs.p(i))return 0;let l=i.trim().replace(/\u00A0/g,"").replace(/\u202F/g,""),s=false;/^\(.*\)$/.test(l)&&(s=true,l=l.slice(1,-1).trim()),l=l.replace(/^[-\s]+/,a=>a.includes("-")?"-":"").replace(/[\s.,-]+$/,""),s=s||/^-/.test(l)||/^[^\d]*-/.test(l);let e=l.replace(/[^0-9.,'\s]/g,"").replace(/[\s']/g,""),o=e.match(/,\d{2}/g);if(o&&o.length>1)e=e.replace(/,/g,"");else {let a=(e.match(/\./g)||[]).length,p=(e.match(/,/g)||[]).length;if(a>1&&p===0)e=e.replace(/\./g,"");else if(p>1&&a===0)e=e.replace(/,/g,"");else {let t=e.lastIndexOf(","),c=e.lastIndexOf(".");if(t>c)e=e.replace(/\./g,"").replace(",",".");else if(c>t)e=e.replace(/,/g,"");else if(t>c){let n=e.slice(0,t).replace(/,/g,"").replace(/\./g,""),r=e.slice(t+1);e=n+"."+r;}else if(c>t){let n=e.slice(0,c).replace(/\./g,"").replace(/,/g,""),r=e.slice(c+1);e=n+"."+r;}else t!==-1?e=e.replace(/,/g,""):c!==-1&&(e=e.replace(/\./g,""));}}let g=parseFloat(e)||0;return s?-g:g};exports.a=h;
@@ -0,0 +1 @@
1
+ 'use strict';var chunk7YWAQOA4_cjs=require('./chunk-7YWAQOA4.cjs'),chunkLVUSFXQS_cjs=require('./chunk-LVUSFXQS.cjs');var I=(r,s={})=>{if(chunk7YWAQOA4_cjs.a(r))return;let o=chunkLVUSFXQS_cjs.F({value:r,options:s,requiredValidType:"big int"});throw new TypeError(o)};var O=(r,s={})=>{let o=chunkLVUSFXQS_cjs.o(s,"includeNaN")?s.includeNaN:void 0;if(chunkLVUSFXQS_cjs.k(r,{includeNaN:o}))return;let p=chunkLVUSFXQS_cjs.F({value:r,options:s,requiredValidType:"number"});throw new TypeError(p)};exports.a=I;exports.b=O;
@@ -0,0 +1 @@
1
+ 'use strict';var chunkLVUSFXQS_cjs=require('./chunk-LVUSFXQS.cjs');var p=(s,t={})=>{if(chunkLVUSFXQS_cjs.g(s))return;let n=chunkLVUSFXQS_cjs.F({value:s,options:t,requiredValidType:"string"});throw new TypeError(n)};exports.a=p;
@@ -0,0 +1 @@
1
+ 'use strict';var chunkSW6HYEW7_cjs=require('./chunk-SW6HYEW7.cjs'),chunkDYRDBYPF_cjs=require('./chunk-DYRDBYPF.cjs'),chunkLVUSFXQS_cjs=require('./chunk-LVUSFXQS.cjs');var b=(e="on_processing")=>{if(chunkSW6HYEW7_cjs.a())return;chunkDYRDBYPF_cjs.a(e,{message({validType:r,currentType:i}){return `First parameter \`className\` must be of type \`${r}\`, but received: \`${i}\`.`}});let{documentElement:t}=document;t&&!t.classList.contains(e)&&t.classList.add(e);},h=(e="on_processing")=>{if(chunkSW6HYEW7_cjs.a())return;chunkDYRDBYPF_cjs.a(e,{message({validType:r,currentType:i}){return `First parameter \`className\` must be of type \`${r}\`, but received: \`${i}\`.`}});let{documentElement:t}=document;t&&t.classList.contains(e)&&t.classList.remove(e);},T=()=>{if(chunkSW6HYEW7_cjs.a())return;let e=document.activeElement;e instanceof HTMLElement&&e.blur();},g=e=>{if(chunkSW6HYEW7_cjs.a())return;chunkLVUSFXQS_cjs.f(e)||(e={});let t=chunkLVUSFXQS_cjs.o(e,"behavior")&&chunkLVUSFXQS_cjs.p(e.behavior)&&["auto","instant","smooth"].includes(e.behavior.trim())?e.behavior:"smooth",r=chunkLVUSFXQS_cjs.o(e,"timeout")&&chunkLVUSFXQS_cjs.k(e.timeout)&&e.timeout>=1?e.timeout:1;r=r>2147483647?2147483647:r,setTimeout(()=>window.scrollTo({top:0,left:0,behavior:t}),r);};exports.a=b;exports.b=h;exports.c=T;exports.d=g;
@@ -0,0 +1 @@
1
+ import {a,b as b$1}from'./chunk-RHIBYOFQ.js';import {b}from'./chunk-PSWITZK5.js';import {f as f$1,e as e$1,a as a$8}from'./chunk-ME5OV5HN.js';import {a as a$4}from'./chunk-2JQQQ625.js';import {a as a$6}from'./chunk-GAJTFCUA.js';import {a as a$3}from'./chunk-Z6FLCEN6.js';import {a as a$5}from'./chunk-JISH2VGG.js';import {c as c$1,a as a$7,b as b$2}from'./chunk-467VEMJH.js';import {a as a$1}from'./chunk-5SZUSNGZ.js';import {p,j,o,G,d,i,c,g,a as a$2,k,e,f,E,h,m,q,D,b as b$3,n}from'./chunk-MJAW5RAK.js';function ne(e,n={}){j(n,{message:({currentType:i,validType:m})=>`Second parameter (\`options\`) must be of type \`${m}\`, but received: \`${i}\`.`});let p=o(n,"removeInvalidValueNumber")?n.removeInvalidValueNumber:true;if(G(p,{message:({currentType:i,validType:m})=>`Parameter \`removeInvalidValueNumber\` property of the \`options\` (second parameter) must be of type \`${m}\`, but received: \`${i}\`.`}),d(e)){let i$1=Array.from(e,m=>{if(a$1(m))return Number(m);let u=String(m).trim().match(/-?\d+(\.\d+)?/);return u?Number(u[0]):i(m)?null:void 0});return p?b(i$1):i$1}}var Oe=e$1=>c(e$1)?false:g(e$1)?p(e$1):a$2(e$1)?e$1:k(e$1,{includeNaN:true})?e$1!==0:d(e$1)||e(e$1)?a(e$1):!!e$1;var Q=e$1=>c(e$1)?false:g(e$1)?p(e$1):a$2(e$1)?e$1:k(e$1,{includeNaN:true})?e$1!==0:d(e$1)?e$1.some(Q):e(e$1)?Object.values(e$1).some(Q):false;var Ke=(e,n={})=>{if(c(e))return false;f(n)||(n={});let p=o(n,"caseInsensitive")?n.caseInsensitive:false,i=o(n,"trimString")?n.trimString:true,m=o(n,"includeIndeterminate")?n.includeIndeterminate:false;if(!a$2(p)||!a$2(i)||!a$2(m))throw new TypeError(`Parameters \`caseInsensitive\`, \`trimString\` and \`includeIndeterminate\` property of the \`options\` (second parameter) expected to be a \`boolean\` type, but received: ['caseInsensitive': \`${E(p)}\`, 'trimString': \`${E(i)}\`, 'includeIndeterminate': \`${E(m)}\`].`);if(g(e)){let r=e;i&&(r=r.trim()),p&&(r=r.toLowerCase());let u=["true","on","yes","1"];return m&&u.push("indeterminate"),u.includes(r)}return k(e)?e===1:a$2(e)?e:false};var _e=e=>c(e)?false:g(e)?!a$3(e):a$2(e)?e:k(e,{includeNaN:true})?e!==0:d(e)?e.length>0:!!e;var mr=e=>{let n={undefined:void 0,null:null,nan:NaN,true:true,false:false,yes:true,no:false};if(g(e)){let p$1=e.trim().toLowerCase();if(Object.prototype.hasOwnProperty.call(n,p$1))return n[p$1];let i=p$1.replace(/,/g,""),m=Number(i);return !h(m)&&p(i)?m:e.trim()}return e};var X=e=>{try{if(b$3(structuredClone))return structuredClone(e)}catch{}return JSON.parse(JSON.stringify(e))},$=(e,n$1)=>{if(!n(e))return e;let[p,...i]=n$1;if(d(e))for(let m of e)n(m)&&$(m,n$1);else e$1(i)?f(e)&&delete e[p]:f(e)&&n(e[p])&&$(e[p],i);return e},W=(e,n)=>{if(!f(e))return e;let[p,...i]=n;return i.length===0?f(e)&&delete e[p]:f(e[p])&&W(e[p],i),e};function gr(e,n,p=true){if(f$1(e,{checkSymbols:true}))return {};if(a$4(n,{message:({currentType:m,validType:r})=>`Second parameter (\`keysToDelete\`) must be of type \`${r}\` with value of { key: string, deep?: boolean } plain-object, but received: \`${m}\`, with value: \`${c$1(n)}\`.`}),!n.every(m=>f(m)&&"key"in m))throw new TypeError(`Each element in Second Parameter (\`keysToDelete\`) must be of type \`plain-object\` with at least a "key" property (optionally "deep"), but received: \`${c$1(n)}\`.`);let i=p?X(e):e;for(let{key:m$1,deep:r}of n){if(a$5(m$1,{message:({currentType:s,validType:a})=>`Parameter \`key\` at Second Parameter (\`keysToDelete\`) must be of type \`${a}\`, but received: \`${s}\`.`}),!m(r)&&!a$2(r))throw new TypeError(`Parameter \`deep\` at Second Parameter (\`keysToDelete\`) \u2794 (key: "${m$1}", deep: ${r}) must be of type \`boolean\` or \`undefined\`, but received: \`${E(r)}\`.`);let u=m$1.split(".");i=r?$(i,u):W(i,u);}return i}function Qr(e$2,n={}){j(n,{message:({currentType:r,validType:u})=>`Second parameter (\`options\`) must be of type \`${u}\`, but received: \`${r}\`.`});let p$1=o(n,"removeEmptyObjects")?n.removeEmptyObjects:false,i=o(n,"removeEmptyArrays")?n.removeEmptyArrays:false;function m$1(r,u){if(c(r))return;let{removeEmptyArrays:s,removeEmptyObjects:a,isRoot:k$1}=u;if(!a$2(a)||!a$2(s))throw new TypeError(`Parameters \`removeEmptyObjects\` and \`removeEmptyArrays\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['removeEmptyObjects': \`${E(a)}\`, 'removeEmptyArrays': \`${E(s)}\`].`);if(k(r)||p(r)&&!h(Number(r))){let o=Number(r);return a$6(o)?o:void 0}if(d(r)){let o=r.map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!m(t));return s&&e$1(o)?void 0:o}if(q(r)){let o=Array.from(r).map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!m(t));return s&&e$1(o)?void 0:o}if(a$7(r)){let o=Array.from(r.entries()).map(([t,A])=>{let T=m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false}),B=m$1(A,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false});return !m(T)&&!m(B)?[T,B]:void 0}).filter(t=>!m(t));return s&&(o=o.filter(t=>!(d(t)&&t.length===0))),s&&e$1(o)?void 0:o}if(D(r)){let o=Array.from(r).map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!m(t));return s&&e$1(o)?void 0:o}if(b$1(r))if(r instanceof BigInt64Array||r instanceof BigUint64Array){let o=Array.from(r).map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!m(t));return s&&e$1(o)?void 0:o}else {let o=Array.from(r).map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!m(t));return s&&e$1(o)?void 0:o}if(b$2(r))return h(r.getTime())?0:r.getTime();if(e(r)){let o={};for(let[t,A]of Object.entries(r)){let T=m$1(A,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false});m(T)||(o[t]=T);}return a&&f$1(o)?k$1?{}:void 0:o}}return m$1(e$2,{removeEmptyObjects:p$1,removeEmptyArrays:i,isRoot:true})}function dt(e$2,n={}){j(n,{message:({currentType:r,validType:u})=>`Second parameter (\`options\`) must be of type \`${u}\`, but received: \`${r}\`.`});let p=o(n,"removeEmptyObjects")?n.removeEmptyObjects:false,i=o(n,"removeEmptyArrays")?n.removeEmptyArrays:false;function m$1(r,u){if(c(r))return;let{removeEmptyArrays:s,removeEmptyObjects:a,isRoot:k$1}=u;if(!a$2(a)||!a$2(s))throw new TypeError(`Parameters \`removeEmptyObjects\` and \`removeEmptyArrays\` property of the \`options\` (second parameter) must be of type \`boolean\`, but received: ['removeEmptyObjects': \`${E(a)}\`, 'removeEmptyArrays': \`${E(s)}\`].`);if(k(r)||g(r))return String(r);if(b$2(r))return r.toISOString();if(a$8(r))return r.toString();if(D(r))return Array.from(r).map(o=>String(o)).filter(o=>!m(o));if(b$1(r))if(r instanceof BigInt64Array||r instanceof BigUint64Array){let o=Array.from(r).map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).map(t=>String(t)).filter(t=>!m(t));return s&&e$1(o)?void 0:o}else {let o=Array.from(r).map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).map(t=>String(t)).filter(t=>!m(t));return s&&e$1(o)?void 0:o}if(q(r)){let o=Array.from(r).map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!m(t));return s&&e$1(o)?void 0:o}if(a$7(r)){let o=Array.from(r.entries()).map(([t,A])=>[m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false}),m$1(A,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})]).filter(([t,A])=>!m(t)&&!m(A));return s&&e$1(o)?void 0:o}if(d(r)){let o=r.map(t=>m$1(t,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false})).filter(t=>!m(t));return s&&(o=o.filter(t=>!(d(t)&&t.length===0))),s&&e$1(o)?void 0:o}if(e(r)){let o={};for(let[t,A]of Object.entries(r)){let T=m$1(A,{removeEmptyObjects:a,removeEmptyArrays:s,isRoot:false});m(T)?d(A)&&!s&&(o[t]=[]):o[t]=T;}return a&&Object.keys(o).length===0?k$1?{}:void 0:o}}return m$1(e$2,{removeEmptyObjects:p,removeEmptyArrays:i,isRoot:true})}export{ne as a,Oe as b,Q as c,Ke as d,_e as e,mr as f,gr as g,Qr as h,dt as i};
@@ -0,0 +1 @@
1
+ import {k}from'./chunk-MJAW5RAK.js';function e(i){return k(i)&&Number.isFinite(i)}export{e as a};
@@ -0,0 +1 @@
1
+ 'use strict';var chunkISJ33O2J_cjs=require('./chunk-ISJ33O2J.cjs');var p=t=>(chunkISJ33O2J_cjs.a(t,{message:({currentType:o,validType:r})=>`First parameter (\`props\`) must be of type \`${r}\`, but received: \`${o}\`.`}),o=>!t.map(r=>r.toString()).includes(o.toString()));exports.a=p;
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-Z6FLCEN6.js';import {p,f,g as g$1}from'./chunk-MJAW5RAK.js';var a=(r,t={withTrim:true,trimOnly:false})=>{if(!p(r))return "";f(t)||(t={});let{trimOnly:n=false,withTrim:o=true}=t;return n?r.trim():(o&&(r=r.trim()),r.replace(/\s+/g," "))},g=r=>p(r)?r.trim():"",d=(r,t={trimOnly:false})=>{if(!p(r))return "";f(t)||(t={});let{trimOnly:n=false}=t;return n?r.trim():r.replace(/\s+/g,"")};function u(r){return g$1(r)?a$1(r)?"":r.replace(/<\/?[a-zA-Z][^<>]*\/?>/g," ").trim().replace(/\s+/g," ").trim():void 0}export{a,g as b,d as c,u as d};
@@ -1 +1 @@
1
- 'use strict';var chunkCN53M4QZ_cjs=require('./chunk-CN53M4QZ.cjs');var i=new Set(["txt","md","rtf","tex","doc","docx","odt","ott","pdf","djvu","epub","mobi","azw","azw3","xls","xlsx","ods","csv","tsv","ppt","pptx","odp","pps","md","bib","tex","log","jpg","jpeg","png","gif","bmp","tif","tiff","webp","svg","ico","heif","heic","raw","cr2","nef","orf","sr2","dng","dds","psd","exr","xcf","ai","eps","cdr","psd","indd","mp3","wav","ogg","flac","aac","m4a","wma","alac","aiff","amr","mid","midi","opus","au","caf","ape","opus","mp4","mkv","avi","mov","flv","wmv","webm","mpeg","mpg","3gp","3g2","m4v","ts","mts","asf","rm","rmvb","vob","f4v","ogv","m2ts","mod","dav","zip","rar","7z","tar","gz","bz2","xz","tgz","tbz2","txz","lz","lzma","z","cab","arj","ace","iso","dmg","rpm","deb","pkg","apk","jar","iso","img","vhd","vmdk","qcow2","dmg","sql","db","dbf","mdb","accdb","json","xml","yaml","yml","toml","ini","plist","yaml","pkl","msgpack","h5","hdf5","parquet","avro","orc","ndjson","db","pdb","sqlite","sqlite3","dbx","sdf","js","jsx","ts","tsx","c","cpp","h","hpp","java","py","rb","go","rs","php","pl","sh","bat","cmd","ps1","lua","swift","kt","scala","cs","vb","dart","m","r","jl","fs","vbproj","sln","pri","Makefile","html","htm","xhtml","css","scss","sass","less","xml","json","yaml","yml","xlf","xlf","po","pot","jsp","asp","aspx","php","jspf","cgi","cfm","pl","env","conf","config","xml","ini","cfg","toml","yaml","dockerfile","gitignore","gitconfig","gitattributes","npmignore","lock","gradle","pom","yaml","prettierrc","eslintrc","babelrc","editorconfig","ttf","otf","woff","woff2","eot","dwg","dxf","shp","kml","kmz","gpx","stl","step","iges","3ds","3dm","fbx","obj","exe","msi","bin","run","com","cmd","apk","app","deb","rpm","elf","dll","so","dylib","sys","pem","crt","cer","key","der","csr","p12","pfx","jks","iso","cue","bin","nes","sfc","gba","nds","nes","sav","rom","pak","vpk","bik","epub","mobi","azw","azw3","fb2","lit","lrf","cbr","cbz","cbt","cba","opds","fasta","fa","fas","ffn","faa","fna","frn","fastq","fq","gb","gbk","sam","bam","vcf","gff","bed","log","bak","tmp","old","backup","swp","part","crdownload","torrent","ics","vcf","ics","ical","ics","ical","calendar","srt","sub","idx","cue","cdf","hdf","h5","nc","grib","fits","netcdf","sdf","vtk","xmind","drawio","jar","war","ear","crx","xpi","plugin","vsix","safariextz"]),p=new Set(["tar.gz","tar.bz2","tar.xz","tar.lz","tar.lzma","tar.Z","tar.zst","tar.xz"]),o=e=>{if(!chunkCN53M4QZ_cjs.p(e))return;let s=e.split("/").pop();if(s==="")return "";if(s){for(let t of p){let a=`.${t}`;if(s.toLowerCase().endsWith(a))return s.slice(0,-a.length)}for(;;){let t=s.lastIndexOf(".");if(t===-1)break;let a=s.slice(t+1).toLowerCase();if(i.has(a))s=s.slice(0,t);else break}return s}};exports.a=o;
1
+ 'use strict';var chunkLVUSFXQS_cjs=require('./chunk-LVUSFXQS.cjs');var i=new Set(["txt","md","rtf","tex","doc","docx","odt","ott","pdf","djvu","epub","mobi","azw","azw3","xls","xlsx","ods","csv","tsv","ppt","pptx","odp","pps","md","bib","tex","log","jpg","jpeg","png","gif","bmp","tif","tiff","webp","svg","ico","heif","heic","raw","cr2","nef","orf","sr2","dng","dds","psd","exr","xcf","ai","eps","cdr","psd","indd","mp3","wav","ogg","flac","aac","m4a","wma","alac","aiff","amr","mid","midi","opus","au","caf","ape","opus","mp4","mkv","avi","mov","flv","wmv","webm","mpeg","mpg","3gp","3g2","m4v","ts","mts","asf","rm","rmvb","vob","f4v","ogv","m2ts","mod","dav","zip","rar","7z","tar","gz","bz2","xz","tgz","tbz2","txz","lz","lzma","z","cab","arj","ace","iso","dmg","rpm","deb","pkg","apk","jar","iso","img","vhd","vmdk","qcow2","dmg","sql","db","dbf","mdb","accdb","json","xml","yaml","yml","toml","ini","plist","yaml","pkl","msgpack","h5","hdf5","parquet","avro","orc","ndjson","db","pdb","sqlite","sqlite3","dbx","sdf","js","jsx","ts","tsx","c","cpp","h","hpp","java","py","rb","go","rs","php","pl","sh","bat","cmd","ps1","lua","swift","kt","scala","cs","vb","dart","m","r","jl","fs","vbproj","sln","pri","Makefile","html","htm","xhtml","css","scss","sass","less","xml","json","yaml","yml","xlf","xlf","po","pot","jsp","asp","aspx","php","jspf","cgi","cfm","pl","env","conf","config","xml","ini","cfg","toml","yaml","dockerfile","gitignore","gitconfig","gitattributes","npmignore","lock","gradle","pom","yaml","prettierrc","eslintrc","babelrc","editorconfig","ttf","otf","woff","woff2","eot","dwg","dxf","shp","kml","kmz","gpx","stl","step","iges","3ds","3dm","fbx","obj","exe","msi","bin","run","com","cmd","apk","app","deb","rpm","elf","dll","so","dylib","sys","pem","crt","cer","key","der","csr","p12","pfx","jks","iso","cue","bin","nes","sfc","gba","nds","nes","sav","rom","pak","vpk","bik","epub","mobi","azw","azw3","fb2","lit","lrf","cbr","cbz","cbt","cba","opds","fasta","fa","fas","ffn","faa","fna","frn","fastq","fq","gb","gbk","sam","bam","vcf","gff","bed","log","bak","tmp","old","backup","swp","part","crdownload","torrent","ics","vcf","ics","ical","ics","ical","calendar","srt","sub","idx","cue","cdf","hdf","h5","nc","grib","fits","netcdf","sdf","vtk","xmind","drawio","jar","war","ear","crx","xpi","plugin","vsix","safariextz"]),p=new Set(["tar.gz","tar.bz2","tar.xz","tar.lz","tar.lzma","tar.Z","tar.zst","tar.xz"]),o=e=>{if(!chunkLVUSFXQS_cjs.p(e))return;let s=e.split("/").pop();if(s==="")return "";if(s){for(let t of p){let a=`.${t}`;if(s.toLowerCase().endsWith(a))return s.slice(0,-a.length)}for(;;){let t=s.lastIndexOf(".");if(t===-1)break;let a=s.slice(t+1).toLowerCase();if(i.has(a))s=s.slice(0,t);else break}return s}};exports.a=o;
@@ -0,0 +1 @@
1
+ 'use strict';var chunkPFLNHD4B_cjs=require('./chunk-PFLNHD4B.cjs'),chunkRV2VULM7_cjs=require('./chunk-RV2VULM7.cjs'),chunkO7SJR4CY_cjs=require('./chunk-O7SJR4CY.cjs'),chunkLVUSFXQS_cjs=require('./chunk-LVUSFXQS.cjs');var j=e=>{if(!chunkLVUSFXQS_cjs.g(e)&&!chunkLVUSFXQS_cjs.k(e))return 0;let s=String(e).trim().replace(/[^0-9]/g,"");return Number(s)||0};var A=(e={})=>{chunkLVUSFXQS_cjs.j(e,{message:({currentType:U,validType:B})=>`Second parameter (\`options\`) must be of type \`${B}\`, but received: \`${U}\`.`});let s=chunkLVUSFXQS_cjs.o(e,"convertBooleans")?e.convertBooleans:false,r=chunkLVUSFXQS_cjs.o(e,"convertDates")?e.convertDates:false,n=chunkLVUSFXQS_cjs.o(e,"convertNumbers")?e.convertNumbers:false,t=chunkLVUSFXQS_cjs.o(e,"loggingOnFail")?e.loggingOnFail:false,a=chunkLVUSFXQS_cjs.o(e,"removeEmptyArrays")?e.removeEmptyArrays:false,m=chunkLVUSFXQS_cjs.o(e,"removeEmptyObjects")?e.removeEmptyObjects:false,o=chunkLVUSFXQS_cjs.o(e,"removeNulls")?e.removeNulls:false,N=chunkLVUSFXQS_cjs.o(e,"removeUndefined")?e.removeUndefined:false,v=chunkLVUSFXQS_cjs.o(e,"strictMode")?e.strictMode:false,T=chunkLVUSFXQS_cjs.o(e,"checkSymbols")?e.checkSymbols:false,w=chunkLVUSFXQS_cjs.o(e,"convertNaN")?e.convertNaN:false,b=chunkLVUSFXQS_cjs.o(e,"customDateFormats")?e.customDateFormats:[],y=chunkLVUSFXQS_cjs.o(e,"onError")?e.onError:chunkRV2VULM7_cjs.a;if(!(chunkLVUSFXQS_cjs.a(s)&&chunkLVUSFXQS_cjs.a(r)&&chunkLVUSFXQS_cjs.a(n)&&chunkLVUSFXQS_cjs.a(w)&&chunkLVUSFXQS_cjs.a(T)&&chunkLVUSFXQS_cjs.a(t)&&chunkLVUSFXQS_cjs.a(a)&&chunkLVUSFXQS_cjs.a(m)&&chunkLVUSFXQS_cjs.a(o)&&chunkLVUSFXQS_cjs.a(N)&&chunkLVUSFXQS_cjs.a(v)&&chunkLVUSFXQS_cjs.d(b)&&chunkLVUSFXQS_cjs.b(y)))throw new TypeError(`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': \`${chunkLVUSFXQS_cjs.E(s)}\`, 'convertDates': \`${chunkLVUSFXQS_cjs.E(r)}\`, 'convertNumbers': \`${chunkLVUSFXQS_cjs.E(n)}\`, 'loggingOnFail': \`${chunkLVUSFXQS_cjs.E(t)}\`, 'removeEmptyArrays': \`${chunkLVUSFXQS_cjs.E(a)}\`, 'removeEmptyObjects': \`${chunkLVUSFXQS_cjs.E(m)}\`, 'removeNulls': \`${chunkLVUSFXQS_cjs.E(o)}\`, 'removeUndefined': \`${chunkLVUSFXQS_cjs.E(N)}\`, 'strictMode': \`${chunkLVUSFXQS_cjs.E(v)}\`, 'customDateFormats': \`${chunkLVUSFXQS_cjs.E(b)}\`, 'onError': \`${chunkLVUSFXQS_cjs.E(y)}\`].`);return {convertBooleans:s,convertDates:r,convertNumbers:n,convertNaN:w,loggingOnFail:t,removeEmptyArrays:a,removeEmptyObjects:m,removeNulls:o,removeUndefined:N,strictMode:v,customDateFormats:b,onError:y,checkSymbols:T}},P=(e,s={})=>{let r=A(s);if(chunkLVUSFXQS_cjs.i(e))return r.removeNulls?void 0:null;if(chunkLVUSFXQS_cjs.m(e))return r.removeUndefined,void 0;if(chunkLVUSFXQS_cjs.g(e)){let n=e.trim();if(r.convertNaN&&n==="NaN")return NaN;if(r.convertNumbers&&!chunkLVUSFXQS_cjs.h(Number(n)))return Number(n);if(r.convertBooleans){if(n==="true")return true;if(n==="false")return false}if(r.convertDates){if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/.test(n))return new Date(n);if(r.customDateFormats?.length)for(let t of r.customDateFormats){let a=I(n,t);if(a)return a}}return r.strictMode?void 0:n}if(chunkLVUSFXQS_cjs.d(e)){let n=e.map(t=>P(t,r)).filter(t=>!chunkLVUSFXQS_cjs.m(t));return r.removeEmptyArrays&&chunkPFLNHD4B_cjs.e(n)?void 0:n}if(chunkLVUSFXQS_cjs.e(e)){let n={};for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let a=P(e[t],r);chunkLVUSFXQS_cjs.m(a)||(n[t]=a);}return r.removeEmptyObjects&&chunkPFLNHD4B_cjs.f(n,{checkSymbols:r.checkSymbols})?void 0:n}return r.strictMode?void 0:e},I=(e,s)=>{if(!chunkLVUSFXQS_cjs.p(e)||!chunkLVUSFXQS_cjs.p(s))throw new TypeError(`Parameter \`dateString\` and \`format\` must be of type \`string\` and not empty-string, but received: "['dateString': \`${chunkLVUSFXQS_cjs.E(e)}\` - (current value: \`${chunkO7SJR4CY_cjs.c(e)}\`), 'format': \`${chunkLVUSFXQS_cjs.E(s)}\` - (current value: \`${chunkO7SJR4CY_cjs.c(s)}\`)]".`);let r=e.split(/[-/]/).map(Number);if(r.length!==3||r.some(chunkLVUSFXQS_cjs.h))return null;let n,t,a;if(s==="DD/MM/YYYY")[n,t,a]=r;else if(s==="MM/DD/YYYY")[t,n,a]=r;else return null;t-=1;let m=new Date(a,t,n);return m.getFullYear()!==a||m.getMonth()!==t||m.getDate()!==n?null:m};function me(e,s={}){if(chunkLVUSFXQS_cjs.i(e))return null;let r=A(s);if(r.convertNaN&&(chunkLVUSFXQS_cjs.h(e)||chunkLVUSFXQS_cjs.p(e)&&e==="NaN"))return NaN;if(r.convertNumbers&&!chunkLVUSFXQS_cjs.h(Number(e))&&chunkLVUSFXQS_cjs.k(j(e)))return Number(e);if(chunkLVUSFXQS_cjs.g(e))try{let n=J(e);r.removeUndefined?n=n.replace(/,\s*"[^"]*"\s*:\s*undefined(?=\s*[},])/g,"").replace(/"[^"]*"\s*:\s*undefined\s*(,)?/g,""):n=n.replace(/:\s*undefined(?=\s*[,}])/g,":null"),r.convertNaN?n=n.replace(/:\s*NaN(?=\s*[,}])/g,':"NaN"'):n=n.replace(/:\s*NaN(?=\s*[,}])/g,':"NaN"').replace(/,\s*"[^"]*"\s*:\s*NaN(?=\s*[},])/g,"").replace(/"[^"]*"\s*:\s*NaN\s*(,)?/g,""),n=n.replace(/,(\s*[}\]])/g,"$1");let t=JSON.parse(n);return P(t,r)}catch(n){r.loggingOnFail&&console.error("Failed to parsing at `safeJsonParse`:",n),r.onError(chunkLVUSFXQS_cjs.C(n)?new Error(n.message.replace(/^JSON\.parse:/,"Failed to parsing")):new Error(String(n)));return}}function J(e){let s=new Set(["\\",'"',"/","b","f","n","r","t","u"]),r="",n=false,t=false,a=false;for(let m=0;m<e.length;m++){let o=e[m];if(a){n?o==="'"?r+="'":s.has(o)?o==="\\"?r+="\\\\":o==='"'?r+='\\"':r+="\\"+o:r+="\\\\"+o:t?o==='"'?r+='\\"':s.has(o)?r+="\\"+o:r+="\\\\"+o:r+="\\"+o,a=false;continue}if(o==="\\"){a=true;continue}if(!n&&!t){if(o==="'"){r+='"',n=true;continue}if(o==='"'){r+='"',t=true;continue}}else if(n){if(o==="'"){r+='"',n=false;continue}}else if(t&&o==='"'){r+='"',t=false;continue}r+=o;}return r}exports.a=j;exports.b=P;exports.c=I;exports.d=me;
@@ -0,0 +1 @@
1
+ 'use strict';var chunkLVUSFXQS_cjs=require('./chunk-LVUSFXQS.cjs');function u(r,e){if(chunkLVUSFXQS_cjs.d(r))return;let t=chunkLVUSFXQS_cjs.F({value:r,options:e,requiredValidType:"array"});throw new TypeError(t)}exports.a=u;
@@ -0,0 +1 @@
1
+ import {g,F}from'./chunk-MJAW5RAK.js';var p=(s,t={})=>{if(g(s))return;let n=F({value:s,options:t,requiredValidType:"string"});throw new TypeError(n)};export{p as a};
@@ -1 +1 @@
1
- import {a}from'./chunk-QFCGBBSY.js';var p=t=>(a(t,{message:({currentType:o,validType:r})=>`First parameter (\`props\`) must be of type \`${r}\`, but received: \`${o}\`.`}),o=>!t.map(r=>r.toString()).includes(o.toString()));export{p as a};
1
+ import {a}from'./chunk-2JQQQ625.js';var p=t=>(a(t,{message:({currentType:o,validType:r})=>`First parameter (\`props\`) must be of type \`${r}\`, but received: \`${o}\`.`}),o=>!t.map(r=>r.toString()).includes(o.toString()));export{p as a};
@@ -1 +1 @@
1
- import {p}from'./chunk-XCFIOTCV.js';var h=i=>{if(!p(i))return 0;let l=i.trim().replace(/\u00A0/g,"").replace(/\u202F/g,""),s=false;/^\(.*\)$/.test(l)&&(s=true,l=l.slice(1,-1).trim()),l=l.replace(/^[-\s]+/,a=>a.includes("-")?"-":"").replace(/[\s.,-]+$/,""),s=s||/^-/.test(l)||/^[^\d]*-/.test(l);let e=l.replace(/[^0-9.,'\s]/g,"").replace(/[\s']/g,""),o=e.match(/,\d{2}/g);if(o&&o.length>1)e=e.replace(/,/g,"");else {let a=(e.match(/\./g)||[]).length,p=(e.match(/,/g)||[]).length;if(a>1&&p===0)e=e.replace(/\./g,"");else if(p>1&&a===0)e=e.replace(/,/g,"");else {let t=e.lastIndexOf(","),c=e.lastIndexOf(".");if(t>c)e=e.replace(/\./g,"").replace(",",".");else if(c>t)e=e.replace(/,/g,"");else if(t>c){let r=e.slice(0,t).replace(/,/g,"").replace(/\./g,""),n=e.slice(t+1);e=r+"."+n;}else if(c>t){let r=e.slice(0,c).replace(/\./g,"").replace(/,/g,""),n=e.slice(c+1);e=r+"."+n;}else t!==-1?e=e.replace(/,/g,""):c!==-1&&(e=e.replace(/\./g,""));}}let g=parseFloat(e)||0;return s?-g:g};export{h as a};
1
+ import {p}from'./chunk-MJAW5RAK.js';var h=i=>{if(!p(i))return 0;let l=i.trim().replace(/\u00A0/g,"").replace(/\u202F/g,""),s=false;/^\(.*\)$/.test(l)&&(s=true,l=l.slice(1,-1).trim()),l=l.replace(/^[-\s]+/,a=>a.includes("-")?"-":"").replace(/[\s.,-]+$/,""),s=s||/^-/.test(l)||/^[^\d]*-/.test(l);let e=l.replace(/[^0-9.,'\s]/g,"").replace(/[\s']/g,""),o=e.match(/,\d{2}/g);if(o&&o.length>1)e=e.replace(/,/g,"");else {let a=(e.match(/\./g)||[]).length,p=(e.match(/,/g)||[]).length;if(a>1&&p===0)e=e.replace(/\./g,"");else if(p>1&&a===0)e=e.replace(/,/g,"");else {let t=e.lastIndexOf(","),c=e.lastIndexOf(".");if(t>c)e=e.replace(/\./g,"").replace(",",".");else if(c>t)e=e.replace(/,/g,"");else if(t>c){let n=e.slice(0,t).replace(/,/g,"").replace(/\./g,""),r=e.slice(t+1);e=n+"."+r;}else if(c>t){let n=e.slice(0,c).replace(/\./g,"").replace(/,/g,""),r=e.slice(c+1);e=n+"."+r;}else t!==-1?e=e.replace(/,/g,""):c!==-1&&(e=e.replace(/\./g,""));}}let g=parseFloat(e)||0;return s?-g:g};export{h as a};
@@ -0,0 +1 @@
1
+ 'use strict';var chunkFIEZKTAZ_cjs=require('./chunk-FIEZKTAZ.cjs'),chunkZO5364A6_cjs=require('./chunk-ZO5364A6.cjs'),chunk6SMJMZ7G_cjs=require('./chunk-6SMJMZ7G.cjs'),chunkISJ33O2J_cjs=require('./chunk-ISJ33O2J.cjs'),chunk445TAVT4_cjs=require('./chunk-445TAVT4.cjs'),chunk6Q4I2RPC_cjs=require('./chunk-6Q4I2RPC.cjs'),chunkO7SJR4CY_cjs=require('./chunk-O7SJR4CY.cjs'),chunkLVUSFXQS_cjs=require('./chunk-LVUSFXQS.cjs');var A=(t,e,o)=>{if(chunkLVUSFXQS_cjs.g(t)){if(chunk6Q4I2RPC_cjs.a(t))throw new TypeError("First parameter (`baseUrl`) cannot be an empty-string.");t=chunk445TAVT4_cjs.b(t);}else if(!chunkFIEZKTAZ_cjs.a(t))throw new TypeError(`First parameter (\`baseUrl\`) must be of type an URL instance or a \`string\` and a non empty-string, but received: \`${chunkLVUSFXQS_cjs.E(t)}\`, with current value: \`${chunkO7SJR4CY_cjs.c(t)}\`.`);if(!chunkLVUSFXQS_cjs.m(o)&&(chunkISJ33O2J_cjs.a(o,{message:({currentType:r,validType:n})=>`Third parameter (\`removeParams\`) must be of type \`${n} of strings\`, but received: \`${r}\`.`}),!o.every(r=>chunkLVUSFXQS_cjs.p(r))))throw new TypeError("Third parameter (`removeParams`) must be of type `array` and contains `string` only and non empty-string.");try{if(!chunkLVUSFXQS_cjs.m(e)&&!chunkLVUSFXQS_cjs.b(e[Symbol.iterator]))throw new TypeError(`Second parameter (\`queryParams\`) must be iterable (like URLSearchParams.entries() or an array of [[string, string | number]...]), but received: \`${chunkLVUSFXQS_cjs.E(e)}\`, with value: \`${chunkO7SJR4CY_cjs.c(e)}\`.`);let r=new URL(t);if(!chunkLVUSFXQS_cjs.m(e)){let n=Object.fromEntries(e);if(!chunk6SMJMZ7G_cjs.a(n)){let i=new URLSearchParams(r.search);for(let[s,f]of Object.entries(n)){if(!chunkLVUSFXQS_cjs.p(f)&&!chunkLVUSFXQS_cjs.k(f,{includeNaN:!0}))throw new TypeError(`Second parameter (\`queryParams\`) must be iterable (like URLSearchParams.entries() or an array of [[string, string | number]...]), but received: \`${chunkLVUSFXQS_cjs.E(e)}\`, with value: \`${chunkO7SJR4CY_cjs.c(e)}\`.`);i.set(s,String(f));}o?.length&&chunkZO5364A6_cjs.d(o).map(s=>{i.delete(s);}),r.search=i.toString();}}return o?.forEach(n=>r.searchParams.delete(n)),r}catch(r){throw chunkLVUSFXQS_cjs.C(r)?r:new Error("Failed to construct a valid URL in `constructURL()`, Error:"+r)}};var C=t=>{if(!chunkLVUSFXQS_cjs.p(t))return null;let e;try{e=decodeURIComponent(t);}catch{return null}let o=/https?:\/\/.*?(?=https?:\/\/|\s|$)/g,r=e.match(o);if(!r)return null;let n=r.map(i=>i.replace(/[.,;:!?)]*$/,"")).filter(i=>{try{let s=new URL(i);return s.protocol==="http:"||s.protocol==="https:"}catch{return false}});return n.length?n:null};exports.a=A;exports.b=C;
@@ -0,0 +1,2 @@
1
+ 'use strict';var chunkFIEZKTAZ_cjs=require('./chunk-FIEZKTAZ.cjs'),chunkRHE3M2NJ_cjs=require('./chunk-RHE3M2NJ.cjs'),chunkPFLNHD4B_cjs=require('./chunk-PFLNHD4B.cjs'),chunkD43GV6EF_cjs=require('./chunk-D43GV6EF.cjs'),chunk6Q4I2RPC_cjs=require('./chunk-6Q4I2RPC.cjs'),chunkDYRDBYPF_cjs=require('./chunk-DYRDBYPF.cjs'),chunkO7SJR4CY_cjs=require('./chunk-O7SJR4CY.cjs'),chunkLVUSFXQS_cjs=require('./chunk-LVUSFXQS.cjs');var ir=(r,t,e=false)=>{if(!(chunkLVUSFXQS_cjs.d(r)&&chunkLVUSFXQS_cjs.d(t)))throw new TypeError(`Parameters \`array1\` and \`array2\` property of the \`options\` (second parameter) must be of type \`array\`, but received: ['array1': \`${chunkLVUSFXQS_cjs.E(r)}\`, 'array2': \`${chunkLVUSFXQS_cjs.E(t)}\`].`);if(chunkLVUSFXQS_cjs.G(e,{message:({currentType:o,validType:n})=>`Third parameter \`ignoreOrder\` must be of type \`${n}\`, but received: \`${o}\`.`}),!chunkPFLNHD4B_cjs.d(r.length,t.length))return false;let s=o=>chunkLVUSFXQS_cjs.d(o)?o.map(m=>chunkLVUSFXQS_cjs.d(m)?s(m):m).sort((m,u)=>{let R=chunkO7SJR4CY_cjs.c(m),C=chunkO7SJR4CY_cjs.c(u);return R<C?-1:R>C?1:0}):o,i=e?s(r):r,a=e?s(t):t;return chunkPFLNHD4B_cjs.d(i.length,a.length)?i.every((o,n)=>chunkO7SJR4CY_cjs.c(o)===chunkO7SJR4CY_cjs.c(a[n])):false};var fr=(r,t)=>chunkPFLNHD4B_cjs.d(r,t);var ur=(r,t)=>{if(!chunkFIEZKTAZ_cjs.a(r)||!chunkFIEZKTAZ_cjs.a(t))throw new TypeError("Parameters `urlA` and `urlB` (first and second parameter) must be instance of URL.");return r.protocol+"//"+r.host+r.pathname==t.protocol+"//"+t.host+t.pathname};var yr=(r,t)=>{if(!chunkFIEZKTAZ_cjs.a(r)||!chunkFIEZKTAZ_cjs.a(t))throw new TypeError("Parameters `urlA` and `urlB` (first and second parameter) must be instance of URL.");return r.protocol+"//"+r.host+r.pathname+r.search==t.protocol+"//"+t.host+t.pathname+t.search};var Tr=(r,t,e={})=>{if(!chunkLVUSFXQS_cjs.p(r)||!chunkLVUSFXQS_cjs.d(t))return false;chunkLVUSFXQS_cjs.j(e,{message:({currentType:n,validType:m})=>`Third parameter (\`options\`) must be of type \`${m}\`, but received: \`${n}\`.`});let{exactMatch:s=false,flags:i="i"}=e;chunkLVUSFXQS_cjs.G(s,{message:({currentType:n,validType:m})=>`Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${m}\`, but received: \`${n}\`.`}),chunkDYRDBYPF_cjs.a(i,{message:({currentType:n,validType:m})=>`Parameter \`flags\` property of the \`options\` (third parameter) must be of type \`${m}\`, but received: \`${n}\`.`});let a=n=>n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),o=t.filter(n=>chunkLVUSFXQS_cjs.p(n)).map(a);return o.length===0?false:o.every(n=>{let m=s?`(?<!\\S)${n}(?!\\S)`:n;return new RegExp(m,i.includes("u")?i:i+"u").test(r)})};var Pr=(r,t,e={})=>{if(!chunkLVUSFXQS_cjs.p(r)||!chunkLVUSFXQS_cjs.d(t))return false;chunkLVUSFXQS_cjs.j(e,{message:({currentType:m,validType:u})=>`Third parameter (\`options\`) must be of type \`${u}\`, but received: \`${m}\`.`});let{exactMatch:s=false,flags:i="i"}=e;chunkLVUSFXQS_cjs.G(s,{message:({currentType:m,validType:u})=>`Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${u}\`, but received: \`${m}\`.`}),chunkDYRDBYPF_cjs.a(i,{message:({currentType:m,validType:u})=>`Parameter \`flags\` property of the \`options\` (third parameter) must be of type \`${u}\`, but received: \`${m}\`.`});let a=m=>m.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),o=t.filter(m=>chunkLVUSFXQS_cjs.p(m)).map(a);if(o.length===0)return false;let n=s?`(?<!\\S)(${o.join("|")})(?!\\S)`:`(${o.join("|")})`;return new RegExp(n,i.includes("u")?i:i+"u").test(r)};function H(r){let t=typeof r;return t==="string"||t==="number"||t==="symbol"}var Z=(r,t)=>{if(!chunkLVUSFXQS_cjs.n(r))return false;if(!H(t))throw new TypeError(`Second Parameter (\`key\`) must be of type \`string\`, \`number\` or \`symbol\`, but received: \`${chunkLVUSFXQS_cjs.E(t)}\`.`);return Object.prototype.hasOwnProperty.call(r,t)?true:chunkLVUSFXQS_cjs.d(r)?r.some(e=>Z(e,t)):Object.values(r).some(e=>chunkLVUSFXQS_cjs.n(e)&&Z(e,t))};var Gr=(r,t)=>{if(!chunkLVUSFXQS_cjs.d(r)||!chunkLVUSFXQS_cjs.d(t)||chunkPFLNHD4B_cjs.e(r)||chunkPFLNHD4B_cjs.e(t))return false;let e=new Set(r);return t.some(s=>e.has(s))};var G=r=>Object.prototype.toString.call(r)==="[object Arguments]";function I(r){return typeof r=="number"&&r>-1&&Number.isInteger(r)&&r<=Number.MAX_SAFE_INTEGER}function nt(r){return !chunkLVUSFXQS_cjs.b(r)&&chunkLVUSFXQS_cjs.n(r)&&I(r?.length)}function ft(r){return chunkLVUSFXQS_cjs.n(r)&&I(r.length)}var lt=r=>chunkLVUSFXQS_cjs.g(r)||chunkLVUSFXQS_cjs.k(r)?chunkD43GV6EF_cjs.a(r.toString())!==0?true:r.toString().trim()==="0":false;var S=(r,t)=>{if(typeof r=="number"&&typeof t=="number"&&Number.isNaN(r)&&Number.isNaN(t)||r===t)return true;if(typeof r!=typeof t)return false;if(chunkO7SJR4CY_cjs.b(r)&&chunkO7SJR4CY_cjs.b(t))return r.getTime()===t.getTime();if(chunkPFLNHD4B_cjs.a(r)&&chunkPFLNHD4B_cjs.a(t)||chunkLVUSFXQS_cjs.l(r)&&chunkLVUSFXQS_cjs.l(t))return r.toString()===t.toString();if(chunkLVUSFXQS_cjs.q(r)&&chunkLVUSFXQS_cjs.q(t)){if(r.size!==t.size)return false;let e=Array.from(t),s=new Set;for(let i of r){let a=false;for(let o=0;o<e.length;o++)if(!s.has(o)&&S(i,e[o])){s.add(o),a=true;break}if(!a)return false}return true}if(chunkO7SJR4CY_cjs.a(r)&&chunkO7SJR4CY_cjs.a(t)){if(r.size!==t.size)return false;let e=Array.from(t),s=new Set;for(let[i,a]of r){let o=false;for(let n=0;n<e.length;n++){if(s.has(n))continue;let[m,u]=e[n];if(S(i,m)&&S(a,u)){s.add(n),o=true;break}}if(!o)return false}return true}if(chunkLVUSFXQS_cjs.d(r)&&chunkLVUSFXQS_cjs.d(t))return r.length!==t.length?false:r.every((e,s)=>S(e,t[s]));if(chunkLVUSFXQS_cjs.n(r)&&chunkLVUSFXQS_cjs.n(t)&&r&&t){if(chunkLVUSFXQS_cjs.d(r)!==chunkLVUSFXQS_cjs.d(t))return false;let e=Object.keys(r),s=Object.keys(t);return e.length!==s.length?false:e.every(i=>S(r[i],t[i]))}return false};function Ot(r){return !!r&&typeof r=="object"&&r?.nodeType===1&&!chunkLVUSFXQS_cjs.f(r)}function vt(r){return chunkLVUSFXQS_cjs.c(r)||chunkLVUSFXQS_cjs.a(r)||chunkLVUSFXQS_cjs.k(r,{includeNaN:true})||chunkLVUSFXQS_cjs.l(r)?true:chunkLVUSFXQS_cjs.b(r)?Object.keys(r).length===0:chunkLVUSFXQS_cjs.g(r)||chunkLVUSFXQS_cjs.d(r)||G(r)||chunkRHE3M2NJ_cjs.b(r)?r.length===0:chunkO7SJR4CY_cjs.a(r)||chunkLVUSFXQS_cjs.q(r)?r.size===0:chunkLVUSFXQS_cjs.D(r)?r.length===0:chunkLVUSFXQS_cjs.f(r)?Object.keys(r).length===0:false}var X=r=>{if(chunkLVUSFXQS_cjs.g(r))return chunk6Q4I2RPC_cjs.a(r);if(chunkLVUSFXQS_cjs.k(r))return chunkLVUSFXQS_cjs.h(r);if(chunkLVUSFXQS_cjs.d(r))return chunkPFLNHD4B_cjs.e(r)||r.every(X);if(chunkLVUSFXQS_cjs.n(r)){let t=Object.keys(r),e=Object.getOwnPropertySymbols(r);return t.length===0&&e.length===0?true:[...t,...e].every(s=>X(r[s]))}return !r};function Bt(r,t,e){return chunkPFLNHD4B_cjs.c(r,t,e,new WeakMap)}function B(r,t,e){return M(r,t,e)}function J(r,t){return r===t||r===0&&t===0||Number.isNaN(r)&&Number.isNaN(t)}function M(r,t,e){if(r===t)return true;if(!chunkLVUSFXQS_cjs.n(t))return J(r,t);if(!chunkLVUSFXQS_cjs.n(r))return false;let s=Reflect.ownKeys(t).filter(i=>!(chunkLVUSFXQS_cjs.d(t)&&i==="length"));for(let i of s){if(!(i in r))return false;let a=r[i],o=t[i],n=e?.(a,o,i,r,t);if(!chunkLVUSFXQS_cjs.m(n)){if(!n)return false;continue}if(chunkLVUSFXQS_cjs.n(a)&&chunkLVUSFXQS_cjs.n(o)){if(!B(a,o,e))return false}else if(!J(a,o))return false}return true}function se(r,t){return M(r,t)}var Q=Function.prototype.toString,Y=/\{\s*\[native code\]\s*\}/;function pe(r){if(!chunkLVUSFXQS_cjs.b(r))return false;try{let t=Q.call(r);return Y.test(t)}catch{return false}}function ye(r){return !chunkLVUSFXQS_cjs.c(r)&&(chunkLVUSFXQS_cjs.n(r)||chunkLVUSFXQS_cjs.b(r))}function be(r){return typeof r=="number"&&Number.isSafeInteger(r)}var de=r=>{if(!chunkLVUSFXQS_cjs.p(r))return false;let t;try{t=decodeURIComponent(r);}catch{return false}return !t.startsWith("http://")&&!t.startsWith("https://")?false:new RegExp(/^https?:\/\/(?:localhost(?::\d+)?(?:[\/?#][^\s]*)?|(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}(?::\d+)?(?:[\/?#][^\s]*)?)$/).test(t)};function Ae(r){return chunkLVUSFXQS_cjs.e(r)&&!chunkLVUSFXQS_cjs.i(r)&&r instanceof WeakMap}
2
+ exports.a=ir;exports.b=fr;exports.c=ur;exports.d=yr;exports.e=Tr;exports.f=Pr;exports.g=H;exports.h=Z;exports.i=Gr;exports.j=G;exports.k=I;exports.l=nt;exports.m=ft;exports.n=lt;exports.o=S;exports.p=Ot;exports.q=vt;exports.r=X;exports.s=Bt;exports.t=B;exports.u=se;exports.v=pe;exports.w=ye;exports.x=be;exports.y=de;exports.z=Ae;