From a1aee4cbab8c1865396d0cab54271b5114c9b526 Mon Sep 17 00:00:00 2001 From: aias00 Date: Wed, 13 Nov 2024 11:53:40 +0800 Subject: [PATCH] [type:feature] namespace import sync front (#5779) --- .../src/main/resources/static/index.0e8007d1.js | 1 + .../src/main/resources/static/index.2a428c0d.css | 10 ++++++++++ shenyu-admin/src/main/resources/static/index.html | 4 ++-- 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 shenyu-admin/src/main/resources/static/index.0e8007d1.js create mode 100644 shenyu-admin/src/main/resources/static/index.2a428c0d.css diff --git a/shenyu-admin/src/main/resources/static/index.0e8007d1.js b/shenyu-admin/src/main/resources/static/index.0e8007d1.js new file mode 100644 index 000000000000..d82645b75092 --- /dev/null +++ b/shenyu-admin/src/main/resources/static/index.0e8007d1.js @@ -0,0 +1 @@ +!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s="lVK7")}({"+0it":function(e,t,n){"use strict";function r(){function e(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}function t(e,t,n,r){var a=t&&t.prototype instanceof o?t:o,i=Object.create(a.prototype),c=new p(r||[]);return b(i,"_invoke",{value:l(e,n,c)}),i}function n(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function o(){}function a(){}function i(){}function c(t){["next","throw","return"].forEach(function(n){e(t,n,function(e){return this._invoke(n,e)})})}function u(e,t){function r(o,a,i,c){var u=n(e[o],e,a);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&g.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(s).then(function(e){l.value=e,i(l)},function(e){return r("throw",e,i,c)})}c(u.arg)}var o;b(this,"_invoke",{value:function(e,n){function a(){return new t(function(t,o){r(e,n,t,o)})}return o=o?o.then(a,a):a()}})}function l(e,t,r){var o=C;return function(a,i){if(o===M)throw Error("Generator is already running");if(o===P){if("throw"===a)throw i;return{value:v,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var u=s(c,r);if(u){if(u===N)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===C)throw o=P,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=M;var l=n(e,t,r);if("normal"===l.type){if(o=r.done?P:_,l.arg===N)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=P,r.method="throw",r.arg=l.arg)}}}function s(e,t){var r=t.method,o=e.iterator[r];if(o===v)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=v,s(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),N;var a=n(o,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,N;var i=a.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=v),t.delegate=null,N):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,N)}function f(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function d(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function p(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(f,this),this.reset(!0)}function h(e){if(e||""===e){var t=e[S];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var i=g.call(o,"catchLoc"),c=g.call(o,"finallyLoc");if(i&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&g.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),d(n),N}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;d(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:h(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=v),N}},y}function o(e){return a.apply(this,arguments)}function a(){return a=(0,c.default)(r().mark(function e(t){return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.default)("/api/".concat(t)));case 1:case"end":return e.stop()}},e)})),a.apply(this,arguments)}var i=n("ouCL");Object.defineProperty(t,"__esModule",{value:!0}),t.query=o;var c=i(n("jlIA")),u=i(n("vLgD"))},"+1cx":function(e,t,n){"use strict";function r(e){return e[i]={},o(e)}function o(e){return e[i]}function a(e){delete e[i]}var i="_erd";e.exports={initState:r,getState:o,cleanState:a}},"+3wZ":function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}e.exports=r},"+4V2":function(e,t,n){"use strict";function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t,n){return t=(0,E.default)(t),(0,b.default)(e,a()?Reflect.construct(t,n||[],(0,E.default)(e).constructor):t.apply(e,n))}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}var i=n("ouCL");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("sRCI");var c=i(n("vnWH"));n("7WgF");var u=i(n("jf3V"));n("crfj");var l=i(n("zwGx"));n("Qbm7");var s=i(n("aOwA"));n("HCp1");var f=i(n("GWr5"));n("rpBe");var d=i(n("hK1P"));n("baa2");var p=i(n("FC3+"));n("faxx");var h=i(n("FV1P"));n("mxhB");var v=i(n("zJZ/"));n("JYrs");var y=i(n("QoDT")),m=i(n("Q9dM")),g=i(n("wm7F")),b=i(n("F6AD")),E=i(n("fghW")),S=i(n("QwVp"));n("LHBr");var O=i(n("A+AJ"));n("qK5s");var w,C,_=i(n("N0tX")),M=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var c=a?Object.getOwnPropertyDescriptor(e,i):null;c&&(c.get||c.set)?Object.defineProperty(o,i,c):o[i]=e[i]}return o.default=e,n&&n.set(e,o),o}(n("GiK3")),P=n("S6G3"),N=n("KPPu"),T=n("oAV5"),x=n("lXsO"),k=_.default.TreeNode,j=O.default.Search;t.default=(w=(0,P.connect)(function(e){var t=e.dataPermission,n=e.resource,r=e.global,o=e.loading;return{dataPermission:t,resource:n,global:r,namespaces:r.namespaces,selectorPermisionLoading:o.effects["dataPermission/fetchDataPermisionSelectors"],rulePermisionLoading:o.effects["dataPermission/fetchDataPermisionRules"]}}))(C=function(e){function t(e){var n;return(0,m.default)(this,t),n=o(this,t,[e]),n.getPluginTreeData=function(){var e=n.props.dispatch;e({type:"resource/fetchMenuTree"}),e({type:"global/fetchPlugins"})},n.getPermissionSelectorList=function(e){var t=n.props,r=t.dispatch,o=t.userId,a=n.state,i=a.currentPlugin,c=a.pageSize,u=a.currentNamespaceId;r({type:"dataPermission/fetchDataPermisionSelectors",payload:{currentPage:e,pageSize:c,userId:o,pluginId:i.pluginId,namespaceId:u},callback:function(e){n.setState({selectorData:e})}})},n.getPermissionRuleList=function(e,t){var r=n.props,o=r.dispatch,a=r.userId,i=n.state,c=i.currentPlugin,u=i.ruleListMap;o({type:"dataPermission/fetchDataPermisionRules",payload:{currentPage:t,pageSize:i.pageSize,userId:a,pluginId:c.pluginId,selectorId:e},callback:function(t){t.dataList&&t.dataList.length>0&&t.dataList.forEach(function(t){t.selectorId=e}),u[e]&&u[e].currentRulePage?t.currentRulePage=u[e].currentRulePage:t.currentRulePage=1,u[e]=t,n.setState({ruleListMap:u})}})},n.onSelectPlugin=function(e,t){var r=t.node.props.dataRef;n.setState({currentPlugin:r,currentPermissionSelectorPage:1,ruleListMap:{}},function(){n.getPermissionSelectorList(1)})},n.handleCheckSelector=function(e){var t=n.props,r=t.dispatch,o=t.userId,a=n.state.currentPermissionSelectorPage;r({type:e.isChecked?"dataPermission/deletePermisionSelector":"dataPermission/addPermisionSelector",payload:{dataId:e.dataId,userId:o},callback:function(){n.getPermissionSelectorList(a),n.getPermissionRuleList(e.dataId,1)}})},n.handleCheckRule=function(e){var t=n.props,r=t.dispatch,o=t.userId,a=n.state,i=a.currentPermissionSelectorPage,c=a.ruleListMap;r({type:e.isChecked?"dataPermission/deletePermisionRule":"dataPermission/addPermisionRule",payload:{dataId:e.dataId,userId:o},callback:function(){n.getPermissionSelectorList(i);var t=c[e.selectorId].currentRulePage||1;n.getPermissionRuleList(e.selectorId,t)}})},n.handleExpandRuleTable=function(e,t){var r=n.state.selectorExpandedRowKeys;e?(r.push(t.dataId),n.setState({selectorExpandedRowKeys:r})):(r=r.filter(function(e){return e!==t.dataId}),n.setState({selectorExpandedRowKeys:r})),n.getPermissionRuleList(t.dataId,1)},n.selectorPageOnchange=function(e){n.setState({currentPermissionSelectorPage:e}),n.getPermissionSelectorList(e)},n.rulePageOnchange=function(e,t){var r=n.state.ruleListMap;r[t].currentRulePage=e,n.setState({ruleListMap:r},function(){n.getPermissionRuleList(t,e)})},n.filterPlugin=function(){var e=n.props,t=e.global.plugins,r=e.resource.menuTree,o=n.state.searchValue,a=r.filter(function(e){return"/plug"===e.url});if(a&&a.length>0){a=a[0].children;var i=[];a.forEach(function(e){if("string"!=typeof o||!o.length||e.name.toLocaleLowerCase().includes(o.toLocaleLowerCase())){var n=t.find(function(t){return t.name===e.name}),r=i.find(function(e){return e.title===n.role});r||(i.push({title:n.role,key:n.role,selectable:!1,icon:"unordered-list",sort:e.sort,children:[]}),r=i[i.length-1]),r.children.push({key:n.id,title:(0,T.titleCase)(n.name),selectable:!0,sort:e.sort,icon:e.meta.icon,pluginId:n.id})}}),a=i}return a},n.onSearch=function(e){var t=e.target.value;n.setState({searchValue:t})},n.renderPluginTree=function(){var e=n.filterPlugin();return M.default.createElement(h.default,{gutter:[16,16]},M.default.createElement(y.default,{span:24},M.default.createElement(j,{placeholder:(0,N.getIntlContent)("SHENYU.PLUGIN.INPUTNAME"),onChange:n.onSearch})),e.length>0?M.default.createElement(y.default,{span:24},M.default.createElement(_.default,{defaultExpandAll:!0,style:{background:"white"},onSelect:n.onSelectPlugin,showIcon:!0},n.renderTreeNodes(e))):M.default.createElement(y.default,{span:24},M.default.createElement(v.default,null)))},n.renderTreeNodes=function(e){return e.map(function(e){return e.children&&e.children.length>0?M.default.createElement(k,{selectable:e.selectable,title:e.title,icon:M.default.createElement(p.default,{type:e.icon}),key:e.key,dataRef:e},n.renderTreeNodes(e.children)):M.default.createElement(k,{icon:M.default.createElement(p.default,{type:e.icon}),title:e.title,key:e.key,dataRef:e})})},n.renderSelectorRuleTable=function(){var e=n.state,t=e.currentPermissionSelectorPage,r=e.pageSize,o=n.state,a=o.selectorData,i=o.ruleListMap,c=o.selectorExpandedRowKeys,u=[{title:(0,N.getIntlContent)("SHENYU.SYSTEM.DATA.PERMISSION.CHECKED"),dataIndex:"isChecked",width:90,key:"isChecked",render:function(e,t){return M.default.createElement(d.default,{checked:e,onClick:n.handleCheckRule.bind(n,t)})}},{title:(0,N.getIntlContent)("SHENYU.SYSTEM.DATA.PERMISSION.RULENAME"),dataIndex:"dataName",key:"dataName"}],l=function(e){var t=i&&i[e.dataId],o=t&&t.currentRulePage;return M.default.createElement(f.default,{size:"small",bordered:!0,columns:u,dataSource:t&&t.dataList,pagination:{total:t&&t.total||0,current:o||1,pageSize:r,onChange:function(t){n.rulePageOnchange(t,e.dataId)}}})},s=[{title:(0,N.getIntlContent)("SHENYU.SYSTEM.DATA.PERMISSION.CHECKED"),dataIndex:"isChecked",width:90,key:"isChecked",render:function(e,t){return M.default.createElement(d.default,{checked:e,onClick:n.handleCheckSelector.bind(n,t)})}},{title:(0,N.getIntlContent)("SHENYU.SYSTEM.DATA.PERMISSION.SELECTORNAME"),dataIndex:"dataName",key:"dataName"}];return M.default.createElement(f.default,{style:{width:"350px"},size:"small",bordered:!0,columns:s,expandedRowRender:l,dataSource:a&&a.dataList,rowKey:"dataId",expandedRowKeys:c,onExpand:n.handleExpandRuleTable,pagination:{total:a&&a.total,current:t,pageSize:r,onChange:n.selectorPageOnchange}})},n.handleNamespacesValueChange=function(e){var t=n.state.currentPlugin;n.setState({currentNamespaceId:e.key},function(){t&&(n.setState({selectorExpandedRowKeys:[]}),n.getPermissionSelectorList(1))})},n.state={currentPlugin:null,currentPermissionSelectorPage:1,selectorData:null,pageSize:12,ruleListMap:{},searchValue:"",currentNamespaceId:x.defaultNamespaceId,selectorExpandedRowKeys:[]},n}return(0,S.default)(t,e),(0,g.default)(t,[{key:"componentDidMount",value:function(){this.getPluginTreeData()}},{key:"render",value:function(){var e,t=this.props,n=t.handleCancel,r=t.namespaces,o=this.state.currentNamespaceId;return M.default.createElement(c.default,{width:800,centered:!0,title:M.default.createElement("div",{style:{height:24,display:"flex",alignItems:"center",justifyContent:"space-between"}},M.default.createElement("div",null,(0,N.getIntlContent)("SHENYU.SYSTEM.DATA.PERMISSION.CONFIG")),M.default.createElement("div",{style:{marginRight:30}},M.default.createElement(u.default,{placement:"bottomCenter",overlay:M.default.createElement(s.default,{onClick:this.handleNamespacesValueChange},r.map(function(e){var t=o===e.namespaceId;return M.default.createElement(s.default.Item,{key:e.namespaceId,disabled:t},M.default.createElement("span",null,e.name))}))},M.default.createElement(l.default,null,M.default.createElement("a",{className:"ant-dropdown-link",style:{fontWeight:"bold"},onClick:function(e){return e.preventDefault()}},"".concat((0,N.getIntlContent)("SHENYU.SYSTEM.NAMESPACE")," / ").concat(null===(e=r.find(function(e){return o===e.namespaceId}))||void 0===e?void 0:e.name," ")),M.default.createElement(p.default,{type:"down"}))))),visible:!0,cancelText:(0,N.getIntlContent)("SHENYU.COMMON.CLOSE"),onCancel:n,footer:[M.default.createElement(l.default,{key:"back",onClick:n},(0,N.getIntlContent)("SHENYU.COMMON.CLOSE"))]},M.default.createElement(h.default,{gutter:20},M.default.createElement(y.default,{span:10,style:{minWidth:280}},this.renderPluginTree()),M.default.createElement(y.default,{span:14},this.renderSelectorRuleTable())))}}])}(M.Component))||C},"+66z":function(e,t,n){"use strict";function r(e){return a.call(e)}var o=Object.prototype,a=o.toString;e.exports=r},"+6Bu":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},"+CM9":function(e,t,n){"use strict";var r=n("Ds5P"),o=n("ot5s")(!1),a=[].indexOf,i=!!a&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(i||!n("NNrz")(a)),"Array",{indexOf:function(e){return i?a.apply(this,arguments)||0:o(this,e,arguments[1])}})},"+E39":function(e,t,n){"use strict";e.exports=!n("S82l")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"+JsQ":function(e,t,n){"use strict";function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t,n){return t=(0,w.default)(t),(0,O.default)(e,a()?Reflect.construct(t,n||[],(0,w.default)(e).constructor):t.apply(e,n))}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}var i=n("ouCL");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("sRCI");var c=i(n("vnWH"));n("9SSc");var u=i(n("t5Df"));n("faxx");var l=i(n("FV1P"));n("JYrs");var s=i(n("QoDT")),f=i(n("uMMT"));n("crfj");var d=i(n("zwGx"));n("LHBr");var p=i(n("A+AJ"));n("s3t2");var h=i(n("m6wg"));n("/4RJ");var v=i(n("uz+M")),y=i(n("7b0f")),m=i(n("+TWC")),g=i(n("mAPx"));n("UQ5M");var b=i(n("/qCn")),E=i(n("Q9dM")),S=i(n("wm7F")),O=i(n("F6AD")),w=i(n("fghW")),C=i(n("QwVp"));n("cwkc");var _=i(n("8/ER"));n("gZEk");var M,P,N=i(n("8rR3")),T=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var c=a?Object.getOwnPropertyDescriptor(e,i):null;c&&(c.get||c.set)?Object.defineProperty(o,i,c):o[i]=e[i]}return o.default=e,n&&n.set(e,o),o}(n("GiK3")),x=n("S6G3"),k=i(n("ulXC")),j=n("KPPu"),I=i(n("Jcbv")),L=i(n("k2a8")),D=i(n("FsxU")),A=n("oAV5"),R=N.default.Item,U=_.default.Option,H=(M=(0,x.connect)(function(e){return{pluginHandle:e.pluginHandle,shenyuDict:e.shenyuDict,currentNamespaceId:e.global.currentNamespaceId}}))(P=function(e){function t(e){var n;(0,E.default)(this,t),n=o(this,t,[e]),n.initRuleCondition=function(e){var t=e.ruleConditions||[{paramType:"uri",operator:"pathPattern",paramName:"/",paramValue:""}];t.forEach(function(e,r){var o=e.paramType,a="paramTypeValueEn".concat(r);"uri"===o||"host"===o||"ip"===o?(n.state[a]=!0,t[r].paramName="/"):n.state[a]=!1}),n.state.ruleConditions=t},n.initDics=function(){n.initDic("operator"),n.initDic("matchMode"),n.initDic("paramType")},n.initDic=function(e){(0,n.props.dispatch)({type:"shenyuDict/fetchByType",payload:{type:e,callBack:function(t){n.state["".concat(e,"Dics")]=t}}})},n.checkConditions=function(){var e=n.state.ruleConditions,t=!0;return e?e.forEach(function(e,n){var r=e.paramType,o=e.operator,a=e.paramName,i=e.paramValue;r&&o&&("isBlank"===o||i)||(b.default.destroy(),b.default.error("Line ".concat(n+1," condition is incomplete")),t=!1),"uri"===r||"host"===r||"ip"===r||a||(b.default.destroy(),b.default.error("Line ".concat(n+1," condition is incomplete")),t=!1)}):(b.default.destroy(),b.default.error("Incomplete condition"),t=!1),t},n.handleSubmit=function(e){e.preventDefault();var t=n.props,r=t.form,o=t.handleOk,a=t.multiRuleHandle,i=n.state,c=i.ruleConditions,u=i.pluginHandleList,l=i.customRulePage;r.validateFieldsAndScroll(function(e,t){var r=t.name,i=t.matchMode,s=t.loged,f=t.enabled,d=t.matchRestful,p=t.handleType,h=t.handleJSON;if(!e){if(n.checkConditions()){var v;if(!l)switch(p){case"1":v=[],u.forEach(function(e,n){v[n]={},e.forEach(function(e){v[n][e.field]=t[e.field+n]})}),v=a?JSON.stringify(v):JSON.stringify(v[0]);break;case"2":v=h}n.handleComponentRef&&(v=n.handleComponentRef.getData(t)),o({name:r,matchMode:i,handle:v,loged:s,enabled:f,matchRestful:d,sort:Number(t.sort),ruleConditions:c})}}})},n.handleAdd=function(){var e=n.state.ruleConditions;e.push({paramType:"uri",operator:"pathPattern",paramName:"/",paramValue:""}),n.setState({ruleConditions:e},function(){var t=e.length||0,r="paramTypeValueEn".concat(t-1);n.setState((0,g.default)({},r,!0))})},n.handleDelete=function(e){var t=n.state.ruleConditions;t&&t.length>1?t.splice(e,1):(b.default.destroy(),b.default.error("At least one condition")),n.setState({ruleConditions:t})},n.handleAddHandle=function(){var e=n.state.pluginHandleList,t=e[0],r=t.map(function(e){return(0,m.default)({},e,{value:null})});e.push(r),n.setState({pluginHandleList:e})},n.handleDeleteHandle=function(e){var t=n.state.pluginHandleList;1===t.length?(b.default.destroy(),b.default.error((0,j.getIntlContent)("SHENYU.PLUGIN.HANDLE.TIP"))):(t.splice(e,1),n.setState({pluginHandleList:t}))},n.conditionChange=function(e,t,r){var o=n.state.ruleConditions;if(o[e][t]=r,"paramType"===t){var a="paramTypeValueEn".concat(e);"uri"===r||"host"===r||"ip"===r||"req_method"===r||"domain"===r?(n.setState((0,g.default)({},a,!0)),o[e].paramName="/"):n.setState((0,g.default)({},a,!1)),"post"===r&&(o[e].paramName="filedName"),"query"===r&&(o[e].paramName="paramName"),"header"===r&&(o[e].paramName="headerName"),"cookie"===r&&(o[e].paramName="cookieName"),o[e].operator="uri"===r?"pathPattern":"req_method"===r?"=":""}n.setState({ruleConditions:o})},n.handleCopyData=function(e){if(!e)return void n.setState({visible:!1});var t=n.props.form,r=e.ruleConditions,o=e.name,a=e.matchMode,i=e.loged,c=e.enabled,u=e.sort,l={name:o,matchMode:a.toString(),loged:i,enabled:c,sort:u};n.initRuleCondition({ruleConditions:r.map(function(e){e.id,e.selectorId,e.dateCreated,e.dateUpdated;return(0,y.default)(e,["id","selectorId","dateCreated","dateUpdated"])})}),t.setFieldsValue(l),n.setState({visible:!1})},n.renderOperatorOptions=function(e,t){if(e&&e instanceof Array){var n=e.map(function(e){return T.default.createElement(U,{key:e.dictValue,value:e.dictValue},e.dictName)});return"uri"!==t&&(n=n.filter(function(e){return"pathPattern"!==e.key?e:""})),"post"!==t&&"query"!==t&&"header"!==t&&"cookie"!==t&&(n=n.filter(function(e){return"isBlank"!==e.key?e:""})),"uri"!==t&&"host"!==t&&"ip"!==t&&"cookie"!==t&&"domain"!==t||(n=n.filter(function(e){return"TimeBefore"!==e.key&&"TimeAfter"!==e.key?e:""})),"req_method"===t&&(n=n.filter(function(e){return"="===e.key?e:""})),n}return""},n.getParamValueInput=function(e,t){if("TimeBefore"===e.operator||"TimeAfter"===e.operator){var r=new Date,o=r.getFullYear().toString().concat("-").concat(r.getMonth()+1).concat("-").concat(r.getDate());return T.default.createElement(p.default.Group,{compact:!0,style:{top:-2}},T.default.createElement(v.default,{style:{width:"51%"},onChange:function(r){var a=r?r.eraYear().toString().concat("-").concat(r.month()+1).concat("-").concat(r.date()):o;n.conditionChange(t,"paramValue","".concat((0,A.formatDateString)(a)," ").concat((0,A.formatTimeString)(e.paramValue)))},value:(0,A.formatDate)(e.paramValue)}),T.default.createElement(h.default,{style:{width:"49%"},onChange:function(r){var o=r?"".concat(" ").concat(r.hours()).concat(":").concat(r.minutes()).concat(":").concat(r.seconds()):"";n.conditionChange(t,"paramValue","".concat((0,A.formatDateString)(e.paramValue)," ").concat((0,A.formatTimeString)(o)))},value:(0,A.formatTime)(e.paramValue)}))}return T.default.createElement(p.default,{allowClear:!0,onChange:function(e){n.conditionChange(t,"paramValue",e.target.value)},value:e.paramValue})};var r=Object.keys(L.default);return n.state={customRulePage:r.includes(e.pluginName),visible:!1},n.initRuleCondition(e),n.initDics(),n}return(0,C.default)(t,e),(0,S.default)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.dispatch,r=t.pluginId,o=t.handle,a=t.multiRuleHandle,i=t.form.setFieldsValue,c=t.currentNamespaceId;this.setState({pluginHandleList:[]});n({type:"pluginHandle/fetchByPluginId",payload:{pluginId:r,type:2,handle:o,isHandleArray:a,namespaceId:c,callBack:function(t,n){e.setState({pluginHandleList:t},function(){n&&i({handleType:"2",handleJSON:o})})}}})}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.onCancel,o=n.form,a=n.name,i=void 0===a?"":a,h=n.matchMode,v=void 0===h?"":h,y=n.loged,m=void 0===y||y,g=n.enabled,b=void 0===g||g,E=n.matchRestful,S=void 0!==E&&E,O=n.sort,w=void 0===O?"":O,C=n.multiRuleHandle,M=n.pluginName,P=n.handle,x=this.state,A=x.ruleConditions,H=x.pluginHandleList,z=x.operatorDics,Y=x.matchModeDics,V=x.paramTypeDics,F=x.customRulePage,W=x.visible;F?e=L.default[M]:H&&(e=I.default);var G=o.getFieldDecorator,B={labelCol:{sm:{span:3}},wrapperCol:{sm:{span:21}}},K={labelCol:{sm:{span:18}},wrapperCol:{sm:{span:4}}};return T.default.createElement(c.default,{width:1e3,centered:!0,title:(0,j.getIntlContent)("SHENYU.RULE.NAME"),visible:!0,okText:(0,j.getIntlContent)("SHENYU.COMMON.SURE"),cancelText:(0,j.getIntlContent)("SHENYU.COMMON.CALCEL"),onOk:this.handleSubmit,onCancel:r},T.default.createElement(N.default,{onSubmit:this.handleSubmit,className:"login-form"},T.default.createElement(R,(0,f.default)({label:(0,j.getIntlContent)("SHENYU.PLUGIN.SELECTOR.LIST.COLUMN.NAME")},B),G("name",{rules:[{required:!0,message:(0,j.getIntlContent)("SHENYU.COMMON.INPUTNAME")}],initialValue:i})(T.default.createElement(p.default,{allowClear:!0,placeholder:(0,j.getIntlContent)("SHENYU.PLUGIN.SELECTOR.LIST.COLUMN.NAME"),addonAfter:T.default.createElement(d.default,{size:"small",type:"link",onClick:function(){t.setState({visible:!0})}},(0,j.getIntlContent)("SHENYU.PLUGIN.SEARCH.RULE.COPY"))}))),T.default.createElement(D.default,{visible:W,onOk:this.handleCopyData,onCancel:function(){t.setState({visible:!1})}}),T.default.createElement(R,(0,f.default)({label:(0,j.getIntlContent)("SHENYU.COMMON.MATCHTYPE")},B),G("matchMode",{rules:[{required:!0,message:(0,j.getIntlContent)("SHENYU.COMMON.INPUTMATCHTYPE")}],initialValue:"".concat(v)})(T.default.createElement(_.default,null,Y&&Y.map(function(e){return T.default.createElement(U,{key:e.dictValue,value:e.dictValue},e.dictName)})))),T.default.createElement("div",{className:k.default.condition},T.default.createElement(R,(0,f.default)({label:(0,j.getIntlContent)("SHENYU.COMMON.CONDITION"),required:!0},B),A.map(function(e,n){return T.default.createElement(l.default,{key:n,gutter:8},T.default.createElement(s.default,{span:5},T.default.createElement(_.default,{onChange:function(e){t.conditionChange(n,"paramType",e)},value:e.paramType},V&&V.map(function(e){return T.default.createElement(U,{key:e.dictValue,value:e.dictValue},e.dictName)}))),T.default.createElement(s.default,{span:4,style:{display:t.state["paramTypeValueEn".concat(n)]?"none":"block"}},T.default.createElement(p.default,{allowClear:!0,onChange:function(e){t.conditionChange(n,"paramName",e.target.value)},placeholder:e.paramName})),T.default.createElement(s.default,{span:4},T.default.createElement(_.default,{onChange:function(e){t.conditionChange(n,"operator",e)},value:e.operator},t.renderOperatorOptions(z,e.paramType))),T.default.createElement(s.default,{span:7,style:{display:"isBlank"===e.operator?"none":"block"}},t.getParamValueInput(e,n)),T.default.createElement(s.default,{span:4},T.default.createElement(d.default,{type:"danger",onClick:function(){t.handleDelete(n)}},(0,j.getIntlContent)("SHENYU.COMMON.DELETE.NAME"))))})),T.default.createElement(R,(0,f.default)({label:" ",colon:!1},B),T.default.createElement(d.default,{className:k.default.addButton,onClick:this.handleAdd,type:"primary"},(0,j.getIntlContent)("SHENYU.COMMON.ADD")," ",(0,j.getIntlContent)("SHENYU.COMMON.CONDITION")))),e&&T.default.createElement(e,{onRef:function(e){t.handleComponentRef=e},onAddPluginHandle:this.handleAddHandle,onDeletePluginHandle:this.handleDeleteHandle,form:o,pluginHandleList:H,handle:P,multiRuleHandle:C}),T.default.createElement(R,(0,f.default)({label:(0,j.getIntlContent)("SHENYU.SELECTOR.EXEORDER")},B),G("sort",{initialValue:w,rules:[{required:!0,message:(0,j.getIntlContent)("SHENYU.SELECTOR.INPUTNUMBER")},{pattern:/^([1-9][0-9]{0,2}|1000)$/,message:(0,j.getIntlContent)("SHENYU.SELECTOR.INPUTNUMBER")}]})(T.default.createElement(p.default,{allowClear:!0,placeholder:(0,j.getIntlContent)("SHENYU.SELECTOR.INPUTORDER")}))),T.default.createElement(R,(0,f.default)({label:" ",colon:!1},B),T.default.createElement("div",{className:k.default.layout},T.default.createElement(R,(0,f.default)({style:{margin:"0 30px"}},K,{label:(0,j.getIntlContent)("SHENYU.SELECTOR.PRINTLOG")}),G("loged",{initialValue:m,valuePropName:"checked",rules:[{required:!0}]})(T.default.createElement(u.default,null))),T.default.createElement(R,(0,f.default)({},K,{label:(0,j.getIntlContent)("SHENYU.SELECTOR.WHETHEROPEN")}),G("enabled",{initialValue:b,valuePropName:"checked",rules:[{required:!0}]})(T.default.createElement(u.default,null))),T.default.createElement(R,(0,f.default)({style:{margin:"0 30px"}},K,{label:(0,j.getIntlContent)("SHENYU.SELECTOR.MATCHRESTFUL")}),G("matchRestful",{initialValue:S,valuePropName:"checked",rules:[{required:!0}]})(T.default.createElement(u.default,null)))))))}}])}(T.Component))||P;t.default=N.default.create()(H)},"+Mt+":function(e,t,n){"use strict";var r=n("Ds5P"),o=n("7gX0"),a=n("OzIq"),i=n("7O1s"),c=n("nphH");r(r.P+r.R,"Promise",{finally:function(e){var t=i(this,o.Promise||a.Promise),n="function"==typeof e;return this.then(n?function(n){return c(t,e()).then(function(){return n})}:e,n?function(n){return c(t,e()).then(function(){throw n})}:e)}})},"+O3U":function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){var t=e.prefixCls,n=e.motion,o=e.openAnimation,a=e.openTransitionName;if(n)return n;if("object"===r(o)&&o)(0,i.default)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if("string"==typeof o)return{motionName:"".concat(t,"-open-").concat(o)};return a?{motionName:a}:null}var a=n("ouCL");Object.defineProperty(t,"__esModule",{value:!0}),t.getMotion=o;var i=a(n("FfaA"))},"+S09":function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=t.table,o=n.props,a=o.prefixCls,i=o.scroll,u=o.showHeader,d=e.columns,p=e.fixed,h=e.tableClassName,v=e.handleBodyScrollLeft,y=e.expander,m=n.saveRef,g=n.props.useFixedHeader,b={},E=s.measureScrollbar({direction:"vertical"});if(i.y){g=!0;var S=s.measureScrollbar({direction:"horizontal",prefixCls:a});S>0&&!p&&(b.marginBottom="-".concat(S,"px"),b.paddingBottom="0px",b.minWidth="".concat(E,"px"),b.overflowX="scroll",b.overflowY=0===E?"hidden":"scroll")}return g&&u?c.createElement("div",{key:"headTable",ref:p?null:m("headTable"),className:l.default("".concat(a,"-header"),r({},"".concat(a,"-hide-scrollbar"),E>0)),style:b,onScroll:v},c.createElement(f.default,{tableClassName:h,hasHead:!0,hasBody:!1,fixed:p,columns:d,expander:y})):null}var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},i=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c=a(n("GiK3")),u=a(n("KSGD")),l=i(n("HW6M")),s=n("D/j2"),f=i(n("+lkG"));t.default=o,o.contextTypes={table:u.any}},"+SmI":function(e,t,n){"use strict";function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var c=a?Object.getOwnPropertyDescriptor(e,i):null;c&&(c.get||c.set)?Object.defineProperty(o,i,c):o[i]=e[i]}return o.default=e,n&&n.set(e,o),o}function a(e){"@babel/helpers - typeof";return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){return i=Object.assign||function(e){for(var t=1;t0?{marginLeft:y[0]/-2,marginRight:y[0]/-2}:{}),y[1]>0?{marginTop:y[1]/-2,marginBottom:y[1]/-2}:{}),d),S=i({},h);return delete S.gutter,b.createElement(O.default.Provider,{value:{gutter:y}},b.createElement("div",i({},S,{className:m,style:g}),p))},e}f(t,e);var n=p(t);return s(t,[{key:"componentDidMount",value:function(){var e=this;this.token=w.default.subscribe(function(t){var n=e.props.gutter;("object"===a(n)||Array.isArray(n)&&("object"===a(n[0])||"object"===a(n[1])))&&e.setState({screens:t})})}},{key:"componentWillUnmount",value:function(){w.default.unsubscribe(this.token)}},{key:"getGutter",value:function(){var e=[0,0],t=this.props.gutter,n=this.state.screens;return(Array.isArray(t)?t:[t,0]).forEach(function(t,r){if("object"===a(t))for(var o=0;o2&&void 0!==arguments[2]?arguments[2]:[],o=e.context.table,a=o.columnManager,i=o.components,c=o.props,u=c.prefixCls,l=c.childrenColumnName,s=c.rowClassName,f=c.rowRef,d=c.onRowClick,p=c.onRowDoubleClick,h=c.onRowContextMenu,v=c.onRowMouseEnter,y=c.onRowMouseLeave,m=c.onRow,g=e.props,E=g.getRowKey,S=g.fixed,O=g.expander,w=g.isAnyColumnsFixed,C=[],P=0;P0})}var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(n("GiK3")),c=o(n("KSGD")),u=a(n("6Fr6")),l=function(e,t){var n=t.table,o=n.components,a=n.props,c=a.prefixCls,l=a.showHeader,s=a.onHeaderRow,f=e.expander,d=e.columns,p=e.fixed;if(!l)return null;var h=r({columns:d});f.renderExpandIndentCell(h,p);var v=o.header.wrapper;return i.createElement(v,{className:"".concat(c,"-thead")},h.map(function(e,t){return i.createElement(u.default,{prefixCls:c,key:t,index:t,fixed:p,columns:d,rows:h,row:e,components:o,onHeaderRow:s})}))};l.contextTypes={table:c.any},t.default=l},"+onY":function(e,t,n){"use strict";function r(){function e(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}function t(e,t,n,r){var a=t&&t.prototype instanceof o?t:o,i=Object.create(a.prototype),c=new p(r||[]);return b(i,"_invoke",{value:l(e,n,c)}),i}function n(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function o(){}function a(){}function i(){}function c(t){["next","throw","return"].forEach(function(n){e(t,n,function(e){return this._invoke(n,e)})})}function u(e,t){function r(o,a,i,c){var u=n(e[o],e,a);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&g.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(s).then(function(e){l.value=e,i(l)},function(e){return r("throw",e,i,c)})}c(u.arg)}var o;b(this,"_invoke",{value:function(e,n){function a(){return new t(function(t,o){r(e,n,t,o)})}return o=o?o.then(a,a):a()}})}function l(e,t,r){var o=C;return function(a,i){if(o===M)throw Error("Generator is already running");if(o===P){if("throw"===a)throw i;return{value:v,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var u=s(c,r);if(u){if(u===N)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===C)throw o=P,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=M;var l=n(e,t,r);if("normal"===l.type){if(o=r.done?P:_,l.arg===N)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=P,r.method="throw",r.arg=l.arg)}}}function s(e,t){var r=t.method,o=e.iterator[r];if(o===v)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=v,s(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),N;var a=n(o,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,N;var i=a.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=v),t.delegate=null,N):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,N)}function f(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function d(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function p(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(f,this),this.reset(!0)}function h(e){if(e||""===e){var t=e[S];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var i=g.call(o,"catchLoc"),c=g.call(o,"finallyLoc");if(i&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&g.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),d(n),N}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;d(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:h(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=v),N}},y}var o=n("ouCL");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n("+TWC"));n("UQ5M");var i=o(n("/qCn")),c=n("KPPu"),u=n("H/Zg");t.default={namespace:"alert",state:{alertList:[],total:0},effects:{fetch:function(e,t){var n=e.payload,o=t.call,a=t.put;return r().mark(function e(){var t;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o(u.getAlertReceivers,n);case 2:return t=e.sent,e.next=5,a({type:"save",payload:t.data});case 5:case"end":return e.stop()}},e)})()},fetchItem:function(e,t){var n=e.payload,o=e.callback,a=t.call;return r().mark(function e(){var t,i;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a(u.getAlertReceiverDetail,n);case 2:t=e.sent,200===t.code&&(i=t.data,o(i));case 4:case"end":return e.stop()}},e)})()},update:function(e,t){var n=t.call;return r().mark(function t(){var o,a,l;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=e.payload,a=e.callback,t.next=3,n(u.updateAlertReceiver,o);case 3:l=t.sent,200===l.code?(i.default.success((0,c.getIntlContent)("SHENYU.COMMON.RESPONSE.UPDATE.SUCCESS")),a()):i.default.warn(l.message);case 5:case"end":return t.stop()}},t)})()},add:function(e,t){var n=t.call;return r().mark(function t(){var o,a,l;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=e.payload,a=e.callback,t.next=3,n(u.addAlertReceiver,o);case 3:l=t.sent,200===l.code?(i.default.success((0,c.getIntlContent)("SHENYU.COMMON.RESPONSE.ADD.SUCCESS")),a()):i.default.warn(l.message);case 5:case"end":return t.stop()}},t)})()},delete:function(e,t){var n=t.call,o=t.put;return r().mark(function t(){var a,l,s,f,d;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e.payload,l=e.fetchValue,s=e.callback,f=a.list,t.next=4,n(u.deleteAlertReceivers,{list:f});case 4:if(d=t.sent,200!==d.code){t.next=12;break}return i.default.success((0,c.getIntlContent)("SHENYU.COMMON.RESPONSE.DELETE.SUCCESS")),s(),t.next=10,o({type:"reload",fetchValue:l});case 10:t.next=13;break;case 12:i.default.warn(d.message);case 13:case"end":return t.stop()}},t)})()},sendTest:function(e,t){var n=t.call;return r().mark(function t(){var o,a;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=e.payload,t.next=3,n(u.fetchAlertReport,o);case 3:a=t.sent,200===a.code?i.default.success((0,c.getIntlContent)("SHENYU.SYSTEM.ALERT.SEND_SUCCESS")):i.default.warn(a.message);case 5:case"end":return t.stop()}},t)})()},reload:function(e,t){var n=t.put;return r().mark(function t(){var o,a,i,c,u;return r().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=e.fetchValue,a=o.userName,i=o.currentPage,c=o.pageSize,u={userName:a,currentPage:i,pageSize:c},t.next=5,n({type:"fetch",payload:u});case 5:case"end":return t.stop()}},t)})()}},reducers:{save:function(e,t){var n=t.payload;return(0,a.default)({},e,{alertList:n.dataList,total:n.page.totalCount})}}}},"+qAU":function(e,t,n){"use strict";function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(e){var t={};return e.forEach(function(e){e.children?(t[e.path]=(0,u.default)({},e),t=(0,u.default)({},t,o(e.children))):t[e.path]=(0,u.default)({},e)}),t}var a=n("ouCL");Object.defineProperty(t,"__esModule",{value:!0}),t.getRouterData=void 0,n("QeQB");var i,c=a(n("9YyC")),u=a(n("+TWC")),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var c=a?Object.getOwnPropertyDescriptor(e,i):null;c&&(c.get||c.set)?Object.defineProperty(o,i,c):o[i]=e[i]}return o.default=e,n&&n.set(e,o),o}(n("GiK3")),s=a(n("Ygqm")),f=a(n("wF3A")),d=n("hbqV"),p=function(e,t){return!e._models.some(function(e){return e.namespace===t.substring(t.lastIndexOf("/")+1)})},h=function(e,t,r){return t.forEach(function(t){p(e,t)&&e.model(n("Nosr")("./".concat(t)).default)}),r.toString().indexOf(".then(")<0?function(t){return i||(i=v(e)),(0,l.createElement)(r().default,(0,u.default)({},t,{routerData:i}))}:(0,f.default)({loader:function(){return i||(i=v(e)),r().then(function(e){var t=e.default||e;return function(e){return(0,l.createElement)(t,(0,u.default)({},e,{routerData:i}))}})},loading:function(){return l.default.createElement(c.default,{size:"large",className:"global-spin"})}})},v=t.getRouterData=function(e){var t={"/":{component:h(e,["user","login"],function(){return n("DHwf")})},"/home":{component:h(e,[],function(){return n("323G")})},"/plug/Proxy/tcp":{component:h(e,["discovery"],function(){return n("l7RC")})},"/plug/:index/:id":{component:h(e,["common"],function(){return n("h3OB")})},"/system/role":{component:h(e,["role"],function(){return n("fZnx")})},"/system/manage":{component:h(e,["manage","dataPermission"],function(){return n("D3bK")})},"/system/resource":{component:h(e,["resource"],function(){return n("/yYg")})},"/system/alert":{component:h(e,["alert"],function(){return n("bONh")})},"/system/scale":{component:h(e,["scale"],function(){return n("gScS")})},"/config/namespace":{component:h(e,["namespace"],function(){return n("dnYn")})},"/config/metadata":{component:h(e,["metadata"],function(){return n("lc1p")})},"/config/plugin":{component:h(e,["plugin"],function(){return n("4hw0")})},"/config/namespacePlugin":{component:h(e,["namespacePlugin"],function(){return n("q7oK")})},"/config/pluginhandle":{component:h(e,["pluginHandle"],function(){return n("G77e")})},"/config/auth":{component:h(e,["auth"],function(){return n("GK6n")})},"/config/dict":{component:h(e,["shenyuDict"],function(){return n("yEtj")})},"/exception/403":{component:h(e,[],function(){return n("ZvE8")})},"/exception/404":{component:h(e,[],function(){return n("AKeG")})},"/exception/500":{component:h(e,[],function(){return n("SD4e")})},"/exception/trigger":{component:h(e,["error"],function(){return n("NqYp")})},"/user":{component:h(e,[],function(){return n("HBAr")})},"/user/login":{component:h(e,["login"],function(){return n("YQFU")})},"/document/apidoc":{component:h(e,[],function(){return n("pmoi")})}},r=o((0,d.getMenuData)()),a={};return Object.keys(t).forEach(function(e){var n=(0,s.default)(e),o=Object.keys(r).find(function(e){return n.test("".concat(e))}),i={};o&&(i=r[o]);var c=t[e];c=(0,u.default)({},c,{name:c.name||i.name,authority:c.authority||i.authority,hideInBreadcrumb:c.hideInBreadcrumb||i.hideInBreadcrumb}),a[e]=c}),a}},"+tPU":function(e,t,n){"use strict";n("xGkn");for(var r=n("7KvD"),o=n("hJx8"),a=n("/bQp"),i=n("dSzd")("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var i=g.call(o,"catchLoc"),c=g.call(o,"finallyLoc");if(i&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&g.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),d(n),N}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;d(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:h(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=v),N}},y}var o=n("ouCL");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n("+TWC")),i=n("ye8Q");t.default={namespace:"user",state:{list:[],currentUser:{}},effects:{fetch:function(e,t){var n=t.call,o=t.put;return r().mark(function e(){var t;return r().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n(i.query);case 2:return t=e.sent,e.next=5,o({type:"save",payload:t});case 5:case"end":return e.stop()}},e)})()}},reducers:{save:function(e,t){return(0,a.default)({},e,{list:t.payload})}}}},"/Buz":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.throttleHelper=t.takeLatestHelper=t.takeEveryHelper=t.throttle=t.takeLatest=t.takeEvery=void 0;var o=n("BBfo"),a=r(o),i=n("82NP"),c=r(i),u=n("eS/4"),l=r(u),s=n("m6tM"),f=function(e){return"import { "+e+" } from 'redux-saga' has been deprecated in favor of import { "+e+" } from 'redux-saga/effects'.\nThe latter will not work with yield*, as helper effects are wrapped automatically for you in fork effect.\nTherefore yield "+e+" will return task descriptor to your saga and execute next lines of code."},d=(0,s.deprecate)(a.default,f("takeEvery")),p=(0,s.deprecate)(c.default,f("takeLatest")),h=(0,s.deprecate)(l.default,f("throttle"));t.takeEvery=d,t.takeLatest=p,t.throttle=h,t.takeEveryHelper=a.default,t.takeLatestHelper=c.default,t.throttleHelper=l.default},"/F+I":function(e,t,n){"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},"/HXD":function(e,t,n){"use strict";function r(e){return e.type===v.literal}function o(e){return e.type===v.argument}function a(e){return e.type===v.number}function i(e){return e.type===v.date}function c(e){return e.type===v.time}function u(e){return e.type===v.select}function l(e){return e.type===v.plural}function s(e){return e.type===v.pound}function f(e){return!(!e||"object"!=typeof e||0!==e.type)}function d(e){return!(!e||"object"!=typeof e||1!==e.type)}function p(e){return{type:v.literal,value:e}}function h(e,t){return{type:v.number,value:e,style:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.TYPE=void 0,t.createLiteralElement=p,t.createNumberElement=h,t.isArgumentElement=o,t.isDateElement=i,t.isDateTimeSkeleton=d,t.isLiteralElement=r,t.isNumberElement=a,t.isNumberSkeleton=f,t.isPluralElement=l,t.isPoundElement=s,t.isSelectElement=u,t.isTimeElement=c;var v;!function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound"}(v||(t.TYPE=v={}))},"/I3N":function(e,t,n){"use strict";function r(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=r},"/OLF":function(e,t,n){"use strict";function r(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}function O(e,t,n,r,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a}function w(e){return e[1].toUpperCase()}function C(e,t,n,r){var o=pa.hasOwnProperty(t)?pa[t]:null;(null!==o?0===o.type:!r&&(2=n.length))throw Error(r(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:T(n)}}function G(e,t){var n=T(t.value),r=T(t.defaultValue);null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function B(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function K(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function q(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?K(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function Q(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function X(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function J(e){if(Ra[e])return Ra[e];if(!Aa[e])return e;var t,n=Aa[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ua)return Ra[e]=n[t];return e}function Z(e){var t=Ka.get(e);return void 0===t&&(t=new Map,Ka.set(e,t)),t}function $(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{t=e,0!=(1026&t.effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function ee(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function te(e){if($(e)!==e)throw Error(r(188))}function ne(e){var t=e.alternate;if(!t){if(null===(t=$(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,o=t;;){var a=n.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(o=a.return)){n=o;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return te(a),e;if(i===o)return te(a),t;i=i.sibling}throw Error(r(188))}if(n.return!==o.return)n=a,o=i;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,o=i;break}if(u===o){c=!0,o=a,n=i;break}u=u.sibling}if(!c){for(u=i.child;u;){if(u===n){c=!0,n=i,o=a;break}if(u===o){c=!0,o=i,n=a;break}u=u.sibling}if(!c)throw Error(r(189))}}if(n.alternate!==o)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}function re(e){if(!(e=ne(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function oe(e,t){if(null==t)throw Error(r(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function ae(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}function ie(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;rQa.length&&Qa.push(e)}function fe(e,t,n,r){if(Qa.length){var o=Qa.pop();return o.topLevelType=e,o.eventSystemFlags=r,o.nativeEvent=t,o.targetInst=n,o}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function de(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;t=n.tag,5!==t&&6!==t||e.ancestors.push(n),n=qe(r)}while(n);for(n=0;n=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=He(n)}}function Ye(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Ye(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Ve(){for(var e=window,t=Ue();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;e=t.contentWindow,t=Ue(e.document)}return t}function Fe(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function We(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Ge(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function Be(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Ke(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===bi||n===Oi||n===Si){if(0===t)return e;t--}else n===Ei&&t++}e=e.previousSibling}return null}function qe(e){var t=e[Ni];if(t)return t;for(var n=e.parentNode;n;){if(t=n[xi]||n[Ni]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Ke(e);null!==e;){if(n=e[Ni])return n;e=Ke(e)}return t}e=n,n=e.parentNode}return null}function Qe(e){return e=e[Ni]||e[xi],!e||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Xe(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(r(33))}function Je(e){return e[Ti]||null}function Ze(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function $e(e,t){var n=e.stateNode;if(!n)return null;var o=Ko(n);if(!o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!("button"===e||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}function et(e,t,n){(t=$e(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=oe(n._dispatchListeners,t),n._dispatchInstances=oe(n._dispatchInstances,e))}function tt(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Ze(t);for(t=n.length;0this.eventPool.length&&this.eventPool.push(e)}function ft(e){e.eventPool=[],e.getPooled=lt,e.release=st}function dt(e,t){switch(e){case"keyup":return-1!==Ai.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function pt(e){return e=e.detail,"object"==typeof e&&"data"in e?e.data:null}function ht(e,t){switch(e){case"compositionend":return pt(t);case"keypress":return 32!==t.which?null:(Fi=!0,Yi);case"textInput":return e=t.data,e===Yi&&Fi?null:e;default:return null}}function vt(e,t){if(Wi)return"compositionend"===e||!Ri&&dt(e,t)?(e=at(),Ii=ji=ki=null,Wi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1Lc||(e.current=Ic[Lc],Ic[Lc]=null,Lc--)}function Lt(e,t){Lc++,Ic[Lc]=e.current,e.current=t}function Dt(e,t){var n=e.type.contextTypes;if(!n)return Dc;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function At(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Rt(){It(Rc),It(Ac)}function Ut(e,t,n){if(Ac.current!==Dc)throw Error(r(168));Lt(Ac,t),Lt(Rc,n)}function Ht(e,t,n){var o=e.stateNode;if(e=t.childContextTypes,"function"!=typeof o.getChildContext)return n;o=o.getChildContext();for(var a in o)if(!(a in e))throw Error(r(108,P(t)||"Unknown",a));return zo({},n,{},o)}function zt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dc,Uc=Ac.current,Lt(Ac,e),Lt(Rc,Rc.current),!0}function Yt(e,t,n){var o=e.stateNode;if(!o)throw Error(r(169));n?(e=Ht(e,t,Uc),o.__reactInternalMemoizedMergedChildContext=e,It(Rc),It(Ac),Lt(Ac,e)):It(Rc),Lt(Rc,n)}function Vt(){switch(Wc()){case Gc:return 99;case Bc:return 98;case Kc:return 97;case qc:return 96;case Qc:return 95;default:throw Error(r(332))}}function Ft(e){switch(e){case 99:return Gc;case 98:return Bc;case 97:return Kc;case 96:return qc;case 95:return Qc;default:throw Error(r(332))}}function Wt(e,t){return e=Ft(e),Hc(e,t)}function Gt(e,t,n){return e=Ft(e),zc(e,t,n)}function Bt(e){return null===$c?($c=[e],eu=zc(Gc,qt)):$c.push(e),Xc}function Kt(){if(null!==eu){var e=eu;eu=null,Yc(e)}qt()}function qt(){if(!tu&&null!==$c){tu=!0;var e=0;try{var t=$c;Wt(99,function(){for(;e=t&&(Du=!0),e.firstContext=null)}function tn(e,t){if(cu!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(cu=e,t=1073741823),t={context:e,observedBits:t,next:null},null===iu){if(null===au)throw Error(r(308));iu=t,au.dependencies={expirationTime:0,firstContext:t,responders:null}}else iu=iu.next=t;return e._currentValue}function nn(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function rn(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function on(e,t){return e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null},e.next=e}function an(e,t){if(null!==(e=e.updateQueue)){e=e.shared;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function cn(e,t){var n=e.alternate;null!==n&&rn(n,e),e=e.updateQueue,n=e.baseQueue,null===n?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function un(e,t,n,r){var o=e.updateQueue;uu=!1;var a=o.baseQueue,i=o.shared.pending;if(null!==i){if(null!==a){var c=a.next;a.next=i.next,i.next=c}a=i,o.shared.pending=null,c=e.alternate,null!==c&&null!==(c=c.updateQueue)&&(c.baseQueue=i)}if(null!==a){c=a.next;var u=o.baseState,l=0,s=null,f=null,d=null;if(null!==c)for(var p=c;;){if((i=p.expirationTime)l&&(l=i)}else{null!==d&&(d=d.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),Jr(i,p.suspenseConfig);e:{var v=e,y=p;switch(i=t,h=n,y.tag){case 1:if("function"==typeof(v=y.payload)){u=v.call(h,u,i);break e}u=v;break e;case 3:v.effectTag=-4097&v.effectTag|64;case 0:if(v=y.payload,null===(i="function"==typeof v?v.call(h,u,i):v)||void 0===i)break e;u=zo({},u,i);break e;case 2:uu=!0}}null!==p.callback&&(e.effectTag|=32,i=o.effects,null===i?o.effects=[p]:i.push(p))}if(null===(p=p.next)||p===c){if(null===(i=o.shared.pending))break;p=a.next=i.next,i.next=c,o.baseQueue=a=i,o.shared.pending=null}}null===d?s=u:d.next=f,o.baseState=s,o.baseQueue=d,Zr(l),e.expirationTime=l,e.memoizedState=u}}function ln(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;tv?(y=f,f=null):y=f.sibling;var m=p(r,f,c[v],u);if(null===m){null===f&&(f=y);break}e&&f&&null===m.alternate&&t(r,f),a=i(m,a,v),null===s?l=m:s.sibling=m,s=m,f=y}if(v===c.length)return n(r,f),l;if(null===f){for(;vy?(m=v,v=null):m=v.sibling;var b=p(a,v,g.value,l);if(null===b){null===v&&(v=m);break}e&&v&&null===b.alternate&&t(a,v),c=i(b,c,y),null===f?s=b:f.sibling=b,f=b,v=m}if(g.done)return n(a,v),s;if(null===v){for(;!g.done;y++,g=u.next())null!==(g=d(a,g.value,l))&&(c=i(g,c,y),null===f?s=g:f.sibling=g,f=g);return s}for(v=o(a,v);!g.done;y++,g=u.next())null!==(g=h(v,a,y,g.value,l))&&(e&&null!==g.alternate&&v.delete(null===g.key?y:g.key),c=i(g,c,y),null===f?s=g:f.sibling=g,f=g);return e&&v.forEach(function(e){return t(a,e)}),s}return function(e,o,i,u){var l="object"==typeof i&&null!==i&&i.type===Sa&&null===i.key;l&&(i=i.props.children);var s="object"==typeof i&&null!==i;if(s)switch(i.$$typeof){case ba:e:{for(s=i.key,l=o;null!==l;){if(l.key===s){switch(l.tag){case 7:if(i.type===Sa){n(e,l.sibling),o=a(l,i.props.children),o.return=e,e=o;break e}break;default:if(l.elementType===i.type){n(e,l.sibling),o=a(l,i.props),o.ref=vn(e,l,i),o.return=e,e=o;break e}}n(e,l);break}t(e,l),l=l.sibling}i.type===Sa?(o=So(i.props.children,e.mode,u,i.key),o.return=e,e=o):(u=Eo(i.type,i.key,i.props,null,e.mode,u),u.ref=vn(e,o,i),u.return=e,e=u)}return c(e);case Ea:e:{for(l=i.key;null!==o;){if(o.key===l){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){n(e,o.sibling),o=a(o,i.children||[]),o.return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}o=wo(i,e.mode,u),o.return=e,e=o}return c(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==o&&6===o.tag?(n(e,o.sibling),o=a(o,i),o.return=e,e=o):(n(e,o),o=Oo(i,e.mode,u),o.return=e,e=o),c(e);if(du(i))return v(e,o,i,u);if(_(i))return y(e,o,i,u);if(s&&yn(e,i),void 0===i&&!l)switch(e.tag){case 1:case 0:throw e=e.type,Error(r(152,e.displayName||e.name||"Component"))}return n(e,o)}}function gn(e){if(e===vu)throw Error(r(174));return e}function bn(e,t){switch(Lt(gu,t),Lt(mu,e),Lt(yu,vu),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:q(null,"");break;default:e=8===e?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=q(t,e)}It(yu),Lt(yu,t)}function En(){It(yu),It(mu),It(gu)}function Sn(e){gn(gu.current);var t=gn(yu.current),n=q(t,e.type);t!==n&&(Lt(mu,e),Lt(yu,n))}function On(e){mu.current===e&&(It(yu),It(mu))}function wn(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===Si||n.data===Oi))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Cn(e,t){return{responder:e,props:t}}function _n(){throw Error(r(321))}function Mn(e,t){if(null===t)return!1;for(var n=0;ni))throw Error(r(301));i+=1,_u=Cu=null,t.updateQueue=null,Eu.current=xu,e=n(o,a)}while(t.expirationTime===Ou)}if(Eu.current=Pu,t=null!==Cu&&null!==Cu.next,Ou=0,_u=Cu=wu=null,Mu=!1,t)throw Error(r(300));return e}function Nn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===_u?wu.memoizedState=_u=e:_u=_u.next=e,_u}function Tn(){if(null===Cu){var e=wu.alternate;e=null!==e?e.memoizedState:null}else e=Cu.next;var t=null===_u?wu.memoizedState:_u.next;if(null!==t)_u=t,Cu=e;else{if(null===e)throw Error(r(310));Cu=e,e={memoizedState:Cu.memoizedState,baseState:Cu.baseState,baseQueue:Cu.baseQueue,queue:Cu.queue,next:null},null===_u?wu.memoizedState=_u=e:_u=_u.next=e}return _u}function xn(e,t){return"function"==typeof t?t(e):t}function kn(e){var t=Tn(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var o=Cu,a=o.baseQueue,i=n.pending;if(null!==i){if(null!==a){var c=a.next;a.next=i.next,i.next=c}o.baseQueue=a=i,n.pending=null}if(null!==a){a=a.next,o=o.baseState;var u=c=i=null,l=a;do{var s=l.expirationTime;if(swu.expirationTime&&(wu.expirationTime=s,Zr(s))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),Jr(s,l.suspenseConfig),o=l.eagerReducer===e?l.eagerState:e(o,l.action);l=l.next}while(null!==l&&l!==a);null===u?i=o:u.next=c,uc(o,t.memoizedState)||(Du=!0),t.memoizedState=o,t.baseState=i,t.baseQueue=u,n.lastRenderedState=o}return[t.memoizedState,n.dispatch]}function jn(e){var t=Tn(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var o=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var c=a=a.next;do{i=e(i,c.action),c=c.next}while(c!==a);uc(i,t.memoizedState)||(Du=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,o]}function In(e){var t=Nn();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:xn,lastRenderedState:e},e=e.dispatch=qn.bind(null,wu,e),[t.memoizedState,e]}function Ln(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=wu.updateQueue,null===t?(t={lastEffect:null},wu.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,null===n?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Dn(){return Tn().memoizedState}function An(e,t,n,r){var o=Nn();wu.effectTag|=e,o.memoizedState=Ln(1|t,n,void 0,void 0===r?null:r)}function Rn(e,t,n,r){var o=Tn();r=void 0===r?null:r;var a=void 0;if(null!==Cu){var i=Cu.memoizedState;if(a=i.destroy,null!==r&&Mn(r,i.deps))return void Ln(t,n,a,r)}wu.effectTag|=e,o.memoizedState=Ln(1|t,n,a,r)}function Un(e,t){return An(516,4,e,t)}function Hn(e,t){return Rn(516,4,e,t)}function zn(e,t){return Rn(4,2,e,t)}function Yn(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Vn(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Rn(4,2,Yn.bind(null,t,e),n)}function Fn(){}function Wn(e,t){return Nn().memoizedState=[e,void 0===t?null:t],e}function Gn(e,t){var n=Tn();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Mn(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Bn(e,t){var n=Tn();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Mn(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Kn(e,t,n){var r=Vt();Wt(98>r?98:r,function(){e(!0)}),Wt(97<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=c.createElement(a,{is:o.is}):(e=c.createElement(a),"select"===a&&(c=e,o.multiple?c.multiple=!0:o.size&&(c.size=o.size))):e=c.createElementNS(e,a),e[Ni]=t,e[Ti]=o,Tc(e,t,!1,!1),t.stateNode=e,c=De(a,o),a){case"iframe":case"object":case"embed":Me("load",e),u=o;break;case"video":case"audio":for(u=0;uo.tailExpiration&&1t)&&bl.set(e,t))}}function zr(e,t){e.expirationTimee?n:e,2>=e&&t!==e?0:e}function Vr(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Bt(Wr.bind(null,e));else{var t=Yr(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Rr();if(1073741823===t?r=99:1===t||2===t?r=95:(r=10*(1073741821-t)-10*(1073741821-r),r=0>=r?99:250>=r?98:5250>=r?97:95),null!==n){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==Xc&&Yc(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Bt(Wr.bind(null,e)):Gt(r,Fr.bind(null,e),{timeout:10*(1073741821-t)-ru()}),e.callbackNode=t}}}function Fr(e,t){if(Ol=0,t)return t=Rr(),No(e,t),Vr(e),null;var n=Yr(e);if(0!==n){if(t=e.callbackNode,($u&(Gu|Bu))!==Fu)throw Error(r(327));if(co(),e===el&&n===nl||qr(e,n),null!==tl){var o=$u;$u|=Gu;for(var a=Xr();;)try{eo();break}catch(t){Qr(e,t)}if(Jt(),$u=o,Yu.current=a,rl===qu)throw t=ol,qr(e,n),Mo(e,n),Vr(e),t;if(null===tl)switch(a=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,o=rl,el=null,o){case Ku:case qu:throw Error(r(345));case Qu:No(e,2=n){e.lastPingedTime=n,qr(e,n);break}}if(0!==(i=Yr(e))&&i!==n)break;if(0!==o&&o!==n){e.lastPingedTime=o;break}e.timeoutHandle=_i(oo.bind(null,e),a);break}oo(e);break;case Ju:if(Mo(e,n),o=e.lastSuspendedTime,n===o&&(e.nextKnownPendingLevel=ro(a)),ll&&(0===(a=e.lastPingedTime)||a>=n)){e.lastPingedTime=n,qr(e,n);break}if(0!==(a=Yr(e))&&a!==n)break;if(0!==o&&o!==n){e.lastPingedTime=o;break}if(1073741823!==il?o=10*(1073741821-il)-ru():1073741823===al?o=0:(o=10*(1073741821-al)-5e3,a=ru(),n=10*(1073741821-n)-a,o=a-o,0>o&&(o=0),o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*zu(o/1960))-o,n=o?o=0:(a=0|c.busyDelayMs,i=ru()-(10*(1073741821-i)-(0|c.timeoutMs||5e3)),o=i<=a?0:a+o-i),10 component higher in the tree to provide a loading indicator or placeholder to display."+N(i))}rl!==Zu&&(rl=Qu),c=gr(c,i),f=a;do{switch(f.tag){case 3:u=c,f.effectTag|=4096,f.expirationTime=t;cn(f,Dr(f,u,t));break e;case 1:u=c;var E=f.type,S=f.stateNode;if(0==(64&f.effectTag)&&("function"==typeof E.getDerivedStateFromError||null!==S&&"function"==typeof S.componentDidCatch&&(null===vl||!vl.has(S)))){f.effectTag|=4096,f.expirationTime=t;cn(f,Ar(f,u,t));break e}}f=f.return}while(null!==f)}tl=no(tl)}catch(e){t=e;continue}break}}function Xr(){var e=Yu.current;return Yu.current=Pu,null===e?Pu:e}function Jr(e,t){eul&&(ul=e)}function $r(){for(;null!==tl;)tl=to(tl)}function eo(){for(;null!==tl&&!Jc();)tl=to(tl)}function to(e){var t=Ru(e.alternate,e,nl);return e.memoizedProps=e.pendingProps,null===t&&(t=no(e)),Vu.current=null,t}function no(e){tl=e;do{var t=tl.alternate;if(e=tl.return,0==(2048&tl.effectTag)){if(t=yr(t,tl,nl),1===nl||1!==tl.childExpirationTime){for(var n=0,r=tl.child;null!==r;){var o=r.expirationTime,a=r.childExpirationTime;o>n&&(n=o),a>n&&(n=a),r=r.sibling}tl.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=tl.firstEffect),null!==tl.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=tl.firstEffect),e.lastEffect=tl.lastEffect),1e?t:e}function oo(e){var t=Vt();return Wt(99,ao.bind(null,e,t)),null}function ao(e,t){do{co()}while(null!==ml);if(($u&(Gu|Bu))!==Fu)throw Error(r(327));var n=e.finishedWork,o=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var a=ro(n);if(e.firstPendingTime=a,o<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:o<=e.firstSuspendedTime&&(e.firstSuspendedTime=o-1),o<=e.lastPingedTime&&(e.lastPingedTime=0),o<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===el&&(tl=el=null,nl=0),1u&&(s=u,u=c,c=s),s=ze(E,c),f=ze(E,u),s&&f&&(1!==O.rangeCount||O.anchorNode!==s.node||O.anchorOffset!==s.offset||O.focusNode!==f.node||O.focusOffset!==f.offset)&&(S=S.createRange(),S.setStart(s.node,s.offset),O.removeAllRanges(),c>u?(O.addRange(S),O.extend(f.node,f.offset)):(S.setEnd(f.node,f.offset),O.addRange(S)))))),S=[];for(O=E;O=O.parentNode;)1===O.nodeType&&S.push({element:O,left:O.scrollLeft,top:O.scrollTop});for("function"==typeof E.focus&&E.focus(),E=0;E=t&&e<=t}function Mo(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;nt||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Po(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function No(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function To(e,t,n,o){var a=t.current,i=Rr(),c=lu.suspense;i=Ur(i,a,c);e:if(n){n=n._reactInternalFiber;t:{if($(n)!==n||1!==n.tag)throw Error(r(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(At(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(r(171))}if(1===n.tag){var l=n.type;if(At(l)){n=Ht(n,l,u);break e}}n=u}else n=Dc;return null===t.context?t.context=n:t.pendingContext=n,t=on(i,c),t.payload={element:e},o=void 0===o?null:o,null!==o&&(t.callback=o),an(a,t),Hr(a,i),i}function xo(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function ko(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime