@topvisor/ui 1.0.1 → 1.0.2

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