fix
13404089107
2025-03-14 b5dbb73c6834060b799a334d2c2ef446008a7b57
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
var Jn=(ge,re)=>(re=Symbol[ge])?re:Symbol.for("Symbol."+ge),Xo=ge=>{throw TypeError(ge)};var Qo=function(ge,re){this[0]=ge,this[1]=re};var Yn=ge=>{var re=ge[Jn("asyncIterator")],h=!1,l,ae={};return re==null?(re=ge[Jn("iterator")](),l=X=>ae[X]=le=>re[X](le)):(re=re.call(ge),l=X=>ae[X]=le=>{if(h){if(h=!1,X==="throw")throw le;return le}return h=!0,{done:!1,value:new Qo(new Promise(K=>{var d=re[X](le);d instanceof Object||Xo("Object expected"),K(d)}),1)}}),ae[Jn("iterator")]=()=>ae,l("next"),"throw"in re?l("throw"):ae.throw=X=>{throw X},"return"in re&&l("return"),ae};(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[425],{40152:function(ge,re,h){"use strict";h.d(re,{f:function(){return No}});var l=h(4942),ae=h(74165),X=h(15861),le=h(91),K=h(97685),d=h(1413),q=h(10915),Y=h(21770),m=h(67294);function ce(r){var e=typeof window=="undefined",n=(0,m.useState)(function(){return e?!1:window.matchMedia(r).matches}),t=(0,K.Z)(n,2),a=t[0],i=t[1];return(0,m.useLayoutEffect)(function(){if(!e){var o=window.matchMedia(r),c=function(f){return i(f.matches)};return o.addListener(c),function(){return o.removeListener(c)}}},[r]),a}var se={xs:{maxWidth:575,matchMedia:"(max-width: 575px)"},sm:{minWidth:576,maxWidth:767,matchMedia:"(min-width: 576px) and (max-width: 767px)"},md:{minWidth:768,maxWidth:991,matchMedia:"(min-width: 768px) and (max-width: 991px)"},lg:{minWidth:992,maxWidth:1199,matchMedia:"(min-width: 992px) and (max-width: 1199px)"},xl:{minWidth:1200,maxWidth:1599,matchMedia:"(min-width: 1200px) and (max-width: 1599px)"},xxl:{minWidth:1600,matchMedia:"(min-width: 1600px)"}},Se=function(){var e=void 0;if(typeof window=="undefined")return e;var n=Object.keys(se).find(function(t){var a=se[t].matchMedia;return!!window.matchMedia(a).matches});return e=n,e},Oe=function(){var e=ce(se.md.matchMedia),n=ce(se.lg.matchMedia),t=ce(se.xxl.matchMedia),a=ce(se.xl.matchMedia),i=ce(se.sm.matchMedia),o=ce(se.xs.matchMedia),c=(0,m.useState)(Se()),s=(0,K.Z)(c,2),f=s[0],v=s[1];return(0,m.useEffect)(function(){if(t){v("xxl");return}if(a){v("xl");return}if(n){v("lg");return}if(e){v("md");return}if(i){v("sm");return}if(o){v("xs");return}v("md")},[e,n,t,a,i,o]),f},Re=h(12044);function j(r,e){var n=typeof r.pageName=="string"?r.title:e;(0,m.useEffect)(function(){(0,Re.j)()&&n&&(document.title=n)},[r.title,n])}var _=h(1977),B=h(73177);function k(r){if((0,_.n)((0,B.b)(),"5.6.0")<0)return r;var e={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",colorItemBgSelected:"itemSelectedBg",colorItemBgSelectedHorizontal:"horizontalItemSelectedBg",colorActiveBarWidth:"activeBarWidth",colorActiveBarHeight:"activeBarHeight",colorActiveBarBorderSize:"activeBarBorderWidth"},n=(0,d.Z)({},r);return Object.keys(e).forEach(function(t){n[t]!==void 0&&(n[e[t]]=n[t],delete n[t])}),n}var de=h(90743);function U(r,e){return e>>>r|e<<32-r}function ee(r,e,n){return r&e^~r&n}function te(r,e,n){return r&e^r&n^e&n}function ue(r){return U(2,r)^U(13,r)^U(22,r)}function Z(r){return U(6,r)^U(11,r)^U(25,r)}function b(r){return U(7,r)^U(18,r)^r>>>3}function g(r){return U(17,r)^U(19,r)^r>>>10}function F(r,e){return r[e&15]+=g(r[e+14&15])+r[e+9&15]+b(r[e+1&15])}var N=[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],S,W,M,fe="0123456789abcdef";function me(r,e){var n=(r&65535)+(e&65535),t=(r>>16)+(e>>16)+(n>>16);return t<<16|n&65535}function Be(){S=new Array(8),W=new Array(2),M=new Array(64),W[0]=W[1]=0,S[0]=1779033703,S[1]=3144134277,S[2]=1013904242,S[3]=2773480762,S[4]=1359893119,S[5]=2600822924,S[6]=528734635,S[7]=1541459225}function pe(){var r,e,n,t,a,i,o,c,s,f,v=new Array(16);r=S[0],e=S[1],n=S[2],t=S[3],a=S[4],i=S[5],o=S[6],c=S[7];for(var C=0;C<16;C++)v[C]=M[(C<<2)+3]|M[(C<<2)+2]<<8|M[(C<<2)+1]<<16|M[C<<2]<<24;for(var p=0;p<64;p++)s=c+Z(a)+ee(a,i,o)+N[p],p<16?s+=v[p]:s+=F(v,p),f=ue(r)+te(r,e,n),c=o,o=i,i=a,a=me(t,s),t=n,n=e,e=r,r=me(s,f);S[0]+=r,S[1]+=e,S[2]+=n,S[3]+=t,S[4]+=a,S[5]+=i,S[6]+=o,S[7]+=c}function Pe(r,e){var n,t,a=0;t=W[0]>>3&63;var i=e&63;for((W[0]+=e<<3)<e<<3&&W[1]++,W[1]+=e>>29,n=0;n+63<e;n+=64){for(var o=t;o<64;o++)M[o]=r.charCodeAt(a++);pe(),t=0}for(var c=0;c<i;c++)M[c]=r.charCodeAt(a++)}function we(){var r=W[0]>>3&63;if(M[r++]=128,r<=56)for(var e=r;e<56;e++)M[e]=0;else{for(var n=r;n<64;n++)M[n]=0;pe();for(var t=0;t<56;t++)M[t]=0}M[56]=W[1]>>>24&255,M[57]=W[1]>>>16&255,M[58]=W[1]>>>8&255,M[59]=W[1]&255,M[60]=W[0]>>>24&255,M[61]=W[0]>>>16&255,M[62]=W[0]>>>8&255,M[63]=W[0]&255,pe()}function Le(){for(var r=0,e=new Array(32),n=0;n<8;n++)e[r++]=S[n]>>>24&255,e[r++]=S[n]>>>16&255,e[r++]=S[n]>>>8&255,e[r++]=S[n]&255;return e}function We(){for(var r=new String,e=0;e<8;e++)for(var n=28;n>=0;n-=4)r+=fe.charAt(S[e]>>>n&15);return r}function yn(r){return Be(),Pe(r,r.length),we(),We()}var jn=yn;function tn(r){"@babel/helpers - typeof";return tn=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},tn(r)}var Kt=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function Ut(r,e){return Vt(r)||Gt(r,e)||Pn(r,e)||kt()}function kt(){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 Gt(r,e){var n=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(n!=null){var t=[],a=!0,i=!1,o,c;try{for(n=n.call(r);!(a=(o=n.next()).done)&&(t.push(o.value),!(e&&t.length===e));a=!0);}catch(s){i=!0,c=s}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw c}}return t}}function Vt(r){if(Array.isArray(r))return r}function Xt(r,e){var n=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!n){if(Array.isArray(r)||(n=Pn(r))||e&&r&&typeof r.length=="number"){n&&(r=n);var t=0,a=function(){};return{s:a,n:function(){return t>=r.length?{done:!0}:{done:!1,value:r[t++]}},e:function(f){throw f},f:a}}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 i=!0,o=!1,c;return{s:function(){n=n.call(r)},n:function(){var f=n.next();return i=f.done,f},e:function(f){o=!0,c=f},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw c}}}}function Qt(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function qn(r,e){for(var n=0;n<e.length;n++){var t=e[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,t.key,t)}}function Jt(r,e,n){return e&&qn(r.prototype,e),n&&qn(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}function Yt(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&rn(r,e)}function qt(r){var e=et();return function(){var t=an(r),a;if(e){var i=an(this).constructor;a=Reflect.construct(t,arguments,i)}else a=t.apply(this,arguments);return er(this,a)}}function er(r,e){if(e&&(tn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nr(r)}function nr(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function Bn(r){var e=typeof Map=="function"?new Map:void 0;return Bn=function(t){if(t===null||!tr(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(t))return e.get(t);e.set(t,a)}function a(){return xn(t,arguments,an(this).constructor)}return a.prototype=Object.create(t.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),rn(a,t)},Bn(r)}function xn(r,e,n){return et()?xn=Reflect.construct.bind():xn=function(a,i,o){var c=[null];c.push.apply(c,i);var s=Function.bind.apply(a,c),f=new s;return o&&rn(f,o.prototype),f},xn.apply(null,arguments)}function et(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}function tr(r){return Function.toString.call(r).indexOf("[native code]")!==-1}function rn(r,e){return rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,a){return t.__proto__=a,t},rn(r,e)}function an(r){return an=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},an(r)}function nt(r){return or(r)||ar(r)||Pn(r)||rr()}function rr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pn(r,e){if(r){if(typeof r=="string")return Nn(r,e);var n=Object.prototype.toString.call(r).slice(8,-1);if(n==="Object"&&r.constructor&&(n=r.constructor.name),n==="Map"||n==="Set")return Array.from(r);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nn(r,e)}}function ar(r){if(typeof Symbol!="undefined"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function or(r){if(Array.isArray(r))return Nn(r)}function Nn(r,e){(e==null||e>r.length)&&(e=r.length);for(var n=0,t=new Array(e);n<e;n++)t[n]=r[n];return t}function ir(r,e){if(r==null)return{};var n=lr(r,e),t,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(a=0;a<i.length;a++)t=i[a],!(e.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(r,t)&&(n[t]=r[t])}return n}function lr(r,e){if(r==null)return{};var n={},t=Object.keys(r),a,i;for(i=0;i<t.length;i++)a=t[i],!(e.indexOf(a)>=0)&&(n[a]=r[a]);return n}function tt(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),n.push.apply(n,t)}return n}function ye(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?tt(Object(n),!0).forEach(function(t){ur(r,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))})}return r}function ur(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}var Ne="routes";function on(r){return r.split("?")[0].split("#")[0]}var En=function(e){if(!e.startsWith("http"))return!1;try{var n=new URL(e);return!!n}catch(t){return!1}},cr=function(e){var n=e.path;if(!n||n==="/")try{return"/".concat(jn(JSON.stringify(e)))}catch(t){}return n&&on(n)},sr=function(e,n){var t=e.name,a=e.locale;return"locale"in e&&a===!1||!t?!1:e.locale||"".concat(n,".").concat(t)},rt=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return e.endsWith("/*")?e.replace("/*","/"):(e||n).startsWith("/")||En(e)?e:"/".concat(n,"/").concat(e).replace(/\/\//g,"/").replace(/\/\//g,"/")},dr=function(e,n){var t=e.menu,a=t===void 0?{}:t,i=e.indexRoute,o=e.path,c=o===void 0?"":o,s=e.children||[],f=a.name,v=f===void 0?e.name:f,C=a.icon,p=C===void 0?e.icon:C,I=a.hideChildren,H=I===void 0?e.hideChildren:I,E=a.flatMenu,R=E===void 0?e.flatMenu:E,D=i&&Object.keys(i).join(",")!=="redirect"?[ye({path:c,menu:a},i)].concat(s||[]):s,$=ye({},e);if(v&&($.name=v),p&&($.icon=p),D&&D.length){if(H)return delete $.children,$;var z=Ln(ye(ye({},n),{},{data:D}),e);if(R)return z;delete $[Ne]}return $},Ge=function(e){return Array.isArray(e)&&e.length>0};function Ln(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},n=r.data,t=r.formatMessage,a=r.parentName,i=r.locale;return!n||!Array.isArray(n)?[]:n.filter(function(o){return o?Ge(o.children)||o.path||o.originPath||o.layout?!0:(o.redirect||o.unaccessible,!1):!1}).filter(function(o){var c,s;return!(o==null||(c=o.menu)===null||c===void 0)&&c.name||o!=null&&o.flatMenu||!(o==null||(s=o.menu)===null||s===void 0)&&s.flatMenu?!0:o.menu!==!1}).map(function(o){var c=ye(ye({},o),{},{path:o.path||o.originPath});return!c.children&&c[Ne]&&(c.children=c[Ne],delete c[Ne]),c.unaccessible&&delete c.name,c.path==="*"&&(c.path="."),c.path==="/*"&&(c.path="."),!c.path&&c.originPath&&(c.path=c.originPath),c}).map(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},c=o.children||o[Ne]||[],s=rt(o.path,e?e.path:"/"),f=o.name,v=sr(o,a||"menu"),C=v!==!1&&i!==!1&&t&&v?t({id:v,defaultMessage:f}):f,p=e.pro_layout_parentKeys,I=p===void 0?[]:p,H=e.children,E=e.icon,R=e.flatMenu,D=e.indexRoute,$=e.routes,z=ir(e,Kt),P=new Set([].concat(nt(I),nt(o.parentKeys||[])));e.key&&P.add(e.key);var A=ye(ye(ye({},z),{},{menu:void 0},o),{},{path:s,locale:v,key:o.key||cr(ye(ye({},o),{},{path:s})),pro_layout_parentKeys:Array.from(P).filter(function(w){return w&&w!=="/"})});if(C?A.name=C:delete A.name,A.menu===void 0&&delete A.menu,Ge(c)){var y=Ln(ye(ye({},r),{},{data:c,parentName:v||""}),A);Ge(y)&&(A.children=y)}return dr(A,r)}).flat(1)}var fr=function r(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.filter(function(n){return n&&(n.name||Ge(n.children))&&!n.hideInMenu&&!n.redirect}).map(function(n){var t=ye({},n),a=t.children||n[Ne]||[];if(delete t[Ne],Ge(a)&&!t.hideChildrenInMenu&&a.some(function(o){return o&&!!o.name})){var i=r(a);if(i.length)return ye(ye({},t),{},{children:i})}return ye({},n)}).filter(function(n){return n})},vr=function(r){Yt(n,r);var e=qt(n);function n(){return Qt(this,n),e.apply(this,arguments)}return Jt(n,[{key:"get",value:function(a){var i;try{var o=Xt(this.entries()),c;try{for(o.s();!(c=o.n()).done;){var s=Ut(c.value,2),f=s[0],v=s[1],C=on(f);if(!En(f)&&(0,de.Bo)(C,[]).test(a)){i=v;break}}}catch(p){o.e(p)}finally{o.f()}}catch(p){i=void 0}return i}}]),n}(Bn(Map)),mr=function(e){var n=new vr,t=function a(i,o){i.forEach(function(c){var s=c.children||c[Ne]||[];Ge(s)&&a(s,c);var f=rt(c.path,o?o.path:"/");n.set(on(f),c)})};return t(e),n},hr=function r(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(function(n){var t=n.children||n[Ne];if(Ge(t)){var a=r(t);if(a.length)return ye({},n)}var i=ye({},n);return delete i[Ne],delete i.children,i}).filter(function(n){return n})},gr=function(e,n,t,a){var i=Ln({data:e,formatMessage:t,locale:n}),o=a?hr(i):fr(i),c=mr(i);return{breadcrumb:c,menuData:o}},pr=gr;function at(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),n.push.apply(n,t)}return n}function ln(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?at(Object(n),!0).forEach(function(t){yr(r,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))})}return r}function yr(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}var xr=function r(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n={};return e.forEach(function(t){var a=ln({},t);if(!(!a||!a.key)){!a.children&&a[Ne]&&(a.children=a[Ne],delete a[Ne]);var i=a.children||[];n[on(a.path||a.key||"/")]=ln({},a),n[a.key||a.path||"/"]=ln({},a),i&&(n=ln(ln({},n),r(i)))}}),n},Cr=xr,br=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;return e.filter(function(a){if(a==="/"&&n==="/")return!0;if(a!=="/"&&a!=="/*"&&a&&!En(a)){var i=on(a);try{if(t&&(0,de.Bo)("".concat(i)).test(n)||(0,de.Bo)("".concat(i),[]).test(n)||(0,de.Bo)("".concat(i,"/(.*)")).test(n))return!0}catch(o){}}return!1}).sort(function(a,i){return a===n?10:i===n?-10:a.substr(1).split("/").length-i.substr(1).split("/").length})},Sr=function(e,n,t,a){var i=Cr(n),o=Object.keys(i),c=br(o,e||"/",a);return!c||c.length<1?[]:(t||(c=[c[c.length-1]]),c.map(function(s){var f=i[s]||{pro_layout_parentKeys:"",key:""},v=new Map,C=(f.pro_layout_parentKeys||[]).map(function(p){return v.has(p)?null:(v.set(p,!0),i[p])}).filter(function(p){return p});return f.key&&C.push(f),C}).flat(1))},Zr=Sr,$e=h(21532),un=h(74902),Mr=h(93967),Q=h.n(Mr),Hn=h(98423),An=h(53124),Ir=h(82401),Rr=h(50344),On=h(70985);function Tr(r,e,n){return typeof n=="boolean"?n:r.length?!0:(0,Rr.Z)(e).some(a=>a.type===On.Z)}var ot=h(24793),it=function(r,e){var n={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&e.indexOf(t)<0&&(n[t]=r[t]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(r);a<t.length;a++)e.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(r,t[a])&&(n[t[a]]=r[t[a]]);return n};function Cn(r){let{suffixCls:e,tagName:n,displayName:t}=r;return a=>m.forwardRef((o,c)=>m.createElement(a,Object.assign({ref:c,suffixCls:e,tagName:n},o)))}const $n=m.forwardRef((r,e)=>{const{prefixCls:n,suffixCls:t,className:a,tagName:i}=r,o=it(r,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:c}=m.useContext(An.E_),s=c("layout",n),[f,v,C]=(0,ot.ZP)(s),p=t?`${s}-${t}`:s;return f(m.createElement(i,Object.assign({className:Q()(n||p,a,v,C),ref:e},o)))}),wr=m.forwardRef((r,e)=>{const{direction:n}=m.useContext(An.E_),[t,a]=m.useState([]),{prefixCls:i,className:o,rootClassName:c,children:s,hasSider:f,tagName:v,style:C}=r,p=it(r,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),I=(0,Hn.Z)(p,["suffixCls"]),{getPrefixCls:H,className:E,style:R}=(0,An.dj)("layout"),D=H("layout",i),$=Tr(t,s,f),[z,P,A]=(0,ot.ZP)(D),y=Q()(D,{[`${D}-has-sider`]:$,[`${D}-rtl`]:n==="rtl"},E,o,c,P,A),w=m.useMemo(()=>({siderHook:{addSider:G=>{a(O=>[].concat((0,un.Z)(O),[G]))},removeSider:G=>{a(O=>O.filter(L=>L!==G))}}}),[]);return z(m.createElement(Ir.V.Provider,{value:w},m.createElement(v,Object.assign({ref:e,className:y,style:Object.assign(Object.assign({},R),C)},I),s)))}),jr=Cn({tagName:"div",displayName:"Layout"})(wr),Br=Cn({suffixCls:"header",tagName:"header",displayName:"Header"})($n),Pr=Cn({suffixCls:"footer",tagName:"footer",displayName:"Footer"})($n),Nr=Cn({suffixCls:"content",tagName:"main",displayName:"Content"})($n);var Er=jr;const Xe=Er;Xe.Header=Br,Xe.Footer=Pr,Xe.Content=Nr,Xe.Sider=On.Z,Xe._InternalSiderContext=On.D;var Ve=Xe,Lr=h(80334),Hr=h(5068),Ar=h(53081),Or=h(78164),u=h(85893),$r=function(e){var n=(0,m.useContext)(q.L_),t=n.hashId,a=e.style,i=e.prefixCls,o=e.children,c=e.hasPageContainer,s=c===void 0?0:c,f=Q()("".concat(i,"-content"),t,(0,l.Z)((0,l.Z)({},"".concat(i,"-has-header"),e.hasHeader),"".concat(i,"-content-has-page-container"),s>0)),v=e.ErrorBoundary||Or.S;return e.ErrorBoundary===!1?(0,u.jsx)(Ve.Content,{className:f,style:a,children:o}):(0,u.jsx)(v,{children:(0,u.jsx)(Ve.Content,{className:f,style:a,children:o})})},Dr=function(){return(0,u.jsxs)("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[(0,u.jsxs)("defs",{children:[(0,u.jsxs)("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[(0,u.jsx)("stop",{stopColor:"#4285EB",offset:"0%"}),(0,u.jsx)("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),(0,u.jsxs)("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[(0,u.jsx)("stop",{stopColor:"#29CDFF",offset:"0%"}),(0,u.jsx)("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),(0,u.jsx)("stop",{stopColor:"#0A60FF",offset:"100%"})]}),(0,u.jsxs)("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[(0,u.jsx)("stop",{stopColor:"#FA816E",offset:"0%"}),(0,u.jsx)("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),(0,u.jsx)("stop",{stopColor:"#F51D2C",offset:"100%"})]}),(0,u.jsxs)("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[(0,u.jsx)("stop",{stopColor:"#FA8E7D",offset:"0%"}),(0,u.jsx)("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),(0,u.jsx)("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),(0,u.jsx)("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:(0,u.jsx)("g",{transform:"translate(-20.000000, -20.000000)",children:(0,u.jsx)("g",{transform:"translate(20.000000, 20.000000)",children:(0,u.jsxs)("g",{children:[(0,u.jsxs)("g",{fillRule:"nonzero",children:[(0,u.jsxs)("g",{children:[(0,u.jsx)("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-1)"}),(0,u.jsx)("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-2)"})]}),(0,u.jsx)("path",{d:"M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z",fill:"url(#linearGradient-3)"})]}),(0,u.jsx)("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},cn=h(87462),_r={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 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z"}}]},name:"copyright",theme:"outlined"},zr=_r,lt=h(65555),Wr=function(e,n){return m.createElement(lt.Z,(0,cn.Z)({},e,{ref:n,icon:zr}))},Fr=m.forwardRef(Wr),Kr=Fr,Te=h(64847),Ur=function(e){return(0,l.Z)({},e.componentCls,{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-list":{marginBlockEnd:8,color:e.colorTextSecondary,"&-link":{color:e.colorTextSecondary,textDecoration:e.linkDecoration},"*:not(:last-child)":{marginInlineEnd:8},"&:hover":{color:e.colorPrimary}},"&-copyright":{fontSize:"14px",color:e.colorText}})};function kr(r){return(0,Te.Xj)("ProLayoutFooter",function(e){var n=(0,d.Z)((0,d.Z)({},e),{},{componentCls:".".concat(r)});return[Ur(n)]})}var Gr=function(e){var n=e.className,t=e.prefixCls,a=e.links,i=e.copyright,o=e.style,c=(0,m.useContext)($e.ZP.ConfigContext),s=c.getPrefixCls(t||"pro-global-footer"),f=kr(s),v=f.wrapSSR,C=f.hashId;return(a==null||a===!1||Array.isArray(a)&&a.length===0)&&(i==null||i===!1)?null:v((0,u.jsxs)("div",{className:Q()(s,C,n),style:o,children:[a&&(0,u.jsx)("div",{className:"".concat(s,"-list ").concat(C).trim(),children:a.map(function(p){return(0,u.jsx)("a",{className:"".concat(s,"-list-link ").concat(C).trim(),title:p.key,target:p.blankTarget?"_blank":"_self",href:p.href,rel:"noreferrer",children:p.title},p.key)})}),i&&(0,u.jsx)("div",{className:"".concat(s,"-copyright ").concat(C).trim(),children:i})]}))},Vr=Ve.Footer,Xr=function(e){var n=e.links,t=e.copyright,a=e.style,i=e.className,o=e.prefixCls;return(0,u.jsx)(Vr,{className:i,style:(0,d.Z)({padding:0},a),children:(0,u.jsx)(Gr,{links:n,prefixCls:o,copyright:t===!1?null:(0,u.jsxs)(m.Fragment,{children:[(0,u.jsx)(Kr,{})," ",t]})})})},sn=h(62812),Qr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},Jr=Qr,Yr=function(e,n){return m.createElement(lt.Z,(0,cn.Z)({},e,{ref:n,icon:Jr}))},qr=m.forwardRef(Yr),ea=qr,na=h(55241),ta=function(){return(0,u.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},ra=function r(e){var n=e.appList,t=e.baseClassName,a=e.hashId,i=e.itemClick;return(0,u.jsx)("div",{className:"".concat(t,"-content ").concat(a).trim(),children:(0,u.jsx)("ul",{className:"".concat(t,"-content-list ").concat(a).trim(),children:n==null?void 0:n.map(function(o,c){var s;return o!=null&&(s=o.children)!==null&&s!==void 0&&s.length?(0,u.jsxs)("div",{className:"".concat(t,"-content-list-item-group ").concat(a).trim(),children:[(0,u.jsx)("div",{className:"".concat(t,"-content-list-item-group-title ").concat(a).trim(),children:o.title}),(0,u.jsx)(r,{hashId:a,itemClick:i,appList:o==null?void 0:o.children,baseClassName:t})]},c):(0,u.jsx)("li",{className:"".concat(t,"-content-list-item ").concat(a).trim(),onClick:function(v){v.stopPropagation(),i==null||i(o)},children:(0,u.jsxs)("a",{href:i?void 0:o.url,target:o.target,rel:"noreferrer",children:[_n(o.icon),(0,u.jsxs)("div",{children:[(0,u.jsx)("div",{children:o.title}),o.desc?(0,u.jsx)("span",{children:o.desc}):null]})]})},c)})})})},Dn=function(e){if(!e||!e.startsWith("http"))return!1;try{var n=new URL(e);return!!n}catch(t){return!1}},aa=function(e,n){if(e&&typeof e=="string"&&Dn(e))return(0,u.jsx)("img",{src:e,alt:"logo"});if(typeof e=="function")return e();if(e&&typeof e=="string")return(0,u.jsx)("div",{id:"avatarLogo",children:e});if(!e&&n&&typeof n=="string"){var t=n.substring(0,1);return(0,u.jsx)("div",{id:"avatarLogo",children:t})}return e},oa=function r(e){var n=e.appList,t=e.baseClassName,a=e.hashId,i=e.itemClick;return(0,u.jsx)("div",{className:"".concat(t,"-content ").concat(a).trim(),children:(0,u.jsx)("ul",{className:"".concat(t,"-content-list ").concat(a).trim(),children:n==null?void 0:n.map(function(o,c){var s;return o!=null&&(s=o.children)!==null&&s!==void 0&&s.length?(0,u.jsxs)("div",{className:"".concat(t,"-content-list-item-group ").concat(a).trim(),children:[(0,u.jsx)("div",{className:"".concat(t,"-content-list-item-group-title ").concat(a).trim(),children:o.title}),(0,u.jsx)(r,{hashId:a,itemClick:i,appList:o==null?void 0:o.children,baseClassName:t})]},c):(0,u.jsx)("li",{className:"".concat(t,"-content-list-item ").concat(a).trim(),onClick:function(v){v.stopPropagation(),i==null||i(o)},children:(0,u.jsxs)("a",{href:i?"javascript:;":o.url,target:o.target,rel:"noreferrer",children:[aa(o.icon,o.title),(0,u.jsx)("div",{children:(0,u.jsx)("div",{children:o.title})})]})},c)})})})},ia=function(e){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"content-box",maxWidth:656,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:328,height:72,paddingInline:16,paddingBlock:16,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:e.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:e.colorBgTextHover},"* div":Te.Wf===null||Te.Wf===void 0?void 0:(0,Te.Wf)(e),a:{display:"flex",height:"100%",fontSize:12,textDecoration:"none","& > img":{width:40,height:40},"& > div":{marginInlineStart:14,color:e.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:e.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},la=function(e){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"border-box",maxWidth:376,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:104,height:104,marginBlock:8,marginInline:8,paddingInline:24,paddingBlock:24,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:e.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:e.colorBgTextHover},a:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",fontSize:12,textDecoration:"none","& > #avatarLogo":{width:40,height:40,margin:"0 auto",color:e.colorPrimary,fontSize:22,lineHeight:"40px",textAlign:"center",backgroundImage:"linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",borderRadius:e.borderRadius},"& > img":{width:40,height:40},"& > div":{marginBlockStart:5,marginInlineStart:0,color:e.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:e.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},ua=function(e){var n,t,a,i,o;return(0,l.Z)({},e.componentCls,{"&-icon":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInline:4,paddingBlock:0,fontSize:14,lineHeight:"14px",height:28,width:28,cursor:"pointer",color:(n=e.layout)===null||n===void 0?void 0:n.colorTextAppListIcon,borderRadius:e.borderRadius,"&:hover":{color:(t=e.layout)===null||t===void 0?void 0:t.colorTextAppListIconHover,backgroundColor:(a=e.layout)===null||a===void 0?void 0:a.colorBgAppListIconHover},"&-active":{color:(i=e.layout)===null||i===void 0?void 0:i.colorTextAppListIconHover,backgroundColor:(o=e.layout)===null||o===void 0?void 0:o.colorBgAppListIconHover}},"&-item-title":{marginInlineStart:"16px",marginInlineEnd:"8px",marginBlockStart:0,marginBlockEnd:"12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginBlockStart:12}},"&-popover":(0,l.Z)({},"".concat(e.antCls,"-popover-arrow"),{display:"none"}),"&-simple":la(e),"&-default":ia(e)})};function ca(r){return(0,Te.Xj)("AppsLogoComponents",function(e){var n=(0,d.Z)((0,d.Z)({},e),{},{componentCls:".".concat(r)});return[ua(n)]})}var _n=function(e){return typeof e=="string"?(0,u.jsx)("img",{width:"auto",height:22,src:e,alt:"logo"}):typeof e=="function"?e():e},zn=function(e){var n,t=e.appList,a=e.appListRender,i=e.prefixCls,o=i===void 0?"ant-pro":i,c=e.onItemClick,s=m.useRef(null),f=m.useRef(null),v="".concat(o,"-layout-apps"),C=ca(v),p=C.wrapSSR,I=C.hashId,H=(0,m.useState)(!1),E=(0,K.Z)(H,2),R=E[0],D=E[1],$=function(w){c==null||c(w,f)},z=(0,m.useMemo)(function(){var y=t==null?void 0:t.some(function(w){return!(w!=null&&w.desc)});return y?(0,u.jsx)(oa,{hashId:I,appList:t,itemClick:c?$:void 0,baseClassName:"".concat(v,"-simple")}):(0,u.jsx)(ra,{hashId:I,appList:t,itemClick:c?$:void 0,baseClassName:"".concat(v,"-default")})},[t,v,I]);if(!(e!=null&&(n=e.appList)!==null&&n!==void 0&&n.length))return null;var P=a?a(e==null?void 0:e.appList,z):z,A=(0,B.X)(void 0,function(y){return D(y)});return p((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{ref:s,onClick:function(w){w.stopPropagation(),w.preventDefault()}}),(0,u.jsx)(na.Z,(0,d.Z)((0,d.Z)({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},A),{},{overlayClassName:"".concat(v,"-popover ").concat(I).trim(),content:P,getPopupContainer:function(){return s.current||document.body},children:(0,u.jsx)("span",{ref:f,onClick:function(w){w.stopPropagation()},className:Q()("".concat(v,"-icon"),I,(0,l.Z)({},"".concat(v,"-icon-active"),R)),children:(0,u.jsx)(ta,{})})}))]}))},ut=h(68997),sa=h(78957),ct=h(50136);function da(){return(0,u.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{d:"M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z"})})}var fa=function(e){var n,t,a;return(0,l.Z)({},e.componentCls,{position:"absolute",insetBlockStart:"18px",zIndex:"101",width:"24px",height:"24px",fontSize:["14px","16px"],textAlign:"center",borderRadius:"40px",insetInlineEnd:"-13px",transition:"transform 0.3s",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:(n=e.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorTextCollapsedButton,backgroundColor:(t=e.layout)===null||t===void 0||(t=t.sider)===null||t===void 0?void 0:t.colorBgCollapsedButton,boxShadow:"0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)","&:hover":{color:(a=e.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextCollapsedButtonHover,boxShadow:"0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)"},".anticon":{fontSize:"14px"},"& > svg":{transition:"transform  0.3s",transform:"rotate(90deg)"},"&-collapsed":{"& > svg":{transform:"rotate(-90deg)"}}})};function va(r){return(0,Te.Xj)("SiderMenuCollapsedIcon",function(e){var n=(0,d.Z)((0,d.Z)({},e),{},{componentCls:".".concat(r)});return[fa(n)]})}var ma=["isMobile","collapsed"],ha=function(e){var n=e.isMobile,t=e.collapsed,a=(0,le.Z)(e,ma),i=va(e.className),o=i.wrapSSR,c=i.hashId;return n&&t?null:o((0,u.jsx)("div",(0,d.Z)((0,d.Z)({},a),{},{className:Q()(e.className,c,(0,l.Z)((0,l.Z)({},"".concat(e.className,"-collapsed"),t),"".concat(e.className,"-is-mobile"),n)),children:(0,u.jsx)(da,{})})))},ga=h(43144),pa=h(15671),ya=h(42550),xa=h(2446),bn=h(14004),Ca=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],st=m.forwardRef(function(r,e){var n=r.className,t=r.component,a=r.viewBox,i=r.spin,o=r.rotate,c=r.tabIndex,s=r.onClick,f=r.children,v=(0,le.Z)(r,Ca),C=m.useRef(),p=(0,ya.x1)(C,e);(0,bn.Kp)(!!(t||f),"Should have `component` prop or `children`."),(0,bn.C3)(C);var I=m.useContext(xa.Z),H=I.prefixCls,E=H===void 0?"anticon":H,R=I.rootClassName,D=Q()(R,E,(0,l.Z)({},"".concat(E,"-spin"),!!i&&!!t),n),$=Q()((0,l.Z)({},"".concat(E,"-spin"),!!i)),z=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,P=(0,d.Z)((0,d.Z)({},bn.vD),{},{className:$,style:z,viewBox:a});a||delete P.viewBox;var A=function(){return t?m.createElement(t,P,f):f?((0,bn.Kp)(!!a||m.Children.count(f)===1&&m.isValidElement(f)&&m.Children.only(f).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),m.createElement("svg",(0,cn.Z)({},P,{viewBox:a}),f)):null},y=c;return y===void 0&&s&&(y=-1),m.createElement("span",(0,cn.Z)({role:"img"},v,{ref:p,tabIndex:y,onClick:s,className:D}),A())});st.displayName="AntdIcon";var ba=st,Sa=["type","children"],dt=new Set;function Za(r){return!!(typeof r=="string"&&r.length&&!dt.has(r))}function Sn(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=r[e];if(Za(n)){var t=document.createElement("script");t.setAttribute("src",n),t.setAttribute("data-namespace",n),r.length>e+1&&(t.onload=function(){Sn(r,e+1)},t.onerror=function(){Sn(r,e+1)}),dt.add(n),document.body.appendChild(t)}}function ft(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.scriptUrl,n=r.extraCommonProps,t=n===void 0?{}:n;e&&typeof document!="undefined"&&typeof window!="undefined"&&typeof document.createElement=="function"&&(Array.isArray(e)?Sn(e.reverse()):Sn([e]));var a=m.forwardRef(function(i,o){var c=i.type,s=i.children,f=(0,le.Z)(i,Sa),v=null;return i.type&&(v=m.createElement("use",{xlinkHref:"#".concat(c)})),s&&(v=s),m.createElement(ba,(0,cn.Z)({},t,f,{ref:o}),v)});return a.displayName="Iconfont",a}function Ma(r){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(r)}var Ia=h(83062),Ra=h(48054),vt=h(14192),Ta=function(e,n){var t,a,i=n.includes("horizontal")?(t=e.layout)===null||t===void 0?void 0:t.header:(a=e.layout)===null||a===void 0?void 0:a.sider;return(0,d.Z)((0,d.Z)((0,l.Z)({},"".concat(e.componentCls),(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({background:"transparent",color:i==null?void 0:i.colorTextMenu,border:"none"},"".concat(e.componentCls,"-menu-item"),{transition:"none !important"}),"".concat(e.componentCls,"-submenu-has-icon"),(0,l.Z)({},"> ".concat(e.antCls,"-menu-sub"),{paddingInlineStart:10})),"".concat(e.antCls,"-menu-title-content"),{width:"100%",height:"100%",display:"inline-flex"}),"".concat(e.antCls,"-menu-title-content"),{"&:first-child":{width:"100%"}}),"".concat(e.componentCls,"-item-icon"),{display:"flex",alignItems:"center"}),"&&-collapsed",(0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(e.antCls,`-menu-item, 
        `).concat(e.antCls,"-menu-item-group > ").concat(e.antCls,"-menu-item-group-list > ").concat(e.antCls,`-menu-item, 
        `).concat(e.antCls,"-menu-item-group > ").concat(e.antCls,"-menu-item-group-list > ").concat(e.antCls,"-menu-submenu > ").concat(e.antCls,`-menu-submenu-title, 
        `).concat(e.antCls,"-menu-submenu > ").concat(e.antCls,"-menu-submenu-title"),{paddingInline:"0 !important",marginBlock:"4px !important"}),"".concat(e.antCls,"-menu-item-group > ").concat(e.antCls,"-menu-item-group-list > ").concat(e.antCls,"-menu-submenu-selected > ").concat(e.antCls,`-menu-submenu-title, 
        `).concat(e.antCls,"-menu-submenu-selected > ").concat(e.antCls,"-menu-submenu-title"),{backgroundColor:i==null?void 0:i.colorBgMenuItemSelected,borderRadius:e.borderRadiusLG}),"".concat(e.componentCls,"-group"),(0,l.Z)({},"".concat(e.antCls,"-menu-item-group-title"),{paddingInline:0}))),"&-item-title",(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({display:"flex",flexDirection:"row",alignItems:"center",gap:e.marginXS},"".concat(e.componentCls,"-item-text"),{maxWidth:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",whiteSpace:"nowrap"}),"&-collapsed",(0,l.Z)((0,l.Z)({minWidth:40,height:40},"".concat(e.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px !important",height:"16px"}}),"".concat(e.componentCls,"-item-text-has-icon"),{display:"none !important"})),"&-collapsed-level-0",{flexDirection:"column",justifyContent:"center"}),"&".concat(e.componentCls,"-group-item-title"),{gap:e.marginXS,height:18,overflow:"hidden"}),"&".concat(e.componentCls,"-item-collapsed-show-title"),(0,l.Z)({lineHeight:"16px",gap:0},"&".concat(e.componentCls,"-item-title-collapsed"),(0,l.Z)((0,l.Z)({display:"flex"},"".concat(e.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px!important",height:"16px"}}),"".concat(e.componentCls,"-item-text"),{opacity:"1 !important",display:"inline !important",textAlign:"center",fontSize:12,height:12,lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",margin:0,padding:0,marginBlockStart:4})))),"&-group",(0,l.Z)({},"".concat(e.antCls,"-menu-item-group-title"),{fontSize:12,color:e.colorTextLabel,".anticon":{marginInlineEnd:8}})),"&-group-divider",{color:e.colorTextSecondary,fontSize:12,lineHeight:20})),n.includes("horizontal")?{}:(0,l.Z)({},"".concat(e.antCls,"-menu-submenu").concat(e.antCls,"-menu-submenu-popup"),(0,l.Z)({},"".concat(e.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},(0,l.Z)({},"".concat(e.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function wa(r,e){return(0,Te.Xj)("ProLayoutBaseMenu"+e,function(n){var t=(0,d.Z)((0,d.Z)({},n),{},{componentCls:".".concat(r)});return[Ta(t,e||"inline")]})}var mt=function(e){var n=(0,m.useState)(e.collapsed),t=(0,K.Z)(n,2),a=t[0],i=t[1],o=(0,m.useState)(!1),c=(0,K.Z)(o,2),s=c[0],f=c[1];return(0,m.useEffect)(function(){f(!1),setTimeout(function(){i(e.collapsed)},400)},[e.collapsed]),e.disable?e.children:(0,u.jsx)(Ia.Z,{title:e.title,open:a&&e.collapsed?s:!1,placement:"right",onOpenChange:f,children:e.children})},ht=ft({scriptUrl:vt.h.iconfontUrl}),gt=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-",t=arguments.length>2?arguments[2]:void 0;if(typeof e=="string"&&e!==""){if(Dn(e)||Ma(e))return(0,u.jsx)("img",{width:16,src:e,alt:"icon",className:t},e);if(e.startsWith(n))return(0,u.jsx)(ht,{type:e})}return e},pt=function(e){if(e&&typeof e=="string"){var n=e.substring(0,1).toUpperCase();return n}return null},ja=(0,ga.Z)(function r(e){var n=this;(0,pa.Z)(this,r),(0,l.Z)(this,"props",void 0),(0,l.Z)(this,"getNavMenuItems",function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;return t.map(function(o){return n.getSubMenuOrItem(o,a,i)}).filter(function(o){return o}).flat(1)}),(0,l.Z)(this,"getSubMenuOrItem",function(t,a,i){var o=n.props,c=o.subMenuItemRender,s=o.baseClassName,f=o.prefixCls,v=o.collapsed,C=o.menu,p=o.iconPrefixes,I=o.layout,H=(C==null?void 0:C.type)==="group"&&I!=="top",E=n.props.token,R=n.getIntlName(t),D=(t==null?void 0:t.children)||(t==null?void 0:t.routes),$=H&&a===0?"group":void 0;if(Array.isArray(D)&&D.length>0){var z,P,A,y,w,G=a===0||H&&a===1,O=gt(t.icon,p,"".concat(s,"-icon ").concat((z=n.props)===null||z===void 0?void 0:z.hashId)),L=v&&G?pt(R):null,ne=(0,u.jsxs)("div",{className:Q()("".concat(s,"-item-title"),(P=n.props)===null||P===void 0?void 0:P.hashId,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(s,"-item-title-collapsed"),v),"".concat(s,"-item-title-collapsed-level-").concat(i),v),"".concat(s,"-group-item-title"),$==="group"),"".concat(s,"-item-collapsed-show-title"),(C==null?void 0:C.collapsedShowTitle)&&v)),children:[$==="group"&&v?null:G&&O?(0,u.jsx)("span",{className:"".concat(s,"-item-icon ").concat((A=n.props)===null||A===void 0?void 0:A.hashId).trim(),children:O}):L,(0,u.jsx)("span",{className:Q()("".concat(s,"-item-text"),(y=n.props)===null||y===void 0?void 0:y.hashId,(0,l.Z)({},"".concat(s,"-item-text-has-icon"),$!=="group"&&G&&(O||L))),children:R})]}),ve=c?c((0,d.Z)((0,d.Z)({},t),{},{isUrl:!1}),ne,n.props):ne;if(H&&a===0&&n.props.collapsed&&!C.collapsedShowGroupTitle)return n.getNavMenuItems(D,a+1,a);var x=n.getNavMenuItems(D,a+1,H&&a===0&&n.props.collapsed?a:a+1);return[{type:$,key:t.key||t.path,label:ve,onClick:H?void 0:t.onTitleClick,children:x,className:Q()((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(s,"-group"),$==="group"),"".concat(s,"-submenu"),$!=="group"),"".concat(s,"-submenu-has-icon"),$!=="group"&&G&&O))},H&&a===0?{type:"divider",prefixCls:f,className:"".concat(s,"-divider"),key:(t.key||t.path)+"-group-divider",style:{padding:0,borderBlockEnd:0,margin:n.props.collapsed?"4px":"6px 16px",marginBlockStart:n.props.collapsed?4:8,borderColor:E==null||(w=E.layout)===null||w===void 0||(w=w.sider)===null||w===void 0?void 0:w.colorMenuItemDivider}}:void 0].filter(Boolean)}return{className:"".concat(s,"-menu-item"),disabled:t.disabled,key:t.key||t.path,onClick:t.onTitleClick,label:n.getMenuItemPath(t,a,i)}}),(0,l.Z)(this,"getIntlName",function(t){var a=t.name,i=t.locale,o=n.props,c=o.menu,s=o.formatMessage,f=a;return i&&(c==null?void 0:c.locale)!==!1&&(f=s==null?void 0:s({id:i,defaultMessage:a})),n.props.menuTextRender?n.props.menuTextRender(t,f,n.props):f}),(0,l.Z)(this,"getMenuItemPath",function(t,a,i){var o,c,s,f,v=n.conversionPath(t.path||"/"),C=n.props,p=C.location,I=p===void 0?{pathname:"/"}:p,H=C.isMobile,E=C.onCollapse,R=C.menuItemRender,D=C.iconPrefixes,$=n.getIntlName(t),z=n.props,P=z.baseClassName,A=z.menu,y=z.collapsed,w=(A==null?void 0:A.type)==="group",G=a===0||w&&a===1,O=G?gt(t.icon,D,"".concat(P,"-icon ").concat((o=n.props)===null||o===void 0?void 0:o.hashId)):null,L=y&&G?pt($):null,ne=(0,u.jsxs)("div",{className:Q()("".concat(P,"-item-title"),(c=n.props)===null||c===void 0?void 0:c.hashId,(0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(P,"-item-title-collapsed"),y),"".concat(P,"-item-title-collapsed-level-").concat(i),y),"".concat(P,"-item-collapsed-show-title"),(A==null?void 0:A.collapsedShowTitle)&&y)),children:[(0,u.jsx)("span",{className:"".concat(P,"-item-icon ").concat((s=n.props)===null||s===void 0?void 0:s.hashId).trim(),style:{display:L===null&&!O?"none":""},children:O||(0,u.jsx)("span",{className:"anticon",children:L})}),(0,u.jsx)("span",{className:Q()("".concat(P,"-item-text"),(f=n.props)===null||f===void 0?void 0:f.hashId,(0,l.Z)({},"".concat(P,"-item-text-has-icon"),G&&(O||L))),children:$})]},v),ve=Dn(v);if(ve){var x,he,T;ne=(0,u.jsxs)("span",{onClick:function(){var xe,ie;(xe=window)===null||xe===void 0||(ie=xe.open)===null||ie===void 0||ie.call(xe,v,"_blank")},className:Q()("".concat(P,"-item-title"),(x=n.props)===null||x===void 0?void 0:x.hashId,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(P,"-item-title-collapsed"),y),"".concat(P,"-item-title-collapsed-level-").concat(i),y),"".concat(P,"-item-link"),!0),"".concat(P,"-item-collapsed-show-title"),(A==null?void 0:A.collapsedShowTitle)&&y)),children:[(0,u.jsx)("span",{className:"".concat(P,"-item-icon ").concat((he=n.props)===null||he===void 0?void 0:he.hashId).trim(),style:{display:L===null&&!O?"none":""},children:O||(0,u.jsx)("span",{className:"anticon",children:L})}),(0,u.jsx)("span",{className:Q()("".concat(P,"-item-text"),(T=n.props)===null||T===void 0?void 0:T.hashId,(0,l.Z)({},"".concat(P,"-item-text-has-icon"),G&&(O||L))),children:$})]},v)}if(R){var J=(0,d.Z)((0,d.Z)({},t),{},{isUrl:ve,itemPath:v,isMobile:H,replace:v===I.pathname,onClick:function(){return E&&E(!0)},children:void 0});return a===0?(0,u.jsx)(mt,{collapsed:y,title:$,disable:t.disabledTooltip,children:R(J,ne,n.props)}):R(J,ne,n.props)}return a===0?(0,u.jsx)(mt,{collapsed:y,title:$,disable:t.disabledTooltip,children:ne}):ne}),(0,l.Z)(this,"conversionPath",function(t){return t&&t.indexOf("http")===0?t:"/".concat(t||"").replace(/\/+/g,"/")}),this.props=e}),Ba=function(e,n){var t=n.layout,a=n.collapsed,i={};return e&&!a&&["side","mix"].includes(t||"mix")&&(i={openKeys:e}),i},yt=function(e){var n=e.mode,t=e.className,a=e.handleOpenChange,i=e.style,o=e.menuData,c=e.prefixCls,s=e.menu,f=e.matchMenuKeys,v=e.iconfontUrl,C=e.selectedKeys,p=e.onSelect,I=e.menuRenderType,H=e.openKeys,E=(0,m.useContext)(q.L_),R=E.dark,D=E.token,$="".concat(c,"-base-menu-").concat(n),z=(0,m.useRef)([]),P=(0,Y.Z)(s==null?void 0:s.defaultOpenAll),A=(0,K.Z)(P,2),y=A[0],w=A[1],G=(0,Y.Z)(function(){return s!=null&&s.defaultOpenAll?(0,sn.O7)(o)||[]:H===!1?!1:[]},{value:H===!1?void 0:H,onChange:a}),O=(0,K.Z)(G,2),L=O[0],ne=O[1],ve=(0,Y.Z)([],{value:C,onChange:p?function(be){p&&be&&p(be)}:void 0}),x=(0,K.Z)(ve,2),he=x[0],T=x[1];(0,m.useEffect)(function(){s!=null&&s.defaultOpenAll||H===!1||f&&(ne(f),T(f))},[f.join("-")]),(0,m.useEffect)(function(){v&&(ht=ft({scriptUrl:v}))},[v]),(0,m.useEffect)(function(){if(f.join("-")!==(he||[]).join("-")&&T(f),!y&&H!==!1&&f.join("-")!==(L||[]).join("-")){var be=f;(s==null?void 0:s.autoClose)===!1&&(be=Array.from(new Set([].concat((0,un.Z)(f),(0,un.Z)(L||[]))))),ne(be)}else s!=null&&s.ignoreFlatMenu&&y?ne((0,sn.O7)(o)):w(!1)},[f.join("-")]);var J=(0,m.useMemo)(function(){return Ba(L,e)},[L&&L.join(","),e.layout,e.collapsed]),oe=wa($,n),xe=oe.wrapSSR,ie=oe.hashId,Ze=(0,m.useMemo)(function(){return new ja((0,d.Z)((0,d.Z)({},e),{},{token:D,menuRenderType:I,baseClassName:$,hashId:ie}))},[e,D,I,$,ie]);if(s!=null&&s.loading)return(0,u.jsx)("div",{style:n!=null&&n.includes("inline")?{padding:24}:{marginBlockStart:16},children:(0,u.jsx)(Ra.Z,{active:!0,title:!1,paragraph:{rows:n!=null&&n.includes("inline")?6:1}})});e.openKeys===!1&&!e.handleOpenChange&&(z.current=f);var Ce=e.postMenuData?e.postMenuData(o):o;return Ce&&(Ce==null?void 0:Ce.length)<1?null:xe((0,m.createElement)(ct.Z,(0,d.Z)((0,d.Z)({},J),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:n,inlineIndent:16,defaultOpenKeys:z.current,theme:R?"dark":"light",selectedKeys:he,style:(0,d.Z)({backgroundColor:"transparent",border:"none"},i),className:Q()(t,ie,$,(0,l.Z)((0,l.Z)({},"".concat($,"-horizontal"),n==="horizontal"),"".concat($,"-collapsed"),e.collapsed)),items:Ze.getNavMenuItems(Ce,0,0),onOpenChange:function(He){e.collapsed||ne(He)}},e.menuProps)))};function Pa(r,e){var n=e.stylish,t=e.proLayoutCollapsedWidth;return(0,Te.Xj)("ProLayoutSiderMenuStylish",function(a){var i=(0,d.Z)((0,d.Z)({},a),{},{componentCls:".".concat(r),proLayoutCollapsedWidth:t});return n?[(0,l.Z)({},"div".concat(a.proComponentsCls,"-layout"),(0,l.Z)({},"".concat(i.componentCls),n==null?void 0:n(i)))]:[]})}var Na=["title","render"],Ea=m.memo(function(r){return(0,u.jsx)(u.Fragment,{children:r.children})}),La=Ve.Sider,xt=Ve._InternalSiderContext,Ha=xt===void 0?{Provider:Ea}:xt,Wn=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",t=e.logo,a=e.title,i=e.layout,o=e[n];if(o===!1)return null;var c=_n(t),s=(0,u.jsx)("h1",{children:a!=null?a:"Ant Design Pro"});return o?o(c,e.collapsed?null:s,e):e.isMobile?null:i==="mix"&&n==="menuHeaderRender"?!1:e.collapsed?(0,u.jsx)("a",{children:c},"title"):(0,u.jsxs)("a",{children:[c,s]},"title")},Ct=function(e){var n,t=e.collapsed,a=e.originCollapsed,i=e.fixSiderbar,o=e.menuFooterRender,c=e.onCollapse,s=e.theme,f=e.siderWidth,v=e.isMobile,C=e.onMenuHeaderClick,p=e.breakpoint,I=p===void 0?"lg":p,H=e.style,E=e.layout,R=e.menuExtraRender,D=R===void 0?!1:R,$=e.links,z=e.menuContentRender,P=e.collapsedButtonRender,A=e.prefixCls,y=e.avatarProps,w=e.rightContentRender,G=e.actionsRender,O=e.onOpenChange,L=e.stylish,ne=e.logoStyle,ve=(0,m.useContext)(q.L_),x=ve.hashId,he=(0,m.useMemo)(function(){return!(v||E==="mix")},[v,E]),T="".concat(A,"-sider"),J=64,oe=Pa("".concat(T,".").concat(T,"-stylish"),{stylish:L,proLayoutCollapsedWidth:J}),xe=Q()("".concat(T),x,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(T,"-fixed"),i),"".concat(T,"-fixed-mix"),E==="mix"&&!v&&i),"".concat(T,"-collapsed"),e.collapsed),"".concat(T,"-layout-").concat(E),E&&!v),"".concat(T,"-light"),s!=="dark"),"".concat(T,"-mix"),E==="mix"&&!v),"".concat(T,"-stylish"),!!L)),ie=Wn(e),Ze=D&&D(e),Ce=(0,m.useMemo)(function(){return z!==!1&&(0,m.createElement)(yt,(0,d.Z)((0,d.Z)({},e),{},{key:"base-menu",mode:t&&!v?"vertical":"inline",handleOpenChange:O,style:{width:"100%"},className:"".concat(T,"-menu ").concat(x).trim()}))},[T,x,z,O,e]),be=($||[]).map(function(Me,De){return{className:"".concat(T,"-link"),label:Me,key:De}}),He=(0,m.useMemo)(function(){return z?z(e,Ce):Ce},[z,Ce,e]),je=(0,m.useMemo)(function(){if(!y)return null;var Me=y.title,De=y.render,Ae=(0,le.Z)(y,Na),In=(0,u.jsxs)("div",{className:"".concat(T,"-actions-avatar"),children:[Ae!=null&&Ae.src||Ae!=null&&Ae.srcSet||Ae.icon||Ae.children?(0,u.jsx)(ut.Z,(0,d.Z)({size:28},Ae)):null,y.title&&!t&&(0,u.jsx)("span",{children:Me})]});return De?De(y,In,e):In},[y,T,t]),Ee=(0,m.useMemo)(function(){return G?(0,u.jsx)(sa.Z,{align:"center",size:4,direction:t?"vertical":"horizontal",className:Q()(["".concat(T,"-actions-list"),t&&"".concat(T,"-actions-list-collapsed"),x]),children:[G==null?void 0:G(e)].flat(1).map(function(Me,De){return(0,u.jsx)("div",{className:"".concat(T,"-actions-list-item ").concat(x).trim(),children:Me},De)})}):null},[G,T,t]),_e=(0,m.useMemo)(function(){return(0,u.jsx)(zn,{onItemClick:e.itemClick,appListRender:e.appListRender,appList:e.appList,prefixCls:e.prefixCls})},[e.appList,e.appListRender,e.prefixCls]),Fe=(0,m.useMemo)(function(){if(P===!1)return null;var Me=(0,u.jsx)(ha,{isMobile:v,collapsed:a,className:"".concat(T,"-collapsed-button"),onClick:function(){c==null||c(!a)}});return P?P(t,Me):Me},[P,v,a,T,t,c]),Ke=(0,m.useMemo)(function(){return!je&&!Ee?null:(0,u.jsxs)("div",{className:Q()("".concat(T,"-actions"),x,t&&"".concat(T,"-actions-collapsed")),children:[je,Ee]})},[Ee,je,T,t,x]),Ue=(0,m.useMemo)(function(){var Me;return e!=null&&(Me=e.menu)!==null&&Me!==void 0&&Me.hideMenuWhenCollapsed&&t?"".concat(T,"-hide-menu-collapsed"):null},[T,t,e==null||(n=e.menu)===null||n===void 0?void 0:n.hideMenuWhenCollapsed]),dn=o&&(o==null?void 0:o(e)),Mn=(0,u.jsxs)(u.Fragment,{children:[ie&&(0,u.jsxs)("div",{className:Q()([Q()("".concat(T,"-logo"),x,(0,l.Z)({},"".concat(T,"-logo-collapsed"),t))]),onClick:he?C:void 0,id:"logo",style:ne,children:[ie,_e]}),Ze&&(0,u.jsx)("div",{className:Q()(["".concat(T,"-extra"),!ie&&"".concat(T,"-extra-no-logo"),x]),children:Ze}),(0,u.jsx)("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:He}),(0,u.jsxs)(Ha.Provider,{value:{},children:[$?(0,u.jsx)("div",{className:"".concat(T,"-links ").concat(x).trim(),children:(0,u.jsx)(ct.Z,{inlineIndent:16,className:"".concat(T,"-link-menu ").concat(x).trim(),selectedKeys:[],openKeys:[],theme:s,mode:"inline",items:be})}):null,he&&(0,u.jsxs)(u.Fragment,{children:[Ke,!Ee&&w?(0,u.jsx)("div",{className:Q()("".concat(T,"-actions"),x,(0,l.Z)({},"".concat(T,"-actions-collapsed"),t)),children:w==null?void 0:w(e)}):null]}),dn&&(0,u.jsx)("div",{className:Q()(["".concat(T,"-footer"),x,(0,l.Z)({},"".concat(T,"-footer-collapsed"),t)]),children:dn})]})]});return oe.wrapSSR((0,u.jsxs)(u.Fragment,{children:[i&&!v&&!Ue&&(0,u.jsx)("div",{style:(0,d.Z)({width:t?J:f,overflow:"hidden",flex:"0 0 ".concat(t?J:f,"px"),maxWidth:t?J:f,minWidth:t?J:f,transition:"all 0.2s ease 0s"},H)}),(0,u.jsxs)(La,{collapsible:!0,trigger:null,collapsed:t,breakpoint:I===!1?void 0:I,onCollapse:function(De){v||c==null||c(De)},collapsedWidth:J,style:H,theme:s,width:f,className:Q()(xe,x,Ue),children:[Ue?(0,u.jsx)("div",{className:"".concat(T,"-hide-when-collapsed ").concat(x).trim(),style:{height:"100%",width:"100%",opacity:Ue?0:1},children:Mn}):Mn,Fe]})]}))},Aa=h(10178),Oa=h(9220),$a=function(e){var n,t,a,i,o;return(0,l.Z)({},e.componentCls,{"&-header-actions":{display:"flex",height:"100%",alignItems:"center","&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:(n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorTextRightActionsItem,fontSize:"16px",cursor:"pointer",borderRadius:e.borderRadius,"> *":{paddingInline:6,paddingBlock:6,borderRadius:e.borderRadius,"&:hover":{backgroundColor:(t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.colorBgRightActionsItemHover}}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:e.padding,paddingInlineEnd:e.padding,cursor:"pointer",color:(a=e.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextRightActionsItem,"> div":{height:"44px",color:(i=e.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:e.borderRadius,"&:hover":{backgroundColor:(o=e.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorBgRightActionsItemHover}}}}})};function Da(r){return(0,Te.Xj)("ProLayoutRightContent",function(e){var n=(0,d.Z)((0,d.Z)({},e),{},{componentCls:".".concat(r)});return[$a(n)]})}var _a=["rightContentRender","avatarProps","actionsRender","headerContentRender"],za=["title","render"],bt=function(e){var n=e.rightContentRender,t=e.avatarProps,a=e.actionsRender,i=e.headerContentRender,o=(0,le.Z)(e,_a),c=(0,m.useContext)($e.ZP.ConfigContext),s=c.getPrefixCls,f="".concat(s(),"-pro-global-header"),v=Da(f),C=v.wrapSSR,p=v.hashId,I=(0,m.useState)("auto"),H=(0,K.Z)(I,2),E=H[0],R=H[1],D=(0,m.useMemo)(function(){if(!t)return null;var A=t.title,y=t.render,w=(0,le.Z)(t,za),G=[w!=null&&w.src||w!=null&&w.srcSet||w.icon||w.children?(0,m.createElement)(ut.Z,(0,d.Z)((0,d.Z)({},w),{},{size:28,key:"avatar"})):null,A?(0,u.jsx)("span",{style:{marginInlineStart:8},children:A},"name"):void 0];return y?y(t,(0,u.jsx)("div",{children:G}),o):(0,u.jsx)("div",{children:G})},[t]),$=a||D?function(A){var y=a&&(a==null?void 0:a(A));return!y&&!D?null:Array.isArray(y)?C((0,u.jsxs)("div",{className:"".concat(f,"-header-actions ").concat(p).trim(),children:[y.filter(Boolean).map(function(w,G){var O=!1;if(m.isValidElement(w)){var L;O=!!(w!=null&&(L=w.props)!==null&&L!==void 0&&L["aria-hidden"])}return(0,u.jsx)("div",{className:Q()("".concat(f,"-header-actions-item ").concat(p),(0,l.Z)({},"".concat(f,"-header-actions-hover"),!O)),children:w},G)}),D&&(0,u.jsx)("span",{className:"".concat(f,"-header-actions-avatar ").concat(p).trim(),children:D})]})):C((0,u.jsxs)("div",{className:"".concat(f,"-header-actions ").concat(p).trim(),children:[y,D&&(0,u.jsx)("span",{className:"".concat(f,"-header-actions-avatar ").concat(p).trim(),children:D})]}))}:void 0,z=(0,Aa.D)(function(){var A=(0,X.Z)((0,ae.Z)().mark(function y(w){return(0,ae.Z)().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:R(w);case 1:case"end":return O.stop()}},y)}));return function(y){return A.apply(this,arguments)}}(),160),P=$||n;return(0,u.jsx)("div",{className:"".concat(f,"-right-content ").concat(p).trim(),style:{minWidth:E,height:"100%"},children:(0,u.jsx)("div",{style:{height:"100%"},children:(0,u.jsx)(Oa.Z,{onResize:function(y){var w=y.width;z.run(w)},children:P?(0,u.jsx)("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:P((0,d.Z)((0,d.Z)({},o),{},{rightContentSize:E}))}):null})})})},Wa=function(e){var n,t;return(0,l.Z)({},e.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":(0,l.Z)({display:"flex",alignItems:"center"},"".concat(e.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16,marginInlineStart:-8})},"&-wide":{maxWidth:1152,margin:"0 auto"},"&-logo":{position:"relative",display:"flex",height:"100%",alignItems:"center",overflow:"hidden","> *:first-child":{display:"flex",alignItems:"center",minHeight:"22px",fontSize:"22px"},"> *:first-child > img":{display:"inline-block",height:"32px",verticalAlign:"middle"},"> *:first-child > h1":{display:"inline-block",marginBlock:0,marginInline:0,lineHeight:"24px",marginInlineStart:6,fontWeight:"600",fontSize:"16px",color:(n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorHeaderTitle,verticalAlign:"top"}},"&-menu":{minWidth:0,display:"flex",alignItems:"center",paddingInline:6,paddingBlock:6,lineHeight:"".concat(Math.max((((t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.heightLayoutHeader)||56)-12,40),"px")}})};function Fa(r){return(0,Te.Xj)("ProLayoutTopNavHeader",function(e){var n=(0,d.Z)((0,d.Z)({},e),{},{componentCls:".".concat(r)});return[Wa(n)]})}var St=function(e){var n,t,a,i,o,c,s,f=(0,m.useRef)(null),v=e.onMenuHeaderClick,C=e.contentWidth,p=e.rightContentRender,I=e.className,H=e.style,E=e.headerContentRender,R=e.layout,D=e.actionsRender,$=(0,m.useContext)($e.ZP.ConfigContext),z=$.getPrefixCls,P=(0,m.useContext)(q.L_),A=P.dark,y="".concat(e.prefixCls||z("pro"),"-top-nav-header"),w=Fa(y),G=w.wrapSSR,O=w.hashId,L=void 0;e.menuHeaderRender!==void 0?L="menuHeaderRender":(R==="mix"||R==="top")&&(L="headerTitleRender");var ne=Wn((0,d.Z)((0,d.Z)({},e),{},{collapsed:!1}),L),ve=(0,m.useContext)(q.L_),x=ve.token,he=(0,m.useMemo)(function(){var T,J,oe,xe,ie,Ze,Ce,be,He,je,Ee,_e,Fe,Ke=(0,u.jsx)($e.ZP,{theme:{hashed:(0,q.nu)(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:(0,d.Z)({},k({colorItemBg:((T=x.layout)===null||T===void 0||(T=T.header)===null||T===void 0?void 0:T.colorBgHeader)||"transparent",colorSubItemBg:((J=x.layout)===null||J===void 0||(J=J.header)===null||J===void 0?void 0:J.colorBgHeader)||"transparent",radiusItem:x.borderRadius,colorItemBgSelected:((oe=x.layout)===null||oe===void 0||(oe=oe.header)===null||oe===void 0?void 0:oe.colorBgMenuItemSelected)||(x==null?void 0:x.colorBgTextHover),itemHoverBg:((xe=x.layout)===null||xe===void 0||(xe=xe.header)===null||xe===void 0?void 0:xe.colorBgMenuItemHover)||(x==null?void 0:x.colorBgTextHover),colorItemBgSelectedHorizontal:((ie=x.layout)===null||ie===void 0||(ie=ie.header)===null||ie===void 0?void 0:ie.colorBgMenuItemSelected)||(x==null?void 0:x.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((Ze=x.layout)===null||Ze===void 0||(Ze=Ze.header)===null||Ze===void 0?void 0:Ze.colorTextMenu)||(x==null?void 0:x.colorTextSecondary),colorItemTextHoverHorizontal:((Ce=x.layout)===null||Ce===void 0||(Ce=Ce.header)===null||Ce===void 0?void 0:Ce.colorTextMenuActive)||(x==null?void 0:x.colorText),colorItemTextSelectedHorizontal:((be=x.layout)===null||be===void 0||(be=be.header)===null||be===void 0?void 0:be.colorTextMenuSelected)||(x==null?void 0:x.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((He=x.layout)===null||He===void 0||(He=He.header)===null||He===void 0?void 0:He.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((je=x.layout)===null||je===void 0||(je=je.header)===null||je===void 0?void 0:je.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((Ee=x.layout)===null||Ee===void 0||(Ee=Ee.header)===null||Ee===void 0?void 0:Ee.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:x==null?void 0:x.colorBgElevated,subMenuItemBg:x==null?void 0:x.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:x==null?void 0:x.colorBgElevated}))},token:{colorBgElevated:((_e=x.layout)===null||_e===void 0||(_e=_e.header)===null||_e===void 0?void 0:_e.colorBgHeader)||"transparent"}},children:(0,u.jsx)(yt,(0,d.Z)((0,d.Z)((0,d.Z)({theme:A?"dark":"light"},e),{},{className:"".concat(y,"-base-menu ").concat(O).trim()},e.menuProps),{},{style:(0,d.Z)({width:"100%"},(Fe=e.menuProps)===null||Fe===void 0?void 0:Fe.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return E?E(e,Ke):Ke},[(n=x.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorBgHeader,(t=x.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.colorBgMenuItemSelected,(a=x.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgMenuItemHover,(i=x.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextMenu,(o=x.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextMenuActive,(c=x.layout)===null||c===void 0||(c=c.header)===null||c===void 0?void 0:c.colorTextMenuSelected,(s=x.layout)===null||s===void 0||(s=s.header)===null||s===void 0?void 0:s.colorBgMenuElevated,x.borderRadius,x==null?void 0:x.colorBgTextHover,x==null?void 0:x.colorTextSecondary,x==null?void 0:x.colorText,x==null?void 0:x.colorTextBase,x.colorBgElevated,A,e,y,O,E]);return G((0,u.jsx)("div",{className:Q()(y,O,I,(0,l.Z)({},"".concat(y,"-light"),!0)),style:H,children:(0,u.jsxs)("div",{ref:f,className:Q()("".concat(y,"-main"),O,(0,l.Z)({},"".concat(y,"-wide"),C==="Fixed"&&R==="top")),children:[ne&&(0,u.jsxs)("div",{className:Q()("".concat(y,"-main-left ").concat(O)),onClick:v,children:[(0,u.jsx)(zn,(0,d.Z)({},e)),(0,u.jsx)("div",{className:"".concat(y,"-logo ").concat(O).trim(),id:"logo",children:ne},"logo")]}),(0,u.jsx)("div",{style:{flex:1},className:"".concat(y,"-menu ").concat(O).trim(),children:he}),(p||D||e.avatarProps)&&(0,u.jsx)(bt,(0,d.Z)((0,d.Z)({rightContentRender:p},e),{},{prefixCls:y}))]})}))},Ka=function(e){var n,t,a;return(0,l.Z)({},e.componentCls,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({position:"relative",background:"transparent",display:"flex",alignItems:"center",marginBlock:0,marginInline:16,height:((n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,boxSizing:"border-box","> a":{height:"100%"}},"".concat(e.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16}),"&-collapsed-button",{minHeight:"22px",color:(t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.colorHeaderTitle,fontSize:"18px",marginInlineEnd:"16px"}),"&-logo",{position:"relative",marginInlineEnd:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{height:"32px",marginBlock:0,marginInline:0,marginInlineStart:8,fontWeight:"600",color:((a=e.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorHeaderTitle)||e.colorTextHeading,fontSize:"18px",lineHeight:"32px"},"&-mix":{display:"flex",alignItems:"center"}}),"&-logo-mobile",{minWidth:"24px",marginInlineEnd:0}))};function Ua(r){return(0,Te.Xj)("ProLayoutGlobalHeader",function(e){var n=(0,d.Z)((0,d.Z)({},e),{},{componentCls:".".concat(r)});return[Ka(n)]})}var ka=function(e,n){return e===!1?null:e?e(n,null):n},Ga=function(e){var n=e.isMobile,t=e.logo,a=e.collapsed,i=e.onCollapse,o=e.rightContentRender,c=e.menuHeaderRender,s=e.onMenuHeaderClick,f=e.className,v=e.style,C=e.layout,p=e.children,I=e.splitMenus,H=e.menuData,E=e.prefixCls,R=(0,m.useContext)($e.ZP.ConfigContext),D=R.getPrefixCls,$=R.direction,z="".concat(E||D("pro"),"-global-header"),P=Ua(z),A=P.wrapSSR,y=P.hashId,w=Q()(f,z,y);if(C==="mix"&&!n&&I){var G=(H||[]).map(function(ve){return(0,d.Z)((0,d.Z)({},ve),{},{children:void 0,routes:void 0})}),O=(0,sn.QX)(G);return(0,u.jsx)(St,(0,d.Z)((0,d.Z)({mode:"horizontal"},e),{},{splitMenus:!1,menuData:O}))}var L=Q()("".concat(z,"-logo"),y,(0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(z,"-logo-rtl"),$==="rtl"),"".concat(z,"-logo-mix"),C==="mix"),"".concat(z,"-logo-mobile"),n)),ne=(0,u.jsx)("span",{className:L,children:(0,u.jsx)("a",{children:_n(t)})},"logo");return A((0,u.jsxs)("div",{className:w,style:(0,d.Z)({},v),children:[n&&(0,u.jsx)("span",{className:"".concat(z,"-collapsed-button ").concat(y).trim(),onClick:function(){i==null||i(!a)},children:(0,u.jsx)(ea,{})}),n&&ka(c,ne),C==="mix"&&!n&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(zn,(0,d.Z)({},e)),(0,u.jsx)("div",{className:L,onClick:s,children:Wn((0,d.Z)((0,d.Z)({},e),{},{collapsed:!1}),"headerTitleRender")})]}),(0,u.jsx)("div",{style:{flex:1},children:p}),(o||e.actionsRender||e.avatarProps)&&(0,u.jsx)(bt,(0,d.Z)({rightContentRender:o},e))]}))},Va=function(e){var n,t,a,i;return(0,l.Z)({},"".concat(e.proComponentsCls,"-layout"),(0,l.Z)({},"".concat(e.antCls,"-layout-header").concat(e.componentCls),{height:((n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,lineHeight:"".concat(((t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.heightLayoutHeader)||56,"px"),zIndex:19,width:"100%",paddingBlock:0,paddingInline:0,borderBlockEnd:"1px solid ".concat(e.colorSplit),backgroundColor:((a=e.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgHeader)||"rgba(255, 255, 255, 0.4)",WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)","&-fixed-header":{position:"fixed",insetBlockStart:0,width:"100%",zIndex:100,insetInlineEnd:0},"&-fixed-header-scroll":{backgroundColor:((i=e.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgScrollHeader)||"rgba(255, 255, 255, 0.8)"},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:e.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}))};function Xa(r){return(0,Te.Xj)("ProLayoutHeader",function(e){var n=(0,d.Z)((0,d.Z)({},e),{},{componentCls:".".concat(r)});return[Va(n)]})}function Qa(r,e){var n=e.stylish,t=e.proLayoutCollapsedWidth;return(0,Te.Xj)("ProLayoutHeaderStylish",function(a){var i=(0,d.Z)((0,d.Z)({},a),{},{componentCls:".".concat(r),proLayoutCollapsedWidth:t});return n?[(0,l.Z)({},"div".concat(a.proComponentsCls,"-layout"),(0,l.Z)({},"".concat(i.componentCls),n==null?void 0:n(i)))]:[]})}var Zt=Ve.Header,Ja=function(e){var n,t,a,i=e.isMobile,o=e.fixedHeader,c=e.className,s=e.style,f=e.collapsed,v=e.prefixCls,C=e.onCollapse,p=e.layout,I=e.headerRender,H=e.headerContentRender,E=(0,m.useContext)(q.L_),R=E.token,D=(0,m.useContext)($e.ZP.ConfigContext),$=(0,m.useState)(!1),z=(0,K.Z)($,2),P=z[0],A=z[1],y=o||p==="mix",w=(0,m.useCallback)(function(){var T=p==="top",J=(0,sn.QX)(e.menuData||[]),oe=(0,u.jsx)(Ga,(0,d.Z)((0,d.Z)({onCollapse:C},e),{},{menuData:J,children:H&&H(e,null)}));return T&&!i&&(oe=(0,u.jsx)(St,(0,d.Z)((0,d.Z)({mode:"horizontal",onCollapse:C},e),{},{menuData:J}))),I&&typeof I=="function"?I(e,oe):oe},[H,I,i,p,C,e]);(0,m.useEffect)(function(){var T,J=(D==null||(T=D.getTargetContainer)===null||T===void 0?void 0:T.call(D))||document.body,oe=function(){var ie,Ze=J.scrollTop;return Ze>(((ie=R.layout)===null||ie===void 0||(ie=ie.header)===null||ie===void 0?void 0:ie.heightLayoutHeader)||56)&&!P?(A(!0),!0):(P&&A(!1),!1)};if(y&&typeof window!="undefined")return J.addEventListener("scroll",oe,{passive:!0}),function(){J.removeEventListener("scroll",oe)}},[(n=R.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader,y,P]);var G=p==="top",O="".concat(v,"-layout-header"),L=Xa(O),ne=L.wrapSSR,ve=L.hashId,x=Qa("".concat(O,".").concat(O,"-stylish"),{proLayoutCollapsedWidth:64,stylish:e.stylish}),he=Q()(c,ve,O,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(O,"-fixed-header"),y),"".concat(O,"-fixed-header-scroll"),P),"".concat(O,"-mix"),p==="mix"),"".concat(O,"-fixed-header-action"),!f),"".concat(O,"-top-menu"),G),"".concat(O,"-header"),!0),"".concat(O,"-stylish"),!!e.stylish));return p==="side"&&!i?null:x.wrapSSR(ne((0,u.jsx)(u.Fragment,{children:(0,u.jsxs)($e.ZP,{theme:{hashed:(0,q.nu)(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[y&&(0,u.jsx)(Zt,{style:(0,d.Z)({height:((t=R.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.heightLayoutHeader)||56,lineHeight:"".concat(((a=R.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},s)}),(0,u.jsx)(Zt,{className:he,style:s,children:w()})]})})))},Ya=h(83832),qa=h(85265),eo=h(46699),Mt=new eo.E4("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),no=function(e){var n,t,a,i,o,c,s,f,v,C,p,I;return(0,l.Z)({},"".concat(e.proComponentsCls,"-layout"),(0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(e.antCls,"-layout-sider").concat(e.componentCls),{background:((n=e.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground)||"transparent"}),e.componentCls,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({position:"relative",boxSizing:"border-box","&-menu":{position:"relative",zIndex:10,minHeight:"100%"}},"& ".concat(e.antCls,"-layout-sider-children"),{position:"relative",display:"flex",flexDirection:"column",height:"100%",paddingInline:(t=e.layout)===null||t===void 0||(t=t.sider)===null||t===void 0?void 0:t.paddingInlineLayoutMenu,paddingBlock:(a=e.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.paddingBlockLayoutMenu,borderInlineEnd:"1px solid ".concat(e.colorSplit),marginInlineEnd:-1}),"".concat(e.antCls,"-menu"),(0,l.Z)((0,l.Z)({},"".concat(e.antCls,"-menu-item-group-title"),{fontSize:e.fontSizeSM,paddingBottom:4}),"".concat(e.antCls,"-menu-item:not(").concat(e.antCls,"-menu-item-selected):hover"),{color:(i=e.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenuItemHover})),"&-logo",{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:12,paddingBlock:16,color:(o=e.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextMenu,cursor:"pointer",borderBlockEnd:"1px solid ".concat((c=e.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorMenuItemDivider),"> a":{display:"flex",alignItems:"center",justifyContent:"center",minHeight:22,fontSize:22,"> img":{display:"inline-block",height:22,verticalAlign:"middle"},"> h1":{display:"inline-block",height:22,marginBlock:0,marginInlineEnd:0,marginInlineStart:6,color:(s=e.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorTextMenuTitle,animationName:Mt,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":(0,l.Z)({flexDirection:"column-reverse",margin:0,padding:12},"".concat(e.proComponentsCls,"-layout-apps-icon"),{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"})}),"&-actions",{display:"flex",alignItems:"center",justifyContent:"space-between",marginBlock:4,marginInline:0,color:(f=e.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenu,"&-collapsed":{flexDirection:"column-reverse",paddingBlock:0,paddingInline:8,fontSize:16,transition:"font-size 0.3s ease-in-out"},"&-list":{color:(v=e.layout)===null||v===void 0||(v=v.sider)===null||v===void 0?void 0:v.colorTextMenuSecondary,"&-collapsed":{marginBlockEnd:8,animationName:"none"},"&-item":{paddingInline:6,paddingBlock:6,lineHeight:"16px",fontSize:16,cursor:"pointer",borderRadius:e.borderRadius,"&:hover":{background:e.colorBgTextHover}}},"&-avatar":{fontSize:14,paddingInline:8,paddingBlock:8,display:"flex",alignItems:"center",gap:e.marginXS,borderRadius:e.borderRadius,"& *":{cursor:"pointer"},"&:hover":{background:e.colorBgTextHover}}}),"&-hide-menu-collapsed",{insetInlineStart:"-".concat(e.proLayoutCollapsedWidth-12,"px"),position:"absolute"}),"&-extra",{marginBlockEnd:16,marginBlock:0,marginInline:16,"&-no-logo":{marginBlockStart:16}}),"&-links",{width:"100%",ul:{height:"auto"}}),"&-link-menu",{border:"none",boxShadow:"none",background:"transparent"}),"&-footer",{color:(C=e.layout)===null||C===void 0||(C=C.sider)===null||C===void 0?void 0:C.colorTextMenuSecondary,paddingBlockEnd:16,fontSize:e.fontSize,animationName:Mt,animationDuration:".4s",animationTimingFunction:"ease"})),"".concat(e.componentCls).concat(e.componentCls,"-fixed"),{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:"calc(100% - ".concat(((p=e.layout)===null||p===void 0||(p=p.header)===null||p===void 0?void 0:p.heightLayoutHeader)||56,"px)"),insetBlockStart:"".concat(((I=e.layout)===null||I===void 0||(I=I.header)===null||I===void 0?void 0:I.heightLayoutHeader)||56,"px")}}))};function to(r,e){var n=e.proLayoutCollapsedWidth;return(0,Te.Xj)("ProLayoutSiderMenu",function(t){var a=(0,d.Z)((0,d.Z)({},t),{},{componentCls:".".concat(r),proLayoutCollapsedWidth:n});return[no(a)]})}var It=function(e){var n,t=e.isMobile,a=e.siderWidth,i=e.collapsed,o=e.onCollapse,c=e.style,s=e.className,f=e.hide,v=e.prefixCls,C=e.getContainer,p=(0,m.useContext)(q.L_),I=p.token;(0,m.useEffect)(function(){t===!0&&(o==null||o(!0))},[t]);var H=(0,Hn.Z)(e,["className","style"]),E=m.useContext($e.ZP.ConfigContext),R=E.direction,D=to("".concat(v,"-sider"),{proLayoutCollapsedWidth:64}),$=D.wrapSSR,z=D.hashId,P=Q()("".concat(v,"-sider"),s,z);if(f)return null;var A=(0,B.X)(!i,function(){return o==null?void 0:o(!0)});return $(t?(0,u.jsx)(qa.Z,(0,d.Z)((0,d.Z)({placement:R==="rtl"?"right":"left",className:Q()("".concat(v,"-drawer-sider"),s)},A),{},{style:(0,d.Z)({padding:0,height:"100vh"},c),onClose:function(){o==null||o(!0)},maskClosable:!0,closable:!1,getContainer:C||!1,width:a,styles:{body:{height:"100vh",padding:0,display:"flex",flexDirection:"row",backgroundColor:(n=I.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground}},children:(0,u.jsx)(Ct,(0,d.Z)((0,d.Z)({},H),{},{isMobile:!0,className:P,collapsed:t?!1:i,splitMenus:!1,originCollapsed:i}))})):(0,u.jsx)(Ct,(0,d.Z)((0,d.Z)({className:P,originCollapsed:i},H),{},{style:c})))},Rt=h(76509),Fn=h(16305),ro=function(e,n,t){if(t){var a=(0,un.Z)(t.keys()).find(function(o){try{return o.startsWith("http")?!1:(0,Fn.EQ)(o)(e)}catch(c){return console.log("key",o,c),!1}});if(a)return t.get(a)}if(n){var i=Object.keys(n).find(function(o){try{return o!=null&&o.startsWith("http")?!1:(0,Fn.EQ)(o)(e)}catch(c){return console.log("key",o,c),!1}});if(i)return n[i]}return{path:""}},Kn=function(e,n){var t=e.pathname,a=t===void 0?"/":t,i=e.breadcrumb,o=e.breadcrumbMap,c=e.formatMessage,s=e.title,f=e.menu,v=f===void 0?{locale:!1}:f,C=n?"":s||"",p=ro(a,i,o);if(!p)return{title:C,id:"",pageName:C};var I=p.name;return v.locale!==!1&&p.locale&&c&&(I=c({id:p.locale||"",defaultMessage:p.name})),I?n||!s?{title:I,id:p.locale||"",pageName:I}:{title:"".concat(I," - ").concat(s),id:p.locale||"",pageName:I}:{title:C,id:p.locale||"",pageName:C}},Jo=function(e,n){return Kn(e,n).title},ao=h(52676),Zn=h(67159),Qe=h(34155),oo=function(){var e;return typeof Qe=="undefined"?Zn.Z:((e=Qe)===null||Qe===void 0||(Qe={NODE_ENV:"production",PUBLIC_PATH:"/"})===null||Qe===void 0?void 0:Qe.ANTD_VERSION)||Zn.Z},io=function(e){var n,t,a,i,o,c,s,f,v,C,p,I,H,E,R,D,$,z,P,A,y,w,G,O,L,ne,ve,x,he,T,J,oe;return(n=oo())!==null&&n!==void 0&&n.startsWith("5")?{}:(0,l.Z)((0,l.Z)((0,l.Z)({},e.componentCls,(0,l.Z)((0,l.Z)({width:"100%",height:"100%"},"".concat(e.proComponentsCls,"-base-menu"),(y={color:(t=e.layout)===null||t===void 0||(t=t.sider)===null||t===void 0?void 0:t.colorTextMenu},(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)(y,"".concat(e.antCls,"-menu-sub"),{backgroundColor:"transparent!important",color:(a=e.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenu}),"& ".concat(e.antCls,"-layout"),{backgroundColor:"transparent",width:"100%"}),"".concat(e.antCls,"-menu-submenu-expand-icon, ").concat(e.antCls,"-menu-submenu-arrow"),{color:"inherit"}),"&".concat(e.antCls,"-menu"),(0,l.Z)((0,l.Z)({color:(i=e.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenu},"".concat(e.antCls,"-menu-item"),{"*":{transition:"none !important"}}),"".concat(e.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(e.antCls,"-menu-inline"),(0,l.Z)({},"".concat(e.antCls,"-menu-selected::after,").concat(e.antCls,"-menu-item-selected::after"),{display:"none"})),"".concat(e.antCls,"-menu-sub ").concat(e.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(e.antCls,`-menu-item:active, 
        `).concat(e.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"}),"&".concat(e.antCls,"-menu-light"),(0,l.Z)({},"".concat(e.antCls,`-menu-item:hover, 
            `).concat(e.antCls,`-menu-item-active,
            `).concat(e.antCls,`-menu-submenu-active, 
            `).concat(e.antCls,"-menu-submenu-title:hover"),(0,l.Z)({color:(o=e.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextMenuActive,borderRadius:e.borderRadius},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(c=e.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorTextMenuActive}))),"&".concat(e.antCls,"-menu:not(").concat(e.antCls,"-menu-horizontal)"),(0,l.Z)((0,l.Z)({},"".concat(e.antCls,"-menu-item-selected"),{backgroundColor:(s=e.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorBgMenuItemSelected,borderRadius:e.borderRadius}),"".concat(e.antCls,`-menu-item:hover, 
            `).concat(e.antCls,`-menu-item-active,
            `).concat(e.antCls,"-menu-submenu-title:hover"),(0,l.Z)({color:(f=e.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenuActive,borderRadius:e.borderRadius,backgroundColor:"".concat((v=e.layout)===null||v===void 0||(v=v.header)===null||v===void 0?void 0:v.colorBgMenuItemHover," !important")},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(C=e.layout)===null||C===void 0||(C=C.sider)===null||C===void 0?void 0:C.colorTextMenuActive}))),"".concat(e.antCls,"-menu-item-selected"),{color:(p=e.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorTextMenuSelected}),(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)(y,"".concat(e.antCls,"-menu-submenu-selected"),{color:(I=e.layout)===null||I===void 0||(I=I.sider)===null||I===void 0?void 0:I.colorTextMenuSelected}),"&".concat(e.antCls,"-menu:not(").concat(e.antCls,"-menu-inline) ").concat(e.antCls,"-menu-submenu-open"),{color:(H=e.layout)===null||H===void 0||(H=H.sider)===null||H===void 0?void 0:H.colorTextMenuSelected}),"&".concat(e.antCls,"-menu-vertical"),(0,l.Z)({},"".concat(e.antCls,"-menu-submenu-selected"),{borderRadius:e.borderRadius,color:(E=e.layout)===null||E===void 0||(E=E.sider)===null||E===void 0?void 0:E.colorTextMenuSelected})),"".concat(e.antCls,"-menu-submenu:hover > ").concat(e.antCls,"-menu-submenu-title > ").concat(e.antCls,"-menu-submenu-arrow"),{color:(R=e.layout)===null||R===void 0||(R=R.sider)===null||R===void 0?void 0:R.colorTextMenuActive}),"&".concat(e.antCls,"-menu-horizontal"),(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(e.antCls,`-menu-item:hover,
          `).concat(e.antCls,`-menu-submenu:hover,
          `).concat(e.antCls,`-menu-item-active,
          `).concat(e.antCls,"-menu-submenu-active"),{borderRadius:4,transition:"none",color:(D=e.layout)===null||D===void 0||(D=D.header)===null||D===void 0?void 0:D.colorTextMenuActive,backgroundColor:"".concat(($=e.layout)===null||$===void 0||($=$.header)===null||$===void 0?void 0:$.colorBgMenuItemHover," !important")}),"".concat(e.antCls,`-menu-item-open,
          `).concat(e.antCls,`-menu-submenu-open,
          `).concat(e.antCls,`-menu-item-selected,
          `).concat(e.antCls,"-menu-submenu-selected"),(0,l.Z)({backgroundColor:(z=e.layout)===null||z===void 0||(z=z.header)===null||z===void 0?void 0:z.colorBgMenuItemSelected,borderRadius:e.borderRadius,transition:"none",color:"".concat((P=e.layout)===null||P===void 0||(P=P.header)===null||P===void 0?void 0:P.colorTextMenuSelected," !important")},"".concat(e.antCls,"-menu-submenu-arrow"),{color:"".concat((A=e.layout)===null||A===void 0||(A=A.header)===null||A===void 0?void 0:A.colorTextMenuSelected," !important")})),"> ".concat(e.antCls,"-menu-item, > ").concat(e.antCls,"-menu-submenu"),{paddingInline:16,marginInline:4}),"> ".concat(e.antCls,"-menu-item::after, > ").concat(e.antCls,"-menu-submenu::after"),{display:"none"})))),"".concat(e.proComponentsCls,"-top-nav-header-base-menu"),(0,l.Z)((0,l.Z)({},"&".concat(e.antCls,"-menu"),(0,l.Z)({color:(w=e.layout)===null||w===void 0||(w=w.header)===null||w===void 0?void 0:w.colorTextMenu},"".concat(e.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(e.antCls,"-menu-light"),(0,l.Z)((0,l.Z)({},"".concat(e.antCls,`-menu-item:hover, 
            `).concat(e.antCls,`-menu-item-active,
            `).concat(e.antCls,`-menu-submenu-active, 
            `).concat(e.antCls,"-menu-submenu-title:hover"),(0,l.Z)({color:(G=e.layout)===null||G===void 0||(G=G.header)===null||G===void 0?void 0:G.colorTextMenuActive,borderRadius:e.borderRadius,transition:"none",backgroundColor:(O=e.layout)===null||O===void 0||(O=O.header)===null||O===void 0?void 0:O.colorBgMenuItemSelected},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(L=e.layout)===null||L===void 0||(L=L.header)===null||L===void 0?void 0:L.colorTextMenuActive})),"".concat(e.antCls,"-menu-item-selected"),{color:(ne=e.layout)===null||ne===void 0||(ne=ne.header)===null||ne===void 0?void 0:ne.colorTextMenuSelected,borderRadius:e.borderRadius,backgroundColor:(ve=e.layout)===null||ve===void 0||(ve=ve.header)===null||ve===void 0?void 0:ve.colorBgMenuItemSelected})))),"".concat(e.antCls,"-menu-sub").concat(e.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(e.antCls,"-menu-submenu-popup"),(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"},"".concat(e.antCls,"-menu"),(0,l.Z)({background:"transparent !important",backgroundColor:"transparent !important"},"".concat(e.antCls,`-menu-item:active, 
        `).concat(e.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"})),"".concat(e.antCls,"-menu-item-selected"),{color:(x=e.layout)===null||x===void 0||(x=x.sider)===null||x===void 0?void 0:x.colorTextMenuSelected}),"".concat(e.antCls,"-menu-submenu-selected"),{color:(he=e.layout)===null||he===void 0||(he=he.sider)===null||he===void 0?void 0:he.colorTextMenuSelected}),"".concat(e.antCls,"-menu:not(").concat(e.antCls,"-menu-horizontal)"),(0,l.Z)((0,l.Z)({},"".concat(e.antCls,"-menu-item-selected"),{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:e.borderRadius,color:(T=e.layout)===null||T===void 0||(T=T.sider)===null||T===void 0?void 0:T.colorTextMenuSelected}),"".concat(e.antCls,`-menu-item:hover, 
          `).concat(e.antCls,`-menu-item-active,
          `).concat(e.antCls,"-menu-submenu-title:hover"),(0,l.Z)({color:(J=e.layout)===null||J===void 0||(J=J.sider)===null||J===void 0?void 0:J.colorTextMenuActive,borderRadius:e.borderRadius},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(oe=e.layout)===null||oe===void 0||(oe=oe.sider)===null||oe===void 0?void 0:oe.colorTextMenuActive}))))},lo=function(e){var n,t,a,i;return(0,l.Z)((0,l.Z)({},"".concat(e.antCls,"-layout"),{backgroundColor:"transparent !important"}),e.componentCls,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"& ".concat(e.antCls,"-layout"),{display:"flex",backgroundColor:"transparent",width:"100%"}),"".concat(e.componentCls,"-content"),{display:"flex",flexDirection:"column",width:"100%",backgroundColor:((n=e.layout)===null||n===void 0||(n=n.pageContainer)===null||n===void 0?void 0:n.colorBgPageContainer)||"transparent",position:"relative",paddingBlock:(t=e.layout)===null||t===void 0||(t=t.pageContainer)===null||t===void 0?void 0:t.paddingBlockPageContainerContent,paddingInline:(a=e.layout)===null||a===void 0||(a=a.pageContainer)===null||a===void 0?void 0:a.paddingInlinePageContainerContent,"&-has-page-container":{padding:0}}),"".concat(e.componentCls,"-container"),{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}),"".concat(e.componentCls,"-bg-list"),{pointerEvents:"none",position:"fixed",overflow:"hidden",insetBlockStart:0,insetInlineStart:0,zIndex:0,height:"100%",width:"100%",background:(i=e.layout)===null||i===void 0?void 0:i.bgLayout}))};function uo(r){return(0,Te.Xj)("ProLayout",function(e){var n=(0,d.Z)((0,d.Z)({},e),{},{componentCls:".".concat(r)});return[lo(n),io(n)]})}function co(r){if(!r||r==="/")return["/"];var e=r.split("/").filter(function(n){return n});return e.map(function(n,t){return"/".concat(e.slice(0,t+1).join("/"))})}var Je=h(34155),so=function(){var e;return typeof Je=="undefined"?Zn.Z:((e=Je)===null||Je===void 0||(Je={NODE_ENV:"production",PUBLIC_PATH:"/"})===null||Je===void 0?void 0:Je.ANTD_VERSION)||Zn.Z},fo=function(e,n,t){var a=e,i=a.breadcrumbName,o=a.title,c=a.path,s=t.findIndex(function(f){return f.linkPath===e.path})===t.length-1;return s?(0,u.jsx)("span",{children:o||i}):(0,u.jsx)("span",{onClick:c?function(){return location.href=c}:void 0,children:o||i})},vo=function(e,n){var t=n.formatMessage,a=n.menu;return e.locale&&t&&(a==null?void 0:a.locale)!==!1?t({id:e.locale,defaultMessage:e.name}):e.name},mo=function(e,n){var t=e.get(n);if(!t){var a=Array.from(e.keys())||[],i=a.find(function(o){try{return o!=null&&o.startsWith("http")?!1:(0,Fn.EQ)(o.replace("?",""))(n)}catch(c){return console.log("path",o,c),!1}});i&&(t=e.get(i))}return t||{path:""}},ho=function(e){var n=e.location,t=e.breadcrumbMap;return{location:n,breadcrumbMap:t}},go=function(e,n,t){var a=co(e==null?void 0:e.pathname),i=a.map(function(o){var c=mo(n,o),s=vo(c,t),f=c.hideInBreadcrumb;return s&&!f?{linkPath:o,breadcrumbName:s,title:s,component:c.component}:{linkPath:"",breadcrumbName:"",title:""}}).filter(function(o){return o&&o.linkPath});return i},po=function(e){var n=ho(e),t=n.location,a=n.breadcrumbMap;return t&&t.pathname&&a?go(t,a,e):[]},yo=function(e,n){var t=e.breadcrumbRender,a=e.itemRender,i=n.breadcrumbProps||{},o=i.minLength,c=o===void 0?2:o,s=po(e),f=function(p){for(var I=a||fo,H=arguments.length,E=new Array(H>1?H-1:0),R=1;R<H;R++)E[R-1]=arguments[R];return I==null?void 0:I.apply(void 0,[(0,d.Z)((0,d.Z)({},p),{},{path:p.linkPath||p.path})].concat(E))},v=s;return t&&(v=t(v||[])||void 0),(v&&v.length<c||t===!1)&&(v=void 0),(0,_.n)(so(),"5.3.0")>-1?{items:v,itemRender:f}:{routes:v,itemRender:f}};function xo(r){return(0,un.Z)(r).reduce(function(e,n){var t=(0,K.Z)(n,2),a=t[0],i=t[1];return e[a]=i,e},{})}var Co=function r(e,n,t,a){var i=pr(e,(n==null?void 0:n.locale)||!1,t,!0),o=i.menuData,c=i.breadcrumb;return a?r(a(o),n,t,void 0):{breadcrumb:xo(c),breadcrumbMap:c,menuData:o}},bo=h(71002),So=h(51812),Zo=function(e){var n=(0,m.useState)({}),t=(0,K.Z)(n,2),a=t[0],i=t[1];return(0,m.useEffect)(function(){i((0,So.Y)({layout:(0,bo.Z)(e.layout)!=="object"?e.layout:void 0,navTheme:e.navTheme,menuRender:e.menuRender,footerRender:e.footerRender,menuHeaderRender:e.menuHeaderRender,headerRender:e.headerRender,fixSiderbar:e.fixSiderbar}))},[e.layout,e.navTheme,e.menuRender,e.footerRender,e.menuHeaderRender,e.headerRender,e.fixSiderbar]),a},Mo=["id","defaultMessage"],Io=["fixSiderbar","navTheme","layout"],Tt=0,Ro=function(e,n){var t;return e.headerRender===!1||e.pure?null:(0,u.jsx)(Ja,(0,d.Z)((0,d.Z)({matchMenuKeys:n},e),{},{stylish:(t=e.stylish)===null||t===void 0?void 0:t.header}))},To=function(e){return e.footerRender===!1||e.pure?null:e.footerRender?e.footerRender((0,d.Z)({},e),(0,u.jsx)(Xr,{})):null},wo=function(e,n){var t,a=e.layout,i=e.isMobile,o=e.selectedKeys,c=e.openKeys,s=e.splitMenus,f=e.suppressSiderWhenMenuEmpty,v=e.menuRender;if(e.menuRender===!1||e.pure)return null;var C=e.menuData;if(s&&(c!==!1||a==="mix")&&!i){var p=o||n,I=(0,K.Z)(p,1),H=I[0];if(H){var E;C=((E=e.menuData)===null||E===void 0||(E=E.find(function(z){return z.key===H}))===null||E===void 0?void 0:E.children)||[]}else C=[]}var R=(0,sn.QX)(C||[]);if(R&&(R==null?void 0:R.length)<1&&(s||f))return null;if(a==="top"&&!i){var D;return(0,u.jsx)(It,(0,d.Z)((0,d.Z)({matchMenuKeys:n},e),{},{hide:!0,stylish:(D=e.stylish)===null||D===void 0?void 0:D.sider}))}var $=(0,u.jsx)(It,(0,d.Z)((0,d.Z)({matchMenuKeys:n},e),{},{menuData:R,stylish:(t=e.stylish)===null||t===void 0?void 0:t.sider}));return v?v(e,$):$},jo=function(e,n){var t=n.pageTitleRender,a=Kn(e);if(t===!1)return{title:n.title||"",id:"",pageName:""};if(t){var i=t(e,a.title,a);if(typeof i=="string")return Kn((0,d.Z)((0,d.Z)({},a),{},{title:i}));(0,Lr.ZP)(typeof i=="string","pro-layout: renderPageTitle return value should be a string")}return a},Bo=function(e,n,t){return e?n?64:t:0},Po=function(e){var n,t,a,i,o,c,s,f,v,C,p,I,H,E,R=e||{},D=R.children,$=R.onCollapse,z=R.location,P=z===void 0?{pathname:"/"}:z,A=R.contentStyle,y=R.route,w=R.defaultCollapsed,G=R.style,O=R.siderWidth,L=R.menu,ne=R.siderMenuType,ve=R.isChildrenLayout,x=R.menuDataRender,he=R.actionRef,T=R.bgLayoutImgList,J=R.formatMessage,oe=R.loading,xe=(0,m.useMemo)(function(){return O||(e.layout==="mix"?215:256)},[e.layout,O]),ie=(0,m.useContext)($e.ZP.ConfigContext),Ze=(n=e.prefixCls)!==null&&n!==void 0?n:ie.getPrefixCls("pro"),Ce=(0,Y.Z)(!1,{value:L==null?void 0:L.loading,onChange:L==null?void 0:L.onLoadingChange}),be=(0,K.Z)(Ce,2),He=be[0],je=be[1],Ee=(0,m.useState)(function(){return Tt+=1,"pro-layout-".concat(Tt)}),_e=(0,K.Z)(Ee,1),Fe=_e[0],Ke=(0,m.useCallback)(function(Ie){var ke=Ie.id,wn=Ie.defaultMessage,gn=(0,le.Z)(Ie,Mo);if(J)return J((0,d.Z)({id:ke,defaultMessage:wn},gn));var pn=(0,ao.e)();return pn[ke]?pn[ke]:wn},[J]),Ue=(0,Hr.ZP)([Fe,L==null?void 0:L.params],function(){var Ie=(0,X.Z)((0,ae.Z)().mark(function ke(wn){var gn,pn,Wt,Ft;return(0,ae.Z)().wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:return pn=(0,K.Z)(wn,2),Wt=pn[1],je(!0),nn.next=4,L==null||(gn=L.request)===null||gn===void 0?void 0:gn.call(L,Wt||{},(y==null?void 0:y.children)||(y==null?void 0:y.routes)||[]);case 4:return Ft=nn.sent,je(!1),nn.abrupt("return",Ft);case 7:case"end":return nn.stop()}},ke)}));return function(ke){return Ie.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),dn=Ue.data,Mn=Ue.mutate,Me=Ue.isLoading;(0,m.useEffect)(function(){je(Me)},[Me]);var De=(0,Ar.kY)(),Ae=De.cache;(0,m.useEffect)(function(){return function(){Ae instanceof Map&&Ae.delete(Fe)}},[]);var In=(0,m.useMemo)(function(){return Co(dn||(y==null?void 0:y.children)||(y==null?void 0:y.routes)||[],L,Ke,x)},[Ke,L,x,dn,y==null?void 0:y.children,y==null?void 0:y.routes]),Un=In||{},Eo=Un.breadcrumb,wt=Un.breadcrumbMap,jt=Un.menuData,fn=jt===void 0?[]:jt;he&&L!==null&&L!==void 0&&L.request&&(he.current={reload:function(){Mn()}});var vn=(0,m.useMemo)(function(){return Zr(P.pathname||"/",fn||[],!0)},[P.pathname,fn]),kn=(0,m.useMemo)(function(){return Array.from(new Set(vn.map(function(Ie){return Ie.key||Ie.path||""})))},[vn]),Bt=vn[vn.length-1]||{},Pt=Zo(Bt),Rn=(0,d.Z)((0,d.Z)({},e),Pt),Lo=Rn.fixSiderbar,Yo=Rn.navTheme,mn=Rn.layout,Ho=(0,le.Z)(Rn,Io),Ye=Oe(),qe=(0,m.useMemo)(function(){return(Ye==="sm"||Ye==="xs")&&!e.disableMobile},[Ye,e.disableMobile]),Ao=mn!=="top"&&!qe,Oo=(0,Y.Z)(function(){return w!==void 0?w:!!(qe||Ye==="md")},{value:e.collapsed,onChange:$}),Nt=(0,K.Z)(Oo,2),hn=Nt[0],Et=Nt[1],en=(0,Hn.Z)((0,d.Z)((0,d.Z)((0,d.Z)({prefixCls:Ze},e),{},{siderWidth:xe},Pt),{},{formatMessage:Ke,breadcrumb:Eo,menu:(0,d.Z)((0,d.Z)({},L),{},{type:ne||(L==null?void 0:L.type),loading:He}),layout:mn}),["className","style","breadcrumbRender"]),Gn=jo((0,d.Z)((0,d.Z)({pathname:P.pathname},en),{},{breadcrumbMap:wt}),e),$o=yo((0,d.Z)((0,d.Z)({},en),{},{breadcrumbRender:e.breadcrumbRender,breadcrumbMap:wt}),e),Tn=wo((0,d.Z)((0,d.Z)({},en),{},{menuData:fn,onCollapse:Et,isMobile:qe,collapsed:hn}),kn),Vn=Ro((0,d.Z)((0,d.Z)({},en),{},{children:null,hasSiderMenu:!!Tn,menuData:fn,isMobile:qe,collapsed:hn,onCollapse:Et}),kn),Lt=To((0,d.Z)({isMobile:qe,collapsed:hn},en)),Do=(0,m.useContext)(Rt.X),_o=Do.isChildrenLayout,Xn=ve!==void 0?ve:_o,ze="".concat(Ze,"-layout"),Ht=uo(ze),zo=Ht.wrapSSR,Qn=Ht.hashId,Wo=Q()(e.className,Qn,"ant-design-pro",ze,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"screen-".concat(Ye),Ye),"".concat(ze,"-top-menu"),mn==="top"),"".concat(ze,"-is-children"),Xn),"".concat(ze,"-fix-siderbar"),Lo),"".concat(ze,"-").concat(mn),mn)),Fo=Bo(!!Ao,hn,xe),At={position:"relative"};(Xn||A&&A.minHeight)&&(At.minHeight=0),(0,m.useEffect)(function(){var Ie;(Ie=e.onPageChange)===null||Ie===void 0||Ie.call(e,e.location)},[P.pathname,(t=P.pathname)===null||t===void 0?void 0:t.search]);var Ko=(0,m.useState)(!1),Ot=(0,K.Z)(Ko,2),$t=Ot[0],Uo=Ot[1],ko=(0,m.useState)(0),Dt=(0,K.Z)(ko,2),_t=Dt[0],Go=Dt[1];j(Gn,e.title||!1);var Vo=(0,m.useContext)(q.L_),V=Vo.token,zt=(0,m.useMemo)(function(){return T&&T.length>0?T==null?void 0:T.map(function(Ie,ke){return(0,u.jsx)("img",{src:Ie.src,style:(0,d.Z)({position:"absolute"},Ie)},ke)}):null},[T]);return zo((0,u.jsx)(Rt.X.Provider,{value:(0,d.Z)((0,d.Z)({},en),{},{breadcrumb:$o,menuData:fn,isMobile:qe,collapsed:hn,hasPageContainer:_t,setHasPageContainer:Go,isChildrenLayout:!0,title:Gn.pageName,hasSiderMenu:!!Tn,hasHeader:!!Vn,siderWidth:Fo,hasFooter:!!Lt,hasFooterToolbar:$t,setHasFooterToolbar:Uo,pageTitleInfo:Gn,matchMenus:vn,matchMenuKeys:kn,currentMenu:Bt}),children:e.pure?(0,u.jsx)(u.Fragment,{children:D}):(0,u.jsxs)("div",{className:Wo,children:[zt||(a=V.layout)!==null&&a!==void 0&&a.bgLayout?(0,u.jsx)("div",{className:Q()("".concat(ze,"-bg-list"),Qn),children:zt}):null,(0,u.jsxs)(Ve,{style:(0,d.Z)({minHeight:"100%",flexDirection:Tn?"row":void 0},G),children:[(0,u.jsx)($e.ZP,{theme:{hashed:(0,q.nu)(),token:{controlHeightLG:((i=V.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.menuHeight)||(V==null?void 0:V.controlHeightLG)},components:{Menu:k({colorItemBg:((o=V.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorMenuBackground)||"transparent",colorSubItemBg:((c=V.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorMenuBackground)||"transparent",radiusItem:V.borderRadius,colorItemBgSelected:((s=V.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorBgMenuItemSelected)||(V==null?void 0:V.colorBgTextHover),colorItemBgHover:((f=V.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorBgMenuItemHover)||(V==null?void 0:V.colorBgTextHover),colorItemBgActive:((v=V.layout)===null||v===void 0||(v=v.sider)===null||v===void 0?void 0:v.colorBgMenuItemActive)||(V==null?void 0:V.colorBgTextActive),colorItemBgSelectedHorizontal:((C=V.layout)===null||C===void 0||(C=C.sider)===null||C===void 0?void 0:C.colorBgMenuItemSelected)||(V==null?void 0:V.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((p=V.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorTextMenu)||(V==null?void 0:V.colorTextSecondary),colorItemTextHover:((I=V.layout)===null||I===void 0||(I=I.sider)===null||I===void 0?void 0:I.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((H=V.layout)===null||H===void 0||(H=H.sider)===null||H===void 0?void 0:H.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:V==null?void 0:V.colorBgElevated,subMenuItemBg:V==null?void 0:V.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:V==null?void 0:V.colorBgElevated})}},children:Tn}),(0,u.jsxs)("div",{style:At,className:"".concat(ze,"-container ").concat(Qn).trim(),children:[Vn,(0,u.jsx)($r,(0,d.Z)((0,d.Z)({hasPageContainer:_t,isChildrenLayout:Xn},Ho),{},{hasHeader:!!Vn,prefixCls:ze,style:A,children:oe?(0,u.jsx)(Ya.S,{}):D})),Lt,$t&&(0,u.jsx)("div",{className:"".concat(ze,"-has-footer"),style:{height:64,marginBlockStart:(E=V.layout)===null||E===void 0||(E=E.pageContainer)===null||E===void 0?void 0:E.paddingBlockPageContainerContent}})]})]})]})}))},No=function(e){var n=e.colorPrimary,t=e.navTheme!==void 0?{dark:e.navTheme==="realDark"}:{};return(0,u.jsx)($e.ZP,{theme:n?{token:{colorPrimary:n}}:void 0,children:(0,u.jsx)(q._Y,(0,d.Z)((0,d.Z)({},t),{},{token:e.token,prefixCls:e.prefixCls,children:(0,u.jsx)(Po,(0,d.Z)((0,d.Z)({logo:(0,u.jsx)(Dr,{})},vt.h),{},{location:(0,Re.j)()?window.location:void 0},e))}))})}},83832:function(ge,re,h){"use strict";h.d(re,{S:function(){return q}});var l=h(1413),ae=h(91),X=h(74330),le=h(67294),K=h(85893),d=["isLoading","pastDelay","timedOut","error","retry"],q=function(m){var ce=m.isLoading,se=m.pastDelay,Se=m.timedOut,Oe=m.error,Re=m.retry,j=(0,ae.Z)(m,d);return(0,K.jsx)("div",{style:{paddingBlockStart:100,textAlign:"center"},children:(0,K.jsx)(X.Z,(0,l.Z)({size:"large"},j))})}},76509:function(ge,re,h){"use strict";h.d(re,{X:function(){return ae}});var l=h(67294),ae=(0,l.createContext)({})},90743:function(ge,re){var h;function l(j){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},l(j)}h={value:!0},re.Bo=h=h=h=h=h=h=void 0;function ae(j){for(var _=[],B=0;B<j.length;){var k=j[B];if(k==="*"||k==="+"||k==="?"){_.push({type:"MODIFIER",index:B,value:j[B++]});continue}if(k==="\\"){_.push({type:"ESCAPED_CHAR",index:B++,value:j[B++]});continue}if(k==="{"){_.push({type:"OPEN",index:B,value:j[B++]});continue}if(k==="}"){_.push({type:"CLOSE",index:B,value:j[B++]});continue}if(k===":"){for(var de="",U=B+1;U<j.length;){var ee=j.charCodeAt(U);if(ee>=48&&ee<=57||ee>=65&&ee<=90||ee>=97&&ee<=122||ee===95){de+=j[U++];continue}break}if(!de)throw new TypeError("Missing parameter name at "+B);_.push({type:"NAME",index:B,value:de}),B=U;continue}if(k==="("){var te=1,ue="",U=B+1;if(j[U]==="?")throw new TypeError('Pattern cannot start with "?" at '+U);for(;U<j.length;){if(j[U]==="\\"){ue+=j[U++]+j[U++];continue}if(j[U]===")"){if(te--,te===0){U++;break}}else if(j[U]==="("&&(te++,j[U+1]!=="?"))throw new TypeError("Capturing groups are not allowed at "+U);ue+=j[U++]}if(te)throw new TypeError("Unbalanced pattern at "+B);if(!ue)throw new TypeError("Missing pattern at "+B);_.push({type:"PATTERN",index:B,value:ue}),B=U;continue}_.push({type:"CHAR",index:B,value:j[B++]})}return _.push({type:"END",index:B,value:""}),_}function X(j,_){_===void 0&&(_={});for(var B=ae(j),k=_.prefixes,de=k===void 0?"./":k,U="[^"+Y(_.delimiter||"/#?")+"]+?",ee=[],te=0,ue=0,Z="",b=function(Le){if(ue<B.length&&B[ue].type===Le)return B[ue++].value},g=function(Le){var We=b(Le);if(We!==void 0)return We;var yn=B[ue],jn=yn.type,tn=yn.index;throw new TypeError("Unexpected "+jn+" at "+tn+", expected "+Le)},F=function(){for(var Le="",We;We=b("CHAR")||b("ESCAPED_CHAR");)Le+=We;return Le};ue<B.length;){var N=b("CHAR"),S=b("NAME"),W=b("PATTERN");if(S||W){var M=N||"";de.indexOf(M)===-1&&(Z+=M,M=""),Z&&(ee.push(Z),Z=""),ee.push({name:S||te++,prefix:M,suffix:"",pattern:W||U,modifier:b("MODIFIER")||""});continue}var fe=N||b("ESCAPED_CHAR");if(fe){Z+=fe;continue}Z&&(ee.push(Z),Z="");var me=b("OPEN");if(me){var M=F(),Be=b("NAME")||"",pe=b("PATTERN")||"",Pe=F();g("CLOSE"),ee.push({name:Be||(pe?te++:""),pattern:Be&&!pe?U:pe,prefix:M,suffix:Pe,modifier:b("MODIFIER")||""});continue}g("END")}return ee}h=X;function le(j,_){return K(X(j,_),_)}h=le;function K(j,_){_===void 0&&(_={});var B=m(_),k=_.encode,de=k===void 0?function(ue){return ue}:k,U=_.validate,ee=U===void 0?!0:U,te=j.map(function(ue){if(l(ue)==="object")return new RegExp("^(?:"+ue.pattern+")$",B)});return function(ue){for(var Z="",b=0;b<j.length;b++){var g=j[b];if(typeof g=="string"){Z+=g;continue}var F=ue?ue[g.name]:void 0,N=g.modifier==="?"||g.modifier==="*",S=g.modifier==="*"||g.modifier==="+";if(Array.isArray(F)){if(!S)throw new TypeError('Expected "'+g.name+'" to not repeat, but got an array');if(F.length===0){if(N)continue;throw new TypeError('Expected "'+g.name+'" to not be empty')}for(var W=0;W<F.length;W++){var M=de(F[W],g);if(ee&&!te[b].test(M))throw new TypeError('Expected all "'+g.name+'" to match "'+g.pattern+'", but got "'+M+'"');Z+=g.prefix+M+g.suffix}continue}if(typeof F=="string"||typeof F=="number"){var M=de(String(F),g);if(ee&&!te[b].test(M))throw new TypeError('Expected "'+g.name+'" to match "'+g.pattern+'", but got "'+M+'"');Z+=g.prefix+M+g.suffix;continue}if(!N){var fe=S?"an array":"a string";throw new TypeError('Expected "'+g.name+'" to be '+fe)}}return Z}}h=K;function d(j,_){var B=[],k=Re(j,B,_);return q(k,B,_)}h=d;function q(j,_,B){B===void 0&&(B={});var k=B.decode,de=k===void 0?function(U){return U}:k;return function(U){var ee=j.exec(U);if(!ee)return!1;for(var te=ee[0],ue=ee.index,Z=Object.create(null),b=function(N){if(ee[N]===void 0)return"continue";var S=_[N-1];S.modifier==="*"||S.modifier==="+"?Z[S.name]=ee[N].split(S.prefix+S.suffix).map(function(W){return de(W,S)}):Z[S.name]=de(ee[N],S)},g=1;g<ee.length;g++)b(g);return{path:te,index:ue,params:Z}}}h=q;function Y(j){return j.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function m(j){return j&&j.sensitive?"":"i"}function ce(j,_){if(!_)return j;var B=j.source.match(/\((?!\?)/g);if(B)for(var k=0;k<B.length;k++)_.push({name:k,prefix:"",suffix:"",modifier:"",pattern:""});return j}function se(j,_,B){var k=j.map(function(de){return Re(de,_,B).source});return new RegExp("(?:"+k.join("|")+")",m(B))}function Se(j,_,B){return Oe(X(j,B),_,B)}function Oe(j,_,B){B===void 0&&(B={});for(var k=B.strict,de=k===void 0?!1:k,U=B.start,ee=U===void 0?!0:U,te=B.end,ue=te===void 0?!0:te,Z=B.encode,b=Z===void 0?function(we){return we}:Z,g="["+Y(B.endsWith||"")+"]|$",F="["+Y(B.delimiter||"/#?")+"]",N=ee?"^":"",S=0,W=j;S<W.length;S++){var M=W[S];if(typeof M=="string")N+=Y(b(M));else{var fe=Y(b(M.prefix)),me=Y(b(M.suffix));if(M.pattern)if(_&&_.push(M),fe||me)if(M.modifier==="+"||M.modifier==="*"){var Be=M.modifier==="*"?"?":"";N+="(?:"+fe+"((?:"+M.pattern+")(?:"+me+fe+"(?:"+M.pattern+"))*)"+me+")"+Be}else N+="(?:"+fe+"("+M.pattern+")"+me+")"+M.modifier;else N+="("+M.pattern+")"+M.modifier;else N+="(?:"+fe+me+")"+M.modifier}}if(ue)de||(N+=F+"?"),N+=B.endsWith?"(?="+g+")":"$";else{var pe=j[j.length-1],Pe=typeof pe=="string"?F.indexOf(pe[pe.length-1])>-1:pe===void 0;de||(N+="(?:"+F+"(?="+g+"))?"),Pe||(N+="(?="+F+"|"+g+")")}return new RegExp(N,m(B))}h=Oe;function Re(j,_,B){return j instanceof RegExp?ce(j,_):Array.isArray(j)?se(j,_,B):Se(j,_,B)}re.Bo=Re},10178:function(ge,re,h){"use strict";h.d(re,{D:function(){return K}});var l=h(74165),ae=h(15861),X=h(67294),le=h(48171);function K(d,q){var Y=(0,le.J)(d),m=(0,X.useRef)(),ce=(0,X.useCallback)(function(){m.current&&(clearTimeout(m.current),m.current=null)},[]),se=(0,X.useCallback)((0,ae.Z)((0,l.Z)().mark(function Se(){var Oe,Re,j,_=arguments;return(0,l.Z)().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:for(Oe=_.length,Re=new Array(Oe),j=0;j<Oe;j++)Re[j]=_[j];if(!(q===0||q===void 0)){k.next=3;break}return k.abrupt("return",Y.apply(void 0,Re));case 3:return ce(),k.abrupt("return",new Promise(function(de){m.current=setTimeout((0,ae.Z)((0,l.Z)().mark(function U(){return(0,l.Z)().wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return te.t0=de,te.next=3,Y.apply(void 0,Re);case 3:return te.t1=te.sent,(0,te.t0)(te.t1),te.abrupt("return");case 6:case"end":return te.stop()}},U)})),q)}));case 5:case"end":return k.stop()}},Se)})),[Y,ce,q]);return(0,X.useEffect)(function(){return ce},[ce]),{run:se,cancel:ce}}},48171:function(ge,re,h){"use strict";h.d(re,{J:function(){return X}});var l=h(74902),ae=h(67294),X=function(K){var d=(0,ae.useRef)(null);return d.current=K,(0,ae.useCallback)(function(){for(var q,Y=arguments.length,m=new Array(Y),ce=0;ce<Y;ce++)m[ce]=arguments[ce];return(q=d.current)===null||q===void 0?void 0:q.call.apply(q,[d].concat((0,l.Z)(m)))},[])}},16305:function(ge,re){"use strict";var h;h={value:!0},h=void 0,h=Se,h=Oe,re.EQ=_,h=B,h=ee;const l="/",ae=Z=>Z,X=/^[$_\p{ID_Start}]$/u,le=/^[$\u200c\u200d\p{ID_Continue}]$/u,K="https://git.new/pathToRegexpError",d={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function q(Z){return Z.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function Y(Z){return Z.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*m(Z){const b=[...Z];let g=0;function F(){let N="";if(X.test(b[++g]))for(N+=b[g];le.test(b[++g]);)N+=b[g];else if(b[g]==='"'){let S=g;for(;g<b.length;){if(b[++g]==='"'){g++,S=0;break}b[g]==="\\"?N+=b[++g]:N+=b[g]}if(S)throw new TypeError(`Unterminated quote at ${S}: ${K}`)}if(!N)throw new TypeError(`Missing parameter name at ${g}: ${K}`);return N}for(;g<b.length;){const N=b[g],S=d[N];if(S)yield{type:S,index:g++,value:N};else if(N==="\\")yield{type:"ESCAPED",index:g++,value:b[g++]};else if(N===":"){const W=F();yield{type:"PARAM",index:g,value:W}}else if(N==="*"){const W=F();yield{type:"WILDCARD",index:g,value:W}}else yield{type:"CHAR",index:g,value:b[g++]}}return{type:"END",index:g,value:""}}class ce{constructor(b){this.tokens=b}peek(){if(!this._peek){const b=this.tokens.next();this._peek=b.value}return this._peek}tryConsume(b){const g=this.peek();if(g.type===b)return this._peek=void 0,g.value}consume(b){const g=this.tryConsume(b);if(g!==void 0)return g;const{type:F,index:N}=this.peek();throw new TypeError(`Unexpected ${F} at ${N}, expected ${b}: ${K}`)}text(){let b="",g;for(;g=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)b+=g;return b}}class se{constructor(b){this.tokens=b}}h=se;function Se(Z,b={}){const{encodePath:g=ae}=b,F=new ce(m(Z));function N(W){const M=[];for(;;){const fe=F.text();fe&&M.push({type:"text",value:g(fe)});const me=F.tryConsume("PARAM");if(me){M.push({type:"param",name:me});continue}const Be=F.tryConsume("WILDCARD");if(Be){M.push({type:"wildcard",name:Be});continue}if(F.tryConsume("{")){M.push({type:"group",tokens:N("}")});continue}return F.consume(W),M}}const S=N("END");return new se(S)}function Oe(Z,b={}){const{encode:g=encodeURIComponent,delimiter:F=l}=b,N=Z instanceof se?Z:Se(Z,b),S=Re(N.tokens,F,g);return function(M={}){const[fe,...me]=S(M);if(me.length)throw new TypeError(`Missing parameters: ${me.join(", ")}`);return fe}}function Re(Z,b,g){const F=Z.map(N=>j(N,b,g));return N=>{const S=[""];for(const W of F){const[M,...fe]=W(N);S[0]+=M,S.push(...fe)}return S}}function j(Z,b,g){if(Z.type==="text")return()=>[Z.value];if(Z.type==="group"){const N=Re(Z.tokens,b,g);return S=>{const[W,...M]=N(S);return M.length?[""]:[W]}}const F=g||ae;return Z.type==="wildcard"&&g!==!1?N=>{const S=N[Z.name];if(S==null)return["",Z.name];if(!Array.isArray(S)||S.length===0)throw new TypeError(`Expected "${Z.name}" to be a non-empty array`);return[S.map((W,M)=>{if(typeof W!="string")throw new TypeError(`Expected "${Z.name}/${M}" to be a string`);return F(W)}).join(b)]}:N=>{const S=N[Z.name];if(S==null)return["",Z.name];if(typeof S!="string")throw new TypeError(`Expected "${Z.name}" to be a string`);return[F(S)]}}function _(Z,b={}){const{decode:g=decodeURIComponent,delimiter:F=l}=b,{regexp:N,keys:S}=B(Z,b),W=S.map(M=>g===!1?ae:M.type==="param"?g:fe=>fe.split(F).map(g));return function(fe){const me=N.exec(fe);if(!me)return!1;const Be=me[0],pe=Object.create(null);for(let Pe=1;Pe<me.length;Pe++){if(me[Pe]===void 0)continue;const we=S[Pe-1],Le=W[Pe-1];pe[we.name]=Le(me[Pe])}return{path:Be,params:pe}}}function B(Z,b={}){const{delimiter:g=l,end:F=!0,sensitive:N=!1,trailing:S=!0}=b,W=[],M=[],fe=N?"":"i",Be=(Array.isArray(Z)?Z:[Z]).map(we=>we instanceof se?we:Se(we,b));for(const{tokens:we}of Be)for(const Le of k(we,0,[])){const We=de(Le,g,W);M.push(We)}let pe=`^(?:${M.join("|")})`;return S&&(pe+=`(?:${Y(g)}$)?`),pe+=F?"$":`(?=${Y(g)}|$)`,{regexp:new RegExp(pe,fe),keys:W}}function*k(Z,b,g){if(b===Z.length)return yield g;const F=Z[b];if(F.type==="group"){const N=g.slice();for(const S of k(F.tokens,0,N))yield*Yn(k(Z,b+1,S))}else g.push(F);yield*Yn(k(Z,b+1,g))}function de(Z,b,g){let F="",N="",S=!0;for(let W=0;W<Z.length;W++){const M=Z[W];if(M.type==="text"){F+=Y(M.value),N+=M.value,S||(S=M.value.includes(b));continue}if(M.type==="param"||M.type==="wildcard"){if(!S&&!N)throw new TypeError(`Missing text after "${M.name}": ${K}`);M.type==="param"?F+=`(${U(b,S?"":N)}+)`:F+="([\\s\\S]+)",g.push(M),N="",S=!1;continue}}return F}function U(Z,b){return b.length<2?Z.length<2?`[^${Y(Z+b)}]`:`(?:(?!${Y(Z)})[^${Y(b)}])`:Z.length<2?`(?:(?!${Y(b)})[^${Y(Z)}])`:`(?:(?!${Y(b)}|${Y(Z)})[\\s\\S])`}function ee(Z){return Z.tokens.map(function b(g,F,N){if(g.type==="text")return q(g.value);if(g.type==="group")return`{${g.tokens.map(b).join("")}}`;const W=te(g.name)&&ue(N[F+1])?g.name:JSON.stringify(g.name);if(g.type==="param")return`:${W}`;if(g.type==="wildcard")return`*${W}`;throw new TypeError(`Unexpected token: ${g}`)}).join("")}function te(Z){const[b,...g]=Z;return X.test(b)?g.every(F=>le.test(F)):!1}function ue(Z){return(Z==null?void 0:Z.type)!=="text"?!0:!le.test(Z.value[0])}},64599:function(ge,re,h){var l=h(96263);function ae(X,le){var K=typeof Symbol!="undefined"&&X[Symbol.iterator]||X["@@iterator"];if(!K){if(Array.isArray(X)||(K=l(X))||le&&X&&typeof X.length=="number"){K&&(X=K);var d=0,q=function(){};return{s:q,n:function(){return d>=X.length?{done:!0}:{done:!1,value:X[d++]}},e:function(Se){throw Se},f:q}}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 Y=!0,m=!1,ce;return{s:function(){K=K.call(X)},n:function(){var Se=K.next();return Y=Se.done,Se},e:function(Se){m=!0,ce=Se},f:function(){try{!Y&&K.return!=null&&K.return()}finally{if(m)throw ce}}}}ge.exports=ae,ge.exports.__esModule=!0,ge.exports.default=ge.exports}}]);