@topvisor/ui 1.3.5-popupFromInput.0 → 1.4.0-TopGroupSelector.11

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 (219) hide show
  1. package/.chunks/core-BL-38XF7.es.js +196 -0
  2. package/.chunks/core-BL-38XF7.es.js.map +1 -0
  3. package/.chunks/core-BsPx05H9.amd.js +2 -0
  4. package/.chunks/core-BsPx05H9.amd.js.map +1 -0
  5. package/.chunks/{datepicker-Bq_z2paN.amd.js → datepicker-3coUsFW2.amd.js} +2 -2
  6. package/.chunks/{datepicker-Bq_z2paN.amd.js.map → datepicker-3coUsFW2.amd.js.map} +1 -1
  7. package/.chunks/{datepicker-CGGp0VnN.es.js → datepicker-D1Hw3a3o.es.js} +14 -17
  8. package/.chunks/{datepicker-CGGp0VnN.es.js.map → datepicker-D1Hw3a3o.es.js.map} +1 -1
  9. package/.chunks/dialog_regionSelectorRegions-1UVhgK2f.es.js +180 -0
  10. package/.chunks/dialog_regionSelectorRegions-1UVhgK2f.es.js.map +1 -0
  11. package/.chunks/dialog_regionSelectorRegions-CZ8IX7la.amd.js +2 -0
  12. package/.chunks/dialog_regionSelectorRegions-CZ8IX7la.amd.js.map +1 -0
  13. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-DCVIoEeY.es.js → dialogs.vue_vue_type_script_setup_true_lang-DRbTG0vh.es.js} +111 -112
  14. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-DCVIoEeY.es.js.map → dialogs.vue_vue_type_script_setup_true_lang-DRbTG0vh.es.js.map} +1 -1
  15. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-Dq9kWWMg.amd.js +2 -0
  16. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-Bf0wXalT.amd.js.map → dialogs.vue_vue_type_script_setup_true_lang-Dq9kWWMg.amd.js.map} +1 -1
  17. package/.chunks/forms-BseC3Ftz.es.js +2035 -0
  18. package/.chunks/{forms-BhbgRJ5I.es.js.map → forms-BseC3Ftz.es.js.map} +1 -1
  19. package/.chunks/forms-CUSCBQu3.amd.js +3 -0
  20. package/.chunks/{forms-CNcrvkYD.amd.js.map → forms-CUSCBQu3.amd.js.map} +1 -1
  21. package/.chunks/index-DLUtoTUg.amd.js +2 -0
  22. package/.chunks/index-DLUtoTUg.amd.js.map +1 -0
  23. package/.chunks/index-DkQWJkMc.es.js +54 -0
  24. package/.chunks/index-DkQWJkMc.es.js.map +1 -0
  25. package/.chunks/notice-Cl3ZgiHm.es.js +191 -0
  26. package/.chunks/{notice-CpPhDTUb.es.js.map → notice-Cl3ZgiHm.es.js.map} +1 -1
  27. package/.chunks/notice-DwjipV21.amd.js +4 -0
  28. package/.chunks/{notice-BpLsm6Zh.amd.js.map → notice-DwjipV21.amd.js.map} +1 -1
  29. package/.chunks/page.vue_vue_type_script_setup_true_lang-CjIiZU-D.amd.js +2 -0
  30. package/.chunks/{page.vue_vue_type_script_setup_true_lang-B-1LEQAz.amd.js.map → page.vue_vue_type_script_setup_true_lang-CjIiZU-D.amd.js.map} +1 -1
  31. package/.chunks/page.vue_vue_type_script_setup_true_lang-CpRJQFD1.es.js +139 -0
  32. package/.chunks/{page.vue_vue_type_script_setup_true_lang-9abPBMpd.es.js.map → page.vue_vue_type_script_setup_true_lang-CpRJQFD1.es.js.map} +1 -1
  33. package/.chunks/policy.vue_vue_type_style_index_0_lang-BBDJEs5Q.es.js +496 -0
  34. package/.chunks/policy.vue_vue_type_style_index_0_lang-BBDJEs5Q.es.js.map +1 -0
  35. package/.chunks/policy.vue_vue_type_style_index_0_lang-DJOaMdBm.amd.js +2 -0
  36. package/.chunks/policy.vue_vue_type_style_index_0_lang-DJOaMdBm.amd.js.map +1 -0
  37. package/.chunks/popup-DRuyYFGB.amd.js +2 -0
  38. package/.chunks/popup-DRuyYFGB.amd.js.map +1 -0
  39. package/.chunks/popup-Jw_Yyg3U.es.js +470 -0
  40. package/.chunks/popup-Jw_Yyg3U.es.js.map +1 -0
  41. package/.chunks/popupHint.vue_vue_type_style_index_0_lang-DD59yF6H.es.js +209 -0
  42. package/.chunks/popupHint.vue_vue_type_style_index_0_lang-DD59yF6H.es.js.map +1 -0
  43. package/.chunks/popupHint.vue_vue_type_style_index_0_lang-DtiT6NE4.amd.js +2 -0
  44. package/.chunks/popupHint.vue_vue_type_style_index_0_lang-DtiT6NE4.amd.js.map +1 -0
  45. package/.chunks/utils-CzHUG_xz.amd.js +2 -0
  46. package/.chunks/{utils-5uxIj2CI.amd.js.map → utils-CzHUG_xz.amd.js.map} +1 -1
  47. package/.chunks/utils-D9nYQabE.amd.js +2 -0
  48. package/.chunks/{utils-Bg_su8b-.amd.js.map → utils-D9nYQabE.amd.js.map} +1 -1
  49. package/.chunks/{utils-D58EUoHa.es.js → utils-Q69SXlnV.es.js} +192 -208
  50. package/.chunks/{utils-D58EUoHa.es.js.map → utils-Q69SXlnV.es.js.map} +1 -1
  51. package/.chunks/{utils-UBgfsQ8v.es.js → utils-YrUExsH7.es.js} +23 -24
  52. package/.chunks/{utils-UBgfsQ8v.es.js.map → utils-YrUExsH7.es.js.map} +1 -1
  53. package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-CSD2uMSW.es.js → widgetInput.vue_vue_type_script_setup_true_lang-CDkeKVqY.es.js} +2 -2
  54. package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-CSD2uMSW.es.js.map → widgetInput.vue_vue_type_script_setup_true_lang-CDkeKVqY.es.js.map} +1 -1
  55. package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-D6SVtg2Q.amd.js → widgetInput.vue_vue_type_script_setup_true_lang-CkE912ll.amd.js} +2 -2
  56. package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-D6SVtg2Q.amd.js.map → widgetInput.vue_vue_type_script_setup_true_lang-CkE912ll.amd.js.map} +1 -1
  57. package/api/index.amd.js +1 -1
  58. package/api/index.amd.js.map +1 -1
  59. package/api/index.js +138 -133
  60. package/api/index.js.map +1 -1
  61. package/assets/dialog_regionSelectorRegions.css +1 -0
  62. package/assets/forms.css +1 -1
  63. package/assets/policy.css +1 -0
  64. package/assets/popupHint.css +1 -1
  65. package/assets/project.css +1 -1
  66. package/charts/charts.amd.js +1 -1
  67. package/charts/charts.amd.js.map +1 -1
  68. package/charts/charts.js +80 -80
  69. package/charts/charts.js.map +1 -1
  70. package/core/app.amd.js +1 -1
  71. package/core/app.amd.js.map +1 -1
  72. package/core/app.js +93 -96
  73. package/core/app.js.map +1 -1
  74. package/dialog/dialog.amd.js +1 -1
  75. package/dialog/dialog.amd.js.map +1 -1
  76. package/dialog/dialog.js +13 -13
  77. package/dialog/dialog.js.map +1 -1
  78. package/extra/extra.amd.js +1 -1
  79. package/extra/extra.amd.js.map +1 -1
  80. package/extra/extra.js +20 -23
  81. package/extra/extra.js.map +1 -1
  82. package/forms/forms.amd.js +1 -1
  83. package/forms/forms.js +5 -5
  84. package/formsExt/formsExt.amd.js +1 -1
  85. package/formsExt/formsExt.amd.js.map +1 -1
  86. package/formsExt/formsExt.js +185 -534
  87. package/formsExt/formsExt.js.map +1 -1
  88. package/layout/layout.amd.js +1 -1
  89. package/layout/layout.js +6 -6
  90. package/package.json +1 -1
  91. package/popup/popup.amd.js +1 -1
  92. package/popup/popup.amd.js.map +1 -1
  93. package/popup/popup.js +43 -46
  94. package/popup/popup.js.map +1 -1
  95. package/popup/worker.amd.js +1 -1
  96. package/popup/worker.amd.js.map +1 -1
  97. package/popup/worker.js +11 -9
  98. package/popup/worker.js.map +1 -1
  99. package/project/project.amd.js +1 -1
  100. package/project/project.amd.js.map +1 -1
  101. package/project/project.js +848 -579
  102. package/project/project.js.map +1 -1
  103. package/src/api/api/client/client.d.ts +5 -0
  104. package/src/api/api/mocker/index.d.ts +3 -3
  105. package/src/api/api/types/client/request.d.ts +6 -0
  106. package/src/api/api/types/ext.d.ts +2 -2
  107. package/src/api/api/types/mocker.d.ts +2 -2
  108. package/src/components/forms/button/types.d.ts +6 -0
  109. package/src/components/formsExt/formsExt.d.ts +1 -0
  110. package/src/components/formsExt/libs/optionGroup/types.d.ts +1 -1
  111. package/src/components/formsExt/selector2/cache.d.ts +12 -0
  112. package/src/components/formsExt/selector2/composables/useAPI.d.ts +2036 -2
  113. package/src/components/formsExt/selector2/composables/useMenu.d.ts +2045 -5
  114. package/src/components/formsExt/selector2/itemMulti.vue.d.ts +3 -3
  115. package/src/components/formsExt/selector2/selector2.vue.d.ts +11 -3
  116. package/src/components/formsExt/selector2/types.d.ts +39 -5
  117. package/src/components/formsExt/selector2/utils.d.ts +17 -0
  118. package/src/components/popup/lib/popup.d.ts +1 -2
  119. package/src/components/popup/popup/opener/types.d.ts +6 -2
  120. package/src/components/popup/popup/types.d.ts +3 -2
  121. package/src/components/popup/popup.d.ts +1 -1
  122. package/src/components/project/groupSelector/folders/folders.vue.d.ts +18 -0
  123. package/src/components/project/groupSelector/folders/types.d.ts +63 -0
  124. package/src/components/project/groupSelector/folders/utils.d.ts +63 -0
  125. package/src/components/project/groupSelector/groupSelector.vue.d.ts +33 -0
  126. package/src/components/project/groupSelector/groups/groups.vue.d.ts +126 -0
  127. package/src/components/project/groupSelector/groups/types.d.ts +58 -0
  128. package/src/components/project/groupSelector/groups/utils.d.ts +92 -0
  129. package/src/components/project/groupSelector/stories/mocks/folders.d.ts +4 -0
  130. package/src/components/project/groupSelector/stories/mocks/groups.d.ts +2 -0
  131. package/src/components/project/groupSelector/stories/mocks/index.d.ts +7 -0
  132. package/src/components/project/groupSelector/types.d.ts +133 -0
  133. package/src/components/project/project.d.ts +5 -4
  134. package/src/components/project/{selectorRegion → regionSelector}/utils/utils.d.ts +3 -3
  135. package/src/core/utils/composables/useWatch.d.ts +32 -0
  136. package/tabs/tabs.amd.js +1 -1
  137. package/tabs/tabs.amd.js.map +1 -1
  138. package/tabs/tabs.js +24 -24
  139. package/tabs/tabs.js.map +1 -1
  140. package/tabsView/tabsView.amd.js +1 -1
  141. package/tabsView/tabsView.amd.js.map +1 -1
  142. package/tabsView/tabsView.js +131 -133
  143. package/tabsView/tabsView.js.map +1 -1
  144. package/utils/clipboard.amd.js +1 -1
  145. package/utils/clipboard.js +1 -1
  146. package/utils/date.amd.js +1 -1
  147. package/utils/date.js +1 -1
  148. package/utils/device.amd.js +1 -1
  149. package/utils/device.js +1 -1
  150. package/utils/lodash.amd.js +1 -1
  151. package/utils/lodash.js +1 -1
  152. package/utils/price.amd.js +1 -1
  153. package/utils/price.js +1 -1
  154. package/utils/scroll.amd.js +1 -1
  155. package/utils/scroll.amd.js.map +1 -1
  156. package/utils/scroll.js +14 -14
  157. package/utils/scroll.js.map +1 -1
  158. package/utils/searchers.amd.js +1 -1
  159. package/utils/searchers.js +3 -3
  160. package/utils/string.amd.js +1 -1
  161. package/utils/string.amd.js.map +1 -1
  162. package/utils/string.js +3 -7
  163. package/utils/string.js.map +1 -1
  164. package/.chunks/core-DcLw0dEO.amd.js +0 -2
  165. package/.chunks/core-DcLw0dEO.amd.js.map +0 -1
  166. package/.chunks/core-DpTLGhiK.es.js +0 -197
  167. package/.chunks/core-DpTLGhiK.es.js.map +0 -1
  168. package/.chunks/dialog_selectorRegions-BtAADQHf.es.js +0 -190
  169. package/.chunks/dialog_selectorRegions-BtAADQHf.es.js.map +0 -1
  170. package/.chunks/dialog_selectorRegions-DCrHvHDs.amd.js +0 -2
  171. package/.chunks/dialog_selectorRegions-DCrHvHDs.amd.js.map +0 -1
  172. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-Bf0wXalT.amd.js +0 -2
  173. package/.chunks/forms-BhbgRJ5I.es.js +0 -2045
  174. package/.chunks/forms-CNcrvkYD.amd.js +0 -3
  175. package/.chunks/index-BEI7XZmU.amd.js +0 -2
  176. package/.chunks/index-BEI7XZmU.amd.js.map +0 -1
  177. package/.chunks/index-igPkes8X.es.js +0 -48
  178. package/.chunks/index-igPkes8X.es.js.map +0 -1
  179. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-QvP1d9jN.amd.js +0 -2
  180. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-QvP1d9jN.amd.js.map +0 -1
  181. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-xvzbyqai.es.js +0 -196
  182. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-xvzbyqai.es.js.map +0 -1
  183. package/.chunks/menu.vue_vue_type_style_index_0_lang-C3Rr6ZyL.amd.js +0 -2
  184. package/.chunks/menu.vue_vue_type_style_index_0_lang-C3Rr6ZyL.amd.js.map +0 -1
  185. package/.chunks/menu.vue_vue_type_style_index_0_lang-dOeZ7an1.es.js +0 -112
  186. package/.chunks/menu.vue_vue_type_style_index_0_lang-dOeZ7an1.es.js.map +0 -1
  187. package/.chunks/notice-BpLsm6Zh.amd.js +0 -4
  188. package/.chunks/notice-CpPhDTUb.es.js +0 -194
  189. package/.chunks/opener.vue_vue_type_script_setup_true_lang-DRzrTv7Q.es.js +0 -36
  190. package/.chunks/opener.vue_vue_type_script_setup_true_lang-DRzrTv7Q.es.js.map +0 -1
  191. package/.chunks/opener.vue_vue_type_script_setup_true_lang-gNZhYkDf.amd.js +0 -2
  192. package/.chunks/opener.vue_vue_type_script_setup_true_lang-gNZhYkDf.amd.js.map +0 -1
  193. package/.chunks/page.vue_vue_type_script_setup_true_lang-9abPBMpd.es.js +0 -143
  194. package/.chunks/page.vue_vue_type_script_setup_true_lang-B-1LEQAz.amd.js +0 -2
  195. package/.chunks/popup-BJj9BJP5.es.js +0 -485
  196. package/.chunks/popup-BJj9BJP5.es.js.map +0 -1
  197. package/.chunks/popup-CfXISjhC.amd.js +0 -2
  198. package/.chunks/popup-CfXISjhC.amd.js.map +0 -1
  199. package/.chunks/popupHint.vue_vue_type_style_index_0_lang-Cce9ZdtW.amd.js +0 -2
  200. package/.chunks/popupHint.vue_vue_type_style_index_0_lang-Cce9ZdtW.amd.js.map +0 -1
  201. package/.chunks/utils-5uxIj2CI.amd.js +0 -2
  202. package/.chunks/utils-Bg_su8b-.amd.js +0 -2
  203. package/assets/dialog_selectorRegions.css +0 -1
  204. package/assets/formsExt.css +0 -1
  205. package/assets/listItem.css +0 -1
  206. package/assets/menu.css +0 -1
  207. package/src/components/popup/popup/opener.vue.d.ts +0 -16
  208. /package/src/components/project/{selectorCompetitors/selectorCompetitors.vue.d.ts → competitorSelector/competitorSelector.vue.d.ts} +0 -0
  209. /package/src/components/project/{selectorCompetitors → competitorSelector}/composables.d.ts +0 -0
  210. /package/src/components/project/{selectorCompetitors → competitorSelector}/types.d.ts +0 -0
  211. /package/src/components/project/{selectorRegion → regionSelector}/composables/compare.d.ts +0 -0
  212. /package/src/components/project/{selectorRegion → regionSelector}/composables/selectRegion.d.ts +0 -0
  213. /package/src/components/project/{selectorRegion → regionSelector}/composables/selectSearcher.d.ts +0 -0
  214. /package/src/components/project/{selectorRegion → regionSelector}/composables/selectorRegion.d.ts +0 -0
  215. /package/src/components/project/{selectorRegion/dialog_selectorRegions/dialog_selectorRegions.vue.d.ts → regionSelector/dialog_regionSelectorRegions/dialog_regionSelectorRegions.vue.d.ts} +0 -0
  216. /package/src/components/project/{selectorRegion/dialog_selectorRegions → regionSelector/dialog_regionSelectorRegions}/types.d.ts +0 -0
  217. /package/src/components/project/{selectorRegion/selectorRegion.vue.d.ts → regionSelector/regionSelector.vue.d.ts} +0 -0
  218. /package/src/components/project/{selectorRegion → regionSelector}/types.d.ts +0 -0
  219. /package/src/components/project/{selectorRegion → regionSelector}/utils/consts.d.ts +0 -0
@@ -0,0 +1,2035 @@
1
+ import { reactive as ye, watch as gt, getCurrentInstance as ve, inject as mt, ref as Pe, defineComponent as O, useCssVars as ht, computed as E, createElementBlock as m, openBlock as p, createElementVNode as j, createCommentVNode as T, createBlock as W, resolveDynamicComponent as Xt, normalizeClass as S, withCtx as te, renderSlot as M, createTextVNode as qt, toDisplayString as P, mergeModels as we, useModel as bt, resolveDirective as z, withDirectives as V, vModelCheckbox as yt, mergeProps as oe, withKeys as Yt, vModelText as vt, withModifiers as Qt, onUnmounted as Jt, unref as ge, vModelRadio as Zt, Fragment as ae, renderList as $e, vModelSelect as en } from "vue";
2
+ function tn() {
3
+ return "devicePixelRatio" in window && window.devicePixelRatio > 1;
4
+ }
5
+ function nn() {
6
+ return !!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|IEMobile|Opera Mini/i);
7
+ }
8
+ function rn() {
9
+ return navigator.userAgent.indexOf("Topvisor_App") != -1;
10
+ }
11
+ function an() {
12
+ return navigator.userAgent.indexOf("Mac OS X") !== -1;
13
+ }
14
+ function es() {
15
+ const e = /Chrome|Android/.test(navigator.userAgent);
16
+ let t = /Safari/.test(navigator.userAgent);
17
+ return e && t && (t = !1), t;
18
+ }
19
+ function ts() {
20
+ return an() ? "⌘" : "Ctrl";
21
+ }
22
+ const ns = () => $(document).scrollTop(), rs = () => $(document), as = () => [document], on = () => {
23
+ const e = [
24
+ ["iOS", /(iPhone|iPad)/i],
25
+ ["Android", /(Android)/i],
26
+ ["Windows Phone", /(IEMobile)/i],
27
+ ["Windows 3.11", /Win16/i],
28
+ ["Windows 95", /(Windows 95)|(Win95)|(Windows_95)/i],
29
+ ["Windows 98", /(Windows 98)|(Win98)/i],
30
+ ["Windows 2000", /(Windows NT 5.0)|(Windows 2000)/i],
31
+ ["Windows XP", /(Windows NT 5.1)|(Windows XP)/i],
32
+ ["Windows Server 2003", /(Windows NT 5.2)/i],
33
+ ["Windows Vista", /(Windows NT 6.0)/i],
34
+ ["Windows 7", /(Windows NT 6.1)/i],
35
+ ["Windows 8", /(Windows NT 6.[23])|(Windows 8)/i],
36
+ ["Windows 10", /(Windows NT 10)/i],
37
+ ["Windows NT 4.0", /(Windows NT 4.0)|(WinNT4.0)|(WinNT)|(Windows NT)/i],
38
+ ["Windows ME", /Windows ME/i],
39
+ ["Windows", /Windows/i],
40
+ ["Open BSD", /OpenBSD/i],
41
+ ["Sun OS", /SunOS/i],
42
+ ["Linux", /(Linux)|(X11)/i],
43
+ ["Macintosh", /(Mac_PowerPC)|(Macintosh)|(Mac OS X 10.4)|(Mac OS X 10.5)|(Mac OS X 10.6)/i],
44
+ ["QNX", /QNX/i],
45
+ ["BeOS", /BeOS/i],
46
+ ["OS/2", /OS\/2/i]
47
+ ];
48
+ let t = "";
49
+ for (let n = 0; n < e.length; n++)
50
+ if (e[n][1].test(navigator.userAgent)) {
51
+ t = e[n][0];
52
+ break;
53
+ }
54
+ return t;
55
+ }, is = async () => {
56
+ let e = on();
57
+ if (e === "Windows 10") {
58
+ const t = await navigator?.userAgentData?.getHighEntropyValues(["platformVersion"]);
59
+ t && t.platformVersion >= "13" && (e = "Windows 11");
60
+ }
61
+ return e;
62
+ };
63
+ function x(e) {
64
+ var t = typeof e;
65
+ return e != null && (t == "object" || t == "function");
66
+ }
67
+ var wt = typeof global == "object" && global && global.Object === Object && global, sn = typeof self == "object" && self && self.Object === Object && self, A = wt || sn || Function("return this")(), me = function() {
68
+ return A.Date.now();
69
+ }, ln = /\s/;
70
+ function cn(e) {
71
+ for (var t = e.length; t-- && ln.test(e.charAt(t)); )
72
+ ;
73
+ return t;
74
+ }
75
+ var un = /^\s+/;
76
+ function dn(e) {
77
+ return e && e.slice(0, cn(e) + 1).replace(un, "");
78
+ }
79
+ var K = A.Symbol, $t = Object.prototype, fn = $t.hasOwnProperty, pn = $t.toString, Y = K ? K.toStringTag : void 0;
80
+ function gn(e) {
81
+ var t = fn.call(e, Y), n = e[Y];
82
+ try {
83
+ e[Y] = void 0;
84
+ var r = !0;
85
+ } catch {
86
+ }
87
+ var i = pn.call(e);
88
+ return r && (t ? e[Y] = n : delete e[Y]), i;
89
+ }
90
+ var mn = Object.prototype, hn = mn.toString;
91
+ function bn(e) {
92
+ return hn.call(e);
93
+ }
94
+ var yn = "[object Null]", vn = "[object Undefined]", Fe = K ? K.toStringTag : void 0;
95
+ function R(e) {
96
+ return e == null ? e === void 0 ? vn : yn : Fe && Fe in Object(e) ? gn(e) : bn(e);
97
+ }
98
+ function L(e) {
99
+ return e != null && typeof e == "object";
100
+ }
101
+ var wn = "[object Symbol]";
102
+ function $n(e) {
103
+ return typeof e == "symbol" || L(e) && R(e) == wn;
104
+ }
105
+ var Re = NaN, Tn = /^[-+]0x[0-9a-f]+$/i, Sn = /^0b[01]+$/i, On = /^0o[0-7]+$/i, En = parseInt;
106
+ function Ue(e) {
107
+ if (typeof e == "number")
108
+ return e;
109
+ if ($n(e))
110
+ return Re;
111
+ if (x(e)) {
112
+ var t = typeof e.valueOf == "function" ? e.valueOf() : e;
113
+ e = x(t) ? t + "" : t;
114
+ }
115
+ if (typeof e != "string")
116
+ return e === 0 ? e : +e;
117
+ e = dn(e);
118
+ var n = Sn.test(e);
119
+ return n || On.test(e) ? En(e.slice(2), n ? 2 : 8) : Tn.test(e) ? Re : +e;
120
+ }
121
+ var xn = "Expected a function", jn = Math.max, An = Math.min;
122
+ function Tt(e, t, n) {
123
+ var r, i, a, o, s, l, c = 0, d = !1, u = !1, f = !0;
124
+ if (typeof e != "function")
125
+ throw new TypeError(xn);
126
+ t = Ue(t) || 0, x(n) && (d = !!n.leading, u = "maxWait" in n, a = u ? jn(Ue(n.maxWait) || 0, t) : a, f = "trailing" in n ? !!n.trailing : f);
127
+ function b(v) {
128
+ var B = r, q = i;
129
+ return r = i = void 0, c = v, o = e.apply(q, B), o;
130
+ }
131
+ function w(v) {
132
+ return c = v, s = setTimeout(ne, t), d ? b(v) : o;
133
+ }
134
+ function C(v) {
135
+ var B = v - l, q = v - c, ke = t - B;
136
+ return u ? An(ke, a - q) : ke;
137
+ }
138
+ function ze(v) {
139
+ var B = v - l, q = v - c;
140
+ return l === void 0 || B >= t || B < 0 || u && q >= a;
141
+ }
142
+ function ne() {
143
+ var v = me();
144
+ if (ze(v))
145
+ return Ve(v);
146
+ s = setTimeout(ne, C(v));
147
+ }
148
+ function Ve(v) {
149
+ return s = void 0, f && r ? b(v) : (r = i = void 0, o);
150
+ }
151
+ function Gt() {
152
+ s !== void 0 && clearTimeout(s), c = 0, r = l = i = s = void 0;
153
+ }
154
+ function Kt() {
155
+ return s === void 0 ? o : Ve(me());
156
+ }
157
+ function pe() {
158
+ var v = me(), B = ze(v);
159
+ if (r = arguments, i = this, l = v, B) {
160
+ if (s === void 0)
161
+ return w(l);
162
+ if (u)
163
+ return clearTimeout(s), s = setTimeout(ne, t), b(l);
164
+ }
165
+ return s === void 0 && (s = setTimeout(ne, t)), o;
166
+ }
167
+ return pe.cancel = Gt, pe.flush = Kt, pe;
168
+ }
169
+ function Pn() {
170
+ this.__data__ = [], this.size = 0;
171
+ }
172
+ function le(e, t) {
173
+ return e === t || e !== e && t !== t;
174
+ }
175
+ function ce(e, t) {
176
+ for (var n = e.length; n--; )
177
+ if (le(e[n][0], t))
178
+ return n;
179
+ return -1;
180
+ }
181
+ var Mn = Array.prototype, Cn = Mn.splice;
182
+ function Dn(e) {
183
+ var t = this.__data__, n = ce(t, e);
184
+ if (n < 0)
185
+ return !1;
186
+ var r = t.length - 1;
187
+ return n == r ? t.pop() : Cn.call(t, n, 1), --this.size, !0;
188
+ }
189
+ function In(e) {
190
+ var t = this.__data__, n = ce(t, e);
191
+ return n < 0 ? void 0 : t[n][1];
192
+ }
193
+ function Bn(e) {
194
+ return ce(this.__data__, e) > -1;
195
+ }
196
+ function Wn(e, t) {
197
+ var n = this.__data__, r = ce(n, e);
198
+ return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
199
+ }
200
+ function I(e) {
201
+ var t = -1, n = e == null ? 0 : e.length;
202
+ for (this.clear(); ++t < n; ) {
203
+ var r = e[t];
204
+ this.set(r[0], r[1]);
205
+ }
206
+ }
207
+ I.prototype.clear = Pn;
208
+ I.prototype.delete = Dn;
209
+ I.prototype.get = In;
210
+ I.prototype.has = Bn;
211
+ I.prototype.set = Wn;
212
+ function Ln() {
213
+ this.__data__ = new I(), this.size = 0;
214
+ }
215
+ function Nn(e) {
216
+ var t = this.__data__, n = t.delete(e);
217
+ return this.size = t.size, n;
218
+ }
219
+ function zn(e) {
220
+ return this.__data__.get(e);
221
+ }
222
+ function Vn(e) {
223
+ return this.__data__.has(e);
224
+ }
225
+ var kn = "[object AsyncFunction]", Fn = "[object Function]", Rn = "[object GeneratorFunction]", Un = "[object Proxy]";
226
+ function Me(e) {
227
+ if (!x(e))
228
+ return !1;
229
+ var t = R(e);
230
+ return t == Fn || t == Rn || t == kn || t == Un;
231
+ }
232
+ var he = A["__core-js_shared__"], He = (function() {
233
+ var e = /[^.]+$/.exec(he && he.keys && he.keys.IE_PROTO || "");
234
+ return e ? "Symbol(src)_1." + e : "";
235
+ })();
236
+ function Hn(e) {
237
+ return !!He && He in e;
238
+ }
239
+ var _n = Function.prototype, Gn = _n.toString;
240
+ function U(e) {
241
+ if (e != null) {
242
+ try {
243
+ return Gn.call(e);
244
+ } catch {
245
+ }
246
+ try {
247
+ return e + "";
248
+ } catch {
249
+ }
250
+ }
251
+ return "";
252
+ }
253
+ var Kn = /[\\^$.*+?()[\]{}|]/g, Xn = /^\[object .+?Constructor\]$/, qn = Function.prototype, Yn = Object.prototype, Qn = qn.toString, Jn = Yn.hasOwnProperty, Zn = RegExp(
254
+ "^" + Qn.call(Jn).replace(Kn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
255
+ );
256
+ function er(e) {
257
+ if (!x(e) || Hn(e))
258
+ return !1;
259
+ var t = Me(e) ? Zn : Xn;
260
+ return t.test(U(e));
261
+ }
262
+ function tr(e, t) {
263
+ return e?.[t];
264
+ }
265
+ function H(e, t) {
266
+ var n = tr(e, t);
267
+ return er(n) ? n : void 0;
268
+ }
269
+ var J = H(A, "Map"), Z = H(Object, "create");
270
+ function nr() {
271
+ this.__data__ = Z ? Z(null) : {}, this.size = 0;
272
+ }
273
+ function rr(e) {
274
+ var t = this.has(e) && delete this.__data__[e];
275
+ return this.size -= t ? 1 : 0, t;
276
+ }
277
+ var ar = "__lodash_hash_undefined__", ir = Object.prototype, or = ir.hasOwnProperty;
278
+ function sr(e) {
279
+ var t = this.__data__;
280
+ if (Z) {
281
+ var n = t[e];
282
+ return n === ar ? void 0 : n;
283
+ }
284
+ return or.call(t, e) ? t[e] : void 0;
285
+ }
286
+ var lr = Object.prototype, cr = lr.hasOwnProperty;
287
+ function ur(e) {
288
+ var t = this.__data__;
289
+ return Z ? t[e] !== void 0 : cr.call(t, e);
290
+ }
291
+ var dr = "__lodash_hash_undefined__";
292
+ function fr(e, t) {
293
+ var n = this.__data__;
294
+ return this.size += this.has(e) ? 0 : 1, n[e] = Z && t === void 0 ? dr : t, this;
295
+ }
296
+ function k(e) {
297
+ var t = -1, n = e == null ? 0 : e.length;
298
+ for (this.clear(); ++t < n; ) {
299
+ var r = e[t];
300
+ this.set(r[0], r[1]);
301
+ }
302
+ }
303
+ k.prototype.clear = nr;
304
+ k.prototype.delete = rr;
305
+ k.prototype.get = sr;
306
+ k.prototype.has = ur;
307
+ k.prototype.set = fr;
308
+ function pr() {
309
+ this.size = 0, this.__data__ = {
310
+ hash: new k(),
311
+ map: new (J || I)(),
312
+ string: new k()
313
+ };
314
+ }
315
+ function gr(e) {
316
+ var t = typeof e;
317
+ return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
318
+ }
319
+ function ue(e, t) {
320
+ var n = e.__data__;
321
+ return gr(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
322
+ }
323
+ function mr(e) {
324
+ var t = ue(this, e).delete(e);
325
+ return this.size -= t ? 1 : 0, t;
326
+ }
327
+ function hr(e) {
328
+ return ue(this, e).get(e);
329
+ }
330
+ function br(e) {
331
+ return ue(this, e).has(e);
332
+ }
333
+ function yr(e, t) {
334
+ var n = ue(this, e), r = n.size;
335
+ return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
336
+ }
337
+ function N(e) {
338
+ var t = -1, n = e == null ? 0 : e.length;
339
+ for (this.clear(); ++t < n; ) {
340
+ var r = e[t];
341
+ this.set(r[0], r[1]);
342
+ }
343
+ }
344
+ N.prototype.clear = pr;
345
+ N.prototype.delete = mr;
346
+ N.prototype.get = hr;
347
+ N.prototype.has = br;
348
+ N.prototype.set = yr;
349
+ var vr = 200;
350
+ function wr(e, t) {
351
+ var n = this.__data__;
352
+ if (n instanceof I) {
353
+ var r = n.__data__;
354
+ if (!J || r.length < vr - 1)
355
+ return r.push([e, t]), this.size = ++n.size, this;
356
+ n = this.__data__ = new N(r);
357
+ }
358
+ return n.set(e, t), this.size = n.size, this;
359
+ }
360
+ function _(e) {
361
+ var t = this.__data__ = new I(e);
362
+ this.size = t.size;
363
+ }
364
+ _.prototype.clear = Ln;
365
+ _.prototype.delete = Nn;
366
+ _.prototype.get = zn;
367
+ _.prototype.has = Vn;
368
+ _.prototype.set = wr;
369
+ function $r(e, t) {
370
+ for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; )
371
+ ;
372
+ return e;
373
+ }
374
+ var se = (function() {
375
+ try {
376
+ var e = H(Object, "defineProperty");
377
+ return e({}, "", {}), e;
378
+ } catch {
379
+ }
380
+ })();
381
+ function Ce(e, t, n) {
382
+ t == "__proto__" && se ? se(e, t, {
383
+ configurable: !0,
384
+ enumerable: !0,
385
+ value: n,
386
+ writable: !0
387
+ }) : e[t] = n;
388
+ }
389
+ var Tr = Object.prototype, Sr = Tr.hasOwnProperty;
390
+ function St(e, t, n) {
391
+ var r = e[t];
392
+ (!(Sr.call(e, t) && le(r, n)) || n === void 0 && !(t in e)) && Ce(e, t, n);
393
+ }
394
+ function Or(e, t, n, r) {
395
+ var i = !n;
396
+ n || (n = {});
397
+ for (var a = -1, o = t.length; ++a < o; ) {
398
+ var s = t[a], l = void 0;
399
+ l === void 0 && (l = e[s]), i ? Ce(n, s, l) : St(n, s, l);
400
+ }
401
+ return n;
402
+ }
403
+ function Er(e, t) {
404
+ for (var n = -1, r = Array(e); ++n < e; )
405
+ r[n] = t(n);
406
+ return r;
407
+ }
408
+ var xr = "[object Arguments]";
409
+ function _e(e) {
410
+ return L(e) && R(e) == xr;
411
+ }
412
+ var Ot = Object.prototype, jr = Ot.hasOwnProperty, Ar = Ot.propertyIsEnumerable, Te = _e(/* @__PURE__ */ (function() {
413
+ return arguments;
414
+ })()) ? _e : function(e) {
415
+ return L(e) && jr.call(e, "callee") && !Ar.call(e, "callee");
416
+ }, ee = Array.isArray;
417
+ function Pr() {
418
+ return !1;
419
+ }
420
+ var Et = typeof exports == "object" && exports && !exports.nodeType && exports, Ge = Et && typeof module == "object" && module && !module.nodeType && module, Mr = Ge && Ge.exports === Et, Ke = Mr ? A.Buffer : void 0, Cr = Ke ? Ke.isBuffer : void 0, De = Cr || Pr, Dr = 9007199254740991, Ir = /^(?:0|[1-9]\d*)$/;
421
+ function xt(e, t) {
422
+ var n = typeof e;
423
+ return t = t ?? Dr, !!t && (n == "number" || n != "symbol" && Ir.test(e)) && e > -1 && e % 1 == 0 && e < t;
424
+ }
425
+ var Br = 9007199254740991;
426
+ function jt(e) {
427
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Br;
428
+ }
429
+ var Wr = "[object Arguments]", Lr = "[object Array]", Nr = "[object Boolean]", zr = "[object Date]", Vr = "[object Error]", kr = "[object Function]", Fr = "[object Map]", Rr = "[object Number]", Ur = "[object Object]", Hr = "[object RegExp]", _r = "[object Set]", Gr = "[object String]", Kr = "[object WeakMap]", Xr = "[object ArrayBuffer]", qr = "[object DataView]", Yr = "[object Float32Array]", Qr = "[object Float64Array]", Jr = "[object Int8Array]", Zr = "[object Int16Array]", ea = "[object Int32Array]", ta = "[object Uint8Array]", na = "[object Uint8ClampedArray]", ra = "[object Uint16Array]", aa = "[object Uint32Array]", y = {};
430
+ y[Yr] = y[Qr] = y[Jr] = y[Zr] = y[ea] = y[ta] = y[na] = y[ra] = y[aa] = !0;
431
+ y[Wr] = y[Lr] = y[Xr] = y[Nr] = y[qr] = y[zr] = y[Vr] = y[kr] = y[Fr] = y[Rr] = y[Ur] = y[Hr] = y[_r] = y[Gr] = y[Kr] = !1;
432
+ function ia(e) {
433
+ return L(e) && jt(e.length) && !!y[R(e)];
434
+ }
435
+ function Ie(e) {
436
+ return function(t) {
437
+ return e(t);
438
+ };
439
+ }
440
+ var At = typeof exports == "object" && exports && !exports.nodeType && exports, Q = At && typeof module == "object" && module && !module.nodeType && module, oa = Q && Q.exports === At, be = oa && wt.process, X = (function() {
441
+ try {
442
+ var e = Q && Q.require && Q.require("util").types;
443
+ return e || be && be.binding && be.binding("util");
444
+ } catch {
445
+ }
446
+ })(), Xe = X && X.isTypedArray, Pt = Xe ? Ie(Xe) : ia, sa = Object.prototype, la = sa.hasOwnProperty;
447
+ function Mt(e, t) {
448
+ var n = ee(e), r = !n && Te(e), i = !n && !r && De(e), a = !n && !r && !i && Pt(e), o = n || r || i || a, s = o ? Er(e.length, String) : [], l = s.length;
449
+ for (var c in e)
450
+ (t || la.call(e, c)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
451
+ (c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
452
+ i && (c == "offset" || c == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
453
+ a && (c == "buffer" || c == "byteLength" || c == "byteOffset") || // Skip index properties.
454
+ xt(c, l))) && s.push(c);
455
+ return s;
456
+ }
457
+ var ca = Object.prototype;
458
+ function Be(e) {
459
+ var t = e && e.constructor, n = typeof t == "function" && t.prototype || ca;
460
+ return e === n;
461
+ }
462
+ function Ct(e, t) {
463
+ return function(n) {
464
+ return e(t(n));
465
+ };
466
+ }
467
+ var ua = Ct(Object.keys, Object), da = Object.prototype, fa = da.hasOwnProperty;
468
+ function pa(e) {
469
+ if (!Be(e))
470
+ return ua(e);
471
+ var t = [];
472
+ for (var n in Object(e))
473
+ fa.call(e, n) && n != "constructor" && t.push(n);
474
+ return t;
475
+ }
476
+ function de(e) {
477
+ return e != null && jt(e.length) && !Me(e);
478
+ }
479
+ function ga(e) {
480
+ return de(e) ? Mt(e) : pa(e);
481
+ }
482
+ function ma(e) {
483
+ var t = [];
484
+ if (e != null)
485
+ for (var n in Object(e))
486
+ t.push(n);
487
+ return t;
488
+ }
489
+ var ha = Object.prototype, ba = ha.hasOwnProperty;
490
+ function ya(e) {
491
+ if (!x(e))
492
+ return ma(e);
493
+ var t = Be(e), n = [];
494
+ for (var r in e)
495
+ r == "constructor" && (t || !ba.call(e, r)) || n.push(r);
496
+ return n;
497
+ }
498
+ function Dt(e) {
499
+ return de(e) ? Mt(e, !0) : ya(e);
500
+ }
501
+ var It = typeof exports == "object" && exports && !exports.nodeType && exports, qe = It && typeof module == "object" && module && !module.nodeType && module, va = qe && qe.exports === It, Ye = va ? A.Buffer : void 0, Qe = Ye ? Ye.allocUnsafe : void 0;
502
+ function Bt(e, t) {
503
+ if (t)
504
+ return e.slice();
505
+ var n = e.length, r = Qe ? Qe(n) : new e.constructor(n);
506
+ return e.copy(r), r;
507
+ }
508
+ function wa(e, t) {
509
+ var n = -1, r = e.length;
510
+ for (t || (t = Array(r)); ++n < r; )
511
+ t[n] = e[n];
512
+ return t;
513
+ }
514
+ function $a(e, t) {
515
+ for (var n = -1, r = e == null ? 0 : e.length, i = 0, a = []; ++n < r; ) {
516
+ var o = e[n];
517
+ t(o, n, e) && (a[i++] = o);
518
+ }
519
+ return a;
520
+ }
521
+ function Ta() {
522
+ return [];
523
+ }
524
+ var Sa = Object.prototype, Oa = Sa.propertyIsEnumerable, Je = Object.getOwnPropertySymbols, Ea = Je ? function(e) {
525
+ return e == null ? [] : (e = Object(e), $a(Je(e), function(t) {
526
+ return Oa.call(e, t);
527
+ }));
528
+ } : Ta;
529
+ function xa(e, t) {
530
+ for (var n = -1, r = t.length, i = e.length; ++n < r; )
531
+ e[i + n] = t[n];
532
+ return e;
533
+ }
534
+ var Wt = Ct(Object.getPrototypeOf, Object);
535
+ function ja(e, t, n) {
536
+ var r = t(e);
537
+ return ee(e) ? r : xa(r, n(e));
538
+ }
539
+ function Aa(e) {
540
+ return ja(e, ga, Ea);
541
+ }
542
+ var Se = H(A, "DataView"), Oe = H(A, "Promise"), Ee = H(A, "Set"), xe = H(A, "WeakMap"), Ze = "[object Map]", Pa = "[object Object]", et = "[object Promise]", tt = "[object Set]", nt = "[object WeakMap]", rt = "[object DataView]", Ma = U(Se), Ca = U(J), Da = U(Oe), Ia = U(Ee), Ba = U(xe), D = R;
543
+ (Se && D(new Se(new ArrayBuffer(1))) != rt || J && D(new J()) != Ze || Oe && D(Oe.resolve()) != et || Ee && D(new Ee()) != tt || xe && D(new xe()) != nt) && (D = function(e) {
544
+ var t = R(e), n = t == Pa ? e.constructor : void 0, r = n ? U(n) : "";
545
+ if (r)
546
+ switch (r) {
547
+ case Ma:
548
+ return rt;
549
+ case Ca:
550
+ return Ze;
551
+ case Da:
552
+ return et;
553
+ case Ia:
554
+ return tt;
555
+ case Ba:
556
+ return nt;
557
+ }
558
+ return t;
559
+ });
560
+ var Wa = Object.prototype, La = Wa.hasOwnProperty;
561
+ function Na(e) {
562
+ var t = e.length, n = new e.constructor(t);
563
+ return t && typeof e[0] == "string" && La.call(e, "index") && (n.index = e.index, n.input = e.input), n;
564
+ }
565
+ var at = A.Uint8Array;
566
+ function We(e) {
567
+ var t = new e.constructor(e.byteLength);
568
+ return new at(t).set(new at(e)), t;
569
+ }
570
+ function za(e, t) {
571
+ var n = We(e.buffer);
572
+ return new e.constructor(n, e.byteOffset, e.byteLength);
573
+ }
574
+ var Va = /\w*$/;
575
+ function ka(e) {
576
+ var t = new e.constructor(e.source, Va.exec(e));
577
+ return t.lastIndex = e.lastIndex, t;
578
+ }
579
+ var it = K ? K.prototype : void 0, ot = it ? it.valueOf : void 0;
580
+ function Fa(e) {
581
+ return ot ? Object(ot.call(e)) : {};
582
+ }
583
+ function Lt(e, t) {
584
+ var n = t ? We(e.buffer) : e.buffer;
585
+ return new e.constructor(n, e.byteOffset, e.length);
586
+ }
587
+ var Ra = "[object Boolean]", Ua = "[object Date]", Ha = "[object Map]", _a = "[object Number]", Ga = "[object RegExp]", Ka = "[object Set]", Xa = "[object String]", qa = "[object Symbol]", Ya = "[object ArrayBuffer]", Qa = "[object DataView]", Ja = "[object Float32Array]", Za = "[object Float64Array]", ei = "[object Int8Array]", ti = "[object Int16Array]", ni = "[object Int32Array]", ri = "[object Uint8Array]", ai = "[object Uint8ClampedArray]", ii = "[object Uint16Array]", oi = "[object Uint32Array]";
588
+ function si(e, t, n) {
589
+ var r = e.constructor;
590
+ switch (t) {
591
+ case Ya:
592
+ return We(e);
593
+ case Ra:
594
+ case Ua:
595
+ return new r(+e);
596
+ case Qa:
597
+ return za(e);
598
+ case Ja:
599
+ case Za:
600
+ case ei:
601
+ case ti:
602
+ case ni:
603
+ case ri:
604
+ case ai:
605
+ case ii:
606
+ case oi:
607
+ return Lt(e, n);
608
+ case Ha:
609
+ return new r();
610
+ case _a:
611
+ case Xa:
612
+ return new r(e);
613
+ case Ga:
614
+ return ka(e);
615
+ case Ka:
616
+ return new r();
617
+ case qa:
618
+ return Fa(e);
619
+ }
620
+ }
621
+ var st = Object.create, li = /* @__PURE__ */ (function() {
622
+ function e() {
623
+ }
624
+ return function(t) {
625
+ if (!x(t))
626
+ return {};
627
+ if (st)
628
+ return st(t);
629
+ e.prototype = t;
630
+ var n = new e();
631
+ return e.prototype = void 0, n;
632
+ };
633
+ })();
634
+ function Nt(e) {
635
+ return typeof e.constructor == "function" && !Be(e) ? li(Wt(e)) : {};
636
+ }
637
+ var ci = "[object Map]";
638
+ function ui(e) {
639
+ return L(e) && D(e) == ci;
640
+ }
641
+ var lt = X && X.isMap, di = lt ? Ie(lt) : ui, fi = "[object Set]";
642
+ function pi(e) {
643
+ return L(e) && D(e) == fi;
644
+ }
645
+ var ct = X && X.isSet, gi = ct ? Ie(ct) : pi, mi = 1, zt = "[object Arguments]", hi = "[object Array]", bi = "[object Boolean]", yi = "[object Date]", vi = "[object Error]", Vt = "[object Function]", wi = "[object GeneratorFunction]", $i = "[object Map]", Ti = "[object Number]", kt = "[object Object]", Si = "[object RegExp]", Oi = "[object Set]", Ei = "[object String]", xi = "[object Symbol]", ji = "[object WeakMap]", Ai = "[object ArrayBuffer]", Pi = "[object DataView]", Mi = "[object Float32Array]", Ci = "[object Float64Array]", Di = "[object Int8Array]", Ii = "[object Int16Array]", Bi = "[object Int32Array]", Wi = "[object Uint8Array]", Li = "[object Uint8ClampedArray]", Ni = "[object Uint16Array]", zi = "[object Uint32Array]", h = {};
646
+ h[zt] = h[hi] = h[Ai] = h[Pi] = h[bi] = h[yi] = h[Mi] = h[Ci] = h[Di] = h[Ii] = h[Bi] = h[$i] = h[Ti] = h[kt] = h[Si] = h[Oi] = h[Ei] = h[xi] = h[Wi] = h[Li] = h[Ni] = h[zi] = !0;
647
+ h[vi] = h[Vt] = h[ji] = !1;
648
+ function ie(e, t, n, r, i, a) {
649
+ var o, s = t & mi;
650
+ if (o !== void 0)
651
+ return o;
652
+ if (!x(e))
653
+ return e;
654
+ var l = ee(e);
655
+ if (l)
656
+ o = Na(e);
657
+ else {
658
+ var c = D(e), d = c == Vt || c == wi;
659
+ if (De(e))
660
+ return Bt(e, s);
661
+ if (c == kt || c == zt || d && !i)
662
+ o = d ? {} : Nt(e);
663
+ else {
664
+ if (!h[c])
665
+ return i ? e : {};
666
+ o = si(e, c, s);
667
+ }
668
+ }
669
+ a || (a = new _());
670
+ var u = a.get(e);
671
+ if (u)
672
+ return u;
673
+ a.set(e, o), gi(e) ? e.forEach(function(w) {
674
+ o.add(ie(w, t, n, w, e, a));
675
+ }) : di(e) && e.forEach(function(w, C) {
676
+ o.set(C, ie(w, t, n, C, e, a));
677
+ });
678
+ var f = Aa, b = l ? void 0 : f(e);
679
+ return $r(b || e, function(w, C) {
680
+ b && (C = w, w = e[C]), St(o, C, ie(w, t, n, C, e, a));
681
+ }), o;
682
+ }
683
+ var Vi = 1, ki = 4;
684
+ function os(e) {
685
+ return ie(e, Vi | ki);
686
+ }
687
+ var Fi = "Expected a function";
688
+ function Ft(e, t) {
689
+ if (typeof e != "function" || t != null && typeof t != "function")
690
+ throw new TypeError(Fi);
691
+ var n = function() {
692
+ var r = arguments, i = t ? t.apply(this, r) : r[0], a = n.cache;
693
+ if (a.has(i))
694
+ return a.get(i);
695
+ var o = e.apply(this, r);
696
+ return n.cache = a.set(i, o) || a, o;
697
+ };
698
+ return n.cache = new (Ft.Cache || N)(), n;
699
+ }
700
+ Ft.Cache = N;
701
+ var Ri = "Expected a function";
702
+ function ss(e, t, n) {
703
+ var r = !0, i = !0;
704
+ if (typeof e != "function")
705
+ throw new TypeError(Ri);
706
+ return x(n) && (r = "leading" in n ? !!n.leading : r, i = "trailing" in n ? !!n.trailing : i), Tt(e, t, {
707
+ leading: r,
708
+ maxWait: t,
709
+ trailing: i
710
+ });
711
+ }
712
+ function je(e, t, n) {
713
+ (n !== void 0 && !le(e[t], n) || n === void 0 && !(t in e)) && Ce(e, t, n);
714
+ }
715
+ function Ui(e) {
716
+ return function(t, n, r) {
717
+ for (var i = -1, a = Object(t), o = r(t), s = o.length; s--; ) {
718
+ var l = o[++i];
719
+ if (n(a[l], l, a) === !1)
720
+ break;
721
+ }
722
+ return t;
723
+ };
724
+ }
725
+ var Hi = Ui();
726
+ function _i(e) {
727
+ return L(e) && de(e);
728
+ }
729
+ var Gi = "[object Object]", Ki = Function.prototype, Xi = Object.prototype, Rt = Ki.toString, qi = Xi.hasOwnProperty, Yi = Rt.call(Object);
730
+ function Qi(e) {
731
+ if (!L(e) || R(e) != Gi)
732
+ return !1;
733
+ var t = Wt(e);
734
+ if (t === null)
735
+ return !0;
736
+ var n = qi.call(t, "constructor") && t.constructor;
737
+ return typeof n == "function" && n instanceof n && Rt.call(n) == Yi;
738
+ }
739
+ function Ae(e, t) {
740
+ if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__")
741
+ return e[t];
742
+ }
743
+ function Ji(e) {
744
+ return Or(e, Dt(e));
745
+ }
746
+ function Zi(e, t, n, r, i, a, o) {
747
+ var s = Ae(e, n), l = Ae(t, n), c = o.get(l);
748
+ if (c) {
749
+ je(e, n, c);
750
+ return;
751
+ }
752
+ var d = a ? a(s, l, n + "", e, t, o) : void 0, u = d === void 0;
753
+ if (u) {
754
+ var f = ee(l), b = !f && De(l), w = !f && !b && Pt(l);
755
+ d = l, f || b || w ? ee(s) ? d = s : _i(s) ? d = wa(s) : b ? (u = !1, d = Bt(l, !0)) : w ? (u = !1, d = Lt(l, !0)) : d = [] : Qi(l) || Te(l) ? (d = s, Te(s) ? d = Ji(s) : (!x(s) || Me(s)) && (d = Nt(l))) : u = !1;
756
+ }
757
+ u && (o.set(l, d), i(d, l, r, a, o), o.delete(l)), je(e, n, d);
758
+ }
759
+ function Ut(e, t, n, r, i) {
760
+ e !== t && Hi(t, function(a, o) {
761
+ if (i || (i = new _()), x(a))
762
+ Zi(e, t, o, n, Ut, r, i);
763
+ else {
764
+ var s = r ? r(Ae(e, o), a, o + "", e, t, i) : void 0;
765
+ s === void 0 && (s = a), je(e, o, s);
766
+ }
767
+ }, Dt);
768
+ }
769
+ function Ht(e) {
770
+ return e;
771
+ }
772
+ function eo(e, t, n) {
773
+ switch (n.length) {
774
+ case 0:
775
+ return e.call(t);
776
+ case 1:
777
+ return e.call(t, n[0]);
778
+ case 2:
779
+ return e.call(t, n[0], n[1]);
780
+ case 3:
781
+ return e.call(t, n[0], n[1], n[2]);
782
+ }
783
+ return e.apply(t, n);
784
+ }
785
+ var ut = Math.max;
786
+ function to(e, t, n) {
787
+ return t = ut(t === void 0 ? e.length - 1 : t, 0), function() {
788
+ for (var r = arguments, i = -1, a = ut(r.length - t, 0), o = Array(a); ++i < a; )
789
+ o[i] = r[t + i];
790
+ i = -1;
791
+ for (var s = Array(t + 1); ++i < t; )
792
+ s[i] = r[i];
793
+ return s[t] = n(o), eo(e, this, s);
794
+ };
795
+ }
796
+ function no(e) {
797
+ return function() {
798
+ return e;
799
+ };
800
+ }
801
+ var ro = se ? function(e, t) {
802
+ return se(e, "toString", {
803
+ configurable: !0,
804
+ enumerable: !1,
805
+ value: no(t),
806
+ writable: !0
807
+ });
808
+ } : Ht, ao = 800, io = 16, oo = Date.now;
809
+ function so(e) {
810
+ var t = 0, n = 0;
811
+ return function() {
812
+ var r = oo(), i = io - (r - n);
813
+ if (n = r, i > 0) {
814
+ if (++t >= ao)
815
+ return arguments[0];
816
+ } else
817
+ t = 0;
818
+ return e.apply(void 0, arguments);
819
+ };
820
+ }
821
+ var lo = so(ro);
822
+ function co(e, t) {
823
+ return lo(to(e, t, Ht), e + "");
824
+ }
825
+ function uo(e, t, n) {
826
+ if (!x(n))
827
+ return !1;
828
+ var r = typeof t;
829
+ return (r == "number" ? de(n) && xt(t, n.length) : r == "string" && t in n) ? le(n[t], e) : !1;
830
+ }
831
+ function fo(e) {
832
+ return co(function(t, n) {
833
+ var r = -1, i = n.length, a = i > 1 ? n[i - 1] : void 0, o = i > 2 ? n[2] : void 0;
834
+ for (a = e.length > 3 && typeof a == "function" ? (i--, a) : void 0, o && uo(n[0], n[1], o) && (a = i < 3 ? void 0 : a, i = 1), t = Object(t); ++r < i; ) {
835
+ var s = n[r];
836
+ s && e(t, s, r, a);
837
+ }
838
+ return t;
839
+ });
840
+ }
841
+ var ls = fo(function(e, t, n) {
842
+ Ut(e, t, n);
843
+ });
844
+ const po = 100, Le = /* @__PURE__ */ new Map(), re = {
845
+ width: window.innerWidth,
846
+ height: window.innerHeight
847
+ }, go = (e) => {
848
+ Le.set(e, e);
849
+ }, ho = (e) => {
850
+ Le.delete(e);
851
+ }, bo = Tt((e) => {
852
+ const t = e;
853
+ t.topEvent = {
854
+ widthDiff: re.width - window.innerWidth,
855
+ hightDiff: re.height - window.innerHeight
856
+ }, re.width = window.innerWidth, re.height = window.innerHeight, Le.forEach((n) => n(t));
857
+ }, po);
858
+ window.addEventListener("resize", bo);
859
+ const yo = {
860
+ addOnReize: go,
861
+ removeOnResize: ho
862
+ }, G = {
863
+ /**
864
+ * Имя темы оформления
865
+ *
866
+ * В данный момент не используется для загрузки css
867
+ *
868
+ * @todo Реализовать загрузки и замену css темы на стороне UI
869
+ *
870
+ * @see https://ui.topvisor.com/?path=/docs/core-theme--docs
871
+ */
872
+ themeName: "light",
873
+ /**
874
+ * CSS-классы модификаторы для документа страницы
875
+ *
876
+ * Могут использоваться компонентами для включения необходимых режимов отображения страницы
877
+ *
878
+ * Разные компоненты могут добавлять один и тот же класс, чтобы не было конфликтов каждый компонент управляет только своим классом:
879
+ * - Ключ - уникальное имя компонента, например в setup: `const uid = Math.random();`
880
+ * - Значение - класс модификатора
881
+ */
882
+ documentClassModificators: /* @__PURE__ */ new Map(),
883
+ /**
884
+ * Базовая ширина страницы для отображения ПК / Мобильной версии сайта
885
+ *
886
+ * @see Core state isMobile
887
+ */
888
+ widthForMobile: 900,
889
+ /**
890
+ * Формат даты, который будет использоваться по умолчанию для вывода даты, как правило, зависит от текущего пользователя
891
+ */
892
+ dateFormat: "Y-m-d",
893
+ /**
894
+ * Валюта, которая будет использоваться по умолчанию, как правило, зависит от текущего пользователя
895
+ */
896
+ currency: "USD",
897
+ /**
898
+ * Смещение timezone относительно UTC в минутах
899
+ * Для Москвы: -180
900
+ */
901
+ timezoneOffset: (/* @__PURE__ */ new Date()).getTimezoneOffset()
902
+ }, vo = {
903
+ /**
904
+ * CSS-классы модификаторы для документа страницы
905
+ */
906
+ documentClassModificators: G.documentClassModificators,
907
+ dateFormat: G.dateFormat,
908
+ currency: G.currency,
909
+ timezoneOffset: G.timezoneOffset,
910
+ /**
911
+ * Device by size
912
+ *
913
+ * @see Core widthForMobile
914
+ */
915
+ isMobile: !1,
916
+ /**
917
+ * Device by user agent
918
+ */
919
+ isMobileUA: !1,
920
+ /**
921
+ * true, если плотность пикселей экрана больше 1
922
+ */
923
+ isRetina: !1,
924
+ /**
925
+ * true, елси это приложение
926
+ */
927
+ isApp: !1,
928
+ /**
929
+ * true при горизонтальном расположении устройства
930
+ */
931
+ isLandscape: !0,
932
+ /**
933
+ * true при вертикальном расположении устройства
934
+ */
935
+ isPortrait: !1,
936
+ /**
937
+ * Максимальная сторона страницы
938
+ */
939
+ size: 0,
940
+ /**
941
+ * true, если страница скрыта
942
+ *
943
+ * Не меняйте это значение вручную
944
+ */
945
+ isHidden: !1
946
+ };
947
+ class wo {
948
+ /**
949
+ * Загрузить в память полный функционал TopNotice
950
+ */
951
+ static async TopNotice() {
952
+ await import("./notice-Cl3ZgiHm.es.js");
953
+ }
954
+ /**
955
+ * Загрузить в память полный функционал TopPopup
956
+ */
957
+ static async TopPopup() {
958
+ await import("./popup-Jw_Yyg3U.es.js");
959
+ }
960
+ /**
961
+ * Загрузить в память полный функционал TopDialog
962
+ */
963
+ static async TopDialog() {
964
+ const { TopDialogWorker: t } = await import("../core/app.js");
965
+ await t.getDialogsUtils();
966
+ }
967
+ }
968
+ class g {
969
+ static state = ye({ ...vo });
970
+ static preloaders = wo;
971
+ static widthForMobile = G.widthForMobile;
972
+ static themeName = G.themeName;
973
+ static matchMediaIsMobile;
974
+ static $ = $;
975
+ static Events = yo;
976
+ /**
977
+ * Различные флаги, необходимые для работы UI
978
+ */
979
+ static flags = ye({ needLoadNotice: !1 });
980
+ static _setState() {
981
+ this.$ = $, g.matchMediaIsMobile = window.matchMedia(`(max-width: ${g.widthForMobile}px)`), g.state.isMobileUA = nn(), g.state.isRetina = tn(), g.state.isApp = rn(), g.useDocumentClassModificators(), g.useIsHidden(), g.setStateByWindowSize(), g.Events.addOnReize(g.onResize), g.onResize(), g.saveToCookie(), g.useCtrlClasses();
982
+ }
983
+ static useDocumentClassModificators() {
984
+ gt(() => [...g.state.documentClassModificators], (t, n) => {
985
+ let r = /* @__PURE__ */ new Set();
986
+ n?.forEach(([i, a]) => r.add(a)), t.forEach(([i, a]) => r.delete(a)), r.forEach((i) => document.documentElement.classList.remove(i)), t.forEach(([i, a]) => document.documentElement.classList.add(a));
987
+ }, { immediate: !0 });
988
+ }
989
+ static useIsHidden() {
990
+ document.addEventListener("visibilitychange", () => {
991
+ g.state.isHidden = document.hidden;
992
+ }), g.state.isHidden = document.hidden;
993
+ }
994
+ static setStateByWindowSize() {
995
+ g.state.isMobile = !!g.matchMediaIsMobile?.matches, g.state.isLandscape = window.innerWidth > window.innerHeight, g.state.isPortrait = !g.state.isLandscape, g.state.size = window.innerWidth > window.innerHeight ? window.innerWidth : window.innerHeight, g.saveToCookie();
996
+ }
997
+ static onResize() {
998
+ g.setStateByWindowSize();
999
+ }
1000
+ /**
1001
+ * Сохранить информацию об устройстве в cookie
1002
+ */
1003
+ static saveToCookie() {
1004
+ const t = [
1005
+ 1,
1006
+ window.innerWidth,
1007
+ window.innerHeight,
1008
+ window.devicePixelRatio,
1009
+ Number(g.state.isMobile),
1010
+ Number(g.state.isRetina)
1011
+ ];
1012
+ document.cookie = "device=" + t.join(",") + "; path=/;";
1013
+ }
1014
+ /**
1015
+ * Добавить установку класса при нажатии ctrl (cmd) / alt
1016
+ */
1017
+ static useCtrlClasses() {
1018
+ const t = document.body.classList;
1019
+ document.addEventListener("keydown", (n) => {
1020
+ (n.ctrlKey || n.metaKey) && t.add("top-body-press_ctrl"), n.altKey && t.add("top-body-press_alt");
1021
+ }), document.addEventListener("keyup", () => t.remove("top-body-press_ctrl", "top-body-press_alt")), document.addEventListener("keypress", () => t.remove("top-body-press_ctrl", "top-body-press_alt")), window.addEventListener("blur", () => t.remove("top-body-press_ctrl", "top-body-press_alt"));
1022
+ }
1023
+ /**
1024
+ * Вывести на экране сообщение в стилизации под push уведомление
1025
+ *
1026
+ * Для удобства работы со словарем, принимает один парамтер `text` и первую строку из него использует как `title`.
1027
+ * Данное поведение можно изменить, передав в параметрах `options.title`
1028
+ *
1029
+ * Для вывода используется компонент TopNotice, требует его подклчючения
1030
+ *
1031
+ * @docs https://ui.topvisor.com/?path=/docs/components-core-notice--docs
1032
+ */
1033
+ static notice = async (t, n, r) => (g.flags.needLoadNotice = !0, (await import("./notice-Cl3ZgiHm.es.js")).show(t, n, r));
1034
+ /**
1035
+ * Вставить css стили на страницу по ссылке с автоматическим добавлением правил media
1036
+ *
1037
+ * Правила media:
1038
+ * - Файлы *.m.css будут грузиться, только на экранах с шириной менее, чем Core.widthForMobile
1039
+ * - Файлы *.pc.css будут грузиться, только на экранах с шириной более, чем Core.widthForMobile
1040
+ *
1041
+ * Настройкой Core.widthForMobile можно управлять через plugin: @topvisor/ui/plugin/core
1042
+ *
1043
+ * @param fileNames - список ссылок на css файлы
1044
+ * @param useSync - использовать синхронную загрузку css, только для css с того же домена. В синхронном режиме стили предзагружаются независимо от
1045
+ * media
1046
+ */
1047
+ static insertCSSLinkToPage = (t, n = !1) => {
1048
+ const r = /* @__PURE__ */ new Map();
1049
+ r.set("::", []), t.forEach((a) => {
1050
+ let o = !1, s = !1;
1051
+ a.match(/\.m\./) && (o = !0), a.match(/\.pc\./) && (s = !0);
1052
+ const l = `${o}:${s}`;
1053
+ r.has(l) || r.set(`${o}:${s}`, []), r.get(`${o}:${s}`).push(a);
1054
+ });
1055
+ const i = [];
1056
+ return r.forEach((a, o) => {
1057
+ if (!a.length)
1058
+ return;
1059
+ const [s, l] = o.split(":").map((u) => u === "true");
1060
+ let c = "all";
1061
+ s && (c = "(max-width: " + g.widthForMobile + "px)"), l && (c = "(min-width: " + g.widthForMobile + "px)"), g._insertToPage(a, c, n).forEach((u) => i.push(u));
1062
+ }), Promise.all(i);
1063
+ };
1064
+ static _insertToPage = (t, n, r) => {
1065
+ const i = [];
1066
+ return t.forEach((a) => {
1067
+ if (r) {
1068
+ const u = new XMLHttpRequest();
1069
+ u.open("GET", a, !1), u.send();
1070
+ }
1071
+ const o = "topCSSLink-" + a.replace(/\W/g, "-");
1072
+ if (window.hasOwnProperty(o)) return;
1073
+ let s, l;
1074
+ const c = new Promise((u, f) => {
1075
+ s = u, l = f;
1076
+ });
1077
+ i.push(c);
1078
+ const d = document.createElement("link");
1079
+ d.id = o, d.rel = "stylesheet", d.media = n, d.href = a, d.onload = () => s(), d.onerror = () => l(), document.head.append(d);
1080
+ }), i;
1081
+ };
1082
+ /**
1083
+ * Вставить css стили на страницу с автоматическим добавлением правил media
1084
+ *
1085
+ * Загрузка с Vite:
1086
+ *
1087
+ * ```js
1088
+ * import style from '/style.css?inline';
1089
+ *
1090
+ * insertToPageAsInine(style);
1091
+ * ```
1092
+ *
1093
+ * Загрузка с fetch:
1094
+ *
1095
+ * ```js
1096
+ * const style = await fetch('./style.css');
1097
+ *
1098
+ * insertToPageAsInine(style);
1099
+ * ```
1100
+ *
1101
+ * @param style - css стили в строке
1102
+ * @param type - если указать 'm' или 'pc', то стили будут применяться по условию в зависимости от настройки this.widthForMobile
1103
+ *
1104
+ * @see insertToPage
1105
+ */
1106
+ static insertStyleToPage = (t, n = "") => {
1107
+ let r = "all";
1108
+ n === "m" && (r = "(max-width: " + g.widthForMobile + "px)"), n === "pc" && (r = "(min-width: " + g.widthForMobile + "px)");
1109
+ const i = document.createElement("style");
1110
+ i.innerHTML = t, i.media = r, document.head.append(i);
1111
+ };
1112
+ }
1113
+ const cs = {
1114
+ install: (e, t) => {
1115
+ const n = (r, i, a) => {
1116
+ if (!e.config.globalProperties.$i18n[r][i]) return "";
1117
+ let o = e.config.globalProperties.$i18n[r][i] + "";
1118
+ for (const s in a)
1119
+ o = o.replaceAll(new RegExp(`{{ ${s} }}`, "g"), String(a[s]));
1120
+ return o;
1121
+ };
1122
+ Object.setPrototypeOf(n, ye(t.i18n)), e.config.globalProperties.$i18n = n, e.config.globalProperties.$i18nLang = Pe(t.lang), e.config.globalProperties.i18n = e.config.globalProperties.$i18n, typeof window < "u" && !window.requirejs && (globalThis.$i18n = e.config.globalProperties.$i18n), e.provide("$i18n", e.config.globalProperties.$i18n), e.provide("$i18nLang", e.config.globalProperties.$i18nLang), e.provide("i18n", e.config.globalProperties.i18n);
1123
+ }
1124
+ }, fe = () => !ve() && window.mo?.user?.lang ? requirejs("i18n").categories[mo.user.lang] : !ve() && globalThis.$i18n ? globalThis.$i18n : mt("$i18n"), us = () => !ve() && window.mo?.user?.lang ? Pe(mo.user.lang) : mt("$i18nLang"), ds = (e, t, n) => {
1125
+ const r = fe().Calendar;
1126
+ switch (new Date(e, --t, n).getDay()) {
1127
+ case 0:
1128
+ return r.Dw_1 + ".";
1129
+ case 1:
1130
+ return r.Dw_2 + ".";
1131
+ case 2:
1132
+ return r.Dw_3 + ".";
1133
+ case 3:
1134
+ return r.Dw_4 + ".";
1135
+ case 4:
1136
+ return r.Dw_5 + ".";
1137
+ case 5:
1138
+ return r.Dw_6 + ".";
1139
+ case 6:
1140
+ return r.Dw_7 + ".";
1141
+ default:
1142
+ return "";
1143
+ }
1144
+ }, fs = (e, t = !0, n = 2) => {
1145
+ let r = String(e.getFullYear()), i = String(e.getDate()).padStart(2, "0"), a = String(e.getMonth() + 1).padStart(2, "0"), o = String(e.getHours()).padStart(2, "0"), s = String(e.getMinutes()).padStart(2, "0"), l = String(e.getSeconds()).padStart(2, "0"), c = r + "-" + a + "-" + i;
1146
+ return n >= 1 && (c += " " + o), n >= 2 && (c += ":" + s), n === 3 && (c += ":" + l), t && (c = F(c, n)), c;
1147
+ };
1148
+ function ps(e) {
1149
+ if (e.indexOf("T") === -1) {
1150
+ e.length == 10 && (e += " 00:00:00");
1151
+ const t = g.state.timezoneOffset >= 0 ? "-" : "+", n = Math.abs(g.state.timezoneOffset) / 60;
1152
+ let r;
1153
+ if (Number.isInteger(n))
1154
+ r = t + n.toString().padStart(2, "0") + ":00";
1155
+ else {
1156
+ const i = Math.floor(n), a = Math.round((n - i) * 60);
1157
+ r = t + i.toString().padStart(2, "0") + ":" + a.toString().padStart(2, "0");
1158
+ }
1159
+ e = e.replace(" ", "T") + r;
1160
+ }
1161
+ return new Date(e);
1162
+ }
1163
+ const gs = (e = (/* @__PURE__ */ new Date()).getTime(), t = !0, n = 0) => _t(e, t, n, g.state.timezoneOffset);
1164
+ function _t(e = (/* @__PURE__ */ new Date()).getTime(), t = !0, n = 0, r) {
1165
+ const i = r ? e + (/* @__PURE__ */ new Date()).getTimezoneOffset() * 60 * 1e3 - r * 60 * 1e3 : e, a = new Date(i), o = a.getFullYear(), s = String(a.getMonth() + 1).padStart(2, "0"), l = a.getDate().toString().padStart(2, "0"), c = a.getHours().toString().padStart(2, "0"), d = a.getMinutes().toString().padStart(2, "0"), u = a.getSeconds().toString().padStart(2, "0");
1166
+ n === "auto" && (n = 0, a.getHours() && (n = 1), a.getMinutes() && (n = 2), a.getSeconds() && (n = 3));
1167
+ let f = o + "-" + s + "-" + l;
1168
+ return n && (f += " "), n >= 1 && (f += c), n >= 2 && (f += ":" + d), n >= 3 && (f += ":" + u), t && (r ? f = F(f, n) : f = F(a, n)), f;
1169
+ }
1170
+ function ms(e, t = !0) {
1171
+ const r = (/* @__PURE__ */ new Date()).getTimezoneOffset() / 60 * -1 * 60 * 60 * 1e3, i = 10800 * 1e3;
1172
+ let a;
1173
+ e !== void 0 ? a = new Date(e) : a = /* @__PURE__ */ new Date(), a.setTime(a.getTime() - r + i);
1174
+ let o = String(a.getFullYear()), s = String(a.getDate()).padStart(2, "0"), l = String(a.getMonth() + 1).padStart(2, "0"), c = String(a.getHours()).padStart(2, "0"), d = String(a.getMinutes()).padStart(2, "0"), u = String(a.getSeconds()).padStart(2, "0"), f = o + "-" + l + "-" + s + " " + c + ":" + d + ":" + u;
1175
+ return t && (f = F(f)), f;
1176
+ }
1177
+ function F(e, t = 2, n, r) {
1178
+ if (r || (r = fe().Common.Not_date), typeof e == "string" && (!e || e.substring(0, 10) === "0000-00-00") && r && r !== "0000-00-00" || !e) return r;
1179
+ n || (n = g.state.dateFormat), n = n.toLowerCase().replace("m", "mm").replace("y", "yy").replace("d", "dd");
1180
+ let i;
1181
+ if (e instanceof Date)
1182
+ i = e;
1183
+ else {
1184
+ let o = e.substring(0, 10);
1185
+ if (o.length === 7 && (o += "-01"), o += " 00:00", o = o.replace(/-/g, "/"), i = new Date(o), isNaN(Number(i))) return r;
1186
+ }
1187
+ let a = "";
1188
+ if (n && window.$ && (a = $.datepicker.formatDate(n, i)), t && typeof e == "string" && e.length > 10 || t && e instanceof Date) {
1189
+ let o = "";
1190
+ if (e instanceof Date)
1191
+ o = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", {
1192
+ hour12: !1,
1193
+ hour: "numeric",
1194
+ minute: t >= 2 ? "numeric" : void 0,
1195
+ second: t >= 3 ? "numeric" : void 0
1196
+ });
1197
+ else
1198
+ switch (t) {
1199
+ // часы
1200
+ case 1:
1201
+ o = e.substring(11, 13);
1202
+ break;
1203
+ // часы и минуты
1204
+ case 2:
1205
+ o = e.substring(11, 16);
1206
+ break;
1207
+ // часы, минуты и секунды
1208
+ case 3:
1209
+ o = e.substring(11, 19);
1210
+ break;
1211
+ }
1212
+ a += " " + o;
1213
+ }
1214
+ return a = a.trim(), a;
1215
+ }
1216
+ function dt(e, t) {
1217
+ if (t || (t = fe().Common.Not_date), !e)
1218
+ return t;
1219
+ if (e.match(/\d\d\d\d-\d\d-\d\d/))
1220
+ return e;
1221
+ const n = g.state.dateFormat.toLowerCase(), r = e.split(/\W/), i = n.split(/\W/);
1222
+ let a = "", o = "", s = "";
1223
+ i.forEach((c, d) => {
1224
+ switch (c) {
1225
+ case "d":
1226
+ a = r[d];
1227
+ break;
1228
+ case "m":
1229
+ o = r[d];
1230
+ break;
1231
+ case "y":
1232
+ s = r[d];
1233
+ break;
1234
+ }
1235
+ });
1236
+ let l = s + "-" + o + "-" + a;
1237
+ return l.match(/\d\d\d\d-\d\d-\d\d/) || (console.info("Неверный формат даты, будет возращена текущая дата, " + l), l = _t((/* @__PURE__ */ new Date()).getTime(), !1).substring(0, 10)), l;
1238
+ }
1239
+ const $o = { class: "top-avatar" }, To = ["src", "title"], So = ["title"], hs = /* @__PURE__ */ O({
1240
+ __name: "avatar",
1241
+ props: {
1242
+ size: { default: 64 },
1243
+ image: {},
1244
+ nickname: {},
1245
+ isOnline: { type: Boolean },
1246
+ lastActiveTime: {},
1247
+ i18n: { default: () => ({
1248
+ Online: "Online",
1249
+ LastSeen: "Last seen"
1250
+ }) }
1251
+ },
1252
+ setup(e) {
1253
+ ht((i) => ({
1254
+ v52a765e6: i.size + "px"
1255
+ }));
1256
+ const t = e, n = E(() => {
1257
+ if (t.isOnline)
1258
+ return t.i18n?.Online;
1259
+ if (t.lastActiveTime)
1260
+ return t.i18n?.LastSeen + ": " + F(t.lastActiveTime, 2);
1261
+ }), r = E(() => t.nickname ? t.nickname + (n.value ? `
1262
+ ${n.value}` : "") : n.value);
1263
+ return (i, a) => (p(), m("div", $o, [
1264
+ j("img", {
1265
+ class: "top-avatar_image",
1266
+ src: e.image,
1267
+ title: r.value,
1268
+ alt: ""
1269
+ }, null, 8, To),
1270
+ e.isOnline ? (p(), m("div", {
1271
+ key: 0,
1272
+ class: "top-avatar_status",
1273
+ title: n.value
1274
+ }, null, 8, So)) : T("", !0)
1275
+ ]));
1276
+ }
1277
+ }), Oo = ["data-top-badge"], Eo = {
1278
+ key: 1,
1279
+ class: "top-ellipsis"
1280
+ }, bs = /* @__PURE__ */ O({
1281
+ __name: "button",
1282
+ props: {
1283
+ color: { default: "blue" },
1284
+ styling: { default: "" },
1285
+ size: { default: "s" },
1286
+ name: {},
1287
+ title: {},
1288
+ icon: {},
1289
+ icon2: {},
1290
+ href: {},
1291
+ badgeNumber: {},
1292
+ badgePosAfterText: { type: Boolean },
1293
+ disabled: { type: Boolean },
1294
+ isSubmit: { type: Boolean },
1295
+ isActive: { type: Boolean },
1296
+ isProgress: { type: Boolean },
1297
+ autoWidth: { type: Boolean }
1298
+ },
1299
+ setup(e) {
1300
+ const t = e, n = E(() => t.href ? "a" : "button"), r = E(() => t.isSubmit ? "submit" : void 0);
1301
+ return (i, a) => (p(), W(Xt(n.value), {
1302
+ class: S({
1303
+ "top-active": e.isActive,
1304
+ "top-disabled": e.disabled,
1305
+ "top-forms-focusable": !e.disabled,
1306
+ "top-button": !0,
1307
+ "top-button-progress": e.isProgress,
1308
+ [`top-size_${e.size}`]: !!e.size,
1309
+ [`top-color_${e.color}`]: !0,
1310
+ [`top-style_${e.styling}`]: !!e.styling,
1311
+ "top-button-autoWidth": e.autoWidth,
1312
+ "top-button-withoutText": !i.$slots.default
1313
+ }),
1314
+ name: e.name,
1315
+ title: e.title,
1316
+ href: e.href,
1317
+ type: r.value,
1318
+ "data-top-icon": e.icon || void 0,
1319
+ "data-top-icon2": e.icon2 || void 0,
1320
+ disabled: e.disabled || void 0,
1321
+ inProgress: e.isProgress
1322
+ }, {
1323
+ default: te(() => [
1324
+ e.badgeNumber ? (p(), m("span", {
1325
+ key: 0,
1326
+ "data-top-badge": e.badgeNumber,
1327
+ class: S(["top-button_badge", {
1328
+ "top-button_badge-afterText": e.badgePosAfterText
1329
+ }])
1330
+ }, null, 10, Oo)) : T("", !0),
1331
+ i.$slots.default ? (p(), m("span", Eo, [
1332
+ M(i.$slots, "default", {}, () => [
1333
+ qt(P(e.icon ? "" : "Button"), 1)
1334
+ ])
1335
+ ])) : T("", !0),
1336
+ M(i.$slots, "html")
1337
+ ]),
1338
+ _: 3
1339
+ }, 8, ["class", "name", "title", "href", "type", "data-top-icon", "data-top-icon2", "disabled", "inProgress"]));
1340
+ }
1341
+ }), xo = { class: "top-caption" }, jo = { class: "top-caption_title" }, ys = /* @__PURE__ */ O({
1342
+ __name: "caption",
1343
+ props: {
1344
+ title: {}
1345
+ },
1346
+ setup(e) {
1347
+ return (t, n) => (p(), m("label", xo, [
1348
+ j("div", jo, P(e.title ? e.title : " "), 1),
1349
+ M(t.$slots, "default")
1350
+ ]));
1351
+ }
1352
+ }), Ao = { class: "top-forms-optionLabel" }, Ne = /* @__PURE__ */ O({
1353
+ __name: "controlLabel",
1354
+ props: {
1355
+ description: {},
1356
+ disabled: { type: Boolean }
1357
+ },
1358
+ setup(e) {
1359
+ return (t, n) => (p(), m("div", Ao, [
1360
+ j("div", {
1361
+ class: S({
1362
+ "top-forms-optionLabel_title": !0,
1363
+ "top-forms-optionLabel_title-disabled": e.disabled
1364
+ })
1365
+ }, [
1366
+ M(t.$slots, "default")
1367
+ ], 2),
1368
+ e.description ? (p(), m("div", {
1369
+ key: 0,
1370
+ class: S(["top-forms-optionLabel_description", { "top-forms-optionLabel_description-disabled": e.disabled }])
1371
+ }, P(e.description), 3)) : T("", !0)
1372
+ ]));
1373
+ }
1374
+ }), Po = ["name", "value", "indeterminate", "disabled"], vs = /* @__PURE__ */ O({
1375
+ __name: "checkbox",
1376
+ props: /* @__PURE__ */ we({
1377
+ modelValue: { type: [Boolean, Array, Set] },
1378
+ name: {},
1379
+ value: {},
1380
+ description: {},
1381
+ disabled: { type: Boolean },
1382
+ indeterminate: { type: Boolean },
1383
+ isError: { type: Boolean }
1384
+ }, {
1385
+ modelValue: { type: [Boolean, Array, Set] },
1386
+ modelModifiers: {}
1387
+ }),
1388
+ emits: ["update:modelValue"],
1389
+ setup(e) {
1390
+ const t = bt(e, "modelValue");
1391
+ return (n, r) => {
1392
+ const i = z("top-focus");
1393
+ return p(), m("label", {
1394
+ class: S({
1395
+ "top-forms-optionWrapper": !0,
1396
+ "top-checkbox": !0,
1397
+ ["top-checkbox_" + e.name]: !!e.name,
1398
+ "top-disabled": e.disabled,
1399
+ "top-error": e.isError && !e.disabled
1400
+ })
1401
+ }, [
1402
+ V(j("input", {
1403
+ type: "checkbox",
1404
+ class: S({
1405
+ "top-forms-focusable": !e.disabled,
1406
+ "top-forms-option": !0,
1407
+ "top-checkbox_input": !0,
1408
+ "top-error": e.isError && !e.disabled
1409
+ }),
1410
+ name: e.name,
1411
+ "onUpdate:modelValue": r[0] || (r[0] = (a) => t.value = a),
1412
+ value: e.value,
1413
+ indeterminate: e.indeterminate,
1414
+ disabled: e.disabled
1415
+ }, null, 10, Po), [
1416
+ [
1417
+ i,
1418
+ e.isError,
1419
+ void 0,
1420
+ { onupdate: !0 }
1421
+ ],
1422
+ [yt, t.value]
1423
+ ]),
1424
+ n.$slots.default ? (p(), W(Ne, {
1425
+ key: 0,
1426
+ description: e.description,
1427
+ disabled: e.disabled
1428
+ }, {
1429
+ default: te(() => [
1430
+ M(n.$slots, "default")
1431
+ ]),
1432
+ _: 3
1433
+ }, 8, ["description", "disabled"])) : T("", !0)
1434
+ ], 2);
1435
+ };
1436
+ }
1437
+ }), Mo = ["title"], Co = /* @__PURE__ */ O({
1438
+ __name: "hint",
1439
+ props: {
1440
+ hint: {}
1441
+ },
1442
+ setup(e) {
1443
+ return (t, n) => (p(), m("span", {
1444
+ class: "top-hint",
1445
+ "data-top-icon": "",
1446
+ title: e.hint
1447
+ }, null, 8, Mo));
1448
+ }
1449
+ }), Do = (e, t) => {
1450
+ const n = e.__vccOpts || e;
1451
+ for (const [r, i] of t)
1452
+ n[r] = i;
1453
+ return n;
1454
+ }, Io = {}, Bo = { class: "top-loadbar" };
1455
+ function Wo(e, t) {
1456
+ return p(), m("div", Bo);
1457
+ }
1458
+ const Lo = /* @__PURE__ */ Do(Io, [["render", Wo]]), No = ["data-top-icon", "data-top-icon2"], zo = ["name", "title", "placeholder", "disabled", "readonly", "data-1p-ignore"], Vo = {
1459
+ key: 2,
1460
+ class: "top-formsCaption"
1461
+ }, ft = /* @__PURE__ */ O({
1462
+ inheritAttrs: !1,
1463
+ __name: "input",
1464
+ props: {
1465
+ modelValue: {},
1466
+ name: {},
1467
+ disabled: { type: Boolean },
1468
+ readonly: { type: Boolean },
1469
+ modificator: {},
1470
+ size: { default: "s" },
1471
+ styling: { default: "" },
1472
+ isError: { type: Boolean },
1473
+ isLoading: { type: Boolean },
1474
+ icon: {},
1475
+ icon2: {},
1476
+ addCleaner: { type: Boolean },
1477
+ title: {},
1478
+ captionType: { default: "" }
1479
+ },
1480
+ emits: ["update:modelValue"],
1481
+ setup(e, { emit: t }) {
1482
+ const n = e, r = t, i = E({
1483
+ get() {
1484
+ return n.modelValue;
1485
+ },
1486
+ set(s) {
1487
+ r("update:modelValue", s);
1488
+ }
1489
+ }), a = E(() => n.addCleaner && !n.title || n.captionType !== "" ? "" : n.title), o = (s) => {
1490
+ n.modelValue && s.stopPropagation(), r("update:modelValue", "");
1491
+ };
1492
+ return (s, l) => {
1493
+ const c = z("top-focus");
1494
+ return p(), m("label", {
1495
+ class: S({
1496
+ "top-input": !0,
1497
+ ["top-size_" + e.size]: !0,
1498
+ "top-disabled": e.disabled,
1499
+ ["top-input-" + e.modificator]: !!e.modificator,
1500
+ "top-input-withCleaner": e.addCleaner && i.value && i.value !== "0000-00-00",
1501
+ "top-formsCaptionWrapper": e.captionType !== "",
1502
+ "top-formsCaptionWrapper-always": e.captionType === "top"
1503
+ }),
1504
+ "data-top-icon": e.icon,
1505
+ "data-top-icon2": e.icon2
1506
+ }, [
1507
+ e.isLoading ? (p(), W(Lo, { key: 0 })) : T("", !0),
1508
+ V(j("input", oe({
1509
+ type: "text",
1510
+ class: {
1511
+ "top-input_input": !0,
1512
+ ["top-input_input-" + e.modificator]: !!e.modificator,
1513
+ "top-forms-focusable": !e.disabled,
1514
+ "top-error": e.isError,
1515
+ [`top-style_${e.styling}`]: !!e.styling
1516
+ },
1517
+ autocomplete: "off_always",
1518
+ name: e.name,
1519
+ "onUpdate:modelValue": l[0] || (l[0] = (d) => i.value = d),
1520
+ title: e.title,
1521
+ placeholder: a.value,
1522
+ disabled: e.disabled,
1523
+ readonly: e.readonly,
1524
+ onKeydown: l[1] || (l[1] = Yt((d) => e.addCleaner && o(d), ["esc"])),
1525
+ "data-1p-ignore": s.$attrs.type !== "email" && s.$attrs.type !== "password"
1526
+ }, s.$attrs), null, 16, zo), [
1527
+ [
1528
+ c,
1529
+ e.isError,
1530
+ void 0,
1531
+ { onupdate: !0 }
1532
+ ],
1533
+ [vt, i.value]
1534
+ ]),
1535
+ e.addCleaner && i.value && i.value !== "0000-00-00" ? (p(), m("span", {
1536
+ key: 1,
1537
+ class: "top-input_cleaner",
1538
+ "data-top-icon": "",
1539
+ onClick: Qt(o, ["prevent"])
1540
+ })) : T("", !0),
1541
+ e.captionType !== "" ? (p(), m("span", Vo, P(e.title), 1)) : T("", !0),
1542
+ M(s.$slots, "default")
1543
+ ], 10, No);
1544
+ };
1545
+ }
1546
+ }), ko = ["value"], Fo = !!document.documentElement.ontouchstart && !!document.createElement("input").showPicker;
1547
+ let pt = (e) => {
1548
+ };
1549
+ const ws = /* @__PURE__ */ O({
1550
+ __name: "inputDate",
1551
+ props: {
1552
+ modelValue: {},
1553
+ name: {},
1554
+ disabled: { type: Boolean },
1555
+ readonly: { type: Boolean },
1556
+ modificator: {},
1557
+ size: {},
1558
+ styling: {},
1559
+ isError: { type: Boolean },
1560
+ isLoading: { type: Boolean },
1561
+ icon: {},
1562
+ icon2: { default: "" },
1563
+ addCleaner: { type: Boolean },
1564
+ title: {},
1565
+ captionType: {}
1566
+ },
1567
+ emits: ["update:modelValue"],
1568
+ setup(e, { emit: t }) {
1569
+ const n = fe(), r = e, i = t;
1570
+ Jt(() => {
1571
+ o && o.datepicker("destroy");
1572
+ });
1573
+ const a = Pe();
1574
+ let o;
1575
+ const s = E({
1576
+ get() {
1577
+ return F(r.modelValue, 2, void 0, "0000-00-00");
1578
+ },
1579
+ set(u) {
1580
+ u = dt(u, "0000-00-00"), i("update:modelValue", u);
1581
+ }
1582
+ });
1583
+ let l = (u) => {
1584
+ pt(u);
1585
+ }, c = (u) => {
1586
+ const f = dt(u.target.value), b = F(f);
1587
+ if (!b || b === n.Common.Not_date || u.target.value !== b) {
1588
+ u.target.value = s.value;
1589
+ return;
1590
+ }
1591
+ s.value = u.target.value;
1592
+ };
1593
+ async function d(u) {
1594
+ const f = await import("./datepicker-D1Hw3a3o.es.js");
1595
+ pt = f.oninput, o = f.connectDatepicker(u.target, {
1596
+ onSelect: () => c(u)
1597
+ }), o && o.datepicker("show");
1598
+ }
1599
+ return (u, f) => ge(Fo) ? (p(), W(ft, oe({ key: 0 }, u.$props, {
1600
+ modelValue: s.value,
1601
+ readonly: "",
1602
+ onClick: f[1] || (f[1] = (b) => a.value.showPicker())
1603
+ }), {
1604
+ default: te(() => [
1605
+ j("input", {
1606
+ ref_key: "el",
1607
+ ref: a,
1608
+ type: "date",
1609
+ class: "top-input_input-date",
1610
+ value: e.modelValue,
1611
+ onChange: f[0] || (f[0] = (b) => s.value = b.target.value),
1612
+ tabindex: "-1"
1613
+ }, null, 40, ko)
1614
+ ]),
1615
+ _: 1
1616
+ }, 16, ["modelValue"])) : (p(), W(ft, oe({ key: 1 }, u.$props, {
1617
+ modelValue: s.value,
1618
+ "onUpdate:modelValue": f[2] || (f[2] = (b) => b === "" ? s.value = "" : ""),
1619
+ onInput: ge(l),
1620
+ onFocusOnce: d,
1621
+ onChange: ge(c),
1622
+ modificator: "datepicker"
1623
+ }), null, 16, ["modelValue", "onInput", "onChange"]));
1624
+ }
1625
+ }), Ro = { class: "top-inputRange" }, $s = /* @__PURE__ */ O({
1626
+ __name: "inputRange",
1627
+ setup(e) {
1628
+ return (t, n) => (p(), m("div", Ro, [
1629
+ M(t.$slots, "from"),
1630
+ n[0] || (n[0] = j("span", { class: "top-inputRange_dash" }, " — ", -1)),
1631
+ M(t.$slots, "to")
1632
+ ]));
1633
+ }
1634
+ }), Uo = ["name", "value", "disabled"], Ts = /* @__PURE__ */ O({
1635
+ __name: "radio",
1636
+ props: {
1637
+ modelValue: {},
1638
+ value: {},
1639
+ name: {},
1640
+ description: {},
1641
+ disabled: { type: Boolean },
1642
+ isError: { type: Boolean }
1643
+ },
1644
+ emits: ["update:modelValue"],
1645
+ setup(e, { emit: t }) {
1646
+ const n = e, r = t, i = E({
1647
+ get() {
1648
+ return n.modelValue;
1649
+ },
1650
+ set(a) {
1651
+ r("update:modelValue", a);
1652
+ }
1653
+ });
1654
+ return (a, o) => {
1655
+ const s = z("top-focus");
1656
+ return p(), m("label", {
1657
+ class: S({
1658
+ "top-forms-optionWrapper": !0,
1659
+ "top-radio": !0,
1660
+ ["top-radio_" + e.name]: e.name !== "",
1661
+ "top-disabled": e.disabled,
1662
+ "top-error": e.isError && !e.disabled
1663
+ })
1664
+ }, [
1665
+ V(j("input", {
1666
+ type: "radio",
1667
+ class: S({
1668
+ "top-forms-focusable": !e.disabled,
1669
+ "top-forms-option": !0,
1670
+ "top-radio_input": !0,
1671
+ "top-error": e.isError && !e.disabled
1672
+ }),
1673
+ "onUpdate:modelValue": o[0] || (o[0] = (l) => i.value = l),
1674
+ name: e.name,
1675
+ value: e.value,
1676
+ disabled: e.disabled
1677
+ }, null, 10, Uo), [
1678
+ [
1679
+ s,
1680
+ e.isError,
1681
+ void 0,
1682
+ { onupdate: !0 }
1683
+ ],
1684
+ [Zt, i.value]
1685
+ ]),
1686
+ a.$slots.default ? (p(), W(Ne, {
1687
+ key: 0,
1688
+ description: e.description,
1689
+ disabled: e.disabled
1690
+ }, {
1691
+ default: te(() => [
1692
+ M(a.$slots, "default")
1693
+ ]),
1694
+ _: 3
1695
+ }, 8, ["description", "disabled"])) : T("", !0)
1696
+ ], 2);
1697
+ };
1698
+ }
1699
+ }), Ho = ["name", "value", "disabled"], Ss = /* @__PURE__ */ O({
1700
+ __name: "switcher",
1701
+ props: {
1702
+ modelValue: { type: [Boolean, Array, Set] },
1703
+ name: {},
1704
+ value: {},
1705
+ description: {},
1706
+ disabled: { type: Boolean },
1707
+ isError: { type: Boolean }
1708
+ },
1709
+ emits: ["update:modelValue"],
1710
+ setup(e, { emit: t }) {
1711
+ const n = e, r = t, i = E({
1712
+ get() {
1713
+ return n.modelValue;
1714
+ },
1715
+ set(a) {
1716
+ r("update:modelValue", a);
1717
+ }
1718
+ });
1719
+ return (a, o) => {
1720
+ const s = z("top-focus");
1721
+ return p(), m("label", {
1722
+ class: S({
1723
+ "top-forms-optionWrapper": !0,
1724
+ "top-checkboxSwitcher": !0,
1725
+ "top-disabled": e.disabled,
1726
+ "top-error": e.isError && !e.disabled
1727
+ })
1728
+ }, [
1729
+ V(j("input", {
1730
+ type: "checkbox",
1731
+ class: S({
1732
+ "top-forms-focusable": !e.disabled,
1733
+ "top-forms-option": !0,
1734
+ "top-checkboxSwitcher_input": !0,
1735
+ "top-error": e.isError && !e.disabled
1736
+ }),
1737
+ "onUpdate:modelValue": o[0] || (o[0] = (l) => i.value = l),
1738
+ name: e.name,
1739
+ value: e.value,
1740
+ disabled: e.disabled
1741
+ }, null, 10, Ho), [
1742
+ [
1743
+ s,
1744
+ e.isError,
1745
+ void 0,
1746
+ { onupdate: !0 }
1747
+ ],
1748
+ [yt, i.value]
1749
+ ]),
1750
+ a.$slots.default ? (p(), W(Ne, {
1751
+ key: 0,
1752
+ description: e.description,
1753
+ disabled: e.disabled
1754
+ }, {
1755
+ default: te(() => [
1756
+ M(a.$slots, "default")
1757
+ ]),
1758
+ _: 3
1759
+ }, 8, ["description", "disabled"])) : T("", !0)
1760
+ ], 2);
1761
+ };
1762
+ }
1763
+ }), _o = ["name", "placeholder", "disabled", "readonly", "rows", "maxlength"], Go = {
1764
+ key: 0,
1765
+ class: "top-textarea_pseudoContent"
1766
+ }, Os = /* @__PURE__ */ O({
1767
+ inheritAttrs: !1,
1768
+ __name: "textarea",
1769
+ props: {
1770
+ modelValue: {},
1771
+ name: {},
1772
+ placeholder: {},
1773
+ styling: { default: "" },
1774
+ rows: { default: 5 },
1775
+ minHeight: { default: 120 },
1776
+ expandable: { type: Boolean },
1777
+ disabled: { type: Boolean },
1778
+ readonly: { type: Boolean },
1779
+ isError: { type: Boolean },
1780
+ hint: {},
1781
+ maxLength: {}
1782
+ },
1783
+ emits: ["update:modelValue"],
1784
+ setup(e, { emit: t }) {
1785
+ ht((a) => ({
1786
+ v049aac9f: a.minHeight + "px"
1787
+ }));
1788
+ const n = e, r = t, i = E({
1789
+ get() {
1790
+ return n.modelValue;
1791
+ },
1792
+ set(a) {
1793
+ r("update:modelValue", a);
1794
+ }
1795
+ });
1796
+ return (a, o) => {
1797
+ const s = z("top-focus"), l = z("top-tooltip");
1798
+ return p(), m("label", {
1799
+ class: S({
1800
+ "top-textarea": !0,
1801
+ ["top-textarea-" + e.name]: e.name,
1802
+ "top-disabled": e.disabled
1803
+ })
1804
+ }, [
1805
+ V(j("textarea", oe({
1806
+ type: "text",
1807
+ class: {
1808
+ "top-forms-focusable": !e.disabled,
1809
+ "top-textarea_textarea": !0,
1810
+ "top-textarea_textarea-expandable": e.expandable,
1811
+ "top-error": e.isError,
1812
+ [`top-style_${e.styling}`]: !!e.styling
1813
+ },
1814
+ autocomplete: "off_always",
1815
+ name: e.name,
1816
+ placeholder: e.placeholder,
1817
+ disabled: e.disabled,
1818
+ readonly: e.readonly,
1819
+ rows: e.expandable ? void 0 : e.rows,
1820
+ maxlength: e.maxLength
1821
+ }, a.$attrs, {
1822
+ "onUpdate:modelValue": o[0] || (o[0] = (c) => i.value = c)
1823
+ }), null, 16, _o), [
1824
+ [
1825
+ s,
1826
+ e.isError,
1827
+ void 0,
1828
+ { onupdate: !0 }
1829
+ ],
1830
+ [vt, i.value]
1831
+ ]),
1832
+ e.expandable ? (p(), m("span", Go, P(i.value + " "), 1)) : T("", !0),
1833
+ e.hint ? V((p(), W(Co, {
1834
+ key: 1,
1835
+ class: "top-textarea_hint",
1836
+ hint: e.hint
1837
+ }, null, 8, ["hint"])), [
1838
+ [l]
1839
+ ]) : T("", !0),
1840
+ e.maxLength ? (p(), m("div", {
1841
+ key: 2,
1842
+ class: S(["top-textarea_counter", {
1843
+ "top-textarea_counter-max": i.value.length >= e.maxLength
1844
+ }])
1845
+ }, P(i.value.length) + "/" + P(e.maxLength), 3)) : T("", !0)
1846
+ ], 2);
1847
+ };
1848
+ }
1849
+ }), Ko = ["data-value", "data-top-icon", "data-top-icon2"], Xo = ["name", "disabled"], qo = ["label", "disabled"], Yo = ["value", "selected", "disabled"], Qo = ["value", "selected", "disabled"], Jo = {
1850
+ key: 1,
1851
+ class: "top-formsCaption"
1852
+ }, Es = /* @__PURE__ */ O({
1853
+ __name: "select",
1854
+ props: /* @__PURE__ */ we({
1855
+ modelValue: { type: [String, Number, Boolean] },
1856
+ options: {},
1857
+ name: {},
1858
+ disabled: { type: Boolean },
1859
+ icon: {},
1860
+ size: { default: "s" },
1861
+ styling: { default: "" },
1862
+ addChanger: { type: Boolean },
1863
+ title: {},
1864
+ isError: { type: Boolean }
1865
+ }, {
1866
+ modelValue: { type: [String, Number, Boolean], required: !0 },
1867
+ modelModifiers: {}
1868
+ }),
1869
+ emits: /* @__PURE__ */ we(["update:modelValue"], ["update:modelValue"]),
1870
+ setup(e) {
1871
+ const t = e, n = bt(e, "modelValue"), r = E(() => {
1872
+ const l = /* @__PURE__ */ new Map();
1873
+ return t.options.forEach((c, d) => {
1874
+ if (typeof c == "string" && (c = a(d, c)), c.children) {
1875
+ const u = /* @__PURE__ */ new Map();
1876
+ c.children.forEach((f, b) => {
1877
+ typeof f == "string" && (f = a(b, f)), u.set(f.value, f);
1878
+ }), c = { ...c }, c.children = u, l.set(c.value, c);
1879
+ } else
1880
+ l.set(c.value, c);
1881
+ }), l;
1882
+ }), i = E(() => {
1883
+ const l = /* @__PURE__ */ new Map();
1884
+ return r.value.forEach((c) => {
1885
+ if (!c.disabled) {
1886
+ if (c.children) {
1887
+ c.children.forEach((d) => {
1888
+ d.disabled || l.set(d.value, d);
1889
+ });
1890
+ return;
1891
+ }
1892
+ l.set(c.value, c);
1893
+ }
1894
+ }), l;
1895
+ }), a = (l, c) => ({
1896
+ value: l,
1897
+ title: c
1898
+ });
1899
+ gt([
1900
+ () => t.modelValue,
1901
+ i
1902
+ ], () => {
1903
+ (n.value === null || n.value === void 0) && i.value.size && (console.warn("Пожалуйста, не передавайте в компонент Select значения null и undefined"), n.value = i.value.keys().next().value);
1904
+ }, { immediate: !0 });
1905
+ const o = E(() => i.value.get(n.value)?.icon), s = () => {
1906
+ const l = [...i.value.keys()], d = (l.indexOf(n.value) + 1) % l.length;
1907
+ n.value = l[d];
1908
+ };
1909
+ return (l, c) => {
1910
+ const d = z("top-focus");
1911
+ return p(), m("label", {
1912
+ class: S({
1913
+ "top-select": !0,
1914
+ ["top-select-" + e.name]: e.name,
1915
+ ["top-size_" + e.size]: !0,
1916
+ "top-formsCaptionWrapper": !!e.title,
1917
+ "top-select-error": e.isError,
1918
+ "top-disabled": e.disabled
1919
+ }),
1920
+ "data-value": n.value,
1921
+ "data-top-icon": e.icon,
1922
+ "data-top-icon2": o.value
1923
+ }, [
1924
+ V((p(), m("select", {
1925
+ class: S({
1926
+ "top-forms-focusable": !e.disabled,
1927
+ "top-select_select": !0,
1928
+ "top-as-selector": !0,
1929
+ "top-error": e.isError,
1930
+ [`top-style_${e.styling}`]: !!e.styling
1931
+ }),
1932
+ name: e.name,
1933
+ disabled: e.disabled,
1934
+ "onUpdate:modelValue": c[0] || (c[0] = (u) => n.value = u)
1935
+ }, [
1936
+ (p(!0), m(ae, null, $e(r.value, ([u, f]) => (p(), m(ae, null, [
1937
+ f.children ? (p(), m("optgroup", {
1938
+ key: "group_" + u,
1939
+ label: f.title,
1940
+ disabled: f.disabled
1941
+ }, [
1942
+ (p(!0), m(ae, null, $e(f.children, ([b, w]) => (p(), m("option", {
1943
+ key: String(b),
1944
+ value: b,
1945
+ selected: b === n.value,
1946
+ disabled: w.disabled
1947
+ }, P(w.title), 9, Yo))), 128))
1948
+ ], 8, qo)) : (p(), m("option", {
1949
+ key: u ? String(u) : void 0,
1950
+ value: u,
1951
+ selected: u === n.value,
1952
+ disabled: f.disabled
1953
+ }, P(f.title), 9, Qo))
1954
+ ], 64))), 256))
1955
+ ], 10, Xo)), [
1956
+ [
1957
+ d,
1958
+ e.isError,
1959
+ void 0,
1960
+ { onupdate: !0 }
1961
+ ],
1962
+ [en, n.value]
1963
+ ]),
1964
+ e.addChanger && i.value.size && !e.disabled ? (p(), m("span", {
1965
+ key: 0,
1966
+ class: "top-changer",
1967
+ onClick: s
1968
+ })) : T("", !0),
1969
+ e.title ? (p(), m("span", Jo, P(e.title), 1)) : T("", !0)
1970
+ ], 10, Ko);
1971
+ };
1972
+ }
1973
+ }), xs = /* @__PURE__ */ O({
1974
+ __name: "preloader",
1975
+ props: {
1976
+ type: {}
1977
+ },
1978
+ setup(e) {
1979
+ return (t, n) => (p(), m("div", {
1980
+ class: S({
1981
+ ["top-preloader-" + e.type]: !0
1982
+ })
1983
+ }, [
1984
+ e.type === "circles" ? (p(), m(ae, { key: 0 }, $e([1, 2, 3], (r) => j("i")), 64)) : T("", !0)
1985
+ ], 2));
1986
+ }
1987
+ });
1988
+ export {
1989
+ as as A,
1990
+ on as B,
1991
+ g as C,
1992
+ is as D,
1993
+ yo as E,
1994
+ os as F,
1995
+ Ft as G,
1996
+ ss as H,
1997
+ ls as I,
1998
+ ds as J,
1999
+ fs as K,
2000
+ ps as L,
2001
+ gs as M,
2002
+ _t as N,
2003
+ ms as O,
2004
+ dt as P,
2005
+ ys as Q,
2006
+ Lo as T,
2007
+ ft as _,
2008
+ us as a,
2009
+ es as b,
2010
+ F as c,
2011
+ Tt as d,
2012
+ bs as e,
2013
+ Co as f,
2014
+ Os as g,
2015
+ vs as h,
2016
+ cs as i,
2017
+ Ts as j,
2018
+ Do as k,
2019
+ hs as l,
2020
+ Ne as m,
2021
+ ws as n,
2022
+ $s as o,
2023
+ Es as p,
2024
+ Ss as q,
2025
+ xs as r,
2026
+ tn as s,
2027
+ nn as t,
2028
+ fe as u,
2029
+ rn as v,
2030
+ an as w,
2031
+ ts as x,
2032
+ ns as y,
2033
+ rs as z
2034
+ };
2035
+ //# sourceMappingURL=forms-BseC3Ftz.es.js.map