prlg-ui 1.7.80 → 1.8.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 (43) hide show
  1. package/dist/FileIcon-BE4ItwkK.cjs +1 -0
  2. package/dist/{FileIcon-DkEbi-bi.js → FileIcon-maHE2Nhr.js} +12 -12
  3. package/dist/{Image-CjfBGj9v.cjs → Image-CTHVD4pk.cjs} +1 -1
  4. package/dist/{Image-BsSn6o0I.js → Image-DdrY_gj3.js} +2 -2
  5. package/dist/{eventBus.util-DWrPm63y.js → Portal.vue_vue_type_script_setup_true_lang-CMr1orYd.js} +24 -24
  6. package/dist/Portal.vue_vue_type_script_setup_true_lang-C_gwBTX9.cjs +1 -0
  7. package/dist/SendIcon-CH6S0QWh.cjs +1 -0
  8. package/dist/{SendIcon-BGGNLlmf.js → SendIcon-Cqdt2QWN.js} +9 -9
  9. package/dist/WarningFillIcon-acu5ou45.cjs +1 -0
  10. package/dist/{WarningFillIcon-DJbFMn6d.js → WarningFillIcon-cJBG6d6O.js} +124 -92
  11. package/dist/blocks/index.cjs.js +1 -1
  12. package/dist/blocks/index.es.js +5 -5
  13. package/dist/icons/index.cjs.js +1 -1
  14. package/dist/icons/index.es.js +370 -400
  15. package/dist/index.d.ts +204 -44
  16. package/dist/parseFileSize.util-Bg1rLRLQ.cjs +1 -0
  17. package/dist/parseFileSize.util-CxVk4CvB.js +785 -0
  18. package/dist/prlg-ui.cjs.js +1 -1
  19. package/dist/prlg-ui.css +1 -1
  20. package/dist/prlg-ui.es.js +2882 -2196
  21. package/dist/scss/animations.scss +30 -0
  22. package/dist/scss/colors.scss +1 -0
  23. package/dist/scss/main.scss +1 -0
  24. package/dist/scss/root-vars.scss +3 -0
  25. package/dist/uploadFile.util-DCFkx3w3.cjs +1 -0
  26. package/dist/uploadFile.util-DhavPrlY.js +37 -0
  27. package/dist/utils/dayjs.util.ts +2 -0
  28. package/dist/utils/index.cjs.js +1 -1
  29. package/dist/utils/index.es.js +5 -5
  30. package/dist/utils/mask.util.test.ts +170 -0
  31. package/dist/utils/mask.util.ts +217 -0
  32. package/package.json +11 -4
  33. package/dist/FileIcon-sxADkCIe.cjs +0 -1
  34. package/dist/SendIcon-_UxV_dOO.cjs +0 -1
  35. package/dist/WarningFillIcon-Mkwf0oDV.cjs +0 -1
  36. package/dist/eventBus.util-D8XxJzLJ.cjs +0 -1
  37. package/dist/parseFileSize.util-7Ku5i6Tm.cjs +0 -1
  38. package/dist/parseFileSize.util-DOIlswb-.js +0 -44
  39. package/dist/uploadFile.util-68_41dVg.cjs +0 -1
  40. package/dist/uploadFile.util-DjmeAGuX.js +0 -760
  41. package/dist/utils/Portal/Portal.vue +0 -27
  42. package/dist/utils/Portal/index.ts +0 -3
  43. package/dist/utils/Portal.vue +0 -27
@@ -1,760 +0,0 @@
1
- import { p as St } from "./parseFileSize.util-DOIlswb-.js";
2
- function U(x) {
3
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x.default : x;
4
- }
5
- var tt = { exports: {} }, wt = tt.exports, mt;
6
- function Yt() {
7
- return mt || (mt = 1, (function(x, P) {
8
- (function(v, u) {
9
- x.exports = u();
10
- })(wt, (function() {
11
- var v = 1e3, u = 6e4, O = 36e5, _ = "millisecond", $ = "second", w = "minute", L = "hour", M = "day", h = "week", T = "month", F = "quarter", q = "year", y = "date", A = "Invalid Date", c = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, f = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, Y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(s) {
12
- var r = ["th", "st", "nd", "rd"], t = s % 100;
13
- return "[" + s + (r[(t - 20) % 10] || r[t] || r[0]) + "]";
14
- } }, S = function(s, r, t) {
15
- var o = String(s);
16
- return !o || o.length >= r ? s : "" + Array(r + 1 - o.length).join(t) + s;
17
- }, j = { s: S, z: function(s) {
18
- var r = -s.utcOffset(), t = Math.abs(r), o = Math.floor(t / 60), n = t % 60;
19
- return (r <= 0 ? "+" : "-") + S(o, 2, "0") + ":" + S(n, 2, "0");
20
- }, m: function s(r, t) {
21
- if (r.date() < t.date()) return -s(t, r);
22
- var o = 12 * (t.year() - r.year()) + (t.month() - r.month()), n = r.clone().add(o, T), d = t - n < 0, l = r.clone().add(o + (d ? -1 : 1), T);
23
- return +(-(o + (t - n) / (d ? n - l : l - n)) || 0);
24
- }, a: function(s) {
25
- return s < 0 ? Math.ceil(s) || 0 : Math.floor(s);
26
- }, p: function(s) {
27
- return { M: T, y: q, w: h, d: M, D: y, h: L, m: w, s: $, ms: _, Q: F }[s] || String(s || "").toLowerCase().replace(/s$/, "");
28
- }, u: function(s) {
29
- return s === void 0;
30
- } }, H = "en", m = {};
31
- m[H] = Y;
32
- var i = "$isDayjsObject", e = function(s) {
33
- return s instanceof b || !(!s || !s[i]);
34
- }, D = function s(r, t, o) {
35
- var n;
36
- if (!r) return H;
37
- if (typeof r == "string") {
38
- var d = r.toLowerCase();
39
- m[d] && (n = d), t && (m[d] = t, n = d);
40
- var l = r.split("-");
41
- if (!n && l.length > 1) return s(l[0]);
42
- } else {
43
- var g = r.name;
44
- m[g] = r, n = g;
45
- }
46
- return !o && n && (H = n), n || !o && H;
47
- }, p = function(s, r) {
48
- if (e(s)) return s.clone();
49
- var t = typeof r == "object" ? r : {};
50
- return t.date = s, t.args = arguments, new b(t);
51
- }, a = j;
52
- a.l = D, a.i = e, a.w = function(s, r) {
53
- return p(s, { locale: r.$L, utc: r.$u, x: r.$x, $offset: r.$offset });
54
- };
55
- var b = (function() {
56
- function s(t) {
57
- this.$L = D(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[i] = !0;
58
- }
59
- var r = s.prototype;
60
- return r.parse = function(t) {
61
- this.$d = (function(o) {
62
- var n = o.date, d = o.utc;
63
- if (n === null) return /* @__PURE__ */ new Date(NaN);
64
- if (a.u(n)) return /* @__PURE__ */ new Date();
65
- if (n instanceof Date) return new Date(n);
66
- if (typeof n == "string" && !/Z$/i.test(n)) {
67
- var l = n.match(c);
68
- if (l) {
69
- var g = l[2] - 1 || 0, B = (l[7] || "0").substring(0, 3);
70
- return d ? new Date(Date.UTC(l[1], g, l[3] || 1, l[4] || 0, l[5] || 0, l[6] || 0, B)) : new Date(l[1], g, l[3] || 1, l[4] || 0, l[5] || 0, l[6] || 0, B);
71
- }
72
- }
73
- return new Date(n);
74
- })(t), this.init();
75
- }, r.init = function() {
76
- var t = this.$d;
77
- this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
78
- }, r.$utils = function() {
79
- return a;
80
- }, r.isValid = function() {
81
- return this.$d.toString() !== A;
82
- }, r.isSame = function(t, o) {
83
- var n = p(t);
84
- return this.startOf(o) <= n && n <= this.endOf(o);
85
- }, r.isAfter = function(t, o) {
86
- return p(t) < this.startOf(o);
87
- }, r.isBefore = function(t, o) {
88
- return this.endOf(o) < p(t);
89
- }, r.$g = function(t, o, n) {
90
- return a.u(t) ? this[o] : this.set(n, t);
91
- }, r.unix = function() {
92
- return Math.floor(this.valueOf() / 1e3);
93
- }, r.valueOf = function() {
94
- return this.$d.getTime();
95
- }, r.startOf = function(t, o) {
96
- var n = this, d = !!a.u(o) || o, l = a.p(t), g = function(Z, E) {
97
- var R = a.w(n.$u ? Date.UTC(n.$y, E, Z) : new Date(n.$y, E, Z), n);
98
- return d ? R : R.endOf(M);
99
- }, B = function(Z, E) {
100
- return a.w(n.toDate()[Z].apply(n.toDate("s"), (d ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(E)), n);
101
- }, z = this.$W, C = this.$M, I = this.$D, V = "set" + (this.$u ? "UTC" : "");
102
- switch (l) {
103
- case q:
104
- return d ? g(1, 0) : g(31, 11);
105
- case T:
106
- return d ? g(1, C) : g(0, C + 1);
107
- case h:
108
- var W = this.$locale().weekStart || 0, X = (z < W ? z + 7 : z) - W;
109
- return g(d ? I - X : I + (6 - X), C);
110
- case M:
111
- case y:
112
- return B(V + "Hours", 0);
113
- case L:
114
- return B(V + "Minutes", 1);
115
- case w:
116
- return B(V + "Seconds", 2);
117
- case $:
118
- return B(V + "Milliseconds", 3);
119
- default:
120
- return this.clone();
121
- }
122
- }, r.endOf = function(t) {
123
- return this.startOf(t, !1);
124
- }, r.$set = function(t, o) {
125
- var n, d = a.p(t), l = "set" + (this.$u ? "UTC" : ""), g = (n = {}, n[M] = l + "Date", n[y] = l + "Date", n[T] = l + "Month", n[q] = l + "FullYear", n[L] = l + "Hours", n[w] = l + "Minutes", n[$] = l + "Seconds", n[_] = l + "Milliseconds", n)[d], B = d === M ? this.$D + (o - this.$W) : o;
126
- if (d === T || d === q) {
127
- var z = this.clone().set(y, 1);
128
- z.$d[g](B), z.init(), this.$d = z.set(y, Math.min(this.$D, z.daysInMonth())).$d;
129
- } else g && this.$d[g](B);
130
- return this.init(), this;
131
- }, r.set = function(t, o) {
132
- return this.clone().$set(t, o);
133
- }, r.get = function(t) {
134
- return this[a.p(t)]();
135
- }, r.add = function(t, o) {
136
- var n, d = this;
137
- t = Number(t);
138
- var l = a.p(o), g = function(C) {
139
- var I = p(d);
140
- return a.w(I.date(I.date() + Math.round(C * t)), d);
141
- };
142
- if (l === T) return this.set(T, this.$M + t);
143
- if (l === q) return this.set(q, this.$y + t);
144
- if (l === M) return g(1);
145
- if (l === h) return g(7);
146
- var B = (n = {}, n[w] = u, n[L] = O, n[$] = v, n)[l] || 1, z = this.$d.getTime() + t * B;
147
- return a.w(z, this);
148
- }, r.subtract = function(t, o) {
149
- return this.add(-1 * t, o);
150
- }, r.format = function(t) {
151
- var o = this, n = this.$locale();
152
- if (!this.isValid()) return n.invalidDate || A;
153
- var d = t || "YYYY-MM-DDTHH:mm:ssZ", l = a.z(this), g = this.$H, B = this.$m, z = this.$M, C = n.weekdays, I = n.months, V = n.meridiem, W = function(E, R, N, Q) {
154
- return E && (E[R] || E(o, d)) || N[R].slice(0, Q);
155
- }, X = function(E) {
156
- return a.s(g % 12 || 12, E, "0");
157
- }, Z = V || function(E, R, N) {
158
- var Q = E < 12 ? "AM" : "PM";
159
- return N ? Q.toLowerCase() : Q;
160
- };
161
- return d.replace(f, (function(E, R) {
162
- return R || (function(N) {
163
- switch (N) {
164
- case "YY":
165
- return String(o.$y).slice(-2);
166
- case "YYYY":
167
- return a.s(o.$y, 4, "0");
168
- case "M":
169
- return z + 1;
170
- case "MM":
171
- return a.s(z + 1, 2, "0");
172
- case "MMM":
173
- return W(n.monthsShort, z, I, 3);
174
- case "MMMM":
175
- return W(I, z);
176
- case "D":
177
- return o.$D;
178
- case "DD":
179
- return a.s(o.$D, 2, "0");
180
- case "d":
181
- return String(o.$W);
182
- case "dd":
183
- return W(n.weekdaysMin, o.$W, C, 2);
184
- case "ddd":
185
- return W(n.weekdaysShort, o.$W, C, 3);
186
- case "dddd":
187
- return C[o.$W];
188
- case "H":
189
- return String(g);
190
- case "HH":
191
- return a.s(g, 2, "0");
192
- case "h":
193
- return X(1);
194
- case "hh":
195
- return X(2);
196
- case "a":
197
- return Z(g, B, !0);
198
- case "A":
199
- return Z(g, B, !1);
200
- case "m":
201
- return String(B);
202
- case "mm":
203
- return a.s(B, 2, "0");
204
- case "s":
205
- return String(o.$s);
206
- case "ss":
207
- return a.s(o.$s, 2, "0");
208
- case "SSS":
209
- return a.s(o.$ms, 3, "0");
210
- case "Z":
211
- return l;
212
- }
213
- return null;
214
- })(E) || l.replace(":", "");
215
- }));
216
- }, r.utcOffset = function() {
217
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
218
- }, r.diff = function(t, o, n) {
219
- var d, l = this, g = a.p(o), B = p(t), z = (B.utcOffset() - this.utcOffset()) * u, C = this - B, I = function() {
220
- return a.m(l, B);
221
- };
222
- switch (g) {
223
- case q:
224
- d = I() / 12;
225
- break;
226
- case T:
227
- d = I();
228
- break;
229
- case F:
230
- d = I() / 3;
231
- break;
232
- case h:
233
- d = (C - z) / 6048e5;
234
- break;
235
- case M:
236
- d = (C - z) / 864e5;
237
- break;
238
- case L:
239
- d = C / O;
240
- break;
241
- case w:
242
- d = C / u;
243
- break;
244
- case $:
245
- d = C / v;
246
- break;
247
- default:
248
- d = C;
249
- }
250
- return n ? d : a.a(d);
251
- }, r.daysInMonth = function() {
252
- return this.endOf(T).$D;
253
- }, r.$locale = function() {
254
- return m[this.$L];
255
- }, r.locale = function(t, o) {
256
- if (!t) return this.$L;
257
- var n = this.clone(), d = D(t, o, !0);
258
- return d && (n.$L = d), n;
259
- }, r.clone = function() {
260
- return a.w(this.$d, this);
261
- }, r.toDate = function() {
262
- return new Date(this.valueOf());
263
- }, r.toJSON = function() {
264
- return this.isValid() ? this.toISOString() : null;
265
- }, r.toISOString = function() {
266
- return this.$d.toISOString();
267
- }, r.toString = function() {
268
- return this.$d.toUTCString();
269
- }, s;
270
- })(), k = b.prototype;
271
- return p.prototype = k, [["$ms", _], ["$s", $], ["$m", w], ["$H", L], ["$W", M], ["$M", T], ["$y", q], ["$D", y]].forEach((function(s) {
272
- k[s[1]] = function(r) {
273
- return this.$g(r, s[0], s[1]);
274
- };
275
- })), p.extend = function(s, r) {
276
- return s.$i || (s(r, b, p), s.$i = !0), p;
277
- }, p.locale = D, p.isDayjs = e, p.unix = function(s) {
278
- return p(1e3 * s);
279
- }, p.en = m[H], p.Ls = m, p.p = {}, p;
280
- }));
281
- })(tt)), tt.exports;
282
- }
283
- var Lt = Yt();
284
- const J = /* @__PURE__ */ U(Lt);
285
- var et = { exports: {} }, Ot = et.exports, pt;
286
- function Tt() {
287
- return pt || (pt = 1, (function(x, P) {
288
- (function(v, u) {
289
- x.exports = u();
290
- })(Ot, (function() {
291
- var v = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
292
- return function(u, O, _) {
293
- var $ = O.prototype, w = $.format;
294
- _.en.formats = v, $.format = function(L) {
295
- L === void 0 && (L = "YYYY-MM-DDTHH:mm:ssZ");
296
- var M = this.$locale().formats, h = (function(T, F) {
297
- return T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(q, y, A) {
298
- var c = A && A.toUpperCase();
299
- return y || F[A] || v[A] || F[c].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(f, Y, S) {
300
- return Y || S.slice(1);
301
- }));
302
- }));
303
- })(L, M === void 0 ? {} : M);
304
- return w.call(this, h);
305
- };
306
- };
307
- }));
308
- })(et)), et.exports;
309
- }
310
- var bt = Tt();
311
- const kt = /* @__PURE__ */ U(bt);
312
- var rt = { exports: {} }, At = rt.exports, $t;
313
- function Ht() {
314
- return $t || ($t = 1, (function(x, P) {
315
- (function(v, u) {
316
- x.exports = u();
317
- })(At, (function() {
318
- return function(v, u, O) {
319
- v = v || {};
320
- var _ = u.prototype, $ = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
321
- function w(M, h, T, F) {
322
- return _.fromToBase(M, h, T, F);
323
- }
324
- O.en.relativeTime = $, _.fromToBase = function(M, h, T, F, q) {
325
- for (var y, A, c, f = T.$locale().relativeTime || $, Y = v.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], S = Y.length, j = 0; j < S; j += 1) {
326
- var H = Y[j];
327
- H.d && (y = F ? O(M).diff(T, H.d, !0) : T.diff(M, H.d, !0));
328
- var m = (v.rounding || Math.round)(Math.abs(y));
329
- if (c = y > 0, m <= H.r || !H.r) {
330
- m <= 1 && j > 0 && (H = Y[j - 1]);
331
- var i = f[H.l];
332
- q && (m = q("" + m)), A = typeof i == "string" ? i.replace("%d", m) : i(m, h, H.l, c);
333
- break;
334
- }
335
- }
336
- if (h) return A;
337
- var e = c ? f.future : f.past;
338
- return typeof e == "function" ? e(A) : e.replace("%s", A);
339
- }, _.to = function(M, h) {
340
- return w(M, h, this, !0);
341
- }, _.from = function(M, h) {
342
- return w(M, h, this);
343
- };
344
- var L = function(M) {
345
- return M.$u ? O.utc() : O();
346
- };
347
- _.toNow = function(M) {
348
- return this.to(L(this), M);
349
- }, _.fromNow = function(M) {
350
- return this.from(L(this), M);
351
- };
352
- };
353
- }));
354
- })(rt)), rt.exports;
355
- }
356
- var Ft = Ht();
357
- const Bt = /* @__PURE__ */ U(Ft);
358
- var nt = { exports: {} }, qt = nt.exports, vt;
359
- function zt() {
360
- return vt || (vt = 1, (function(x, P) {
361
- (function(v, u) {
362
- x.exports = u();
363
- })(qt, (function() {
364
- return function(v, u, O) {
365
- u.prototype.isToday = function() {
366
- var _ = "YYYY-MM-DD", $ = O();
367
- return this.format(_) === $.format(_);
368
- };
369
- };
370
- }));
371
- })(nt)), nt.exports;
372
- }
373
- var jt = zt();
374
- const Ct = /* @__PURE__ */ U(jt);
375
- var st = { exports: {} }, Et = st.exports, Mt;
376
- function It() {
377
- return Mt || (Mt = 1, (function(x, P) {
378
- (function(v, u) {
379
- x.exports = u();
380
- })(Et, (function() {
381
- return function(v, u, O) {
382
- u.prototype.isBetween = function(_, $, w, L) {
383
- var M = O(_), h = O($), T = (L = L || "()")[0] === "(", F = L[1] === ")";
384
- return (T ? this.isAfter(M, w) : !this.isBefore(M, w)) && (F ? this.isBefore(h, w) : !this.isAfter(h, w)) || (T ? this.isBefore(M, w) : !this.isAfter(M, w)) && (F ? this.isAfter(h, w) : !this.isBefore(h, w));
385
- };
386
- };
387
- }));
388
- })(st)), st.exports;
389
- }
390
- var Pt = It();
391
- const Rt = /* @__PURE__ */ U(Pt);
392
- var it = { exports: {} }, Zt = it.exports, yt;
393
- function Wt() {
394
- return yt || (yt = 1, (function(x, P) {
395
- (function(v, u) {
396
- x.exports = u();
397
- })(Zt, (function() {
398
- return function(v, u) {
399
- u.prototype.isSameOrBefore = function(O, _) {
400
- return this.isSame(O, _) || this.isBefore(O, _);
401
- };
402
- };
403
- }));
404
- })(it)), it.exports;
405
- }
406
- var Nt = Wt();
407
- const Ut = /* @__PURE__ */ U(Nt);
408
- var ot = { exports: {} }, Jt = ot.exports, xt;
409
- function Vt() {
410
- return xt || (xt = 1, (function(x, P) {
411
- (function(v, u) {
412
- x.exports = u();
413
- })(Jt, (function() {
414
- return function(v, u) {
415
- u.prototype.isSameOrAfter = function(O, _) {
416
- return this.isSame(O, _) || this.isAfter(O, _);
417
- };
418
- };
419
- }));
420
- })(ot)), ot.exports;
421
- }
422
- var Qt = Vt();
423
- const Xt = /* @__PURE__ */ U(Qt);
424
- var at = { exports: {} }, Gt = at.exports, _t;
425
- function Kt() {
426
- return _t || (_t = 1, (function(x, P) {
427
- (function(v, u) {
428
- x.exports = u();
429
- })(Gt, (function() {
430
- var v, u, O = 1e3, _ = 6e4, $ = 36e5, w = 864e5, L = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = 31536e6, h = 2628e6, T = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, F = { years: M, months: h, days: w, hours: $, minutes: _, seconds: O, milliseconds: 1, weeks: 6048e5 }, q = function(m) {
431
- return m instanceof j;
432
- }, y = function(m, i, e) {
433
- return new j(m, e, i.$l);
434
- }, A = function(m) {
435
- return u.p(m) + "s";
436
- }, c = function(m) {
437
- return m < 0;
438
- }, f = function(m) {
439
- return c(m) ? Math.ceil(m) : Math.floor(m);
440
- }, Y = function(m) {
441
- return Math.abs(m);
442
- }, S = function(m, i) {
443
- return m ? c(m) ? { negative: !0, format: "" + Y(m) + i } : { negative: !1, format: "" + m + i } : { negative: !1, format: "" };
444
- }, j = (function() {
445
- function m(e, D, p) {
446
- var a = this;
447
- if (this.$d = {}, this.$l = p, e === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), D) return y(e * F[A(D)], this);
448
- if (typeof e == "number") return this.$ms = e, this.parseFromMilliseconds(), this;
449
- if (typeof e == "object") return Object.keys(e).forEach((function(s) {
450
- a.$d[A(s)] = e[s];
451
- })), this.calMilliseconds(), this;
452
- if (typeof e == "string") {
453
- var b = e.match(T);
454
- if (b) {
455
- var k = b.slice(2).map((function(s) {
456
- return s != null ? Number(s) : 0;
457
- }));
458
- return this.$d.years = k[0], this.$d.months = k[1], this.$d.weeks = k[2], this.$d.days = k[3], this.$d.hours = k[4], this.$d.minutes = k[5], this.$d.seconds = k[6], this.calMilliseconds(), this;
459
- }
460
- }
461
- return this;
462
- }
463
- var i = m.prototype;
464
- return i.calMilliseconds = function() {
465
- var e = this;
466
- this.$ms = Object.keys(this.$d).reduce((function(D, p) {
467
- return D + (e.$d[p] || 0) * F[p];
468
- }), 0);
469
- }, i.parseFromMilliseconds = function() {
470
- var e = this.$ms;
471
- this.$d.years = f(e / M), e %= M, this.$d.months = f(e / h), e %= h, this.$d.days = f(e / w), e %= w, this.$d.hours = f(e / $), e %= $, this.$d.minutes = f(e / _), e %= _, this.$d.seconds = f(e / O), e %= O, this.$d.milliseconds = e;
472
- }, i.toISOString = function() {
473
- var e = S(this.$d.years, "Y"), D = S(this.$d.months, "M"), p = +this.$d.days || 0;
474
- this.$d.weeks && (p += 7 * this.$d.weeks);
475
- var a = S(p, "D"), b = S(this.$d.hours, "H"), k = S(this.$d.minutes, "M"), s = this.$d.seconds || 0;
476
- this.$d.milliseconds && (s += this.$d.milliseconds / 1e3, s = Math.round(1e3 * s) / 1e3);
477
- var r = S(s, "S"), t = e.negative || D.negative || a.negative || b.negative || k.negative || r.negative, o = b.format || k.format || r.format ? "T" : "", n = (t ? "-" : "") + "P" + e.format + D.format + a.format + o + b.format + k.format + r.format;
478
- return n === "P" || n === "-P" ? "P0D" : n;
479
- }, i.toJSON = function() {
480
- return this.toISOString();
481
- }, i.format = function(e) {
482
- var D = e || "YYYY-MM-DDTHH:mm:ss", p = { Y: this.$d.years, YY: u.s(this.$d.years, 2, "0"), YYYY: u.s(this.$d.years, 4, "0"), M: this.$d.months, MM: u.s(this.$d.months, 2, "0"), D: this.$d.days, DD: u.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: u.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: u.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: u.s(this.$d.seconds, 2, "0"), SSS: u.s(this.$d.milliseconds, 3, "0") };
483
- return D.replace(L, (function(a, b) {
484
- return b || String(p[a]);
485
- }));
486
- }, i.as = function(e) {
487
- return this.$ms / F[A(e)];
488
- }, i.get = function(e) {
489
- var D = this.$ms, p = A(e);
490
- return p === "milliseconds" ? D %= 1e3 : D = p === "weeks" ? f(D / F[p]) : this.$d[p], D || 0;
491
- }, i.add = function(e, D, p) {
492
- var a;
493
- return a = D ? e * F[A(D)] : q(e) ? e.$ms : y(e, this).$ms, y(this.$ms + a * (p ? -1 : 1), this);
494
- }, i.subtract = function(e, D) {
495
- return this.add(e, D, !0);
496
- }, i.locale = function(e) {
497
- var D = this.clone();
498
- return D.$l = e, D;
499
- }, i.clone = function() {
500
- return y(this.$ms, this);
501
- }, i.humanize = function(e) {
502
- return v().add(this.$ms, "ms").locale(this.$l).fromNow(!e);
503
- }, i.valueOf = function() {
504
- return this.asMilliseconds();
505
- }, i.milliseconds = function() {
506
- return this.get("milliseconds");
507
- }, i.asMilliseconds = function() {
508
- return this.as("milliseconds");
509
- }, i.seconds = function() {
510
- return this.get("seconds");
511
- }, i.asSeconds = function() {
512
- return this.as("seconds");
513
- }, i.minutes = function() {
514
- return this.get("minutes");
515
- }, i.asMinutes = function() {
516
- return this.as("minutes");
517
- }, i.hours = function() {
518
- return this.get("hours");
519
- }, i.asHours = function() {
520
- return this.as("hours");
521
- }, i.days = function() {
522
- return this.get("days");
523
- }, i.asDays = function() {
524
- return this.as("days");
525
- }, i.weeks = function() {
526
- return this.get("weeks");
527
- }, i.asWeeks = function() {
528
- return this.as("weeks");
529
- }, i.months = function() {
530
- return this.get("months");
531
- }, i.asMonths = function() {
532
- return this.as("months");
533
- }, i.years = function() {
534
- return this.get("years");
535
- }, i.asYears = function() {
536
- return this.as("years");
537
- }, m;
538
- })(), H = function(m, i, e) {
539
- return m.add(i.years() * e, "y").add(i.months() * e, "M").add(i.days() * e, "d").add(i.hours() * e, "h").add(i.minutes() * e, "m").add(i.seconds() * e, "s").add(i.milliseconds() * e, "ms");
540
- };
541
- return function(m, i, e) {
542
- v = e, u = e().$utils(), e.duration = function(a, b) {
543
- var k = e.locale();
544
- return y(a, { $l: k }, b);
545
- }, e.isDuration = q;
546
- var D = i.prototype.add, p = i.prototype.subtract;
547
- i.prototype.add = function(a, b) {
548
- return q(a) ? H(this, a, 1) : D.bind(this)(a, b);
549
- }, i.prototype.subtract = function(a, b) {
550
- return q(a) ? H(this, a, -1) : p.bind(this)(a, b);
551
- };
552
- };
553
- }));
554
- })(at)), at.exports;
555
- }
556
- var te = Kt();
557
- const ee = /* @__PURE__ */ U(te);
558
- var ut = { exports: {} }, re = ut.exports, Dt;
559
- function ne() {
560
- return Dt || (Dt = 1, (function(x, P) {
561
- (function(v, u) {
562
- x.exports = u();
563
- })(re, (function() {
564
- var v = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, u = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, O = /\d/, _ = /\d\d/, $ = /\d\d?/, w = /\d*[^-_:/,()\s\d]+/, L = {}, M = function(c) {
565
- return (c = +c) + (c > 68 ? 1900 : 2e3);
566
- }, h = function(c) {
567
- return function(f) {
568
- this[c] = +f;
569
- };
570
- }, T = [/[+-]\d\d:?(\d\d)?|Z/, function(c) {
571
- (this.zone || (this.zone = {})).offset = (function(f) {
572
- if (!f || f === "Z") return 0;
573
- var Y = f.match(/([+-]|\d\d)/g), S = 60 * Y[1] + (+Y[2] || 0);
574
- return S === 0 ? 0 : Y[0] === "+" ? -S : S;
575
- })(c);
576
- }], F = function(c) {
577
- var f = L[c];
578
- return f && (f.indexOf ? f : f.s.concat(f.f));
579
- }, q = function(c, f) {
580
- var Y, S = L.meridiem;
581
- if (S) {
582
- for (var j = 1; j <= 24; j += 1) if (c.indexOf(S(j, 0, f)) > -1) {
583
- Y = j > 12;
584
- break;
585
- }
586
- } else Y = c === (f ? "pm" : "PM");
587
- return Y;
588
- }, y = { A: [w, function(c) {
589
- this.afternoon = q(c, !1);
590
- }], a: [w, function(c) {
591
- this.afternoon = q(c, !0);
592
- }], Q: [O, function(c) {
593
- this.month = 3 * (c - 1) + 1;
594
- }], S: [O, function(c) {
595
- this.milliseconds = 100 * +c;
596
- }], SS: [_, function(c) {
597
- this.milliseconds = 10 * +c;
598
- }], SSS: [/\d{3}/, function(c) {
599
- this.milliseconds = +c;
600
- }], s: [$, h("seconds")], ss: [$, h("seconds")], m: [$, h("minutes")], mm: [$, h("minutes")], H: [$, h("hours")], h: [$, h("hours")], HH: [$, h("hours")], hh: [$, h("hours")], D: [$, h("day")], DD: [_, h("day")], Do: [w, function(c) {
601
- var f = L.ordinal, Y = c.match(/\d+/);
602
- if (this.day = Y[0], f) for (var S = 1; S <= 31; S += 1) f(S).replace(/\[|\]/g, "") === c && (this.day = S);
603
- }], w: [$, h("week")], ww: [_, h("week")], M: [$, h("month")], MM: [_, h("month")], MMM: [w, function(c) {
604
- var f = F("months"), Y = (F("monthsShort") || f.map((function(S) {
605
- return S.slice(0, 3);
606
- }))).indexOf(c) + 1;
607
- if (Y < 1) throw new Error();
608
- this.month = Y % 12 || Y;
609
- }], MMMM: [w, function(c) {
610
- var f = F("months").indexOf(c) + 1;
611
- if (f < 1) throw new Error();
612
- this.month = f % 12 || f;
613
- }], Y: [/[+-]?\d+/, h("year")], YY: [_, function(c) {
614
- this.year = M(c);
615
- }], YYYY: [/\d{4}/, h("year")], Z: T, ZZ: T };
616
- function A(c) {
617
- var f, Y;
618
- f = c, Y = L && L.formats;
619
- for (var S = (c = f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(p, a, b) {
620
- var k = b && b.toUpperCase();
621
- return a || Y[b] || v[b] || Y[k].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(s, r, t) {
622
- return r || t.slice(1);
623
- }));
624
- }))).match(u), j = S.length, H = 0; H < j; H += 1) {
625
- var m = S[H], i = y[m], e = i && i[0], D = i && i[1];
626
- S[H] = D ? { regex: e, parser: D } : m.replace(/^\[|\]$/g, "");
627
- }
628
- return function(p) {
629
- for (var a = {}, b = 0, k = 0; b < j; b += 1) {
630
- var s = S[b];
631
- if (typeof s == "string") k += s.length;
632
- else {
633
- var r = s.regex, t = s.parser, o = p.slice(k), n = r.exec(o)[0];
634
- t.call(a, n), p = p.replace(n, "");
635
- }
636
- }
637
- return (function(d) {
638
- var l = d.afternoon;
639
- if (l !== void 0) {
640
- var g = d.hours;
641
- l ? g < 12 && (d.hours += 12) : g === 12 && (d.hours = 0), delete d.afternoon;
642
- }
643
- })(a), a;
644
- };
645
- }
646
- return function(c, f, Y) {
647
- Y.p.customParseFormat = !0, c && c.parseTwoDigitYear && (M = c.parseTwoDigitYear);
648
- var S = f.prototype, j = S.parse;
649
- S.parse = function(H) {
650
- var m = H.date, i = H.utc, e = H.args;
651
- this.$u = i;
652
- var D = e[1];
653
- if (typeof D == "string") {
654
- var p = e[2] === !0, a = e[3] === !0, b = p || a, k = e[2];
655
- a && (k = e[2]), L = this.$locale(), !p && k && (L = Y.Ls[k]), this.$d = (function(o, n, d, l) {
656
- try {
657
- if (["x", "X"].indexOf(n) > -1) return new Date((n === "X" ? 1e3 : 1) * o);
658
- var g = A(n)(o), B = g.year, z = g.month, C = g.day, I = g.hours, V = g.minutes, W = g.seconds, X = g.milliseconds, Z = g.zone, E = g.week, R = /* @__PURE__ */ new Date(), N = C || (B || z ? 1 : R.getDate()), Q = B || R.getFullYear(), G = 0;
659
- B && !z || (G = z > 0 ? z - 1 : R.getMonth());
660
- var K, ft = I || 0, dt = V || 0, ht = W || 0, lt = X || 0;
661
- return Z ? new Date(Date.UTC(Q, G, N, ft, dt, ht, lt + 60 * Z.offset * 1e3)) : d ? new Date(Date.UTC(Q, G, N, ft, dt, ht, lt)) : (K = new Date(Q, G, N, ft, dt, ht, lt), E && (K = l(K).week(E).toDate()), K);
662
- } catch {
663
- return /* @__PURE__ */ new Date("");
664
- }
665
- })(m, D, i, Y), this.init(), k && k !== !0 && (this.$L = this.locale(k).$L), b && m != this.format(D) && (this.$d = /* @__PURE__ */ new Date("")), L = {};
666
- } else if (D instanceof Array) for (var s = D.length, r = 1; r <= s; r += 1) {
667
- e[1] = D[r - 1];
668
- var t = Y.apply(this, e);
669
- if (t.isValid()) {
670
- this.$d = t.$d, this.$L = t.$L, this.init();
671
- break;
672
- }
673
- r === s && (this.$d = /* @__PURE__ */ new Date(""));
674
- }
675
- else j.call(this, H);
676
- };
677
- };
678
- }));
679
- })(ut)), ut.exports;
680
- }
681
- var se = ne();
682
- const ie = /* @__PURE__ */ U(se);
683
- var ct = { exports: {} }, oe = ct.exports, gt;
684
- function ae() {
685
- return gt || (gt = 1, (function(x, P) {
686
- (function(v, u) {
687
- x.exports = u(Yt());
688
- })(oe, (function(v) {
689
- function u(y) {
690
- return y && typeof y == "object" && "default" in y ? y : { default: y };
691
- }
692
- var O = u(v), _ = "января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"), $ = "январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"), w = "янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"), L = "янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"), M = /D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;
693
- function h(y, A, c) {
694
- var f, Y;
695
- return c === "m" ? A ? "минута" : "минуту" : y + " " + (f = +y, Y = { mm: A ? "минута_минуты_минут" : "минуту_минуты_минут", hh: "час_часа_часов", dd: "день_дня_дней", MM: "месяц_месяца_месяцев", yy: "год_года_лет" }[c].split("_"), f % 10 == 1 && f % 100 != 11 ? Y[0] : f % 10 >= 2 && f % 10 <= 4 && (f % 100 < 10 || f % 100 >= 20) ? Y[1] : Y[2]);
696
- }
697
- var T = function(y, A) {
698
- return M.test(A) ? _[y.month()] : $[y.month()];
699
- };
700
- T.s = $, T.f = _;
701
- var F = function(y, A) {
702
- return M.test(A) ? w[y.month()] : L[y.month()];
703
- };
704
- F.s = L, F.f = w;
705
- var q = { name: "ru", weekdays: "воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"), weekdaysShort: "вск_пнд_втр_срд_чтв_птн_сбт".split("_"), weekdaysMin: "вс_пн_вт_ср_чт_пт_сб".split("_"), months: T, monthsShort: F, weekStart: 1, yearStart: 4, formats: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY г.", LLL: "D MMMM YYYY г., H:mm", LLLL: "dddd, D MMMM YYYY г., H:mm" }, relativeTime: { future: "через %s", past: "%s назад", s: "несколько секунд", m: h, mm: h, h: "час", hh: h, d: "день", dd: h, M: "месяц", MM: h, y: "год", yy: h }, ordinal: function(y) {
706
- return y;
707
- }, meridiem: function(y) {
708
- return y < 4 ? "ночи" : y < 12 ? "утра" : y < 17 ? "дня" : "вечера";
709
- } };
710
- return O.default.locale(q, null, !0), q;
711
- }));
712
- })(ct)), ct.exports;
713
- }
714
- ae();
715
- J.extend(kt);
716
- J.extend(Bt);
717
- J.extend(Ct);
718
- J.extend(Rt);
719
- J.extend(Ut);
720
- J.extend(Xt);
721
- J.extend(ee);
722
- J.extend(ie);
723
- J.locale("ru");
724
- function ue(x) {
725
- if (!x) return;
726
- const P = Array.isArray(x) ? x : [x], v = {
727
- image: ["image/*"],
728
- pdf: ["application/pdf"],
729
- excel: [
730
- "application/vnd.ms-excel",
731
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
732
- ],
733
- word: [
734
- "application/msword",
735
- "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
736
- ],
737
- all: ["*/*"]
738
- };
739
- return P.flatMap((u) => v[u] || []).join(",");
740
- }
741
- function de(x = {}) {
742
- return new Promise((P) => {
743
- const v = document.createElement("input");
744
- v.type = "file", v.style.display = "none", x.multiple && x.maxFiles && x.maxFiles > 1 && (v.multiple = !0);
745
- const u = ue(x.accept);
746
- u && (v.accept = u), v.addEventListener("change", (O) => {
747
- const _ = O.target;
748
- let $ = [];
749
- if (_.files && _.files.length > 0 && ($ = Array.from(_.files), x.maxFiles && $.length > x.maxFiles && ($ = $.slice(0, x.maxFiles)), x.maxFileSize)) {
750
- const w = St(x.maxFileSize);
751
- $ = $.filter((L) => L.size <= w);
752
- }
753
- P($), document.body.removeChild(v);
754
- }), document.body.appendChild(v), v.click();
755
- });
756
- }
757
- export {
758
- J as d,
759
- de as o
760
- };