(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[301],{64335:function(ve,ge,d){"use strict";var x=d(67294),R=(0,x.createContext)({});ge.Z=R},16254:function(ve){ve.exports=Te,ve.exports.parse=R,ve.exports.compile=Z,ve.exports.tokensToFunction=b,ve.exports.tokensToRegExp=Me;var ge="/",d="./",x=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function R(S,z){for(var T=[],L=0,p=0,l="",pe=z&&z.delimiter||ge,ae=z&&z.delimiters||d,D=!1,F;(F=x.exec(S))!==null;){var ie=F[0],oe=F[1],Q=F.index;if(l+=S.slice(p,Q),p=Q+ie.length,oe){l+=oe[1],D=!0;continue}var de="",Ie=S[p],De=F[2],Xe=F[3],Le=F[4],Pe=F[5];if(!D&&l.length){var me=l.length-1;ae.indexOf(l[me])>-1&&(de=l[me],l=l.slice(0,me))}l&&(T.push(l),l="",D=!1);var lt=de!==""&&Ie!==void 0&&Ie!==de,Ye=Pe==="+"||Pe==="*",J=Pe==="?"||Pe==="*",h=de||pe,P=Xe||Le;T.push({name:De||L++,prefix:de,delimiter:h,optional:J,repeat:Ye,partial:lt,pattern:P?E(P):"[^"+O(h)+"]+?"})}return(l||p-1;else{var de=Q.repeat?"(?:"+Q.pattern+")(?:"+O(Q.delimiter)+"(?:"+Q.pattern+"))*":Q.pattern;z&&z.push(Q),Q.optional?Q.partial?F+=O(Q.prefix)+"("+de+")?":F+="(?:"+O(Q.prefix)+"("+de+"))?":F+=O(Q.prefix)+"("+de+")"}}return l?(L||(F+="(?:"+pe+")?"),F+=D==="$"?"$":"(?="+D+")"):(L||(F+="(?:"+pe+"(?="+D+"))?"),ie||(F+="(?="+pe+"|"+D+")")),new RegExp(F,ce(T))}function Te(S,z,T){return S instanceof RegExp?be(S,z):Array.isArray(S)?xe(S,z,T):$(S,z,T)}},80430:function(ve){"use strict";var ge=!1,d=function(){};if(ge){var x=function(Z,b){var O=arguments.length;b=new Array(O>1?O-1:0);for(var E=1;E2?O-2:0);for(var E=2;E=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 s=1,u="",a=t+1;if(n[a]==="?")throw new TypeError('Pattern cannot start with "?" at '+a);for(;a-1:G===void 0;i||(y+="(?:"+v+"(?="+f+"))?"),q||(y+="(?="+v+"|"+f+")")}return new RegExp(y,H(t))}function I(n,e,t){return n instanceof RegExp?U(n,e):Array.isArray(n)?ee(n,e,t):_(n,e,t)}function A(n,e){return e>>>n|e<<32-n}function ne(n,e,t){return n&e^~n&t}function V(n,e,t){return n&e^n&t^e&t}function le(n){return A(2,n)^A(13,n)^A(22,n)}function Ze(n){return A(6,n)^A(11,n)^A(25,n)}function Qe(n){return A(7,n)^A(18,n)^n>>>3}function st(n){return A(17,n)^A(19,n)^n>>>10}function Ct(n,e){return n[e&15]+=st(n[e+14&15])+n[e+9&15]+Qe(n[e+1&15])}var bt=[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],w,k,X,Be="0123456789abcdef";function Ae(n,e){var t=(n&65535)+(e&65535),r=(n>>16)+(e>>16)+(t>>16);return r<<16|t&65535}function ut(){w=new Array(8),k=new Array(2),X=new Array(64),k[0]=k[1]=0,w[0]=1779033703,w[1]=3144134277,w[2]=1013904242,w[3]=2773480762,w[4]=1359893119,w[5]=2600822924,w[6]=528734635,w[7]=1541459225}function Je(){var n,e,t,r,i,a,o,s,u,c,g=new Array(16);n=w[0],e=w[1],t=w[2],r=w[3],i=w[4],a=w[5],o=w[6],s=w[7];for(var f=0;f<16;f++)g[f]=X[(f<<2)+3]|X[(f<<2)+2]<<8|X[(f<<2)+1]<<16|X[f<<2]<<24;for(var v=0;v<64;v++)u=s+Ze(i)+ne(i,a,o)+bt[v],v<16?u+=g[v]:u+=Ct(g,v),c=le(n)+V(n,e,t),s=o,o=a,a=i,i=Ae(r,u),r=t,t=e,e=n,n=Ae(u,c);w[0]+=n,w[1]+=e,w[2]+=t,w[3]+=r,w[4]+=i,w[5]+=a,w[6]+=o,w[7]+=s}function ct(n,e){var t,r,i=0;r=k[0]>>3&63;var a=e&63;for((k[0]+=e<<3)>29,t=0;t+63>3&63;if(X[n++]=128,n<=56)for(var e=n;e<56;e++)X[e]=0;else{for(var t=n;t<64;t++)X[t]=0;Je();for(var r=0;r<56;r++)X[r]=0}X[56]=k[1]>>>24&255,X[57]=k[1]>>>16&255,X[58]=k[1]>>>8&255,X[59]=k[1]&255,X[60]=k[0]>>>24&255,X[61]=k[0]>>>16&255,X[62]=k[0]>>>8&255,X[63]=k[0]&255,Je()}function Wt(){for(var n=0,e=new Array(32),t=0;t<8;t++)e[n++]=w[t]>>>24&255,e[n++]=w[t]>>>16&255,e[n++]=w[t]>>>8&255,e[n++]=w[t]&255;return e}function ft(){for(var n=new String,e=0;e<8;e++)for(var t=28;t>=0;t-=4)n+=Be.charAt(w[e]>>>t&15);return n}function Mt(n){return ut(),ct(n,n.length),dt(),ft()}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 Wn(n)||Hn(n,e)||Et(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,s;try{for(t=t.call(n);!(i=(o=t.next()).done)&&(r.push(o.value),!(e&&r.length===e));i=!0);}catch(u){a=!0,s=u}finally{try{!i&&t.return!=null&&t.return()}finally{if(a)throw s}}return r}}function Wn(n){if(Array.isArray(n))return n}function $n(n,e){var t=typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=Et(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(c){throw c},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,s;return{s:function(){t=t.call(n)},n:function(){var c=t.next();return a=c.done,c},e:function(c){o=!0,s=c},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function Kn(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function $t(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 Ut(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 te(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("/")||Nt(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,s=o===void 0?"":o,u=e.children||e[se],c=i.name,g=c===void 0?e.name:c,f=i.icon,v=f===void 0?e.icon:f,y=i.hideChildren,C=y===void 0?e.hideChildren:y,N=i.flatMenu,m=N===void 0?e.flatMenu:N,j=a&&Object.keys(a).join(",")!=="redirect"?[te({path:s,menu:i},a)].concat(u||[]):u,M=te({},e);if(g&&(M.name=g),v&&(M.icon=v),j&&j.length){if(C)return delete M[se],delete M.children,M;var Y=Pt(te(te({},t),{},{data:j}),e);if(m)return Y;M[se]=Y}return M},Re=function(e){return Array.isArray(e)&&e.length>0};function Pt(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?Re(o[se])||Re(o.children)||o.path||o.originPath||o.layout?!0:(o.redirect||o.unaccessible,!1):!1}).filter(function(o){var s,u;return(o==null||(s=o.menu)===null||s===void 0?void 0:s.name)||(o==null?void 0:o.flatMenu)||(o==null||(u=o.menu)===null||u===void 0?void 0:u.flatMenu)?!0:o.menu!==!1}).map(function(o){var s=te({},o);return s.unaccessible&&delete s.name,s.path==="*"&&(s.path="."),s.path==="/*"&&(s.path="."),!s.path&&s.originPath&&(s.path=s.originPath),s}).map(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},s=o.children||o[se],u=Vt(o.path,e?e.path:"/"),c=o.name,g=nr(o,i||"menu"),f=g!==!1&&a!==!1&&r&&g?r({id:g,defaultMessage:c}):c,v=e.pro_layout_parentKeys,y=v===void 0?[]:v,C=e.children,N=e.icon,m=e.flatMenu,j=e.indexRoute,M=e.routes,Y=_n(e,Ln),G=new Set([].concat(Gt(y),Gt(o.parentKeys||[])));e.key&&G.add(e.key);var q=te(te(te({},Y),{},{menu:void 0},o),{},{path:u,locale:g,key:o.key||tr(te(te({},o),{},{path:u})),pro_layout_parentKeys:Array.from(G).filter(function(re){return re&&re!=="/"})});if(f?q.name=f:delete q.name,q.menu===void 0&&delete q.menu,Re(s)){var B=Pt(te(te({},n),{},{data:s,parentName:g||""}),q);Re(B)&&(q[se]=B,q.children=B)}return rr(q,n)}).flat(1)}var ar=Le(Pt,Q()),ir=function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.filter(function(t){return t&&(t.name||Re(t[se])||Re(t.children))&&!t.hideInMenu&&!t.redirect}).map(function(t){var r=te({},t),i=r.children||r[se];if(Re(i)&&!r.hideChildrenInMenu&&i.some(function(s){return s&&!!s.name})){var a,o=n(i);if(o.length)return te(te({},r),{},(a={},_e(a,se,o),_e(a,"children",o),a))}return te(te({},t),{},_e({},se,void 0))}).filter(function(t){return t})},or=function(n){Un(t,n);var e=Vn(t);function t(){return Kn(this,t),e.apply(this,arguments)}return Gn(t,[{key:"get",value:function(i){var a;try{var o=$n(this.entries()),s;try{for(o.s();!(s=o.n()).done;){var u=Bn(s.value,2),c=u[0],g=u[1],f=et(c);if(!Nt(c)&&I(f,[]).test(i)){a=g;break}}}catch(v){o.e(v)}finally{o.f()}}catch(v){a=void 0}return a}}]),t}(jt(Map)),lr=function(e){var t=new or,r=function i(a,o){a.forEach(function(s){var u=s.children||s[se];Re(u)&&i(u,s);var c=Vt(s.path,o?o.path:"/");t.set(et(c),s)})};return r(e),t},sr=Le(lr,Q()),ur=function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(function(t){var r=t.children||t[se];if(Re(r)){var i=n(r);if(i.length)return te(te({},t),{},_e({},se,i))}var a=te({},t);return delete a[se],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?ur(a):ir(a),s=sr(a);return{breadcrumb:s,menuData:o}},Xt=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 gt(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[se];t[et(r.path||r.key||"/")]=gt({},r),t[r.key||r.path||"/"]=gt({},r),i&&(t=gt(gt({},t),n(i)))}}),t},Qt=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&&!Nt(i)){var a=et(i);try{if(r&&I("".concat(a)).test(t)||I("".concat(a),[]).test(t)||I("".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})},gr=function(e,t,r,i){var a=Qt(t),o=Object.keys(a),s=vr(o,e||"/",i);return!s||s.length<1?[]:(r||(s=[s[s.length-1]]),s.map(function(u){var c=a[u]||{pro_layout_parentKeys:"",key:""},g=new Map,f=(c.pro_layout_parentKeys||[]).map(function(v){return g.has(v)?null:(g.set(v,!0),a[v])}).filter(function(v){return v});return c.key&&f.push(c),f}).flat(1))},Jt=gr,pr=d(94184),fe=d.n(pr),kt=d(97435),mr=d(21770),qt=d(29405),hr=d(38069),yr=d(80430),xr=d.n(yr),xi=d(7700),Cr=d(83832),Ci=d(57338),br=d(273),Mr=d(57186);function Zr(){var n=(0,Z.useState)([]),e=(0,L.Z)(n,2),t=e[0],r=e[1];return{flatMenuKeys:t,setFlatMenuKeys:r}}var Rr=(0,Mr.f)(Zr),pt=Rr,bi=d(30887),mt=d(28682),jr=d(1351),Er=d(76629),Mi=d(18446),Sr=d(19586),ht=d(85061),_t=d(5991),en=d(6610),tn=d(91321),Nr=d(16165),Pr=function(e){if(!e||!e.startsWith("http"))return!1;try{var t=new URL(e);return!!t}catch(r){return!1}},wt=Pr;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 tt(n){return n.map(function(e){var t=e.children||e.routes,r=(0,p.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,p.Z)((0,p.Z)({},e),{},{children:tt(t),routes:tt(t)});delete r.routes,delete r.children}return r}).filter(function(e){return e})}var Ri=d(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)(Nr.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),s=t.props,u=s.subMenuItemRender,c=s.prefixCls,g=s.menu,f=s.iconPrefixes,v=r.icon?(0,l.jsxs)("span",{className:"".concat(c,"-menu-item"),title:o,children:[!i&&ln(r.icon,f),(0,l.jsx)("span",{className:"".concat(c,"-menu-item-title"),children:o})]}):(0,l.jsx)("span",{className:"".concat(c,"-menu-item"),title:o,children:o}),y=u?u((0,p.Z)((0,p.Z)({},r),{},{isUrl:!1}),v,t.props):v;return{type:(g==null?void 0:g.type)==="group"?"group":void 0,label:y,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(N){var m;wt(r==null?void 0:r.path)&&window.open(r.path,"_blank"),(m=r.onTitleClick)===null||m===void 0||m.call(r,N)}}},this.getIntlName=function(r){var i=r.name,a=r.locale,o=t.props,s=o.menu,u=o.formatMessage;return a&&(s==null?void 0:s.locale)!==!1?u==null?void 0:u({id:a,defaultMessage:i}):i},this.getMenuItemPath=function(r,i){var a=t.conversionPath(r.path||"/"),o=t.props,s=o.location,u=s===void 0?{pathname:"/"}:s,c=o.isMobile,g=o.onCollapse,f=o.menuItemRender,v=o.iconPrefixes,y=t.getIntlName(r),C=t.props.prefixCls,N=i?null:ln(r.icon,v),m=wt(a),j=(0,l.jsxs)("span",{className:fe()("".concat(C,"-menu-item"),(0,$.Z)({},"".concat(C,"-menu-item-link"),m)),children:[N,(0,l.jsx)("span",{className:"".concat(C,"-menu-item-title"),children:y})]});if(f){var M=(0,p.Z)((0,p.Z)({},r),{},{isUrl:m,itemPath:a,isMobile:c,replace:a===u.pathname,onClick:function(){m&&window.open(a,"_blank"),g&&g(!0)},children:void 0});return f(M,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},sn=function(e){var t=e.theme,r=e.mode,i=e.className,a=e.handleOpenChange,o=e.style,s=e.menuData,u=e.menu,c=e.matchMenuKeys,g=e.iconfontUrl,f=e.collapsed,v=e.selectedKeys,y=e.onSelect,C=e.openKeys,N=(0,Z.useRef)([]),m=pt.useContainer(),j=m.flatMenuKeys,M=(0,ae.Z)(u==null?void 0:u.defaultOpenAll),Y=(0,L.Z)(M,2),G=Y[0],q=Y[1],B=(0,ae.Z)(function(){return(u==null?void 0:u.defaultOpenAll)?rn(s)||[]:C===!1?!1:[]},{value:C===!1?void 0:C,onChange:a}),re=(0,L.Z)(B,2),ue=re[0],W=re[1],Ce=(0,ae.Z)([],{value:v,onChange:y?function(Fe){y&&Fe&&y(Fe)}:void 0}),je=(0,L.Z)(Ce,2),Ee=je[0],Se=je[1];(0,Z.useEffect)(function(){(u==null?void 0:u.defaultOpenAll)||C===!1||j.length||c&&(W(c),Se(c))},[c.join("-")]),(0,Z.useEffect)(function(){g&&(on=(0,tn.Z)({scriptUrl:g}))},[g]),(0,Z.useEffect)(function(){if(c.join("-")!==(Ee||[]).join("-")&&Se(c),!G&&C!==!1&&c.join("-")!==(ue||[]).join("-")){var Fe=c;(u==null?void 0:u.autoClose)===!1&&(Fe=Array.from(new Set([].concat((0,ht.Z)(c),(0,ht.Z)(ue||[]))))),W(Fe)}else(u==null?void 0:u.ignoreFlatMenu)&&G?W(rn(s)):j.length>0&&q(!1)},[c.join("-"),f]);var ze=(0,Z.useMemo)(function(){return Ar(ue,e)},[ue&&ue.join(","),e.layout,e.collapsed]),He=(0,Z.useState)(function(){return new Dr(e)}),We=(0,L.Z)(He,1),Ne=We[0];if(u==null?void 0:u.loading)return(0,l.jsx)("div",{style:(r==null?void 0:r.includes("inline"))?{padding:24}:{marginTop:16},children:(0,l.jsx)(Sr.Z,{active:!0,title:!1,paragraph:{rows:(r==null?void 0:r.includes("inline"))?6:1}})});var we=fe()(i,{"top-nav-menu":r==="horizontal"});Ne.props=e,e.openKeys===!1&&!e.handleOpenChange&&(N.current=c);var ye=e.postMenuData?e.postMenuData(s):s;return ye&&(ye==null?void 0:ye.length)<1?null:(0,Z.createElement)(mt.Z,(0,p.Z)((0,p.Z)({},ze),{},{key:"Menu",mode:r,items:Ne.getNavMenuItems(ye,!1),inlineIndent:16,defaultOpenKeys:N.current,theme:t,selectedKeys:Ee,style:o,className:we,onOpenChange:W},e.menuProps))};sn.defaultProps={postMenuData:function(e){return e||[]}};var un=sn,Fr=xe.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 s=cn(r),u=(0,l.jsx)("h1",{children:i!=null?i:"Ant Design Pro"});return o?o(s,e.collapsed?null:u,e):a==="mix"&&t==="menuHeaderRender"?null:(0,l.jsxs)("a",{children:[s,e.collapsed?null:u]})},dn=function(e){return e?(0,l.jsx)(jr.Z,{}):(0,l.jsx)(Er.Z,{})},Ir=function(e){var t,r=e.collapsed,i=e.fixSiderbar,a=e.menuFooterRender,o=e.onCollapse,s=e.theme,u=e.siderWidth,c=e.isMobile,g=e.onMenuHeaderClick,f=e.breakpoint,v=f===void 0?"lg":f,y=e.style,C=e.layout,N=e.menuExtraRender,m=N===void 0?!1:N,j=e.collapsedButtonRender,M=j===void 0?dn:j,Y=e.links,G=e.menuContentRender,q=e.prefixCls,B=e.onOpenChange,re=e.headerHeight,ue=e.logoStyle,W="".concat(q,"-sider"),Ce=pt.useContainer(),je=Ce.flatMenuKeys,Ee=fe()("".concat(W),(t={},(0,$.Z)(t,"".concat(W,"-fixed"),i),(0,$.Z)(t,"".concat(W,"-layout-").concat(C),C&&!c),(0,$.Z)(t,"".concat(W,"-light"),s!=="dark"),t)),Se=Ot(e),ze=m&&m(e),He=G!==!1&&je&&(0,Z.createElement)(un,(0,p.Z)((0,p.Z)({},e),{},{key:"base-menu",mode:"inline",handleOpenChange:B,style:{width:"100%"},className:"".concat(W,"-menu")})),We=G?G(e,He):He,Ne=(Y||[]).map(function(we,ye){return{className:"".concat(W,"-link"),label:we,key:ye}});return M&&!c&&Ne.push({className:"".concat(W,"-collapsed-button"),title:!1,key:"collapsed",onClick:function(){o&&o(!r)},label:M(r)}),(0,l.jsxs)(l.Fragment,{children:[i&&(0,l.jsx)("div",{style:(0,p.Z)({width:r?48:u,overflow:"hidden",flex:"0 0 ".concat(r?48:u,"px"),maxWidth:r?48:u,minWidth:r?48:u,transition:"background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},y)}),(0,l.jsxs)(Fr,{collapsible:!0,trigger:null,collapsed:r,breakpoint:v===!1?void 0:v,onCollapse:function(ye){c||o==null||o(ye)},collapsedWidth:48,style:(0,p.Z)({overflow:"hidden",paddingTop:C==="mix"&&!c?re:void 0},y),width:u,theme:s,className:Ee,children:[Se&&(0,l.jsx)("div",{className:fe()("".concat(W,"-logo"),(0,$.Z)({},"".concat(W,"-collapsed"),r)),onClick:C!=="mix"?g:void 0,id:"logo",style:ue,children:Se}),ze&&(0,l.jsx)("div",{className:"".concat(W,"-extra ").concat(!Se&&"".concat(W,"-extra-no-logo")),children:ze}),(0,l.jsx)("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:We}),(0,l.jsx)("div",{className:"".concat(W,"-links"),children:(0,l.jsx)(mt.Z,{theme:s,inlineIndent:16,className:"".concat(W,"-link-menu"),selectedKeys:[],openKeys:[],mode:"inline",items:Ne})}),a&&(0,l.jsx)("div",{className:fe()("".concat(W,"-footer"),(0,$.Z)({},"".concat(W,"-footer-collapsed"),!r)),children:a(e)})]})]})},fn=Ir,Lr=function(e){var t=e.isMobile,r=e.menuData,i=e.siderWidth,a=e.collapsed,o=e.onCollapse,s=e.style,u=e.className,c=e.hide,g=e.getContainer,f=e.prefixCls,v=e.matchMenuKeys,y=pt.useContainer(),C=y.setFlatMenuKeys;(0,Z.useEffect)(function(){if(!(!r||r.length<1)){var m=Qt(r);C(Object.keys(m))}},[v.join("-")]),(0,Z.useEffect)(function(){t===!0&&(o==null||o(!0))},[t]);var N=(0,kt.Z)(e,["className","style"]);return c?null:t?(0,l.jsx)(br.Z,{visible:!a,placement:"left",className:fe()("".concat(f,"-drawer-sider"),u),onClose:function(){return o==null?void 0:o(!0)},style:(0,p.Z)({padding:0,height:"100vh"},s),getContainer:g,width:i,bodyStyle:{height:"100vh",padding:0,display:"flex",flexDirection:"row"},children:(0,l.jsx)(fn,(0,p.Z)((0,p.Z)({},N),{},{className:fe()("".concat(f,"-sider"),u),collapsed:t?!1:a,splitMenus:!1}))}):(0,l.jsx)(fn,(0,p.Z)((0,p.Z)({className:fe()("".concat(f,"-sider"),u)},N),{},{style:s}))},vn=Lr,Br=d(63485),zr=d(16254),Tt=d.n(zr),Hr=function(e,t,r){if(r){var i=(0,ht.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:""}},gn=function(e,t){var r=e.pathname,i=r===void 0?"/":r,a=e.breadcrumb,o=e.breadcrumbMap,s=e.formatMessage,u=e.title,c=e.menu,g=c===void 0?{locale:!1}:c,f=t?"":u||"",v=Hr(i,a,o);if(!v)return{title:f,id:"",pageName:f};var y=v.name;return g.locale!==!1&&v.locale&&s&&(y=s({id:v.locale||"",defaultMessage:v.name})),y?t||!u?{title:y,id:v.locale||"",pageName:y}:{title:"".concat(y," - ").concat(u),id:v.locale||"",pageName:y}:{title:f,id:v.locale||"",pageName:f}},ji=function(e,t){return gn(e,t).title},Ei=null,Wr=d(10379),$r=d(44144),Kr=d(10178),Gr=d(48717),Si=d(17212),Ur=["rightContentRender","prefixCls"],Vr=function(e){var t=e.rightContentRender,r=e.prefixCls,i=(0,S.Z)(e,Ur),a=(0,Z.useState)("auto"),o=(0,L.Z)(a,2),s=o[0],u=o[1],c=(0,Kr.Z)(function(){var g=(0,Te.Z)((0,Me.Z)().mark(function f(v){return(0,Me.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:u(v);case 1:case"end":return C.stop()}},f)}));return function(f){return g.apply(this,arguments)}}(),160);return(0,l.jsx)("div",{className:"".concat(r,"-right-content"),style:{minWidth:s},children:(0,l.jsx)("div",{style:{paddingRight:8},children:(0,l.jsx)(Gr.Z,{onResize:function(f){var v=f.width;c.run(v)},children:t&&(0,l.jsx)("div",{className:"".concat(r,"-right-content-resize"),children:t((0,p.Z)((0,p.Z)({},i),{},{rightContentSize:s}))})})})})},Xr=function(e){var t=(0,Z.useRef)(null),r=e.theme,i=e.onMenuHeaderClick,a=e.contentWidth,o=e.rightContentRender,s=e.className,u=e.style,c=e.headerContentRender,g=e.layout,f="".concat(e.prefixCls||"ant-pro","-top-nav-header"),v=Ot((0,p.Z)((0,p.Z)({},e),{},{collapsed:!1}),g==="mix"?"headerTitleRender":void 0),y=fe()(f,s,{light:r==="light"}),C=(0,l.jsx)(un,(0,p.Z)((0,p.Z)({},e),e.menuProps)),N=c?c==null?void 0:c(e,C):C;return(0,l.jsx)("div",{className:y,style:u,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:N}),o&&(0,l.jsx)(Vr,(0,p.Z)({rightContentRender:o,prefixCls:f},e))]})})},pn=Xr,Ni=d(17124),Yr=function(e,t){return e===!1?null:e?e(t,null):t},Qr=function(e){var t=e.isMobile,r=e.logo,i=e.collapsed,a=e.onCollapse,o=e.collapsedButtonRender,s=o===void 0?dn:o,u=e.rightContentRender,c=e.menuHeaderRender,g=e.onMenuHeaderClick,f=e.className,v=e.style,y=e.layout,C=e.children,N=e.headerTheme,m=N===void 0?"dark":N,j=e.splitMenus,M=e.menuData,Y=e.prefixCls,G=(0,Z.useContext)(T.ZP.ConfigContext),q=G.direction,B="".concat(Y,"-global-header"),re=fe()(f,B,(0,$.Z)({},"".concat(B,"-layout-").concat(y),y&&m==="dark"));if(y==="mix"&&!t&&j){var ue=(M||[]).map(function(Ee){return(0,p.Z)((0,p.Z)({},Ee),{},{children:void 0,routes:void 0})}),W=tt(ue);return(0,l.jsx)(pn,(0,p.Z)((0,p.Z)({mode:"horizontal"},e),{},{splitMenus:!1,menuData:W,theme:m}))}var Ce=fe()("".concat(B,"-logo"),(0,$.Z)({},"".concat(B,"-logo-rtl"),q==="rtl")),je=(0,l.jsx)("span",{className:Ce,children:(0,l.jsx)("a",{children:cn(r)})},"logo");return(0,l.jsxs)("div",{className:re,style:(0,p.Z)({},v),children:[t&&Yr(c,je),t&&s&&(0,l.jsx)("span",{className:"".concat(B,"-collapsed-button"),onClick:function(){a&&a(!i)},children:s(i)}),y==="mix"&&!t&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:Ce,onClick:g,children:Ot((0,p.Z)((0,p.Z)({},e),{},{collapsed:!1}),"headerTitleRender")})}),(0,l.jsx)("div",{style:{flex:1},children:C}),u&&u(e)]})},Jr=Qr,Pi=d(2828),mn=xe.Z.Header,kr=function(n){(0,Wr.Z)(t,n);var e=(0,$r.Z)(t);function t(){var r;(0,en.Z)(this,t);for(var i=arguments.length,a=new Array(i),o=0;o