@lanaco/lnc-react-ui 3.11.35 → 4.0.2

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 (218) hide show
  1. package/README.md +0 -3
  2. package/dist/Accordion.cjs +6 -0
  3. package/dist/Accordion.js +65 -0
  4. package/dist/AccordionDetails.cjs +7 -0
  5. package/dist/AccordionDetails.js +32 -0
  6. package/dist/AccordionSummary.cjs +12 -0
  7. package/dist/AccordionSummary.js +78 -0
  8. package/dist/ActionsToolbar.cjs +19 -0
  9. package/dist/ActionsToolbar.js +225 -0
  10. package/dist/Alert.cjs +40 -0
  11. package/dist/Alert.js +138 -0
  12. package/dist/Avatar.cjs +16 -0
  13. package/dist/Avatar.js +114 -0
  14. package/dist/Badge.cjs +17 -0
  15. package/dist/Badge.js +70 -0
  16. package/dist/Breadcrumbs.cjs +8 -0
  17. package/dist/Breadcrumbs.js +131 -0
  18. package/dist/Button.cjs +127 -0
  19. package/dist/Button.js +542 -0
  20. package/dist/ButtonGroup.cjs +44 -0
  21. package/dist/ButtonGroup.js +112 -0
  22. package/dist/CheckBoxInput.cjs +118 -0
  23. package/dist/CheckBoxInput.js +348 -0
  24. package/dist/Chip.cjs +27 -0
  25. package/dist/Chip.js +189 -0
  26. package/dist/ColorInput.cjs +60 -0
  27. package/dist/ColorInput.js +256 -0
  28. package/dist/ConfirmationForm.cjs +22 -0
  29. package/dist/ConfirmationForm.js +169 -0
  30. package/dist/Content.cjs +1 -0
  31. package/dist/Content.js +18 -0
  32. package/dist/CustomStyles-CqlCjTgU.cjs +8 -0
  33. package/dist/CustomStyles-nfD3J1mi.js +2881 -0
  34. package/dist/DataView.cjs +1 -0
  35. package/dist/DataView.js +62 -0
  36. package/dist/DateInput.cjs +296 -0
  37. package/dist/DateInput.js +7042 -0
  38. package/dist/DecimalInput.cjs +54 -0
  39. package/dist/DecimalInput.js +697 -0
  40. package/dist/DetailsView.cjs +18 -0
  41. package/dist/DetailsView.js +243 -0
  42. package/dist/DoubleRangeSlider.cjs +114 -0
  43. package/dist/DoubleRangeSlider.js +289 -0
  44. package/dist/DragAndDropFile.cjs +31 -0
  45. package/dist/DragAndDropFile.js +2331 -0
  46. package/dist/DragDropFiles.cjs +14 -0
  47. package/dist/DragDropFiles.js +175 -0
  48. package/dist/Drawer.cjs +6 -0
  49. package/dist/Drawer.js +206 -0
  50. package/dist/Dropdown.cjs +1 -0
  51. package/dist/Dropdown.js +266 -0
  52. package/dist/DropdownItem.cjs +36 -0
  53. package/dist/DropdownItem.js +241 -0
  54. package/dist/DropdownLookup.cjs +1 -0
  55. package/dist/DropdownLookup.js +325 -0
  56. package/dist/DropdownMenu-B6qr13ik.cjs +19 -0
  57. package/dist/DropdownMenu-DZi3TJ8Q.js +1547 -0
  58. package/dist/DropdownMenu.cjs +1 -0
  59. package/dist/DropdownMenu.js +12 -0
  60. package/dist/EditableTable.cjs +21 -0
  61. package/dist/EditableTable.js +462 -0
  62. package/dist/FileInput.cjs +47 -0
  63. package/dist/FileInput.js +206 -0
  64. package/dist/FlexBox.cjs +9 -0
  65. package/dist/FlexBox.js +97 -0
  66. package/dist/FlexGrid.cjs +1 -0
  67. package/dist/FlexGrid.js +78 -0
  68. package/dist/FlexGridItem.cjs +7 -0
  69. package/dist/FlexGridItem.js +97 -0
  70. package/dist/Footer.cjs +1 -0
  71. package/dist/Footer.js +18 -0
  72. package/dist/FormField.cjs +11 -0
  73. package/dist/FormField.js +65 -0
  74. package/dist/FormView.cjs +13 -0
  75. package/dist/FormView.js +354 -0
  76. package/dist/Grid.cjs +13 -0
  77. package/dist/Grid.js +62 -0
  78. package/dist/GridItem.cjs +15 -0
  79. package/dist/GridItem.js +72 -0
  80. package/dist/Header.cjs +1 -0
  81. package/dist/Header.js +18 -0
  82. package/dist/Icon.cjs +8 -0
  83. package/dist/Icon.js +59 -0
  84. package/dist/IconButton.cjs +122 -0
  85. package/dist/IconButton.js +481 -0
  86. package/dist/Kanban.cjs +85 -0
  87. package/dist/Kanban.js +4793 -0
  88. package/dist/KanbanActionsToolbar.cjs +19 -0
  89. package/dist/KanbanActionsToolbar.js +152 -0
  90. package/dist/KanbanCard-ConTmu3w.cjs +30 -0
  91. package/dist/KanbanCard-D9OhU8C6.js +175 -0
  92. package/dist/KanbanCard.cjs +1 -0
  93. package/dist/KanbanCard.js +12 -0
  94. package/dist/KanbanFooter.cjs +5 -0
  95. package/dist/KanbanFooter.js +84 -0
  96. package/dist/KanbanHeader.cjs +15 -0
  97. package/dist/KanbanHeader.js +127 -0
  98. package/dist/KanbanView.cjs +8 -0
  99. package/dist/KanbanView.js +255 -0
  100. package/dist/Link.cjs +15 -0
  101. package/dist/Link.js +62 -0
  102. package/dist/MenuItem.cjs +36 -0
  103. package/dist/MenuItem.js +230 -0
  104. package/dist/Modal.cjs +84 -0
  105. package/dist/Modal.js +372 -0
  106. package/dist/MultiSelectDropdown.cjs +1 -0
  107. package/dist/MultiSelectDropdown.js +261 -0
  108. package/dist/MultiSelectDropdownLookup.cjs +1 -0
  109. package/dist/MultiSelectDropdownLookup.js +274 -0
  110. package/dist/NestedDropdownItem.cjs +6 -0
  111. package/dist/NestedDropdownItem.js +102 -0
  112. package/dist/NestedMenuItem.cjs +6 -0
  113. package/dist/NestedMenuItem.js +115 -0
  114. package/dist/Notification.cjs +83 -0
  115. package/dist/Notification.js +1079 -0
  116. package/dist/NumberInput.cjs +45 -0
  117. package/dist/NumberInput.js +241 -0
  118. package/dist/PageLayout.cjs +26 -0
  119. package/dist/PageLayout.js +92 -0
  120. package/dist/PasswordInput.cjs +47 -0
  121. package/dist/PasswordInput.js +230 -0
  122. package/dist/ProgressBar.cjs +22 -0
  123. package/dist/ProgressBar.js +92 -0
  124. package/dist/RadioGroup.cjs +7 -0
  125. package/dist/RadioGroup.js +104 -0
  126. package/dist/RadioInput.cjs +117 -0
  127. package/dist/RadioInput.js +362 -0
  128. package/dist/RangeSlider.cjs +72 -0
  129. package/dist/RangeSlider.js +253 -0
  130. package/dist/SearchBar.cjs +100 -0
  131. package/dist/SearchBar.js +994 -0
  132. package/dist/Separator.cjs +6 -0
  133. package/dist/Separator.js +37 -0
  134. package/dist/Sidebar.cjs +39 -0
  135. package/dist/Sidebar.js +123 -0
  136. package/dist/Spinner.cjs +38 -0
  137. package/dist/Spinner.js +114 -0
  138. package/dist/Surface.cjs +7 -0
  139. package/dist/Surface.js +60 -0
  140. package/dist/SwipeableDrawer.cjs +33 -0
  141. package/dist/SwipeableDrawer.js +213 -0
  142. package/dist/Table.cjs +170 -0
  143. package/dist/Table.js +1408 -0
  144. package/dist/TableView-Cj5_fbSR.js +481 -0
  145. package/dist/TableView-D8ex512p.cjs +19 -0
  146. package/dist/TableView.cjs +1 -0
  147. package/dist/TableView.js +11 -0
  148. package/dist/Tabs.cjs +7 -0
  149. package/dist/Tabs.js +72 -0
  150. package/dist/TextAreaInput.cjs +33 -0
  151. package/dist/TextAreaInput.js +320 -0
  152. package/dist/TextInput.cjs +45 -0
  153. package/dist/TextInput.js +227 -0
  154. package/dist/ThemeProvider.cjs +113 -0
  155. package/dist/ThemeProvider.js +1340 -0
  156. package/dist/TimeInput.cjs +31 -0
  157. package/dist/TimeInput.js +133 -0
  158. package/dist/Toggle.cjs +151 -0
  159. package/dist/Toggle.js +421 -0
  160. package/dist/TreeMenu.cjs +15 -0
  161. package/dist/TreeMenu.js +108 -0
  162. package/dist/TreeMenuSeparator.cjs +6 -0
  163. package/dist/TreeMenuSeparator.js +40 -0
  164. package/dist/UploadedFile.cjs +39 -0
  165. package/dist/UploadedFile.js +192 -0
  166. package/dist/defineProperty-BHpTtkhC.js +110 -0
  167. package/dist/defineProperty-DHvxLH8G.cjs +1 -0
  168. package/dist/emotion-element-5486c51c.browser.esm-CSejtOeT.js +886 -0
  169. package/dist/emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs +1 -0
  170. package/dist/emotion-is-prop-valid.esm-BzFBwmJz.js +10 -0
  171. package/dist/emotion-is-prop-valid.esm-CMrshNb7.cjs +1 -0
  172. package/dist/emotion-react.browser.esm-DQBL7Wls.cjs +1 -0
  173. package/dist/emotion-react.browser.esm-OWM-uG8Q.js +94 -0
  174. package/dist/emotion-styled.browser.esm-BZSYYThs.js +210 -0
  175. package/dist/emotion-styled.browser.esm-Cbp_XsK4.cjs +1 -0
  176. package/dist/floating-ui.dom-1F2mTXOe.cjs +1 -0
  177. package/dist/floating-ui.dom-BdUovkEr.js +938 -0
  178. package/dist/hoist-non-react-statics.cjs-B8r9S_ak.cjs +15 -0
  179. package/dist/hoist-non-react-statics.cjs-Drf1aBlk.js +235 -0
  180. package/dist/index-BLQWNy78.js +109 -0
  181. package/dist/index-BP5r5zGN.cjs +1 -0
  182. package/dist/index-B_da1uvD.js +451 -0
  183. package/dist/index-BjdOz5Ok.cjs +1 -0
  184. package/dist/index-BklgDeu4.js +42 -0
  185. package/dist/index-C29T0m2a.cjs +174 -0
  186. package/dist/index-CZJEA84h.js +19069 -0
  187. package/dist/index-Cdkz-XH-.js +127 -0
  188. package/dist/index-D5vEbKUT.js +81 -0
  189. package/dist/index-DXnSjbfJ.cjs +20 -0
  190. package/dist/index-Ds9PUTwb.js +667 -0
  191. package/dist/index-Dzkd2i4n.cjs +1 -0
  192. package/dist/index-IO9v6o0I.cjs +5 -0
  193. package/dist/index-P-naJISQ.cjs +1 -0
  194. package/dist/index.cjs +26 -0
  195. package/dist/index.js +378 -0
  196. package/dist/motion-CtkUpWEn.js +3785 -0
  197. package/dist/motion-Oud-wpUz.cjs +1 -0
  198. package/dist/objectWithoutPropertiesLoose-Bz3hwpmU.cjs +1 -0
  199. package/dist/objectWithoutPropertiesLoose-DwEN6RBQ.js +12 -0
  200. package/dist/setPrototypeOf-4aSEnBDm.cjs +1 -0
  201. package/dist/setPrototypeOf-a891FLQJ.js +13 -0
  202. package/dist/style.css +5 -0
  203. package/dist/tslib.es6-ZNVz5r_T.js +90 -0
  204. package/dist/tslib.es6-fPwcSa2V.cjs +1 -0
  205. package/dist/use-isomorphic-layout-effect.browser.esm-CkGv31zs.cjs +1 -0
  206. package/dist/use-isomorphic-layout-effect.browser.esm-DERp5kr6.js +5 -0
  207. package/dist/useUpdateEffect-BtMgpgIV.cjs +1 -0
  208. package/dist/useUpdateEffect-CuYWz7EA.js +15 -0
  209. package/dist/utils-DEke8iwo.js +10196 -0
  210. package/dist/utils-hdRGTsQ7.cjs +13 -0
  211. package/eslint.config.js +38 -0
  212. package/package.json +137 -58
  213. package/vite.config.js +135 -0
  214. package/jest.config.js +0 -7
  215. package/lib/index.esm.js +0 -84028
  216. package/lib/index.js +0 -84165
  217. package/rc1 +0 -0
  218. package/test/jest/__mocks__/styleMock.js +0 -1
@@ -0,0 +1,192 @@
1
+ import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
+ import j from "react";
3
+ import { P as i } from "./index-Ds9PUTwb.js";
4
+ import { n as t } from "./emotion-styled.browser.esm-BZSYYThs.js";
5
+ import y from "./Icon.js";
6
+ import M from "./ProgressBar.js";
7
+ import { b as O, a as C } from "./utils-DEke8iwo.js";
8
+ import { u as R } from "./emotion-element-5486c51c.browser.esm-CSejtOeT.js";
9
+ const z = {
10
+ small: "1.5rem",
11
+ medium: "1.75rem",
12
+ large: "2rem"
13
+ }, w = {
14
+ small: "2.25rem",
15
+ medium: "2.5rem",
16
+ large: "2.75rem"
17
+ }, W = t.div`
18
+ display: inline-flex;
19
+ gap: 0.5rem;
20
+ align-items: center;
21
+ width: 100%;
22
+
23
+ height: ${(e) => e.progress ? w[e.size] : z[e.size]};
24
+ height: ${(e) => e.progress ? w[e.size] : z[e.size]};
25
+ `, _ = t.div`
26
+ color: ${(e) => O(
27
+ e.theme,
28
+ "UploadedFile",
29
+ e.color,
30
+ "enabled",
31
+ "color"
32
+ )};
33
+
34
+ width: 100%;
35
+ display: flex;
36
+ flex-direction: column;
37
+ gap: 0.1875rem;
38
+ min-width: 0;
39
+ flex-shrink: 1;
40
+ min-height: 0;
41
+ `, E = t.div`
42
+ display: flex;
43
+ justify-content: space-between;
44
+ white-space: nowrap;
45
+ overflow: hidden;
46
+ text-overflow: ellipsis;
47
+
48
+ ${(e) => C(
49
+ e.theme,
50
+ "UploadedFile",
51
+ e.size,
52
+ "enabled"
53
+ )};
54
+ `, G = t.span`
55
+ display: flex;
56
+ align-items: center;
57
+ justify-content: center;
58
+ cursor: ${(e) => e.onCancel ? "pointer" : "default"};
59
+ `, K = t.span`
60
+ white-space: nowrap;
61
+ overflow: hidden;
62
+ text-overflow: ellipsis;
63
+ cursor: ${(e) => e.hasOnClick ? "pointer" : "default"};
64
+
65
+ ${(e) => C(
66
+ e.theme,
67
+ "UploadedFile",
68
+ e.size,
69
+ "enabled"
70
+ )};
71
+ `, V = j.forwardRef((e, x) => {
72
+ const {
73
+ id: B,
74
+ fileName: a = "file",
75
+ fileSize: d = null,
76
+ showFileSize: F = !1,
77
+ progressPercentage: n,
78
+ onFileClick: s = () => {
79
+ },
80
+ onCancel: m = () => {
81
+ },
82
+ size: P = "small",
83
+ color: b = "primary",
84
+ className: k = "",
85
+ style: v = {},
86
+ fileIcon: $ = "file",
87
+ cancelIcon: I = "times",
88
+ ...f
89
+ } = e;
90
+ var r = {
91
+ theme: R(),
92
+ size: P,
93
+ color: b,
94
+ progress: n && n > 0
95
+ };
96
+ const N = () => a && d && F ? `${a} (${T(d, 2)})` : a || "";
97
+ function T(l, g = 2) {
98
+ if (l === 0) return "0 Bytes";
99
+ const u = 1024, S = g < 0 ? 0 : g, U = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], p = Math.floor(Math.log(l) / Math.log(u));
100
+ return parseFloat((l / Math.pow(u, p)).toFixed(S)) + " " + U[p];
101
+ }
102
+ const h = {
103
+ small: "1rem",
104
+ medium: "1.25rem",
105
+ large: "1.5rem"
106
+ };
107
+ return /* @__PURE__ */ c(
108
+ W,
109
+ {
110
+ ref: x,
111
+ id: B,
112
+ ...r,
113
+ className: "lnc-ui-uploaded-file " + k,
114
+ style: v,
115
+ ...f,
116
+ children: [
117
+ /* @__PURE__ */ o(
118
+ y,
119
+ {
120
+ ...r,
121
+ icon: $,
122
+ sizeInUnits: h[e.size],
123
+ style: { cursor: s ? "pointer" : "default" },
124
+ onClick: (l) => s ? s(l) : null
125
+ }
126
+ ),
127
+ /* @__PURE__ */ c(_, { ...r, children: [
128
+ /* @__PURE__ */ c(E, { ...r, children: [
129
+ /* @__PURE__ */ o(
130
+ K,
131
+ {
132
+ ...r,
133
+ hasOnClick: !!s,
134
+ onClick: (l) => s ? s(l) : null,
135
+ children: N()
136
+ }
137
+ ),
138
+ n && /* @__PURE__ */ c("div", { children: [
139
+ n,
140
+ "%"
141
+ ] })
142
+ ] }),
143
+ (n || n == 0) && /* @__PURE__ */ o(
144
+ M,
145
+ {
146
+ progressPercentage: n,
147
+ style: { height: "0.5rem" },
148
+ ...r
149
+ }
150
+ )
151
+ ] }),
152
+ /* @__PURE__ */ o(G, { onCancel: m, onClick: m || null, children: /* @__PURE__ */ o(
153
+ y,
154
+ {
155
+ ...r,
156
+ icon: I,
157
+ sizeInUnits: h[e.size],
158
+ ...f
159
+ }
160
+ ) })
161
+ ]
162
+ }
163
+ );
164
+ });
165
+ V.propTypes = {
166
+ id: i.any,
167
+ fileName: i.string,
168
+ fileSize: i.oneOfType([i.string, i.number]),
169
+ showFileSize: i.bool,
170
+ progressPercentage: i.number,
171
+ className: i.string,
172
+ style: i.object,
173
+ onFileClick: i.func,
174
+ onCancel: i.func,
175
+ size: i.oneOf(["small", "medium", "large"]),
176
+ color: i.oneOf([
177
+ "primary",
178
+ "secondary",
179
+ "success",
180
+ "danger",
181
+ "warning",
182
+ "disabled",
183
+ "neutral",
184
+ "information",
185
+ "gray"
186
+ ]),
187
+ fileIcon: i.string,
188
+ cancelIcon: i.string
189
+ };
190
+ export {
191
+ V as default
192
+ };
@@ -0,0 +1,110 @@
1
+ import { a as s, _ as p } from "./setPrototypeOf-a891FLQJ.js";
2
+ function o(e) {
3
+ "@babel/helpers - typeof";
4
+ return o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
5
+ return typeof t;
6
+ } : function(t) {
7
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
8
+ }, o(e);
9
+ }
10
+ function u(e, t) {
11
+ (t == null || t > e.length) && (t = e.length);
12
+ for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
13
+ return n;
14
+ }
15
+ function v(e, t) {
16
+ if (e) {
17
+ if (typeof e == "string") return u(e, t);
18
+ var r = {}.toString.call(e).slice(8, -1);
19
+ return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? u(e, t) : void 0;
20
+ }
21
+ }
22
+ function _(e, t) {
23
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
24
+ e.prototype = Object.create(t && t.prototype, {
25
+ constructor: {
26
+ value: e,
27
+ writable: !0,
28
+ configurable: !0
29
+ }
30
+ }), Object.defineProperty(e, "prototype", {
31
+ writable: !1
32
+ }), t && s(e, t);
33
+ }
34
+ function i(e) {
35
+ return i = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
36
+ return t.__proto__ || Object.getPrototypeOf(t);
37
+ }, i(e);
38
+ }
39
+ function a() {
40
+ try {
41
+ var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
42
+ }));
43
+ } catch {
44
+ }
45
+ return (a = function() {
46
+ return !!e;
47
+ })();
48
+ }
49
+ function y(e, t) {
50
+ if (t && (o(t) == "object" || typeof t == "function")) return t;
51
+ if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
52
+ return p(e);
53
+ }
54
+ function d(e) {
55
+ var t = a();
56
+ return function() {
57
+ var r, n = i(e);
58
+ if (t) {
59
+ var l = i(this).constructor;
60
+ r = Reflect.construct(n, arguments, l);
61
+ } else r = n.apply(this, arguments);
62
+ return y(this, r);
63
+ };
64
+ }
65
+ function g(e, t) {
66
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
67
+ }
68
+ function b(e, t) {
69
+ if (o(e) != "object" || !e) return e;
70
+ var r = e[Symbol.toPrimitive];
71
+ if (r !== void 0) {
72
+ var n = r.call(e, t || "default");
73
+ if (o(n) != "object") return n;
74
+ throw new TypeError("@@toPrimitive must return a primitive value.");
75
+ }
76
+ return (t === "string" ? String : Number)(e);
77
+ }
78
+ function f(e) {
79
+ var t = b(e, "string");
80
+ return o(t) == "symbol" ? t : t + "";
81
+ }
82
+ function c(e, t) {
83
+ for (var r = 0; r < t.length; r++) {
84
+ var n = t[r];
85
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, f(n.key), n);
86
+ }
87
+ }
88
+ function h(e, t, r) {
89
+ return t && c(e.prototype, t), r && c(e, r), Object.defineProperty(e, "prototype", {
90
+ writable: !1
91
+ }), e;
92
+ }
93
+ function O(e, t, r) {
94
+ return (t = f(t)) in e ? Object.defineProperty(e, t, {
95
+ value: r,
96
+ enumerable: !0,
97
+ configurable: !0,
98
+ writable: !0
99
+ }) : e[t] = r, e;
100
+ }
101
+ export {
102
+ o as _,
103
+ v as a,
104
+ _ as b,
105
+ d as c,
106
+ h as d,
107
+ g as e,
108
+ O as f,
109
+ u as g
110
+ };
@@ -0,0 +1 @@
1
+ "use strict";const a=require("./setPrototypeOf-4aSEnBDm.cjs");function o(e){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(e)}function u(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function p(e,t){if(e){if(typeof e=="string")return u(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function y(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a._setPrototypeOf(e,t)}function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},i(e)}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(f=function(){return!!e})()}function b(e,t){if(t&&(o(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a._assertThisInitialized(e)}function _(e){var t=f();return function(){var r,n=i(e);if(t){var s=i(this).constructor;r=Reflect.construct(n,arguments,s)}else r=n.apply(this,arguments);return b(this,r)}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(o(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(o(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function l(e){var t=v(e,"string");return o(t)=="symbol"?t:t+""}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function d(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function h(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}exports._arrayLikeToArray=u;exports._classCallCheck=m;exports._createClass=d;exports._createSuper=_;exports._defineProperty=h;exports._inherits=y;exports._typeof=o;exports._unsupportedIterableToArray=p;