@hortiview/shared-components 2.25.0 → 2.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/{AlertBanner-BFzaGOer.js → AlertBanner-C9TvBTkH.js} +3 -3
  3. package/dist/{GenericCard-grpa3KJR.js → GenericCard-2v0lBsVu.js} +3 -3
  4. package/dist/{ListAreaService-B0x97Jin.js → ListAreaService-PaN1DrXf.js} +5 -5
  5. package/dist/assets/ContextMenu.css +1 -1
  6. package/dist/assets/FormSelect.css +1 -1
  7. package/dist/components/AlertBanner/AlertBanner.js +4 -4
  8. package/dist/components/AlertBanner/LinkBanner.js +3 -3
  9. package/dist/components/AllowedButton/AllowedButton.js +1 -1
  10. package/dist/components/AllowedIconButton/AllowedIconButton.js +1 -1
  11. package/dist/components/BaseView/BaseView.js +4 -4
  12. package/dist/components/BasicHeading/BasicHeading.js +4 -4
  13. package/dist/components/BlockView/BlockView.js +2 -2
  14. package/dist/components/ButtonCard/ButtonCard.js +3 -3
  15. package/dist/components/ChipCard/ChipCard.js +10 -10
  16. package/dist/components/ConfirmationModal/ConfirmationModal.js +3 -3
  17. package/dist/components/ContextMenu/ContextMenu.js +98 -68
  18. package/dist/components/DeleteModal/DeleteModal.js +4 -4
  19. package/dist/components/DetailContentWrapper/DetailContentWrapper.js +1 -1
  20. package/dist/components/Disclaimer/Disclaimer.js +3 -3
  21. package/dist/components/EmptyView/EmptyView.js +3 -3
  22. package/dist/components/ErrorBanner/ErrorBanner.js +5 -5
  23. package/dist/components/Filter/Filter.js +6 -6
  24. package/dist/components/FloatingActionButton/FloatingActionButton.js +3 -3
  25. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +1 -1
  26. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +4 -4
  27. package/dist/components/FormComponents/FormNumber/CustomTextField.js +1 -1
  28. package/dist/components/FormComponents/FormRadio/FormRadio.js +1 -1
  29. package/dist/components/FormComponents/FormSelect/FormSelect.js +104 -99
  30. package/dist/components/FormComponents/FormSelect/FormSelectService.d.ts +34 -0
  31. package/dist/components/FormComponents/FormSelect/FormSelectService.js +20 -0
  32. package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +2 -2
  33. package/dist/components/FormComponents/FormSlider/FormSlider.js +6 -6
  34. package/dist/components/FormComponents/FormText/FormText.js +2 -2
  35. package/dist/components/FormComponents/FormToggle/FormToggle.js +3 -3
  36. package/dist/components/GenericTable/GenericTable.js +5349 -5409
  37. package/dist/components/GenericTable/Mobile/GenericCard.js +4 -4
  38. package/dist/components/GenericTable/Mobile/GenericCardList.js +4 -4
  39. package/dist/components/HashTabView/HashTabView.js +6 -6
  40. package/dist/components/HeaderFilter/HeaderFilter.js +1 -1
  41. package/dist/components/Iconify/Iconify.js +1 -1
  42. package/dist/components/InfoCard/InfoCard.js +4 -4
  43. package/dist/components/InfoGroup/InfoGroup.js +3 -3
  44. package/dist/components/ListArea/ListArea.js +5 -5
  45. package/dist/components/ListArea/ListAreaService.js +6 -6
  46. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +1 -1
  47. package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +5 -5
  48. package/dist/components/Modal/Modal.js +150 -142
  49. package/dist/components/ModulePadding/ModulePadding.js +1 -1
  50. package/dist/components/OfflineView/OfflineView.js +3 -3
  51. package/dist/components/OnboardingBanner/OnboardingBanner.js +7 -7
  52. package/dist/components/OverflowTooltip/OverflowTooltip.js +1 -1
  53. package/dist/components/SearchBar/SearchBar.js +2 -2
  54. package/dist/components/Select/Select.js +1 -1
  55. package/dist/components/Stepper/Stepper.js +1 -1
  56. package/dist/components/Stepper/components/StepperButton.js +1 -1
  57. package/dist/components/Stepper/components/StepperHeader.js +2 -2
  58. package/dist/components/Stepper/components/StepperItem.js +2 -2
  59. package/dist/{defineProperty-B7N9EBBI.js → defineProperty-SoB5opr-.js} +51 -51
  60. package/dist/{es.string.iterator-DBx2A42F.js → es.string.iterator-BrOvr7F6.js} +78 -78
  61. package/dist/{find-eU9ab_u7.js → find-OaLSg5iu.js} +35 -35
  62. package/dist/includes-CSD_V_RY.js +112 -0
  63. package/dist/{index-Df2FYN-K.js → index-_-9ybP20.js} +76 -76
  64. package/dist/{index.es-C27R5Xae.js → index.es-0SkNh4dU.js} +2 -2
  65. package/dist/{index.es-B19PQgzU.js → index.es-B1cewJEy.js} +4 -4
  66. package/dist/{index.es-Z0aF-7Cn.js → index.es-BE1XL1dD.js} +3 -3
  67. package/dist/{index.es-BcnmoCEg.js → index.es-BSaDtduL.js} +6 -6
  68. package/dist/{index.es-Ci3O23C_.js → index.es-BVW2k-5y.js} +4 -4
  69. package/dist/index.es-BZkGOjEo.js +383 -0
  70. package/dist/{index.es-Cr1PSTyq.js → index.es-C2ejWpji.js} +3 -3
  71. package/dist/{index.es-DgncYOqO.js → index.es-C8AExypY.js} +2 -2
  72. package/dist/{index.es-BOvO8moE.js → index.es-CNrSvjAv.js} +5 -6
  73. package/dist/{index.es-l_3PNohs.js → index.es-CTKwa3Es.js} +1 -1
  74. package/dist/{index.es-BwafUoK3.js → index.es-CVPUG1pf.js} +785 -781
  75. package/dist/index.es-CpPnZRt7.js +604 -0
  76. package/dist/{index.es-DHoIQ8lu.js → index.es-CwgwR6SB.js} +1 -1
  77. package/dist/{index.es-BOG3_7IM.js → index.es-DHL1mFb3.js} +249 -317
  78. package/dist/{index.es-DHnCVuQ8.js → index.es-DPGGEmi5.js} +5 -5
  79. package/dist/{index.es-C6I3L4U4.js → index.es-DRC-9PLs.js} +43 -43
  80. package/dist/{index.es-C2IOpX7R.js → index.es-DVgCBhVx.js} +3020 -2798
  81. package/dist/{index.es-B9BUXRQn.js → index.es-DsOSfaF5.js} +39 -39
  82. package/dist/{index.es-DUrjyxNI.js → index.es-EXzC8zuP.js} +2 -2
  83. package/dist/index.es-LckFzDz-.js +1069 -0
  84. package/dist/{index.es-DdeCB7LW.js → index.es-Pc5KKhcb.js} +1 -1
  85. package/dist/{index.es-Cg57snrN.js → index.es-_PSuLbjQ.js} +15 -16
  86. package/dist/{index.es-DhlgTSuU.js → index.es-eZDofmng.js} +10 -13
  87. package/dist/{keyboard-DbG3oyPU.js → keyboard-DQ9O_Ke1.js} +21 -21
  88. package/dist/main.js +1 -1
  89. package/dist/{map-ZSVweMI1.js → map-BErBeya5.js} +85 -85
  90. package/dist/parse-int-BYd7r_4n.js +47 -0
  91. package/dist/{slicedToArray-DC6VAZtW.js → slicedToArray-C2Ed3239.js} +67 -67
  92. package/dist/string-trim-v5pkXsl2.js +32 -0
  93. package/package.json +4 -4
  94. package/dist/correct-is-regexp-logic-BJ-OWRrn.js +0 -44
  95. package/dist/index.es-CkB4776y.js +0 -391
  96. package/dist/index.es-D1iB_QlE.js +0 -608
  97. package/dist/index.es-DEBGoIKX.js +0 -1061
  98. package/dist/parse-int-CGpIXMGa.js +0 -75
@@ -0,0 +1,1069 @@
1
+ import { Z as gt, _ as ht, c as bt, a as wt, P as B } from "./index-_-9ybP20.js";
2
+ import { u as xt, c as Ot, _ as kt, b as Pt, d as Et } from "./index.es-DRC-9PLs.js";
3
+ import { g as At } from "./_commonjsHelpers-ByX85dGu.js";
4
+ import $t, { forwardRef as Rt, useRef as Ee, useImperativeHandle as Dt } from "react";
5
+ var Ae, Xe;
6
+ function Bt() {
7
+ return Xe || (Xe = 1, Ae = /* @__PURE__ */ gt()), Ae;
8
+ }
9
+ var Lt = Bt();
10
+ const jt = /* @__PURE__ */ At(Lt);
11
+ var L = "top", N = "bottom", z = "right", j = "left", De = "auto", de = [L, N, z, j], te = "start", ue = "end", St = "clippingParents", tt = "viewport", le = "popper", Tt = "reference", Ye = /* @__PURE__ */ de.reduce(function(e, t) {
12
+ return e.concat([t + "-" + te, t + "-" + ue]);
13
+ }, []), rt = /* @__PURE__ */ [].concat(de, [De]).reduce(function(e, t) {
14
+ return e.concat([t, t + "-" + te, t + "-" + ue]);
15
+ }, []), Ct = "beforeRead", Ht = "read", It = "afterRead", Wt = "beforeMain", Mt = "main", Nt = "afterMain", zt = "beforeWrite", Vt = "write", qt = "afterWrite", Ft = [Ct, Ht, It, Wt, Mt, Nt, zt, Vt, qt];
16
+ function F(e) {
17
+ return e ? (e.nodeName || "").toLowerCase() : null;
18
+ }
19
+ function H(e) {
20
+ if (e == null)
21
+ return window;
22
+ if (e.toString() !== "[object Window]") {
23
+ var t = e.ownerDocument;
24
+ return t && t.defaultView || window;
25
+ }
26
+ return e;
27
+ }
28
+ function Q(e) {
29
+ var t = H(e).Element;
30
+ return e instanceof t || e instanceof Element;
31
+ }
32
+ function M(e) {
33
+ var t = H(e).HTMLElement;
34
+ return e instanceof t || e instanceof HTMLElement;
35
+ }
36
+ function Be(e) {
37
+ if (typeof ShadowRoot > "u")
38
+ return !1;
39
+ var t = H(e).ShadowRoot;
40
+ return e instanceof t || e instanceof ShadowRoot;
41
+ }
42
+ function Xt(e) {
43
+ var t = e.state;
44
+ Object.keys(t.elements).forEach(function(r) {
45
+ var a = t.styles[r] || {}, n = t.attributes[r] || {}, o = t.elements[r];
46
+ !M(o) || !F(o) || (Object.assign(o.style, a), Object.keys(n).forEach(function(f) {
47
+ var s = n[f];
48
+ s === !1 ? o.removeAttribute(f) : o.setAttribute(f, s === !0 ? "" : s);
49
+ }));
50
+ });
51
+ }
52
+ function Yt(e) {
53
+ var t = e.state, r = {
54
+ popper: {
55
+ position: t.options.strategy,
56
+ left: "0",
57
+ top: "0",
58
+ margin: "0"
59
+ },
60
+ arrow: {
61
+ position: "absolute"
62
+ },
63
+ reference: {}
64
+ };
65
+ return Object.assign(t.elements.popper.style, r.popper), t.styles = r, t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow), function() {
66
+ Object.keys(t.elements).forEach(function(a) {
67
+ var n = t.elements[a], o = t.attributes[a] || {}, f = Object.keys(t.styles.hasOwnProperty(a) ? t.styles[a] : r[a]), s = f.reduce(function(i, u) {
68
+ return i[u] = "", i;
69
+ }, {});
70
+ !M(n) || !F(n) || (Object.assign(n.style, s), Object.keys(o).forEach(function(i) {
71
+ n.removeAttribute(i);
72
+ }));
73
+ });
74
+ };
75
+ }
76
+ const Ut = {
77
+ name: "applyStyles",
78
+ enabled: !0,
79
+ phase: "write",
80
+ fn: Xt,
81
+ effect: Yt,
82
+ requires: ["computeStyles"]
83
+ };
84
+ function q(e) {
85
+ return e.split("-")[0];
86
+ }
87
+ var K = Math.max, we = Math.min, re = Math.round;
88
+ function $e() {
89
+ var e = navigator.userAgentData;
90
+ return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
91
+ return t.brand + "/" + t.version;
92
+ }).join(" ") : navigator.userAgent;
93
+ }
94
+ function nt() {
95
+ return !/^((?!chrome|android).)*safari/i.test($e());
96
+ }
97
+ function ne(e, t, r) {
98
+ t === void 0 && (t = !1), r === void 0 && (r = !1);
99
+ var a = e.getBoundingClientRect(), n = 1, o = 1;
100
+ t && M(e) && (n = e.offsetWidth > 0 && re(a.width) / e.offsetWidth || 1, o = e.offsetHeight > 0 && re(a.height) / e.offsetHeight || 1);
101
+ var f = Q(e) ? H(e) : window, s = f.visualViewport, i = !nt() && r, u = (a.left + (i && s ? s.offsetLeft : 0)) / n, l = (a.top + (i && s ? s.offsetTop : 0)) / o, y = a.width / n, b = a.height / o;
102
+ return {
103
+ width: y,
104
+ height: b,
105
+ top: l,
106
+ right: u + y,
107
+ bottom: l + b,
108
+ left: u,
109
+ x: u,
110
+ y: l
111
+ };
112
+ }
113
+ function Le(e) {
114
+ var t = ne(e), r = e.offsetWidth, a = e.offsetHeight;
115
+ return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - a) <= 1 && (a = t.height), {
116
+ x: e.offsetLeft,
117
+ y: e.offsetTop,
118
+ width: r,
119
+ height: a
120
+ };
121
+ }
122
+ function at(e, t) {
123
+ var r = t.getRootNode && t.getRootNode();
124
+ if (e.contains(t))
125
+ return !0;
126
+ if (r && Be(r)) {
127
+ var a = t;
128
+ do {
129
+ if (a && e.isSameNode(a))
130
+ return !0;
131
+ a = a.parentNode || a.host;
132
+ } while (a);
133
+ }
134
+ return !1;
135
+ }
136
+ function X(e) {
137
+ return H(e).getComputedStyle(e);
138
+ }
139
+ function Gt(e) {
140
+ return ["table", "td", "th"].indexOf(F(e)) >= 0;
141
+ }
142
+ function G(e) {
143
+ return ((Q(e) ? e.ownerDocument : (
144
+ // $FlowFixMe[prop-missing]
145
+ e.document
146
+ )) || window.document).documentElement;
147
+ }
148
+ function xe(e) {
149
+ return F(e) === "html" ? e : (
150
+ // this is a quicker (but less type safe) way to save quite some bytes from the bundle
151
+ // $FlowFixMe[incompatible-return]
152
+ // $FlowFixMe[prop-missing]
153
+ e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
154
+ e.parentNode || // DOM Element detected
155
+ (Be(e) ? e.host : null) || // ShadowRoot detected
156
+ // $FlowFixMe[incompatible-call]: HTMLElement is a Node
157
+ G(e)
158
+ );
159
+ }
160
+ function Ue(e) {
161
+ return !M(e) || // https://github.com/popperjs/popper-core/issues/837
162
+ X(e).position === "fixed" ? null : e.offsetParent;
163
+ }
164
+ function Zt(e) {
165
+ var t = /firefox/i.test($e()), r = /Trident/i.test($e());
166
+ if (r && M(e)) {
167
+ var a = X(e);
168
+ if (a.position === "fixed")
169
+ return null;
170
+ }
171
+ var n = xe(e);
172
+ for (Be(n) && (n = n.host); M(n) && ["html", "body"].indexOf(F(n)) < 0; ) {
173
+ var o = X(n);
174
+ if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || t && o.willChange === "filter" || t && o.filter && o.filter !== "none")
175
+ return n;
176
+ n = n.parentNode;
177
+ }
178
+ return null;
179
+ }
180
+ function ve(e) {
181
+ for (var t = H(e), r = Ue(e); r && Gt(r) && X(r).position === "static"; )
182
+ r = Ue(r);
183
+ return r && (F(r) === "html" || F(r) === "body" && X(r).position === "static") ? t : r || Zt(e) || t;
184
+ }
185
+ function je(e) {
186
+ return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
187
+ }
188
+ function ce(e, t, r) {
189
+ return K(e, we(t, r));
190
+ }
191
+ function Jt(e, t, r) {
192
+ var a = ce(e, t, r);
193
+ return a > r ? r : a;
194
+ }
195
+ function ot() {
196
+ return {
197
+ top: 0,
198
+ right: 0,
199
+ bottom: 0,
200
+ left: 0
201
+ };
202
+ }
203
+ function it(e) {
204
+ return Object.assign({}, ot(), e);
205
+ }
206
+ function st(e, t) {
207
+ return t.reduce(function(r, a) {
208
+ return r[a] = e, r;
209
+ }, {});
210
+ }
211
+ var Kt = function(t, r) {
212
+ return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
213
+ placement: r.placement
214
+ })) : t, it(typeof t != "number" ? t : st(t, de));
215
+ };
216
+ function Qt(e) {
217
+ var t, r = e.state, a = e.name, n = e.options, o = r.elements.arrow, f = r.modifiersData.popperOffsets, s = q(r.placement), i = je(s), u = [j, z].indexOf(s) >= 0, l = u ? "height" : "width";
218
+ if (!(!o || !f)) {
219
+ var y = Kt(n.padding, r), b = Le(o), p = i === "y" ? L : j, w = i === "y" ? N : z, m = r.rects.reference[l] + r.rects.reference[i] - f[i] - r.rects.popper[l], v = f[i] - r.rects.reference[i], x = ve(o), O = x ? i === "y" ? x.clientHeight || 0 : x.clientWidth || 0 : 0, P = m / 2 - v / 2, d = y[p], h = O - b[l] - y[w], g = O / 2 - b[l] / 2 + P, k = ce(d, g, h), A = i;
220
+ r.modifiersData[a] = (t = {}, t[A] = k, t.centerOffset = k - g, t);
221
+ }
222
+ }
223
+ function _t(e) {
224
+ var t = e.state, r = e.options, a = r.element, n = a === void 0 ? "[data-popper-arrow]" : a;
225
+ n != null && (typeof n == "string" && (n = t.elements.popper.querySelector(n), !n) || at(t.elements.popper, n) && (t.elements.arrow = n));
226
+ }
227
+ const er = {
228
+ name: "arrow",
229
+ enabled: !0,
230
+ phase: "main",
231
+ fn: Qt,
232
+ effect: _t,
233
+ requires: ["popperOffsets"],
234
+ requiresIfExists: ["preventOverflow"]
235
+ };
236
+ function ae(e) {
237
+ return e.split("-")[1];
238
+ }
239
+ var tr = {
240
+ top: "auto",
241
+ right: "auto",
242
+ bottom: "auto",
243
+ left: "auto"
244
+ };
245
+ function rr(e, t) {
246
+ var r = e.x, a = e.y, n = t.devicePixelRatio || 1;
247
+ return {
248
+ x: re(r * n) / n || 0,
249
+ y: re(a * n) / n || 0
250
+ };
251
+ }
252
+ function Ge(e) {
253
+ var t, r = e.popper, a = e.popperRect, n = e.placement, o = e.variation, f = e.offsets, s = e.position, i = e.gpuAcceleration, u = e.adaptive, l = e.roundOffsets, y = e.isFixed, b = f.x, p = b === void 0 ? 0 : b, w = f.y, m = w === void 0 ? 0 : w, v = typeof l == "function" ? l({
254
+ x: p,
255
+ y: m
256
+ }) : {
257
+ x: p,
258
+ y: m
259
+ };
260
+ p = v.x, m = v.y;
261
+ var x = f.hasOwnProperty("x"), O = f.hasOwnProperty("y"), P = j, d = L, h = window;
262
+ if (u) {
263
+ var g = ve(r), k = "clientHeight", A = "clientWidth";
264
+ if (g === H(r) && (g = G(r), X(g).position !== "static" && s === "absolute" && (k = "scrollHeight", A = "scrollWidth")), g = g, n === L || (n === j || n === z) && o === ue) {
265
+ d = N;
266
+ var $ = y && g === h && h.visualViewport ? h.visualViewport.height : (
267
+ // $FlowFixMe[prop-missing]
268
+ g[k]
269
+ );
270
+ m -= $ - a.height, m *= i ? 1 : -1;
271
+ }
272
+ if (n === j || (n === L || n === N) && o === ue) {
273
+ P = z;
274
+ var E = y && g === h && h.visualViewport ? h.visualViewport.width : (
275
+ // $FlowFixMe[prop-missing]
276
+ g[A]
277
+ );
278
+ p -= E - a.width, p *= i ? 1 : -1;
279
+ }
280
+ }
281
+ var c = Object.assign({
282
+ position: s
283
+ }, u && tr), S = l === !0 ? rr({
284
+ x: p,
285
+ y: m
286
+ }, H(r)) : {
287
+ x: p,
288
+ y: m
289
+ };
290
+ if (p = S.x, m = S.y, i) {
291
+ var R;
292
+ return Object.assign({}, c, (R = {}, R[d] = O ? "0" : "", R[P] = x ? "0" : "", R.transform = (h.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + m + "px)" : "translate3d(" + p + "px, " + m + "px, 0)", R));
293
+ }
294
+ return Object.assign({}, c, (t = {}, t[d] = O ? m + "px" : "", t[P] = x ? p + "px" : "", t.transform = "", t));
295
+ }
296
+ function nr(e) {
297
+ var t = e.state, r = e.options, a = r.gpuAcceleration, n = a === void 0 ? !0 : a, o = r.adaptive, f = o === void 0 ? !0 : o, s = r.roundOffsets, i = s === void 0 ? !0 : s, u = {
298
+ placement: q(t.placement),
299
+ variation: ae(t.placement),
300
+ popper: t.elements.popper,
301
+ popperRect: t.rects.popper,
302
+ gpuAcceleration: n,
303
+ isFixed: t.options.strategy === "fixed"
304
+ };
305
+ t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Ge(Object.assign({}, u, {
306
+ offsets: t.modifiersData.popperOffsets,
307
+ position: t.options.strategy,
308
+ adaptive: f,
309
+ roundOffsets: i
310
+ })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Ge(Object.assign({}, u, {
311
+ offsets: t.modifiersData.arrow,
312
+ position: "absolute",
313
+ adaptive: !1,
314
+ roundOffsets: i
315
+ })))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
316
+ "data-popper-placement": t.placement
317
+ });
318
+ }
319
+ const ar = {
320
+ name: "computeStyles",
321
+ enabled: !0,
322
+ phase: "beforeWrite",
323
+ fn: nr,
324
+ data: {}
325
+ };
326
+ var he = {
327
+ passive: !0
328
+ };
329
+ function or(e) {
330
+ var t = e.state, r = e.instance, a = e.options, n = a.scroll, o = n === void 0 ? !0 : n, f = a.resize, s = f === void 0 ? !0 : f, i = H(t.elements.popper), u = [].concat(t.scrollParents.reference, t.scrollParents.popper);
331
+ return o && u.forEach(function(l) {
332
+ l.addEventListener("scroll", r.update, he);
333
+ }), s && i.addEventListener("resize", r.update, he), function() {
334
+ o && u.forEach(function(l) {
335
+ l.removeEventListener("scroll", r.update, he);
336
+ }), s && i.removeEventListener("resize", r.update, he);
337
+ };
338
+ }
339
+ const ir = {
340
+ name: "eventListeners",
341
+ enabled: !0,
342
+ phase: "write",
343
+ fn: function() {
344
+ },
345
+ effect: or,
346
+ data: {}
347
+ };
348
+ var sr = {
349
+ left: "right",
350
+ right: "left",
351
+ bottom: "top",
352
+ top: "bottom"
353
+ };
354
+ function be(e) {
355
+ return e.replace(/left|right|bottom|top/g, function(t) {
356
+ return sr[t];
357
+ });
358
+ }
359
+ var lr = {
360
+ start: "end",
361
+ end: "start"
362
+ };
363
+ function Ze(e) {
364
+ return e.replace(/start|end/g, function(t) {
365
+ return lr[t];
366
+ });
367
+ }
368
+ function Se(e) {
369
+ var t = H(e), r = t.pageXOffset, a = t.pageYOffset;
370
+ return {
371
+ scrollLeft: r,
372
+ scrollTop: a
373
+ };
374
+ }
375
+ function Te(e) {
376
+ return ne(G(e)).left + Se(e).scrollLeft;
377
+ }
378
+ function cr(e, t) {
379
+ var r = H(e), a = G(e), n = r.visualViewport, o = a.clientWidth, f = a.clientHeight, s = 0, i = 0;
380
+ if (n) {
381
+ o = n.width, f = n.height;
382
+ var u = nt();
383
+ (u || !u && t === "fixed") && (s = n.offsetLeft, i = n.offsetTop);
384
+ }
385
+ return {
386
+ width: o,
387
+ height: f,
388
+ x: s + Te(e),
389
+ y: i
390
+ };
391
+ }
392
+ function fr(e) {
393
+ var t, r = G(e), a = Se(e), n = (t = e.ownerDocument) == null ? void 0 : t.body, o = K(r.scrollWidth, r.clientWidth, n ? n.scrollWidth : 0, n ? n.clientWidth : 0), f = K(r.scrollHeight, r.clientHeight, n ? n.scrollHeight : 0, n ? n.clientHeight : 0), s = -a.scrollLeft + Te(e), i = -a.scrollTop;
394
+ return X(n || r).direction === "rtl" && (s += K(r.clientWidth, n ? n.clientWidth : 0) - o), {
395
+ width: o,
396
+ height: f,
397
+ x: s,
398
+ y: i
399
+ };
400
+ }
401
+ function Ce(e) {
402
+ var t = X(e), r = t.overflow, a = t.overflowX, n = t.overflowY;
403
+ return /auto|scroll|overlay|hidden/.test(r + n + a);
404
+ }
405
+ function lt(e) {
406
+ return ["html", "body", "#document"].indexOf(F(e)) >= 0 ? e.ownerDocument.body : M(e) && Ce(e) ? e : lt(xe(e));
407
+ }
408
+ function fe(e, t) {
409
+ var r;
410
+ t === void 0 && (t = []);
411
+ var a = lt(e), n = a === ((r = e.ownerDocument) == null ? void 0 : r.body), o = H(a), f = n ? [o].concat(o.visualViewport || [], Ce(a) ? a : []) : a, s = t.concat(f);
412
+ return n ? s : (
413
+ // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
414
+ s.concat(fe(xe(f)))
415
+ );
416
+ }
417
+ function Re(e) {
418
+ return Object.assign({}, e, {
419
+ left: e.x,
420
+ top: e.y,
421
+ right: e.x + e.width,
422
+ bottom: e.y + e.height
423
+ });
424
+ }
425
+ function ur(e, t) {
426
+ var r = ne(e, !1, t === "fixed");
427
+ return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
428
+ }
429
+ function Je(e, t, r) {
430
+ return t === tt ? Re(cr(e, r)) : Q(t) ? ur(t, r) : Re(fr(G(e)));
431
+ }
432
+ function pr(e) {
433
+ var t = fe(xe(e)), r = ["absolute", "fixed"].indexOf(X(e).position) >= 0, a = r && M(e) ? ve(e) : e;
434
+ return Q(a) ? t.filter(function(n) {
435
+ return Q(n) && at(n, a) && F(n) !== "body";
436
+ }) : [];
437
+ }
438
+ function dr(e, t, r, a) {
439
+ var n = t === "clippingParents" ? pr(e) : [].concat(t), o = [].concat(n, [r]), f = o[0], s = o.reduce(function(i, u) {
440
+ var l = Je(e, u, a);
441
+ return i.top = K(l.top, i.top), i.right = we(l.right, i.right), i.bottom = we(l.bottom, i.bottom), i.left = K(l.left, i.left), i;
442
+ }, Je(e, f, a));
443
+ return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
444
+ }
445
+ function ct(e) {
446
+ var t = e.reference, r = e.element, a = e.placement, n = a ? q(a) : null, o = a ? ae(a) : null, f = t.x + t.width / 2 - r.width / 2, s = t.y + t.height / 2 - r.height / 2, i;
447
+ switch (n) {
448
+ case L:
449
+ i = {
450
+ x: f,
451
+ y: t.y - r.height
452
+ };
453
+ break;
454
+ case N:
455
+ i = {
456
+ x: f,
457
+ y: t.y + t.height
458
+ };
459
+ break;
460
+ case z:
461
+ i = {
462
+ x: t.x + t.width,
463
+ y: s
464
+ };
465
+ break;
466
+ case j:
467
+ i = {
468
+ x: t.x - r.width,
469
+ y: s
470
+ };
471
+ break;
472
+ default:
473
+ i = {
474
+ x: t.x,
475
+ y: t.y
476
+ };
477
+ }
478
+ var u = n ? je(n) : null;
479
+ if (u != null) {
480
+ var l = u === "y" ? "height" : "width";
481
+ switch (o) {
482
+ case te:
483
+ i[u] = i[u] - (t[l] / 2 - r[l] / 2);
484
+ break;
485
+ case ue:
486
+ i[u] = i[u] + (t[l] / 2 - r[l] / 2);
487
+ break;
488
+ }
489
+ }
490
+ return i;
491
+ }
492
+ function pe(e, t) {
493
+ t === void 0 && (t = {});
494
+ var r = t, a = r.placement, n = a === void 0 ? e.placement : a, o = r.strategy, f = o === void 0 ? e.strategy : o, s = r.boundary, i = s === void 0 ? St : s, u = r.rootBoundary, l = u === void 0 ? tt : u, y = r.elementContext, b = y === void 0 ? le : y, p = r.altBoundary, w = p === void 0 ? !1 : p, m = r.padding, v = m === void 0 ? 0 : m, x = it(typeof v != "number" ? v : st(v, de)), O = b === le ? Tt : le, P = e.rects.popper, d = e.elements[w ? O : b], h = dr(Q(d) ? d : d.contextElement || G(e.elements.popper), i, l, f), g = ne(e.elements.reference), k = ct({
495
+ reference: g,
496
+ element: P,
497
+ placement: n
498
+ }), A = Re(Object.assign({}, P, k)), $ = b === le ? A : g, E = {
499
+ top: h.top - $.top + x.top,
500
+ bottom: $.bottom - h.bottom + x.bottom,
501
+ left: h.left - $.left + x.left,
502
+ right: $.right - h.right + x.right
503
+ }, c = e.modifiersData.offset;
504
+ if (b === le && c) {
505
+ var S = c[n];
506
+ Object.keys(E).forEach(function(R) {
507
+ var V = [z, N].indexOf(R) >= 0 ? 1 : -1, I = [L, N].indexOf(R) >= 0 ? "y" : "x";
508
+ E[R] += S[I] * V;
509
+ });
510
+ }
511
+ return E;
512
+ }
513
+ function vr(e, t) {
514
+ t === void 0 && (t = {});
515
+ var r = t, a = r.placement, n = r.boundary, o = r.rootBoundary, f = r.padding, s = r.flipVariations, i = r.allowedAutoPlacements, u = i === void 0 ? rt : i, l = ae(a), y = l ? s ? Ye : Ye.filter(function(w) {
516
+ return ae(w) === l;
517
+ }) : de, b = y.filter(function(w) {
518
+ return u.indexOf(w) >= 0;
519
+ });
520
+ b.length === 0 && (b = y);
521
+ var p = b.reduce(function(w, m) {
522
+ return w[m] = pe(e, {
523
+ placement: m,
524
+ boundary: n,
525
+ rootBoundary: o,
526
+ padding: f
527
+ })[q(m)], w;
528
+ }, {});
529
+ return Object.keys(p).sort(function(w, m) {
530
+ return p[w] - p[m];
531
+ });
532
+ }
533
+ function mr(e) {
534
+ if (q(e) === De)
535
+ return [];
536
+ var t = be(e);
537
+ return [Ze(e), t, Ze(t)];
538
+ }
539
+ function yr(e) {
540
+ var t = e.state, r = e.options, a = e.name;
541
+ if (!t.modifiersData[a]._skip) {
542
+ for (var n = r.mainAxis, o = n === void 0 ? !0 : n, f = r.altAxis, s = f === void 0 ? !0 : f, i = r.fallbackPlacements, u = r.padding, l = r.boundary, y = r.rootBoundary, b = r.altBoundary, p = r.flipVariations, w = p === void 0 ? !0 : p, m = r.allowedAutoPlacements, v = t.options.placement, x = q(v), O = x === v, P = i || (O || !w ? [be(v)] : mr(v)), d = [v].concat(P).reduce(function(ee, U) {
543
+ return ee.concat(q(U) === De ? vr(t, {
544
+ placement: U,
545
+ boundary: l,
546
+ rootBoundary: y,
547
+ padding: u,
548
+ flipVariations: w,
549
+ allowedAutoPlacements: m
550
+ }) : U);
551
+ }, []), h = t.rects.reference, g = t.rects.popper, k = /* @__PURE__ */ new Map(), A = !0, $ = d[0], E = 0; E < d.length; E++) {
552
+ var c = d[E], S = q(c), R = ae(c) === te, V = [L, N].indexOf(S) >= 0, I = V ? "width" : "height", D = pe(t, {
553
+ placement: c,
554
+ boundary: l,
555
+ rootBoundary: y,
556
+ altBoundary: b,
557
+ padding: u
558
+ }), T = V ? R ? z : j : R ? N : L;
559
+ h[I] > g[I] && (T = be(T));
560
+ var Y = be(T), W = [];
561
+ if (o && W.push(D[S] <= 0), s && W.push(D[T] <= 0, D[Y] <= 0), W.every(function(ee) {
562
+ return ee;
563
+ })) {
564
+ $ = c, A = !1;
565
+ break;
566
+ }
567
+ k.set(c, W);
568
+ }
569
+ if (A)
570
+ for (var _ = w ? 3 : 1, oe = function(U) {
571
+ var se = d.find(function(ye) {
572
+ var Z = k.get(ye);
573
+ if (Z)
574
+ return Z.slice(0, U).every(function(Oe) {
575
+ return Oe;
576
+ });
577
+ });
578
+ if (se)
579
+ return $ = se, "break";
580
+ }, ie = _; ie > 0; ie--) {
581
+ var me = oe(ie);
582
+ if (me === "break") break;
583
+ }
584
+ t.placement !== $ && (t.modifiersData[a]._skip = !0, t.placement = $, t.reset = !0);
585
+ }
586
+ }
587
+ const gr = {
588
+ name: "flip",
589
+ enabled: !0,
590
+ phase: "main",
591
+ fn: yr,
592
+ requiresIfExists: ["offset"],
593
+ data: {
594
+ _skip: !1
595
+ }
596
+ };
597
+ function Ke(e, t, r) {
598
+ return r === void 0 && (r = {
599
+ x: 0,
600
+ y: 0
601
+ }), {
602
+ top: e.top - t.height - r.y,
603
+ right: e.right - t.width + r.x,
604
+ bottom: e.bottom - t.height + r.y,
605
+ left: e.left - t.width - r.x
606
+ };
607
+ }
608
+ function Qe(e) {
609
+ return [L, z, N, j].some(function(t) {
610
+ return e[t] >= 0;
611
+ });
612
+ }
613
+ function hr(e) {
614
+ var t = e.state, r = e.name, a = t.rects.reference, n = t.rects.popper, o = t.modifiersData.preventOverflow, f = pe(t, {
615
+ elementContext: "reference"
616
+ }), s = pe(t, {
617
+ altBoundary: !0
618
+ }), i = Ke(f, a), u = Ke(s, n, o), l = Qe(i), y = Qe(u);
619
+ t.modifiersData[r] = {
620
+ referenceClippingOffsets: i,
621
+ popperEscapeOffsets: u,
622
+ isReferenceHidden: l,
623
+ hasPopperEscaped: y
624
+ }, t.attributes.popper = Object.assign({}, t.attributes.popper, {
625
+ "data-popper-reference-hidden": l,
626
+ "data-popper-escaped": y
627
+ });
628
+ }
629
+ const br = {
630
+ name: "hide",
631
+ enabled: !0,
632
+ phase: "main",
633
+ requiresIfExists: ["preventOverflow"],
634
+ fn: hr
635
+ };
636
+ function wr(e, t, r) {
637
+ var a = q(e), n = [j, L].indexOf(a) >= 0 ? -1 : 1, o = typeof r == "function" ? r(Object.assign({}, t, {
638
+ placement: e
639
+ })) : r, f = o[0], s = o[1];
640
+ return f = f || 0, s = (s || 0) * n, [j, z].indexOf(a) >= 0 ? {
641
+ x: s,
642
+ y: f
643
+ } : {
644
+ x: f,
645
+ y: s
646
+ };
647
+ }
648
+ function xr(e) {
649
+ var t = e.state, r = e.options, a = e.name, n = r.offset, o = n === void 0 ? [0, 0] : n, f = rt.reduce(function(l, y) {
650
+ return l[y] = wr(y, t.rects, o), l;
651
+ }, {}), s = f[t.placement], i = s.x, u = s.y;
652
+ t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += i, t.modifiersData.popperOffsets.y += u), t.modifiersData[a] = f;
653
+ }
654
+ const Or = {
655
+ name: "offset",
656
+ enabled: !0,
657
+ phase: "main",
658
+ requires: ["popperOffsets"],
659
+ fn: xr
660
+ };
661
+ function kr(e) {
662
+ var t = e.state, r = e.name;
663
+ t.modifiersData[r] = ct({
664
+ reference: t.rects.reference,
665
+ element: t.rects.popper,
666
+ placement: t.placement
667
+ });
668
+ }
669
+ const Pr = {
670
+ name: "popperOffsets",
671
+ enabled: !0,
672
+ phase: "read",
673
+ fn: kr,
674
+ data: {}
675
+ };
676
+ function Er(e) {
677
+ return e === "x" ? "y" : "x";
678
+ }
679
+ function Ar(e) {
680
+ var t = e.state, r = e.options, a = e.name, n = r.mainAxis, o = n === void 0 ? !0 : n, f = r.altAxis, s = f === void 0 ? !1 : f, i = r.boundary, u = r.rootBoundary, l = r.altBoundary, y = r.padding, b = r.tether, p = b === void 0 ? !0 : b, w = r.tetherOffset, m = w === void 0 ? 0 : w, v = pe(t, {
681
+ boundary: i,
682
+ rootBoundary: u,
683
+ padding: y,
684
+ altBoundary: l
685
+ }), x = q(t.placement), O = ae(t.placement), P = !O, d = je(x), h = Er(d), g = t.modifiersData.popperOffsets, k = t.rects.reference, A = t.rects.popper, $ = typeof m == "function" ? m(Object.assign({}, t.rects, {
686
+ placement: t.placement
687
+ })) : m, E = typeof $ == "number" ? {
688
+ mainAxis: $,
689
+ altAxis: $
690
+ } : Object.assign({
691
+ mainAxis: 0,
692
+ altAxis: 0
693
+ }, $), c = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, S = {
694
+ x: 0,
695
+ y: 0
696
+ };
697
+ if (g) {
698
+ if (o) {
699
+ var R, V = d === "y" ? L : j, I = d === "y" ? N : z, D = d === "y" ? "height" : "width", T = g[d], Y = T + v[V], W = T - v[I], _ = p ? -A[D] / 2 : 0, oe = O === te ? k[D] : A[D], ie = O === te ? -A[D] : -k[D], me = t.elements.arrow, ee = p && me ? Le(me) : {
700
+ width: 0,
701
+ height: 0
702
+ }, U = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ot(), se = U[V], ye = U[I], Z = ce(0, k[D], ee[D]), Oe = P ? k[D] / 2 - _ - Z - se - E.mainAxis : oe - Z - se - E.mainAxis, ut = P ? -k[D] / 2 + _ + Z + ye + E.mainAxis : ie + Z + ye + E.mainAxis, ke = t.elements.arrow && ve(t.elements.arrow), pt = ke ? d === "y" ? ke.clientTop || 0 : ke.clientLeft || 0 : 0, He = (R = c?.[d]) != null ? R : 0, dt = T + Oe - He - pt, vt = T + ut - He, Ie = ce(p ? we(Y, dt) : Y, T, p ? K(W, vt) : W);
703
+ g[d] = Ie, S[d] = Ie - T;
704
+ }
705
+ if (s) {
706
+ var We, mt = d === "x" ? L : j, yt = d === "x" ? N : z, J = g[h], ge = h === "y" ? "height" : "width", Me = J + v[mt], Ne = J - v[yt], Pe = [L, j].indexOf(x) !== -1, ze = (We = c?.[h]) != null ? We : 0, Ve = Pe ? Me : J - k[ge] - A[ge] - ze + E.altAxis, qe = Pe ? J + k[ge] + A[ge] - ze - E.altAxis : Ne, Fe = p && Pe ? Jt(Ve, J, qe) : ce(p ? Ve : Me, J, p ? qe : Ne);
707
+ g[h] = Fe, S[h] = Fe - J;
708
+ }
709
+ t.modifiersData[a] = S;
710
+ }
711
+ }
712
+ const $r = {
713
+ name: "preventOverflow",
714
+ enabled: !0,
715
+ phase: "main",
716
+ fn: Ar,
717
+ requiresIfExists: ["offset"]
718
+ };
719
+ function Rr(e) {
720
+ return {
721
+ scrollLeft: e.scrollLeft,
722
+ scrollTop: e.scrollTop
723
+ };
724
+ }
725
+ function Dr(e) {
726
+ return e === H(e) || !M(e) ? Se(e) : Rr(e);
727
+ }
728
+ function Br(e) {
729
+ var t = e.getBoundingClientRect(), r = re(t.width) / e.offsetWidth || 1, a = re(t.height) / e.offsetHeight || 1;
730
+ return r !== 1 || a !== 1;
731
+ }
732
+ function Lr(e, t, r) {
733
+ r === void 0 && (r = !1);
734
+ var a = M(t), n = M(t) && Br(t), o = G(t), f = ne(e, n, r), s = {
735
+ scrollLeft: 0,
736
+ scrollTop: 0
737
+ }, i = {
738
+ x: 0,
739
+ y: 0
740
+ };
741
+ return (a || !a && !r) && ((F(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
742
+ Ce(o)) && (s = Dr(t)), M(t) ? (i = ne(t, !0), i.x += t.clientLeft, i.y += t.clientTop) : o && (i.x = Te(o))), {
743
+ x: f.left + s.scrollLeft - i.x,
744
+ y: f.top + s.scrollTop - i.y,
745
+ width: f.width,
746
+ height: f.height
747
+ };
748
+ }
749
+ function jr(e) {
750
+ var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), a = [];
751
+ e.forEach(function(o) {
752
+ t.set(o.name, o);
753
+ });
754
+ function n(o) {
755
+ r.add(o.name);
756
+ var f = [].concat(o.requires || [], o.requiresIfExists || []);
757
+ f.forEach(function(s) {
758
+ if (!r.has(s)) {
759
+ var i = t.get(s);
760
+ i && n(i);
761
+ }
762
+ }), a.push(o);
763
+ }
764
+ return e.forEach(function(o) {
765
+ r.has(o.name) || n(o);
766
+ }), a;
767
+ }
768
+ function Sr(e) {
769
+ var t = jr(e);
770
+ return Ft.reduce(function(r, a) {
771
+ return r.concat(t.filter(function(n) {
772
+ return n.phase === a;
773
+ }));
774
+ }, []);
775
+ }
776
+ function Tr(e) {
777
+ var t;
778
+ return function() {
779
+ return t || (t = new Promise(function(r) {
780
+ Promise.resolve().then(function() {
781
+ t = void 0, r(e());
782
+ });
783
+ })), t;
784
+ };
785
+ }
786
+ function Cr(e) {
787
+ var t = e.reduce(function(r, a) {
788
+ var n = r[a.name];
789
+ return r[a.name] = n ? Object.assign({}, n, a, {
790
+ options: Object.assign({}, n.options, a.options),
791
+ data: Object.assign({}, n.data, a.data)
792
+ }) : a, r;
793
+ }, {});
794
+ return Object.keys(t).map(function(r) {
795
+ return t[r];
796
+ });
797
+ }
798
+ var _e = {
799
+ placement: "bottom",
800
+ modifiers: [],
801
+ strategy: "absolute"
802
+ };
803
+ function et() {
804
+ for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
805
+ t[r] = arguments[r];
806
+ return !t.some(function(a) {
807
+ return !(a && typeof a.getBoundingClientRect == "function");
808
+ });
809
+ }
810
+ function Hr(e) {
811
+ e === void 0 && (e = {});
812
+ var t = e, r = t.defaultModifiers, a = r === void 0 ? [] : r, n = t.defaultOptions, o = n === void 0 ? _e : n;
813
+ return function(s, i, u) {
814
+ u === void 0 && (u = o);
815
+ var l = {
816
+ placement: "bottom",
817
+ orderedModifiers: [],
818
+ options: Object.assign({}, _e, o),
819
+ modifiersData: {},
820
+ elements: {
821
+ reference: s,
822
+ popper: i
823
+ },
824
+ attributes: {},
825
+ styles: {}
826
+ }, y = [], b = !1, p = {
827
+ state: l,
828
+ setOptions: function(x) {
829
+ var O = typeof x == "function" ? x(l.options) : x;
830
+ m(), l.options = Object.assign({}, o, l.options, O), l.scrollParents = {
831
+ reference: Q(s) ? fe(s) : s.contextElement ? fe(s.contextElement) : [],
832
+ popper: fe(i)
833
+ };
834
+ var P = Sr(Cr([].concat(a, l.options.modifiers)));
835
+ return l.orderedModifiers = P.filter(function(d) {
836
+ return d.enabled;
837
+ }), w(), p.update();
838
+ },
839
+ // Sync update – it will always be executed, even if not necessary. This
840
+ // is useful for low frequency updates where sync behavior simplifies the
841
+ // logic.
842
+ // For high frequency updates (e.g. `resize` and `scroll` events), always
843
+ // prefer the async Popper#update method
844
+ forceUpdate: function() {
845
+ if (!b) {
846
+ var x = l.elements, O = x.reference, P = x.popper;
847
+ if (et(O, P)) {
848
+ l.rects = {
849
+ reference: Lr(O, ve(P), l.options.strategy === "fixed"),
850
+ popper: Le(P)
851
+ }, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(E) {
852
+ return l.modifiersData[E.name] = Object.assign({}, E.data);
853
+ });
854
+ for (var d = 0; d < l.orderedModifiers.length; d++) {
855
+ if (l.reset === !0) {
856
+ l.reset = !1, d = -1;
857
+ continue;
858
+ }
859
+ var h = l.orderedModifiers[d], g = h.fn, k = h.options, A = k === void 0 ? {} : k, $ = h.name;
860
+ typeof g == "function" && (l = g({
861
+ state: l,
862
+ options: A,
863
+ name: $,
864
+ instance: p
865
+ }) || l);
866
+ }
867
+ }
868
+ }
869
+ },
870
+ // Async and optimistically optimized update – it will not be executed if
871
+ // not necessary (debounced to run at most once-per-tick)
872
+ update: Tr(function() {
873
+ return new Promise(function(v) {
874
+ p.forceUpdate(), v(l);
875
+ });
876
+ }),
877
+ destroy: function() {
878
+ m(), b = !0;
879
+ }
880
+ };
881
+ if (!et(s, i))
882
+ return p;
883
+ p.setOptions(u).then(function(v) {
884
+ !b && u.onFirstUpdate && u.onFirstUpdate(v);
885
+ });
886
+ function w() {
887
+ l.orderedModifiers.forEach(function(v) {
888
+ var x = v.name, O = v.options, P = O === void 0 ? {} : O, d = v.effect;
889
+ if (typeof d == "function") {
890
+ var h = d({
891
+ state: l,
892
+ name: x,
893
+ instance: p,
894
+ options: P
895
+ }), g = function() {
896
+ };
897
+ y.push(h || g);
898
+ }
899
+ });
900
+ }
901
+ function m() {
902
+ y.forEach(function(v) {
903
+ return v();
904
+ }), y = [];
905
+ }
906
+ return p;
907
+ };
908
+ }
909
+ var Ir = [ir, Pr, ar, Ut, Or, gr, $r, er, br], Wr = /* @__PURE__ */ Hr({
910
+ defaultModifiers: Ir
911
+ }), Mr = {
912
+ /**
913
+ * Sets the `aria-hidden` attribute for the icon. If set to true, the icon will not be read by screen readers. Should be used if icon is purely decorative (such as when used in a button or textfield) or labeled by rendered text using `aria-labelledBy` or `aria-label`.
914
+ *
915
+ * Defaults to **null**.
916
+ */
917
+ ariaHidden: B.bool,
918
+ /**
919
+ * Accessibility label for assistive technologies.
920
+ *
921
+ * Defaults to **null**.
922
+ */
923
+ ariaLabel: B.string,
924
+ /**
925
+ * Id of the component being labeled for assistive technologies.
926
+ *
927
+ * Defaults to **null**.
928
+ */
929
+ ariaLabelledBy: B.string,
930
+ /**
931
+ * The custom icon notification badge to be rendered. The icon notification badge component prevents `xsmall` and `small` icon size
932
+ *
933
+ * Defaults to **undefined**.
934
+ */
935
+ badge: B.node,
936
+ /**
937
+ * The placement of the notification badge on the icon to start. It will flip to the opposite side if there is no room.
938
+ *
939
+ * Defaults to **'right-start'**.
940
+ */
941
+ badgePlacement: B.oneOf(["right-start", "left-start"]),
942
+ /**
943
+ * The css class name to be passed through to the component markup.
944
+ *
945
+ * Defaults to **undefined**.
946
+ */
947
+ className: B.string,
948
+ /**
949
+ * Mostly commonly a string but accepts any valid markup or components. If a custom icon is used styles like color and size will need be handled with custom CSS.
950
+ *
951
+ * Defaults to **null**.
952
+ */
953
+ icon: B.oneOfType([B.string, B.node]),
954
+ /**
955
+ * One of 'xsmall', 'small', 'medium', 'large', and 'xlarge' will change the size of the icon. Defaults to medium.
956
+ *
957
+ * Defaults to **'medium'**.
958
+ */
959
+ iconSize: B.oneOf(["xsmall", "small", "medium", "large", "xlarge"]),
960
+ /**
961
+ * Choose between the classic Material Icons (default), newer Material Symbols, or custom.
962
+ *
963
+ * Defaults to **'material-icons'**.
964
+ */
965
+ iconSource: B.oneOf(["material-icons", "material-symbols"]),
966
+ /**
967
+ * The material icon type/style to be use. NOTE: Not all icons have every type and material-symbols only support outlined, rounded, and sharp. To see which icons are available for different types see [Material Icons docs](https://material.io/tools/icons)
968
+ *
969
+ * Defaults to **'filled'**.
970
+ */
971
+ iconType: B.oneOf(["filled", "outlined", "rounded", "two-tone", "sharp"]),
972
+ /**
973
+ * Add pointer icon style
974
+ *
975
+ * Defaults to **false**.
976
+ */
977
+ pointer: B.bool,
978
+ /**
979
+ * @deprecated _Renamed, see iconSize instead._
980
+ *
981
+ * One of 'xsmall', 'small', 'medium', 'large', and 'xlarge' will change the size of the icon. Defaults to medium.
982
+ *
983
+ * Defaults to **undefined**.
984
+ */
985
+ size: Et(B.oneOf(["xsmall", "small", "medium", "large", "xlarge"]), "Icon", "Renamed, see iconSize instead."),
986
+ /**
987
+ * Color variations. Variants prefixed with `filled-` will add a background color to the icon according to the theme. Variants prefixed with ` color-` will change the color of the icon according to the theme.
988
+ *
989
+ * Defaults to **empty string**.
990
+ */
991
+ variant: Pt(B.oneOf(["", "filled-danger-alt", "filled-danger", "filled-primary", "filled-secondary", "filled-on-primary", "filled-on-secondary", "filled-on-unknown-black", "filled-on-unknown-white", "color-primary", "color-secondary", "color-on-primary", "color-on-secondary", "color-on-dark", "color-on-unknown-black", "color-on-unknown-white", "color-on-unknown-surface", "secondary-on-surface", "blue", "gray", "green", "orange", "purple", "red", "teal", "yellow"]), ["primary-alt", "secondary-alt", "primary", "danger-alt", "danger", "muted"], "Icon", "Please use one of '','filled-danger-alt','filled-danger','filled-primary','filled-secondary','filled-on-primary','filled-on-secondary','filled-on-unknown-black','filled-on-unknown-white','color-primary','color-secondary','color-on-primary','color-on-secondary','color-on-dark','color-on-unknown-black','color-on-unknown-white','color-on-unknown-surface','secondary-on-surface','blue','gray','green','orange','purple','red','teal','yellow'.")
992
+ }, Nr = {
993
+ ariaHidden: null,
994
+ ariaLabel: null,
995
+ ariaLabelledBy: null,
996
+ badge: void 0,
997
+ badgePlacement: "right-start",
998
+ className: void 0,
999
+ icon: null,
1000
+ iconSize: "medium",
1001
+ iconSource: "material-icons",
1002
+ iconType: "filled",
1003
+ pointer: !1,
1004
+ size: void 0,
1005
+ variant: ""
1006
+ }, zr = ["ariaHidden", "ariaLabel", "ariaLabelledBy", "badge", "badgePlacement", "className", "icon", "iconType", "pointer", "size", "iconSize", "iconSource", "variant"];
1007
+ function Vr(e, t) {
1008
+ var r;
1009
+ return t === "material-symbols" && e === "filled" || e === "two-tone" ? "".concat(t, "-outlined") : t === "material-icons" && e === "filled" ? t : t === "material-icons" && e === "rounded" ? "".concat(t, "-round") : kt(r = "".concat(t, "-")).call(r, e);
1010
+ }
1011
+ var C = Nr, ft = /* @__PURE__ */ Rt(function(e, t) {
1012
+ var r = e.ariaHidden, a = r === void 0 ? C.ariaHidden : r, n = e.ariaLabel, o = n === void 0 ? C.ariaLabel : n, f = e.ariaLabelledBy, s = f === void 0 ? C.ariaLabelledBy : f, i = e.badge, u = i === void 0 ? C.badge : i, l = e.badgePlacement, y = l === void 0 ? C.badgePlacement : l, b = e.className, p = b === void 0 ? C.className : b, w = e.icon, m = w === void 0 ? C.icon : w, v = e.iconType, x = v === void 0 ? C.iconType : v, O = e.pointer, P = O === void 0 ? C.pointer : O, d = e.size, h = d === void 0 ? C.size : d, g = e.iconSize, k = g === void 0 ? C.iconSize : g, A = e.iconSource, $ = A === void 0 ? C.iconSource : A, E = e.variant, c = E === void 0 ? C.variant : E, S = ht(e, zr), R = Ee(), V = Ee(), I = Ee(), D = h || k;
1013
+ u && (D === "xsmall" || D === "small") && (D = "medium"), Dt(t, function() {
1014
+ return R.current;
1015
+ }, []), xt(function() {
1016
+ if (u) {
1017
+ var Y;
1018
+ u.props.counter != null ? Y = [{
1019
+ name: "flip",
1020
+ options: {
1021
+ fallbackPlacements: ["right", "left"]
1022
+ }
1023
+ }, {
1024
+ name: "offset",
1025
+ options: {
1026
+ offset: function(_) {
1027
+ var oe = _.placement;
1028
+ return oe === "right-start" ? [-5, -10] : [-7, -10];
1029
+ }
1030
+ }
1031
+ }] : Y = [{
1032
+ name: "flip",
1033
+ options: {
1034
+ fallbackPlacements: ["right-start", "left-start"]
1035
+ }
1036
+ }, {
1037
+ name: "offset",
1038
+ options: {
1039
+ offset: [0, -10]
1040
+ }
1041
+ }], I.current = Wr(R.current, V.current, {
1042
+ placement: y,
1043
+ modifiers: Y
1044
+ });
1045
+ }
1046
+ return function() {
1047
+ var W;
1048
+ I == null || (W = I.current) === null || W === void 0 || W.destroy();
1049
+ };
1050
+ }, [u, y]);
1051
+ var T = bt("lmnt", "lmnt-icon", Vr(x, $), P && "lmnt-icon-pointer", D && "lmnt-icon--".concat(D), ((c == null ? void 0 : jt(c).call(c, "filled-")) === 0 || c === "primary" || c === "primary-alt" || c === "muted" || c === "danger" || c === "danger-alt" || c === "blue" || c === "gray" || c === "green" || c === "orange" || c === "purple" || c === "red" || c === "teal" || c === "yellow") && "lmnt-icon--fill", (c === "danger-alt" || c === "filled-danger-alt") && "lmnt-icon--fill-danger-alt", (c === "danger" || c === "filled-danger") && "lmnt-icon--fill-danger", (c === "primary" || c === "filled-primary") && "lmnt-icon--fill-primary", (c === "primary-alt" || c === "filled-secondary") && "lmnt-icon--fill-secondary", (c === "muted" || c === "filled-muted") && "lmnt-icon--fill-muted", (c === "secondary-alt" || c === "color-on-dark") && "lmnt-icon--color-on-dark", c === "color-primary" && "lmnt-icon--color-primary", c === "color-secondary" && "lmnt-icon--color-secondary", c === "color-on-unknown-black" && "lmnt-icon--color-on-unknown-black", c === "secondary-on-surface" && "lmnt-icon--secondary-on-surface", c === "filled-on-primary" && "lmnt-icon--fill-on-primary", c === "filled-on-secondary" && "lmnt-icon--fill-on-secondary", c === "filled-on-unknown-black" && "lmnt-icon--fill-on-unknown-black", c === "filled-on-unknown-white" && "lmnt-icon--fill-on-unknown-white", c === "filled-on-unknown-surface" && "lmnt-icon--fill-on-unknown-surface", c === "color-on-primary" && "lmnt-icon--color-on-primary", c === "color-on-secondary" && "lmnt-icon--color-on-secondary", c === "color-on-unknown-white" && "lmnt-icon--color-on-unknown-white", c === "color-on-unknown-surface" && "lmnt-icon--color-on-unknown-surface", c === "blue" && "lmnt-icon--utility-blue", c === "gray" && "lmnt-icon--utility-gray", c === "green" && "lmnt-icon--utility-green", c === "orange" && "lmnt-icon--utility-orange", c === "purple" && "lmnt-icon--utility-purple", c === "red" && "lmnt-icon--utility-red", c === "teal" && "lmnt-icon--utility-teal", c === "yellow" && "lmnt-icon--utility-yellow", c === "secondary-on-surface" && "lmnt-icon--secondary-on-surface", c === "color-on-unknown-black" && "lmnt-icon--on-unknown-black", p);
1052
+ return /* @__PURE__ */ $t.createElement("i", wt({
1053
+ className: T,
1054
+ "aria-label": o,
1055
+ "aria-labelledby": s,
1056
+ "aria-hidden": o || s ? a : !1
1057
+ }, S, {
1058
+ ref: R
1059
+ }), m, Ot(u, {
1060
+ ref: V
1061
+ }));
1062
+ });
1063
+ ft.displayName = "Icon";
1064
+ ft.propTypes = Mr;
1065
+ export {
1066
+ ft as I,
1067
+ jt as _,
1068
+ Wr as c
1069
+ };