prlg-ui 1.5.8 → 1.6.1

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.
@@ -0,0 +1,262 @@
1
+ import { defineComponent as g, computed as w, createElementBlock as u, openBlock as o, normalizeClass as h, unref as r, createElementVNode as l, createVNode as f, createBlock as p, mergeModels as y, useModel as b, useTemplateRef as k, ref as C, reactive as R, shallowRef as $, onMounted as x, Transition as A, withCtx as z, withDirectives as S, Fragment as F, renderList as B, resolveDynamicComponent as L, toDisplayString as _, vShow as T, createCommentVNode as I, vModelText as E, onUnmounted as D, withModifiers as U, createTextVNode as N } from "vue";
2
+ import { g as M, I as O, F as P, p as j } from "../Image-CqmYPuqB.js";
3
+ import { C as H, _ as V, F as q } from "../FileIcon-DkEbi-bi.js";
4
+ import { I as X, P as Y, S as G, A as J, C as K, T as Q, B as W } from "../TrashIcon-D9034G7A.js";
5
+ import { o as Z } from "../onClickOutside.util-CJueL_Rz.js";
6
+ import { d as ee } from "../dayjs.util-RJe77c19.js";
7
+ const se = { class: "chat-file__content" }, te = /* @__PURE__ */ g({
8
+ __name: "ChatFile",
9
+ props: {
10
+ file: {}
11
+ },
12
+ emits: ["deleteFile"],
13
+ setup(a, { emit: c }) {
14
+ const s = c, d = w(() => URL.createObjectURL(a.file));
15
+ return (t, m) => (o(), u("div", {
16
+ class: h(["chat-file", { "chat-file--image": r(M)(t.file.type) === "image" }])
17
+ }, [
18
+ l("button", {
19
+ class: "chat-file__delete",
20
+ onClick: m[0] || (m[0] = (e) => s("deleteFile", t.file))
21
+ }, [
22
+ f(r(H))
23
+ ]),
24
+ l("div", se, [
25
+ r(M)(t.file.type) === "image" ? (o(), p(r(O), {
26
+ key: 0,
27
+ src: d.value,
28
+ alt: t.file.name,
29
+ size: "large",
30
+ "fill-screen": ""
31
+ }, null, 8, ["src", "alt"])) : (o(), p(r(P), {
32
+ key: 1,
33
+ file: t.file,
34
+ outlined: !1
35
+ }, null, 8, ["file"]))
36
+ ])
37
+ ], 2));
38
+ }
39
+ }), ae = /* @__PURE__ */ V(te, [["__scopeId", "data-v-4956400c"]]);
40
+ function le(a) {
41
+ if (!a) return;
42
+ const c = Array.isArray(a) ? a : [a], s = {
43
+ image: ["image/*"],
44
+ pdf: ["application/pdf"],
45
+ excel: [
46
+ "application/vnd.ms-excel",
47
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
48
+ ],
49
+ word: [
50
+ "application/msword",
51
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
52
+ ],
53
+ all: ["*/*"]
54
+ };
55
+ return c.flatMap((d) => s[d] || []).join(",");
56
+ }
57
+ function ie(a = {}) {
58
+ return new Promise((c) => {
59
+ const s = document.createElement("input");
60
+ s.type = "file", s.style.display = "none", a.maxFiles && a.maxFiles > 1 && (s.multiple = !0);
61
+ const d = le(a.accept);
62
+ d && (s.accept = d), s.addEventListener("change", (t) => {
63
+ const m = t.target;
64
+ let e = [];
65
+ if (m.files && m.files.length > 0 && (e = Array.from(m.files), a.maxFiles && e.length > a.maxFiles && (e = e.slice(0, a.maxFiles)), a.maxFileSize)) {
66
+ const i = j(a.maxFileSize);
67
+ e = e.filter((n) => n.size <= i);
68
+ }
69
+ c(e), document.body.removeChild(s);
70
+ }), document.body.appendChild(s), s.click();
71
+ });
72
+ }
73
+ const ne = { class: "chat-field-actions" }, oe = {
74
+ ref: "overlay",
75
+ class: "chat-field-actions__overlay"
76
+ }, ce = ["onClick"], de = { class: "chat-field-actions__overlay-item__label" }, me = ["disabled"], re = /* @__PURE__ */ g({
77
+ __name: "ChatFieldActions",
78
+ props: /* @__PURE__ */ y({
79
+ actions: {},
80
+ disabled: { type: Boolean, default: !1 },
81
+ multiple: { type: Boolean, default: !0 }
82
+ }, {
83
+ modelValue: {},
84
+ modelModifiers: {}
85
+ }),
86
+ emits: ["update:modelValue"],
87
+ setup(a) {
88
+ const c = b(a, "modelValue"), s = k("button"), d = k("overlay"), t = C(!1), m = R({
89
+ image: {
90
+ icon: $(X),
91
+ label: "Добавить изображение"
92
+ },
93
+ file: {
94
+ icon: $(q),
95
+ label: "Добавить файл"
96
+ }
97
+ }), e = (i) => {
98
+ ie({
99
+ accept: i === "image" ? ["image"] : ["pdf", "excel", "word"],
100
+ maxFileSize: "5mb",
101
+ maxFiles: 1
102
+ }).then((n) => {
103
+ c.value ? c.value = a.multiple ? [...c.value, ...n] : n : c.value = [...n], t.value = !1;
104
+ });
105
+ };
106
+ return x(() => {
107
+ Z(d.value, () => {
108
+ t.value = !1;
109
+ }, { ignore: [s.value] });
110
+ }), (i, n) => (o(), u("div", ne, [
111
+ f(A, { name: "slide-up" }, {
112
+ default: z(() => [
113
+ S(l("div", oe, [
114
+ (o(!0), u(F, null, B(i.actions, (v) => (o(), u("div", {
115
+ class: "chat-field-actions__overlay-item",
116
+ key: v,
117
+ onClick: (we) => e(v)
118
+ }, [
119
+ (o(), p(L(m[v].icon), { class: "chat-field-actions__overlay-item__icon" })),
120
+ l("span", de, _(m[v].label), 1)
121
+ ], 8, ce))), 128))
122
+ ], 512), [
123
+ [T, t.value]
124
+ ])
125
+ ]),
126
+ _: 1
127
+ }),
128
+ l("button", {
129
+ ref: "button",
130
+ onClick: n[0] || (n[0] = (v) => t.value = !t.value),
131
+ class: h(["chat-field-actions__button", { "chat-field-actions__button--active": t.value }]),
132
+ disabled: i.disabled
133
+ }, [
134
+ f(r(Y))
135
+ ], 10, me)
136
+ ]));
137
+ }
138
+ }), ue = /* @__PURE__ */ V(re, [["__scopeId", "data-v-6b295528"]]), fe = { class: "chat-field" }, _e = {
139
+ key: 0,
140
+ class: "chat-field__files"
141
+ }, pe = { class: "chat-field__wrapper" }, ve = ["placeholder"], ze = /* @__PURE__ */ g({
142
+ __name: "ChatField",
143
+ props: /* @__PURE__ */ y({
144
+ viewActions: { type: Boolean, default: !1 },
145
+ actions: { default: () => ["file", "image"] },
146
+ placeholder: { default: "Введите сообщение" },
147
+ disabled: { type: Boolean, default: !1 }
148
+ }, {
149
+ message: { required: !0 },
150
+ messageModifiers: {},
151
+ files: {},
152
+ filesModifiers: {}
153
+ }),
154
+ emits: /* @__PURE__ */ y(["sendMessage"], ["update:message", "update:files"]),
155
+ setup(a, { emit: c }) {
156
+ const s = c, d = b(a, "message"), t = b(a, "files"), m = (e) => {
157
+ t.value && (t.value = t.value.filter((i) => i.name !== e.name));
158
+ };
159
+ return (e, i) => (o(), u("div", fe, [
160
+ t.value && t.value.length > 0 ? (o(), u("div", _e, [
161
+ (o(!0), u(F, null, B(t.value, (n) => (o(), p(ae, {
162
+ key: n.name,
163
+ file: n,
164
+ onDeleteFile: m
165
+ }, null, 8, ["file"]))), 128))
166
+ ])) : I("", !0),
167
+ l("div", pe, [
168
+ e.viewActions && e.actions.length > 0 ? (o(), p(ue, {
169
+ key: 0,
170
+ modelValue: t.value,
171
+ "onUpdate:modelValue": i[0] || (i[0] = (n) => t.value = n),
172
+ actions: e.actions,
173
+ disabled: e.disabled
174
+ }, null, 8, ["modelValue", "actions", "disabled"])) : I("", !0),
175
+ S(l("input", {
176
+ "onUpdate:modelValue": i[1] || (i[1] = (n) => d.value = n),
177
+ class: "chat-field__input",
178
+ placeholder: e.placeholder
179
+ }, null, 8, ve), [
180
+ [E, d.value]
181
+ ]),
182
+ l("button", {
183
+ class: "chat-field__button",
184
+ onClick: i[2] || (i[2] = (n) => s("sendMessage"))
185
+ }, [
186
+ f(r(G))
187
+ ])
188
+ ])
189
+ ]));
190
+ }
191
+ }), ge = { class: "message__avatar" }, he = ["src"], ye = { class: "message__content" }, be = { class: "message__info" }, Ce = { class: "message__name" }, Fe = { class: "message__time" }, ke = { class: "message__text" }, $e = { class: "message-actions__item" }, Ie = { class: "message-actions__item" }, Le = /* @__PURE__ */ g({
192
+ __name: "Message",
193
+ props: {
194
+ message: {},
195
+ position: { default: "left" }
196
+ },
197
+ setup(a) {
198
+ const c = w(() => [
199
+ "message",
200
+ `message--${a.position}`
201
+ ]), s = C(null), d = C(!1), t = (e) => {
202
+ s.value && (d.value = !0, s.value.style.left = `${e.offsetX}px`, s.value.style.top = `${e.offsetY}px`);
203
+ }, m = (e) => {
204
+ s.value && e.composedPath().includes(s.value) || (d.value = !1);
205
+ };
206
+ return x(() => {
207
+ document.addEventListener("click", m);
208
+ }), D(() => {
209
+ document.removeEventListener("click", m);
210
+ }), (e, i) => (o(), u(F, null, [
211
+ l("div", {
212
+ class: h(c.value),
213
+ onContextmenu: U(t, ["right", "prevent"])
214
+ }, [
215
+ l("div", ge, [
216
+ e.message.user.avatar ? (o(), u("img", {
217
+ key: 1,
218
+ src: e.message.user.avatar,
219
+ alt: "avatar"
220
+ }, null, 8, he)) : (o(), p(r(J), { key: 0 }))
221
+ ]),
222
+ l("div", ye, [
223
+ l("div", be, [
224
+ l("div", Ce, [
225
+ l("strong", null, _(e.message.user.name) + " " + _(e.message.user.lastname), 1),
226
+ N(" (" + _(e.message.user.post) + ") ", 1)
227
+ ]),
228
+ l("div", Fe, _(r(ee)(e.message.created_at).format("HH:mm")), 1)
229
+ ]),
230
+ l("p", ke, _(e.message.text), 1)
231
+ ])
232
+ ], 34),
233
+ l("div", {
234
+ ref_key: "actionsRef",
235
+ ref: s,
236
+ class: h(["message-actions", { "message-actions--visible": d.value }])
237
+ }, [
238
+ l("div", $e, [
239
+ f(r(K), { class: "message-actions__item-icon" }),
240
+ i[0] || (i[0] = l("span", { class: "message-actions__item-text" }, "Копировать", -1))
241
+ ]),
242
+ l("div", Ie, [
243
+ f(r(Q), { class: "message-actions__item-icon" }),
244
+ i[1] || (i[1] = l("span", { class: "message-actions__item-text" }, "Удалить", -1))
245
+ ])
246
+ ], 2)
247
+ ], 64));
248
+ }
249
+ }), Me = { class: "bonus-summary" }, Te = /* @__PURE__ */ g({
250
+ __name: "BonusSummary",
251
+ setup(a) {
252
+ return (c, s) => (o(), u("div", Me, [
253
+ f(r(W), { class: "bonus-summary__icon" }),
254
+ s[0] || (s[0] = l("div", { class: "bonus-summary__number" }, "123", -1))
255
+ ]));
256
+ }
257
+ });
258
+ export {
259
+ Te as BonusSummary,
260
+ ze as ChatField,
261
+ Le as Message
262
+ };
@@ -0,0 +1,59 @@
1
+ import { ComponentOptionsMixin } from 'vue';
2
+ import { ComponentProvideOptions } from 'vue';
3
+ import { DefineComponent } from 'vue';
4
+ import { PublicProps } from 'vue';
5
+
6
+ declare type __VLS_Props = {
7
+ viewActions?: boolean;
8
+ actions?: Array<'file' | 'image'>;
9
+ placeholder?: string;
10
+ disabled?: boolean;
11
+ };
12
+
13
+ declare type __VLS_Props_2 = {
14
+ message: Message_2;
15
+ position?: 'left' | 'right';
16
+ };
17
+
18
+ declare type __VLS_PublicProps = {
19
+ 'message': string;
20
+ 'files'?: File[];
21
+ } & __VLS_Props;
22
+
23
+ export declare const BonusSummary: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
24
+
25
+ export declare const ChatField: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
26
+ "update:message": (value: string) => any;
27
+ "update:files": (value: File[]) => any;
28
+ } & {
29
+ sendMessage: () => any;
30
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
31
+ onSendMessage?: (() => any) | undefined;
32
+ "onUpdate:message"?: ((value: string) => any) | undefined;
33
+ "onUpdate:files"?: ((value: File[]) => any) | undefined;
34
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
35
+
36
+ export declare const Message: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
37
+ actionsRef: HTMLDivElement;
38
+ }, any>;
39
+
40
+ declare interface Message_2 {
41
+ text: string;
42
+ created_at: string;
43
+ user: {
44
+ name: string;
45
+ avatar: string | null;
46
+ lastname: string;
47
+ post: string;
48
+ };
49
+ }
50
+
51
+ export { }
52
+
53
+
54
+
55
+ declare module 'vue' {
56
+ export interface GlobalComponents {
57
+ Dropdown: DefineComponent<DropdownProps>
58
+ }
59
+ }
@@ -0,0 +1 @@
1
+ "use strict";function J(B){return B&&B.__esModule&&Object.prototype.hasOwnProperty.call(B,"default")?B.default:B}var tt={exports:{}},St=tt.exports,lt;function gt(){return lt||(lt=1,function(B,W){(function(S,f){B.exports=f()})(St,function(){var S=1e3,f=6e4,T=36e5,D="millisecond",x="second",g="minute",w="hour",p="day",d="week",L="month",A="quarter",q="year",M="date",k="Invalid Date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,c=/\[([^\]]+)]|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,_={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){var r=["th","st","nd","rd"],t=s%100;return"["+s+(r[(t-20)%10]||r[t]||r[0])+"]"}},Y=function(s,r,t){var o=String(s);return!o||o.length>=r?s:""+Array(r+1-o.length).join(t)+s},I={s:Y,z:function(s){var r=-s.utcOffset(),t=Math.abs(r),o=Math.floor(t/60),n=t%60;return(r<=0?"+":"-")+Y(o,2,"0")+":"+Y(n,2,"0")},m:function s(r,t){if(r.date()<t.date())return-s(t,r);var o=12*(t.year()-r.year())+(t.month()-r.month()),n=r.clone().add(o,L),h=t-n<0,m=r.clone().add(o+(h?-1:1),L);return+(-(o+(t-n)/(h?n-m:m-n))||0)},a:function(s){return s<0?Math.ceil(s)||0:Math.floor(s)},p:function(s){return{M:L,y:q,w:d,d:p,D:M,h:w,m:g,s:x,ms:D,Q:A}[s]||String(s||"").toLowerCase().replace(/s$/,"")},u:function(s){return s===void 0}},H="en",l={};l[H]=_;var i="$isDayjsObject",e=function(s){return s instanceof O||!(!s||!s[i])},v=function s(r,t,o){var n;if(!r)return H;if(typeof r=="string"){var h=r.toLowerCase();l[h]&&(n=h),t&&(l[h]=t,n=h);var m=r.split("-");if(!n&&m.length>1)return s(m[0])}else{var y=r.name;l[y]=r,n=y}return!o&&n&&(H=n),n||!o&&H},$=function(s,r){if(e(s))return s.clone();var t=typeof r=="object"?r:{};return t.date=s,t.args=arguments,new O(t)},a=I;a.l=v,a.i=e,a.w=function(s,r){return $(s,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var O=function(){function s(t){this.$L=v(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[i]=!0}var r=s.prototype;return r.parse=function(t){this.$d=function(o){var n=o.date,h=o.utc;if(n===null)return new Date(NaN);if(a.u(n))return new Date;if(n instanceof Date)return new Date(n);if(typeof n=="string"&&!/Z$/i.test(n)){var m=n.match(u);if(m){var y=m[2]-1||0,F=(m[7]||"0").substring(0,3);return h?new Date(Date.UTC(m[1],y,m[3]||1,m[4]||0,m[5]||0,m[6]||0,F)):new Date(m[1],y,m[3]||1,m[4]||0,m[5]||0,m[6]||0,F)}}return new Date(n)}(t),this.init()},r.init=function(){var t=this.$d;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()},r.$utils=function(){return a},r.isValid=function(){return this.$d.toString()!==k},r.isSame=function(t,o){var n=$(t);return this.startOf(o)<=n&&n<=this.endOf(o)},r.isAfter=function(t,o){return $(t)<this.startOf(o)},r.isBefore=function(t,o){return this.endOf(o)<$(t)},r.$g=function(t,o,n){return a.u(t)?this[o]:this.set(n,t)},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this.$d.getTime()},r.startOf=function(t,o){var n=this,h=!!a.u(o)||o,m=a.p(t),y=function(R,P){var E=a.w(n.$u?Date.UTC(n.$y,P,R):new Date(n.$y,P,R),n);return h?E:E.endOf(p)},F=function(R,P){return a.w(n.toDate()[R].apply(n.toDate("s"),(h?[0,0,0,0]:[23,59,59,999]).slice(P)),n)},j=this.$W,C=this.$M,z=this.$D,V="set"+(this.$u?"UTC":"");switch(m){case q:return h?y(1,0):y(31,11);case L:return h?y(1,C):y(0,C+1);case d:var N=this.$locale().weekStart||0,X=(j<N?j+7:j)-N;return y(h?z-X:z+(6-X),C);case p:case M:return F(V+"Hours",0);case w:return F(V+"Minutes",1);case g:return F(V+"Seconds",2);case x:return F(V+"Milliseconds",3);default:return this.clone()}},r.endOf=function(t){return this.startOf(t,!1)},r.$set=function(t,o){var n,h=a.p(t),m="set"+(this.$u?"UTC":""),y=(n={},n[p]=m+"Date",n[M]=m+"Date",n[L]=m+"Month",n[q]=m+"FullYear",n[w]=m+"Hours",n[g]=m+"Minutes",n[x]=m+"Seconds",n[D]=m+"Milliseconds",n)[h],F=h===p?this.$D+(o-this.$W):o;if(h===L||h===q){var j=this.clone().set(M,1);j.$d[y](F),j.init(),this.$d=j.set(M,Math.min(this.$D,j.daysInMonth())).$d}else y&&this.$d[y](F);return this.init(),this},r.set=function(t,o){return this.clone().$set(t,o)},r.get=function(t){return this[a.p(t)]()},r.add=function(t,o){var n,h=this;t=Number(t);var m=a.p(o),y=function(C){var z=$(h);return a.w(z.date(z.date()+Math.round(C*t)),h)};if(m===L)return this.set(L,this.$M+t);if(m===q)return this.set(q,this.$y+t);if(m===p)return y(1);if(m===d)return y(7);var F=(n={},n[g]=f,n[w]=T,n[x]=S,n)[m]||1,j=this.$d.getTime()+t*F;return a.w(j,this)},r.subtract=function(t,o){return this.add(-1*t,o)},r.format=function(t){var o=this,n=this.$locale();if(!this.isValid())return n.invalidDate||k;var h=t||"YYYY-MM-DDTHH:mm:ssZ",m=a.z(this),y=this.$H,F=this.$m,j=this.$M,C=n.weekdays,z=n.months,V=n.meridiem,N=function(P,E,U,Q){return P&&(P[E]||P(o,h))||U[E].slice(0,Q)},X=function(P){return a.s(y%12||12,P,"0")},R=V||function(P,E,U){var Q=P<12?"AM":"PM";return U?Q.toLowerCase():Q};return h.replace(c,function(P,E){return E||function(U){switch(U){case"YY":return String(o.$y).slice(-2);case"YYYY":return a.s(o.$y,4,"0");case"M":return j+1;case"MM":return a.s(j+1,2,"0");case"MMM":return N(n.monthsShort,j,z,3);case"MMMM":return N(z,j);case"D":return o.$D;case"DD":return a.s(o.$D,2,"0");case"d":return String(o.$W);case"dd":return N(n.weekdaysMin,o.$W,C,2);case"ddd":return N(n.weekdaysShort,o.$W,C,3);case"dddd":return C[o.$W];case"H":return String(y);case"HH":return a.s(y,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return R(y,F,!0);case"A":return R(y,F,!1);case"m":return String(F);case"mm":return a.s(F,2,"0");case"s":return String(o.$s);case"ss":return a.s(o.$s,2,"0");case"SSS":return a.s(o.$ms,3,"0");case"Z":return m}return null}(P)||m.replace(":","")})},r.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},r.diff=function(t,o,n){var h,m=this,y=a.p(o),F=$(t),j=(F.utcOffset()-this.utcOffset())*f,C=this-F,z=function(){return a.m(m,F)};switch(y){case q:h=z()/12;break;case L:h=z();break;case A:h=z()/3;break;case d:h=(C-j)/6048e5;break;case p:h=(C-j)/864e5;break;case w:h=C/T;break;case g:h=C/f;break;case x:h=C/S;break;default:h=C}return n?h:a.a(h)},r.daysInMonth=function(){return this.endOf(L).$D},r.$locale=function(){return l[this.$L]},r.locale=function(t,o){if(!t)return this.$L;var n=this.clone(),h=v(t,o,!0);return h&&(n.$L=h),n},r.clone=function(){return a.w(this.$d,this)},r.toDate=function(){return new Date(this.valueOf())},r.toJSON=function(){return this.isValid()?this.toISOString():null},r.toISOString=function(){return this.$d.toISOString()},r.toString=function(){return this.$d.toUTCString()},s}(),b=O.prototype;return $.prototype=b,[["$ms",D],["$s",x],["$m",g],["$H",w],["$W",p],["$M",L],["$y",q],["$D",M]].forEach(function(s){b[s[1]]=function(r){return this.$g(r,s[0],s[1])}}),$.extend=function(s,r){return s.$i||(s(r,O,$),s.$i=!0),$},$.locale=v,$.isDayjs=e,$.unix=function(s){return $(1e3*s)},$.en=l[H],$.Ls=l,$.p={},$})}(tt)),tt.exports}var wt=gt();const Z=J(wt);var et={exports:{}},Lt=et.exports,$t;function Ot(){return $t||($t=1,function(B,W){(function(S,f){B.exports=f()})(Lt,function(){var S={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"};return function(f,T,D){var x=T.prototype,g=x.format;D.en.formats=S,x.format=function(w){w===void 0&&(w="YYYY-MM-DDTHH:mm:ssZ");var p=this.$locale().formats,d=function(L,A){return L.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(q,M,k){var u=k&&k.toUpperCase();return M||A[k]||S[k]||A[u].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(c,_,Y){return _||Y.slice(1)})})}(w,p===void 0?{}:p);return g.call(this,d)}}})}(et)),et.exports}var Tt=Ot();const bt=J(Tt);var rt={exports:{}},kt=rt.exports,pt;function Ht(){return pt||(pt=1,function(B,W){(function(S,f){B.exports=f()})(kt,function(){return function(S,f,T){S=S||{};var D=f.prototype,x={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"};function g(p,d,L,A){return D.fromToBase(p,d,L,A)}T.en.relativeTime=x,D.fromToBase=function(p,d,L,A,q){for(var M,k,u,c=L.$locale().relativeTime||x,_=S.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"}],Y=_.length,I=0;I<Y;I+=1){var H=_[I];H.d&&(M=A?T(p).diff(L,H.d,!0):L.diff(p,H.d,!0));var l=(S.rounding||Math.round)(Math.abs(M));if(u=M>0,l<=H.r||!H.r){l<=1&&I>0&&(H=_[I-1]);var i=c[H.l];q&&(l=q(""+l)),k=typeof i=="string"?i.replace("%d",l):i(l,d,H.l,u);break}}if(d)return k;var e=u?c.future:c.past;return typeof e=="function"?e(k):e.replace("%s",k)},D.to=function(p,d){return g(p,d,this,!0)},D.from=function(p,d){return g(p,d,this)};var w=function(p){return p.$u?T.utc():T()};D.toNow=function(p){return this.to(w(this),p)},D.fromNow=function(p){return this.from(w(this),p)}}})}(rt)),rt.exports}var At=Ht();const Bt=J(At);var nt={exports:{}},Ft=nt.exports,Mt;function qt(){return Mt||(Mt=1,function(B,W){(function(S,f){B.exports=f()})(Ft,function(){return function(S,f,T){f.prototype.isToday=function(){var D="YYYY-MM-DD",x=T();return this.format(D)===x.format(D)}}})}(nt)),nt.exports}var jt=qt();const It=J(jt);var st={exports:{}},Ct=st.exports,vt;function Pt(){return vt||(vt=1,function(B,W){(function(S,f){B.exports=f()})(Ct,function(){return function(S,f,T){f.prototype.isBetween=function(D,x,g,w){var p=T(D),d=T(x),L=(w=w||"()")[0]==="(",A=w[1]===")";return(L?this.isAfter(p,g):!this.isBefore(p,g))&&(A?this.isBefore(d,g):!this.isAfter(d,g))||(L?this.isBefore(p,g):!this.isAfter(p,g))&&(A?this.isAfter(d,g):!this.isBefore(d,g))}}})}(st)),st.exports}var zt=Pt();const Et=J(zt);var it={exports:{}},Rt=it.exports,yt;function Zt(){return yt||(yt=1,function(B,W){(function(S,f){B.exports=f()})(Rt,function(){return function(S,f){f.prototype.isSameOrBefore=function(T,D){return this.isSame(T,D)||this.isBefore(T,D)}}})}(it)),it.exports}var Wt=Zt();const Nt=J(Wt);var ot={exports:{}},Ut=ot.exports,_t;function Jt(){return _t||(_t=1,function(B,W){(function(S,f){B.exports=f()})(Ut,function(){return function(S,f){f.prototype.isSameOrAfter=function(T,D){return this.isSame(T,D)||this.isAfter(T,D)}}})}(ot)),ot.exports}var Vt=Jt();const Qt=J(Vt);var at={exports:{}},Xt=at.exports,Dt;function Gt(){return Dt||(Dt=1,function(B,W){(function(S,f){B.exports=f()})(Xt,function(){var S,f,T=1e3,D=6e4,x=36e5,g=864e5,w=/\[([^\]]+)]|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,p=31536e6,d=2628e6,L=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,A={years:p,months:d,days:g,hours:x,minutes:D,seconds:T,milliseconds:1,weeks:6048e5},q=function(l){return l instanceof I},M=function(l,i,e){return new I(l,e,i.$l)},k=function(l){return f.p(l)+"s"},u=function(l){return l<0},c=function(l){return u(l)?Math.ceil(l):Math.floor(l)},_=function(l){return Math.abs(l)},Y=function(l,i){return l?u(l)?{negative:!0,format:""+_(l)+i}:{negative:!1,format:""+l+i}:{negative:!1,format:""}},I=function(){function l(e,v,$){var a=this;if(this.$d={},this.$l=$,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),v)return M(e*A[k(v)],this);if(typeof e=="number")return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e=="object")return Object.keys(e).forEach(function(s){a.$d[k(s)]=e[s]}),this.calMilliseconds(),this;if(typeof e=="string"){var O=e.match(L);if(O){var b=O.slice(2).map(function(s){return s!=null?Number(s):0});return this.$d.years=b[0],this.$d.months=b[1],this.$d.weeks=b[2],this.$d.days=b[3],this.$d.hours=b[4],this.$d.minutes=b[5],this.$d.seconds=b[6],this.calMilliseconds(),this}}return this}var i=l.prototype;return i.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce(function(v,$){return v+(e.$d[$]||0)*A[$]},0)},i.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=c(e/p),e%=p,this.$d.months=c(e/d),e%=d,this.$d.days=c(e/g),e%=g,this.$d.hours=c(e/x),e%=x,this.$d.minutes=c(e/D),e%=D,this.$d.seconds=c(e/T),e%=T,this.$d.milliseconds=e},i.toISOString=function(){var e=Y(this.$d.years,"Y"),v=Y(this.$d.months,"M"),$=+this.$d.days||0;this.$d.weeks&&($+=7*this.$d.weeks);var a=Y($,"D"),O=Y(this.$d.hours,"H"),b=Y(this.$d.minutes,"M"),s=this.$d.seconds||0;this.$d.milliseconds&&(s+=this.$d.milliseconds/1e3,s=Math.round(1e3*s)/1e3);var r=Y(s,"S"),t=e.negative||v.negative||a.negative||O.negative||b.negative||r.negative,o=O.format||b.format||r.format?"T":"",n=(t?"-":"")+"P"+e.format+v.format+a.format+o+O.format+b.format+r.format;return n==="P"||n==="-P"?"P0D":n},i.toJSON=function(){return this.toISOString()},i.format=function(e){var v=e||"YYYY-MM-DDTHH:mm:ss",$={Y:this.$d.years,YY:f.s(this.$d.years,2,"0"),YYYY:f.s(this.$d.years,4,"0"),M:this.$d.months,MM:f.s(this.$d.months,2,"0"),D:this.$d.days,DD:f.s(this.$d.days,2,"0"),H:this.$d.hours,HH:f.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:f.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:f.s(this.$d.seconds,2,"0"),SSS:f.s(this.$d.milliseconds,3,"0")};return v.replace(w,function(a,O){return O||String($[a])})},i.as=function(e){return this.$ms/A[k(e)]},i.get=function(e){var v=this.$ms,$=k(e);return $==="milliseconds"?v%=1e3:v=$==="weeks"?c(v/A[$]):this.$d[$],v||0},i.add=function(e,v,$){var a;return a=v?e*A[k(v)]:q(e)?e.$ms:M(e,this).$ms,M(this.$ms+a*($?-1:1),this)},i.subtract=function(e,v){return this.add(e,v,!0)},i.locale=function(e){var v=this.clone();return v.$l=e,v},i.clone=function(){return M(this.$ms,this)},i.humanize=function(e){return S().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},i.valueOf=function(){return this.asMilliseconds()},i.milliseconds=function(){return this.get("milliseconds")},i.asMilliseconds=function(){return this.as("milliseconds")},i.seconds=function(){return this.get("seconds")},i.asSeconds=function(){return this.as("seconds")},i.minutes=function(){return this.get("minutes")},i.asMinutes=function(){return this.as("minutes")},i.hours=function(){return this.get("hours")},i.asHours=function(){return this.as("hours")},i.days=function(){return this.get("days")},i.asDays=function(){return this.as("days")},i.weeks=function(){return this.get("weeks")},i.asWeeks=function(){return this.as("weeks")},i.months=function(){return this.get("months")},i.asMonths=function(){return this.as("months")},i.years=function(){return this.get("years")},i.asYears=function(){return this.as("years")},l}(),H=function(l,i,e){return l.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")};return function(l,i,e){S=e,f=e().$utils(),e.duration=function(a,O){var b=e.locale();return M(a,{$l:b},O)},e.isDuration=q;var v=i.prototype.add,$=i.prototype.subtract;i.prototype.add=function(a,O){return q(a)?H(this,a,1):v.bind(this)(a,O)},i.prototype.subtract=function(a,O){return q(a)?H(this,a,-1):$.bind(this)(a,O)}}})}(at)),at.exports}var Kt=Gt();const te=J(Kt);var ut={exports:{}},ee=ut.exports,Yt;function re(){return Yt||(Yt=1,function(B,W){(function(S,f){B.exports=f()})(ee,function(){var S={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"},f=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,T=/\d/,D=/\d\d/,x=/\d\d?/,g=/\d*[^-_:/,()\s\d]+/,w={},p=function(u){return(u=+u)+(u>68?1900:2e3)},d=function(u){return function(c){this[u]=+c}},L=[/[+-]\d\d:?(\d\d)?|Z/,function(u){(this.zone||(this.zone={})).offset=function(c){if(!c||c==="Z")return 0;var _=c.match(/([+-]|\d\d)/g),Y=60*_[1]+(+_[2]||0);return Y===0?0:_[0]==="+"?-Y:Y}(u)}],A=function(u){var c=w[u];return c&&(c.indexOf?c:c.s.concat(c.f))},q=function(u,c){var _,Y=w.meridiem;if(Y){for(var I=1;I<=24;I+=1)if(u.indexOf(Y(I,0,c))>-1){_=I>12;break}}else _=u===(c?"pm":"PM");return _},M={A:[g,function(u){this.afternoon=q(u,!1)}],a:[g,function(u){this.afternoon=q(u,!0)}],Q:[T,function(u){this.month=3*(u-1)+1}],S:[T,function(u){this.milliseconds=100*+u}],SS:[D,function(u){this.milliseconds=10*+u}],SSS:[/\d{3}/,function(u){this.milliseconds=+u}],s:[x,d("seconds")],ss:[x,d("seconds")],m:[x,d("minutes")],mm:[x,d("minutes")],H:[x,d("hours")],h:[x,d("hours")],HH:[x,d("hours")],hh:[x,d("hours")],D:[x,d("day")],DD:[D,d("day")],Do:[g,function(u){var c=w.ordinal,_=u.match(/\d+/);if(this.day=_[0],c)for(var Y=1;Y<=31;Y+=1)c(Y).replace(/\[|\]/g,"")===u&&(this.day=Y)}],w:[x,d("week")],ww:[D,d("week")],M:[x,d("month")],MM:[D,d("month")],MMM:[g,function(u){var c=A("months"),_=(A("monthsShort")||c.map(function(Y){return Y.slice(0,3)})).indexOf(u)+1;if(_<1)throw new Error;this.month=_%12||_}],MMMM:[g,function(u){var c=A("months").indexOf(u)+1;if(c<1)throw new Error;this.month=c%12||c}],Y:[/[+-]?\d+/,d("year")],YY:[D,function(u){this.year=p(u)}],YYYY:[/\d{4}/,d("year")],Z:L,ZZ:L};function k(u){var c,_;c=u,_=w&&w.formats;for(var Y=(u=c.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($,a,O){var b=O&&O.toUpperCase();return a||_[O]||S[O]||_[b].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(s,r,t){return r||t.slice(1)})})).match(f),I=Y.length,H=0;H<I;H+=1){var l=Y[H],i=M[l],e=i&&i[0],v=i&&i[1];Y[H]=v?{regex:e,parser:v}:l.replace(/^\[|\]$/g,"")}return function($){for(var a={},O=0,b=0;O<I;O+=1){var s=Y[O];if(typeof s=="string")b+=s.length;else{var r=s.regex,t=s.parser,o=$.slice(b),n=r.exec(o)[0];t.call(a,n),$=$.replace(n,"")}}return function(h){var m=h.afternoon;if(m!==void 0){var y=h.hours;m?y<12&&(h.hours+=12):y===12&&(h.hours=0),delete h.afternoon}}(a),a}}return function(u,c,_){_.p.customParseFormat=!0,u&&u.parseTwoDigitYear&&(p=u.parseTwoDigitYear);var Y=c.prototype,I=Y.parse;Y.parse=function(H){var l=H.date,i=H.utc,e=H.args;this.$u=i;var v=e[1];if(typeof v=="string"){var $=e[2]===!0,a=e[3]===!0,O=$||a,b=e[2];a&&(b=e[2]),w=this.$locale(),!$&&b&&(w=_.Ls[b]),this.$d=function(o,n,h,m){try{if(["x","X"].indexOf(n)>-1)return new Date((n==="X"?1e3:1)*o);var y=k(n)(o),F=y.year,j=y.month,C=y.day,z=y.hours,V=y.minutes,N=y.seconds,X=y.milliseconds,R=y.zone,P=y.week,E=new Date,U=C||(F||j?1:E.getDate()),Q=F||E.getFullYear(),G=0;F&&!j||(G=j>0?j-1:E.getMonth());var K,ft=z||0,ht=V||0,dt=N||0,mt=X||0;return R?new Date(Date.UTC(Q,G,U,ft,ht,dt,mt+60*R.offset*1e3)):h?new Date(Date.UTC(Q,G,U,ft,ht,dt,mt)):(K=new Date(Q,G,U,ft,ht,dt,mt),P&&(K=m(K).week(P).toDate()),K)}catch{return new Date("")}}(l,v,i,_),this.init(),b&&b!==!0&&(this.$L=this.locale(b).$L),O&&l!=this.format(v)&&(this.$d=new Date("")),w={}}else if(v instanceof Array)for(var s=v.length,r=1;r<=s;r+=1){e[1]=v[r-1];var t=_.apply(this,e);if(t.isValid()){this.$d=t.$d,this.$L=t.$L,this.init();break}r===s&&(this.$d=new Date(""))}else I.call(this,H)}}})}(ut)),ut.exports}var ne=re();const se=J(ne);var ct={exports:{}},ie=ct.exports,xt;function oe(){return xt||(xt=1,function(B,W){(function(S,f){B.exports=f(gt())})(ie,function(S){function f(M){return M&&typeof M=="object"&&"default"in M?M:{default:M}}var T=f(S),D="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),x="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),g="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),w="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),p=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function d(M,k,u){var c,_;return u==="m"?k?"минута":"минуту":M+" "+(c=+M,_={mm:k?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[u].split("_"),c%10==1&&c%100!=11?_[0]:c%10>=2&&c%10<=4&&(c%100<10||c%100>=20)?_[1]:_[2])}var L=function(M,k){return p.test(k)?D[M.month()]:x[M.month()]};L.s=x,L.f=D;var A=function(M,k){return p.test(k)?g[M.month()]:w[M.month()]};A.s=w,A.f=g;var q={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:L,monthsShort:A,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:d,mm:d,h:"час",hh:d,d:"день",dd:d,M:"месяц",MM:d,y:"год",yy:d},ordinal:function(M){return M},meridiem:function(M){return M<4?"ночи":M<12?"утра":M<17?"дня":"вечера"}};return T.default.locale(q,null,!0),q})}(ct)),ct.exports}oe();Z.extend(bt);Z.extend(Bt);Z.extend(It);Z.extend(Et);Z.extend(Nt);Z.extend(Qt);Z.extend(te);Z.extend(se);Z.locale("ru");exports.dayjs=Z;