@cubone/react-file-manager 1.0.2 → 1.1.1

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.
@@ -1,4 +1,4 @@
1
- (function(Se,V){typeof exports=="object"&&typeof module<"u"?V(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],V):(Se=typeof globalThis<"u"?globalThis:Se||self,V(Se.ReactFileManager={},Se.React))})(this,function(Se,V){"use strict";var xt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jt(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var at={exports:{}},De={};/**
1
+ (function(Se,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],D):(Se=typeof globalThis<"u"?globalThis:Se||self,D(Se.ReactFileManager={},Se.React))})(this,function(Se,D){"use strict";var xt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jt(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var at={exports:{}},De={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var wt;function $t(){if(wt)return De;wt=1;var n=V,h=Symbol.for("react.element"),o=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,d=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function l(v,f,s){var p,C={},b=null,I=null;s!==void 0&&(b=""+s),f.key!==void 0&&(b=""+f.key),f.ref!==void 0&&(I=f.ref);for(p in f)c.call(f,p)&&!u.hasOwnProperty(p)&&(C[p]=f[p]);if(v&&v.defaultProps)for(p in f=v.defaultProps,f)C[p]===void 0&&(C[p]=f[p]);return{$$typeof:h,type:v,key:b,ref:I,props:C,_owner:d.current}}return De.Fragment=o,De.jsx=l,De.jsxs=l,De}var Fe={};/**
9
+ */var wt;function $t(){if(wt)return De;wt=1;var n=D,p=Symbol.for("react.element"),o=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,d=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function l(v,f,s){var h,N={},j=null,_=null;s!==void 0&&(j=""+s),f.key!==void 0&&(j=""+f.key),f.ref!==void 0&&(_=f.ref);for(h in f)c.call(f,h)&&!u.hasOwnProperty(h)&&(N[h]=f[h]);if(v&&v.defaultProps)for(h in f=v.defaultProps,f)N[h]===void 0&&(N[h]=f[h]);return{$$typeof:p,type:v,key:j,ref:_,props:N,_owner:d.current}}return De.Fragment=o,De.jsx=l,De.jsxs=l,De}var Fe={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,46 +14,46 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Ct;function Wt(){return Ct||(Ct=1,process.env.NODE_ENV!=="production"&&function(){var n=V,h=Symbol.for("react.element"),o=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),v=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),k=Symbol.iterator,E="@@iterator";function L(t){if(t===null||typeof t!="object")return null;var j=k&&t[k]||t[E];return typeof j=="function"?j:null}var z=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(t){{for(var j=arguments.length,N=new Array(j>1?j-1:0),W=1;W<j;W++)N[W-1]=arguments[W];H("error",t,N)}}function H(t,j,N){{var W=z.ReactDebugCurrentFrame,ee=W.getStackAddendum();ee!==""&&(j+="%s",N=N.concat([ee]));var ae=N.map(function(e){return String(e)});ae.unshift("Warning: "+j),Function.prototype.apply.call(console[t],console,ae)}}var P=!1,y=!1,R=!1,M=!1,$=!1,te;te=Symbol.for("react.module.reference");function q(t){return!!(typeof t=="string"||typeof t=="function"||t===c||t===u||$||t===d||t===s||t===p||M||t===I||P||y||R||typeof t=="object"&&t!==null&&(t.$$typeof===b||t.$$typeof===C||t.$$typeof===l||t.$$typeof===v||t.$$typeof===f||t.$$typeof===te||t.getModuleId!==void 0))}function A(t,j,N){var W=t.displayName;if(W)return W;var ee=j.displayName||j.name||"";return ee!==""?N+"("+ee+")":N}function J(t){return t.displayName||"Context"}function re(t){if(t==null)return null;if(typeof t.tag=="number"&&T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case c:return"Fragment";case o:return"Portal";case u:return"Profiler";case d:return"StrictMode";case s:return"Suspense";case p:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case v:var j=t;return J(j)+".Consumer";case l:var N=t;return J(N._context)+".Provider";case f:return A(t,t.render,"ForwardRef");case C:var W=t.displayName||null;return W!==null?W:re(t.type)||"Memo";case b:{var ee=t,ae=ee._payload,e=ee._init;try{return re(e(ae))}catch{return null}}}return null}var le=Object.assign,ce=0,ue,ve,fe,X,de,pe,w;function D(){}D.__reactDisabledLog=!0;function Y(){{if(ce===0){ue=console.log,ve=console.info,fe=console.warn,X=console.error,de=console.group,pe=console.groupCollapsed,w=console.groupEnd;var t={configurable:!0,enumerable:!0,value:D,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}ce++}}function K(){{if(ce--,ce===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:le({},t,{value:ue}),info:le({},t,{value:ve}),warn:le({},t,{value:fe}),error:le({},t,{value:X}),group:le({},t,{value:de}),groupCollapsed:le({},t,{value:pe}),groupEnd:le({},t,{value:w})})}ce<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var B=z.ReactCurrentDispatcher,i;function m(t,j,N){{if(i===void 0)try{throw Error()}catch(ee){var W=ee.stack.trim().match(/\n( *(at )?)/);i=W&&W[1]||""}return`
18
- `+i+t}}var _=!1,S;{var F=typeof WeakMap=="function"?WeakMap:Map;S=new F}function U(t,j){if(!t||_)return"";{var N=S.get(t);if(N!==void 0)return N}var W;_=!0;var ee=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ae;ae=B.current,B.current=null,Y();try{if(j){var e=function(){throw Error()};if(Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(oe){W=oe}Reflect.construct(t,[],e)}else{try{e.call()}catch(oe){W=oe}t.call(e.prototype)}}else{try{throw Error()}catch(oe){W=oe}t()}}catch(oe){if(oe&&W&&typeof oe.stack=="string"){for(var a=oe.stack.split(`
19
- `),g=W.stack.split(`
20
- `),x=a.length-1,O=g.length-1;x>=1&&O>=0&&a[x]!==g[O];)O--;for(;x>=1&&O>=0;x--,O--)if(a[x]!==g[O]){if(x!==1||O!==1)do if(x--,O--,O<0||a[x]!==g[O]){var Z=`
21
- `+a[x].replace(" at new "," at ");return t.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",t.displayName)),typeof t=="function"&&S.set(t,Z),Z}while(x>=1&&O>=0);break}}}finally{_=!1,B.current=ae,K(),Error.prepareStackTrace=ee}var Q=t?t.displayName||t.name:"",G=Q?m(Q):"";return typeof t=="function"&&S.set(t,G),G}function se(t,j,N){return U(t,!1)}function ne(t){var j=t.prototype;return!!(j&&j.isReactComponent)}function me(t,j,N){if(t==null)return"";if(typeof t=="function")return U(t,ne(t));if(typeof t=="string")return m(t);switch(t){case s:return m("Suspense");case p:return m("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case f:return se(t.render);case C:return me(t.type,j,N);case b:{var W=t,ee=W._payload,ae=W._init;try{return me(ae(ee),j,N)}catch{}}}return""}var he=Object.prototype.hasOwnProperty,Ce={},je=z.ReactDebugCurrentFrame;function Re(t){if(t){var j=t._owner,N=me(t.type,t._source,j?j.type:null);je.setExtraStackFrame(N)}else je.setExtraStackFrame(null)}function ct(t,j,N,W,ee){{var ae=Function.call.bind(he);for(var e in t)if(ae(t,e)){var a=void 0;try{if(typeof t[e]!="function"){var g=Error((W||"React class")+": "+N+" type `"+e+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[e]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}a=t[e](j,e,W,N,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(x){a=x}a&&!(a instanceof Error)&&(Re(ee),T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",W||"React class",N,e,typeof a),Re(null)),a instanceof Error&&!(a.message in Ce)&&(Ce[a.message]=!0,Re(ee),T("Failed %s type: %s",N,a.message),Re(null))}}}var ut=Array.isArray;function _e(t){return ut(t)}function ft(t){{var j=typeof Symbol=="function"&&Symbol.toStringTag,N=j&&t[Symbol.toStringTag]||t.constructor.name||"Object";return N}}function qe(t){try{return Ge(t),!1}catch{return!0}}function Ge(t){return""+t}function Ne(t){if(qe(t))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ft(t)),Ge(t)}var Ee=z.ReactCurrentOwner,Je={key:!0,ref:!0,__self:!0,__source:!0},Ae,Ve,ke;ke={};function dt(t){if(he.call(t,"ref")){var j=Object.getOwnPropertyDescriptor(t,"ref").get;if(j&&j.isReactWarning)return!1}return t.ref!==void 0}function pt(t){if(he.call(t,"key")){var j=Object.getOwnPropertyDescriptor(t,"key").get;if(j&&j.isReactWarning)return!1}return t.key!==void 0}function ht(t,j){if(typeof t.ref=="string"&&Ee.current&&j&&Ee.current.stateNode!==j){var N=re(Ee.current.type);ke[N]||(T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',re(Ee.current.type),t.ref),ke[N]=!0)}}function Ie(t,j){{var N=function(){Ae||(Ae=!0,T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",j))};N.isReactWarning=!0,Object.defineProperty(t,"key",{get:N,configurable:!0})}}function vt(t,j){{var N=function(){Ve||(Ve=!0,T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",j))};N.isReactWarning=!0,Object.defineProperty(t,"ref",{get:N,configurable:!0})}}var mt=function(t,j,N,W,ee,ae,e){var a={$$typeof:h,type:t,key:j,ref:N,props:e,_owner:ae};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:W}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ee}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function gt(t,j,N,W,ee){{var ae,e={},a=null,g=null;N!==void 0&&(Ne(N),a=""+N),pt(j)&&(Ne(j.key),a=""+j.key),dt(j)&&(g=j.ref,ht(j,ee));for(ae in j)he.call(j,ae)&&!Je.hasOwnProperty(ae)&&(e[ae]=j[ae]);if(t&&t.defaultProps){var x=t.defaultProps;for(ae in x)e[ae]===void 0&&(e[ae]=x[ae])}if(a||g){var O=typeof t=="function"?t.displayName||t.name||"Unknown":t;a&&Ie(e,O),g&&vt(e,O)}return mt(t,a,g,ee,W,Ee.current,e)}}var Le=z.ReactCurrentOwner,Xe=z.ReactDebugCurrentFrame;function Te(t){if(t){var j=t._owner,N=me(t.type,t._source,j?j.type:null);Xe.setExtraStackFrame(N)}else Xe.setExtraStackFrame(null)}var $e;$e=!1;function We(t){return typeof t=="object"&&t!==null&&t.$$typeof===h}function ze(){{if(Le.current){var t=re(Le.current.type);if(t)return`
17
+ */var Ct;function Wt(){return Ct||(Ct=1,process.env.NODE_ENV!=="production"&&function(){var n=D,p=Symbol.for("react.element"),o=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),v=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),V=Symbol.iterator,C="@@iterator";function E(t){if(t===null||typeof t!="object")return null;var x=V&&t[V]||t[C];return typeof x=="function"?x:null}var M=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function z(t){{for(var x=arguments.length,A=new Array(x>1?x-1:0),B=1;B<x;B++)A[B-1]=arguments[B];I("error",t,A)}}function I(t,x,A){{var B=M.ReactDebugCurrentFrame,te=B.getStackAddendum();te!==""&&(x+="%s",A=A.concat([te]));var ie=A.map(function(e){return String(e)});ie.unshift("Warning: "+x),Function.prototype.apply.call(console[t],console,ie)}}var P=!1,b=!1,k=!1,T=!1,$=!1,ee;ee=Symbol.for("react.module.reference");function W(t){return!!(typeof t=="string"||typeof t=="function"||t===c||t===u||$||t===d||t===s||t===h||T||t===_||P||b||k||typeof t=="object"&&t!==null&&(t.$$typeof===j||t.$$typeof===N||t.$$typeof===l||t.$$typeof===v||t.$$typeof===f||t.$$typeof===ee||t.getModuleId!==void 0))}function O(t,x,A){var B=t.displayName;if(B)return B;var te=x.displayName||x.name||"";return te!==""?A+"("+te+")":A}function X(t){return t.displayName||"Context"}function re(t){if(t==null)return null;if(typeof t.tag=="number"&&z("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case c:return"Fragment";case o:return"Portal";case u:return"Profiler";case d:return"StrictMode";case s:return"Suspense";case h:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case v:var x=t;return X(x)+".Consumer";case l:var A=t;return X(A._context)+".Provider";case f:return O(t,t.render,"ForwardRef");case N:var B=t.displayName||null;return B!==null?B:re(t.type)||"Memo";case j:{var te=t,ie=te._payload,e=te._init;try{return re(e(ie))}catch{return null}}}return null}var ue=Object.assign,fe=0,ne,he,ce,q,de,pe,w;function L(){}L.__reactDisabledLog=!0;function U(){{if(fe===0){ne=console.log,he=console.info,ce=console.warn,q=console.error,de=console.group,pe=console.groupCollapsed,w=console.groupEnd;var t={configurable:!0,enumerable:!0,value:L,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}fe++}}function G(){{if(fe--,fe===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ue({},t,{value:ne}),info:ue({},t,{value:he}),warn:ue({},t,{value:ce}),error:ue({},t,{value:q}),group:ue({},t,{value:de}),groupCollapsed:ue({},t,{value:pe}),groupEnd:ue({},t,{value:w})})}fe<0&&z("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Y=M.ReactCurrentDispatcher,i;function m(t,x,A){{if(i===void 0)try{throw Error()}catch(te){var B=te.stack.trim().match(/\n( *(at )?)/);i=B&&B[1]||""}return`
18
+ `+i+t}}var H=!1,R;{var F=typeof WeakMap=="function"?WeakMap:Map;R=new F}function K(t,x){if(!t||H)return"";{var A=R.get(t);if(A!==void 0)return A}var B;H=!0;var te=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ie;ie=Y.current,Y.current=null,U();try{if(x){var e=function(){throw Error()};if(Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(se){B=se}Reflect.construct(t,[],e)}else{try{e.call()}catch(se){B=se}t.call(e.prototype)}}else{try{throw Error()}catch(se){B=se}t()}}catch(se){if(se&&B&&typeof se.stack=="string"){for(var a=se.stack.split(`
19
+ `),g=B.stack.split(`
20
+ `),y=a.length-1,S=g.length-1;y>=1&&S>=0&&a[y]!==g[S];)S--;for(;y>=1&&S>=0;y--,S--)if(a[y]!==g[S]){if(y!==1||S!==1)do if(y--,S--,S<0||a[y]!==g[S]){var Z=`
21
+ `+a[y].replace(" at new "," at ");return t.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",t.displayName)),typeof t=="function"&&R.set(t,Z),Z}while(y>=1&&S>=0);break}}}finally{H=!1,Y.current=ie,G(),Error.prepareStackTrace=te}var Q=t?t.displayName||t.name:"",J=Q?m(Q):"";return typeof t=="function"&&R.set(t,J),J}function le(t,x,A){return K(t,!1)}function ae(t){var x=t.prototype;return!!(x&&x.isReactComponent)}function me(t,x,A){if(t==null)return"";if(typeof t=="function")return K(t,ae(t));if(typeof t=="string")return m(t);switch(t){case s:return m("Suspense");case h:return m("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case f:return le(t.render);case N:return me(t.type,x,A);case j:{var B=t,te=B._payload,ie=B._init;try{return me(ie(te),x,A)}catch{}}}return""}var ve=Object.prototype.hasOwnProperty,Ce={},je=M.ReactDebugCurrentFrame;function Re(t){if(t){var x=t._owner,A=me(t.type,t._source,x?x.type:null);je.setExtraStackFrame(A)}else je.setExtraStackFrame(null)}function ct(t,x,A,B,te){{var ie=Function.call.bind(ve);for(var e in t)if(ie(t,e)){var a=void 0;try{if(typeof t[e]!="function"){var g=Error((B||"React class")+": "+A+" type `"+e+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[e]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}a=t[e](x,e,B,A,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){a=y}a&&!(a instanceof Error)&&(Re(te),z("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",B||"React class",A,e,typeof a),Re(null)),a instanceof Error&&!(a.message in Ce)&&(Ce[a.message]=!0,Re(te),z("Failed %s type: %s",A,a.message),Re(null))}}}var ut=Array.isArray;function _e(t){return ut(t)}function ft(t){{var x=typeof Symbol=="function"&&Symbol.toStringTag,A=x&&t[Symbol.toStringTag]||t.constructor.name||"Object";return A}}function qe(t){try{return Ge(t),!1}catch{return!0}}function Ge(t){return""+t}function ke(t){if(qe(t))return z("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ft(t)),Ge(t)}var Ee=M.ReactCurrentOwner,Je={key:!0,ref:!0,__self:!0,__source:!0},Ae,Ve,Ne;Ne={};function dt(t){if(ve.call(t,"ref")){var x=Object.getOwnPropertyDescriptor(t,"ref").get;if(x&&x.isReactWarning)return!1}return t.ref!==void 0}function pt(t){if(ve.call(t,"key")){var x=Object.getOwnPropertyDescriptor(t,"key").get;if(x&&x.isReactWarning)return!1}return t.key!==void 0}function ht(t,x){if(typeof t.ref=="string"&&Ee.current&&x&&Ee.current.stateNode!==x){var A=re(Ee.current.type);Ne[A]||(z('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',re(Ee.current.type),t.ref),Ne[A]=!0)}}function Ie(t,x){{var A=function(){Ae||(Ae=!0,z("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",x))};A.isReactWarning=!0,Object.defineProperty(t,"key",{get:A,configurable:!0})}}function vt(t,x){{var A=function(){Ve||(Ve=!0,z("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",x))};A.isReactWarning=!0,Object.defineProperty(t,"ref",{get:A,configurable:!0})}}var mt=function(t,x,A,B,te,ie,e){var a={$$typeof:p,type:t,key:x,ref:A,props:e,_owner:ie};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:B}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:te}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function gt(t,x,A,B,te){{var ie,e={},a=null,g=null;A!==void 0&&(ke(A),a=""+A),pt(x)&&(ke(x.key),a=""+x.key),dt(x)&&(g=x.ref,ht(x,te));for(ie in x)ve.call(x,ie)&&!Je.hasOwnProperty(ie)&&(e[ie]=x[ie]);if(t&&t.defaultProps){var y=t.defaultProps;for(ie in y)e[ie]===void 0&&(e[ie]=y[ie])}if(a||g){var S=typeof t=="function"?t.displayName||t.name||"Unknown":t;a&&Ie(e,S),g&&vt(e,S)}return mt(t,a,g,te,B,Ee.current,e)}}var Le=M.ReactCurrentOwner,Xe=M.ReactDebugCurrentFrame;function Te(t){if(t){var x=t._owner,A=me(t.type,t._source,x?x.type:null);Xe.setExtraStackFrame(A)}else Xe.setExtraStackFrame(null)}var $e;$e=!1;function We(t){return typeof t=="object"&&t!==null&&t.$$typeof===p}function ze(){{if(Le.current){var t=re(Le.current.type);if(t)return`
22
22
 
23
- Check the render method of \``+t+"`."}return""}}function xe(t){return""}var He={};function Ze(t){{var j=ze();if(!j){var N=typeof t=="string"?t:t.displayName||t.name;N&&(j=`
23
+ Check the render method of \``+t+"`."}return""}}function xe(t){return""}var He={};function Ze(t){{var x=ze();if(!x){var A=typeof t=="string"?t:t.displayName||t.name;A&&(x=`
24
24
 
25
- Check the top-level render call using <`+N+">.")}return j}}function Oe(t,j){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var N=Ze(j);if(He[N])return;He[N]=!0;var W="";t&&t._owner&&t._owner!==Le.current&&(W=" It was passed a child from "+re(t._owner.type)+"."),Te(t),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',N,W),Te(null)}}function Ue(t,j){{if(typeof t!="object")return;if(_e(t))for(var N=0;N<t.length;N++){var W=t[N];We(W)&&Oe(W,j)}else if(We(t))t._store&&(t._store.validated=!0);else if(t){var ee=L(t);if(typeof ee=="function"&&ee!==t.entries)for(var ae=ee.call(t),e;!(e=ae.next()).done;)We(e.value)&&Oe(e.value,j)}}}function yt(t){{var j=t.type;if(j==null||typeof j=="string")return;var N;if(typeof j=="function")N=j.propTypes;else if(typeof j=="object"&&(j.$$typeof===f||j.$$typeof===C))N=j.propTypes;else return;if(N){var W=re(j);ct(N,t.props,"prop",W,t)}else if(j.PropTypes!==void 0&&!$e){$e=!0;var ee=re(j);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ee||"Unknown")}typeof j.getDefaultProps=="function"&&!j.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Qe(t){{for(var j=Object.keys(t.props),N=0;N<j.length;N++){var W=j[N];if(W!=="children"&&W!=="key"){Te(t),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",W),Te(null);break}}t.ref!==null&&(Te(t),T("Invalid attribute `ref` supplied to `React.Fragment`."),Te(null))}}var et={};function Be(t,j,N,W,ee,ae){{var e=q(t);if(!e){var a="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var g=xe();g?a+=g:a+=ze();var x;t===null?x="null":_e(t)?x="array":t!==void 0&&t.$$typeof===h?(x="<"+(re(t.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):x=typeof t,T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",x,a)}var O=gt(t,j,N,ee,ae);if(O==null)return O;if(e){var Z=j.children;if(Z!==void 0)if(W)if(_e(Z)){for(var Q=0;Q<Z.length;Q++)Ue(Z[Q],t);Object.freeze&&Object.freeze(Z)}else T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ue(Z,t)}if(he.call(j,"key")){var G=re(t),oe=Object.keys(j).filter(function(ge){return ge!=="key"}),ye=oe.length>0?"{key: someKey, "+oe.join(": ..., ")+": ...}":"{key: someKey}";if(!et[G+ye]){var be=oe.length>0?"{"+oe.join(": ..., ")+": ...}":"{}";T(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+A+">.")}return x}}function Oe(t,x){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var A=Ze(x);if(He[A])return;He[A]=!0;var B="";t&&t._owner&&t._owner!==Le.current&&(B=" It was passed a child from "+re(t._owner.type)+"."),Te(t),z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',A,B),Te(null)}}function Ue(t,x){{if(typeof t!="object")return;if(_e(t))for(var A=0;A<t.length;A++){var B=t[A];We(B)&&Oe(B,x)}else if(We(t))t._store&&(t._store.validated=!0);else if(t){var te=E(t);if(typeof te=="function"&&te!==t.entries)for(var ie=te.call(t),e;!(e=ie.next()).done;)We(e.value)&&Oe(e.value,x)}}}function yt(t){{var x=t.type;if(x==null||typeof x=="string")return;var A;if(typeof x=="function")A=x.propTypes;else if(typeof x=="object"&&(x.$$typeof===f||x.$$typeof===N))A=x.propTypes;else return;if(A){var B=re(x);ct(A,t.props,"prop",B,t)}else if(x.PropTypes!==void 0&&!$e){$e=!0;var te=re(x);z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",te||"Unknown")}typeof x.getDefaultProps=="function"&&!x.getDefaultProps.isReactClassApproved&&z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Qe(t){{for(var x=Object.keys(t.props),A=0;A<x.length;A++){var B=x[A];if(B!=="children"&&B!=="key"){Te(t),z("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",B),Te(null);break}}t.ref!==null&&(Te(t),z("Invalid attribute `ref` supplied to `React.Fragment`."),Te(null))}}var et={};function Be(t,x,A,B,te,ie){{var e=W(t);if(!e){var a="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var g=xe();g?a+=g:a+=ze();var y;t===null?y="null":_e(t)?y="array":t!==void 0&&t.$$typeof===p?(y="<"+(re(t.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):y=typeof t,z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,a)}var S=gt(t,x,A,te,ie);if(S==null)return S;if(e){var Z=x.children;if(Z!==void 0)if(B)if(_e(Z)){for(var Q=0;Q<Z.length;Q++)Ue(Z[Q],t);Object.freeze&&Object.freeze(Z)}else z("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ue(Z,t)}if(ve.call(x,"key")){var J=re(t),se=Object.keys(x).filter(function(ge){return ge!=="key"}),ye=se.length>0?"{key: someKey, "+se.join(": ..., ")+": ...}":"{key: someKey}";if(!et[J+ye]){var be=se.length>0?"{"+se.join(": ..., ")+": ...}":"{}";z(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,ye,G,be,G),et[G+ye]=!0}}return t===c?Qe(O):yt(O),O}}function tt(t,j,N){return Be(t,j,N,!0)}function nt(t,j,N){return Be(t,j,N,!1)}var bt=nt,rt=tt;Fe.Fragment=c,Fe.jsx=bt,Fe.jsxs=rt}()),Fe}process.env.NODE_ENV==="production"?at.exports=$t():at.exports=Wt();var r=at.exports,Ot={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Et=V.createContext&&V.createContext(Ot),Ut=["attr","size","title"];function Bt(n,h){if(n==null)return{};var o=Yt(n,h),c,d;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);for(d=0;d<u.length;d++)c=u[d],!(h.indexOf(c)>=0)&&Object.prototype.propertyIsEnumerable.call(n,c)&&(o[c]=n[c])}return o}function Yt(n,h){if(n==null)return{};var o={};for(var c in n)if(Object.prototype.hasOwnProperty.call(n,c)){if(h.indexOf(c)>=0)continue;o[c]=n[c]}return o}function Ye(){return Ye=Object.assign?Object.assign.bind():function(n){for(var h=1;h<arguments.length;h++){var o=arguments[h];for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(n[c]=o[c])}return n},Ye.apply(this,arguments)}function Tt(n,h){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(n);h&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(n,d).enumerable})),o.push.apply(o,c)}return o}function Ke(n){for(var h=1;h<arguments.length;h++){var o=arguments[h]!=null?arguments[h]:{};h%2?Tt(Object(o),!0).forEach(function(c){Kt(n,c,o[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):Tt(Object(o)).forEach(function(c){Object.defineProperty(n,c,Object.getOwnPropertyDescriptor(o,c))})}return n}function Kt(n,h,o){return h=qt(h),h in n?Object.defineProperty(n,h,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[h]=o,n}function qt(n){var h=Gt(n,"string");return typeof h=="symbol"?h:h+""}function Gt(n,h){if(typeof n!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var c=o.call(n,h||"default");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(n)}function St(n){return n&&n.map((h,o)=>V.createElement(h.tag,Ke({key:o},h.attr),St(h.child)))}function ie(n){return h=>V.createElement(Jt,Ye({attr:Ke({},n.attr)},h),St(n.child))}function Jt(n){var h=o=>{var{attr:c,size:d,title:u}=n,l=Bt(n,Ut),v=d||o.size||"1em",f;return o.className&&(f=o.className),n.className&&(f=(f?f+" ":"")+n.className),V.createElement("svg",Ye({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},o.attr,c,l,{className:f,style:Ke(Ke({color:n.color||o.color},o.style),n.style),height:v,width:v,xmlns:"http://www.w3.org/2000/svg"}),u&&V.createElement("title",null,u),n.children)};return Et!==void 0?V.createElement(Et.Consumer,null,o=>h(o)):h(Ot)}function Pt(n){return ie({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z"},child:[]}]})(n)}function Xt(n){return ie({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"m.5 3 .04.87a2 2 0 0 0-.342 1.311l.637 7A2 2 0 0 0 2.826 14H9v-1H2.826a1 1 0 0 1-.995-.91l-.637-7A1 1 0 0 1 2.19 4h11.62a1 1 0 0 1 .996 1.09L14.54 8h1.005l.256-2.819A2 2 0 0 0 13.81 3H9.828a2 2 0 0 1-1.414-.586l-.828-.828A2 2 0 0 0 6.172 1H2.5a2 2 0 0 0-2 2m5.672-1a1 1 0 0 1 .707.293L7.586 3H2.19q-.362.002-.683.12L1.5 2.98a1 1 0 0 1 1-.98z"},child:[]},{tag:"path",attr:{d:"M13.5 9a.5.5 0 0 1 .5.5V11h1.5a.5.5 0 1 1 0 1H14v1.5a.5.5 0 1 1-1 0V12h-1.5a.5.5 0 0 1 0-1H13V9.5a.5.5 0 0 1 .5-.5"},child:[]}]})(n)}function Rt(n){return ie({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M3.5 3.5c-.614-.884-.074-1.962.858-2.5L8 7.226 11.642 1c.932.538 1.472 1.616.858 2.5L8.81 8.61l1.556 2.661a2.5 2.5 0 1 1-.794.637L8 9.73l-1.572 2.177a2.5 2.5 0 1 1-.794-.637L7.19 8.61zm2.5 10a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0m7 0a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0"},child:[]}]})(n)}function Zt(n){return ie({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"23 4 23 10 17 10"},child:[]},{tag:"polyline",attr:{points:"1 20 1 14 7 14"},child:[]},{tag:"path",attr:{d:"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"},child:[]}]})(n)}function Qt(n){return ie({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"},child:[]}]})(n)}function en(n){return ie({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(n)}function tn(n){return ie({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"},child:[]}]})(n)}function nn(n){return ie({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(n)}function Nt(n){return ie({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"},child:[]}]})(n)}function rn(n){return ie({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z"},child:[]}]})(n)}function an(n){return ie({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M10.02 6 8.61 7.41 13.19 12l-4.58 4.59L10.02 18l6-6-6-6z"},child:[]}]})(n)}function kt(n){return ie({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20.005 5.995h-1v2h1v8h-1v2h1c1.103 0 2-.897 2-2v-8c0-1.102-.898-2-2-2zm-14 4H15v4H6.005z"},child:[]},{tag:"path",attr:{d:"M17.005 17.995V4H20V2h-8v2h3.005v1.995h-11c-1.103 0-2 .897-2 2v8c0 1.103.897 2 2 2h11V20H12v2h8v-2h-2.995v-2.005zm-13-2v-8h11v8h-11z"},child:[]}]})(n)}function it(n){return ie({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M64 464c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm96 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm69.2 46.9c-3-4.3-7.9-6.9-13.2-6.9s-10.2 2.6-13.2 6.9l-41.3 59.7-11.9-19.1c-2.9-4.7-8.1-7.5-13.6-7.5s-10.6 2.8-13.6 7.5l-40 64c-3.1 4.9-3.2 11.1-.4 16.2s8.2 8.2 14 8.2h48 32 40 72c6 0 11.4-3.3 14.2-8.6s2.4-11.6-1-16.5l-72-104z"},child:[]}]})(n)}function on(n){return ie({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M64 464c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm56 256c-13.3 0-24 10.7-24 24s10.7 24 24 24H264c13.3 0 24-10.7 24-24s-10.7-24-24-24H120zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24H264c13.3 0 24-10.7 24-24s-10.7-24-24-24H120z"},child:[]}]})(n)}function sn(n){return ie({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 464l48 0 0 48-48 0c-35.3 0-64-28.7-64-64L0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 304l-48 0 0-144-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16zM176 352l32 0c30.9 0 56 25.1 56 56s-25.1 56-56 56l-16 0 0 32c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-48 0-80c0-8.8 7.2-16 16-16zm32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0 0 48 16 0zm96-80l32 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-32 0c-8.8 0-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zm32 128c8.8 0 16-7.2 16-16l0-64c0-8.8-7.2-16-16-16l-16 0 0 96 16 0zm80-112c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 32 32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 48c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-64 0-64z"},child:[]}]})(n)}function Mt(n){return ie({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M48 448V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm55 241.1c-3.8-12.7-17.2-19.9-29.9-16.1s-19.9 17.2-16.1 29.9l48 160c3 10.2 12.4 17.1 23 17.1s19.9-7 23-17.1l25-83.4 25 83.4c3 10.2 12.4 17.1 23 17.1s19.9-7 23-17.1l48-160c3.8-12.7-3.4-26.1-16.1-29.9s-26.1 3.4-29.9 16.1l-25 83.4-25-83.4c-3-10.2-12.4-17.1-23-17.1s-19.9 7-23 17.1l-25 83.4-25-83.4z"},child:[]}]})(n)}function ot(n){return ie({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M320 464c8.8 0 16-7.2 16-16V160H256c-17.7 0-32-14.3-32-32V48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16H320zM0 64C0 28.7 28.7 0 64 0H229.5c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64z"},child:[]}]})(n)}function ln(n){return ie({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M384 480h48c11.4 0 21.9-6 27.6-15.9l112-192c5.8-9.9 5.8-22.1 .1-32.1S555.5 224 544 224H144c-11.4 0-21.9 6-27.6 15.9L48 357.1V96c0-8.8 7.2-16 16-16H181.5c4.2 0 8.3 1.7 11.3 4.7l26.5 26.5c21 21 49.5 32.8 79.2 32.8H416c8.8 0 16 7.2 16 16v32h48V160c0-35.3-28.7-64-64-64H298.5c-17 0-33.3-6.7-45.3-18.7L226.7 50.7c-12-12-28.3-18.7-45.3-18.7H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H87.7 384z"},child:[]}]})(n)}function st(n){return ie({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M104.6 48H64C28.7 48 0 76.7 0 112V384c0 35.3 28.7 64 64 64h96V400H64c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H80c0 17.7 14.3 32 32 32h72.4C202 108.4 227.6 96 256 96h62c-7.1-27.6-32.2-48-62-48H215.4C211.6 20.9 188.2 0 160 0s-51.6 20.9-55.4 48zM144 56a16 16 0 1 1 32 0 16 16 0 1 1 -32 0zM448 464H256c-8.8 0-16-7.2-16-16V192c0-8.8 7.2-16 16-16l140.1 0L464 243.9V448c0 8.8-7.2 16-16 16zM256 512H448c35.3 0 64-28.7 64-64V243.9c0-12.7-5.1-24.9-14.1-33.9l-67.9-67.9c-9-9-21.2-14.1-33.9-14.1H256c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64z"},child:[]}]})(n)}const lt=(n,h)=>{const o=h.filter(c=>c.path===n.path+"/"+n.name);return{...n,children:o.map(c=>lt(c,h))}},cn=({allowCreateFolder:n=!0,allowUploadFile:h=!0,handleRefresh:o,isItemSelection:c,setIsItemSelection:d,currentPath:u,selectedFile:l,setSelectedFile:v,files:f,clipBoard:s,setClipBoard:p,handlePaste:C,triggerAction:b})=>{const[I,k]=V.useState([{icon:r.jsx(Xt,{size:17,strokeWidth:.3}),text:"New Folder",permission:n,onClick:()=>b.show("createFolder")},{icon:r.jsx(rn,{size:18}),text:"Upload File",permission:h,onClick:()=>b.show("uploadFile")},{icon:r.jsx(st,{size:18}),text:"Paste",permission:!1,onClick:()=>{}}]),E=[{icon:r.jsx(Zt,{size:16}),title:"Refresh",onClick:o}],L=(T,H,P)=>{const y=P.files[0],R=T.filter(M=>{const $=M.path===y.path&&M.name===y.name,te=M.path.startsWith(y.path+"/"+y.name);return $||te});C(T,H,P,R),P.isMoving&&p(null),d(!1),v(null)};V.useEffect(()=>{k(T=>T.map(H=>H.text==="Paste"?{...H,permission:!!s,onClick:()=>L(f,u,s)}:H))},[s,u,f]);const z=T=>{p({files:[{...lt(l,f)}],isMoving:T})};if(c){const T=l.path+"/"+l.name;return r.jsx("div",{className:"toolbar file-selected",children:r.jsxs("div",{className:"file-action-container",children:[r.jsxs("div",{children:[r.jsxs("button",{className:"item-action file-action",onClick:()=>z(!0),children:[r.jsx(Rt,{size:18}),r.jsx("span",{children:"Cut"})]}),r.jsxs("button",{className:"item-action file-action",onClick:()=>z(!1),children:[r.jsx(Pt,{strokeWidth:.1,size:17}),r.jsx("span",{children:"Copy"})]}),l.isDirectory?r.jsxs("button",{className:"item-action file-action",onClick:()=>L(f,T,s),disabled:!s,children:[r.jsx(st,{size:18}),r.jsx("span",{children:"Paste"})]}):r.jsx(r.Fragment,{}),r.jsxs("button",{className:"item-action file-action",onClick:()=>b.show("rename"),children:[r.jsx(kt,{size:19}),r.jsx("span",{children:"Rename"})]}),r.jsxs("button",{className:"item-action file-action",onClick:()=>b.show("delete"),children:[r.jsx(Nt,{size:19}),r.jsx("span",{children:"Delete"})]})]}),r.jsxs("button",{className:"item-action file-action",onClick:()=>d(!1),children:[r.jsx(en,{size:18}),r.jsx("span",{children:"Clear Selection"})]})]})})}return r.jsx("div",{className:"toolbar",children:r.jsxs("div",{className:"fm-toolbar",children:[r.jsx("div",{children:I.filter(T=>T.permission).map((T,H)=>r.jsxs("button",{className:"item-action",onClick:T.onClick,children:[T.icon,r.jsx("span",{children:T.text})]},H))}),r.jsx("div",{children:E.map((T,H)=>r.jsxs("div",{className:"toolbar-left-items",children:[r.jsx("div",{className:"item-action icon-only",title:T.title,role:"button",onClick:T.onClick,children:T.icon}),H!==E.length-1&&r.jsx("div",{className:"item-separator"})]},H))})]})})};var _t={exports:{}};(function(n,h){(function(o,c){n.exports=c(V)})(xt,function(o){return function(c){var d={};function u(l){if(d[l])return d[l].exports;var v=d[l]={i:l,l:!1,exports:{}};return c[l].call(v.exports,v,v.exports,u),v.l=!0,v.exports}return u.m=c,u.c=d,u.d=function(l,v,f){u.o(l,v)||Object.defineProperty(l,v,{enumerable:!0,get:f})},u.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})},u.t=function(l,v){if(1&v&&(l=u(l)),8&v||4&v&&typeof l=="object"&&l&&l.__esModule)return l;var f=Object.create(null);if(u.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:l}),2&v&&typeof l!="string")for(var s in l)u.d(f,s,(function(p){return l[p]}).bind(null,s));return f},u.n=function(l){var v=l&&l.__esModule?function(){return l.default}:function(){return l};return u.d(v,"a",v),v},u.o=function(l,v){return Object.prototype.hasOwnProperty.call(l,v)},u.p="",u(u.s=4)}([function(c,d,u){c.exports=u(2)()},function(c,d){c.exports=o},function(c,d,u){var l=u(3);function v(){}function f(){}f.resetWarningCache=v,c.exports=function(){function s(b,I,k,E,L,z){if(z!==l){var T=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw T.name="Invariant Violation",T}}function p(){return s}s.isRequired=s;var C={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:p,element:s,elementType:s,instanceOf:p,node:s,objectOf:p,oneOf:p,oneOfType:p,shape:p,exact:p,checkPropTypes:f,resetWarningCache:v};return C.PropTypes=C,C}},function(c,d,u){c.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(c,d,u){u.r(d);var l=u(1),v=u.n(l),f=u(0),s=u.n(f),p=function(y){return y!==0};function C(){return(C=Object.assign?Object.assign.bind():function(y){for(var R=1;R<arguments.length;R++){var M=arguments[R];for(var $ in M)Object.prototype.hasOwnProperty.call(M,$)&&(y[$]=M[$])}return y}).apply(this,arguments)}function b(y){return(b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(y)}function I(y,R){for(var M=0;M<R.length;M++){var $=R[M];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(y,$.key,$)}}function k(y,R){return(k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(M,$){return M.__proto__=$,M})(y,R)}function E(y){var R=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var M,$=T(y);if(R){var te=T(this).constructor;M=Reflect.construct($,arguments,te)}else M=$.apply(this,arguments);return L(this,M)}}function L(y,R){if(R&&(b(R)==="object"||typeof R=="function"))return R;if(R!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return z(y)}function z(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function T(y){return(T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)})(y)}function H(y,R,M){return R in y?Object.defineProperty(y,R,{value:M,enumerable:!0,configurable:!0,writable:!0}):y[R]=M,y}var P=function(y){(function(q,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(A&&A.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Object.defineProperty(q,"prototype",{writable:!1}),A&&k(q,A)})(te,y);var R,M,$=E(te);function te(q){var A;return function(J,re){if(!(J instanceof re))throw new TypeError("Cannot call a class as a function")}(this,te),H(z(A=$.call(this,q)),"continueOpenCollapsible",function(){var J=z(A).innerRef;A.setState({height:J.scrollHeight,transition:"height ".concat(A.props.transitionTime,"ms ").concat(A.props.easing),isClosed:!1,hasBeenOpened:!0,inTransition:p(J.scrollHeight),shouldOpenOnNextCycle:!1})}),H(z(A),"handleTriggerClick",function(J){A.props.triggerDisabled||A.state.inTransition||(J.preventDefault(),A.props.handleTriggerClick?A.props.handleTriggerClick(A.props.accordionPosition):A.state.isClosed===!0?(A.openCollapsible(),A.props.onOpening(),A.props.onTriggerOpening()):(A.closeCollapsible(),A.props.onClosing(),A.props.onTriggerClosing()))}),H(z(A),"handleTransitionEnd",function(J){J.target===A.innerRef&&(A.state.isClosed?(A.setState({inTransition:!1}),A.props.onClose()):(A.setState({height:"auto",overflow:A.props.overflowWhenOpen,inTransition:!1}),A.props.onOpen()))}),H(z(A),"setInnerRef",function(J){return A.innerRef=J}),A.timeout=void 0,A.contentId=q.contentElementId||"collapsible-content-".concat(Date.now()),A.triggerId=q.triggerElementProps.id||"collapsible-trigger-".concat(Date.now()),q.open?A.state={isClosed:!1,shouldSwitchAutoOnNextCycle:!1,height:"auto",transition:"none",hasBeenOpened:!0,overflow:q.overflowWhenOpen,inTransition:!1}:A.state={isClosed:!0,shouldSwitchAutoOnNextCycle:!1,height:0,transition:"height ".concat(q.transitionTime,"ms ").concat(q.easing),hasBeenOpened:!1,overflow:"hidden",inTransition:!1},A}return R=te,(M=[{key:"componentDidUpdate",value:function(q,A){var J=this;this.state.shouldOpenOnNextCycle&&this.continueOpenCollapsible(),A.height!=="auto"&&A.height!==0||this.state.shouldSwitchAutoOnNextCycle!==!0||(window.clearTimeout(this.timeout),this.timeout=window.setTimeout(function(){J.setState({height:0,overflow:"hidden",isClosed:!0,shouldSwitchAutoOnNextCycle:!1})},50)),q.open!==this.props.open&&(this.props.open===!0?(this.openCollapsible(),this.props.onOpening()):(this.closeCollapsible(),this.props.onClosing()))}},{key:"componentWillUnmount",value:function(){window.clearTimeout(this.timeout)}},{key:"closeCollapsible",value:function(){var q=this.innerRef;this.setState({shouldSwitchAutoOnNextCycle:!0,height:q.scrollHeight,transition:"height ".concat(this.props.transitionCloseTime?this.props.transitionCloseTime:this.props.transitionTime,"ms ").concat(this.props.easing),inTransition:p(q.scrollHeight)})}},{key:"openCollapsible",value:function(){this.setState({inTransition:p(this.innerRef.scrollHeight),shouldOpenOnNextCycle:!0})}},{key:"renderNonClickableTriggerElement",value:function(){var q=this.props,A=q.triggerSibling,J=q.classParentString;if(!A)return null;switch(b(A)){case"string":return v.a.createElement("span",{className:"".concat(J,"__trigger-sibling")},A);case"function":return A();case"object":return A;default:return null}}},{key:"render",value:function(){var q=this,A={height:this.state.height,WebkitTransition:this.state.transition,msTransition:this.state.transition,transition:this.state.transition,overflow:this.state.overflow},J=this.state.isClosed?"is-closed":"is-open",re=this.props.triggerDisabled?"is-disabled":"",le=this.state.isClosed===!1&&this.props.triggerWhenOpen!==void 0?this.props.triggerWhenOpen:this.props.trigger,ce=this.props.contentContainerTagName,ue=this.props.triggerTagName,ve=this.props.lazyRender&&!this.state.hasBeenOpened&&this.state.isClosed&&!this.state.inTransition?null:this.props.children,fe=this.props,X=fe.classParentString,de=fe.contentOuterClassName,pe=fe.contentInnerClassName,w="".concat(X,"__trigger ").concat(J," ").concat(re," ").concat(this.state.isClosed?this.props.triggerClassName:this.props.triggerOpenedClassName),D="".concat(X," ").concat(this.state.isClosed?this.props.className:this.props.openedClassName),Y="".concat(X,"__contentOuter ").concat(de),K="".concat(X,"__contentInner ").concat(pe);return v.a.createElement(ce,C({className:D.trim()},this.props.containerElementProps),v.a.createElement(ue,C({id:this.triggerId,className:w.trim(),onClick:this.handleTriggerClick,style:this.props.triggerStyle&&this.props.triggerStyle,onKeyPress:function(B){var i=B.key;(i===" "&&q.props.triggerTagName.toLowerCase()!=="button"||i==="Enter")&&q.handleTriggerClick(B)},tabIndex:this.props.tabIndex&&this.props.tabIndex,"aria-expanded":!this.state.isClosed,"aria-disabled":this.props.triggerDisabled,"aria-controls":this.contentId,role:"button"},this.props.triggerElementProps),le),this.renderNonClickableTriggerElement(),v.a.createElement("div",{id:this.contentId,className:Y.trim(),style:A,onTransitionEnd:this.handleTransitionEnd,ref:this.setInnerRef,hidden:this.props.contentHiddenWhenClosed&&this.state.isClosed&&!this.state.inTransition,role:"region","aria-labelledby":this.triggerId},v.a.createElement("div",{className:K.trim()},ve)))}}])&&I(R.prototype,M),Object.defineProperty(R,"prototype",{writable:!1}),te}(l.Component);P.propTypes={transitionTime:s.a.number,transitionCloseTime:s.a.number,triggerTagName:s.a.string,easing:s.a.string,open:s.a.bool,containerElementProps:s.a.object,triggerElementProps:s.a.object,contentElementId:s.a.string,classParentString:s.a.string,className:s.a.string,openedClassName:s.a.string,triggerStyle:s.a.object,triggerClassName:s.a.string,triggerOpenedClassName:s.a.string,contentOuterClassName:s.a.string,contentInnerClassName:s.a.string,accordionPosition:s.a.oneOfType([s.a.string,s.a.number]),handleTriggerClick:s.a.func,onOpen:s.a.func,onClose:s.a.func,onOpening:s.a.func,onClosing:s.a.func,onTriggerOpening:s.a.func,onTriggerClosing:s.a.func,trigger:s.a.oneOfType([s.a.string,s.a.element]),triggerWhenOpen:s.a.oneOfType([s.a.string,s.a.element]),triggerDisabled:s.a.bool,lazyRender:s.a.bool,overflowWhenOpen:s.a.oneOf(["hidden","visible","auto","scroll","inherit","initial","unset"]),contentHiddenWhenClosed:s.a.bool,triggerSibling:s.a.oneOfType([s.a.string,s.a.element,s.a.func]),tabIndex:s.a.number,contentContainerTagName:s.a.string,children:s.a.oneOfType([s.a.string,s.a.element])},P.defaultProps={transitionTime:400,transitionCloseTime:null,triggerTagName:"span",easing:"linear",open:!1,classParentString:"Collapsible",triggerDisabled:!1,lazyRender:!1,overflowWhenOpen:"hidden",contentHiddenWhenClosed:!1,openedClassName:"",triggerStyle:null,triggerClassName:"",triggerOpenedClassName:"",contentOuterClassName:"",contentInnerClassName:"",className:"",triggerSibling:null,onOpen:function(){},onClose:function(){},onOpening:function(){},onClosing:function(){},onTriggerOpening:function(){},onTriggerClosing:function(){},tabIndex:null,contentContainerTagName:"div",triggerElementProps:{}},d.default=P}])})})(_t);var un=_t.exports;const fn=jt(un);function dn(n){return ie({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c4.667 4.705 12.265 4.736 16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z"},child:[]}]})(n)}function At(n){return ie({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M527.9 224H480v-48c0-26.5-21.5-48-48-48H272l-64-64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h400c16.5 0 31.9-8.5 40.7-22.6l79.9-128c20-31.9-3-73.4-40.7-73.4zM48 118c0-3.3 2.7-6 6-6h134.1l64 64H426c3.3 0 6 2.7 6 6v42H152c-16.8 0-32.4 8.8-41.1 23.2L48 351.4zm400 282H72l77.2-128H528z"},child:[]}]})(n)}function Vt(n){return ie({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 128H272l-54.63-54.63c-6-6-14.14-9.37-22.63-9.37H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48zm0 272H48V112h140.12l54.63 54.63c6 6 14.14 9.37 22.63 9.37H464v224z"},child:[]}]})(n)}const zt=({folder:n,setCurrentPath:h,currentPath:o})=>{const[c,d]=V.useState(!1),[u,l]=V.useState(!1),v=`${n.path}/${n.name}`,f=()=>{l(!0),h(v)},s=p=>{p.stopPropagation(),d(C=>!C)};return V.useEffect(()=>{l(o===v);const p=o.split("/");p.pop(),p.join("/")===v&&d(!0)},[o]),n.subDirectories?r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:`sb-folders-list-item ${u?"active-list-item":""}`,onClick:f,children:[r.jsx("span",{onClick:s,children:r.jsx(tn,{size:20,className:`${c?"folder-rotate-down":"folder-rotate-right"}`})}),r.jsxs("div",{className:"sb-folder-details",children:[c||u?r.jsx(At,{size:20,className:"folder-open-icon"}):r.jsx(Vt,{size:17,className:"folder-close-icon"}),r.jsx("span",{className:"sb-folder-name",title:n.name,children:n.name})]})]}),r.jsx(fn,{open:c,children:r.jsx("div",{className:"folder-collapsible",children:n.subDirectories.map((p,C)=>r.jsx(zt,{folder:p,setCurrentPath:h,currentPath:o},C))})})]}):r.jsxs("div",{className:`sb-folders-list-item ${u?"active-list-item":""}`,onClick:f,children:[r.jsx("span",{className:"non-expanable"}),r.jsxs("div",{className:"sb-folder-details",children:[u?r.jsx(At,{size:20,className:"folder-open-icon"}):r.jsx(Vt,{size:17,className:"folder-close-icon"}),r.jsx("span",{className:"sb-folder-name",title:n.name,children:n.name})]})]})},pn=({files:n,currentPath:h,setCurrentPath:o})=>{const[c,d]=V.useState([]),u=(l,v)=>{var s;var f=l.path+"/"+l.name;return v[f]?(s=v[f])==null?void 0:s.map(p=>({...p,subDirectories:u(p,v)})):null};return V.useEffect(()=>{const l=n.filter(f=>f.isDirectory),v=Object.groupBy(l,({path:f})=>f);d(()=>{var f;return l.length>0?(f=v[""])==null?void 0:f.map(s=>({...s,subDirectories:u(s,v)})):[]})},[n]),r.jsx("div",{className:"sb-folders-list",children:(c==null?void 0:c.length)>0?r.jsx(r.Fragment,{children:c==null?void 0:c.map((l,v)=>r.jsx(zt,{folder:l,setCurrentPath:o,currentPath:h},v))}):r.jsx("div",{className:"empty-nav-pane",children:"Nothing here yet"})})},hn=({currentPath:n,setCurrentPath:h})=>{const[o,c]=V.useState([]);V.useEffect(()=>{c(n==null?void 0:n.split("/"))},[n]);const d=u=>{u<o.length-1&&h(()=>{const l=o.length-(u+1);return o.slice(0,-l).join("/")})};return r.jsx("div",{className:"breadcrumb",children:o.map((u,l)=>r.jsx("span",{className:"folder-name",onClick:()=>d(l),children:l===0?r.jsxs(r.Fragment,{children:[r.jsx(Qt,{})," Home"]}):r.jsxs(r.Fragment,{children:[r.jsx(an,{})," ",u]})},l))})};function vn(n){return ie({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z"},child:[]}]})(n)}const mn=({children:n,contextMenuRef:h,content:o,visible:c,setVisible:d})=>{const[u,l]=V.useState(0),[v,f]=V.useState(0),s=p=>{p.preventDefault(),d(!0);const C=p.clientX,b=p.clientY,I=window.innerWidth,k=window.innerHeight,E=112,L=82,z=I-C>E,T=!z,H=k-b>L,P=!H;z?l(`${C+5}px`):T&&l(`${C-E-5}px`),H?f(`${b+5}px`):P&&f(`${b-L-5}px`)};return r.jsxs("div",{onContextMenu:s,onClick:p=>d(!1),children:[n,c&&r.jsx("div",{ref:h,className:"fm-context-menu",style:{top:v,left:u},children:o})]})},gn=n=>{const h=V.useRef(null),o=c=>{var d;(d=h.current)!=null&&d.contains(c.target)||n()};return V.useEffect(()=>(document.addEventListener("mousedown",o,!0),()=>{document.removeEventListener("mousedown",o,!0)}),[]),h},Ht=n=>({pdf:r.jsx(sn,{size:n}),jpg:r.jsx(it,{size:n}),jpeg:r.jsx(it,{size:n}),png:r.jsx(it,{size:n}),txt:r.jsx(on,{size:n}),doc:r.jsx(Mt,{size:n}),docx:r.jsx(Mt,{size:n})}),yn=({file:n,index:h,selectedFileIndex:o,setSelectedFileIndex:c,setCurrentPath:d,isItemSelection:u,setIsItemSelection:l,setSelectedFile:v,currentPath:f,clipBoard:s,setClipBoard:p,handlePaste:C,files:b,triggerAction:I})=>{var ve,fe;const k=Ht(48),[E,L]=V.useState(!1),[z,T]=V.useState(!1),[H,P]=V.useState(0),[y,R]=V.useState(!1),M=(s==null?void 0:s.isMoving)&&s.files.find(X=>X.name===n.name&&X.path===n.path),$=gn(()=>{L(!1)}),te=(X,de)=>{X.stopPropagation(),p({files:[{...lt(n,b)}],isMoving:de}),L(!1)},q=X=>{if(X.stopPropagation(),s){const de=n.path+"/"+n.name,pe=s.files[0],w=b.filter(D=>{const Y=D.path===pe.path&&D.name===pe.name,K=D.path.startsWith(pe.path+"/"+pe.name);return Y||K});C(b,de,s,w),s.isMoving&&p(null),l(!1),v(null),L(!1)}},A=X=>{X.stopPropagation(),L(!1),I.show("rename")},J=X=>{X.stopPropagation(),L(!1),I.show("delete")},re=()=>{L(!1),n.isDirectory?(d(X=>X+"/"+n.name),c(null)):R(!0)},le=X=>{X.stopPropagation(),l(!0),v(n),c(h);const de=new Date().getTime();de-H<300&&(l(!1),re()),P(de)},ce=X=>{X.key==="Enter"&&re()};V.useEffect(()=>{T(o===h)},[o]),V.useEffect(()=>{o===h&&T(u)},[u]);const ue=r.jsx("div",{className:"file-context-menu-list",children:r.jsxs("ul",{children:[r.jsxs("li",{onClick:re,children:[n.isDirectory?r.jsx(vn,{size:20}):r.jsx(ot,{size:16}),r.jsx("span",{children:"Open"})]}),r.jsxs("li",{onClick:X=>te(X,!0),children:[r.jsx(Rt,{size:19}),r.jsx("span",{children:"Cut"})]}),r.jsxs("li",{onClick:X=>te(X,!1),children:[r.jsx(Pt,{strokeWidth:.1,size:17}),r.jsx("span",{children:"Copy"})]}),n.isDirectory?r.jsxs("li",{onClick:q,className:`${s?"":"disable-paste"}`,children:[r.jsx(st,{size:18}),r.jsx("span",{children:"Paste"})]}):r.jsx(r.Fragment,{}),r.jsxs("li",{onClick:A,children:[r.jsx(kt,{size:19}),r.jsx("span",{children:"Rename"})]}),r.jsxs("li",{onClick:J,children:[r.jsx(Nt,{size:19}),r.jsx("span",{children:"Delete"})]})]})});return r.jsx(r.Fragment,{children:r.jsx(mn,{contextMenuRef:$,visible:E,setVisible:L,content:ue,children:r.jsxs("div",{className:`file-item ${z?"background-secondary text-white":""} ${M?"file-moving":""}`,title:n.name,onClick:le,onKeyUp:ce,onContextMenu:()=>{l(!0),v(n),c(h)},tabIndex:0,children:[n.isDirectory?r.jsx(ln,{size:48}):r.jsx(r.Fragment,{children:k[(fe=(ve=n.name)==null?void 0:ve.split(".").pop())==null?void 0:fe.toLowerCase()]??r.jsx(ot,{size:48})}),r.jsx("span",{className:"text-truncate file-name",children:n.name})]})})})},bn=({currentPathFiles:n,setCurrentPath:h,isItemSelection:o,setIsItemSelection:c,setSelectedFile:d,currentPath:u,clipBoard:l,setClipBoard:v,handlePaste:f,files:s,triggerAction:p})=>{const[C,b]=V.useState(null);return V.useEffect(()=>{b(null),c(!1),d(null)},[u]),r.jsx("div",{className:"files",onClick:I=>{b(null),c(!1),d(null)},children:(n==null?void 0:n.length)>0?r.jsx(r.Fragment,{children:n.map((I,k)=>r.jsx(yn,{file:I,index:k,selectedFileIndex:C,setSelectedFileIndex:b,setCurrentPath:h,isItemSelection:o,setIsItemSelection:c,setSelectedFile:d,currentPath:u,clipBoard:l,setClipBoard:v,handlePaste:f,files:s,triggerAction:p},k))}):r.jsx("div",{className:"empty-folder",children:"This folder is empty."})})},xn=()=>{const[n,h]=V.useState(!1),[o,c]=V.useState(null);return{isActive:n,actionType:o,show:l=>{h(!0),c(l)},close:()=>{h(!1),c(null)}}},jn=({children:n,show:h,setShow:o,heading:c,dialogWidth:d="25%",contentClassName:u=""})=>{const l=V.useRef(null);return V.useEffect(()=>{h?l.current.showModal():l.current.close()},[h]),r.jsxs("dialog",{ref:l,className:"fm-modal dialog",style:{width:d},children:[r.jsxs("div",{className:"fm-modal-header",children:[r.jsx("span",{className:"fm-modal-heading",children:c}),r.jsx(nn,{size:18,onClick:()=>o(!1),className:"close-icon",title:"Close"})]}),n]})},Pe=({onClick:n,type:h="primary",padding:o="0.4rem 0.8rem",children:c})=>r.jsx("button",{onClick:n,className:`fm-button fm-button-${h}`,style:{padding:o},children:c}),wn=({files:n,currentPath:h,currentPathFiles:o,handleCreateFolder:c,triggerAction:d})=>{const[u,l]=V.useState("New Folder"),[v,f]=V.useState(!1),[s,p]=V.useState(""),C=E=>{l(E.target.value),f(!1)},b=E=>{/[\\/:*?"<>|]/.test(E.key)?(E.preventDefault(),p(`A file name can't contain any of the following characters: \\ / : * ? " < > |`),f(!0)):f(!1)},I=()=>{const E=u.trim();E===""?(p("Folder name cannot be empty."),f(!0)):o.find(z=>z.name.toLowerCase()===E.toLowerCase())?(p(`A folder with the name "${E}" already exits.`),f(!0)):(c(n,E,h),d.close())},k=V.useRef(null);return V.useEffect(()=>{k.current.focus(),k.current.select()},[]),r.jsxs("div",{className:"fm-create-folder-container",children:[r.jsxs("div",{className:"fm-create-folder-input",children:[r.jsx("input",{ref:k,type:"text",value:u,onChange:C,onKeyDown:b,className:"action-input"}),v&&r.jsx("div",{className:"folder-error",children:s})]}),r.jsx("div",{className:"fm-create-folder-action",children:r.jsx(Pe,{onClick:I,type:"primary",children:"Create"})})]})};function Cn(n){return ie({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M85.57 446.25h340.86a32 32 0 0 0 28.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0 0 28.17 47.17z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m250.26 195.39 5.74 122 5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 5.95z"},child:[]},{tag:"path",attr:{d:"M256 397.25a20 20 0 1 1 20-20 20 20 0 0 1-20 20z"},child:[]}]})(n)}const On=({files:n,selectedFile:h,currentPathFiles:o,handleRename:c,triggerAction:d,setSelectedFile:u})=>{const[l,v]=V.useState(h==null?void 0:h.name),f=V.useRef(null),[s,p]=V.useState(!1),[C,b]=V.useState(!1),[I,k]=V.useState("");V.useEffect(()=>{var z,T,H;if(h)if((z=f==null?void 0:f.current)==null||z.focus(),h.isDirectory)(T=f==null?void 0:f.current)==null||T.select();else{const P=h.name.split(".").pop(),y=h.name.length-P.length-1;(H=f==null?void 0:f.current)==null||H.setSelectionRange(0,y)}else p(!1)},[]);const E=z=>{/[\\/:*?"<>|]/.test(z.key)?(z.preventDefault(),k(`A file name can't contain any of the following characters: \\ / : * ? " < > |`),b(!0)):b(!1)},L=(z,T)=>{if(l===""){b(!0),k(`${h.isDirectory?"Folder":"File"} name is required!`);return}else if(l===h.name){d.close();return}else if(o.some(H=>H.name===l)){b(!0),k("A file or folder with the same name already exists!");return}else if(!h.isDirectory&&!T){const H=h.name.split(".").pop(),P=l.split(".").pop();if(H!==P){p(!0);return}}c(n,h,l),u(H=>({...H,name:l})),d.close()};return r.jsx(r.Fragment,{children:s?r.jsxs("div",{className:"fm-rename-folder-container",children:[r.jsx("div",{className:"fm-rename-folder-input",children:r.jsxs("div",{className:"fm-rename-warning",children:[r.jsx(Cn,{size:70,color:"orange"}),r.jsx("div",{children:"If you change a file name extension, the file might become unusable. Are you sure you want to change it?"})]})}),r.jsxs("div",{className:"fm-rename-folder-action",children:[r.jsx(Pe,{type:"secondary",onClick:()=>p(!1),children:"No"}),r.jsx(Pe,{type:"danger",onClick:z=>L(z,!0),children:"Yes"})]})]}):r.jsxs("div",{className:"fm-rename-folder-container",children:[r.jsxs("div",{className:"fm-rename-folder-input",children:[r.jsx("input",{ref:f,type:"text",value:l,onChange:z=>{v(z.target.value),b(!1)},onKeyDown:E,className:"action-input"}),C&&r.jsx("div",{className:"folder-error",children:I})]}),r.jsx("div",{className:"fm-rename-folder-action",children:r.jsx(Pe,{onClick:L,type:"primary",children:"Save"})})]})})},En=({files:n,selectedFile:h,triggerAction:o,handleDelete:c,setIsItemSelection:d,setSelectedFile:u})=>{const l=v=>{c(n,v),d(!1),u(null),o.close()};return r.jsxs("div",{className:"file-delete-confirm",children:[r.jsxs("p",{className:"file-delete-confirm-text",children:['Are you sure you want to delete "',h==null?void 0:h.name,'"?']}),r.jsxs("div",{className:"file-delete-confirm-actions",children:[r.jsx(Pe,{type:"secondary",onClick:()=>o.close(),children:"Cancel"}),r.jsx(Pe,{type:"danger",onClick:()=>l(h),children:"Delete"})]})]})};function Tn(n){return ie({tag:"svg",attr:{viewBox:"0 0 1024 1024",fill:"currentColor",fillRule:"evenodd"},child:[{tag:"path",attr:{d:"M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926 224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512 166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z"},child:[]}]})(n)}function Sn(n){return ie({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M518.3 459a8 8 0 0 0-12.6 0l-112 141.7a7.98 7.98 0 0 0 6.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"},child:[]},{tag:"path",attr:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"},child:[]}]})(n)}const Pn=({percent:n=0,isCanceled:h=!1,isCompleted:o=!1})=>r.jsxs("div",{role:"progressbar",className:"fm-progress",children:[r.jsx("div",{className:"fm-progress-bar",children:r.jsx("div",{className:"fm-progress-bar-fill",style:{width:`${n}%`}})}),h?r.jsx("span",{className:"fm-upload-canceled",children:"Canceled"}):r.jsx("div",{className:"fm-progress-status",children:r.jsx("span",{children:o?"Completed":n+"% done"})})]}),Rn=n=>n.split(".").pop(),Nn=n=>{const h=n/1024,o=h/1024,c=o/1024;if(h<1024)return`${h.toFixed(2)} KB`;if(o<1024)return`${o.toFixed(2)} MB`;if(o>=1024)return`${c.toFixed(2)} GB`};function kn(n){return ie({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 388c-72.597 0-132-59.405-132-132 0-72.601 59.403-132 132-132 36.3 0 69.299 15.4 92.406 39.601L278 234h154V80l-51.698 51.702C348.406 99.798 304.406 80 256 80c-96.797 0-176 79.203-176 176s78.094 176 176 176c81.045 0 148.287-54.134 169.401-128H378.85c-18.745 49.561-67.138 84-122.85 84z"},child:[]}]})(n)}const Mn=({index:n,file:h,setIsUploading:o,fileUploadConfig:c})=>{const[d,u]=V.useState(0),[l,v]=V.useState(!1),[f,s]=V.useState(!1),p=Ht(33),C=V.useRef(),b=E=>new Promise((L,z)=>{const T=new XMLHttpRequest;C.current=T,o(y=>({...y,[n]:!0})),T.upload.onprogress=y=>{if(y.lengthComputable){const R=Math.round(y.loaded/y.total*100);u(R)}},T.onload=()=>{o(y=>({...y,[n]:!1})),T.status===200?(v(!0),L(T.response)):z(T.statusText)},T.onerror=()=>z(T.statusText),T.open("POST",c==null?void 0:c.url,!0);const H=c==null?void 0:c.headers;for(let y in H)T.setRequestHeader(y,H[y]);const P=new FormData;P.append("file",E),T.send(P)});V.useEffect(()=>{C.current||b(h)},[]);const I=()=>{C.current&&(C.current.abort(),o(E=>({...E,[n]:!1})),s(!0),u(0))},k=()=>{h&&(b(h),s(!1))};return r.jsxs("li",{children:[r.jsx("div",{className:"file-icon",children:p[Rn(h.name)]??r.jsx(ot,{size:33})}),r.jsxs("div",{className:"file",children:[r.jsxs("div",{className:"file-details",children:[r.jsxs("div",{className:"file-info",children:[r.jsx("span",{className:"file-name text-truncate",title:h.name,children:h.name}),r.jsx("span",{className:"file-size",children:Nn(h.size)})]}),l?r.jsx(dn,{color:"#5c5bb1",title:"Uploaded"}):f?r.jsx(kn,{className:"retry-upload",title:"Retry",onClick:k}):r.jsx("div",{className:"rm-file",title:"Abort",onClick:I,children:r.jsx(Tn,{})})]}),r.jsx(Pn,{percent:d,isCanceled:f,isCompleted:l})]})]})};var Dt={exports:{}};(function(n,h){(function(c,d){n.exports=d()})(typeof self<"u"?self:xt,function(){return function(o){var c={};function d(u){if(c[u])return c[u].exports;var l=c[u]={i:u,l:!1,exports:{}};return o[u].call(l.exports,l,l.exports,d),l.l=!0,l.exports}return d.m=o,d.c=c,d.d=function(u,l,v){d.o(u,l)||Object.defineProperty(u,l,{configurable:!1,enumerable:!0,get:v})},d.n=function(u){var l=u&&u.__esModule?function(){return u.default}:function(){return u};return d.d(l,"a",l),l},d.o=function(u,l){return Object.prototype.hasOwnProperty.call(u,l)},d.p="/",d(d.s=7)}([function(o,c,d){var u=function(f){};process.env.NODE_ENV!=="production"&&(u=function(f){if(f===void 0)throw new Error("invariant requires an error message argument")});function l(v,f,s,p,C,b,I,k){if(u(f),!v){var E;if(f===void 0)E=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var L=[s,p,C,b,I,k],z=0;E=new Error(f.replace(/%s/g,function(){return L[z++]})),E.name="Invariant Violation"}throw E.framesToPop=1,E}}o.exports=l},function(o,c,d){function u(v){return function(){return v}}var l=function(){};l.thatReturns=u,l.thatReturnsFalse=u(!1),l.thatReturnsTrue=u(!0),l.thatReturnsNull=u(null),l.thatReturnsThis=function(){return this},l.thatReturnsArgument=function(v){return v},o.exports=l},function(o,c,d){/*
30
+ <%s key={someKey} {...props} />`,ye,J,be,J),et[J+ye]=!0}}return t===c?Qe(S):yt(S),S}}function tt(t,x,A){return Be(t,x,A,!0)}function nt(t,x,A){return Be(t,x,A,!1)}var bt=nt,rt=tt;Fe.Fragment=c,Fe.jsx=bt,Fe.jsxs=rt}()),Fe}process.env.NODE_ENV==="production"?at.exports=$t():at.exports=Wt();var r=at.exports,Ot={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Et=D.createContext&&D.createContext(Ot),Ut=["attr","size","title"];function Bt(n,p){if(n==null)return{};var o=Yt(n,p),c,d;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);for(d=0;d<u.length;d++)c=u[d],!(p.indexOf(c)>=0)&&Object.prototype.propertyIsEnumerable.call(n,c)&&(o[c]=n[c])}return o}function Yt(n,p){if(n==null)return{};var o={};for(var c in n)if(Object.prototype.hasOwnProperty.call(n,c)){if(p.indexOf(c)>=0)continue;o[c]=n[c]}return o}function Ye(){return Ye=Object.assign?Object.assign.bind():function(n){for(var p=1;p<arguments.length;p++){var o=arguments[p];for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(n[c]=o[c])}return n},Ye.apply(this,arguments)}function Tt(n,p){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(n);p&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(n,d).enumerable})),o.push.apply(o,c)}return o}function Ke(n){for(var p=1;p<arguments.length;p++){var o=arguments[p]!=null?arguments[p]:{};p%2?Tt(Object(o),!0).forEach(function(c){Kt(n,c,o[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):Tt(Object(o)).forEach(function(c){Object.defineProperty(n,c,Object.getOwnPropertyDescriptor(o,c))})}return n}function Kt(n,p,o){return p=qt(p),p in n?Object.defineProperty(n,p,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[p]=o,n}function qt(n){var p=Gt(n,"string");return typeof p=="symbol"?p:p+""}function Gt(n,p){if(typeof n!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var c=o.call(n,p||"default");if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(p==="string"?String:Number)(n)}function St(n){return n&&n.map((p,o)=>D.createElement(p.tag,Ke({key:o},p.attr),St(p.child)))}function oe(n){return p=>D.createElement(Jt,Ye({attr:Ke({},n.attr)},p),St(n.child))}function Jt(n){var p=o=>{var{attr:c,size:d,title:u}=n,l=Bt(n,Ut),v=d||o.size||"1em",f;return o.className&&(f=o.className),n.className&&(f=(f?f+" ":"")+n.className),D.createElement("svg",Ye({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},o.attr,c,l,{className:f,style:Ke(Ke({color:n.color||o.color},o.style),n.style),height:v,width:v,xmlns:"http://www.w3.org/2000/svg"}),u&&D.createElement("title",null,u),n.children)};return Et!==void 0?D.createElement(Et.Consumer,null,o=>p(o)):p(Ot)}function Pt(n){return oe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z"},child:[]}]})(n)}function Xt(n){return oe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"m.5 3 .04.87a2 2 0 0 0-.342 1.311l.637 7A2 2 0 0 0 2.826 14H9v-1H2.826a1 1 0 0 1-.995-.91l-.637-7A1 1 0 0 1 2.19 4h11.62a1 1 0 0 1 .996 1.09L14.54 8h1.005l.256-2.819A2 2 0 0 0 13.81 3H9.828a2 2 0 0 1-1.414-.586l-.828-.828A2 2 0 0 0 6.172 1H2.5a2 2 0 0 0-2 2m5.672-1a1 1 0 0 1 .707.293L7.586 3H2.19q-.362.002-.683.12L1.5 2.98a1 1 0 0 1 1-.98z"},child:[]},{tag:"path",attr:{d:"M13.5 9a.5.5 0 0 1 .5.5V11h1.5a.5.5 0 1 1 0 1H14v1.5a.5.5 0 1 1-1 0V12h-1.5a.5.5 0 0 1 0-1H13V9.5a.5.5 0 0 1 .5-.5"},child:[]}]})(n)}function Rt(n){return oe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M3.5 3.5c-.614-.884-.074-1.962.858-2.5L8 7.226 11.642 1c.932.538 1.472 1.616.858 2.5L8.81 8.61l1.556 2.661a2.5 2.5 0 1 1-.794.637L8 9.73l-1.572 2.177a2.5 2.5 0 1 1-.794-.637L7.19 8.61zm2.5 10a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0m7 0a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0"},child:[]}]})(n)}function Zt(n){return oe({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"23 4 23 10 17 10"},child:[]},{tag:"polyline",attr:{points:"1 20 1 14 7 14"},child:[]},{tag:"path",attr:{d:"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"},child:[]}]})(n)}function Qt(n){return oe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"},child:[]}]})(n)}function en(n){return oe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(n)}function tn(n){return oe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"},child:[]}]})(n)}function nn(n){return oe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(n)}function kt(n){return oe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"},child:[]}]})(n)}function rn(n){return oe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z"},child:[]}]})(n)}function an(n){return oe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M10.02 6 8.61 7.41 13.19 12l-4.58 4.59L10.02 18l6-6-6-6z"},child:[]}]})(n)}function Nt(n){return oe({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20.005 5.995h-1v2h1v8h-1v2h1c1.103 0 2-.897 2-2v-8c0-1.102-.898-2-2-2zm-14 4H15v4H6.005z"},child:[]},{tag:"path",attr:{d:"M17.005 17.995V4H20V2h-8v2h3.005v1.995h-11c-1.103 0-2 .897-2 2v8c0 1.103.897 2 2 2h11V20H12v2h8v-2h-2.995v-2.005zm-13-2v-8h11v8h-11z"},child:[]}]})(n)}function it(n){return oe({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M64 464c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm96 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm69.2 46.9c-3-4.3-7.9-6.9-13.2-6.9s-10.2 2.6-13.2 6.9l-41.3 59.7-11.9-19.1c-2.9-4.7-8.1-7.5-13.6-7.5s-10.6 2.8-13.6 7.5l-40 64c-3.1 4.9-3.2 11.1-.4 16.2s8.2 8.2 14 8.2h48 32 40 72c6 0 11.4-3.3 14.2-8.6s2.4-11.6-1-16.5l-72-104z"},child:[]}]})(n)}function on(n){return oe({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M64 464c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm56 256c-13.3 0-24 10.7-24 24s10.7 24 24 24H264c13.3 0 24-10.7 24-24s-10.7-24-24-24H120zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24H264c13.3 0 24-10.7 24-24s-10.7-24-24-24H120z"},child:[]}]})(n)}function sn(n){return oe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 464l48 0 0 48-48 0c-35.3 0-64-28.7-64-64L0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 304l-48 0 0-144-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16zM176 352l32 0c30.9 0 56 25.1 56 56s-25.1 56-56 56l-16 0 0 32c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-48 0-80c0-8.8 7.2-16 16-16zm32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0 0 48 16 0zm96-80l32 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-32 0c-8.8 0-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zm32 128c8.8 0 16-7.2 16-16l0-64c0-8.8-7.2-16-16-16l-16 0 0 96 16 0zm80-112c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 32 32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 48c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-64 0-64z"},child:[]}]})(n)}function Mt(n){return oe({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M48 448V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm55 241.1c-3.8-12.7-17.2-19.9-29.9-16.1s-19.9 17.2-16.1 29.9l48 160c3 10.2 12.4 17.1 23 17.1s19.9-7 23-17.1l25-83.4 25 83.4c3 10.2 12.4 17.1 23 17.1s19.9-7 23-17.1l48-160c3.8-12.7-3.4-26.1-16.1-29.9s-26.1 3.4-29.9 16.1l-25 83.4-25-83.4c-3-10.2-12.4-17.1-23-17.1s-19.9 7-23 17.1l-25 83.4-25-83.4z"},child:[]}]})(n)}function ot(n){return oe({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M320 464c8.8 0 16-7.2 16-16V160H256c-17.7 0-32-14.3-32-32V48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16H320zM0 64C0 28.7 28.7 0 64 0H229.5c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64z"},child:[]}]})(n)}function ln(n){return oe({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M384 480h48c11.4 0 21.9-6 27.6-15.9l112-192c5.8-9.9 5.8-22.1 .1-32.1S555.5 224 544 224H144c-11.4 0-21.9 6-27.6 15.9L48 357.1V96c0-8.8 7.2-16 16-16H181.5c4.2 0 8.3 1.7 11.3 4.7l26.5 26.5c21 21 49.5 32.8 79.2 32.8H416c8.8 0 16 7.2 16 16v32h48V160c0-35.3-28.7-64-64-64H298.5c-17 0-33.3-6.7-45.3-18.7L226.7 50.7c-12-12-28.3-18.7-45.3-18.7H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H87.7 384z"},child:[]}]})(n)}function st(n){return oe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M104.6 48H64C28.7 48 0 76.7 0 112V384c0 35.3 28.7 64 64 64h96V400H64c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H80c0 17.7 14.3 32 32 32h72.4C202 108.4 227.6 96 256 96h62c-7.1-27.6-32.2-48-62-48H215.4C211.6 20.9 188.2 0 160 0s-51.6 20.9-55.4 48zM144 56a16 16 0 1 1 32 0 16 16 0 1 1 -32 0zM448 464H256c-8.8 0-16-7.2-16-16V192c0-8.8 7.2-16 16-16l140.1 0L464 243.9V448c0 8.8-7.2 16-16 16zM256 512H448c35.3 0 64-28.7 64-64V243.9c0-12.7-5.1-24.9-14.1-33.9l-67.9-67.9c-9-9-21.2-14.1-33.9-14.1H256c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64z"},child:[]}]})(n)}const lt=(n,p)=>{const o=p.filter(c=>c.path===n.path+"/"+n.name);return{...n,children:o.map(c=>lt(c,p))}},cn=({allowCreateFolder:n=!0,allowUploadFile:p=!0,handleRefresh:o,isItemSelection:c,setIsItemSelection:d,currentPath:u,selectedFile:l,setSelectedFile:v,files:f,clipBoard:s,setClipBoard:h,handlePaste:N,triggerAction:j})=>{const[_,V]=D.useState([{icon:r.jsx(Xt,{size:17,strokeWidth:.3}),text:"New Folder",permission:n,onClick:()=>j.show("createFolder")},{icon:r.jsx(rn,{size:18}),text:"Upload File",permission:p,onClick:()=>j.show("uploadFile")},{icon:r.jsx(st,{size:18}),text:"Paste",permission:!1,onClick:()=>{}}]),C=[{icon:r.jsx(Zt,{size:16}),title:"Refresh",onClick:o}],E=(z,I,P)=>{const b=P.files[0];z.filter($=>{const ee=$.path===b.path&&$.name===b.name,W=$.path.startsWith(b.path+"/"+b.name);return ee||W});const k=z.find($=>$.path===I),T=P.isMoving?"move":"copy";N(b,k,T),P.isMoving&&h(null),d(!1),v(null)};D.useEffect(()=>{V(z=>z.map(I=>I.text==="Paste"?{...I,permission:!!s,onClick:()=>E(f,u,s)}:I))},[s,u,f]);const M=z=>{h({files:[{...lt(l,f)}],isMoving:z})};if(c){const z=l.path;return r.jsx("div",{className:"toolbar file-selected",children:r.jsxs("div",{className:"file-action-container",children:[r.jsxs("div",{children:[r.jsxs("button",{className:"item-action file-action",onClick:()=>M(!0),children:[r.jsx(Rt,{size:18}),r.jsx("span",{children:"Cut"})]}),r.jsxs("button",{className:"item-action file-action",onClick:()=>M(!1),children:[r.jsx(Pt,{strokeWidth:.1,size:17}),r.jsx("span",{children:"Copy"})]}),l.isDirectory?r.jsxs("button",{className:"item-action file-action",onClick:()=>E(f,z,s),disabled:!s,children:[r.jsx(st,{size:18}),r.jsx("span",{children:"Paste"})]}):r.jsx(r.Fragment,{}),r.jsxs("button",{className:"item-action file-action",onClick:()=>j.show("rename"),children:[r.jsx(Nt,{size:19}),r.jsx("span",{children:"Rename"})]}),r.jsxs("button",{className:"item-action file-action",onClick:()=>j.show("delete"),children:[r.jsx(kt,{size:19}),r.jsx("span",{children:"Delete"})]})]}),r.jsxs("button",{className:"item-action file-action",onClick:()=>d(!1),children:[r.jsx(en,{size:18}),r.jsx("span",{children:"Clear Selection"})]})]})})}return r.jsx("div",{className:"toolbar",children:r.jsxs("div",{className:"fm-toolbar",children:[r.jsx("div",{children:_.filter(z=>z.permission).map((z,I)=>r.jsxs("button",{className:"item-action",onClick:z.onClick,children:[z.icon,r.jsx("span",{children:z.text})]},I))}),r.jsx("div",{children:C.map((z,I)=>r.jsxs("div",{className:"toolbar-left-items",children:[r.jsx("div",{className:"item-action icon-only",title:z.title,role:"button",onClick:z.onClick,children:z.icon}),I!==C.length-1&&r.jsx("div",{className:"item-separator"})]},I))})]})})};var _t={exports:{}};(function(n,p){(function(o,c){n.exports=c(D)})(xt,function(o){return function(c){var d={};function u(l){if(d[l])return d[l].exports;var v=d[l]={i:l,l:!1,exports:{}};return c[l].call(v.exports,v,v.exports,u),v.l=!0,v.exports}return u.m=c,u.c=d,u.d=function(l,v,f){u.o(l,v)||Object.defineProperty(l,v,{enumerable:!0,get:f})},u.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})},u.t=function(l,v){if(1&v&&(l=u(l)),8&v||4&v&&typeof l=="object"&&l&&l.__esModule)return l;var f=Object.create(null);if(u.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:l}),2&v&&typeof l!="string")for(var s in l)u.d(f,s,(function(h){return l[h]}).bind(null,s));return f},u.n=function(l){var v=l&&l.__esModule?function(){return l.default}:function(){return l};return u.d(v,"a",v),v},u.o=function(l,v){return Object.prototype.hasOwnProperty.call(l,v)},u.p="",u(u.s=4)}([function(c,d,u){c.exports=u(2)()},function(c,d){c.exports=o},function(c,d,u){var l=u(3);function v(){}function f(){}f.resetWarningCache=v,c.exports=function(){function s(j,_,V,C,E,M){if(M!==l){var z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw z.name="Invariant Violation",z}}function h(){return s}s.isRequired=s;var N={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:h,element:s,elementType:s,instanceOf:h,node:s,objectOf:h,oneOf:h,oneOfType:h,shape:h,exact:h,checkPropTypes:f,resetWarningCache:v};return N.PropTypes=N,N}},function(c,d,u){c.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(c,d,u){u.r(d);var l=u(1),v=u.n(l),f=u(0),s=u.n(f),h=function(b){return b!==0};function N(){return(N=Object.assign?Object.assign.bind():function(b){for(var k=1;k<arguments.length;k++){var T=arguments[k];for(var $ in T)Object.prototype.hasOwnProperty.call(T,$)&&(b[$]=T[$])}return b}).apply(this,arguments)}function j(b){return(j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(b)}function _(b,k){for(var T=0;T<k.length;T++){var $=k[T];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(b,$.key,$)}}function V(b,k){return(V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,$){return T.__proto__=$,T})(b,k)}function C(b){var k=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var T,$=z(b);if(k){var ee=z(this).constructor;T=Reflect.construct($,arguments,ee)}else T=$.apply(this,arguments);return E(this,T)}}function E(b,k){if(k&&(j(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return M(b)}function M(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function z(b){return(z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(k){return k.__proto__||Object.getPrototypeOf(k)})(b)}function I(b,k,T){return k in b?Object.defineProperty(b,k,{value:T,enumerable:!0,configurable:!0,writable:!0}):b[k]=T,b}var P=function(b){(function(W,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function");W.prototype=Object.create(O&&O.prototype,{constructor:{value:W,writable:!0,configurable:!0}}),Object.defineProperty(W,"prototype",{writable:!1}),O&&V(W,O)})(ee,b);var k,T,$=C(ee);function ee(W){var O;return function(X,re){if(!(X instanceof re))throw new TypeError("Cannot call a class as a function")}(this,ee),I(M(O=$.call(this,W)),"continueOpenCollapsible",function(){var X=M(O).innerRef;O.setState({height:X.scrollHeight,transition:"height ".concat(O.props.transitionTime,"ms ").concat(O.props.easing),isClosed:!1,hasBeenOpened:!0,inTransition:h(X.scrollHeight),shouldOpenOnNextCycle:!1})}),I(M(O),"handleTriggerClick",function(X){O.props.triggerDisabled||O.state.inTransition||(X.preventDefault(),O.props.handleTriggerClick?O.props.handleTriggerClick(O.props.accordionPosition):O.state.isClosed===!0?(O.openCollapsible(),O.props.onOpening(),O.props.onTriggerOpening()):(O.closeCollapsible(),O.props.onClosing(),O.props.onTriggerClosing()))}),I(M(O),"handleTransitionEnd",function(X){X.target===O.innerRef&&(O.state.isClosed?(O.setState({inTransition:!1}),O.props.onClose()):(O.setState({height:"auto",overflow:O.props.overflowWhenOpen,inTransition:!1}),O.props.onOpen()))}),I(M(O),"setInnerRef",function(X){return O.innerRef=X}),O.timeout=void 0,O.contentId=W.contentElementId||"collapsible-content-".concat(Date.now()),O.triggerId=W.triggerElementProps.id||"collapsible-trigger-".concat(Date.now()),W.open?O.state={isClosed:!1,shouldSwitchAutoOnNextCycle:!1,height:"auto",transition:"none",hasBeenOpened:!0,overflow:W.overflowWhenOpen,inTransition:!1}:O.state={isClosed:!0,shouldSwitchAutoOnNextCycle:!1,height:0,transition:"height ".concat(W.transitionTime,"ms ").concat(W.easing),hasBeenOpened:!1,overflow:"hidden",inTransition:!1},O}return k=ee,(T=[{key:"componentDidUpdate",value:function(W,O){var X=this;this.state.shouldOpenOnNextCycle&&this.continueOpenCollapsible(),O.height!=="auto"&&O.height!==0||this.state.shouldSwitchAutoOnNextCycle!==!0||(window.clearTimeout(this.timeout),this.timeout=window.setTimeout(function(){X.setState({height:0,overflow:"hidden",isClosed:!0,shouldSwitchAutoOnNextCycle:!1})},50)),W.open!==this.props.open&&(this.props.open===!0?(this.openCollapsible(),this.props.onOpening()):(this.closeCollapsible(),this.props.onClosing()))}},{key:"componentWillUnmount",value:function(){window.clearTimeout(this.timeout)}},{key:"closeCollapsible",value:function(){var W=this.innerRef;this.setState({shouldSwitchAutoOnNextCycle:!0,height:W.scrollHeight,transition:"height ".concat(this.props.transitionCloseTime?this.props.transitionCloseTime:this.props.transitionTime,"ms ").concat(this.props.easing),inTransition:h(W.scrollHeight)})}},{key:"openCollapsible",value:function(){this.setState({inTransition:h(this.innerRef.scrollHeight),shouldOpenOnNextCycle:!0})}},{key:"renderNonClickableTriggerElement",value:function(){var W=this.props,O=W.triggerSibling,X=W.classParentString;if(!O)return null;switch(j(O)){case"string":return v.a.createElement("span",{className:"".concat(X,"__trigger-sibling")},O);case"function":return O();case"object":return O;default:return null}}},{key:"render",value:function(){var W=this,O={height:this.state.height,WebkitTransition:this.state.transition,msTransition:this.state.transition,transition:this.state.transition,overflow:this.state.overflow},X=this.state.isClosed?"is-closed":"is-open",re=this.props.triggerDisabled?"is-disabled":"",ue=this.state.isClosed===!1&&this.props.triggerWhenOpen!==void 0?this.props.triggerWhenOpen:this.props.trigger,fe=this.props.contentContainerTagName,ne=this.props.triggerTagName,he=this.props.lazyRender&&!this.state.hasBeenOpened&&this.state.isClosed&&!this.state.inTransition?null:this.props.children,ce=this.props,q=ce.classParentString,de=ce.contentOuterClassName,pe=ce.contentInnerClassName,w="".concat(q,"__trigger ").concat(X," ").concat(re," ").concat(this.state.isClosed?this.props.triggerClassName:this.props.triggerOpenedClassName),L="".concat(q," ").concat(this.state.isClosed?this.props.className:this.props.openedClassName),U="".concat(q,"__contentOuter ").concat(de),G="".concat(q,"__contentInner ").concat(pe);return v.a.createElement(fe,N({className:L.trim()},this.props.containerElementProps),v.a.createElement(ne,N({id:this.triggerId,className:w.trim(),onClick:this.handleTriggerClick,style:this.props.triggerStyle&&this.props.triggerStyle,onKeyPress:function(Y){var i=Y.key;(i===" "&&W.props.triggerTagName.toLowerCase()!=="button"||i==="Enter")&&W.handleTriggerClick(Y)},tabIndex:this.props.tabIndex&&this.props.tabIndex,"aria-expanded":!this.state.isClosed,"aria-disabled":this.props.triggerDisabled,"aria-controls":this.contentId,role:"button"},this.props.triggerElementProps),ue),this.renderNonClickableTriggerElement(),v.a.createElement("div",{id:this.contentId,className:U.trim(),style:O,onTransitionEnd:this.handleTransitionEnd,ref:this.setInnerRef,hidden:this.props.contentHiddenWhenClosed&&this.state.isClosed&&!this.state.inTransition,role:"region","aria-labelledby":this.triggerId},v.a.createElement("div",{className:G.trim()},he)))}}])&&_(k.prototype,T),Object.defineProperty(k,"prototype",{writable:!1}),ee}(l.Component);P.propTypes={transitionTime:s.a.number,transitionCloseTime:s.a.number,triggerTagName:s.a.string,easing:s.a.string,open:s.a.bool,containerElementProps:s.a.object,triggerElementProps:s.a.object,contentElementId:s.a.string,classParentString:s.a.string,className:s.a.string,openedClassName:s.a.string,triggerStyle:s.a.object,triggerClassName:s.a.string,triggerOpenedClassName:s.a.string,contentOuterClassName:s.a.string,contentInnerClassName:s.a.string,accordionPosition:s.a.oneOfType([s.a.string,s.a.number]),handleTriggerClick:s.a.func,onOpen:s.a.func,onClose:s.a.func,onOpening:s.a.func,onClosing:s.a.func,onTriggerOpening:s.a.func,onTriggerClosing:s.a.func,trigger:s.a.oneOfType([s.a.string,s.a.element]),triggerWhenOpen:s.a.oneOfType([s.a.string,s.a.element]),triggerDisabled:s.a.bool,lazyRender:s.a.bool,overflowWhenOpen:s.a.oneOf(["hidden","visible","auto","scroll","inherit","initial","unset"]),contentHiddenWhenClosed:s.a.bool,triggerSibling:s.a.oneOfType([s.a.string,s.a.element,s.a.func]),tabIndex:s.a.number,contentContainerTagName:s.a.string,children:s.a.oneOfType([s.a.string,s.a.element])},P.defaultProps={transitionTime:400,transitionCloseTime:null,triggerTagName:"span",easing:"linear",open:!1,classParentString:"Collapsible",triggerDisabled:!1,lazyRender:!1,overflowWhenOpen:"hidden",contentHiddenWhenClosed:!1,openedClassName:"",triggerStyle:null,triggerClassName:"",triggerOpenedClassName:"",contentOuterClassName:"",contentInnerClassName:"",className:"",triggerSibling:null,onOpen:function(){},onClose:function(){},onOpening:function(){},onClosing:function(){},onTriggerOpening:function(){},onTriggerClosing:function(){},tabIndex:null,contentContainerTagName:"div",triggerElementProps:{}},d.default=P}])})})(_t);var un=_t.exports;const fn=jt(un);function dn(n){return oe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c4.667 4.705 12.265 4.736 16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z"},child:[]}]})(n)}function At(n){return oe({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M527.9 224H480v-48c0-26.5-21.5-48-48-48H272l-64-64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h400c16.5 0 31.9-8.5 40.7-22.6l79.9-128c20-31.9-3-73.4-40.7-73.4zM48 118c0-3.3 2.7-6 6-6h134.1l64 64H426c3.3 0 6 2.7 6 6v42H152c-16.8 0-32.4 8.8-41.1 23.2L48 351.4zm400 282H72l77.2-128H528z"},child:[]}]})(n)}function Vt(n){return oe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 128H272l-54.63-54.63c-6-6-14.14-9.37-22.63-9.37H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48zm0 272H48V112h140.12l54.63 54.63c6 6 14.14 9.37 22.63 9.37H464v224z"},child:[]}]})(n)}const zt=({folder:n,setCurrentPath:p,currentPath:o})=>{const[c,d]=D.useState(!1),[u,l]=D.useState(!1),v=`${n.path}/${n.name}`,f=()=>{l(!0),p(v)},s=h=>{h.stopPropagation(),d(N=>!N)};return D.useEffect(()=>{l(o===v);const h=o.split("/");h.pop(),h.join("/")===v&&d(!0)},[o]),n.subDirectories?r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:`sb-folders-list-item ${u?"active-list-item":""}`,onClick:f,children:[r.jsx("span",{onClick:s,children:r.jsx(tn,{size:20,className:`${c?"folder-rotate-down":"folder-rotate-right"}`})}),r.jsxs("div",{className:"sb-folder-details",children:[c||u?r.jsx(At,{size:20,className:"folder-open-icon"}):r.jsx(Vt,{size:17,className:"folder-close-icon"}),r.jsx("span",{className:"sb-folder-name",title:n.name,children:n.name})]})]}),r.jsx(fn,{open:c,children:r.jsx("div",{className:"folder-collapsible",children:n.subDirectories.map((h,N)=>r.jsx(zt,{folder:h,setCurrentPath:p,currentPath:o},N))})})]}):r.jsxs("div",{className:`sb-folders-list-item ${u?"active-list-item":""}`,onClick:f,children:[r.jsx("span",{className:"non-expanable"}),r.jsxs("div",{className:"sb-folder-details",children:[u?r.jsx(At,{size:20,className:"folder-open-icon"}):r.jsx(Vt,{size:17,className:"folder-close-icon"}),r.jsx("span",{className:"sb-folder-name",title:n.name,children:n.name})]})]})},pn=({files:n,currentPath:p,setCurrentPath:o})=>{const[c,d]=D.useState([]),u=(l,v)=>{var s;var f=l.path+"/"+l.name;return v[f]?(s=v[f])==null?void 0:s.map(h=>({...h,subDirectories:u(h,v)})):null};return D.useEffect(()=>{const l=n.filter(f=>f.isDirectory).map(f=>({...f,path:f.path.split("/").slice(0,-1).join("/")})),v=Object.groupBy(l,({path:f})=>f);d(()=>{var f;return l.length>0?(f=v[""])==null?void 0:f.map(s=>({...s,subDirectories:u(s,v)})):[]})},[n]),r.jsx("div",{className:"sb-folders-list",children:(c==null?void 0:c.length)>0?r.jsx(r.Fragment,{children:c==null?void 0:c.map((l,v)=>r.jsx(zt,{folder:l,setCurrentPath:o,currentPath:p},v))}):r.jsx("div",{className:"empty-nav-pane",children:"Nothing here yet"})})},hn=({currentPath:n,setCurrentPath:p})=>{const[o,c]=D.useState([]);D.useEffect(()=>{c(n==null?void 0:n.split("/"))},[n]);const d=u=>{u<o.length-1&&p(()=>{const l=o.length-(u+1);return o.slice(0,-l).join("/")})};return r.jsx("div",{className:"breadcrumb",children:o.map((u,l)=>r.jsx("span",{className:"folder-name",onClick:()=>d(l),children:l===0?r.jsxs(r.Fragment,{children:[r.jsx(Qt,{})," Home"]}):r.jsxs(r.Fragment,{children:[r.jsx(an,{})," ",u]})},l))})};function vn(n){return oe({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z"},child:[]}]})(n)}const mn=({children:n,contextMenuRef:p,content:o,visible:c,setVisible:d})=>{const[u,l]=D.useState(0),[v,f]=D.useState(0),s=h=>{h.preventDefault(),d(!0);const N=h.clientX,j=h.clientY,_=window.innerWidth,V=window.innerHeight,C=112,E=82,M=_-N>C,z=!M,I=V-j>E,P=!I;M?l(`${N+5}px`):z&&l(`${N-C-5}px`),I?f(`${j+5}px`):P&&f(`${j-E-5}px`)};return r.jsxs("div",{onContextMenu:s,onClick:h=>d(!1),children:[n,c&&r.jsx("div",{ref:p,className:"fm-context-menu",style:{top:v,left:u},children:o})]})},gn=n=>{const p=D.useRef(null),o=c=>{var d;(d=p.current)!=null&&d.contains(c.target)||n()};return D.useEffect(()=>(document.addEventListener("mousedown",o,!0),()=>{document.removeEventListener("mousedown",o,!0)}),[]),p},Ht=n=>({pdf:r.jsx(sn,{size:n}),jpg:r.jsx(it,{size:n}),jpeg:r.jsx(it,{size:n}),png:r.jsx(it,{size:n}),txt:r.jsx(on,{size:n}),doc:r.jsx(Mt,{size:n}),docx:r.jsx(Mt,{size:n})}),yn=({file:n,index:p,selectedFileIndex:o,setSelectedFileIndex:c,setCurrentPath:d,isItemSelection:u,setIsItemSelection:l,setSelectedFile:v,currentPath:f,clipBoard:s,setClipBoard:h,handlePaste:N,files:j,triggerAction:_})=>{var he,ce;const V=Ht(48),[C,E]=D.useState(!1),[M,z]=D.useState(!1),[I,P]=D.useState(0),[b,k]=D.useState(!1),T=(s==null?void 0:s.isMoving)&&s.files.find(q=>q.name===n.name&&q.path===n.path),$=gn(()=>{E(!1)}),ee=(q,de)=>{q.stopPropagation(),h({files:[{...lt(n,j)}],isMoving:de}),E(!1)},W=q=>{if(q.stopPropagation(),s){const de=n.path,pe=s.files[0];j.filter(U=>{const G=U.path===pe.path&&U.name===pe.name,Y=U.path.startsWith(pe.path+"/"+pe.name);return G||Y});const w=j.find(U=>U.path===de),L=s.isMoving?"move":"copy";N(pe,w,L),s.isMoving&&h(null),l(!1),v(null),E(!1)}},O=q=>{q.stopPropagation(),E(!1),_.show("rename")},X=q=>{q.stopPropagation(),E(!1),_.show("delete")},re=()=>{E(!1),n.isDirectory?(d(q=>q+"/"+n.name),c(null)):k(!0)},ue=q=>{q.stopPropagation(),l(!0),v(n),c(p);const de=new Date().getTime();de-I<300&&(l(!1),re()),P(de)},fe=q=>{q.key==="Enter"&&re()};D.useEffect(()=>{z(o===p)},[o]),D.useEffect(()=>{o===p&&z(u)},[u]);const ne=r.jsx("div",{className:"file-context-menu-list",children:r.jsxs("ul",{children:[r.jsxs("li",{onClick:re,children:[n.isDirectory?r.jsx(vn,{size:20}):r.jsx(ot,{size:16}),r.jsx("span",{children:"Open"})]}),r.jsxs("li",{onClick:q=>ee(q,!0),children:[r.jsx(Rt,{size:19}),r.jsx("span",{children:"Cut"})]}),r.jsxs("li",{onClick:q=>ee(q,!1),children:[r.jsx(Pt,{strokeWidth:.1,size:17}),r.jsx("span",{children:"Copy"})]}),n.isDirectory?r.jsxs("li",{onClick:W,className:`${s?"":"disable-paste"}`,children:[r.jsx(st,{size:18}),r.jsx("span",{children:"Paste"})]}):r.jsx(r.Fragment,{}),r.jsxs("li",{onClick:O,children:[r.jsx(Nt,{size:19}),r.jsx("span",{children:"Rename"})]}),r.jsxs("li",{onClick:X,children:[r.jsx(kt,{size:19}),r.jsx("span",{children:"Delete"})]})]})});return r.jsx(r.Fragment,{children:r.jsx(mn,{contextMenuRef:$,visible:C,setVisible:E,content:ne,children:r.jsxs("div",{className:`file-item ${M?"background-secondary text-white":""} ${T?"file-moving":""}`,title:n.name,onClick:ue,onKeyUp:fe,onContextMenu:()=>{l(!0),v(n),c(p)},tabIndex:0,children:[n.isDirectory?r.jsx(ln,{size:48}):r.jsx(r.Fragment,{children:V[(ce=(he=n.name)==null?void 0:he.split(".").pop())==null?void 0:ce.toLowerCase()]??r.jsx(ot,{size:48})}),r.jsx("span",{className:"text-truncate file-name",children:n.name})]})})})},bn=({currentPathFiles:n,setCurrentPath:p,isItemSelection:o,setIsItemSelection:c,setSelectedFile:d,currentPath:u,clipBoard:l,setClipBoard:v,handlePaste:f,files:s,triggerAction:h})=>{const[N,j]=D.useState(null);return D.useEffect(()=>{j(null),c(!1),d(null)},[u]),r.jsx("div",{className:"files",onClick:_=>{j(null),c(!1),d(null)},children:(n==null?void 0:n.length)>0?r.jsx(r.Fragment,{children:n.map((_,V)=>r.jsx(yn,{file:_,index:V,selectedFileIndex:N,setSelectedFileIndex:j,setCurrentPath:p,isItemSelection:o,setIsItemSelection:c,setSelectedFile:d,currentPath:u,clipBoard:l,setClipBoard:v,handlePaste:f,files:s,triggerAction:h},V))}):r.jsx("div",{className:"empty-folder",children:"This folder is empty."})})},xn=()=>{const[n,p]=D.useState(!1),[o,c]=D.useState(null);return{isActive:n,actionType:o,show:l=>{p(!0),c(l)},close:()=>{p(!1),c(null)}}},jn=({children:n,show:p,setShow:o,heading:c,dialogWidth:d="25%",contentClassName:u=""})=>{const l=D.useRef(null);return D.useEffect(()=>{p?l.current.showModal():l.current.close()},[p]),r.jsxs("dialog",{ref:l,className:"fm-modal dialog",style:{width:d},children:[r.jsxs("div",{className:"fm-modal-header",children:[r.jsx("span",{className:"fm-modal-heading",children:c}),r.jsx(nn,{size:18,onClick:()=>o(!1),className:"close-icon",title:"Close"})]}),n]})},Pe=({onClick:n,type:p="primary",padding:o="0.4rem 0.8rem",children:c})=>r.jsx("button",{onClick:n,className:`fm-button fm-button-${p}`,style:{padding:o},children:c}),wn=({files:n,currentPath:p,currentPathFiles:o,handleCreateFolder:c,currentFolder:d,triggerAction:u})=>{const[l,v]=D.useState("New Folder"),[f,s]=D.useState(!1),[h,N]=D.useState(""),j=E=>{v(E.target.value),s(!1)},_=E=>{/[\\/:*?"<>|]/.test(E.key)?(E.preventDefault(),N(`A file name can't contain any of the following characters: \\ / : * ? " < > |`),s(!0)):s(!1)},V=()=>{const E=l.trim();E===""?(N("Folder name cannot be empty."),s(!0)):o.find(z=>z.name.toLowerCase()===E.toLowerCase())?(N(`A folder with the name "${E}" already exits.`),s(!0)):(c(E,d),u.close())},C=D.useRef(null);return D.useEffect(()=>{C.current.focus(),C.current.select()},[]),r.jsxs("div",{className:"fm-create-folder-container",children:[r.jsxs("div",{className:"fm-create-folder-input",children:[r.jsx("input",{ref:C,type:"text",value:l,onChange:j,onKeyDown:_,className:"action-input"}),f&&r.jsx("div",{className:"folder-error",children:h})]}),r.jsx("div",{className:"fm-create-folder-action",children:r.jsx(Pe,{onClick:V,type:"primary",children:"Create"})})]})};function Cn(n){return oe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M85.57 446.25h340.86a32 32 0 0 0 28.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0 0 28.17 47.17z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m250.26 195.39 5.74 122 5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 5.95z"},child:[]},{tag:"path",attr:{d:"M256 397.25a20 20 0 1 1 20-20 20 20 0 0 1-20 20z"},child:[]}]})(n)}const On=({files:n,selectedFile:p,currentPathFiles:o,handleRename:c,triggerAction:d,setSelectedFile:u})=>{const[l,v]=D.useState(p==null?void 0:p.name),f=D.useRef(null),[s,h]=D.useState(!1),[N,j]=D.useState(!1),[_,V]=D.useState("");D.useEffect(()=>{var M,z,I;if(p)if((M=f==null?void 0:f.current)==null||M.focus(),p.isDirectory)(z=f==null?void 0:f.current)==null||z.select();else{const P=p.name.split(".").pop(),b=p.name.length-P.length-1;(I=f==null?void 0:f.current)==null||I.setSelectionRange(0,b)}else h(!1)},[]);const C=M=>{/[\\/:*?"<>|]/.test(M.key)?(M.preventDefault(),V(`A file name can't contain any of the following characters: \\ / : * ? " < > |`),j(!0)):j(!1)},E=(M,z)=>{if(l===""){j(!0),V(`${p.isDirectory?"Folder":"File"} name is required!`);return}else if(l===p.name){d.close();return}else if(o.some(I=>I.name===l)){j(!0),V("A file or folder with the same name already exists!");return}else if(!p.isDirectory&&!z){const I=p.name.split(".").pop(),P=l.split(".").pop();if(I!==P){h(!0);return}}c(p,l),u(I=>({...I,name:l})),d.close()};return r.jsx(r.Fragment,{children:s?r.jsxs("div",{className:"fm-rename-folder-container",children:[r.jsx("div",{className:"fm-rename-folder-input",children:r.jsxs("div",{className:"fm-rename-warning",children:[r.jsx(Cn,{size:70,color:"orange"}),r.jsx("div",{children:"If you change a file name extension, the file might become unusable. Are you sure you want to change it?"})]})}),r.jsxs("div",{className:"fm-rename-folder-action",children:[r.jsx(Pe,{type:"secondary",onClick:()=>h(!1),children:"No"}),r.jsx(Pe,{type:"danger",onClick:M=>E(M,!0),children:"Yes"})]})]}):r.jsxs("div",{className:"fm-rename-folder-container",children:[r.jsxs("div",{className:"fm-rename-folder-input",children:[r.jsx("input",{ref:f,type:"text",value:l,onChange:M=>{v(M.target.value),j(!1)},onKeyDown:C,className:"action-input"}),N&&r.jsx("div",{className:"folder-error",children:_})]}),r.jsx("div",{className:"fm-rename-folder-action",children:r.jsx(Pe,{onClick:E,type:"primary",children:"Save"})})]})})},En=({files:n,selectedFile:p,triggerAction:o,handleDelete:c,setIsItemSelection:d,setSelectedFile:u})=>{const l=v=>{c(v),d(!1),u(null),o.close()};return r.jsxs("div",{className:"file-delete-confirm",children:[r.jsxs("p",{className:"file-delete-confirm-text",children:['Are you sure you want to delete "',p==null?void 0:p.name,'"?']}),r.jsxs("div",{className:"file-delete-confirm-actions",children:[r.jsx(Pe,{type:"secondary",onClick:()=>o.close(),children:"Cancel"}),r.jsx(Pe,{type:"danger",onClick:()=>l(p),children:"Delete"})]})]})};function Tn(n){return oe({tag:"svg",attr:{viewBox:"0 0 1024 1024",fill:"currentColor",fillRule:"evenodd"},child:[{tag:"path",attr:{d:"M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926 224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512 166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z"},child:[]}]})(n)}function Sn(n){return oe({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M518.3 459a8 8 0 0 0-12.6 0l-112 141.7a7.98 7.98 0 0 0 6.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"},child:[]},{tag:"path",attr:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"},child:[]}]})(n)}const Pn=({percent:n=0,isCanceled:p=!1,isCompleted:o=!1})=>r.jsxs("div",{role:"progressbar",className:"fm-progress",children:[r.jsx("div",{className:"fm-progress-bar",children:r.jsx("div",{className:"fm-progress-bar-fill",style:{width:`${n}%`}})}),p?r.jsx("span",{className:"fm-upload-canceled",children:"Canceled"}):r.jsx("div",{className:"fm-progress-status",children:r.jsx("span",{children:o?"Completed":n+"% done"})})]}),Rn=n=>n.split(".").pop(),kn=n=>{const p=n/1024,o=p/1024,c=o/1024;if(p<1024)return`${p.toFixed(2)} KB`;if(o<1024)return`${o.toFixed(2)} MB`;if(o>=1024)return`${c.toFixed(2)} GB`};function Nn(n){return oe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 388c-72.597 0-132-59.405-132-132 0-72.601 59.403-132 132-132 36.3 0 69.299 15.4 92.406 39.601L278 234h154V80l-51.698 51.702C348.406 99.798 304.406 80 256 80c-96.797 0-176 79.203-176 176s78.094 176 176 176c81.045 0 148.287-54.134 169.401-128H378.85c-18.745 49.561-67.138 84-122.85 84z"},child:[]}]})(n)}const Mn=({index:n,fileData:p,setIsUploading:o,fileUploadConfig:c,handleFileUploaded:d})=>{var E,M,z,I;const[u,l]=D.useState(0),[v,f]=D.useState(!1),[s,h]=D.useState(!1),N=Ht(33),j=D.useRef(),_=P=>new Promise((b,k)=>{const T=new XMLHttpRequest;j.current=T,o(O=>({...O,[n]:!0})),T.upload.onprogress=O=>{if(O.lengthComputable){const X=Math.round(O.loaded/O.total*100);l(X)}},T.onload=()=>{o(O=>({...O,[n]:!1})),T.status===200||T.status===201?(f(!0),d(T.response),b(T.response)):k(T.statusText)},T.onerror=()=>k(T.statusText),T.open("POST",c==null?void 0:c.url,!0);const $=c==null?void 0:c.headers;for(let O in $)T.setRequestHeader(O,$[O]);const ee=new FormData,W=P==null?void 0:P.appendData;for(let O in W)W[O]&&ee.append(O,W[O]);ee.append("file",P.file),T.send(ee)});D.useEffect(()=>{j.current||_(p)},[]);const V=()=>{j.current&&(j.current.abort(),o(P=>({...P,[n]:!1})),h(!0),l(0))},C=()=>{p!=null&&p.file&&(_(p),h(!1))};return r.jsxs("li",{children:[r.jsx("div",{className:"file-icon",children:N[Rn((E=p.file)==null?void 0:E.name)]??r.jsx(ot,{size:33})}),r.jsxs("div",{className:"file",children:[r.jsxs("div",{className:"file-details",children:[r.jsxs("div",{className:"file-info",children:[r.jsx("span",{className:"file-name text-truncate",title:(M=p.file)==null?void 0:M.name,children:(z=p.file)==null?void 0:z.name}),r.jsx("span",{className:"file-size",children:kn((I=p.file)==null?void 0:I.size)})]}),v?r.jsx(dn,{color:"#5c5bb1",title:"Uploaded"}):s?r.jsx(Nn,{className:"retry-upload",title:"Retry",onClick:C}):r.jsx("div",{className:"rm-file",title:"Abort",onClick:V,children:r.jsx(Tn,{})})]}),r.jsx(Pn,{percent:u,isCanceled:s,isCompleted:v})]})]})};var Dt={exports:{}};(function(n,p){(function(c,d){n.exports=d()})(typeof self<"u"?self:xt,function(){return function(o){var c={};function d(u){if(c[u])return c[u].exports;var l=c[u]={i:u,l:!1,exports:{}};return o[u].call(l.exports,l,l.exports,d),l.l=!0,l.exports}return d.m=o,d.c=c,d.d=function(u,l,v){d.o(u,l)||Object.defineProperty(u,l,{configurable:!1,enumerable:!0,get:v})},d.n=function(u){var l=u&&u.__esModule?function(){return u.default}:function(){return u};return d.d(l,"a",l),l},d.o=function(u,l){return Object.prototype.hasOwnProperty.call(u,l)},d.p="/",d(d.s=7)}([function(o,c,d){var u=function(f){};process.env.NODE_ENV!=="production"&&(u=function(f){if(f===void 0)throw new Error("invariant requires an error message argument")});function l(v,f,s,h,N,j,_,V){if(u(f),!v){var C;if(f===void 0)C=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var E=[s,h,N,j,_,V],M=0;C=new Error(f.replace(/%s/g,function(){return E[M++]})),C.name="Invariant Violation"}throw C.framesToPop=1,C}}o.exports=l},function(o,c,d){function u(v){return function(){return v}}var l=function(){};l.thatReturns=u,l.thatReturnsFalse=u(!1),l.thatReturnsTrue=u(!0),l.thatReturnsNull=u(null),l.thatReturnsThis=function(){return this},l.thatReturnsArgument=function(v){return v},o.exports=l},function(o,c,d){/*
31
31
  object-assign
32
32
  (c) Sindre Sorhus
33
33
  @license MIT
34
- */var u=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;function f(p){if(p==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(p)}function s(){try{if(!Object.assign)return!1;var p=new String("abc");if(p[5]="de",Object.getOwnPropertyNames(p)[0]==="5")return!1;for(var C={},b=0;b<10;b++)C["_"+String.fromCharCode(b)]=b;var I=Object.getOwnPropertyNames(C).map(function(E){return C[E]});if(I.join("")!=="0123456789")return!1;var k={};return"abcdefghijklmnopqrst".split("").forEach(function(E){k[E]=E}),Object.keys(Object.assign({},k)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}o.exports=s()?Object.assign:function(p,C){for(var b,I=f(p),k,E=1;E<arguments.length;E++){b=Object(arguments[E]);for(var L in b)l.call(b,L)&&(I[L]=b[L]);if(u){k=u(b);for(var z=0;z<k.length;z++)v.call(b,k[z])&&(I[k[z]]=b[k[z]])}}return I}},function(o,c,d){var u=d(1),l=u;if(process.env.NODE_ENV!=="production"){var v=function(s){for(var p=arguments.length,C=Array(p>1?p-1:0),b=1;b<p;b++)C[b-1]=arguments[b];var I=0,k="Warning: "+s.replace(/%s/g,function(){return C[I++]});typeof console<"u"&&console.error(k);try{throw new Error(k)}catch{}};l=function(s,p){if(p===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(p.indexOf("Failed Composite propType: ")!==0&&!s){for(var C=arguments.length,b=Array(C>2?C-2:0),I=2;I<C;I++)b[I-2]=arguments[I];v.apply(void 0,[p].concat(b))}}}o.exports=l},function(o,c,d){var u="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";o.exports=u},function(o,c,d){var u={};process.env.NODE_ENV!=="production"&&Object.freeze(u),o.exports=u},function(o,c,d){if(process.env.NODE_ENV!=="production")var u=d(0),l=d(3),v=d(4),f={};function s(p,C,b,I,k){if(process.env.NODE_ENV!=="production"){for(var E in p)if(p.hasOwnProperty(E)){var L;try{u(typeof p[E]=="function","%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",I||"React class",b,E,typeof p[E]),L=p[E](C,E,I,b,null,v)}catch(T){L=T}if(l(!L||L instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",I||"React class",b,E,typeof L),L instanceof Error&&!(L.message in f)){f[L.message]=!0;var z=k?k():"";l(!1,"Failed %s type: %s%s",b,L.message,z??"")}}}}o.exports=s},function(o,c,d){Object.defineProperty(c,"__esModule",{value:!0});var u=Object.assign||function(P){for(var y=1;y<arguments.length;y++){var R=arguments[y];for(var M in R)Object.prototype.hasOwnProperty.call(R,M)&&(P[M]=R[M])}return P},l=function(){function P(y,R){for(var M=0;M<R.length;M++){var $=R[M];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(y,$.key,$)}}return function(y,R,M){return R&&P(y.prototype,R),M&&P(y,M),y}}(),v=d(8),f=k(v),s=d(11),p=k(s),C=d(14),b=I(C);function I(P){if(P&&P.__esModule)return P;var y={};if(P!=null)for(var R in P)Object.prototype.hasOwnProperty.call(P,R)&&(y[R]=P[R]);return y.default=P,y}function k(P){return P&&P.__esModule?P:{default:P}}function E(P,y){var R={};for(var M in P)y.indexOf(M)>=0||Object.prototype.hasOwnProperty.call(P,M)&&(R[M]=P[M]);return R}function L(P,y){if(!(P instanceof y))throw new TypeError("Cannot call a class as a function")}function z(P,y){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:P}function T(P,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);P.prototype=Object.create(y&&y.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(P,y):P.__proto__=y)}var H=function(P){T(y,P);function y(){var R,M,$,te;L(this,y);for(var q=arguments.length,A=Array(q),J=0;J<q;J++)A[J]=arguments[J];return te=(M=($=z(this,(R=y.__proto__||Object.getPrototypeOf(y)).call.apply(R,[this].concat(A))),$),$.state={delayed:$.props.delay>0},M),z($,te)}return l(y,[{key:"componentDidMount",value:function(){var M=this,$=this.props.delay,te=this.state.delayed;te&&(this.timeout=setTimeout(function(){M.setState({delayed:!1})},$))}},{key:"componentWillUnmount",value:function(){var M=this.timeout;M&&clearTimeout(M)}},{key:"render",value:function(){var M=this.props,$=M.color;M.delay;var te=M.type,q=M.height,A=M.width,J=E(M,["color","delay","type","height","width"]),re=this.state.delayed?"blank":te,le=b[re],ce={fill:$,height:q,width:A};return f.default.createElement("div",u({style:ce,dangerouslySetInnerHTML:{__html:le}},J))}}]),y}(v.Component);H.propTypes={color:p.default.string,delay:p.default.number,type:p.default.string,height:p.default.oneOfType([p.default.string,p.default.number]),width:p.default.oneOfType([p.default.string,p.default.number])},H.defaultProps={color:"#fff",delay:0,type:"balls",height:64,width:64},c.default=H},function(o,c,d){process.env.NODE_ENV==="production"?o.exports=d(9):o.exports=d(10)},function(o,c,d){/** @license React v16.3.2
34
+ */var u=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;function f(h){if(h==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(h)}function s(){try{if(!Object.assign)return!1;var h=new String("abc");if(h[5]="de",Object.getOwnPropertyNames(h)[0]==="5")return!1;for(var N={},j=0;j<10;j++)N["_"+String.fromCharCode(j)]=j;var _=Object.getOwnPropertyNames(N).map(function(C){return N[C]});if(_.join("")!=="0123456789")return!1;var V={};return"abcdefghijklmnopqrst".split("").forEach(function(C){V[C]=C}),Object.keys(Object.assign({},V)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}o.exports=s()?Object.assign:function(h,N){for(var j,_=f(h),V,C=1;C<arguments.length;C++){j=Object(arguments[C]);for(var E in j)l.call(j,E)&&(_[E]=j[E]);if(u){V=u(j);for(var M=0;M<V.length;M++)v.call(j,V[M])&&(_[V[M]]=j[V[M]])}}return _}},function(o,c,d){var u=d(1),l=u;if(process.env.NODE_ENV!=="production"){var v=function(s){for(var h=arguments.length,N=Array(h>1?h-1:0),j=1;j<h;j++)N[j-1]=arguments[j];var _=0,V="Warning: "+s.replace(/%s/g,function(){return N[_++]});typeof console<"u"&&console.error(V);try{throw new Error(V)}catch{}};l=function(s,h){if(h===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(h.indexOf("Failed Composite propType: ")!==0&&!s){for(var N=arguments.length,j=Array(N>2?N-2:0),_=2;_<N;_++)j[_-2]=arguments[_];v.apply(void 0,[h].concat(j))}}}o.exports=l},function(o,c,d){var u="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";o.exports=u},function(o,c,d){var u={};process.env.NODE_ENV!=="production"&&Object.freeze(u),o.exports=u},function(o,c,d){if(process.env.NODE_ENV!=="production")var u=d(0),l=d(3),v=d(4),f={};function s(h,N,j,_,V){if(process.env.NODE_ENV!=="production"){for(var C in h)if(h.hasOwnProperty(C)){var E;try{u(typeof h[C]=="function","%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",_||"React class",j,C,typeof h[C]),E=h[C](N,C,_,j,null,v)}catch(z){E=z}if(l(!E||E instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",_||"React class",j,C,typeof E),E instanceof Error&&!(E.message in f)){f[E.message]=!0;var M=V?V():"";l(!1,"Failed %s type: %s%s",j,E.message,M??"")}}}}o.exports=s},function(o,c,d){Object.defineProperty(c,"__esModule",{value:!0});var u=Object.assign||function(P){for(var b=1;b<arguments.length;b++){var k=arguments[b];for(var T in k)Object.prototype.hasOwnProperty.call(k,T)&&(P[T]=k[T])}return P},l=function(){function P(b,k){for(var T=0;T<k.length;T++){var $=k[T];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(b,$.key,$)}}return function(b,k,T){return k&&P(b.prototype,k),T&&P(b,T),b}}(),v=d(8),f=V(v),s=d(11),h=V(s),N=d(14),j=_(N);function _(P){if(P&&P.__esModule)return P;var b={};if(P!=null)for(var k in P)Object.prototype.hasOwnProperty.call(P,k)&&(b[k]=P[k]);return b.default=P,b}function V(P){return P&&P.__esModule?P:{default:P}}function C(P,b){var k={};for(var T in P)b.indexOf(T)>=0||Object.prototype.hasOwnProperty.call(P,T)&&(k[T]=P[T]);return k}function E(P,b){if(!(P instanceof b))throw new TypeError("Cannot call a class as a function")}function M(P,b){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:P}function z(P,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);P.prototype=Object.create(b&&b.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(P,b):P.__proto__=b)}var I=function(P){z(b,P);function b(){var k,T,$,ee;E(this,b);for(var W=arguments.length,O=Array(W),X=0;X<W;X++)O[X]=arguments[X];return ee=(T=($=M(this,(k=b.__proto__||Object.getPrototypeOf(b)).call.apply(k,[this].concat(O))),$),$.state={delayed:$.props.delay>0},T),M($,ee)}return l(b,[{key:"componentDidMount",value:function(){var T=this,$=this.props.delay,ee=this.state.delayed;ee&&(this.timeout=setTimeout(function(){T.setState({delayed:!1})},$))}},{key:"componentWillUnmount",value:function(){var T=this.timeout;T&&clearTimeout(T)}},{key:"render",value:function(){var T=this.props,$=T.color;T.delay;var ee=T.type,W=T.height,O=T.width,X=C(T,["color","delay","type","height","width"]),re=this.state.delayed?"blank":ee,ue=j[re],fe={fill:$,height:W,width:O};return f.default.createElement("div",u({style:fe,dangerouslySetInnerHTML:{__html:ue}},X))}}]),b}(v.Component);I.propTypes={color:h.default.string,delay:h.default.number,type:h.default.string,height:h.default.oneOfType([h.default.string,h.default.number]),width:h.default.oneOfType([h.default.string,h.default.number])},I.defaultProps={color:"#fff",delay:0,type:"balls",height:64,width:64},c.default=I},function(o,c,d){process.env.NODE_ENV==="production"?o.exports=d(9):o.exports=d(10)},function(o,c,d){/** @license React v16.3.2
35
35
  * react.production.min.js
36
36
  *
37
37
  * Copyright (c) 2013-present, Facebook, Inc.
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var u=d(2),l=d(0),v=d(5),f=d(1),s=typeof Symbol=="function"&&Symbol.for,p=s?Symbol.for("react.element"):60103,C=s?Symbol.for("react.portal"):60106,b=s?Symbol.for("react.fragment"):60107,I=s?Symbol.for("react.strict_mode"):60108,k=s?Symbol.for("react.provider"):60109,E=s?Symbol.for("react.context"):60110,L=s?Symbol.for("react.async_mode"):60111,z=s?Symbol.for("react.forward_ref"):60112,T=typeof Symbol=="function"&&Symbol.iterator;function H(i){for(var m=arguments.length-1,_="http://reactjs.org/docs/error-decoder.html?invariant="+i,S=0;S<m;S++)_+="&args[]="+encodeURIComponent(arguments[S+1]);l(!1,"Minified React error #"+i+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",_)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function y(i,m,_){this.props=i,this.context=m,this.refs=v,this.updater=_||P}y.prototype.isReactComponent={},y.prototype.setState=function(i,m){typeof i!="object"&&typeof i!="function"&&i!=null&&H("85"),this.updater.enqueueSetState(this,i,m,"setState")},y.prototype.forceUpdate=function(i){this.updater.enqueueForceUpdate(this,i,"forceUpdate")};function R(){}R.prototype=y.prototype;function M(i,m,_){this.props=i,this.context=m,this.refs=v,this.updater=_||P}var $=M.prototype=new R;$.constructor=M,u($,y.prototype),$.isPureReactComponent=!0;var te={current:null},q=Object.prototype.hasOwnProperty,A={key:!0,ref:!0,__self:!0,__source:!0};function J(i,m,_){var S=void 0,F={},U=null,se=null;if(m!=null)for(S in m.ref!==void 0&&(se=m.ref),m.key!==void 0&&(U=""+m.key),m)q.call(m,S)&&!A.hasOwnProperty(S)&&(F[S]=m[S]);var ne=arguments.length-2;if(ne===1)F.children=_;else if(1<ne){for(var me=Array(ne),he=0;he<ne;he++)me[he]=arguments[he+2];F.children=me}if(i&&i.defaultProps)for(S in ne=i.defaultProps,ne)F[S]===void 0&&(F[S]=ne[S]);return{$$typeof:p,type:i,key:U,ref:se,props:F,_owner:te.current}}function re(i){return typeof i=="object"&&i!==null&&i.$$typeof===p}function le(i){var m={"=":"=0",":":"=2"};return"$"+(""+i).replace(/[=:]/g,function(_){return m[_]})}var ce=/\/+/g,ue=[];function ve(i,m,_,S){if(ue.length){var F=ue.pop();return F.result=i,F.keyPrefix=m,F.func=_,F.context=S,F.count=0,F}return{result:i,keyPrefix:m,func:_,context:S,count:0}}function fe(i){i.result=null,i.keyPrefix=null,i.func=null,i.context=null,i.count=0,10>ue.length&&ue.push(i)}function X(i,m,_,S){var F=typeof i;(F==="undefined"||F==="boolean")&&(i=null);var U=!1;if(i===null)U=!0;else switch(F){case"string":case"number":U=!0;break;case"object":switch(i.$$typeof){case p:case C:U=!0}}if(U)return _(S,i,m===""?"."+de(i,0):m),1;if(U=0,m=m===""?".":m+":",Array.isArray(i))for(var se=0;se<i.length;se++){F=i[se];var ne=m+de(F,se);U+=X(F,ne,_,S)}else if(i===null||typeof i>"u"?ne=null:(ne=T&&i[T]||i["@@iterator"],ne=typeof ne=="function"?ne:null),typeof ne=="function")for(i=ne.call(i),se=0;!(F=i.next()).done;)F=F.value,ne=m+de(F,se++),U+=X(F,ne,_,S);else F==="object"&&(_=""+i,H("31",_==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":_,""));return U}function de(i,m){return typeof i=="object"&&i!==null&&i.key!=null?le(i.key):m.toString(36)}function pe(i,m){i.func.call(i.context,m,i.count++)}function w(i,m,_){var S=i.result,F=i.keyPrefix;i=i.func.call(i.context,m,i.count++),Array.isArray(i)?D(i,S,_,f.thatReturnsArgument):i!=null&&(re(i)&&(m=F+(!i.key||m&&m.key===i.key?"":(""+i.key).replace(ce,"$&/")+"/")+_,i={$$typeof:p,type:i.type,key:m,ref:i.ref,props:i.props,_owner:i._owner}),S.push(i))}function D(i,m,_,S,F){var U="";_!=null&&(U=(""+_).replace(ce,"$&/")+"/"),m=ve(m,U,S,F),i==null||X(i,"",w,m),fe(m)}var Y={Children:{map:function(i,m,_){if(i==null)return i;var S=[];return D(i,S,null,m,_),S},forEach:function(i,m,_){if(i==null)return i;m=ve(null,null,m,_),i==null||X(i,"",pe,m),fe(m)},count:function(i){return i==null?0:X(i,"",f.thatReturnsNull,null)},toArray:function(i){var m=[];return D(i,m,null,f.thatReturnsArgument),m},only:function(i){return re(i)||H("143"),i}},createRef:function(){return{current:null}},Component:y,PureComponent:M,createContext:function(i,m){return m===void 0&&(m=null),i={$$typeof:E,_calculateChangedBits:m,_defaultValue:i,_currentValue:i,_changedBits:0,Provider:null,Consumer:null},i.Provider={$$typeof:k,_context:i},i.Consumer=i},forwardRef:function(i){return{$$typeof:z,render:i}},Fragment:b,StrictMode:I,unstable_AsyncMode:L,createElement:J,cloneElement:function(i,m,_){i==null&&H("267",i);var S=void 0,F=u({},i.props),U=i.key,se=i.ref,ne=i._owner;if(m!=null){m.ref!==void 0&&(se=m.ref,ne=te.current),m.key!==void 0&&(U=""+m.key);var me=void 0;i.type&&i.type.defaultProps&&(me=i.type.defaultProps);for(S in m)q.call(m,S)&&!A.hasOwnProperty(S)&&(F[S]=m[S]===void 0&&me!==void 0?me[S]:m[S])}if(S=arguments.length-2,S===1)F.children=_;else if(1<S){me=Array(S);for(var he=0;he<S;he++)me[he]=arguments[he+2];F.children=me}return{$$typeof:p,type:i.type,key:U,ref:se,props:F,_owner:ne}},createFactory:function(i){var m=J.bind(null,i);return m.type=i,m},isValidElement:re,version:"16.3.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:te,assign:u}},K=Object.freeze({default:Y}),B=K&&Y||K;o.exports=B.default?B.default:B},function(o,c,d){/** @license React v16.3.2
41
+ */var u=d(2),l=d(0),v=d(5),f=d(1),s=typeof Symbol=="function"&&Symbol.for,h=s?Symbol.for("react.element"):60103,N=s?Symbol.for("react.portal"):60106,j=s?Symbol.for("react.fragment"):60107,_=s?Symbol.for("react.strict_mode"):60108,V=s?Symbol.for("react.provider"):60109,C=s?Symbol.for("react.context"):60110,E=s?Symbol.for("react.async_mode"):60111,M=s?Symbol.for("react.forward_ref"):60112,z=typeof Symbol=="function"&&Symbol.iterator;function I(i){for(var m=arguments.length-1,H="http://reactjs.org/docs/error-decoder.html?invariant="+i,R=0;R<m;R++)H+="&args[]="+encodeURIComponent(arguments[R+1]);l(!1,"Minified React error #"+i+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",H)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function b(i,m,H){this.props=i,this.context=m,this.refs=v,this.updater=H||P}b.prototype.isReactComponent={},b.prototype.setState=function(i,m){typeof i!="object"&&typeof i!="function"&&i!=null&&I("85"),this.updater.enqueueSetState(this,i,m,"setState")},b.prototype.forceUpdate=function(i){this.updater.enqueueForceUpdate(this,i,"forceUpdate")};function k(){}k.prototype=b.prototype;function T(i,m,H){this.props=i,this.context=m,this.refs=v,this.updater=H||P}var $=T.prototype=new k;$.constructor=T,u($,b.prototype),$.isPureReactComponent=!0;var ee={current:null},W=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function X(i,m,H){var R=void 0,F={},K=null,le=null;if(m!=null)for(R in m.ref!==void 0&&(le=m.ref),m.key!==void 0&&(K=""+m.key),m)W.call(m,R)&&!O.hasOwnProperty(R)&&(F[R]=m[R]);var ae=arguments.length-2;if(ae===1)F.children=H;else if(1<ae){for(var me=Array(ae),ve=0;ve<ae;ve++)me[ve]=arguments[ve+2];F.children=me}if(i&&i.defaultProps)for(R in ae=i.defaultProps,ae)F[R]===void 0&&(F[R]=ae[R]);return{$$typeof:h,type:i,key:K,ref:le,props:F,_owner:ee.current}}function re(i){return typeof i=="object"&&i!==null&&i.$$typeof===h}function ue(i){var m={"=":"=0",":":"=2"};return"$"+(""+i).replace(/[=:]/g,function(H){return m[H]})}var fe=/\/+/g,ne=[];function he(i,m,H,R){if(ne.length){var F=ne.pop();return F.result=i,F.keyPrefix=m,F.func=H,F.context=R,F.count=0,F}return{result:i,keyPrefix:m,func:H,context:R,count:0}}function ce(i){i.result=null,i.keyPrefix=null,i.func=null,i.context=null,i.count=0,10>ne.length&&ne.push(i)}function q(i,m,H,R){var F=typeof i;(F==="undefined"||F==="boolean")&&(i=null);var K=!1;if(i===null)K=!0;else switch(F){case"string":case"number":K=!0;break;case"object":switch(i.$$typeof){case h:case N:K=!0}}if(K)return H(R,i,m===""?"."+de(i,0):m),1;if(K=0,m=m===""?".":m+":",Array.isArray(i))for(var le=0;le<i.length;le++){F=i[le];var ae=m+de(F,le);K+=q(F,ae,H,R)}else if(i===null||typeof i>"u"?ae=null:(ae=z&&i[z]||i["@@iterator"],ae=typeof ae=="function"?ae:null),typeof ae=="function")for(i=ae.call(i),le=0;!(F=i.next()).done;)F=F.value,ae=m+de(F,le++),K+=q(F,ae,H,R);else F==="object"&&(H=""+i,I("31",H==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":H,""));return K}function de(i,m){return typeof i=="object"&&i!==null&&i.key!=null?ue(i.key):m.toString(36)}function pe(i,m){i.func.call(i.context,m,i.count++)}function w(i,m,H){var R=i.result,F=i.keyPrefix;i=i.func.call(i.context,m,i.count++),Array.isArray(i)?L(i,R,H,f.thatReturnsArgument):i!=null&&(re(i)&&(m=F+(!i.key||m&&m.key===i.key?"":(""+i.key).replace(fe,"$&/")+"/")+H,i={$$typeof:h,type:i.type,key:m,ref:i.ref,props:i.props,_owner:i._owner}),R.push(i))}function L(i,m,H,R,F){var K="";H!=null&&(K=(""+H).replace(fe,"$&/")+"/"),m=he(m,K,R,F),i==null||q(i,"",w,m),ce(m)}var U={Children:{map:function(i,m,H){if(i==null)return i;var R=[];return L(i,R,null,m,H),R},forEach:function(i,m,H){if(i==null)return i;m=he(null,null,m,H),i==null||q(i,"",pe,m),ce(m)},count:function(i){return i==null?0:q(i,"",f.thatReturnsNull,null)},toArray:function(i){var m=[];return L(i,m,null,f.thatReturnsArgument),m},only:function(i){return re(i)||I("143"),i}},createRef:function(){return{current:null}},Component:b,PureComponent:T,createContext:function(i,m){return m===void 0&&(m=null),i={$$typeof:C,_calculateChangedBits:m,_defaultValue:i,_currentValue:i,_changedBits:0,Provider:null,Consumer:null},i.Provider={$$typeof:V,_context:i},i.Consumer=i},forwardRef:function(i){return{$$typeof:M,render:i}},Fragment:j,StrictMode:_,unstable_AsyncMode:E,createElement:X,cloneElement:function(i,m,H){i==null&&I("267",i);var R=void 0,F=u({},i.props),K=i.key,le=i.ref,ae=i._owner;if(m!=null){m.ref!==void 0&&(le=m.ref,ae=ee.current),m.key!==void 0&&(K=""+m.key);var me=void 0;i.type&&i.type.defaultProps&&(me=i.type.defaultProps);for(R in m)W.call(m,R)&&!O.hasOwnProperty(R)&&(F[R]=m[R]===void 0&&me!==void 0?me[R]:m[R])}if(R=arguments.length-2,R===1)F.children=H;else if(1<R){me=Array(R);for(var ve=0;ve<R;ve++)me[ve]=arguments[ve+2];F.children=me}return{$$typeof:h,type:i.type,key:K,ref:le,props:F,_owner:ae}},createFactory:function(i){var m=X.bind(null,i);return m.type=i,m},isValidElement:re,version:"16.3.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:ee,assign:u}},G=Object.freeze({default:U}),Y=G&&U||G;o.exports=Y.default?Y.default:Y},function(o,c,d){/** @license React v16.3.2
42
42
  * react.development.js
43
43
  *
44
44
  * Copyright (c) 2013-present, Facebook, Inc.
45
45
  *
46
46
  * This source code is licensed under the MIT license found in the
47
47
  * LICENSE file in the root directory of this source tree.
48
- */process.env.NODE_ENV!=="production"&&function(){var u=d(2),l=d(0),v=d(5),f=d(3),s=d(1),p=d(6),C="16.3.2",b=typeof Symbol=="function"&&Symbol.for,I=b?Symbol.for("react.element"):60103,k=b?Symbol.for("react.call"):60104,E=b?Symbol.for("react.return"):60105,L=b?Symbol.for("react.portal"):60106,z=b?Symbol.for("react.fragment"):60107,T=b?Symbol.for("react.strict_mode"):60108,H=b?Symbol.for("react.provider"):60109,P=b?Symbol.for("react.context"):60110,y=b?Symbol.for("react.async_mode"):60111,R=b?Symbol.for("react.forward_ref"):60112,M=typeof Symbol=="function"&&Symbol.iterator,$="@@iterator";function te(e){if(e===null||typeof e>"u")return null;var a=M&&e[M]||e[$];return typeof a=="function"?a:null}var q=function(){};{var A=function(e){for(var a=arguments.length,g=Array(a>1?a-1:0),x=1;x<a;x++)g[x-1]=arguments[x];var O=0,Z="Warning: "+e.replace(/%s/g,function(){return g[O++]});typeof console<"u"&&console.warn(Z);try{throw new Error(Z)}catch{}};q=function(e,a){if(a===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var g=arguments.length,x=Array(g>2?g-2:0),O=2;O<g;O++)x[O-2]=arguments[O];A.apply(void 0,[a].concat(x))}}}var J=q,re={};function le(e,a){{var g=e.constructor,x=g&&(g.displayName||g.name)||"ReactClass",O=x+"."+a;if(re[O])return;f(!1,"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",a,x),re[O]=!0}}var ce={isMounted:function(e){return!1},enqueueForceUpdate:function(e,a,g){le(e,"forceUpdate")},enqueueReplaceState:function(e,a,g,x){le(e,"replaceState")},enqueueSetState:function(e,a,g,x){le(e,"setState")}};function ue(e,a,g){this.props=e,this.context=a,this.refs=v,this.updater=g||ce}ue.prototype.isReactComponent={},ue.prototype.setState=function(e,a){typeof e=="object"||typeof e=="function"||e==null||l(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."),this.updater.enqueueSetState(this,e,a,"setState")},ue.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};{var ve={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},fe=function(e,a){Object.defineProperty(ue.prototype,e,{get:function(){J(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",a[0],a[1])}})};for(var X in ve)ve.hasOwnProperty(X)&&fe(X,ve[X])}function de(){}de.prototype=ue.prototype;function pe(e,a,g){this.props=e,this.context=a,this.refs=v,this.updater=g||ce}var w=pe.prototype=new de;w.constructor=pe,u(w,ue.prototype),w.isPureReactComponent=!0;function D(){var e={current:null};return Object.seal(e),e}var Y={current:null},K=Object.prototype.hasOwnProperty,B={key:!0,ref:!0,__self:!0,__source:!0},i=void 0,m=void 0;function _(e){if(K.call(e,"ref")){var a=Object.getOwnPropertyDescriptor(e,"ref").get;if(a&&a.isReactWarning)return!1}return e.ref!==void 0}function S(e){if(K.call(e,"key")){var a=Object.getOwnPropertyDescriptor(e,"key").get;if(a&&a.isReactWarning)return!1}return e.key!==void 0}function F(e,a){var g=function(){i||(i=!0,f(!1,"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",a))};g.isReactWarning=!0,Object.defineProperty(e,"key",{get:g,configurable:!0})}function U(e,a){var g=function(){m||(m=!0,f(!1,"%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",a))};g.isReactWarning=!0,Object.defineProperty(e,"ref",{get:g,configurable:!0})}var se=function(e,a,g,x,O,Z,Q){var G={$$typeof:I,type:e,key:a,ref:g,props:Q,_owner:Z};return G._store={},Object.defineProperty(G._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(G,"_self",{configurable:!1,enumerable:!1,writable:!1,value:x}),Object.defineProperty(G,"_source",{configurable:!1,enumerable:!1,writable:!1,value:O}),Object.freeze&&(Object.freeze(G.props),Object.freeze(G)),G};function ne(e,a,g){var x=void 0,O={},Z=null,Q=null,G=null,oe=null;if(a!=null){_(a)&&(Q=a.ref),S(a)&&(Z=""+a.key),G=a.__self===void 0?null:a.__self,oe=a.__source===void 0?null:a.__source;for(x in a)K.call(a,x)&&!B.hasOwnProperty(x)&&(O[x]=a[x])}var ye=arguments.length-2;if(ye===1)O.children=g;else if(ye>1){for(var be=Array(ye),ge=0;ge<ye;ge++)be[ge]=arguments[ge+2];Object.freeze&&Object.freeze(be),O.children=be}if(e&&e.defaultProps){var Me=e.defaultProps;for(x in Me)O[x]===void 0&&(O[x]=Me[x])}if((Z||Q)&&(typeof O.$$typeof>"u"||O.$$typeof!==I)){var we=typeof e=="function"?e.displayName||e.name||"Unknown":e;Z&&F(O,we),Q&&U(O,we)}return se(e,Z,Q,G,oe,Y.current,O)}function me(e,a){var g=se(e.type,a,e.ref,e._self,e._source,e._owner,e.props);return g}function he(e,a,g){e==null&&l(!1,"React.cloneElement(...): The argument must be a React element, but you passed %s.",e);var x=void 0,O=u({},e.props),Z=e.key,Q=e.ref,G=e._self,oe=e._source,ye=e._owner;if(a!=null){_(a)&&(Q=a.ref,ye=Y.current),S(a)&&(Z=""+a.key);var be=void 0;e.type&&e.type.defaultProps&&(be=e.type.defaultProps);for(x in a)K.call(a,x)&&!B.hasOwnProperty(x)&&(a[x]===void 0&&be!==void 0?O[x]=be[x]:O[x]=a[x])}var ge=arguments.length-2;if(ge===1)O.children=g;else if(ge>1){for(var Me=Array(ge),we=0;we<ge;we++)Me[we]=arguments[we+2];O.children=Me}return se(e.type,Z,Q,G,oe,ye,O)}function Ce(e){return typeof e=="object"&&e!==null&&e.$$typeof===I}var je={};je.getCurrentStack=null,je.getStackAddendum=function(){var e=je.getCurrentStack;return e?e():null};var Re=".",ct=":";function ut(e){var a=/[=:]/g,g={"=":"=0",":":"=2"},x=(""+e).replace(a,function(O){return g[O]});return"$"+x}var _e=!1,ft=/\/+/g;function qe(e){return(""+e).replace(ft,"$&/")}var Ge=10,Ne=[];function Ee(e,a,g,x){if(Ne.length){var O=Ne.pop();return O.result=e,O.keyPrefix=a,O.func=g,O.context=x,O.count=0,O}else return{result:e,keyPrefix:a,func:g,context:x,count:0}}function Je(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,Ne.length<Ge&&Ne.push(e)}function Ae(e,a,g,x){var O=typeof e;(O==="undefined"||O==="boolean")&&(e=null);var Z=!1;if(e===null)Z=!0;else switch(O){case"string":case"number":Z=!0;break;case"object":switch(e.$$typeof){case I:case L:Z=!0}}if(Z)return g(x,e,a===""?Re+ke(e,0):a),1;var Q=void 0,G=void 0,oe=0,ye=a===""?Re:a+ct;if(Array.isArray(e))for(var be=0;be<e.length;be++)Q=e[be],G=ye+ke(Q,be),oe+=Ae(Q,G,g,x);else{var ge=te(e);if(typeof ge=="function"){ge===e.entries&&(_e||f(!1,"Using Maps as children is unsupported and will likely yield unexpected results. Convert it to a sequence/iterable of keyed ReactElements instead.%s",je.getStackAddendum()),_e=!0);for(var Me=ge.call(e),we=void 0,Dn=0;!(we=Me.next()).done;)Q=we.value,G=ye+ke(Q,Dn++),oe+=Ae(Q,G,g,x)}else if(O==="object"){var It="";It=" If you meant to render a collection of children, use an array instead."+je.getStackAddendum();var Lt=""+e;l(!1,"Objects are not valid as a React child (found: %s).%s",Lt==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":Lt,It)}}return oe}function Ve(e,a,g){return e==null?0:Ae(e,"",a,g)}function ke(e,a){return typeof e=="object"&&e!==null&&e.key!=null?ut(e.key):a.toString(36)}function dt(e,a,g){var x=e.func,O=e.context;x.call(O,a,e.count++)}function pt(e,a,g){if(e==null)return e;var x=Ee(null,null,a,g);Ve(e,dt,x),Je(x)}function ht(e,a,g){var x=e.result,O=e.keyPrefix,Z=e.func,Q=e.context,G=Z.call(Q,a,e.count++);Array.isArray(G)?Ie(G,x,g,s.thatReturnsArgument):G!=null&&(Ce(G)&&(G=me(G,O+(G.key&&(!a||a.key!==G.key)?qe(G.key)+"/":"")+g)),x.push(G))}function Ie(e,a,g,x,O){var Z="";g!=null&&(Z=qe(g)+"/");var Q=Ee(a,Z,x,O);Ve(e,ht,Q),Je(Q)}function vt(e,a,g){if(e==null)return e;var x=[];return Ie(e,x,null,a,g),x}function mt(e,a){return Ve(e,s.thatReturnsNull,null)}function gt(e){var a=[];return Ie(e,a,null,s.thatReturnsArgument),a}function Le(e){return Ce(e)||l(!1,"React.Children.only expected to receive a single React element child."),e}function Xe(e,a){a===void 0?a=null:a===null||typeof a=="function"||f(!1,"createContext: Expected the optional second argument to be a function. Instead received: %s",a);var g={$$typeof:P,_calculateChangedBits:a,_defaultValue:e,_currentValue:e,_changedBits:0,Provider:null,Consumer:null};return g.Provider={$$typeof:H,_context:g},g.Consumer=g,g._currentRenderer=null,g}function Te(e){return typeof e!="function"&&f(!1,"forwardRef requires a render function but was given %s.",e===null?"null":typeof e),{$$typeof:R,render:e}}var $e=function(e,a,g){return`
49
- in `+(e||"Unknown")+(a?" (at "+a.fileName.replace(/^.*[\\\/]/,"")+":"+a.lineNumber+")":g?" (created by "+g+")":"")};function We(e){return typeof e=="string"||typeof e=="function"||e===z||e===y||e===T||typeof e=="object"&&e!==null&&(e.$$typeof===H||e.$$typeof===P||e.$$typeof===R)}function ze(e){var a=e.type;if(typeof a=="function")return a.displayName||a.name;if(typeof a=="string")return a;switch(a){case z:return"ReactFragment";case L:return"ReactPortal";case k:return"ReactCall";case E:return"ReactReturn"}if(typeof a=="object"&&a!==null)switch(a.$$typeof){case R:var g=a.render.displayName||a.render.name||"";return g!==""?"ForwardRef("+g+")":"ForwardRef"}return null}var xe=void 0,He=void 0,Ze=function(){},Oe=function(){};xe=null,He=!1,Ze=function(e){return e==null?"#empty":typeof e=="string"||typeof e=="number"?"#text":typeof e.type=="string"?e.type:e.type===z?"React.Fragment":e.type.displayName||e.type.name||"Unknown"},Oe=function(){var e="";if(xe){var a=Ze(xe),g=xe._owner;e+=$e(a,xe._source,g&&ze(g))}return e+=je.getStackAddendum()||"",e};function Ue(){if(Y.current){var e=ze(Y.current);if(e)return`
48
+ */process.env.NODE_ENV!=="production"&&function(){var u=d(2),l=d(0),v=d(5),f=d(3),s=d(1),h=d(6),N="16.3.2",j=typeof Symbol=="function"&&Symbol.for,_=j?Symbol.for("react.element"):60103,V=j?Symbol.for("react.call"):60104,C=j?Symbol.for("react.return"):60105,E=j?Symbol.for("react.portal"):60106,M=j?Symbol.for("react.fragment"):60107,z=j?Symbol.for("react.strict_mode"):60108,I=j?Symbol.for("react.provider"):60109,P=j?Symbol.for("react.context"):60110,b=j?Symbol.for("react.async_mode"):60111,k=j?Symbol.for("react.forward_ref"):60112,T=typeof Symbol=="function"&&Symbol.iterator,$="@@iterator";function ee(e){if(e===null||typeof e>"u")return null;var a=T&&e[T]||e[$];return typeof a=="function"?a:null}var W=function(){};{var O=function(e){for(var a=arguments.length,g=Array(a>1?a-1:0),y=1;y<a;y++)g[y-1]=arguments[y];var S=0,Z="Warning: "+e.replace(/%s/g,function(){return g[S++]});typeof console<"u"&&console.warn(Z);try{throw new Error(Z)}catch{}};W=function(e,a){if(a===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var g=arguments.length,y=Array(g>2?g-2:0),S=2;S<g;S++)y[S-2]=arguments[S];O.apply(void 0,[a].concat(y))}}}var X=W,re={};function ue(e,a){{var g=e.constructor,y=g&&(g.displayName||g.name)||"ReactClass",S=y+"."+a;if(re[S])return;f(!1,"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",a,y),re[S]=!0}}var fe={isMounted:function(e){return!1},enqueueForceUpdate:function(e,a,g){ue(e,"forceUpdate")},enqueueReplaceState:function(e,a,g,y){ue(e,"replaceState")},enqueueSetState:function(e,a,g,y){ue(e,"setState")}};function ne(e,a,g){this.props=e,this.context=a,this.refs=v,this.updater=g||fe}ne.prototype.isReactComponent={},ne.prototype.setState=function(e,a){typeof e=="object"||typeof e=="function"||e==null||l(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."),this.updater.enqueueSetState(this,e,a,"setState")},ne.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};{var he={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},ce=function(e,a){Object.defineProperty(ne.prototype,e,{get:function(){X(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",a[0],a[1])}})};for(var q in he)he.hasOwnProperty(q)&&ce(q,he[q])}function de(){}de.prototype=ne.prototype;function pe(e,a,g){this.props=e,this.context=a,this.refs=v,this.updater=g||fe}var w=pe.prototype=new de;w.constructor=pe,u(w,ne.prototype),w.isPureReactComponent=!0;function L(){var e={current:null};return Object.seal(e),e}var U={current:null},G=Object.prototype.hasOwnProperty,Y={key:!0,ref:!0,__self:!0,__source:!0},i=void 0,m=void 0;function H(e){if(G.call(e,"ref")){var a=Object.getOwnPropertyDescriptor(e,"ref").get;if(a&&a.isReactWarning)return!1}return e.ref!==void 0}function R(e){if(G.call(e,"key")){var a=Object.getOwnPropertyDescriptor(e,"key").get;if(a&&a.isReactWarning)return!1}return e.key!==void 0}function F(e,a){var g=function(){i||(i=!0,f(!1,"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",a))};g.isReactWarning=!0,Object.defineProperty(e,"key",{get:g,configurable:!0})}function K(e,a){var g=function(){m||(m=!0,f(!1,"%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",a))};g.isReactWarning=!0,Object.defineProperty(e,"ref",{get:g,configurable:!0})}var le=function(e,a,g,y,S,Z,Q){var J={$$typeof:_,type:e,key:a,ref:g,props:Q,_owner:Z};return J._store={},Object.defineProperty(J._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(J,"_self",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.defineProperty(J,"_source",{configurable:!1,enumerable:!1,writable:!1,value:S}),Object.freeze&&(Object.freeze(J.props),Object.freeze(J)),J};function ae(e,a,g){var y=void 0,S={},Z=null,Q=null,J=null,se=null;if(a!=null){H(a)&&(Q=a.ref),R(a)&&(Z=""+a.key),J=a.__self===void 0?null:a.__self,se=a.__source===void 0?null:a.__source;for(y in a)G.call(a,y)&&!Y.hasOwnProperty(y)&&(S[y]=a[y])}var ye=arguments.length-2;if(ye===1)S.children=g;else if(ye>1){for(var be=Array(ye),ge=0;ge<ye;ge++)be[ge]=arguments[ge+2];Object.freeze&&Object.freeze(be),S.children=be}if(e&&e.defaultProps){var Me=e.defaultProps;for(y in Me)S[y]===void 0&&(S[y]=Me[y])}if((Z||Q)&&(typeof S.$$typeof>"u"||S.$$typeof!==_)){var we=typeof e=="function"?e.displayName||e.name||"Unknown":e;Z&&F(S,we),Q&&K(S,we)}return le(e,Z,Q,J,se,U.current,S)}function me(e,a){var g=le(e.type,a,e.ref,e._self,e._source,e._owner,e.props);return g}function ve(e,a,g){e==null&&l(!1,"React.cloneElement(...): The argument must be a React element, but you passed %s.",e);var y=void 0,S=u({},e.props),Z=e.key,Q=e.ref,J=e._self,se=e._source,ye=e._owner;if(a!=null){H(a)&&(Q=a.ref,ye=U.current),R(a)&&(Z=""+a.key);var be=void 0;e.type&&e.type.defaultProps&&(be=e.type.defaultProps);for(y in a)G.call(a,y)&&!Y.hasOwnProperty(y)&&(a[y]===void 0&&be!==void 0?S[y]=be[y]:S[y]=a[y])}var ge=arguments.length-2;if(ge===1)S.children=g;else if(ge>1){for(var Me=Array(ge),we=0;we<ge;we++)Me[we]=arguments[we+2];S.children=Me}return le(e.type,Z,Q,J,se,ye,S)}function Ce(e){return typeof e=="object"&&e!==null&&e.$$typeof===_}var je={};je.getCurrentStack=null,je.getStackAddendum=function(){var e=je.getCurrentStack;return e?e():null};var Re=".",ct=":";function ut(e){var a=/[=:]/g,g={"=":"=0",":":"=2"},y=(""+e).replace(a,function(S){return g[S]});return"$"+y}var _e=!1,ft=/\/+/g;function qe(e){return(""+e).replace(ft,"$&/")}var Ge=10,ke=[];function Ee(e,a,g,y){if(ke.length){var S=ke.pop();return S.result=e,S.keyPrefix=a,S.func=g,S.context=y,S.count=0,S}else return{result:e,keyPrefix:a,func:g,context:y,count:0}}function Je(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,ke.length<Ge&&ke.push(e)}function Ae(e,a,g,y){var S=typeof e;(S==="undefined"||S==="boolean")&&(e=null);var Z=!1;if(e===null)Z=!0;else switch(S){case"string":case"number":Z=!0;break;case"object":switch(e.$$typeof){case _:case E:Z=!0}}if(Z)return g(y,e,a===""?Re+Ne(e,0):a),1;var Q=void 0,J=void 0,se=0,ye=a===""?Re:a+ct;if(Array.isArray(e))for(var be=0;be<e.length;be++)Q=e[be],J=ye+Ne(Q,be),se+=Ae(Q,J,g,y);else{var ge=ee(e);if(typeof ge=="function"){ge===e.entries&&(_e||f(!1,"Using Maps as children is unsupported and will likely yield unexpected results. Convert it to a sequence/iterable of keyed ReactElements instead.%s",je.getStackAddendum()),_e=!0);for(var Me=ge.call(e),we=void 0,Dn=0;!(we=Me.next()).done;)Q=we.value,J=ye+Ne(Q,Dn++),se+=Ae(Q,J,g,y)}else if(S==="object"){var It="";It=" If you meant to render a collection of children, use an array instead."+je.getStackAddendum();var Lt=""+e;l(!1,"Objects are not valid as a React child (found: %s).%s",Lt==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":Lt,It)}}return se}function Ve(e,a,g){return e==null?0:Ae(e,"",a,g)}function Ne(e,a){return typeof e=="object"&&e!==null&&e.key!=null?ut(e.key):a.toString(36)}function dt(e,a,g){var y=e.func,S=e.context;y.call(S,a,e.count++)}function pt(e,a,g){if(e==null)return e;var y=Ee(null,null,a,g);Ve(e,dt,y),Je(y)}function ht(e,a,g){var y=e.result,S=e.keyPrefix,Z=e.func,Q=e.context,J=Z.call(Q,a,e.count++);Array.isArray(J)?Ie(J,y,g,s.thatReturnsArgument):J!=null&&(Ce(J)&&(J=me(J,S+(J.key&&(!a||a.key!==J.key)?qe(J.key)+"/":"")+g)),y.push(J))}function Ie(e,a,g,y,S){var Z="";g!=null&&(Z=qe(g)+"/");var Q=Ee(a,Z,y,S);Ve(e,ht,Q),Je(Q)}function vt(e,a,g){if(e==null)return e;var y=[];return Ie(e,y,null,a,g),y}function mt(e,a){return Ve(e,s.thatReturnsNull,null)}function gt(e){var a=[];return Ie(e,a,null,s.thatReturnsArgument),a}function Le(e){return Ce(e)||l(!1,"React.Children.only expected to receive a single React element child."),e}function Xe(e,a){a===void 0?a=null:a===null||typeof a=="function"||f(!1,"createContext: Expected the optional second argument to be a function. Instead received: %s",a);var g={$$typeof:P,_calculateChangedBits:a,_defaultValue:e,_currentValue:e,_changedBits:0,Provider:null,Consumer:null};return g.Provider={$$typeof:I,_context:g},g.Consumer=g,g._currentRenderer=null,g}function Te(e){return typeof e!="function"&&f(!1,"forwardRef requires a render function but was given %s.",e===null?"null":typeof e),{$$typeof:k,render:e}}var $e=function(e,a,g){return`
49
+ in `+(e||"Unknown")+(a?" (at "+a.fileName.replace(/^.*[\\\/]/,"")+":"+a.lineNumber+")":g?" (created by "+g+")":"")};function We(e){return typeof e=="string"||typeof e=="function"||e===M||e===b||e===z||typeof e=="object"&&e!==null&&(e.$$typeof===I||e.$$typeof===P||e.$$typeof===k)}function ze(e){var a=e.type;if(typeof a=="function")return a.displayName||a.name;if(typeof a=="string")return a;switch(a){case M:return"ReactFragment";case E:return"ReactPortal";case V:return"ReactCall";case C:return"ReactReturn"}if(typeof a=="object"&&a!==null)switch(a.$$typeof){case k:var g=a.render.displayName||a.render.name||"";return g!==""?"ForwardRef("+g+")":"ForwardRef"}return null}var xe=void 0,He=void 0,Ze=function(){},Oe=function(){};xe=null,He=!1,Ze=function(e){return e==null?"#empty":typeof e=="string"||typeof e=="number"?"#text":typeof e.type=="string"?e.type:e.type===M?"React.Fragment":e.type.displayName||e.type.name||"Unknown"},Oe=function(){var e="";if(xe){var a=Ze(xe),g=xe._owner;e+=$e(a,xe._source,g&&ze(g))}return e+=je.getStackAddendum()||"",e};function Ue(){if(U.current){var e=ze(U.current);if(e)return`
50
50
 
51
- Check the render method of \``+e+"`."}return""}function yt(e){if(e!=null&&e.__source!==void 0){var a=e.__source,g=a.fileName.replace(/^.*[\\\/]/,""),x=a.lineNumber;return`
51
+ Check the render method of \``+e+"`."}return""}function yt(e){if(e!=null&&e.__source!==void 0){var a=e.__source,g=a.fileName.replace(/^.*[\\\/]/,""),y=a.lineNumber;return`
52
52
 
53
- Check your code at `+g+":"+x+"."}return""}var Qe={};function et(e){var a=Ue();if(!a){var g=typeof e=="string"?e:e.displayName||e.name;g&&(a=`
53
+ Check your code at `+g+":"+y+"."}return""}var Qe={};function et(e){var a=Ue();if(!a){var g=typeof e=="string"?e:e.displayName||e.name;g&&(a=`
54
54
 
55
- Check the top-level render call using <`+g+">.")}return a}function Be(e,a){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=!0;var g=et(a);if(!Qe[g]){Qe[g]=!0;var x="";e&&e._owner&&e._owner!==Y.current&&(x=" It was passed a child from "+ze(e._owner)+"."),xe=e,f(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s',g,x,Oe()),xe=null}}}function tt(e,a){if(typeof e=="object"){if(Array.isArray(e))for(var g=0;g<e.length;g++){var x=e[g];Ce(x)&&Be(x,a)}else if(Ce(e))e._store&&(e._store.validated=!0);else if(e){var O=te(e);if(typeof O=="function"&&O!==e.entries)for(var Z=O.call(e),Q=void 0;!(Q=Z.next()).done;)Ce(Q.value)&&Be(Q.value,a)}}}function nt(e){var a=e.type;if(typeof a=="function"){var g=a.displayName||a.name,x=a.propTypes;x?(xe=e,p(x,e.props,"prop",g,Oe),xe=null):a.PropTypes!==void 0&&!He&&(He=!0,f(!1,"Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")),typeof a.getDefaultProps=="function"&&(a.getDefaultProps.isReactClassApproved||f(!1,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."))}}function bt(e){xe=e;for(var a=Object.keys(e.props),g=0;g<a.length;g++){var x=a[g];if(x!=="children"&&x!=="key"){f(!1,"Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.%s",x,Oe());break}}e.ref!==null&&f(!1,"Invalid attribute `ref` supplied to `React.Fragment`.%s",Oe()),xe=null}function rt(e,a,g){var x=We(e);if(!x){var O="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(O+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Z=yt(a);Z?O+=Z:O+=Ue(),O+=Oe()||"";var Q=void 0;e===null?Q="null":Array.isArray(e)?Q="array":Q=typeof e,f(!1,"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Q,O)}var G=ne.apply(this,arguments);if(G==null)return G;if(x)for(var oe=2;oe<arguments.length;oe++)tt(arguments[oe],e);return e===z?bt(G):nt(G),G}function t(e){var a=rt.bind(null,e);return a.type=e,Object.defineProperty(a,"type",{enumerable:!1,get:function(){return J(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),a}function j(e,a,g){for(var x=he.apply(this,arguments),O=2;O<arguments.length;O++)tt(arguments[O],x.type);return nt(x),x}var N={Children:{map:vt,forEach:pt,count:mt,toArray:gt,only:Le},createRef:D,Component:ue,PureComponent:pe,createContext:Xe,forwardRef:Te,Fragment:z,StrictMode:T,unstable_AsyncMode:y,createElement:rt,cloneElement:j,createFactory:t,isValidElement:Ce,version:C,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:Y,assign:u}};u(N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,{ReactDebugCurrentFrame:je,ReactComponentTreeHook:{}});var W=Object.freeze({default:N}),ee=W&&N||W,ae=ee.default?ee.default:ee;o.exports=ae}()},function(o,c,d){if(process.env.NODE_ENV!=="production"){var u=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103,l=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===u},v=!0;o.exports=d(12)(l,v)}else o.exports=d(13)()},function(o,c,d){var u=d(1),l=d(0),v=d(3),f=d(2),s=d(4),p=d(6);o.exports=function(C,b){var I=typeof Symbol=="function"&&Symbol.iterator,k="@@iterator";function E(w){var D=w&&(I&&w[I]||w[k]);if(typeof D=="function")return D}var L="<<anonymous>>",z={array:y("array"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:R(),arrayOf:M,element:$(),instanceOf:te,node:re(),objectOf:A,oneOf:q,oneOfType:J,shape:le,exact:ce};function T(w,D){return w===D?w!==0||1/w===1/D:w!==w&&D!==D}function H(w){this.message=w,this.stack=""}H.prototype=Error.prototype;function P(w){if(process.env.NODE_ENV!=="production")var D={},Y=0;function K(i,m,_,S,F,U,se){if(S=S||L,U=U||_,se!==s){if(b)l(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ne=S+":"+_;!D[ne]&&Y<3&&(v(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",U,S),D[ne]=!0,Y++)}}return m[_]==null?i?m[_]===null?new H("The "+F+" `"+U+"` is marked as required "+("in `"+S+"`, but its value is `null`.")):new H("The "+F+" `"+U+"` is marked as required in "+("`"+S+"`, but its value is `undefined`.")):null:w(m,_,S,F,U)}var B=K.bind(null,!1);return B.isRequired=K.bind(null,!0),B}function y(w){function D(Y,K,B,i,m,_){var S=Y[K],F=fe(S);if(F!==w){var U=X(S);return new H("Invalid "+i+" `"+m+"` of type "+("`"+U+"` supplied to `"+B+"`, expected ")+("`"+w+"`."))}return null}return P(D)}function R(){return P(u.thatReturnsNull)}function M(w){function D(Y,K,B,i,m){if(typeof w!="function")return new H("Property `"+m+"` of component `"+B+"` has invalid PropType notation inside arrayOf.");var _=Y[K];if(!Array.isArray(_)){var S=fe(_);return new H("Invalid "+i+" `"+m+"` of type "+("`"+S+"` supplied to `"+B+"`, expected an array."))}for(var F=0;F<_.length;F++){var U=w(_,F,B,i,m+"["+F+"]",s);if(U instanceof Error)return U}return null}return P(D)}function $(){function w(D,Y,K,B,i){var m=D[Y];if(!C(m)){var _=fe(m);return new H("Invalid "+B+" `"+i+"` of type "+("`"+_+"` supplied to `"+K+"`, expected a single ReactElement."))}return null}return P(w)}function te(w){function D(Y,K,B,i,m){if(!(Y[K]instanceof w)){var _=w.name||L,S=pe(Y[K]);return new H("Invalid "+i+" `"+m+"` of type "+("`"+S+"` supplied to `"+B+"`, expected ")+("instance of `"+_+"`."))}return null}return P(D)}function q(w){if(!Array.isArray(w))return process.env.NODE_ENV!=="production"&&v(!1,"Invalid argument supplied to oneOf, expected an instance of array."),u.thatReturnsNull;function D(Y,K,B,i,m){for(var _=Y[K],S=0;S<w.length;S++)if(T(_,w[S]))return null;var F=JSON.stringify(w);return new H("Invalid "+i+" `"+m+"` of value `"+_+"` "+("supplied to `"+B+"`, expected one of "+F+"."))}return P(D)}function A(w){function D(Y,K,B,i,m){if(typeof w!="function")return new H("Property `"+m+"` of component `"+B+"` has invalid PropType notation inside objectOf.");var _=Y[K],S=fe(_);if(S!=="object")return new H("Invalid "+i+" `"+m+"` of type "+("`"+S+"` supplied to `"+B+"`, expected an object."));for(var F in _)if(_.hasOwnProperty(F)){var U=w(_,F,B,i,m+"."+F,s);if(U instanceof Error)return U}return null}return P(D)}function J(w){if(!Array.isArray(w))return process.env.NODE_ENV!=="production"&&v(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),u.thatReturnsNull;for(var D=0;D<w.length;D++){var Y=w[D];if(typeof Y!="function")return v(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",de(Y),D),u.thatReturnsNull}function K(B,i,m,_,S){for(var F=0;F<w.length;F++){var U=w[F];if(U(B,i,m,_,S,s)==null)return null}return new H("Invalid "+_+" `"+S+"` supplied to "+("`"+m+"`."))}return P(K)}function re(){function w(D,Y,K,B,i){return ue(D[Y])?null:new H("Invalid "+B+" `"+i+"` supplied to "+("`"+K+"`, expected a ReactNode."))}return P(w)}function le(w){function D(Y,K,B,i,m){var _=Y[K],S=fe(_);if(S!=="object")return new H("Invalid "+i+" `"+m+"` of type `"+S+"` "+("supplied to `"+B+"`, expected `object`."));for(var F in w){var U=w[F];if(U){var se=U(_,F,B,i,m+"."+F,s);if(se)return se}}return null}return P(D)}function ce(w){function D(Y,K,B,i,m){var _=Y[K],S=fe(_);if(S!=="object")return new H("Invalid "+i+" `"+m+"` of type `"+S+"` "+("supplied to `"+B+"`, expected `object`."));var F=f({},Y[K],w);for(var U in F){var se=w[U];if(!se)return new H("Invalid "+i+" `"+m+"` key `"+U+"` supplied to `"+B+"`.\nBad object: "+JSON.stringify(Y[K],null," ")+`
56
- Valid keys: `+JSON.stringify(Object.keys(w),null," "));var ne=se(_,U,B,i,m+"."+U,s);if(ne)return ne}return null}return P(D)}function ue(w){switch(typeof w){case"number":case"string":case"undefined":return!0;case"boolean":return!w;case"object":if(Array.isArray(w))return w.every(ue);if(w===null||C(w))return!0;var D=E(w);if(D){var Y=D.call(w),K;if(D!==w.entries){for(;!(K=Y.next()).done;)if(!ue(K.value))return!1}else for(;!(K=Y.next()).done;){var B=K.value;if(B&&!ue(B[1]))return!1}}else return!1;return!0;default:return!1}}function ve(w,D){return w==="symbol"||D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol}function fe(w){var D=typeof w;return Array.isArray(w)?"array":w instanceof RegExp?"object":ve(D,w)?"symbol":D}function X(w){if(typeof w>"u"||w===null)return""+w;var D=fe(w);if(D==="object"){if(w instanceof Date)return"date";if(w instanceof RegExp)return"regexp"}return D}function de(w){var D=X(w);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function pe(w){return!w.constructor||!w.constructor.name?L:w.constructor.name}return z.checkPropTypes=p,z.PropTypes=z,z}},function(o,c,d){var u=d(1),l=d(0),v=d(4);o.exports=function(){function f(C,b,I,k,E,L){L!==v&&l(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}f.isRequired=f;function s(){return f}var p={array:f,bool:f,func:f,number:f,object:f,string:f,symbol:f,any:f,arrayOf:s,element:f,instanceOf:s,node:f,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s};return p.checkPropTypes=u,p.PropTypes=p,p}},function(o,c,d){Object.defineProperty(c,"__esModule",{value:!0});var u=d(15);Object.defineProperty(c,"blank",{enumerable:!0,get:function(){return k(u).default}});var l=d(16);Object.defineProperty(c,"balls",{enumerable:!0,get:function(){return k(l).default}});var v=d(17);Object.defineProperty(c,"bars",{enumerable:!0,get:function(){return k(v).default}});var f=d(18);Object.defineProperty(c,"bubbles",{enumerable:!0,get:function(){return k(f).default}});var s=d(19);Object.defineProperty(c,"cubes",{enumerable:!0,get:function(){return k(s).default}});var p=d(20);Object.defineProperty(c,"cylon",{enumerable:!0,get:function(){return k(p).default}});var C=d(21);Object.defineProperty(c,"spin",{enumerable:!0,get:function(){return k(C).default}});var b=d(22);Object.defineProperty(c,"spinningBubbles",{enumerable:!0,get:function(){return k(b).default}});var I=d(23);Object.defineProperty(c,"spokes",{enumerable:!0,get:function(){return k(I).default}});function k(E){return E&&E.__esModule?E:{default:E}}},function(o,c){o.exports=`<svg class="icon-blank" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>
55
+ Check the top-level render call using <`+g+">.")}return a}function Be(e,a){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=!0;var g=et(a);if(!Qe[g]){Qe[g]=!0;var y="";e&&e._owner&&e._owner!==U.current&&(y=" It was passed a child from "+ze(e._owner)+"."),xe=e,f(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s',g,y,Oe()),xe=null}}}function tt(e,a){if(typeof e=="object"){if(Array.isArray(e))for(var g=0;g<e.length;g++){var y=e[g];Ce(y)&&Be(y,a)}else if(Ce(e))e._store&&(e._store.validated=!0);else if(e){var S=ee(e);if(typeof S=="function"&&S!==e.entries)for(var Z=S.call(e),Q=void 0;!(Q=Z.next()).done;)Ce(Q.value)&&Be(Q.value,a)}}}function nt(e){var a=e.type;if(typeof a=="function"){var g=a.displayName||a.name,y=a.propTypes;y?(xe=e,h(y,e.props,"prop",g,Oe),xe=null):a.PropTypes!==void 0&&!He&&(He=!0,f(!1,"Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")),typeof a.getDefaultProps=="function"&&(a.getDefaultProps.isReactClassApproved||f(!1,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."))}}function bt(e){xe=e;for(var a=Object.keys(e.props),g=0;g<a.length;g++){var y=a[g];if(y!=="children"&&y!=="key"){f(!1,"Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.%s",y,Oe());break}}e.ref!==null&&f(!1,"Invalid attribute `ref` supplied to `React.Fragment`.%s",Oe()),xe=null}function rt(e,a,g){var y=We(e);if(!y){var S="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Z=yt(a);Z?S+=Z:S+=Ue(),S+=Oe()||"";var Q=void 0;e===null?Q="null":Array.isArray(e)?Q="array":Q=typeof e,f(!1,"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Q,S)}var J=ae.apply(this,arguments);if(J==null)return J;if(y)for(var se=2;se<arguments.length;se++)tt(arguments[se],e);return e===M?bt(J):nt(J),J}function t(e){var a=rt.bind(null,e);return a.type=e,Object.defineProperty(a,"type",{enumerable:!1,get:function(){return X(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),a}function x(e,a,g){for(var y=ve.apply(this,arguments),S=2;S<arguments.length;S++)tt(arguments[S],y.type);return nt(y),y}var A={Children:{map:vt,forEach:pt,count:mt,toArray:gt,only:Le},createRef:L,Component:ne,PureComponent:pe,createContext:Xe,forwardRef:Te,Fragment:M,StrictMode:z,unstable_AsyncMode:b,createElement:rt,cloneElement:x,createFactory:t,isValidElement:Ce,version:N,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:U,assign:u}};u(A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,{ReactDebugCurrentFrame:je,ReactComponentTreeHook:{}});var B=Object.freeze({default:A}),te=B&&A||B,ie=te.default?te.default:te;o.exports=ie}()},function(o,c,d){if(process.env.NODE_ENV!=="production"){var u=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103,l=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===u},v=!0;o.exports=d(12)(l,v)}else o.exports=d(13)()},function(o,c,d){var u=d(1),l=d(0),v=d(3),f=d(2),s=d(4),h=d(6);o.exports=function(N,j){var _=typeof Symbol=="function"&&Symbol.iterator,V="@@iterator";function C(w){var L=w&&(_&&w[_]||w[V]);if(typeof L=="function")return L}var E="<<anonymous>>",M={array:b("array"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:k(),arrayOf:T,element:$(),instanceOf:ee,node:re(),objectOf:O,oneOf:W,oneOfType:X,shape:ue,exact:fe};function z(w,L){return w===L?w!==0||1/w===1/L:w!==w&&L!==L}function I(w){this.message=w,this.stack=""}I.prototype=Error.prototype;function P(w){if(process.env.NODE_ENV!=="production")var L={},U=0;function G(i,m,H,R,F,K,le){if(R=R||E,K=K||H,le!==s){if(j)l(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ae=R+":"+H;!L[ae]&&U<3&&(v(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",K,R),L[ae]=!0,U++)}}return m[H]==null?i?m[H]===null?new I("The "+F+" `"+K+"` is marked as required "+("in `"+R+"`, but its value is `null`.")):new I("The "+F+" `"+K+"` is marked as required in "+("`"+R+"`, but its value is `undefined`.")):null:w(m,H,R,F,K)}var Y=G.bind(null,!1);return Y.isRequired=G.bind(null,!0),Y}function b(w){function L(U,G,Y,i,m,H){var R=U[G],F=ce(R);if(F!==w){var K=q(R);return new I("Invalid "+i+" `"+m+"` of type "+("`"+K+"` supplied to `"+Y+"`, expected ")+("`"+w+"`."))}return null}return P(L)}function k(){return P(u.thatReturnsNull)}function T(w){function L(U,G,Y,i,m){if(typeof w!="function")return new I("Property `"+m+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var H=U[G];if(!Array.isArray(H)){var R=ce(H);return new I("Invalid "+i+" `"+m+"` of type "+("`"+R+"` supplied to `"+Y+"`, expected an array."))}for(var F=0;F<H.length;F++){var K=w(H,F,Y,i,m+"["+F+"]",s);if(K instanceof Error)return K}return null}return P(L)}function $(){function w(L,U,G,Y,i){var m=L[U];if(!N(m)){var H=ce(m);return new I("Invalid "+Y+" `"+i+"` of type "+("`"+H+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return P(w)}function ee(w){function L(U,G,Y,i,m){if(!(U[G]instanceof w)){var H=w.name||E,R=pe(U[G]);return new I("Invalid "+i+" `"+m+"` of type "+("`"+R+"` supplied to `"+Y+"`, expected ")+("instance of `"+H+"`."))}return null}return P(L)}function W(w){if(!Array.isArray(w))return process.env.NODE_ENV!=="production"&&v(!1,"Invalid argument supplied to oneOf, expected an instance of array."),u.thatReturnsNull;function L(U,G,Y,i,m){for(var H=U[G],R=0;R<w.length;R++)if(z(H,w[R]))return null;var F=JSON.stringify(w);return new I("Invalid "+i+" `"+m+"` of value `"+H+"` "+("supplied to `"+Y+"`, expected one of "+F+"."))}return P(L)}function O(w){function L(U,G,Y,i,m){if(typeof w!="function")return new I("Property `"+m+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var H=U[G],R=ce(H);if(R!=="object")return new I("Invalid "+i+" `"+m+"` of type "+("`"+R+"` supplied to `"+Y+"`, expected an object."));for(var F in H)if(H.hasOwnProperty(F)){var K=w(H,F,Y,i,m+"."+F,s);if(K instanceof Error)return K}return null}return P(L)}function X(w){if(!Array.isArray(w))return process.env.NODE_ENV!=="production"&&v(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),u.thatReturnsNull;for(var L=0;L<w.length;L++){var U=w[L];if(typeof U!="function")return v(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",de(U),L),u.thatReturnsNull}function G(Y,i,m,H,R){for(var F=0;F<w.length;F++){var K=w[F];if(K(Y,i,m,H,R,s)==null)return null}return new I("Invalid "+H+" `"+R+"` supplied to "+("`"+m+"`."))}return P(G)}function re(){function w(L,U,G,Y,i){return ne(L[U])?null:new I("Invalid "+Y+" `"+i+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return P(w)}function ue(w){function L(U,G,Y,i,m){var H=U[G],R=ce(H);if(R!=="object")return new I("Invalid "+i+" `"+m+"` of type `"+R+"` "+("supplied to `"+Y+"`, expected `object`."));for(var F in w){var K=w[F];if(K){var le=K(H,F,Y,i,m+"."+F,s);if(le)return le}}return null}return P(L)}function fe(w){function L(U,G,Y,i,m){var H=U[G],R=ce(H);if(R!=="object")return new I("Invalid "+i+" `"+m+"` of type `"+R+"` "+("supplied to `"+Y+"`, expected `object`."));var F=f({},U[G],w);for(var K in F){var le=w[K];if(!le)return new I("Invalid "+i+" `"+m+"` key `"+K+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(U[G],null," ")+`
56
+ Valid keys: `+JSON.stringify(Object.keys(w),null," "));var ae=le(H,K,Y,i,m+"."+K,s);if(ae)return ae}return null}return P(L)}function ne(w){switch(typeof w){case"number":case"string":case"undefined":return!0;case"boolean":return!w;case"object":if(Array.isArray(w))return w.every(ne);if(w===null||N(w))return!0;var L=C(w);if(L){var U=L.call(w),G;if(L!==w.entries){for(;!(G=U.next()).done;)if(!ne(G.value))return!1}else for(;!(G=U.next()).done;){var Y=G.value;if(Y&&!ne(Y[1]))return!1}}else return!1;return!0;default:return!1}}function he(w,L){return w==="symbol"||L["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&L instanceof Symbol}function ce(w){var L=typeof w;return Array.isArray(w)?"array":w instanceof RegExp?"object":he(L,w)?"symbol":L}function q(w){if(typeof w>"u"||w===null)return""+w;var L=ce(w);if(L==="object"){if(w instanceof Date)return"date";if(w instanceof RegExp)return"regexp"}return L}function de(w){var L=q(w);switch(L){case"array":case"object":return"an "+L;case"boolean":case"date":case"regexp":return"a "+L;default:return L}}function pe(w){return!w.constructor||!w.constructor.name?E:w.constructor.name}return M.checkPropTypes=h,M.PropTypes=M,M}},function(o,c,d){var u=d(1),l=d(0),v=d(4);o.exports=function(){function f(N,j,_,V,C,E){E!==v&&l(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}f.isRequired=f;function s(){return f}var h={array:f,bool:f,func:f,number:f,object:f,string:f,symbol:f,any:f,arrayOf:s,element:f,instanceOf:s,node:f,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s};return h.checkPropTypes=u,h.PropTypes=h,h}},function(o,c,d){Object.defineProperty(c,"__esModule",{value:!0});var u=d(15);Object.defineProperty(c,"blank",{enumerable:!0,get:function(){return V(u).default}});var l=d(16);Object.defineProperty(c,"balls",{enumerable:!0,get:function(){return V(l).default}});var v=d(17);Object.defineProperty(c,"bars",{enumerable:!0,get:function(){return V(v).default}});var f=d(18);Object.defineProperty(c,"bubbles",{enumerable:!0,get:function(){return V(f).default}});var s=d(19);Object.defineProperty(c,"cubes",{enumerable:!0,get:function(){return V(s).default}});var h=d(20);Object.defineProperty(c,"cylon",{enumerable:!0,get:function(){return V(h).default}});var N=d(21);Object.defineProperty(c,"spin",{enumerable:!0,get:function(){return V(N).default}});var j=d(22);Object.defineProperty(c,"spinningBubbles",{enumerable:!0,get:function(){return V(j).default}});var _=d(23);Object.defineProperty(c,"spokes",{enumerable:!0,get:function(){return V(_).default}});function V(C){return C&&C.__esModule?C:{default:C}}},function(o,c){o.exports=`<svg class="icon-blank" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>
57
57
  `},function(o,c){o.exports=`<svg class="icon-loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
58
58
  <path transform="translate(-8 0)" d="M4 12 A4 4 0 0 0 4 20 A4 4 0 0 0 4 12">
59
59
  <animateTransform attributeName="transform" type="translate" values="-8 0; 2 0; 2 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.25;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
@@ -185,4 +185,4 @@ Valid keys: `+JSON.stringify(Object.keys(w),null," "));var ne=se(_,U,B,i,m+"."+
185
185
  <animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.875s"/>
186
186
  </path>
187
187
  </svg>
188
- `}])})})(Dt);var _n=Dt.exports;const Ft=jt(_n),An=({fileUploadConfig:n,allowedFileExtensions:h})=>{const[o,c]=V.useState([]),[d,u]=V.useState(!1),[l,v]=V.useState({}),f=p=>{p.preventDefault(),u(!1);const C=Array.from(p.dataTransfer.files);C.length>0&&c(b=>[...b,...C])},s=p=>{const C=Array.from(p.target.files);C.length>0&&c(b=>[...b,...C])};return r.jsxs("div",{className:`fm-upload-file ${o.length>0?"file-selcted":""}`,children:[r.jsxs("div",{className:"select-files",children:[r.jsx("div",{className:`draggable-file-input ${d?"dragging":""}`,onDrop:f,onDragOver:p=>p.preventDefault(),onDragEnter:()=>u(!0),onDragLeave:()=>u(!1),children:r.jsxs("div",{className:"input-text",children:[r.jsx(Sn,{size:30}),r.jsx("span",{children:"Drag files to upload"})]})}),r.jsx("div",{className:"btn-choose-file",children:r.jsxs(Pe,{padding:"0",children:[r.jsx("label",{htmlFor:"chooseFile",children:"Choose File"}),r.jsx("input",{type:"file",id:"chooseFile",className:"choose-file-input",onChange:s,multiple:!0,accept:h})]})})]}),o.length>0&&r.jsxs("div",{className:"files-progress",children:[r.jsx("div",{className:"heading",children:Object.values(l).some(p=>p)?r.jsxs(r.Fragment,{children:[r.jsx("h2",{children:"Uploading"}),r.jsx(Ft,{type:"cylon",color:"black",height:18,width:20})]}):r.jsx("h2",{children:"Completed"})}),r.jsx("ul",{children:o.map((p,C)=>r.jsx(Mn,{index:C,file:p,fileUploadConfig:n,setIsUploading:v},C))})]})]})},Vn=({files:n,fileUploadConfig:h,triggerAction:o,currentPath:c,currentPathFiles:d,selectedFile:u,setSelectedFile:l,handleCreateFolder:v,handleRename:f,setIsItemSelection:s,handleDelete:p,allowedFileExtensions:C})=>{const[b,I]=V.useState(null),k={createFolder:{title:"Create Folder",component:r.jsx(wn,{files:n,currentPath:c,currentPathFiles:d,triggerAction:o,handleCreateFolder:v}),width:"25%"},uploadFile:{title:"Upload File",component:r.jsx(An,{fileUploadConfig:h,allowedFileExtensions:C}),width:"35%"},rename:{title:"Rename",component:r.jsx(On,{files:n,selectedFile:u,currentPathFiles:d,triggerAction:o,handleRename:f,setSelectedFile:l}),width:"25%"},delete:{title:"Delete",component:r.jsx(En,{files:n,selectedFile:u,triggerAction:o,handleDelete:p,setIsItemSelection:s,setSelectedFile:l}),width:"25%"},preview:{title:"Preview"}};return V.useEffect(()=>{if(o.isActive){const E=o.actionType;I(k[E])}else I(null)},[o.isActive]),r.jsx(jn,{heading:b==null?void 0:b.title,show:o.isActive,setShow:o.close,dialogWidth:b==null?void 0:b.width,children:b==null?void 0:b.component})},zn=({isLoading:n})=>{if(n)return r.jsx("div",{className:"fm-loader",children:r.jsx(Ft,{color:"black",type:"spokes",height:50,width:50})})},Hn=({files:n,fileUploadConfig:h,isLoading:o,onCreateFolder:c,onRename:d,onDelete:u,onPaste:l,onRefresh:v,allowedFileExtensions:f})=>{const s=xn(),[p,C]=V.useState(!1),[b,I]=V.useState(null),[k,E]=V.useState(""),[L,z]=V.useState([]),[T,H]=V.useState(null);V.useEffect(()=>{z(()=>n==null?void 0:n.filter(J=>J.path===k))},[n,k]);const[P,y]=V.useState({col1:"20",col2:"80"}),[R,M]=V.useState(!1),$=V.useRef(null),te=()=>{M(!0)},q=()=>{M(!1)},A=J=>{if(!R)return;J.preventDefault();const le=$.current.getBoundingClientRect(),ce=(J.clientX-le.left)/le.width*100;ce>=15&&ce<=60&&y({col1:ce,col2:100-ce})};return r.jsxs("main",{className:"file-explorer",children:[r.jsx(zn,{isLoading:o}),r.jsx(cn,{allowCreateFolder:!0,allowUploadFile:!0,handleRefresh:v,isItemSelection:p,setIsItemSelection:C,currentPath:k,selectedFile:b,setSelectedFile:I,files:n,clipBoard:T,setClipBoard:H,handlePaste:l,triggerAction:s}),r.jsxs("section",{ref:$,onMouseMove:A,onMouseUp:q,className:"files-container",children:[r.jsxs("div",{className:"navigation-pane",style:{width:P.col1+"%"},children:[r.jsx(pn,{files:n,currentPath:k,setCurrentPath:E}),r.jsx("div",{className:`sidebar-resize ${R?"sidebar-dragging":""}`,onMouseDown:te})]}),r.jsxs("div",{className:"folers-preview",style:{width:P.col2+"%"},children:[r.jsx(hn,{currentPath:k,setCurrentPath:E}),r.jsx(bn,{currentPathFiles:L,setCurrentPath:E,isItemSelection:p,setIsItemSelection:C,setSelectedFile:I,currentPath:k,clipBoard:T,setClipBoard:H,handlePaste:l,files:n,triggerAction:s})]})]}),r.jsx(Vn,{files:n,fileUploadConfig:h,currentPath:k,currentPathFiles:L,selectedFile:b,triggerAction:s,handleCreateFolder:c,handleRename:d,handleDelete:u,setIsItemSelection:C,setSelectedFile:I,allowedFileExtensions:f})]})};Se.FileManager=Hn,Object.defineProperty(Se,Symbol.toStringTag,{value:"Module"})});
188
+ `}])})})(Dt);var _n=Dt.exports;const Ft=jt(_n),An=({fileUploadConfig:n,allowedFileExtensions:p,handleFileUploading:o,handleFileUploaded:c,currentFolder:d})=>{const[u,l]=D.useState([]),[v,f]=D.useState(!1),[s,h]=D.useState({}),N=_=>{_.preventDefault(),f(!1);const V=Array.from(_.dataTransfer.files);if(V.length>0){const C=V.map(E=>{const M=o(E,d);return{file:E,appendData:M}});l(E=>[...E,...C])}},j=_=>{const V=Array.from(_.target.files);if(V.length>0){const C=V.map(E=>{const M=o(E,d);return{file:E,appendData:M}});l(E=>[...E,...C])}};return r.jsxs("div",{className:`fm-upload-file ${u.length>0?"file-selcted":""}`,children:[r.jsxs("div",{className:"select-files",children:[r.jsx("div",{className:`draggable-file-input ${v?"dragging":""}`,onDrop:N,onDragOver:_=>_.preventDefault(),onDragEnter:()=>f(!0),onDragLeave:()=>f(!1),children:r.jsxs("div",{className:"input-text",children:[r.jsx(Sn,{size:30}),r.jsx("span",{children:"Drag files to upload"})]})}),r.jsx("div",{className:"btn-choose-file",children:r.jsxs(Pe,{padding:"0",children:[r.jsx("label",{htmlFor:"chooseFile",children:"Choose File"}),r.jsx("input",{type:"file",id:"chooseFile",className:"choose-file-input",onChange:j,multiple:!0,accept:p})]})})]}),u.length>0&&r.jsxs("div",{className:"files-progress",children:[r.jsx("div",{className:"heading",children:Object.values(s).some(_=>_)?r.jsxs(r.Fragment,{children:[r.jsx("h2",{children:"Uploading"}),r.jsx(Ft,{type:"cylon",color:"black",height:18,width:20})]}):r.jsx("h2",{children:"Completed"})}),r.jsx("ul",{children:u.map((_,V)=>r.jsx(Mn,{index:V,fileData:_,fileUploadConfig:n,setIsUploading:h,handleFileUploaded:c},V))})]})]})},Vn=({files:n,fileUploadConfig:p,triggerAction:o,currentPath:c,currentPathFiles:d,selectedFile:u,setSelectedFile:l,handleCreateFolder:v,handleFileUploading:f,handleFileUploaded:s,currentFolder:h,handleRename:N,setIsItemSelection:j,handleDelete:_,allowedFileExtensions:V})=>{const[C,E]=D.useState(null),M={createFolder:{title:"Create Folder",component:r.jsx(wn,{files:n,currentPath:c,currentPathFiles:d,triggerAction:o,handleCreateFolder:v,currentFolder:h}),width:"25%"},uploadFile:{title:"Upload File",component:r.jsx(An,{fileUploadConfig:p,allowedFileExtensions:V,handleFileUploading:f,handleFileUploaded:s,currentFolder:h}),width:"35%"},rename:{title:"Rename",component:r.jsx(On,{files:n,selectedFile:u,currentPathFiles:d,triggerAction:o,handleRename:N,setSelectedFile:l}),width:"25%"},delete:{title:"Delete",component:r.jsx(En,{files:n,selectedFile:u,triggerAction:o,handleDelete:_,setIsItemSelection:j,setSelectedFile:l}),width:"25%"},preview:{title:"Preview"}};return D.useEffect(()=>{if(o.isActive){const z=o.actionType;E(M[z])}else E(null)},[o.isActive]),r.jsx(jn,{heading:C==null?void 0:C.title,show:o.isActive,setShow:o.close,dialogWidth:C==null?void 0:C.width,children:C==null?void 0:C.component})},zn=({isLoading:n})=>{if(n)return r.jsx("div",{className:"fm-loader",children:r.jsx(Ft,{color:"black",type:"spokes",height:50,width:50})})},Hn=({files:n,fileUploadConfig:p,isLoading:o,onCreateFolder:c,onFileUploading:d,onFileUploaded:u,onRename:l,onDelete:v,onPaste:f,onRefresh:s,allowedFileExtensions:h})=>{const N=xn(),[j,_]=D.useState(!1),[V,C]=D.useState(null),[E,M]=D.useState(""),[z,I]=D.useState(null),[P,b]=D.useState([]),[k,T]=D.useState(null);D.useEffect(()=>{b(()=>n==null?void 0:n.filter(ne=>ne.path===`${E}/${ne.name}`)),I(()=>n==null?void 0:n.find(ne=>ne.path===E))},[n,E]);const[$,ee]=D.useState({col1:"20",col2:"80"}),[W,O]=D.useState(!1),X=D.useRef(null),re=()=>{O(!0)},ue=()=>{O(!1)},fe=ne=>{if(!W)return;ne.preventDefault();const ce=X.current.getBoundingClientRect(),q=(ne.clientX-ce.left)/ce.width*100;q>=15&&q<=60&&ee({col1:q,col2:100-q})};return r.jsxs("main",{className:"file-explorer",children:[r.jsx(zn,{isLoading:o}),r.jsx(cn,{allowCreateFolder:!0,allowUploadFile:!0,handleRefresh:s,isItemSelection:j,setIsItemSelection:_,currentPath:E,selectedFile:V,setSelectedFile:C,files:n,clipBoard:k,setClipBoard:T,handlePaste:f,triggerAction:N}),r.jsxs("section",{ref:X,onMouseMove:fe,onMouseUp:ue,className:"files-container",children:[r.jsxs("div",{className:"navigation-pane",style:{width:$.col1+"%"},children:[r.jsx(pn,{files:n,currentPath:E,setCurrentPath:M}),r.jsx("div",{className:`sidebar-resize ${W?"sidebar-dragging":""}`,onMouseDown:re})]}),r.jsxs("div",{className:"folers-preview",style:{width:$.col2+"%"},children:[r.jsx(hn,{currentPath:E,setCurrentPath:M}),r.jsx(bn,{currentPathFiles:P,setCurrentPath:M,isItemSelection:j,setIsItemSelection:_,setSelectedFile:C,currentPath:E,clipBoard:k,setClipBoard:T,handlePaste:f,files:n,triggerAction:N})]})]}),r.jsx(Vn,{files:n,fileUploadConfig:p,currentPath:E,currentPathFiles:P,selectedFile:V,triggerAction:N,handleCreateFolder:c,handleFileUploading:d,handleFileUploaded:u,currentFolder:z,handleRename:l,handleDelete:v,setIsItemSelection:_,setSelectedFile:C,allowedFileExtensions:h})]})};Se.FileManager=Hn,Object.defineProperty(Se,Symbol.toStringTag,{value:"Module"})});