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.
19 lines
76 KiB
19 lines
76 KiB
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[680],{18785:function(rt,ee,a){a.d(ee,{Z:function(){return z}});var f=a(60499),u=a(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},H=M,g=a(7657),T=function(Z,P){return u.createElement(g.Z,(0,f.Z)({},Z,{ref:P,icon:H}))},W=u.forwardRef(T),z=W},87169:function(rt,ee,a){a.d(ee,{Z:function(){return z}});var f=a(60499),u=a(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},H=M,g=a(7657),T=function(Z,P){return u.createElement(g.Z,(0,f.Z)({},Z,{ref:P,icon:H}))},W=u.forwardRef(T),z=W},33853:function(rt,ee,a){a.d(ee,{Z:function(){return z}});var f=a(60499),u=a(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},H=M,g=a(7657),T=function(Z,P){return u.createElement(g.Z,(0,f.Z)({},Z,{ref:P,icon:H}))},W=u.forwardRef(T),z=W},38819:function(rt,ee,a){a.d(ee,{Z:function(){return z}});var f=a(60499),u=a(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},H=M,g=a(7657),T=function(Z,P){return u.createElement(g.Z,(0,f.Z)({},Z,{ref:P,icon:H}))},W=u.forwardRef(T),z=W},38053:function(rt,ee){ee.Z={flex_box_center:"flex_box_center___enTkV",flex_space_between:"flex_space_between___j8LoK",flex_box_vertical_center:"flex_box_vertical_center___BJ6hp",flex_box_center_end:"flex_box_center_end___KZOQH",flex_box_column:"flex_box_column___Tzu7t",wrapper:"wrapper___DnUnJ",content_wrapper:"content_wrapper___F_rCn",base_modal_style:"base_modal_style___vKqRE",menu:"menu___BpwS6",submenu:"submenu___xDr82",link:"link___b9dc8",header:"header___yrRip",title:"title___oWojk",home:"home___D896G",info:"info___n4w60"}},42786:function(rt,ee,a){a.r(ee),a.d(ee,{default:function(){return F}});var f=a(59301),u=a(91482),M=a(95237),H=a(43604),g=a(20834),T=a(43418),W=a(87169),z=a(38053),V=Object.defineProperty,Z=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,t=(x,h,I)=>h in x?V(x,h,{enumerable:!0,configurable:!0,writable:!0,value:I}):x[h]=I,Re=(x,h)=>{for(var I in h||(h={}))P.call(h,I)&&t(x,I,h[I]);if(Z)for(var I of Z(h))Pe.call(h,I)&&t(x,I,h[I]);return x};const De=x=>React.createElement("svg",Re({className:"my_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},x),React.createElement("defs",null,React.createElement("style",null,'@font-face{font-family:feedback-iconfont;src:url(//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944) format("woff2"),url(//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944) format("woff"),url(//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944) format("truetype")}')),React.createElement("path",{d:"M1024 731.429H0V0h1024v731.429zM87.771 643.657H936.23V87.771H87.77v555.886z",fill:"#464F66"}),React.createElement("path",{d:"M219.429 219.429H804.57V307.2H219.43zm0 219.428H512v87.772H219.429zM877.714 1016.686H146.286V797.257h731.428v219.429zm-643.657-87.772h555.886V885.03H234.057v43.885z",fill:"#464F66"}));var Le="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlPkBmb250LWZhY2V7Zm9udC1mYW1pbHk6ZmVlZGJhY2staWNvbmZvbnQ7c3JjOnVybCgvL2F0LmFsaWNkbi5jb20vdC9mb250XzEwMzExNThfdTY5dzh5aHhkdS53b2ZmMj90PTE2MzAwMzM3NTk5NDQpIGZvcm1hdCgmcXVvdDt3b2ZmMiZxdW90OyksdXJsKC8vYXQuYWxpY2RuLmNvbS90L2ZvbnRfMTAzMTE1OF91Njl3OHloeGR1LndvZmY/dD0xNjMwMDMzNzU5OTQ0KSBmb3JtYXQoJnF1b3Q7d29mZiZxdW90OyksdXJsKC8vYXQuYWxpY2RuLmNvbS90L2ZvbnRfMTAzMTE1OF91Njl3OHloeGR1LnR0Zj90PTE2MzAwMzM3NTk5NDQpIGZvcm1hdCgmcXVvdDt0cnVldHlwZSZxdW90Oyl9PC9zdHlsZT48L2RlZnM+PHBhdGggZD0iTTEwMjQgNzMxLjQyOUgwVjBoMTAyNHY3MzEuNDI5ek04Ny43NzEgNjQzLjY1N0g5MzYuMjNWODcuNzcxSDg3Ljc3djU1NS44ODZ6IiBmaWxsPSIjNDY0RjY2Ii8+PHBhdGggZD0iTTIxOS40MjkgMjE5LjQyOUg4MDQuNTdWMzA3LjJIMjE5LjQzem0wIDIxOS40MjhINTEydjg3Ljc3MkgyMTkuNDI5ek04NzcuNzE0IDEwMTYuNjg2SDE0Ni4yODZWNzk3LjI1N2g3MzEuNDI4djIxOS40Mjl6bS02NDMuNjU3LTg3Ljc3Mmg1NTUuODg2Vjg4NS4wM0gyMzQuMDU3djQzLjg4NXoiIGZpbGw9IiM0NjRGNjYiLz48L3N2Zz4=",Ye=Object.defineProperty,ot=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,Ge=(x,h,I)=>h in x?Ye(x,h,{enumerable:!0,configurable:!0,writable:!0,value:I}):x[h]=I,B=(x,h)=>{for(var I in h||(h={}))at.call(h,I)&&Ge(x,I,h[I]);if(ot)for(var I of ot(h))ie.call(h,I)&&Ge(x,I,h[I]);return x};const _=x=>React.createElement("svg",B({className:"jx_svg__icon",viewBox:"0 0 1088 1024",xmlns:"http://www.w3.org/2000/svg",width:212.5,height:200},x),React.createElement("defs",null,React.createElement("style",null,'@font-face{font-family:feedback-iconfont;src:url(//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944) format("woff2"),url(//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944) format("woff"),url(//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944) format("truetype")}')),React.createElement("path",{d:"M544 953.6 57.6 723.2V512h76.8v160L544 870.4 953.6 672V512h76.8v211.2zm0-595.2L140.8 185.6 544 32l403.2 153.6L544 358.4zM307.2 192 544 288l236.8-96L544 102.4 307.2 192z",fill:"#464F66"}),React.createElement("path",{d:"M524.8 819.2 160 646.4v-416l364.8 147.2v441.6zM224 608l236.8 108.8V422.4l-236.8-96V608z",fill:"#464F66"}),React.createElement("path",{d:"M224 409.6a64 64 0 1 0 128 0 64 64 0 1 0-128 0ZM224 588.8a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z",fill:"#464F66"}),React.createElement("path",{d:"m181.056 497.792 24.704-59.072 289.28 121.024-24.704 59.072zM569.6 588.8V377.6l352-147.2v204.8l-352 153.6zm64-166.4v70.4l224-102.4v-64l-224 96zm-64 390.4v-192l352-153.6v185.6l-352 160zm64-147.2v51.2l224-108.8v-44.8l-224 102.4z",fill:"#464F66"}));var S="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwODggMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjEyLjUiIGhlaWdodD0iMjAwIj48ZGVmcz48c3R5bGU+QGZvbnQtZmFjZXtmb250LWZhbWlseTpmZWVkYmFjay1pY29uZm9udDtzcmM6dXJsKC8vYXQuYWxpY2RuLmNvbS90L2ZvbnRfMTAzMTE1OF91Njl3OHloeGR1LndvZmYyP3Q9MTYzMDAzMzc1OTk0NCkgZm9ybWF0KCZxdW90O3dvZmYyJnF1b3Q7KSx1cmwoLy9hdC5hbGljZG4uY29tL3QvZm9udF8xMDMxMTU4X3U2OXc4eWh4ZHUud29mZj90PTE2MzAwMzM3NTk5NDQpIGZvcm1hdCgmcXVvdDt3b2ZmJnF1b3Q7KSx1cmwoLy9hdC5hbGljZG4uY29tL3QvZm9udF8xMDMxMTU4X3U2OXc4eWh4ZHUudHRmP3Q9MTYzMDAzMzc1OTk0NCkgZm9ybWF0KCZxdW90O3RydWV0eXBlJnF1b3Q7KX08L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNNTQ0IDk1My42IDU3LjYgNzIzLjJWNTEyaDc2Ljh2MTYwTDU0NCA4NzAuNCA5NTMuNiA2NzJWNTEyaDc2Ljh2MjExLjJ6bTAtNTk1LjJMMTQwLjggMTg1LjYgNTQ0IDMybDQwMy4yIDE1My42TDU0NCAzNTguNHpNMzA3LjIgMTkyIDU0NCAyODhsMjM2LjgtOTZMNTQ0IDEwMi40IDMwNy4yIDE5MnoiIGZpbGw9IiM0NjRGNjYiLz48cGF0aCBkPSJNNTI0LjggODE5LjIgMTYwIDY0Ni40di00MTZsMzY0LjggMTQ3LjJ2NDQxLjZ6TTIyNCA2MDhsMjM2LjggMTA4LjhWNDIyLjRsLTIzNi44LTk2VjYwOHoiIGZpbGw9IiM0NjRGNjYiLz48cGF0aCBkPSJNMjI0IDQwOS42YTY0IDY0IDAgMSAwIDEyOCAwIDY0IDY0IDAgMSAwLTEyOCAwWk0yMjQgNTg4LjhhNjQgNjQgMCAxIDAgMTI4IDAgNjQgNjQgMCAxIDAtMTI4IDBaIiBmaWxsPSIjNDY0RjY2Ii8+PHBhdGggZD0ibTE4MS4wNTYgNDk3Ljc5MiAyNC43MDQtNTkuMDcyIDI4OS4yOCAxMjEuMDI0LTI0LjcwNCA1OS4wNzJ6TTU2OS42IDU4OC44VjM3Ny42bDM1Mi0xNDcuMnYyMDQuOGwtMzUyIDE1My42em02NC0xNjYuNHY3MC40bDIyNC0xMDIuNHYtNjRsLTIyNCA5NnptLTY0IDM5MC40di0xOTJsMzUyLTE1My42djE4NS42bC0zNTIgMTYwem02NC0xNDcuMnY1MS4ybDIyNC0xMDguOHYtNDQuOGwtMjI0IDEwMi40eiIgZmlsbD0iIzQ2NEY2NiIvPjwvc3ZnPg==",R="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAWCAYAAADAQbwGAAAAAXNSR0IArs4c6QAAAqlJREFUOE+llEtIlFEUgL8zvkgXTa2yhxUmLWxSUYJMQkuC0B6S9oKSFLFFZJYFSuUIRaFEr0VWUiRWOkI5IVoRqSiFEVKaCUlZKpVtNHykUXNjnBkd5x+byH97z/nud84955eFaWqjxcJVYBEz+YQenZApwZmqW6kZwuwiIvRI6AGlPIqJS8RfMiTysBYYtgTyUkDvD5/7ofol6AQSoiBQD/3DcMoEb7odapMXSkyuFliaBfnl0NUHcQY4ngIoMFZA41tYFgh5ybDvsg3kXIDE52uBd7Jh93kIXwqHEqGwymaYsxXOVUFbNzhiXNsliae1wKJUqGqGvbFw9j7EhYKvDzS0Q/YmKK2HhEjILdN2X1KKlJpwtjd7QzikxkKBCQyLIcAPhkZBHwDP38GJZLj+BOraXHqoQPZc0hrGr4Rda6DQDMHzYP4cGBkDi4LWT5Cz2WZZ/9aNYUaxUo6mOqYhNwlqWyB5NVx5BCuCwMcb2rshfT3ca4Z4AxQ+mAq0cuTgDa2hcTsYTTY7q+ndJtDpYGc0lDVC1zcwpoCx0o3hsdtOhnbF7AQofwZfBiAsCHZEj0/NOLi9FxbMhW2r4GKtfWzsJVpjJL9Sa2hNSIiAWb4wMGwbExEwBMFsf1s/q1tsF2rG5oz5H1bP4246bcqFWjdA11fysMpTNqX4qRPQ8cxTfwYW4CYQAyz3JCu3mpRGcYInfESRlhojdTWdyq+vj5MCRwGf6cBS8cJtyQpFydBPjqTHyKBzcnmzCkMoEYhyBxXzKxeg0MsvMrZEysPpLExKefm2kq1TFCjwd46Txx2TQAWlI6NkJUWIm4HQ4mvaVLC3N9eAdY5TaXivOkTQ85v9a0PE7Knp7s4bPqh0HRQp+C6dSvlZg0JExv4H5sh5/VUF/BjE6w/jAvG03CiIyQAAAABJRU5ErkJggg==",D=a(6521),j=Object.defineProperty,K=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,de=(x,h,I)=>h in x?j(x,h,{enumerable:!0,configurable:!0,writable:!0,value:I}):x[h]=I,Be=(x,h)=>{for(var I in h||(h={}))we.call(h,I)&&de(x,I,h[I]);if(ue)for(var I of ue(h))He.call(h,I)&&de(x,I,h[I]);return x},_e=(x,h)=>K(x,xe(h));const C=({user:x,globalSetting:h,loading:I,dispatch:A,children:ve,innovation:U})=>{const q=(0,u.useLocation)(),$e=ze=>{A({type:"practiceSetting/setSideBarTabs",payload:{selectPath:""}}),u.history.replace(`/innovation/${ze.key}`)};let[Ve,Ke]=(0,f.useState)(["my-workspace"]);(0,f.useEffect)(()=>{q!=null&&q.pathname&&q.pathname==="/innovation"&&u.history.replace("/innovation/project")},[q.pathname]);const je=(0,f.useMemo)(()=>{var ze,Ze;return{imgSrc:(ze=h==null?void 0:h.setting)==null?void 0:ze.sci_logo,title:(Ze=h==null?void 0:h.setting)==null?void 0:Ze.sci_title}},[h]);return f.createElement(M.Z,{className:`mt30 mb30 ${z.Z.wrapper}`,justify:"space-between"},f.createElement(H.Z,{flex:"200px"},f.createElement("aside",{className:z.Z.home},f.createElement("div",null,f.createElement("img",{width:20,src:`${D.Z.API_SERVER}${je.imgSrc}`||R})),f.createElement("div",{className:z.Z.info},f.createElement("div",null,je.title||"\u79D1\u7814\u521B\u65B0"))),f.createElement(g.default,{onClick:$e,mode:"inline",openKeys:Ve,onOpenChange:ze=>{Ke(ze)},selectedKeys:[q.pathname.substring(12)],className:z.Z.menu},f.createElement(g.default.Item,{icon:f.createElement("i",{className:"iconfont icon-xiangmu",style:{marginRight:10}}),key:"project"},"\u516C\u5F00\u9879\u76EE"),f.createElement(g.default.Item,{icon:f.createElement("i",{className:"iconfont icon-shujuji",style:{marginRight:10}}),key:"dataset"},"\u516C\u5F00\u6570\u636E\u96C6"),f.createElement(g.default.Item,{icon:f.createElement("img",{src:S,style:{width:17,height:17,marginRight:10}}),key:"mirror"},"\u516C\u5F00\u955C\u50CF"),f.createElement(g.default.SubMenu,{title:"\u6211\u7684\u5DE5\u4F5C\u53F0",key:"my-workspace",icon:f.createElement("img",{src:Le,style:{width:16,height:16,marginRight:10}}),className:z.Z.submenu},f.createElement(g.default.Item,{key:"my-project"},"\u6211\u7684\u9879\u76EE"),f.createElement(g.default.Item,{key:"my-dataset"},"\u6211\u7684\u6570\u636E\u96C6"),f.createElement(g.default.Item,{key:"my-mirror"},"\u6211\u7684\u955C\u50CF")))),f.createElement(H.Z,{flex:"1"},f.createElement("div",{className:z.Z.content_wrapper},f.createElement(u.Outlet,null))),f.createElement(T.default,_e(Be({},U.simpleModalProps),{onCancel:()=>A({type:"innovation/closeSimpleModal"}),title:f.createElement(M.Z,{align:"middle"},f.createElement(W.Z,{style:{color:"#FF8C29",fontSize:18,marginRight:10}}),U.simpleModalProps.title),destroyOnClose:!0,centered:!0,className:`${z.Z.base_modal_style} ${U.simpleModalProps.className}`}),U.simpleModalProps.children))};var F=(0,u.connect)(({user:x,loading:h,globalSetting:I,innovation:A})=>({user:x,globalSetting:I,loading:h.models.index,innovation:A}))(C)},45818:function(rt,ee,a){a.d(ee,{D:function(){return ie},Z:function(){return _}});var f=a(60499),u=a(59301),M={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},H=M,g=a(7657),T=function(R,D){return u.createElement(g.Z,(0,f.Z)({},R,{ref:D,icon:H}))},W=u.forwardRef(T),z=W,V=a(33853),Z=a(38819),P=a(92310),Pe=a.n(P),t=a(2738),De=S=>!isNaN(parseFloat(S))&&isFinite(S),Le=a(36355),Ye=a(84966),ot=function(S,R){var D={};for(var j in S)Object.prototype.hasOwnProperty.call(S,j)&&R.indexOf(j)<0&&(D[j]=S[j]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,j=Object.getOwnPropertySymbols(S);K<j.length;K++)R.indexOf(j[K])<0&&Object.prototype.propertyIsEnumerable.call(S,j[K])&&(D[j[K]]=S[j[K]]);return D};const at={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ie=u.createContext({}),Ge=(()=>{let S=0;return function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return S+=1,`${R}${S}`}})();var _=u.forwardRef((S,R)=>{const{prefixCls:D,className:j,trigger:K,children:xe,defaultCollapsed:ue=!1,theme:we="dark",style:He={},collapsible:de=!1,reverseArrow:Be=!1,width:_e=200,collapsedWidth:C=80,zeroWidthTriggerStyle:F,breakpoint:x,onCollapse:h,onBreakpoint:I}=S,A=ot(S,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ve}=(0,u.useContext)(Ye.Gs),[U,q]=(0,u.useState)("collapsed"in S?S.collapsed:ue),[$e,Ve]=(0,u.useState)(!1);(0,u.useEffect)(()=>{"collapsed"in S&&q(S.collapsed)},[S.collapsed]);const Ke=(c,n)=>{"collapsed"in S||q(c),h==null||h(c,n)},je=(0,u.useRef)();je.current=c=>{Ve(c.matches),I==null||I(c.matches),U!==c.matches&&Ke(c.matches,"responsive")},(0,u.useEffect)(()=>{function c(e){return je.current(e)}let n;if(typeof window!="undefined"){const{matchMedia:e}=window;if(e&&x&&x in at){n=e(`(max-width: ${at[x]})`);try{n.addEventListener("change",c)}catch(m){n.addListener(c)}c(n)}}return()=>{try{n==null||n.removeEventListener("change",c)}catch(e){n==null||n.removeListener(c)}}},[x]),(0,u.useEffect)(()=>{const c=Ge("ant-sider-");return ve.addSider(c),()=>ve.removeSider(c)},[]);const ze=()=>{Ke(!U,"clickTrigger")},{getPrefixCls:Ze}=(0,u.useContext)(Le.E_),qe=()=>{const c=Ze("layout-sider",D),n=(0,t.Z)(A,["collapsed"]),e=U?C:_e,m=De(e)?`${e}px`:String(e),p=parseFloat(String(C||0))===0?u.createElement("span",{onClick:ze,className:Pe()(`${c}-zero-width-trigger`,`${c}-zero-width-trigger-${Be?"right":"left"}`),style:F},K||u.createElement(z,null)):null,E={expanded:Be?u.createElement(Z.Z,null):u.createElement(V.Z,null),collapsed:Be?u.createElement(V.Z,null):u.createElement(Z.Z,null)}[U?"collapsed":"expanded"],w=K!==null?p||u.createElement("div",{className:`${c}-trigger`,onClick:ze,style:{width:m}},K||E):null,L=Object.assign(Object.assign({},He),{flex:`0 0 ${m}`,maxWidth:m,minWidth:m,width:m}),Q=Pe()(c,`${c}-${we}`,{[`${c}-collapsed`]:!!U,[`${c}-has-trigger`]:de&&K!==null&&!p,[`${c}-below`]:!!$e,[`${c}-zero-width`]:parseFloat(m)===0},j);return u.createElement("aside",Object.assign({className:Q},n,{style:L,ref:R}),u.createElement("div",{className:`${c}-children`},xe),de||$e&&p?w:null)},$t=u.useMemo(()=>({siderCollapsed:U}),[U]);return u.createElement(ie.Provider,{value:$t},qe())})},84966:function(rt,ee,a){a.d(ee,{VY:function(){return ie},$_:function(){return at},h4:function(){return ot},Gs:function(){return t},ZP:function(){return Ge}});var f=a(77654),u=a(92310),M=a.n(u),H=a(2738),g=a(59301),T=a(36355),W=a(83116),V=B=>{const{componentCls:_,bodyBg:S,lightSiderBg:R,lightTriggerBg:D,lightTriggerColor:j}=B;return{[`${_}-sider-light`]:{background:R,[`${_}-sider-trigger`]:{color:j,background:D},[`${_}-sider-zero-width-trigger`]:{color:j,background:D,border:`1px solid ${S}`,borderInlineStart:0}}}};const Z=B=>{const{antCls:_,componentCls:S,colorText:R,triggerColor:D,footerBg:j,triggerBg:K,headerHeight:xe,headerPadding:ue,headerColor:we,footerPadding:He,triggerHeight:de,zeroTriggerHeight:Be,zeroTriggerWidth:_e,motionDurationMid:C,motionDurationSlow:F,fontSize:x,borderRadius:h,bodyBg:I,headerBg:A,siderBg:ve}=B;return{[S]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:I,"&, *":{boxSizing:"border-box"},[`&${S}-has-sider`]:{flexDirection:"row",[`> ${S}, > ${S}-content`]:{width:0}},[`${S}-header, &${S}-footer`]:{flex:"0 0 auto"},[`${S}-sider`]:{position:"relative",minWidth:0,background:ve,transition:`all ${C}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${_}-menu${_}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:de},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:de,color:D,lineHeight:`${de}px`,textAlign:"center",background:K,cursor:"pointer",transition:`all ${C}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:xe,insetInlineEnd:-_e,zIndex:1,width:_e,height:Be,color:D,fontSize:B.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ve,borderStartStartRadius:0,borderStartEndRadius:h,borderEndEndRadius:h,borderEndStartRadius:0,cursor:"pointer",transition:`background ${F} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${F}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-_e,borderStartStartRadius:h,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:h}}}}},V(B)),{"&-rtl":{direction:"rtl"}}),[`${S}-header`]:{height:xe,padding:ue,color:we,lineHeight:`${xe}px`,background:A,[`${_}-menu`]:{lineHeight:"inherit"}},[`${S}-footer`]:{padding:He,color:R,fontSize:x,background:j},[`${S}-content`]:{flex:"auto",minHeight:0}}};var P=(0,W.Z)("Layout",B=>[Z(B)],B=>{const{colorBgLayout:_,controlHeight:S,controlHeightLG:R,colorText:D,controlHeightSM:j,marginXXS:K,colorTextLightSolid:xe,colorBgContainer:ue}=B,we=R*1.25;return{colorBgHeader:"#001529",colorBgBody:_,colorBgTrigger:"#002140",bodyBg:_,headerBg:"#001529",headerHeight:S*2,headerPadding:`0 ${we}px`,headerColor:D,footerPadding:`${j}px ${we}px`,footerBg:_,siderBg:"#001529",triggerHeight:R+K*2,triggerBg:"#002140",triggerColor:xe,zeroTriggerWidth:R,zeroTriggerHeight:R,lightSiderBg:ue,lightTriggerBg:ue,lightTriggerColor:D}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Pe=function(B,_){var S={};for(var R in B)Object.prototype.hasOwnProperty.call(B,R)&&_.indexOf(R)<0&&(S[R]=B[R]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var D=0,R=Object.getOwnPropertySymbols(B);D<R.length;D++)_.indexOf(R[D])<0&&Object.prototype.propertyIsEnumerable.call(B,R[D])&&(S[R[D]]=B[R[D]]);return S};const t=g.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Re(B){let{suffixCls:_,tagName:S,displayName:R}=B;return D=>g.forwardRef((K,xe)=>g.createElement(D,Object.assign({ref:xe,suffixCls:_,tagName:S},K)))}const De=g.forwardRef((B,_)=>{const{prefixCls:S,suffixCls:R,className:D,tagName:j}=B,K=Pe(B,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:xe}=g.useContext(T.E_),ue=xe("layout",S),[we,He]=P(ue),de=R?`${ue}-${R}`:ue;return we(g.createElement(j,Object.assign({className:M()(S||de,D,He),ref:_},K)))}),Le=g.forwardRef((B,_)=>{const{direction:S}=g.useContext(T.E_),[R,D]=g.useState([]),{prefixCls:j,className:K,rootClassName:xe,children:ue,hasSider:we,tagName:He,style:de}=B,Be=Pe(B,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),_e=(0,H.Z)(Be,["suffixCls"]),{getPrefixCls:C,layout:F}=g.useContext(T.E_),x=C("layout",j),[h,I]=P(x),A=M()(x,{[`${x}-has-sider`]:typeof we=="boolean"?we:R.length>0,[`${x}-rtl`]:S==="rtl"},F==null?void 0:F.className,K,xe,I),ve=g.useMemo(()=>({siderHook:{addSider:U=>{D(q=>[].concat((0,f.Z)(q),[U]))},removeSider:U=>{D(q=>q.filter($e=>$e!==U))}}}),[]);return h(g.createElement(t.Provider,{value:ve},g.createElement(He,Object.assign({ref:_,className:A,style:Object.assign(Object.assign({},F==null?void 0:F.style),de)},_e),ue)))}),Ye=Re({tagName:"div",displayName:"Layout"})(Le),ot=Re({suffixCls:"header",tagName:"header",displayName:"Header"})(De),at=Re({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(De),ie=Re({suffixCls:"content",tagName:"main",displayName:"Content"})(De);var Ge=Ye},40875:function(rt,ee,a){a.d(ee,{J:function(){return T}});var f=a(59301),u=a(33234),M=a(70425),H=function(W,z){var V={};for(var Z in W)Object.prototype.hasOwnProperty.call(W,Z)&&z.indexOf(Z)<0&&(V[Z]=W[Z]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,Z=Object.getOwnPropertySymbols(W);P<Z.length;P++)z.indexOf(Z[P])<0&&Object.prototype.propertyIsEnumerable.call(W,Z[P])&&(V[Z[P]]=W[Z[P]]);return V};const g=f.createContext(null),T=f.forwardRef((W,z)=>{const{children:V}=W,Z=H(W,["children"]),P=f.useContext(g),Pe=f.useMemo(()=>Object.assign(Object.assign({},P),Z),[P,Z.prefixCls,Z.mode,Z.selectable]);return f.createElement(g.Provider,{value:Pe},f.createElement(u.BR,null,(0,M.supportNodeRef)(V)?f.cloneElement(V,{ref:z}):V))});ee.Z=g},20834:function(rt,ee,a){a.d(ee,{default:function(){return $t}});var f=a(15285),u=a(59301),M=a(45818),H=a(92310),g=a.n(H),T=a(36355),W=function(c,n){var e={};for(var m in c)Object.prototype.hasOwnProperty.call(c,m)&&n.indexOf(m)<0&&(e[m]=c[m]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,m=Object.getOwnPropertySymbols(c);p<m.length;p++)n.indexOf(m[p])<0&&Object.prototype.propertyIsEnumerable.call(c,m[p])&&(e[m[p]]=c[m[p]]);return e},V=c=>{const{prefixCls:n,className:e,dashed:m}=c,p=W(c,["prefixCls","className","dashed"]),{getPrefixCls:b}=u.useContext(T.E_),$=b("menu",n),E=g()({[`${$}-item-divider-dashed`]:!!m},e);return u.createElement(f.iz,Object.assign({className:E},p))},Z=a(11592),P=a(2738),Pe=a(6848),t=a(92343),De=(0,u.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ye=c=>{var n;const{className:e,children:m,icon:p,title:b,danger:$}=c,{prefixCls:E,firstLevel:w,direction:L,disableMenuItemTitleTooltip:Q,inlineCollapsed:Y}=u.useContext(De),Ie=Te=>{const We=u.createElement("span",{className:`${E}-title-content`},m);return(!p||(0,t.l$)(m)&&m.type==="span")&&m&&Te&&w&&typeof m=="string"?u.createElement("div",{className:`${E}-inline-collapsed-noicon`},m.charAt(0)):We},{siderCollapsed:ne}=u.useContext(M.D);let ge=b;typeof b=="undefined"?ge=w?m:"":b===!1&&(ge="");const X={title:ge};!ne&&!Y&&(X.title=null,X.open=!1);const pe=(0,Z.Z)(m).length;let he=u.createElement(f.ck,Object.assign({},(0,P.Z)(c,["title","icon","danger"]),{className:g()({[`${E}-item-danger`]:$,[`${E}-item-only-child`]:(p?pe+1:pe)===1},e),title:typeof b=="string"?b:void 0}),(0,t.Tm)(p,{className:g()((0,t.l$)(p)?(n=p.props)===null||n===void 0?void 0:n.className:"",`${E}-item-icon`)}),Ie(Y));return Q||(he=u.createElement(Pe.Z,Object.assign({},X,{placement:L==="rtl"?"left":"right",overlayClassName:`${E}-inline-collapsed-tooltip`}),he)),he},at=c=>{var n;const{popupClassName:e,icon:m,title:p,theme:b}=c,$=u.useContext(De),{prefixCls:E,inlineCollapsed:w,theme:L}=$,Q=(0,f.Xl)();let Y;if(!m)Y=w&&!Q.length&&p&&typeof p=="string"?u.createElement("div",{className:`${E}-inline-collapsed-noicon`},p.charAt(0)):u.createElement("span",{className:`${E}-title-content`},p);else{const ne=(0,t.l$)(p)&&p.type==="span";Y=u.createElement(u.Fragment,null,(0,t.Tm)(m,{className:g()((0,t.l$)(m)?(n=m.props)===null||n===void 0?void 0:n.className:"",`${E}-item-icon`)}),ne?p:u.createElement("span",{className:`${E}-title-content`},p))}const Ie=u.useMemo(()=>Object.assign(Object.assign({},$),{firstLevel:!1}),[$]);return u.createElement(De.Provider,{value:Ie},u.createElement(f.Wd,Object.assign({},(0,P.Z)(c,["icon"]),{title:Y,popupClassName:g()(E,e,`${E}-${b||L}`)})))},ie=a(18785),Ge=a(70425),B=a(62892),_=a(40875),S=function(c,n){var e={};for(var m in c)Object.prototype.hasOwnProperty.call(c,m)&&n.indexOf(m)<0&&(e[m]=c[m]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,m=Object.getOwnPropertySymbols(c);p<m.length;p++)n.indexOf(m[p])<0&&Object.prototype.propertyIsEnumerable.call(c,m[p])&&(e[m[p]]=c[m[p]]);return e};function R(c){return(c||[]).map((n,e)=>{if(n&&typeof n=="object"){const m=n,{label:p,children:b,key:$,type:E}=m,w=S(m,["label","children","key","type"]),L=$!=null?$:`tmp-${e}`;return b||E==="group"?E==="group"?u.createElement(f.BW,Object.assign({key:L},w,{title:p}),R(b)):u.createElement(at,Object.assign({key:L},w,{title:p}),R(b)):E==="divider"?u.createElement(V,Object.assign({key:L},w)):u.createElement(Ye,Object.assign({key:L},w),p)}return null}).filter(n=>n)}function D(c){return u.useMemo(()=>c&&R(c),[c])}var j=a(64993),K=a(17313),xe=a(8378),ue=a(13826),we=a(29878),He=a(83116),de=a(37613),_e=c=>{const{componentCls:n,motionDurationSlow:e,horizontalLineHeight:m,colorSplit:p,lineWidth:b,lineType:$,itemPaddingInline:E}=c;return{[`${n}-horizontal`]:{lineHeight:m,border:0,borderBottom:`${b}px ${$} ${p}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${n}-item, ${n}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:E},[`> ${n}-item:hover,
|
|
> ${n}-item-active,
|
|
> ${n}-submenu ${n}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${n}-item, ${n}-submenu-title`]:{transition:[`border-color ${e}`,`background ${e}`].join(",")},[`${n}-submenu-arrow`]:{display:"none"}}}},F=c=>{let{componentCls:n,menuArrowOffset:e}=c;return{[`${n}-rtl`]:{direction:"rtl"},[`${n}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${n}-rtl${n}-vertical,
|
|
${n}-submenu-rtl ${n}-vertical`]:{[`${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${e})`},"&::after":{transform:`rotate(45deg) translateY(${e})`}}}}};const x=c=>Object.assign({},(0,K.oN)(c));var I=(c,n)=>{const{componentCls:e,itemColor:m,itemSelectedColor:p,groupTitleColor:b,itemBg:$,subMenuItemBg:E,itemSelectedBg:w,activeBarHeight:L,activeBarWidth:Q,activeBarBorderWidth:Y,motionDurationSlow:Ie,motionEaseInOut:ne,motionEaseOut:ge,itemPaddingInline:X,motionDurationMid:pe,itemHoverColor:he,lineType:Te,colorSplit:We,itemDisabledColor:ut,dangerItemColor:dt,dangerItemHoverColor:Ue,dangerItemSelectedColor:ke,dangerItemActiveBg:re,dangerItemSelectedBg:Qe,itemHoverBg:Et,itemActiveBg:mt,menuSubMenuBg:Bt,horizontalItemSelectedColor:wt,horizontalItemSelectedBg:Zt,horizontalItemBorderRadius:ft,horizontalItemHoverBg:vt,popupBg:Ft}=c;return{[`${e}-${n}, ${e}-${n} > ${e}`]:{color:m,background:$,[`&${e}-root:focus-visible`]:Object.assign({},x(c)),[`${e}-item-group-title`]:{color:b},[`${e}-submenu-selected`]:{[`> ${e}-submenu-title`]:{color:p}},[`${e}-item-disabled, ${e}-submenu-disabled`]:{color:`${ut} !important`},[`${e}-item:not(${e}-item-selected):not(${e}-submenu-selected)`]:{[`&:hover, > ${e}-submenu-title:hover`]:{color:he}},[`&:not(${e}-horizontal)`]:{[`${e}-item:not(${e}-item-selected)`]:{"&:hover":{backgroundColor:Et},"&:active":{backgroundColor:mt}},[`${e}-submenu-title`]:{"&:hover":{backgroundColor:Et},"&:active":{backgroundColor:mt}}},[`${e}-item-danger`]:{color:dt,[`&${e}-item:hover`]:{[`&:not(${e}-item-selected):not(${e}-submenu-selected)`]:{color:Ue}},[`&${e}-item:active`]:{background:re}},[`${e}-item a`]:{"&, &:hover":{color:"inherit"}},[`${e}-item-selected`]:{color:p,[`&${e}-item-danger`]:{color:ke},"a, a:hover":{color:"inherit"}},[`& ${e}-item-selected`]:{backgroundColor:w,[`&${e}-item-danger`]:{backgroundColor:Qe}},[`${e}-item, ${e}-submenu-title`]:{[`&:not(${e}-item-disabled):focus-visible`]:Object.assign({},x(c))},[`&${e}-submenu > ${e}`]:{backgroundColor:Bt},[`&${e}-popup > ${e}`]:{backgroundColor:Ft},[`&${e}-horizontal`]:Object.assign(Object.assign({},n==="dark"?{borderBottom:0}:{}),{[`> ${e}-item, > ${e}-submenu`]:{top:Y,marginTop:-Y,marginBottom:0,borderRadius:ft,"&::after":{position:"absolute",insetInline:X,bottom:0,borderBottom:`${L}px solid transparent`,transition:`border-color ${Ie} ${ne}`,content:'""'},"&:hover, &-active, &-open":{background:vt,"&::after":{borderBottomWidth:L,borderBottomColor:wt}},"&-selected":{color:wt,backgroundColor:Zt,"&:hover":{backgroundColor:Zt},"&::after":{borderBottomWidth:L,borderBottomColor:wt}}}}),[`&${e}-root`]:{[`&${e}-inline, &${e}-vertical`]:{borderInlineEnd:`${Y}px ${Te} ${We}`}},[`&${e}-inline`]:{[`${e}-sub${e}-inline`]:{background:E},[`${e}-item, ${e}-submenu-title`]:Y&&Q?{width:`calc(100% + ${Y}px)`}:{},[`${e}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Q}px solid ${p}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${pe} ${ge}`,`opacity ${pe} ${ge}`].join(","),content:'""'},[`&${e}-item-danger`]:{"&::after":{borderInlineEndColor:ke}}},[`${e}-selected, ${e}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${pe} ${ne}`,`opacity ${pe} ${ne}`].join(",")}}}}}};const A=c=>{const{componentCls:n,itemHeight:e,itemMarginInline:m,padding:p,menuArrowSize:b,marginXS:$,itemMarginBlock:E}=c,w=p+b+$;return{[`${n}-item`]:{position:"relative",overflow:"hidden"},[`${n}-item, ${n}-submenu-title`]:{height:e,lineHeight:`${e}px`,paddingInline:p,overflow:"hidden",textOverflow:"ellipsis",marginInline:m,marginBlock:E,width:`calc(100% - ${m*2}px)`},[`> ${n}-item,
|
|
> ${n}-submenu > ${n}-submenu-title`]:{height:e,lineHeight:`${e}px`},[`${n}-item-group-list ${n}-submenu-title,
|
|
${n}-submenu-title`]:{paddingInlineEnd:w}}};var U=c=>{const{componentCls:n,iconCls:e,itemHeight:m,colorTextLightSolid:p,dropdownWidth:b,controlHeightLG:$,motionDurationMid:E,motionEaseOut:w,paddingXL:L,itemMarginInline:Q,fontSizeLG:Y,motionDurationSlow:Ie,paddingXS:ne,boxShadowSecondary:ge,collapsedWidth:X,collapsedIconSize:pe}=c,he={height:m,lineHeight:`${m}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[n]:{"&-inline, &-vertical":Object.assign({[`&${n}-root`]:{boxShadow:"none"}},A(c))},[`${n}-submenu-popup`]:{[`${n}-vertical`]:Object.assign(Object.assign({},A(c)),{boxShadow:ge})}},{[`${n}-submenu-popup ${n}-vertical${n}-sub`]:{minWidth:b,maxHeight:`calc(100vh - ${$*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${n}-inline`]:{width:"100%",[`&${n}-root`]:{[`${n}-item, ${n}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Ie}`,`background ${Ie}`,`padding ${E} ${w}`].join(","),[`> ${n}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${n}-sub${n}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${n}-submenu > ${n}-submenu-title`]:he,[`& ${n}-item-group-title`]:{paddingInlineStart:L}},[`${n}-item`]:he}},{[`${n}-inline-collapsed`]:{width:X,[`&${n}-root`]:{[`${n}-item, ${n}-submenu ${n}-submenu-title`]:{[`> ${n}-inline-collapsed-noicon`]:{fontSize:Y,textAlign:"center"}}},[`> ${n}-item,
|
|
> ${n}-item-group > ${n}-item-group-list > ${n}-item,
|
|
> ${n}-item-group > ${n}-item-group-list > ${n}-submenu > ${n}-submenu-title,
|
|
> ${n}-submenu > ${n}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Y/2}px - ${Q}px)`,textOverflow:"clip",[`
|
|
${n}-submenu-arrow,
|
|
${n}-submenu-expand-icon
|
|
`]:{opacity:0},[`${n}-item-icon, ${e}`]:{margin:0,fontSize:pe,lineHeight:`${m}px`,"+ span":{display:"inline-block",opacity:0}}},[`${n}-item-icon, ${e}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${n}-item-icon, ${e}`]:{display:"none"},"a, a:hover":{color:p}},[`${n}-item-group-title`]:Object.assign(Object.assign({},K.vS),{paddingInline:ne})}}]};const q=c=>{const{componentCls:n,motionDurationSlow:e,motionDurationMid:m,motionEaseInOut:p,motionEaseOut:b,iconCls:$,iconSize:E,iconMarginInlineEnd:w}=c;return{[`${n}-item, ${n}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${e}`,`background ${e}`,`padding ${e} ${p}`].join(","),[`${n}-item-icon, ${$}`]:{minWidth:E,fontSize:E,transition:[`font-size ${m} ${b}`,`margin ${e} ${p}`,`color ${e}`].join(","),"+ span":{marginInlineStart:w,opacity:1,transition:[`opacity ${e} ${p}`,`margin ${e}`,`color ${e}`].join(",")}},[`${n}-item-icon`]:Object.assign({},(0,K.Ro)()),[`&${n}-item-only-child`]:{[`> ${$}, > ${n}-item-icon`]:{marginInlineEnd:0}}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${n}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},$e=c=>{const{componentCls:n,motionDurationSlow:e,motionEaseInOut:m,borderRadius:p,menuArrowSize:b,menuArrowOffset:$}=c;return{[`${n}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:c.margin,width:b,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${e} ${m}, opacity ${e}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:b*.6,height:b*.15,backgroundColor:"currentcolor",borderRadius:p,transition:[`background ${e} ${m}`,`transform ${e} ${m}`,`top ${e} ${m}`,`color ${e} ${m}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${$})`},"&::after":{transform:`rotate(-45deg) translateY(${$})`}}}}},Ve=c=>{const{antCls:n,componentCls:e,fontSize:m,motionDurationSlow:p,motionDurationMid:b,motionEaseInOut:$,paddingXS:E,padding:w,colorSplit:L,lineWidth:Q,zIndexPopup:Y,borderRadiusLG:Ie,subMenuItemBorderRadius:ne,menuArrowSize:ge,menuArrowOffset:X,lineType:pe,menuPanelMaskInset:he,groupTitleLineHeight:Te,groupTitleFontSize:We}=c;return[{"":{[`${e}`]:Object.assign(Object.assign({},(0,K.dF)()),{"&-hidden":{display:"none"}})},[`${e}-submenu-hidden`]:{display:"none"}},{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,K.Wf)(c)),(0,K.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:m,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${p} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${e}-item`]:{flex:"none"}},[`${e}-item, ${e}-submenu, ${e}-submenu-title`]:{borderRadius:c.itemBorderRadius},[`${e}-item-group-title`]:{padding:`${E}px ${w}px`,fontSize:We,lineHeight:Te,transition:`all ${p}`},[`&-horizontal ${e}-submenu`]:{transition:[`border-color ${p} ${$}`,`background ${p} ${$}`].join(",")},[`${e}-submenu, ${e}-submenu-inline`]:{transition:[`border-color ${p} ${$}`,`background ${p} ${$}`,`padding ${b} ${$}`].join(",")},[`${e}-submenu ${e}-sub`]:{cursor:"initial",transition:[`background ${p} ${$}`,`padding ${p} ${$}`].join(",")},[`${e}-title-content`]:{transition:`color ${p}`},[`${e}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${e}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:L,borderStyle:pe,borderWidth:0,borderTopWidth:Q,marginBlock:Q,padding:0,"&-dashed":{borderStyle:"dashed"}}}),q(c)),{[`${e}-item-group`]:{[`${e}-item-group-list`]:{margin:0,padding:0,[`${e}-item, ${e}-submenu-title`]:{paddingInline:`${m*2}px ${w}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Y,borderRadius:Ie,boxShadow:"none",transformOrigin:"0 0",[`&${e}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${he}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:he},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:c.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:c.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:c.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:c.paddingXS},[`> ${e}`]:Object.assign(Object.assign(Object.assign({borderRadius:Ie},q(c)),$e(c)),{[`${e}-item, ${e}-submenu > ${e}-submenu-title`]:{borderRadius:ne},[`${e}-submenu-title::after`]:{transition:`transform ${p} ${$}`}})}}),$e(c)),{[`&-inline-collapsed ${e}-submenu-arrow,
|
|
&-inline ${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${X})`},"&::after":{transform:`rotate(45deg) translateX(-${X})`}},[`${e}-submenu-open${e}-submenu-inline > ${e}-submenu-title > ${e}-submenu-arrow`]:{transform:`translateY(-${ge*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${X})`},"&::before":{transform:`rotate(45deg) translateX(${X})`}}})},{[`${n}-layout-header`]:{[e]:{lineHeight:"inherit"}}}]};var Ke=(c,n)=>(0,He.Z)("Menu",m=>{if(n===!1)return[];const{colorBgElevated:p,colorPrimary:b,colorTextLightSolid:$,controlHeightLG:E,fontSize:w,darkItemColor:L,darkDangerItemColor:Q,darkItemBg:Y,darkSubMenuItemBg:Ie,darkItemSelectedColor:ne,darkItemSelectedBg:ge,darkDangerItemSelectedBg:X,darkItemHoverBg:pe,darkGroupTitleColor:he,darkItemHoverColor:Te,darkItemDisabledColor:We,darkDangerItemHoverColor:ut,darkDangerItemSelectedColor:dt,darkDangerItemActiveBg:Ue}=m,ke=w/7*5,re=(0,de.TS)(m,{menuArrowSize:ke,menuHorizontalHeight:E*1.15,menuArrowOffset:`${ke*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:p}),Qe=(0,de.TS)(re,{itemColor:L,itemHoverColor:Te,groupTitleColor:he,itemSelectedColor:ne,itemBg:Y,popupBg:Y,subMenuItemBg:Ie,itemActiveBg:"transparent",itemSelectedBg:ge,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:pe,itemDisabledColor:We,dangerItemColor:Q,dangerItemHoverColor:ut,dangerItemSelectedColor:dt,dangerItemActiveBg:Ue,dangerItemSelectedBg:X,menuSubMenuBg:Ie,horizontalItemSelectedColor:$,horizontalItemSelectedBg:b});return[Ve(re),_e(re),U(re),I(re,"light"),I(Qe,"dark"),F(re),(0,xe.Z)(re),(0,ue.oN)(re,"slide-up"),(0,ue.oN)(re,"slide-down"),(0,we._y)(re,"zoom-big")]},m=>{const{colorPrimary:p,colorError:b,colorTextDisabled:$,colorErrorBg:E,colorText:w,colorTextDescription:L,colorBgContainer:Q,colorFillAlter:Y,colorFillContent:Ie,lineWidth:ne,lineWidthBold:ge,controlItemBgActive:X,colorBgTextHover:pe,controlHeightLG:he,lineHeight:Te,colorBgElevated:We,marginXXS:ut,padding:dt,fontSize:Ue,controlHeightSM:ke,fontSizeLG:re,colorTextLightSolid:Qe,colorErrorHover:Et}=m,mt=new j.C(Qe).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:m.zIndexPopupBase+50,radiusItem:m.borderRadiusLG,itemBorderRadius:m.borderRadiusLG,radiusSubMenuItem:m.borderRadiusSM,subMenuItemBorderRadius:m.borderRadiusSM,colorItemText:w,itemColor:w,colorItemTextHover:w,itemHoverColor:w,colorItemTextHoverHorizontal:p,horizontalItemHoverColor:p,colorGroupTitle:L,groupTitleColor:L,colorItemTextSelected:p,itemSelectedColor:p,colorItemTextSelectedHorizontal:p,horizontalItemSelectedColor:p,colorItemBg:Q,itemBg:Q,colorItemBgHover:pe,itemHoverBg:pe,colorItemBgActive:Ie,itemActiveBg:X,colorSubItemBg:Y,subMenuItemBg:Y,colorItemBgSelected:X,itemSelectedBg:X,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:ge,activeBarHeight:ge,colorActiveBarBorderSize:ne,activeBarBorderWidth:ne,colorItemTextDisabled:$,itemDisabledColor:$,colorDangerItemText:b,dangerItemColor:b,colorDangerItemTextHover:b,dangerItemHoverColor:b,colorDangerItemTextSelected:b,dangerItemSelectedColor:b,colorDangerItemBgActive:E,dangerItemActiveBg:E,colorDangerItemBgSelected:E,dangerItemSelectedBg:E,itemMarginInline:m.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:he,groupTitleLineHeight:Te,collapsedWidth:he*2,popupBg:We,itemMarginBlock:ut,itemPaddingInline:dt,horizontalLineHeight:`${he*1.15}px`,iconSize:Ue,iconMarginInlineEnd:ke-Ue,collapsedIconSize:re,groupTitleFontSize:Ue,darkItemDisabledColor:new j.C(Qe).setAlpha(.25).toRgbString(),darkItemColor:mt,darkDangerItemColor:b,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Qe,darkItemSelectedBg:p,darkDangerItemSelectedBg:b,darkItemHoverBg:"transparent",darkGroupTitleColor:mt,darkItemHoverColor:Qe,darkDangerItemHoverColor:Et,darkDangerItemSelectedColor:Qe,darkDangerItemActiveBg:b}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(c),je=function(c,n){var e={};for(var m in c)Object.prototype.hasOwnProperty.call(c,m)&&n.indexOf(m)<0&&(e[m]=c[m]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,m=Object.getOwnPropertySymbols(c);p<m.length;p++)n.indexOf(m[p])<0&&Object.prototype.propertyIsEnumerable.call(c,m[p])&&(e[m[p]]=c[m[p]]);return e},Ze=(0,u.forwardRef)((c,n)=>{var e,m;const p=u.useContext(_.Z),b=p||{},{getPrefixCls:$,getPopupContainer:E,direction:w,menu:L}=u.useContext(T.E_),Q=$(),{prefixCls:Y,className:Ie,style:ne,theme:ge="light",expandIcon:X,_internalDisableMenuItemTitleTooltip:pe,inlineCollapsed:he,siderCollapsed:Te,items:We,children:ut,rootClassName:dt,mode:Ue,selectable:ke,onClick:re,overflowedIndicatorPopupClassName:Qe}=c,Et=je(c,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),mt=(0,P.Z)(Et,["collapsedWidth"]),Bt=D(We)||ut;(e=b.validator)===null||e===void 0||e.call(b,{mode:Ue});const wt=(0,Ge.useEvent)(function(){var et;re==null||re.apply(void 0,arguments),(et=b.onClick)===null||et===void 0||et.call(b)}),Zt=b.mode||Ue,ft=ke!=null?ke:b.selectable,vt=u.useMemo(()=>Te!==void 0?Te:he,[he,Te]),Ft={horizontal:{motionName:`${Q}-slide-up`},inline:(0,B.Z)(Q),other:{motionName:`${Q}-zoom-big`}},it=$("menu",Y||b.prefixCls),[Yt,Gt]=Ke(it,!p),jt=g()(`${it}-${ge}`,L==null?void 0:L.className,Ie);let Pt;if(typeof X=="function")Pt=X;else if(X===null||X===!1)Pt=null;else if(b.expandIcon===null||b.expandIcon===!1)Pt=null;else{const et=X!=null?X:b.expandIcon;Pt=(0,t.Tm)(et,{className:g()(`${it}-submenu-expand-icon`,(0,t.l$)(et)?(m=et.props)===null||m===void 0?void 0:m.className:"")})}const Ee=u.useMemo(()=>({prefixCls:it,inlineCollapsed:vt||!1,direction:w,firstLevel:!0,theme:ge,mode:Zt,disableMenuItemTitleTooltip:pe}),[it,vt,w,pe,ge]);return Yt(u.createElement(_.Z.Provider,{value:null},u.createElement(De.Provider,{value:Ee},u.createElement(f.ZP,Object.assign({getPopupContainer:E,overflowedIndicator:u.createElement(ie.Z,null),overflowedIndicatorPopupClassName:g()(it,`${it}-${ge}`,Qe),mode:Zt,selectable:ft,onClick:wt},mt,{inlineCollapsed:vt,style:Object.assign(Object.assign({},L==null?void 0:L.style),ne),className:jt,prefixCls:it,direction:w,defaultMotions:Ft,expandIcon:Pt,ref:n,rootClassName:g()(dt,Gt)}),Bt))))});const qe=(0,u.forwardRef)((c,n)=>{const e=(0,u.useRef)(null),m=u.useContext(M.D);return(0,u.useImperativeHandle)(n,()=>({menu:e.current,focus:p=>{var b;(b=e.current)===null||b===void 0||b.focus(p)}})),u.createElement(Ze,Object.assign({ref:e},c,m))});qe.Item=Ye,qe.SubMenu=at,qe.Divider=V,qe.ItemGroup=f.BW;var $t=qe},8378:function(rt,ee){const a=f=>({[f.componentCls]:{[`${f.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${f.motionDurationMid} ${f.motionEaseInOut},
|
|
opacity ${f.motionDurationMid} ${f.motionEaseInOut} !important`}},[`${f.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${f.motionDurationMid} ${f.motionEaseInOut},
|
|
opacity ${f.motionDurationMid} ${f.motionEaseInOut} !important`}}});ee.Z=a},13826:function(rt,ee,a){a.d(ee,{Qt:function(){return g},Uw:function(){return H},fJ:function(){return M},ly:function(){return T},oN:function(){return Pe}});var f=a(36237),u=a(95406);const M=new f.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),H=new f.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),g=new f.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),T=new f.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),W=new f.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),z=new f.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),V=new f.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Z=new f.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),P={"slide-up":{inKeyframes:M,outKeyframes:H},"slide-down":{inKeyframes:g,outKeyframes:T},"slide-left":{inKeyframes:W,outKeyframes:z},"slide-right":{inKeyframes:V,outKeyframes:Z}},Pe=(t,Re)=>{const{antCls:De}=t,Le=`${De}-${Re}`,{inKeyframes:Ye,outKeyframes:ot}=P[Re];return[(0,u.R)(Le,Ye,ot,t.motionDurationMid),{[`
|
|
${Le}-enter,
|
|
${Le}-appear
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:t.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${Le}-leave`]:{animationTimingFunction:t.motionEaseInQuint}}]}},15285:function(rt,ee,a){a.d(ee,{iz:function(){return zt},ck:function(){return ft},BW:function(){return gn},sN:function(){return ft},Wd:function(){return Ut},ZP:function(){return Ht},Xl:function(){return j}});var f=a(60499),u=a(18642),M=a(85899),H=a(77654),g=a(72190),T=a(42244),W=a(92310),z=a.n(W),V=a(83836),Z=a(18929),P=a(13697),Pe=a(48736),t=a(59301),Re=a(4676),De=t.createContext(null);function Le(o,r){return o===void 0?null:"".concat(o,"-").concat(r)}function Ye(o){var r=t.useContext(De);return Le(r,o)}var ot=a(80547),at=["children","locked"],ie=t.createContext(null);function Ge(o,r){var d=(0,M.Z)({},o);return Object.keys(r).forEach(function(v){var i=r[v];i!==void 0&&(d[v]=i)}),d}function B(o){var r=o.children,d=o.locked,v=(0,T.Z)(o,at),i=t.useContext(ie),s=(0,ot.Z)(function(){return Ge(i,v)},[i,v],function(l,y){return!d&&(l[0]!==y[0]||!(0,P.Z)(l[1],y[1],!0))});return t.createElement(ie.Provider,{value:s},r)}var _=[],S=t.createContext(null);function R(){return t.useContext(S)}var D=t.createContext(_);function j(o){var r=t.useContext(D);return t.useMemo(function(){return o!==void 0?[].concat((0,H.Z)(r),[o]):r},[r,o])}var K=t.createContext(null),xe=t.createContext({}),ue=xe,we=a(29194);function He(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,we.Z)(o)){var d=o.nodeName.toLowerCase(),v=["input","select","textarea","button"].includes(d)||o.isContentEditable||d==="a"&&!!o.getAttribute("href"),i=o.getAttribute("tabindex"),s=Number(i),l=null;return i&&!Number.isNaN(s)?l=s:v&&l===null&&(l=0),v&&o.disabled&&(l=null),l!==null&&(l>=0||r&&l<0)}return!1}function de(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=(0,H.Z)(o.querySelectorAll("*")).filter(function(v){return He(v,r)});return He(o,r)&&d.unshift(o),d}var Be=null;function _e(){Be=document.activeElement}function C(){Be=null}function F(){if(Be)try{Be.focus()}catch(o){}}function x(o,r){if(r.keyCode===9){var d=de(o),v=d[r.shiftKey?0:d.length-1],i=v===document.activeElement||o===document.activeElement;if(i){var s=d[r.shiftKey?d.length-1:0];s.focus(),r.preventDefault()}}}var h=a(10228),I=a(16089),A=h.Z.LEFT,ve=h.Z.RIGHT,U=h.Z.UP,q=h.Z.DOWN,$e=h.Z.ENTER,Ve=h.Z.ESC,Ke=h.Z.HOME,je=h.Z.END,ze=[U,q,A,ve];function Ze(o,r,d,v){var i,s,l,y,N="prev",O="next",le="children",k="parent";if(o==="inline"&&v===$e)return{inlineTrigger:!0};var ce=(i={},(0,u.Z)(i,U,N),(0,u.Z)(i,q,O),i),me=(s={},(0,u.Z)(s,A,d?O:N),(0,u.Z)(s,ve,d?N:O),(0,u.Z)(s,q,le),(0,u.Z)(s,$e,le),s),te=(l={},(0,u.Z)(l,U,N),(0,u.Z)(l,q,O),(0,u.Z)(l,$e,le),(0,u.Z)(l,Ve,k),(0,u.Z)(l,A,d?le:k),(0,u.Z)(l,ve,d?k:le),l),Oe={inline:ce,horizontal:me,vertical:te,inlineSub:ce,horizontalSub:te,verticalSub:te},Se=(y=Oe["".concat(o).concat(r?"":"Sub")])===null||y===void 0?void 0:y[v];switch(Se){case N:return{offset:-1,sibling:!0};case O:return{offset:1,sibling:!0};case k:return{offset:-1,sibling:!1};case le:return{offset:1,sibling:!1};default:return null}}function qe(o){for(var r=o;r;){if(r.getAttribute("data-menu-list"))return r;r=r.parentElement}return null}function $t(o,r){for(var d=o||document.activeElement;d;){if(r.has(d))return d;d=d.parentElement}return null}function c(o,r){var d=de(o,!0);return d.filter(function(v){return r.has(v)})}function n(o,r,d){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!o)return null;var i=c(o,r),s=i.length,l=i.findIndex(function(y){return d===y});return v<0?l===-1?l=s-1:l-=1:v>0&&(l+=1),l=(l+s)%s,i[l]}var e=function(r,d){var v=new Set,i=new Map,s=new Map;return r.forEach(function(l){var y=document.querySelector("[data-menu-id='".concat(Le(d,l),"']"));y&&(v.add(y),s.set(y,l),i.set(l,y))}),{elements:v,key2element:i,element2key:s}};function m(o,r,d,v,i,s,l,y,N,O){var le=t.useRef(),k=t.useRef();k.current=r;var ce=function(){I.Z.cancel(le.current)};return t.useEffect(function(){return function(){ce()}},[]),function(me){var te=me.which;if([].concat(ze,[$e,Ve,Ke,je]).includes(te)){var Oe=s(),Se=e(Oe,v),Ne=Se,oe=Ne.elements,J=Ne.key2element,G=Ne.element2key,ye=J.get(r),se=$t(ye,oe),Ae=G.get(se),fe=Ze(o,l(Ae,!0).length===1,d,te);if(!fe&&te!==Ke&&te!==je)return;(ze.includes(te)||[Ke,je].includes(te))&&me.preventDefault();var Ct=function(tt){if(tt){var xt=tt,St=tt.querySelector("a");St!=null&&St.getAttribute("href")&&(xt=St);var Mt=G.get(tt);y(Mt),ce(),le.current=(0,I.Z)(function(){k.current===Mt&&xt.focus()})}};if([Ke,je].includes(te)||fe.sibling||!se){var Ce;!se||o==="inline"?Ce=i.current:Ce=qe(se);var lt,Fe=c(Ce,oe);te===Ke?lt=Fe[0]:te===je?lt=Fe[Fe.length-1]:lt=n(Ce,oe,se,fe.offset),Ct(lt)}else if(fe.inlineTrigger)N(Ae);else if(fe.offset>0)N(Ae,!0),ce(),le.current=(0,I.Z)(function(){Se=e(Oe,v);var Tt=se.getAttribute("aria-controls"),tt=document.getElementById(Tt),xt=n(tt,Se.elements);Ct(xt)},5);else if(fe.offset<0){var Xe=l(Ae,!0),pt=Xe[Xe.length-2],ht=J.get(pt);N(pt,!1),Ct(ht)}}O==null||O(me)}}function p(o){Promise.resolve().then(o)}var b="__RC_UTIL_PATH_SPLIT__",$=function(r){return r.join(b)},E=function(r){return r.split(b)},w="rc-menu-more";function L(){var o=t.useState({}),r=(0,g.Z)(o,2),d=r[1],v=(0,t.useRef)(new Map),i=(0,t.useRef)(new Map),s=t.useState([]),l=(0,g.Z)(s,2),y=l[0],N=l[1],O=(0,t.useRef)(0),le=(0,t.useRef)(!1),k=function(){le.current||d({})},ce=(0,t.useCallback)(function(J,G){var ye=$(G);i.current.set(ye,J),v.current.set(J,ye),O.current+=1;var se=O.current;p(function(){se===O.current&&k()})},[]),me=(0,t.useCallback)(function(J,G){var ye=$(G);i.current.delete(ye),v.current.delete(J)},[]),te=(0,t.useCallback)(function(J){N(J)},[]),Oe=(0,t.useCallback)(function(J,G){var ye=v.current.get(J)||"",se=E(ye);return G&&y.includes(se[0])&&se.unshift(w),se},[y]),Se=(0,t.useCallback)(function(J,G){return J.some(function(ye){var se=Oe(ye,!0);return se.includes(G)})},[Oe]),Ne=function(){var G=(0,H.Z)(v.current.keys());return y.length&&G.push(w),G},oe=(0,t.useCallback)(function(J){var G="".concat(v.current.get(J)).concat(b),ye=new Set;return(0,H.Z)(i.current.keys()).forEach(function(se){se.startsWith(G)&&ye.add(i.current.get(se))}),ye},[]);return t.useEffect(function(){return function(){le.current=!0}},[]),{registerPath:ce,unregisterPath:me,refreshOverflowKeys:te,isSubPathKey:Se,getKeyPath:Oe,getKeys:Ne,getSubPathKeys:oe}}function Q(o){var r=t.useRef(o);r.current=o;var d=t.useCallback(function(){for(var v,i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return(v=r.current)===null||v===void 0?void 0:v.call.apply(v,[r].concat(s))},[]);return o?d:void 0}var Y=Math.random().toFixed(5).toString().slice(2),Ie=0;function ne(o){var r=(0,Z.Z)(o,{value:o}),d=(0,g.Z)(r,2),v=d[0],i=d[1];return t.useEffect(function(){Ie+=1;var s="".concat(Y,"-").concat(Ie);i("rc-menu-uuid-".concat(s))},[]),v}var ge=a(38705),X=a(17212),pe=a(39153),he=a(55401),Te=a(2738),We=a(8654);function ut(o,r,d,v){var i=t.useContext(ie),s=i.activeKey,l=i.onActive,y=i.onInactive,N={active:s===o};return r||(N.onMouseEnter=function(O){d==null||d({key:o,domEvent:O}),l(o)},N.onMouseLeave=function(O){v==null||v({key:o,domEvent:O}),y(o)}),N}function dt(o){var r=t.useContext(ie),d=r.mode,v=r.rtl,i=r.inlineIndent;if(d!=="inline")return null;var s=o;return v?{paddingRight:s*i}:{paddingLeft:s*i}}function Ue(o){var r=o.icon,d=o.props,v=o.children,i;return r===null||r===!1?null:(typeof r=="function"?i=t.createElement(r,(0,M.Z)({},d)):typeof r!="boolean"&&(i=r),i||v||null)}var ke=["item"];function re(o){var r=o.item,d=(0,T.Z)(o,ke);return Object.defineProperty(d,"item",{get:function(){return(0,Pe.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),r}}),d}var Qe=["title","attribute","elementRef"],Et=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],mt=["active"],Bt=function(o){(0,pe.Z)(d,o);var r=(0,he.Z)(d);function d(){return(0,ge.Z)(this,d),r.apply(this,arguments)}return(0,X.Z)(d,[{key:"render",value:function(){var i=this.props,s=i.title,l=i.attribute,y=i.elementRef,N=(0,T.Z)(i,Qe),O=(0,Te.Z)(N,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,Pe.ZP)(!l,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),t.createElement(V.Z.Item,(0,f.Z)({},l,{title:typeof s=="string"?s:void 0},O,{ref:y}))}}]),d}(t.Component),wt=t.forwardRef(function(o,r){var d,v=o.style,i=o.className,s=o.eventKey,l=o.warnKey,y=o.disabled,N=o.itemIcon,O=o.children,le=o.role,k=o.onMouseEnter,ce=o.onMouseLeave,me=o.onClick,te=o.onKeyDown,Oe=o.onFocus,Se=(0,T.Z)(o,Et),Ne=Ye(s),oe=t.useContext(ie),J=oe.prefixCls,G=oe.onItemClick,ye=oe.disabled,se=oe.overflowDisabled,Ae=oe.itemIcon,fe=oe.selectedKeys,Ct=oe.onActive,Ce=t.useContext(ue),lt=Ce._internalRenderMenuItem,Fe="".concat(J,"-item"),Xe=t.useRef(),pt=t.useRef(),ht=ye||y,Tt=(0,We.x1)(r,pt),tt=j(s),xt=function(Je){return{key:s,keyPath:(0,H.Z)(tt).reverse(),item:Xe.current,domEvent:Je}},St=N||Ae,Mt=ut(s,ht,k,ce),Qt=Mt.active,Xt=(0,T.Z)(Mt,mt),Kt=fe.includes(s),Jt=dt(tt.length),_t=function(Je){if(!ht){var Ot=xt(Je);me==null||me(re(Ot)),G(Ot)}},nt=function(Je){if(te==null||te(Je),Je.which===h.Z.ENTER){var Ot=xt(Je);me==null||me(re(Ot)),G(Ot)}},yt=function(Je){Ct(s),Oe==null||Oe(Je)},cn={};o.role==="option"&&(cn["aria-selected"]=Kt);var qt=t.createElement(Bt,(0,f.Z)({ref:Xe,elementRef:Tt,role:le===null?"none":le||"menuitem",tabIndex:y?null:-1,"data-menu-id":se&&Ne?null:Ne},Se,Xt,cn,{component:"li","aria-disabled":y,style:(0,M.Z)((0,M.Z)({},Jt),v),className:z()(Fe,(d={},(0,u.Z)(d,"".concat(Fe,"-active"),Qt),(0,u.Z)(d,"".concat(Fe,"-selected"),Kt),(0,u.Z)(d,"".concat(Fe,"-disabled"),ht),d),i),onClick:_t,onKeyDown:nt,onFocus:yt}),O,t.createElement(Ue,{props:(0,M.Z)((0,M.Z)({},o),{},{isSelected:Kt}),icon:St}));return lt&&(qt=lt(qt,o,{selected:Kt})),qt});function Zt(o,r){var d=o.eventKey,v=R(),i=j(d);return t.useEffect(function(){if(v)return v.registerPath(d,i),function(){v.unregisterPath(d,i)}},[i]),v?null:t.createElement(wt,(0,f.Z)({},o,{ref:r}))}var ft=t.forwardRef(Zt),vt=["className","children"],Ft=function(r,d){var v=r.className,i=r.children,s=(0,T.Z)(r,vt),l=t.useContext(ie),y=l.prefixCls,N=l.mode,O=l.rtl;return t.createElement("ul",(0,f.Z)({className:z()(y,O&&"".concat(y,"-rtl"),"".concat(y,"-sub"),"".concat(y,"-").concat(N==="inline"?"inline":"vertical"),v),role:"menu"},s,{"data-menu-list":!0,ref:d}),i)},it=t.forwardRef(Ft);it.displayName="SubMenuList";var Yt=it,Gt=a(11592);function jt(o,r){return(0,Gt.Z)(o).map(function(d,v){if(t.isValidElement(d)){var i,s,l=d.key,y=(i=(s=d.props)===null||s===void 0?void 0:s.eventKey)!==null&&i!==void 0?i:l,N=y==null;N&&(y="tmp_key-".concat([].concat((0,H.Z)(r),[v]).join("-")));var O={key:y,eventKey:y};return t.cloneElement(d,O)}return d})}var Pt=a(35593),Ee={adjustX:1,adjustY:1},et={topLeft:{points:["bl","tl"],overflow:Ee},topRight:{points:["br","tr"],overflow:Ee},bottomLeft:{points:["tl","bl"],overflow:Ee},bottomRight:{points:["tr","br"],overflow:Ee},leftTop:{points:["tr","tl"],overflow:Ee},leftBottom:{points:["br","bl"],overflow:Ee},rightTop:{points:["tl","tr"],overflow:Ee},rightBottom:{points:["bl","br"],overflow:Ee}},jn={topLeft:{points:["bl","tl"],overflow:Ee},topRight:{points:["br","tr"],overflow:Ee},bottomLeft:{points:["tl","bl"],overflow:Ee},bottomRight:{points:["tr","br"],overflow:Ee},rightTop:{points:["tr","tl"],overflow:Ee},rightBottom:{points:["br","bl"],overflow:Ee},leftTop:{points:["tl","tr"],overflow:Ee},leftBottom:{points:["bl","br"],overflow:Ee}},Vt=null;function Mn(o,r,d){if(r)return r;if(d)return d[o]||d.other}var $n={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function zn(o){var r=o.prefixCls,d=o.visible,v=o.children,i=o.popup,s=o.popupStyle,l=o.popupClassName,y=o.popupOffset,N=o.disabled,O=o.mode,le=o.onVisibleChange,k=t.useContext(ie),ce=k.getPopupContainer,me=k.rtl,te=k.subMenuOpenDelay,Oe=k.subMenuCloseDelay,Se=k.builtinPlacements,Ne=k.triggerSubMenuAction,oe=k.forceSubMenuRender,J=k.rootClassName,G=k.motion,ye=k.defaultMotions,se=t.useState(!1),Ae=(0,g.Z)(se,2),fe=Ae[0],Ct=Ae[1],Ce=me?(0,M.Z)((0,M.Z)({},jn),Se):(0,M.Z)((0,M.Z)({},et),Se),lt=$n[O],Fe=Mn(O,G,ye),Xe=t.useRef(Fe);O!=="inline"&&(Xe.current=Fe);var pt=(0,M.Z)((0,M.Z)({},Xe.current),{},{leavedClassName:"".concat(r,"-hidden"),removeOnLeave:!1,motionAppear:!0}),ht=t.useRef();return t.useEffect(function(){return ht.current=(0,I.Z)(function(){Ct(d)}),function(){I.Z.cancel(ht.current)}},[d]),t.createElement(Pt.Z,{prefixCls:r,popupClassName:z()("".concat(r,"-popup"),(0,u.Z)({},"".concat(r,"-rtl"),me),l,J),stretch:O==="horizontal"?"minWidth":null,getPopupContainer:ce,builtinPlacements:Ce,popupPlacement:lt,popupVisible:fe,popup:i,popupStyle:s,popupAlign:y&&{offset:y},action:N?[]:[Ne],mouseEnterDelay:te,mouseLeaveDelay:Oe,onPopupVisibleChange:le,forceRender:oe,popupMotion:pt,fresh:!0},v)}var An=a(77900);function on(o){var r=o.id,d=o.open,v=o.keyPath,i=o.children,s="inline",l=t.useContext(ie),y=l.prefixCls,N=l.forceSubMenuRender,O=l.motion,le=l.defaultMotions,k=l.mode,ce=t.useRef(!1);ce.current=k===s;var me=t.useState(!ce.current),te=(0,g.Z)(me,2),Oe=te[0],Se=te[1],Ne=ce.current?d:!1;t.useEffect(function(){ce.current&&Se(!1)},[k]);var oe=(0,M.Z)({},Mn(s,O,le));v.length>1&&(oe.motionAppear=!1);var J=oe.onVisibleChanged;return oe.onVisibleChanged=function(G){return!ce.current&&!G&&Se(!0),J==null?void 0:J(G)},Oe?null:t.createElement(B,{mode:s,locked:!ce.current},t.createElement(An.default,(0,f.Z)({visible:Ne},oe,{forceRender:N,removeOnLeave:!1,leavedClassName:"".concat(y,"-hidden")}),function(G){var ye=G.className,se=G.style;return t.createElement(Yt,{id:r,className:ye,style:se},i)}))}var En=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],an=["active"],gt=function(r){var d,v=r.style,i=r.className,s=r.title,l=r.eventKey,y=r.warnKey,N=r.disabled,O=r.internalPopupClose,le=r.children,k=r.itemIcon,ce=r.expandIcon,me=r.popupClassName,te=r.popupOffset,Oe=r.popupStyle,Se=r.onClick,Ne=r.onMouseEnter,oe=r.onMouseLeave,J=r.onTitleClick,G=r.onTitleMouseEnter,ye=r.onTitleMouseLeave,se=(0,T.Z)(r,En),Ae=Ye(l),fe=t.useContext(ie),Ct=fe.prefixCls,Ce=fe.mode,lt=fe.openKeys,Fe=fe.disabled,Xe=fe.overflowDisabled,pt=fe.activeKey,ht=fe.selectedKeys,Tt=fe.itemIcon,tt=fe.expandIcon,xt=fe.onItemClick,St=fe.onOpenChange,Mt=fe.onActive,Qt=t.useContext(ue),Xt=Qt._internalRenderSubMenuItem,Kt=t.useContext(K),Jt=Kt.isSubPathKey,_t=j(),nt="".concat(Ct,"-submenu"),yt=Fe||N,cn=t.useRef(),qt=t.useRef(),en=k!=null?k:Tt,Je=ce!=null?ce:tt,Ot=lt.includes(l),Wt=!Xe&&Ot,Nn=Jt(ht,l),un=ut(l,yt,G,ye),tn=un.active,kn=(0,T.Z)(un,an),qn=t.useState(!1),Fn=(0,g.Z)(qn,2),hn=Fn[0],Rn=Fn[1],wn=function(It){yt||Rn(It)},Nt=function(It){wn(!0),Ne==null||Ne({key:l,domEvent:It})},Yn=function(It){wn(!1),oe==null||oe({key:l,domEvent:It})},yn=t.useMemo(function(){return tn||(Ce!=="inline"?hn||Jt([pt],l):!1)},[Ce,tn,pt,hn,l,Jt]),Zn=dt(_t.length),Gn=function(It){yt||(J==null||J({key:l,domEvent:It}),Ce==="inline"&&St(l,!Ot))},dn=Q(function(Rt){Se==null||Se(re(Rt)),xt(Rt)}),bn=function(It){Ce!=="inline"&&St(l,It)},In=function(){Mt(l)},Cn=Ae&&"".concat(Ae,"-popup"),mn=t.createElement("div",(0,f.Z)({role:"menuitem",style:Zn,className:"".concat(nt,"-title"),tabIndex:yt?null:-1,ref:cn,title:typeof s=="string"?s:null,"data-menu-id":Xe&&Ae?null:Ae,"aria-expanded":Wt,"aria-haspopup":!0,"aria-controls":Cn,"aria-disabled":yt,onClick:Gn,onFocus:In},kn),s,t.createElement(Ue,{icon:Ce!=="horizontal"?Je:void 0,props:(0,M.Z)((0,M.Z)({},r),{},{isOpen:Wt,isSubMenu:!0})},t.createElement("i",{className:"".concat(nt,"-arrow")}))),bt=t.useRef(Ce);if(Ce!=="inline"&&_t.length>1?bt.current="vertical":bt.current=Ce,!Xe){var fn=bt.current;mn=t.createElement(zn,{mode:fn,prefixCls:nt,visible:!O&&Wt&&Ce!=="inline",popupClassName:me,popupOffset:te,popupStyle:Oe,popup:t.createElement(B,{mode:fn==="horizontal"?"vertical":fn},t.createElement(Yt,{id:Cn,ref:qt},le)),disabled:yt,onVisibleChange:bn},mn)}var nn=t.createElement(V.Z.Item,(0,f.Z)({role:"none"},se,{component:"li",style:v,className:z()(nt,"".concat(nt,"-").concat(Ce),i,(d={},(0,u.Z)(d,"".concat(nt,"-open"),Wt),(0,u.Z)(d,"".concat(nt,"-active"),yn),(0,u.Z)(d,"".concat(nt,"-selected"),Nn),(0,u.Z)(d,"".concat(nt,"-disabled"),yt),d)),onMouseEnter:Nt,onMouseLeave:Yn}),mn,!Xe&&t.createElement(on,{id:Cn,open:Wt,keyPath:_t},le));return Xt&&(nn=Xt(nn,r,{selected:Nn,active:yn,open:Wt,disabled:yt})),t.createElement(B,{onItemClick:dn,mode:Ce==="horizontal"?"vertical":Ce,itemIcon:en,expandIcon:Je},nn)};function Ut(o){var r=o.eventKey,d=o.children,v=j(r),i=jt(d,v),s=R();t.useEffect(function(){if(s)return s.registerPath(r,v),function(){s.unregisterPath(r,v)}},[v]);var l;return s?l=i:l=t.createElement(gt,o,i),t.createElement(D.Provider,{value:v},l)}var Ln=a(43749),Dt=["className","title","eventKey","children"],vn=["children"],ln=function(r){var d=r.className,v=r.title,i=r.eventKey,s=r.children,l=(0,T.Z)(r,Dt),y=t.useContext(ie),N=y.prefixCls,O="".concat(N,"-item-group");return t.createElement("li",(0,f.Z)({role:"presentation"},l,{onClick:function(k){return k.stopPropagation()},className:z()(O,d)}),t.createElement("div",{role:"presentation",className:"".concat(O,"-title"),title:typeof v=="string"?v:void 0},v),t.createElement("ul",{role:"group",className:"".concat(O,"-list")},s))};function gn(o){var r=o.children,d=(0,T.Z)(o,vn),v=j(d.eventKey),i=jt(r,v),s=R();return s?i:t.createElement(ln,(0,Te.Z)(d,["warnKey"]),i)}function zt(o){var r=o.className,d=o.style,v=t.useContext(ie),i=v.prefixCls,s=R();return s?null:t.createElement("li",{role:"separator",className:z()("".concat(i,"-item-divider"),r),style:d})}var Hn=["label","children","key","type"];function sn(o){return(o||[]).map(function(r,d){if(r&&(0,Ln.Z)(r)==="object"){var v=r,i=v.label,s=v.children,l=v.key,y=v.type,N=(0,T.Z)(v,Hn),O=l!=null?l:"tmp-".concat(d);return s||y==="group"?y==="group"?t.createElement(gn,(0,f.Z)({key:O},N,{title:i}),sn(s)):t.createElement(Ut,(0,f.Z)({key:O},N,{title:i}),sn(s)):y==="divider"?t.createElement(zt,(0,f.Z)({key:O},N)):t.createElement(ft,(0,f.Z)({key:O},N),i)}return null}).filter(function(r){return r})}function Kn(o,r,d){var v=o;return r&&(v=sn(r)),jt(v,d)}var Wn=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],At=[],pn=t.forwardRef(function(o,r){var d,v,i=o,s=i.prefixCls,l=s===void 0?"rc-menu":s,y=i.rootClassName,N=i.style,O=i.className,le=i.tabIndex,k=le===void 0?0:le,ce=i.items,me=i.children,te=i.direction,Oe=i.id,Se=i.mode,Ne=Se===void 0?"vertical":Se,oe=i.inlineCollapsed,J=i.disabled,G=i.disabledOverflow,ye=i.subMenuOpenDelay,se=ye===void 0?.1:ye,Ae=i.subMenuCloseDelay,fe=Ae===void 0?.1:Ae,Ct=i.forceSubMenuRender,Ce=i.defaultOpenKeys,lt=i.openKeys,Fe=i.activeKey,Xe=i.defaultActiveFirst,pt=i.selectable,ht=pt===void 0?!0:pt,Tt=i.multiple,tt=Tt===void 0?!1:Tt,xt=i.defaultSelectedKeys,St=i.selectedKeys,Mt=i.onSelect,Qt=i.onDeselect,Xt=i.inlineIndent,Kt=Xt===void 0?24:Xt,Jt=i.motion,_t=i.defaultMotions,nt=i.triggerSubMenuAction,yt=nt===void 0?"hover":nt,cn=i.builtinPlacements,qt=i.itemIcon,en=i.expandIcon,Je=i.overflowedIndicator,Ot=Je===void 0?"...":Je,Wt=i.overflowedIndicatorPopupClassName,Nn=i.getPopupContainer,un=i.onClick,tn=i.onOpenChange,kn=i.onKeyDown,qn=i.openAnimation,Fn=i.openTransitionName,hn=i._internalRenderMenuItem,Rn=i._internalRenderSubMenuItem,wn=(0,T.Z)(i,Wn),Nt=t.useMemo(function(){return Kn(me,ce,At)},[me,ce]),Yn=t.useState(!1),yn=(0,g.Z)(Yn,2),Zn=yn[0],Gn=yn[1],dn=t.useRef(),bn=ne(Oe),In=te==="rtl",Cn=(0,Z.Z)(Ce,{value:lt,postState:function(ae){return ae||At}}),mn=(0,g.Z)(Cn,2),bt=mn[0],fn=mn[1],nn=function(ae){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function st(){fn(ae),tn==null||tn(ae)}be?(0,Re.flushSync)(st):st()},Rt=t.useState(bt),It=(0,g.Z)(Rt,2),vr=It[0],gr=It[1],Vn=t.useRef(!1),pr=t.useMemo(function(){return(Ne==="inline"||Ne==="vertical")&&oe?["vertical",oe]:[Ne,!1]},[Ne,oe]),er=(0,g.Z)(pr,2),Pn=er[0],Un=er[1],tr=Pn==="inline",hr=t.useState(Pn),nr=(0,g.Z)(hr,2),kt=nr[0],yr=nr[1],br=t.useState(Un),rr=(0,g.Z)(br,2),Ir=rr[0],Cr=rr[1];t.useEffect(function(){yr(Pn),Cr(Un),Vn.current&&(tr?fn(vr):nn(At))},[Pn,Un]);var xr=t.useState(0),or=(0,g.Z)(xr,2),Dn=or[0],Sr=or[1],Qn=Dn>=Nt.length-1||kt!=="horizontal"||G;t.useEffect(function(){tr&&gr(bt)},[bt]),t.useEffect(function(){return Vn.current=!0,function(){Vn.current=!1}},[]);var rn=L(),ar=rn.registerPath,ir=rn.unregisterPath,Mr=rn.refreshOverflowKeys,lr=rn.isSubPathKey,$r=rn.getKeyPath,sr=rn.getKeys,Er=rn.getSubPathKeys,Or=t.useMemo(function(){return{registerPath:ar,unregisterPath:ir}},[ar,ir]),Nr=t.useMemo(function(){return{isSubPathKey:lr}},[lr]);t.useEffect(function(){Mr(Qn?At:Nt.slice(Dn+1).map(function(Me){return Me.key}))},[Dn,Qn]);var Rr=(0,Z.Z)(Fe||Xe&&((d=Nt[0])===null||d===void 0?void 0:d.key),{value:Fe}),cr=(0,g.Z)(Rr,2),xn=cr[0],Xn=cr[1],wr=Q(function(Me){Xn(Me)}),Zr=Q(function(){Xn(void 0)});(0,t.useImperativeHandle)(r,function(){return{list:dn.current,focus:function(ae){var be,st=sr(),ct=e(st,bn),Bn=ct.elements,Jn=ct.key2element,Kr=ct.element2key,mr=c(dn.current,Bn),fr=xn!=null?xn:mr[0]?Kr.get(mr[0]):(be=Nt.find(function(Wr){return!Wr.props.disabled}))===null||be===void 0?void 0:be.key,Sn=Jn.get(fr);if(fr&&Sn){var _n;Sn==null||(_n=Sn.focus)===null||_n===void 0||_n.call(Sn,ae)}}}});var Pr=(0,Z.Z)(xt||[],{value:St,postState:function(ae){return Array.isArray(ae)?ae:ae==null?At:[ae]}}),ur=(0,g.Z)(Pr,2),Tn=ur[0],Dr=ur[1],Tr=function(ae){if(ht){var be=ae.key,st=Tn.includes(be),ct;tt?st?ct=Tn.filter(function(Jn){return Jn!==be}):ct=[].concat((0,H.Z)(Tn),[be]):ct=[be],Dr(ct);var Bn=(0,M.Z)((0,M.Z)({},ae),{},{selectedKeys:ct});st?Qt==null||Qt(Bn):Mt==null||Mt(Bn)}!tt&&bt.length&&kt!=="inline"&&nn(At)},Br=Q(function(Me){un==null||un(re(Me)),Tr(Me)}),dr=Q(function(Me,ae){var be=bt.filter(function(ct){return ct!==Me});if(ae)be.push(Me);else if(kt!=="inline"){var st=Er(Me);be=be.filter(function(ct){return!st.has(ct)})}(0,P.Z)(bt,be,!0)||nn(be,!0)}),jr=function(ae,be){var st=be!=null?be:!bt.includes(ae);dr(ae,st)},zr=m(kt,xn,In,bn,dn,sr,$r,Xn,jr,kn);t.useEffect(function(){Gn(!0)},[]);var Ar=t.useMemo(function(){return{_internalRenderMenuItem:hn,_internalRenderSubMenuItem:Rn}},[hn,Rn]),Lr=kt!=="horizontal"||G?Nt:Nt.map(function(Me,ae){return t.createElement(B,{key:Me.key,overflowDisabled:ae>Dn},Me)}),Hr=t.createElement(V.Z,(0,f.Z)({id:Oe,ref:dn,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:ft,className:z()(l,"".concat(l,"-root"),"".concat(l,"-").concat(kt),O,(v={},(0,u.Z)(v,"".concat(l,"-inline-collapsed"),Ir),(0,u.Z)(v,"".concat(l,"-rtl"),In),v),y),dir:te,style:N,role:"menu",tabIndex:k,data:Lr,renderRawItem:function(ae){return ae},renderRawRest:function(ae){var be=ae.length,st=be?Nt.slice(-be):null;return t.createElement(Ut,{eventKey:w,title:Ot,disabled:Qn,internalPopupClose:be===0,popupClassName:Wt},st)},maxCount:kt!=="horizontal"||G?V.Z.INVALIDATE:V.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ae){Sr(ae)},onKeyDown:zr},wn));return t.createElement(ue.Provider,{value:Ar},t.createElement(De.Provider,{value:bn},t.createElement(B,{prefixCls:l,rootClassName:y,mode:kt,openKeys:bt,rtl:In,disabled:J,motion:Zn?Jt:null,defaultMotions:Zn?_t:null,activeKey:xn,onActive:wr,onInactive:Zr,selectedKeys:Tn,inlineIndent:Kt,subMenuOpenDelay:se,subMenuCloseDelay:fe,forceSubMenuRender:Ct,builtinPlacements:cn,triggerSubMenuAction:yt,getPopupContainer:Nn,itemIcon:qt,expandIcon:en,onItemClick:Br,onOpenChange:dr},t.createElement(K.Provider,{value:Nr},Hr),t.createElement("div",{style:{display:"none"},"aria-hidden":!0},t.createElement(S.Provider,{value:Or},Nt)))))}),On=pn,Lt=On;Lt.Item=ft,Lt.SubMenu=Ut,Lt.ItemGroup=gn,Lt.Divider=zt;var Ht=Lt},83836:function(rt,ee,a){a.d(ee,{Z:function(){return _e}});var f=a(60499),u=a(85899),M=a(72190),H=a(42244),g=a(59301),T=a(92310),W=a.n(T),z=a(29301),V=a(34280),Z=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],P=void 0;function Pe(C,F){var x=C.prefixCls,h=C.invalidate,I=C.item,A=C.renderItem,ve=C.responsive,U=C.responsiveDisabled,q=C.registerSize,$e=C.itemKey,Ve=C.className,Ke=C.style,je=C.children,ze=C.display,Ze=C.order,qe=C.component,$t=qe===void 0?"div":qe,c=(0,H.Z)(C,Z),n=ve&&!ze;function e(E){q($e,E)}g.useEffect(function(){return function(){e(null)}},[]);var m=A&&I!==P?A(I,{index:Ze}):je,p;h||(p={opacity:n?0:1,height:n?0:P,overflowY:n?"hidden":P,order:ve?Ze:P,pointerEvents:n?"none":P,position:n?"absolute":P});var b={};n&&(b["aria-hidden"]=!0);var $=g.createElement($t,(0,f.Z)({className:W()(!h&&x,Ve),style:(0,u.Z)((0,u.Z)({},p),Ke)},b,c,{ref:F}),m);return ve&&($=g.createElement(z.Z,{onResize:function(w){var L=w.offsetWidth;e(L)},disabled:U},$)),$}var t=g.forwardRef(Pe);t.displayName="Item";var Re=t,De=a(6089),Le=a(4676),Ye=a(16089);function ot(C){if(typeof MessageChannel=="undefined")(0,Ye.Z)(C);else{var F=new MessageChannel;F.port1.onmessage=function(){return C()},F.port2.postMessage(void 0)}}function at(){var C=g.useRef(null),F=function(h){C.current||(C.current=[],ot(function(){(0,Le.unstable_batchedUpdates)(function(){C.current.forEach(function(I){I()}),C.current=null})})),C.current.push(h)};return F}function ie(C,F){var x=g.useState(F),h=(0,M.Z)(x,2),I=h[0],A=h[1],ve=(0,De.Z)(function(U){C(function(){A(U)})});return[I,ve]}var Ge=g.createContext(null),B=["component"],_=["className"],S=["className"],R=function(F,x){var h=g.useContext(Ge);if(!h){var I=F.component,A=I===void 0?"div":I,ve=(0,H.Z)(F,B);return g.createElement(A,(0,f.Z)({},ve,{ref:x}))}var U=h.className,q=(0,H.Z)(h,_),$e=F.className,Ve=(0,H.Z)(F,S);return g.createElement(Ge.Provider,{value:null},g.createElement(Re,(0,f.Z)({ref:x,className:W()(U,$e)},q,Ve)))},D=g.forwardRef(R);D.displayName="RawItem";var j=D,K=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],xe="responsive",ue="invalidate";function we(C){return"+ ".concat(C.length," ...")}function He(C,F){var x=C.prefixCls,h=x===void 0?"rc-overflow":x,I=C.data,A=I===void 0?[]:I,ve=C.renderItem,U=C.renderRawItem,q=C.itemKey,$e=C.itemWidth,Ve=$e===void 0?10:$e,Ke=C.ssr,je=C.style,ze=C.className,Ze=C.maxCount,qe=C.renderRest,$t=C.renderRawRest,c=C.prefix,n=C.suffix,e=C.component,m=e===void 0?"div":e,p=C.itemComponent,b=C.onVisibleChange,$=(0,H.Z)(C,K),E=Ke==="full",w=at(),L=ie(w,null),Q=(0,M.Z)(L,2),Y=Q[0],Ie=Q[1],ne=Y||0,ge=ie(w,new Map),X=(0,M.Z)(ge,2),pe=X[0],he=X[1],Te=ie(w,0),We=(0,M.Z)(Te,2),ut=We[0],dt=We[1],Ue=ie(w,0),ke=(0,M.Z)(Ue,2),re=ke[0],Qe=ke[1],Et=ie(w,0),mt=(0,M.Z)(Et,2),Bt=mt[0],wt=mt[1],Zt=ie(w,0),ft=(0,M.Z)(Zt,2),vt=ft[0],Ft=ft[1],it=(0,g.useState)(null),Yt=(0,M.Z)(it,2),Gt=Yt[0],jt=Yt[1],Pt=(0,g.useState)(null),Ee=(0,M.Z)(Pt,2),et=Ee[0],jn=Ee[1],Vt=g.useMemo(function(){return et===null&&E?Number.MAX_SAFE_INTEGER:et||0},[et,Y]),Mn=(0,g.useState)(!1),$n=(0,M.Z)(Mn,2),zn=$n[0],An=$n[1],on="".concat(h,"-item"),En=Math.max(ut,re),an=Ze===xe,gt=A.length&&an,Ut=Ze===ue,Ln=gt||typeof Ze=="number"&&A.length>Ze,Dt=(0,g.useMemo)(function(){var s=A;return gt?Y===null&&E?s=A:s=A.slice(0,Math.min(A.length,ne/Ve)):typeof Ze=="number"&&(s=A.slice(0,Ze)),s},[A,Ve,Y,Ze,gt]),vn=(0,g.useMemo)(function(){return gt?A.slice(Vt+1):A.slice(Dt.length)},[A,Dt,gt,Vt]),ln=(0,g.useCallback)(function(s,l){var y;return typeof q=="function"?q(s):(y=q&&(s==null?void 0:s[q]))!==null&&y!==void 0?y:l},[q]),gn=(0,g.useCallback)(ve||function(s){return s},[ve]);function zt(s,l,y){et===s&&(l===void 0||l===Gt)||(jn(s),y||(An(s<A.length-1),b==null||b(s)),l!==void 0&&jt(l))}function Hn(s,l){Ie(l.clientWidth)}function sn(s,l){he(function(y){var N=new Map(y);return l===null?N.delete(s):N.set(s,l),N})}function Kn(s,l){Qe(l),dt(re)}function Wn(s,l){wt(l)}function At(s,l){Ft(l)}function pn(s){return pe.get(ln(Dt[s],s))}(0,V.Z)(function(){if(ne&&typeof En=="number"&&Dt){var s=Bt+vt,l=Dt.length,y=l-1;if(!l){zt(0,null);return}for(var N=0;N<l;N+=1){var O=pn(N);if(E&&(O=O||0),O===void 0){zt(N-1,void 0,!0);break}if(s+=O,y===0&&s<=ne||N===y-1&&s+pn(y)<=ne){zt(y,null);break}else if(s+En>ne){zt(N-1,s-O-vt+re);break}}n&&pn(0)+vt>ne&&jt(null)}},[ne,pe,re,Bt,vt,ln,Dt]);var On=zn&&!!vn.length,Lt={};Gt!==null&>&&(Lt={position:"absolute",left:Gt,top:0});var Ht={prefixCls:on,responsive:gt,component:p,invalidate:Ut},o=U?function(s,l){var y=ln(s,l);return g.createElement(Ge.Provider,{key:y,value:(0,u.Z)((0,u.Z)({},Ht),{},{order:l,item:s,itemKey:y,registerSize:sn,display:l<=Vt})},U(s,l))}:function(s,l){var y=ln(s,l);return g.createElement(Re,(0,f.Z)({},Ht,{order:l,key:y,item:s,renderItem:gn,itemKey:y,registerSize:sn,display:l<=Vt}))},r={order:On?Vt:Number.MAX_SAFE_INTEGER,className:"".concat(on,"-rest"),registerSize:Kn,display:On},d=qe||we,v=$t?g.createElement(Ge.Provider,{value:(0,u.Z)((0,u.Z)({},Ht),r)},$t(vn)):g.createElement(Re,(0,f.Z)({},Ht,r),typeof d=="function"?d(vn):d),i=g.createElement(m,(0,f.Z)({className:W()(!Ut&&h,ze),style:je,ref:F},$),c&&g.createElement(Re,(0,f.Z)({},Ht,{responsive:an,responsiveDisabled:!gt,order:-1,className:"".concat(on,"-prefix"),registerSize:Wn,display:!0}),c),Dt.map(o),Ln?v:null,n&&g.createElement(Re,(0,f.Z)({},Ht,{responsive:an,responsiveDisabled:!gt,order:Vt,className:"".concat(on,"-suffix"),registerSize:At,display:!0,style:Lt}),n));return an?g.createElement(z.Z,{onResize:Hn,disabled:!gt},i):i}var de=g.forwardRef(He);de.displayName="Overflow",de.Item=j,de.RESPONSIVE=xe,de.INVALIDATE=ue;var Be=de,_e=Be}}]);
|