@hortiview/shared-components 2.8.6 → 2.8.8

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 (133) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{AlertBanner-DlgFtlZm.js → AlertBanner-D-NTP_6i.js} +3 -3
  3. package/dist/{BigLoadingSpinner-B_HFhx2F.js → BigLoadingSpinner-CCxsMWnc.js} +1 -1
  4. package/dist/{GenericCard-Cv8qaFLu.js → GenericCard-DOKyENNm.js} +3 -3
  5. package/dist/{ListAreaService-D9HRsvH0.js → ListAreaService-CI-s1Xx5.js} +5 -5
  6. package/dist/{OfflineView-Bw-sbsym.js → OfflineView-DHtzNLwt.js} +3 -3
  7. package/dist/_Map-BmafU0dj.js +113 -0
  8. package/dist/assets/FormSelect.css +1 -1
  9. package/dist/components/AlertBanner/AlertBanner.js +4 -4
  10. package/dist/components/AlertBanner/AlertBanner.test.js +1 -1
  11. package/dist/components/AlertBanner/LinkBanner.js +3 -3
  12. package/dist/components/BaseView/BaseView.js +2 -2
  13. package/dist/components/BasicHeading/BasicHeading.js +2 -2
  14. package/dist/components/BasicHeading/BasicHeading.test.js +1 -1
  15. package/dist/components/BlockView/BlockView.js +1 -1
  16. package/dist/components/ChipCard/ChipCard.js +499 -390
  17. package/dist/components/ContextMenu/ContextMenu.js +4 -4
  18. package/dist/components/DeleteModal/DeleteModal.js +5 -5
  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 +161 -125
  22. package/dist/components/Filter/Filter.js +11 -11
  23. package/dist/components/Filter/Filter.test.js +51 -35
  24. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +1 -1
  25. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +10 -10
  26. package/dist/components/FormComponents/FormNumber/CustomTextField.js +3 -3
  27. package/dist/components/FormComponents/FormRadio/FormRadio.js +1 -1
  28. package/dist/components/FormComponents/FormSelect/FormSelect.js +53 -53
  29. package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +2 -2
  30. package/dist/components/FormComponents/FormSlider/FormSlider.js +540 -535
  31. package/dist/components/FormComponents/FormText/FormText.js +2 -2
  32. package/dist/components/FormComponents/FormToggle/FormToggle.js +4 -4
  33. package/dist/components/GenericTable/GenericTable.js +8246 -7153
  34. package/dist/components/GenericTable/Mobile/GenericCard.js +4 -4
  35. package/dist/components/GenericTable/Mobile/GenericCard.test.js +1 -1
  36. package/dist/components/GenericTable/Mobile/GenericCardList.js +4 -4
  37. package/dist/components/HashTabView/HashTabView.js +552 -541
  38. package/dist/components/HeaderFilter/HeaderFilter.js +1 -1
  39. package/dist/components/Iconify/Iconify.js +2 -2
  40. package/dist/components/InfoCard/InfoCard.js +4 -4
  41. package/dist/components/InfoGroup/InfoGroup.js +3 -3
  42. package/dist/components/ListArea/ListArea.js +16 -16
  43. package/dist/components/ListArea/ListArea.test.js +20 -20
  44. package/dist/components/ListArea/ListAreaService.js +6 -6
  45. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
  46. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +1 -1
  47. package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +164 -178
  48. package/dist/components/Modal/Modal.js +305 -312
  49. package/dist/components/ModulePadding/ModulePadding.js +8 -8
  50. package/dist/components/OfflineView/OfflineView.js +4 -4
  51. package/dist/components/OfflineView/OfflineView.test.js +1 -1
  52. package/dist/components/OnboardingBanner/OnboardingBanner.js +13 -13
  53. package/dist/components/OverflowTooltip/OverflowTooltip.js +1 -1
  54. package/dist/components/OverflowTooltip/OverflowTooltip.test.js +1 -1
  55. package/dist/components/SearchBar/SearchBar.js +2 -2
  56. package/dist/components/SearchBar/SearchBar.test.js +1 -1
  57. package/dist/components/Select/Select.js +2 -2
  58. package/dist/components/Stepper/Stepper.js +1 -1
  59. package/dist/components/Stepper/components/StepperButton.js +1 -1
  60. package/dist/components/Stepper/components/StepperHeader.js +2 -2
  61. package/dist/components/Stepper/components/StepperIndicator.js +1 -1
  62. package/dist/defineProperty-CmuOyxyf.js +318 -0
  63. package/dist/es.string.iterator-DrqCBub-.js +581 -0
  64. package/dist/find-B-dm7n_F.js +88 -0
  65. package/dist/{get-CqneoueQ.js → get-DuK51wnj.js} +1 -1
  66. package/dist/get-u1nFMLdT.js +377 -0
  67. package/dist/hooks/useHelperText.js +1 -1
  68. package/dist/identity-BIZAN_pL.js +213 -0
  69. package/dist/includes-Bt-Stz_B.js +110 -0
  70. package/dist/index-Cpb-8cAN.js +2465 -0
  71. package/dist/index.es-0QJC9VS2.js +325 -0
  72. package/dist/{index.es-CyjMwj5g.js → index.es-45NOgWlB.js} +93 -101
  73. package/dist/index.es-B6ZgiW2s.js +3790 -0
  74. package/dist/{index.es-1zrFd4Te.js → index.es-BGordhUK.js} +352 -323
  75. package/dist/index.es-BRtk0Q33.js +42 -0
  76. package/dist/index.es-BXj90wb_.js +402 -0
  77. package/dist/index.es-Bg8hxXM8.js +912 -0
  78. package/dist/index.es-Bgjh6euR.js +292 -0
  79. package/dist/index.es-Bo1Rhtyb.js +80 -0
  80. package/dist/{index.es-BaX-8joZ.js → index.es-CK4oZMKs.js} +3329 -3232
  81. package/dist/{index.es-nQ0lMwpE.js → index.es-CKdJX75f.js} +74 -78
  82. package/dist/index.es-CmF6xAUJ.js +48 -0
  83. package/dist/{index.es-p4O33fMu.js → index.es-Cq04gn3U.js} +321 -305
  84. package/dist/{index.es-Cdu6tjUC.js → index.es-D1IpdMde.js} +87 -95
  85. package/dist/index.es-DDYCugj-.js +166 -0
  86. package/dist/{index.es-jFaPNuBO.js → index.es-DENZVv7_.js} +427 -444
  87. package/dist/{index.es-Dnrk7XL6.js → index.es-DObVvepK.js} +158 -166
  88. package/dist/index.es-DeF-y7fd.js +122 -0
  89. package/dist/{index.es-ks_RnHLh.js → index.es-Dfju71Pi.js} +27 -37
  90. package/dist/index.es-DqSY-ePE.js +4923 -0
  91. package/dist/index.es-DwzB1d7_.js +1061 -0
  92. package/dist/index.es-IXyb5F6n.js +457 -0
  93. package/dist/index.es-t7hFwQSs.js +67 -0
  94. package/dist/isArray-DN9s620O.js +83 -0
  95. package/dist/{isArray-CSaAxHlq.js → isArray-Dub1wGJM.js} +1 -1
  96. package/dist/{isEmpty-SkzPhavO.js → isEmpty-CxD71Jv8.js} +4 -5
  97. package/dist/{isString-CZsZiWgW.js → isString-BNaBRq3S.js} +2 -2
  98. package/dist/isTypedArray-Dw_IY7Zq.js +212 -0
  99. package/dist/keyboard-B-WUULl-.js +173 -0
  100. package/dist/main.js +2 -2
  101. package/dist/map-Dbvlv_6y.js +707 -0
  102. package/dist/omit-uTAyrUTm.js +645 -0
  103. package/dist/orderBy-BXxEvUw6.js +571 -0
  104. package/dist/parse-int-qVAoFbOL.js +75 -0
  105. package/dist/services/UtilService.js +7 -7
  106. package/dist/slicedToArray-BWk2gTCn.js +436 -0
  107. package/dist/{toString-BFJes2_D.js → toString-CrgB_7Pe.js} +1 -1
  108. package/dist/{uniqueId-DrPMzA-E.js → uniqueId-NU3-C36A.js} +1 -1
  109. package/package.json +3 -3
  110. package/dist/_baseIsEqual-Df2URKWm.js +0 -240
  111. package/dist/_getAllKeys-BQWmkEw5.js +0 -86
  112. package/dist/_getTag-BkGSRa18.js +0 -79
  113. package/dist/_setToString-B6E13pDg.js +0 -580
  114. package/dist/get-DQr2KQKm.js +0 -113
  115. package/dist/index-D5m--65X.js +0 -1491
  116. package/dist/index.es-8MVlRCi4.js +0 -1066
  117. package/dist/index.es-BbaCXS9-.js +0 -45
  118. package/dist/index.es-BikIx4uw.js +0 -3242
  119. package/dist/index.es-CDMu_yu0.js +0 -954
  120. package/dist/index.es-ChSlnpSq.js +0 -309
  121. package/dist/index.es-D66OkZJH.js +0 -4853
  122. package/dist/index.es-DFFyENnI.js +0 -63
  123. package/dist/index.es-DTMwaJ6B.js +0 -56
  124. package/dist/index.es-DgTJmbgD.js +0 -268
  125. package/dist/index.es-DmsyeHLO.js +0 -306
  126. package/dist/index.es-Dw1eih7R.js +0 -159
  127. package/dist/index.es-eKuwB1ll.js +0 -54
  128. package/dist/index.es-qxTN-Bb2.js +0 -107
  129. package/dist/index.es-xnSvM9b9.js +0 -444
  130. package/dist/isArray-DDZrq40X.js +0 -456
  131. package/dist/keyboard-Bpt0aBqQ.js +0 -107
  132. package/dist/omit-BN3qeeaj.js +0 -364
  133. package/dist/orderBy-D4LvP9Az.js +0 -316
@@ -0,0 +1,3790 @@
1
+ import { k as na, l as zr, m as Vr, h as Xr, _ as Ke, c as pe, a as ge, b as wt, d as Wr, P as c, o as ra, F as ia, g as aa, G as oa, H as sa, I as la } from "./index-Cpb-8cAN.js";
2
+ import { P as ca, _ as $n } from "./index.es-t7hFwQSs.js";
3
+ import { _ as Yr, a as hn, b as Qr, c as Zr, d as In, e as pn, f as Jr, g as Sn } from "./defineProperty-CmuOyxyf.js";
4
+ import { _ as Et } from "./slicedToArray-BWk2gTCn.js";
5
+ import { e as Gn, C as mr, c as An, b as ua, m as da, _ as $t, i as fa, l as Zt, n as vr, o as Fn, p as ha, k as dn } from "./index.es-BXj90wb_.js";
6
+ import { g as zn, c as sn } from "./_commonjsHelpers-BkfeUUK-.js";
7
+ import { r as pa } from "./es.string.iterator-DrqCBub-.js";
8
+ import { n as Ue, _ as Kn } from "./keyboard-B-WUULl-.js";
9
+ import m, { createContext as ei, forwardRef as Oe, useState as xt, useRef as mt, useImperativeHandle as qt, useCallback as _e, useEffect as he, useMemo as Re, useContext as Tn, Fragment as kn } from "react";
10
+ import { b as jt, c as Ut, d as ma } from "./tslib.es6-BDCynO9F.js";
11
+ import { M as Vn, a as Xn } from "./component-neHBNHRu.js";
12
+ import { a as va } from "./util-DA21pZXj.js";
13
+ import { m as Vt, c as Hn } from "./component-DsB0poTj.js";
14
+ import { R as ya } from "./index.es-BRtk0Q33.js";
15
+ import { R as ga } from "./index.es-D1IpdMde.js";
16
+ import { C as Ia } from "./index.es-DObVvepK.js";
17
+ import { S as Ta } from "./index.es-45NOgWlB.js";
18
+ import { I as fn } from "./index.es-DwzB1d7_.js";
19
+ import { d as Un, a as _a } from "./index.es-BGordhUK.js";
20
+ import { _ as Ea } from "./index.es-IXyb5F6n.js";
21
+ var yr = {}, gr;
22
+ function xa() {
23
+ if (gr) return yr;
24
+ gr = 1;
25
+ var n = /* @__PURE__ */ zr(), r = na().findIndex, e = /* @__PURE__ */ pa(), t = "findIndex", i = !0;
26
+ return t in [] && Array(1)[t](function() {
27
+ i = !1;
28
+ }), n({ target: "Array", proto: !0, forced: i }, {
29
+ findIndex: function(l) {
30
+ return r(this, l, arguments.length > 1 ? arguments[1] : void 0);
31
+ }
32
+ }), e(t), yr;
33
+ }
34
+ var Cn, Ir;
35
+ function Sa() {
36
+ if (Ir) return Cn;
37
+ Ir = 1, xa();
38
+ var n = /* @__PURE__ */ Vr();
39
+ return Cn = n("Array", "findIndex"), Cn;
40
+ }
41
+ var bn, Tr;
42
+ function Aa() {
43
+ if (Tr) return bn;
44
+ Tr = 1;
45
+ var n = /* @__PURE__ */ Xr(), r = /* @__PURE__ */ Sa(), e = Array.prototype;
46
+ return bn = function(t) {
47
+ var i = t.findIndex;
48
+ return t === e || n(e, t) && i === e.findIndex ? r : i;
49
+ }, bn;
50
+ }
51
+ var On, _r;
52
+ function Ca() {
53
+ if (_r) return On;
54
+ _r = 1;
55
+ var n = /* @__PURE__ */ Aa();
56
+ return On = n, On;
57
+ }
58
+ var Ln, Er;
59
+ function ba() {
60
+ return Er || (Er = 1, Ln = /* @__PURE__ */ Ca()), Ln;
61
+ }
62
+ var Oa = ba();
63
+ const mn = /* @__PURE__ */ zn(Oa);
64
+ /**
65
+ * @license
66
+ * Copyright 2018 Google Inc.
67
+ *
68
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
69
+ * of this software and associated documentation files (the "Software"), to deal
70
+ * in the Software without restriction, including without limitation the rights
71
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
72
+ * copies of the Software, and to permit persons to whom the Software is
73
+ * furnished to do so, subject to the following conditions:
74
+ *
75
+ * The above copyright notice and this permission notice shall be included in
76
+ * all copies or substantial portions of the Software.
77
+ *
78
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
79
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
80
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
81
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
82
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
83
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
84
+ * THE SOFTWARE.
85
+ */
86
+ var Wt = {
87
+ ANCHOR: "mdc-menu-surface--anchor",
88
+ ANIMATING_CLOSED: "mdc-menu-surface--animating-closed",
89
+ ANIMATING_OPEN: "mdc-menu-surface--animating-open",
90
+ FIXED: "mdc-menu-surface--fixed",
91
+ IS_OPEN_BELOW: "mdc-menu-surface--is-open-below",
92
+ OPEN: "mdc-menu-surface--open",
93
+ ROOT: "mdc-menu-surface"
94
+ }, Yt = {
95
+ CLOSED_EVENT: "MDCMenuSurface:closed",
96
+ CLOSING_EVENT: "MDCMenuSurface:closing",
97
+ OPENED_EVENT: "MDCMenuSurface:opened",
98
+ FOCUSABLE_ELEMENTS: [
99
+ "button:not(:disabled)",
100
+ '[href]:not([aria-disabled="true"])',
101
+ "input:not(:disabled)",
102
+ "select:not(:disabled)",
103
+ "textarea:not(:disabled)",
104
+ '[tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])'
105
+ ].join(", ")
106
+ }, ln = {
107
+ /** Total duration of menu-surface open animation. */
108
+ TRANSITION_OPEN_DURATION: 120,
109
+ /** Total duration of menu-surface close animation. */
110
+ TRANSITION_CLOSE_DURATION: 75,
111
+ /** Margin left to the edge of the viewport when menu-surface is at maximum possible height. Also used as a viewport margin. */
112
+ MARGIN_TO_EDGE: 32,
113
+ /** Ratio of anchor width to menu-surface width for switching from corner positioning to center positioning. */
114
+ ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO: 0.67
115
+ }, ce;
116
+ (function(n) {
117
+ n[n.BOTTOM = 1] = "BOTTOM", n[n.CENTER = 2] = "CENTER", n[n.RIGHT = 4] = "RIGHT", n[n.FLIP_RTL = 8] = "FLIP_RTL";
118
+ })(ce || (ce = {}));
119
+ var kt;
120
+ (function(n) {
121
+ n[n.TOP_LEFT = 0] = "TOP_LEFT", n[n.TOP_RIGHT = 4] = "TOP_RIGHT", n[n.BOTTOM_LEFT = 1] = "BOTTOM_LEFT", n[n.BOTTOM_RIGHT = 5] = "BOTTOM_RIGHT", n[n.TOP_START = 8] = "TOP_START", n[n.TOP_END = 12] = "TOP_END", n[n.BOTTOM_START = 9] = "BOTTOM_START", n[n.BOTTOM_END = 13] = "BOTTOM_END";
122
+ })(kt || (kt = {}));
123
+ /**
124
+ * @license
125
+ * Copyright 2018 Google Inc.
126
+ *
127
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
128
+ * of this software and associated documentation files (the "Software"), to deal
129
+ * in the Software without restriction, including without limitation the rights
130
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
131
+ * copies of the Software, and to permit persons to whom the Software is
132
+ * furnished to do so, subject to the following conditions:
133
+ *
134
+ * The above copyright notice and this permission notice shall be included in
135
+ * all copies or substantial portions of the Software.
136
+ *
137
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
138
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
139
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
140
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
141
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
142
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
143
+ * THE SOFTWARE.
144
+ */
145
+ var Tt, pt, C = {
146
+ LIST_ITEM_ACTIVATED_CLASS: "mdc-list-item--activated",
147
+ LIST_ITEM_CLASS: "mdc-list-item",
148
+ LIST_ITEM_DISABLED_CLASS: "mdc-list-item--disabled",
149
+ LIST_ITEM_SELECTED_CLASS: "mdc-list-item--selected",
150
+ LIST_ITEM_TEXT_CLASS: "mdc-list-item__text",
151
+ LIST_ITEM_PRIMARY_TEXT_CLASS: "mdc-list-item__primary-text",
152
+ ROOT: "mdc-list"
153
+ }, La = (Tt = {}, Tt["" + C.LIST_ITEM_ACTIVATED_CLASS] = "mdc-list-item--activated", Tt["" + C.LIST_ITEM_CLASS] = "mdc-list-item", Tt["" + C.LIST_ITEM_DISABLED_CLASS] = "mdc-list-item--disabled", Tt["" + C.LIST_ITEM_SELECTED_CLASS] = "mdc-list-item--selected", Tt["" + C.LIST_ITEM_PRIMARY_TEXT_CLASS] = "mdc-list-item__primary-text", Tt["" + C.ROOT] = "mdc-list", Tt), Lt = (pt = {}, pt["" + C.LIST_ITEM_ACTIVATED_CLASS] = "mdc-deprecated-list-item--activated", pt["" + C.LIST_ITEM_CLASS] = "mdc-deprecated-list-item", pt["" + C.LIST_ITEM_DISABLED_CLASS] = "mdc-deprecated-list-item--disabled", pt["" + C.LIST_ITEM_SELECTED_CLASS] = "mdc-deprecated-list-item--selected", pt["" + C.LIST_ITEM_TEXT_CLASS] = "mdc-deprecated-list-item__text", pt["" + C.LIST_ITEM_PRIMARY_TEXT_CLASS] = "mdc-deprecated-list-item__primary-text", pt["" + C.ROOT] = "mdc-deprecated-list", pt), oe = {
154
+ ACTION_EVENT: "MDCList:action",
155
+ ARIA_CHECKED: "aria-checked",
156
+ ARIA_CHECKED_CHECKBOX_SELECTOR: '[role="checkbox"][aria-checked="true"]',
157
+ ARIA_CHECKED_RADIO_SELECTOR: '[role="radio"][aria-checked="true"]',
158
+ ARIA_CURRENT: "aria-current",
159
+ ARIA_DISABLED: "aria-disabled",
160
+ ARIA_ORIENTATION: "aria-orientation",
161
+ ARIA_ORIENTATION_HORIZONTAL: "horizontal",
162
+ ARIA_ROLE_CHECKBOX_SELECTOR: '[role="checkbox"]',
163
+ ARIA_SELECTED: "aria-selected",
164
+ ARIA_INTERACTIVE_ROLES_SELECTOR: '[role="listbox"], [role="menu"]',
165
+ ARIA_MULTI_SELECTABLE_SELECTOR: '[aria-multiselectable="true"]',
166
+ CHECKBOX_RADIO_SELECTOR: 'input[type="checkbox"], input[type="radio"]',
167
+ CHECKBOX_SELECTOR: 'input[type="checkbox"]',
168
+ CHILD_ELEMENTS_TO_TOGGLE_TABINDEX: `
169
+ .` + C.LIST_ITEM_CLASS + ` button:not(:disabled),
170
+ .` + C.LIST_ITEM_CLASS + ` a,
171
+ .` + Lt[C.LIST_ITEM_CLASS] + ` button:not(:disabled),
172
+ .` + Lt[C.LIST_ITEM_CLASS] + ` a
173
+ `,
174
+ DEPRECATED_SELECTOR: ".mdc-deprecated-list",
175
+ FOCUSABLE_CHILD_ELEMENTS: `
176
+ .` + C.LIST_ITEM_CLASS + ` button:not(:disabled),
177
+ .` + C.LIST_ITEM_CLASS + ` a,
178
+ .` + C.LIST_ITEM_CLASS + ` input[type="radio"]:not(:disabled),
179
+ .` + C.LIST_ITEM_CLASS + ` input[type="checkbox"]:not(:disabled),
180
+ .` + Lt[C.LIST_ITEM_CLASS] + ` button:not(:disabled),
181
+ .` + Lt[C.LIST_ITEM_CLASS] + ` a,
182
+ .` + Lt[C.LIST_ITEM_CLASS] + ` input[type="radio"]:not(:disabled),
183
+ .` + Lt[C.LIST_ITEM_CLASS] + ` input[type="checkbox"]:not(:disabled)
184
+ `,
185
+ RADIO_SELECTOR: 'input[type="radio"]',
186
+ SELECTED_ITEM_SELECTOR: '[aria-selected="true"], [aria-current="true"]'
187
+ }, be = {
188
+ UNSET_INDEX: -1,
189
+ TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS: 300
190
+ }, Na = "evolution";
191
+ /**
192
+ * @license
193
+ * Copyright 2020 Google Inc.
194
+ *
195
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
196
+ * of this software and associated documentation files (the "Software"), to deal
197
+ * in the Software without restriction, including without limitation the rights
198
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
199
+ * copies of the Software, and to permit persons to whom the Software is
200
+ * furnished to do so, subject to the following conditions:
201
+ *
202
+ * The above copyright notice and this permission notice shall be included in
203
+ * all copies or substantial portions of the Software.
204
+ *
205
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
206
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
207
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
208
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
209
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
210
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
211
+ * THE SOFTWARE.
212
+ */
213
+ var Ma = ["input", "button", "textarea", "select"], Nt = function(n) {
214
+ var r = n.target;
215
+ if (r) {
216
+ var e = ("" + r.tagName).toLowerCase();
217
+ Ma.indexOf(e) === -1 && n.preventDefault();
218
+ }
219
+ };
220
+ /**
221
+ * @license
222
+ * Copyright 2020 Google Inc.
223
+ *
224
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
225
+ * of this software and associated documentation files (the "Software"), to deal
226
+ * in the Software without restriction, including without limitation the rights
227
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
228
+ * copies of the Software, and to permit persons to whom the Software is
229
+ * furnished to do so, subject to the following conditions:
230
+ *
231
+ * The above copyright notice and this permission notice shall be included in
232
+ * all copies or substantial portions of the Software.
233
+ *
234
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
235
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
236
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
237
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
238
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
239
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
240
+ * THE SOFTWARE.
241
+ */
242
+ function wa() {
243
+ var n = {
244
+ bufferClearTimeout: 0,
245
+ currentFirstChar: "",
246
+ sortedIndexCursor: 0,
247
+ typeaheadBuffer: ""
248
+ };
249
+ return n;
250
+ }
251
+ function Pa(n, r) {
252
+ for (var e = /* @__PURE__ */ new Map(), t = 0; t < n; t++) {
253
+ var i = r(t).trim();
254
+ if (i) {
255
+ var o = i[0].toLowerCase();
256
+ e.has(o) || e.set(o, []), e.get(o).push({ text: i.toLowerCase(), index: t });
257
+ }
258
+ }
259
+ return e.forEach(function(l) {
260
+ l.sort(function(u, f) {
261
+ return u.index - f.index;
262
+ });
263
+ }), e;
264
+ }
265
+ function qn(n, r) {
266
+ var e = n.nextChar, t = n.focusItemAtIndex, i = n.sortedIndexByFirstChar, o = n.focusedItemIndex, l = n.skipFocus, u = n.isItemAtIndexDisabled;
267
+ clearTimeout(r.bufferClearTimeout), r.bufferClearTimeout = setTimeout(function() {
268
+ ni(r);
269
+ }, be.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS), r.typeaheadBuffer = r.typeaheadBuffer + e;
270
+ var f;
271
+ return r.typeaheadBuffer.length === 1 ? f = Ra(i, o, u, r) : f = Da(i, u, r), f !== -1 && !l && t(f), f;
272
+ }
273
+ function Ra(n, r, e, t) {
274
+ var i = t.typeaheadBuffer[0], o = n.get(i);
275
+ if (!o)
276
+ return -1;
277
+ if (i === t.currentFirstChar && o[t.sortedIndexCursor].index === r) {
278
+ t.sortedIndexCursor = (t.sortedIndexCursor + 1) % o.length;
279
+ var l = o[t.sortedIndexCursor].index;
280
+ if (!e(l))
281
+ return l;
282
+ }
283
+ t.currentFirstChar = i;
284
+ var u = -1, f;
285
+ for (f = 0; f < o.length; f++)
286
+ if (!e(o[f].index)) {
287
+ u = f;
288
+ break;
289
+ }
290
+ for (; f < o.length; f++)
291
+ if (o[f].index > r && !e(o[f].index)) {
292
+ u = f;
293
+ break;
294
+ }
295
+ return u !== -1 ? (t.sortedIndexCursor = u, o[t.sortedIndexCursor].index) : -1;
296
+ }
297
+ function Da(n, r, e) {
298
+ var t = e.typeaheadBuffer[0], i = n.get(t);
299
+ if (!i)
300
+ return -1;
301
+ var o = i[e.sortedIndexCursor];
302
+ if (o.text.lastIndexOf(e.typeaheadBuffer, 0) === 0 && !r(o.index))
303
+ return o.index;
304
+ for (var l = (e.sortedIndexCursor + 1) % i.length, u = -1; l !== e.sortedIndexCursor; ) {
305
+ var f = i[l], v = f.text.lastIndexOf(e.typeaheadBuffer, 0) === 0, O = !r(f.index);
306
+ if (v && O) {
307
+ u = l;
308
+ break;
309
+ }
310
+ l = (l + 1) % i.length;
311
+ }
312
+ return u !== -1 ? (e.sortedIndexCursor = u, i[e.sortedIndexCursor].index) : -1;
313
+ }
314
+ function ti(n) {
315
+ return n.typeaheadBuffer.length > 0;
316
+ }
317
+ function ni(n) {
318
+ n.typeaheadBuffer = "";
319
+ }
320
+ function xr(n, r) {
321
+ var e = n.event, t = n.isTargetListItem, i = n.focusedItemIndex, o = n.focusItemAtIndex, l = n.sortedIndexByFirstChar, u = n.isItemAtIndexDisabled, f = Ue(e) === "ArrowLeft", v = Ue(e) === "ArrowUp", O = Ue(e) === "ArrowRight", E = Ue(e) === "ArrowDown", x = Ue(e) === "Home", P = Ue(e) === "End", N = Ue(e) === "Enter", S = Ue(e) === "Spacebar";
322
+ if (e.ctrlKey || e.metaKey || f || v || O || E || x || P || N)
323
+ return -1;
324
+ var R = !S && e.key.length === 1;
325
+ if (R) {
326
+ Nt(e);
327
+ var F = {
328
+ focusItemAtIndex: o,
329
+ focusedItemIndex: i,
330
+ nextChar: e.key.toLowerCase(),
331
+ sortedIndexByFirstChar: l,
332
+ skipFocus: !1,
333
+ isItemAtIndexDisabled: u
334
+ };
335
+ return qn(F, r);
336
+ }
337
+ if (!S)
338
+ return -1;
339
+ t && Nt(e);
340
+ var H = t && ti(r);
341
+ if (H) {
342
+ var F = {
343
+ focusItemAtIndex: o,
344
+ focusedItemIndex: i,
345
+ nextChar: " ",
346
+ sortedIndexByFirstChar: l,
347
+ skipFocus: !1,
348
+ isItemAtIndexDisabled: u
349
+ };
350
+ return qn(F, r);
351
+ }
352
+ return -1;
353
+ }
354
+ /**
355
+ * @license
356
+ * Copyright 2018 Google Inc.
357
+ *
358
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
359
+ * of this software and associated documentation files (the "Software"), to deal
360
+ * in the Software without restriction, including without limitation the rights
361
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
362
+ * copies of the Software, and to permit persons to whom the Software is
363
+ * furnished to do so, subject to the following conditions:
364
+ *
365
+ * The above copyright notice and this permission notice shall be included in
366
+ * all copies or substantial portions of the Software.
367
+ *
368
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
369
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
370
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
371
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
372
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
373
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
374
+ * THE SOFTWARE.
375
+ */
376
+ function Ba(n) {
377
+ return n instanceof Array;
378
+ }
379
+ var jn = (
380
+ /** @class */
381
+ function(n) {
382
+ jt(r, n);
383
+ function r(e) {
384
+ var t = n.call(this, Ut(Ut({}, r.defaultAdapter), e)) || this;
385
+ return t.wrapFocus_ = !1, t.isVertical_ = !0, t.isSingleSelectionList_ = !1, t.selectedIndex_ = be.UNSET_INDEX, t.focusedItemIndex = be.UNSET_INDEX, t.useActivatedClass_ = !1, t.useSelectedAttr_ = !1, t.ariaCurrentAttrValue_ = null, t.isCheckboxList_ = !1, t.isRadioList_ = !1, t.hasTypeahead = !1, t.typeaheadState = wa(), t.sortedIndexByFirstChar = /* @__PURE__ */ new Map(), t;
386
+ }
387
+ return Object.defineProperty(r, "strings", {
388
+ get: function() {
389
+ return oe;
390
+ },
391
+ enumerable: !1,
392
+ configurable: !0
393
+ }), Object.defineProperty(r, "cssClasses", {
394
+ get: function() {
395
+ return C;
396
+ },
397
+ enumerable: !1,
398
+ configurable: !0
399
+ }), Object.defineProperty(r, "numbers", {
400
+ get: function() {
401
+ return be;
402
+ },
403
+ enumerable: !1,
404
+ configurable: !0
405
+ }), Object.defineProperty(r, "defaultAdapter", {
406
+ get: function() {
407
+ return {
408
+ addClassForElementIndex: function() {
409
+ },
410
+ focusItemAtIndex: function() {
411
+ },
412
+ getAttributeForElementIndex: function() {
413
+ return null;
414
+ },
415
+ getFocusedElementIndex: function() {
416
+ return 0;
417
+ },
418
+ getListItemCount: function() {
419
+ return 0;
420
+ },
421
+ hasCheckboxAtIndex: function() {
422
+ return !1;
423
+ },
424
+ hasRadioAtIndex: function() {
425
+ return !1;
426
+ },
427
+ isCheckboxCheckedAtIndex: function() {
428
+ return !1;
429
+ },
430
+ isFocusInsideList: function() {
431
+ return !1;
432
+ },
433
+ isRootFocused: function() {
434
+ return !1;
435
+ },
436
+ listItemAtIndexHasClass: function() {
437
+ return !1;
438
+ },
439
+ notifyAction: function() {
440
+ },
441
+ removeClassForElementIndex: function() {
442
+ },
443
+ setAttributeForElementIndex: function() {
444
+ },
445
+ setCheckedCheckboxOrRadioAtIndex: function() {
446
+ },
447
+ setTabIndexForListItemChildren: function() {
448
+ },
449
+ getPrimaryTextAtIndex: function() {
450
+ return "";
451
+ }
452
+ };
453
+ },
454
+ enumerable: !1,
455
+ configurable: !0
456
+ }), r.prototype.layout = function() {
457
+ this.adapter.getListItemCount() !== 0 && (this.adapter.hasCheckboxAtIndex(0) ? this.isCheckboxList_ = !0 : this.adapter.hasRadioAtIndex(0) ? this.isRadioList_ = !0 : this.maybeInitializeSingleSelection(), this.hasTypeahead && (this.sortedIndexByFirstChar = this.typeaheadInitSortedIndex()));
458
+ }, r.prototype.setWrapFocus = function(e) {
459
+ this.wrapFocus_ = e;
460
+ }, r.prototype.setVerticalOrientation = function(e) {
461
+ this.isVertical_ = e;
462
+ }, r.prototype.setSingleSelection = function(e) {
463
+ this.isSingleSelectionList_ = e, e && this.maybeInitializeSingleSelection();
464
+ }, r.prototype.maybeInitializeSingleSelection = function() {
465
+ for (var e = this.adapter.getListItemCount(), t = 0; t < e; t++) {
466
+ var i = this.adapter.listItemAtIndexHasClass(t, C.LIST_ITEM_SELECTED_CLASS), o = this.adapter.listItemAtIndexHasClass(t, C.LIST_ITEM_ACTIVATED_CLASS);
467
+ if (i || o) {
468
+ o && this.setUseActivatedClass(!0), this.isSingleSelectionList_ = !0, this.selectedIndex_ = t;
469
+ return;
470
+ }
471
+ }
472
+ }, r.prototype.setHasTypeahead = function(e) {
473
+ this.hasTypeahead = e, e && (this.sortedIndexByFirstChar = this.typeaheadInitSortedIndex());
474
+ }, r.prototype.isTypeaheadInProgress = function() {
475
+ return this.hasTypeahead && ti(this.typeaheadState);
476
+ }, r.prototype.setUseActivatedClass = function(e) {
477
+ this.useActivatedClass_ = e;
478
+ }, r.prototype.setUseSelectedAttribute = function(e) {
479
+ this.useSelectedAttr_ = e;
480
+ }, r.prototype.getSelectedIndex = function() {
481
+ return this.selectedIndex_;
482
+ }, r.prototype.setSelectedIndex = function(e) {
483
+ this.isIndexValid_(e) && (this.isCheckboxList_ ? this.setCheckboxAtIndex_(e) : this.isRadioList_ ? this.setRadioAtIndex_(e) : this.setSingleSelectionAtIndex_(e));
484
+ }, r.prototype.handleFocusIn = function(e, t) {
485
+ t >= 0 && (this.focusedItemIndex = t, this.adapter.setAttributeForElementIndex(t, "tabindex", "0"), this.adapter.setTabIndexForListItemChildren(t, "0"));
486
+ }, r.prototype.handleFocusOut = function(e, t) {
487
+ var i = this;
488
+ t >= 0 && (this.adapter.setAttributeForElementIndex(t, "tabindex", "-1"), this.adapter.setTabIndexForListItemChildren(t, "-1")), setTimeout(function() {
489
+ i.adapter.isFocusInsideList() || i.setTabindexToFirstSelectedOrFocusedItem();
490
+ }, 0);
491
+ }, r.prototype.handleKeydown = function(e, t, i) {
492
+ var o = this, l = Ue(e) === "ArrowLeft", u = Ue(e) === "ArrowUp", f = Ue(e) === "ArrowRight", v = Ue(e) === "ArrowDown", O = Ue(e) === "Home", E = Ue(e) === "End", x = Ue(e) === "Enter", P = Ue(e) === "Spacebar", N = e.key === "A" || e.key === "a";
493
+ if (this.adapter.isRootFocused()) {
494
+ if (u || E ? (e.preventDefault(), this.focusLastElement()) : (v || O) && (e.preventDefault(), this.focusFirstElement()), this.hasTypeahead) {
495
+ var S = {
496
+ event: e,
497
+ focusItemAtIndex: function(H) {
498
+ o.focusItemAtIndex(H);
499
+ },
500
+ focusedItemIndex: -1,
501
+ isTargetListItem: t,
502
+ sortedIndexByFirstChar: this.sortedIndexByFirstChar,
503
+ isItemAtIndexDisabled: function(H) {
504
+ return o.adapter.listItemAtIndexHasClass(H, C.LIST_ITEM_DISABLED_CLASS);
505
+ }
506
+ };
507
+ xr(S, this.typeaheadState);
508
+ }
509
+ return;
510
+ }
511
+ var R = this.adapter.getFocusedElementIndex();
512
+ if (!(R === -1 && (R = i, R < 0))) {
513
+ if (this.isVertical_ && v || !this.isVertical_ && f)
514
+ Nt(e), this.focusNextElement(R);
515
+ else if (this.isVertical_ && u || !this.isVertical_ && l)
516
+ Nt(e), this.focusPrevElement(R);
517
+ else if (O)
518
+ Nt(e), this.focusFirstElement();
519
+ else if (E)
520
+ Nt(e), this.focusLastElement();
521
+ else if (N && e.ctrlKey && this.isCheckboxList_)
522
+ e.preventDefault(), this.toggleAll(this.selectedIndex_ === be.UNSET_INDEX ? [] : this.selectedIndex_);
523
+ else if ((x || P) && t) {
524
+ var F = e.target;
525
+ if (F && F.tagName === "A" && x || (Nt(e), this.adapter.listItemAtIndexHasClass(R, C.LIST_ITEM_DISABLED_CLASS)))
526
+ return;
527
+ this.isTypeaheadInProgress() || (this.isSelectableList_() && this.setSelectedIndexOnAction_(R), this.adapter.notifyAction(R));
528
+ }
529
+ if (this.hasTypeahead) {
530
+ var S = {
531
+ event: e,
532
+ focusItemAtIndex: function(U) {
533
+ o.focusItemAtIndex(U);
534
+ },
535
+ focusedItemIndex: this.focusedItemIndex,
536
+ isTargetListItem: t,
537
+ sortedIndexByFirstChar: this.sortedIndexByFirstChar,
538
+ isItemAtIndexDisabled: function(U) {
539
+ return o.adapter.listItemAtIndexHasClass(U, C.LIST_ITEM_DISABLED_CLASS);
540
+ }
541
+ };
542
+ xr(S, this.typeaheadState);
543
+ }
544
+ }
545
+ }, r.prototype.handleClick = function(e, t) {
546
+ e !== be.UNSET_INDEX && (this.adapter.listItemAtIndexHasClass(e, C.LIST_ITEM_DISABLED_CLASS) || (this.isSelectableList_() && this.setSelectedIndexOnAction_(e, t), this.adapter.notifyAction(e)));
547
+ }, r.prototype.focusNextElement = function(e) {
548
+ var t = this.adapter.getListItemCount(), i = e + 1;
549
+ if (i >= t)
550
+ if (this.wrapFocus_)
551
+ i = 0;
552
+ else
553
+ return e;
554
+ return this.focusItemAtIndex(i), i;
555
+ }, r.prototype.focusPrevElement = function(e) {
556
+ var t = e - 1;
557
+ if (t < 0)
558
+ if (this.wrapFocus_)
559
+ t = this.adapter.getListItemCount() - 1;
560
+ else
561
+ return e;
562
+ return this.focusItemAtIndex(t), t;
563
+ }, r.prototype.focusFirstElement = function() {
564
+ return this.focusItemAtIndex(0), 0;
565
+ }, r.prototype.focusLastElement = function() {
566
+ var e = this.adapter.getListItemCount() - 1;
567
+ return this.focusItemAtIndex(e), e;
568
+ }, r.prototype.focusInitialElement = function() {
569
+ var e = this.getFirstSelectedOrFocusedItemIndex();
570
+ return this.focusItemAtIndex(e), e;
571
+ }, r.prototype.setEnabled = function(e, t) {
572
+ this.isIndexValid_(e) && (t ? (this.adapter.removeClassForElementIndex(e, C.LIST_ITEM_DISABLED_CLASS), this.adapter.setAttributeForElementIndex(e, oe.ARIA_DISABLED, "false")) : (this.adapter.addClassForElementIndex(e, C.LIST_ITEM_DISABLED_CLASS), this.adapter.setAttributeForElementIndex(e, oe.ARIA_DISABLED, "true")));
573
+ }, r.prototype.setSingleSelectionAtIndex_ = function(e) {
574
+ if (this.selectedIndex_ !== e) {
575
+ var t = C.LIST_ITEM_SELECTED_CLASS;
576
+ this.useActivatedClass_ && (t = C.LIST_ITEM_ACTIVATED_CLASS), this.selectedIndex_ !== be.UNSET_INDEX && this.adapter.removeClassForElementIndex(this.selectedIndex_, t), this.setAriaForSingleSelectionAtIndex_(e), this.setTabindexAtIndex(e), e !== be.UNSET_INDEX && this.adapter.addClassForElementIndex(e, t), this.selectedIndex_ = e;
577
+ }
578
+ }, r.prototype.setAriaForSingleSelectionAtIndex_ = function(e) {
579
+ this.selectedIndex_ === be.UNSET_INDEX && (this.ariaCurrentAttrValue_ = this.adapter.getAttributeForElementIndex(e, oe.ARIA_CURRENT));
580
+ var t = this.ariaCurrentAttrValue_ !== null, i = t ? oe.ARIA_CURRENT : oe.ARIA_SELECTED;
581
+ if (this.selectedIndex_ !== be.UNSET_INDEX && this.adapter.setAttributeForElementIndex(this.selectedIndex_, i, "false"), e !== be.UNSET_INDEX) {
582
+ var o = t ? this.ariaCurrentAttrValue_ : "true";
583
+ this.adapter.setAttributeForElementIndex(e, i, o);
584
+ }
585
+ }, r.prototype.getSelectionAttribute = function() {
586
+ return this.useSelectedAttr_ ? oe.ARIA_SELECTED : oe.ARIA_CHECKED;
587
+ }, r.prototype.setRadioAtIndex_ = function(e) {
588
+ var t = this.getSelectionAttribute();
589
+ this.adapter.setCheckedCheckboxOrRadioAtIndex(e, !0), this.selectedIndex_ !== be.UNSET_INDEX && this.adapter.setAttributeForElementIndex(this.selectedIndex_, t, "false"), this.adapter.setAttributeForElementIndex(e, t, "true"), this.selectedIndex_ = e;
590
+ }, r.prototype.setCheckboxAtIndex_ = function(e) {
591
+ for (var t = this.getSelectionAttribute(), i = 0; i < this.adapter.getListItemCount(); i++) {
592
+ var o = !1;
593
+ e.indexOf(i) >= 0 && (o = !0), this.adapter.setCheckedCheckboxOrRadioAtIndex(i, o), this.adapter.setAttributeForElementIndex(i, t, o ? "true" : "false");
594
+ }
595
+ this.selectedIndex_ = e;
596
+ }, r.prototype.setTabindexAtIndex = function(e) {
597
+ this.focusedItemIndex === be.UNSET_INDEX && e !== 0 ? this.adapter.setAttributeForElementIndex(0, "tabindex", "-1") : this.focusedItemIndex >= 0 && this.focusedItemIndex !== e && this.adapter.setAttributeForElementIndex(this.focusedItemIndex, "tabindex", "-1"), !(this.selectedIndex_ instanceof Array) && this.selectedIndex_ !== e && this.adapter.setAttributeForElementIndex(this.selectedIndex_, "tabindex", "-1"), e !== be.UNSET_INDEX && this.adapter.setAttributeForElementIndex(e, "tabindex", "0");
598
+ }, r.prototype.isSelectableList_ = function() {
599
+ return this.isSingleSelectionList_ || this.isCheckboxList_ || this.isRadioList_;
600
+ }, r.prototype.setTabindexToFirstSelectedOrFocusedItem = function() {
601
+ var e = this.getFirstSelectedOrFocusedItemIndex();
602
+ this.setTabindexAtIndex(e);
603
+ }, r.prototype.getFirstSelectedOrFocusedItemIndex = function() {
604
+ var e = this.focusedItemIndex >= 0 ? this.focusedItemIndex : 0;
605
+ return this.isSelectableList_() && (typeof this.selectedIndex_ == "number" && this.selectedIndex_ !== be.UNSET_INDEX ? e = this.selectedIndex_ : Ba(this.selectedIndex_) && this.selectedIndex_.length > 0 && (e = this.selectedIndex_.reduce(function(t, i) {
606
+ return Math.min(t, i);
607
+ }))), e;
608
+ }, r.prototype.isIndexValid_ = function(e) {
609
+ var t = this;
610
+ if (e instanceof Array) {
611
+ if (!this.isCheckboxList_)
612
+ throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");
613
+ return e.length === 0 ? !0 : e.some(function(i) {
614
+ return t.isIndexInRange_(i);
615
+ });
616
+ } else if (typeof e == "number") {
617
+ if (this.isCheckboxList_)
618
+ throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: " + e);
619
+ return this.isIndexInRange_(e) || this.isSingleSelectionList_ && e === be.UNSET_INDEX;
620
+ } else
621
+ return !1;
622
+ }, r.prototype.isIndexInRange_ = function(e) {
623
+ var t = this.adapter.getListItemCount();
624
+ return e >= 0 && e < t;
625
+ }, r.prototype.setSelectedIndexOnAction_ = function(e, t) {
626
+ t === void 0 && (t = !0), this.isCheckboxList_ ? this.toggleCheckboxAtIndex_(e, t) : this.setSelectedIndex(e);
627
+ }, r.prototype.toggleCheckboxAtIndex_ = function(e, t) {
628
+ var i = this.getSelectionAttribute(), o = this.adapter.isCheckboxCheckedAtIndex(e);
629
+ t && (o = !o, this.adapter.setCheckedCheckboxOrRadioAtIndex(e, o)), this.adapter.setAttributeForElementIndex(e, i, o ? "true" : "false");
630
+ var l = this.selectedIndex_ === be.UNSET_INDEX ? [] : this.selectedIndex_.slice();
631
+ o ? l.push(e) : l = l.filter(function(u) {
632
+ return u !== e;
633
+ }), this.selectedIndex_ = l;
634
+ }, r.prototype.focusItemAtIndex = function(e) {
635
+ this.adapter.focusItemAtIndex(e), this.focusedItemIndex = e;
636
+ }, r.prototype.toggleAll = function(e) {
637
+ var t = this.adapter.getListItemCount();
638
+ if (e.length === t)
639
+ this.setCheckboxAtIndex_([]);
640
+ else {
641
+ for (var i = [], o = 0; o < t; o++)
642
+ (!this.adapter.listItemAtIndexHasClass(o, C.LIST_ITEM_DISABLED_CLASS) || e.indexOf(o) > -1) && i.push(o);
643
+ this.setCheckboxAtIndex_(i);
644
+ }
645
+ }, r.prototype.typeaheadMatchItem = function(e, t, i) {
646
+ var o = this;
647
+ i === void 0 && (i = !1);
648
+ var l = {
649
+ focusItemAtIndex: function(u) {
650
+ o.focusItemAtIndex(u);
651
+ },
652
+ focusedItemIndex: t || this.focusedItemIndex,
653
+ nextChar: e,
654
+ sortedIndexByFirstChar: this.sortedIndexByFirstChar,
655
+ skipFocus: i,
656
+ isItemAtIndexDisabled: function(u) {
657
+ return o.adapter.listItemAtIndexHasClass(u, C.LIST_ITEM_DISABLED_CLASS);
658
+ }
659
+ };
660
+ return qn(l, this.typeaheadState);
661
+ }, r.prototype.typeaheadInitSortedIndex = function() {
662
+ return Pa(this.adapter.getListItemCount(), this.adapter.getPrimaryTextAtIndex);
663
+ }, r.prototype.clearTypeaheadBuffer = function() {
664
+ ni(this.typeaheadState);
665
+ }, r;
666
+ }(Vn)
667
+ );
668
+ /**
669
+ * @license
670
+ * Copyright 2018 Google Inc.
671
+ *
672
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
673
+ * of this software and associated documentation files (the "Software"), to deal
674
+ * in the Software without restriction, including without limitation the rights
675
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
676
+ * copies of the Software, and to permit persons to whom the Software is
677
+ * furnished to do so, subject to the following conditions:
678
+ *
679
+ * The above copyright notice and this permission notice shall be included in
680
+ * all copies or substantial portions of the Software.
681
+ *
682
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
683
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
684
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
685
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
686
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
687
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
688
+ * THE SOFTWARE.
689
+ */
690
+ var ri = (
691
+ /** @class */
692
+ function(n) {
693
+ jt(r, n);
694
+ function r() {
695
+ return n !== null && n.apply(this, arguments) || this;
696
+ }
697
+ return Object.defineProperty(r.prototype, "vertical", {
698
+ set: function(e) {
699
+ this.foundation.setVerticalOrientation(e);
700
+ },
701
+ enumerable: !1,
702
+ configurable: !0
703
+ }), Object.defineProperty(r.prototype, "listElements", {
704
+ get: function() {
705
+ return Array.from(this.root.querySelectorAll("." + this.classNameMap[C.LIST_ITEM_CLASS]));
706
+ },
707
+ enumerable: !1,
708
+ configurable: !0
709
+ }), Object.defineProperty(r.prototype, "wrapFocus", {
710
+ set: function(e) {
711
+ this.foundation.setWrapFocus(e);
712
+ },
713
+ enumerable: !1,
714
+ configurable: !0
715
+ }), Object.defineProperty(r.prototype, "typeaheadInProgress", {
716
+ /**
717
+ * @return Whether typeahead is currently matching a user-specified prefix.
718
+ */
719
+ get: function() {
720
+ return this.foundation.isTypeaheadInProgress();
721
+ },
722
+ enumerable: !1,
723
+ configurable: !0
724
+ }), Object.defineProperty(r.prototype, "hasTypeahead", {
725
+ /**
726
+ * Sets whether typeahead functionality is enabled on the list.
727
+ * @param hasTypeahead Whether typeahead is enabled.
728
+ */
729
+ set: function(e) {
730
+ this.foundation.setHasTypeahead(e);
731
+ },
732
+ enumerable: !1,
733
+ configurable: !0
734
+ }), Object.defineProperty(r.prototype, "singleSelection", {
735
+ set: function(e) {
736
+ this.foundation.setSingleSelection(e);
737
+ },
738
+ enumerable: !1,
739
+ configurable: !0
740
+ }), Object.defineProperty(r.prototype, "selectedIndex", {
741
+ get: function() {
742
+ return this.foundation.getSelectedIndex();
743
+ },
744
+ set: function(e) {
745
+ this.foundation.setSelectedIndex(e);
746
+ },
747
+ enumerable: !1,
748
+ configurable: !0
749
+ }), r.attachTo = function(e) {
750
+ return new r(e);
751
+ }, r.prototype.initialSyncWithDOM = function() {
752
+ this.isEvolutionEnabled = Na in this.root.dataset, this.isEvolutionEnabled ? this.classNameMap = La : Vt(this.root, oe.DEPRECATED_SELECTOR) ? this.classNameMap = Lt : this.classNameMap = Object.values(C).reduce(function(e, t) {
753
+ return e[t] = t, e;
754
+ }, {}), this.handleClick = this.handleClickEvent.bind(this), this.handleKeydown = this.handleKeydownEvent.bind(this), this.focusInEventListener = this.handleFocusInEvent.bind(this), this.focusOutEventListener = this.handleFocusOutEvent.bind(this), this.listen("keydown", this.handleKeydown), this.listen("click", this.handleClick), this.listen("focusin", this.focusInEventListener), this.listen("focusout", this.focusOutEventListener), this.layout(), this.initializeListType(), this.ensureFocusable();
755
+ }, r.prototype.destroy = function() {
756
+ this.unlisten("keydown", this.handleKeydown), this.unlisten("click", this.handleClick), this.unlisten("focusin", this.focusInEventListener), this.unlisten("focusout", this.focusOutEventListener);
757
+ }, r.prototype.layout = function() {
758
+ var e = this.root.getAttribute(oe.ARIA_ORIENTATION);
759
+ this.vertical = e !== oe.ARIA_ORIENTATION_HORIZONTAL;
760
+ var t = "." + this.classNameMap[C.LIST_ITEM_CLASS] + ":not([tabindex])", i = oe.FOCUSABLE_CHILD_ELEMENTS, o = this.root.querySelectorAll(t);
761
+ o.length && Array.prototype.forEach.call(o, function(u) {
762
+ u.setAttribute("tabindex", "-1");
763
+ });
764
+ var l = this.root.querySelectorAll(i);
765
+ l.length && Array.prototype.forEach.call(l, function(u) {
766
+ u.setAttribute("tabindex", "-1");
767
+ }), this.isEvolutionEnabled && this.foundation.setUseSelectedAttribute(!0), this.foundation.layout();
768
+ }, r.prototype.getPrimaryText = function(e) {
769
+ var t, i = e.querySelector("." + this.classNameMap[C.LIST_ITEM_PRIMARY_TEXT_CLASS]);
770
+ if (this.isEvolutionEnabled || i)
771
+ return (t = i?.textContent) !== null && t !== void 0 ? t : "";
772
+ var o = e.querySelector("." + this.classNameMap[C.LIST_ITEM_TEXT_CLASS]);
773
+ return o && o.textContent || "";
774
+ }, r.prototype.initializeListType = function() {
775
+ var e = this;
776
+ if (this.isInteractive = Vt(this.root, oe.ARIA_INTERACTIVE_ROLES_SELECTOR), this.isEvolutionEnabled && this.isInteractive) {
777
+ var t = Array.from(this.root.querySelectorAll(oe.SELECTED_ITEM_SELECTOR), function(u) {
778
+ return e.listElements.indexOf(u);
779
+ });
780
+ Vt(this.root, oe.ARIA_MULTI_SELECTABLE_SELECTOR) ? this.selectedIndex = t : t.length > 0 && (this.selectedIndex = t[0]);
781
+ return;
782
+ }
783
+ var i = this.root.querySelectorAll(oe.ARIA_ROLE_CHECKBOX_SELECTOR), o = this.root.querySelector(oe.ARIA_CHECKED_RADIO_SELECTOR);
784
+ if (i.length) {
785
+ var l = this.root.querySelectorAll(oe.ARIA_CHECKED_CHECKBOX_SELECTOR);
786
+ this.selectedIndex = Array.from(l, function(u) {
787
+ return e.listElements.indexOf(u);
788
+ });
789
+ } else o && (this.selectedIndex = this.listElements.indexOf(o));
790
+ }, r.prototype.setEnabled = function(e, t) {
791
+ this.foundation.setEnabled(e, t);
792
+ }, r.prototype.typeaheadMatchItem = function(e, t) {
793
+ return this.foundation.typeaheadMatchItem(
794
+ e,
795
+ t,
796
+ /** skipFocus */
797
+ !0
798
+ );
799
+ }, r.prototype.getDefaultFoundation = function() {
800
+ var e = this, t = {
801
+ addClassForElementIndex: function(i, o) {
802
+ var l = e.listElements[i];
803
+ l && l.classList.add(e.classNameMap[o]);
804
+ },
805
+ focusItemAtIndex: function(i) {
806
+ var o = e.listElements[i];
807
+ o && o.focus();
808
+ },
809
+ getAttributeForElementIndex: function(i, o) {
810
+ return e.listElements[i].getAttribute(o);
811
+ },
812
+ getFocusedElementIndex: function() {
813
+ return e.listElements.indexOf(document.activeElement);
814
+ },
815
+ getListItemCount: function() {
816
+ return e.listElements.length;
817
+ },
818
+ getPrimaryTextAtIndex: function(i) {
819
+ return e.getPrimaryText(e.listElements[i]);
820
+ },
821
+ hasCheckboxAtIndex: function(i) {
822
+ var o = e.listElements[i];
823
+ return !!o.querySelector(oe.CHECKBOX_SELECTOR);
824
+ },
825
+ hasRadioAtIndex: function(i) {
826
+ var o = e.listElements[i];
827
+ return !!o.querySelector(oe.RADIO_SELECTOR);
828
+ },
829
+ isCheckboxCheckedAtIndex: function(i) {
830
+ var o = e.listElements[i], l = o.querySelector(oe.CHECKBOX_SELECTOR);
831
+ return l.checked;
832
+ },
833
+ isFocusInsideList: function() {
834
+ return e.root !== document.activeElement && e.root.contains(document.activeElement);
835
+ },
836
+ isRootFocused: function() {
837
+ return document.activeElement === e.root;
838
+ },
839
+ listItemAtIndexHasClass: function(i, o) {
840
+ return e.listElements[i].classList.contains(e.classNameMap[o]);
841
+ },
842
+ notifyAction: function(i) {
843
+ e.emit(
844
+ oe.ACTION_EVENT,
845
+ { index: i },
846
+ /** shouldBubble */
847
+ !0
848
+ );
849
+ },
850
+ removeClassForElementIndex: function(i, o) {
851
+ var l = e.listElements[i];
852
+ l && l.classList.remove(e.classNameMap[o]);
853
+ },
854
+ setAttributeForElementIndex: function(i, o, l) {
855
+ var u = e.listElements[i];
856
+ u && u.setAttribute(o, l);
857
+ },
858
+ setCheckedCheckboxOrRadioAtIndex: function(i, o) {
859
+ var l = e.listElements[i], u = l.querySelector(oe.CHECKBOX_RADIO_SELECTOR);
860
+ u.checked = o;
861
+ var f = document.createEvent("Event");
862
+ f.initEvent("change", !0, !0), u.dispatchEvent(f);
863
+ },
864
+ setTabIndexForListItemChildren: function(i, o) {
865
+ var l = e.listElements[i], u = oe.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX;
866
+ Array.prototype.forEach.call(l.querySelectorAll(u), function(f) {
867
+ f.setAttribute("tabindex", o);
868
+ });
869
+ }
870
+ };
871
+ return new jn(t);
872
+ }, r.prototype.ensureFocusable = function() {
873
+ if (this.isEvolutionEnabled && this.isInteractive && !this.root.querySelector("." + this.classNameMap[C.LIST_ITEM_CLASS] + '[tabindex="0"]')) {
874
+ var e = this.initialFocusIndex();
875
+ e !== -1 && (this.listElements[e].tabIndex = 0);
876
+ }
877
+ }, r.prototype.initialFocusIndex = function() {
878
+ if (this.selectedIndex instanceof Array && this.selectedIndex.length > 0)
879
+ return this.selectedIndex[0];
880
+ if (typeof this.selectedIndex == "number" && this.selectedIndex !== be.UNSET_INDEX)
881
+ return this.selectedIndex;
882
+ var e = this.root.querySelector("." + this.classNameMap[C.LIST_ITEM_CLASS] + ":not(." + this.classNameMap[C.LIST_ITEM_DISABLED_CLASS] + ")");
883
+ return e === null ? -1 : this.getListItemIndex(e);
884
+ }, r.prototype.getListItemIndex = function(e) {
885
+ var t = Hn(e, "." + this.classNameMap[C.LIST_ITEM_CLASS] + ", ." + this.classNameMap[C.ROOT]);
886
+ return t && Vt(t, "." + this.classNameMap[C.LIST_ITEM_CLASS]) ? this.listElements.indexOf(t) : -1;
887
+ }, r.prototype.handleFocusInEvent = function(e) {
888
+ var t = this.getListItemIndex(e.target);
889
+ this.foundation.handleFocusIn(e, t);
890
+ }, r.prototype.handleFocusOutEvent = function(e) {
891
+ var t = this.getListItemIndex(e.target);
892
+ this.foundation.handleFocusOut(e, t);
893
+ }, r.prototype.handleKeydownEvent = function(e) {
894
+ var t = this.getListItemIndex(e.target), i = e.target;
895
+ this.foundation.handleKeydown(e, i.classList.contains(this.classNameMap[C.LIST_ITEM_CLASS]), t);
896
+ }, r.prototype.handleClickEvent = function(e) {
897
+ var t = this.getListItemIndex(e.target), i = e.target, o = !Vt(i, oe.CHECKBOX_RADIO_SELECTOR);
898
+ this.foundation.handleClick(t, o);
899
+ }, r;
900
+ }(Xn)
901
+ );
902
+ /**
903
+ * @license
904
+ * Copyright 2018 Google Inc.
905
+ *
906
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
907
+ * of this software and associated documentation files (the "Software"), to deal
908
+ * in the Software without restriction, including without limitation the rights
909
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
910
+ * copies of the Software, and to permit persons to whom the Software is
911
+ * furnished to do so, subject to the following conditions:
912
+ *
913
+ * The above copyright notice and this permission notice shall be included in
914
+ * all copies or substantial portions of the Software.
915
+ *
916
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
917
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
918
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
919
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
920
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
921
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
922
+ * THE SOFTWARE.
923
+ */
924
+ var Mt = (
925
+ /** @class */
926
+ function(n) {
927
+ jt(r, n);
928
+ function r(e) {
929
+ var t = n.call(this, Ut(Ut({}, r.defaultAdapter), e)) || this;
930
+ return t.isSurfaceOpen = !1, t.isQuickOpen = !1, t.isHoistedElement = !1, t.isFixedPosition = !1, t.isHorizontallyCenteredOnViewport = !1, t.maxHeight = 0, t.openAnimationEndTimerId = 0, t.closeAnimationEndTimerId = 0, t.animationRequestId = 0, t.anchorCorner = kt.TOP_START, t.originCorner = kt.TOP_START, t.anchorMargin = { top: 0, right: 0, bottom: 0, left: 0 }, t.position = { x: 0, y: 0 }, t;
931
+ }
932
+ return Object.defineProperty(r, "cssClasses", {
933
+ get: function() {
934
+ return Wt;
935
+ },
936
+ enumerable: !1,
937
+ configurable: !0
938
+ }), Object.defineProperty(r, "strings", {
939
+ get: function() {
940
+ return Yt;
941
+ },
942
+ enumerable: !1,
943
+ configurable: !0
944
+ }), Object.defineProperty(r, "numbers", {
945
+ get: function() {
946
+ return ln;
947
+ },
948
+ enumerable: !1,
949
+ configurable: !0
950
+ }), Object.defineProperty(r, "Corner", {
951
+ get: function() {
952
+ return kt;
953
+ },
954
+ enumerable: !1,
955
+ configurable: !0
956
+ }), Object.defineProperty(r, "defaultAdapter", {
957
+ /**
958
+ * @see {@link MDCMenuSurfaceAdapter} for typing information on parameters and return types.
959
+ */
960
+ get: function() {
961
+ return {
962
+ addClass: function() {
963
+ },
964
+ removeClass: function() {
965
+ },
966
+ hasClass: function() {
967
+ return !1;
968
+ },
969
+ hasAnchor: function() {
970
+ return !1;
971
+ },
972
+ isElementInContainer: function() {
973
+ return !1;
974
+ },
975
+ isFocused: function() {
976
+ return !1;
977
+ },
978
+ isRtl: function() {
979
+ return !1;
980
+ },
981
+ getInnerDimensions: function() {
982
+ return { height: 0, width: 0 };
983
+ },
984
+ getAnchorDimensions: function() {
985
+ return null;
986
+ },
987
+ getWindowDimensions: function() {
988
+ return { height: 0, width: 0 };
989
+ },
990
+ getBodyDimensions: function() {
991
+ return { height: 0, width: 0 };
992
+ },
993
+ getWindowScroll: function() {
994
+ return { x: 0, y: 0 };
995
+ },
996
+ setPosition: function() {
997
+ },
998
+ setMaxHeight: function() {
999
+ },
1000
+ setTransformOrigin: function() {
1001
+ },
1002
+ saveFocus: function() {
1003
+ },
1004
+ restoreFocus: function() {
1005
+ },
1006
+ notifyClose: function() {
1007
+ },
1008
+ notifyOpen: function() {
1009
+ },
1010
+ notifyClosing: function() {
1011
+ }
1012
+ };
1013
+ },
1014
+ enumerable: !1,
1015
+ configurable: !0
1016
+ }), r.prototype.init = function() {
1017
+ var e = r.cssClasses, t = e.ROOT, i = e.OPEN;
1018
+ if (!this.adapter.hasClass(t))
1019
+ throw new Error(t + " class required in root element.");
1020
+ this.adapter.hasClass(i) && (this.isSurfaceOpen = !0);
1021
+ }, r.prototype.destroy = function() {
1022
+ clearTimeout(this.openAnimationEndTimerId), clearTimeout(this.closeAnimationEndTimerId), cancelAnimationFrame(this.animationRequestId);
1023
+ }, r.prototype.setAnchorCorner = function(e) {
1024
+ this.anchorCorner = e;
1025
+ }, r.prototype.flipCornerHorizontally = function() {
1026
+ this.originCorner = this.originCorner ^ ce.RIGHT;
1027
+ }, r.prototype.setAnchorMargin = function(e) {
1028
+ this.anchorMargin.top = e.top || 0, this.anchorMargin.right = e.right || 0, this.anchorMargin.bottom = e.bottom || 0, this.anchorMargin.left = e.left || 0;
1029
+ }, r.prototype.setIsHoisted = function(e) {
1030
+ this.isHoistedElement = e;
1031
+ }, r.prototype.setFixedPosition = function(e) {
1032
+ this.isFixedPosition = e;
1033
+ }, r.prototype.setAbsolutePosition = function(e, t) {
1034
+ this.position.x = this.isFinite(e) ? e : 0, this.position.y = this.isFinite(t) ? t : 0;
1035
+ }, r.prototype.setIsHorizontallyCenteredOnViewport = function(e) {
1036
+ this.isHorizontallyCenteredOnViewport = e;
1037
+ }, r.prototype.setQuickOpen = function(e) {
1038
+ this.isQuickOpen = e;
1039
+ }, r.prototype.setMaxHeight = function(e) {
1040
+ this.maxHeight = e;
1041
+ }, r.prototype.isOpen = function() {
1042
+ return this.isSurfaceOpen;
1043
+ }, r.prototype.open = function() {
1044
+ var e = this;
1045
+ this.isSurfaceOpen || (this.adapter.saveFocus(), this.isQuickOpen ? (this.isSurfaceOpen = !0, this.adapter.addClass(r.cssClasses.OPEN), this.dimensions = this.adapter.getInnerDimensions(), this.autoposition(), this.adapter.notifyOpen()) : (this.adapter.addClass(r.cssClasses.ANIMATING_OPEN), this.animationRequestId = requestAnimationFrame(function() {
1046
+ e.adapter.addClass(r.cssClasses.OPEN), e.dimensions = e.adapter.getInnerDimensions(), e.autoposition(), e.openAnimationEndTimerId = setTimeout(function() {
1047
+ e.openAnimationEndTimerId = 0, e.adapter.removeClass(r.cssClasses.ANIMATING_OPEN), e.adapter.notifyOpen();
1048
+ }, ln.TRANSITION_OPEN_DURATION);
1049
+ }), this.isSurfaceOpen = !0));
1050
+ }, r.prototype.close = function(e) {
1051
+ var t = this;
1052
+ if (e === void 0 && (e = !1), !!this.isSurfaceOpen) {
1053
+ if (this.adapter.notifyClosing(), this.isQuickOpen) {
1054
+ this.isSurfaceOpen = !1, e || this.maybeRestoreFocus(), this.adapter.removeClass(r.cssClasses.OPEN), this.adapter.removeClass(r.cssClasses.IS_OPEN_BELOW), this.adapter.notifyClose();
1055
+ return;
1056
+ }
1057
+ this.adapter.addClass(r.cssClasses.ANIMATING_CLOSED), requestAnimationFrame(function() {
1058
+ t.adapter.removeClass(r.cssClasses.OPEN), t.adapter.removeClass(r.cssClasses.IS_OPEN_BELOW), t.closeAnimationEndTimerId = setTimeout(function() {
1059
+ t.closeAnimationEndTimerId = 0, t.adapter.removeClass(r.cssClasses.ANIMATING_CLOSED), t.adapter.notifyClose();
1060
+ }, ln.TRANSITION_CLOSE_DURATION);
1061
+ }), this.isSurfaceOpen = !1, e || this.maybeRestoreFocus();
1062
+ }
1063
+ }, r.prototype.handleBodyClick = function(e) {
1064
+ var t = e.target;
1065
+ this.adapter.isElementInContainer(t) || this.close();
1066
+ }, r.prototype.handleKeydown = function(e) {
1067
+ var t = e.keyCode, i = e.key, o = i === "Escape" || t === 27;
1068
+ o && this.close();
1069
+ }, r.prototype.autoposition = function() {
1070
+ var e;
1071
+ this.measurements = this.getAutoLayoutmeasurements();
1072
+ var t = this.getoriginCorner(), i = this.getMenuSurfaceMaxHeight(t), o = this.hasBit(t, ce.BOTTOM) ? "bottom" : "top", l = this.hasBit(t, ce.RIGHT) ? "right" : "left", u = this.getHorizontalOriginOffset(t), f = this.getVerticalOriginOffset(t), v = this.measurements, O = v.anchorSize, E = v.surfaceSize, x = (e = {}, e[l] = u, e[o] = f, e);
1073
+ O.width / E.width > ln.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO && (l = "center"), (this.isHoistedElement || this.isFixedPosition) && this.adjustPositionForHoistedElement(x), this.adapter.setTransformOrigin(l + " " + o), this.adapter.setPosition(x), this.adapter.setMaxHeight(i ? i + "px" : ""), this.hasBit(t, ce.BOTTOM) || this.adapter.addClass(r.cssClasses.IS_OPEN_BELOW);
1074
+ }, r.prototype.getAutoLayoutmeasurements = function() {
1075
+ var e = this.adapter.getAnchorDimensions(), t = this.adapter.getBodyDimensions(), i = this.adapter.getWindowDimensions(), o = this.adapter.getWindowScroll();
1076
+ return e || (e = {
1077
+ top: this.position.y,
1078
+ right: this.position.x,
1079
+ bottom: this.position.y,
1080
+ left: this.position.x,
1081
+ width: 0,
1082
+ height: 0
1083
+ }), {
1084
+ anchorSize: e,
1085
+ bodySize: t,
1086
+ surfaceSize: this.dimensions,
1087
+ viewportDistance: {
1088
+ // tslint:disable:object-literal-sort-keys Positional properties are more readable when they're grouped together
1089
+ top: e.top,
1090
+ right: i.width - e.right,
1091
+ bottom: i.height - e.bottom,
1092
+ left: e.left
1093
+ // tslint:enable:object-literal-sort-keys
1094
+ },
1095
+ viewportSize: i,
1096
+ windowScroll: o
1097
+ };
1098
+ }, r.prototype.getoriginCorner = function() {
1099
+ var e = this.originCorner, t = this.measurements, i = t.viewportDistance, o = t.anchorSize, l = t.surfaceSize, u = r.numbers.MARGIN_TO_EDGE, f = this.hasBit(this.anchorCorner, ce.BOTTOM), v, O;
1100
+ f ? (v = i.top - u + this.anchorMargin.bottom, O = i.bottom - u - this.anchorMargin.bottom) : (v = i.top - u + this.anchorMargin.top, O = i.bottom - u + o.height - this.anchorMargin.top);
1101
+ var E = O - l.height > 0;
1102
+ !E && v > O && (e = this.setBit(e, ce.BOTTOM));
1103
+ var x = this.adapter.isRtl(), P = this.hasBit(this.anchorCorner, ce.FLIP_RTL), N = this.hasBit(this.anchorCorner, ce.RIGHT) || this.hasBit(e, ce.RIGHT), S = !1;
1104
+ x && P ? S = !N : S = N;
1105
+ var R, F;
1106
+ S ? (R = i.left + o.width + this.anchorMargin.right, F = i.right - this.anchorMargin.right) : (R = i.left + this.anchorMargin.left, F = i.right + o.width - this.anchorMargin.left);
1107
+ var H = R - l.width > 0, U = F - l.width > 0, q = this.hasBit(e, ce.FLIP_RTL) && this.hasBit(e, ce.RIGHT);
1108
+ return U && q && x || !H && q ? e = this.unsetBit(e, ce.RIGHT) : (H && S && x || H && !S && N || !U && R >= F) && (e = this.setBit(e, ce.RIGHT)), e;
1109
+ }, r.prototype.getMenuSurfaceMaxHeight = function(e) {
1110
+ if (this.maxHeight > 0)
1111
+ return this.maxHeight;
1112
+ var t = this.measurements.viewportDistance, i = 0, o = this.hasBit(e, ce.BOTTOM), l = this.hasBit(this.anchorCorner, ce.BOTTOM), u = r.numbers.MARGIN_TO_EDGE;
1113
+ return o ? (i = t.top + this.anchorMargin.top - u, l || (i += this.measurements.anchorSize.height)) : (i = t.bottom - this.anchorMargin.bottom + this.measurements.anchorSize.height - u, l && (i -= this.measurements.anchorSize.height)), i;
1114
+ }, r.prototype.getHorizontalOriginOffset = function(e) {
1115
+ var t = this.measurements.anchorSize, i = this.hasBit(e, ce.RIGHT), o = this.hasBit(this.anchorCorner, ce.RIGHT);
1116
+ if (i) {
1117
+ var l = o ? t.width - this.anchorMargin.left : this.anchorMargin.right;
1118
+ return this.isHoistedElement || this.isFixedPosition ? l - (this.measurements.viewportSize.width - this.measurements.bodySize.width) : l;
1119
+ }
1120
+ return o ? t.width - this.anchorMargin.right : this.anchorMargin.left;
1121
+ }, r.prototype.getVerticalOriginOffset = function(e) {
1122
+ var t = this.measurements.anchorSize, i = this.hasBit(e, ce.BOTTOM), o = this.hasBit(this.anchorCorner, ce.BOTTOM), l = 0;
1123
+ return i ? l = o ? t.height - this.anchorMargin.top : -this.anchorMargin.bottom : l = o ? t.height + this.anchorMargin.bottom : this.anchorMargin.top, l;
1124
+ }, r.prototype.adjustPositionForHoistedElement = function(e) {
1125
+ var t, i, o = this.measurements, l = o.windowScroll, u = o.viewportDistance, f = o.surfaceSize, v = o.viewportSize, O = Object.keys(e);
1126
+ try {
1127
+ for (var E = ma(O), x = E.next(); !x.done; x = E.next()) {
1128
+ var P = x.value, N = e[P] || 0;
1129
+ if (this.isHorizontallyCenteredOnViewport && (P === "left" || P === "right")) {
1130
+ e[P] = (v.width - f.width) / 2;
1131
+ continue;
1132
+ }
1133
+ N += u[P], this.isFixedPosition || (P === "top" ? N += l.y : P === "bottom" ? N -= l.y : P === "left" ? N += l.x : N -= l.x), e[P] = N;
1134
+ }
1135
+ } catch (S) {
1136
+ t = { error: S };
1137
+ } finally {
1138
+ try {
1139
+ x && !x.done && (i = E.return) && i.call(E);
1140
+ } finally {
1141
+ if (t) throw t.error;
1142
+ }
1143
+ }
1144
+ }, r.prototype.maybeRestoreFocus = function() {
1145
+ var e = this.adapter.isFocused(), t = document.activeElement && this.adapter.isElementInContainer(document.activeElement);
1146
+ (e || t) && this.adapter.restoreFocus();
1147
+ }, r.prototype.hasBit = function(e, t) {
1148
+ return !!(e & t);
1149
+ }, r.prototype.setBit = function(e, t) {
1150
+ return e | t;
1151
+ }, r.prototype.unsetBit = function(e, t) {
1152
+ return e ^ t;
1153
+ }, r.prototype.isFinite = function(e) {
1154
+ return typeof e == "number" && isFinite(e);
1155
+ }, r;
1156
+ }(Vn)
1157
+ );
1158
+ /**
1159
+ * @license
1160
+ * Copyright 2018 Google Inc.
1161
+ *
1162
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
1163
+ * of this software and associated documentation files (the "Software"), to deal
1164
+ * in the Software without restriction, including without limitation the rights
1165
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1166
+ * copies of the Software, and to permit persons to whom the Software is
1167
+ * furnished to do so, subject to the following conditions:
1168
+ *
1169
+ * The above copyright notice and this permission notice shall be included in
1170
+ * all copies or substantial portions of the Software.
1171
+ *
1172
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1173
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1174
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1175
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1176
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1177
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1178
+ * THE SOFTWARE.
1179
+ */
1180
+ var ii = (
1181
+ /** @class */
1182
+ function(n) {
1183
+ jt(r, n);
1184
+ function r() {
1185
+ return n !== null && n.apply(this, arguments) || this;
1186
+ }
1187
+ return r.attachTo = function(e) {
1188
+ return new r(e);
1189
+ }, r.prototype.initialSyncWithDOM = function() {
1190
+ var e = this, t = this.root.parentElement;
1191
+ this.anchorElement = t && t.classList.contains(Wt.ANCHOR) ? t : null, this.root.classList.contains(Wt.FIXED) && this.setFixedPosition(!0), this.handleKeydown = function(i) {
1192
+ e.foundation.handleKeydown(i);
1193
+ }, this.handleBodyClick = function(i) {
1194
+ e.foundation.handleBodyClick(i);
1195
+ }, this.registerBodyClickListener = function() {
1196
+ document.body.addEventListener("click", e.handleBodyClick, { capture: !0 });
1197
+ }, this.deregisterBodyClickListener = function() {
1198
+ document.body.removeEventListener("click", e.handleBodyClick, { capture: !0 });
1199
+ }, this.listen("keydown", this.handleKeydown), this.listen(Yt.OPENED_EVENT, this.registerBodyClickListener), this.listen(Yt.CLOSED_EVENT, this.deregisterBodyClickListener);
1200
+ }, r.prototype.destroy = function() {
1201
+ this.unlisten("keydown", this.handleKeydown), this.unlisten(Yt.OPENED_EVENT, this.registerBodyClickListener), this.unlisten(Yt.CLOSED_EVENT, this.deregisterBodyClickListener), n.prototype.destroy.call(this);
1202
+ }, r.prototype.isOpen = function() {
1203
+ return this.foundation.isOpen();
1204
+ }, r.prototype.open = function() {
1205
+ this.foundation.open();
1206
+ }, r.prototype.close = function(e) {
1207
+ e === void 0 && (e = !1), this.foundation.close(e);
1208
+ }, Object.defineProperty(r.prototype, "quickOpen", {
1209
+ set: function(e) {
1210
+ this.foundation.setQuickOpen(e);
1211
+ },
1212
+ enumerable: !1,
1213
+ configurable: !0
1214
+ }), r.prototype.setIsHoisted = function(e) {
1215
+ this.foundation.setIsHoisted(e);
1216
+ }, r.prototype.setMenuSurfaceAnchorElement = function(e) {
1217
+ this.anchorElement = e;
1218
+ }, r.prototype.setFixedPosition = function(e) {
1219
+ e ? this.root.classList.add(Wt.FIXED) : this.root.classList.remove(Wt.FIXED), this.foundation.setFixedPosition(e);
1220
+ }, r.prototype.setAbsolutePosition = function(e, t) {
1221
+ this.foundation.setAbsolutePosition(e, t), this.setIsHoisted(!0);
1222
+ }, r.prototype.setAnchorCorner = function(e) {
1223
+ this.foundation.setAnchorCorner(e);
1224
+ }, r.prototype.setAnchorMargin = function(e) {
1225
+ this.foundation.setAnchorMargin(e);
1226
+ }, r.prototype.getDefaultFoundation = function() {
1227
+ var e = this, t = {
1228
+ addClass: function(i) {
1229
+ return e.root.classList.add(i);
1230
+ },
1231
+ removeClass: function(i) {
1232
+ return e.root.classList.remove(i);
1233
+ },
1234
+ hasClass: function(i) {
1235
+ return e.root.classList.contains(i);
1236
+ },
1237
+ hasAnchor: function() {
1238
+ return !!e.anchorElement;
1239
+ },
1240
+ notifyClose: function() {
1241
+ return e.emit(Mt.strings.CLOSED_EVENT, {});
1242
+ },
1243
+ notifyClosing: function() {
1244
+ e.emit(Mt.strings.CLOSING_EVENT, {});
1245
+ },
1246
+ notifyOpen: function() {
1247
+ return e.emit(Mt.strings.OPENED_EVENT, {});
1248
+ },
1249
+ isElementInContainer: function(i) {
1250
+ return e.root.contains(i);
1251
+ },
1252
+ isRtl: function() {
1253
+ return getComputedStyle(e.root).getPropertyValue("direction") === "rtl";
1254
+ },
1255
+ setTransformOrigin: function(i) {
1256
+ var o = va(window, "transform") + "-origin";
1257
+ e.root.style.setProperty(o, i);
1258
+ },
1259
+ isFocused: function() {
1260
+ return document.activeElement === e.root;
1261
+ },
1262
+ saveFocus: function() {
1263
+ e.previousFocus = document.activeElement;
1264
+ },
1265
+ restoreFocus: function() {
1266
+ e.root.contains(document.activeElement) && e.previousFocus && e.previousFocus.focus && e.previousFocus.focus();
1267
+ },
1268
+ getInnerDimensions: function() {
1269
+ return {
1270
+ width: e.root.offsetWidth,
1271
+ height: e.root.offsetHeight
1272
+ };
1273
+ },
1274
+ getAnchorDimensions: function() {
1275
+ return e.anchorElement ? e.anchorElement.getBoundingClientRect() : null;
1276
+ },
1277
+ getWindowDimensions: function() {
1278
+ return { width: window.innerWidth, height: window.innerHeight };
1279
+ },
1280
+ getBodyDimensions: function() {
1281
+ return { width: document.body.clientWidth, height: document.body.clientHeight };
1282
+ },
1283
+ getWindowScroll: function() {
1284
+ return { x: window.pageXOffset, y: window.pageYOffset };
1285
+ },
1286
+ setPosition: function(i) {
1287
+ var o = e.root;
1288
+ o.style.left = "left" in i ? i.left + "px" : "", o.style.right = "right" in i ? i.right + "px" : "", o.style.top = "top" in i ? i.top + "px" : "", o.style.bottom = "bottom" in i ? i.bottom + "px" : "";
1289
+ },
1290
+ setMaxHeight: function(i) {
1291
+ e.root.style.maxHeight = i;
1292
+ }
1293
+ };
1294
+ return new Mt(t);
1295
+ }, r;
1296
+ }(Xn)
1297
+ );
1298
+ /**
1299
+ * @license
1300
+ * Copyright 2018 Google Inc.
1301
+ *
1302
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
1303
+ * of this software and associated documentation files (the "Software"), to deal
1304
+ * in the Software without restriction, including without limitation the rights
1305
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1306
+ * copies of the Software, and to permit persons to whom the Software is
1307
+ * furnished to do so, subject to the following conditions:
1308
+ *
1309
+ * The above copyright notice and this permission notice shall be included in
1310
+ * all copies or substantial portions of the Software.
1311
+ *
1312
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1313
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1314
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1315
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1316
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1317
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1318
+ * THE SOFTWARE.
1319
+ */
1320
+ var Ht = {
1321
+ MENU_SELECTED_LIST_ITEM: "mdc-menu-item--selected",
1322
+ MENU_SELECTION_GROUP: "mdc-menu__selection-group",
1323
+ ROOT: "mdc-menu"
1324
+ }, _t = {
1325
+ ARIA_CHECKED_ATTR: "aria-checked",
1326
+ ARIA_DISABLED_ATTR: "aria-disabled",
1327
+ CHECKBOX_SELECTOR: 'input[type="checkbox"]',
1328
+ LIST_SELECTOR: ".mdc-list,.mdc-deprecated-list",
1329
+ SELECTED_EVENT: "MDCMenu:selected"
1330
+ }, $a = {
1331
+ FOCUS_ROOT_INDEX: -1
1332
+ }, Ft;
1333
+ (function(n) {
1334
+ n[n.NONE = 0] = "NONE", n[n.LIST_ROOT = 1] = "LIST_ROOT", n[n.FIRST_ITEM = 2] = "FIRST_ITEM", n[n.LAST_ITEM = 3] = "LAST_ITEM";
1335
+ })(Ft || (Ft = {}));
1336
+ /**
1337
+ * @license
1338
+ * Copyright 2018 Google Inc.
1339
+ *
1340
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
1341
+ * of this software and associated documentation files (the "Software"), to deal
1342
+ * in the Software without restriction, including without limitation the rights
1343
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1344
+ * copies of the Software, and to permit persons to whom the Software is
1345
+ * furnished to do so, subject to the following conditions:
1346
+ *
1347
+ * The above copyright notice and this permission notice shall be included in
1348
+ * all copies or substantial portions of the Software.
1349
+ *
1350
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1351
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1352
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1353
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1354
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1355
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1356
+ * THE SOFTWARE.
1357
+ */
1358
+ var Fa = (
1359
+ /** @class */
1360
+ function(n) {
1361
+ jt(r, n);
1362
+ function r(e) {
1363
+ var t = n.call(this, Ut(Ut({}, r.defaultAdapter), e)) || this;
1364
+ return t.closeAnimationEndTimerId_ = 0, t.defaultFocusState_ = Ft.LIST_ROOT, t;
1365
+ }
1366
+ return Object.defineProperty(r, "cssClasses", {
1367
+ get: function() {
1368
+ return Ht;
1369
+ },
1370
+ enumerable: !1,
1371
+ configurable: !0
1372
+ }), Object.defineProperty(r, "strings", {
1373
+ get: function() {
1374
+ return _t;
1375
+ },
1376
+ enumerable: !1,
1377
+ configurable: !0
1378
+ }), Object.defineProperty(r, "numbers", {
1379
+ get: function() {
1380
+ return $a;
1381
+ },
1382
+ enumerable: !1,
1383
+ configurable: !0
1384
+ }), Object.defineProperty(r, "defaultAdapter", {
1385
+ /**
1386
+ * @see {@link MDCMenuAdapter} for typing information on parameters and return types.
1387
+ */
1388
+ get: function() {
1389
+ return {
1390
+ addClassToElementAtIndex: function() {
1391
+ },
1392
+ removeClassFromElementAtIndex: function() {
1393
+ },
1394
+ addAttributeToElementAtIndex: function() {
1395
+ },
1396
+ removeAttributeFromElementAtIndex: function() {
1397
+ },
1398
+ elementContainsClass: function() {
1399
+ return !1;
1400
+ },
1401
+ closeSurface: function() {
1402
+ },
1403
+ getElementIndex: function() {
1404
+ return -1;
1405
+ },
1406
+ notifySelected: function() {
1407
+ },
1408
+ getMenuItemCount: function() {
1409
+ return 0;
1410
+ },
1411
+ focusItemAtIndex: function() {
1412
+ },
1413
+ focusListRoot: function() {
1414
+ },
1415
+ getSelectedSiblingOfItemAtIndex: function() {
1416
+ return -1;
1417
+ },
1418
+ isSelectableItemAtIndex: function() {
1419
+ return !1;
1420
+ }
1421
+ };
1422
+ },
1423
+ enumerable: !1,
1424
+ configurable: !0
1425
+ }), r.prototype.destroy = function() {
1426
+ this.closeAnimationEndTimerId_ && clearTimeout(this.closeAnimationEndTimerId_), this.adapter.closeSurface();
1427
+ }, r.prototype.handleKeydown = function(e) {
1428
+ var t = e.key, i = e.keyCode, o = t === "Tab" || i === 9;
1429
+ o && this.adapter.closeSurface(
1430
+ /** skipRestoreFocus */
1431
+ !0
1432
+ );
1433
+ }, r.prototype.handleItemAction = function(e) {
1434
+ var t = this, i = this.adapter.getElementIndex(e);
1435
+ i < 0 || (this.adapter.notifySelected({ index: i }), this.adapter.closeSurface(), this.closeAnimationEndTimerId_ = setTimeout(function() {
1436
+ var o = t.adapter.getElementIndex(e);
1437
+ o >= 0 && t.adapter.isSelectableItemAtIndex(o) && t.setSelectedIndex(o);
1438
+ }, Mt.numbers.TRANSITION_CLOSE_DURATION));
1439
+ }, r.prototype.handleMenuSurfaceOpened = function() {
1440
+ switch (this.defaultFocusState_) {
1441
+ case Ft.FIRST_ITEM:
1442
+ this.adapter.focusItemAtIndex(0);
1443
+ break;
1444
+ case Ft.LAST_ITEM:
1445
+ this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount() - 1);
1446
+ break;
1447
+ case Ft.NONE:
1448
+ break;
1449
+ default:
1450
+ this.adapter.focusListRoot();
1451
+ break;
1452
+ }
1453
+ }, r.prototype.setDefaultFocusState = function(e) {
1454
+ this.defaultFocusState_ = e;
1455
+ }, r.prototype.setSelectedIndex = function(e) {
1456
+ if (this.validatedIndex_(e), !this.adapter.isSelectableItemAtIndex(e))
1457
+ throw new Error("MDCMenuFoundation: No selection group at specified index.");
1458
+ var t = this.adapter.getSelectedSiblingOfItemAtIndex(e);
1459
+ t >= 0 && (this.adapter.removeAttributeFromElementAtIndex(t, _t.ARIA_CHECKED_ATTR), this.adapter.removeClassFromElementAtIndex(t, Ht.MENU_SELECTED_LIST_ITEM)), this.adapter.addClassToElementAtIndex(e, Ht.MENU_SELECTED_LIST_ITEM), this.adapter.addAttributeToElementAtIndex(e, _t.ARIA_CHECKED_ATTR, "true");
1460
+ }, r.prototype.setEnabled = function(e, t) {
1461
+ this.validatedIndex_(e), t ? (this.adapter.removeClassFromElementAtIndex(e, C.LIST_ITEM_DISABLED_CLASS), this.adapter.addAttributeToElementAtIndex(e, _t.ARIA_DISABLED_ATTR, "false")) : (this.adapter.addClassToElementAtIndex(e, C.LIST_ITEM_DISABLED_CLASS), this.adapter.addAttributeToElementAtIndex(e, _t.ARIA_DISABLED_ATTR, "true"));
1462
+ }, r.prototype.validatedIndex_ = function(e) {
1463
+ var t = this.adapter.getMenuItemCount(), i = e >= 0 && e < t;
1464
+ if (!i)
1465
+ throw new Error("MDCMenuFoundation: No list item at specified index.");
1466
+ }, r;
1467
+ }(Vn)
1468
+ );
1469
+ /**
1470
+ * @license
1471
+ * Copyright 2018 Google Inc.
1472
+ *
1473
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
1474
+ * of this software and associated documentation files (the "Software"), to deal
1475
+ * in the Software without restriction, including without limitation the rights
1476
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1477
+ * copies of the Software, and to permit persons to whom the Software is
1478
+ * furnished to do so, subject to the following conditions:
1479
+ *
1480
+ * The above copyright notice and this permission notice shall be included in
1481
+ * all copies or substantial portions of the Software.
1482
+ *
1483
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1484
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1485
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1486
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1487
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1488
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1489
+ * THE SOFTWARE.
1490
+ */
1491
+ var Ka = (
1492
+ /** @class */
1493
+ function(n) {
1494
+ jt(r, n);
1495
+ function r() {
1496
+ return n !== null && n.apply(this, arguments) || this;
1497
+ }
1498
+ return r.attachTo = function(e) {
1499
+ return new r(e);
1500
+ }, r.prototype.initialize = function(e, t) {
1501
+ e === void 0 && (e = function(i) {
1502
+ return new ii(i);
1503
+ }), t === void 0 && (t = function(i) {
1504
+ return new ri(i);
1505
+ }), this.menuSurfaceFactory_ = e, this.listFactory_ = t;
1506
+ }, r.prototype.initialSyncWithDOM = function() {
1507
+ var e = this;
1508
+ this.menuSurface_ = this.menuSurfaceFactory_(this.root);
1509
+ var t = this.root.querySelector(_t.LIST_SELECTOR);
1510
+ t ? (this.list_ = this.listFactory_(t), this.list_.wrapFocus = !0) : this.list_ = null, this.handleKeydown_ = function(i) {
1511
+ return e.foundation.handleKeydown(i);
1512
+ }, this.handleItemAction_ = function(i) {
1513
+ return e.foundation.handleItemAction(e.items[i.detail.index]);
1514
+ }, this.handleMenuSurfaceOpened_ = function() {
1515
+ return e.foundation.handleMenuSurfaceOpened();
1516
+ }, this.menuSurface_.listen(Mt.strings.OPENED_EVENT, this.handleMenuSurfaceOpened_), this.listen("keydown", this.handleKeydown_), this.listen(jn.strings.ACTION_EVENT, this.handleItemAction_);
1517
+ }, r.prototype.destroy = function() {
1518
+ this.list_ && this.list_.destroy(), this.menuSurface_.destroy(), this.menuSurface_.unlisten(Mt.strings.OPENED_EVENT, this.handleMenuSurfaceOpened_), this.unlisten("keydown", this.handleKeydown_), this.unlisten(jn.strings.ACTION_EVENT, this.handleItemAction_), n.prototype.destroy.call(this);
1519
+ }, Object.defineProperty(r.prototype, "open", {
1520
+ get: function() {
1521
+ return this.menuSurface_.isOpen();
1522
+ },
1523
+ set: function(e) {
1524
+ e ? this.menuSurface_.open() : this.menuSurface_.close();
1525
+ },
1526
+ enumerable: !1,
1527
+ configurable: !0
1528
+ }), Object.defineProperty(r.prototype, "wrapFocus", {
1529
+ get: function() {
1530
+ return this.list_ ? this.list_.wrapFocus : !1;
1531
+ },
1532
+ set: function(e) {
1533
+ this.list_ && (this.list_.wrapFocus = e);
1534
+ },
1535
+ enumerable: !1,
1536
+ configurable: !0
1537
+ }), Object.defineProperty(r.prototype, "hasTypeahead", {
1538
+ /**
1539
+ * Sets whether the menu has typeahead functionality.
1540
+ * @param value Whether typeahead is enabled.
1541
+ */
1542
+ set: function(e) {
1543
+ this.list_ && (this.list_.hasTypeahead = e);
1544
+ },
1545
+ enumerable: !1,
1546
+ configurable: !0
1547
+ }), Object.defineProperty(r.prototype, "typeaheadInProgress", {
1548
+ /**
1549
+ * @return Whether typeahead logic is currently matching some user prefix.
1550
+ */
1551
+ get: function() {
1552
+ return this.list_ ? this.list_.typeaheadInProgress : !1;
1553
+ },
1554
+ enumerable: !1,
1555
+ configurable: !0
1556
+ }), r.prototype.typeaheadMatchItem = function(e, t) {
1557
+ return this.list_ ? this.list_.typeaheadMatchItem(e, t) : -1;
1558
+ }, r.prototype.layout = function() {
1559
+ this.list_ && this.list_.layout();
1560
+ }, Object.defineProperty(r.prototype, "items", {
1561
+ /**
1562
+ * Return the items within the menu. Note that this only contains the set of elements within
1563
+ * the items container that are proper list items, and not supplemental / presentational DOM
1564
+ * elements.
1565
+ */
1566
+ get: function() {
1567
+ return this.list_ ? this.list_.listElements : [];
1568
+ },
1569
+ enumerable: !1,
1570
+ configurable: !0
1571
+ }), Object.defineProperty(r.prototype, "singleSelection", {
1572
+ /**
1573
+ * Turns on/off the underlying list's single selection mode. Used mainly
1574
+ * by select menu.
1575
+ *
1576
+ * @param singleSelection Whether to enable single selection mode.
1577
+ */
1578
+ set: function(e) {
1579
+ this.list_ && (this.list_.singleSelection = e);
1580
+ },
1581
+ enumerable: !1,
1582
+ configurable: !0
1583
+ }), Object.defineProperty(r.prototype, "selectedIndex", {
1584
+ /**
1585
+ * Retrieves the selected index. Only applicable to select menus.
1586
+ * @return The selected index, which is a number for single selection and
1587
+ * radio lists, and an array of numbers for checkbox lists.
1588
+ */
1589
+ get: function() {
1590
+ return this.list_ ? this.list_.selectedIndex : be.UNSET_INDEX;
1591
+ },
1592
+ /**
1593
+ * Sets the selected index of the list. Only applicable to select menus.
1594
+ * @param index The selected index, which is a number for single selection and
1595
+ * radio lists, and an array of numbers for checkbox lists.
1596
+ */
1597
+ set: function(e) {
1598
+ this.list_ && (this.list_.selectedIndex = e);
1599
+ },
1600
+ enumerable: !1,
1601
+ configurable: !0
1602
+ }), Object.defineProperty(r.prototype, "quickOpen", {
1603
+ set: function(e) {
1604
+ this.menuSurface_.quickOpen = e;
1605
+ },
1606
+ enumerable: !1,
1607
+ configurable: !0
1608
+ }), r.prototype.setDefaultFocusState = function(e) {
1609
+ this.foundation.setDefaultFocusState(e);
1610
+ }, r.prototype.setAnchorCorner = function(e) {
1611
+ this.menuSurface_.setAnchorCorner(e);
1612
+ }, r.prototype.setAnchorMargin = function(e) {
1613
+ this.menuSurface_.setAnchorMargin(e);
1614
+ }, r.prototype.setSelectedIndex = function(e) {
1615
+ this.foundation.setSelectedIndex(e);
1616
+ }, r.prototype.setEnabled = function(e, t) {
1617
+ this.foundation.setEnabled(e, t);
1618
+ }, r.prototype.getOptionByIndex = function(e) {
1619
+ var t = this.items;
1620
+ return e < t.length ? this.items[e] : null;
1621
+ }, r.prototype.getPrimaryTextAtIndex = function(e) {
1622
+ var t = this.getOptionByIndex(e);
1623
+ return t && this.list_ && this.list_.getPrimaryText(t) || "";
1624
+ }, r.prototype.setFixedPosition = function(e) {
1625
+ this.menuSurface_.setFixedPosition(e);
1626
+ }, r.prototype.setIsHoisted = function(e) {
1627
+ this.menuSurface_.setIsHoisted(e);
1628
+ }, r.prototype.setAbsolutePosition = function(e, t) {
1629
+ this.menuSurface_.setAbsolutePosition(e, t);
1630
+ }, r.prototype.setAnchorElement = function(e) {
1631
+ this.menuSurface_.anchorElement = e;
1632
+ }, r.prototype.getDefaultFoundation = function() {
1633
+ var e = this, t = {
1634
+ addClassToElementAtIndex: function(i, o) {
1635
+ var l = e.items;
1636
+ l[i].classList.add(o);
1637
+ },
1638
+ removeClassFromElementAtIndex: function(i, o) {
1639
+ var l = e.items;
1640
+ l[i].classList.remove(o);
1641
+ },
1642
+ addAttributeToElementAtIndex: function(i, o, l) {
1643
+ var u = e.items;
1644
+ u[i].setAttribute(o, l);
1645
+ },
1646
+ removeAttributeFromElementAtIndex: function(i, o) {
1647
+ var l = e.items;
1648
+ l[i].removeAttribute(o);
1649
+ },
1650
+ elementContainsClass: function(i, o) {
1651
+ return i.classList.contains(o);
1652
+ },
1653
+ closeSurface: function(i) {
1654
+ return e.menuSurface_.close(i);
1655
+ },
1656
+ getElementIndex: function(i) {
1657
+ return e.items.indexOf(i);
1658
+ },
1659
+ notifySelected: function(i) {
1660
+ return e.emit(_t.SELECTED_EVENT, {
1661
+ index: i.index,
1662
+ item: e.items[i.index]
1663
+ });
1664
+ },
1665
+ getMenuItemCount: function() {
1666
+ return e.items.length;
1667
+ },
1668
+ focusItemAtIndex: function(i) {
1669
+ return e.items[i].focus();
1670
+ },
1671
+ focusListRoot: function() {
1672
+ return e.root.querySelector(_t.LIST_SELECTOR).focus();
1673
+ },
1674
+ isSelectableItemAtIndex: function(i) {
1675
+ return !!Hn(e.items[i], "." + Ht.MENU_SELECTION_GROUP);
1676
+ },
1677
+ getSelectedSiblingOfItemAtIndex: function(i) {
1678
+ var o = Hn(e.items[i], "." + Ht.MENU_SELECTION_GROUP), l = o.querySelector("." + Ht.MENU_SELECTED_LIST_ITEM);
1679
+ return l ? e.items.indexOf(l) : -1;
1680
+ }
1681
+ };
1682
+ return new Fa(t);
1683
+ }, r;
1684
+ }(Xn)
1685
+ ), ka = {
1686
+ /**
1687
+ * The horizontal position of the menu, when visible. The menu surface will be hoisted to the body of the DOM. This should only be used when the menu needs to be explicitly positioned and cannot be combined with MenuAnchor.
1688
+ *
1689
+ * Defaults to **null**.
1690
+ */
1691
+ absolutePositionX: c.number,
1692
+ /**
1693
+ * The vertical position of the menu, when visible. The menu surface will be hoisted to the body of the DOM. This should only be used when the menu needs to be explicitly positioned and cannot be combined with MenuAnchor.
1694
+ *
1695
+ * Defaults to **null**.
1696
+ */
1697
+ absolutePositionY: c.number,
1698
+ /**
1699
+ * Sets the display position of the menu relative to the parent element. It must be used with Menu Anchor.
1700
+ *
1701
+ * Defaults to **'BOTTOM_START'**.
1702
+ */
1703
+ anchorCorner: c.oneOf(["TOP_LEFT", "TOP_RIGHT", "BOTTOM_LEFT", "BOTTOM_RIGHT", "TOP_START", "TOP_END", "BOTTOM_START", "BOTTOM_END"]),
1704
+ /**
1705
+ * Sets the distance from the anchor point that the menu surface should be shown. The object properties should include at least one of `top`, `bottom`, `left` or `right`.
1706
+ *
1707
+ * Defaults to **null**.
1708
+ */
1709
+ anchorMargin: c.object,
1710
+ /**
1711
+ * Custom props to be sent to the MenuAnchor wrapper of the `trigger`
1712
+ *
1713
+ * Defaults to **{}**.
1714
+ */
1715
+ anchorProps: c.object,
1716
+ /**
1717
+ * Expects a List or ListGroup component but accepts any valid markup or components.
1718
+ *
1719
+ * Defaults to **null**.
1720
+ */
1721
+ children: c.node,
1722
+ /**
1723
+ * Sets the direction property for the menu. For right to left languages use `rtl`.
1724
+ *
1725
+ * Defaults to **'ltr'**.
1726
+ */
1727
+ direction: c.oneOf(["ltr", "rtl"]),
1728
+ /**
1729
+ * Prevents the use of absolute position (x/y) props.
1730
+ *
1731
+ * Defaults to **false**.
1732
+ */
1733
+ fixed: c.bool,
1734
+ /**
1735
+ * Sets the width of the menu to the full width of the body. It is to be used with `hoistToBody`. Useful when creating navigation menus for mobile devices.
1736
+ *
1737
+ * Defaults to **false**.
1738
+ */
1739
+ fullScreen: c.bool,
1740
+ /**
1741
+ * Sets the width of the menu to the full width of the parent. Cannot be used with `hoistToBody` or when `absolutePositionY` or `absolutePositionY` is set.
1742
+ *
1743
+ * Defaults to **false**.
1744
+ */
1745
+ fullWidth: c.bool,
1746
+ /**
1747
+ * Fired when html body is clicked. Default behavior is to close the menu.
1748
+ *
1749
+ * Defaults to **null**.
1750
+ */
1751
+ handleBodyClick: c.func,
1752
+ /**
1753
+ * Enables the menu to be rendered as part of the body, enables higher z-index. Requires `surfaceOnly` to be true. This can improve menu to behavior better inside a table. Use with caution: may cause unintended side-effects.
1754
+ *
1755
+ * Defaults to **false**.
1756
+ */
1757
+ hoistToBody: c.bool,
1758
+ /**
1759
+ * Sets the max height of the menu. It can be a number or string with 100% or so.
1760
+ *
1761
+ * Defaults to **275**.
1762
+ */
1763
+ maxHeight: c.oneOfType([c.number, c.string]),
1764
+ /**
1765
+ * Fired after the menu surface is closed. For best performance, this method should be memoized or wrapped with useCallback.
1766
+ *
1767
+ * Defaults to **null**.
1768
+ */
1769
+ onClose: c.func,
1770
+ /**
1771
+ * Fired after the menu surface is opened. For best performance, this method should be memoized or wrapped with useCallback.
1772
+ *
1773
+ * Defaults to **null**.
1774
+ */
1775
+ onOpen: c.func,
1776
+ /**
1777
+ * Fired when a menu item is selected . It is not available if `surfaceOnly` is true. For best performance, this method should be memoized or wrapped with useCallback.
1778
+ *
1779
+ * Defaults to **null**.
1780
+ */
1781
+ onSelect: c.func,
1782
+ /**
1783
+ * Controls the visibility of the menu.
1784
+ *
1785
+ * Defaults to **false**.
1786
+ */
1787
+ open: c.bool,
1788
+ /**
1789
+ * When set to to true ensures no browser-specific apis are accessed during initialisation. When set to false, ignored or set to null, no conditional rendering is applied.
1790
+ *
1791
+ * Defaults to **null**.
1792
+ */
1793
+ server: c.bool,
1794
+ /**
1795
+ * Passthrough style object.
1796
+ *
1797
+ * Defaults to **null**.
1798
+ */
1799
+ style: c.object,
1800
+ /**
1801
+ * Renders as just the menu surface. While Menu expects a list of items, when surfaceOnly is true any content can go inside the menu.
1802
+ *
1803
+ * Defaults to **false**.
1804
+ */
1805
+ surfaceOnly: c.bool,
1806
+ /**
1807
+ * Background color of the menu.
1808
+ *
1809
+ * Defaults to **'surface'**.
1810
+ */
1811
+ themeColor: c.oneOf(["surface", "primary", "secondary"]),
1812
+ /**
1813
+ * Node used to trigger open the menu or menu surface. Will also serve as the anchor.
1814
+ *
1815
+ * Defaults to **null**.
1816
+ */
1817
+ trigger: c.node,
1818
+ /**
1819
+ * When used with a List component `wrapFocus` allows keyboard navigation to jump to the top or bottom of the list to enable continuous navigation.
1820
+ *
1821
+ * Defaults to **true**.
1822
+ */
1823
+ wrapFocus: c.bool
1824
+ }, Ha = {
1825
+ absolutePositionX: null,
1826
+ absolutePositionY: null,
1827
+ anchorCorner: "BOTTOM_START",
1828
+ anchorMargin: null,
1829
+ anchorProps: {},
1830
+ children: null,
1831
+ direction: "ltr",
1832
+ fixed: !1,
1833
+ fullScreen: !1,
1834
+ fullWidth: !1,
1835
+ handleBodyClick: null,
1836
+ hoistToBody: !1,
1837
+ maxHeight: 275,
1838
+ onClose: null,
1839
+ onOpen: null,
1840
+ onSelect: null,
1841
+ open: !1,
1842
+ server: null,
1843
+ style: null,
1844
+ surfaceOnly: !1,
1845
+ themeColor: "surface",
1846
+ trigger: null,
1847
+ wrapFocus: !0
1848
+ }, Ua = {
1849
+ /**
1850
+ * Expects a clickable component such as Button or IconButton and the Menu component.
1851
+ *
1852
+ * Defaults to **null**.
1853
+ */
1854
+ children: c.node
1855
+ }, qa = {
1856
+ children: null
1857
+ }, ja = ["children", "className"], Sr = qa, Wn = /* @__PURE__ */ Oe(function(n, r) {
1858
+ var e = n.children, t = e === void 0 ? Sr.children : e, i = n.className, o = i === void 0 ? Sr.className : i, l = Ke(n, ja);
1859
+ return /* @__PURE__ */ m.createElement("div", ge({
1860
+ ref: r,
1861
+ className: pe("lmnt", "mdc-menu-surface--anchor", o)
1862
+ }, l), t);
1863
+ });
1864
+ Wn.displayName = "MenuAnchor";
1865
+ Wn.propTypes = Ua;
1866
+ var ai = /* @__PURE__ */ ei({}), Ga = ["absolutePositionX", "absolutePositionY", "anchorCorner", "anchorMargin", "anchorProps", "children", "className", "direction", "fixed", "fullScreen", "fullWidth", "handleBodyClick", "hoistToBody", "iconMenu", "id", "maxHeight", "onClose", "onOpen", "onSelect", "open", "quickOpen", "style", "surfaceOnly", "themeColor", "trigger", "unexposed", "wrapFocus", "server"];
1867
+ function Ar(n, r) {
1868
+ var e = Wr(n);
1869
+ if (pn) {
1870
+ var t = pn(n);
1871
+ r && (t = Jr(t).call(t, function(i) {
1872
+ return In(n, i).enumerable;
1873
+ })), e.push.apply(e, t);
1874
+ }
1875
+ return e;
1876
+ }
1877
+ function Cr(n) {
1878
+ for (var r = 1; r < arguments.length; r++) {
1879
+ var e, t, i = arguments[r] != null ? arguments[r] : {};
1880
+ r % 2 ? wt(e = Ar(Object(i), !0)).call(e, function(o) {
1881
+ Yr(n, o, i[o]);
1882
+ }) : hn ? Qr(n, hn(i)) : wt(t = Ar(Object(i))).call(t, function(o) {
1883
+ Zr(n, o, In(i, o));
1884
+ });
1885
+ }
1886
+ return n;
1887
+ }
1888
+ var za = function(r, e, t) {
1889
+ return function(i) {
1890
+ return /* @__PURE__ */ m.createElement(Wn, ge({}, r, {
1891
+ ref: t
1892
+ }), e, i);
1893
+ };
1894
+ }, Va = function(r) {
1895
+ return function(e) {
1896
+ return /* @__PURE__ */ m.createElement(ca, {
1897
+ disabled: !r
1898
+ }, e);
1899
+ };
1900
+ }, re = Ha, oi = /* @__PURE__ */ Oe(function(n, r) {
1901
+ var e = n.absolutePositionX, t = e === void 0 ? re.absolutePositionX : e, i = n.absolutePositionY, o = i === void 0 ? re.absolutePositionY : i, l = n.anchorCorner, u = l === void 0 ? re.anchorCorner : l, f = n.anchorMargin, v = f === void 0 ? re.anchorMargin : f, O = n.anchorProps, E = O === void 0 ? re.anchorProps : O, x = n.children, P = x === void 0 ? re.children : x, N = n.className, S = N === void 0 ? re.className : N, R = n.direction, F = R === void 0 ? re.direction : R, H = n.fixed, U = H === void 0 ? re.fixed : H, q = n.fullScreen, G = q === void 0 ? re.fullScreen : q, Le = n.fullWidth, Ee = Le === void 0 ? re.fullWidth : Le, qe = n.handleBodyClick, I = qe === void 0 ? re.handleBodyClick : qe, z = n.hoistToBody, y = z === void 0 ? re.hoistToBody : z;
1902
+ n.iconMenu;
1903
+ var ue = n.id, K = ue === void 0 ? re.id : ue, ke = n.maxHeight, je = ke === void 0 ? re.maxHeight : ke, De = n.onClose, V = De === void 0 ? re.onClose : De, Be = n.onOpen, Ie = Be === void 0 ? re.onOpen : Be, Qe = n.onSelect, te = Qe === void 0 ? re.onSelect : Qe, Ze = n.open, Ne = Ze === void 0 ? re.open : Ze, Je = n.quickOpen, L = Je === void 0 ? re.quickOpen : Je, ze = n.style, xe = ze === void 0 ? re.style : ze, me = n.surfaceOnly, $ = me === void 0 ? re.surfaceOnly : me, Ve = n.themeColor, Z = Ve === void 0 ? re.themeColor : Ve, Ge = n.trigger, se = Ge === void 0 ? re.trigger : Ge;
1904
+ n.unexposed;
1905
+ var Xe = n.wrapFocus, Se = Xe === void 0 ? re.wrapFocus : Xe, et = n.server, tt = et === void 0 ? re.server : et, lt = Ke(n, Ga), D = xt(function() {
1906
+ return K || Gn();
1907
+ }), W = Et(D, 1), ve = W[0], $e = xt(), Me = Et($e, 2), Ae = Me[0], we = Me[1], We = mt(), A = mt(), B = mt();
1908
+ qt(r, function() {
1909
+ return We.current;
1910
+ }, []);
1911
+ var ye = _e(function(Te) {
1912
+ var h = $ ? A.current.foundation.getoriginCorner() : A.current.menuSurface_.foundation.getoriginCorner(), T = $ && A.current.foundation.hasBit(h, ce.BOTTOM) || !$ && A.current.menuSurface_.foundation.hasBit(h, ce.BOTTOM) ? "bottom" : "top";
1913
+ we(T === "bottom"), Ie && Ie(Te);
1914
+ }, [Ie, $]), ne = _e(function(Te) {
1915
+ te && te(Te.detail);
1916
+ }, [te]);
1917
+ he(function() {
1918
+ return A.current = $ ? ii.attachTo(We.current) : Ka.attachTo(We.current), function() {
1919
+ A.current.destroy();
1920
+ };
1921
+ }, [$]), he(function() {
1922
+ return $ || A.current.listen("MDCMenu:selected", ne), function() {
1923
+ $ || A.current.unlisten("MDCMenu:selected", ne);
1924
+ };
1925
+ }, [ne, $]), he(function() {
1926
+ return A.current.listen("MDCMenuSurface:closed", V), function() {
1927
+ A.current.unlisten("MDCMenuSurface:closed", V);
1928
+ };
1929
+ }, [V]), he(function() {
1930
+ return A.current.listen("MDCMenuSurface:opened", ye), function() {
1931
+ A.current.unlisten("MDCMenuSurface:opened", ye);
1932
+ };
1933
+ }, [ye]), he(function() {
1934
+ $ ? A.current.foundation.setMaxHeight(je) : A.current.menuSurface_.foundation.setMaxHeight(je);
1935
+ }, [je, $]), he(function() {
1936
+ v && ($ ? A.current.foundation.setAnchorMargin(v) : A.current.menuSurface_.foundation.setAnchorMargin(v));
1937
+ }, [v, $]), he(function() {
1938
+ I && (A.current.handleBodyClick = I);
1939
+ }, [I]), he(function() {
1940
+ (!U && t && t > -1 || !U && o && o > -1) && (A.current.setAbsolutePosition(t, o), A.current.foundation.getAutoLayoutmeasurements().surfaceSize && A.current.foundation.autoposition());
1941
+ }, [t, o, U]), he(function() {
1942
+ A.current.setFixedPosition(U);
1943
+ }, [U]), he(function() {
1944
+ A.current.wrapFocus = Se;
1945
+ }, [Se]), he(function() {
1946
+ u && !(t || o) && A.current.setAnchorCorner(kt[u.toUpperCase()]);
1947
+ }, [A, u, t, o]), he(function() {
1948
+ A.current.setIsHoisted(y), $ ? A.current.setMenuSurfaceAnchorElement(B.current) : A.current.setAnchorElement(B.current);
1949
+ }, [y, $, se]), he(function() {
1950
+ A.current.quickOpen = L;
1951
+ }, [L]), he(function() {
1952
+ Ne ? !$ && !A.current.open ? A.current.open = Ne : A.current.foundation.isSurfaceOpen || A.current.open() : !$ && A.current.open ? A.current.open = !1 : A.current.foundation.isSurfaceOpen && A.current.close();
1953
+ }, [A, Ne, $]);
1954
+ var j = Re(function() {
1955
+ return {
1956
+ inMenu: !0
1957
+ };
1958
+ }, []), rt = Re(function() {
1959
+ var Te, h;
1960
+ return pe("lmnt", "mdc-menu-surface", "lmnt-menu-container", ($ && ((Te = A.current) === null || Te === void 0 ? void 0 : Te.foundation.isOpen()) || !$ && ((h = A.current) === null || h === void 0 ? void 0 : h.menuSurface_.foundation.isOpen())) && "mdc-menu-surface--open", Ae && "lmnt-menu-open-up", !$ && "mdc-menu", !y && Ee && "mdc-menu-surface--fullwidth", y && G && "lmnt-menu-surface--fullScreen", "lmnt-theme-".concat(Z, "-bg"), S);
1961
+ }, [S, G, Ee, y, Ae, $, Z]), dt = Re(function() {
1962
+ return za(E, se, B);
1963
+ }, [E, se]), de = Re(function() {
1964
+ return Va(y);
1965
+ }, [y]), Ye = Re(function() {
1966
+ return Cr(Cr({}, xe), {}, {
1967
+ direction: F
1968
+ });
1969
+ }, [xe, F]);
1970
+ return /* @__PURE__ */ m.createElement(mr, {
1971
+ condition: se,
1972
+ wrapper: dt
1973
+ }, /* @__PURE__ */ m.createElement(mr, {
1974
+ condition: y && !tt,
1975
+ wrapper: de
1976
+ }, /* @__PURE__ */ m.createElement("div", ge({
1977
+ ref: We,
1978
+ id: ve,
1979
+ style: Ye,
1980
+ className: rt,
1981
+ tabIndex: "-1"
1982
+ }, lt), /* @__PURE__ */ m.createElement(ai.Provider, {
1983
+ value: j
1984
+ }, P))));
1985
+ });
1986
+ oi.displayName = "Menu";
1987
+ oi.propTypes = ka;
1988
+ var Qt = { exports: {} };
1989
+ Qt.exports;
1990
+ var br;
1991
+ function Xa() {
1992
+ return br || (br = 1, function(n, r) {
1993
+ var e = 200, t = "__lodash_hash_undefined__", i = 1, o = 2, l = 9007199254740991, u = "[object Arguments]", f = "[object Array]", v = "[object AsyncFunction]", O = "[object Boolean]", E = "[object Date]", x = "[object Error]", P = "[object Function]", N = "[object GeneratorFunction]", S = "[object Map]", R = "[object Number]", F = "[object Null]", H = "[object Object]", U = "[object Promise]", q = "[object Proxy]", G = "[object RegExp]", Le = "[object Set]", Ee = "[object String]", qe = "[object Symbol]", I = "[object Undefined]", z = "[object WeakMap]", y = "[object ArrayBuffer]", ue = "[object DataView]", K = "[object Float32Array]", ke = "[object Float64Array]", je = "[object Int8Array]", De = "[object Int16Array]", V = "[object Int32Array]", Be = "[object Uint8Array]", Ie = "[object Uint8ClampedArray]", Qe = "[object Uint16Array]", te = "[object Uint32Array]", Ze = /[\\^$.*+?()[\]{}|]/g, Ne = /^\[object .+?Constructor\]$/, Je = /^(?:0|[1-9]\d*)$/, L = {};
1994
+ L[K] = L[ke] = L[je] = L[De] = L[V] = L[Be] = L[Ie] = L[Qe] = L[te] = !0, L[u] = L[f] = L[y] = L[O] = L[ue] = L[E] = L[x] = L[P] = L[S] = L[R] = L[H] = L[G] = L[Le] = L[Ee] = L[z] = !1;
1995
+ var ze = typeof sn == "object" && sn && sn.Object === Object && sn, xe = typeof self == "object" && self && self.Object === Object && self, me = ze || xe || Function("return this")(), $ = r && !r.nodeType && r, Ve = $ && !0 && n && !n.nodeType && n, Z = Ve && Ve.exports === $, Ge = Z && ze.process, se = function() {
1996
+ try {
1997
+ return Ge && Ge.binding && Ge.binding("util");
1998
+ } catch {
1999
+ }
2000
+ }(), Xe = se && se.isTypedArray;
2001
+ function Se(a, s) {
2002
+ for (var d = -1, p = a == null ? 0 : a.length, ae = 0, w = []; ++d < p; ) {
2003
+ var fe = a[d];
2004
+ s(fe, d, a) && (w[ae++] = fe);
2005
+ }
2006
+ return w;
2007
+ }
2008
+ function et(a, s) {
2009
+ for (var d = -1, p = s.length, ae = a.length; ++d < p; )
2010
+ a[ae + d] = s[d];
2011
+ return a;
2012
+ }
2013
+ function tt(a, s) {
2014
+ for (var d = -1, p = a == null ? 0 : a.length; ++d < p; )
2015
+ if (s(a[d], d, a))
2016
+ return !0;
2017
+ return !1;
2018
+ }
2019
+ function lt(a, s) {
2020
+ for (var d = -1, p = Array(a); ++d < a; )
2021
+ p[d] = s(d);
2022
+ return p;
2023
+ }
2024
+ function D(a) {
2025
+ return function(s) {
2026
+ return a(s);
2027
+ };
2028
+ }
2029
+ function W(a, s) {
2030
+ return a.has(s);
2031
+ }
2032
+ function ve(a, s) {
2033
+ return a?.[s];
2034
+ }
2035
+ function $e(a) {
2036
+ var s = -1, d = Array(a.size);
2037
+ return a.forEach(function(p, ae) {
2038
+ d[++s] = [ae, p];
2039
+ }), d;
2040
+ }
2041
+ function Me(a, s) {
2042
+ return function(d) {
2043
+ return a(s(d));
2044
+ };
2045
+ }
2046
+ function Ae(a) {
2047
+ var s = -1, d = Array(a.size);
2048
+ return a.forEach(function(p) {
2049
+ d[++s] = p;
2050
+ }), d;
2051
+ }
2052
+ var we = Array.prototype, We = Function.prototype, A = Object.prototype, B = me["__core-js_shared__"], ye = We.toString, ne = A.hasOwnProperty, j = function() {
2053
+ var a = /[^.]+$/.exec(B && B.keys && B.keys.IE_PROTO || "");
2054
+ return a ? "Symbol(src)_1." + a : "";
2055
+ }(), rt = A.toString, dt = RegExp(
2056
+ "^" + ye.call(ne).replace(Ze, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
2057
+ ), de = Z ? me.Buffer : void 0, Ye = me.Symbol, Te = me.Uint8Array, h = A.propertyIsEnumerable, T = we.splice, b = Ye ? Ye.toStringTag : void 0, _ = Object.getOwnPropertySymbols, g = de ? de.isBuffer : void 0, k = Me(Object.keys, Object), J = Rt(me, "DataView"), Y = Rt(me, "Map"), ct = Rt(me, "Promise"), it = Rt(me, "Set"), Ce = Rt(me, "WeakMap"), M = Rt(Object, "create"), X = bt(J), at = bt(Y), St = bt(ct), Pt = bt(it), vt = bt(Ce), ir = Ye ? Ye.prototype : void 0, En = ir ? ir.valueOf : void 0;
2058
+ function At(a) {
2059
+ var s = -1, d = a == null ? 0 : a.length;
2060
+ for (this.clear(); ++s < d; ) {
2061
+ var p = a[s];
2062
+ this.set(p[0], p[1]);
2063
+ }
2064
+ }
2065
+ function hi() {
2066
+ this.__data__ = M ? M(null) : {}, this.size = 0;
2067
+ }
2068
+ function pi(a) {
2069
+ var s = this.has(a) && delete this.__data__[a];
2070
+ return this.size -= s ? 1 : 0, s;
2071
+ }
2072
+ function mi(a) {
2073
+ var s = this.__data__;
2074
+ if (M) {
2075
+ var d = s[a];
2076
+ return d === t ? void 0 : d;
2077
+ }
2078
+ return ne.call(s, a) ? s[a] : void 0;
2079
+ }
2080
+ function vi(a) {
2081
+ var s = this.__data__;
2082
+ return M ? s[a] !== void 0 : ne.call(s, a);
2083
+ }
2084
+ function yi(a, s) {
2085
+ var d = this.__data__;
2086
+ return this.size += this.has(a) ? 0 : 1, d[a] = M && s === void 0 ? t : s, this;
2087
+ }
2088
+ At.prototype.clear = hi, At.prototype.delete = pi, At.prototype.get = mi, At.prototype.has = vi, At.prototype.set = yi;
2089
+ function ft(a) {
2090
+ var s = -1, d = a == null ? 0 : a.length;
2091
+ for (this.clear(); ++s < d; ) {
2092
+ var p = a[s];
2093
+ this.set(p[0], p[1]);
2094
+ }
2095
+ }
2096
+ function gi() {
2097
+ this.__data__ = [], this.size = 0;
2098
+ }
2099
+ function Ii(a) {
2100
+ var s = this.__data__, d = tn(s, a);
2101
+ if (d < 0)
2102
+ return !1;
2103
+ var p = s.length - 1;
2104
+ return d == p ? s.pop() : T.call(s, d, 1), --this.size, !0;
2105
+ }
2106
+ function Ti(a) {
2107
+ var s = this.__data__, d = tn(s, a);
2108
+ return d < 0 ? void 0 : s[d][1];
2109
+ }
2110
+ function _i(a) {
2111
+ return tn(this.__data__, a) > -1;
2112
+ }
2113
+ function Ei(a, s) {
2114
+ var d = this.__data__, p = tn(d, a);
2115
+ return p < 0 ? (++this.size, d.push([a, s])) : d[p][1] = s, this;
2116
+ }
2117
+ ft.prototype.clear = gi, ft.prototype.delete = Ii, ft.prototype.get = Ti, ft.prototype.has = _i, ft.prototype.set = Ei;
2118
+ function Ct(a) {
2119
+ var s = -1, d = a == null ? 0 : a.length;
2120
+ for (this.clear(); ++s < d; ) {
2121
+ var p = a[s];
2122
+ this.set(p[0], p[1]);
2123
+ }
2124
+ }
2125
+ function xi() {
2126
+ this.size = 0, this.__data__ = {
2127
+ hash: new At(),
2128
+ map: new (Y || ft)(),
2129
+ string: new At()
2130
+ };
2131
+ }
2132
+ function Si(a) {
2133
+ var s = nn(this, a).delete(a);
2134
+ return this.size -= s ? 1 : 0, s;
2135
+ }
2136
+ function Ai(a) {
2137
+ return nn(this, a).get(a);
2138
+ }
2139
+ function Ci(a) {
2140
+ return nn(this, a).has(a);
2141
+ }
2142
+ function bi(a, s) {
2143
+ var d = nn(this, a), p = d.size;
2144
+ return d.set(a, s), this.size += d.size == p ? 0 : 1, this;
2145
+ }
2146
+ Ct.prototype.clear = xi, Ct.prototype.delete = Si, Ct.prototype.get = Ai, Ct.prototype.has = Ci, Ct.prototype.set = bi;
2147
+ function en(a) {
2148
+ var s = -1, d = a == null ? 0 : a.length;
2149
+ for (this.__data__ = new Ct(); ++s < d; )
2150
+ this.add(a[s]);
2151
+ }
2152
+ function Oi(a) {
2153
+ return this.__data__.set(a, t), this;
2154
+ }
2155
+ function Li(a) {
2156
+ return this.__data__.has(a);
2157
+ }
2158
+ en.prototype.add = en.prototype.push = Oi, en.prototype.has = Li;
2159
+ function yt(a) {
2160
+ var s = this.__data__ = new ft(a);
2161
+ this.size = s.size;
2162
+ }
2163
+ function Ni() {
2164
+ this.__data__ = new ft(), this.size = 0;
2165
+ }
2166
+ function Mi(a) {
2167
+ var s = this.__data__, d = s.delete(a);
2168
+ return this.size = s.size, d;
2169
+ }
2170
+ function wi(a) {
2171
+ return this.__data__.get(a);
2172
+ }
2173
+ function Pi(a) {
2174
+ return this.__data__.has(a);
2175
+ }
2176
+ function Ri(a, s) {
2177
+ var d = this.__data__;
2178
+ if (d instanceof ft) {
2179
+ var p = d.__data__;
2180
+ if (!Y || p.length < e - 1)
2181
+ return p.push([a, s]), this.size = ++d.size, this;
2182
+ d = this.__data__ = new Ct(p);
2183
+ }
2184
+ return d.set(a, s), this.size = d.size, this;
2185
+ }
2186
+ yt.prototype.clear = Ni, yt.prototype.delete = Mi, yt.prototype.get = wi, yt.prototype.has = Pi, yt.prototype.set = Ri;
2187
+ function Di(a, s) {
2188
+ var d = rn(a), p = !d && Yi(a), ae = !d && !p && xn(a), w = !d && !p && !ae && hr(a), fe = d || p || ae || w, Pe = fe ? lt(a.length, String) : [], Fe = Pe.length;
2189
+ for (var le in a)
2190
+ ne.call(a, le) && !(fe && // Safari 9 has enumerable `arguments.length` in strict mode.
2191
+ (le == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
2192
+ ae && (le == "offset" || le == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
2193
+ w && (le == "buffer" || le == "byteLength" || le == "byteOffset") || // Skip index properties.
2194
+ Gi(le, Fe))) && Pe.push(le);
2195
+ return Pe;
2196
+ }
2197
+ function tn(a, s) {
2198
+ for (var d = a.length; d--; )
2199
+ if (cr(a[d][0], s))
2200
+ return d;
2201
+ return -1;
2202
+ }
2203
+ function Bi(a, s, d) {
2204
+ var p = s(a);
2205
+ return rn(a) ? p : et(p, d(a));
2206
+ }
2207
+ function Gt(a) {
2208
+ return a == null ? a === void 0 ? I : F : b && b in Object(a) ? qi(a) : Wi(a);
2209
+ }
2210
+ function ar(a) {
2211
+ return zt(a) && Gt(a) == u;
2212
+ }
2213
+ function or(a, s, d, p, ae) {
2214
+ return a === s ? !0 : a == null || s == null || !zt(a) && !zt(s) ? a !== a && s !== s : $i(a, s, d, p, or, ae);
2215
+ }
2216
+ function $i(a, s, d, p, ae, w) {
2217
+ var fe = rn(a), Pe = rn(s), Fe = fe ? f : gt(a), le = Pe ? f : gt(s);
2218
+ Fe = Fe == u ? H : Fe, le = le == u ? H : le;
2219
+ var nt = Fe == H, ut = le == H, He = Fe == le;
2220
+ if (He && xn(a)) {
2221
+ if (!xn(s))
2222
+ return !1;
2223
+ fe = !0, nt = !1;
2224
+ }
2225
+ if (He && !nt)
2226
+ return w || (w = new yt()), fe || hr(a) ? sr(a, s, d, p, ae, w) : Hi(a, s, Fe, d, p, ae, w);
2227
+ if (!(d & i)) {
2228
+ var ot = nt && ne.call(a, "__wrapped__"), st = ut && ne.call(s, "__wrapped__");
2229
+ if (ot || st) {
2230
+ var It = ot ? a.value() : a, ht = st ? s.value() : s;
2231
+ return w || (w = new yt()), ae(It, ht, d, p, w);
2232
+ }
2233
+ }
2234
+ return He ? (w || (w = new yt()), Ui(a, s, d, p, ae, w)) : !1;
2235
+ }
2236
+ function Fi(a) {
2237
+ if (!fr(a) || Vi(a))
2238
+ return !1;
2239
+ var s = ur(a) ? dt : Ne;
2240
+ return s.test(bt(a));
2241
+ }
2242
+ function Ki(a) {
2243
+ return zt(a) && dr(a.length) && !!L[Gt(a)];
2244
+ }
2245
+ function ki(a) {
2246
+ if (!Xi(a))
2247
+ return k(a);
2248
+ var s = [];
2249
+ for (var d in Object(a))
2250
+ ne.call(a, d) && d != "constructor" && s.push(d);
2251
+ return s;
2252
+ }
2253
+ function sr(a, s, d, p, ae, w) {
2254
+ var fe = d & i, Pe = a.length, Fe = s.length;
2255
+ if (Pe != Fe && !(fe && Fe > Pe))
2256
+ return !1;
2257
+ var le = w.get(a);
2258
+ if (le && w.get(s))
2259
+ return le == s;
2260
+ var nt = -1, ut = !0, He = d & o ? new en() : void 0;
2261
+ for (w.set(a, s), w.set(s, a); ++nt < Pe; ) {
2262
+ var ot = a[nt], st = s[nt];
2263
+ if (p)
2264
+ var It = fe ? p(st, ot, nt, s, a, w) : p(ot, st, nt, a, s, w);
2265
+ if (It !== void 0) {
2266
+ if (It)
2267
+ continue;
2268
+ ut = !1;
2269
+ break;
2270
+ }
2271
+ if (He) {
2272
+ if (!tt(s, function(ht, Ot) {
2273
+ if (!W(He, Ot) && (ot === ht || ae(ot, ht, d, p, w)))
2274
+ return He.push(Ot);
2275
+ })) {
2276
+ ut = !1;
2277
+ break;
2278
+ }
2279
+ } else if (!(ot === st || ae(ot, st, d, p, w))) {
2280
+ ut = !1;
2281
+ break;
2282
+ }
2283
+ }
2284
+ return w.delete(a), w.delete(s), ut;
2285
+ }
2286
+ function Hi(a, s, d, p, ae, w, fe) {
2287
+ switch (d) {
2288
+ case ue:
2289
+ if (a.byteLength != s.byteLength || a.byteOffset != s.byteOffset)
2290
+ return !1;
2291
+ a = a.buffer, s = s.buffer;
2292
+ case y:
2293
+ return !(a.byteLength != s.byteLength || !w(new Te(a), new Te(s)));
2294
+ case O:
2295
+ case E:
2296
+ case R:
2297
+ return cr(+a, +s);
2298
+ case x:
2299
+ return a.name == s.name && a.message == s.message;
2300
+ case G:
2301
+ case Ee:
2302
+ return a == s + "";
2303
+ case S:
2304
+ var Pe = $e;
2305
+ case Le:
2306
+ var Fe = p & i;
2307
+ if (Pe || (Pe = Ae), a.size != s.size && !Fe)
2308
+ return !1;
2309
+ var le = fe.get(a);
2310
+ if (le)
2311
+ return le == s;
2312
+ p |= o, fe.set(a, s);
2313
+ var nt = sr(Pe(a), Pe(s), p, ae, w, fe);
2314
+ return fe.delete(a), nt;
2315
+ case qe:
2316
+ if (En)
2317
+ return En.call(a) == En.call(s);
2318
+ }
2319
+ return !1;
2320
+ }
2321
+ function Ui(a, s, d, p, ae, w) {
2322
+ var fe = d & i, Pe = lr(a), Fe = Pe.length, le = lr(s), nt = le.length;
2323
+ if (Fe != nt && !fe)
2324
+ return !1;
2325
+ for (var ut = Fe; ut--; ) {
2326
+ var He = Pe[ut];
2327
+ if (!(fe ? He in s : ne.call(s, He)))
2328
+ return !1;
2329
+ }
2330
+ var ot = w.get(a);
2331
+ if (ot && w.get(s))
2332
+ return ot == s;
2333
+ var st = !0;
2334
+ w.set(a, s), w.set(s, a);
2335
+ for (var It = fe; ++ut < Fe; ) {
2336
+ He = Pe[ut];
2337
+ var ht = a[He], Ot = s[He];
2338
+ if (p)
2339
+ var pr = fe ? p(Ot, ht, He, s, a, w) : p(ht, Ot, He, a, s, w);
2340
+ if (!(pr === void 0 ? ht === Ot || ae(ht, Ot, d, p, w) : pr)) {
2341
+ st = !1;
2342
+ break;
2343
+ }
2344
+ It || (It = He == "constructor");
2345
+ }
2346
+ if (st && !It) {
2347
+ var an = a.constructor, on = s.constructor;
2348
+ an != on && "constructor" in a && "constructor" in s && !(typeof an == "function" && an instanceof an && typeof on == "function" && on instanceof on) && (st = !1);
2349
+ }
2350
+ return w.delete(a), w.delete(s), st;
2351
+ }
2352
+ function lr(a) {
2353
+ return Bi(a, Ji, ji);
2354
+ }
2355
+ function nn(a, s) {
2356
+ var d = a.__data__;
2357
+ return zi(s) ? d[typeof s == "string" ? "string" : "hash"] : d.map;
2358
+ }
2359
+ function Rt(a, s) {
2360
+ var d = ve(a, s);
2361
+ return Fi(d) ? d : void 0;
2362
+ }
2363
+ function qi(a) {
2364
+ var s = ne.call(a, b), d = a[b];
2365
+ try {
2366
+ a[b] = void 0;
2367
+ var p = !0;
2368
+ } catch {
2369
+ }
2370
+ var ae = rt.call(a);
2371
+ return p && (s ? a[b] = d : delete a[b]), ae;
2372
+ }
2373
+ var ji = _ ? function(a) {
2374
+ return a == null ? [] : (a = Object(a), Se(_(a), function(s) {
2375
+ return h.call(a, s);
2376
+ }));
2377
+ } : ea, gt = Gt;
2378
+ (J && gt(new J(new ArrayBuffer(1))) != ue || Y && gt(new Y()) != S || ct && gt(ct.resolve()) != U || it && gt(new it()) != Le || Ce && gt(new Ce()) != z) && (gt = function(a) {
2379
+ var s = Gt(a), d = s == H ? a.constructor : void 0, p = d ? bt(d) : "";
2380
+ if (p)
2381
+ switch (p) {
2382
+ case X:
2383
+ return ue;
2384
+ case at:
2385
+ return S;
2386
+ case St:
2387
+ return U;
2388
+ case Pt:
2389
+ return Le;
2390
+ case vt:
2391
+ return z;
2392
+ }
2393
+ return s;
2394
+ });
2395
+ function Gi(a, s) {
2396
+ return s = s ?? l, !!s && (typeof a == "number" || Je.test(a)) && a > -1 && a % 1 == 0 && a < s;
2397
+ }
2398
+ function zi(a) {
2399
+ var s = typeof a;
2400
+ return s == "string" || s == "number" || s == "symbol" || s == "boolean" ? a !== "__proto__" : a === null;
2401
+ }
2402
+ function Vi(a) {
2403
+ return !!j && j in a;
2404
+ }
2405
+ function Xi(a) {
2406
+ var s = a && a.constructor, d = typeof s == "function" && s.prototype || A;
2407
+ return a === d;
2408
+ }
2409
+ function Wi(a) {
2410
+ return rt.call(a);
2411
+ }
2412
+ function bt(a) {
2413
+ if (a != null) {
2414
+ try {
2415
+ return ye.call(a);
2416
+ } catch {
2417
+ }
2418
+ try {
2419
+ return a + "";
2420
+ } catch {
2421
+ }
2422
+ }
2423
+ return "";
2424
+ }
2425
+ function cr(a, s) {
2426
+ return a === s || a !== a && s !== s;
2427
+ }
2428
+ var Yi = ar(/* @__PURE__ */ function() {
2429
+ return arguments;
2430
+ }()) ? ar : function(a) {
2431
+ return zt(a) && ne.call(a, "callee") && !h.call(a, "callee");
2432
+ }, rn = Array.isArray;
2433
+ function Qi(a) {
2434
+ return a != null && dr(a.length) && !ur(a);
2435
+ }
2436
+ var xn = g || ta;
2437
+ function Zi(a, s) {
2438
+ return or(a, s);
2439
+ }
2440
+ function ur(a) {
2441
+ if (!fr(a))
2442
+ return !1;
2443
+ var s = Gt(a);
2444
+ return s == P || s == N || s == v || s == q;
2445
+ }
2446
+ function dr(a) {
2447
+ return typeof a == "number" && a > -1 && a % 1 == 0 && a <= l;
2448
+ }
2449
+ function fr(a) {
2450
+ var s = typeof a;
2451
+ return a != null && (s == "object" || s == "function");
2452
+ }
2453
+ function zt(a) {
2454
+ return a != null && typeof a == "object";
2455
+ }
2456
+ var hr = Xe ? D(Xe) : Ki;
2457
+ function Ji(a) {
2458
+ return Qi(a) ? Di(a) : ki(a);
2459
+ }
2460
+ function ea() {
2461
+ return [];
2462
+ }
2463
+ function ta() {
2464
+ return !1;
2465
+ }
2466
+ n.exports = Zi;
2467
+ }(Qt, Qt.exports)), Qt.exports;
2468
+ }
2469
+ var Wa = Xa();
2470
+ const Ya = /* @__PURE__ */ zn(Wa);
2471
+ var Qa = {
2472
+ /**
2473
+ * Label to be displayed in the Badge. Usually a string, but can also be an x-small icon.
2474
+ *
2475
+ * Defaults to **null**.
2476
+ */
2477
+ label: c.oneOfType([c.string, c.func, c.node]),
2478
+ /**
2479
+ * Label type to be displayed in the Badge.
2480
+ *
2481
+ * Defaults to **'string'**.
2482
+ */
2483
+ labelType: c.oneOf(["string", "icon"]),
2484
+ /**
2485
+ * Adds the given Icon to the left of the label text. May not be used with `trailingIcon` or if `labelType` is icon - if `leadingIcon` and `trailingIcon` are both set, `leadingIcon` will take priority. If `labelType` is set to `icon` label will take priority. Expects the name of a valid Material.io icon, however an icon component may be passed in instead for more control. If a custom icon is used, the icon should not be larger than 9 x 9.
2486
+ *
2487
+ * Defaults to **undefined**.
2488
+ */
2489
+ leadingIcon: c.oneOfType([c.string, c.func, c.node]),
2490
+ /**
2491
+ * Color of the badge. It will default according to your theme. For most themes that is primary.
2492
+ *
2493
+ * Defaults to **'themeDefault'**.
2494
+ */
2495
+ themeColor: ua(c.oneOf(["themeDefault", "primary", "secondary", "danger", "success", "blue", "gray", "green", "orange", "purple", "red", "teal", "yellow", "black", "primary-variant", "no-bg-on-dark"]), ["primaryVariant"], "LabelBadge", "Please use one of 'themeDefault','primary','secondary','danger','success','blue','gray','green','orange','purple','red','teal','yellow','black','primary-variant','no-bg-on-dark'."),
2496
+ /**
2497
+ * Adds the given Icon to the right of the label text. May not be used with `leadingIcon` or if `labelType` is icon - if `leadingIcon` and `trailingIcon` are both set, `leadingIcon` will take priority. If `labelType` is set to `icon` label will take priority. Expects the name of a valid Material.io icon, however an icon component may be passed in instead for more control.
2498
+ *
2499
+ * Defaults to **undefined**.
2500
+ */
2501
+ trailingIcon: c.oneOfType([c.string, c.func, c.node])
2502
+ }, Za = {
2503
+ label: null,
2504
+ labelType: "string",
2505
+ leadingIcon: void 0,
2506
+ themeColor: "themeDefault",
2507
+ trailingIcon: void 0
2508
+ }, Ja = {
2509
+ /**
2510
+ * Number to be displayed in badge. Omit for a status light badge.
2511
+ *
2512
+ * Defaults to **null**.
2513
+ */
2514
+ counter: c.number,
2515
+ /**
2516
+ * Max number the badge can display.
2517
+ *
2518
+ * Defaults to **99**.
2519
+ */
2520
+ max: c.number,
2521
+ /**
2522
+ * Theme color of the badge.
2523
+ *
2524
+ * Defaults to **'danger'**.
2525
+ */
2526
+ themeColor: c.oneOf(["primary", "secondary", "danger", "success"])
2527
+ }, eo = {
2528
+ counter: null,
2529
+ max: 99,
2530
+ themeColor: "danger"
2531
+ }, to = ["className", "counter", "max", "themeColor"], Or = function(r, e) {
2532
+ return !r && r !== 0 ? null : r <= e ? r : "".concat(e, "+");
2533
+ }, cn = eo, si = /* @__PURE__ */ Oe(function(n, r) {
2534
+ var e = n.className, t = e === void 0 ? cn.className : e, i = n.counter, o = i === void 0 ? cn.counter : i, l = n.max, u = l === void 0 ? cn.max : l, f = n.themeColor, v = f === void 0 ? cn.themeColor : f, O = Ke(n, to), E = mt(), x = xt(Or(o, u)), P = Et(x, 2), N = P[0], S = P[1];
2535
+ he(function() {
2536
+ return S(Or(o, u));
2537
+ }, [o, u]), qt(r, function() {
2538
+ return E.current;
2539
+ }, []);
2540
+ var R = pe("lmnt", "lmnt-badge", "lmnt-badge--notification", "lmnt-badge--notification-".concat(v), "mdc-typography--caption-bold", (N || N === 0) && "lmnt-badge--notification-badge-counter", t);
2541
+ return /* @__PURE__ */ m.createElement("div", ge({
2542
+ ref: E,
2543
+ className: R
2544
+ }, O), N && N);
2545
+ });
2546
+ si.displayName = "NotificationBadge";
2547
+ si.propTypes = Ja;
2548
+ var no = ["className", "label", "labelType", "leadingIcon", "trailingIcon", "themeColor"], Dt = Za, Yn = /* @__PURE__ */ Oe(function(n, r) {
2549
+ var e = n.className, t = e === void 0 ? Dt.className : e, i = n.label, o = i === void 0 ? Dt.label : i, l = n.labelType, u = l === void 0 ? Dt.labelType : l, f = n.leadingIcon, v = f === void 0 ? Dt.leadingIcon : f, O = n.trailingIcon, E = O === void 0 ? Dt.trailingIcon : O, x = n.themeColor, P = x === void 0 ? Dt.themeColor : x, N = Ke(n, no), S = mt();
2550
+ qt(r, function() {
2551
+ return S.current;
2552
+ }, []);
2553
+ var R = pe("lmnt", "lmnt-badge", "lmnt-badge--label", "lmnt-badge--label-".concat(P), "mdc-typography--caption-bold", u === "icon" && "lmnt-badge--label-icon-as-label", v && "lmnt-badge--label-leading-icon", E && "lmnt-badge--label-trailing-icon", t), F = Re(function() {
2554
+ var q;
2555
+ return u === "icon" || !v ? null : typeof v == "string" ? /* @__PURE__ */ m.createElement(fn, {
2556
+ className: "lmnt-badge-label__leading-icon",
2557
+ icon: v,
2558
+ iconSize: "xsmall"
2559
+ }) : typeof v == "function" ? v({
2560
+ className: "lmnt-icon--xsmall lmnt-badge-label__leading-icon"
2561
+ }) : An(v, {
2562
+ className: pe("lmnt-badge-label__leading-icon", v == null || (q = v.props) === null || q === void 0 ? void 0 : q.className)
2563
+ });
2564
+ }, [u, v]), H = Re(function() {
2565
+ var q;
2566
+ return u === "string" ? o : typeof o == "string" ? /* @__PURE__ */ m.createElement(fn, {
2567
+ className: "lmnt-badge-label-icon",
2568
+ icon: o,
2569
+ iconSize: "xsmall"
2570
+ }) : typeof o == "function" ? o({
2571
+ className: "lmnt-icon--xsmall lmnt-badge-label-icon"
2572
+ }) : An(o, {
2573
+ className: pe("lmnt-badge-label-icon", "lmnt-icon--xsmall", o == null || (q = o.props) === null || q === void 0 ? void 0 : q.className)
2574
+ });
2575
+ }, [u, o]), U = Re(function() {
2576
+ var q;
2577
+ return !E || u === "icon" || F ? null : typeof E == "string" ? /* @__PURE__ */ m.createElement(fn, {
2578
+ className: "lmnt-badge-label__trailing-icon",
2579
+ icon: E,
2580
+ iconSize: "xsmall"
2581
+ }) : typeof E == "function" ? E({
2582
+ className: "lmnt-icon--xsmall lmnt-badge-label__trailing-icon"
2583
+ }) : An(E, {
2584
+ className: pe("lmnt-badge-label__trailing-icon", E == null || (q = E.props) === null || q === void 0 ? void 0 : q.className)
2585
+ });
2586
+ }, [u, E, F]);
2587
+ return /* @__PURE__ */ m.createElement("div", ge({
2588
+ ref: S,
2589
+ className: R
2590
+ }, N), F && F, /* @__PURE__ */ m.createElement("span", {
2591
+ className: "lmnt-badge--label__label"
2592
+ }, H), U && U);
2593
+ });
2594
+ Yn.displayName = "LabelBadge";
2595
+ Yn.propTypes = Qa;
2596
+ var Lr = {}, Nn, Nr;
2597
+ function ro() {
2598
+ if (Nr) return Nn;
2599
+ Nr = 1;
2600
+ var n = /* @__PURE__ */ oa(), r = /* @__PURE__ */ ra(), e = /* @__PURE__ */ ia(), t = /* @__PURE__ */ aa(), i = TypeError, o = "Reduce of empty array with no initial value", l = function(u) {
2601
+ return function(f, v, O, E) {
2602
+ var x = r(f), P = e(x), N = t(x);
2603
+ if (n(v), N === 0 && O < 2) throw new i(o);
2604
+ var S = u ? N - 1 : 0, R = u ? -1 : 1;
2605
+ if (O < 2) for (; ; ) {
2606
+ if (S in P) {
2607
+ E = P[S], S += R;
2608
+ break;
2609
+ }
2610
+ if (S += R, u ? S < 0 : N <= S)
2611
+ throw new i(o);
2612
+ }
2613
+ for (; u ? S >= 0 : N > S; S += R) S in P && (E = v(E, P[S], S, x));
2614
+ return E;
2615
+ };
2616
+ };
2617
+ return Nn = {
2618
+ // `Array.prototype.reduce` method
2619
+ // https://tc39.es/ecma262/#sec-array.prototype.reduce
2620
+ left: l(!1),
2621
+ // `Array.prototype.reduceRight` method
2622
+ // https://tc39.es/ecma262/#sec-array.prototype.reduceright
2623
+ right: l(!0)
2624
+ }, Nn;
2625
+ }
2626
+ var Mn, Mr;
2627
+ function io() {
2628
+ if (Mr) return Mn;
2629
+ Mr = 1;
2630
+ var n = /* @__PURE__ */ da();
2631
+ return Mn = n === "NODE", Mn;
2632
+ }
2633
+ var wr;
2634
+ function ao() {
2635
+ if (wr) return Lr;
2636
+ wr = 1;
2637
+ var n = /* @__PURE__ */ zr(), r = ro().left, e = /* @__PURE__ */ sa(), t = /* @__PURE__ */ la(), i = /* @__PURE__ */ io(), o = !i && t > 79 && t < 83, l = o || !e("reduce");
2638
+ return n({ target: "Array", proto: !0, forced: l }, {
2639
+ reduce: function(f) {
2640
+ var v = arguments.length;
2641
+ return r(this, f, v, v > 1 ? arguments[1] : void 0);
2642
+ }
2643
+ }), Lr;
2644
+ }
2645
+ var wn, Pr;
2646
+ function oo() {
2647
+ if (Pr) return wn;
2648
+ Pr = 1, ao();
2649
+ var n = /* @__PURE__ */ Vr();
2650
+ return wn = n("Array", "reduce"), wn;
2651
+ }
2652
+ var Pn, Rr;
2653
+ function so() {
2654
+ if (Rr) return Pn;
2655
+ Rr = 1;
2656
+ var n = /* @__PURE__ */ Xr(), r = /* @__PURE__ */ oo(), e = Array.prototype;
2657
+ return Pn = function(t) {
2658
+ var i = t.reduce;
2659
+ return t === e || n(e, t) && i === e.reduce ? r : i;
2660
+ }, Pn;
2661
+ }
2662
+ var Rn, Dr;
2663
+ function lo() {
2664
+ if (Dr) return Rn;
2665
+ Dr = 1;
2666
+ var n = /* @__PURE__ */ so();
2667
+ return Rn = n, Rn;
2668
+ }
2669
+ var Dn, Br;
2670
+ function co() {
2671
+ return Br || (Br = 1, Dn = /* @__PURE__ */ lo()), Dn;
2672
+ }
2673
+ var uo = co();
2674
+ const fo = /* @__PURE__ */ zn(uo);
2675
+ var _n = /* @__PURE__ */ ei({}), li = {
2676
+ /**
2677
+ * Name of the key for category ID in `items`.
2678
+ *
2679
+ * Defaults to **'id'**.
2680
+ */
2681
+ categoryIdKey: c.string,
2682
+ /**
2683
+ * Name of the key for category name in `items`.
2684
+ *
2685
+ * Defaults to **'categoryName'**.
2686
+ */
2687
+ categoryNameKey: c.string,
2688
+ /**
2689
+ * List content. Expects a 'ListItem'.
2690
+ *
2691
+ * Defaults to **null**.
2692
+ */
2693
+ children: c.node,
2694
+ /**
2695
+ * Name of the key for group ID in `items`. custom props to apply to each list item.
2696
+ *
2697
+ * Defaults to **'componentProps'**.
2698
+ */
2699
+ componentPropsKey: c.string,
2700
+ /**
2701
+ * Reduced height of list items.
2702
+ *
2703
+ * Defaults to **false**.
2704
+ */
2705
+ dense: c.bool,
2706
+ /**
2707
+ * Variant of divider padding.
2708
+ *
2709
+ * Defaults to **'full'**.
2710
+ */
2711
+ dividerVariant: c.oneOf(["full", "padded", "inset", "insetPadded"]),
2712
+ /**
2713
+ * Name of the key for group ID in `items`.
2714
+ *
2715
+ * Defaults to **'id'**.
2716
+ */
2717
+ groupIdKey: c.string,
2718
+ /**
2719
+ * Name of the key for group name in `items`.
2720
+ *
2721
+ * Defaults to **'groupName'**.
2722
+ */
2723
+ groupNameKey: c.string,
2724
+ /**
2725
+ * Name of the key for the id of the item in `items`.
2726
+ *
2727
+ * Defaults to **'id'**.
2728
+ */
2729
+ itemIdKey: c.string,
2730
+ /**
2731
+ * An array of objects to be rendered as `ListItems`. If `items` is set children will be ignored.
2732
+ *
2733
+ * Defaults to **null**.
2734
+ */
2735
+ items: c.oneOfType([c.arrayOf(c.object), c.arrayOf(c.string)]),
2736
+ /**
2737
+ * Name of the key for `items` in list schema.
2738
+ *
2739
+ * Defaults to **'items'**.
2740
+ */
2741
+ itemsKey: c.string,
2742
+ /**
2743
+ * The type of media that will render in the leading block of the `ListItems`. See README for size constraints. If `leadingBlockType` and `trailingBlockType` are both set to a control type (checkbox, radio or switch) `trailingBlockType` will be ignored.
2744
+ *
2745
+ * Defaults to **undefined**.
2746
+ */
2747
+ leadingBlockType: c.oneOf(["", "avatar", "checkbox", "icon", "image", "lgImage", "radio", "switch", "thumbnail"]),
2748
+ /**
2749
+ * Enables support for lists of navigation links. Each list item will be rendered as an anchor element by default unless overridden via the `component` prop on each list item.
2750
+ *
2751
+ * Defaults to **false**.
2752
+ */
2753
+ navigation: c.bool,
2754
+ /**
2755
+ * Use for a list that does not require interaction.
2756
+ *
2757
+ * Defaults to **false**.
2758
+ */
2759
+ nonInteractive: c.bool,
2760
+ /**
2761
+ * Fired when a List Item is activated.
2762
+ *
2763
+ * Defaults to **null**.
2764
+ */
2765
+ onAction: c.func,
2766
+ /**
2767
+ * Name of the key for `overlineText` in `items`.
2768
+ *
2769
+ * Defaults to **'overlineText'**.
2770
+ */
2771
+ overlineTextKey: c.string,
2772
+ /**
2773
+ * Name of the key for `primaryText` in `items`.
2774
+ *
2775
+ * Defaults to **'primaryText'**.
2776
+ */
2777
+ primaryTextKey: c.string,
2778
+ /**
2779
+ * The aria role of the list. For selection list use `listbox`. For menu list use `menu`. For radio list use `radiogroup`. For checkbox list use `group`. For non-interactive list do not set.
2780
+ *
2781
+ * Defaults to **'listbox'**.
2782
+ */
2783
+ role: c.oneOf(["", "listbox", "menu", "radiogroup", "group"]),
2784
+ /**
2785
+ * Name of the key for `secondaryText` in `items`.
2786
+ *
2787
+ * Defaults to **'secondaryText'**.
2788
+ */
2789
+ secondaryTextKey: c.string,
2790
+ /**
2791
+ * Item or array of selected `ListItems`.
2792
+ *
2793
+ * Defaults to **null**.
2794
+ */
2795
+ selected: c.oneOfType([c.string, c.number, c.object, c.arrayOf(c.string), c.arrayOf(c.number), c.arrayOf(c.object)]),
2796
+ /**
2797
+ * Whether or not to show a divider between list items, groups, or categories.
2798
+ *
2799
+ * Defaults to **true**.
2800
+ */
2801
+ showDivider: c.bool,
2802
+ /**
2803
+ * When true group and category lists will be treated like one list for single selection type lists.
2804
+ *
2805
+ * Defaults to **true**.
2806
+ */
2807
+ singleList: c.bool,
2808
+ /**
2809
+ * Customized background color.
2810
+ *
2811
+ * Defaults to **empty string**.
2812
+ */
2813
+ themeColor: c.oneOf(["", "surface", "primary", "secondary"]),
2814
+ /**
2815
+ * The type of media that will render in the trailing block of the `ListItems`. See README for size constraints. If `leadingBlockType` and `trailingBlockType` are both set to a control type (checkbox, radio or switch) `trailingBlockType` will be ignored.
2816
+ *
2817
+ * Defaults to **undefined**.
2818
+ */
2819
+ trailingBlockType: c.oneOf(["", "avatar", "badge", "checkbox", "icon", "image", "lgImage", "meta", "radio", "switch", "thumbnail"]),
2820
+ /**
2821
+ * When tab behavior is needed inside list items
2822
+ *
2823
+ * Defaults to **null**.
2824
+ */
2825
+ trapTabInteraction: c.bool,
2826
+ /**
2827
+ * Allows keyboard navigation to jump to the top or bottom of the list to enable continuous navigation.
2828
+ *
2829
+ * Defaults to **true**.
2830
+ */
2831
+ wrapFocus: c.bool
2832
+ }, ci = {
2833
+ categoryIdKey: "id",
2834
+ categoryNameKey: "categoryName",
2835
+ children: null,
2836
+ componentPropsKey: "componentProps",
2837
+ dense: !1,
2838
+ dividerVariant: "full",
2839
+ groupIdKey: "id",
2840
+ groupNameKey: "groupName",
2841
+ itemIdKey: "id",
2842
+ items: null,
2843
+ itemsKey: "items",
2844
+ leadingBlockType: void 0,
2845
+ navigation: !1,
2846
+ nonInteractive: !1,
2847
+ onAction: null,
2848
+ overlineTextKey: "overlineText",
2849
+ primaryTextKey: "primaryText",
2850
+ role: "listbox",
2851
+ secondaryTextKey: "secondaryText",
2852
+ selected: null,
2853
+ showDivider: !0,
2854
+ singleList: !0,
2855
+ themeColor: "",
2856
+ trailingBlockType: void 0,
2857
+ trapTabInteraction: null,
2858
+ wrapFocus: !0
2859
+ }, ho = {
2860
+ /**
2861
+ * Variant of the divider padding.
2862
+ *
2863
+ * Defaults to **'full'**.
2864
+ */
2865
+ variant: c.oneOf(["full", "padded", "inset", "insetPadded"])
2866
+ }, po = {
2867
+ variant: "full"
2868
+ }, mo = {
2869
+ /**
2870
+ * Expects one or more List or ListGroupSubHeader.
2871
+ *
2872
+ * Defaults to **null**.
2873
+ */
2874
+ children: c.node
2875
+ }, vo = {
2876
+ children: null
2877
+ }, yo = {}, go = {}, Io = {
2878
+ /**
2879
+ * Expects a string but accepts any valid markup or components.
2880
+ *
2881
+ * Defaults to **null**.
2882
+ */
2883
+ children: c.node,
2884
+ /**
2885
+ * The css class name to be passed through to the component markup.
2886
+ *
2887
+ * Defaults to **undefined**.
2888
+ */
2889
+ className: c.string
2890
+ }, To = {
2891
+ children: null,
2892
+ className: void 0
2893
+ }, _o = {
2894
+ /**
2895
+ * Alternate styling for selected interactive items without a control. Activation represents a status with more permanence (e.g., current page in a navigation list).
2896
+ *
2897
+ * Defaults to **false**.
2898
+ */
2899
+ activated: c.bool,
2900
+ /**
2901
+ * Whether or not the list item's radio or checkbox is selected for radio or checkbox lists.
2902
+ *
2903
+ * Defaults to **false**.
2904
+ */
2905
+ ariaChecked: c.bool,
2906
+ /**
2907
+ * Content to be rendered inside the list item content block. Most often a string, but accepts any valid markup. When using primaryText, secondaryText or overlineText the children will be ignored.
2908
+ *
2909
+ * Defaults to **null**.
2910
+ */
2911
+ children: c.node,
2912
+ /**
2913
+ * Tells list item not to put selected class to add background to the list item.
2914
+ *
2915
+ * Defaults to **false**.
2916
+ */
2917
+ disableHighlight: c.bool,
2918
+ /**
2919
+ * Disable interaction for the ListItem within an interactive List.
2920
+ *
2921
+ * Defaults to **false**.
2922
+ */
2923
+ disabled: c.bool,
2924
+ /**
2925
+ * Increase left padding in list item by 40px
2926
+ *
2927
+ * Defaults to **false**.
2928
+ */
2929
+ indented: c.bool,
2930
+ /**
2931
+ * Used with Select.
2932
+ *
2933
+ * Defaults to **false**.
2934
+ */
2935
+ isChildOption: c.bool,
2936
+ /**
2937
+ * Content to be displayed in the leading block container. See README for types supported. If a string is sent for a control type, it will used for the `name` attribute on the control. For radio type controls, send the same name for every item.
2938
+ *
2939
+ * Defaults to **null**.
2940
+ */
2941
+ leadingBlock: c.node,
2942
+ /**
2943
+ * The type of media that will render in the leading block. See README for size constraints. If `leadingBlockType` is set on the parent List, it will take precedence. If `leadingBlockType` and `trailingBlockType` are both set to a control type (checkbox, radio or switch) `trailingBlockType` will be ignored.
2944
+ *
2945
+ * Defaults to **empty string**.
2946
+ */
2947
+ leadingBlockType: c.oneOf(["", "avatar", "checkbox", "icon", "icon-large", "icon-small", "icon-xsmall", "icon-xlarge", "image", "lgImage", "radio", "switch", "thumbnail"]),
2948
+ /**
2949
+ * A hover style will not be applied.
2950
+ *
2951
+ * Defaults to **false**.
2952
+ */
2953
+ noHover: c.bool,
2954
+ /**
2955
+ * Used within a list that does not require interaction. See `disabled` for disabling an item within an interactive list.
2956
+ *
2957
+ * Defaults to **false**.
2958
+ */
2959
+ nonInteractive: c.bool,
2960
+ /**
2961
+ * Fired when the user clicks the ListItem. Returns the event as the first argument and any specified value as the second argument.
2962
+ *
2963
+ * Defaults to **null**.
2964
+ */
2965
+ onClick: c.func,
2966
+ /**
2967
+ * Fired when the user presses a key down.
2968
+ *
2969
+ * Defaults to **null**.
2970
+ */
2971
+ onKeyPress: c.func,
2972
+ /**
2973
+ * Text that will appear above the standard text.
2974
+ *
2975
+ * Defaults to **null**.
2976
+ */
2977
+ overlineText: c.node,
2978
+ /**
2979
+ * Standard list text.
2980
+ *
2981
+ * Defaults to **null**.
2982
+ */
2983
+ primaryText: c.node,
2984
+ /**
2985
+ * Text that will appear below the standard text.
2986
+ *
2987
+ * Defaults to **null**.
2988
+ */
2989
+ secondaryText: c.node,
2990
+ /**
2991
+ * A selected style will be applied. Selection represents a choice that might change frequently (e.g., option in a list). Required by selected interactive items without a control.
2992
+ *
2993
+ * Defaults to **false**.
2994
+ */
2995
+ selected: c.bool,
2996
+ /**
2997
+ * Component to be rendered as each list item. Normal lists use `li` elements, nav lists use `a` elements. You would use this for example if you want to use a router link component as each list item.
2998
+ *
2999
+ * Defaults to **null**.
3000
+ */
3001
+ tag: c.oneOfType([c.string, c.elementType, c.instanceOf(m.Component)]),
3002
+ /**
3003
+ * Customized background color.
3004
+ *
3005
+ * Defaults to **empty string**.
3006
+ */
3007
+ themeColor: c.oneOf(["", "surface", "primary", "secondary"]),
3008
+ /**
3009
+ * Content to be displayed in the trailing block container. See README for types supported. If a string is sent for a control type, it will used for the `name` attribute on the control. For radio type controls, send the same name for every item.
3010
+ *
3011
+ * Defaults to **null**.
3012
+ */
3013
+ trailingBlock: c.node,
3014
+ /**
3015
+ * The type of media that will render in the trailing block. See README for size constraints. If `trailingBlockType` is set on the parent List, it will take precedence. If `leadingBlockType` and `trailingBlockType` are both set to a control type (checkbox, radio or switch) `trailingBlockType` will be ignored.
3016
+ *
3017
+ * Defaults to **undefined**.
3018
+ */
3019
+ trailingBlockType: c.oneOf(["", "avatar", "badge", "checkbox", "icon", "icon-large", "icon-small", "icon-xsmall", "icon-xlarge", "image", "lgImage", "meta", "radio", "switch", "thumbnail"]),
3020
+ /**
3021
+ * A custom value to be returned as the second onClick argument.
3022
+ *
3023
+ * Defaults to **null**.
3024
+ */
3025
+ value: c.node,
3026
+ /**
3027
+ * Used to adjust the padding of the `ListItem` when used as a category or group header.
3028
+ *
3029
+ * Defaults to **'standard'**.
3030
+ */
3031
+ variant: c.oneOf(["standard", "category", "group"]),
3032
+ /**
3033
+ * Determines the text wrapping mode of the list item: `wrap` will wrap text like normal, `truncate` will truncate text with an ellipsis and `noWrap` will truncate the text by clipping.
3034
+ *
3035
+ * Defaults to **'wrap'**.
3036
+ */
3037
+ wrapMode: c.oneOf(["wrap", "noWrap", "truncate"])
3038
+ }, Eo = {
3039
+ activated: !1,
3040
+ ariaChecked: !1,
3041
+ children: null,
3042
+ disableHighlight: !1,
3043
+ disabled: !1,
3044
+ indented: !1,
3045
+ isChildOption: !1,
3046
+ leadingBlock: null,
3047
+ leadingBlockType: "",
3048
+ noHover: !1,
3049
+ nonInteractive: !1,
3050
+ onClick: null,
3051
+ onKeyPress: null,
3052
+ overlineText: null,
3053
+ primaryText: null,
3054
+ secondaryText: null,
3055
+ selected: !1,
3056
+ tag: null,
3057
+ themeColor: "",
3058
+ trailingBlock: null,
3059
+ trailingBlockType: void 0,
3060
+ value: null,
3061
+ variant: "standard",
3062
+ wrapMode: "wrap"
3063
+ }, xo = {
3064
+ /**
3065
+ * Content to be rendered inside the list item primary text content block. Most often a string, but accepts any valid markup. When using primaryText, secondaryText or overlineText the children will be ignored.
3066
+ *
3067
+ * Defaults to **null**.
3068
+ */
3069
+ children: c.node,
3070
+ /**
3071
+ * Text that will appear above the standard text.
3072
+ *
3073
+ * Defaults to **null**.
3074
+ */
3075
+ overlineText: c.node,
3076
+ /**
3077
+ * Standard list text. `children` may also be used but will require additional styling. Use `primaryText` instead of `children` when using overline or secondary text.
3078
+ *
3079
+ * Defaults to **null**.
3080
+ */
3081
+ primaryText: c.node,
3082
+ /**
3083
+ * Text that will appear below the standard text.
3084
+ *
3085
+ * Defaults to **null**.
3086
+ */
3087
+ secondaryText: c.node
3088
+ }, So = {
3089
+ children: null,
3090
+ overlineText: null,
3091
+ primaryText: null,
3092
+ secondaryText: null
3093
+ }, Ao = {
3094
+ /**
3095
+ * Media or control to be rendered in the List Item's Leading Block
3096
+ *
3097
+ * Defaults to **null**.
3098
+ */
3099
+ children: c.node
3100
+ }, Co = {
3101
+ children: null
3102
+ }, bo = {
3103
+ /**
3104
+ * Expects a string but accepts any valid markup or components.
3105
+ *
3106
+ * Defaults to **null**.
3107
+ */
3108
+ children: c.node
3109
+ }, Oo = {
3110
+ children: null
3111
+ }, Lo = {
3112
+ /**
3113
+ * Expects a string but accepts any valid markup or components.
3114
+ *
3115
+ * Defaults to **null**.
3116
+ */
3117
+ children: c.node
3118
+ }, No = {
3119
+ children: null
3120
+ }, Mo = {
3121
+ /**
3122
+ * Expects a string but accepts any valid markup or components.
3123
+ *
3124
+ * Defaults to **null**.
3125
+ */
3126
+ children: c.node
3127
+ }, wo = {
3128
+ children: null
3129
+ }, Po = {
3130
+ /**
3131
+ * Media, control or text to be rendered in the List Item's Trailing Block
3132
+ *
3133
+ * Defaults to **null**.
3134
+ */
3135
+ children: c.node
3136
+ }, Ro = {
3137
+ children: null
3138
+ }, Do = {
3139
+ /**
3140
+ * The List Items to be rendered in the Lists. If `items` is set children will be ignored.
3141
+ *
3142
+ * Defaults to **null**.
3143
+ */
3144
+ items: c.oneOfType([c.arrayOf(c.object), c.arrayOf(c.string)])
3145
+ }, Bo = {
3146
+ items: null
3147
+ }, $o = {}, Fo = {}, Ko = ["children", "className"], $r = Oo, Qn = /* @__PURE__ */ Oe(function(n, r) {
3148
+ var e = n.children, t = e === void 0 ? $r.children : e, i = n.className, o = i === void 0 ? $r.className : i, l = Ke(n, Ko);
3149
+ return /* @__PURE__ */ m.createElement("span", ge({
3150
+ ref: r,
3151
+ className: pe("lmnt", "mdc-list-item__overline-text", o)
3152
+ }, l), t);
3153
+ });
3154
+ Qn.displayName = "ListItemOverline";
3155
+ Qn.propTypes = bo;
3156
+ var ko = ["children", "className"], Fr = wo, Zn = /* @__PURE__ */ Oe(function(n, r) {
3157
+ var e = n.children, t = e === void 0 ? Fr.children : e, i = n.className, o = i === void 0 ? Fr.className : i, l = Ke(n, ko);
3158
+ return /* @__PURE__ */ m.createElement("span", ge({
3159
+ ref: r,
3160
+ className: pe("lmnt", "mdc-list-item__secondary-text", o)
3161
+ }, l), t);
3162
+ });
3163
+ Zn.displayName = "ListItemSecondaryText";
3164
+ Zn.propTypes = Mo;
3165
+ var Ho = ["children", "className"], Kr = No, Jn = /* @__PURE__ */ Oe(function(n, r) {
3166
+ var e = n.children, t = e === void 0 ? Kr.children : e, i = n.className, o = i === void 0 ? Kr.className : i, l = Ke(n, Ho);
3167
+ return /* @__PURE__ */ m.createElement("span", ge({
3168
+ ref: r,
3169
+ className: pe("lmnt", "mdc-list-item__primary-text", o)
3170
+ }, l), t);
3171
+ });
3172
+ Jn.displayName = "ListItemPrimaryText";
3173
+ Jn.propTypes = Lo;
3174
+ var Uo = ["overlineText", "primaryText", "secondaryText", "children", "className"], un = So, er = /* @__PURE__ */ Oe(function(n, r) {
3175
+ var e = n.overlineText, t = e === void 0 ? un.overlineText : e, i = n.primaryText, o = i === void 0 ? un.primaryText : i, l = n.secondaryText, u = l === void 0 ? un.secondaryText : l;
3176
+ n.children;
3177
+ var f = n.className, v = f === void 0 ? un.children : f, O = Ke(n, Uo);
3178
+ return /* @__PURE__ */ m.createElement("span", ge({
3179
+ ref: r,
3180
+ className: pe("lmnt", "mdc-list-item__content", v)
3181
+ }, O), t && /* @__PURE__ */ m.createElement(Qn, null, t), o && /* @__PURE__ */ m.createElement(Jn, null, o), u && /* @__PURE__ */ m.createElement(Zn, null, u));
3182
+ });
3183
+ er.displayName = "ListItemContent";
3184
+ er.propTypes = xo;
3185
+ var qo = ["children", "className"], kr = Co, tr = /* @__PURE__ */ Oe(function(n, r) {
3186
+ var e = n.children, t = e === void 0 ? kr.children : e, i = n.className, o = i === void 0 ? kr.className : i, l = Ke(n, qo);
3187
+ return /* @__PURE__ */ m.createElement("span", ge({
3188
+ ref: r,
3189
+ className: pe("mdc-list-item__start", o)
3190
+ }, l), t);
3191
+ });
3192
+ tr.displayName = "ListItemLeadingBlock";
3193
+ tr.propTypes = Ao;
3194
+ var jo = ["children", "className"], Hr = Ro, nr = /* @__PURE__ */ Oe(function(n, r) {
3195
+ var e = n.children, t = e === void 0 ? Hr.children : e, i = n.className, o = i === void 0 ? Hr.className : i, l = Ke(n, jo);
3196
+ return /* @__PURE__ */ m.createElement("span", ge({
3197
+ ref: r,
3198
+ className: pe("lmnt", "mdc-list-item__end", o)
3199
+ }, l), t);
3200
+ });
3201
+ nr.displayName = "ListItemTrailingBlock";
3202
+ nr.propTypes = Po;
3203
+ var Go = ["activated", "ariaChecked", "children", "className", "disableHighlight", "disabled", "id", "indented", "isChildOption", "leadingBlock", "leadingBlockType", "noHover", "nonInteractive", "onClick", "onKeyPress", "onMouseMove", "onMouseOver", "overlineText", "primaryText", "secondaryText", "selected", "tag", "themeColor", "trailingBlock", "trailingBlockType", "value", "variant", "wrapMode"], Q = Eo, Jt = /* @__PURE__ */ Oe(function(n, r) {
3204
+ var e = n.activated, t = e === void 0 ? Q.activated : e, i = n.ariaChecked, o = i === void 0 ? Q.ariaChecked : i, l = n.children, u = l === void 0 ? Q.children : l, f = n.className, v = f === void 0 ? Q.className : f, O = n.disableHighlight, E = O === void 0 ? Q.disableHighlight : O, x = n.disabled, P = x === void 0 ? Q.disabled : x, N = n.id, S = N === void 0 ? Q.id : N, R = n.indented, F = R === void 0 ? Q.indented : R, H = n.isChildOption, U = H === void 0 ? Q.isChildOption : H, q = n.leadingBlock, G = q === void 0 ? Q.leadingBlock : q, Le = n.leadingBlockType, Ee = Le === void 0 ? Q.leadingBlockType : Le, qe = n.noHover, I = qe === void 0 ? Q.noHover : qe, z = n.nonInteractive, y = z === void 0 ? Q.nonInteractive : z, ue = n.onClick, K = ue === void 0 ? Q.onClick : ue, ke = n.onKeyPress, je = ke === void 0 ? Q.onKeyPress : ke, De = n.onMouseMove, V = De === void 0 ? Q.onMouseMove : De, Be = n.onMouseOver, Ie = Be === void 0 ? Q.onMouseOver : Be, Qe = n.overlineText, te = Qe === void 0 ? Q.overlineText : Qe, Ze = n.primaryText, Ne = Ze === void 0 ? Q.primaryText : Ze, Je = n.secondaryText, L = Je === void 0 ? Q.secondaryText : Je, ze = n.selected, xe = ze === void 0 ? Q.selected : ze, me = n.tag, $ = me === void 0 ? Q.tag : me, Ve = n.themeColor, Z = Ve === void 0 ? Q.themeColor : Ve, Ge = n.trailingBlock, se = Ge === void 0 ? Q.trailingBlock : Ge, Xe = n.trailingBlockType, Se = Xe === void 0 ? Q.trailingBlockType : Xe, et = n.value, tt = et === void 0 ? Q.value : et, lt = n.variant, D = lt === void 0 ? Q.variant : lt, W = n.wrapMode, ve = W === void 0 ? Q.wrapMode : W, $e = Ke(n, Go), Me = mt(), Ae = xt("mdc-list-item--with-one-line"), we = Et(Ae, 2), We = we[0], A = we[1], B = Tn(_n), ye = B.leadingBlockType || Ee, ne = B.trailingBlockType || Se, j = Ne || u, rt = Re(
3205
+ function() {
3206
+ return B.role !== "group" ? Ie : void 0;
3207
+ },
3208
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3209
+ []
3210
+ ), dt = Re(
3211
+ function() {
3212
+ return B.role !== "group" ? V : void 0;
3213
+ },
3214
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3215
+ []
3216
+ ), de = Re(function() {
3217
+ return D !== "standard" ? "h3" : $ || (B.navigation ? "a" : "li");
3218
+ }, [D, B.navigation, $]);
3219
+ he(function() {
3220
+ Ne && te && L ? A("mdc-list-item--with-three-lines") : (Ne && L || te && L) && A("mdc-list-item--with-two-lines");
3221
+ }, [Ne, te, L]);
3222
+ var Ye = function(M, X, at) {
3223
+ return M === "radiogroup" || X === "radio" || at === "radio" ? "radio" : M === "group" || X === "switch" || X === "checkbox" || at === "switch " || at === "checkbox" ? "checkbox" : M === "listbox" ? "option" : M === "menu" ? "menuItem" : null;
3224
+ }, Te = _e(function(Ce) {
3225
+ !B.nonInteractive && !P && K?.(Ce, tt);
3226
+ }, [B.nonInteractive, P, K, tt]), h = function(M, X, at, St, Pt, vt) {
3227
+ switch (M) {
3228
+ case "checkbox":
3229
+ return vt ? null : !X || typeof X == "string" ? /* @__PURE__ */ m.createElement(Ia, {
3230
+ hideLabel: !0,
3231
+ label: at,
3232
+ checked: St
3233
+ }) : X;
3234
+ case "icon":
3235
+ return typeof X == "string" ? /* @__PURE__ */ m.createElement(fn, {
3236
+ icon: X
3237
+ }) : X;
3238
+ case "radio":
3239
+ return vt ? null : !X || typeof X == "string" ? /* @__PURE__ */ m.createElement(ga, {
3240
+ hideLabel: !0,
3241
+ label: at,
3242
+ name: X || Pt,
3243
+ checked: St
3244
+ }) : X;
3245
+ case "switch":
3246
+ return vt ? null : !X || typeof X == "string" ? /* @__PURE__ */ m.createElement(Ta, {
3247
+ hideLabel: !0,
3248
+ label: at
3249
+ }) : X;
3250
+ case "badge":
3251
+ return typeof X == "string" ? /* @__PURE__ */ m.createElement(Yn, {
3252
+ label: X
3253
+ }) : X;
3254
+ default:
3255
+ return M ? X : null;
3256
+ }
3257
+ }, T = Re(function() {
3258
+ var Ce = ye;
3259
+ return h(Ce, G, j, o, B.randomId, !1);
3260
+ }, [ye, G, j, o, B.randomId]), b = Re(function() {
3261
+ var Ce = B.trailingBlockType || Se, M = ye === "checkbox" || ye === "radio" || ye === "switch";
3262
+ return h(Ce, se, j, o, B.randomId, M);
3263
+ }, [o, j, ye, B.randomId, B.trailingBlockType, se, Se]), _ = function(M, X) {
3264
+ var at, St, Pt, vt;
3265
+ switch (X) {
3266
+ case "avatar":
3267
+ return "mdc-list-item--with-".concat(M, "-avatar");
3268
+ case "checkbox":
3269
+ return "mdc-list-item--with-".concat(M, "-checkbox");
3270
+ case "icon":
3271
+ return "mdc-list-item--with-".concat(M, "-icon");
3272
+ case "icon-large":
3273
+ return $t(at = "mdc-list-item--with-".concat(M, "-icon mdc-list-item--with-")).call(at, M, "-icon-large");
3274
+ case "icon-xlarge":
3275
+ return $t(St = "mdc-list-item--with-".concat(M, "-icon mdc-list-item--with-")).call(St, M, "-icon-xlarge");
3276
+ case "icon-small":
3277
+ return $t(Pt = "mdc-list-item--with-".concat(M, "-icon mdc-list-item--with-")).call(Pt, M, "-icon-small");
3278
+ case "icon-xsmall":
3279
+ return $t(vt = "mdc-list-item--with-".concat(M, "-icon mdc-list-item--with-")).call(vt, M, "-icon-xsmall");
3280
+ case "image":
3281
+ return "mdc-list-item--with-".concat(M, "-image");
3282
+ case "radio":
3283
+ return "mdc-list-item--with-".concat(M, "-radio");
3284
+ case "switch":
3285
+ return "mdc-list-item--with-".concat(M, "-switch");
3286
+ case "thumbnail":
3287
+ return "mdc-list-item--with-".concat(M, "-thumbnail");
3288
+ case "lgImage":
3289
+ return "mdc-list-item--with-".concat(M, "-video");
3290
+ case "badge":
3291
+ return "mdc-list-item--with-".concat(M, "-badge");
3292
+ default:
3293
+ return null;
3294
+ }
3295
+ }, g = Re(function() {
3296
+ var Ce;
3297
+ if (!D || D === "standard") {
3298
+ var M = _("leading", ye), X = _("trailing", ne);
3299
+ Ce = pe(["mdc-list-item", "lmnt-theme-".concat(Z, "-bg"), We, (B.nonInteractive || y) && "mdc-list-item--non-interactive", M, X]);
3300
+ }
3301
+ return Ce;
3302
+ }, [D, ye, ne, Z, We, B.nonInteractive, y]), k = pe(["lmnt", g, (!B.nonInteractive || y) && B.navigation && (o || t) && "mdc-list-item--activated", (!B.nonInteractive || y) && (!E || U) && (o || xe) && "mdc-list-item--selected", (B.nonInteractive || I || y) && "lmnt-list-item__no-hover", F && "lmnt-list-item--indented", P && "mdc-list-item--disabled", ve === "truncate" && "lmnt-list-item--truncate", ve === "noWrap" && "lmnt-list-item--no-wrap", ve === "wrap" && "lmnt-list-item--wrap ", D === "group" && "mdc-list-group__subheader lmnt-list-group__subheader", D === "category" && "lmnt-list-group__category-header", v]), J = Ye(B.role, ye, ne);
3303
+ qt(r, function() {
3304
+ return Me.current;
3305
+ }, []);
3306
+ var Y = !!(Ne || u), ct = Y ? void 0 : 0, it = $e["aria-label"] || (Y ? void 0 : "List item");
3307
+ return /* @__PURE__ */ m.createElement(ya, {
3308
+ componentRef: Me
3309
+ }, /* @__PURE__ */ m.createElement(de, ge({
3310
+ id: S,
3311
+ "aria-checked": o,
3312
+ ref: Me,
3313
+ role: J,
3314
+ onClick: Te,
3315
+ className: k,
3316
+ onKeyPress: je,
3317
+ onMouseMove: dt,
3318
+ onMouseOver: rt,
3319
+ tabIndex: ct,
3320
+ "aria-label": it
3321
+ }, $e), /* @__PURE__ */ m.createElement("span", {
3322
+ className: "mdc-list-item__ripple"
3323
+ }), D === "standard" && T && /* @__PURE__ */ m.createElement(tr, null, T), D !== "standard" && D === "category" && /* @__PURE__ */ m.createElement(Un, {
3324
+ level: 1
3325
+ }, j), D !== "standard" && D === "group" && B.listType === "group" && /* @__PURE__ */ m.createElement(Un, {
3326
+ level: 2
3327
+ }, j), D !== "standard" && D === "group" && B.listType === "category" && /* @__PURE__ */ m.createElement(_a, null, j), D === "standard" && /* @__PURE__ */ m.createElement(er, {
3328
+ primaryText: j,
3329
+ overlineText: D === "standard" && te,
3330
+ secondaryText: D === "standard" && L
3331
+ }), D === "standard" && b && /* @__PURE__ */ m.createElement(nr, null, b)));
3332
+ });
3333
+ Jt.displayName = "ListItem";
3334
+ Jt.propTypes = _o;
3335
+ var zo = ["variant", "className"], Ur = po, rr = /* @__PURE__ */ Oe(function(n, r) {
3336
+ var e = n.variant, t = e === void 0 ? Ur.variant : e, i = n.className, o = i === void 0 ? Ur.className : i, l = Ke(n, zo), u = Tn(_n), f = u.leadingBlockType, v = u.navigation, O = Re(function() {
3337
+ return v ? "hr" : "li";
3338
+ }, [v]);
3339
+ return /* @__PURE__ */ m.createElement(O, ge({
3340
+ ref: r,
3341
+ role: "separator",
3342
+ className: pe("mdc-list-divider", "lmnt-list-divider", (t === "padded" || t === "insetPadded") && "lmnt-list-divider--with-padding", (t === "insetPadded" || t === "inset") && "lmnt-list-divider--with-inset", f === "avatar" && " mdc-list-divider--with-leading-avatar", f === "checkbox" && " mdc-list-divider--with-leading-checkbox", f === "icon" && " mdc-list-divider--with-leading-icon", f === "image" && " mdc-list-divider--with-leading-image", f === "largeImage" && " mdc-list-divider--with-leading-video", f === "radio" && " mdc-list-divider--with-leading-radio", f === "switch" && " mdc-list-divider--with-leading-switch", f === "thumbnail" && " mdc-list-divider--with-leading-thumbnail", o)
3343
+ }, l));
3344
+ });
3345
+ rr.displayName = "ListDivider";
3346
+ rr.propTypes = ho;
3347
+ var Xt = Bo, vn = /* @__PURE__ */ Oe(function(n, r) {
3348
+ var e = n.children, t = e === void 0 ? Xt.children : e, i = n.items, o = i === void 0 ? Xt.items : i, l = n.group, u = l === void 0 ? Xt.group : l, f = n.selectedIndex, v = f === void 0 ? Xt.selectedIndex : f, O = n.itemIdKey, E = O === void 0 ? Xt.itemIdKey : O, x = Tn(_n), P = x.showDivider, N = x.dividerVariant, S = x.categoryNameKey, R = x.secondaryTextKey, F = x.overlineTextKey, H = x.groupNameKey, U = x.primaryTextKey, q = x.role, G = x.singleList, Le = x.componentPropsKey, Ee = xt(function() {
3349
+ return Gn();
3350
+ }), qe = Et(Ee, 1), I = qe[0];
3351
+ return Zt(o) ? o == null ? void 0 : dn(o).call(o, function(z, y) {
3352
+ var ue = z[U];
3353
+ !ue && typeof z == "string" && (ue = z);
3354
+ var K = z[R], ke = z[F], je = Fn(z, H, S), De;
3355
+ q === "group" ? Zt(v) && v.length && (De = Ea(v).call(v, y) !== -1) : De = v === y;
3356
+ var V, Be;
3357
+ (!z.leadingBlock || typeof z.trailingBlock != "string") && q === "radiogroup" && !G ? V = I : V = z.leadingBlock, (!z.trailingBlock || typeof z.trailingBlock != "string") && q === "radiogroup" && !G ? Be = I : Be = z.trailingBlock;
3358
+ var Ie = z[Le] || {};
3359
+ return /* @__PURE__ */ m.createElement(kn, {
3360
+ key: z[E] || ue || K || ke
3361
+ }, /* @__PURE__ */ m.createElement(Jt, ge({
3362
+ ref: r,
3363
+ key: ue,
3364
+ tabIndex: y === 0 ? 0 : -1,
3365
+ variant: je,
3366
+ secondaryText: K,
3367
+ primaryText: ue,
3368
+ overlineText: ke,
3369
+ leadingBlock: V,
3370
+ trailingBlock: Be,
3371
+ ariaChecked: De
3372
+ }, Ie)), !u && P && o.length > y + 1 && /* @__PURE__ */ m.createElement(rr, {
3373
+ variant: N
3374
+ }));
3375
+ }) : t;
3376
+ });
3377
+ vn.displayName = "ListItemsList";
3378
+ vn.propTypes = Do;
3379
+ var Vo = ["className"], Xo = go, yn = /* @__PURE__ */ Oe(function(n, r) {
3380
+ var e = n.className, t = e === void 0 ? Xo.className : e, i = Ke(n, Vo);
3381
+ return /* @__PURE__ */ m.createElement("hr", ge({
3382
+ ref: r,
3383
+ className: pe("lmnt", "lmnt-list-divider", "mdc-list-divider", t)
3384
+ }, i));
3385
+ });
3386
+ yn.displayName = "ListGroupDivider";
3387
+ yn.propTypes = yo;
3388
+ var Wo = ["categoryId", "categoryIdKey", "categoryNameKey", "children", "className", "componentPropsKey", "customRef", "dense", "dividerVariant", "groupId", "groupIdKey", "groupItems", "groupNameKey", "groupSelectedIndex", "inMenu", "itemIdKey", "items", "itemsKey", "leadingBlockType", "listType", "navigation", "nonInteractive", "onAction", "overlineTextKey", "primaryTextKey", "role", "roleToUse", "secondaryTextKey", "selected", "showDivider", "singleList", "themeColor", "trailingBlockType", "wrapFocus", "trapTabInteraction"];
3389
+ function qr(n, r) {
3390
+ var e = Wr(n);
3391
+ if (pn) {
3392
+ var t = pn(n);
3393
+ r && (t = Jr(t).call(t, function(i) {
3394
+ return In(n, i).enumerable;
3395
+ })), e.push.apply(e, t);
3396
+ }
3397
+ return e;
3398
+ }
3399
+ function Bt(n) {
3400
+ for (var r = 1; r < arguments.length; r++) {
3401
+ var e, t, i = arguments[r] != null ? arguments[r] : {};
3402
+ r % 2 ? wt(e = qr(Object(i), !0)).call(e, function(o) {
3403
+ Yr(n, o, i[o]);
3404
+ }) : hn ? Qr(n, hn(i)) : wt(t = qr(Object(i))).call(t, function(o) {
3405
+ Zr(n, o, In(i, o));
3406
+ });
3407
+ }
3408
+ return n;
3409
+ }
3410
+ var ie = ci, Kt = /* @__PURE__ */ Oe(function(n, r) {
3411
+ var e = n.categoryId, t = e === void 0 ? ie.categoryId : e, i = n.categoryIdKey, o = i === void 0 ? ie.categoryIdKey : i, l = n.categoryNameKey, u = l === void 0 ? ie.categoryNameKey : l, f = n.children, v = f === void 0 ? ie.children : f, O = n.className, E = O === void 0 ? ie.className : O;
3412
+ n.componentPropsKey;
3413
+ var x = n.customRef, P = x === void 0 ? ie.customRef : x, N = n.dense, S = N === void 0 ? ie.dense : N;
3414
+ n.dividerVariant;
3415
+ var R = n.groupId, F = R === void 0 ? ie.groupId : R, H = n.groupIdKey, U = H === void 0 ? ie.groupIdKey : H;
3416
+ n.groupItems;
3417
+ var q = n.groupNameKey, G = q === void 0 ? ie.groupNameKey : q;
3418
+ n.groupSelectedIndex;
3419
+ var Le = n.inMenu, Ee = Le === void 0 ? ie.inMenu : Le, qe = n.itemIdKey, I = qe === void 0 ? ie.itemIdKey : qe, z = n.items, y = z === void 0 ? ie.items : z, ue = n.itemsKey, K = ue === void 0 ? ie.itemsKey : ue, ke = n.leadingBlockType, je = ke === void 0 ? ie.leadingBlockType : ke, De = n.listType, V = De === void 0 ? ie.listType : De, Be = n.navigation, Ie = Be === void 0 ? ie.navigation : Be, Qe = n.nonInteractive, te = Qe === void 0 ? ie.nonInteractive : Qe, Ze = n.onAction, Ne = Ze === void 0 ? ie.onAction : Ze;
3420
+ n.overlineTextKey;
3421
+ var Je = n.primaryTextKey, L = Je === void 0 ? ie.primaryTextKey : Je;
3422
+ n.role;
3423
+ var ze = n.roleToUse, xe = ze === void 0 ? ie.roleToUse : ze;
3424
+ n.secondaryTextKey, n.selected, n.showDivider;
3425
+ var me = n.singleList, $ = me === void 0 ? ie.singleList : me, Ve = n.themeColor, Z = Ve === void 0 ? ie.themeColor : Ve, Ge = n.trailingBlockType, se = Ge === void 0 ? ie.trailingBlockType : Ge, Xe = n.wrapFocus, Se = Xe === void 0 ? ie.wrapFocus : Xe, et = n.trapTabInteraction, tt = et === void 0 ? ie.trapTabInteraction : et, lt = Ke(n, Wo), D = mt(P || null), W = mt(), ve = _e(function(h, T, b) {
3426
+ var _ = h[G], g = h[K][b];
3427
+ return {
3428
+ selectedGroup: _,
3429
+ selectedGroupIndex: T,
3430
+ selectedGroupId: h[U] || _,
3431
+ selectedIndex: b,
3432
+ selectedItem: typeof g == "string" ? g : g[I] || g[L]
3433
+ };
3434
+ }, [U, G, I, K, L]), $e = _e(function(h, T) {
3435
+ return mn(T).call(T, function(b) {
3436
+ return h === b[U] || h === b[G];
3437
+ });
3438
+ }, [U, G]), Me = _e(function(h, T) {
3439
+ return mn(T).call(T, function(b) {
3440
+ return h === b[o] || h === b[u];
3441
+ });
3442
+ }, [o, u]), Ae = _e(function(h, T, b) {
3443
+ var _ = $e(T, h);
3444
+ if (_ === -1) return {};
3445
+ var g = y[_];
3446
+ return ve(g, _, b);
3447
+ }, [ve, $e, y]), we = _e(function(h, T) {
3448
+ var b = h[u];
3449
+ return {
3450
+ selectedCategory: b,
3451
+ selectedCategoryIndex: T,
3452
+ selectedCategoryId: h[o] || b
3453
+ };
3454
+ }, [o, u]), We = _e(function(h, T, b) {
3455
+ var _ = Me(h, y);
3456
+ if (_ === -1) return {};
3457
+ var g = y[_];
3458
+ return Bt(Bt({}, we(g, _)), Ae(g[K], T, b));
3459
+ }, [we, Me, Ae, y, K]), A = _e(function(h, T, b) {
3460
+ return V === "category" ? We(b, T, h) : V === "group" ? Ae(y, T, h) : y && y[h] && y[h][I] !== void 0 ? y[h][I] : h;
3461
+ }, [V, We, Ae, y, I]), B = _e(function(h, T, b) {
3462
+ var _ = Me(h, y);
3463
+ if (_ === -1) return [];
3464
+ var g = y[_], k = g[K], J = $e(T, k);
3465
+ if (J === -1) return [];
3466
+ var Y = k[J];
3467
+ return Y[K].length <= b ? [] : [Bt(Bt({}, we(g, _)), ve(Y, J, b))];
3468
+ }, [we, ve, Me, $e, y, K]), ye = _e(function(h, T) {
3469
+ var b = [], _ = $e(h, y);
3470
+ if (_ === -1) return [];
3471
+ var g = y[_];
3472
+ return b.push(ve(g, _, T)), b;
3473
+ }, [ve, $e, y]), ne = _e(function(h, T, b) {
3474
+ var _ = fo(h).call(h, function(g, k) {
3475
+ if (V === "simple" && g.push(y[k][I] || y[k]), V === "category") {
3476
+ var J;
3477
+ Kn(g).apply(g, $t(J = [g.length - 1, 0]).call(J, $n(B(b, T, k))));
3478
+ }
3479
+ if (V === "group") {
3480
+ var Y, ct = ye(T, k);
3481
+ Kn(g).apply(g, $t(Y = [g.length - 1, 0]).call(Y, $n(ct)));
3482
+ }
3483
+ return g;
3484
+ }, []);
3485
+ return _;
3486
+ }, [B, ye, I, y, V]), j = _e(function(h, T, b) {
3487
+ var _ = Me(h, y);
3488
+ if (_ === -1) return {};
3489
+ var g = y[_], k = g[K], J = $e(T, k);
3490
+ if (J === -1) return {};
3491
+ var Y = k[J];
3492
+ return Bt(Bt({}, we(g, _)), ve(Y, J, b));
3493
+ }, [we, ve, Me, $e, y, K]), rt = _e(function(h) {
3494
+ return y && h > -1 && y[h] && y[h][I] !== void 0 ? y[h][I] : h;
3495
+ }, [I, y]), dt = _e(function(h, T, b) {
3496
+ return V === "category" ? j(h, T, b) : V === "group" ? Ae(y, T, b) : rt(b);
3497
+ }, [rt, j, Ae, y, V]), de = _e(
3498
+ function(h, T, b) {
3499
+ return xe === "group" ? ne(h, T, b) : $ ? dt(b, T, h) : rt(h);
3500
+ },
3501
+ // eslint-disable-next-line react-hooks/exhaustive-deps
3502
+ [U, G, I, y, K, V, L, xe, $, o, u]
3503
+ ), Ye = _e(function(h) {
3504
+ var T;
3505
+ Ne && Ne(A(h.detail.index, F, t), de((T = W.current) === null || T === void 0 ? void 0 : T.foundation.getSelectedIndex(), F, t), F, t, h);
3506
+ }, [t, Ne, A, de, F]);
3507
+ he(function() {
3508
+ if (!(Ee || te)) {
3509
+ if (W.current = ri.attachTo(D.current), tt) {
3510
+ var h;
3511
+ wt(h = W.current.listElements).call(h, function(T) {
3512
+ T.setAttribute("tabindex", "0");
3513
+ });
3514
+ }
3515
+ return function() {
3516
+ var T;
3517
+ (T = W.current) === null || T === void 0 || T.destroy();
3518
+ };
3519
+ }
3520
+ }, [Ee, te, W, tt]), he(function() {
3521
+ var h;
3522
+ if (!te)
3523
+ return (h = W.current) === null || h === void 0 || h.listen("MDCList:action", Ye), function() {
3524
+ var T;
3525
+ (T = W.current) === null || T === void 0 || T.unlisten("MDCList:action", Ye);
3526
+ };
3527
+ }, [Ye, te]), he(function() {
3528
+ W.current && (W.current.wrapFocus = Se);
3529
+ }, [Se]), he(function() {
3530
+ var h, T;
3531
+ if (te) {
3532
+ var b;
3533
+ (b = W.current) === null || b === void 0 || b.foundation.setSingleSelection(!1);
3534
+ return;
3535
+ }
3536
+ var _ = xe === "listbox" || xe === "radiogroup";
3537
+ (h = W.current) === null || h === void 0 || h.foundation.setSingleSelection(_), xe && !_ && ((T = W.current) === null || T === void 0 ? void 0 : T.foundation.getSelectedIndex()) === -1 && (W.current.foundation.isCheckboxList_ = !0, W.current.foundation.setSelectedIndex([])), _ && W.current && (W.current.foundation.isCheckboxList_ = !1);
3538
+ }, [xe, te]);
3539
+ var Te = Ie ? "nav" : "ul";
3540
+ return qt(r, function() {
3541
+ return D.current;
3542
+ }, []), /* @__PURE__ */ m.createElement(Te, ge({
3543
+ "aria-multiselectable": je === "checkbox" || se === "checkbox" || je === "switch" || se === "switch" || xe === "group",
3544
+ "data-evolution": "true",
3545
+ ref: D,
3546
+ role: xe,
3547
+ "aria-orientation": "vertical",
3548
+ className: pe("lmnt", "lmnt-list", "mdc-list", "lmnt-theme-".concat(Z, "-bg"), S && "lmnt-list--dense", V === "category" && "lmnt-nested-list", E)
3549
+ }, lt), v);
3550
+ });
3551
+ Kt.displayName = "ListRoot";
3552
+ Kt.propTypes = li;
3553
+ var Bn = Fo, gn = /* @__PURE__ */ Oe(function(n, r) {
3554
+ var e = n.children, t = e === void 0 ? Bn.children : e, i = n.className, o = i === void 0 ? Bn.className : i, l = n.variant, u = l === void 0 ? Bn.variant : l;
3555
+ return u === "group" ? /* @__PURE__ */ m.createElement("div", {
3556
+ ref: r,
3557
+ className: pe("mdc-list-group", o)
3558
+ }, t) : u === "category" ? /* @__PURE__ */ m.createElement("div", {
3559
+ ref: r,
3560
+ className: pe("lmnt-list-category", o)
3561
+ }, t) : /* @__PURE__ */ m.createElement(m.Fragment, null, t);
3562
+ });
3563
+ gn.displayName = "ListWrapper";
3564
+ gn.propTypes = $o;
3565
+ var Yo = ["categoryIdKey", "categoryNameKey", "children", "className", "componentPropsKey", "customRef", "dense", "dividerVariant", "groupIdKey", "groupNameKey", "itemIdKey", "items", "itemsKey", "leadingBlockType", "listType", "multiSelect", "navigation", "nonInteractive", "onAction", "overlineTextKey", "primaryTextKey", "role", "secondaryTextKey", "selected", "showDivider", "singleList", "themeColor", "trailingBlockType", "wrapFocus"], ee = ci, ui = /* @__PURE__ */ Oe(function(n, r) {
3566
+ var e = n.categoryIdKey, t = e === void 0 ? ee.categoryIdKey : e, i = n.categoryNameKey, o = i === void 0 ? ee.categoryNameKey : i, l = n.children, u = l === void 0 ? ee.children : l, f = n.className, v = f === void 0 ? ee.className : f, O = n.componentPropsKey, E = O === void 0 ? ee.componentPropsKey : O, x = n.customRef, P = x === void 0 ? ee.customRef : x, N = n.dense, S = N === void 0 ? ee.dense : N, R = n.dividerVariant, F = R === void 0 ? ee.dividerVariant : R, H = n.groupIdKey, U = H === void 0 ? ee.groupIdKey : H, q = n.groupNameKey, G = q === void 0 ? ee.groupNameKey : q, Le = n.itemIdKey, Ee = Le === void 0 ? ee.itemIdKey : Le, qe = n.items, I = qe === void 0 ? ee.items : qe, z = n.itemsKey, y = z === void 0 ? ee.itemsKey : z, ue = n.leadingBlockType, K = ue === void 0 ? ee.leadingBlockType : ue, ke = n.listType, je = ke === void 0 ? ee.listType : ke;
3567
+ n.multiSelect;
3568
+ var De = n.navigation, V = De === void 0 ? ee.navigation : De, Be = n.nonInteractive, Ie = Be === void 0 ? ee.nonInteractive : Be, Qe = n.onAction, te = Qe === void 0 ? ee.onAction : Qe, Ze = n.overlineTextKey, Ne = Ze === void 0 ? ee.overlineTextKey : Ze, Je = n.primaryTextKey, L = Je === void 0 ? ee.primaryTextKey : Je, ze = n.role, xe = ze === void 0 ? ee.role : ze, me = n.secondaryTextKey, $ = me === void 0 ? ee.secondaryTextKey : me, Ve = n.selected, Z = Ve === void 0 ? ee.selected : Ve, Ge = n.showDivider, se = Ge === void 0 ? ee.showDivider : Ge, Xe = n.singleList, Se = Xe === void 0 ? ee.singleList : Xe, et = n.themeColor, tt = et === void 0 ? ee.themeColor : et, lt = n.trailingBlockType, D = lt === void 0 ? ee.trailingBlockType : lt;
3569
+ n.wrapFocus;
3570
+ var W = Ke(n, Yo), ve = mt(P || null);
3571
+ qt(r, function() {
3572
+ return ve.current;
3573
+ }, []);
3574
+ var $e = xt(Z), Me = Et($e, 2), Ae = Me[0], we = Me[1], We = xt(function() {
3575
+ return Gn();
3576
+ }), A = Et(We, 1), B = A[0], ye = Tn(ai), ne = ye.inMenu;
3577
+ he(function() {
3578
+ I && I.length > 0 && u && fa("List: Items should not be used with children. If both are sent children will be ignored.");
3579
+ }, [I, u]);
3580
+ var j = Re(function() {
3581
+ return Zt(I) && I[0] && Sn(I[0]) === "object" && I[0][o] ? "category" : Zt(I) && I[0] && Sn(I[0]) === "object" && I[0][G] ? "group" : je || "simple";
3582
+ }, [o, G, I, je]), rt = xt(function() {
3583
+ return vr({
3584
+ nonInteractive: Ie,
3585
+ leadingBlockType: K,
3586
+ trailingBlockType: D,
3587
+ role: xe
3588
+ });
3589
+ }), dt = Et(rt, 2), de = dt[0], Ye = dt[1];
3590
+ he(function() {
3591
+ Ye(vr({
3592
+ leadingBlockType: K,
3593
+ trailingBlockType: D,
3594
+ nonInteractive: Ie,
3595
+ role: xe
3596
+ }));
3597
+ }, [K, D, Ie, xe]);
3598
+ var Te = _e(function(_, g) {
3599
+ if (te && de)
3600
+ if (j === "simple")
3601
+ te(_, g), we(g);
3602
+ else if (Se)
3603
+ if (de !== "group")
3604
+ te(_, g);
3605
+ else {
3606
+ if (!Ae) {
3607
+ we(g), te(_, g);
3608
+ return;
3609
+ }
3610
+ var k = $n(Ae), J = mn(Ae).call(Ae, function(Y) {
3611
+ return j === "category" ? Y.selectedCategoryId === _.selectedCategoryId && Y.selectedGroupId === _.selectedGroupId && Y.selectedItem === _.selectedItem : Y.selectedGroupId === _.selectedGroupId && Y.selectedItem === _.selectedItem;
3612
+ });
3613
+ if (J !== -1) {
3614
+ Kn(k).call(k, J, 1), we(k), te(_, k);
3615
+ return;
3616
+ }
3617
+ k.push(_), we(k), te(_, k);
3618
+ }
3619
+ else
3620
+ te(_, g);
3621
+ }, [Ae, j, te, de, Se]), h = _e(function(_, g, k, J, Y, ct) {
3622
+ var it = g[G];
3623
+ if (!it) return null;
3624
+ var Ce = Fn(g, G, o), M = g[U] || it, X = ha(k, ct, de, Se ? Z : Z[M], Se);
3625
+ return /* @__PURE__ */ m.createElement(kn, {
3626
+ key: M
3627
+ }, /* @__PURE__ */ m.createElement(Jt, {
3628
+ variant: Ce,
3629
+ primaryText: it
3630
+ }), /* @__PURE__ */ m.createElement(_, ge({
3631
+ inMenu: ne,
3632
+ ref: ve,
3633
+ categoryId: Y,
3634
+ groupId: M,
3635
+ itemsKey: y,
3636
+ primaryTextKey: L,
3637
+ onAction: Te,
3638
+ showDivider: se,
3639
+ className: v,
3640
+ dense: S,
3641
+ items: I,
3642
+ leadingBlockType: K,
3643
+ listType: j,
3644
+ roleToUse: de,
3645
+ trailingBlockType: D,
3646
+ groupNameKey: G,
3647
+ groupIdKey: U,
3648
+ categoryNameKey: o,
3649
+ selected: Z,
3650
+ groupItems: g[y],
3651
+ groupSelectedIndex: X,
3652
+ componentPropsKey: E
3653
+ }, W), /* @__PURE__ */ m.createElement(vn, {
3654
+ items: g[y],
3655
+ selectedIndex: X,
3656
+ group: !0
3657
+ }), J && I.length > k + 1 && /* @__PURE__ */ m.createElement(yn, null)));
3658
+ }, [o, Se, v, W, S, U, G, Te, ne, I, y, K, j, L, de, Z, se, D, E]), T = Re(function() {
3659
+ if (!I && u)
3660
+ return /* @__PURE__ */ m.createElement(Kt, ge({
3661
+ inMenu: ne,
3662
+ ref: ve,
3663
+ itemsKey: y,
3664
+ onAction: Te,
3665
+ showDivider: se,
3666
+ className: v,
3667
+ dense: S,
3668
+ items: I,
3669
+ leadingBlockType: K,
3670
+ listType: j,
3671
+ roleToUse: de,
3672
+ trailingBlockType: D,
3673
+ groupNameKey: G,
3674
+ categoryNameKey: o,
3675
+ categoryIdKey: t,
3676
+ componentPropsKey: E,
3677
+ navigation: V,
3678
+ nonInteractive: Ie
3679
+ }, W), u);
3680
+ if (j === "simple") {
3681
+ var _;
3682
+ return de === "group" ? (_ = [], Zt(Z) && (Z == null || wt(Z).call(Z, function(g) {
3683
+ I == null || wt(I).call(I, function(k, J) {
3684
+ (g === k || g === k[Ee] || g === J[L]) && _.push(J);
3685
+ });
3686
+ }))) : _ = I == null ? void 0 : mn(I).call(I, function(g) {
3687
+ return typeof g == "string" ? g === Z : Sn(g) === "object" ? g[Ee] || g[Ee] === 0 ? g[Ee] === Z : Ya(g, Z) : null;
3688
+ }), /* @__PURE__ */ m.createElement(Kt, ge({
3689
+ inMenu: ne,
3690
+ ref: ve,
3691
+ itemsKey: y,
3692
+ onAction: Te,
3693
+ showDivider: se,
3694
+ className: v,
3695
+ dense: S,
3696
+ themeColor: tt,
3697
+ items: I,
3698
+ leadingBlockType: K,
3699
+ listType: j,
3700
+ roleToUse: de,
3701
+ trailingBlockType: D,
3702
+ groupNameKey: G,
3703
+ categoryNameKey: o,
3704
+ categoryIdKey: t,
3705
+ componentPropsKey: E,
3706
+ navigation: V,
3707
+ nonInteractive: Ie
3708
+ }, W), /* @__PURE__ */ m.createElement(vn, {
3709
+ itemIdKey: Ee,
3710
+ items: I,
3711
+ selectedIndex: _
3712
+ }, !I && u));
3713
+ }
3714
+ return j === "group" ? I == null ? void 0 : dn(I).call(I, function(g, k) {
3715
+ return h(Kt, g, k, se);
3716
+ }) : j === "category" ? I == null ? void 0 : dn(I).call(I, function(g, k) {
3717
+ var J, Y = g[o];
3718
+ if (!Y) return null;
3719
+ var ct = Fn(g, G, o), it = g[t] || Y;
3720
+ return /* @__PURE__ */ m.createElement(kn, {
3721
+ key: it
3722
+ }, /* @__PURE__ */ m.createElement(gn, {
3723
+ variant: "group",
3724
+ className: "lmnt-nested-list mdc-list lmnt-theme-".concat(tt, "-bg")
3725
+ }, /* @__PURE__ */ m.createElement(Jt, {
3726
+ variant: ct,
3727
+ primaryText: Y
3728
+ }), dn(J = g[y]).call(J, function(Ce, M) {
3729
+ return h(Kt, Ce, M, !1, it, k);
3730
+ })), se && I.length > k + 1 && /* @__PURE__ */ m.createElement(yn, null));
3731
+ }) : null;
3732
+ }, [h, ne, y, se, u, v, W, S, I, K, j, de, D, G, o, Z, t, Te, L, Ee, E, V, tt, Ie]), b = Re(function() {
3733
+ return {
3734
+ role: de,
3735
+ nonInteractive: Ie,
3736
+ leadingBlockType: K,
3737
+ trailingBlockType: D,
3738
+ showDivider: se,
3739
+ dividerVariant: F,
3740
+ selected: Z,
3741
+ listType: j,
3742
+ categoryNameKey: o,
3743
+ secondaryTextKey: $,
3744
+ overlineTextKey: Ne,
3745
+ groupNameKey: G,
3746
+ primaryTextKey: L,
3747
+ randomId: B,
3748
+ singleList: Se,
3749
+ navigation: V,
3750
+ componentPropsKey: E
3751
+ };
3752
+ }, [o, E, F, G, K, j, V, Ie, Ne, L, B, de, $, Z, se, Se, D]);
3753
+ return /* @__PURE__ */ m.createElement(_n.Provider, {
3754
+ value: b
3755
+ }, /* @__PURE__ */ m.createElement(gn, {
3756
+ variant: j
3757
+ }, T));
3758
+ });
3759
+ ui.displayName = "List";
3760
+ ui.propTypes = li;
3761
+ var Qo = ["children", "className"], jr = vo, di = /* @__PURE__ */ Oe(function(n, r) {
3762
+ var e = n.children, t = e === void 0 ? jr.children : e, i = n.className, o = i === void 0 ? jr.className : i, l = Ke(n, Qo);
3763
+ return /* @__PURE__ */ m.createElement("div", ge({
3764
+ ref: r,
3765
+ className: pe("lmnt", "lmnt-list-group", "mdc-list-group", o)
3766
+ }, l), t);
3767
+ });
3768
+ di.displayName = "ListGroup";
3769
+ di.propTypes = mo;
3770
+ var Zo = ["className", "children"], Gr = To, fi = /* @__PURE__ */ Oe(function(n, r) {
3771
+ var e = n.className, t = e === void 0 ? Gr.className : e, i = n.children, o = i === void 0 ? Gr.children : i, l = Ke(n, Zo);
3772
+ return /* @__PURE__ */ m.createElement("h3", ge({
3773
+ ref: r,
3774
+ className: pe("mdc-list-group__subheader lmnt-list-group__subheader", t)
3775
+ }, l), /* @__PURE__ */ m.createElement(Un, {
3776
+ level: 2
3777
+ }, o));
3778
+ });
3779
+ fi.displayName = "ListGroupSubHeader";
3780
+ fi.propTypes = Io;
3781
+ export {
3782
+ ui as L,
3783
+ oi as M,
3784
+ si as N,
3785
+ fo as _,
3786
+ Jt as a,
3787
+ mn as b,
3788
+ rr as c,
3789
+ ai as d
3790
+ };