@abyss-project/commons-front-core 11.0.0 → 11.1.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/README.md +15 -0
- package/catalog/catalog-entries.ts +2 -0
- package/catalog/pages/MarkdownEditor.tsx +48 -0
- package/catalog/pages/PdfEditor.tsx +153 -0
- package/catalog/pages/index.ts +4 -0
- package/catalog/specs/responsive.spec.ts +5 -1
- package/dist/AbyssCloud-IuD91X6C.js +2949 -0
- package/dist/{AbyssCookieConsentProvider-C3NZfWxR.js → AbyssCookieConsentProvider-PchfQjs2.js} +2038 -1407
- package/dist/{CookieConsentSettings.component-Dvbp3MIX.js → CookieConsentSettings.component-D8G0H6Wl.js} +1 -1
- package/dist/Tabs-CZQ1JYlW.js +2315 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/components/editors/MarkdownEditor/MarkdownEditor.d.ts +19 -0
- package/dist/components/editors/MarkdownEditor/crepe-labels.d.ts +17 -0
- package/dist/components/editors/MarkdownEditor/index.d.ts +2 -0
- package/dist/components/editors/MarkdownEditor/markdown-theme.d.ts +7 -0
- package/dist/components/editors/PdfEditor/PdfEditor.d.ts +9 -0
- package/dist/components/editors/PdfEditor/engine/open-pdf-document.d.ts +8 -0
- package/dist/components/editors/PdfEditor/engine/operations/reducer.spec.d.ts +1 -0
- package/dist/components/editors/PdfEditor/engine/operations/rotate-coords.spec.d.ts +1 -0
- package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/types.d.ts +1 -2
- package/dist/components/editors/PdfEditor/index.d.ts +3 -0
- package/dist/components/editors/PdfEditor/pdf-colors.d.ts +26 -0
- package/dist/components/editors/PdfEditor/pdf-colors.spec.d.ts +1 -0
- package/dist/components/editors/PdfEditor/signature/SignatureDrawPad.d.ts +15 -0
- package/dist/components/editors/PdfEditor/signature/SignaturePicker.d.ts +31 -0
- package/dist/components/editors/PdfEditor/signature/SignaturePicker.spec.d.ts +1 -0
- package/dist/components/editors/PdfEditor/signature/SignatureSaveButton.d.ts +14 -0
- package/dist/components/editors/PdfEditor/signature/SignatureSavedList.d.ts +19 -0
- package/dist/components/editors/PdfEditor/signature/SignatureUploadPanel.d.ts +14 -0
- package/dist/components/editors/PdfEditor/signature/resolve-asset.d.ts +19 -0
- package/dist/components/editors/PdfEditor/signature/resolve-asset.spec.d.ts +1 -0
- package/dist/components/editors/PdfEditor/signature/test-support/pdf-editor-test-harness.d.ts +28 -0
- package/dist/components/editors/PdfEditor/toolbar/EraserIcon.d.ts +3 -0
- package/dist/components/editors/PdfEditor/toolbar/GroupPanel.d.ts +17 -0
- package/dist/components/editors/PdfEditor/toolbar/PanelRow.d.ts +14 -0
- package/dist/components/editors/PdfEditor/toolbar/PdfToolbar.d.ts +67 -0
- package/dist/components/editors/PdfEditor/toolbar/PdfToolbar.spec.d.ts +1 -0
- package/dist/components/editors/PdfEditor/toolbar/SavedAssets.d.ts +24 -0
- package/dist/components/editors/PdfEditor/toolbar/ToolGroupButton.d.ts +20 -0
- package/dist/components/editors/PdfEditor/toolbar/tool-groups.d.ts +34 -0
- package/dist/components/editors/PdfEditor/toolbar/tool-options/DrawOptions.d.ts +6 -0
- package/dist/components/editors/PdfEditor/toolbar/tool-options/FillFieldsOptions.d.ts +13 -0
- package/dist/components/editors/PdfEditor/toolbar/tool-options/HighlightOptions.d.ts +6 -0
- package/dist/components/editors/PdfEditor/toolbar/tool-options/RedactOptions.d.ts +6 -0
- package/dist/components/editors/PdfEditor/toolbar/tool-options/ShapeOptions.d.ts +6 -0
- package/dist/components/editors/PdfEditor/toolbar/tool-options/SignatureOptions.d.ts +5 -0
- package/dist/components/editors/PdfEditor/toolbar/tool-options/TextOptions.d.ts +6 -0
- package/dist/components/editors/PdfEditor/toolbar/tool-options/ToolOptions.d.ts +14 -0
- package/dist/components/editors/PdfEditor/toolbar/tool-options/swatches.d.ts +2 -0
- package/dist/components/editors/PdfEditor/toolbar/tool-settings.d.ts +14 -0
- package/dist/components/editors/PdfEditor/viewer/InsertPagesButton.d.ts +14 -0
- package/dist/components/editors/PdfEditor/viewer/InsertPagesButton.spec.d.ts +1 -0
- package/dist/components/editors/PdfEditor/viewer/InsertPagesDialog.d.ts +28 -0
- package/dist/components/editors/PdfEditor/viewer/PageOverlay.d.ts +37 -0
- package/dist/components/editors/PdfEditor/viewer/PageOverlay.spec.d.ts +1 -0
- package/dist/components/editors/PdfEditor/viewer/PageSidebar.d.ts +16 -0
- package/dist/components/editors/PdfEditor/viewer/PageSidebar.spec.d.ts +1 -0
- package/dist/components/editors/PdfEditor/viewer/PageThumbnail.d.ts +16 -0
- package/dist/components/editors/PdfEditor/viewer/PdfCanvas.d.ts +26 -0
- package/dist/components/editors/PdfEditor/viewer/PdfCanvas.spec.d.ts +1 -0
- package/dist/components/editors/PdfEditor/viewer/ViewerControls.d.ts +21 -0
- package/dist/components/editors/PdfEditor/viewer/ViewerControls.spec.d.ts +1 -0
- package/dist/components/editors/PdfEditor/viewer/test-support/viewer-test-harness.d.ts +30 -0
- package/dist/components/editors/editors-guard.spec.d.ts +1 -0
- package/dist/components/editors/index.d.ts +2 -0
- package/dist/cookie-consent.js +2 -2
- package/dist/{design-theme-sPEoMB7j.js → design-theme-DPp0aQVa.js} +9302 -12244
- package/dist/editors.d.ts +1 -0
- package/dist/editors.js +5239 -0
- package/dist/hooks/use-rich-intl.hook.d.ts +636 -0
- package/dist/{index-Cb-uMz_V.js → index-B2ZxOr31.js} +3 -3
- package/dist/{index-CCaW-38I.js → index-Bo9YtyKq.js} +2 -2
- package/dist/{index-DEqCdX0Q.js → index-Bv63SeVQ.js} +2 -2
- package/dist/{index-C2KrTHAO.js → index-ByTOd2ak.js} +2 -2
- package/dist/{index-DD25yrsQ.js → index-C2CPAKkL.js} +4 -4
- package/dist/{index-CB-jdY_E.js → index-C7XhFFZA.js} +2 -2
- package/dist/{index-DIpJhT2r.js → index-CBIn4IuA.js} +2 -2
- package/dist/{index-CNcmCFNN.js → index-CE5F7UaD.js} +1 -1
- package/dist/{index-CKCWWoQb.js → index-CS0JFqYy.js} +3 -3
- package/dist/{index-CXwwKVPn.js → index-CVp3TsdG.js} +3 -3
- package/dist/{index-C9FzqvHz.js → index-CaWs53z9.js} +2 -2
- package/dist/{index-CrWjgIMV.js → index-CjAqdRJ0.js} +4 -4
- package/dist/{index-D9s128sK.js → index-DNhK2v38.js} +4 -4
- package/dist/{index-Ut9uJwau.js → index-DVg7Zewe.js} +2 -2
- package/dist/{index-QNJIP2m4.js → index-DWi7OlB1.js} +2 -2
- package/dist/{index-DtHUaGVU.js → index-DY51R82n.js} +3 -3
- package/dist/{index-aYivWEyJ.js → index-DzXd6CTA.js} +2 -2
- package/dist/{index-whpnjq54.js → index-RIO2UT1x.js} +2 -2
- package/dist/{index-lE9lxmTc.js → index-ZXDv7i0D.js} +2 -2
- package/dist/{index-BVGdsnC4.js → index-yAKnJ5ME.js} +2 -2
- package/dist/{index-Di1amUHq.js → index-z9-0V3EC.js} +2 -2
- package/dist/index.js +5676 -7907
- package/dist/legacy/components/PdfEditor/PdfEditor.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/index.d.ts +2 -2
- package/dist/legacy/components/PdfEditor/signature/SignatureDrawCanvas.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/signature/SignaturePicker.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/signature/SignatureSaveButton.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/signature/SignatureSavedList.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/signature/SignatureUploadDropzone.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/signature/resolve-asset.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/tools/FillFieldsTool.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/tools/ShapeTool.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/tools/SignatureTool.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/tools/TextTool.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/tools/Toolbar.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/viewer/InsertPagesButton.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/viewer/PageOverlay.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/viewer/PageSidebar.d.ts +2 -2
- package/dist/legacy/components/PdfEditor/viewer/PageThumbnail.d.ts +2 -2
- package/dist/legacy/components/PdfEditor/viewer/PdfCanvas.d.ts +1 -1
- package/dist/legacy.js +26800 -209
- package/dist/sortable.esm-BYVnqZQ-.js +69330 -0
- package/dist/translations/editors-i18n.spec.d.ts +1 -0
- package/dist/translations/en.d.ts +318 -0
- package/dist/translations/fr.d.ts +318 -0
- package/package.json +13 -6
- package/vite.config.ts +4 -0
- package/dist/index-DPi7aKci.js +0 -95942
- /package/dist/{legacy/components/PdfEditor/operations/apply.spec.d.ts → components/editors/MarkdownEditor/MarkdownEditor.spec.d.ts} +0 -0
- /package/dist/{legacy/components/PdfEditor/operations/compute-page-order.spec.d.ts → components/editors/PdfEditor/PdfEditor.spec.d.ts} +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/hooks/use-acro-form-fields.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/hooks/use-export.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/hooks/use-page-order.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/hooks/use-pdf-document.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/hooks/use-undo-redo.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/hooks/use-uploaded-docs.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/actions.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/apply.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor/operations/extract.spec.d.ts → components/editors/PdfEditor/engine/operations/apply.spec.d.ts} +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/compute-page-order.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor/operations/redact.spec.d.ts → components/editors/PdfEditor/engine/operations/compute-page-order.spec.d.ts} +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/extract.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor/operations/reducer.spec.d.ts → components/editors/PdfEditor/engine/operations/extract.spec.d.ts} +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/pdf-data-url.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/rasterize.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/redact.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor/operations/rotate-coords.spec.d.ts → components/editors/PdfEditor/engine/operations/redact.spec.d.ts} +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/reducer.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/rotate-coords.d.ts +0 -0
|
@@ -0,0 +1,2949 @@
|
|
|
1
|
+
import We, { useMemo as ua, useRef as wa, useReducer as Ye, useEffect as qa, useCallback as V, forwardRef as Ue, useImperativeHandle as He, Fragment as Ke } from "react";
|
|
2
|
+
import { g as ke } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
3
|
+
var Be = /* @__PURE__ */ ((a) => (a.Dark = "dark", a.Light = "light", a))(Be || {});
|
|
4
|
+
const Ge = 266, R = (a, e) => ({ l: a, c: e, h: Ge }), et = {
|
|
5
|
+
dark: {
|
|
6
|
+
1: R(0.155, 0.034),
|
|
7
|
+
2: R(0.17, 0.036),
|
|
8
|
+
3: R(0.2, 0.04),
|
|
9
|
+
4: R(0.24, 0.042),
|
|
10
|
+
5: R(0.265, 0.042),
|
|
11
|
+
6: R(0.295, 0.042),
|
|
12
|
+
7: R(0.37, 0.045),
|
|
13
|
+
8: R(0.54, 0.045),
|
|
14
|
+
9: R(0.63, 0.035),
|
|
15
|
+
10: R(0.72, 0.03),
|
|
16
|
+
11: R(0.79, 0.03),
|
|
17
|
+
12: R(0.96, 0.01)
|
|
18
|
+
},
|
|
19
|
+
light: {
|
|
20
|
+
1: R(0.995, 3e-3),
|
|
21
|
+
2: R(0.975, 8e-3),
|
|
22
|
+
3: R(0.96, 0.012),
|
|
23
|
+
4: R(0.935, 0.016),
|
|
24
|
+
5: R(0.91, 0.018),
|
|
25
|
+
6: R(0.885, 0.02),
|
|
26
|
+
7: R(0.8, 0.03),
|
|
27
|
+
8: R(0.6, 0.035),
|
|
28
|
+
9: R(0.5, 0.04),
|
|
29
|
+
10: R(0.46, 0.042),
|
|
30
|
+
11: R(0.42, 0.045),
|
|
31
|
+
12: R(0.22, 0.045)
|
|
32
|
+
}
|
|
33
|
+
}, it = {
|
|
34
|
+
sans: '"Geist Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',
|
|
35
|
+
mono: '"Geist Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace'
|
|
36
|
+
}, tt = {
|
|
37
|
+
caption: 11,
|
|
38
|
+
small: 12,
|
|
39
|
+
body: 13,
|
|
40
|
+
bodyComfort: 14,
|
|
41
|
+
bodyMobile: 15,
|
|
42
|
+
sectionTitle: 16,
|
|
43
|
+
pageTitle: 22,
|
|
44
|
+
figure: 26,
|
|
45
|
+
mobileLargeTitle: 30
|
|
46
|
+
}, nt = {
|
|
47
|
+
regular: 400,
|
|
48
|
+
medium: 500,
|
|
49
|
+
semibold: 600,
|
|
50
|
+
bold: 700
|
|
51
|
+
}, ot = [0, 4, 8, 12, 16, 20, 24, 32, 40, 48, 64], rt = {
|
|
52
|
+
sm: 4,
|
|
53
|
+
md: 6,
|
|
54
|
+
lg: 12
|
|
55
|
+
}, pt = {
|
|
56
|
+
fast: 120,
|
|
57
|
+
base: 180,
|
|
58
|
+
slow: 260
|
|
59
|
+
}, ct = {
|
|
60
|
+
standard: "cubic-bezier(0.2, 0, 0, 1)",
|
|
61
|
+
sheet: "cubic-bezier(0.32, 0.72, 0, 1)"
|
|
62
|
+
}, lt = {
|
|
63
|
+
xs: 0,
|
|
64
|
+
sm: 480,
|
|
65
|
+
md: 768,
|
|
66
|
+
lg: 1200,
|
|
67
|
+
xl: 1600
|
|
68
|
+
}, st = {
|
|
69
|
+
comfortable: { row: 40, control: 32 },
|
|
70
|
+
compact: { row: 30, control: 28 },
|
|
71
|
+
touchTarget: 44
|
|
72
|
+
}, dt = 0.14, je = (a) => a.projectId ? "project" : a.organizationId && a.userId ? "perso-in-org" : a.organizationId ? "org-common" : "personal", mt = (a, e, i = {}) => {
|
|
73
|
+
switch (je(a)) {
|
|
74
|
+
case "project":
|
|
75
|
+
return i.projectName ?? e.formatMessage({ id: "space-display-name.project" });
|
|
76
|
+
case "org-common":
|
|
77
|
+
return i.organizationName ?? e.formatMessage({ id: "space-display-name.org-common" });
|
|
78
|
+
case "perso-in-org":
|
|
79
|
+
return i.userAlias ?? e.formatMessage({ id: "space-display-name.perso-in-org" });
|
|
80
|
+
case "personal":
|
|
81
|
+
default:
|
|
82
|
+
return i.userAlias ?? e.formatMessage({ id: "space-display-name.personal" });
|
|
83
|
+
}
|
|
84
|
+
}, ut = (a, e, i) => {
|
|
85
|
+
const t = `${a.replace(/\/+$/, "")}/dashboard`;
|
|
86
|
+
if (!e)
|
|
87
|
+
return t;
|
|
88
|
+
if (i)
|
|
89
|
+
return `${t}/shared-with-me`;
|
|
90
|
+
switch (je(e)) {
|
|
91
|
+
case "project":
|
|
92
|
+
return `${t}/org/${e.organizationId}/projects/${e.projectId}`;
|
|
93
|
+
case "org-common":
|
|
94
|
+
return `${t}/org/${e.organizationId}/common`;
|
|
95
|
+
case "perso-in-org":
|
|
96
|
+
return `${t}/org/${e.organizationId}/my`;
|
|
97
|
+
case "personal":
|
|
98
|
+
default:
|
|
99
|
+
return `${t}/my`;
|
|
100
|
+
}
|
|
101
|
+
}, Ne = (a) => a.split(";")[0].trim().toLowerCase(), Ve = (a, e) => {
|
|
102
|
+
if (e === "*/*")
|
|
103
|
+
return !0;
|
|
104
|
+
if (e.startsWith("."))
|
|
105
|
+
return a.name.toLowerCase().endsWith(e);
|
|
106
|
+
if (!a.mimeType)
|
|
107
|
+
return !1;
|
|
108
|
+
const i = Ne(a.mimeType);
|
|
109
|
+
return e.endsWith("/*") ? i.startsWith(e.slice(0, -1)) : i === e;
|
|
110
|
+
}, ft = (a, e) => {
|
|
111
|
+
const i = (e ?? []).flatMap((t) => t.split(",")).map((t) => t.trim().toLowerCase()).filter((t) => t.length > 0);
|
|
112
|
+
return i.length === 0 || i.some((t) => Ve(a, t));
|
|
113
|
+
};
|
|
114
|
+
var ka = { exports: {} }, ja = { exports: {} }, O = {};
|
|
115
|
+
/** @license React v16.13.1
|
|
116
|
+
* react-is.production.min.js
|
|
117
|
+
*
|
|
118
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
119
|
+
*
|
|
120
|
+
* This source code is licensed under the MIT license found in the
|
|
121
|
+
* LICENSE file in the root directory of this source tree.
|
|
122
|
+
*/
|
|
123
|
+
var ae;
|
|
124
|
+
function Ze() {
|
|
125
|
+
if (ae) return O;
|
|
126
|
+
ae = 1;
|
|
127
|
+
var a = typeof Symbol == "function" && Symbol.for, e = a ? Symbol.for("react.element") : 60103, i = a ? Symbol.for("react.portal") : 60106, t = a ? Symbol.for("react.fragment") : 60107, o = a ? Symbol.for("react.strict_mode") : 60108, n = a ? Symbol.for("react.profiler") : 60114, d = a ? Symbol.for("react.provider") : 60109, c = a ? Symbol.for("react.context") : 60110, b = a ? Symbol.for("react.async_mode") : 60111, j = a ? Symbol.for("react.concurrent_mode") : 60111, x = a ? Symbol.for("react.forward_ref") : 60112, w = a ? Symbol.for("react.suspense") : 60113, P = a ? Symbol.for("react.suspense_list") : 60120, z = a ? Symbol.for("react.memo") : 60115, L = a ? Symbol.for("react.lazy") : 60116, S = a ? Symbol.for("react.block") : 60121, M = a ? Symbol.for("react.fundamental") : 60117, K = a ? Symbol.for("react.responder") : 60118, ia = a ? Symbol.for("react.scope") : 60119;
|
|
128
|
+
function I(s) {
|
|
129
|
+
if (typeof s == "object" && s !== null) {
|
|
130
|
+
var J = s.$$typeof;
|
|
131
|
+
switch (J) {
|
|
132
|
+
case e:
|
|
133
|
+
switch (s = s.type, s) {
|
|
134
|
+
case b:
|
|
135
|
+
case j:
|
|
136
|
+
case t:
|
|
137
|
+
case n:
|
|
138
|
+
case o:
|
|
139
|
+
case w:
|
|
140
|
+
return s;
|
|
141
|
+
default:
|
|
142
|
+
switch (s = s && s.$$typeof, s) {
|
|
143
|
+
case c:
|
|
144
|
+
case x:
|
|
145
|
+
case L:
|
|
146
|
+
case z:
|
|
147
|
+
case d:
|
|
148
|
+
return s;
|
|
149
|
+
default:
|
|
150
|
+
return J;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
case i:
|
|
154
|
+
return J;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
function q(s) {
|
|
159
|
+
return I(s) === j;
|
|
160
|
+
}
|
|
161
|
+
return O.AsyncMode = b, O.ConcurrentMode = j, O.ContextConsumer = c, O.ContextProvider = d, O.Element = e, O.ForwardRef = x, O.Fragment = t, O.Lazy = L, O.Memo = z, O.Portal = i, O.Profiler = n, O.StrictMode = o, O.Suspense = w, O.isAsyncMode = function(s) {
|
|
162
|
+
return q(s) || I(s) === b;
|
|
163
|
+
}, O.isConcurrentMode = q, O.isContextConsumer = function(s) {
|
|
164
|
+
return I(s) === c;
|
|
165
|
+
}, O.isContextProvider = function(s) {
|
|
166
|
+
return I(s) === d;
|
|
167
|
+
}, O.isElement = function(s) {
|
|
168
|
+
return typeof s == "object" && s !== null && s.$$typeof === e;
|
|
169
|
+
}, O.isForwardRef = function(s) {
|
|
170
|
+
return I(s) === x;
|
|
171
|
+
}, O.isFragment = function(s) {
|
|
172
|
+
return I(s) === t;
|
|
173
|
+
}, O.isLazy = function(s) {
|
|
174
|
+
return I(s) === L;
|
|
175
|
+
}, O.isMemo = function(s) {
|
|
176
|
+
return I(s) === z;
|
|
177
|
+
}, O.isPortal = function(s) {
|
|
178
|
+
return I(s) === i;
|
|
179
|
+
}, O.isProfiler = function(s) {
|
|
180
|
+
return I(s) === n;
|
|
181
|
+
}, O.isStrictMode = function(s) {
|
|
182
|
+
return I(s) === o;
|
|
183
|
+
}, O.isSuspense = function(s) {
|
|
184
|
+
return I(s) === w;
|
|
185
|
+
}, O.isValidElementType = function(s) {
|
|
186
|
+
return typeof s == "string" || typeof s == "function" || s === t || s === j || s === n || s === o || s === w || s === P || typeof s == "object" && s !== null && (s.$$typeof === L || s.$$typeof === z || s.$$typeof === d || s.$$typeof === c || s.$$typeof === x || s.$$typeof === M || s.$$typeof === K || s.$$typeof === ia || s.$$typeof === S);
|
|
187
|
+
}, O.typeOf = I, O;
|
|
188
|
+
}
|
|
189
|
+
var D = {};
|
|
190
|
+
/** @license React v16.13.1
|
|
191
|
+
* react-is.development.js
|
|
192
|
+
*
|
|
193
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
194
|
+
*
|
|
195
|
+
* This source code is licensed under the MIT license found in the
|
|
196
|
+
* LICENSE file in the root directory of this source tree.
|
|
197
|
+
*/
|
|
198
|
+
var ee;
|
|
199
|
+
function Je() {
|
|
200
|
+
return ee || (ee = 1, process.env.NODE_ENV !== "production" && function() {
|
|
201
|
+
var a = typeof Symbol == "function" && Symbol.for, e = a ? Symbol.for("react.element") : 60103, i = a ? Symbol.for("react.portal") : 60106, t = a ? Symbol.for("react.fragment") : 60107, o = a ? Symbol.for("react.strict_mode") : 60108, n = a ? Symbol.for("react.profiler") : 60114, d = a ? Symbol.for("react.provider") : 60109, c = a ? Symbol.for("react.context") : 60110, b = a ? Symbol.for("react.async_mode") : 60111, j = a ? Symbol.for("react.concurrent_mode") : 60111, x = a ? Symbol.for("react.forward_ref") : 60112, w = a ? Symbol.for("react.suspense") : 60113, P = a ? Symbol.for("react.suspense_list") : 60120, z = a ? Symbol.for("react.memo") : 60115, L = a ? Symbol.for("react.lazy") : 60116, S = a ? Symbol.for("react.block") : 60121, M = a ? Symbol.for("react.fundamental") : 60117, K = a ? Symbol.for("react.responder") : 60118, ia = a ? Symbol.for("react.scope") : 60119;
|
|
202
|
+
function I(p) {
|
|
203
|
+
return typeof p == "string" || typeof p == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
204
|
+
p === t || p === j || p === n || p === o || p === w || p === P || typeof p == "object" && p !== null && (p.$$typeof === L || p.$$typeof === z || p.$$typeof === d || p.$$typeof === c || p.$$typeof === x || p.$$typeof === M || p.$$typeof === K || p.$$typeof === ia || p.$$typeof === S);
|
|
205
|
+
}
|
|
206
|
+
function q(p) {
|
|
207
|
+
if (typeof p == "object" && p !== null) {
|
|
208
|
+
var B = p.$$typeof;
|
|
209
|
+
switch (B) {
|
|
210
|
+
case e:
|
|
211
|
+
var ca = p.type;
|
|
212
|
+
switch (ca) {
|
|
213
|
+
case b:
|
|
214
|
+
case j:
|
|
215
|
+
case t:
|
|
216
|
+
case n:
|
|
217
|
+
case o:
|
|
218
|
+
case w:
|
|
219
|
+
return ca;
|
|
220
|
+
default:
|
|
221
|
+
var va = ca && ca.$$typeof;
|
|
222
|
+
switch (va) {
|
|
223
|
+
case c:
|
|
224
|
+
case x:
|
|
225
|
+
case L:
|
|
226
|
+
case z:
|
|
227
|
+
case d:
|
|
228
|
+
return va;
|
|
229
|
+
default:
|
|
230
|
+
return B;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
case i:
|
|
234
|
+
return B;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
var s = b, J = j, Z = c, oa = d, aa = e, ea = x, ra = t, pa = L, ta = z, F = i, H = n, N = o, X = w, na = !1;
|
|
239
|
+
function U(p) {
|
|
240
|
+
return na || (na = !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(p) || q(p) === b;
|
|
241
|
+
}
|
|
242
|
+
function r(p) {
|
|
243
|
+
return q(p) === j;
|
|
244
|
+
}
|
|
245
|
+
function m(p) {
|
|
246
|
+
return q(p) === c;
|
|
247
|
+
}
|
|
248
|
+
function g(p) {
|
|
249
|
+
return q(p) === d;
|
|
250
|
+
}
|
|
251
|
+
function y(p) {
|
|
252
|
+
return typeof p == "object" && p !== null && p.$$typeof === e;
|
|
253
|
+
}
|
|
254
|
+
function f(p) {
|
|
255
|
+
return q(p) === x;
|
|
256
|
+
}
|
|
257
|
+
function E(p) {
|
|
258
|
+
return q(p) === t;
|
|
259
|
+
}
|
|
260
|
+
function v(p) {
|
|
261
|
+
return q(p) === L;
|
|
262
|
+
}
|
|
263
|
+
function h(p) {
|
|
264
|
+
return q(p) === z;
|
|
265
|
+
}
|
|
266
|
+
function T(p) {
|
|
267
|
+
return q(p) === i;
|
|
268
|
+
}
|
|
269
|
+
function _(p) {
|
|
270
|
+
return q(p) === n;
|
|
271
|
+
}
|
|
272
|
+
function k(p) {
|
|
273
|
+
return q(p) === o;
|
|
274
|
+
}
|
|
275
|
+
function W(p) {
|
|
276
|
+
return q(p) === w;
|
|
277
|
+
}
|
|
278
|
+
D.AsyncMode = s, D.ConcurrentMode = J, D.ContextConsumer = Z, D.ContextProvider = oa, D.Element = aa, D.ForwardRef = ea, D.Fragment = ra, D.Lazy = pa, D.Memo = ta, D.Portal = F, D.Profiler = H, D.StrictMode = N, D.Suspense = X, D.isAsyncMode = U, D.isConcurrentMode = r, D.isContextConsumer = m, D.isContextProvider = g, D.isElement = y, D.isForwardRef = f, D.isFragment = E, D.isLazy = v, D.isMemo = h, D.isPortal = T, D.isProfiler = _, D.isStrictMode = k, D.isSuspense = W, D.isValidElementType = I, D.typeOf = q;
|
|
279
|
+
}()), D;
|
|
280
|
+
}
|
|
281
|
+
var ie;
|
|
282
|
+
function Ee() {
|
|
283
|
+
return ie || (ie = 1, process.env.NODE_ENV === "production" ? ja.exports = Ze() : ja.exports = Je()), ja.exports;
|
|
284
|
+
}
|
|
285
|
+
/*
|
|
286
|
+
object-assign
|
|
287
|
+
(c) Sindre Sorhus
|
|
288
|
+
@license MIT
|
|
289
|
+
*/
|
|
290
|
+
var Ma, te;
|
|
291
|
+
function Xe() {
|
|
292
|
+
if (te) return Ma;
|
|
293
|
+
te = 1;
|
|
294
|
+
var a = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
|
|
295
|
+
function t(n) {
|
|
296
|
+
if (n == null)
|
|
297
|
+
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
298
|
+
return Object(n);
|
|
299
|
+
}
|
|
300
|
+
function o() {
|
|
301
|
+
try {
|
|
302
|
+
if (!Object.assign)
|
|
303
|
+
return !1;
|
|
304
|
+
var n = new String("abc");
|
|
305
|
+
if (n[5] = "de", Object.getOwnPropertyNames(n)[0] === "5")
|
|
306
|
+
return !1;
|
|
307
|
+
for (var d = {}, c = 0; c < 10; c++)
|
|
308
|
+
d["_" + String.fromCharCode(c)] = c;
|
|
309
|
+
var b = Object.getOwnPropertyNames(d).map(function(x) {
|
|
310
|
+
return d[x];
|
|
311
|
+
});
|
|
312
|
+
if (b.join("") !== "0123456789")
|
|
313
|
+
return !1;
|
|
314
|
+
var j = {};
|
|
315
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(x) {
|
|
316
|
+
j[x] = x;
|
|
317
|
+
}), Object.keys(Object.assign({}, j)).join("") === "abcdefghijklmnopqrst";
|
|
318
|
+
} catch {
|
|
319
|
+
return !1;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
return Ma = o() ? Object.assign : function(n, d) {
|
|
323
|
+
for (var c, b = t(n), j, x = 1; x < arguments.length; x++) {
|
|
324
|
+
c = Object(arguments[x]);
|
|
325
|
+
for (var w in c)
|
|
326
|
+
e.call(c, w) && (b[w] = c[w]);
|
|
327
|
+
if (a) {
|
|
328
|
+
j = a(c);
|
|
329
|
+
for (var P = 0; P < j.length; P++)
|
|
330
|
+
i.call(c, j[P]) && (b[j[P]] = c[j[P]]);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
return b;
|
|
334
|
+
}, Ma;
|
|
335
|
+
}
|
|
336
|
+
var $a, ne;
|
|
337
|
+
function Ja() {
|
|
338
|
+
if (ne) return $a;
|
|
339
|
+
ne = 1;
|
|
340
|
+
var a = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
341
|
+
return $a = a, $a;
|
|
342
|
+
}
|
|
343
|
+
var La, oe;
|
|
344
|
+
function Te() {
|
|
345
|
+
return oe || (oe = 1, La = Function.call.bind(Object.prototype.hasOwnProperty)), La;
|
|
346
|
+
}
|
|
347
|
+
var Wa, re;
|
|
348
|
+
function Qe() {
|
|
349
|
+
if (re) return Wa;
|
|
350
|
+
re = 1;
|
|
351
|
+
var a = function() {
|
|
352
|
+
};
|
|
353
|
+
if (process.env.NODE_ENV !== "production") {
|
|
354
|
+
var e = /* @__PURE__ */ Ja(), i = {}, t = /* @__PURE__ */ Te();
|
|
355
|
+
a = function(n) {
|
|
356
|
+
var d = "Warning: " + n;
|
|
357
|
+
typeof console < "u" && console.error(d);
|
|
358
|
+
try {
|
|
359
|
+
throw new Error(d);
|
|
360
|
+
} catch {
|
|
361
|
+
}
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
function o(n, d, c, b, j) {
|
|
365
|
+
if (process.env.NODE_ENV !== "production") {
|
|
366
|
+
for (var x in n)
|
|
367
|
+
if (t(n, x)) {
|
|
368
|
+
var w;
|
|
369
|
+
try {
|
|
370
|
+
if (typeof n[x] != "function") {
|
|
371
|
+
var P = Error(
|
|
372
|
+
(b || "React class") + ": " + c + " type `" + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[x] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
373
|
+
);
|
|
374
|
+
throw P.name = "Invariant Violation", P;
|
|
375
|
+
}
|
|
376
|
+
w = n[x](d, x, b, c, null, e);
|
|
377
|
+
} catch (L) {
|
|
378
|
+
w = L;
|
|
379
|
+
}
|
|
380
|
+
if (w && !(w instanceof Error) && a(
|
|
381
|
+
(b || "React class") + ": type specification of " + c + " `" + x + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof w + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
382
|
+
), w instanceof Error && !(w.message in i)) {
|
|
383
|
+
i[w.message] = !0;
|
|
384
|
+
var z = j ? j() : "";
|
|
385
|
+
a(
|
|
386
|
+
"Failed " + c + " type: " + w.message + (z ?? "")
|
|
387
|
+
);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
return o.resetWarningCache = function() {
|
|
393
|
+
process.env.NODE_ENV !== "production" && (i = {});
|
|
394
|
+
}, Wa = o, Wa;
|
|
395
|
+
}
|
|
396
|
+
var Ya, pe;
|
|
397
|
+
function ai() {
|
|
398
|
+
if (pe) return Ya;
|
|
399
|
+
pe = 1;
|
|
400
|
+
var a = Ee(), e = Xe(), i = /* @__PURE__ */ Ja(), t = /* @__PURE__ */ Te(), o = /* @__PURE__ */ Qe(), n = function() {
|
|
401
|
+
};
|
|
402
|
+
process.env.NODE_ENV !== "production" && (n = function(c) {
|
|
403
|
+
var b = "Warning: " + c;
|
|
404
|
+
typeof console < "u" && console.error(b);
|
|
405
|
+
try {
|
|
406
|
+
throw new Error(b);
|
|
407
|
+
} catch {
|
|
408
|
+
}
|
|
409
|
+
});
|
|
410
|
+
function d() {
|
|
411
|
+
return null;
|
|
412
|
+
}
|
|
413
|
+
return Ya = function(c, b) {
|
|
414
|
+
var j = typeof Symbol == "function" && Symbol.iterator, x = "@@iterator";
|
|
415
|
+
function w(r) {
|
|
416
|
+
var m = r && (j && r[j] || r[x]);
|
|
417
|
+
if (typeof m == "function")
|
|
418
|
+
return m;
|
|
419
|
+
}
|
|
420
|
+
var P = "<<anonymous>>", z = {
|
|
421
|
+
array: K("array"),
|
|
422
|
+
bigint: K("bigint"),
|
|
423
|
+
bool: K("boolean"),
|
|
424
|
+
func: K("function"),
|
|
425
|
+
number: K("number"),
|
|
426
|
+
object: K("object"),
|
|
427
|
+
string: K("string"),
|
|
428
|
+
symbol: K("symbol"),
|
|
429
|
+
any: ia(),
|
|
430
|
+
arrayOf: I,
|
|
431
|
+
element: q(),
|
|
432
|
+
elementType: s(),
|
|
433
|
+
instanceOf: J,
|
|
434
|
+
node: ea(),
|
|
435
|
+
objectOf: oa,
|
|
436
|
+
oneOf: Z,
|
|
437
|
+
oneOfType: aa,
|
|
438
|
+
shape: pa,
|
|
439
|
+
exact: ta
|
|
440
|
+
};
|
|
441
|
+
function L(r, m) {
|
|
442
|
+
return r === m ? r !== 0 || 1 / r === 1 / m : r !== r && m !== m;
|
|
443
|
+
}
|
|
444
|
+
function S(r, m) {
|
|
445
|
+
this.message = r, this.data = m && typeof m == "object" ? m : {}, this.stack = "";
|
|
446
|
+
}
|
|
447
|
+
S.prototype = Error.prototype;
|
|
448
|
+
function M(r) {
|
|
449
|
+
if (process.env.NODE_ENV !== "production")
|
|
450
|
+
var m = {}, g = 0;
|
|
451
|
+
function y(E, v, h, T, _, k, W) {
|
|
452
|
+
if (T = T || P, k = k || h, W !== i) {
|
|
453
|
+
if (b) {
|
|
454
|
+
var p = new Error(
|
|
455
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
456
|
+
);
|
|
457
|
+
throw p.name = "Invariant Violation", p;
|
|
458
|
+
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
459
|
+
var B = T + ":" + h;
|
|
460
|
+
!m[B] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
461
|
+
g < 3 && (n(
|
|
462
|
+
"You are manually calling a React.PropTypes validation function for the `" + k + "` prop on `" + T + "`. 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."
|
|
463
|
+
), m[B] = !0, g++);
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
return v[h] == null ? E ? v[h] === null ? new S("The " + _ + " `" + k + "` is marked as required " + ("in `" + T + "`, but its value is `null`.")) : new S("The " + _ + " `" + k + "` is marked as required in " + ("`" + T + "`, but its value is `undefined`.")) : null : r(v, h, T, _, k);
|
|
467
|
+
}
|
|
468
|
+
var f = y.bind(null, !1);
|
|
469
|
+
return f.isRequired = y.bind(null, !0), f;
|
|
470
|
+
}
|
|
471
|
+
function K(r) {
|
|
472
|
+
function m(g, y, f, E, v, h) {
|
|
473
|
+
var T = g[y], _ = N(T);
|
|
474
|
+
if (_ !== r) {
|
|
475
|
+
var k = X(T);
|
|
476
|
+
return new S(
|
|
477
|
+
"Invalid " + E + " `" + v + "` of type " + ("`" + k + "` supplied to `" + f + "`, expected ") + ("`" + r + "`."),
|
|
478
|
+
{ expectedType: r }
|
|
479
|
+
);
|
|
480
|
+
}
|
|
481
|
+
return null;
|
|
482
|
+
}
|
|
483
|
+
return M(m);
|
|
484
|
+
}
|
|
485
|
+
function ia() {
|
|
486
|
+
return M(d);
|
|
487
|
+
}
|
|
488
|
+
function I(r) {
|
|
489
|
+
function m(g, y, f, E, v) {
|
|
490
|
+
if (typeof r != "function")
|
|
491
|
+
return new S("Property `" + v + "` of component `" + f + "` has invalid PropType notation inside arrayOf.");
|
|
492
|
+
var h = g[y];
|
|
493
|
+
if (!Array.isArray(h)) {
|
|
494
|
+
var T = N(h);
|
|
495
|
+
return new S("Invalid " + E + " `" + v + "` of type " + ("`" + T + "` supplied to `" + f + "`, expected an array."));
|
|
496
|
+
}
|
|
497
|
+
for (var _ = 0; _ < h.length; _++) {
|
|
498
|
+
var k = r(h, _, f, E, v + "[" + _ + "]", i);
|
|
499
|
+
if (k instanceof Error)
|
|
500
|
+
return k;
|
|
501
|
+
}
|
|
502
|
+
return null;
|
|
503
|
+
}
|
|
504
|
+
return M(m);
|
|
505
|
+
}
|
|
506
|
+
function q() {
|
|
507
|
+
function r(m, g, y, f, E) {
|
|
508
|
+
var v = m[g];
|
|
509
|
+
if (!c(v)) {
|
|
510
|
+
var h = N(v);
|
|
511
|
+
return new S("Invalid " + f + " `" + E + "` of type " + ("`" + h + "` supplied to `" + y + "`, expected a single ReactElement."));
|
|
512
|
+
}
|
|
513
|
+
return null;
|
|
514
|
+
}
|
|
515
|
+
return M(r);
|
|
516
|
+
}
|
|
517
|
+
function s() {
|
|
518
|
+
function r(m, g, y, f, E) {
|
|
519
|
+
var v = m[g];
|
|
520
|
+
if (!a.isValidElementType(v)) {
|
|
521
|
+
var h = N(v);
|
|
522
|
+
return new S("Invalid " + f + " `" + E + "` of type " + ("`" + h + "` supplied to `" + y + "`, expected a single ReactElement type."));
|
|
523
|
+
}
|
|
524
|
+
return null;
|
|
525
|
+
}
|
|
526
|
+
return M(r);
|
|
527
|
+
}
|
|
528
|
+
function J(r) {
|
|
529
|
+
function m(g, y, f, E, v) {
|
|
530
|
+
if (!(g[y] instanceof r)) {
|
|
531
|
+
var h = r.name || P, T = U(g[y]);
|
|
532
|
+
return new S("Invalid " + E + " `" + v + "` of type " + ("`" + T + "` supplied to `" + f + "`, expected ") + ("instance of `" + h + "`."));
|
|
533
|
+
}
|
|
534
|
+
return null;
|
|
535
|
+
}
|
|
536
|
+
return M(m);
|
|
537
|
+
}
|
|
538
|
+
function Z(r) {
|
|
539
|
+
if (!Array.isArray(r))
|
|
540
|
+
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? n(
|
|
541
|
+
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
542
|
+
) : n("Invalid argument supplied to oneOf, expected an array.")), d;
|
|
543
|
+
function m(g, y, f, E, v) {
|
|
544
|
+
for (var h = g[y], T = 0; T < r.length; T++)
|
|
545
|
+
if (L(h, r[T]))
|
|
546
|
+
return null;
|
|
547
|
+
var _ = JSON.stringify(r, function(W, p) {
|
|
548
|
+
var B = X(p);
|
|
549
|
+
return B === "symbol" ? String(p) : p;
|
|
550
|
+
});
|
|
551
|
+
return new S("Invalid " + E + " `" + v + "` of value `" + String(h) + "` " + ("supplied to `" + f + "`, expected one of " + _ + "."));
|
|
552
|
+
}
|
|
553
|
+
return M(m);
|
|
554
|
+
}
|
|
555
|
+
function oa(r) {
|
|
556
|
+
function m(g, y, f, E, v) {
|
|
557
|
+
if (typeof r != "function")
|
|
558
|
+
return new S("Property `" + v + "` of component `" + f + "` has invalid PropType notation inside objectOf.");
|
|
559
|
+
var h = g[y], T = N(h);
|
|
560
|
+
if (T !== "object")
|
|
561
|
+
return new S("Invalid " + E + " `" + v + "` of type " + ("`" + T + "` supplied to `" + f + "`, expected an object."));
|
|
562
|
+
for (var _ in h)
|
|
563
|
+
if (t(h, _)) {
|
|
564
|
+
var k = r(h, _, f, E, v + "." + _, i);
|
|
565
|
+
if (k instanceof Error)
|
|
566
|
+
return k;
|
|
567
|
+
}
|
|
568
|
+
return null;
|
|
569
|
+
}
|
|
570
|
+
return M(m);
|
|
571
|
+
}
|
|
572
|
+
function aa(r) {
|
|
573
|
+
if (!Array.isArray(r))
|
|
574
|
+
return process.env.NODE_ENV !== "production" && n("Invalid argument supplied to oneOfType, expected an instance of array."), d;
|
|
575
|
+
for (var m = 0; m < r.length; m++) {
|
|
576
|
+
var g = r[m];
|
|
577
|
+
if (typeof g != "function")
|
|
578
|
+
return n(
|
|
579
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + na(g) + " at index " + m + "."
|
|
580
|
+
), d;
|
|
581
|
+
}
|
|
582
|
+
function y(f, E, v, h, T) {
|
|
583
|
+
for (var _ = [], k = 0; k < r.length; k++) {
|
|
584
|
+
var W = r[k], p = W(f, E, v, h, T, i);
|
|
585
|
+
if (p == null)
|
|
586
|
+
return null;
|
|
587
|
+
p.data && t(p.data, "expectedType") && _.push(p.data.expectedType);
|
|
588
|
+
}
|
|
589
|
+
var B = _.length > 0 ? ", expected one of type [" + _.join(", ") + "]" : "";
|
|
590
|
+
return new S("Invalid " + h + " `" + T + "` supplied to " + ("`" + v + "`" + B + "."));
|
|
591
|
+
}
|
|
592
|
+
return M(y);
|
|
593
|
+
}
|
|
594
|
+
function ea() {
|
|
595
|
+
function r(m, g, y, f, E) {
|
|
596
|
+
return F(m[g]) ? null : new S("Invalid " + f + " `" + E + "` supplied to " + ("`" + y + "`, expected a ReactNode."));
|
|
597
|
+
}
|
|
598
|
+
return M(r);
|
|
599
|
+
}
|
|
600
|
+
function ra(r, m, g, y, f) {
|
|
601
|
+
return new S(
|
|
602
|
+
(r || "React class") + ": " + m + " type `" + g + "." + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + f + "`."
|
|
603
|
+
);
|
|
604
|
+
}
|
|
605
|
+
function pa(r) {
|
|
606
|
+
function m(g, y, f, E, v) {
|
|
607
|
+
var h = g[y], T = N(h);
|
|
608
|
+
if (T !== "object")
|
|
609
|
+
return new S("Invalid " + E + " `" + v + "` of type `" + T + "` " + ("supplied to `" + f + "`, expected `object`."));
|
|
610
|
+
for (var _ in r) {
|
|
611
|
+
var k = r[_];
|
|
612
|
+
if (typeof k != "function")
|
|
613
|
+
return ra(f, E, v, _, X(k));
|
|
614
|
+
var W = k(h, _, f, E, v + "." + _, i);
|
|
615
|
+
if (W)
|
|
616
|
+
return W;
|
|
617
|
+
}
|
|
618
|
+
return null;
|
|
619
|
+
}
|
|
620
|
+
return M(m);
|
|
621
|
+
}
|
|
622
|
+
function ta(r) {
|
|
623
|
+
function m(g, y, f, E, v) {
|
|
624
|
+
var h = g[y], T = N(h);
|
|
625
|
+
if (T !== "object")
|
|
626
|
+
return new S("Invalid " + E + " `" + v + "` of type `" + T + "` " + ("supplied to `" + f + "`, expected `object`."));
|
|
627
|
+
var _ = e({}, g[y], r);
|
|
628
|
+
for (var k in _) {
|
|
629
|
+
var W = r[k];
|
|
630
|
+
if (t(r, k) && typeof W != "function")
|
|
631
|
+
return ra(f, E, v, k, X(W));
|
|
632
|
+
if (!W)
|
|
633
|
+
return new S(
|
|
634
|
+
"Invalid " + E + " `" + v + "` key `" + k + "` supplied to `" + f + "`.\nBad object: " + JSON.stringify(g[y], null, " ") + `
|
|
635
|
+
Valid keys: ` + JSON.stringify(Object.keys(r), null, " ")
|
|
636
|
+
);
|
|
637
|
+
var p = W(h, k, f, E, v + "." + k, i);
|
|
638
|
+
if (p)
|
|
639
|
+
return p;
|
|
640
|
+
}
|
|
641
|
+
return null;
|
|
642
|
+
}
|
|
643
|
+
return M(m);
|
|
644
|
+
}
|
|
645
|
+
function F(r) {
|
|
646
|
+
switch (typeof r) {
|
|
647
|
+
case "number":
|
|
648
|
+
case "string":
|
|
649
|
+
case "undefined":
|
|
650
|
+
return !0;
|
|
651
|
+
case "boolean":
|
|
652
|
+
return !r;
|
|
653
|
+
case "object":
|
|
654
|
+
if (Array.isArray(r))
|
|
655
|
+
return r.every(F);
|
|
656
|
+
if (r === null || c(r))
|
|
657
|
+
return !0;
|
|
658
|
+
var m = w(r);
|
|
659
|
+
if (m) {
|
|
660
|
+
var g = m.call(r), y;
|
|
661
|
+
if (m !== r.entries) {
|
|
662
|
+
for (; !(y = g.next()).done; )
|
|
663
|
+
if (!F(y.value))
|
|
664
|
+
return !1;
|
|
665
|
+
} else
|
|
666
|
+
for (; !(y = g.next()).done; ) {
|
|
667
|
+
var f = y.value;
|
|
668
|
+
if (f && !F(f[1]))
|
|
669
|
+
return !1;
|
|
670
|
+
}
|
|
671
|
+
} else
|
|
672
|
+
return !1;
|
|
673
|
+
return !0;
|
|
674
|
+
default:
|
|
675
|
+
return !1;
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
function H(r, m) {
|
|
679
|
+
return r === "symbol" ? !0 : m ? m["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && m instanceof Symbol : !1;
|
|
680
|
+
}
|
|
681
|
+
function N(r) {
|
|
682
|
+
var m = typeof r;
|
|
683
|
+
return Array.isArray(r) ? "array" : r instanceof RegExp ? "object" : H(m, r) ? "symbol" : m;
|
|
684
|
+
}
|
|
685
|
+
function X(r) {
|
|
686
|
+
if (typeof r > "u" || r === null)
|
|
687
|
+
return "" + r;
|
|
688
|
+
var m = N(r);
|
|
689
|
+
if (m === "object") {
|
|
690
|
+
if (r instanceof Date)
|
|
691
|
+
return "date";
|
|
692
|
+
if (r instanceof RegExp)
|
|
693
|
+
return "regexp";
|
|
694
|
+
}
|
|
695
|
+
return m;
|
|
696
|
+
}
|
|
697
|
+
function na(r) {
|
|
698
|
+
var m = X(r);
|
|
699
|
+
switch (m) {
|
|
700
|
+
case "array":
|
|
701
|
+
case "object":
|
|
702
|
+
return "an " + m;
|
|
703
|
+
case "boolean":
|
|
704
|
+
case "date":
|
|
705
|
+
case "regexp":
|
|
706
|
+
return "a " + m;
|
|
707
|
+
default:
|
|
708
|
+
return m;
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
function U(r) {
|
|
712
|
+
return !r.constructor || !r.constructor.name ? P : r.constructor.name;
|
|
713
|
+
}
|
|
714
|
+
return z.checkPropTypes = o, z.resetWarningCache = o.resetWarningCache, z.PropTypes = z, z;
|
|
715
|
+
}, Ya;
|
|
716
|
+
}
|
|
717
|
+
var Ua, ce;
|
|
718
|
+
function ei() {
|
|
719
|
+
if (ce) return Ua;
|
|
720
|
+
ce = 1;
|
|
721
|
+
var a = /* @__PURE__ */ Ja();
|
|
722
|
+
function e() {
|
|
723
|
+
}
|
|
724
|
+
function i() {
|
|
725
|
+
}
|
|
726
|
+
return i.resetWarningCache = e, Ua = function() {
|
|
727
|
+
function t(d, c, b, j, x, w) {
|
|
728
|
+
if (w !== a) {
|
|
729
|
+
var P = new Error(
|
|
730
|
+
"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"
|
|
731
|
+
);
|
|
732
|
+
throw P.name = "Invariant Violation", P;
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
t.isRequired = t;
|
|
736
|
+
function o() {
|
|
737
|
+
return t;
|
|
738
|
+
}
|
|
739
|
+
var n = {
|
|
740
|
+
array: t,
|
|
741
|
+
bigint: t,
|
|
742
|
+
bool: t,
|
|
743
|
+
func: t,
|
|
744
|
+
number: t,
|
|
745
|
+
object: t,
|
|
746
|
+
string: t,
|
|
747
|
+
symbol: t,
|
|
748
|
+
any: t,
|
|
749
|
+
arrayOf: o,
|
|
750
|
+
element: t,
|
|
751
|
+
elementType: t,
|
|
752
|
+
instanceOf: o,
|
|
753
|
+
node: t,
|
|
754
|
+
objectOf: o,
|
|
755
|
+
oneOf: o,
|
|
756
|
+
oneOfType: o,
|
|
757
|
+
shape: o,
|
|
758
|
+
exact: o,
|
|
759
|
+
checkPropTypes: i,
|
|
760
|
+
resetWarningCache: e
|
|
761
|
+
};
|
|
762
|
+
return n.PropTypes = n, n;
|
|
763
|
+
}, Ua;
|
|
764
|
+
}
|
|
765
|
+
var le;
|
|
766
|
+
function ii() {
|
|
767
|
+
if (le) return ka.exports;
|
|
768
|
+
if (le = 1, process.env.NODE_ENV !== "production") {
|
|
769
|
+
var a = Ee(), e = !0;
|
|
770
|
+
ka.exports = /* @__PURE__ */ ai()(a.isElement, e);
|
|
771
|
+
} else
|
|
772
|
+
ka.exports = /* @__PURE__ */ ei()();
|
|
773
|
+
return ka.exports;
|
|
774
|
+
}
|
|
775
|
+
var ti = /* @__PURE__ */ ii();
|
|
776
|
+
const A = /* @__PURE__ */ ke(ti);
|
|
777
|
+
function sa(a, e, i, t) {
|
|
778
|
+
function o(n) {
|
|
779
|
+
return n instanceof i ? n : new i(function(d) {
|
|
780
|
+
d(n);
|
|
781
|
+
});
|
|
782
|
+
}
|
|
783
|
+
return new (i || (i = Promise))(function(n, d) {
|
|
784
|
+
function c(x) {
|
|
785
|
+
try {
|
|
786
|
+
j(t.next(x));
|
|
787
|
+
} catch (w) {
|
|
788
|
+
d(w);
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
function b(x) {
|
|
792
|
+
try {
|
|
793
|
+
j(t.throw(x));
|
|
794
|
+
} catch (w) {
|
|
795
|
+
d(w);
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
function j(x) {
|
|
799
|
+
x.done ? n(x.value) : o(x.value).then(c, b);
|
|
800
|
+
}
|
|
801
|
+
j((t = t.apply(a, e || [])).next());
|
|
802
|
+
});
|
|
803
|
+
}
|
|
804
|
+
const ni = /* @__PURE__ */ new Map([
|
|
805
|
+
// https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
|
|
806
|
+
["1km", "application/vnd.1000minds.decision-model+xml"],
|
|
807
|
+
["3dml", "text/vnd.in3d.3dml"],
|
|
808
|
+
["3ds", "image/x-3ds"],
|
|
809
|
+
["3g2", "video/3gpp2"],
|
|
810
|
+
["3gp", "video/3gp"],
|
|
811
|
+
["3gpp", "video/3gpp"],
|
|
812
|
+
["3mf", "model/3mf"],
|
|
813
|
+
["7z", "application/x-7z-compressed"],
|
|
814
|
+
["7zip", "application/x-7z-compressed"],
|
|
815
|
+
["123", "application/vnd.lotus-1-2-3"],
|
|
816
|
+
["aab", "application/x-authorware-bin"],
|
|
817
|
+
["aac", "audio/x-acc"],
|
|
818
|
+
["aam", "application/x-authorware-map"],
|
|
819
|
+
["aas", "application/x-authorware-seg"],
|
|
820
|
+
["abw", "application/x-abiword"],
|
|
821
|
+
["ac", "application/vnd.nokia.n-gage.ac+xml"],
|
|
822
|
+
["ac3", "audio/ac3"],
|
|
823
|
+
["acc", "application/vnd.americandynamics.acc"],
|
|
824
|
+
["ace", "application/x-ace-compressed"],
|
|
825
|
+
["acu", "application/vnd.acucobol"],
|
|
826
|
+
["acutc", "application/vnd.acucorp"],
|
|
827
|
+
["adp", "audio/adpcm"],
|
|
828
|
+
["aep", "application/vnd.audiograph"],
|
|
829
|
+
["afm", "application/x-font-type1"],
|
|
830
|
+
["afp", "application/vnd.ibm.modcap"],
|
|
831
|
+
["ahead", "application/vnd.ahead.space"],
|
|
832
|
+
["ai", "application/pdf"],
|
|
833
|
+
["aif", "audio/x-aiff"],
|
|
834
|
+
["aifc", "audio/x-aiff"],
|
|
835
|
+
["aiff", "audio/x-aiff"],
|
|
836
|
+
["air", "application/vnd.adobe.air-application-installer-package+zip"],
|
|
837
|
+
["ait", "application/vnd.dvb.ait"],
|
|
838
|
+
["ami", "application/vnd.amiga.ami"],
|
|
839
|
+
["amr", "audio/amr"],
|
|
840
|
+
["apk", "application/vnd.android.package-archive"],
|
|
841
|
+
["apng", "image/apng"],
|
|
842
|
+
["appcache", "text/cache-manifest"],
|
|
843
|
+
["application", "application/x-ms-application"],
|
|
844
|
+
["apr", "application/vnd.lotus-approach"],
|
|
845
|
+
["arc", "application/x-freearc"],
|
|
846
|
+
["arj", "application/x-arj"],
|
|
847
|
+
["asc", "application/pgp-signature"],
|
|
848
|
+
["asf", "video/x-ms-asf"],
|
|
849
|
+
["asm", "text/x-asm"],
|
|
850
|
+
["aso", "application/vnd.accpac.simply.aso"],
|
|
851
|
+
["asx", "video/x-ms-asf"],
|
|
852
|
+
["atc", "application/vnd.acucorp"],
|
|
853
|
+
["atom", "application/atom+xml"],
|
|
854
|
+
["atomcat", "application/atomcat+xml"],
|
|
855
|
+
["atomdeleted", "application/atomdeleted+xml"],
|
|
856
|
+
["atomsvc", "application/atomsvc+xml"],
|
|
857
|
+
["atx", "application/vnd.antix.game-component"],
|
|
858
|
+
["au", "audio/x-au"],
|
|
859
|
+
["avi", "video/x-msvideo"],
|
|
860
|
+
["avif", "image/avif"],
|
|
861
|
+
["aw", "application/applixware"],
|
|
862
|
+
["azf", "application/vnd.airzip.filesecure.azf"],
|
|
863
|
+
["azs", "application/vnd.airzip.filesecure.azs"],
|
|
864
|
+
["azv", "image/vnd.airzip.accelerator.azv"],
|
|
865
|
+
["azw", "application/vnd.amazon.ebook"],
|
|
866
|
+
["b16", "image/vnd.pco.b16"],
|
|
867
|
+
["bat", "application/x-msdownload"],
|
|
868
|
+
["bcpio", "application/x-bcpio"],
|
|
869
|
+
["bdf", "application/x-font-bdf"],
|
|
870
|
+
["bdm", "application/vnd.syncml.dm+wbxml"],
|
|
871
|
+
["bdoc", "application/x-bdoc"],
|
|
872
|
+
["bed", "application/vnd.realvnc.bed"],
|
|
873
|
+
["bh2", "application/vnd.fujitsu.oasysprs"],
|
|
874
|
+
["bin", "application/octet-stream"],
|
|
875
|
+
["blb", "application/x-blorb"],
|
|
876
|
+
["blorb", "application/x-blorb"],
|
|
877
|
+
["bmi", "application/vnd.bmi"],
|
|
878
|
+
["bmml", "application/vnd.balsamiq.bmml+xml"],
|
|
879
|
+
["bmp", "image/bmp"],
|
|
880
|
+
["book", "application/vnd.framemaker"],
|
|
881
|
+
["box", "application/vnd.previewsystems.box"],
|
|
882
|
+
["boz", "application/x-bzip2"],
|
|
883
|
+
["bpk", "application/octet-stream"],
|
|
884
|
+
["bpmn", "application/octet-stream"],
|
|
885
|
+
["bsp", "model/vnd.valve.source.compiled-map"],
|
|
886
|
+
["btif", "image/prs.btif"],
|
|
887
|
+
["buffer", "application/octet-stream"],
|
|
888
|
+
["bz", "application/x-bzip"],
|
|
889
|
+
["bz2", "application/x-bzip2"],
|
|
890
|
+
["c", "text/x-c"],
|
|
891
|
+
["c4d", "application/vnd.clonk.c4group"],
|
|
892
|
+
["c4f", "application/vnd.clonk.c4group"],
|
|
893
|
+
["c4g", "application/vnd.clonk.c4group"],
|
|
894
|
+
["c4p", "application/vnd.clonk.c4group"],
|
|
895
|
+
["c4u", "application/vnd.clonk.c4group"],
|
|
896
|
+
["c11amc", "application/vnd.cluetrust.cartomobile-config"],
|
|
897
|
+
["c11amz", "application/vnd.cluetrust.cartomobile-config-pkg"],
|
|
898
|
+
["cab", "application/vnd.ms-cab-compressed"],
|
|
899
|
+
["caf", "audio/x-caf"],
|
|
900
|
+
["cap", "application/vnd.tcpdump.pcap"],
|
|
901
|
+
["car", "application/vnd.curl.car"],
|
|
902
|
+
["cat", "application/vnd.ms-pki.seccat"],
|
|
903
|
+
["cb7", "application/x-cbr"],
|
|
904
|
+
["cba", "application/x-cbr"],
|
|
905
|
+
["cbr", "application/x-cbr"],
|
|
906
|
+
["cbt", "application/x-cbr"],
|
|
907
|
+
["cbz", "application/x-cbr"],
|
|
908
|
+
["cc", "text/x-c"],
|
|
909
|
+
["cco", "application/x-cocoa"],
|
|
910
|
+
["cct", "application/x-director"],
|
|
911
|
+
["ccxml", "application/ccxml+xml"],
|
|
912
|
+
["cdbcmsg", "application/vnd.contact.cmsg"],
|
|
913
|
+
["cda", "application/x-cdf"],
|
|
914
|
+
["cdf", "application/x-netcdf"],
|
|
915
|
+
["cdfx", "application/cdfx+xml"],
|
|
916
|
+
["cdkey", "application/vnd.mediastation.cdkey"],
|
|
917
|
+
["cdmia", "application/cdmi-capability"],
|
|
918
|
+
["cdmic", "application/cdmi-container"],
|
|
919
|
+
["cdmid", "application/cdmi-domain"],
|
|
920
|
+
["cdmio", "application/cdmi-object"],
|
|
921
|
+
["cdmiq", "application/cdmi-queue"],
|
|
922
|
+
["cdr", "application/cdr"],
|
|
923
|
+
["cdx", "chemical/x-cdx"],
|
|
924
|
+
["cdxml", "application/vnd.chemdraw+xml"],
|
|
925
|
+
["cdy", "application/vnd.cinderella"],
|
|
926
|
+
["cer", "application/pkix-cert"],
|
|
927
|
+
["cfs", "application/x-cfs-compressed"],
|
|
928
|
+
["cgm", "image/cgm"],
|
|
929
|
+
["chat", "application/x-chat"],
|
|
930
|
+
["chm", "application/vnd.ms-htmlhelp"],
|
|
931
|
+
["chrt", "application/vnd.kde.kchart"],
|
|
932
|
+
["cif", "chemical/x-cif"],
|
|
933
|
+
["cii", "application/vnd.anser-web-certificate-issue-initiation"],
|
|
934
|
+
["cil", "application/vnd.ms-artgalry"],
|
|
935
|
+
["cjs", "application/node"],
|
|
936
|
+
["cla", "application/vnd.claymore"],
|
|
937
|
+
["class", "application/octet-stream"],
|
|
938
|
+
["clkk", "application/vnd.crick.clicker.keyboard"],
|
|
939
|
+
["clkp", "application/vnd.crick.clicker.palette"],
|
|
940
|
+
["clkt", "application/vnd.crick.clicker.template"],
|
|
941
|
+
["clkw", "application/vnd.crick.clicker.wordbank"],
|
|
942
|
+
["clkx", "application/vnd.crick.clicker"],
|
|
943
|
+
["clp", "application/x-msclip"],
|
|
944
|
+
["cmc", "application/vnd.cosmocaller"],
|
|
945
|
+
["cmdf", "chemical/x-cmdf"],
|
|
946
|
+
["cml", "chemical/x-cml"],
|
|
947
|
+
["cmp", "application/vnd.yellowriver-custom-menu"],
|
|
948
|
+
["cmx", "image/x-cmx"],
|
|
949
|
+
["cod", "application/vnd.rim.cod"],
|
|
950
|
+
["coffee", "text/coffeescript"],
|
|
951
|
+
["com", "application/x-msdownload"],
|
|
952
|
+
["conf", "text/plain"],
|
|
953
|
+
["cpio", "application/x-cpio"],
|
|
954
|
+
["cpp", "text/x-c"],
|
|
955
|
+
["cpt", "application/mac-compactpro"],
|
|
956
|
+
["crd", "application/x-mscardfile"],
|
|
957
|
+
["crl", "application/pkix-crl"],
|
|
958
|
+
["crt", "application/x-x509-ca-cert"],
|
|
959
|
+
["crx", "application/x-chrome-extension"],
|
|
960
|
+
["cryptonote", "application/vnd.rig.cryptonote"],
|
|
961
|
+
["csh", "application/x-csh"],
|
|
962
|
+
["csl", "application/vnd.citationstyles.style+xml"],
|
|
963
|
+
["csml", "chemical/x-csml"],
|
|
964
|
+
["csp", "application/vnd.commonspace"],
|
|
965
|
+
["csr", "application/octet-stream"],
|
|
966
|
+
["css", "text/css"],
|
|
967
|
+
["cst", "application/x-director"],
|
|
968
|
+
["csv", "text/csv"],
|
|
969
|
+
["cu", "application/cu-seeme"],
|
|
970
|
+
["curl", "text/vnd.curl"],
|
|
971
|
+
["cww", "application/prs.cww"],
|
|
972
|
+
["cxt", "application/x-director"],
|
|
973
|
+
["cxx", "text/x-c"],
|
|
974
|
+
["dae", "model/vnd.collada+xml"],
|
|
975
|
+
["daf", "application/vnd.mobius.daf"],
|
|
976
|
+
["dart", "application/vnd.dart"],
|
|
977
|
+
["dataless", "application/vnd.fdsn.seed"],
|
|
978
|
+
["davmount", "application/davmount+xml"],
|
|
979
|
+
["dbf", "application/vnd.dbf"],
|
|
980
|
+
["dbk", "application/docbook+xml"],
|
|
981
|
+
["dcr", "application/x-director"],
|
|
982
|
+
["dcurl", "text/vnd.curl.dcurl"],
|
|
983
|
+
["dd2", "application/vnd.oma.dd2+xml"],
|
|
984
|
+
["ddd", "application/vnd.fujixerox.ddd"],
|
|
985
|
+
["ddf", "application/vnd.syncml.dmddf+xml"],
|
|
986
|
+
["dds", "image/vnd.ms-dds"],
|
|
987
|
+
["deb", "application/x-debian-package"],
|
|
988
|
+
["def", "text/plain"],
|
|
989
|
+
["deploy", "application/octet-stream"],
|
|
990
|
+
["der", "application/x-x509-ca-cert"],
|
|
991
|
+
["dfac", "application/vnd.dreamfactory"],
|
|
992
|
+
["dgc", "application/x-dgc-compressed"],
|
|
993
|
+
["dic", "text/x-c"],
|
|
994
|
+
["dir", "application/x-director"],
|
|
995
|
+
["dis", "application/vnd.mobius.dis"],
|
|
996
|
+
["disposition-notification", "message/disposition-notification"],
|
|
997
|
+
["dist", "application/octet-stream"],
|
|
998
|
+
["distz", "application/octet-stream"],
|
|
999
|
+
["djv", "image/vnd.djvu"],
|
|
1000
|
+
["djvu", "image/vnd.djvu"],
|
|
1001
|
+
["dll", "application/octet-stream"],
|
|
1002
|
+
["dmg", "application/x-apple-diskimage"],
|
|
1003
|
+
["dmn", "application/octet-stream"],
|
|
1004
|
+
["dmp", "application/vnd.tcpdump.pcap"],
|
|
1005
|
+
["dms", "application/octet-stream"],
|
|
1006
|
+
["dna", "application/vnd.dna"],
|
|
1007
|
+
["doc", "application/msword"],
|
|
1008
|
+
["docm", "application/vnd.ms-word.template.macroEnabled.12"],
|
|
1009
|
+
["docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"],
|
|
1010
|
+
["dot", "application/msword"],
|
|
1011
|
+
["dotm", "application/vnd.ms-word.template.macroEnabled.12"],
|
|
1012
|
+
["dotx", "application/vnd.openxmlformats-officedocument.wordprocessingml.template"],
|
|
1013
|
+
["dp", "application/vnd.osgi.dp"],
|
|
1014
|
+
["dpg", "application/vnd.dpgraph"],
|
|
1015
|
+
["dra", "audio/vnd.dra"],
|
|
1016
|
+
["drle", "image/dicom-rle"],
|
|
1017
|
+
["dsc", "text/prs.lines.tag"],
|
|
1018
|
+
["dssc", "application/dssc+der"],
|
|
1019
|
+
["dtb", "application/x-dtbook+xml"],
|
|
1020
|
+
["dtd", "application/xml-dtd"],
|
|
1021
|
+
["dts", "audio/vnd.dts"],
|
|
1022
|
+
["dtshd", "audio/vnd.dts.hd"],
|
|
1023
|
+
["dump", "application/octet-stream"],
|
|
1024
|
+
["dvb", "video/vnd.dvb.file"],
|
|
1025
|
+
["dvi", "application/x-dvi"],
|
|
1026
|
+
["dwd", "application/atsc-dwd+xml"],
|
|
1027
|
+
["dwf", "model/vnd.dwf"],
|
|
1028
|
+
["dwg", "image/vnd.dwg"],
|
|
1029
|
+
["dxf", "image/vnd.dxf"],
|
|
1030
|
+
["dxp", "application/vnd.spotfire.dxp"],
|
|
1031
|
+
["dxr", "application/x-director"],
|
|
1032
|
+
["ear", "application/java-archive"],
|
|
1033
|
+
["ecelp4800", "audio/vnd.nuera.ecelp4800"],
|
|
1034
|
+
["ecelp7470", "audio/vnd.nuera.ecelp7470"],
|
|
1035
|
+
["ecelp9600", "audio/vnd.nuera.ecelp9600"],
|
|
1036
|
+
["ecma", "application/ecmascript"],
|
|
1037
|
+
["edm", "application/vnd.novadigm.edm"],
|
|
1038
|
+
["edx", "application/vnd.novadigm.edx"],
|
|
1039
|
+
["efif", "application/vnd.picsel"],
|
|
1040
|
+
["ei6", "application/vnd.pg.osasli"],
|
|
1041
|
+
["elc", "application/octet-stream"],
|
|
1042
|
+
["emf", "image/emf"],
|
|
1043
|
+
["eml", "message/rfc822"],
|
|
1044
|
+
["emma", "application/emma+xml"],
|
|
1045
|
+
["emotionml", "application/emotionml+xml"],
|
|
1046
|
+
["emz", "application/x-msmetafile"],
|
|
1047
|
+
["eol", "audio/vnd.digital-winds"],
|
|
1048
|
+
["eot", "application/vnd.ms-fontobject"],
|
|
1049
|
+
["eps", "application/postscript"],
|
|
1050
|
+
["epub", "application/epub+zip"],
|
|
1051
|
+
["es", "application/ecmascript"],
|
|
1052
|
+
["es3", "application/vnd.eszigno3+xml"],
|
|
1053
|
+
["esa", "application/vnd.osgi.subsystem"],
|
|
1054
|
+
["esf", "application/vnd.epson.esf"],
|
|
1055
|
+
["et3", "application/vnd.eszigno3+xml"],
|
|
1056
|
+
["etx", "text/x-setext"],
|
|
1057
|
+
["eva", "application/x-eva"],
|
|
1058
|
+
["evy", "application/x-envoy"],
|
|
1059
|
+
["exe", "application/octet-stream"],
|
|
1060
|
+
["exi", "application/exi"],
|
|
1061
|
+
["exp", "application/express"],
|
|
1062
|
+
["exr", "image/aces"],
|
|
1063
|
+
["ext", "application/vnd.novadigm.ext"],
|
|
1064
|
+
["ez", "application/andrew-inset"],
|
|
1065
|
+
["ez2", "application/vnd.ezpix-album"],
|
|
1066
|
+
["ez3", "application/vnd.ezpix-package"],
|
|
1067
|
+
["f", "text/x-fortran"],
|
|
1068
|
+
["f4v", "video/mp4"],
|
|
1069
|
+
["f77", "text/x-fortran"],
|
|
1070
|
+
["f90", "text/x-fortran"],
|
|
1071
|
+
["fbs", "image/vnd.fastbidsheet"],
|
|
1072
|
+
["fcdt", "application/vnd.adobe.formscentral.fcdt"],
|
|
1073
|
+
["fcs", "application/vnd.isac.fcs"],
|
|
1074
|
+
["fdf", "application/vnd.fdf"],
|
|
1075
|
+
["fdt", "application/fdt+xml"],
|
|
1076
|
+
["fe_launch", "application/vnd.denovo.fcselayout-link"],
|
|
1077
|
+
["fg5", "application/vnd.fujitsu.oasysgp"],
|
|
1078
|
+
["fgd", "application/x-director"],
|
|
1079
|
+
["fh", "image/x-freehand"],
|
|
1080
|
+
["fh4", "image/x-freehand"],
|
|
1081
|
+
["fh5", "image/x-freehand"],
|
|
1082
|
+
["fh7", "image/x-freehand"],
|
|
1083
|
+
["fhc", "image/x-freehand"],
|
|
1084
|
+
["fig", "application/x-xfig"],
|
|
1085
|
+
["fits", "image/fits"],
|
|
1086
|
+
["flac", "audio/x-flac"],
|
|
1087
|
+
["fli", "video/x-fli"],
|
|
1088
|
+
["flo", "application/vnd.micrografx.flo"],
|
|
1089
|
+
["flv", "video/x-flv"],
|
|
1090
|
+
["flw", "application/vnd.kde.kivio"],
|
|
1091
|
+
["flx", "text/vnd.fmi.flexstor"],
|
|
1092
|
+
["fly", "text/vnd.fly"],
|
|
1093
|
+
["fm", "application/vnd.framemaker"],
|
|
1094
|
+
["fnc", "application/vnd.frogans.fnc"],
|
|
1095
|
+
["fo", "application/vnd.software602.filler.form+xml"],
|
|
1096
|
+
["for", "text/x-fortran"],
|
|
1097
|
+
["fpx", "image/vnd.fpx"],
|
|
1098
|
+
["frame", "application/vnd.framemaker"],
|
|
1099
|
+
["fsc", "application/vnd.fsc.weblaunch"],
|
|
1100
|
+
["fst", "image/vnd.fst"],
|
|
1101
|
+
["ftc", "application/vnd.fluxtime.clip"],
|
|
1102
|
+
["fti", "application/vnd.anser-web-funds-transfer-initiation"],
|
|
1103
|
+
["fvt", "video/vnd.fvt"],
|
|
1104
|
+
["fxp", "application/vnd.adobe.fxp"],
|
|
1105
|
+
["fxpl", "application/vnd.adobe.fxp"],
|
|
1106
|
+
["fzs", "application/vnd.fuzzysheet"],
|
|
1107
|
+
["g2w", "application/vnd.geoplan"],
|
|
1108
|
+
["g3", "image/g3fax"],
|
|
1109
|
+
["g3w", "application/vnd.geospace"],
|
|
1110
|
+
["gac", "application/vnd.groove-account"],
|
|
1111
|
+
["gam", "application/x-tads"],
|
|
1112
|
+
["gbr", "application/rpki-ghostbusters"],
|
|
1113
|
+
["gca", "application/x-gca-compressed"],
|
|
1114
|
+
["gdl", "model/vnd.gdl"],
|
|
1115
|
+
["gdoc", "application/vnd.google-apps.document"],
|
|
1116
|
+
["geo", "application/vnd.dynageo"],
|
|
1117
|
+
["geojson", "application/geo+json"],
|
|
1118
|
+
["gex", "application/vnd.geometry-explorer"],
|
|
1119
|
+
["ggb", "application/vnd.geogebra.file"],
|
|
1120
|
+
["ggt", "application/vnd.geogebra.tool"],
|
|
1121
|
+
["ghf", "application/vnd.groove-help"],
|
|
1122
|
+
["gif", "image/gif"],
|
|
1123
|
+
["gim", "application/vnd.groove-identity-message"],
|
|
1124
|
+
["glb", "model/gltf-binary"],
|
|
1125
|
+
["gltf", "model/gltf+json"],
|
|
1126
|
+
["gml", "application/gml+xml"],
|
|
1127
|
+
["gmx", "application/vnd.gmx"],
|
|
1128
|
+
["gnumeric", "application/x-gnumeric"],
|
|
1129
|
+
["gpg", "application/gpg-keys"],
|
|
1130
|
+
["gph", "application/vnd.flographit"],
|
|
1131
|
+
["gpx", "application/gpx+xml"],
|
|
1132
|
+
["gqf", "application/vnd.grafeq"],
|
|
1133
|
+
["gqs", "application/vnd.grafeq"],
|
|
1134
|
+
["gram", "application/srgs"],
|
|
1135
|
+
["gramps", "application/x-gramps-xml"],
|
|
1136
|
+
["gre", "application/vnd.geometry-explorer"],
|
|
1137
|
+
["grv", "application/vnd.groove-injector"],
|
|
1138
|
+
["grxml", "application/srgs+xml"],
|
|
1139
|
+
["gsf", "application/x-font-ghostscript"],
|
|
1140
|
+
["gsheet", "application/vnd.google-apps.spreadsheet"],
|
|
1141
|
+
["gslides", "application/vnd.google-apps.presentation"],
|
|
1142
|
+
["gtar", "application/x-gtar"],
|
|
1143
|
+
["gtm", "application/vnd.groove-tool-message"],
|
|
1144
|
+
["gtw", "model/vnd.gtw"],
|
|
1145
|
+
["gv", "text/vnd.graphviz"],
|
|
1146
|
+
["gxf", "application/gxf"],
|
|
1147
|
+
["gxt", "application/vnd.geonext"],
|
|
1148
|
+
["gz", "application/gzip"],
|
|
1149
|
+
["gzip", "application/gzip"],
|
|
1150
|
+
["h", "text/x-c"],
|
|
1151
|
+
["h261", "video/h261"],
|
|
1152
|
+
["h263", "video/h263"],
|
|
1153
|
+
["h264", "video/h264"],
|
|
1154
|
+
["hal", "application/vnd.hal+xml"],
|
|
1155
|
+
["hbci", "application/vnd.hbci"],
|
|
1156
|
+
["hbs", "text/x-handlebars-template"],
|
|
1157
|
+
["hdd", "application/x-virtualbox-hdd"],
|
|
1158
|
+
["hdf", "application/x-hdf"],
|
|
1159
|
+
["heic", "image/heic"],
|
|
1160
|
+
["heics", "image/heic-sequence"],
|
|
1161
|
+
["heif", "image/heif"],
|
|
1162
|
+
["heifs", "image/heif-sequence"],
|
|
1163
|
+
["hej2", "image/hej2k"],
|
|
1164
|
+
["held", "application/atsc-held+xml"],
|
|
1165
|
+
["hh", "text/x-c"],
|
|
1166
|
+
["hjson", "application/hjson"],
|
|
1167
|
+
["hlp", "application/winhlp"],
|
|
1168
|
+
["hpgl", "application/vnd.hp-hpgl"],
|
|
1169
|
+
["hpid", "application/vnd.hp-hpid"],
|
|
1170
|
+
["hps", "application/vnd.hp-hps"],
|
|
1171
|
+
["hqx", "application/mac-binhex40"],
|
|
1172
|
+
["hsj2", "image/hsj2"],
|
|
1173
|
+
["htc", "text/x-component"],
|
|
1174
|
+
["htke", "application/vnd.kenameaapp"],
|
|
1175
|
+
["htm", "text/html"],
|
|
1176
|
+
["html", "text/html"],
|
|
1177
|
+
["hvd", "application/vnd.yamaha.hv-dic"],
|
|
1178
|
+
["hvp", "application/vnd.yamaha.hv-voice"],
|
|
1179
|
+
["hvs", "application/vnd.yamaha.hv-script"],
|
|
1180
|
+
["i2g", "application/vnd.intergeo"],
|
|
1181
|
+
["icc", "application/vnd.iccprofile"],
|
|
1182
|
+
["ice", "x-conference/x-cooltalk"],
|
|
1183
|
+
["icm", "application/vnd.iccprofile"],
|
|
1184
|
+
["ico", "image/x-icon"],
|
|
1185
|
+
["ics", "text/calendar"],
|
|
1186
|
+
["ief", "image/ief"],
|
|
1187
|
+
["ifb", "text/calendar"],
|
|
1188
|
+
["ifm", "application/vnd.shana.informed.formdata"],
|
|
1189
|
+
["iges", "model/iges"],
|
|
1190
|
+
["igl", "application/vnd.igloader"],
|
|
1191
|
+
["igm", "application/vnd.insors.igm"],
|
|
1192
|
+
["igs", "model/iges"],
|
|
1193
|
+
["igx", "application/vnd.micrografx.igx"],
|
|
1194
|
+
["iif", "application/vnd.shana.informed.interchange"],
|
|
1195
|
+
["img", "application/octet-stream"],
|
|
1196
|
+
["imp", "application/vnd.accpac.simply.imp"],
|
|
1197
|
+
["ims", "application/vnd.ms-ims"],
|
|
1198
|
+
["in", "text/plain"],
|
|
1199
|
+
["ini", "text/plain"],
|
|
1200
|
+
["ink", "application/inkml+xml"],
|
|
1201
|
+
["inkml", "application/inkml+xml"],
|
|
1202
|
+
["install", "application/x-install-instructions"],
|
|
1203
|
+
["iota", "application/vnd.astraea-software.iota"],
|
|
1204
|
+
["ipfix", "application/ipfix"],
|
|
1205
|
+
["ipk", "application/vnd.shana.informed.package"],
|
|
1206
|
+
["irm", "application/vnd.ibm.rights-management"],
|
|
1207
|
+
["irp", "application/vnd.irepository.package+xml"],
|
|
1208
|
+
["iso", "application/x-iso9660-image"],
|
|
1209
|
+
["itp", "application/vnd.shana.informed.formtemplate"],
|
|
1210
|
+
["its", "application/its+xml"],
|
|
1211
|
+
["ivp", "application/vnd.immervision-ivp"],
|
|
1212
|
+
["ivu", "application/vnd.immervision-ivu"],
|
|
1213
|
+
["jad", "text/vnd.sun.j2me.app-descriptor"],
|
|
1214
|
+
["jade", "text/jade"],
|
|
1215
|
+
["jam", "application/vnd.jam"],
|
|
1216
|
+
["jar", "application/java-archive"],
|
|
1217
|
+
["jardiff", "application/x-java-archive-diff"],
|
|
1218
|
+
["java", "text/x-java-source"],
|
|
1219
|
+
["jhc", "image/jphc"],
|
|
1220
|
+
["jisp", "application/vnd.jisp"],
|
|
1221
|
+
["jls", "image/jls"],
|
|
1222
|
+
["jlt", "application/vnd.hp-jlyt"],
|
|
1223
|
+
["jng", "image/x-jng"],
|
|
1224
|
+
["jnlp", "application/x-java-jnlp-file"],
|
|
1225
|
+
["joda", "application/vnd.joost.joda-archive"],
|
|
1226
|
+
["jp2", "image/jp2"],
|
|
1227
|
+
["jpe", "image/jpeg"],
|
|
1228
|
+
["jpeg", "image/jpeg"],
|
|
1229
|
+
["jpf", "image/jpx"],
|
|
1230
|
+
["jpg", "image/jpeg"],
|
|
1231
|
+
["jpg2", "image/jp2"],
|
|
1232
|
+
["jpgm", "video/jpm"],
|
|
1233
|
+
["jpgv", "video/jpeg"],
|
|
1234
|
+
["jph", "image/jph"],
|
|
1235
|
+
["jpm", "video/jpm"],
|
|
1236
|
+
["jpx", "image/jpx"],
|
|
1237
|
+
["js", "application/javascript"],
|
|
1238
|
+
["json", "application/json"],
|
|
1239
|
+
["json5", "application/json5"],
|
|
1240
|
+
["jsonld", "application/ld+json"],
|
|
1241
|
+
// https://jsonlines.org/
|
|
1242
|
+
["jsonl", "application/jsonl"],
|
|
1243
|
+
["jsonml", "application/jsonml+json"],
|
|
1244
|
+
["jsx", "text/jsx"],
|
|
1245
|
+
["jxr", "image/jxr"],
|
|
1246
|
+
["jxra", "image/jxra"],
|
|
1247
|
+
["jxrs", "image/jxrs"],
|
|
1248
|
+
["jxs", "image/jxs"],
|
|
1249
|
+
["jxsc", "image/jxsc"],
|
|
1250
|
+
["jxsi", "image/jxsi"],
|
|
1251
|
+
["jxss", "image/jxss"],
|
|
1252
|
+
["kar", "audio/midi"],
|
|
1253
|
+
["karbon", "application/vnd.kde.karbon"],
|
|
1254
|
+
["kdb", "application/octet-stream"],
|
|
1255
|
+
["kdbx", "application/x-keepass2"],
|
|
1256
|
+
["key", "application/x-iwork-keynote-sffkey"],
|
|
1257
|
+
["kfo", "application/vnd.kde.kformula"],
|
|
1258
|
+
["kia", "application/vnd.kidspiration"],
|
|
1259
|
+
["kml", "application/vnd.google-earth.kml+xml"],
|
|
1260
|
+
["kmz", "application/vnd.google-earth.kmz"],
|
|
1261
|
+
["kne", "application/vnd.kinar"],
|
|
1262
|
+
["knp", "application/vnd.kinar"],
|
|
1263
|
+
["kon", "application/vnd.kde.kontour"],
|
|
1264
|
+
["kpr", "application/vnd.kde.kpresenter"],
|
|
1265
|
+
["kpt", "application/vnd.kde.kpresenter"],
|
|
1266
|
+
["kpxx", "application/vnd.ds-keypoint"],
|
|
1267
|
+
["ksp", "application/vnd.kde.kspread"],
|
|
1268
|
+
["ktr", "application/vnd.kahootz"],
|
|
1269
|
+
["ktx", "image/ktx"],
|
|
1270
|
+
["ktx2", "image/ktx2"],
|
|
1271
|
+
["ktz", "application/vnd.kahootz"],
|
|
1272
|
+
["kwd", "application/vnd.kde.kword"],
|
|
1273
|
+
["kwt", "application/vnd.kde.kword"],
|
|
1274
|
+
["lasxml", "application/vnd.las.las+xml"],
|
|
1275
|
+
["latex", "application/x-latex"],
|
|
1276
|
+
["lbd", "application/vnd.llamagraphics.life-balance.desktop"],
|
|
1277
|
+
["lbe", "application/vnd.llamagraphics.life-balance.exchange+xml"],
|
|
1278
|
+
["les", "application/vnd.hhe.lesson-player"],
|
|
1279
|
+
["less", "text/less"],
|
|
1280
|
+
["lgr", "application/lgr+xml"],
|
|
1281
|
+
["lha", "application/octet-stream"],
|
|
1282
|
+
["link66", "application/vnd.route66.link66+xml"],
|
|
1283
|
+
["list", "text/plain"],
|
|
1284
|
+
["list3820", "application/vnd.ibm.modcap"],
|
|
1285
|
+
["listafp", "application/vnd.ibm.modcap"],
|
|
1286
|
+
["litcoffee", "text/coffeescript"],
|
|
1287
|
+
["lnk", "application/x-ms-shortcut"],
|
|
1288
|
+
["log", "text/plain"],
|
|
1289
|
+
["lostxml", "application/lost+xml"],
|
|
1290
|
+
["lrf", "application/octet-stream"],
|
|
1291
|
+
["lrm", "application/vnd.ms-lrm"],
|
|
1292
|
+
["ltf", "application/vnd.frogans.ltf"],
|
|
1293
|
+
["lua", "text/x-lua"],
|
|
1294
|
+
["luac", "application/x-lua-bytecode"],
|
|
1295
|
+
["lvp", "audio/vnd.lucent.voice"],
|
|
1296
|
+
["lwp", "application/vnd.lotus-wordpro"],
|
|
1297
|
+
["lzh", "application/octet-stream"],
|
|
1298
|
+
["m1v", "video/mpeg"],
|
|
1299
|
+
["m2a", "audio/mpeg"],
|
|
1300
|
+
["m2v", "video/mpeg"],
|
|
1301
|
+
["m3a", "audio/mpeg"],
|
|
1302
|
+
["m3u", "text/plain"],
|
|
1303
|
+
["m3u8", "application/vnd.apple.mpegurl"],
|
|
1304
|
+
["m4a", "audio/x-m4a"],
|
|
1305
|
+
["m4p", "application/mp4"],
|
|
1306
|
+
["m4s", "video/iso.segment"],
|
|
1307
|
+
["m4u", "application/vnd.mpegurl"],
|
|
1308
|
+
["m4v", "video/x-m4v"],
|
|
1309
|
+
["m13", "application/x-msmediaview"],
|
|
1310
|
+
["m14", "application/x-msmediaview"],
|
|
1311
|
+
["m21", "application/mp21"],
|
|
1312
|
+
["ma", "application/mathematica"],
|
|
1313
|
+
["mads", "application/mads+xml"],
|
|
1314
|
+
["maei", "application/mmt-aei+xml"],
|
|
1315
|
+
["mag", "application/vnd.ecowin.chart"],
|
|
1316
|
+
["maker", "application/vnd.framemaker"],
|
|
1317
|
+
["man", "text/troff"],
|
|
1318
|
+
["manifest", "text/cache-manifest"],
|
|
1319
|
+
["map", "application/json"],
|
|
1320
|
+
["mar", "application/octet-stream"],
|
|
1321
|
+
["markdown", "text/markdown"],
|
|
1322
|
+
["mathml", "application/mathml+xml"],
|
|
1323
|
+
["mb", "application/mathematica"],
|
|
1324
|
+
["mbk", "application/vnd.mobius.mbk"],
|
|
1325
|
+
["mbox", "application/mbox"],
|
|
1326
|
+
["mc1", "application/vnd.medcalcdata"],
|
|
1327
|
+
["mcd", "application/vnd.mcd"],
|
|
1328
|
+
["mcurl", "text/vnd.curl.mcurl"],
|
|
1329
|
+
["md", "text/markdown"],
|
|
1330
|
+
["mdb", "application/x-msaccess"],
|
|
1331
|
+
["mdi", "image/vnd.ms-modi"],
|
|
1332
|
+
["mdx", "text/mdx"],
|
|
1333
|
+
["me", "text/troff"],
|
|
1334
|
+
["mesh", "model/mesh"],
|
|
1335
|
+
["meta4", "application/metalink4+xml"],
|
|
1336
|
+
["metalink", "application/metalink+xml"],
|
|
1337
|
+
["mets", "application/mets+xml"],
|
|
1338
|
+
["mfm", "application/vnd.mfmp"],
|
|
1339
|
+
["mft", "application/rpki-manifest"],
|
|
1340
|
+
["mgp", "application/vnd.osgeo.mapguide.package"],
|
|
1341
|
+
["mgz", "application/vnd.proteus.magazine"],
|
|
1342
|
+
["mid", "audio/midi"],
|
|
1343
|
+
["midi", "audio/midi"],
|
|
1344
|
+
["mie", "application/x-mie"],
|
|
1345
|
+
["mif", "application/vnd.mif"],
|
|
1346
|
+
["mime", "message/rfc822"],
|
|
1347
|
+
["mj2", "video/mj2"],
|
|
1348
|
+
["mjp2", "video/mj2"],
|
|
1349
|
+
["mjs", "application/javascript"],
|
|
1350
|
+
["mk3d", "video/x-matroska"],
|
|
1351
|
+
["mka", "audio/x-matroska"],
|
|
1352
|
+
["mkd", "text/x-markdown"],
|
|
1353
|
+
["mks", "video/x-matroska"],
|
|
1354
|
+
["mkv", "video/x-matroska"],
|
|
1355
|
+
["mlp", "application/vnd.dolby.mlp"],
|
|
1356
|
+
["mmd", "application/vnd.chipnuts.karaoke-mmd"],
|
|
1357
|
+
["mmf", "application/vnd.smaf"],
|
|
1358
|
+
["mml", "text/mathml"],
|
|
1359
|
+
["mmr", "image/vnd.fujixerox.edmics-mmr"],
|
|
1360
|
+
["mng", "video/x-mng"],
|
|
1361
|
+
["mny", "application/x-msmoney"],
|
|
1362
|
+
["mobi", "application/x-mobipocket-ebook"],
|
|
1363
|
+
["mods", "application/mods+xml"],
|
|
1364
|
+
["mov", "video/quicktime"],
|
|
1365
|
+
["movie", "video/x-sgi-movie"],
|
|
1366
|
+
["mp2", "audio/mpeg"],
|
|
1367
|
+
["mp2a", "audio/mpeg"],
|
|
1368
|
+
["mp3", "audio/mpeg"],
|
|
1369
|
+
["mp4", "video/mp4"],
|
|
1370
|
+
["mp4a", "audio/mp4"],
|
|
1371
|
+
["mp4s", "application/mp4"],
|
|
1372
|
+
["mp4v", "video/mp4"],
|
|
1373
|
+
["mp21", "application/mp21"],
|
|
1374
|
+
["mpc", "application/vnd.mophun.certificate"],
|
|
1375
|
+
["mpd", "application/dash+xml"],
|
|
1376
|
+
["mpe", "video/mpeg"],
|
|
1377
|
+
["mpeg", "video/mpeg"],
|
|
1378
|
+
["mpg", "video/mpeg"],
|
|
1379
|
+
["mpg4", "video/mp4"],
|
|
1380
|
+
["mpga", "audio/mpeg"],
|
|
1381
|
+
["mpkg", "application/vnd.apple.installer+xml"],
|
|
1382
|
+
["mpm", "application/vnd.blueice.multipass"],
|
|
1383
|
+
["mpn", "application/vnd.mophun.application"],
|
|
1384
|
+
["mpp", "application/vnd.ms-project"],
|
|
1385
|
+
["mpt", "application/vnd.ms-project"],
|
|
1386
|
+
["mpy", "application/vnd.ibm.minipay"],
|
|
1387
|
+
["mqy", "application/vnd.mobius.mqy"],
|
|
1388
|
+
["mrc", "application/marc"],
|
|
1389
|
+
["mrcx", "application/marcxml+xml"],
|
|
1390
|
+
["ms", "text/troff"],
|
|
1391
|
+
["mscml", "application/mediaservercontrol+xml"],
|
|
1392
|
+
["mseed", "application/vnd.fdsn.mseed"],
|
|
1393
|
+
["mseq", "application/vnd.mseq"],
|
|
1394
|
+
["msf", "application/vnd.epson.msf"],
|
|
1395
|
+
["msg", "application/vnd.ms-outlook"],
|
|
1396
|
+
["msh", "model/mesh"],
|
|
1397
|
+
["msi", "application/x-msdownload"],
|
|
1398
|
+
["msl", "application/vnd.mobius.msl"],
|
|
1399
|
+
["msm", "application/octet-stream"],
|
|
1400
|
+
["msp", "application/octet-stream"],
|
|
1401
|
+
["msty", "application/vnd.muvee.style"],
|
|
1402
|
+
["mtl", "model/mtl"],
|
|
1403
|
+
["mts", "model/vnd.mts"],
|
|
1404
|
+
["mus", "application/vnd.musician"],
|
|
1405
|
+
["musd", "application/mmt-usd+xml"],
|
|
1406
|
+
["musicxml", "application/vnd.recordare.musicxml+xml"],
|
|
1407
|
+
["mvb", "application/x-msmediaview"],
|
|
1408
|
+
["mvt", "application/vnd.mapbox-vector-tile"],
|
|
1409
|
+
["mwf", "application/vnd.mfer"],
|
|
1410
|
+
["mxf", "application/mxf"],
|
|
1411
|
+
["mxl", "application/vnd.recordare.musicxml"],
|
|
1412
|
+
["mxmf", "audio/mobile-xmf"],
|
|
1413
|
+
["mxml", "application/xv+xml"],
|
|
1414
|
+
["mxs", "application/vnd.triscape.mxs"],
|
|
1415
|
+
["mxu", "video/vnd.mpegurl"],
|
|
1416
|
+
["n-gage", "application/vnd.nokia.n-gage.symbian.install"],
|
|
1417
|
+
["n3", "text/n3"],
|
|
1418
|
+
["nb", "application/mathematica"],
|
|
1419
|
+
["nbp", "application/vnd.wolfram.player"],
|
|
1420
|
+
["nc", "application/x-netcdf"],
|
|
1421
|
+
["ncx", "application/x-dtbncx+xml"],
|
|
1422
|
+
["nfo", "text/x-nfo"],
|
|
1423
|
+
["ngdat", "application/vnd.nokia.n-gage.data"],
|
|
1424
|
+
["nitf", "application/vnd.nitf"],
|
|
1425
|
+
["nlu", "application/vnd.neurolanguage.nlu"],
|
|
1426
|
+
["nml", "application/vnd.enliven"],
|
|
1427
|
+
["nnd", "application/vnd.noblenet-directory"],
|
|
1428
|
+
["nns", "application/vnd.noblenet-sealer"],
|
|
1429
|
+
["nnw", "application/vnd.noblenet-web"],
|
|
1430
|
+
["npx", "image/vnd.net-fpx"],
|
|
1431
|
+
["nq", "application/n-quads"],
|
|
1432
|
+
["nsc", "application/x-conference"],
|
|
1433
|
+
["nsf", "application/vnd.lotus-notes"],
|
|
1434
|
+
["nt", "application/n-triples"],
|
|
1435
|
+
["ntf", "application/vnd.nitf"],
|
|
1436
|
+
["numbers", "application/x-iwork-numbers-sffnumbers"],
|
|
1437
|
+
["nzb", "application/x-nzb"],
|
|
1438
|
+
["oa2", "application/vnd.fujitsu.oasys2"],
|
|
1439
|
+
["oa3", "application/vnd.fujitsu.oasys3"],
|
|
1440
|
+
["oas", "application/vnd.fujitsu.oasys"],
|
|
1441
|
+
["obd", "application/x-msbinder"],
|
|
1442
|
+
["obgx", "application/vnd.openblox.game+xml"],
|
|
1443
|
+
["obj", "model/obj"],
|
|
1444
|
+
["oda", "application/oda"],
|
|
1445
|
+
["odb", "application/vnd.oasis.opendocument.database"],
|
|
1446
|
+
["odc", "application/vnd.oasis.opendocument.chart"],
|
|
1447
|
+
["odf", "application/vnd.oasis.opendocument.formula"],
|
|
1448
|
+
["odft", "application/vnd.oasis.opendocument.formula-template"],
|
|
1449
|
+
["odg", "application/vnd.oasis.opendocument.graphics"],
|
|
1450
|
+
["odi", "application/vnd.oasis.opendocument.image"],
|
|
1451
|
+
["odm", "application/vnd.oasis.opendocument.text-master"],
|
|
1452
|
+
["odp", "application/vnd.oasis.opendocument.presentation"],
|
|
1453
|
+
["ods", "application/vnd.oasis.opendocument.spreadsheet"],
|
|
1454
|
+
["odt", "application/vnd.oasis.opendocument.text"],
|
|
1455
|
+
["oga", "audio/ogg"],
|
|
1456
|
+
["ogex", "model/vnd.opengex"],
|
|
1457
|
+
["ogg", "audio/ogg"],
|
|
1458
|
+
["ogv", "video/ogg"],
|
|
1459
|
+
["ogx", "application/ogg"],
|
|
1460
|
+
["omdoc", "application/omdoc+xml"],
|
|
1461
|
+
["onepkg", "application/onenote"],
|
|
1462
|
+
["onetmp", "application/onenote"],
|
|
1463
|
+
["onetoc", "application/onenote"],
|
|
1464
|
+
["onetoc2", "application/onenote"],
|
|
1465
|
+
["opf", "application/oebps-package+xml"],
|
|
1466
|
+
["opml", "text/x-opml"],
|
|
1467
|
+
["oprc", "application/vnd.palm"],
|
|
1468
|
+
["opus", "audio/ogg"],
|
|
1469
|
+
["org", "text/x-org"],
|
|
1470
|
+
["osf", "application/vnd.yamaha.openscoreformat"],
|
|
1471
|
+
["osfpvg", "application/vnd.yamaha.openscoreformat.osfpvg+xml"],
|
|
1472
|
+
["osm", "application/vnd.openstreetmap.data+xml"],
|
|
1473
|
+
["otc", "application/vnd.oasis.opendocument.chart-template"],
|
|
1474
|
+
["otf", "font/otf"],
|
|
1475
|
+
["otg", "application/vnd.oasis.opendocument.graphics-template"],
|
|
1476
|
+
["oth", "application/vnd.oasis.opendocument.text-web"],
|
|
1477
|
+
["oti", "application/vnd.oasis.opendocument.image-template"],
|
|
1478
|
+
["otp", "application/vnd.oasis.opendocument.presentation-template"],
|
|
1479
|
+
["ots", "application/vnd.oasis.opendocument.spreadsheet-template"],
|
|
1480
|
+
["ott", "application/vnd.oasis.opendocument.text-template"],
|
|
1481
|
+
["ova", "application/x-virtualbox-ova"],
|
|
1482
|
+
["ovf", "application/x-virtualbox-ovf"],
|
|
1483
|
+
["owl", "application/rdf+xml"],
|
|
1484
|
+
["oxps", "application/oxps"],
|
|
1485
|
+
["oxt", "application/vnd.openofficeorg.extension"],
|
|
1486
|
+
["p", "text/x-pascal"],
|
|
1487
|
+
["p7a", "application/x-pkcs7-signature"],
|
|
1488
|
+
["p7b", "application/x-pkcs7-certificates"],
|
|
1489
|
+
["p7c", "application/pkcs7-mime"],
|
|
1490
|
+
["p7m", "application/pkcs7-mime"],
|
|
1491
|
+
["p7r", "application/x-pkcs7-certreqresp"],
|
|
1492
|
+
["p7s", "application/pkcs7-signature"],
|
|
1493
|
+
["p8", "application/pkcs8"],
|
|
1494
|
+
["p10", "application/x-pkcs10"],
|
|
1495
|
+
["p12", "application/x-pkcs12"],
|
|
1496
|
+
["pac", "application/x-ns-proxy-autoconfig"],
|
|
1497
|
+
["pages", "application/x-iwork-pages-sffpages"],
|
|
1498
|
+
["pas", "text/x-pascal"],
|
|
1499
|
+
["paw", "application/vnd.pawaafile"],
|
|
1500
|
+
["pbd", "application/vnd.powerbuilder6"],
|
|
1501
|
+
["pbm", "image/x-portable-bitmap"],
|
|
1502
|
+
["pcap", "application/vnd.tcpdump.pcap"],
|
|
1503
|
+
["pcf", "application/x-font-pcf"],
|
|
1504
|
+
["pcl", "application/vnd.hp-pcl"],
|
|
1505
|
+
["pclxl", "application/vnd.hp-pclxl"],
|
|
1506
|
+
["pct", "image/x-pict"],
|
|
1507
|
+
["pcurl", "application/vnd.curl.pcurl"],
|
|
1508
|
+
["pcx", "image/x-pcx"],
|
|
1509
|
+
["pdb", "application/x-pilot"],
|
|
1510
|
+
["pde", "text/x-processing"],
|
|
1511
|
+
["pdf", "application/pdf"],
|
|
1512
|
+
["pem", "application/x-x509-user-cert"],
|
|
1513
|
+
["pfa", "application/x-font-type1"],
|
|
1514
|
+
["pfb", "application/x-font-type1"],
|
|
1515
|
+
["pfm", "application/x-font-type1"],
|
|
1516
|
+
["pfr", "application/font-tdpfr"],
|
|
1517
|
+
["pfx", "application/x-pkcs12"],
|
|
1518
|
+
["pgm", "image/x-portable-graymap"],
|
|
1519
|
+
["pgn", "application/x-chess-pgn"],
|
|
1520
|
+
["pgp", "application/pgp"],
|
|
1521
|
+
["php", "application/x-httpd-php"],
|
|
1522
|
+
["php3", "application/x-httpd-php"],
|
|
1523
|
+
["php4", "application/x-httpd-php"],
|
|
1524
|
+
["phps", "application/x-httpd-php-source"],
|
|
1525
|
+
["phtml", "application/x-httpd-php"],
|
|
1526
|
+
["pic", "image/x-pict"],
|
|
1527
|
+
["pkg", "application/octet-stream"],
|
|
1528
|
+
["pki", "application/pkixcmp"],
|
|
1529
|
+
["pkipath", "application/pkix-pkipath"],
|
|
1530
|
+
["pkpass", "application/vnd.apple.pkpass"],
|
|
1531
|
+
["pl", "application/x-perl"],
|
|
1532
|
+
["plb", "application/vnd.3gpp.pic-bw-large"],
|
|
1533
|
+
["plc", "application/vnd.mobius.plc"],
|
|
1534
|
+
["plf", "application/vnd.pocketlearn"],
|
|
1535
|
+
["pls", "application/pls+xml"],
|
|
1536
|
+
["pm", "application/x-perl"],
|
|
1537
|
+
["pml", "application/vnd.ctc-posml"],
|
|
1538
|
+
["png", "image/png"],
|
|
1539
|
+
["pnm", "image/x-portable-anymap"],
|
|
1540
|
+
["portpkg", "application/vnd.macports.portpkg"],
|
|
1541
|
+
["pot", "application/vnd.ms-powerpoint"],
|
|
1542
|
+
["potm", "application/vnd.ms-powerpoint.presentation.macroEnabled.12"],
|
|
1543
|
+
["potx", "application/vnd.openxmlformats-officedocument.presentationml.template"],
|
|
1544
|
+
["ppa", "application/vnd.ms-powerpoint"],
|
|
1545
|
+
["ppam", "application/vnd.ms-powerpoint.addin.macroEnabled.12"],
|
|
1546
|
+
["ppd", "application/vnd.cups-ppd"],
|
|
1547
|
+
["ppm", "image/x-portable-pixmap"],
|
|
1548
|
+
["pps", "application/vnd.ms-powerpoint"],
|
|
1549
|
+
["ppsm", "application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],
|
|
1550
|
+
["ppsx", "application/vnd.openxmlformats-officedocument.presentationml.slideshow"],
|
|
1551
|
+
["ppt", "application/powerpoint"],
|
|
1552
|
+
["pptm", "application/vnd.ms-powerpoint.presentation.macroEnabled.12"],
|
|
1553
|
+
["pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation"],
|
|
1554
|
+
["pqa", "application/vnd.palm"],
|
|
1555
|
+
["prc", "application/x-pilot"],
|
|
1556
|
+
["pre", "application/vnd.lotus-freelance"],
|
|
1557
|
+
["prf", "application/pics-rules"],
|
|
1558
|
+
["provx", "application/provenance+xml"],
|
|
1559
|
+
["ps", "application/postscript"],
|
|
1560
|
+
["psb", "application/vnd.3gpp.pic-bw-small"],
|
|
1561
|
+
["psd", "application/x-photoshop"],
|
|
1562
|
+
["psf", "application/x-font-linux-psf"],
|
|
1563
|
+
["pskcxml", "application/pskc+xml"],
|
|
1564
|
+
["pti", "image/prs.pti"],
|
|
1565
|
+
["ptid", "application/vnd.pvi.ptid1"],
|
|
1566
|
+
["pub", "application/x-mspublisher"],
|
|
1567
|
+
["pvb", "application/vnd.3gpp.pic-bw-var"],
|
|
1568
|
+
["pwn", "application/vnd.3m.post-it-notes"],
|
|
1569
|
+
["pya", "audio/vnd.ms-playready.media.pya"],
|
|
1570
|
+
["pyv", "video/vnd.ms-playready.media.pyv"],
|
|
1571
|
+
["qam", "application/vnd.epson.quickanime"],
|
|
1572
|
+
["qbo", "application/vnd.intu.qbo"],
|
|
1573
|
+
["qfx", "application/vnd.intu.qfx"],
|
|
1574
|
+
["qps", "application/vnd.publishare-delta-tree"],
|
|
1575
|
+
["qt", "video/quicktime"],
|
|
1576
|
+
["qwd", "application/vnd.quark.quarkxpress"],
|
|
1577
|
+
["qwt", "application/vnd.quark.quarkxpress"],
|
|
1578
|
+
["qxb", "application/vnd.quark.quarkxpress"],
|
|
1579
|
+
["qxd", "application/vnd.quark.quarkxpress"],
|
|
1580
|
+
["qxl", "application/vnd.quark.quarkxpress"],
|
|
1581
|
+
["qxt", "application/vnd.quark.quarkxpress"],
|
|
1582
|
+
["ra", "audio/x-realaudio"],
|
|
1583
|
+
["ram", "audio/x-pn-realaudio"],
|
|
1584
|
+
["raml", "application/raml+yaml"],
|
|
1585
|
+
["rapd", "application/route-apd+xml"],
|
|
1586
|
+
["rar", "application/x-rar"],
|
|
1587
|
+
["ras", "image/x-cmu-raster"],
|
|
1588
|
+
["rcprofile", "application/vnd.ipunplugged.rcprofile"],
|
|
1589
|
+
["rdf", "application/rdf+xml"],
|
|
1590
|
+
["rdz", "application/vnd.data-vision.rdz"],
|
|
1591
|
+
["relo", "application/p2p-overlay+xml"],
|
|
1592
|
+
["rep", "application/vnd.businessobjects"],
|
|
1593
|
+
["res", "application/x-dtbresource+xml"],
|
|
1594
|
+
["rgb", "image/x-rgb"],
|
|
1595
|
+
["rif", "application/reginfo+xml"],
|
|
1596
|
+
["rip", "audio/vnd.rip"],
|
|
1597
|
+
["ris", "application/x-research-info-systems"],
|
|
1598
|
+
["rl", "application/resource-lists+xml"],
|
|
1599
|
+
["rlc", "image/vnd.fujixerox.edmics-rlc"],
|
|
1600
|
+
["rld", "application/resource-lists-diff+xml"],
|
|
1601
|
+
["rm", "audio/x-pn-realaudio"],
|
|
1602
|
+
["rmi", "audio/midi"],
|
|
1603
|
+
["rmp", "audio/x-pn-realaudio-plugin"],
|
|
1604
|
+
["rms", "application/vnd.jcp.javame.midlet-rms"],
|
|
1605
|
+
["rmvb", "application/vnd.rn-realmedia-vbr"],
|
|
1606
|
+
["rnc", "application/relax-ng-compact-syntax"],
|
|
1607
|
+
["rng", "application/xml"],
|
|
1608
|
+
["roa", "application/rpki-roa"],
|
|
1609
|
+
["roff", "text/troff"],
|
|
1610
|
+
["rp9", "application/vnd.cloanto.rp9"],
|
|
1611
|
+
["rpm", "audio/x-pn-realaudio-plugin"],
|
|
1612
|
+
["rpss", "application/vnd.nokia.radio-presets"],
|
|
1613
|
+
["rpst", "application/vnd.nokia.radio-preset"],
|
|
1614
|
+
["rq", "application/sparql-query"],
|
|
1615
|
+
["rs", "application/rls-services+xml"],
|
|
1616
|
+
["rsa", "application/x-pkcs7"],
|
|
1617
|
+
["rsat", "application/atsc-rsat+xml"],
|
|
1618
|
+
["rsd", "application/rsd+xml"],
|
|
1619
|
+
["rsheet", "application/urc-ressheet+xml"],
|
|
1620
|
+
["rss", "application/rss+xml"],
|
|
1621
|
+
["rtf", "text/rtf"],
|
|
1622
|
+
["rtx", "text/richtext"],
|
|
1623
|
+
["run", "application/x-makeself"],
|
|
1624
|
+
["rusd", "application/route-usd+xml"],
|
|
1625
|
+
["rv", "video/vnd.rn-realvideo"],
|
|
1626
|
+
["s", "text/x-asm"],
|
|
1627
|
+
["s3m", "audio/s3m"],
|
|
1628
|
+
["saf", "application/vnd.yamaha.smaf-audio"],
|
|
1629
|
+
["sass", "text/x-sass"],
|
|
1630
|
+
["sbml", "application/sbml+xml"],
|
|
1631
|
+
["sc", "application/vnd.ibm.secure-container"],
|
|
1632
|
+
["scd", "application/x-msschedule"],
|
|
1633
|
+
["scm", "application/vnd.lotus-screencam"],
|
|
1634
|
+
["scq", "application/scvp-cv-request"],
|
|
1635
|
+
["scs", "application/scvp-cv-response"],
|
|
1636
|
+
["scss", "text/x-scss"],
|
|
1637
|
+
["scurl", "text/vnd.curl.scurl"],
|
|
1638
|
+
["sda", "application/vnd.stardivision.draw"],
|
|
1639
|
+
["sdc", "application/vnd.stardivision.calc"],
|
|
1640
|
+
["sdd", "application/vnd.stardivision.impress"],
|
|
1641
|
+
["sdkd", "application/vnd.solent.sdkm+xml"],
|
|
1642
|
+
["sdkm", "application/vnd.solent.sdkm+xml"],
|
|
1643
|
+
["sdp", "application/sdp"],
|
|
1644
|
+
["sdw", "application/vnd.stardivision.writer"],
|
|
1645
|
+
["sea", "application/octet-stream"],
|
|
1646
|
+
["see", "application/vnd.seemail"],
|
|
1647
|
+
["seed", "application/vnd.fdsn.seed"],
|
|
1648
|
+
["sema", "application/vnd.sema"],
|
|
1649
|
+
["semd", "application/vnd.semd"],
|
|
1650
|
+
["semf", "application/vnd.semf"],
|
|
1651
|
+
["senmlx", "application/senml+xml"],
|
|
1652
|
+
["sensmlx", "application/sensml+xml"],
|
|
1653
|
+
["ser", "application/java-serialized-object"],
|
|
1654
|
+
["setpay", "application/set-payment-initiation"],
|
|
1655
|
+
["setreg", "application/set-registration-initiation"],
|
|
1656
|
+
["sfd-hdstx", "application/vnd.hydrostatix.sof-data"],
|
|
1657
|
+
["sfs", "application/vnd.spotfire.sfs"],
|
|
1658
|
+
["sfv", "text/x-sfv"],
|
|
1659
|
+
["sgi", "image/sgi"],
|
|
1660
|
+
["sgl", "application/vnd.stardivision.writer-global"],
|
|
1661
|
+
["sgm", "text/sgml"],
|
|
1662
|
+
["sgml", "text/sgml"],
|
|
1663
|
+
["sh", "application/x-sh"],
|
|
1664
|
+
["shar", "application/x-shar"],
|
|
1665
|
+
["shex", "text/shex"],
|
|
1666
|
+
["shf", "application/shf+xml"],
|
|
1667
|
+
["shtml", "text/html"],
|
|
1668
|
+
["sid", "image/x-mrsid-image"],
|
|
1669
|
+
["sieve", "application/sieve"],
|
|
1670
|
+
["sig", "application/pgp-signature"],
|
|
1671
|
+
["sil", "audio/silk"],
|
|
1672
|
+
["silo", "model/mesh"],
|
|
1673
|
+
["sis", "application/vnd.symbian.install"],
|
|
1674
|
+
["sisx", "application/vnd.symbian.install"],
|
|
1675
|
+
["sit", "application/x-stuffit"],
|
|
1676
|
+
["sitx", "application/x-stuffitx"],
|
|
1677
|
+
["siv", "application/sieve"],
|
|
1678
|
+
["skd", "application/vnd.koan"],
|
|
1679
|
+
["skm", "application/vnd.koan"],
|
|
1680
|
+
["skp", "application/vnd.koan"],
|
|
1681
|
+
["skt", "application/vnd.koan"],
|
|
1682
|
+
["sldm", "application/vnd.ms-powerpoint.slide.macroenabled.12"],
|
|
1683
|
+
["sldx", "application/vnd.openxmlformats-officedocument.presentationml.slide"],
|
|
1684
|
+
["slim", "text/slim"],
|
|
1685
|
+
["slm", "text/slim"],
|
|
1686
|
+
["sls", "application/route-s-tsid+xml"],
|
|
1687
|
+
["slt", "application/vnd.epson.salt"],
|
|
1688
|
+
["sm", "application/vnd.stepmania.stepchart"],
|
|
1689
|
+
["smf", "application/vnd.stardivision.math"],
|
|
1690
|
+
["smi", "application/smil"],
|
|
1691
|
+
["smil", "application/smil"],
|
|
1692
|
+
["smv", "video/x-smv"],
|
|
1693
|
+
["smzip", "application/vnd.stepmania.package"],
|
|
1694
|
+
["snd", "audio/basic"],
|
|
1695
|
+
["snf", "application/x-font-snf"],
|
|
1696
|
+
["so", "application/octet-stream"],
|
|
1697
|
+
["spc", "application/x-pkcs7-certificates"],
|
|
1698
|
+
["spdx", "text/spdx"],
|
|
1699
|
+
["spf", "application/vnd.yamaha.smaf-phrase"],
|
|
1700
|
+
["spl", "application/x-futuresplash"],
|
|
1701
|
+
["spot", "text/vnd.in3d.spot"],
|
|
1702
|
+
["spp", "application/scvp-vp-response"],
|
|
1703
|
+
["spq", "application/scvp-vp-request"],
|
|
1704
|
+
["spx", "audio/ogg"],
|
|
1705
|
+
["sql", "application/x-sql"],
|
|
1706
|
+
["src", "application/x-wais-source"],
|
|
1707
|
+
["srt", "application/x-subrip"],
|
|
1708
|
+
["sru", "application/sru+xml"],
|
|
1709
|
+
["srx", "application/sparql-results+xml"],
|
|
1710
|
+
["ssdl", "application/ssdl+xml"],
|
|
1711
|
+
["sse", "application/vnd.kodak-descriptor"],
|
|
1712
|
+
["ssf", "application/vnd.epson.ssf"],
|
|
1713
|
+
["ssml", "application/ssml+xml"],
|
|
1714
|
+
["sst", "application/octet-stream"],
|
|
1715
|
+
["st", "application/vnd.sailingtracker.track"],
|
|
1716
|
+
["stc", "application/vnd.sun.xml.calc.template"],
|
|
1717
|
+
["std", "application/vnd.sun.xml.draw.template"],
|
|
1718
|
+
["stf", "application/vnd.wt.stf"],
|
|
1719
|
+
["sti", "application/vnd.sun.xml.impress.template"],
|
|
1720
|
+
["stk", "application/hyperstudio"],
|
|
1721
|
+
["stl", "model/stl"],
|
|
1722
|
+
["stpx", "model/step+xml"],
|
|
1723
|
+
["stpxz", "model/step-xml+zip"],
|
|
1724
|
+
["stpz", "model/step+zip"],
|
|
1725
|
+
["str", "application/vnd.pg.format"],
|
|
1726
|
+
["stw", "application/vnd.sun.xml.writer.template"],
|
|
1727
|
+
["styl", "text/stylus"],
|
|
1728
|
+
["stylus", "text/stylus"],
|
|
1729
|
+
["sub", "text/vnd.dvb.subtitle"],
|
|
1730
|
+
["sus", "application/vnd.sus-calendar"],
|
|
1731
|
+
["susp", "application/vnd.sus-calendar"],
|
|
1732
|
+
["sv4cpio", "application/x-sv4cpio"],
|
|
1733
|
+
["sv4crc", "application/x-sv4crc"],
|
|
1734
|
+
["svc", "application/vnd.dvb.service"],
|
|
1735
|
+
["svd", "application/vnd.svd"],
|
|
1736
|
+
["svg", "image/svg+xml"],
|
|
1737
|
+
["svgz", "image/svg+xml"],
|
|
1738
|
+
["swa", "application/x-director"],
|
|
1739
|
+
["swf", "application/x-shockwave-flash"],
|
|
1740
|
+
["swi", "application/vnd.aristanetworks.swi"],
|
|
1741
|
+
["swidtag", "application/swid+xml"],
|
|
1742
|
+
["sxc", "application/vnd.sun.xml.calc"],
|
|
1743
|
+
["sxd", "application/vnd.sun.xml.draw"],
|
|
1744
|
+
["sxg", "application/vnd.sun.xml.writer.global"],
|
|
1745
|
+
["sxi", "application/vnd.sun.xml.impress"],
|
|
1746
|
+
["sxm", "application/vnd.sun.xml.math"],
|
|
1747
|
+
["sxw", "application/vnd.sun.xml.writer"],
|
|
1748
|
+
["t", "text/troff"],
|
|
1749
|
+
["t3", "application/x-t3vm-image"],
|
|
1750
|
+
["t38", "image/t38"],
|
|
1751
|
+
["taglet", "application/vnd.mynfc"],
|
|
1752
|
+
["tao", "application/vnd.tao.intent-module-archive"],
|
|
1753
|
+
["tap", "image/vnd.tencent.tap"],
|
|
1754
|
+
["tar", "application/x-tar"],
|
|
1755
|
+
["tcap", "application/vnd.3gpp2.tcap"],
|
|
1756
|
+
["tcl", "application/x-tcl"],
|
|
1757
|
+
["td", "application/urc-targetdesc+xml"],
|
|
1758
|
+
["teacher", "application/vnd.smart.teacher"],
|
|
1759
|
+
["tei", "application/tei+xml"],
|
|
1760
|
+
["teicorpus", "application/tei+xml"],
|
|
1761
|
+
["tex", "application/x-tex"],
|
|
1762
|
+
["texi", "application/x-texinfo"],
|
|
1763
|
+
["texinfo", "application/x-texinfo"],
|
|
1764
|
+
["text", "text/plain"],
|
|
1765
|
+
["tfi", "application/thraud+xml"],
|
|
1766
|
+
["tfm", "application/x-tex-tfm"],
|
|
1767
|
+
["tfx", "image/tiff-fx"],
|
|
1768
|
+
["tga", "image/x-tga"],
|
|
1769
|
+
["tgz", "application/x-tar"],
|
|
1770
|
+
["thmx", "application/vnd.ms-officetheme"],
|
|
1771
|
+
["tif", "image/tiff"],
|
|
1772
|
+
["tiff", "image/tiff"],
|
|
1773
|
+
["tk", "application/x-tcl"],
|
|
1774
|
+
["tmo", "application/vnd.tmobile-livetv"],
|
|
1775
|
+
["toml", "application/toml"],
|
|
1776
|
+
["torrent", "application/x-bittorrent"],
|
|
1777
|
+
["tpl", "application/vnd.groove-tool-template"],
|
|
1778
|
+
["tpt", "application/vnd.trid.tpt"],
|
|
1779
|
+
["tr", "text/troff"],
|
|
1780
|
+
["tra", "application/vnd.trueapp"],
|
|
1781
|
+
["trig", "application/trig"],
|
|
1782
|
+
["trm", "application/x-msterminal"],
|
|
1783
|
+
["ts", "video/mp2t"],
|
|
1784
|
+
["tsd", "application/timestamped-data"],
|
|
1785
|
+
["tsv", "text/tab-separated-values"],
|
|
1786
|
+
["ttc", "font/collection"],
|
|
1787
|
+
["ttf", "font/ttf"],
|
|
1788
|
+
["ttl", "text/turtle"],
|
|
1789
|
+
["ttml", "application/ttml+xml"],
|
|
1790
|
+
["twd", "application/vnd.simtech-mindmapper"],
|
|
1791
|
+
["twds", "application/vnd.simtech-mindmapper"],
|
|
1792
|
+
["txd", "application/vnd.genomatix.tuxedo"],
|
|
1793
|
+
["txf", "application/vnd.mobius.txf"],
|
|
1794
|
+
["txt", "text/plain"],
|
|
1795
|
+
["u8dsn", "message/global-delivery-status"],
|
|
1796
|
+
["u8hdr", "message/global-headers"],
|
|
1797
|
+
["u8mdn", "message/global-disposition-notification"],
|
|
1798
|
+
["u8msg", "message/global"],
|
|
1799
|
+
["u32", "application/x-authorware-bin"],
|
|
1800
|
+
["ubj", "application/ubjson"],
|
|
1801
|
+
["udeb", "application/x-debian-package"],
|
|
1802
|
+
["ufd", "application/vnd.ufdl"],
|
|
1803
|
+
["ufdl", "application/vnd.ufdl"],
|
|
1804
|
+
["ulx", "application/x-glulx"],
|
|
1805
|
+
["umj", "application/vnd.umajin"],
|
|
1806
|
+
["unityweb", "application/vnd.unity"],
|
|
1807
|
+
["uoml", "application/vnd.uoml+xml"],
|
|
1808
|
+
["uri", "text/uri-list"],
|
|
1809
|
+
["uris", "text/uri-list"],
|
|
1810
|
+
["urls", "text/uri-list"],
|
|
1811
|
+
["usdz", "model/vnd.usdz+zip"],
|
|
1812
|
+
["ustar", "application/x-ustar"],
|
|
1813
|
+
["utz", "application/vnd.uiq.theme"],
|
|
1814
|
+
["uu", "text/x-uuencode"],
|
|
1815
|
+
["uva", "audio/vnd.dece.audio"],
|
|
1816
|
+
["uvd", "application/vnd.dece.data"],
|
|
1817
|
+
["uvf", "application/vnd.dece.data"],
|
|
1818
|
+
["uvg", "image/vnd.dece.graphic"],
|
|
1819
|
+
["uvh", "video/vnd.dece.hd"],
|
|
1820
|
+
["uvi", "image/vnd.dece.graphic"],
|
|
1821
|
+
["uvm", "video/vnd.dece.mobile"],
|
|
1822
|
+
["uvp", "video/vnd.dece.pd"],
|
|
1823
|
+
["uvs", "video/vnd.dece.sd"],
|
|
1824
|
+
["uvt", "application/vnd.dece.ttml+xml"],
|
|
1825
|
+
["uvu", "video/vnd.uvvu.mp4"],
|
|
1826
|
+
["uvv", "video/vnd.dece.video"],
|
|
1827
|
+
["uvva", "audio/vnd.dece.audio"],
|
|
1828
|
+
["uvvd", "application/vnd.dece.data"],
|
|
1829
|
+
["uvvf", "application/vnd.dece.data"],
|
|
1830
|
+
["uvvg", "image/vnd.dece.graphic"],
|
|
1831
|
+
["uvvh", "video/vnd.dece.hd"],
|
|
1832
|
+
["uvvi", "image/vnd.dece.graphic"],
|
|
1833
|
+
["uvvm", "video/vnd.dece.mobile"],
|
|
1834
|
+
["uvvp", "video/vnd.dece.pd"],
|
|
1835
|
+
["uvvs", "video/vnd.dece.sd"],
|
|
1836
|
+
["uvvt", "application/vnd.dece.ttml+xml"],
|
|
1837
|
+
["uvvu", "video/vnd.uvvu.mp4"],
|
|
1838
|
+
["uvvv", "video/vnd.dece.video"],
|
|
1839
|
+
["uvvx", "application/vnd.dece.unspecified"],
|
|
1840
|
+
["uvvz", "application/vnd.dece.zip"],
|
|
1841
|
+
["uvx", "application/vnd.dece.unspecified"],
|
|
1842
|
+
["uvz", "application/vnd.dece.zip"],
|
|
1843
|
+
["vbox", "application/x-virtualbox-vbox"],
|
|
1844
|
+
["vbox-extpack", "application/x-virtualbox-vbox-extpack"],
|
|
1845
|
+
["vcard", "text/vcard"],
|
|
1846
|
+
["vcd", "application/x-cdlink"],
|
|
1847
|
+
["vcf", "text/x-vcard"],
|
|
1848
|
+
["vcg", "application/vnd.groove-vcard"],
|
|
1849
|
+
["vcs", "text/x-vcalendar"],
|
|
1850
|
+
["vcx", "application/vnd.vcx"],
|
|
1851
|
+
["vdi", "application/x-virtualbox-vdi"],
|
|
1852
|
+
["vds", "model/vnd.sap.vds"],
|
|
1853
|
+
["vhd", "application/x-virtualbox-vhd"],
|
|
1854
|
+
["vis", "application/vnd.visionary"],
|
|
1855
|
+
["viv", "video/vnd.vivo"],
|
|
1856
|
+
["vlc", "application/videolan"],
|
|
1857
|
+
["vmdk", "application/x-virtualbox-vmdk"],
|
|
1858
|
+
["vob", "video/x-ms-vob"],
|
|
1859
|
+
["vor", "application/vnd.stardivision.writer"],
|
|
1860
|
+
["vox", "application/x-authorware-bin"],
|
|
1861
|
+
["vrml", "model/vrml"],
|
|
1862
|
+
["vsd", "application/vnd.visio"],
|
|
1863
|
+
["vsf", "application/vnd.vsf"],
|
|
1864
|
+
["vss", "application/vnd.visio"],
|
|
1865
|
+
["vst", "application/vnd.visio"],
|
|
1866
|
+
["vsw", "application/vnd.visio"],
|
|
1867
|
+
["vtf", "image/vnd.valve.source.texture"],
|
|
1868
|
+
["vtt", "text/vtt"],
|
|
1869
|
+
["vtu", "model/vnd.vtu"],
|
|
1870
|
+
["vxml", "application/voicexml+xml"],
|
|
1871
|
+
["w3d", "application/x-director"],
|
|
1872
|
+
["wad", "application/x-doom"],
|
|
1873
|
+
["wadl", "application/vnd.sun.wadl+xml"],
|
|
1874
|
+
["war", "application/java-archive"],
|
|
1875
|
+
["wasm", "application/wasm"],
|
|
1876
|
+
["wav", "audio/x-wav"],
|
|
1877
|
+
["wax", "audio/x-ms-wax"],
|
|
1878
|
+
["wbmp", "image/vnd.wap.wbmp"],
|
|
1879
|
+
["wbs", "application/vnd.criticaltools.wbs+xml"],
|
|
1880
|
+
["wbxml", "application/wbxml"],
|
|
1881
|
+
["wcm", "application/vnd.ms-works"],
|
|
1882
|
+
["wdb", "application/vnd.ms-works"],
|
|
1883
|
+
["wdp", "image/vnd.ms-photo"],
|
|
1884
|
+
["weba", "audio/webm"],
|
|
1885
|
+
["webapp", "application/x-web-app-manifest+json"],
|
|
1886
|
+
["webm", "video/webm"],
|
|
1887
|
+
["webmanifest", "application/manifest+json"],
|
|
1888
|
+
["webp", "image/webp"],
|
|
1889
|
+
["wg", "application/vnd.pmi.widget"],
|
|
1890
|
+
["wgt", "application/widget"],
|
|
1891
|
+
["wks", "application/vnd.ms-works"],
|
|
1892
|
+
["wm", "video/x-ms-wm"],
|
|
1893
|
+
["wma", "audio/x-ms-wma"],
|
|
1894
|
+
["wmd", "application/x-ms-wmd"],
|
|
1895
|
+
["wmf", "image/wmf"],
|
|
1896
|
+
["wml", "text/vnd.wap.wml"],
|
|
1897
|
+
["wmlc", "application/wmlc"],
|
|
1898
|
+
["wmls", "text/vnd.wap.wmlscript"],
|
|
1899
|
+
["wmlsc", "application/vnd.wap.wmlscriptc"],
|
|
1900
|
+
["wmv", "video/x-ms-wmv"],
|
|
1901
|
+
["wmx", "video/x-ms-wmx"],
|
|
1902
|
+
["wmz", "application/x-msmetafile"],
|
|
1903
|
+
["woff", "font/woff"],
|
|
1904
|
+
["woff2", "font/woff2"],
|
|
1905
|
+
["word", "application/msword"],
|
|
1906
|
+
["wpd", "application/vnd.wordperfect"],
|
|
1907
|
+
["wpl", "application/vnd.ms-wpl"],
|
|
1908
|
+
["wps", "application/vnd.ms-works"],
|
|
1909
|
+
["wqd", "application/vnd.wqd"],
|
|
1910
|
+
["wri", "application/x-mswrite"],
|
|
1911
|
+
["wrl", "model/vrml"],
|
|
1912
|
+
["wsc", "message/vnd.wfa.wsc"],
|
|
1913
|
+
["wsdl", "application/wsdl+xml"],
|
|
1914
|
+
["wspolicy", "application/wspolicy+xml"],
|
|
1915
|
+
["wtb", "application/vnd.webturbo"],
|
|
1916
|
+
["wvx", "video/x-ms-wvx"],
|
|
1917
|
+
["x3d", "model/x3d+xml"],
|
|
1918
|
+
["x3db", "model/x3d+fastinfoset"],
|
|
1919
|
+
["x3dbz", "model/x3d+binary"],
|
|
1920
|
+
["x3dv", "model/x3d-vrml"],
|
|
1921
|
+
["x3dvz", "model/x3d+vrml"],
|
|
1922
|
+
["x3dz", "model/x3d+xml"],
|
|
1923
|
+
["x32", "application/x-authorware-bin"],
|
|
1924
|
+
["x_b", "model/vnd.parasolid.transmit.binary"],
|
|
1925
|
+
["x_t", "model/vnd.parasolid.transmit.text"],
|
|
1926
|
+
["xaml", "application/xaml+xml"],
|
|
1927
|
+
["xap", "application/x-silverlight-app"],
|
|
1928
|
+
["xar", "application/vnd.xara"],
|
|
1929
|
+
["xav", "application/xcap-att+xml"],
|
|
1930
|
+
["xbap", "application/x-ms-xbap"],
|
|
1931
|
+
["xbd", "application/vnd.fujixerox.docuworks.binder"],
|
|
1932
|
+
["xbm", "image/x-xbitmap"],
|
|
1933
|
+
["xca", "application/xcap-caps+xml"],
|
|
1934
|
+
["xcs", "application/calendar+xml"],
|
|
1935
|
+
["xdf", "application/xcap-diff+xml"],
|
|
1936
|
+
["xdm", "application/vnd.syncml.dm+xml"],
|
|
1937
|
+
["xdp", "application/vnd.adobe.xdp+xml"],
|
|
1938
|
+
["xdssc", "application/dssc+xml"],
|
|
1939
|
+
["xdw", "application/vnd.fujixerox.docuworks"],
|
|
1940
|
+
["xel", "application/xcap-el+xml"],
|
|
1941
|
+
["xenc", "application/xenc+xml"],
|
|
1942
|
+
["xer", "application/patch-ops-error+xml"],
|
|
1943
|
+
["xfdf", "application/vnd.adobe.xfdf"],
|
|
1944
|
+
["xfdl", "application/vnd.xfdl"],
|
|
1945
|
+
["xht", "application/xhtml+xml"],
|
|
1946
|
+
["xhtml", "application/xhtml+xml"],
|
|
1947
|
+
["xhvml", "application/xv+xml"],
|
|
1948
|
+
["xif", "image/vnd.xiff"],
|
|
1949
|
+
["xl", "application/excel"],
|
|
1950
|
+
["xla", "application/vnd.ms-excel"],
|
|
1951
|
+
["xlam", "application/vnd.ms-excel.addin.macroEnabled.12"],
|
|
1952
|
+
["xlc", "application/vnd.ms-excel"],
|
|
1953
|
+
["xlf", "application/xliff+xml"],
|
|
1954
|
+
["xlm", "application/vnd.ms-excel"],
|
|
1955
|
+
["xls", "application/vnd.ms-excel"],
|
|
1956
|
+
["xlsb", "application/vnd.ms-excel.sheet.binary.macroEnabled.12"],
|
|
1957
|
+
["xlsm", "application/vnd.ms-excel.sheet.macroEnabled.12"],
|
|
1958
|
+
["xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],
|
|
1959
|
+
["xlt", "application/vnd.ms-excel"],
|
|
1960
|
+
["xltm", "application/vnd.ms-excel.template.macroEnabled.12"],
|
|
1961
|
+
["xltx", "application/vnd.openxmlformats-officedocument.spreadsheetml.template"],
|
|
1962
|
+
["xlw", "application/vnd.ms-excel"],
|
|
1963
|
+
["xm", "audio/xm"],
|
|
1964
|
+
["xml", "application/xml"],
|
|
1965
|
+
["xns", "application/xcap-ns+xml"],
|
|
1966
|
+
["xo", "application/vnd.olpc-sugar"],
|
|
1967
|
+
["xop", "application/xop+xml"],
|
|
1968
|
+
["xpi", "application/x-xpinstall"],
|
|
1969
|
+
["xpl", "application/xproc+xml"],
|
|
1970
|
+
["xpm", "image/x-xpixmap"],
|
|
1971
|
+
["xpr", "application/vnd.is-xpr"],
|
|
1972
|
+
["xps", "application/vnd.ms-xpsdocument"],
|
|
1973
|
+
["xpw", "application/vnd.intercon.formnet"],
|
|
1974
|
+
["xpx", "application/vnd.intercon.formnet"],
|
|
1975
|
+
["xsd", "application/xml"],
|
|
1976
|
+
["xsl", "application/xml"],
|
|
1977
|
+
["xslt", "application/xslt+xml"],
|
|
1978
|
+
["xsm", "application/vnd.syncml+xml"],
|
|
1979
|
+
["xspf", "application/xspf+xml"],
|
|
1980
|
+
["xul", "application/vnd.mozilla.xul+xml"],
|
|
1981
|
+
["xvm", "application/xv+xml"],
|
|
1982
|
+
["xvml", "application/xv+xml"],
|
|
1983
|
+
["xwd", "image/x-xwindowdump"],
|
|
1984
|
+
["xyz", "chemical/x-xyz"],
|
|
1985
|
+
["xz", "application/x-xz"],
|
|
1986
|
+
["yaml", "text/yaml"],
|
|
1987
|
+
["yang", "application/yang"],
|
|
1988
|
+
["yin", "application/yin+xml"],
|
|
1989
|
+
["yml", "text/yaml"],
|
|
1990
|
+
["ymp", "text/x-suse-ymp"],
|
|
1991
|
+
["z", "application/x-compress"],
|
|
1992
|
+
["z1", "application/x-zmachine"],
|
|
1993
|
+
["z2", "application/x-zmachine"],
|
|
1994
|
+
["z3", "application/x-zmachine"],
|
|
1995
|
+
["z4", "application/x-zmachine"],
|
|
1996
|
+
["z5", "application/x-zmachine"],
|
|
1997
|
+
["z6", "application/x-zmachine"],
|
|
1998
|
+
["z7", "application/x-zmachine"],
|
|
1999
|
+
["z8", "application/x-zmachine"],
|
|
2000
|
+
["zaz", "application/vnd.zzazz.deck+xml"],
|
|
2001
|
+
["zip", "application/zip"],
|
|
2002
|
+
["zir", "application/vnd.zul"],
|
|
2003
|
+
["zirz", "application/vnd.zul"],
|
|
2004
|
+
["zmm", "application/vnd.handheld-entertainment+xml"],
|
|
2005
|
+
["zsh", "text/x-scriptzsh"]
|
|
2006
|
+
]);
|
|
2007
|
+
function fa(a, e, i) {
|
|
2008
|
+
const t = oi(a), { webkitRelativePath: o } = a, n = typeof e == "string" ? e : typeof o == "string" && o.length > 0 ? o : `./${a.name}`;
|
|
2009
|
+
return typeof t.path != "string" && se(t, "path", n), se(t, "relativePath", n), t;
|
|
2010
|
+
}
|
|
2011
|
+
function oi(a) {
|
|
2012
|
+
const { name: e } = a;
|
|
2013
|
+
if (e && e.lastIndexOf(".") !== -1 && !a.type) {
|
|
2014
|
+
const t = e.split(".").pop().toLowerCase(), o = ni.get(t);
|
|
2015
|
+
o && Object.defineProperty(a, "type", {
|
|
2016
|
+
value: o,
|
|
2017
|
+
writable: !1,
|
|
2018
|
+
configurable: !1,
|
|
2019
|
+
enumerable: !0
|
|
2020
|
+
});
|
|
2021
|
+
}
|
|
2022
|
+
return a;
|
|
2023
|
+
}
|
|
2024
|
+
function se(a, e, i) {
|
|
2025
|
+
Object.defineProperty(a, e, {
|
|
2026
|
+
value: i,
|
|
2027
|
+
writable: !1,
|
|
2028
|
+
configurable: !1,
|
|
2029
|
+
enumerable: !0
|
|
2030
|
+
});
|
|
2031
|
+
}
|
|
2032
|
+
const ri = [
|
|
2033
|
+
// Thumbnail cache files for macOS and Windows
|
|
2034
|
+
".DS_Store",
|
|
2035
|
+
// macOs
|
|
2036
|
+
"Thumbs.db"
|
|
2037
|
+
// Windows
|
|
2038
|
+
];
|
|
2039
|
+
function pi(a) {
|
|
2040
|
+
return sa(this, void 0, void 0, function* () {
|
|
2041
|
+
return _a(a) && ci(a.dataTransfer) ? mi(a.dataTransfer, a.type) : li(a) ? si(a) : Array.isArray(a) && a.every((e) => "getFile" in e && typeof e.getFile == "function") ? di(a) : [];
|
|
2042
|
+
});
|
|
2043
|
+
}
|
|
2044
|
+
function ci(a) {
|
|
2045
|
+
return _a(a);
|
|
2046
|
+
}
|
|
2047
|
+
function li(a) {
|
|
2048
|
+
return _a(a) && _a(a.target);
|
|
2049
|
+
}
|
|
2050
|
+
function _a(a) {
|
|
2051
|
+
return typeof a == "object" && a !== null;
|
|
2052
|
+
}
|
|
2053
|
+
function si(a) {
|
|
2054
|
+
return Ba(a.target.files).map((e) => fa(e));
|
|
2055
|
+
}
|
|
2056
|
+
function di(a) {
|
|
2057
|
+
return sa(this, void 0, void 0, function* () {
|
|
2058
|
+
return (yield Promise.all(a.map((i) => i.getFile()))).map((i) => fa(i));
|
|
2059
|
+
});
|
|
2060
|
+
}
|
|
2061
|
+
function mi(a, e) {
|
|
2062
|
+
return sa(this, void 0, void 0, function* () {
|
|
2063
|
+
if (a.items) {
|
|
2064
|
+
const i = Ba(a.items).filter((o) => o.kind === "file");
|
|
2065
|
+
if (e !== "drop")
|
|
2066
|
+
return i;
|
|
2067
|
+
const t = yield Promise.all(i.map(ui));
|
|
2068
|
+
return de(_e(t));
|
|
2069
|
+
}
|
|
2070
|
+
return de(Ba(a.files).map((i) => fa(i)));
|
|
2071
|
+
});
|
|
2072
|
+
}
|
|
2073
|
+
function de(a) {
|
|
2074
|
+
return a.filter((e) => ri.indexOf(e.name) === -1);
|
|
2075
|
+
}
|
|
2076
|
+
function Ba(a) {
|
|
2077
|
+
if (a === null)
|
|
2078
|
+
return [];
|
|
2079
|
+
const e = [];
|
|
2080
|
+
for (let i = 0; i < a.length; i++) {
|
|
2081
|
+
const t = a[i];
|
|
2082
|
+
e.push(t);
|
|
2083
|
+
}
|
|
2084
|
+
return e;
|
|
2085
|
+
}
|
|
2086
|
+
function ui(a) {
|
|
2087
|
+
if (typeof a.webkitGetAsEntry != "function")
|
|
2088
|
+
return me(a);
|
|
2089
|
+
const e = a.webkitGetAsEntry();
|
|
2090
|
+
return e && e.isDirectory ? Oe(e) : me(a, e);
|
|
2091
|
+
}
|
|
2092
|
+
function _e(a) {
|
|
2093
|
+
return a.reduce((e, i) => [
|
|
2094
|
+
...e,
|
|
2095
|
+
...Array.isArray(i) ? _e(i) : [i]
|
|
2096
|
+
], []);
|
|
2097
|
+
}
|
|
2098
|
+
function me(a, e) {
|
|
2099
|
+
return sa(this, void 0, void 0, function* () {
|
|
2100
|
+
var i;
|
|
2101
|
+
if (globalThis.isSecureContext && typeof a.getAsFileSystemHandle == "function") {
|
|
2102
|
+
const n = yield a.getAsFileSystemHandle();
|
|
2103
|
+
if (n === null)
|
|
2104
|
+
throw new Error(`${a} is not a File`);
|
|
2105
|
+
if (n !== void 0) {
|
|
2106
|
+
const d = yield n.getFile();
|
|
2107
|
+
return d.handle = n, fa(d);
|
|
2108
|
+
}
|
|
2109
|
+
}
|
|
2110
|
+
const t = a.getAsFile();
|
|
2111
|
+
if (!t)
|
|
2112
|
+
throw new Error(`${a} is not a File`);
|
|
2113
|
+
return fa(t, (i = e == null ? void 0 : e.fullPath) !== null && i !== void 0 ? i : void 0);
|
|
2114
|
+
});
|
|
2115
|
+
}
|
|
2116
|
+
function fi(a) {
|
|
2117
|
+
return sa(this, void 0, void 0, function* () {
|
|
2118
|
+
return a.isDirectory ? Oe(a) : vi(a);
|
|
2119
|
+
});
|
|
2120
|
+
}
|
|
2121
|
+
function Oe(a) {
|
|
2122
|
+
const e = a.createReader();
|
|
2123
|
+
return new Promise((i, t) => {
|
|
2124
|
+
const o = [];
|
|
2125
|
+
function n() {
|
|
2126
|
+
e.readEntries((d) => sa(this, void 0, void 0, function* () {
|
|
2127
|
+
if (d.length) {
|
|
2128
|
+
const c = Promise.all(d.map(fi));
|
|
2129
|
+
o.push(c), n();
|
|
2130
|
+
} else
|
|
2131
|
+
try {
|
|
2132
|
+
const c = yield Promise.all(o);
|
|
2133
|
+
i(c);
|
|
2134
|
+
} catch (c) {
|
|
2135
|
+
t(c);
|
|
2136
|
+
}
|
|
2137
|
+
}), (d) => {
|
|
2138
|
+
t(d);
|
|
2139
|
+
});
|
|
2140
|
+
}
|
|
2141
|
+
n();
|
|
2142
|
+
});
|
|
2143
|
+
}
|
|
2144
|
+
function vi(a) {
|
|
2145
|
+
return sa(this, void 0, void 0, function* () {
|
|
2146
|
+
return new Promise((e, i) => {
|
|
2147
|
+
a.file((t) => {
|
|
2148
|
+
const o = fa(t, a.fullPath);
|
|
2149
|
+
e(o);
|
|
2150
|
+
}, (t) => {
|
|
2151
|
+
i(t);
|
|
2152
|
+
});
|
|
2153
|
+
});
|
|
2154
|
+
});
|
|
2155
|
+
}
|
|
2156
|
+
var Ea = {}, ue;
|
|
2157
|
+
function xi() {
|
|
2158
|
+
return ue || (ue = 1, Ea.__esModule = !0, Ea.default = function(a, e) {
|
|
2159
|
+
if (a && e) {
|
|
2160
|
+
var i = Array.isArray(e) ? e : e.split(",");
|
|
2161
|
+
if (i.length === 0)
|
|
2162
|
+
return !0;
|
|
2163
|
+
var t = a.name || "", o = (a.type || "").toLowerCase(), n = o.replace(/\/.*$/, "");
|
|
2164
|
+
return i.some(function(d) {
|
|
2165
|
+
var c = d.trim().toLowerCase();
|
|
2166
|
+
return c.charAt(0) === "." ? t.toLowerCase().endsWith(c) : c.endsWith("/*") ? n === c.replace(/\/.*$/, "") : o === c;
|
|
2167
|
+
});
|
|
2168
|
+
}
|
|
2169
|
+
return !0;
|
|
2170
|
+
}), Ea;
|
|
2171
|
+
}
|
|
2172
|
+
var gi = xi();
|
|
2173
|
+
const Ha = /* @__PURE__ */ ke(gi);
|
|
2174
|
+
function fe(a) {
|
|
2175
|
+
return hi(a) || yi(a) || Se(a) || bi();
|
|
2176
|
+
}
|
|
2177
|
+
function bi() {
|
|
2178
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2179
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2180
|
+
}
|
|
2181
|
+
function yi(a) {
|
|
2182
|
+
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
|
|
2183
|
+
}
|
|
2184
|
+
function hi(a) {
|
|
2185
|
+
if (Array.isArray(a)) return Ga(a);
|
|
2186
|
+
}
|
|
2187
|
+
function ve(a, e) {
|
|
2188
|
+
var i = Object.keys(a);
|
|
2189
|
+
if (Object.getOwnPropertySymbols) {
|
|
2190
|
+
var t = Object.getOwnPropertySymbols(a);
|
|
2191
|
+
e && (t = t.filter(function(o) {
|
|
2192
|
+
return Object.getOwnPropertyDescriptor(a, o).enumerable;
|
|
2193
|
+
})), i.push.apply(i, t);
|
|
2194
|
+
}
|
|
2195
|
+
return i;
|
|
2196
|
+
}
|
|
2197
|
+
function xe(a) {
|
|
2198
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
2199
|
+
var i = arguments[e] != null ? arguments[e] : {};
|
|
2200
|
+
e % 2 ? ve(Object(i), !0).forEach(function(t) {
|
|
2201
|
+
De(a, t, i[t]);
|
|
2202
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(i)) : ve(Object(i)).forEach(function(t) {
|
|
2203
|
+
Object.defineProperty(a, t, Object.getOwnPropertyDescriptor(i, t));
|
|
2204
|
+
});
|
|
2205
|
+
}
|
|
2206
|
+
return a;
|
|
2207
|
+
}
|
|
2208
|
+
function De(a, e, i) {
|
|
2209
|
+
return e in a ? Object.defineProperty(a, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : a[e] = i, a;
|
|
2210
|
+
}
|
|
2211
|
+
function ga(a, e) {
|
|
2212
|
+
return ji(a) || ki(a, e) || Se(a, e) || wi();
|
|
2213
|
+
}
|
|
2214
|
+
function wi() {
|
|
2215
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2216
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2217
|
+
}
|
|
2218
|
+
function Se(a, e) {
|
|
2219
|
+
if (a) {
|
|
2220
|
+
if (typeof a == "string") return Ga(a, e);
|
|
2221
|
+
var i = Object.prototype.toString.call(a).slice(8, -1);
|
|
2222
|
+
if (i === "Object" && a.constructor && (i = a.constructor.name), i === "Map" || i === "Set") return Array.from(a);
|
|
2223
|
+
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return Ga(a, e);
|
|
2224
|
+
}
|
|
2225
|
+
}
|
|
2226
|
+
function Ga(a, e) {
|
|
2227
|
+
(e == null || e > a.length) && (e = a.length);
|
|
2228
|
+
for (var i = 0, t = new Array(e); i < e; i++)
|
|
2229
|
+
t[i] = a[i];
|
|
2230
|
+
return t;
|
|
2231
|
+
}
|
|
2232
|
+
function ki(a, e) {
|
|
2233
|
+
var i = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
|
|
2234
|
+
if (i != null) {
|
|
2235
|
+
var t = [], o = !0, n = !1, d, c;
|
|
2236
|
+
try {
|
|
2237
|
+
for (i = i.call(a); !(o = (d = i.next()).done) && (t.push(d.value), !(e && t.length === e)); o = !0)
|
|
2238
|
+
;
|
|
2239
|
+
} catch (b) {
|
|
2240
|
+
n = !0, c = b;
|
|
2241
|
+
} finally {
|
|
2242
|
+
try {
|
|
2243
|
+
!o && i.return != null && i.return();
|
|
2244
|
+
} finally {
|
|
2245
|
+
if (n) throw c;
|
|
2246
|
+
}
|
|
2247
|
+
}
|
|
2248
|
+
return t;
|
|
2249
|
+
}
|
|
2250
|
+
}
|
|
2251
|
+
function ji(a) {
|
|
2252
|
+
if (Array.isArray(a)) return a;
|
|
2253
|
+
}
|
|
2254
|
+
var Ei = typeof Ha == "function" ? Ha : Ha.default, Ti = "file-invalid-type", _i = "file-too-large", Oi = "file-too-small", Ae = "too-many-files", vt = {
|
|
2255
|
+
TooManyFiles: Ae
|
|
2256
|
+
}, Di = function() {
|
|
2257
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", i = e.split(","), t = i.length > 1 ? "one of ".concat(i.join(", ")) : i[0];
|
|
2258
|
+
return {
|
|
2259
|
+
code: Ti,
|
|
2260
|
+
message: "File type must be ".concat(t)
|
|
2261
|
+
};
|
|
2262
|
+
}, ge = function(e) {
|
|
2263
|
+
return {
|
|
2264
|
+
code: _i,
|
|
2265
|
+
message: "File is larger than ".concat(e, " ").concat(e === 1 ? "byte" : "bytes")
|
|
2266
|
+
};
|
|
2267
|
+
}, be = function(e) {
|
|
2268
|
+
return {
|
|
2269
|
+
code: Oi,
|
|
2270
|
+
message: "File is smaller than ".concat(e, " ").concat(e === 1 ? "byte" : "bytes")
|
|
2271
|
+
};
|
|
2272
|
+
}, Si = {
|
|
2273
|
+
code: Ae,
|
|
2274
|
+
message: "Too many files"
|
|
2275
|
+
};
|
|
2276
|
+
function Pe(a, e) {
|
|
2277
|
+
var i = a.type === "application/x-moz-file" || Ei(a, e);
|
|
2278
|
+
return [i, i ? null : Di(e)];
|
|
2279
|
+
}
|
|
2280
|
+
function ze(a, e, i) {
|
|
2281
|
+
if (la(a.size))
|
|
2282
|
+
if (la(e) && la(i)) {
|
|
2283
|
+
if (a.size > i) return [!1, ge(i)];
|
|
2284
|
+
if (a.size < e) return [!1, be(e)];
|
|
2285
|
+
} else {
|
|
2286
|
+
if (la(e) && a.size < e) return [!1, be(e)];
|
|
2287
|
+
if (la(i) && a.size > i) return [!1, ge(i)];
|
|
2288
|
+
}
|
|
2289
|
+
return [!0, null];
|
|
2290
|
+
}
|
|
2291
|
+
function la(a) {
|
|
2292
|
+
return a != null;
|
|
2293
|
+
}
|
|
2294
|
+
function Ai(a) {
|
|
2295
|
+
var e = a.files, i = a.accept, t = a.minSize, o = a.maxSize, n = a.multiple, d = a.maxFiles, c = a.validator;
|
|
2296
|
+
return !n && e.length > 1 || n && d >= 1 && e.length > d ? !1 : e.every(function(b) {
|
|
2297
|
+
var j = Pe(b, i), x = ga(j, 1), w = x[0], P = ze(b, t, o), z = ga(P, 1), L = z[0], S = c ? c(b) : null;
|
|
2298
|
+
return w && L && !S;
|
|
2299
|
+
});
|
|
2300
|
+
}
|
|
2301
|
+
function Oa(a) {
|
|
2302
|
+
return typeof a.isPropagationStopped == "function" ? a.isPropagationStopped() : typeof a.cancelBubble < "u" ? a.cancelBubble : !1;
|
|
2303
|
+
}
|
|
2304
|
+
function Ta(a) {
|
|
2305
|
+
return a.dataTransfer ? Array.prototype.some.call(a.dataTransfer.types, function(e) {
|
|
2306
|
+
return e === "Files" || e === "application/x-moz-file";
|
|
2307
|
+
}) : !!a.target && !!a.target.files;
|
|
2308
|
+
}
|
|
2309
|
+
function ye(a) {
|
|
2310
|
+
a.preventDefault();
|
|
2311
|
+
}
|
|
2312
|
+
function Pi(a) {
|
|
2313
|
+
return a.indexOf("MSIE") !== -1 || a.indexOf("Trident/") !== -1;
|
|
2314
|
+
}
|
|
2315
|
+
function zi(a) {
|
|
2316
|
+
return a.indexOf("Edge/") !== -1;
|
|
2317
|
+
}
|
|
2318
|
+
function Ri() {
|
|
2319
|
+
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
2320
|
+
return Pi(a) || zi(a);
|
|
2321
|
+
}
|
|
2322
|
+
function Q() {
|
|
2323
|
+
for (var a = arguments.length, e = new Array(a), i = 0; i < a; i++)
|
|
2324
|
+
e[i] = arguments[i];
|
|
2325
|
+
return function(t) {
|
|
2326
|
+
for (var o = arguments.length, n = new Array(o > 1 ? o - 1 : 0), d = 1; d < o; d++)
|
|
2327
|
+
n[d - 1] = arguments[d];
|
|
2328
|
+
return e.some(function(c) {
|
|
2329
|
+
return !Oa(t) && c && c.apply(void 0, [t].concat(n)), Oa(t);
|
|
2330
|
+
});
|
|
2331
|
+
};
|
|
2332
|
+
}
|
|
2333
|
+
function Ci() {
|
|
2334
|
+
return "showOpenFilePicker" in window;
|
|
2335
|
+
}
|
|
2336
|
+
function Fi(a) {
|
|
2337
|
+
if (la(a)) {
|
|
2338
|
+
var e = Object.entries(a).filter(function(i) {
|
|
2339
|
+
var t = ga(i, 2), o = t[0], n = t[1], d = !0;
|
|
2340
|
+
return Re(o) || (console.warn('Skipped "'.concat(o, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), d = !1), (!Array.isArray(n) || !n.every(Ce)) && (console.warn('Skipped "'.concat(o, '" because an invalid file extension was provided.')), d = !1), d;
|
|
2341
|
+
}).reduce(function(i, t) {
|
|
2342
|
+
var o = ga(t, 2), n = o[0], d = o[1];
|
|
2343
|
+
return xe(xe({}, i), {}, De({}, n, d));
|
|
2344
|
+
}, {});
|
|
2345
|
+
return [{
|
|
2346
|
+
// description is required due to https://crbug.com/1264708
|
|
2347
|
+
description: "Files",
|
|
2348
|
+
accept: e
|
|
2349
|
+
}];
|
|
2350
|
+
}
|
|
2351
|
+
return a;
|
|
2352
|
+
}
|
|
2353
|
+
function Ii(a) {
|
|
2354
|
+
if (la(a))
|
|
2355
|
+
return Object.entries(a).reduce(function(e, i) {
|
|
2356
|
+
var t = ga(i, 2), o = t[0], n = t[1];
|
|
2357
|
+
return [].concat(fe(e), [o], fe(n));
|
|
2358
|
+
}, []).filter(function(e) {
|
|
2359
|
+
return Re(e) || Ce(e);
|
|
2360
|
+
}).join(",");
|
|
2361
|
+
}
|
|
2362
|
+
function qi(a) {
|
|
2363
|
+
return a instanceof DOMException && (a.name === "AbortError" || a.code === a.ABORT_ERR);
|
|
2364
|
+
}
|
|
2365
|
+
function Mi(a) {
|
|
2366
|
+
return a instanceof DOMException && (a.name === "SecurityError" || a.code === a.SECURITY_ERR);
|
|
2367
|
+
}
|
|
2368
|
+
function Re(a) {
|
|
2369
|
+
return a === "audio/*" || a === "video/*" || a === "image/*" || a === "text/*" || a === "application/*" || /\w+\/[-+.\w]+/g.test(a);
|
|
2370
|
+
}
|
|
2371
|
+
function Ce(a) {
|
|
2372
|
+
return /^.*\.[\w]+$/.test(a);
|
|
2373
|
+
}
|
|
2374
|
+
var $i = ["children"], Li = ["open"], Wi = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], Yi = ["refKey", "onChange", "onClick"];
|
|
2375
|
+
function Ui(a) {
|
|
2376
|
+
return Bi(a) || Ki(a) || Fe(a) || Hi();
|
|
2377
|
+
}
|
|
2378
|
+
function Hi() {
|
|
2379
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2380
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2381
|
+
}
|
|
2382
|
+
function Ki(a) {
|
|
2383
|
+
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
|
|
2384
|
+
}
|
|
2385
|
+
function Bi(a) {
|
|
2386
|
+
if (Array.isArray(a)) return Na(a);
|
|
2387
|
+
}
|
|
2388
|
+
function Ka(a, e) {
|
|
2389
|
+
return Vi(a) || Ni(a, e) || Fe(a, e) || Gi();
|
|
2390
|
+
}
|
|
2391
|
+
function Gi() {
|
|
2392
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2393
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2394
|
+
}
|
|
2395
|
+
function Fe(a, e) {
|
|
2396
|
+
if (a) {
|
|
2397
|
+
if (typeof a == "string") return Na(a, e);
|
|
2398
|
+
var i = Object.prototype.toString.call(a).slice(8, -1);
|
|
2399
|
+
if (i === "Object" && a.constructor && (i = a.constructor.name), i === "Map" || i === "Set") return Array.from(a);
|
|
2400
|
+
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return Na(a, e);
|
|
2401
|
+
}
|
|
2402
|
+
}
|
|
2403
|
+
function Na(a, e) {
|
|
2404
|
+
(e == null || e > a.length) && (e = a.length);
|
|
2405
|
+
for (var i = 0, t = new Array(e); i < e; i++)
|
|
2406
|
+
t[i] = a[i];
|
|
2407
|
+
return t;
|
|
2408
|
+
}
|
|
2409
|
+
function Ni(a, e) {
|
|
2410
|
+
var i = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
|
|
2411
|
+
if (i != null) {
|
|
2412
|
+
var t = [], o = !0, n = !1, d, c;
|
|
2413
|
+
try {
|
|
2414
|
+
for (i = i.call(a); !(o = (d = i.next()).done) && (t.push(d.value), !(e && t.length === e)); o = !0)
|
|
2415
|
+
;
|
|
2416
|
+
} catch (b) {
|
|
2417
|
+
n = !0, c = b;
|
|
2418
|
+
} finally {
|
|
2419
|
+
try {
|
|
2420
|
+
!o && i.return != null && i.return();
|
|
2421
|
+
} finally {
|
|
2422
|
+
if (n) throw c;
|
|
2423
|
+
}
|
|
2424
|
+
}
|
|
2425
|
+
return t;
|
|
2426
|
+
}
|
|
2427
|
+
}
|
|
2428
|
+
function Vi(a) {
|
|
2429
|
+
if (Array.isArray(a)) return a;
|
|
2430
|
+
}
|
|
2431
|
+
function he(a, e) {
|
|
2432
|
+
var i = Object.keys(a);
|
|
2433
|
+
if (Object.getOwnPropertySymbols) {
|
|
2434
|
+
var t = Object.getOwnPropertySymbols(a);
|
|
2435
|
+
e && (t = t.filter(function(o) {
|
|
2436
|
+
return Object.getOwnPropertyDescriptor(a, o).enumerable;
|
|
2437
|
+
})), i.push.apply(i, t);
|
|
2438
|
+
}
|
|
2439
|
+
return i;
|
|
2440
|
+
}
|
|
2441
|
+
function C(a) {
|
|
2442
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
2443
|
+
var i = arguments[e] != null ? arguments[e] : {};
|
|
2444
|
+
e % 2 ? he(Object(i), !0).forEach(function(t) {
|
|
2445
|
+
Va(a, t, i[t]);
|
|
2446
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(i)) : he(Object(i)).forEach(function(t) {
|
|
2447
|
+
Object.defineProperty(a, t, Object.getOwnPropertyDescriptor(i, t));
|
|
2448
|
+
});
|
|
2449
|
+
}
|
|
2450
|
+
return a;
|
|
2451
|
+
}
|
|
2452
|
+
function Va(a, e, i) {
|
|
2453
|
+
return e in a ? Object.defineProperty(a, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : a[e] = i, a;
|
|
2454
|
+
}
|
|
2455
|
+
function Da(a, e) {
|
|
2456
|
+
if (a == null) return {};
|
|
2457
|
+
var i = Zi(a, e), t, o;
|
|
2458
|
+
if (Object.getOwnPropertySymbols) {
|
|
2459
|
+
var n = Object.getOwnPropertySymbols(a);
|
|
2460
|
+
for (o = 0; o < n.length; o++)
|
|
2461
|
+
t = n[o], !(e.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(a, t) && (i[t] = a[t]);
|
|
2462
|
+
}
|
|
2463
|
+
return i;
|
|
2464
|
+
}
|
|
2465
|
+
function Zi(a, e) {
|
|
2466
|
+
if (a == null) return {};
|
|
2467
|
+
var i = {}, t = Object.keys(a), o, n;
|
|
2468
|
+
for (n = 0; n < t.length; n++)
|
|
2469
|
+
o = t[n], !(e.indexOf(o) >= 0) && (i[o] = a[o]);
|
|
2470
|
+
return i;
|
|
2471
|
+
}
|
|
2472
|
+
var Xa = /* @__PURE__ */ Ue(function(a, e) {
|
|
2473
|
+
var i = a.children, t = Da(a, $i), o = Ji(t), n = o.open, d = Da(o, Li);
|
|
2474
|
+
return He(e, function() {
|
|
2475
|
+
return {
|
|
2476
|
+
open: n
|
|
2477
|
+
};
|
|
2478
|
+
}, [n]), /* @__PURE__ */ We.createElement(Ke, null, i(C(C({}, d), {}, {
|
|
2479
|
+
open: n
|
|
2480
|
+
})));
|
|
2481
|
+
});
|
|
2482
|
+
Xa.displayName = "Dropzone";
|
|
2483
|
+
var Ie = {
|
|
2484
|
+
disabled: !1,
|
|
2485
|
+
getFilesFromEvent: pi,
|
|
2486
|
+
maxSize: 1 / 0,
|
|
2487
|
+
minSize: 0,
|
|
2488
|
+
multiple: !0,
|
|
2489
|
+
maxFiles: 0,
|
|
2490
|
+
preventDropOnDocument: !0,
|
|
2491
|
+
noClick: !1,
|
|
2492
|
+
noKeyboard: !1,
|
|
2493
|
+
noDrag: !1,
|
|
2494
|
+
noDragEventsBubbling: !1,
|
|
2495
|
+
validator: null,
|
|
2496
|
+
useFsAccessApi: !1,
|
|
2497
|
+
autoFocus: !1
|
|
2498
|
+
};
|
|
2499
|
+
Xa.defaultProps = Ie;
|
|
2500
|
+
Xa.propTypes = {
|
|
2501
|
+
/**
|
|
2502
|
+
* Render function that exposes the dropzone state and prop getter fns
|
|
2503
|
+
*
|
|
2504
|
+
* @param {object} params
|
|
2505
|
+
* @param {Function} params.getRootProps Returns the props you should apply to the root drop container you render
|
|
2506
|
+
* @param {Function} params.getInputProps Returns the props you should apply to hidden file input you render
|
|
2507
|
+
* @param {Function} params.open Open the native file selection dialog
|
|
2508
|
+
* @param {boolean} params.isFocused Dropzone area is in focus
|
|
2509
|
+
* @param {boolean} params.isFileDialogActive File dialog is opened
|
|
2510
|
+
* @param {boolean} params.isDragActive Active drag is in progress
|
|
2511
|
+
* @param {boolean} params.isDragAccept Dragged files are accepted
|
|
2512
|
+
* @param {boolean} params.isDragReject Some dragged files are rejected
|
|
2513
|
+
* @param {File[]} params.acceptedFiles Accepted files
|
|
2514
|
+
* @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
|
|
2515
|
+
*/
|
|
2516
|
+
children: A.func,
|
|
2517
|
+
/**
|
|
2518
|
+
* Set accepted file types.
|
|
2519
|
+
* Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
|
|
2520
|
+
* Keep in mind that mime type determination is not reliable across platforms. CSV files,
|
|
2521
|
+
* for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
|
|
2522
|
+
* Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
|
|
2523
|
+
*/
|
|
2524
|
+
accept: A.objectOf(A.arrayOf(A.string)),
|
|
2525
|
+
/**
|
|
2526
|
+
* Allow drag 'n' drop (or selection from the file dialog) of multiple files
|
|
2527
|
+
*/
|
|
2528
|
+
multiple: A.bool,
|
|
2529
|
+
/**
|
|
2530
|
+
* If false, allow dropped items to take over the current browser window
|
|
2531
|
+
*/
|
|
2532
|
+
preventDropOnDocument: A.bool,
|
|
2533
|
+
/**
|
|
2534
|
+
* If true, disables click to open the native file selection dialog
|
|
2535
|
+
*/
|
|
2536
|
+
noClick: A.bool,
|
|
2537
|
+
/**
|
|
2538
|
+
* If true, disables SPACE/ENTER to open the native file selection dialog.
|
|
2539
|
+
* Note that it also stops tracking the focus state.
|
|
2540
|
+
*/
|
|
2541
|
+
noKeyboard: A.bool,
|
|
2542
|
+
/**
|
|
2543
|
+
* If true, disables drag 'n' drop
|
|
2544
|
+
*/
|
|
2545
|
+
noDrag: A.bool,
|
|
2546
|
+
/**
|
|
2547
|
+
* If true, stops drag event propagation to parents
|
|
2548
|
+
*/
|
|
2549
|
+
noDragEventsBubbling: A.bool,
|
|
2550
|
+
/**
|
|
2551
|
+
* Minimum file size (in bytes)
|
|
2552
|
+
*/
|
|
2553
|
+
minSize: A.number,
|
|
2554
|
+
/**
|
|
2555
|
+
* Maximum file size (in bytes)
|
|
2556
|
+
*/
|
|
2557
|
+
maxSize: A.number,
|
|
2558
|
+
/**
|
|
2559
|
+
* Maximum accepted number of files
|
|
2560
|
+
* The default value is 0 which means there is no limitation to how many files are accepted.
|
|
2561
|
+
*/
|
|
2562
|
+
maxFiles: A.number,
|
|
2563
|
+
/**
|
|
2564
|
+
* Enable/disable the dropzone
|
|
2565
|
+
*/
|
|
2566
|
+
disabled: A.bool,
|
|
2567
|
+
/**
|
|
2568
|
+
* Use this to provide a custom file aggregator
|
|
2569
|
+
*
|
|
2570
|
+
* @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
|
|
2571
|
+
*/
|
|
2572
|
+
getFilesFromEvent: A.func,
|
|
2573
|
+
/**
|
|
2574
|
+
* Cb for when closing the file dialog with no selection
|
|
2575
|
+
*/
|
|
2576
|
+
onFileDialogCancel: A.func,
|
|
2577
|
+
/**
|
|
2578
|
+
* Cb for when opening the file dialog
|
|
2579
|
+
*/
|
|
2580
|
+
onFileDialogOpen: A.func,
|
|
2581
|
+
/**
|
|
2582
|
+
* Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
|
|
2583
|
+
* to open the file picker instead of using an `<input type="file">` click event.
|
|
2584
|
+
*/
|
|
2585
|
+
useFsAccessApi: A.bool,
|
|
2586
|
+
/**
|
|
2587
|
+
* Set to true to focus the root element on render
|
|
2588
|
+
*/
|
|
2589
|
+
autoFocus: A.bool,
|
|
2590
|
+
/**
|
|
2591
|
+
* Cb for when the `dragenter` event occurs.
|
|
2592
|
+
*
|
|
2593
|
+
* @param {DragEvent} event
|
|
2594
|
+
*/
|
|
2595
|
+
onDragEnter: A.func,
|
|
2596
|
+
/**
|
|
2597
|
+
* Cb for when the `dragleave` event occurs
|
|
2598
|
+
*
|
|
2599
|
+
* @param {DragEvent} event
|
|
2600
|
+
*/
|
|
2601
|
+
onDragLeave: A.func,
|
|
2602
|
+
/**
|
|
2603
|
+
* Cb for when the `dragover` event occurs
|
|
2604
|
+
*
|
|
2605
|
+
* @param {DragEvent} event
|
|
2606
|
+
*/
|
|
2607
|
+
onDragOver: A.func,
|
|
2608
|
+
/**
|
|
2609
|
+
* Cb for when the `drop` event occurs.
|
|
2610
|
+
* Note that this callback is invoked after the `getFilesFromEvent` callback is done.
|
|
2611
|
+
*
|
|
2612
|
+
* Files are accepted or rejected based on the `accept`, `multiple`, `minSize` and `maxSize` props.
|
|
2613
|
+
* `accept` must be a valid [MIME type](http://www.iana.org/assignments/media-types/media-types.xhtml) according to [input element specification](https://www.w3.org/wiki/HTML/Elements/input/file) or a valid file extension.
|
|
2614
|
+
* If `multiple` is set to false and additional files are dropped,
|
|
2615
|
+
* all files besides the first will be rejected.
|
|
2616
|
+
* Any file which does not have a size in the [`minSize`, `maxSize`] range, will be rejected as well.
|
|
2617
|
+
*
|
|
2618
|
+
* Note that the `onDrop` callback will always be invoked regardless if the dropped files were accepted or rejected.
|
|
2619
|
+
* If you'd like to react to a specific scenario, use the `onDropAccepted`/`onDropRejected` props.
|
|
2620
|
+
*
|
|
2621
|
+
* `onDrop` will provide you with an array of [File](https://developer.mozilla.org/en-US/docs/Web/API/File) objects which you can then process and send to a server.
|
|
2622
|
+
* For example, with [SuperAgent](https://github.com/visionmedia/superagent) as a http/ajax library:
|
|
2623
|
+
*
|
|
2624
|
+
* ```js
|
|
2625
|
+
* function onDrop(acceptedFiles) {
|
|
2626
|
+
* const req = request.post('/upload')
|
|
2627
|
+
* acceptedFiles.forEach(file => {
|
|
2628
|
+
* req.attach(file.name, file)
|
|
2629
|
+
* })
|
|
2630
|
+
* req.end(callback)
|
|
2631
|
+
* }
|
|
2632
|
+
* ```
|
|
2633
|
+
*
|
|
2634
|
+
* @param {File[]} acceptedFiles
|
|
2635
|
+
* @param {FileRejection[]} fileRejections
|
|
2636
|
+
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
|
2637
|
+
*/
|
|
2638
|
+
onDrop: A.func,
|
|
2639
|
+
/**
|
|
2640
|
+
* Cb for when the `drop` event occurs.
|
|
2641
|
+
* Note that if no files are accepted, this callback is not invoked.
|
|
2642
|
+
*
|
|
2643
|
+
* @param {File[]} files
|
|
2644
|
+
* @param {(DragEvent|Event)} event
|
|
2645
|
+
*/
|
|
2646
|
+
onDropAccepted: A.func,
|
|
2647
|
+
/**
|
|
2648
|
+
* Cb for when the `drop` event occurs.
|
|
2649
|
+
* Note that if no files are rejected, this callback is not invoked.
|
|
2650
|
+
*
|
|
2651
|
+
* @param {FileRejection[]} fileRejections
|
|
2652
|
+
* @param {(DragEvent|Event)} event
|
|
2653
|
+
*/
|
|
2654
|
+
onDropRejected: A.func,
|
|
2655
|
+
/**
|
|
2656
|
+
* Cb for when there's some error from any of the promises.
|
|
2657
|
+
*
|
|
2658
|
+
* @param {Error} error
|
|
2659
|
+
*/
|
|
2660
|
+
onError: A.func,
|
|
2661
|
+
/**
|
|
2662
|
+
* Custom validation function. It must return null if there's no errors.
|
|
2663
|
+
* @param {File} file
|
|
2664
|
+
* @returns {FileError|FileError[]|null}
|
|
2665
|
+
*/
|
|
2666
|
+
validator: A.func
|
|
2667
|
+
};
|
|
2668
|
+
var Za = {
|
|
2669
|
+
isFocused: !1,
|
|
2670
|
+
isFileDialogActive: !1,
|
|
2671
|
+
isDragActive: !1,
|
|
2672
|
+
isDragAccept: !1,
|
|
2673
|
+
isDragReject: !1,
|
|
2674
|
+
acceptedFiles: [],
|
|
2675
|
+
fileRejections: []
|
|
2676
|
+
};
|
|
2677
|
+
function Ji() {
|
|
2678
|
+
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = C(C({}, Ie), a), i = e.accept, t = e.disabled, o = e.getFilesFromEvent, n = e.maxSize, d = e.minSize, c = e.multiple, b = e.maxFiles, j = e.onDragEnter, x = e.onDragLeave, w = e.onDragOver, P = e.onDrop, z = e.onDropAccepted, L = e.onDropRejected, S = e.onFileDialogCancel, M = e.onFileDialogOpen, K = e.useFsAccessApi, ia = e.autoFocus, I = e.preventDropOnDocument, q = e.noClick, s = e.noKeyboard, J = e.noDrag, Z = e.noDragEventsBubbling, oa = e.onError, aa = e.validator, ea = ua(function() {
|
|
2679
|
+
return Ii(i);
|
|
2680
|
+
}, [i]), ra = ua(function() {
|
|
2681
|
+
return Fi(i);
|
|
2682
|
+
}, [i]), pa = ua(function() {
|
|
2683
|
+
return typeof M == "function" ? M : we;
|
|
2684
|
+
}, [M]), ta = ua(function() {
|
|
2685
|
+
return typeof S == "function" ? S : we;
|
|
2686
|
+
}, [S]), F = wa(null), H = wa(null), N = Ye(Xi, Za), X = Ka(N, 2), na = X[0], U = X[1], r = na.isFocused, m = na.isFileDialogActive, g = wa(typeof window < "u" && window.isSecureContext && K && Ci()), y = function() {
|
|
2687
|
+
!g.current && m && setTimeout(function() {
|
|
2688
|
+
if (H.current) {
|
|
2689
|
+
var u = H.current.files;
|
|
2690
|
+
u.length || (U({
|
|
2691
|
+
type: "closeDialog"
|
|
2692
|
+
}), ta());
|
|
2693
|
+
}
|
|
2694
|
+
}, 300);
|
|
2695
|
+
};
|
|
2696
|
+
qa(function() {
|
|
2697
|
+
return window.addEventListener("focus", y, !1), function() {
|
|
2698
|
+
window.removeEventListener("focus", y, !1);
|
|
2699
|
+
};
|
|
2700
|
+
}, [H, m, ta, g]);
|
|
2701
|
+
var f = wa([]), E = function(u) {
|
|
2702
|
+
F.current && F.current.contains(u.target) || (u.preventDefault(), f.current = []);
|
|
2703
|
+
};
|
|
2704
|
+
qa(function() {
|
|
2705
|
+
return I && (document.addEventListener("dragover", ye, !1), document.addEventListener("drop", E, !1)), function() {
|
|
2706
|
+
I && (document.removeEventListener("dragover", ye), document.removeEventListener("drop", E));
|
|
2707
|
+
};
|
|
2708
|
+
}, [F, I]), qa(function() {
|
|
2709
|
+
return !t && ia && F.current && F.current.focus(), function() {
|
|
2710
|
+
};
|
|
2711
|
+
}, [F, ia, t]);
|
|
2712
|
+
var v = V(function(l) {
|
|
2713
|
+
oa ? oa(l) : console.error(l);
|
|
2714
|
+
}, [oa]), h = V(function(l) {
|
|
2715
|
+
l.preventDefault(), l.persist(), ya(l), f.current = [].concat(Ui(f.current), [l.target]), Ta(l) && Promise.resolve(o(l)).then(function(u) {
|
|
2716
|
+
if (!(Oa(l) && !Z)) {
|
|
2717
|
+
var $ = u.length, Y = $ > 0 && Ai({
|
|
2718
|
+
files: u,
|
|
2719
|
+
accept: ea,
|
|
2720
|
+
minSize: d,
|
|
2721
|
+
maxSize: n,
|
|
2722
|
+
multiple: c,
|
|
2723
|
+
maxFiles: b,
|
|
2724
|
+
validator: aa
|
|
2725
|
+
}), G = $ > 0 && !Y;
|
|
2726
|
+
U({
|
|
2727
|
+
isDragAccept: Y,
|
|
2728
|
+
isDragReject: G,
|
|
2729
|
+
isDragActive: !0,
|
|
2730
|
+
type: "setDraggedFiles"
|
|
2731
|
+
}), j && j(l);
|
|
2732
|
+
}
|
|
2733
|
+
}).catch(function(u) {
|
|
2734
|
+
return v(u);
|
|
2735
|
+
});
|
|
2736
|
+
}, [o, j, v, Z, ea, d, n, c, b, aa]), T = V(function(l) {
|
|
2737
|
+
l.preventDefault(), l.persist(), ya(l);
|
|
2738
|
+
var u = Ta(l);
|
|
2739
|
+
if (u && l.dataTransfer)
|
|
2740
|
+
try {
|
|
2741
|
+
l.dataTransfer.dropEffect = "copy";
|
|
2742
|
+
} catch {
|
|
2743
|
+
}
|
|
2744
|
+
return u && w && w(l), !1;
|
|
2745
|
+
}, [w, Z]), _ = V(function(l) {
|
|
2746
|
+
l.preventDefault(), l.persist(), ya(l);
|
|
2747
|
+
var u = f.current.filter(function(Y) {
|
|
2748
|
+
return F.current && F.current.contains(Y);
|
|
2749
|
+
}), $ = u.indexOf(l.target);
|
|
2750
|
+
$ !== -1 && u.splice($, 1), f.current = u, !(u.length > 0) && (U({
|
|
2751
|
+
type: "setDraggedFiles",
|
|
2752
|
+
isDragActive: !1,
|
|
2753
|
+
isDragAccept: !1,
|
|
2754
|
+
isDragReject: !1
|
|
2755
|
+
}), Ta(l) && x && x(l));
|
|
2756
|
+
}, [F, x, Z]), k = V(function(l, u) {
|
|
2757
|
+
var $ = [], Y = [];
|
|
2758
|
+
l.forEach(function(G) {
|
|
2759
|
+
var xa = Pe(G, ea), ma = Ka(xa, 2), Aa = ma[0], Pa = ma[1], za = ze(G, d, n), ha = Ka(za, 2), Ra = ha[0], Ca = ha[1], Fa = aa ? aa(G) : null;
|
|
2760
|
+
if (Aa && Ra && !Fa)
|
|
2761
|
+
$.push(G);
|
|
2762
|
+
else {
|
|
2763
|
+
var Ia = [Pa, Ca];
|
|
2764
|
+
Fa && (Ia = Ia.concat(Fa)), Y.push({
|
|
2765
|
+
file: G,
|
|
2766
|
+
errors: Ia.filter(function(Le) {
|
|
2767
|
+
return Le;
|
|
2768
|
+
})
|
|
2769
|
+
});
|
|
2770
|
+
}
|
|
2771
|
+
}), (!c && $.length > 1 || c && b >= 1 && $.length > b) && ($.forEach(function(G) {
|
|
2772
|
+
Y.push({
|
|
2773
|
+
file: G,
|
|
2774
|
+
errors: [Si]
|
|
2775
|
+
});
|
|
2776
|
+
}), $.splice(0)), U({
|
|
2777
|
+
acceptedFiles: $,
|
|
2778
|
+
fileRejections: Y,
|
|
2779
|
+
isDragReject: Y.length > 0,
|
|
2780
|
+
type: "setFiles"
|
|
2781
|
+
}), P && P($, Y, u), Y.length > 0 && L && L(Y, u), $.length > 0 && z && z($, u);
|
|
2782
|
+
}, [U, c, ea, d, n, b, P, z, L, aa]), W = V(function(l) {
|
|
2783
|
+
l.preventDefault(), l.persist(), ya(l), f.current = [], Ta(l) && Promise.resolve(o(l)).then(function(u) {
|
|
2784
|
+
Oa(l) && !Z || k(u, l);
|
|
2785
|
+
}).catch(function(u) {
|
|
2786
|
+
return v(u);
|
|
2787
|
+
}), U({
|
|
2788
|
+
type: "reset"
|
|
2789
|
+
});
|
|
2790
|
+
}, [o, k, v, Z]), p = V(function() {
|
|
2791
|
+
if (g.current) {
|
|
2792
|
+
U({
|
|
2793
|
+
type: "openDialog"
|
|
2794
|
+
}), pa();
|
|
2795
|
+
var l = {
|
|
2796
|
+
multiple: c,
|
|
2797
|
+
types: ra
|
|
2798
|
+
};
|
|
2799
|
+
window.showOpenFilePicker(l).then(function(u) {
|
|
2800
|
+
return o(u);
|
|
2801
|
+
}).then(function(u) {
|
|
2802
|
+
k(u, null), U({
|
|
2803
|
+
type: "closeDialog"
|
|
2804
|
+
});
|
|
2805
|
+
}).catch(function(u) {
|
|
2806
|
+
qi(u) ? (ta(u), U({
|
|
2807
|
+
type: "closeDialog"
|
|
2808
|
+
})) : Mi(u) ? (g.current = !1, H.current ? (H.current.value = null, H.current.click()) : v(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : v(u);
|
|
2809
|
+
});
|
|
2810
|
+
return;
|
|
2811
|
+
}
|
|
2812
|
+
H.current && (U({
|
|
2813
|
+
type: "openDialog"
|
|
2814
|
+
}), pa(), H.current.value = null, H.current.click());
|
|
2815
|
+
}, [U, pa, ta, K, k, v, ra, c]), B = V(function(l) {
|
|
2816
|
+
!F.current || !F.current.isEqualNode(l.target) || (l.key === " " || l.key === "Enter" || l.keyCode === 32 || l.keyCode === 13) && (l.preventDefault(), p());
|
|
2817
|
+
}, [F, p]), ca = V(function() {
|
|
2818
|
+
U({
|
|
2819
|
+
type: "focus"
|
|
2820
|
+
});
|
|
2821
|
+
}, []), va = V(function() {
|
|
2822
|
+
U({
|
|
2823
|
+
type: "blur"
|
|
2824
|
+
});
|
|
2825
|
+
}, []), Qa = V(function() {
|
|
2826
|
+
q || (Ri() ? setTimeout(p, 0) : p());
|
|
2827
|
+
}, [q, p]), da = function(u) {
|
|
2828
|
+
return t ? null : u;
|
|
2829
|
+
}, Sa = function(u) {
|
|
2830
|
+
return s ? null : da(u);
|
|
2831
|
+
}, ba = function(u) {
|
|
2832
|
+
return J ? null : da(u);
|
|
2833
|
+
}, ya = function(u) {
|
|
2834
|
+
Z && u.stopPropagation();
|
|
2835
|
+
}, qe = ua(function() {
|
|
2836
|
+
return function() {
|
|
2837
|
+
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, u = l.refKey, $ = u === void 0 ? "ref" : u, Y = l.role, G = l.onKeyDown, xa = l.onFocus, ma = l.onBlur, Aa = l.onClick, Pa = l.onDragEnter, za = l.onDragOver, ha = l.onDragLeave, Ra = l.onDrop, Ca = Da(l, Wi);
|
|
2838
|
+
return C(C(Va({
|
|
2839
|
+
onKeyDown: Sa(Q(G, B)),
|
|
2840
|
+
onFocus: Sa(Q(xa, ca)),
|
|
2841
|
+
onBlur: Sa(Q(ma, va)),
|
|
2842
|
+
onClick: da(Q(Aa, Qa)),
|
|
2843
|
+
onDragEnter: ba(Q(Pa, h)),
|
|
2844
|
+
onDragOver: ba(Q(za, T)),
|
|
2845
|
+
onDragLeave: ba(Q(ha, _)),
|
|
2846
|
+
onDrop: ba(Q(Ra, W)),
|
|
2847
|
+
role: typeof Y == "string" && Y !== "" ? Y : "presentation"
|
|
2848
|
+
}, $, F), !t && !s ? {
|
|
2849
|
+
tabIndex: 0
|
|
2850
|
+
} : {}), Ca);
|
|
2851
|
+
};
|
|
2852
|
+
}, [F, B, ca, va, Qa, h, T, _, W, s, J, t]), Me = V(function(l) {
|
|
2853
|
+
l.stopPropagation();
|
|
2854
|
+
}, []), $e = ua(function() {
|
|
2855
|
+
return function() {
|
|
2856
|
+
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, u = l.refKey, $ = u === void 0 ? "ref" : u, Y = l.onChange, G = l.onClick, xa = Da(l, Yi), ma = Va({
|
|
2857
|
+
accept: ea,
|
|
2858
|
+
multiple: c,
|
|
2859
|
+
type: "file",
|
|
2860
|
+
style: {
|
|
2861
|
+
border: 0,
|
|
2862
|
+
clip: "rect(0, 0, 0, 0)",
|
|
2863
|
+
clipPath: "inset(50%)",
|
|
2864
|
+
height: "1px",
|
|
2865
|
+
margin: "0 -1px -1px 0",
|
|
2866
|
+
overflow: "hidden",
|
|
2867
|
+
padding: 0,
|
|
2868
|
+
position: "absolute",
|
|
2869
|
+
width: "1px",
|
|
2870
|
+
whiteSpace: "nowrap"
|
|
2871
|
+
},
|
|
2872
|
+
onChange: da(Q(Y, W)),
|
|
2873
|
+
onClick: da(Q(G, Me)),
|
|
2874
|
+
tabIndex: -1
|
|
2875
|
+
}, $, H);
|
|
2876
|
+
return C(C({}, ma), xa);
|
|
2877
|
+
};
|
|
2878
|
+
}, [H, i, c, W, t]);
|
|
2879
|
+
return C(C({}, na), {}, {
|
|
2880
|
+
isFocused: r && !t,
|
|
2881
|
+
getRootProps: qe,
|
|
2882
|
+
getInputProps: $e,
|
|
2883
|
+
rootRef: F,
|
|
2884
|
+
inputRef: H,
|
|
2885
|
+
open: da(p)
|
|
2886
|
+
});
|
|
2887
|
+
}
|
|
2888
|
+
function Xi(a, e) {
|
|
2889
|
+
switch (e.type) {
|
|
2890
|
+
case "focus":
|
|
2891
|
+
return C(C({}, a), {}, {
|
|
2892
|
+
isFocused: !0
|
|
2893
|
+
});
|
|
2894
|
+
case "blur":
|
|
2895
|
+
return C(C({}, a), {}, {
|
|
2896
|
+
isFocused: !1
|
|
2897
|
+
});
|
|
2898
|
+
case "openDialog":
|
|
2899
|
+
return C(C({}, Za), {}, {
|
|
2900
|
+
isFileDialogActive: !0
|
|
2901
|
+
});
|
|
2902
|
+
case "closeDialog":
|
|
2903
|
+
return C(C({}, a), {}, {
|
|
2904
|
+
isFileDialogActive: !1
|
|
2905
|
+
});
|
|
2906
|
+
case "setDraggedFiles":
|
|
2907
|
+
return C(C({}, a), {}, {
|
|
2908
|
+
isDragActive: e.isDragActive,
|
|
2909
|
+
isDragAccept: e.isDragAccept,
|
|
2910
|
+
isDragReject: e.isDragReject
|
|
2911
|
+
});
|
|
2912
|
+
case "setFiles":
|
|
2913
|
+
return C(C({}, a), {}, {
|
|
2914
|
+
acceptedFiles: e.acceptedFiles,
|
|
2915
|
+
fileRejections: e.fileRejections,
|
|
2916
|
+
isDragReject: e.isDragReject
|
|
2917
|
+
});
|
|
2918
|
+
case "reset":
|
|
2919
|
+
return C({}, Za);
|
|
2920
|
+
default:
|
|
2921
|
+
return a;
|
|
2922
|
+
}
|
|
2923
|
+
}
|
|
2924
|
+
function we() {
|
|
2925
|
+
}
|
|
2926
|
+
const xt = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%202000%202000'%3e%3cdefs%3e%3cstyle%3e%20.cls-1%20{%20fill:%20url(%23Dégradé_sans_nom_2);%20}%20.cls-2%20{%20fill:%20url(%23Dégradé_sans_nom);%20}%20.cls-3%20{%20fill:%20url(%23Dégradé_sans_nom_4);%20}%20.cls-4%20{%20fill:%20url(%23Dégradé_sans_nom_3);%20}%20%3c/style%3e%3clinearGradient%20id='Dégradé_sans_nom'%20data-name='Dégradé%20sans%20nom'%20x1='316.37'%20y1='983.24'%20x2='941.52'%20y2='983.24'%20gradientTransform='translate(0%202000)%20scale(1%20-1)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23657eb5'/%3e%3cstop%20offset='1'%20stop-color='%238f9fc8'/%3e%3c/linearGradient%3e%3clinearGradient%20id='Dégradé_sans_nom_2'%20data-name='Dégradé%20sans%20nom%202'%20x1='656.56'%20y1='1126.04'%20x2='1181.68'%20y2='1126.04'%20gradientTransform='translate(0%202000)%20scale(1%20-1)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2339569d'/%3e%3cstop%20offset='1'%20stop-color='%236f82b8'/%3e%3c/linearGradient%3e%3clinearGradient%20id='Dégradé_sans_nom_3'%20data-name='Dégradé%20sans%20nom%203'%20x1='856.32'%20y1='1317.26'%20x2='1318.48'%20y2='1317.26'%20gradientTransform='translate(0%202000)%20scale(1%20-1)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2339569d'/%3e%3cstop%20offset='1'%20stop-color='%234e66aa'/%3e%3c/linearGradient%3e%3clinearGradient%20id='Dégradé_sans_nom_4'%20data-name='Dégradé%20sans%20nom%204'%20x1='1234.7'%20y1='855.06'%20x2='1684.55'%20y2='855.06'%20gradientTransform='translate(0%202000)%20scale(1%20-1)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2339569d'/%3e%3cstop%20offset='1'%20stop-color='%236f82b8'/%3e%3c/linearGradient%3e%3c/defs%3e%3c!--%20Generator:%20Adobe%20Illustrator%2028.7.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%201.2.0%20Build%20136)%20--%3e%3cg%3e%3cg%20id='Calque_1'%3e%3cg%20id='Calque_1-2'%20data-name='Calque_1'%3e%3cg%3e%3cpath%20class='cls-2'%20d='M941.25,1250.22h-490.96c-133.92,0-133.92-171.67-133.92-236.16,0-77.97,68.31-230.76,225.82-230.76,47.19,0,84.93,9.66,114.37,22.92,304.69,133.7,284.69,444,284.69,444Z'/%3e%3cpath%20class='cls-1'%20d='M1174.03,1196.97c.22,2.02.45,4.04.45,6.29,0,26.06-21.12,46.96-46.96,46.96h-186.27s20-310.31-284.69-444c4.04-68.98,22.24-157.51,80.22-226.05,31.91-37.52,71.9-65.16,119.54-82.46,247.62,89.88,310.76,315.47,325.36,391.65-5.84,27.41-7.64,63.81-7.64,117.07v190.54h0Z'/%3e%3cpath%20class='cls-4'%20d='M1297.62,754.76c-.22.22-.45.45-.67.45-71.9,57.3-102.91,75.05-115.27,134.14-14.6-76.17-77.74-301.77-325.36-391.65,23.14-8.09,47.86-14.16,74.37-17.75,19.32-2.47,39.77-3.82,61.12-3.82,209.64,0,304.47,149.2,325.14,228.07,5.17,19.77-3.15,40-19.32,50.56h-.01Z'/%3e%3cpath%20class='cls-3'%20d='M1424.12,766.67c-129.43,0-189.42,111.68-189.42,186.72v522.87c0,25.84,20.9,46.96,46.74,46.96,11.46,0,123.13-4.72,147.18-5.62h1.12c.45,0,1.12,0,1.8-.22.45,0,.9,0,1.57-.22,9.44-.45,18.2-3.37,25.62-9.89,187.4-153.69,225.82-281.32,225.82-426.47,0-155.72-131.22-314.13-260.42-314.13h0ZM1459.4,1174.05c-36.85,0-66.73-29.88-66.73-66.73s29.89-66.74,66.73-66.74,66.74,29.89,66.74,66.74-29.66,66.73-66.74,66.73Z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
2927
|
+
export {
|
|
2928
|
+
xt as A,
|
|
2929
|
+
vt as E,
|
|
2930
|
+
A as P,
|
|
2931
|
+
dt as S,
|
|
2932
|
+
Be as T,
|
|
2933
|
+
ut as a,
|
|
2934
|
+
lt as b,
|
|
2935
|
+
it as c,
|
|
2936
|
+
rt as d,
|
|
2937
|
+
pt as e,
|
|
2938
|
+
nt as f,
|
|
2939
|
+
ct as g,
|
|
2940
|
+
je as h,
|
|
2941
|
+
ft as i,
|
|
2942
|
+
et as j,
|
|
2943
|
+
st as k,
|
|
2944
|
+
Ee as l,
|
|
2945
|
+
mt as r,
|
|
2946
|
+
ot as s,
|
|
2947
|
+
tt as t,
|
|
2948
|
+
Ji as u
|
|
2949
|
+
};
|