(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6301],{64335:function(pe,le,c){"use strict";var y=c(67294),Z=(0,y.createContext)({});le.Z=Z},16254:function(pe){pe.exports=ue,pe.exports.parse=Z,pe.exports.compile=R,pe.exports.tokensToFunction=x,pe.exports.tokensToRegExp=xe;var le="/",c="./",y=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function Z(P,$){for(var I=[],H=0,g=0,l="",ye=$&&$.delimiter||le,ce=$&&$.delimiters||c,L=!1,G;(G=y.exec(P))!==null;){var J=G[0],ie=G[1],te=G.index;if(l+=P.slice(g,te),g=te+J.length,ie){l+=ie[1],L=!0;continue}var ve="",Re=P[g],Pe=G[2],He=G[3],ge=G[4],q=G[5];if(!L&&l.length){var F=l.length-1;ce.indexOf(l[F])>-1&&(ve=l[F],l=l.slice(0,F))}l&&(I.push(l),l="",L=!1);var K=ve!==""&&Re!==void 0&&Re!==ve,b=q==="+"||q==="*",E=q==="?"||q==="*",v=ve||ye,N=He||ge;I.push({name:Pe||H++,prefix:ve,delimiter:v,optional:E,repeat:b,partial:K,pattern:N?M(N):"[^"+w(v)+"]+?"})}return(l||g
-1;else{var ve=te.repeat?"(?:"+te.pattern+")(?:"+w(te.delimiter)+"(?:"+te.pattern+"))*":te.pattern;$&&$.push(te),te.optional?te.partial?G+=w(te.prefix)+"("+ve+")?":G+="(?:"+w(te.prefix)+"("+ve+"))?":G+=w(te.prefix)+"("+ve+")"}}return l?(H||(G+="(?:"+ye+")?"),G+=L==="$"?"$":"(?="+L+")"):(H||(G+="(?:"+ye+"(?="+L+"))?"),J||(G+="(?="+ye+"|"+L+")")),new RegExp(G,k(I))}function ue(P,$,I){return P instanceof RegExp?ee(P,$):Array.isArray(P)?fe(P,$,I):W(P,$,I)}},80430:function(pe){"use strict";var le=!1,c=function(){};if(le){var y=function(R,x){var w=arguments.length;x=new Array(w>1?w-1:0);for(var M=1;M2?w-2:0);for(var M=2;M=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:_===void 0;i||(C+="(?:"+m+"(?="+f+"))?"),ae||(C+="(?="+m+"|"+f+")")}return new RegExp(C,T(t))}function V(n,e,t){return n instanceof RegExp?D(n,e):Array.isArray(n)?U(n,e,t):ne(n,e,t)}function B(n,e){return e>>>n|e<<32-n}function me(n,e,t){return n&e^~n&t}function Me(n,e,t){return n&e^n&t^e&t}function Fe(n){return B(2,n)^B(13,n)^B(22,n)}function ht(n){return B(6,n)^B(11,n)^B(25,n)}function yt(n){return B(7,n)^B(18,n)^n>>>3}function je(n){return B(17,n)^B(19,n)^n>>>10}function Ie(n,e){return n[e&15]+=je(n[e+14&15])+n[e+9&15]+yt(n[e+1&15])}var ze=[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],z,se,oe,xt="0123456789abcdef";function Qe(n,e){var t=(n&65535)+(e&65535),r=(n>>16)+(e>>16)+(t>>16);return r<<16|t&65535}function st(){z=new Array(8),se=new Array(2),oe=new Array(64),se[0]=se[1]=0,z[0]=1779033703,z[1]=3144134277,z[2]=1013904242,z[3]=2773480762,z[4]=1359893119,z[5]=2600822924,z[6]=528734635,z[7]=1541459225}function Je(){var n,e,t,r,i,a,o,s,u,d,p=new Array(16);n=z[0],e=z[1],t=z[2],r=z[3],i=z[4],a=z[5],o=z[6],s=z[7];for(var f=0;f<16;f++)p[f]=oe[(f<<2)+3]|oe[(f<<2)+2]<<8|oe[(f<<2)+1]<<16|oe[f<<2]<<24;for(var m=0;m<64;m++)u=s+ht(i)+me(i,a,o)+ze[m],m<16?u+=p[m]:u+=Ie(p,m),d=Fe(n)+Me(n,e,t),s=o,o=a,a=i,i=Qe(r,u),r=t,t=e,e=n,n=Qe(u,d);z[0]+=n,z[1]+=e,z[2]+=t,z[3]+=r,z[4]+=i,z[5]+=a,z[6]+=o,z[7]+=s}function ut(n,e){var t,r,i=0;r=se[0]>>3&63;var a=e&63;for((se[0]+=e<<3)>29,t=0;t+63>3&63;if(oe[n++]=128,n<=56)for(var e=n;e<56;e++)oe[e]=0;else{for(var t=n;t<64;t++)oe[t]=0;Je();for(var r=0;r<56;r++)oe[r]=0}oe[56]=se[1]>>>24&255,oe[57]=se[1]>>>16&255,oe[58]=se[1]>>>8&255,oe[59]=se[1]&255,oe[60]=se[0]>>>24&255,oe[61]=se[0]>>>16&255,oe[62]=se[0]>>>8&255,oe[63]=se[0]&255,Je()}function Bt(){for(var n=0,e=new Array(32),t=0;t<8;t++)e[n++]=z[t]>>>24&255,e[n++]=z[t]>>>16&255,e[n++]=z[t]>>>8&255,e[n++]=z[t]&255;return e}function An(){for(var n=new String,e=0;e<8;e++)for(var t=28;t>=0;t-=4)n+=xt.charAt(z[e]>>>t&15);return n}function Fn(n){return st(),ut(n,n.length),Ct(),An()}var In=Fn;function bt(n){return bt=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},bt(n)}var Ln=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function Bn(n,e){return zn(n)||Wn(n,e)||Zt(n,e)||Hn()}function Hn(){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 Wn(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 zn(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=Zt(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,s;return{s:function(){t=t.call(n)},n:function(){var d=t.next();return a=d.done,d},e:function(d){o=!0,s=d},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 Ht(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 $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 de(n){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return(e||t).startsWith("/")||Et(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[Ce],d=i.name,p=d===void 0?e.name:d,f=i.icon,m=f===void 0?e.icon:f,C=i.hideChildren,j=C===void 0?e.hideChildren:C,A=i.flatMenu,h=A===void 0?e.flatMenu:A,O=a&&Object.keys(a).join(",")!=="redirect"?[de({path:s,menu:i},a)].concat(u||[]):u,S=de({},e);if(p&&(S.name=p),m&&(S.icon=m),O&&O.length){if(j)return delete S[Ce],delete S.children,S;var re=jt(de(de({},t),{},{data:O}),e);if(h)return re;S[Ce]=re}return S},we=function(e){return Array.isArray(e)&&e.length>0};function jt(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?we(o[Ce])||we(o.children)||o.path||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=de({},o);return s.unaccessible&&delete s.name,s.path==="*"&&(s.path="."),s.path==="/*"&&(s.path="."),s}).map(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},s=o.children||o[Ce],u=Kt(o.path,e?e.path:"/"),d=o.name,p=nr(o,i||"menu"),f=p!==!1&&a!==!1&&r&&p?r({id:p,defaultMessage:d}):d,m=e.pro_layout_parentKeys,C=m===void 0?[]:m,j=e.children,A=e.icon,h=e.flatMenu,O=e.indexRoute,S=e.routes,re=_n(e,Ln),_=new Set([].concat(zt(C),zt(o.parentKeys||[])));e.key&&_.add(e.key);var ae=de(de(de({},re),{},{menu:void 0},o),{},{path:u,locale:p,key:o.key||tr(de(de({},o),{},{path:u})),pro_layout_parentKeys:Array.from(_).filter(function(he){return he&&he!=="/"})});if(f?ae.name=f:delete ae.name,ae.menu===void 0&&delete ae.menu,we(s)){var X=jt(de(de({},n),{},{data:s,parentName:p||""}),ae);we(X)&&(ae[Ce]=X,ae.children=X)}return rr(ae,n)}).flat(1)}var ar=ge(jt,te()),ir=function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.filter(function(t){return t&&(t.name||we(t[Ce])||we(t.children))&&!t.hideInMenu&&!t.redirect}).map(function(t){var r=de({},t),i=r.children||r[Ce];if(we(i)&&!r.hideChildrenInMenu&&i.some(function(s){return s&&!!s.name})){var a,o=n(i);if(o.length)return de(de({},r),{},(a={},et(a,Ce,o),et(a,"children",o),a))}return de(de({},t),{},et({},Ce,void 0))}).filter(function(t){return t})},or=function(n){Gn(t,n);var e=kn(t);function t(){return Kn(this,t),e.apply(this,arguments)}return Un(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),d=u[0],p=u[1],f=tt(d);if(!Et(d)&&V(f,[]).test(i)){a=p;break}}}catch(m){o.e(m)}finally{o.f()}}catch(m){a=void 0}return a}}]),t}(Mt(Map)),lr=function(e){var t=new or,r=function i(a,o){a.forEach(function(s){var u=s.children||s[Ce];we(u)&&i(u,s);var d=Kt(s.path,o?o.path:"/");t.set(tt(d),s)})};return r(e),t},sr=ge(lr,te()),ur=function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(function(t){var r=t.children||t[Ce];if(we(r)){var i=n(r);if(i.length)return de(de({},t),{},et({},Ce,i))}var a=de({},t);return delete a[Ce],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}},Ut=cr;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 dt(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[Ce];t[tt(r.path||r.key||"/")]=dt({},r),t[r.key||r.path||"/"]=dt({},r),i&&(t=dt(dt({},t),n(i)))}}),t},kt=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&&!Et(i)){var a=tt(i);try{if(r&&V("".concat(a)).test(t)||V("".concat(a),[]).test(t)||V("".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=kt(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 d=a[u]||{pro_layout_parentKeys:"",key:""},p=new Map,f=(d.pro_layout_parentKeys||[]).map(function(m){return p.has(m)?null:(p.set(m,!0),a[m])}).filter(function(m){return m});return d.key&&f.push(d),f}).flat(1))},Vt=mr,gr=c(94184),Ze=c.n(gr),Xt=c(97435),pr=c(21770),Yt=c(29405),hr=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,R.useState)([]),e=(0,H.Z)(n,2),t=e[0],r=e[1];return{flatMenuKeys:t,setFlatMenuKeys:r}}var Rr=(0,Mr.f)(Zr),ft=Rr,bi=c(30887),vt=c(28682),Er=c(1351),jr=c(76629),Mi=c(71748),Nr=c(19586),mt=c(85061),Qt=c(5991),Jt=c(6610),qt=c(91321),Sr=c(16165),Pr=function(e){if(!e||!e.startsWith("http"))return!1;try{var t=new URL(e);return!!t}catch(r){return!1}},Nt=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},_t=Tr,en=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},[])},tn={daybreak:"#1890ff",dust:"#F5222D",volcano:"#FA541C",sunset:"#FAAD14",cyan:"#13C2C2",green:"#52C41A",geekblue:"#2F54EB",purple:"#722ED1"};function Zi(n){return n&&tn[n]?tn[n]:n}function nt(n){return n.map(function(e){var t=e.children||e.routes,r=(0,g.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,g.Z)((0,g.Z)({},e),{},{children:nt(t),routes:nt(t)});delete r.routes,delete r.children}return r}).filter(function(e){return e})}var Ri=c(43361),nn=(0,qt.Z)({scriptUrl:_t.iconfontUrl}),rn=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-";if(typeof e=="string"&&e!==""){if(Nt(e)||Or(e))return(0,l.jsx)(Sr.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)(nn,{type:e})}return e},Dr=(0,Qt.Z)(function n(e){var t=this;(0,Jt.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,d=s.prefixCls,p=s.menu,f=s.iconPrefixes,m=r.icon?(0,l.jsxs)("span",{className:"".concat(d,"-menu-item"),title:o,children:[!i&&rn(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}),C=u?u((0,g.Z)((0,g.Z)({},r),{},{isUrl:!1}),m,t.props):m;return{type:(p==null?void 0:p.type)==="group"?"group":void 0,label:C,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(A){var h;Nt(r==null?void 0:r.path)&&window.open(r.path,"_blank"),(h=r.onTitleClick)===null||h===void 0||h.call(r,A)}}},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,d=o.isMobile,p=o.onCollapse,f=o.menuItemRender,m=o.iconPrefixes,C=t.getIntlName(r),j=t.props.prefixCls,A=i?null:rn(r.icon,m),h=Nt(a),O=(0,l.jsxs)("span",{className:Ze()("".concat(j,"-menu-item"),(0,W.Z)({},"".concat(j,"-menu-item-link"),h)),children:[A,(0,l.jsx)("span",{className:"".concat(j,"-menu-item-title"),children:C})]});if(f){var S=(0,g.Z)((0,g.Z)({},r),{},{isUrl:h,itemPath:a,isMobile:d,replace:a===u.pathname,onClick:function(){h&&window.open(a,"_blank"),p&&p(!0)},children:void 0});return f(S,O,t.props)}return O},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},an=function(e){var t=e.theme,r=e.mode,i=e.className,a=e.handleOpenChange,o=e.style,s=e.menuData,u=e.menu,d=e.matchMenuKeys,p=e.iconfontUrl,f=e.collapsed,m=e.selectedKeys,C=e.onSelect,j=e.openKeys,A=(0,R.useRef)([]),h=ft.useContainer(),O=h.flatMenuKeys,S=(0,ce.Z)(u==null?void 0:u.defaultOpenAll),re=(0,H.Z)(S,2),_=re[0],ae=re[1],X=(0,ce.Z)(function(){return(u==null?void 0:u.defaultOpenAll)?en(s)||[]:j===!1?!1:[]},{value:j===!1?void 0:j,onChange:a}),he=(0,H.Z)(X,2),be=he[0],Q=he[1],Se=(0,ce.Z)([],{value:m,onChange:C?function(We){C&&We&&C(We)}:void 0}),Oe=(0,H.Z)(Se,2),Te=Oe[0],De=Oe[1];(0,R.useEffect)(function(){(u==null?void 0:u.defaultOpenAll)||j===!1||O.length||d&&(Q(d),De(d))},[d.join("-")]),(0,R.useEffect)(function(){p&&(nn=(0,qt.Z)({scriptUrl:p}))},[p]),(0,R.useEffect)(function(){if(d.join("-")!==(Te||[]).join("-")&&De(d),!_&&j!==!1&&d.join("-")!==(be||[]).join("-")){var We=d;(u==null?void 0:u.autoClose)===!1&&(We=Array.from(new Set([].concat((0,mt.Z)(d),(0,mt.Z)(be||[]))))),Q(We)}else(u==null?void 0:u.ignoreFlatMenu)&&_?Q(en(s)):O.length>0&&ae(!1)},[d.join("-"),f]);var $e=(0,R.useMemo)(function(){return Ar(be,e)},[be&&be.join(","),e.layout,e.collapsed]),Ke=(0,R.useState)(function(){return new Dr(e)}),Ue=(0,H.Z)(Ke,1),Ae=Ue[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)(Nr.Z,{active:!0,title:!1,paragraph:{rows:(r==null?void 0:r.includes("inline"))?6:1}})});var Le=Ze()(i,{"top-nav-menu":r==="horizontal"});Ae.props=e,e.openKeys===!1&&!e.handleOpenChange&&(A.current=d);var Ne=e.postMenuData?e.postMenuData(s):s;return Ne&&(Ne==null?void 0:Ne.length)<1?null:(0,R.createElement)(vt.Z,(0,g.Z)((0,g.Z)({},$e),{},{key:"Menu",mode:r,items:Ae.getNavMenuItems(Ne,!1),inlineIndent:16,defaultOpenKeys:A.current,theme:t,selectedKeys:Te,style:o,className:Le,onOpenChange:Q},e.menuProps))};an.defaultProps={postMenuData:function(e){return e||[]}};var on=an,Fr=fe.Z.Sider,ln=function(e){return typeof e=="string"?(0,l.jsx)("img",{src:e,alt:"logo"}):typeof e=="function"?e():e},St=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=ln(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]})},sn=function(e){return e?(0,l.jsx)(Er.Z,{}):(0,l.jsx)(jr.Z,{})},Ir=function(e){var t,r=e.collapsed,i=e.fixSiderbar,a=e.menuFooterRender,o=e.onCollapse,s=e.theme,u=e.siderWidth,d=e.isMobile,p=e.onMenuHeaderClick,f=e.breakpoint,m=f===void 0?"lg":f,C=e.style,j=e.layout,A=e.menuExtraRender,h=A===void 0?!1:A,O=e.collapsedButtonRender,S=O===void 0?sn:O,re=e.links,_=e.menuContentRender,ae=e.prefixCls,X=e.onOpenChange,he=e.headerHeight,be=e.logoStyle,Q="".concat(ae,"-sider"),Se=ft.useContainer(),Oe=Se.flatMenuKeys,Te=Ze()("".concat(Q),(t={},(0,W.Z)(t,"".concat(Q,"-fixed"),i),(0,W.Z)(t,"".concat(Q,"-layout-").concat(j),j&&!d),(0,W.Z)(t,"".concat(Q,"-light"),s!=="dark"),t)),De=St(e),$e=h&&h(e),Ke=_!==!1&&Oe&&(0,R.createElement)(on,(0,g.Z)((0,g.Z)({},e),{},{key:"base-menu",mode:"inline",handleOpenChange:X,style:{width:"100%"},className:"".concat(Q,"-menu")})),Ue=_?_(e,Ke):Ke,Ae=(re||[]).map(function(Le,Ne){return{className:"".concat(Q,"-link"),label:Le,key:Ne}});return S&&!d&&Ae.push({className:"".concat(Q,"-collapsed-button"),title:!1,key:"collapsed",onClick:function(){o&&o(!r)},label:S(r)}),(0,l.jsxs)(l.Fragment,{children:[i&&(0,l.jsx)("div",{style:(0,g.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)"},C)}),(0,l.jsxs)(Fr,{collapsible:!0,trigger:null,collapsed:r,breakpoint:m===!1?void 0:m,onCollapse:function(Ne){d||o==null||o(Ne)},collapsedWidth:48,style:(0,g.Z)({overflow:"hidden",paddingTop:j==="mix"&&!d?he:void 0},C),width:u,theme:s,className:Te,children:[De&&(0,l.jsx)("div",{className:Ze()("".concat(Q,"-logo"),(0,W.Z)({},"".concat(Q,"-collapsed"),r)),onClick:j!=="mix"?p:void 0,id:"logo",style:be,children:De}),$e&&(0,l.jsx)("div",{className:"".concat(Q,"-extra ").concat(!De&&"".concat(Q,"-extra-no-logo")),children:$e}),(0,l.jsx)("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:Ue}),(0,l.jsx)("div",{className:"".concat(Q,"-links"),children:(0,l.jsx)(vt.Z,{theme:s,inlineIndent:16,className:"".concat(Q,"-link-menu"),selectedKeys:[],openKeys:[],mode:"inline",items:Ae})}),a&&(0,l.jsx)("div",{className:Ze()("".concat(Q,"-footer"),(0,W.Z)({},"".concat(Q,"-footer-collapsed"),!r)),children:a(e)})]})]})},un=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,d=e.hide,p=e.getContainer,f=e.prefixCls,m=e.matchMenuKeys,C=ft.useContainer(),j=C.setFlatMenuKeys;(0,R.useEffect)(function(){if(!(!r||r.length<1)){var h=kt(r);j(Object.keys(h))}},[m.join("-")]),(0,R.useEffect)(function(){t===!0&&(o==null||o(!0))},[t]);var A=(0,Xt.Z)(e,["className","style"]);return d?null:t?(0,l.jsx)(br.Z,{visible:!a,placement:"left",className:Ze()("".concat(f,"-drawer-sider"),u),onClose:function(){return o==null?void 0:o(!0)},style:(0,g.Z)({padding:0,height:"100vh"},s),getContainer:p,width:i,bodyStyle:{height:"100vh",padding:0,display:"flex",flexDirection:"row"},children:(0,l.jsx)(un,(0,g.Z)((0,g.Z)({},A),{},{className:Ze()("".concat(f,"-sider"),u),collapsed:t?!1:a,splitMenus:!1}))}):(0,l.jsx)(un,(0,g.Z)((0,g.Z)({className:Ze()("".concat(f,"-sider"),u)},A),{},{style:s}))},cn=Lr,Br=c(63485),Hr=c(16254),Pt=c.n(Hr),Wr=function(e,t,r){if(r){var i=(0,mt.Z)(r.keys()).find(function(o){return Pt()(o).test(e)});if(i)return r.get(i)}if(t){var a=Object.keys(t).find(function(o){return Pt()(o).test(e)});if(a)return t[a]}return{path:""}},dn=function(e,t){var r=e.pathname,i=r===void 0?"/":r,a=e.breadcrumb,o=e.breadcrumbMap,s=e.formatMessage,u=e.title,d=e.menu,p=d===void 0?{locale:!1}:d,f=t?"":u||"",m=Wr(i,a,o);if(!m)return{title:f,id:"",pageName:f};var C=m.name;return p.locale!==!1&&m.locale&&s&&(C=s({id:m.locale||"",defaultMessage:m.name})),C?t||!u?{title:C,id:m.locale||"",pageName:C}:{title:"".concat(C," - ").concat(u),id:m.locale||"",pageName:C}:{title:f,id:m.locale||"",pageName:f}},Ei=function(e,t){return dn(e,t).title},ji=null,zr=c(10379),$r=c(54070),Kr=c(10178),Ur=c(48717),Ni=c(17212),Gr=["rightContentRender","prefixCls"],kr=function(e){var t=e.rightContentRender,r=e.prefixCls,i=(0,P.Z)(e,Gr),a=(0,R.useState)("auto"),o=(0,H.Z)(a,2),s=o[0],u=o[1],d=(0,Kr.Z)(function(){var p=(0,ue.Z)((0,xe.Z)().mark(function f(m){return(0,xe.Z)().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:u(m);case 1:case"end":return j.stop()}},f)}));return function(f){return p.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)(Ur.Z,{onResize:function(f){var m=f.width;d.run(m)},children:t&&(0,l.jsx)("div",{className:"".concat(r,"-right-content-resize"),children:t((0,g.Z)((0,g.Z)({},i),{},{rightContentSize:s}))})})})})},Vr=function(e){var t=(0,R.useRef)(null),r=e.theme,i=e.onMenuHeaderClick,a=e.contentWidth,o=e.rightContentRender,s=e.className,u=e.style,d=e.headerContentRender,p=e.layout,f="".concat(e.prefixCls||"ant-pro","-top-nav-header"),m=St((0,g.Z)((0,g.Z)({},e),{},{collapsed:!1}),p==="mix"?"headerTitleRender":void 0),C=Ze()(f,s,{light:r==="light"}),j=(0,l.jsx)(on,(0,g.Z)((0,g.Z)({},e),e.menuProps)),A=d?d==null?void 0:d(e,j):j;return(0,l.jsx)("div",{className:C,style:u,children:(0,l.jsxs)("div",{ref:t,className:"".concat(f,"-main ").concat(a==="Fixed"?"wide":""),children:[m&&(0,l.jsx)("div",{className:"".concat(f,"-main-left"),onClick:i,children:(0,l.jsx)("div",{className:"".concat(f,"-logo"),id:"logo",children:m},"logo")}),(0,l.jsx)("div",{style:{flex:1},className:"".concat(f,"-menu"),children:A}),o&&(0,l.jsx)(kr,(0,g.Z)({rightContentRender:o,prefixCls:f},e))]})})},fn=Vr,Si=c(17124),Xr=function(e,t){return e===!1?null:e?e(t,null):t},Yr=function(e){var t=e.isMobile,r=e.logo,i=e.collapsed,a=e.onCollapse,o=e.collapsedButtonRender,s=o===void 0?sn:o,u=e.rightContentRender,d=e.menuHeaderRender,p=e.onMenuHeaderClick,f=e.className,m=e.style,C=e.layout,j=e.children,A=e.headerTheme,h=A===void 0?"dark":A,O=e.splitMenus,S=e.menuData,re=e.prefixCls,_=(0,R.useContext)(I.ZP.ConfigContext),ae=_.direction,X="".concat(re,"-global-header"),he=Ze()(f,X,(0,W.Z)({},"".concat(X,"-layout-").concat(C),C&&h==="dark"));if(C==="mix"&&!t&&O){var be=(S||[]).map(function(Te){return(0,g.Z)((0,g.Z)({},Te),{},{children:void 0,routes:void 0})}),Q=nt(be);return(0,l.jsx)(fn,(0,g.Z)((0,g.Z)({mode:"horizontal"},e),{},{splitMenus:!1,menuData:Q,theme:h}))}var Se=Ze()("".concat(X,"-logo"),(0,W.Z)({},"".concat(X,"-logo-rtl"),ae==="rtl")),Oe=(0,l.jsx)("span",{className:Se,children:(0,l.jsx)("a",{children:ln(r)})},"logo");return(0,l.jsxs)("div",{className:he,style:(0,g.Z)({},m),children:[t&&Xr(d,Oe),t&&s&&(0,l.jsx)("span",{className:"".concat(X,"-collapsed-button"),onClick:function(){a&&a(!i)},children:s(i)}),C==="mix"&&!t&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:Se,onClick:p,children:St((0,g.Z)((0,g.Z)({},e),{},{collapsed:!1}),"headerTitleRender")})}),(0,l.jsx)("div",{style:{flex:1},children:j}),u&&u(e)]})},Qr=Yr,Pi=c(2828),vn=fe.Z.Header,Jr=function(n){(0,zr.Z)(t,n);var e=(0,$r.Z)(t);function t(){var r;(0,Jt.Z)(this,t);for(var i=arguments.length,a=new Array(i),o=0;o1&&arguments[1]!==void 0?arguments[1]:{};if(!ge)return{};var F=q.element,K=F===void 0?document.body:F,b={},E=Object.keys(ge);return E.forEach(function(v){b[v]=K.style[v]}),E.forEach(function(v){K.style[v]=ge[v]}),b}var ue=xe;function P(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var $={},I=function(ge){if(!(!P()&&!ge)){var q="ant-scrolling-effect",F=new RegExp("".concat(q),"g"),K=document.body.className;if(ge){if(!F.test(K))return;ue($),$={},document.body.className=K.replace(F,"").trim();return}var b=(0,W.Z)();if(b&&($=ue({position:"relative",width:"calc(100% - ".concat(b,"px)")}),!F.test(K))){var E="".concat(K," ").concat(q);document.body.className=E.trim()}}},H=c(85061),g=0,l=[],ye="ant-scrolling-effect",ce=new RegExp("".concat(ye),"g"),L=new Map,G=(0,Z.Z)(function ge(q){var F=this;(0,y.Z)(this,ge),this.lockTarget=void 0,this.options=void 0,this.getContainer=function(){var K;return(K=F.options)===null||K===void 0?void 0:K.container},this.reLock=function(K){var b=l.find(function(E){var v=E.target;return v===F.lockTarget});b&&F.unLock(),F.options=K,b&&(b.options=K,F.lock())},this.lock=function(){var K;if(!l.some(function(T){var D=T.target;return D===F.lockTarget})){if(l.some(function(T){var D,U=T.options;return(U==null?void 0:U.container)===((D=F.options)===null||D===void 0?void 0:D.container)})){l=[].concat((0,H.Z)(l),[{target:F.lockTarget,options:F.options}]);return}var b=0,E=((K=F.options)===null||K===void 0?void 0:K.container)||document.body;(E===document.body&&window.innerWidth-document.documentElement.clientWidth>0||E.scrollHeight>E.clientHeight)&&(b=(0,W.Z)());var v=E.className;if(l.filter(function(T){var D,U=T.options;return(U==null?void 0:U.container)===((D=F.options)===null||D===void 0?void 0:D.container)}).length===0&&L.set(E,ue({width:b!==0?"calc(100% - ".concat(b,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:E})),!ce.test(v)){var N="".concat(v," ").concat(ye);E.className=N.trim()}l=[].concat((0,H.Z)(l),[{target:F.lockTarget,options:F.options}])}},this.unLock=function(){var K,b=l.find(function(N){var T=N.target;return T===F.lockTarget});if(l=l.filter(function(N){var T=N.target;return T!==F.lockTarget}),!(!b||l.some(function(N){var T,D=N.options;return(D==null?void 0:D.container)===((T=b.options)===null||T===void 0?void 0:T.container)}))){var E=((K=F.options)===null||K===void 0?void 0:K.container)||document.body,v=E.className;!ce.test(v)||(ue(L.get(E),{element:E}),L.delete(E),E.className=E.className.replace(ce,"").trim())}},this.lockTarget=g++,this.options=q}),J=0,ie=(0,fe.Z)();function te(){return 0}var ve={},Re=function(q){if(!ie)return null;if(q){if(typeof q=="string")return document.querySelectorAll(q)[0];if(typeof q=="function")return q();if((0,w.Z)(q)==="object"&&q instanceof window.HTMLElement)return q}return document.body},Pe=function(ge){(0,R.Z)(F,ge);var q=(0,x.Z)(F);function F(K){var b;return(0,y.Z)(this,F),b=q.call(this,K),b.container=void 0,b.componentRef=M.createRef(),b.rafId=void 0,b.scrollLocker=void 0,b.renderComponent=void 0,b.updateScrollLocker=function(E){var v=E||{},N=v.visible,T=b.props,D=T.getContainer,U=T.visible;U&&U!==N&&ie&&Re(D)!==b.scrollLocker.getContainer()&&b.scrollLocker.reLock({container:Re(D)})},b.updateOpenCount=function(E){var v=E||{},N=v.visible,T=v.getContainer,D=b.props,U=D.visible,ne=D.getContainer;U!==N&&ie&&Re(ne)===document.body&&(U&&!N?J+=1:E&&(J-=1));var Y=typeof ne=="function"&&typeof T=="function";(Y?ne.toString()!==T.toString():ne!==T)&&b.removeCurrentContainer()},b.attachToParent=function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(E||b.container&&!b.container.parentNode){var v=Re(b.props.getContainer);return v?(v.appendChild(b.container),!0):!1}return!0},b.getContainer=function(){return ie?(b.container||(b.container=document.createElement("div"),b.attachToParent(!0)),b.setWrapperClassName(),b.container):null},b.setWrapperClassName=function(){var E=b.props.wrapperClassName;b.container&&E&&E!==b.container.className&&(b.container.className=E)},b.removeCurrentContainer=function(){var E,v;(E=b.container)===null||E===void 0||(v=E.parentNode)===null||v===void 0||v.removeChild(b.container)},b.switchScrollingEffect=function(){J===1&&!Object.keys(ve).length?(I(),ve=ue({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"})):J||(ue(ve),ve={},I(!0))},b.scrollLocker=new G({container:Re(K.getContainer)}),b}return(0,Z.Z)(F,[{key:"componentDidMount",value:function(){var b=this;this.updateOpenCount(),this.attachToParent()||(this.rafId=(0,k.Z)(function(){b.forceUpdate()}))}},{key:"componentDidUpdate",value:function(b){this.updateOpenCount(b),this.updateScrollLocker(b),this.setWrapperClassName(),this.attachToParent()}},{key:"componentWillUnmount",value:function(){var b=this.props,E=b.visible,v=b.getContainer;ie&&Re(v)===document.body&&(J=E&&J?J-1:J),this.removeCurrentContainer(),k.Z.cancel(this.rafId)}},{key:"render",value:function(){var b=this.props,E=b.children,v=b.forceRender,N=b.visible,T=null,D={getOpenCount:function(){return J},getContainer:this.getContainer,switchScrollingEffect:this.switchScrollingEffect,scrollLocker:this.scrollLocker};return(v||N||this.componentRef.current)&&(T=M.createElement(ee.Z,{getContainer:this.getContainer,ref:this.componentRef},E(D))),T}}]),F}(M.Component),He=Pe},74204:function(pe,le,c){"use strict";c.d(le,{Z:function(){return Z},o:function(){return x}});var y;function Z(w){if(typeof document=="undefined")return 0;if(w||y===void 0){var M=document.createElement("div");M.style.width="100%",M.style.height="200px";var k=document.createElement("div"),ee=k.style;ee.position="absolute",ee.top="0",ee.left="0",ee.pointerEvents="none",ee.visibility="hidden",ee.width="200px",ee.height="150px",ee.overflow="hidden",k.appendChild(M),document.body.appendChild(k);var fe=M.offsetWidth;k.style.overflow="scroll";var W=M.offsetWidth;fe===W&&(W=k.clientWidth),document.body.removeChild(k),y=fe-W}return y}function R(w){var M=w.match(/^(.*)px$/),k=Number(M==null?void 0:M[1]);return Number.isNaN(k)?Z():k}function x(w){if(typeof document=="undefined"||!w||!(w instanceof Element))return{width:0,height:0};var M=getComputedStyle(w,"::-webkit-scrollbar"),k=M.width,ee=M.height;return{width:R(k),height:R(ee)}}}}]);