@rzl-zone/utils-js 3.1.0-beta.2 → 3.1.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 (195) hide show
  1. package/README.md +56 -27
  2. package/dist/NumberRangeUnion-DC-C3_Kq.d.ts +23 -23
  3. package/dist/any-BmdI8UbK.d.ts +56 -56
  4. package/dist/arrays-normalize-recursive-CnjYJ9xg.d.ts +66 -66
  5. package/dist/assertions/index.cjs +1 -1
  6. package/dist/assertions/index.d.ts +396 -396
  7. package/dist/assertions/index.js +1 -1
  8. package/dist/chunk-26XIKDJI.cjs +1 -0
  9. package/dist/chunk-2NWHDDM5.js +1 -0
  10. package/dist/chunk-2UIRWYE3.js +1 -0
  11. package/dist/chunk-3KBHD3BS.cjs +1 -0
  12. package/dist/chunk-4HD2O5A4.js +1 -0
  13. package/dist/chunk-5C2SMIGX.cjs +1 -0
  14. package/dist/chunk-5I2B5DOG.js +1 -0
  15. package/dist/chunk-6HQDHIOD.js +1 -0
  16. package/dist/chunk-735HJXBT.cjs +1 -0
  17. package/dist/chunk-7BXIZM57.cjs +1 -0
  18. package/dist/chunk-7KJBDGEP.js +1 -0
  19. package/dist/chunk-7U44T63D.cjs +1 -0
  20. package/dist/chunk-AJ65QFV2.js +1 -0
  21. package/dist/chunk-APHDUCVQ.js +1 -0
  22. package/dist/chunk-BSVZRN7C.js +1 -0
  23. package/dist/chunk-C6JFHUR2.cjs +1 -0
  24. package/dist/chunk-CPLBRGST.js +1 -0
  25. package/dist/chunk-CTBRLEOG.js +1 -0
  26. package/dist/chunk-DUK2K4FB.js +1 -0
  27. package/dist/chunk-DVMHRLKP.cjs +1 -0
  28. package/dist/chunk-E63WVPZE.cjs +1 -0
  29. package/dist/chunk-EBMHQW7X.cjs +1 -0
  30. package/dist/chunk-EGNZCW4K.js +1 -0
  31. package/dist/chunk-FEKDB32T.js +1 -0
  32. package/dist/chunk-FIAAX3UE.js +1 -0
  33. package/dist/chunk-FUS3DVLB.cjs +1 -0
  34. package/dist/chunk-GGRMHIFJ.cjs +1 -0
  35. package/dist/chunk-HQ5GQTEE.js +1 -0
  36. package/dist/chunk-I5X5IN4H.js +1 -0
  37. package/dist/chunk-I7YGXQPI.cjs +1 -0
  38. package/dist/chunk-INUFZJLX.cjs +1 -0
  39. package/dist/chunk-IREHUBF7.js +1 -0
  40. package/dist/chunk-J2RGTPGK.cjs +1 -0
  41. package/dist/chunk-KHO2SBNA.cjs +1 -0
  42. package/dist/chunk-KXIXXSWX.cjs +1 -0
  43. package/dist/chunk-LBMEEJWA.js +1 -0
  44. package/dist/chunk-MC3LXMCQ.js +1 -0
  45. package/dist/chunk-MMSYCIJ2.cjs +1 -1
  46. package/dist/chunk-NU3N4WHD.cjs +1 -0
  47. package/dist/chunk-ODZQXH7E.cjs +1 -0
  48. package/dist/chunk-ONZFBJVW.js +1 -0
  49. package/dist/chunk-PXDRHFIE.js +1 -0
  50. package/dist/chunk-Q6NHYWVX.js +1 -0
  51. package/dist/chunk-QNKGP5DY.js +1 -0
  52. package/dist/chunk-S6Z6I2EG.cjs +1 -0
  53. package/dist/chunk-SMADKXZE.js +1 -0
  54. package/dist/chunk-TSLYDPBJ.js +1 -0
  55. package/dist/chunk-TVXADXCC.cjs +1 -0
  56. package/dist/chunk-UDA26MCU.cjs +1 -0
  57. package/dist/chunk-UET567YM.cjs +1 -0
  58. package/dist/chunk-VEYMQ3UA.js +1 -0
  59. package/dist/chunk-W2W3L2M5.js +1 -0
  60. package/dist/chunk-WBWTXKMC.cjs +1 -0
  61. package/dist/chunk-WVSPXFTY.js +1 -0
  62. package/dist/chunk-XC2PYCT4.cjs +1 -0
  63. package/dist/chunk-XIXA5KDF.cjs +1 -0
  64. package/dist/chunk-Y4O5KZF6.cjs +1 -0
  65. package/dist/chunk-YRM7IJLX.js +1 -0
  66. package/dist/chunk-YT3MSZKK.cjs +1 -0
  67. package/dist/chunk-YXHCULSO.cjs +1 -0
  68. package/dist/chunk-YZR5OGJA.cjs +1 -0
  69. package/dist/chunk-Z4DXK7A6.cjs +1 -0
  70. package/dist/chunk-ZXIWDFEQ.js +1 -0
  71. package/dist/conversions/index.cjs +1 -1
  72. package/dist/conversions/index.d.ts +1347 -1297
  73. package/dist/conversions/index.js +1 -1
  74. package/dist/env/index.cjs +1 -1
  75. package/dist/env/index.d.ts +14 -14
  76. package/dist/env/index.js +1 -1
  77. package/dist/events/index.cjs +1 -1
  78. package/dist/events/index.d.ts +109 -109
  79. package/dist/events/index.js +1 -1
  80. package/dist/extends-Bk_SBGdT.d.ts +330 -330
  81. package/dist/formatting/index.cjs +1 -1
  82. package/dist/formatting/index.d.ts +855 -855
  83. package/dist/formatting/index.js +1 -1
  84. package/dist/generator/index.cjs +1 -1
  85. package/dist/generator/index.d.ts +155 -155
  86. package/dist/generator/index.js +1 -1
  87. package/dist/if-CvT4R7Kh.d.ts +16 -16
  88. package/dist/is-array-Cymwrsmm.d.ts +1119 -0
  89. package/dist/isPlainObject-BVhBAPHX.d.ts +154 -154
  90. package/dist/never-BfayMBF9.d.ts +64 -64
  91. package/dist/next/index.cjs +1 -8
  92. package/dist/next/index.d.ts +183 -183
  93. package/dist/next/index.js +1 -8
  94. package/dist/next/server/index.cjs +1 -2
  95. package/dist/next/server/index.d.ts +25 -25
  96. package/dist/next/server/index.js +1 -2
  97. package/dist/nils-DMz3kU7M.d.ts +155 -155
  98. package/dist/omit-VvmIsZmX.d.ts +25 -25
  99. package/dist/operations/index.cjs +1 -1
  100. package/dist/operations/index.d.ts +120 -120
  101. package/dist/operations/index.js +1 -1
  102. package/dist/or-DyZCRvaU.d.ts +89 -0
  103. package/dist/parsers/index.cjs +1 -1
  104. package/dist/parsers/index.d.ts +34 -34
  105. package/dist/parsers/index.js +1 -1
  106. package/dist/predicates/index.cjs +1 -1
  107. package/dist/predicates/index.d.ts +1774 -1680
  108. package/dist/predicates/index.js +1 -1
  109. package/dist/prettify-C4xLcYOP.d.ts +328 -328
  110. package/dist/promise/index.cjs +1 -1
  111. package/dist/promise/index.d.ts +29 -29
  112. package/dist/promise/index.js +1 -1
  113. package/dist/rzl-utils.global.js +1 -4
  114. package/dist/string-XA-til3C.d.ts +318 -318
  115. package/dist/strings/index.cjs +1 -1
  116. package/dist/strings/index.d.ts +690 -690
  117. package/dist/strings/index.js +1 -1
  118. package/dist/tailwind/index.cjs +1 -0
  119. package/dist/tailwind/index.d.ts +565 -0
  120. package/dist/tailwind/index.js +1 -0
  121. package/dist/type-data-DDs-u2kq.d.ts +241 -241
  122. package/dist/types/index.d.ts +3266 -3266
  123. package/dist/urls/index.cjs +1 -1
  124. package/dist/urls/index.d.ts +373 -373
  125. package/dist/urls/index.js +1 -1
  126. package/package.json +24 -23
  127. package/dist/chunk-25G6B35W.js +0 -1
  128. package/dist/chunk-2AUUPGMN.js +0 -1
  129. package/dist/chunk-2JQQQ625.js +0 -1
  130. package/dist/chunk-445TAVT4.cjs +0 -1
  131. package/dist/chunk-467VEMJH.js +0 -1
  132. package/dist/chunk-56QBKKRE.js +0 -1
  133. package/dist/chunk-5SZUSNGZ.js +0 -1
  134. package/dist/chunk-6Q4I2RPC.cjs +0 -1
  135. package/dist/chunk-6SMJMZ7G.cjs +0 -1
  136. package/dist/chunk-7YWAQOA4.cjs +0 -1
  137. package/dist/chunk-BLCANGFS.js +0 -1
  138. package/dist/chunk-CK3BZGEU.js +0 -1
  139. package/dist/chunk-D43GV6EF.cjs +0 -1
  140. package/dist/chunk-DFSTVQFI.cjs +0 -1
  141. package/dist/chunk-DYRDBYPF.cjs +0 -1
  142. package/dist/chunk-ELDDNERR.js +0 -1
  143. package/dist/chunk-EXXLUO7L.cjs +0 -1
  144. package/dist/chunk-FIEZKTAZ.cjs +0 -1
  145. package/dist/chunk-G72VSVGO.js +0 -1
  146. package/dist/chunk-GAJTFCUA.js +0 -1
  147. package/dist/chunk-GOJNH55O.cjs +0 -1
  148. package/dist/chunk-HXST7RJB.js +0 -1
  149. package/dist/chunk-HXTACM3O.cjs +0 -1
  150. package/dist/chunk-IJTZWWRJ.cjs +0 -1
  151. package/dist/chunk-ISJ33O2J.cjs +0 -1
  152. package/dist/chunk-JISH2VGG.js +0 -1
  153. package/dist/chunk-JQZUWBIX.js +0 -1
  154. package/dist/chunk-K4PLGD7C.js +0 -1
  155. package/dist/chunk-KZQB7H4E.cjs +0 -1
  156. package/dist/chunk-LUVV5KSD.cjs +0 -2
  157. package/dist/chunk-LVUSFXQS.cjs +0 -1
  158. package/dist/chunk-ME5OV5HN.js +0 -1
  159. package/dist/chunk-MF5Y5K4N.cjs +0 -1
  160. package/dist/chunk-MJAW5RAK.js +0 -1
  161. package/dist/chunk-MWLEM7ED.js +0 -1
  162. package/dist/chunk-NNM7QCNB.js +0 -1
  163. package/dist/chunk-NSVLG7NY.js +0 -4
  164. package/dist/chunk-NUHOOAUN.cjs +0 -1
  165. package/dist/chunk-NUVGETPD.js +0 -2
  166. package/dist/chunk-O5VXBNUQ.cjs +0 -4
  167. package/dist/chunk-O7SJR4CY.cjs +0 -1
  168. package/dist/chunk-OX6RLS2F.cjs +0 -1
  169. package/dist/chunk-PFLNHD4B.cjs +0 -1
  170. package/dist/chunk-PSWITZK5.js +0 -1
  171. package/dist/chunk-PUQXRLZH.cjs +0 -1
  172. package/dist/chunk-PYUVKHUF.cjs +0 -1
  173. package/dist/chunk-REFMEB4A.js +0 -1
  174. package/dist/chunk-RHE3M2NJ.cjs +0 -1
  175. package/dist/chunk-RHIBYOFQ.js +0 -1
  176. package/dist/chunk-RV2VULM7.cjs +0 -1
  177. package/dist/chunk-S7GMG4TB.js +0 -1
  178. package/dist/chunk-SW6HYEW7.cjs +0 -1
  179. package/dist/chunk-SYJC7UAW.js +0 -1
  180. package/dist/chunk-TQMZ2LPI.js +0 -1
  181. package/dist/chunk-U4TZO7WV.js +0 -1
  182. package/dist/chunk-UUMKL74S.js +0 -1
  183. package/dist/chunk-VQLAPEL3.js +0 -1
  184. package/dist/chunk-VTR75UID.cjs +0 -1
  185. package/dist/chunk-XFCJDSB2.cjs +0 -1
  186. package/dist/chunk-XOYX4PLZ.cjs +0 -1
  187. package/dist/chunk-Z6FLCEN6.js +0 -1
  188. package/dist/chunk-ZO5364A6.cjs +0 -1
  189. package/dist/index.cjs +0 -1
  190. package/dist/index.d.ts +0 -1
  191. package/dist/index.js +0 -1
  192. package/dist/is-array--YjXV-Wx.d.ts +0 -1207
  193. package/dist/stylings/index.cjs +0 -1
  194. package/dist/stylings/index.d.ts +0 -41
  195. package/dist/stylings/index.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";var r=require("./chunk-EBMHQW7X.cjs"),t=require("./chunk-INUFZJLX.cjs");exports.normalizeSpaces=(r,i={withTrim:!0,trimOnly:!1})=>{if(!t.isNonEmptyString(r))return"";t.isPlainObject(i)||(i={});const{trimOnly:e=!1,withTrim:n=!0}=i;return e?r.trim():(n&&(r=r.trim()),r.replace(/\s+/g," "))},exports.normalizeString=r=>t.isNonEmptyString(r)?r.trim():"",exports.removeSpaces=(r,i={trimOnly:!1})=>{if(!t.isNonEmptyString(r))return"";t.isPlainObject(i)||(i={});const{trimOnly:e=!1}=i;return e?r.trim():r.replace(/\s+/g,"")},exports.stripHtmlTags=function(i){if(!t.isString(i))return;return r.isEmptyString(i)?"":i.replace(/<\/?[a-zA-Z][^<>]*\/?>/g," ").trim().replace(/\s+/g," ").trim()};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-INUFZJLX.cjs");exports.getInitialsName=r=>{if(!e.isNonEmptyString(r))return"";const t=(r=r.replace(/\s+/g," ").trim()).split(" ");return t.length>1?t[0][0]+t[1][0].toUpperCase():r.length>1?r.substring(0,2).toUpperCase():r[0].toUpperCase()},exports.replaceAt=(r,t,i)=>{if(!e.isNumber(r)||!e.isString(i)||!e.isString(t))throw new TypeError(`First parameter (\`index\`) must be of type \`number\`, second parameter (\`originalString\`) and third parameter (\`replaceTo\`) must be of type \`string\`, but received: "['index': \`${e.getPreciseType(r)}\`, 'originalString': \`${e.getPreciseType(t)}\`, 'replaceTo': \`${e.getPreciseType(i)}\`]".`);if(r<0||r>=t.length)throw new RangeError("First parameter (`index`) is out of range from second parameter (`originalString`).");return t.slice(0,r)+i+t.slice(r+1)};
@@ -0,0 +1 @@
1
+ "use strict";var r=require("./chunk-INUFZJLX.cjs");exports.assertIsString=(e,s={})=>{if(r.isString(e))return;const t=r.resolveErrorMessageAssertions({value:e,options:s,requiredValidType:"string"});throw new TypeError(t)};
@@ -0,0 +1 @@
1
+ import{isURL as e}from"./chunk-ONZFBJVW.js";import{isTypedArray as r}from"./chunk-HQ5GQTEE.js";import{isEqual as t,isEmptyArray as n,isRegExp as o,baseDeepEqual as i}from"./chunk-BSVZRN7C.js";import{parseCurrencyString as u}from"./chunk-VEYMQ3UA.js";import{isEmptyString as a}from"./chunk-TSLYDPBJ.js";import{assertIsString as s}from"./chunk-W2W3L2M5.js";import{safeStableStringify as f,isDate as c,isMap as p}from"./chunk-AJ65QFV2.js";import{isArray as m,getPreciseType as l,assertIsBoolean as h,isNonEmptyString as y,assertIsPlainObject as g,isObjectOrArray as b,isFunction as d,isString as v,isNumber as T,isSymbol as $,isSet as j,isPlainObject as w,isNil as S,isBoolean as N,isBuffer as k,isNaN as E,isUndefined as O,isObject as A,isNull as P}from"./chunk-2UIRWYE3.js";var R=(e,r,n=!1)=>{if(!m(e)||!m(r))throw new TypeError(`Parameters \`array1\` and \`array2\` property of the \`options\` (second parameter) must be of type \`array\`, but received: ['array1': \`${l(e)}\`, 'array2': \`${l(r)}\`].`);if(h(n,{message:({currentType:e,validType:r})=>`Third parameter \`ignoreOrder\` must be of type \`${r}\`, but received: \`${e}\`.`}),!t(e.length,r.length))return!1;const o=e=>{if(!m(e))return e;return e.map(e=>m(e)?o(e):e).sort((e,r)=>{const t=f(e),n=f(r);return t<n?-1:t>n?1:0})},i=n?o(e):e,u=n?o(r):r;return!!t(i.length,u.length)&&i.every((e,r)=>f(e)===f(u[r]))},M=(e,r)=>t(e,r),x=(r,t)=>{if(!e(r)||!e(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},W=(r,t)=>{if(!e(r)||!e(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},z=(e,r,t={})=>{if(!y(e)||!m(r))return!1;g(t,{message:({currentType:e,validType:r})=>`Third parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const{exactMatch:n=!1,flags:o="i"}=t;h(n,{message:({currentType:e,validType:r})=>`Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),s(o,{message:({currentType:e,validType:r})=>`Parameter \`flags\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const i=r.filter(e=>y(e)).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));return 0!==i.length&&i.every(r=>new RegExp(n?`(?<!\\S)${r}(?!\\S)`:r,o.includes("u")?o:o+"u").test(e))},B=(e,r,t={})=>{if(!y(e)||!m(r))return!1;g(t,{message:({currentType:e,validType:r})=>`Third parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const{exactMatch:n=!1,flags:o="i"}=t;h(n,{message:({currentType:e,validType:r})=>`Parameter \`exactMatch\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),s(o,{message:({currentType:e,validType:r})=>`Parameter \`flags\` property of the \`options\` (third parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const i=r.filter(e=>y(e)).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));if(0===i.length)return!1;const u=n?`(?<!\\S)(${i.join("|")})(?!\\S)`:`(${i.join("|")})`;return new RegExp(u,o.includes("u")?o:o+"u").test(e)};function I(e){const r=typeof e;return"string"===r||"number"===r||"symbol"===r}var U=(e,r)=>{if(!b(e))return!1;if(!I(r))throw new TypeError(`Second Parameter (\`key\`) must be of type \`string\`, \`number\` or \`symbol\`, but received: \`${l(r)}\`.`);return!!Object.prototype.hasOwnProperty.call(e,r)||(m(e)?e.some(e=>U(e,r)):Object.values(e).some(e=>b(e)&&U(e,r)))},F=(e,r)=>{if(!m(e)||!m(r)||n(e)||n(r))return!1;const t=new Set(e);return r.some(e=>t.has(e))},L=e=>"[object Arguments]"===Object.prototype.toString.call(e);function Q(e){return"number"==typeof e&&e>-1&&Number.isInteger(e)&&e<=Number.MAX_SAFE_INTEGER}function V(e){return!d(e)&&b(e)&&Q(null==e?void 0:e.length)}function Z(e){return b(e)&&Q(e.length)}var J=e=>{if(!v(e)&&!T(e))return!1;return 0!==u(e.toString())||"0"===e.toString().trim()},Y=(e,r)=>{if("number"==typeof e&&"number"==typeof r&&Number.isNaN(e)&&Number.isNaN(r))return!0;if(e===r)return!0;if(typeof e!=typeof r)return!1;if(c(e)&&c(r))return e.getTime()===r.getTime();if(o(e)&&o(r))return e.toString()===r.toString();if($(e)&&$(r))return e.toString()===r.toString();if(j(e)&&j(r)){if(e.size!==r.size)return!1;const t=Array.from(r),n=new Set;for(const r of e){let e=!1;for(let o=0;o<t.length;o++)if(!n.has(o)&&Y(r,t[o])){n.add(o),e=!0;break}if(!e)return!1}return!0}if(p(e)&&p(r)){if(e.size!==r.size)return!1;const t=Array.from(r),n=new Set;for(const[r,o]of e){let e=!1;for(let i=0;i<t.length;i++){if(n.has(i))continue;const[u,a]=t[i];if(Y(r,u)&&Y(o,a)){n.add(i),e=!0;break}}if(!e)return!1}return!0}if(m(e)&&m(r))return e.length===r.length&&e.every((e,t)=>Y(e,r[t]));if(b(e)&&b(r)&&e&&r){if(m(e)!==m(r))return!1;const t=Object.keys(e),n=Object.keys(r);return t.length===n.length&&t.every(t=>Y(e[t],r[t]))}return!1};function _(e){return!!e&&"object"==typeof e&&1===(null==e?void 0:e.nodeType)&&!w(e)}function C(e){return!!S(e)||(!!(N(e)||T(e,{includeNaN:!0})||$(e))||(d(e)?0===Object.keys(e).length:v(e)||m(e)||L(e)||r(e)?0===e.length:p(e)||j(e)?0===e.size:k(e)?0===e.length:!!w(e)&&0===Object.keys(e).length))}var G=e=>{if(v(e))return a(e);if(T(e))return E(e);if(m(e))return n(e)||e.every(G);if(b(e)){const r=Object.keys(e),t=Object.getOwnPropertySymbols(e);return 0===r.length&&0===t.length||[...r,...t].every(r=>G(e[r]))}return!e};function D(e,r,t){return i(e,r,t,new WeakMap)}function H(e,r,t){return X(e,r,t)}function K(e,r){return e===r||0===e&&0===r||Number.isNaN(e)&&Number.isNaN(r)}function X(e,r,t){if(e===r)return!0;if(!b(r))return K(e,r);if(!b(e))return!1;const n=Reflect.ownKeys(r).filter(e=>!(m(r)&&"length"===e));for(const o of n){if(!(o in e))return!1;const n=e[o],i=r[o],u=null==t?void 0:t(n,i,o,e,r);if(O(u)){if(b(n)&&b(i)){if(!H(n,i,t))return!1}else if(!K(n,i))return!1}else if(!u)return!1}return!0}function q(e,r){return X(e,r)}var ee=Function.prototype.toString,re=/\{\s*\[native code\]\s*\}/;function te(e){if(!d(e))return!1;try{const r=ee.call(e);return re.test(r)}catch{return!1}}function ne(e){return!S(e)&&(b(e)||d(e))}function oe(e){return"number"==typeof e&&Number.isSafeInteger(e)}var ie=e=>{if(!y(e))return!1;let r;try{r=decodeURIComponent(e)}catch{return!1}if(!r.startsWith("http://")&&!r.startsWith("https://"))return!1;return new RegExp(/^https?:\/\/(?:localhost(?::\d+)?(?:[\/?#][^\s]*)?|(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}(?::\d+)?(?:[\/?#][^\s]*)?)$/).test(r)};function ue(e){return A(e)&&!P(e)&&e instanceof WeakMap}export{R as areArraysEqual,M as areObjectsEqual,x as areURLsEqualPath,W as areURLsIdentical,F as arrayHasAnyMatch,U as doesKeyExist,L as isArguments,V as isArrayLike,Z as isArrayLikeObject,J as isCurrencyLike,Y as isDeepEqual,_ as isElement,C as isEmpty,G as isEmptyDeep,D as isEqualWith,Q as isLength,q as isMatch,H as isMatchWith,te as isNative,ne as isObjectLoose,I as isPropertyKey,oe as isSafeInteger,ie as isValidURL,ue as isWeakMap,z as textContainsAll,B as textContainsAny};
@@ -0,0 +1 @@
1
+ "use strict";var r=require("./chunk-INUFZJLX.cjs");exports.assertIsArray=function(e,s){if(r.isArray(e))return;const o=r.resolveErrorMessageAssertions({value:e,options:s,requiredValidType:"array"});throw new TypeError(o)};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-Z4DXK7A6.cjs"),r=require("./chunk-YT3MSZKK.cjs"),t=require("./chunk-YZR5OGJA.cjs"),i=require("./chunk-E63WVPZE.cjs"),s=require("./chunk-UDA26MCU.cjs"),n=require("./chunk-INUFZJLX.cjs");function a(r,t){if(!1!==t&&"stringOrNumber"!==t&&"primitives"!==t&&"all"!==t)throw new TypeError(`Second parameter \`forceToString\` must be of type \`false\` or \`string\` with value one of "stringOrNumber" | "primitives" | "all", but received: \`${n.getPreciseType(t)}\`, with value: \`${i.safeStableStringify(t)}\`.`);if(n.isNaN(r))return"primitives"===t||"all"===t?"NaN":NaN;if(n.isString(r)||n.isNumber(r))return"stringOrNumber"===t||"primitives"===t||"all"===t?String(r):r;if(n.isBoolean(r)||s.isBigInt(r)||n.isNil(r))return"primitives"===t||"all"===t?String(r):r;if(n.isSymbol(r))return"all"===t?r.toString():r;if(n.isFunction(r))return"all"===t?r.toString():r;if(n.isArray(r))return r.map(e=>a(e,t));if(n.isObjectOrArray(r)){if(i.isDate(r))return"all"===t?r.toISOString():r;if(e.isRegExp(r))return"all"===t?r.toString():r;if(n.isError(r)||r instanceof Promise)return"all"===t?r.toString():r;if(n.isSet(r))return"all"===t?[...r].map(e=>a(e,t)):r;if(i.isMap(r))return"all"===t?[...r.entries()].map(([e,r])=>[a(e,t),a(r,t)]):r;const s={};if(n.isObject(r))for(const e of Object.keys(r))s[e]=a(r[e],t);return s}return r}function o(r){if(n.isNil(r))return;if(!n.isArray(r))return[];return r.reduce((r,t)=>{if(!n.isNil(t))if(n.isArray(t)){const i=o(t);i&&!e.isEmptyArray(i)&&r.push(i)}else r.push(t);return r},[])}exports.dedupeArray=(t,s={})=>{r.assertIsArray(t,{message:({currentType:e,validType:r})=>`First parameter (\`inputArray\`) must be of type \`${r}\` (array literal or instance), but received: \`${e}\`.`}),n.assertIsPlainObject(s,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const o=!!n.hasOwnProp(s,"flatten")&&s.flatten,u=!!n.hasOwnProp(s,"forceToString")&&s.forceToString;if(!1!==u&&"stringOrNumber"!==u&&"primitives"!==u&&"all"!==u)throw new TypeError(`Parameter \`forceToString\` property of the \`options\` (second parameter) must be of type \`false\` or \`string\` with value one of "stringOrNumber" | "primitives" | "all", but received: \`${n.getPreciseType(u)}\`, with value: \`${i.safeStableStringify(u)}\`.`);n.assertIsBoolean(o,{message:({currentType:e,validType:r})=>`Parameter \`flatten\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const l=r=>{const t=[];return r.reduce((r,i)=>{const s=n.isArray(i)?l(i):a(i,u);return t.some(r=>e.isEqual(r,s))||(t.push(s),r.push(s)),r},[])},p=e=>n.isArray(e)?e.flatMap(p):n.isSet(e)?[...e].flatMap(p):i.isMap(e)?[...e.values()].flatMap(p):[e];return l(o?p(t):t)},exports.filterNilArray=o,exports.toStringArrayUnRecursive=function(e,r={}){n.assertIsPlainObject(r,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const i=!n.hasOwnProp(r,"removeInvalidValue")||r.removeInvalidValue;if(n.assertIsBoolean(i,{message:({currentType:e,validType:r})=>`Parameter \`removeInvalidValue\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`}),n.isArray(e)){const r=Array.from(e,e=>n.isString(e)||t.isFinite(e)||n.isBoolean(e)||s.isBigInt(e)?String(e):n.isNull(e)?null:void 0);return i?o(r):r}},exports.toStringDeepForce=a;
@@ -0,0 +1 @@
1
+ "use strict";var i=require("./chunk-INUFZJLX.cjs");exports.isFinite=function(e){return i.isNumber(e)&&Number.isFinite(e)};
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./chunk-E63WVPZE.cjs"),r=require("./chunk-INUFZJLX.cjs"),t=e=>e instanceof RegExp;function n(e){return e instanceof ArrayBuffer}function s(i,f,o,u=new WeakMap){if(i===f)return!0;if(i!=i&&f!=f)return!0;if(!r.isObjectOrArray(i)||!r.isObjectOrArray(f))return!1;if(u.get(i)===f)return!0;u.set(i,f);const a=(e,t,n,i,f)=>{if(o){const s=o(e,t,n,i,f,u);if(!r.isUndefined(s))return s}return s(e,t,o,u)};if(e.isDate(i)&&e.isDate(f))return i.getTime()===f.getTime();if(t(i)&&t(f))return i.source===f.source&&i.flags===f.flags;if(r.isError(i)&&r.isError(f))return i.name===f.name&&i.message===f.message;if(ArrayBuffer.isView(i)&&ArrayBuffer.isView(f)){const e=new Uint8Array(i.buffer,i.byteOffset,i.byteLength),r=new Uint8Array(f.buffer,f.byteOffset,f.byteLength);if(e.length!==r.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}if(n(i)&&n(f)){if(i.byteLength!==f.byteLength)return!1;const e=new Uint8Array(i),r=new Uint8Array(f);for(let t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}if(e.isMap(i)&&e.isMap(f)){if(i.size!==f.size)return!1;for(const[e,r]of i){if(!f.has(e))return!1;if(!s(r,f.get(e),o,u))return!1}return!0}if(r.isSet(i)&&r.isSet(f)){if(i.size!==f.size)return!1;for(const e of i){let r=!1;for(const t of f)if(s(e,t,o,u)){r=!0;break}if(!r)return!1}return!0}if(r.isArray(i)&&r.isArray(f)){if(i.length!==f.length)return!1;for(let e=0;e<i.length;e++)if(!a(i[e],f[e],e,i,f))return!1;return!0}if(Object.getPrototypeOf(i)!==Object.getPrototypeOf(f))return!1;const c=Reflect.ownKeys(i),y=Reflect.ownKeys(f);if(c.length!==y.length)return!1;for(const e of c){if(!a(i[e],f[e],e,i,f))return!1}return!0}exports.baseDeepEqual=s,exports.isArrayBuffer=n,exports.isEmptyArray=e=>!r.isArray(e)||0===e.length,exports.isEmptyObject=function(e,t={}){if(!r.isObject(e))return!0;r.assertIsPlainObject(t,{message:({currentType:e,validType:r})=>`Second parameter (\`options\`) must be of type \`${r}\`, but received: \`${e}\`.`});const n=!!r.hasOwnProp(t,"checkSymbols")&&t.checkSymbols;r.assertIsBoolean(n,{message:({currentType:e,validType:r})=>`Parameter \`checkSymbols\` property of the \`options\` (second parameter) must be of type \`${r}\`, but received: \`${e}\`.`});const s=0===Object.keys(e).length;return n?s&&0===Object.getOwnPropertySymbols(e).length:s},exports.isEqual=function(e,r){return s(e,r,void 0,new WeakMap)},exports.isRegExp=t;
@@ -0,0 +1 @@
1
+ import{isArray as r,resolveErrorMessageAssertions as o}from"./chunk-2UIRWYE3.js";function e(e,n){if(r(e))return;const t=o({value:e,options:n,requiredValidType:"array"});throw new TypeError(t)}export{e as assertIsArray};
@@ -1 +1 @@
1
- 'use strict';var chunkXFCJDSB2_cjs=require('../chunk-XFCJDSB2.cjs'),chunkIJTZWWRJ_cjs=require('../chunk-IJTZWWRJ.cjs');require('../chunk-RHE3M2NJ.cjs');var chunkZO5364A6_cjs=require('../chunk-ZO5364A6.cjs');require('../chunk-6SMJMZ7G.cjs'),require('../chunk-PFLNHD4B.cjs'),require('../chunk-ISJ33O2J.cjs');var chunkD43GV6EF_cjs=require('../chunk-D43GV6EF.cjs');require('../chunk-MF5Y5K4N.cjs'),require('../chunk-RV2VULM7.cjs'),require('../chunk-6Q4I2RPC.cjs'),require('../chunk-DYRDBYPF.cjs');var chunkO7SJR4CY_cjs=require('../chunk-O7SJR4CY.cjs');require('../chunk-7YWAQOA4.cjs'),require('../chunk-LVUSFXQS.cjs');Object.defineProperty(exports,"convertType",{enumerable:true,get:function(){return chunkXFCJDSB2_cjs.f}});Object.defineProperty(exports,"removeObjectPaths",{enumerable:true,get:function(){return chunkXFCJDSB2_cjs.g}});Object.defineProperty(exports,"toBooleanContent",{enumerable:true,get:function(){return chunkXFCJDSB2_cjs.b}});Object.defineProperty(exports,"toBooleanContentDeep",{enumerable:true,get:function(){return chunkXFCJDSB2_cjs.c}});Object.defineProperty(exports,"toBooleanExplicit",{enumerable:true,get:function(){return chunkXFCJDSB2_cjs.d}});Object.defineProperty(exports,"toBooleanLoose",{enumerable:true,get:function(){return chunkXFCJDSB2_cjs.e}});Object.defineProperty(exports,"toNumberArrayUnRecursive",{enumerable:true,get:function(){return chunkXFCJDSB2_cjs.a}});Object.defineProperty(exports,"toNumberDeep",{enumerable:true,get:function(){return chunkXFCJDSB2_cjs.h}});Object.defineProperty(exports,"toStringDeep",{enumerable:true,get:function(){return chunkXFCJDSB2_cjs.i}});Object.defineProperty(exports,"cleanParsedData",{enumerable:true,get:function(){return chunkIJTZWWRJ_cjs.b}});Object.defineProperty(exports,"extractDigits",{enumerable:true,get:function(){return chunkIJTZWWRJ_cjs.a}});Object.defineProperty(exports,"parseCustomDate",{enumerable:true,get:function(){return chunkIJTZWWRJ_cjs.c}});Object.defineProperty(exports,"safeJsonParse",{enumerable:true,get:function(){return chunkIJTZWWRJ_cjs.d}});Object.defineProperty(exports,"dedupeArray",{enumerable:true,get:function(){return chunkZO5364A6_cjs.c}});Object.defineProperty(exports,"filterNilArray",{enumerable:true,get:function(){return chunkZO5364A6_cjs.b}});Object.defineProperty(exports,"toStringArrayUnRecursive",{enumerable:true,get:function(){return chunkZO5364A6_cjs.d}});Object.defineProperty(exports,"toStringDeepForce",{enumerable:true,get:function(){return chunkZO5364A6_cjs.a}});Object.defineProperty(exports,"parseCurrencyString",{enumerable:true,get:function(){return chunkD43GV6EF_cjs.a}});Object.defineProperty(exports,"safeStableStringify",{enumerable:true,get:function(){return chunkO7SJR4CY_cjs.c}});
1
+ "use strict";var e=require("../chunk-3KBHD3BS.cjs"),r=require("../chunk-NU3N4WHD.cjs");require("../chunk-WBWTXKMC.cjs");var t=require("../chunk-YXHCULSO.cjs");require("../chunk-GGRMHIFJ.cjs"),require("../chunk-Z4DXK7A6.cjs"),require("../chunk-YT3MSZKK.cjs");var n=require("../chunk-7BXIZM57.cjs");require("../chunk-YZR5OGJA.cjs"),require("../chunk-5C2SMIGX.cjs"),require("../chunk-EBMHQW7X.cjs"),require("../chunk-Y4O5KZF6.cjs");var o=require("../chunk-E63WVPZE.cjs");require("../chunk-UDA26MCU.cjs"),require("../chunk-INUFZJLX.cjs"),Object.defineProperty(exports,"convertType",{enumerable:!0,get:function(){return e.convertType}}),Object.defineProperty(exports,"removeObjectPaths",{enumerable:!0,get:function(){return e.removeObjectPaths}}),Object.defineProperty(exports,"toBooleanContent",{enumerable:!0,get:function(){return e.toBooleanContent}}),Object.defineProperty(exports,"toBooleanContentDeep",{enumerable:!0,get:function(){return e.toBooleanContentDeep}}),Object.defineProperty(exports,"toBooleanExplicit",{enumerable:!0,get:function(){return e.toBooleanExplicit}}),Object.defineProperty(exports,"toBooleanLoose",{enumerable:!0,get:function(){return e.toBooleanLoose}}),Object.defineProperty(exports,"toNumberArrayUnRecursive",{enumerable:!0,get:function(){return e.toNumberArrayUnRecursive}}),Object.defineProperty(exports,"toNumberDeep",{enumerable:!0,get:function(){return e.toNumberDeep}}),Object.defineProperty(exports,"toStringDeep",{enumerable:!0,get:function(){return e.toStringDeep}}),Object.defineProperty(exports,"cleanParsedData",{enumerable:!0,get:function(){return r.cleanParsedData}}),Object.defineProperty(exports,"extractDigits",{enumerable:!0,get:function(){return r.extractDigits}}),Object.defineProperty(exports,"parseCustomDate",{enumerable:!0,get:function(){return r.parseCustomDate}}),Object.defineProperty(exports,"safeJsonParse",{enumerable:!0,get:function(){return r.safeJsonParse}}),Object.defineProperty(exports,"dedupeArray",{enumerable:!0,get:function(){return t.dedupeArray}}),Object.defineProperty(exports,"filterNilArray",{enumerable:!0,get:function(){return t.filterNilArray}}),Object.defineProperty(exports,"toStringArrayUnRecursive",{enumerable:!0,get:function(){return t.toStringArrayUnRecursive}}),Object.defineProperty(exports,"toStringDeepForce",{enumerable:!0,get:function(){return t.toStringDeepForce}}),Object.defineProperty(exports,"parseCurrencyString",{enumerable:!0,get:function(){return n.parseCurrencyString}}),Object.defineProperty(exports,"safeStableStringify",{enumerable:!0,get:function(){return o.safeStableStringify}});