@react-hive/honey-layout 2.2.0 → 2.4.0
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.
- package/dist/components/HoneyGridColumn/HoneyGridColumn.styled.d.ts +2 -2
- package/dist/contexts/HoneyLayoutContext.d.ts +74 -0
- package/dist/contexts/index.d.ts +1 -0
- package/dist/helpers.d.ts +1 -0
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/use-honey-document-key-up-handler.d.ts +19 -0
- package/dist/hooks/use-honey-drag.d.ts +59 -20
- package/dist/hooks/use-honey-infinite-scroll.d.ts +1 -2
- package/dist/hooks/use-honey-layout.d.ts +9 -0
- package/dist/hooks/use-honey-overlay.d.ts +6 -0
- package/dist/hooks/use-honey-synthetic-scrollable-container.d.ts +1 -3
- package/dist/hooks/use-register-honey-overlay.d.ts +2 -0
- package/dist/index.js +1111 -1029
- package/dist/providers/HoneyLayoutProvider.d.ts +1 -59
- package/dist/providers/hooks/index.d.ts +1 -0
- package/dist/providers/hooks/use-honey-overlays.d.ts +11 -0
- package/dist/types/dom.types.d.ts +5 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/types.d.ts +69 -0
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
return Math.sqrt(
|
|
6
|
-
},
|
|
1
|
+
import ge, { css as ve, useTheme as hr, ThemeProvider as vr, ThemeContext as un } from "styled-components";
|
|
2
|
+
import gr, { createContext as yr, forwardRef as mr, useMemo as gt, useContext as Xt, Fragment as cn, useState as yt, useEffect as ne, useRef as xe, useCallback as Pe } from "react";
|
|
3
|
+
const ln = (r) => r.replace(/[A-Z]/g, (o) => `-${o.toLowerCase()}`), ir = (r) => r.split(" ").filter((o) => o), Ut = (r, o = 16) => `${r / o}rem`, fn = (r, o, i, s) => {
|
|
4
|
+
const f = i - r, u = s - o;
|
|
5
|
+
return Math.sqrt(f ** 2 + u ** 2);
|
|
6
|
+
}, ar = (r, o) => Math.abs(r / o), sr = (r, o) => r * o / 100, dn = (r, o) => {
|
|
7
7
|
if (o < 0 || o > 1)
|
|
8
8
|
throw new Error(`[honey-layout]: Alpha "${o}" is not a valid hex format.`);
|
|
9
|
-
const
|
|
9
|
+
const i = /^#?([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/, s = r.match(i);
|
|
10
10
|
if (!s)
|
|
11
11
|
throw new Error("[honey-layout]: Invalid hex format.");
|
|
12
|
-
const
|
|
13
|
-
return `#${
|
|
14
|
-
},
|
|
12
|
+
const f = s[1], u = f.length === 3 ? f[0] + f[0] + f[1] + f[1] + f[2] + f[2] : f, l = Math.round(o * 255).toString(16).toUpperCase().padStart(2, "0");
|
|
13
|
+
return `#${u + l}`;
|
|
14
|
+
}, ur = (r) => `@media ${r.map((i) => {
|
|
15
15
|
const s = [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
].filter(Boolean).map((
|
|
28
|
-
return `${
|
|
29
|
-
}).join(", ")}`,
|
|
30
|
-
const s = window.getComputedStyle(
|
|
16
|
+
i.width && ["width", i.width],
|
|
17
|
+
i.minWidth && ["min-width", i.minWidth],
|
|
18
|
+
i.maxWidth && ["max-width", i.maxWidth],
|
|
19
|
+
i.height && ["height", i.height],
|
|
20
|
+
i.minHeight && ["min-height", i.minHeight],
|
|
21
|
+
i.maxHeight && ["max-height", i.maxHeight],
|
|
22
|
+
i.orientation && ["orientation", i.orientation],
|
|
23
|
+
i.minResolution && ["min-resolution", i.minResolution],
|
|
24
|
+
i.maxResolution && ["max-resolution", i.maxResolution],
|
|
25
|
+
i.resolution && ["resolution", i.resolution],
|
|
26
|
+
i.update && ["update", i.update]
|
|
27
|
+
].filter(Boolean).map((l) => l && `(${l[0]}: ${l[1]})`).join(" and "), f = i.operator ? `${i.operator} ` : "", u = s ? ` and ${s}` : "";
|
|
28
|
+
return `${f}${i.mediaType ?? "screen"}${u}`;
|
|
29
|
+
}).join(", ")}`, br = (r) => {
|
|
30
|
+
const s = window.getComputedStyle(r).getPropertyValue("transform").match(/^matrix\((.+)\)$/);
|
|
31
31
|
if (!s)
|
|
32
32
|
return {
|
|
33
33
|
translateX: 0,
|
|
34
34
|
translateY: 0
|
|
35
35
|
};
|
|
36
|
-
const
|
|
36
|
+
const f = s[1].split(", "), u = parseFloat(f[4]), l = parseFloat(f[5]);
|
|
37
37
|
return {
|
|
38
|
-
translateX:
|
|
39
|
-
translateY:
|
|
38
|
+
translateX: u,
|
|
39
|
+
translateY: l
|
|
40
40
|
};
|
|
41
|
-
},
|
|
42
|
-
const { [
|
|
41
|
+
}, pn = (r, o, i, s = [], f = void 0, u = 0) => (r == null || r.forEach((l) => {
|
|
42
|
+
const { [i]: h, ...p } = l, b = l[i], y = Array.isArray(b);
|
|
43
43
|
if (s.push({
|
|
44
|
-
...
|
|
45
|
-
parentId:
|
|
46
|
-
depthLevel:
|
|
47
|
-
totalNestedItems:
|
|
48
|
-
}),
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
44
|
+
...p,
|
|
45
|
+
parentId: f,
|
|
46
|
+
depthLevel: u,
|
|
47
|
+
totalNestedItems: y ? b.length : 0
|
|
48
|
+
}), y) {
|
|
49
|
+
const g = l[o];
|
|
50
|
+
pn(
|
|
51
|
+
b,
|
|
52
52
|
o,
|
|
53
|
-
|
|
53
|
+
i,
|
|
54
54
|
s,
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
g,
|
|
56
|
+
u + 1
|
|
57
57
|
);
|
|
58
58
|
}
|
|
59
|
-
}), s),
|
|
60
|
-
(s) => s.parentId === o && (!
|
|
61
|
-
),
|
|
62
|
-
const
|
|
63
|
-
if (!
|
|
64
|
-
return
|
|
65
|
-
const
|
|
66
|
-
(
|
|
59
|
+
}), s), ao = (r, o, i) => r.filter(
|
|
60
|
+
(s) => s.parentId === o && (!i || i(s))
|
|
61
|
+
), so = (r, o, i, s) => {
|
|
62
|
+
const f = ir(s.toLowerCase());
|
|
63
|
+
if (!f.length)
|
|
64
|
+
return r;
|
|
65
|
+
const u = r.reduce(
|
|
66
|
+
(l, h, p) => (l[h[o]] = p, l),
|
|
67
67
|
{}
|
|
68
68
|
);
|
|
69
|
-
return
|
|
70
|
-
(
|
|
71
|
-
const
|
|
72
|
-
if (!
|
|
73
|
-
(
|
|
69
|
+
return r.reduce(
|
|
70
|
+
(l, h) => {
|
|
71
|
+
const p = h[i];
|
|
72
|
+
if (!p || l.some(
|
|
73
|
+
(g) => g[o] === h[o]
|
|
74
74
|
))
|
|
75
|
-
return
|
|
76
|
-
const
|
|
77
|
-
if (
|
|
78
|
-
(
|
|
75
|
+
return l;
|
|
76
|
+
const b = ir(p.toLowerCase());
|
|
77
|
+
if (f.every(
|
|
78
|
+
(g) => b.some((T) => T.startsWith(g))
|
|
79
79
|
))
|
|
80
|
-
if (
|
|
81
|
-
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
if (h.parentId === void 0) {
|
|
81
|
+
l.push(h);
|
|
82
|
+
const g = (T) => {
|
|
83
|
+
T.totalNestedItems && r.forEach((O) => {
|
|
84
|
+
O.parentId === T[o] && (l.push(O), g(O));
|
|
85
85
|
});
|
|
86
86
|
};
|
|
87
|
-
|
|
87
|
+
g(h);
|
|
88
88
|
} else {
|
|
89
|
-
const
|
|
90
|
-
const
|
|
91
|
-
M.parentId !== void 0 &&
|
|
92
|
-
const W =
|
|
93
|
-
if (W === null || W !==
|
|
89
|
+
const g = (T) => {
|
|
90
|
+
const O = u[T.parentId], M = r[O];
|
|
91
|
+
M.parentId !== void 0 && g(M);
|
|
92
|
+
const W = l.length ? l[l.length - 1].parentId : null;
|
|
93
|
+
if (W === null || W !== T.parentId) {
|
|
94
94
|
if (!M)
|
|
95
95
|
throw new Error("[honey-layout]: Parent item was not found.");
|
|
96
|
-
|
|
96
|
+
l.push(M);
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
|
-
|
|
99
|
+
g(h), l.push(h);
|
|
100
100
|
}
|
|
101
|
-
return
|
|
101
|
+
return l;
|
|
102
102
|
},
|
|
103
103
|
[]
|
|
104
104
|
);
|
|
105
|
-
},
|
|
105
|
+
}, hn = [
|
|
106
106
|
"width",
|
|
107
107
|
"height",
|
|
108
108
|
"margin",
|
|
@@ -122,7 +122,7 @@ const un = (n) => n.replace(/[A-Z]/g, (o) => `-${o.toLowerCase()}`), or = (n) =>
|
|
|
122
122
|
"gap",
|
|
123
123
|
"rowGap",
|
|
124
124
|
"columnGap"
|
|
125
|
-
],
|
|
125
|
+
], vn = [
|
|
126
126
|
"color",
|
|
127
127
|
"backgroundColor",
|
|
128
128
|
"borderColor",
|
|
@@ -134,77 +134,80 @@ const un = (n) => n.replace(/[A-Z]/g, (o) => `-${o.toLowerCase()}`), or = (n) =>
|
|
|
134
134
|
"textDecorationColor",
|
|
135
135
|
"fill",
|
|
136
136
|
"stroke"
|
|
137
|
-
],
|
|
138
|
-
const
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
137
|
+
], gn = () => {
|
|
138
|
+
const r = Date.now().toString(), o = Math.floor(Math.random() * 1e4).toString().padStart(4, "0");
|
|
139
|
+
return `${r}${o}`;
|
|
140
|
+
}, mt = (r, o = "px", i = "base") => ({ theme: s }) => {
|
|
141
|
+
const f = s.spacings[i] ?? 0;
|
|
142
|
+
if (typeof r == "number") {
|
|
143
|
+
const l = r * f;
|
|
144
|
+
return o ? `${l}${o}` : l;
|
|
145
|
+
}
|
|
146
|
+
return r.map((l) => {
|
|
147
|
+
const h = l * f;
|
|
148
|
+
return o ? `${h}${o}` : h;
|
|
146
149
|
}).join(" ");
|
|
147
|
-
},
|
|
148
|
-
const [s,
|
|
149
|
-
return o !== void 0 ?
|
|
150
|
-
},
|
|
151
|
-
const
|
|
152
|
-
return
|
|
153
|
-
font-family: ${
|
|
154
|
-
font-size: ${
|
|
155
|
-
font-weight: ${
|
|
156
|
-
line-height: ${
|
|
157
|
-
letter-spacing: ${
|
|
150
|
+
}, ht = (r, o) => ({ theme: i }) => {
|
|
151
|
+
const [s, f] = r.split("."), u = i.colors[s][f];
|
|
152
|
+
return o !== void 0 ? dn(u, o) : u;
|
|
153
|
+
}, yn = (r) => ({ theme: o }) => {
|
|
154
|
+
const i = o.fonts[r];
|
|
155
|
+
return ve`
|
|
156
|
+
font-family: ${i.family};
|
|
157
|
+
font-size: ${Ut(i.size)};
|
|
158
|
+
font-weight: ${i.weight};
|
|
159
|
+
line-height: ${i.lineHeight !== void 0 && Ut(i.lineHeight)};
|
|
160
|
+
letter-spacing: ${i.letterSpacing !== void 0 && Ut(i.letterSpacing)};
|
|
158
161
|
`;
|
|
159
|
-
},
|
|
160
|
-
const s = typeof o == "object" && !Array.isArray(o) ? o[
|
|
162
|
+
}, mn = (r) => ({ theme: o }) => o.dimensions[r], bn = (r) => hn.includes(r), _n = (r) => vn.includes(r), _r = (r) => r[0] === "$", xn = (r) => r.split(".").length === 2, Tn = (r, o, i) => {
|
|
163
|
+
const s = typeof o == "object" && !Array.isArray(o) ? o[i] : o;
|
|
161
164
|
if (s !== void 0)
|
|
162
|
-
return
|
|
163
|
-
},
|
|
164
|
-
([
|
|
165
|
-
),
|
|
166
|
-
${
|
|
167
|
-
const
|
|
168
|
-
return
|
|
169
|
-
${
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
165
|
+
return bn(r) && (typeof s == "number" || Array.isArray(s)) ? mt(s, "px") : _n(r) && typeof s == "string" && xn(s) ? ht(s) : s;
|
|
166
|
+
}, En = (r, o) => Object.entries(r).filter(
|
|
167
|
+
([i, s]) => _r(i) && o === "xs" || s && typeof s == "object" && o in s
|
|
168
|
+
), xr = (r) => ({ theme: o, ...i }) => ve`
|
|
169
|
+
${En(i, r).map(([s, f]) => {
|
|
170
|
+
const u = s.slice(1);
|
|
171
|
+
return ve`
|
|
172
|
+
${ln(u)}: ${Tn(
|
|
173
|
+
u,
|
|
174
|
+
f,
|
|
175
|
+
r
|
|
173
176
|
)};
|
|
174
177
|
`;
|
|
175
178
|
})}
|
|
176
|
-
`,
|
|
177
|
-
([
|
|
178
|
-
),
|
|
179
|
-
const
|
|
180
|
-
const
|
|
181
|
-
if (!
|
|
182
|
-
throw new Error(`[honey-layout]: Setup for breakpoint "${
|
|
183
|
-
return
|
|
179
|
+
`, wn = (r, o) => Object.entries(o).some(
|
|
180
|
+
([i, s]) => _r(i) && typeof s == "object" && r in s
|
|
181
|
+
), Tr = (r, o = {}) => {
|
|
182
|
+
const i = (u) => {
|
|
183
|
+
const l = u.breakpoints[r];
|
|
184
|
+
if (!l)
|
|
185
|
+
throw new Error(`[honey-layout]: Setup for breakpoint "${r}" was not found.`);
|
|
186
|
+
return l;
|
|
184
187
|
};
|
|
185
188
|
return {
|
|
186
|
-
down: ({ theme:
|
|
189
|
+
down: ({ theme: u }) => ur([
|
|
187
190
|
{
|
|
188
|
-
maxWidth: `${
|
|
191
|
+
maxWidth: `${i(u)}px`,
|
|
189
192
|
...o
|
|
190
193
|
}
|
|
191
194
|
]),
|
|
192
|
-
up: ({ theme:
|
|
195
|
+
up: ({ theme: u }) => ur([
|
|
193
196
|
{
|
|
194
|
-
minWidth: `${
|
|
197
|
+
minWidth: `${i(u)}px`,
|
|
195
198
|
...o
|
|
196
199
|
}
|
|
197
200
|
])
|
|
198
201
|
};
|
|
199
|
-
}, pt = (
|
|
200
|
-
${
|
|
201
|
-
${
|
|
202
|
+
}, pt = (r) => ({ theme: o, ...i }) => !o.breakpoints[r] || !wn(r, i) ? null : ve`
|
|
203
|
+
${Tr(r).up} {
|
|
204
|
+
${xr(r)};
|
|
202
205
|
}
|
|
203
|
-
`,
|
|
204
|
-
const o = window.screen.orientation.type,
|
|
205
|
-
if (!
|
|
206
|
+
`, cr = (r) => {
|
|
207
|
+
const o = window.screen.orientation.type, i = o === "portrait-primary" || o === "portrait-secondary", s = !i;
|
|
208
|
+
if (!r)
|
|
206
209
|
return {
|
|
207
|
-
isPortrait:
|
|
210
|
+
isPortrait: i,
|
|
208
211
|
isLandscape: s,
|
|
209
212
|
isXs: !1,
|
|
210
213
|
isSm: !1,
|
|
@@ -212,41 +215,40 @@ const un = (n) => n.replace(/[A-Z]/g, (o) => `-${o.toLowerCase()}`), or = (n) =>
|
|
|
212
215
|
isLg: !1,
|
|
213
216
|
isXl: !1
|
|
214
217
|
};
|
|
215
|
-
const
|
|
216
|
-
const
|
|
217
|
-
return
|
|
218
|
-
}) ??
|
|
218
|
+
const f = Object.entries(r).sort(([, l], [, h]) => l - h).map(([l]) => l), u = f.find((l) => {
|
|
219
|
+
const h = r[l];
|
|
220
|
+
return h ? window.innerWidth < h : !1;
|
|
221
|
+
}) ?? f.pop();
|
|
219
222
|
return {
|
|
220
|
-
isPortrait:
|
|
223
|
+
isPortrait: i,
|
|
221
224
|
isLandscape: s,
|
|
222
|
-
isXs:
|
|
223
|
-
isSm:
|
|
224
|
-
isMd:
|
|
225
|
-
isLg:
|
|
226
|
-
isXl:
|
|
225
|
+
isXs: u === "xs",
|
|
226
|
+
isSm: u === "sm",
|
|
227
|
+
isMd: u === "md",
|
|
228
|
+
isLg: u === "lg",
|
|
229
|
+
isXl: u === "xl"
|
|
227
230
|
};
|
|
228
|
-
},
|
|
229
|
-
${({ modifiers:
|
|
230
|
-
${
|
|
231
|
+
}, bt = ge.div`
|
|
232
|
+
${({ modifiers: r }) => ve`
|
|
233
|
+
${r == null ? void 0 : r.map((o) => o())};
|
|
231
234
|
|
|
232
|
-
${
|
|
235
|
+
${xr("xs")};
|
|
233
236
|
|
|
234
237
|
${pt("sm")};
|
|
235
238
|
${pt("md")};
|
|
236
239
|
${pt("lg")};
|
|
237
240
|
${pt("xl")};
|
|
238
241
|
`}
|
|
239
|
-
`,
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
Tn.defaultProps = {
|
|
242
|
+
`, qt = ge(bt)``;
|
|
243
|
+
qt.defaultProps = {
|
|
244
|
+
$display: "flex",
|
|
243
245
|
$flexDirection: "column"
|
|
244
246
|
};
|
|
245
|
-
var
|
|
246
|
-
function
|
|
247
|
-
return
|
|
247
|
+
var he = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
248
|
+
function Er(r) {
|
|
249
|
+
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
248
250
|
}
|
|
249
|
-
var
|
|
251
|
+
var Gt = { exports: {} }, Ne = {};
|
|
250
252
|
/**
|
|
251
253
|
* @license React
|
|
252
254
|
* react-jsx-runtime.production.min.js
|
|
@@ -256,21 +258,21 @@ var Ut = { exports: {} }, ze = {};
|
|
|
256
258
|
* This source code is licensed under the MIT license found in the
|
|
257
259
|
* LICENSE file in the root directory of this source tree.
|
|
258
260
|
*/
|
|
259
|
-
var
|
|
260
|
-
function
|
|
261
|
-
if (
|
|
262
|
-
|
|
263
|
-
var
|
|
264
|
-
function
|
|
265
|
-
var
|
|
266
|
-
|
|
267
|
-
for (
|
|
268
|
-
if (
|
|
269
|
-
return { $$typeof: o, type:
|
|
270
|
-
}
|
|
271
|
-
return
|
|
261
|
+
var lr;
|
|
262
|
+
function Sn() {
|
|
263
|
+
if (lr) return Ne;
|
|
264
|
+
lr = 1;
|
|
265
|
+
var r = gr, o = Symbol.for("react.element"), i = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, f = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
266
|
+
function l(h, p, b) {
|
|
267
|
+
var y, g = {}, T = null, O = null;
|
|
268
|
+
b !== void 0 && (T = "" + b), p.key !== void 0 && (T = "" + p.key), p.ref !== void 0 && (O = p.ref);
|
|
269
|
+
for (y in p) s.call(p, y) && !u.hasOwnProperty(y) && (g[y] = p[y]);
|
|
270
|
+
if (h && h.defaultProps) for (y in p = h.defaultProps, p) g[y] === void 0 && (g[y] = p[y]);
|
|
271
|
+
return { $$typeof: o, type: h, key: T, ref: O, props: g, _owner: f.current };
|
|
272
|
+
}
|
|
273
|
+
return Ne.Fragment = i, Ne.jsx = l, Ne.jsxs = l, Ne;
|
|
272
274
|
}
|
|
273
|
-
var
|
|
275
|
+
var ze = {};
|
|
274
276
|
/**
|
|
275
277
|
* @license React
|
|
276
278
|
* react-jsx-runtime.development.js
|
|
@@ -281,47 +283,47 @@ var ke = {};
|
|
|
281
283
|
* LICENSE file in the root directory of this source tree.
|
|
282
284
|
*/
|
|
283
285
|
var fr;
|
|
284
|
-
function
|
|
286
|
+
function Rn() {
|
|
285
287
|
return fr || (fr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
286
|
-
var
|
|
287
|
-
function
|
|
288
|
+
var r = gr, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), h = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), M = Symbol.iterator, W = "@@iterator";
|
|
289
|
+
function N(t) {
|
|
288
290
|
if (t === null || typeof t != "object")
|
|
289
291
|
return null;
|
|
290
|
-
var
|
|
291
|
-
return typeof
|
|
292
|
+
var c = M && t[M] || t[W];
|
|
293
|
+
return typeof c == "function" ? c : null;
|
|
292
294
|
}
|
|
293
|
-
var F =
|
|
295
|
+
var F = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
294
296
|
function P(t) {
|
|
295
297
|
{
|
|
296
|
-
for (var
|
|
297
|
-
d[
|
|
298
|
-
|
|
298
|
+
for (var c = arguments.length, d = new Array(c > 1 ? c - 1 : 0), m = 1; m < c; m++)
|
|
299
|
+
d[m - 1] = arguments[m];
|
|
300
|
+
se("error", t, d);
|
|
299
301
|
}
|
|
300
302
|
}
|
|
301
|
-
function
|
|
303
|
+
function se(t, c, d) {
|
|
302
304
|
{
|
|
303
|
-
var
|
|
304
|
-
S !== "" && (
|
|
305
|
-
var
|
|
306
|
-
return String(
|
|
305
|
+
var m = F.ReactDebugCurrentFrame, S = m.getStackAddendum();
|
|
306
|
+
S !== "" && (c += "%s", d = d.concat([S]));
|
|
307
|
+
var j = d.map(function(E) {
|
|
308
|
+
return String(E);
|
|
307
309
|
});
|
|
308
|
-
|
|
310
|
+
j.unshift("Warning: " + c), Function.prototype.apply.call(console[t], console, j);
|
|
309
311
|
}
|
|
310
312
|
}
|
|
311
|
-
var
|
|
312
|
-
|
|
313
|
-
function
|
|
314
|
-
return !!(typeof t == "string" || typeof t == "function" || t === s || t ===
|
|
313
|
+
var ue = !1, ee = !1, _ = !1, C = !1, B = !1, ce;
|
|
314
|
+
ce = Symbol.for("react.module.reference");
|
|
315
|
+
function _t(t) {
|
|
316
|
+
return !!(typeof t == "string" || typeof t == "function" || t === s || t === u || B || t === f || t === b || t === y || C || t === O || ue || ee || _ || typeof t == "object" && t !== null && (t.$$typeof === T || t.$$typeof === g || t.$$typeof === l || t.$$typeof === h || t.$$typeof === p || // This needs to include all possible module reference object
|
|
315
317
|
// types supported by any Flight configuration anywhere since
|
|
316
318
|
// we don't know which Flight build this will end up being used
|
|
317
319
|
// with.
|
|
318
|
-
t.$$typeof ===
|
|
320
|
+
t.$$typeof === ce || t.getModuleId !== void 0));
|
|
319
321
|
}
|
|
320
|
-
function
|
|
321
|
-
var
|
|
322
|
-
if (
|
|
323
|
-
return
|
|
324
|
-
var S =
|
|
322
|
+
function xt(t, c, d) {
|
|
323
|
+
var m = t.displayName;
|
|
324
|
+
if (m)
|
|
325
|
+
return m;
|
|
326
|
+
var S = c.displayName || c.name || "";
|
|
325
327
|
return S !== "" ? d + "(" + S + ")" : d;
|
|
326
328
|
}
|
|
327
329
|
function Ye(t) {
|
|
@@ -337,34 +339,34 @@ function wn() {
|
|
|
337
339
|
switch (t) {
|
|
338
340
|
case s:
|
|
339
341
|
return "Fragment";
|
|
340
|
-
case
|
|
342
|
+
case i:
|
|
341
343
|
return "Portal";
|
|
342
|
-
case
|
|
344
|
+
case u:
|
|
343
345
|
return "Profiler";
|
|
344
|
-
case
|
|
346
|
+
case f:
|
|
345
347
|
return "StrictMode";
|
|
346
|
-
case
|
|
348
|
+
case b:
|
|
347
349
|
return "Suspense";
|
|
348
|
-
case
|
|
350
|
+
case y:
|
|
349
351
|
return "SuspenseList";
|
|
350
352
|
}
|
|
351
353
|
if (typeof t == "object")
|
|
352
354
|
switch (t.$$typeof) {
|
|
353
|
-
case
|
|
354
|
-
var
|
|
355
|
-
return Ye(
|
|
356
|
-
case
|
|
355
|
+
case h:
|
|
356
|
+
var c = t;
|
|
357
|
+
return Ye(c) + ".Consumer";
|
|
358
|
+
case l:
|
|
357
359
|
var d = t;
|
|
358
360
|
return Ye(d._context) + ".Provider";
|
|
359
|
-
case
|
|
360
|
-
return
|
|
361
|
-
case
|
|
362
|
-
var
|
|
363
|
-
return
|
|
364
|
-
case
|
|
365
|
-
var S = t,
|
|
361
|
+
case p:
|
|
362
|
+
return xt(t, t.render, "ForwardRef");
|
|
363
|
+
case g:
|
|
364
|
+
var m = t.displayName || null;
|
|
365
|
+
return m !== null ? m : V(t.type) || "Memo";
|
|
366
|
+
case T: {
|
|
367
|
+
var S = t, j = S._payload, E = S._init;
|
|
366
368
|
try {
|
|
367
|
-
return V(
|
|
369
|
+
return V(E(j));
|
|
368
370
|
} catch {
|
|
369
371
|
return null;
|
|
370
372
|
}
|
|
@@ -372,13 +374,13 @@ function wn() {
|
|
|
372
374
|
}
|
|
373
375
|
return null;
|
|
374
376
|
}
|
|
375
|
-
var
|
|
377
|
+
var oe = Object.assign, ye = 0, Ue, Be, Ge, Ve, Xe, qe, Je;
|
|
376
378
|
function $() {
|
|
377
379
|
}
|
|
378
380
|
$.__reactDisabledLog = !0;
|
|
379
381
|
function Ke() {
|
|
380
382
|
{
|
|
381
|
-
if (
|
|
383
|
+
if (ye === 0) {
|
|
382
384
|
Ue = console.log, Be = console.info, Ge = console.warn, Ve = console.error, Xe = console.group, qe = console.groupCollapsed, Je = console.groupEnd;
|
|
383
385
|
var t = {
|
|
384
386
|
configurable: !0,
|
|
@@ -396,254 +398,254 @@ function wn() {
|
|
|
396
398
|
groupEnd: t
|
|
397
399
|
});
|
|
398
400
|
}
|
|
399
|
-
|
|
401
|
+
ye++;
|
|
400
402
|
}
|
|
401
403
|
}
|
|
402
|
-
function
|
|
404
|
+
function Tt() {
|
|
403
405
|
{
|
|
404
|
-
if (
|
|
406
|
+
if (ye--, ye === 0) {
|
|
405
407
|
var t = {
|
|
406
408
|
configurable: !0,
|
|
407
409
|
enumerable: !0,
|
|
408
410
|
writable: !0
|
|
409
411
|
};
|
|
410
412
|
Object.defineProperties(console, {
|
|
411
|
-
log:
|
|
413
|
+
log: oe({}, t, {
|
|
412
414
|
value: Ue
|
|
413
415
|
}),
|
|
414
|
-
info:
|
|
416
|
+
info: oe({}, t, {
|
|
415
417
|
value: Be
|
|
416
418
|
}),
|
|
417
|
-
warn:
|
|
419
|
+
warn: oe({}, t, {
|
|
418
420
|
value: Ge
|
|
419
421
|
}),
|
|
420
|
-
error:
|
|
422
|
+
error: oe({}, t, {
|
|
421
423
|
value: Ve
|
|
422
424
|
}),
|
|
423
|
-
group:
|
|
425
|
+
group: oe({}, t, {
|
|
424
426
|
value: Xe
|
|
425
427
|
}),
|
|
426
|
-
groupCollapsed:
|
|
428
|
+
groupCollapsed: oe({}, t, {
|
|
427
429
|
value: qe
|
|
428
430
|
}),
|
|
429
|
-
groupEnd:
|
|
431
|
+
groupEnd: oe({}, t, {
|
|
430
432
|
value: Je
|
|
431
433
|
})
|
|
432
434
|
});
|
|
433
435
|
}
|
|
434
|
-
|
|
436
|
+
ye < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
435
437
|
}
|
|
436
438
|
}
|
|
437
|
-
var
|
|
438
|
-
function te(t,
|
|
439
|
+
var ie = F.ReactCurrentDispatcher, Te;
|
|
440
|
+
function te(t, c, d) {
|
|
439
441
|
{
|
|
440
|
-
if (
|
|
442
|
+
if (Te === void 0)
|
|
441
443
|
try {
|
|
442
444
|
throw Error();
|
|
443
445
|
} catch (S) {
|
|
444
|
-
var
|
|
445
|
-
|
|
446
|
+
var m = S.stack.trim().match(/\n( *(at )?)/);
|
|
447
|
+
Te = m && m[1] || "";
|
|
446
448
|
}
|
|
447
449
|
return `
|
|
448
|
-
` +
|
|
450
|
+
` + Te + t;
|
|
449
451
|
}
|
|
450
452
|
}
|
|
451
|
-
var
|
|
453
|
+
var Ee = !1, le;
|
|
452
454
|
{
|
|
453
455
|
var Ze = typeof WeakMap == "function" ? WeakMap : Map;
|
|
454
|
-
|
|
456
|
+
le = new Ze();
|
|
455
457
|
}
|
|
456
|
-
function $e(t,
|
|
457
|
-
if (!t ||
|
|
458
|
+
function $e(t, c) {
|
|
459
|
+
if (!t || Ee)
|
|
458
460
|
return "";
|
|
459
461
|
{
|
|
460
|
-
var d =
|
|
462
|
+
var d = le.get(t);
|
|
461
463
|
if (d !== void 0)
|
|
462
464
|
return d;
|
|
463
465
|
}
|
|
464
|
-
var
|
|
465
|
-
|
|
466
|
+
var m;
|
|
467
|
+
Ee = !0;
|
|
466
468
|
var S = Error.prepareStackTrace;
|
|
467
469
|
Error.prepareStackTrace = void 0;
|
|
468
|
-
var
|
|
469
|
-
|
|
470
|
+
var j;
|
|
471
|
+
j = ie.current, ie.current = null, Ke();
|
|
470
472
|
try {
|
|
471
|
-
if (
|
|
472
|
-
var
|
|
473
|
+
if (c) {
|
|
474
|
+
var E = function() {
|
|
473
475
|
throw Error();
|
|
474
476
|
};
|
|
475
|
-
if (Object.defineProperty(
|
|
477
|
+
if (Object.defineProperty(E.prototype, "props", {
|
|
476
478
|
set: function() {
|
|
477
479
|
throw Error();
|
|
478
480
|
}
|
|
479
481
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
480
482
|
try {
|
|
481
|
-
Reflect.construct(
|
|
482
|
-
} catch (
|
|
483
|
-
|
|
483
|
+
Reflect.construct(E, []);
|
|
484
|
+
} catch (z) {
|
|
485
|
+
m = z;
|
|
484
486
|
}
|
|
485
|
-
Reflect.construct(t, [],
|
|
487
|
+
Reflect.construct(t, [], E);
|
|
486
488
|
} else {
|
|
487
489
|
try {
|
|
488
|
-
|
|
489
|
-
} catch (
|
|
490
|
-
|
|
490
|
+
E.call();
|
|
491
|
+
} catch (z) {
|
|
492
|
+
m = z;
|
|
491
493
|
}
|
|
492
|
-
t.call(
|
|
494
|
+
t.call(E.prototype);
|
|
493
495
|
}
|
|
494
496
|
} else {
|
|
495
497
|
try {
|
|
496
498
|
throw Error();
|
|
497
|
-
} catch (
|
|
498
|
-
|
|
499
|
+
} catch (z) {
|
|
500
|
+
m = z;
|
|
499
501
|
}
|
|
500
502
|
t();
|
|
501
503
|
}
|
|
502
|
-
} catch (
|
|
503
|
-
if (
|
|
504
|
-
for (var x =
|
|
505
|
-
`),
|
|
506
|
-
`), D = x.length - 1,
|
|
507
|
-
|
|
508
|
-
for (; D >= 1 &&
|
|
509
|
-
if (x[D] !==
|
|
510
|
-
if (D !== 1 ||
|
|
504
|
+
} catch (z) {
|
|
505
|
+
if (z && m && typeof z.stack == "string") {
|
|
506
|
+
for (var x = z.stack.split(`
|
|
507
|
+
`), k = m.stack.split(`
|
|
508
|
+
`), D = x.length - 1, A = k.length - 1; D >= 1 && A >= 0 && x[D] !== k[A]; )
|
|
509
|
+
A--;
|
|
510
|
+
for (; D >= 1 && A >= 0; D--, A--)
|
|
511
|
+
if (x[D] !== k[A]) {
|
|
512
|
+
if (D !== 1 || A !== 1)
|
|
511
513
|
do
|
|
512
|
-
if (D--,
|
|
513
|
-
var
|
|
514
|
+
if (D--, A--, A < 0 || x[D] !== k[A]) {
|
|
515
|
+
var U = `
|
|
514
516
|
` + x[D].replace(" at new ", " at ");
|
|
515
|
-
return t.displayName &&
|
|
517
|
+
return t.displayName && U.includes("<anonymous>") && (U = U.replace("<anonymous>", t.displayName)), typeof t == "function" && le.set(t, U), U;
|
|
516
518
|
}
|
|
517
|
-
while (D >= 1 &&
|
|
519
|
+
while (D >= 1 && A >= 0);
|
|
518
520
|
break;
|
|
519
521
|
}
|
|
520
522
|
}
|
|
521
523
|
} finally {
|
|
522
|
-
|
|
524
|
+
Ee = !1, ie.current = j, Tt(), Error.prepareStackTrace = S;
|
|
523
525
|
}
|
|
524
526
|
var K = t ? t.displayName || t.name : "", Z = K ? te(K) : "";
|
|
525
|
-
return typeof t == "function" &&
|
|
527
|
+
return typeof t == "function" && le.set(t, Z), Z;
|
|
526
528
|
}
|
|
527
|
-
function
|
|
529
|
+
function Et(t, c, d) {
|
|
528
530
|
return $e(t, !1);
|
|
529
531
|
}
|
|
530
|
-
function
|
|
531
|
-
var
|
|
532
|
-
return !!(
|
|
532
|
+
function wt(t) {
|
|
533
|
+
var c = t.prototype;
|
|
534
|
+
return !!(c && c.isReactComponent);
|
|
533
535
|
}
|
|
534
|
-
function
|
|
536
|
+
function we(t, c, d) {
|
|
535
537
|
if (t == null)
|
|
536
538
|
return "";
|
|
537
539
|
if (typeof t == "function")
|
|
538
|
-
return $e(t,
|
|
540
|
+
return $e(t, wt(t));
|
|
539
541
|
if (typeof t == "string")
|
|
540
542
|
return te(t);
|
|
541
543
|
switch (t) {
|
|
542
|
-
case
|
|
544
|
+
case b:
|
|
543
545
|
return te("Suspense");
|
|
544
|
-
case
|
|
546
|
+
case y:
|
|
545
547
|
return te("SuspenseList");
|
|
546
548
|
}
|
|
547
549
|
if (typeof t == "object")
|
|
548
550
|
switch (t.$$typeof) {
|
|
549
|
-
case
|
|
550
|
-
return
|
|
551
|
-
case
|
|
552
|
-
return
|
|
553
|
-
case
|
|
554
|
-
var
|
|
551
|
+
case p:
|
|
552
|
+
return Et(t.render);
|
|
553
|
+
case g:
|
|
554
|
+
return we(t.type, c, d);
|
|
555
|
+
case T: {
|
|
556
|
+
var m = t, S = m._payload, j = m._init;
|
|
555
557
|
try {
|
|
556
|
-
return
|
|
558
|
+
return we(j(S), c, d);
|
|
557
559
|
} catch {
|
|
558
560
|
}
|
|
559
561
|
}
|
|
560
562
|
}
|
|
561
563
|
return "";
|
|
562
564
|
}
|
|
563
|
-
var
|
|
564
|
-
function
|
|
565
|
+
var me = Object.prototype.hasOwnProperty, Qe = {}, et = F.ReactDebugCurrentFrame;
|
|
566
|
+
function Se(t) {
|
|
565
567
|
if (t) {
|
|
566
|
-
var
|
|
568
|
+
var c = t._owner, d = we(t.type, t._source, c ? c.type : null);
|
|
567
569
|
et.setExtraStackFrame(d);
|
|
568
570
|
} else
|
|
569
571
|
et.setExtraStackFrame(null);
|
|
570
572
|
}
|
|
571
|
-
function
|
|
573
|
+
function Re(t, c, d, m, S) {
|
|
572
574
|
{
|
|
573
|
-
var
|
|
574
|
-
for (var
|
|
575
|
-
if (
|
|
575
|
+
var j = Function.call.bind(me);
|
|
576
|
+
for (var E in t)
|
|
577
|
+
if (j(t, E)) {
|
|
576
578
|
var x = void 0;
|
|
577
579
|
try {
|
|
578
|
-
if (typeof t[
|
|
579
|
-
var
|
|
580
|
-
throw
|
|
580
|
+
if (typeof t[E] != "function") {
|
|
581
|
+
var k = Error((m || "React class") + ": " + d + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
582
|
+
throw k.name = "Invariant Violation", k;
|
|
581
583
|
}
|
|
582
|
-
x = t[
|
|
584
|
+
x = t[E](c, E, m, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
583
585
|
} catch (D) {
|
|
584
586
|
x = D;
|
|
585
587
|
}
|
|
586
|
-
x && !(x instanceof Error) && (
|
|
588
|
+
x && !(x instanceof Error) && (Se(S), P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", m || "React class", d, E, typeof x), Se(null)), x instanceof Error && !(x.message in Qe) && (Qe[x.message] = !0, Se(S), P("Failed %s type: %s", d, x.message), Se(null));
|
|
587
589
|
}
|
|
588
590
|
}
|
|
589
591
|
}
|
|
590
|
-
var
|
|
591
|
-
function
|
|
592
|
-
return
|
|
592
|
+
var Le = Array.isArray;
|
|
593
|
+
function fe(t) {
|
|
594
|
+
return Le(t);
|
|
593
595
|
}
|
|
594
596
|
function re(t) {
|
|
595
597
|
{
|
|
596
|
-
var
|
|
598
|
+
var c = typeof Symbol == "function" && Symbol.toStringTag, d = c && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
597
599
|
return d;
|
|
598
600
|
}
|
|
599
601
|
}
|
|
600
602
|
function tt(t) {
|
|
601
603
|
try {
|
|
602
|
-
return
|
|
604
|
+
return Ae(t), !1;
|
|
603
605
|
} catch {
|
|
604
606
|
return !0;
|
|
605
607
|
}
|
|
606
608
|
}
|
|
607
|
-
function
|
|
609
|
+
function Ae(t) {
|
|
608
610
|
return "" + t;
|
|
609
611
|
}
|
|
610
612
|
function rt(t) {
|
|
611
613
|
if (tt(t))
|
|
612
|
-
return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", re(t)),
|
|
614
|
+
return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", re(t)), Ae(t);
|
|
613
615
|
}
|
|
614
|
-
var
|
|
616
|
+
var be = F.ReactCurrentOwner, Ce = {
|
|
615
617
|
key: !0,
|
|
616
618
|
ref: !0,
|
|
617
619
|
__self: !0,
|
|
618
620
|
__source: !0
|
|
619
|
-
}, Ie, He,
|
|
620
|
-
|
|
621
|
+
}, Ie, He, Oe;
|
|
622
|
+
Oe = {};
|
|
621
623
|
function nt(t) {
|
|
622
|
-
if (
|
|
623
|
-
var
|
|
624
|
-
if (
|
|
624
|
+
if (me.call(t, "ref")) {
|
|
625
|
+
var c = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
626
|
+
if (c && c.isReactWarning)
|
|
625
627
|
return !1;
|
|
626
628
|
}
|
|
627
629
|
return t.ref !== void 0;
|
|
628
630
|
}
|
|
629
|
-
function
|
|
630
|
-
if (
|
|
631
|
-
var
|
|
632
|
-
if (
|
|
631
|
+
function St(t) {
|
|
632
|
+
if (me.call(t, "key")) {
|
|
633
|
+
var c = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
634
|
+
if (c && c.isReactWarning)
|
|
633
635
|
return !1;
|
|
634
636
|
}
|
|
635
637
|
return t.key !== void 0;
|
|
636
638
|
}
|
|
637
|
-
function
|
|
638
|
-
if (typeof t.ref == "string" &&
|
|
639
|
-
var d = V(
|
|
640
|
-
|
|
639
|
+
function Rt(t, c) {
|
|
640
|
+
if (typeof t.ref == "string" && be.current && c && be.current.stateNode !== c) {
|
|
641
|
+
var d = V(be.current.type);
|
|
642
|
+
Oe[d] || (P('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', V(be.current.type), t.ref), Oe[d] = !0);
|
|
641
643
|
}
|
|
642
644
|
}
|
|
643
|
-
function
|
|
645
|
+
function ae(t, c) {
|
|
644
646
|
{
|
|
645
647
|
var d = function() {
|
|
646
|
-
Ie || (Ie = !0, P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
648
|
+
Ie || (Ie = !0, P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", c));
|
|
647
649
|
};
|
|
648
650
|
d.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
649
651
|
get: d,
|
|
@@ -651,10 +653,10 @@ function wn() {
|
|
|
651
653
|
});
|
|
652
654
|
}
|
|
653
655
|
}
|
|
654
|
-
function
|
|
656
|
+
function je(t, c) {
|
|
655
657
|
{
|
|
656
658
|
var d = function() {
|
|
657
|
-
He || (He = !0, P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
659
|
+
He || (He = !0, P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", c));
|
|
658
660
|
};
|
|
659
661
|
d.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
660
662
|
get: d,
|
|
@@ -662,17 +664,17 @@ function wn() {
|
|
|
662
664
|
});
|
|
663
665
|
}
|
|
664
666
|
}
|
|
665
|
-
var
|
|
667
|
+
var Ct = function(t, c, d, m, S, j, E) {
|
|
666
668
|
var x = {
|
|
667
669
|
// This tag allows us to uniquely identify this as a React Element
|
|
668
670
|
$$typeof: o,
|
|
669
671
|
// Built-in properties that belong on the element
|
|
670
672
|
type: t,
|
|
671
|
-
key:
|
|
673
|
+
key: c,
|
|
672
674
|
ref: d,
|
|
673
|
-
props:
|
|
675
|
+
props: E,
|
|
674
676
|
// Record the component responsible for creating this element.
|
|
675
|
-
_owner:
|
|
677
|
+
_owner: j
|
|
676
678
|
};
|
|
677
679
|
return x._store = {}, Object.defineProperty(x._store, "validated", {
|
|
678
680
|
configurable: !1,
|
|
@@ -683,7 +685,7 @@ function wn() {
|
|
|
683
685
|
configurable: !1,
|
|
684
686
|
enumerable: !1,
|
|
685
687
|
writable: !1,
|
|
686
|
-
value:
|
|
688
|
+
value: m
|
|
687
689
|
}), Object.defineProperty(x, "_source", {
|
|
688
690
|
configurable: !1,
|
|
689
691
|
enumerable: !1,
|
|
@@ -691,28 +693,28 @@ function wn() {
|
|
|
691
693
|
value: S
|
|
692
694
|
}), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
|
|
693
695
|
};
|
|
694
|
-
function ot(t,
|
|
696
|
+
function ot(t, c, d, m, S) {
|
|
695
697
|
{
|
|
696
|
-
var
|
|
697
|
-
d !== void 0 && (rt(d), x = "" + d),
|
|
698
|
-
for (
|
|
699
|
-
|
|
698
|
+
var j, E = {}, x = null, k = null;
|
|
699
|
+
d !== void 0 && (rt(d), x = "" + d), St(c) && (rt(c.key), x = "" + c.key), nt(c) && (k = c.ref, Rt(c, S));
|
|
700
|
+
for (j in c)
|
|
701
|
+
me.call(c, j) && !Ce.hasOwnProperty(j) && (E[j] = c[j]);
|
|
700
702
|
if (t && t.defaultProps) {
|
|
701
703
|
var D = t.defaultProps;
|
|
702
|
-
for (
|
|
703
|
-
|
|
704
|
+
for (j in D)
|
|
705
|
+
E[j] === void 0 && (E[j] = D[j]);
|
|
704
706
|
}
|
|
705
|
-
if (x ||
|
|
706
|
-
var
|
|
707
|
-
x &&
|
|
707
|
+
if (x || k) {
|
|
708
|
+
var A = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
709
|
+
x && ae(E, A), k && je(E, A);
|
|
708
710
|
}
|
|
709
|
-
return
|
|
711
|
+
return Ct(t, x, k, S, m, be.current, E);
|
|
710
712
|
}
|
|
711
713
|
}
|
|
712
714
|
var De = F.ReactCurrentOwner, Me = F.ReactDebugCurrentFrame;
|
|
713
715
|
function X(t) {
|
|
714
716
|
if (t) {
|
|
715
|
-
var
|
|
717
|
+
var c = t._owner, d = we(t.type, t._source, c ? c.type : null);
|
|
716
718
|
Me.setExtraStackFrame(d);
|
|
717
719
|
} else
|
|
718
720
|
Me.setExtraStackFrame(null);
|
|
@@ -734,85 +736,85 @@ Check the render method of \`` + t + "`.";
|
|
|
734
736
|
return "";
|
|
735
737
|
}
|
|
736
738
|
}
|
|
737
|
-
function
|
|
739
|
+
function Ot(t) {
|
|
738
740
|
return "";
|
|
739
741
|
}
|
|
740
742
|
var at = {};
|
|
741
|
-
function
|
|
743
|
+
function jt(t) {
|
|
742
744
|
{
|
|
743
|
-
var
|
|
744
|
-
if (!
|
|
745
|
+
var c = it();
|
|
746
|
+
if (!c) {
|
|
745
747
|
var d = typeof t == "string" ? t : t.displayName || t.name;
|
|
746
|
-
d && (
|
|
748
|
+
d && (c = `
|
|
747
749
|
|
|
748
750
|
Check the top-level render call using <` + d + ">.");
|
|
749
751
|
}
|
|
750
|
-
return
|
|
752
|
+
return c;
|
|
751
753
|
}
|
|
752
754
|
}
|
|
753
|
-
function st(t,
|
|
755
|
+
function st(t, c) {
|
|
754
756
|
{
|
|
755
757
|
if (!t._store || t._store.validated || t.key != null)
|
|
756
758
|
return;
|
|
757
759
|
t._store.validated = !0;
|
|
758
|
-
var d =
|
|
760
|
+
var d = jt(c);
|
|
759
761
|
if (at[d])
|
|
760
762
|
return;
|
|
761
763
|
at[d] = !0;
|
|
762
|
-
var
|
|
763
|
-
t && t._owner && t._owner !== De.current && (
|
|
764
|
+
var m = "";
|
|
765
|
+
t && t._owner && t._owner !== De.current && (m = " It was passed a child from " + V(t._owner.type) + "."), X(t), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, m), X(null);
|
|
764
766
|
}
|
|
765
767
|
}
|
|
766
|
-
function q(t,
|
|
768
|
+
function q(t, c) {
|
|
767
769
|
{
|
|
768
770
|
if (typeof t != "object")
|
|
769
771
|
return;
|
|
770
|
-
if (
|
|
772
|
+
if (fe(t))
|
|
771
773
|
for (var d = 0; d < t.length; d++) {
|
|
772
|
-
var
|
|
773
|
-
J(
|
|
774
|
+
var m = t[d];
|
|
775
|
+
J(m) && st(m, c);
|
|
774
776
|
}
|
|
775
777
|
else if (J(t))
|
|
776
778
|
t._store && (t._store.validated = !0);
|
|
777
779
|
else if (t) {
|
|
778
|
-
var S =
|
|
780
|
+
var S = N(t);
|
|
779
781
|
if (typeof S == "function" && S !== t.entries)
|
|
780
|
-
for (var
|
|
781
|
-
J(
|
|
782
|
+
for (var j = S.call(t), E; !(E = j.next()).done; )
|
|
783
|
+
J(E.value) && st(E.value, c);
|
|
782
784
|
}
|
|
783
785
|
}
|
|
784
786
|
}
|
|
785
|
-
function
|
|
787
|
+
function Pt(t) {
|
|
786
788
|
{
|
|
787
|
-
var
|
|
788
|
-
if (
|
|
789
|
+
var c = t.type;
|
|
790
|
+
if (c == null || typeof c == "string")
|
|
789
791
|
return;
|
|
790
792
|
var d;
|
|
791
|
-
if (typeof
|
|
792
|
-
d =
|
|
793
|
-
else if (typeof
|
|
793
|
+
if (typeof c == "function")
|
|
794
|
+
d = c.propTypes;
|
|
795
|
+
else if (typeof c == "object" && (c.$$typeof === p || // Note: Memo only checks outer props here.
|
|
794
796
|
// Inner props are checked in the reconciler.
|
|
795
|
-
|
|
796
|
-
d =
|
|
797
|
+
c.$$typeof === g))
|
|
798
|
+
d = c.propTypes;
|
|
797
799
|
else
|
|
798
800
|
return;
|
|
799
801
|
if (d) {
|
|
800
|
-
var
|
|
801
|
-
|
|
802
|
-
} else if (
|
|
802
|
+
var m = V(c);
|
|
803
|
+
Re(d, t.props, "prop", m, t);
|
|
804
|
+
} else if (c.PropTypes !== void 0 && !Fe) {
|
|
803
805
|
Fe = !0;
|
|
804
|
-
var S = V(
|
|
806
|
+
var S = V(c);
|
|
805
807
|
P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
|
|
806
808
|
}
|
|
807
|
-
typeof
|
|
809
|
+
typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
808
810
|
}
|
|
809
811
|
}
|
|
810
|
-
function
|
|
812
|
+
function $t(t) {
|
|
811
813
|
{
|
|
812
|
-
for (var
|
|
813
|
-
var
|
|
814
|
-
if (
|
|
815
|
-
X(t), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
814
|
+
for (var c = Object.keys(t.props), d = 0; d < c.length; d++) {
|
|
815
|
+
var m = c[d];
|
|
816
|
+
if (m !== "children" && m !== "key") {
|
|
817
|
+
X(t), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", m), X(null);
|
|
816
818
|
break;
|
|
817
819
|
}
|
|
818
820
|
}
|
|
@@ -820,438 +822,476 @@ Check the top-level render call using <` + d + ">.");
|
|
|
820
822
|
}
|
|
821
823
|
}
|
|
822
824
|
var ut = {};
|
|
823
|
-
function ct(t,
|
|
825
|
+
function ct(t, c, d, m, S, j) {
|
|
824
826
|
{
|
|
825
|
-
var
|
|
826
|
-
if (!
|
|
827
|
+
var E = _t(t);
|
|
828
|
+
if (!E) {
|
|
827
829
|
var x = "";
|
|
828
830
|
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (x += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
829
|
-
var
|
|
830
|
-
|
|
831
|
+
var k = Ot();
|
|
832
|
+
k ? x += k : x += it();
|
|
831
833
|
var D;
|
|
832
|
-
t === null ? D = "null" :
|
|
834
|
+
t === null ? D = "null" : fe(t) ? D = "array" : t !== void 0 && t.$$typeof === o ? (D = "<" + (V(t.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : D = typeof t, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, x);
|
|
833
835
|
}
|
|
834
|
-
var
|
|
835
|
-
if (
|
|
836
|
-
return
|
|
837
|
-
if (
|
|
838
|
-
var
|
|
839
|
-
if (
|
|
840
|
-
if (
|
|
841
|
-
if (
|
|
842
|
-
for (var K = 0; K <
|
|
843
|
-
q(
|
|
844
|
-
Object.freeze && Object.freeze(
|
|
836
|
+
var A = ot(t, c, d, S, j);
|
|
837
|
+
if (A == null)
|
|
838
|
+
return A;
|
|
839
|
+
if (E) {
|
|
840
|
+
var U = c.children;
|
|
841
|
+
if (U !== void 0)
|
|
842
|
+
if (m)
|
|
843
|
+
if (fe(U)) {
|
|
844
|
+
for (var K = 0; K < U.length; K++)
|
|
845
|
+
q(U[K], t);
|
|
846
|
+
Object.freeze && Object.freeze(U);
|
|
845
847
|
} else
|
|
846
848
|
P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
847
849
|
else
|
|
848
|
-
q(
|
|
850
|
+
q(U, t);
|
|
849
851
|
}
|
|
850
|
-
if (
|
|
851
|
-
var Z = V(t),
|
|
852
|
-
return
|
|
853
|
-
}),
|
|
854
|
-
if (!ut[Z +
|
|
855
|
-
var
|
|
852
|
+
if (me.call(c, "key")) {
|
|
853
|
+
var Z = V(t), z = Object.keys(c).filter(function(Ht) {
|
|
854
|
+
return Ht !== "key";
|
|
855
|
+
}), pe = z.length > 0 ? "{key: someKey, " + z.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
856
|
+
if (!ut[Z + pe]) {
|
|
857
|
+
var lt = z.length > 0 ? "{" + z.join(": ..., ") + ": ...}" : "{}";
|
|
856
858
|
P(`A props object containing a "key" prop is being spread into JSX:
|
|
857
859
|
let props = %s;
|
|
858
860
|
<%s {...props} />
|
|
859
861
|
React keys must be passed directly to JSX without using spread:
|
|
860
862
|
let props = %s;
|
|
861
|
-
<%s key={someKey} {...props} />`,
|
|
863
|
+
<%s key={someKey} {...props} />`, pe, Z, lt, Z), ut[Z + pe] = !0;
|
|
862
864
|
}
|
|
863
865
|
}
|
|
864
|
-
return t === s ?
|
|
866
|
+
return t === s ? $t(A) : Pt(A), A;
|
|
865
867
|
}
|
|
866
868
|
}
|
|
867
|
-
function
|
|
868
|
-
return ct(t,
|
|
869
|
+
function Lt(t, c, d) {
|
|
870
|
+
return ct(t, c, d, !0);
|
|
869
871
|
}
|
|
870
|
-
function
|
|
871
|
-
return ct(t,
|
|
872
|
+
function de(t, c, d) {
|
|
873
|
+
return ct(t, c, d, !1);
|
|
872
874
|
}
|
|
873
|
-
var
|
|
874
|
-
|
|
875
|
-
}()),
|
|
875
|
+
var At = de, It = Lt;
|
|
876
|
+
ze.Fragment = s, ze.jsx = At, ze.jsxs = It;
|
|
877
|
+
}()), ze;
|
|
876
878
|
}
|
|
877
|
-
process.env.NODE_ENV === "production" ?
|
|
878
|
-
var
|
|
879
|
-
const
|
|
880
|
-
${({ columns:
|
|
881
|
-
const
|
|
882
|
-
return
|
|
883
|
-
|
|
884
|
-
flex-direction: column;
|
|
885
|
-
flex-basis: ${_};
|
|
879
|
+
process.env.NODE_ENV === "production" ? Gt.exports = Sn() : Gt.exports = Rn();
|
|
880
|
+
var Y = Gt.exports;
|
|
881
|
+
const wr = ge(qt)`
|
|
882
|
+
${({ columns: r, takeColumns: o = 1, spacing: i = 0, applyMaxWidth: s, theme: f }) => {
|
|
883
|
+
const u = 100 / r, l = mt(i, null)({ theme: f }), h = o * u, p = (r - o) * (l / r), b = `calc(${h}% - ${p}px)`;
|
|
884
|
+
return ve`
|
|
885
|
+
flex-basis: ${b};
|
|
886
886
|
|
|
887
|
-
${s &&
|
|
888
|
-
${
|
|
889
|
-
max-width: ${
|
|
887
|
+
${s && ve`
|
|
888
|
+
${Tr(s).up} {
|
|
889
|
+
max-width: ${b};
|
|
890
890
|
}
|
|
891
891
|
`}
|
|
892
892
|
`;
|
|
893
893
|
}}
|
|
894
|
-
`,
|
|
895
|
-
${({ columnHeight:
|
|
894
|
+
`, Sr = ge(bt)`
|
|
895
|
+
${({ columnHeight: r, minColumnHeight: o, spacing: i = 0 }) => ve`
|
|
896
896
|
display: flex;
|
|
897
|
-
gap: ${
|
|
897
|
+
gap: ${mt(i)};
|
|
898
898
|
|
|
899
|
-
> ${
|
|
900
|
-
height: ${
|
|
899
|
+
> ${wr} {
|
|
900
|
+
height: ${r};
|
|
901
901
|
min-height: ${o};
|
|
902
902
|
}
|
|
903
903
|
`}
|
|
904
904
|
`;
|
|
905
|
-
|
|
905
|
+
Sr.defaultProps = {
|
|
906
906
|
$flexWrap: "wrap"
|
|
907
907
|
};
|
|
908
|
-
const
|
|
909
|
-
({ children:
|
|
910
|
-
const
|
|
908
|
+
const Rr = yr(void 0), uo = mr(
|
|
909
|
+
({ children: r, columns: o, spacing: i, isColumnGrowing: s = !0, applyColumnMaxWidth: f = !1, ...u }, l) => {
|
|
910
|
+
const h = gt(
|
|
911
911
|
() => ({
|
|
912
912
|
columns: o,
|
|
913
|
-
spacing:
|
|
913
|
+
spacing: i,
|
|
914
914
|
isColumnGrowing: s,
|
|
915
|
-
applyColumnMaxWidth:
|
|
915
|
+
applyColumnMaxWidth: f
|
|
916
916
|
}),
|
|
917
|
-
[o,
|
|
917
|
+
[o, i, s, f]
|
|
918
918
|
);
|
|
919
|
-
return /* @__PURE__ */
|
|
919
|
+
return /* @__PURE__ */ Y.jsx(Rr.Provider, { value: h, children: /* @__PURE__ */ Y.jsx(Sr, { ref: l, spacing: i, "data-testid": "honey-grid", ...u, children: r }) });
|
|
920
920
|
}
|
|
921
|
-
),
|
|
922
|
-
const
|
|
923
|
-
if (!
|
|
921
|
+
), Cn = () => {
|
|
922
|
+
const r = Xt(Rr);
|
|
923
|
+
if (!r)
|
|
924
924
|
throw new Error(
|
|
925
925
|
"The `useCurrentHoneyGrid()` hook can only be used inside <HoneyGrid/> component!"
|
|
926
926
|
);
|
|
927
|
-
return
|
|
928
|
-
},
|
|
929
|
-
children:
|
|
927
|
+
return r;
|
|
928
|
+
}, co = ({
|
|
929
|
+
children: r,
|
|
930
930
|
...o
|
|
931
931
|
}) => {
|
|
932
|
-
const { columns:
|
|
933
|
-
return /* @__PURE__ */
|
|
934
|
-
|
|
932
|
+
const { columns: i, spacing: s, isColumnGrowing: f, applyColumnMaxWidth: u } = Cn();
|
|
933
|
+
return /* @__PURE__ */ Y.jsx(
|
|
934
|
+
wr,
|
|
935
935
|
{
|
|
936
|
-
columns:
|
|
936
|
+
columns: i,
|
|
937
937
|
spacing: s,
|
|
938
|
-
applyMaxWidth:
|
|
939
|
-
$flexGrow:
|
|
938
|
+
applyMaxWidth: u,
|
|
939
|
+
$flexGrow: f ? 1 : 0,
|
|
940
940
|
"data-testid": "honey-grid-column",
|
|
941
941
|
...o,
|
|
942
|
-
children:
|
|
942
|
+
children: r
|
|
943
943
|
}
|
|
944
944
|
);
|
|
945
|
-
}, Cr = (
|
|
946
|
-
children:
|
|
945
|
+
}, Cr = (r, o, i) => typeof o == "function" ? o(r) : typeof r == "string" || typeof r == "number" ? r : o ? r[o] : i, On = ({
|
|
946
|
+
children: r,
|
|
947
947
|
isLoading: o = !1,
|
|
948
|
-
isError:
|
|
948
|
+
isError: i = !1,
|
|
949
949
|
isNoContent: s = !1,
|
|
950
|
-
loadingContent:
|
|
951
|
-
errorContent:
|
|
952
|
-
noContent:
|
|
953
|
-
}) =>
|
|
950
|
+
loadingContent: f = null,
|
|
951
|
+
errorContent: u = null,
|
|
952
|
+
noContent: l = null
|
|
953
|
+
}) => i ? u : o ? f : s ? l : r, jn = ge(qt)`
|
|
954
954
|
overflow: hidden auto;
|
|
955
|
-
`,
|
|
956
|
-
children:
|
|
955
|
+
`, Pn = ({
|
|
956
|
+
children: r,
|
|
957
957
|
items: o,
|
|
958
|
-
itemKey:
|
|
958
|
+
itemKey: i,
|
|
959
959
|
isLoading: s,
|
|
960
|
-
loadingContent:
|
|
961
|
-
isError:
|
|
962
|
-
errorContent:
|
|
963
|
-
noContent:
|
|
964
|
-
...
|
|
965
|
-
},
|
|
966
|
-
|
|
960
|
+
loadingContent: f,
|
|
961
|
+
isError: u,
|
|
962
|
+
errorContent: l,
|
|
963
|
+
noContent: h,
|
|
964
|
+
...p
|
|
965
|
+
}, b) => /* @__PURE__ */ Y.jsx(
|
|
966
|
+
jn,
|
|
967
967
|
{
|
|
968
|
-
ref:
|
|
968
|
+
ref: b,
|
|
969
969
|
role: "list",
|
|
970
970
|
"aria-busy": s,
|
|
971
971
|
"data-testid": "honey-list",
|
|
972
|
-
...
|
|
973
|
-
children: /* @__PURE__ */
|
|
974
|
-
|
|
972
|
+
...p,
|
|
973
|
+
children: /* @__PURE__ */ Y.jsx(
|
|
974
|
+
On,
|
|
975
975
|
{
|
|
976
976
|
isLoading: s,
|
|
977
|
-
loadingContent:
|
|
978
|
-
isError:
|
|
979
|
-
errorContent:
|
|
977
|
+
loadingContent: f,
|
|
978
|
+
isError: u,
|
|
979
|
+
errorContent: l,
|
|
980
980
|
isNoContent: (o == null ? void 0 : o.length) === 0,
|
|
981
|
-
noContent:
|
|
982
|
-
children: o == null ? void 0 : o.map((
|
|
981
|
+
noContent: h,
|
|
982
|
+
children: o == null ? void 0 : o.map((y, g, T) => /* @__PURE__ */ Y.jsx(cn, { children: r(y, g, T) }, String(Cr(y, i, g))))
|
|
983
983
|
}
|
|
984
984
|
)
|
|
985
985
|
}
|
|
986
|
-
),
|
|
987
|
-
var
|
|
988
|
-
return
|
|
986
|
+
), lo = mr(Pn);
|
|
987
|
+
var $n = "Expected a function", dr = NaN, Ln = "[object Symbol]", An = /^\s+|\s+$/g, In = /^[-+]0x[0-9a-f]+$/i, Hn = /^0b[01]+$/i, Dn = /^0o[0-7]+$/i, Mn = parseInt, Fn = typeof he == "object" && he && he.Object === Object && he, Wn = typeof self == "object" && self && self.Object === Object && self, kn = Fn || Wn || Function("return this")(), Nn = Object.prototype, zn = Nn.toString, Yn = Math.max, Un = Math.min, Bt = function() {
|
|
988
|
+
return kn.Date.now();
|
|
989
989
|
};
|
|
990
|
-
function
|
|
991
|
-
var s,
|
|
992
|
-
if (typeof
|
|
993
|
-
throw new TypeError(
|
|
994
|
-
o =
|
|
995
|
-
function
|
|
996
|
-
var
|
|
997
|
-
return s =
|
|
998
|
-
}
|
|
999
|
-
function M(
|
|
1000
|
-
return
|
|
1001
|
-
}
|
|
1002
|
-
function W(
|
|
1003
|
-
var
|
|
1004
|
-
return
|
|
1005
|
-
}
|
|
1006
|
-
function
|
|
1007
|
-
var
|
|
1008
|
-
return
|
|
990
|
+
function Bn(r, o, i) {
|
|
991
|
+
var s, f, u, l, h, p, b = 0, y = !1, g = !1, T = !0;
|
|
992
|
+
if (typeof r != "function")
|
|
993
|
+
throw new TypeError($n);
|
|
994
|
+
o = pr(o) || 0, Vt(i) && (y = !!i.leading, g = "maxWait" in i, u = g ? Yn(pr(i.maxWait) || 0, o) : u, T = "trailing" in i ? !!i.trailing : T);
|
|
995
|
+
function O(_) {
|
|
996
|
+
var C = s, B = f;
|
|
997
|
+
return s = f = void 0, b = _, l = r.apply(B, C), l;
|
|
998
|
+
}
|
|
999
|
+
function M(_) {
|
|
1000
|
+
return b = _, h = setTimeout(F, o), y ? O(_) : l;
|
|
1001
|
+
}
|
|
1002
|
+
function W(_) {
|
|
1003
|
+
var C = _ - p, B = _ - b, ce = o - C;
|
|
1004
|
+
return g ? Un(ce, u - B) : ce;
|
|
1005
|
+
}
|
|
1006
|
+
function N(_) {
|
|
1007
|
+
var C = _ - p, B = _ - b;
|
|
1008
|
+
return p === void 0 || C >= o || C < 0 || g && B >= u;
|
|
1009
1009
|
}
|
|
1010
1010
|
function F() {
|
|
1011
|
-
var
|
|
1012
|
-
if (
|
|
1013
|
-
return P(
|
|
1014
|
-
|
|
1011
|
+
var _ = Bt();
|
|
1012
|
+
if (N(_))
|
|
1013
|
+
return P(_);
|
|
1014
|
+
h = setTimeout(F, W(_));
|
|
1015
1015
|
}
|
|
1016
|
-
function P(
|
|
1017
|
-
return
|
|
1018
|
-
}
|
|
1019
|
-
function ae() {
|
|
1020
|
-
p !== void 0 && clearTimeout(p), _ = 0, s = v = l = p = void 0;
|
|
1016
|
+
function P(_) {
|
|
1017
|
+
return h = void 0, T && s ? O(_) : (s = f = void 0, l);
|
|
1021
1018
|
}
|
|
1022
1019
|
function se() {
|
|
1023
|
-
|
|
1024
|
-
}
|
|
1025
|
-
function
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1020
|
+
h !== void 0 && clearTimeout(h), b = 0, s = p = f = h = void 0;
|
|
1021
|
+
}
|
|
1022
|
+
function ue() {
|
|
1023
|
+
return h === void 0 ? l : P(Bt());
|
|
1024
|
+
}
|
|
1025
|
+
function ee() {
|
|
1026
|
+
var _ = Bt(), C = N(_);
|
|
1027
|
+
if (s = arguments, f = this, p = _, C) {
|
|
1028
|
+
if (h === void 0)
|
|
1029
|
+
return M(p);
|
|
1030
|
+
if (g)
|
|
1031
|
+
return h = setTimeout(F, o), O(p);
|
|
1032
1032
|
}
|
|
1033
|
-
return
|
|
1033
|
+
return h === void 0 && (h = setTimeout(F, o)), l;
|
|
1034
1034
|
}
|
|
1035
|
-
return
|
|
1035
|
+
return ee.cancel = se, ee.flush = ue, ee;
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1038
|
-
var o = typeof
|
|
1039
|
-
return !!
|
|
1037
|
+
function Vt(r) {
|
|
1038
|
+
var o = typeof r;
|
|
1039
|
+
return !!r && (o == "object" || o == "function");
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1042
|
-
return !!
|
|
1041
|
+
function Gn(r) {
|
|
1042
|
+
return !!r && typeof r == "object";
|
|
1043
1043
|
}
|
|
1044
|
-
function
|
|
1045
|
-
return typeof
|
|
1044
|
+
function Vn(r) {
|
|
1045
|
+
return typeof r == "symbol" || Gn(r) && zn.call(r) == Ln;
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1048
|
-
if (typeof
|
|
1049
|
-
return
|
|
1050
|
-
if (
|
|
1051
|
-
return
|
|
1052
|
-
if (
|
|
1053
|
-
var o = typeof
|
|
1054
|
-
|
|
1055
|
-
}
|
|
1056
|
-
if (typeof
|
|
1057
|
-
return
|
|
1058
|
-
|
|
1059
|
-
var
|
|
1060
|
-
return
|
|
1047
|
+
function pr(r) {
|
|
1048
|
+
if (typeof r == "number")
|
|
1049
|
+
return r;
|
|
1050
|
+
if (Vn(r))
|
|
1051
|
+
return dr;
|
|
1052
|
+
if (Vt(r)) {
|
|
1053
|
+
var o = typeof r.valueOf == "function" ? r.valueOf() : r;
|
|
1054
|
+
r = Vt(o) ? o + "" : o;
|
|
1055
|
+
}
|
|
1056
|
+
if (typeof r != "string")
|
|
1057
|
+
return r === 0 ? r : +r;
|
|
1058
|
+
r = r.replace(An, "");
|
|
1059
|
+
var i = Hn.test(r);
|
|
1060
|
+
return i || Dn.test(r) ? Mn(r.slice(2), i ? 2 : 8) : In.test(r) ? dr : +r;
|
|
1061
1061
|
}
|
|
1062
|
-
var
|
|
1063
|
-
const
|
|
1064
|
-
delay:
|
|
1062
|
+
var Xn = Bn;
|
|
1063
|
+
const qn = /* @__PURE__ */ Er(Xn), Jn = ({
|
|
1064
|
+
delay: r = 0,
|
|
1065
1065
|
overrideScreenState: o
|
|
1066
1066
|
} = {}) => {
|
|
1067
|
-
const
|
|
1068
|
-
...
|
|
1067
|
+
const i = hr(), [s, f] = yt(() => ({
|
|
1068
|
+
...cr(i.breakpoints),
|
|
1069
1069
|
...o
|
|
1070
1070
|
}));
|
|
1071
|
-
return
|
|
1072
|
-
const
|
|
1073
|
-
|
|
1074
|
-
},
|
|
1075
|
-
return
|
|
1076
|
-
|
|
1071
|
+
return ne(() => {
|
|
1072
|
+
const u = qn(() => {
|
|
1073
|
+
f({ ...cr(i.breakpoints), ...o });
|
|
1074
|
+
}, r);
|
|
1075
|
+
return u(), window.addEventListener("resize", u), window.screen.orientation.addEventListener("change", u), () => {
|
|
1076
|
+
u.cancel(), window.removeEventListener("resize", u), window.screen.orientation.removeEventListener("change", u);
|
|
1077
1077
|
};
|
|
1078
1078
|
}, []), s;
|
|
1079
|
-
},
|
|
1080
|
-
|
|
1081
|
-
const
|
|
1082
|
-
if (!
|
|
1079
|
+
}, Or = (r, { onMoveDrag: o, onStartDrag: i, onEndDrag: s }, { isEnabled: f = !0 } = {}) => {
|
|
1080
|
+
ne(() => {
|
|
1081
|
+
const u = r.current;
|
|
1082
|
+
if (!f || !u)
|
|
1083
1083
|
return;
|
|
1084
|
-
const
|
|
1085
|
-
let
|
|
1086
|
-
const
|
|
1087
|
-
|
|
1088
|
-
},
|
|
1089
|
-
if (
|
|
1090
|
-
const
|
|
1084
|
+
const l = o(u);
|
|
1085
|
+
let h = !1, p = 0, b = 0, y = 0, g = 0, T = 0;
|
|
1086
|
+
const O = (_, C) => {
|
|
1087
|
+
i && i(u) === !1 || (h = !0, p = _, b = C, y = _, g = C, T = Date.now());
|
|
1088
|
+
}, M = () => {
|
|
1089
|
+
if (h && (h = !1, s)) {
|
|
1090
|
+
const _ = Date.now() - T, C = y - p, B = g - b;
|
|
1091
1091
|
s({
|
|
1092
|
-
deltaX:
|
|
1093
|
-
deltaY:
|
|
1092
|
+
deltaX: C,
|
|
1093
|
+
deltaY: B,
|
|
1094
1094
|
get movingSpeedX() {
|
|
1095
|
-
return
|
|
1095
|
+
return ar(C, _);
|
|
1096
1096
|
},
|
|
1097
1097
|
get movingSpeedY() {
|
|
1098
|
-
return
|
|
1098
|
+
return ar(B, _);
|
|
1099
1099
|
}
|
|
1100
|
-
},
|
|
1100
|
+
}, u);
|
|
1101
1101
|
}
|
|
1102
|
-
},
|
|
1103
|
-
|
|
1104
|
-
},
|
|
1105
|
-
if (!
|
|
1102
|
+
}, W = () => {
|
|
1103
|
+
M(), window.removeEventListener("mousemove", ue), window.removeEventListener("mouseup", W);
|
|
1104
|
+
}, N = (_, C) => {
|
|
1105
|
+
if (!h)
|
|
1106
1106
|
return;
|
|
1107
|
-
if (
|
|
1107
|
+
if (l({
|
|
1108
1108
|
get deltaX() {
|
|
1109
|
-
return
|
|
1109
|
+
return _ - y;
|
|
1110
1110
|
},
|
|
1111
1111
|
get deltaY() {
|
|
1112
|
-
return
|
|
1112
|
+
return C - g;
|
|
1113
1113
|
},
|
|
1114
1114
|
get distanceX() {
|
|
1115
|
-
return
|
|
1115
|
+
return _ - p;
|
|
1116
1116
|
},
|
|
1117
1117
|
get distanceY() {
|
|
1118
|
-
return
|
|
1118
|
+
return C - b;
|
|
1119
1119
|
},
|
|
1120
1120
|
get euclideanDistance() {
|
|
1121
|
-
return
|
|
1121
|
+
return fn(p, b, _, C);
|
|
1122
1122
|
}
|
|
1123
1123
|
}) === !1) {
|
|
1124
|
-
|
|
1124
|
+
y = _, g = C, W();
|
|
1125
1125
|
return;
|
|
1126
1126
|
}
|
|
1127
|
-
|
|
1128
|
-
},
|
|
1129
|
-
const
|
|
1130
|
-
|
|
1131
|
-
},
|
|
1132
|
-
const
|
|
1133
|
-
|
|
1134
|
-
},
|
|
1135
|
-
|
|
1136
|
-
},
|
|
1137
|
-
|
|
1138
|
-
},
|
|
1139
|
-
|
|
1127
|
+
y = _, g = C;
|
|
1128
|
+
}, F = (_) => {
|
|
1129
|
+
const C = _.touches[0];
|
|
1130
|
+
O(C.clientX, C.clientY);
|
|
1131
|
+
}, P = (_) => {
|
|
1132
|
+
const C = _.touches[0];
|
|
1133
|
+
N(C.clientX, C.clientY);
|
|
1134
|
+
}, se = () => {
|
|
1135
|
+
h = !1;
|
|
1136
|
+
}, ue = (_) => {
|
|
1137
|
+
N(_.clientX, _.clientY);
|
|
1138
|
+
}, ee = (_) => {
|
|
1139
|
+
O(_.clientX, _.clientY), window.addEventListener("mousemove", ue), window.addEventListener("mouseup", W);
|
|
1140
1140
|
};
|
|
1141
|
-
return
|
|
1141
|
+
return u.addEventListener("touchstart", F, {
|
|
1142
1142
|
passive: !0
|
|
1143
|
-
}),
|
|
1143
|
+
}), u.addEventListener("touchmove", P, {
|
|
1144
1144
|
passive: !0
|
|
1145
|
-
}),
|
|
1146
|
-
|
|
1145
|
+
}), u.addEventListener("touchend", M), u.addEventListener("touchcancel", se), u.addEventListener("mousedown", ee), () => {
|
|
1146
|
+
u.removeEventListener("touchstart", F), u.removeEventListener("touchmove", P), u.removeEventListener("touchend", M), u.removeEventListener("touchcancel", se), u.removeEventListener("mousedown", ee);
|
|
1147
1147
|
};
|
|
1148
|
-
}, [
|
|
1149
|
-
},
|
|
1150
|
-
const
|
|
1151
|
-
if (
|
|
1152
|
-
if (
|
|
1153
|
-
const
|
|
1154
|
-
|
|
1148
|
+
}, [f, i, o, s]);
|
|
1149
|
+
}, fo = (r, o) => {
|
|
1150
|
+
const i = xe(null), s = xe(null), f = xe(null), u = (p, b) => {
|
|
1151
|
+
if (i.current = p, f.current = b, !!p)
|
|
1152
|
+
if (b) {
|
|
1153
|
+
const y = ([g]) => {
|
|
1154
|
+
g.isIntersecting && o();
|
|
1155
1155
|
};
|
|
1156
|
-
s.current = new IntersectionObserver(
|
|
1157
|
-
root:
|
|
1156
|
+
s.current = new IntersectionObserver(y, {
|
|
1157
|
+
root: p,
|
|
1158
1158
|
rootMargin: "0px",
|
|
1159
1159
|
threshold: 0
|
|
1160
|
-
}), s.current.observe(
|
|
1160
|
+
}), s.current.observe(b);
|
|
1161
1161
|
} else s.current && (s.current.disconnect(), s.current = null);
|
|
1162
|
-
},
|
|
1163
|
-
(
|
|
1164
|
-
|
|
1162
|
+
}, l = Pe(
|
|
1163
|
+
(p) => {
|
|
1164
|
+
u(p, f.current);
|
|
1165
1165
|
},
|
|
1166
1166
|
[]
|
|
1167
|
-
),
|
|
1168
|
-
(
|
|
1169
|
-
|
|
1167
|
+
), h = Pe(
|
|
1168
|
+
(p) => {
|
|
1169
|
+
u(i.current, p);
|
|
1170
1170
|
},
|
|
1171
|
-
[
|
|
1171
|
+
[i, o]
|
|
1172
1172
|
);
|
|
1173
1173
|
return {
|
|
1174
|
-
scrollableContainerRef:
|
|
1175
|
-
targetRef:
|
|
1174
|
+
scrollableContainerRef: l,
|
|
1175
|
+
targetRef: h
|
|
1176
1176
|
};
|
|
1177
|
-
},
|
|
1177
|
+
}, po = (r, {
|
|
1178
1178
|
availableWindowPercentage: o = 0,
|
|
1179
|
-
onStartDrag:
|
|
1179
|
+
onStartDrag: i,
|
|
1180
1180
|
onEndDrag: s
|
|
1181
1181
|
} = {}) => {
|
|
1182
|
-
const
|
|
1183
|
-
(
|
|
1184
|
-
const
|
|
1185
|
-
if (
|
|
1182
|
+
const f = Pe(
|
|
1183
|
+
(u) => ({ deltaX: l, deltaY: h }) => {
|
|
1184
|
+
const p = u.scrollWidth - u.clientWidth, b = u.scrollHeight - u.clientHeight;
|
|
1185
|
+
if (p <= 0 && b <= 0)
|
|
1186
1186
|
return;
|
|
1187
|
-
const
|
|
1188
|
-
|
|
1187
|
+
const y = sr(
|
|
1188
|
+
u.clientWidth,
|
|
1189
1189
|
o
|
|
1190
|
-
),
|
|
1191
|
-
|
|
1190
|
+
), g = sr(
|
|
1191
|
+
u.clientHeight,
|
|
1192
1192
|
o
|
|
1193
|
-
), { translateX:
|
|
1194
|
-
let
|
|
1195
|
-
(
|
|
1193
|
+
), { translateX: T, translateY: O } = br(u), M = T + l, W = O + h;
|
|
1194
|
+
let N = !1, F = T, P = O;
|
|
1195
|
+
(l < 0 && M >= (p + y) * -1 || l > 0 && M <= y) && (F = M, N = !0), (h < 0 && W >= (b + g) * -1 || h > 0 && W <= g) && (P = W, N = !0), N && (u.style.transform = `translate(${F}px, ${P}px)`);
|
|
1196
1196
|
},
|
|
1197
1197
|
[o]
|
|
1198
1198
|
);
|
|
1199
|
-
|
|
1200
|
-
onStartDrag:
|
|
1201
|
-
onMoveDrag:
|
|
1199
|
+
Or(r, {
|
|
1200
|
+
onStartDrag: i,
|
|
1201
|
+
onMoveDrag: f,
|
|
1202
1202
|
onEndDrag: s
|
|
1203
|
-
}),
|
|
1204
|
-
const
|
|
1205
|
-
var
|
|
1206
|
-
(
|
|
1203
|
+
}), ne(() => {
|
|
1204
|
+
const u = () => {
|
|
1205
|
+
var l;
|
|
1206
|
+
(l = r.current) == null || l.style.removeProperty("transform");
|
|
1207
1207
|
};
|
|
1208
|
-
return window.addEventListener("resize",
|
|
1209
|
-
window.removeEventListener("resize",
|
|
1208
|
+
return window.addEventListener("resize", u), () => {
|
|
1209
|
+
window.removeEventListener("resize", u);
|
|
1210
|
+
};
|
|
1211
|
+
}, []);
|
|
1212
|
+
}, ho = (r, o, { isEnabled: i = !0 } = {}) => {
|
|
1213
|
+
ne(() => {
|
|
1214
|
+
if (!i)
|
|
1215
|
+
return;
|
|
1216
|
+
const s = (f) => {
|
|
1217
|
+
const u = f.code;
|
|
1218
|
+
o.includes(u) && (f.preventDefault(), r(u, f));
|
|
1219
|
+
};
|
|
1220
|
+
return document.addEventListener("keyup", s), () => {
|
|
1221
|
+
document.removeEventListener("keyup", s);
|
|
1222
|
+
};
|
|
1223
|
+
}, [r, i]);
|
|
1224
|
+
}, jr = yr(void 0), Pr = () => {
|
|
1225
|
+
const r = Xt(jr);
|
|
1226
|
+
if (!r)
|
|
1227
|
+
throw new Error(
|
|
1228
|
+
"The `useHoneyLayout()` hook must be used inside <HoneyLayoutProvider/> component!"
|
|
1229
|
+
);
|
|
1230
|
+
return r;
|
|
1231
|
+
}, vo = (r, o) => {
|
|
1232
|
+
const { registerOverlay: i, unregisterOverlay: s } = Pr(), f = xe(null);
|
|
1233
|
+
return ne(() => {
|
|
1234
|
+
if (!r)
|
|
1235
|
+
return;
|
|
1236
|
+
const u = i(o);
|
|
1237
|
+
return f.current = u, () => {
|
|
1238
|
+
f.current = null, s(u.id);
|
|
1210
1239
|
};
|
|
1211
|
-
}, []),
|
|
1212
|
-
},
|
|
1240
|
+
}, [r, o.onKeyUp]), f.current;
|
|
1241
|
+
}, go = (r, { onKeyUp: o } = {}) => {
|
|
1242
|
+
const { overlays: i } = Pr(), s = gt(
|
|
1243
|
+
() => i.find((f) => f.id === r),
|
|
1244
|
+
[i, r]
|
|
1245
|
+
);
|
|
1246
|
+
return ne(() => {
|
|
1247
|
+
if (!(!s || !o))
|
|
1248
|
+
return s.addListener("keyup", o), () => {
|
|
1249
|
+
s.removeListener("keyup", o);
|
|
1250
|
+
};
|
|
1251
|
+
}, [s, o]), s;
|
|
1252
|
+
}, $r = ge(bt)`
|
|
1213
1253
|
overflow: hidden;
|
|
1214
|
-
`,
|
|
1215
|
-
children:
|
|
1254
|
+
`, Kn = ge.div``, Zn = ({
|
|
1255
|
+
children: r,
|
|
1216
1256
|
items: o,
|
|
1217
|
-
itemKey:
|
|
1257
|
+
itemKey: i,
|
|
1218
1258
|
activeItemIndex: s,
|
|
1219
|
-
direction:
|
|
1220
|
-
...
|
|
1259
|
+
direction: f = "vertical",
|
|
1260
|
+
...u
|
|
1221
1261
|
}) => {
|
|
1222
|
-
const [
|
|
1223
|
-
|
|
1224
|
-
const
|
|
1225
|
-
const { translateX: M, translateY: W } =
|
|
1226
|
-
|
|
1262
|
+
const [l, h] = yt(o), p = xe(null);
|
|
1263
|
+
xe(-1), l == null || l.length;
|
|
1264
|
+
const b = Pe((y) => (y.parentElement.clientHeight / 2, ({ deltaX: T, deltaY: O }) => {
|
|
1265
|
+
const { translateX: M, translateY: W } = br(y), N = f === "horizontal" ? M + T : 0, F = f === "vertical" ? W + O : 0;
|
|
1266
|
+
y.style.transform = `translate(${N}px, ${F}px)`;
|
|
1227
1267
|
}), []);
|
|
1228
|
-
return
|
|
1229
|
-
onMoveDrag:
|
|
1230
|
-
}),
|
|
1231
|
-
}, []),
|
|
1232
|
-
const
|
|
1233
|
-
if (!
|
|
1268
|
+
return Or(p, {
|
|
1269
|
+
onMoveDrag: b
|
|
1270
|
+
}), ne(() => {
|
|
1271
|
+
}, []), ne(() => {
|
|
1272
|
+
const y = p.current;
|
|
1273
|
+
if (!y)
|
|
1234
1274
|
return;
|
|
1235
|
-
const
|
|
1236
|
-
|
|
1237
|
-
}, []), /* @__PURE__ */
|
|
1238
|
-
const
|
|
1239
|
-
return /* @__PURE__ */
|
|
1240
|
-
|
|
1275
|
+
const g = y.children[s];
|
|
1276
|
+
y.parentElement.clientHeight / 2, g.offsetTop + g.clientHeight / 2;
|
|
1277
|
+
}, []), /* @__PURE__ */ Y.jsx(bt, { $overflow: "hidden", "data-testid": "honey-looping-list-container", ...u, children: /* @__PURE__ */ Y.jsx($r, { ref: p, "data-testid": "honey-looping-list", children: l == null ? void 0 : l.map((y, g, T) => {
|
|
1278
|
+
const O = Cr(y, i, g);
|
|
1279
|
+
return /* @__PURE__ */ Y.jsx(
|
|
1280
|
+
Kn,
|
|
1241
1281
|
{
|
|
1242
|
-
"aria-current":
|
|
1243
|
-
children:
|
|
1282
|
+
"aria-current": g === s,
|
|
1283
|
+
children: r(y, g, T)
|
|
1244
1284
|
},
|
|
1245
|
-
String(
|
|
1285
|
+
String(O)
|
|
1246
1286
|
);
|
|
1247
1287
|
}) }) });
|
|
1248
|
-
},
|
|
1288
|
+
}, Qn = ge.div`
|
|
1249
1289
|
padding: 8px;
|
|
1250
1290
|
|
|
1251
1291
|
border-radius: 4px;
|
|
1252
|
-
border: 1px solid ${
|
|
1292
|
+
border: 1px solid ${ht("neutral.charcoalDark")};
|
|
1253
1293
|
|
|
1254
|
-
${
|
|
1294
|
+
${$r} {
|
|
1255
1295
|
padding: 0;
|
|
1256
1296
|
list-style-type: none;
|
|
1257
1297
|
|
|
@@ -1267,467 +1307,505 @@ const Vn = /* @__PURE__ */ Tr(Gn), Xn = ({
|
|
|
1267
1307
|
font-weight: bold;
|
|
1268
1308
|
font-size: 1.3rem;
|
|
1269
1309
|
|
|
1270
|
-
background-color: ${
|
|
1310
|
+
background-color: ${ht("neutral.charcoalDark")};
|
|
1271
1311
|
}
|
|
1272
1312
|
}
|
|
1273
1313
|
}
|
|
1274
|
-
`,
|
|
1275
|
-
const
|
|
1276
|
-
return /* @__PURE__ */
|
|
1277
|
-
|
|
1314
|
+
`, yo = () => {
|
|
1315
|
+
const r = Array.from(Array(12)).map((o, i) => i + 1);
|
|
1316
|
+
return /* @__PURE__ */ Y.jsx(Qn, { children: /* @__PURE__ */ Y.jsx(
|
|
1317
|
+
Zn,
|
|
1278
1318
|
{
|
|
1279
|
-
items:
|
|
1319
|
+
items: r,
|
|
1280
1320
|
itemKey: (o) => o.toString(),
|
|
1281
|
-
activeItemIndex: Math.floor(
|
|
1321
|
+
activeItemIndex: Math.floor(r.length / 2),
|
|
1282
1322
|
$maxHeight: "250px",
|
|
1283
1323
|
children: (o) => o
|
|
1284
1324
|
}
|
|
1285
1325
|
) });
|
|
1286
|
-
},
|
|
1287
|
-
children:
|
|
1326
|
+
}, mo = ({
|
|
1327
|
+
children: r,
|
|
1288
1328
|
isMount: o,
|
|
1289
|
-
unmountDelay:
|
|
1329
|
+
unmountDelay: i,
|
|
1290
1330
|
isAlwaysMounted: s = !1,
|
|
1291
|
-
isKeepAfterMount:
|
|
1331
|
+
isKeepAfterMount: f = !1
|
|
1292
1332
|
}) => {
|
|
1293
|
-
const [
|
|
1294
|
-
return
|
|
1333
|
+
const [u, l] = yt(s || o), h = xe(void 0);
|
|
1334
|
+
return ne(() => {
|
|
1295
1335
|
if (!(!o || s))
|
|
1296
|
-
return clearTimeout(
|
|
1297
|
-
|
|
1336
|
+
return clearTimeout(h.current), l(!0), () => {
|
|
1337
|
+
f || (h.current = setTimeout(() => l(!1), i));
|
|
1298
1338
|
};
|
|
1299
|
-
}, [o]),
|
|
1300
|
-
},
|
|
1301
|
-
|
|
1339
|
+
}, [o]), u ? r : null;
|
|
1340
|
+
}, eo = () => {
|
|
1341
|
+
const [r, o] = yt([]);
|
|
1342
|
+
ne(() => {
|
|
1343
|
+
if (!r.length)
|
|
1344
|
+
return;
|
|
1345
|
+
const f = (u) => {
|
|
1346
|
+
r[r.length - 1].notifyListeners("keyup", u.code, u);
|
|
1347
|
+
};
|
|
1348
|
+
return document.addEventListener("keyup", f), () => {
|
|
1349
|
+
document.removeEventListener("keyup", f);
|
|
1350
|
+
};
|
|
1351
|
+
}, [r]);
|
|
1352
|
+
const i = Pe((f) => {
|
|
1353
|
+
const u = f.id ?? gn(), l = [["keyup", f.onKeyUp]], h = {
|
|
1354
|
+
id: u,
|
|
1355
|
+
addListener: (p, b) => {
|
|
1356
|
+
l.push([p, b]);
|
|
1357
|
+
},
|
|
1358
|
+
removeListener: (p, b) => {
|
|
1359
|
+
const y = l.findIndex(
|
|
1360
|
+
([g, T]) => g === p && T === b
|
|
1361
|
+
);
|
|
1362
|
+
y !== -1 && l.splice(y, 1);
|
|
1363
|
+
},
|
|
1364
|
+
notifyListeners: (p, b, y) => {
|
|
1365
|
+
var g;
|
|
1366
|
+
(!((g = f.listenKeys) != null && g.length) || f.listenKeys.includes(b)) && (y.preventDefault(), l.forEach(([T, O]) => {
|
|
1367
|
+
T === p && O(b, y);
|
|
1368
|
+
}));
|
|
1369
|
+
}
|
|
1370
|
+
};
|
|
1371
|
+
return o((p) => [...p, h]), h;
|
|
1372
|
+
}, []), s = Pe((f) => {
|
|
1373
|
+
o(
|
|
1374
|
+
(u) => u.filter((l) => l.id !== f)
|
|
1375
|
+
);
|
|
1376
|
+
}, []);
|
|
1377
|
+
return {
|
|
1378
|
+
overlays: r,
|
|
1379
|
+
registerOverlay: i,
|
|
1380
|
+
unregisterOverlay: s
|
|
1381
|
+
};
|
|
1382
|
+
}, to = ({
|
|
1383
|
+
children: r,
|
|
1302
1384
|
mediaQueryOptions: o
|
|
1303
1385
|
}) => {
|
|
1304
|
-
const
|
|
1386
|
+
const i = hr(), s = Jn(o), { overlays: f, registerOverlay: u, unregisterOverlay: l } = eo(), h = gt(
|
|
1305
1387
|
() => ({
|
|
1306
|
-
theme:
|
|
1388
|
+
theme: i,
|
|
1307
1389
|
screenState: s,
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1390
|
+
overlays: f,
|
|
1391
|
+
registerOverlay: u,
|
|
1392
|
+
unregisterOverlay: l,
|
|
1393
|
+
resolveSpacing: (...p) => mt(...p)({ theme: i }),
|
|
1394
|
+
resolveColor: (...p) => ht(...p)({ theme: i }),
|
|
1395
|
+
resolveFont: (...p) => yn(...p)({ theme: i }),
|
|
1396
|
+
resolveDimension: (...p) => mn(...p)({ theme: i })
|
|
1312
1397
|
}),
|
|
1313
|
-
[
|
|
1398
|
+
[i, s, f, u, l]
|
|
1314
1399
|
);
|
|
1315
|
-
return /* @__PURE__ */
|
|
1316
|
-
},
|
|
1317
|
-
theme:
|
|
1400
|
+
return /* @__PURE__ */ Y.jsx(jr.Provider, { value: h, children: r });
|
|
1401
|
+
}, bo = ({
|
|
1402
|
+
theme: r,
|
|
1318
1403
|
...o
|
|
1319
|
-
}) => /* @__PURE__ */
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
return
|
|
1326
|
-
};
|
|
1327
|
-
var gt = { exports: {} };
|
|
1328
|
-
gt.exports;
|
|
1329
|
-
(function(n, o) {
|
|
1330
|
-
var a = 200, s = "__lodash_hash_undefined__", l = 800, c = 16, f = 9007199254740991, p = "[object Arguments]", v = "[object Array]", _ = "[object AsyncFunction]", m = "[object Boolean]", y = "[object Date]", w = "[object Error]", j = "[object Function]", M = "[object GeneratorFunction]", W = "[object Map]", z = "[object Number]", F = "[object Null]", P = "[object Object]", ae = "[object Proxy]", se = "[object RegExp]", R = "[object Set]", b = "[object String]", k = "[object Undefined]", ee = "[object WeakMap]", ve = "[object ArrayBuffer]", mt = "[object DataView]", bt = "[object Float32Array]", Ye = "[object Float64Array]", V = "[object Int8Array]", ne = "[object Int16Array]", ge = "[object Int32Array]", Ue = "[object Uint8Array]", Be = "[object Uint8ClampedArray]", Ge = "[object Uint16Array]", Ve = "[object Uint32Array]", Xe = /[\\^$.*+?()[\]{}|]/g, qe = /^\[object .+?Constructor\]$/, Je = /^(?:0|[1-9]\d*)$/, $ = {};
|
|
1331
|
-
$[bt] = $[Ye] = $[V] = $[ne] = $[ge] = $[Ue] = $[Be] = $[Ge] = $[Ve] = !0, $[p] = $[v] = $[ve] = $[m] = $[mt] = $[y] = $[w] = $[j] = $[W] = $[z] = $[P] = $[se] = $[R] = $[b] = $[ee] = !1;
|
|
1332
|
-
var Ke = typeof de == "object" && de && de.Object === Object && de, _t = typeof self == "object" && self && self.Object === Object && self, oe = Ke || _t || Function("return this")(), _e = o && !o.nodeType && o, te = _e && !0 && n && !n.nodeType && n, xe = te && te.exports === _e, ue = xe && Ke.process, Ze = function() {
|
|
1404
|
+
}) => /* @__PURE__ */ Y.jsx(vr, { theme: r, children: /* @__PURE__ */ Y.jsx(to, { ...o }) });
|
|
1405
|
+
var vt = { exports: {} };
|
|
1406
|
+
vt.exports;
|
|
1407
|
+
(function(r, o) {
|
|
1408
|
+
var i = 200, s = "__lodash_hash_undefined__", f = 800, u = 16, l = 9007199254740991, h = "[object Arguments]", p = "[object Array]", b = "[object AsyncFunction]", y = "[object Boolean]", g = "[object Date]", T = "[object Error]", O = "[object Function]", M = "[object GeneratorFunction]", W = "[object Map]", N = "[object Number]", F = "[object Null]", P = "[object Object]", se = "[object Proxy]", ue = "[object RegExp]", ee = "[object Set]", _ = "[object String]", C = "[object Undefined]", B = "[object WeakMap]", ce = "[object ArrayBuffer]", _t = "[object DataView]", xt = "[object Float32Array]", Ye = "[object Float64Array]", V = "[object Int8Array]", oe = "[object Int16Array]", ye = "[object Int32Array]", Ue = "[object Uint8Array]", Be = "[object Uint8ClampedArray]", Ge = "[object Uint16Array]", Ve = "[object Uint32Array]", Xe = /[\\^$.*+?()[\]{}|]/g, qe = /^\[object .+?Constructor\]$/, Je = /^(?:0|[1-9]\d*)$/, $ = {};
|
|
1409
|
+
$[xt] = $[Ye] = $[V] = $[oe] = $[ye] = $[Ue] = $[Be] = $[Ge] = $[Ve] = !0, $[h] = $[p] = $[ce] = $[y] = $[_t] = $[g] = $[T] = $[O] = $[W] = $[N] = $[P] = $[ue] = $[ee] = $[_] = $[B] = !1;
|
|
1410
|
+
var Ke = typeof he == "object" && he && he.Object === Object && he, Tt = typeof self == "object" && self && self.Object === Object && self, ie = Ke || Tt || Function("return this")(), Te = o && !o.nodeType && o, te = Te && !0 && r && !r.nodeType && r, Ee = te && te.exports === Te, le = Ee && Ke.process, Ze = function() {
|
|
1333
1411
|
try {
|
|
1334
1412
|
var e = te && te.require && te.require("util").types;
|
|
1335
|
-
return e ||
|
|
1413
|
+
return e || le && le.binding && le.binding("util");
|
|
1336
1414
|
} catch {
|
|
1337
1415
|
}
|
|
1338
1416
|
}(), $e = Ze && Ze.isTypedArray;
|
|
1339
|
-
function
|
|
1340
|
-
switch (
|
|
1417
|
+
function Et(e, n, a) {
|
|
1418
|
+
switch (a.length) {
|
|
1341
1419
|
case 0:
|
|
1342
|
-
return e.call(
|
|
1420
|
+
return e.call(n);
|
|
1343
1421
|
case 1:
|
|
1344
|
-
return e.call(
|
|
1422
|
+
return e.call(n, a[0]);
|
|
1345
1423
|
case 2:
|
|
1346
|
-
return e.call(
|
|
1424
|
+
return e.call(n, a[0], a[1]);
|
|
1347
1425
|
case 3:
|
|
1348
|
-
return e.call(
|
|
1426
|
+
return e.call(n, a[0], a[1], a[2]);
|
|
1349
1427
|
}
|
|
1350
|
-
return e.apply(
|
|
1428
|
+
return e.apply(n, a);
|
|
1351
1429
|
}
|
|
1352
|
-
function
|
|
1353
|
-
for (var
|
|
1354
|
-
|
|
1355
|
-
return
|
|
1430
|
+
function wt(e, n) {
|
|
1431
|
+
for (var a = -1, v = Array(e); ++a < e; )
|
|
1432
|
+
v[a] = n(a);
|
|
1433
|
+
return v;
|
|
1356
1434
|
}
|
|
1357
|
-
function
|
|
1358
|
-
return function(
|
|
1359
|
-
return e(
|
|
1435
|
+
function we(e) {
|
|
1436
|
+
return function(n) {
|
|
1437
|
+
return e(n);
|
|
1360
1438
|
};
|
|
1361
1439
|
}
|
|
1362
|
-
function
|
|
1363
|
-
return e == null ? void 0 : e[
|
|
1440
|
+
function me(e, n) {
|
|
1441
|
+
return e == null ? void 0 : e[n];
|
|
1364
1442
|
}
|
|
1365
|
-
function Qe(e,
|
|
1366
|
-
return function(
|
|
1367
|
-
return e(
|
|
1443
|
+
function Qe(e, n) {
|
|
1444
|
+
return function(a) {
|
|
1445
|
+
return e(n(a));
|
|
1368
1446
|
};
|
|
1369
1447
|
}
|
|
1370
|
-
var et = Array.prototype,
|
|
1371
|
-
var e = /[^.]+$/.exec(
|
|
1448
|
+
var et = Array.prototype, Se = Function.prototype, Re = Object.prototype, Le = ie["__core-js_shared__"], fe = Se.toString, re = Re.hasOwnProperty, tt = function() {
|
|
1449
|
+
var e = /[^.]+$/.exec(Le && Le.keys && Le.keys.IE_PROTO || "");
|
|
1372
1450
|
return e ? "Symbol(src)_1." + e : "";
|
|
1373
|
-
}(),
|
|
1374
|
-
"^" +
|
|
1375
|
-
),
|
|
1376
|
-
|
|
1377
|
-
var
|
|
1451
|
+
}(), Ae = Re.toString, rt = fe.call(Object), be = RegExp(
|
|
1452
|
+
"^" + fe.call(re).replace(Xe, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1453
|
+
), Ce = Ee ? ie.Buffer : void 0, Ie = ie.Symbol, He = ie.Uint8Array;
|
|
1454
|
+
Ce && Ce.allocUnsafe;
|
|
1455
|
+
var Oe = Qe(Object.getPrototypeOf, Object), nt = Object.create, St = Re.propertyIsEnumerable, Rt = et.splice, ae = Ie ? Ie.toStringTag : void 0, je = function() {
|
|
1378
1456
|
try {
|
|
1379
|
-
var e =
|
|
1457
|
+
var e = Dt(Object, "defineProperty");
|
|
1380
1458
|
return e({}, "", {}), e;
|
|
1381
1459
|
} catch {
|
|
1382
1460
|
}
|
|
1383
|
-
}(),
|
|
1461
|
+
}(), Ct = Ce ? Ce.isBuffer : void 0, ot = Math.max, De = Date.now, Me = Dt(ie, "Map"), X = Dt(Object, "create"), Fe = /* @__PURE__ */ function() {
|
|
1384
1462
|
function e() {
|
|
1385
1463
|
}
|
|
1386
|
-
return function(
|
|
1387
|
-
if (!
|
|
1464
|
+
return function(n) {
|
|
1465
|
+
if (!_e(n))
|
|
1388
1466
|
return {};
|
|
1389
1467
|
if (nt)
|
|
1390
|
-
return nt(
|
|
1391
|
-
e.prototype =
|
|
1392
|
-
var
|
|
1393
|
-
return e.prototype = void 0,
|
|
1468
|
+
return nt(n);
|
|
1469
|
+
e.prototype = n;
|
|
1470
|
+
var a = new e();
|
|
1471
|
+
return e.prototype = void 0, a;
|
|
1394
1472
|
};
|
|
1395
1473
|
}();
|
|
1396
1474
|
function J(e) {
|
|
1397
|
-
var
|
|
1398
|
-
for (this.clear(); ++
|
|
1399
|
-
var
|
|
1400
|
-
this.set(
|
|
1475
|
+
var n = -1, a = e == null ? 0 : e.length;
|
|
1476
|
+
for (this.clear(); ++n < a; ) {
|
|
1477
|
+
var v = e[n];
|
|
1478
|
+
this.set(v[0], v[1]);
|
|
1401
1479
|
}
|
|
1402
1480
|
}
|
|
1403
1481
|
function it() {
|
|
1404
1482
|
this.__data__ = X ? X(null) : {}, this.size = 0;
|
|
1405
1483
|
}
|
|
1406
|
-
function
|
|
1407
|
-
var
|
|
1408
|
-
return this.size -=
|
|
1484
|
+
function Ot(e) {
|
|
1485
|
+
var n = this.has(e) && delete this.__data__[e];
|
|
1486
|
+
return this.size -= n ? 1 : 0, n;
|
|
1409
1487
|
}
|
|
1410
1488
|
function at(e) {
|
|
1411
|
-
var
|
|
1489
|
+
var n = this.__data__;
|
|
1412
1490
|
if (X) {
|
|
1413
|
-
var
|
|
1414
|
-
return
|
|
1491
|
+
var a = n[e];
|
|
1492
|
+
return a === s ? void 0 : a;
|
|
1415
1493
|
}
|
|
1416
|
-
return re.call(
|
|
1494
|
+
return re.call(n, e) ? n[e] : void 0;
|
|
1417
1495
|
}
|
|
1418
|
-
function
|
|
1419
|
-
var
|
|
1420
|
-
return X ?
|
|
1496
|
+
function jt(e) {
|
|
1497
|
+
var n = this.__data__;
|
|
1498
|
+
return X ? n[e] !== void 0 : re.call(n, e);
|
|
1421
1499
|
}
|
|
1422
|
-
function st(e,
|
|
1423
|
-
var
|
|
1424
|
-
return this.size += this.has(e) ? 0 : 1,
|
|
1500
|
+
function st(e, n) {
|
|
1501
|
+
var a = this.__data__;
|
|
1502
|
+
return this.size += this.has(e) ? 0 : 1, a[e] = X && n === void 0 ? s : n, this;
|
|
1425
1503
|
}
|
|
1426
|
-
J.prototype.clear = it, J.prototype.delete =
|
|
1504
|
+
J.prototype.clear = it, J.prototype.delete = Ot, J.prototype.get = at, J.prototype.has = jt, J.prototype.set = st;
|
|
1427
1505
|
function q(e) {
|
|
1428
|
-
var
|
|
1429
|
-
for (this.clear(); ++
|
|
1430
|
-
var
|
|
1431
|
-
this.set(
|
|
1506
|
+
var n = -1, a = e == null ? 0 : e.length;
|
|
1507
|
+
for (this.clear(); ++n < a; ) {
|
|
1508
|
+
var v = e[n];
|
|
1509
|
+
this.set(v[0], v[1]);
|
|
1432
1510
|
}
|
|
1433
1511
|
}
|
|
1434
|
-
function
|
|
1512
|
+
function Pt() {
|
|
1435
1513
|
this.__data__ = [], this.size = 0;
|
|
1436
1514
|
}
|
|
1437
|
-
function
|
|
1438
|
-
var
|
|
1439
|
-
if (
|
|
1515
|
+
function $t(e) {
|
|
1516
|
+
var n = this.__data__, a = K(n, e);
|
|
1517
|
+
if (a < 0)
|
|
1440
1518
|
return !1;
|
|
1441
|
-
var
|
|
1442
|
-
return
|
|
1519
|
+
var v = n.length - 1;
|
|
1520
|
+
return a == v ? n.pop() : Rt.call(n, a, 1), --this.size, !0;
|
|
1443
1521
|
}
|
|
1444
1522
|
function ut(e) {
|
|
1445
|
-
var
|
|
1446
|
-
return
|
|
1523
|
+
var n = this.__data__, a = K(n, e);
|
|
1524
|
+
return a < 0 ? void 0 : n[a][1];
|
|
1447
1525
|
}
|
|
1448
1526
|
function ct(e) {
|
|
1449
1527
|
return K(this.__data__, e) > -1;
|
|
1450
1528
|
}
|
|
1451
|
-
function
|
|
1452
|
-
var
|
|
1453
|
-
return
|
|
1529
|
+
function Lt(e, n) {
|
|
1530
|
+
var a = this.__data__, v = K(a, e);
|
|
1531
|
+
return v < 0 ? (++this.size, a.push([e, n])) : a[v][1] = n, this;
|
|
1454
1532
|
}
|
|
1455
|
-
q.prototype.clear =
|
|
1456
|
-
function
|
|
1457
|
-
var
|
|
1458
|
-
for (this.clear(); ++
|
|
1459
|
-
var
|
|
1460
|
-
this.set(
|
|
1533
|
+
q.prototype.clear = Pt, q.prototype.delete = $t, q.prototype.get = ut, q.prototype.has = ct, q.prototype.set = Lt;
|
|
1534
|
+
function de(e) {
|
|
1535
|
+
var n = -1, a = e == null ? 0 : e.length;
|
|
1536
|
+
for (this.clear(); ++n < a; ) {
|
|
1537
|
+
var v = e[n];
|
|
1538
|
+
this.set(v[0], v[1]);
|
|
1461
1539
|
}
|
|
1462
1540
|
}
|
|
1463
|
-
function
|
|
1541
|
+
function At() {
|
|
1464
1542
|
this.size = 0, this.__data__ = {
|
|
1465
1543
|
hash: new J(),
|
|
1466
1544
|
map: new (Me || q)(),
|
|
1467
1545
|
string: new J()
|
|
1468
1546
|
};
|
|
1469
1547
|
}
|
|
1470
|
-
function
|
|
1471
|
-
var
|
|
1472
|
-
return this.size -=
|
|
1548
|
+
function It(e) {
|
|
1549
|
+
var n = ft(this, e).delete(e);
|
|
1550
|
+
return this.size -= n ? 1 : 0, n;
|
|
1473
1551
|
}
|
|
1474
1552
|
function t(e) {
|
|
1475
|
-
return
|
|
1553
|
+
return ft(this, e).get(e);
|
|
1476
1554
|
}
|
|
1477
|
-
function
|
|
1478
|
-
return
|
|
1555
|
+
function c(e) {
|
|
1556
|
+
return ft(this, e).has(e);
|
|
1479
1557
|
}
|
|
1480
|
-
function d(e,
|
|
1481
|
-
var
|
|
1482
|
-
return
|
|
1558
|
+
function d(e, n) {
|
|
1559
|
+
var a = ft(this, e), v = a.size;
|
|
1560
|
+
return a.set(e, n), this.size += a.size == v ? 0 : 1, this;
|
|
1483
1561
|
}
|
|
1484
|
-
|
|
1485
|
-
function
|
|
1486
|
-
var
|
|
1487
|
-
this.size =
|
|
1562
|
+
de.prototype.clear = At, de.prototype.delete = It, de.prototype.get = t, de.prototype.has = c, de.prototype.set = d;
|
|
1563
|
+
function m(e) {
|
|
1564
|
+
var n = this.__data__ = new q(e);
|
|
1565
|
+
this.size = n.size;
|
|
1488
1566
|
}
|
|
1489
1567
|
function S() {
|
|
1490
1568
|
this.__data__ = new q(), this.size = 0;
|
|
1491
1569
|
}
|
|
1492
|
-
function
|
|
1493
|
-
var
|
|
1494
|
-
return this.size =
|
|
1570
|
+
function j(e) {
|
|
1571
|
+
var n = this.__data__, a = n.delete(e);
|
|
1572
|
+
return this.size = n.size, a;
|
|
1495
1573
|
}
|
|
1496
|
-
function
|
|
1574
|
+
function E(e) {
|
|
1497
1575
|
return this.__data__.get(e);
|
|
1498
1576
|
}
|
|
1499
1577
|
function x(e) {
|
|
1500
1578
|
return this.__data__.has(e);
|
|
1501
1579
|
}
|
|
1502
|
-
function
|
|
1503
|
-
var
|
|
1504
|
-
if (
|
|
1505
|
-
var
|
|
1506
|
-
if (!Me ||
|
|
1507
|
-
return
|
|
1508
|
-
|
|
1580
|
+
function k(e, n) {
|
|
1581
|
+
var a = this.__data__;
|
|
1582
|
+
if (a instanceof q) {
|
|
1583
|
+
var v = a.__data__;
|
|
1584
|
+
if (!Me || v.length < i - 1)
|
|
1585
|
+
return v.push([e, n]), this.size = ++a.size, this;
|
|
1586
|
+
a = this.__data__ = new de(v);
|
|
1509
1587
|
}
|
|
1510
|
-
return
|
|
1588
|
+
return a.set(e, n), this.size = a.size, this;
|
|
1511
1589
|
}
|
|
1512
|
-
|
|
1513
|
-
function D(e,
|
|
1514
|
-
var
|
|
1590
|
+
m.prototype.clear = S, m.prototype.delete = j, m.prototype.get = E, m.prototype.has = x, m.prototype.set = k;
|
|
1591
|
+
function D(e, n) {
|
|
1592
|
+
var a = Wt(e), v = !a && Ft(e), w = !a && !v && Qt(e), L = !a && !v && !w && tr(e), I = a || v || w || L, R = I ? wt(e.length, String) : [], H = R.length;
|
|
1515
1593
|
for (var Q in e)
|
|
1516
1594
|
I && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
1517
1595
|
(Q == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
return
|
|
1522
|
-
}
|
|
1523
|
-
function
|
|
1524
|
-
(
|
|
1525
|
-
}
|
|
1526
|
-
function
|
|
1527
|
-
var
|
|
1528
|
-
(!(re.call(e,
|
|
1529
|
-
}
|
|
1530
|
-
function K(e,
|
|
1531
|
-
for (var
|
|
1532
|
-
if (dt(e[
|
|
1533
|
-
return
|
|
1596
|
+
w && (Q == "offset" || Q == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
1597
|
+
L && (Q == "buffer" || Q == "byteLength" || Q == "byteOffset") || // Skip index properties.
|
|
1598
|
+
Kt(Q, H)) || R.push(Q);
|
|
1599
|
+
return R;
|
|
1600
|
+
}
|
|
1601
|
+
function A(e, n, a) {
|
|
1602
|
+
(a !== void 0 && !dt(e[n], a) || a === void 0 && !(n in e)) && Z(e, n, a);
|
|
1603
|
+
}
|
|
1604
|
+
function U(e, n, a) {
|
|
1605
|
+
var v = e[n];
|
|
1606
|
+
(!(re.call(e, n) && dt(v, a)) || a === void 0 && !(n in e)) && Z(e, n, a);
|
|
1607
|
+
}
|
|
1608
|
+
function K(e, n) {
|
|
1609
|
+
for (var a = e.length; a--; )
|
|
1610
|
+
if (dt(e[a][0], n))
|
|
1611
|
+
return a;
|
|
1534
1612
|
return -1;
|
|
1535
1613
|
}
|
|
1536
|
-
function Z(e,
|
|
1537
|
-
|
|
1614
|
+
function Z(e, n, a) {
|
|
1615
|
+
n == "__proto__" && je ? je(e, n, {
|
|
1538
1616
|
configurable: !0,
|
|
1539
1617
|
enumerable: !0,
|
|
1540
|
-
value:
|
|
1618
|
+
value: a,
|
|
1541
1619
|
writable: !0
|
|
1542
|
-
}) : e[
|
|
1620
|
+
}) : e[n] = a;
|
|
1543
1621
|
}
|
|
1544
|
-
var
|
|
1545
|
-
function
|
|
1546
|
-
return e == null ? e === void 0 ?
|
|
1622
|
+
var z = Yr();
|
|
1623
|
+
function pe(e) {
|
|
1624
|
+
return e == null ? e === void 0 ? C : F : ae && ae in Object(e) ? Ur(e) : Jr(e);
|
|
1547
1625
|
}
|
|
1548
|
-
function
|
|
1549
|
-
return We(e) &&
|
|
1626
|
+
function lt(e) {
|
|
1627
|
+
return We(e) && pe(e) == h;
|
|
1550
1628
|
}
|
|
1551
|
-
function
|
|
1552
|
-
if (!
|
|
1629
|
+
function Ht(e) {
|
|
1630
|
+
if (!_e(e) || Xr(e))
|
|
1553
1631
|
return !1;
|
|
1554
|
-
var
|
|
1555
|
-
return
|
|
1556
|
-
}
|
|
1557
|
-
function
|
|
1558
|
-
return We(e) &&
|
|
1559
|
-
}
|
|
1560
|
-
function
|
|
1561
|
-
if (!
|
|
1562
|
-
return
|
|
1563
|
-
var
|
|
1564
|
-
for (var
|
|
1565
|
-
|
|
1566
|
-
return
|
|
1567
|
-
}
|
|
1568
|
-
function
|
|
1569
|
-
e !==
|
|
1570
|
-
if (
|
|
1571
|
-
|
|
1632
|
+
var n = Nt(e) ? be : qe;
|
|
1633
|
+
return n.test(en(e));
|
|
1634
|
+
}
|
|
1635
|
+
function Lr(e) {
|
|
1636
|
+
return We(e) && er(e.length) && !!$[pe(e)];
|
|
1637
|
+
}
|
|
1638
|
+
function Ar(e) {
|
|
1639
|
+
if (!_e(e))
|
|
1640
|
+
return qr(e);
|
|
1641
|
+
var n = Zt(e), a = [];
|
|
1642
|
+
for (var v in e)
|
|
1643
|
+
v == "constructor" && (n || !re.call(e, v)) || a.push(v);
|
|
1644
|
+
return a;
|
|
1645
|
+
}
|
|
1646
|
+
function Jt(e, n, a, v, w) {
|
|
1647
|
+
e !== n && z(n, function(L, I) {
|
|
1648
|
+
if (w || (w = new m()), _e(L))
|
|
1649
|
+
Ir(e, n, I, a, Jt, v, w);
|
|
1572
1650
|
else {
|
|
1573
|
-
var
|
|
1574
|
-
|
|
1651
|
+
var R = v ? v(Mt(e, I), L, I + "", e, n, w) : void 0;
|
|
1652
|
+
R === void 0 && (R = L), A(e, I, R);
|
|
1575
1653
|
}
|
|
1576
|
-
},
|
|
1654
|
+
}, rr);
|
|
1577
1655
|
}
|
|
1578
|
-
function
|
|
1579
|
-
var
|
|
1656
|
+
function Ir(e, n, a, v, w, L, I) {
|
|
1657
|
+
var R = Mt(e, a), H = Mt(n, a), Q = I.get(H);
|
|
1580
1658
|
if (Q) {
|
|
1581
|
-
|
|
1659
|
+
A(e, a, Q);
|
|
1582
1660
|
return;
|
|
1583
1661
|
}
|
|
1584
|
-
var G =
|
|
1585
|
-
if (
|
|
1586
|
-
var
|
|
1587
|
-
G = H,
|
|
1662
|
+
var G = L ? L(R, H, a + "", e, n, I) : void 0, ke = G === void 0;
|
|
1663
|
+
if (ke) {
|
|
1664
|
+
var zt = Wt(H), Yt = !zt && Qt(H), or = !zt && !Yt && tr(H);
|
|
1665
|
+
G = H, zt || Yt || or ? Wt(R) ? G = R : tn(R) ? G = kr(R) : Yt ? (ke = !1, G = Mr(H)) : or ? (ke = !1, G = Wr(H)) : G = [] : rn(H) || Ft(H) ? (G = R, Ft(R) ? G = nn(R) : (!_e(R) || Nt(R)) && (G = Br(H))) : ke = !1;
|
|
1588
1666
|
}
|
|
1589
|
-
|
|
1667
|
+
ke && (I.set(H, G), w(G, H, v, L, I), I.delete(H)), A(e, a, G);
|
|
1590
1668
|
}
|
|
1591
|
-
function
|
|
1592
|
-
return
|
|
1669
|
+
function Hr(e, n) {
|
|
1670
|
+
return Zr(Kr(e, n, nr), e + "");
|
|
1593
1671
|
}
|
|
1594
|
-
var
|
|
1595
|
-
return
|
|
1672
|
+
var Dr = je ? function(e, n) {
|
|
1673
|
+
return je(e, "toString", {
|
|
1596
1674
|
configurable: !0,
|
|
1597
1675
|
enumerable: !1,
|
|
1598
|
-
value:
|
|
1676
|
+
value: an(n),
|
|
1599
1677
|
writable: !0
|
|
1600
1678
|
});
|
|
1601
|
-
} :
|
|
1602
|
-
function
|
|
1679
|
+
} : nr;
|
|
1680
|
+
function Mr(e, n) {
|
|
1603
1681
|
return e.slice();
|
|
1604
1682
|
}
|
|
1605
|
-
function
|
|
1606
|
-
var
|
|
1607
|
-
return new He(
|
|
1683
|
+
function Fr(e) {
|
|
1684
|
+
var n = new e.constructor(e.byteLength);
|
|
1685
|
+
return new He(n).set(new He(e)), n;
|
|
1608
1686
|
}
|
|
1609
|
-
function
|
|
1610
|
-
var
|
|
1611
|
-
return new e.constructor(
|
|
1687
|
+
function Wr(e, n) {
|
|
1688
|
+
var a = Fr(e.buffer);
|
|
1689
|
+
return new e.constructor(a, e.byteOffset, e.length);
|
|
1612
1690
|
}
|
|
1613
|
-
function
|
|
1614
|
-
var
|
|
1615
|
-
for (
|
|
1616
|
-
|
|
1617
|
-
return
|
|
1691
|
+
function kr(e, n) {
|
|
1692
|
+
var a = -1, v = e.length;
|
|
1693
|
+
for (n || (n = Array(v)); ++a < v; )
|
|
1694
|
+
n[a] = e[a];
|
|
1695
|
+
return n;
|
|
1618
1696
|
}
|
|
1619
|
-
function
|
|
1620
|
-
var
|
|
1621
|
-
|
|
1622
|
-
for (var
|
|
1623
|
-
var
|
|
1624
|
-
H === void 0 && (H = e[
|
|
1697
|
+
function Nr(e, n, a, v) {
|
|
1698
|
+
var w = !a;
|
|
1699
|
+
a || (a = {});
|
|
1700
|
+
for (var L = -1, I = n.length; ++L < I; ) {
|
|
1701
|
+
var R = n[L], H = void 0;
|
|
1702
|
+
H === void 0 && (H = e[R]), w ? Z(a, R, H) : U(a, R, H);
|
|
1625
1703
|
}
|
|
1626
|
-
return
|
|
1627
|
-
}
|
|
1628
|
-
function
|
|
1629
|
-
return
|
|
1630
|
-
var
|
|
1631
|
-
for (
|
|
1632
|
-
var
|
|
1633
|
-
|
|
1704
|
+
return a;
|
|
1705
|
+
}
|
|
1706
|
+
function zr(e) {
|
|
1707
|
+
return Hr(function(n, a) {
|
|
1708
|
+
var v = -1, w = a.length, L = w > 1 ? a[w - 1] : void 0, I = w > 2 ? a[2] : void 0;
|
|
1709
|
+
for (L = e.length > 3 && typeof L == "function" ? (w--, L) : void 0, I && Gr(a[0], a[1], I) && (L = w < 3 ? void 0 : L, w = 1), n = Object(n); ++v < w; ) {
|
|
1710
|
+
var R = a[v];
|
|
1711
|
+
R && e(n, R, v, L);
|
|
1634
1712
|
}
|
|
1635
|
-
return
|
|
1713
|
+
return n;
|
|
1636
1714
|
});
|
|
1637
1715
|
}
|
|
1638
|
-
function
|
|
1639
|
-
return function(
|
|
1640
|
-
for (var
|
|
1641
|
-
var H = I[++
|
|
1642
|
-
if (
|
|
1716
|
+
function Yr(e) {
|
|
1717
|
+
return function(n, a, v) {
|
|
1718
|
+
for (var w = -1, L = Object(n), I = v(n), R = I.length; R--; ) {
|
|
1719
|
+
var H = I[++w];
|
|
1720
|
+
if (a(L[H], H, L) === !1)
|
|
1643
1721
|
break;
|
|
1644
1722
|
}
|
|
1645
|
-
return
|
|
1723
|
+
return n;
|
|
1646
1724
|
};
|
|
1647
1725
|
}
|
|
1648
|
-
function
|
|
1649
|
-
var
|
|
1650
|
-
return
|
|
1726
|
+
function ft(e, n) {
|
|
1727
|
+
var a = e.__data__;
|
|
1728
|
+
return Vr(n) ? a[typeof n == "string" ? "string" : "hash"] : a.map;
|
|
1651
1729
|
}
|
|
1652
|
-
function
|
|
1653
|
-
var
|
|
1654
|
-
return
|
|
1730
|
+
function Dt(e, n) {
|
|
1731
|
+
var a = me(e, n);
|
|
1732
|
+
return Ht(a) ? a : void 0;
|
|
1655
1733
|
}
|
|
1656
|
-
function
|
|
1657
|
-
var
|
|
1734
|
+
function Ur(e) {
|
|
1735
|
+
var n = re.call(e, ae), a = e[ae];
|
|
1658
1736
|
try {
|
|
1659
|
-
e[
|
|
1660
|
-
var
|
|
1737
|
+
e[ae] = void 0;
|
|
1738
|
+
var v = !0;
|
|
1661
1739
|
} catch {
|
|
1662
1740
|
}
|
|
1663
|
-
var
|
|
1664
|
-
return
|
|
1741
|
+
var w = Ae.call(e);
|
|
1742
|
+
return v && (n ? e[ae] = a : delete e[ae]), w;
|
|
1665
1743
|
}
|
|
1666
|
-
function
|
|
1667
|
-
return typeof e.constructor == "function" && !
|
|
1744
|
+
function Br(e) {
|
|
1745
|
+
return typeof e.constructor == "function" && !Zt(e) ? Fe(Oe(e)) : {};
|
|
1668
1746
|
}
|
|
1669
|
-
function
|
|
1670
|
-
var
|
|
1671
|
-
return
|
|
1747
|
+
function Kt(e, n) {
|
|
1748
|
+
var a = typeof e;
|
|
1749
|
+
return n = n ?? l, !!n && (a == "number" || a != "symbol" && Je.test(e)) && e > -1 && e % 1 == 0 && e < n;
|
|
1672
1750
|
}
|
|
1673
|
-
function
|
|
1674
|
-
if (!
|
|
1751
|
+
function Gr(e, n, a) {
|
|
1752
|
+
if (!_e(a))
|
|
1675
1753
|
return !1;
|
|
1676
|
-
var
|
|
1677
|
-
return (
|
|
1754
|
+
var v = typeof n;
|
|
1755
|
+
return (v == "number" ? kt(a) && Kt(n, a.length) : v == "string" && n in a) ? dt(a[n], e) : !1;
|
|
1678
1756
|
}
|
|
1679
|
-
function
|
|
1680
|
-
var
|
|
1681
|
-
return
|
|
1757
|
+
function Vr(e) {
|
|
1758
|
+
var n = typeof e;
|
|
1759
|
+
return n == "string" || n == "number" || n == "symbol" || n == "boolean" ? e !== "__proto__" : e === null;
|
|
1682
1760
|
}
|
|
1683
|
-
function
|
|
1761
|
+
function Xr(e) {
|
|
1684
1762
|
return !!tt && tt in e;
|
|
1685
1763
|
}
|
|
1686
|
-
function
|
|
1687
|
-
var
|
|
1688
|
-
return e ===
|
|
1764
|
+
function Zt(e) {
|
|
1765
|
+
var n = e && e.constructor, a = typeof n == "function" && n.prototype || Re;
|
|
1766
|
+
return e === a;
|
|
1689
1767
|
}
|
|
1690
|
-
function
|
|
1691
|
-
var
|
|
1768
|
+
function qr(e) {
|
|
1769
|
+
var n = [];
|
|
1692
1770
|
if (e != null)
|
|
1693
|
-
for (var
|
|
1694
|
-
|
|
1695
|
-
return
|
|
1771
|
+
for (var a in Object(e))
|
|
1772
|
+
n.push(a);
|
|
1773
|
+
return n;
|
|
1696
1774
|
}
|
|
1697
|
-
function
|
|
1698
|
-
return
|
|
1699
|
-
}
|
|
1700
|
-
function
|
|
1701
|
-
return
|
|
1702
|
-
for (var
|
|
1703
|
-
I[
|
|
1704
|
-
|
|
1705
|
-
for (var
|
|
1706
|
-
|
|
1707
|
-
return
|
|
1775
|
+
function Jr(e) {
|
|
1776
|
+
return Ae.call(e);
|
|
1777
|
+
}
|
|
1778
|
+
function Kr(e, n, a) {
|
|
1779
|
+
return n = ot(n === void 0 ? e.length - 1 : n, 0), function() {
|
|
1780
|
+
for (var v = arguments, w = -1, L = ot(v.length - n, 0), I = Array(L); ++w < L; )
|
|
1781
|
+
I[w] = v[n + w];
|
|
1782
|
+
w = -1;
|
|
1783
|
+
for (var R = Array(n + 1); ++w < n; )
|
|
1784
|
+
R[w] = v[w];
|
|
1785
|
+
return R[n] = a(I), Et(e, this, R);
|
|
1708
1786
|
};
|
|
1709
1787
|
}
|
|
1710
|
-
function
|
|
1711
|
-
if (!(
|
|
1712
|
-
return e[
|
|
1788
|
+
function Mt(e, n) {
|
|
1789
|
+
if (!(n === "constructor" && typeof e[n] == "function") && n != "__proto__")
|
|
1790
|
+
return e[n];
|
|
1713
1791
|
}
|
|
1714
|
-
var
|
|
1715
|
-
function
|
|
1716
|
-
var
|
|
1792
|
+
var Zr = Qr(Dr);
|
|
1793
|
+
function Qr(e) {
|
|
1794
|
+
var n = 0, a = 0;
|
|
1717
1795
|
return function() {
|
|
1718
|
-
var
|
|
1719
|
-
if (
|
|
1720
|
-
if (++
|
|
1796
|
+
var v = De(), w = u - (v - a);
|
|
1797
|
+
if (a = v, w > 0) {
|
|
1798
|
+
if (++n >= f)
|
|
1721
1799
|
return arguments[0];
|
|
1722
1800
|
} else
|
|
1723
|
-
|
|
1801
|
+
n = 0;
|
|
1724
1802
|
return e.apply(void 0, arguments);
|
|
1725
1803
|
};
|
|
1726
1804
|
}
|
|
1727
|
-
function
|
|
1805
|
+
function en(e) {
|
|
1728
1806
|
if (e != null) {
|
|
1729
1807
|
try {
|
|
1730
|
-
return
|
|
1808
|
+
return fe.call(e);
|
|
1731
1809
|
} catch {
|
|
1732
1810
|
}
|
|
1733
1811
|
try {
|
|
@@ -1737,118 +1815,122 @@ gt.exports;
|
|
|
1737
1815
|
}
|
|
1738
1816
|
return "";
|
|
1739
1817
|
}
|
|
1740
|
-
function dt(e,
|
|
1741
|
-
return e ===
|
|
1818
|
+
function dt(e, n) {
|
|
1819
|
+
return e === n || e !== e && n !== n;
|
|
1742
1820
|
}
|
|
1743
|
-
var
|
|
1821
|
+
var Ft = lt(/* @__PURE__ */ function() {
|
|
1744
1822
|
return arguments;
|
|
1745
|
-
}()) ?
|
|
1746
|
-
return We(e) && re.call(e, "callee") && !
|
|
1747
|
-
},
|
|
1748
|
-
function
|
|
1749
|
-
return e != null &&
|
|
1823
|
+
}()) ? lt : function(e) {
|
|
1824
|
+
return We(e) && re.call(e, "callee") && !St.call(e, "callee");
|
|
1825
|
+
}, Wt = Array.isArray;
|
|
1826
|
+
function kt(e) {
|
|
1827
|
+
return e != null && er(e.length) && !Nt(e);
|
|
1750
1828
|
}
|
|
1751
|
-
function
|
|
1752
|
-
return We(e) &&
|
|
1829
|
+
function tn(e) {
|
|
1830
|
+
return We(e) && kt(e);
|
|
1753
1831
|
}
|
|
1754
|
-
var
|
|
1755
|
-
function
|
|
1756
|
-
if (!
|
|
1832
|
+
var Qt = Ct || sn;
|
|
1833
|
+
function Nt(e) {
|
|
1834
|
+
if (!_e(e))
|
|
1757
1835
|
return !1;
|
|
1758
|
-
var
|
|
1759
|
-
return
|
|
1836
|
+
var n = pe(e);
|
|
1837
|
+
return n == O || n == M || n == b || n == se;
|
|
1760
1838
|
}
|
|
1761
|
-
function
|
|
1762
|
-
return typeof e == "number" && e > -1 && e % 1 == 0 && e <=
|
|
1839
|
+
function er(e) {
|
|
1840
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= l;
|
|
1763
1841
|
}
|
|
1764
|
-
function
|
|
1765
|
-
var
|
|
1766
|
-
return e != null && (
|
|
1842
|
+
function _e(e) {
|
|
1843
|
+
var n = typeof e;
|
|
1844
|
+
return e != null && (n == "object" || n == "function");
|
|
1767
1845
|
}
|
|
1768
1846
|
function We(e) {
|
|
1769
1847
|
return e != null && typeof e == "object";
|
|
1770
1848
|
}
|
|
1771
|
-
function
|
|
1772
|
-
if (!We(e) ||
|
|
1849
|
+
function rn(e) {
|
|
1850
|
+
if (!We(e) || pe(e) != P)
|
|
1773
1851
|
return !1;
|
|
1774
|
-
var
|
|
1775
|
-
if (
|
|
1852
|
+
var n = Oe(e);
|
|
1853
|
+
if (n === null)
|
|
1776
1854
|
return !0;
|
|
1777
|
-
var
|
|
1778
|
-
return typeof
|
|
1855
|
+
var a = re.call(n, "constructor") && n.constructor;
|
|
1856
|
+
return typeof a == "function" && a instanceof a && fe.call(a) == rt;
|
|
1779
1857
|
}
|
|
1780
|
-
var
|
|
1781
|
-
function
|
|
1782
|
-
return
|
|
1858
|
+
var tr = $e ? we($e) : Lr;
|
|
1859
|
+
function nn(e) {
|
|
1860
|
+
return Nr(e, rr(e));
|
|
1783
1861
|
}
|
|
1784
|
-
function
|
|
1785
|
-
return
|
|
1862
|
+
function rr(e) {
|
|
1863
|
+
return kt(e) ? D(e) : Ar(e);
|
|
1786
1864
|
}
|
|
1787
|
-
var
|
|
1788
|
-
|
|
1865
|
+
var on = zr(function(e, n, a) {
|
|
1866
|
+
Jt(e, n, a);
|
|
1789
1867
|
});
|
|
1790
|
-
function
|
|
1868
|
+
function an(e) {
|
|
1791
1869
|
return function() {
|
|
1792
1870
|
return e;
|
|
1793
1871
|
};
|
|
1794
1872
|
}
|
|
1795
|
-
function
|
|
1873
|
+
function nr(e) {
|
|
1796
1874
|
return e;
|
|
1797
1875
|
}
|
|
1798
|
-
function
|
|
1876
|
+
function sn() {
|
|
1799
1877
|
return !1;
|
|
1800
1878
|
}
|
|
1801
|
-
|
|
1802
|
-
})(
|
|
1803
|
-
var
|
|
1804
|
-
const
|
|
1805
|
-
theme:
|
|
1879
|
+
r.exports = on;
|
|
1880
|
+
})(vt, vt.exports);
|
|
1881
|
+
var ro = vt.exports;
|
|
1882
|
+
const no = /* @__PURE__ */ Er(ro), _o = ({
|
|
1883
|
+
theme: r,
|
|
1806
1884
|
...o
|
|
1807
1885
|
}) => {
|
|
1808
|
-
const
|
|
1809
|
-
return /* @__PURE__ */
|
|
1886
|
+
const i = Xt(un), s = gt(() => no(i, r), [i, r]);
|
|
1887
|
+
return /* @__PURE__ */ Y.jsx(vr, { theme: s, ...o });
|
|
1810
1888
|
};
|
|
1811
1889
|
export {
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1890
|
+
bt as HoneyBox,
|
|
1891
|
+
qt as HoneyFlexBox,
|
|
1892
|
+
uo as HoneyGrid,
|
|
1893
|
+
co as HoneyGridColumn,
|
|
1894
|
+
wr as HoneyGridColumnStyled,
|
|
1895
|
+
Rr as HoneyGridContext,
|
|
1896
|
+
bo as HoneyLayoutProvider,
|
|
1897
|
+
_o as HoneyLayoutThemeOverride,
|
|
1898
|
+
mo as HoneyLazyContent,
|
|
1899
|
+
lo as HoneyList,
|
|
1900
|
+
Zn as HoneyLoopingList,
|
|
1901
|
+
yo as HoneyLoopingListExample,
|
|
1902
|
+
Kn as HoneyLoopingListItemStyled,
|
|
1903
|
+
$r as HoneyLoopingListStyled,
|
|
1904
|
+
On as HoneyStatusContent,
|
|
1827
1905
|
pt as applyBreakpointStyles,
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1906
|
+
Tr as bpMedia,
|
|
1907
|
+
fn as calculateEuclideanDistance,
|
|
1908
|
+
ar as calculateMovingSpeed,
|
|
1909
|
+
sr as calculatePercentage,
|
|
1910
|
+
ln as camelToDashCase,
|
|
1911
|
+
dn as convertHexToHexWithAlpha,
|
|
1912
|
+
xr as createStyles,
|
|
1913
|
+
ao as filterFlattenedItems,
|
|
1914
|
+
pn as flattenNestedList,
|
|
1915
|
+
gn as generateUniqueId,
|
|
1837
1916
|
Cr as getHoneyListItemId,
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1917
|
+
br as getTransformationValues,
|
|
1918
|
+
ur as media,
|
|
1919
|
+
Ut as pxToRem,
|
|
1920
|
+
ht as resolveColor,
|
|
1921
|
+
mn as resolveDimension,
|
|
1922
|
+
yn as resolveFont,
|
|
1923
|
+
cr as resolveScreenState,
|
|
1924
|
+
mt as resolveSpacing,
|
|
1925
|
+
so as searchFlattenedItems,
|
|
1926
|
+
ir as splitStringIntoWords,
|
|
1927
|
+
Cn as useCurrentHoneyGrid,
|
|
1928
|
+
ho as useHoneyDocumentKeyUpHandler,
|
|
1929
|
+
Or as useHoneyDrag,
|
|
1930
|
+
fo as useHoneyInfiniteScroll,
|
|
1931
|
+
Pr as useHoneyLayout,
|
|
1932
|
+
Jn as useHoneyMediaQuery,
|
|
1933
|
+
go as useHoneyOverlay,
|
|
1934
|
+
po as useHoneySyntheticScrollableContainer,
|
|
1935
|
+
vo as useRegisterHoneyOverlay
|
|
1854
1936
|
};
|