filecat 5.50.8 → 5.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/build/dist/{133.1198e7c547ab5348a487.js → 133.0f5c2b4b21220468364e.js} +1 -1
  2. package/build/dist/{181.ae539e974520b37354b6.js → 181.802385cb2535220f3821.js} +2 -2
  3. package/build/dist/214.601730564c7092bbf8cc.js +2 -0
  4. package/build/dist/{377.cb0340f3ae54559720ab.js → 377.5e0227a3ecc6ce4e048f.js} +2 -2
  5. package/build/dist/603.000b1e7fabd563443b56.js +2 -0
  6. package/build/dist/811.b651f0b78f8dc24da0ff.js +2 -0
  7. package/build/dist/903.90782cbd7ea1a83206e3.js +1 -0
  8. package/build/dist/{923.fba9f43871428c600902.js → 923.92438b8c326499109cb0.js} +1 -1
  9. package/build/dist/{931.48fb757b23a88b35e7ca.js → 931.55164131a295598b418a.js} +2 -2
  10. package/build/dist/{943.24b700c91c1c267592ac.js → 943.c33010ccba0555bdf261.js} +2 -2
  11. package/build/dist/index.html +1 -1
  12. package/build/dist/main.2588574cdf38e04c2bc5.js +2 -0
  13. package/build/main.js +1 -1
  14. package/package.json +1 -1
  15. package/build/dist/214.d76bdae58c76d429f6ec.js +0 -2
  16. package/build/dist/603.70cd821596b670128f19.js +0 -2
  17. package/build/dist/811.f3b69c125092e09ee6c8.js +0 -2
  18. package/build/dist/903.e23c09f7e3cabf5cc346.js +0 -1
  19. package/build/dist/main.dd972c0f3af3913b74e2.js +0 -2
  20. /package/build/dist/{181.ae539e974520b37354b6.js.LICENSE.txt → 181.802385cb2535220f3821.js.LICENSE.txt} +0 -0
  21. /package/build/dist/{214.d76bdae58c76d429f6ec.js.LICENSE.txt → 214.601730564c7092bbf8cc.js.LICENSE.txt} +0 -0
  22. /package/build/dist/{377.cb0340f3ae54559720ab.js.LICENSE.txt → 377.5e0227a3ecc6ce4e048f.js.LICENSE.txt} +0 -0
  23. /package/build/dist/{603.70cd821596b670128f19.js.LICENSE.txt → 603.000b1e7fabd563443b56.js.LICENSE.txt} +0 -0
  24. /package/build/dist/{811.f3b69c125092e09ee6c8.js.LICENSE.txt → 811.b651f0b78f8dc24da0ff.js.LICENSE.txt} +0 -0
  25. /package/build/dist/{931.48fb757b23a88b35e7ca.js.LICENSE.txt → 931.55164131a295598b418a.js.LICENSE.txt} +0 -0
  26. /package/build/dist/{943.24b700c91c1c267592ac.js.LICENSE.txt → 943.c33010ccba0555bdf261.js.LICENSE.txt} +0 -0
  27. /package/build/dist/{main.dd972c0f3af3913b74e2.js.LICENSE.txt → main.2588574cdf38e04c2bc5.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
- /*! For license information please see 931.48fb757b23a88b35e7ca.js.LICENSE.txt */
2
- (self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[627,931],{5219(t){!function(){var e=function(t,n){var r=this;e.count=(e.count||0)+1,this.count=e.count,this.isOpened=!1,this.input=i(t),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-autocomplete","list"),this.input.setAttribute("aria-expanded","false"),this.input.setAttribute("aria-controls","awesomplete_list_"+this.count),this.input.setAttribute("aria-owns","awesomplete_list_"+this.count),this.input.setAttribute("role","combobox"),this.options=n=n||{},function(t,e,n){for(var r in e){var i=e[r],o=t.input.getAttribute("data-"+r.toLowerCase());t[r]="number"==typeof i?parseInt(o):!1===i?null!==o:i instanceof Function?null:o,t[r]||0===t[r]||(t[r]=r in n?n[r]:i)}}(this,{minChars:2,maxItems:10,autoFirst:!1,data:e.DATA,filter:e.FILTER_CONTAINS,sort:!1!==n.sort&&e.SORT_BYLENGTH,container:e.CONTAINER,item:e.ITEM,replace:e.REPLACE,tabSelect:!1,listLabel:"Results List",statusNoResults:"No results found",statusXResults:"{0} results found",statusTypeXChar:"Type {0} or more characters for results"},n),this.index=-1,this.container=this.container(t),this.ul=i.create("ul",{hidden:"hidden",role:"listbox",id:"awesomplete_list_"+this.count,inside:this.container,"aria-label":this.listLabel}),this.status=i.create("span",{className:"visually-hidden",role:"status","aria-live":"assertive","aria-atomic":!0,inside:this.container,textContent:""}),this._events={input:{input:this.evaluate.bind(this),blur:this.close.bind(this,{reason:"blur"}),keydown:function(t){var e=t.keyCode;r.opened&&(13===e&&r.selected||9===e&&r.selected&&r.tabSelect?(t.preventDefault(),r.select(void 0,void 0,t)):27===e?r.close({reason:"esc"}):38!==e&&40!==e||(t.preventDefault(),r[38===e?"previous":"next"]()))}},form:{submit:this.close.bind(this,{reason:"submit"})},ul:{mousedown:function(t){t.preventDefault()},click:function(t){var e=t.target;if(e!==this){for(;e&&!/li/i.test(e.nodeName);)e=e.parentNode;e&&0===t.button&&(t.preventDefault(),r.select(e,t.target,t))}}}},i.bind(this.input,this._events.input),i.bind(this.input.form,this._events.form),i.bind(this.ul,this._events.ul),this.input.hasAttribute("list")?(this.list="#"+this.input.getAttribute("list"),this.input.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||n.list||[],e.all.push(this)};function n(t){var e=Array.isArray(t)?{label:t[0],value:t[1]}:"object"==typeof t&&"label"in t&&"value"in t?t:{label:t,value:t};this.label=e.label||e.value,this.value=e.value}e.prototype={set list(t){if(Array.isArray(t))this._list=t;else if("string"==typeof t&&t.indexOf(",")>-1)this._list=t.split(/\s*,\s*/);else if((t=i(t))&&t.children){var e=[];r.apply(t.children).forEach(function(t){if(!t.disabled){var n=t.textContent.trim(),r=t.value||n,i=t.label||n;""!==r&&e.push({label:i,value:r})}}),this._list=e}document.activeElement===this.input&&this.evaluate()},get selected(){return this.index>-1},get opened(){return this.isOpened},close:function(t){this.opened&&(this.input.setAttribute("aria-expanded","false"),this.ul.setAttribute("hidden",""),this.isOpened=!1,this.index=-1,this.status.setAttribute("hidden",""),this.input.setAttribute("aria-activedescendant",""),i.fire(this.input,"awesomplete-close",t||{}))},open:function(){this.input.setAttribute("aria-expanded","true"),this.ul.removeAttribute("hidden"),this.isOpened=!0,this.status.removeAttribute("hidden"),this.autoFirst&&-1===this.index&&this.goto(0),i.fire(this.input,"awesomplete-open")},destroy:function(){if(i.unbind(this.input,this._events.input),i.unbind(this.input.form,this._events.form),!this.options.container){var t=this.container.parentNode;t.insertBefore(this.input,this.container),t.removeChild(this.container)}this.input.removeAttribute("autocomplete"),this.input.removeAttribute("aria-autocomplete"),this.input.removeAttribute("aria-expanded"),this.input.removeAttribute("aria-controls"),this.input.removeAttribute("aria-owns"),this.input.removeAttribute("role");var n=e.all.indexOf(this);-1!==n&&e.all.splice(n,1)},next:function(){var t=this.ul.children.length;this.goto(this.index<t-1?this.index+1:t?0:-1)},previous:function(){var t=this.ul.children.length,e=this.index-1;this.goto(this.selected&&-1!==e?e:t-1)},goto:function(t){var e=this.ul.children;this.selected&&e[this.index].setAttribute("aria-selected","false"),this.index=t,t>-1&&e.length>0&&(e[t].setAttribute("aria-selected","true"),this.input.setAttribute("aria-activedescendant",this.ul.id+"_item_"+this.index),this.ul.scrollTop=e[t].offsetTop-this.ul.clientHeight+e[t].clientHeight,i.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(t,e,n){if(t?this.index=i.siblingIndex(t):t=this.ul.children[this.index],t){var r=this.suggestions[this.index];i.fire(this.input,"awesomplete-select",{text:r,origin:e||t,originalEvent:n})&&(this.replace(r),this.close({reason:"select"}),i.fire(this.input,"awesomplete-selectcomplete",{text:r,originalEvent:n}))}},evaluate:function(){var t=this,e=this.input.value;e.length>=this.minChars&&this._list&&this._list.length>0?(this.index=-1,this.ul.innerHTML="",this.suggestions=this._list.map(function(r){return new n(t.data(r,e))}).filter(function(n){return t.filter(n,e)}),!1!==this.sort&&(this.suggestions=this.suggestions.sort(this.sort)),this.suggestions=this.suggestions.slice(0,this.maxItems),this.suggestions.forEach(function(n,r){t.ul.appendChild(t.item(n,e,r))}),0===this.ul.children.length?(this.status.textContent=this.statusNoResults,this.close({reason:"nomatches"})):(this.input.setAttribute("aria-activedescendant",""),this.open(),this.status.textContent=this.statusXResults.replaceAll("{0}",this.ul.children.length))):(this.close({reason:"nomatches"}),this.minChar<=1||e.length>=this.minChars?this.status.textContent=this.statusNoResults:this.status.textContent=this.statusTypeXChar.replaceAll("{0}",this.minChars))}},e.all=[],e.FILTER_CONTAINS=function(t,e){return RegExp(i.regExpEscape(e.trim()),"i").test(t)},e.FILTER_STARTSWITH=function(t,e){return RegExp("^"+i.regExpEscape(e.trim()),"i").test(t)},e.SORT_BYLENGTH=function(t,e){return t.length!==e.length?t.length-e.length:t<e?-1:1},e.CONTAINER=function(t){return i.create("div",{className:"awesomplete",around:t})},e.ITEM=function(t,e,n){var r=""===e.trim()?t:t.replace(RegExp(i.regExpEscape(e.trim()),"gi"),"<mark>$&</mark>");return i.create("li",{innerHTML:r,role:"option","aria-selected":"false",tabindex:"-1",id:"awesomplete_list_"+this.count+"_item_"+n})},e.REPLACE=function(t){this.input.value=t.value},e.DATA=function(t){return t},Object.defineProperty(n.prototype=Object.create(String.prototype),"length",{get:function(){return this.label.length}}),n.prototype.toString=n.prototype.valueOf=function(){return""+this.label};var r=Array.prototype.slice;function i(t,e){return"string"==typeof t?(e||document).querySelector(t):t||null}function o(t,e){return r.call((e||document).querySelectorAll(t))}function a(){o("input.awesomplete").forEach(function(t){new e(t)})}i.create=function(t,e){var n=document.createElement(t);for(var r in e){var o=e[r];if("inside"===r)i(o).appendChild(n);else if("around"===r){var a=i(o);a.parentNode.insertBefore(n,a),n.appendChild(a),null!=a.getAttribute("autofocus")&&a.focus()}else r in n?n[r]=o:n.setAttribute(r,o)}return n},i.bind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.addEventListener(e,r)})}},i.unbind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.removeEventListener(e,r)})}},i.fire=function(t,e,n){var r=document.createEvent("HTMLEvents");for(var i in r.initEvent(e,!0,!0),n)r[i]=n[i];return t.dispatchEvent(r)},i.regExpEscape=function(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},i.siblingIndex=function(t){for(var e=0;t=t.previousElementSibling;e++);return e},"undefined"!=typeof self&&(self.Awesomplete=e),"undefined"!=typeof Document&&("loading"!==document.readyState?a():document.addEventListener("DOMContentLoaded",a)),e.$=i,e.$$=o,t.exports&&(t.exports=e)}()},96(t,e,n){"use strict";n.d(e,{QW:()=>at,Ic:()=>lt,t$:()=>ut,$J:()=>st});var r=n(6540),i=n(7022),o=n(7444),a=n(6417),l=n(7767),u=n(4694),s=n(4284),c=n(4289),f=n(3430);function d(){return d=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},d.apply(null,arguments)}function h(t){return function(t){if(Array.isArray(t))return w(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||g(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof l?r:l,s=Object.create(u.prototype);return m(s,"_invoke",function(n,r,i){var o,l,u,s=0,c=i||[],f=!1,d={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return o=e,l=0,u=t,d.n=n,a}};function h(n,r){for(l=n,u=r,e=0;!f&&s&&!i&&e<c.length;e++){var i,o=c[e],h=d.p,p=o[2];n>3?(i=p===r)&&(u=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=t):o[0]<=h&&((i=n<2&&h<o[1])?(l=0,d.v=r,d.n=o[1]):h<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,d.n=p,l=0))}if(i||n>1)return a;throw f=!0,r}return function(i,c,p){if(s>1)throw TypeError("Generator is already running");for(f&&1===c&&h(c,p),l=c,u=p;(e=l<2?t:u)||!f;){o||(l?l<3?(l>1&&(d.n=-1),h(l,u)):d.n=u:d.v=u);try{if(s=2,o){if(l||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=o.return)&&e.call(o),l<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=t}else if((e=(f=d.n<0)?u:n.call(r,d))!==a)break}catch(e){o=t,l=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,i,o),!0),s}var a={};function l(){}function u(){}function s(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(m(e={},r,function(){return this}),e),f=s.prototype=l.prototype=Object.create(c);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,m(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,m(f,"constructor",s),m(s,"constructor",u),u.displayName="GeneratorFunction",m(s,i,"GeneratorFunction"),m(f),m(f,i,"Generator"),m(f,r,function(){return this}),m(f,"toString",function(){return"[object Generator]"}),(p=function(){return{w:o,m:d}})()}function m(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}m=function(t,e,n,r){function o(e,n){m(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},m(t,e,n,r)}function v(t,e,n,r,i,o,a){try{var l=t[o](a),u=l.value}catch(t){return void n(t)}l.done?e(u):Promise.resolve(u).then(r,i)}function y(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){v(o,r,i,a,l,"next",t)}function l(t){v(o,r,i,a,l,"throw",t)}a(void 0)})}}function b(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(t,e)||g(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){if(t){if("string"==typeof t)return w(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(t,e):void 0}}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function _(t){var e,n,l=b((0,o.L4)(a.A.selectedFileList),2),c=l[0],m=l[1],v=b((0,o.L4)(a.A.nowFileList),2),g=v[0],w=(v[1],b((0,o.L4)(a.A.confirm),2)),_=(w[0],w[1]),A=b((0,o.L4)(a.A.user_base_info),2),x=A[0];A[1];function E(){return(E=y(p().m(function e(n){return p().w(function(e){for(;;)switch(e.n){case 0:t.click&&t.click(n,t.name);case 1:return e.a(2)}},e)}))).apply(this,arguments)}return r.createElement("div",d({},t.extraAttr,{onClick:function(){!function(t){E.apply(this,arguments)}(t.index)},className:"item",role:"button","data-type":t.isLink?"invalid_link":t.type,"data-dir":!t.type||t.type===i.Iw.folder,"aria-selected":null!==(0,u.kW)(c,t.index),"aria-label":t.name,style:{"--filewidth":null!==(e=t.itemWidth)&&void 0!==e?e:"33%"},onDragStart:function(e){return n=t.index,void(c.find(function(t){return t===n})||m([].concat(h(c),[n])));var n},onDrop:function(e){return function(e,n){for(var r,o,a=e.dataTransfer,l=!1,u=0;u<a.items.length;u++)if("file"===a.items[u].kind){l=!0;break}if(!l){var s,c,d;if((null==x||null===(r=x.user_data)||void 0===r?void 0:r.file_list_pagination_mode)===f.yM.pagination){if(s=g.files[n],(null===(c=g.files[n])||void 0===c?void 0:c.type)!==i.Iw.folder)return}else if(s=g.folders[n],g.folders.length<=n)return;_({open:!0,title:"确定将文件移动并覆盖到".concat(null===(o=s)||void 0===o?void 0:o.name,"吗?"),handle:(d=y(p().m(function e(){var n;return p().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t.draggable_handle(null===(n=s)||void 0===n?void 0:n.name);case 1:return e.a(2)}},e)})),function(){return d.apply(this,arguments)})})}}(e,t.index)},draggable:void 0!==t.draggable_handle}),void 0===t.icon&&r.createElement("div",null,t.type!==i.Iw.image||null==t.path||null!=x&&null!==(n=x.user_data)&&void 0!==n&&n.not_pre_show_image?r.createElement("i",{className:"material-icons"}):r.createElement("img",{loading:"lazy",src:s.$M.getDownloadUrl(t.path,{mtime:t.mtime,cache:1}),alt:t.name})),void 0!==t.icon&&r.createElement("div",{className:"rotating-div"},r.createElement("span",{className:"material-icons"},t.icon)),r.createElement("div",null,r.createElement("p",{className:"name"},t.name),t.size?r.createElement("p",null,t.size):r.createElement("p",null,"—"),r.createElement("p",null,t.show_mtime)),t.children)}var A=n(6325),x=n(4251),E=n(2389),k=n(8247),S=n(9214);function O(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof l?r:l,s=Object.create(u.prototype);return j(s,"_invoke",function(n,r,i){var o,l,u,s=0,c=i||[],f=!1,d={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return o=e,l=0,u=t,d.n=n,a}};function h(n,r){for(l=n,u=r,e=0;!f&&s&&!i&&e<c.length;e++){var i,o=c[e],h=d.p,p=o[2];n>3?(i=p===r)&&(u=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=t):o[0]<=h&&((i=n<2&&h<o[1])?(l=0,d.v=r,d.n=o[1]):h<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,d.n=p,l=0))}if(i||n>1)return a;throw f=!0,r}return function(i,c,p){if(s>1)throw TypeError("Generator is already running");for(f&&1===c&&h(c,p),l=c,u=p;(e=l<2?t:u)||!f;){o||(l?l<3?(l>1&&(d.n=-1),h(l,u)):d.n=u:d.v=u);try{if(s=2,o){if(l||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=o.return)&&e.call(o),l<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=t}else if((e=(f=d.n<0)?u:n.call(r,d))!==a)break}catch(e){o=t,l=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,i,o),!0),s}var a={};function l(){}function u(){}function s(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(j(e={},r,function(){return this}),e),f=s.prototype=l.prototype=Object.create(c);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,j(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,j(f,"constructor",s),j(s,"constructor",u),u.displayName="GeneratorFunction",j(s,i,"GeneratorFunction"),j(f),j(f,i,"Generator"),j(f,r,function(){return this}),j(f,"toString",function(){return"[object Generator]"}),(O=function(){return{w:o,m:d}})()}function j(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}j=function(t,e,n,r){function o(e,n){j(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},j(t,e,n,r)}function L(t){return function(t){if(Array.isArray(t))return P(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||F(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(t,e,n,r,i,o,a){try{var l=t[o](a),u=l.value}catch(t){return void n(t)}l.done?e(u):Promise.resolve(u).then(r,i)}function I(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){T(o,r,i,a,l,"next",t)}function l(t){T(o,r,i,a,l,"throw",t)}a(void 0)})}}function C(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(t,e)||F(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(t,e){if(t){if("string"==typeof t)return P(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(t,e):void 0}}function P(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function N(t){var e=C((0,o.L4)(a.A.selectedFileList),2),n=e[0],f=e[1],d=C((0,o.L4)(a.A.clickFileList),2),h=d[0],p=d[1],m=C((0,o.L4)(a.A.nowFileList),2),v=m[0],y=m[1],b=C((0,o.L4)(a.A.confirm),2),g=(b[0],b[1]),w=C((0,o.L4)(a.A.enterKey),2),j=w[0],T=(w[1],(0,k.kZ)().click_file),F=((0,E.Bd)().t,(0,l.Zp)()),P=((0,l.zy)(),function(){var e=I(O().m(function e(r,o){var a,l,s,d,m,v;return O().w(function(e){for(;;)switch(e.n){case 0:if(null!==(0,u.kW)(n,r))f((0,u.P1)(n,r));else if("ctrl"===j)f([].concat(L(n),[r]));else if("shift"===j){if(a=(0,u.a7)(n),l=a.max,s=a.min,d=[],r>=l)for(m=l;m<=r;m++)d.push(m);else for(v=s;v>=r;v--)d.push(v);f(d)}else f([r]);if(p([].concat(L(h),[r])),setTimeout(function(){p((0,u.P1)(h,r))},300),t.type!==i.Iw.folder){e.n=2;break}if(void 0===h.find(function(t){return t===r})){e.n=1;break}return F((0,u.IO)((0,c.vX)(),o)),f([]),p([]),y({files:[],folders:[]}),e.a(2);case 1:e.n=3;break;case 2:void 0!==h.find(function(t){return t===r})&&T({name:o,size:t.origin_size,opt_shell:!0,mtime:t.mtime});case 3:return e.a(2)}},e)}));return function(t,n){return e.apply(this,arguments)}}()),N=C((0,o.L4)(a.A.showPrompt),2),G=(N[0],N[1]),M=function(){var t=I(O().m(function t(e){var r,i;return O().w(function(t){for(;;)switch(t.n){case 0:return r=(0,S.ib)(v,n),i=r.map(function(t){return(0,S.Ok)(t.name)}),t.n=1,s.$M.post("cut",{files:i,to:"".concat((0,c.GG)("file",(0,c.vX)()),"/").concat(e)});case 1:t.v,f([]),g({open:!1,handle:null}),F((0,c.vX)());case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}();return r.createElement(_,{extraAttr:{onContextMenu:function(e){!function(t,e,n,r){t.preventDefault(),t.stopPropagation();var o=new x.ik;o.path=(0,u.IO)((0,c.vX)(),e),o.filename=e,o.x=t.clientX,o.y=t.clientY,o.type=n?i.Iw.folder:(0,x.uL)(e),o.size=r,G({show:!0,type:A.PromptEnum.FileMenu,overlay:!1,data:o})}(e,t.name,t.type===i.Iw.folder,t.origin_size)}},draggable_handle:M,name:t.name,index:t.index,mtime:t.mtime,size:t.size,type:t.type,isLink:t.isLink,path:t.path,icon:t.icon,show_mtime:t.show_mtime,click:P,itemWidth:t.itemWidth})}var G=n(4405),M=n(2042),z=n(8815);function R(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=X(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function W(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof l?r:l,s=Object.create(u.prototype);return B(s,"_invoke",function(n,r,i){var o,l,u,s=0,c=i||[],f=!1,d={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return o=e,l=0,u=t,d.n=n,a}};function h(n,r){for(l=n,u=r,e=0;!f&&s&&!i&&e<c.length;e++){var i,o=c[e],h=d.p,p=o[2];n>3?(i=p===r)&&(u=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=t):o[0]<=h&&((i=n<2&&h<o[1])?(l=0,d.v=r,d.n=o[1]):h<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,d.n=p,l=0))}if(i||n>1)return a;throw f=!0,r}return function(i,c,p){if(s>1)throw TypeError("Generator is already running");for(f&&1===c&&h(c,p),l=c,u=p;(e=l<2?t:u)||!f;){o||(l?l<3?(l>1&&(d.n=-1),h(l,u)):d.n=u:d.v=u);try{if(s=2,o){if(l||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=o.return)&&e.call(o),l<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=t}else if((e=(f=d.n<0)?u:n.call(r,d))!==a)break}catch(e){o=t,l=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,i,o),!0),s}var a={};function l(){}function u(){}function s(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(B(e={},r,function(){return this}),e),f=s.prototype=l.prototype=Object.create(c);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,B(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,B(f,"constructor",s),B(s,"constructor",u),u.displayName="GeneratorFunction",B(s,i,"GeneratorFunction"),B(f),B(f,i,"Generator"),B(f,r,function(){return this}),B(f,"toString",function(){return"[object Generator]"}),(W=function(){return{w:o,m:d}})()}function B(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}B=function(t,e,n,r){function o(e,n){B(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},B(t,e,n,r)}function D(t){return function(t){if(Array.isArray(t))return K(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||X(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(t,e,n,r,i,o,a){try{var l=t[o](a),u=l.value}catch(t){return void n(t)}l.done?e(u):Promise.resolve(u).then(r,i)}function H(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){$(o,r,i,a,l,"next",t)}function l(t){$(o,r,i,a,l,"throw",t)}a(void 0)})}}function U(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(t,e)||X(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(t,e){if(t){if("string"==typeof t)return K(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(t,e):void 0}}function K(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function J(t){var e=U((0,o.L4)(a.A.selectedFileList),2),n=e[0],f=e[1],d=U((0,o.L4)(a.A.clickFileList),2),h=d[0],p=d[1],m=U((0,o.L4)(a.A.editorSetting),2),v=(m[0],m[1]),y=U((0,o.L4)(a.A.shellNowDir),2),b=y[0],g=(y[1],U((0,o.L4)(a.A.sshInfo),2)),w=g[0],A=(g[1],U((0,o.L4)(a.A.nowFileList),2)),x=A[0],O=A[1],j=U((0,o.L4)(a.A.enterKey),2),L=j[0],T=(j[1],U((0,o.L4)(a.A.confirm),2)),I=(T[0],T[1]),C=(0,l.Zp)(),F=(0,E.Bd)().t,P=function(){var e=H(W().m(function e(r,o){var a,l,d,m,y,b,g,_;return W().w(function(e){for(;;)switch(e.n){case 0:if(null!==(0,u.kW)(n,r))f((0,u.P1)(n,r));else if("ctrl"===L)f([].concat(D(n),[r]));else if("shift"===L){if(a=(0,u.a7)(n),l=a.max,d=a.min,m=[],r>=l)for(y=l;y<=r;y++)m.push(y);else for(b=d;b>=r;b--)m.push(b);f(m)}else f([r]);if(p([].concat(D(h),[r])),setTimeout(function(){p((0,u.P1)(h,r))},300),t.type!==i.Iw.folder){e.n=2;break}if(void 0===h.find(function(t){return t===r})){e.n=1;break}return(g=new G.x).key=w.key,g.dir="/".concat((0,c.GG)("remoteShell",(0,c.vX)())).concat(o),C((0,u.IO)((0,c.vX)(),o)),f([]),p([]),O({files:[],folders:[]}),e.a(2);case 1:e.n=5;break;case 2:if(void 0===h.find(function(t){return t===r})){e.n=5;break}if(_=function(){var e=H(W().m(function e(){var n,r,a;return W().w(function(e){for(;;)switch(e.n){case 0:return(n=new G.x).key=w.key,n.file="/".concat((0,c.GG)("remoteShell",(0,c.vX)())).concat(o),e.n=1,s.Fg.post("get/file/text",n);case 1:r=e.v,a=void 0,o.endsWith(i.Iw.workflow_act)?a="ace/mode/yaml":(o.endsWith(i.Iw.draw)||o.endsWith(i.Iw.excalidraw))&&(a="ace/mode/json"),v({model:a,open:!0,fileName:t.name,save:function(){var t=H(W().m(function t(e){return W().w(function(t){for(;;)switch(t.n){case 0:return n.context=e,t.n=1,s.Fg.post("update/file/text",n);case 1:0===t.v.code&&(k.xK.set_value_temp(""),(0,M.LW)("success"));case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}()}),k.xK.set_value_temp(r.data);case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),!("number"==typeof t.origin_size&&t.origin_size>z.o5)){e.n=3;break}return I({open:!0,title:F("提示"),sub_title:"文件超过20MB了确定要打开吗?",handle:function(){var t=H(W().m(function t(){return W().w(function(t){for(;;)switch(t.n){case 0:return I({open:!1,handle:null}),t.n=1,_();case 1:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}()}),e.a(2);case 3:return e.n=4,_();case 4:case 5:return e.a(2)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),N=function(){var e=H(W().m(function e(r){var i,o,a,l,c,d,h;return W().w(function(e){for(;;)switch(e.p=e.n){case 0:i=new G.x,Object.assign(i,w),i.target=u.HS.apply(void 0,D(b).concat([r])),o=(0,S.ib)(x,n),a=o.map(function(t){return u.HS.apply(void 0,D(b).concat([t.name]))}),l=R(a),e.p=1,l.s();case 2:if((c=l.n()).done){e.n=5;break}return d=c.value,i.source=d,e.n=3,s.Fg.post("move",i);case 3:if(e.v){e.n=4;break}return e.a(2,!1);case 4:e.n=2;break;case 5:e.n=7;break;case 6:e.p=6,h=e.v,l.e(h);case 7:return e.p=7,l.f(),e.f(7);case 8:return f([]),I({open:!1,handle:null}),e.n=9,t.fileHandler();case 9:return e.a(2)}},e,null,[[1,6,7,8]])}));return function(t){return e.apply(this,arguments)}}();return r.createElement(_,{draggable_handle:N,name:t.name,index:t.index,mtime:t.mtime,size:t.size,type:t.type,itemWidth:t.itemWidth,show_mtime:t.show_mtime,click:P})}function Y(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof l?r:l,s=Object.create(u.prototype);return Z(s,"_invoke",function(n,r,i){var o,l,u,s=0,c=i||[],f=!1,d={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return o=e,l=0,u=t,d.n=n,a}};function h(n,r){for(l=n,u=r,e=0;!f&&s&&!i&&e<c.length;e++){var i,o=c[e],h=d.p,p=o[2];n>3?(i=p===r)&&(u=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=t):o[0]<=h&&((i=n<2&&h<o[1])?(l=0,d.v=r,d.n=o[1]):h<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,d.n=p,l=0))}if(i||n>1)return a;throw f=!0,r}return function(i,c,p){if(s>1)throw TypeError("Generator is already running");for(f&&1===c&&h(c,p),l=c,u=p;(e=l<2?t:u)||!f;){o||(l?l<3?(l>1&&(d.n=-1),h(l,u)):d.n=u:d.v=u);try{if(s=2,o){if(l||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=o.return)&&e.call(o),l<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=t}else if((e=(f=d.n<0)?u:n.call(r,d))!==a)break}catch(e){o=t,l=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,i,o),!0),s}var a={};function l(){}function u(){}function s(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(Z(e={},r,function(){return this}),e),f=s.prototype=l.prototype=Object.create(c);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,Z(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,Z(f,"constructor",s),Z(s,"constructor",u),u.displayName="GeneratorFunction",Z(s,i,"GeneratorFunction"),Z(f),Z(f,i,"Generator"),Z(f,r,function(){return this}),Z(f,"toString",function(){return"[object Generator]"}),(Y=function(){return{w:o,m:d}})()}function Z(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}Z=function(t,e,n,r){function o(e,n){Z(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},Z(t,e,n,r)}function q(t){return function(t){if(Array.isArray(t))return et(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||tt(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(t,e,n,r,i,o,a){try{var l=t[o](a),u=l.value}catch(t){return void n(t)}l.done?e(u):Promise.resolve(u).then(r,i)}function V(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(t,e)||tt(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tt(t,e){if(t){if("string"==typeof t)return et(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?et(t,e):void 0}}function et(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function nt(t){var e=V((0,o.L4)(a.A.selectedFileList),2),n=e[0],l=e[1],c=V((0,o.L4)(a.A.clickFileList),2),f=c[0],d=c[1],h=V((0,o.L4)(a.A.enterKey),2),p=h[0],m=(h[1],(0,k.kZ)().click_file),v=V((0,o.L4)(a.A.nowFileList),2),y=(v[0],v[1],(0,E.Bd)().t),b=V((0,o.L4)(a.A.showPrompt),2),g=(b[0],b[1]),w=function(){var e,r=(e=Y().m(function e(r,o){var a,c,h,v,b,g,w;return Y().w(function(e){for(;;)switch(e.n){case 0:if(null!==(0,u.kW)(n,r))l((0,u.P1)(n,r));else if("ctrl"===p)l([].concat(q(n),[r]));else if("shift"===p){if(a=(0,u.a7)(n),c=a.max,h=a.min,v=[],r>=c)for(b=c;b<=r;b++)v.push(b);else for(g=h;g>=r;g--)v.push(g);l(v)}else l([r]);if(d([].concat(q(f),[r])),setTimeout(function(){d((0,u.P1)(f,r))},300),t.type!==i.Iw.folder){e.n=1;break}return e.a(2);case 1:void 0!==(w=f.find(function(t){return t===r}))&&m({file_path:t.item_list[w].path,file_url:s.$M.getDownloadUrlV2(t.item_list[w].path,"share_download",{share_id:t.share.share_id,share_token:t.share.share_token}),name:o,size:t.origin_size,opt_shell:!0,mtime:t.mtime,not_type_tip:y("未知类型,请下载查看")});case 2:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(t){Q(o,r,i,a,l,"next",t)}function l(t){Q(o,r,i,a,l,"throw",t)}a(void 0)})});return function(t,e){return r.apply(this,arguments)}}(),S=function(e,n,r,o){e.preventDefault(),e.stopPropagation();var a,l=new x.ik,u=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=tt(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}(t.item_list);try{for(u.s();!(a=u.n()).done;){var s=a.value;if(s.name===n){l.path=s.path;break}}}catch(t){u.e(t)}finally{u.f()}l.is_share=!0,l.filename=n,l.x=e.clientX,l.y=e.clientY,l.type=r?i.Iw.folder:(0,x.uL)(n),l.size=o,l.share_token=t.share.share_token,l.share_id=t.share.share_id,g({show:!0,type:A.PromptEnum.FileMenu,overlay:!1,data:l})};return r.createElement(_,{extraAttr:{onContextMenu:function(e){S(e,t.name,t.type===i.Iw.folder,t.origin_size)}},name:t.name,index:t.index,mtime:t.mtime,size:t.size,type:t.type,itemWidth:t.itemWidth,show_mtime:t.show_mtime,click:w})}function rt(){return rt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},rt.apply(null,arguments)}function it(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ot(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ot(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ot(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function at(t){var e,n,i=t.handleContextMenu,l=t.file_list,u=t.clickBlank,s=t.share,c=it((0,o.L4)(a.A.user_base_info),2),f=c[0],d=(c[1],(0,r.useRef)(null)),h=((0,E.Bd)().t,(0,S.OJ)()),p=(0,k.hg)().file_is_running;return(0,S.UK)(l,[],d),r.createElement("div",{onContextMenu:i,id:"listing",style:{paddingBottom:"10rem"},className:"mosaic file-icons ".concat(null!==(e=null==f||null===(n=f.user_data)||void 0===n?void 0:n.file_list_show_type)&&void 0!==e?e:""),ref:d},r.createElement("div",{onClick:u},l.map(function(t,e){return r.createElement(r.Fragment,{key:e+0},r.createElement(nt,rt({share:s,item_list:l,icon:p(t.name)?"refresh":void 0,itemWidth:h,index:e+0},t)))})))}function lt(t){var e,n,i=t.handleContextMenu,l=t.file_list,u=t.folder_list,s=t.clickBlank,c=t.fileHandler,f=it((0,o.L4)(a.A.user_base_info),2),d=f[0],h=(f[1],(0,r.useRef)(null)),p=(0,E.Bd)().t,m=(0,S.OJ)(),v=(0,k.hg)().file_is_running,y=it((0,o.L4)(a.A.fileShellShow),2),b=y[0],g=y[1],w=(0,r.useMemo)(function(){var t;return null!==(t=null==u?void 0:u.length)&&void 0!==t?t:0},[u]);return(0,S.ei)(h,A.PromptEnum.SshUpload),(0,S.UK)(l,u,h),(0,r.useEffect)(function(){return function(){b.show&&g({show:!1,path:""})}},[]),r.createElement("div",{onContextMenu:i,id:"listing",style:{paddingBottom:"10rem"},className:"mosaic file-icons ".concat(null!==(e=null==d||null===(n=d.user_data)||void 0===n?void 0:n.file_list_show_type)&&void 0!==e?e:""),ref:h},u&&u.length>0&&r.createElement("h2",null,p("文件夹")),u&&r.createElement("div",{onClick:s},u.map(function(t,e){return r.createElement(r.Fragment,{key:e},r.createElement(J,rt({fileHandler:c,itemWidth:m,index:e},t)))})),l&&l.length>0&&r.createElement("h2",{onClick:s},p("文件")),l&&r.createElement("div",{onClick:s},l.map(function(t,e){return r.createElement(r.Fragment,{key:e+w},r.createElement(J,rt({fileHandler:c,icon:v(t.name)?"refresh":void 0,itemWidth:m,index:e+w},t)))})))}function ut(t){var e,n,i=t.handleContextMenu,l=t.file_list,u=t.folder_list,s=t.clickBlank,c=it((0,o.L4)(a.A.user_base_info),2),f=c[0],d=(c[1],(0,r.useRef)(null)),h=(0,E.Bd)().t,p=(0,S.OJ)(),m=(0,k.hg)().file_is_running,v=it((0,o.L4)(a.A.fileShellShow),2),y=v[0],b=v[1],g=(0,r.useMemo)(function(){var t;return null!==(t=null==u?void 0:u.length)&&void 0!==t?t:0},[u]);return(0,S.ei)(d,A.PromptEnum.FilesUpload),(0,S.UK)(l,u,d),(0,r.useEffect)(function(){return function(){y.show&&b({show:!1,path:""})}},[]),r.createElement("div",{onContextMenu:i,id:"listing",style:{paddingBottom:"10rem"},className:"mosaic file-icons ".concat(null!==(e=null==f||null===(n=f.user_data)||void 0===n?void 0:n.file_list_show_type)&&void 0!==e?e:""),ref:d},u&&u.length>0&&r.createElement("h2",null,h("文件夹")),u&&r.createElement("div",{onClick:s},u.map(function(t,e){return r.createElement(r.Fragment,{key:e},r.createElement(N,rt({itemWidth:p,index:e},t)))})),l&&l.length>0&&r.createElement("h2",{onClick:s},h("文件")),l&&r.createElement("div",{onClick:s},l.map(function(t,e){return r.createElement(r.Fragment,{key:e+g},r.createElement(N,rt({icon:m(t.name)?"refresh":void 0,itemWidth:p,index:e+g},t)))})))}function st(t){var e,n,i=t.handleContextMenu,l=t.list,u=t.clickBlank,s=it((0,o.L4)(a.A.user_base_info),2),c=s[0],f=(s[1],(0,r.useRef)(null)),d=((0,E.Bd)().t,(0,S.OJ)()),h=(0,k.hg)().file_is_running,p=it((0,o.L4)(a.A.fileShellShow),2),m=p[0],v=p[1],y=it((0,o.L4)(a.A.enterKey),2),b=(y[0],y[1],it((0,o.L4)(a.A.selectedFileList),2)),g=(b[0],b[1],it((0,o.L4)(a.A.file_page),2)),w=(g[0],g[1]);return(0,S.UK)(l,[],f),(0,S.ei)(f,A.PromptEnum.FilesUpload),(0,S.SQ)(f,function(){w(function(t){return t.page_num<0?t:{page_size:t.page_size,page_num:t.page_num+1}})},function(){}),(0,r.useEffect)(function(){return function(){m.show&&v({show:!1,path:""})}},[]),r.createElement("div",{onContextMenu:i,id:"listing",style:{paddingBottom:"10rem"},className:"mosaic file-icons ".concat(null!==(e=null==c||null===(n=c.user_data)||void 0===n?void 0:n.file_list_show_type)&&void 0!==e?e:""),ref:f},l&&r.createElement("div",{onClick:u},l.map(function(t,e){return r.createElement(r.Fragment,{key:e},r.createElement(N,rt({icon:h(t.name)?"refresh":void 0,itemWidth:d,index:e},t)))})))}},6960(t,e,n){"use strict";n.d(e,{s:()=>a});var r=n(2635),i=1440,o=525600;function a(t){t=t>1e12?t:1e3*t;var e=Date.now(),n=Math.abs(e-t)/6e4;return n<1?r.Ay.t("小于一分钟"):n<60?"".concat(n.toFixed(0)," ").concat(r.Ay.t("分钟前")):n<i?"".concat((n/60).toFixed(0)," ").concat(r.Ay.t("小时前")):n<43200?"".concat((n/i).toFixed(0)," ").concat(r.Ay.t("天前")):n<o?"".concat((n/43200).toFixed(0)," ").concat(r.Ay.t("月前")):"".concat((n/o).toFixed(0)," ").concat(r.Ay.t("年前"))}},1028(t,e,n){"use strict";n.d(e,{A:()=>l});var r=n(1601),i=n.n(r),o=n(6314),a=n.n(o)()(i());a.push([t.id,'.awesomplete [hidden] {\n display: none;\n}\n\n.awesomplete .visually-hidden {\n position: absolute;\n clip: rect(0, 0, 0, 0);\n}\n\n.awesomplete {\n display: inline-block;\n position: relative;\n}\n\n.awesomplete > input {\n display: block;\n}\n\n.awesomplete > ul {\n position: absolute;\n left: 0;\n z-index: 1;\n min-width: 100%;\n box-sizing: border-box;\n list-style: none;\n padding: 0;\n margin: 0;\n background: #fff;\n}\n\n.awesomplete > ul:empty {\n display: none;\n}\n\n.awesomplete > ul {\n\tborder-radius: .3em;\n\tmargin: .2em 0 0;\n\tbackground: hsla(0,0%,100%,.9);\n\tbackground: linear-gradient(to bottom right, white, hsla(0,0%,100%,.8));\n\tborder: 1px solid rgba(0,0,0,.3);\n\tbox-shadow: .05em .2em .6em rgba(0,0,0,.2);\n\ttext-shadow: none;\n}\n\n@supports (transform: scale(0)) {\n\t.awesomplete > ul {\n\t\ttransition: .3s cubic-bezier(.4,.2,.5,1.4);\n\t\ttransform-origin: 1.43em -.43em;\n\t}\n\t\n\t.awesomplete > ul[hidden],\n\t.awesomplete > ul:empty {\n\t\topacity: 0;\n\t\ttransform: scale(0);\n\t\tdisplay: block;\n\t\tvisibility: hidden;\n\t\ttransition-timing-function: ease;\n\t}\n}\n\n\t/* Pointer */\n\t.awesomplete > ul:before {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t\ttop: -.43em;\n\t\tleft: 1em;\n\t\twidth: 0; height: 0;\n\t\tpadding: .4em;\n\t\tbackground: white;\n\t\tborder: inherit;\n\t\tborder-right: 0;\n\t\tborder-bottom: 0;\n\t\t-webkit-transform: rotate(45deg);\n\t\ttransform: rotate(45deg);\n\t}\n\n\t.awesomplete > ul > li {\n\t\tposition: relative;\n\t\tpadding: .2em .5em;\n\t\tcursor: pointer;\n\t}\n\t\n\t.awesomplete > ul > li:hover {\n\t\tbackground: hsl(200, 40%, 80%);\n\t\tcolor: black;\n\t}\n\t\n\t.awesomplete > ul > li[aria-selected="true"] {\n\t\tbackground: hsl(205, 40%, 40%);\n\t\tcolor: white;\n\t}\n\t\n\t\t.awesomplete mark {\n\t\t\tbackground: hsl(65, 100%, 50%);\n\t\t}\n\t\t\n\t\t.awesomplete li:hover mark {\n\t\t\tbackground: hsl(68, 100%, 41%);\n\t\t}\n\t\t\n\t\t.awesomplete li[aria-selected="true"] mark {\n\t\t\tbackground: hsl(86, 100%, 21%);\n\t\t\tcolor: inherit;\n\t\t}\n',""]);const l=a},9145(t,e,n){"use strict";var r=n(5072),i=n.n(r),o=n(7825),a=n.n(o),l=n(7659),u=n.n(l),s=n(5056),c=n.n(s),f=n(540),d=n.n(f),h=n(1113),p=n.n(h),m=n(1028),v={};v.styleTagTransform=p(),v.setAttributes=c(),v.insert=u().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=d();i()(m.A,v),m.A&&m.A.locals&&m.A.locals}}]);
1
+ /*! For license information please see 931.55164131a295598b418a.js.LICENSE.txt */
2
+ (self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[627,931],{5219(t){!function(){var e=function(t,n){var r=this;e.count=(e.count||0)+1,this.count=e.count,this.isOpened=!1,this.input=i(t),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-autocomplete","list"),this.input.setAttribute("aria-expanded","false"),this.input.setAttribute("aria-controls","awesomplete_list_"+this.count),this.input.setAttribute("aria-owns","awesomplete_list_"+this.count),this.input.setAttribute("role","combobox"),this.options=n=n||{},function(t,e,n){for(var r in e){var i=e[r],o=t.input.getAttribute("data-"+r.toLowerCase());t[r]="number"==typeof i?parseInt(o):!1===i?null!==o:i instanceof Function?null:o,t[r]||0===t[r]||(t[r]=r in n?n[r]:i)}}(this,{minChars:2,maxItems:10,autoFirst:!1,data:e.DATA,filter:e.FILTER_CONTAINS,sort:!1!==n.sort&&e.SORT_BYLENGTH,container:e.CONTAINER,item:e.ITEM,replace:e.REPLACE,tabSelect:!1,listLabel:"Results List",statusNoResults:"No results found",statusXResults:"{0} results found",statusTypeXChar:"Type {0} or more characters for results"},n),this.index=-1,this.container=this.container(t),this.ul=i.create("ul",{hidden:"hidden",role:"listbox",id:"awesomplete_list_"+this.count,inside:this.container,"aria-label":this.listLabel}),this.status=i.create("span",{className:"visually-hidden",role:"status","aria-live":"assertive","aria-atomic":!0,inside:this.container,textContent:""}),this._events={input:{input:this.evaluate.bind(this),blur:this.close.bind(this,{reason:"blur"}),keydown:function(t){var e=t.keyCode;r.opened&&(13===e&&r.selected||9===e&&r.selected&&r.tabSelect?(t.preventDefault(),r.select(void 0,void 0,t)):27===e?r.close({reason:"esc"}):38!==e&&40!==e||(t.preventDefault(),r[38===e?"previous":"next"]()))}},form:{submit:this.close.bind(this,{reason:"submit"})},ul:{mousedown:function(t){t.preventDefault()},click:function(t){var e=t.target;if(e!==this){for(;e&&!/li/i.test(e.nodeName);)e=e.parentNode;e&&0===t.button&&(t.preventDefault(),r.select(e,t.target,t))}}}},i.bind(this.input,this._events.input),i.bind(this.input.form,this._events.form),i.bind(this.ul,this._events.ul),this.input.hasAttribute("list")?(this.list="#"+this.input.getAttribute("list"),this.input.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||n.list||[],e.all.push(this)};function n(t){var e=Array.isArray(t)?{label:t[0],value:t[1]}:"object"==typeof t&&"label"in t&&"value"in t?t:{label:t,value:t};this.label=e.label||e.value,this.value=e.value}e.prototype={set list(t){if(Array.isArray(t))this._list=t;else if("string"==typeof t&&t.indexOf(",")>-1)this._list=t.split(/\s*,\s*/);else if((t=i(t))&&t.children){var e=[];r.apply(t.children).forEach(function(t){if(!t.disabled){var n=t.textContent.trim(),r=t.value||n,i=t.label||n;""!==r&&e.push({label:i,value:r})}}),this._list=e}document.activeElement===this.input&&this.evaluate()},get selected(){return this.index>-1},get opened(){return this.isOpened},close:function(t){this.opened&&(this.input.setAttribute("aria-expanded","false"),this.ul.setAttribute("hidden",""),this.isOpened=!1,this.index=-1,this.status.setAttribute("hidden",""),this.input.setAttribute("aria-activedescendant",""),i.fire(this.input,"awesomplete-close",t||{}))},open:function(){this.input.setAttribute("aria-expanded","true"),this.ul.removeAttribute("hidden"),this.isOpened=!0,this.status.removeAttribute("hidden"),this.autoFirst&&-1===this.index&&this.goto(0),i.fire(this.input,"awesomplete-open")},destroy:function(){if(i.unbind(this.input,this._events.input),i.unbind(this.input.form,this._events.form),!this.options.container){var t=this.container.parentNode;t.insertBefore(this.input,this.container),t.removeChild(this.container)}this.input.removeAttribute("autocomplete"),this.input.removeAttribute("aria-autocomplete"),this.input.removeAttribute("aria-expanded"),this.input.removeAttribute("aria-controls"),this.input.removeAttribute("aria-owns"),this.input.removeAttribute("role");var n=e.all.indexOf(this);-1!==n&&e.all.splice(n,1)},next:function(){var t=this.ul.children.length;this.goto(this.index<t-1?this.index+1:t?0:-1)},previous:function(){var t=this.ul.children.length,e=this.index-1;this.goto(this.selected&&-1!==e?e:t-1)},goto:function(t){var e=this.ul.children;this.selected&&e[this.index].setAttribute("aria-selected","false"),this.index=t,t>-1&&e.length>0&&(e[t].setAttribute("aria-selected","true"),this.input.setAttribute("aria-activedescendant",this.ul.id+"_item_"+this.index),this.ul.scrollTop=e[t].offsetTop-this.ul.clientHeight+e[t].clientHeight,i.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(t,e,n){if(t?this.index=i.siblingIndex(t):t=this.ul.children[this.index],t){var r=this.suggestions[this.index];i.fire(this.input,"awesomplete-select",{text:r,origin:e||t,originalEvent:n})&&(this.replace(r),this.close({reason:"select"}),i.fire(this.input,"awesomplete-selectcomplete",{text:r,originalEvent:n}))}},evaluate:function(){var t=this,e=this.input.value;e.length>=this.minChars&&this._list&&this._list.length>0?(this.index=-1,this.ul.innerHTML="",this.suggestions=this._list.map(function(r){return new n(t.data(r,e))}).filter(function(n){return t.filter(n,e)}),!1!==this.sort&&(this.suggestions=this.suggestions.sort(this.sort)),this.suggestions=this.suggestions.slice(0,this.maxItems),this.suggestions.forEach(function(n,r){t.ul.appendChild(t.item(n,e,r))}),0===this.ul.children.length?(this.status.textContent=this.statusNoResults,this.close({reason:"nomatches"})):(this.input.setAttribute("aria-activedescendant",""),this.open(),this.status.textContent=this.statusXResults.replaceAll("{0}",this.ul.children.length))):(this.close({reason:"nomatches"}),this.minChar<=1||e.length>=this.minChars?this.status.textContent=this.statusNoResults:this.status.textContent=this.statusTypeXChar.replaceAll("{0}",this.minChars))}},e.all=[],e.FILTER_CONTAINS=function(t,e){return RegExp(i.regExpEscape(e.trim()),"i").test(t)},e.FILTER_STARTSWITH=function(t,e){return RegExp("^"+i.regExpEscape(e.trim()),"i").test(t)},e.SORT_BYLENGTH=function(t,e){return t.length!==e.length?t.length-e.length:t<e?-1:1},e.CONTAINER=function(t){return i.create("div",{className:"awesomplete",around:t})},e.ITEM=function(t,e,n){var r=""===e.trim()?t:t.replace(RegExp(i.regExpEscape(e.trim()),"gi"),"<mark>$&</mark>");return i.create("li",{innerHTML:r,role:"option","aria-selected":"false",tabindex:"-1",id:"awesomplete_list_"+this.count+"_item_"+n})},e.REPLACE=function(t){this.input.value=t.value},e.DATA=function(t){return t},Object.defineProperty(n.prototype=Object.create(String.prototype),"length",{get:function(){return this.label.length}}),n.prototype.toString=n.prototype.valueOf=function(){return""+this.label};var r=Array.prototype.slice;function i(t,e){return"string"==typeof t?(e||document).querySelector(t):t||null}function o(t,e){return r.call((e||document).querySelectorAll(t))}function a(){o("input.awesomplete").forEach(function(t){new e(t)})}i.create=function(t,e){var n=document.createElement(t);for(var r in e){var o=e[r];if("inside"===r)i(o).appendChild(n);else if("around"===r){var a=i(o);a.parentNode.insertBefore(n,a),n.appendChild(a),null!=a.getAttribute("autofocus")&&a.focus()}else r in n?n[r]=o:n.setAttribute(r,o)}return n},i.bind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.addEventListener(e,r)})}},i.unbind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.removeEventListener(e,r)})}},i.fire=function(t,e,n){var r=document.createEvent("HTMLEvents");for(var i in r.initEvent(e,!0,!0),n)r[i]=n[i];return t.dispatchEvent(r)},i.regExpEscape=function(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},i.siblingIndex=function(t){for(var e=0;t=t.previousElementSibling;e++);return e},"undefined"!=typeof self&&(self.Awesomplete=e),"undefined"!=typeof Document&&("loading"!==document.readyState?a():document.addEventListener("DOMContentLoaded",a)),e.$=i,e.$$=o,t.exports&&(t.exports=e)}()},96(t,e,n){"use strict";n.d(e,{QW:()=>at,Ic:()=>lt,t$:()=>ut,$J:()=>st});var r=n(6540),i=n(7022),o=n(7444),a=n(6417),l=n(7767),u=n(4694),s=n(4284),c=n(4289),f=n(3430);function d(){return d=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},d.apply(null,arguments)}function h(t){return function(t){if(Array.isArray(t))return w(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||g(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof l?r:l,s=Object.create(u.prototype);return m(s,"_invoke",function(n,r,i){var o,l,u,s=0,c=i||[],f=!1,d={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return o=e,l=0,u=t,d.n=n,a}};function h(n,r){for(l=n,u=r,e=0;!f&&s&&!i&&e<c.length;e++){var i,o=c[e],h=d.p,p=o[2];n>3?(i=p===r)&&(u=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=t):o[0]<=h&&((i=n<2&&h<o[1])?(l=0,d.v=r,d.n=o[1]):h<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,d.n=p,l=0))}if(i||n>1)return a;throw f=!0,r}return function(i,c,p){if(s>1)throw TypeError("Generator is already running");for(f&&1===c&&h(c,p),l=c,u=p;(e=l<2?t:u)||!f;){o||(l?l<3?(l>1&&(d.n=-1),h(l,u)):d.n=u:d.v=u);try{if(s=2,o){if(l||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=o.return)&&e.call(o),l<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=t}else if((e=(f=d.n<0)?u:n.call(r,d))!==a)break}catch(e){o=t,l=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,i,o),!0),s}var a={};function l(){}function u(){}function s(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(m(e={},r,function(){return this}),e),f=s.prototype=l.prototype=Object.create(c);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,m(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,m(f,"constructor",s),m(s,"constructor",u),u.displayName="GeneratorFunction",m(s,i,"GeneratorFunction"),m(f),m(f,i,"Generator"),m(f,r,function(){return this}),m(f,"toString",function(){return"[object Generator]"}),(p=function(){return{w:o,m:d}})()}function m(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}m=function(t,e,n,r){function o(e,n){m(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},m(t,e,n,r)}function v(t,e,n,r,i,o,a){try{var l=t[o](a),u=l.value}catch(t){return void n(t)}l.done?e(u):Promise.resolve(u).then(r,i)}function y(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){v(o,r,i,a,l,"next",t)}function l(t){v(o,r,i,a,l,"throw",t)}a(void 0)})}}function b(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(t,e)||g(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){if(t){if("string"==typeof t)return w(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(t,e):void 0}}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function _(t){var e,n,l=b((0,o.L4)(a.A.selectedFileList),2),c=l[0],m=l[1],v=b((0,o.L4)(a.A.nowFileList),2),g=v[0],w=(v[1],b((0,o.L4)(a.A.confirm),2)),_=(w[0],w[1]),A=b((0,o.L4)(a.A.user_base_info),2),x=A[0];A[1];function E(){return(E=y(p().m(function e(n){return p().w(function(e){for(;;)switch(e.n){case 0:t.click&&t.click(n,t.name);case 1:return e.a(2)}},e)}))).apply(this,arguments)}return r.createElement("div",d({},t.extraAttr,{onClick:function(){!function(t){E.apply(this,arguments)}(t.index)},className:"item",role:"button","data-type":t.isLink?"invalid_link":t.type,"data-dir":!t.type||t.type===i.Iw.folder,"aria-selected":null!==(0,u.kW)(c,t.index),"aria-label":t.name,style:{"--filewidth":null!==(e=t.itemWidth)&&void 0!==e?e:"33%"},onDragStart:function(e){return n=t.index,void(c.find(function(t){return t===n})||m([].concat(h(c),[n])));var n},onDrop:function(e){return function(e,n){for(var r,o,a=e.dataTransfer,l=!1,u=0;u<a.items.length;u++)if("file"===a.items[u].kind){l=!0;break}if(!l){var s,c,d;if((null==x||null===(r=x.user_data)||void 0===r?void 0:r.file_list_pagination_mode)===f.yM.pagination){if(s=g.files[n],(null===(c=g.files[n])||void 0===c?void 0:c.type)!==i.Iw.folder)return}else if(s=g.folders[n],g.folders.length<=n)return;_({open:!0,title:"确定将文件移动并覆盖到".concat(null===(o=s)||void 0===o?void 0:o.name,"吗?"),handle:(d=y(p().m(function e(){var n;return p().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t.draggable_handle(null===(n=s)||void 0===n?void 0:n.name);case 1:return e.a(2)}},e)})),function(){return d.apply(this,arguments)})})}}(e,t.index)},draggable:void 0!==t.draggable_handle}),void 0===t.icon&&r.createElement("div",null,t.type!==i.Iw.image||null==t.path||null!=x&&null!==(n=x.user_data)&&void 0!==n&&n.not_pre_show_image?r.createElement("i",{className:"material-icons"}):r.createElement("img",{loading:"lazy",src:s.$M.getDownloadUrl(t.path,{mtime:t.mtime,cache:1}),alt:t.name})),void 0!==t.icon&&r.createElement("div",{className:"rotating-div"},r.createElement("span",{className:"material-icons"},t.icon)),r.createElement("div",null,r.createElement("p",{className:"name"},t.name),t.size?r.createElement("p",null,t.size):r.createElement("p",null,"—"),r.createElement("p",null,t.show_mtime)),t.children)}var A=n(6325),x=n(4251),E=n(2389),k=n(8247),S=n(9214);function O(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof l?r:l,s=Object.create(u.prototype);return j(s,"_invoke",function(n,r,i){var o,l,u,s=0,c=i||[],f=!1,d={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return o=e,l=0,u=t,d.n=n,a}};function h(n,r){for(l=n,u=r,e=0;!f&&s&&!i&&e<c.length;e++){var i,o=c[e],h=d.p,p=o[2];n>3?(i=p===r)&&(u=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=t):o[0]<=h&&((i=n<2&&h<o[1])?(l=0,d.v=r,d.n=o[1]):h<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,d.n=p,l=0))}if(i||n>1)return a;throw f=!0,r}return function(i,c,p){if(s>1)throw TypeError("Generator is already running");for(f&&1===c&&h(c,p),l=c,u=p;(e=l<2?t:u)||!f;){o||(l?l<3?(l>1&&(d.n=-1),h(l,u)):d.n=u:d.v=u);try{if(s=2,o){if(l||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=o.return)&&e.call(o),l<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=t}else if((e=(f=d.n<0)?u:n.call(r,d))!==a)break}catch(e){o=t,l=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,i,o),!0),s}var a={};function l(){}function u(){}function s(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(j(e={},r,function(){return this}),e),f=s.prototype=l.prototype=Object.create(c);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,j(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,j(f,"constructor",s),j(s,"constructor",u),u.displayName="GeneratorFunction",j(s,i,"GeneratorFunction"),j(f),j(f,i,"Generator"),j(f,r,function(){return this}),j(f,"toString",function(){return"[object Generator]"}),(O=function(){return{w:o,m:d}})()}function j(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}j=function(t,e,n,r){function o(e,n){j(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},j(t,e,n,r)}function L(t){return function(t){if(Array.isArray(t))return P(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||F(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(t,e,n,r,i,o,a){try{var l=t[o](a),u=l.value}catch(t){return void n(t)}l.done?e(u):Promise.resolve(u).then(r,i)}function I(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){T(o,r,i,a,l,"next",t)}function l(t){T(o,r,i,a,l,"throw",t)}a(void 0)})}}function C(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(t,e)||F(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(t,e){if(t){if("string"==typeof t)return P(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(t,e):void 0}}function P(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function N(t){var e=C((0,o.L4)(a.A.selectedFileList),2),n=e[0],f=e[1],d=C((0,o.L4)(a.A.clickFileList),2),h=d[0],p=d[1],m=C((0,o.L4)(a.A.nowFileList),2),v=m[0],y=m[1],b=C((0,o.L4)(a.A.confirm),2),g=(b[0],b[1]),w=C((0,o.L4)(a.A.enterKey),2),j=w[0],T=(w[1],(0,k.kZ)().click_file),F=((0,E.Bd)().t,(0,l.Zp)()),P=((0,l.zy)(),function(){var e=I(O().m(function e(r,o){var a,l,s,d,m,v;return O().w(function(e){for(;;)switch(e.n){case 0:if(null!==(0,u.kW)(n,r))f((0,u.P1)(n,r));else if("ctrl"===j)f([].concat(L(n),[r]));else if("shift"===j){if(a=(0,u.a7)(n),l=a.max,s=a.min,d=[],r>=l)for(m=l;m<=r;m++)d.push(m);else for(v=s;v>=r;v--)d.push(v);f(d)}else f([r]);if(p([].concat(L(h),[r])),setTimeout(function(){p((0,u.P1)(h,r))},300),t.type!==i.Iw.folder){e.n=2;break}if(void 0===h.find(function(t){return t===r})){e.n=1;break}return F((0,u.IO)((0,c.vX)(),o)),f([]),p([]),y({files:[],folders:[]}),e.a(2);case 1:e.n=3;break;case 2:void 0!==h.find(function(t){return t===r})&&T({name:o,size:t.origin_size,opt_shell:!0,mtime:t.mtime});case 3:return e.a(2)}},e)}));return function(t,n){return e.apply(this,arguments)}}()),N=C((0,o.L4)(a.A.showPrompt),2),G=(N[0],N[1]),M=function(){var t=I(O().m(function t(e){var r,i;return O().w(function(t){for(;;)switch(t.n){case 0:return r=(0,S.ib)(v,n),i=r.map(function(t){return(0,S.Ok)(t.name)}),t.n=1,s.$M.post("cut",{files:i,to:"".concat((0,c.GG)("file",(0,c.vX)()),"/").concat(e)});case 1:t.v,f([]),g({open:!1,handle:null}),F((0,c.vX)());case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}();return r.createElement(_,{extraAttr:{onContextMenu:function(e){!function(t,e,n,r){t.preventDefault(),t.stopPropagation();var o=new x.ik;o.path=(0,u.IO)((0,c.vX)(),e),o.filename=e,o.x=t.clientX,o.y=t.clientY,o.type=n?i.Iw.folder:(0,x.uL)(e),o.size=r,G({show:!0,type:A.PromptEnum.FileMenu,overlay:!1,data:o})}(e,t.name,t.type===i.Iw.folder,t.origin_size)}},draggable_handle:M,name:t.name,index:t.index,mtime:t.mtime,size:t.size,type:t.type,isLink:t.isLink,path:t.path,icon:t.icon,show_mtime:t.show_mtime,click:P,itemWidth:t.itemWidth})}var G=n(4405),M=n(2042),z=n(8815);function R(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=X(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function W(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof l?r:l,s=Object.create(u.prototype);return B(s,"_invoke",function(n,r,i){var o,l,u,s=0,c=i||[],f=!1,d={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return o=e,l=0,u=t,d.n=n,a}};function h(n,r){for(l=n,u=r,e=0;!f&&s&&!i&&e<c.length;e++){var i,o=c[e],h=d.p,p=o[2];n>3?(i=p===r)&&(u=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=t):o[0]<=h&&((i=n<2&&h<o[1])?(l=0,d.v=r,d.n=o[1]):h<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,d.n=p,l=0))}if(i||n>1)return a;throw f=!0,r}return function(i,c,p){if(s>1)throw TypeError("Generator is already running");for(f&&1===c&&h(c,p),l=c,u=p;(e=l<2?t:u)||!f;){o||(l?l<3?(l>1&&(d.n=-1),h(l,u)):d.n=u:d.v=u);try{if(s=2,o){if(l||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=o.return)&&e.call(o),l<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=t}else if((e=(f=d.n<0)?u:n.call(r,d))!==a)break}catch(e){o=t,l=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,i,o),!0),s}var a={};function l(){}function u(){}function s(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(B(e={},r,function(){return this}),e),f=s.prototype=l.prototype=Object.create(c);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,B(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,B(f,"constructor",s),B(s,"constructor",u),u.displayName="GeneratorFunction",B(s,i,"GeneratorFunction"),B(f),B(f,i,"Generator"),B(f,r,function(){return this}),B(f,"toString",function(){return"[object Generator]"}),(W=function(){return{w:o,m:d}})()}function B(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}B=function(t,e,n,r){function o(e,n){B(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},B(t,e,n,r)}function D(t){return function(t){if(Array.isArray(t))return K(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||X(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(t,e,n,r,i,o,a){try{var l=t[o](a),u=l.value}catch(t){return void n(t)}l.done?e(u):Promise.resolve(u).then(r,i)}function H(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){$(o,r,i,a,l,"next",t)}function l(t){$(o,r,i,a,l,"throw",t)}a(void 0)})}}function U(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(t,e)||X(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(t,e){if(t){if("string"==typeof t)return K(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(t,e):void 0}}function K(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function J(t){var e=U((0,o.L4)(a.A.selectedFileList),2),n=e[0],f=e[1],d=U((0,o.L4)(a.A.clickFileList),2),h=d[0],p=d[1],m=U((0,o.L4)(a.A.editorSetting),2),v=(m[0],m[1]),y=U((0,o.L4)(a.A.shellNowDir),2),b=y[0],g=(y[1],U((0,o.L4)(a.A.sshInfo),2)),w=g[0],A=(g[1],U((0,o.L4)(a.A.nowFileList),2)),x=A[0],O=A[1],j=U((0,o.L4)(a.A.enterKey),2),L=j[0],T=(j[1],U((0,o.L4)(a.A.confirm),2)),I=(T[0],T[1]),C=(0,l.Zp)(),F=(0,E.Bd)().t,P=function(){var e=H(W().m(function e(r,o){var a,l,d,m,y,b,g,_;return W().w(function(e){for(;;)switch(e.n){case 0:if(null!==(0,u.kW)(n,r))f((0,u.P1)(n,r));else if("ctrl"===L)f([].concat(D(n),[r]));else if("shift"===L){if(a=(0,u.a7)(n),l=a.max,d=a.min,m=[],r>=l)for(y=l;y<=r;y++)m.push(y);else for(b=d;b>=r;b--)m.push(b);f(m)}else f([r]);if(p([].concat(D(h),[r])),setTimeout(function(){p((0,u.P1)(h,r))},300),t.type!==i.Iw.folder){e.n=2;break}if(void 0===h.find(function(t){return t===r})){e.n=1;break}return(g=new G.x).key=w.key,g.dir="/".concat((0,c.GG)("remoteShell",(0,c.vX)())).concat(o),C((0,u.IO)((0,c.vX)(),o)),f([]),p([]),O({files:[],folders:[]}),e.a(2);case 1:e.n=5;break;case 2:if(void 0===h.find(function(t){return t===r})){e.n=5;break}if(_=function(){var e=H(W().m(function e(){var n,r,a;return W().w(function(e){for(;;)switch(e.n){case 0:return(n=new G.x).key=w.key,n.file="/".concat((0,c.GG)("remoteShell",(0,c.vX)())).concat(o),e.n=1,s.Fg.post("get/file/text",n);case 1:r=e.v,a=void 0,o.endsWith(i.Iw.workflow_act)?a="ace/mode/yaml":(o.endsWith(i.Iw.draw)||o.endsWith(i.Iw.excalidraw))&&(a="ace/mode/json"),v({model:a,open:!0,fileName:t.name,save:function(){var t=H(W().m(function t(e){return W().w(function(t){for(;;)switch(t.n){case 0:return n.context=e,t.n=1,s.Fg.post("update/file/text",n);case 1:0===t.v.code&&(k.xK.set_value_temp(""),(0,M.LW)("success"));case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}()}),k.xK.set_value_temp(r.data);case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),!("number"==typeof t.origin_size&&t.origin_size>z.o5)){e.n=3;break}return I({open:!0,title:F("提示"),sub_title:"文件超过20MB了确定要打开吗?",handle:function(){var t=H(W().m(function t(){return W().w(function(t){for(;;)switch(t.n){case 0:return I({open:!1,handle:null}),t.n=1,_();case 1:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}()}),e.a(2);case 3:return e.n=4,_();case 4:case 5:return e.a(2)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),N=function(){var e=H(W().m(function e(r){var i,o,a,l,c,d,h;return W().w(function(e){for(;;)switch(e.p=e.n){case 0:i=new G.x,Object.assign(i,w),i.target=u.HS.apply(void 0,D(b).concat([r])),o=(0,S.ib)(x,n),a=o.map(function(t){return u.HS.apply(void 0,D(b).concat([t.name]))}),l=R(a),e.p=1,l.s();case 2:if((c=l.n()).done){e.n=5;break}return d=c.value,i.source=d,e.n=3,s.Fg.post("move",i);case 3:if(e.v){e.n=4;break}return e.a(2,!1);case 4:e.n=2;break;case 5:e.n=7;break;case 6:e.p=6,h=e.v,l.e(h);case 7:return e.p=7,l.f(),e.f(7);case 8:return f([]),I({open:!1,handle:null}),e.n=9,t.fileHandler();case 9:return e.a(2)}},e,null,[[1,6,7,8]])}));return function(t){return e.apply(this,arguments)}}();return r.createElement(_,{draggable_handle:N,name:t.name,index:t.index,mtime:t.mtime,size:t.size,type:t.type,itemWidth:t.itemWidth,show_mtime:t.show_mtime,click:P})}function Y(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof l?r:l,s=Object.create(u.prototype);return Z(s,"_invoke",function(n,r,i){var o,l,u,s=0,c=i||[],f=!1,d={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return o=e,l=0,u=t,d.n=n,a}};function h(n,r){for(l=n,u=r,e=0;!f&&s&&!i&&e<c.length;e++){var i,o=c[e],h=d.p,p=o[2];n>3?(i=p===r)&&(u=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=t):o[0]<=h&&((i=n<2&&h<o[1])?(l=0,d.v=r,d.n=o[1]):h<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,d.n=p,l=0))}if(i||n>1)return a;throw f=!0,r}return function(i,c,p){if(s>1)throw TypeError("Generator is already running");for(f&&1===c&&h(c,p),l=c,u=p;(e=l<2?t:u)||!f;){o||(l?l<3?(l>1&&(d.n=-1),h(l,u)):d.n=u:d.v=u);try{if(s=2,o){if(l||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=o.return)&&e.call(o),l<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=t}else if((e=(f=d.n<0)?u:n.call(r,d))!==a)break}catch(e){o=t,l=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,i,o),!0),s}var a={};function l(){}function u(){}function s(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(Z(e={},r,function(){return this}),e),f=s.prototype=l.prototype=Object.create(c);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,Z(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,Z(f,"constructor",s),Z(s,"constructor",u),u.displayName="GeneratorFunction",Z(s,i,"GeneratorFunction"),Z(f),Z(f,i,"Generator"),Z(f,r,function(){return this}),Z(f,"toString",function(){return"[object Generator]"}),(Y=function(){return{w:o,m:d}})()}function Z(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}Z=function(t,e,n,r){function o(e,n){Z(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},Z(t,e,n,r)}function q(t){return function(t){if(Array.isArray(t))return et(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||tt(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(t,e,n,r,i,o,a){try{var l=t[o](a),u=l.value}catch(t){return void n(t)}l.done?e(u):Promise.resolve(u).then(r,i)}function V(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(t,e)||tt(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tt(t,e){if(t){if("string"==typeof t)return et(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?et(t,e):void 0}}function et(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function nt(t){var e=V((0,o.L4)(a.A.selectedFileList),2),n=e[0],l=e[1],c=V((0,o.L4)(a.A.clickFileList),2),f=c[0],d=c[1],h=V((0,o.L4)(a.A.enterKey),2),p=h[0],m=(h[1],(0,k.kZ)().click_file),v=V((0,o.L4)(a.A.nowFileList),2),y=(v[0],v[1],(0,E.Bd)().t),b=V((0,o.L4)(a.A.showPrompt),2),g=(b[0],b[1]),w=((0,S.oT)(),(0,S.xp)()),O=function(){var e,r=(e=Y().m(function e(r,o){var a,c,h,v,b,g,_;return Y().w(function(e){for(;;)switch(e.n){case 0:if(null!==(0,u.kW)(n,r))l((0,u.P1)(n,r));else if("ctrl"===p)l([].concat(q(n),[r]));else if("shift"===p){if(a=(0,u.a7)(n),c=a.max,h=a.min,v=[],r>=c)for(b=c;b<=r;b++)v.push(b);else for(g=h;g>=r;g--)v.push(g);l(v)}else l([r]);if(d([].concat(q(f),[r])),setTimeout(function(){d((0,u.P1)(f,r))},300),t.type!==i.Iw.folder){e.n=1;break}return e.a(2);case 1:if(void 0===(_=f.find(function(t){return t===r}))){e.n=3;break}if(!w(o)){e.n=2;break}return e.a(2);case 2:m({file_path:t.item_list[_].path,file_url:s.$M.getDownloadUrlV2(t.item_list[_].path,"share_download",{share_id:t.share.share_id,share_token:t.share.share_token}),name:o,size:t.origin_size,opt_shell:!0,mtime:t.mtime,not_type_tip:y("未知类型,请下载查看")});case 3:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(t){Q(o,r,i,a,l,"next",t)}function l(t){Q(o,r,i,a,l,"throw",t)}a(void 0)})});return function(t,e){return r.apply(this,arguments)}}(),j=function(e,n,r,o){e.preventDefault(),e.stopPropagation();var a,l=new x.ik,u=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=tt(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}(t.item_list);try{for(u.s();!(a=u.n()).done;){var s=a.value;if(s.name===n){l.path=s.path;break}}}catch(t){u.e(t)}finally{u.f()}l.is_share=!0,l.filename=n,l.x=e.clientX,l.y=e.clientY,l.type=r?i.Iw.folder:(0,x.uL)(n),l.size=o,l.share_token=t.share.share_token,l.share_id=t.share.share_id,g({show:!0,type:A.PromptEnum.FileMenu,overlay:!1,data:l})};return r.createElement(_,{extraAttr:{onContextMenu:function(e){j(e,t.name,t.type===i.Iw.folder,t.origin_size)}},name:t.name,index:t.index,mtime:t.mtime,size:t.size,type:t.type,itemWidth:t.itemWidth,show_mtime:t.show_mtime,click:O})}function rt(){return rt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},rt.apply(null,arguments)}function it(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){s=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ot(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ot(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ot(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function at(t){var e,n,i=t.handleContextMenu,l=t.file_list,u=t.clickBlank,s=t.share,c=it((0,o.L4)(a.A.user_base_info),2),f=c[0],d=(c[1],(0,r.useRef)(null)),h=((0,E.Bd)().t,(0,S.OJ)()),p=(0,k.hg)().file_is_running;return(0,S.UK)(l,[],d),r.createElement("div",{onContextMenu:i,id:"listing",style:{paddingBottom:"10rem"},className:"mosaic file-icons ".concat(null!==(e=null==f||null===(n=f.user_data)||void 0===n?void 0:n.file_list_show_type)&&void 0!==e?e:""),ref:d},r.createElement("div",{onClick:u},l.map(function(t,e){return r.createElement(r.Fragment,{key:e+0},r.createElement(nt,rt({share:s,item_list:l,icon:p(t.name)?"refresh":void 0,itemWidth:h,index:e+0},t)))})))}function lt(t){var e,n,i=t.handleContextMenu,l=t.file_list,u=t.folder_list,s=t.clickBlank,c=t.fileHandler,f=it((0,o.L4)(a.A.user_base_info),2),d=f[0],h=(f[1],(0,r.useRef)(null)),p=(0,E.Bd)().t,m=(0,S.OJ)(),v=(0,k.hg)().file_is_running,y=it((0,o.L4)(a.A.fileShellShow),2),b=y[0],g=y[1],w=(0,r.useMemo)(function(){var t;return null!==(t=null==u?void 0:u.length)&&void 0!==t?t:0},[u]);return(0,S.ei)(h,A.PromptEnum.SshUpload),(0,S.UK)(l,u,h),(0,r.useEffect)(function(){return function(){b.show&&g({show:!1,path:""})}},[]),r.createElement("div",{onContextMenu:i,id:"listing",style:{paddingBottom:"10rem"},className:"mosaic file-icons ".concat(null!==(e=null==d||null===(n=d.user_data)||void 0===n?void 0:n.file_list_show_type)&&void 0!==e?e:""),ref:h},u&&u.length>0&&r.createElement("h2",null,p("文件夹")),u&&r.createElement("div",{onClick:s},u.map(function(t,e){return r.createElement(r.Fragment,{key:e},r.createElement(J,rt({fileHandler:c,itemWidth:m,index:e},t)))})),l&&l.length>0&&r.createElement("h2",{onClick:s},p("文件")),l&&r.createElement("div",{onClick:s},l.map(function(t,e){return r.createElement(r.Fragment,{key:e+w},r.createElement(J,rt({fileHandler:c,icon:v(t.name)?"refresh":void 0,itemWidth:m,index:e+w},t)))})))}function ut(t){var e,n,i=t.handleContextMenu,l=t.file_list,u=t.folder_list,s=t.clickBlank,c=it((0,o.L4)(a.A.user_base_info),2),f=c[0],d=(c[1],(0,r.useRef)(null)),h=(0,E.Bd)().t,p=(0,S.OJ)(),m=(0,k.hg)().file_is_running,v=it((0,o.L4)(a.A.fileShellShow),2),y=v[0],b=v[1],g=(0,r.useMemo)(function(){var t;return null!==(t=null==u?void 0:u.length)&&void 0!==t?t:0},[u]);return(0,S.ei)(d,A.PromptEnum.FilesUpload),(0,S.UK)(l,u,d),(0,r.useEffect)(function(){return function(){y.show&&b({show:!1,path:""})}},[]),r.createElement("div",{onContextMenu:i,id:"listing",style:{paddingBottom:"10rem"},className:"mosaic file-icons ".concat(null!==(e=null==f||null===(n=f.user_data)||void 0===n?void 0:n.file_list_show_type)&&void 0!==e?e:""),ref:d},u&&u.length>0&&r.createElement("h2",null,h("文件夹")),u&&r.createElement("div",{onClick:s},u.map(function(t,e){return r.createElement(r.Fragment,{key:e},r.createElement(N,rt({itemWidth:p,index:e},t)))})),l&&l.length>0&&r.createElement("h2",{onClick:s},h("文件")),l&&r.createElement("div",{onClick:s},l.map(function(t,e){return r.createElement(r.Fragment,{key:e+g},r.createElement(N,rt({icon:m(t.name)?"refresh":void 0,itemWidth:p,index:e+g},t)))})))}function st(t){var e,n,i=t.handleContextMenu,l=t.list,u=t.clickBlank,s=it((0,o.L4)(a.A.user_base_info),2),c=s[0],f=(s[1],(0,r.useRef)(null)),d=((0,E.Bd)().t,(0,S.OJ)()),h=(0,k.hg)().file_is_running,p=it((0,o.L4)(a.A.fileShellShow),2),m=p[0],v=p[1],y=it((0,o.L4)(a.A.enterKey),2),b=(y[0],y[1],it((0,o.L4)(a.A.selectedFileList),2)),g=(b[0],b[1],it((0,o.L4)(a.A.file_page),2)),w=(g[0],g[1]);return(0,S.UK)(l,[],f),(0,S.ei)(f,A.PromptEnum.FilesUpload),(0,S.SQ)(f,function(){w(function(t){return t.page_num<0?t:{page_size:t.page_size,page_num:t.page_num+1}})},function(){}),(0,r.useEffect)(function(){return function(){m.show&&v({show:!1,path:""})}},[]),r.createElement("div",{onContextMenu:i,id:"listing",style:{paddingBottom:"10rem"},className:"mosaic file-icons ".concat(null!==(e=null==c||null===(n=c.user_data)||void 0===n?void 0:n.file_list_show_type)&&void 0!==e?e:""),ref:f},l&&r.createElement("div",{onClick:u},l.map(function(t,e){return r.createElement(r.Fragment,{key:e},r.createElement(N,rt({icon:h(t.name)?"refresh":void 0,itemWidth:d,index:e},t)))})))}},6960(t,e,n){"use strict";n.d(e,{s:()=>a});var r=n(2635),i=1440,o=525600;function a(t){t=t>1e12?t:1e3*t;var e=Date.now(),n=Math.abs(e-t)/6e4;return n<1?r.Ay.t("小于一分钟"):n<60?"".concat(n.toFixed(0)," ").concat(r.Ay.t("分钟前")):n<i?"".concat((n/60).toFixed(0)," ").concat(r.Ay.t("小时前")):n<43200?"".concat((n/i).toFixed(0)," ").concat(r.Ay.t("天前")):n<o?"".concat((n/43200).toFixed(0)," ").concat(r.Ay.t("月前")):"".concat((n/o).toFixed(0)," ").concat(r.Ay.t("年前"))}},1028(t,e,n){"use strict";n.d(e,{A:()=>l});var r=n(1601),i=n.n(r),o=n(6314),a=n.n(o)()(i());a.push([t.id,'.awesomplete [hidden] {\n display: none;\n}\n\n.awesomplete .visually-hidden {\n position: absolute;\n clip: rect(0, 0, 0, 0);\n}\n\n.awesomplete {\n display: inline-block;\n position: relative;\n}\n\n.awesomplete > input {\n display: block;\n}\n\n.awesomplete > ul {\n position: absolute;\n left: 0;\n z-index: 1;\n min-width: 100%;\n box-sizing: border-box;\n list-style: none;\n padding: 0;\n margin: 0;\n background: #fff;\n}\n\n.awesomplete > ul:empty {\n display: none;\n}\n\n.awesomplete > ul {\n\tborder-radius: .3em;\n\tmargin: .2em 0 0;\n\tbackground: hsla(0,0%,100%,.9);\n\tbackground: linear-gradient(to bottom right, white, hsla(0,0%,100%,.8));\n\tborder: 1px solid rgba(0,0,0,.3);\n\tbox-shadow: .05em .2em .6em rgba(0,0,0,.2);\n\ttext-shadow: none;\n}\n\n@supports (transform: scale(0)) {\n\t.awesomplete > ul {\n\t\ttransition: .3s cubic-bezier(.4,.2,.5,1.4);\n\t\ttransform-origin: 1.43em -.43em;\n\t}\n\t\n\t.awesomplete > ul[hidden],\n\t.awesomplete > ul:empty {\n\t\topacity: 0;\n\t\ttransform: scale(0);\n\t\tdisplay: block;\n\t\tvisibility: hidden;\n\t\ttransition-timing-function: ease;\n\t}\n}\n\n\t/* Pointer */\n\t.awesomplete > ul:before {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t\ttop: -.43em;\n\t\tleft: 1em;\n\t\twidth: 0; height: 0;\n\t\tpadding: .4em;\n\t\tbackground: white;\n\t\tborder: inherit;\n\t\tborder-right: 0;\n\t\tborder-bottom: 0;\n\t\t-webkit-transform: rotate(45deg);\n\t\ttransform: rotate(45deg);\n\t}\n\n\t.awesomplete > ul > li {\n\t\tposition: relative;\n\t\tpadding: .2em .5em;\n\t\tcursor: pointer;\n\t}\n\t\n\t.awesomplete > ul > li:hover {\n\t\tbackground: hsl(200, 40%, 80%);\n\t\tcolor: black;\n\t}\n\t\n\t.awesomplete > ul > li[aria-selected="true"] {\n\t\tbackground: hsl(205, 40%, 40%);\n\t\tcolor: white;\n\t}\n\t\n\t\t.awesomplete mark {\n\t\t\tbackground: hsl(65, 100%, 50%);\n\t\t}\n\t\t\n\t\t.awesomplete li:hover mark {\n\t\t\tbackground: hsl(68, 100%, 41%);\n\t\t}\n\t\t\n\t\t.awesomplete li[aria-selected="true"] mark {\n\t\t\tbackground: hsl(86, 100%, 21%);\n\t\t\tcolor: inherit;\n\t\t}\n',""]);const l=a},9145(t,e,n){"use strict";var r=n(5072),i=n.n(r),o=n(7825),a=n.n(o),l=n(7659),u=n.n(l),s=n(5056),c=n.n(s),f=n(540),d=n.n(f),h=n(1113),p=n.n(h),m=n(1028),v={};v.styleTagTransform=p(),v.setAttributes=c(),v.insert=u().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=d();i()(m.A,v),m.A&&m.A.locals&&m.A.locals}}]);