@farris/ui-vue 1.2.8 → 1.2.9

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 (215) hide show
  1. package/components/accordion/index.esm.js +129 -129
  2. package/components/accordion/index.umd.cjs +1 -0
  3. package/components/avatar/index.esm.js +166 -157
  4. package/components/avatar/index.umd.cjs +1 -0
  5. package/components/border-editor/index.umd.cjs +1 -0
  6. package/components/button/index.umd.cjs +1 -0
  7. package/components/button-edit/index.esm.js +343 -325
  8. package/components/button-edit/index.umd.cjs +1 -0
  9. package/components/button-group/index.umd.cjs +1 -0
  10. package/components/calculator/index.umd.cjs +1 -0
  11. package/components/calendar/index.esm.js +338 -338
  12. package/components/calendar/index.umd.cjs +1 -0
  13. package/components/capsule/index.esm.js +182 -182
  14. package/components/capsule/index.umd.cjs +1 -0
  15. package/components/checkbox/index.esm.js +326 -317
  16. package/components/checkbox/index.umd.cjs +1 -0
  17. package/components/color-picker/index.esm.js +118 -118
  18. package/components/color-picker/index.umd.cjs +3 -0
  19. package/components/combo-list/index.esm.js +338 -325
  20. package/components/combo-list/index.umd.cjs +1 -0
  21. package/components/combo-tree/index.esm.js +62 -62
  22. package/components/combo-tree/index.umd.cjs +1 -0
  23. package/components/common/index.umd.cjs +1 -0
  24. package/components/component/index.esm.js +382 -270
  25. package/components/component/index.umd.cjs +1 -0
  26. package/components/condition/index.esm.js +1018 -895
  27. package/components/condition/index.umd.cjs +1 -0
  28. package/components/content-container/index.esm.js +285 -212
  29. package/components/content-container/index.umd.cjs +1 -0
  30. package/components/data-grid/index.css +1 -1
  31. package/components/data-grid/index.esm.js +4761 -4319
  32. package/components/data-grid/index.umd.cjs +1 -0
  33. package/components/data-view/index.esm.js +2901 -2664
  34. package/components/data-view/index.umd.cjs +1 -0
  35. package/components/date-picker/index.esm.js +1502 -1488
  36. package/components/date-picker/index.umd.cjs +1 -0
  37. package/components/designer-canvas/index.css +1 -1
  38. package/components/designer-canvas/index.esm.js +938 -928
  39. package/components/designer-canvas/index.umd.cjs +1 -0
  40. package/components/designer-outline/index.css +1 -1
  41. package/components/designer-outline/index.esm.js +27 -27
  42. package/components/designer-outline/index.umd.cjs +1 -0
  43. package/components/designer-toolbox/index.esm.js +36 -12
  44. package/components/designer-toolbox/index.umd.cjs +1 -0
  45. package/components/discussion-editor/index.umd.cjs +3 -0
  46. package/components/discussion-list/index.umd.cjs +1 -0
  47. package/components/drawer/index.umd.cjs +1 -0
  48. package/components/dropdown/index.esm.js +241 -241
  49. package/components/dropdown/index.umd.cjs +2 -0
  50. package/components/dynamic-form/index.esm.js +1074 -885
  51. package/components/dynamic-form/index.umd.cjs +1 -0
  52. package/components/dynamic-resolver/index.esm.js +99 -94
  53. package/components/dynamic-resolver/index.umd.cjs +1 -0
  54. package/components/dynamic-view/index.umd.cjs +1 -0
  55. package/components/enum-editor/index.umd.cjs +1 -0
  56. package/components/events-editor/index.esm.js +577 -522
  57. package/components/events-editor/index.umd.cjs +1 -0
  58. package/components/expression-editor/index.esm.js +70 -70
  59. package/components/expression-editor/index.umd.cjs +1 -0
  60. package/components/external-container/index.css +1 -1
  61. package/components/external-container/index.esm.js +2938 -2619
  62. package/components/external-container/index.umd.cjs +1 -0
  63. package/components/field-selector/index.css +1 -1
  64. package/components/field-selector/index.esm.js +4766 -4325
  65. package/components/field-selector/index.umd.cjs +1 -0
  66. package/components/filter-bar/index.css +1 -1
  67. package/components/filter-bar/index.esm.js +1231 -1215
  68. package/components/filter-bar/index.umd.cjs +1 -0
  69. package/components/flow-canvas/index.css +1 -1
  70. package/components/flow-canvas/index.esm.js +1062 -1052
  71. package/components/flow-canvas/index.umd.cjs +1 -0
  72. package/components/image-cropper/index.esm.js +373 -373
  73. package/components/image-cropper/index.umd.cjs +1 -0
  74. package/components/input-group/index.esm.js +398 -394
  75. package/components/input-group/index.umd.cjs +1 -0
  76. package/components/layout/index.esm.js +268 -268
  77. package/components/layout/index.umd.cjs +1 -0
  78. package/components/list-nav/index.esm.js +234 -161
  79. package/components/list-nav/index.umd.cjs +1 -0
  80. package/components/list-view/index.css +1 -1
  81. package/components/list-view/index.esm.js +2288 -2048
  82. package/components/list-view/index.umd.cjs +1 -0
  83. package/components/loading/index.umd.cjs +8 -0
  84. package/components/locale/index.umd.cjs +1 -0
  85. package/components/lookup/index.css +1 -1
  86. package/components/lookup/index.esm.js +5776 -5305
  87. package/components/lookup/index.umd.cjs +1 -0
  88. package/components/mapping-editor/index.css +1 -1
  89. package/components/mapping-editor/index.esm.js +5496 -5036
  90. package/components/mapping-editor/index.umd.cjs +1 -0
  91. package/components/message-box/index.umd.cjs +1 -0
  92. package/components/modal/index.umd.cjs +1 -0
  93. package/components/nav/index.esm.js +383 -322
  94. package/components/nav/index.umd.cjs +3 -0
  95. package/components/notify/index.umd.cjs +1 -0
  96. package/components/number-range/index.esm.js +273 -269
  97. package/components/number-range/index.umd.cjs +1 -0
  98. package/components/number-spinner/index.esm.js +292 -283
  99. package/components/number-spinner/index.umd.cjs +1 -0
  100. package/components/order/index.css +1 -1
  101. package/components/order/index.esm.js +1008 -925
  102. package/components/order/index.umd.cjs +1 -0
  103. package/components/page-footer/index.esm.js +98 -98
  104. package/components/page-footer/index.umd.cjs +1 -0
  105. package/components/page-header/index.esm.js +949 -847
  106. package/components/page-header/index.umd.cjs +1 -0
  107. package/components/pagination/index.esm.js +464 -403
  108. package/components/pagination/index.umd.cjs +1 -0
  109. package/components/popover/index.umd.cjs +1 -0
  110. package/components/progress/index.esm.js +226 -226
  111. package/components/progress/index.umd.cjs +3 -0
  112. package/components/property-editor/index.esm.js +1110 -1092
  113. package/components/property-editor/index.umd.cjs +3 -0
  114. package/components/property-panel/index.esm.js +520 -513
  115. package/components/property-panel/index.umd.cjs +1 -0
  116. package/components/query-solution/index.css +1 -1
  117. package/components/query-solution/index.esm.js +1714 -1575
  118. package/components/query-solution/index.umd.cjs +1 -0
  119. package/components/radio-button/index.esm.js +67 -67
  120. package/components/radio-button/index.umd.cjs +1 -0
  121. package/components/radio-group/index.esm.js +298 -289
  122. package/components/radio-group/index.umd.cjs +1 -0
  123. package/components/rate/index.esm.js +195 -190
  124. package/components/rate/index.umd.cjs +1 -0
  125. package/components/response-layout/index.esm.js +112 -112
  126. package/components/response-layout/index.umd.cjs +1 -0
  127. package/components/response-layout-editor/index.esm.js +902 -877
  128. package/components/response-layout-editor/index.umd.cjs +1 -0
  129. package/components/response-toolbar/index.esm.js +874 -778
  130. package/components/response-toolbar/index.umd.cjs +1 -0
  131. package/components/schema-selector/index.css +1 -1
  132. package/components/schema-selector/index.esm.js +4594 -4289
  133. package/components/schema-selector/index.umd.cjs +8 -0
  134. package/components/search-box/index.esm.js +126 -126
  135. package/components/search-box/index.umd.cjs +1 -0
  136. package/components/section/index.esm.js +645 -503
  137. package/components/section/index.umd.cjs +1 -0
  138. package/components/smoke-detector/index.esm.js +120 -120
  139. package/components/smoke-detector/index.umd.cjs +1 -0
  140. package/components/spacing-editor/index.umd.cjs +1 -0
  141. package/components/splitter/index.esm.js +421 -348
  142. package/components/splitter/index.umd.cjs +1 -0
  143. package/components/step/index.esm.js +219 -219
  144. package/components/step/index.umd.cjs +1 -0
  145. package/components/switch/index.esm.js +232 -222
  146. package/components/switch/index.umd.cjs +1 -0
  147. package/components/tabs/index.esm.js +1823 -1744
  148. package/components/tabs/index.umd.cjs +1 -0
  149. package/components/tags/index.esm.js +399 -401
  150. package/components/tags/index.umd.cjs +1 -0
  151. package/components/text/index.esm.js +164 -164
  152. package/components/text/index.umd.cjs +1 -0
  153. package/components/textarea/index.esm.js +220 -215
  154. package/components/textarea/index.umd.cjs +1 -0
  155. package/components/time-picker/index.esm.js +693 -666
  156. package/components/time-picker/index.umd.cjs +1 -0
  157. package/components/tooltip/index.umd.cjs +1 -0
  158. package/components/transfer/index.css +1 -1
  159. package/components/transfer/index.esm.js +422 -413
  160. package/components/transfer/index.umd.cjs +1 -0
  161. package/components/tree-grid/index.css +1 -1
  162. package/components/tree-grid/index.esm.js +4799 -4358
  163. package/components/tree-grid/index.umd.cjs +1 -0
  164. package/components/tree-view/index.esm.js +2448 -2215
  165. package/components/tree-view/index.umd.cjs +1 -0
  166. package/components/uploader/index.esm.js +164 -164
  167. package/components/uploader/index.umd.cjs +2 -0
  168. package/components/verify-detail/index.esm.js +143 -143
  169. package/components/verify-detail/index.umd.cjs +1 -0
  170. package/components/video/index.esm.js +410 -331
  171. package/components/video/index.umd.cjs +1 -0
  172. package/components/weather/index.esm.js +901 -901
  173. package/components/weather/index.umd.cjs +16 -0
  174. package/farris.all.esm.js +12305 -11403
  175. package/farris.all.umd.cjs +8 -8
  176. package/index.css +1 -1
  177. package/package.json +1 -1
  178. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  179. package/types/combo-list/src/components/list-container.component.d.ts +3 -0
  180. package/types/combo-list/src/components/list-container.props.d.ts +5 -1
  181. package/types/common/entity/entity-schema.d.ts +258 -0
  182. package/types/component/src/component-ref.props.d.ts +4 -0
  183. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  184. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  185. package/types/data-grid/index.d.ts +5 -2
  186. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  187. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  188. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  189. package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
  190. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  191. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  192. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  193. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  194. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  195. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  196. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  197. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  198. package/types/data-view/composition/types.d.ts +18 -6
  199. package/types/data-view/composition/use-edit.d.ts +2 -1
  200. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  201. package/types/designer-canvas/src/types.d.ts +2 -2
  202. package/types/dynamic-form/index.d.ts +2 -1
  203. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  204. package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
  205. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  206. package/types/dynamic-resolver/src/types.d.ts +3 -2
  207. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  208. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  209. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  210. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  211. package/types/tabs/src/composition/types.d.ts +2 -2
  212. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  213. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  214. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  215. package/types/tags/index.d.ts +36 -5
@@ -1,34 +1,34 @@
1
- var Pt = Object.defineProperty;
2
- var Ot = (t, n, e) => n in t ? Pt(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e;
3
- var p = (t, n, e) => Ot(t, typeof n != "symbol" ? n + "" : n, e);
4
- import { ref as b, defineComponent as re, watch as j, computed as N, onMounted as fe, createVNode as w, createTextVNode as ve, mergeProps as Pe, Teleport as Dt, createApp as Ht, onUnmounted as Bt, inject as me, nextTick as Se, withDirectives as Et, vShow as Vt, Fragment as Ft, resolveComponent as Nt } from "vue";
5
- import { cloneDeep as St } from "lodash-es";
6
- import Yt from "../button-edit/index.esm.js";
1
+ var xt = Object.defineProperty;
2
+ var Mt = (t, n, e) => n in t ? xt(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e;
3
+ var p = (t, n, e) => Mt(t, typeof n != "symbol" ? n + "" : n, e);
4
+ import { ref as v, defineComponent as re, watch as R, computed as B, onMounted as fe, createVNode as b, createTextVNode as ve, mergeProps as Pe, Teleport as kt, createApp as Tt, onUnmounted as Ct, inject as me, nextTick as Se, withDirectives as Pt, vShow as Ot, Fragment as Dt, resolveComponent as Ht } from "vue";
5
+ import { cloneDeep as Bt } from "lodash-es";
6
+ import Et from "../button-edit/index.esm.js";
7
7
  import "bignumber.js";
8
- import { resolveAppearance as Wt, getSchemaByType as Ye } from "../dynamic-resolver/index.esm.js";
9
- import qt from "../tags/index.esm.js";
10
- import At from "../popover/index.esm.js";
11
- import { useDesignerComponent as Lt } from "../designer-canvas/index.esm.js";
12
- import { withInstall as _t } from "../common/index.esm.js";
8
+ import { resolveAppearance as Vt, getSchemaByType as Ye } from "../dynamic-resolver/index.esm.js";
9
+ import Ft from "../tags/index.esm.js";
10
+ import Nt from "../popover/index.esm.js";
11
+ import { useDesignerComponent as St } from "../designer-canvas/index.esm.js";
12
+ import { withInstall as Yt } from "../common/index.esm.js";
13
13
  const Re = {}, $e = {};
14
14
  function Oe(t) {
15
- const { properties: n, title: e } = t, r = Object.keys(n).reduce((o, a) => (o[a] = n[a].type === "object" && n[a].properties ? Oe(n[a]) : St(n[a].default), o), {});
16
- return r.id = `${e}-${Date.now()}`, r;
15
+ const { properties: n, title: e, ignore: r } = t, o = r && Array.isArray(r), a = Object.keys(n).reduce((s, i) => ((!o || !r.find((f) => f == i)) && (s[i] = n[i].type === "object" && n[i].properties ? Oe(n[i]) : Bt(n[i].default)), s), {});
16
+ return (!o || !r.find((s) => s == "id")) && (a.id = `${e}-${Date.now()}`), a;
17
17
  }
18
- function Me(t, n = {}) {
19
- const e = Re[t];
20
- if (e) {
21
- let r = Oe(e);
22
- const o = $e[t];
23
- return r = o ? o({ getSchemaByType: Me }, r, n) : r, r;
18
+ function Me(t, n = {}, e) {
19
+ const r = Re[t];
20
+ if (r) {
21
+ let o = Oe(r);
22
+ const a = $e[t];
23
+ return o = a ? a({ getSchemaByType: Me }, o, n, e) : o, o;
24
24
  }
25
25
  return null;
26
26
  }
27
- function It(t, n) {
27
+ function Wt(t, n) {
28
28
  const e = Oe(n);
29
29
  return Object.keys(t).reduce((r, o) => (r[o] && typeof r[o] == "object" ? Object.assign(r[o], t[o]) : r[o] = t[o], r), e), e;
30
30
  }
31
- function jt(t, n) {
31
+ function qt(t, n) {
32
32
  return Object.keys(t).filter((r) => t[r] != null).reduce((r, o) => {
33
33
  if (n.has(o)) {
34
34
  const a = n.get(o);
@@ -43,11 +43,11 @@ function jt(t, n) {
43
43
  return r;
44
44
  }, {});
45
45
  }
46
- function Rt(t, n, e = /* @__PURE__ */ new Map()) {
47
- const r = It(t, n);
48
- return jt(r, e);
46
+ function At(t, n, e = /* @__PURE__ */ new Map()) {
47
+ const r = Wt(t, n);
48
+ return qt(r, e);
49
49
  }
50
- function $t(t = {}) {
50
+ function Lt(t = {}) {
51
51
  function n(c, d, u, l) {
52
52
  if (typeof u == "number")
53
53
  return l[c].length === u;
@@ -96,8 +96,8 @@ function $t(t = {}) {
96
96
  return a(c).reduce((m, y) => m && s(y, d), !0);
97
97
  }
98
98
  function f(c, d) {
99
- const u = Object.keys(c), l = u.includes("allOf"), m = u.includes("anyOf"), y = l || m, L = (y ? c[y ? l ? "allOf" : "anyOf" : "allOf"] : [c]).map((g) => i(g, d));
100
- return l ? !L.includes(!1) : L.includes(!0);
99
+ const u = Object.keys(c), l = u.includes("allOf"), m = u.includes("anyOf"), y = l || m, I = (y ? c[y ? l ? "allOf" : "anyOf" : "allOf"] : [c]).map((w) => i(w, d));
100
+ return l ? !I.includes(!1) : I.includes(!0);
101
101
  }
102
102
  return { parseValueSchema: f };
103
103
  }
@@ -139,20 +139,20 @@ const k = {
139
139
  "page-header": { type: "page-header", name: "页头", icon: "Header" },
140
140
  "page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
141
141
  "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
142
- }, Qt = {}, Gt = {};
143
- $t();
144
- function Qe(t, n, e = /* @__PURE__ */ new Map(), r = (s, i, f) => i, o = {}, a = (s) => s) {
145
- return Re[n.title] = n, $e[n.title] = r, Qt[n.title] = o, Gt[n.title] = a, (s = {}) => {
146
- const i = Rt(s, n, e), f = Object.keys(t).reduce((c, d) => (c[d] = t[d].default, c), {});
142
+ }, It = {}, _t = {};
143
+ Lt();
144
+ function Ge(t, n, e = /* @__PURE__ */ new Map(), r = (s, i, f) => i, o = {}, a = (s) => s) {
145
+ return Re[n.title] = n, $e[n.title] = r, It[n.title] = o, _t[n.title] = a, (s = {}) => {
146
+ const i = At(s, n, e), f = Object.keys(t).reduce((c, d) => (c[d] = t[d].default, c), {});
147
147
  return Object.assign(f, i);
148
148
  };
149
149
  }
150
- function Xt(t, n) {
150
+ function jt(t, n) {
151
151
  return { customClass: n.class, customStyle: n.style };
152
152
  }
153
- const Ut = /* @__PURE__ */ new Map([
154
- ["appearance", Xt]
155
- ]), zt = "https://json-schema.org/draft/2020-12/schema", Jt = "https://farris-design.gitee.io/time-picker.schema.json", Zt = "time-picker", Kt = "A Farris Input Component", en = "object", tn = {
153
+ const Rt = /* @__PURE__ */ new Map([
154
+ ["appearance", jt]
155
+ ]), $t = "https://json-schema.org/draft/2020-12/schema", Gt = "https://farris-design.gitee.io/time-picker.schema.json", Qt = "time-picker", Xt = "A Farris Input Component", Ut = "object", zt = {
156
156
  id: {
157
157
  description: "The unique identifier for a time picker",
158
158
  type: "string"
@@ -180,7 +180,7 @@ const Ut = /* @__PURE__ */ new Map([
180
180
  type: "object",
181
181
  default: {}
182
182
  },
183
- disable: {
183
+ disabled: {
184
184
  type: "string",
185
185
  default: !1
186
186
  },
@@ -229,19 +229,24 @@ const Ut = /* @__PURE__ */ new Map([
229
229
  type: "boolean",
230
230
  default: !1
231
231
  }
232
- }, nn = [
232
+ }, Jt = [
233
233
  "id",
234
234
  "type"
235
- ], rn = {
236
- $schema: zt,
237
- $id: Jt,
238
- title: Zt,
239
- description: Kt,
240
- type: en,
241
- properties: tn,
242
- required: nn
235
+ ], Zt = [
236
+ "id",
237
+ "appearance",
238
+ "binding"
239
+ ], Kt = {
240
+ $schema: $t,
241
+ $id: Gt,
242
+ title: Qt,
243
+ description: Xt,
244
+ type: Ut,
245
+ properties: zt,
246
+ required: Jt,
247
+ ignore: Zt
243
248
  };
244
- function on(t, n, e) {
249
+ function en(t, n, e) {
245
250
  return n;
246
251
  }
247
252
  const De = {
@@ -269,10 +274,10 @@ const De = {
269
274
  * 是否隐藏禁用的元素
270
275
  */
271
276
  hideDisabledElements: { type: Boolean, default: !1 },
272
- disable: { type: Boolean, default: !1 },
277
+ disabled: { type: Boolean, default: !1 },
273
278
  readonly: { type: Boolean, default: !1 },
274
279
  editable: { type: Boolean, default: !0 }
275
- }, Ge = Qe(De, rn, Ut, on), an = {
280
+ }, Qe = Ge(De, Kt, Rt, en), tn = {
276
281
  modelValue: {
277
282
  type: String,
278
283
  default: ""
@@ -326,7 +331,7 @@ const De = {
326
331
  default: !1
327
332
  }
328
333
  };
329
- function _(t) {
334
+ function L(t) {
330
335
  const n = Object.prototype.toString.call(t);
331
336
  return t instanceof Date || typeof t == "object" && n === "[object Date]" ? new t.constructor(+t) : typeof t == "number" || n === "[object Number]" || typeof t == "string" || n === "[object String]" ? new Date(t) : /* @__PURE__ */ new Date(NaN);
332
337
  }
@@ -334,24 +339,24 @@ function Y(t, n) {
334
339
  return t instanceof Date ? new t.constructor(n) : new Date(n);
335
340
  }
336
341
  function Xe(t, n) {
337
- const e = _(t);
342
+ const e = L(t);
338
343
  return isNaN(n) ? Y(t, NaN) : (n && e.setDate(e.getDate() + n), e);
339
344
  }
340
- const Ue = 6048e5, sn = 864e5, un = 6e4, ln = 36e5, cn = 1e3;
341
- let dn = {};
345
+ const Ue = 6048e5, nn = 864e5, rn = 6e4, on = 36e5, an = 1e3;
346
+ let sn = {};
342
347
  function oe() {
343
- return dn;
348
+ return sn;
344
349
  }
345
350
  function z(t, n) {
346
351
  var i, f, c, d;
347
- const e = oe(), r = (n == null ? void 0 : n.weekStartsOn) ?? ((f = (i = n == null ? void 0 : n.locale) == null ? void 0 : i.options) == null ? void 0 : f.weekStartsOn) ?? e.weekStartsOn ?? ((d = (c = e.locale) == null ? void 0 : c.options) == null ? void 0 : d.weekStartsOn) ?? 0, o = _(t), a = o.getDay(), s = (a < r ? 7 : 0) + a - r;
352
+ const e = oe(), r = (n == null ? void 0 : n.weekStartsOn) ?? ((f = (i = n == null ? void 0 : n.locale) == null ? void 0 : i.options) == null ? void 0 : f.weekStartsOn) ?? e.weekStartsOn ?? ((d = (c = e.locale) == null ? void 0 : c.options) == null ? void 0 : d.weekStartsOn) ?? 0, o = L(t), a = o.getDay(), s = (a < r ? 7 : 0) + a - r;
348
353
  return o.setDate(o.getDate() - s), o.setHours(0, 0, 0, 0), o;
349
354
  }
350
355
  function ne(t) {
351
356
  return z(t, { weekStartsOn: 1 });
352
357
  }
353
358
  function ze(t) {
354
- const n = _(t), e = n.getFullYear(), r = Y(t, 0);
359
+ const n = L(t), e = n.getFullYear(), r = Y(t, 0);
355
360
  r.setFullYear(e + 1, 0, 4), r.setHours(0, 0, 0, 0);
356
361
  const o = ne(r), a = Y(t, 0);
357
362
  a.setFullYear(e, 0, 4), a.setHours(0, 0, 0, 0);
@@ -359,11 +364,11 @@ function ze(t) {
359
364
  return n.getTime() >= o.getTime() ? e + 1 : n.getTime() >= s.getTime() ? e : e - 1;
360
365
  }
361
366
  function We(t) {
362
- const n = _(t);
367
+ const n = L(t);
363
368
  return n.setHours(0, 0, 0, 0), n;
364
369
  }
365
370
  function he(t) {
366
- const n = _(t), e = new Date(
371
+ const n = L(t), e = new Date(
367
372
  Date.UTC(
368
373
  n.getFullYear(),
369
374
  n.getMonth(),
@@ -376,28 +381,28 @@ function he(t) {
376
381
  );
377
382
  return e.setUTCFullYear(n.getFullYear()), +t - +e;
378
383
  }
379
- function fn(t, n) {
384
+ function un(t, n) {
380
385
  const e = We(t), r = We(n), o = +e - he(e), a = +r - he(r);
381
- return Math.round((o - a) / sn);
386
+ return Math.round((o - a) / nn);
382
387
  }
383
- function pn(t) {
388
+ function ln(t) {
384
389
  const n = ze(t), e = Y(t, 0);
385
390
  return e.setFullYear(n, 0, 4), e.setHours(0, 0, 0, 0), ne(e);
386
391
  }
387
- function mn(t) {
392
+ function cn(t) {
388
393
  return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
389
394
  }
390
395
  function Je(t) {
391
- if (!mn(t) && typeof t != "number")
396
+ if (!cn(t) && typeof t != "number")
392
397
  return !1;
393
- const n = _(t);
398
+ const n = L(t);
394
399
  return !isNaN(Number(n));
395
400
  }
396
- function hn(t) {
397
- const n = _(t), e = Y(t, 0);
401
+ function dn(t) {
402
+ const n = L(t), e = Y(t, 0);
398
403
  return e.setFullYear(n.getFullYear(), 0, 1), e.setHours(0, 0, 0, 0), e;
399
404
  }
400
- const yn = {
405
+ const fn = {
401
406
  lessThanXSeconds: {
402
407
  one: "less than a second",
403
408
  other: "less than {{count}} seconds"
@@ -459,9 +464,9 @@ const yn = {
459
464
  one: "almost 1 year",
460
465
  other: "almost {{count}} years"
461
466
  }
462
- }, gn = (t, n, e) => {
467
+ }, pn = (t, n, e) => {
463
468
  let r;
464
- const o = yn[t];
469
+ const o = fn[t];
465
470
  return typeof o == "string" ? r = o : n === 1 ? r = o.one : r = o.other.replace("{{count}}", n.toString()), e != null && e.addSuffix ? e.comparison && e.comparison > 0 ? "in " + r : r + " ago" : r;
466
471
  };
467
472
  function xe(t) {
@@ -470,42 +475,42 @@ function xe(t) {
470
475
  return t.formats[e] || t.formats[t.defaultWidth];
471
476
  };
472
477
  }
473
- const bn = {
478
+ const mn = {
474
479
  full: "EEEE, MMMM do, y",
475
480
  long: "MMMM do, y",
476
481
  medium: "MMM d, y",
477
482
  short: "MM/dd/yyyy"
478
- }, wn = {
483
+ }, hn = {
479
484
  full: "h:mm:ss a zzzz",
480
485
  long: "h:mm:ss a z",
481
486
  medium: "h:mm:ss a",
482
487
  short: "h:mm a"
483
- }, vn = {
488
+ }, yn = {
484
489
  full: "{{date}} 'at' {{time}}",
485
490
  long: "{{date}} 'at' {{time}}",
486
491
  medium: "{{date}}, {{time}}",
487
492
  short: "{{date}}, {{time}}"
488
- }, xn = {
493
+ }, gn = {
489
494
  date: xe({
490
- formats: bn,
495
+ formats: mn,
491
496
  defaultWidth: "full"
492
497
  }),
493
498
  time: xe({
494
- formats: wn,
499
+ formats: hn,
495
500
  defaultWidth: "full"
496
501
  }),
497
502
  dateTime: xe({
498
- formats: vn,
503
+ formats: yn,
499
504
  defaultWidth: "full"
500
505
  })
501
- }, Mn = {
506
+ }, bn = {
502
507
  lastWeek: "'last' eeee 'at' p",
503
508
  yesterday: "'yesterday at' p",
504
509
  today: "'today at' p",
505
510
  tomorrow: "'tomorrow at' p",
506
511
  nextWeek: "eeee 'at' p",
507
512
  other: "P"
508
- }, Tn = (t, n, e, r) => Mn[t];
513
+ }, wn = (t, n, e, r) => bn[t];
509
514
  function le(t) {
510
515
  return (n, e) => {
511
516
  const r = e != null && e.context ? String(e.context) : "standalone";
@@ -521,15 +526,15 @@ function le(t) {
521
526
  return o[a];
522
527
  };
523
528
  }
524
- const kn = {
529
+ const vn = {
525
530
  narrow: ["B", "A"],
526
531
  abbreviated: ["BC", "AD"],
527
532
  wide: ["Before Christ", "Anno Domini"]
528
- }, Cn = {
533
+ }, xn = {
529
534
  narrow: ["1", "2", "3", "4"],
530
535
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
531
536
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
532
- }, Pn = {
537
+ }, Mn = {
533
538
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
534
539
  abbreviated: [
535
540
  "Jan",
@@ -559,7 +564,7 @@ const kn = {
559
564
  "November",
560
565
  "December"
561
566
  ]
562
- }, On = {
567
+ }, kn = {
563
568
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
564
569
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
565
570
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -572,7 +577,7 @@ const kn = {
572
577
  "Friday",
573
578
  "Saturday"
574
579
  ]
575
- }, Dn = {
580
+ }, Tn = {
576
581
  narrow: {
577
582
  am: "a",
578
583
  pm: "p",
@@ -603,7 +608,7 @@ const kn = {
603
608
  evening: "evening",
604
609
  night: "night"
605
610
  }
606
- }, Hn = {
611
+ }, Cn = {
607
612
  narrow: {
608
613
  am: "a",
609
614
  pm: "p",
@@ -634,7 +639,7 @@ const kn = {
634
639
  evening: "in the evening",
635
640
  night: "at night"
636
641
  }
637
- }, Bn = (t, n) => {
642
+ }, Pn = (t, n) => {
638
643
  const e = Number(t), r = e % 100;
639
644
  if (r > 20 || r < 10)
640
645
  switch (r % 10) {
@@ -646,29 +651,29 @@ const kn = {
646
651
  return e + "rd";
647
652
  }
648
653
  return e + "th";
649
- }, En = {
650
- ordinalNumber: Bn,
654
+ }, On = {
655
+ ordinalNumber: Pn,
651
656
  era: le({
652
- values: kn,
657
+ values: vn,
653
658
  defaultWidth: "wide"
654
659
  }),
655
660
  quarter: le({
656
- values: Cn,
661
+ values: xn,
657
662
  defaultWidth: "wide",
658
663
  argumentCallback: (t) => t - 1
659
664
  }),
660
665
  month: le({
661
- values: Pn,
666
+ values: Mn,
662
667
  defaultWidth: "wide"
663
668
  }),
664
669
  day: le({
665
- values: On,
670
+ values: kn,
666
671
  defaultWidth: "wide"
667
672
  }),
668
673
  dayPeriod: le({
669
- values: Dn,
674
+ values: Tn,
670
675
  defaultWidth: "wide",
671
- formattingValues: Hn,
676
+ formattingValues: Cn,
672
677
  defaultFormattingWidth: "wide"
673
678
  })
674
679
  };
@@ -677,9 +682,9 @@ function ce(t) {
677
682
  const r = e.width, o = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], a = n.match(o);
678
683
  if (!a)
679
684
  return null;
680
- const s = a[0], i = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], f = Array.isArray(i) ? Fn(i, (u) => u.test(s)) : (
685
+ const s = a[0], i = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], f = Array.isArray(i) ? Hn(i, (u) => u.test(s)) : (
681
686
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
682
- Vn(i, (u) => u.test(s))
687
+ Dn(i, (u) => u.test(s))
683
688
  );
684
689
  let c;
685
690
  c = t.valueCallback ? t.valueCallback(f) : f, c = e.valueCallback ? (
@@ -690,17 +695,17 @@ function ce(t) {
690
695
  return { value: c, rest: d };
691
696
  };
692
697
  }
693
- function Vn(t, n) {
698
+ function Dn(t, n) {
694
699
  for (const e in t)
695
700
  if (Object.prototype.hasOwnProperty.call(t, e) && n(t[e]))
696
701
  return e;
697
702
  }
698
- function Fn(t, n) {
703
+ function Hn(t, n) {
699
704
  for (let e = 0; e < t.length; e++)
700
705
  if (n(t[e]))
701
706
  return e;
702
707
  }
703
- function Nn(t) {
708
+ function Bn(t) {
704
709
  return (n, e = {}) => {
705
710
  const r = n.match(t.matchPattern);
706
711
  if (!r) return null;
@@ -712,23 +717,23 @@ function Nn(t) {
712
717
  return { value: s, rest: i };
713
718
  };
714
719
  }
715
- const Sn = /^(\d+)(th|st|nd|rd)?/i, Yn = /\d+/i, Wn = {
720
+ const En = /^(\d+)(th|st|nd|rd)?/i, Vn = /\d+/i, Fn = {
716
721
  narrow: /^(b|a)/i,
717
722
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
718
723
  wide: /^(before christ|before common era|anno domini|common era)/i
719
- }, qn = {
724
+ }, Nn = {
720
725
  any: [/^b/i, /^(a|c)/i]
721
- }, An = {
726
+ }, Sn = {
722
727
  narrow: /^[1234]/i,
723
728
  abbreviated: /^q[1234]/i,
724
729
  wide: /^[1234](th|st|nd|rd)? quarter/i
725
- }, Ln = {
730
+ }, Yn = {
726
731
  any: [/1/i, /2/i, /3/i, /4/i]
727
- }, _n = {
732
+ }, Wn = {
728
733
  narrow: /^[jfmasond]/i,
729
734
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
730
735
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
731
- }, In = {
736
+ }, qn = {
732
737
  narrow: [
733
738
  /^j/i,
734
739
  /^f/i,
@@ -757,18 +762,18 @@ const Sn = /^(\d+)(th|st|nd|rd)?/i, Yn = /\d+/i, Wn = {
757
762
  /^n/i,
758
763
  /^d/i
759
764
  ]
760
- }, jn = {
765
+ }, An = {
761
766
  narrow: /^[smtwf]/i,
762
767
  short: /^(su|mo|tu|we|th|fr|sa)/i,
763
768
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
764
769
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
765
- }, Rn = {
770
+ }, Ln = {
766
771
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
767
772
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
768
- }, $n = {
773
+ }, In = {
769
774
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
770
775
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
771
- }, Qn = {
776
+ }, _n = {
772
777
  any: {
773
778
  am: /^a/i,
774
779
  pm: /^p/i,
@@ -779,79 +784,79 @@ const Sn = /^(\d+)(th|st|nd|rd)?/i, Yn = /\d+/i, Wn = {
779
784
  evening: /evening/i,
780
785
  night: /night/i
781
786
  }
782
- }, Gn = {
783
- ordinalNumber: Nn({
784
- matchPattern: Sn,
785
- parsePattern: Yn,
787
+ }, jn = {
788
+ ordinalNumber: Bn({
789
+ matchPattern: En,
790
+ parsePattern: Vn,
786
791
  valueCallback: (t) => parseInt(t, 10)
787
792
  }),
788
793
  era: ce({
789
- matchPatterns: Wn,
794
+ matchPatterns: Fn,
790
795
  defaultMatchWidth: "wide",
791
- parsePatterns: qn,
796
+ parsePatterns: Nn,
792
797
  defaultParseWidth: "any"
793
798
  }),
794
799
  quarter: ce({
795
- matchPatterns: An,
800
+ matchPatterns: Sn,
796
801
  defaultMatchWidth: "wide",
797
- parsePatterns: Ln,
802
+ parsePatterns: Yn,
798
803
  defaultParseWidth: "any",
799
804
  valueCallback: (t) => t + 1
800
805
  }),
801
806
  month: ce({
802
- matchPatterns: _n,
807
+ matchPatterns: Wn,
803
808
  defaultMatchWidth: "wide",
804
- parsePatterns: In,
809
+ parsePatterns: qn,
805
810
  defaultParseWidth: "any"
806
811
  }),
807
812
  day: ce({
808
- matchPatterns: jn,
813
+ matchPatterns: An,
809
814
  defaultMatchWidth: "wide",
810
- parsePatterns: Rn,
815
+ parsePatterns: Ln,
811
816
  defaultParseWidth: "any"
812
817
  }),
813
818
  dayPeriod: ce({
814
- matchPatterns: $n,
819
+ matchPatterns: In,
815
820
  defaultMatchWidth: "any",
816
- parsePatterns: Qn,
821
+ parsePatterns: _n,
817
822
  defaultParseWidth: "any"
818
823
  })
819
824
  }, Ze = {
820
825
  code: "en-US",
821
- formatDistance: gn,
822
- formatLong: xn,
823
- formatRelative: Tn,
824
- localize: En,
825
- match: Gn,
826
+ formatDistance: pn,
827
+ formatLong: gn,
828
+ formatRelative: wn,
829
+ localize: On,
830
+ match: jn,
826
831
  options: {
827
832
  weekStartsOn: 0,
828
833
  firstWeekContainsDate: 1
829
834
  }
830
835
  };
831
- function Xn(t) {
832
- const n = _(t);
833
- return fn(n, hn(n)) + 1;
836
+ function Rn(t) {
837
+ const n = L(t);
838
+ return un(n, dn(n)) + 1;
834
839
  }
835
840
  function Ke(t) {
836
- const n = _(t), e = +ne(n) - +pn(n);
841
+ const n = L(t), e = +ne(n) - +ln(n);
837
842
  return Math.round(e / Ue) + 1;
838
843
  }
839
844
  function He(t, n) {
840
845
  var d, u, l, m;
841
- const e = _(t), r = e.getFullYear(), o = oe(), a = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((u = (d = n == null ? void 0 : n.locale) == null ? void 0 : d.options) == null ? void 0 : u.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((m = (l = o.locale) == null ? void 0 : l.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, s = Y(t, 0);
846
+ const e = L(t), r = e.getFullYear(), o = oe(), a = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((u = (d = n == null ? void 0 : n.locale) == null ? void 0 : d.options) == null ? void 0 : u.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((m = (l = o.locale) == null ? void 0 : l.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, s = Y(t, 0);
842
847
  s.setFullYear(r + 1, 0, a), s.setHours(0, 0, 0, 0);
843
848
  const i = z(s, n), f = Y(t, 0);
844
849
  f.setFullYear(r, 0, a), f.setHours(0, 0, 0, 0);
845
850
  const c = z(f, n);
846
851
  return e.getTime() >= i.getTime() ? r + 1 : e.getTime() >= c.getTime() ? r : r - 1;
847
852
  }
848
- function Un(t, n) {
853
+ function $n(t, n) {
849
854
  var i, f, c, d;
850
855
  const e = oe(), r = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((f = (i = n == null ? void 0 : n.locale) == null ? void 0 : i.options) == null ? void 0 : f.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((d = (c = e.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, o = He(t, n), a = Y(t, 0);
851
856
  return a.setFullYear(o, 0, r), a.setHours(0, 0, 0, 0), z(a, n);
852
857
  }
853
858
  function et(t, n) {
854
- const e = _(t), r = +z(e, n) - +Un(e, n);
859
+ const e = L(t), r = +z(e, n) - +$n(e, n);
855
860
  return Math.round(r / Ue) + 1;
856
861
  }
857
862
  function O(t, n) {
@@ -1093,7 +1098,7 @@ const U = {
1093
1098
  },
1094
1099
  // Day of year
1095
1100
  D: function(t, n, e) {
1096
- const r = Xn(t);
1101
+ const r = Rn(t);
1097
1102
  return n === "Do" ? e.ordinalNumber(r, { unit: "dayOfYear" }) : O(r, n.length);
1098
1103
  },
1099
1104
  // Day of week
@@ -1420,7 +1425,7 @@ function J(t, n = "") {
1420
1425
  const e = t > 0 ? "-" : "+", r = Math.abs(t), o = O(Math.trunc(r / 60), 2), a = O(r % 60, 2);
1421
1426
  return e + o + n + a;
1422
1427
  }
1423
- const _e = (t, n) => {
1428
+ const Ie = (t, n) => {
1424
1429
  switch (t) {
1425
1430
  case "P":
1426
1431
  return n.date({ width: "short" });
@@ -1444,10 +1449,10 @@ const _e = (t, n) => {
1444
1449
  default:
1445
1450
  return n.time({ width: "full" });
1446
1451
  }
1447
- }, zn = (t, n) => {
1452
+ }, Gn = (t, n) => {
1448
1453
  const e = t.match(/(P+)(p+)?/) || [], r = e[1], o = e[2];
1449
1454
  if (!o)
1450
- return _e(t, n);
1455
+ return Ie(t, n);
1451
1456
  let a;
1452
1457
  switch (r) {
1453
1458
  case "P":
@@ -1464,47 +1469,47 @@ const _e = (t, n) => {
1464
1469
  a = n.dateTime({ width: "full" });
1465
1470
  break;
1466
1471
  }
1467
- return a.replace("{{date}}", _e(r, n)).replace("{{time}}", tt(o, n));
1468
- }, Te = {
1472
+ return a.replace("{{date}}", Ie(r, n)).replace("{{time}}", tt(o, n));
1473
+ }, ke = {
1469
1474
  p: tt,
1470
- P: zn
1471
- }, Jn = /^D+$/, Zn = /^Y+$/, Kn = ["D", "DD", "YY", "YYYY"];
1475
+ P: Gn
1476
+ }, Qn = /^D+$/, Xn = /^Y+$/, Un = ["D", "DD", "YY", "YYYY"];
1472
1477
  function nt(t) {
1473
- return Jn.test(t);
1478
+ return Qn.test(t);
1474
1479
  }
1475
1480
  function rt(t) {
1476
- return Zn.test(t);
1481
+ return Xn.test(t);
1477
1482
  }
1478
- function ke(t, n, e) {
1479
- const r = er(t, n, e);
1480
- if (console.warn(r), Kn.includes(t)) throw new RangeError(r);
1483
+ function Te(t, n, e) {
1484
+ const r = zn(t, n, e);
1485
+ if (console.warn(r), Un.includes(t)) throw new RangeError(r);
1481
1486
  }
1482
- function er(t, n, e) {
1487
+ function zn(t, n, e) {
1483
1488
  const r = t[0] === "Y" ? "years" : "days of the month";
1484
1489
  return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${n}\`) for formatting ${r} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1485
1490
  }
1486
- const tr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, nr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, rr = /^'([^]*?)'?$/, or = /''/g, ar = /[a-zA-Z]/;
1487
- function Ie(t, n, e) {
1491
+ const Jn = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Zn = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Kn = /^'([^]*?)'?$/, er = /''/g, tr = /[a-zA-Z]/;
1492
+ function _e(t, n, e) {
1488
1493
  var d, u, l, m;
1489
- const r = oe(), o = r.locale ?? Ze, a = r.firstWeekContainsDate ?? ((u = (d = r.locale) == null ? void 0 : d.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, s = r.weekStartsOn ?? ((m = (l = r.locale) == null ? void 0 : l.options) == null ? void 0 : m.weekStartsOn) ?? 0, i = _(t);
1494
+ const r = oe(), o = r.locale ?? Ze, a = r.firstWeekContainsDate ?? ((u = (d = r.locale) == null ? void 0 : d.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, s = r.weekStartsOn ?? ((m = (l = r.locale) == null ? void 0 : l.options) == null ? void 0 : m.weekStartsOn) ?? 0, i = L(t);
1490
1495
  if (!Je(i))
1491
1496
  throw new RangeError("Invalid time value");
1492
- let f = n.match(nr).map((y) => {
1497
+ let f = n.match(Zn).map((y) => {
1493
1498
  const M = y[0];
1494
1499
  if (M === "p" || M === "P") {
1495
- const D = Te[M];
1496
- return D(y, o.formatLong);
1500
+ const E = ke[M];
1501
+ return E(y, o.formatLong);
1497
1502
  }
1498
1503
  return y;
1499
- }).join("").match(tr).map((y) => {
1504
+ }).join("").match(Jn).map((y) => {
1500
1505
  if (y === "''")
1501
1506
  return { isToken: !1, value: "'" };
1502
1507
  const M = y[0];
1503
1508
  if (M === "'")
1504
- return { isToken: !1, value: ir(y) };
1509
+ return { isToken: !1, value: nr(y) };
1505
1510
  if (qe[M])
1506
1511
  return { isToken: !0, value: y };
1507
- if (M.match(ar))
1512
+ if (M.match(tr))
1508
1513
  throw new RangeError(
1509
1514
  "Format string contains an unescaped latin alphabet character `" + M + "`"
1510
1515
  );
@@ -1519,23 +1524,23 @@ function Ie(t, n, e) {
1519
1524
  return f.map((y) => {
1520
1525
  if (!y.isToken) return y.value;
1521
1526
  const M = y.value;
1522
- (rt(M) || nt(M)) && ke(M, n, String(t));
1523
- const D = qe[M[0]];
1524
- return D(i, M, o.localize, c);
1527
+ (rt(M) || nt(M)) && Te(M, n, String(t));
1528
+ const E = qe[M[0]];
1529
+ return E(i, M, o.localize, c);
1525
1530
  }).join("");
1526
1531
  }
1527
- function ir(t) {
1528
- const n = t.match(rr);
1529
- return n ? n[1].replace(or, "'") : t;
1532
+ function nr(t) {
1533
+ const n = t.match(Kn);
1534
+ return n ? n[1].replace(er, "'") : t;
1530
1535
  }
1531
- function sr() {
1536
+ function rr() {
1532
1537
  return Object.assign({}, oe());
1533
1538
  }
1534
- function ur(t) {
1535
- let e = _(t).getDay();
1539
+ function or(t) {
1540
+ let e = L(t).getDay();
1536
1541
  return e === 0 && (e = 7), e;
1537
1542
  }
1538
- function lr(t, n) {
1543
+ function ar(t, n) {
1539
1544
  const e = n instanceof Date ? Y(n, 0) : new n(0);
1540
1545
  return e.setFullYear(
1541
1546
  t.getFullYear(),
@@ -1548,7 +1553,7 @@ function lr(t, n) {
1548
1553
  t.getMilliseconds()
1549
1554
  ), e;
1550
1555
  }
1551
- const cr = 10;
1556
+ const ir = 10;
1552
1557
  class ot {
1553
1558
  constructor() {
1554
1559
  p(this, "subPriority", 0);
@@ -1557,7 +1562,7 @@ class ot {
1557
1562
  return !0;
1558
1563
  }
1559
1564
  }
1560
- class dr extends ot {
1565
+ class sr extends ot {
1561
1566
  constructor(n, e, r, o, a) {
1562
1567
  super(), this.value = n, this.validateValue = e, this.setValue = r, this.priority = o, a && (this.subPriority = a);
1563
1568
  }
@@ -1568,21 +1573,21 @@ class dr extends ot {
1568
1573
  return this.setValue(n, e, this.value, r);
1569
1574
  }
1570
1575
  }
1571
- class fr extends ot {
1576
+ class ur extends ot {
1572
1577
  constructor() {
1573
1578
  super(...arguments);
1574
- p(this, "priority", cr);
1579
+ p(this, "priority", ir);
1575
1580
  p(this, "subPriority", -1);
1576
1581
  }
1577
1582
  set(e, r) {
1578
- return r.timestampIsSet ? e : Y(e, lr(e, Date));
1583
+ return r.timestampIsSet ? e : Y(e, ar(e, Date));
1579
1584
  }
1580
1585
  }
1581
1586
  class P {
1582
1587
  run(n, e, r, o) {
1583
1588
  const a = this.parse(n, e, r, o);
1584
1589
  return a ? {
1585
- setter: new dr(
1590
+ setter: new sr(
1586
1591
  a.value,
1587
1592
  this.validate,
1588
1593
  this.set,
@@ -1596,7 +1601,7 @@ class P {
1596
1601
  return !0;
1597
1602
  }
1598
1603
  }
1599
- class pr extends P {
1604
+ class lr extends P {
1600
1605
  constructor() {
1601
1606
  super(...arguments);
1602
1607
  p(this, "priority", 140);
@@ -1657,7 +1662,7 @@ const q = {
1657
1662
  // 0 to 999, -0 to -999
1658
1663
  fourDigitsSigned: /^-?\d{1,4}/
1659
1664
  // 0 to 9999, -0 to -9999
1660
- }, G = {
1665
+ }, Q = {
1661
1666
  basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
1662
1667
  basic: /^([+-])(\d{2})(\d{2})|Z/,
1663
1668
  basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
@@ -1670,7 +1675,7 @@ function A(t, n) {
1670
1675
  rest: t.rest
1671
1676
  };
1672
1677
  }
1673
- function S(t, n) {
1678
+ function F(t, n) {
1674
1679
  const e = n.match(t);
1675
1680
  return e ? {
1676
1681
  value: parseInt(e[0], 10),
@@ -1688,39 +1693,39 @@ function X(t, n) {
1688
1693
  };
1689
1694
  const r = e[1] === "+" ? 1 : -1, o = e[2] ? parseInt(e[2], 10) : 0, a = e[3] ? parseInt(e[3], 10) : 0, s = e[5] ? parseInt(e[5], 10) : 0;
1690
1695
  return {
1691
- value: r * (o * ln + a * un + s * cn),
1696
+ value: r * (o * on + a * rn + s * an),
1692
1697
  rest: n.slice(e[0].length)
1693
1698
  };
1694
1699
  }
1695
1700
  function at(t) {
1696
- return S(q.anyDigitsSigned, t);
1701
+ return F(q.anyDigitsSigned, t);
1697
1702
  }
1698
1703
  function W(t, n) {
1699
1704
  switch (t) {
1700
1705
  case 1:
1701
- return S(q.singleDigit, n);
1706
+ return F(q.singleDigit, n);
1702
1707
  case 2:
1703
- return S(q.twoDigits, n);
1708
+ return F(q.twoDigits, n);
1704
1709
  case 3:
1705
- return S(q.threeDigits, n);
1710
+ return F(q.threeDigits, n);
1706
1711
  case 4:
1707
- return S(q.fourDigits, n);
1712
+ return F(q.fourDigits, n);
1708
1713
  default:
1709
- return S(new RegExp("^\\d{1," + t + "}"), n);
1714
+ return F(new RegExp("^\\d{1," + t + "}"), n);
1710
1715
  }
1711
1716
  }
1712
1717
  function ye(t, n) {
1713
1718
  switch (t) {
1714
1719
  case 1:
1715
- return S(q.singleDigitSigned, n);
1720
+ return F(q.singleDigitSigned, n);
1716
1721
  case 2:
1717
- return S(q.twoDigitsSigned, n);
1722
+ return F(q.twoDigitsSigned, n);
1718
1723
  case 3:
1719
- return S(q.threeDigitsSigned, n);
1724
+ return F(q.threeDigitsSigned, n);
1720
1725
  case 4:
1721
- return S(q.fourDigitsSigned, n);
1726
+ return F(q.fourDigitsSigned, n);
1722
1727
  default:
1723
- return S(new RegExp("^-?\\d{1," + t + "}"), n);
1728
+ return F(new RegExp("^-?\\d{1," + t + "}"), n);
1724
1729
  }
1725
1730
  }
1726
1731
  function Be(t) {
@@ -1754,7 +1759,7 @@ function it(t, n) {
1754
1759
  function st(t) {
1755
1760
  return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0;
1756
1761
  }
1757
- class mr extends P {
1762
+ class cr extends P {
1758
1763
  constructor() {
1759
1764
  super(...arguments);
1760
1765
  p(this, "priority", 130);
@@ -1795,7 +1800,7 @@ class mr extends P {
1795
1800
  return e.setFullYear(s, 0, 1), e.setHours(0, 0, 0, 0), e;
1796
1801
  }
1797
1802
  }
1798
- class hr extends P {
1803
+ class dr extends P {
1799
1804
  constructor() {
1800
1805
  super(...arguments);
1801
1806
  p(this, "priority", 130);
@@ -1854,7 +1859,7 @@ class hr extends P {
1854
1859
  return e.setFullYear(i, 0, a.firstWeekContainsDate), e.setHours(0, 0, 0, 0), z(e, a);
1855
1860
  }
1856
1861
  }
1857
- class yr extends P {
1862
+ class fr extends P {
1858
1863
  constructor() {
1859
1864
  super(...arguments);
1860
1865
  p(this, "priority", 130);
@@ -1884,7 +1889,7 @@ class yr extends P {
1884
1889
  return a.setFullYear(o, 0, 4), a.setHours(0, 0, 0, 0), ne(a);
1885
1890
  }
1886
1891
  }
1887
- class gr extends P {
1892
+ class pr extends P {
1888
1893
  constructor() {
1889
1894
  super(...arguments);
1890
1895
  p(this, "priority", 130);
@@ -1897,7 +1902,7 @@ class gr extends P {
1897
1902
  return e.setFullYear(o, 0, 1), e.setHours(0, 0, 0, 0), e;
1898
1903
  }
1899
1904
  }
1900
- class br extends P {
1905
+ class mr extends P {
1901
1906
  constructor() {
1902
1907
  super(...arguments);
1903
1908
  p(this, "priority", 120);
@@ -1959,7 +1964,7 @@ class br extends P {
1959
1964
  return e.setMonth((o - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
1960
1965
  }
1961
1966
  }
1962
- class wr extends P {
1967
+ class hr extends P {
1963
1968
  constructor() {
1964
1969
  super(...arguments);
1965
1970
  p(this, "priority", 120);
@@ -2021,7 +2026,7 @@ class wr extends P {
2021
2026
  return e.setMonth((o - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
2022
2027
  }
2023
2028
  }
2024
- class vr extends P {
2029
+ class yr extends P {
2025
2030
  constructor() {
2026
2031
  super(...arguments);
2027
2032
  p(this, "incompatibleTokens", [
@@ -2046,7 +2051,7 @@ class vr extends P {
2046
2051
  switch (r) {
2047
2052
  case "M":
2048
2053
  return A(
2049
- S(q.month, e),
2054
+ F(q.month, e),
2050
2055
  a
2051
2056
  );
2052
2057
  case "MM":
@@ -2083,7 +2088,7 @@ class vr extends P {
2083
2088
  return e.setMonth(o, 1), e.setHours(0, 0, 0, 0), e;
2084
2089
  }
2085
2090
  }
2086
- class xr extends P {
2091
+ class gr extends P {
2087
2092
  constructor() {
2088
2093
  super(...arguments);
2089
2094
  p(this, "priority", 110);
@@ -2108,7 +2113,7 @@ class xr extends P {
2108
2113
  switch (r) {
2109
2114
  case "L":
2110
2115
  return A(
2111
- S(q.month, e),
2116
+ F(q.month, e),
2112
2117
  a
2113
2118
  );
2114
2119
  case "LL":
@@ -2145,11 +2150,11 @@ class xr extends P {
2145
2150
  return e.setMonth(o, 1), e.setHours(0, 0, 0, 0), e;
2146
2151
  }
2147
2152
  }
2148
- function Mr(t, n, e) {
2149
- const r = _(t), o = et(r, e) - n;
2153
+ function br(t, n, e) {
2154
+ const r = L(t), o = et(r, e) - n;
2150
2155
  return r.setDate(r.getDate() - o * 7), r;
2151
2156
  }
2152
- class Tr extends P {
2157
+ class wr extends P {
2153
2158
  constructor() {
2154
2159
  super(...arguments);
2155
2160
  p(this, "priority", 100);
@@ -2172,7 +2177,7 @@ class Tr extends P {
2172
2177
  parse(e, r, o) {
2173
2178
  switch (r) {
2174
2179
  case "w":
2175
- return S(q.week, e);
2180
+ return F(q.week, e);
2176
2181
  case "wo":
2177
2182
  return o.ordinalNumber(e, { unit: "week" });
2178
2183
  default:
@@ -2183,14 +2188,14 @@ class Tr extends P {
2183
2188
  return r >= 1 && r <= 53;
2184
2189
  }
2185
2190
  set(e, r, o, a) {
2186
- return z(Mr(e, o, a), a);
2191
+ return z(br(e, o, a), a);
2187
2192
  }
2188
2193
  }
2189
- function kr(t, n) {
2190
- const e = _(t), r = Ke(e) - n;
2194
+ function vr(t, n) {
2195
+ const e = L(t), r = Ke(e) - n;
2191
2196
  return e.setDate(e.getDate() - r * 7), e;
2192
2197
  }
2193
- class Cr extends P {
2198
+ class xr extends P {
2194
2199
  constructor() {
2195
2200
  super(...arguments);
2196
2201
  p(this, "priority", 100);
@@ -2214,7 +2219,7 @@ class Cr extends P {
2214
2219
  parse(e, r, o) {
2215
2220
  switch (r) {
2216
2221
  case "I":
2217
- return S(q.week, e);
2222
+ return F(q.week, e);
2218
2223
  case "Io":
2219
2224
  return o.ordinalNumber(e, { unit: "week" });
2220
2225
  default:
@@ -2225,10 +2230,10 @@ class Cr extends P {
2225
2230
  return r >= 1 && r <= 53;
2226
2231
  }
2227
2232
  set(e, r, o) {
2228
- return ne(kr(e, o));
2233
+ return ne(vr(e, o));
2229
2234
  }
2230
2235
  }
2231
- const Pr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Or = [
2236
+ const Mr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], kr = [
2232
2237
  31,
2233
2238
  29,
2234
2239
  31,
@@ -2242,7 +2247,7 @@ const Pr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Or = [
2242
2247
  30,
2243
2248
  31
2244
2249
  ];
2245
- class Dr extends P {
2250
+ class Tr extends P {
2246
2251
  constructor() {
2247
2252
  super(...arguments);
2248
2253
  p(this, "priority", 90);
@@ -2265,7 +2270,7 @@ class Dr extends P {
2265
2270
  parse(e, r, o) {
2266
2271
  switch (r) {
2267
2272
  case "d":
2268
- return S(q.date, e);
2273
+ return F(q.date, e);
2269
2274
  case "do":
2270
2275
  return o.ordinalNumber(e, { unit: "date" });
2271
2276
  default:
@@ -2274,13 +2279,13 @@ class Dr extends P {
2274
2279
  }
2275
2280
  validate(e, r) {
2276
2281
  const o = e.getFullYear(), a = st(o), s = e.getMonth();
2277
- return a ? r >= 1 && r <= Or[s] : r >= 1 && r <= Pr[s];
2282
+ return a ? r >= 1 && r <= kr[s] : r >= 1 && r <= Mr[s];
2278
2283
  }
2279
2284
  set(e, r, o) {
2280
2285
  return e.setDate(o), e.setHours(0, 0, 0, 0), e;
2281
2286
  }
2282
2287
  }
2283
- class Hr extends P {
2288
+ class Cr extends P {
2284
2289
  constructor() {
2285
2290
  super(...arguments);
2286
2291
  p(this, "priority", 90);
@@ -2307,7 +2312,7 @@ class Hr extends P {
2307
2312
  switch (r) {
2308
2313
  case "D":
2309
2314
  case "DD":
2310
- return S(q.dayOfYear, e);
2315
+ return F(q.dayOfYear, e);
2311
2316
  case "Do":
2312
2317
  return o.ordinalNumber(e, { unit: "date" });
2313
2318
  default:
@@ -2324,10 +2329,10 @@ class Hr extends P {
2324
2329
  }
2325
2330
  function Ee(t, n, e) {
2326
2331
  var u, l, m, y;
2327
- const r = oe(), o = (e == null ? void 0 : e.weekStartsOn) ?? ((l = (u = e == null ? void 0 : e.locale) == null ? void 0 : u.options) == null ? void 0 : l.weekStartsOn) ?? r.weekStartsOn ?? ((y = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : y.weekStartsOn) ?? 0, a = _(t), s = a.getDay(), f = (n % 7 + 7) % 7, c = 7 - o, d = n < 0 || n > 6 ? n - (s + c) % 7 : (f + c) % 7 - (s + c) % 7;
2332
+ const r = oe(), o = (e == null ? void 0 : e.weekStartsOn) ?? ((l = (u = e == null ? void 0 : e.locale) == null ? void 0 : u.options) == null ? void 0 : l.weekStartsOn) ?? r.weekStartsOn ?? ((y = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : y.weekStartsOn) ?? 0, a = L(t), s = a.getDay(), f = (n % 7 + 7) % 7, c = 7 - o, d = n < 0 || n > 6 ? n - (s + c) % 7 : (f + c) % 7 - (s + c) % 7;
2328
2333
  return Xe(a, d);
2329
2334
  }
2330
- class Br extends P {
2335
+ class Pr extends P {
2331
2336
  constructor() {
2332
2337
  super(...arguments);
2333
2338
  p(this, "priority", 90);
@@ -2364,7 +2369,7 @@ class Br extends P {
2364
2369
  return e = Ee(e, o, a), e.setHours(0, 0, 0, 0), e;
2365
2370
  }
2366
2371
  }
2367
- class Er extends P {
2372
+ class Or extends P {
2368
2373
  constructor() {
2369
2374
  super(...arguments);
2370
2375
  p(this, "priority", 90);
@@ -2429,7 +2434,7 @@ class Er extends P {
2429
2434
  return e = Ee(e, o, a), e.setHours(0, 0, 0, 0), e;
2430
2435
  }
2431
2436
  }
2432
- class Vr extends P {
2437
+ class Dr extends P {
2433
2438
  constructor() {
2434
2439
  super(...arguments);
2435
2440
  p(this, "priority", 90);
@@ -2494,11 +2499,11 @@ class Vr extends P {
2494
2499
  return e = Ee(e, o, a), e.setHours(0, 0, 0, 0), e;
2495
2500
  }
2496
2501
  }
2497
- function Fr(t, n) {
2498
- const e = _(t), r = ur(e), o = n - r;
2502
+ function Hr(t, n) {
2503
+ const e = L(t), r = or(e), o = n - r;
2499
2504
  return Xe(e, o);
2500
2505
  }
2501
- class Nr extends P {
2506
+ class Br extends P {
2502
2507
  constructor() {
2503
2508
  super(...arguments);
2504
2509
  p(this, "priority", 90);
@@ -2585,10 +2590,10 @@ class Nr extends P {
2585
2590
  return r >= 1 && r <= 7;
2586
2591
  }
2587
2592
  set(e, r, o) {
2588
- return e = Fr(e, o), e.setHours(0, 0, 0, 0), e;
2593
+ return e = Hr(e, o), e.setHours(0, 0, 0, 0), e;
2589
2594
  }
2590
2595
  }
2591
- class Sr extends P {
2596
+ class Er extends P {
2592
2597
  constructor() {
2593
2598
  super(...arguments);
2594
2599
  p(this, "priority", 80);
@@ -2629,7 +2634,7 @@ class Sr extends P {
2629
2634
  return e.setHours(Be(o), 0, 0, 0), e;
2630
2635
  }
2631
2636
  }
2632
- class Yr extends P {
2637
+ class Vr extends P {
2633
2638
  constructor() {
2634
2639
  super(...arguments);
2635
2640
  p(this, "priority", 80);
@@ -2670,7 +2675,7 @@ class Yr extends P {
2670
2675
  return e.setHours(Be(o), 0, 0, 0), e;
2671
2676
  }
2672
2677
  }
2673
- class Wr extends P {
2678
+ class Fr extends P {
2674
2679
  constructor() {
2675
2680
  super(...arguments);
2676
2681
  p(this, "priority", 80);
@@ -2711,7 +2716,7 @@ class Wr extends P {
2711
2716
  return e.setHours(Be(o), 0, 0, 0), e;
2712
2717
  }
2713
2718
  }
2714
- class qr extends P {
2719
+ class Nr extends P {
2715
2720
  constructor() {
2716
2721
  super(...arguments);
2717
2722
  p(this, "priority", 70);
@@ -2720,7 +2725,7 @@ class qr extends P {
2720
2725
  parse(e, r, o) {
2721
2726
  switch (r) {
2722
2727
  case "h":
2723
- return S(q.hour12h, e);
2728
+ return F(q.hour12h, e);
2724
2729
  case "ho":
2725
2730
  return o.ordinalNumber(e, { unit: "hour" });
2726
2731
  default:
@@ -2735,7 +2740,7 @@ class qr extends P {
2735
2740
  return a && o < 12 ? e.setHours(o + 12, 0, 0, 0) : !a && o === 12 ? e.setHours(0, 0, 0, 0) : e.setHours(o, 0, 0, 0), e;
2736
2741
  }
2737
2742
  }
2738
- class Ar extends P {
2743
+ class Sr extends P {
2739
2744
  constructor() {
2740
2745
  super(...arguments);
2741
2746
  p(this, "priority", 70);
@@ -2744,7 +2749,7 @@ class Ar extends P {
2744
2749
  parse(e, r, o) {
2745
2750
  switch (r) {
2746
2751
  case "H":
2747
- return S(q.hour23h, e);
2752
+ return F(q.hour23h, e);
2748
2753
  case "Ho":
2749
2754
  return o.ordinalNumber(e, { unit: "hour" });
2750
2755
  default:
@@ -2758,7 +2763,7 @@ class Ar extends P {
2758
2763
  return e.setHours(o, 0, 0, 0), e;
2759
2764
  }
2760
2765
  }
2761
- class Lr extends P {
2766
+ class Yr extends P {
2762
2767
  constructor() {
2763
2768
  super(...arguments);
2764
2769
  p(this, "priority", 70);
@@ -2767,7 +2772,7 @@ class Lr extends P {
2767
2772
  parse(e, r, o) {
2768
2773
  switch (r) {
2769
2774
  case "K":
2770
- return S(q.hour11h, e);
2775
+ return F(q.hour11h, e);
2771
2776
  case "Ko":
2772
2777
  return o.ordinalNumber(e, { unit: "hour" });
2773
2778
  default:
@@ -2781,7 +2786,7 @@ class Lr extends P {
2781
2786
  return e.getHours() >= 12 && o < 12 ? e.setHours(o + 12, 0, 0, 0) : e.setHours(o, 0, 0, 0), e;
2782
2787
  }
2783
2788
  }
2784
- class _r extends P {
2789
+ class Wr extends P {
2785
2790
  constructor() {
2786
2791
  super(...arguments);
2787
2792
  p(this, "priority", 70);
@@ -2790,7 +2795,7 @@ class _r extends P {
2790
2795
  parse(e, r, o) {
2791
2796
  switch (r) {
2792
2797
  case "k":
2793
- return S(q.hour24h, e);
2798
+ return F(q.hour24h, e);
2794
2799
  case "ko":
2795
2800
  return o.ordinalNumber(e, { unit: "hour" });
2796
2801
  default:
@@ -2805,7 +2810,7 @@ class _r extends P {
2805
2810
  return e.setHours(a, 0, 0, 0), e;
2806
2811
  }
2807
2812
  }
2808
- class Ir extends P {
2813
+ class qr extends P {
2809
2814
  constructor() {
2810
2815
  super(...arguments);
2811
2816
  p(this, "priority", 60);
@@ -2814,7 +2819,7 @@ class Ir extends P {
2814
2819
  parse(e, r, o) {
2815
2820
  switch (r) {
2816
2821
  case "m":
2817
- return S(q.minute, e);
2822
+ return F(q.minute, e);
2818
2823
  case "mo":
2819
2824
  return o.ordinalNumber(e, { unit: "minute" });
2820
2825
  default:
@@ -2828,7 +2833,7 @@ class Ir extends P {
2828
2833
  return e.setMinutes(o, 0, 0), e;
2829
2834
  }
2830
2835
  }
2831
- class jr extends P {
2836
+ class Ar extends P {
2832
2837
  constructor() {
2833
2838
  super(...arguments);
2834
2839
  p(this, "priority", 50);
@@ -2837,7 +2842,7 @@ class jr extends P {
2837
2842
  parse(e, r, o) {
2838
2843
  switch (r) {
2839
2844
  case "s":
2840
- return S(q.second, e);
2845
+ return F(q.second, e);
2841
2846
  case "so":
2842
2847
  return o.ordinalNumber(e, { unit: "second" });
2843
2848
  default:
@@ -2851,7 +2856,7 @@ class jr extends P {
2851
2856
  return e.setSeconds(o, 0), e;
2852
2857
  }
2853
2858
  }
2854
- class Rr extends P {
2859
+ class Lr extends P {
2855
2860
  constructor() {
2856
2861
  super(...arguments);
2857
2862
  p(this, "priority", 30);
@@ -2865,7 +2870,7 @@ class Rr extends P {
2865
2870
  return e.setMilliseconds(o), e;
2866
2871
  }
2867
2872
  }
2868
- class $r extends P {
2873
+ class Ir extends P {
2869
2874
  constructor() {
2870
2875
  super(...arguments);
2871
2876
  p(this, "priority", 10);
@@ -2875,24 +2880,24 @@ class $r extends P {
2875
2880
  switch (r) {
2876
2881
  case "X":
2877
2882
  return X(
2878
- G.basicOptionalMinutes,
2883
+ Q.basicOptionalMinutes,
2879
2884
  e
2880
2885
  );
2881
2886
  case "XX":
2882
- return X(G.basic, e);
2887
+ return X(Q.basic, e);
2883
2888
  case "XXXX":
2884
2889
  return X(
2885
- G.basicOptionalSeconds,
2890
+ Q.basicOptionalSeconds,
2886
2891
  e
2887
2892
  );
2888
2893
  case "XXXXX":
2889
2894
  return X(
2890
- G.extendedOptionalSeconds,
2895
+ Q.extendedOptionalSeconds,
2891
2896
  e
2892
2897
  );
2893
2898
  case "XXX":
2894
2899
  default:
2895
- return X(G.extended, e);
2900
+ return X(Q.extended, e);
2896
2901
  }
2897
2902
  }
2898
2903
  set(e, r, o) {
@@ -2902,7 +2907,7 @@ class $r extends P {
2902
2907
  );
2903
2908
  }
2904
2909
  }
2905
- class Qr extends P {
2910
+ class _r extends P {
2906
2911
  constructor() {
2907
2912
  super(...arguments);
2908
2913
  p(this, "priority", 10);
@@ -2912,24 +2917,24 @@ class Qr extends P {
2912
2917
  switch (r) {
2913
2918
  case "x":
2914
2919
  return X(
2915
- G.basicOptionalMinutes,
2920
+ Q.basicOptionalMinutes,
2916
2921
  e
2917
2922
  );
2918
2923
  case "xx":
2919
- return X(G.basic, e);
2924
+ return X(Q.basic, e);
2920
2925
  case "xxxx":
2921
2926
  return X(
2922
- G.basicOptionalSeconds,
2927
+ Q.basicOptionalSeconds,
2923
2928
  e
2924
2929
  );
2925
2930
  case "xxxxx":
2926
2931
  return X(
2927
- G.extendedOptionalSeconds,
2932
+ Q.extendedOptionalSeconds,
2928
2933
  e
2929
2934
  );
2930
2935
  case "xxx":
2931
2936
  default:
2932
- return X(G.extended, e);
2937
+ return X(Q.extended, e);
2933
2938
  }
2934
2939
  }
2935
2940
  set(e, r, o) {
@@ -2939,7 +2944,7 @@ class Qr extends P {
2939
2944
  );
2940
2945
  }
2941
2946
  }
2942
- class Gr extends P {
2947
+ class jr extends P {
2943
2948
  constructor() {
2944
2949
  super(...arguments);
2945
2950
  p(this, "priority", 40);
@@ -2952,7 +2957,7 @@ class Gr extends P {
2952
2957
  return [Y(e, o * 1e3), { timestampIsSet: !0 }];
2953
2958
  }
2954
2959
  }
2955
- class Xr extends P {
2960
+ class Rr extends P {
2956
2961
  constructor() {
2957
2962
  super(...arguments);
2958
2963
  p(this, "priority", 20);
@@ -2965,115 +2970,115 @@ class Xr extends P {
2965
2970
  return [Y(e, o), { timestampIsSet: !0 }];
2966
2971
  }
2967
2972
  }
2968
- const Ur = {
2969
- G: new pr(),
2970
- y: new mr(),
2971
- Y: new hr(),
2972
- R: new yr(),
2973
- u: new gr(),
2974
- Q: new br(),
2975
- q: new wr(),
2976
- M: new vr(),
2977
- L: new xr(),
2978
- w: new Tr(),
2979
- I: new Cr(),
2980
- d: new Dr(),
2981
- D: new Hr(),
2982
- E: new Br(),
2983
- e: new Er(),
2984
- c: new Vr(),
2985
- i: new Nr(),
2986
- a: new Sr(),
2987
- b: new Yr(),
2988
- B: new Wr(),
2989
- h: new qr(),
2990
- H: new Ar(),
2991
- K: new Lr(),
2992
- k: new _r(),
2993
- m: new Ir(),
2994
- s: new jr(),
2995
- S: new Rr(),
2996
- X: new $r(),
2997
- x: new Qr(),
2998
- t: new Gr(),
2999
- T: new Xr()
3000
- }, zr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Jr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Zr = /^'([^]*?)'?$/, Kr = /''/g, eo = /\S/, to = /[a-zA-Z]/;
2973
+ const $r = {
2974
+ G: new lr(),
2975
+ y: new cr(),
2976
+ Y: new dr(),
2977
+ R: new fr(),
2978
+ u: new pr(),
2979
+ Q: new mr(),
2980
+ q: new hr(),
2981
+ M: new yr(),
2982
+ L: new gr(),
2983
+ w: new wr(),
2984
+ I: new xr(),
2985
+ d: new Tr(),
2986
+ D: new Cr(),
2987
+ E: new Pr(),
2988
+ e: new Or(),
2989
+ c: new Dr(),
2990
+ i: new Br(),
2991
+ a: new Er(),
2992
+ b: new Vr(),
2993
+ B: new Fr(),
2994
+ h: new Nr(),
2995
+ H: new Sr(),
2996
+ K: new Yr(),
2997
+ k: new Wr(),
2998
+ m: new qr(),
2999
+ s: new Ar(),
3000
+ S: new Lr(),
3001
+ X: new Ir(),
3002
+ x: new _r(),
3003
+ t: new jr(),
3004
+ T: new Rr()
3005
+ }, Gr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Qr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Xr = /^'([^]*?)'?$/, Ur = /''/g, zr = /\S/, Jr = /[a-zA-Z]/;
3001
3006
  function je(t, n, e, r) {
3002
- var M, D, L, I;
3003
- const o = sr(), a = o.locale ?? Ze, s = o.firstWeekContainsDate ?? ((D = (M = o.locale) == null ? void 0 : M.options) == null ? void 0 : D.firstWeekContainsDate) ?? 1, i = o.weekStartsOn ?? ((I = (L = o.locale) == null ? void 0 : L.options) == null ? void 0 : I.weekStartsOn) ?? 0;
3007
+ var M, E, I, j;
3008
+ const o = rr(), a = o.locale ?? Ze, s = o.firstWeekContainsDate ?? ((E = (M = o.locale) == null ? void 0 : M.options) == null ? void 0 : E.firstWeekContainsDate) ?? 1, i = o.weekStartsOn ?? ((j = (I = o.locale) == null ? void 0 : I.options) == null ? void 0 : j.weekStartsOn) ?? 0;
3004
3009
  if (n === "")
3005
- return t === "" ? _(e) : Y(e, NaN);
3010
+ return t === "" ? L(e) : Y(e, NaN);
3006
3011
  const f = {
3007
3012
  firstWeekContainsDate: s,
3008
3013
  weekStartsOn: i,
3009
3014
  locale: a
3010
- }, c = [new fr()], d = n.match(Jr).map((g) => {
3011
- const T = g[0];
3012
- if (T in Te) {
3013
- const V = Te[T];
3014
- return V(g, a.formatLong);
3015
+ }, c = [new ur()], d = n.match(Qr).map((w) => {
3016
+ const T = w[0];
3017
+ if (T in ke) {
3018
+ const N = ke[T];
3019
+ return N(w, a.formatLong);
3015
3020
  }
3016
- return g;
3017
- }).join("").match(zr), u = [];
3018
- for (let g of d) {
3019
- rt(g) && ke(g, n, t), nt(g) && ke(g, n, t);
3020
- const T = g[0], V = Ur[T];
3021
- if (V) {
3022
- const { incompatibleTokens: C } = V;
3021
+ return w;
3022
+ }).join("").match(Gr), u = [];
3023
+ for (let w of d) {
3024
+ rt(w) && Te(w, n, t), nt(w) && Te(w, n, t);
3025
+ const T = w[0], N = $r[T];
3026
+ if (N) {
3027
+ const { incompatibleTokens: C } = N;
3023
3028
  if (Array.isArray(C)) {
3024
- const H = u.find(
3025
- (x) => C.includes(x.token) || x.token === T
3029
+ const S = u.find(
3030
+ (g) => C.includes(g.token) || g.token === T
3026
3031
  );
3027
- if (H)
3032
+ if (S)
3028
3033
  throw new RangeError(
3029
- `The format string mustn't contain \`${H.fullToken}\` and \`${g}\` at the same time`
3034
+ `The format string mustn't contain \`${S.fullToken}\` and \`${w}\` at the same time`
3030
3035
  );
3031
- } else if (V.incompatibleTokens === "*" && u.length > 0)
3036
+ } else if (N.incompatibleTokens === "*" && u.length > 0)
3032
3037
  throw new RangeError(
3033
- `The format string mustn't contain \`${g}\` and any other token at the same time`
3038
+ `The format string mustn't contain \`${w}\` and any other token at the same time`
3034
3039
  );
3035
- u.push({ token: T, fullToken: g });
3036
- const E = V.run(
3040
+ u.push({ token: T, fullToken: w });
3041
+ const V = N.run(
3037
3042
  t,
3038
- g,
3043
+ w,
3039
3044
  a.match,
3040
3045
  f
3041
3046
  );
3042
- if (!E)
3047
+ if (!V)
3043
3048
  return Y(e, NaN);
3044
- c.push(E.setter), t = E.rest;
3049
+ c.push(V.setter), t = V.rest;
3045
3050
  } else {
3046
- if (T.match(to))
3051
+ if (T.match(Jr))
3047
3052
  throw new RangeError(
3048
3053
  "Format string contains an unescaped latin alphabet character `" + T + "`"
3049
3054
  );
3050
- if (g === "''" ? g = "'" : T === "'" && (g = no(g)), t.indexOf(g) === 0)
3051
- t = t.slice(g.length);
3055
+ if (w === "''" ? w = "'" : T === "'" && (w = Zr(w)), t.indexOf(w) === 0)
3056
+ t = t.slice(w.length);
3052
3057
  else
3053
3058
  return Y(e, NaN);
3054
3059
  }
3055
3060
  }
3056
- if (t.length > 0 && eo.test(t))
3061
+ if (t.length > 0 && zr.test(t))
3057
3062
  return Y(e, NaN);
3058
- const l = c.map((g) => g.priority).sort((g, T) => T - g).filter((g, T, V) => V.indexOf(g) === T).map(
3059
- (g) => c.filter((T) => T.priority === g).sort((T, V) => V.subPriority - T.subPriority)
3060
- ).map((g) => g[0]);
3061
- let m = _(e);
3063
+ const l = c.map((w) => w.priority).sort((w, T) => T - w).filter((w, T, N) => N.indexOf(w) === T).map(
3064
+ (w) => c.filter((T) => T.priority === w).sort((T, N) => N.subPriority - T.subPriority)
3065
+ ).map((w) => w[0]);
3066
+ let m = L(e);
3062
3067
  if (isNaN(m.getTime()))
3063
3068
  return Y(e, NaN);
3064
3069
  const y = {};
3065
- for (const g of l) {
3066
- if (!g.validate(m, f))
3070
+ for (const w of l) {
3071
+ if (!w.validate(m, f))
3067
3072
  return Y(e, NaN);
3068
- const T = g.set(m, y, f);
3073
+ const T = w.set(m, y, f);
3069
3074
  Array.isArray(T) ? (m = T[0], Object.assign(y, T[1])) : m = T;
3070
3075
  }
3071
3076
  return Y(e, m);
3072
3077
  }
3073
- function no(t) {
3074
- return t.match(Zr)[1].replace(Kr, "'");
3078
+ function Zr(t) {
3079
+ return t.match(Xr)[1].replace(Ur, "'");
3075
3080
  }
3076
- function B(t) {
3081
+ function D(t) {
3077
3082
  return typeof t < "u" && t !== null;
3078
3083
  }
3079
3084
  function ut(t, n = "hh:mm:ss") {
@@ -3081,19 +3086,19 @@ function ut(t, n = "hh:mm:ss") {
3081
3086
  return n.indexOf("ss") === -1 && t.split(":").length === 3 && (n = n + ":ss"), n.indexOf("A") > -1 ? (n = n.replace(/A/g, "a"), je(t.toLowerCase(), n, /* @__PURE__ */ new Date())) : je(t, n, /* @__PURE__ */ new Date());
3082
3087
  }
3083
3088
  function lt(t, n = "hh:mm:ss", e = "AM") {
3084
- return !t || isNaN(t.getTime()) ? "" : n.indexOf("A") > -1 ? (n = n.replace(/A/g, "a"), Ie(t, n).toUpperCase()) : Ie(t, n);
3089
+ return !t || isNaN(t.getTime()) ? "" : n.indexOf("A") > -1 ? (n = n.replace(/A/g, "a"), _e(t, n).toUpperCase()) : _e(t, n);
3085
3090
  }
3086
3091
  function ct(t, n) {
3087
3092
  let e = t || "hh:mm:ss";
3088
3093
  return n ? (e = e ? e.replace(/H/g, "h") : "hh:mm:ss a", e.indexOf("a") === -1 && e.indexOf("A") === -1 && (e = e + " a")) : e = e ? e.replace(/h/g, "H") : "HH:mm:ss", e;
3089
3094
  }
3090
- class ro {
3095
+ class Kr {
3091
3096
  constructor() {
3092
3097
  p(this, "hourStep", 1);
3093
3098
  p(this, "minuteStep", 1);
3094
3099
  p(this, "secondStep", 1);
3095
3100
  p(this, "use12Hours", !1);
3096
- p(this, "changedValue", b({ text: "", value: void 0 }));
3101
+ p(this, "changedValue", v({ text: "", value: void 0 }));
3097
3102
  p(this, "format", "HH:mm:ss");
3098
3103
  p(this, "temporaryHours");
3099
3104
  p(this, "temporaryMinutes");
@@ -3132,7 +3137,7 @@ class ro {
3132
3137
  * Get viewHours which is selected in `time-picker-panel` and its range is [12, 1, 2, ..., 11]
3133
3138
  */
3134
3139
  get viewHours() {
3135
- return this.use12Hours && B(this.temporaryHours) ? this.calculateViewHour(this.temporaryHours) : this.temporaryHours;
3140
+ return this.use12Hours && D(this.temporaryHours) ? this.calculateViewHour(this.temporaryHours) : this.temporaryHours;
3136
3141
  }
3137
3142
  get minutes() {
3138
3143
  return this.temporaryMinutes;
@@ -3160,7 +3165,7 @@ class ro {
3160
3165
  */
3161
3166
  get defaultViewHours() {
3162
3167
  const n = this.defaultOpenValue.getHours();
3163
- return this.use12Hours && B(n) ? this.calculateViewHour(n) : n;
3168
+ return this.use12Hours && D(n) ? this.calculateViewHour(n) : n;
3164
3169
  }
3165
3170
  /**
3166
3171
  * @description
@@ -3189,7 +3194,7 @@ class ro {
3189
3194
  return this.temporaryValue;
3190
3195
  }
3191
3196
  set value(n) {
3192
- n !== this.temporaryValue && (this.temporaryValue = n, B(this.temporaryValue) && Je(this.temporaryValue) ? (this.temporaryHours = this.temporaryValue.getHours(), this.temporaryMinutes = this.temporaryValue.getMinutes(), this.temporarySeconds = this.temporaryValue.getSeconds(), this.use12Hours && B(this.temporaryHours) && (this.temporarySelected12Hours = this.temporaryHours >= 12 ? "PM" : "AM")) : this.clearTimeValue());
3197
+ n !== this.temporaryValue && (this.temporaryValue = n, D(this.temporaryValue) && Je(this.temporaryValue) ? (this.temporaryHours = this.temporaryValue.getHours(), this.temporaryMinutes = this.temporaryValue.getMinutes(), this.temporarySeconds = this.temporaryValue.getSeconds(), this.use12Hours && D(this.temporaryHours) && (this.temporarySelected12Hours = this.temporaryHours >= 12 ? "PM" : "AM")) : this.clearTimeValue());
3193
3198
  }
3194
3199
  get selected12Hours() {
3195
3200
  return this.temporarySelected12Hours;
@@ -3204,7 +3209,7 @@ class ro {
3204
3209
  this.temporaryDefaultOpenValue !== n && (this.temporaryDefaultOpenValue = n, this.update());
3205
3210
  }
3206
3211
  get isEmpty() {
3207
- return !(B(this.temporaryHours) || B(this.temporaryMinutes) || B(this.temporarySeconds));
3212
+ return !(D(this.temporaryHours) || D(this.temporaryMinutes) || D(this.temporarySeconds));
3208
3213
  }
3209
3214
  setFormat(n) {
3210
3215
  this.format = n;
@@ -3222,7 +3227,7 @@ class ro {
3222
3227
  return e ? this : (this.setDefaultValueIfNil(), this.seconds = n, this);
3223
3228
  }
3224
3229
  setValue(n, e) {
3225
- return B(e) && (this.use12Hours = e), this.value = n, this;
3230
+ return D(e) && (this.use12Hours = e), this.value = n, this;
3226
3231
  }
3227
3232
  setValueByStep(n, e) {
3228
3233
  let r = Math.floor(n / e);
@@ -3233,10 +3238,10 @@ class ro {
3233
3238
  return this.defaultOpenValue = n, this;
3234
3239
  }
3235
3240
  setDefaultValueIfNil() {
3236
- B(this.temporaryValue) || (this.temporaryValue = new Date(this.defaultOpenValue));
3241
+ D(this.temporaryValue) || (this.temporaryValue = new Date(this.defaultOpenValue));
3237
3242
  }
3238
3243
  update() {
3239
- this.isEmpty ? this.temporaryValue = void 0 : (B(this.temporaryHours) ? this.temporaryValue.setHours(this.hours) : this.temporaryHours = this.defaultHours, B(this.temporaryMinutes) ? this.temporaryValue.setMinutes(this.minutes) : this.temporaryMinutes = this.defaultMinutes, B(this.temporarySeconds) ? this.temporaryValue.setSeconds(this.seconds) : this.temporarySeconds = this.defaultSeconds, this.use12Hours && (B(this.temporarySelected12Hours) || (this.temporarySelected12Hours = this.default12Hours), this.selected12Hours === "PM" && this.temporaryHours < 12 && (this.temporaryHours += 12, this.temporaryValue.setHours(this.temporaryHours)), this.selected12Hours === "AM" && this.temporaryHours >= 12 && (this.temporaryHours -= 12, this.temporaryValue.setHours(this.temporaryHours))), this.temporaryValue = new Date(this.temporaryValue), this.text = lt(
3244
+ this.isEmpty ? this.temporaryValue = void 0 : (D(this.temporaryHours) ? this.temporaryValue.setHours(this.hours) : this.temporaryHours = this.defaultHours, D(this.temporaryMinutes) ? this.temporaryValue.setMinutes(this.minutes) : this.temporaryMinutes = this.defaultMinutes, D(this.temporarySeconds) ? this.temporaryValue.setSeconds(this.seconds) : this.temporarySeconds = this.defaultSeconds, this.use12Hours && (D(this.temporarySelected12Hours) || (this.temporarySelected12Hours = this.default12Hours), this.selected12Hours === "PM" && this.temporaryHours < 12 && (this.temporaryHours += 12, this.temporaryValue.setHours(this.temporaryHours)), this.selected12Hours === "AM" && this.temporaryHours >= 12 && (this.temporaryHours -= 12, this.temporaryValue.setHours(this.temporaryHours))), this.temporaryValue = new Date(this.temporaryValue), this.text = lt(
3240
3245
  this.temporaryValue,
3241
3246
  this.format,
3242
3247
  this.selected12Hours
@@ -3253,8 +3258,8 @@ class ro {
3253
3258
  return e === "PM" && n > 12 ? n - 12 : e === "AM" && n === 0 ? 12 : n;
3254
3259
  }
3255
3260
  }
3256
- const oo = ["moz", "ms", "webkit"];
3257
- function ao() {
3261
+ const eo = ["moz", "ms", "webkit"];
3262
+ function to() {
3258
3263
  let t = 0;
3259
3264
  return (n) => {
3260
3265
  const e = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (e - t)), o = setTimeout(() => {
@@ -3263,19 +3268,19 @@ function ao() {
3263
3268
  return t = e + r, o;
3264
3269
  };
3265
3270
  }
3266
- function io() {
3271
+ function no() {
3267
3272
  if (typeof window > "u")
3268
3273
  return () => 0;
3269
3274
  if (window.requestAnimationFrame)
3270
3275
  return window.requestAnimationFrame.bind(window);
3271
- const t = oo.filter((n) => `${n}RequestAnimationFrame` in window)[0];
3272
- return t ? window[`${t}RequestAnimationFrame`] : ao();
3276
+ const t = eo.filter((n) => `${n}RequestAnimationFrame` in window)[0];
3277
+ return t ? window[`${t}RequestAnimationFrame`] : to();
3273
3278
  }
3274
- const so = io();
3275
- function uo(t, n, e, r, o, a) {
3279
+ const ro = no();
3280
+ function oo(t, n, e, r, o, a) {
3276
3281
  function s(d, u, l = 0, m, y) {
3277
- const M = i(u, m, y), D = d.children[0].children[M] || d.children[0].children[0];
3278
- f(d, D.offsetTop, l);
3282
+ const M = i(u, m, y), E = d.children[0].children[M] || d.children[0].children[0];
3283
+ f(d, E.offsetTop, l);
3279
3284
  }
3280
3285
  function i(d, u, l) {
3281
3286
  if (u === "hour") {
@@ -3310,7 +3315,7 @@ function uo(t, n, e, r, o, a) {
3310
3315
  return;
3311
3316
  }
3312
3317
  const y = (u - d.scrollTop) / l * 10;
3313
- so(() => {
3318
+ ro(() => {
3314
3319
  d.scrollTop += y, d.scrollTop !== u && f(d, u, l - 10);
3315
3320
  });
3316
3321
  }
@@ -3319,18 +3324,18 @@ function uo(t, n, e, r, o, a) {
3319
3324
  }
3320
3325
  return { scrollToSelected: s };
3321
3326
  }
3322
- function lo(t, n) {
3327
+ function ao(t, n) {
3323
3328
  function e(i) {
3324
- return i.index === t.viewHours || !B(t.viewHours) && i.index === t.defaultViewHours;
3329
+ return i.index === t.viewHours || !D(t.viewHours) && i.index === t.defaultViewHours;
3325
3330
  }
3326
3331
  function r(i) {
3327
- return i.index === t.minutes || !B(t.minutes) && i.index === t.defaultMinutes;
3332
+ return i.index === t.minutes || !D(t.minutes) && i.index === t.defaultMinutes;
3328
3333
  }
3329
3334
  function o(i) {
3330
- return i.index === t.seconds || !B(t.seconds) && i.index === t.defaultSeconds;
3335
+ return i.index === t.seconds || !D(t.seconds) && i.index === t.defaultSeconds;
3331
3336
  }
3332
3337
  function a(i) {
3333
- return i.value.toUpperCase() === t.selected12Hours || !B(t.selected12Hours) && i.value.toUpperCase() === t.default12Hours;
3338
+ return i.value.toUpperCase() === t.selected12Hours || !D(t.selected12Hours) && i.value.toUpperCase() === t.default12Hours;
3334
3339
  }
3335
3340
  function s(i, f) {
3336
3341
  let c = "";
@@ -3342,206 +3347,206 @@ function lo(t, n) {
3342
3347
  }
3343
3348
  const Ce = /* @__PURE__ */ re({
3344
3349
  name: "FTimePickerTimeView",
3345
- props: an,
3350
+ props: tn,
3346
3351
  emits: ["valueChange", "formatedValueChange"],
3347
3352
  setup(t, n) {
3348
- const e = "time-picker-panel", r = b(0), o = b([]), a = b([]), s = b([]), i = b([]), f = b(), c = b(), d = b(), u = b(), l = new ro(), {
3353
+ const e = "time-picker-panel", r = v(0), o = v([]), a = v([]), s = v([]), i = v([]), f = v(), c = v(), d = v(), u = v(), l = new Kr(), {
3349
3354
  scrollToSelected: m
3350
- } = uo(t, n, o, a, s, i), {
3355
+ } = oo(t, n, o, a, s, i), {
3351
3356
  getSelectedClass: y
3352
- } = lo(l, e), M = b(t.hourStep), D = b(t.minuteStep), L = b(t.secondStep), I = b(), g = b(""), T = b(), V = b(t.hideDisabledElements), C = b(0);
3353
- j(() => t.defaultOpenValue, (h) => {
3354
- B(h) && (I.value = h);
3355
- }), j(I, (h) => {
3356
- B(h) && l.setDefaultOpenValue(h);
3357
- }), I.value = t.defaultOpenValue, j(l.changedValue, (h) => {
3357
+ } = ao(l, e), M = v(t.hourStep), E = v(t.minuteStep), I = v(t.secondStep), j = v(), w = v(""), T = v(), N = v(t.hideDisabledElements), C = v(0);
3358
+ R(() => t.defaultOpenValue, (h) => {
3359
+ D(h) && (j.value = h);
3360
+ }), R(j, (h) => {
3361
+ D(h) && l.setDefaultOpenValue(h);
3362
+ }), j.value = t.defaultOpenValue, R(l.changedValue, (h) => {
3358
3363
  n.emit("valueChange", h);
3359
- }), j(() => t.modelValue, (h) => {
3360
- E(h);
3361
- }), j(() => t.format, (h) => {
3362
- B(h) ? g.value = h : g.value = "HH:mm:ss";
3363
- }), j(g, (h) => {
3364
- B(h) && (l.setFormat(g.value), C.value = 0, Z.value && C.value++, ae.value && C.value++, ie.value && C.value++, T.value && (C.value++, Fe()), r.value = C.value * 66);
3365
- }), j(() => t.use12Hours, (h) => {
3364
+ }), R(() => t.modelValue, (h) => {
3365
+ V(h);
3366
+ }), R(() => t.format, (h) => {
3367
+ D(h) ? w.value = h : w.value = "HH:mm:ss";
3368
+ }), R(w, (h) => {
3369
+ D(h) && (l.setFormat(w.value), C.value = 0, Z.value && C.value++, ae.value && C.value++, ie.value && C.value++, T.value && (C.value++, Fe()), r.value = C.value * 66);
3370
+ }), R(() => t.use12Hours, (h) => {
3366
3371
  T.value = h;
3367
- }), j(T, (h) => {
3368
- g.value = ct(g.value, h), l.setUse12Hours(h);
3369
- }), j(() => t.disabledHours, () => {
3372
+ }), R(T, (h) => {
3373
+ w.value = ct(w.value, h), l.setUse12Hours(h);
3374
+ }), R(() => t.disabledHours, () => {
3370
3375
  we();
3371
- }), j(() => t.disabledMinutes, () => {
3376
+ }), R(() => t.disabledMinutes, () => {
3372
3377
  pe();
3373
- }), j(() => t.disabledSeconds, () => {
3378
+ }), R(() => t.disabledSeconds, () => {
3374
3379
  se();
3375
3380
  });
3376
- function E(h) {
3377
- if (B(h)) {
3381
+ function V(h) {
3382
+ if (D(h)) {
3378
3383
  l.text = h;
3379
- const v = ut(l.text, g.value);
3380
- l.setValue(v, T.value), Ne();
3384
+ const x = ut(l.text, w.value);
3385
+ l.setValue(x, T.value), Ne();
3381
3386
  } else
3382
3387
  l.setUse12Hours(T.value);
3383
3388
  }
3384
- function H() {
3389
+ function S() {
3385
3390
  let h = [];
3386
- return t.disabledHours && (h = t.disabledHours(), T.value && (l.selected12Hours === "PM" ? h = h.filter((v) => v >= 12).map((v) => v > 12 ? v - 12 : v) : h = h.filter((v) => v < 12 || v === 24).map((v) => v === 24 || v === 0 ? 12 : v))), h;
3391
+ return t.disabledHours && (h = t.disabledHours(), T.value && (l.selected12Hours === "PM" ? h = h.filter((x) => x >= 12).map((x) => x > 12 ? x - 12 : x) : h = h.filter((x) => x < 12 || x === 24).map((x) => x === 24 || x === 0 ? 12 : x))), h;
3387
3392
  }
3388
- function x(h = "hour") {
3389
- return g.value ? g.value.indexOf(h[0].toUpperCase()) > -1 || g.value.indexOf(h[0].toLowerCase()) > -1 : !1;
3393
+ function g(h = "hour") {
3394
+ return w.value ? w.value.indexOf(h[0].toUpperCase()) > -1 || w.value.indexOf(h[0].toLowerCase()) > -1 : !1;
3390
3395
  }
3391
- const R = N(() => ({
3396
+ const _ = B(() => ({
3392
3397
  "time-picker-panel": !0,
3393
3398
  "time-picker-panel-column-3": !0,
3394
3399
  "time-picker-panel-placement-bottomLeft": !0,
3395
3400
  "f-area-show": !0
3396
- })), $ = N(() => ({
3401
+ })), $ = B(() => ({
3397
3402
  width: T.value ? `${r.value}px` : "100%"
3398
- })), Z = N(() => x("hour")), ae = N(() => x("minute")), ie = N(() => x("second"));
3399
- function be(h, v = 1, Q = 0) {
3400
- return v = Math.ceil(v), new Array(Math.ceil(h / v)).fill(0).map((F, ue) => (ue + Q) * v);
3403
+ })), Z = B(() => g("hour")), ae = B(() => g("minute")), ie = B(() => g("second"));
3404
+ function be(h, x = 1, G = 0) {
3405
+ return x = Math.ceil(x), new Array(Math.ceil(h / x)).fill(0).map((H, ue) => (ue + G) * x);
3401
3406
  }
3402
- function vt() {
3403
- if (Z.value && f.value && m(f.value, B(l.viewHours) ? l.viewHours : l.defaultViewHours, 0, "hour", l), ae.value && c.value && m(c.value, B(l.minutes) ? l.minutes : l.defaultMinutes, 0, "minute", l), ie.value && d.value && m(d.value, B(l.seconds) ? l.seconds : l.defaultSeconds, 0, "second", l), T.value && u.value) {
3404
- const v = (B(l.selected12Hours) ? l.selected12Hours : l.default12Hours) === "AM" ? 0 : 1;
3405
- m(u.value, v, 0, "12-hour", l);
3407
+ function ht() {
3408
+ if (Z.value && f.value && m(f.value, D(l.viewHours) ? l.viewHours : l.defaultViewHours, 0, "hour", l), ae.value && c.value && m(c.value, D(l.minutes) ? l.minutes : l.defaultMinutes, 0, "minute", l), ie.value && d.value && m(d.value, D(l.seconds) ? l.seconds : l.defaultSeconds, 0, "second", l), T.value && u.value) {
3409
+ const x = (D(l.selected12Hours) ? l.selected12Hours : l.default12Hours) === "AM" ? 0 : 1;
3410
+ m(u.value, x, 0, "12-hour", l);
3406
3411
  }
3407
3412
  }
3408
3413
  function we() {
3409
- let h = 24, v = 0;
3410
- T.value && (h = 12, v = 1);
3411
- const Q = H();
3412
- if (o.value = be(h, M.value, v).map((F) => ({
3413
- index: F,
3414
- disabled: Q.length > 0 && Q.indexOf(F) !== -1
3414
+ let h = 24, x = 0;
3415
+ T.value && (h = 12, x = 1);
3416
+ const G = S();
3417
+ if (o.value = be(h, M.value, x).map((H) => ({
3418
+ index: H,
3419
+ disabled: G.length > 0 && G.indexOf(H) !== -1
3415
3420
  })), T.value && o.value[o.value.length - 1].index === 12) {
3416
- const F = [...o.value];
3417
- F.unshift(F[F.length - 1]), F.splice(F.length - 1, 1), o.value = F;
3421
+ const H = [...o.value];
3422
+ H.unshift(H[H.length - 1]), H.splice(H.length - 1, 1), o.value = H;
3418
3423
  }
3419
- o.value = o.value.filter((F) => !(V.value && F.disabled));
3424
+ o.value = o.value.filter((H) => !(N.value && H.disabled));
3420
3425
  }
3421
3426
  function pe() {
3422
- a.value = be(60, D.value).map((h) => ({
3427
+ a.value = be(60, E.value).map((h) => ({
3423
3428
  index: h,
3424
3429
  disabled: !!t.disabledMinutes && t.disabledMinutes(l.hours).indexOf(h) !== -1
3425
- })), a.value = a.value.filter((h) => !(V.value && h.disabled));
3430
+ })), a.value = a.value.filter((h) => !(N.value && h.disabled));
3426
3431
  }
3427
3432
  function se() {
3428
- s.value = be(60, L.value).map((h) => ({
3433
+ s.value = be(60, I.value).map((h) => ({
3429
3434
  index: h,
3430
3435
  disabled: !!t.disabledSeconds && t.disabledSeconds(l.hours, l.minutes).indexOf(h) !== -1
3431
- })), s.value = s.value.filter((h) => !(V.value && h.disabled));
3436
+ })), s.value = s.value.filter((h) => !(N.value && h.disabled));
3432
3437
  }
3433
3438
  function Fe() {
3434
- const h = g.value.includes("A");
3439
+ const h = w.value.includes("A");
3435
3440
  i.value = [{
3436
3441
  index: 0,
3437
3442
  value: h ? "AM" : "am"
3438
3443
  }, {
3439
3444
  index: 1,
3440
3445
  value: h ? "PM" : "pm"
3441
- }], i.value = i.value.filter(() => !V.value);
3446
+ }], i.value = i.value.filter(() => !N.value);
3442
3447
  }
3443
- function xt(h, v) {
3444
- if (h.stopPropagation(), l.setHours(v.index, v.disabled), !v.disabled) {
3445
- if (m(f.value, v.index, 120, "hour", l), t.disabledMinutes !== null) {
3448
+ function yt(h, x) {
3449
+ if (h.stopPropagation(), l.setHours(x.index, x.disabled), !x.disabled) {
3450
+ if (m(f.value, x.index, 120, "hour", l), t.disabledMinutes !== null) {
3446
3451
  pe();
3447
- const Q = a.value.filter((F) => !F.disabled);
3448
- if (!Q.find((F) => F.index === l.minutes)) {
3452
+ const G = a.value.filter((H) => !H.disabled);
3453
+ if (!G.find((H) => H.index === l.minutes)) {
3449
3454
  const {
3450
- index: F,
3455
+ index: H,
3451
3456
  disabled: ue
3452
- } = Q[0];
3453
- l.setMinutes(F, ue);
3457
+ } = G[0];
3458
+ l.setMinutes(H, ue);
3454
3459
  }
3455
3460
  }
3456
3461
  (t.disabledSeconds !== null || t.disabledMinutes !== null) && se();
3457
3462
  }
3458
3463
  }
3459
- function Mt(h, v) {
3460
- h.stopPropagation(), l.selected12Hours = v.value, we(), pe(), se(), m(u.value, v.index, 120, "12-hour", l);
3464
+ function gt(h, x) {
3465
+ h.stopPropagation(), l.selected12Hours = x.value, we(), pe(), se(), m(u.value, x.index, 120, "12-hour", l);
3461
3466
  }
3462
- function Tt(h, v) {
3463
- if (h.stopPropagation(), l.setMinutes(v.index, v.disabled), !v.disabled && (m(c.value, v.index, 120, "minute", l), t.disabledSeconds !== null)) {
3467
+ function bt(h, x) {
3468
+ if (h.stopPropagation(), l.setMinutes(x.index, x.disabled), !x.disabled && (m(c.value, x.index, 120, "minute", l), t.disabledSeconds !== null)) {
3464
3469
  se();
3465
- const Q = s.value.filter((F) => !F.disabled);
3466
- if (!Q.find((F) => F.index === l.seconds)) {
3470
+ const G = s.value.filter((H) => !H.disabled);
3471
+ if (!G.find((H) => H.index === l.seconds)) {
3467
3472
  const {
3468
- index: F,
3473
+ index: H,
3469
3474
  disabled: ue
3470
- } = Q[0];
3471
- l.setSeconds(F, ue);
3475
+ } = G[0];
3476
+ l.setSeconds(H, ue);
3472
3477
  }
3473
3478
  }
3474
3479
  }
3475
- function kt(h, v) {
3476
- h.stopPropagation(), l.setSeconds(v.index, v.disabled), !v.disabled && m(d.value, v.index, 120, "second", l);
3480
+ function wt(h, x) {
3481
+ h.stopPropagation(), l.setSeconds(x.index, x.disabled), !x.disabled && m(d.value, x.index, 120, "second", l);
3477
3482
  }
3478
3483
  function Ne() {
3479
3484
  we(), pe(), se(), Fe();
3480
3485
  }
3481
3486
  fe(() => {
3482
- g.value = t.format, T.value = t.use12Hours, E(t.modelValue), Ne(), setTimeout(() => {
3483
- vt();
3487
+ w.value = t.format, T.value = t.use12Hours, V(t.modelValue), Ne(), setTimeout(() => {
3488
+ ht();
3484
3489
  }, 10);
3485
3490
  });
3486
- function Ct() {
3487
- return t.showHeader ? w("div", {
3491
+ function vt() {
3492
+ return t.showHeader ? b("div", {
3488
3493
  class: e + "-combobox time-picker-panel-header",
3489
3494
  style: $.value
3490
- }, [Z.value && w("div", {
3495
+ }, [Z.value && b("div", {
3491
3496
  class: e + "-select",
3492
3497
  style: "height: 32px"
3493
- }, [w("ul", null, [w("li", {
3498
+ }, [b("ul", null, [b("li", {
3494
3499
  class: "time-header" + ae.value ? "time-header-split" : ""
3495
- }, [ve("时")])])]), ae.value && w("div", {
3500
+ }, [ve("时")])])]), ae.value && b("div", {
3496
3501
  class: e + "-select",
3497
3502
  style: "height: 32px"
3498
- }, [w("ul", null, [w("li", {
3503
+ }, [b("ul", null, [b("li", {
3499
3504
  class: "time-header" + ie.value ? "time-header-split" : ""
3500
- }, [ve("分")])])]), ie.value && w("div", {
3505
+ }, [ve("分")])])]), ie.value && b("div", {
3501
3506
  class: e + "-select",
3502
3507
  style: "height: 32px"
3503
- }, [w("ul", null, [w("li", {
3508
+ }, [b("ul", null, [b("li", {
3504
3509
  class: "time-header"
3505
- }, [ve("秒")])])]), t.use12Hours && w("div", {
3510
+ }, [ve("秒")])])]), t.use12Hours && b("div", {
3506
3511
  class: e + "-select",
3507
3512
  style: "height: 32px"
3508
- }, [w("ul", null, [w("li", {
3513
+ }, [b("ul", null, [b("li", {
3509
3514
  class: "time-header"
3510
3515
  }, null)])])]) : null;
3511
3516
  }
3512
- return () => w("div", {
3513
- class: R.value
3514
- }, [w("div", {
3517
+ return () => b("div", {
3518
+ class: _.value
3519
+ }, [b("div", {
3515
3520
  class: "farris-timer-picker"
3516
- }, [w("div", {
3521
+ }, [b("div", {
3517
3522
  class: e + "-inner"
3518
- }, [Ct(), w("div", {
3523
+ }, [vt(), b("div", {
3519
3524
  class: e + "-combobox",
3520
3525
  style: $.value
3521
- }, [Z.value && w("div", {
3526
+ }, [Z.value && b("div", {
3522
3527
  class: e + "-select",
3523
3528
  ref: f
3524
- }, [w("ul", null, [o.value.map((h) => w("li", {
3529
+ }, [b("ul", null, [o.value.map((h) => b("li", {
3525
3530
  class: y(h, "hour"),
3526
- onClick: (v) => xt(v, h)
3527
- }, [`${h.index}`]))])]), ae.value && w("div", {
3531
+ onClick: (x) => yt(x, h)
3532
+ }, [`${h.index}`]))])]), ae.value && b("div", {
3528
3533
  class: e + "-select",
3529
3534
  ref: c
3530
- }, [w("ul", null, [a.value.map((h) => w("li", {
3535
+ }, [b("ul", null, [a.value.map((h) => b("li", {
3531
3536
  class: y(h, "minute"),
3532
- onClick: (v) => Tt(v, h)
3533
- }, [`${h.index}`]))])]), ie.value && w("div", {
3537
+ onClick: (x) => bt(x, h)
3538
+ }, [`${h.index}`]))])]), ie.value && b("div", {
3534
3539
  class: e + "-select",
3535
3540
  ref: d
3536
- }, [w("ul", null, [s.value.map((h) => w("li", {
3541
+ }, [b("ul", null, [s.value.map((h) => b("li", {
3537
3542
  class: y(h, "second"),
3538
- onClick: (v) => kt(v, h)
3539
- }, [`${h.index}`]))])]), T.value && w("div", {
3543
+ onClick: (x) => wt(x, h)
3544
+ }, [`${h.index}`]))])]), T.value && b("div", {
3540
3545
  class: e + "-select",
3541
3546
  ref: u
3542
- }, [w("ul", null, [i.value.map((h) => w("li", {
3547
+ }, [b("ul", null, [i.value.map((h) => b("li", {
3543
3548
  class: y(h, "12-hour"),
3544
- onClick: (v) => Mt(v, h)
3549
+ onClick: (x) => gt(x, h)
3545
3550
  }, [`${h.value}`]))])])])])])]);
3546
3551
  }
3547
3552
  }), te = /* @__PURE__ */ re({
@@ -3549,7 +3554,7 @@ const Ce = /* @__PURE__ */ re({
3549
3554
  props: De,
3550
3555
  emits: ["update:modelValue", "valueChange", "clear"],
3551
3556
  setup(t, n) {
3552
- const e = '<span class="f-icon f-icon-timepicker"></span>', r = b(t.modelValue), o = b(null), a = b(), s = N(() => ct(t.format, t.use12Hours));
3557
+ const e = '<span class="f-icon f-icon-timepicker"></span>', r = v(t.modelValue), o = v(null), a = v(), s = B(() => ct(t.format, t.use12Hours));
3553
3558
  function i() {
3554
3559
  r.value = "", n.emit("clear");
3555
3560
  }
@@ -3565,15 +3570,15 @@ const Ce = /* @__PURE__ */ re({
3565
3570
  function d(u) {
3566
3571
  r.value = u.text;
3567
3572
  }
3568
- return f(), j(() => t.modelValue, (u) => {
3573
+ return f(), R(() => t.modelValue, (u) => {
3569
3574
  r.value = u;
3570
- }), j(r, (u) => {
3575
+ }), R(r, (u) => {
3571
3576
  n.emit("valueChange", u), n.emit("update:modelValue", u);
3572
- }), () => w(Yt, {
3577
+ }), () => b(Et, {
3573
3578
  ref: o,
3574
3579
  modelValue: r.value,
3575
3580
  "onUpdate:modelValue": (u) => r.value = u,
3576
- disable: t.disable,
3581
+ disable: t.disabled,
3577
3582
  readonly: t.readonly,
3578
3583
  editable: t.editable,
3579
3584
  buttonContent: e,
@@ -3582,20 +3587,20 @@ const Ce = /* @__PURE__ */ re({
3582
3587
  onClear: i,
3583
3588
  onBlur: c
3584
3589
  }, {
3585
- default: () => [w(Ce, Pe({
3590
+ default: () => [b(Ce, Pe({
3586
3591
  ref: a
3587
3592
  }, t, {
3588
3593
  onValueChange: d
3589
3594
  }), null)]
3590
3595
  });
3591
3596
  }
3592
- }), co = /* @__PURE__ */ new Map([
3593
- ["appearance", Wt]
3597
+ }), io = /* @__PURE__ */ new Map([
3598
+ ["appearance", Vt]
3594
3599
  ]);
3595
- function fo(t, n, e) {
3600
+ function so(t, n, e) {
3596
3601
  return n;
3597
3602
  }
3598
- const po = "https://json-schema.org/draft/2020-12/schema", mo = "https://farris-design.gitee.io/button-edit.schema.json", ho = "button-edit", yo = "A Farris Input Component", go = "object", bo = {
3603
+ const uo = "https://json-schema.org/draft/2020-12/schema", lo = "https://farris-design.gitee.io/button-edit.schema.json", co = "button-edit", fo = "A Farris Input Component", po = "object", mo = {
3599
3604
  id: {
3600
3605
  description: "The unique identifier for a Input Group",
3601
3606
  type: "string"
@@ -3779,18 +3784,18 @@ const po = "https://json-schema.org/draft/2020-12/schema", mo = "https://farris-
3779
3784
  type: "string",
3780
3785
  default: ""
3781
3786
  }
3782
- }, wo = [
3787
+ }, ho = [
3783
3788
  "id",
3784
3789
  "type"
3785
- ], vo = {
3786
- $schema: po,
3787
- $id: mo,
3788
- title: ho,
3789
- description: yo,
3790
- type: go,
3791
- properties: bo,
3792
- required: wo
3793
- }, xo = "buttonEdit", Mo = "A Farris Component", To = "object", ko = {
3790
+ ], yo = {
3791
+ $schema: uo,
3792
+ $id: lo,
3793
+ title: co,
3794
+ description: fo,
3795
+ type: po,
3796
+ properties: mo,
3797
+ required: ho
3798
+ }, go = "buttonEdit", bo = "A Farris Component", wo = "object", vo = {
3794
3799
  basic: {
3795
3800
  description: "Basic Infomation",
3796
3801
  title: "基本信息",
@@ -3872,11 +3877,11 @@ const po = "https://json-schema.org/draft/2020-12/schema", mo = "https://farris-
3872
3877
  }
3873
3878
  }
3874
3879
  }
3875
- }, Co = {
3876
- title: xo,
3877
- description: Mo,
3878
- type: To,
3879
- categories: ko
3880
+ }, xo = {
3881
+ title: go,
3882
+ description: bo,
3883
+ type: wo,
3884
+ categories: vo
3880
3885
  }, Ve = {
3881
3886
  /**
3882
3887
  * 组件标识
@@ -3983,23 +3988,23 @@ const po = "https://json-schema.org/draft/2020-12/schema", mo = "https://farris-
3983
3988
  * 打开前
3984
3989
  */
3985
3990
  beforeOpen: { type: Function, default: null }
3986
- }, dt = Qe(Ve, vo, co, fo, Co), Po = {
3991
+ }, dt = Ge(Ve, yo, io, so, xo), Mo = {
3987
3992
  popupContentPosition: { type: Object, default: { left: 0, top: 0 } },
3988
3993
  host: { type: Object },
3989
3994
  backgroundColor: { type: String, default: "" }
3990
- }, Oo = /* @__PURE__ */ re({
3995
+ }, ko = /* @__PURE__ */ re({
3991
3996
  name: "FOverlay",
3992
- props: Po,
3997
+ props: Mo,
3993
3998
  emits: ["click"],
3994
3999
  setup(t, n) {
3995
- const e = b(t.popupContentPosition), r = b(t.host), o = N(() => ({
4000
+ const e = v(t.popupContentPosition), r = v(t.host), o = B(() => ({
3996
4001
  backgroundColor: t.backgroundColor || "",
3997
4002
  pointerEvents: "auto"
3998
4003
  }));
3999
4004
  function a(i) {
4000
4005
  n.emit("click"), i.preventDefault(), i.stopPropagation();
4001
4006
  }
4002
- N(() => {
4007
+ B(() => {
4003
4008
  const i = r.value;
4004
4009
  if (i) {
4005
4010
  const f = i.getBoundingClientRect(), {
@@ -4014,34 +4019,34 @@ const po = "https://json-schema.org/draft/2020-12/schema", mo = "https://farris-
4014
4019
  }
4015
4020
  return e.value;
4016
4021
  });
4017
- const s = N(() => ({
4022
+ const s = B(() => ({
4018
4023
  // position: 'relative',
4019
4024
  // left: `${position.value.left}px`,
4020
4025
  // top: `${position.value.top}px`
4021
4026
  }));
4022
- return () => w(Dt, {
4027
+ return () => b(kt, {
4023
4028
  to: "body"
4024
4029
  }, {
4025
4030
  default: () => {
4026
4031
  var i, f;
4027
- return [w("div", {
4032
+ return [b("div", {
4028
4033
  class: "overlay-container",
4029
4034
  onClick: (c) => a(c),
4030
4035
  style: o.value
4031
- }, [w("div", {
4036
+ }, [b("div", {
4032
4037
  style: s.value
4033
4038
  }, [(f = (i = n.slots).default) == null ? void 0 : f.call(i)])])];
4034
4039
  }
4035
4040
  });
4036
4041
  }
4037
4042
  });
4038
- function Do(t) {
4043
+ function To(t) {
4039
4044
  if (t.content && t.content.render)
4040
4045
  return t.content.render;
4041
4046
  if (t.render && typeof t.render == "function")
4042
4047
  return t.render;
4043
4048
  }
4044
- function Ho(t) {
4049
+ function Co(t) {
4045
4050
  const n = document.createElement("div");
4046
4051
  n.style.display = "contents";
4047
4052
  let e;
@@ -4049,13 +4054,13 @@ function Ho(t) {
4049
4054
  }), o = () => {
4050
4055
  r(), e && e.unmount();
4051
4056
  };
4052
- return e = Ht({
4057
+ return e = Tt({
4053
4058
  setup() {
4054
- Bt(() => {
4059
+ Ct(() => {
4055
4060
  document.body.removeChild(n);
4056
4061
  });
4057
- const a = Do(t);
4058
- return () => w(Oo, {
4062
+ const a = To(t);
4063
+ return () => b(ko, {
4059
4064
  "popup-content-position": t.popupPosition,
4060
4065
  host: t.host,
4061
4066
  onClick: o,
@@ -4066,12 +4071,12 @@ function Ho(t) {
4066
4071
  }
4067
4072
  }), document.body.appendChild(n), e.mount(n), e;
4068
4073
  }
4069
- class Bo {
4074
+ class Po {
4070
4075
  static show(n) {
4071
- return Ho(n);
4076
+ return Co(n);
4072
4077
  }
4073
4078
  }
4074
- const Eo = Symbol("FModalService");
4079
+ const Oo = Symbol("FModalService");
4075
4080
  function ft(t, n) {
4076
4081
  function e() {
4077
4082
  const r = t.beforeOpen || t.beforeClickButton || null;
@@ -4087,26 +4092,26 @@ function ft(t, n) {
4087
4092
  return { judgeCanOpen: e };
4088
4093
  }
4089
4094
  function pt(t, n, e, r, o) {
4090
- const a = b(t.buttonBehavior), s = b(t.popupOnInput), i = N(() => ({
4095
+ const a = v(t.buttonBehavior), s = v(t.popupOnInput), i = B(() => ({
4091
4096
  "input-group-append": !0,
4092
4097
  "append-force-show": t.showButtonWhenDisabled && (t.readonly || t.disable)
4093
- })), { judgeCanOpen: f } = ft(t, o), c = N(() => t.showButtonWhenDisabled || (!t.editable || !t.readonly) && !t.disable), d = me(Eo, null), u = b();
4098
+ })), { judgeCanOpen: f } = ft(t, o), c = B(() => t.showButtonWhenDisabled || (!t.editable || !t.readonly) && !t.disable), d = me(Oo, null), u = v();
4094
4099
  async function l(M) {
4095
4100
  if (await f() && c.value) {
4096
- const D = !!n.slots.default;
4101
+ const E = !!n.slots.default;
4097
4102
  if (a.value === "Modal") {
4098
- const L = t.modalOptions, I = d == null ? void 0 : d.open({
4099
- ...L,
4103
+ const I = t.modalOptions, j = d == null ? void 0 : d.open({
4104
+ ...I,
4100
4105
  render: () => n.slots.default && n.slots.default()
4101
4106
  });
4102
- u.value = I == null ? void 0 : I.modalRef;
4107
+ u.value = j == null ? void 0 : j.modalRef;
4103
4108
  }
4104
- a.value === "Overlay" && Bo.show({
4109
+ a.value === "Overlay" && Po.show({
4105
4110
  // host: buttonEditRef.value,
4106
4111
  host: document.body,
4107
4112
  backgroundColor: "rgba(0,0,0,.15)",
4108
4113
  render: () => n.slots.default && n.slots.default()
4109
- }), D && a.value === "Popup" && r.togglePopup(!0), D && s.value && r.hidePopup(), n.emit("clickButton", { origin: M, value: t.modelValue });
4114
+ }), E && a.value === "Popup" && r.togglePopup(!0), E && s.value && r.hidePopup(), n.emit("clickButton", { origin: M, value: t.modelValue });
4110
4115
  }
4111
4116
  }
4112
4117
  function m(M) {
@@ -4123,12 +4128,12 @@ function pt(t, n, e, r, o) {
4123
4128
  modalRef: u
4124
4129
  };
4125
4130
  }
4126
- function mt(t, n, e, r, o, a) {
4127
- const s = b(!1), i = N(() => t.enableClear && !t.readonly && !t.disable), { changeTextBoxValue: f } = a;
4131
+ function Do(t, n, e, r, o, a) {
4132
+ const s = v(!1), i = B(() => t.enableClear && !t.readonly && !t.disable), { changeTextBoxValue: f } = a;
4128
4133
  function c(m) {
4129
4134
  s.value = m;
4130
4135
  }
4131
- j(o, () => {
4136
+ R(o, () => {
4132
4137
  c(!!o.value);
4133
4138
  });
4134
4139
  function d(m) {
@@ -4155,58 +4160,58 @@ function mt(t, n, e, r, o, a) {
4155
4160
  onMouseLeaveTextBox: l
4156
4161
  };
4157
4162
  }
4158
- function ht(t, n, e, r, o) {
4159
- const a = N(() => t.popupOnInput), s = N(() => t.popupOnFocus), { shouldPopupContent: i } = o, f = N(() => t.enableTitle ? e.value : ""), c = N(() => (t.disable || t.readonly) && !t.forcePlaceholder ? "" : t.placeholder), d = N(() => t.readonly || !t.editable), u = b(!1), l = N(() => !t.disable && u.value), m = N(() => ({
4163
+ function Ho(t, n, e, r, o) {
4164
+ const a = B(() => t.popupOnInput), s = B(() => t.popupOnFocus), { shouldPopupContent: i } = o, f = B(() => t.enableTitle ? e.value : ""), c = B(() => (t.disable || t.readonly) && !t.forcePlaceholder ? "" : t.placeholder), d = B(() => t.readonly || !t.editable), u = v(!1), l = B(() => !t.disable && u.value), m = B(() => ({
4160
4165
  "text-left": t.textAlign === "left",
4161
4166
  "text-center": t.textAlign === "center",
4162
4167
  "text-right": t.textAlign === "right",
4163
4168
  "form-control": !0,
4164
4169
  "f-utils-fill": !0
4165
- })), y = N(() => ({
4170
+ })), y = B(() => ({
4166
4171
  "input-group": !0,
4167
4172
  "f-state-disable": t.disable,
4168
4173
  "f-state-editable": t.editable && !t.disable && !t.readonly,
4169
4174
  "f-state-readonly": t.readonly && !t.disable,
4170
4175
  "f-state-focus": l.value
4171
4176
  }));
4172
- function M(x, R = !0) {
4173
- e.value !== x && (e.value = x, R && n.emit("change", x), n.emit("update:modelValue", x));
4177
+ function M(g, _ = !0) {
4178
+ e.value !== g && (e.value = g, _ && n.emit("change", g), n.emit("update:modelValue", g));
4174
4179
  }
4175
- function D(x) {
4176
- i.value = !1, M(x, !0);
4180
+ function E(g) {
4181
+ i.value = !1, M(g, !0);
4177
4182
  }
4178
- j(
4183
+ R(
4179
4184
  () => t.modelValue,
4180
- (x) => {
4181
- e.value = x;
4185
+ (g) => {
4186
+ e.value = g;
4182
4187
  }
4183
4188
  );
4184
- function L(x) {
4185
- u.value = !1, n.emit("blur", x), x.stopPropagation();
4189
+ function I(g) {
4190
+ u.value = !1, n.emit("blur", g), g.stopPropagation();
4186
4191
  }
4187
- function I(x) {
4188
- n.emit("click", x);
4192
+ function j(g) {
4193
+ n.emit("click", g);
4189
4194
  }
4190
- function g(x) {
4191
- t.disable || (u.value = !0, d.value || (n.emit("focus", x), s.value && !i.value && o.popup()));
4195
+ function w(g) {
4196
+ t.disable || (u.value = !0, d.value || (n.emit("focus", g), s.value && !i.value && o.popup()));
4192
4197
  }
4193
- function T(x) {
4194
- n.emit("input", x.target.value);
4195
- const R = x.target.value;
4196
- r.value = R, e.value !== R && M(R, !0), a.value && !i.value && o.popup();
4198
+ function T(g) {
4199
+ n.emit("input", g.target.value);
4200
+ const _ = g.target.value;
4201
+ r.value = _, e.value !== _ && M(_, !0), a.value && !i.value && o.popup();
4197
4202
  }
4198
- function V(x) {
4199
- x.target.tagName !== "INPUT" && x.preventDefault(), x.stopPropagation();
4203
+ function N(g) {
4204
+ g.target.tagName !== "INPUT" && g.preventDefault(), g.stopPropagation();
4200
4205
  }
4201
- function C(x) {
4202
- n.emit("keydown", x);
4206
+ function C(g) {
4207
+ n.emit("keydown", g);
4203
4208
  }
4204
- function E(x) {
4205
- x.key === "Enter" && (a.value || s.value) && o.hidePopup(), n.emit("keyup", x);
4209
+ function V(g) {
4210
+ g.key === "Enter" && (a.value || s.value) && o.hidePopup(), n.emit("keyup", g);
4206
4211
  }
4207
- function H(x) {
4208
- const R = x.target.value;
4209
- x.stopPropagation(), M(R);
4212
+ function S(g) {
4213
+ const _ = g.target.value;
4214
+ g.stopPropagation(), M(_);
4210
4215
  }
4211
4216
  return {
4212
4217
  hasFocusedTextBox: l,
@@ -4216,19 +4221,19 @@ function ht(t, n, e, r, o) {
4216
4221
  textBoxTitle: f,
4217
4222
  inputGroupClass: y,
4218
4223
  changeTextBoxValue: M,
4219
- commitValue: D,
4220
- onBlurTextBox: L,
4221
- onClickTextBox: I,
4222
- onFocusTextBox: g,
4224
+ commitValue: E,
4225
+ onBlurTextBox: I,
4226
+ onClickTextBox: j,
4227
+ onFocusTextBox: w,
4223
4228
  onInput: T,
4224
4229
  onKeyDownTextBox: C,
4225
- onKeyUpTextBox: E,
4226
- onMouseDownTextBox: V,
4227
- onTextBoxValueChange: H
4230
+ onKeyUpTextBox: V,
4231
+ onMouseDownTextBox: N,
4232
+ onTextBoxValueChange: S
4228
4233
  };
4229
4234
  }
4230
- function yt(t, n, e, r) {
4231
- const o = b(), a = b(!1), { judgeCanOpen: s } = ft(t, r);
4235
+ function mt(t, n, e, r) {
4236
+ const o = v(), a = v(!1), { judgeCanOpen: s } = ft(t, r);
4232
4237
  function i() {
4233
4238
  const u = o.value;
4234
4239
  u && u.show(e.value);
@@ -4252,8 +4257,8 @@ function yt(t, n, e, r) {
4252
4257
  }
4253
4258
  return { hidePopup: d, popup: c, shouldPopupContent: a, togglePopup: f, popoverRef: o };
4254
4259
  }
4255
- function gt(t, n, e) {
4256
- const r = b(), {
4260
+ function Bo(t, n, e) {
4261
+ const r = v(), {
4257
4262
  isTextBoxReadonly: o,
4258
4263
  textBoxClass: a,
4259
4264
  textBoxPlaceholder: s,
@@ -4268,9 +4273,9 @@ function gt(t, n, e) {
4268
4273
  onTextBoxValueChange: M
4269
4274
  } = e;
4270
4275
  return fe(() => {
4271
- var D, L;
4272
- t.selectOnCreated && ((D = r.value) == null || D.select()), t.focusOnCreated && ((L = r.value) == null || L.focus());
4273
- }), () => w("input", {
4276
+ var E, I;
4277
+ t.selectOnCreated && ((E = r.value) == null || E.select()), t.focusOnCreated && ((I = r.value) == null || I.focus());
4278
+ }), () => b("input", {
4274
4279
  ref: r,
4275
4280
  name: "input-group-value",
4276
4281
  autocomplete: t.autoComplete ? "on" : "off",
@@ -4294,17 +4299,17 @@ function gt(t, n, e) {
4294
4299
  onMousedown: y
4295
4300
  }, null);
4296
4301
  }
4297
- function bt(t, n, e) {
4298
- const r = b(t.separator), {
4302
+ function Eo(t, n, e) {
4303
+ const r = v(t.separator), {
4299
4304
  changeTextBoxValue: o
4300
- } = e, a = N(() => n.value ? n.value.split(r.value).map((i) => ({
4305
+ } = e, a = B(() => n.value ? n.value.split(r.value).map((i) => ({
4301
4306
  name: i,
4302
4307
  selectable: !0
4303
4308
  })) : []);
4304
4309
  function s(i) {
4305
4310
  o(i.map((f) => f.name).join(r.value), !0);
4306
4311
  }
4307
- return () => w(qt, {
4312
+ return () => b(Ft, {
4308
4313
  id: `${t.id}-tag-editor`,
4309
4314
  class: "form-control",
4310
4315
  data: a.value,
@@ -4313,7 +4318,7 @@ function bt(t, n, e) {
4313
4318
  onChange: s
4314
4319
  }, null);
4315
4320
  }
4316
- function wt(t, n, e, r) {
4321
+ function Vo(t, n, e, r) {
4317
4322
  const {
4318
4323
  buttonGroupClass: o,
4319
4324
  onClickButton: a,
@@ -4323,22 +4328,22 @@ function wt(t, n, e, r) {
4323
4328
  enableClearButton: f,
4324
4329
  showClearButton: c,
4325
4330
  onClearValue: d
4326
- } = r, u = b();
4331
+ } = r, u = v();
4327
4332
  return {
4328
- renderButtonGroup: () => w("div", {
4333
+ renderButtonGroup: () => b("div", {
4329
4334
  id: `${t.id}-button-group`,
4330
4335
  class: o.value
4331
- }, [f.value && Et(w("span", {
4336
+ }, [f.value && Pt(b("span", {
4332
4337
  class: "input-group-text input-group-clear",
4333
4338
  onClick: d
4334
- }, [w("i", {
4339
+ }, [b("i", {
4335
4340
  class: "f-icon modal_close"
4336
- }, null)]), [[Vt, c.value]]), n.slots.buttonContent ? w("span", {
4341
+ }, null)]), [[Ot, c.value]]), n.slots.buttonContent ? b("span", {
4337
4342
  class: "input-group-text input-group-append-button",
4338
4343
  onClick: a,
4339
4344
  onMouseenter: s,
4340
4345
  onMouseleave: i
4341
- }, [n.slots.buttonContent()]) : t.buttonContent ? w("span", {
4346
+ }, [n.slots.buttonContent()]) : t.buttonContent ? b("span", {
4342
4347
  class: "input-group-text input-group-append-button",
4343
4348
  innerHTML: t.buttonContent,
4344
4349
  ref: u,
@@ -4349,12 +4354,12 @@ function wt(t, n, e, r) {
4349
4354
  buttonHandleElement: u
4350
4355
  };
4351
4356
  }
4352
- function Vo(t, n, e) {
4353
- const r = b(t.popupMinWidth), {
4357
+ function Fo(t, n, e) {
4358
+ const r = v(t.popupMinWidth), {
4354
4359
  hidePopup: o,
4355
4360
  popoverRef: a
4356
4361
  } = e;
4357
- return () => w(At, {
4362
+ return () => b(Nt, {
4358
4363
  id: `${t.id}-popover`,
4359
4364
  ref: a,
4360
4365
  visible: !0,
@@ -4378,36 +4383,36 @@ const de = /* @__PURE__ */ re({
4378
4383
  props: Ve,
4379
4384
  emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
4380
4385
  setup(t, n) {
4381
- const e = b(), r = b(t.customClass), o = b(t.modelValue), a = yt(t, n, e, o), {
4386
+ const e = v(), r = v(t.customClass), o = v(t.modelValue), a = mt(t, n, e, o), {
4382
4387
  shouldPopupContent: s,
4383
4388
  hidePopup: i,
4384
4389
  togglePopup: f
4385
- } = a, c = pt(t, n, e, a, o), d = b(""), u = ht(t, n, o, d, a), {
4390
+ } = a, c = pt(t, n, e, a, o), d = v(""), u = Ho(t, n, o, d, a), {
4386
4391
  hasFocusedTextBox: l,
4387
4392
  commitValue: m,
4388
4393
  inputGroupClass: y
4389
- } = u, M = mt(t, n, o, l, d, u), {
4390
- onMouseEnterTextBox: D,
4391
- onMouseLeaveTextBox: L
4392
- } = M, I = N(() => {
4393
- const x = {
4394
+ } = u, M = Do(t, n, o, l, d, u), {
4395
+ onMouseEnterTextBox: E,
4396
+ onMouseLeaveTextBox: I
4397
+ } = M, j = B(() => {
4398
+ const g = {
4394
4399
  "f-button-edit": !0,
4395
4400
  "f-cmp-inputgroup": !0,
4396
4401
  "f-button-edit-nowrap": !t.wrapText
4397
4402
  };
4398
- return r.value && r.value.split(" ").reduce((R, $) => (R[$] = !0, R), x), x;
4403
+ return r.value && r.value.split(" ").reduce((_, $) => (_[$] = !0, _), g), g;
4399
4404
  });
4400
- function g() {
4401
- return t.multiSelect && t.inputType === "tag" ? bt(t, o, u) : gt(t, o, u);
4405
+ function w() {
4406
+ return t.multiSelect && t.inputType === "tag" ? Eo(t, o, u) : Bo(t, o, u);
4402
4407
  }
4403
- let T = g();
4404
- j([() => t.multiSelect, () => t.inputType], () => {
4405
- T = g();
4408
+ let T = w();
4409
+ R([() => t.multiSelect, () => t.inputType], () => {
4410
+ T = w();
4406
4411
  });
4407
4412
  const {
4408
- renderButtonGroup: V,
4413
+ renderButtonGroup: N,
4409
4414
  buttonHandleElement: C
4410
- } = wt(t, n, c, M), E = Vo(t, n, a), H = {
4415
+ } = Vo(t, n, c, M), V = Fo(t, n, a), S = {
4411
4416
  commitValue: m,
4412
4417
  elementRef: e,
4413
4418
  hidePopup: i,
@@ -4417,79 +4422,97 @@ const de = /* @__PURE__ */ re({
4417
4422
  C.value && t.buttonBehavior === "Modal" && C.value.click();
4418
4423
  },
4419
4424
  getModal: () => {
4420
- var x;
4421
- return t.buttonBehavior === "Modal" ? (x = c.modalRef.value) == null ? void 0 : x.value : null;
4425
+ var g;
4426
+ return t.buttonBehavior === "Modal" ? (g = c.modalRef.value) == null ? void 0 : g.value : null;
4422
4427
  }
4423
4428
  };
4424
4429
  return fe(() => {
4425
- e.value.componentInstance = H, window.onresize = () => {
4430
+ e.value.componentInstance = S, window.onresize = () => {
4426
4431
  document.body.click();
4427
4432
  };
4428
- }), n.expose(H), () => w(Ft, null, [w("div", Pe(n.attrs, {
4433
+ }), n.expose(S), () => b(Dt, null, [b("div", Pe(n.attrs, {
4429
4434
  ref: e,
4430
- class: I.value,
4435
+ class: j.value,
4431
4436
  id: t.id
4432
- }), [w("div", {
4437
+ }), [b("div", {
4433
4438
  id: `${t.id}-input-group`,
4434
4439
  class: y.value,
4435
- onMouseenter: D,
4436
- onMouseleave: L
4437
- }, [T(), V()])]), s.value && E()]);
4440
+ onMouseenter: E,
4441
+ onMouseleave: I
4442
+ }, [T(), N()])]), s.value && V()]);
4438
4443
  }
4439
- }), Fo = /* @__PURE__ */ re({
4444
+ });
4445
+ function No(t, n, e) {
4446
+ const {
4447
+ buttonGroupClass: r
4448
+ } = e, o = v();
4449
+ return {
4450
+ renderButtonGroup: () => b("div", {
4451
+ id: `${t.id}-button-group`,
4452
+ class: r.value
4453
+ }, [n.slots.buttonContent ? b("span", {
4454
+ class: "input-group-text input-group-append-button"
4455
+ }, [n.slots.buttonContent()]) : t.buttonContent ? b("span", {
4456
+ class: "input-group-text input-group-append-button",
4457
+ innerHTML: t.buttonContent,
4458
+ ref: o
4459
+ }, null) : null]),
4460
+ buttonHandleElement: o
4461
+ };
4462
+ }
4463
+ const So = /* @__PURE__ */ re({
4440
4464
  name: "FButtonEdit",
4441
4465
  props: Ve,
4442
4466
  emits: ["updateExtendInfo", "clear", "change", "click", "clickButton", "blur", "focus", "mouseEnterIcon", "mouseLeaveIcon", "keyup", "keydown", "inputClick", "input", "update:modelValue"],
4443
4467
  setup(t, n) {
4444
- const e = b(), r = me("design-item-context"), o = Lt(e, r), a = b(t.customClass), s = b(t.modelValue), i = yt(t, n, e, s), f = pt(t, n, e, i, s), c = b(""), d = ht(t, n, s, c, i), {
4445
- hasFocusedTextBox: u,
4446
- inputGroupClass: l
4447
- } = d, m = mt(t, n, s, u, c, d);
4468
+ const e = v(), r = me("design-item-context"), o = St(e, r), a = v(t.customClass), s = v(t.modelValue), i = mt(t, n, e, s), f = pt(t, n, e, i, s), c = v(), d = B(() => ({
4469
+ "f-cmp-inputgroup": !0,
4470
+ "input-group": !0,
4471
+ "f-state-disable": !0,
4472
+ "f-state-editable": !1,
4473
+ "f-state-readonly": !0
4474
+ }));
4448
4475
  fe(() => {
4449
4476
  e.value.componentInstance = o;
4450
4477
  }), n.expose(o.value);
4451
- const y = N(() => {
4452
- const g = {
4478
+ const u = B(() => {
4479
+ const m = {
4453
4480
  "f-button-edit": !0,
4454
4481
  "f-cmp-inputgroup": !0,
4455
4482
  "f-button-edit-nowrap": !t.wrapText
4456
4483
  };
4457
- return a.value && a.value.split(" ").reduce((T, V) => (T[V] = !0, T), g), g;
4458
- });
4459
- function M() {
4460
- return t.multiSelect && t.inputType === "tag" ? bt(t, s, d) : gt(t, s, d);
4461
- }
4462
- let D = M();
4463
- j([() => t.multiSelect, () => t.inputType], () => {
4464
- D = M();
4465
- });
4466
- const {
4467
- renderButtonGroup: L,
4468
- buttonHandleElement: I
4469
- } = wt(t, n, f, m);
4470
- return () => w("div", Pe(n.attrs, {
4484
+ return a.value && a.value.split(" ").reduce((y, M) => (y[M] = !0, y), m), m;
4485
+ }), {
4486
+ renderButtonGroup: l
4487
+ } = No(t, n, f);
4488
+ return () => b("div", Pe(n.attrs, {
4471
4489
  ref: e,
4472
- class: y.value,
4490
+ class: u.value,
4473
4491
  id: t.id
4474
- }), [w("div", {
4475
- class: l.value
4476
- }, [D(), L()])]);
4492
+ }), [b("div", {
4493
+ class: d.value
4494
+ }, [b("input", {
4495
+ ref: c,
4496
+ class: "form-control",
4497
+ readonly: !0,
4498
+ placeholder: t.placeholder
4499
+ }, null), l()])]);
4477
4500
  }
4478
4501
  });
4479
4502
  de.register = (t, n, e, r) => {
4480
4503
  t["button-edit"] = de, n["button-edit"] = dt;
4481
4504
  };
4482
4505
  de.registerDesigner = (t, n, e) => {
4483
- t["button-edit"] = Fo, n["button-edit"] = dt;
4506
+ t["button-edit"] = So, n["button-edit"] = dt;
4484
4507
  };
4485
- _t(de);
4486
- function No(t, n, e) {
4487
- var V;
4508
+ Yt(de);
4509
+ function Yo(t, n, e) {
4510
+ var N;
4488
4511
  function r() {
4489
4512
  e != null && e.resolveComponentContext && e.resolveComponentContext();
4490
4513
  }
4491
4514
  r();
4492
- const o = e && e.getStyles && e.getStyles() || "", a = e && e.getDesignerClass && e.getDesignerClass() || "", s = b();
4515
+ const o = e && e.getStyles && e.getStyles() || "", a = e && e.getDesignerClass && e.getDesignerClass() || "", s = v();
4493
4516
  function i() {
4494
4517
  return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : e && e.checkCanMoveComponent ? e.checkCanMoveComponent() : !0;
4495
4518
  }
@@ -4507,12 +4530,12 @@ function No(t, n, e) {
4507
4530
  return null;
4508
4531
  if (C.value.schema && C.value.schema.type === "component")
4509
4532
  return C.value;
4510
- const E = b(C == null ? void 0 : C.value.parent), H = u(E);
4511
- return H || null;
4533
+ const V = v(C == null ? void 0 : C.value.parent), S = u(V);
4534
+ return S || null;
4512
4535
  }
4513
4536
  function l(C = n) {
4514
- const { componentInstance: E, designerItemElementRef: H } = C;
4515
- return !E || !E.value ? null : E.value.canMove ? H : l(C.parent);
4537
+ const { componentInstance: V, designerItemElementRef: S } = C;
4538
+ return !V || !V.value ? null : V.value.canMove ? S : l(C.parent);
4516
4539
  }
4517
4540
  function m(C) {
4518
4541
  return !!e && e.canAccepts(C);
@@ -4522,25 +4545,25 @@ function No(t, n, e) {
4522
4545
  }
4523
4546
  function M() {
4524
4547
  }
4525
- function D(C, E) {
4526
- E && e != null && e.onAcceptMovedChildElement && e.onAcceptMovedChildElement(E);
4548
+ function E(C, V) {
4549
+ V && e != null && e.onAcceptMovedChildElement && e.onAcceptMovedChildElement(V);
4527
4550
  }
4528
- function L(C) {
4529
- const { componentType: E } = C;
4530
- let H = Me(E, C);
4531
- e && e.onResolveNewComponentSchema && (H = e.onResolveNewComponentSchema(C, H));
4532
- const x = E.toLowerCase().replace("-", "_");
4533
- return H && !H.id && H.type === E && (H.id = `${x}_${Math.random().toString().slice(2, 6)}`), H;
4551
+ function I(C, V) {
4552
+ const { componentType: S } = C;
4553
+ let g = Me(S, C, V);
4554
+ e && e.onResolveNewComponentSchema && (g = e.onResolveNewComponentSchema(C, g));
4555
+ const _ = S.toLowerCase().replace("-", "_");
4556
+ return g && !g.id && g.type === S && (g.id = `${_}_${Math.random().toString().slice(2, 6)}`), g;
4534
4557
  }
4535
- function I(C, E) {
4536
- const H = String(C.getAttribute("data-controltype")), x = C.getAttribute("data-feature"), R = x ? JSON.parse(x) : {};
4537
- R.parentComponentInstance = s.value;
4538
- let $ = Me(H, R);
4539
- e && e.onAcceptNewChildElement && ($ = e.onAcceptNewChildElement(C, E, $));
4540
- const Z = H.toLowerCase().replace("-", "_");
4541
- return $ && !$.id && $.type === H && ($.id = `${Z}_${Math.random().toString().slice(2, 6)}`), $;
4558
+ function j(C, V) {
4559
+ const S = String(C.getAttribute("data-controltype")), g = C.getAttribute("data-feature"), _ = g ? JSON.parse(g) : {};
4560
+ _.parentComponentInstance = s.value;
4561
+ let $ = Me(S, _);
4562
+ e && e.onAcceptNewChildElement && ($ = e.onAcceptNewChildElement(C, V, $));
4563
+ const Z = S.toLowerCase().replace("-", "_");
4564
+ return $ && !$.id && $.type === S && ($.id = `${Z}_${Math.random().toString().slice(2, 6)}`), $;
4542
4565
  }
4543
- function g(C) {
4566
+ function w(C) {
4544
4567
  }
4545
4568
  function T(...C) {
4546
4569
  if (e && e.getPropsConfig)
@@ -4553,7 +4576,7 @@ function No(t, n, e) {
4553
4576
  canNested: !d(),
4554
4577
  contents: n == null ? void 0 : n.schema.contents,
4555
4578
  elementRef: t,
4556
- parent: (V = n == null ? void 0 : n.parent) == null ? void 0 : V.componentInstance,
4579
+ parent: (N = n == null ? void 0 : n.parent) == null ? void 0 : N.componentInstance,
4557
4580
  schema: n == null ? void 0 : n.schema,
4558
4581
  styles: o,
4559
4582
  designerClass: a,
@@ -4563,16 +4586,16 @@ function No(t, n, e) {
4563
4586
  getDraggingDisplayText: y,
4564
4587
  getPropConfig: T,
4565
4588
  getDragScopeElement: M,
4566
- onAcceptMovedChildElement: D,
4567
- onAcceptNewChildElement: I,
4568
- onChildElementMovedOut: g,
4569
- addNewChildComponentSchema: L,
4589
+ onAcceptMovedChildElement: E,
4590
+ onAcceptNewChildElement: j,
4591
+ onChildElementMovedOut: w,
4592
+ addNewChildComponentSchema: I,
4570
4593
  updateDragAndDropRules: r,
4571
- triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved || b(!1),
4572
- triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || b(!1)
4594
+ triggerBelongedComponentToMoveWhenMoved: !!e && e.triggerBelongedComponentToMoveWhenMoved || v(!1),
4595
+ triggerBelongedComponentToDeleteWhenDeleted: !!e && e.triggerBelongedComponentToDeleteWhenDeleted || v(!1)
4573
4596
  }, s;
4574
4597
  }
4575
- class So {
4598
+ class Wo {
4576
4599
  constructor(n, e) {
4577
4600
  p(this, "componentId");
4578
4601
  p(this, "viewModelId");
@@ -4724,8 +4747,8 @@ p(ee, "fieldControlTypeMapping", {
4724
4747
  ]
4725
4748
  });
4726
4749
  let ge = ee;
4727
- const Yo = b(0);
4728
- class Wo extends So {
4750
+ const qo = v(0);
4751
+ class Ao extends Wo {
4729
4752
  constructor(n, e) {
4730
4753
  super(n, e);
4731
4754
  }
@@ -4748,8 +4771,8 @@ class Wo extends So {
4748
4771
  readonly: !0
4749
4772
  },
4750
4773
  type: {
4751
- description: "组件类型",
4752
- title: "控件类型",
4774
+ description: "编辑器类型",
4775
+ title: "编辑器类型",
4753
4776
  type: "string",
4754
4777
  refreshPanelAfterChanged: !0,
4755
4778
  $converter: "/converter/change-editor.converter",
@@ -4794,6 +4817,10 @@ class Wo extends So {
4794
4817
  r.changeControlType(n, i, e);
4795
4818
  break;
4796
4819
  }
4820
+ case "label": {
4821
+ i.needRefreshControlTree = !0;
4822
+ break;
4823
+ }
4797
4824
  }
4798
4825
  }
4799
4826
  };
@@ -4865,12 +4892,12 @@ class Wo extends So {
4865
4892
  require: (l = i.editor) == null ? void 0 : l.require
4866
4893
  }), a.contents.splice(s, 1), a.contents.splice(s, 0, f), r.schema = Object.assign(i, f), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
4867
4894
  (m) => m.classList.remove("dgComponentSelected")
4868
- ), Yo.value++;
4895
+ ), qo.value++;
4869
4896
  }
4870
4897
  getComponentConfig(n, e = {}, r = {}) {
4871
4898
  const o = Object.assign({
4872
- description: "组件信息",
4873
- title: "组件信息",
4899
+ description: "编辑器",
4900
+ title: "编辑器",
4874
4901
  type: "input-group",
4875
4902
  $converter: "/converter/property-editor.converter"
4876
4903
  }, e), a = Object.assign({
@@ -4898,7 +4925,7 @@ class Wo extends So {
4898
4925
  return { ...o, properties: { ...a } };
4899
4926
  }
4900
4927
  }
4901
- class qo extends Wo {
4928
+ class Lo extends Ao {
4902
4929
  constructor(n, e) {
4903
4930
  super(n, e);
4904
4931
  }
@@ -4938,9 +4965,9 @@ class qo extends Wo {
4938
4965
  });
4939
4966
  }
4940
4967
  }
4941
- function Ao(t, n) {
4968
+ function Io(t, n) {
4942
4969
  t.schema;
4943
- const e = b(!0), r = b(!0);
4970
+ const e = v(!0), r = v(!0);
4944
4971
  function o(u) {
4945
4972
  return !1;
4946
4973
  }
@@ -4972,7 +4999,7 @@ function Ao(t, n) {
4972
4999
  getPropsConfig: d
4973
5000
  };
4974
5001
  }
4975
- function Lo(t, n) {
5002
+ function _o(t, n) {
4976
5003
  const {
4977
5004
  canAccepts: e,
4978
5005
  checkCanDeleteComponent: r,
@@ -4982,9 +5009,9 @@ function Lo(t, n) {
4982
5009
  resolveComponentContext: i,
4983
5010
  triggerBelongedComponentToMoveWhenMoved: f,
4984
5011
  triggerBelongedComponentToDeleteWhenDeleted: c
4985
- } = Ao(t), d = t.schema;
5012
+ } = Io(t), d = t.schema;
4986
5013
  function u(l, m) {
4987
- return new qo(l, n).getPropertyConfig(d, m);
5014
+ return new Lo(l, n).getPropertyConfig(d, m);
4988
5015
  }
4989
5016
  return {
4990
5017
  canAccepts: e,
@@ -4998,20 +5025,20 @@ function Lo(t, n) {
4998
5025
  getPropsConfig: u
4999
5026
  };
5000
5027
  }
5001
- const _o = /* @__PURE__ */ re({
5028
+ const jo = /* @__PURE__ */ re({
5002
5029
  name: "FTimePickerDesign",
5003
5030
  props: De,
5004
5031
  emits: ["datePicked", "update:modelValue"],
5005
5032
  setup(t, n) {
5006
- const e = '<span class="f-icon f-icon-timepicker"></span>', r = b(t.modelValue), o = b(), a = b(), s = me("designer-host-service"), i = me("design-item-context"), f = Lo(i, s), c = No(a, i, f);
5033
+ const e = '<span class="f-icon f-icon-timepicker"></span>', r = v(t.modelValue), o = v(), a = v(), s = me("designer-host-service"), i = me("design-item-context"), f = _o(i, s), c = Yo(a, i, f);
5007
5034
  fe(() => {
5008
5035
  a.value.componentInstance = c;
5009
5036
  }), n.expose(c.value);
5010
5037
  function d() {
5011
5038
  }
5012
- return () => w("div", {
5039
+ return () => b("div", {
5013
5040
  ref: a
5014
- }, [w(de, {
5041
+ }, [b(de, {
5015
5042
  ref: o,
5016
5043
  modelValue: r.value,
5017
5044
  "onUpdate:modelValue": (u) => r.value = u,
@@ -5019,7 +5046,7 @@ const _o = /* @__PURE__ */ re({
5019
5046
  enableClear: !0,
5020
5047
  onClickButton: () => void 0
5021
5048
  }, {
5022
- default: () => [w(Nt("f-time-picker-time-view"), null, null)]
5049
+ default: () => [b(Ht("f-time-picker-time-view"), null, null)]
5023
5050
  })]);
5024
5051
  }
5025
5052
  });
@@ -5027,16 +5054,16 @@ te.install = (t) => {
5027
5054
  t.component(te.name, te).component(Ce.name, Ce);
5028
5055
  };
5029
5056
  te.register = (t, n, e, r) => {
5030
- t["time-picker"] = te, n["time-picker"] = Ge;
5057
+ t["time-picker"] = te, n["time-picker"] = Qe;
5031
5058
  };
5032
5059
  te.registerDesigner = (t, n, e) => {
5033
- t["time-picker"] = _o, n["time-picker"] = Ge;
5060
+ t["time-picker"] = jo, n["time-picker"] = Qe;
5034
5061
  };
5035
5062
  export {
5036
5063
  te as FTimePicker,
5037
5064
  Ce as FTimePickerTimeView,
5038
5065
  te as default,
5039
- Ge as propsResolver,
5066
+ Qe as propsResolver,
5040
5067
  De as timePickerProps,
5041
- an as timeProps
5068
+ tn as timeProps
5042
5069
  };