@scbt-ecom/ui 0.10.0 → 0.10.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.
package/dist/hybrid.js CHANGED
@@ -1,43 +1,254 @@
1
- var Ve = Object.defineProperty;
2
- var Qe = (o, r, e) => r in o ? Ve(o, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[r] = e;
3
- var s = (o, r, e) => Qe(o, typeof r != "symbol" ? r + "" : r, e);
4
- import { j as i, c as d, H as L, a as N, I as T, L as $e, z as D, g as xe, u as be, P as Ge } from "./utils-tailwind-D1D1tL_o.js";
5
- import { B as Kn, N as Sn, i as eo } from "./utils-tailwind-D1D1tL_o.js";
6
- import * as z from "react";
7
- import { forwardRef as ye } from "react";
8
- const In = (o, r) => JSON.stringify(o) === JSON.stringify(r), Mn = (o) => o.split("-").map((r) => r.charAt(0).toUpperCase() + r.slice(1).toLowerCase()).join("-"), we = 6048e5, Xe = 6e4, Ze = 36e5, Ue = 1e3, se = Symbol.for("constructDateFrom");
9
- function v(o, r) {
10
- return typeof o == "function" ? o(r) : o && typeof o == "object" && se in o ? o[se](r) : o instanceof Date ? new o.constructor(r) : new Date(r);
11
- }
12
- function j(o, r) {
13
- return v(r || o, o);
14
- }
15
- function ge(o, r, e) {
16
- const t = j(o, e == null ? void 0 : e.in);
17
- return isNaN(r) ? v((e == null ? void 0 : e.in) || o, NaN) : (r && t.setDate(t.getDate() + r), t);
18
- }
19
- let Je = {};
20
- function A() {
21
- return Je;
22
- }
23
- function O(o, r) {
24
- var u, f, m, b;
25
- const e = A(), t = (r == null ? void 0 : r.weekStartsOn) ?? ((f = (u = r == null ? void 0 : r.locale) == null ? void 0 : u.options) == null ? void 0 : f.weekStartsOn) ?? e.weekStartsOn ?? ((b = (m = e.locale) == null ? void 0 : m.options) == null ? void 0 : b.weekStartsOn) ?? 0, n = j(o, r == null ? void 0 : r.in), a = n.getDay(), l = (a < t ? 7 : 0) + a - t;
26
- return n.setDate(n.getDate() - l), n.setHours(0, 0, 0, 0), n;
27
- }
28
- function W(o, r) {
29
- return O(o, { ...r, weekStartsOn: 1 });
30
- }
31
- function Ke(o, r) {
32
- const e = j(o, r == null ? void 0 : r.in), t = e.getFullYear(), n = v(e, 0);
1
+ var He = Object.defineProperty;
2
+ var Ae = (a, r, e) => r in a ? He(a, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[r] = e;
3
+ var l = (a, r, e) => Ae(a, typeof r != "symbol" ? r + "" : r, e);
4
+ import { j as i, c as d, I as P, a as O, z as T, g as me, R as $, B as he, H as xe, P as Re } from "./Advantages-Ckk1oK9e.js";
5
+ import { A as An, b as Rn, L as Bn, i as qn } from "./Advantages-Ckk1oK9e.js";
6
+ import * as R from "react";
7
+ import { forwardRef as Be } from "react";
8
+ const yn = (a) => a.split("-").map((r) => r.charAt(0).toUpperCase() + r.slice(1).toLowerCase()).join("-"), pe = ({ children: a, className: r, ...e }) => /* @__PURE__ */ i.jsx("section", { className: d("pb-16 desktop:pb-20", r), ...e, children: a }), gn = ({ linksList: a }) => /* @__PURE__ */ i.jsx("div", { "aria-label": "Breadcrumb", className: "flex max-w-[840px] items-center gap-2", children: a.map((r) => /* @__PURE__ */ i.jsx(i.Fragment, { children: "path" in r ? /* @__PURE__ */ i.jsxs(
9
+ "div",
10
+ {
11
+ className: d(
12
+ "flex items-center gap-1 rounded-sm border-2 border-solid border-transparent px-1 focus-within:border-primary-focus",
13
+ { "pointer-events-none !border-transparent": r == null ? void 0 : r.isDisabled }
14
+ ),
15
+ children: [
16
+ /* @__PURE__ */ i.jsx(
17
+ "a",
18
+ {
19
+ href: r.path,
20
+ target: "_blank",
21
+ rel: "noreferrer",
22
+ className: d(
23
+ "desk-body-regular-m text-color-primary-default outline-none hover:text-color-primary-hover focus:text-color-primary-default",
24
+ { "!text-color-disabled": r == null ? void 0 : r.isDisabled }
25
+ ),
26
+ children: r.label
27
+ }
28
+ ),
29
+ /* @__PURE__ */ i.jsx(
30
+ P,
31
+ {
32
+ name: "arrows/arrowRight",
33
+ className: d("size-4 text-icon-primary-default", { "!text-icon-disabled": r == null ? void 0 : r.isDisabled })
34
+ }
35
+ )
36
+ ]
37
+ }
38
+ ) : /* @__PURE__ */ i.jsx("div", { "aria-current": "page", className: "desk-body-regular-m text-color-blue-grey-600", children: r.label }) })) }), qe = O(
39
+ "group flex items-center justify-center cursor-pointer rounded-full outline-offset-[3px] outline-transparent outline-2 transition duration-12 active:scale-[0.97] disabled:pointer-events-none",
40
+ {
41
+ variants: {
42
+ intent: {
43
+ primary: "text-icon-white bg-color-primary-default hover:bg-color-primary-hover active:bg-color-primary-hover focus:bg-color-primary-hover focus:outline-primary-focus disabled:bg-color-primary-disabled",
44
+ secondary: "text-icon-primary-default bg-color-transparent border border-solid outline-offset-4 border-primary-default hover:bg-color-primary-tr-hover hover:text-icon-primary-default hover:border-primary-hover active:bg-color-primary-tr-pressed active:border-primary-hover active:text-icon-primary-hover focus:bg-color-primary-tr-focus focus:outline-primary-focus disabled:bg-color-blue-grey-200 disabled:border-transparent disabled:text-icon-primary-disabled",
45
+ ghost: "text-icon-primary-default bg-color-transparent hover:bg-color-primary-tr-hover focus:bg-color-primary-tr-focus focus:outline-primary-focus active:text-icon-primary-hover active:bg-color-primary-tr-pressed disabled:bg-color-transparent disabled:text-icon-primary-disabled"
46
+ },
47
+ size: {
48
+ sm: "size-8",
49
+ md: "size-10",
50
+ lg: "size-12"
51
+ }
52
+ },
53
+ defaultVariants: {
54
+ intent: "primary",
55
+ size: "lg"
56
+ }
57
+ }
58
+ ), kn = Be(
59
+ ({ size: a, intent: r, children: e, classes: t, type: n = "button", ...o }, s) => /* @__PURE__ */ i.jsx("button", { ref: s, type: n, className: d(qe({ intent: r, size: a }), t == null ? void 0 : t.button), ...o, children: /* @__PURE__ */ i.jsx("span", { className: d(t == null ? void 0 : t.icon), children: e }) })
60
+ ), ze = O(
61
+ "group underline underline-offset-4 outline-none p-[2px] rounded-sm border border-solid border-transparent",
62
+ {
63
+ variants: {
64
+ intent: {
65
+ blue: "text-color-primary-default hover:text-color-primary-hover focus:text-color-primary-default focus:border-primary-focus",
66
+ white: "text-color-white hover:text-color-footer focus:text-color-white focus:border-primary-focus"
67
+ },
68
+ withIcon: {
69
+ true: "flex items-center gap-1",
70
+ false: ""
71
+ },
72
+ disabled: {
73
+ true: "!text-color-primary-disabled pointer-events-none !border-transparent",
74
+ false: ""
75
+ },
76
+ size: {
77
+ sm: "desk-body-regular-m",
78
+ md: "desk-body-regular-l"
79
+ }
80
+ },
81
+ defaultVariants: {
82
+ intent: "blue",
83
+ withIcon: !0,
84
+ disabled: !1,
85
+ size: "sm"
86
+ }
87
+ }
88
+ ), Qe = O("size-6", {
89
+ variants: {
90
+ intent: {
91
+ blue: "text-icon-primary-default group-hover:text-icon-primary-hover group-focus:text-icon-primary-default ",
92
+ white: "text-icon-white group-hover:text-icon-footer group-focus:text-icon-white"
93
+ },
94
+ disabled: {
95
+ true: "!text-icon-primary-disabled pointer-events-none",
96
+ false: ""
97
+ }
98
+ },
99
+ defaultVariants: {
100
+ intent: "blue",
101
+ disabled: !1
102
+ }
103
+ }), vn = ({
104
+ Component: a = "a",
105
+ intent: r,
106
+ children: e,
107
+ withIcon: t,
108
+ disabled: n,
109
+ size: o,
110
+ icon: s = "arrows/arrowLink",
111
+ ...u
112
+ }) => /* @__PURE__ */ i.jsxs(a, { className: d(ze({ intent: r, withIcon: t, disabled: n, size: o })), ...u, children: [
113
+ e,
114
+ t && /* @__PURE__ */ i.jsx(P, { name: s, className: d(Qe({ intent: r, disabled: n })) })
115
+ ] }), Ve = O("size-8 transition-colors", {
116
+ variants: {
117
+ intent: {
118
+ outline: "text-icon-secondary-dark-default group-hover:text-icon-secondary-dark-hover",
119
+ filled: "text-icon-primary-default group-hover:text-icon-primary-hover"
120
+ }
121
+ },
122
+ defaultVariants: {
123
+ intent: "outline"
124
+ }
125
+ }), $e = {
126
+ filled: "files/documentFilled",
127
+ outline: "files/documentOutline"
128
+ }, Dn = ({ text: a, size: r, sizeType: e, href: t, intent: n = "outline" }) => /* @__PURE__ */ i.jsxs(
129
+ "a",
130
+ {
131
+ href: t,
132
+ target: "_blank",
133
+ rel: "noreferrer",
134
+ tabIndex: 0,
135
+ className: d(
136
+ "group flex cursor-pointer items-center gap-2 rounded-sm p-1 outline outline-2 outline-transparent transition-colors focus-within:outline-primary-focus desktop:max-w-[592px]"
137
+ ),
138
+ children: [
139
+ /* @__PURE__ */ i.jsx(P, { name: $e[n], className: d(Ve({ intent: n })) }),
140
+ /* @__PURE__ */ i.jsxs("div", { className: d("flex flex-1 flex-col"), children: [
141
+ /* @__PURE__ */ i.jsx("p", { className: d("desk-body-medium-l text-color-dark"), children: a }),
142
+ /* @__PURE__ */ i.jsxs("div", { className: d("desk-body-regular-m text-color-disabled"), children: [
143
+ r,
144
+ " ",
145
+ e
146
+ ] })
147
+ ] })
148
+ ]
149
+ }
150
+ ), be = ({ phone: a, text: r, classes: e }) => /* @__PURE__ */ i.jsxs("div", { className: d("flex w-max flex-col", e == null ? void 0 : e.wrapper), children: [
151
+ /* @__PURE__ */ i.jsx(
152
+ "a",
153
+ {
154
+ href: `tel:${a}`,
155
+ className: d("mob-body-medium-l ml-auto text-color-dark desktop:desk-body-medium-l", e == null ? void 0 : e.link),
156
+ children: a
157
+ }
158
+ ),
159
+ /* @__PURE__ */ i.jsx("p", { className: d("desk-body-regular-l text-color-tetriary", e == null ? void 0 : e.text), children: r })
160
+ ] }), Tn = ({ topContent: a, bottomContent: r, progress: e, maxPercent: t = 100, classes: n }) => /* @__PURE__ */ i.jsxs("div", { className: d("flex w-full flex-col", n == null ? void 0 : n.wrapper), children: [
161
+ a && /* @__PURE__ */ i.jsx("div", { className: d("mb-2 flex justify-between gap-5", n == null ? void 0 : n.topContent), children: a }),
162
+ /* @__PURE__ */ i.jsxs("div", { className: d("relative h-2 w-[328xp] rounded-md bg-color-blue-grey-100 desktop:w-[524px]", n == null ? void 0 : n.progressBar), children: [
163
+ /* @__PURE__ */ i.jsx(
164
+ "div",
165
+ {
166
+ style: { width: `${e}%` },
167
+ className: d("relative z-10 h-2 rounded-md bg-color-positive transition-all", n == null ? void 0 : n.progress)
168
+ }
169
+ ),
170
+ /* @__PURE__ */ i.jsx(
171
+ "span",
172
+ {
173
+ style: { maxWidth: `${t}%` },
174
+ className: d(
175
+ "progressBar-apply z-1 absolute top-1/2 h-full w-full -translate-y-1/2 animate-progress-loader rounded-md",
176
+ n == null ? void 0 : n.loader
177
+ )
178
+ }
179
+ )
180
+ ] }),
181
+ r && /* @__PURE__ */ i.jsx("div", { className: d("mt-2 flex justify-between gap-5", n == null ? void 0 : n.bottomContent), children: r })
182
+ ] }), Pn = ({ className: a }) => /* @__PURE__ */ i.jsx("div", { className: d("skeleton-apply h-full w-full", a) }), Ge = /^[\u0400-\u04FF\u00CB\u00EB -]+$/, se = /^(?:[^-]+(?:-[^-]+){0,4}|[^-]+)$/, Xe = /^[a-zA-Zа-яА-ЯёЁ]+(?:\s*-\s*[a-zA-Zа-яА-ЯёЁ]+){0,4}(?:\s+[a-zA-Zа-яА-ЯёЁ]+(?:\s*-\s*[a-zA-Zа-яА-ЯёЁ]+){0,4})?$/i, B = {
183
+ REQUIRED: "Поле обязательно к заполнению",
184
+ MIN_LENGTH: "Минимальная длина символов должна быть не менее",
185
+ MAX_LENGTH: "Максимальная длина символов должна быть не более",
186
+ FIX_LENGTH: "Длина символов должна быть равна",
187
+ MAX_LENGTH_ELEMENTS: "Максимальное количество элементов должно быть не более",
188
+ MIN_LENGTH_ELEMENTS: "Минимальное количество элементов должно быть не менее",
189
+ FIX_LENGTH_ELEMENTS: "Количество элементов должно быть равно",
190
+ INVALID_VALUE: "Поле заполнено некорректно",
191
+ INVALID_DATE: "Введите корректную дату",
192
+ FUTURE_DATE_NOT_ALLOWED: "Нельзя выбрать дату позже текущей"
193
+ }, Ze = (a) => {
194
+ const r = a.trim().replace(/\s+/g, " ").split(" "), [e, t, ...n] = r, o = n == null ? void 0 : n.join(" ");
195
+ return {
196
+ surname: e,
197
+ name: t,
198
+ patronymic: o
199
+ };
200
+ }, Nn = T.string({ invalid_type_error: "Обязательно к заполнению", required_error: "Обязательно к заполнению" }).superRefine((a, r) => {
201
+ Ge.test(a) || r.addIssue({
202
+ code: T.ZodIssueCode.custom,
203
+ message: "Должна быть только кириллица"
204
+ });
205
+ const { surname: e, name: t, patronymic: n } = Ze(a);
206
+ (!e || !t) && r.addIssue({
207
+ code: T.ZodIssueCode.custom,
208
+ message: "Введите имя и фамилию"
209
+ }), se.test(t) || r.addIssue({
210
+ code: T.ZodIssueCode.custom,
211
+ message: "Неверно введено имя"
212
+ }), se.test(e) || r.addIssue({
213
+ code: T.ZodIssueCode.custom,
214
+ message: "Неверно введена фамилия"
215
+ }), n && (Xe.test(n) || r.addIssue({
216
+ code: T.ZodIssueCode.custom,
217
+ message: "Неверно введено отчество"
218
+ }));
219
+ }), we = 6048e5, Ue = 6e4, Je = 36e5, Ke = 1e3, de = Symbol.for("constructDateFrom");
220
+ function v(a, r) {
221
+ return typeof a == "function" ? a(r) : a && typeof a == "object" && de in a ? a[de](r) : a instanceof Date ? new a.constructor(r) : new Date(r);
222
+ }
223
+ function D(a, r) {
224
+ return v(r || a, a);
225
+ }
226
+ function ye(a, r, e) {
227
+ const t = D(a, e == null ? void 0 : e.in);
228
+ return isNaN(r) ? v((e == null ? void 0 : e.in) || a, NaN) : (r && t.setDate(t.getDate() + r), t);
229
+ }
230
+ let Se = {};
231
+ function H() {
232
+ return Se;
233
+ }
234
+ function C(a, r) {
235
+ var u, h, x, k;
236
+ const e = H(), t = (r == null ? void 0 : r.weekStartsOn) ?? ((h = (u = r == null ? void 0 : r.locale) == null ? void 0 : u.options) == null ? void 0 : h.weekStartsOn) ?? e.weekStartsOn ?? ((k = (x = e.locale) == null ? void 0 : x.options) == null ? void 0 : k.weekStartsOn) ?? 0, n = D(a, r == null ? void 0 : r.in), o = n.getDay(), s = (o < t ? 7 : 0) + o - t;
237
+ return n.setDate(n.getDate() - s), n.setHours(0, 0, 0, 0), n;
238
+ }
239
+ function Y(a, r) {
240
+ return C(a, { ...r, weekStartsOn: 1 });
241
+ }
242
+ function et(a, r) {
243
+ const e = D(a, r == null ? void 0 : r.in), t = e.getFullYear(), n = v(e, 0);
33
244
  n.setFullYear(t + 1, 0, 4), n.setHours(0, 0, 0, 0);
34
- const a = W(n), l = v(e, 0);
35
- l.setFullYear(t, 0, 4), l.setHours(0, 0, 0, 0);
36
- const u = W(l);
37
- return e.getTime() >= a.getTime() ? t + 1 : e.getTime() >= u.getTime() ? t : t - 1;
245
+ const o = Y(n), s = v(e, 0);
246
+ s.setFullYear(t, 0, 4), s.setHours(0, 0, 0, 0);
247
+ const u = Y(s);
248
+ return e.getTime() >= o.getTime() ? t + 1 : e.getTime() >= u.getTime() ? t : t - 1;
38
249
  }
39
- function ke(o) {
40
- const r = j(o), e = new Date(
250
+ function ge(a) {
251
+ const r = D(a), e = new Date(
41
252
  Date.UTC(
42
253
  r.getFullYear(),
43
254
  r.getMonth(),
@@ -48,19 +259,19 @@ function ke(o) {
48
259
  r.getMilliseconds()
49
260
  )
50
261
  );
51
- return e.setUTCFullYear(r.getFullYear()), +o - +e;
262
+ return e.setUTCFullYear(r.getFullYear()), +a - +e;
52
263
  }
53
- function Se(o, r) {
54
- const e = Ke(o, r), t = v(o, 0);
55
- return t.setFullYear(e, 0, 4), t.setHours(0, 0, 0, 0), W(t);
264
+ function tt(a, r) {
265
+ const e = et(a, r), t = v(a, 0);
266
+ return t.setFullYear(e, 0, 4), t.setHours(0, 0, 0, 0), Y(t);
56
267
  }
57
- function et(o) {
58
- return o instanceof Date || typeof o == "object" && Object.prototype.toString.call(o) === "[object Date]";
268
+ function rt(a) {
269
+ return a instanceof Date || typeof a == "object" && Object.prototype.toString.call(a) === "[object Date]";
59
270
  }
60
- function tt(o) {
61
- return !(!et(o) && typeof o != "number" || isNaN(+j(o)));
271
+ function nt(a) {
272
+ return !(!rt(a) && typeof a != "number" || isNaN(+D(a)));
62
273
  }
63
- const rt = {
274
+ const at = {
64
275
  lessThanXSeconds: {
65
276
  one: "less than a second",
66
277
  other: "less than {{count}} seconds"
@@ -122,77 +333,77 @@ const rt = {
122
333
  one: "almost 1 year",
123
334
  other: "almost {{count}} years"
124
335
  }
125
- }, nt = (o, r, e) => {
336
+ }, ot = (a, r, e) => {
126
337
  let t;
127
- const n = rt[o];
338
+ const n = at[a];
128
339
  return typeof n == "string" ? t = n : r === 1 ? t = n.one : t = n.other.replace("{{count}}", r.toString()), e != null && e.addSuffix ? e.comparison && e.comparison > 0 ? "in " + t : t + " ago" : t;
129
340
  };
130
- function U(o) {
341
+ function X(a) {
131
342
  return (r = {}) => {
132
- const e = r.width ? String(r.width) : o.defaultWidth;
133
- return o.formats[e] || o.formats[o.defaultWidth];
343
+ const e = r.width ? String(r.width) : a.defaultWidth;
344
+ return a.formats[e] || a.formats[a.defaultWidth];
134
345
  };
135
346
  }
136
- const ot = {
347
+ const it = {
137
348
  full: "EEEE, MMMM do, y",
138
349
  long: "MMMM do, y",
139
350
  medium: "MMM d, y",
140
351
  short: "MM/dd/yyyy"
141
- }, at = {
352
+ }, st = {
142
353
  full: "h:mm:ss a zzzz",
143
354
  long: "h:mm:ss a z",
144
355
  medium: "h:mm:ss a",
145
356
  short: "h:mm a"
146
- }, it = {
357
+ }, dt = {
147
358
  full: "{{date}} 'at' {{time}}",
148
359
  long: "{{date}} 'at' {{time}}",
149
360
  medium: "{{date}}, {{time}}",
150
361
  short: "{{date}}, {{time}}"
151
- }, dt = {
152
- date: U({
153
- formats: ot,
362
+ }, lt = {
363
+ date: X({
364
+ formats: it,
154
365
  defaultWidth: "full"
155
366
  }),
156
- time: U({
157
- formats: at,
367
+ time: X({
368
+ formats: st,
158
369
  defaultWidth: "full"
159
370
  }),
160
- dateTime: U({
161
- formats: it,
371
+ dateTime: X({
372
+ formats: dt,
162
373
  defaultWidth: "full"
163
374
  })
164
- }, lt = {
375
+ }, ut = {
165
376
  lastWeek: "'last' eeee 'at' p",
166
377
  yesterday: "'yesterday at' p",
167
378
  today: "'today at' p",
168
379
  tomorrow: "'tomorrow at' p",
169
380
  nextWeek: "eeee 'at' p",
170
381
  other: "P"
171
- }, st = (o, r, e, t) => lt[o];
172
- function H(o) {
382
+ }, ct = (a, r, e, t) => ut[a];
383
+ function L(a) {
173
384
  return (r, e) => {
174
385
  const t = e != null && e.context ? String(e.context) : "standalone";
175
386
  let n;
176
- if (t === "formatting" && o.formattingValues) {
177
- const l = o.defaultFormattingWidth || o.defaultWidth, u = e != null && e.width ? String(e.width) : l;
178
- n = o.formattingValues[u] || o.formattingValues[l];
387
+ if (t === "formatting" && a.formattingValues) {
388
+ const s = a.defaultFormattingWidth || a.defaultWidth, u = e != null && e.width ? String(e.width) : s;
389
+ n = a.formattingValues[u] || a.formattingValues[s];
179
390
  } else {
180
- const l = o.defaultWidth, u = e != null && e.width ? String(e.width) : o.defaultWidth;
181
- n = o.values[u] || o.values[l];
391
+ const s = a.defaultWidth, u = e != null && e.width ? String(e.width) : a.defaultWidth;
392
+ n = a.values[u] || a.values[s];
182
393
  }
183
- const a = o.argumentCallback ? o.argumentCallback(r) : r;
184
- return n[a];
394
+ const o = a.argumentCallback ? a.argumentCallback(r) : r;
395
+ return n[o];
185
396
  };
186
397
  }
187
- const ut = {
398
+ const ft = {
188
399
  narrow: ["B", "A"],
189
400
  abbreviated: ["BC", "AD"],
190
401
  wide: ["Before Christ", "Anno Domini"]
191
- }, ct = {
402
+ }, mt = {
192
403
  narrow: ["1", "2", "3", "4"],
193
404
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
194
405
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
195
- }, ft = {
406
+ }, ht = {
196
407
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
197
408
  abbreviated: [
198
409
  "Jan",
@@ -222,7 +433,7 @@ const ut = {
222
433
  "November",
223
434
  "December"
224
435
  ]
225
- }, mt = {
436
+ }, xt = {
226
437
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
227
438
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
228
439
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -235,7 +446,7 @@ const ut = {
235
446
  "Friday",
236
447
  "Saturday"
237
448
  ]
238
- }, ht = {
449
+ }, pt = {
239
450
  narrow: {
240
451
  am: "a",
241
452
  pm: "p",
@@ -266,7 +477,7 @@ const ut = {
266
477
  evening: "evening",
267
478
  night: "night"
268
479
  }
269
- }, pt = {
480
+ }, bt = {
270
481
  narrow: {
271
482
  am: "a",
272
483
  pm: "p",
@@ -297,8 +508,8 @@ const ut = {
297
508
  evening: "in the evening",
298
509
  night: "at night"
299
510
  }
300
- }, xt = (o, r) => {
301
- const e = Number(o), t = e % 100;
511
+ }, wt = (a, r) => {
512
+ const e = Number(a), t = e % 100;
302
513
  if (t > 20 || t < 10)
303
514
  switch (t % 10) {
304
515
  case 1:
@@ -309,85 +520,85 @@ const ut = {
309
520
  return e + "rd";
310
521
  }
311
522
  return e + "th";
312
- }, bt = {
313
- ordinalNumber: xt,
314
- era: H({
315
- values: ut,
523
+ }, yt = {
524
+ ordinalNumber: wt,
525
+ era: L({
526
+ values: ft,
316
527
  defaultWidth: "wide"
317
528
  }),
318
- quarter: H({
319
- values: ct,
529
+ quarter: L({
530
+ values: mt,
320
531
  defaultWidth: "wide",
321
- argumentCallback: (o) => o - 1
532
+ argumentCallback: (a) => a - 1
322
533
  }),
323
- month: H({
324
- values: ft,
534
+ month: L({
535
+ values: ht,
325
536
  defaultWidth: "wide"
326
537
  }),
327
- day: H({
328
- values: mt,
538
+ day: L({
539
+ values: xt,
329
540
  defaultWidth: "wide"
330
541
  }),
331
- dayPeriod: H({
332
- values: ht,
542
+ dayPeriod: L({
543
+ values: pt,
333
544
  defaultWidth: "wide",
334
- formattingValues: pt,
545
+ formattingValues: bt,
335
546
  defaultFormattingWidth: "wide"
336
547
  })
337
548
  };
338
- function B(o) {
549
+ function W(a) {
339
550
  return (r, e = {}) => {
340
- const t = e.width, n = t && o.matchPatterns[t] || o.matchPatterns[o.defaultMatchWidth], a = r.match(n);
341
- if (!a)
551
+ const t = e.width, n = t && a.matchPatterns[t] || a.matchPatterns[a.defaultMatchWidth], o = r.match(n);
552
+ if (!o)
342
553
  return null;
343
- const l = a[0], u = t && o.parsePatterns[t] || o.parsePatterns[o.defaultParseWidth], f = Array.isArray(u) ? wt(u, (c) => c.test(l)) : (
554
+ const s = o[0], u = t && a.parsePatterns[t] || a.parsePatterns[a.defaultParseWidth], h = Array.isArray(u) ? kt(u, (c) => c.test(s)) : (
344
555
  // [TODO] -- I challenge you to fix the type
345
- yt(u, (c) => c.test(l))
556
+ gt(u, (c) => c.test(s))
346
557
  );
347
- let m;
348
- m = o.valueCallback ? o.valueCallback(f) : f, m = e.valueCallback ? (
558
+ let x;
559
+ x = a.valueCallback ? a.valueCallback(h) : h, x = e.valueCallback ? (
349
560
  // [TODO] -- I challenge you to fix the type
350
- e.valueCallback(m)
351
- ) : m;
352
- const b = r.slice(l.length);
353
- return { value: m, rest: b };
561
+ e.valueCallback(x)
562
+ ) : x;
563
+ const k = r.slice(s.length);
564
+ return { value: x, rest: k };
354
565
  };
355
566
  }
356
- function yt(o, r) {
357
- for (const e in o)
358
- if (Object.prototype.hasOwnProperty.call(o, e) && r(o[e]))
567
+ function gt(a, r) {
568
+ for (const e in a)
569
+ if (Object.prototype.hasOwnProperty.call(a, e) && r(a[e]))
359
570
  return e;
360
571
  }
361
- function wt(o, r) {
362
- for (let e = 0; e < o.length; e++)
363
- if (r(o[e]))
572
+ function kt(a, r) {
573
+ for (let e = 0; e < a.length; e++)
574
+ if (r(a[e]))
364
575
  return e;
365
576
  }
366
- function gt(o) {
577
+ function vt(a) {
367
578
  return (r, e = {}) => {
368
- const t = r.match(o.matchPattern);
579
+ const t = r.match(a.matchPattern);
369
580
  if (!t) return null;
370
- const n = t[0], a = r.match(o.parsePattern);
371
- if (!a) return null;
372
- let l = o.valueCallback ? o.valueCallback(a[0]) : a[0];
373
- l = e.valueCallback ? e.valueCallback(l) : l;
581
+ const n = t[0], o = r.match(a.parsePattern);
582
+ if (!o) return null;
583
+ let s = a.valueCallback ? a.valueCallback(o[0]) : o[0];
584
+ s = e.valueCallback ? e.valueCallback(s) : s;
374
585
  const u = r.slice(n.length);
375
- return { value: l, rest: u };
586
+ return { value: s, rest: u };
376
587
  };
377
588
  }
378
- const kt = /^(\d+)(th|st|nd|rd)?/i, vt = /\d+/i, jt = {
589
+ const Dt = /^(\d+)(th|st|nd|rd)?/i, Tt = /\d+/i, Pt = {
379
590
  narrow: /^(b|a)/i,
380
591
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
381
592
  wide: /^(before christ|before common era|anno domini|common era)/i
382
- }, Dt = {
383
- any: [/^b/i, /^(a|c)/i]
384
593
  }, Nt = {
594
+ any: [/^b/i, /^(a|c)/i]
595
+ }, jt = {
385
596
  narrow: /^[1234]/i,
386
597
  abbreviated: /^q[1234]/i,
387
598
  wide: /^[1234](th|st|nd|rd)? quarter/i
388
- }, Tt = {
599
+ }, It = {
389
600
  any: [/1/i, /2/i, /3/i, /4/i]
390
- }, Pt = {
601
+ }, Mt = {
391
602
  narrow: /^[jfmasond]/i,
392
603
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
393
604
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
@@ -420,18 +631,18 @@ const kt = /^(\d+)(th|st|nd|rd)?/i, vt = /\d+/i, jt = {
420
631
  /^n/i,
421
632
  /^d/i
422
633
  ]
423
- }, It = {
634
+ }, Et = {
424
635
  narrow: /^[smtwf]/i,
425
636
  short: /^(su|mo|tu|we|th|fr|sa)/i,
426
637
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
427
638
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
428
- }, Mt = {
639
+ }, Ct = {
429
640
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
430
641
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
431
- }, Ct = {
642
+ }, Ot = {
432
643
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
433
644
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
434
- }, Et = {
645
+ }, Ft = {
435
646
  any: {
436
647
  am: /^a/i,
437
648
  pm: /^p/i,
@@ -442,79 +653,79 @@ const kt = /^(\d+)(th|st|nd|rd)?/i, vt = /\d+/i, jt = {
442
653
  evening: /evening/i,
443
654
  night: /night/i
444
655
  }
445
- }, Ot = {
446
- ordinalNumber: gt({
447
- matchPattern: kt,
448
- parsePattern: vt,
449
- valueCallback: (o) => parseInt(o, 10)
656
+ }, Yt = {
657
+ ordinalNumber: vt({
658
+ matchPattern: Dt,
659
+ parsePattern: Tt,
660
+ valueCallback: (a) => parseInt(a, 10)
450
661
  }),
451
- era: B({
452
- matchPatterns: jt,
662
+ era: W({
663
+ matchPatterns: Pt,
453
664
  defaultMatchWidth: "wide",
454
- parsePatterns: Dt,
665
+ parsePatterns: Nt,
455
666
  defaultParseWidth: "any"
456
667
  }),
457
- quarter: B({
458
- matchPatterns: Nt,
668
+ quarter: W({
669
+ matchPatterns: jt,
459
670
  defaultMatchWidth: "wide",
460
- parsePatterns: Tt,
671
+ parsePatterns: It,
461
672
  defaultParseWidth: "any",
462
- valueCallback: (o) => o + 1
673
+ valueCallback: (a) => a + 1
463
674
  }),
464
- month: B({
465
- matchPatterns: Pt,
675
+ month: W({
676
+ matchPatterns: Mt,
466
677
  defaultMatchWidth: "wide",
467
678
  parsePatterns: _t,
468
679
  defaultParseWidth: "any"
469
680
  }),
470
- day: B({
471
- matchPatterns: It,
681
+ day: W({
682
+ matchPatterns: Et,
472
683
  defaultMatchWidth: "wide",
473
- parsePatterns: Mt,
684
+ parsePatterns: Ct,
474
685
  defaultParseWidth: "any"
475
686
  }),
476
- dayPeriod: B({
477
- matchPatterns: Ct,
687
+ dayPeriod: W({
688
+ matchPatterns: Ot,
478
689
  defaultMatchWidth: "any",
479
- parsePatterns: Et,
690
+ parsePatterns: Ft,
480
691
  defaultParseWidth: "any"
481
692
  })
482
- }, Ft = {
693
+ }, Lt = {
483
694
  code: "en-US",
484
- formatDistance: nt,
485
- formatLong: dt,
486
- formatRelative: st,
487
- localize: bt,
488
- match: Ot,
695
+ formatDistance: ot,
696
+ formatLong: lt,
697
+ formatRelative: ct,
698
+ localize: yt,
699
+ match: Yt,
489
700
  options: {
490
701
  weekStartsOn: 0,
491
702
  firstWeekContainsDate: 1
492
703
  }
493
704
  };
494
- function Yt(o, r) {
495
- const e = j(o, r == null ? void 0 : r.in), t = +W(e) - +Se(e);
705
+ function Wt(a, r) {
706
+ const e = D(a, r == null ? void 0 : r.in), t = +Y(e) - +tt(e);
496
707
  return Math.round(t / we) + 1;
497
708
  }
498
- function ve(o, r) {
499
- var b, c, P, F;
500
- const e = j(o, r == null ? void 0 : r.in), t = e.getFullYear(), n = A(), a = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((c = (b = r == null ? void 0 : r.locale) == null ? void 0 : b.options) == null ? void 0 : c.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((F = (P = n.locale) == null ? void 0 : P.options) == null ? void 0 : F.firstWeekContainsDate) ?? 1, l = v((r == null ? void 0 : r.in) || o, 0);
501
- l.setFullYear(t + 1, 0, a), l.setHours(0, 0, 0, 0);
502
- const u = O(l, r), f = v((r == null ? void 0 : r.in) || o, 0);
503
- f.setFullYear(t, 0, a), f.setHours(0, 0, 0, 0);
504
- const m = O(f, r);
505
- return +e >= +u ? t + 1 : +e >= +m ? t : t - 1;
506
- }
507
- function Wt(o, r) {
508
- var u, f, m, b;
509
- const e = A(), t = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((f = (u = r == null ? void 0 : r.locale) == null ? void 0 : u.options) == null ? void 0 : f.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((b = (m = e.locale) == null ? void 0 : m.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, n = ve(o, r), a = v((r == null ? void 0 : r.in) || o, 0);
510
- return a.setFullYear(n, 0, t), a.setHours(0, 0, 0, 0), O(a, r);
511
- }
512
- function Lt(o, r) {
513
- const e = j(o, r == null ? void 0 : r.in), t = +O(e, r) - +Wt(e, r);
709
+ function ke(a, r) {
710
+ var k, c, M, F;
711
+ const e = D(a, r == null ? void 0 : r.in), t = e.getFullYear(), n = H(), o = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((c = (k = r == null ? void 0 : r.locale) == null ? void 0 : k.options) == null ? void 0 : c.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((F = (M = n.locale) == null ? void 0 : M.options) == null ? void 0 : F.firstWeekContainsDate) ?? 1, s = v((r == null ? void 0 : r.in) || a, 0);
712
+ s.setFullYear(t + 1, 0, o), s.setHours(0, 0, 0, 0);
713
+ const u = C(s, r), h = v((r == null ? void 0 : r.in) || a, 0);
714
+ h.setFullYear(t, 0, o), h.setHours(0, 0, 0, 0);
715
+ const x = C(h, r);
716
+ return +e >= +u ? t + 1 : +e >= +x ? t : t - 1;
717
+ }
718
+ function Ht(a, r) {
719
+ var u, h, x, k;
720
+ const e = H(), t = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((h = (u = r == null ? void 0 : r.locale) == null ? void 0 : u.options) == null ? void 0 : h.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((k = (x = e.locale) == null ? void 0 : x.options) == null ? void 0 : k.firstWeekContainsDate) ?? 1, n = ke(a, r), o = v((r == null ? void 0 : r.in) || a, 0);
721
+ return o.setFullYear(n, 0, t), o.setHours(0, 0, 0, 0), C(o, r);
722
+ }
723
+ function At(a, r) {
724
+ const e = D(a, r == null ? void 0 : r.in), t = +C(e, r) - +Ht(e, r);
514
725
  return Math.round(t / we) + 1;
515
726
  }
516
- const ue = (o, r) => {
517
- switch (o) {
727
+ const le = (a, r) => {
728
+ switch (a) {
518
729
  case "P":
519
730
  return r.date({ width: "short" });
520
731
  case "PP":
@@ -525,8 +736,8 @@ const ue = (o, r) => {
525
736
  default:
526
737
  return r.date({ width: "full" });
527
738
  }
528
- }, je = (o, r) => {
529
- switch (o) {
739
+ }, ve = (a, r) => {
740
+ switch (a) {
530
741
  case "p":
531
742
  return r.time({ width: "short" });
532
743
  case "pp":
@@ -537,77 +748,77 @@ const ue = (o, r) => {
537
748
  default:
538
749
  return r.time({ width: "full" });
539
750
  }
540
- }, Ht = (o, r) => {
541
- const e = o.match(/(P+)(p+)?/) || [], t = e[1], n = e[2];
751
+ }, Rt = (a, r) => {
752
+ const e = a.match(/(P+)(p+)?/) || [], t = e[1], n = e[2];
542
753
  if (!n)
543
- return ue(o, r);
544
- let a;
754
+ return le(a, r);
755
+ let o;
545
756
  switch (t) {
546
757
  case "P":
547
- a = r.dateTime({ width: "short" });
758
+ o = r.dateTime({ width: "short" });
548
759
  break;
549
760
  case "PP":
550
- a = r.dateTime({ width: "medium" });
761
+ o = r.dateTime({ width: "medium" });
551
762
  break;
552
763
  case "PPP":
553
- a = r.dateTime({ width: "long" });
764
+ o = r.dateTime({ width: "long" });
554
765
  break;
555
766
  case "PPPP":
556
767
  default:
557
- a = r.dateTime({ width: "full" });
768
+ o = r.dateTime({ width: "full" });
558
769
  break;
559
770
  }
560
- return a.replace("{{date}}", ue(t, r)).replace("{{time}}", je(n, r));
561
- }, ce = {
562
- p: je,
563
- P: Ht
564
- }, Bt = /^D+$/, At = /^Y+$/, Rt = ["D", "DD", "YY", "YYYY"];
565
- function zt(o) {
566
- return Bt.test(o);
771
+ return o.replace("{{date}}", le(t, r)).replace("{{time}}", ve(n, r));
772
+ }, ue = {
773
+ p: ve,
774
+ P: Rt
775
+ }, Bt = /^D+$/, qt = /^Y+$/, zt = ["D", "DD", "YY", "YYYY"];
776
+ function Qt(a) {
777
+ return Bt.test(a);
567
778
  }
568
- function qt(o) {
569
- return At.test(o);
779
+ function Vt(a) {
780
+ return qt.test(a);
570
781
  }
571
- function fe(o, r, e) {
572
- const t = Vt(o, r, e);
573
- if (console.warn(t), Rt.includes(o)) throw new RangeError(t);
782
+ function ce(a, r, e) {
783
+ const t = $t(a, r, e);
784
+ if (console.warn(t), zt.includes(a)) throw new RangeError(t);
574
785
  }
575
- function Vt(o, r, e) {
576
- const t = o[0] === "Y" ? "years" : "days of the month";
577
- return `Use \`${o.toLowerCase()}\` instead of \`${o}\` (in \`${r}\`) for formatting ${t} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
786
+ function $t(a, r, e) {
787
+ const t = a[0] === "Y" ? "years" : "days of the month";
788
+ return `Use \`${a.toLowerCase()}\` instead of \`${a}\` (in \`${r}\`) for formatting ${t} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
578
789
  }
579
- function Qt() {
580
- return Object.assign({}, A());
790
+ function Gt() {
791
+ return Object.assign({}, H());
581
792
  }
582
- function $t(o, r) {
583
- const e = j(o, r == null ? void 0 : r.in).getDay();
793
+ function Xt(a, r) {
794
+ const e = D(a, r == null ? void 0 : r.in).getDay();
584
795
  return e === 0 ? 7 : e;
585
796
  }
586
- function Gt(o, r) {
587
- const e = Xt(r) ? new r(0) : v(r, 0);
588
- return e.setFullYear(o.getFullYear(), o.getMonth(), o.getDate()), e.setHours(
589
- o.getHours(),
590
- o.getMinutes(),
591
- o.getSeconds(),
592
- o.getMilliseconds()
797
+ function Zt(a, r) {
798
+ const e = Ut(r) ? new r(0) : v(r, 0);
799
+ return e.setFullYear(a.getFullYear(), a.getMonth(), a.getDate()), e.setHours(
800
+ a.getHours(),
801
+ a.getMinutes(),
802
+ a.getSeconds(),
803
+ a.getMilliseconds()
593
804
  ), e;
594
805
  }
595
- function Xt(o) {
806
+ function Ut(a) {
596
807
  var r;
597
- return typeof o == "function" && ((r = o.prototype) == null ? void 0 : r.constructor) === o;
808
+ return typeof a == "function" && ((r = a.prototype) == null ? void 0 : r.constructor) === a;
598
809
  }
599
- const Zt = 10;
810
+ const Jt = 10;
600
811
  class De {
601
812
  constructor() {
602
- s(this, "subPriority", 0);
813
+ l(this, "subPriority", 0);
603
814
  }
604
815
  validate(r, e) {
605
816
  return !0;
606
817
  }
607
818
  }
608
- class Ut extends De {
609
- constructor(r, e, t, n, a) {
610
- super(), this.value = r, this.validateValue = e, this.setValue = t, this.priority = n, a && (this.subPriority = a);
819
+ class Kt extends De {
820
+ constructor(r, e, t, n, o) {
821
+ super(), this.value = r, this.validateValue = e, this.setValue = t, this.priority = n, o && (this.subPriority = o);
611
822
  }
612
823
  validate(r, e) {
613
824
  return this.validateValue(r, this.value, e);
@@ -616,40 +827,40 @@ class Ut extends De {
616
827
  return this.setValue(r, e, this.value, t);
617
828
  }
618
829
  }
619
- class Jt extends De {
830
+ class St extends De {
620
831
  constructor(e, t) {
621
832
  super();
622
- s(this, "priority", Zt);
623
- s(this, "subPriority", -1);
833
+ l(this, "priority", Jt);
834
+ l(this, "subPriority", -1);
624
835
  this.context = e || ((n) => v(t, n));
625
836
  }
626
837
  set(e, t) {
627
- return t.timestampIsSet ? e : v(e, Gt(e, this.context));
838
+ return t.timestampIsSet ? e : v(e, Zt(e, this.context));
628
839
  }
629
840
  }
630
- class p {
841
+ class m {
631
842
  run(r, e, t, n) {
632
- const a = this.parse(r, e, t, n);
633
- return a ? {
634
- setter: new Ut(
635
- a.value,
843
+ const o = this.parse(r, e, t, n);
844
+ return o ? {
845
+ setter: new Kt(
846
+ o.value,
636
847
  this.validate,
637
848
  this.set,
638
849
  this.priority,
639
850
  this.subPriority
640
851
  ),
641
- rest: a.rest
852
+ rest: o.rest
642
853
  } : null;
643
854
  }
644
855
  validate(r, e, t) {
645
856
  return !0;
646
857
  }
647
858
  }
648
- class Kt extends p {
859
+ class er extends m {
649
860
  constructor() {
650
861
  super(...arguments);
651
- s(this, "priority", 140);
652
- s(this, "incompatibleTokens", ["R", "u", "t", "T"]);
862
+ l(this, "priority", 140);
863
+ l(this, "incompatibleTokens", ["R", "u", "t", "T"]);
653
864
  }
654
865
  parse(e, t, n) {
655
866
  switch (t) {
@@ -668,7 +879,7 @@ class Kt extends p {
668
879
  return t.era = n, e.setFullYear(n, 0, 1), e.setHours(0, 0, 0, 0), e;
669
880
  }
670
881
  }
671
- const g = {
882
+ const y = {
672
883
  month: /^(1[0-2]|0?\d)/,
673
884
  // 0 to 12
674
885
  date: /^(3[0-1]|[0-2]?\d)/,
@@ -706,28 +917,28 @@ const g = {
706
917
  // 0 to 999, -0 to -999
707
918
  fourDigitsSigned: /^-?\d{1,4}/
708
919
  // 0 to 9999, -0 to -9999
709
- }, I = {
920
+ }, j = {
710
921
  basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
711
922
  basic: /^([+-])(\d{2})(\d{2})|Z/,
712
923
  basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
713
924
  extended: /^([+-])(\d{2}):(\d{2})|Z/,
714
925
  extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
715
926
  };
716
- function k(o, r) {
717
- return o && {
718
- value: r(o.value),
719
- rest: o.rest
927
+ function g(a, r) {
928
+ return a && {
929
+ value: r(a.value),
930
+ rest: a.rest
720
931
  };
721
932
  }
722
- function x(o, r) {
723
- const e = r.match(o);
933
+ function p(a, r) {
934
+ const e = r.match(a);
724
935
  return e ? {
725
936
  value: parseInt(e[0], 10),
726
937
  rest: r.slice(e[0].length)
727
938
  } : null;
728
939
  }
729
- function M(o, r) {
730
- const e = r.match(o);
940
+ function I(a, r) {
941
+ const e = r.match(a);
731
942
  if (!e)
732
943
  return null;
733
944
  if (e[0] === "Z")
@@ -735,45 +946,45 @@ function M(o, r) {
735
946
  value: 0,
736
947
  rest: r.slice(1)
737
948
  };
738
- const t = e[1] === "+" ? 1 : -1, n = e[2] ? parseInt(e[2], 10) : 0, a = e[3] ? parseInt(e[3], 10) : 0, l = e[5] ? parseInt(e[5], 10) : 0;
949
+ const t = e[1] === "+" ? 1 : -1, n = e[2] ? parseInt(e[2], 10) : 0, o = e[3] ? parseInt(e[3], 10) : 0, s = e[5] ? parseInt(e[5], 10) : 0;
739
950
  return {
740
- value: t * (n * Ze + a * Xe + l * Ue),
951
+ value: t * (n * Je + o * Ue + s * Ke),
741
952
  rest: r.slice(e[0].length)
742
953
  };
743
954
  }
744
- function Ne(o) {
745
- return x(g.anyDigitsSigned, o);
955
+ function Te(a) {
956
+ return p(y.anyDigitsSigned, a);
746
957
  }
747
- function w(o, r) {
748
- switch (o) {
958
+ function w(a, r) {
959
+ switch (a) {
749
960
  case 1:
750
- return x(g.singleDigit, r);
961
+ return p(y.singleDigit, r);
751
962
  case 2:
752
- return x(g.twoDigits, r);
963
+ return p(y.twoDigits, r);
753
964
  case 3:
754
- return x(g.threeDigits, r);
965
+ return p(y.threeDigits, r);
755
966
  case 4:
756
- return x(g.fourDigits, r);
967
+ return p(y.fourDigits, r);
757
968
  default:
758
- return x(new RegExp("^\\d{1," + o + "}"), r);
969
+ return p(new RegExp("^\\d{1," + a + "}"), r);
759
970
  }
760
971
  }
761
- function V(o, r) {
762
- switch (o) {
972
+ function q(a, r) {
973
+ switch (a) {
763
974
  case 1:
764
- return x(g.singleDigitSigned, r);
975
+ return p(y.singleDigitSigned, r);
765
976
  case 2:
766
- return x(g.twoDigitsSigned, r);
977
+ return p(y.twoDigitsSigned, r);
767
978
  case 3:
768
- return x(g.threeDigitsSigned, r);
979
+ return p(y.threeDigitsSigned, r);
769
980
  case 4:
770
- return x(g.fourDigitsSigned, r);
981
+ return p(y.fourDigitsSigned, r);
771
982
  default:
772
- return x(new RegExp("^-?\\d{1," + o + "}"), r);
983
+ return p(new RegExp("^-?\\d{1," + a + "}"), r);
773
984
  }
774
985
  }
775
- function S(o) {
776
- switch (o) {
986
+ function J(a) {
987
+ switch (a) {
777
988
  case "morning":
778
989
  return 4;
779
990
  case "evening":
@@ -789,66 +1000,66 @@ function S(o) {
789
1000
  return 0;
790
1001
  }
791
1002
  }
792
- function Te(o, r) {
1003
+ function Pe(a, r) {
793
1004
  const e = r > 0, t = e ? r : 1 - r;
794
1005
  let n;
795
1006
  if (t <= 50)
796
- n = o || 100;
1007
+ n = a || 100;
797
1008
  else {
798
- const a = t + 50, l = Math.trunc(a / 100) * 100, u = o >= a % 100;
799
- n = o + l - (u ? 100 : 0);
1009
+ const o = t + 50, s = Math.trunc(o / 100) * 100, u = a >= o % 100;
1010
+ n = a + s - (u ? 100 : 0);
800
1011
  }
801
1012
  return e ? n : 1 - n;
802
1013
  }
803
- function Pe(o) {
804
- return o % 400 === 0 || o % 4 === 0 && o % 100 !== 0;
1014
+ function Ne(a) {
1015
+ return a % 400 === 0 || a % 4 === 0 && a % 100 !== 0;
805
1016
  }
806
- class St extends p {
1017
+ class tr extends m {
807
1018
  constructor() {
808
1019
  super(...arguments);
809
- s(this, "priority", 130);
810
- s(this, "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]);
1020
+ l(this, "priority", 130);
1021
+ l(this, "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]);
811
1022
  }
812
1023
  parse(e, t, n) {
813
- const a = (l) => ({
814
- year: l,
1024
+ const o = (s) => ({
1025
+ year: s,
815
1026
  isTwoDigitYear: t === "yy"
816
1027
  });
817
1028
  switch (t) {
818
1029
  case "y":
819
- return k(w(4, e), a);
1030
+ return g(w(4, e), o);
820
1031
  case "yo":
821
- return k(
1032
+ return g(
822
1033
  n.ordinalNumber(e, {
823
1034
  unit: "year"
824
1035
  }),
825
- a
1036
+ o
826
1037
  );
827
1038
  default:
828
- return k(w(t.length, e), a);
1039
+ return g(w(t.length, e), o);
829
1040
  }
830
1041
  }
831
1042
  validate(e, t) {
832
1043
  return t.isTwoDigitYear || t.year > 0;
833
1044
  }
834
1045
  set(e, t, n) {
835
- const a = e.getFullYear();
1046
+ const o = e.getFullYear();
836
1047
  if (n.isTwoDigitYear) {
837
- const u = Te(
1048
+ const u = Pe(
838
1049
  n.year,
839
- a
1050
+ o
840
1051
  );
841
1052
  return e.setFullYear(u, 0, 1), e.setHours(0, 0, 0, 0), e;
842
1053
  }
843
- const l = !("era" in t) || t.era === 1 ? n.year : 1 - n.year;
844
- return e.setFullYear(l, 0, 1), e.setHours(0, 0, 0, 0), e;
1054
+ const s = !("era" in t) || t.era === 1 ? n.year : 1 - n.year;
1055
+ return e.setFullYear(s, 0, 1), e.setHours(0, 0, 0, 0), e;
845
1056
  }
846
1057
  }
847
- class er extends p {
1058
+ class rr extends m {
848
1059
  constructor() {
849
1060
  super(...arguments);
850
- s(this, "priority", 130);
851
- s(this, "incompatibleTokens", [
1061
+ l(this, "priority", 130);
1062
+ l(this, "incompatibleTokens", [
852
1063
  "y",
853
1064
  "R",
854
1065
  "u",
@@ -865,49 +1076,49 @@ class er extends p {
865
1076
  ]);
866
1077
  }
867
1078
  parse(e, t, n) {
868
- const a = (l) => ({
869
- year: l,
1079
+ const o = (s) => ({
1080
+ year: s,
870
1081
  isTwoDigitYear: t === "YY"
871
1082
  });
872
1083
  switch (t) {
873
1084
  case "Y":
874
- return k(w(4, e), a);
1085
+ return g(w(4, e), o);
875
1086
  case "Yo":
876
- return k(
1087
+ return g(
877
1088
  n.ordinalNumber(e, {
878
1089
  unit: "year"
879
1090
  }),
880
- a
1091
+ o
881
1092
  );
882
1093
  default:
883
- return k(w(t.length, e), a);
1094
+ return g(w(t.length, e), o);
884
1095
  }
885
1096
  }
886
1097
  validate(e, t) {
887
1098
  return t.isTwoDigitYear || t.year > 0;
888
1099
  }
889
- set(e, t, n, a) {
890
- const l = ve(e, a);
1100
+ set(e, t, n, o) {
1101
+ const s = ke(e, o);
891
1102
  if (n.isTwoDigitYear) {
892
- const f = Te(
1103
+ const h = Pe(
893
1104
  n.year,
894
- l
1105
+ s
895
1106
  );
896
1107
  return e.setFullYear(
897
- f,
1108
+ h,
898
1109
  0,
899
- a.firstWeekContainsDate
900
- ), e.setHours(0, 0, 0, 0), O(e, a);
1110
+ o.firstWeekContainsDate
1111
+ ), e.setHours(0, 0, 0, 0), C(e, o);
901
1112
  }
902
1113
  const u = !("era" in t) || t.era === 1 ? n.year : 1 - n.year;
903
- return e.setFullYear(u, 0, a.firstWeekContainsDate), e.setHours(0, 0, 0, 0), O(e, a);
1114
+ return e.setFullYear(u, 0, o.firstWeekContainsDate), e.setHours(0, 0, 0, 0), C(e, o);
904
1115
  }
905
1116
  }
906
- class tr extends p {
1117
+ class nr extends m {
907
1118
  constructor() {
908
1119
  super(...arguments);
909
- s(this, "priority", 130);
910
- s(this, "incompatibleTokens", [
1120
+ l(this, "priority", 130);
1121
+ l(this, "incompatibleTokens", [
911
1122
  "G",
912
1123
  "y",
913
1124
  "Y",
@@ -926,31 +1137,31 @@ class tr extends p {
926
1137
  ]);
927
1138
  }
928
1139
  parse(e, t) {
929
- return V(t === "R" ? 4 : t.length, e);
1140
+ return q(t === "R" ? 4 : t.length, e);
930
1141
  }
931
1142
  set(e, t, n) {
932
- const a = v(e, 0);
933
- return a.setFullYear(n, 0, 4), a.setHours(0, 0, 0, 0), W(a);
1143
+ const o = v(e, 0);
1144
+ return o.setFullYear(n, 0, 4), o.setHours(0, 0, 0, 0), Y(o);
934
1145
  }
935
1146
  }
936
- class rr extends p {
1147
+ class ar extends m {
937
1148
  constructor() {
938
1149
  super(...arguments);
939
- s(this, "priority", 130);
940
- s(this, "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
1150
+ l(this, "priority", 130);
1151
+ l(this, "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
941
1152
  }
942
1153
  parse(e, t) {
943
- return V(t === "u" ? 4 : t.length, e);
1154
+ return q(t === "u" ? 4 : t.length, e);
944
1155
  }
945
1156
  set(e, t, n) {
946
1157
  return e.setFullYear(n, 0, 1), e.setHours(0, 0, 0, 0), e;
947
1158
  }
948
1159
  }
949
- class nr extends p {
1160
+ class or extends m {
950
1161
  constructor() {
951
1162
  super(...arguments);
952
- s(this, "priority", 120);
953
- s(this, "incompatibleTokens", [
1163
+ l(this, "priority", 120);
1164
+ l(this, "incompatibleTokens", [
954
1165
  "Y",
955
1166
  "R",
956
1167
  "q",
@@ -1008,11 +1219,11 @@ class nr extends p {
1008
1219
  return e.setMonth((n - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
1009
1220
  }
1010
1221
  }
1011
- class or extends p {
1222
+ class ir extends m {
1012
1223
  constructor() {
1013
1224
  super(...arguments);
1014
- s(this, "priority", 120);
1015
- s(this, "incompatibleTokens", [
1225
+ l(this, "priority", 120);
1226
+ l(this, "incompatibleTokens", [
1016
1227
  "Y",
1017
1228
  "R",
1018
1229
  "Q",
@@ -1070,10 +1281,10 @@ class or extends p {
1070
1281
  return e.setMonth((n - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
1071
1282
  }
1072
1283
  }
1073
- class ar extends p {
1284
+ class sr extends m {
1074
1285
  constructor() {
1075
1286
  super(...arguments);
1076
- s(this, "incompatibleTokens", [
1287
+ l(this, "incompatibleTokens", [
1077
1288
  "Y",
1078
1289
  "R",
1079
1290
  "q",
@@ -1088,24 +1299,24 @@ class ar extends p {
1088
1299
  "t",
1089
1300
  "T"
1090
1301
  ]);
1091
- s(this, "priority", 110);
1302
+ l(this, "priority", 110);
1092
1303
  }
1093
1304
  parse(e, t, n) {
1094
- const a = (l) => l - 1;
1305
+ const o = (s) => s - 1;
1095
1306
  switch (t) {
1096
1307
  case "M":
1097
- return k(
1098
- x(g.month, e),
1099
- a
1308
+ return g(
1309
+ p(y.month, e),
1310
+ o
1100
1311
  );
1101
1312
  case "MM":
1102
- return k(w(2, e), a);
1313
+ return g(w(2, e), o);
1103
1314
  case "Mo":
1104
- return k(
1315
+ return g(
1105
1316
  n.ordinalNumber(e, {
1106
1317
  unit: "month"
1107
1318
  }),
1108
- a
1319
+ o
1109
1320
  );
1110
1321
  case "MMM":
1111
1322
  return n.month(e, {
@@ -1132,11 +1343,11 @@ class ar extends p {
1132
1343
  return e.setMonth(n, 1), e.setHours(0, 0, 0, 0), e;
1133
1344
  }
1134
1345
  }
1135
- class ir extends p {
1346
+ class dr extends m {
1136
1347
  constructor() {
1137
1348
  super(...arguments);
1138
- s(this, "priority", 110);
1139
- s(this, "incompatibleTokens", [
1349
+ l(this, "priority", 110);
1350
+ l(this, "incompatibleTokens", [
1140
1351
  "Y",
1141
1352
  "R",
1142
1353
  "q",
@@ -1153,21 +1364,21 @@ class ir extends p {
1153
1364
  ]);
1154
1365
  }
1155
1366
  parse(e, t, n) {
1156
- const a = (l) => l - 1;
1367
+ const o = (s) => s - 1;
1157
1368
  switch (t) {
1158
1369
  case "L":
1159
- return k(
1160
- x(g.month, e),
1161
- a
1370
+ return g(
1371
+ p(y.month, e),
1372
+ o
1162
1373
  );
1163
1374
  case "LL":
1164
- return k(w(2, e), a);
1375
+ return g(w(2, e), o);
1165
1376
  case "Lo":
1166
- return k(
1377
+ return g(
1167
1378
  n.ordinalNumber(e, {
1168
1379
  unit: "month"
1169
1380
  }),
1170
- a
1381
+ o
1171
1382
  );
1172
1383
  case "LLL":
1173
1384
  return n.month(e, {
@@ -1194,15 +1405,15 @@ class ir extends p {
1194
1405
  return e.setMonth(n, 1), e.setHours(0, 0, 0, 0), e;
1195
1406
  }
1196
1407
  }
1197
- function dr(o, r, e) {
1198
- const t = j(o, e == null ? void 0 : e.in), n = Lt(t, e) - r;
1199
- return t.setDate(t.getDate() - n * 7), j(t, e == null ? void 0 : e.in);
1408
+ function lr(a, r, e) {
1409
+ const t = D(a, e == null ? void 0 : e.in), n = At(t, e) - r;
1410
+ return t.setDate(t.getDate() - n * 7), D(t, e == null ? void 0 : e.in);
1200
1411
  }
1201
- class lr extends p {
1412
+ class ur extends m {
1202
1413
  constructor() {
1203
1414
  super(...arguments);
1204
- s(this, "priority", 100);
1205
- s(this, "incompatibleTokens", [
1415
+ l(this, "priority", 100);
1416
+ l(this, "incompatibleTokens", [
1206
1417
  "y",
1207
1418
  "R",
1208
1419
  "u",
@@ -1221,7 +1432,7 @@ class lr extends p {
1221
1432
  parse(e, t, n) {
1222
1433
  switch (t) {
1223
1434
  case "w":
1224
- return x(g.week, e);
1435
+ return p(y.week, e);
1225
1436
  case "wo":
1226
1437
  return n.ordinalNumber(e, { unit: "week" });
1227
1438
  default:
@@ -1231,19 +1442,19 @@ class lr extends p {
1231
1442
  validate(e, t) {
1232
1443
  return t >= 1 && t <= 53;
1233
1444
  }
1234
- set(e, t, n, a) {
1235
- return O(dr(e, n, a), a);
1445
+ set(e, t, n, o) {
1446
+ return C(lr(e, n, o), o);
1236
1447
  }
1237
1448
  }
1238
- function sr(o, r, e) {
1239
- const t = j(o, e == null ? void 0 : e.in), n = Yt(t, e) - r;
1449
+ function cr(a, r, e) {
1450
+ const t = D(a, e == null ? void 0 : e.in), n = Wt(t, e) - r;
1240
1451
  return t.setDate(t.getDate() - n * 7), t;
1241
1452
  }
1242
- class ur extends p {
1453
+ class fr extends m {
1243
1454
  constructor() {
1244
1455
  super(...arguments);
1245
- s(this, "priority", 100);
1246
- s(this, "incompatibleTokens", [
1456
+ l(this, "priority", 100);
1457
+ l(this, "incompatibleTokens", [
1247
1458
  "y",
1248
1459
  "Y",
1249
1460
  "u",
@@ -1263,7 +1474,7 @@ class ur extends p {
1263
1474
  parse(e, t, n) {
1264
1475
  switch (t) {
1265
1476
  case "I":
1266
- return x(g.week, e);
1477
+ return p(y.week, e);
1267
1478
  case "Io":
1268
1479
  return n.ordinalNumber(e, { unit: "week" });
1269
1480
  default:
@@ -1274,10 +1485,10 @@ class ur extends p {
1274
1485
  return t >= 1 && t <= 53;
1275
1486
  }
1276
1487
  set(e, t, n) {
1277
- return W(sr(e, n));
1488
+ return Y(cr(e, n));
1278
1489
  }
1279
1490
  }
1280
- const cr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], fr = [
1491
+ const mr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], hr = [
1281
1492
  31,
1282
1493
  29,
1283
1494
  31,
@@ -1291,12 +1502,12 @@ const cr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], fr = [
1291
1502
  30,
1292
1503
  31
1293
1504
  ];
1294
- class mr extends p {
1505
+ class xr extends m {
1295
1506
  constructor() {
1296
1507
  super(...arguments);
1297
- s(this, "priority", 90);
1298
- s(this, "subPriority", 1);
1299
- s(this, "incompatibleTokens", [
1508
+ l(this, "priority", 90);
1509
+ l(this, "subPriority", 1);
1510
+ l(this, "incompatibleTokens", [
1300
1511
  "Y",
1301
1512
  "R",
1302
1513
  "q",
@@ -1314,7 +1525,7 @@ class mr extends p {
1314
1525
  parse(e, t, n) {
1315
1526
  switch (t) {
1316
1527
  case "d":
1317
- return x(g.date, e);
1528
+ return p(y.date, e);
1318
1529
  case "do":
1319
1530
  return n.ordinalNumber(e, { unit: "date" });
1320
1531
  default:
@@ -1322,19 +1533,19 @@ class mr extends p {
1322
1533
  }
1323
1534
  }
1324
1535
  validate(e, t) {
1325
- const n = e.getFullYear(), a = Pe(n), l = e.getMonth();
1326
- return a ? t >= 1 && t <= fr[l] : t >= 1 && t <= cr[l];
1536
+ const n = e.getFullYear(), o = Ne(n), s = e.getMonth();
1537
+ return o ? t >= 1 && t <= hr[s] : t >= 1 && t <= mr[s];
1327
1538
  }
1328
1539
  set(e, t, n) {
1329
1540
  return e.setDate(n), e.setHours(0, 0, 0, 0), e;
1330
1541
  }
1331
1542
  }
1332
- class hr extends p {
1543
+ class pr extends m {
1333
1544
  constructor() {
1334
1545
  super(...arguments);
1335
- s(this, "priority", 90);
1336
- s(this, "subpriority", 1);
1337
- s(this, "incompatibleTokens", [
1546
+ l(this, "priority", 90);
1547
+ l(this, "subpriority", 1);
1548
+ l(this, "incompatibleTokens", [
1338
1549
  "Y",
1339
1550
  "R",
1340
1551
  "q",
@@ -1356,7 +1567,7 @@ class hr extends p {
1356
1567
  switch (t) {
1357
1568
  case "D":
1358
1569
  case "DD":
1359
- return x(g.dayOfYear, e);
1570
+ return p(y.dayOfYear, e);
1360
1571
  case "Do":
1361
1572
  return n.ordinalNumber(e, { unit: "date" });
1362
1573
  default:
@@ -1365,22 +1576,22 @@ class hr extends p {
1365
1576
  }
1366
1577
  validate(e, t) {
1367
1578
  const n = e.getFullYear();
1368
- return Pe(n) ? t >= 1 && t <= 366 : t >= 1 && t <= 365;
1579
+ return Ne(n) ? t >= 1 && t <= 366 : t >= 1 && t <= 365;
1369
1580
  }
1370
1581
  set(e, t, n) {
1371
1582
  return e.setMonth(0, n), e.setHours(0, 0, 0, 0), e;
1372
1583
  }
1373
1584
  }
1374
- function ee(o, r, e) {
1375
- var c, P, F, C;
1376
- const t = A(), n = (e == null ? void 0 : e.weekStartsOn) ?? ((P = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : P.weekStartsOn) ?? t.weekStartsOn ?? ((C = (F = t.locale) == null ? void 0 : F.options) == null ? void 0 : C.weekStartsOn) ?? 0, a = j(o, e == null ? void 0 : e.in), l = a.getDay(), f = (r % 7 + 7) % 7, m = 7 - n, b = r < 0 || r > 6 ? r - (l + m) % 7 : (f + m) % 7 - (l + m) % 7;
1377
- return ge(a, b, e);
1585
+ function K(a, r, e) {
1586
+ var c, M, F, _;
1587
+ const t = H(), n = (e == null ? void 0 : e.weekStartsOn) ?? ((M = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : M.weekStartsOn) ?? t.weekStartsOn ?? ((_ = (F = t.locale) == null ? void 0 : F.options) == null ? void 0 : _.weekStartsOn) ?? 0, o = D(a, e == null ? void 0 : e.in), s = o.getDay(), h = (r % 7 + 7) % 7, x = 7 - n, k = r < 0 || r > 6 ? r - (s + x) % 7 : (h + x) % 7 - (s + x) % 7;
1588
+ return ye(o, k, e);
1378
1589
  }
1379
- class pr extends p {
1590
+ class br extends m {
1380
1591
  constructor() {
1381
1592
  super(...arguments);
1382
- s(this, "priority", 90);
1383
- s(this, "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]);
1593
+ l(this, "priority", 90);
1594
+ l(this, "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]);
1384
1595
  }
1385
1596
  parse(e, t, n) {
1386
1597
  switch (t) {
@@ -1409,15 +1620,15 @@ class pr extends p {
1409
1620
  validate(e, t) {
1410
1621
  return t >= 0 && t <= 6;
1411
1622
  }
1412
- set(e, t, n, a) {
1413
- return e = ee(e, n, a), e.setHours(0, 0, 0, 0), e;
1623
+ set(e, t, n, o) {
1624
+ return e = K(e, n, o), e.setHours(0, 0, 0, 0), e;
1414
1625
  }
1415
1626
  }
1416
- class xr extends p {
1627
+ class wr extends m {
1417
1628
  constructor() {
1418
1629
  super(...arguments);
1419
- s(this, "priority", 90);
1420
- s(this, "incompatibleTokens", [
1630
+ l(this, "priority", 90);
1631
+ l(this, "incompatibleTokens", [
1421
1632
  "y",
1422
1633
  "R",
1423
1634
  "u",
@@ -1435,21 +1646,21 @@ class xr extends p {
1435
1646
  "T"
1436
1647
  ]);
1437
1648
  }
1438
- parse(e, t, n, a) {
1439
- const l = (u) => {
1440
- const f = Math.floor((u - 1) / 7) * 7;
1441
- return (u + a.weekStartsOn + 6) % 7 + f;
1649
+ parse(e, t, n, o) {
1650
+ const s = (u) => {
1651
+ const h = Math.floor((u - 1) / 7) * 7;
1652
+ return (u + o.weekStartsOn + 6) % 7 + h;
1442
1653
  };
1443
1654
  switch (t) {
1444
1655
  case "e":
1445
1656
  case "ee":
1446
- return k(w(t.length, e), l);
1657
+ return g(w(t.length, e), s);
1447
1658
  case "eo":
1448
- return k(
1659
+ return g(
1449
1660
  n.ordinalNumber(e, {
1450
1661
  unit: "day"
1451
1662
  }),
1452
- l
1663
+ s
1453
1664
  );
1454
1665
  case "eee":
1455
1666
  return n.day(e, {
@@ -1474,15 +1685,15 @@ class xr extends p {
1474
1685
  validate(e, t) {
1475
1686
  return t >= 0 && t <= 6;
1476
1687
  }
1477
- set(e, t, n, a) {
1478
- return e = ee(e, n, a), e.setHours(0, 0, 0, 0), e;
1688
+ set(e, t, n, o) {
1689
+ return e = K(e, n, o), e.setHours(0, 0, 0, 0), e;
1479
1690
  }
1480
1691
  }
1481
- class br extends p {
1692
+ class yr extends m {
1482
1693
  constructor() {
1483
1694
  super(...arguments);
1484
- s(this, "priority", 90);
1485
- s(this, "incompatibleTokens", [
1695
+ l(this, "priority", 90);
1696
+ l(this, "incompatibleTokens", [
1486
1697
  "y",
1487
1698
  "R",
1488
1699
  "u",
@@ -1500,21 +1711,21 @@ class br extends p {
1500
1711
  "T"
1501
1712
  ]);
1502
1713
  }
1503
- parse(e, t, n, a) {
1504
- const l = (u) => {
1505
- const f = Math.floor((u - 1) / 7) * 7;
1506
- return (u + a.weekStartsOn + 6) % 7 + f;
1714
+ parse(e, t, n, o) {
1715
+ const s = (u) => {
1716
+ const h = Math.floor((u - 1) / 7) * 7;
1717
+ return (u + o.weekStartsOn + 6) % 7 + h;
1507
1718
  };
1508
1719
  switch (t) {
1509
1720
  case "c":
1510
1721
  case "cc":
1511
- return k(w(t.length, e), l);
1722
+ return g(w(t.length, e), s);
1512
1723
  case "co":
1513
- return k(
1724
+ return g(
1514
1725
  n.ordinalNumber(e, {
1515
1726
  unit: "day"
1516
1727
  }),
1517
- l
1728
+ s
1518
1729
  );
1519
1730
  case "ccc":
1520
1731
  return n.day(e, {
@@ -1539,19 +1750,19 @@ class br extends p {
1539
1750
  validate(e, t) {
1540
1751
  return t >= 0 && t <= 6;
1541
1752
  }
1542
- set(e, t, n, a) {
1543
- return e = ee(e, n, a), e.setHours(0, 0, 0, 0), e;
1753
+ set(e, t, n, o) {
1754
+ return e = K(e, n, o), e.setHours(0, 0, 0, 0), e;
1544
1755
  }
1545
1756
  }
1546
- function yr(o, r, e) {
1547
- const t = j(o, e == null ? void 0 : e.in), n = $t(t, e), a = r - n;
1548
- return ge(t, a, e);
1757
+ function gr(a, r, e) {
1758
+ const t = D(a, e == null ? void 0 : e.in), n = Xt(t, e), o = r - n;
1759
+ return ye(t, o, e);
1549
1760
  }
1550
- class wr extends p {
1761
+ class kr extends m {
1551
1762
  constructor() {
1552
1763
  super(...arguments);
1553
- s(this, "priority", 90);
1554
- s(this, "incompatibleTokens", [
1764
+ l(this, "priority", 90);
1765
+ l(this, "incompatibleTokens", [
1555
1766
  "y",
1556
1767
  "Y",
1557
1768
  "u",
@@ -1570,7 +1781,7 @@ class wr extends p {
1570
1781
  ]);
1571
1782
  }
1572
1783
  parse(e, t, n) {
1573
- const a = (l) => l === 0 ? 7 : l;
1784
+ const o = (s) => s === 0 ? 7 : s;
1574
1785
  switch (t) {
1575
1786
  case "i":
1576
1787
  case "ii":
@@ -1578,7 +1789,7 @@ class wr extends p {
1578
1789
  case "io":
1579
1790
  return n.ordinalNumber(e, { unit: "day" });
1580
1791
  case "iii":
1581
- return k(
1792
+ return g(
1582
1793
  n.day(e, {
1583
1794
  width: "abbreviated",
1584
1795
  context: "formatting"
@@ -1589,18 +1800,18 @@ class wr extends p {
1589
1800
  width: "narrow",
1590
1801
  context: "formatting"
1591
1802
  }),
1592
- a
1803
+ o
1593
1804
  );
1594
1805
  case "iiiii":
1595
- return k(
1806
+ return g(
1596
1807
  n.day(e, {
1597
1808
  width: "narrow",
1598
1809
  context: "formatting"
1599
1810
  }),
1600
- a
1811
+ o
1601
1812
  );
1602
1813
  case "iiiiii":
1603
- return k(
1814
+ return g(
1604
1815
  n.day(e, {
1605
1816
  width: "short",
1606
1817
  context: "formatting"
@@ -1608,11 +1819,11 @@ class wr extends p {
1608
1819
  width: "narrow",
1609
1820
  context: "formatting"
1610
1821
  }),
1611
- a
1822
+ o
1612
1823
  );
1613
1824
  case "iiii":
1614
1825
  default:
1615
- return k(
1826
+ return g(
1616
1827
  n.day(e, {
1617
1828
  width: "wide",
1618
1829
  context: "formatting"
@@ -1626,7 +1837,7 @@ class wr extends p {
1626
1837
  width: "narrow",
1627
1838
  context: "formatting"
1628
1839
  }),
1629
- a
1840
+ o
1630
1841
  );
1631
1842
  }
1632
1843
  }
@@ -1634,14 +1845,14 @@ class wr extends p {
1634
1845
  return t >= 1 && t <= 7;
1635
1846
  }
1636
1847
  set(e, t, n) {
1637
- return e = yr(e, n), e.setHours(0, 0, 0, 0), e;
1848
+ return e = gr(e, n), e.setHours(0, 0, 0, 0), e;
1638
1849
  }
1639
1850
  }
1640
- class gr extends p {
1851
+ class vr extends m {
1641
1852
  constructor() {
1642
1853
  super(...arguments);
1643
- s(this, "priority", 80);
1644
- s(this, "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]);
1854
+ l(this, "priority", 80);
1855
+ l(this, "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]);
1645
1856
  }
1646
1857
  parse(e, t, n) {
1647
1858
  switch (t) {
@@ -1675,14 +1886,14 @@ class gr extends p {
1675
1886
  }
1676
1887
  }
1677
1888
  set(e, t, n) {
1678
- return e.setHours(S(n), 0, 0, 0), e;
1889
+ return e.setHours(J(n), 0, 0, 0), e;
1679
1890
  }
1680
1891
  }
1681
- class kr extends p {
1892
+ class Dr extends m {
1682
1893
  constructor() {
1683
1894
  super(...arguments);
1684
- s(this, "priority", 80);
1685
- s(this, "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]);
1895
+ l(this, "priority", 80);
1896
+ l(this, "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]);
1686
1897
  }
1687
1898
  parse(e, t, n) {
1688
1899
  switch (t) {
@@ -1716,14 +1927,14 @@ class kr extends p {
1716
1927
  }
1717
1928
  }
1718
1929
  set(e, t, n) {
1719
- return e.setHours(S(n), 0, 0, 0), e;
1930
+ return e.setHours(J(n), 0, 0, 0), e;
1720
1931
  }
1721
1932
  }
1722
- class vr extends p {
1933
+ class Tr extends m {
1723
1934
  constructor() {
1724
1935
  super(...arguments);
1725
- s(this, "priority", 80);
1726
- s(this, "incompatibleTokens", ["a", "b", "t", "T"]);
1936
+ l(this, "priority", 80);
1937
+ l(this, "incompatibleTokens", ["a", "b", "t", "T"]);
1727
1938
  }
1728
1939
  parse(e, t, n) {
1729
1940
  switch (t) {
@@ -1757,19 +1968,19 @@ class vr extends p {
1757
1968
  }
1758
1969
  }
1759
1970
  set(e, t, n) {
1760
- return e.setHours(S(n), 0, 0, 0), e;
1971
+ return e.setHours(J(n), 0, 0, 0), e;
1761
1972
  }
1762
1973
  }
1763
- class jr extends p {
1974
+ class Pr extends m {
1764
1975
  constructor() {
1765
1976
  super(...arguments);
1766
- s(this, "priority", 70);
1767
- s(this, "incompatibleTokens", ["H", "K", "k", "t", "T"]);
1977
+ l(this, "priority", 70);
1978
+ l(this, "incompatibleTokens", ["H", "K", "k", "t", "T"]);
1768
1979
  }
1769
1980
  parse(e, t, n) {
1770
1981
  switch (t) {
1771
1982
  case "h":
1772
- return x(g.hour12h, e);
1983
+ return p(y.hour12h, e);
1773
1984
  case "ho":
1774
1985
  return n.ordinalNumber(e, { unit: "hour" });
1775
1986
  default:
@@ -1780,20 +1991,20 @@ class jr extends p {
1780
1991
  return t >= 1 && t <= 12;
1781
1992
  }
1782
1993
  set(e, t, n) {
1783
- const a = e.getHours() >= 12;
1784
- return a && n < 12 ? e.setHours(n + 12, 0, 0, 0) : !a && n === 12 ? e.setHours(0, 0, 0, 0) : e.setHours(n, 0, 0, 0), e;
1994
+ const o = e.getHours() >= 12;
1995
+ return o && n < 12 ? e.setHours(n + 12, 0, 0, 0) : !o && n === 12 ? e.setHours(0, 0, 0, 0) : e.setHours(n, 0, 0, 0), e;
1785
1996
  }
1786
1997
  }
1787
- class Dr extends p {
1998
+ class Nr extends m {
1788
1999
  constructor() {
1789
2000
  super(...arguments);
1790
- s(this, "priority", 70);
1791
- s(this, "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]);
2001
+ l(this, "priority", 70);
2002
+ l(this, "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]);
1792
2003
  }
1793
2004
  parse(e, t, n) {
1794
2005
  switch (t) {
1795
2006
  case "H":
1796
- return x(g.hour23h, e);
2007
+ return p(y.hour23h, e);
1797
2008
  case "Ho":
1798
2009
  return n.ordinalNumber(e, { unit: "hour" });
1799
2010
  default:
@@ -1807,16 +2018,16 @@ class Dr extends p {
1807
2018
  return e.setHours(n, 0, 0, 0), e;
1808
2019
  }
1809
2020
  }
1810
- class Nr extends p {
2021
+ class jr extends m {
1811
2022
  constructor() {
1812
2023
  super(...arguments);
1813
- s(this, "priority", 70);
1814
- s(this, "incompatibleTokens", ["h", "H", "k", "t", "T"]);
2024
+ l(this, "priority", 70);
2025
+ l(this, "incompatibleTokens", ["h", "H", "k", "t", "T"]);
1815
2026
  }
1816
2027
  parse(e, t, n) {
1817
2028
  switch (t) {
1818
2029
  case "K":
1819
- return x(g.hour11h, e);
2030
+ return p(y.hour11h, e);
1820
2031
  case "Ko":
1821
2032
  return n.ordinalNumber(e, { unit: "hour" });
1822
2033
  default:
@@ -1830,16 +2041,16 @@ class Nr extends p {
1830
2041
  return e.getHours() >= 12 && n < 12 ? e.setHours(n + 12, 0, 0, 0) : e.setHours(n, 0, 0, 0), e;
1831
2042
  }
1832
2043
  }
1833
- class Tr extends p {
2044
+ class Ir extends m {
1834
2045
  constructor() {
1835
2046
  super(...arguments);
1836
- s(this, "priority", 70);
1837
- s(this, "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]);
2047
+ l(this, "priority", 70);
2048
+ l(this, "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]);
1838
2049
  }
1839
2050
  parse(e, t, n) {
1840
2051
  switch (t) {
1841
2052
  case "k":
1842
- return x(g.hour24h, e);
2053
+ return p(y.hour24h, e);
1843
2054
  case "ko":
1844
2055
  return n.ordinalNumber(e, { unit: "hour" });
1845
2056
  default:
@@ -1850,20 +2061,20 @@ class Tr extends p {
1850
2061
  return t >= 1 && t <= 24;
1851
2062
  }
1852
2063
  set(e, t, n) {
1853
- const a = n <= 24 ? n % 24 : n;
1854
- return e.setHours(a, 0, 0, 0), e;
2064
+ const o = n <= 24 ? n % 24 : n;
2065
+ return e.setHours(o, 0, 0, 0), e;
1855
2066
  }
1856
2067
  }
1857
- class Pr extends p {
2068
+ class Mr extends m {
1858
2069
  constructor() {
1859
2070
  super(...arguments);
1860
- s(this, "priority", 60);
1861
- s(this, "incompatibleTokens", ["t", "T"]);
2071
+ l(this, "priority", 60);
2072
+ l(this, "incompatibleTokens", ["t", "T"]);
1862
2073
  }
1863
2074
  parse(e, t, n) {
1864
2075
  switch (t) {
1865
2076
  case "m":
1866
- return x(g.minute, e);
2077
+ return p(y.minute, e);
1867
2078
  case "mo":
1868
2079
  return n.ordinalNumber(e, { unit: "minute" });
1869
2080
  default:
@@ -1877,16 +2088,16 @@ class Pr extends p {
1877
2088
  return e.setMinutes(n, 0, 0), e;
1878
2089
  }
1879
2090
  }
1880
- class _r extends p {
2091
+ class _r extends m {
1881
2092
  constructor() {
1882
2093
  super(...arguments);
1883
- s(this, "priority", 50);
1884
- s(this, "incompatibleTokens", ["t", "T"]);
2094
+ l(this, "priority", 50);
2095
+ l(this, "incompatibleTokens", ["t", "T"]);
1885
2096
  }
1886
2097
  parse(e, t, n) {
1887
2098
  switch (t) {
1888
2099
  case "s":
1889
- return x(g.second, e);
2100
+ return p(y.second, e);
1890
2101
  case "so":
1891
2102
  return n.ordinalNumber(e, { unit: "second" });
1892
2103
  default:
@@ -1900,668 +2111,251 @@ class _r extends p {
1900
2111
  return e.setSeconds(n, 0), e;
1901
2112
  }
1902
2113
  }
1903
- class Ir extends p {
2114
+ class Er extends m {
1904
2115
  constructor() {
1905
2116
  super(...arguments);
1906
- s(this, "priority", 30);
1907
- s(this, "incompatibleTokens", ["t", "T"]);
2117
+ l(this, "priority", 30);
2118
+ l(this, "incompatibleTokens", ["t", "T"]);
1908
2119
  }
1909
2120
  parse(e, t) {
1910
- const n = (a) => Math.trunc(a * Math.pow(10, -t.length + 3));
1911
- return k(w(t.length, e), n);
2121
+ const n = (o) => Math.trunc(o * Math.pow(10, -t.length + 3));
2122
+ return g(w(t.length, e), n);
1912
2123
  }
1913
2124
  set(e, t, n) {
1914
2125
  return e.setMilliseconds(n), e;
1915
2126
  }
1916
2127
  }
1917
- class Mr extends p {
2128
+ class Cr extends m {
1918
2129
  constructor() {
1919
2130
  super(...arguments);
1920
- s(this, "priority", 10);
1921
- s(this, "incompatibleTokens", ["t", "T", "x"]);
2131
+ l(this, "priority", 10);
2132
+ l(this, "incompatibleTokens", ["t", "T", "x"]);
1922
2133
  }
1923
2134
  parse(e, t) {
1924
2135
  switch (t) {
1925
2136
  case "X":
1926
- return M(
1927
- I.basicOptionalMinutes,
2137
+ return I(
2138
+ j.basicOptionalMinutes,
1928
2139
  e
1929
2140
  );
1930
2141
  case "XX":
1931
- return M(I.basic, e);
2142
+ return I(j.basic, e);
1932
2143
  case "XXXX":
1933
- return M(
1934
- I.basicOptionalSeconds,
2144
+ return I(
2145
+ j.basicOptionalSeconds,
1935
2146
  e
1936
2147
  );
1937
2148
  case "XXXXX":
1938
- return M(
1939
- I.extendedOptionalSeconds,
2149
+ return I(
2150
+ j.extendedOptionalSeconds,
1940
2151
  e
1941
2152
  );
1942
2153
  case "XXX":
1943
2154
  default:
1944
- return M(I.extended, e);
2155
+ return I(j.extended, e);
1945
2156
  }
1946
2157
  }
1947
2158
  set(e, t, n) {
1948
2159
  return t.timestampIsSet ? e : v(
1949
2160
  e,
1950
- e.getTime() - ke(e) - n
2161
+ e.getTime() - ge(e) - n
1951
2162
  );
1952
2163
  }
1953
2164
  }
1954
- class Cr extends p {
2165
+ class Or extends m {
1955
2166
  constructor() {
1956
2167
  super(...arguments);
1957
- s(this, "priority", 10);
1958
- s(this, "incompatibleTokens", ["t", "T", "X"]);
2168
+ l(this, "priority", 10);
2169
+ l(this, "incompatibleTokens", ["t", "T", "X"]);
1959
2170
  }
1960
2171
  parse(e, t) {
1961
2172
  switch (t) {
1962
2173
  case "x":
1963
- return M(
1964
- I.basicOptionalMinutes,
2174
+ return I(
2175
+ j.basicOptionalMinutes,
1965
2176
  e
1966
2177
  );
1967
2178
  case "xx":
1968
- return M(I.basic, e);
2179
+ return I(j.basic, e);
1969
2180
  case "xxxx":
1970
- return M(
1971
- I.basicOptionalSeconds,
2181
+ return I(
2182
+ j.basicOptionalSeconds,
1972
2183
  e
1973
2184
  );
1974
2185
  case "xxxxx":
1975
- return M(
1976
- I.extendedOptionalSeconds,
2186
+ return I(
2187
+ j.extendedOptionalSeconds,
1977
2188
  e
1978
2189
  );
1979
2190
  case "xxx":
1980
2191
  default:
1981
- return M(I.extended, e);
2192
+ return I(j.extended, e);
1982
2193
  }
1983
2194
  }
1984
2195
  set(e, t, n) {
1985
2196
  return t.timestampIsSet ? e : v(
1986
2197
  e,
1987
- e.getTime() - ke(e) - n
2198
+ e.getTime() - ge(e) - n
1988
2199
  );
1989
2200
  }
1990
2201
  }
1991
- class Er extends p {
2202
+ class Fr extends m {
1992
2203
  constructor() {
1993
2204
  super(...arguments);
1994
- s(this, "priority", 40);
1995
- s(this, "incompatibleTokens", "*");
2205
+ l(this, "priority", 40);
2206
+ l(this, "incompatibleTokens", "*");
1996
2207
  }
1997
2208
  parse(e) {
1998
- return Ne(e);
2209
+ return Te(e);
1999
2210
  }
2000
2211
  set(e, t, n) {
2001
2212
  return [v(e, n * 1e3), { timestampIsSet: !0 }];
2002
2213
  }
2003
2214
  }
2004
- class Or extends p {
2215
+ class Yr extends m {
2005
2216
  constructor() {
2006
2217
  super(...arguments);
2007
- s(this, "priority", 20);
2008
- s(this, "incompatibleTokens", "*");
2218
+ l(this, "priority", 20);
2219
+ l(this, "incompatibleTokens", "*");
2009
2220
  }
2010
2221
  parse(e) {
2011
- return Ne(e);
2222
+ return Te(e);
2012
2223
  }
2013
2224
  set(e, t, n) {
2014
2225
  return [v(e, n), { timestampIsSet: !0 }];
2015
2226
  }
2016
2227
  }
2017
- const Fr = {
2018
- G: new Kt(),
2019
- y: new St(),
2020
- Y: new er(),
2021
- R: new tr(),
2022
- u: new rr(),
2023
- Q: new nr(),
2024
- q: new or(),
2025
- M: new ar(),
2026
- L: new ir(),
2027
- w: new lr(),
2028
- I: new ur(),
2029
- d: new mr(),
2030
- D: new hr(),
2031
- E: new pr(),
2032
- e: new xr(),
2033
- c: new br(),
2034
- i: new wr(),
2035
- a: new gr(),
2036
- b: new kr(),
2037
- B: new vr(),
2038
- h: new jr(),
2039
- H: new Dr(),
2040
- K: new Nr(),
2041
- k: new Tr(),
2042
- m: new Pr(),
2228
+ const Lr = {
2229
+ G: new er(),
2230
+ y: new tr(),
2231
+ Y: new rr(),
2232
+ R: new nr(),
2233
+ u: new ar(),
2234
+ Q: new or(),
2235
+ q: new ir(),
2236
+ M: new sr(),
2237
+ L: new dr(),
2238
+ w: new ur(),
2239
+ I: new fr(),
2240
+ d: new xr(),
2241
+ D: new pr(),
2242
+ E: new br(),
2243
+ e: new wr(),
2244
+ c: new yr(),
2245
+ i: new kr(),
2246
+ a: new vr(),
2247
+ b: new Dr(),
2248
+ B: new Tr(),
2249
+ h: new Pr(),
2250
+ H: new Nr(),
2251
+ K: new jr(),
2252
+ k: new Ir(),
2253
+ m: new Mr(),
2043
2254
  s: new _r(),
2044
- S: new Ir(),
2045
- X: new Mr(),
2046
- x: new Cr(),
2047
- t: new Er(),
2048
- T: new Or()
2049
- }, Yr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Wr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Lr = /^'([^]*?)'?$/, Hr = /''/g, Br = /\S/, Ar = /[a-zA-Z]/;
2050
- function _e(o, r, e, t) {
2051
- var re, ne, oe, ae;
2052
- const n = () => v(e, NaN), a = Qt(), l = a.locale ?? Ft, u = a.firstWeekContainsDate ?? ((ne = (re = a.locale) == null ? void 0 : re.options) == null ? void 0 : ne.firstWeekContainsDate) ?? 1, f = a.weekStartsOn ?? ((ae = (oe = a.locale) == null ? void 0 : oe.options) == null ? void 0 : ae.weekStartsOn) ?? 0;
2053
- if (!r)
2054
- return o ? n() : j(e, t == null ? void 0 : t.in);
2055
- const m = {
2255
+ S: new Er(),
2256
+ X: new Cr(),
2257
+ x: new Or(),
2258
+ t: new Fr(),
2259
+ T: new Yr()
2260
+ }, Wr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Hr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ar = /^'([^]*?)'?$/, Rr = /''/g, Br = /\S/, qr = /[a-zA-Z]/;
2261
+ function zr(a, r, e, t) {
2262
+ var ee, te, re, ne;
2263
+ const n = () => v(e, NaN), o = Gt(), s = o.locale ?? Lt, u = o.firstWeekContainsDate ?? ((te = (ee = o.locale) == null ? void 0 : ee.options) == null ? void 0 : te.firstWeekContainsDate) ?? 1, h = o.weekStartsOn ?? ((ne = (re = o.locale) == null ? void 0 : re.options) == null ? void 0 : ne.weekStartsOn) ?? 0, x = {
2056
2264
  firstWeekContainsDate: u,
2057
- weekStartsOn: f,
2058
- locale: l
2059
- }, b = [new Jt(t == null ? void 0 : t.in, e)], c = r.match(Wr).map((h) => {
2060
- const y = h[0];
2061
- if (y in ce) {
2062
- const _ = ce[y];
2063
- return _(h, l.formatLong);
2265
+ weekStartsOn: h,
2266
+ locale: s
2267
+ }, k = [new St(t == null ? void 0 : t.in, e)], c = r.match(Hr).map((f) => {
2268
+ const b = f[0];
2269
+ if (b in ue) {
2270
+ const N = ue[b];
2271
+ return N(f, s.formatLong);
2064
2272
  }
2065
- return h;
2066
- }).join("").match(Yr), P = [];
2067
- for (let h of c) {
2068
- qt(h) && fe(h, r, o), zt(h) && fe(h, r, o);
2069
- const y = h[0], _ = Fr[y];
2070
- if (_) {
2071
- const { incompatibleTokens: ie } = _;
2072
- if (Array.isArray(ie)) {
2073
- const de = P.find(
2074
- (le) => ie.includes(le.token) || le.token === y
2273
+ return f;
2274
+ }).join("").match(Wr), M = [];
2275
+ for (let f of c) {
2276
+ Vt(f) && ce(f, r, a), Qt(f) && ce(f, r, a);
2277
+ const b = f[0], N = Lr[b];
2278
+ if (N) {
2279
+ const { incompatibleTokens: ae } = N;
2280
+ if (Array.isArray(ae)) {
2281
+ const oe = M.find(
2282
+ (ie) => ae.includes(ie.token) || ie.token === b
2075
2283
  );
2076
- if (de)
2284
+ if (oe)
2077
2285
  throw new RangeError(
2078
- `The format string mustn't contain \`${de.fullToken}\` and \`${h}\` at the same time`
2286
+ `The format string mustn't contain \`${oe.fullToken}\` and \`${f}\` at the same time`
2079
2287
  );
2080
- } else if (_.incompatibleTokens === "*" && P.length > 0)
2288
+ } else if (N.incompatibleTokens === "*" && M.length > 0)
2081
2289
  throw new RangeError(
2082
- `The format string mustn't contain \`${h}\` and any other token at the same time`
2290
+ `The format string mustn't contain \`${f}\` and any other token at the same time`
2083
2291
  );
2084
- P.push({ token: y, fullToken: h });
2085
- const Z = _.run(
2086
- o,
2087
- h,
2088
- l.match,
2089
- m
2292
+ M.push({ token: b, fullToken: f });
2293
+ const G = N.run(
2294
+ a,
2295
+ f,
2296
+ s.match,
2297
+ x
2090
2298
  );
2091
- if (!Z)
2299
+ if (!G)
2092
2300
  return n();
2093
- b.push(Z.setter), o = Z.rest;
2301
+ k.push(G.setter), a = G.rest;
2094
2302
  } else {
2095
- if (y.match(Ar))
2303
+ if (b.match(qr))
2096
2304
  throw new RangeError(
2097
- "Format string contains an unescaped latin alphabet character `" + y + "`"
2305
+ "Format string contains an unescaped latin alphabet character `" + b + "`"
2098
2306
  );
2099
- if (h === "''" ? h = "'" : y === "'" && (h = Rr(h)), o.indexOf(h) === 0)
2100
- o = o.slice(h.length);
2307
+ if (f === "''" ? f = "'" : b === "'" && (f = Qr(f)), a.indexOf(f) === 0)
2308
+ a = a.slice(f.length);
2101
2309
  else
2102
2310
  return n();
2103
2311
  }
2104
2312
  }
2105
- if (o.length > 0 && Br.test(o))
2313
+ if (a.length > 0 && Br.test(a))
2106
2314
  return n();
2107
- const F = b.map((h) => h.priority).sort((h, y) => y - h).filter((h, y, _) => _.indexOf(h) === y).map(
2108
- (h) => b.filter((y) => y.priority === h).sort((y, _) => _.subPriority - y.subPriority)
2109
- ).map((h) => h[0]);
2110
- let C = j(e, t == null ? void 0 : t.in);
2111
- if (isNaN(+C)) return n();
2112
- const te = {};
2113
- for (const h of F) {
2114
- if (!h.validate(C, m))
2315
+ const F = k.map((f) => f.priority).sort((f, b) => b - f).filter((f, b, N) => N.indexOf(f) === b).map(
2316
+ (f) => k.filter((b) => b.priority === f).sort((b, N) => N.subPriority - b.subPriority)
2317
+ ).map((f) => f[0]);
2318
+ let _ = D(e, t == null ? void 0 : t.in);
2319
+ if (isNaN(+_)) return n();
2320
+ const S = {};
2321
+ for (const f of F) {
2322
+ if (!f.validate(_, x))
2115
2323
  return n();
2116
- const y = h.set(C, te, m);
2117
- Array.isArray(y) ? (C = y[0], Object.assign(te, y[1])) : C = y;
2324
+ const b = f.set(_, S, x);
2325
+ Array.isArray(b) ? (_ = b[0], Object.assign(S, b[1])) : _ = b;
2118
2326
  }
2119
- return C;
2327
+ return _;
2120
2328
  }
2121
- function Rr(o) {
2122
- return o.match(Lr)[1].replace(Hr, "'");
2329
+ function Qr(a) {
2330
+ return a.match(Ar)[1].replace(Rr, "'");
2123
2331
  }
2124
- const Cn = (o, r = "dd.MM.yyyy") => _e(o, r, /* @__PURE__ */ new Date()), Ie = ({ children: o, className: r, ...e }) => /* @__PURE__ */ i.jsx("section", { className: d("pb-16 desktop:pb-20", r), ...e, children: o }), Y = ({ children: o, offset: r = !0, className: e, ...t }) => /* @__PURE__ */ i.jsx("div", { className: d("m-auto w-full max-w-[636px] desktop:max-w-[1140px]", { "mobile:px-4": r }, e), ...t, children: o }), zr = N("grid", {
2125
- variants: {
2126
- columnCount: {
2127
- twoColumns: "grid-cols-[repeat(2,minmax(172px,_1fr))] desktop:grid-cols-[repeat(2,minmax(172px,_1fr))]",
2128
- threeColumns: "grid-cols-[repeat(3,minmax(172px,_1fr))] desktop:grid-cols-[repeat(3,minmax(312px,_1fr))]"
2129
- }
2130
- }
2131
- }), qr = N("grid", {
2132
- variants: {
2133
- columnCount: {
2134
- twoColumns: "",
2135
- threeColumns: ""
2136
- },
2137
- titlesExist: {
2138
- exist: "",
2139
- notExist: ""
2140
- }
2141
- },
2142
- compoundVariants: [
2143
- {
2144
- titlesExist: "notExist",
2145
- columnCount: "twoColumns",
2146
- class: "grid-rows-[repeat(2,_auto)] border-b border-warm-grey-200 py-4"
2147
- },
2148
- {
2149
- titlesExist: "notExist",
2150
- columnCount: "threeColumns",
2151
- class: "grid-cols-[repeat(3,_auto)]"
2152
- },
2153
- {
2154
- titlesExist: "exist",
2155
- columnCount: "twoColumns",
2156
- class: "grid-cols-[repeat(2,_auto)]"
2157
- },
2158
- {
2159
- titlesExist: "exist",
2160
- columnCount: "threeColumns",
2161
- class: "grid-cols-[repeat(3,_auto)]"
2162
- }
2163
- ]
2164
- }), Vr = N("grid", {
2165
- variants: {
2166
- columnCount: {
2167
- twoColumns: "",
2168
- threeColumns: ""
2169
- }
2170
- },
2171
- compoundVariants: [
2172
- {
2173
- columnCount: "threeColumns",
2174
- class: "overflow-x-scroll max-w-[368px] mb-1"
2175
- }
2176
- ]
2177
- }), Qr = N("border-b border-warm-grey-200 py-4 desktop:desk-body-regular-l mob-body-regular-l", {
2178
- variants: {
2179
- columnCount: {
2180
- twoColumns: "",
2181
- threeColumns: ""
2182
- },
2183
- titlesExist: {
2184
- exist: "",
2185
- notExist: ""
2186
- }
2187
- },
2188
- compoundVariants: [
2189
- {
2190
- titlesExist: "notExist",
2191
- columnCount: "twoColumns",
2192
- class: "border-transparent border-0 p-0"
2193
- }
2194
- ]
2195
- }), En = ({
2196
- headTitle: o,
2197
- tableRows: r,
2198
- tableHead: e,
2199
- additionalText: t,
2200
- columnCount: n,
2201
- classes: a
2202
- }) => {
2203
- const l = e && e.length > 0 ? "exist" : "notExist";
2204
- return /* @__PURE__ */ i.jsx(Y, { children: /* @__PURE__ */ i.jsxs("div", { className: d("flex flex-col", a == null ? void 0 : a.tableRootWrapper), children: [
2205
- /* @__PURE__ */ i.jsx(L, { as: "h3", className: d("mob-title-bold-m pb-6 desktop:desk-title-bold-s", a == null ? void 0 : a.tableHeading), children: o }),
2206
- /* @__PURE__ */ i.jsxs("div", { className: d(Vr({ columnCount: n }), a == null ? void 0 : a.tableBody), children: [
2207
- /* @__PURE__ */ i.jsx("ul", { className: d(zr({ columnCount: n }), a == null ? void 0 : a.tableTitlesContainer), children: e == null ? void 0 : e.map((u) => /* @__PURE__ */ i.jsx(
2208
- "li",
2209
- {
2210
- className: d(
2211
- "mob-body-regular-l border-b border-warm-grey-200 py-4 desktop:desk-body-regular-l",
2212
- a == null ? void 0 : a.tableTitleRow
2213
- ),
2214
- children: u
2215
- },
2216
- u
2217
- )) }),
2218
- /* @__PURE__ */ i.jsx("ul", { className: d("mb-4 flex flex-col", a == null ? void 0 : a.tableBodyContainer), children: r.map((u, f) => /* @__PURE__ */ i.jsx("li", { className: d(qr({ columnCount: n, titlesExist: l }), a == null ? void 0 : a.tableBodyRow), children: u.map((m, b) => /* @__PURE__ */ i.jsx("p", { className: d(Qr({ titlesExist: l, columnCount: n }), a == null ? void 0 : a.tableBodyCeil), children: m.text }, b)) }, f)) })
2219
- ] }),
2220
- /* @__PURE__ */ i.jsx("p", { className: d("mob-body-regular-m desktop:desk-body-regular-l", a == null ? void 0 : a.tableAdditionalText), children: t })
2221
- ] }) });
2222
- }, On = ({ linksList: o }) => /* @__PURE__ */ i.jsx("div", { "aria-label": "Breadcrumb", className: "flex max-w-[840px] items-center gap-2", children: o.map((r) => /* @__PURE__ */ i.jsx(i.Fragment, { children: "path" in r ? /* @__PURE__ */ i.jsxs(
2223
- "div",
2224
- {
2225
- className: d(
2226
- "flex items-center gap-1 rounded-sm border-2 border-solid border-transparent px-1 focus-within:border-primary-focus",
2227
- { "pointer-events-none !border-transparent": r == null ? void 0 : r.isDisabled }
2228
- ),
2229
- children: [
2230
- /* @__PURE__ */ i.jsx(
2231
- "a",
2232
- {
2233
- href: r.path,
2234
- target: "_blank",
2235
- rel: "noreferrer",
2236
- className: d(
2237
- "desk-body-regular-m text-color-primary-default outline-none hover:text-color-primary-hover focus:text-color-primary-default",
2238
- { "!text-color-disabled": r == null ? void 0 : r.isDisabled }
2239
- ),
2240
- children: r.label
2241
- }
2242
- ),
2243
- /* @__PURE__ */ i.jsx(
2244
- T,
2245
- {
2246
- name: "arrows/arrowRight",
2247
- className: d("size-4 text-icon-primary-default", { "!text-icon-disabled": r == null ? void 0 : r.isDisabled })
2248
- }
2249
- )
2250
- ]
2251
- }
2252
- ) : /* @__PURE__ */ i.jsx("div", { "aria-current": "page", className: "desk-body-regular-m text-color-blue-grey-600", children: r.label }) })) }), $r = (o) => {
2253
- switch (o) {
2254
- case "ghost":
2255
- case "secondary":
2256
- return "secondary";
2257
- case "primary":
2258
- case "negative":
2259
- return "primary";
2260
- default:
2261
- return o;
2262
- }
2263
- }, Gr = N(
2264
- "relative flex items-center justify-center gap-4 cursor-pointer rounded-sm w-max px-4 outline-offset-4 outline-transparent outline-2 desk-body-regular-l transition duration-12 active:scale-[0.97] disabled:pointer-events-none",
2265
- {
2266
- variants: {
2267
- intent: {
2268
- primary: "bg-color-primary-default text-color-white outline-offset-[3px] hover:bg-color-primary-hover active:bg-color-primary-hover focus:bg-color-primary-default focus:outline-primary-focus disabled:bg-color-primary-disabled",
2269
- secondary: "bg-transparent text-color-primary-default border border-solid border-primary-default hover:bg-color-primary-tr-hover active:bg-color-primary-tr-pressed active:border-primary-hover focus:outline-primary-focus focus:bg-color-primary-tr-focus disabled:bg-color-blue-grey-200 disabled:text-color-primary-disabled disabled:border-transparent",
2270
- ghost: "bg-transparent text-color-primary-default hover:bg-color-primary-tr-hover hover:text-color-primary-hover focus:bg-color-primary-tr-focus focus:outline-primary-focus active:bg-color-primary-tr-pressed active:text-color-primary-hover disabled:text-color-primary-disabled disabled:bg-transparent",
2271
- negative: "bg-color-secondary-default text-color-white outline-offset-[3px] hover:bg-color-secondary-hover disabled:bg-color-secondary-disabled active:bg-color-secondary-hover focus:bg-color-secondary-default focus:outline-primary-focus"
2272
- },
2273
- size: {
2274
- sm: "h-10",
2275
- md: "h-12",
2276
- lg: "h-14"
2277
- },
2278
- textFormat: {
2279
- capitalize: "capitalize",
2280
- uppercase: "uppercase",
2281
- lowercase: "lowercase",
2282
- initial: "initial"
2283
- },
2284
- isFull: {
2285
- true: "w-full px-4"
2286
- },
2287
- isLoading: {
2288
- true: "",
2289
- false: ""
2290
- }
2291
- },
2292
- compoundVariants: [
2293
- {
2294
- intent: "primary",
2295
- isLoading: !0,
2296
- class: "!bg-color-primary-default"
2297
- },
2298
- {
2299
- intent: "secondary",
2300
- isLoading: !0,
2301
- class: "!bg-color-transparent !border-primary-hover"
2302
- },
2303
- {
2304
- intent: "ghost",
2305
- isLoading: !0,
2306
- class: "!bg-color-blue-grey-200"
2307
- },
2308
- {
2309
- intent: "negative",
2310
- isLoading: !0,
2311
- class: "!bg-color-secondary-default"
2312
- }
2313
- ],
2314
- defaultVariants: {
2315
- intent: "primary",
2316
- size: "md",
2317
- textFormat: "initial",
2318
- isFull: !1
2319
- }
2320
- }
2321
- ), Q = ye(
2322
- ({
2323
- intent: o,
2324
- size: r,
2325
- className: e,
2326
- children: t,
2327
- type: n = "button",
2328
- iconLeft: a,
2329
- iconRight: l,
2330
- disabled: u = !1,
2331
- isLoading: f = !1,
2332
- isFull: m = !1,
2333
- textFormat: b,
2334
- ...c
2335
- }, P) => /* @__PURE__ */ i.jsx(
2336
- "button",
2337
- {
2338
- ref: P,
2339
- type: n,
2340
- disabled: u || f,
2341
- className: d(Gr({ intent: o, size: r, textFormat: b, isLoading: f, isFull: m }), e),
2342
- ...c,
2343
- children: f ? /* @__PURE__ */ i.jsx($e, { size: "sm", intent: $r(o) }) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
2344
- a && /* @__PURE__ */ i.jsx("span", { className: "flex size-5 items-center justify-center", children: a }),
2345
- t,
2346
- l && /* @__PURE__ */ i.jsx("span", { className: "flex size-5 items-center justify-center", children: l })
2347
- ] })
2348
- }
2349
- )
2350
- ), Xr = N(
2351
- "group flex items-center justify-center cursor-pointer rounded-full outline-offset-[3px] outline-transparent outline-2 transition duration-12 active:scale-[0.97] disabled:pointer-events-none",
2352
- {
2353
- variants: {
2354
- intent: {
2355
- primary: "text-icon-white bg-color-primary-default hover:bg-color-primary-hover active:bg-color-primary-hover focus:bg-color-primary-hover focus:outline-primary-focus disabled:bg-color-primary-disabled",
2356
- secondary: "text-icon-primary-default bg-color-transparent border border-solid outline-offset-4 border-primary-default hover:bg-color-primary-tr-hover hover:text-icon-primary-default hover:border-primary-hover active:bg-color-primary-tr-pressed active:border-primary-hover active:text-icon-primary-hover focus:bg-color-primary-tr-focus focus:outline-primary-focus disabled:bg-color-blue-grey-200 disabled:border-transparent disabled:text-icon-primary-disabled",
2357
- ghost: "text-icon-primary-default bg-color-transparent hover:bg-color-primary-tr-hover focus:bg-color-primary-tr-focus focus:outline-primary-focus active:text-icon-primary-hover active:bg-color-primary-tr-pressed disabled:bg-color-transparent disabled:text-icon-primary-disabled"
2358
- },
2359
- size: {
2360
- sm: "size-8",
2361
- md: "size-10",
2362
- lg: "size-12"
2363
- }
2364
- },
2365
- defaultVariants: {
2366
- intent: "primary",
2367
- size: "lg"
2368
- }
2369
- }
2370
- ), Fn = ye(
2371
- ({ size: o, intent: r, children: e, classes: t, type: n = "button", ...a }, l) => /* @__PURE__ */ i.jsx("button", { ref: l, type: n, className: d(Xr({ intent: r, size: o }), t == null ? void 0 : t.button), ...a, children: /* @__PURE__ */ i.jsx("span", { className: d(t == null ? void 0 : t.icon), children: e }) })
2372
- ), Zr = N(
2373
- "group underline underline-offset-4 outline-none p-[2px] rounded-sm border border-solid border-transparent",
2374
- {
2375
- variants: {
2376
- intent: {
2377
- blue: "text-color-primary-default hover:text-color-primary-hover focus:text-color-primary-default focus:border-primary-focus",
2378
- white: "text-color-white hover:text-color-footer focus:text-color-white focus:border-primary-focus"
2379
- },
2380
- withIcon: {
2381
- true: "flex items-center gap-1",
2382
- false: ""
2383
- },
2384
- disabled: {
2385
- true: "!text-color-primary-disabled pointer-events-none !border-transparent",
2386
- false: ""
2387
- },
2388
- size: {
2389
- sm: "desk-body-regular-m",
2390
- md: "desk-body-regular-l"
2391
- }
2392
- },
2393
- defaultVariants: {
2394
- intent: "blue",
2395
- withIcon: !0,
2396
- disabled: !1,
2397
- size: "sm"
2398
- }
2399
- }
2400
- ), Ur = N("size-6", {
2401
- variants: {
2402
- intent: {
2403
- blue: "text-icon-primary-default group-hover:text-icon-primary-hover group-focus:text-icon-primary-default ",
2404
- white: "text-icon-white group-hover:text-icon-footer group-focus:text-icon-white"
2405
- },
2406
- disabled: {
2407
- true: "!text-icon-primary-disabled pointer-events-none",
2408
- false: ""
2409
- }
2410
- },
2411
- defaultVariants: {
2412
- intent: "blue",
2413
- disabled: !1
2414
- }
2415
- }), Yn = ({
2416
- Component: o = "a",
2417
- intent: r,
2418
- children: e,
2419
- withIcon: t,
2420
- disabled: n,
2421
- size: a,
2422
- icon: l = "arrows/arrowLink",
2423
- ...u
2424
- }) => /* @__PURE__ */ i.jsxs(o, { className: d(Zr({ intent: r, withIcon: t, disabled: n, size: a })), ...u, children: [
2425
- e,
2426
- t && /* @__PURE__ */ i.jsx(T, { name: l, className: d(Ur({ intent: r, disabled: n })) })
2427
- ] }), Jr = N("size-8 transition-colors", {
2428
- variants: {
2429
- intent: {
2430
- outline: "text-icon-secondary-dark-default group-hover:text-icon-secondary-dark-hover",
2431
- filled: "text-icon-primary-default group-hover:text-icon-primary-hover"
2432
- }
2433
- },
2434
- defaultVariants: {
2435
- intent: "outline"
2436
- }
2437
- }), Kr = {
2438
- filled: "files/documentFilled",
2439
- outline: "files/documentOutline"
2440
- }, Wn = ({ text: o, size: r, sizeType: e, href: t, intent: n = "outline" }) => /* @__PURE__ */ i.jsxs(
2441
- "a",
2442
- {
2443
- href: t,
2444
- target: "_blank",
2445
- rel: "noreferrer",
2446
- tabIndex: 0,
2447
- className: d(
2448
- "group flex cursor-pointer items-center gap-2 rounded-sm p-1 outline outline-2 outline-transparent transition-colors focus-within:outline-primary-focus desktop:max-w-[592px]"
2449
- ),
2450
- children: [
2451
- /* @__PURE__ */ i.jsx(T, { name: Kr[n], className: d(Jr({ intent: n })) }),
2452
- /* @__PURE__ */ i.jsxs("div", { className: d("flex flex-1 flex-col"), children: [
2453
- /* @__PURE__ */ i.jsx("p", { className: d("desk-body-medium-l text-color-dark"), children: o }),
2454
- /* @__PURE__ */ i.jsxs("div", { className: d("desk-body-regular-m text-color-disabled"), children: [
2455
- r,
2456
- " ",
2457
- e
2458
- ] })
2459
- ] })
2460
- ]
2461
- }
2462
- ), Me = ({ phone: o, text: r, classes: e }) => /* @__PURE__ */ i.jsxs("div", { className: d("flex w-max flex-col", e == null ? void 0 : e.wrapper), children: [
2463
- /* @__PURE__ */ i.jsx(
2464
- "a",
2465
- {
2466
- href: `tel:${o}`,
2467
- className: d("mob-body-medium-l ml-auto text-color-dark desktop:desk-body-medium-l", e == null ? void 0 : e.link),
2468
- children: o
2469
- }
2470
- ),
2471
- /* @__PURE__ */ i.jsx("p", { className: d("desk-body-regular-l text-color-tetriary", e == null ? void 0 : e.text), children: r })
2472
- ] }), Ln = ({ topContent: o, bottomContent: r, progress: e, maxPercent: t = 100, classes: n }) => /* @__PURE__ */ i.jsxs("div", { className: d("flex w-full flex-col", n == null ? void 0 : n.wrapper), children: [
2473
- o && /* @__PURE__ */ i.jsx("div", { className: d("mb-2 flex justify-between gap-5", n == null ? void 0 : n.topContent), children: o }),
2474
- /* @__PURE__ */ i.jsxs("div", { className: d("relative h-2 w-[328xp] rounded-md bg-color-blue-grey-100 desktop:w-[524px]", n == null ? void 0 : n.progressBar), children: [
2475
- /* @__PURE__ */ i.jsx(
2476
- "div",
2477
- {
2478
- style: { width: `${e}%` },
2479
- className: d("relative z-10 h-2 rounded-md bg-color-positive transition-all", n == null ? void 0 : n.progress)
2480
- }
2481
- ),
2482
- /* @__PURE__ */ i.jsx(
2483
- "span",
2484
- {
2485
- style: { maxWidth: `${t}%` },
2486
- className: d(
2487
- "progressBar-apply z-1 absolute top-1/2 h-full w-full -translate-y-1/2 animate-progress-loader rounded-md",
2488
- n == null ? void 0 : n.loader
2489
- )
2490
- }
2491
- )
2492
- ] }),
2493
- r && /* @__PURE__ */ i.jsx("div", { className: d("mt-2 flex justify-between gap-5", n == null ? void 0 : n.bottomContent), children: r })
2494
- ] }), Hn = ({ className: o }) => /* @__PURE__ */ i.jsx("div", { className: d("skeleton-apply h-full w-full", o) }), Sr = {
2495
- main: /* @__PURE__ */ i.jsx(T, { name: "brandLogos/logoMain" }),
2496
- white: /* @__PURE__ */ i.jsx(T, { name: "brandLogos/logoWhite" }),
2497
- gray: /* @__PURE__ */ i.jsx(T, { name: "brandLogos/logoGray" }),
2498
- black: /* @__PURE__ */ i.jsx(T, { name: "brandLogos/logoBlack" }),
2499
- business: /* @__PURE__ */ i.jsx(T, { name: "brandLogos/logoBusiness" }),
2500
- insurance: /* @__PURE__ */ i.jsx(T, { name: "brandLogos/logoInsurance" })
2501
- }, en = /^[\u0400-\u04FF\u00CB\u00EB -]+$/, me = /^(?:[^-]+(?:-[^-]+){0,4}|[^-]+)$/, tn = /^[a-zA-Zа-яА-ЯёЁ]+(?:\s*-\s*[a-zA-Zа-яА-ЯёЁ]+){0,4}(?:\s+[a-zA-Zа-яА-ЯёЁ]+(?:\s*-\s*[a-zA-Zа-яА-ЯёЁ]+){0,4})?$/i, q = {
2502
- REQUIRED: "Поле обязательно к заполнению",
2503
- MIN_LENGTH: "Минимальная длина символов должна быть не менее",
2504
- MAX_LENGTH: "Максимальная длина символов должна быть не более",
2505
- FIX_LENGTH: "Длина символов должна быть равна",
2506
- MAX_LENGTH_ELEMENTS: "Максимальное количество элементов должно быть не более",
2507
- MIN_LENGTH_ELEMENTS: "Минимальное количество элементов должно быть не менее",
2508
- FIX_LENGTH_ELEMENTS: "Количество элементов должно быть равно",
2509
- INVALID_VALUE: "Поле заполнено некорректно",
2510
- INVALID_DATE: "Введите корректную дату",
2511
- FUTURE_DATE_NOT_ALLOWED: "Нельзя выбрать дату позже текущей"
2512
- }, rn = (o) => {
2513
- const r = o.trim().replace(/\s+/g, " ").split(" "), [e, t, ...n] = r, a = n == null ? void 0 : n.join(" ");
2514
- return {
2515
- surname: e,
2516
- name: t,
2517
- patronymic: a
2518
- };
2519
- }, Bn = D.string({ invalid_type_error: "Обязательно к заполнению", required_error: "Обязательно к заполнению" }).superRefine((o, r) => {
2520
- en.test(o) || r.addIssue({
2521
- code: D.ZodIssueCode.custom,
2522
- message: "Должна быть только кириллица"
2523
- });
2524
- const { surname: e, name: t, patronymic: n } = rn(o);
2525
- (!e || !t) && r.addIssue({
2526
- code: D.ZodIssueCode.custom,
2527
- message: "Введите имя и фамилию"
2528
- }), me.test(t) || r.addIssue({
2529
- code: D.ZodIssueCode.custom,
2530
- message: "Неверно введено имя"
2531
- }), me.test(e) || r.addIssue({
2532
- code: D.ZodIssueCode.custom,
2533
- message: "Неверно введена фамилия"
2534
- }), n && (tn.test(n) || r.addIssue({
2535
- code: D.ZodIssueCode.custom,
2536
- message: "Неверно введено отчество"
2537
- }));
2538
- }), An = D.string().length(10, { message: q.INVALID_DATE }).superRefine((o, r) => {
2539
- const [e, t, n] = (o == null ? void 0 : o.split(".")) ?? "", a = _e(`${e}/${t}/${n}`, "dd/MM/yyyy", /* @__PURE__ */ new Date());
2332
+ const jn = T.string().length(10, { message: B.INVALID_DATE }).superRefine((a, r) => {
2333
+ const [e, t, n] = (a == null ? void 0 : a.split(".")) ?? "", o = zr(`${e}/${t}/${n}`, "dd/MM/yyyy", /* @__PURE__ */ new Date());
2540
2334
  +n <= 1950 && r.addIssue({
2541
- code: D.ZodIssueCode.custom,
2542
- message: q.INVALID_DATE
2543
- }), tt(a) || r.addIssue({
2544
- code: D.ZodIssueCode.custom,
2545
- message: q.INVALID_DATE
2546
- }), (/* @__PURE__ */ new Date()).getTime() < new Date(a).getTime() && r.addIssue({
2547
- code: D.ZodIssueCode.custom,
2548
- message: q.FUTURE_DATE_NOT_ALLOWED
2335
+ code: T.ZodIssueCode.custom,
2336
+ message: B.INVALID_DATE
2337
+ }), nt(o) || r.addIssue({
2338
+ code: T.ZodIssueCode.custom,
2339
+ message: B.INVALID_DATE
2340
+ }), (/* @__PURE__ */ new Date()).getTime() < new Date(o).getTime() && r.addIssue({
2341
+ code: T.ZodIssueCode.custom,
2342
+ message: B.FUTURE_DATE_NOT_ALLOWED
2549
2343
  });
2550
- }), Rn = D.string().superRefine((o, r) => {
2551
- const e = o.charAt(0);
2344
+ }), In = T.string().superRefine((a, r) => {
2345
+ const e = a.charAt(0);
2552
2346
  ["3", "4", "5", "6", "9"].includes(e) || r.addIssue({
2553
- code: D.ZodIssueCode.custom,
2347
+ code: T.ZodIssueCode.custom,
2554
2348
  message: "Код города/оператора должен начинаться с цифры 3, 4, 5, 6 или 9"
2555
- }), o.length !== 10 && r.addIssue({
2556
- code: D.ZodIssueCode.custom,
2349
+ }), a.length !== 10 && r.addIssue({
2350
+ code: T.ZodIssueCode.custom,
2557
2351
  message: "Введите номер телефона полностью"
2558
2352
  });
2559
- }).transform((o) => `7${o}`), R = {
2353
+ }).transform((a) => `7${a}`), A = {
2560
2354
  transparent: "transparent",
2561
2355
  current: "currentColor",
2562
2356
  inherit: "inherit",
2563
2357
  initial: "initial"
2564
- }, $ = {
2358
+ }, z = {
2565
2359
  "blue-grey-100": "#f3f4f7",
2566
2360
  "blue-grey-200": "#eaedf1",
2567
2361
  "blue-grey-300": "#d4dbe2",
@@ -2589,8 +2383,8 @@ const Cn = (o, r = "dd.MM.yyyy") => _e(o, r, /* @__PURE__ */ new Date()), Ie = (
2589
2383
  purple: "#5f40bd",
2590
2384
  "purple-hover": "#52399d",
2591
2385
  overlay: "#0000004d",
2592
- ...R
2593
- }, Ce = {
2386
+ ...A
2387
+ }, je = {
2594
2388
  dark: "#292929",
2595
2389
  disabled: "#a9b6c5",
2596
2390
  footer: "#c3c3c3",
@@ -2604,8 +2398,8 @@ const Cn = (o, r = "dd.MM.yyyy") => _e(o, r, /* @__PURE__ */ new Date()), Ie = (
2604
2398
  white: "#ffffff",
2605
2399
  "primary-disabled": "#809bc7",
2606
2400
  "blue-grey-600": "#94a4b7",
2607
- ...R
2608
- }, Ee = {
2401
+ ...A
2402
+ }, Ie = {
2609
2403
  "barvcray-200": "#ebeef4",
2610
2404
  "barvcray-300": "#dde1e8",
2611
2405
  "greymint-200": "#deecee",
@@ -2618,7 +2412,7 @@ const Cn = (o, r = "dd.MM.yyyy") => _e(o, r, /* @__PURE__ */ new Date()), Ie = (
2618
2412
  "skyblue-100": "#f4f8fe",
2619
2413
  "skyblue-200": "#e7f3ff",
2620
2414
  "skyblue-300": "#d9edff",
2621
- ...R
2415
+ ...A
2622
2416
  }, E = {
2623
2417
  "accent-default": "#2477ff",
2624
2418
  "accent-hover": "#0053da",
@@ -2644,8 +2438,8 @@ const Cn = (o, r = "dd.MM.yyyy") => _e(o, r, /* @__PURE__ */ new Date()), Ie = (
2644
2438
  white: "#ffffff",
2645
2439
  "primary-disabled": "#809bc7",
2646
2440
  footer: "#C3C3C3",
2647
- ...R
2648
- }, G = {
2441
+ ...A
2442
+ }, Q = {
2649
2443
  "blue-grey-500": "#a9b6c5",
2650
2444
  "blue-grey-700": "#69809a",
2651
2445
  "blue-grey-800": "#5a6e85",
@@ -2663,21 +2457,21 @@ const Cn = (o, r = "dd.MM.yyyy") => _e(o, r, /* @__PURE__ */ new Date()), Ie = (
2663
2457
  warning: "#f49f00",
2664
2458
  white: "#ffffff",
2665
2459
  "primary-disabled": "#809bc7",
2666
- ...R
2667
- }, Oe = {
2460
+ ...A
2461
+ }, Me = {
2668
2462
  none: "0",
2669
2463
  sm: "4px",
2670
2464
  md: "8px",
2671
2465
  lg: "16px",
2672
2466
  full: "9999px"
2673
- }, Fe = {
2467
+ }, _e = {
2674
2468
  30: "30deg",
2675
2469
  45: "45deg",
2676
2470
  80: "80deg",
2677
2471
  90: "90deg",
2678
2472
  110: "110deg",
2679
2473
  180: "180deg"
2680
- }, nn = {
2474
+ }, Vr = {
2681
2475
  0: "0",
2682
2476
  1: "1",
2683
2477
  10: "10",
@@ -2687,7 +2481,7 @@ const Cn = (o, r = "dd.MM.yyyy") => _e(o, r, /* @__PURE__ */ new Date()), Ie = (
2687
2481
  250: "250",
2688
2482
  500: "500",
2689
2483
  1e3: "1000"
2690
- }, Ye = {
2484
+ }, Ee = {
2691
2485
  12: "12px",
2692
2486
  14: "14px",
2693
2487
  16: "16px",
@@ -2697,7 +2491,7 @@ const Cn = (o, r = "dd.MM.yyyy") => _e(o, r, /* @__PURE__ */ new Date()), Ie = (
2697
2491
  28: "28px",
2698
2492
  32: "32px",
2699
2493
  40: "40px"
2700
- }, We = {
2494
+ }, Ce = {
2701
2495
  16: "16px",
2702
2496
  20: "20px",
2703
2497
  22: "22px",
@@ -2706,7 +2500,7 @@ const Cn = (o, r = "dd.MM.yyyy") => _e(o, r, /* @__PURE__ */ new Date()), Ie = (
2706
2500
  32: "32px",
2707
2501
  40: "40px",
2708
2502
  48: "48px"
2709
- }, Le = {
2503
+ }, Oe = {
2710
2504
  /* # Headline */
2711
2505
  ".mob-headline-bold-m": {
2712
2506
  "@apply font-bold text-28 leading-32": ""
@@ -2766,11 +2560,11 @@ const Cn = (o, r = "dd.MM.yyyy") => _e(o, r, /* @__PURE__ */ new Date()), Ie = (
2766
2560
  "@apply font-normal text-12 leading-16": ""
2767
2561
  }
2768
2562
  };
2769
- var He = {}, Be = {};
2770
- (function(o) {
2771
- Object.defineProperty(o, "__esModule", {
2563
+ var Fe = {}, Ye = {};
2564
+ (function(a) {
2565
+ Object.defineProperty(a, "__esModule", {
2772
2566
  value: !0
2773
- }), Object.defineProperty(o, "default", {
2567
+ }), Object.defineProperty(a, "default", {
2774
2568
  enumerable: !0,
2775
2569
  get: function() {
2776
2570
  return e;
@@ -2783,45 +2577,45 @@ var He = {}, Be = {};
2783
2577
  };
2784
2578
  }
2785
2579
  r.withOptions = function(t, n = () => ({})) {
2786
- const a = function(l) {
2580
+ const o = function(s) {
2787
2581
  return {
2788
- __options: l,
2789
- handler: t(l),
2790
- config: n(l)
2582
+ __options: s,
2583
+ handler: t(s),
2584
+ config: n(s)
2791
2585
  };
2792
2586
  };
2793
- return a.__isOptionsFunction = !0, a.__pluginFunction = t, a.__configFunction = n, a;
2587
+ return o.__isOptionsFunction = !0, o.__pluginFunction = t, o.__configFunction = n, o;
2794
2588
  };
2795
2589
  const e = r;
2796
- })(Be);
2797
- (function(o) {
2798
- Object.defineProperty(o, "__esModule", {
2590
+ })(Ye);
2591
+ (function(a) {
2592
+ Object.defineProperty(a, "__esModule", {
2799
2593
  value: !0
2800
- }), Object.defineProperty(o, "default", {
2594
+ }), Object.defineProperty(a, "default", {
2801
2595
  enumerable: !0,
2802
2596
  get: function() {
2803
2597
  return t;
2804
2598
  }
2805
2599
  });
2806
- const r = /* @__PURE__ */ e(Be);
2600
+ const r = /* @__PURE__ */ e(Ye);
2807
2601
  function e(n) {
2808
2602
  return n && n.__esModule ? n : {
2809
2603
  default: n
2810
2604
  };
2811
2605
  }
2812
2606
  const t = r.default;
2813
- })(He);
2814
- let J = He;
2815
- var Ae = (J.__esModule ? J : { default: J }).default;
2816
- const X = /* @__PURE__ */ xe(Ae), on = Ae;
2817
- function he(o) {
2607
+ })(Fe);
2608
+ let Z = Fe;
2609
+ var Le = (Z.__esModule ? Z : { default: Z }).default;
2610
+ const V = /* @__PURE__ */ me(Le), $r = Le;
2611
+ function fe(a) {
2818
2612
  return Object.fromEntries(
2819
- Object.entries(o).filter(([r]) => r !== "DEFAULT")
2613
+ Object.entries(a).filter(([r]) => r !== "DEFAULT")
2820
2614
  );
2821
2615
  }
2822
- var an = on(
2823
- ({ addUtilities: o, matchUtilities: r, theme: e }) => {
2824
- o({
2616
+ var Gr = $r(
2617
+ ({ addUtilities: a, matchUtilities: r, theme: e }) => {
2618
+ a({
2825
2619
  "@keyframes enter": e("keyframes.enter"),
2826
2620
  "@keyframes exit": e("keyframes.exit"),
2827
2621
  ".animate-in": {
@@ -2890,14 +2684,14 @@ var an = on(
2890
2684
  { values: e("animationTranslate") }
2891
2685
  ), r(
2892
2686
  { duration: (t) => ({ animationDuration: t }) },
2893
- { values: he(e("animationDuration")) }
2687
+ { values: fe(e("animationDuration")) }
2894
2688
  ), r(
2895
2689
  { delay: (t) => ({ animationDelay: t }) },
2896
2690
  { values: e("animationDelay") }
2897
2691
  ), r(
2898
2692
  { ease: (t) => ({ animationTimingFunction: t }) },
2899
- { values: he(e("animationTimingFunction")) }
2900
- ), o({
2693
+ { values: fe(e("animationTimingFunction")) }
2694
+ ), a({
2901
2695
  ".running": { animationPlayState: "running" },
2902
2696
  ".paused": { animationPlayState: "paused" }
2903
2697
  }), r(
@@ -2914,15 +2708,15 @@ var an = on(
2914
2708
  {
2915
2709
  theme: {
2916
2710
  extend: {
2917
- animationDelay: ({ theme: o }) => ({
2918
- ...o("transitionDelay")
2711
+ animationDelay: ({ theme: a }) => ({
2712
+ ...a("transitionDelay")
2919
2713
  }),
2920
- animationDuration: ({ theme: o }) => ({
2714
+ animationDuration: ({ theme: a }) => ({
2921
2715
  0: "0ms",
2922
- ...o("transitionDuration")
2716
+ ...a("transitionDuration")
2923
2717
  }),
2924
- animationTimingFunction: ({ theme: o }) => ({
2925
- ...o("transitionTimingFunction")
2718
+ animationTimingFunction: ({ theme: a }) => ({
2719
+ ...a("transitionTimingFunction")
2926
2720
  }),
2927
2721
  animationFillMode: {
2928
2722
  none: "none",
@@ -2936,21 +2730,21 @@ var an = on(
2936
2730
  alternate: "alternate",
2937
2731
  "alternate-reverse": "alternate-reverse"
2938
2732
  },
2939
- animationOpacity: ({ theme: o }) => ({
2733
+ animationOpacity: ({ theme: a }) => ({
2940
2734
  DEFAULT: 0,
2941
- ...o("opacity")
2735
+ ...a("opacity")
2942
2736
  }),
2943
- animationTranslate: ({ theme: o }) => ({
2737
+ animationTranslate: ({ theme: a }) => ({
2944
2738
  DEFAULT: "100%",
2945
- ...o("translate")
2739
+ ...a("translate")
2946
2740
  }),
2947
- animationScale: ({ theme: o }) => ({
2741
+ animationScale: ({ theme: a }) => ({
2948
2742
  DEFAULT: 0,
2949
- ...o("scale")
2743
+ ...a("scale")
2950
2744
  }),
2951
- animationRotate: ({ theme: o }) => ({
2745
+ animationRotate: ({ theme: a }) => ({
2952
2746
  DEFAULT: "30deg",
2953
- ...o("rotate")
2747
+ ...a("rotate")
2954
2748
  }),
2955
2749
  animationRepeat: {
2956
2750
  0: "0",
@@ -2975,33 +2769,33 @@ var an = on(
2975
2769
  }
2976
2770
  }
2977
2771
  );
2978
- const Re = /* @__PURE__ */ xe(an), zn = {
2772
+ const We = /* @__PURE__ */ me(Gr), Mn = {
2979
2773
  theme: {
2980
2774
  backgroundColor: {
2981
- color: $,
2982
- banner: Ee,
2775
+ color: z,
2776
+ banner: Ie,
2983
2777
  icon: E
2984
2778
  },
2985
2779
  textColor: {
2986
2780
  icon: E,
2987
- color: Ce
2781
+ color: je
2988
2782
  },
2989
2783
  fill: E,
2990
2784
  stroke: E,
2991
- borderColor: G,
2992
- outlineColor: G,
2993
- borderRadius: Oe,
2785
+ borderColor: Q,
2786
+ outlineColor: Q,
2787
+ borderRadius: Me,
2994
2788
  fontFamily: { roboto: ["var(--ff-roboto)", "sans-serif"] },
2995
- fontSize: Ye,
2996
- lineHeight: We,
2997
- gradientColorStops: $,
2789
+ fontSize: Ee,
2790
+ lineHeight: Ce,
2791
+ gradientColorStops: z,
2998
2792
  boxShadow: {
2999
2793
  sm: "0 8px 20px 0 rgba(0, 0, 0, 0.08)",
3000
2794
  md: "0 12px 20px 0 rgba(0, 33, 87, 0.10)",
3001
2795
  lg: "0 16px 24px 0 rgba(0, 33, 87, 0.16)"
3002
2796
  },
3003
2797
  extend: {
3004
- bgGradientDeg: Fe,
2798
+ bgGradientDeg: _e,
3005
2799
  width: {
3006
2800
  "popper-content": "var(--radix-popover-content-available-width)",
3007
2801
  "popper-trigger": "var(--radix-popover-trigger-width)",
@@ -3045,12 +2839,12 @@ const Re = /* @__PURE__ */ xe(an), zn = {
3045
2839
  }
3046
2840
  },
3047
2841
  plugins: [
3048
- Re,
3049
- X(({ addComponents: o }) => {
3050
- o(Le);
2842
+ We,
2843
+ V(({ addComponents: a }) => {
2844
+ a(Oe);
3051
2845
  }),
3052
- X(function({ matchUtilities: o, theme: r }) {
3053
- o(
2846
+ V(function({ matchUtilities: a, theme: r }) {
2847
+ a(
3054
2848
  {
3055
2849
  "bg-deg-gradient": (e) => ({
3056
2850
  "background-image": `linear-gradient(${e}, var(--tw-gradient-stops))`
@@ -3062,7 +2856,7 @@ const Re = /* @__PURE__ */ xe(an), zn = {
3062
2856
  );
3063
2857
  })
3064
2858
  ]
3065
- }, qn = {
2859
+ }, _n = {
3066
2860
  theme: {
3067
2861
  extend: {
3068
2862
  transitionDuration: {
@@ -3102,47 +2896,47 @@ const Re = /* @__PURE__ */ xe(an), zn = {
3102
2896
  }
3103
2897
  }
3104
2898
  }
3105
- }, Vn = {
2899
+ }, En = {
3106
2900
  theme: {
3107
2901
  screens: {
3108
2902
  mobile: { max: "1187px" },
3109
2903
  desktop: "1188px"
3110
2904
  },
3111
2905
  backgroundColor: {
3112
- color: $,
3113
- banner: Ee,
2906
+ color: z,
2907
+ banner: Ie,
3114
2908
  icon: E
3115
2909
  },
3116
2910
  textColor: {
3117
2911
  icon: E,
3118
- color: Ce
2912
+ color: je
3119
2913
  },
3120
2914
  fill: E,
3121
2915
  stroke: E,
3122
- borderColor: G,
3123
- outlineColor: G,
3124
- borderRadius: Oe,
2916
+ borderColor: Q,
2917
+ outlineColor: Q,
2918
+ borderRadius: Me,
3125
2919
  fontFamily: { roboto: ["var(--ff-roboto)", "sans-serif"] },
3126
- fontSize: Ye,
3127
- lineHeight: We,
3128
- gradientColorStops: $,
2920
+ fontSize: Ee,
2921
+ lineHeight: Ce,
2922
+ gradientColorStops: z,
3129
2923
  boxShadow: {
3130
2924
  sm: "0 8px 20px 0 rgba(0, 0, 0, 0.08)",
3131
2925
  md: "0 12px 20px 0 rgba(0, 33, 87, 0.10)",
3132
2926
  lg: "0 16px 24px 0 rgba(0, 33, 87, 0.16)"
3133
2927
  },
3134
- zIndex: nn,
2928
+ zIndex: Vr,
3135
2929
  extend: {
3136
- bgGradientDeg: Fe
2930
+ bgGradientDeg: _e
3137
2931
  }
3138
2932
  },
3139
2933
  plugins: [
3140
- Re,
3141
- X(({ addComponents: o }) => {
3142
- o(Le);
2934
+ We,
2935
+ V(({ addComponents: a }) => {
2936
+ a(Oe);
3143
2937
  }),
3144
- X(function({ matchUtilities: o, theme: r }) {
3145
- o(
2938
+ V(function({ matchUtilities: a, theme: r }) {
2939
+ a(
3146
2940
  {
3147
2941
  "bg-deg-gradient": (e) => ({
3148
2942
  "background-image": `linear-gradient(${e}, var(--tw-gradient-stops))`
@@ -3154,208 +2948,51 @@ const Re = /* @__PURE__ */ xe(an), zn = {
3154
2948
  );
3155
2949
  })
3156
2950
  ]
3157
- }, ze = ({ buttonsConfig: o, classes: r, className: e }) => {
3158
- var n;
3159
- const t = (o == null ? void 0 : o.secondary) && o.secondary.children;
3160
- return /* @__PURE__ */ i.jsxs(
3161
- "div",
3162
- {
3163
- "data-id": "banner-buttons-group",
3164
- className: d(
3165
- "grid-buttons-apply absolute bottom-6 left-1/2 flex w-full -translate-x-1/2 flex-col justify-self-center px-4 desktop:static desktop:left-auto desktop:max-w-full desktop:translate-x-0 desktop:flex-row desktop:justify-normal desktop:px-0",
3166
- { "flex items-center gap-4": t },
3167
- r == null ? void 0 : r.group,
3168
- e
3169
- ),
3170
- children: [
3171
- /* @__PURE__ */ i.jsx(Q, { intent: "primary", ...o.primary, isFull: !0, className: d("desktop:max-w-[216px]", r == null ? void 0 : r.primary), children: o.primary.children }),
3172
- t && /* @__PURE__ */ i.jsx(
3173
- Q,
3174
- {
3175
- intent: "secondary",
3176
- ...o == null ? void 0 : o.secondary,
3177
- isFull: !0,
3178
- className: d("desktop:max-w-[216px]", r == null ? void 0 : r.secondary),
3179
- children: (n = o == null ? void 0 : o.secondary) == null ? void 0 : n.children
3180
- }
3181
- )
3182
- ]
3183
- }
3184
- );
3185
- }, qe = ({ advantagesList: o, classes: r }) => /* @__PURE__ */ i.jsx(
3186
- "div",
3187
- {
3188
- className: d(
3189
- "flex w-full max-w-[636px] flex-col gap-8 rounded-md bg-color-white p-6 shadow-sm desktop:w-full desktop:max-w-full desktop:flex-row desktop:items-start desktop:gap-0 desktop:p-0 desktop:py-6",
3190
- r == null ? void 0 : r.advantageWrapper
3191
- ),
3192
- children: o == null ? void 0 : o.map(({ title: e, description: t }) => /* @__PURE__ */ i.jsxs(
3193
- "div",
3194
- {
3195
- className: d(
3196
- 'after:content-[" "] relative flex h-full w-full flex-col gap-2 after:absolute after:-bottom-4 after:left-1/2 after:h-[1px] after:w-full after:-translate-x-1/2 after:bg-color-blue-grey-300 last:after:hidden desktop:w-[285px] desktop:px-8 desktop:after:bottom-auto desktop:after:left-auto desktop:after:right-0 desktop:after:top-1/2 desktop:after:h-10 desktop:after:w-[1px] desktop:after:-translate-y-1/2 desktop:after:translate-x-0',
3197
- r == null ? void 0 : r.advantageItem
3198
- ),
3199
- children: [
3200
- /* @__PURE__ */ i.jsx(L, { as: "h4", className: d("text-color-dark", r == null ? void 0 : r.advantageTitle), children: e }),
3201
- /* @__PURE__ */ i.jsx("p", { className: d("desk-body-regular-l text-color-secondary", r == null ? void 0 : r.advantageDescription), children: t })
3202
- ]
3203
- },
3204
- e
3205
- ))
3206
- }
3207
- ), dn = ({
3208
- headTitle: o,
3209
- subtitle: r,
3210
- buttonsConfig: e,
3211
- advantagesList: t,
3212
- classes: n,
3213
- img: a,
3214
- imgSets: l
3215
- }) => {
3216
- const { isDesktop: u, isMobile: f } = be(), m = /* @__PURE__ */ i.jsx(
3217
- "div",
3218
- {
3219
- "data-id": "banner-advantages",
3220
- className: d(
3221
- "flex items-center justify-center pt-4 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:pt-0",
3222
- n == null ? void 0 : n.advantageContainer
3223
- ),
3224
- children: t && (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ i.jsx(qe, { classes: n, advantagesList: t })
3225
- }
3226
- );
3227
- return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
3228
- /* @__PURE__ */ i.jsxs("section", { "data-id": "banner-section", className: d("relative h-[552px] desktop:h-[456px]", n == null ? void 0 : n.section), children: [
3229
- /* @__PURE__ */ i.jsx(
3230
- "div",
3231
- {
3232
- "data-id": "banner-img-wrapper",
3233
- className: "absolute bottom-0 left-0 right-0 top-0 z-[-1] mx-auto h-full max-w-[1920px] desktop:h-[456px]",
3234
- children: /* @__PURE__ */ i.jsxs("picture", { children: [
3235
- /* @__PURE__ */ i.jsx("source", { media: "(min-width: 1128px)", srcSet: l == null ? void 0 : l.large, type: "image/avif" }),
3236
- /* @__PURE__ */ i.jsx("source", { media: "(max-width: 1127px)", srcSet: l == null ? void 0 : l.mob, type: (l == null ? void 0 : l.type) ?? "image/avif" }),
3237
- /* @__PURE__ */ i.jsx(
3238
- "img",
3239
- {
3240
- "data-id": "banner-image",
3241
- src: a,
3242
- alt: "Картинка баннера",
3243
- className: d("h-full w-full object-cover object-center", n == null ? void 0 : n.image)
3244
- }
3245
- )
3246
- ] })
3247
- }
3248
- ),
3249
- /* @__PURE__ */ i.jsxs(Y, { "data-id": "banner-container", className: d("h-full", n == null ? void 0 : n.container), children: [
3250
- /* @__PURE__ */ i.jsx("div", { "data-id": "banner", className: d("flex h-full", n == null ? void 0 : n.wrapper), children: /* @__PURE__ */ i.jsxs(
3251
- "div",
3252
- {
3253
- "data-id": "banner-text-block",
3254
- className: d("flex w-[328px] flex-col gap-10 pt-6 desktop:w-full desktop:pt-20", n == null ? void 0 : n.textBlock),
3255
- children: [
3256
- /* @__PURE__ */ i.jsxs("div", { className: "flex flex-col gap-4", children: [
3257
- /* @__PURE__ */ i.jsx(L, { "data-id": "banner-title", as: "h1", className: d("text-color-white", n == null ? void 0 : n.title), children: o }),
3258
- /* @__PURE__ */ i.jsx("p", { "data-id": "banner-subtitle", className: d("desk-body-regular-l text-color-white", n == null ? void 0 : n.subtitle), children: r })
3259
- ] }),
3260
- /* @__PURE__ */ i.jsx(
3261
- ze,
3262
- {
3263
- className: "self-end desktop:self-center",
3264
- "data-id": "banner-buttons-group",
3265
- buttonsConfig: e,
3266
- classes: n
3267
- }
3268
- )
3269
- ]
3270
- }
3271
- ) }),
3272
- u && m
3273
- ] })
3274
- ] }),
3275
- f && m
3276
- ] });
3277
- }, pe = ({
3278
- headTitle: o,
3279
- subtitle: r,
3280
- buttonsConfig: e,
3281
- advantagesList: t,
3282
- classes: n,
3283
- img: a,
3284
- imgSets: l
3285
- }) => {
3286
- const { isDesktop: u, isMobile: f } = be(), m = /* @__PURE__ */ i.jsx(
3287
- "div",
3288
- {
3289
- "data-id": "banner-advantages",
3290
- className: d(
3291
- "flex items-center justify-center rounded-md bg-color-blue-grey-100 p-4 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:p-0",
3292
- n == null ? void 0 : n.advantageContainer
3293
- ),
3294
- children: t && (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ i.jsx(qe, { classes: n, advantagesList: t })
3295
- }
3296
- );
3297
- return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
3298
- /* @__PURE__ */ i.jsx("section", { "data-id": "banner-section", className: d("bg-banner-skyblue-300 desktop:h-[456px]", n == null ? void 0 : n.section), children: /* @__PURE__ */ i.jsxs(Y, { "data-id": "banner-container", className: d("relative", n == null ? void 0 : n.container), children: [
3299
- /* @__PURE__ */ i.jsxs("div", { "data-id": "banner", className: d("flex flex-col desktop:flex-row desktop:justify-between", n == null ? void 0 : n.wrapper), children: [
3300
- /* @__PURE__ */ i.jsxs("div", { className: "flex flex-col desktop:gap-10 desktop:pt-20", children: [
3301
- /* @__PURE__ */ i.jsxs("div", { "data-id": "banner-text-block", className: d("flex flex-col gap-4 pt-6 desktop:pt-0", n == null ? void 0 : n.textBlock), children: [
3302
- /* @__PURE__ */ i.jsx(L, { "data-id": "banner-title", as: "h1", className: d("text-color-dark", n == null ? void 0 : n.title), children: o }),
3303
- /* @__PURE__ */ i.jsx("p", { "data-id": "banner-subtitle", className: d("desk-body-regular-l text-color-dark", n == null ? void 0 : n.subtitle), children: r })
3304
- ] }),
3305
- /* @__PURE__ */ i.jsx(ze, { buttonsConfig: e, classes: n })
3306
- ] }),
3307
- /* @__PURE__ */ i.jsx(
3308
- "div",
3309
- {
3310
- "data-id": "banner-image-wrapper",
3311
- className: d("flex h-[356px] justify-center desktop:h-[456px] desktop:w-[550px]", n == null ? void 0 : n.imageContainer),
3312
- children: /* @__PURE__ */ i.jsxs("picture", { children: [
3313
- /* @__PURE__ */ i.jsx("source", { media: "(min-width: 1128px)", srcSet: l == null ? void 0 : l.large }),
3314
- /* @__PURE__ */ i.jsx("source", { media: "(max-width: 1127px)", srcSet: l == null ? void 0 : l.mob }),
3315
- /* @__PURE__ */ i.jsx(
3316
- "img",
3317
- {
3318
- "data-id": "banner-image",
3319
- src: a,
3320
- alt: "Картинка баннера",
3321
- className: d("h-full object-cover", n == null ? void 0 : n.image)
3322
- }
3323
- )
3324
- ] })
3325
- }
3326
- )
3327
- ] }),
3328
- u && m
3329
- ] }) }),
3330
- f && m
3331
- ] });
3332
- }, Qn = ({ bannerVariant: o, ...r }) => {
3333
- switch (o) {
3334
- case "separateImg":
3335
- return /* @__PURE__ */ i.jsx(pe, { ...r });
3336
- case "fullImg":
3337
- return /* @__PURE__ */ i.jsx(dn, { ...r });
3338
- default:
3339
- return /* @__PURE__ */ i.jsx(pe, { ...r });
3340
- }
3341
- }, ln = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
2951
+ };
2952
+ class Xr extends Error {
2953
+ constructor(r) {
2954
+ super("ApiError: " + r.status), this.response = r;
2955
+ }
2956
+ }
2957
+ const Zr = {
2958
+ "Content-Type": "application/json"
2959
+ }, Cn = async ({ url: a, init: r, baseUrl: e }) => {
2960
+ const t = (r == null ? void 0 : r.headers) ?? {}, n = (r == null ? void 0 : r.body) && (r == null ? void 0 : r.body), o = await fetch(`${e}${a}`, {
2961
+ headers: {
2962
+ ...Zr,
2963
+ ...t
2964
+ },
2965
+ body: n,
2966
+ ...r
2967
+ });
2968
+ if (!o.ok)
2969
+ throw new Xr(o);
2970
+ return await o.json();
2971
+ }, Ur = {
2972
+ main: /* @__PURE__ */ i.jsx(P, { name: "brandLogos/logoMain" }),
2973
+ white: /* @__PURE__ */ i.jsx(P, { name: "brandLogos/logoWhite" }),
2974
+ gray: /* @__PURE__ */ i.jsx(P, { name: "brandLogos/logoGray" }),
2975
+ black: /* @__PURE__ */ i.jsx(P, { name: "brandLogos/logoBlack" }),
2976
+ business: /* @__PURE__ */ i.jsx(P, { name: "brandLogos/logoBusiness" }),
2977
+ insurance: /* @__PURE__ */ i.jsx(P, { name: "brandLogos/logoInsurance" })
2978
+ }, Jr = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
3342
2979
  "© 2004-2024, ПАО «Совкомбанк». Все права защищены. ",
3343
2980
  /* @__PURE__ */ i.jsx("br", {}),
3344
2981
  " Генеральная лицензия Банка России №963 от 5 декабря 2014 г."
3345
- ] }), sn = `Кредит на бизнес цели, срок 3, 6, 9, 12, 18, 24, 36, 48, 60 мес. Ставка – от 22,9%*. *Точная процентная ставка
2982
+ ] }), Kr = `Кредит на бизнес цели, срок 3, 6, 9, 12, 18, 24, 36, 48, 60 мес. Ставка – от 22,9%*. *Точная процентная ставка
3346
2983
  устанавливается по соглашению сторон и определяется исходя из платёжеспособности и кредитоспособности клиента, а также
3347
2984
  иных индивидуальных особенностей клиента. Сумма 100 000 – 50 000 000 руб. Кредит выдается на карту “Халва”, открытый в
3348
2985
  Банке. Банк вправе отказать в предоставлении кредита без объяснения причины, а также запросить дополнительную информацию о
3349
2986
  клиенте. Предварительное одобрение не влечет обязательств Банка по выдаче кредита. В некоторых случаях срок рассмотрения
3350
2987
  заявки может составлять до 3 рабочих дней. Полный электронный документооборот при наличии открытого р/с в ПАО «Совкомбанк»
3351
- и действующей ЭЦП. Условия рекламы действительны на 20.02.2024г.`, un = [
2988
+ и действующей ЭЦП. Условия рекламы действительны на 20.02.2024г.`, Sr = [
3352
2989
  { phone: "8 800 100-00-06", text: "Звонок по России (бесплатно)" },
3353
2990
  { phone: "+7 (495) 988 00 00", text: "Для звонков из-за рубежа (платно)" }
3354
- ], cn = [
2991
+ ], en = [
3355
2992
  { iconName: "social/vk", href: "/vk" },
3356
2993
  { iconName: "social/telegram", href: "/tg" },
3357
2994
  { iconName: "social/classmates", href: "/cl" }
3358
- ], fn = [
2995
+ ], tn = [
3359
2996
  {
3360
2997
  groupLabel: "Совкомбанк",
3361
2998
  links: [
@@ -3432,16 +3069,16 @@ const Re = /* @__PURE__ */ xe(an), zn = {
3432
3069
  { text: "Офисы и банкоматы", href: "/" }
3433
3070
  ]
3434
3071
  }
3435
- ], mn = ({ socialsLinks: o, classes: r }) => /* @__PURE__ */ i.jsx("div", { className: d("mt-6 flex items-center gap-2", r == null ? void 0 : r.socialRoot), children: o == null ? void 0 : o.map(({ iconName: e, href: t }) => /* @__PURE__ */ i.jsx(
3072
+ ], rn = ({ socialsLinks: a, classes: r }) => /* @__PURE__ */ i.jsx("div", { className: d("mt-6 flex items-center gap-2", r == null ? void 0 : r.socialRoot), children: a == null ? void 0 : a.map(({ iconName: e, href: t }) => /* @__PURE__ */ i.jsx(
3436
3073
  "a",
3437
3074
  {
3438
3075
  className: d("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", r == null ? void 0 : r.socialLink),
3439
3076
  href: t,
3440
- children: /* @__PURE__ */ i.jsx(T, { name: e, className: d("h-full w-full text-icon-white", r == null ? void 0 : r.socialIcon) })
3077
+ children: /* @__PURE__ */ i.jsx(P, { name: e, className: d("h-full w-full text-icon-white", r == null ? void 0 : r.socialIcon) })
3441
3078
  },
3442
3079
  t
3443
- )) }), hn = ({ phones: o, classes: r }) => /* @__PURE__ */ i.jsx("div", { className: d("flex flex-col items-end gap-4", r == null ? void 0 : r.phonesRoot), children: o == null ? void 0 : o.map(({ phone: e, text: t }) => /* @__PURE__ */ i.jsx(
3444
- Me,
3080
+ )) }), nn = ({ phones: a, classes: r }) => /* @__PURE__ */ i.jsx("div", { className: d("flex flex-col items-end gap-4", r == null ? void 0 : r.phonesRoot), children: a == null ? void 0 : a.map(({ phone: e, text: t }) => /* @__PURE__ */ i.jsx(
3081
+ be,
3445
3082
  {
3446
3083
  phone: e,
3447
3084
  text: t,
@@ -3452,12 +3089,12 @@ const Re = /* @__PURE__ */ xe(an), zn = {
3452
3089
  }
3453
3090
  },
3454
3091
  e
3455
- )) }), pn = ({ navigationLinks: o, classes: r }) => /* @__PURE__ */ i.jsx("div", { className: d("grid grid-cols-4 gap-10 border-y border-blue-grey-500 py-8 pt-8", r == null ? void 0 : r.navRoot), children: o == null ? void 0 : o.map(({ groupLabel: e, links: t }) => /* @__PURE__ */ i.jsxs("div", { className: d("flex flex-col gap-4", r == null ? void 0 : r.navGroup), children: [
3092
+ )) }), an = ({ navigationLinks: a, classes: r }) => /* @__PURE__ */ i.jsx("div", { className: d("grid grid-cols-4 gap-10 border-y border-blue-grey-500 py-8 pt-8", r == null ? void 0 : r.navRoot), children: a == null ? void 0 : a.map(({ groupLabel: e, links: t }) => /* @__PURE__ */ i.jsxs("div", { className: d("flex flex-col gap-4", r == null ? void 0 : r.navGroup), children: [
3456
3093
  /* @__PURE__ */ i.jsx("div", { className: d("desk-body-regular-m font-medium text-color-white", r == null ? void 0 : r.navLabel), children: e }),
3457
- /* @__PURE__ */ i.jsx("div", { className: d("flex flex-col gap-2", r == null ? void 0 : r.navWrapper), children: t == null ? void 0 : t.map(({ text: n, href: a }) => /* @__PURE__ */ i.jsx(
3094
+ /* @__PURE__ */ i.jsx("div", { className: d("flex flex-col gap-2", r == null ? void 0 : r.navWrapper), children: t == null ? void 0 : t.map(({ text: n, href: o }) => /* @__PURE__ */ i.jsx(
3458
3095
  "a",
3459
3096
  {
3460
- href: a,
3097
+ href: o,
3461
3098
  className: d(
3462
3099
  "desk-body-regular-m cursor-pointer text-color-white transition-colors hover:text-color-footer",
3463
3100
  r == null ? void 0 : r.navLink
@@ -3466,13 +3103,13 @@ const Re = /* @__PURE__ */ xe(an), zn = {
3466
3103
  },
3467
3104
  n
3468
3105
  )) })
3469
- ] }, e)) }), xn = ({ ligal: o, classes: r }) => {
3470
- const [e, t] = z.useState(!1), [n, a] = z.useState(!1), l = z.useRef(null);
3471
- return z.useEffect(() => {
3472
- const u = l.current;
3473
- u && a(u.scrollHeight > u.clientHeight);
3106
+ ] }, e)) }), on = ({ ligal: a, classes: r }) => {
3107
+ const [e, t] = R.useState(!1), [n, o] = R.useState(!1), s = R.useRef(null);
3108
+ return R.useEffect(() => {
3109
+ const u = s.current;
3110
+ u && o(u.scrollHeight > u.clientHeight);
3474
3111
  }, []), /* @__PURE__ */ i.jsxs("div", { className: d("mt-8 flex flex-col gap-4", r == null ? void 0 : r.ligalRoot), children: [
3475
- /* @__PURE__ */ i.jsx("p", { ref: l, className: d("desk-body-regular-m text-color-footer", { "line-clamp-3": !e }, r == null ? void 0 : r.ligal), children: o }),
3112
+ /* @__PURE__ */ i.jsx("p", { ref: s, className: d("desk-body-regular-m text-color-footer", { "line-clamp-3": !e }, r == null ? void 0 : r.ligal), children: a }),
3476
3113
  n && /* @__PURE__ */ i.jsx(
3477
3114
  "div",
3478
3115
  {
@@ -3487,32 +3124,32 @@ const Re = /* @__PURE__ */ xe(an), zn = {
3487
3124
  }
3488
3125
  )
3489
3126
  ] });
3490
- }, bn = ({ text: o, classes: r }) => /* @__PURE__ */ i.jsx("div", { className: d("desk-body-regular-m text-color-footer", r == null ? void 0 : r.text), children: o }), $n = ({
3491
- withSocial: o = !0,
3127
+ }, sn = ({ text: a, classes: r }) => /* @__PURE__ */ i.jsx("div", { className: d("desk-body-regular-m text-color-footer", r == null ? void 0 : r.text), children: a }), On = ({
3128
+ withSocial: a = !0,
3492
3129
  withPhones: r = !0,
3493
3130
  withNavLinks: e = !0,
3494
3131
  withLigal: t = !0,
3495
3132
  withCopyright: n = !0,
3496
- withSiteMap: a = !0,
3497
- socialsLinks: l = cn,
3498
- phones: u = un,
3499
- navigationLinks: f = fn,
3500
- ligal: m = sn,
3501
- copyright: b = ln,
3133
+ withSiteMap: o = !0,
3134
+ socialsLinks: s = en,
3135
+ phones: u = Sr,
3136
+ navigationLinks: h = tn,
3137
+ ligal: x = Kr,
3138
+ copyright: k = Jr,
3502
3139
  classes: c
3503
- }) => /* @__PURE__ */ i.jsx(Ie, { className: d("w-full", c == null ? void 0 : c.section), children: /* @__PURE__ */ i.jsx(Y, { className: d(c == null ? void 0 : c.container), children: /* @__PURE__ */ i.jsxs("div", { className: d("bg-color-footer px-4 py-8 desktop:px-6 desktop:py-10", c == null ? void 0 : c.footerRoot), children: [
3140
+ }) => /* @__PURE__ */ i.jsx(pe, { className: d("w-full", c == null ? void 0 : c.section), children: /* @__PURE__ */ i.jsx($, { className: d(c == null ? void 0 : c.container), children: /* @__PURE__ */ i.jsxs("div", { className: d("bg-color-footer px-4 py-8 desktop:px-6 desktop:py-10", c == null ? void 0 : c.footerRoot), children: [
3504
3141
  /* @__PURE__ */ i.jsxs("div", { className: d("mb-8 flex items-center justify-between gap-6", c == null ? void 0 : c.footerHead), children: [
3505
3142
  /* @__PURE__ */ i.jsxs("div", { className: d(c == null ? void 0 : c.footerSocialBlock), children: [
3506
- /* @__PURE__ */ i.jsx("a", { href: "/", className: d(c == null ? void 0 : c.footerLogo), children: /* @__PURE__ */ i.jsx(T, { name: "brandLogos/logoWhite", className: "h-[32px] w-[194px]" }) }),
3507
- o && /* @__PURE__ */ i.jsx(mn, { socialsLinks: l, classes: c })
3143
+ /* @__PURE__ */ i.jsx("a", { href: "/", className: d(c == null ? void 0 : c.footerLogo), children: /* @__PURE__ */ i.jsx(P, { name: "brandLogos/logoWhite", className: "h-[32px] w-[194px]" }) }),
3144
+ a && /* @__PURE__ */ i.jsx(rn, { socialsLinks: s, classes: c })
3508
3145
  ] }),
3509
- r && /* @__PURE__ */ i.jsx(hn, { phones: u, classes: c })
3146
+ r && /* @__PURE__ */ i.jsx(nn, { phones: u, classes: c })
3510
3147
  ] }),
3511
- e && /* @__PURE__ */ i.jsx(pn, { navigationLinks: f, classes: c }),
3512
- t && /* @__PURE__ */ i.jsx(xn, { ligal: m, classes: c }),
3148
+ e && /* @__PURE__ */ i.jsx(an, { navigationLinks: h, classes: c }),
3149
+ t && /* @__PURE__ */ i.jsx(on, { ligal: x, classes: c }),
3513
3150
  /* @__PURE__ */ i.jsxs("div", { className: "mt-6 flex items-start justify-between gap-6", children: [
3514
- n && /* @__PURE__ */ i.jsx(bn, { text: b, classes: c }),
3515
- a && /* @__PURE__ */ i.jsx(
3151
+ n && /* @__PURE__ */ i.jsx(sn, { text: k, classes: c }),
3152
+ o && /* @__PURE__ */ i.jsx(
3516
3153
  "a",
3517
3154
  {
3518
3155
  href: "https://sovcombank.ru/site-map",
@@ -3523,31 +3160,31 @@ const Re = /* @__PURE__ */ xe(an), zn = {
3523
3160
  }
3524
3161
  )
3525
3162
  ] })
3526
- ] }) }) }), yn = (o) => {
3163
+ ] }) }) }), dn = (a) => {
3527
3164
  var r, e, t, n;
3528
- switch (o.variant) {
3165
+ switch (a.variant) {
3529
3166
  case "withButton":
3530
- return /* @__PURE__ */ i.jsx(Q, { intent: "secondary", size: "sm", className: (r = o.classes) == null ? void 0 : r.button, children: "Оформить заявку" });
3167
+ return /* @__PURE__ */ i.jsx(he, { intent: "secondary", size: "sm", className: (r = a.classes) == null ? void 0 : r.button, children: "Оформить заявку" });
3531
3168
  case "withPhone":
3532
- const { phone: a, phoneText: l } = o;
3169
+ const { phone: o, phoneText: s } = a;
3533
3170
  return /* @__PURE__ */ i.jsx(
3534
- Me,
3171
+ be,
3535
3172
  {
3536
- phone: a,
3537
- text: l,
3173
+ phone: o,
3174
+ text: s,
3538
3175
  classes: {
3539
- wrapper: (e = o.classes) == null ? void 0 : e.phoneWrapper,
3540
- text: (t = o.classes) == null ? void 0 : t.phoneText,
3541
- link: (n = o.classes) == null ? void 0 : n.phoneLink
3176
+ wrapper: (e = a.classes) == null ? void 0 : e.phoneWrapper,
3177
+ text: (t = a.classes) == null ? void 0 : t.phoneText,
3178
+ link: (n = a.classes) == null ? void 0 : n.phoneLink
3542
3179
  }
3543
3180
  }
3544
3181
  );
3545
3182
  default:
3546
3183
  return null;
3547
3184
  }
3548
- }, Gn = (o) => {
3549
- const { logoPath: r = "/", logoType: e = "main", classes: t } = o;
3550
- return /* @__PURE__ */ i.jsx("header", { className: d("flex h-[72px] items-center justify-center bg-color-white", t == null ? void 0 : t.header), children: /* @__PURE__ */ i.jsx(Y, { className: d(t == null ? void 0 : t.container), children: /* @__PURE__ */ i.jsxs("div", { className: d("flex items-center justify-between gap-5", t == null ? void 0 : t.wrapper), children: [
3185
+ }, Fn = (a) => {
3186
+ const { logoPath: r = "/", logoType: e = "main", classes: t } = a;
3187
+ return /* @__PURE__ */ i.jsx("header", { className: d("flex h-[72px] items-center justify-center bg-color-white", t == null ? void 0 : t.header), children: /* @__PURE__ */ i.jsx($, { className: d(t == null ? void 0 : t.container), children: /* @__PURE__ */ i.jsxs("div", { className: d("flex items-center justify-between gap-5", t == null ? void 0 : t.wrapper), children: [
3551
3188
  /* @__PURE__ */ i.jsx(
3552
3189
  "a",
3553
3190
  {
@@ -3558,12 +3195,12 @@ const Re = /* @__PURE__ */ xe(an), zn = {
3558
3195
  "flex items-center justify-center [&_svg]:w-[114px] desktop:[&_svg]:h-[32px] desktop:[&_svg]:w-[192px]",
3559
3196
  t == null ? void 0 : t.logo
3560
3197
  ),
3561
- children: Sr[e]
3198
+ children: Ur[e]
3562
3199
  }
3563
3200
  ),
3564
- yn(o)
3201
+ dn(a)
3565
3202
  ] }) }) });
3566
- }, wn = ({ title: o, description: r, index: e, classes: t }) => /* @__PURE__ */ i.jsxs(
3203
+ }, ln = ({ title: a, description: r, index: e, classes: t }) => /* @__PURE__ */ i.jsxs(
3567
3204
  "div",
3568
3205
  {
3569
3206
  className: d(
@@ -3582,13 +3219,13 @@ const Re = /* @__PURE__ */ xe(an), zn = {
3582
3219
  }
3583
3220
  ),
3584
3221
  /* @__PURE__ */ i.jsxs("div", { className: d("flex flex-col gap-4", t == null ? void 0 : t.textBlock), children: [
3585
- /* @__PURE__ */ i.jsx(L, { as: "h4", className: d("text-color-dark", t == null ? void 0 : t.title), children: o }),
3222
+ /* @__PURE__ */ i.jsx(xe, { as: "h4", className: d("text-color-dark", t == null ? void 0 : t.title), children: a }),
3586
3223
  /* @__PURE__ */ i.jsx("p", { className: d("desk-body-regular-l text-color-tetriary", t == null ? void 0 : t.description), children: r })
3587
3224
  ] })
3588
3225
  ]
3589
3226
  }
3590
- ), Xn = ({ heading: o, stepsList: r, classes: e }) => /* @__PURE__ */ i.jsx(Ie, { children: /* @__PURE__ */ i.jsx(Y, { children: /* @__PURE__ */ i.jsxs("div", { className: d("flex flex-col gap-12", e == null ? void 0 : e.root), children: [
3591
- /* @__PURE__ */ i.jsx(L, { as: "h2", className: d("text-color-dark", e == null ? void 0 : e.headline), children: o }),
3227
+ ), Yn = ({ heading: a, stepsList: r, classes: e }) => /* @__PURE__ */ i.jsx(pe, { children: /* @__PURE__ */ i.jsx($, { children: /* @__PURE__ */ i.jsxs("div", { className: d("flex flex-col gap-12", e == null ? void 0 : e.root), children: [
3228
+ /* @__PURE__ */ i.jsx(xe, { as: "h2", className: d("text-color-dark", e == null ? void 0 : e.headline), children: a }),
3592
3229
  /* @__PURE__ */ i.jsx(
3593
3230
  "div",
3594
3231
  {
@@ -3596,10 +3233,10 @@ const Re = /* @__PURE__ */ xe(an), zn = {
3596
3233
  "flex flex-col items-start gap-6 desktop:flex-row desktop:items-center desktop:gap-12",
3597
3234
  e == null ? void 0 : e.stepsWrapper
3598
3235
  ),
3599
- children: r == null ? void 0 : r.map((t, n) => /* @__PURE__ */ i.jsx(wn, { index: n + 1, ...t, classes: e }, t.title))
3236
+ children: r == null ? void 0 : r.map((t, n) => /* @__PURE__ */ i.jsx(ln, { index: n + 1, ...t, classes: e }, t.title))
3600
3237
  }
3601
3238
  )
3602
- ] }) }) }), gn = N("", {
3239
+ ] }) }) }), un = O("", {
3603
3240
  variants: {
3604
3241
  intent: {
3605
3242
  twoItems: "mob-headline-bold-s mb-6 desktop:desk-headline-bold-m desktop:mb-12",
@@ -3615,7 +3252,7 @@ const Re = /* @__PURE__ */ xe(an), zn = {
3615
3252
  defaultVariants: {
3616
3253
  intent: "twoItems"
3617
3254
  }
3618
- }), kn = N("desktop:max-h-[98px]", {
3255
+ }), cn = O("desktop:max-h-[98px]", {
3619
3256
  variants: {
3620
3257
  intent: {
3621
3258
  twoItems: "",
@@ -3647,7 +3284,7 @@ const Re = /* @__PURE__ */ xe(an), zn = {
3647
3284
  class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
3648
3285
  }
3649
3286
  ]
3650
- }), vn = N("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
3287
+ }), fn = O("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
3651
3288
  variants: {
3652
3289
  intent: {
3653
3290
  twoItems: 'last:border-none relative desktop:first:after:top-1/2 desktop:first:after:-translate-y-1/2 desktop:first:after:right-0 desktop:first:after:content-[""] desktop:first:after:block desktop:first:after:absolute desktop:first:after:w-[1px] desktop:first:after:h-[64px] desktop:first:after:bg-color-blue-grey-500 desktop:ml-8 desktop:pr-8 desktop:first:ml-0 desktop:last:pr-0 desktop:pb-3',
@@ -3657,7 +3294,7 @@ const Re = /* @__PURE__ */ xe(an), zn = {
3657
3294
  defaultVariants: {
3658
3295
  intent: "twoItems"
3659
3296
  }
3660
- }), jn = N("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
3297
+ }), mn = O("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
3661
3298
  variants: {
3662
3299
  intent: {
3663
3300
  twoItems: "desktop:h-[232px] desktop:w-[500px]",
@@ -3683,47 +3320,47 @@ const Re = /* @__PURE__ */ xe(an), zn = {
3683
3320
  class: "desktop:h-[272px] desktop:w-[500px]"
3684
3321
  }
3685
3322
  ]
3686
- }), Dn = ({ data: o, intent: r }) => {
3687
- const { title: e, description: t, popoverText: n } = o;
3688
- return /* @__PURE__ */ i.jsx("li", { className: d(vn({ intent: r })), children: /* @__PURE__ */ i.jsxs("div", { className: "desktop:max-w-[264px]", children: [
3323
+ }), hn = ({ data: a, intent: r }) => {
3324
+ const { title: e, description: t, popoverText: n } = a;
3325
+ return /* @__PURE__ */ i.jsx("li", { className: d(fn({ intent: r })), children: /* @__PURE__ */ i.jsxs("div", { className: "desktop:max-w-[264px]", children: [
3689
3326
  /* @__PURE__ */ i.jsxs("div", { className: d("mb-2 flex items-center gap-2"), children: [
3690
3327
  /* @__PURE__ */ i.jsx("h4", { className: d("mob-title-bold-m text-color-dark"), children: e }),
3691
- n && /* @__PURE__ */ i.jsx(Ge, { triggerElement: /* @__PURE__ */ i.jsx(T, { className: d("size-4 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: n })
3328
+ n && /* @__PURE__ */ i.jsx(Re, { triggerElement: /* @__PURE__ */ i.jsx(P, { className: d("size-4 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: n })
3692
3329
  ] }),
3693
3330
  /* @__PURE__ */ i.jsx("p", { className: d("mob-body-regular-l text-color-secondary"), children: t })
3694
3331
  ] }) });
3695
- }, K = ({ intent: o, title: r, desktopHidden: e = !1, mobileHidden: t = !1 }) => /* @__PURE__ */ i.jsx("h2", { className: d(gn({ intent: o, desktopHidden: e, mobileHidden: t })), children: r }), Nn = ({ textContent: o, intent: r, withButton: e }) => /* @__PURE__ */ i.jsx("ul", { className: d(kn({ intent: r, withButton: e })), children: o == null ? void 0 : o.map((t, n) => /* @__PURE__ */ i.jsx(Dn, { intent: r, data: t }, n)) }), Zn = ({
3696
- title: o,
3332
+ }, U = ({ intent: a, title: r, desktopHidden: e = !1, mobileHidden: t = !1 }) => /* @__PURE__ */ i.jsx("h2", { className: d(un({ intent: a, desktopHidden: e, mobileHidden: t })), children: r }), xn = ({ textContent: a, intent: r, withButton: e }) => /* @__PURE__ */ i.jsx("ul", { className: d(cn({ intent: r, withButton: e })), children: a == null ? void 0 : a.map((t, n) => /* @__PURE__ */ i.jsx(hn, { intent: r, data: t }, n)) }), Ln = ({
3333
+ title: a,
3697
3334
  buttonConfig: r,
3698
3335
  intent: e = "twoItems",
3699
3336
  textContent: t,
3700
3337
  imageComponent: n,
3701
- classes: a
3338
+ classes: o
3702
3339
  }) => {
3703
- const l = !!r, u = e === "fourItems", f = e === "twoItems";
3704
- return /* @__PURE__ */ i.jsx("section", { className: d(a == null ? void 0 : a.section), children: /* @__PURE__ */ i.jsxs(Y, { className: d(a == null ? void 0 : a.mainContainer), children: [
3705
- f && /* @__PURE__ */ i.jsx(K, { intent: e, title: o }),
3340
+ const s = !!r, u = e === "fourItems", h = e === "twoItems";
3341
+ return /* @__PURE__ */ i.jsx("section", { className: d(o == null ? void 0 : o.section), children: /* @__PURE__ */ i.jsxs($, { className: d(o == null ? void 0 : o.mainContainer), children: [
3342
+ h && /* @__PURE__ */ i.jsx(U, { intent: e, title: a }),
3706
3343
  /* @__PURE__ */ i.jsxs(
3707
3344
  "div",
3708
3345
  {
3709
3346
  className: d(
3710
3347
  "bg-banner-skyblue-100 px-6 pb-8 pt-6 desktop:flex desktop:flex-row-reverse desktop:justify-between desktop:px-0 desktop:py-0 desktop:pl-12",
3711
- a == null ? void 0 : a.contentContainer
3348
+ o == null ? void 0 : o.contentContainer
3712
3349
  ),
3713
3350
  children: [
3714
- u && /* @__PURE__ */ i.jsx(K, { intent: e, title: o, desktopHidden: !0 }),
3715
- /* @__PURE__ */ i.jsx("div", { className: d(jn({ intent: e, withButton: l }), a == null ? void 0 : a.imgContainer), children: n }),
3351
+ u && /* @__PURE__ */ i.jsx(U, { intent: e, title: a, desktopHidden: !0 }),
3352
+ /* @__PURE__ */ i.jsx("div", { className: d(mn({ intent: e, withButton: s }), o == null ? void 0 : o.imgContainer), children: n }),
3716
3353
  /* @__PURE__ */ i.jsxs(
3717
3354
  "div",
3718
3355
  {
3719
- className: d("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", a == null ? void 0 : a.textWithBtnContainer),
3356
+ className: d("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", o == null ? void 0 : o.textWithBtnContainer),
3720
3357
  children: [
3721
- u && /* @__PURE__ */ i.jsx(K, { intent: e, title: o, mobileHidden: !0 }),
3722
- /* @__PURE__ */ i.jsx(Nn, { textContent: t, intent: e, withButton: l }),
3723
- l && /* @__PURE__ */ i.jsx(
3724
- Q,
3358
+ u && /* @__PURE__ */ i.jsx(U, { intent: e, title: a, mobileHidden: !0 }),
3359
+ /* @__PURE__ */ i.jsx(xn, { textContent: t, intent: e, withButton: s }),
3360
+ s && /* @__PURE__ */ i.jsx(
3361
+ he,
3725
3362
  {
3726
- className: d("w-full px-4 desktop:w-max", a == null ? void 0 : a.button),
3363
+ className: d("w-full px-4 desktop:w-max", o == null ? void 0 : o.button),
3727
3364
  size: "lg",
3728
3365
  onClick: r.onClick,
3729
3366
  intent: "secondary",
@@ -3739,55 +3376,52 @@ const Re = /* @__PURE__ */ xe(an), zn = {
3739
3376
  ] }) });
3740
3377
  };
3741
3378
  export {
3742
- qe as Advantages,
3743
- Kn as Badge,
3744
- Qn as Banner,
3745
- pe as BannerWithSeparateImg,
3746
- On as Breadcrumbs,
3747
- Q as Button,
3748
- Fn as ButtonIcon,
3749
- Yn as CustomLink,
3750
- Wn as Document,
3751
- $n as Footer,
3752
- L as Heading,
3753
- T as Icon,
3754
- $e as Loader,
3755
- Zn as LongBanner,
3756
- Sn as Notification,
3757
- Gn as PageHeader,
3758
- Me as PhoneView,
3759
- Ln as ProgressBar,
3760
- Y as ResponsiveContainer,
3761
- me as RgxCheckForHyphen,
3762
- tn as RgxPatronymic,
3763
- en as RgxUnicode,
3764
- Ie as Section,
3765
- Hn as Skeleton,
3766
- Xn as Stepper,
3767
- En as Table,
3768
- q as VALIDATION_MESSAGES,
3769
- $ as allowedBackgroundColors,
3770
- Fe as allowedBackgroundDeg,
3771
- Ee as allowedBannersBackgroundColors,
3772
- Oe as allowedBorderRadius,
3773
- Ye as allowedFontSize,
3379
+ An as Advantages,
3380
+ Xr as ApiError,
3381
+ Rn as Badge,
3382
+ gn as Breadcrumbs,
3383
+ he as Button,
3384
+ kn as ButtonIcon,
3385
+ vn as CustomLink,
3386
+ Dn as Document,
3387
+ On as Footer,
3388
+ xe as Heading,
3389
+ P as Icon,
3390
+ Bn as Loader,
3391
+ Ln as LongBanner,
3392
+ Fn as PageHeader,
3393
+ be as PhoneView,
3394
+ Tn as ProgressBar,
3395
+ $ as ResponsiveContainer,
3396
+ se as RgxCheckForHyphen,
3397
+ Xe as RgxPatronymic,
3398
+ Ge as RgxUnicode,
3399
+ pe as Section,
3400
+ Pn as Skeleton,
3401
+ Yn as Stepper,
3402
+ B as VALIDATION_MESSAGES,
3403
+ z as allowedBackgroundColors,
3404
+ _e as allowedBackgroundDeg,
3405
+ Ie as allowedBannersBackgroundColors,
3406
+ Me as allowedBorderRadius,
3407
+ Ee as allowedFontSize,
3774
3408
  E as allowedIconsColors,
3775
- We as allowedLineHeight,
3776
- G as allowedStrokeColors,
3777
- Ce as allowedTextColors,
3778
- Le as allowedTextStyles,
3779
- nn as allowedZIndex,
3780
- Mn as capitalize,
3409
+ Ce as allowedLineHeight,
3410
+ Q as allowedStrokeColors,
3411
+ je as allowedTextColors,
3412
+ Oe as allowedTextStyles,
3413
+ Vr as allowedZIndex,
3414
+ Cn as apiInstance,
3415
+ yn as capitalize,
3781
3416
  d as cn,
3782
- In as deepCompare,
3783
- qn as extendsPreset,
3784
- Cn as formatToDate,
3785
- rn as formattedDadataFio,
3786
- eo as isClient,
3787
- Vn as resetPreset,
3788
- zn as tailwindConfigBase,
3789
- An as zodCalendarValidate,
3790
- Bn as zodDadataFioSchema,
3791
- Rn as zodPhoneSchema
3417
+ Zr as defaultHeaders,
3418
+ _n as extendsPreset,
3419
+ Ze as formattedDadataFio,
3420
+ qn as isClient,
3421
+ En as resetPreset,
3422
+ Mn as tailwindConfigBase,
3423
+ jn as zodCalendarValidate,
3424
+ Nn as zodDadataFioSchema,
3425
+ In as zodPhoneSchema
3792
3426
  };
3793
3427
  //# sourceMappingURL=hybrid.js.map