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