brd-ui-kit 0.1.88 → 0.1.89

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