filecat 5.36.9 → 5.36.11
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.
- package/build/dist/{247.3d9df4e49a0ef4719790.js → 247.82bf62d13e107f09abed.js} +2 -2
- package/build/dist/377.e70ec7fc9b39c858bca6.js +2 -0
- package/build/dist/{431.c07ec994701d87df6284.js → 431.5cdd6f91076e81c2c803.js} +2 -2
- package/build/dist/{542.1febb78f66c5f03f759e.js → 542.74877c7e220236dfb551.js} +2 -2
- package/build/dist/704.2662e40b00a619fa8889.js +2 -0
- package/build/dist/{943.f6ab5be3677609d38a5d.js → 943.a841b1911e4e76360f8a.js} +2 -2
- package/build/dist/{998.8211781d57ffd9881f94.js → 998.a335abb2dad1e1da604f.js} +2 -2
- package/build/dist/index.html +1 -1
- package/build/dist/{main.af48e6d163cb940e7400.js → main.e0e85f3d6deab2a5a288.js} +2 -2
- package/build/main.js +1 -1
- package/package.json +1 -1
- package/build/dist/377.9cd725f3b63ec4971389.js +0 -2
- package/build/dist/704.933f578950456a2d23e1.js +0 -2
- /package/build/dist/{247.3d9df4e49a0ef4719790.js.LICENSE.txt → 247.82bf62d13e107f09abed.js.LICENSE.txt} +0 -0
- /package/build/dist/{377.9cd725f3b63ec4971389.js.LICENSE.txt → 377.e70ec7fc9b39c858bca6.js.LICENSE.txt} +0 -0
- /package/build/dist/{431.c07ec994701d87df6284.js.LICENSE.txt → 431.5cdd6f91076e81c2c803.js.LICENSE.txt} +0 -0
- /package/build/dist/{542.1febb78f66c5f03f759e.js.LICENSE.txt → 542.74877c7e220236dfb551.js.LICENSE.txt} +0 -0
- /package/build/dist/{704.933f578950456a2d23e1.js.LICENSE.txt → 704.2662e40b00a619fa8889.js.LICENSE.txt} +0 -0
- /package/build/dist/{943.f6ab5be3677609d38a5d.js.LICENSE.txt → 943.a841b1911e4e76360f8a.js.LICENSE.txt} +0 -0
- /package/build/dist/{998.8211781d57ffd9881f94.js.LICENSE.txt → 998.a335abb2dad1e1da604f.js.LICENSE.txt} +0 -0
- /package/build/dist/{main.af48e6d163cb940e7400.js.LICENSE.txt → main.e0e85f3d6deab2a5a288.js.LICENSE.txt} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 431.
|
|
2
|
-
(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[431,627],{5219(t){!function(){var e=function(t,n){var r=this;e.count=(e.count||0)+1,this.count=e.count,this.isOpened=!1,this.input=i(t),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-autocomplete","list"),this.input.setAttribute("aria-expanded","false"),this.input.setAttribute("aria-controls","awesomplete_list_"+this.count),this.input.setAttribute("aria-owns","awesomplete_list_"+this.count),this.input.setAttribute("role","combobox"),this.options=n=n||{},function(t,e,n){for(var r in e){var i=e[r],o=t.input.getAttribute("data-"+r.toLowerCase());t[r]="number"==typeof i?parseInt(o):!1===i?null!==o:i instanceof Function?null:o,t[r]||0===t[r]||(t[r]=r in n?n[r]:i)}}(this,{minChars:2,maxItems:10,autoFirst:!1,data:e.DATA,filter:e.FILTER_CONTAINS,sort:!1!==n.sort&&e.SORT_BYLENGTH,container:e.CONTAINER,item:e.ITEM,replace:e.REPLACE,tabSelect:!1,listLabel:"Results List",statusNoResults:"No results found",statusXResults:"{0} results found",statusTypeXChar:"Type {0} or more characters for results"},n),this.index=-1,this.container=this.container(t),this.ul=i.create("ul",{hidden:"hidden",role:"listbox",id:"awesomplete_list_"+this.count,inside:this.container,"aria-label":this.listLabel}),this.status=i.create("span",{className:"visually-hidden",role:"status","aria-live":"assertive","aria-atomic":!0,inside:this.container,textContent:""}),this._events={input:{input:this.evaluate.bind(this),blur:this.close.bind(this,{reason:"blur"}),keydown:function(t){var e=t.keyCode;r.opened&&(13===e&&r.selected||9===e&&r.selected&&r.tabSelect?(t.preventDefault(),r.select(void 0,void 0,t)):27===e?r.close({reason:"esc"}):38!==e&&40!==e||(t.preventDefault(),r[38===e?"previous":"next"]()))}},form:{submit:this.close.bind(this,{reason:"submit"})},ul:{mousedown:function(t){t.preventDefault()},click:function(t){var e=t.target;if(e!==this){for(;e&&!/li/i.test(e.nodeName);)e=e.parentNode;e&&0===t.button&&(t.preventDefault(),r.select(e,t.target,t))}}}},i.bind(this.input,this._events.input),i.bind(this.input.form,this._events.form),i.bind(this.ul,this._events.ul),this.input.hasAttribute("list")?(this.list="#"+this.input.getAttribute("list"),this.input.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||n.list||[],e.all.push(this)};function n(t){var e=Array.isArray(t)?{label:t[0],value:t[1]}:"object"==typeof t&&"label"in t&&"value"in t?t:{label:t,value:t};this.label=e.label||e.value,this.value=e.value}e.prototype={set list(t){if(Array.isArray(t))this._list=t;else if("string"==typeof t&&t.indexOf(",")>-1)this._list=t.split(/\s*,\s*/);else if((t=i(t))&&t.children){var e=[];r.apply(t.children).forEach(function(t){if(!t.disabled){var n=t.textContent.trim(),r=t.value||n,i=t.label||n;""!==r&&e.push({label:i,value:r})}}),this._list=e}document.activeElement===this.input&&this.evaluate()},get selected(){return this.index>-1},get opened(){return this.isOpened},close:function(t){this.opened&&(this.input.setAttribute("aria-expanded","false"),this.ul.setAttribute("hidden",""),this.isOpened=!1,this.index=-1,this.status.setAttribute("hidden",""),this.input.setAttribute("aria-activedescendant",""),i.fire(this.input,"awesomplete-close",t||{}))},open:function(){this.input.setAttribute("aria-expanded","true"),this.ul.removeAttribute("hidden"),this.isOpened=!0,this.status.removeAttribute("hidden"),this.autoFirst&&-1===this.index&&this.goto(0),i.fire(this.input,"awesomplete-open")},destroy:function(){if(i.unbind(this.input,this._events.input),i.unbind(this.input.form,this._events.form),!this.options.container){var t=this.container.parentNode;t.insertBefore(this.input,this.container),t.removeChild(this.container)}this.input.removeAttribute("autocomplete"),this.input.removeAttribute("aria-autocomplete"),this.input.removeAttribute("aria-expanded"),this.input.removeAttribute("aria-controls"),this.input.removeAttribute("aria-owns"),this.input.removeAttribute("role");var n=e.all.indexOf(this);-1!==n&&e.all.splice(n,1)},next:function(){var t=this.ul.children.length;this.goto(this.index<t-1?this.index+1:t?0:-1)},previous:function(){var t=this.ul.children.length,e=this.index-1;this.goto(this.selected&&-1!==e?e:t-1)},goto:function(t){var e=this.ul.children;this.selected&&e[this.index].setAttribute("aria-selected","false"),this.index=t,t>-1&&e.length>0&&(e[t].setAttribute("aria-selected","true"),this.input.setAttribute("aria-activedescendant",this.ul.id+"_item_"+this.index),this.ul.scrollTop=e[t].offsetTop-this.ul.clientHeight+e[t].clientHeight,i.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(t,e,n){if(t?this.index=i.siblingIndex(t):t=this.ul.children[this.index],t){var r=this.suggestions[this.index];i.fire(this.input,"awesomplete-select",{text:r,origin:e||t,originalEvent:n})&&(this.replace(r),this.close({reason:"select"}),i.fire(this.input,"awesomplete-selectcomplete",{text:r,originalEvent:n}))}},evaluate:function(){var t=this,e=this.input.value;e.length>=this.minChars&&this._list&&this._list.length>0?(this.index=-1,this.ul.innerHTML="",this.suggestions=this._list.map(function(r){return new n(t.data(r,e))}).filter(function(n){return t.filter(n,e)}),!1!==this.sort&&(this.suggestions=this.suggestions.sort(this.sort)),this.suggestions=this.suggestions.slice(0,this.maxItems),this.suggestions.forEach(function(n,r){t.ul.appendChild(t.item(n,e,r))}),0===this.ul.children.length?(this.status.textContent=this.statusNoResults,this.close({reason:"nomatches"})):(this.input.setAttribute("aria-activedescendant",""),this.open(),this.status.textContent=this.statusXResults.replaceAll("{0}",this.ul.children.length))):(this.close({reason:"nomatches"}),this.minChar<=1||e.length>=this.minChars?this.status.textContent=this.statusNoResults:this.status.textContent=this.statusTypeXChar.replaceAll("{0}",this.minChars))}},e.all=[],e.FILTER_CONTAINS=function(t,e){return RegExp(i.regExpEscape(e.trim()),"i").test(t)},e.FILTER_STARTSWITH=function(t,e){return RegExp("^"+i.regExpEscape(e.trim()),"i").test(t)},e.SORT_BYLENGTH=function(t,e){return t.length!==e.length?t.length-e.length:t<e?-1:1},e.CONTAINER=function(t){return i.create("div",{className:"awesomplete",around:t})},e.ITEM=function(t,e,n){var r=""===e.trim()?t:t.replace(RegExp(i.regExpEscape(e.trim()),"gi"),"<mark>$&</mark>");return i.create("li",{innerHTML:r,role:"option","aria-selected":"false",tabindex:"-1",id:"awesomplete_list_"+this.count+"_item_"+n})},e.REPLACE=function(t){this.input.value=t.value},e.DATA=function(t){return t},Object.defineProperty(n.prototype=Object.create(String.prototype),"length",{get:function(){return this.label.length}}),n.prototype.toString=n.prototype.valueOf=function(){return""+this.label};var r=Array.prototype.slice;function i(t,e){return"string"==typeof t?(e||document).querySelector(t):t||null}function o(t,e){return r.call((e||document).querySelectorAll(t))}function a(){o("input.awesomplete").forEach(function(t){new e(t)})}i.create=function(t,e){var n=document.createElement(t);for(var r in e){var o=e[r];if("inside"===r)i(o).appendChild(n);else if("around"===r){var a=i(o);a.parentNode.insertBefore(n,a),n.appendChild(a),null!=a.getAttribute("autofocus")&&a.focus()}else r in n?n[r]=o:n.setAttribute(r,o)}return n},i.bind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.addEventListener(e,r)})}},i.unbind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.removeEventListener(e,r)})}},i.fire=function(t,e,n){var r=document.createEvent("HTMLEvents");for(var i in r.initEvent(e,!0,!0),n)r[i]=n[i];return t.dispatchEvent(r)},i.regExpEscape=function(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},i.siblingIndex=function(t){for(var e=0;t=t.previousElementSibling;e++);return e},"undefined"!=typeof self&&(self.Awesomplete=e),"undefined"!=typeof Document&&("loading"!==document.readyState?a():document.addEventListener("DOMContentLoaded",a)),e.$=i,e.$$=o,t.exports&&(t.exports=e)}()},7481(t,e,n){"use strict";n.d(e,{S:()=>u,X:()=>a});var r=n(6540);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],l=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0);}catch(t){s=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(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)?o(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 o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function a(t){var e,n=i(r.useState([]),2),o=n[0],a=n[1];return(0,r.useEffect)(function(){t.children?a(Array.isArray(t.children)?t.children:[t.children]):a(t.rows)},[t.rows,t.children]),r.createElement("table",null,r.createElement("thead",null,r.createElement("tr",null,null===(e=t.headers)||void 0===e?void 0:e.map(function(t,e){return r.createElement("th",{key:e},t)}))),r.createElement("tbody",null,o.map(function(e,n){return r.createElement("tr",{key:n,onContextMenu:function(){t.handleContextMenu&&t.handleContextMenu(e)}},e.map(function(e,n){var i;return r.createElement("td",{style:{width:null!==(i=t.width)&&void 0!==i?i:"auto"},key:n,className:n===o.length-1?"small":""},e)}))})))}function u(t){return r.createElement("div",{style:{display:t.isFlex?"flex":"block"}},t.columns.map(function(t,e){return r.createElement("div",{key:e},t)}))}},7445(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>M});var r=n(6540),i=n(5725),o=n(447),a=n(5997),u=n(7481),l=n(3033),s=n(4284),c=n(3459),f=n(2726),h=n(3413),d=n.n(h),p=n(2389),m=n(7952),v=n(6325),y=n(7444),b=n(6417),g=n(2042);function w(t){return function(t){if(Array.isArray(t))return _(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||O(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 E(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var l=r&&r.prototype instanceof u?r:u,s=Object.create(l.prototype);return A(s,"_invoke",function(n,r,i){var o,u,l,s=0,c=i||[],f=!1,h={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return o=e,u=0,l=t,h.n=n,a}};function d(n,r){for(u=n,l=r,e=0;!f&&s&&!i&&e<c.length;e++){var i,o=c[e],d=h.p,p=o[2];n>3?(i=p===r)&&(l=o[(u=o[4])?5:(u=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=n<2&&d<o[1])?(u=0,h.v=r,h.n=o[1]):d<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,h.n=p,u=0))}if(i||n>1)return a;throw f=!0,r}return function(i,c,p){if(s>1)throw TypeError("Generator is already running");for(f&&1===c&&d(c,p),u=c,l=p;(e=u<2?t:l)||!f;){o||(u?u<3?(u>1&&(h.n=-1),d(u,l)):h.n=l:h.v=l);try{if(s=2,o){if(u||(i="next"),e=o[i]){if(!(e=e.call(o,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,u<2&&(u=0)}else 1===u&&(e=o.return)&&e.call(o),u<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),u=1);o=t}else if((e=(f=h.n<0)?l:n.call(r,h))!==a)break}catch(e){o=t,u=1,l=e}finally{s=1}}return{value:e,done:f}}}(n,i,o),!0),s}var a={};function u(){}function l(){}function s(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(A(e={},r,function(){return this}),e),f=s.prototype=u.prototype=Object.create(c);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,A(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return l.prototype=s,A(f,"constructor",s),A(s,"constructor",l),l.displayName="GeneratorFunction",A(s,i,"GeneratorFunction"),A(f),A(f,i,"Generator"),A(f,r,function(){return this}),A(f,"toString",function(){return"[object Generator]"}),(E=function(){return{w:o,m:h}})()}function A(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}A=function(t,e,n,r){function o(e,n){A(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},A(t,e,n,r)}function x(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=O(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function S(t,e,n,r,i,o,a){try{var u=t[o](a),l=u.value}catch(t){return void n(t)}u.done?e(l):Promise.resolve(l).then(r,i)}function k(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){S(o,r,i,a,u,"next",t)}function u(t){S(o,r,i,a,u,"throw",t)}a(void 0)})}}function C(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],l=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0);}catch(t){s=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return u}}(t,e)||O(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 O(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}function T(t){var e=(0,p.Bd)().t,n=C((0,r.useState)([]),2),h=n[0],A=n[1],S=C((0,r.useState)([]),2),O=S[0],_=S[1],T=C((0,r.useState)(""),2),I=T[0],j=T[1],L=C((0,r.useState)(""),2),P=L[0],N=L[1],H=C((0,r.useState)(!1),2),F=H[0],R=H[1],G=C((0,y.L4)(b.A.showPrompt),2),D=(G[0],G[1]),M=C((0,y.L4)(b.A.confirm),2),z=(M[0],M[1]);(0,r.useEffect)(function(){k(E().m(function t(){var e,n,r,i,o,a,u;return E().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,s.ez.get("ips/dnspod");case 1:if((e=t.v).code===c.m.Success){t.n=2;break}return t.a(2);case 2:n=e.data,r=[],i=[],o=x(n.ips);try{for(o.s();!(a=o.n()).done;)(u=a.value).isIPv4?r.push(u):i.push(u)}catch(t){o.e(t)}finally{o.f()}A(r),_(i),n.account&&(j(n.account.id),N(n.account.token)),R(n.isOpen);case 3:return t.a(2)}},t)}))()},[]);var B=function(){var t=k(E().m(function t(){var e,n,r,i,o,a;return E().w(function(t){for(;;)switch(t.n){case 0:if(!F||I&&P){t.n=1;break}return new(d())({type:"error",text:"id和token都不能为空",timeout:1e3,layout:"bottomLeft"}).show(),t.a(2);case 1:for(e=new f.yL,n=[],r=0,i=[].concat(w(h),w(O));r<i.length;r++)(o=i[r]).ddnsHost&&n.push(o);return e.ips=n,e.account={id:I,token:P},e.isOpen=F,e.ddnsType=f.E2.dnspod,t.n=2,s.ez.post("save",e);case 2:(a=t.v).code===c.m.DdnsAuthFail?new(d())({type:"error",text:a.data,timeout:1e3,layout:"bottomLeft"}).show():new(d())({type:"success",text:a.data,timeout:1e3,layout:"bottomLeft"}).show();case 3:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),$=function(){var t=k(E().m(function t(e){return E().w(function(t){for(;;)switch(t.n){case 0:z({open:!0,handle:function(){var t=k(E().m(function t(){return E().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,s.ez.post("http/del",e);case 1:0===t.v.code&&(0,g.LW)("删除成功,稍后请刷新"),z({open:!1,handle:null});case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),title:"确定删除吗?"});case 1:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}();return r.createElement("div",null,r.createElement(m.A,null,r.createElement(a.rA,{icon:"add",title:e("添加http获取ip"),onClick:function(){D({show:!0,type:v.PromptEnum.DdnsAddHttp,overlay:!0,data:{}})}})),r.createElement(i.fI,null,r.createElement(i.VP,null,r.createElement(o.Zp,{title:"ipv4"},h.length>0&&h.map(function(t,n){return r.createElement("div",{key:n},"".concat(t.ifaceOrWww,"(").concat(t.ip,")"),r.createElement(l.Sm,{right_placeholder:r.createElement("div",null,t.source_type===f.tC.http_get&&r.createElement(a.rA,{icon:"delete",title:e("删除"),onClick:function(){$(t)}})),placeholder:"a.abc.com b.abc.com ...",value:t.ddnsHost,handleInputChange:function(e){t.ddnsHost=e}}))})),r.createElement(o.Zp,{title:"ipv6"},O.length>0&&O.map(function(t,n){return r.createElement("div",{key:n},"".concat(t.ifaceOrWww,"(").concat(t.ip,")"),r.createElement(l.Sm,{right_placeholder:r.createElement("div",null,t.source_type===f.tC.http_get&&r.createElement(a.rA,{icon:"delete",title:e("删除"),onClick:function(){$(t)}})),placeholder:"a.abc.com b.abc.com ...",value:t.ddnsHost,handleInputChange:function(e){t.ddnsHost=e}}))}))),r.createElement(i.VP,null,r.createElement(o.Zp,{title:e("账号设置"),rightBottomCom:r.createElement(a.C3,{text:e("保存"),clickFun:B})},r.createElement(l.Sm,{placeholder:"ID",value:I,handleInputChange:function(t){j(t)}}),r.createElement(l.Sm,{placeholder:"TOKEN",value:P,handleInputChange:function(t){N(t)}}),r.createElement(u.S,{isFlex:!0,columns:[r.createElement(l.U6,{value:1,context:e("开启"),selected:F,onchange:function(){R(!F)}}),r.createElement(l.U6,{value:1,context:e("关闭"),selected:!F,onchange:function(){R(!F)}})]})),r.createElement(o.Zp,{title:e("说明")},"域名如果不存在会自动创建,空子域名是@,ip6和ipv4可以互相切换。"))))}function I(t){return function(t){if(Array.isArray(t))return G(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||R(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 j(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var l=r&&r.prototype instanceof u?r:u,s=Object.create(l.prototype);return L(s,"_invoke",function(n,r,i){var o,u,l,s=0,c=i||[],f=!1,h={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return o=e,u=0,l=t,h.n=n,a}};function d(n,r){for(u=n,l=r,e=0;!f&&s&&!i&&e<c.length;e++){var i,o=c[e],d=h.p,p=o[2];n>3?(i=p===r)&&(l=o[(u=o[4])?5:(u=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=n<2&&d<o[1])?(u=0,h.v=r,h.n=o[1]):d<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,h.n=p,u=0))}if(i||n>1)return a;throw f=!0,r}return function(i,c,p){if(s>1)throw TypeError("Generator is already running");for(f&&1===c&&d(c,p),u=c,l=p;(e=u<2?t:l)||!f;){o||(u?u<3?(u>1&&(h.n=-1),d(u,l)):h.n=l:h.v=l);try{if(s=2,o){if(u||(i="next"),e=o[i]){if(!(e=e.call(o,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,u<2&&(u=0)}else 1===u&&(e=o.return)&&e.call(o),u<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),u=1);o=t}else if((e=(f=h.n<0)?l:n.call(r,h))!==a)break}catch(e){o=t,u=1,l=e}finally{s=1}}return{value:e,done:f}}}(n,i,o),!0),s}var a={};function u(){}function l(){}function s(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(L(e={},r,function(){return this}),e),f=s.prototype=u.prototype=Object.create(c);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,L(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return l.prototype=s,L(f,"constructor",s),L(s,"constructor",l),l.displayName="GeneratorFunction",L(s,i,"GeneratorFunction"),L(f),L(f,i,"Generator"),L(f,r,function(){return this}),L(f,"toString",function(){return"[object Generator]"}),(j=function(){return{w:o,m:h}})()}function L(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}L=function(t,e,n,r){function o(e,n){L(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},L(t,e,n,r)}function P(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=R(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function N(t,e,n,r,i,o,a){try{var u=t[o](a),l=u.value}catch(t){return void n(t)}u.done?e(l):Promise.resolve(l).then(r,i)}function H(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){N(o,r,i,a,u,"next",t)}function u(t){N(o,r,i,a,u,"throw",t)}a(void 0)})}}function F(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],l=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0);}catch(t){s=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return u}}(t,e)||R(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 R(t,e){if(t){if("string"==typeof t)return G(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)?G(t,e):void 0}}function G(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function D(t){var e=(0,p.Bd)().t,n=F((0,r.useState)([]),2),h=n[0],w=n[1],E=F((0,r.useState)([]),2),A=E[0],x=E[1],S=F((0,r.useState)(""),2),k=S[0],C=S[1],O=F((0,r.useState)(""),2),_=O[0],T=O[1],L=F((0,r.useState)(!1),2),N=L[0],R=L[1],G=F((0,y.L4)(b.A.showPrompt),2),D=(G[0],G[1]),M=F((0,y.L4)(b.A.confirm),2),z=(M[0],M[1]);(0,r.useEffect)(function(){H(j().m(function t(){var e,n,r,i,o,a,u;return j().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,s.ez.get("ips/tx");case 1:if((e=t.v).code===c.m.Success){t.n=2;break}return t.a(2);case 2:n=e.data,r=[],i=[],o=P(n.ips);try{for(o.s();!(a=o.n()).done;)(u=a.value).isIPv4?r.push(u):i.push(u)}catch(t){o.e(t)}finally{o.f()}w(r),x(i),n.account&&(C(n.account.secretid),T(n.account.secretkey)),R(n.isOpen);case 3:return t.a(2)}},t)}))()},[]);var B=function(){var t=H(j().m(function t(){var e,n,r,i,o,a;return j().w(function(t){for(;;)switch(t.n){case 0:if(!N||k&&_){t.n=1;break}return new(d())({type:"error",text:"SecretId和SecretKey都不能为空",timeout:1e3,layout:"bottomLeft"}).show(),t.a(2);case 1:for(e=new f.yL,n=[],r=0,i=[].concat(I(h),I(A));r<i.length;r++)(o=i[r]).ddnsHost&&n.push(o);return e.ips=n,e.account={secretid:k,secretkey:_},e.isOpen=N,e.ddnsType=f.E2.tengxun,t.n=2,s.ez.post("save",e);case 2:(a=t.v).code===c.m.DdnsAuthFail?new(d())({type:"error",text:a.data,timeout:1e3,layout:"bottomLeft"}).show():new(d())({type:"success",text:a.data,timeout:1e3,layout:"bottomLeft"}).show();case 3:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),$=function(){var t=H(j().m(function t(e){return j().w(function(t){for(;;)switch(t.n){case 0:z({open:!0,handle:function(){var t=H(j().m(function t(){return j().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,s.ez.post("http/del",e);case 1:0===t.v.code&&(0,g.LW)("删除成功,稍后请刷新"),z({open:!1,handle:null});case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),title:"确定删除吗?"});case 1:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}();return r.createElement("div",null,r.createElement(m.A,null,r.createElement(a.rA,{icon:"add",title:e("添加http获取ip"),onClick:function(){D({show:!0,type:v.PromptEnum.DdnsAddHttp,overlay:!0,data:{}})}})),r.createElement(i.fI,null,r.createElement(i.VP,null,r.createElement(o.Zp,{title:"ipv4"},h.length>0&&h.map(function(t,n){return r.createElement("div",{key:n},"".concat(t.ifaceOrWww,"(").concat(t.ip,")"),r.createElement(l.Sm,{right_placeholder:r.createElement("div",null,t.source_type===f.tC.http_get&&r.createElement(a.rA,{icon:"delete",title:e("删除"),onClick:function(){$(t)}})),placeholder:"a.abc.com b.abc.com ...",value:t.ddnsHost,handleInputChange:function(e){t.ddnsHost=e}}))})),r.createElement(o.Zp,{title:"ipv6"},A.length>0&&A.map(function(t,n){return r.createElement("div",{key:n},"".concat(t.ifaceOrWww,"(").concat(t.ip,")"),r.createElement(l.Sm,{right_placeholder:r.createElement("div",null,t.source_type===f.tC.http_get&&r.createElement(a.rA,{icon:"delete",title:e("删除"),onClick:function(){$(t)}})),placeholder:"a.abc.com b.abc.com ...",value:t.ddnsHost,handleInputChange:function(e){t.ddnsHost=e}}))}))),r.createElement(i.VP,null,r.createElement(o.Zp,{title:e("账号设置"),rightBottomCom:r.createElement(a.C3,{text:e("保存"),clickFun:B})},r.createElement(l.Sm,{placeholder:"SecretId",value:k,handleInputChange:function(t){C(t)}}),r.createElement(l.Sm,{placeholder:"SecretKey",value:_,handleInputChange:function(t){T(t)}}),r.createElement(u.S,{isFlex:!0,columns:[r.createElement(l.U6,{value:1,context:e("开启"),selected:N,onchange:function(){R(!N)}}),r.createElement(l.U6,{value:1,context:e("关闭"),selected:!N,onchange:function(){R(!N)}})]})),r.createElement(o.Zp,{title:e("说明")},"域名如果不存在会自动创建,空子域名是@,ip6和ipv4可以互相切换。"))))}function M(){var t=(0,p.Bd)().t,e=[{index:1,name:"dnspod(".concat(t("腾讯"),")"),rto:"dnspod/"},{index:2,name:"".concat(t("腾讯")).concat(t("云")),rto:"tengxun/"}];return r.createElement(i.W1,{optionList:e},r.createElement(T,null),r.createElement(D,null))}},1028(t,e,n){"use strict";n.d(e,{A:()=>u});var r=n(1601),i=n.n(r),o=n(6314),a=n.n(o)()(i());a.push([t.id,'.awesomplete [hidden] {\n display: none;\n}\n\n.awesomplete .visually-hidden {\n position: absolute;\n clip: rect(0, 0, 0, 0);\n}\n\n.awesomplete {\n display: inline-block;\n position: relative;\n}\n\n.awesomplete > input {\n display: block;\n}\n\n.awesomplete > ul {\n position: absolute;\n left: 0;\n z-index: 1;\n min-width: 100%;\n box-sizing: border-box;\n list-style: none;\n padding: 0;\n margin: 0;\n background: #fff;\n}\n\n.awesomplete > ul:empty {\n display: none;\n}\n\n.awesomplete > ul {\n\tborder-radius: .3em;\n\tmargin: .2em 0 0;\n\tbackground: hsla(0,0%,100%,.9);\n\tbackground: linear-gradient(to bottom right, white, hsla(0,0%,100%,.8));\n\tborder: 1px solid rgba(0,0,0,.3);\n\tbox-shadow: .05em .2em .6em rgba(0,0,0,.2);\n\ttext-shadow: none;\n}\n\n@supports (transform: scale(0)) {\n\t.awesomplete > ul {\n\t\ttransition: .3s cubic-bezier(.4,.2,.5,1.4);\n\t\ttransform-origin: 1.43em -.43em;\n\t}\n\t\n\t.awesomplete > ul[hidden],\n\t.awesomplete > ul:empty {\n\t\topacity: 0;\n\t\ttransform: scale(0);\n\t\tdisplay: block;\n\t\tvisibility: hidden;\n\t\ttransition-timing-function: ease;\n\t}\n}\n\n\t/* Pointer */\n\t.awesomplete > ul:before {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t\ttop: -.43em;\n\t\tleft: 1em;\n\t\twidth: 0; height: 0;\n\t\tpadding: .4em;\n\t\tbackground: white;\n\t\tborder: inherit;\n\t\tborder-right: 0;\n\t\tborder-bottom: 0;\n\t\t-webkit-transform: rotate(45deg);\n\t\ttransform: rotate(45deg);\n\t}\n\n\t.awesomplete > ul > li {\n\t\tposition: relative;\n\t\tpadding: .2em .5em;\n\t\tcursor: pointer;\n\t}\n\t\n\t.awesomplete > ul > li:hover {\n\t\tbackground: hsl(200, 40%, 80%);\n\t\tcolor: black;\n\t}\n\t\n\t.awesomplete > ul > li[aria-selected="true"] {\n\t\tbackground: hsl(205, 40%, 40%);\n\t\tcolor: white;\n\t}\n\t\n\t\t.awesomplete mark {\n\t\t\tbackground: hsl(65, 100%, 50%);\n\t\t}\n\t\t\n\t\t.awesomplete li:hover mark {\n\t\t\tbackground: hsl(68, 100%, 41%);\n\t\t}\n\t\t\n\t\t.awesomplete li[aria-selected="true"] mark {\n\t\t\tbackground: hsl(86, 100%, 21%);\n\t\t\tcolor: inherit;\n\t\t}\n',""]);const u=a},9145(t,e,n){"use strict";var r=n(5072),i=n.n(r),o=n(7825),a=n.n(o),u=n(7659),l=n.n(u),s=n(5056),c=n.n(s),f=n(540),h=n.n(f),d=n(1113),p=n.n(d),m=n(1028),v={};v.styleTagTransform=p(),v.setAttributes=c(),v.insert=l().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=h();i()(m.A,v),m.A&&m.A.locals&&m.A.locals}}]);
|
|
1
|
+
/*! For license information please see 431.5cdd6f91076e81c2c803.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[431,627],{5219(t){!function(){var e=function(t,n){var r=this;e.count=(e.count||0)+1,this.count=e.count,this.isOpened=!1,this.input=i(t),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-autocomplete","list"),this.input.setAttribute("aria-expanded","false"),this.input.setAttribute("aria-controls","awesomplete_list_"+this.count),this.input.setAttribute("aria-owns","awesomplete_list_"+this.count),this.input.setAttribute("role","combobox"),this.options=n=n||{},function(t,e,n){for(var r in e){var i=e[r],o=t.input.getAttribute("data-"+r.toLowerCase());t[r]="number"==typeof i?parseInt(o):!1===i?null!==o:i instanceof Function?null:o,t[r]||0===t[r]||(t[r]=r in n?n[r]:i)}}(this,{minChars:2,maxItems:10,autoFirst:!1,data:e.DATA,filter:e.FILTER_CONTAINS,sort:!1!==n.sort&&e.SORT_BYLENGTH,container:e.CONTAINER,item:e.ITEM,replace:e.REPLACE,tabSelect:!1,listLabel:"Results List",statusNoResults:"No results found",statusXResults:"{0} results found",statusTypeXChar:"Type {0} or more characters for results"},n),this.index=-1,this.container=this.container(t),this.ul=i.create("ul",{hidden:"hidden",role:"listbox",id:"awesomplete_list_"+this.count,inside:this.container,"aria-label":this.listLabel}),this.status=i.create("span",{className:"visually-hidden",role:"status","aria-live":"assertive","aria-atomic":!0,inside:this.container,textContent:""}),this._events={input:{input:this.evaluate.bind(this),blur:this.close.bind(this,{reason:"blur"}),keydown:function(t){var e=t.keyCode;r.opened&&(13===e&&r.selected||9===e&&r.selected&&r.tabSelect?(t.preventDefault(),r.select(void 0,void 0,t)):27===e?r.close({reason:"esc"}):38!==e&&40!==e||(t.preventDefault(),r[38===e?"previous":"next"]()))}},form:{submit:this.close.bind(this,{reason:"submit"})},ul:{mousedown:function(t){t.preventDefault()},click:function(t){var e=t.target;if(e!==this){for(;e&&!/li/i.test(e.nodeName);)e=e.parentNode;e&&0===t.button&&(t.preventDefault(),r.select(e,t.target,t))}}}},i.bind(this.input,this._events.input),i.bind(this.input.form,this._events.form),i.bind(this.ul,this._events.ul),this.input.hasAttribute("list")?(this.list="#"+this.input.getAttribute("list"),this.input.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||n.list||[],e.all.push(this)};function n(t){var e=Array.isArray(t)?{label:t[0],value:t[1]}:"object"==typeof t&&"label"in t&&"value"in t?t:{label:t,value:t};this.label=e.label||e.value,this.value=e.value}e.prototype={set list(t){if(Array.isArray(t))this._list=t;else if("string"==typeof t&&t.indexOf(",")>-1)this._list=t.split(/\s*,\s*/);else if((t=i(t))&&t.children){var e=[];r.apply(t.children).forEach(function(t){if(!t.disabled){var n=t.textContent.trim(),r=t.value||n,i=t.label||n;""!==r&&e.push({label:i,value:r})}}),this._list=e}document.activeElement===this.input&&this.evaluate()},get selected(){return this.index>-1},get opened(){return this.isOpened},close:function(t){this.opened&&(this.input.setAttribute("aria-expanded","false"),this.ul.setAttribute("hidden",""),this.isOpened=!1,this.index=-1,this.status.setAttribute("hidden",""),this.input.setAttribute("aria-activedescendant",""),i.fire(this.input,"awesomplete-close",t||{}))},open:function(){this.input.setAttribute("aria-expanded","true"),this.ul.removeAttribute("hidden"),this.isOpened=!0,this.status.removeAttribute("hidden"),this.autoFirst&&-1===this.index&&this.goto(0),i.fire(this.input,"awesomplete-open")},destroy:function(){if(i.unbind(this.input,this._events.input),i.unbind(this.input.form,this._events.form),!this.options.container){var t=this.container.parentNode;t.insertBefore(this.input,this.container),t.removeChild(this.container)}this.input.removeAttribute("autocomplete"),this.input.removeAttribute("aria-autocomplete"),this.input.removeAttribute("aria-expanded"),this.input.removeAttribute("aria-controls"),this.input.removeAttribute("aria-owns"),this.input.removeAttribute("role");var n=e.all.indexOf(this);-1!==n&&e.all.splice(n,1)},next:function(){var t=this.ul.children.length;this.goto(this.index<t-1?this.index+1:t?0:-1)},previous:function(){var t=this.ul.children.length,e=this.index-1;this.goto(this.selected&&-1!==e?e:t-1)},goto:function(t){var e=this.ul.children;this.selected&&e[this.index].setAttribute("aria-selected","false"),this.index=t,t>-1&&e.length>0&&(e[t].setAttribute("aria-selected","true"),this.input.setAttribute("aria-activedescendant",this.ul.id+"_item_"+this.index),this.ul.scrollTop=e[t].offsetTop-this.ul.clientHeight+e[t].clientHeight,i.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(t,e,n){if(t?this.index=i.siblingIndex(t):t=this.ul.children[this.index],t){var r=this.suggestions[this.index];i.fire(this.input,"awesomplete-select",{text:r,origin:e||t,originalEvent:n})&&(this.replace(r),this.close({reason:"select"}),i.fire(this.input,"awesomplete-selectcomplete",{text:r,originalEvent:n}))}},evaluate:function(){var t=this,e=this.input.value;e.length>=this.minChars&&this._list&&this._list.length>0?(this.index=-1,this.ul.innerHTML="",this.suggestions=this._list.map(function(r){return new n(t.data(r,e))}).filter(function(n){return t.filter(n,e)}),!1!==this.sort&&(this.suggestions=this.suggestions.sort(this.sort)),this.suggestions=this.suggestions.slice(0,this.maxItems),this.suggestions.forEach(function(n,r){t.ul.appendChild(t.item(n,e,r))}),0===this.ul.children.length?(this.status.textContent=this.statusNoResults,this.close({reason:"nomatches"})):(this.input.setAttribute("aria-activedescendant",""),this.open(),this.status.textContent=this.statusXResults.replaceAll("{0}",this.ul.children.length))):(this.close({reason:"nomatches"}),this.minChar<=1||e.length>=this.minChars?this.status.textContent=this.statusNoResults:this.status.textContent=this.statusTypeXChar.replaceAll("{0}",this.minChars))}},e.all=[],e.FILTER_CONTAINS=function(t,e){return RegExp(i.regExpEscape(e.trim()),"i").test(t)},e.FILTER_STARTSWITH=function(t,e){return RegExp("^"+i.regExpEscape(e.trim()),"i").test(t)},e.SORT_BYLENGTH=function(t,e){return t.length!==e.length?t.length-e.length:t<e?-1:1},e.CONTAINER=function(t){return i.create("div",{className:"awesomplete",around:t})},e.ITEM=function(t,e,n){var r=""===e.trim()?t:t.replace(RegExp(i.regExpEscape(e.trim()),"gi"),"<mark>$&</mark>");return i.create("li",{innerHTML:r,role:"option","aria-selected":"false",tabindex:"-1",id:"awesomplete_list_"+this.count+"_item_"+n})},e.REPLACE=function(t){this.input.value=t.value},e.DATA=function(t){return t},Object.defineProperty(n.prototype=Object.create(String.prototype),"length",{get:function(){return this.label.length}}),n.prototype.toString=n.prototype.valueOf=function(){return""+this.label};var r=Array.prototype.slice;function i(t,e){return"string"==typeof t?(e||document).querySelector(t):t||null}function o(t,e){return r.call((e||document).querySelectorAll(t))}function a(){o("input.awesomplete").forEach(function(t){new e(t)})}i.create=function(t,e){var n=document.createElement(t);for(var r in e){var o=e[r];if("inside"===r)i(o).appendChild(n);else if("around"===r){var a=i(o);a.parentNode.insertBefore(n,a),n.appendChild(a),null!=a.getAttribute("autofocus")&&a.focus()}else r in n?n[r]=o:n.setAttribute(r,o)}return n},i.bind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.addEventListener(e,r)})}},i.unbind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.removeEventListener(e,r)})}},i.fire=function(t,e,n){var r=document.createEvent("HTMLEvents");for(var i in r.initEvent(e,!0,!0),n)r[i]=n[i];return t.dispatchEvent(r)},i.regExpEscape=function(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},i.siblingIndex=function(t){for(var e=0;t=t.previousElementSibling;e++);return e},"undefined"!=typeof self&&(self.Awesomplete=e),"undefined"!=typeof Document&&("loading"!==document.readyState?a():document.addEventListener("DOMContentLoaded",a)),e.$=i,e.$$=o,t.exports&&(t.exports=e)}()},7481(t,e,n){"use strict";n.d(e,{S:()=>u,X:()=>a});var r=n(6540);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],l=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0);}catch(t){s=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(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)?o(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 o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function a(t){var e,n=i(r.useState([]),2),o=n[0],a=n[1];return(0,r.useEffect)(function(){t.children?a(Array.isArray(t.children)?t.children:[t.children]):a(t.rows)},[t.rows,t.children]),r.createElement("table",null,r.createElement("thead",null,r.createElement("tr",null,null===(e=t.headers)||void 0===e?void 0:e.map(function(t,e){return r.createElement("th",{key:e},t)}))),r.createElement("tbody",null,o.map(function(e,n){return r.createElement("tr",{key:n,onContextMenu:function(){t.handleContextMenu&&t.handleContextMenu(e)}},e.map(function(e,n){var i;return r.createElement("td",{style:{width:null!==(i=t.width)&&void 0!==i?i:"auto"},key:n,className:n===o.length-1?"small":""},e)}))})))}function u(t){return r.createElement("div",{style:{display:t.isFlex?"flex":"block"}},t.columns.map(function(t,e){return r.createElement("div",{key:e},t)}))}},7445(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>M});var r=n(6540),i=n(5725),o=n(447),a=n(5997),u=n(7481),l=n(3033),s=n(4284),c=n(3459),f=n(2726),h=n(3413),d=n.n(h),p=n(2389),m=n(7952),v=n(6325),y=n(7444),b=n(6417),g=n(2042);function w(t){return function(t){if(Array.isArray(t))return _(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||O(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 E(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var l=r&&r.prototype instanceof u?r:u,s=Object.create(l.prototype);return A(s,"_invoke",function(n,r,i){var o,u,l,s=0,c=i||[],f=!1,h={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return o=e,u=0,l=t,h.n=n,a}};function d(n,r){for(u=n,l=r,e=0;!f&&s&&!i&&e<c.length;e++){var i,o=c[e],d=h.p,p=o[2];n>3?(i=p===r)&&(l=o[(u=o[4])?5:(u=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=n<2&&d<o[1])?(u=0,h.v=r,h.n=o[1]):d<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,h.n=p,u=0))}if(i||n>1)return a;throw f=!0,r}return function(i,c,p){if(s>1)throw TypeError("Generator is already running");for(f&&1===c&&d(c,p),u=c,l=p;(e=u<2?t:l)||!f;){o||(u?u<3?(u>1&&(h.n=-1),d(u,l)):h.n=l:h.v=l);try{if(s=2,o){if(u||(i="next"),e=o[i]){if(!(e=e.call(o,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,u<2&&(u=0)}else 1===u&&(e=o.return)&&e.call(o),u<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),u=1);o=t}else if((e=(f=h.n<0)?l:n.call(r,h))!==a)break}catch(e){o=t,u=1,l=e}finally{s=1}}return{value:e,done:f}}}(n,i,o),!0),s}var a={};function u(){}function l(){}function s(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(A(e={},r,function(){return this}),e),f=s.prototype=u.prototype=Object.create(c);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,A(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return l.prototype=s,A(f,"constructor",s),A(s,"constructor",l),l.displayName="GeneratorFunction",A(s,i,"GeneratorFunction"),A(f),A(f,i,"Generator"),A(f,r,function(){return this}),A(f,"toString",function(){return"[object Generator]"}),(E=function(){return{w:o,m:h}})()}function A(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}A=function(t,e,n,r){function o(e,n){A(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},A(t,e,n,r)}function x(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=O(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function S(t,e,n,r,i,o,a){try{var u=t[o](a),l=u.value}catch(t){return void n(t)}u.done?e(l):Promise.resolve(l).then(r,i)}function k(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){S(o,r,i,a,u,"next",t)}function u(t){S(o,r,i,a,u,"throw",t)}a(void 0)})}}function C(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],l=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0);}catch(t){s=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return u}}(t,e)||O(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 O(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}function T(t){var e=(0,p.Bd)().t,n=C((0,r.useState)([]),2),h=n[0],A=n[1],S=C((0,r.useState)([]),2),O=S[0],_=S[1],T=C((0,r.useState)(""),2),I=T[0],j=T[1],L=C((0,r.useState)(""),2),P=L[0],N=L[1],H=C((0,r.useState)(!1),2),F=H[0],R=H[1],G=C((0,y.L4)(b.A.showPrompt),2),D=(G[0],G[1]),M=C((0,y.L4)(b.A.confirm),2),z=(M[0],M[1]);(0,r.useEffect)(function(){k(E().m(function t(){var e,n,r,i,o,a,u;return E().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,s.ez.get("ips/dnspod");case 1:if((e=t.v).code===c.m.Success){t.n=2;break}return t.a(2);case 2:n=e.data,r=[],i=[],o=x(n.ips);try{for(o.s();!(a=o.n()).done;)(u=a.value).isIPv4?r.push(u):i.push(u)}catch(t){o.e(t)}finally{o.f()}A(r),_(i),n.account&&(j(n.account.id),N(n.account.token)),R(n.isOpen);case 3:return t.a(2)}},t)}))()},[]);var B=function(){var t=k(E().m(function t(){var e,n,r,i,o,a;return E().w(function(t){for(;;)switch(t.n){case 0:if(!F||I&&P){t.n=1;break}return new(d())({type:"error",text:"id和token都不能为空",timeout:1e3,layout:"bottomLeft"}).show(),t.a(2);case 1:for(e=new f.yL,n=[],r=0,i=[].concat(w(h),w(O));r<i.length;r++)(o=i[r]).ddnsHost&&n.push(o);return e.ips=n,e.account={id:I,token:P},e.isOpen=F,e.ddnsType=f.E2.dnspod,t.n=2,s.ez.post("save",e);case 2:(a=t.v).code===c.m.DdnsAuthFail?new(d())({type:"error",text:a.data,timeout:1e3,layout:"bottomLeft"}).show():new(d())({type:"success",text:a.data,timeout:1e3,layout:"bottomLeft"}).show();case 3:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),$=function(){var t=k(E().m(function t(e){return E().w(function(t){for(;;)switch(t.n){case 0:z({open:!0,handle:function(){var t=k(E().m(function t(){return E().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,s.ez.post("http/del",e);case 1:0===t.v.code&&(0,g.LW)("删除成功,稍后请刷新"),z({open:!1,handle:null});case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),title:"确定删除吗?"});case 1:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}();return r.createElement("div",null,r.createElement(m.A,null,r.createElement(a.rA,{icon:"add",title:e("添加http获取ip"),onClick:function(){D({show:!0,type:v.PromptEnum.DdnsAddHttp,overlay:!0,data:{}})}})),r.createElement(i.fI,null,r.createElement(i.VP,null,r.createElement(o.Zp,{title:"ipv4"},h.length>0&&h.map(function(t,n){return r.createElement("div",{key:n},"".concat(t.ifaceOrWww,"(").concat(t.ip,")"),r.createElement(l.Sm,{right_placeholder:r.createElement("div",null,t.source_type===f.tC.http_get&&r.createElement(a.rA,{icon:"delete",title:e("删除"),onClick:function(){$(t)}})),placeholder:"a.abc.com b.abc.com ...",value:t.ddnsHost,handleInputChange:function(e){t.ddnsHost=e}}))})),r.createElement(o.Zp,{title:"ipv6"},O.length>0&&O.map(function(t,n){return r.createElement("div",{key:n},"".concat(t.ifaceOrWww,"(").concat(t.ip,")"),r.createElement(l.Sm,{right_placeholder:r.createElement("div",null,t.source_type===f.tC.http_get&&r.createElement(a.rA,{icon:"delete",title:e("删除"),onClick:function(){$(t)}})),placeholder:"a.abc.com b.abc.com ...",value:t.ddnsHost,handleInputChange:function(e){t.ddnsHost=e}}))}))),r.createElement(i.VP,null,r.createElement(o.Zp,{title:e("账号设置"),rightBottomCom:r.createElement(a.C3,{text:e("保存"),clickFun:B})},r.createElement(l.Sm,{placeholder:"ID",value:I,handleInputChange:function(t){j(t)}}),r.createElement(l.cA,{placeholder:"TOKEN",value:P,handleInputChange:function(t){N(t)}}),r.createElement(u.S,{isFlex:!0,columns:[r.createElement(l.U6,{value:1,context:e("开启"),selected:F,onchange:function(){R(!F)}}),r.createElement(l.U6,{value:1,context:e("关闭"),selected:!F,onchange:function(){R(!F)}})]})),r.createElement(o.Zp,{title:e("说明")},"域名如果不存在会自动创建,空子域名是@,ip6和ipv4可以互相切换。"))))}function I(t){return function(t){if(Array.isArray(t))return G(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||R(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 j(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var l=r&&r.prototype instanceof u?r:u,s=Object.create(l.prototype);return L(s,"_invoke",function(n,r,i){var o,u,l,s=0,c=i||[],f=!1,h={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return o=e,u=0,l=t,h.n=n,a}};function d(n,r){for(u=n,l=r,e=0;!f&&s&&!i&&e<c.length;e++){var i,o=c[e],d=h.p,p=o[2];n>3?(i=p===r)&&(l=o[(u=o[4])?5:(u=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=n<2&&d<o[1])?(u=0,h.v=r,h.n=o[1]):d<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,h.n=p,u=0))}if(i||n>1)return a;throw f=!0,r}return function(i,c,p){if(s>1)throw TypeError("Generator is already running");for(f&&1===c&&d(c,p),u=c,l=p;(e=u<2?t:l)||!f;){o||(u?u<3?(u>1&&(h.n=-1),d(u,l)):h.n=l:h.v=l);try{if(s=2,o){if(u||(i="next"),e=o[i]){if(!(e=e.call(o,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,u<2&&(u=0)}else 1===u&&(e=o.return)&&e.call(o),u<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),u=1);o=t}else if((e=(f=h.n<0)?l:n.call(r,h))!==a)break}catch(e){o=t,u=1,l=e}finally{s=1}}return{value:e,done:f}}}(n,i,o),!0),s}var a={};function u(){}function l(){}function s(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(L(e={},r,function(){return this}),e),f=s.prototype=u.prototype=Object.create(c);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,L(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return l.prototype=s,L(f,"constructor",s),L(s,"constructor",l),l.displayName="GeneratorFunction",L(s,i,"GeneratorFunction"),L(f),L(f,i,"Generator"),L(f,r,function(){return this}),L(f,"toString",function(){return"[object Generator]"}),(j=function(){return{w:o,m:h}})()}function L(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}L=function(t,e,n,r){function o(e,n){L(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},L(t,e,n,r)}function P(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=R(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function N(t,e,n,r,i,o,a){try{var u=t[o](a),l=u.value}catch(t){return void n(t)}u.done?e(l):Promise.resolve(l).then(r,i)}function H(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){N(o,r,i,a,u,"next",t)}function u(t){N(o,r,i,a,u,"throw",t)}a(void 0)})}}function F(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],l=!0,s=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0);}catch(t){s=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return u}}(t,e)||R(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 R(t,e){if(t){if("string"==typeof t)return G(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)?G(t,e):void 0}}function G(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function D(t){var e=(0,p.Bd)().t,n=F((0,r.useState)([]),2),h=n[0],w=n[1],E=F((0,r.useState)([]),2),A=E[0],x=E[1],S=F((0,r.useState)(""),2),k=S[0],C=S[1],O=F((0,r.useState)(""),2),_=O[0],T=O[1],L=F((0,r.useState)(!1),2),N=L[0],R=L[1],G=F((0,y.L4)(b.A.showPrompt),2),D=(G[0],G[1]),M=F((0,y.L4)(b.A.confirm),2),z=(M[0],M[1]);(0,r.useEffect)(function(){H(j().m(function t(){var e,n,r,i,o,a,u;return j().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,s.ez.get("ips/tx");case 1:if((e=t.v).code===c.m.Success){t.n=2;break}return t.a(2);case 2:n=e.data,r=[],i=[],o=P(n.ips);try{for(o.s();!(a=o.n()).done;)(u=a.value).isIPv4?r.push(u):i.push(u)}catch(t){o.e(t)}finally{o.f()}w(r),x(i),n.account&&(C(n.account.secretid),T(n.account.secretkey)),R(n.isOpen);case 3:return t.a(2)}},t)}))()},[]);var B=function(){var t=H(j().m(function t(){var e,n,r,i,o,a;return j().w(function(t){for(;;)switch(t.n){case 0:if(!N||k&&_){t.n=1;break}return new(d())({type:"error",text:"SecretId和SecretKey都不能为空",timeout:1e3,layout:"bottomLeft"}).show(),t.a(2);case 1:for(e=new f.yL,n=[],r=0,i=[].concat(I(h),I(A));r<i.length;r++)(o=i[r]).ddnsHost&&n.push(o);return e.ips=n,e.account={secretid:k,secretkey:_},e.isOpen=N,e.ddnsType=f.E2.tengxun,t.n=2,s.ez.post("save",e);case 2:(a=t.v).code===c.m.DdnsAuthFail?new(d())({type:"error",text:a.data,timeout:1e3,layout:"bottomLeft"}).show():new(d())({type:"success",text:a.data,timeout:1e3,layout:"bottomLeft"}).show();case 3:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),$=function(){var t=H(j().m(function t(e){return j().w(function(t){for(;;)switch(t.n){case 0:z({open:!0,handle:function(){var t=H(j().m(function t(){return j().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,s.ez.post("http/del",e);case 1:0===t.v.code&&(0,g.LW)("删除成功,稍后请刷新"),z({open:!1,handle:null});case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),title:"确定删除吗?"});case 1:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}();return r.createElement("div",null,r.createElement(m.A,null,r.createElement(a.rA,{icon:"add",title:e("添加http获取ip"),onClick:function(){D({show:!0,type:v.PromptEnum.DdnsAddHttp,overlay:!0,data:{}})}})),r.createElement(i.fI,null,r.createElement(i.VP,null,r.createElement(o.Zp,{title:"ipv4"},h.length>0&&h.map(function(t,n){return r.createElement("div",{key:n},"".concat(t.ifaceOrWww,"(").concat(t.ip,")"),r.createElement(l.Sm,{right_placeholder:r.createElement("div",null,t.source_type===f.tC.http_get&&r.createElement(a.rA,{icon:"delete",title:e("删除"),onClick:function(){$(t)}})),placeholder:"a.abc.com b.abc.com ...",value:t.ddnsHost,handleInputChange:function(e){t.ddnsHost=e}}))})),r.createElement(o.Zp,{title:"ipv6"},A.length>0&&A.map(function(t,n){return r.createElement("div",{key:n},"".concat(t.ifaceOrWww,"(").concat(t.ip,")"),r.createElement(l.Sm,{right_placeholder:r.createElement("div",null,t.source_type===f.tC.http_get&&r.createElement(a.rA,{icon:"delete",title:e("删除"),onClick:function(){$(t)}})),placeholder:"a.abc.com b.abc.com ...",value:t.ddnsHost,handleInputChange:function(e){t.ddnsHost=e}}))}))),r.createElement(i.VP,null,r.createElement(o.Zp,{title:e("账号设置"),rightBottomCom:r.createElement(a.C3,{text:e("保存"),clickFun:B})},r.createElement(l.Sm,{placeholder:"SecretId",value:k,handleInputChange:function(t){C(t)}}),r.createElement(l.cA,{placeholder:"SecretKey",value:_,handleInputChange:function(t){T(t)}}),r.createElement(u.S,{isFlex:!0,columns:[r.createElement(l.U6,{value:1,context:e("开启"),selected:N,onchange:function(){R(!N)}}),r.createElement(l.U6,{value:1,context:e("关闭"),selected:!N,onchange:function(){R(!N)}})]})),r.createElement(o.Zp,{title:e("说明")},"域名如果不存在会自动创建,空子域名是@,ip6和ipv4可以互相切换。"))))}function M(){var t=(0,p.Bd)().t,e=[{index:1,name:"dnspod(".concat(t("腾讯"),")"),rto:"dnspod/"},{index:2,name:"".concat(t("腾讯")).concat(t("云")),rto:"tengxun/"}];return r.createElement(i.W1,{optionList:e},r.createElement(T,null),r.createElement(D,null))}},1028(t,e,n){"use strict";n.d(e,{A:()=>u});var r=n(1601),i=n.n(r),o=n(6314),a=n.n(o)()(i());a.push([t.id,'.awesomplete [hidden] {\n display: none;\n}\n\n.awesomplete .visually-hidden {\n position: absolute;\n clip: rect(0, 0, 0, 0);\n}\n\n.awesomplete {\n display: inline-block;\n position: relative;\n}\n\n.awesomplete > input {\n display: block;\n}\n\n.awesomplete > ul {\n position: absolute;\n left: 0;\n z-index: 1;\n min-width: 100%;\n box-sizing: border-box;\n list-style: none;\n padding: 0;\n margin: 0;\n background: #fff;\n}\n\n.awesomplete > ul:empty {\n display: none;\n}\n\n.awesomplete > ul {\n\tborder-radius: .3em;\n\tmargin: .2em 0 0;\n\tbackground: hsla(0,0%,100%,.9);\n\tbackground: linear-gradient(to bottom right, white, hsla(0,0%,100%,.8));\n\tborder: 1px solid rgba(0,0,0,.3);\n\tbox-shadow: .05em .2em .6em rgba(0,0,0,.2);\n\ttext-shadow: none;\n}\n\n@supports (transform: scale(0)) {\n\t.awesomplete > ul {\n\t\ttransition: .3s cubic-bezier(.4,.2,.5,1.4);\n\t\ttransform-origin: 1.43em -.43em;\n\t}\n\t\n\t.awesomplete > ul[hidden],\n\t.awesomplete > ul:empty {\n\t\topacity: 0;\n\t\ttransform: scale(0);\n\t\tdisplay: block;\n\t\tvisibility: hidden;\n\t\ttransition-timing-function: ease;\n\t}\n}\n\n\t/* Pointer */\n\t.awesomplete > ul:before {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t\ttop: -.43em;\n\t\tleft: 1em;\n\t\twidth: 0; height: 0;\n\t\tpadding: .4em;\n\t\tbackground: white;\n\t\tborder: inherit;\n\t\tborder-right: 0;\n\t\tborder-bottom: 0;\n\t\t-webkit-transform: rotate(45deg);\n\t\ttransform: rotate(45deg);\n\t}\n\n\t.awesomplete > ul > li {\n\t\tposition: relative;\n\t\tpadding: .2em .5em;\n\t\tcursor: pointer;\n\t}\n\t\n\t.awesomplete > ul > li:hover {\n\t\tbackground: hsl(200, 40%, 80%);\n\t\tcolor: black;\n\t}\n\t\n\t.awesomplete > ul > li[aria-selected="true"] {\n\t\tbackground: hsl(205, 40%, 40%);\n\t\tcolor: white;\n\t}\n\t\n\t\t.awesomplete mark {\n\t\t\tbackground: hsl(65, 100%, 50%);\n\t\t}\n\t\t\n\t\t.awesomplete li:hover mark {\n\t\t\tbackground: hsl(68, 100%, 41%);\n\t\t}\n\t\t\n\t\t.awesomplete li[aria-selected="true"] mark {\n\t\t\tbackground: hsl(86, 100%, 21%);\n\t\t\tcolor: inherit;\n\t\t}\n',""]);const u=a},9145(t,e,n){"use strict";var r=n(5072),i=n.n(r),o=n(7825),a=n.n(o),u=n(7659),l=n.n(u),s=n(5056),c=n.n(s),f=n(540),h=n.n(f),d=n(1113),p=n.n(d),m=n(1028),v={};v.styleTagTransform=p(),v.setAttributes=c(),v.insert=l().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=h();i()(m.A,v),m.A&&m.A.locals&&m.A.locals}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 542.
|
|
2
|
-
(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[165,542,627],{5219(t){!function(){var e=function(t,n){var r=this;e.count=(e.count||0)+1,this.count=e.count,this.isOpened=!1,this.input=i(t),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-autocomplete","list"),this.input.setAttribute("aria-expanded","false"),this.input.setAttribute("aria-controls","awesomplete_list_"+this.count),this.input.setAttribute("aria-owns","awesomplete_list_"+this.count),this.input.setAttribute("role","combobox"),this.options=n=n||{},function(t,e,n){for(var r in e){var i=e[r],a=t.input.getAttribute("data-"+r.toLowerCase());t[r]="number"==typeof i?parseInt(a):!1===i?null!==a:i instanceof Function?null:a,t[r]||0===t[r]||(t[r]=r in n?n[r]:i)}}(this,{minChars:2,maxItems:10,autoFirst:!1,data:e.DATA,filter:e.FILTER_CONTAINS,sort:!1!==n.sort&&e.SORT_BYLENGTH,container:e.CONTAINER,item:e.ITEM,replace:e.REPLACE,tabSelect:!1,listLabel:"Results List",statusNoResults:"No results found",statusXResults:"{0} results found",statusTypeXChar:"Type {0} or more characters for results"},n),this.index=-1,this.container=this.container(t),this.ul=i.create("ul",{hidden:"hidden",role:"listbox",id:"awesomplete_list_"+this.count,inside:this.container,"aria-label":this.listLabel}),this.status=i.create("span",{className:"visually-hidden",role:"status","aria-live":"assertive","aria-atomic":!0,inside:this.container,textContent:""}),this._events={input:{input:this.evaluate.bind(this),blur:this.close.bind(this,{reason:"blur"}),keydown:function(t){var e=t.keyCode;r.opened&&(13===e&&r.selected||9===e&&r.selected&&r.tabSelect?(t.preventDefault(),r.select(void 0,void 0,t)):27===e?r.close({reason:"esc"}):38!==e&&40!==e||(t.preventDefault(),r[38===e?"previous":"next"]()))}},form:{submit:this.close.bind(this,{reason:"submit"})},ul:{mousedown:function(t){t.preventDefault()},click:function(t){var e=t.target;if(e!==this){for(;e&&!/li/i.test(e.nodeName);)e=e.parentNode;e&&0===t.button&&(t.preventDefault(),r.select(e,t.target,t))}}}},i.bind(this.input,this._events.input),i.bind(this.input.form,this._events.form),i.bind(this.ul,this._events.ul),this.input.hasAttribute("list")?(this.list="#"+this.input.getAttribute("list"),this.input.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||n.list||[],e.all.push(this)};function n(t){var e=Array.isArray(t)?{label:t[0],value:t[1]}:"object"==typeof t&&"label"in t&&"value"in t?t:{label:t,value:t};this.label=e.label||e.value,this.value=e.value}e.prototype={set list(t){if(Array.isArray(t))this._list=t;else if("string"==typeof t&&t.indexOf(",")>-1)this._list=t.split(/\s*,\s*/);else if((t=i(t))&&t.children){var e=[];r.apply(t.children).forEach(function(t){if(!t.disabled){var n=t.textContent.trim(),r=t.value||n,i=t.label||n;""!==r&&e.push({label:i,value:r})}}),this._list=e}document.activeElement===this.input&&this.evaluate()},get selected(){return this.index>-1},get opened(){return this.isOpened},close:function(t){this.opened&&(this.input.setAttribute("aria-expanded","false"),this.ul.setAttribute("hidden",""),this.isOpened=!1,this.index=-1,this.status.setAttribute("hidden",""),this.input.setAttribute("aria-activedescendant",""),i.fire(this.input,"awesomplete-close",t||{}))},open:function(){this.input.setAttribute("aria-expanded","true"),this.ul.removeAttribute("hidden"),this.isOpened=!0,this.status.removeAttribute("hidden"),this.autoFirst&&-1===this.index&&this.goto(0),i.fire(this.input,"awesomplete-open")},destroy:function(){if(i.unbind(this.input,this._events.input),i.unbind(this.input.form,this._events.form),!this.options.container){var t=this.container.parentNode;t.insertBefore(this.input,this.container),t.removeChild(this.container)}this.input.removeAttribute("autocomplete"),this.input.removeAttribute("aria-autocomplete"),this.input.removeAttribute("aria-expanded"),this.input.removeAttribute("aria-controls"),this.input.removeAttribute("aria-owns"),this.input.removeAttribute("role");var n=e.all.indexOf(this);-1!==n&&e.all.splice(n,1)},next:function(){var t=this.ul.children.length;this.goto(this.index<t-1?this.index+1:t?0:-1)},previous:function(){var t=this.ul.children.length,e=this.index-1;this.goto(this.selected&&-1!==e?e:t-1)},goto:function(t){var e=this.ul.children;this.selected&&e[this.index].setAttribute("aria-selected","false"),this.index=t,t>-1&&e.length>0&&(e[t].setAttribute("aria-selected","true"),this.input.setAttribute("aria-activedescendant",this.ul.id+"_item_"+this.index),this.ul.scrollTop=e[t].offsetTop-this.ul.clientHeight+e[t].clientHeight,i.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(t,e,n){if(t?this.index=i.siblingIndex(t):t=this.ul.children[this.index],t){var r=this.suggestions[this.index];i.fire(this.input,"awesomplete-select",{text:r,origin:e||t,originalEvent:n})&&(this.replace(r),this.close({reason:"select"}),i.fire(this.input,"awesomplete-selectcomplete",{text:r,originalEvent:n}))}},evaluate:function(){var t=this,e=this.input.value;e.length>=this.minChars&&this._list&&this._list.length>0?(this.index=-1,this.ul.innerHTML="",this.suggestions=this._list.map(function(r){return new n(t.data(r,e))}).filter(function(n){return t.filter(n,e)}),!1!==this.sort&&(this.suggestions=this.suggestions.sort(this.sort)),this.suggestions=this.suggestions.slice(0,this.maxItems),this.suggestions.forEach(function(n,r){t.ul.appendChild(t.item(n,e,r))}),0===this.ul.children.length?(this.status.textContent=this.statusNoResults,this.close({reason:"nomatches"})):(this.input.setAttribute("aria-activedescendant",""),this.open(),this.status.textContent=this.statusXResults.replaceAll("{0}",this.ul.children.length))):(this.close({reason:"nomatches"}),this.minChar<=1||e.length>=this.minChars?this.status.textContent=this.statusNoResults:this.status.textContent=this.statusTypeXChar.replaceAll("{0}",this.minChars))}},e.all=[],e.FILTER_CONTAINS=function(t,e){return RegExp(i.regExpEscape(e.trim()),"i").test(t)},e.FILTER_STARTSWITH=function(t,e){return RegExp("^"+i.regExpEscape(e.trim()),"i").test(t)},e.SORT_BYLENGTH=function(t,e){return t.length!==e.length?t.length-e.length:t<e?-1:1},e.CONTAINER=function(t){return i.create("div",{className:"awesomplete",around:t})},e.ITEM=function(t,e,n){var r=""===e.trim()?t:t.replace(RegExp(i.regExpEscape(e.trim()),"gi"),"<mark>$&</mark>");return i.create("li",{innerHTML:r,role:"option","aria-selected":"false",tabindex:"-1",id:"awesomplete_list_"+this.count+"_item_"+n})},e.REPLACE=function(t){this.input.value=t.value},e.DATA=function(t){return t},Object.defineProperty(n.prototype=Object.create(String.prototype),"length",{get:function(){return this.label.length}}),n.prototype.toString=n.prototype.valueOf=function(){return""+this.label};var r=Array.prototype.slice;function i(t,e){return"string"==typeof t?(e||document).querySelector(t):t||null}function a(t,e){return r.call((e||document).querySelectorAll(t))}function o(){a("input.awesomplete").forEach(function(t){new e(t)})}i.create=function(t,e){var n=document.createElement(t);for(var r in e){var a=e[r];if("inside"===r)i(a).appendChild(n);else if("around"===r){var o=i(a);o.parentNode.insertBefore(n,o),n.appendChild(o),null!=o.getAttribute("autofocus")&&o.focus()}else r in n?n[r]=a:n.setAttribute(r,a)}return n},i.bind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.addEventListener(e,r)})}},i.unbind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.removeEventListener(e,r)})}},i.fire=function(t,e,n){var r=document.createEvent("HTMLEvents");for(var i in r.initEvent(e,!0,!0),n)r[i]=n[i];return t.dispatchEvent(r)},i.regExpEscape=function(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},i.siblingIndex=function(t){for(var e=0;t=t.previousElementSibling;e++);return e},"undefined"!=typeof self&&(self.Awesomplete=e),"undefined"!=typeof Document&&("loading"!==document.readyState?o():document.addEventListener("DOMContentLoaded",o)),e.$=i,e.$$=a,t.exports&&(t.exports=e)}()},5997(t,e,n){"use strict";n.d(e,{$n:()=>l,Ay:()=>c,C3:()=>s,Z$:()=>o,rA:()=>u});var r=n(6540);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==e);s=!0);}catch(t){u=!0,i=t}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(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)?a(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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function o(t){var e=i(r.useState(t.defaultStatus),2),n=e[0],a=e[1];return r.createElement("button",{className:"little-button-status",style:{backgroundColor:n?"var(--blue)":"var(--surfaceSecondary)"},onClick:function(){var e=!n;a(e),t.clickFun&&t.clickFun(e)}},t.text)}function l(t){return r.createElement("input",{className:"button button--block",type:"submit",value:t.text,onClick:t.clickFun})}function s(t){return r.createElement("input",{className:"button button--flat ",type:"button",value:t.text,onClick:t.clickFun})}function u(t){return r.createElement("div",{className:"action",title:t.title,onClick:t.onClick},r.createElement("i",{className:"material-icons icon",style:{color:!0===t.selected?"#2196f3":""}},t.icon),void 0!==t.tip&&r.createElement("div",{className:"actio_tip"},t.tip))}function c(t){var e=t.checked,n=t.defaultChecked,a=void 0!==n&&n,o=t.onChange,l=t.disabled,s=void 0!==l&&l,u=t.title,c=void 0===u?"":u,d=i((0,r.useState)(a),2),f=d[0],h=d[1],p=void 0!==e,m=p?e:f;return r.createElement("div",{className:"action",title:c},r.createElement("button",{onClick:function(){if(!s){var t=!m;p||h(t),null==o||o(t)}},disabled:s,style:{width:"3.5rem",height:"1.8rem",borderRadius:999,border:"none",cursor:s?"not-allowed":"pointer",background:m?"#4ade80":"#ccc",position:"relative",transition:"background 0.2s",padding:0,overflow:"hidden"}},r.createElement("span",{style:{position:"absolute",top:3,left:m?26:3,width:"1.5rem",height:"1.4rem",borderRadius:"50%",background:"#fff",transition:"left 0.2s",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"}})))}},5725(t,e,n){"use strict";n.d(e,{J:()=>m,NN:()=>C,Pu:()=>E,QM:()=>k,VP:()=>h,W1:()=>d,Y5:()=>v,Yh:()=>y,fI:()=>p,hJ:()=>_,jW:()=>S,n5:()=>b,qV:()=>g,rY:()=>A,xh:()=>f});var r=n(6540),i=n(4976),a=n(9165),o=(n(5997),n(4289));function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==e);s=!0);}catch(t){u=!0,i=t}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(t,e)||u(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){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||u(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 u(t,e){if(t){if("string"==typeof t)return c(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)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function d(t){var e=s(t.optionList).sort(function(t,e){var n,r;return(null!==(n=t.index)&&void 0!==n?n:0)-(null!==(r=e.index)&&void 0!==r?r:0)}),n=(0,o.A3)(t.optionList.map(function(t){return t.rto}));return r.createElement("div",{className:"dashboard"},r.createElement("div",{className:"menu not-select-div"},r.createElement("div",{className:"wrapper"},r.createElement("ul",null,e.map(function(t,e){return r.createElement(i.k2,{key:e,to:t.rto,end:"/"===t.rto,className:function(t){var r=t.isActive;return!1===n&&0===e&&(r=!0),r?"active-link":""}},function(i){var a=i.isActive;return!1===n&&0===e&&(a=!0),r.createElement("li",{className:a?"active":""},t.name)})})))),r.createElement("div",{className:" scroll-div-y "},r.createElement("div",{style:{padding:".5rem"}},r.createElement(a.default,{rtos:t.optionList.filter(function(t){return!!t}).map(function(t){return t.rto}),children:Array.isArray(t.children)?t.children.filter(function(t){return!!t}):[t.children.filter(function(t){return!!t})]}))))}function f(t){return r.createElement("div",{className:"dashboard"},t.children)}var h=function(t){return r.createElement("div",{className:"column",style:{width:t.widthPer?"".concat(t.widthPer,"%"):"50%"}},t.children)};function p(t){return r.createElement("div",{className:"row"},t.children)}function m(t){return r.createElement("div",{className:"row"},r.createElement(h,t,t.children))}function v(t){return r.createElement("div",{className:"self_win_center "},t.children)}function b(t){return r.createElement("div",{className:"flex"},t.children)}function y(t){return r.createElement("div",{className:"grid_three"},r.createElement("div",{className:"grid_three_item"},t.left),r.createElement("div",{className:"grid_three_item"},t.center),r.createElement("div",{className:"grid_three_item"},t.right))}function g(t){return r.createElement("div",{className:"show_data_text_div"},t.content)}function E(t){var e=(0,r.useRef)(null),n=l((0,r.useState)(!1),2),i=n[0],a=n[1],o=l((0,r.useState)({top:t.y,left:t.x}),2),s=o[0],u=o[1];return(0,r.useEffect)(function(){!function(){var t=e.current,n=window,r=n.innerWidth,i=n.innerHeight;if(t){var o=t.getBoundingClientRect(),l=s.top,c=s.left;o.right>r&&(c=r-o.width),o.left<0&&(c=0),o.bottom>i&&(l=i-o.height),o.top<0&&(l=0),u({top:l,left:c}),a(!0)}}()},[t]),r.createElement("div",{ref:e,style:{position:"fixed",top:"".concat(s.top,"px"),left:"".concat(s.left,"px"),padding:"5px",zIndex:1002,visibility:i?"visible":"hidden"}},r.createElement(x,{items:t.items,click:t.click,pre_value:t.pre_value}))}function w(t){var e=(0,r.useRef)(null),n=(0,r.useRef)(null),i=l((0,r.useState)(!1),2),a=i[0],o=i[1],s=l((0,r.useState)(0),2),u=s[0],c=s[1],d=function(){if(e.current&&n.current){var t=e.current.getBoundingClientRect(),r=n.current.getBoundingClientRect(),i=t.width;c(i);var a=window.innerWidth;r.right+i>a?o(!0):o(!1)}};(0,r.useEffect)(function(){return d(),window.addEventListener("resize",d),function(){window.removeEventListener("resize",d)}},[]);return r.createElement("div",{ref:e,className:"dropdown_item ".concat(void 0!==t.value&&t.value===t.pre_value?"dropdown_selected":""),onClick:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),t.click&&t.click(t.value,t.item)},onMouseEnter:function(){e.current&&n.current&&(n.current.style.display="block",d())},onMouseLeave:function(){n.current&&(n.current.style.display="none")}},t.context,t.c&&r.createElement("div",{className:"dropdown_item_children",ref:n,style:{position:"absolute",top:"-.5rem",right:a?u:void 0,left:a?void 0:u,display:"none"},onMouseEnter:function(){n.current.style.display="block"}},t.c))}function x(t){return r.createElement("div",{className:"dropdown"},t.items&&t.items.map(function(e,n){return r.createElement(w,{key:n,value:e.v,item:e,click:t.click,context:e.r,pre_value:t.pre_value,c:r.createElement(x,{items:e.items,click:t.click,pre_value:t.pre_value})})}))}function _(t){return r.createElement("div",{className:"overlay",onClick:t.click})}function A(t){return r.createElement("div",{className:"overlay_trans",onClick:t.click},t.children)}function k(t){return r.createElement("div",{className:"overlay_trans_container",onClick:t.click},r.createElement("div",{className:"overlay_trans_overlay "}),r.createElement("div",{className:"overlay_trans_content"},t.children))}function S(t){var e=t.isFull?"full_screen ":"not_screen ";return t.more&&(e+=" full_screen_more "),r.createElement("div",{className:e},t.children)}function C(t){return r.createElement("div",{className:"full_screen_context"},t.children)}},3033(t,e,n){"use strict";n.d(e,{$Z:()=>d,GL:()=>b,Sm:()=>h,U6:()=>v,cA:()=>p,l6:()=>m});var r=n(6540),i=n(5219),a=n.n(i);n(9145);function o(t){return o="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},o(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==e);s=!0);}catch(t){u=!0,i=t}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(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)?c(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 c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function d(t){var e=(0,r.useRef)(null),n=u(r.useState(""),2),i=n[0],a=n[1];return(0,r.useEffect)(function(){var n=t.value;null==n&&(n=""),e.current.value=n,a(t.value||"")},[t.value]),r.createElement("div",{id:"search",className:"",style:{maxWidth:t.max_width,display:t.not_mobile?"block":void 0}},r.createElement("div",{id:"input"},r.createElement("i",{className:"material-icons"},t.icon),r.createElement("input",{type:"text",ref:e,placeholder:i||t.placeholder,onChange:function(e){t.handleInputChange&&t.handleInputChange(e.target.value,e.target),a(e.target.value)},onKeyPress:function(e){"Enter"===e.key&&t.handleEnterPress&&t.handleEnterPress()}})))}function f(t){var e=(0,r.useRef)(null),n=u(r.useState(""),2),i=n[0],o=n[1],l=u(r.useState("input input--block awesomplete"),2),s=l[0],c=l[1];return(0,r.useEffect)(function(){o(null==t.value?"":t.value),t.focus&&e.current.focus(),t.no_border&&c("".concat(s," input--no_border awesomplete"))},[t.value]),(0,r.useEffect)(function(){if(null!=t.options&&e.current){var n,r=new(a())(e.current,{list:null!==(n=t.options)&&void 0!==n?n:[],minChars:0,autoFirst:!0});e.current.addEventListener("focus",function(){e.current.value="",e.current.dispatchEvent(new Event("input"))});var i=function(n){var r,i,a=null!==(r=n.text.label)&&void 0!==r?r:n.text.value,l=n.text.value;o(a),requestAnimationFrame(function(){e.current.value=a}),null===(i=t.handleInputChange)||void 0===i||i.call(t,l,e.current)};return e.current.addEventListener("awesomplete-selectcomplete",i),function(){var t;null===(t=e.current)||void 0===t||t.removeEventListener("awesomplete-selectcomplete",i),r.destroy()}}},[]),r.createElement(r.Fragment,null,t.placeholderOut&&r.createElement("p",null,t.placeholderOut),r.createElement("div",{style:{display:"flex",alignItems:"center",width:t.width,maxWidth:t.maxWidth}},t.left_placeholder&&r.createElement("div",{style:{flex:"0 0 auto"}},t.left_placeholder),r.createElement("input",{style:{flex:1,minWidth:0},onClick:function(t){t.stopPropagation()},disabled:!!t.disabled,className:s,type:t.type,placeholder:i||t.placeholder,onChange:function(e){t.handleInputChange&&t.handleInputChange(e.target.value,e.target),o(e.target.value)},onKeyPress:function(e){"Enter"===e.key&&t.handlerEnter&&t.handlerEnter(e.target.value)},value:i,ref:e}),t.right_placeholder&&r.createElement("div",{style:{flex:"0 0 auto"}},t.right_placeholder)))}function h(t){return f(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach(function(e){s(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},t))}function p(t){return f({placeholder:t.placeholder,type:"password",handleInputChange:t.handleInputChange,handlerEnter:t.handleEnterPress,maxWidth:t.maxWidth,width:t.width})}function m(t){return r.createElement("div",{style:{display:"flex"}},t.tip&&r.createElement("p",{className:"input input_left "},t.tip),r.createElement("select",{defaultValue:t.defaultValue,value:t.value,style:{width:t.width},disabled:!!t.disabled,className:"input input--block ".concat(t.no_border?"input--no_border":""),onChange:function(e){return t.onChange(e.target.value)}},t.options.map(function(t,e){return r.createElement("option",{key:e,value:t.value},t.title)})))}function v(t){var e;return r.createElement("div",{className:"input_radio_row"},r.createElement("input",{type:"radio",checked:t.selected,name:null!==(e=t.name)&&void 0!==e?e:"common_name",value:t.value,className:"input_radio",onChange:function(){t.onchange&&t.onchange(t.value)}}),t.context)}function b(t){var e,n=u((0,r.useState)(!1),2),i=n[0],a=n[1];return(0,r.useEffect)(function(){a(!!t.selected)},[t.selected]),r.createElement("div",{className:"input_radio_row"},r.createElement("input",{type:"checkbox",disabled:null!==(e=t.is_disable)&&void 0!==e&&e,checked:i,onChange:function(){t.onchange&&t.onchange()}}),t.context)}},9165(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(6540),i=n(7767);const a=function(t){return r.createElement(i.BV,null,t.children.map(function(e,n){return r.createElement(r.Fragment,{key:n},r.createElement(i.qh,{path:t.rtos[n],element:r.createElement(r.Suspense,{fallback:r.createElement("div",null)},e," ")}))}),"( ",r.createElement(i.qh,{path:"/",element:t.children[0]}),")")}},2542(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>E});var r=n(6540),i=n(7444),a=n(3033),o=n(5997),l=n(7767),s=n(4284),u=n(6417),c=n(5725),d=n(2389),f=n(7523),h=n(2042),p=n(1469);function m(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function a(n,r,i,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return v(u,"_invoke",function(n,r,i){var a,l,s,u=0,c=i||[],d=!1,f={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return a=e,l=0,s=t,f.n=n,o}};function h(n,r){for(l=n,s=r,e=0;!d&&u&&!i&&e<c.length;e++){var i,a=c[e],h=f.p,p=a[2];n>3?(i=p===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=t):a[0]<=h&&((i=n<2&&h<a[1])?(l=0,f.v=r,f.n=a[1]):h<p&&(i=n<3||a[0]>r||r>p)&&(a[4]=n,a[5]=r,f.n=p,l=0))}if(i||n>1)return o;throw d=!0,r}return function(i,c,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&h(c,p),l=c,s=p;(e=l<2?t:s)||!d;){a||(l?l<3?(l>1&&(f.n=-1),h(l,s)):f.n=s:f.v=s);try{if(u=2,a){if(l||(i="next"),e=a[i]){if(!(e=e.call(a,s)))throw TypeError("iterator result is not an object");if(!e.done)return e;s=e.value,l<2&&(l=0)}else 1===l&&(e=a.return)&&e.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),l=1);a=t}else if((e=(d=f.n<0)?s:n.call(r,f))!==o)break}catch(e){a=t,l=1,s=e}finally{u=1}}return{value:e,done:d}}}(n,i,a),!0),u}var o={};function l(){}function s(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(v(e={},r,function(){return this}),e),d=u.prototype=l.prototype=Object.create(c);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,v(t,i,"GeneratorFunction")),t.prototype=Object.create(d),t}return s.prototype=u,v(d,"constructor",u),v(u,"constructor",s),s.displayName="GeneratorFunction",v(u,i,"GeneratorFunction"),v(d),v(d,i,"Generator"),v(d,r,function(){return this}),v(d,"toString",function(){return"[object Generator]"}),(m=function(){return{w:a,m:f}})()}function v(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}v=function(t,e,n,r){function a(e,n){v(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(a("next",0),a("throw",1),a("return",2))},v(t,e,n,r)}function b(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(t){return void n(t)}l.done?e(s):Promise.resolve(s).then(r,i)}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==e);s=!0);}catch(t){u=!0,i=t}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return g(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)?g(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 g(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}p.m.init();const E=function(){var t,e=(0,l.Zp)(),n=y((0,r.useState)(""),2),v=n[0],g=n[1],E=y((0,r.useState)(""),2),w=E[0],x=E[1],_=(0,r.useContext)(f.F).initUserInfo,A=y((0,i.L4)(u.A.custom_fun_opt),2),k=(A[0],A[1]),S=(0,d.Bd)().t;function C(){return N.apply(this,arguments)}function N(){var t;return t=m().m(function t(){var n,r;return m().w(function(t){for(;;)switch(t.n){case 0:return n={username:v,password:w},t.n=1,s.wm.post("login",n,!1);case 1:0===(r=t.v).code?(localStorage.setItem("token",r.data),_(),k(""),e("/file")):(0,h.zN)(r.message);case 2:return t.a(2)}},t)}),N=function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(t){b(a,r,i,o,l,"next",t)}function l(t){b(a,r,i,o,l,"throw",t)}o(void 0)})},N.apply(this,arguments)}return(0,r.useEffect)(function(){localStorage.getItem("token")&&e("/file")},[]),r.createElement(c.Y5,null,r.createElement("h1",null,null!==(t=p.m.web_site_title)&&void 0!==t?t:"FileCat"),r.createElement("div",{className:"self_win_center_content"},r.createElement(a.Sm,{placeholder:S("账号"),handleInputChange:function(t){g(t)}}),r.createElement(a.cA,{placeholder:S("密码"),handleInputChange:function(t){x(t)},handleEnterPress:C}),r.createElement(o.$n,{text:S("登录"),clickFun:C})))}},1028(t,e,n){"use strict";n.d(e,{A:()=>l});var r=n(1601),i=n.n(r),a=n(6314),o=n.n(a)()(i());o.push([t.id,'.awesomplete [hidden] {\n display: none;\n}\n\n.awesomplete .visually-hidden {\n position: absolute;\n clip: rect(0, 0, 0, 0);\n}\n\n.awesomplete {\n display: inline-block;\n position: relative;\n}\n\n.awesomplete > input {\n display: block;\n}\n\n.awesomplete > ul {\n position: absolute;\n left: 0;\n z-index: 1;\n min-width: 100%;\n box-sizing: border-box;\n list-style: none;\n padding: 0;\n margin: 0;\n background: #fff;\n}\n\n.awesomplete > ul:empty {\n display: none;\n}\n\n.awesomplete > ul {\n\tborder-radius: .3em;\n\tmargin: .2em 0 0;\n\tbackground: hsla(0,0%,100%,.9);\n\tbackground: linear-gradient(to bottom right, white, hsla(0,0%,100%,.8));\n\tborder: 1px solid rgba(0,0,0,.3);\n\tbox-shadow: .05em .2em .6em rgba(0,0,0,.2);\n\ttext-shadow: none;\n}\n\n@supports (transform: scale(0)) {\n\t.awesomplete > ul {\n\t\ttransition: .3s cubic-bezier(.4,.2,.5,1.4);\n\t\ttransform-origin: 1.43em -.43em;\n\t}\n\t\n\t.awesomplete > ul[hidden],\n\t.awesomplete > ul:empty {\n\t\topacity: 0;\n\t\ttransform: scale(0);\n\t\tdisplay: block;\n\t\tvisibility: hidden;\n\t\ttransition-timing-function: ease;\n\t}\n}\n\n\t/* Pointer */\n\t.awesomplete > ul:before {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t\ttop: -.43em;\n\t\tleft: 1em;\n\t\twidth: 0; height: 0;\n\t\tpadding: .4em;\n\t\tbackground: white;\n\t\tborder: inherit;\n\t\tborder-right: 0;\n\t\tborder-bottom: 0;\n\t\t-webkit-transform: rotate(45deg);\n\t\ttransform: rotate(45deg);\n\t}\n\n\t.awesomplete > ul > li {\n\t\tposition: relative;\n\t\tpadding: .2em .5em;\n\t\tcursor: pointer;\n\t}\n\t\n\t.awesomplete > ul > li:hover {\n\t\tbackground: hsl(200, 40%, 80%);\n\t\tcolor: black;\n\t}\n\t\n\t.awesomplete > ul > li[aria-selected="true"] {\n\t\tbackground: hsl(205, 40%, 40%);\n\t\tcolor: white;\n\t}\n\t\n\t\t.awesomplete mark {\n\t\t\tbackground: hsl(65, 100%, 50%);\n\t\t}\n\t\t\n\t\t.awesomplete li:hover mark {\n\t\t\tbackground: hsl(68, 100%, 41%);\n\t\t}\n\t\t\n\t\t.awesomplete li[aria-selected="true"] mark {\n\t\t\tbackground: hsl(86, 100%, 21%);\n\t\t\tcolor: inherit;\n\t\t}\n',""]);const l=o},9145(t,e,n){"use strict";var r=n(5072),i=n.n(r),a=n(7825),o=n.n(a),l=n(7659),s=n.n(l),u=n(5056),c=n.n(u),d=n(540),f=n.n(d),h=n(1113),p=n.n(h),m=n(1028),v={};v.styleTagTransform=p(),v.setAttributes=c(),v.insert=s().bind(null,"head"),v.domAPI=o(),v.insertStyleElement=f();i()(m.A,v),m.A&&m.A.locals&&m.A.locals}}]);
|
|
1
|
+
/*! For license information please see 542.74877c7e220236dfb551.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[165,542,627],{5219(t){!function(){var e=function(t,n){var r=this;e.count=(e.count||0)+1,this.count=e.count,this.isOpened=!1,this.input=i(t),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-autocomplete","list"),this.input.setAttribute("aria-expanded","false"),this.input.setAttribute("aria-controls","awesomplete_list_"+this.count),this.input.setAttribute("aria-owns","awesomplete_list_"+this.count),this.input.setAttribute("role","combobox"),this.options=n=n||{},function(t,e,n){for(var r in e){var i=e[r],a=t.input.getAttribute("data-"+r.toLowerCase());t[r]="number"==typeof i?parseInt(a):!1===i?null!==a:i instanceof Function?null:a,t[r]||0===t[r]||(t[r]=r in n?n[r]:i)}}(this,{minChars:2,maxItems:10,autoFirst:!1,data:e.DATA,filter:e.FILTER_CONTAINS,sort:!1!==n.sort&&e.SORT_BYLENGTH,container:e.CONTAINER,item:e.ITEM,replace:e.REPLACE,tabSelect:!1,listLabel:"Results List",statusNoResults:"No results found",statusXResults:"{0} results found",statusTypeXChar:"Type {0} or more characters for results"},n),this.index=-1,this.container=this.container(t),this.ul=i.create("ul",{hidden:"hidden",role:"listbox",id:"awesomplete_list_"+this.count,inside:this.container,"aria-label":this.listLabel}),this.status=i.create("span",{className:"visually-hidden",role:"status","aria-live":"assertive","aria-atomic":!0,inside:this.container,textContent:""}),this._events={input:{input:this.evaluate.bind(this),blur:this.close.bind(this,{reason:"blur"}),keydown:function(t){var e=t.keyCode;r.opened&&(13===e&&r.selected||9===e&&r.selected&&r.tabSelect?(t.preventDefault(),r.select(void 0,void 0,t)):27===e?r.close({reason:"esc"}):38!==e&&40!==e||(t.preventDefault(),r[38===e?"previous":"next"]()))}},form:{submit:this.close.bind(this,{reason:"submit"})},ul:{mousedown:function(t){t.preventDefault()},click:function(t){var e=t.target;if(e!==this){for(;e&&!/li/i.test(e.nodeName);)e=e.parentNode;e&&0===t.button&&(t.preventDefault(),r.select(e,t.target,t))}}}},i.bind(this.input,this._events.input),i.bind(this.input.form,this._events.form),i.bind(this.ul,this._events.ul),this.input.hasAttribute("list")?(this.list="#"+this.input.getAttribute("list"),this.input.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||n.list||[],e.all.push(this)};function n(t){var e=Array.isArray(t)?{label:t[0],value:t[1]}:"object"==typeof t&&"label"in t&&"value"in t?t:{label:t,value:t};this.label=e.label||e.value,this.value=e.value}e.prototype={set list(t){if(Array.isArray(t))this._list=t;else if("string"==typeof t&&t.indexOf(",")>-1)this._list=t.split(/\s*,\s*/);else if((t=i(t))&&t.children){var e=[];r.apply(t.children).forEach(function(t){if(!t.disabled){var n=t.textContent.trim(),r=t.value||n,i=t.label||n;""!==r&&e.push({label:i,value:r})}}),this._list=e}document.activeElement===this.input&&this.evaluate()},get selected(){return this.index>-1},get opened(){return this.isOpened},close:function(t){this.opened&&(this.input.setAttribute("aria-expanded","false"),this.ul.setAttribute("hidden",""),this.isOpened=!1,this.index=-1,this.status.setAttribute("hidden",""),this.input.setAttribute("aria-activedescendant",""),i.fire(this.input,"awesomplete-close",t||{}))},open:function(){this.input.setAttribute("aria-expanded","true"),this.ul.removeAttribute("hidden"),this.isOpened=!0,this.status.removeAttribute("hidden"),this.autoFirst&&-1===this.index&&this.goto(0),i.fire(this.input,"awesomplete-open")},destroy:function(){if(i.unbind(this.input,this._events.input),i.unbind(this.input.form,this._events.form),!this.options.container){var t=this.container.parentNode;t.insertBefore(this.input,this.container),t.removeChild(this.container)}this.input.removeAttribute("autocomplete"),this.input.removeAttribute("aria-autocomplete"),this.input.removeAttribute("aria-expanded"),this.input.removeAttribute("aria-controls"),this.input.removeAttribute("aria-owns"),this.input.removeAttribute("role");var n=e.all.indexOf(this);-1!==n&&e.all.splice(n,1)},next:function(){var t=this.ul.children.length;this.goto(this.index<t-1?this.index+1:t?0:-1)},previous:function(){var t=this.ul.children.length,e=this.index-1;this.goto(this.selected&&-1!==e?e:t-1)},goto:function(t){var e=this.ul.children;this.selected&&e[this.index].setAttribute("aria-selected","false"),this.index=t,t>-1&&e.length>0&&(e[t].setAttribute("aria-selected","true"),this.input.setAttribute("aria-activedescendant",this.ul.id+"_item_"+this.index),this.ul.scrollTop=e[t].offsetTop-this.ul.clientHeight+e[t].clientHeight,i.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(t,e,n){if(t?this.index=i.siblingIndex(t):t=this.ul.children[this.index],t){var r=this.suggestions[this.index];i.fire(this.input,"awesomplete-select",{text:r,origin:e||t,originalEvent:n})&&(this.replace(r),this.close({reason:"select"}),i.fire(this.input,"awesomplete-selectcomplete",{text:r,originalEvent:n}))}},evaluate:function(){var t=this,e=this.input.value;e.length>=this.minChars&&this._list&&this._list.length>0?(this.index=-1,this.ul.innerHTML="",this.suggestions=this._list.map(function(r){return new n(t.data(r,e))}).filter(function(n){return t.filter(n,e)}),!1!==this.sort&&(this.suggestions=this.suggestions.sort(this.sort)),this.suggestions=this.suggestions.slice(0,this.maxItems),this.suggestions.forEach(function(n,r){t.ul.appendChild(t.item(n,e,r))}),0===this.ul.children.length?(this.status.textContent=this.statusNoResults,this.close({reason:"nomatches"})):(this.input.setAttribute("aria-activedescendant",""),this.open(),this.status.textContent=this.statusXResults.replaceAll("{0}",this.ul.children.length))):(this.close({reason:"nomatches"}),this.minChar<=1||e.length>=this.minChars?this.status.textContent=this.statusNoResults:this.status.textContent=this.statusTypeXChar.replaceAll("{0}",this.minChars))}},e.all=[],e.FILTER_CONTAINS=function(t,e){return RegExp(i.regExpEscape(e.trim()),"i").test(t)},e.FILTER_STARTSWITH=function(t,e){return RegExp("^"+i.regExpEscape(e.trim()),"i").test(t)},e.SORT_BYLENGTH=function(t,e){return t.length!==e.length?t.length-e.length:t<e?-1:1},e.CONTAINER=function(t){return i.create("div",{className:"awesomplete",around:t})},e.ITEM=function(t,e,n){var r=""===e.trim()?t:t.replace(RegExp(i.regExpEscape(e.trim()),"gi"),"<mark>$&</mark>");return i.create("li",{innerHTML:r,role:"option","aria-selected":"false",tabindex:"-1",id:"awesomplete_list_"+this.count+"_item_"+n})},e.REPLACE=function(t){this.input.value=t.value},e.DATA=function(t){return t},Object.defineProperty(n.prototype=Object.create(String.prototype),"length",{get:function(){return this.label.length}}),n.prototype.toString=n.prototype.valueOf=function(){return""+this.label};var r=Array.prototype.slice;function i(t,e){return"string"==typeof t?(e||document).querySelector(t):t||null}function a(t,e){return r.call((e||document).querySelectorAll(t))}function o(){a("input.awesomplete").forEach(function(t){new e(t)})}i.create=function(t,e){var n=document.createElement(t);for(var r in e){var a=e[r];if("inside"===r)i(a).appendChild(n);else if("around"===r){var o=i(a);o.parentNode.insertBefore(n,o),n.appendChild(o),null!=o.getAttribute("autofocus")&&o.focus()}else r in n?n[r]=a:n.setAttribute(r,a)}return n},i.bind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.addEventListener(e,r)})}},i.unbind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.removeEventListener(e,r)})}},i.fire=function(t,e,n){var r=document.createEvent("HTMLEvents");for(var i in r.initEvent(e,!0,!0),n)r[i]=n[i];return t.dispatchEvent(r)},i.regExpEscape=function(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},i.siblingIndex=function(t){for(var e=0;t=t.previousElementSibling;e++);return e},"undefined"!=typeof self&&(self.Awesomplete=e),"undefined"!=typeof Document&&("loading"!==document.readyState?o():document.addEventListener("DOMContentLoaded",o)),e.$=i,e.$$=a,t.exports&&(t.exports=e)}()},5997(t,e,n){"use strict";n.d(e,{$n:()=>l,Ay:()=>c,C3:()=>s,Z$:()=>o,rA:()=>u});var r=n(6540);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==e);s=!0);}catch(t){u=!0,i=t}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(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)?a(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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function o(t){var e=i(r.useState(t.defaultStatus),2),n=e[0],a=e[1];return r.createElement("button",{className:"little-button-status",style:{backgroundColor:n?"var(--blue)":"var(--surfaceSecondary)"},onClick:function(){var e=!n;a(e),t.clickFun&&t.clickFun(e)}},t.text)}function l(t){return r.createElement("input",{className:"button button--block",type:"submit",value:t.text,onClick:t.clickFun})}function s(t){return r.createElement("input",{className:"button button--flat ",type:"button",value:t.text,onClick:t.clickFun})}function u(t){return r.createElement("div",{className:"action",title:t.title,onClick:t.onClick},r.createElement("i",{className:"material-icons icon",style:{color:!0===t.selected?"#2196f3":""}},t.icon),void 0!==t.tip&&r.createElement("div",{className:"actio_tip"},t.tip))}function c(t){var e=t.checked,n=t.defaultChecked,a=void 0!==n&&n,o=t.onChange,l=t.disabled,s=void 0!==l&&l,u=t.title,c=void 0===u?"":u,d=i((0,r.useState)(a),2),f=d[0],h=d[1],p=void 0!==e,m=p?e:f;return r.createElement("div",{className:"action",title:c},r.createElement("button",{onClick:function(){if(!s){var t=!m;p||h(t),null==o||o(t)}},disabled:s,style:{width:"3.5rem",height:"1.8rem",borderRadius:999,border:"none",cursor:s?"not-allowed":"pointer",background:m?"#4ade80":"#ccc",position:"relative",transition:"background 0.2s",padding:0,overflow:"hidden"}},r.createElement("span",{style:{position:"absolute",top:3,left:m?26:3,width:"1.5rem",height:"1.4rem",borderRadius:"50%",background:"#fff",transition:"left 0.2s",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"}})))}},5725(t,e,n){"use strict";n.d(e,{J:()=>m,NN:()=>C,Pu:()=>E,QM:()=>k,VP:()=>h,W1:()=>d,Y5:()=>v,Yh:()=>y,fI:()=>p,hJ:()=>_,jW:()=>S,n5:()=>b,qV:()=>g,rY:()=>A,xh:()=>f});var r=n(6540),i=n(4976),a=n(9165),o=(n(5997),n(4289));function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==e);s=!0);}catch(t){u=!0,i=t}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(t,e)||u(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){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||u(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 u(t,e){if(t){if("string"==typeof t)return c(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)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function d(t){var e=s(t.optionList).sort(function(t,e){var n,r;return(null!==(n=t.index)&&void 0!==n?n:0)-(null!==(r=e.index)&&void 0!==r?r:0)}),n=(0,o.A3)(t.optionList.map(function(t){return t.rto}));return r.createElement("div",{className:"dashboard"},r.createElement("div",{className:"menu not-select-div"},r.createElement("div",{className:"wrapper"},r.createElement("ul",null,e.map(function(t,e){return r.createElement(i.k2,{key:e,to:t.rto,end:"/"===t.rto,className:function(t){var r=t.isActive;return!1===n&&0===e&&(r=!0),r?"active-link":""}},function(i){var a=i.isActive;return!1===n&&0===e&&(a=!0),r.createElement("li",{className:a?"active":""},t.name)})})))),r.createElement("div",{className:" scroll-div-y "},r.createElement("div",{style:{padding:".5rem"}},r.createElement(a.default,{rtos:t.optionList.filter(function(t){return!!t}).map(function(t){return t.rto}),children:Array.isArray(t.children)?t.children.filter(function(t){return!!t}):[t.children.filter(function(t){return!!t})]}))))}function f(t){return r.createElement("div",{className:"dashboard"},t.children)}var h=function(t){return r.createElement("div",{className:"column",style:{width:t.widthPer?"".concat(t.widthPer,"%"):"50%"}},t.children)};function p(t){return r.createElement("div",{className:"row"},t.children)}function m(t){return r.createElement("div",{className:"row"},r.createElement(h,t,t.children))}function v(t){return r.createElement("div",{className:"self_win_center "},t.children)}function b(t){return r.createElement("div",{className:"flex"},t.children)}function y(t){return r.createElement("div",{className:"grid_three"},r.createElement("div",{className:"grid_three_item"},t.left),r.createElement("div",{className:"grid_three_item"},t.center),r.createElement("div",{className:"grid_three_item"},t.right))}function g(t){return r.createElement("div",{className:"show_data_text_div"},t.content)}function E(t){var e=(0,r.useRef)(null),n=l((0,r.useState)(!1),2),i=n[0],a=n[1],o=l((0,r.useState)({top:t.y,left:t.x}),2),s=o[0],u=o[1];return(0,r.useEffect)(function(){!function(){var t=e.current,n=window,r=n.innerWidth,i=n.innerHeight;if(t){var o=t.getBoundingClientRect(),l=s.top,c=s.left;o.right>r&&(c=r-o.width),o.left<0&&(c=0),o.bottom>i&&(l=i-o.height),o.top<0&&(l=0),u({top:l,left:c}),a(!0)}}()},[t]),r.createElement("div",{ref:e,style:{position:"fixed",top:"".concat(s.top,"px"),left:"".concat(s.left,"px"),padding:"5px",zIndex:1002,visibility:i?"visible":"hidden"}},r.createElement(x,{items:t.items,click:t.click,pre_value:t.pre_value}))}function w(t){var e=(0,r.useRef)(null),n=(0,r.useRef)(null),i=l((0,r.useState)(!1),2),a=i[0],o=i[1],s=l((0,r.useState)(0),2),u=s[0],c=s[1],d=function(){if(e.current&&n.current){var t=e.current.getBoundingClientRect(),r=n.current.getBoundingClientRect(),i=t.width;c(i);var a=window.innerWidth;r.right+i>a?o(!0):o(!1)}};(0,r.useEffect)(function(){return d(),window.addEventListener("resize",d),function(){window.removeEventListener("resize",d)}},[]);return r.createElement("div",{ref:e,className:"dropdown_item ".concat(void 0!==t.value&&t.value===t.pre_value?"dropdown_selected":""),onClick:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),t.click&&t.click(t.value,t.item)},onMouseEnter:function(){e.current&&n.current&&(n.current.style.display="block",d())},onMouseLeave:function(){n.current&&(n.current.style.display="none")}},t.context,t.c&&r.createElement("div",{className:"dropdown_item_children",ref:n,style:{position:"absolute",top:"-.5rem",right:a?u:void 0,left:a?void 0:u,display:"none"},onMouseEnter:function(){n.current.style.display="block"}},t.c))}function x(t){return r.createElement("div",{className:"dropdown"},t.items&&t.items.map(function(e,n){return r.createElement(w,{key:n,value:e.v,item:e,click:t.click,context:e.r,pre_value:t.pre_value,c:r.createElement(x,{items:e.items,click:t.click,pre_value:t.pre_value})})}))}function _(t){return r.createElement("div",{className:"overlay",onClick:t.click})}function A(t){return r.createElement("div",{className:"overlay_trans",onClick:t.click},t.children)}function k(t){return r.createElement("div",{className:"overlay_trans_container",onClick:t.click},r.createElement("div",{className:"overlay_trans_overlay "}),r.createElement("div",{className:"overlay_trans_content"},t.children))}function S(t){var e=t.isFull?"full_screen ":"not_screen ";return t.more&&(e+=" full_screen_more "),r.createElement("div",{className:e},t.children)}function C(t){return r.createElement("div",{className:"full_screen_context"},t.children)}},3033(t,e,n){"use strict";n.d(e,{$Z:()=>d,GL:()=>b,Sm:()=>h,U6:()=>v,cA:()=>p,l6:()=>m});var r=n(6540),i=n(5219),a=n.n(i);n(9145);function o(t){return o="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},o(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==e);s=!0);}catch(t){u=!0,i=t}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(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)?c(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 c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function d(t){var e=(0,r.useRef)(null),n=u(r.useState(""),2),i=n[0],a=n[1];return(0,r.useEffect)(function(){var n=t.value;null==n&&(n=""),e.current.value=n,a(t.value||"")},[t.value]),r.createElement("div",{id:"search",className:"",style:{maxWidth:t.max_width,display:t.not_mobile?"block":void 0}},r.createElement("div",{id:"input"},r.createElement("i",{className:"material-icons"},t.icon),r.createElement("input",{type:"text",ref:e,placeholder:i||t.placeholder,onChange:function(e){t.handleInputChange&&t.handleInputChange(e.target.value,e.target),a(e.target.value)},onKeyPress:function(e){"Enter"===e.key&&t.handleEnterPress&&t.handleEnterPress()}})))}function f(t){var e=(0,r.useRef)(null),n=u(r.useState(""),2),i=n[0],o=n[1],l=u(r.useState("input input--block awesomplete"),2),s=l[0],c=l[1];return(0,r.useEffect)(function(){o(null==t.value?"":t.value),t.focus&&e.current.focus(),t.no_border&&c("".concat(s," input--no_border awesomplete"))},[t.value]),(0,r.useEffect)(function(){if(null!=t.options&&e.current){var n,r=new(a())(e.current,{list:null!==(n=t.options)&&void 0!==n?n:[],minChars:0,autoFirst:!0});e.current.addEventListener("focus",function(){e.current.value="",e.current.dispatchEvent(new Event("input"))});var i=function(n){var r,i,a=null!==(r=n.text.label)&&void 0!==r?r:n.text.value,l=n.text.value;o(a),requestAnimationFrame(function(){e.current.value=a}),null===(i=t.handleInputChange)||void 0===i||i.call(t,l,e.current)};return e.current.addEventListener("awesomplete-selectcomplete",i),function(){var t;null===(t=e.current)||void 0===t||t.removeEventListener("awesomplete-selectcomplete",i),r.destroy()}}},[]),r.createElement(r.Fragment,null,t.placeholderOut&&r.createElement("p",null,t.placeholderOut),r.createElement("div",{style:{display:"flex",alignItems:"center",width:t.width,maxWidth:t.maxWidth}},t.left_placeholder&&r.createElement("div",{style:{flex:"0 0 auto"}},t.left_placeholder),r.createElement("input",{style:{flex:1,minWidth:0},onClick:function(t){t.stopPropagation()},disabled:!!t.disabled,className:s,type:t.type,placeholder:i||t.placeholder,onChange:function(e){t.handleInputChange&&t.handleInputChange(e.target.value,e.target),o(e.target.value)},onKeyPress:function(e){"Enter"===e.key&&t.handlerEnter&&t.handlerEnter(e.target.value)},value:i,ref:e}),t.right_placeholder&&r.createElement("div",{style:{flex:"0 0 auto"}},t.right_placeholder)))}function h(t){return f(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach(function(e){s(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},t))}function p(t){return f({placeholder:t.placeholder,type:"password",handleInputChange:t.handleInputChange,handlerEnter:t.handleEnterPress,maxWidth:t.maxWidth,width:t.width,value:t.value})}function m(t){return r.createElement("div",{style:{display:"flex"}},t.tip&&r.createElement("p",{className:"input input_left "},t.tip),r.createElement("select",{defaultValue:t.defaultValue,value:t.value,style:{width:t.width},disabled:!!t.disabled,className:"input input--block ".concat(t.no_border?"input--no_border":""),onChange:function(e){return t.onChange(e.target.value)}},t.options.map(function(t,e){return r.createElement("option",{key:e,value:t.value},t.title)})))}function v(t){var e;return r.createElement("div",{className:"input_radio_row"},r.createElement("input",{type:"radio",checked:t.selected,name:null!==(e=t.name)&&void 0!==e?e:"common_name",value:t.value,className:"input_radio",onChange:function(){t.onchange&&t.onchange(t.value)}}),t.context)}function b(t){var e,n=u((0,r.useState)(!1),2),i=n[0],a=n[1];return(0,r.useEffect)(function(){a(!!t.selected)},[t.selected]),r.createElement("div",{className:"input_radio_row"},r.createElement("input",{type:"checkbox",disabled:null!==(e=t.is_disable)&&void 0!==e&&e,checked:i,onChange:function(){t.onchange&&t.onchange()}}),t.context)}},9165(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>a});var r=n(6540),i=n(7767);const a=function(t){return r.createElement(i.BV,null,t.children.map(function(e,n){return r.createElement(r.Fragment,{key:n},r.createElement(i.qh,{path:t.rtos[n],element:r.createElement(r.Suspense,{fallback:r.createElement("div",null)},e," ")}))}),"( ",r.createElement(i.qh,{path:"/",element:t.children[0]}),")")}},2542(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>E});var r=n(6540),i=n(7444),a=n(3033),o=n(5997),l=n(7767),s=n(4284),u=n(6417),c=n(5725),d=n(2389),f=n(7523),h=n(2042),p=n(1469);function m(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function a(n,r,i,a){var s=r&&r.prototype instanceof l?r:l,u=Object.create(s.prototype);return v(u,"_invoke",function(n,r,i){var a,l,s,u=0,c=i||[],d=!1,f={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return a=e,l=0,s=t,f.n=n,o}};function h(n,r){for(l=n,s=r,e=0;!d&&u&&!i&&e<c.length;e++){var i,a=c[e],h=f.p,p=a[2];n>3?(i=p===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=t):a[0]<=h&&((i=n<2&&h<a[1])?(l=0,f.v=r,f.n=a[1]):h<p&&(i=n<3||a[0]>r||r>p)&&(a[4]=n,a[5]=r,f.n=p,l=0))}if(i||n>1)return o;throw d=!0,r}return function(i,c,p){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&h(c,p),l=c,s=p;(e=l<2?t:s)||!d;){a||(l?l<3?(l>1&&(f.n=-1),h(l,s)):f.n=s:f.v=s);try{if(u=2,a){if(l||(i="next"),e=a[i]){if(!(e=e.call(a,s)))throw TypeError("iterator result is not an object");if(!e.done)return e;s=e.value,l<2&&(l=0)}else 1===l&&(e=a.return)&&e.call(a),l<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),l=1);a=t}else if((e=(d=f.n<0)?s:n.call(r,f))!==o)break}catch(e){a=t,l=1,s=e}finally{u=1}}return{value:e,done:d}}}(n,i,a),!0),u}var o={};function l(){}function s(){}function u(){}e=Object.getPrototypeOf;var c=[][r]?e(e([][r]())):(v(e={},r,function(){return this}),e),d=u.prototype=l.prototype=Object.create(c);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,v(t,i,"GeneratorFunction")),t.prototype=Object.create(d),t}return s.prototype=u,v(d,"constructor",u),v(u,"constructor",s),s.displayName="GeneratorFunction",v(u,i,"GeneratorFunction"),v(d),v(d,i,"Generator"),v(d,r,function(){return this}),v(d,"toString",function(){return"[object Generator]"}),(m=function(){return{w:a,m:f}})()}function v(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}v=function(t,e,n,r){function a(e,n){v(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(a("next",0),a("throw",1),a("return",2))},v(t,e,n,r)}function b(t,e,n,r,i,a,o){try{var l=t[a](o),s=l.value}catch(t){return void n(t)}l.done?e(s):Promise.resolve(s).then(r,i)}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==e);s=!0);}catch(t){u=!0,i=t}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return g(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)?g(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 g(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}p.m.init();const E=function(){var t,e=(0,l.Zp)(),n=y((0,r.useState)(""),2),v=n[0],g=n[1],E=y((0,r.useState)(""),2),w=E[0],x=E[1],_=(0,r.useContext)(f.F).initUserInfo,A=y((0,i.L4)(u.A.custom_fun_opt),2),k=(A[0],A[1]),S=(0,d.Bd)().t;function C(){return N.apply(this,arguments)}function N(){var t;return t=m().m(function t(){var n,r;return m().w(function(t){for(;;)switch(t.n){case 0:return n={username:v,password:w},t.n=1,s.wm.post("login",n,!1);case 1:0===(r=t.v).code?(localStorage.setItem("token",r.data),_(),k(""),e("/file")):(0,h.zN)(r.message);case 2:return t.a(2)}},t)}),N=function(){var e=this,n=arguments;return new Promise(function(r,i){var a=t.apply(e,n);function o(t){b(a,r,i,o,l,"next",t)}function l(t){b(a,r,i,o,l,"throw",t)}o(void 0)})},N.apply(this,arguments)}return(0,r.useEffect)(function(){localStorage.getItem("token")&&e("/file")},[]),r.createElement(c.Y5,null,r.createElement("h1",null,null!==(t=p.m.web_site_title)&&void 0!==t?t:"FileCat"),r.createElement("div",{className:"self_win_center_content"},r.createElement(a.Sm,{placeholder:S("账号"),handleInputChange:function(t){g(t)}}),r.createElement(a.cA,{placeholder:S("密码"),handleInputChange:function(t){x(t)},handleEnterPress:C}),r.createElement(o.$n,{text:S("登录"),clickFun:C})))}},1028(t,e,n){"use strict";n.d(e,{A:()=>l});var r=n(1601),i=n.n(r),a=n(6314),o=n.n(a)()(i());o.push([t.id,'.awesomplete [hidden] {\n display: none;\n}\n\n.awesomplete .visually-hidden {\n position: absolute;\n clip: rect(0, 0, 0, 0);\n}\n\n.awesomplete {\n display: inline-block;\n position: relative;\n}\n\n.awesomplete > input {\n display: block;\n}\n\n.awesomplete > ul {\n position: absolute;\n left: 0;\n z-index: 1;\n min-width: 100%;\n box-sizing: border-box;\n list-style: none;\n padding: 0;\n margin: 0;\n background: #fff;\n}\n\n.awesomplete > ul:empty {\n display: none;\n}\n\n.awesomplete > ul {\n\tborder-radius: .3em;\n\tmargin: .2em 0 0;\n\tbackground: hsla(0,0%,100%,.9);\n\tbackground: linear-gradient(to bottom right, white, hsla(0,0%,100%,.8));\n\tborder: 1px solid rgba(0,0,0,.3);\n\tbox-shadow: .05em .2em .6em rgba(0,0,0,.2);\n\ttext-shadow: none;\n}\n\n@supports (transform: scale(0)) {\n\t.awesomplete > ul {\n\t\ttransition: .3s cubic-bezier(.4,.2,.5,1.4);\n\t\ttransform-origin: 1.43em -.43em;\n\t}\n\t\n\t.awesomplete > ul[hidden],\n\t.awesomplete > ul:empty {\n\t\topacity: 0;\n\t\ttransform: scale(0);\n\t\tdisplay: block;\n\t\tvisibility: hidden;\n\t\ttransition-timing-function: ease;\n\t}\n}\n\n\t/* Pointer */\n\t.awesomplete > ul:before {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t\ttop: -.43em;\n\t\tleft: 1em;\n\t\twidth: 0; height: 0;\n\t\tpadding: .4em;\n\t\tbackground: white;\n\t\tborder: inherit;\n\t\tborder-right: 0;\n\t\tborder-bottom: 0;\n\t\t-webkit-transform: rotate(45deg);\n\t\ttransform: rotate(45deg);\n\t}\n\n\t.awesomplete > ul > li {\n\t\tposition: relative;\n\t\tpadding: .2em .5em;\n\t\tcursor: pointer;\n\t}\n\t\n\t.awesomplete > ul > li:hover {\n\t\tbackground: hsl(200, 40%, 80%);\n\t\tcolor: black;\n\t}\n\t\n\t.awesomplete > ul > li[aria-selected="true"] {\n\t\tbackground: hsl(205, 40%, 40%);\n\t\tcolor: white;\n\t}\n\t\n\t\t.awesomplete mark {\n\t\t\tbackground: hsl(65, 100%, 50%);\n\t\t}\n\t\t\n\t\t.awesomplete li:hover mark {\n\t\t\tbackground: hsl(68, 100%, 41%);\n\t\t}\n\t\t\n\t\t.awesomplete li[aria-selected="true"] mark {\n\t\t\tbackground: hsl(86, 100%, 21%);\n\t\t\tcolor: inherit;\n\t\t}\n',""]);const l=o},9145(t,e,n){"use strict";var r=n(5072),i=n.n(r),a=n(7825),o=n.n(a),l=n(7659),s=n.n(l),u=n(5056),c=n.n(u),d=n(540),f=n.n(d),h=n(1113),p=n.n(h),m=n(1028),v={};v.styleTagTransform=p(),v.setAttributes=c(),v.insert=s().bind(null,"head"),v.domAPI=o(),v.insertStyleElement=f();i()(m.A,v),m.A&&m.A.locals&&m.A.locals}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 704.2662e40b00a619fa8889.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkfilecat=self.webpackChunkfilecat||[]).push([[627,704],{5219(t){!function(){var e=function(t,n){var r=this;e.count=(e.count||0)+1,this.count=e.count,this.isOpened=!1,this.input=i(t),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-autocomplete","list"),this.input.setAttribute("aria-expanded","false"),this.input.setAttribute("aria-controls","awesomplete_list_"+this.count),this.input.setAttribute("aria-owns","awesomplete_list_"+this.count),this.input.setAttribute("role","combobox"),this.options=n=n||{},function(t,e,n){for(var r in e){var i=e[r],o=t.input.getAttribute("data-"+r.toLowerCase());t[r]="number"==typeof i?parseInt(o):!1===i?null!==o:i instanceof Function?null:o,t[r]||0===t[r]||(t[r]=r in n?n[r]:i)}}(this,{minChars:2,maxItems:10,autoFirst:!1,data:e.DATA,filter:e.FILTER_CONTAINS,sort:!1!==n.sort&&e.SORT_BYLENGTH,container:e.CONTAINER,item:e.ITEM,replace:e.REPLACE,tabSelect:!1,listLabel:"Results List",statusNoResults:"No results found",statusXResults:"{0} results found",statusTypeXChar:"Type {0} or more characters for results"},n),this.index=-1,this.container=this.container(t),this.ul=i.create("ul",{hidden:"hidden",role:"listbox",id:"awesomplete_list_"+this.count,inside:this.container,"aria-label":this.listLabel}),this.status=i.create("span",{className:"visually-hidden",role:"status","aria-live":"assertive","aria-atomic":!0,inside:this.container,textContent:""}),this._events={input:{input:this.evaluate.bind(this),blur:this.close.bind(this,{reason:"blur"}),keydown:function(t){var e=t.keyCode;r.opened&&(13===e&&r.selected||9===e&&r.selected&&r.tabSelect?(t.preventDefault(),r.select(void 0,void 0,t)):27===e?r.close({reason:"esc"}):38!==e&&40!==e||(t.preventDefault(),r[38===e?"previous":"next"]()))}},form:{submit:this.close.bind(this,{reason:"submit"})},ul:{mousedown:function(t){t.preventDefault()},click:function(t){var e=t.target;if(e!==this){for(;e&&!/li/i.test(e.nodeName);)e=e.parentNode;e&&0===t.button&&(t.preventDefault(),r.select(e,t.target,t))}}}},i.bind(this.input,this._events.input),i.bind(this.input.form,this._events.form),i.bind(this.ul,this._events.ul),this.input.hasAttribute("list")?(this.list="#"+this.input.getAttribute("list"),this.input.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||n.list||[],e.all.push(this)};function n(t){var e=Array.isArray(t)?{label:t[0],value:t[1]}:"object"==typeof t&&"label"in t&&"value"in t?t:{label:t,value:t};this.label=e.label||e.value,this.value=e.value}e.prototype={set list(t){if(Array.isArray(t))this._list=t;else if("string"==typeof t&&t.indexOf(",")>-1)this._list=t.split(/\s*,\s*/);else if((t=i(t))&&t.children){var e=[];r.apply(t.children).forEach(function(t){if(!t.disabled){var n=t.textContent.trim(),r=t.value||n,i=t.label||n;""!==r&&e.push({label:i,value:r})}}),this._list=e}document.activeElement===this.input&&this.evaluate()},get selected(){return this.index>-1},get opened(){return this.isOpened},close:function(t){this.opened&&(this.input.setAttribute("aria-expanded","false"),this.ul.setAttribute("hidden",""),this.isOpened=!1,this.index=-1,this.status.setAttribute("hidden",""),this.input.setAttribute("aria-activedescendant",""),i.fire(this.input,"awesomplete-close",t||{}))},open:function(){this.input.setAttribute("aria-expanded","true"),this.ul.removeAttribute("hidden"),this.isOpened=!0,this.status.removeAttribute("hidden"),this.autoFirst&&-1===this.index&&this.goto(0),i.fire(this.input,"awesomplete-open")},destroy:function(){if(i.unbind(this.input,this._events.input),i.unbind(this.input.form,this._events.form),!this.options.container){var t=this.container.parentNode;t.insertBefore(this.input,this.container),t.removeChild(this.container)}this.input.removeAttribute("autocomplete"),this.input.removeAttribute("aria-autocomplete"),this.input.removeAttribute("aria-expanded"),this.input.removeAttribute("aria-controls"),this.input.removeAttribute("aria-owns"),this.input.removeAttribute("role");var n=e.all.indexOf(this);-1!==n&&e.all.splice(n,1)},next:function(){var t=this.ul.children.length;this.goto(this.index<t-1?this.index+1:t?0:-1)},previous:function(){var t=this.ul.children.length,e=this.index-1;this.goto(this.selected&&-1!==e?e:t-1)},goto:function(t){var e=this.ul.children;this.selected&&e[this.index].setAttribute("aria-selected","false"),this.index=t,t>-1&&e.length>0&&(e[t].setAttribute("aria-selected","true"),this.input.setAttribute("aria-activedescendant",this.ul.id+"_item_"+this.index),this.ul.scrollTop=e[t].offsetTop-this.ul.clientHeight+e[t].clientHeight,i.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(t,e,n){if(t?this.index=i.siblingIndex(t):t=this.ul.children[this.index],t){var r=this.suggestions[this.index];i.fire(this.input,"awesomplete-select",{text:r,origin:e||t,originalEvent:n})&&(this.replace(r),this.close({reason:"select"}),i.fire(this.input,"awesomplete-selectcomplete",{text:r,originalEvent:n}))}},evaluate:function(){var t=this,e=this.input.value;e.length>=this.minChars&&this._list&&this._list.length>0?(this.index=-1,this.ul.innerHTML="",this.suggestions=this._list.map(function(r){return new n(t.data(r,e))}).filter(function(n){return t.filter(n,e)}),!1!==this.sort&&(this.suggestions=this.suggestions.sort(this.sort)),this.suggestions=this.suggestions.slice(0,this.maxItems),this.suggestions.forEach(function(n,r){t.ul.appendChild(t.item(n,e,r))}),0===this.ul.children.length?(this.status.textContent=this.statusNoResults,this.close({reason:"nomatches"})):(this.input.setAttribute("aria-activedescendant",""),this.open(),this.status.textContent=this.statusXResults.replaceAll("{0}",this.ul.children.length))):(this.close({reason:"nomatches"}),this.minChar<=1||e.length>=this.minChars?this.status.textContent=this.statusNoResults:this.status.textContent=this.statusTypeXChar.replaceAll("{0}",this.minChars))}},e.all=[],e.FILTER_CONTAINS=function(t,e){return RegExp(i.regExpEscape(e.trim()),"i").test(t)},e.FILTER_STARTSWITH=function(t,e){return RegExp("^"+i.regExpEscape(e.trim()),"i").test(t)},e.SORT_BYLENGTH=function(t,e){return t.length!==e.length?t.length-e.length:t<e?-1:1},e.CONTAINER=function(t){return i.create("div",{className:"awesomplete",around:t})},e.ITEM=function(t,e,n){var r=""===e.trim()?t:t.replace(RegExp(i.regExpEscape(e.trim()),"gi"),"<mark>$&</mark>");return i.create("li",{innerHTML:r,role:"option","aria-selected":"false",tabindex:"-1",id:"awesomplete_list_"+this.count+"_item_"+n})},e.REPLACE=function(t){this.input.value=t.value},e.DATA=function(t){return t},Object.defineProperty(n.prototype=Object.create(String.prototype),"length",{get:function(){return this.label.length}}),n.prototype.toString=n.prototype.valueOf=function(){return""+this.label};var r=Array.prototype.slice;function i(t,e){return"string"==typeof t?(e||document).querySelector(t):t||null}function o(t,e){return r.call((e||document).querySelectorAll(t))}function a(){o("input.awesomplete").forEach(function(t){new e(t)})}i.create=function(t,e){var n=document.createElement(t);for(var r in e){var o=e[r];if("inside"===r)i(o).appendChild(n);else if("around"===r){var a=i(o);a.parentNode.insertBefore(n,a),n.appendChild(a),null!=a.getAttribute("autofocus")&&a.focus()}else r in n?n[r]=o:n.setAttribute(r,o)}return n},i.bind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.addEventListener(e,r)})}},i.unbind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.removeEventListener(e,r)})}},i.fire=function(t,e,n){var r=document.createEvent("HTMLEvents");for(var i in r.initEvent(e,!0,!0),n)r[i]=n[i];return t.dispatchEvent(r)},i.regExpEscape=function(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},i.siblingIndex=function(t){for(var e=0;t=t.previousElementSibling;e++);return e},"undefined"!=typeof self&&(self.Awesomplete=e),"undefined"!=typeof Document&&("loading"!==document.readyState?a():document.addEventListener("DOMContentLoaded",a)),e.$=i,e.$$=o,t.exports&&(t.exports=e)}()},4694(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||o(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 i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=o(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return l=t.done,t},e:function(t){u=!0,a=t},f:function(){try{l||null==n.return||n.return()}finally{if(u)throw a}}}}function o(t,e){if(t){if("string"==typeof t)return a(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)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function l(t,e){var n=u(t,e);return null===n||n===t.length-1?t[0]:t[n+1]}function u(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return null}function c(t,e){var n=u(t,e);return null===n?null:t[n]}function s(t){if(!t)return{};var e,n,r,o=i(t);try{for(o.s();!(r=o.n()).done;){var a=r.value;(void 0===e||e<a)&&(e=a),(void 0===n||n>a)&&(n=a)}}catch(t){o.e(t)}finally{o.f()}return{max:e,min:n}}function f(t,e){var n=t.indexOf(e),i=r(t);return i.splice(n,1),i}function h(){for(var t="",e=0;e<arguments.length;e++){var n=e<0||arguments.length<=e?void 0:arguments[e];0===e?("/"!==n[0]&&(n="/"+n),"/"!==n[n.length-1]&&(n+="/")):e===arguments.length-1?"/"!==n[n.list-1]&&-1===n.indexOf(".")&&(n+="/"):("/"===n[0]&&(n=n.slice(1,n.length-1)),"/"!==n[n.length-1]&&(n+="/")),t+=n}return t}function d(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var r=e[0],i=1;i<e.length;i++)"/"!==e[i][e[i].length-1]?r+="/"+e[i]:r+=e[i];return r}function p(t,e){var n,r=[],o=i(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;r.push(t[a])}}catch(t){o.e(t)}finally{o.f()}return r}function m(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||0===t.length)return t;for(var r=0;r<t.length;r++)for(var i=t.length-1;i>r;i--){var o=e?e(t[i]):t[i],a=e?e(t[i-1]):t[i-1],l=t[i];o<a?n&&(t[i]=t[i-1],t[i-1]=l):o>a&&(n||(t[i]=t[i-1],t[i-1]=l))}return t}function v(t,e){if(0===t.length)return null;var n,r,i=(n=0,r=t.length,n===r?-1:Math.floor(Math.random()*(r-n))+n);return e&&i===e?v(t,e):t[i]}function y(t,e){if(e)for(var n=0;n<t.length;n++)if(e(t[n]))return t.splice(n,1)[0]}n.d(e,{Bd:()=>p,HS:()=>d,I:()=>y,IO:()=>h,Lr:()=>v,P1:()=>f,a7:()=>s,di:()=>m,jH:()=>l,kW:()=>c})},447(t,e,n){"use strict";n.d(e,{WA:()=>p,ZI:()=>m,Zp:()=>f,fq:()=>y,gz:()=>v,uF:()=>h,xP:()=>d});var r=n(6540),i=n(3413),o=n.n(i),a=n(505);function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return u(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)?u(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 u(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 c=function(t){return t[t.common=0]="common",t[t.full=1]="full",t}(c||{});function s(t,e){var n=e===c.common?"card-content":e===c.full?"card-content full":"";return r.createElement("div",{className:"card",style:{}},r.createElement("div",{className:"card-title"},t.self_title?t.self_title:r.createElement("h2",null,t.title),r.createElement("div",{className:"not-select-div"},t.titleCom&&t.titleCom)),r.createElement("div",{className:n},t.children),r.createElement("div",{className:"card-action card-action-bottom-right"},t.rightBottomCom))}function f(t){return s(t,c.common)}function h(t){return s(t,c.full)}function d(t){var e,n,i,l=(0,r.useRef)(null);return r.createElement("div",{className:"card-text"},r.createElement("div",{className:"card-text-context"},null!==(e=t.context)&&void 0!==e?e:t.children),r.createElement("div",{className:"card-text-tip",ref:l,onClick:function(){var e,n;(0,a.lW)(null!==(e=null!==(n=t.tip_context)&&void 0!==n?n:t.context)&&void 0!==e?e:t.children),new(o())({type:"info",text:"复制完成",timeout:1e3,layout:"bottomLeft"}).show()}},null!==(n=null!==(i=t.tip_context)&&void 0!==i?i:t.context)&&void 0!==n?n:t.children))}function p(t){var e,n;return r.createElement("div",{className:"card-text"},r.createElement("div",{className:"card-text-context"},null!==(e=t.context)&&void 0!==e?e:t.children),r.createElement("div",{className:"card-text-tip"},null!==(n=t.context)&&void 0!==n?n:t.children))}function m(t){var e,n;return r.createElement("div",{className:"card floating",onKeyPress:function(e){"Enter"===e.key&&t.confirm_enter&&t.confirm_enter()}},r.createElement("div",{className:"card-title"},r.createElement("h2",null,t.title)),r.createElement("div",{className:"card-content"},t.context&&Array.isArray(t.context)?t.context.map(function(t,e){return r.createElement(r.Fragment,{key:e},t)}):t.context),r.createElement("div",{className:"card-action"},r.createElement("button",{className:"button button--flat button--grey",onClick:t.cancel},null!==(e=t.cancel_t)&&void 0!==e?e:"cancel"),r.createElement("button",{className:"button button--flat",onClick:t.confirm},null!==(n=t.confirm_t)&&void 0!==n?n:"confirm")))}function v(t){return r.createElement("div",{className:"progress-card"},r.createElement("div",{className:"progress-per"},r.createElement("div",{style:{width:"".concat(t.progress,"%")}})))}var y=function(t){var e=l((0,r.useState)("var(--iconTertiary)"),2),n=e[0],i=e[1];(0,r.useEffect)(function(){void 0===t.ok?void 0===t.success?void 0!==t.running&&i("var(--icon-yellow)"):!0===t.success?i("var(--icon-green)"):!1===t.success&&i("var(--icon-red)"):i(t.ok?"var(--icon-green)":"var(--iconTertiary)")},[t]);var o={width:"10px",height:"10px",borderRadius:"50%",backgroundColor:n,display:"inline-block"};return r.createElement("div",{style:o})}},3033(t,e,n){"use strict";n.d(e,{$Z:()=>f,GL:()=>y,Sm:()=>d,U6:()=>v,cA:()=>p,l6:()=>m});var r=n(6540),i=n(5219),o=n.n(i);n(9145);function a(t){return a="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},a(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return s(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)?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 n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function f(t){var e=(0,r.useRef)(null),n=c(r.useState(""),2),i=n[0],o=n[1];return(0,r.useEffect)(function(){var n=t.value;null==n&&(n=""),e.current.value=n,o(t.value||"")},[t.value]),r.createElement("div",{id:"search",className:"",style:{maxWidth:t.max_width,display:t.not_mobile?"block":void 0}},r.createElement("div",{id:"input"},r.createElement("i",{className:"material-icons"},t.icon),r.createElement("input",{type:"text",ref:e,placeholder:i||t.placeholder,onChange:function(e){t.handleInputChange&&t.handleInputChange(e.target.value,e.target),o(e.target.value)},onKeyPress:function(e){"Enter"===e.key&&t.handleEnterPress&&t.handleEnterPress()}})))}function h(t){var e=(0,r.useRef)(null),n=c(r.useState(""),2),i=n[0],a=n[1],l=c(r.useState("input input--block awesomplete"),2),u=l[0],s=l[1];return(0,r.useEffect)(function(){a(null==t.value?"":t.value),t.focus&&e.current.focus(),t.no_border&&s("".concat(u," input--no_border awesomplete"))},[t.value]),(0,r.useEffect)(function(){if(null!=t.options&&e.current){var n,r=new(o())(e.current,{list:null!==(n=t.options)&&void 0!==n?n:[],minChars:0,autoFirst:!0});e.current.addEventListener("focus",function(){e.current.value="",e.current.dispatchEvent(new Event("input"))});var i=function(n){var r,i,o=null!==(r=n.text.label)&&void 0!==r?r:n.text.value,l=n.text.value;a(o),requestAnimationFrame(function(){e.current.value=o}),null===(i=t.handleInputChange)||void 0===i||i.call(t,l,e.current)};return e.current.addEventListener("awesomplete-selectcomplete",i),function(){var t;null===(t=e.current)||void 0===t||t.removeEventListener("awesomplete-selectcomplete",i),r.destroy()}}},[]),r.createElement(r.Fragment,null,t.placeholderOut&&r.createElement("p",null,t.placeholderOut),r.createElement("div",{style:{display:"flex",alignItems:"center",width:t.width,maxWidth:t.maxWidth}},t.left_placeholder&&r.createElement("div",{style:{flex:"0 0 auto"}},t.left_placeholder),r.createElement("input",{style:{flex:1,minWidth:0},onClick:function(t){t.stopPropagation()},disabled:!!t.disabled,className:u,type:t.type,placeholder:i||t.placeholder,onChange:function(e){t.handleInputChange&&t.handleInputChange(e.target.value,e.target),a(e.target.value)},onKeyPress:function(e){"Enter"===e.key&&t.handlerEnter&&t.handlerEnter(e.target.value)},value:i,ref:e}),t.right_placeholder&&r.createElement("div",{style:{flex:"0 0 auto"}},t.right_placeholder)))}function d(t){return h(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},t))}function p(t){return h({placeholder:t.placeholder,type:"password",handleInputChange:t.handleInputChange,handlerEnter:t.handleEnterPress,maxWidth:t.maxWidth,width:t.width,value:t.value})}function m(t){return r.createElement("div",{style:{display:"flex"}},t.tip&&r.createElement("p",{className:"input input_left "},t.tip),r.createElement("select",{defaultValue:t.defaultValue,value:t.value,style:{width:t.width},disabled:!!t.disabled,className:"input input--block ".concat(t.no_border?"input--no_border":""),onChange:function(e){return t.onChange(e.target.value)}},t.options.map(function(t,e){return r.createElement("option",{key:e,value:t.value},t.title)})))}function v(t){var e;return r.createElement("div",{className:"input_radio_row"},r.createElement("input",{type:"radio",checked:t.selected,name:null!==(e=t.name)&&void 0!==e?e:"common_name",value:t.value,className:"input_radio",onChange:function(){t.onchange&&t.onchange(t.value)}}),t.context)}function y(t){var e,n=c((0,r.useState)(!1),2),i=n[0],o=n[1];return(0,r.useEffect)(function(){o(!!t.selected)},[t.selected]),r.createElement("div",{className:"input_radio_row"},r.createElement("input",{type:"checkbox",disabled:null!==(e=t.is_disable)&&void 0!==e&&e,checked:i,onChange:function(){t.onchange&&t.onchange()}}),t.context)}},7481(t,e,n){"use strict";n.d(e,{S:()=>l,X:()=>a});var r=n(6540);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(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)?o(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 o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function a(t){var e,n=i(r.useState([]),2),o=n[0],a=n[1];return(0,r.useEffect)(function(){t.children?a(Array.isArray(t.children)?t.children:[t.children]):a(t.rows)},[t.rows,t.children]),r.createElement("table",null,r.createElement("thead",null,r.createElement("tr",null,null===(e=t.headers)||void 0===e?void 0:e.map(function(t,e){return r.createElement("th",{key:e},t)}))),r.createElement("tbody",null,o.map(function(e,n){return r.createElement("tr",{key:n,onContextMenu:function(){t.handleContextMenu&&t.handleContextMenu(e)}},e.map(function(e,n){var i;return r.createElement("td",{style:{width:null!==(i=t.width)&&void 0!==i?i:"auto"},key:n,className:n===o.length-1?"small":""},e)}))})))}function l(t){return r.createElement("div",{style:{display:t.isFlex?"flex":"block"}},t.columns.map(function(t,e){return r.createElement("div",{key:e},t)}))}},7209(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>U});var r=n(6540),i=n(5725),o=n(3033),a=n(447),l=n(5997),u=n(4289),c=n(2389),s=n(2042),f=n(4284),h=n(3459);function d(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof l?r:l,c=Object.create(u.prototype);return p(c,"_invoke",function(n,r,i){var o,l,u,c=0,s=i||[],f=!1,h={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return o=e,l=0,u=t,h.n=n,a}};function d(n,r){for(l=n,u=r,e=0;!f&&c&&!i&&e<s.length;e++){var i,o=s[e],d=h.p,p=o[2];n>3?(i=p===r)&&(u=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=n<2&&d<o[1])?(l=0,h.v=r,h.n=o[1]):d<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,h.n=p,l=0))}if(i||n>1)return a;throw f=!0,r}return function(i,s,p){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,p),l=s,u=p;(e=l<2?t:u)||!f;){o||(l?l<3?(l>1&&(h.n=-1),d(l,u)):h.n=u:h.v=u);try{if(c=2,o){if(l||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=o.return)&&e.call(o),l<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=t}else if((e=(f=h.n<0)?u:n.call(r,h))!==a)break}catch(e){o=t,l=1,u=e}finally{c=1}}return{value:e,done:f}}}(n,i,o),!0),c}var a={};function l(){}function u(){}function c(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(p(e={},r,function(){return this}),e),f=c.prototype=l.prototype=Object.create(s);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,p(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=c,p(f,"constructor",c),p(c,"constructor",u),u.displayName="GeneratorFunction",p(c,i,"GeneratorFunction"),p(f),p(f,i,"Generator"),p(f,r,function(){return this}),p(f,"toString",function(){return"[object Generator]"}),(d=function(){return{w:o,m:h}})()}function p(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}p=function(t,e,n,r){function o(e,n){p(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},p(t,e,n,r)}function m(t,e,n,r,i,o,a){try{var l=t[o](a),u=l.value}catch(t){return void n(t)}l.done?e(u):Promise.resolve(u).then(r,i)}function v(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return y(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)?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 n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function b(t){var e=(0,c.Bd)().t,n=v((0,r.useState)(e("毫秒")),2),p=n[0],y=n[1],b=v((0,r.useState)(""),2),g=b[0],E=b[1],w=v((0,r.useState)(""),2),x=w[0],A=w[1],S=v((0,r.useState)(null),2),_=S[0],O=S[1],k=v((0,r.useState)(null),2),C=k[0],j=k[1],N=v((0,r.useState)(Date.now()),2),I=N[0],T=N[1];var P=function(){var t,e=(t=d().m(function t(){var e,n;return d().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,f.Yu.get("sys_time/get");case 1:if((e=t.v).code!==h.m.Success){t.n=3;break}return t.n=2,e.data;case 2:n=t.v,O(n.timestamp),j(n.timezone),T(n.timestamp);case 3:return t.a(2)}},t)}),function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){m(o,r,i,a,l,"next",t)}function l(t){m(o,r,i,a,l,"throw",t)}a(void 0)})});return function(){return e.apply(this,arguments)}}();return(0,r.useEffect)(function(){P();var t=setInterval(function(){T(function(t){return t+1e3})},1e3);return function(){return clearInterval(t)}},[]),r.createElement(i.fI,null,r.createElement(i.VP,null,r.createElement(a.Zp,{title:e("时间转换器"),rightBottomCom:r.createElement(l.C3,{text:e("确定"),clickFun:function(){if(g||x){var t=0,e=""!==g&&0!==g;if(e){if(!(0,u.kf)(g))return void(0,s.zN)("must be number !");t=parseInt(g),"分秒"===p&&(t*=1e3)}var n=new Date(e?t:x),r=new Intl.DateTimeFormat("zh-CN",{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).format(n);if(A(r),!g){var i=n.getTime();E("毫秒"===p?i:i/1e3)}}else new Noty({type:"error",text:"不能都为空",timeout:1e3,layout:"bottomLeft"}).show()}})},r.createElement(o.l6,{options:[{title:e("毫秒"),value:"毫秒"},{title:e("分秒"),value:"分秒"}],onChange:function(t){y(t)}}),r.createElement(o.Sm,{placeholder:p,value:g,handleInputChange:function(t){E(t)}}),r.createElement(o.Sm,{placeholder:e("格式化时间"),value:x,handleInputChange:function(t){A(t)}}))),r.createElement(i.VP,null,null!==_&&null!==C&&r.createElement(a.Zp,{title:e("服务器时间")},r.createElement("h1",null,e("时区"),": ",C),r.createElement("h1",null,e("时间"),": ",new Date(I).toLocaleString(navigator.language,{timeZone:C})))))}var g=n(3413),E=n.n(g),w=n(7952),x=n(3029),A=n(8247),S=n(3430);function _(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof l?r:l,c=Object.create(u.prototype);return O(c,"_invoke",function(n,r,i){var o,l,u,c=0,s=i||[],f=!1,h={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return o=e,l=0,u=t,h.n=n,a}};function d(n,r){for(l=n,u=r,e=0;!f&&c&&!i&&e<s.length;e++){var i,o=s[e],d=h.p,p=o[2];n>3?(i=p===r)&&(u=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=n<2&&d<o[1])?(l=0,h.v=r,h.n=o[1]):d<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,h.n=p,l=0))}if(i||n>1)return a;throw f=!0,r}return function(i,s,p){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,p),l=s,u=p;(e=l<2?t:u)||!f;){o||(l?l<3?(l>1&&(h.n=-1),d(l,u)):h.n=u:h.v=u);try{if(c=2,o){if(l||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=o.return)&&e.call(o),l<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=t}else if((e=(f=h.n<0)?u:n.call(r,h))!==a)break}catch(e){o=t,l=1,u=e}finally{c=1}}return{value:e,done:f}}}(n,i,o),!0),c}var a={};function l(){}function u(){}function c(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(O(e={},r,function(){return this}),e),f=c.prototype=l.prototype=Object.create(s);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,O(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=c,O(f,"constructor",c),O(c,"constructor",u),u.displayName="GeneratorFunction",O(c,i,"GeneratorFunction"),O(f),O(f,i,"Generator"),O(f,r,function(){return this}),O(f,"toString",function(){return"[object Generator]"}),(_=function(){return{w:o,m:h}})()}function O(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}O=function(t,e,n,r){function o(e,n){O(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},O(t,e,n,r)}function k(t,e,n,r,i,o,a){try{var l=t[o](a),u=l.value}catch(t){return void n(t)}l.done?e(u):Promise.resolve(u).then(r,i)}function C(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){k(o,r,i,a,l,"next",t)}function l(t){k(o,r,i,a,l,"throw",t)}a(void 0)})}}function j(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return N(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)?N(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 N(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function I(t){var e=(0,c.Bd)().t,n=(0,A.MH)().check_user_auth,i=j((0,r.useState)(""),2),a=i[0],u=i[1],s=function(){var t=C(_().m(function t(e){var n;return _().w(function(t){for(;;)switch(t.n){case 0:if(n=e||a){t.n=1;break}return new(E())({type:"error",text:"mac地址不能为空",timeout:1e3,layout:"bottomLeft"}).show(),t.a(2);case 1:return t.n=2,f._U.post("wol/exec",{mac:n});case 2:if(t.v.code===h.m.Success){t.n=3;break}return t.a(2);case 3:new(E())({type:"success",text:"发送唤醒命令成功",timeout:1e3,layout:"bottomLeft"}).show();case 4:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),d=function(){var t=C(_().m(function t(){var e;return _().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,f._U.get("wol/tag");case 1:if((e=t.v).code!==h.m.Success){t.n=2;break}return t.a(2,e.data);case 2:return t.a(2,[])}},t)}));return function(){return t.apply(this,arguments)}}(),p=function(){var t=C(_().m(function t(e){return _().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,f._U.post("wol/tag/save",e);case 1:t.v.code!==h.m.Success&&new(E())({type:"error",text:"网络错误",timeout:1e3,layout:"bottomLeft"}).show();case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),m=function(){var t=C(_().m(function t(e){return _().w(function(t){for(;;)switch(t.n){case 0:u(e.mac),s(e.mac);case 1:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}();return r.createElement("div",null,r.createElement(w.A,null,r.createElement(l.rA,{icon:"play_arrow",title:e("发送"),onClick:function(){s()}}),r.createElement(o.$Z,{placeholder:e("目标设备mac地址"),icon:"laptop_mac",value:a,handleInputChange:function(t){return u(t)}})),r.createElement(x.N,{have_auth_edit:n(S.oV.wol_proxy_tag_update),getItems:d,save:p,clickItem:m,items:[{key:"name",preName:e("名字")},{key:"mac",preName:"mac"+e("地址")},{key:"color",preName:"color"}]}))}var T,P=n(7481),L=n(7444),F=n(6417),R=n(505);function M(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var u=r&&r.prototype instanceof l?r:l,c=Object.create(u.prototype);return G(c,"_invoke",function(n,r,i){var o,l,u,c=0,s=i||[],f=!1,h={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return o=e,l=0,u=t,h.n=n,a}};function d(n,r){for(l=n,u=r,e=0;!f&&c&&!i&&e<s.length;e++){var i,o=s[e],d=h.p,p=o[2];n>3?(i=p===r)&&(u=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=t):o[0]<=d&&((i=n<2&&d<o[1])?(l=0,h.v=r,h.n=o[1]):d<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,h.n=p,l=0))}if(i||n>1)return a;throw f=!0,r}return function(i,s,p){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,p),l=s,u=p;(e=l<2?t:u)||!f;){o||(l?l<3?(l>1&&(h.n=-1),d(l,u)):h.n=u:h.v=u);try{if(c=2,o){if(l||(i="next"),e=o[i]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,l<2&&(l=0)}else 1===l&&(e=o.return)&&e.call(o),l<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),l=1);o=t}else if((e=(f=h.n<0)?u:n.call(r,h))!==a)break}catch(e){o=t,l=1,u=e}finally{c=1}}return{value:e,done:f}}}(n,i,o),!0),c}var a={};function l(){}function u(){}function c(){}e=Object.getPrototypeOf;var s=[][r]?e(e([][r]())):(G(e={},r,function(){return this}),e),f=c.prototype=l.prototype=Object.create(s);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,G(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=c,G(f,"constructor",c),G(c,"constructor",u),u.displayName="GeneratorFunction",G(c,i,"GeneratorFunction"),G(f),G(f,i,"Generator"),G(f,r,function(){return this}),G(f,"toString",function(){return"[object Generator]"}),(M=function(){return{w:o,m:h}})()}function G(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}G=function(t,e,n,r){function o(e,n){G(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(o("next",0),o("throw",1),o("return",2))},G(t,e,n,r)}function D(t,e,n,r,i,o,a){try{var l=t[o](a),u=l.value}catch(t){return void n(t)}l.done?e(u):Promise.resolve(u).then(r,i)}function W(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){D(o,r,i,a,l,"next",t)}function l(t){D(o,r,i,a,l,"throw",t)}a(void 0)})}}function $(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return B(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)?B(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 B(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function H(){var t=$((0,r.useState)("rsa"),2),e=t[0],n=t[1],u=$((0,r.useState)("pem"),2),d=u[0],p=u[1],m=(0,c.Bd)(),v=m.t,y=(m.i18n,$((0,L.L4)(F.A.confirm),2)),b=(y[0],y[1]),g=$((0,r.useState)(""),2),E=g[0],x=g[1],A=$((0,r.useState)(""),2),S=A[0],_=A[1],O=function(){var t=W(M().m(function t(){var n;return M().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,f.cD.post("generate",{type:e,form:d});case 1:(n=t.v).code===h.m.Success&&(x(n.data.public_key),_(n.data.private_key),T=n.data.home_path);case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),k=function(){var t=W(M().m(function t(n){var r;return M().w(function(t){for(;;)switch(t.n){case 0:if(S&&E){t.n=1;break}return(0,s.zN)("密钥不能为空"),t.a(2);case 1:r="id_"+e,"pub"===n&&(r+=".pub"),b({open:!0,title:v("将覆盖密钥文件"),sub_title:"之前的密钥将作废。 将会作为 ".concat(r,' 文件保存到系统上的"').concat(T,'"目录下,此目录会作为openssh(git)所使用的默认目录。'),handle:function(){var t=W(M().m(function t(){return M().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,f.cD.post("save_openssh",{name:r,context:"pub"===n?E:S});case 1:t.v.code===h.m.Success&&((0,s.LW)("完成"),b({open:!1,handle:null}));case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}()});case 2:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}();return r.createElement(r.Fragment,null,r.createElement(i.xh,null,r.createElement(w.A,null,r.createElement(P.S,{isFlex:!0,columns:[r.createElement(o.l6,{tip:"加密算法",value:e,width:"auto",onChange:function(t){n(t)},options:[{title:v("RSA"),value:"rsa"},{title:v("DSA"),value:"dsa"},{title:v("ECDSA"),value:"ecdsa"}]}),r.createElement(o.l6,{tip:"输出格式",value:d,width:"auto",onChange:function(t){p(t)},options:[{title:v("普通PEM"),value:"pem"},{title:v("opensshPEM"),value:"openssh_pem"}]}),r.createElement(l.rA,{icon:"play_arrow",title:v("生成"),onClick:function(){O()}})]})),r.createElement(i.fI,null,r.createElement(i.VP,null,r.createElement(a.Zp,{title:"公钥",titleCom:r.createElement(l.rA,{title:"复制",icon:"copy_all",onClick:function(){E&&((0,R.lW)(E),(0,s.LW)("完成"))}}),rightBottomCom:"openssh_pem"===d&&r.createElement(l.C3,{text:v("保存到.ssh目录"),clickFun:function(){k("pub")}})},r.createElement("textarea",{className:"input--textarea input--no_border",style:{width:"100%",height:"270px"},onChange:function(t){x(t.target.value)},value:E}))),r.createElement(i.VP,null,r.createElement(a.Zp,{title:"私钥",titleCom:r.createElement(l.rA,{title:"复制",icon:"copy_all",onClick:function(){S&&((0,R.lW)(S),(0,s.LW)("成功"))}}),rightBottomCom:"openssh_pem"===d&&r.createElement(l.C3,{text:v("保存到.ssh目录"),clickFun:function(){k("pri")}})},r.createElement("textarea",{className:"input--textarea input--no_border",style:{width:"100%",height:"270px"},value:S,onChange:function(t){_(t.target.value)}}))))))}function U(t){var e=(0,c.Bd)().t,n=(0,A.MH)().check_user_auth,o=[];return o.push.apply(o,[{index:1,name:e("时间工具"),rto:"timeutil/"},{index:1,name:e("非对称密钥"),rto:"crypto/"}]),n(S.oV.wol_proxy)&&o.push({index:1,name:e("网络唤醒"),rto:"netwol/"}),r.createElement(i.W1,{optionList:o},r.createElement(b,null),r.createElement(H,null),n(S.oV.wol_proxy)&&r.createElement(I,null))}},1028(t,e,n){"use strict";n.d(e,{A:()=>l});var r=n(1601),i=n.n(r),o=n(6314),a=n.n(o)()(i());a.push([t.id,'.awesomplete [hidden] {\n display: none;\n}\n\n.awesomplete .visually-hidden {\n position: absolute;\n clip: rect(0, 0, 0, 0);\n}\n\n.awesomplete {\n display: inline-block;\n position: relative;\n}\n\n.awesomplete > input {\n display: block;\n}\n\n.awesomplete > ul {\n position: absolute;\n left: 0;\n z-index: 1;\n min-width: 100%;\n box-sizing: border-box;\n list-style: none;\n padding: 0;\n margin: 0;\n background: #fff;\n}\n\n.awesomplete > ul:empty {\n display: none;\n}\n\n.awesomplete > ul {\n\tborder-radius: .3em;\n\tmargin: .2em 0 0;\n\tbackground: hsla(0,0%,100%,.9);\n\tbackground: linear-gradient(to bottom right, white, hsla(0,0%,100%,.8));\n\tborder: 1px solid rgba(0,0,0,.3);\n\tbox-shadow: .05em .2em .6em rgba(0,0,0,.2);\n\ttext-shadow: none;\n}\n\n@supports (transform: scale(0)) {\n\t.awesomplete > ul {\n\t\ttransition: .3s cubic-bezier(.4,.2,.5,1.4);\n\t\ttransform-origin: 1.43em -.43em;\n\t}\n\t\n\t.awesomplete > ul[hidden],\n\t.awesomplete > ul:empty {\n\t\topacity: 0;\n\t\ttransform: scale(0);\n\t\tdisplay: block;\n\t\tvisibility: hidden;\n\t\ttransition-timing-function: ease;\n\t}\n}\n\n\t/* Pointer */\n\t.awesomplete > ul:before {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t\ttop: -.43em;\n\t\tleft: 1em;\n\t\twidth: 0; height: 0;\n\t\tpadding: .4em;\n\t\tbackground: white;\n\t\tborder: inherit;\n\t\tborder-right: 0;\n\t\tborder-bottom: 0;\n\t\t-webkit-transform: rotate(45deg);\n\t\ttransform: rotate(45deg);\n\t}\n\n\t.awesomplete > ul > li {\n\t\tposition: relative;\n\t\tpadding: .2em .5em;\n\t\tcursor: pointer;\n\t}\n\t\n\t.awesomplete > ul > li:hover {\n\t\tbackground: hsl(200, 40%, 80%);\n\t\tcolor: black;\n\t}\n\t\n\t.awesomplete > ul > li[aria-selected="true"] {\n\t\tbackground: hsl(205, 40%, 40%);\n\t\tcolor: white;\n\t}\n\t\n\t\t.awesomplete mark {\n\t\t\tbackground: hsl(65, 100%, 50%);\n\t\t}\n\t\t\n\t\t.awesomplete li:hover mark {\n\t\t\tbackground: hsl(68, 100%, 41%);\n\t\t}\n\t\t\n\t\t.awesomplete li[aria-selected="true"] mark {\n\t\t\tbackground: hsl(86, 100%, 21%);\n\t\t\tcolor: inherit;\n\t\t}\n',""]);const l=a},9145(t,e,n){"use strict";var r=n(5072),i=n.n(r),o=n(7825),a=n.n(o),l=n(7659),u=n.n(l),c=n(5056),s=n.n(c),f=n(540),h=n.n(f),d=n(1113),p=n.n(d),m=n(1028),v={};v.styleTagTransform=p(),v.setAttributes=s(),v.insert=u().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=h();i()(m.A,v),m.A&&m.A.locals&&m.A.locals}}]);
|