You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5 lines
86 KiB

3 years ago
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[301],{7700:function(){},2828:function(){},56264:function(){},17124:function(){},53645:function(){},12395:function(){},43361:function(){},17212:function(){},70883:function(){},81262:function(){},59903:function(){},18067:function(){},74198:function(ce,pe,h){"use strict";h.r(pe),h.d(pe,{default:function(){return Xo}});var w=h(11849),F=h(57337),o=h(67294),P=h(4614),K=h(99222),Y=h(93224),Ee=h(73727),He=h(24793),xe=h(97183),O=h(96156),Ye=h(87757),Ze=h.n(Ye),T=h(92137),I=h(81253),D=h(84305),U=h(75901),H=h(28481),p=h(28991),N=h(22122),se=h(7700),L=h(94184),E=h.n(L),q=h(42473),_=h.n(q),G=h(21770),ae=h(38069),Me=h(56725),Je=h(12044);function Zt(n,e){var t=typeof n.pageName=="string"?n.title:e;(0,o.useEffect)(function(){(0,Je.Z)()&&t&&(document.title=t)},[n.title,t])}var Mt=Zt,Ce=h(97435),ze=h(29405),Pt=h(21879),ke=h.n(Pt),qe=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function _e(n,e){return!!(n===e||qe(n)&&qe(e))}function et(n,e){if(n.length!==e.length)return!1;for(var t=0;t<n.length;t++)if(!_e(n[t],e[t]))return!1;return!0}function an(n,e){e===void 0&&(e=et);var t,r=[],i,a=!1;function l(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];return a&&t===this&&e(u,r)||(i=n.apply(this,u),a=!0,t=this,r=u),i}return l}var Xt=an;function on(n){for(var e=[],t=0;t<n.length;){var r=n[t];if(r==="*"||r==="+"||r==="?"){e.push({type:"MODIFIER",index:t,value:n[t++]});continue}if(r==="\\"){e.push({type:"ESCAPED_CHAR",index:t++,value:n[t++]});continue}if(r==="{"){e.push({type:"OPEN",index:t,value:n[t++]});continue}if(r==="}"){e.push({type:"CLOSE",index:t,value:n[t++]});continue}if(r===":"){for(var i="",a=t+1;a<n.length;){var l=n.charCodeAt(a);if(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||l===95){i+=n[a++];continue}break}if(!i)throw new TypeError("Missing parameter name at "+t);e.push({type:"NAME",index:t,value:i}),t=a;continue}if(r==="("){var u=1,c="",a=t+1;if(n[a]==="?")throw new TypeError('Pattern cannot start with "?" at '+a);for(;a<n.length;){if(n[a]==="\\"){c+=n[a++]+n[a++];continue}if(n[a]===")"){if(u--,u===0){a++;break}}else if(n[a]==="("&&(u++,n[a+1]!=="?"))throw new TypeError("Capturing groups are not allowed at "+a);c+=n[a++]}if(u)throw new TypeError("Unbalanced pattern at "+t);if(!c)throw new TypeError("Missing pattern at "+t);e.push({type:"PATTERN",index:t,value:c}),t=a;continue}e.push({type:"CHAR",index:t,value:n[t++]})}return e.push({type:"END",index:t,value:""}),e}function Qt(n,e){e===void 0&&(e={});for(var t=on(n),r=e.prefixes,i=r===void 0?"./":r,a="[^"+Se(e.delimiter||"/#?")+"]+?",l=[],u=0,c=0,s="",v=function(A){if(c<t.length&&t[c].type===A)return t[c++].value},d=function(A){var $=v(A);if($!==void 0)return $;var j=t[c],B=j.type,W=j.index;throw new TypeError("Unexpected "+B+" at "+W+", expected "+A)},f=function(){for(var A="",$;$=v("CHAR")||v("ESCAPED_CHAR");)A+=$;return A};c<t.length;){var m=v("CHAR"),g=v("NAME"),b=v("PATTERN");if(g||b){var y=m||"";i.indexOf(y)===-1&&(s+=y,y=""),s&&(l.push(s),s=""),l.push({name:g||u++,prefix:y,suffix:"",pattern:b||a,modifier:v("MODIFIER")||""});continue}var x=m||v("ESCAPED_CHAR");if(x){s+=x;continue}s&&(l.push(s),s="");var C=v("OPEN");if(C){var y=f(),Z=v("NAME")||"",R=v("PATTERN")||"",M=f();d("CLOSE"),l.push({name:Z||(R?u++:""),pattern:Z&&!R?a:R,prefix:y,suffix:M,modifier:v("MODIFIER")||""});continue}d("END")}return l}function il(n,e){return ln(Qt(n,e),e)}function ln(n,e){e===void 0&&(e={});var t=Rt(e),r=e.encode,i=r===void 0?function(c){return c}:r,a=e.validate,l=a===void 0?!0:a,u=n.map(function(c){if(typeof c=="object")return new RegExp("^(?:"+c.pattern+")$",t)});return function(c){for(var s="",v=0;v<n.length;v++){var d=n[v];if(typeof d=="string"){s+=d;continue}var f=c?c[d.name]:void 0,m=d.modifier==="?"||d.modifier==="*",g=d.modifier==="*"||d.modifier==="+";if(Array.isArray(f)){if(!g)throw new TypeError('Expected "'+d.name+'" to not repeat, but got an array');if(f.length===0){if(m)continue;throw new TypeError('Expected "'+d.name+'" to not be empty')}for(var b=0;b<f.length;b++){var y=i(f[b],d);i
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function On(n,e){var t=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r=[],i=!0,a=!1,l,u;try{for(t=t.call(n);!(i=(l=t.next()).done)&&(r.push(l.value),!(e&&r.length===e));i=!0);}catch(c){a=!0,u=c}finally{try{!i&&t.return!=null&&t.return()}finally{if(a)throw u}}return r}}function An(n){if(Array.isArray(n))return n}function Bn(n,e){var t=typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=wt(n))||e&&n&&typeof n.length=="number"){t&&(n=t);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(s){throw s},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,l=!1,u;return{s:function(){t=t.call(n)},n:function(){var s=t.next();return a=s.done,s},e:function(s){l=!0,u=s},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(l)throw u}}}}function Fn(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Jt(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function In(n,e,t){return e&&Jt(n.prototype,e),t&&Jt(n,t),n}function Dn(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&$e(n,e)}function Ln(n){var e=kt();return function(){var r=We(n),i;if(e){var a=We(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return jn(this,i)}}function jn(n,e){if(e&&(tt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hn(n)}function Hn(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function St(n){var e=typeof Map=="function"?new Map:void 0;return St=function(r){if(r===null||!zn(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return rt(r,arguments,We(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),$e(i,r)},St(n)}function rt(n,e,t){return kt()?rt=Reflect.construct:rt=function(i,a,l){var u=[null];u.push.apply(u,a);var c=Function.bind.apply(i,u),s=new c;return l&&$e(s,l.prototype),s},rt.apply(null,arguments)}function kt(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}function zn(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function $e(n,e){return $e=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},$e(n,e)}function We(n){return We=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},We(n)}function qt(n){return Kn(n)||Wn(n)||wt(n)||$n()}function $n(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wt(n,e){if(!!n){if(typeof n=="string")return Tt(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Tt(n,e)}}function Wn(n){if(typeof Symbol!="undefined"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function Kn(n){if(Array.isArray(n))return Tt(n)}function Tt(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function Un(n,e){if(n==null)return{};var t=Gn(n,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(n,r)||(t[r]=n[r]))}return t}function Gn(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}function _t(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function X(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?_t(Object(t),!0).forEach(function(r){Vn(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):_t(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Vn(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Ke(n){return n.split("?")[0].split("#")[0]}var Ot=function(e){if(!e.startsWith("http"))return!1;try{var t=new URL(e);return!!t}catch(r){return!1}},Xn=function(e){var t=e.path;if(!t||t==="/")try{return"/".concat(Nn(JSON.stringify(e)))}catch(r){}return t&&Ke(t)},Qn=function(e,t){var r=e.name,i=e.locale;return"locale"in e&&i===!1||!r?!1:e.locale||"".concat(t,".").concat(r)},er=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return(e||t).startsWith("/")||Ot(e)?e:"/".concat(t,"/").concat(e).replace(/\/\//g,"/").replace(/\/\//g,"/")},Yn=function(e,t){var r=e.menu,i=r===void 0?{}:r,a=e.indexRoute,l=e.path,u=l===void 0?"":l,c=e.routes,s=i.name,v=s===void 0?e.name:s,d=i.icon,f=d===void 0?e.icon:d,m=i.hideChildren,g=m===void 0?e.hideChildren:m,b=i.flatMenu,y=b===void 0?e.flatMenu:b,x=a&&Object.keys(a).join(",")!=="redirect"?[X({path:u,menu:i},a)].concat(c||[]):c,C=X({},e);if(v&&(C.name=v),f&&(C.icon=f),x&&x.length){if(g)return delete C.routes,C;var Z=At(X(X({},t),{},{data:x}),e);if(y)return Z;C.routes=Z}return C};function At(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},t=n.data,r=n.formatMessage,i=n.parentName,a=n.locale;return!t||!Array.isArray(t)?[]:t.filter(function(l){return l?l.routes||l.children||l.path||l.layout?!0:(l.redirect||l.unaccessible,!1):!1}).filter(function(l){var u,c;return l.unaccessible&&delete l.name,(l==null||(u=l.menu)===null||u===void 0?void 0:u.name)||(l==null?void 0:l.flatMenu)||(l==null||(c=l.menu)===null||c===void 0?void 0:c.flatMenu)?!0:l.menu!==!1}).map(function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"};l.children&&!l.routes&&(l.routes=l.children,delete l.children);var u=er(l.path,e?e.path:"/"),c=l.name,s=Qn(l,i||"menu"),v=s!==!1&&a!==!1&&r&&s?r({id:s,defaultMessage:c}):c,d=e.pro_layout_parentKeys,f=d===void 0?[]:d,m=e.routes,g=e.children,b=e.icon,y=e.flatMenu,x=e.indexRoute,C=Un(e,Sn),Z=X(X(X({},C),{},{menu:void 0},l),{},{path:u,locale:s,key:l.key||Xn(X(X({},l),{},{path:u})),pro_layout_parentKeys:Array.from(new Set([].concat(qt(l.parentKeys||[]),qt(f),["/".concat(e.key||"").replace(/\/\//g,"/").replace(/\/\//g,"/")]))).filter(function(M){return M&&M!=="/"})});if(v?Z.name=v:delete Z.name,Z.menu===void 0&&delete Z.menu,l.routes){var R=At(X(X({},