(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6301],{64335:function(me,ae,c){"use strict";var h=c(67294),C=(0,h.createContext)({});ae.Z=C},16254:function(me){me.exports=Ce,me.exports.parse=C,me.exports.compile=Z,me.exports.tokensToFunction=y,me.exports.tokensToRegExp=xe;var ae="/",c="./",h=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function C(S,W){for(var T=[],B=0,m=0,l="",ye=W&&W.delimiter||ae,ce=W&&W.delimiters||c,D=!1,z;(z=h.exec(S))!==null;){var de=z[0],fe=z[1],A=z.index;if(l+=S.slice(m,A),m=A+de.length,fe){l+=fe[1],D=!0;continue}var U="",ge=S[m],Ee=z[2],se=z[3],Ze=z[4],he=z[5];if(!D&&l.length){var ve=l.length-1;ce.indexOf(l[ve])>-1&&(U=l[ve],l=l.slice(0,ve))}l&&(T.push(l),l="",D=!1);var Se=U!==""&&ge!==void 0&&ge!==U,we=he==="+"||he==="*",G=he==="?"||he==="*",x=U||ye,N=se||Ze;T.push({name:Ee||B++,prefix:U,delimiter:x,optional:G,repeat:we,partial:Se,pattern:N?M(N):"[^"+P(x)+"]+?"})}return(l||m-1;else{var U=A.repeat?"(?:"+A.pattern+")(?:"+P(A.delimiter)+"(?:"+A.pattern+"))*":A.pattern;W&&W.push(A),A.optional?A.partial?z+=P(A.prefix)+"("+U+")?":z+="(?:"+P(A.prefix)+"("+U+"))?":z+=P(A.prefix)+"("+U+")"}}return l?(B||(z+="(?:"+ye+")?"),z+=D==="$"?"$":"(?="+D+")"):(B||(z+="(?:"+ye+"(?="+D+"))?"),de||(z+="(?="+ye+"|"+D+")")),new RegExp(z,K(T))}function Ce(S,W,T){return S instanceof RegExp?k(S,W):Array.isArray(S)?ue(S,W,T):F(S,W,T)}},80430:function(me){"use strict";var ae=!1,c=function(){};if(ae){var h=function(Z,y){var P=arguments.length;y=new Array(P>1?P-1:0);for(var M=1;M2?P-2:0);for(var M=2;M(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var B="rc-util-locker-".concat(Date.now()),m=0;function l(A){var U=!!A,ge=C.useState(function(){return m+=1,"".concat(B,"_").concat(m)}),Ee=(0,h.Z)(ge,1),se=Ee[0];(0,F.Z)(function(){if(U){var Ze=(0,W.Z)(),he=T();(0,S.hq)(` html body { overflow-y: hidden; `.concat(he?"width: calc(100% - ".concat(Ze,"px);"):"",` }`),se)}else(0,S.jL)(se);return function(){(0,S.jL)(se)}},[U,se])}var ye=!1;function ce(A){return typeof A=="boolean"&&(ye=A),ye}var D=function(U){return U===!1?!1:!(0,y.Z)()||!U?null:typeof U=="string"?document.querySelector(U):typeof U=="function"?U():U},z=C.forwardRef(function(A,U){var ge=A.open,Ee=A.autoLock,se=A.getContainer,Ze=A.debug,he=A.autoDestroy,ve=he===void 0?!0:he,Se=A.children,we=C.useState(ge),G=(0,h.Z)(we,2),x=G[0],N=G[1],H=x||ge;C.useEffect(function(){(ve||ge)&&N(ge)},[ge,ve]);var L=C.useState(function(){return D(se)}),q=(0,h.Z)(L,2),V=q[0],Y=q[1];C.useEffect(function(){var O=D(se);Y(O!=null?O:null)});var $=Ce(H&&!V,Ze),I=(0,h.Z)($,2),ie=I[0],J=I[1],oe=V!=null?V:ie;l(Ee&&ge&&(0,y.Z)()&&(oe===ie||oe===document.body));var Pe=null;if(Se&&(0,M.Yr)(Se)&&U){var ze=Se;Pe=ze.ref}var Ke=(0,M.x1)(Pe,U);if(!H||!(0,y.Z)()||V===void 0)return null;var _e=oe===!1||ce(),He=Se;return U&&(He=C.cloneElement(Se,{ref:Ke})),C.createElement(k.Provider,{value:J},_e?He:(0,Z.createPortal)(He,oe))}),de=z,fe=de},7700:function(){},2828:function(){},17124:function(){},43361:function(){},17212:function(){},18067:function(){},50799:function(me,ae,c){"use strict";c.r(ae),c.d(ae,{default:function(){return ti}});var h=c(11849),C=c(2824),Z=c(67294),y=c(48971),P=c(79004),M=c(93224),K=c(73727),k=c(24793),ue=c(97183),F=c(96156),xe=c(55507),Ce=c(92137),S=c(81253),W=c(84305),T=c(39559),B=c(28481),m=c(28991),l=c(85893),ye=c(78775),ce=c(56725),D=c(12044);function z(n,e){var t=typeof n.pageName=="string"?n.title:e;(0,Z.useEffect)(function(){(0,D.Z)()&&t&&(document.title=t)},[n.title,t])}var de=z,fe=c(21879),A=c.n(fe),U=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function ge(n,e){return!!(n===e||U(n)&&U(e))}function Ee(n,e){if(n.length!==e.length)return!1;for(var t=0;t=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===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,s="",a=t+1;if(n[a]==="?")throw new TypeError('Pattern cannot start with "?" at '+a);for(;a-1:_===void 0;i||(b+="(?:"+v+"(?="+f+"))?"),re||(b+="(?="+v+"|"+f+")")}return new RegExp(b,H(t))}function $(n,e,t){return n instanceof RegExp?L(n,e):Array.isArray(n)?q(n,e,t):V(n,e,t)}function I(n,e){return e>>>n|e<<32-n}function ie(n,e,t){return n&e^~n&t}function J(n,e,t){return n&e^n&t^e&t}function oe(n){return I(2,n)^I(13,n)^I(22,n)}function Pe(n){return I(6,n)^I(11,n)^I(25,n)}function ze(n){return I(7,n)^I(18,n)^n>>>3}function Ke(n){return I(17,n)^I(19,n)^n>>>10}function _e(n,e){return n[e&15]+=Ke(n[e+14&15])+n[e+9&15]+ze(n[e+1&15])}var He=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],O,ne,ee,Ue="0123456789abcdef";function $e(n,e){var t=(n&65535)+(e&65535),r=(n>>16)+(e>>16)+(t>>16);return r<<16|t&65535}function dt(){O=new Array(8),ne=new Array(2),ee=new Array(64),ne[0]=ne[1]=0,O[0]=1779033703,O[1]=3144134277,O[2]=1013904242,O[3]=2773480762,O[4]=1359893119,O[5]=2600822924,O[6]=528734635,O[7]=1541459225}function et(){var n,e,t,r,i,a,o,u,s,d,g=new Array(16);n=O[0],e=O[1],t=O[2],r=O[3],i=O[4],a=O[5],o=O[6],u=O[7];for(var f=0;f<16;f++)g[f]=ee[(f<<2)+3]|ee[(f<<2)+2]<<8|ee[(f<<2)+1]<<16|ee[f<<2]<<24;for(var v=0;v<64;v++)s=u+Pe(i)+ie(i,a,o)+He[v],v<16?s+=g[v]:s+=_e(g,v),d=oe(n)+J(n,e,t),u=o,o=a,a=i,i=$e(r,s),r=t,t=e,e=n,n=$e(s,d);O[0]+=n,O[1]+=e,O[2]+=t,O[3]+=r,O[4]+=i,O[5]+=a,O[6]+=o,O[7]+=u}function ft(n,e){var t,r,i=0;r=ne[0]>>3&63;var a=e&63;for((ne[0]+=e<<3)>29,t=0;t+63>3&63;if(ee[n++]=128,n<=56)for(var e=n;e<56;e++)ee[e]=0;else{for(var t=n;t<64;t++)ee[t]=0;et();for(var r=0;r<56;r++)ee[r]=0}ee[56]=ne[1]>>>24&255,ee[57]=ne[1]>>>16&255,ee[58]=ne[1]>>>8&255,ee[59]=ne[1]&255,ee[60]=ne[0]>>>24&255,ee[61]=ne[0]>>>16&255,ee[62]=ne[0]>>>8&255,ee[63]=ne[0]&255,et()}function $t(){for(var n=0,e=new Array(32),t=0;t<8;t++)e[n++]=O[t]>>>24&255,e[n++]=O[t]>>>16&255,e[n++]=O[t]>>>8&255,e[n++]=O[t]&255;return e}function mt(){for(var n=new String,e=0;e<8;e++)for(var t=28;t>=0;t-=4)n+=Ue.charAt(O[e]>>>t&15);return n}function Mt(n){return dt(),ft(n,n.length),vt(),mt()}var Zt=Mt;function Rt(n){return Rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rt(n)}var Ln=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function Bn(n,e){return $n(n)||Hn(n,e)||St(n,e)||zn()}function zn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hn(n,e){var t=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r=[],i=!0,a=!1,o,u;try{for(t=t.call(n);!(i=(o=t.next()).done)&&(r.push(o.value),!(e&&r.length===e));i=!0);}catch(s){a=!0,u=s}finally{try{!i&&t.return!=null&&t.return()}finally{if(a)throw u}}return r}}function $n(n){if(Array.isArray(n))return n}function Wn(n,e){var t=typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=St(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(d){throw d},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,o=!1,u;return{s:function(){t=t.call(n)},n:function(){var d=t.next();return a=d.done,d},e:function(d){o=!0,u=d},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(o)throw u}}}}function Kn(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Wt(n,e){for(var t=0;tn.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0)&&(!Object.prototype.propertyIsEnumerable.call(n,r)||(t[r]=n[r]))}return t}function er(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,a;for(a=0;a=0)&&(t[i]=n[i]);return t}function Gt(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 le(n){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return e.endsWith("/*")?e.replace("/*","/"):(e||t).startsWith("/")||Pt(e)?e:"/".concat(t,"/").concat(e).replace(/\/\//g,"/").replace(/\/\//g,"/")},rr=function(e,t){var r=e.menu,i=r===void 0?{}:r,a=e.indexRoute,o=e.path,u=o===void 0?"":o,s=e.children||e[be],d=i.name,g=d===void 0?e.name:d,f=i.icon,v=f===void 0?e.icon:f,b=i.hideChildren,R=b===void 0?e.hideChildren:b,w=i.flatMenu,p=w===void 0?e.flatMenu:w,j=a&&Object.keys(a).join(",")!=="redirect"?[le({path:u,menu:i},a)].concat(s||[]):s,E=le({},e);if(g&&(E.name=g),v&&(E.icon=v),j&&j.length){if(R)return delete E[be],delete E.children,E;var te=Nt(le(le({},t),{},{data:j}),e);if(p)return te;E[be]=te}return E},Te=function(e){return Array.isArray(e)&&e.length>0};function Nt(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(o){return o?Te(o[be])||Te(o.children)||o.path||o.originPath||o.layout?!0:(o.redirect||o.unaccessible,!1):!1}).filter(function(o){var u,s;return(o==null||(u=o.menu)===null||u===void 0?void 0:u.name)||(o==null?void 0:o.flatMenu)||(o==null||(s=o.menu)===null||s===void 0?void 0:s.flatMenu)?!0:o.menu!==!1}).map(function(o){var u=le({},o);return u.unaccessible&&delete u.name,u.path==="*"&&(u.path="."),u.path==="/*"&&(u.path="."),!u.path&&u.originPath&&(u.path=u.originPath),u}).map(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},u=o.children||o[be],s=Vt(o.path,e?e.path:"/"),d=o.name,g=nr(o,i||"menu"),f=g!==!1&&a!==!1&&r&&g?r({id:g,defaultMessage:d}):d,v=e.pro_layout_parentKeys,b=v===void 0?[]:v,R=e.children,w=e.icon,p=e.flatMenu,j=e.indexRoute,E=e.routes,te=_n(e,Ln),_=new Set([].concat(Ut(b),Ut(o.parentKeys||[])));e.key&&_.add(e.key);var re=le(le(le({},te),{},{menu:void 0},o),{},{path:s,locale:g,key:o.key||tr(le(le({},o),{},{path:s})),pro_layout_parentKeys:Array.from(_).filter(function(pe){return pe&&pe!=="/"})});if(f?re.name=f:delete re.name,re.menu===void 0&&delete re.menu,Te(u)){var Q=Nt(le(le({},n),{},{data:u,parentName:g||""}),re);Te(Q)&&(re[be]=Q,re.children=Q)}return rr(re,n)}).flat(1)}var ar=Ze(Nt,A()),ir=function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.filter(function(t){return t&&(t.name||Te(t[be])||Te(t.children))&&!t.hideInMenu&&!t.redirect}).map(function(t){var r=le({},t),i=r.children||r[be];if(Te(i)&&!r.hideChildrenInMenu&&i.some(function(u){return u&&!!u.name})){var a,o=n(i);if(o.length)return le(le({},r),{},(a={},rt(a,be,o),rt(a,"children",o),a))}return le(le({},t),{},rt({},be,void 0))}).filter(function(t){return t})},or=function(n){Gn(t,n);var e=Vn(t);function t(){return Kn(this,t),e.apply(this,arguments)}return Un(t,[{key:"get",value:function(i){var a;try{var o=Wn(this.entries()),u;try{for(o.s();!(u=o.n()).done;){var s=Bn(u.value,2),d=s[0],g=s[1],f=at(d);if(!Pt(d)&&$(f,[]).test(i)){a=g;break}}}catch(v){o.e(v)}finally{o.f()}}catch(v){a=void 0}return a}}]),t}(Et(Map)),lr=function(e){var t=new or,r=function i(a,o){a.forEach(function(u){var s=u.children||u[be];Te(s)&&i(s,u);var d=Vt(u.path,o?o.path:"/");t.set(at(d),u)})};return r(e),t},ur=Ze(lr,A()),sr=function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(function(t){var r=t.children||t[be];if(Te(r)){var i=n(r);if(i.length)return le(le({},t),{},rt({},be,i))}var a=le({},t);return delete a[be],delete a.children,a}).filter(function(t){return t})},cr=function(e,t,r,i){var a=ar({data:e,formatMessage:r,locale:t}),o=i?sr(a):ir(a),u=ur(a);return{breadcrumb:u,menuData:o}},Qt=cr;function Yt(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 ht(n){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:[],t={};return e.forEach(function(r){if(!(!r||!r.key)){var i=r.children||r[be];t[at(r.path||r.key||"/")]=ht({},r),t[r.key||r.path||"/"]=ht({},r),i&&(t=ht(ht({},t),n(i)))}}),t},Xt=fr,vr=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return e.filter(function(i){if(i==="/"&&t==="/")return!0;if(i!=="/"&&i!=="/*"&&i&&!Pt(i)){var a=at(i);try{if(r&&$("".concat(a)).test(t)||$("".concat(a),[]).test(t)||$("".concat(a,"/(.*)")).test(t))return!0}catch(o){}}return!1}).sort(function(i,a){return i===t?10:a===t?-10:i.substr(1).split("/").length-a.substr(1).split("/").length})},mr=function(e,t,r,i){var a=Xt(t),o=Object.keys(a),u=vr(o,e||"/",i);return!u||u.length<1?[]:(r||(u=[u[u.length-1]]),u.map(function(s){var d=a[s]||{pro_layout_parentKeys:"",key:""},g=new Map,f=(d.pro_layout_parentKeys||[]).map(function(v){return g.has(v)?null:(g.set(v,!0),a[v])}).filter(function(v){return v});return d.key&&f.push(d),f}).flat(1))},Jt=mr,gr=c(94184),Re=c.n(gr),kt=c(97435),hr=c(21770),qt=c(29405),pr=c(38069),yr=c(80430),xr=c.n(yr),xi=c(7700),Cr=c(83832),Ci=c(57338),br=c(273),Mr=c(57186);function Zr(){var n=(0,Z.useState)([]),e=(0,B.Z)(n,2),t=e[0],r=e[1];return{flatMenuKeys:t,setFlatMenuKeys:r}}var Rr=(0,Mr.f)(Zr),pt=Rr,bi=c(30887),yt=c(28682),Er=c(1351),Sr=c(76629),Mi=c(18446),jr=c(19586),xt=c(85061),_t=c(5991),en=c(6610),tn=c(91321),Pr=c(16165),Nr=function(e){if(!e||!e.startsWith("http"))return!1;try{var t=new URL(e);return!!t}catch(r){return!1}},wt=Nr;function wr(n){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(n)}var Or=wr,Tr={navTheme:"dark",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!1,headerHeight:48,iconfontUrl:"",primaryColor:"#1890ff",splitMenus:!1},nn=Tr,rn=function n(e){return(e||[]).reduce(function(t,r){if(r.key&&t.push(r.key),r.routes){var i=t.concat(n(r.routes)||[]);return i}return t},[])},an={daybreak:"#1890ff",dust:"#F5222D",volcano:"#FA541C",sunset:"#FAAD14",cyan:"#13C2C2",green:"#52C41A",geekblue:"#2F54EB",purple:"#722ED1"};function Zi(n){return n&&an[n]?an[n]:n}function it(n){return n.map(function(e){var t=e.children||e.routes,r=(0,m.Z)({},e);if(!r.name||r.hideInMenu)return null;if(r&&(r==null?void 0:r.routes)){if(!r.hideChildrenInMenu&&t.some(function(i){return i&&i.name&&!i.hideInMenu}))return(0,m.Z)((0,m.Z)({},e),{},{children:it(t),routes:it(t)});delete r.routes,delete r.children}return r}).filter(function(e){return e})}var Ri=c(43361),on=(0,tn.Z)({scriptUrl:nn.iconfontUrl}),ln=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-";if(typeof e=="string"&&e!==""){if(wt(e)||Or(e))return(0,l.jsx)(Pr.Z,{component:function(){return(0,l.jsx)("img",{src:e,alt:"icon",className:"ant-pro-sider-menu-icon"})}});if(e.startsWith(t))return(0,l.jsx)(on,{type:e})}return e},Dr=(0,_t.Z)(function n(e){var t=this;(0,en.Z)(this,n),this.props=void 0,this.getNavMenuItems=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1?arguments[1]:void 0;return r.map(function(a){return t.getSubMenuOrItem(a,i)}).filter(function(a){return a})},this.getSubMenuOrItem=function(r,i){var a=(r==null?void 0:r.children)||(r==null?void 0:r.routes);if(Array.isArray(a)&&a.length>0){var o=t.getIntlName(r),u=t.props,s=u.subMenuItemRender,d=u.prefixCls,g=u.menu,f=u.iconPrefixes,v=r.icon?(0,l.jsxs)("span",{className:"".concat(d,"-menu-item"),title:o,children:[!i&&ln(r.icon,f),(0,l.jsx)("span",{className:"".concat(d,"-menu-item-title"),children:o})]}):(0,l.jsx)("span",{className:"".concat(d,"-menu-item"),title:o,children:o}),b=s?s((0,m.Z)((0,m.Z)({},r),{},{isUrl:!1}),v,t.props):v;return{type:(g==null?void 0:g.type)==="group"?"group":void 0,label:b,children:t.getNavMenuItems(a,!0),onTitleClick:r.onTitleClick,key:r.key||r.path}}return{label:t.getMenuItemPath(r,i),title:t.getIntlName(r),key:r.key||r.path,disabled:r.disabled,onClick:function(w){var p;wt(r==null?void 0:r.path)&&window.open(r.path,"_blank"),(p=r.onTitleClick)===null||p===void 0||p.call(r,w)}}},this.getIntlName=function(r){var i=r.name,a=r.locale,o=t.props,u=o.menu,s=o.formatMessage;return a&&(u==null?void 0:u.locale)!==!1?s==null?void 0:s({id:a,defaultMessage:i}):i},this.getMenuItemPath=function(r,i){var a=t.conversionPath(r.path||"/"),o=t.props,u=o.location,s=u===void 0?{pathname:"/"}:u,d=o.isMobile,g=o.onCollapse,f=o.menuItemRender,v=o.iconPrefixes,b=t.getIntlName(r),R=t.props.prefixCls,w=i?null:ln(r.icon,v),p=wt(a),j=(0,l.jsxs)("span",{className:Re()("".concat(R,"-menu-item"),(0,F.Z)({},"".concat(R,"-menu-item-link"),p)),children:[w,(0,l.jsx)("span",{className:"".concat(R,"-menu-item-title"),children:b})]});if(f){var E=(0,m.Z)((0,m.Z)({},r),{},{isUrl:p,itemPath:a,isMobile:d,replace:a===s.pathname,onClick:function(){p&&window.open(a,"_blank"),g&&g(!0)},children:void 0});return f(E,j,t.props)}return j},this.conversionPath=function(r){return r&&r.indexOf("http")===0?r:"/".concat(r||"").replace(/\/+/g,"/")},this.props=e}),Ar=function(e,t){var r=t.layout,i=t.collapsed,a={};return e&&!i&&["side","mix"].includes(r||"mix")&&(a={openKeys:e}),a},un=function(e){var t=e.theme,r=e.mode,i=e.className,a=e.handleOpenChange,o=e.style,u=e.menuData,s=e.menu,d=e.matchMenuKeys,g=e.iconfontUrl,f=e.collapsed,v=e.selectedKeys,b=e.onSelect,R=e.openKeys,w=(0,Z.useRef)([]),p=pt.useContainer(),j=p.flatMenuKeys,E=(0,ce.Z)(s==null?void 0:s.defaultOpenAll),te=(0,B.Z)(E,2),_=te[0],re=te[1],Q=(0,ce.Z)(function(){return(s==null?void 0:s.defaultOpenAll)?rn(u)||[]:R===!1?!1:[]},{value:R===!1?void 0:R,onChange:a}),pe=(0,B.Z)(Q,2),Me=pe[0],X=pe[1],Oe=(0,ce.Z)([],{value:v,onChange:b?function(We){b&&We&&b(We)}:void 0}),De=(0,B.Z)(Oe,2),Ae=De[0],Ie=De[1];(0,Z.useEffect)(function(){(s==null?void 0:s.defaultOpenAll)||R===!1||j.length||d&&(X(d),Ie(d))},[d.join("-")]),(0,Z.useEffect)(function(){g&&(on=(0,tn.Z)({scriptUrl:g}))},[g]),(0,Z.useEffect)(function(){if(d.join("-")!==(Ae||[]).join("-")&&Ie(d),!_&&R!==!1&&d.join("-")!==(Me||[]).join("-")){var We=d;(s==null?void 0:s.autoClose)===!1&&(We=Array.from(new Set([].concat((0,xt.Z)(d),(0,xt.Z)(Me||[]))))),X(We)}else(s==null?void 0:s.ignoreFlatMenu)&&_?X(rn(u)):j.length>0&&re(!1)},[d.join("-"),f]);var Ge=(0,Z.useMemo)(function(){return Ar(Me,e)},[Me&&Me.join(","),e.layout,e.collapsed]),Ve=(0,Z.useState)(function(){return new Dr(e)}),Qe=(0,B.Z)(Ve,1),Fe=Qe[0];if(s==null?void 0:s.loading)return(0,l.jsx)("div",{style:(r==null?void 0:r.includes("inline"))?{padding:24}:{marginTop:16},children:(0,l.jsx)(jr.Z,{active:!0,title:!1,paragraph:{rows:(r==null?void 0:r.includes("inline"))?6:1}})});var Le=Re()(i,{"top-nav-menu":r==="horizontal"});Fe.props=e,e.openKeys===!1&&!e.handleOpenChange&&(w.current=d);var Ne=e.postMenuData?e.postMenuData(u):u;return Ne&&(Ne==null?void 0:Ne.length)<1?null:(0,Z.createElement)(yt.Z,(0,m.Z)((0,m.Z)({},Ge),{},{key:"Menu",mode:r,items:Fe.getNavMenuItems(Ne,!1),inlineIndent:16,defaultOpenKeys:w.current,theme:t,selectedKeys:Ae,style:o,className:Le,onOpenChange:X},e.menuProps))};un.defaultProps={postMenuData:function(e){return e||[]}};var sn=un,Ir=ue.Z.Sider,cn=function(e){return typeof e=="string"?(0,l.jsx)("img",{src:e,alt:"logo"}):typeof e=="function"?e():e},Ot=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",r=e.logo,i=e.title,a=e.layout,o=e[t||""];if(o===!1)return null;var u=cn(r),s=(0,l.jsx)("h1",{children:i!=null?i:"Ant Design Pro"});return o?o(u,e.collapsed?null:s,e):a==="mix"&&t==="menuHeaderRender"?null:(0,l.jsxs)("a",{children:[u,e.collapsed?null:s]})},dn=function(e){return e?(0,l.jsx)(Er.Z,{}):(0,l.jsx)(Sr.Z,{})},Fr=function(e){var t,r=e.collapsed,i=e.fixSiderbar,a=e.menuFooterRender,o=e.onCollapse,u=e.theme,s=e.siderWidth,d=e.isMobile,g=e.onMenuHeaderClick,f=e.breakpoint,v=f===void 0?"lg":f,b=e.style,R=e.layout,w=e.menuExtraRender,p=w===void 0?!1:w,j=e.collapsedButtonRender,E=j===void 0?dn:j,te=e.links,_=e.menuContentRender,re=e.prefixCls,Q=e.onOpenChange,pe=e.headerHeight,Me=e.logoStyle,X="".concat(re,"-sider"),Oe=pt.useContainer(),De=Oe.flatMenuKeys,Ae=Re()("".concat(X),(t={},(0,F.Z)(t,"".concat(X,"-fixed"),i),(0,F.Z)(t,"".concat(X,"-layout-").concat(R),R&&!d),(0,F.Z)(t,"".concat(X,"-light"),u!=="dark"),t)),Ie=Ot(e),Ge=p&&p(e),Ve=_!==!1&&De&&(0,Z.createElement)(sn,(0,m.Z)((0,m.Z)({},e),{},{key:"base-menu",mode:"inline",handleOpenChange:Q,style:{width:"100%"},className:"".concat(X,"-menu")})),Qe=_?_(e,Ve):Ve,Fe=(te||[]).map(function(Le,Ne){return{className:"".concat(X,"-link"),label:Le,key:Ne}});return E&&!d&&Fe.push({className:"".concat(X,"-collapsed-button"),title:!1,key:"collapsed",onClick:function(){o&&o(!r)},label:E(r)}),(0,l.jsxs)(l.Fragment,{children:[i&&(0,l.jsx)("div",{style:(0,m.Z)({width:r?48:s,overflow:"hidden",flex:"0 0 ".concat(r?48:s,"px"),maxWidth:r?48:s,minWidth:r?48:s,transition:"background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},b)}),(0,l.jsxs)(Ir,{collapsible:!0,trigger:null,collapsed:r,breakpoint:v===!1?void 0:v,onCollapse:function(Ne){d||o==null||o(Ne)},collapsedWidth:48,style:(0,m.Z)({overflow:"hidden",paddingTop:R==="mix"&&!d?pe:void 0},b),width:s,theme:u,className:Ae,children:[Ie&&(0,l.jsx)("div",{className:Re()("".concat(X,"-logo"),(0,F.Z)({},"".concat(X,"-collapsed"),r)),onClick:R!=="mix"?g:void 0,id:"logo",style:Me,children:Ie}),Ge&&(0,l.jsx)("div",{className:"".concat(X,"-extra ").concat(!Ie&&"".concat(X,"-extra-no-logo")),children:Ge}),(0,l.jsx)("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:Qe}),(0,l.jsx)("div",{className:"".concat(X,"-links"),children:(0,l.jsx)(yt.Z,{theme:u,inlineIndent:16,className:"".concat(X,"-link-menu"),selectedKeys:[],openKeys:[],mode:"inline",items:Fe})}),a&&(0,l.jsx)("div",{className:Re()("".concat(X,"-footer"),(0,F.Z)({},"".concat(X,"-footer-collapsed"),!r)),children:a(e)})]})]})},fn=Fr,Lr=function(e){var t=e.isMobile,r=e.menuData,i=e.siderWidth,a=e.collapsed,o=e.onCollapse,u=e.style,s=e.className,d=e.hide,g=e.getContainer,f=e.prefixCls,v=e.matchMenuKeys,b=pt.useContainer(),R=b.setFlatMenuKeys;(0,Z.useEffect)(function(){if(!(!r||r.length<1)){var p=Xt(r);R(Object.keys(p))}},[v.join("-")]),(0,Z.useEffect)(function(){t===!0&&(o==null||o(!0))},[t]);var w=(0,kt.Z)(e,["className","style"]);return d?null:t?(0,l.jsx)(br.Z,{visible:!a,placement:"left",className:Re()("".concat(f,"-drawer-sider"),s),onClose:function(){return o==null?void 0:o(!0)},style:(0,m.Z)({padding:0,height:"100vh"},u),getContainer:g,width:i,bodyStyle:{height:"100vh",padding:0,display:"flex",flexDirection:"row"},children:(0,l.jsx)(fn,(0,m.Z)((0,m.Z)({},w),{},{className:Re()("".concat(f,"-sider"),s),collapsed:t?!1:a,splitMenus:!1}))}):(0,l.jsx)(fn,(0,m.Z)((0,m.Z)({className:Re()("".concat(f,"-sider"),s)},w),{},{style:u}))},vn=Lr,Br=c(63485),zr=c(16254),Tt=c.n(zr),Hr=function(e,t,r){if(r){var i=(0,xt.Z)(r.keys()).find(function(o){return Tt()(o).test(e)});if(i)return r.get(i)}if(t){var a=Object.keys(t).find(function(o){return Tt()(o).test(e)});if(a)return t[a]}return{path:""}},mn=function(e,t){var r=e.pathname,i=r===void 0?"/":r,a=e.breadcrumb,o=e.breadcrumbMap,u=e.formatMessage,s=e.title,d=e.menu,g=d===void 0?{locale:!1}:d,f=t?"":s||"",v=Hr(i,a,o);if(!v)return{title:f,id:"",pageName:f};var b=v.name;return g.locale!==!1&&v.locale&&u&&(b=u({id:v.locale||"",defaultMessage:v.name})),b?t||!s?{title:b,id:v.locale||"",pageName:b}:{title:"".concat(b," - ").concat(s),id:v.locale||"",pageName:b}:{title:f,id:v.locale||"",pageName:f}},Ei=function(e,t){return mn(e,t).title},Si=null,$r=c(10379),Wr=c(44144),Kr=c(10178),Ur=c(48717),ji=c(17212),Gr=["rightContentRender","prefixCls"],Vr=function(e){var t=e.rightContentRender,r=e.prefixCls,i=(0,S.Z)(e,Gr),a=(0,Z.useState)("auto"),o=(0,B.Z)(a,2),u=o[0],s=o[1],d=(0,Kr.Z)(function(){var g=(0,Ce.Z)((0,xe.Z)().mark(function f(v){return(0,xe.Z)().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:s(v);case 1:case"end":return R.stop()}},f)}));return function(f){return g.apply(this,arguments)}}(),160);return(0,l.jsx)("div",{className:"".concat(r,"-right-content"),style:{minWidth:u},children:(0,l.jsx)("div",{style:{paddingRight:8},children:(0,l.jsx)(Ur.Z,{onResize:function(f){var v=f.width;d.run(v)},children:t&&(0,l.jsx)("div",{className:"".concat(r,"-right-content-resize"),children:t((0,m.Z)((0,m.Z)({},i),{},{rightContentSize:u}))})})})})},Qr=function(e){var t=(0,Z.useRef)(null),r=e.theme,i=e.onMenuHeaderClick,a=e.contentWidth,o=e.rightContentRender,u=e.className,s=e.style,d=e.headerContentRender,g=e.layout,f="".concat(e.prefixCls||"ant-pro","-top-nav-header"),v=Ot((0,m.Z)((0,m.Z)({},e),{},{collapsed:!1}),g==="mix"?"headerTitleRender":void 0),b=Re()(f,u,{light:r==="light"}),R=(0,l.jsx)(sn,(0,m.Z)((0,m.Z)({},e),e.menuProps)),w=d?d==null?void 0:d(e,R):R;return(0,l.jsx)("div",{className:b,style:s,children:(0,l.jsxs)("div",{ref:t,className:"".concat(f,"-main ").concat(a==="Fixed"?"wide":""),children:[v&&(0,l.jsx)("div",{className:"".concat(f,"-main-left"),onClick:i,children:(0,l.jsx)("div",{className:"".concat(f,"-logo"),id:"logo",children:v},"logo")}),(0,l.jsx)("div",{style:{flex:1},className:"".concat(f,"-menu"),children:w}),o&&(0,l.jsx)(Vr,(0,m.Z)({rightContentRender:o,prefixCls:f},e))]})})},gn=Qr,Pi=c(17124),Yr=function(e,t){return e===!1?null:e?e(t,null):t},Xr=function(e){var t=e.isMobile,r=e.logo,i=e.collapsed,a=e.onCollapse,o=e.collapsedButtonRender,u=o===void 0?dn:o,s=e.rightContentRender,d=e.menuHeaderRender,g=e.onMenuHeaderClick,f=e.className,v=e.style,b=e.layout,R=e.children,w=e.headerTheme,p=w===void 0?"dark":w,j=e.splitMenus,E=e.menuData,te=e.prefixCls,_=(0,Z.useContext)(T.ZP.ConfigContext),re=_.direction,Q="".concat(te,"-global-header"),pe=Re()(f,Q,(0,F.Z)({},"".concat(Q,"-layout-").concat(b),b&&p==="dark"));if(b==="mix"&&!t&&j){var Me=(E||[]).map(function(Ae){return(0,m.Z)((0,m.Z)({},Ae),{},{children:void 0,routes:void 0})}),X=it(Me);return(0,l.jsx)(gn,(0,m.Z)((0,m.Z)({mode:"horizontal"},e),{},{splitMenus:!1,menuData:X,theme:p}))}var Oe=Re()("".concat(Q,"-logo"),(0,F.Z)({},"".concat(Q,"-logo-rtl"),re==="rtl")),De=(0,l.jsx)("span",{className:Oe,children:(0,l.jsx)("a",{children:cn(r)})},"logo");return(0,l.jsxs)("div",{className:pe,style:(0,m.Z)({},v),children:[t&&Yr(d,De),t&&u&&(0,l.jsx)("span",{className:"".concat(Q,"-collapsed-button"),onClick:function(){a&&a(!i)},children:u(i)}),b==="mix"&&!t&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:Oe,onClick:g,children:Ot((0,m.Z)((0,m.Z)({},e),{},{collapsed:!1}),"headerTitleRender")})}),(0,l.jsx)("div",{style:{flex:1},children:R}),s&&s(e)]})},Jr=Xr,Ni=c(2828),hn=ue.Z.Header,kr=function(n){(0,$r.Z)(t,n);var e=(0,Wr.Z)(t);function t(){var r;(0,en.Z)(this,t);for(var i=arguments.length,a=new Array(i),o=0;o