@clickview/library-editor 1.52.0-rc.3 → 1.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/languages/en.json +1 -1
  3. package/dist/scripts/{152-390e5fa6ca.chunk.js → 152-a097ce80f6.chunk.js} +1 -1
  4. package/dist/scripts/{1934-80e2fc9c33.chunk.js → 1934-aaac9ae573.chunk.js} +1 -1
  5. package/dist/scripts/{2802-a8919abdd2.chunk.js → 2802-0c1ed0ed58.chunk.js} +1 -1
  6. package/dist/scripts/61-133e016f21.chunk.js +2 -0
  7. package/dist/scripts/{6532-992986da83.chunk.js → 6532-d1b1a7e3ad.chunk.js} +1 -1
  8. package/dist/scripts/6586-da59ef24d2.chunk.js +2 -0
  9. package/dist/scripts/8591-ee16c5833c.chunk.js +1 -0
  10. package/dist/scripts/{8952-1c52905be9.chunk.js → 8952-fa6340c6bd.chunk.js} +1 -1
  11. package/dist/scripts/{9369-ada968afc3.chunk.js → 9369-9ea58fab27.chunk.js} +1 -1
  12. package/dist/scripts/bundle-56821f66c7.min.js +2 -0
  13. package/package.json +2 -44
  14. package/dist/scripts/61-2a1de0236d.chunk.js +0 -2
  15. package/dist/scripts/6586-4ec19100bf.chunk.js +0 -2
  16. package/dist/scripts/8591-e1f92d9f52.chunk.js +0 -1
  17. package/dist/scripts/bundle-6490796d5c.min.js +0 -2
  18. /package/dist/scripts/{101-5d8efa43a5.chunk.js → 101-1253cc96b6.chunk.js} +0 -0
  19. /package/dist/scripts/{1010-b21ff127d1.chunk.js → 1010-3df0690f65.chunk.js} +0 -0
  20. /package/dist/scripts/{1086-950e4c6d0c.chunk.js → 1086-2d89e31c1f.chunk.js} +0 -0
  21. /package/dist/scripts/{112-e70ac844c8.chunk.js → 112-fd0670b9f7.chunk.js} +0 -0
  22. /package/dist/scripts/{1216-17be022839.chunk.js → 1216-7907138673.chunk.js} +0 -0
  23. /package/dist/scripts/{1224-7239642ecd.chunk.js → 1224-e996756b40.chunk.js} +0 -0
  24. /package/dist/scripts/{1269-94396dac9a.chunk.js → 1269-2c3b613695.chunk.js} +0 -0
  25. /package/dist/scripts/{1409-c31abbb7d1.chunk.js → 1409-b4158a1949.chunk.js} +0 -0
  26. /package/dist/scripts/{152-390e5fa6ca.chunk.js.LICENSE.txt → 152-a097ce80f6.chunk.js.LICENSE.txt} +0 -0
  27. /package/dist/scripts/{1703-30fd3878f8.chunk.js → 1703-3e3f8b6767.chunk.js} +0 -0
  28. /package/dist/scripts/{1832-14551748b4.chunk.js → 1832-a0658a1b84.chunk.js} +0 -0
  29. /package/dist/scripts/{1876-9fad359124.chunk.js → 1876-eb621d8cd0.chunk.js} +0 -0
  30. /package/dist/scripts/{1934-80e2fc9c33.chunk.js.LICENSE.txt → 1934-aaac9ae573.chunk.js.LICENSE.txt} +0 -0
  31. /package/dist/scripts/{1973-333bccfd6b.chunk.js → 1973-4eb57a4530.chunk.js} +0 -0
  32. /package/dist/scripts/{2417-4258ae1858.chunk.js → 2417-b13ca22c9a.chunk.js} +0 -0
  33. /package/dist/scripts/{243-f08d43b86d.chunk.js → 243-6444a6e10f.chunk.js} +0 -0
  34. /package/dist/scripts/{2482-4099d14078.chunk.js → 2482-e0a1c9e3ef.chunk.js} +0 -0
  35. /package/dist/scripts/{259-382c8dac50.chunk.js → 259-0dd8d3e3be.chunk.js} +0 -0
  36. /package/dist/scripts/{2601-84f08ca331.chunk.js → 2601-b020e243a8.chunk.js} +0 -0
  37. /package/dist/scripts/{2644-a8b57cb8d3.chunk.js → 2644-dc538f3166.chunk.js} +0 -0
  38. /package/dist/scripts/{2648-f95a29c1a3.chunk.js → 2648-e5ded590e6.chunk.js} +0 -0
  39. /package/dist/scripts/{2692-a2e5b68569.chunk.js → 2692-d85315a189.chunk.js} +0 -0
  40. /package/dist/scripts/{2802-a8919abdd2.chunk.js.LICENSE.txt → 2802-0c1ed0ed58.chunk.js.LICENSE.txt} +0 -0
  41. /package/dist/scripts/{2803-9e48647f0d.chunk.js → 2803-690ee9a4e6.chunk.js} +0 -0
  42. /package/dist/scripts/{2888-c371e839c5.chunk.js → 2888-5214ddb0cc.chunk.js} +0 -0
  43. /package/dist/scripts/{299-db47ce33d6.chunk.js → 299-14e6b8cbf2.chunk.js} +0 -0
  44. /package/dist/scripts/{2998-0efc3ee418.chunk.js → 2998-ccf16721c9.chunk.js} +0 -0
  45. /package/dist/scripts/{3087-a747cbc589.chunk.js → 3087-4586071ef2.chunk.js} +0 -0
  46. /package/dist/scripts/{3400-06ba8fcd72.chunk.js → 3400-1a5d44717f.chunk.js} +0 -0
  47. /package/dist/scripts/{343-9311093f6c.chunk.js → 343-a666fd559f.chunk.js} +0 -0
  48. /package/dist/scripts/{35-bb8cc8d20e.chunk.js → 35-515a6d4e59.chunk.js} +0 -0
  49. /package/dist/scripts/{3551-4da5862733.chunk.js → 3551-074d7912b1.chunk.js} +0 -0
  50. /package/dist/scripts/{3639-7d55095378.chunk.js → 3639-f2f290f835.chunk.js} +0 -0
  51. /package/dist/scripts/{3746-3a8f06a756.chunk.js → 3746-02bac3fdd0.chunk.js} +0 -0
  52. /package/dist/scripts/{376-fbe8b1c063.chunk.js → 376-3c00f363fa.chunk.js} +0 -0
  53. /package/dist/scripts/{3763-025fb904ce.chunk.js → 3763-2f1e490d1b.chunk.js} +0 -0
  54. /package/dist/scripts/{3969-c2ecb506f9.chunk.js → 3969-ca018241d5.chunk.js} +0 -0
  55. /package/dist/scripts/{4201-160966e777.chunk.js → 4201-b117ba2931.chunk.js} +0 -0
  56. /package/dist/scripts/{4245-527a1ec490.chunk.js → 4245-c1f960ea98.chunk.js} +0 -0
  57. /package/dist/scripts/{4523-b2816e550b.chunk.js → 4523-930256ceb5.chunk.js} +0 -0
  58. /package/dist/scripts/{456-ff55bdfd24.chunk.js → 456-9c7dd64172.chunk.js} +0 -0
  59. /package/dist/scripts/{4591-551f4da566.chunk.js → 4591-04f730d113.chunk.js} +0 -0
  60. /package/dist/scripts/{4860-1b9b4f8152.chunk.js → 4860-10c716c613.chunk.js} +0 -0
  61. /package/dist/scripts/{5046-a1ffd7cb9e.chunk.js → 5046-d1c1817278.chunk.js} +0 -0
  62. /package/dist/scripts/{514-da13359852.chunk.js → 514-21184f3033.chunk.js} +0 -0
  63. /package/dist/scripts/{5173-2e063a05c1.chunk.js → 5173-474d2c42a1.chunk.js} +0 -0
  64. /package/dist/scripts/{5286-e402705616.chunk.js → 5286-8d80c2a7db.chunk.js} +0 -0
  65. /package/dist/scripts/{5314-3e28e2ec03.chunk.js → 5314-489b37b90c.chunk.js} +0 -0
  66. /package/dist/scripts/{5412-c73fe77fcf.chunk.js → 5412-c4d027714d.chunk.js} +0 -0
  67. /package/dist/scripts/{5418-e7c3bfd60b.chunk.js → 5418-318aef3669.chunk.js} +0 -0
  68. /package/dist/scripts/{5424-83b8f88dc2.chunk.js → 5424-b955386dbd.chunk.js} +0 -0
  69. /package/dist/scripts/{546-2f69624e2a.chunk.js → 546-a8ddc2ce77.chunk.js} +0 -0
  70. /package/dist/scripts/{5524-fd9ecc82a7.chunk.js → 5524-b7ae3e934a.chunk.js} +0 -0
  71. /package/dist/scripts/{5707-5f5d726eb7.chunk.js → 5707-874c091168.chunk.js} +0 -0
  72. /package/dist/scripts/{5747-7e53dedce0.chunk.js → 5747-3971c6f775.chunk.js} +0 -0
  73. /package/dist/scripts/{5850-50d0f607d9.chunk.js → 5850-7cfeed524e.chunk.js} +0 -0
  74. /package/dist/scripts/{5891-44c2da2682.chunk.js → 5891-48d8d9819f.chunk.js} +0 -0
  75. /package/dist/scripts/{6093-138b0ce201.chunk.js → 6093-ff54e11330.chunk.js} +0 -0
  76. /package/dist/scripts/{61-2a1de0236d.chunk.js.LICENSE.txt → 61-133e016f21.chunk.js.LICENSE.txt} +0 -0
  77. /package/dist/scripts/{6352-6b53703721.chunk.js → 6352-88ea27fa38.chunk.js} +0 -0
  78. /package/dist/scripts/{6427-73aedc09cf.chunk.js → 6427-2b635af9f1.chunk.js} +0 -0
  79. /package/dist/scripts/{6532-992986da83.chunk.js.LICENSE.txt → 6532-d1b1a7e3ad.chunk.js.LICENSE.txt} +0 -0
  80. /package/dist/scripts/{6586-4ec19100bf.chunk.js.LICENSE.txt → 6586-da59ef24d2.chunk.js.LICENSE.txt} +0 -0
  81. /package/dist/scripts/{6732-23ad3889fc.chunk.js → 6732-993d5b074c.chunk.js} +0 -0
  82. /package/dist/scripts/{6774-3b393d6102.chunk.js → 6774-01d7255024.chunk.js} +0 -0
  83. /package/dist/scripts/{6788-6c18c1d6d3.chunk.js → 6788-65922b1960.chunk.js} +0 -0
  84. /package/dist/scripts/{6963-e3d607023e.chunk.js → 6963-1bfd4d26cc.chunk.js} +0 -0
  85. /package/dist/scripts/{7002-c91164435e.chunk.js → 7002-92fc228225.chunk.js} +0 -0
  86. /package/dist/scripts/{7053-5a7ca550ad.chunk.js → 7053-f58d35f3f7.chunk.js} +0 -0
  87. /package/dist/scripts/{7071-15b7e18a57.chunk.js → 7071-2486f2377a.chunk.js} +0 -0
  88. /package/dist/scripts/{708-c5371f59f0.chunk.js → 708-c0f0acd51a.chunk.js} +0 -0
  89. /package/dist/scripts/{7153-55fa705105.chunk.js → 7153-363b13915a.chunk.js} +0 -0
  90. /package/dist/scripts/{7190-9b1115b709.chunk.js → 7190-6a793985f2.chunk.js} +0 -0
  91. /package/dist/scripts/{7295-43a594f302.chunk.js → 7295-a5875f7860.chunk.js} +0 -0
  92. /package/dist/scripts/{7376-e202aa077a.chunk.js → 7376-cc42324f32.chunk.js} +0 -0
  93. /package/dist/scripts/{7408-5d51c3d022.chunk.js → 7408-7eaf34b72f.chunk.js} +0 -0
  94. /package/dist/scripts/{8113-fcc4705c9c.chunk.js → 8113-23f57debf6.chunk.js} +0 -0
  95. /package/dist/scripts/{8362-1ca92ae7b2.chunk.js → 8362-ff62db97b9.chunk.js} +0 -0
  96. /package/dist/scripts/{8542-6756d7b916.chunk.js → 8542-c2752c1b7f.chunk.js} +0 -0
  97. /package/dist/scripts/{8726-84aca05148.chunk.js → 8726-f39fa2aaa9.chunk.js} +0 -0
  98. /package/dist/scripts/{8727-8611d5ca0a.chunk.js → 8727-b9bd9426f2.chunk.js} +0 -0
  99. /package/dist/scripts/{8762-5b71b1c87a.chunk.js → 8762-bb0041bbf2.chunk.js} +0 -0
  100. /package/dist/scripts/{8906-6dc4f92726.chunk.js → 8906-5ac1c1c415.chunk.js} +0 -0
  101. /package/dist/scripts/{8952-1c52905be9.chunk.js.LICENSE.txt → 8952-fa6340c6bd.chunk.js.LICENSE.txt} +0 -0
  102. /package/dist/scripts/{9357-9658d93394.chunk.js → 9357-b63a89ed98.chunk.js} +0 -0
  103. /package/dist/scripts/{9369-ada968afc3.chunk.js.LICENSE.txt → 9369-9ea58fab27.chunk.js.LICENSE.txt} +0 -0
  104. /package/dist/scripts/{9383-717dfc85f6.chunk.js → 9383-8e2bb8c1b0.chunk.js} +0 -0
  105. /package/dist/scripts/{9695-aa07f8f5ad.chunk.js → 9695-3968ad0b40.chunk.js} +0 -0
  106. /package/dist/scripts/{9927-402b60add4.chunk.js → 9927-60ca3132b8.chunk.js} +0 -0
  107. /package/dist/scripts/{bundle-6490796d5c.min.js.LICENSE.txt → bundle-56821f66c7.min.js.LICENSE.txt} +0 -0
  108. /package/dist/scripts/{polyfills-bbcbc0ac75.min.js → polyfills-d856647909.min.js} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[8591],{97079:function(e,t){t.Z=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t}))}return!0}},58591:function(e,t,n){n.d(t,{uI:function(){return ce}});var r=n(1024),o=n.n(r),i=n(60216),a=n.n(i);function c(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))}function u(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=c(0),a.throw=c(1),a.return=c(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function s(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var f=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function p(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=f.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var d=[".DS_Store","Thumbs.db"];function v(e){return"object"==typeof e&&null!==e}function m(e){return h(e.target.files).map((function(e){return p(e)}))}function y(e){return c(this,void 0,void 0,(function(){return u(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return p(e)}))]}}))}))}function g(e,t){return c(this,void 0,void 0,(function(){var n;return u(this,(function(r){switch(r.label){case 0:return e.items?(n=h(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(w))]):[3,2];case 1:return[2,b(D(r.sent()))];case 2:return[2,b(h(e.files).map((function(e){return p(e)})))]}}))}))}function b(e){return e.filter((function(e){return-1===d.indexOf(e.name)}))}function h(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function w(e){if("function"!=typeof e.webkitGetAsEntry)return O(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?j(t):O(e)}function D(e){return e.reduce((function(e,t){return s(s([],l(e),!1),l(Array.isArray(t)?D(t):[t]),!1)}),[])}function O(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=p(t);return Promise.resolve(n)}function x(e){return c(this,void 0,void 0,(function(){return u(this,(function(t){return[2,e.isDirectory?j(e):A(e)]}))}))}function j(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var i=this;t.readEntries((function(t){return c(i,void 0,void 0,(function(){var i,a,c;return u(this,(function(u){switch(u.label){case 0:if(t.length)return[3,5];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return i=u.sent(),e(i),[3,4];case 3:return a=u.sent(),n(a),[3,4];case 4:return[3,6];case 5:c=Promise.all(t.map(x)),r.push(c),o(),u.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function A(e){return c(this,void 0,void 0,(function(){return u(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=p(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var k=n(97079);function E(e){return function(e){if(Array.isArray(e))return R(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||z(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||z(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){if(e){if("string"==typeof e)return R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var I=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:"file-invalid-type",message:"File type must be ".concat(t)}},T=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},M=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},_={code:"too-many-files",message:"Too many files"};function L(e,t){var n="application/x-moz-file"===e.type||(0,k.Z)(e,t);return[n,n?null:I(t)]}function B(e,t,n){if(K(e.size))if(K(t)&&K(n)){if(e.size>n)return[!1,T(n)];if(e.size<t)return[!1,M(t)]}else{if(K(t)&&e.size<t)return[!1,M(t)];if(K(n)&&e.size>n)return[!1,T(n)]}return[!0,null]}function K(e){return null!=e}function U(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function $(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function W(e){e.preventDefault()}function G(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return!U(e)&&t&&t.apply(void 0,[e].concat(r)),U(e)}))}}function H(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function q(e){return/^.*\.[\w]+$/.test(e)}var N=["children"],Z=["open"],Y=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],J=["refKey","onChange","onClick"];function Q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||V(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){if(e){if("string"==typeof e)return X(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function re(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var oe=(0,r.forwardRef)((function(e,t){var n=e.children,i=ce(re(e,N)),a=i.open,c=re(i,Z);return(0,r.useImperativeHandle)(t,(function(){return{open:a}}),[a]),o().createElement(r.Fragment,null,n(te(te({},c),{},{open:a})))}));oe.displayName="Dropzone";var ie={disabled:!1,getFilesFromEvent:function(e){return c(this,void 0,void 0,(function(){return u(this,(function(t){return v(e)&&v(e.dataTransfer)?[2,g(e.dataTransfer,e.type)]:v(n=e)&&v(n.target)?[2,m(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,y(e)]:[2,[]];var n}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};oe.defaultProps=ie,oe.propTypes={children:a().func,accept:a().objectOf(a().arrayOf(a().string)),multiple:a().bool,preventDropOnDocument:a().bool,noClick:a().bool,noKeyboard:a().bool,noDrag:a().bool,noDragEventsBubbling:a().bool,minSize:a().number,maxSize:a().number,maxFiles:a().number,disabled:a().bool,getFilesFromEvent:a().func,onFileDialogCancel:a().func,onFileDialogOpen:a().func,useFsAccessApi:a().bool,autoFocus:a().bool,onDragEnter:a().func,onDragLeave:a().func,onDragOver:a().func,onDrop:a().func,onDropAccepted:a().func,onDropRejected:a().func,onError:a().func,validator:a().func};var ae={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function ce(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=te(te({},ie),e),n=t.accept,o=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,c=t.minSize,u=t.multiple,l=t.maxFiles,s=t.onDragEnter,f=t.onDragLeave,p=t.onDragOver,d=t.onDrop,v=t.onDropAccepted,m=t.onDropRejected,y=t.onFileDialogCancel,g=t.onFileDialogOpen,b=t.useFsAccessApi,h=t.autoFocus,w=t.preventDropOnDocument,D=t.noClick,O=t.noKeyboard,x=t.noDrag,j=t.noDragEventsBubbling,A=t.onError,k=t.validator,F=(0,r.useMemo)((function(){return function(e){if(K(e))return Object.entries(e).reduce((function(e,t){var n=C(t,2),r=n[0],o=n[1];return[].concat(E(e),[r],E(o))}),[]).filter((function(e){return H(e)||q(e)})).join(",")}(n)}),[n]),z=(0,r.useMemo)((function(){return function(e){return K(e)?[{description:"Files",accept:Object.entries(e).filter((function(e){var t=C(e,2),n=t[0],r=t[1],o=!0;return H(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),Array.isArray(r)&&r.every(q)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=C(t,2),r=n[0],o=n[1];return S(S({},e),{},P({},r,o))}),{})}]:e}(n)}),[n]),R=(0,r.useMemo)((function(){return"function"==typeof g?g:le}),[g]),I=(0,r.useMemo)((function(){return"function"==typeof y?y:le}),[y]),T=(0,r.useRef)(null),M=(0,r.useRef)(null),N=Q((0,r.useReducer)(ue,ae),2),Z=N[0],ee=N[1],oe=Z.isFocused,ce=Z.isFileDialogActive,se=(0,r.useRef)("undefined"!=typeof window&&window.isSecureContext&&b&&"showOpenFilePicker"in window),fe=function(){!se.current&&ce&&setTimeout((function(){M.current&&(M.current.files.length||(ee({type:"closeDialog"}),I()))}),300)};(0,r.useEffect)((function(){return window.addEventListener("focus",fe,!1),function(){window.removeEventListener("focus",fe,!1)}}),[M,ce,I,se]);var pe=(0,r.useRef)([]),de=function(e){T.current&&T.current.contains(e.target)||(e.preventDefault(),pe.current=[])};(0,r.useEffect)((function(){return w&&(document.addEventListener("dragover",W,!1),document.addEventListener("drop",de,!1)),function(){w&&(document.removeEventListener("dragover",W),document.removeEventListener("drop",de))}}),[T,w]),(0,r.useEffect)((function(){return!o&&h&&T.current&&T.current.focus(),function(){}}),[T,h,o]);var ve=(0,r.useCallback)((function(e){A?A(e):console.error(e)}),[A]),me=(0,r.useCallback)((function(e){var t;e.preventDefault(),e.persist(),Fe(e),pe.current=[].concat(function(e){if(Array.isArray(e))return X(e)}(t=pe.current)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||V(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e.target]),$(e)&&Promise.resolve(i(e)).then((function(t){if(!U(e)||j){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,c=e.validator;return!(!i&&t.length>1||i&&a>=1&&t.length>a)&&t.every((function(e){var t=C(L(e,n),1)[0],i=C(B(e,r,o),1)[0],a=c?c(e):null;return t&&i&&!a}))}({files:t,accept:F,minSize:c,maxSize:a,multiple:u,maxFiles:l,validator:k});ee({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),s&&s(e)}})).catch((function(e){return ve(e)}))}),[i,s,ve,j,F,c,a,u,l,k]),ye=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),Fe(e);var t=$(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&p&&p(e),!1}),[p,j]),ge=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),Fe(e);var t=pe.current.filter((function(e){return T.current&&T.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),pe.current=t,t.length>0||(ee({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),$(e)&&f&&f(e))}),[T,f,j]),be=(0,r.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=Q(L(e,F),2),o=t[0],i=t[1],u=Q(B(e,c,a),2),l=u[0],s=u[1],f=k?k(e):null;if(o&&l&&!f)n.push(e);else{var p=[i,s];f&&(p=p.concat(f)),r.push({file:e,errors:p.filter((function(e){return e}))})}})),(!u&&n.length>1||u&&l>=1&&n.length>l)&&(n.forEach((function(e){r.push({file:e,errors:[_]})})),n.splice(0)),ee({acceptedFiles:n,fileRejections:r,type:"setFiles"}),d&&d(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&v&&v(n,t)}),[ee,u,F,c,a,l,d,v,m,k]),he=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),Fe(e),pe.current=[],$(e)&&Promise.resolve(i(e)).then((function(t){U(e)&&!j||be(t,e)})).catch((function(e){return ve(e)})),ee({type:"reset"})}),[i,be,ve,j]),we=(0,r.useCallback)((function(){if(se.current){ee({type:"openDialog"}),R();var e={multiple:u,types:z};window.showOpenFilePicker(e).then((function(e){return i(e)})).then((function(e){be(e,null),ee({type:"closeDialog"})})).catch((function(e){var t;(t=e)instanceof DOMException&&("AbortError"===t.name||t.code===t.ABORT_ERR)?(I(e),ee({type:"closeDialog"})):function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?(se.current=!1,M.current?(M.current.value=null,M.current.click()):ve(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."))):ve(e)}))}else M.current&&(ee({type:"openDialog"}),R(),M.current.value=null,M.current.click())}),[ee,R,I,b,be,ve,z,u]),De=(0,r.useCallback)((function(e){T.current&&T.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),we()))}),[T,we]),Oe=(0,r.useCallback)((function(){ee({type:"focus"})}),[]),xe=(0,r.useCallback)((function(){ee({type:"blur"})}),[]),je=(0,r.useCallback)((function(){D||(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?setTimeout(we,0):we())}),[D,we]),Ae=function(e){return o?null:e},ke=function(e){return O?null:Ae(e)},Ee=function(e){return x?null:Ae(e)},Fe=function(e){j&&e.stopPropagation()},Se=(0,r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,i=e.onKeyDown,a=e.onFocus,c=e.onBlur,u=e.onClick,l=e.onDragEnter,s=e.onDragOver,f=e.onDragLeave,p=e.onDrop,d=re(e,Y);return te(te(ne({onKeyDown:ke(G(i,De)),onFocus:ke(G(a,Oe)),onBlur:ke(G(c,xe)),onClick:Ae(G(u,je)),onDragEnter:Ee(G(l,me)),onDragOver:Ee(G(s,ye)),onDragLeave:Ee(G(f,ge)),onDrop:Ee(G(p,he)),role:"string"==typeof r&&""!==r?r:"presentation"},n,T),o||O?{}:{tabIndex:0}),d)}}),[T,De,Oe,xe,je,me,ye,ge,he,O,x,o]),Pe=(0,r.useCallback)((function(e){e.stopPropagation()}),[]),Ce=(0,r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,i=re(e,J);return te(te({},ne({accept:F,multiple:u,type:"file",style:{display:"none"},onChange:Ae(G(r,he)),onClick:Ae(G(o,Pe)),tabIndex:-1},n,M)),i)}}),[M,n,u,he,o]);return te(te({},Z),{},{isFocused:oe&&!o,getRootProps:Se,getInputProps:Ce,rootRef:T,inputRef:M,open:Ae(we)})}function ue(e,t){switch(t.type){case"focus":return te(te({},e),{},{isFocused:!0});case"blur":return te(te({},e),{},{isFocused:!1});case"openDialog":return te(te({},ae),{},{isFileDialogActive:!0});case"closeDialog":return te(te({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return te(te({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return te(te({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return te({},ae);default:return e}}function le(){}}}]);