filecat 5.1.4 → 5.3.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 (98) hide show
  1. package/README.md +7 -1
  2. package/build/dist/{100.64207a3b8bb7ea9a4a8c.js → 100.1100f03272726dcab961.js} +2 -2
  3. package/build/dist/100.1100f03272726dcab961.js.LICENSE.txt +1 -0
  4. package/build/dist/181.4bf3187d0433c2a35a2c.js +2 -0
  5. package/build/dist/181.4bf3187d0433c2a35a2c.js.LICENSE.txt +1 -0
  6. package/build/dist/29.ccb6a0c1c28df0b823c0.js +2 -0
  7. package/build/dist/29.ccb6a0c1c28df0b823c0.js.LICENSE.txt +1 -0
  8. package/build/dist/308.21e5d8bdfde58f421c2b.js +2 -0
  9. package/build/dist/308.21e5d8bdfde58f421c2b.js.LICENSE.txt +1 -0
  10. package/build/dist/402.483375aaa84fbee09bcb.js +2 -0
  11. package/build/dist/402.483375aaa84fbee09bcb.js.LICENSE.txt +1 -0
  12. package/build/dist/432.74539b8dfd4e8aea0158.js +2 -0
  13. package/build/dist/432.74539b8dfd4e8aea0158.js.LICENSE.txt +1 -0
  14. package/build/dist/441.19783532a702634c183f.js +2 -0
  15. package/build/dist/441.19783532a702634c183f.js.LICENSE.txt +1 -0
  16. package/build/dist/445.ea569bbb50cbe31fb4a2.js +2 -0
  17. package/build/dist/445.ea569bbb50cbe31fb4a2.js.LICENSE.txt +1 -0
  18. package/build/dist/467.19aae99b35362f860501.js +2 -0
  19. package/build/dist/467.19aae99b35362f860501.js.LICENSE.txt +1 -0
  20. package/build/dist/502.b0d5f9cf08dcf45c68a7.js +2 -0
  21. package/build/dist/502.b0d5f9cf08dcf45c68a7.js.LICENSE.txt +1 -0
  22. package/build/dist/523.6efa363f1abf3a610b3d.js +2 -0
  23. package/build/dist/523.6efa363f1abf3a610b3d.js.LICENSE.txt +1 -0
  24. package/build/dist/542.052ecfb0f594fd6f1e80.js +2 -0
  25. package/build/dist/542.052ecfb0f594fd6f1e80.js.LICENSE.txt +1 -0
  26. package/build/dist/567.8f2c4230393161c4dab4.js +2 -0
  27. package/build/dist/567.8f2c4230393161c4dab4.js.LICENSE.txt +1 -0
  28. package/build/dist/602.966769eb0cb217e4dbdc.js +2 -0
  29. package/build/dist/602.966769eb0cb217e4dbdc.js.LICENSE.txt +1 -0
  30. package/build/dist/636.5848f3ff3c0a6b3ef049.js +2 -0
  31. package/build/dist/636.5848f3ff3c0a6b3ef049.js.LICENSE.txt +1 -0
  32. package/build/dist/654.51eee04a7329fc954a5d.js +2 -0
  33. package/build/dist/654.51eee04a7329fc954a5d.js.LICENSE.txt +1 -0
  34. package/build/dist/659.e1276f69cfeff679a4dd.js +2 -0
  35. package/build/dist/659.e1276f69cfeff679a4dd.js.LICENSE.txt +1 -0
  36. package/build/dist/674.80d6f27efa6cb21990a5.js +2 -0
  37. package/build/dist/674.80d6f27efa6cb21990a5.js.LICENSE.txt +1 -0
  38. package/build/dist/{757.0e3114cc8fb18e562b2b.js → 757.245e4eca510499ede5da.js} +1 -1
  39. package/build/dist/811.46c14bd0ce878cab02b4.js +2 -0
  40. package/build/dist/811.46c14bd0ce878cab02b4.js.LICENSE.txt +1 -0
  41. package/build/dist/892.c600dcee81bf6ce19af3.js +2 -0
  42. package/build/dist/892.c600dcee81bf6ce19af3.js.LICENSE.txt +1 -0
  43. package/build/dist/{943.20e881a5edfe48f15574.js → 943.ec999c0276ddb5da5f6e.js} +2 -2
  44. package/build/dist/995.d9b2e463276f4ca88318.js +2 -0
  45. package/build/dist/995.d9b2e463276f4ca88318.js.LICENSE.txt +1 -0
  46. package/build/dist/998.2810c4409485d9c5b459.js +2 -0
  47. package/build/dist/998.2810c4409485d9c5b459.js.LICENSE.txt +1 -0
  48. package/build/dist/index.html +1 -1
  49. package/build/dist/main.f0e9fd533b48e5868a7e.js +2 -0
  50. package/build/dist/{main.3dc056ab9870711bbb9a.js.LICENSE.txt → main.f0e9fd533b48e5868a7e.js.LICENSE.txt} +1 -1
  51. package/build/main.js +1 -1
  52. package/build/main.js.LICENSE.txt +6 -0
  53. package/package.json +1 -1
  54. package/build/dist/100.64207a3b8bb7ea9a4a8c.js.LICENSE.txt +0 -1
  55. package/build/dist/181.128390508f49f2ff3de6.js +0 -2
  56. package/build/dist/181.128390508f49f2ff3de6.js.LICENSE.txt +0 -1
  57. package/build/dist/29.afc5801d3e4eba212a81.js +0 -2
  58. package/build/dist/29.afc5801d3e4eba212a81.js.LICENSE.txt +0 -1
  59. package/build/dist/308.fdab4f1b09a9556bbcfd.js +0 -2
  60. package/build/dist/308.fdab4f1b09a9556bbcfd.js.LICENSE.txt +0 -1
  61. package/build/dist/402.f5aaf020a2e40c98e45a.js +0 -2
  62. package/build/dist/402.f5aaf020a2e40c98e45a.js.LICENSE.txt +0 -1
  63. package/build/dist/432.b61539c38647d029115c.js +0 -2
  64. package/build/dist/432.b61539c38647d029115c.js.LICENSE.txt +0 -1
  65. package/build/dist/441.8196626aec2941142764.js +0 -2
  66. package/build/dist/441.8196626aec2941142764.js.LICENSE.txt +0 -1
  67. package/build/dist/445.5acc66a00dd5b30defcf.js +0 -2
  68. package/build/dist/445.5acc66a00dd5b30defcf.js.LICENSE.txt +0 -1
  69. package/build/dist/467.eaae8d396d50288623e1.js +0 -2
  70. package/build/dist/467.eaae8d396d50288623e1.js.LICENSE.txt +0 -1
  71. package/build/dist/502.8b581e7886286567121e.js +0 -2
  72. package/build/dist/502.8b581e7886286567121e.js.LICENSE.txt +0 -1
  73. package/build/dist/523.62bb7d0e15dd9fbe32dd.js +0 -2
  74. package/build/dist/523.62bb7d0e15dd9fbe32dd.js.LICENSE.txt +0 -1
  75. package/build/dist/542.4bf1399e457da8a76668.js +0 -2
  76. package/build/dist/542.4bf1399e457da8a76668.js.LICENSE.txt +0 -1
  77. package/build/dist/567.7ae59d8dfeb8890c5fc8.js +0 -2
  78. package/build/dist/567.7ae59d8dfeb8890c5fc8.js.LICENSE.txt +0 -1
  79. package/build/dist/602.2b2ee33c90538c42bcac.js +0 -2
  80. package/build/dist/602.2b2ee33c90538c42bcac.js.LICENSE.txt +0 -1
  81. package/build/dist/636.dff6c9cb7d0fb7032a93.js +0 -2
  82. package/build/dist/636.dff6c9cb7d0fb7032a93.js.LICENSE.txt +0 -1
  83. package/build/dist/654.eb0c8a3032d47a77c5a6.js +0 -2
  84. package/build/dist/654.eb0c8a3032d47a77c5a6.js.LICENSE.txt +0 -1
  85. package/build/dist/659.c5a239c2f8f8872cfed0.js +0 -2
  86. package/build/dist/659.c5a239c2f8f8872cfed0.js.LICENSE.txt +0 -1
  87. package/build/dist/674.d9572e2ef61fbb679acc.js +0 -2
  88. package/build/dist/674.d9572e2ef61fbb679acc.js.LICENSE.txt +0 -1
  89. package/build/dist/811.b0f9ed14de495ca7759c.js +0 -2
  90. package/build/dist/811.b0f9ed14de495ca7759c.js.LICENSE.txt +0 -1
  91. package/build/dist/892.8e4fcfe49693b220c83e.js +0 -2
  92. package/build/dist/892.8e4fcfe49693b220c83e.js.LICENSE.txt +0 -1
  93. package/build/dist/995.6eccaa83ff5c78010a01.js +0 -2
  94. package/build/dist/995.6eccaa83ff5c78010a01.js.LICENSE.txt +0 -1
  95. package/build/dist/998.cc16015411a639e6206a.js +0 -2
  96. package/build/dist/998.cc16015411a639e6206a.js.LICENSE.txt +0 -1
  97. package/build/dist/main.3dc056ab9870711bbb9a.js +0 -2
  98. /package/build/dist/{943.20e881a5edfe48f15574.js.LICENSE.txt → 943.ec999c0276ddb5da5f6e.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
@@ -1,2 +0,0 @@
1
- /*! For license information please see 602.2b2ee33c90538c42bcac.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[602],{1251:(t,e,r)=>{r.d(e,{s:()=>f});var n=r(2635),o=1,i=60*o,a=24*i,c=30*a,l=365*a,u=6e4;function f(t){t=t>1e12?t:1e3*t;var e=Date.now(),r=Math.abs(e-t)/u;return r<o?n.Ay.t("小于一分钟"):r<i?"".concat(r.toFixed(0)," ").concat(n.Ay.t("分钟前")):r<a?"".concat((r/i).toFixed(0)," ").concat(n.Ay.t("小时前")):r<c?"".concat((r/a).toFixed(0)," ").concat(n.Ay.t("天前")):r<l?"".concat((r/c).toFixed(0)," ").concat(n.Ay.t("月前")):"".concat((r/l).toFixed(0)," ").concat(n.Ay.t("年前"))}},5726:(t,e,r)=>{function n(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return o(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},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 a,c=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return c=t.done,t},e:function(t){l=!0,a=t},f:function(){try{c||null==r.return||r.return()}finally{if(l)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function i(t){return new Promise((function(e){var r=0,o=[];if(void 0!==t.items){var i,a=n(t.items);try{for(a.s();!(i=a.n()).done;){var c=i.value;if("file"===c.kind&&"function"==typeof c.webkitGetAsEntry)l(c.webkitGetAsEntry())}}catch(t){a.e(t)}finally{a.f()}}else e(t.files);function l(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t.isFile)r++,t.file((function(t){r--,t.fullPath="".concat(n).concat(t.name),o.push(t),0===r&&e(o)}));else if(t.isDirectory){var i={isDir:!0,size:0,fullPath:"".concat(n).concat(t.name),name:t.name};o.push(i),u(t.createReader(),"".concat(n).concat(t.name))}}function u(t,i){r++,t.readEntries((function(a){if(r--,a.length>0){var c,f=n(a);try{for(f.s();!(c=f.n()).done;){l(c.value,"".concat(i,"/"))}}catch(t){f.e(t)}finally{f.f()}u(t,"".concat(i,"/"))}0===r&&e(o)}))}}))}function a(t){return new Promise((function(e,r){var n=document.createElement("script");n.src=t,n.async=!0,n.onload=function(){e(null),console.log("脚本加载完成")},n.onerror=function(){r(r),console.error("脚本加载失败")},document.body.appendChild(n)}))}r.d(e,{J:()=>a,T:()=>i})},7374:(t,e,r)=>{r.d(e,{e:()=>h});var n=r(6540),o=r(7767),i=r(4976),a=r(4694),c=r(4289),l=r(3033),u=r(5725);function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(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 s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function h(t){var e=(0,o.zy)(),r=f((0,n.useState)([]),2),s=r[0],h=r[1],y=f((0,n.useState)("/"),2),d=y[0],p=y[1],m=f((0,n.useState)(void 0),2),v=m[0],g=m[1];n.useEffect((function(){var e="",r=(0,c.vX)().split("/");r=r.filter((function(t){return t}));var n=r.indexOf(t.baseRoute),o=[];if(-1!=n){e=(0,a.IO)(r.slice(0,n),t.baseRoute);for(var i=r.slice(n+1),l=0;l<i.length;l++){var u=i[l];o.push({value:u,href:0===l?"".concat(e).concat(u,"/"):(0,a.IO)(o[l-1].href,u)})}p(e),h(o)}}),[e]);var b=function(e){e.stopPropagation(),t.clickFun(e)};return n.createElement("div",{className:"breadcrumbs",onClick:function(t){g(void 0!==v?void 0:"")}},n.createElement(n.Fragment,null,void 0===v?n.createElement(n.Fragment,null,n.createElement("span",{className:"chevron"},n.createElement(i.N_,{to:d,onClick:b},n.createElement("i",{className:"material-icons"},"home"))),s.map((function(t,e){return n.createElement("span",{className:"chevron",key:e},n.createElement("i",{className:"material-icons"},"keyboard_arrow_right"),n.createElement(i.N_,{to:t.href,onClick:b},decodeURIComponent(t.value)))}))):n.createElement(u.QM,{click:function(){g(void 0)},children:n.createElement(l.Sm,{width:"100%",maxWidth:"60%",placeholder:"输入跳转的目录",handlerEnter:function(e){t.input_path_enter&&t.input_path_enter(e),g(void 0)}})})))}},8844:(t,e,r)=>{r.d(e,{B:()=>g});var n=r(6540),o=r(7022),i=r(7444),a=r(4694),c=r(6417),l=r(6007);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function f(){return f=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},f.apply(null,arguments)}function s(t){return function(t){if(Array.isArray(t))return v(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||m(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 h(){h=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new F(n||[]);return o(a,"_invoke",{value:O(t,r,c)}),a}function y(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var d="suspendedStart",p="suspendedYield",m="executing",v="completed",g={};function b(){}function w(){}function E(){}var x={};f(x,a,(function(){return this}));var A=Object.getPrototypeOf,L=A&&A(A(P([])));L&&L!==r&&n.call(L,a)&&(x=L);var S=E.prototype=b.prototype=Object.create(x);function _(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,i,a,c){var l=y(t[o],t,i);if("throw"!==l.type){var f=l.arg,s=f.value;return s&&"object"==u(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=d;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=j(c,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var u=y(e,r,n);if("normal"===u.type){if(o=n.done?v:p,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=v,n.method="throw",n.arg=u.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=y(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(u(e)+" is not iterable")}return w.prototype=E,o(S,"constructor",{value:E,configurable:!0}),o(E,"constructor",{value:w,configurable:!0}),w.displayName=f(E,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,f(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},_(k.prototype),f(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new k(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(S),f(S,l,"Generator"),f(S,a,(function(){return this})),f(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=P,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function y(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(t){return void r(t)}c.done?e(l):Promise.resolve(l).then(n,o)}function d(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){y(i,n,o,a,c,"next",t)}function c(t){y(i,n,o,a,c,"throw",t)}a(void 0)}))}}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||m(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 m(t,e){if(t){if("string"==typeof t)return v(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(t,e):void 0}}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function g(t){var e,r,u=p((0,i.L4)(c.A.selectedFileList),2),y=u[0],m=u[1],v=p((0,i.L4)(c.A.nowFileList),2),g=v[0],b=(v[1],p((0,i.L4)(c.A.confirm),2)),w=(b[0],b[1]),E=p((0,i.L4)(c.A.user_base_info),2),x=E[0];E[1];function A(){return(A=d(h().mark((function e(r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.click&&t.click(r,t.name);case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return n.createElement("div",f({},t.extraAttr,{onClick:function(){!function(t){A.apply(this,arguments)}(t.index)},className:"item",role:"button","data-type":t.isLink?"invalid_link":t.type,"data-dir":!t.type||t.type===o.Iw.folder,"aria-selected":null!==(0,a.kW)(y,t.index),"aria-label":t.name,style:{"--filewidth":null!==(e=t.itemWidth)&&void 0!==e?e:"33%"},onDragStart:function(e){return r=t.index,void(y.find((function(t){return t===r}))||m([].concat(s(y),[r])));var r},onDrop:function(e){return function(e,r){for(var n,o=e.dataTransfer,i=!1,a=0;a<o.items.length;a++)if("file"===o.items[a].kind){i=!0;break}i||g.folders.length<=r||w({open:!0,title:"确定将文件移动并覆盖到".concat(g.folders[r].name,"吗?"),handle:(n=d(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.draggable_handle(g.folders[r].name);case 2:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})})}(e,t.index)},draggable:void 0!==t.draggable_handle}),void 0===t.icon&&n.createElement("div",null,t.type!==o.Iw.image||null==t.path||null!=x&&null!==(r=x.user_data)&&void 0!==r&&r.not_pre_show_image?n.createElement("i",{className:"material-icons"}):n.createElement("img",{loading:"lazy",src:l.$M.getDownloadUrl(t.path,{mtime:t.mtime,cache:1}),alt:t.name})),void 0!==t.icon&&n.createElement("div",{className:"rotating-div"},n.createElement("span",{className:"material-icons"},t.icon)),n.createElement("div",null,n.createElement("p",{className:"name"},t.name),t.size?n.createElement("p",null,t.size):n.createElement("p",null,"—"),n.createElement("p",null,t.show_mtime)),t.children)}}}]);
@@ -1 +0,0 @@
1
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
@@ -1,2 +0,0 @@
1
- /*! For license information please see 636.dff6c9cb7d0fb7032a93.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[636],{1636:(t,e,n)=>{n.r(e),n.d(e,{default:()=>O});var r=n(2389),o=n(6540),i=n(7444),a=n(6417),c=n(4238),u=n(4944),l=n(447),f=n(5997),s=n(7952),h=n(5725),p=n(7071),d=n(4289),v=n(8062),y=n(7856);function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function g(){g=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var i=e&&e.prototype instanceof w?e:w,a=Object.create(i.prototype),c=new F(r||[]);return o(a,"_invoke",{value:O(t,n,c)}),a}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",y={};function w(){}function b(){}function E(){}var x={};l(x,a,(function(){return this}));var k=Object.getPrototypeOf,_=k&&k(k(N([])));_&&_!==n&&r.call(_,a)&&(x=_);var L=E.prototype=w.prototype=Object.create(x);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(o,i,a,c){var u=s(t[o],t,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==m(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,n,r){var o=h;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=C(c,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=d;var l=s(e,n,r);if("normal"===l.type){if(o=r.done?v:p,l.arg===y)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function C(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=s(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function N(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(m(e)+" is not iterable")}return b.prototype=E,o(L,"constructor",{value:E,configurable:!0}),o(E,"constructor",{value:b,configurable:!0}),b.displayName=l(E,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,l(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},S(j.prototype),l(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new j(f(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(L),l(L,u,"Generator"),l(L,a,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=N,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function w(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function b(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){w(i,r,o,a,c,"next",t)}function c(t){w(i,r,o,a,c,"throw",t)}a(void 0)}))}}function E(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=k(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 i,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function x(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,o,i,a,c=[],u=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||k(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 k(t,e){if(t){if("string"==typeof t)return _(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)?_(t,e):void 0}}function _(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}var L,S,j=o.lazy((function(){return n.e(614).then(n.bind(n,5614))}));function O(t){var e=(0,r.Bd)().t,n=x((0,i.L4)(a.A.workflow_realtime_show),2),m=n[0],w=n[1],k=x((0,o.useState)([]),2),_=(k[0],k[1],x((0,o.useState)([]),2)),O=(_[0],_[1],x((0,o.useState)(!1),2)),C=O[0],A=O[1],M=x((0,o.useState)(void 0),2),F=M[0],N=M[1],P=x((0,o.useState)([]),2),G=P[0],I=P[1],T=function(t){var e,n=E(t);try{for(n.s();!(e=n.n()).done;){var r,i,a,c=e.value;(null==c||null===(r=c.extra_data)||void 0===r?void 0:r.running_type)===p.rl.success?c.name=o.createElement("div",null,o.createElement(l.fq,{success:!0}),c.name):(null==c||null===(i=c.extra_data)||void 0===i?void 0:i.running_type)===p.rl.fail?c.name=o.createElement("div",null,o.createElement(l.fq,{success:!1}),c.name):(null==c||null===(a=c.extra_data)||void 0===a?void 0:a.running_type)===p.rl.running&&(c.name=o.createElement("div",null,o.createElement(l.fq,{running:!0}),c.name)),c.children&&T(c.children)}}catch(t){n.e(t)}finally{n.f()}},q=function(){var t=b(g().mark((function t(e){var n;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(n=new p.v3).filename_path="".concat((0,d.GG)("file",(0,d.vX)())).concat(m.filename),u.ws.addMsg(c.HK.workflow_realtime_one_rsq,(function(t){if(t.context.list&&t.context.list.length>0){var e=t.context.list;T(e),I(e)}t.context.new_log&&H(t.context.new_log)})),u.ws.sendData(c.HK.workflow_realtime_one_req,n);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),B=function(){var t=b(g().mark((function t(){var e;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=new y.Terminal({fontFamily:"Monaco, Menlo, Consolas, 'Courier New', monospace",theme:{background:"#FFFFFF",foreground:"#000000",cursor:"#000000",selectionBackground:"#a6d2ff"},cursorBlink:!0,cursorStyle:"bar",scrollback:1e3,scrollSensitivity:1,tabStopWidth:4,convertEol:!0}),S=e,N(e);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();(0,o.useEffect)((function(){return A(!1),L=void 0,S=void 0,q(),b(g().mark((function t(){return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:u.ws.removeMsg(c.HK.workflow_realtime_one_rsq),S&&(S.dispose(),S=null);case 2:case"end":return t.stop()}}),t)})))}),[]);var H=function(){var t=b(g().mark((function t(e){return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(S){t.next=3;break}return t.next=3,new Promise((function(t){L=t,A(!0),B()}));case 3:e&&S.write(e);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return o.createElement("div",null,o.createElement(s.A,null,F&&o.createElement(f.rA,{icon:"print",title:"打印日志",onClick:function(){A(!C)}}),o.createElement(f.rA,{icon:"close",title:e("关闭"),onClick:function(){w({open:!1})}})),o.createElement(h.jW,{isFull:!0,more:!0},o.createElement(h.NN,null,o.createElement(v.A,{list:G,click:function(t){}}))),o.createElement("div",{style:{display:C?"":"none"}},o.createElement(j,{show:!0,terminal:F,init:function(){L&&(L(1),L=void 0)}})))}},8062:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(6540);function o(){return o=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},o.apply(null,arguments)}function i(t){return r.createElement("div",{className:"black-tip",onClick:function(){t.click&&t.click(t)},onContextMenu:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),t.onContextMenu&&t.onContextMenu(e,t)}},t.name)}var a=function(t){return r.createElement("li",null,t.click?r.createElement(i,o({},t.node,{name:t.render?t.render(t.node):t.node.name,click:t.click,onContextMenu:t.onContextMenu})):r.createElement("div",null,t.render?t.render(t.node):t.node.name),t.node.children&&t.node.children.length>0&&r.createElement("ul",null,t.node.children.map((function(e,n){return r.createElement(a,{key:n,node:e,click:t.click,onContextMenu:t.onContextMenu,render:t.render})}))))};const c=function(t){return r.createElement("div",{className:"card-tree-view"},r.createElement("ul",null,t.list&&t.list.map((function(e,n){return r.createElement(a,{key:n,node:e,click:t.click,onContextMenu:t.onContextMenu,render:t.render})}))))}}}]);
@@ -1 +0,0 @@
1
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
@@ -1,2 +0,0 @@
1
- /*! For license information please see 654.eb0c8a3032d47a77c5a6.js.LICENSE.txt */
2
- (self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[654],{542:()=>{},3146:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>N});var n,o=r(6540),a=r(2389),i=r(7444),c=r(6417),u=r(4944),s=r(4238),l=r(6007),A=r(3459),f=r(3033),h=r(5997),p=r(3029),d=r(7952),y=(r(2341),r(9879)),v=r(8257),m=r.n(v),g=r(8965),w=r(2042),Y=r(4777),x=r(8247),b=r(3430);function S(t){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(t)}function j(){j=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new G(n||[]);return o(i,"_invoke",{value:B(t,r,c)}),i}function A(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",h="suspendedYield",p="executing",d="completed",y={};function v(){}function m(){}function g(){}var w={};s(w,i,(function(){return this}));var Y=Object.getPrototypeOf,x=Y&&Y(Y(z([])));x&&x!==r&&n.call(x,i)&&(w=x);var b=g.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,a,i,c){var u=A(t[o],t,a);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==S(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(l).then((function(t){s.value=t,i(s)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function B(e,r,n){var o=f;return function(a,i){if(o===p)throw Error("Generator is already running");if(o===d){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var s=A(e,r,n);if("normal"===s.type){if(o=n.done?d:h,s.arg===y)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=d,n.method="throw",n.arg=s.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=A(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function G(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function z(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(S(e)+" is not iterable")}return m.prototype=g,o(b,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:m,configurable:!0}),m.displayName=s(g,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},e.awrap=function(t){return{__await:t}},L(E.prototype),s(E.prototype,c,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new E(l(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(b),s(b,u,"Generator"),s(b,i,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=z,G.prototype={constructor:G,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:z(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function L(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function E(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){L(a,n,o,i,c,"next",t)}function c(t){L(a,n,o,i,c,"throw",t)}i(void 0)}))}}function B(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],u=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return k(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k(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 k(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function N(){var t=(0,a.Bd)().t,e=B((0,o.useState)(void 0),2),r=e[0],v=e[1],S=B((0,o.useState)(!1),2),L=S[0],k=S[1],N=B((0,i.L4)(c.A.user_base_info),2),P=N[0],G=(N[1],(0,x.MH)().check_user_auth),z=(0,o.useRef)(null),F=(0,o.useRef)(null),H=function(){var e=E(j().mark((function e(r){var o;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(P.sysSoftWare&&P.sysSoftWare[Y.jk.ffmpeg]&&P.sysSoftWare[Y.jk.ffmpeg].installed){e.next=3;break}return(0,w.zN)(t("找不到ffmpeg")),e.abrupt("return");case 3:return o={controls:!0,width:640,height:360},F.current=(0,y.default)(z.current,o),m().isSupported()?((n=m().createPlayer({type:"flv",url:g.I.getOtherWebSocketUrl(s.HK.rtsp_get,{url:r}),isLive:!0})).attachMediaElement(z.current),n.load(),n.load()):(0,w.zN)("FLV.js is not supported in this browser."),e.abrupt("return",(function(){}));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,o.useEffect)((function(){return function(){n&&(n.pause(),n.unload(),n.detachMediaElement(),n.destroy(),n=null),F.current&&F.current.dispose()}}),[]);var M=function(t){k(!0),H(t.address?t.address:r)},O=function(){var t=E(j().mark((function t(){return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u.ws.sendData(s.HK.rdp_disconnect,"");case 2:k(!1);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),K=function(){var t=E(j().mark((function t(){var e;return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.K4.get("tag");case 2:if((e=t.sent).code!==A.m.Sucess){t.next=5;break}return t.abrupt("return",e.data);case 5:return t.abrupt("return",[]);case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),I=function(){var t=E(j().mark((function t(e){return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.K4.post("tag/save",e);case 2:t.sent.code!==A.m.Sucess&&(0,w.zN)("网络错误");case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),D=function(){var t=E(j().mark((function t(e){return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:v(e.address),M(e);case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return o.createElement("div",null,o.createElement(d.A,null,o.createElement(f.$Z,{max_width:"40rem",placeholder:t(" rtsp://username:password@ip:port/path"),icon:"link",value:r,handleInputChange:function(t){return v(t)}}),!L&&o.createElement(h.rA,{icon:"play_arrow",title:t("连接"),onClick:M}),L&&o.createElement(h.rA,{icon:"close",title:t("关闭"),onClick:O})),!L&&o.createElement(p.N,{have_auth_edit:G(b.oV.rtsp_proxy_tag_update),getItems:K,save:I,clickItem:D,items:[{key:"name",preName:t("名字")},{key:"address",preName:t("地址")},{key:"color",preName:"color"}]}),o.createElement("canvas",{id:"rdpwebview",style:{display:"none"}}),o.createElement("div",{style:{display:L?"block":"none"}},o.createElement("video",{ref:z,className:"video-js vjs-default-skin"})))}},7422:t=>{"use strict";t.exports="data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABTsAAsAAAAAIpAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPgAAAFZRiV32Y21hcAAAAYQAAAEJAAAD5p42+VxnbHlmAAACkAAADtIAABckI4l972hlYWQAABFkAAAAKwAAADYsvIjpaGhlYQAAEZAAAAAdAAAAJA+RCL1obXR4AAARsAAAABcAAAC8Q2YAAGxvY2EAABHIAAAAYAAAAGB7CIGGbWF4cAAAEigAAAAfAAAAIAFAAI9uYW1lAAASSAAAASUAAAIK1cf1oHBvc3QAABNwAAABfAAAAnXdFqh1eJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGR7yDiBgZWBgaWQ5RkDA8MvCM0cwxDOeI6BgYmBlZkBKwhIc01hcPjI+FGPHcRdyA4RZgQRADaGCyYAAHic7dPXbcMwAEXRK1vuvffem749XAbKV3bjBA6fXsaIgMMLEWoQJaAEFKNnlELyQ4K27zib5PNF6vl8yld+TKr5kH0+cUw0xv00Hwvx2DResUyFKrV4XoMmLdp06NKjz4AhI8ZMmDJjzoIlK9Zs2LJjz4EjJ85cuHLjziPe/0UWL17mf2tqKLz/9jK9f8tXpGCoRdPKhtS0RqFkWvVQNtSKoVYNtWaoddPXEBqG2jQ9XWgZattQO4baNdSeofYNdWCoQ0MdGerYUCeGOjXUmaHODXVhqEtDXRnq2lA3hro11J2h7g31YKhHQz0Z6tlQL4Z6NdSbod4N9WGoT9MfHF6GmhnZLxyDcRMAAAB4nJ1YC1hU17U+a5/HMA4iA3NmVBDmoQwP5TFnHlFeA4gYiUFRQINoSCBAyK3G2yi+0aipYtFcHYo2xsb4NiY3+VrNxSaX5uvt495ozNdoYoxmem2/L8HGpLc+InB279pnhlGr5mvL4eyz99nrrL32eu1/DQcc/okdYgdHOA6MQKp4r9gx0EcMHMezOalVasW5BM7NcXoSb9fFgE6KtSSBxWz1FYDPG+vMBGcKb9cebu2VS5s2aaTkCvRSf6C7Y+Ppibm5E09v7IDs2/3uZQtbD0zIyppwoHXh/93ukmyYgdePNRp65p5v+3v/9otQl2O7wP34cT88p8Md2YxpYLQZoRcy6FlSBRnwnGAe6BPMSCZo+7NJVqS0cE4uHendzhSnbPH6TDqL1+Nme5LZXkCHnGyoH0kne30WH+gswhm3q+pt/mTas9NLS64GnjmSlTPw0wVQT/ewRaBgxtydy3cuUB9/6SW+vb5yRvr+t0eOfPKJZ/9t3+4tL7xj32Xd3thCxi+ge6ifdsAN+l5+wi5HQ/cCoeull1AszS7CUfEcJzK7sKWJAdJhCd0sPM4+EY7QDm5ov08hXRQXE5bf6PV5Q5+IjW7X7Nku92Ask4l2hCRRD6TPqISiCJeQna3SCFwrhrNzXHzo4yFevBwxpzxk8WCIIfkvVEKVy32SbT8n68gzgaslpaiO2zIGIyuSb7RNf9HSuN26y/7OC1tgEmpiyA6aD4qcgTOiLThwGG0eB694FI8NHLLN6OBlRVaMxNAFS4JdXUG6mW8PwpKuYLCLXKGbu8iwYNdgO06Sn3Th+/vyZAxs8Ro30DjHe9gy8Fywi24OMm7Qyzh3MTZVOMYhLBnoC+J79lpTUyQmorjhnMwlcQ5uPEYGpDjsOkkH49BjQLQBqs3jFtFdJNlksYmoQFDArLh8Xh+Qd6Ghcsb6FUuehDi+U/lqD71K/qiegeV1imcwjl7ExwiSrf4BZyCujV6cVcFo6VX+G9IcPyFjJnUufbU/jzrL1X99as36reXl8K32nFaOr+E8jWJEcJ55DpMVfSMe95/AJaOsGBH2GJCNpiRQbK4C8BjdmQA22QY2j03Em13i2YHqtNLU1NI04Yj2HJgA6fQc6VPNpA/D+Ryks554NnVy2mB72uRUfPLsqR4N0LOBQKArwJYO+5W2fgZX8oC1HR6HjNaQTVIG2FPwnTcXXGZZfNB7TE6pTKZUwaw91XWLAoFFGcnB5PHjsckgBjbWutrL+0h5Y1xw3DRGDumsnXb3MJwXrJIN5U7m0rgJ3yG5w4he5ckFG4pmNEkOm0/xOO4r4yL87wqtQM+hiJIVp+6iG2wPBKD35ElGkDx+UfC2v1mFG1o+M3AjNFty8biKMXwzyxnZLds8wYD2BxmCPHAldPOeLsy/0BugftYhVYFAhO8SqQ0j3oK7dHJZnI/jxmUS4onlxskSF8thmvNZjIrRZwEPxr0lBuLRuz3oy/FOHCsxwOPYh2M+e9u3J5pgPYz9gp6G7C9m0A11F9ddqKMfV+4sbq45/YspOysXvT+3pdFdYNg2fHbW8Dz301MqDVuGrz0Fuh0YMW8mddrpqzST7rV9BcvqPoNvadRndWp0p8HvbiqrFj5yFQ/vNFSXDpxpLEFWp+DcrF3FT1afWshFcmCfeAMjEvO65i0Y6XijQfSRPWx3TV/Df7Km3E1l+kLt56s/rwVzuRusNMhudznkwdLaS+QNdeal2jDPP4l9qHc98vTYZOSkxzD+njBWVWjFPKgipx6DkWvXQiW8OYcewVHE5yukinDMcfGgc0opDltYKDxIGBedkzc6jSfE7tlvESCDFUw0Hx0opS+U0lHCxNottbNWSxX9zZVvEhKWUSyBpaXwBc2a98M6UqPeXAs/GDon8Ax7hsthO8cM5HU7Ad0UvRR9lHmtyQKZ4MAe814X5h9MSUkQmhf96eVJ6p90OjIiqSIjvykvr2l5U55O/fPQKD+jIomYpNyGJQ25uQ2kIikRfAmuBHCPsWqkSDEqgZ5KDI2sifS/R43MbZg0idFHbCPNxXxZws1ACVE6hAhOdJwRkJLFBLPZpRGYJ50pko6XzMkgmSx40ljik6AQcKhFnLcQE6rF7PXFe1Ocoj0T3AXgSgJTDIhHRfHlYZKuSzc6uievOJGXY+i5GJkkTp7UM3y0LqATDbtFcbdBxO7o4T25JYlEjoH0uynUh8rapkxp62QN70svSF+hT4gGPlovlmcm/ComLi7mV4kTykV9NFWjE/QrwgQ4uIcAP0rQF4VZYRP2o3PhHHzfPMJj9Ir+uzKUlrH49ntT18AVvj1sc3YGjUT/Mt2Dxawa8ArcA7bCQIpvfwAYu22vEG/No/5RvPdA7g+AelLrPwzy+LtkLPhnpIxH14m4EYq8eeMHbPEPNm6G7Nv9B4jcFPZ8bJj0SEjP3MPgQdKTqqEoy2v6G32P/Y6dxOv04AxnoAeq+GILvUavtYCBXm+BaIhuodcfrN5B/V2EYMCPh+SxavjGyPwV0x4CJgUPGT0mQaODGBACIJZGsMXwAD0LGXx7l3CdAcKMIKI+f5CepWeD0BvyU/GcdBxPF8SwejC6LGZmAURFdsSWKR5HyHld2kbdIZO1Ixx+bnnzU7n5+blPNV9jnUDWhP2tC68tbN3PVIldsQPxSAcSpjOav7Q05uXn5zW2LLvDXn9B6syscPy9iDLEMmSrJz6nYuWMipukjM0AH8JkGS+XFyMRkzSCH7KD/hwm172SAyZYumHlefr5AddrtA0O0TnwaVZxcRY9Bfukn9Gf05N1r9DV9MoBsJ1f+ZrqUvtPHizJAntWybv7hmqLt6QLuK6ZS9Fqi1jO5rDoWPZXXII5Tgajg53cIXCjDCGIcYrRIY2n6+mXOa/W0bdhau3ryiEYe2FV/5oeaIYK/5w5frCyll6/cYO8DiNhw6t1MBWmznt91QX62UF1N7l0eHBZTRGpKaqpKVIPF9UcIzmReud9TSY75+K899GHbBu6wjoR7RKKZVYiYxSPf5/2wJT5e3NAhmUbVn5KLx1Ujg0+BGvpAIh0DezInTkzF37KVocxrKU3r1+XLtAe2lO3l66kfQfB/unKY+q8N375Ru8bc4pJXfEcESU95q+p8ZNZRTWH1d9FzvUdYXk5rLkcdkEisoKKVHQW/b3GEx6tPaYcoJfOr9wAbSBnv1IHpep0OExr4LPMkpJM+j7sly7UHkOzXjoAZljHCGiyegtNlwljM0v+c19ET9Pvst09a2Mtgcf5/ZSzYO5h1156+eyydfAsxGa9XAuF6vzjh6CssLq6ECysperXX0sX5h5ZdpZe3guxsGIPEtHk/aqXX1hVqP5HYVVVISkrrNqvXorIc+5Ou91Hnr/LcD2afi6eX7UBloOcs7cOpqgGaNfs1g7bNbs9z6wASaylN69d0/TFTIz6Ws8+oGV3mE2612wRTHKcVUbhjKadebloMc+dyXgMVtVK6BwMB/+mVW09igdRBWaRtNQX59d/VD//xdQ0TCiYNj1KT9sq6Wdu5WTbqk3qDXyDaLa1fv621LS01G3z61sD6lH8lAxDLicV921s6Bf92JOYvzNYCL1khbqBXEFUzC521N5NyzNaQIWhjyFyDoBIVrAjmv2UEaLlI+c6zw1jmVIPLLLZZUTj6GxGHW+mq1tgHXR2D85p4Q934+jLbtjVLcyCdS10NVzpHqxp4Q/hK7WopY/NRGx9HGsPGdFjOjcpjBnGYMVqY/4eqT5khWEHWUup2A/pTw7pdWgsWft7ETUERL96nRg0HNFPmCYba6pylECaExX89A9WLUOVB4oKLu/o1oqSYHCgLzBUlAz8hNFDRpeSU1XT+LRmDUgPaKbYdHDn9suF/tu13nHJij0N97LfS0QmqONuyONk7zvUI6Qa0pF9f2+oABL92AT6e0U//z9YqAiWtJLU1JK0gS+1aacwamiNqK067u9ZQ8f1d4qLodMzz3uL89Z68V/Hnr++hXWUuHgw8dfi972PeTyPefu3aNNucemQ74qFuIaJnVkOu4Q+yjuwmmC1FqZpl1i4uzoPxjkpPf3Xv545tl26Rr+dOvUd+omqJzch9dOeU7f10Y64nMcKK137DccIZq2WdXtdZjbEoLSzHwiMtrjYLDxpHQW8gjMX6XFYAE2zSWVD04EGYSs9MbO6sEo20BMEAB4mpvSypsKjZ4Stgzb+c3A9/MQT2+vrBy+qvyFxLUtLlSRF/Ri2wjfZ2dus2Q8lXx4608/jnqK5OOap6NY2PSjYYnECCjiEeLJll/pbmqfeIK+ps3+MxrlEhqmTPipVP7kqlF4VhpEb6r+Q7YOJg38kJ9SHBf3NBl6+9YchfbUjb5ahLSzUM3kPHmwFAsZ5rpai0S7E5xWzZ1j+fW7zsUWP2g5NXTw52ySCTrgG0+lbw60l2Y/CB185CoA8NK+tbRKxfjy6pm5hzQRRR+cMqv1Jbiw6STivtEvt3DRcy0QEh92JlUGo2PG4tSKHl00YD6xc8CK+YPYyy3io2lN8BcSjKRzrIV6ypOAobqxViJPaT9M9Hy5szY33mp7OX/Zu89L/7Ww5vqY2Y8b0pKgoiUhG5cPDPzq8qTV/WkzUOIvXVVA96kmjcBrr3HrYC/Wn+fYP6Z7T1rqy3zknbvqma/FvVk96fNXGkuaXrdHW5JGSxZT/2I/O73v+yNWafMdzc5NdxYurHs6h86e01sLKLz9EBrg+x36rxAaED7hRnAMx7Vzu+9wabh3zG8XLQjx0ablUJzmxdErxYT3kzQSd0SSafVqF5PXgpp0OyYJ1EyNHpGUZmvK575ySzd85JSqF7IBzSAbMM04+MbE58xF3/njXOGecSaermlw2y9PsSQdytLJVr8t+wg+rR8cZYoeNxVIzNdk3Bngi8U5LAlgTFoQnzJCa5EsCgYhCaGL+qPj7TdhG31p9tej3R04N//PXxNwJvyUqwaJqRPJY98TJ5TPndmflRAkAhBfe46sfKW5wizSge08Xb7Ca/GUVs55trngkKkrUS2WPzKttaaqq+idmahugkY+W6fN0I6i3gPt/x88U4wAAeJxjYGRgYADiGU9YXsXz23xl4GZnAIFH7fO+IdMc/WBxDgYmEAUASbMKwAB4nGNgZGBgZwABjj4Ghv//OfoZGBlQgT4ARicDZAAAAHicY2BgYGAfxJijD8Fmu4EqBwCSpgKpAAAAAAAADgBoAH4AzADgAQIBQgFsAZgB7gIuAooC0AL8A2IDjAOoA+AEMASwBNoFCAVaBcAGCAYuBnAGrAb2B04HigfSCCoIcAiGCJwIyAkkCVYJiAmsCfIKIApWCsQLknicY2BkYGDQZ2hmYGcAASYg5gJCBob/YD4DABqrAdAAeJxdkE1qg0AYhl8Tk9AIoVDaVSmzahcF87PMARLIMoFAl0ZHY1BHdBJIT9AT9AQ9RQ9Qeqy+yteNMzDzfM+88w0K4BY/cNAMB6N2bUaPPBLukybCLvleeAAPj8JD+hfhMV7hC3u4wxs7OO4NzQSZcI/8Ltwnfwi75E/hAR7wJTyk/xYeY49fYQ/PztM+jbTZ7LY6OWdBJdX/pqs6NYWa+zMxa13oKrA6Uoerqi/JwtpYxZXJ1coUVmeZUWVlTjq0/tHacjmdxuL90OR8O0UEDYMNdtiSEpz5XQGqzlm30kzUdAYFFOb8R7NOZk0q2lwAyz1i7oAr1xoXvrOgtYhZx8wY5KRV269JZ5yGpmzPTjQhvY9je6vEElPOuJP3mWKnP5M3V+YAAAB4nG2ReVPbMBDF/ULi2EkDBFqO3gdHLxUzDB9IkdexBllydRD49ihO3Ckz7B/a31utZnafkkGyiXnyclxhgB0MMUKKMTLkmGCKV5hhF3vYxxwHOMRrvMERjnGCU7zFO7zHB3zEJ3zGF3zFN5zhHBe4xHf8wE/8wm8w/MEVimTYKv44XR9MSCsUjVoeHE3vjQoNsSZ4mmxZmVWPjSz7jlou6/0qKOWEJdKMtCe793/hQfqxa6XWZHMXFl56RS4TvPXSaDeoy0zUUZB109KstDK8lHo5q6Qi1hcOnqkImubPS6aqRq7mlnaEWabub4iYblba3SRmgldS0+FWdhNtt04F14JUaqkl7tcpOpJtErvNt3Bd9HRT5JWxK25Ldjvp6br4hzfFiIdSmlzTg2fSUzNrLd1LE1ynxq4OVaVoKLjzJ60UPtj1RKzHzsbjly6inVnFBS2MucviPncU7Rr7lfTxRepDs1A2j3ZHRc7PuzFYSfE3ZOd4kjwBy227hA=="}}]);
@@ -1 +0,0 @@
1
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
@@ -1,2 +0,0 @@
1
- /*! For license information please see 659.c5a239c2f8f8872cfed0.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[659],{3659:(e,t,n)=>{n.r(t),n.d(t,{default:()=>P});var r=n(2389),a=n(6540),o=n(7444),i=n(6417),c=n(4238),l=n(4944),u=n(447),s=n(5997),f=n(2042),d=n(7952),h=n(5725),m=n(7481),p=n(3033),v=n(7071),y=n(4289),w=n(8062),g=n(7856),b=n(8815);function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function x(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=C(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw o}}}}function _(e){return function(e){if(Array.isArray(e))return L(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(){k=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),c=new I(r||[]);return a(i,"_invoke",{value:C(e,n,c)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var d="suspendedStart",h="suspendedYield",m="executing",p="completed",v={};function y(){}function w(){}function g(){}var b={};u(b,i,(function(){return this}));var x=Object.getPrototypeOf,_=x&&x(x(M([])));_&&_!==n&&r.call(_,i)&&(b=_);var S=g.prototype=y.prototype=Object.create(b);function A(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function n(a,o,i,c){var l=f(e[a],e,o);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==E(s)&&r.call(s,"__await")?t.resolve(s.__await).then((function(e){n("next",e,i,c)}),(function(e){n("throw",e,i,c)})):t.resolve(s).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,c)}))}c(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function C(t,n,r){var a=d;return function(o,i){if(a===m)throw Error("Generator is already running");if(a===p){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var l=L(c,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===d)throw a=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=m;var u=f(t,n,r);if("normal"===u.type){if(a=r.done?p:h,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(a=p,r.method="throw",r.arg=u.arg)}}}function L(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,L(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=f(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function M(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(E(t)+" is not iterable")}return w.prototype=g,a(S,"constructor",{value:g,configurable:!0}),a(g,"constructor",{value:w,configurable:!0}),w.displayName=u(g,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,u(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},A(j.prototype),u(j.prototype,c,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new j(s(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},A(S),u(S,l,"Generator"),u(S,i,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=M,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return c.type="throw",c.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;N(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:M(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function S(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function A(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){S(o,r,a,i,c,"next",e)}function c(e){S(o,r,a,i,c,"throw",e)}i(void 0)}))}}function j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return c}}(e,t)||C(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){if(e){if("string"==typeof e)return L(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var O,N,I=a.lazy((function(){return n.e(614).then(n.bind(n,5614))})),M=-1;function P(e){var t=(0,r.Bd)().t,n=j((0,o.L4)(i.A.workflow_show),2),E=(n[0],n[1]),S=j((0,a.useState)([]),2),C=S[0],L=S[1],P=j((0,a.useState)([]),2),F=P[0],G=P[1],T=j((0,a.useState)(!1),2),X=T[0],q=T[1],z=j((0,a.useState)(void 0),2),B=z[0],J=z[1],$=j((0,a.useState)([]),2),D=$[0],H=$[1],K=j((0,a.useState)(-1),2),W=K[0],U=K[1],V=j((0,a.useState)(10),2),Y=V[0],Z=(V[1],j((0,a.useState)(0),2)),Q=(Z[0],Z[1]),R=j((0,a.useState)(0),2),ee=R[0],te=R[1],ne=j((0,a.useState)(""),2),re=ne[0],ae=ne[1],oe=j((0,a.useState)(!1),2),ie=oe[0],ce=oe[1],le=[t("序号"),t("运行名称"),t("状态"),t("运行时长"),t("日期"),t("操作")],ue=[t("名称"),t("状态"),t("cwd"),t("运行时长"),t("操作")],se=function(){var e=A(k().mark((function e(t){var n,r,a;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=new v._).page_num=null!=t?t:W,n.page_size=Y,n.dir_path="".concat((0,y.GG)("file",(0,y.vX)())),e.next=6,l.ws.sendData(c.HK.workflow_get,n);case 6:if(r=e.sent){e.next=9;break}return e.abrupt("return");case 9:a=r.context,L(a.list.map((function(e){var t="string"==typeof e.meta?JSON.parse(e.meta):e.meta;return t.index=e.index,t}))),Q(a.total),te((0,b.gw)(a.total,Y));case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),fe=function(){var e=A(k().mark((function e(t){var n,r,a;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=new v._).search_name=t,n.dir_path="".concat((0,y.GG)("file",(0,y.vX)())),ce(!0),e.next=6,l.ws.sendData(c.HK.workflow_search_by_run_name,n);case 6:if(r=e.sent){e.next=9;break}return e.abrupt("return");case 9:a=r.context,L(a.list.map((function(e){var t="string"==typeof e.meta?JSON.parse(e.meta):e.meta;return t.index=e.index,t}))),Q(a.total),te((0,b.gw)(a.total,Y)),U(0),ce(!1);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),de=function(){var e=A(k().mark((function e(){var t;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=new g.Terminal({fontFamily:"Monaco, Menlo, Consolas, 'Courier New', monospace",theme:{background:"#FFFFFF",foreground:"#000000",cursor:"#000000",selectionBackground:"#a6d2ff"},cursorBlink:!0,cursorStyle:"bar",scrollback:1e3,scrollSensitivity:1,tabStopWidth:4,convertEol:!0}),N=t,J(t);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,a.useEffect)((function(){return q(!1),O=void 0,N=void 0,M=-1,se(),A(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:N&&(N.dispose(),N=null);case 1:case"end":return e.stop()}}),e)})))}),[]);var he=function(){var e=A(k().mark((function e(t){var n,r,a,o,i,u;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.is_running){e.next=2;break}return e.abrupt("return");case 2:return H([]),(n=new v._).index=t.index,n.dir_path="".concat((0,y.GG)("file",(0,y.vX)())),e.next=8,l.ws.sendData(c.HK.workflow_get,n);case 8:r=e.sent,a=r.context,o="string"==typeof a.one_data.data?JSON.parse(a.one_data.data):a.one_data.data,i=o.success_list,u=o.fail_list,G([].concat(_(u),_(i)));case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),me=function(e,t,n){if(t){var r,o=x(null!=t?t:[]);try{for(o.s();!(r=o.n()).done;){var i,c,l,s=r.value,f=void 0,d=[];if(s["use-yml"])me(d,void 0,s.use_job_children_list),f="".concat(s["use-yml"]," ;").concat(null!==(c=s.duration)&&void 0!==c?c:-1);else f="".concat(s.run," ;").concat(null!==(l=s.duration)&&void 0!==l?l:-1);f=a.createElement("div",null,a.createElement(u.fq,{success:void 0===s.code?void 0:0===s.code}),"$",f),e.push({name:f,children:d,extra_data:{code:s.code,context:null!==(i=s.success_message)&&void 0!==i?i:s.fail_message}})}}catch(e){o.e(e)}finally{o.f()}}else if(n){var h,m=x(null!=n?n:[]);try{for(m.s();!(h=m.n()).done;){var p=h.value,v=a.createElement("div",null,a.createElement(u.fq,{success:void 0===p.code?void 0:0===p.code}),"$",p.name);e.push({name:v,extra_data:{code:p.code,is_job:!0,job_data:p}})}}catch(e){m.e(e)}finally{m.f()}}},pe=function(){var e=A(k().mark((function e(t){var n,r;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.steps,me(r=[],null!=n?n:[]),H(r);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ve=function(){var e=A(k().mark((function e(t){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(N){e.next=3;break}return e.next=3,new Promise((function(e){O=e,q(!0),de()}));case 3:t&&(N.reset(),N.write(t));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ye=function(){var e=A(k().mark((function e(t){var n,r,a;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==t||null===(n=t.extra_data)||void 0===n||!n.is_job){e.next=4;break}return e.next=3,pe(t.extra_data.job_data);case 3:return e.abrupt("return");case 4:if(null==t||null===(r=t.extra_data)||void 0===r||!r.context){e.next=8;break}ve(t.extra_data.context),e.next=11;break;case 8:if(null!=t&&t.extra_data.code){e.next=10;break}return e.abrupt("return");case 10:ve(null!==(a=t.extra_data.code)&&void 0!==a?a:"");case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return a.createElement("div",null,a.createElement(d.A,null,B&&a.createElement(s.rA,{icon:"print",title:"打印日志",onClick:function(){q(!X)}}),a.createElement(s.rA,{icon:"close",title:t("关闭"),onClick:function(){E(!1)}})),a.createElement(h.jW,{isFull:!0,more:!0},a.createElement(h.NN,null,a.createElement(h.xh,null,a.createElement(h.fI,null,a.createElement(h.VP,null,a.createElement(u.uF,{self_title:a.createElement("span",{className:" div-row "},a.createElement("h2",null,t("历史记录"))),titleCom:a.createElement("div",{className:" div-row "},a.createElement(p.Sm,{disabled:ie,value:re,placeholder:"搜索运行名称(支持正则)",handleInputChange:function(e){ae(re)},handlerEnter:function(e){fe(e)}})),rightBottomCom:a.createElement("span",{className:" div-row "},a.createElement("span",null,Math.abs(W),"/",ee),a.createElement(p.Sm,{placeholder:"max page ".concat(ee),handleInputChange:function(e){M=parseInt(e)},handlerEnter:function(){if(M<1||M>ee)(0,f.zN)("illegal page num");else{var e=0-M;U(e),se(e)}}}),a.createElement(s.rA,{icon:"navigate_before",onClick:function(){var e=W+1;e>-1?(0,f.zN)("max page num"):(U(e),se(e))},title:"上一页"}),a.createElement(s.rA,{icon:"navigate_next",onClick:function(){var e=W-1;Math.abs(e)>ee?(0,f.zN)("min page num"):(U(e),se(e))},title:"下一页"}))},a.createElement(m.X,{headers:le,rows:C.map((function(e,n){var r;return r=e.is_running?a.createElement("div",null,a.createElement(u.fq,null),t("正在运行")):a.createElement("div",null,a.createElement(u.fq,{success:e.is_success}),e.is_success?t("成功"):t("失败")),[a.createElement("p",null,e.index),a.createElement("p",{style:{wordWrap:"break-word"}},e["run-name"]),r,a.createElement("span",null,e.duration),a.createElement("span",null,e.timestamp),a.createElement("div",null,a.createElement(s.rA,{icon:"details",title:t("详情"),onClick:function(){he(e)}}))]})),width:"10rem"}))),a.createElement(h.VP,null,a.createElement(u.Zp,{title:t("Job")},a.createElement(m.X,{headers:ue,rows:F.map((function(e,n){return[a.createElement("p",null,e.name),a.createElement("div",null,a.createElement(u.fq,{success:void 0===e.code?void 0:0===e.code}),0===e.code?t("成功"):t("失败")),a.createElement(u.xP,null,e.cwd),a.createElement("span",null,e.duration),a.createElement("div",null,a.createElement(s.rA,{icon:"details",title:t("详情"),onClick:function(){pe(e)}}),(!!e.success_message||!!e.fail_message)&&a.createElement(s.rA,{icon:"print",title:t("日志"),onClick:function(){var t;ve(null!==(t=e.success_message)&&void 0!==t?t:e.fail_message)}}))]})),width:"10rem"})),a.createElement(u.Zp,{title:"Step"},a.createElement(w.A,{list:D,click:function(e){ye(e)}}))))))),a.createElement("div",{style:{display:X?"":"none"}},a.createElement(I,{show:!0,terminal:B,init:function(){O&&(O(1),O=void 0)}})))}},7481:(e,t,n)=>{n.d(t,{S:()=>c,X:()=>i});var r=n(6540);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e){var t,n=a(r.useState([]),2),o=n[0],i=n[1];return(0,r.useEffect)((function(){e.children?i(Array.isArray(e.children)?e.children:[e.children]):i(e.rows)}),[e.rows,e.children]),r.createElement("table",null,r.createElement("thead",null,r.createElement("tr",null,null===(t=e.headers)||void 0===t?void 0:t.map((function(e,t){return r.createElement("th",{key:t},e)})))),r.createElement("tbody",null,o.map((function(t,n){return r.createElement("tr",{key:n,onContextMenu:function(){e.handleContextMenu&&e.handleContextMenu(t)}},t.map((function(t,n){var a;return r.createElement("td",{style:{width:null!==(a=e.width)&&void 0!==a?a:"auto"},key:n,className:n===o.length-1?"small":""},t)})))}))))}function c(e){return r.createElement("div",{style:{display:e.isFlex?"flex":"block"}},e.columns.map((function(e,t){return r.createElement("div",{key:t},e)})))}},8062:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(6540);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}function o(e){return r.createElement("div",{className:"black-tip",onClick:function(){e.click&&e.click(e)},onContextMenu:function(t){t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),e.onContextMenu&&e.onContextMenu(t,e)}},e.name)}var i=function(e){return r.createElement("li",null,e.click?r.createElement(o,a({},e.node,{name:e.render?e.render(e.node):e.node.name,click:e.click,onContextMenu:e.onContextMenu})):r.createElement("div",null,e.render?e.render(e.node):e.node.name),e.node.children&&e.node.children.length>0&&r.createElement("ul",null,e.node.children.map((function(t,n){return r.createElement(i,{key:n,node:t,click:e.click,onContextMenu:e.onContextMenu,render:e.render})}))))};const c=function(e){return r.createElement("div",{className:"card-tree-view"},r.createElement("ul",null,e.list&&e.list.map((function(t,n){return r.createElement(i,{key:n,node:t,click:e.click,onContextMenu:e.onContextMenu,render:e.render})}))))}}}]);
@@ -1 +0,0 @@
1
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
@@ -1,2 +0,0 @@
1
- /*! For license information please see 674.d9572e2ef61fbb679acc.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[674],{2674:(t,e,r)=>{r.r(e),r.d(e,{default:()=>F});var n=r(6540),o=r(6417),a=r(7444),i=r(5997),c=r(7952),u=r(7022);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function f(){f=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var a=e&&e.prototype instanceof w?e:w,i=Object.create(a.prototype),c=new C(n||[]);return o(i,"_invoke",{value:N(t,r,c)}),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var y="suspendedStart",d="suspendedYield",v="executing",m="completed",g={};function w(){}function b(){}function x(){}var E={};s(E,i,(function(){return this}));var L=Object.getPrototypeOf,k=L&&L(L(G([])));k&&k!==r&&n.call(k,i)&&(E=k);var _=x.prototype=w.prototype=Object.create(E);function S(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,a,i,c){var u=p(t[o],t,a);if("throw"!==u.type){var f=u.arg,s=f.value;return s&&"object"==l(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){f.value=t,i(f)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function N(e,r,n){var o=y;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=O(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var l=p(e,r,n);if("normal"===l.type){if(o=n.done?m:d,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=p(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function G(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(l(e)+" is not iterable")}return b.prototype=x,o(_,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:b,configurable:!0}),b.displayName=s(x,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,s(t,u,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},S(j.prototype),s(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new j(h(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},S(_),s(_,u,"Generator"),s(_,i,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=G,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:G(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function s(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function h(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){s(a,n,o,i,c,"next",t)}function c(t){s(a,n,o,i,c,"throw",t)}i(void 0)}))}}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return y(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(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 y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function d(t){var e=p((0,n.useState)(!1),2),r=e[0],o=e[1],a=p((0,n.useState)([]),2),i=a[0],c=a[1],l=function(t){c(t)},s=function(){var e=h(f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("folder"!==t.type){e.next=7;break}if(r||!t.click||i){e.next=4;break}return e.next=4,t.click(t,l,t.pre_path);case 4:o(!r),e.next=10;break;case 7:if(!t.click){e.next=10;break}return e.next=10,t.click(t,l,t.pre_path);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),y=function(){var e=h(f().mark((function e(){var r,n=arguments;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.length>0&&void 0!==n[0]&&n[0],"folder"!==t.type||r){e.next=6;break}return e.next=4,t.click(t,l,t.pre_path);case 4:e.next=7;break;case 6:t.fatherNowToggleExpansion&&t.fatherNowToggleExpansion();case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,n.useEffect)((function(){c(t.children)}),[t.children]),n.createElement("div",{className:"studio-item"},n.createElement("div",{onClick:s,onContextMenu:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),t.handleContextMenu&&t.handleContextMenu(e,t.name,t.pre_path,t.type===u.Iw.folder,y)},className:"studio-item-title"},n.createElement("i",{className:"material-icons studio-item-title-tag"},"file"==t.type?"":r?"arrow_drop_down":"arrow_right"),n.createElement("i",{className:"material-icons","file-type":t.type},"folder"===t.type?"folder":"text_snippet"),n.createElement("span",{className:"studio-item-name"},t.name)),r&&i&&n.createElement("div",{style:{marginLeft:20}},i.map((function(e,r){return n.createElement(n.Fragment,{key:r},n.createElement(d,{type:e.type,size:e.size,click:t.click,name:e.name,key:r,children:e.children,pre_path:"".concat(t.pre_path).concat(e.name).concat(e.type===u.Iw.folder?"/":""),handleContextMenu:t.handleContextMenu,fatherNowToggleExpansion:y}))}))))}function v(t){return n.createElement("div",null,t.list.map((function(e,r){return n.createElement(d,{pre_path:"".concat(t.pre_path).concat(e.name).concat(e.type===u.Iw.folder?"/":""),key:r,name:e.name,type:e.type,handleContextMenu:t.handleContextMenu,fatherNowToggleExpansion:t.fatherNowToggleExpansion,children:e.children,click:t.click,size:e.size})})))}var m=r(6007),g=r(4289),w=r(3459),b=r(8247),x=r(2543),E=r.n(x),L=r(4251),k=r(7567),_=r(2389),S=r(8815);function j(t){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(t)}function N(){N=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof m?e:m,i=Object.create(a.prototype),c=new C(n||[]);return o(i,"_invoke",{value:S(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function m(){}function g(){}function w(){}var b={};l(b,i,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(G([])));E&&E!==r&&n.call(E,i)&&(b=E);var L=w.prototype=m.prototype=Object.create(b);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function r(o,a,i,c){var u=s(t[o],t,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==j(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(f).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function S(e,r,n){var o=h;return function(a,i){if(o===y)throw Error("Generator is already running");if(o===d){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=O(c,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var l=s(e,r,n);if("normal"===l.type){if(o=n.done?d:p,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=d,n.method="throw",n.arg=l.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var a=s(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function G(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(j(e)+" is not iterable")}return g.prototype=w,o(L,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:g,configurable:!0}),g.displayName=l(w,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},k(_.prototype),l(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new _(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(L),l(L,u,"Generator"),l(L,i,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=G,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:G(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function O(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=G(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function P(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function A(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){P(a,n,o,i,c,"next",t)}function c(t){P(a,n,o,i,c,"throw",t)}i(void 0)}))}}function C(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(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 I(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(t,e):void 0}}function I(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var T=n.lazy((function(){return Promise.all([r.e(960),r.e(91)]).then(r.bind(r,4091))}));function F(t){var e=C((0,a.L4)(o.A.studio),2),r=e[0],l=e[1],f=C((0,n.useState)([]),2),s=f[0],h=f[1],p=C((0,n.useState)(""),2),y=p[0],d=p[1],x=C((0,n.useState)(""),2),j=(x[0],x[1]),P=C((0,n.useState)(!1),2),G=(P[0],P[1],C((0,n.useState)({path:"",name:""}),2)),I=G[0],F=G[1],M=C((0,n.useState)(""),2),z=M[0],D=M[1],U=C((0,a.L4)(o.A.confirm),2),Y=(U[0],U[1]),$=C((0,n.useState)(!1),2),R=$[0],K=$[1],B=C((0,a.L4)(o.A.fileShellShow),2),W=B[0],X=B[1],q=C((0,a.L4)(o.A.file_shell_hidden),2),H=q[0],J=q[1],Q=(0,n.useRef)(null),V=(0,n.useRef)(null),Z=C((0,n.useState)(!1),2),tt=Z[0],et=Z[1],rt=C((0,n.useState)(16),2),nt=rt[0],ot=rt[1],at=C((0,a.L4)(o.A.showPrompt),2),it=(at[0],at[1]),ct=(0,_.Bd)().t;var ut=function(){var t=A(N().mark((function t(){var e,n,o,a,i,c,u;return N().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,g.GG)("file",r.folder_path),d(e),t.next=4,m.$M.post("studio/get/item",{path:e});case 4:if((n=t.sent).code===w.m.Sucess){o=[],a=[],i=O(n.data.list);try{for(i.s();!(c=i.n()).done;)"folder"===(u=c.value).type?o.push(u):"file"===u.type&&a.push(u)}catch(t){i.e(t)}finally{i.f()}h([].concat(o,a))}case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();(0,n.useEffect)((function(){j(""),F({}),K(!1),r.folder_path&&ut()}),[r]);var lt=function(){var t=A(N().mark((function t(e,r){var n;return N().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,m.$M.get("".concat(encodeURIComponent(r)));case 2:n=t.sent,j(n.data),b.xK.set_value_temp(n.data),F({path:r,name:e}),D(r);case 7:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),ft=function(t,e){t.size>S.o5?Y({open:!0,handle:function(){lt(t.name,e),Y({open:!1,handle:null}),K(!1)},title:"超过20MB了还要打开吗?"}):lt(t.name,e)},st=function(){var t=A(N().mark((function t(e,r,n){var o,a,i,c,u,l;return N().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("folder"!==e.type){t.next=7;break}return t.next=3,m.$M.post("studio/get/item",{path:"".concat(n)});case 3:if((o=t.sent).code===w.m.Sucess){a=[],i=[],c=O(o.data.list);try{for(c.s();!(u=c.n()).done;)"folder"===(l=u.value).type?a.push(l):"file"===l.type&&i.push(l)}catch(t){c.e(t)}finally{c.f()}r([].concat(a,i))}t.next=11;break;case 7:if(!R){t.next=10;break}return Y({open:!0,handle:function(){Y({open:!1,handle:null}),K(!1),ft(e,n)},title:"确定不保存就切换吗?"}),t.abrupt("return");case 10:ft(e,n);case 11:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}();function ht(){return pt.apply(this,arguments)}function pt(){return(pt=A(N().mark((function t(){var e;return N().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(R){t.next=2;break}return t.abrupt("return");case 2:return e={context:b.xK.get_editor_value()},t.next=5,m.$M.post("save/".concat(encodeURIComponent(z)),e);case 5:0===t.sent.code&&K(!1);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var yt=function(t){t.ctrlKey&&"s"===t.key&&(t.preventDefault(),R&&ht())};(0,n.useEffect)((function(){return document.addEventListener("keydown",yt),function(){document.removeEventListener("keydown",yt)}}),[R]);var dt=(0,n.useCallback)(E().throttle((function(t){var e=parseFloat(getComputedStyle(V.current).fontSize),r=window.innerWidth/e-4,n=t.clientX/e,o=2.25+Q.current.offsetWidth/e;n<=r&&n>=o&&ot(parseFloat(n.toFixed(2)))}),32),[]),vt=function(){et(!1),V.current.removeEventListener("pointermove",dt)},mt=[{r:ct("创建文件"),v:"创建文件"},{r:ct("创建目录"),v:"创建目录"},{r:ct("重命名"),v:"重命名"},{r:ct("删除"),v:"删除"}],gt=[{r:ct("重命名"),v:"重命名"},{r:ct("删除"),v:"删除"}],wt=function(t,e,r,n,o){t.preventDefault();var a=new L.i;a.path=r,a.filename=e,a.x=t.clientX,a.y=t.clientY,a.items=n?mt:gt,o===ut&&(a.items=a.items.slice(0,2)),a.type=n?u.Iw.studio_folder:u.Iw.studio_file;var i=function(t){o(t)};a.textClick=function(t){switch(t){case"创建文件":it({show:!0,type:k.PromptEnum.FileNew,overlay:!0,data:{dir:r,call:i}});break;case"创建目录":it({show:!0,type:k.PromptEnum.DirNew,overlay:!0,data:{dir:r,call:i}});break;case"删除":if(R&&(I.path===r||I.path.includes(r))){it({show:!0,type:k.PromptEnum.FilesDelete,overlay:!0,data:{path:r,call:function(){i(n),K(!1),F({}),j(""),b.xK.set_value_temp("")}}});break}it({show:!0,type:k.PromptEnum.FilesDelete,overlay:!0,data:{path:r,call:n?function(){i(!0)}:i}});break;case"重命名":it({show:!0,type:k.PromptEnum.FileRename,overlay:!0,data:{path:r,dir:(0,g.Yp)(r),call:function(){i(!0)},filename:e}})}},it({show:!0,type:k.PromptEnum.FileMenu,overlay:!1,data:a})};return n.createElement("div",{className:"studio"},n.createElement(c.A,{ignore_tags:!0,left_children:[n.createElement(i.rA,{key:1,title:"取消",icon:"close",onClick:function(){l({}),X({show:!1,path:""}),J(void 0)}}),n.createElement("title",{key:2},I.name)]},n.createElement(i.rA,{icon:"terminal",title:"shell",onClick:function(){void 0===H?W.show?X({show:!1,path:""}):(X({show:!0,path:(0,g.GG)("file",r.folder_path)}),J(!1)):J(!H)}}),R&&n.createElement(i.rA,{title:"保存",icon:"save",onClick:ht})),n.createElement("div",{className:"studio-body",ref:V},n.createElement("div",{className:"studio-nav",style:{width:"".concat(nt-1,"em")},onContextMenu:function(t){wt(t,I.name,(0,g.GG)("file",r.folder_path),!0,ut)}},n.createElement(v,{pre_path:y,list:s,click:st,handleContextMenu:wt,fatherNowToggleExpansion:ut})),n.createElement("div",{className:"studio__divider",ref:Q,onPointerDown:function(){et(!0),V.current.addEventListener("pointermove",dt)},onPointerUp:vt}),tt&&n.createElement("div",{className:"shell__overlay",onPointerUp:vt}),n.createElement("div",{className:"studio-editor",key:I.path},I.name&&n.createElement(T,{name:I.name,on_change:function(){R||K(!0)}}))))}}}]);
@@ -1 +0,0 @@
1
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
@@ -1,2 +0,0 @@
1
- /*! For license information please see 811.b0f9ed14de495ca7759c.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[811],{2811:(t,e,r)=>{r.r(e),r.d(e,{default:()=>d});var n=r(6540),o=r(4943),a=r(7444),i=r(6417),c=r(6007),u=r(4289),l=r(2042),f=r(7767);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],u=!0,l=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(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 p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function y(){y=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a=e&&e.prototype instanceof w?e:w,i=Object.create(a.prototype),c=new A(n||[]);return o(i,"_invoke",{value:j(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",v="suspendedYield",m="executing",d="completed",g={};function w(){}function b(){}function E(){}var x={};l(x,i,(function(){return this}));var L=Object.getPrototypeOf,S=L&&L(L(N([])));S&&S!==r&&n.call(S,i)&&(x=S);var M=E.prototype=w.prototype=Object.create(x);function I(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,a,i,c){var u=h(t[o],t,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==s(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(f).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,r,n){var o=p;return function(a,i){if(o===m)throw Error("Generator is already running");if(o===d){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var l=h(e,r,n);if("normal"===l.type){if(o=n.done?d:v,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=d,n.method="throw",n.arg=l.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function G(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(s(e)+" is not iterable")}return b.prototype=E,o(M,"constructor",{value:E,configurable:!0}),o(E,"constructor",{value:b,configurable:!0}),b.displayName=l(E,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,l(t,u,"GeneratorFunction")),t.prototype=Object.create(M),t},e.awrap=function(t){return{__await:t}},I(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new O(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},I(M),l(M,u,"Generator"),l(M,i,(function(){return this})),l(M,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=N,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(G),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),G(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;G(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function v(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function m(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){v(a,n,o,i,c,"next",t)}function c(t){v(a,n,o,i,c,"throw",t)}i(void 0)}))}}function d(){var t=h((0,a.L4)(i.A.excalidraw_editor),2),e=t[0],r=t[1],s=h((0,n.useState)(null),2),p=s[0],v=s[1],d=(0,f.Zp)(),g=((0,f.zy)(),function(){var t=m(y().mark((function t(){var r;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c.$M.get("".concat(encodeURIComponent((0,u.GG)("file",(0,u.vX)()))).concat(e.name));case 2:return r=t.sent,t.abrupt("return",JSON.parse(r.data));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}());(0,n.useEffect)((function(){g()}),[e]);var w=function(){var t=m(y().mark((function t(){var r,n;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=p.getSceneElements(),n={elements:r},t.next=4,c.$M.post("save/".concat(encodeURIComponent((0,u.GG)("file",(0,u.vX)()))).concat(e.name),{context:JSON.stringify(n)});case 4:0===t.sent.code&&(0,l.LW)("保存成功");case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return n.createElement("div",{id:"excalidraw-container"},n.createElement("div",{className:"excalidraw-context"},n.createElement(o.Excalidraw,{langCode:"zh-CN",initialData:g(),excalidrawAPI:function(t){return v(t)},UIOptions:{dockedSidebarBreakpoint:0}},n.createElement(o.MainMenu,null,n.createElement(o.MainMenu.Item,{onSelect:function(){r({}),d((0,u.vX)())}},"关闭"),n.createElement(o.MainMenu.Item,{onSelect:w},"保存到服务器"),n.createElement(o.MainMenu.Group,{title:"Excalidraw items"},n.createElement(o.MainMenu.DefaultItems.LoadScene,null),n.createElement(o.MainMenu.DefaultItems.Export,null),n.createElement(o.MainMenu.DefaultItems.SaveToActiveFile,null),n.createElement(o.MainMenu.DefaultItems.SaveAsImage,null),n.createElement(o.MainMenu.DefaultItems.ClearCanvas,null),n.createElement(o.MainMenu.DefaultItems.ToggleTheme,null),n.createElement(o.MainMenu.DefaultItems.ChangeCanvasBackground,null))))))}}}]);
@@ -1 +0,0 @@
1
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
@@ -1,2 +0,0 @@
1
- /*! For license information please see 892.8e4fcfe49693b220c83e.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[892],{6892:(t,r,e)=>{e.r(r),e.d(r,{default:()=>w});var n=e(6540),o=e(3029),i=(e(7567),e(7444)),a=e(6417),u=e(6007),c=e(3459),l=e(7952),f=e(2389),s=e(8247),h=e(3430);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function y(){y=function(){return r};var t,r={},e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,r,e){t[r]=e.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(t){l=function(t,r,e){return t[r]=e}}function f(t,r,e,n){var i=r&&r.prototype instanceof w?r:w,a=Object.create(i.prototype),u=new G(n||[]);return o(a,"_invoke",{value:O(t,e,u)}),a}function s(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}r.wrap=f;var h="suspendedStart",v="suspendedYield",d="executing",m="completed",g={};function w(){}function b(){}function x(){}var L={};l(L,a,(function(){return this}));var E=Object.getPrototypeOf,_=E&&E(E(I([])));_&&_!==e&&n.call(_,a)&&(L=_);var k=x.prototype=w.prototype=Object.create(L);function S(t){["next","throw","return"].forEach((function(r){l(t,r,(function(t){return this._invoke(r,t)}))}))}function j(t,r){function e(o,i,a,u){var c=s(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==p(f)&&n.call(f,"__await")?r.resolve(f.__await).then((function(t){e("next",t,a,u)}),(function(t){e("throw",t,a,u)})):r.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return e("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new r((function(r,o){e(t,n,r,o)}))}return i=i?i.then(o,o):o()}})}function O(r,e,n){var o=h;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=N(u,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=s(r,e,n);if("normal"===l.type){if(o=n.done?m:v,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function N(r,e){var n=e.method,o=r.iterator[n];if(o===t)return e.delegate=null,"throw"===n&&r.iterator.return&&(e.method="return",e.arg=t,N(r,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=s(o,r.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,g;var a=i.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,g):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function A(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function P(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function G(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function I(r){if(r||""===r){var e=r[a];if(e)return e.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,i=function e(){for(;++o<r.length;)if(n.call(r,o))return e.value=r[o],e.done=!1,e;return e.value=t,e.done=!0,e};return i.next=i}}throw new TypeError(p(r)+" is not iterable")}return b.prototype=x,o(k,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:b,configurable:!0}),b.displayName=l(x,c,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===b||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},r.awrap=function(t){return{__await:t}},S(j.prototype),l(j.prototype,u,(function(){return this})),r.AsyncIterator=j,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new j(f(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(k),l(k,c,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=I,G.prototype={constructor:G,reset:function(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!r)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var e=this;function o(n,o){return u.type="throw",u.arg=r,e.next=n,o&&(e.method="next",e.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),g},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),P(e),g}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;P(e)}return o}}throw Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:I(r),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=t),g}},r}function v(t,r,e,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?r(c):Promise.resolve(c).then(n,o)}function d(t){return function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function a(t){v(i,n,o,a,u,"next",t)}function u(t){v(i,n,o,a,u,"throw",t)}a(void 0)}))}}function m(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;c=!1}else for(;!(c=(n=i.call(e)).done)&&(u.push(n.value),u.length!==r);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,r)||function(t,r){if(t){if("string"==typeof t)return g(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?g(t,r):void 0}}(t,r)||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,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function w(){var t=(0,f.Bd)().t,r=m((0,i.L4)(a.A.showPrompt),2),e=(r[0],r[1],(0,s.MH)().check_user_auth),p=function(){var t=d(y().mark((function t(){var r;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u.sY.get();case 2:if((r=t.sent).code!==c.m.Sucess){t.next=5;break}return t.abrupt("return",r.data);case 5:return t.abrupt("return",[]);case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),v=function(){var t=d(y().mark((function t(r){return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u.sY.post("save",r);case 2:t.sent.code!==c.m.Sucess&&new Noty({type:"error",text:"网络错误",timeout:1e3,layout:"bottomLeft"}).show();case 4:case"end":return t.stop()}}),t)})));return function(r){return t.apply(this,arguments)}}();return n.createElement("div",null,n.createElement(l.A,null),n.createElement(o.N,{have_auth_edit:e(h.oV.net_site_tag_update),getItems:p,save:v,items:[{key:"name",preName:t("名字")},{key:"url",preName:"url"},{key:"color",preName:"color"}]}))}}}]);
@@ -1 +0,0 @@
1
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
@@ -1,2 +0,0 @@
1
- /*! For license information please see 995.6eccaa83ff5c78010a01.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[995],{9995:(t,e,r)=>{r.r(e),r.d(e,{default:()=>st});var n=r(6540),o=r(7022),i=r(7444),a=r(6417),c=r(7767),l=r(4694),u=r(6007),s=r(4289),f=r(8844),h=r(7567),p=r(4251),v=r(2389),d=r(8247),y=r(9214);function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function w(){w=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),c=new G(n||[]);return o(a,"_invoke",{value:P(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",v="executing",d="completed",y={};function g(){}function _(){}function b(){}var x={};u(x,a,(function(){return this}));var E=Object.getPrototypeOf,L=E&&E(E(F([])));L&&L!==r&&n.call(L,a)&&(x=L);var k=b.prototype=g.prototype=Object.create(x);function A(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var l=f(t[o],t,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==m(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function P(e,r,n){var o=h;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=S(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?d:p,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=d,n.method="throw",n.arg=u.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function G(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function F(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(m(e)+" is not iterable")}return _.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:_,configurable:!0}),_.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},A(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},A(k),u(k,l,"Generator"),u(k,a,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=F,G.prototype={constructor:G,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:F(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function g(t){return function(t){if(Array.isArray(t))return L(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||E(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,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(t){return void r(t)}c.done?e(l):Promise.resolve(l).then(n,o)}function b(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){_(i,n,o,a,c,"next",t)}function c(t){_(i,n,o,a,c,"throw",t)}a(void 0)}))}}function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||E(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 E(t,e){if(t){if("string"==typeof t)return L(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?L(t,e):void 0}}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function k(t){var e=x((0,i.L4)(a.A.selectedFileList),2),r=e[0],m=e[1],_=x((0,i.L4)(a.A.clickFileList),2),E=_[0],L=_[1],k=x((0,i.L4)(a.A.nowFileList),2),A=k[0],O=k[1],P=x((0,i.L4)(a.A.confirm),2),S=(P[0],P[1]),j=x((0,i.L4)(a.A.enterKey),2),C=j[0],G=(j[1],(0,d.kZ)().click_file),F=((0,v.Bd)().t,(0,c.Zp)()),I=((0,c.zy)(),function(){var e=b(w().mark((function e(n,i){var a,c,u,f,h,p;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==(0,l.kW)(r,n))m((0,l.P1)(r,n));else if("ctrl"===C)m([].concat(g(r),[n]));else if("shift"===C){if(a=(0,l.a7)(r),c=a.max,u=a.min,f=[],n>=c)for(h=c;h<=n;h++)f.push(h);else for(p=u;p>=n;p--)f.push(p);m(f)}else m([n]);if(L([].concat(g(E),[n])),setTimeout((function(){L((0,l.P1)(E,n))}),300),t.type!==o.Iw.folder){e.next=14;break}if(void 0===E.find((function(t){return t===n}))){e.next=12;break}return F((0,l.IO)((0,s.vX)(),i)),m([]),L([]),O({files:[],folders:[]}),e.abrupt("return");case 12:e.next=16;break;case 14:void 0!==E.find((function(t){return t===n}))&&G({name:i,size:t.origin_size,opt_shell:!0,mtime:t.mtime});case 16:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),z=x((0,i.L4)(a.A.showPrompt),2),N=(z[0],z[1]),T=function(){var t=b(w().mark((function t(e){var n,o;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(0,y.ib)(A,r),o=n.map((function(t){return(0,y.Ok)(t.name)})),t.next=4,u.$M.post("cut",{files:o,to:"".concat((0,s.GG)("file",(0,s.vX)()),"/").concat(e)});case 4:t.sent,m([]),S({open:!1,handle:null}),F((0,s.vX)());case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return n.createElement(f.B,{extraAttr:{onContextMenu:function(e){!function(t,e,r,n){t.preventDefault(),t.stopPropagation();var i=new p.i;i.path=(0,l.IO)((0,s.vX)(),e),i.filename=e,i.x=t.clientX,i.y=t.clientY,i.type=r?o.Iw.folder:(0,p.u)(e),i.size=n,N({show:!0,type:h.PromptEnum.FileMenu,overlay:!1,data:i})}(e,t.name,t.type===o.Iw.folder,t.origin_size)}},draggable_handle:T,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:I,itemWidth:t.itemWidth})}var A=r(7374),O=r(5997),P=r(7952),S=r(5726),j=r(3459),C=r(5725),G=r(3033),F=r(2042),I=r(7523),z=r(8815),N=r(2730),T=r(1251),M=r(447),W=r(7071),D=r(4944),X=r(4238),Y=r(3430),K=r(2458),U=r(3496);function H(t){return H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},H(t)}function R(){return R=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},R.apply(null,arguments)}function $(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Z(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$(Object(r),!0).forEach((function(e){B(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function B(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=H(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=H(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==H(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function V(){V=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new j(n||[]);return o(a,"_invoke",{value:A(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",v="executing",d="completed",y={};function m(){}function w(){}function g(){}var _={};u(_,a,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(C([])));x&&x!==r&&n.call(x,a)&&(_=x);var E=g.prototype=m.prototype=Object.create(_);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,i,a,c){var l=f(t[o],t,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==H(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function A(e,r,n){var o=h;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=O(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?d:p,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=d,n.method="throw",n.arg=u.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(H(e)+" is not iterable")}return w.prototype=g,o(E,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:w,configurable:!0}),w.displayName=u(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,l,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},L(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new k(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(E),u(E,l,"Generator"),u(E,a,(function(){return this})),u(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function q(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=et(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function J(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(t){return void r(t)}c.done?e(l):Promise.resolve(l).then(n,o)}function Q(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){J(i,n,o,a,c,"next",t)}function c(t){J(i,n,o,a,c,"throw",t)}a(void 0)}))}}function tt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||et(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 et(t,e){if(t){if("string"==typeof t)return rt(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rt(t,e):void 0}}function rt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var nt,ot=n.lazy((function(){return Promise.all([r.e(856),r.e(659)]).then(r.bind(r,3659))})),it=n.lazy((function(){return Promise.all([r.e(856),r.e(636)]).then(r.bind(r,1636))})),at=n.lazy((function(){return Promise.all([r.e(856),r.e(402)]).then(r.bind(r,3402))})),ct=Object.values(Y.UG),lt=280,ut={};function st(){var t,e,r=tt((0,i.L4)(a.A.editorSetting),2),f=(r[0],r[1]),m=tt((0,i.L4)(a.A.file_preview),2),w=(m[0],m[1]),g=(0,v.Bd)().t,_=(0,n.useRef)(null),b=(0,c.zy)(),x=(0,c.Zp)(),E=(0,d.MH)().check_user_auth,L=tt((0,i.L4)(a.A.nowFileList),2),H=L[0],$=L[1],B=tt((0,i.L4)(a.A.uploadFiles),2),J=(B[0],B[1]),et=tt((0,i.L4)(a.A.showPrompt),2),rt=(et[0],et[1]),st=tt((0,i.L4)(a.A.selectedFileList),2),ft=st[0],ht=(st[1],tt((0,i.L4)(a.A.copyedFileList),2)),pt=ht[0],vt=ht[1],dt=tt((0,i.L4)(a.A.enterKey),2),yt=(dt[0],dt[1]),mt=tt((0,i.L4)(a.A.cutedFileList),2),wt=mt[0],gt=mt[1],_t=tt((0,i.L4)(a.A.selectedFileList),2),bt=(_t[0],_t[1]),xt=tt((0,i.L4)(a.A.clickFileList),2),Et=(xt[0],xt[1]),Lt=tt((0,i.L4)(a.A.fileShellShow),2),kt=Lt[0],At=Lt[1],Ot=tt((0,i.L4)(a.A.file_root_list),2),Pt=Ot[0],St=(Ot[1],tt((0,i.L4)(a.A.file_root_index),2)),jt=(St[0],St[1]),Ct=tt((0,n.useState)(void 0),2),Gt=Ct[0],Ft=Ct[1],It=tt((0,n.useState)(""),2),zt=It[0],Nt=It[1],Tt=tt((0,i.L4)(a.A.workflow_show),2),Mt=Tt[0],Wt=Tt[1],Dt=tt((0,i.L4)(a.A.workflow_realtime_show),2),Xt=Dt[0],Yt=(Dt[1],tt((0,n.useState)(!1),2)),Kt=Yt[0],Ut=Yt[1],Ht=(0,n.useContext)(I.F).reloadUserInfo,Rt=(0,n.useContext)(I.F).initUserInfo,$t=tt((0,i.L4)(a.A.user_base_info),2),Zt=$t[0],Bt=($t[1],(0,d.kZ)().click_file),Vt=tt((0,i.L4)(a.A.prompt_card),2),qt=(Vt[0],Vt[1]),Jt=(0,d.hg)().file_is_running,Qt=tt((0,i.L4)(a.A.to_running_files),2),te=(Qt[0],Qt[1]),ee=tt((0,i.L4)(a.A.router_jump),2),re=(ee[0],ee[1]),ne=function(){var t=Q(V().mark((function t(){var e;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(e=new W.Nd).dir_path="".concat((0,s.GG)("file",(0,s.vX)())),D.ws.addMsg(X.HK.workflow_realtime,(function(t){var e=t.context;if(t.context){var r,n=q(e.sucess_file_list);try{for(n.s();!(r=n.n()).done;){var o=r.value;o.endsWith(".workflow.yml")?(0,F.LW)("".concat(o.slice(0,-13)," done!")):o.endsWith(".act")&&(0,F.LW)("".concat(o.slice(0,-4)," done!"))}}catch(t){n.e(t)}finally{n.f()}var i,a=q(e.failed_file_list);try{for(a.s();!(i=a.n()).done;){var c=i.value;c.endsWith(".workflow.yml")?(0,F.zN)("".concat(c.slice(0,-13)," failed!")):c.endsWith(".act")&&(0,F.zN)("".concat(c.slice(0,-4)," failed!"))}}catch(t){a.e(t)}finally{a.f()}te(new Set(e.running_file_list))}})),t.next=5,D.ws.sendData(X.HK.workflow_realtime,e);case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),oe=function(){var t=Q(V().mark((function t(e){var r,n,o,i,a,c,l,f,h,p,v;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=e?encodeURIComponent(e)+"?is_sys_path=1":encodeURIComponent((0,s.GG)("file",(0,s.vX)())),t.next=3,u.$M.get(e);case 3:if((o=t.sent).code!==j.m.PreFile){t.next=7;break}return Bt({name:o.message,context:o.data,opt_shell:!0}),t.abrupt("return");case 7:if(o.code===j.m.Sucess){t.next=10;break}return o.message&&(0,F.zN)(o.message),t.abrupt("return");case 10:i=o.data,(0,y.yC)(i,Zt.user_data.dir_show_type),a=!1,c=q(null!==(r=i.files)&&void 0!==r?r:[]);try{for(c.s();!(l=c.n()).done;)(f=l.value).show_mtime=f.mtime?(0,T.s)(f.mtime):"",f.origin_size=f.size,f.size=(0,z.v7)(f.size),a||!f.name.endsWith(".workflow.yml")&&!f.name.endsWith(".act")||(a=!0,Promise.resolve().then((function(){ne()})))}catch(t){c.e(t)}finally{c.f()}if(void 0===i.relative_user_path){t.next=19;break}return(i.relative_user_path.startsWith("\\")||i.relative_user_path.startsWith("/"))&&(i.relative_user_path=i.relative_user_path.slice(1)),x(i.relative_user_path),t.abrupt("return");case 19:a=!1,h=q(null!==(n=i.folders)&&void 0!==n?n:[]);try{for(h.s();!(p=h.n()).done;)(v=p.value).show_mtime=v.mtime?(0,T.s)(v.mtime):"",a||v.name!==W.SB||(Ut(!0),a=!0)}catch(t){h.e(t)}finally{h.f()}$(o.data),nt=o.data;case 24:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ie=function(){var t=Math.floor(document.querySelector("main").offsetWidth/lt);0===t&&(t=1),Ft("calc(".concat(100/t,"% - 1em)"))};(0,n.useEffect)((function(){var t=function(){var t=Q(V().mark((function t(){return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,oe();case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();t(),f({open:!1}),w({open:!1}),Ut(!1),ut={}}),[b]),(0,n.useEffect)((function(){return Q(V().mark((function t(){return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:te(new Set);case 1:case"end":return t.stop()}}),t)})))}),[]);var ae=function(){var t=Q(V().mark((function t(e){var r,n,o,i;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.preventDefault(),e.stopPropagation(),r=e.dataTransfer,n=e.target,!(r.files.length<=0)){t.next=6;break}return t.abrupt("return");case 6:for(o=0;o<5;o++)null===n||n.classList.contains("item")||(n=n.parentElement);return t.next=9,(0,S.T)(r);case 9:i=t.sent,J(i),rt({show:!0,type:h.PromptEnum.FilesUpload,overlay:!1,data:{}});case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ce=function(t){t.preventDefault()};function le(){return(le=Q(V().mark((function t(){var e,r,n;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(0,l.jH)(ct,null!==(e=null==Zt||null===(r=Zt.user_data)||void 0===r?void 0:r.file_list_show_type)&&void 0!==e?e:""),t.next=3,u.wm.post(U.s.user_save_user_file_list_show_type,{type:n});case 3:Rt();case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ue(t){(0,F.LW)(t)}(0,n.useEffect)((function(){var t=_.current.ownerDocument;return t.addEventListener("dragover",ce),t.addEventListener("drop",ae),ie(),window.addEventListener("resize",ie),function(){t.removeEventListener("dragover",ce),t.removeEventListener("drop",ae),window.removeEventListener("resize",ie),kt.show&&At({show:!1,path:""})}}),[]);var se=function(){var t=Q(V().mark((function t(e){return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return jt(e),t.next=3,u.$M.post("base_switch",{root_index:e});case 3:return t.next=5,Ht();case 5:x("/file/"),bt([]),Et([]);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),fe=function(t){qt({open:!0,title:g("信息"),context_div:n.createElement("div",{style:{maxWidth:"25rem"}},n.createElement(C.Yh,{left:g("挂载位置磁盘"),right:null==t?void 0:t.total_size}),n.createElement(C.Yh,{left:"".concat(g("磁盘剩余")),right:null==t?void 0:t.left_size}),n.createElement(C.Yh,{left:"".concat(g("文件系统")),right:null==t?void 0:t.fs_type}),n.createElement(C.Yh,{left:"".concat(g("文件夹数")),right:H.folders.length}),n.createElement(C.Yh,{left:"".concat(g("文件数")),right:H.files.length}),n.createElement(C.Yh,{left:"".concat(g("当前位置")),right:n.createElement(M.xP,{context:null==t?void 0:t.now_absolute_path})})),cancel:function(){D.ws.removeMsg(X.HK.file_info)}})},he=function(){var t=Q(V().mark((function t(){var e,r;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(ut.now_absolute_path){t.next=8;break}return D.ws.addMsg(X.HK.file_info,(function(t){var r=t.context;e&&(ut=Z(Z({},ut),r),D.ws.removeMsg(X.HK.file_info),fe(ut))})),t.next=4,D.ws.sendData(X.HK.file_info,{type:o.Iw.folder,path:(0,s.GG)("file",(0,s.vX)())});case 4:r=t.sent,e=r.context,fe(ut=e);case 8:fe(ut);case 9:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),pe=tt((0,n.useState)(!1),2),ve=pe[0],de=pe[1];(0,n.useEffect)((function(){var t=function(t){if(ve)if(t.ctrlKey)if("a"===t.key||"A"===t.key){for(var e=H.files.length,r=H.folders.length,n=[],o=0;o<e+r;o++)n.push(o);bt(n)}else yt("ctrl");else"Escape"===t.key?bt([]):"Shift"===t.key&&yt("shift")},e=function(t){t.ctrlKey||yt("")};return window.addEventListener("keydown",t),window.addEventListener("keyup",e),function(){window.removeEventListener("keydown",t),window.removeEventListener("keyup",e)}}),[H,ve]);var ye=function(t){t.target===t.currentTarget&&bt([])};return n.createElement("div",{className:"not-select-div"},n.createElement(P.A,{left_children:n.createElement(G.$Z,{handleEnterPress:function(){var t,e;if(nt){bt([]),Et([]);var r,n=[],o=[],i=q(null!==(t=nt.files)&&void 0!==t?t:[]);try{for(i.s();!(r=i.n()).done;){var a=r.value;a.name.includes(zt)&&n.push(a)}}catch(t){i.e(t)}finally{i.f()}var c,l=q(null!==(e=nt.folders)&&void 0!==e?e:[]);try{for(l.s();!(c=l.n()).done;){var u=c.value;u.name.includes(zt)&&o.push(u)}}catch(t){l.e(t)}finally{l.f()}$({files:n,folders:o})}},placeholder:g("搜索当前目录"),icon:"search",value:"",handleInputChange:function(t){Nt(t)},max_width:"25em"})},ft.length>0&&n.createElement(O.rA,{icon:"delete",title:g("删除"),onClick:function(){rt({show:!0,type:h.PromptEnum.FilesDelete,overlay:!0,data:{}})}}),ft.length>0&&n.createElement(O.rA,{icon:"content_copy",title:g("复制"),onClick:function(){var t=(0,y.ib)(H,ft);vt(t.map((function(t){return(0,y.Ok)(t.name)}))),gt([]),ue("已复制")}}),ft.length>0&&n.createElement(O.rA,{icon:"content_cut",title:g("剪切"),onClick:function(){var t=(0,y.ib)(H,ft);gt(t.map((function(t){return(0,y.Ok)(t.name)}))),vt([]),ue("已剪切")}}),(pt.length>0||wt.length>0)&&n.createElement(O.rA,{onClick:function(){rt({show:!0,type:h.PromptEnum.Confirm,overlay:!0,data:{}})},icon:"content_paste",title:g("粘贴到此处"),tip:pt.length+wt.length}),ft.length>0&&n.createElement(O.rA,{icon:"download",title:g("下载"),onClick:function(){for(var t=(0,y.ib)(H,ft),e=0;e<t.length;e++){var r=t[e];t[e]=encodeURIComponent((0,y.Ok)(r.name))}var n=u.$M.getDownloadUrl(t);window.open(n)}}),ft.length>0&&n.createElement(O.rA,{icon:"compress",title:g("压缩"),onClick:function(){for(var t=(0,y.ib)(H,ft),e=0;e<t.length;e++){var r=t[e];t[e]=(0,y.Ok)(r.name)}t&&0!==t.length?rt({show:!0,type:h.PromptEnum.Compress,overlay:!0,data:{files:t}}):(0,F.zN)("没有选中")}}),1===ft.length&&n.createElement(O.rA,{icon:"edit_attributes",title:g("重命名"),onClick:function(){rt({show:!0,type:h.PromptEnum.FileRename,overlay:!0,data:{}})}}),Kt&&n.createElement(O.rA,{icon:"api",title:"workflow",onClick:function(){Wt(!Mt)}}),n.createElement(O.rA,{icon:"terminal",title:"shell",onClick:function(){kt.show?At({show:!1,path:""}):At({show:!0,path:(0,s.GG)("file",(0,s.vX)())})}}),n.createElement(O.rA,{icon:"grid_view",title:g("切换样式"),onClick:function(){return le.apply(this,arguments)}}),n.createElement(O.rA,{icon:"create_new_folder",title:g("创建文件夹"),onClick:function(){rt({show:!0,type:h.PromptEnum.DirNew,overlay:!0,data:{dir:(0,s.GG)("file",(0,s.vX)())}})}}),n.createElement(O.rA,{icon:"note_add",title:g("创建文本文件"),onClick:function(){rt({show:!0,type:h.PromptEnum.FileNew,overlay:!0,data:{dir:(0,s.GG)("file",(0,s.vX)())}})}}),n.createElement(O.rA,{icon:"upload_file",title:g("上传"),onClick:function(){rt({show:!0,type:h.PromptEnum.UploadFile,overlay:!0,data:{call:function(t){var e,r=null===(e=t.currentTarget)||void 0===e?void 0:e.files;if(r){for(var n=!!r[0].webkitRelativePath,o=[],i=new Set,a=0;a<r.length;a++){var c=r[a],l=n?c.webkitRelativePath:"".concat(c.webkitRelativePath).concat(c.name);c.fullPath=l,n&&i.add((0,N.S)(l)),o.push(c)}var u=[];if(n){var s,f=q(i);try{for(f.s();!(s=f.n()).done;){var p=s.value;u.push({isDir:!0,fullPath:p,name:p})}}catch(t){f.e(t)}finally{f.f()}}u.push.apply(u,o),J(u),rt({show:!0,type:h.PromptEnum.FilesUpload,overlay:!1,data:{}})}}}})}}),n.createElement(O.rA,{icon:"info",title:g("信息"),onClick:he}),n.createElement(O.rA,{icon:"more_vert",title:g("切换目录"),onClick:function(t){var e=new p.i;e.x=t.clientX,e.y=t.clientY,e.type=o.Iw.directory,e.items=Pt,e.textClick=function(){var t=Q(V().mark((function t(e){return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:se(e),rt({data:void 0,overlay:!1,type:"",show:!1});case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),rt({show:!0,type:h.PromptEnum.FileMenu,overlay:!1,data:e})}})),n.createElement(A.e,{baseRoute:"file",clickFun:function(){bt([]),Et([])},input_path_enter:function(t){(0,K.Z1)(t)?oe(t):x((0,K.Jn)((0,s.vX)(),t)),bt([]),Et([]),$({files:[],folders:[]})}}),n.createElement("div",{onContextMenu:function(t){t.preventDefault(),t.stopPropagation();var e=new p.i;e.x=t.clientX,e.y=t.clientY,e.type=o.Iw.directory;var r=[{r:n.createElement("span",{style:{color:Zt.user_data.dir_show_type===Y.t8.time_minx_max?"green":void 0}},g("时间逆序")),v:Y.t8.time_minx_max},{r:n.createElement("span",{style:{color:Zt.user_data.dir_show_type===Y.t8.time_max_min?"green":void 0}},g("时间顺序")),v:Y.t8.time_max_min}],i=[{r:n.createElement("span",{style:{color:Zt.user_data.dir_show_type===Y.t8.size_min_max?"green":void 0}},g("大小逆序")),v:Y.t8.size_min_max},{r:n.createElement("span",{style:{color:Zt.user_data.dir_show_type===Y.t8.size_max_min?"green":void 0}},g("大小顺序")),v:Y.t8.size_max_min}],a=[{r:g("文件排序"),v:"",items:[{r:n.createElement("span",{style:{color:Zt.user_data.dir_show_type?void 0:"green"}},g("系统默认")),v:Y.t8.defualt},{r:n.createElement("span",{style:{color:Zt.user_data.dir_show_type===Y.t8.name?"green":void 0}},g("名字")),v:Y.t8.name},{r:n.createElement("span",{style:{color:Zt.user_data.dir_show_type===Y.t8.time_minx_max||Zt.user_data.dir_show_type===Y.t8.time_max_min?"green":void 0}},g("修改时间")),v:!1,items:r},{r:n.createElement("span",{style:{color:Zt.user_data.dir_show_type===Y.t8.size_min_max||Zt.user_data.dir_show_type===Y.t8.size_max_min?"green":void 0}},g("文件大小")),v:!1,items:i}]}];E(Y.oV.code_resource)&&a.push({r:g("添加http资源根目录"),v:"code_resource"}),E(Y.oV.http_proxy)&&a.push({r:g("在此目录下载http资源"),v:"http_resource"}),e.items=a,e.textClick=function(){var t=Q(V().mark((function t(e){var r,n;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!1!==e){t.next=2;break}return t.abrupt("return");case 2:if("code_resource"!==e){t.next=12;break}return t.next=5,D.ws.sendData(X.HK.file_info,{path:(0,s.GG)("file",(0,s.vX)())});case 5:return r=t.sent,re({page_self_router_api_data:["",r.context.now_absolute_path]}),rt({data:void 0,overlay:!1,type:"",show:!1}),x("/setting/customer_router/"),t.abrupt("return");case 12:if("http_resource"!==e){t.next=20;break}return t.next=15,D.ws.sendData(X.HK.file_info,{path:(0,s.GG)("file",(0,s.vX)())});case 15:return n=t.sent,re({http_download_map_path:n.context.now_absolute_path}),rt({data:void 0,overlay:!1,type:"",show:!1}),x("/toolbox/http/"),t.abrupt("return");case 20:return t.next=22,u.wm.post(U.s.user_save_user_file_list_show_type,{type:e,is_dir_list_type:!0});case 22:return t.next=24,Rt();case 24:rt({data:void 0,overlay:!1,type:"",show:!1}),x((0,s.vX)());case 26:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),rt({show:!0,type:h.PromptEnum.FileMenu,overlay:!1,data:e})},id:"listing",style:{paddingBottom:"10rem"},className:"mosaic file-icons ".concat(null!==(t=null==Zt||null===(e=Zt.user_data)||void 0===e?void 0:e.file_list_show_type)&&void 0!==t?t:""),ref:_,onMouseEnter:function(){de(!0)},onMouseLeave:function(){de(!1)}},H.folders&&H.folders.length>0&&n.createElement("h2",null,g("文件夹")),H.folders&&n.createElement("div",{onClick:ye},H.folders.map((function(t,e){return n.createElement(k,R({itemWidth:Gt,index:e,key:e},t))}))),H.files&&H.files.length>0&&n.createElement("h2",{onClick:ye},g("文件")),H.files&&n.createElement("div",{onClick:ye},H.files.map((function(t,e){return n.createElement(k,R({icon:Jt(t.name)?"refresh":void 0,itemWidth:Gt,index:e+H.folders.length,key:e},t))})))),n.createElement(at,null),Mt&&n.createElement(ot,null),Xt.open&&n.createElement(it,null))}}}]);
@@ -1 +0,0 @@
1
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
@@ -1,2 +0,0 @@
1
- /*! For license information please see 998.cc16015411a639e6206a.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[998],{447:(e,t,n)=>{n.d(t,{WA:()=>h,ZI:()=>m,Zp:()=>d,fq:()=>_,gz:()=>y,uF:()=>f,xP:()=>p});var r=n(6540),o=n(3413),i=n.n(o),c=n(505);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,c,a=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var l=function(e){return e[e.common=0]="common",e[e.full=1]="full",e}(l||{});function u(e,t){var n=t===l.common?"card-content":t===l.full?"card-content full":"";return r.createElement("div",{className:"card",style:{}},r.createElement("div",{className:"card-title"},e.self_title?e.self_title:r.createElement("h2",null,e.title),r.createElement("div",{className:"not-select-div"},e.titleCom&&e.titleCom)),r.createElement("div",{className:n},e.children),r.createElement("div",{className:"card-action card-action-bottom-right"},e.rightBottomCom))}function d(e){return u(e,l.common)}function f(e){return u(e,l.full)}function p(e){var t,n,o,a=(0,r.useRef)(null);return r.createElement("div",{className:"card-text"},r.createElement("div",{className:"card-text-context"},null!==(t=e.context)&&void 0!==t?t:e.children),r.createElement("div",{className:"card-text-tip",ref:a,onClick:function(){var t,n;(0,c.l)(null!==(t=null!==(n=e.tip_context)&&void 0!==n?n:e.context)&&void 0!==t?t:e.children),new(i())({type:"info",text:"复制完成",timeout:1e3,layout:"bottomLeft"}).show()}},null!==(n=null!==(o=e.tip_context)&&void 0!==o?o:e.context)&&void 0!==n?n:e.children))}function h(e){var t,n;return r.createElement("div",{className:"card-text"},r.createElement("div",{className:"card-text-context"},null!==(t=e.context)&&void 0!==t?t:e.children),r.createElement("div",{className:"card-text-tip"},null!==(n=e.context)&&void 0!==n?n:e.children))}function m(e){var t,n;return r.createElement("div",{className:"card floating",onKeyPress:function(t){"Enter"===t.key&&e.confirm_enter&&e.confirm_enter()}},r.createElement("div",{className:"card-title"},r.createElement("h2",null,e.title)),r.createElement("div",{className:"card-content"},e.context&&e.context.map((function(e,t){return r.createElement("div",{key:t},e)}))),r.createElement("div",{className:"card-action"},r.createElement("button",{className:"button button--flat button--grey",onClick:e.cancel},null!==(t=e.cancel_t)&&void 0!==t?t:"cancel"),r.createElement("button",{className:"button button--flat",onClick:e.confirm},null!==(n=e.confirm_t)&&void 0!==n?n:"confirm")))}function y(e){return r.createElement("div",{className:"progress-card"},r.createElement("div",{className:"progress-per"},r.createElement("div",{style:{width:"".concat(e.progress,"%")}})))}var _=function(e){var t=a((0,r.useState)("var(--iconTertiary)"),2),n=t[0],o=t[1];(0,r.useEffect)((function(){void 0===e.ok?void 0===e.success?void 0!==e.running&&o("var(--icon-yellow)"):!0===e.success?o("var(--icon-green)"):!1===e.success&&o("var(--icon-red)"):o(e.ok?"var(--icon-green)":"var(--iconTertiary)")}),[e]);var i={width:"10px",height:"10px",borderRadius:"50%",backgroundColor:n,display:"inline-block"};return r.createElement("div",{style:i})}},3033:(e,t,n)=>{n.d(t,{$Z:()=>l,GL:()=>m,Sm:()=>d,U6:()=>h,cA:()=>f,l6:()=>p});var r=n(6540);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,c,a=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e){var t=(0,r.useRef)(null),n=a(r.useState(""),2),o=n[0],i=n[1];return(0,r.useEffect)((function(){var n=e.value;null==n&&(n=""),t.current.value=n,i(e.value||"")}),[e.value]),r.createElement("div",{id:"search",className:"",style:{maxWidth:e.max_width,display:e.not_mobile?"block":void 0}},r.createElement("div",{id:"input"},r.createElement("i",{className:"material-icons"},e.icon),r.createElement("input",{type:"text",ref:t,placeholder:o||e.placeholder,onChange:function(t){e.handleInputChange&&e.handleInputChange(t.target.value,t.target),i(t.target.value)},onKeyPress:function(t){"Enter"===t.key&&e.handleEnterPress&&e.handleEnterPress()}})))}function u(e){var t=(0,r.useRef)(null),n=a(r.useState(""),2),o=n[0],i=n[1],c=a(r.useState("input input--block"),2),s=c[0],l=c[1];return(0,r.useEffect)((function(){i(void 0===e.value||null===e.value?"":e.value),e.focus&&t.current.focus(),e.no_border&&l("".concat(s," input--no_border"))}),[e.value]),r.createElement(r.Fragment,null,e.placeholderOut&&r.createElement("p",null,e.placeholderOut),r.createElement("div",{style:{display:"flex",alignItems:"center",width:e.width,maxWidth:e.maxWidth}},e.left_placeholder&&r.createElement("div",{style:{paddingRight:".3rem",width:"auto",whiteSpace:"nowrap"}},e.left_placeholder),r.createElement("input",{onClick:function(e){e.stopPropagation()},disabled:!!e.disabled,className:s,type:e.type,placeholder:o||e.placeholder,onChange:function(t){e.handleInputChange&&e.handleInputChange(t.target.value,t.target),i(t.target.value)},onKeyPress:function(t){"Enter"===t.key&&e.handlerEnter&&e.handlerEnter(t.target.value)},value:o,ref:t}),e.right_placeholder&&r.createElement("div",{style:{paddingLeft:".3rem",width:"auto",whiteSpace:"nowrap"}},e.right_placeholder)))}function d(e){return u(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e))}function f(e){return u({placeholder:e.placeholder,type:"password",handleInputChange:e.handleInputChange,handlerEnter:e.handleEnterPress,maxWidth:e.maxWidth,width:e.width})}function p(e){return r.createElement("div",{style:{display:"flex"}},e.tip&&r.createElement("p",{className:"input input_left "},e.tip),r.createElement("select",{defaultValue:e.defaultValue,value:e.value,style:{width:e.width},disabled:!!e.disabled,className:"input input--block ".concat(e.no_border?"input--no_border":""),onChange:function(t){return e.onChange(t.target.value)}},e.options.map((function(e,t){return r.createElement("option",{key:t,value:e.value},e.title)}))))}function h(e){var t;return r.createElement("div",{className:"input_radio_row"},r.createElement("input",{type:"radio",checked:e.selected,name:null!==(t=e.name)&&void 0!==t?t:"common_name",value:e.value,className:"input_radio",onChange:function(){e.onchange&&e.onchange(e.value)}}),e.context)}function m(e){var t,n=a((0,r.useState)(!1),2),o=n[0],i=n[1];return(0,r.useEffect)((function(){i(!!e.selected)}),[e.selected]),r.createElement("div",{className:"input_radio_row"},r.createElement("input",{type:"checkbox",disabled:null!==(t=e.is_disable)&&void 0!==t&&t,checked:o,onChange:function(){e.onchange&&e.onchange()}}),e.context)}},4238:(e,t,n)=>{n.d(t,{HK:()=>d,b$:()=>u,hF:()=>f,hf:()=>p});var r=n(7613),o=n(1869),i=n(3459);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}var l=new o.Nz,u=!0,d=function(e){return e[e.connection=0]="connection",e[e.sys_get=1]="sys_get",e[e.sys_getting=2]="sys_getting",e[e.shell_open=3]="shell_open",e[e.shell_send=4]="shell_send",e[e.shell_getting=5]="shell_getting",e[e.shell_copy=6]="shell_copy",e[e.shell_cd=7]="shell_cd",e[e.docker_get=8]="docker_get",e[e.docker_getting=9]="docker_getting",e[e.docker_shell_logs=10]="docker_shell_logs",e[e.docker_shell_logs_getting=11]="docker_shell_logs_getting",e[e.docker_shell_logs_cancel=12]="docker_shell_logs_cancel",e[e.docker_shell_exec_open=13]="docker_shell_exec_open",e[e.docker_shell_exec=14]="docker_shell_exec",e[e.docker_shell_exec_getting=15]="docker_shell_exec_getting",e[e.docker_shell_exec_cancel=16]="docker_shell_exec_cancel",e[e.docker_switch=17]="docker_switch",e[e.docker_del_container=18]="docker_del_container",e[e.process_get=19]="process_get",e[e.process_getting=20]="process_getting",e[e.process_close=21]="process_close",e[e.systemd_inside_get=22]="systemd_inside_get",e[e.systemd_inside_getting=23]="systemd_inside_getting",e[e.systemd_logs_get=24]="systemd_logs_get",e[e.systemd_logs_getting=25]="systemd_logs_getting",e[e.remote_shell_open=26]="remote_shell_open",e[e.remote_shell_send=27]="remote_shell_send",e[e.remote_shell_getting=28]="remote_shell_getting",e[e.remote_shell_cancel=29]="remote_shell_cancel",e[e.remote_shell_cd=30]="remote_shell_cd",e[e.infos=31]="infos",e[e.connect=32]="connect",e[e.rdp_connect=33]="rdp_connect",e[e.rdp_bitmap=34]="rdp_bitmap",e[e.rdp_close=35]="rdp_close",e[e.rdp_error=36]="rdp_error",e[e.mouse=37]="mouse",e[e.wheel=38]="wheel",e[e.scancode=39]="scancode",e[e.unicode=40]="unicode",e[e.rdp_disconnect=41]="rdp_disconnect",e[e.vir_net_serverIno_get=42]="vir_net_serverIno_get",e[e.vir_net_client_get=43]="vir_net_client_get",e[e.file_info=44]="file_info",e[e.file_video_trans=45]="file_video_trans",e[e.file_video_trans_progress=46]="file_video_trans_progress",e[e.file_uncompress=47]="file_uncompress",e[e.file_uncompress_progress=48]="file_uncompress_progress",e[e.file_compress=49]="file_compress",e[e.file_compress_progress=50]="file_compress_progress",e[e.file_upload_pre=51]="file_upload_pre",e[e.file_upload=52]="file_upload",e[e.log_viewer=53]="log_viewer",e[e.log_viewer_watch=54]="log_viewer_watch",e[e.search_file=55]="search_file",e[e.search_file_progress=56]="search_file_progress",e[e.search_file_index=57]="search_file_index",e[e.search_file_cancel=58]="search_file_cancel",e[e.http_download_water=59]="http_download_water",e[e.http_download_cancel=60]="http_download_cancel",e[e.rtsp_get=61]="rtsp_get",e[e.rtsp_cancel=62]="rtsp_cancel",e[e.workflow_exec=63]="workflow_exec",e[e.workflow_get=64]="workflow_get",e[e.workflow_realtime=65]="workflow_realtime",e[e.workflow_realtime_one_req=66]="workflow_realtime_one_req",e[e.workflow_realtime_one_rsq=67]="workflow_realtime_one_rsq",e[e.workflow_search_by_run_name=68]="workflow_search_by_run_name",e}({}),f=function(e){return e[e.data=0]="data",e[e.other=1]="other",e}({}),p=function(){function e(t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cmdType=t,this.context=n,this.bin_context=r,this.code=i.m.Sucess,this.random_id=o}return t=e,c=[{key:"decode",value:function(t){var n=r.WsMessage.decode(t),o=n.context;if("string"==typeof o&&o)try{o=JSON.parse(o)}catch(e){console.log(e),o=n.context}var i=new e(n.cmdType,o,n.binContext);return i.code=n.code,i.message=n.message,i.random_id=n.randomId,i}}],(n=[{key:"encode",value:function(){if(u)return r.WsMessage.encode(r.WsMessage.create({cmdType:this.cmdType,context:JSON.stringify(this.context),code:this.code,message:this.message,binContext:this.bin_context,randomId:this.random_id})).finish();var e={type:o.LP.EVENT,data:[this.cmdType,this.context,this.code,this.message,this.random_id]};return l.encode(e)}}])&&a(t.prototype,n),c&&a(t,c),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,c}()},4944:(e,t,n)=>{n.d(t,{ws:()=>r});var r=new(n(8965).I)(window.location.host+window.location.pathname,(function(e){}),"全局")},7613:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(6946),i=o.Reader,c=o.Writer,a=o.util,s=o.roots.default||(o.roots.default={});s.WsMessage=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.cmdType=0,e.prototype.context="",e.prototype.binContext=a.newBuffer([]),e.prototype.message="",e.prototype.code=0,e.prototype.randomId="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=c.create()),null!=e.cmdType&&Object.hasOwnProperty.call(e,"cmdType")&&t.uint32(8).int32(e.cmdType),null!=e.context&&Object.hasOwnProperty.call(e,"context")&&t.uint32(18).string(e.context),null!=e.binContext&&Object.hasOwnProperty.call(e,"binContext")&&t.uint32(26).bytes(e.binContext),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&t.uint32(34).string(e.message),null!=e.code&&Object.hasOwnProperty.call(e,"code")&&t.uint32(40).int32(e.code),null!=e.randomId&&Object.hasOwnProperty.call(e,"randomId")&&t.uint32(50).string(e.randomId),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.WsMessage;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.cmdType=e.int32();break;case 2:r.context=e.string();break;case 3:r.binContext=e.bytes();break;case 4:r.message=e.string();break;case 5:r.code=e.int32();break;case 6:r.randomId=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==r(e)||null===e?"object expected":null!=e.cmdType&&e.hasOwnProperty("cmdType")&&!a.isInteger(e.cmdType)?"cmdType: integer expected":null!=e.context&&e.hasOwnProperty("context")&&!a.isString(e.context)?"context: string expected":null!=e.binContext&&e.hasOwnProperty("binContext")&&!(e.binContext&&"number"==typeof e.binContext.length||a.isString(e.binContext))?"binContext: buffer expected":null!=e.message&&e.hasOwnProperty("message")&&!a.isString(e.message)?"message: string expected":null!=e.code&&e.hasOwnProperty("code")&&!a.isInteger(e.code)?"code: integer expected":null!=e.randomId&&e.hasOwnProperty("randomId")&&!a.isString(e.randomId)?"randomId: string expected":null},e.fromObject=function(e){if(e instanceof s.WsMessage)return e;var t=new s.WsMessage;return null!=e.cmdType&&(t.cmdType=0|e.cmdType),null!=e.context&&(t.context=String(e.context)),null!=e.binContext&&("string"==typeof e.binContext?a.base64.decode(e.binContext,t.binContext=a.newBuffer(a.base64.length(e.binContext)),0):e.binContext.length>=0&&(t.binContext=e.binContext)),null!=e.message&&(t.message=String(e.message)),null!=e.code&&(t.code=0|e.code),null!=e.randomId&&(t.randomId=String(e.randomId)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.cmdType=0,n.context="",t.bytes===String?n.binContext="":(n.binContext=[],t.bytes!==Array&&(n.binContext=a.newBuffer(n.binContext))),n.message="",n.code=0,n.randomId=""),null!=e.cmdType&&e.hasOwnProperty("cmdType")&&(n.cmdType=e.cmdType),null!=e.context&&e.hasOwnProperty("context")&&(n.context=e.context),null!=e.binContext&&e.hasOwnProperty("binContext")&&(n.binContext=t.bytes===String?a.base64.encode(e.binContext,0,e.binContext.length):t.bytes===Array?Array.prototype.slice.call(e.binContext):e.binContext),null!=e.message&&e.hasOwnProperty("message")&&(n.message=e.message),null!=e.code&&e.hasOwnProperty("code")&&(n.code=e.code),null!=e.randomId&&e.hasOwnProperty("randomId")&&(n.randomId=e.randomId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},e.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/WsMessage"},e}(),e.exports=s},8965:(e,t,n)=>{n.d(t,{I:()=>y});var r=n(4238),o=n(1869),i=n(3459),c=n(2042),a=n(1499);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(){l=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,c=Object.create(i.prototype),a=new N(r||[]);return o(c,"_invoke",{value:C(e,n,a)}),c}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",y="executing",_="completed",v={};function g(){}function b(){}function w(){}var x={};d(x,c,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(L([])));E&&E!==n&&r.call(E,c)&&(x=E);var O=w.prototype=g.prototype=Object.create(x);function S(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(o,i,c,a){var l=p(e[o],e,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==s(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,c,a)}),(function(e){n("throw",e,c,a)})):t.resolve(d).then((function(e){u.value=e,c(u)}),(function(e){return n("throw",e,c,a)}))}a(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function C(t,n,r){var o=h;return function(i,c){if(o===y)throw Error("Generator is already running");if(o===_){if("throw"===i)throw c;return{value:e,done:!0}}for(r.method=i,r.arg=c;;){var a=r.delegate;if(a){var s=j(a,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=_,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=y;var l=p(t,n,r);if("normal"===l.type){if(o=r.done?_:m,l.arg===v)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=_,r.method="throw",r.arg=l.arg)}}}function j(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,j(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=p(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var c=i.arg;return c?c.done?(n[t.resultName]=c.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):c:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function L(t){if(t||""===t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(s(t)+" is not iterable")}return b.prototype=w,o(O,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:b,configurable:!0}),b.displayName=d(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,u,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},S(P.prototype),d(P.prototype,a,(function(){return this})),t.AsyncIterator=P,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var c=new P(f(e,n,r,o),i);return t.isGeneratorFunction(n)?c:c.next().then((function(e){return e.done?e.value:c.next()}))},S(O),d(O,u,"Generator"),d(O,c,(function(){return this})),d(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=L,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return a.type="throw",a.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var s=r.call(c,"catchLoc"),l=r.call(c,"finallyLoc");if(s&&l){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(s){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=e,c.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(c)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:L(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function u(e,t,n,r,o,i,c){try{var a=e[i](c),s=a.value}catch(e){return void n(e)}a.done?t(s):Promise.resolve(s).then(r,o)}function d(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function c(e){u(i,r,o,c,a,"next",e)}function a(e){u(i,r,o,c,a,"throw",e)}c(void 0)}))}}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function p(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}var m=function(e){return e[e.not=0]="not",e[e.connecting=1]="connecting",e[e.connected=2]="connected",e}(m||{}),y=function(){return e=function e(t,n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,"decoder",r.b$?void 0:new o.XM),p(this,"_status",m.not),p(this,"_connect_await_promise",[]),p(this,"_self_close",!1),p(this,"_msgHandlerMap",new Map),p(this,"_msgResolveMap",new Map),p(this,"_msgResolveTimeoutMap",new Map),this._url=t,this._authHandle=n,this.name=i},t=[{key:"handMsg",value:function(e,t){t.code===i.m.Fail&&(0,c.zN)(t.message);var n=t.random_id||e,r=this._msgResolveMap.get(n);r&&(r(t),this._msgResolveMap.delete(n));var o=this._msgResolveTimeoutMap.get(n);o&&(clearTimeout(o),this._msgResolveTimeoutMap.delete(n));var a=this._msgHandlerMap.get(t.cmdType);a&&a(t)}},{key:"connect",value:(_=d(l().mark((function e(){var t,n=this;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=function(e){if(n._status!==m.connected)if(n._status!==m.connecting){n._status=m.connecting;var t=function(){n._status=m.not,n.decoder&&(n.decoder.removeAllListeners(),n.decoder.destroy()),n._subscribeUnconnect&&!n._self_close&&n._subscribeUnconnect(),n._self_close=!1},o=function(){var t=d(l().mark((function t(o){var i;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(console.info("ws连接成功",n.name),n._status=m.connected,n._authHandle&&n._authHandle(n._socket),e(!0),!n._connect_await_promise.length){t.next=14;break}case 5:if(!(i=n._connect_await_promise.pop())){t.next=11;break}i(!0),t.next=12;break;case 11:return t.abrupt("break",14);case 12:t.next=5;break;case 14:r.b$||n.decoder.on("decoded",(function(e){var t=new r.hf(e.data[0],e.data[1]);t.code=e.data[2],t.message=e.data[3],t.random_id=e.data[4],t.wss=n._socket,n.handMsg(t.cmdType,t)}));case 15:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),i=[],c=!1,a=function(){var e=d(l().mark((function e(t){var o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r.b$?((o=r.hf.decode(t)).wss=n._socket,n.handMsg(o.cmdType,o)):n.decoder.add(t),s();case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),s=function(){if(0!==i.length){c=!0;var e=i.shift();if(e instanceof ArrayBuffer)a(new Uint8Array(e));else if(e instanceof Blob){var t=new FileReader;t.onload=d(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a(new Uint8Array(t.result));case 1:case"end":return e.stop()}}),e)}))),t.readAsArrayBuffer(e)}else a(e)}else c=!1},u=function(){var e=d(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i.push(t.data),c||s();case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();if(n.isAilive())e(!0);else{var f=n.name,p=new WebSocket("ws://".concat(n._url,"?token=").concat(localStorage.getItem("token"),"&type=").concat(r.hF.data));p.addEventListener("open",o),p.addEventListener("message",u),p.addEventListener("close",function(){var e=d(l().mark((function e(n){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.info("Disconnected from WebSocket server",f),e.next=3,t();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),p.addEventListener("error",(function(e){console.error("WebSocket error:",e),t()})),n._socket=p}}else n._connect_await_promise.push(e);else e(!0)},e.abrupt("return",new Promise(t));case 2:case"end":return e.stop()}}),e)}))),function(){return _.apply(this,arguments)})},{key:"sendData",value:(y=d(l().mark((function e(t,n,o){var i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(i=new r.hf(t)).context=n,o&&(i.random_id=(0,a.hU)(9)),e.abrupt("return",this.send(i));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return y.apply(this,arguments)})},{key:"send",value:(h=d(l().mark((function e(t){var n,r=this;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._promise){e.next=4;break}return e.next=3,this._promise;case 3:this._promise=null;case 4:return e.next=6,this.connect();case 6:return n=t.encode(),e.abrupt("return",new Promise((function(e,o){var i=t.random_id||t.cmdType,c=setTimeout((function(){e(null),console.info("ws超时",i)}),6e3);if(r._msgResolveMap.set(i,e),r._msgResolveTimeoutMap.set(i,c),Array.isArray(n))for(var a=0;a<n.length;a++)r._socket.send(n[a]);else r._socket.send(n)})));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"setPromise",value:function(e){this._promise=new Promise(function(){var t=d(l().mark((function t(n){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e(n);case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}},{key:"isAilive",value:function(){return!(this._status!==m.connected||!this._socket||this._socket.readyState!==WebSocket.OPEN)}},{key:"subscribeUnconnect",value:function(e){this._subscribeUnconnect=e}},{key:"unSubscribeUnconnect",value:function(){this._subscribeUnconnect=null}},{key:"unConnect",value:(u=d(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.isAilive()&&(console.info("主动关闭客户端",this.name),this._self_close=!0,this._socket.close()),this._status=m.not;case 2:case"end":return e.stop()}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"addMsg",value:(s=d(l().mark((function e(t,n){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._msgHandlerMap.set(t,n);case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return s.apply(this,arguments)})},{key:"removeMsg",value:function(e){this._msgHandlerMap.delete(e)}}],n=[{key:"getOtherWebSocket",value:function(e){return new WebSocket("ws://".concat(window.location.host+window.location.pathname,"?token=").concat(localStorage.getItem("token"),"&type=").concat(r.hF.other,"&code=").concat(e))}},{key:"getOtherWebSocketUrl",value:function(e,t){for(var n="ws://".concat(window.location.host+window.location.pathname,"?token=").concat(localStorage.getItem("token"),"&type=").concat(r.hF.other,"&code=").concat(e),o=0,i=Object.keys(t);o<i.length;o++){var c=i[o];n+="&".concat(c,"=").concat(encodeURIComponent(t[c]))}return n}}],t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,s,u,h,y,_}()}}]);
@@ -1 +0,0 @@
1
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */