filepond 5.0.0-beta.21 → 5.0.0-beta.23

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 (237) hide show
  1. package/cdn/assets/index.js +1 -1
  2. package/cdn/locales/ar-ar.js +1 -1
  3. package/cdn/locales/bn-bd.js +1 -1
  4. package/cdn/locales/cs-cz.js +1 -1
  5. package/cdn/locales/da-dk.js +1 -1
  6. package/cdn/locales/de-de.js +1 -1
  7. package/cdn/locales/el-gr.js +1 -1
  8. package/cdn/locales/en-gb.js +1 -1
  9. package/cdn/locales/es-es.js +1 -1
  10. package/cdn/locales/fi-fi.js +1 -1
  11. package/cdn/locales/fr-fr.js +1 -1
  12. package/cdn/locales/hi-in.js +1 -1
  13. package/cdn/locales/hu-hu.js +1 -1
  14. package/cdn/locales/index.js +1 -1
  15. package/cdn/locales/is-is.js +1 -1
  16. package/cdn/locales/it-it.js +1 -1
  17. package/cdn/locales/ja-jp.js +1 -1
  18. package/cdn/locales/ko-kr.js +1 -1
  19. package/cdn/locales/nb-no.js +1 -1
  20. package/cdn/locales/nl-nl.js +1 -1
  21. package/cdn/locales/pl-pl.js +1 -1
  22. package/cdn/locales/pt-pt.js +1 -1
  23. package/cdn/locales/sv-se.js +1 -1
  24. package/cdn/locales/tr-tr.js +1 -1
  25. package/cdn/locales/uk-ua.js +1 -1
  26. package/cdn/locales/vi-vn.js +1 -1
  27. package/cdn/locales/zh-cn.js +1 -1
  28. package/cdn/main.js +2 -2
  29. package/cdn/workers/httpRequest.js +1 -1
  30. package/cdn/workers/readFile.js +1 -1
  31. package/cdn/workers/transformImage.js +1 -1
  32. package/esm/assets/index.js +1 -1
  33. package/esm/common/console.js +1 -1
  34. package/esm/common/entry.js +1 -1
  35. package/esm/common/perceivedPerformanceProxy.js +1 -1
  36. package/esm/common/readEntriesFromDataTransfer.js +1 -1
  37. package/esm/common/ssr.js +1 -1
  38. package/esm/common/status.js +1 -1
  39. package/esm/core/entryTree.js +1 -1
  40. package/esm/core/extensionManager.js +29 -29
  41. package/esm/core/taskScheduler.js +106 -100
  42. package/esm/dev/index.js +1 -1
  43. package/esm/elements/FilePondDefault/index.css.js +1 -1
  44. package/esm/elements/FilePondDefault/index.js +1 -1
  45. package/esm/elements/FilePondDropArea/index.css.js +1 -1
  46. package/esm/elements/FilePondDropArea/index.js +1 -1
  47. package/esm/elements/FilePondDropArea/index.svelte.js +1 -1
  48. package/esm/elements/FilePondDropIndicator/index.css.js +1 -1
  49. package/esm/elements/FilePondDropIndicator/index.js +1 -1
  50. package/esm/elements/FilePondDropIndicator/index.svelte.js +1 -1
  51. package/esm/elements/FilePondEntryList/components/Entry/index.css.js +1 -1
  52. package/esm/elements/FilePondEntryList/components/Entry/index.js +1 -1
  53. package/esm/elements/FilePondEntryList/components/Entry/index.svelte.js +1 -1
  54. package/esm/elements/FilePondEntryList/components/EntryActivityIndicator/index.css.js +1 -1
  55. package/esm/elements/FilePondEntryList/components/EntryActivityIndicator/index.js +1 -1
  56. package/esm/elements/FilePondEntryList/components/EntryActivityIndicator/index.svelte.js +1 -1
  57. package/esm/elements/FilePondEntryList/components/EntryList/index.css.js +1 -1
  58. package/esm/elements/FilePondEntryList/components/EntryList/index.js +1 -1
  59. package/esm/elements/FilePondEntryList/components/EntryList/index.svelte.js +1 -1
  60. package/esm/elements/FilePondEntryList/components/EntryListItem/index.css.js +1 -1
  61. package/esm/elements/FilePondEntryList/components/EntryListItem/index.js +1 -1
  62. package/esm/elements/FilePondEntryList/components/EntryListItem/index.svelte.js +1 -1
  63. package/esm/elements/FilePondEntryList/components/EntryListItemPlaceholder/index.svelte.js +1 -1
  64. package/esm/elements/FilePondEntryList/components/EntryStatus/index.css.js +1 -1
  65. package/esm/elements/FilePondEntryList/components/EntryStatus/index.js +1 -1
  66. package/esm/elements/FilePondEntryList/components/EntryStatus/index.svelte.js +1 -1
  67. package/esm/elements/FilePondEntryList/components/MediaImage/components/BitmapRenderer.svelte.js +43 -43
  68. package/esm/elements/FilePondEntryList/components/MediaImage/components/BitmapRendererCache.js +1 -1
  69. package/esm/elements/FilePondEntryList/components/MediaImage/index.css.js +1 -1
  70. package/esm/elements/FilePondEntryList/components/MediaImage/index.js +1 -1
  71. package/esm/elements/FilePondEntryList/components/MediaImage/index.svelte.js +1 -1
  72. package/esm/elements/FilePondEntryList/components/MediaPane/index.css.js +1 -1
  73. package/esm/elements/FilePondEntryList/components/MediaPane/index.js +1 -1
  74. package/esm/elements/FilePondEntryList/components/MediaPane/index.svelte.js +1 -1
  75. package/esm/elements/FilePondEntryList/components/MediaTimeIndicator/index.css.js +1 -1
  76. package/esm/elements/FilePondEntryList/components/MediaTimeIndicator/index.js +1 -1
  77. package/esm/elements/FilePondEntryList/components/MediaTimeIndicator/index.svelte.js +1 -1
  78. package/esm/elements/FilePondEntryList/components/MediaVideo/index.css.js +1 -1
  79. package/esm/elements/FilePondEntryList/components/MediaVideo/index.js +1 -1
  80. package/esm/elements/FilePondEntryList/components/MediaVideo/index.svelte.js +54 -51
  81. package/esm/elements/FilePondEntryList/contexts/appContext.js +1 -1
  82. package/esm/elements/FilePondEntryList/contexts/dragContext.js +1 -1
  83. package/esm/elements/FilePondEntryList/contexts/dropContext.js +1 -1
  84. package/esm/elements/FilePondEntryList/contexts/entryContext.js +1 -1
  85. package/esm/elements/FilePondEntryList/contexts/springElementTreeContext.js +1 -1
  86. package/esm/elements/FilePondEntryList/index.css.js +1 -1
  87. package/esm/elements/FilePondEntryList/index.js +1 -1
  88. package/esm/elements/FilePondEntryList/index.svelte.js +1 -1
  89. package/esm/elements/FilePondInput/index.css.js +1 -1
  90. package/esm/elements/FilePondInput/index.js +60 -43
  91. package/esm/elements/FilePondSvelteComponent/index.svelte.js +1 -1
  92. package/esm/elements/attachments/dragarea.js +1 -1
  93. package/esm/elements/attachments/droparea.js +1 -1
  94. package/esm/elements/attachments/measurable.js +1 -1
  95. package/esm/elements/attachments/resizable.js +1 -1
  96. package/esm/elements/attachments/transitions.js +1 -1
  97. package/esm/elements/common/animationGuard.js +1 -1
  98. package/esm/elements/common/animationPreference.svelte.js +1 -1
  99. package/esm/elements/common/dragDrop.js +1 -1
  100. package/esm/elements/common/event.js +1 -1
  101. package/esm/elements/common/extendStyles.js +1 -1
  102. package/esm/elements/common/getClosestElement.js +1 -1
  103. package/esm/elements/common/html.js +1 -1
  104. package/esm/elements/common/nodeTree.js +1 -1
  105. package/esm/elements/common/store.svelte.js +1 -1
  106. package/esm/elements/common/string.js +1 -1
  107. package/esm/elements/common/transition.js +1 -1
  108. package/esm/elements/components/BooleanInput/index.css.js +1 -1
  109. package/esm/elements/components/BooleanInput/index.js +1 -1
  110. package/esm/elements/components/BooleanInput/index.svelte.js +1 -1
  111. package/esm/elements/components/Button/index.css.js +1 -1
  112. package/esm/elements/components/Button/index.js +1 -1
  113. package/esm/elements/components/Button/index.svelte.js +1 -1
  114. package/esm/elements/components/ElementPane/index.css.js +1 -1
  115. package/esm/elements/components/ElementPane/index.js +1 -1
  116. package/esm/elements/components/ElementPane/index.svelte.js +1 -1
  117. package/esm/elements/components/ElementSkeleton/index.css.js +1 -1
  118. package/esm/elements/components/ElementSkeleton/index.js +1 -1
  119. package/esm/elements/components/ElementSkeleton/index.svelte.js +1 -1
  120. package/esm/elements/components/FilenameInput/index.css.js +1 -1
  121. package/esm/elements/components/FilenameInput/index.js +1 -1
  122. package/esm/elements/components/FilenameInput/index.svelte.js +1 -1
  123. package/esm/elements/components/NodeList/index.svelte.js +1 -1
  124. package/esm/elements/components/ProgressIndicator/index.css.js +1 -1
  125. package/esm/elements/components/ProgressIndicator/index.js +1 -1
  126. package/esm/elements/components/ProgressIndicator/index.svelte.js +1 -1
  127. package/esm/elements/components/RangeInput/index.css.js +1 -1
  128. package/esm/elements/components/RangeInput/index.js +1 -1
  129. package/esm/elements/components/RangeInput/index.svelte.js +1 -1
  130. package/esm/elements/components/SpringElement/index.svelte.js +1 -1
  131. package/esm/elements/components/TextInput/index.css.js +1 -1
  132. package/esm/elements/components/TextInput/index.js +1 -1
  133. package/esm/elements/components/TextInput/index.svelte.js +1 -1
  134. package/esm/extensions/blob-loader.js +1 -1
  135. package/esm/extensions/canvas-loader.js +1 -1
  136. package/esm/extensions/chunked-upload-store.js +1 -1
  137. package/esm/extensions/clipboard-source.js +1 -1
  138. package/esm/extensions/common/createExtension.js +1 -1
  139. package/esm/extensions/common/createStoreExtension.js +39 -39
  140. package/esm/extensions/common/createTransformExtension.js +57 -56
  141. package/esm/extensions/common/createValidatorExtension.js +64 -82
  142. package/esm/extensions/console-view.js +1 -1
  143. package/esm/extensions/data-transfer-loader.js +1 -1
  144. package/esm/extensions/data-url-store.js +1 -1
  145. package/esm/extensions/drag-drop-source.js +1 -1
  146. package/esm/extensions/dropbox-source.js +1 -1
  147. package/esm/extensions/entry-list-view.js +1 -1
  148. package/esm/extensions/file-extension-validator.js +1 -1
  149. package/esm/extensions/file-input-source.js +1 -1
  150. package/esm/extensions/file-input-store.js +1 -1
  151. package/esm/extensions/file-mime-type-validator.js +1 -1
  152. package/esm/extensions/file-name-transform.js +1 -1
  153. package/esm/extensions/file-name-validator.js +1 -1
  154. package/esm/extensions/file-size-validator.js +1 -1
  155. package/esm/extensions/form-post-store.js +1 -1
  156. package/esm/extensions/image-bitmap-transform.js +32 -32
  157. package/esm/extensions/index.js +1 -1
  158. package/esm/extensions/list-count-validator.js +1 -1
  159. package/esm/extensions/list-size-validator.js +1 -1
  160. package/esm/extensions/media-resolution-validator.js +1 -1
  161. package/esm/extensions/object-url-store.js +1 -1
  162. package/esm/extensions/simulated-loader.js +1 -1
  163. package/esm/extensions/simulated-store.js +61 -38
  164. package/esm/extensions/text-input-store.js +1 -1
  165. package/esm/extensions/url-loader.js +1 -1
  166. package/esm/extensions/value-callback-store.js +13 -13
  167. package/esm/index.js +1 -1
  168. package/esm/locales/ar-ar.js +1 -1
  169. package/esm/locales/bn-bd.js +1 -1
  170. package/esm/locales/cs-cz.js +1 -1
  171. package/esm/locales/da-dk.js +1 -1
  172. package/esm/locales/de-de.js +1 -1
  173. package/esm/locales/el-gr.js +1 -1
  174. package/esm/locales/en-gb.js +1 -1
  175. package/esm/locales/es-es.js +1 -1
  176. package/esm/locales/fi-fi.js +1 -1
  177. package/esm/locales/fr-fr.js +1 -1
  178. package/esm/locales/hi-in.js +1 -1
  179. package/esm/locales/hu-hu.js +1 -1
  180. package/esm/locales/index.js +1 -1
  181. package/esm/locales/is-is.js +1 -1
  182. package/esm/locales/it-it.js +1 -1
  183. package/esm/locales/ja-jp.js +1 -1
  184. package/esm/locales/ko-kr.js +1 -1
  185. package/esm/locales/nb-no.js +1 -1
  186. package/esm/locales/nl-nl.js +1 -1
  187. package/esm/locales/pl-pl.js +1 -1
  188. package/esm/locales/pt-pt.js +1 -1
  189. package/esm/locales/sv-se.js +1 -1
  190. package/esm/locales/tr-tr.js +1 -1
  191. package/esm/locales/uk-ua.js +1 -1
  192. package/esm/locales/vi-vn.js +1 -1
  193. package/esm/locales/zh-cn.js +1 -1
  194. package/esm/templates/entry.js +1 -1
  195. package/esm/templates/helpers.js +1 -1
  196. package/esm/templates/index.js +1 -1
  197. package/esm/templates/media.js +111 -118
  198. package/esm/utils/array.js +1 -1
  199. package/esm/utils/bounds.js +1 -1
  200. package/esm/utils/cache.js +1 -1
  201. package/esm/utils/canvasToBlob.js +1 -1
  202. package/esm/utils/date.js +1 -1
  203. package/esm/utils/debounce.js +1 -1
  204. package/esm/utils/dom.js +1 -1
  205. package/esm/utils/file.js +1 -1
  206. package/esm/utils/functionToBlob.js +1 -1
  207. package/esm/utils/keyboard.js +1 -1
  208. package/esm/utils/math.js +1 -1
  209. package/esm/utils/media.js +1 -1
  210. package/esm/utils/number.js +1 -1
  211. package/esm/utils/object.js +1 -1
  212. package/esm/utils/objectURL.js +1 -1
  213. package/esm/utils/placeholder.js +1 -1
  214. package/esm/utils/poly.js +1 -1
  215. package/esm/utils/pubsub.js +1 -1
  216. package/esm/utils/rect.js +1 -1
  217. package/esm/utils/size.js +13 -9
  218. package/esm/utils/sleep.js +1 -1
  219. package/esm/utils/string.js +1 -1
  220. package/esm/utils/support.js +1 -1
  221. package/esm/utils/test.js +1 -1
  222. package/esm/utils/thread.js +1 -1
  223. package/esm/utils/tree.js +1 -1
  224. package/esm/utils/url.js +1 -1
  225. package/esm/utils/vector.js +1 -1
  226. package/esm/utils/window.js +1 -1
  227. package/esm/utils/xhr.js +1 -1
  228. package/esm/workers/httpRequest.js +1 -1
  229. package/esm/workers/readFile.js +1 -1
  230. package/esm/workers/transformImage.js +1 -1
  231. package/package.json +2 -1
  232. package/types/core/taskScheduler.d.ts +3 -3
  233. package/types/elements/FilePondEntryList/index.d.ts +1 -1
  234. package/types/extensions/simulated-store.d.ts +6 -0
  235. package/types/templates/media.d.ts +6 -18
  236. package/types/utils/array.d.ts +1 -1
  237. package/types/utils/size.d.ts +2 -0
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,49 +1,49 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
6
6
  */
7
- import { onMount as A, onDestroy as H } from "../../../../../svelte/svelte/src/index-client.js";
7
+ import { onMount as p, onDestroy as E } from "../../../../../svelte/svelte/src/index-client.js";
8
8
  import { user_effect as w } from "../../../../../svelte/svelte/src/internal/client/reactivity/effects.js";
9
- import { push as E, pop as G } from "../../../../../svelte/svelte/src/internal/client/context.js";
9
+ import { push as G, pop as J } from "../../../../../svelte/svelte/src/internal/client/context.js";
10
10
  import { get as e } from "../../../../../svelte/svelte/src/internal/client/runtime.js";
11
11
  import { state as f, set as n } from "../../../../../svelte/svelte/src/internal/client/reactivity/sources.js";
12
- import { from_html as J, append as K } from "../../../../../svelte/svelte/src/internal/client/dom/template.js";
12
+ import { from_html as K, append as N } from "../../../../../svelte/svelte/src/internal/client/dom/template.js";
13
13
  import { user_derived as v } from "../../../../../svelte/svelte/src/internal/client/reactivity/deriveds.js";
14
- import { bind_this as N } from "../../../../../svelte/svelte/src/internal/client/dom/elements/bindings/this.js";
14
+ import { bind_this as V } from "../../../../../svelte/svelte/src/internal/client/dom/elements/bindings/this.js";
15
15
  import { prop as m } from "../../../../../svelte/svelte/src/internal/client/reactivity/props.js";
16
- import { isFirefox as V } from "../../../../../utils/test.js";
17
- import { createObjectURL as X } from "../../../../../utils/objectURL.js";
18
- import { getImageSize as Y } from "../../../../../utils/media.js";
19
- import { getAppContext as Z } from "../../../contexts/appContext.js";
20
- import { getBitmapCacheItem as $, setBitmapCacheItem as z } from "./BitmapRendererCache.js";
21
- import { thread as ee, createThreadWorker as te } from "../../../../../utils/thread.js";
22
- import { transformImage as ie } from "../../../../../workers/transformImage.js";
23
- var re = J('<canvas width="0" height="0"></canvas>');
24
- function ke(_, t) {
25
- E(t, !0);
26
- let g = m(t, "maximumPixels", 3, 1024 * 1024), B = m(t, "resizeQuality", 3, "medium"), p = m(t, "workersURL", 3, void 0), D = m(t, "oninit", 3, void 0), k = m(t, "onload", 3, void 0), T = m(t, "onrender", 3, void 0), R = m(t, "onerror", 3, void 0);
27
- const W = () => X(t.file), y = () => t.file.type !== "image/svg+xml", { size: l, canvas: c } = $(t.file) ?? {};
28
- let r = l?.width, a = l?.height, x = f(!!l), b = f(!!l), I = f(!!c), u = f(!1);
16
+ import { isFirefox as X } from "../../../../../utils/test.js";
17
+ import { createObjectURL as Y } from "../../../../../utils/objectURL.js";
18
+ import { getImageSize as Z } from "../../../../../utils/media.js";
19
+ import { getAppContext as $ } from "../../../contexts/appContext.js";
20
+ import { getBitmapCacheItem as ee, setBitmapCacheItem as z } from "./BitmapRendererCache.js";
21
+ import { thread as te, createThreadWorker as ie } from "../../../../../utils/thread.js";
22
+ import { transformImage as re } from "../../../../../workers/transformImage.js";
23
+ var ae = K('<canvas width="0" height="0"></canvas>');
24
+ function Re(B, t) {
25
+ G(t, !0);
26
+ let k = m(t, "taskIgnoreSoftFailure", 3, !1), g = m(t, "maximumPixels", 3, 1024 * 1024), D = m(t, "resizeQuality", 3, "medium"), O = m(t, "workersURL", 3, void 0), T = m(t, "oninit", 3, void 0), R = m(t, "onload", 3, void 0), W = m(t, "onrender", 3, void 0), y = m(t, "onerror", 3, void 0);
27
+ const j = () => Y(t.file), x = () => t.file.type !== "image/svg+xml", { size: l, canvas: c } = ee(t.file) ?? {};
28
+ let r = l?.width, a = l?.height, S = f(!!l), b = f(!!l), I = f(!!c), u = f(!1);
29
29
  w(() => {
30
- e(u) && T()?.({ didRestore: !!c });
30
+ e(u) && W()?.({ didRestore: !!c });
31
31
  });
32
- const { pushTask: C, abortTask: L } = Z();
32
+ const { pushTask: C, abortTask: L } = $();
33
33
  let d = f(void 0), i = f(void 0);
34
- const S = v(() => !!e(i)), j = v(() => e(S) && !e(x)), P = v(() => e(S) && e(b) && !e(I));
35
- async function Q(o, { abortController: h }) {
34
+ const q = v(() => !!e(i)), P = v(() => e(q) && !e(S)), Q = v(() => e(q) && e(b) && !e(I));
35
+ async function A(o, { abortController: h }) {
36
36
  n(I, !0);
37
37
  try {
38
- const s = await ee(
39
- te(p(), ie),
38
+ const s = await te(
39
+ ie(O(), re),
40
40
  [
41
41
  t.file,
42
42
  null,
43
43
  {
44
44
  resizeWidth: r,
45
45
  resizeHeight: a,
46
- resizeQuality: B(),
46
+ resizeQuality: D(),
47
47
  imageOrientation: "from-image"
48
48
  }
49
49
  ],
@@ -51,37 +51,37 @@ function ke(_, t) {
51
51
  );
52
52
  e(i).width = r, e(i).height = a, e(i).getContext("bitmaprenderer")?.transferFromImageBitmap(s), z(t.file, { size: { width: r, height: a }, canvas: e(i) }), n(u, !0);
53
53
  } catch (s) {
54
- R()?.(s);
54
+ y()?.(s);
55
55
  }
56
56
  }
57
- async function F() {
58
- n(I, !0), n(d, new Image()), e(d).src = W(), await e(d).decode(), e(i).width = r, e(i).height = a, e(i).getContext("2d")?.drawImage(e(d), 0, 0, r, a), z(t.file, { size: { width: r, height: a }, canvas: e(i) }), n(u, !0);
57
+ async function H() {
58
+ n(I, !0), n(d, new Image()), e(d).src = j(), await e(d).decode(), e(i).width = r, e(i).height = a, e(i).getContext("2d")?.drawImage(e(d), 0, 0, r, a), z(t.file, { size: { width: r, height: a }, canvas: e(i) }), n(u, !0);
59
59
  }
60
- const q = V() || !y() ? F : Q;
60
+ const F = X() || !x() ? H : A;
61
61
  async function M() {
62
- n(x, !0);
62
+ n(S, !0);
63
63
  let o;
64
64
  try {
65
- o = await Y(t.file);
66
- } catch (U) {
67
- throw R()?.(U), U;
65
+ o = await Z(t.file);
66
+ } catch (_) {
67
+ throw y()?.(_), _;
68
68
  }
69
69
  let h = 1;
70
70
  const s = o.width * o.height;
71
- g() && (s > g() || !y()) && (h = Math.sqrt(g()) / Math.sqrt(s)), r = Math.floor(o.width * h), a = Math.floor(o.height * h), k()?.({ width: r, height: a }), e(i).width = r, e(i).height = a, z(t.file, { size: { width: r, height: a }, canvas: null }), n(b, !0);
71
+ g() && (s > g() || !x()) && (h = Math.sqrt(g()) / Math.sqrt(s)), r = Math.floor(o.width * h), a = Math.floor(o.height * h), R()?.({ width: r, height: a }), e(i).width = r, e(i).height = a, z(t.file, { size: { width: r, height: a }, canvas: null }), n(b, !0);
72
72
  }
73
73
  w(() => {
74
- e(j) && C(t.taskId, M, { parallel: 1, isOptional: !0 });
74
+ e(P) && C(t.taskId, M, { parallel: 1, ignoreSoftFailure: k() });
75
75
  }), w(() => {
76
- e(P) && C(t.taskId, q, { parallel: 1, isOptional: !0 });
77
- }), A(() => {
78
- D()?.(), l && (k()?.({ width: r, height: a }), c && (e(i).replaceWith(c), n(u, !0)));
79
- }), H(() => {
80
- L(t.taskId, M), L(t.taskId, q), e(d) && URL.revokeObjectURL(e(d).src);
76
+ e(Q) && C(t.taskId, F, { parallel: 1, ignoreSoftFailure: k() });
77
+ }), p(() => {
78
+ T()?.(), l && (R()?.({ width: r, height: a }), c && (e(i).replaceWith(c), n(u, !0)));
79
+ }), E(() => {
80
+ L(t.taskId, M), L(t.taskId, F), e(d) && URL.revokeObjectURL(e(d).src);
81
81
  });
82
- var O = re();
83
- N(O, (o) => n(i, o), () => e(i)), K(_, O), G();
82
+ var U = ae();
83
+ V(U, (o) => n(i, o), () => e(i)), N(B, U), J();
84
84
  }
85
85
  export {
86
- ke as default
86
+ Re as default
87
87
  };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,28 +1,28 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
6
6
  */
7
- import { onDestroy as Se } from "../../../../svelte/svelte/src/index-client.js";
8
- import { user_effect as y, template_effect as H } from "../../../../svelte/svelte/src/internal/client/reactivity/effects.js";
7
+ import { onDestroy as ye } from "../../../../svelte/svelte/src/index-client.js";
8
+ import { user_effect as S, template_effect as H } from "../../../../svelte/svelte/src/internal/client/reactivity/effects.js";
9
9
  import { pop as _e, push as Pe } from "../../../../svelte/svelte/src/internal/client/context.js";
10
- import { get as e, untrack as S } from "../../../../svelte/svelte/src/internal/client/runtime.js";
10
+ import { get as e, untrack as y } from "../../../../svelte/svelte/src/internal/client/runtime.js";
11
11
  import { first_child as Ae, child as Y } from "../../../../svelte/svelte/src/internal/client/dom/operations.js";
12
12
  import { state as o, set as i } from "../../../../svelte/svelte/src/internal/client/reactivity/sources.js";
13
13
  import { noop as Ee } from "../../../../svelte/svelte/src/internal/shared/utils.js";
14
14
  import { event as _ } from "../../../../svelte/svelte/src/internal/client/dom/elements/events.js";
15
15
  import { comment as Le, append as k, from_html as J } from "../../../../svelte/svelte/src/internal/client/dom/template.js";
16
16
  import { user_derived as a } from "../../../../svelte/svelte/src/internal/client/reactivity/deriveds.js";
17
- import { if_block as Oe } from "../../../../svelte/svelte/src/internal/client/dom/blocks/if.js";
18
- import { snippet as ke } from "../../../../svelte/svelte/src/internal/client/dom/blocks/snippet.js";
19
- import { clsx as Fe } from "../../../../svelte/svelte/src/internal/shared/attributes.js";
17
+ import { if_block as Fe } from "../../../../svelte/svelte/src/internal/client/dom/blocks/if.js";
18
+ import { snippet as Oe } from "../../../../svelte/svelte/src/internal/client/dom/blocks/snippet.js";
19
+ import { clsx as ke } from "../../../../svelte/svelte/src/internal/shared/attributes.js";
20
20
  import { set_class as Me } from "../../../../svelte/svelte/src/internal/client/dom/elements/class.js";
21
- import { bind_this as Ve } from "../../../../svelte/svelte/src/internal/client/dom/elements/bindings/this.js";
22
- import { prop as f } from "../../../../svelte/svelte/src/internal/client/reactivity/props.js";
21
+ import { bind_this as Re } from "../../../../svelte/svelte/src/internal/client/dom/elements/bindings/this.js";
22
+ import { prop as c } from "../../../../svelte/svelte/src/internal/client/reactivity/props.js";
23
23
  import { toTime as B } from "../../../../utils/date.js";
24
- import { isIOS as xe, isSafari as N, isNumber as z } from "../../../../utils/test.js";
25
- import { videoHasAudioTrack as Re } from "../../../../utils/dom.js";
24
+ import { isIOS as Ve, isSafari as N, isNumber as z } from "../../../../utils/test.js";
25
+ import { videoHasAudioTrack as xe } from "../../../../utils/dom.js";
26
26
  import "../MediaPane/index.js";
27
27
  import { once as je } from "../../../common/event.js";
28
28
  import { createObjectURL as Ie } from "../../../../utils/objectURL.js";
@@ -34,10 +34,10 @@ import we from "../MediaPane/index.svelte.js";
34
34
  var Ce = J('<video playsinline=""><!></video>', 2), Ue = J("<media-video><!></media-video>", 2);
35
35
  function pt(K, u) {
36
36
  Pe(u, !0);
37
- let Q = f(u, "class", 3, void 0), X = f(u, "overflowAmount", 3, void 0), Z = f(u, "enableParallax", 3, void 0), $ = f(u, "objectFit", 3, void 0), A = f(u, "mute", 7, !0), ee = f(u, "children", 3, void 0);
38
- const { setEntryExtensionState: l, pushTask: F } = Te(), n = De(), te = a(() => n.current), E = a(() => e(te).file), M = a(() => e(E) !== null), V = xe() && N(), m = a(() => V ? void 0 : e(M) ? Ie(e(E)) : void 0), h = a(() => V && e(M) ? e(E) : void 0);
39
- let t = o(void 0), re = 1 / 24, p = o(0), c = o(null), x = o(null), s = o(!1), g = o(!1), R = o(!1);
40
- const j = a(() => B(e(p))), ie = a(() => z(e(c)) ? B(e(c)) : void 0), oe = a(() => z(e(c)) ? `${e(c)}S` : void 0);
37
+ let Q = c(u, "class", 3, void 0), X = c(u, "overflowAmount", 3, void 0), Z = c(u, "enableParallax", 3, void 0), $ = c(u, "objectFit", 3, void 0), A = c(u, "mute", 7, !0), ee = c(u, "children", 3, void 0);
38
+ const { setEntryExtensionState: l, pushTask: M } = Te(), n = De(), te = a(() => n.current), E = a(() => e(te).file), R = a(() => e(E) !== null), V = Ve() && N(), m = a(() => V ? void 0 : e(R) ? Ie(e(E)) : void 0), h = a(() => V && e(R) ? e(E) : void 0);
39
+ let t = o(void 0), re = 1 / 24, p = o(0), f = o(null), x = o(null), s = o(!1), g = o(!1), j = o(!1);
40
+ const I = a(() => B(e(p))), ie = a(() => z(e(f)) ? B(e(f)) : void 0), oe = a(() => z(e(f)) ? `${e(f)}S` : void 0);
41
41
  function ne() {
42
42
  e(t) && (e(t).paused ? e(t).play().then(() => {
43
43
  l(n.current, { status: { type: P.System, code: "MEDIA_PLAY_BUSY" } });
@@ -57,20 +57,20 @@ function pt(K, u) {
57
57
  function de() {
58
58
  e(t) && (e(g) ? (document.exitFullscreen(), i(g, !1)) : e(t).requestFullscreen().then(() => i(g, !0)));
59
59
  }
60
- function I(r) {
60
+ function T(r) {
61
61
  if (e(t)) {
62
62
  if (e(t).seeking) {
63
63
  e(t).onseeked = () => {
64
- e(t).onseeked = null, I(r);
64
+ e(t).onseeked = null, T(r);
65
65
  };
66
66
  return;
67
67
  }
68
68
  e(t).currentTime = r, i(p, r);
69
69
  }
70
70
  }
71
- let T = o(void 0), D = o(void 0), b = o(!1), w = o(!0);
71
+ let D = o(void 0), w = o(void 0), b = o(!1), L = o(!0);
72
72
  function ue() {
73
- i(w, !1), i(T, e(t).videoWidth), i(D, e(t).videoHeight), i(c, e(t).duration), Re(e(t)).then((r) => {
73
+ i(L, !1), i(D, e(t).videoWidth), i(w, e(t).videoHeight), i(f, e(t).duration), xe(e(t)).then((r) => {
74
74
  i(x, !r);
75
75
  }), G() || i(b, !0);
76
76
  }
@@ -88,8 +88,8 @@ function pt(K, u) {
88
88
  };
89
89
  r();
90
90
  }
91
- y(() => {
92
- e(s) && S(le);
91
+ S(() => {
92
+ e(s) && y(le);
93
93
  });
94
94
  function W() {
95
95
  const { error: r } = e(t);
@@ -99,7 +99,7 @@ function pt(K, u) {
99
99
  code: "MEDIA_LOAD_ERROR",
100
100
  values: { error: r, fileMainType: "fileMainTypeVideo" }
101
101
  }
102
- }), i(R, !0);
102
+ }), i(j, !0);
103
103
  }
104
104
  function me() {
105
105
  if (e(t).srcObject != e(h))
@@ -109,60 +109,63 @@ function pt(K, u) {
109
109
  W();
110
110
  }
111
111
  }
112
- function ce(r) {
113
- return new Promise((v, L) => {
114
- r.addEventListener("loadeddata", v), r.addEventListener("error", L);
112
+ function fe(r) {
113
+ return new Promise((v, F) => {
114
+ r.addEventListener("loadeddata", v), r.addEventListener("error", F);
115
115
  });
116
116
  }
117
- async function fe() {
118
- e(t).src !== e(m) && (e(t).src = e(m), await ce(e(t)));
117
+ async function ce() {
118
+ e(t).src !== e(m) && (e(t).src = e(m), await fe(e(t)));
119
119
  }
120
- y(() => {
120
+ S(() => {
121
121
  !e(t) || !(e(m) ?? e(h)) || (G() && e(t).requestVideoFrameCallback(() => {
122
122
  i(b, !0);
123
- }), S(() => {
123
+ }), y(() => {
124
124
  if (e(m)) {
125
- F(n.current.id, fe, { parallel: 1 });
125
+ M(n.current.id, ce, { parallel: 1, ignoreSoftFailure: !1 });
126
126
  return;
127
127
  }
128
- e(h) && F(n.current.id, me, { parallel: 1 });
128
+ e(h) && M(n.current.id, me, { parallel: 1, ignoreSoftFailure: !1 });
129
129
  }));
130
- }), y(() => {
130
+ }), S(() => {
131
131
  const r = {
132
132
  isMute: e(x),
133
133
  isMuted: A(),
134
134
  isPaused: !e(s),
135
135
  isPlaying: e(s),
136
136
  isFullscreen: e(g),
137
- timeLabel: e(j),
138
- timeISO: e(j),
137
+ timeLabel: e(I),
138
+ timeISO: e(I),
139
139
  time: e(p),
140
- duration: e(c),
140
+ duration: e(f),
141
141
  durationLabel: e(ie),
142
142
  durationISO: e(oe),
143
143
  framesPerSecond: re
144
144
  };
145
- S(() => {
145
+ y(() => {
146
146
  l(n.current, { video: r });
147
147
  });
148
- }), y(() => {
149
- const r = { isVisible: e(b) };
150
- S(() => {
148
+ }), S(() => {
149
+ const r = {
150
+ isReady: !e(L),
151
+ isVisible: e(b)
152
+ };
153
+ y(() => {
151
154
  l(n.current, { media: r });
152
155
  });
153
- }), Se(() => {
156
+ }), ye(() => {
154
157
  e(s) && C(), e(m) && URL.revokeObjectURL(e(m));
155
158
  });
156
159
  var pe = {
157
160
  togglePlayback: ne,
158
161
  toggleAudio: ae,
159
162
  toggleFullscreen: de,
160
- setCurrentTime: I
163
+ setCurrentTime: T
161
164
  }, q = Le(), ve = Ae(q);
162
165
  {
163
166
  var he = (r) => {
164
- var v = Ue(), L = Y(v);
165
- we(L, {
167
+ var v = Ue(), F = Y(v);
168
+ we(F, {
166
169
  get enableParallax() {
167
170
  return Z();
168
171
  },
@@ -175,28 +178,28 @@ function pt(K, u) {
175
178
  return $();
176
179
  },
177
180
  get mediaWidth() {
178
- return e(T);
181
+ return e(D);
179
182
  },
180
183
  get mediaHeight() {
181
- return e(D);
184
+ return e(w);
182
185
  },
183
186
  get mediaVisible() {
184
187
  return e(b);
185
188
  },
186
189
  get mediaLoading() {
187
- return e(w);
190
+ return e(L);
188
191
  },
189
192
  children: (ge, We) => {
190
- var d = Ce(), be = a(() => je(ue)), ye = Y(d);
191
- ke(ye, () => ee() ?? Ee), Ve(d, (O) => i(t, O), () => e(t)), H(() => d.muted = A()), _("play", d, se), _("pause", d, C), _("error", d, W), _("loadeddata", d, function(...O) {
193
+ var d = Ce(), be = a(() => je(ue)), Se = Y(d);
194
+ Oe(Se, () => ee() ?? Ee), Re(d, (O) => i(t, O), () => e(t)), H(() => d.muted = A()), _("play", d, se), _("pause", d, C), _("error", d, W), _("loadeddata", d, function(...O) {
192
195
  e(be)?.apply(this, O);
193
196
  }), k(ge, d);
194
197
  },
195
198
  _$slots: { default: !0 }
196
- }), H(() => Me(v, 1, Fe(Q()))), k(r, v);
199
+ }), H(() => Me(v, 1, ke(Q()))), k(r, v);
197
200
  };
198
- Oe(ve, (r) => {
199
- e(R) || r(he);
201
+ Fe(ve, (r) => {
202
+ e(j) || r(he);
200
203
  });
201
204
  }
202
205
  return k(K, q), _e(pe);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond v5.0.0-beta.21
2
+ * FilePond v5.0.0-beta.23
3
3
  * Copyright (c) 2017-2026 Pqina B.V.
4
4
  * Released under the MIT License
5
5
  * https://filepond.com