@abyss-project/commons-front-core 13.3.0 → 14.0.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/catalog/captures-plan.ts +4 -1
- package/catalog/catalog-entries.ts +6 -1
- package/catalog/expected-error.ts +6 -0
- package/catalog/pages/CookieConsent.tsx +38 -0
- package/catalog/pages/ErrorBoundary.tsx +22 -0
- package/catalog/pages/PasswordField.tsx +62 -0
- package/catalog/pages/Toast.tsx +17 -6
- package/catalog/pages/index.ts +6 -0
- package/catalog/specs/captures.spec.ts +10 -0
- package/catalog/specs/catalog-page.ts +6 -1
- package/catalog/specs/write-capture-index.ts +1 -0
- package/dist/{AbyssCloud-D_AbU9k7.js → AbyssCloud-B3rMelRi.js} +636 -712
- package/dist/CookieConsentSettings-DyJGEnVA.js +505 -0
- package/dist/{use-rich-intl.hook-BETUyCkW.js → Surface-B_J_I_1i.js} +700 -147
- package/dist/Tabs-_TzugjHZ.js +1941 -0
- package/dist/auth/components/AuthHeroLayout/auth-hero-gradient.d.ts +18 -0
- package/dist/auth/components/shared/AuthLoadingScreen.component.d.ts +5 -0
- package/dist/auth/components/shared/use-async-resource.hook.d.ts +4 -1
- package/dist/auth/components/shared/use-async-resource.hook.spec.d.ts +1 -0
- package/dist/components/business/CookieConsent/AbyssCookieConsentProvider.spec.d.ts +1 -0
- package/dist/components/business/CookieConsent/CookieConsent.spec.d.ts +1 -0
- package/dist/{legacy/components/CookieConsent/CookieConsentBanner.component.d.ts → components/business/CookieConsent/CookieConsentBanner.d.ts} +1 -2
- package/dist/components/business/CookieConsent/CookieConsentSettings.d.ts +1 -0
- package/dist/{legacy/components → components/business}/CookieConsent/index.d.ts +2 -2
- package/dist/components/business/index.d.ts +3 -0
- package/dist/components/inputs/FormField/FormField.d.ts +5 -1
- package/dist/components/inputs/PasswordField/PasswordField.d.ts +40 -0
- package/dist/components/inputs/PasswordField/PasswordField.spec.d.ts +1 -0
- package/dist/components/inputs/index.d.ts +1 -0
- package/dist/components/layers/Toast/Toast.d.ts +3 -18
- package/dist/components/layers/Toast/toast-clearance.d.ts +6 -0
- package/dist/components/layers/Toast/toast-store.d.ts +76 -0
- package/dist/components/states/ErrorBoundary/ErrorBoundary.d.ts +17 -0
- package/dist/components/states/ErrorBoundary/ErrorBoundary.spec.d.ts +1 -0
- package/dist/components/states/PageState/PageState.d.ts +3 -1
- package/dist/components/states/index.d.ts +1 -0
- package/dist/cookie-consent.d.ts +1 -1
- package/dist/cookie-consent.js +14 -15
- package/dist/demo/DemoBanner/DemoBanner.d.ts +16 -0
- package/dist/demo/DemoBanner/DemoBanner.spec.d.ts +1 -0
- package/dist/demo/DemoBanner/index.d.ts +1 -0
- package/dist/demo/demo-blocked.interceptor.d.ts +7 -0
- package/dist/demo/demo.en.d.ts +17 -0
- package/dist/demo/demo.fr.d.ts +17 -0
- package/dist/demo/index.d.ts +3 -0
- package/dist/demo/tests/demo-blocked.interceptor.spec.d.ts +1 -0
- package/dist/demo/use-demo-account.hook.d.ts +19 -0
- package/dist/design-theme-D5L0JNbX.js +26599 -0
- package/dist/{editors-CUsZNFfw.js → editors-C6Rocm6M.js} +83 -83
- package/dist/editors.js +1 -1
- package/dist/hooks/use-rich-intl.hook.d.ts +80 -0
- package/dist/{index-BQ4GXlMJ.js → index-5AavH8Oo.js} +1 -1
- package/dist/{index-Bn4gTAno.js → index-B58_3EoW.js} +2 -2
- package/dist/{index-DuMzZrqc.js → index-BElPTqLa.js} +2 -2
- package/dist/{index-D1ro2oTw.js → index-BI4ooqu1.js} +2 -2
- package/dist/{index-TB7ekLl-.js → index-BYDMmzla.js} +2 -2
- package/dist/{index-CM0x-TnE.js → index-C1GCQ2Ke.js} +2 -2
- package/dist/{index-DEBTvCWD.js → index-C1I7MW-q.js} +3 -3
- package/dist/{index-pnfk6VZ7.js → index-CDI4_t7D.js} +4 -4
- package/dist/{index-Lyt4_W7a.js → index-CDWJlhuZ.js} +2 -2
- package/dist/{index-C7a2XXcz.js → index-CKJMsjnV.js} +4 -4
- package/dist/{index-CDpC4_po.js → index-Cskjr11h.js} +2 -2
- package/dist/{index-DErJ9c2q.js → index-CuYK_i3Q.js} +2 -2
- package/dist/{index-GTkZik4b.js → index-Cwgj3j50.js} +3 -3
- package/dist/{index-CjV5ui_B.js → index-Czhx2OUB.js} +2 -2
- package/dist/{index-CiDg4J7c.js → index-DGoR-pBV.js} +4 -4
- package/dist/{index-YzYX-H93.js → index-DjAZPCEQ.js} +3 -3
- package/dist/{index-Ba41aBBN.js → index-Dutd4cJm.js} +2 -2
- package/dist/{index-DobX4g2g.js → index-Dym_r-do.js} +2 -2
- package/dist/{index-BhFOCfCj.js → index-TshVV9T4.js} +2 -2
- package/dist/{index-BzoBMWdL.js → index-UjGNADrL.js} +3 -3
- package/dist/{index-CYUixRIB.js → index-u-EAOYOb.js} +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5483 -4750
- package/dist/legacy/components/Spotlight/ProjectLinkSelector/index.d.ts +1 -4
- package/dist/legacy/components/Support/AbyssServiceSelect.component.d.ts +1 -1
- package/dist/legacy/components/index.d.ts +1 -1
- package/dist/legacy.js +9626 -8129
- package/dist/translations/en.d.ts +39 -0
- package/dist/translations/fr.d.ts +39 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/project-link-mode.d.ts +4 -0
- package/dist/utils/project-link-wording.utils.d.ts +1 -1
- package/dist/utils/service-config.d.ts +8 -0
- package/dist/utils/service-config.spec.d.ts +1 -0
- package/package.json +3 -3
- package/vite.config.ts +1 -1
- package/dist/AbyssCookieConsentProvider-Ds99df0E.js +0 -4562
- package/dist/CookieConsentSettings.component-DoWLHqw5.js +0 -78
- package/dist/Tabs-C1qcQ2i5.js +0 -2335
- package/dist/design-theme-CYGZ6mAh.js +0 -23975
- package/dist/legacy/components/CookieConsent/CookieConsentSettings.component.d.ts +0 -2
- /package/dist/{legacy/components/CookieConsent/AbyssCookieConsentProvider.spec.d.ts → auth/components/SecuritySettings/sections/SessionsSection.component.spec.d.ts} +0 -0
- /package/dist/{legacy/components → components/business}/CookieConsent/AbyssCookieConsentProvider.d.ts +0 -0
|
@@ -1,76 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const Ge = 266, R = (a, e) => ({ l: a, c: e, h: Ge }), et = {
|
|
5
|
-
dark: {
|
|
6
|
-
1: R(0.155, 0.034),
|
|
7
|
-
2: R(0.17, 0.036),
|
|
8
|
-
3: R(0.2, 0.04),
|
|
9
|
-
4: R(0.24, 0.042),
|
|
10
|
-
5: R(0.265, 0.042),
|
|
11
|
-
6: R(0.295, 0.042),
|
|
12
|
-
7: R(0.37, 0.045),
|
|
13
|
-
8: R(0.54, 0.045),
|
|
14
|
-
9: R(0.63, 0.035),
|
|
15
|
-
10: R(0.72, 0.03),
|
|
16
|
-
11: R(0.79, 0.03),
|
|
17
|
-
12: R(0.96, 0.01)
|
|
18
|
-
},
|
|
19
|
-
light: {
|
|
20
|
-
1: R(0.995, 3e-3),
|
|
21
|
-
2: R(0.975, 8e-3),
|
|
22
|
-
3: R(0.96, 0.012),
|
|
23
|
-
4: R(0.935, 0.016),
|
|
24
|
-
5: R(0.91, 0.018),
|
|
25
|
-
6: R(0.885, 0.02),
|
|
26
|
-
7: R(0.8, 0.03),
|
|
27
|
-
8: R(0.6, 0.035),
|
|
28
|
-
9: R(0.5, 0.04),
|
|
29
|
-
10: R(0.46, 0.042),
|
|
30
|
-
11: R(0.42, 0.045),
|
|
31
|
-
12: R(0.22, 0.045)
|
|
32
|
-
}
|
|
33
|
-
}, it = {
|
|
34
|
-
sans: '"Geist Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',
|
|
35
|
-
mono: '"Geist Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace'
|
|
36
|
-
}, tt = {
|
|
37
|
-
caption: 11,
|
|
38
|
-
small: 12,
|
|
39
|
-
body: 13,
|
|
40
|
-
bodyComfort: 14,
|
|
41
|
-
bodyMobile: 15,
|
|
42
|
-
sectionTitle: 16,
|
|
43
|
-
pageTitle: 22,
|
|
44
|
-
figure: 26,
|
|
45
|
-
mobileLargeTitle: 30
|
|
46
|
-
}, nt = {
|
|
47
|
-
regular: 400,
|
|
48
|
-
medium: 500,
|
|
49
|
-
semibold: 600,
|
|
50
|
-
bold: 700
|
|
51
|
-
}, ot = [0, 4, 8, 12, 16, 20, 24, 32, 40, 48, 64], rt = {
|
|
52
|
-
sm: 4,
|
|
53
|
-
md: 6,
|
|
54
|
-
lg: 12
|
|
55
|
-
}, pt = {
|
|
56
|
-
fast: 120,
|
|
57
|
-
base: 180,
|
|
58
|
-
slow: 260
|
|
59
|
-
}, ct = {
|
|
60
|
-
standard: "cubic-bezier(0.2, 0, 0, 1)",
|
|
61
|
-
sheet: "cubic-bezier(0.32, 0.72, 0, 1)"
|
|
62
|
-
}, lt = {
|
|
63
|
-
xs: 0,
|
|
64
|
-
sm: 480,
|
|
65
|
-
md: 768,
|
|
66
|
-
lg: 1200,
|
|
67
|
-
xl: 1600
|
|
68
|
-
}, st = {
|
|
69
|
-
comfortable: { row: 40, control: 32 },
|
|
70
|
-
compact: { row: 30, control: 28 },
|
|
71
|
-
touchTarget: 44
|
|
72
|
-
}, dt = 0.14, je = (a) => a.projectId ? "project" : a.organizationId && a.userId ? "perso-in-org" : a.organizationId ? "org-common" : "personal", mt = (a, e, i = {}) => {
|
|
73
|
-
switch (je(a)) {
|
|
1
|
+
import Le, { useMemo as ma, useRef as ha, useReducer as We, useEffect as Ia, useCallback as N, forwardRef as Ye, useImperativeHandle as Ue, Fragment as Ke } from "react";
|
|
2
|
+
const we = (a) => a.projectId ? "project" : a.organizationId && a.userId ? "perso-in-org" : a.organizationId ? "org-common" : "personal", Ji = (a, e, i = {}) => {
|
|
3
|
+
switch (we(a)) {
|
|
74
4
|
case "project":
|
|
75
5
|
return i.projectName ?? e.formatMessage({ id: "space-display-name.project" });
|
|
76
6
|
case "org-common":
|
|
@@ -81,13 +11,13 @@ const Ge = 266, R = (a, e) => ({ l: a, c: e, h: Ge }), et = {
|
|
|
81
11
|
default:
|
|
82
12
|
return i.userAlias ?? e.formatMessage({ id: "space-display-name.personal" });
|
|
83
13
|
}
|
|
84
|
-
},
|
|
14
|
+
}, Xi = (a, e, i) => {
|
|
85
15
|
const t = `${a.replace(/\/+$/, "")}/dashboard`;
|
|
86
16
|
if (!e)
|
|
87
17
|
return t;
|
|
88
18
|
if (i)
|
|
89
19
|
return `${t}/shared-with-me`;
|
|
90
|
-
switch (
|
|
20
|
+
switch (we(e)) {
|
|
91
21
|
case "project":
|
|
92
22
|
return `${t}/org/${e.organizationId}/projects/${e.projectId}`;
|
|
93
23
|
case "org-common":
|
|
@@ -98,20 +28,24 @@ const Ge = 266, R = (a, e) => ({ l: a, c: e, h: Ge }), et = {
|
|
|
98
28
|
default:
|
|
99
29
|
return `${t}/my`;
|
|
100
30
|
}
|
|
101
|
-
},
|
|
31
|
+
}, Be = (a) => a.split(";")[0].trim().toLowerCase(), He = (a, e) => {
|
|
102
32
|
if (e === "*/*")
|
|
103
33
|
return !0;
|
|
104
34
|
if (e.startsWith("."))
|
|
105
35
|
return a.name.toLowerCase().endsWith(e);
|
|
106
36
|
if (!a.mimeType)
|
|
107
37
|
return !1;
|
|
108
|
-
const i =
|
|
38
|
+
const i = Be(a.mimeType);
|
|
109
39
|
return e.endsWith("/*") ? i.startsWith(e.slice(0, -1)) : i === e;
|
|
110
|
-
},
|
|
40
|
+
}, Qi = (a, e) => {
|
|
111
41
|
const i = (e ?? []).flatMap((t) => t.split(",")).map((t) => t.trim().toLowerCase()).filter((t) => t.length > 0);
|
|
112
|
-
return i.length === 0 || i.some((t) =>
|
|
42
|
+
return i.length === 0 || i.some((t) => He(a, t));
|
|
113
43
|
};
|
|
114
|
-
var
|
|
44
|
+
var at = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
45
|
+
function ke(a) {
|
|
46
|
+
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
47
|
+
}
|
|
48
|
+
var wa = { exports: {} }, ka = { exports: {} }, O = {};
|
|
115
49
|
/** @license React v16.13.1
|
|
116
50
|
* react-is.production.min.js
|
|
117
51
|
*
|
|
@@ -120,18 +54,18 @@ var ka = { exports: {} }, ja = { exports: {} }, O = {};
|
|
|
120
54
|
* This source code is licensed under the MIT license found in the
|
|
121
55
|
* LICENSE file in the root directory of this source tree.
|
|
122
56
|
*/
|
|
123
|
-
var
|
|
124
|
-
function
|
|
125
|
-
if (
|
|
126
|
-
|
|
127
|
-
var a = typeof Symbol == "function" && Symbol.for, e = a ? Symbol.for("react.element") : 60103, i = a ? Symbol.for("react.portal") : 60106, t = a ? Symbol.for("react.fragment") : 60107, o = a ? Symbol.for("react.strict_mode") : 60108, n = a ? Symbol.for("react.profiler") : 60114, d = a ? Symbol.for("react.provider") : 60109, c = a ? Symbol.for("react.context") : 60110,
|
|
128
|
-
function
|
|
57
|
+
var Qa;
|
|
58
|
+
function Ge() {
|
|
59
|
+
if (Qa) return O;
|
|
60
|
+
Qa = 1;
|
|
61
|
+
var a = typeof Symbol == "function" && Symbol.for, e = a ? Symbol.for("react.element") : 60103, i = a ? Symbol.for("react.portal") : 60106, t = a ? Symbol.for("react.fragment") : 60107, o = a ? Symbol.for("react.strict_mode") : 60108, n = a ? Symbol.for("react.profiler") : 60114, d = a ? Symbol.for("react.provider") : 60109, c = a ? Symbol.for("react.context") : 60110, y = a ? Symbol.for("react.async_mode") : 60111, j = a ? Symbol.for("react.concurrent_mode") : 60111, x = a ? Symbol.for("react.forward_ref") : 60112, w = a ? Symbol.for("react.suspense") : 60113, P = a ? Symbol.for("react.suspense_list") : 60120, z = a ? Symbol.for("react.memo") : 60115, $ = a ? Symbol.for("react.lazy") : 60116, A = a ? Symbol.for("react.block") : 60121, q = a ? Symbol.for("react.fundamental") : 60117, K = a ? Symbol.for("react.responder") : 60118, ea = a ? Symbol.for("react.scope") : 60119;
|
|
62
|
+
function F(s) {
|
|
129
63
|
if (typeof s == "object" && s !== null) {
|
|
130
|
-
var
|
|
131
|
-
switch (
|
|
64
|
+
var Z = s.$$typeof;
|
|
65
|
+
switch (Z) {
|
|
132
66
|
case e:
|
|
133
67
|
switch (s = s.type, s) {
|
|
134
|
-
case
|
|
68
|
+
case y:
|
|
135
69
|
case j:
|
|
136
70
|
case t:
|
|
137
71
|
case n:
|
|
@@ -142,49 +76,49 @@ function Ze() {
|
|
|
142
76
|
switch (s = s && s.$$typeof, s) {
|
|
143
77
|
case c:
|
|
144
78
|
case x:
|
|
145
|
-
case
|
|
79
|
+
case $:
|
|
146
80
|
case z:
|
|
147
81
|
case d:
|
|
148
82
|
return s;
|
|
149
83
|
default:
|
|
150
|
-
return
|
|
84
|
+
return Z;
|
|
151
85
|
}
|
|
152
86
|
}
|
|
153
87
|
case i:
|
|
154
|
-
return
|
|
88
|
+
return Z;
|
|
155
89
|
}
|
|
156
90
|
}
|
|
157
91
|
}
|
|
158
|
-
function
|
|
159
|
-
return
|
|
92
|
+
function I(s) {
|
|
93
|
+
return F(s) === j;
|
|
160
94
|
}
|
|
161
|
-
return O.AsyncMode =
|
|
162
|
-
return
|
|
163
|
-
}, O.isConcurrentMode =
|
|
164
|
-
return
|
|
95
|
+
return O.AsyncMode = y, O.ConcurrentMode = j, O.ContextConsumer = c, O.ContextProvider = d, O.Element = e, O.ForwardRef = x, O.Fragment = t, O.Lazy = $, O.Memo = z, O.Portal = i, O.Profiler = n, O.StrictMode = o, O.Suspense = w, O.isAsyncMode = function(s) {
|
|
96
|
+
return I(s) || F(s) === y;
|
|
97
|
+
}, O.isConcurrentMode = I, O.isContextConsumer = function(s) {
|
|
98
|
+
return F(s) === c;
|
|
165
99
|
}, O.isContextProvider = function(s) {
|
|
166
|
-
return
|
|
100
|
+
return F(s) === d;
|
|
167
101
|
}, O.isElement = function(s) {
|
|
168
102
|
return typeof s == "object" && s !== null && s.$$typeof === e;
|
|
169
103
|
}, O.isForwardRef = function(s) {
|
|
170
|
-
return
|
|
104
|
+
return F(s) === x;
|
|
171
105
|
}, O.isFragment = function(s) {
|
|
172
|
-
return
|
|
106
|
+
return F(s) === t;
|
|
173
107
|
}, O.isLazy = function(s) {
|
|
174
|
-
return
|
|
108
|
+
return F(s) === $;
|
|
175
109
|
}, O.isMemo = function(s) {
|
|
176
|
-
return
|
|
110
|
+
return F(s) === z;
|
|
177
111
|
}, O.isPortal = function(s) {
|
|
178
|
-
return
|
|
112
|
+
return F(s) === i;
|
|
179
113
|
}, O.isProfiler = function(s) {
|
|
180
|
-
return
|
|
114
|
+
return F(s) === n;
|
|
181
115
|
}, O.isStrictMode = function(s) {
|
|
182
|
-
return
|
|
116
|
+
return F(s) === o;
|
|
183
117
|
}, O.isSuspense = function(s) {
|
|
184
|
-
return
|
|
118
|
+
return F(s) === w;
|
|
185
119
|
}, O.isValidElementType = function(s) {
|
|
186
|
-
return typeof s == "string" || typeof s == "function" || s === t || s === j || s === n || s === o || s === w || s === P || typeof s == "object" && s !== null && (s.$$typeof ===
|
|
187
|
-
}, O.typeOf =
|
|
120
|
+
return typeof s == "string" || typeof s == "function" || s === t || s === j || s === n || s === o || s === w || s === P || typeof s == "object" && s !== null && (s.$$typeof === $ || s.$$typeof === z || s.$$typeof === d || s.$$typeof === c || s.$$typeof === x || s.$$typeof === q || s.$$typeof === K || s.$$typeof === ea || s.$$typeof === A);
|
|
121
|
+
}, O.typeOf = F, O;
|
|
188
122
|
}
|
|
189
123
|
var D = {};
|
|
190
124
|
/** @license React v16.13.1
|
|
@@ -195,37 +129,37 @@ var D = {};
|
|
|
195
129
|
* This source code is licensed under the MIT license found in the
|
|
196
130
|
* LICENSE file in the root directory of this source tree.
|
|
197
131
|
*/
|
|
198
|
-
var
|
|
199
|
-
function
|
|
200
|
-
return
|
|
201
|
-
var a = typeof Symbol == "function" && Symbol.for, e = a ? Symbol.for("react.element") : 60103, i = a ? Symbol.for("react.portal") : 60106, t = a ? Symbol.for("react.fragment") : 60107, o = a ? Symbol.for("react.strict_mode") : 60108, n = a ? Symbol.for("react.profiler") : 60114, d = a ? Symbol.for("react.provider") : 60109, c = a ? Symbol.for("react.context") : 60110,
|
|
202
|
-
function
|
|
203
|
-
return typeof
|
|
204
|
-
|
|
132
|
+
var ae;
|
|
133
|
+
function Ne() {
|
|
134
|
+
return ae || (ae = 1, process.env.NODE_ENV !== "production" && function() {
|
|
135
|
+
var a = typeof Symbol == "function" && Symbol.for, e = a ? Symbol.for("react.element") : 60103, i = a ? Symbol.for("react.portal") : 60106, t = a ? Symbol.for("react.fragment") : 60107, o = a ? Symbol.for("react.strict_mode") : 60108, n = a ? Symbol.for("react.profiler") : 60114, d = a ? Symbol.for("react.provider") : 60109, c = a ? Symbol.for("react.context") : 60110, y = a ? Symbol.for("react.async_mode") : 60111, j = a ? Symbol.for("react.concurrent_mode") : 60111, x = a ? Symbol.for("react.forward_ref") : 60112, w = a ? Symbol.for("react.suspense") : 60113, P = a ? Symbol.for("react.suspense_list") : 60120, z = a ? Symbol.for("react.memo") : 60115, $ = a ? Symbol.for("react.lazy") : 60116, A = a ? Symbol.for("react.block") : 60121, q = a ? Symbol.for("react.fundamental") : 60117, K = a ? Symbol.for("react.responder") : 60118, ea = a ? Symbol.for("react.scope") : 60119;
|
|
136
|
+
function F(r) {
|
|
137
|
+
return typeof r == "string" || typeof r == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
138
|
+
r === t || r === j || r === n || r === o || r === w || r === P || typeof r == "object" && r !== null && (r.$$typeof === $ || r.$$typeof === z || r.$$typeof === d || r.$$typeof === c || r.$$typeof === x || r.$$typeof === q || r.$$typeof === K || r.$$typeof === ea || r.$$typeof === A);
|
|
205
139
|
}
|
|
206
|
-
function
|
|
207
|
-
if (typeof
|
|
208
|
-
var B =
|
|
140
|
+
function I(r) {
|
|
141
|
+
if (typeof r == "object" && r !== null) {
|
|
142
|
+
var B = r.$$typeof;
|
|
209
143
|
switch (B) {
|
|
210
144
|
case e:
|
|
211
|
-
var
|
|
212
|
-
switch (
|
|
213
|
-
case
|
|
145
|
+
var ra = r.type;
|
|
146
|
+
switch (ra) {
|
|
147
|
+
case y:
|
|
214
148
|
case j:
|
|
215
149
|
case t:
|
|
216
150
|
case n:
|
|
217
151
|
case o:
|
|
218
152
|
case w:
|
|
219
|
-
return
|
|
153
|
+
return ra;
|
|
220
154
|
default:
|
|
221
|
-
var
|
|
222
|
-
switch (
|
|
155
|
+
var fa = ra && ra.$$typeof;
|
|
156
|
+
switch (fa) {
|
|
223
157
|
case c:
|
|
224
158
|
case x:
|
|
225
|
-
case
|
|
159
|
+
case $:
|
|
226
160
|
case z:
|
|
227
161
|
case d:
|
|
228
|
-
return
|
|
162
|
+
return fa;
|
|
229
163
|
default:
|
|
230
164
|
return B;
|
|
231
165
|
}
|
|
@@ -235,62 +169,62 @@ function Je() {
|
|
|
235
169
|
}
|
|
236
170
|
}
|
|
237
171
|
}
|
|
238
|
-
var s =
|
|
239
|
-
function
|
|
240
|
-
return
|
|
172
|
+
var s = y, Z = j, V = c, na = d, Q = e, aa = x, oa = t, pa = $, ia = z, C = i, U = n, G = o, J = w, ta = !1;
|
|
173
|
+
function Y(r) {
|
|
174
|
+
return ta || (ta = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), p(r) || I(r) === y;
|
|
241
175
|
}
|
|
242
|
-
function r
|
|
243
|
-
return
|
|
176
|
+
function p(r) {
|
|
177
|
+
return I(r) === j;
|
|
244
178
|
}
|
|
245
|
-
function m(
|
|
246
|
-
return
|
|
179
|
+
function m(r) {
|
|
180
|
+
return I(r) === c;
|
|
247
181
|
}
|
|
248
|
-
function g(
|
|
249
|
-
return
|
|
182
|
+
function g(r) {
|
|
183
|
+
return I(r) === d;
|
|
250
184
|
}
|
|
251
|
-
function
|
|
252
|
-
return typeof
|
|
185
|
+
function b(r) {
|
|
186
|
+
return typeof r == "object" && r !== null && r.$$typeof === e;
|
|
253
187
|
}
|
|
254
|
-
function f(
|
|
255
|
-
return
|
|
188
|
+
function f(r) {
|
|
189
|
+
return I(r) === x;
|
|
256
190
|
}
|
|
257
|
-
function E(
|
|
258
|
-
return
|
|
191
|
+
function E(r) {
|
|
192
|
+
return I(r) === t;
|
|
259
193
|
}
|
|
260
|
-
function v(
|
|
261
|
-
return
|
|
194
|
+
function v(r) {
|
|
195
|
+
return I(r) === $;
|
|
262
196
|
}
|
|
263
|
-
function h(
|
|
264
|
-
return
|
|
197
|
+
function h(r) {
|
|
198
|
+
return I(r) === z;
|
|
265
199
|
}
|
|
266
|
-
function T(
|
|
267
|
-
return
|
|
200
|
+
function T(r) {
|
|
201
|
+
return I(r) === i;
|
|
268
202
|
}
|
|
269
|
-
function _(
|
|
270
|
-
return
|
|
203
|
+
function _(r) {
|
|
204
|
+
return I(r) === n;
|
|
271
205
|
}
|
|
272
|
-
function k(
|
|
273
|
-
return
|
|
206
|
+
function k(r) {
|
|
207
|
+
return I(r) === o;
|
|
274
208
|
}
|
|
275
|
-
function
|
|
276
|
-
return
|
|
209
|
+
function L(r) {
|
|
210
|
+
return I(r) === w;
|
|
277
211
|
}
|
|
278
|
-
D.AsyncMode = s, D.ConcurrentMode =
|
|
212
|
+
D.AsyncMode = s, D.ConcurrentMode = Z, D.ContextConsumer = V, D.ContextProvider = na, D.Element = Q, D.ForwardRef = aa, D.Fragment = oa, D.Lazy = pa, D.Memo = ia, D.Portal = C, D.Profiler = U, D.StrictMode = G, D.Suspense = J, D.isAsyncMode = Y, D.isConcurrentMode = p, D.isContextConsumer = m, D.isContextProvider = g, D.isElement = b, D.isForwardRef = f, D.isFragment = E, D.isLazy = v, D.isMemo = h, D.isPortal = T, D.isProfiler = _, D.isStrictMode = k, D.isSuspense = L, D.isValidElementType = F, D.typeOf = I;
|
|
279
213
|
}()), D;
|
|
280
214
|
}
|
|
281
|
-
var
|
|
282
|
-
function
|
|
283
|
-
return
|
|
215
|
+
var ee;
|
|
216
|
+
function je() {
|
|
217
|
+
return ee || (ee = 1, process.env.NODE_ENV === "production" ? ka.exports = Ge() : ka.exports = Ne()), ka.exports;
|
|
284
218
|
}
|
|
285
219
|
/*
|
|
286
220
|
object-assign
|
|
287
221
|
(c) Sindre Sorhus
|
|
288
222
|
@license MIT
|
|
289
223
|
*/
|
|
290
|
-
var
|
|
291
|
-
function
|
|
292
|
-
if (
|
|
293
|
-
|
|
224
|
+
var qa, ie;
|
|
225
|
+
function Ve() {
|
|
226
|
+
if (ie) return qa;
|
|
227
|
+
ie = 1;
|
|
294
228
|
var a = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
|
|
295
229
|
function t(n) {
|
|
296
230
|
if (n == null)
|
|
@@ -306,10 +240,10 @@ function Xe() {
|
|
|
306
240
|
return !1;
|
|
307
241
|
for (var d = {}, c = 0; c < 10; c++)
|
|
308
242
|
d["_" + String.fromCharCode(c)] = c;
|
|
309
|
-
var
|
|
243
|
+
var y = Object.getOwnPropertyNames(d).map(function(x) {
|
|
310
244
|
return d[x];
|
|
311
245
|
});
|
|
312
|
-
if (
|
|
246
|
+
if (y.join("") !== "0123456789")
|
|
313
247
|
return !1;
|
|
314
248
|
var j = {};
|
|
315
249
|
return "abcdefghijklmnopqrst".split("").forEach(function(x) {
|
|
@@ -319,39 +253,39 @@ function Xe() {
|
|
|
319
253
|
return !1;
|
|
320
254
|
}
|
|
321
255
|
}
|
|
322
|
-
return
|
|
323
|
-
for (var c,
|
|
256
|
+
return qa = o() ? Object.assign : function(n, d) {
|
|
257
|
+
for (var c, y = t(n), j, x = 1; x < arguments.length; x++) {
|
|
324
258
|
c = Object(arguments[x]);
|
|
325
259
|
for (var w in c)
|
|
326
|
-
e.call(c, w) && (
|
|
260
|
+
e.call(c, w) && (y[w] = c[w]);
|
|
327
261
|
if (a) {
|
|
328
262
|
j = a(c);
|
|
329
263
|
for (var P = 0; P < j.length; P++)
|
|
330
|
-
i.call(c, j[P]) && (
|
|
264
|
+
i.call(c, j[P]) && (y[j[P]] = c[j[P]]);
|
|
331
265
|
}
|
|
332
266
|
}
|
|
333
|
-
return
|
|
334
|
-
},
|
|
267
|
+
return y;
|
|
268
|
+
}, qa;
|
|
335
269
|
}
|
|
336
|
-
var
|
|
337
|
-
function
|
|
338
|
-
if (
|
|
339
|
-
|
|
270
|
+
var Ma, te;
|
|
271
|
+
function Za() {
|
|
272
|
+
if (te) return Ma;
|
|
273
|
+
te = 1;
|
|
340
274
|
var a = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
341
|
-
return
|
|
275
|
+
return Ma = a, Ma;
|
|
342
276
|
}
|
|
343
|
-
var
|
|
344
|
-
function
|
|
345
|
-
return
|
|
277
|
+
var $a, ne;
|
|
278
|
+
function Ee() {
|
|
279
|
+
return ne || (ne = 1, $a = Function.call.bind(Object.prototype.hasOwnProperty)), $a;
|
|
346
280
|
}
|
|
347
|
-
var
|
|
348
|
-
function
|
|
349
|
-
if (
|
|
350
|
-
|
|
281
|
+
var La, oe;
|
|
282
|
+
function Ze() {
|
|
283
|
+
if (oe) return La;
|
|
284
|
+
oe = 1;
|
|
351
285
|
var a = function() {
|
|
352
286
|
};
|
|
353
287
|
if (process.env.NODE_ENV !== "production") {
|
|
354
|
-
var e = /* @__PURE__ */
|
|
288
|
+
var e = /* @__PURE__ */ Za(), i = {}, t = /* @__PURE__ */ Ee();
|
|
355
289
|
a = function(n) {
|
|
356
290
|
var d = "Warning: " + n;
|
|
357
291
|
typeof console < "u" && console.error(d);
|
|
@@ -361,7 +295,7 @@ function Qe() {
|
|
|
361
295
|
}
|
|
362
296
|
};
|
|
363
297
|
}
|
|
364
|
-
function o(n, d, c,
|
|
298
|
+
function o(n, d, c, y, j) {
|
|
365
299
|
if (process.env.NODE_ENV !== "production") {
|
|
366
300
|
for (var x in n)
|
|
367
301
|
if (t(n, x)) {
|
|
@@ -369,16 +303,16 @@ function Qe() {
|
|
|
369
303
|
try {
|
|
370
304
|
if (typeof n[x] != "function") {
|
|
371
305
|
var P = Error(
|
|
372
|
-
(
|
|
306
|
+
(y || "React class") + ": " + c + " type `" + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[x] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
373
307
|
);
|
|
374
308
|
throw P.name = "Invariant Violation", P;
|
|
375
309
|
}
|
|
376
|
-
w = n[x](d, x,
|
|
377
|
-
} catch (
|
|
378
|
-
w =
|
|
310
|
+
w = n[x](d, x, y, c, null, e);
|
|
311
|
+
} catch ($) {
|
|
312
|
+
w = $;
|
|
379
313
|
}
|
|
380
314
|
if (w && !(w instanceof Error) && a(
|
|
381
|
-
(
|
|
315
|
+
(y || "React class") + ": type specification of " + c + " `" + x + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof w + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
382
316
|
), w instanceof Error && !(w.message in i)) {
|
|
383
317
|
i[w.message] = !0;
|
|
384
318
|
var z = j ? j() : "";
|
|
@@ -391,29 +325,29 @@ function Qe() {
|
|
|
391
325
|
}
|
|
392
326
|
return o.resetWarningCache = function() {
|
|
393
327
|
process.env.NODE_ENV !== "production" && (i = {});
|
|
394
|
-
},
|
|
328
|
+
}, La = o, La;
|
|
395
329
|
}
|
|
396
|
-
var
|
|
397
|
-
function
|
|
398
|
-
if (pe) return
|
|
330
|
+
var Wa, pe;
|
|
331
|
+
function Je() {
|
|
332
|
+
if (pe) return Wa;
|
|
399
333
|
pe = 1;
|
|
400
|
-
var a =
|
|
334
|
+
var a = je(), e = Ve(), i = /* @__PURE__ */ Za(), t = /* @__PURE__ */ Ee(), o = /* @__PURE__ */ Ze(), n = function() {
|
|
401
335
|
};
|
|
402
336
|
process.env.NODE_ENV !== "production" && (n = function(c) {
|
|
403
|
-
var
|
|
404
|
-
typeof console < "u" && console.error(
|
|
337
|
+
var y = "Warning: " + c;
|
|
338
|
+
typeof console < "u" && console.error(y);
|
|
405
339
|
try {
|
|
406
|
-
throw new Error(
|
|
340
|
+
throw new Error(y);
|
|
407
341
|
} catch {
|
|
408
342
|
}
|
|
409
343
|
});
|
|
410
344
|
function d() {
|
|
411
345
|
return null;
|
|
412
346
|
}
|
|
413
|
-
return
|
|
347
|
+
return Wa = function(c, y) {
|
|
414
348
|
var j = typeof Symbol == "function" && Symbol.iterator, x = "@@iterator";
|
|
415
|
-
function w(
|
|
416
|
-
var m =
|
|
349
|
+
function w(p) {
|
|
350
|
+
var m = p && (j && p[j] || p[x]);
|
|
417
351
|
if (typeof m == "function")
|
|
418
352
|
return m;
|
|
419
353
|
}
|
|
@@ -426,35 +360,35 @@ function ai() {
|
|
|
426
360
|
object: K("object"),
|
|
427
361
|
string: K("string"),
|
|
428
362
|
symbol: K("symbol"),
|
|
429
|
-
any:
|
|
430
|
-
arrayOf:
|
|
431
|
-
element:
|
|
363
|
+
any: ea(),
|
|
364
|
+
arrayOf: F,
|
|
365
|
+
element: I(),
|
|
432
366
|
elementType: s(),
|
|
433
|
-
instanceOf:
|
|
434
|
-
node:
|
|
435
|
-
objectOf:
|
|
436
|
-
oneOf:
|
|
437
|
-
oneOfType:
|
|
367
|
+
instanceOf: Z,
|
|
368
|
+
node: aa(),
|
|
369
|
+
objectOf: na,
|
|
370
|
+
oneOf: V,
|
|
371
|
+
oneOfType: Q,
|
|
438
372
|
shape: pa,
|
|
439
|
-
exact:
|
|
373
|
+
exact: ia
|
|
440
374
|
};
|
|
441
|
-
function
|
|
442
|
-
return
|
|
375
|
+
function $(p, m) {
|
|
376
|
+
return p === m ? p !== 0 || 1 / p === 1 / m : p !== p && m !== m;
|
|
443
377
|
}
|
|
444
|
-
function
|
|
445
|
-
this.message =
|
|
378
|
+
function A(p, m) {
|
|
379
|
+
this.message = p, this.data = m && typeof m == "object" ? m : {}, this.stack = "";
|
|
446
380
|
}
|
|
447
|
-
|
|
448
|
-
function
|
|
381
|
+
A.prototype = Error.prototype;
|
|
382
|
+
function q(p) {
|
|
449
383
|
if (process.env.NODE_ENV !== "production")
|
|
450
384
|
var m = {}, g = 0;
|
|
451
|
-
function
|
|
452
|
-
if (T = T || P, k = k || h,
|
|
453
|
-
if (
|
|
454
|
-
var
|
|
385
|
+
function b(E, v, h, T, _, k, L) {
|
|
386
|
+
if (T = T || P, k = k || h, L !== i) {
|
|
387
|
+
if (y) {
|
|
388
|
+
var r = new Error(
|
|
455
389
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
456
390
|
);
|
|
457
|
-
throw
|
|
391
|
+
throw r.name = "Invariant Violation", r;
|
|
458
392
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
459
393
|
var B = T + ":" + h;
|
|
460
394
|
!m[B] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
@@ -463,209 +397,209 @@ function ai() {
|
|
|
463
397
|
), m[B] = !0, g++);
|
|
464
398
|
}
|
|
465
399
|
}
|
|
466
|
-
return v[h] == null ? E ? v[h] === null ? new
|
|
400
|
+
return v[h] == null ? E ? v[h] === null ? new A("The " + _ + " `" + k + "` is marked as required " + ("in `" + T + "`, but its value is `null`.")) : new A("The " + _ + " `" + k + "` is marked as required in " + ("`" + T + "`, but its value is `undefined`.")) : null : p(v, h, T, _, k);
|
|
467
401
|
}
|
|
468
|
-
var f =
|
|
469
|
-
return f.isRequired =
|
|
402
|
+
var f = b.bind(null, !1);
|
|
403
|
+
return f.isRequired = b.bind(null, !0), f;
|
|
470
404
|
}
|
|
471
|
-
function K(
|
|
472
|
-
function m(g,
|
|
473
|
-
var T = g[
|
|
474
|
-
if (_ !==
|
|
475
|
-
var k =
|
|
476
|
-
return new
|
|
477
|
-
"Invalid " + E + " `" + v + "` of type " + ("`" + k + "` supplied to `" + f + "`, expected ") + ("`" +
|
|
478
|
-
{ expectedType:
|
|
405
|
+
function K(p) {
|
|
406
|
+
function m(g, b, f, E, v, h) {
|
|
407
|
+
var T = g[b], _ = G(T);
|
|
408
|
+
if (_ !== p) {
|
|
409
|
+
var k = J(T);
|
|
410
|
+
return new A(
|
|
411
|
+
"Invalid " + E + " `" + v + "` of type " + ("`" + k + "` supplied to `" + f + "`, expected ") + ("`" + p + "`."),
|
|
412
|
+
{ expectedType: p }
|
|
479
413
|
);
|
|
480
414
|
}
|
|
481
415
|
return null;
|
|
482
416
|
}
|
|
483
|
-
return
|
|
417
|
+
return q(m);
|
|
484
418
|
}
|
|
485
|
-
function
|
|
486
|
-
return
|
|
419
|
+
function ea() {
|
|
420
|
+
return q(d);
|
|
487
421
|
}
|
|
488
|
-
function
|
|
489
|
-
function m(g,
|
|
490
|
-
if (typeof
|
|
491
|
-
return new
|
|
492
|
-
var h = g[
|
|
422
|
+
function F(p) {
|
|
423
|
+
function m(g, b, f, E, v) {
|
|
424
|
+
if (typeof p != "function")
|
|
425
|
+
return new A("Property `" + v + "` of component `" + f + "` has invalid PropType notation inside arrayOf.");
|
|
426
|
+
var h = g[b];
|
|
493
427
|
if (!Array.isArray(h)) {
|
|
494
|
-
var T =
|
|
495
|
-
return new
|
|
428
|
+
var T = G(h);
|
|
429
|
+
return new A("Invalid " + E + " `" + v + "` of type " + ("`" + T + "` supplied to `" + f + "`, expected an array."));
|
|
496
430
|
}
|
|
497
431
|
for (var _ = 0; _ < h.length; _++) {
|
|
498
|
-
var k =
|
|
432
|
+
var k = p(h, _, f, E, v + "[" + _ + "]", i);
|
|
499
433
|
if (k instanceof Error)
|
|
500
434
|
return k;
|
|
501
435
|
}
|
|
502
436
|
return null;
|
|
503
437
|
}
|
|
504
|
-
return
|
|
438
|
+
return q(m);
|
|
505
439
|
}
|
|
506
|
-
function
|
|
507
|
-
function
|
|
440
|
+
function I() {
|
|
441
|
+
function p(m, g, b, f, E) {
|
|
508
442
|
var v = m[g];
|
|
509
443
|
if (!c(v)) {
|
|
510
|
-
var h =
|
|
511
|
-
return new
|
|
444
|
+
var h = G(v);
|
|
445
|
+
return new A("Invalid " + f + " `" + E + "` of type " + ("`" + h + "` supplied to `" + b + "`, expected a single ReactElement."));
|
|
512
446
|
}
|
|
513
447
|
return null;
|
|
514
448
|
}
|
|
515
|
-
return
|
|
449
|
+
return q(p);
|
|
516
450
|
}
|
|
517
451
|
function s() {
|
|
518
|
-
function
|
|
452
|
+
function p(m, g, b, f, E) {
|
|
519
453
|
var v = m[g];
|
|
520
454
|
if (!a.isValidElementType(v)) {
|
|
521
|
-
var h =
|
|
522
|
-
return new
|
|
455
|
+
var h = G(v);
|
|
456
|
+
return new A("Invalid " + f + " `" + E + "` of type " + ("`" + h + "` supplied to `" + b + "`, expected a single ReactElement type."));
|
|
523
457
|
}
|
|
524
458
|
return null;
|
|
525
459
|
}
|
|
526
|
-
return
|
|
460
|
+
return q(p);
|
|
527
461
|
}
|
|
528
|
-
function
|
|
529
|
-
function m(g,
|
|
530
|
-
if (!(g[
|
|
531
|
-
var h =
|
|
532
|
-
return new
|
|
462
|
+
function Z(p) {
|
|
463
|
+
function m(g, b, f, E, v) {
|
|
464
|
+
if (!(g[b] instanceof p)) {
|
|
465
|
+
var h = p.name || P, T = Y(g[b]);
|
|
466
|
+
return new A("Invalid " + E + " `" + v + "` of type " + ("`" + T + "` supplied to `" + f + "`, expected ") + ("instance of `" + h + "`."));
|
|
533
467
|
}
|
|
534
468
|
return null;
|
|
535
469
|
}
|
|
536
|
-
return
|
|
470
|
+
return q(m);
|
|
537
471
|
}
|
|
538
|
-
function
|
|
539
|
-
if (!Array.isArray(
|
|
472
|
+
function V(p) {
|
|
473
|
+
if (!Array.isArray(p))
|
|
540
474
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? n(
|
|
541
475
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
542
476
|
) : n("Invalid argument supplied to oneOf, expected an array.")), d;
|
|
543
|
-
function m(g,
|
|
544
|
-
for (var h = g[
|
|
545
|
-
if (
|
|
477
|
+
function m(g, b, f, E, v) {
|
|
478
|
+
for (var h = g[b], T = 0; T < p.length; T++)
|
|
479
|
+
if ($(h, p[T]))
|
|
546
480
|
return null;
|
|
547
|
-
var _ = JSON.stringify(
|
|
548
|
-
var B =
|
|
549
|
-
return B === "symbol" ? String(
|
|
481
|
+
var _ = JSON.stringify(p, function(L, r) {
|
|
482
|
+
var B = J(r);
|
|
483
|
+
return B === "symbol" ? String(r) : r;
|
|
550
484
|
});
|
|
551
|
-
return new
|
|
485
|
+
return new A("Invalid " + E + " `" + v + "` of value `" + String(h) + "` " + ("supplied to `" + f + "`, expected one of " + _ + "."));
|
|
552
486
|
}
|
|
553
|
-
return
|
|
487
|
+
return q(m);
|
|
554
488
|
}
|
|
555
|
-
function
|
|
556
|
-
function m(g,
|
|
557
|
-
if (typeof
|
|
558
|
-
return new
|
|
559
|
-
var h = g[
|
|
489
|
+
function na(p) {
|
|
490
|
+
function m(g, b, f, E, v) {
|
|
491
|
+
if (typeof p != "function")
|
|
492
|
+
return new A("Property `" + v + "` of component `" + f + "` has invalid PropType notation inside objectOf.");
|
|
493
|
+
var h = g[b], T = G(h);
|
|
560
494
|
if (T !== "object")
|
|
561
|
-
return new
|
|
495
|
+
return new A("Invalid " + E + " `" + v + "` of type " + ("`" + T + "` supplied to `" + f + "`, expected an object."));
|
|
562
496
|
for (var _ in h)
|
|
563
497
|
if (t(h, _)) {
|
|
564
|
-
var k =
|
|
498
|
+
var k = p(h, _, f, E, v + "." + _, i);
|
|
565
499
|
if (k instanceof Error)
|
|
566
500
|
return k;
|
|
567
501
|
}
|
|
568
502
|
return null;
|
|
569
503
|
}
|
|
570
|
-
return
|
|
504
|
+
return q(m);
|
|
571
505
|
}
|
|
572
|
-
function
|
|
573
|
-
if (!Array.isArray(
|
|
506
|
+
function Q(p) {
|
|
507
|
+
if (!Array.isArray(p))
|
|
574
508
|
return process.env.NODE_ENV !== "production" && n("Invalid argument supplied to oneOfType, expected an instance of array."), d;
|
|
575
|
-
for (var m = 0; m <
|
|
576
|
-
var g =
|
|
509
|
+
for (var m = 0; m < p.length; m++) {
|
|
510
|
+
var g = p[m];
|
|
577
511
|
if (typeof g != "function")
|
|
578
512
|
return n(
|
|
579
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
513
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ta(g) + " at index " + m + "."
|
|
580
514
|
), d;
|
|
581
515
|
}
|
|
582
|
-
function
|
|
583
|
-
for (var _ = [], k = 0; k <
|
|
584
|
-
var
|
|
585
|
-
if (
|
|
516
|
+
function b(f, E, v, h, T) {
|
|
517
|
+
for (var _ = [], k = 0; k < p.length; k++) {
|
|
518
|
+
var L = p[k], r = L(f, E, v, h, T, i);
|
|
519
|
+
if (r == null)
|
|
586
520
|
return null;
|
|
587
|
-
|
|
521
|
+
r.data && t(r.data, "expectedType") && _.push(r.data.expectedType);
|
|
588
522
|
}
|
|
589
523
|
var B = _.length > 0 ? ", expected one of type [" + _.join(", ") + "]" : "";
|
|
590
|
-
return new
|
|
524
|
+
return new A("Invalid " + h + " `" + T + "` supplied to " + ("`" + v + "`" + B + "."));
|
|
591
525
|
}
|
|
592
|
-
return
|
|
526
|
+
return q(b);
|
|
593
527
|
}
|
|
594
|
-
function
|
|
595
|
-
function
|
|
596
|
-
return
|
|
528
|
+
function aa() {
|
|
529
|
+
function p(m, g, b, f, E) {
|
|
530
|
+
return C(m[g]) ? null : new A("Invalid " + f + " `" + E + "` supplied to " + ("`" + b + "`, expected a ReactNode."));
|
|
597
531
|
}
|
|
598
|
-
return
|
|
532
|
+
return q(p);
|
|
599
533
|
}
|
|
600
|
-
function
|
|
601
|
-
return new
|
|
602
|
-
(
|
|
534
|
+
function oa(p, m, g, b, f) {
|
|
535
|
+
return new A(
|
|
536
|
+
(p || "React class") + ": " + m + " type `" + g + "." + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + f + "`."
|
|
603
537
|
);
|
|
604
538
|
}
|
|
605
|
-
function pa(
|
|
606
|
-
function m(g,
|
|
607
|
-
var h = g[
|
|
539
|
+
function pa(p) {
|
|
540
|
+
function m(g, b, f, E, v) {
|
|
541
|
+
var h = g[b], T = G(h);
|
|
608
542
|
if (T !== "object")
|
|
609
|
-
return new
|
|
610
|
-
for (var _ in
|
|
611
|
-
var k =
|
|
543
|
+
return new A("Invalid " + E + " `" + v + "` of type `" + T + "` " + ("supplied to `" + f + "`, expected `object`."));
|
|
544
|
+
for (var _ in p) {
|
|
545
|
+
var k = p[_];
|
|
612
546
|
if (typeof k != "function")
|
|
613
|
-
return
|
|
614
|
-
var
|
|
615
|
-
if (
|
|
616
|
-
return
|
|
547
|
+
return oa(f, E, v, _, J(k));
|
|
548
|
+
var L = k(h, _, f, E, v + "." + _, i);
|
|
549
|
+
if (L)
|
|
550
|
+
return L;
|
|
617
551
|
}
|
|
618
552
|
return null;
|
|
619
553
|
}
|
|
620
|
-
return
|
|
554
|
+
return q(m);
|
|
621
555
|
}
|
|
622
|
-
function
|
|
623
|
-
function m(g,
|
|
624
|
-
var h = g[
|
|
556
|
+
function ia(p) {
|
|
557
|
+
function m(g, b, f, E, v) {
|
|
558
|
+
var h = g[b], T = G(h);
|
|
625
559
|
if (T !== "object")
|
|
626
|
-
return new
|
|
627
|
-
var _ = e({}, g[
|
|
560
|
+
return new A("Invalid " + E + " `" + v + "` of type `" + T + "` " + ("supplied to `" + f + "`, expected `object`."));
|
|
561
|
+
var _ = e({}, g[b], p);
|
|
628
562
|
for (var k in _) {
|
|
629
|
-
var
|
|
630
|
-
if (t(
|
|
631
|
-
return
|
|
632
|
-
if (!
|
|
633
|
-
return new
|
|
634
|
-
"Invalid " + E + " `" + v + "` key `" + k + "` supplied to `" + f + "`.\nBad object: " + JSON.stringify(g[
|
|
635
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
563
|
+
var L = p[k];
|
|
564
|
+
if (t(p, k) && typeof L != "function")
|
|
565
|
+
return oa(f, E, v, k, J(L));
|
|
566
|
+
if (!L)
|
|
567
|
+
return new A(
|
|
568
|
+
"Invalid " + E + " `" + v + "` key `" + k + "` supplied to `" + f + "`.\nBad object: " + JSON.stringify(g[b], null, " ") + `
|
|
569
|
+
Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
|
|
636
570
|
);
|
|
637
|
-
var
|
|
638
|
-
if (
|
|
639
|
-
return
|
|
571
|
+
var r = L(h, k, f, E, v + "." + k, i);
|
|
572
|
+
if (r)
|
|
573
|
+
return r;
|
|
640
574
|
}
|
|
641
575
|
return null;
|
|
642
576
|
}
|
|
643
|
-
return
|
|
577
|
+
return q(m);
|
|
644
578
|
}
|
|
645
|
-
function
|
|
646
|
-
switch (typeof
|
|
579
|
+
function C(p) {
|
|
580
|
+
switch (typeof p) {
|
|
647
581
|
case "number":
|
|
648
582
|
case "string":
|
|
649
583
|
case "undefined":
|
|
650
584
|
return !0;
|
|
651
585
|
case "boolean":
|
|
652
|
-
return !
|
|
586
|
+
return !p;
|
|
653
587
|
case "object":
|
|
654
|
-
if (Array.isArray(
|
|
655
|
-
return
|
|
656
|
-
if (
|
|
588
|
+
if (Array.isArray(p))
|
|
589
|
+
return p.every(C);
|
|
590
|
+
if (p === null || c(p))
|
|
657
591
|
return !0;
|
|
658
|
-
var m = w(
|
|
592
|
+
var m = w(p);
|
|
659
593
|
if (m) {
|
|
660
|
-
var g = m.call(
|
|
661
|
-
if (m !==
|
|
662
|
-
for (; !(
|
|
663
|
-
if (!
|
|
594
|
+
var g = m.call(p), b;
|
|
595
|
+
if (m !== p.entries) {
|
|
596
|
+
for (; !(b = g.next()).done; )
|
|
597
|
+
if (!C(b.value))
|
|
664
598
|
return !1;
|
|
665
599
|
} else
|
|
666
|
-
for (; !(
|
|
667
|
-
var f =
|
|
668
|
-
if (f && !
|
|
600
|
+
for (; !(b = g.next()).done; ) {
|
|
601
|
+
var f = b.value;
|
|
602
|
+
if (f && !C(f[1]))
|
|
669
603
|
return !1;
|
|
670
604
|
}
|
|
671
605
|
} else
|
|
@@ -675,27 +609,27 @@ Valid keys: ` + JSON.stringify(Object.keys(r), null, " ")
|
|
|
675
609
|
return !1;
|
|
676
610
|
}
|
|
677
611
|
}
|
|
678
|
-
function
|
|
679
|
-
return
|
|
612
|
+
function U(p, m) {
|
|
613
|
+
return p === "symbol" ? !0 : m ? m["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && m instanceof Symbol : !1;
|
|
680
614
|
}
|
|
681
|
-
function
|
|
682
|
-
var m = typeof
|
|
683
|
-
return Array.isArray(
|
|
615
|
+
function G(p) {
|
|
616
|
+
var m = typeof p;
|
|
617
|
+
return Array.isArray(p) ? "array" : p instanceof RegExp ? "object" : U(m, p) ? "symbol" : m;
|
|
684
618
|
}
|
|
685
|
-
function
|
|
686
|
-
if (typeof
|
|
687
|
-
return "" +
|
|
688
|
-
var m =
|
|
619
|
+
function J(p) {
|
|
620
|
+
if (typeof p > "u" || p === null)
|
|
621
|
+
return "" + p;
|
|
622
|
+
var m = G(p);
|
|
689
623
|
if (m === "object") {
|
|
690
|
-
if (
|
|
624
|
+
if (p instanceof Date)
|
|
691
625
|
return "date";
|
|
692
|
-
if (
|
|
626
|
+
if (p instanceof RegExp)
|
|
693
627
|
return "regexp";
|
|
694
628
|
}
|
|
695
629
|
return m;
|
|
696
630
|
}
|
|
697
|
-
function
|
|
698
|
-
var m =
|
|
631
|
+
function ta(p) {
|
|
632
|
+
var m = J(p);
|
|
699
633
|
switch (m) {
|
|
700
634
|
case "array":
|
|
701
635
|
case "object":
|
|
@@ -708,23 +642,23 @@ Valid keys: ` + JSON.stringify(Object.keys(r), null, " ")
|
|
|
708
642
|
return m;
|
|
709
643
|
}
|
|
710
644
|
}
|
|
711
|
-
function
|
|
712
|
-
return !
|
|
645
|
+
function Y(p) {
|
|
646
|
+
return !p.constructor || !p.constructor.name ? P : p.constructor.name;
|
|
713
647
|
}
|
|
714
648
|
return z.checkPropTypes = o, z.resetWarningCache = o.resetWarningCache, z.PropTypes = z, z;
|
|
715
|
-
},
|
|
649
|
+
}, Wa;
|
|
716
650
|
}
|
|
717
|
-
var
|
|
718
|
-
function
|
|
719
|
-
if (
|
|
720
|
-
|
|
721
|
-
var a = /* @__PURE__ */
|
|
651
|
+
var Ya, re;
|
|
652
|
+
function Xe() {
|
|
653
|
+
if (re) return Ya;
|
|
654
|
+
re = 1;
|
|
655
|
+
var a = /* @__PURE__ */ Za();
|
|
722
656
|
function e() {
|
|
723
657
|
}
|
|
724
658
|
function i() {
|
|
725
659
|
}
|
|
726
|
-
return i.resetWarningCache = e,
|
|
727
|
-
function t(d, c,
|
|
660
|
+
return i.resetWarningCache = e, Ya = function() {
|
|
661
|
+
function t(d, c, y, j, x, w) {
|
|
728
662
|
if (w !== a) {
|
|
729
663
|
var P = new Error(
|
|
730
664
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -760,21 +694,21 @@ function ei() {
|
|
|
760
694
|
resetWarningCache: e
|
|
761
695
|
};
|
|
762
696
|
return n.PropTypes = n, n;
|
|
763
|
-
},
|
|
764
|
-
}
|
|
765
|
-
var
|
|
766
|
-
function
|
|
767
|
-
if (
|
|
768
|
-
if (
|
|
769
|
-
var a =
|
|
770
|
-
|
|
697
|
+
}, Ya;
|
|
698
|
+
}
|
|
699
|
+
var ce;
|
|
700
|
+
function Qe() {
|
|
701
|
+
if (ce) return wa.exports;
|
|
702
|
+
if (ce = 1, process.env.NODE_ENV !== "production") {
|
|
703
|
+
var a = je(), e = !0;
|
|
704
|
+
wa.exports = /* @__PURE__ */ Je()(a.isElement, e);
|
|
771
705
|
} else
|
|
772
|
-
|
|
773
|
-
return
|
|
706
|
+
wa.exports = /* @__PURE__ */ Xe()();
|
|
707
|
+
return wa.exports;
|
|
774
708
|
}
|
|
775
|
-
var
|
|
776
|
-
const
|
|
777
|
-
function
|
|
709
|
+
var ai = /* @__PURE__ */ Qe();
|
|
710
|
+
const S = /* @__PURE__ */ ke(ai);
|
|
711
|
+
function la(a, e, i, t) {
|
|
778
712
|
function o(n) {
|
|
779
713
|
return n instanceof i ? n : new i(function(d) {
|
|
780
714
|
d(n);
|
|
@@ -788,7 +722,7 @@ function sa(a, e, i, t) {
|
|
|
788
722
|
d(w);
|
|
789
723
|
}
|
|
790
724
|
}
|
|
791
|
-
function
|
|
725
|
+
function y(x) {
|
|
792
726
|
try {
|
|
793
727
|
j(t.throw(x));
|
|
794
728
|
} catch (w) {
|
|
@@ -796,12 +730,12 @@ function sa(a, e, i, t) {
|
|
|
796
730
|
}
|
|
797
731
|
}
|
|
798
732
|
function j(x) {
|
|
799
|
-
x.done ? n(x.value) : o(x.value).then(c,
|
|
733
|
+
x.done ? n(x.value) : o(x.value).then(c, y);
|
|
800
734
|
}
|
|
801
735
|
j((t = t.apply(a, e || [])).next());
|
|
802
736
|
});
|
|
803
737
|
}
|
|
804
|
-
const
|
|
738
|
+
const ei = /* @__PURE__ */ new Map([
|
|
805
739
|
// https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
|
|
806
740
|
["1km", "application/vnd.1000minds.decision-model+xml"],
|
|
807
741
|
["3dml", "text/vnd.in3d.3dml"],
|
|
@@ -2004,14 +1938,14 @@ const ni = /* @__PURE__ */ new Map([
|
|
|
2004
1938
|
["zmm", "application/vnd.handheld-entertainment+xml"],
|
|
2005
1939
|
["zsh", "text/x-scriptzsh"]
|
|
2006
1940
|
]);
|
|
2007
|
-
function
|
|
2008
|
-
const t =
|
|
2009
|
-
return typeof t.path != "string" &&
|
|
1941
|
+
function ua(a, e, i) {
|
|
1942
|
+
const t = ii(a), { webkitRelativePath: o } = a, n = typeof e == "string" ? e : typeof o == "string" && o.length > 0 ? o : `./${a.name}`;
|
|
1943
|
+
return typeof t.path != "string" && le(t, "path", n), le(t, "relativePath", n), t;
|
|
2010
1944
|
}
|
|
2011
|
-
function
|
|
1945
|
+
function ii(a) {
|
|
2012
1946
|
const { name: e } = a;
|
|
2013
1947
|
if (e && e.lastIndexOf(".") !== -1 && !a.type) {
|
|
2014
|
-
const t = e.split(".").pop().toLowerCase(), o =
|
|
1948
|
+
const t = e.split(".").pop().toLowerCase(), o = ei.get(t);
|
|
2015
1949
|
o && Object.defineProperty(a, "type", {
|
|
2016
1950
|
value: o,
|
|
2017
1951
|
writable: !1,
|
|
@@ -2021,7 +1955,7 @@ function oi(a) {
|
|
|
2021
1955
|
}
|
|
2022
1956
|
return a;
|
|
2023
1957
|
}
|
|
2024
|
-
function
|
|
1958
|
+
function le(a, e, i) {
|
|
2025
1959
|
Object.defineProperty(a, e, {
|
|
2026
1960
|
value: i,
|
|
2027
1961
|
writable: !1,
|
|
@@ -2029,49 +1963,49 @@ function se(a, e, i) {
|
|
|
2029
1963
|
enumerable: !0
|
|
2030
1964
|
});
|
|
2031
1965
|
}
|
|
2032
|
-
const
|
|
1966
|
+
const ti = [
|
|
2033
1967
|
// Thumbnail cache files for macOS and Windows
|
|
2034
1968
|
".DS_Store",
|
|
2035
1969
|
// macOs
|
|
2036
1970
|
"Thumbs.db"
|
|
2037
1971
|
// Windows
|
|
2038
1972
|
];
|
|
2039
|
-
function
|
|
2040
|
-
return
|
|
2041
|
-
return
|
|
1973
|
+
function ni(a) {
|
|
1974
|
+
return la(this, void 0, void 0, function* () {
|
|
1975
|
+
return Ta(a) && oi(a.dataTransfer) ? li(a.dataTransfer, a.type) : pi(a) ? ri(a) : Array.isArray(a) && a.every((e) => "getFile" in e && typeof e.getFile == "function") ? ci(a) : [];
|
|
2042
1976
|
});
|
|
2043
1977
|
}
|
|
2044
|
-
function
|
|
2045
|
-
return
|
|
1978
|
+
function oi(a) {
|
|
1979
|
+
return Ta(a);
|
|
2046
1980
|
}
|
|
2047
|
-
function
|
|
2048
|
-
return
|
|
1981
|
+
function pi(a) {
|
|
1982
|
+
return Ta(a) && Ta(a.target);
|
|
2049
1983
|
}
|
|
2050
|
-
function
|
|
1984
|
+
function Ta(a) {
|
|
2051
1985
|
return typeof a == "object" && a !== null;
|
|
2052
1986
|
}
|
|
2053
|
-
function
|
|
2054
|
-
return Ba(a.target.files).map((e) =>
|
|
1987
|
+
function ri(a) {
|
|
1988
|
+
return Ba(a.target.files).map((e) => ua(e));
|
|
2055
1989
|
}
|
|
2056
|
-
function
|
|
2057
|
-
return
|
|
2058
|
-
return (yield Promise.all(a.map((i) => i.getFile()))).map((i) =>
|
|
1990
|
+
function ci(a) {
|
|
1991
|
+
return la(this, void 0, void 0, function* () {
|
|
1992
|
+
return (yield Promise.all(a.map((i) => i.getFile()))).map((i) => ua(i));
|
|
2059
1993
|
});
|
|
2060
1994
|
}
|
|
2061
|
-
function
|
|
2062
|
-
return
|
|
1995
|
+
function li(a, e) {
|
|
1996
|
+
return la(this, void 0, void 0, function* () {
|
|
2063
1997
|
if (a.items) {
|
|
2064
1998
|
const i = Ba(a.items).filter((o) => o.kind === "file");
|
|
2065
1999
|
if (e !== "drop")
|
|
2066
2000
|
return i;
|
|
2067
|
-
const t = yield Promise.all(i.map(
|
|
2068
|
-
return
|
|
2001
|
+
const t = yield Promise.all(i.map(si));
|
|
2002
|
+
return se(Te(t));
|
|
2069
2003
|
}
|
|
2070
|
-
return
|
|
2004
|
+
return se(Ba(a.files).map((i) => ua(i)));
|
|
2071
2005
|
});
|
|
2072
2006
|
}
|
|
2073
|
-
function
|
|
2074
|
-
return a.filter((e) =>
|
|
2007
|
+
function se(a) {
|
|
2008
|
+
return a.filter((e) => ti.indexOf(e.name) === -1);
|
|
2075
2009
|
}
|
|
2076
2010
|
function Ba(a) {
|
|
2077
2011
|
if (a === null)
|
|
@@ -2083,20 +2017,20 @@ function Ba(a) {
|
|
|
2083
2017
|
}
|
|
2084
2018
|
return e;
|
|
2085
2019
|
}
|
|
2086
|
-
function
|
|
2020
|
+
function si(a) {
|
|
2087
2021
|
if (typeof a.webkitGetAsEntry != "function")
|
|
2088
|
-
return
|
|
2022
|
+
return de(a);
|
|
2089
2023
|
const e = a.webkitGetAsEntry();
|
|
2090
|
-
return e && e.isDirectory ?
|
|
2024
|
+
return e && e.isDirectory ? _e(e) : de(a, e);
|
|
2091
2025
|
}
|
|
2092
|
-
function
|
|
2026
|
+
function Te(a) {
|
|
2093
2027
|
return a.reduce((e, i) => [
|
|
2094
2028
|
...e,
|
|
2095
|
-
...Array.isArray(i) ?
|
|
2029
|
+
...Array.isArray(i) ? Te(i) : [i]
|
|
2096
2030
|
], []);
|
|
2097
2031
|
}
|
|
2098
|
-
function
|
|
2099
|
-
return
|
|
2032
|
+
function de(a, e) {
|
|
2033
|
+
return la(this, void 0, void 0, function* () {
|
|
2100
2034
|
var i;
|
|
2101
2035
|
if (globalThis.isSecureContext && typeof a.getAsFileSystemHandle == "function") {
|
|
2102
2036
|
const n = yield a.getAsFileSystemHandle();
|
|
@@ -2104,28 +2038,28 @@ function me(a, e) {
|
|
|
2104
2038
|
throw new Error(`${a} is not a File`);
|
|
2105
2039
|
if (n !== void 0) {
|
|
2106
2040
|
const d = yield n.getFile();
|
|
2107
|
-
return d.handle = n,
|
|
2041
|
+
return d.handle = n, ua(d);
|
|
2108
2042
|
}
|
|
2109
2043
|
}
|
|
2110
2044
|
const t = a.getAsFile();
|
|
2111
2045
|
if (!t)
|
|
2112
2046
|
throw new Error(`${a} is not a File`);
|
|
2113
|
-
return
|
|
2047
|
+
return ua(t, (i = e == null ? void 0 : e.fullPath) !== null && i !== void 0 ? i : void 0);
|
|
2114
2048
|
});
|
|
2115
2049
|
}
|
|
2116
|
-
function
|
|
2117
|
-
return
|
|
2118
|
-
return a.isDirectory ?
|
|
2050
|
+
function di(a) {
|
|
2051
|
+
return la(this, void 0, void 0, function* () {
|
|
2052
|
+
return a.isDirectory ? _e(a) : mi(a);
|
|
2119
2053
|
});
|
|
2120
2054
|
}
|
|
2121
|
-
function
|
|
2055
|
+
function _e(a) {
|
|
2122
2056
|
const e = a.createReader();
|
|
2123
2057
|
return new Promise((i, t) => {
|
|
2124
2058
|
const o = [];
|
|
2125
2059
|
function n() {
|
|
2126
|
-
e.readEntries((d) =>
|
|
2060
|
+
e.readEntries((d) => la(this, void 0, void 0, function* () {
|
|
2127
2061
|
if (d.length) {
|
|
2128
|
-
const c = Promise.all(d.map(
|
|
2062
|
+
const c = Promise.all(d.map(di));
|
|
2129
2063
|
o.push(c), n();
|
|
2130
2064
|
} else
|
|
2131
2065
|
try {
|
|
@@ -2141,11 +2075,11 @@ function Oe(a) {
|
|
|
2141
2075
|
n();
|
|
2142
2076
|
});
|
|
2143
2077
|
}
|
|
2144
|
-
function
|
|
2145
|
-
return
|
|
2078
|
+
function mi(a) {
|
|
2079
|
+
return la(this, void 0, void 0, function* () {
|
|
2146
2080
|
return new Promise((e, i) => {
|
|
2147
2081
|
a.file((t) => {
|
|
2148
|
-
const o =
|
|
2082
|
+
const o = ua(t, a.fullPath);
|
|
2149
2083
|
e(o);
|
|
2150
2084
|
}, (t) => {
|
|
2151
2085
|
i(t);
|
|
@@ -2153,9 +2087,9 @@ function vi(a) {
|
|
|
2153
2087
|
});
|
|
2154
2088
|
});
|
|
2155
2089
|
}
|
|
2156
|
-
var
|
|
2157
|
-
function
|
|
2158
|
-
return
|
|
2090
|
+
var ja = {}, me;
|
|
2091
|
+
function ui() {
|
|
2092
|
+
return me || (me = 1, ja.__esModule = !0, ja.default = function(a, e) {
|
|
2159
2093
|
if (a && e) {
|
|
2160
2094
|
var i = Array.isArray(e) ? e : e.split(",");
|
|
2161
2095
|
if (i.length === 0)
|
|
@@ -2167,24 +2101,24 @@ function xi() {
|
|
|
2167
2101
|
});
|
|
2168
2102
|
}
|
|
2169
2103
|
return !0;
|
|
2170
|
-
}),
|
|
2104
|
+
}), ja;
|
|
2171
2105
|
}
|
|
2172
|
-
var
|
|
2173
|
-
const
|
|
2174
|
-
function
|
|
2175
|
-
return
|
|
2106
|
+
var fi = ui();
|
|
2107
|
+
const Ua = /* @__PURE__ */ ke(fi);
|
|
2108
|
+
function ue(a) {
|
|
2109
|
+
return gi(a) || xi(a) || De(a) || vi();
|
|
2176
2110
|
}
|
|
2177
|
-
function
|
|
2111
|
+
function vi() {
|
|
2178
2112
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2179
2113
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2180
2114
|
}
|
|
2181
|
-
function
|
|
2115
|
+
function xi(a) {
|
|
2182
2116
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
|
|
2183
2117
|
}
|
|
2184
|
-
function
|
|
2185
|
-
if (Array.isArray(a)) return
|
|
2118
|
+
function gi(a) {
|
|
2119
|
+
if (Array.isArray(a)) return Ha(a);
|
|
2186
2120
|
}
|
|
2187
|
-
function
|
|
2121
|
+
function fe(a, e) {
|
|
2188
2122
|
var i = Object.keys(a);
|
|
2189
2123
|
if (Object.getOwnPropertySymbols) {
|
|
2190
2124
|
var t = Object.getOwnPropertySymbols(a);
|
|
@@ -2194,50 +2128,50 @@ function ve(a, e) {
|
|
|
2194
2128
|
}
|
|
2195
2129
|
return i;
|
|
2196
2130
|
}
|
|
2197
|
-
function
|
|
2131
|
+
function ve(a) {
|
|
2198
2132
|
for (var e = 1; e < arguments.length; e++) {
|
|
2199
2133
|
var i = arguments[e] != null ? arguments[e] : {};
|
|
2200
|
-
e % 2 ?
|
|
2201
|
-
|
|
2202
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(i)) :
|
|
2134
|
+
e % 2 ? fe(Object(i), !0).forEach(function(t) {
|
|
2135
|
+
Oe(a, t, i[t]);
|
|
2136
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(i)) : fe(Object(i)).forEach(function(t) {
|
|
2203
2137
|
Object.defineProperty(a, t, Object.getOwnPropertyDescriptor(i, t));
|
|
2204
2138
|
});
|
|
2205
2139
|
}
|
|
2206
2140
|
return a;
|
|
2207
2141
|
}
|
|
2208
|
-
function
|
|
2142
|
+
function Oe(a, e, i) {
|
|
2209
2143
|
return e in a ? Object.defineProperty(a, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : a[e] = i, a;
|
|
2210
2144
|
}
|
|
2211
|
-
function
|
|
2212
|
-
return
|
|
2145
|
+
function xa(a, e) {
|
|
2146
|
+
return hi(a) || bi(a, e) || De(a, e) || yi();
|
|
2213
2147
|
}
|
|
2214
|
-
function
|
|
2148
|
+
function yi() {
|
|
2215
2149
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2216
2150
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2217
2151
|
}
|
|
2218
|
-
function
|
|
2152
|
+
function De(a, e) {
|
|
2219
2153
|
if (a) {
|
|
2220
|
-
if (typeof a == "string") return
|
|
2154
|
+
if (typeof a == "string") return Ha(a, e);
|
|
2221
2155
|
var i = Object.prototype.toString.call(a).slice(8, -1);
|
|
2222
2156
|
if (i === "Object" && a.constructor && (i = a.constructor.name), i === "Map" || i === "Set") return Array.from(a);
|
|
2223
|
-
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return
|
|
2157
|
+
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return Ha(a, e);
|
|
2224
2158
|
}
|
|
2225
2159
|
}
|
|
2226
|
-
function
|
|
2160
|
+
function Ha(a, e) {
|
|
2227
2161
|
(e == null || e > a.length) && (e = a.length);
|
|
2228
2162
|
for (var i = 0, t = new Array(e); i < e; i++)
|
|
2229
2163
|
t[i] = a[i];
|
|
2230
2164
|
return t;
|
|
2231
2165
|
}
|
|
2232
|
-
function
|
|
2166
|
+
function bi(a, e) {
|
|
2233
2167
|
var i = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
|
|
2234
2168
|
if (i != null) {
|
|
2235
2169
|
var t = [], o = !0, n = !1, d, c;
|
|
2236
2170
|
try {
|
|
2237
2171
|
for (i = i.call(a); !(o = (d = i.next()).done) && (t.push(d.value), !(e && t.length === e)); o = !0)
|
|
2238
2172
|
;
|
|
2239
|
-
} catch (
|
|
2240
|
-
n = !0, c =
|
|
2173
|
+
} catch (y) {
|
|
2174
|
+
n = !0, c = y;
|
|
2241
2175
|
} finally {
|
|
2242
2176
|
try {
|
|
2243
2177
|
!o && i.return != null && i.return();
|
|
@@ -2248,60 +2182,60 @@ function ki(a, e) {
|
|
|
2248
2182
|
return t;
|
|
2249
2183
|
}
|
|
2250
2184
|
}
|
|
2251
|
-
function
|
|
2185
|
+
function hi(a) {
|
|
2252
2186
|
if (Array.isArray(a)) return a;
|
|
2253
2187
|
}
|
|
2254
|
-
var
|
|
2188
|
+
var wi = typeof Ua == "function" ? Ua : Ua.default, ki = "file-invalid-type", ji = "file-too-large", Ei = "file-too-small", Ae = "too-many-files", et = {
|
|
2255
2189
|
TooManyFiles: Ae
|
|
2256
|
-
},
|
|
2190
|
+
}, Ti = function() {
|
|
2257
2191
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", i = e.split(","), t = i.length > 1 ? "one of ".concat(i.join(", ")) : i[0];
|
|
2258
2192
|
return {
|
|
2259
|
-
code:
|
|
2193
|
+
code: ki,
|
|
2260
2194
|
message: "File type must be ".concat(t)
|
|
2261
2195
|
};
|
|
2262
|
-
},
|
|
2196
|
+
}, xe = function(e) {
|
|
2263
2197
|
return {
|
|
2264
|
-
code:
|
|
2198
|
+
code: ji,
|
|
2265
2199
|
message: "File is larger than ".concat(e, " ").concat(e === 1 ? "byte" : "bytes")
|
|
2266
2200
|
};
|
|
2267
|
-
},
|
|
2201
|
+
}, ge = function(e) {
|
|
2268
2202
|
return {
|
|
2269
|
-
code:
|
|
2203
|
+
code: Ei,
|
|
2270
2204
|
message: "File is smaller than ".concat(e, " ").concat(e === 1 ? "byte" : "bytes")
|
|
2271
2205
|
};
|
|
2272
|
-
},
|
|
2206
|
+
}, _i = {
|
|
2273
2207
|
code: Ae,
|
|
2274
2208
|
message: "Too many files"
|
|
2275
2209
|
};
|
|
2276
|
-
function
|
|
2277
|
-
var i = a.type === "application/x-moz-file" ||
|
|
2278
|
-
return [i, i ? null :
|
|
2279
|
-
}
|
|
2280
|
-
function
|
|
2281
|
-
if (
|
|
2282
|
-
if (
|
|
2283
|
-
if (a.size > i) return [!1,
|
|
2284
|
-
if (a.size < e) return [!1,
|
|
2210
|
+
function Se(a, e) {
|
|
2211
|
+
var i = a.type === "application/x-moz-file" || wi(a, e);
|
|
2212
|
+
return [i, i ? null : Ti(e)];
|
|
2213
|
+
}
|
|
2214
|
+
function Pe(a, e, i) {
|
|
2215
|
+
if (ca(a.size))
|
|
2216
|
+
if (ca(e) && ca(i)) {
|
|
2217
|
+
if (a.size > i) return [!1, xe(i)];
|
|
2218
|
+
if (a.size < e) return [!1, ge(e)];
|
|
2285
2219
|
} else {
|
|
2286
|
-
if (
|
|
2287
|
-
if (
|
|
2220
|
+
if (ca(e) && a.size < e) return [!1, ge(e)];
|
|
2221
|
+
if (ca(i) && a.size > i) return [!1, xe(i)];
|
|
2288
2222
|
}
|
|
2289
2223
|
return [!0, null];
|
|
2290
2224
|
}
|
|
2291
|
-
function
|
|
2225
|
+
function ca(a) {
|
|
2292
2226
|
return a != null;
|
|
2293
2227
|
}
|
|
2294
|
-
function
|
|
2228
|
+
function Oi(a) {
|
|
2295
2229
|
var e = a.files, i = a.accept, t = a.minSize, o = a.maxSize, n = a.multiple, d = a.maxFiles, c = a.validator;
|
|
2296
|
-
return !n && e.length > 1 || n && d >= 1 && e.length > d ? !1 : e.every(function(
|
|
2297
|
-
var j =
|
|
2298
|
-
return w &&
|
|
2230
|
+
return !n && e.length > 1 || n && d >= 1 && e.length > d ? !1 : e.every(function(y) {
|
|
2231
|
+
var j = Se(y, i), x = xa(j, 1), w = x[0], P = Pe(y, t, o), z = xa(P, 1), $ = z[0], A = c ? c(y) : null;
|
|
2232
|
+
return w && $ && !A;
|
|
2299
2233
|
});
|
|
2300
2234
|
}
|
|
2301
|
-
function
|
|
2235
|
+
function _a(a) {
|
|
2302
2236
|
return typeof a.isPropagationStopped == "function" ? a.isPropagationStopped() : typeof a.cancelBubble < "u" ? a.cancelBubble : !1;
|
|
2303
2237
|
}
|
|
2304
|
-
function
|
|
2238
|
+
function Ea(a) {
|
|
2305
2239
|
return a.dataTransfer ? Array.prototype.some.call(a.dataTransfer.types, function(e) {
|
|
2306
2240
|
return e === "Files" || e === "application/x-moz-file";
|
|
2307
2241
|
}) : !!a.target && !!a.target.files;
|
|
@@ -2309,38 +2243,38 @@ function Ta(a) {
|
|
|
2309
2243
|
function ye(a) {
|
|
2310
2244
|
a.preventDefault();
|
|
2311
2245
|
}
|
|
2312
|
-
function
|
|
2246
|
+
function Di(a) {
|
|
2313
2247
|
return a.indexOf("MSIE") !== -1 || a.indexOf("Trident/") !== -1;
|
|
2314
2248
|
}
|
|
2315
|
-
function
|
|
2249
|
+
function Ai(a) {
|
|
2316
2250
|
return a.indexOf("Edge/") !== -1;
|
|
2317
2251
|
}
|
|
2318
|
-
function
|
|
2252
|
+
function Si() {
|
|
2319
2253
|
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
2320
|
-
return
|
|
2254
|
+
return Di(a) || Ai(a);
|
|
2321
2255
|
}
|
|
2322
|
-
function
|
|
2256
|
+
function X() {
|
|
2323
2257
|
for (var a = arguments.length, e = new Array(a), i = 0; i < a; i++)
|
|
2324
2258
|
e[i] = arguments[i];
|
|
2325
2259
|
return function(t) {
|
|
2326
2260
|
for (var o = arguments.length, n = new Array(o > 1 ? o - 1 : 0), d = 1; d < o; d++)
|
|
2327
2261
|
n[d - 1] = arguments[d];
|
|
2328
2262
|
return e.some(function(c) {
|
|
2329
|
-
return !
|
|
2263
|
+
return !_a(t) && c && c.apply(void 0, [t].concat(n)), _a(t);
|
|
2330
2264
|
});
|
|
2331
2265
|
};
|
|
2332
2266
|
}
|
|
2333
|
-
function
|
|
2267
|
+
function Pi() {
|
|
2334
2268
|
return "showOpenFilePicker" in window;
|
|
2335
2269
|
}
|
|
2336
|
-
function
|
|
2337
|
-
if (
|
|
2270
|
+
function zi(a) {
|
|
2271
|
+
if (ca(a)) {
|
|
2338
2272
|
var e = Object.entries(a).filter(function(i) {
|
|
2339
|
-
var t =
|
|
2340
|
-
return
|
|
2273
|
+
var t = xa(i, 2), o = t[0], n = t[1], d = !0;
|
|
2274
|
+
return ze(o) || (console.warn('Skipped "'.concat(o, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), d = !1), (!Array.isArray(n) || !n.every(Re)) && (console.warn('Skipped "'.concat(o, '" because an invalid file extension was provided.')), d = !1), d;
|
|
2341
2275
|
}).reduce(function(i, t) {
|
|
2342
|
-
var o =
|
|
2343
|
-
return
|
|
2276
|
+
var o = xa(t, 2), n = o[0], d = o[1];
|
|
2277
|
+
return ve(ve({}, i), {}, Oe({}, n, d));
|
|
2344
2278
|
}, {});
|
|
2345
2279
|
return [{
|
|
2346
2280
|
// description is required due to https://crbug.com/1264708
|
|
@@ -2350,71 +2284,71 @@ function Fi(a) {
|
|
|
2350
2284
|
}
|
|
2351
2285
|
return a;
|
|
2352
2286
|
}
|
|
2353
|
-
function
|
|
2354
|
-
if (
|
|
2287
|
+
function Ri(a) {
|
|
2288
|
+
if (ca(a))
|
|
2355
2289
|
return Object.entries(a).reduce(function(e, i) {
|
|
2356
|
-
var t =
|
|
2357
|
-
return [].concat(
|
|
2290
|
+
var t = xa(i, 2), o = t[0], n = t[1];
|
|
2291
|
+
return [].concat(ue(e), [o], ue(n));
|
|
2358
2292
|
}, []).filter(function(e) {
|
|
2359
|
-
return
|
|
2293
|
+
return ze(e) || Re(e);
|
|
2360
2294
|
}).join(",");
|
|
2361
2295
|
}
|
|
2362
|
-
function
|
|
2296
|
+
function Ci(a) {
|
|
2363
2297
|
return a instanceof DOMException && (a.name === "AbortError" || a.code === a.ABORT_ERR);
|
|
2364
2298
|
}
|
|
2365
|
-
function
|
|
2299
|
+
function Fi(a) {
|
|
2366
2300
|
return a instanceof DOMException && (a.name === "SecurityError" || a.code === a.SECURITY_ERR);
|
|
2367
2301
|
}
|
|
2368
|
-
function
|
|
2302
|
+
function ze(a) {
|
|
2369
2303
|
return a === "audio/*" || a === "video/*" || a === "image/*" || a === "text/*" || a === "application/*" || /\w+\/[-+.\w]+/g.test(a);
|
|
2370
2304
|
}
|
|
2371
|
-
function
|
|
2305
|
+
function Re(a) {
|
|
2372
2306
|
return /^.*\.[\w]+$/.test(a);
|
|
2373
2307
|
}
|
|
2374
|
-
var
|
|
2375
|
-
function
|
|
2376
|
-
return
|
|
2308
|
+
var Ii = ["children"], qi = ["open"], Mi = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], $i = ["refKey", "onChange", "onClick"];
|
|
2309
|
+
function Li(a) {
|
|
2310
|
+
return Ui(a) || Yi(a) || Ce(a) || Wi();
|
|
2377
2311
|
}
|
|
2378
|
-
function
|
|
2312
|
+
function Wi() {
|
|
2379
2313
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2380
2314
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2381
2315
|
}
|
|
2382
|
-
function
|
|
2316
|
+
function Yi(a) {
|
|
2383
2317
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
|
|
2384
2318
|
}
|
|
2385
|
-
function
|
|
2386
|
-
if (Array.isArray(a)) return
|
|
2319
|
+
function Ui(a) {
|
|
2320
|
+
if (Array.isArray(a)) return Ga(a);
|
|
2387
2321
|
}
|
|
2388
2322
|
function Ka(a, e) {
|
|
2389
|
-
return
|
|
2323
|
+
return Hi(a) || Bi(a, e) || Ce(a, e) || Ki();
|
|
2390
2324
|
}
|
|
2391
|
-
function
|
|
2325
|
+
function Ki() {
|
|
2392
2326
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2393
2327
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2394
2328
|
}
|
|
2395
|
-
function
|
|
2329
|
+
function Ce(a, e) {
|
|
2396
2330
|
if (a) {
|
|
2397
|
-
if (typeof a == "string") return
|
|
2331
|
+
if (typeof a == "string") return Ga(a, e);
|
|
2398
2332
|
var i = Object.prototype.toString.call(a).slice(8, -1);
|
|
2399
2333
|
if (i === "Object" && a.constructor && (i = a.constructor.name), i === "Map" || i === "Set") return Array.from(a);
|
|
2400
|
-
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return
|
|
2334
|
+
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return Ga(a, e);
|
|
2401
2335
|
}
|
|
2402
2336
|
}
|
|
2403
|
-
function
|
|
2337
|
+
function Ga(a, e) {
|
|
2404
2338
|
(e == null || e > a.length) && (e = a.length);
|
|
2405
2339
|
for (var i = 0, t = new Array(e); i < e; i++)
|
|
2406
2340
|
t[i] = a[i];
|
|
2407
2341
|
return t;
|
|
2408
2342
|
}
|
|
2409
|
-
function
|
|
2343
|
+
function Bi(a, e) {
|
|
2410
2344
|
var i = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
|
|
2411
2345
|
if (i != null) {
|
|
2412
2346
|
var t = [], o = !0, n = !1, d, c;
|
|
2413
2347
|
try {
|
|
2414
2348
|
for (i = i.call(a); !(o = (d = i.next()).done) && (t.push(d.value), !(e && t.length === e)); o = !0)
|
|
2415
2349
|
;
|
|
2416
|
-
} catch (
|
|
2417
|
-
n = !0, c =
|
|
2350
|
+
} catch (y) {
|
|
2351
|
+
n = !0, c = y;
|
|
2418
2352
|
} finally {
|
|
2419
2353
|
try {
|
|
2420
2354
|
!o && i.return != null && i.return();
|
|
@@ -2425,10 +2359,10 @@ function Ni(a, e) {
|
|
|
2425
2359
|
return t;
|
|
2426
2360
|
}
|
|
2427
2361
|
}
|
|
2428
|
-
function
|
|
2362
|
+
function Hi(a) {
|
|
2429
2363
|
if (Array.isArray(a)) return a;
|
|
2430
2364
|
}
|
|
2431
|
-
function
|
|
2365
|
+
function be(a, e) {
|
|
2432
2366
|
var i = Object.keys(a);
|
|
2433
2367
|
if (Object.getOwnPropertySymbols) {
|
|
2434
2368
|
var t = Object.getOwnPropertySymbols(a);
|
|
@@ -2438,23 +2372,23 @@ function he(a, e) {
|
|
|
2438
2372
|
}
|
|
2439
2373
|
return i;
|
|
2440
2374
|
}
|
|
2441
|
-
function
|
|
2375
|
+
function R(a) {
|
|
2442
2376
|
for (var e = 1; e < arguments.length; e++) {
|
|
2443
2377
|
var i = arguments[e] != null ? arguments[e] : {};
|
|
2444
|
-
e % 2 ?
|
|
2445
|
-
|
|
2446
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(i)) :
|
|
2378
|
+
e % 2 ? be(Object(i), !0).forEach(function(t) {
|
|
2379
|
+
Na(a, t, i[t]);
|
|
2380
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(i)) : be(Object(i)).forEach(function(t) {
|
|
2447
2381
|
Object.defineProperty(a, t, Object.getOwnPropertyDescriptor(i, t));
|
|
2448
2382
|
});
|
|
2449
2383
|
}
|
|
2450
2384
|
return a;
|
|
2451
2385
|
}
|
|
2452
|
-
function
|
|
2386
|
+
function Na(a, e, i) {
|
|
2453
2387
|
return e in a ? Object.defineProperty(a, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : a[e] = i, a;
|
|
2454
2388
|
}
|
|
2455
|
-
function
|
|
2389
|
+
function Oa(a, e) {
|
|
2456
2390
|
if (a == null) return {};
|
|
2457
|
-
var i =
|
|
2391
|
+
var i = Gi(a, e), t, o;
|
|
2458
2392
|
if (Object.getOwnPropertySymbols) {
|
|
2459
2393
|
var n = Object.getOwnPropertySymbols(a);
|
|
2460
2394
|
for (o = 0; o < n.length; o++)
|
|
@@ -2462,27 +2396,27 @@ function Da(a, e) {
|
|
|
2462
2396
|
}
|
|
2463
2397
|
return i;
|
|
2464
2398
|
}
|
|
2465
|
-
function
|
|
2399
|
+
function Gi(a, e) {
|
|
2466
2400
|
if (a == null) return {};
|
|
2467
2401
|
var i = {}, t = Object.keys(a), o, n;
|
|
2468
2402
|
for (n = 0; n < t.length; n++)
|
|
2469
2403
|
o = t[n], !(e.indexOf(o) >= 0) && (i[o] = a[o]);
|
|
2470
2404
|
return i;
|
|
2471
2405
|
}
|
|
2472
|
-
var
|
|
2473
|
-
var i = a.children, t =
|
|
2474
|
-
return
|
|
2406
|
+
var Ja = /* @__PURE__ */ Ye(function(a, e) {
|
|
2407
|
+
var i = a.children, t = Oa(a, Ii), o = Ni(t), n = o.open, d = Oa(o, qi);
|
|
2408
|
+
return Ue(e, function() {
|
|
2475
2409
|
return {
|
|
2476
2410
|
open: n
|
|
2477
2411
|
};
|
|
2478
|
-
}, [n]), /* @__PURE__ */
|
|
2412
|
+
}, [n]), /* @__PURE__ */ Le.createElement(Ke, null, i(R(R({}, d), {}, {
|
|
2479
2413
|
open: n
|
|
2480
2414
|
})));
|
|
2481
2415
|
});
|
|
2482
|
-
|
|
2483
|
-
var
|
|
2416
|
+
Ja.displayName = "Dropzone";
|
|
2417
|
+
var Fe = {
|
|
2484
2418
|
disabled: !1,
|
|
2485
|
-
getFilesFromEvent:
|
|
2419
|
+
getFilesFromEvent: ni,
|
|
2486
2420
|
maxSize: 1 / 0,
|
|
2487
2421
|
minSize: 0,
|
|
2488
2422
|
multiple: !0,
|
|
@@ -2496,8 +2430,8 @@ var Ie = {
|
|
|
2496
2430
|
useFsAccessApi: !1,
|
|
2497
2431
|
autoFocus: !1
|
|
2498
2432
|
};
|
|
2499
|
-
|
|
2500
|
-
|
|
2433
|
+
Ja.defaultProps = Fe;
|
|
2434
|
+
Ja.propTypes = {
|
|
2501
2435
|
/**
|
|
2502
2436
|
* Render function that exposes the dropzone state and prop getter fns
|
|
2503
2437
|
*
|
|
@@ -2513,7 +2447,7 @@ Xa.propTypes = {
|
|
|
2513
2447
|
* @param {File[]} params.acceptedFiles Accepted files
|
|
2514
2448
|
* @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
|
|
2515
2449
|
*/
|
|
2516
|
-
children:
|
|
2450
|
+
children: S.func,
|
|
2517
2451
|
/**
|
|
2518
2452
|
* Set accepted file types.
|
|
2519
2453
|
* Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
|
|
@@ -2521,90 +2455,90 @@ Xa.propTypes = {
|
|
|
2521
2455
|
* for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
|
|
2522
2456
|
* Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
|
|
2523
2457
|
*/
|
|
2524
|
-
accept:
|
|
2458
|
+
accept: S.objectOf(S.arrayOf(S.string)),
|
|
2525
2459
|
/**
|
|
2526
2460
|
* Allow drag 'n' drop (or selection from the file dialog) of multiple files
|
|
2527
2461
|
*/
|
|
2528
|
-
multiple:
|
|
2462
|
+
multiple: S.bool,
|
|
2529
2463
|
/**
|
|
2530
2464
|
* If false, allow dropped items to take over the current browser window
|
|
2531
2465
|
*/
|
|
2532
|
-
preventDropOnDocument:
|
|
2466
|
+
preventDropOnDocument: S.bool,
|
|
2533
2467
|
/**
|
|
2534
2468
|
* If true, disables click to open the native file selection dialog
|
|
2535
2469
|
*/
|
|
2536
|
-
noClick:
|
|
2470
|
+
noClick: S.bool,
|
|
2537
2471
|
/**
|
|
2538
2472
|
* If true, disables SPACE/ENTER to open the native file selection dialog.
|
|
2539
2473
|
* Note that it also stops tracking the focus state.
|
|
2540
2474
|
*/
|
|
2541
|
-
noKeyboard:
|
|
2475
|
+
noKeyboard: S.bool,
|
|
2542
2476
|
/**
|
|
2543
2477
|
* If true, disables drag 'n' drop
|
|
2544
2478
|
*/
|
|
2545
|
-
noDrag:
|
|
2479
|
+
noDrag: S.bool,
|
|
2546
2480
|
/**
|
|
2547
2481
|
* If true, stops drag event propagation to parents
|
|
2548
2482
|
*/
|
|
2549
|
-
noDragEventsBubbling:
|
|
2483
|
+
noDragEventsBubbling: S.bool,
|
|
2550
2484
|
/**
|
|
2551
2485
|
* Minimum file size (in bytes)
|
|
2552
2486
|
*/
|
|
2553
|
-
minSize:
|
|
2487
|
+
minSize: S.number,
|
|
2554
2488
|
/**
|
|
2555
2489
|
* Maximum file size (in bytes)
|
|
2556
2490
|
*/
|
|
2557
|
-
maxSize:
|
|
2491
|
+
maxSize: S.number,
|
|
2558
2492
|
/**
|
|
2559
2493
|
* Maximum accepted number of files
|
|
2560
2494
|
* The default value is 0 which means there is no limitation to how many files are accepted.
|
|
2561
2495
|
*/
|
|
2562
|
-
maxFiles:
|
|
2496
|
+
maxFiles: S.number,
|
|
2563
2497
|
/**
|
|
2564
2498
|
* Enable/disable the dropzone
|
|
2565
2499
|
*/
|
|
2566
|
-
disabled:
|
|
2500
|
+
disabled: S.bool,
|
|
2567
2501
|
/**
|
|
2568
2502
|
* Use this to provide a custom file aggregator
|
|
2569
2503
|
*
|
|
2570
2504
|
* @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
|
|
2571
2505
|
*/
|
|
2572
|
-
getFilesFromEvent:
|
|
2506
|
+
getFilesFromEvent: S.func,
|
|
2573
2507
|
/**
|
|
2574
2508
|
* Cb for when closing the file dialog with no selection
|
|
2575
2509
|
*/
|
|
2576
|
-
onFileDialogCancel:
|
|
2510
|
+
onFileDialogCancel: S.func,
|
|
2577
2511
|
/**
|
|
2578
2512
|
* Cb for when opening the file dialog
|
|
2579
2513
|
*/
|
|
2580
|
-
onFileDialogOpen:
|
|
2514
|
+
onFileDialogOpen: S.func,
|
|
2581
2515
|
/**
|
|
2582
2516
|
* Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
|
|
2583
2517
|
* to open the file picker instead of using an `<input type="file">` click event.
|
|
2584
2518
|
*/
|
|
2585
|
-
useFsAccessApi:
|
|
2519
|
+
useFsAccessApi: S.bool,
|
|
2586
2520
|
/**
|
|
2587
2521
|
* Set to true to focus the root element on render
|
|
2588
2522
|
*/
|
|
2589
|
-
autoFocus:
|
|
2523
|
+
autoFocus: S.bool,
|
|
2590
2524
|
/**
|
|
2591
2525
|
* Cb for when the `dragenter` event occurs.
|
|
2592
2526
|
*
|
|
2593
2527
|
* @param {DragEvent} event
|
|
2594
2528
|
*/
|
|
2595
|
-
onDragEnter:
|
|
2529
|
+
onDragEnter: S.func,
|
|
2596
2530
|
/**
|
|
2597
2531
|
* Cb for when the `dragleave` event occurs
|
|
2598
2532
|
*
|
|
2599
2533
|
* @param {DragEvent} event
|
|
2600
2534
|
*/
|
|
2601
|
-
onDragLeave:
|
|
2535
|
+
onDragLeave: S.func,
|
|
2602
2536
|
/**
|
|
2603
2537
|
* Cb for when the `dragover` event occurs
|
|
2604
2538
|
*
|
|
2605
2539
|
* @param {DragEvent} event
|
|
2606
2540
|
*/
|
|
2607
|
-
onDragOver:
|
|
2541
|
+
onDragOver: S.func,
|
|
2608
2542
|
/**
|
|
2609
2543
|
* Cb for when the `drop` event occurs.
|
|
2610
2544
|
* Note that this callback is invoked after the `getFilesFromEvent` callback is done.
|
|
@@ -2635,7 +2569,7 @@ Xa.propTypes = {
|
|
|
2635
2569
|
* @param {FileRejection[]} fileRejections
|
|
2636
2570
|
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
|
2637
2571
|
*/
|
|
2638
|
-
onDrop:
|
|
2572
|
+
onDrop: S.func,
|
|
2639
2573
|
/**
|
|
2640
2574
|
* Cb for when the `drop` event occurs.
|
|
2641
2575
|
* Note that if no files are accepted, this callback is not invoked.
|
|
@@ -2643,7 +2577,7 @@ Xa.propTypes = {
|
|
|
2643
2577
|
* @param {File[]} files
|
|
2644
2578
|
* @param {(DragEvent|Event)} event
|
|
2645
2579
|
*/
|
|
2646
|
-
onDropAccepted:
|
|
2580
|
+
onDropAccepted: S.func,
|
|
2647
2581
|
/**
|
|
2648
2582
|
* Cb for when the `drop` event occurs.
|
|
2649
2583
|
* Note that if no files are rejected, this callback is not invoked.
|
|
@@ -2651,21 +2585,21 @@ Xa.propTypes = {
|
|
|
2651
2585
|
* @param {FileRejection[]} fileRejections
|
|
2652
2586
|
* @param {(DragEvent|Event)} event
|
|
2653
2587
|
*/
|
|
2654
|
-
onDropRejected:
|
|
2588
|
+
onDropRejected: S.func,
|
|
2655
2589
|
/**
|
|
2656
2590
|
* Cb for when there's some error from any of the promises.
|
|
2657
2591
|
*
|
|
2658
2592
|
* @param {Error} error
|
|
2659
2593
|
*/
|
|
2660
|
-
onError:
|
|
2594
|
+
onError: S.func,
|
|
2661
2595
|
/**
|
|
2662
2596
|
* Custom validation function. It must return null if there's no errors.
|
|
2663
2597
|
* @param {File} file
|
|
2664
2598
|
* @returns {FileError|FileError[]|null}
|
|
2665
2599
|
*/
|
|
2666
|
-
validator:
|
|
2600
|
+
validator: S.func
|
|
2667
2601
|
};
|
|
2668
|
-
var
|
|
2602
|
+
var Va = {
|
|
2669
2603
|
isFocused: !1,
|
|
2670
2604
|
isFileDialogActive: !1,
|
|
2671
2605
|
isDragActive: !1,
|
|
@@ -2674,58 +2608,58 @@ var Za = {
|
|
|
2674
2608
|
acceptedFiles: [],
|
|
2675
2609
|
fileRejections: []
|
|
2676
2610
|
};
|
|
2677
|
-
function
|
|
2678
|
-
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e =
|
|
2679
|
-
return
|
|
2680
|
-
}, [i]),
|
|
2681
|
-
return
|
|
2682
|
-
}, [i]), pa =
|
|
2683
|
-
return typeof
|
|
2684
|
-
}, [
|
|
2685
|
-
return typeof
|
|
2686
|
-
}, [
|
|
2611
|
+
function Ni() {
|
|
2612
|
+
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = R(R({}, Fe), a), i = e.accept, t = e.disabled, o = e.getFilesFromEvent, n = e.maxSize, d = e.minSize, c = e.multiple, y = e.maxFiles, j = e.onDragEnter, x = e.onDragLeave, w = e.onDragOver, P = e.onDrop, z = e.onDropAccepted, $ = e.onDropRejected, A = e.onFileDialogCancel, q = e.onFileDialogOpen, K = e.useFsAccessApi, ea = e.autoFocus, F = e.preventDropOnDocument, I = e.noClick, s = e.noKeyboard, Z = e.noDrag, V = e.noDragEventsBubbling, na = e.onError, Q = e.validator, aa = ma(function() {
|
|
2613
|
+
return Ri(i);
|
|
2614
|
+
}, [i]), oa = ma(function() {
|
|
2615
|
+
return zi(i);
|
|
2616
|
+
}, [i]), pa = ma(function() {
|
|
2617
|
+
return typeof q == "function" ? q : he;
|
|
2618
|
+
}, [q]), ia = ma(function() {
|
|
2619
|
+
return typeof A == "function" ? A : he;
|
|
2620
|
+
}, [A]), C = ha(null), U = ha(null), G = We(Vi, Va), J = Ka(G, 2), ta = J[0], Y = J[1], p = ta.isFocused, m = ta.isFileDialogActive, g = ha(typeof window < "u" && window.isSecureContext && K && Pi()), b = function() {
|
|
2687
2621
|
!g.current && m && setTimeout(function() {
|
|
2688
|
-
if (
|
|
2689
|
-
var u =
|
|
2690
|
-
u.length || (
|
|
2622
|
+
if (U.current) {
|
|
2623
|
+
var u = U.current.files;
|
|
2624
|
+
u.length || (Y({
|
|
2691
2625
|
type: "closeDialog"
|
|
2692
|
-
}),
|
|
2626
|
+
}), ia());
|
|
2693
2627
|
}
|
|
2694
2628
|
}, 300);
|
|
2695
2629
|
};
|
|
2696
|
-
|
|
2697
|
-
return window.addEventListener("focus",
|
|
2698
|
-
window.removeEventListener("focus",
|
|
2630
|
+
Ia(function() {
|
|
2631
|
+
return window.addEventListener("focus", b, !1), function() {
|
|
2632
|
+
window.removeEventListener("focus", b, !1);
|
|
2699
2633
|
};
|
|
2700
|
-
}, [
|
|
2701
|
-
var f =
|
|
2702
|
-
|
|
2634
|
+
}, [U, m, ia, g]);
|
|
2635
|
+
var f = ha([]), E = function(u) {
|
|
2636
|
+
C.current && C.current.contains(u.target) || (u.preventDefault(), f.current = []);
|
|
2703
2637
|
};
|
|
2704
|
-
|
|
2705
|
-
return
|
|
2706
|
-
|
|
2638
|
+
Ia(function() {
|
|
2639
|
+
return F && (document.addEventListener("dragover", ye, !1), document.addEventListener("drop", E, !1)), function() {
|
|
2640
|
+
F && (document.removeEventListener("dragover", ye), document.removeEventListener("drop", E));
|
|
2707
2641
|
};
|
|
2708
|
-
}, [
|
|
2709
|
-
return !t &&
|
|
2642
|
+
}, [C, F]), Ia(function() {
|
|
2643
|
+
return !t && ea && C.current && C.current.focus(), function() {
|
|
2710
2644
|
};
|
|
2711
|
-
}, [
|
|
2712
|
-
var v =
|
|
2713
|
-
|
|
2714
|
-
}, [
|
|
2715
|
-
l.preventDefault(), l.persist(), ya(l), f.current = [].concat(
|
|
2716
|
-
if (!(
|
|
2717
|
-
var
|
|
2645
|
+
}, [C, ea, t]);
|
|
2646
|
+
var v = N(function(l) {
|
|
2647
|
+
na ? na(l) : console.error(l);
|
|
2648
|
+
}, [na]), h = N(function(l) {
|
|
2649
|
+
l.preventDefault(), l.persist(), ya(l), f.current = [].concat(Li(f.current), [l.target]), Ea(l) && Promise.resolve(o(l)).then(function(u) {
|
|
2650
|
+
if (!(_a(l) && !V)) {
|
|
2651
|
+
var M = u.length, W = M > 0 && Oi({
|
|
2718
2652
|
files: u,
|
|
2719
|
-
accept:
|
|
2653
|
+
accept: aa,
|
|
2720
2654
|
minSize: d,
|
|
2721
2655
|
maxSize: n,
|
|
2722
2656
|
multiple: c,
|
|
2723
|
-
maxFiles:
|
|
2724
|
-
validator:
|
|
2725
|
-
}),
|
|
2726
|
-
|
|
2727
|
-
isDragAccept:
|
|
2728
|
-
isDragReject:
|
|
2657
|
+
maxFiles: y,
|
|
2658
|
+
validator: Q
|
|
2659
|
+
}), H = M > 0 && !W;
|
|
2660
|
+
Y({
|
|
2661
|
+
isDragAccept: W,
|
|
2662
|
+
isDragReject: H,
|
|
2729
2663
|
isDragActive: !0,
|
|
2730
2664
|
type: "setDraggedFiles"
|
|
2731
2665
|
}), j && j(l);
|
|
@@ -2733,128 +2667,128 @@ function Ji() {
|
|
|
2733
2667
|
}).catch(function(u) {
|
|
2734
2668
|
return v(u);
|
|
2735
2669
|
});
|
|
2736
|
-
}, [o, j, v,
|
|
2670
|
+
}, [o, j, v, V, aa, d, n, c, y, Q]), T = N(function(l) {
|
|
2737
2671
|
l.preventDefault(), l.persist(), ya(l);
|
|
2738
|
-
var u =
|
|
2672
|
+
var u = Ea(l);
|
|
2739
2673
|
if (u && l.dataTransfer)
|
|
2740
2674
|
try {
|
|
2741
2675
|
l.dataTransfer.dropEffect = "copy";
|
|
2742
2676
|
} catch {
|
|
2743
2677
|
}
|
|
2744
2678
|
return u && w && w(l), !1;
|
|
2745
|
-
}, [w,
|
|
2679
|
+
}, [w, V]), _ = N(function(l) {
|
|
2746
2680
|
l.preventDefault(), l.persist(), ya(l);
|
|
2747
|
-
var u = f.current.filter(function(
|
|
2748
|
-
return
|
|
2749
|
-
}),
|
|
2750
|
-
|
|
2681
|
+
var u = f.current.filter(function(W) {
|
|
2682
|
+
return C.current && C.current.contains(W);
|
|
2683
|
+
}), M = u.indexOf(l.target);
|
|
2684
|
+
M !== -1 && u.splice(M, 1), f.current = u, !(u.length > 0) && (Y({
|
|
2751
2685
|
type: "setDraggedFiles",
|
|
2752
2686
|
isDragActive: !1,
|
|
2753
2687
|
isDragAccept: !1,
|
|
2754
2688
|
isDragReject: !1
|
|
2755
|
-
}),
|
|
2756
|
-
}, [
|
|
2757
|
-
var
|
|
2758
|
-
l.forEach(function(
|
|
2759
|
-
var
|
|
2760
|
-
if (Aa &&
|
|
2761
|
-
|
|
2689
|
+
}), Ea(l) && x && x(l));
|
|
2690
|
+
}, [C, x, V]), k = N(function(l, u) {
|
|
2691
|
+
var M = [], W = [];
|
|
2692
|
+
l.forEach(function(H) {
|
|
2693
|
+
var va = Se(H, aa), da = Ka(va, 2), Aa = da[0], Sa = da[1], Pa = Pe(H, d, n), ba = Ka(Pa, 2), za = ba[0], Ra = ba[1], Ca = Q ? Q(H) : null;
|
|
2694
|
+
if (Aa && za && !Ca)
|
|
2695
|
+
M.push(H);
|
|
2762
2696
|
else {
|
|
2763
|
-
var
|
|
2764
|
-
|
|
2765
|
-
file:
|
|
2766
|
-
errors:
|
|
2767
|
-
return
|
|
2697
|
+
var Fa = [Sa, Ra];
|
|
2698
|
+
Ca && (Fa = Fa.concat(Ca)), W.push({
|
|
2699
|
+
file: H,
|
|
2700
|
+
errors: Fa.filter(function($e) {
|
|
2701
|
+
return $e;
|
|
2768
2702
|
})
|
|
2769
2703
|
});
|
|
2770
2704
|
}
|
|
2771
|
-
}), (!c &&
|
|
2772
|
-
|
|
2773
|
-
file:
|
|
2774
|
-
errors: [
|
|
2705
|
+
}), (!c && M.length > 1 || c && y >= 1 && M.length > y) && (M.forEach(function(H) {
|
|
2706
|
+
W.push({
|
|
2707
|
+
file: H,
|
|
2708
|
+
errors: [_i]
|
|
2775
2709
|
});
|
|
2776
|
-
}),
|
|
2777
|
-
acceptedFiles:
|
|
2778
|
-
fileRejections:
|
|
2779
|
-
isDragReject:
|
|
2710
|
+
}), M.splice(0)), Y({
|
|
2711
|
+
acceptedFiles: M,
|
|
2712
|
+
fileRejections: W,
|
|
2713
|
+
isDragReject: W.length > 0,
|
|
2780
2714
|
type: "setFiles"
|
|
2781
|
-
}), P && P(
|
|
2782
|
-
}, [
|
|
2783
|
-
l.preventDefault(), l.persist(), ya(l), f.current = [],
|
|
2784
|
-
|
|
2715
|
+
}), P && P(M, W, u), W.length > 0 && $ && $(W, u), M.length > 0 && z && z(M, u);
|
|
2716
|
+
}, [Y, c, aa, d, n, y, P, z, $, Q]), L = N(function(l) {
|
|
2717
|
+
l.preventDefault(), l.persist(), ya(l), f.current = [], Ea(l) && Promise.resolve(o(l)).then(function(u) {
|
|
2718
|
+
_a(l) && !V || k(u, l);
|
|
2785
2719
|
}).catch(function(u) {
|
|
2786
2720
|
return v(u);
|
|
2787
|
-
}),
|
|
2721
|
+
}), Y({
|
|
2788
2722
|
type: "reset"
|
|
2789
2723
|
});
|
|
2790
|
-
}, [o, k, v,
|
|
2724
|
+
}, [o, k, v, V]), r = N(function() {
|
|
2791
2725
|
if (g.current) {
|
|
2792
|
-
|
|
2726
|
+
Y({
|
|
2793
2727
|
type: "openDialog"
|
|
2794
2728
|
}), pa();
|
|
2795
2729
|
var l = {
|
|
2796
2730
|
multiple: c,
|
|
2797
|
-
types:
|
|
2731
|
+
types: oa
|
|
2798
2732
|
};
|
|
2799
2733
|
window.showOpenFilePicker(l).then(function(u) {
|
|
2800
2734
|
return o(u);
|
|
2801
2735
|
}).then(function(u) {
|
|
2802
|
-
k(u, null),
|
|
2736
|
+
k(u, null), Y({
|
|
2803
2737
|
type: "closeDialog"
|
|
2804
2738
|
});
|
|
2805
2739
|
}).catch(function(u) {
|
|
2806
|
-
|
|
2740
|
+
Ci(u) ? (ia(u), Y({
|
|
2807
2741
|
type: "closeDialog"
|
|
2808
|
-
})) :
|
|
2742
|
+
})) : Fi(u) ? (g.current = !1, U.current ? (U.current.value = null, U.current.click()) : v(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : v(u);
|
|
2809
2743
|
});
|
|
2810
2744
|
return;
|
|
2811
2745
|
}
|
|
2812
|
-
|
|
2746
|
+
U.current && (Y({
|
|
2813
2747
|
type: "openDialog"
|
|
2814
|
-
}), pa(),
|
|
2815
|
-
}, [
|
|
2816
|
-
!
|
|
2817
|
-
}, [
|
|
2818
|
-
|
|
2748
|
+
}), pa(), U.current.value = null, U.current.click());
|
|
2749
|
+
}, [Y, pa, ia, K, k, v, oa, c]), B = N(function(l) {
|
|
2750
|
+
!C.current || !C.current.isEqualNode(l.target) || (l.key === " " || l.key === "Enter" || l.keyCode === 32 || l.keyCode === 13) && (l.preventDefault(), r());
|
|
2751
|
+
}, [C, r]), ra = N(function() {
|
|
2752
|
+
Y({
|
|
2819
2753
|
type: "focus"
|
|
2820
2754
|
});
|
|
2821
|
-
}, []),
|
|
2822
|
-
|
|
2755
|
+
}, []), fa = N(function() {
|
|
2756
|
+
Y({
|
|
2823
2757
|
type: "blur"
|
|
2824
2758
|
});
|
|
2825
|
-
}, []),
|
|
2826
|
-
|
|
2827
|
-
}, [
|
|
2759
|
+
}, []), Xa = N(function() {
|
|
2760
|
+
I || (Si() ? setTimeout(r, 0) : r());
|
|
2761
|
+
}, [I, r]), sa = function(u) {
|
|
2828
2762
|
return t ? null : u;
|
|
2829
|
-
},
|
|
2830
|
-
return s ? null :
|
|
2831
|
-
},
|
|
2832
|
-
return
|
|
2763
|
+
}, Da = function(u) {
|
|
2764
|
+
return s ? null : sa(u);
|
|
2765
|
+
}, ga = function(u) {
|
|
2766
|
+
return Z ? null : sa(u);
|
|
2833
2767
|
}, ya = function(u) {
|
|
2834
|
-
|
|
2835
|
-
},
|
|
2768
|
+
V && u.stopPropagation();
|
|
2769
|
+
}, Ie = ma(function() {
|
|
2836
2770
|
return function() {
|
|
2837
|
-
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, u = l.refKey,
|
|
2838
|
-
return
|
|
2839
|
-
onKeyDown:
|
|
2840
|
-
onFocus:
|
|
2841
|
-
onBlur:
|
|
2842
|
-
onClick:
|
|
2843
|
-
onDragEnter:
|
|
2844
|
-
onDragOver:
|
|
2845
|
-
onDragLeave:
|
|
2846
|
-
onDrop:
|
|
2847
|
-
role: typeof
|
|
2848
|
-
},
|
|
2771
|
+
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, u = l.refKey, M = u === void 0 ? "ref" : u, W = l.role, H = l.onKeyDown, va = l.onFocus, da = l.onBlur, Aa = l.onClick, Sa = l.onDragEnter, Pa = l.onDragOver, ba = l.onDragLeave, za = l.onDrop, Ra = Oa(l, Mi);
|
|
2772
|
+
return R(R(Na({
|
|
2773
|
+
onKeyDown: Da(X(H, B)),
|
|
2774
|
+
onFocus: Da(X(va, ra)),
|
|
2775
|
+
onBlur: Da(X(da, fa)),
|
|
2776
|
+
onClick: sa(X(Aa, Xa)),
|
|
2777
|
+
onDragEnter: ga(X(Sa, h)),
|
|
2778
|
+
onDragOver: ga(X(Pa, T)),
|
|
2779
|
+
onDragLeave: ga(X(ba, _)),
|
|
2780
|
+
onDrop: ga(X(za, L)),
|
|
2781
|
+
role: typeof W == "string" && W !== "" ? W : "presentation"
|
|
2782
|
+
}, M, C), !t && !s ? {
|
|
2849
2783
|
tabIndex: 0
|
|
2850
|
-
} : {}),
|
|
2784
|
+
} : {}), Ra);
|
|
2851
2785
|
};
|
|
2852
|
-
}, [
|
|
2786
|
+
}, [C, B, ra, fa, Xa, h, T, _, L, s, Z, t]), qe = N(function(l) {
|
|
2853
2787
|
l.stopPropagation();
|
|
2854
|
-
}, []),
|
|
2788
|
+
}, []), Me = ma(function() {
|
|
2855
2789
|
return function() {
|
|
2856
|
-
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, u = l.refKey,
|
|
2857
|
-
accept:
|
|
2790
|
+
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, u = l.refKey, M = u === void 0 ? "ref" : u, W = l.onChange, H = l.onClick, va = Oa(l, $i), da = Na({
|
|
2791
|
+
accept: aa,
|
|
2858
2792
|
multiple: c,
|
|
2859
2793
|
type: "file",
|
|
2860
2794
|
style: {
|
|
@@ -2869,81 +2803,71 @@ function Ji() {
|
|
|
2869
2803
|
width: "1px",
|
|
2870
2804
|
whiteSpace: "nowrap"
|
|
2871
2805
|
},
|
|
2872
|
-
onChange:
|
|
2873
|
-
onClick:
|
|
2806
|
+
onChange: sa(X(W, L)),
|
|
2807
|
+
onClick: sa(X(H, qe)),
|
|
2874
2808
|
tabIndex: -1
|
|
2875
|
-
},
|
|
2876
|
-
return
|
|
2809
|
+
}, M, U);
|
|
2810
|
+
return R(R({}, da), va);
|
|
2877
2811
|
};
|
|
2878
|
-
}, [
|
|
2879
|
-
return
|
|
2880
|
-
isFocused:
|
|
2881
|
-
getRootProps:
|
|
2882
|
-
getInputProps:
|
|
2883
|
-
rootRef:
|
|
2884
|
-
inputRef:
|
|
2885
|
-
open:
|
|
2812
|
+
}, [U, i, c, L, t]);
|
|
2813
|
+
return R(R({}, ta), {}, {
|
|
2814
|
+
isFocused: p && !t,
|
|
2815
|
+
getRootProps: Ie,
|
|
2816
|
+
getInputProps: Me,
|
|
2817
|
+
rootRef: C,
|
|
2818
|
+
inputRef: U,
|
|
2819
|
+
open: sa(r)
|
|
2886
2820
|
});
|
|
2887
2821
|
}
|
|
2888
|
-
function
|
|
2822
|
+
function Vi(a, e) {
|
|
2889
2823
|
switch (e.type) {
|
|
2890
2824
|
case "focus":
|
|
2891
|
-
return
|
|
2825
|
+
return R(R({}, a), {}, {
|
|
2892
2826
|
isFocused: !0
|
|
2893
2827
|
});
|
|
2894
2828
|
case "blur":
|
|
2895
|
-
return
|
|
2829
|
+
return R(R({}, a), {}, {
|
|
2896
2830
|
isFocused: !1
|
|
2897
2831
|
});
|
|
2898
2832
|
case "openDialog":
|
|
2899
|
-
return
|
|
2833
|
+
return R(R({}, Va), {}, {
|
|
2900
2834
|
isFileDialogActive: !0
|
|
2901
2835
|
});
|
|
2902
2836
|
case "closeDialog":
|
|
2903
|
-
return
|
|
2837
|
+
return R(R({}, a), {}, {
|
|
2904
2838
|
isFileDialogActive: !1
|
|
2905
2839
|
});
|
|
2906
2840
|
case "setDraggedFiles":
|
|
2907
|
-
return
|
|
2841
|
+
return R(R({}, a), {}, {
|
|
2908
2842
|
isDragActive: e.isDragActive,
|
|
2909
2843
|
isDragAccept: e.isDragAccept,
|
|
2910
2844
|
isDragReject: e.isDragReject
|
|
2911
2845
|
});
|
|
2912
2846
|
case "setFiles":
|
|
2913
|
-
return
|
|
2847
|
+
return R(R({}, a), {}, {
|
|
2914
2848
|
acceptedFiles: e.acceptedFiles,
|
|
2915
2849
|
fileRejections: e.fileRejections,
|
|
2916
2850
|
isDragReject: e.isDragReject
|
|
2917
2851
|
});
|
|
2918
2852
|
case "reset":
|
|
2919
|
-
return
|
|
2853
|
+
return R({}, Va);
|
|
2920
2854
|
default:
|
|
2921
2855
|
return a;
|
|
2922
2856
|
}
|
|
2923
2857
|
}
|
|
2924
|
-
function
|
|
2858
|
+
function he() {
|
|
2925
2859
|
}
|
|
2926
|
-
const
|
|
2860
|
+
const it = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%202000%202000'%3e%3cdefs%3e%3cstyle%3e%20.cls-1%20{%20fill:%20url(%23Dégradé_sans_nom_2);%20}%20.cls-2%20{%20fill:%20url(%23Dégradé_sans_nom);%20}%20.cls-3%20{%20fill:%20url(%23Dégradé_sans_nom_4);%20}%20.cls-4%20{%20fill:%20url(%23Dégradé_sans_nom_3);%20}%20%3c/style%3e%3clinearGradient%20id='Dégradé_sans_nom'%20data-name='Dégradé%20sans%20nom'%20x1='316.37'%20y1='983.24'%20x2='941.52'%20y2='983.24'%20gradientTransform='translate(0%202000)%20scale(1%20-1)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23657eb5'/%3e%3cstop%20offset='1'%20stop-color='%238f9fc8'/%3e%3c/linearGradient%3e%3clinearGradient%20id='Dégradé_sans_nom_2'%20data-name='Dégradé%20sans%20nom%202'%20x1='656.56'%20y1='1126.04'%20x2='1181.68'%20y2='1126.04'%20gradientTransform='translate(0%202000)%20scale(1%20-1)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2339569d'/%3e%3cstop%20offset='1'%20stop-color='%236f82b8'/%3e%3c/linearGradient%3e%3clinearGradient%20id='Dégradé_sans_nom_3'%20data-name='Dégradé%20sans%20nom%203'%20x1='856.32'%20y1='1317.26'%20x2='1318.48'%20y2='1317.26'%20gradientTransform='translate(0%202000)%20scale(1%20-1)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2339569d'/%3e%3cstop%20offset='1'%20stop-color='%234e66aa'/%3e%3c/linearGradient%3e%3clinearGradient%20id='Dégradé_sans_nom_4'%20data-name='Dégradé%20sans%20nom%204'%20x1='1234.7'%20y1='855.06'%20x2='1684.55'%20y2='855.06'%20gradientTransform='translate(0%202000)%20scale(1%20-1)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2339569d'/%3e%3cstop%20offset='1'%20stop-color='%236f82b8'/%3e%3c/linearGradient%3e%3c/defs%3e%3c!--%20Generator:%20Adobe%20Illustrator%2028.7.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%201.2.0%20Build%20136)%20--%3e%3cg%3e%3cg%20id='Calque_1'%3e%3cg%20id='Calque_1-2'%20data-name='Calque_1'%3e%3cg%3e%3cpath%20class='cls-2'%20d='M941.25,1250.22h-490.96c-133.92,0-133.92-171.67-133.92-236.16,0-77.97,68.31-230.76,225.82-230.76,47.19,0,84.93,9.66,114.37,22.92,304.69,133.7,284.69,444,284.69,444Z'/%3e%3cpath%20class='cls-1'%20d='M1174.03,1196.97c.22,2.02.45,4.04.45,6.29,0,26.06-21.12,46.96-46.96,46.96h-186.27s20-310.31-284.69-444c4.04-68.98,22.24-157.51,80.22-226.05,31.91-37.52,71.9-65.16,119.54-82.46,247.62,89.88,310.76,315.47,325.36,391.65-5.84,27.41-7.64,63.81-7.64,117.07v190.54h0Z'/%3e%3cpath%20class='cls-4'%20d='M1297.62,754.76c-.22.22-.45.45-.67.45-71.9,57.3-102.91,75.05-115.27,134.14-14.6-76.17-77.74-301.77-325.36-391.65,23.14-8.09,47.86-14.16,74.37-17.75,19.32-2.47,39.77-3.82,61.12-3.82,209.64,0,304.47,149.2,325.14,228.07,5.17,19.77-3.15,40-19.32,50.56h-.01Z'/%3e%3cpath%20class='cls-3'%20d='M1424.12,766.67c-129.43,0-189.42,111.68-189.42,186.72v522.87c0,25.84,20.9,46.96,46.74,46.96,11.46,0,123.13-4.72,147.18-5.62h1.12c.45,0,1.12,0,1.8-.22.45,0,.9,0,1.57-.22,9.44-.45,18.2-3.37,25.62-9.89,187.4-153.69,225.82-281.32,225.82-426.47,0-155.72-131.22-314.13-260.42-314.13h0ZM1459.4,1174.05c-36.85,0-66.73-29.88-66.73-66.73s29.89-66.74,66.73-66.74,66.74,29.89,66.74,66.74-29.66,66.73-66.74,66.73Z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
2927
2861
|
export {
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
ct as g,
|
|
2940
|
-
je as h,
|
|
2941
|
-
ft as i,
|
|
2942
|
-
et as j,
|
|
2943
|
-
st as k,
|
|
2944
|
-
Ee as l,
|
|
2945
|
-
mt as r,
|
|
2946
|
-
ot as s,
|
|
2947
|
-
tt as t,
|
|
2948
|
-
Ji as u
|
|
2862
|
+
it as A,
|
|
2863
|
+
et as E,
|
|
2864
|
+
S as P,
|
|
2865
|
+
we as a,
|
|
2866
|
+
Xi as b,
|
|
2867
|
+
je as c,
|
|
2868
|
+
at as d,
|
|
2869
|
+
ke as g,
|
|
2870
|
+
Qi as i,
|
|
2871
|
+
Ji as r,
|
|
2872
|
+
Ni as u
|
|
2949
2873
|
};
|