@cgi-learning-hub/ui 1.3.3-dev.1732784402 → 1.3.3-dev.1732808725

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 (184) hide show
  1. package/dist/{Backdrop-BSuIaDsk.js → Backdrop-BlKt7y1x.js} +6 -5
  2. package/dist/{Backdrop-BUEwtcOd.cjs → Backdrop-vSE8W9jq.cjs} +1 -1
  3. package/dist/{Box-CVx14c-K.js → Box-DErdbtsw.js} +3 -3
  4. package/dist/{Box-BvARXG6G.cjs → Box-DMYs7NTb.cjs} +1 -1
  5. package/dist/{Button-xSM9V58f.js → Button-CiqVGfRs.js} +4 -4
  6. package/dist/{Button-DiJMVIKA.cjs → Button-D3dbHQM1.cjs} +1 -1
  7. package/dist/{ButtonBase-D_cXboQo.cjs → ButtonBase-BoWeLMzR.cjs} +1 -1
  8. package/dist/{ButtonBase-BtobLldH.js → ButtonBase-DUPJVOlc.js} +5 -5
  9. package/dist/{Card-1pHV30dw.cjs → Card-Cnh4u4kb.cjs} +1 -1
  10. package/dist/{Card-Dn7s44Fi.js → Card-mGRk1RuE.js} +3 -3
  11. package/dist/{Checkbox-DLgQLhbi.js → Checkbox-aJ1r7ufI.js} +6 -6
  12. package/dist/{Checkbox-Dy4M-IzA.cjs → Checkbox-s_RdgUlw.cjs} +1 -1
  13. package/dist/{CircularProgress-Cgy38XxI.js → CircularProgress-CfODO7vI.js} +3 -3
  14. package/dist/{CircularProgress-CLqjkGj2.cjs → CircularProgress-DHgcUb1c.cjs} +1 -1
  15. package/dist/{DatePicker-CkDd1Ei6.js → DatePicker-Dyf9Vhld.js} +2149 -2119
  16. package/dist/DatePicker-juzW4bLC.cjs +14 -0
  17. package/dist/DefaultPropsProvider-Biv7NHew.cjs +17 -0
  18. package/dist/{DefaultPropsProvider-CNauTavr.js → DefaultPropsProvider-xJkZOrdv.js} +145 -142
  19. package/dist/{Delete-Box1LXsD.js → Delete-BOQTx9ze.js} +1 -1
  20. package/dist/{Delete-CXp2ebVd.cjs → Delete-DyzDL8-Y.cjs} +1 -1
  21. package/dist/{DialogContent-GWPkHG99.js → DialogContent-D1KFPXhr.js} +7 -7
  22. package/dist/{DialogContent-DQzo8ZE4.cjs → DialogContent-Dphl2SKX.cjs} +1 -1
  23. package/dist/{DialogTitle-CbZEE5Nw.js → DialogTitle-AQ-YU9PH.js} +4 -4
  24. package/dist/{DialogTitle-CDxMcX7q.cjs → DialogTitle-C8AdXsDz.cjs} +1 -1
  25. package/dist/{Divider-CU03_ydq.cjs → Divider-Bdp8beK-.cjs} +1 -1
  26. package/dist/{Divider-CcEBfDwn.js → Divider-C0R1SUa4.js} +4 -4
  27. package/dist/{FormControlLabel-BRe4vfRM.cjs → FormControlLabel-BlO93LTi.cjs} +1 -1
  28. package/dist/{FormControlLabel-DmAZ_iUK.js → FormControlLabel-w-X91z27.js} +6 -6
  29. package/dist/{FormGroup-CAhJZ5Ju.js → FormGroup-6NoANcYk.js} +2 -2
  30. package/dist/{FormGroup-dgo2gVaM.cjs → FormGroup-D0zSGn42.cjs} +1 -1
  31. package/dist/{FormLabel-C-_3pX_1.cjs → FormLabel-BkiH7wl7.cjs} +1 -1
  32. package/dist/{FormLabel-CZwX5vcF.js → FormLabel-CoLJ9tA8.js} +3 -3
  33. package/dist/{Grow-B7Dfgk3l.cjs → Grow-DfACa72Q.cjs} +1 -1
  34. package/dist/{Grow-CxD8gGA4.js → Grow-SW33sONG.js} +4 -4
  35. package/dist/{IconButton-COOf9IHm.cjs → IconButton-DRs0xB4z.cjs} +1 -1
  36. package/dist/{IconButton-CUZhSa6k.js → IconButton-DjeMTpI5.js} +4 -4
  37. package/dist/{InputAdornment-C78QPG-l.cjs → InputAdornment-B1pggfEX.cjs} +1 -1
  38. package/dist/{InputAdornment-CEphHNUR.js → InputAdornment-ByiVSgFT.js} +4 -4
  39. package/dist/{InputBase-BER0AKzf.js → InputBase-CvU0-Zg6.js} +6 -6
  40. package/dist/{InputBase-Bc6hWg6r.cjs → InputBase-Xfjv-RYp.cjs} +1 -1
  41. package/dist/{Link-C4OkVQ2e.js → Link-Dmwt9wxb.js} +6 -6
  42. package/dist/{Link-XZHjZUP4.cjs → Link-Z_UCBvgV.cjs} +1 -1
  43. package/dist/{Menu-BClPlLYB.js → Menu-4U27Dst1.js} +10 -10
  44. package/dist/{Menu-BegYMc1h.cjs → Menu-DREdNbqu.cjs} +1 -1
  45. package/dist/{MenuItem-Bcf18SMR.cjs → MenuItem-CN75Du-9.cjs} +1 -1
  46. package/dist/{MenuItem-DueTh_Gl.js → MenuItem-CqPsuuC1.js} +7 -7
  47. package/dist/{Modal-O_OepXtT.cjs → Modal-DWqBsogu.cjs} +1 -1
  48. package/dist/{Modal-C8nyxFyr.js → Modal-D_mqYIr2.js} +9 -9
  49. package/dist/{Paper-DLOsvAcz.cjs → Paper-CjMuucS5.cjs} +1 -1
  50. package/dist/{Paper-B4gtbx7f.js → Paper-D973Ow-i.js} +4 -4
  51. package/dist/{Popper-FUj2rW1Y.js → Popper-B8oNZqtn.js} +5 -5
  52. package/dist/{Popper-2cjbavEE.cjs → Popper-hzM0y1hA.cjs} +1 -1
  53. package/dist/{Portal-C1LuGWxE.js → Portal-BKbBRbWN.js} +3 -3
  54. package/dist/{Portal-BVFbTe6U.cjs → Portal-Bv2VRYHH.cjs} +1 -1
  55. package/dist/{Radio-DN9OAJpN.js → Radio-BrzQH9pY.js} +6 -6
  56. package/dist/{Radio-Czy8v3oe.cjs → Radio-DxbXYNhR.cjs} +1 -1
  57. package/dist/{Select-8fZnAPUt.cjs → Select-CL4E8NNL.cjs} +1 -1
  58. package/dist/{Select-BLSgLuO7.js → Select-CgAPAUTr.js} +9 -9
  59. package/dist/{Stack-CFTtMTJf.js → Stack-CYXQpKS2.js} +4 -4
  60. package/dist/{Stack-B5DuAfnN.cjs → Stack-WrITLr1B.cjs} +1 -1
  61. package/dist/{SwitchBase-B7gcs8QS.js → SwitchBase-CGa9A6SL.js} +4 -4
  62. package/dist/{SwitchBase-cRh_HjHT.cjs → SwitchBase-Cqh9rxOh.cjs} +1 -1
  63. package/dist/{TableSortLabel-5tAbCuhW.js → TableSortLabel-hvz89Dvu.js} +191 -130
  64. package/dist/{TableSortLabel-DlgRz10L.cjs → TableSortLabel-mAzX4tAl.cjs} +2 -2
  65. package/dist/{Tabs-B0FHRpc8.cjs → Tabs-BNqwYd2G.cjs} +1 -1
  66. package/dist/{Tabs-LTYyrysg.js → Tabs-BPI2IyPx.js} +10 -10
  67. package/dist/{TextField-BKXHkdMb.js → TextField-C4nIxR_t.js} +7 -7
  68. package/dist/{TextField-DFTFrPdm.cjs → TextField-Dy0Iblqt.cjs} +1 -1
  69. package/dist/{Tooltip-CWoB7Jl-.js → Tooltip-Bdrv-e2a.js} +263 -240
  70. package/dist/Tooltip-vg27N3PU.cjs +4 -0
  71. package/dist/{Typography-BJO4ssax.cjs → Typography-BF9bdWxl.cjs} +1 -1
  72. package/dist/{Typography-DvQqNI3q.js → Typography-CUdlQxLM.js} +4 -4
  73. package/dist/components/Button/Button.cjs.js +1 -1
  74. package/dist/components/Button/Button.es.js +5 -5
  75. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  76. package/dist/components/DatePicker/DatePicker.es.js +2 -2
  77. package/dist/components/DatePicker/index.cjs.js +1 -1
  78. package/dist/components/DatePicker/index.es.js +1 -1
  79. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  80. package/dist/components/Dropzone/Dropzone.es.js +4 -4
  81. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  82. package/dist/components/EmptyState/EmptyState.es.js +2 -2
  83. package/dist/components/FileList/FileList.cjs.js +1 -1
  84. package/dist/components/FileList/FileList.es.js +1 -1
  85. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  86. package/dist/components/FileList/FileListItem.es.js +7 -7
  87. package/dist/components/Heading/Heading.cjs.js +1 -1
  88. package/dist/components/Heading/Heading.es.js +2 -2
  89. package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
  90. package/dist/components/ImagePicker/ImagePicker.es.js +5 -5
  91. package/dist/components/Loader/Loader.cjs.js +1 -1
  92. package/dist/components/Loader/Loader.es.js +1 -1
  93. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  94. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
  95. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  96. package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
  97. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  98. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  99. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  100. package/dist/components/TextInput/TextInput.es.js +1 -1
  101. package/dist/components/index.cjs.js +1 -1
  102. package/dist/components/index.es.js +29 -29
  103. package/dist/components/stories/Button.stories.cjs.js +1 -1
  104. package/dist/components/stories/Button.stories.es.js +1 -1
  105. package/dist/components/stories/Card.stories.cjs.js +1 -1
  106. package/dist/components/stories/Card.stories.es.js +4 -4
  107. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  108. package/dist/components/stories/Checkbox.stories.es.js +1 -1
  109. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  110. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  111. package/dist/components/stories/Dialog.stories.cjs.js +1 -1
  112. package/dist/components/stories/Dialog.stories.es.js +2 -2
  113. package/dist/components/stories/Divider.stories.cjs.js +1 -1
  114. package/dist/components/stories/Divider.stories.es.js +1 -1
  115. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
  116. package/dist/components/stories/FormControlLabel.stories.es.js +8 -8
  117. package/dist/components/stories/Heading.stories.cjs.js +1 -1
  118. package/dist/components/stories/Heading.stories.es.js +2 -2
  119. package/dist/components/stories/IconButton.stories.cjs.js +1 -1
  120. package/dist/components/stories/IconButton.stories.es.js +2 -2
  121. package/dist/components/stories/Link.stories.cjs.js +1 -1
  122. package/dist/components/stories/Link.stories.es.js +1 -1
  123. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  124. package/dist/components/stories/Menu.stories.es.js +2 -2
  125. package/dist/components/stories/Paper.stories.cjs.js +1 -1
  126. package/dist/components/stories/Paper.stories.es.js +1 -1
  127. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  128. package/dist/components/stories/RadioGroup.stories.es.js +6 -6
  129. package/dist/components/stories/Select.stories.cjs.js +1 -1
  130. package/dist/components/stories/Select.stories.es.js +3 -3
  131. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  132. package/dist/components/stories/TabList.stories.es.js +4 -4
  133. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  134. package/dist/components/stories/TextField.stories.es.js +1 -1
  135. package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
  136. package/dist/components/stories/Tooltip.stories.es.js +2 -2
  137. package/dist/components/stories/Typography.stories.cjs.js +1 -1
  138. package/dist/components/stories/Typography.stories.es.js +1 -1
  139. package/dist/{createSvgIcon-CWqfguje.cjs → createSvgIcon-BMmqQ2z0.cjs} +1 -1
  140. package/dist/{createSvgIcon-Dva1lw_G.js → createSvgIcon-CVd3Lo1D.js} +3 -3
  141. package/dist/{dividerClasses-C-5H3Xd9.cjs → dividerClasses-CyDs_RPD.cjs} +1 -1
  142. package/dist/{dividerClasses-DFZ2yhIr.js → dividerClasses-kN_Ky2Bl.js} +1 -1
  143. package/dist/{elementTypeAcceptingRef-9SjLD9kJ.cjs → elementTypeAcceptingRef-5w32V5hP.cjs} +1 -1
  144. package/dist/{elementTypeAcceptingRef-Dz6KaUIO.js → elementTypeAcceptingRef-modXfN2G.js} +1 -1
  145. package/dist/{extendSxProp-BFujbxHx.cjs → extendSxProp-6YOo46ig.cjs} +1 -1
  146. package/dist/{extendSxProp-C7tQAXJa.js → extendSxProp-CHv0k-C6.js} +1 -1
  147. package/dist/fr-ChrHtTbj.cjs +1 -0
  148. package/dist/fr-rmVQsNbI.js +312 -0
  149. package/dist/{identifier-DO6cYBM1.js → identifier-Bn0tF6ls.js} +269 -266
  150. package/dist/{identifier-QNayb8HH.cjs → identifier-Dax8VlUh.cjs} +18 -18
  151. package/dist/{index-M6zjgG9s.js → index-BNojWn2E.js} +232 -226
  152. package/dist/{index-CR-iOppW.cjs → index-C5dNuV-2.cjs} +5 -5
  153. package/dist/{index-BAySMZLZ.js → index-CVpJYeY2.js} +4 -4
  154. package/dist/{index-Cff4YJyO.cjs → index-D3PBNx_m.cjs} +1 -1
  155. package/dist/{index-CQxxtd2n.cjs → index-OLlWw08I.cjs} +1 -1
  156. package/dist/{index-DW6LIkvv.js → index-waINWr3i.js} +2 -2
  157. package/dist/index.cjs.js +1 -1
  158. package/dist/index.es.js +29 -29
  159. package/dist/{memoTheme-ot_2_72n.cjs → memoTheme-BPA1FjB4.cjs} +1 -1
  160. package/dist/{memoTheme-Ccpl4Op-.js → memoTheme-CMJVTZEg.js} +1 -1
  161. package/dist/{refType-C1wlAHJ4.js → refType-BmrOFNz6.js} +1 -1
  162. package/dist/{refType-Cxl-1erN.cjs → refType-Dm84STBj.cjs} +1 -1
  163. package/dist/{resolveComponentProps-BmTsoZZ8.cjs → resolveComponentProps-4nhUsl3a.cjs} +1 -1
  164. package/dist/{resolveComponentProps-DLoFDK96.js → resolveComponentProps-DHoZOPOi.js} +1 -1
  165. package/dist/{useSlot-C5tO59RG.cjs → useSlot-CJAXUvYJ.cjs} +1 -1
  166. package/dist/{useSlot-DYxPRPQz.js → useSlot-t9oGnIgq.js} +1 -1
  167. package/dist/{useTheme-DHmIQfAD.cjs → useTheme-BIogn5Me.cjs} +1 -1
  168. package/dist/{useTheme-Dy7MZePg.cjs → useTheme-Bz4LKMiC.cjs} +1 -1
  169. package/dist/{useTheme-D1z12Bgs.js → useTheme-CBsFvF7I.js} +1 -1
  170. package/dist/{useTheme-C3--ZJOU.js → useTheme-L3EQmvnN.js} +3 -3
  171. package/dist/{useThemeProps-Df6sQGNs.js → useThemeProps-5Bku71LW.js} +2 -2
  172. package/dist/{useThemeProps-DMPhQCsM.cjs → useThemeProps-C692LOYf.cjs} +1 -1
  173. package/dist/{useThemeProps-CUWhPmEl.cjs → useThemeProps-DNFKz8wS.cjs} +1 -1
  174. package/dist/{useThemeProps-CncIFepl.js → useThemeProps-I9EHeqzU.js} +3 -3
  175. package/dist/{useTimeout-CZbj_p0X.js → useTimeout-3Y5y4gWq.js} +1 -1
  176. package/dist/{useTimeout-k6ayE1FR.cjs → useTimeout-CxOQget6.cjs} +1 -1
  177. package/dist/{utils-D1NFkGrL.js → utils-CE_a8glN.js} +1 -1
  178. package/dist/{utils-CNMzEhu9.cjs → utils-CusX8Edy.cjs} +1 -1
  179. package/package.json +5 -5
  180. package/dist/DatePicker-B2X6bsu_.cjs +0 -14
  181. package/dist/DefaultPropsProvider-CYXbUgly.cjs +0 -17
  182. package/dist/Tooltip-CUOKECcl.cjs +0 -4
  183. package/dist/fr-B7lHJR1l.cjs +0 -1
  184. package/dist/fr-ifknr_Gj.js +0 -307
@@ -1,5 +1,5 @@
1
- import mi, { useMemo as S, useRef as J, useReducer as ui, useEffect as va, useCallback as y, forwardRef as vi, useImperativeHandle as fi, Fragment as xi } from "react";
2
- import { P as s } from "./identifier-DO6cYBM1.js";
1
+ import vi, { useMemo as S, useRef as J, useReducer as fi, useEffect as fa, useCallback as y, forwardRef as xi, useImperativeHandle as gi, Fragment as bi } from "react";
2
+ import { _ as hi, P as s } from "./identifier-Bn0tF6ls.js";
3
3
  function A(a, i, t, n) {
4
4
  function p(o) {
5
5
  return o instanceof t ? o : new t(function(l) {
@@ -27,7 +27,7 @@ function A(a, i, t, n) {
27
27
  k((n = n.apply(a, i || [])).next());
28
28
  });
29
29
  }
30
- const gi = /* @__PURE__ */ new Map([
30
+ const yi = /* @__PURE__ */ new Map([
31
31
  // https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
32
32
  ["1km", "application/vnd.1000minds.decision-model+xml"],
33
33
  ["3dml", "text/vnd.in3d.3dml"],
@@ -1231,13 +1231,13 @@ const gi = /* @__PURE__ */ new Map([
1231
1231
  ["zsh", "text/x-scriptzsh"]
1232
1232
  ]);
1233
1233
  function q(a, i, t) {
1234
- const n = bi(a), { webkitRelativePath: p } = a, o = typeof i == "string" ? i : typeof p == "string" && p.length > 0 ? p : `./${a.name}`;
1235
- return typeof n.path != "string" && Ma(n, "path", o), Ma(n, "relativePath", o), n;
1234
+ const n = wi(a), { webkitRelativePath: p } = a, o = typeof i == "string" ? i : typeof p == "string" && p.length > 0 ? p : `./${a.name}`;
1235
+ return typeof n.path != "string" && $a(n, "path", o), $a(n, "relativePath", o), n;
1236
1236
  }
1237
- function bi(a) {
1237
+ function wi(a) {
1238
1238
  const { name: i } = a;
1239
1239
  if (i && i.lastIndexOf(".") !== -1 && !a.type) {
1240
- const n = i.split(".").pop().toLowerCase(), p = gi.get(n);
1240
+ const n = i.split(".").pop().toLowerCase(), p = yi.get(n);
1241
1241
  p && Object.defineProperty(a, "type", {
1242
1242
  value: p,
1243
1243
  writable: !1,
@@ -1247,7 +1247,7 @@ function bi(a) {
1247
1247
  }
1248
1248
  return a;
1249
1249
  }
1250
- function Ma(a, i, t) {
1250
+ function $a(a, i, t) {
1251
1251
  Object.defineProperty(a, i, {
1252
1252
  value: t,
1253
1253
  writable: !1,
@@ -1255,51 +1255,51 @@ function Ma(a, i, t) {
1255
1255
  enumerable: !0
1256
1256
  });
1257
1257
  }
1258
- const hi = [
1258
+ const ki = [
1259
1259
  // Thumbnail cache files for macOS and Windows
1260
1260
  ".DS_Store",
1261
1261
  // macOs
1262
1262
  "Thumbs.db"
1263
1263
  // Windows
1264
1264
  ];
1265
- function yi(a) {
1265
+ function ji(a) {
1266
1266
  return A(this, void 0, void 0, function* () {
1267
- return Q(a) && wi(a.dataTransfer) ? zi(a.dataTransfer, a.type) : ki(a) ? ji(a) : Array.isArray(a) && a.every((i) => "getFile" in i && typeof i.getFile == "function") ? Di(a) : [];
1267
+ return X(a) && Di(a.dataTransfer) ? Oi(a.dataTransfer, a.type) : zi(a) ? Ei(a) : Array.isArray(a) && a.every((i) => "getFile" in i && typeof i.getFile == "function") ? Ai(a) : [];
1268
1268
  });
1269
1269
  }
1270
- function wi(a) {
1271
- return Q(a);
1270
+ function Di(a) {
1271
+ return X(a);
1272
1272
  }
1273
- function ki(a) {
1274
- return Q(a) && Q(a.target);
1273
+ function zi(a) {
1274
+ return X(a) && X(a.target);
1275
1275
  }
1276
- function Q(a) {
1276
+ function X(a) {
1277
1277
  return typeof a == "object" && a !== null;
1278
1278
  }
1279
- function ji(a) {
1280
- return ga(a.target.files).map((i) => q(i));
1279
+ function Ei(a) {
1280
+ return ba(a.target.files).map((i) => q(i));
1281
1281
  }
1282
- function Di(a) {
1282
+ function Ai(a) {
1283
1283
  return A(this, void 0, void 0, function* () {
1284
1284
  return (yield Promise.all(a.map((t) => t.getFile()))).map((t) => q(t));
1285
1285
  });
1286
1286
  }
1287
- function zi(a, i) {
1287
+ function Oi(a, i) {
1288
1288
  return A(this, void 0, void 0, function* () {
1289
1289
  if (a.items) {
1290
- const t = ga(a.items).filter((p) => p.kind === "file");
1290
+ const t = ba(a.items).filter((p) => p.kind === "file");
1291
1291
  if (i !== "drop")
1292
1292
  return t;
1293
- const n = yield Promise.all(t.map(Ei));
1294
- return $a(Va(n));
1293
+ const n = yield Promise.all(t.map(Fi));
1294
+ return Ka(Xa(n));
1295
1295
  }
1296
- return $a(ga(a.files).map((t) => q(t)));
1296
+ return Ka(ba(a.files).map((t) => q(t)));
1297
1297
  });
1298
1298
  }
1299
- function $a(a) {
1300
- return a.filter((i) => hi.indexOf(i.name) === -1);
1299
+ function Ka(a) {
1300
+ return a.filter((i) => ki.indexOf(i.name) === -1);
1301
1301
  }
1302
- function ga(a) {
1302
+ function ba(a) {
1303
1303
  if (a === null)
1304
1304
  return [];
1305
1305
  const i = [];
@@ -1309,19 +1309,19 @@ function ga(a) {
1309
1309
  }
1310
1310
  return i;
1311
1311
  }
1312
- function Ei(a) {
1312
+ function Fi(a) {
1313
1313
  if (typeof a.webkitGetAsEntry != "function")
1314
- return Ka(a);
1314
+ return Ha(a);
1315
1315
  const i = a.webkitGetAsEntry();
1316
- return i && i.isDirectory ? Qa(i) : Ka(a, i);
1316
+ return i && i.isDirectory ? Za(i) : Ha(a, i);
1317
1317
  }
1318
- function Va(a) {
1318
+ function Xa(a) {
1319
1319
  return a.reduce((i, t) => [
1320
1320
  ...i,
1321
- ...Array.isArray(t) ? Va(t) : [t]
1321
+ ...Array.isArray(t) ? Xa(t) : [t]
1322
1322
  ], []);
1323
1323
  }
1324
- function Ka(a, i) {
1324
+ function Ha(a, i) {
1325
1325
  return A(this, void 0, void 0, function* () {
1326
1326
  var t;
1327
1327
  if (globalThis.isSecureContext && typeof a.getAsFileSystemHandle == "function") {
@@ -1339,19 +1339,19 @@ function Ka(a, i) {
1339
1339
  return q(n, (t = i == null ? void 0 : i.fullPath) !== null && t !== void 0 ? t : void 0);
1340
1340
  });
1341
1341
  }
1342
- function Ai(a) {
1342
+ function _i(a) {
1343
1343
  return A(this, void 0, void 0, function* () {
1344
- return a.isDirectory ? Qa(a) : Oi(a);
1344
+ return a.isDirectory ? Za(a) : Pi(a);
1345
1345
  });
1346
1346
  }
1347
- function Qa(a) {
1347
+ function Za(a) {
1348
1348
  const i = a.createReader();
1349
1349
  return new Promise((t, n) => {
1350
1350
  const p = [];
1351
1351
  function o() {
1352
1352
  i.readEntries((l) => A(this, void 0, void 0, function* () {
1353
1353
  if (l.length) {
1354
- const r = Promise.all(l.map(Ai));
1354
+ const r = Promise.all(l.map(_i));
1355
1355
  p.push(r), o();
1356
1356
  } else
1357
1357
  try {
@@ -1367,7 +1367,7 @@ function Qa(a) {
1367
1367
  o();
1368
1368
  });
1369
1369
  }
1370
- function Oi(a) {
1370
+ function Pi(a) {
1371
1371
  return A(this, void 0, void 0, function* () {
1372
1372
  return new Promise((i, t) => {
1373
1373
  a.file((n) => {
@@ -1379,33 +1379,38 @@ function Oi(a) {
1379
1379
  });
1380
1380
  });
1381
1381
  }
1382
- var fa = function(a, i) {
1383
- if (a && i) {
1384
- var t = Array.isArray(i) ? i : i.split(",");
1385
- if (t.length === 0)
1386
- return !0;
1387
- var n = a.name || "", p = (a.type || "").toLowerCase(), o = p.replace(/\/.*$/, "");
1388
- return t.some(function(l) {
1389
- var r = l.trim().toLowerCase();
1390
- return r.charAt(0) === "." ? n.toLowerCase().endsWith(r) : r.endsWith("/*") ? o === r.replace(/\/.*$/, "") : p === r;
1391
- });
1392
- }
1393
- return !0;
1394
- };
1395
- function Ha(a) {
1396
- return Pi(a) || _i(a) || Za(a) || Fi();
1382
+ var V = {}, Wa;
1383
+ function Si() {
1384
+ return Wa || (Wa = 1, V.__esModule = !0, V.default = function(a, i) {
1385
+ if (a && i) {
1386
+ var t = Array.isArray(i) ? i : i.split(",");
1387
+ if (t.length === 0)
1388
+ return !0;
1389
+ var n = a.name || "", p = (a.type || "").toLowerCase(), o = p.replace(/\/.*$/, "");
1390
+ return t.some(function(l) {
1391
+ var r = l.trim().toLowerCase();
1392
+ return r.charAt(0) === "." ? n.toLowerCase().endsWith(r) : r.endsWith("/*") ? o === r.replace(/\/.*$/, "") : p === r;
1393
+ });
1394
+ }
1395
+ return !0;
1396
+ }), V;
1397
+ }
1398
+ var qi = Si();
1399
+ const xa = /* @__PURE__ */ hi(qi);
1400
+ function Ba(a) {
1401
+ return Ii(a) || Ci(a) || ii(a) || Ti();
1397
1402
  }
1398
- function Fi() {
1403
+ function Ti() {
1399
1404
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1400
1405
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1401
1406
  }
1402
- function _i(a) {
1407
+ function Ci(a) {
1403
1408
  if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
1404
1409
  }
1405
- function Pi(a) {
1406
- if (Array.isArray(a)) return ba(a);
1410
+ function Ii(a) {
1411
+ if (Array.isArray(a)) return ha(a);
1407
1412
  }
1408
- function Wa(a, i) {
1413
+ function Na(a, i) {
1409
1414
  var t = Object.keys(a);
1410
1415
  if (Object.getOwnPropertySymbols) {
1411
1416
  var n = Object.getOwnPropertySymbols(a);
@@ -1415,42 +1420,42 @@ function Wa(a, i) {
1415
1420
  }
1416
1421
  return t;
1417
1422
  }
1418
- function Ba(a) {
1423
+ function Ua(a) {
1419
1424
  for (var i = 1; i < arguments.length; i++) {
1420
1425
  var t = arguments[i] != null ? arguments[i] : {};
1421
- i % 2 ? Wa(Object(t), !0).forEach(function(n) {
1422
- Xa(a, n, t[n]);
1423
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Wa(Object(t)).forEach(function(n) {
1426
+ i % 2 ? Na(Object(t), !0).forEach(function(n) {
1427
+ ai(a, n, t[n]);
1428
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Na(Object(t)).forEach(function(n) {
1424
1429
  Object.defineProperty(a, n, Object.getOwnPropertyDescriptor(t, n));
1425
1430
  });
1426
1431
  }
1427
1432
  return a;
1428
1433
  }
1429
- function Xa(a, i, t) {
1434
+ function ai(a, i, t) {
1430
1435
  return i in a ? Object.defineProperty(a, i, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[i] = t, a;
1431
1436
  }
1432
1437
  function K(a, i) {
1433
- return Ti(a) || qi(a, i) || Za(a, i) || Si();
1438
+ return Mi(a) || Li(a, i) || ii(a, i) || Ri();
1434
1439
  }
1435
- function Si() {
1440
+ function Ri() {
1436
1441
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1437
1442
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1438
1443
  }
1439
- function Za(a, i) {
1444
+ function ii(a, i) {
1440
1445
  if (a) {
1441
- if (typeof a == "string") return ba(a, i);
1446
+ if (typeof a == "string") return ha(a, i);
1442
1447
  var t = Object.prototype.toString.call(a).slice(8, -1);
1443
1448
  if (t === "Object" && a.constructor && (t = a.constructor.name), t === "Map" || t === "Set") return Array.from(a);
1444
- if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return ba(a, i);
1449
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return ha(a, i);
1445
1450
  }
1446
1451
  }
1447
- function ba(a, i) {
1452
+ function ha(a, i) {
1448
1453
  (i == null || i > a.length) && (i = a.length);
1449
1454
  for (var t = 0, n = new Array(i); t < i; t++)
1450
1455
  n[t] = a[t];
1451
1456
  return n;
1452
1457
  }
1453
- function qi(a, i) {
1458
+ function Li(a, i) {
1454
1459
  var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
1455
1460
  if (t != null) {
1456
1461
  var n = [], p = !0, o = !1, l, r;
@@ -1469,75 +1474,74 @@ function qi(a, i) {
1469
1474
  return n;
1470
1475
  }
1471
1476
  }
1472
- function Ti(a) {
1477
+ function Mi(a) {
1473
1478
  if (Array.isArray(a)) return a;
1474
1479
  }
1475
- var Ci = typeof fa == "function" ? fa : fa.default, Ii = "file-invalid-type", Ri = "file-too-large", Li = "file-too-small", Mi = "too-many-files", $i = function(i) {
1476
- i = Array.isArray(i) && i.length === 1 ? i[0] : i;
1477
- var t = Array.isArray(i) ? "one of ".concat(i.join(", ")) : i;
1480
+ var $i = typeof xa == "function" ? xa : xa.default, Ki = "file-invalid-type", Hi = "file-too-large", Wi = "file-too-small", Bi = "too-many-files", Ni = function() {
1481
+ var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = i.split(","), n = t.length > 1 ? "one of ".concat(t.join(", ")) : t[0];
1478
1482
  return {
1479
- code: Ii,
1480
- message: "File type must be ".concat(t)
1483
+ code: Ki,
1484
+ message: "File type must be ".concat(n)
1481
1485
  };
1482
- }, Na = function(i) {
1486
+ }, Ya = function(i) {
1483
1487
  return {
1484
- code: Ri,
1488
+ code: Hi,
1485
1489
  message: "File is larger than ".concat(i, " ").concat(i === 1 ? "byte" : "bytes")
1486
1490
  };
1487
- }, Ua = function(i) {
1491
+ }, Ga = function(i) {
1488
1492
  return {
1489
- code: Li,
1493
+ code: Wi,
1490
1494
  message: "File is smaller than ".concat(i, " ").concat(i === 1 ? "byte" : "bytes")
1491
1495
  };
1492
- }, Ki = {
1493
- code: Mi,
1496
+ }, Ui = {
1497
+ code: Bi,
1494
1498
  message: "Too many files"
1495
1499
  };
1496
- function ai(a, i) {
1497
- var t = a.type === "application/x-moz-file" || Ci(a, i);
1498
- return [t, t ? null : $i(i)];
1500
+ function ti(a, i) {
1501
+ var t = a.type === "application/x-moz-file" || $i(a, i);
1502
+ return [t, t ? null : Ni(i)];
1499
1503
  }
1500
- function ii(a, i, t) {
1504
+ function ni(a, i, t) {
1501
1505
  if (E(a.size))
1502
1506
  if (E(i) && E(t)) {
1503
- if (a.size > t) return [!1, Na(t)];
1504
- if (a.size < i) return [!1, Ua(i)];
1507
+ if (a.size > t) return [!1, Ya(t)];
1508
+ if (a.size < i) return [!1, Ga(i)];
1505
1509
  } else {
1506
- if (E(i) && a.size < i) return [!1, Ua(i)];
1507
- if (E(t) && a.size > t) return [!1, Na(t)];
1510
+ if (E(i) && a.size < i) return [!1, Ga(i)];
1511
+ if (E(t) && a.size > t) return [!1, Ya(t)];
1508
1512
  }
1509
1513
  return [!0, null];
1510
1514
  }
1511
1515
  function E(a) {
1512
1516
  return a != null;
1513
1517
  }
1514
- function Hi(a) {
1518
+ function Yi(a) {
1515
1519
  var i = a.files, t = a.accept, n = a.minSize, p = a.maxSize, o = a.multiple, l = a.maxFiles, r = a.validator;
1516
1520
  return !o && i.length > 1 || o && l >= 1 && i.length > l ? !1 : i.every(function(v) {
1517
- var k = ai(v, t), x = K(k, 1), j = x[0], T = ii(v, n, p), C = K(T, 1), I = C[0], R = r ? r(v) : null;
1521
+ var k = ti(v, t), x = K(k, 1), j = x[0], T = ni(v, n, p), C = K(T, 1), I = C[0], R = r ? r(v) : null;
1518
1522
  return j && I && !R;
1519
1523
  });
1520
1524
  }
1521
- function X(a) {
1525
+ function Z(a) {
1522
1526
  return typeof a.isPropagationStopped == "function" ? a.isPropagationStopped() : typeof a.cancelBubble < "u" ? a.cancelBubble : !1;
1523
1527
  }
1524
- function V(a) {
1528
+ function Q(a) {
1525
1529
  return a.dataTransfer ? Array.prototype.some.call(a.dataTransfer.types, function(i) {
1526
1530
  return i === "Files" || i === "application/x-moz-file";
1527
1531
  }) : !!a.target && !!a.target.files;
1528
1532
  }
1529
- function Ya(a) {
1533
+ function Ja(a) {
1530
1534
  a.preventDefault();
1531
1535
  }
1532
- function Wi(a) {
1536
+ function Gi(a) {
1533
1537
  return a.indexOf("MSIE") !== -1 || a.indexOf("Trident/") !== -1;
1534
1538
  }
1535
- function Bi(a) {
1539
+ function Ji(a) {
1536
1540
  return a.indexOf("Edge/") !== -1;
1537
1541
  }
1538
- function Ni() {
1542
+ function Vi() {
1539
1543
  var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
1540
- return Wi(a) || Bi(a);
1544
+ return Gi(a) || Ji(a);
1541
1545
  }
1542
1546
  function w() {
1543
1547
  for (var a = arguments.length, i = new Array(a), t = 0; t < a; t++)
@@ -1546,21 +1550,21 @@ function w() {
1546
1550
  for (var p = arguments.length, o = new Array(p > 1 ? p - 1 : 0), l = 1; l < p; l++)
1547
1551
  o[l - 1] = arguments[l];
1548
1552
  return i.some(function(r) {
1549
- return !X(n) && r && r.apply(void 0, [n].concat(o)), X(n);
1553
+ return !Z(n) && r && r.apply(void 0, [n].concat(o)), Z(n);
1550
1554
  });
1551
1555
  };
1552
1556
  }
1553
- function Ui() {
1557
+ function Qi() {
1554
1558
  return "showOpenFilePicker" in window;
1555
1559
  }
1556
- function Yi(a) {
1560
+ function Xi(a) {
1557
1561
  if (E(a)) {
1558
1562
  var i = Object.entries(a).filter(function(t) {
1559
1563
  var n = K(t, 2), p = n[0], o = n[1], l = !0;
1560
- return ti(p) || (console.warn('Skipped "'.concat(p, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), l = !1), (!Array.isArray(o) || !o.every(ni)) && (console.warn('Skipped "'.concat(p, '" because an invalid file extension was provided.')), l = !1), l;
1564
+ return ei(p) || (console.warn('Skipped "'.concat(p, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), l = !1), (!Array.isArray(o) || !o.every(pi)) && (console.warn('Skipped "'.concat(p, '" because an invalid file extension was provided.')), l = !1), l;
1561
1565
  }).reduce(function(t, n) {
1562
1566
  var p = K(n, 2), o = p[0], l = p[1];
1563
- return Ba(Ba({}, t), {}, Xa({}, o, l));
1567
+ return Ua(Ua({}, t), {}, ai({}, o, l));
1564
1568
  }, {});
1565
1569
  return [{
1566
1570
  // description is required due to https://crbug.com/1264708
@@ -1570,63 +1574,63 @@ function Yi(a) {
1570
1574
  }
1571
1575
  return a;
1572
1576
  }
1573
- function Gi(a) {
1577
+ function Zi(a) {
1574
1578
  if (E(a))
1575
1579
  return Object.entries(a).reduce(function(i, t) {
1576
1580
  var n = K(t, 2), p = n[0], o = n[1];
1577
- return [].concat(Ha(i), [p], Ha(o));
1581
+ return [].concat(Ba(i), [p], Ba(o));
1578
1582
  }, []).filter(function(i) {
1579
- return ti(i) || ni(i);
1583
+ return ei(i) || pi(i);
1580
1584
  }).join(",");
1581
1585
  }
1582
- function Ji(a) {
1586
+ function at(a) {
1583
1587
  return a instanceof DOMException && (a.name === "AbortError" || a.code === a.ABORT_ERR);
1584
1588
  }
1585
- function Vi(a) {
1589
+ function it(a) {
1586
1590
  return a instanceof DOMException && (a.name === "SecurityError" || a.code === a.SECURITY_ERR);
1587
1591
  }
1588
- function ti(a) {
1592
+ function ei(a) {
1589
1593
  return a === "audio/*" || a === "video/*" || a === "image/*" || a === "text/*" || a === "application/*" || /\w+\/[-+.\w]+/g.test(a);
1590
1594
  }
1591
- function ni(a) {
1595
+ function pi(a) {
1592
1596
  return /^.*\.[\w]+$/.test(a);
1593
1597
  }
1594
- var Qi = ["children"], Xi = ["open"], Zi = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], at = ["refKey", "onChange", "onClick"];
1595
- function it(a) {
1596
- return et(a) || nt(a) || ei(a) || tt();
1598
+ var tt = ["children"], nt = ["open"], et = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], pt = ["refKey", "onChange", "onClick"];
1599
+ function ot(a) {
1600
+ return rt(a) || lt(a) || oi(a) || ct();
1597
1601
  }
1598
- function tt() {
1602
+ function ct() {
1599
1603
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1600
1604
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1601
1605
  }
1602
- function nt(a) {
1606
+ function lt(a) {
1603
1607
  if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
1604
1608
  }
1605
- function et(a) {
1606
- if (Array.isArray(a)) return ha(a);
1609
+ function rt(a) {
1610
+ if (Array.isArray(a)) return ya(a);
1607
1611
  }
1608
- function xa(a, i) {
1609
- return ct(a) || ot(a, i) || ei(a, i) || pt();
1612
+ function ga(a, i) {
1613
+ return mt(a) || dt(a, i) || oi(a, i) || st();
1610
1614
  }
1611
- function pt() {
1615
+ function st() {
1612
1616
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1613
1617
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1614
1618
  }
1615
- function ei(a, i) {
1619
+ function oi(a, i) {
1616
1620
  if (a) {
1617
- if (typeof a == "string") return ha(a, i);
1621
+ if (typeof a == "string") return ya(a, i);
1618
1622
  var t = Object.prototype.toString.call(a).slice(8, -1);
1619
1623
  if (t === "Object" && a.constructor && (t = a.constructor.name), t === "Map" || t === "Set") return Array.from(a);
1620
- if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return ha(a, i);
1624
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return ya(a, i);
1621
1625
  }
1622
1626
  }
1623
- function ha(a, i) {
1627
+ function ya(a, i) {
1624
1628
  (i == null || i > a.length) && (i = a.length);
1625
1629
  for (var t = 0, n = new Array(i); t < i; t++)
1626
1630
  n[t] = a[t];
1627
1631
  return n;
1628
1632
  }
1629
- function ot(a, i) {
1633
+ function dt(a, i) {
1630
1634
  var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
1631
1635
  if (t != null) {
1632
1636
  var n = [], p = !0, o = !1, l, r;
@@ -1645,10 +1649,10 @@ function ot(a, i) {
1645
1649
  return n;
1646
1650
  }
1647
1651
  }
1648
- function ct(a) {
1652
+ function mt(a) {
1649
1653
  if (Array.isArray(a)) return a;
1650
1654
  }
1651
- function Ga(a, i) {
1655
+ function Va(a, i) {
1652
1656
  var t = Object.keys(a);
1653
1657
  if (Object.getOwnPropertySymbols) {
1654
1658
  var n = Object.getOwnPropertySymbols(a);
@@ -1661,20 +1665,20 @@ function Ga(a, i) {
1661
1665
  function d(a) {
1662
1666
  for (var i = 1; i < arguments.length; i++) {
1663
1667
  var t = arguments[i] != null ? arguments[i] : {};
1664
- i % 2 ? Ga(Object(t), !0).forEach(function(n) {
1665
- ya(a, n, t[n]);
1666
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Ga(Object(t)).forEach(function(n) {
1668
+ i % 2 ? Va(Object(t), !0).forEach(function(n) {
1669
+ wa(a, n, t[n]);
1670
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Va(Object(t)).forEach(function(n) {
1667
1671
  Object.defineProperty(a, n, Object.getOwnPropertyDescriptor(t, n));
1668
1672
  });
1669
1673
  }
1670
1674
  return a;
1671
1675
  }
1672
- function ya(a, i, t) {
1676
+ function wa(a, i, t) {
1673
1677
  return i in a ? Object.defineProperty(a, i, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[i] = t, a;
1674
1678
  }
1675
- function Z(a, i) {
1679
+ function aa(a, i) {
1676
1680
  if (a == null) return {};
1677
- var t = lt(a, i), n, p;
1681
+ var t = ut(a, i), n, p;
1678
1682
  if (Object.getOwnPropertySymbols) {
1679
1683
  var o = Object.getOwnPropertySymbols(a);
1680
1684
  for (p = 0; p < o.length; p++)
@@ -1682,27 +1686,27 @@ function Z(a, i) {
1682
1686
  }
1683
1687
  return t;
1684
1688
  }
1685
- function lt(a, i) {
1689
+ function ut(a, i) {
1686
1690
  if (a == null) return {};
1687
1691
  var t = {}, n = Object.keys(a), p, o;
1688
1692
  for (o = 0; o < n.length; o++)
1689
1693
  p = n[o], !(i.indexOf(p) >= 0) && (t[p] = a[p]);
1690
1694
  return t;
1691
1695
  }
1692
- var ka = /* @__PURE__ */ vi(function(a, i) {
1693
- var t = a.children, n = Z(a, Qi), p = rt(n), o = p.open, l = Z(p, Xi);
1694
- return fi(i, function() {
1696
+ var ja = /* @__PURE__ */ xi(function(a, i) {
1697
+ var t = a.children, n = aa(a, tt), p = vt(n), o = p.open, l = aa(p, nt);
1698
+ return gi(i, function() {
1695
1699
  return {
1696
1700
  open: o
1697
1701
  };
1698
- }, [o]), /* @__PURE__ */ mi.createElement(xi, null, t(d(d({}, l), {}, {
1702
+ }, [o]), /* @__PURE__ */ vi.createElement(bi, null, t(d(d({}, l), {}, {
1699
1703
  open: o
1700
1704
  })));
1701
1705
  });
1702
- ka.displayName = "Dropzone";
1703
- var pi = {
1706
+ ja.displayName = "Dropzone";
1707
+ var ci = {
1704
1708
  disabled: !1,
1705
- getFilesFromEvent: yi,
1709
+ getFilesFromEvent: ji,
1706
1710
  maxSize: 1 / 0,
1707
1711
  minSize: 0,
1708
1712
  multiple: !0,
@@ -1716,8 +1720,8 @@ var pi = {
1716
1720
  useFsAccessApi: !1,
1717
1721
  autoFocus: !1
1718
1722
  };
1719
- ka.defaultProps = pi;
1720
- ka.propTypes = {
1723
+ ja.defaultProps = ci;
1724
+ ja.propTypes = {
1721
1725
  /**
1722
1726
  * Render function that exposes the dropzone state and prop getter fns
1723
1727
  *
@@ -1885,7 +1889,7 @@ ka.propTypes = {
1885
1889
  */
1886
1890
  validator: s.func
1887
1891
  };
1888
- var wa = {
1892
+ var ka = {
1889
1893
  isFocused: !1,
1890
1894
  isFileDialogActive: !1,
1891
1895
  isDragActive: !1,
@@ -1894,17 +1898,17 @@ var wa = {
1894
1898
  acceptedFiles: [],
1895
1899
  fileRejections: []
1896
1900
  };
1897
- function rt() {
1898
- var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = d(d({}, pi), a), t = i.accept, n = i.disabled, p = i.getFilesFromEvent, o = i.maxSize, l = i.minSize, r = i.multiple, v = i.maxFiles, k = i.onDragEnter, x = i.onDragLeave, j = i.onDragOver, T = i.onDrop, C = i.onDropAccepted, I = i.onDropRejected, R = i.onFileDialogCancel, aa = i.onFileDialogOpen, ja = i.useFsAccessApi, Da = i.autoFocus, ia = i.preventDropOnDocument, za = i.noClick, ta = i.noKeyboard, Ea = i.noDrag, D = i.noDragEventsBubbling, na = i.onError, L = i.validator, M = S(function() {
1899
- return Gi(t);
1900
- }, [t]), Aa = S(function() {
1901
- return Yi(t);
1902
- }, [t]), ea = S(function() {
1903
- return typeof aa == "function" ? aa : Ja;
1904
- }, [aa]), H = S(function() {
1905
- return typeof R == "function" ? R : Ja;
1906
- }, [R]), f = J(null), h = J(null), oi = ui(st, wa), Oa = xa(oi, 2), pa = Oa[0], g = Oa[1], ci = pa.isFocused, Fa = pa.isFileDialogActive, W = J(typeof window < "u" && window.isSecureContext && ja && Ui()), _a = function() {
1907
- !W.current && Fa && setTimeout(function() {
1901
+ function vt() {
1902
+ var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = d(d({}, ci), a), t = i.accept, n = i.disabled, p = i.getFilesFromEvent, o = i.maxSize, l = i.minSize, r = i.multiple, v = i.maxFiles, k = i.onDragEnter, x = i.onDragLeave, j = i.onDragOver, T = i.onDrop, C = i.onDropAccepted, I = i.onDropRejected, R = i.onFileDialogCancel, ia = i.onFileDialogOpen, Da = i.useFsAccessApi, za = i.autoFocus, ta = i.preventDropOnDocument, Ea = i.noClick, na = i.noKeyboard, Aa = i.noDrag, D = i.noDragEventsBubbling, ea = i.onError, L = i.validator, M = S(function() {
1903
+ return Zi(t);
1904
+ }, [t]), Oa = S(function() {
1905
+ return Xi(t);
1906
+ }, [t]), pa = S(function() {
1907
+ return typeof ia == "function" ? ia : Qa;
1908
+ }, [ia]), H = S(function() {
1909
+ return typeof R == "function" ? R : Qa;
1910
+ }, [R]), f = J(null), h = J(null), li = fi(ft, ka), Fa = ga(li, 2), oa = Fa[0], g = Fa[1], ri = oa.isFocused, _a = oa.isFileDialogActive, W = J(typeof window < "u" && window.isSecureContext && Da && Qi()), Pa = function() {
1911
+ !W.current && _a && setTimeout(function() {
1908
1912
  if (h.current) {
1909
1913
  var c = h.current.files;
1910
1914
  c.length || (g({
@@ -1913,28 +1917,28 @@ function rt() {
1913
1917
  }
1914
1918
  }, 300);
1915
1919
  };
1916
- va(function() {
1917
- return window.addEventListener("focus", _a, !1), function() {
1918
- window.removeEventListener("focus", _a, !1);
1920
+ fa(function() {
1921
+ return window.addEventListener("focus", Pa, !1), function() {
1922
+ window.removeEventListener("focus", Pa, !1);
1919
1923
  };
1920
- }, [h, Fa, H, W]);
1921
- var O = J([]), Pa = function(c) {
1924
+ }, [h, _a, H, W]);
1925
+ var O = J([]), Sa = function(c) {
1922
1926
  f.current && f.current.contains(c.target) || (c.preventDefault(), O.current = []);
1923
1927
  };
1924
- va(function() {
1925
- return ia && (document.addEventListener("dragover", Ya, !1), document.addEventListener("drop", Pa, !1)), function() {
1926
- ia && (document.removeEventListener("dragover", Ya), document.removeEventListener("drop", Pa));
1928
+ fa(function() {
1929
+ return ta && (document.addEventListener("dragover", Ja, !1), document.addEventListener("drop", Sa, !1)), function() {
1930
+ ta && (document.removeEventListener("dragover", Ja), document.removeEventListener("drop", Sa));
1927
1931
  };
1928
- }, [f, ia]), va(function() {
1929
- return !n && Da && f.current && f.current.focus(), function() {
1932
+ }, [f, ta]), fa(function() {
1933
+ return !n && za && f.current && f.current.focus(), function() {
1930
1934
  };
1931
- }, [f, Da, n]);
1935
+ }, [f, za, n]);
1932
1936
  var z = y(function(e) {
1933
- na ? na(e) : console.error(e);
1934
- }, [na]), Sa = y(function(e) {
1935
- e.preventDefault(), e.persist(), Y(e), O.current = [].concat(it(O.current), [e.target]), V(e) && Promise.resolve(p(e)).then(function(c) {
1936
- if (!(X(e) && !D)) {
1937
- var m = c.length, u = m > 0 && Hi({
1937
+ ea ? ea(e) : console.error(e);
1938
+ }, [ea]), qa = y(function(e) {
1939
+ e.preventDefault(), e.persist(), Y(e), O.current = [].concat(ot(O.current), [e.target]), Q(e) && Promise.resolve(p(e)).then(function(c) {
1940
+ if (!(Z(e) && !D)) {
1941
+ var m = c.length, u = m > 0 && Yi({
1938
1942
  files: c,
1939
1943
  accept: M,
1940
1944
  minSize: l,
@@ -1953,16 +1957,16 @@ function rt() {
1953
1957
  }).catch(function(c) {
1954
1958
  return z(c);
1955
1959
  });
1956
- }, [p, k, z, D, M, l, o, r, v, L]), qa = y(function(e) {
1960
+ }, [p, k, z, D, M, l, o, r, v, L]), Ta = y(function(e) {
1957
1961
  e.preventDefault(), e.persist(), Y(e);
1958
- var c = V(e);
1962
+ var c = Q(e);
1959
1963
  if (c && e.dataTransfer)
1960
1964
  try {
1961
1965
  e.dataTransfer.dropEffect = "copy";
1962
1966
  } catch {
1963
1967
  }
1964
1968
  return c && j && j(e), !1;
1965
- }, [j, D]), Ta = y(function(e) {
1969
+ }, [j, D]), Ca = y(function(e) {
1966
1970
  e.preventDefault(), e.persist(), Y(e);
1967
1971
  var c = O.current.filter(function(u) {
1968
1972
  return f.current && f.current.contains(u);
@@ -1972,35 +1976,36 @@ function rt() {
1972
1976
  isDragActive: !1,
1973
1977
  isDragAccept: !1,
1974
1978
  isDragReject: !1
1975
- }), V(e) && x && x(e));
1979
+ }), Q(e) && x && x(e));
1976
1980
  }, [f, x, D]), B = y(function(e, c) {
1977
1981
  var m = [], u = [];
1978
1982
  e.forEach(function(b) {
1979
- var $ = ai(b, M), P = xa($, 2), ca = P[0], la = P[1], ra = ii(b, l, o), G = xa(ra, 2), sa = G[0], da = G[1], ma = L ? L(b) : null;
1980
- if (ca && sa && !ma)
1983
+ var $ = ti(b, M), P = ga($, 2), la = P[0], ra = P[1], sa = ni(b, l, o), G = ga(sa, 2), da = G[0], ma = G[1], ua = L ? L(b) : null;
1984
+ if (la && da && !ua)
1981
1985
  m.push(b);
1982
1986
  else {
1983
- var ua = [la, da];
1984
- ma && (ua = ua.concat(ma)), u.push({
1987
+ var va = [ra, ma];
1988
+ ua && (va = va.concat(ua)), u.push({
1985
1989
  file: b,
1986
- errors: ua.filter(function(di) {
1987
- return di;
1990
+ errors: va.filter(function(ui) {
1991
+ return ui;
1988
1992
  })
1989
1993
  });
1990
1994
  }
1991
1995
  }), (!r && m.length > 1 || r && v >= 1 && m.length > v) && (m.forEach(function(b) {
1992
1996
  u.push({
1993
1997
  file: b,
1994
- errors: [Ki]
1998
+ errors: [Ui]
1995
1999
  });
1996
2000
  }), m.splice(0)), g({
1997
2001
  acceptedFiles: m,
1998
2002
  fileRejections: u,
2003
+ isDragReject: u.length > 0,
1999
2004
  type: "setFiles"
2000
2005
  }), T && T(m, u, c), u.length > 0 && I && I(u, c), m.length > 0 && C && C(m, c);
2001
2006
  }, [g, r, M, l, o, v, T, C, I, L]), N = y(function(e) {
2002
- e.preventDefault(), e.persist(), Y(e), O.current = [], V(e) && Promise.resolve(p(e)).then(function(c) {
2003
- X(e) && !D || B(c, e);
2007
+ e.preventDefault(), e.persist(), Y(e), O.current = [], Q(e) && Promise.resolve(p(e)).then(function(c) {
2008
+ Z(e) && !D || B(c, e);
2004
2009
  }).catch(function(c) {
2005
2010
  return z(c);
2006
2011
  }), g({
@@ -2010,10 +2015,10 @@ function rt() {
2010
2015
  if (W.current) {
2011
2016
  g({
2012
2017
  type: "openDialog"
2013
- }), ea();
2018
+ }), pa();
2014
2019
  var e = {
2015
2020
  multiple: r,
2016
- types: Aa
2021
+ types: Oa
2017
2022
  };
2018
2023
  window.showOpenFilePicker(e).then(function(c) {
2019
2024
  return p(c);
@@ -2022,57 +2027,57 @@ function rt() {
2022
2027
  type: "closeDialog"
2023
2028
  });
2024
2029
  }).catch(function(c) {
2025
- Ji(c) ? (H(c), g({
2030
+ at(c) ? (H(c), g({
2026
2031
  type: "closeDialog"
2027
- })) : Vi(c) ? (W.current = !1, h.current ? (h.current.value = null, h.current.click()) : z(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."))) : z(c);
2032
+ })) : it(c) ? (W.current = !1, h.current ? (h.current.value = null, h.current.click()) : z(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."))) : z(c);
2028
2033
  });
2029
2034
  return;
2030
2035
  }
2031
2036
  h.current && (g({
2032
2037
  type: "openDialog"
2033
- }), ea(), h.current.value = null, h.current.click());
2034
- }, [g, ea, H, ja, B, z, Aa, r]), Ca = y(function(e) {
2038
+ }), pa(), h.current.value = null, h.current.click());
2039
+ }, [g, pa, H, Da, B, z, Oa, r]), Ia = y(function(e) {
2035
2040
  !f.current || !f.current.isEqualNode(e.target) || (e.key === " " || e.key === "Enter" || e.keyCode === 32 || e.keyCode === 13) && (e.preventDefault(), F());
2036
- }, [f, F]), Ia = y(function() {
2041
+ }, [f, F]), Ra = y(function() {
2037
2042
  g({
2038
2043
  type: "focus"
2039
2044
  });
2040
- }, []), Ra = y(function() {
2045
+ }, []), La = y(function() {
2041
2046
  g({
2042
2047
  type: "blur"
2043
2048
  });
2044
- }, []), La = y(function() {
2045
- za || (Ni() ? setTimeout(F, 0) : F());
2046
- }, [za, F]), _ = function(c) {
2049
+ }, []), Ma = y(function() {
2050
+ Ea || (Vi() ? setTimeout(F, 0) : F());
2051
+ }, [Ea, F]), _ = function(c) {
2047
2052
  return n ? null : c;
2048
- }, oa = function(c) {
2049
- return ta ? null : _(c);
2053
+ }, ca = function(c) {
2054
+ return na ? null : _(c);
2050
2055
  }, U = function(c) {
2051
- return Ea ? null : _(c);
2056
+ return Aa ? null : _(c);
2052
2057
  }, Y = function(c) {
2053
2058
  D && c.stopPropagation();
2054
- }, li = S(function() {
2059
+ }, si = S(function() {
2055
2060
  return function() {
2056
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = e.refKey, m = c === void 0 ? "ref" : c, u = e.role, b = e.onKeyDown, $ = e.onFocus, P = e.onBlur, ca = e.onClick, la = e.onDragEnter, ra = e.onDragOver, G = e.onDragLeave, sa = e.onDrop, da = Z(e, Zi);
2057
- return d(d(ya({
2058
- onKeyDown: oa(w(b, Ca)),
2059
- onFocus: oa(w($, Ia)),
2060
- onBlur: oa(w(P, Ra)),
2061
- onClick: _(w(ca, La)),
2062
- onDragEnter: U(w(la, Sa)),
2063
- onDragOver: U(w(ra, qa)),
2064
- onDragLeave: U(w(G, Ta)),
2065
- onDrop: U(w(sa, N)),
2061
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = e.refKey, m = c === void 0 ? "ref" : c, u = e.role, b = e.onKeyDown, $ = e.onFocus, P = e.onBlur, la = e.onClick, ra = e.onDragEnter, sa = e.onDragOver, G = e.onDragLeave, da = e.onDrop, ma = aa(e, et);
2062
+ return d(d(wa({
2063
+ onKeyDown: ca(w(b, Ia)),
2064
+ onFocus: ca(w($, Ra)),
2065
+ onBlur: ca(w(P, La)),
2066
+ onClick: _(w(la, Ma)),
2067
+ onDragEnter: U(w(ra, qa)),
2068
+ onDragOver: U(w(sa, Ta)),
2069
+ onDragLeave: U(w(G, Ca)),
2070
+ onDrop: U(w(da, N)),
2066
2071
  role: typeof u == "string" && u !== "" ? u : "presentation"
2067
- }, m, f), !n && !ta ? {
2072
+ }, m, f), !n && !na ? {
2068
2073
  tabIndex: 0
2069
- } : {}), da);
2074
+ } : {}), ma);
2070
2075
  };
2071
- }, [f, Ca, Ia, Ra, La, Sa, qa, Ta, N, ta, Ea, n]), ri = y(function(e) {
2076
+ }, [f, Ia, Ra, La, Ma, qa, Ta, Ca, N, na, Aa, n]), di = y(function(e) {
2072
2077
  e.stopPropagation();
2073
- }, []), si = S(function() {
2078
+ }, []), mi = S(function() {
2074
2079
  return function() {
2075
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = e.refKey, m = c === void 0 ? "ref" : c, u = e.onChange, b = e.onClick, $ = Z(e, at), P = ya({
2080
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = e.refKey, m = c === void 0 ? "ref" : c, u = e.onChange, b = e.onClick, $ = aa(e, pt), P = wa({
2076
2081
  accept: M,
2077
2082
  multiple: r,
2078
2083
  type: "file",
@@ -2089,22 +2094,22 @@ function rt() {
2089
2094
  whiteSpace: "nowrap"
2090
2095
  },
2091
2096
  onChange: _(w(u, N)),
2092
- onClick: _(w(b, ri)),
2097
+ onClick: _(w(b, di)),
2093
2098
  tabIndex: -1
2094
2099
  }, m, h);
2095
2100
  return d(d({}, P), $);
2096
2101
  };
2097
2102
  }, [h, t, r, N, n]);
2098
- return d(d({}, pa), {}, {
2099
- isFocused: ci && !n,
2100
- getRootProps: li,
2101
- getInputProps: si,
2103
+ return d(d({}, oa), {}, {
2104
+ isFocused: ri && !n,
2105
+ getRootProps: si,
2106
+ getInputProps: mi,
2102
2107
  rootRef: f,
2103
2108
  inputRef: h,
2104
2109
  open: _(F)
2105
2110
  });
2106
2111
  }
2107
- function st(a, i) {
2112
+ function ft(a, i) {
2108
2113
  switch (i.type) {
2109
2114
  case "focus":
2110
2115
  return d(d({}, a), {}, {
@@ -2115,7 +2120,7 @@ function st(a, i) {
2115
2120
  isFocused: !1
2116
2121
  });
2117
2122
  case "openDialog":
2118
- return d(d({}, wa), {}, {
2123
+ return d(d({}, ka), {}, {
2119
2124
  isFileDialogActive: !0
2120
2125
  });
2121
2126
  case "closeDialog":
@@ -2131,16 +2136,17 @@ function st(a, i) {
2131
2136
  case "setFiles":
2132
2137
  return d(d({}, a), {}, {
2133
2138
  acceptedFiles: i.acceptedFiles,
2134
- fileRejections: i.fileRejections
2139
+ fileRejections: i.fileRejections,
2140
+ isDragReject: i.isDragReject
2135
2141
  });
2136
2142
  case "reset":
2137
- return d({}, wa);
2143
+ return d({}, ka);
2138
2144
  default:
2139
2145
  return a;
2140
2146
  }
2141
2147
  }
2142
- function Ja() {
2148
+ function Qa() {
2143
2149
  }
2144
2150
  export {
2145
- rt as u
2151
+ vt as u
2146
2152
  };