@abyss-project/commons-front-core 14.0.0 → 16.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/CHANGELOG.md +13 -0
- package/README.md +1 -1
- package/dist/{CookieConsentSettings-DyJGEnVA.js → CookieConsentSettings-B7NfjgaI.js} +1 -1
- package/dist/{Surface-B_J_I_1i.js → Surface-BEhoEhyC.js} +214 -84
- package/dist/{Tabs-_TzugjHZ.js → Tabs-DJ9_ZFjM.js} +649 -644
- package/dist/auth/components/AuthFlow/auth-flow.types.d.ts +2 -0
- package/dist/auth/components/AuthFlow/steps/MfaEnrollmentStep.component.d.ts +2 -0
- package/dist/auth/components/AuthFlow/steps/MfaStep.component.d.ts +10 -4
- package/dist/auth/components/AuthFlow/steps/PasskeyNudgeStep.component.d.ts +3 -1
- package/dist/auth/components/MfaRequirementBanner/MfaRequirementBanner.component.d.ts +3 -1
- package/dist/auth/components/SecuritySettings/SecuritySettings.component.d.ts +1 -1
- package/dist/auth/components/SecuritySettings/sections/PasskeysSection.component.d.ts +6 -1
- package/dist/auth/components/SecuritySettings/sections/RecoveryCodesSection.component.d.ts +3 -1
- package/dist/auth/components/SecuritySettings/sections/TrustedDevicesSection.component.d.ts +6 -0
- package/dist/auth/components/index.d.ts +1 -0
- package/dist/auth/components/shared/SingleDevicePasskeyAdvice.component.d.ts +13 -0
- package/dist/auth/components/shared/passkey-ceremonies.d.ts +6 -1
- package/dist/auth/components/shared/support-contact.d.ts +2 -0
- package/dist/auth/components/test-support/auth-sdk.mock.d.ts +5 -0
- package/dist/auth/components/test-support/auth-test-harness.d.ts +3 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/business/Support/AbyssServiceSelect.component.d.ts +26 -0
- package/dist/components/business/Support/SupportActionButtons.component.d.ts +7 -0
- package/dist/components/business/Support/SupportActivityLog.component.d.ts +7 -0
- package/dist/components/business/Support/SupportAttachmentsPanel.component.d.ts +7 -0
- package/dist/components/business/Support/SupportCategoryChip.component.d.ts +12 -0
- package/dist/components/business/Support/SupportCategoryGroupCards.component.d.ts +2 -0
- package/dist/components/business/Support/SupportCategorySelect.component.d.ts +21 -0
- package/dist/components/business/Support/SupportCreateTextField.d.ts +17 -0
- package/dist/components/business/Support/SupportMessageAttachment.component.d.ts +9 -0
- package/dist/components/business/Support/SupportMessageInput.component.d.ts +7 -0
- package/dist/components/business/Support/SupportMessageLink.component.d.ts +8 -0
- package/dist/components/business/Support/SupportMessageThread.component.d.ts +8 -0
- package/dist/components/business/Support/SupportPill.d.ts +18 -0
- package/dist/components/business/Support/SupportPriorityChip.component.d.ts +3 -0
- package/dist/components/business/Support/SupportSidebar.component.d.ts +7 -0
- package/dist/components/business/Support/SupportStatusBadge.component.d.ts +3 -0
- package/dist/components/business/Support/SupportStatusTimeline.component.d.ts +15 -0
- package/dist/components/business/Support/SupportSystemMessage.component.d.ts +11 -0
- package/dist/components/business/Support/SupportSystemMessage.component.spec.d.ts +1 -0
- package/dist/components/business/Support/SupportTagEditor.d.ts +15 -0
- package/dist/components/business/Support/SupportTicketCreateForm.component.d.ts +2 -0
- package/dist/components/business/Support/SupportTicketCreateForm.component.spec.d.ts +1 -0
- package/dist/components/business/Support/SupportTicketCreateStepper.component.d.ts +2 -0
- package/dist/components/business/Support/SupportTicketCreateStepper.component.spec.d.ts +1 -0
- package/dist/components/business/Support/SupportTicketDetail.component.d.ts +8 -0
- package/dist/components/business/Support/SupportTicketDetail.component.spec.d.ts +1 -0
- package/dist/components/business/Support/SupportTicketDetail.mobile-layout.spec.d.ts +1 -0
- package/dist/components/business/Support/SupportTicketList.component.spec.d.ts +1 -0
- package/dist/components/business/Support/SupportTicketList.week-preset.spec.d.ts +1 -0
- package/dist/components/business/Support/SupportTicketListFilterBar.d.ts +15 -0
- package/dist/components/business/Support/SupportTopBar.component.d.ts +7 -0
- package/dist/components/business/Support/support-action.d.ts +17 -0
- package/dist/components/business/Support/support-action.logic.d.ts +12 -0
- package/dist/components/business/Support/support-action.logic.spec.d.ts +1 -0
- package/dist/components/business/Support/support-attachment.logic.spec.d.ts +1 -0
- package/dist/components/business/Support/support-author.logic.spec.d.ts +1 -0
- package/dist/components/business/Support/support-create-stepper.logic.spec.d.ts +1 -0
- package/dist/components/business/Support/support-create.logic.d.ts +28 -0
- package/dist/components/business/Support/support-create.logic.spec.d.ts +1 -0
- package/dist/components/business/Support/support-message-anchor.d.ts +4 -0
- package/dist/components/business/Support/support-message-input.logic.spec.d.ts +1 -0
- package/dist/components/business/Support/support-service.logic.spec.d.ts +1 -0
- package/dist/components/business/Support/support-status-timeline.logic.spec.d.ts +1 -0
- package/dist/components/business/Support/support-tone.d.ts +11 -0
- package/dist/components/business/Support/test-support/support-detail.fixtures.d.ts +7 -0
- package/dist/components/business/Support/test-support/support-thread.fixtures.d.ts +9 -0
- package/dist/{legacy/components → components/business}/Support/types.d.ts +13 -4
- package/dist/components/business/Support/use-support-create-error-message.hook.d.ts +4 -0
- package/dist/components/business/index.d.ts +20 -0
- package/dist/components/data/LineChart/LineChart.d.ts +26 -1
- package/dist/components/inputs/ExpressionSearch/ExpressionSearch.d.ts +6 -1
- package/dist/components/inputs/SegmentedControl/SegmentedControl.d.ts +9 -1
- package/dist/cookie-consent.js +2 -2
- package/dist/design-theme-N9jJSXdK.js +27605 -0
- package/dist/{editors-C6Rocm6M.js → editors-QM76tqZI.js} +29 -29
- package/dist/editors.js +1 -1
- package/dist/hooks/use-rich-intl.hook.d.ts +150 -20
- package/dist/{index-DGoR-pBV.js → index-3-SmpH5N.js} +4 -4
- package/dist/{index-CuYK_i3Q.js → index-4b2f7sdW.js} +2 -2
- package/dist/{index-C1I7MW-q.js → index-5OVR3WNo.js} +3 -3
- package/dist/{index-CDWJlhuZ.js → index-BKAfoA1a.js} +2 -2
- package/dist/{AbyssCloud-B3rMelRi.js → index-C27b790L.js} +1448 -1017
- package/dist/{index-u-EAOYOb.js → index-C6jhogFt.js} +2 -2
- package/dist/{index-BI4ooqu1.js → index-CM5COMvb.js} +2 -2
- package/dist/{index-5AavH8Oo.js → index-COUUAr5G.js} +1 -1
- package/dist/{index-CKJMsjnV.js → index-CQU0eEXk.js} +4 -4
- package/dist/{index-DjAZPCEQ.js → index-Ce0rv5wr.js} +3 -3
- package/dist/{index-C1GCQ2Ke.js → index-D1M_muSg.js} +2 -2
- package/dist/{index-Cskjr11h.js → index-D8ncJrf1.js} +2 -2
- package/dist/{index-BElPTqLa.js → index-DA-HUFp6.js} +2 -2
- package/dist/{index-UjGNADrL.js → index-DCk0q3d7.js} +3 -3
- package/dist/{index-B58_3EoW.js → index-DW3SBSsW.js} +2 -2
- package/dist/{index-TshVV9T4.js → index-DYXAfA_s.js} +2 -2
- package/dist/{index-CDI4_t7D.js → index-DmAoL9-1.js} +4 -4
- package/dist/{index-Czhx2OUB.js → index-Taee9VIc.js} +2 -2
- package/dist/{index-Cwgj3j50.js → index-jZGexiyT.js} +3 -3
- package/dist/{index-Dutd4cJm.js → index-mmrA4ErC.js} +2 -2
- package/dist/{index-BYDMmzla.js → index-nKbvjf2P.js} +2 -2
- package/dist/{index-Dym_r-do.js → index-pX3CTxFd.js} +2 -2
- package/dist/index.js +14149 -9438
- package/dist/legacy/components/index.d.ts +0 -1
- package/dist/legacy/legacy-support-removed.spec.d.ts +1 -0
- package/dist/legacy.js +5634 -11703
- package/dist/rum/AbyssRumProvider.d.ts +1 -1
- package/dist/rum/feedback-ticket.d.ts +2 -2
- package/dist/rum/rum-provider-config.d.ts +1 -1
- package/dist/theme/index.d.ts +1 -1
- package/dist/translations/en.d.ts +65 -0
- package/dist/translations/fr.d.ts +65 -0
- package/package.json +5 -5
- package/dist/clsx-D8ItxkrZ.js +0 -446
- package/dist/design-theme-D5L0JNbX.js +0 -26599
- package/dist/legacy/components/Support/AbyssServiceSelect.component.d.ts +0 -37
- package/dist/legacy/components/Support/SupportActionButtons.component.d.ts +0 -3
- package/dist/legacy/components/Support/SupportActivityLog.component.d.ts +0 -3
- package/dist/legacy/components/Support/SupportAttachmentsPanel.component.d.ts +0 -3
- package/dist/legacy/components/Support/SupportCategoryChip.component.d.ts +0 -9
- package/dist/legacy/components/Support/SupportCategoryGroupCards.component.d.ts +0 -3
- package/dist/legacy/components/Support/SupportCategorySelect.component.d.ts +0 -22
- package/dist/legacy/components/Support/SupportMessageInput.component.d.ts +0 -3
- package/dist/legacy/components/Support/SupportMessageThread.component.d.ts +0 -3
- package/dist/legacy/components/Support/SupportPriorityChip.component.d.ts +0 -3
- package/dist/legacy/components/Support/SupportSidebar.component.d.ts +0 -3
- package/dist/legacy/components/Support/SupportStatusBadge.component.d.ts +0 -3
- package/dist/legacy/components/Support/SupportStatusTimeline.component.d.ts +0 -10
- package/dist/legacy/components/Support/SupportTicketCreateForm.component.d.ts +0 -3
- package/dist/legacy/components/Support/SupportTicketCreateStepper.component.d.ts +0 -3
- package/dist/legacy/components/Support/SupportTicketDetail.component.d.ts +0 -3
- package/dist/legacy/components/Support/SupportTopBar.component.d.ts +0 -3
- package/dist/legacy/components/Support/index.d.ts +0 -18
- /package/dist/{legacy/components/Support/SupportCategoryPick.component.spec.d.ts → auth/components/AuthFlow/steps/MfaStep.component.spec.d.ts} +0 -0
- /package/dist/{legacy/components/Support/SupportMessageLink.component.spec.d.ts → components/business/Support/AbyssServiceSelect.component.spec.d.ts} +0 -0
- /package/dist/{legacy/components/Support/SupportSystemMessage.component.spec.d.ts → components/business/Support/SupportActivityLog.component.spec.d.ts} +0 -0
- /package/dist/{legacy/components/Support/SupportTicketDetail.mobile-layout.spec.d.ts → components/business/Support/SupportAttachmentsPanel.component.spec.d.ts} +0 -0
- /package/dist/{legacy/components/Support/SupportTicketList.week-preset.spec.d.ts → components/business/Support/SupportBadges.spec.d.ts} +0 -0
- /package/dist/{legacy/components/Support/support-attachment.logic.spec.d.ts → components/business/Support/SupportCategoryGroupCards.component.spec.d.ts} +0 -0
- /package/dist/{legacy/components/Support/support-author.logic.spec.d.ts → components/business/Support/SupportCategorySelect.component.spec.d.ts} +0 -0
- /package/dist/{legacy/components/Support/support-create-stepper.logic.spec.d.ts → components/business/Support/SupportMessageInput.component.spec.d.ts} +0 -0
- /package/dist/{legacy/components/Support/support-message-input.logic.spec.d.ts → components/business/Support/SupportMessageLink.component.spec.d.ts} +0 -0
- /package/dist/{legacy/components/Support/support-service.logic.spec.d.ts → components/business/Support/SupportMessageThread.component.spec.d.ts} +0 -0
- /package/dist/{legacy/components/Support/support-status-timeline.logic.spec.d.ts → components/business/Support/SupportSidebar.component.spec.d.ts} +0 -0
- /package/dist/{legacy/components → components/business}/Support/SupportTicketList.component.d.ts +0 -0
- /package/dist/{legacy/components → components/business}/Support/support-attachment.logic.d.ts +0 -0
- /package/dist/{legacy/components → components/business}/Support/support-author.logic.d.ts +0 -0
- /package/dist/{legacy/components → components/business}/Support/support-category.logic.d.ts +0 -0
- /package/dist/{legacy/components → components/business}/Support/support-create-stepper.logic.d.ts +0 -0
- /package/dist/{legacy/components → components/business}/Support/support-message-input.logic.d.ts +0 -0
- /package/dist/{legacy/components → components/business}/Support/support-service.logic.d.ts +0 -0
- /package/dist/{legacy/components → components/business}/Support/support-status-timeline.logic.d.ts +0 -0
- /package/dist/{legacy/components → components/business}/Support/support-system-message.logic.d.ts +0 -0
|
@@ -1,51 +1,446 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
3
|
-
switch (
|
|
1
|
+
import Da, { useMemo as ve, useRef as De, useReducer as za, useEffect as Je, useCallback as V, forwardRef as Ca, useImperativeHandle as Ra, Fragment as Ia } from "react";
|
|
2
|
+
const Xt = (e) => e.projectId ? "project" : e.organizationId && e.userId ? "perso-in-org" : e.organizationId ? "org-common" : "personal", ar = (e, t, a = {}) => {
|
|
3
|
+
switch (Xt(e)) {
|
|
4
4
|
case "project":
|
|
5
|
-
return
|
|
5
|
+
return a.projectName ?? t.formatMessage({ id: "space-display-name.project" });
|
|
6
6
|
case "org-common":
|
|
7
|
-
return
|
|
7
|
+
return a.organizationName ?? t.formatMessage({ id: "space-display-name.org-common" });
|
|
8
8
|
case "perso-in-org":
|
|
9
|
-
return
|
|
9
|
+
return a.userAlias ?? t.formatMessage({ id: "space-display-name.perso-in-org" });
|
|
10
10
|
case "personal":
|
|
11
11
|
default:
|
|
12
|
-
return
|
|
12
|
+
return a.userAlias ?? t.formatMessage({ id: "space-display-name.personal" });
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
const
|
|
16
|
-
if (!
|
|
17
|
-
return
|
|
18
|
-
if (
|
|
19
|
-
return `${
|
|
20
|
-
switch (
|
|
14
|
+
}, ir = (e, t, a) => {
|
|
15
|
+
const i = `${e.replace(/\/+$/, "")}/dashboard`;
|
|
16
|
+
if (!t)
|
|
17
|
+
return i;
|
|
18
|
+
if (a)
|
|
19
|
+
return `${i}/shared-with-me`;
|
|
20
|
+
switch (Xt(t)) {
|
|
21
21
|
case "project":
|
|
22
|
-
return `${
|
|
22
|
+
return `${i}/org/${t.organizationId}/projects/${t.projectId}`;
|
|
23
23
|
case "org-common":
|
|
24
|
-
return `${
|
|
24
|
+
return `${i}/org/${t.organizationId}/common`;
|
|
25
25
|
case "perso-in-org":
|
|
26
|
-
return `${
|
|
26
|
+
return `${i}/org/${t.organizationId}/my`;
|
|
27
27
|
case "personal":
|
|
28
28
|
default:
|
|
29
|
-
return `${
|
|
29
|
+
return `${i}/my`;
|
|
30
30
|
}
|
|
31
|
-
},
|
|
32
|
-
if (
|
|
31
|
+
}, Fa = (e) => e.split(";")[0].trim().toLowerCase(), $a = (e, t) => {
|
|
32
|
+
if (t === "*/*")
|
|
33
33
|
return !0;
|
|
34
|
-
if (
|
|
35
|
-
return
|
|
36
|
-
if (!
|
|
34
|
+
if (t.startsWith("."))
|
|
35
|
+
return e.name.toLowerCase().endsWith(t);
|
|
36
|
+
if (!e.mimeType)
|
|
37
37
|
return !1;
|
|
38
|
-
const
|
|
39
|
-
return
|
|
40
|
-
},
|
|
41
|
-
const
|
|
42
|
-
return
|
|
38
|
+
const a = Fa(e.mimeType);
|
|
39
|
+
return t.endsWith("/*") ? a.startsWith(t.slice(0, -1)) : a === t;
|
|
40
|
+
}, nr = (e, t) => {
|
|
41
|
+
const a = (t ?? []).flatMap((i) => i.split(",")).map((i) => i.trim().toLowerCase()).filter((i) => i.length > 0);
|
|
42
|
+
return a.length === 0 || a.some((i) => $a(e, i));
|
|
43
43
|
};
|
|
44
|
-
var
|
|
45
|
-
function
|
|
46
|
-
return
|
|
44
|
+
var or = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
45
|
+
function Qt(e) {
|
|
46
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
47
|
+
}
|
|
48
|
+
const rr = "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";
|
|
49
|
+
var ea = typeof global == "object" && global && global.Object === Object && global, qa = typeof self == "object" && self && self.Object === Object && self, ge = ea || qa || Function("return this")(), Fe = ge.Symbol, ta = Object.prototype, Ma = ta.hasOwnProperty, La = ta.toString, we = Fe ? Fe.toStringTag : void 0;
|
|
50
|
+
function Ua(e) {
|
|
51
|
+
var t = Ma.call(e, we), a = e[we];
|
|
52
|
+
try {
|
|
53
|
+
e[we] = void 0;
|
|
54
|
+
var i = !0;
|
|
55
|
+
} catch {
|
|
56
|
+
}
|
|
57
|
+
var n = La.call(e);
|
|
58
|
+
return i && (t ? e[we] = a : delete e[we]), n;
|
|
59
|
+
}
|
|
60
|
+
var Wa = Object.prototype, Ya = Wa.toString;
|
|
61
|
+
function Ba(e) {
|
|
62
|
+
return Ya.call(e);
|
|
63
|
+
}
|
|
64
|
+
var Ha = "[object Null]", Ga = "[object Undefined]", gt = Fe ? Fe.toStringTag : void 0;
|
|
65
|
+
function Ee(e) {
|
|
66
|
+
return e == null ? e === void 0 ? Ga : Ha : gt && gt in Object(e) ? Ua(e) : Ba(e);
|
|
67
|
+
}
|
|
68
|
+
function Ka(e, t) {
|
|
69
|
+
return function(a) {
|
|
70
|
+
return e(t(a));
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
var aa = Ka(Object.getPrototypeOf, Object);
|
|
74
|
+
function Te(e) {
|
|
75
|
+
return e != null && typeof e == "object";
|
|
76
|
+
}
|
|
77
|
+
var Na = "[object Object]", Va = Function.prototype, Za = Object.prototype, ia = Va.toString, Ja = Za.hasOwnProperty, Xa = ia.call(Object);
|
|
78
|
+
function pr(e) {
|
|
79
|
+
if (!Te(e) || Ee(e) != Na)
|
|
80
|
+
return !1;
|
|
81
|
+
var t = aa(e);
|
|
82
|
+
if (t === null)
|
|
83
|
+
return !0;
|
|
84
|
+
var a = Ja.call(t, "constructor") && t.constructor;
|
|
85
|
+
return typeof a == "function" && a instanceof a && ia.call(a) == Xa;
|
|
86
|
+
}
|
|
87
|
+
function Qa() {
|
|
88
|
+
this.__data__ = [], this.size = 0;
|
|
89
|
+
}
|
|
90
|
+
function na(e, t) {
|
|
91
|
+
return e === t || e !== e && t !== t;
|
|
92
|
+
}
|
|
93
|
+
function Le(e, t) {
|
|
94
|
+
for (var a = e.length; a--; )
|
|
95
|
+
if (na(e[a][0], t))
|
|
96
|
+
return a;
|
|
97
|
+
return -1;
|
|
98
|
+
}
|
|
99
|
+
var ei = Array.prototype, ti = ei.splice;
|
|
100
|
+
function ai(e) {
|
|
101
|
+
var t = this.__data__, a = Le(t, e);
|
|
102
|
+
if (a < 0)
|
|
103
|
+
return !1;
|
|
104
|
+
var i = t.length - 1;
|
|
105
|
+
return a == i ? t.pop() : ti.call(t, a, 1), --this.size, !0;
|
|
106
|
+
}
|
|
107
|
+
function ii(e) {
|
|
108
|
+
var t = this.__data__, a = Le(t, e);
|
|
109
|
+
return a < 0 ? void 0 : t[a][1];
|
|
110
|
+
}
|
|
111
|
+
function ni(e) {
|
|
112
|
+
return Le(this.__data__, e) > -1;
|
|
113
|
+
}
|
|
114
|
+
function oi(e, t) {
|
|
115
|
+
var a = this.__data__, i = Le(a, e);
|
|
116
|
+
return i < 0 ? (++this.size, a.push([e, t])) : a[i][1] = t, this;
|
|
117
|
+
}
|
|
118
|
+
function ae(e) {
|
|
119
|
+
var t = -1, a = e == null ? 0 : e.length;
|
|
120
|
+
for (this.clear(); ++t < a; ) {
|
|
121
|
+
var i = e[t];
|
|
122
|
+
this.set(i[0], i[1]);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
ae.prototype.clear = Qa;
|
|
126
|
+
ae.prototype.delete = ai;
|
|
127
|
+
ae.prototype.get = ii;
|
|
128
|
+
ae.prototype.has = ni;
|
|
129
|
+
ae.prototype.set = oi;
|
|
130
|
+
function ri() {
|
|
131
|
+
this.__data__ = new ae(), this.size = 0;
|
|
132
|
+
}
|
|
133
|
+
function pi(e) {
|
|
134
|
+
var t = this.__data__, a = t.delete(e);
|
|
135
|
+
return this.size = t.size, a;
|
|
136
|
+
}
|
|
137
|
+
function ci(e) {
|
|
138
|
+
return this.__data__.get(e);
|
|
139
|
+
}
|
|
140
|
+
function li(e) {
|
|
141
|
+
return this.__data__.has(e);
|
|
142
|
+
}
|
|
143
|
+
function Ue(e) {
|
|
144
|
+
var t = typeof e;
|
|
145
|
+
return e != null && (t == "object" || t == "function");
|
|
146
|
+
}
|
|
147
|
+
var si = "[object AsyncFunction]", di = "[object Function]", ui = "[object GeneratorFunction]", fi = "[object Proxy]";
|
|
148
|
+
function oa(e) {
|
|
149
|
+
if (!Ue(e))
|
|
150
|
+
return !1;
|
|
151
|
+
var t = Ee(e);
|
|
152
|
+
return t == di || t == ui || t == si || t == fi;
|
|
153
|
+
}
|
|
154
|
+
var Xe = ge["__core-js_shared__"], yt = function() {
|
|
155
|
+
var e = /[^.]+$/.exec(Xe && Xe.keys && Xe.keys.IE_PROTO || "");
|
|
156
|
+
return e ? "Symbol(src)_1." + e : "";
|
|
157
|
+
}();
|
|
158
|
+
function mi(e) {
|
|
159
|
+
return !!yt && yt in e;
|
|
160
|
+
}
|
|
161
|
+
var vi = Function.prototype, xi = vi.toString;
|
|
162
|
+
function gi(e) {
|
|
163
|
+
if (e != null) {
|
|
164
|
+
try {
|
|
165
|
+
return xi.call(e);
|
|
166
|
+
} catch {
|
|
167
|
+
}
|
|
168
|
+
try {
|
|
169
|
+
return e + "";
|
|
170
|
+
} catch {
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
return "";
|
|
174
|
+
}
|
|
175
|
+
var yi = /[\\^$.*+?()[\]{}|]/g, hi = /^\[object .+?Constructor\]$/, bi = Function.prototype, wi = Object.prototype, ji = bi.toString, _i = wi.hasOwnProperty, ki = RegExp(
|
|
176
|
+
"^" + ji.call(_i).replace(yi, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
177
|
+
);
|
|
178
|
+
function Ei(e) {
|
|
179
|
+
if (!Ue(e) || mi(e))
|
|
180
|
+
return !1;
|
|
181
|
+
var t = oa(e) ? ki : hi;
|
|
182
|
+
return t.test(gi(e));
|
|
183
|
+
}
|
|
184
|
+
function Ti(e, t) {
|
|
185
|
+
return e == null ? void 0 : e[t];
|
|
186
|
+
}
|
|
187
|
+
function ft(e, t) {
|
|
188
|
+
var a = Ti(e, t);
|
|
189
|
+
return Ei(a) ? a : void 0;
|
|
190
|
+
}
|
|
191
|
+
var ra = ft(ge, "Map"), _e = ft(Object, "create");
|
|
192
|
+
function Oi() {
|
|
193
|
+
this.__data__ = _e ? _e(null) : {}, this.size = 0;
|
|
194
|
+
}
|
|
195
|
+
function Ai(e) {
|
|
196
|
+
var t = this.has(e) && delete this.__data__[e];
|
|
197
|
+
return this.size -= t ? 1 : 0, t;
|
|
198
|
+
}
|
|
199
|
+
var Si = "__lodash_hash_undefined__", Pi = Object.prototype, Di = Pi.hasOwnProperty;
|
|
200
|
+
function zi(e) {
|
|
201
|
+
var t = this.__data__;
|
|
202
|
+
if (_e) {
|
|
203
|
+
var a = t[e];
|
|
204
|
+
return a === Si ? void 0 : a;
|
|
205
|
+
}
|
|
206
|
+
return Di.call(t, e) ? t[e] : void 0;
|
|
207
|
+
}
|
|
208
|
+
var Ci = Object.prototype, Ri = Ci.hasOwnProperty;
|
|
209
|
+
function Ii(e) {
|
|
210
|
+
var t = this.__data__;
|
|
211
|
+
return _e ? t[e] !== void 0 : Ri.call(t, e);
|
|
212
|
+
}
|
|
213
|
+
var Fi = "__lodash_hash_undefined__";
|
|
214
|
+
function $i(e, t) {
|
|
215
|
+
var a = this.__data__;
|
|
216
|
+
return this.size += this.has(e) ? 0 : 1, a[e] = _e && t === void 0 ? Fi : t, this;
|
|
217
|
+
}
|
|
218
|
+
function de(e) {
|
|
219
|
+
var t = -1, a = e == null ? 0 : e.length;
|
|
220
|
+
for (this.clear(); ++t < a; ) {
|
|
221
|
+
var i = e[t];
|
|
222
|
+
this.set(i[0], i[1]);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
de.prototype.clear = Oi;
|
|
226
|
+
de.prototype.delete = Ai;
|
|
227
|
+
de.prototype.get = zi;
|
|
228
|
+
de.prototype.has = Ii;
|
|
229
|
+
de.prototype.set = $i;
|
|
230
|
+
function qi() {
|
|
231
|
+
this.size = 0, this.__data__ = {
|
|
232
|
+
hash: new de(),
|
|
233
|
+
map: new (ra || ae)(),
|
|
234
|
+
string: new de()
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
function Mi(e) {
|
|
238
|
+
var t = typeof e;
|
|
239
|
+
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
240
|
+
}
|
|
241
|
+
function We(e, t) {
|
|
242
|
+
var a = e.__data__;
|
|
243
|
+
return Mi(t) ? a[typeof t == "string" ? "string" : "hash"] : a.map;
|
|
244
|
+
}
|
|
245
|
+
function Li(e) {
|
|
246
|
+
var t = We(this, e).delete(e);
|
|
247
|
+
return this.size -= t ? 1 : 0, t;
|
|
248
|
+
}
|
|
249
|
+
function Ui(e) {
|
|
250
|
+
return We(this, e).get(e);
|
|
251
|
+
}
|
|
252
|
+
function Wi(e) {
|
|
253
|
+
return We(this, e).has(e);
|
|
254
|
+
}
|
|
255
|
+
function Yi(e, t) {
|
|
256
|
+
var a = We(this, e), i = a.size;
|
|
257
|
+
return a.set(e, t), this.size += a.size == i ? 0 : 1, this;
|
|
258
|
+
}
|
|
259
|
+
function ye(e) {
|
|
260
|
+
var t = -1, a = e == null ? 0 : e.length;
|
|
261
|
+
for (this.clear(); ++t < a; ) {
|
|
262
|
+
var i = e[t];
|
|
263
|
+
this.set(i[0], i[1]);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
ye.prototype.clear = qi;
|
|
267
|
+
ye.prototype.delete = Li;
|
|
268
|
+
ye.prototype.get = Ui;
|
|
269
|
+
ye.prototype.has = Wi;
|
|
270
|
+
ye.prototype.set = Yi;
|
|
271
|
+
var Bi = 200;
|
|
272
|
+
function Hi(e, t) {
|
|
273
|
+
var a = this.__data__;
|
|
274
|
+
if (a instanceof ae) {
|
|
275
|
+
var i = a.__data__;
|
|
276
|
+
if (!ra || i.length < Bi - 1)
|
|
277
|
+
return i.push([e, t]), this.size = ++a.size, this;
|
|
278
|
+
a = this.__data__ = new ye(i);
|
|
279
|
+
}
|
|
280
|
+
return a.set(e, t), this.size = a.size, this;
|
|
281
|
+
}
|
|
282
|
+
function Oe(e) {
|
|
283
|
+
var t = this.__data__ = new ae(e);
|
|
284
|
+
this.size = t.size;
|
|
285
|
+
}
|
|
286
|
+
Oe.prototype.clear = ri;
|
|
287
|
+
Oe.prototype.delete = pi;
|
|
288
|
+
Oe.prototype.get = ci;
|
|
289
|
+
Oe.prototype.has = li;
|
|
290
|
+
Oe.prototype.set = Hi;
|
|
291
|
+
var ht = function() {
|
|
292
|
+
try {
|
|
293
|
+
var e = ft(Object, "defineProperty");
|
|
294
|
+
return e({}, "", {}), e;
|
|
295
|
+
} catch {
|
|
296
|
+
}
|
|
297
|
+
}();
|
|
298
|
+
function pa(e, t, a) {
|
|
299
|
+
t == "__proto__" && ht ? ht(e, t, {
|
|
300
|
+
configurable: !0,
|
|
301
|
+
enumerable: !0,
|
|
302
|
+
value: a,
|
|
303
|
+
writable: !0
|
|
304
|
+
}) : e[t] = a;
|
|
305
|
+
}
|
|
306
|
+
var Gi = Object.prototype, Ki = Gi.hasOwnProperty;
|
|
307
|
+
function Ni(e, t, a) {
|
|
308
|
+
var i = e[t];
|
|
309
|
+
(!(Ki.call(e, t) && na(i, a)) || a === void 0 && !(t in e)) && pa(e, t, a);
|
|
310
|
+
}
|
|
311
|
+
function cr(e, t, a, i) {
|
|
312
|
+
var n = !a;
|
|
313
|
+
a || (a = {});
|
|
314
|
+
for (var o = -1, l = t.length; ++o < l; ) {
|
|
315
|
+
var p = t[o], v = void 0;
|
|
316
|
+
v === void 0 && (v = e[p]), n ? pa(a, p, v) : Ni(a, p, v);
|
|
317
|
+
}
|
|
318
|
+
return a;
|
|
319
|
+
}
|
|
320
|
+
function Vi(e, t) {
|
|
321
|
+
for (var a = -1, i = Array(e); ++a < e; )
|
|
322
|
+
i[a] = t(a);
|
|
323
|
+
return i;
|
|
324
|
+
}
|
|
325
|
+
var Zi = "[object Arguments]";
|
|
326
|
+
function bt(e) {
|
|
327
|
+
return Te(e) && Ee(e) == Zi;
|
|
328
|
+
}
|
|
329
|
+
var ca = Object.prototype, Ji = ca.hasOwnProperty, Xi = ca.propertyIsEnumerable, Qi = bt(/* @__PURE__ */ function() {
|
|
330
|
+
return arguments;
|
|
331
|
+
}()) ? bt : function(e) {
|
|
332
|
+
return Te(e) && Ji.call(e, "callee") && !Xi.call(e, "callee");
|
|
333
|
+
}, en = Array.isArray;
|
|
334
|
+
function tn() {
|
|
335
|
+
return !1;
|
|
336
|
+
}
|
|
337
|
+
var la = typeof exports == "object" && exports && !exports.nodeType && exports, wt = la && typeof module == "object" && module && !module.nodeType && module, an = wt && wt.exports === la, jt = an ? ge.Buffer : void 0, nn = jt ? jt.isBuffer : void 0, on = nn || tn, rn = 9007199254740991, pn = /^(?:0|[1-9]\d*)$/;
|
|
338
|
+
function cn(e, t) {
|
|
339
|
+
var a = typeof e;
|
|
340
|
+
return t = t ?? rn, !!t && (a == "number" || a != "symbol" && pn.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
341
|
+
}
|
|
342
|
+
var ln = 9007199254740991;
|
|
343
|
+
function sa(e) {
|
|
344
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= ln;
|
|
345
|
+
}
|
|
346
|
+
var sn = "[object Arguments]", dn = "[object Array]", un = "[object Boolean]", fn = "[object Date]", mn = "[object Error]", vn = "[object Function]", xn = "[object Map]", gn = "[object Number]", yn = "[object Object]", hn = "[object RegExp]", bn = "[object Set]", wn = "[object String]", jn = "[object WeakMap]", _n = "[object ArrayBuffer]", kn = "[object DataView]", En = "[object Float32Array]", Tn = "[object Float64Array]", On = "[object Int8Array]", An = "[object Int16Array]", Sn = "[object Int32Array]", Pn = "[object Uint8Array]", Dn = "[object Uint8ClampedArray]", zn = "[object Uint16Array]", Cn = "[object Uint32Array]", z = {};
|
|
347
|
+
z[En] = z[Tn] = z[On] = z[An] = z[Sn] = z[Pn] = z[Dn] = z[zn] = z[Cn] = !0;
|
|
348
|
+
z[sn] = z[dn] = z[_n] = z[un] = z[kn] = z[fn] = z[mn] = z[vn] = z[xn] = z[gn] = z[yn] = z[hn] = z[bn] = z[wn] = z[jn] = !1;
|
|
349
|
+
function Rn(e) {
|
|
350
|
+
return Te(e) && sa(e.length) && !!z[Ee(e)];
|
|
351
|
+
}
|
|
352
|
+
function In(e) {
|
|
353
|
+
return function(t) {
|
|
354
|
+
return e(t);
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
var da = typeof exports == "object" && exports && !exports.nodeType && exports, je = da && typeof module == "object" && module && !module.nodeType && module, Fn = je && je.exports === da, Qe = Fn && ea.process, _t = function() {
|
|
358
|
+
try {
|
|
359
|
+
var e = je && je.require && je.require("util").types;
|
|
360
|
+
return e || Qe && Qe.binding && Qe.binding("util");
|
|
361
|
+
} catch {
|
|
362
|
+
}
|
|
363
|
+
}(), kt = _t && _t.isTypedArray, $n = kt ? In(kt) : Rn, qn = Object.prototype, Mn = qn.hasOwnProperty;
|
|
364
|
+
function Ln(e, t) {
|
|
365
|
+
var a = en(e), i = !a && Qi(e), n = !a && !i && on(e), o = !a && !i && !n && $n(e), l = a || i || n || o, p = l ? Vi(e.length, String) : [], v = p.length;
|
|
366
|
+
for (var x in e)
|
|
367
|
+
(t || Mn.call(e, x)) && !(l && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
368
|
+
(x == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
369
|
+
n && (x == "offset" || x == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
370
|
+
o && (x == "buffer" || x == "byteLength" || x == "byteOffset") || // Skip index properties.
|
|
371
|
+
cn(x, v))) && p.push(x);
|
|
372
|
+
return p;
|
|
373
|
+
}
|
|
374
|
+
var Un = Object.prototype;
|
|
375
|
+
function ua(e) {
|
|
376
|
+
var t = e && e.constructor, a = typeof t == "function" && t.prototype || Un;
|
|
377
|
+
return e === a;
|
|
378
|
+
}
|
|
379
|
+
function Wn(e) {
|
|
380
|
+
return e != null && sa(e.length) && !oa(e);
|
|
381
|
+
}
|
|
382
|
+
function Yn(e) {
|
|
383
|
+
var t = [];
|
|
384
|
+
if (e != null)
|
|
385
|
+
for (var a in Object(e))
|
|
386
|
+
t.push(a);
|
|
387
|
+
return t;
|
|
388
|
+
}
|
|
389
|
+
var Bn = Object.prototype, Hn = Bn.hasOwnProperty;
|
|
390
|
+
function Gn(e) {
|
|
391
|
+
if (!Ue(e))
|
|
392
|
+
return Yn(e);
|
|
393
|
+
var t = ua(e), a = [];
|
|
394
|
+
for (var i in e)
|
|
395
|
+
i == "constructor" && (t || !Hn.call(e, i)) || a.push(i);
|
|
396
|
+
return a;
|
|
397
|
+
}
|
|
398
|
+
function lr(e) {
|
|
399
|
+
return Wn(e) ? Ln(e, !0) : Gn(e);
|
|
400
|
+
}
|
|
401
|
+
var fa = typeof exports == "object" && exports && !exports.nodeType && exports, Et = fa && typeof module == "object" && module && !module.nodeType && module, Kn = Et && Et.exports === fa, Tt = Kn ? ge.Buffer : void 0, Ot = Tt ? Tt.allocUnsafe : void 0;
|
|
402
|
+
function sr(e, t) {
|
|
403
|
+
if (t)
|
|
404
|
+
return e.slice();
|
|
405
|
+
var a = e.length, i = Ot ? Ot(a) : new e.constructor(a);
|
|
406
|
+
return e.copy(i), i;
|
|
407
|
+
}
|
|
408
|
+
function dr(e, t) {
|
|
409
|
+
var a = -1, i = e.length;
|
|
410
|
+
for (t || (t = Array(i)); ++a < i; )
|
|
411
|
+
t[a] = e[a];
|
|
412
|
+
return t;
|
|
413
|
+
}
|
|
414
|
+
var At = ge.Uint8Array;
|
|
415
|
+
function Nn(e) {
|
|
416
|
+
var t = new e.constructor(e.byteLength);
|
|
417
|
+
return new At(t).set(new At(e)), t;
|
|
418
|
+
}
|
|
419
|
+
function ur(e, t) {
|
|
420
|
+
var a = t ? Nn(e.buffer) : e.buffer;
|
|
421
|
+
return new e.constructor(a, e.byteOffset, e.length);
|
|
422
|
+
}
|
|
423
|
+
var St = Object.create, Vn = /* @__PURE__ */ function() {
|
|
424
|
+
function e() {
|
|
425
|
+
}
|
|
426
|
+
return function(t) {
|
|
427
|
+
if (!Ue(t))
|
|
428
|
+
return {};
|
|
429
|
+
if (St)
|
|
430
|
+
return St(t);
|
|
431
|
+
e.prototype = t;
|
|
432
|
+
var a = new e();
|
|
433
|
+
return e.prototype = void 0, a;
|
|
434
|
+
};
|
|
435
|
+
}();
|
|
436
|
+
function fr(e) {
|
|
437
|
+
return typeof e.constructor == "function" && !ua(e) ? Vn(aa(e)) : {};
|
|
47
438
|
}
|
|
48
|
-
var
|
|
439
|
+
var Zn = "[object Symbol]";
|
|
440
|
+
function mr(e) {
|
|
441
|
+
return typeof e == "symbol" || Te(e) && Ee(e) == Zn;
|
|
442
|
+
}
|
|
443
|
+
var ze = { exports: {} }, O = {};
|
|
49
444
|
/** @license React v16.13.1
|
|
50
445
|
* react-is.production.min.js
|
|
51
446
|
*
|
|
@@ -54,73 +449,73 @@ var wa = { exports: {} }, ka = { exports: {} }, O = {};
|
|
|
54
449
|
* This source code is licensed under the MIT license found in the
|
|
55
450
|
* LICENSE file in the root directory of this source tree.
|
|
56
451
|
*/
|
|
57
|
-
var
|
|
58
|
-
function
|
|
59
|
-
if (
|
|
60
|
-
|
|
61
|
-
var
|
|
62
|
-
function F(
|
|
63
|
-
if (typeof
|
|
64
|
-
var
|
|
65
|
-
switch (
|
|
66
|
-
case
|
|
67
|
-
switch (
|
|
68
|
-
case
|
|
69
|
-
case
|
|
70
|
-
case
|
|
71
|
-
case n:
|
|
452
|
+
var Pt;
|
|
453
|
+
function Jn() {
|
|
454
|
+
if (Pt) return O;
|
|
455
|
+
Pt = 1;
|
|
456
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, a = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, n = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, p = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, x = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, j = e ? Symbol.for("react.suspense") : 60113, D = e ? Symbol.for("react.suspense_list") : 60120, C = e ? Symbol.for("react.memo") : 60115, L = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, q = e ? Symbol.for("react.fundamental") : 60117, H = e ? Symbol.for("react.responder") : 60118, ie = e ? Symbol.for("react.scope") : 60119;
|
|
457
|
+
function F(d) {
|
|
458
|
+
if (typeof d == "object" && d !== null) {
|
|
459
|
+
var J = d.$$typeof;
|
|
460
|
+
switch (J) {
|
|
461
|
+
case t:
|
|
462
|
+
switch (d = d.type, d) {
|
|
463
|
+
case v:
|
|
464
|
+
case x:
|
|
465
|
+
case i:
|
|
72
466
|
case o:
|
|
73
|
-
case
|
|
74
|
-
|
|
467
|
+
case n:
|
|
468
|
+
case j:
|
|
469
|
+
return d;
|
|
75
470
|
default:
|
|
76
|
-
switch (
|
|
77
|
-
case
|
|
78
|
-
case
|
|
79
|
-
case
|
|
80
|
-
case
|
|
81
|
-
case
|
|
82
|
-
return
|
|
471
|
+
switch (d = d && d.$$typeof, d) {
|
|
472
|
+
case p:
|
|
473
|
+
case y:
|
|
474
|
+
case L:
|
|
475
|
+
case C:
|
|
476
|
+
case l:
|
|
477
|
+
return d;
|
|
83
478
|
default:
|
|
84
|
-
return
|
|
479
|
+
return J;
|
|
85
480
|
}
|
|
86
481
|
}
|
|
87
|
-
case
|
|
88
|
-
return
|
|
482
|
+
case a:
|
|
483
|
+
return J;
|
|
89
484
|
}
|
|
90
485
|
}
|
|
91
486
|
}
|
|
92
|
-
function
|
|
93
|
-
return F(
|
|
487
|
+
function $(d) {
|
|
488
|
+
return F(d) === x;
|
|
94
489
|
}
|
|
95
|
-
return O.AsyncMode =
|
|
96
|
-
return
|
|
97
|
-
}, O.isConcurrentMode =
|
|
98
|
-
return F(
|
|
99
|
-
}, O.isContextProvider = function(
|
|
100
|
-
return F(
|
|
101
|
-
}, O.isElement = function(
|
|
102
|
-
return typeof
|
|
103
|
-
}, O.isForwardRef = function(
|
|
104
|
-
return F(
|
|
105
|
-
}, O.isFragment = function(
|
|
106
|
-
return F(
|
|
107
|
-
}, O.isLazy = function(
|
|
108
|
-
return F(
|
|
109
|
-
}, O.isMemo = function(
|
|
110
|
-
return F(
|
|
111
|
-
}, O.isPortal = function(
|
|
112
|
-
return F(
|
|
113
|
-
}, O.isProfiler = function(
|
|
114
|
-
return F(
|
|
115
|
-
}, O.isStrictMode = function(
|
|
116
|
-
return F(
|
|
117
|
-
}, O.isSuspense = function(
|
|
118
|
-
return F(
|
|
119
|
-
}, O.isValidElementType = function(
|
|
120
|
-
return typeof
|
|
490
|
+
return O.AsyncMode = v, O.ConcurrentMode = x, O.ContextConsumer = p, O.ContextProvider = l, O.Element = t, O.ForwardRef = y, O.Fragment = i, O.Lazy = L, O.Memo = C, O.Portal = a, O.Profiler = o, O.StrictMode = n, O.Suspense = j, O.isAsyncMode = function(d) {
|
|
491
|
+
return $(d) || F(d) === v;
|
|
492
|
+
}, O.isConcurrentMode = $, O.isContextConsumer = function(d) {
|
|
493
|
+
return F(d) === p;
|
|
494
|
+
}, O.isContextProvider = function(d) {
|
|
495
|
+
return F(d) === l;
|
|
496
|
+
}, O.isElement = function(d) {
|
|
497
|
+
return typeof d == "object" && d !== null && d.$$typeof === t;
|
|
498
|
+
}, O.isForwardRef = function(d) {
|
|
499
|
+
return F(d) === y;
|
|
500
|
+
}, O.isFragment = function(d) {
|
|
501
|
+
return F(d) === i;
|
|
502
|
+
}, O.isLazy = function(d) {
|
|
503
|
+
return F(d) === L;
|
|
504
|
+
}, O.isMemo = function(d) {
|
|
505
|
+
return F(d) === C;
|
|
506
|
+
}, O.isPortal = function(d) {
|
|
507
|
+
return F(d) === a;
|
|
508
|
+
}, O.isProfiler = function(d) {
|
|
509
|
+
return F(d) === o;
|
|
510
|
+
}, O.isStrictMode = function(d) {
|
|
511
|
+
return F(d) === n;
|
|
512
|
+
}, O.isSuspense = function(d) {
|
|
513
|
+
return F(d) === j;
|
|
514
|
+
}, O.isValidElementType = function(d) {
|
|
515
|
+
return typeof d == "string" || typeof d == "function" || d === i || d === x || d === o || d === n || d === j || d === D || typeof d == "object" && d !== null && (d.$$typeof === L || d.$$typeof === C || d.$$typeof === l || d.$$typeof === p || d.$$typeof === y || d.$$typeof === q || d.$$typeof === H || d.$$typeof === ie || d.$$typeof === S);
|
|
121
516
|
}, O.typeOf = F, O;
|
|
122
517
|
}
|
|
123
|
-
var
|
|
518
|
+
var A = {};
|
|
124
519
|
/** @license React v16.13.1
|
|
125
520
|
* react-is.development.js
|
|
126
521
|
*
|
|
@@ -129,477 +524,478 @@ var D = {};
|
|
|
129
524
|
* This source code is licensed under the MIT license found in the
|
|
130
525
|
* LICENSE file in the root directory of this source tree.
|
|
131
526
|
*/
|
|
132
|
-
var
|
|
133
|
-
function
|
|
134
|
-
return
|
|
135
|
-
var
|
|
136
|
-
function F(
|
|
137
|
-
return typeof
|
|
138
|
-
|
|
527
|
+
var Dt;
|
|
528
|
+
function Xn() {
|
|
529
|
+
return Dt || (Dt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
530
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, a = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, n = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, p = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, x = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, j = e ? Symbol.for("react.suspense") : 60113, D = e ? Symbol.for("react.suspense_list") : 60120, C = e ? Symbol.for("react.memo") : 60115, L = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, q = e ? Symbol.for("react.fundamental") : 60117, H = e ? Symbol.for("react.responder") : 60118, ie = e ? Symbol.for("react.scope") : 60119;
|
|
531
|
+
function F(c) {
|
|
532
|
+
return typeof c == "string" || typeof c == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
533
|
+
c === i || c === x || c === o || c === n || c === j || c === D || typeof c == "object" && c !== null && (c.$$typeof === L || c.$$typeof === C || c.$$typeof === l || c.$$typeof === p || c.$$typeof === y || c.$$typeof === q || c.$$typeof === H || c.$$typeof === ie || c.$$typeof === S);
|
|
139
534
|
}
|
|
140
|
-
function
|
|
141
|
-
if (typeof
|
|
142
|
-
var
|
|
143
|
-
switch (
|
|
144
|
-
case
|
|
145
|
-
var
|
|
146
|
-
switch (
|
|
147
|
-
case
|
|
148
|
-
case
|
|
149
|
-
case
|
|
150
|
-
case n:
|
|
535
|
+
function $(c) {
|
|
536
|
+
if (typeof c == "object" && c !== null) {
|
|
537
|
+
var G = c.$$typeof;
|
|
538
|
+
switch (G) {
|
|
539
|
+
case t:
|
|
540
|
+
var le = c.type;
|
|
541
|
+
switch (le) {
|
|
542
|
+
case v:
|
|
543
|
+
case x:
|
|
544
|
+
case i:
|
|
151
545
|
case o:
|
|
152
|
-
case
|
|
153
|
-
|
|
546
|
+
case n:
|
|
547
|
+
case j:
|
|
548
|
+
return le;
|
|
154
549
|
default:
|
|
155
|
-
var
|
|
156
|
-
switch (
|
|
157
|
-
case
|
|
158
|
-
case
|
|
159
|
-
case
|
|
160
|
-
case
|
|
161
|
-
case
|
|
162
|
-
return
|
|
550
|
+
var he = le && le.$$typeof;
|
|
551
|
+
switch (he) {
|
|
552
|
+
case p:
|
|
553
|
+
case y:
|
|
554
|
+
case L:
|
|
555
|
+
case C:
|
|
556
|
+
case l:
|
|
557
|
+
return he;
|
|
163
558
|
default:
|
|
164
|
-
return
|
|
559
|
+
return G;
|
|
165
560
|
}
|
|
166
561
|
}
|
|
167
|
-
case
|
|
168
|
-
return
|
|
562
|
+
case a:
|
|
563
|
+
return G;
|
|
169
564
|
}
|
|
170
565
|
}
|
|
171
566
|
}
|
|
172
|
-
var
|
|
173
|
-
function Y(
|
|
174
|
-
return
|
|
567
|
+
var d = v, J = x, Z = p, re = l, ee = t, te = y, pe = i, ce = L, ne = C, I = a, B = o, N = n, X = j, oe = !1;
|
|
568
|
+
function Y(c) {
|
|
569
|
+
return oe || (oe = !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.")), r(c) || $(c) === v;
|
|
175
570
|
}
|
|
176
|
-
function
|
|
177
|
-
return
|
|
571
|
+
function r(c) {
|
|
572
|
+
return $(c) === x;
|
|
178
573
|
}
|
|
179
|
-
function
|
|
180
|
-
return
|
|
574
|
+
function u(c) {
|
|
575
|
+
return $(c) === p;
|
|
181
576
|
}
|
|
182
|
-
function
|
|
183
|
-
return
|
|
577
|
+
function h(c) {
|
|
578
|
+
return $(c) === l;
|
|
184
579
|
}
|
|
185
|
-
function b(
|
|
186
|
-
return typeof
|
|
580
|
+
function b(c) {
|
|
581
|
+
return typeof c == "object" && c !== null && c.$$typeof === t;
|
|
187
582
|
}
|
|
188
|
-
function
|
|
189
|
-
return
|
|
583
|
+
function m(c) {
|
|
584
|
+
return $(c) === y;
|
|
190
585
|
}
|
|
191
|
-
function
|
|
192
|
-
return
|
|
586
|
+
function k(c) {
|
|
587
|
+
return $(c) === i;
|
|
193
588
|
}
|
|
194
|
-
function
|
|
195
|
-
return
|
|
589
|
+
function g(c) {
|
|
590
|
+
return $(c) === L;
|
|
196
591
|
}
|
|
197
|
-
function
|
|
198
|
-
return
|
|
592
|
+
function w(c) {
|
|
593
|
+
return $(c) === C;
|
|
199
594
|
}
|
|
200
|
-
function
|
|
201
|
-
return
|
|
595
|
+
function E(c) {
|
|
596
|
+
return $(c) === a;
|
|
202
597
|
}
|
|
203
|
-
function
|
|
204
|
-
return
|
|
598
|
+
function T(c) {
|
|
599
|
+
return $(c) === o;
|
|
205
600
|
}
|
|
206
|
-
function
|
|
207
|
-
return
|
|
601
|
+
function _(c) {
|
|
602
|
+
return $(c) === n;
|
|
208
603
|
}
|
|
209
|
-
function
|
|
210
|
-
return
|
|
604
|
+
function U(c) {
|
|
605
|
+
return $(c) === j;
|
|
211
606
|
}
|
|
212
|
-
|
|
213
|
-
}()),
|
|
607
|
+
A.AsyncMode = d, A.ConcurrentMode = J, A.ContextConsumer = Z, A.ContextProvider = re, A.Element = ee, A.ForwardRef = te, A.Fragment = pe, A.Lazy = ce, A.Memo = ne, A.Portal = I, A.Profiler = B, A.StrictMode = N, A.Suspense = X, A.isAsyncMode = Y, A.isConcurrentMode = r, A.isContextConsumer = u, A.isContextProvider = h, A.isElement = b, A.isForwardRef = m, A.isFragment = k, A.isLazy = g, A.isMemo = w, A.isPortal = E, A.isProfiler = T, A.isStrictMode = _, A.isSuspense = U, A.isValidElementType = F, A.typeOf = $;
|
|
608
|
+
}()), A;
|
|
214
609
|
}
|
|
215
|
-
var
|
|
216
|
-
function
|
|
217
|
-
return
|
|
610
|
+
var zt;
|
|
611
|
+
function ma() {
|
|
612
|
+
return zt || (zt = 1, process.env.NODE_ENV === "production" ? ze.exports = Jn() : ze.exports = Xn()), ze.exports;
|
|
218
613
|
}
|
|
614
|
+
var Ce = { exports: {} };
|
|
219
615
|
/*
|
|
220
616
|
object-assign
|
|
221
617
|
(c) Sindre Sorhus
|
|
222
618
|
@license MIT
|
|
223
619
|
*/
|
|
224
|
-
var
|
|
225
|
-
function
|
|
226
|
-
if (
|
|
227
|
-
|
|
228
|
-
var
|
|
229
|
-
function
|
|
230
|
-
if (
|
|
620
|
+
var et, Ct;
|
|
621
|
+
function Qn() {
|
|
622
|
+
if (Ct) return et;
|
|
623
|
+
Ct = 1;
|
|
624
|
+
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, a = Object.prototype.propertyIsEnumerable;
|
|
625
|
+
function i(o) {
|
|
626
|
+
if (o == null)
|
|
231
627
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
232
|
-
return Object(
|
|
628
|
+
return Object(o);
|
|
233
629
|
}
|
|
234
|
-
function
|
|
630
|
+
function n() {
|
|
235
631
|
try {
|
|
236
632
|
if (!Object.assign)
|
|
237
633
|
return !1;
|
|
238
|
-
var
|
|
239
|
-
if (
|
|
634
|
+
var o = new String("abc");
|
|
635
|
+
if (o[5] = "de", Object.getOwnPropertyNames(o)[0] === "5")
|
|
240
636
|
return !1;
|
|
241
|
-
for (var
|
|
242
|
-
|
|
243
|
-
var
|
|
244
|
-
return
|
|
637
|
+
for (var l = {}, p = 0; p < 10; p++)
|
|
638
|
+
l["_" + String.fromCharCode(p)] = p;
|
|
639
|
+
var v = Object.getOwnPropertyNames(l).map(function(y) {
|
|
640
|
+
return l[y];
|
|
245
641
|
});
|
|
246
|
-
if (
|
|
642
|
+
if (v.join("") !== "0123456789")
|
|
247
643
|
return !1;
|
|
248
|
-
var
|
|
249
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
250
|
-
|
|
251
|
-
}), Object.keys(Object.assign({},
|
|
644
|
+
var x = {};
|
|
645
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(y) {
|
|
646
|
+
x[y] = y;
|
|
647
|
+
}), Object.keys(Object.assign({}, x)).join("") === "abcdefghijklmnopqrst";
|
|
252
648
|
} catch {
|
|
253
649
|
return !1;
|
|
254
650
|
}
|
|
255
651
|
}
|
|
256
|
-
return
|
|
257
|
-
for (var
|
|
258
|
-
|
|
259
|
-
for (var
|
|
260
|
-
|
|
261
|
-
if (
|
|
262
|
-
|
|
263
|
-
for (var
|
|
264
|
-
|
|
652
|
+
return et = n() ? Object.assign : function(o, l) {
|
|
653
|
+
for (var p, v = i(o), x, y = 1; y < arguments.length; y++) {
|
|
654
|
+
p = Object(arguments[y]);
|
|
655
|
+
for (var j in p)
|
|
656
|
+
t.call(p, j) && (v[j] = p[j]);
|
|
657
|
+
if (e) {
|
|
658
|
+
x = e(p);
|
|
659
|
+
for (var D = 0; D < x.length; D++)
|
|
660
|
+
a.call(p, x[D]) && (v[x[D]] = p[x[D]]);
|
|
265
661
|
}
|
|
266
662
|
}
|
|
267
|
-
return
|
|
268
|
-
},
|
|
269
|
-
}
|
|
270
|
-
var
|
|
271
|
-
function
|
|
272
|
-
if (
|
|
273
|
-
|
|
274
|
-
var
|
|
275
|
-
return
|
|
276
|
-
}
|
|
277
|
-
var
|
|
278
|
-
function
|
|
279
|
-
return
|
|
280
|
-
}
|
|
281
|
-
var
|
|
282
|
-
function
|
|
283
|
-
if (
|
|
284
|
-
|
|
285
|
-
var
|
|
663
|
+
return v;
|
|
664
|
+
}, et;
|
|
665
|
+
}
|
|
666
|
+
var tt, Rt;
|
|
667
|
+
function mt() {
|
|
668
|
+
if (Rt) return tt;
|
|
669
|
+
Rt = 1;
|
|
670
|
+
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
671
|
+
return tt = e, tt;
|
|
672
|
+
}
|
|
673
|
+
var at, It;
|
|
674
|
+
function va() {
|
|
675
|
+
return It || (It = 1, at = Function.call.bind(Object.prototype.hasOwnProperty)), at;
|
|
676
|
+
}
|
|
677
|
+
var it, Ft;
|
|
678
|
+
function eo() {
|
|
679
|
+
if (Ft) return it;
|
|
680
|
+
Ft = 1;
|
|
681
|
+
var e = function() {
|
|
286
682
|
};
|
|
287
683
|
if (process.env.NODE_ENV !== "production") {
|
|
288
|
-
var
|
|
289
|
-
|
|
290
|
-
var
|
|
291
|
-
typeof console < "u" && console.error(
|
|
684
|
+
var t = /* @__PURE__ */ mt(), a = {}, i = /* @__PURE__ */ va();
|
|
685
|
+
e = function(o) {
|
|
686
|
+
var l = "Warning: " + o;
|
|
687
|
+
typeof console < "u" && console.error(l);
|
|
292
688
|
try {
|
|
293
|
-
throw new Error(
|
|
689
|
+
throw new Error(l);
|
|
294
690
|
} catch {
|
|
295
691
|
}
|
|
296
692
|
};
|
|
297
693
|
}
|
|
298
|
-
function o
|
|
694
|
+
function n(o, l, p, v, x) {
|
|
299
695
|
if (process.env.NODE_ENV !== "production") {
|
|
300
|
-
for (var
|
|
301
|
-
if (
|
|
302
|
-
var
|
|
696
|
+
for (var y in o)
|
|
697
|
+
if (i(o, y)) {
|
|
698
|
+
var j;
|
|
303
699
|
try {
|
|
304
|
-
if (typeof
|
|
305
|
-
var
|
|
306
|
-
(
|
|
700
|
+
if (typeof o[y] != "function") {
|
|
701
|
+
var D = Error(
|
|
702
|
+
(v || "React class") + ": " + p + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
307
703
|
);
|
|
308
|
-
throw
|
|
704
|
+
throw D.name = "Invariant Violation", D;
|
|
309
705
|
}
|
|
310
|
-
|
|
311
|
-
} catch (
|
|
312
|
-
|
|
706
|
+
j = o[y](l, y, v, p, null, t);
|
|
707
|
+
} catch (L) {
|
|
708
|
+
j = L;
|
|
313
709
|
}
|
|
314
|
-
if (
|
|
315
|
-
(
|
|
316
|
-
),
|
|
317
|
-
|
|
318
|
-
var
|
|
319
|
-
|
|
320
|
-
"Failed " +
|
|
710
|
+
if (j && !(j instanceof Error) && e(
|
|
711
|
+
(v || "React class") + ": type specification of " + p + " `" + y + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof j + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
712
|
+
), j instanceof Error && !(j.message in a)) {
|
|
713
|
+
a[j.message] = !0;
|
|
714
|
+
var C = x ? x() : "";
|
|
715
|
+
e(
|
|
716
|
+
"Failed " + p + " type: " + j.message + (C ?? "")
|
|
321
717
|
);
|
|
322
718
|
}
|
|
323
719
|
}
|
|
324
720
|
}
|
|
325
721
|
}
|
|
326
|
-
return
|
|
327
|
-
process.env.NODE_ENV !== "production" && (
|
|
328
|
-
},
|
|
329
|
-
}
|
|
330
|
-
var
|
|
331
|
-
function
|
|
332
|
-
if (
|
|
333
|
-
|
|
334
|
-
var
|
|
722
|
+
return n.resetWarningCache = function() {
|
|
723
|
+
process.env.NODE_ENV !== "production" && (a = {});
|
|
724
|
+
}, it = n, it;
|
|
725
|
+
}
|
|
726
|
+
var nt, $t;
|
|
727
|
+
function to() {
|
|
728
|
+
if ($t) return nt;
|
|
729
|
+
$t = 1;
|
|
730
|
+
var e = ma(), t = Qn(), a = /* @__PURE__ */ mt(), i = /* @__PURE__ */ va(), n = /* @__PURE__ */ eo(), o = function() {
|
|
335
731
|
};
|
|
336
|
-
process.env.NODE_ENV !== "production" && (
|
|
337
|
-
var
|
|
338
|
-
typeof console < "u" && console.error(
|
|
732
|
+
process.env.NODE_ENV !== "production" && (o = function(p) {
|
|
733
|
+
var v = "Warning: " + p;
|
|
734
|
+
typeof console < "u" && console.error(v);
|
|
339
735
|
try {
|
|
340
|
-
throw new Error(
|
|
736
|
+
throw new Error(v);
|
|
341
737
|
} catch {
|
|
342
738
|
}
|
|
343
739
|
});
|
|
344
|
-
function
|
|
740
|
+
function l() {
|
|
345
741
|
return null;
|
|
346
742
|
}
|
|
347
|
-
return
|
|
348
|
-
var
|
|
349
|
-
function
|
|
350
|
-
var
|
|
351
|
-
if (typeof
|
|
352
|
-
return
|
|
743
|
+
return nt = function(p, v) {
|
|
744
|
+
var x = typeof Symbol == "function" && Symbol.iterator, y = "@@iterator";
|
|
745
|
+
function j(r) {
|
|
746
|
+
var u = r && (x && r[x] || r[y]);
|
|
747
|
+
if (typeof u == "function")
|
|
748
|
+
return u;
|
|
353
749
|
}
|
|
354
|
-
var
|
|
355
|
-
array:
|
|
356
|
-
bigint:
|
|
357
|
-
bool:
|
|
358
|
-
func:
|
|
359
|
-
number:
|
|
360
|
-
object:
|
|
361
|
-
string:
|
|
362
|
-
symbol:
|
|
363
|
-
any:
|
|
750
|
+
var D = "<<anonymous>>", C = {
|
|
751
|
+
array: H("array"),
|
|
752
|
+
bigint: H("bigint"),
|
|
753
|
+
bool: H("boolean"),
|
|
754
|
+
func: H("function"),
|
|
755
|
+
number: H("number"),
|
|
756
|
+
object: H("object"),
|
|
757
|
+
string: H("string"),
|
|
758
|
+
symbol: H("symbol"),
|
|
759
|
+
any: ie(),
|
|
364
760
|
arrayOf: F,
|
|
365
|
-
element:
|
|
366
|
-
elementType:
|
|
367
|
-
instanceOf:
|
|
368
|
-
node:
|
|
369
|
-
objectOf:
|
|
370
|
-
oneOf:
|
|
371
|
-
oneOfType:
|
|
372
|
-
shape:
|
|
373
|
-
exact:
|
|
761
|
+
element: $(),
|
|
762
|
+
elementType: d(),
|
|
763
|
+
instanceOf: J,
|
|
764
|
+
node: te(),
|
|
765
|
+
objectOf: re,
|
|
766
|
+
oneOf: Z,
|
|
767
|
+
oneOfType: ee,
|
|
768
|
+
shape: ce,
|
|
769
|
+
exact: ne
|
|
374
770
|
};
|
|
375
|
-
function
|
|
376
|
-
return
|
|
771
|
+
function L(r, u) {
|
|
772
|
+
return r === u ? r !== 0 || 1 / r === 1 / u : r !== r && u !== u;
|
|
377
773
|
}
|
|
378
|
-
function
|
|
379
|
-
this.message =
|
|
774
|
+
function S(r, u) {
|
|
775
|
+
this.message = r, this.data = u && typeof u == "object" ? u : {}, this.stack = "";
|
|
380
776
|
}
|
|
381
|
-
|
|
382
|
-
function q(
|
|
777
|
+
S.prototype = Error.prototype;
|
|
778
|
+
function q(r) {
|
|
383
779
|
if (process.env.NODE_ENV !== "production")
|
|
384
|
-
var
|
|
385
|
-
function b(
|
|
386
|
-
if (
|
|
387
|
-
if (
|
|
388
|
-
var
|
|
780
|
+
var u = {}, h = 0;
|
|
781
|
+
function b(k, g, w, E, T, _, U) {
|
|
782
|
+
if (E = E || D, _ = _ || w, U !== a) {
|
|
783
|
+
if (v) {
|
|
784
|
+
var c = new Error(
|
|
389
785
|
"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"
|
|
390
786
|
);
|
|
391
|
-
throw
|
|
787
|
+
throw c.name = "Invariant Violation", c;
|
|
392
788
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
393
|
-
var
|
|
394
|
-
!
|
|
395
|
-
|
|
396
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
397
|
-
),
|
|
789
|
+
var G = E + ":" + w;
|
|
790
|
+
!u[G] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
791
|
+
h < 3 && (o(
|
|
792
|
+
"You are manually calling a React.PropTypes validation function for the `" + _ + "` prop on `" + E + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
793
|
+
), u[G] = !0, h++);
|
|
398
794
|
}
|
|
399
795
|
}
|
|
400
|
-
return
|
|
796
|
+
return g[w] == null ? k ? g[w] === null ? new S("The " + T + " `" + _ + "` is marked as required " + ("in `" + E + "`, but its value is `null`.")) : new S("The " + T + " `" + _ + "` is marked as required in " + ("`" + E + "`, but its value is `undefined`.")) : null : r(g, w, E, T, _);
|
|
401
797
|
}
|
|
402
|
-
var
|
|
403
|
-
return
|
|
798
|
+
var m = b.bind(null, !1);
|
|
799
|
+
return m.isRequired = b.bind(null, !0), m;
|
|
404
800
|
}
|
|
405
|
-
function
|
|
406
|
-
function
|
|
407
|
-
var
|
|
408
|
-
if (
|
|
409
|
-
var
|
|
410
|
-
return new
|
|
411
|
-
"Invalid " +
|
|
412
|
-
{ expectedType:
|
|
801
|
+
function H(r) {
|
|
802
|
+
function u(h, b, m, k, g, w) {
|
|
803
|
+
var E = h[b], T = N(E);
|
|
804
|
+
if (T !== r) {
|
|
805
|
+
var _ = X(E);
|
|
806
|
+
return new S(
|
|
807
|
+
"Invalid " + k + " `" + g + "` of type " + ("`" + _ + "` supplied to `" + m + "`, expected ") + ("`" + r + "`."),
|
|
808
|
+
{ expectedType: r }
|
|
413
809
|
);
|
|
414
810
|
}
|
|
415
811
|
return null;
|
|
416
812
|
}
|
|
417
|
-
return q(
|
|
813
|
+
return q(u);
|
|
418
814
|
}
|
|
419
|
-
function
|
|
420
|
-
return q(
|
|
815
|
+
function ie() {
|
|
816
|
+
return q(l);
|
|
421
817
|
}
|
|
422
|
-
function F(
|
|
423
|
-
function
|
|
424
|
-
if (typeof
|
|
425
|
-
return new
|
|
426
|
-
var
|
|
427
|
-
if (!Array.isArray(
|
|
428
|
-
var
|
|
429
|
-
return new
|
|
818
|
+
function F(r) {
|
|
819
|
+
function u(h, b, m, k, g) {
|
|
820
|
+
if (typeof r != "function")
|
|
821
|
+
return new S("Property `" + g + "` of component `" + m + "` has invalid PropType notation inside arrayOf.");
|
|
822
|
+
var w = h[b];
|
|
823
|
+
if (!Array.isArray(w)) {
|
|
824
|
+
var E = N(w);
|
|
825
|
+
return new S("Invalid " + k + " `" + g + "` of type " + ("`" + E + "` supplied to `" + m + "`, expected an array."));
|
|
430
826
|
}
|
|
431
|
-
for (var
|
|
432
|
-
var
|
|
433
|
-
if (
|
|
434
|
-
return
|
|
827
|
+
for (var T = 0; T < w.length; T++) {
|
|
828
|
+
var _ = r(w, T, m, k, g + "[" + T + "]", a);
|
|
829
|
+
if (_ instanceof Error)
|
|
830
|
+
return _;
|
|
435
831
|
}
|
|
436
832
|
return null;
|
|
437
833
|
}
|
|
438
|
-
return q(
|
|
834
|
+
return q(u);
|
|
439
835
|
}
|
|
440
|
-
function
|
|
441
|
-
function
|
|
442
|
-
var
|
|
443
|
-
if (!
|
|
444
|
-
var
|
|
445
|
-
return new
|
|
836
|
+
function $() {
|
|
837
|
+
function r(u, h, b, m, k) {
|
|
838
|
+
var g = u[h];
|
|
839
|
+
if (!p(g)) {
|
|
840
|
+
var w = N(g);
|
|
841
|
+
return new S("Invalid " + m + " `" + k + "` of type " + ("`" + w + "` supplied to `" + b + "`, expected a single ReactElement."));
|
|
446
842
|
}
|
|
447
843
|
return null;
|
|
448
844
|
}
|
|
449
|
-
return q(
|
|
845
|
+
return q(r);
|
|
450
846
|
}
|
|
451
|
-
function
|
|
452
|
-
function
|
|
453
|
-
var
|
|
454
|
-
if (!
|
|
455
|
-
var
|
|
456
|
-
return new
|
|
847
|
+
function d() {
|
|
848
|
+
function r(u, h, b, m, k) {
|
|
849
|
+
var g = u[h];
|
|
850
|
+
if (!e.isValidElementType(g)) {
|
|
851
|
+
var w = N(g);
|
|
852
|
+
return new S("Invalid " + m + " `" + k + "` of type " + ("`" + w + "` supplied to `" + b + "`, expected a single ReactElement type."));
|
|
457
853
|
}
|
|
458
854
|
return null;
|
|
459
855
|
}
|
|
460
|
-
return q(
|
|
856
|
+
return q(r);
|
|
461
857
|
}
|
|
462
|
-
function
|
|
463
|
-
function
|
|
464
|
-
if (!(
|
|
465
|
-
var
|
|
466
|
-
return new
|
|
858
|
+
function J(r) {
|
|
859
|
+
function u(h, b, m, k, g) {
|
|
860
|
+
if (!(h[b] instanceof r)) {
|
|
861
|
+
var w = r.name || D, E = Y(h[b]);
|
|
862
|
+
return new S("Invalid " + k + " `" + g + "` of type " + ("`" + E + "` supplied to `" + m + "`, expected ") + ("instance of `" + w + "`."));
|
|
467
863
|
}
|
|
468
864
|
return null;
|
|
469
865
|
}
|
|
470
|
-
return q(
|
|
866
|
+
return q(u);
|
|
471
867
|
}
|
|
472
|
-
function
|
|
473
|
-
if (!Array.isArray(
|
|
474
|
-
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ?
|
|
868
|
+
function Z(r) {
|
|
869
|
+
if (!Array.isArray(r))
|
|
870
|
+
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
475
871
|
"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])."
|
|
476
|
-
) :
|
|
477
|
-
function
|
|
478
|
-
for (var
|
|
479
|
-
if (
|
|
872
|
+
) : o("Invalid argument supplied to oneOf, expected an array.")), l;
|
|
873
|
+
function u(h, b, m, k, g) {
|
|
874
|
+
for (var w = h[b], E = 0; E < r.length; E++)
|
|
875
|
+
if (L(w, r[E]))
|
|
480
876
|
return null;
|
|
481
|
-
var
|
|
482
|
-
var
|
|
483
|
-
return
|
|
877
|
+
var T = JSON.stringify(r, function(U, c) {
|
|
878
|
+
var G = X(c);
|
|
879
|
+
return G === "symbol" ? String(c) : c;
|
|
484
880
|
});
|
|
485
|
-
return new
|
|
881
|
+
return new S("Invalid " + k + " `" + g + "` of value `" + String(w) + "` " + ("supplied to `" + m + "`, expected one of " + T + "."));
|
|
486
882
|
}
|
|
487
|
-
return q(
|
|
883
|
+
return q(u);
|
|
488
884
|
}
|
|
489
|
-
function
|
|
490
|
-
function
|
|
491
|
-
if (typeof
|
|
492
|
-
return new
|
|
493
|
-
var
|
|
494
|
-
if (
|
|
495
|
-
return new
|
|
496
|
-
for (var
|
|
497
|
-
if (
|
|
498
|
-
var
|
|
499
|
-
if (
|
|
500
|
-
return
|
|
885
|
+
function re(r) {
|
|
886
|
+
function u(h, b, m, k, g) {
|
|
887
|
+
if (typeof r != "function")
|
|
888
|
+
return new S("Property `" + g + "` of component `" + m + "` has invalid PropType notation inside objectOf.");
|
|
889
|
+
var w = h[b], E = N(w);
|
|
890
|
+
if (E !== "object")
|
|
891
|
+
return new S("Invalid " + k + " `" + g + "` of type " + ("`" + E + "` supplied to `" + m + "`, expected an object."));
|
|
892
|
+
for (var T in w)
|
|
893
|
+
if (i(w, T)) {
|
|
894
|
+
var _ = r(w, T, m, k, g + "." + T, a);
|
|
895
|
+
if (_ instanceof Error)
|
|
896
|
+
return _;
|
|
501
897
|
}
|
|
502
898
|
return null;
|
|
503
899
|
}
|
|
504
|
-
return q(
|
|
900
|
+
return q(u);
|
|
505
901
|
}
|
|
506
|
-
function
|
|
507
|
-
if (!Array.isArray(
|
|
508
|
-
return process.env.NODE_ENV !== "production" &&
|
|
509
|
-
for (var
|
|
510
|
-
var
|
|
511
|
-
if (typeof
|
|
512
|
-
return
|
|
513
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
514
|
-
),
|
|
902
|
+
function ee(r) {
|
|
903
|
+
if (!Array.isArray(r))
|
|
904
|
+
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), l;
|
|
905
|
+
for (var u = 0; u < r.length; u++) {
|
|
906
|
+
var h = r[u];
|
|
907
|
+
if (typeof h != "function")
|
|
908
|
+
return o(
|
|
909
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + oe(h) + " at index " + u + "."
|
|
910
|
+
), l;
|
|
515
911
|
}
|
|
516
|
-
function b(
|
|
517
|
-
for (var
|
|
518
|
-
var
|
|
519
|
-
if (
|
|
912
|
+
function b(m, k, g, w, E) {
|
|
913
|
+
for (var T = [], _ = 0; _ < r.length; _++) {
|
|
914
|
+
var U = r[_], c = U(m, k, g, w, E, a);
|
|
915
|
+
if (c == null)
|
|
520
916
|
return null;
|
|
521
|
-
|
|
917
|
+
c.data && i(c.data, "expectedType") && T.push(c.data.expectedType);
|
|
522
918
|
}
|
|
523
|
-
var
|
|
524
|
-
return new
|
|
919
|
+
var G = T.length > 0 ? ", expected one of type [" + T.join(", ") + "]" : "";
|
|
920
|
+
return new S("Invalid " + w + " `" + E + "` supplied to " + ("`" + g + "`" + G + "."));
|
|
525
921
|
}
|
|
526
922
|
return q(b);
|
|
527
923
|
}
|
|
528
|
-
function
|
|
529
|
-
function
|
|
530
|
-
return
|
|
924
|
+
function te() {
|
|
925
|
+
function r(u, h, b, m, k) {
|
|
926
|
+
return I(u[h]) ? null : new S("Invalid " + m + " `" + k + "` supplied to " + ("`" + b + "`, expected a ReactNode."));
|
|
531
927
|
}
|
|
532
|
-
return q(
|
|
928
|
+
return q(r);
|
|
533
929
|
}
|
|
534
|
-
function
|
|
535
|
-
return new
|
|
536
|
-
(
|
|
930
|
+
function pe(r, u, h, b, m) {
|
|
931
|
+
return new S(
|
|
932
|
+
(r || "React class") + ": " + u + " type `" + h + "." + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + m + "`."
|
|
537
933
|
);
|
|
538
934
|
}
|
|
539
|
-
function
|
|
540
|
-
function
|
|
541
|
-
var
|
|
542
|
-
if (
|
|
543
|
-
return new
|
|
544
|
-
for (var
|
|
545
|
-
var
|
|
546
|
-
if (typeof
|
|
547
|
-
return
|
|
548
|
-
var
|
|
549
|
-
if (
|
|
550
|
-
return
|
|
935
|
+
function ce(r) {
|
|
936
|
+
function u(h, b, m, k, g) {
|
|
937
|
+
var w = h[b], E = N(w);
|
|
938
|
+
if (E !== "object")
|
|
939
|
+
return new S("Invalid " + k + " `" + g + "` of type `" + E + "` " + ("supplied to `" + m + "`, expected `object`."));
|
|
940
|
+
for (var T in r) {
|
|
941
|
+
var _ = r[T];
|
|
942
|
+
if (typeof _ != "function")
|
|
943
|
+
return pe(m, k, g, T, X(_));
|
|
944
|
+
var U = _(w, T, m, k, g + "." + T, a);
|
|
945
|
+
if (U)
|
|
946
|
+
return U;
|
|
551
947
|
}
|
|
552
948
|
return null;
|
|
553
949
|
}
|
|
554
|
-
return q(
|
|
950
|
+
return q(u);
|
|
555
951
|
}
|
|
556
|
-
function
|
|
557
|
-
function
|
|
558
|
-
var
|
|
559
|
-
if (
|
|
560
|
-
return new
|
|
561
|
-
var
|
|
562
|
-
for (var
|
|
563
|
-
var
|
|
564
|
-
if (
|
|
565
|
-
return
|
|
566
|
-
if (!
|
|
567
|
-
return new
|
|
568
|
-
"Invalid " +
|
|
569
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
952
|
+
function ne(r) {
|
|
953
|
+
function u(h, b, m, k, g) {
|
|
954
|
+
var w = h[b], E = N(w);
|
|
955
|
+
if (E !== "object")
|
|
956
|
+
return new S("Invalid " + k + " `" + g + "` of type `" + E + "` " + ("supplied to `" + m + "`, expected `object`."));
|
|
957
|
+
var T = t({}, h[b], r);
|
|
958
|
+
for (var _ in T) {
|
|
959
|
+
var U = r[_];
|
|
960
|
+
if (i(r, _) && typeof U != "function")
|
|
961
|
+
return pe(m, k, g, _, X(U));
|
|
962
|
+
if (!U)
|
|
963
|
+
return new S(
|
|
964
|
+
"Invalid " + k + " `" + g + "` key `" + _ + "` supplied to `" + m + "`.\nBad object: " + JSON.stringify(h[b], null, " ") + `
|
|
965
|
+
Valid keys: ` + JSON.stringify(Object.keys(r), null, " ")
|
|
570
966
|
);
|
|
571
|
-
var
|
|
572
|
-
if (
|
|
573
|
-
return
|
|
967
|
+
var c = U(w, _, m, k, g + "." + _, a);
|
|
968
|
+
if (c)
|
|
969
|
+
return c;
|
|
574
970
|
}
|
|
575
971
|
return null;
|
|
576
972
|
}
|
|
577
|
-
return q(
|
|
973
|
+
return q(u);
|
|
578
974
|
}
|
|
579
|
-
function
|
|
580
|
-
switch (typeof
|
|
975
|
+
function I(r) {
|
|
976
|
+
switch (typeof r) {
|
|
581
977
|
case "number":
|
|
582
978
|
case "string":
|
|
583
979
|
case "undefined":
|
|
584
980
|
return !0;
|
|
585
981
|
case "boolean":
|
|
586
|
-
return !
|
|
982
|
+
return !r;
|
|
587
983
|
case "object":
|
|
588
|
-
if (Array.isArray(
|
|
589
|
-
return
|
|
590
|
-
if (
|
|
984
|
+
if (Array.isArray(r))
|
|
985
|
+
return r.every(I);
|
|
986
|
+
if (r === null || p(r))
|
|
591
987
|
return !0;
|
|
592
|
-
var
|
|
593
|
-
if (
|
|
594
|
-
var
|
|
595
|
-
if (
|
|
596
|
-
for (; !(b =
|
|
597
|
-
if (!
|
|
988
|
+
var u = j(r);
|
|
989
|
+
if (u) {
|
|
990
|
+
var h = u.call(r), b;
|
|
991
|
+
if (u !== r.entries) {
|
|
992
|
+
for (; !(b = h.next()).done; )
|
|
993
|
+
if (!I(b.value))
|
|
598
994
|
return !1;
|
|
599
995
|
} else
|
|
600
|
-
for (; !(b =
|
|
601
|
-
var
|
|
602
|
-
if (
|
|
996
|
+
for (; !(b = h.next()).done; ) {
|
|
997
|
+
var m = b.value;
|
|
998
|
+
if (m && !I(m[1]))
|
|
603
999
|
return !1;
|
|
604
1000
|
}
|
|
605
1001
|
} else
|
|
@@ -609,133 +1005,133 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
|
|
|
609
1005
|
return !1;
|
|
610
1006
|
}
|
|
611
1007
|
}
|
|
612
|
-
function
|
|
613
|
-
return
|
|
1008
|
+
function B(r, u) {
|
|
1009
|
+
return r === "symbol" ? !0 : u ? u["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && u instanceof Symbol : !1;
|
|
614
1010
|
}
|
|
615
|
-
function
|
|
616
|
-
var
|
|
617
|
-
return Array.isArray(
|
|
1011
|
+
function N(r) {
|
|
1012
|
+
var u = typeof r;
|
|
1013
|
+
return Array.isArray(r) ? "array" : r instanceof RegExp ? "object" : B(u, r) ? "symbol" : u;
|
|
618
1014
|
}
|
|
619
|
-
function
|
|
620
|
-
if (typeof
|
|
621
|
-
return "" +
|
|
622
|
-
var
|
|
623
|
-
if (
|
|
624
|
-
if (
|
|
1015
|
+
function X(r) {
|
|
1016
|
+
if (typeof r > "u" || r === null)
|
|
1017
|
+
return "" + r;
|
|
1018
|
+
var u = N(r);
|
|
1019
|
+
if (u === "object") {
|
|
1020
|
+
if (r instanceof Date)
|
|
625
1021
|
return "date";
|
|
626
|
-
if (
|
|
1022
|
+
if (r instanceof RegExp)
|
|
627
1023
|
return "regexp";
|
|
628
1024
|
}
|
|
629
|
-
return
|
|
1025
|
+
return u;
|
|
630
1026
|
}
|
|
631
|
-
function
|
|
632
|
-
var
|
|
633
|
-
switch (
|
|
1027
|
+
function oe(r) {
|
|
1028
|
+
var u = X(r);
|
|
1029
|
+
switch (u) {
|
|
634
1030
|
case "array":
|
|
635
1031
|
case "object":
|
|
636
|
-
return "an " +
|
|
1032
|
+
return "an " + u;
|
|
637
1033
|
case "boolean":
|
|
638
1034
|
case "date":
|
|
639
1035
|
case "regexp":
|
|
640
|
-
return "a " +
|
|
1036
|
+
return "a " + u;
|
|
641
1037
|
default:
|
|
642
|
-
return
|
|
1038
|
+
return u;
|
|
643
1039
|
}
|
|
644
1040
|
}
|
|
645
|
-
function Y(
|
|
646
|
-
return !
|
|
1041
|
+
function Y(r) {
|
|
1042
|
+
return !r.constructor || !r.constructor.name ? D : r.constructor.name;
|
|
647
1043
|
}
|
|
648
|
-
return
|
|
649
|
-
},
|
|
650
|
-
}
|
|
651
|
-
var
|
|
652
|
-
function
|
|
653
|
-
if (
|
|
654
|
-
|
|
655
|
-
var
|
|
656
|
-
function
|
|
1044
|
+
return C.checkPropTypes = n, C.resetWarningCache = n.resetWarningCache, C.PropTypes = C, C;
|
|
1045
|
+
}, nt;
|
|
1046
|
+
}
|
|
1047
|
+
var ot, qt;
|
|
1048
|
+
function ao() {
|
|
1049
|
+
if (qt) return ot;
|
|
1050
|
+
qt = 1;
|
|
1051
|
+
var e = /* @__PURE__ */ mt();
|
|
1052
|
+
function t() {
|
|
657
1053
|
}
|
|
658
|
-
function
|
|
1054
|
+
function a() {
|
|
659
1055
|
}
|
|
660
|
-
return
|
|
661
|
-
function
|
|
662
|
-
if (
|
|
663
|
-
var
|
|
1056
|
+
return a.resetWarningCache = t, ot = function() {
|
|
1057
|
+
function i(l, p, v, x, y, j) {
|
|
1058
|
+
if (j !== e) {
|
|
1059
|
+
var D = new Error(
|
|
664
1060
|
"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"
|
|
665
1061
|
);
|
|
666
|
-
throw
|
|
1062
|
+
throw D.name = "Invariant Violation", D;
|
|
667
1063
|
}
|
|
668
1064
|
}
|
|
669
|
-
|
|
670
|
-
function
|
|
671
|
-
return
|
|
1065
|
+
i.isRequired = i;
|
|
1066
|
+
function n() {
|
|
1067
|
+
return i;
|
|
672
1068
|
}
|
|
673
|
-
var
|
|
674
|
-
array:
|
|
675
|
-
bigint:
|
|
676
|
-
bool:
|
|
677
|
-
func:
|
|
678
|
-
number:
|
|
679
|
-
object:
|
|
680
|
-
string:
|
|
681
|
-
symbol:
|
|
682
|
-
any:
|
|
683
|
-
arrayOf:
|
|
684
|
-
element:
|
|
685
|
-
elementType:
|
|
686
|
-
instanceOf:
|
|
687
|
-
node:
|
|
688
|
-
objectOf:
|
|
689
|
-
oneOf:
|
|
690
|
-
oneOfType:
|
|
691
|
-
shape:
|
|
692
|
-
exact:
|
|
693
|
-
checkPropTypes:
|
|
694
|
-
resetWarningCache:
|
|
1069
|
+
var o = {
|
|
1070
|
+
array: i,
|
|
1071
|
+
bigint: i,
|
|
1072
|
+
bool: i,
|
|
1073
|
+
func: i,
|
|
1074
|
+
number: i,
|
|
1075
|
+
object: i,
|
|
1076
|
+
string: i,
|
|
1077
|
+
symbol: i,
|
|
1078
|
+
any: i,
|
|
1079
|
+
arrayOf: n,
|
|
1080
|
+
element: i,
|
|
1081
|
+
elementType: i,
|
|
1082
|
+
instanceOf: n,
|
|
1083
|
+
node: i,
|
|
1084
|
+
objectOf: n,
|
|
1085
|
+
oneOf: n,
|
|
1086
|
+
oneOfType: n,
|
|
1087
|
+
shape: n,
|
|
1088
|
+
exact: n,
|
|
1089
|
+
checkPropTypes: a,
|
|
1090
|
+
resetWarningCache: t
|
|
695
1091
|
};
|
|
696
|
-
return
|
|
697
|
-
},
|
|
698
|
-
}
|
|
699
|
-
var
|
|
700
|
-
function
|
|
701
|
-
if (
|
|
702
|
-
if (
|
|
703
|
-
var
|
|
704
|
-
|
|
1092
|
+
return o.PropTypes = o, o;
|
|
1093
|
+
}, ot;
|
|
1094
|
+
}
|
|
1095
|
+
var Mt;
|
|
1096
|
+
function io() {
|
|
1097
|
+
if (Mt) return Ce.exports;
|
|
1098
|
+
if (Mt = 1, process.env.NODE_ENV !== "production") {
|
|
1099
|
+
var e = ma(), t = !0;
|
|
1100
|
+
Ce.exports = /* @__PURE__ */ to()(e.isElement, t);
|
|
705
1101
|
} else
|
|
706
|
-
|
|
707
|
-
return
|
|
708
|
-
}
|
|
709
|
-
var
|
|
710
|
-
const
|
|
711
|
-
function
|
|
712
|
-
function o
|
|
713
|
-
return
|
|
714
|
-
|
|
1102
|
+
Ce.exports = /* @__PURE__ */ ao()();
|
|
1103
|
+
return Ce.exports;
|
|
1104
|
+
}
|
|
1105
|
+
var no = /* @__PURE__ */ io();
|
|
1106
|
+
const P = /* @__PURE__ */ Qt(no);
|
|
1107
|
+
function ue(e, t, a, i) {
|
|
1108
|
+
function n(o) {
|
|
1109
|
+
return o instanceof a ? o : new a(function(l) {
|
|
1110
|
+
l(o);
|
|
715
1111
|
});
|
|
716
1112
|
}
|
|
717
|
-
return new (
|
|
718
|
-
function
|
|
1113
|
+
return new (a || (a = Promise))(function(o, l) {
|
|
1114
|
+
function p(y) {
|
|
719
1115
|
try {
|
|
720
|
-
|
|
721
|
-
} catch (
|
|
722
|
-
|
|
1116
|
+
x(i.next(y));
|
|
1117
|
+
} catch (j) {
|
|
1118
|
+
l(j);
|
|
723
1119
|
}
|
|
724
1120
|
}
|
|
725
|
-
function y
|
|
1121
|
+
function v(y) {
|
|
726
1122
|
try {
|
|
727
|
-
|
|
728
|
-
} catch (
|
|
729
|
-
|
|
1123
|
+
x(i.throw(y));
|
|
1124
|
+
} catch (j) {
|
|
1125
|
+
l(j);
|
|
730
1126
|
}
|
|
731
1127
|
}
|
|
732
|
-
function
|
|
733
|
-
|
|
1128
|
+
function x(y) {
|
|
1129
|
+
y.done ? o(y.value) : n(y.value).then(p, v);
|
|
734
1130
|
}
|
|
735
|
-
|
|
1131
|
+
x((i = i.apply(e, t || [])).next());
|
|
736
1132
|
});
|
|
737
1133
|
}
|
|
738
|
-
const
|
|
1134
|
+
const oo = /* @__PURE__ */ new Map([
|
|
739
1135
|
// https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
|
|
740
1136
|
["1km", "application/vnd.1000minds.decision-model+xml"],
|
|
741
1137
|
["3dml", "text/vnd.in3d.3dml"],
|
|
@@ -1938,485 +2334,485 @@ const ei = /* @__PURE__ */ new Map([
|
|
|
1938
2334
|
["zmm", "application/vnd.handheld-entertainment+xml"],
|
|
1939
2335
|
["zsh", "text/x-scriptzsh"]
|
|
1940
2336
|
]);
|
|
1941
|
-
function
|
|
1942
|
-
const
|
|
1943
|
-
return typeof
|
|
1944
|
-
}
|
|
1945
|
-
function
|
|
1946
|
-
const { name:
|
|
1947
|
-
if (
|
|
1948
|
-
const
|
|
1949
|
-
|
|
1950
|
-
value:
|
|
2337
|
+
function xe(e, t, a) {
|
|
2338
|
+
const i = ro(e), { webkitRelativePath: n } = e, o = typeof t == "string" ? t : typeof n == "string" && n.length > 0 ? n : `./${e.name}`;
|
|
2339
|
+
return typeof i.path != "string" && Lt(i, "path", o), Lt(i, "relativePath", o), i;
|
|
2340
|
+
}
|
|
2341
|
+
function ro(e) {
|
|
2342
|
+
const { name: t } = e;
|
|
2343
|
+
if (t && t.lastIndexOf(".") !== -1 && !e.type) {
|
|
2344
|
+
const i = t.split(".").pop().toLowerCase(), n = oo.get(i);
|
|
2345
|
+
n && Object.defineProperty(e, "type", {
|
|
2346
|
+
value: n,
|
|
1951
2347
|
writable: !1,
|
|
1952
2348
|
configurable: !1,
|
|
1953
2349
|
enumerable: !0
|
|
1954
2350
|
});
|
|
1955
2351
|
}
|
|
1956
|
-
return
|
|
2352
|
+
return e;
|
|
1957
2353
|
}
|
|
1958
|
-
function
|
|
1959
|
-
Object.defineProperty(
|
|
1960
|
-
value:
|
|
2354
|
+
function Lt(e, t, a) {
|
|
2355
|
+
Object.defineProperty(e, t, {
|
|
2356
|
+
value: a,
|
|
1961
2357
|
writable: !1,
|
|
1962
2358
|
configurable: !1,
|
|
1963
2359
|
enumerable: !0
|
|
1964
2360
|
});
|
|
1965
2361
|
}
|
|
1966
|
-
const
|
|
2362
|
+
const po = [
|
|
1967
2363
|
// Thumbnail cache files for macOS and Windows
|
|
1968
2364
|
".DS_Store",
|
|
1969
2365
|
// macOs
|
|
1970
2366
|
"Thumbs.db"
|
|
1971
2367
|
// Windows
|
|
1972
2368
|
];
|
|
1973
|
-
function
|
|
1974
|
-
return
|
|
1975
|
-
return
|
|
2369
|
+
function co(e) {
|
|
2370
|
+
return ue(this, void 0, void 0, function* () {
|
|
2371
|
+
return $e(e) && lo(e.dataTransfer) ? mo(e.dataTransfer, e.type) : so(e) ? uo(e) : Array.isArray(e) && e.every((t) => "getFile" in t && typeof t.getFile == "function") ? fo(e) : [];
|
|
1976
2372
|
});
|
|
1977
2373
|
}
|
|
1978
|
-
function
|
|
1979
|
-
return
|
|
2374
|
+
function lo(e) {
|
|
2375
|
+
return $e(e);
|
|
1980
2376
|
}
|
|
1981
|
-
function
|
|
1982
|
-
return
|
|
2377
|
+
function so(e) {
|
|
2378
|
+
return $e(e) && $e(e.target);
|
|
1983
2379
|
}
|
|
1984
|
-
function
|
|
1985
|
-
return typeof
|
|
2380
|
+
function $e(e) {
|
|
2381
|
+
return typeof e == "object" && e !== null;
|
|
1986
2382
|
}
|
|
1987
|
-
function
|
|
1988
|
-
return
|
|
2383
|
+
function uo(e) {
|
|
2384
|
+
return ct(e.target.files).map((t) => xe(t));
|
|
1989
2385
|
}
|
|
1990
|
-
function
|
|
1991
|
-
return
|
|
1992
|
-
return (yield Promise.all(
|
|
2386
|
+
function fo(e) {
|
|
2387
|
+
return ue(this, void 0, void 0, function* () {
|
|
2388
|
+
return (yield Promise.all(e.map((a) => a.getFile()))).map((a) => xe(a));
|
|
1993
2389
|
});
|
|
1994
2390
|
}
|
|
1995
|
-
function
|
|
1996
|
-
return
|
|
1997
|
-
if (
|
|
1998
|
-
const
|
|
1999
|
-
if (
|
|
2000
|
-
return
|
|
2001
|
-
const
|
|
2002
|
-
return
|
|
2391
|
+
function mo(e, t) {
|
|
2392
|
+
return ue(this, void 0, void 0, function* () {
|
|
2393
|
+
if (e.items) {
|
|
2394
|
+
const a = ct(e.items).filter((n) => n.kind === "file");
|
|
2395
|
+
if (t !== "drop")
|
|
2396
|
+
return a;
|
|
2397
|
+
const i = yield Promise.all(a.map(vo));
|
|
2398
|
+
return Ut(xa(i));
|
|
2003
2399
|
}
|
|
2004
|
-
return
|
|
2400
|
+
return Ut(ct(e.files).map((a) => xe(a)));
|
|
2005
2401
|
});
|
|
2006
2402
|
}
|
|
2007
|
-
function
|
|
2008
|
-
return
|
|
2403
|
+
function Ut(e) {
|
|
2404
|
+
return e.filter((t) => po.indexOf(t.name) === -1);
|
|
2009
2405
|
}
|
|
2010
|
-
function
|
|
2011
|
-
if (
|
|
2406
|
+
function ct(e) {
|
|
2407
|
+
if (e === null)
|
|
2012
2408
|
return [];
|
|
2013
|
-
const
|
|
2014
|
-
for (let
|
|
2015
|
-
const
|
|
2016
|
-
|
|
2409
|
+
const t = [];
|
|
2410
|
+
for (let a = 0; a < e.length; a++) {
|
|
2411
|
+
const i = e[a];
|
|
2412
|
+
t.push(i);
|
|
2017
2413
|
}
|
|
2018
|
-
return
|
|
2414
|
+
return t;
|
|
2019
2415
|
}
|
|
2020
|
-
function
|
|
2021
|
-
if (typeof
|
|
2022
|
-
return
|
|
2023
|
-
const
|
|
2024
|
-
return
|
|
2416
|
+
function vo(e) {
|
|
2417
|
+
if (typeof e.webkitGetAsEntry != "function")
|
|
2418
|
+
return Wt(e);
|
|
2419
|
+
const t = e.webkitGetAsEntry();
|
|
2420
|
+
return t && t.isDirectory ? ga(t) : Wt(e, t);
|
|
2025
2421
|
}
|
|
2026
|
-
function
|
|
2027
|
-
return
|
|
2028
|
-
...
|
|
2029
|
-
...Array.isArray(
|
|
2422
|
+
function xa(e) {
|
|
2423
|
+
return e.reduce((t, a) => [
|
|
2424
|
+
...t,
|
|
2425
|
+
...Array.isArray(a) ? xa(a) : [a]
|
|
2030
2426
|
], []);
|
|
2031
2427
|
}
|
|
2032
|
-
function
|
|
2033
|
-
return
|
|
2034
|
-
var
|
|
2035
|
-
if (globalThis.isSecureContext && typeof
|
|
2036
|
-
const
|
|
2037
|
-
if (
|
|
2038
|
-
throw new Error(`${
|
|
2039
|
-
if (
|
|
2040
|
-
const
|
|
2041
|
-
return
|
|
2428
|
+
function Wt(e, t) {
|
|
2429
|
+
return ue(this, void 0, void 0, function* () {
|
|
2430
|
+
var a;
|
|
2431
|
+
if (globalThis.isSecureContext && typeof e.getAsFileSystemHandle == "function") {
|
|
2432
|
+
const o = yield e.getAsFileSystemHandle();
|
|
2433
|
+
if (o === null)
|
|
2434
|
+
throw new Error(`${e} is not a File`);
|
|
2435
|
+
if (o !== void 0) {
|
|
2436
|
+
const l = yield o.getFile();
|
|
2437
|
+
return l.handle = o, xe(l);
|
|
2042
2438
|
}
|
|
2043
2439
|
}
|
|
2044
|
-
const
|
|
2045
|
-
if (!
|
|
2046
|
-
throw new Error(`${
|
|
2047
|
-
return
|
|
2440
|
+
const i = e.getAsFile();
|
|
2441
|
+
if (!i)
|
|
2442
|
+
throw new Error(`${e} is not a File`);
|
|
2443
|
+
return xe(i, (a = t == null ? void 0 : t.fullPath) !== null && a !== void 0 ? a : void 0);
|
|
2048
2444
|
});
|
|
2049
2445
|
}
|
|
2050
|
-
function
|
|
2051
|
-
return
|
|
2052
|
-
return
|
|
2446
|
+
function xo(e) {
|
|
2447
|
+
return ue(this, void 0, void 0, function* () {
|
|
2448
|
+
return e.isDirectory ? ga(e) : go(e);
|
|
2053
2449
|
});
|
|
2054
2450
|
}
|
|
2055
|
-
function
|
|
2056
|
-
const
|
|
2057
|
-
return new Promise((
|
|
2058
|
-
const
|
|
2059
|
-
function
|
|
2060
|
-
|
|
2061
|
-
if (
|
|
2062
|
-
const
|
|
2063
|
-
|
|
2451
|
+
function ga(e) {
|
|
2452
|
+
const t = e.createReader();
|
|
2453
|
+
return new Promise((a, i) => {
|
|
2454
|
+
const n = [];
|
|
2455
|
+
function o() {
|
|
2456
|
+
t.readEntries((l) => ue(this, void 0, void 0, function* () {
|
|
2457
|
+
if (l.length) {
|
|
2458
|
+
const p = Promise.all(l.map(xo));
|
|
2459
|
+
n.push(p), o();
|
|
2064
2460
|
} else
|
|
2065
2461
|
try {
|
|
2066
|
-
const
|
|
2067
|
-
|
|
2068
|
-
} catch (
|
|
2069
|
-
|
|
2462
|
+
const p = yield Promise.all(n);
|
|
2463
|
+
a(p);
|
|
2464
|
+
} catch (p) {
|
|
2465
|
+
i(p);
|
|
2070
2466
|
}
|
|
2071
|
-
}), (
|
|
2072
|
-
|
|
2467
|
+
}), (l) => {
|
|
2468
|
+
i(l);
|
|
2073
2469
|
});
|
|
2074
2470
|
}
|
|
2075
|
-
|
|
2471
|
+
o();
|
|
2076
2472
|
});
|
|
2077
2473
|
}
|
|
2078
|
-
function
|
|
2079
|
-
return
|
|
2080
|
-
return new Promise((
|
|
2081
|
-
|
|
2082
|
-
const
|
|
2083
|
-
|
|
2084
|
-
}, (
|
|
2085
|
-
i
|
|
2474
|
+
function go(e) {
|
|
2475
|
+
return ue(this, void 0, void 0, function* () {
|
|
2476
|
+
return new Promise((t, a) => {
|
|
2477
|
+
e.file((i) => {
|
|
2478
|
+
const n = xe(i, e.fullPath);
|
|
2479
|
+
t(n);
|
|
2480
|
+
}, (i) => {
|
|
2481
|
+
a(i);
|
|
2086
2482
|
});
|
|
2087
2483
|
});
|
|
2088
2484
|
});
|
|
2089
2485
|
}
|
|
2090
|
-
var
|
|
2091
|
-
function
|
|
2092
|
-
return
|
|
2093
|
-
if (
|
|
2094
|
-
var
|
|
2095
|
-
if (
|
|
2486
|
+
var Re = {}, Yt;
|
|
2487
|
+
function yo() {
|
|
2488
|
+
return Yt || (Yt = 1, Re.__esModule = !0, Re.default = function(e, t) {
|
|
2489
|
+
if (e && t) {
|
|
2490
|
+
var a = Array.isArray(t) ? t : t.split(",");
|
|
2491
|
+
if (a.length === 0)
|
|
2096
2492
|
return !0;
|
|
2097
|
-
var
|
|
2098
|
-
return
|
|
2099
|
-
var
|
|
2100
|
-
return
|
|
2493
|
+
var i = e.name || "", n = (e.type || "").toLowerCase(), o = n.replace(/\/.*$/, "");
|
|
2494
|
+
return a.some(function(l) {
|
|
2495
|
+
var p = l.trim().toLowerCase();
|
|
2496
|
+
return p.charAt(0) === "." ? i.toLowerCase().endsWith(p) : p.endsWith("/*") ? o === p.replace(/\/.*$/, "") : n === p;
|
|
2101
2497
|
});
|
|
2102
2498
|
}
|
|
2103
2499
|
return !0;
|
|
2104
|
-
}),
|
|
2500
|
+
}), Re;
|
|
2105
2501
|
}
|
|
2106
|
-
var
|
|
2107
|
-
const
|
|
2108
|
-
function
|
|
2109
|
-
return
|
|
2502
|
+
var ho = yo();
|
|
2503
|
+
const rt = /* @__PURE__ */ Qt(ho);
|
|
2504
|
+
function Bt(e) {
|
|
2505
|
+
return jo(e) || wo(e) || ha(e) || bo();
|
|
2110
2506
|
}
|
|
2111
|
-
function
|
|
2507
|
+
function bo() {
|
|
2112
2508
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2113
2509
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2114
2510
|
}
|
|
2115
|
-
function
|
|
2116
|
-
if (typeof Symbol < "u" &&
|
|
2511
|
+
function wo(e) {
|
|
2512
|
+
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
2117
2513
|
}
|
|
2118
|
-
function
|
|
2119
|
-
if (Array.isArray(
|
|
2514
|
+
function jo(e) {
|
|
2515
|
+
if (Array.isArray(e)) return lt(e);
|
|
2120
2516
|
}
|
|
2121
|
-
function
|
|
2122
|
-
var
|
|
2517
|
+
function Ht(e, t) {
|
|
2518
|
+
var a = Object.keys(e);
|
|
2123
2519
|
if (Object.getOwnPropertySymbols) {
|
|
2124
|
-
var
|
|
2125
|
-
|
|
2126
|
-
return Object.getOwnPropertyDescriptor(
|
|
2127
|
-
})),
|
|
2520
|
+
var i = Object.getOwnPropertySymbols(e);
|
|
2521
|
+
t && (i = i.filter(function(n) {
|
|
2522
|
+
return Object.getOwnPropertyDescriptor(e, n).enumerable;
|
|
2523
|
+
})), a.push.apply(a, i);
|
|
2128
2524
|
}
|
|
2129
|
-
return
|
|
2525
|
+
return a;
|
|
2130
2526
|
}
|
|
2131
|
-
function
|
|
2132
|
-
for (var
|
|
2133
|
-
var
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
2137
|
-
Object.defineProperty(
|
|
2527
|
+
function Gt(e) {
|
|
2528
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
2529
|
+
var a = arguments[t] != null ? arguments[t] : {};
|
|
2530
|
+
t % 2 ? Ht(Object(a), !0).forEach(function(i) {
|
|
2531
|
+
ya(e, i, a[i]);
|
|
2532
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : Ht(Object(a)).forEach(function(i) {
|
|
2533
|
+
Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(a, i));
|
|
2138
2534
|
});
|
|
2139
2535
|
}
|
|
2140
|
-
return
|
|
2536
|
+
return e;
|
|
2141
2537
|
}
|
|
2142
|
-
function
|
|
2143
|
-
return
|
|
2538
|
+
function ya(e, t, a) {
|
|
2539
|
+
return t in e ? Object.defineProperty(e, t, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = a, e;
|
|
2144
2540
|
}
|
|
2145
|
-
function
|
|
2146
|
-
return
|
|
2541
|
+
function ke(e, t) {
|
|
2542
|
+
return Eo(e) || ko(e, t) || ha(e, t) || _o();
|
|
2147
2543
|
}
|
|
2148
|
-
function
|
|
2544
|
+
function _o() {
|
|
2149
2545
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2150
2546
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2151
2547
|
}
|
|
2152
|
-
function
|
|
2153
|
-
if (
|
|
2154
|
-
if (typeof
|
|
2155
|
-
var
|
|
2156
|
-
if (
|
|
2157
|
-
if (
|
|
2548
|
+
function ha(e, t) {
|
|
2549
|
+
if (e) {
|
|
2550
|
+
if (typeof e == "string") return lt(e, t);
|
|
2551
|
+
var a = Object.prototype.toString.call(e).slice(8, -1);
|
|
2552
|
+
if (a === "Object" && e.constructor && (a = e.constructor.name), a === "Map" || a === "Set") return Array.from(e);
|
|
2553
|
+
if (a === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)) return lt(e, t);
|
|
2158
2554
|
}
|
|
2159
2555
|
}
|
|
2160
|
-
function
|
|
2161
|
-
(
|
|
2162
|
-
for (var
|
|
2163
|
-
|
|
2164
|
-
return
|
|
2556
|
+
function lt(e, t) {
|
|
2557
|
+
(t == null || t > e.length) && (t = e.length);
|
|
2558
|
+
for (var a = 0, i = new Array(t); a < t; a++)
|
|
2559
|
+
i[a] = e[a];
|
|
2560
|
+
return i;
|
|
2165
2561
|
}
|
|
2166
|
-
function
|
|
2167
|
-
var
|
|
2168
|
-
if (
|
|
2169
|
-
var
|
|
2562
|
+
function ko(e, t) {
|
|
2563
|
+
var a = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2564
|
+
if (a != null) {
|
|
2565
|
+
var i = [], n = !0, o = !1, l, p;
|
|
2170
2566
|
try {
|
|
2171
|
-
for (
|
|
2567
|
+
for (a = a.call(e); !(n = (l = a.next()).done) && (i.push(l.value), !(t && i.length === t)); n = !0)
|
|
2172
2568
|
;
|
|
2173
|
-
} catch (
|
|
2174
|
-
|
|
2569
|
+
} catch (v) {
|
|
2570
|
+
o = !0, p = v;
|
|
2175
2571
|
} finally {
|
|
2176
2572
|
try {
|
|
2177
|
-
!
|
|
2573
|
+
!n && a.return != null && a.return();
|
|
2178
2574
|
} finally {
|
|
2179
|
-
if (
|
|
2575
|
+
if (o) throw p;
|
|
2180
2576
|
}
|
|
2181
2577
|
}
|
|
2182
|
-
return
|
|
2578
|
+
return i;
|
|
2183
2579
|
}
|
|
2184
2580
|
}
|
|
2185
|
-
function
|
|
2186
|
-
if (Array.isArray(
|
|
2581
|
+
function Eo(e) {
|
|
2582
|
+
if (Array.isArray(e)) return e;
|
|
2187
2583
|
}
|
|
2188
|
-
var
|
|
2189
|
-
TooManyFiles:
|
|
2190
|
-
},
|
|
2191
|
-
var
|
|
2584
|
+
var To = typeof rt == "function" ? rt : rt.default, Oo = "file-invalid-type", Ao = "file-too-large", So = "file-too-small", ba = "too-many-files", vr = {
|
|
2585
|
+
TooManyFiles: ba
|
|
2586
|
+
}, Po = function() {
|
|
2587
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", a = t.split(","), i = a.length > 1 ? "one of ".concat(a.join(", ")) : a[0];
|
|
2192
2588
|
return {
|
|
2193
|
-
code:
|
|
2194
|
-
message: "File type must be ".concat(
|
|
2589
|
+
code: Oo,
|
|
2590
|
+
message: "File type must be ".concat(i)
|
|
2195
2591
|
};
|
|
2196
|
-
},
|
|
2592
|
+
}, Kt = function(t) {
|
|
2197
2593
|
return {
|
|
2198
|
-
code:
|
|
2199
|
-
message: "File is larger than ".concat(
|
|
2594
|
+
code: Ao,
|
|
2595
|
+
message: "File is larger than ".concat(t, " ").concat(t === 1 ? "byte" : "bytes")
|
|
2200
2596
|
};
|
|
2201
|
-
},
|
|
2597
|
+
}, Nt = function(t) {
|
|
2202
2598
|
return {
|
|
2203
|
-
code:
|
|
2204
|
-
message: "File is smaller than ".concat(
|
|
2599
|
+
code: So,
|
|
2600
|
+
message: "File is smaller than ".concat(t, " ").concat(t === 1 ? "byte" : "bytes")
|
|
2205
2601
|
};
|
|
2206
|
-
},
|
|
2207
|
-
code:
|
|
2602
|
+
}, Do = {
|
|
2603
|
+
code: ba,
|
|
2208
2604
|
message: "Too many files"
|
|
2209
2605
|
};
|
|
2210
|
-
function
|
|
2211
|
-
var
|
|
2212
|
-
return [
|
|
2213
|
-
}
|
|
2214
|
-
function
|
|
2215
|
-
if (
|
|
2216
|
-
if (
|
|
2217
|
-
if (
|
|
2218
|
-
if (
|
|
2606
|
+
function wa(e, t) {
|
|
2607
|
+
var a = e.type === "application/x-moz-file" || To(e, t);
|
|
2608
|
+
return [a, a ? null : Po(t)];
|
|
2609
|
+
}
|
|
2610
|
+
function ja(e, t, a) {
|
|
2611
|
+
if (se(e.size))
|
|
2612
|
+
if (se(t) && se(a)) {
|
|
2613
|
+
if (e.size > a) return [!1, Kt(a)];
|
|
2614
|
+
if (e.size < t) return [!1, Nt(t)];
|
|
2219
2615
|
} else {
|
|
2220
|
-
if (
|
|
2221
|
-
if (
|
|
2616
|
+
if (se(t) && e.size < t) return [!1, Nt(t)];
|
|
2617
|
+
if (se(a) && e.size > a) return [!1, Kt(a)];
|
|
2222
2618
|
}
|
|
2223
2619
|
return [!0, null];
|
|
2224
2620
|
}
|
|
2225
|
-
function
|
|
2226
|
-
return
|
|
2621
|
+
function se(e) {
|
|
2622
|
+
return e != null;
|
|
2227
2623
|
}
|
|
2228
|
-
function
|
|
2229
|
-
var
|
|
2230
|
-
return !
|
|
2231
|
-
var
|
|
2232
|
-
return
|
|
2624
|
+
function zo(e) {
|
|
2625
|
+
var t = e.files, a = e.accept, i = e.minSize, n = e.maxSize, o = e.multiple, l = e.maxFiles, p = e.validator;
|
|
2626
|
+
return !o && t.length > 1 || o && l >= 1 && t.length > l ? !1 : t.every(function(v) {
|
|
2627
|
+
var x = wa(v, a), y = ke(x, 1), j = y[0], D = ja(v, i, n), C = ke(D, 1), L = C[0], S = p ? p(v) : null;
|
|
2628
|
+
return j && L && !S;
|
|
2233
2629
|
});
|
|
2234
2630
|
}
|
|
2235
|
-
function
|
|
2236
|
-
return typeof
|
|
2631
|
+
function qe(e) {
|
|
2632
|
+
return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : typeof e.cancelBubble < "u" ? e.cancelBubble : !1;
|
|
2237
2633
|
}
|
|
2238
|
-
function
|
|
2239
|
-
return
|
|
2240
|
-
return
|
|
2241
|
-
}) : !!
|
|
2634
|
+
function Ie(e) {
|
|
2635
|
+
return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function(t) {
|
|
2636
|
+
return t === "Files" || t === "application/x-moz-file";
|
|
2637
|
+
}) : !!e.target && !!e.target.files;
|
|
2242
2638
|
}
|
|
2243
|
-
function
|
|
2244
|
-
|
|
2639
|
+
function Vt(e) {
|
|
2640
|
+
e.preventDefault();
|
|
2245
2641
|
}
|
|
2246
|
-
function
|
|
2247
|
-
return
|
|
2642
|
+
function Co(e) {
|
|
2643
|
+
return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
|
|
2248
2644
|
}
|
|
2249
|
-
function
|
|
2250
|
-
return
|
|
2645
|
+
function Ro(e) {
|
|
2646
|
+
return e.indexOf("Edge/") !== -1;
|
|
2251
2647
|
}
|
|
2252
|
-
function
|
|
2253
|
-
var
|
|
2254
|
-
return
|
|
2648
|
+
function Io() {
|
|
2649
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
2650
|
+
return Co(e) || Ro(e);
|
|
2255
2651
|
}
|
|
2256
|
-
function
|
|
2257
|
-
for (var
|
|
2258
|
-
|
|
2259
|
-
return function(
|
|
2260
|
-
for (var
|
|
2261
|
-
|
|
2262
|
-
return
|
|
2263
|
-
return !
|
|
2652
|
+
function Q() {
|
|
2653
|
+
for (var e = arguments.length, t = new Array(e), a = 0; a < e; a++)
|
|
2654
|
+
t[a] = arguments[a];
|
|
2655
|
+
return function(i) {
|
|
2656
|
+
for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), l = 1; l < n; l++)
|
|
2657
|
+
o[l - 1] = arguments[l];
|
|
2658
|
+
return t.some(function(p) {
|
|
2659
|
+
return !qe(i) && p && p.apply(void 0, [i].concat(o)), qe(i);
|
|
2264
2660
|
});
|
|
2265
2661
|
};
|
|
2266
2662
|
}
|
|
2267
|
-
function
|
|
2663
|
+
function Fo() {
|
|
2268
2664
|
return "showOpenFilePicker" in window;
|
|
2269
2665
|
}
|
|
2270
|
-
function
|
|
2271
|
-
if (
|
|
2272
|
-
var
|
|
2273
|
-
var
|
|
2274
|
-
return
|
|
2275
|
-
}).reduce(function(
|
|
2276
|
-
var
|
|
2277
|
-
return
|
|
2666
|
+
function $o(e) {
|
|
2667
|
+
if (se(e)) {
|
|
2668
|
+
var t = Object.entries(e).filter(function(a) {
|
|
2669
|
+
var i = ke(a, 2), n = i[0], o = i[1], l = !0;
|
|
2670
|
+
return _a(n) || (console.warn('Skipped "'.concat(n, '" 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.')), l = !1), (!Array.isArray(o) || !o.every(ka)) && (console.warn('Skipped "'.concat(n, '" because an invalid file extension was provided.')), l = !1), l;
|
|
2671
|
+
}).reduce(function(a, i) {
|
|
2672
|
+
var n = ke(i, 2), o = n[0], l = n[1];
|
|
2673
|
+
return Gt(Gt({}, a), {}, ya({}, o, l));
|
|
2278
2674
|
}, {});
|
|
2279
2675
|
return [{
|
|
2280
2676
|
// description is required due to https://crbug.com/1264708
|
|
2281
2677
|
description: "Files",
|
|
2282
|
-
accept:
|
|
2678
|
+
accept: t
|
|
2283
2679
|
}];
|
|
2284
2680
|
}
|
|
2285
|
-
return
|
|
2681
|
+
return e;
|
|
2286
2682
|
}
|
|
2287
|
-
function
|
|
2288
|
-
if (
|
|
2289
|
-
return Object.entries(
|
|
2290
|
-
var
|
|
2291
|
-
return [].concat(
|
|
2292
|
-
}, []).filter(function(
|
|
2293
|
-
return
|
|
2683
|
+
function qo(e) {
|
|
2684
|
+
if (se(e))
|
|
2685
|
+
return Object.entries(e).reduce(function(t, a) {
|
|
2686
|
+
var i = ke(a, 2), n = i[0], o = i[1];
|
|
2687
|
+
return [].concat(Bt(t), [n], Bt(o));
|
|
2688
|
+
}, []).filter(function(t) {
|
|
2689
|
+
return _a(t) || ka(t);
|
|
2294
2690
|
}).join(",");
|
|
2295
2691
|
}
|
|
2296
|
-
function
|
|
2297
|
-
return
|
|
2692
|
+
function Mo(e) {
|
|
2693
|
+
return e instanceof DOMException && (e.name === "AbortError" || e.code === e.ABORT_ERR);
|
|
2298
2694
|
}
|
|
2299
|
-
function
|
|
2300
|
-
return
|
|
2695
|
+
function Lo(e) {
|
|
2696
|
+
return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
|
|
2301
2697
|
}
|
|
2302
|
-
function
|
|
2303
|
-
return
|
|
2698
|
+
function _a(e) {
|
|
2699
|
+
return e === "audio/*" || e === "video/*" || e === "image/*" || e === "text/*" || e === "application/*" || /\w+\/[-+.\w]+/g.test(e);
|
|
2304
2700
|
}
|
|
2305
|
-
function
|
|
2306
|
-
return /^.*\.[\w]+$/.test(
|
|
2701
|
+
function ka(e) {
|
|
2702
|
+
return /^.*\.[\w]+$/.test(e);
|
|
2307
2703
|
}
|
|
2308
|
-
var
|
|
2309
|
-
function
|
|
2310
|
-
return
|
|
2704
|
+
var Uo = ["children"], Wo = ["open"], Yo = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], Bo = ["refKey", "onChange", "onClick"];
|
|
2705
|
+
function Ho(e) {
|
|
2706
|
+
return No(e) || Ko(e) || Ea(e) || Go();
|
|
2311
2707
|
}
|
|
2312
|
-
function
|
|
2708
|
+
function Go() {
|
|
2313
2709
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2314
2710
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2315
2711
|
}
|
|
2316
|
-
function
|
|
2317
|
-
if (typeof Symbol < "u" &&
|
|
2712
|
+
function Ko(e) {
|
|
2713
|
+
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
2318
2714
|
}
|
|
2319
|
-
function
|
|
2320
|
-
if (Array.isArray(
|
|
2715
|
+
function No(e) {
|
|
2716
|
+
if (Array.isArray(e)) return st(e);
|
|
2321
2717
|
}
|
|
2322
|
-
function
|
|
2323
|
-
return
|
|
2718
|
+
function pt(e, t) {
|
|
2719
|
+
return Jo(e) || Zo(e, t) || Ea(e, t) || Vo();
|
|
2324
2720
|
}
|
|
2325
|
-
function
|
|
2721
|
+
function Vo() {
|
|
2326
2722
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2327
2723
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2328
2724
|
}
|
|
2329
|
-
function
|
|
2330
|
-
if (
|
|
2331
|
-
if (typeof
|
|
2332
|
-
var
|
|
2333
|
-
if (
|
|
2334
|
-
if (
|
|
2725
|
+
function Ea(e, t) {
|
|
2726
|
+
if (e) {
|
|
2727
|
+
if (typeof e == "string") return st(e, t);
|
|
2728
|
+
var a = Object.prototype.toString.call(e).slice(8, -1);
|
|
2729
|
+
if (a === "Object" && e.constructor && (a = e.constructor.name), a === "Map" || a === "Set") return Array.from(e);
|
|
2730
|
+
if (a === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)) return st(e, t);
|
|
2335
2731
|
}
|
|
2336
2732
|
}
|
|
2337
|
-
function
|
|
2338
|
-
(
|
|
2339
|
-
for (var
|
|
2340
|
-
|
|
2341
|
-
return
|
|
2733
|
+
function st(e, t) {
|
|
2734
|
+
(t == null || t > e.length) && (t = e.length);
|
|
2735
|
+
for (var a = 0, i = new Array(t); a < t; a++)
|
|
2736
|
+
i[a] = e[a];
|
|
2737
|
+
return i;
|
|
2342
2738
|
}
|
|
2343
|
-
function
|
|
2344
|
-
var
|
|
2345
|
-
if (
|
|
2346
|
-
var
|
|
2739
|
+
function Zo(e, t) {
|
|
2740
|
+
var a = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2741
|
+
if (a != null) {
|
|
2742
|
+
var i = [], n = !0, o = !1, l, p;
|
|
2347
2743
|
try {
|
|
2348
|
-
for (
|
|
2744
|
+
for (a = a.call(e); !(n = (l = a.next()).done) && (i.push(l.value), !(t && i.length === t)); n = !0)
|
|
2349
2745
|
;
|
|
2350
|
-
} catch (
|
|
2351
|
-
|
|
2746
|
+
} catch (v) {
|
|
2747
|
+
o = !0, p = v;
|
|
2352
2748
|
} finally {
|
|
2353
2749
|
try {
|
|
2354
|
-
!
|
|
2750
|
+
!n && a.return != null && a.return();
|
|
2355
2751
|
} finally {
|
|
2356
|
-
if (
|
|
2752
|
+
if (o) throw p;
|
|
2357
2753
|
}
|
|
2358
2754
|
}
|
|
2359
|
-
return
|
|
2755
|
+
return i;
|
|
2360
2756
|
}
|
|
2361
2757
|
}
|
|
2362
|
-
function
|
|
2363
|
-
if (Array.isArray(
|
|
2758
|
+
function Jo(e) {
|
|
2759
|
+
if (Array.isArray(e)) return e;
|
|
2364
2760
|
}
|
|
2365
|
-
function
|
|
2366
|
-
var
|
|
2761
|
+
function Zt(e, t) {
|
|
2762
|
+
var a = Object.keys(e);
|
|
2367
2763
|
if (Object.getOwnPropertySymbols) {
|
|
2368
|
-
var
|
|
2369
|
-
|
|
2370
|
-
return Object.getOwnPropertyDescriptor(
|
|
2371
|
-
})),
|
|
2764
|
+
var i = Object.getOwnPropertySymbols(e);
|
|
2765
|
+
t && (i = i.filter(function(n) {
|
|
2766
|
+
return Object.getOwnPropertyDescriptor(e, n).enumerable;
|
|
2767
|
+
})), a.push.apply(a, i);
|
|
2372
2768
|
}
|
|
2373
|
-
return
|
|
2769
|
+
return a;
|
|
2374
2770
|
}
|
|
2375
|
-
function R(
|
|
2376
|
-
for (var
|
|
2377
|
-
var
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
2381
|
-
Object.defineProperty(
|
|
2771
|
+
function R(e) {
|
|
2772
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
2773
|
+
var a = arguments[t] != null ? arguments[t] : {};
|
|
2774
|
+
t % 2 ? Zt(Object(a), !0).forEach(function(i) {
|
|
2775
|
+
dt(e, i, a[i]);
|
|
2776
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : Zt(Object(a)).forEach(function(i) {
|
|
2777
|
+
Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(a, i));
|
|
2382
2778
|
});
|
|
2383
2779
|
}
|
|
2384
|
-
return
|
|
2780
|
+
return e;
|
|
2385
2781
|
}
|
|
2386
|
-
function
|
|
2387
|
-
return
|
|
2782
|
+
function dt(e, t, a) {
|
|
2783
|
+
return t in e ? Object.defineProperty(e, t, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = a, e;
|
|
2388
2784
|
}
|
|
2389
|
-
function
|
|
2390
|
-
if (
|
|
2391
|
-
var
|
|
2785
|
+
function Me(e, t) {
|
|
2786
|
+
if (e == null) return {};
|
|
2787
|
+
var a = Xo(e, t), i, n;
|
|
2392
2788
|
if (Object.getOwnPropertySymbols) {
|
|
2393
|
-
var
|
|
2394
|
-
for (
|
|
2395
|
-
|
|
2789
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
2790
|
+
for (n = 0; n < o.length; n++)
|
|
2791
|
+
i = o[n], !(t.indexOf(i) >= 0) && Object.prototype.propertyIsEnumerable.call(e, i) && (a[i] = e[i]);
|
|
2396
2792
|
}
|
|
2397
|
-
return
|
|
2793
|
+
return a;
|
|
2398
2794
|
}
|
|
2399
|
-
function
|
|
2400
|
-
if (
|
|
2401
|
-
var
|
|
2402
|
-
for (
|
|
2403
|
-
|
|
2404
|
-
return
|
|
2795
|
+
function Xo(e, t) {
|
|
2796
|
+
if (e == null) return {};
|
|
2797
|
+
var a = {}, i = Object.keys(e), n, o;
|
|
2798
|
+
for (o = 0; o < i.length; o++)
|
|
2799
|
+
n = i[o], !(t.indexOf(n) >= 0) && (a[n] = e[n]);
|
|
2800
|
+
return a;
|
|
2405
2801
|
}
|
|
2406
|
-
var
|
|
2407
|
-
var
|
|
2408
|
-
return
|
|
2802
|
+
var vt = /* @__PURE__ */ Ca(function(e, t) {
|
|
2803
|
+
var a = e.children, i = Me(e, Uo), n = Qo(i), o = n.open, l = Me(n, Wo);
|
|
2804
|
+
return Ra(t, function() {
|
|
2409
2805
|
return {
|
|
2410
|
-
open:
|
|
2806
|
+
open: o
|
|
2411
2807
|
};
|
|
2412
|
-
}, [
|
|
2413
|
-
open:
|
|
2808
|
+
}, [o]), /* @__PURE__ */ Da.createElement(Ia, null, a(R(R({}, l), {}, {
|
|
2809
|
+
open: o
|
|
2414
2810
|
})));
|
|
2415
2811
|
});
|
|
2416
|
-
|
|
2417
|
-
var
|
|
2812
|
+
vt.displayName = "Dropzone";
|
|
2813
|
+
var Ta = {
|
|
2418
2814
|
disabled: !1,
|
|
2419
|
-
getFilesFromEvent:
|
|
2815
|
+
getFilesFromEvent: co,
|
|
2420
2816
|
maxSize: 1 / 0,
|
|
2421
2817
|
minSize: 0,
|
|
2422
2818
|
multiple: !0,
|
|
@@ -2430,8 +2826,8 @@ var Fe = {
|
|
|
2430
2826
|
useFsAccessApi: !1,
|
|
2431
2827
|
autoFocus: !1
|
|
2432
2828
|
};
|
|
2433
|
-
|
|
2434
|
-
|
|
2829
|
+
vt.defaultProps = Ta;
|
|
2830
|
+
vt.propTypes = {
|
|
2435
2831
|
/**
|
|
2436
2832
|
* Render function that exposes the dropzone state and prop getter fns
|
|
2437
2833
|
*
|
|
@@ -2447,7 +2843,7 @@ Ja.propTypes = {
|
|
|
2447
2843
|
* @param {File[]} params.acceptedFiles Accepted files
|
|
2448
2844
|
* @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
|
|
2449
2845
|
*/
|
|
2450
|
-
children:
|
|
2846
|
+
children: P.func,
|
|
2451
2847
|
/**
|
|
2452
2848
|
* Set accepted file types.
|
|
2453
2849
|
* Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
|
|
@@ -2455,90 +2851,90 @@ Ja.propTypes = {
|
|
|
2455
2851
|
* for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
|
|
2456
2852
|
* Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
|
|
2457
2853
|
*/
|
|
2458
|
-
accept:
|
|
2854
|
+
accept: P.objectOf(P.arrayOf(P.string)),
|
|
2459
2855
|
/**
|
|
2460
2856
|
* Allow drag 'n' drop (or selection from the file dialog) of multiple files
|
|
2461
2857
|
*/
|
|
2462
|
-
multiple:
|
|
2858
|
+
multiple: P.bool,
|
|
2463
2859
|
/**
|
|
2464
2860
|
* If false, allow dropped items to take over the current browser window
|
|
2465
2861
|
*/
|
|
2466
|
-
preventDropOnDocument:
|
|
2862
|
+
preventDropOnDocument: P.bool,
|
|
2467
2863
|
/**
|
|
2468
2864
|
* If true, disables click to open the native file selection dialog
|
|
2469
2865
|
*/
|
|
2470
|
-
noClick:
|
|
2866
|
+
noClick: P.bool,
|
|
2471
2867
|
/**
|
|
2472
2868
|
* If true, disables SPACE/ENTER to open the native file selection dialog.
|
|
2473
2869
|
* Note that it also stops tracking the focus state.
|
|
2474
2870
|
*/
|
|
2475
|
-
noKeyboard:
|
|
2871
|
+
noKeyboard: P.bool,
|
|
2476
2872
|
/**
|
|
2477
2873
|
* If true, disables drag 'n' drop
|
|
2478
2874
|
*/
|
|
2479
|
-
noDrag:
|
|
2875
|
+
noDrag: P.bool,
|
|
2480
2876
|
/**
|
|
2481
2877
|
* If true, stops drag event propagation to parents
|
|
2482
2878
|
*/
|
|
2483
|
-
noDragEventsBubbling:
|
|
2879
|
+
noDragEventsBubbling: P.bool,
|
|
2484
2880
|
/**
|
|
2485
2881
|
* Minimum file size (in bytes)
|
|
2486
2882
|
*/
|
|
2487
|
-
minSize:
|
|
2883
|
+
minSize: P.number,
|
|
2488
2884
|
/**
|
|
2489
2885
|
* Maximum file size (in bytes)
|
|
2490
2886
|
*/
|
|
2491
|
-
maxSize:
|
|
2887
|
+
maxSize: P.number,
|
|
2492
2888
|
/**
|
|
2493
2889
|
* Maximum accepted number of files
|
|
2494
2890
|
* The default value is 0 which means there is no limitation to how many files are accepted.
|
|
2495
2891
|
*/
|
|
2496
|
-
maxFiles:
|
|
2892
|
+
maxFiles: P.number,
|
|
2497
2893
|
/**
|
|
2498
2894
|
* Enable/disable the dropzone
|
|
2499
2895
|
*/
|
|
2500
|
-
disabled:
|
|
2896
|
+
disabled: P.bool,
|
|
2501
2897
|
/**
|
|
2502
2898
|
* Use this to provide a custom file aggregator
|
|
2503
2899
|
*
|
|
2504
2900
|
* @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
|
|
2505
2901
|
*/
|
|
2506
|
-
getFilesFromEvent:
|
|
2902
|
+
getFilesFromEvent: P.func,
|
|
2507
2903
|
/**
|
|
2508
2904
|
* Cb for when closing the file dialog with no selection
|
|
2509
2905
|
*/
|
|
2510
|
-
onFileDialogCancel:
|
|
2906
|
+
onFileDialogCancel: P.func,
|
|
2511
2907
|
/**
|
|
2512
2908
|
* Cb for when opening the file dialog
|
|
2513
2909
|
*/
|
|
2514
|
-
onFileDialogOpen:
|
|
2910
|
+
onFileDialogOpen: P.func,
|
|
2515
2911
|
/**
|
|
2516
2912
|
* Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
|
|
2517
2913
|
* to open the file picker instead of using an `<input type="file">` click event.
|
|
2518
2914
|
*/
|
|
2519
|
-
useFsAccessApi:
|
|
2915
|
+
useFsAccessApi: P.bool,
|
|
2520
2916
|
/**
|
|
2521
2917
|
* Set to true to focus the root element on render
|
|
2522
2918
|
*/
|
|
2523
|
-
autoFocus:
|
|
2919
|
+
autoFocus: P.bool,
|
|
2524
2920
|
/**
|
|
2525
2921
|
* Cb for when the `dragenter` event occurs.
|
|
2526
2922
|
*
|
|
2527
2923
|
* @param {DragEvent} event
|
|
2528
2924
|
*/
|
|
2529
|
-
onDragEnter:
|
|
2925
|
+
onDragEnter: P.func,
|
|
2530
2926
|
/**
|
|
2531
2927
|
* Cb for when the `dragleave` event occurs
|
|
2532
2928
|
*
|
|
2533
2929
|
* @param {DragEvent} event
|
|
2534
2930
|
*/
|
|
2535
|
-
onDragLeave:
|
|
2931
|
+
onDragLeave: P.func,
|
|
2536
2932
|
/**
|
|
2537
2933
|
* Cb for when the `dragover` event occurs
|
|
2538
2934
|
*
|
|
2539
2935
|
* @param {DragEvent} event
|
|
2540
2936
|
*/
|
|
2541
|
-
onDragOver:
|
|
2937
|
+
onDragOver: P.func,
|
|
2542
2938
|
/**
|
|
2543
2939
|
* Cb for when the `drop` event occurs.
|
|
2544
2940
|
* Note that this callback is invoked after the `getFilesFromEvent` callback is done.
|
|
@@ -2569,7 +2965,7 @@ Ja.propTypes = {
|
|
|
2569
2965
|
* @param {FileRejection[]} fileRejections
|
|
2570
2966
|
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
|
2571
2967
|
*/
|
|
2572
|
-
onDrop:
|
|
2968
|
+
onDrop: P.func,
|
|
2573
2969
|
/**
|
|
2574
2970
|
* Cb for when the `drop` event occurs.
|
|
2575
2971
|
* Note that if no files are accepted, this callback is not invoked.
|
|
@@ -2577,7 +2973,7 @@ Ja.propTypes = {
|
|
|
2577
2973
|
* @param {File[]} files
|
|
2578
2974
|
* @param {(DragEvent|Event)} event
|
|
2579
2975
|
*/
|
|
2580
|
-
onDropAccepted:
|
|
2976
|
+
onDropAccepted: P.func,
|
|
2581
2977
|
/**
|
|
2582
2978
|
* Cb for when the `drop` event occurs.
|
|
2583
2979
|
* Note that if no files are rejected, this callback is not invoked.
|
|
@@ -2585,21 +2981,21 @@ Ja.propTypes = {
|
|
|
2585
2981
|
* @param {FileRejection[]} fileRejections
|
|
2586
2982
|
* @param {(DragEvent|Event)} event
|
|
2587
2983
|
*/
|
|
2588
|
-
onDropRejected:
|
|
2984
|
+
onDropRejected: P.func,
|
|
2589
2985
|
/**
|
|
2590
2986
|
* Cb for when there's some error from any of the promises.
|
|
2591
2987
|
*
|
|
2592
2988
|
* @param {Error} error
|
|
2593
2989
|
*/
|
|
2594
|
-
onError:
|
|
2990
|
+
onError: P.func,
|
|
2595
2991
|
/**
|
|
2596
2992
|
* Custom validation function. It must return null if there's no errors.
|
|
2597
2993
|
* @param {File} file
|
|
2598
2994
|
* @returns {FileError|FileError[]|null}
|
|
2599
2995
|
*/
|
|
2600
|
-
validator:
|
|
2996
|
+
validator: P.func
|
|
2601
2997
|
};
|
|
2602
|
-
var
|
|
2998
|
+
var ut = {
|
|
2603
2999
|
isFocused: !1,
|
|
2604
3000
|
isFileDialogActive: !1,
|
|
2605
3001
|
isDragActive: !1,
|
|
@@ -2608,188 +3004,188 @@ var Va = {
|
|
|
2608
3004
|
acceptedFiles: [],
|
|
2609
3005
|
fileRejections: []
|
|
2610
3006
|
};
|
|
2611
|
-
function
|
|
2612
|
-
var
|
|
2613
|
-
return
|
|
2614
|
-
}, [
|
|
2615
|
-
return
|
|
2616
|
-
}, [
|
|
2617
|
-
return typeof q == "function" ? q :
|
|
2618
|
-
}, [q]),
|
|
2619
|
-
return typeof
|
|
2620
|
-
}, [
|
|
2621
|
-
!
|
|
2622
|
-
if (
|
|
2623
|
-
var
|
|
2624
|
-
|
|
3007
|
+
function Qo() {
|
|
3008
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = R(R({}, Ta), e), a = t.accept, i = t.disabled, n = t.getFilesFromEvent, o = t.maxSize, l = t.minSize, p = t.multiple, v = t.maxFiles, x = t.onDragEnter, y = t.onDragLeave, j = t.onDragOver, D = t.onDrop, C = t.onDropAccepted, L = t.onDropRejected, S = t.onFileDialogCancel, q = t.onFileDialogOpen, H = t.useFsAccessApi, ie = t.autoFocus, F = t.preventDropOnDocument, $ = t.noClick, d = t.noKeyboard, J = t.noDrag, Z = t.noDragEventsBubbling, re = t.onError, ee = t.validator, te = ve(function() {
|
|
3009
|
+
return qo(a);
|
|
3010
|
+
}, [a]), pe = ve(function() {
|
|
3011
|
+
return $o(a);
|
|
3012
|
+
}, [a]), ce = ve(function() {
|
|
3013
|
+
return typeof q == "function" ? q : Jt;
|
|
3014
|
+
}, [q]), ne = ve(function() {
|
|
3015
|
+
return typeof S == "function" ? S : Jt;
|
|
3016
|
+
}, [S]), I = De(null), B = De(null), N = za(er, ut), X = pt(N, 2), oe = X[0], Y = X[1], r = oe.isFocused, u = oe.isFileDialogActive, h = De(typeof window < "u" && window.isSecureContext && H && Fo()), b = function() {
|
|
3017
|
+
!h.current && u && setTimeout(function() {
|
|
3018
|
+
if (B.current) {
|
|
3019
|
+
var f = B.current.files;
|
|
3020
|
+
f.length || (Y({
|
|
2625
3021
|
type: "closeDialog"
|
|
2626
|
-
}),
|
|
3022
|
+
}), ne());
|
|
2627
3023
|
}
|
|
2628
3024
|
}, 300);
|
|
2629
3025
|
};
|
|
2630
|
-
|
|
3026
|
+
Je(function() {
|
|
2631
3027
|
return window.addEventListener("focus", b, !1), function() {
|
|
2632
3028
|
window.removeEventListener("focus", b, !1);
|
|
2633
3029
|
};
|
|
2634
|
-
}, [
|
|
2635
|
-
var
|
|
2636
|
-
|
|
3030
|
+
}, [B, u, ne, h]);
|
|
3031
|
+
var m = De([]), k = function(f) {
|
|
3032
|
+
I.current && I.current.contains(f.target) || (f.preventDefault(), m.current = []);
|
|
2637
3033
|
};
|
|
2638
|
-
|
|
2639
|
-
return F && (document.addEventListener("dragover",
|
|
2640
|
-
F && (document.removeEventListener("dragover",
|
|
3034
|
+
Je(function() {
|
|
3035
|
+
return F && (document.addEventListener("dragover", Vt, !1), document.addEventListener("drop", k, !1)), function() {
|
|
3036
|
+
F && (document.removeEventListener("dragover", Vt), document.removeEventListener("drop", k));
|
|
2641
3037
|
};
|
|
2642
|
-
}, [
|
|
2643
|
-
return !
|
|
3038
|
+
}, [I, F]), Je(function() {
|
|
3039
|
+
return !i && ie && I.current && I.current.focus(), function() {
|
|
2644
3040
|
};
|
|
2645
|
-
}, [
|
|
2646
|
-
var
|
|
2647
|
-
|
|
2648
|
-
}, [
|
|
2649
|
-
|
|
2650
|
-
if (!(
|
|
2651
|
-
var M =
|
|
2652
|
-
files:
|
|
2653
|
-
accept:
|
|
2654
|
-
minSize:
|
|
2655
|
-
maxSize:
|
|
2656
|
-
multiple:
|
|
2657
|
-
maxFiles:
|
|
2658
|
-
validator:
|
|
2659
|
-
}),
|
|
3041
|
+
}, [I, ie, i]);
|
|
3042
|
+
var g = V(function(s) {
|
|
3043
|
+
re ? re(s) : console.error(s);
|
|
3044
|
+
}, [re]), w = V(function(s) {
|
|
3045
|
+
s.preventDefault(), s.persist(), Se(s), m.current = [].concat(Ho(m.current), [s.target]), Ie(s) && Promise.resolve(n(s)).then(function(f) {
|
|
3046
|
+
if (!(qe(s) && !Z)) {
|
|
3047
|
+
var M = f.length, W = M > 0 && zo({
|
|
3048
|
+
files: f,
|
|
3049
|
+
accept: te,
|
|
3050
|
+
minSize: l,
|
|
3051
|
+
maxSize: o,
|
|
3052
|
+
multiple: p,
|
|
3053
|
+
maxFiles: v,
|
|
3054
|
+
validator: ee
|
|
3055
|
+
}), K = M > 0 && !W;
|
|
2660
3056
|
Y({
|
|
2661
3057
|
isDragAccept: W,
|
|
2662
|
-
isDragReject:
|
|
3058
|
+
isDragReject: K,
|
|
2663
3059
|
isDragActive: !0,
|
|
2664
3060
|
type: "setDraggedFiles"
|
|
2665
|
-
}),
|
|
3061
|
+
}), x && x(s);
|
|
2666
3062
|
}
|
|
2667
|
-
}).catch(function(
|
|
2668
|
-
return
|
|
3063
|
+
}).catch(function(f) {
|
|
3064
|
+
return g(f);
|
|
2669
3065
|
});
|
|
2670
|
-
}, [
|
|
2671
|
-
|
|
2672
|
-
var
|
|
2673
|
-
if (
|
|
3066
|
+
}, [n, x, g, Z, te, l, o, p, v, ee]), E = V(function(s) {
|
|
3067
|
+
s.preventDefault(), s.persist(), Se(s);
|
|
3068
|
+
var f = Ie(s);
|
|
3069
|
+
if (f && s.dataTransfer)
|
|
2674
3070
|
try {
|
|
2675
|
-
|
|
3071
|
+
s.dataTransfer.dropEffect = "copy";
|
|
2676
3072
|
} catch {
|
|
2677
3073
|
}
|
|
2678
|
-
return
|
|
2679
|
-
}, [
|
|
2680
|
-
|
|
2681
|
-
var
|
|
2682
|
-
return
|
|
2683
|
-
}), M =
|
|
2684
|
-
M !== -1 &&
|
|
3074
|
+
return f && j && j(s), !1;
|
|
3075
|
+
}, [j, Z]), T = V(function(s) {
|
|
3076
|
+
s.preventDefault(), s.persist(), Se(s);
|
|
3077
|
+
var f = m.current.filter(function(W) {
|
|
3078
|
+
return I.current && I.current.contains(W);
|
|
3079
|
+
}), M = f.indexOf(s.target);
|
|
3080
|
+
M !== -1 && f.splice(M, 1), m.current = f, !(f.length > 0) && (Y({
|
|
2685
3081
|
type: "setDraggedFiles",
|
|
2686
3082
|
isDragActive: !1,
|
|
2687
3083
|
isDragAccept: !1,
|
|
2688
3084
|
isDragReject: !1
|
|
2689
|
-
}),
|
|
2690
|
-
}, [
|
|
3085
|
+
}), Ie(s) && y && y(s));
|
|
3086
|
+
}, [I, y, Z]), _ = V(function(s, f) {
|
|
2691
3087
|
var M = [], W = [];
|
|
2692
|
-
|
|
2693
|
-
var
|
|
2694
|
-
if (
|
|
2695
|
-
M.push(
|
|
3088
|
+
s.forEach(function(K) {
|
|
3089
|
+
var be = wa(K, te), me = pt(be, 2), Be = me[0], He = me[1], Ge = ja(K, l, o), Pe = pt(Ge, 2), Ke = Pe[0], Ne = Pe[1], Ve = ee ? ee(K) : null;
|
|
3090
|
+
if (Be && Ke && !Ve)
|
|
3091
|
+
M.push(K);
|
|
2696
3092
|
else {
|
|
2697
|
-
var
|
|
2698
|
-
|
|
2699
|
-
file:
|
|
2700
|
-
errors:
|
|
2701
|
-
return
|
|
3093
|
+
var Ze = [He, Ne];
|
|
3094
|
+
Ve && (Ze = Ze.concat(Ve)), W.push({
|
|
3095
|
+
file: K,
|
|
3096
|
+
errors: Ze.filter(function(Pa) {
|
|
3097
|
+
return Pa;
|
|
2702
3098
|
})
|
|
2703
3099
|
});
|
|
2704
3100
|
}
|
|
2705
|
-
}), (!
|
|
3101
|
+
}), (!p && M.length > 1 || p && v >= 1 && M.length > v) && (M.forEach(function(K) {
|
|
2706
3102
|
W.push({
|
|
2707
|
-
file:
|
|
2708
|
-
errors: [
|
|
3103
|
+
file: K,
|
|
3104
|
+
errors: [Do]
|
|
2709
3105
|
});
|
|
2710
3106
|
}), M.splice(0)), Y({
|
|
2711
3107
|
acceptedFiles: M,
|
|
2712
3108
|
fileRejections: W,
|
|
2713
3109
|
isDragReject: W.length > 0,
|
|
2714
3110
|
type: "setFiles"
|
|
2715
|
-
}),
|
|
2716
|
-
}, [Y,
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
}).catch(function(
|
|
2720
|
-
return
|
|
3111
|
+
}), D && D(M, W, f), W.length > 0 && L && L(W, f), M.length > 0 && C && C(M, f);
|
|
3112
|
+
}, [Y, p, te, l, o, v, D, C, L, ee]), U = V(function(s) {
|
|
3113
|
+
s.preventDefault(), s.persist(), Se(s), m.current = [], Ie(s) && Promise.resolve(n(s)).then(function(f) {
|
|
3114
|
+
qe(s) && !Z || _(f, s);
|
|
3115
|
+
}).catch(function(f) {
|
|
3116
|
+
return g(f);
|
|
2721
3117
|
}), Y({
|
|
2722
3118
|
type: "reset"
|
|
2723
3119
|
});
|
|
2724
|
-
}, [
|
|
2725
|
-
if (
|
|
3120
|
+
}, [n, _, g, Z]), c = V(function() {
|
|
3121
|
+
if (h.current) {
|
|
2726
3122
|
Y({
|
|
2727
3123
|
type: "openDialog"
|
|
2728
|
-
}),
|
|
2729
|
-
var
|
|
2730
|
-
multiple:
|
|
2731
|
-
types:
|
|
3124
|
+
}), ce();
|
|
3125
|
+
var s = {
|
|
3126
|
+
multiple: p,
|
|
3127
|
+
types: pe
|
|
2732
3128
|
};
|
|
2733
|
-
window.showOpenFilePicker(
|
|
2734
|
-
return
|
|
2735
|
-
}).then(function(
|
|
2736
|
-
|
|
3129
|
+
window.showOpenFilePicker(s).then(function(f) {
|
|
3130
|
+
return n(f);
|
|
3131
|
+
}).then(function(f) {
|
|
3132
|
+
_(f, null), Y({
|
|
2737
3133
|
type: "closeDialog"
|
|
2738
3134
|
});
|
|
2739
|
-
}).catch(function(
|
|
2740
|
-
|
|
3135
|
+
}).catch(function(f) {
|
|
3136
|
+
Mo(f) ? (ne(f), Y({
|
|
2741
3137
|
type: "closeDialog"
|
|
2742
|
-
})) :
|
|
3138
|
+
})) : Lo(f) ? (h.current = !1, B.current ? (B.current.value = null, B.current.click()) : g(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."))) : g(f);
|
|
2743
3139
|
});
|
|
2744
3140
|
return;
|
|
2745
3141
|
}
|
|
2746
|
-
|
|
3142
|
+
B.current && (Y({
|
|
2747
3143
|
type: "openDialog"
|
|
2748
|
-
}),
|
|
2749
|
-
}, [Y,
|
|
2750
|
-
!
|
|
2751
|
-
}, [
|
|
3144
|
+
}), ce(), B.current.value = null, B.current.click());
|
|
3145
|
+
}, [Y, ce, ne, H, _, g, pe, p]), G = V(function(s) {
|
|
3146
|
+
!I.current || !I.current.isEqualNode(s.target) || (s.key === " " || s.key === "Enter" || s.keyCode === 32 || s.keyCode === 13) && (s.preventDefault(), c());
|
|
3147
|
+
}, [I, c]), le = V(function() {
|
|
2752
3148
|
Y({
|
|
2753
3149
|
type: "focus"
|
|
2754
3150
|
});
|
|
2755
|
-
}, []),
|
|
3151
|
+
}, []), he = V(function() {
|
|
2756
3152
|
Y({
|
|
2757
3153
|
type: "blur"
|
|
2758
3154
|
});
|
|
2759
|
-
}, []),
|
|
2760
|
-
|
|
2761
|
-
}, [
|
|
2762
|
-
return
|
|
2763
|
-
},
|
|
2764
|
-
return
|
|
2765
|
-
},
|
|
2766
|
-
return
|
|
2767
|
-
},
|
|
2768
|
-
|
|
2769
|
-
},
|
|
3155
|
+
}, []), xt = V(function() {
|
|
3156
|
+
$ || (Io() ? setTimeout(c, 0) : c());
|
|
3157
|
+
}, [$, c]), fe = function(f) {
|
|
3158
|
+
return i ? null : f;
|
|
3159
|
+
}, Ye = function(f) {
|
|
3160
|
+
return d ? null : fe(f);
|
|
3161
|
+
}, Ae = function(f) {
|
|
3162
|
+
return J ? null : fe(f);
|
|
3163
|
+
}, Se = function(f) {
|
|
3164
|
+
Z && f.stopPropagation();
|
|
3165
|
+
}, Oa = ve(function() {
|
|
2770
3166
|
return function() {
|
|
2771
|
-
var
|
|
2772
|
-
return R(R(
|
|
2773
|
-
onKeyDown:
|
|
2774
|
-
onFocus:
|
|
2775
|
-
onBlur:
|
|
2776
|
-
onClick:
|
|
2777
|
-
onDragEnter:
|
|
2778
|
-
onDragOver:
|
|
2779
|
-
onDragLeave:
|
|
2780
|
-
onDrop:
|
|
3167
|
+
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, f = s.refKey, M = f === void 0 ? "ref" : f, W = s.role, K = s.onKeyDown, be = s.onFocus, me = s.onBlur, Be = s.onClick, He = s.onDragEnter, Ge = s.onDragOver, Pe = s.onDragLeave, Ke = s.onDrop, Ne = Me(s, Yo);
|
|
3168
|
+
return R(R(dt({
|
|
3169
|
+
onKeyDown: Ye(Q(K, G)),
|
|
3170
|
+
onFocus: Ye(Q(be, le)),
|
|
3171
|
+
onBlur: Ye(Q(me, he)),
|
|
3172
|
+
onClick: fe(Q(Be, xt)),
|
|
3173
|
+
onDragEnter: Ae(Q(He, w)),
|
|
3174
|
+
onDragOver: Ae(Q(Ge, E)),
|
|
3175
|
+
onDragLeave: Ae(Q(Pe, T)),
|
|
3176
|
+
onDrop: Ae(Q(Ke, U)),
|
|
2781
3177
|
role: typeof W == "string" && W !== "" ? W : "presentation"
|
|
2782
|
-
}, M,
|
|
3178
|
+
}, M, I), !i && !d ? {
|
|
2783
3179
|
tabIndex: 0
|
|
2784
|
-
} : {}),
|
|
3180
|
+
} : {}), Ne);
|
|
2785
3181
|
};
|
|
2786
|
-
}, [
|
|
2787
|
-
|
|
2788
|
-
}, []),
|
|
3182
|
+
}, [I, G, le, he, xt, w, E, T, U, d, J, i]), Aa = V(function(s) {
|
|
3183
|
+
s.stopPropagation();
|
|
3184
|
+
}, []), Sa = ve(function() {
|
|
2789
3185
|
return function() {
|
|
2790
|
-
var
|
|
2791
|
-
accept:
|
|
2792
|
-
multiple:
|
|
3186
|
+
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, f = s.refKey, M = f === void 0 ? "ref" : f, W = s.onChange, K = s.onClick, be = Me(s, Bo), me = dt({
|
|
3187
|
+
accept: te,
|
|
3188
|
+
multiple: p,
|
|
2793
3189
|
type: "file",
|
|
2794
3190
|
style: {
|
|
2795
3191
|
border: 0,
|
|
@@ -2803,71 +3199,106 @@ function Ni() {
|
|
|
2803
3199
|
width: "1px",
|
|
2804
3200
|
whiteSpace: "nowrap"
|
|
2805
3201
|
},
|
|
2806
|
-
onChange:
|
|
2807
|
-
onClick:
|
|
3202
|
+
onChange: fe(Q(W, U)),
|
|
3203
|
+
onClick: fe(Q(K, Aa)),
|
|
2808
3204
|
tabIndex: -1
|
|
2809
|
-
}, M,
|
|
2810
|
-
return R(R({},
|
|
3205
|
+
}, M, B);
|
|
3206
|
+
return R(R({}, me), be);
|
|
2811
3207
|
};
|
|
2812
|
-
}, [
|
|
2813
|
-
return R(R({},
|
|
2814
|
-
isFocused:
|
|
2815
|
-
getRootProps:
|
|
2816
|
-
getInputProps:
|
|
2817
|
-
rootRef:
|
|
2818
|
-
inputRef:
|
|
2819
|
-
open:
|
|
3208
|
+
}, [B, a, p, U, i]);
|
|
3209
|
+
return R(R({}, oe), {}, {
|
|
3210
|
+
isFocused: r && !i,
|
|
3211
|
+
getRootProps: Oa,
|
|
3212
|
+
getInputProps: Sa,
|
|
3213
|
+
rootRef: I,
|
|
3214
|
+
inputRef: B,
|
|
3215
|
+
open: fe(c)
|
|
2820
3216
|
});
|
|
2821
3217
|
}
|
|
2822
|
-
function
|
|
2823
|
-
switch (
|
|
3218
|
+
function er(e, t) {
|
|
3219
|
+
switch (t.type) {
|
|
2824
3220
|
case "focus":
|
|
2825
|
-
return R(R({},
|
|
3221
|
+
return R(R({}, e), {}, {
|
|
2826
3222
|
isFocused: !0
|
|
2827
3223
|
});
|
|
2828
3224
|
case "blur":
|
|
2829
|
-
return R(R({},
|
|
3225
|
+
return R(R({}, e), {}, {
|
|
2830
3226
|
isFocused: !1
|
|
2831
3227
|
});
|
|
2832
3228
|
case "openDialog":
|
|
2833
|
-
return R(R({},
|
|
3229
|
+
return R(R({}, ut), {}, {
|
|
2834
3230
|
isFileDialogActive: !0
|
|
2835
3231
|
});
|
|
2836
3232
|
case "closeDialog":
|
|
2837
|
-
return R(R({},
|
|
3233
|
+
return R(R({}, e), {}, {
|
|
2838
3234
|
isFileDialogActive: !1
|
|
2839
3235
|
});
|
|
2840
3236
|
case "setDraggedFiles":
|
|
2841
|
-
return R(R({},
|
|
2842
|
-
isDragActive:
|
|
2843
|
-
isDragAccept:
|
|
2844
|
-
isDragReject:
|
|
3237
|
+
return R(R({}, e), {}, {
|
|
3238
|
+
isDragActive: t.isDragActive,
|
|
3239
|
+
isDragAccept: t.isDragAccept,
|
|
3240
|
+
isDragReject: t.isDragReject
|
|
2845
3241
|
});
|
|
2846
3242
|
case "setFiles":
|
|
2847
|
-
return R(R({},
|
|
2848
|
-
acceptedFiles:
|
|
2849
|
-
fileRejections:
|
|
2850
|
-
isDragReject:
|
|
3243
|
+
return R(R({}, e), {}, {
|
|
3244
|
+
acceptedFiles: t.acceptedFiles,
|
|
3245
|
+
fileRejections: t.fileRejections,
|
|
3246
|
+
isDragReject: t.isDragReject
|
|
2851
3247
|
});
|
|
2852
3248
|
case "reset":
|
|
2853
|
-
return R({},
|
|
3249
|
+
return R({}, ut);
|
|
2854
3250
|
default:
|
|
2855
|
-
return
|
|
3251
|
+
return e;
|
|
2856
3252
|
}
|
|
2857
3253
|
}
|
|
2858
|
-
function
|
|
3254
|
+
function Jt() {
|
|
2859
3255
|
}
|
|
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";
|
|
2861
3256
|
export {
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
3257
|
+
rr as A,
|
|
3258
|
+
Qt as B,
|
|
3259
|
+
Ka as C,
|
|
3260
|
+
ua as D,
|
|
3261
|
+
vr as E,
|
|
3262
|
+
Ln as F,
|
|
3263
|
+
aa as G,
|
|
3264
|
+
ft as H,
|
|
3265
|
+
Ee as I,
|
|
3266
|
+
gi as J,
|
|
3267
|
+
Nn as K,
|
|
3268
|
+
Fe as L,
|
|
3269
|
+
ra as M,
|
|
3270
|
+
In as N,
|
|
3271
|
+
_t as O,
|
|
3272
|
+
P,
|
|
3273
|
+
Ni as Q,
|
|
3274
|
+
ye as R,
|
|
3275
|
+
Oe as S,
|
|
3276
|
+
ma as T,
|
|
3277
|
+
or as U,
|
|
3278
|
+
Xt as a,
|
|
3279
|
+
ir as b,
|
|
3280
|
+
mr as c,
|
|
3281
|
+
Ue as d,
|
|
3282
|
+
ht as e,
|
|
3283
|
+
Wn as f,
|
|
3284
|
+
cn as g,
|
|
3285
|
+
na as h,
|
|
3286
|
+
nr as i,
|
|
3287
|
+
ge as j,
|
|
3288
|
+
pa as k,
|
|
3289
|
+
Te as l,
|
|
3290
|
+
cr as m,
|
|
3291
|
+
lr as n,
|
|
3292
|
+
on as o,
|
|
3293
|
+
$n as p,
|
|
3294
|
+
en as q,
|
|
3295
|
+
ar as r,
|
|
3296
|
+
dr as s,
|
|
3297
|
+
sr as t,
|
|
3298
|
+
Qo as u,
|
|
3299
|
+
ur as v,
|
|
3300
|
+
pr as w,
|
|
3301
|
+
Qi as x,
|
|
3302
|
+
oa as y,
|
|
3303
|
+
fr as z
|
|
2873
3304
|
};
|