"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8901],{58363:function(e,t){t.Z=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(0===n.length)return!0;var 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}},68901:function(e,t,n){n.d(t,{uI:function(){return Q}});var r=n(67294),o=n(45697),i=n.n(o);function a(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)instanceof n?t:new n(function(e){e(t)})).then(a,c)}u((r=r.apply(e,t||[])).next())})}function c(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 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]0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var s=[".DS_Store","Thumbs.db"];function f(e){return"object"==typeof e&&null!==e}function p(e){return e.filter(function(e){return -1===s.indexOf(e.name)})}function d(e){if(null===e)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);nn)return[!1,F(n)];if(e.sizen)return[!1,F(n)]}return[!0,null]}function S(e){return null!=e}function C(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function z(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 I(e){e.preventDefault()}function R(){for(var e=arguments.length,t=Array(e),n=0;n1?n-1:0),o=1;oe.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Z=(0,r.forwardRef)(function(e,t){var n=e.children,o=Q(W(e,L)),i=o.open,a=W(o,K);return(0,r.useImperativeHandle)(t,function(){return{open:i}},[i]),r.createElement(r.Fragment,null,n(q(q({},a),{},{open:i})))});Z.displayName="Dropzone";var H={disabled:!1,getFilesFromEvent:function(e){return a(this,void 0,void 0,function(){return c(this,function(t){return f(e)&&f(e.dataTransfer)?[2,function(e,t){return a(this,void 0,void 0,function(){var n;return c(this,function(r){switch(r.label){case 0:if(null===e)return[2,[]];if(!e.items)return[3,2];if(n=d(e.items).filter(function(e){return"file"===e.kind}),"drop"!==t)return[2,n];return[4,Promise.all(n.map(v))];case 1:return[2,p(function e(t){return t.reduce(function(t,n){return function(){for(var e=[],t=0;t0)&&!(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}(arguments[t]));return e}(t,Array.isArray(n)?e(n):[n])},[])}(r.sent()))];case 2:return[2,p(d(e.files).map(function(e){return l(e)}))]}})})}(e.dataTransfer,e.type)]:f(e)&&f(e.target)?[2,d(e.target.files).map(function(e){return l(e)})]:Array.isArray(e)&&e.every(function(e){return"getFile"in e&&"function"==typeof e.getFile})?[2,function(e){return a(this,void 0,void 0,function(){return c(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 l(e)})]}})})}(e)]:[2,[]]})})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1};Z.defaultProps=H,Z.propTypes={children:i().func,accept:i().oneOfType([i().string,i().arrayOf(i().string)]),multiple:i().bool,preventDropOnDocument:i().bool,noClick:i().bool,noKeyboard:i().bool,noDrag:i().bool,noDragEventsBubbling:i().bool,minSize:i().number,maxSize:i().number,maxFiles:i().number,disabled:i().bool,getFilesFromEvent:i().func,onFileDialogCancel:i().func,onFileDialogOpen:i().func,useFsAccessApi:i().bool,onDragEnter:i().func,onDragLeave:i().func,onDragOver:i().func,onDrop:i().func,onDropAccepted:i().func,onDropRejected:i().func,validator:i().func};var J={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function Q(){var e,t,n,o,i,a,c,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=q(q({},H),u),s=l.accept,f=l.disabled,p=l.getFilesFromEvent,d=l.maxSize,v=l.minSize,g=l.multiple,m=l.maxFiles,y=l.onDragEnter,b=l.onDragLeave,h=l.onDragOver,O=l.onDrop,j=l.onDropAccepted,F=l.onDropRejected,A=l.onFileDialogCancel,S=l.onFileDialogOpen,L=l.useFsAccessApi,K=l.preventDropOnDocument,G=l.noClick,Z=l.noKeyboard,Q=l.noDrag,Y=l.noDragEventsBubbling,ee=l.validator,et=(0,r.useMemo)(function(){return"function"==typeof S?S:X},[S]),en=(0,r.useMemo)(function(){return"function"==typeof A?A:X},[A]),er=(0,r.useRef)(null),eo=(0,r.useRef)(null),ei=_((0,r.useReducer)(V,J),2),ea=ei[0],ec=ei[1],eu=ea.isFocused,el=ea.isFileDialogActive,es=ea.draggedFiles,ef=function(){el&&setTimeout(function(){eo.current&&!eo.current.files.length&&(ec({type:"closeDialog"}),en())},300)};(0,r.useEffect)(function(){return L&&T()?function(){}:(window.addEventListener("focus",ef,!1),function(){window.removeEventListener("focus",ef,!1)})},[eo,el,en,L]);var ep=(0,r.useRef)([]),ed=function(e){er.current&&er.current.contains(e.target)||(e.preventDefault(),ep.current=[])};(0,r.useEffect)(function(){return K&&(document.addEventListener("dragover",I,!1),document.addEventListener("drop",ed,!1)),function(){K&&(document.removeEventListener("dragover",I),document.removeEventListener("drop",ed))}},[er,K]);var ev=(0,r.useCallback)(function(e){var t;e.preventDefault(),e.persist(),ek(e),ep.current=[].concat(function(e){if(Array.isArray(e))return $(e)}(t=ep.current)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||N(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e.target]),z(e)&&Promise.resolve(p(e)).then(function(t){(!C(e)||Y)&&(ec({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),y&&y(e))})},[p,y,Y]),eg=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),ek(e);var t=z(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&h&&h(e),!1},[h,Y]),em=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),ek(e);var t=ep.current.filter(function(e){return er.current&&er.current.contains(e)}),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),ep.current=t,!(t.length>0)&&(ec({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),z(e)&&b&&b(e))},[er,b,Y]),ey=(0,r.useCallback)(function(e,t){var n=[],r=[];e.forEach(function(e){var t=_(P(e,s),2),o=t[0],i=t[1],a=_(E(e,v,d),2),c=a[0],u=a[1],l=ee?ee(e):null;if(o&&c&&!l)n.push(e);else{var f=[i,u];l&&(f=f.concat(l)),r.push({file:e,errors:f.filter(function(e){return e})})}}),(!g&&n.length>1||g&&m>=1&&n.length>m)&&(n.forEach(function(e){r.push({file:e,errors:[k]})}),n.splice(0)),ec({acceptedFiles:n,fileRejections:r,type:"setFiles"}),O&&O(n,r,t),r.length>0&&F&&F(r,t),n.length>0&&j&&j(n,t)},[ec,g,s,v,d,m,O,j,F,ee]),eb=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),ek(e),ep.current=[],z(e)&&Promise.resolve(p(e)).then(function(t){(!C(e)||Y)&&ey(t,e)}),ec({type:"reset"})},[p,ey,Y]),eh=(0,r.useCallback)(function(){if(L&&T()){ec({type:"openDialog"}),et();var e,t={multiple:g,types:[{description:"everything",accept:Array.isArray(e="string"==typeof(e=s)?e.split(","):e)?e.filter(function(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}).reduce(function(e,t){return w(w({},e),{},D({},t,[]))},{}):{}}]};window.showOpenFilePicker(t).then(function(e){return p(e)}).then(function(e){return ey(e,null)}).catch(function(e){return en(e)}).finally(function(){return ec({type:"closeDialog"})});return}eo.current&&(ec({type:"openDialog"}),et(),eo.current.value=null,eo.current.click())},[ec,et,en,L,ey,s,g]),ew=(0,r.useCallback)(function(e){er.current&&er.current.isEqualNode(e.target)&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),eh())},[er,eo,eh]),eD=(0,r.useCallback)(function(){ec({type:"focus"})},[]),ex=(0,r.useCallback)(function(){ec({type:"blur"})},[]),eO=(0,r.useCallback)(function(){G||(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return -1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/")}()?setTimeout(eh,0):eh())},[eo,G,eh]),ej=function(e){return f?null:e},eF=function(e){return Z?null:ej(e)},eA=function(e){return Q?null:ej(e)},ek=function(e){Y&&e.stopPropagation()},eP=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.role,r=e.onKeyDown,o=e.onFocus,i=e.onBlur,a=e.onClick,c=e.onDragEnter,u=e.onDragOver,l=e.onDragLeave,s=e.onDrop,p=W(e,B);return q(q(U({onKeyDown:eF(R(r,ew)),onFocus:eF(R(o,eD)),onBlur:eF(R(i,ex)),onClick:ej(R(a,eO)),onDragEnter:eA(R(c,ev)),onDragOver:eA(R(u,eg)),onDragLeave:eA(R(l,em)),onDrop:eA(R(s,eb)),role:"string"==typeof n&&""!==n?n:"button"},void 0===t?"ref":t,er),f||Z?{}:{tabIndex:0}),p)}},[er,ew,eD,ex,eO,ev,eg,em,eb,Z,Q,f]),eE=(0,r.useCallback)(function(e){e.stopPropagation()},[]),eS=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.onChange,r=e.onClick,o=W(e,M);return q(q({},U({accept:s,multiple:g,type:"file",style:{display:"none"},onChange:ej(R(n,eb)),onClick:ej(R(r,eE)),autoComplete:"off",tabIndex:-1},void 0===t?"ref":t,eo)),o)}},[eo,s,g,eb,f]),eC=es.length,ez=eC>0&&(t=(e={files:es,accept:s,minSize:v,maxSize:d,multiple:g,maxFiles:m}).files,n=e.accept,o=e.minSize,i=e.maxSize,a=e.multiple,c=e.maxFiles,(!!a||!(t.length>1))&&(!a||!(c>=1)||!(t.length>c))&&t.every(function(e){var t=x(P(e,n),1)[0],r=x(E(e,o,i),1)[0];return t&&r}));return q(q({},ea),{},{isDragAccept:ez,isDragReject:eC>0&&!ez,isFocused:eu&&!f,getRootProps:eP,getInputProps:eS,rootRef:er,inputRef:eo,open:ej(eh)})}function V(e,t){switch(t.type){case"focus":return q(q({},e),{},{isFocused:!0});case"blur":return q(q({},e),{},{isFocused:!1});case"openDialog":return q(q({},J),{},{isFileDialogActive:!0});case"closeDialog":return q(q({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return q(q({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return q(q({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return q({},J);default:return e}}function X(){}}}]);