stone-kit 0.0.1027 → 0.0.1028

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/dist/App.js +1 -1
  2. package/dist/{Menu-DKuZheFD.js → Menu-CdJTzN7T.js} +157 -176
  3. package/dist/{Option-DU8cvBnA.js → Option-rFBMQAPk.js} +1 -1
  4. package/dist/Router.js +1 -1
  5. package/dist/components/Button/ui/Button.d.ts +0 -1
  6. package/dist/components/Button/ui/Button.js +1 -1
  7. package/dist/components/Button/ui/Button.types.d.ts +0 -1
  8. package/dist/components/CheckBox/CheckBox.d.ts +0 -1
  9. package/dist/components/CheckBox/CheckBox.js +1 -1
  10. package/dist/components/CheckBox/CheckBox.types.d.ts +0 -2
  11. package/dist/components/CheckBoxNew/CheckBox.types.d.ts +0 -1
  12. package/dist/components/CheckBoxNew/CheckBoxNew.d.ts +0 -1
  13. package/dist/components/CheckBoxNew/CheckBoxNew.js +17 -17
  14. package/dist/components/CheckboxSelect/ui/CheckboxSelect.d.ts +0 -1
  15. package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +34 -34
  16. package/dist/components/CommercialLotCard/CommercialLotCard.d.ts +0 -1
  17. package/dist/components/CommercialLotCard/CommercialLotCard.js +50 -7
  18. package/dist/components/CommercialLotCard/components/Price/Price.d.ts +0 -1
  19. package/dist/components/CommercialLotCard/components/Price/Price.js +25 -26
  20. package/dist/components/CommercialLotCard/components/Snippets/Snippets.d.ts +0 -1
  21. package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +98 -27
  22. package/dist/components/CommercialLotCard/components/Tags/Tags.d.ts +0 -1
  23. package/dist/components/CommercialLotCard/components/Tags/Tags.js +17 -17
  24. package/dist/components/CommercialLotCard/types/CommercialLotCard.types.d.ts +0 -1
  25. package/dist/components/CommercialLotCard/types/LotCard.d.ts +0 -1
  26. package/dist/components/CommercialLotCard/utils/formatPrice.js +1 -2
  27. package/dist/components/CommercialLotCard/utils/getTagsFeatures.d.ts +1 -2
  28. package/dist/components/DestinationTab/ui/DestinationTab.d.ts +0 -1
  29. package/dist/components/DestinationTab/ui/DestinationTab.js +41 -41
  30. package/dist/components/DestinationTab/ui/DestinationTab.types.d.ts +0 -1
  31. package/dist/components/FieldInput/ui/FieldInput.d.ts +0 -1
  32. package/dist/components/FieldInput/ui/FieldInput.types.d.ts +0 -1
  33. package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +0 -1
  34. package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +54 -26
  35. package/dist/components/FilterWithSave/ui/FilterWithSave.d.ts +0 -1
  36. package/dist/components/FilterWithSave/ui/FilterWithSave.js +328 -7
  37. package/dist/components/Flex/ui/Flex.d.ts +0 -1
  38. package/dist/components/Flex/ui/Flex.js +1 -1
  39. package/dist/components/Flex/ui/Flex.types.d.ts +0 -1
  40. package/dist/components/FormModal/ui/ModalForm.js +1430 -28
  41. package/dist/components/GroupedInput/ui/GroupedInputs.d.ts +0 -1
  42. package/dist/components/GroupedInput/ui/GroupedInputs.js +1 -1
  43. package/dist/components/GroupedInput/ui/GroupedInputs.types.d.ts +0 -1
  44. package/dist/components/Input/ui/Input.d.ts +1 -2
  45. package/dist/components/Input/ui/Input.js +234 -304
  46. package/dist/components/Logo/ui/Logo.d.ts +0 -1
  47. package/dist/components/Logo/ui/Logo.js +6 -6
  48. package/dist/components/LotCard/hooks/useLotCard.d.ts +0 -1
  49. package/dist/components/LotCard/hooks/useLotCard.js +6 -24
  50. package/dist/components/LotCard/index.js +2 -2
  51. package/dist/components/LotCard/ui/LotCard.d.ts +0 -1
  52. package/dist/components/LotCard/ui/LotCard.js +213 -10
  53. package/dist/components/LotCard/ui/LotCard.types.d.ts +0 -1
  54. package/dist/components/LotCard/utils/formatPrice.js +1 -2
  55. package/dist/components/LotCard/utils/getTagsFeatures.d.ts +1 -2
  56. package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +1 -1
  57. package/dist/components/MetroLabel/ui/MetroLabel.d.ts +0 -1
  58. package/dist/components/MetroLabel/ui/MetroLabel.js +16 -16
  59. package/dist/components/MetroLabel/ui/MetroLabel.types.d.ts +0 -1
  60. package/dist/components/MetroTag/ui/MetroTag.d.ts +0 -1
  61. package/dist/components/MetroTag/ui/MetroTag.js +74 -74
  62. package/dist/components/MetroTag/ui/MetroTag.types.d.ts +0 -1
  63. package/dist/components/Modal/ui/Modal.d.ts +0 -1
  64. package/dist/components/Modal/ui/Modal.js +34 -37
  65. package/dist/components/Modal/ui/Modal.types.d.ts +0 -1
  66. package/dist/components/ModalSuccess/ModalSuccess.d.ts +0 -1
  67. package/dist/components/ModalSuccess/ModalSuccess.js +18 -19
  68. package/dist/components/ModalSuccess/ModalSuccess.types.d.ts +0 -1
  69. package/dist/components/NewIcon/icons/PinTrans.d.ts +0 -1
  70. package/dist/components/NewIcon/icons/SmallFilter.d.ts +0 -1
  71. package/dist/components/NewIcon/ui/NewIcon.d.ts +0 -1
  72. package/dist/components/NewIcon/ui/NewIcon.js +43 -33
  73. package/dist/components/NewIcon/ui/NewIcon.types.d.ts +0 -1
  74. package/dist/components/NewIcon/ui/iconTypes.d.ts +0 -1
  75. package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js +9 -11
  76. package/dist/components/RoundButton/ui/RoundButton.d.ts +0 -1
  77. package/dist/components/RoundButton/ui/RoundButton.js +2 -2
  78. package/dist/components/RoundButton/ui/RoundButton.types.d.ts +0 -1
  79. package/dist/components/Select/model/selectMode.d.ts +0 -1
  80. package/dist/components/Select/model/selectMode.js +30 -30
  81. package/dist/components/Select/ui/Category.d.ts +0 -1
  82. package/dist/components/Select/ui/Category.js +3 -3
  83. package/dist/components/Select/ui/Option.d.ts +0 -1
  84. package/dist/components/Select/ui/Option.js +2 -2
  85. package/dist/components/Select/ui/Select.d.ts +0 -1
  86. package/dist/components/Select/ui/Select.js +115 -115
  87. package/dist/components/SliderNavigation/index.d.ts +0 -1
  88. package/dist/components/SliderNavigation/ui/SliderNavigation.d.ts +0 -1
  89. package/dist/components/SliderNavigation/ui/SliderNavigation.js +6 -6
  90. package/dist/components/SortSelect/hooks/useSortSelect.d.ts +0 -1
  91. package/dist/components/SortSelect/hooks/useSortSelect.js +2 -2
  92. package/dist/components/SortSelect/index.js +1 -1
  93. package/dist/components/SortSelect/ui/SortSelect.d.ts +0 -1
  94. package/dist/components/SortSelect/ui/SortSelect.js +108 -26
  95. package/dist/components/SortSelect/ui/SortSelect.types.d.ts +0 -1
  96. package/dist/components/SummarySelect/ui/SummarySelect.d.ts +0 -1
  97. package/dist/components/SummarySelect/ui/SummarySelect.js +59 -65
  98. package/dist/components/Switcher/ui/Switcher.d.ts +0 -1
  99. package/dist/components/Switcher/ui/Switcher.js +1 -1
  100. package/dist/components/Switcher/ui/Switcher.types.d.ts +0 -1
  101. package/dist/components/TabSelect/ui/TabSelect.d.ts +0 -1
  102. package/dist/components/TabSelect/ui/TabSelect.js +5 -5
  103. package/dist/components/TabSwitcher/index.js +2 -2
  104. package/dist/components/TabSwitcher/ui/TabSwitcher.d.ts +0 -1
  105. package/dist/components/TabSwitcher/ui/TabSwitcher.js +118 -26
  106. package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +0 -1
  107. package/dist/components/Tag/ui/Tag.d.ts +0 -1
  108. package/dist/components/Tag/ui/Tag.js +91 -91
  109. package/dist/components/Tag/ui/Tag.types.d.ts +0 -1
  110. package/dist/components/Text/ui/Text.d.ts +0 -1
  111. package/dist/components/Text/ui/Text.js +1 -1
  112. package/dist/components/Text/ui/Text.types.d.ts +0 -1
  113. package/dist/components/TextArea/TextArea.js +1 -1
  114. package/dist/components/TextArea/TextArea.types.d.ts +0 -1
  115. package/dist/components/ZoomControls/ui/ZoomControls.d.ts +0 -1
  116. package/dist/components/ZoomControls/ui/ZoomControls.types.d.ts +0 -1
  117. package/dist/components/mobileButton/ui/MobileButton.d.ts +0 -1
  118. package/dist/components/mobileButton/ui/MobileButton.js +1 -1
  119. package/dist/components/mobileButton/ui/MobileButton.types.d.ts +0 -1
  120. package/dist/{index-DvCs2JPX.js → index-3E04UaC2.js} +9529 -9629
  121. package/dist/index-B2JRaoNz.js +48 -0
  122. package/dist/{index-DmANy9jd.js → index-CBdtKu-u.js} +272 -271
  123. package/dist/layout/Layout.d.ts +0 -1
  124. package/dist/layout/components/Header/Header.js +48 -71
  125. package/dist/layout/components/Menu.js +2 -24
  126. package/dist/main.js +70 -65
  127. package/dist/pages/ButtonsPage/ButtonState/ButtonState.d.ts +0 -1
  128. package/dist/pages/ButtonsPage/Buttons.js +21 -38
  129. package/dist/pages/FormsPage/FormsPage.js +26 -50
  130. package/dist/pages/IconsPage/IconsPage.js +9 -31
  131. package/dist/pages/InputPage/InputPage.js +10 -32
  132. package/dist/pages/LogoPage/LogoPage.js +13 -35
  133. package/dist/pages/LotsPage/LotsPage.js +18 -17
  134. package/dist/pages/LotsPage/const.d.ts +0 -1
  135. package/dist/pages/ModalsPage/ModalPage.js +46 -66
  136. package/dist/pages/SelectPage/SelectPage.js +58 -58
  137. package/dist/pages/TabsPage/TabsPage.js +19 -20
  138. package/dist/pages/TagsPage/TagsPage.js +23 -44
  139. package/dist/shared/checkLargeOffice.d.ts +0 -1
  140. package/dist/shared/checkLargeOffice.js +1 -1
  141. package/dist/shared/mlnRound.js +1 -2
  142. package/dist/stone-kit.css +1 -0
  143. package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +2 -2
  144. package/dist/stories/shared/ui/Button/Button.stories.js +5 -5
  145. package/dist/stories/shared/ui/CheckBox/CheckBox.stories.js +1 -1
  146. package/dist/stories/shared/ui/CheckBox/CheckBoxNew.stories.js +1 -1
  147. package/dist/stories/shared/ui/CheckboxSelect/CheckboxSelect.stories.js +1 -1
  148. package/dist/stories/shared/ui/DestinationTab/DestinationTab.stories.js +1 -1
  149. package/dist/stories/shared/ui/FieldInput/FieldInput.stories.js +1 -1
  150. package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +2 -2
  151. package/dist/stories/shared/ui/FormModal/FormModal.stories.js +8 -8
  152. package/dist/stories/shared/ui/GroupedInput/GroupedInput.stories.js +1 -1
  153. package/dist/stories/shared/ui/Logo/Logo.stories.js +1 -1
  154. package/dist/stories/shared/ui/MobileButton/MobileButton.stories.js +1 -1
  155. package/dist/stories/shared/ui/Modal/Modal.stories.js +1 -1
  156. package/dist/stories/shared/ui/ModalSuccess/ModalSuccess.stories.js +1 -1
  157. package/dist/stories/shared/ui/RoundButton/RoundButton.stories.js +1 -1
  158. package/dist/stories/shared/ui/Select/Select.stories.js +1 -1
  159. package/dist/stories/shared/ui/SliderNavigation/SliderNavigation.stories.js +1 -1
  160. package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +2 -2
  161. package/dist/stories/shared/ui/SummarySelect/SummarySelect.stories.js +1 -1
  162. package/dist/stories/shared/ui/Switcher/Switcher.stories.js +1 -1
  163. package/dist/stories/shared/ui/TabSelect/TabSelect.stories.js +1 -1
  164. package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +2 -2
  165. package/dist/stories/shared/ui/Tag/Tag.stories.js +4 -4
  166. package/dist/stories/shared/ui/ZoomControls/ZoomControls.stories.js +1 -1
  167. package/dist/useLotCard-DG9doKCX.js +186 -0
  168. package/dist/useSortSelect-C72ddcYI.js +80 -0
  169. package/package.json +1 -1
  170. package/dist/FilterWithSave-DkVYQ7W8.js +0 -2473
  171. package/dist/index-rKuIKazb.js +0 -45
  172. package/dist/style.css +0 -1
  173. package/dist/useSortSelect-CjZXLFOG.js +0 -80
@@ -1,21 +1,21 @@
1
- import { jsx as et, jsxs as Vt, Fragment as re } from "react/jsx-runtime";
2
- import J, { forwardRef as ne } from "react";
3
- import { g as ae, c as ue } from "../../../index-rKuIKazb.js";
4
- const oe = "_inputWrapper_1ln65_10", le = "_inputIMask_1ln65_37", he = "_inputWrapperPost_1ln65_41", pe = "_inputWrapperPre_1ln65_42", ce = "_light_1ln65_58", de = "_gray_1ln65_96", fe = "_dark_1ln65_128", _e = "_transparent_1ln65_169", me = "_inputWrapperError_1ln65_227", ge = "_inputWrapperErrorWithoutBorder_1ln65_241", ke = "_inputWrapperErrorDark_1ln65_252", ve = "_checkBox_1ln65_266", M = {
1
+ import { jsx as et, jsxs as Vt, Fragment as ne } from "react/jsx-runtime";
2
+ import J, { forwardRef as ae } from "react";
3
+ import { g as ue, c as oe } from "../../../index-B2JRaoNz.js";
4
+ const le = "_inputWrapper_1ln65_10", he = "_inputIMask_1ln65_37", pe = "_inputWrapperPost_1ln65_41", ce = "_inputWrapperPre_1ln65_42", de = "_light_1ln65_58", fe = "_gray_1ln65_96", _e = "_dark_1ln65_128", me = "_transparent_1ln65_169", ge = "_inputWrapperError_1ln65_227", ke = "_inputWrapperErrorWithoutBorder_1ln65_241", ve = "_inputWrapperErrorDark_1ln65_252", Ee = "_checkBox_1ln65_266", M = {
5
5
  "auto-width": "_auto-width_1ln65_1",
6
6
  "full-width": "_full-width_1ln65_6",
7
- inputWrapper: oe,
8
- inputIMask: le,
9
- inputWrapperPost: he,
10
- inputWrapperPre: pe,
11
- light: ce,
12
- gray: de,
13
- dark: fe,
14
- transparent: _e,
15
- inputWrapperError: me,
16
- inputWrapperErrorWithoutBorder: ge,
17
- inputWrapperErrorDark: ke,
18
- checkBox: ve,
7
+ inputWrapper: le,
8
+ inputIMask: he,
9
+ inputWrapperPost: pe,
10
+ inputWrapperPre: ce,
11
+ light: de,
12
+ gray: fe,
13
+ dark: _e,
14
+ transparent: me,
15
+ inputWrapperError: ge,
16
+ inputWrapperErrorWithoutBorder: ke,
17
+ inputWrapperErrorDark: ve,
18
+ checkBox: Ee,
19
19
  "tiny-size_s": "_tiny-size_s_1ln65_270",
20
20
  "small-size_s": "_small-size_s_1ln65_278",
21
21
  "medium-size_s": "_medium-size_s_1ln65_286",
@@ -36,8 +36,8 @@ function Pt(a) {
36
36
  var t;
37
37
  return typeof a == "object" && a != null && (a == null || (t = a.constructor) == null ? void 0 : t.name) === "Object";
38
38
  }
39
- function Kt(a, t) {
40
- return Array.isArray(t) ? Kt(a, (e, s) => t.includes(s)) : Object.entries(a).reduce((e, s) => {
39
+ function Gt(a, t) {
40
+ return Array.isArray(t) ? Gt(a, (e, s) => t.includes(s)) : Object.entries(a).reduce((e, s) => {
41
41
  let [i, r] = s;
42
42
  return t(r, i) && (e[i] = r), e;
43
43
  }, {});
@@ -49,7 +49,7 @@ const _ = {
49
49
  RIGHT: "RIGHT",
50
50
  FORCE_RIGHT: "FORCE_RIGHT"
51
51
  };
52
- function Ee(a) {
52
+ function ye(a) {
53
53
  switch (a) {
54
54
  case _.LEFT:
55
55
  return _.FORCE_LEFT;
@@ -59,48 +59,35 @@ function Ee(a) {
59
59
  return a;
60
60
  }
61
61
  }
62
- function At(a) {
62
+ function bt(a) {
63
63
  return a.replace(/([.*+?^=!:${}()|[\]/\\])/g, "\\$1");
64
64
  }
65
- function lt(a, t) {
66
- if (t === a)
67
- return !0;
65
+ function ht(a, t) {
66
+ if (t === a) return !0;
68
67
  const e = Array.isArray(t), s = Array.isArray(a);
69
68
  let i;
70
69
  if (e && s) {
71
- if (t.length != a.length)
72
- return !1;
73
- for (i = 0; i < t.length; i++)
74
- if (!lt(t[i], a[i]))
75
- return !1;
70
+ if (t.length != a.length) return !1;
71
+ for (i = 0; i < t.length; i++) if (!ht(t[i], a[i])) return !1;
76
72
  return !0;
77
73
  }
78
- if (e != s)
79
- return !1;
74
+ if (e != s) return !1;
80
75
  if (t && a && typeof t == "object" && typeof a == "object") {
81
76
  const r = t instanceof Date, n = a instanceof Date;
82
- if (r && n)
83
- return t.getTime() == a.getTime();
84
- if (r != n)
85
- return !1;
77
+ if (r && n) return t.getTime() == a.getTime();
78
+ if (r != n) return !1;
86
79
  const u = t instanceof RegExp, o = a instanceof RegExp;
87
- if (u && o)
88
- return t.toString() == a.toString();
89
- if (u != o)
90
- return !1;
80
+ if (u && o) return t.toString() == a.toString();
81
+ if (u != o) return !1;
91
82
  const h = Object.keys(t);
92
- for (i = 0; i < h.length; i++)
93
- if (!Object.prototype.hasOwnProperty.call(a, h[i]))
94
- return !1;
95
- for (i = 0; i < h.length; i++)
96
- if (!lt(a[h[i]], t[h[i]]))
97
- return !1;
83
+ for (i = 0; i < h.length; i++) if (!Object.prototype.hasOwnProperty.call(a, h[i])) return !1;
84
+ for (i = 0; i < h.length; i++) if (!ht(a[h[i]], t[h[i]])) return !1;
98
85
  return !0;
99
86
  } else if (t && a && typeof t == "function" && typeof a == "function")
100
87
  return t.toString() === a.toString();
101
88
  return !1;
102
89
  }
103
- class ye {
90
+ class Ce {
104
91
  /** Current input value */
105
92
  /** Current cursor position */
106
93
  /** Old input value */
@@ -150,19 +137,16 @@ class ye {
150
137
  function k(a, t) {
151
138
  return new k.InputMask(a, t);
152
139
  }
153
- function Gt(a) {
154
- if (a == null)
155
- throw new Error("mask property should be defined");
140
+ function Zt(a) {
141
+ if (a == null) throw new Error("mask property should be defined");
156
142
  return a instanceof RegExp ? k.MaskedRegExp : G(a) ? k.MaskedPattern : a === Date ? k.MaskedDate : a === Number ? k.MaskedNumber : Array.isArray(a) || a === Array ? k.MaskedDynamic : k.Masked && a.prototype instanceof k.Masked ? a : k.Masked && a instanceof k.Masked ? a.constructor : a instanceof Function ? k.MaskedFunction : (console.warn("Mask not found for mask", a), k.Masked);
157
143
  }
158
144
  function it(a) {
159
- if (!a)
160
- throw new Error("Options in not defined");
145
+ if (!a) throw new Error("Options in not defined");
161
146
  if (k.Masked) {
162
- if (a.prototype instanceof k.Masked)
163
- return {
164
- mask: a
165
- };
147
+ if (a.prototype instanceof k.Masked) return {
148
+ mask: a
149
+ };
166
150
  const {
167
151
  mask: t = void 0,
168
152
  ...e
@@ -172,7 +156,7 @@ function it(a) {
172
156
  if (t) {
173
157
  const s = t.mask;
174
158
  return {
175
- ...Kt(t, (i, r) => !r.startsWith("_")),
159
+ ...Gt(t, (i, r) => !r.startsWith("_")),
176
160
  mask: t.constructor,
177
161
  _mask: s,
178
162
  ...e
@@ -186,11 +170,9 @@ function it(a) {
186
170
  };
187
171
  }
188
172
  function K(a) {
189
- if (k.Masked && a instanceof k.Masked)
190
- return a;
191
- const t = it(a), e = Gt(t.mask);
192
- if (!e)
193
- throw new Error("Masked class is not found for provided mask " + t.mask + ", appropriate module needs to be imported manually before creating mask.");
173
+ if (k.Masked && a instanceof k.Masked) return a;
174
+ const t = it(a), e = Zt(t.mask);
175
+ if (!e) throw new Error("Masked class is not found for provided mask " + t.mask + ", appropriate module needs to be imported manually before creating mask.");
194
176
  return t.mask === e && delete t.mask, t._mask && (t.mask = t._mask, delete t._mask), new e(t);
195
177
  }
196
178
  k.createMask = K;
@@ -233,8 +215,8 @@ class Mt {
233
215
  /** */
234
216
  }
235
217
  k.MaskElement = Mt;
236
- const Lt = 90, Ce = 89;
237
- class pt extends Mt {
218
+ const Lt = 90, Ae = 89;
219
+ class ct extends Mt {
238
220
  /** HTMLElement to use mask on */
239
221
  constructor(t) {
240
222
  super(), this.input = t, this._onKeydown = this._onKeydown.bind(this), this._onInput = this._onInput.bind(this), this._onBeforeinput = this._onBeforeinput.bind(this), this._onCompositionEnd = this._onCompositionEnd.bind(this);
@@ -252,7 +234,7 @@ class pt extends Mt {
252
234
  this.input.addEventListener("keydown", this._onKeydown), this.input.addEventListener("input", this._onInput), this.input.addEventListener("beforeinput", this._onBeforeinput), this.input.addEventListener("compositionend", this._onCompositionEnd), this.input.addEventListener("drop", t.drop), this.input.addEventListener("click", t.click), this.input.addEventListener("focus", t.focus), this.input.addEventListener("blur", t.commit), this._handlers = t;
253
235
  }
254
236
  _onKeydown(t) {
255
- if (this._handlers.redo && (t.keyCode === Lt && t.shiftKey && (t.metaKey || t.ctrlKey) || t.keyCode === Ce && t.ctrlKey))
237
+ if (this._handlers.redo && (t.keyCode === Lt && t.shiftKey && (t.metaKey || t.ctrlKey) || t.keyCode === Ae && t.ctrlKey))
256
238
  return t.preventDefault(), this._handlers.redo(t);
257
239
  if (this._handlers.undo && t.keyCode === Lt && (t.metaKey || t.ctrlKey))
258
240
  return t.preventDefault(), this._handlers.undo(t);
@@ -275,8 +257,8 @@ class pt extends Mt {
275
257
  this.input.removeEventListener("keydown", this._onKeydown), this.input.removeEventListener("input", this._onInput), this.input.removeEventListener("beforeinput", this._onBeforeinput), this.input.removeEventListener("compositionend", this._onCompositionEnd), this.input.removeEventListener("drop", this._handlers.drop), this.input.removeEventListener("click", this._handlers.click), this.input.removeEventListener("focus", this._handlers.focus), this.input.removeEventListener("blur", this._handlers.commit), this._handlers = {};
276
258
  }
277
259
  }
278
- k.HTMLMaskElement = pt;
279
- class Ae extends pt {
260
+ k.HTMLMaskElement = ct;
261
+ class be extends ct {
280
262
  /** InputElement to use mask on */
281
263
  constructor(t) {
282
264
  super(t), this.input = t;
@@ -300,8 +282,8 @@ class Ae extends pt {
300
282
  this.input.value = t;
301
283
  }
302
284
  }
303
- k.HTMLMaskElement = pt;
304
- class Zt extends pt {
285
+ k.HTMLMaskElement = ct;
286
+ class Xt extends ct {
305
287
  /** Returns HTMLElement selection start */
306
288
  get _unsafeSelectionStart() {
307
289
  const t = this.rootElement, e = t.getSelection && t.getSelection(), s = e && e.anchorOffset, i = e && e.focusOffset;
@@ -314,8 +296,7 @@ class Zt extends pt {
314
296
  }
315
297
  /** Sets HTMLElement selection */
316
298
  _unsafeSelect(t, e) {
317
- if (!this.rootElement.createRange)
318
- return;
299
+ if (!this.rootElement.createRange) return;
319
300
  const s = this.rootElement.createRange();
320
301
  s.setStart(this.input.firstChild || this.input, t), s.setEnd(this.input.lastChild || this.input, e);
321
302
  const i = this.rootElement, r = i.getSelection && i.getSelection();
@@ -329,8 +310,8 @@ class Zt extends pt {
329
310
  this.input.textContent = t;
330
311
  }
331
312
  }
332
- k.HTMLContenteditableMaskElement = Zt;
333
- class ct {
313
+ k.HTMLContenteditableMaskElement = Xt;
314
+ class dt {
334
315
  constructor() {
335
316
  this.states = [], this.currentIndex = 0;
336
317
  }
@@ -341,7 +322,7 @@ class ct {
341
322
  return this.states.length === 0;
342
323
  }
343
324
  push(t) {
344
- this.currentIndex < this.states.length - 1 && (this.states.length = this.currentIndex + 1), this.states.push(t), this.states.length > ct.MAX_LENGTH && this.states.shift(), this.currentIndex = this.states.length - 1;
325
+ this.currentIndex < this.states.length - 1 && (this.states.length = this.currentIndex + 1), this.states.push(t), this.states.length > dt.MAX_LENGTH && this.states.shift(), this.currentIndex = this.states.length - 1;
345
326
  }
346
327
  go(t) {
347
328
  return this.currentIndex = Math.min(Math.max(this.currentIndex + t, 0), this.states.length - 1), this.currentState;
@@ -356,14 +337,14 @@ class ct {
356
337
  this.states.length = 0, this.currentIndex = 0;
357
338
  }
358
339
  }
359
- ct.MAX_LENGTH = 100;
360
- class be {
340
+ dt.MAX_LENGTH = 100;
341
+ class xe {
361
342
  /**
362
343
  View element
363
344
  */
364
345
  /** Internal {@link Masked} model */
365
346
  constructor(t, e) {
366
- this.el = t instanceof Mt ? t : t.isContentEditable && t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" ? new Zt(t) : new Ae(t), this.masked = K(e), this._listeners = {}, this._value = "", this._unmaskedValue = "", this._rawInputValue = "", this.history = new ct(), this._saveSelection = this._saveSelection.bind(this), this._onInput = this._onInput.bind(this), this._onChange = this._onChange.bind(this), this._onDrop = this._onDrop.bind(this), this._onFocus = this._onFocus.bind(this), this._onClick = this._onClick.bind(this), this._onUndo = this._onUndo.bind(this), this._onRedo = this._onRedo.bind(this), this.alignCursor = this.alignCursor.bind(this), this.alignCursorFriendly = this.alignCursorFriendly.bind(this), this._bindEvents(), this.updateValue(), this._onChange();
347
+ this.el = t instanceof Mt ? t : t.isContentEditable && t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" ? new Xt(t) : new be(t), this.masked = K(e), this._listeners = {}, this._value = "", this._unmaskedValue = "", this._rawInputValue = "", this.history = new dt(), this._saveSelection = this._saveSelection.bind(this), this._onInput = this._onInput.bind(this), this._onChange = this._onChange.bind(this), this._onDrop = this._onDrop.bind(this), this._onFocus = this._onFocus.bind(this), this._onClick = this._onClick.bind(this), this._onUndo = this._onUndo.bind(this), this._onRedo = this._onRedo.bind(this), this.alignCursor = this.alignCursor.bind(this), this.alignCursorFriendly = this.alignCursorFriendly.bind(this), this._bindEvents(), this.updateValue(), this._onChange();
367
348
  }
368
349
  maskEquals(t) {
369
350
  var e;
@@ -374,9 +355,8 @@ class be {
374
355
  return this.masked.mask;
375
356
  }
376
357
  set mask(t) {
377
- if (this.maskEquals(t))
378
- return;
379
- if (!(t instanceof k.Masked) && this.masked.constructor === Gt(t)) {
358
+ if (this.maskEquals(t)) return;
359
+ if (!(t instanceof k.Masked) && this.masked.constructor === Zt(t)) {
380
360
  this.masked.updateOptions({
381
361
  mask: t
382
362
  });
@@ -514,8 +494,7 @@ class be {
514
494
  }
515
495
  /** Removes custom event listener */
516
496
  off(t, e) {
517
- if (!this._listeners[t])
518
- return this;
497
+ if (!this._listeners[t]) return this;
519
498
  if (!e)
520
499
  return delete this._listeners[t], this;
521
500
  const s = this._listeners[t].indexOf(e);
@@ -524,7 +503,7 @@ class be {
524
503
  /** Handles view input event */
525
504
  _onInput(t) {
526
505
  this._inputEvent = t, this._abortUpdateCursor();
527
- const e = new ye({
506
+ const e = new Ce({
528
507
  // new state
529
508
  value: this.el.value,
530
509
  cursorPos: this.cursorPos,
@@ -568,7 +547,7 @@ class be {
568
547
  this._unbindEvents(), this._listeners.length = 0, delete this.el;
569
548
  }
570
549
  }
571
- k.InputMask = be;
550
+ k.InputMask = xe;
572
551
  class E {
573
552
  /** Inserted symbols */
574
553
  /** Additional offset if any changes occurred before tail */
@@ -630,14 +609,12 @@ class Y {
630
609
  Object.assign(this, t);
631
610
  }
632
611
  unshift(t) {
633
- if (!this.value.length || t != null && this.from >= t)
634
- return "";
612
+ if (!this.value.length || t != null && this.from >= t) return "";
635
613
  const e = this.value[0];
636
614
  return this.value = this.value.slice(1), e;
637
615
  }
638
616
  shift() {
639
- if (!this.value.length)
640
- return "";
617
+ if (!this.value.length) return "";
641
618
  const t = this.value[this.value.length - 1];
642
619
  return this.value = this.value.slice(0, -1), t;
643
620
  }
@@ -800,16 +777,14 @@ class L {
800
777
  }
801
778
  /** Appends symbols considering flags */
802
779
  append(t, e, s) {
803
- if (!G(t))
804
- throw new Error("value should be string");
780
+ if (!G(t)) throw new Error("value should be string");
805
781
  const i = G(s) ? new Y(String(s)) : s;
806
782
  e != null && e.tail && (e._beforeTailState = this.state);
807
783
  let r;
808
784
  [t, r] = this.doPrepare(t, e);
809
785
  for (let n = 0; n < t.length; ++n) {
810
786
  const u = this._appendChar(t[n], e, i);
811
- if (!u.rawInserted && !this.doSkipInvalid(t[n], e, i))
812
- break;
787
+ if (!u.rawInserted && !this.doSkipInvalid(t[n], e, i)) break;
813
788
  r.aggregate(u);
814
789
  }
815
790
  return (this.eager === !0 || this.eager === "append") && e != null && e.input && t && r.aggregate(this._appendEager()), i != null && (r.tailShift += this.appendTail(i).tailShift), r;
@@ -819,15 +794,13 @@ class L {
819
794
  }
820
795
  /** Calls function and reapplies current value */
821
796
  withValueRefresh(t) {
822
- if (this._refreshing || !this._initialized)
823
- return t();
797
+ if (this._refreshing || !this._initialized) return t();
824
798
  this._refreshing = !0;
825
799
  const e = this.rawInputValue, s = this.value, i = t();
826
800
  return this.rawInputValue = e, this.value && this.value !== s && s.indexOf(this.value) === 0 && (this.append(s.slice(this.displayValue.length), {}, ""), this.doCommit()), delete this._refreshing, i;
827
801
  }
828
802
  runIsolated(t) {
829
- if (this._isolated || !this._initialized)
830
- return t(this);
803
+ if (this._isolated || !this._initialized) return t(this);
831
804
  this._isolated = !0;
832
805
  const e = this.state, s = t(this);
833
806
  return this.state = e, delete this._isolated, s;
@@ -857,7 +830,7 @@ class L {
857
830
  });
858
831
  const n = t + e, u = this.extractTail(n), o = this.eager === !0 || this.eager === "remove";
859
832
  let h;
860
- o && (i = Ee(i), h = this.extractInput(0, n, {
833
+ o && (i = ye(i), h = this.extractInput(0, n, {
861
834
  raw: !0
862
835
  }));
863
836
  let m = t;
@@ -869,15 +842,14 @@ class L {
869
842
  g.aggregate(new E({
870
843
  tailShift: -1
871
844
  })).aggregate(this.remove(y - 1));
872
- } else
873
- i === _.FORCE_RIGHT && u.unshift();
845
+ } else i === _.FORCE_RIGHT && u.unshift();
874
846
  return g.aggregate(this.append(s, r, u));
875
847
  }
876
848
  maskEquals(t) {
877
849
  return this.mask === t;
878
850
  }
879
851
  optionsIsChanged(t) {
880
- return !lt(this, t);
852
+ return !ht(this, t);
881
853
  }
882
854
  typedValueEquals(t) {
883
855
  const e = this.typedValue;
@@ -901,8 +873,7 @@ class Q {
901
873
  return this.chunks.map(String).join("");
902
874
  }
903
875
  extend(t) {
904
- if (!String(t))
905
- return;
876
+ if (!String(t)) return;
906
877
  t = G(t) ? new Y(String(t)) : t;
907
878
  const e = this.chunks[this.chunks.length - 1], s = e && // if stops are same or tail has no stop
908
879
  (e.stop === t.stop || t.stop == null) && // if tail chunk goes just after last chunk
@@ -960,42 +931,36 @@ class Q {
960
931
  });
961
932
  }
962
933
  unshift(t) {
963
- if (!this.chunks.length || t != null && this.from >= t)
964
- return "";
934
+ if (!this.chunks.length || t != null && this.from >= t) return "";
965
935
  const e = t != null ? t - this.from : t;
966
936
  let s = 0;
967
937
  for (; s < this.chunks.length; ) {
968
938
  const i = this.chunks[s], r = i.unshift(e);
969
939
  if (i.toString()) {
970
- if (!r)
971
- break;
940
+ if (!r) break;
972
941
  ++s;
973
942
  } else
974
943
  this.chunks.splice(s, 1);
975
- if (r)
976
- return r;
944
+ if (r) return r;
977
945
  }
978
946
  return "";
979
947
  }
980
948
  shift() {
981
- if (!this.chunks.length)
982
- return "";
949
+ if (!this.chunks.length) return "";
983
950
  let t = this.chunks.length - 1;
984
951
  for (; 0 <= t; ) {
985
952
  const e = this.chunks[t], s = e.shift();
986
953
  if (e.toString()) {
987
- if (!s)
988
- break;
954
+ if (!s) break;
989
955
  --t;
990
956
  } else
991
957
  this.chunks.splice(t, 1);
992
- if (s)
993
- return s;
958
+ if (s) return s;
994
959
  }
995
960
  return "";
996
961
  }
997
962
  }
998
- class xe {
963
+ class Fe {
999
964
  constructor(t, e) {
1000
965
  this.masked = t, this._log = [];
1001
966
  const {
@@ -1045,15 +1010,13 @@ class xe {
1045
1010
  _pushLeft(t) {
1046
1011
  for (this.pushState(), this.bindBlock(); 0 <= this.index; --this.index, this.offset = ((e = this.block) == null ? void 0 : e.displayValue.length) || 0) {
1047
1012
  var e;
1048
- if (t())
1049
- return this.ok = !0;
1013
+ if (t()) return this.ok = !0;
1050
1014
  }
1051
1015
  return this.ok = !1;
1052
1016
  }
1053
1017
  _pushRight(t) {
1054
1018
  for (this.pushState(), this.bindBlock(); this.index < this.masked._blocks.length; ++this.index, this.offset = 0)
1055
- if (t())
1056
- return this.ok = !0;
1019
+ if (t()) return this.ok = !0;
1057
1020
  return this.ok = !1;
1058
1021
  }
1059
1022
  pushLeftBeforeFilled() {
@@ -1093,7 +1056,7 @@ class xe {
1093
1056
  });
1094
1057
  }
1095
1058
  }
1096
- class Xt {
1059
+ class Jt {
1097
1060
  /** */
1098
1061
  /** */
1099
1062
  /** */
@@ -1148,8 +1111,7 @@ class Xt {
1148
1111
  return !!this._value;
1149
1112
  }
1150
1113
  _appendChar(t, e) {
1151
- if (e === void 0 && (e = {}), this.isFilled)
1152
- return new E();
1114
+ if (e === void 0 && (e = {}), this.isFilled) return new E();
1153
1115
  const s = this.eager === !0 || this.eager === "append", r = this.char === t && (this.isUnmasking || e.input || e.raw) && (!e.raw || !s) && !e.tail, n = new E({
1154
1116
  inserted: this.char,
1155
1117
  rawInserted: r ? this.char : ""
@@ -1190,7 +1152,7 @@ class Xt {
1190
1152
  return this._appendPlaceholder();
1191
1153
  }
1192
1154
  }
1193
- class ht {
1155
+ class pt {
1194
1156
  /** */
1195
1157
  /** */
1196
1158
  /** */
@@ -1240,8 +1202,7 @@ class ht {
1240
1202
  return !!this.masked.value || this.isOptional;
1241
1203
  }
1242
1204
  _appendChar(t, e) {
1243
- if (e === void 0 && (e = {}), this.isFilled)
1244
- return new E();
1205
+ if (e === void 0 && (e = {}), this.isFilled) return new E();
1245
1206
  const s = this.masked.state;
1246
1207
  let i = this.masked._appendChar(t, this.currentMaskFlags(e));
1247
1208
  return i.inserted && this.doValidate(e) === !1 && (i = new E(), this.masked.state = s), !i.inserted && !this.isOptional && !this.lazy && !e.input && (i.inserted = this.placeholderChar), i.skip = !i.inserted && !this.isOptional, this.isFilled = !!i.inserted, i;
@@ -1305,20 +1266,20 @@ class ht {
1305
1266
  var e;
1306
1267
  return {
1307
1268
  ...t,
1308
- _beforeTailState: (t == null || (e = t._beforeTailState) == null ? void 0 : e.masked) || (t == null ? void 0 : t._beforeTailState)
1269
+ _beforeTailState: (t == null || (e = t._beforeTailState) == null ? void 0 : e.masked) || t?._beforeTailState
1309
1270
  };
1310
1271
  }
1311
1272
  pad(t) {
1312
1273
  return new E();
1313
1274
  }
1314
1275
  }
1315
- ht.DEFAULT_DEFINITIONS = {
1276
+ pt.DEFAULT_DEFINITIONS = {
1316
1277
  0: /\d/,
1317
1278
  a: /[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,
1318
1279
  // http://stackoverflow.com/a/22075070
1319
1280
  "*": /./
1320
1281
  };
1321
- class Fe extends L {
1282
+ class Se extends L {
1322
1283
  /** */
1323
1284
  /** Enable characters overwriting */
1324
1285
  /** */
@@ -1332,7 +1293,7 @@ class Fe extends L {
1332
1293
  e && (t.validate = (s) => s.search(e) >= 0), super._update(t);
1333
1294
  }
1334
1295
  }
1335
- k.MaskedRegExp = Fe;
1296
+ k.MaskedRegExp = Se;
1336
1297
  class N extends L {
1337
1298
  /** */
1338
1299
  /** */
@@ -1347,7 +1308,7 @@ class N extends L {
1347
1308
  super({
1348
1309
  ...N.DEFAULTS,
1349
1310
  ...t,
1350
- definitions: Object.assign({}, ht.DEFAULT_DEFINITIONS, t == null ? void 0 : t.definitions)
1311
+ definitions: Object.assign({}, pt.DEFAULT_DEFINITIONS, t?.definitions)
1351
1312
  });
1352
1313
  }
1353
1314
  updateOptions(t) {
@@ -1360,8 +1321,7 @@ class N extends L {
1360
1321
  const t = this.definitions;
1361
1322
  this._blocks = [], this.exposeBlock = void 0, this._stops = [], this._maskedBlocks = {};
1362
1323
  const e = this.mask;
1363
- if (!e || !t)
1364
- return;
1324
+ if (!e || !t) return;
1365
1325
  let s = !1, i = !1;
1366
1326
  for (let r = 0; r < e.length; ++r) {
1367
1327
  if (this.blocks) {
@@ -1405,11 +1365,10 @@ class N extends L {
1405
1365
  continue;
1406
1366
  }
1407
1367
  if (n === N.ESCAPE_CHAR) {
1408
- if (++r, n = e[r], !n)
1409
- break;
1368
+ if (++r, n = e[r], !n) break;
1410
1369
  u = !1;
1411
1370
  }
1412
- const o = u ? new ht({
1371
+ const o = u ? new pt({
1413
1372
  isOptional: i,
1414
1373
  lazy: this.lazy,
1415
1374
  eager: this.eager,
@@ -1417,7 +1376,7 @@ class N extends L {
1417
1376
  displayChar: this.displayChar,
1418
1377
  ...it(t[n]),
1419
1378
  parent: this
1420
- }) : new Xt({
1379
+ }) : new Jt({
1421
1380
  char: n,
1422
1381
  eager: this.eager,
1423
1382
  isUnmasking: s
@@ -1467,8 +1426,7 @@ class N extends L {
1467
1426
  if (this.exposeBlock) {
1468
1427
  const e = this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock)) + this.exposeBlock.displayValue.length);
1469
1428
  this.exposeBlock.unmaskedValue = t, this.appendTail(e), this.doCommit();
1470
- } else
1471
- super.unmaskedValue = t;
1429
+ } else super.unmaskedValue = t;
1472
1430
  }
1473
1431
  get value() {
1474
1432
  return this.exposeBlock ? this.exposeBlock.value : (
@@ -1480,8 +1438,7 @@ class N extends L {
1480
1438
  if (this.exposeBlock) {
1481
1439
  const e = this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock)) + this.exposeBlock.displayValue.length);
1482
1440
  this.exposeBlock.value = t, this.appendTail(e), this.doCommit();
1483
- } else
1484
- super.value = t;
1441
+ } else super.value = t;
1485
1442
  }
1486
1443
  get typedValue() {
1487
1444
  return this.exposeBlock ? this.exposeBlock.typedValue : super.typedValue;
@@ -1490,8 +1447,7 @@ class N extends L {
1490
1447
  if (this.exposeBlock) {
1491
1448
  const e = this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock)) + this.exposeBlock.displayValue.length);
1492
1449
  this.exposeBlock.typedValue = t, this.appendTail(e), this.doCommit();
1493
- } else
1494
- super.typedValue = t;
1450
+ } else super.typedValue = t;
1495
1451
  }
1496
1452
  get displayValue() {
1497
1453
  return this._blocks.reduce((t, e) => t += e.displayValue, "");
@@ -1503,13 +1459,11 @@ class N extends L {
1503
1459
  var t;
1504
1460
  const e = new E();
1505
1461
  let s = (t = this._mapPosToBlock(this.displayValue.length)) == null ? void 0 : t.index;
1506
- if (s == null)
1507
- return e;
1462
+ if (s == null) return e;
1508
1463
  this._blocks[s].isFilled && ++s;
1509
1464
  for (let i = s; i < this._blocks.length; ++i) {
1510
1465
  const r = this._blocks[i]._appendEager();
1511
- if (!r.inserted)
1512
- break;
1466
+ if (!r.inserted) break;
1513
1467
  e.aggregate(r);
1514
1468
  }
1515
1469
  return e;
@@ -1517,16 +1471,14 @@ class N extends L {
1517
1471
  _appendCharRaw(t, e) {
1518
1472
  e === void 0 && (e = {});
1519
1473
  const s = this._mapPosToBlock(this.displayValue.length), i = new E();
1520
- if (!s)
1521
- return i;
1474
+ if (!s) return i;
1522
1475
  for (let n = s.index, u; u = this._blocks[n]; ++n) {
1523
1476
  var r;
1524
1477
  const o = u._appendChar(t, {
1525
1478
  ...e,
1526
1479
  _beforeTailState: (r = e._beforeTailState) == null || (r = r._blocks) == null ? void 0 : r[n]
1527
1480
  });
1528
- if (i.aggregate(o), o.consumed)
1529
- break;
1481
+ if (i.aggregate(o), o.consumed) break;
1530
1482
  }
1531
1483
  return i;
1532
1484
  }
@@ -1539,8 +1491,7 @@ class N extends L {
1539
1491
  }), s;
1540
1492
  }
1541
1493
  extractInput(t, e, s) {
1542
- if (t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), s === void 0 && (s = {}), t === e)
1543
- return "";
1494
+ if (t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), s === void 0 && (s = {}), t === e) return "";
1544
1495
  let i = "";
1545
1496
  return this._forEachBlocksInRange(t, e, (r, n, u, o) => {
1546
1497
  i += r.extractInput(u, o, s);
@@ -1550,21 +1501,17 @@ class N extends L {
1550
1501
  let e;
1551
1502
  for (let s = 0; s < this._stops.length; ++s) {
1552
1503
  const i = this._stops[s];
1553
- if (i <= t)
1554
- e = i;
1555
- else
1556
- break;
1504
+ if (i <= t) e = i;
1505
+ else break;
1557
1506
  }
1558
1507
  return e;
1559
1508
  }
1560
1509
  /** Appends placeholder depending on laziness */
1561
1510
  _appendPlaceholder(t) {
1562
1511
  const e = new E();
1563
- if (this.lazy && t == null)
1564
- return e;
1512
+ if (this.lazy && t == null) return e;
1565
1513
  const s = this._mapPosToBlock(this.displayValue.length);
1566
- if (!s)
1567
- return e;
1514
+ if (!s) return e;
1568
1515
  const i = s.index, r = t ?? this._blocks.length;
1569
1516
  return this._blocks.slice(i, r).forEach((n) => {
1570
1517
  if (!n.lazy || t != null) {
@@ -1608,20 +1555,17 @@ class N extends L {
1608
1555
  }), s;
1609
1556
  }
1610
1557
  nearestInputPos(t, e) {
1611
- if (e === void 0 && (e = _.NONE), !this._blocks.length)
1612
- return 0;
1613
- const s = new xe(this, t);
1558
+ if (e === void 0 && (e = _.NONE), !this._blocks.length) return 0;
1559
+ const s = new Fe(this, t);
1614
1560
  if (e === _.NONE)
1615
1561
  return s.pushRightBeforeInput() || (s.popState(), s.pushLeftBeforeInput()) ? s.pos : this.displayValue.length;
1616
1562
  if (e === _.LEFT || e === _.FORCE_LEFT) {
1617
1563
  if (e === _.LEFT) {
1618
- if (s.pushRightBeforeFilled(), s.ok && s.pos === t)
1619
- return t;
1564
+ if (s.pushRightBeforeFilled(), s.ok && s.pos === t) return t;
1620
1565
  s.popState();
1621
1566
  }
1622
1567
  if (s.pushLeftBeforeInput(), s.pushLeftBeforeRequired(), s.pushLeftBeforeFilled(), e === _.LEFT) {
1623
- if (s.pushRightBeforeInput(), s.pushRightBeforeRequired(), s.ok && s.pos <= t || (s.popState(), s.ok && s.pos <= t))
1624
- return s.pos;
1568
+ if (s.pushRightBeforeInput(), s.pushRightBeforeRequired(), s.ok && s.pos <= t || (s.popState(), s.ok && s.pos <= t)) return s.pos;
1625
1569
  s.popState();
1626
1570
  }
1627
1571
  return s.ok ? s.pos : e === _.FORCE_LEFT ? 0 : (s.popState(), s.ok || (s.popState(), s.ok) ? s.pos : 0);
@@ -1656,10 +1600,10 @@ N.DEFAULTS = {
1656
1600
  };
1657
1601
  N.STOP_CHAR = "`";
1658
1602
  N.ESCAPE_CHAR = "\\";
1659
- N.InputDefinition = ht;
1660
- N.FixedDefinition = Xt;
1603
+ N.InputDefinition = pt;
1604
+ N.FixedDefinition = Jt;
1661
1605
  k.MaskedPattern = N;
1662
- class ot extends N {
1606
+ class lt extends N {
1663
1607
  /**
1664
1608
  Optionally sets max length of pattern.
1665
1609
  Used when pattern length is longer then `to` param length. Pads zeros at start in this case.
@@ -1686,8 +1630,7 @@ class ot extends N {
1686
1630
  this.to = e, this.from = s, this.maxLength = Math.max(String(e).length, i), this.autofix = r;
1687
1631
  const u = String(this.from).padStart(this.maxLength, "0"), o = String(this.to).padStart(this.maxLength, "0");
1688
1632
  let h = 0;
1689
- for (; h < o.length && o[h] === u[h]; )
1690
- ++h;
1633
+ for (; h < o.length && o[h] === u[h]; ) ++h;
1691
1634
  n.mask = o.slice(0, h).replace(/0/g, "\\0") + "0".repeat(this.maxLength - h), super._update(n);
1692
1635
  }
1693
1636
  get isComplete() {
@@ -1704,22 +1647,19 @@ class ot extends N {
1704
1647
  return [t, s] = super.doPrepareChar(t.replace(/\D/g, ""), e), t || (s.skip = !this.isComplete), [t, s];
1705
1648
  }
1706
1649
  _appendCharRaw(t, e) {
1707
- if (e === void 0 && (e = {}), !this.autofix || this.value.length + 1 > this.maxLength)
1708
- return super._appendCharRaw(t, e);
1650
+ if (e === void 0 && (e = {}), !this.autofix || this.value.length + 1 > this.maxLength) return super._appendCharRaw(t, e);
1709
1651
  const s = String(this.from).padStart(this.maxLength, "0"), i = String(this.to).padStart(this.maxLength, "0"), [r, n] = this.boundaries(this.value + t);
1710
1652
  return Number(n) < this.from ? super._appendCharRaw(s[this.value.length], e) : Number(r) > this.to ? !e.tail && this.autofix === "pad" && this.value.length + 1 < this.maxLength ? super._appendCharRaw(s[this.value.length], e).aggregate(this._appendCharRaw(t, e)) : super._appendCharRaw(i[this.value.length], e) : super._appendCharRaw(t, e);
1711
1653
  }
1712
1654
  doValidate(t) {
1713
1655
  const e = this.value;
1714
- if (e.search(/[^0]/) === -1 && e.length <= this._matchFrom)
1715
- return !0;
1656
+ if (e.search(/[^0]/) === -1 && e.length <= this._matchFrom) return !0;
1716
1657
  const [i, r] = this.boundaries(e);
1717
1658
  return this.from <= Number(r) && Number(i) <= this.to && super.doValidate(t);
1718
1659
  }
1719
1660
  pad(t) {
1720
1661
  const e = new E();
1721
- if (this.value.length === this.maxLength)
1722
- return e;
1662
+ if (this.value.length === this.maxLength) return e;
1723
1663
  const s = this.value, i = this.maxLength - this.value.length;
1724
1664
  if (i) {
1725
1665
  this.reset();
@@ -1730,8 +1670,8 @@ class ot extends N {
1730
1670
  return e;
1731
1671
  }
1732
1672
  }
1733
- k.MaskedRange = ot;
1734
- const Se = "d{.}`m{.}`Y";
1673
+ k.MaskedRange = lt;
1674
+ const Te = "d{.}`m{.}`Y";
1735
1675
  class H extends N {
1736
1676
  static extractPatternOptions(t) {
1737
1677
  const {
@@ -1804,19 +1744,19 @@ class H extends N {
1804
1744
  }
1805
1745
  H.GET_DEFAULT_BLOCKS = () => ({
1806
1746
  d: {
1807
- mask: ot,
1747
+ mask: lt,
1808
1748
  from: 1,
1809
1749
  to: 31,
1810
1750
  maxLength: 2
1811
1751
  },
1812
1752
  m: {
1813
- mask: ot,
1753
+ mask: lt,
1814
1754
  from: 1,
1815
1755
  to: 12,
1816
1756
  maxLength: 2
1817
1757
  },
1818
1758
  Y: {
1819
- mask: ot,
1759
+ mask: lt,
1820
1760
  from: 1900,
1821
1761
  to: 9999
1822
1762
  }
@@ -1824,10 +1764,9 @@ H.GET_DEFAULT_BLOCKS = () => ({
1824
1764
  H.DEFAULTS = {
1825
1765
  ...N.DEFAULTS,
1826
1766
  mask: Date,
1827
- pattern: Se,
1767
+ pattern: Te,
1828
1768
  format: (a, t) => {
1829
- if (!a)
1830
- return "";
1769
+ if (!a) return "";
1831
1770
  const e = String(a.getDate()).padStart(2, "0"), s = String(a.getMonth() + 1).padStart(2, "0"), i = a.getFullYear();
1832
1771
  return [e, s, i].join(".");
1833
1772
  },
@@ -1837,10 +1776,10 @@ H.DEFAULTS = {
1837
1776
  }
1838
1777
  };
1839
1778
  k.MaskedDate = H;
1840
- class dt extends L {
1779
+ class ft extends L {
1841
1780
  constructor(t) {
1842
1781
  super({
1843
- ...dt.DEFAULTS,
1782
+ ...ft.DEFAULTS,
1844
1783
  ...t
1845
1784
  }), this.currentMask = void 0;
1846
1785
  }
@@ -1868,7 +1807,7 @@ class dt extends L {
1868
1807
  }
1869
1808
  _applyDispatch(t, e, s) {
1870
1809
  t === void 0 && (t = ""), e === void 0 && (e = {}), s === void 0 && (s = "");
1871
- const i = e.tail && e._beforeTailState != null ? e._beforeTailState._value : this.value, r = this.rawInputValue, n = e.tail && e._beforeTailState != null ? e._beforeTailState._rawInputValue : r, u = r.slice(n.length), o = this.currentMask, h = new E(), m = o == null ? void 0 : o.state;
1810
+ const i = e.tail && e._beforeTailState != null ? e._beforeTailState._value : this.value, r = this.rawInputValue, n = e.tail && e._beforeTailState != null ? e._beforeTailState._rawInputValue : r, u = r.slice(n.length), o = this.currentMask, h = new E(), m = o?.state;
1872
1811
  return this.currentMask = this.doDispatch(t, {
1873
1812
  ...e
1874
1813
  }, s), this.currentMask && (this.currentMask !== o ? (this.currentMask.reset(), n && (this.currentMask.append(n, {
@@ -2020,13 +1959,12 @@ class dt extends L {
2020
1959
  }
2021
1960
  maskEquals(t) {
2022
1961
  return Array.isArray(t) ? this.compiledMasks.every((e, s) => {
2023
- if (!t[s])
2024
- return;
1962
+ if (!t[s]) return;
2025
1963
  const {
2026
1964
  mask: i,
2027
1965
  ...r
2028
1966
  } = t[s];
2029
- return lt(e, r) && e.maskEquals(i);
1967
+ return ht(e, r) && e.maskEquals(i);
2030
1968
  }) : super.maskEquals(t);
2031
1969
  }
2032
1970
  typedValueEquals(t) {
@@ -2034,11 +1972,10 @@ class dt extends L {
2034
1972
  return !!((e = this.currentMask) != null && e.typedValueEquals(t));
2035
1973
  }
2036
1974
  }
2037
- dt.DEFAULTS = {
1975
+ ft.DEFAULTS = {
2038
1976
  ...L.DEFAULTS,
2039
1977
  dispatch: (a, t, e, s) => {
2040
- if (!t.compiledMasks.length)
2041
- return;
1978
+ if (!t.compiledMasks.length) return;
2042
1979
  const i = t.rawInputValue, r = t.compiledMasks.map((n, u) => {
2043
1980
  const o = t.currentMask === n, h = o ? n.displayValue.length : n.nearestInputPos(n.displayValue.length, _.FORCE_LEFT);
2044
1981
  return n.rawInputValue !== i ? (n.reset(), n.append(i, {
@@ -2052,11 +1989,11 @@ dt.DEFAULTS = {
2052
1989
  return r.sort((n, u) => u.weight - n.weight || u.totalInputPositions - n.totalInputPositions), t.compiledMasks[r[0].index];
2053
1990
  }
2054
1991
  };
2055
- k.MaskedDynamic = dt;
2056
- class ft extends N {
1992
+ k.MaskedDynamic = ft;
1993
+ class _t extends N {
2057
1994
  constructor(t) {
2058
1995
  super({
2059
- ...ft.DEFAULTS,
1996
+ ..._t.DEFAULTS,
2060
1997
  ...t
2061
1998
  });
2062
1999
  }
@@ -2093,8 +2030,7 @@ class ft extends N {
2093
2030
  return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), new Y("", t);
2094
2031
  }
2095
2032
  remove(t, e) {
2096
- if (t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), t === e)
2097
- return new E();
2033
+ if (t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), t === e) return new E();
2098
2034
  const s = Math.min(super.nearestInputPos(0, _.FORCE_RIGHT), this.value.length);
2099
2035
  let i;
2100
2036
  for (i = t; i >= 0 && !(this.enum.filter((u) => this.matchValue(u, this.value.slice(s, i), s)).length > 1); --i)
@@ -2106,12 +2042,12 @@ class ft extends N {
2106
2042
  return this.enum.indexOf(this.value) >= 0;
2107
2043
  }
2108
2044
  }
2109
- ft.DEFAULTS = {
2045
+ _t.DEFAULTS = {
2110
2046
  ...N.DEFAULTS,
2111
2047
  matchValue: (a, t, e) => a.indexOf(t, e) === e
2112
2048
  };
2113
- k.MaskedEnum = ft;
2114
- class Te extends L {
2049
+ k.MaskedEnum = _t;
2050
+ class Ie extends L {
2115
2051
  /** */
2116
2052
  /** Enable characters overwriting */
2117
2053
  /** */
@@ -2127,8 +2063,8 @@ class Te extends L {
2127
2063
  });
2128
2064
  }
2129
2065
  }
2130
- k.MaskedFunction = Te;
2131
- var Jt;
2066
+ k.MaskedFunction = Ie;
2067
+ var Qt;
2132
2068
  class z extends L {
2133
2069
  /** Single char */
2134
2070
  /** Single char */
@@ -2157,8 +2093,8 @@ class z extends L {
2157
2093
  super._update(t), this._updateRegExps();
2158
2094
  }
2159
2095
  _updateRegExps() {
2160
- const t = "^" + (this.allowNegative ? "[+|\\-]?" : ""), e = "\\d*", s = (this.scale ? "(" + At(this.radix) + "\\d{0," + this.scale + "})?" : "") + "$";
2161
- this._numberRegExp = new RegExp(t + e + s), this._mapToRadixRegExp = new RegExp("[" + this.mapToRadix.map(At).join("") + "]", "g"), this._thousandsSeparatorRegExp = new RegExp(At(this.thousandsSeparator), "g");
2096
+ const t = "^" + (this.allowNegative ? "[+|\\-]?" : ""), e = "\\d*", s = (this.scale ? "(" + bt(this.radix) + "\\d{0," + this.scale + "})?" : "") + "$";
2097
+ this._numberRegExp = new RegExp(t + e + s), this._mapToRadixRegExp = new RegExp("[" + this.mapToRadix.map(bt).join("") + "]", "g"), this._thousandsSeparatorRegExp = new RegExp(bt(this.thousandsSeparator), "g");
2162
2098
  }
2163
2099
  _removeThousandsSeparators(t) {
2164
2100
  return t.replace(this._thousandsSeparatorRegExp, "");
@@ -2217,8 +2153,7 @@ class z extends L {
2217
2153
  _findSeparatorAround(t) {
2218
2154
  if (this.thousandsSeparator) {
2219
2155
  const e = t - this.thousandsSeparator.length + 1, s = this.value.indexOf(this.thousandsSeparator, e);
2220
- if (s <= t)
2221
- return s;
2156
+ if (s <= t) return s;
2222
2157
  }
2223
2158
  return -1;
2224
2159
  }
@@ -2238,8 +2173,7 @@ class z extends L {
2238
2173
  });
2239
2174
  }
2240
2175
  nearestInputPos(t, e) {
2241
- if (!this.thousandsSeparator)
2242
- return t;
2176
+ if (!this.thousandsSeparator) return t;
2243
2177
  switch (e) {
2244
2178
  case _.NONE:
2245
2179
  case _.LEFT:
@@ -2276,8 +2210,7 @@ class z extends L {
2276
2210
  return e[0] = e[0].replace(/^(\D*)(0*)(\d*)/, (s, i, r, n) => i + n), t.length && !/\d$/.test(e[0]) && (e[0] = e[0] + "0"), e.length > 1 && (e[1] = e[1].replace(/0*$/, ""), e[1].length || (e.length = 1)), this._insertThousandsSeparators(e.join(this.radix));
2277
2211
  }
2278
2212
  _padFractionalZeros(t) {
2279
- if (!t)
2280
- return t;
2213
+ if (!t) return t;
2281
2214
  const e = t.split(this.radix);
2282
2215
  return e.length < 2 && e.push(""), e[1] = e[1].padEnd(this.scale, "0"), e.join(this.radix);
2283
2216
  }
@@ -2315,7 +2248,7 @@ class z extends L {
2315
2248
  return (super.typedValueEquals(t) || z.EMPTY_VALUES.includes(t) && z.EMPTY_VALUES.includes(this.typedValue)) && !(t === 0 && this.value === "");
2316
2249
  }
2317
2250
  }
2318
- Jt = z;
2251
+ Qt = z;
2319
2252
  z.UNMASKED_RADIX = ".";
2320
2253
  z.EMPTY_VALUES = [...L.EMPTY_VALUES, 0];
2321
2254
  z.DEFAULTS = {
@@ -2323,7 +2256,7 @@ z.DEFAULTS = {
2323
2256
  mask: Number,
2324
2257
  radix: ",",
2325
2258
  thousandsSeparator: "",
2326
- mapToRadix: [Jt.UNMASKED_RADIX],
2259
+ mapToRadix: [Qt.UNMASKED_RADIX],
2327
2260
  min: Number.MIN_SAFE_INTEGER,
2328
2261
  max: Number.MAX_SAFE_INTEGER,
2329
2262
  scale: 2,
@@ -2336,23 +2269,23 @@ z.DEFAULTS = {
2336
2269
  })
2337
2270
  };
2338
2271
  k.MaskedNumber = z;
2339
- const wt = {
2272
+ const Bt = {
2340
2273
  MASKED: "value",
2341
2274
  UNMASKED: "unmaskedValue",
2342
2275
  TYPED: "typedValue"
2343
2276
  };
2344
- function Qt(a, t, e) {
2345
- t === void 0 && (t = wt.MASKED), e === void 0 && (e = wt.MASKED);
2277
+ function te(a, t, e) {
2278
+ t === void 0 && (t = Bt.MASKED), e === void 0 && (e = Bt.MASKED);
2346
2279
  const s = K(a);
2347
2280
  return (i) => s.runIsolated((r) => (r[t] = i, r[e]));
2348
2281
  }
2349
- function Ie(a, t, e, s) {
2350
- return Qt(t, e, s)(a);
2282
+ function Re(a, t, e, s) {
2283
+ return te(t, e, s)(a);
2351
2284
  }
2352
- k.PIPE_TYPE = wt;
2353
- k.createPipe = Qt;
2354
- k.pipe = Ie;
2355
- class Re extends N {
2285
+ k.PIPE_TYPE = Bt;
2286
+ k.createPipe = te;
2287
+ k.pipe = Re;
2288
+ class we extends N {
2356
2289
  get repeatFrom() {
2357
2290
  var t;
2358
2291
  return (t = Array.isArray(this.repeat) ? this.repeat[0] : this.repeat === 1 / 0 ? 0 : this.repeat) != null ? t : 0;
@@ -2389,8 +2322,7 @@ class Re extends N {
2389
2322
  });
2390
2323
  }
2391
2324
  _allocateBlock(t) {
2392
- if (t < this._blocks.length)
2393
- return this._blocks[t];
2325
+ if (t < this._blocks.length) return this._blocks[t];
2394
2326
  if (this.repeatTo === 1 / 0 || this._blocks.length < this.repeatTo)
2395
2327
  return this._blocks.push(K(this._blockOpts)), this.mask += "m", this._blocks[this._blocks.length - 1];
2396
2328
  }
@@ -2413,8 +2345,7 @@ class Re extends N {
2413
2345
  this._blocks.pop(), this.mask = this.mask.slice(1);
2414
2346
  break;
2415
2347
  }
2416
- if (s.aggregate(g), g.consumed)
2417
- break;
2348
+ if (s.aggregate(g), g.consumed) break;
2418
2349
  }
2419
2350
  return s;
2420
2351
  }
@@ -2447,12 +2378,12 @@ class Re extends N {
2447
2378
  this._blocks.length = t._blocks.length, this.mask = this.mask.slice(0, this._blocks.length), super.state = t;
2448
2379
  }
2449
2380
  }
2450
- k.RepeatBlock = Re;
2381
+ k.RepeatBlock = we;
2451
2382
  try {
2452
2383
  globalThis.IMask = k;
2453
2384
  } catch {
2454
2385
  }
2455
- var Bt = { exports: {} }, ut = { exports: {} }, I = {};
2386
+ var ut = { exports: {} }, ot = { exports: {} }, I = {};
2456
2387
  /** @license React v16.13.1
2457
2388
  * react-is.production.min.js
2458
2389
  *
@@ -2462,9 +2393,8 @@ var Bt = { exports: {} }, ut = { exports: {} }, I = {};
2462
2393
  * LICENSE file in the root directory of this source tree.
2463
2394
  */
2464
2395
  var Nt;
2465
- function we() {
2466
- if (Nt)
2467
- return I;
2396
+ function Be() {
2397
+ if (Nt) return I;
2468
2398
  Nt = 1;
2469
2399
  var a = typeof Symbol == "function" && Symbol.for, t = a ? Symbol.for("react.element") : 60103, e = a ? Symbol.for("react.portal") : 60106, s = a ? Symbol.for("react.fragment") : 60107, i = a ? Symbol.for("react.strict_mode") : 60108, r = a ? Symbol.for("react.profiler") : 60114, n = a ? Symbol.for("react.provider") : 60109, u = a ? Symbol.for("react.context") : 60110, o = a ? Symbol.for("react.async_mode") : 60111, h = a ? Symbol.for("react.concurrent_mode") : 60111, m = a ? Symbol.for("react.forward_ref") : 60112, g = a ? Symbol.for("react.suspense") : 60113, y = a ? Symbol.for("react.suspense_list") : 60120, O = a ? Symbol.for("react.memo") : 60115, j = a ? Symbol.for("react.lazy") : 60116, B = a ? Symbol.for("react.block") : 60121, D = a ? Symbol.for("react.fundamental") : 60117, $ = a ? Symbol.for("react.responder") : 60118, st = a ? Symbol.for("react.scope") : 60119;
2470
2400
  function P(c) {
@@ -2538,8 +2468,8 @@ var R = {};
2538
2468
  * LICENSE file in the root directory of this source tree.
2539
2469
  */
2540
2470
  var jt;
2541
- function Be() {
2542
- return jt || (jt = 1, process.env.NODE_ENV !== "production" && function() {
2471
+ function Me() {
2472
+ return jt || (jt = 1, process.env.NODE_ENV !== "production" && (function() {
2543
2473
  var a = typeof Symbol == "function" && Symbol.for, t = a ? Symbol.for("react.element") : 60103, e = a ? Symbol.for("react.portal") : 60106, s = a ? Symbol.for("react.fragment") : 60107, i = a ? Symbol.for("react.strict_mode") : 60108, r = a ? Symbol.for("react.profiler") : 60114, n = a ? Symbol.for("react.provider") : 60109, u = a ? Symbol.for("react.context") : 60110, o = a ? Symbol.for("react.async_mode") : 60111, h = a ? Symbol.for("react.concurrent_mode") : 60111, m = a ? Symbol.for("react.forward_ref") : 60112, g = a ? Symbol.for("react.suspense") : 60113, y = a ? Symbol.for("react.suspense_list") : 60120, O = a ? Symbol.for("react.memo") : 60115, j = a ? Symbol.for("react.lazy") : 60116, B = a ? Symbol.for("react.block") : 60121, D = a ? Symbol.for("react.fundamental") : 60117, $ = a ? Symbol.for("react.responder") : 60118, st = a ? Symbol.for("react.scope") : 60119;
2544
2474
  function P(p) {
2545
2475
  return typeof p == "string" || typeof p == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
@@ -2577,8 +2507,8 @@ function Be() {
2577
2507
  }
2578
2508
  }
2579
2509
  }
2580
- var c = o, Z = h, _t = u, mt = n, gt = t, kt = m, rt = s, vt = j, Et = O, tt = e, yt = r, W = i, X = g, nt = !1;
2581
- function Ct(p) {
2510
+ var c = o, Z = h, mt = u, gt = n, kt = t, vt = m, rt = s, Et = j, yt = O, tt = e, Ct = r, W = i, X = g, nt = !1;
2511
+ function At(p) {
2582
2512
  return nt || (nt = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), l(p) || V(p) === o;
2583
2513
  }
2584
2514
  function l(p) {
@@ -2617,22 +2547,21 @@ function Be() {
2617
2547
  function U(p) {
2618
2548
  return V(p) === g;
2619
2549
  }
2620
- R.AsyncMode = c, R.ConcurrentMode = Z, R.ContextConsumer = _t, R.ContextProvider = mt, R.Element = gt, R.ForwardRef = kt, R.Fragment = rt, R.Lazy = vt, R.Memo = Et, R.Portal = tt, R.Profiler = yt, R.StrictMode = W, R.Suspense = X, R.isAsyncMode = Ct, R.isConcurrentMode = l, R.isContextConsumer = d, R.isContextProvider = x, R.isElement = A, R.isForwardRef = v, R.isFragment = F, R.isLazy = C, R.isMemo = b, R.isPortal = S, R.isProfiler = w, R.isStrictMode = T, R.isSuspense = U, R.isValidElementType = P, R.typeOf = V;
2621
- }()), R;
2550
+ R.AsyncMode = c, R.ConcurrentMode = Z, R.ContextConsumer = mt, R.ContextProvider = gt, R.Element = kt, R.ForwardRef = vt, R.Fragment = rt, R.Lazy = Et, R.Memo = yt, R.Portal = tt, R.Profiler = Ct, R.StrictMode = W, R.Suspense = X, R.isAsyncMode = At, R.isConcurrentMode = l, R.isContextConsumer = d, R.isContextProvider = x, R.isElement = A, R.isForwardRef = v, R.isFragment = F, R.isLazy = C, R.isMemo = b, R.isPortal = S, R.isProfiler = w, R.isStrictMode = T, R.isSuspense = U, R.isValidElementType = P, R.typeOf = V;
2551
+ })()), R;
2622
2552
  }
2623
2553
  var Ut;
2624
- function te() {
2625
- return Ut || (Ut = 1, process.env.NODE_ENV === "production" ? ut.exports = we() : ut.exports = Be()), ut.exports;
2554
+ function ee() {
2555
+ return Ut || (Ut = 1, process.env.NODE_ENV === "production" ? ot.exports = Be() : ot.exports = Me()), ot.exports;
2626
2556
  }
2627
2557
  /*
2628
2558
  object-assign
2629
2559
  (c) Sindre Sorhus
2630
2560
  @license MIT
2631
2561
  */
2632
- var bt, zt;
2633
- function Me() {
2634
- if (zt)
2635
- return bt;
2562
+ var xt, zt;
2563
+ function Oe() {
2564
+ if (zt) return xt;
2636
2565
  zt = 1;
2637
2566
  var a = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, e = Object.prototype.propertyIsEnumerable;
2638
2567
  function s(r) {
@@ -2662,7 +2591,7 @@ function Me() {
2662
2591
  return !1;
2663
2592
  }
2664
2593
  }
2665
- return bt = i() ? Object.assign : function(r, n) {
2594
+ return xt = i() ? Object.assign : function(r, n) {
2666
2595
  for (var u, o = s(r), h, m = 1; m < arguments.length; m++) {
2667
2596
  u = Object(arguments[m]);
2668
2597
  for (var g in u)
@@ -2674,29 +2603,27 @@ function Me() {
2674
2603
  }
2675
2604
  }
2676
2605
  return o;
2677
- }, bt;
2606
+ }, xt;
2678
2607
  }
2679
- var xt, $t;
2608
+ var Ft, $t;
2680
2609
  function Ot() {
2681
- if ($t)
2682
- return xt;
2610
+ if ($t) return Ft;
2683
2611
  $t = 1;
2684
2612
  var a = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
2685
- return xt = a, xt;
2613
+ return Ft = a, Ft;
2686
2614
  }
2687
- var Ft, Wt;
2688
- function ee() {
2689
- return Wt || (Wt = 1, Ft = Function.call.bind(Object.prototype.hasOwnProperty)), Ft;
2615
+ var St, Wt;
2616
+ function se() {
2617
+ return Wt || (Wt = 1, St = Function.call.bind(Object.prototype.hasOwnProperty)), St;
2690
2618
  }
2691
- var St, qt;
2692
- function Oe() {
2693
- if (qt)
2694
- return St;
2619
+ var Tt, qt;
2620
+ function De() {
2621
+ if (qt) return Tt;
2695
2622
  qt = 1;
2696
2623
  var a = function() {
2697
2624
  };
2698
2625
  if (process.env.NODE_ENV !== "production") {
2699
- var t = Ot(), e = {}, s = ee();
2626
+ var t = /* @__PURE__ */ Ot(), e = {}, s = /* @__PURE__ */ se();
2700
2627
  a = function(r) {
2701
2628
  var n = "Warning: " + r;
2702
2629
  typeof console < "u" && console.error(n);
@@ -2736,14 +2663,13 @@ function Oe() {
2736
2663
  }
2737
2664
  return i.resetWarningCache = function() {
2738
2665
  process.env.NODE_ENV !== "production" && (e = {});
2739
- }, St = i, St;
2666
+ }, Tt = i, Tt;
2740
2667
  }
2741
- var Tt, Yt;
2742
- function De() {
2743
- if (Yt)
2744
- return Tt;
2668
+ var It, Yt;
2669
+ function Ve() {
2670
+ if (Yt) return It;
2745
2671
  Yt = 1;
2746
- var a = te(), t = Me(), e = Ot(), s = ee(), i = Oe(), r = function() {
2672
+ var a = ee(), t = Oe(), e = /* @__PURE__ */ Ot(), s = /* @__PURE__ */ se(), i = /* @__PURE__ */ De(), r = function() {
2747
2673
  };
2748
2674
  process.env.NODE_ENV !== "production" && (r = function(u) {
2749
2675
  var o = "Warning: " + u;
@@ -2756,7 +2682,7 @@ function De() {
2756
2682
  function n() {
2757
2683
  return null;
2758
2684
  }
2759
- return Tt = function(u, o) {
2685
+ return It = function(u, o) {
2760
2686
  var h = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
2761
2687
  function g(l) {
2762
2688
  var d = l && (h && l[h] || l[m]);
@@ -2777,12 +2703,12 @@ function De() {
2777
2703
  element: V(),
2778
2704
  elementType: c(),
2779
2705
  instanceOf: Z,
2780
- node: kt(),
2781
- objectOf: mt,
2782
- oneOf: _t,
2783
- oneOfType: gt,
2784
- shape: vt,
2785
- exact: Et
2706
+ node: vt(),
2707
+ objectOf: gt,
2708
+ oneOf: mt,
2709
+ oneOfType: kt,
2710
+ shape: Et,
2711
+ exact: yt
2786
2712
  };
2787
2713
  function j(l, d) {
2788
2714
  return l === d ? l !== 0 || 1 / l === 1 / d : l !== l && d !== d;
@@ -2874,14 +2800,14 @@ function De() {
2874
2800
  function Z(l) {
2875
2801
  function d(x, A, v, F, C) {
2876
2802
  if (!(x[A] instanceof l)) {
2877
- var b = l.name || y, S = Ct(x[A]);
2803
+ var b = l.name || y, S = At(x[A]);
2878
2804
  return new B("Invalid " + F + " `" + C + "` of type " + ("`" + S + "` supplied to `" + v + "`, expected ") + ("instance of `" + b + "`."));
2879
2805
  }
2880
2806
  return null;
2881
2807
  }
2882
2808
  return D(d);
2883
2809
  }
2884
- function _t(l) {
2810
+ function mt(l) {
2885
2811
  if (!Array.isArray(l))
2886
2812
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? r(
2887
2813
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
@@ -2898,7 +2824,7 @@ function De() {
2898
2824
  }
2899
2825
  return D(d);
2900
2826
  }
2901
- function mt(l) {
2827
+ function gt(l) {
2902
2828
  function d(x, A, v, F, C) {
2903
2829
  if (typeof l != "function")
2904
2830
  return new B("Property `" + C + "` of component `" + v + "` has invalid PropType notation inside objectOf.");
@@ -2915,7 +2841,7 @@ function De() {
2915
2841
  }
2916
2842
  return D(d);
2917
2843
  }
2918
- function gt(l) {
2844
+ function kt(l) {
2919
2845
  if (!Array.isArray(l))
2920
2846
  return process.env.NODE_ENV !== "production" && r("Invalid argument supplied to oneOfType, expected an instance of array."), n;
2921
2847
  for (var d = 0; d < l.length; d++) {
@@ -2937,7 +2863,7 @@ function De() {
2937
2863
  }
2938
2864
  return D(A);
2939
2865
  }
2940
- function kt() {
2866
+ function vt() {
2941
2867
  function l(d, x, A, v, F) {
2942
2868
  return tt(d[x]) ? null : new B("Invalid " + v + " `" + F + "` supplied to " + ("`" + A + "`, expected a ReactNode."));
2943
2869
  }
@@ -2948,7 +2874,7 @@ function De() {
2948
2874
  (l || "React class") + ": " + d + " type `" + x + "." + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + v + "`."
2949
2875
  );
2950
2876
  }
2951
- function vt(l) {
2877
+ function Et(l) {
2952
2878
  function d(x, A, v, F, C) {
2953
2879
  var b = x[A], S = W(b);
2954
2880
  if (S !== "object")
@@ -2965,7 +2891,7 @@ function De() {
2965
2891
  }
2966
2892
  return D(d);
2967
2893
  }
2968
- function Et(l) {
2894
+ function yt(l) {
2969
2895
  function d(x, A, v, F, C) {
2970
2896
  var b = x[A], S = W(b);
2971
2897
  if (S !== "object")
@@ -3021,12 +2947,12 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
3021
2947
  return !1;
3022
2948
  }
3023
2949
  }
3024
- function yt(l, d) {
2950
+ function Ct(l, d) {
3025
2951
  return l === "symbol" ? !0 : d ? d["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && d instanceof Symbol : !1;
3026
2952
  }
3027
2953
  function W(l) {
3028
2954
  var d = typeof l;
3029
- return Array.isArray(l) ? "array" : l instanceof RegExp ? "object" : yt(d, l) ? "symbol" : d;
2955
+ return Array.isArray(l) ? "array" : l instanceof RegExp ? "object" : Ct(d, l) ? "symbol" : d;
3030
2956
  }
3031
2957
  function X(l) {
3032
2958
  if (typeof l > "u" || l === null)
@@ -3054,23 +2980,22 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
3054
2980
  return d;
3055
2981
  }
3056
2982
  }
3057
- function Ct(l) {
2983
+ function At(l) {
3058
2984
  return !l.constructor || !l.constructor.name ? y : l.constructor.name;
3059
2985
  }
3060
2986
  return O.checkPropTypes = i, O.resetWarningCache = i.resetWarningCache, O.PropTypes = O, O;
3061
- }, Tt;
2987
+ }, It;
3062
2988
  }
3063
- var It, Ht;
3064
- function Ve() {
3065
- if (Ht)
3066
- return It;
2989
+ var Rt, Ht;
2990
+ function Pe() {
2991
+ if (Ht) return Rt;
3067
2992
  Ht = 1;
3068
- var a = Ot();
2993
+ var a = /* @__PURE__ */ Ot();
3069
2994
  function t() {
3070
2995
  }
3071
2996
  function e() {
3072
2997
  }
3073
- return e.resetWarningCache = t, It = function() {
2998
+ return e.resetWarningCache = t, Rt = function() {
3074
2999
  function s(n, u, o, h, m, g) {
3075
3000
  if (g !== a) {
3076
3001
  var y = new Error(
@@ -3107,15 +3032,20 @@ function Ve() {
3107
3032
  resetWarningCache: t
3108
3033
  };
3109
3034
  return r.PropTypes = r, r;
3110
- }, It;
3035
+ }, Rt;
3036
+ }
3037
+ var Kt;
3038
+ function Le() {
3039
+ if (Kt) return ut.exports;
3040
+ if (Kt = 1, process.env.NODE_ENV !== "production") {
3041
+ var a = ee(), t = !0;
3042
+ ut.exports = /* @__PURE__ */ Ve()(a.isElement, t);
3043
+ } else
3044
+ ut.exports = /* @__PURE__ */ Pe()();
3045
+ return ut.exports;
3111
3046
  }
3112
- if (process.env.NODE_ENV !== "production") {
3113
- var Pe = te(), Le = !0;
3114
- Bt.exports = De()(Pe.isElement, Le);
3115
- } else
3116
- Bt.exports = Ve()();
3117
- var Ne = Bt.exports;
3118
- const f = /* @__PURE__ */ ae(Ne), se = {
3047
+ var Ne = /* @__PURE__ */ Le();
3048
+ const f = /* @__PURE__ */ ue(Ne), ie = {
3119
3049
  // common
3120
3050
  mask: f.oneOfType([f.array, f.func, f.string, f.instanceOf(RegExp), f.oneOf([Date, Number, k.Masked]), f.instanceOf(k.Masked)]),
3121
3051
  value: f.any,
@@ -3162,7 +3092,7 @@ const f = /* @__PURE__ */ ae(Ne), se = {
3162
3092
  inputRef: f.oneOfType([f.func, f.shape({
3163
3093
  current: f.object
3164
3094
  })])
3165
- }, ie = Object.keys(se).filter((a) => a !== "value"), je = ["value", "unmask", "onAccept", "onComplete", "inputRef"], Ue = ie.filter((a) => je.indexOf(a) < 0);
3095
+ }, re = Object.keys(ie).filter((a) => a !== "value"), je = ["value", "unmask", "onAccept", "onComplete", "inputRef"], Ue = re.filter((a) => je.indexOf(a) < 0);
3166
3096
  function ze(a) {
3167
3097
  var t;
3168
3098
  const e = (t = class extends J.Component {
@@ -3205,7 +3135,7 @@ function ze(a) {
3205
3135
  const {
3206
3136
  ...n
3207
3137
  } = r;
3208
- return ie.forEach((u) => {
3138
+ return re.forEach((u) => {
3209
3139
  u !== "maxLength" && delete n[u];
3210
3140
  }), "defaultValue" in n || (n.defaultValue = r.mask ? "" : n.value), delete n.value, n;
3211
3141
  }
@@ -3228,7 +3158,7 @@ function ze(a) {
3228
3158
  });
3229
3159
  }
3230
3160
  }, t.displayName = void 0, t.propTypes = void 0, t), s = a.displayName || a.name || "Component";
3231
- return e.displayName = "IMask(" + s + ")", e.propTypes = se, J.forwardRef((i, r) => J.createElement(e, {
3161
+ return e.displayName = "IMask(" + s + ")", e.propTypes = ie, J.forwardRef((i, r) => J.createElement(e, {
3232
3162
  ...i,
3233
3163
  ref: r
3234
3164
  }));
@@ -3245,12 +3175,12 @@ const $e = ze((a) => {
3245
3175
  }), We = (a, t) => J.createElement($e, {
3246
3176
  ...a,
3247
3177
  ref: t
3248
- }), qe = J.forwardRef(We), Rt = ue.bind(M), Xe = {
3178
+ }), qe = J.forwardRef(We), wt = oe.bind(M), Xe = {
3249
3179
  light: "light",
3250
3180
  dark: "dark",
3251
3181
  gray: "gray",
3252
3182
  transparent: "transparent"
3253
- }, Ye = ne(
3183
+ }, Ye = ae(
3254
3184
  ({
3255
3185
  size_s: a = "large",
3256
3186
  size_m: t,
@@ -3267,7 +3197,7 @@ const $e = ze((a) => {
3267
3197
  }, y) => h ? /* @__PURE__ */ et(
3268
3198
  "div",
3269
3199
  {
3270
- className: Rt(
3200
+ className: wt(
3271
3201
  M.inputWrapper,
3272
3202
  M[`${a}-size_s`],
3273
3203
  M[`${t}-size_m`],
@@ -3296,11 +3226,11 @@ const $e = ze((a) => {
3296
3226
  }
3297
3227
  )
3298
3228
  }
3299
- ) : /* @__PURE__ */ Vt(re, { children: [
3229
+ ) : /* @__PURE__ */ Vt(ne, { children: [
3300
3230
  o !== "checkbox" && /* @__PURE__ */ Vt(
3301
3231
  "div",
3302
3232
  {
3303
- className: Rt(
3233
+ className: wt(
3304
3234
  M.inputWrapper,
3305
3235
  M[`${a}-size_s`],
3306
3236
  M[`${t}-size_m`],
@@ -3331,7 +3261,7 @@ const $e = ze((a) => {
3331
3261
  o === "checkbox" && /* @__PURE__ */ et(
3332
3262
  "input",
3333
3263
  {
3334
- className: Rt(M.checkBox),
3264
+ className: wt(M.checkBox),
3335
3265
  ref: y,
3336
3266
  type: o,
3337
3267
  ...g