@dxtmisha/functional-basic 1.1.8 → 1.2.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 (177) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/library.js +94 -84
  3. package/dist/src/functions/getFirst.d.ts +8 -0
  4. package/dist/{library.d.ts → src/library.d.ts} +1 -0
  5. package/package.json +7 -12
  6. /package/dist/{classes → src/classes}/Api.d.ts +0 -0
  7. /package/dist/{classes → src/classes}/ApiCache.d.ts +0 -0
  8. /package/dist/{classes → src/classes}/ApiDataReturn.d.ts +0 -0
  9. /package/dist/{classes → src/classes}/ApiDefault.d.ts +0 -0
  10. /package/dist/{classes → src/classes}/ApiHeaders.d.ts +0 -0
  11. /package/dist/{classes → src/classes}/ApiHydration.d.ts +0 -0
  12. /package/dist/{classes → src/classes}/ApiInstance.d.ts +0 -0
  13. /package/dist/{classes → src/classes}/ApiPreparation.d.ts +0 -0
  14. /package/dist/{classes → src/classes}/ApiResponse.d.ts +0 -0
  15. /package/dist/{classes → src/classes}/ApiStatus.d.ts +0 -0
  16. /package/dist/{classes → src/classes}/BroadcastMessage.d.ts +0 -0
  17. /package/dist/{classes → src/classes}/Cache.d.ts +0 -0
  18. /package/dist/{classes → src/classes}/CacheItem.d.ts +0 -0
  19. /package/dist/{classes → src/classes}/CacheStatic.d.ts +0 -0
  20. /package/dist/{classes → src/classes}/Cookie.d.ts +0 -0
  21. /package/dist/{classes → src/classes}/CookieBlock.d.ts +0 -0
  22. /package/dist/{classes → src/classes}/CookieBlockInstance.d.ts +0 -0
  23. /package/dist/{classes → src/classes}/CookieStorage.d.ts +0 -0
  24. /package/dist/{classes → src/classes}/DataStorage.d.ts +0 -0
  25. /package/dist/{classes → src/classes}/Datetime.d.ts +0 -0
  26. /package/dist/{classes → src/classes}/ErrorCenter.d.ts +0 -0
  27. /package/dist/{classes → src/classes}/ErrorCenterHandler.d.ts +0 -0
  28. /package/dist/{classes → src/classes}/ErrorCenterInstance.d.ts +0 -0
  29. /package/dist/{classes → src/classes}/EventItem.d.ts +0 -0
  30. /package/dist/{classes → src/classes}/Formatters.d.ts +0 -0
  31. /package/dist/{classes → src/classes}/Geo.d.ts +0 -0
  32. /package/dist/{classes → src/classes}/GeoFlag.d.ts +0 -0
  33. /package/dist/{classes → src/classes}/GeoInstance.d.ts +0 -0
  34. /package/dist/{classes → src/classes}/GeoIntl.d.ts +0 -0
  35. /package/dist/{classes → src/classes}/GeoPhone.d.ts +0 -0
  36. /package/dist/{classes → src/classes}/Global.d.ts +0 -0
  37. /package/dist/{classes → src/classes}/Hash.d.ts +0 -0
  38. /package/dist/{classes → src/classes}/HashInstance.d.ts +0 -0
  39. /package/dist/{classes → src/classes}/Icons.d.ts +0 -0
  40. /package/dist/{classes → src/classes}/Loading.d.ts +0 -0
  41. /package/dist/{classes → src/classes}/LoadingInstance.d.ts +0 -0
  42. /package/dist/{classes → src/classes}/Meta.d.ts +0 -0
  43. /package/dist/{classes → src/classes}/MetaManager.d.ts +0 -0
  44. /package/dist/{classes → src/classes}/MetaOg.d.ts +0 -0
  45. /package/dist/{classes → src/classes}/MetaStatic.d.ts +0 -0
  46. /package/dist/{classes → src/classes}/MetaTwitter.d.ts +0 -0
  47. /package/dist/{classes → src/classes}/ResumableTimer.d.ts +0 -0
  48. /package/dist/{classes → src/classes}/ScrollbarWidth.d.ts +0 -0
  49. /package/dist/{classes → src/classes}/SearchList.d.ts +0 -0
  50. /package/dist/{classes → src/classes}/SearchListData.d.ts +0 -0
  51. /package/dist/{classes → src/classes}/SearchListItem.d.ts +0 -0
  52. /package/dist/{classes → src/classes}/SearchListMatcher.d.ts +0 -0
  53. /package/dist/{classes → src/classes}/SearchListOptions.d.ts +0 -0
  54. /package/dist/{classes → src/classes}/ServerStorage.d.ts +0 -0
  55. /package/dist/{classes → src/classes}/StorageCallback.d.ts +0 -0
  56. /package/dist/{classes → src/classes}/Translate.d.ts +0 -0
  57. /package/dist/{classes → src/classes}/TranslateFile.d.ts +0 -0
  58. /package/dist/{classes → src/classes}/TranslateInstance.d.ts +0 -0
  59. /package/dist/{functions → src/functions}/addTagHighlightMatch.d.ts +0 -0
  60. /package/dist/{functions → src/functions}/anyToString.d.ts +0 -0
  61. /package/dist/{functions → src/functions}/applyTemplate.d.ts +0 -0
  62. /package/dist/{functions → src/functions}/arrFill.d.ts +0 -0
  63. /package/dist/{functions → src/functions}/blobToBase64.d.ts +0 -0
  64. /package/dist/{functions → src/functions}/capitalize.d.ts +0 -0
  65. /package/dist/{functions → src/functions}/copyObject.d.ts +0 -0
  66. /package/dist/{functions → src/functions}/copyObjectLite.d.ts +0 -0
  67. /package/dist/{functions → src/functions}/createElement.d.ts +0 -0
  68. /package/dist/{functions → src/functions}/domQuerySelector.d.ts +0 -0
  69. /package/dist/{functions → src/functions}/domQuerySelectorAll.d.ts +0 -0
  70. /package/dist/{functions → src/functions}/encodeAttribute.d.ts +0 -0
  71. /package/dist/{functions → src/functions}/encodeLiteAttribute.d.ts +0 -0
  72. /package/dist/{functions → src/functions}/ensureMaxSize.d.ts +0 -0
  73. /package/dist/{functions → src/functions}/escapeExp.d.ts +0 -0
  74. /package/dist/{functions → src/functions}/eventStopPropagation.d.ts +0 -0
  75. /package/dist/{functions → src/functions}/executeFunction.d.ts +0 -0
  76. /package/dist/{functions → src/functions}/executePromise.d.ts +0 -0
  77. /package/dist/{functions → src/functions}/forEach.d.ts +0 -0
  78. /package/dist/{functions → src/functions}/frame.d.ts +0 -0
  79. /package/dist/{functions → src/functions}/getArrayHighlightMatch.d.ts +0 -0
  80. /package/dist/{functions → src/functions}/getAttributes.d.ts +0 -0
  81. /package/dist/{functions → src/functions}/getClipboardData.d.ts +0 -0
  82. /package/dist/{functions → src/functions}/getColumn.d.ts +0 -0
  83. /package/dist/{functions → src/functions}/getCurrentDate.d.ts +0 -0
  84. /package/dist/{functions → src/functions}/getCurrentTime.d.ts +0 -0
  85. /package/dist/{functions → src/functions}/getElement.d.ts +0 -0
  86. /package/dist/{functions → src/functions}/getElementId.d.ts +0 -0
  87. /package/dist/{functions → src/functions}/getElementImage.d.ts +0 -0
  88. /package/dist/{functions → src/functions}/getElementItem.d.ts +0 -0
  89. /package/dist/{functions → src/functions}/getElementOrWindow.d.ts +0 -0
  90. /package/dist/{functions → src/functions}/getElementSafeScript.d.ts +0 -0
  91. /package/dist/{functions → src/functions}/getExactSearchExp.d.ts +0 -0
  92. /package/dist/{functions → src/functions}/getExp.d.ts +0 -0
  93. /package/dist/{functions → src/functions}/getHydrationData.d.ts +0 -0
  94. /package/dist/{functions → src/functions}/getItemByPath.d.ts +0 -0
  95. /package/dist/{functions → src/functions}/getKey.d.ts +0 -0
  96. /package/dist/{functions → src/functions}/getLengthOfAllArray.d.ts +0 -0
  97. /package/dist/{functions → src/functions}/getMaxLengthAllArray.d.ts +0 -0
  98. /package/dist/{functions → src/functions}/getMinLengthAllArray.d.ts +0 -0
  99. /package/dist/{functions → src/functions}/getMouseClient.d.ts +0 -0
  100. /package/dist/{functions → src/functions}/getMouseClientX.d.ts +0 -0
  101. /package/dist/{functions → src/functions}/getMouseClientY.d.ts +0 -0
  102. /package/dist/{functions → src/functions}/getObjectByKeys.d.ts +0 -0
  103. /package/dist/{functions → src/functions}/getObjectNoUndefined.d.ts +0 -0
  104. /package/dist/{functions → src/functions}/getObjectOrNone.d.ts +0 -0
  105. /package/dist/{functions → src/functions}/getOnlyText.d.ts +0 -0
  106. /package/dist/{functions → src/functions}/getRandomText.d.ts +0 -0
  107. /package/dist/{functions → src/functions}/getRequestString.d.ts +0 -0
  108. /package/dist/{functions → src/functions}/getSearchExp.d.ts +0 -0
  109. /package/dist/{functions → src/functions}/getSeparatingSearchExp.d.ts +0 -0
  110. /package/dist/{functions → src/functions}/getStepPercent.d.ts +0 -0
  111. /package/dist/{functions → src/functions}/getStepValue.d.ts +0 -0
  112. /package/dist/{functions → src/functions}/goScroll.d.ts +0 -0
  113. /package/dist/{functions → src/functions}/goScrollSmooth.d.ts +0 -0
  114. /package/dist/{functions → src/functions}/goScrollTo.d.ts +0 -0
  115. /package/dist/{functions → src/functions}/handleShare.d.ts +0 -0
  116. /package/dist/{functions → src/functions}/inArray.d.ts +0 -0
  117. /package/dist/{functions → src/functions}/initScrollbarOffset.d.ts +0 -0
  118. /package/dist/{functions → src/functions}/intersectKey.d.ts +0 -0
  119. /package/dist/{functions → src/functions}/isApiSuccess.d.ts +0 -0
  120. /package/dist/{functions → src/functions}/isArray.d.ts +0 -0
  121. /package/dist/{functions → src/functions}/isDifferent.d.ts +0 -0
  122. /package/dist/{functions → src/functions}/isDomData.d.ts +0 -0
  123. /package/dist/{functions → src/functions}/isDomRuntime.d.ts +0 -0
  124. /package/dist/{functions → src/functions}/isElementVisible.d.ts +0 -0
  125. /package/dist/{functions → src/functions}/isEnter.d.ts +0 -0
  126. /package/dist/{functions → src/functions}/isFilled.d.ts +0 -0
  127. /package/dist/{functions → src/functions}/isFloat.d.ts +0 -0
  128. /package/dist/{functions → src/functions}/isFunction.d.ts +0 -0
  129. /package/dist/{functions → src/functions}/isInDom.d.ts +0 -0
  130. /package/dist/{functions → src/functions}/isInput.d.ts +0 -0
  131. /package/dist/{functions → src/functions}/isIntegerBetween.d.ts +0 -0
  132. /package/dist/{functions → src/functions}/isNull.d.ts +0 -0
  133. /package/dist/{functions → src/functions}/isNumber.d.ts +0 -0
  134. /package/dist/{functions → src/functions}/isObject.d.ts +0 -0
  135. /package/dist/{functions → src/functions}/isObjectNotArray.d.ts +0 -0
  136. /package/dist/{functions → src/functions}/isOnLine.d.ts +0 -0
  137. /package/dist/{functions → src/functions}/isSelected.d.ts +0 -0
  138. /package/dist/{functions → src/functions}/isSelectedByList.d.ts +0 -0
  139. /package/dist/{functions → src/functions}/isShare.d.ts +0 -0
  140. /package/dist/{functions → src/functions}/isString.d.ts +0 -0
  141. /package/dist/{functions → src/functions}/isWindow.d.ts +0 -0
  142. /package/dist/{functions → src/functions}/random.d.ts +0 -0
  143. /package/dist/{functions → src/functions}/removeCommonPrefix.d.ts +0 -0
  144. /package/dist/{functions → src/functions}/replaceComponentName.d.ts +0 -0
  145. /package/dist/{functions → src/functions}/replaceRecursive.d.ts +0 -0
  146. /package/dist/{functions → src/functions}/replaceTemplate.d.ts +0 -0
  147. /package/dist/{functions → src/functions}/resizeImageByMax.d.ts +0 -0
  148. /package/dist/{functions → src/functions}/secondToTime.d.ts +0 -0
  149. /package/dist/{functions → src/functions}/setElementItem.d.ts +0 -0
  150. /package/dist/{functions → src/functions}/setValues.d.ts +0 -0
  151. /package/dist/{functions → src/functions}/sleep.d.ts +0 -0
  152. /package/dist/{functions → src/functions}/splice.d.ts +0 -0
  153. /package/dist/{functions → src/functions}/strFill.d.ts +0 -0
  154. /package/dist/{functions → src/functions}/strSplit.d.ts +0 -0
  155. /package/dist/{functions → src/functions}/toArray.d.ts +0 -0
  156. /package/dist/{functions → src/functions}/toCamelCase.d.ts +0 -0
  157. /package/dist/{functions → src/functions}/toCamelCaseFirst.d.ts +0 -0
  158. /package/dist/{functions → src/functions}/toDate.d.ts +0 -0
  159. /package/dist/{functions → src/functions}/toKebabCase.d.ts +0 -0
  160. /package/dist/{functions → src/functions}/toNumber.d.ts +0 -0
  161. /package/dist/{functions → src/functions}/toNumberByMax.d.ts +0 -0
  162. /package/dist/{functions → src/functions}/toPercent.d.ts +0 -0
  163. /package/dist/{functions → src/functions}/toPercentBy100.d.ts +0 -0
  164. /package/dist/{functions → src/functions}/toString.d.ts +0 -0
  165. /package/dist/{functions → src/functions}/transformation.d.ts +0 -0
  166. /package/dist/{functions → src/functions}/uint8ArrayToBase64.d.ts +0 -0
  167. /package/dist/{functions → src/functions}/uniqueArray.d.ts +0 -0
  168. /package/dist/{functions → src/functions}/writeClipboardData.d.ts +0 -0
  169. /package/dist/{media → src/media}/errorCauseList.d.ts +0 -0
  170. /package/dist/{types → src/types}/apiTypes.d.ts +0 -0
  171. /package/dist/{types → src/types}/basicTypes.d.ts +0 -0
  172. /package/dist/{types → src/types}/errorCenter.d.ts +0 -0
  173. /package/dist/{types → src/types}/formattersTypes.d.ts +0 -0
  174. /package/dist/{types → src/types}/geoTypes.d.ts +0 -0
  175. /package/dist/{types → src/types}/metaTypes.d.ts +0 -0
  176. /package/dist/{types → src/types}/searchTypes.d.ts +0 -0
  177. /package/dist/{types → src/types}/translateTypes.d.ts +0 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [1.2.0] - 2026-05-14
6
+
7
+ ### Added
8
+ - **Functions**: Added `getFirst` utility function to safely retrieve the first element from arrays or objects, providing consistent behavior for various data structures with full TypeScript support.
9
+
10
+ ### Changed / Improved
11
+ - **Dependencies**: Integrated `@dxtmisha/media` into `peerDependencies` to ensure better compatibility with media-related utilities.
12
+ - **Build System**: Optimized the build configuration by simplifying export maps and standardizing type definition paths within the distribution.
13
+ - **Maintenance**: Standardized internal scripts and performed general cleanup of obsolete type definitions and exported files.
14
+
5
15
  ## [1.1.8] - 2026-05-12
6
16
 
7
17
  ### Added
package/dist/library.js CHANGED
@@ -151,7 +151,7 @@ function se() {
151
151
  return s() && location.href.startsWith("data:");
152
152
  }
153
153
  //#endregion
154
- //#region \0@oxc-project+runtime@0.128.0/helpers/typeof.js
154
+ //#region \0@oxc-project+runtime@0.129.0/helpers/typeof.js
155
155
  function S(e) {
156
156
  "@babel/helpers - typeof";
157
157
  return S = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
@@ -161,7 +161,7 @@ function S(e) {
161
161
  }, S(e);
162
162
  }
163
163
  //#endregion
164
- //#region \0@oxc-project+runtime@0.128.0/helpers/toPrimitive.js
164
+ //#region \0@oxc-project+runtime@0.129.0/helpers/toPrimitive.js
165
165
  function ce(e, t) {
166
166
  if (S(e) != "object" || !e) return e;
167
167
  var n = e[Symbol.toPrimitive];
@@ -173,13 +173,13 @@ function ce(e, t) {
173
173
  return (t === "string" ? String : Number)(e);
174
174
  }
175
175
  //#endregion
176
- //#region \0@oxc-project+runtime@0.128.0/helpers/toPropertyKey.js
176
+ //#region \0@oxc-project+runtime@0.129.0/helpers/toPropertyKey.js
177
177
  function le(e) {
178
178
  var t = ce(e, "string");
179
179
  return S(t) == "symbol" ? t : t + "";
180
180
  }
181
181
  //#endregion
182
- //#region \0@oxc-project+runtime@0.128.0/helpers/defineProperty.js
182
+ //#region \0@oxc-project+runtime@0.129.0/helpers/defineProperty.js
183
183
  function C(e, t, n) {
184
184
  return (t = le(t)) in e ? Object.defineProperty(e, t, {
185
185
  value: n,
@@ -220,7 +220,7 @@ var ue = class {
220
220
  }
221
221
  }, de = class {
222
222
  constructor(e, t = new ue()) {
223
- C(this, "causes", []), this.handler = t, e && this.addList(e);
223
+ C(this, "handler", void 0), C(this, "causes", []), this.handler = t, e && this.addList(e);
224
224
  }
225
225
  has(e, t) {
226
226
  return !!this.get(e, t);
@@ -536,7 +536,7 @@ var _e = "ui-storage", ve = () => T.get("__ui:data-storage__", () => ({})), E =
536
536
  _e = e;
537
537
  }
538
538
  constructor(e, t = !1, n = w.getItem()) {
539
- C(this, "value", void 0), C(this, "age", void 0), this.name = e, this.isSession = t, this.errorCenter = n;
539
+ C(this, "name", void 0), C(this, "isSession", void 0), C(this, "errorCenter", void 0), C(this, "value", void 0), C(this, "age", void 0), this.name = e, this.isSession = t, this.errorCenter = n;
540
540
  let r = `${t ? "session" : "storage"}#${e}`, i = ve();
541
541
  if (r in i) return i[r];
542
542
  this.make(), i[r] = this;
@@ -779,7 +779,7 @@ function A(e) {
779
779
  //#region src/classes/EventItem.ts
780
780
  var Ce = class {
781
781
  constructor(e, n = ["click"], r, i, a) {
782
- C(this, "element", void 0), C(this, "elementControl", void 0), C(this, "elementControlEdit", void 0), C(this, "type", void 0), C(this, "listenerRecent", (e) => {
782
+ C(this, "listener", void 0), C(this, "options", void 0), C(this, "detail", void 0), C(this, "element", void 0), C(this, "elementControl", void 0), C(this, "elementControlEdit", void 0), C(this, "type", void 0), C(this, "listenerRecent", (e) => {
783
783
  if (Se(this.elementControl)) {
784
784
  var n, r;
785
785
  (n = this.listener) == null || n.call(this.element, e, this.detail), t(this.options) && (r = this.options) != null && r.once && this.stop();
@@ -871,7 +871,7 @@ var Ce = class {
871
871
  }
872
872
  }, we = "ui-loading", Te = class {
873
873
  constructor(e = we) {
874
- C(this, "value", 0), C(this, "event", void 0), C(this, "registrationList", []), this.eventName = e, s() && (this.event = new Ce(window, this.eventName));
874
+ C(this, "eventName", void 0), C(this, "value", 0), C(this, "event", void 0), C(this, "registrationList", []), this.eventName = e, s() && (this.event = new Ce(window, this.eventName));
875
875
  }
876
876
  is() {
877
877
  return this.value > 0;
@@ -1081,7 +1081,7 @@ var Oe = class {
1081
1081
  "message"
1082
1082
  ], Ae = class {
1083
1083
  constructor(e, t, n) {
1084
- C(this, "data", void 0), C(this, "dataMod", void 0), this.apiFetch = e, this.query = t, this.end = n;
1084
+ C(this, "apiFetch", void 0), C(this, "query", void 0), C(this, "end", void 0), C(this, "data", void 0), C(this, "dataMod", void 0), this.apiFetch = e, this.query = t, this.end = n;
1085
1085
  }
1086
1086
  async init() {
1087
1087
  return this.data = await this.readData(), this;
@@ -1218,7 +1218,7 @@ async function Ie(e, ...t) {
1218
1218
  //#region src/classes/ApiResponse.ts
1219
1219
  var Le = "d-response-loading", Re = class {
1220
1220
  constructor(e) {
1221
- C(this, "first", []), C(this, "response", []), C(this, "loading", void 0), C(this, "devMode", !1), this.requestDefault = e;
1221
+ C(this, "requestDefault", void 0), C(this, "first", []), C(this, "response", []), C(this, "loading", void 0), C(this, "devMode", !1), this.requestDefault = e;
1222
1222
  }
1223
1223
  get(e = "", t, n, r) {
1224
1224
  return this.response.find((i) => !this.isDisable(i) && this.isPath(i, e) && t === i.method && this.isFirst(i, r) && this.isResponse(i, n) ? (this.isDevMode(r) && console.warn(`Response type: ${i.path}`), this.first.push(i), !0) : !1);
@@ -1292,7 +1292,7 @@ var Le = "d-response-loading", Re = class {
1292
1292
  }
1293
1293
  }, ze = class {
1294
1294
  constructor(e = "/api/", t = {}) {
1295
- C(this, "headers", void 0), C(this, "requestDefault", void 0), C(this, "status", void 0), C(this, "response", void 0), C(this, "preparation", void 0), C(this, "loading", void 0), C(this, "errorCenter", void 0), C(this, "hydration", void 0), C(this, "timeout", 16e3), C(this, "origin", void 0), this.url = e;
1295
+ C(this, "url", void 0), C(this, "headers", void 0), C(this, "requestDefault", void 0), C(this, "status", void 0), C(this, "response", void 0), C(this, "preparation", void 0), C(this, "loading", void 0), C(this, "errorCenter", void 0), C(this, "hydration", void 0), C(this, "timeout", 16e3), C(this, "origin", void 0), this.url = e;
1296
1296
  let { headersClass: n = Me, requestDefaultClass: r = je, statusClass: i = Oe, responseClass: a = Re, preparationClass: o = Fe, loadingClass: s = j.getItem(), errorCenterClass: c = w.getItem(), hydrationClass: l = Pe } = t;
1297
1297
  this.headers = new n(), this.requestDefault = new r(), this.status = new i(), this.response = new a(this.requestDefault), this.preparation = new o(), this.loading = s, this.errorCenter = c, this.hydration = new l(), this.hydration.initResponse(this.response);
1298
1298
  }
@@ -1575,7 +1575,7 @@ var Le = "d-response-loading", Re = class {
1575
1575
  }
1576
1576
  }, Be = class {
1577
1577
  constructor(e, t, n, r = w.getItem()) {
1578
- if (C(this, "channel", void 0), C(this, "update", (e) => {
1578
+ if (C(this, "callback", void 0), C(this, "callbackError", void 0), C(this, "channel", void 0), C(this, "update", (e) => {
1579
1579
  var t;
1580
1580
  return (t = this.callback) == null || t.call(this, e), this;
1581
1581
  }), C(this, "updateError", (e) => {
@@ -1610,7 +1610,7 @@ var Le = "d-response-loading", Re = class {
1610
1610
  }
1611
1611
  }, Ve = () => new E("__ui:broadcast-name__").get(() => `name_${f(1e6, 9999999)}`), He = class {
1612
1612
  constructor(e) {
1613
- C(this, "cache", void 0), C(this, "cacheOld", void 0), C(this, "comparisons", []), this.callback = e;
1613
+ C(this, "callback", void 0), C(this, "cache", void 0), C(this, "cacheOld", void 0), C(this, "comparisons", []), this.callback = e;
1614
1614
  }
1615
1615
  getCache(e) {
1616
1616
  return this.isUpdate(e) && (this.cacheOld = this.cache, this.setCache()), this.cache;
@@ -1817,7 +1817,7 @@ var Ze = () => T.get("__ui:cookie-items__", () => ({})), Qe = class e {
1817
1817
  return (n = (r = Ze()) == null ? void 0 : r[t]) == null ? new e(t) : n;
1818
1818
  }
1819
1819
  constructor(e) {
1820
- C(this, "value", void 0), C(this, "options", {}), this.name = e;
1820
+ C(this, "name", void 0), C(this, "value", void 0), C(this, "options", {}), this.name = e;
1821
1821
  let t = Ze();
1822
1822
  if (e in t) return t[e];
1823
1823
  this.value = I.get(this.name), t[e] = this;
@@ -1868,7 +1868,7 @@ var R = class e {
1868
1868
  return n in B ? B[n] : new e(t);
1869
1869
  }
1870
1870
  constructor(e = D.getLocation(), t = w.getItem()) {
1871
- C(this, "geo", void 0), this.errorCenter = t, this.geo = D.find(e);
1871
+ C(this, "errorCenter", void 0), C(this, "geo", void 0), this.errorCenter = t, this.geo = D.find(e);
1872
1872
  let n = this.getLocation();
1873
1873
  if (n in B) return B[n];
1874
1874
  z[e] = n, B[n] = this;
@@ -2197,7 +2197,7 @@ var R = class e {
2197
2197
  }
2198
2198
  }, z = {}, B = {}, et = class e {
2199
2199
  constructor(e, t = "date", n = D.getLocation()) {
2200
- C(this, "date", void 0), C(this, "hour24", !1), C(this, "watch", void 0), this.type = t, this.code = n, this.date = L(e), isNaN(this.date.getTime()) && w.on({
2200
+ C(this, "type", void 0), C(this, "code", void 0), C(this, "date", void 0), C(this, "hour24", !1), C(this, "watch", void 0), this.type = t, this.code = n, this.date = L(e), isNaN(this.date.getTime()) && w.on({
2201
2201
  group: "intl",
2202
2202
  code: "invalid"
2203
2203
  });
@@ -2475,7 +2475,7 @@ var U = /* @__PURE__ */ function(e) {
2475
2475
  return e.currency = "currency", e.date = "date", e.name = "name", e.number = "number", e.plural = "plural", e.unit = "unit", e;
2476
2476
  }({}), tt = class {
2477
2477
  constructor(e, t) {
2478
- this.options = e, this.list = t;
2478
+ C(this, "options", void 0), C(this, "list", void 0), this.options = e, this.list = t;
2479
2479
  }
2480
2480
  is() {
2481
2481
  return !!this.list;
@@ -2545,7 +2545,7 @@ var U = /* @__PURE__ */ function(e) {
2545
2545
  }
2546
2546
  }, nt = "f", rt = class e {
2547
2547
  constructor(e = D.getLocation()) {
2548
- this.code = e;
2548
+ C(this, "code", void 0), this.code = e;
2549
2549
  }
2550
2550
  get(t = this.code) {
2551
2551
  let n = D.find(t);
@@ -3138,7 +3138,7 @@ function G(e) {
3138
3138
  //#region src/classes/MetaManager.ts
3139
3139
  var K = class {
3140
3140
  constructor(e, t = !1) {
3141
- C(this, "items", {}), this.listMeta = e, this.isProperty = t, this.update();
3141
+ C(this, "listMeta", void 0), C(this, "isProperty", void 0), C(this, "items", {}), this.listMeta = e, this.isProperty = t, this.update();
3142
3142
  }
3143
3143
  getListMeta() {
3144
3144
  return this.listMeta;
@@ -3461,7 +3461,7 @@ var K = class {
3461
3461
  }
3462
3462
  }, Tt = class {
3463
3463
  constructor(e, t = 320, n = !1) {
3464
- C(this, "timerId", void 0), C(this, "startTime", void 0), C(this, "remaining", void 0), C(this, "completed", !1), this.callback = e, this.delay = t, n || this.resume();
3464
+ C(this, "callback", void 0), C(this, "delay", void 0), C(this, "timerId", void 0), C(this, "startTime", void 0), C(this, "remaining", void 0), C(this, "completed", !1), this.callback = e, this.delay = t, n || this.resume();
3465
3465
  }
3466
3466
  resume() {
3467
3467
  if (this.timerId || this.completed) return this;
@@ -3564,7 +3564,7 @@ function jt(e, t, n = "sys-highlight-match", r = !1) {
3564
3564
  //#region src/classes/SearchListData.ts
3565
3565
  var Mt = class {
3566
3566
  constructor(e, t, n, r) {
3567
- C(this, "listCache", void 0), this.list = e, this.columns = t, this.item = n, this.options = r;
3567
+ C(this, "list", void 0), C(this, "columns", void 0), C(this, "item", void 0), C(this, "options", void 0), C(this, "listCache", void 0), this.list = e, this.columns = t, this.item = n, this.options = r;
3568
3568
  }
3569
3569
  is() {
3570
3570
  return !!(this.list && this.columns);
@@ -3639,7 +3639,7 @@ var Mt = class {
3639
3639
  }
3640
3640
  }, Nt = class {
3641
3641
  constructor(e, t) {
3642
- this.value = e, this.options = t;
3642
+ C(this, "value", void 0), C(this, "options", void 0), this.value = e, this.options = t;
3643
3643
  }
3644
3644
  is() {
3645
3645
  return !!this.value;
@@ -3680,7 +3680,7 @@ function It(e, t = 128) {
3680
3680
  //#region src/classes/SearchListMatcher.ts
3681
3681
  var Lt = class {
3682
3682
  constructor(e, t) {
3683
- C(this, "matcher", void 0), this.item = e, this.options = t, this.initMatcher();
3683
+ C(this, "item", void 0), C(this, "options", void 0), C(this, "matcher", void 0), this.item = e, this.options = t, this.initMatcher();
3684
3684
  }
3685
3685
  is() {
3686
3686
  return !!this.matcher;
@@ -3699,7 +3699,7 @@ var Lt = class {
3699
3699
  }
3700
3700
  }, Rt = class {
3701
3701
  constructor(e) {
3702
- this.options = e;
3702
+ C(this, "options", void 0), this.options = e;
3703
3703
  }
3704
3704
  getOptions() {
3705
3705
  return this.options || {};
@@ -3774,7 +3774,7 @@ var Lt = class {
3774
3774
  return new e(t, n);
3775
3775
  }
3776
3776
  constructor(e, t = "main") {
3777
- C(this, "callbacks", []), C(this, "loading", !1), this.name = e, this.group = t;
3777
+ C(this, "name", void 0), C(this, "group", void 0), C(this, "callbacks", []), C(this, "loading", !1), this.name = e, this.group = t;
3778
3778
  let n = `${t}:${e}`, r = Bt();
3779
3779
  if (n in r) return r[n];
3780
3780
  r[n] = this;
@@ -3852,7 +3852,7 @@ var Lt = class {
3852
3852
  return i(e) ? !0 : !!(e && n(e) && ((e == null ? void 0 : e.status) === "success" || e != null && e.success || !(e == null || (t = e.statusObject) == null) && t.status && /^2/.test(String(e.statusObject.status)) || !("status" in e) && !("success" in e) && !("statusObject" in e) && /^2/.test(String(P.getStatus().getStatus()))));
3853
3853
  }, Kt = "global", qt = 160, Jt = class {
3854
3854
  constructor(e, t = () => D.getLanguage(), n = () => D.getLocation()) {
3855
- C(this, "files", {}), C(this, "data", {}), this.language = t, this.location = n, e && this.add(e);
3855
+ C(this, "language", void 0), C(this, "location", void 0), C(this, "files", {}), C(this, "data", {}), this.language = t, this.location = n, e && this.add(e);
3856
3856
  }
3857
3857
  isFile() {
3858
3858
  return Object.keys(this.files).length > 0 && this.getIndex() !== void 0;
@@ -3893,7 +3893,7 @@ var Lt = class {
3893
3893
  }
3894
3894
  }, Yt = class {
3895
3895
  constructor(e = "/api/translate", t = "list", n = new Jt()) {
3896
- C(this, "data", {}), C(this, "cache", []), C(this, "resolveList", []), C(this, "timeout", void 0), C(this, "isReadApi", !0), this.url = e, this.propsName = t, this.files = n;
3896
+ C(this, "url", void 0), C(this, "propsName", void 0), C(this, "files", void 0), C(this, "data", {}), C(this, "cache", []), C(this, "resolveList", []), C(this, "timeout", void 0), C(this, "isReadApi", !0), this.url = e, this.propsName = t, this.files = n;
3897
3897
  }
3898
3898
  async get(e, t) {
3899
3899
  var n;
@@ -4249,14 +4249,24 @@ function xn(e) {
4249
4249
  Q || (Q = e);
4250
4250
  }
4251
4251
  //#endregion
4252
- //#region src/functions/getKey.ts
4252
+ //#region src/functions/getFirst.ts
4253
4253
  function Sn(e) {
4254
+ if (i(e)) return e == null ? void 0 : e[0];
4255
+ if (t(e)) {
4256
+ var n;
4257
+ return (n = Object.values(e)) == null ? void 0 : n[0];
4258
+ }
4259
+ return e;
4260
+ }
4261
+ //#endregion
4262
+ //#region src/functions/getKey.ts
4263
+ function Cn(e) {
4254
4264
  var t, n, r;
4255
4265
  return (t = (n = e == null ? void 0 : e.key) == null ? e == null ? void 0 : e.code : n) == null ? e == null || (r = e.keyCode) == null ? void 0 : r.toString() : t;
4256
4266
  }
4257
4267
  //#endregion
4258
4268
  //#region src/functions/getLengthOfAllArray.ts
4259
- function Cn(e) {
4269
+ function wn(e) {
4260
4270
  return r(e, (e) => {
4261
4271
  var t;
4262
4272
  return (t = e == null ? void 0 : e.length) == null ? 0 : t;
@@ -4264,41 +4274,41 @@ function Cn(e) {
4264
4274
  }
4265
4275
  //#endregion
4266
4276
  //#region src/functions/getMaxLengthAllArray.ts
4267
- function wn(e) {
4277
+ function Tn(e) {
4268
4278
  if (!l(e)) return 0;
4269
- let t = Cn(e);
4279
+ let t = wn(e);
4270
4280
  return t.length > 1e4 ? t.reduce((e, t) => Math.max(e, t)) : Math.max(...t);
4271
4281
  }
4272
4282
  //#endregion
4273
4283
  //#region src/functions/getMinLengthAllArray.ts
4274
- function Tn(e) {
4284
+ function En(e) {
4275
4285
  if (!l(e)) return 0;
4276
- let t = Cn(e);
4286
+ let t = wn(e);
4277
4287
  return t.length > 1e4 ? t.reduce((e, t) => Math.min(e, t)) : Math.min(...t);
4278
4288
  }
4279
4289
  //#endregion
4280
4290
  //#region src/functions/getMouseClientX.ts
4281
- function En(e) {
4291
+ function Dn(e) {
4282
4292
  var t, n;
4283
4293
  return (e == null ? void 0 : e.clientX) || (e == null || (t = e.targetTouches) == null || (t = t[0]) == null ? void 0 : t.clientX) || (e == null || (n = e.touches) == null || (n = n[0]) == null ? void 0 : n.clientX) || 0;
4284
4294
  }
4285
4295
  //#endregion
4286
4296
  //#region src/functions/getMouseClientY.ts
4287
- function Dn(e) {
4297
+ function On(e) {
4288
4298
  var t, n;
4289
4299
  return (e == null ? void 0 : e.clientY) || (e == null || (t = e.targetTouches) == null || (t = t[0]) == null ? void 0 : t.clientY) || (e == null || (n = e.touches) == null || (n = n[0]) == null ? void 0 : n.clientY) || 0;
4290
4300
  }
4291
4301
  //#endregion
4292
4302
  //#region src/functions/getMouseClient.ts
4293
- function On(e) {
4303
+ function kn(e) {
4294
4304
  return {
4295
- x: En(e),
4296
- y: Dn(e)
4305
+ x: Dn(e),
4306
+ y: On(e)
4297
4307
  };
4298
4308
  }
4299
4309
  //#endregion
4300
4310
  //#region src/functions/getObjectByKeys.ts
4301
- function kn(e, t) {
4311
+ function An(e, t) {
4302
4312
  let r = {};
4303
4313
  return n(e) && t.forEach((t) => {
4304
4314
  t in e && e[t] !== void 0 && (r[t] = e[t]);
@@ -4306,7 +4316,7 @@ function kn(e, t) {
4306
4316
  }
4307
4317
  //#endregion
4308
4318
  //#region src/functions/getObjectNoUndefined.ts
4309
- function An(e, t = void 0) {
4319
+ function jn(e, t = void 0) {
4310
4320
  let n = {};
4311
4321
  return r(e, (e, r) => {
4312
4322
  e !== t && (n[r] = e);
@@ -4314,42 +4324,42 @@ function An(e, t = void 0) {
4314
4324
  }
4315
4325
  //#endregion
4316
4326
  //#region src/functions/getObjectOrNone.ts
4317
- function jn(e) {
4327
+ function Mn(e) {
4318
4328
  return n(e) ? e : {};
4319
4329
  }
4320
4330
  //#endregion
4321
4331
  //#region src/functions/getOnlyText.ts
4322
- function Mn(e) {
4332
+ function Nn(e) {
4323
4333
  return F(e).replace(/[^\p{L}\p{N}\s]+/gu, "").trim();
4324
4334
  }
4325
4335
  //#endregion
4326
4336
  //#region src/functions/strFill.ts
4327
- function Nn(e, t) {
4337
+ function Pn(e, t) {
4328
4338
  return String(e).repeat(t);
4329
4339
  }
4330
4340
  //#endregion
4331
4341
  //#region src/functions/getRandomText.ts
4332
- function Pn(e, t, n = "#", r = 2, i = 12) {
4342
+ function Fn(e, t, n = "#", r = 2, i = 12) {
4333
4343
  let a = f(e, t), o = [];
4334
- for (let e = 0; e < a; e++) o.push(Nn(n, f(r, i)));
4344
+ for (let e = 0; e < a; e++) o.push(Pn(n, f(r, i)));
4335
4345
  return o.join(" ");
4336
4346
  }
4337
4347
  //#endregion
4338
4348
  //#region src/functions/getStepPercent.ts
4339
- function Fn(e, t) {
4349
+ function In(e, t) {
4340
4350
  let n = e == null ? 0 : e;
4341
4351
  return t > n ? 100 / (t - n) : 0;
4342
4352
  }
4343
4353
  //#endregion
4344
4354
  //#region src/functions/getStepValue.ts
4345
- function In(e, t) {
4355
+ function Ln(e, t) {
4346
4356
  let n = e == null ? 0 : e;
4347
4357
  return t > n ? (t - n) / 100 : 0;
4348
4358
  }
4349
4359
  //#endregion
4350
4360
  //#region src/functions/goScroll.ts
4351
- var Ln = 0;
4352
- function Rn(e, t, n) {
4361
+ var Rn = 0;
4362
+ function zn(e, t, n) {
4353
4363
  if (!s()) return;
4354
4364
  let r = t == null ? void 0 : t.closest(e);
4355
4365
  if (t && r && r.scrollHeight !== r.offsetHeight) {
@@ -4357,12 +4367,12 @@ function Rn(e, t, n) {
4357
4367
  if (n) {
4358
4368
  let a = n.getBoundingClientRect();
4359
4369
  r.scrollTop = t.offsetTop - (a.top - e.top) - (a.height / 2 - i.height / 2), r.scrollTop + r.offsetHeight < t.offsetTop + t.offsetHeight && (r.scrollTop = t.offsetTop + t.offsetHeight - r.offsetHeight);
4360
- } else r.scrollTop > t.offsetTop ? r.scrollTop = i.top - e.top - Ln : r.scrollTop + r.offsetHeight < t.offsetTop + t.offsetHeight && (r.scrollTop = i.top - e.top + i.height - e.height + Ln);
4370
+ } else r.scrollTop > t.offsetTop ? r.scrollTop = i.top - e.top - Rn : r.scrollTop + r.offsetHeight < t.offsetTop + t.offsetHeight && (r.scrollTop = i.top - e.top + i.height - e.height + Rn);
4361
4371
  }
4362
4372
  }
4363
4373
  //#endregion
4364
4374
  //#region src/functions/goScrollSmooth.ts
4365
- function zn(e, t, n = 0) {
4375
+ function Bn(e, t, n = 0) {
4366
4376
  if (!s()) return;
4367
4377
  let r = (t == null ? void 0 : t.behavior) || "smooth";
4368
4378
  if ("scrollIntoView" in e && !n) {
@@ -4384,7 +4394,7 @@ function zn(e, t, n = 0) {
4384
4394
  }
4385
4395
  //#endregion
4386
4396
  //#region src/functions/goScrollTo.ts
4387
- function Bn(e, t, n = "smooth") {
4397
+ function Vn(e, t, n = "smooth") {
4388
4398
  if (!s() || !e || !t) return;
4389
4399
  let r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
4390
4400
  e.scrollBy({
@@ -4395,13 +4405,13 @@ function Bn(e, t, n = "smooth") {
4395
4405
  }
4396
4406
  //#endregion
4397
4407
  //#region src/functions/isShare.ts
4398
- function Vn() {
4408
+ function Hn() {
4399
4409
  return s() && typeof navigator < "u" && !!navigator.share;
4400
4410
  }
4401
4411
  //#endregion
4402
4412
  //#region src/functions/handleShare.ts
4403
- async function Hn(e) {
4404
- if (Vn() && navigator.canShare && navigator.canShare(e)) try {
4413
+ async function Un(e) {
4414
+ if (Hn() && navigator.canShare && navigator.canShare(e)) try {
4405
4415
  return await navigator.share(e), !0;
4406
4416
  } catch (e) {
4407
4417
  w.on({
@@ -4414,12 +4424,12 @@ async function Hn(e) {
4414
4424
  }
4415
4425
  //#endregion
4416
4426
  //#region src/functions/inArray.ts
4417
- function Un(e, t) {
4427
+ function Wn(e, t) {
4418
4428
  return e.includes(t);
4419
4429
  }
4420
4430
  //#endregion
4421
4431
  //#region src/functions/initScrollbarOffset.ts
4422
- async function Wn() {
4432
+ async function Gn() {
4423
4433
  if (s()) {
4424
4434
  let e = await Et.get();
4425
4435
  document.body.style.setProperty("--sys-scrollbar-offset", `${e}px`);
@@ -4427,7 +4437,7 @@ async function Wn() {
4427
4437
  }
4428
4438
  //#endregion
4429
4439
  //#region src/functions/intersectKey.ts
4430
- function Gn(e, n) {
4440
+ function Kn(e, n) {
4431
4441
  let i = {};
4432
4442
  return t(e) && t(n) && r(e, (e, t) => {
4433
4443
  t in n && (i[t] = e);
@@ -4435,7 +4445,7 @@ function Gn(e, n) {
4435
4445
  }
4436
4446
  //#endregion
4437
4447
  //#region src/functions/isDifferent.ts
4438
- function Kn(e, t) {
4448
+ function qn(e, t) {
4439
4449
  let n = Object.keys(e).length !== Object.keys(t).length;
4440
4450
  return n || r(e, (e, r) => {
4441
4451
  e !== (t == null ? void 0 : t[r]) && (n = !0);
@@ -4443,7 +4453,7 @@ function Kn(e, t) {
4443
4453
  }
4444
4454
  //#endregion
4445
4455
  //#region src/functions/isElementVisible.ts
4446
- function qn(e) {
4456
+ function Jn(e) {
4447
4457
  if (!s()) return !1;
4448
4458
  let t = k(e);
4449
4459
  if (!t || "isConnected" in t && t.isConnected === !1) return !1;
@@ -4452,16 +4462,16 @@ function qn(e) {
4452
4462
  }
4453
4463
  //#endregion
4454
4464
  //#region src/functions/isInput.ts
4455
- var Jn = (e) => {
4465
+ var Yn = (e) => {
4456
4466
  if (e instanceof HTMLElement) {
4457
4467
  let t = e.tagName.toLowerCase();
4458
4468
  return !!(t === "input" || t === "textarea" || t === "select" || e.isContentEditable || e.getAttribute("contenteditable") === "true");
4459
4469
  }
4460
4470
  return !1;
4461
- }, Yn = (e, t) => e.code === "Space" || e.code === "Enter" || e.key === " " || e.key === "Spacebar" || e.key === "Enter" || e.keyCode === 13 || e.keyCode === 32 ? t === void 0 ? !Jn(e.target) : !t : !1;
4471
+ }, Xn = (e, t) => e.code === "Space" || e.code === "Enter" || e.key === " " || e.key === "Spacebar" || e.key === "Enter" || e.keyCode === 13 || e.keyCode === 32 ? t === void 0 ? !Yn(e.target) : !t : !1;
4462
4472
  //#endregion
4463
4473
  //#region src/functions/isFloat.ts
4464
- function Xn(e) {
4474
+ function Zn(e) {
4465
4475
  switch (typeof e) {
4466
4476
  case "number": return !0;
4467
4477
  case "string": return /^-?\d+(\.\d+)?$/.test(e);
@@ -4470,18 +4480,18 @@ function Xn(e) {
4470
4480
  }
4471
4481
  //#endregion
4472
4482
  //#region src/functions/isIntegerBetween.ts
4473
- function Zn(e, t) {
4483
+ function Qn(e, t) {
4474
4484
  let n = Math.floor(t);
4475
4485
  return e >= n && e < n + 1;
4476
4486
  }
4477
4487
  //#endregion
4478
4488
  //#region src/functions/isSelectedByList.ts
4479
- function Qn(e, t) {
4489
+ function $n(e, t) {
4480
4490
  return Array.isArray(e) ? e.every((e) => y(e, t)) : y(e, t);
4481
4491
  }
4482
4492
  //#endregion
4483
4493
  //#region src/functions/removeCommonPrefix.ts
4484
- function $n(e, t) {
4494
+ function er(e, t) {
4485
4495
  if (e.startsWith(t)) return e.slice(t.length).trim();
4486
4496
  let n = 0;
4487
4497
  for (; e[n] === t[n] && n < e.length && n < t.length;) n++;
@@ -4489,13 +4499,13 @@ function $n(e, t) {
4489
4499
  }
4490
4500
  //#endregion
4491
4501
  //#region src/functions/replaceComponentName.ts
4492
- var er = (e, t, n) => {
4502
+ var tr = (e, t, n) => {
4493
4503
  var r;
4494
4504
  return e == null || (r = e.replace(RegExp(`<${t}`, "ig"), `<${n}`)) == null || (r = r.replace(RegExp(`</${t}`, "ig"), `</${n}`)) == null ? void 0 : r.trim();
4495
4505
  };
4496
4506
  //#endregion
4497
4507
  //#region src/functions/uniqueArray.ts
4498
- function tr(e) {
4508
+ function nr(e) {
4499
4509
  return [...new Set(e)];
4500
4510
  }
4501
4511
  //#endregion
@@ -4504,12 +4514,12 @@ function $(e, n, i = !0) {
4504
4514
  let a = Z(e);
4505
4515
  return t(e) && t(n) && r(n, (n, r) => {
4506
4516
  let o = e == null ? void 0 : e[r];
4507
- t(o) && t(n) ? i && Array.isArray(o) && Array.isArray(n) ? a[r] = Z(tr([...o, ...n])) : a[r] = $(Array.isArray(o) ? { ...o } : o, n, i) : a[r] = t(n) ? Z(n) : n;
4517
+ t(o) && t(n) ? i && Array.isArray(o) && Array.isArray(n) ? a[r] = Z(nr([...o, ...n])) : a[r] = $(Array.isArray(o) ? { ...o } : o, n, i) : a[r] = t(n) ? Z(n) : n;
4508
4518
  }), a;
4509
4519
  }
4510
4520
  //#endregion
4511
4521
  //#region src/functions/replaceTemplate.ts
4512
- function nr(e, t) {
4522
+ function rr(e, t) {
4513
4523
  let n = e;
4514
4524
  return r(t, (e, t) => {
4515
4525
  n = n.replace(Pt(`[${t}]`), x(e));
@@ -4517,7 +4527,7 @@ function nr(e, t) {
4517
4527
  }
4518
4528
  //#endregion
4519
4529
  //#region src/functions/secondToTime.ts
4520
- function rr(e, t) {
4530
+ function ir(e, t) {
4521
4531
  let n = v(e);
4522
4532
  if (n > 0) {
4523
4533
  let e = String(Math.floor(n / 60)).padStart(2, "0"), r = String(n % 60).padStart(2, "0");
@@ -4527,7 +4537,7 @@ function rr(e, t) {
4527
4537
  }
4528
4538
  //#endregion
4529
4539
  //#region src/functions/setValues.ts
4530
- function ir(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: a = !0, notEmpty: o = !1 }) {
4540
+ function ar(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: a = !0, notEmpty: o = !1 }) {
4531
4541
  if (n) {
4532
4542
  if (i(e)) {
4533
4543
  let n = e.indexOf(t), i = [...e];
@@ -4539,7 +4549,7 @@ function ir(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: a = !0, no
4539
4549
  }
4540
4550
  //#endregion
4541
4551
  //#region src/functions/splice.ts
4542
- function ar(e, n, i) {
4552
+ function or(e, n, i) {
4543
4553
  if (t(e) && t(n)) {
4544
4554
  if (i) {
4545
4555
  let a = {}, o = !1;
@@ -4553,34 +4563,34 @@ function ar(e, n, i) {
4553
4563
  }
4554
4564
  //#endregion
4555
4565
  //#region src/functions/toCamelCaseFirst.ts
4556
- function or(e) {
4566
+ function sr(e) {
4557
4567
  return H(e).replace(/^([a-z])/, (e) => `${e.toUpperCase()}`);
4558
4568
  }
4559
4569
  //#endregion
4560
4570
  //#region src/functions/toKebabCase.ts
4561
- function sr(e) {
4571
+ function cr(e) {
4562
4572
  return e.toString().trim().replace(/[^\w-. ]+/g, "").replace(/[ .]+/g, "-").replace(/(?<=[A-Z])([A-Z])/g, (e) => `${e.toLowerCase()}`).replace(/^[A-Z]/, (e) => e.toLowerCase()).replace(/(?<=[\w ])[A-Z]/g, (e) => `-${e.toLowerCase()}`).replace(/[A-Z]/g, (e) => e.toLowerCase());
4563
4573
  }
4564
4574
  //#endregion
4565
4575
  //#region src/functions/toNumberByMax.ts
4566
- function cr(e, t, n, r) {
4576
+ function lr(e, t, n, r) {
4567
4577
  let i = v(e), a = v(t);
4568
- return t && a < i ? `${lr(a, n, r)}+` : lr(i, n, r);
4578
+ return t && a < i ? `${ur(a, n, r)}+` : ur(i, n, r);
4569
4579
  }
4570
- var lr = (e, t, n) => t ? new R(n).number(e) : e;
4580
+ var ur = (e, t, n) => t ? new R(n).number(e) : e;
4571
4581
  //#endregion
4572
4582
  //#region src/functions/toPercent.ts
4573
- function ur(e, t) {
4583
+ function dr(e, t) {
4574
4584
  return e === 0 ? t : 1 / e * t;
4575
4585
  }
4576
4586
  //#endregion
4577
4587
  //#region src/functions/toPercentBy100.ts
4578
- function dr(e, t) {
4579
- return ur(e, t) * 100;
4588
+ function fr(e, t) {
4589
+ return dr(e, t) * 100;
4580
4590
  }
4581
4591
  //#endregion
4582
4592
  //#region src/functions/uint8ArrayToBase64.ts
4583
- function fr(e) {
4593
+ function pr(e) {
4584
4594
  let t = "";
4585
4595
  for (let n of e) t += String.fromCharCode(n);
4586
4596
  if (s()) return window.btoa(t);
@@ -4592,7 +4602,7 @@ function fr(e) {
4592
4602
  }
4593
4603
  //#endregion
4594
4604
  //#region src/functions/writeClipboardData.ts
4595
- async function pr(e) {
4605
+ async function mr(e) {
4596
4606
  if (s()) try {
4597
4607
  await navigator.clipboard.writeText(e);
4598
4608
  } catch (n) {
@@ -4601,4 +4611,4 @@ async function pr(e) {
4601
4611
  }
4602
4612
  }
4603
4613
  //#endregion
4604
- export { P as Api, M as ApiCache, Ae as ApiDataReturn, je as ApiDefault, Me as ApiHeaders, Pe as ApiHydration, ze as ApiInstance, N as ApiMethodItem, Fe as ApiPreparation, Re as ApiResponse, Oe as ApiStatus, Be as BroadcastMessage, Ue as Cache, He as CacheItem, We as CacheStatic, Qe as Cookie, Ye as CookieBlock, Je as CookieBlockInstance, I as CookieStorage, E as DataStorage, et as Datetime, w as ErrorCenter, ue as ErrorCenterHandler, de as ErrorCenterInstance, Ce as EventItem, tt as Formatters, U as FormattersType, nt as GEO_FLAG_ICON_NAME, D as Geo, rt as GeoFlag, be as GeoInstance, R as GeoIntl, it as GeoPhone, at as Global, st as Hash, ot as HashInstance, ut as Icons, j as Loading, Te as LoadingInstance, Ct as Meta, K as MetaManager, xt as MetaOg, vt as MetaOpenGraphAge, gt as MetaOpenGraphAvailability, _t as MetaOpenGraphCondition, yt as MetaOpenGraphGender, J as MetaOpenGraphTag, ht as MetaOpenGraphType, mt as MetaRobots, wt as MetaStatic, q as MetaTag, St as MetaTwitter, bt as MetaTwitterCard, Y as MetaTwitterTag, Tt as ResumableTimer, Et as ScrollbarWidth, zt as SearchList, Mt as SearchListData, Nt as SearchListItem, Lt as SearchListMatcher, Rt as SearchListOptions, T as ServerStorage, Vt as StorageCallback, Kt as TRANSLATE_GLOBAL_PREFIX, qt as TRANSLATE_TIME_OUT, Xt as Translate, Jt as TranslateFile, Yt as TranslateInstance, jt as addTagHighlightMatch, F as anyToString, Wt as applyTemplate, Zt as arrFill, nn as blobToBase64, rn as capitalize, Z as copyObject, an as copyObjectLite, W as createElement, on as domQuerySelector, sn as domQuerySelectorAll, G as encodeAttribute, oe as encodeLiteAttribute, dn as ensureMaxSize, X as escapeExp, fn as eventStopPropagation, x as executeFunction, Ie as executePromise, r as forEach, pn as frame, mn as getArrayHighlightMatch, hn as getAttributes, gn as getClipboardData, $e as getColumn, _n as getCurrentDate, vn as getCurrentTime, k as getElement, bn as getElementId, cn as getElementImage, dt as getElementItem, xe as getElementOrWindow, pe as getElementSafeScript, Ft as getExactSearchExp, Pt as getExp, me as getHydrationData, V as getItemByPath, Sn as getKey, Cn as getLengthOfAllArray, wn as getMaxLengthAllArray, Tn as getMinLengthAllArray, On as getMouseClient, En as getMouseClientX, Dn as getMouseClientY, kn as getObjectByKeys, An as getObjectNoUndefined, jn as getObjectOrNone, Mn as getOnlyText, Pn as getRandomText, o as getRequestString, It as getSearchExp, Dt as getSeparatingSearchExp, Fn as getStepPercent, In as getStepValue, Rn as goScroll, zn as goScrollSmooth, Bn as goScrollTo, Hn as handleShare, Un as inArray, xn as initGetElementId, Wn as initScrollbarOffset, Gn as intersectKey, Gt as isApiSuccess, i as isArray, Kn as isDifferent, se as isDomData, s as isDomRuntime, qn as isElementVisible, Yn as isEnter, l as isFilled, Xn as isFloat, b as isFunction, Se as isInDom, Jn as isInput, Zn as isIntegerBetween, c as isNull, m as isNumber, t as isObject, n as isObjectNotArray, u as isOnLine, y as isSelected, Qn as isSelectedByList, Vn as isShare, d as isString, O as isWindow, f as random, $n as removeCommonPrefix, er as replaceComponentName, $ as replaceRecursive, nr as replaceTemplate, un as resizeImageByMax, rr as secondToTime, ft as setElementItem, ir as setValues, ee as sleep, ar as splice, Nn as strFill, Ge as strSplit, A as toArray, H as toCamelCase, or as toCamelCaseFirst, L as toDate, sr as toKebabCase, v as toNumber, cr as toNumberByMax, ur as toPercent, dr as toPercentBy100, a as toString, Ke as transformation, fr as uint8ArrayToBase64, tr as uniqueArray, pr as writeClipboardData };
4614
+ export { P as Api, M as ApiCache, Ae as ApiDataReturn, je as ApiDefault, Me as ApiHeaders, Pe as ApiHydration, ze as ApiInstance, N as ApiMethodItem, Fe as ApiPreparation, Re as ApiResponse, Oe as ApiStatus, Be as BroadcastMessage, Ue as Cache, He as CacheItem, We as CacheStatic, Qe as Cookie, Ye as CookieBlock, Je as CookieBlockInstance, I as CookieStorage, E as DataStorage, et as Datetime, w as ErrorCenter, ue as ErrorCenterHandler, de as ErrorCenterInstance, Ce as EventItem, tt as Formatters, U as FormattersType, nt as GEO_FLAG_ICON_NAME, D as Geo, rt as GeoFlag, be as GeoInstance, R as GeoIntl, it as GeoPhone, at as Global, st as Hash, ot as HashInstance, ut as Icons, j as Loading, Te as LoadingInstance, Ct as Meta, K as MetaManager, xt as MetaOg, vt as MetaOpenGraphAge, gt as MetaOpenGraphAvailability, _t as MetaOpenGraphCondition, yt as MetaOpenGraphGender, J as MetaOpenGraphTag, ht as MetaOpenGraphType, mt as MetaRobots, wt as MetaStatic, q as MetaTag, St as MetaTwitter, bt as MetaTwitterCard, Y as MetaTwitterTag, Tt as ResumableTimer, Et as ScrollbarWidth, zt as SearchList, Mt as SearchListData, Nt as SearchListItem, Lt as SearchListMatcher, Rt as SearchListOptions, T as ServerStorage, Vt as StorageCallback, Kt as TRANSLATE_GLOBAL_PREFIX, qt as TRANSLATE_TIME_OUT, Xt as Translate, Jt as TranslateFile, Yt as TranslateInstance, jt as addTagHighlightMatch, F as anyToString, Wt as applyTemplate, Zt as arrFill, nn as blobToBase64, rn as capitalize, Z as copyObject, an as copyObjectLite, W as createElement, on as domQuerySelector, sn as domQuerySelectorAll, G as encodeAttribute, oe as encodeLiteAttribute, dn as ensureMaxSize, X as escapeExp, fn as eventStopPropagation, x as executeFunction, Ie as executePromise, r as forEach, pn as frame, mn as getArrayHighlightMatch, hn as getAttributes, gn as getClipboardData, $e as getColumn, _n as getCurrentDate, vn as getCurrentTime, k as getElement, bn as getElementId, cn as getElementImage, dt as getElementItem, xe as getElementOrWindow, pe as getElementSafeScript, Ft as getExactSearchExp, Pt as getExp, Sn as getFirst, me as getHydrationData, V as getItemByPath, Cn as getKey, wn as getLengthOfAllArray, Tn as getMaxLengthAllArray, En as getMinLengthAllArray, kn as getMouseClient, Dn as getMouseClientX, On as getMouseClientY, An as getObjectByKeys, jn as getObjectNoUndefined, Mn as getObjectOrNone, Nn as getOnlyText, Fn as getRandomText, o as getRequestString, It as getSearchExp, Dt as getSeparatingSearchExp, In as getStepPercent, Ln as getStepValue, zn as goScroll, Bn as goScrollSmooth, Vn as goScrollTo, Un as handleShare, Wn as inArray, xn as initGetElementId, Gn as initScrollbarOffset, Kn as intersectKey, Gt as isApiSuccess, i as isArray, qn as isDifferent, se as isDomData, s as isDomRuntime, Jn as isElementVisible, Xn as isEnter, l as isFilled, Zn as isFloat, b as isFunction, Se as isInDom, Yn as isInput, Qn as isIntegerBetween, c as isNull, m as isNumber, t as isObject, n as isObjectNotArray, u as isOnLine, y as isSelected, $n as isSelectedByList, Hn as isShare, d as isString, O as isWindow, f as random, er as removeCommonPrefix, tr as replaceComponentName, $ as replaceRecursive, rr as replaceTemplate, un as resizeImageByMax, ir as secondToTime, ft as setElementItem, ar as setValues, ee as sleep, or as splice, Pn as strFill, Ge as strSplit, A as toArray, H as toCamelCase, sr as toCamelCaseFirst, L as toDate, cr as toKebabCase, v as toNumber, lr as toNumberByMax, dr as toPercent, fr as toPercentBy100, a as toString, Ke as transformation, pr as uint8ArrayToBase64, nr as uniqueArray, mr as writeClipboardData };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Возвращает первый элемент массива или объекта
3
+ *
4
+ * Returns the first element of an array or object
5
+ * @param value Входное значение
6
+ * @returns Первый элемент массива или объекта
7
+ */
8
+ export declare function getFirst<T>(value: T | T[] | Record<string, T>): T | undefined;
@@ -85,6 +85,7 @@ export * from './functions/getElementOrWindow';
85
85
  export * from './functions/getElementSafeScript';
86
86
  export * from './functions/getExactSearchExp';
87
87
  export * from './functions/getExp';
88
+ export * from './functions/getFirst';
88
89
  export * from './functions/getHydrationData';
89
90
  export * from './functions/getItemByPath';
90
91
  export * from './functions/getKey';